@inkorange/space-ui 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md ADDED
@@ -0,0 +1,205 @@
1
+ # SpaceUI
2
+
3
+ **Components for dark, instrument-dense interfaces.**
4
+
5
+ 24 React components and 20 icons on a seven-role token system, with zero
6
+ runtime dependencies.
7
+
8
+ <!-- Absolute URLs on purpose: npm renders this file too, and relative paths
9
+ resolve against the registry rather than the repository. -->
10
+ <img alt="A lit-glass button, select, badges, slider, progress bar and folder tabs on a dark ground"
11
+ src="https://raw.githubusercontent.com/inkorange/space-ui/main/.github/assets/components.svg"
12
+ width="100%">
13
+
14
+ 📖 **[Browse the gallery →](https://space-components.vercel.app)** — every
15
+ component, its props, its tokens, and the source for each example.
16
+
17
+ <a href="https://space-components.vercel.app">
18
+ <img alt="The SpaceUI documentation gallery: components, their props, tokens and source"
19
+ src="https://raw.githubusercontent.com/inkorange/space-ui/main/.github/assets/doc-screen.jpg"
20
+ width="100%">
21
+ </a>
22
+
23
+ ## Install
24
+
25
+ ```bash
26
+ pnpm add @inkorange/space-ui
27
+ ```
28
+
29
+ ```tsx
30
+ // once, at your app entry — one import, defaults included
31
+ import "@inkorange/space-ui/styles.css";
32
+
33
+ import { Button, Card, Heading } from "@inkorange/space-ui";
34
+
35
+ export function Planet() {
36
+ return (
37
+ <Card>
38
+ <Heading size="4">Kepler-442b</Heading>
39
+ <Button>Build planet</Button>
40
+ </Card>
41
+ );
42
+ }
43
+ ```
44
+
45
+ `styles.css` is the precompiled component CSS **with the default token values
46
+ baked in**, so that single import gives you a working library. Plain CSS — no
47
+ Sass, CSS modules, or framework tooling required downstream. All components are
48
+ client components (`"use client"` is baked into the bundle).
49
+
50
+ ### Theming is a one-file swap
51
+
52
+ Every component reads role-named tokens and nothing else, so a whole theme —
53
+ light mode, a brand palette — is one `:root` block loaded *after* the library:
54
+
55
+ ```css
56
+ /* theme.css, imported after styles.css */
57
+ :root {
58
+ --sp-gray-panel: #ffffff;
59
+ --sp-gray-text: #14161c;
60
+ --sp-primary-solid: #7c5cff;
61
+ --sp-font-family: "Inter", system-ui, sans-serif;
62
+ }
63
+ ```
64
+
65
+ Same specificity, later source order, so your values win. You only override
66
+ what you want to change — anything you leave out keeps the shipped default.
67
+ `@inkorange/space-ui/tokens.css` is exported separately if you want to read or
68
+ extend the full default set.
69
+
70
+ **Requirements:** React 19 as a peer dependency, and a dark surface —
71
+ components are built for the space-dark ground (`#111113`) and assume it.
72
+ There is no light theme.
73
+
74
+ ## Four rules, enforced
75
+
76
+ Each of these is a constraint the build checks, not a preference the docs
77
+ describe. That is the difference between a design system and a folder of
78
+ components.
79
+
80
+ | Rule | What it means | Enforced by |
81
+ | --- | --- | --- |
82
+ | **Eight-point spacing** | Every gap, inset, and offset lands on the grid. Off-grid values round **up**, so density never creeps in by accident. | `12px → 16px` |
83
+ | **Seven gray roles** | Grays are named for the job they do, not their step on a ramp. Fifteen Radix variants collapsed into seven roles. | `--sp-gray-text-dim` |
84
+ | **No framework in the surface** | No Radix, no runtime dependencies, no framework-specific props. | `radixImports.test.ts` |
85
+ | **CSS arrives precompiled** | Consumers import one stylesheet. Authored in Sass; nothing downstream needs a Sass toolchain. | `styles.css` |
86
+
87
+ ## Design tokens
88
+
89
+ Radix gave us fifteen numbered grays. A numbered ramp makes you guess — is
90
+ `gray-11` a label, a border, or a placeholder? SpaceUI ships seven, each named
91
+ for the work it does, so the name tells you where it belongs and a reviewer can
92
+ tell when it is wrong. Set a role's value once and every correct use follows.
93
+
94
+ Tokens are plain CSS custom properties on `:root`. Nothing about them is
95
+ React-specific.
96
+
97
+ ```css
98
+ @import "@inkorange/space-ui/tokens.css";
99
+
100
+ .planet-panel {
101
+ background: var(--sp-gray-panel);
102
+ border: 1px solid var(--sp-gray-border);
103
+ padding: var(--spacing-md); /* 16px — on the grid */
104
+ gap: var(--spacing-sm);
105
+ }
106
+
107
+ .planet-panel__label {
108
+ color: var(--sp-gray-text-dim); /* secondary text */
109
+ font-size: var(--sp-font-sm);
110
+ }
111
+ ```
112
+
113
+ Because every component reads the same roles, rebranding is one block of
114
+ overrides rather than a pass through the component tree:
115
+
116
+ ```css
117
+ /* theme.css — loaded after tokens.css */
118
+ :root {
119
+ --sp-gray-panel: #14161c;
120
+ --sp-primary-solid: #7c5cff;
121
+ --sp-font-family: "Inter", system-ui, sans-serif;
122
+ }
123
+ ```
124
+
125
+ Every token, its resolved value, and the Radix variant it replaced is listed
126
+ under **Foundations** in the gallery, along with a reverse index of which
127
+ components read which token.
128
+
129
+ ### Fonts
130
+
131
+ Almost nothing sets a `font-family` — the library inherits whatever your app
132
+ already loaded, and nothing renders through a portal, so inheritance reaches
133
+ every component. Two components pin a stack (`Badge` and `Button`), and
134
+ both read the same token:
135
+
136
+ ```css
137
+ :root { --sp-font-family: "Inter", system-ui, sans-serif; }
138
+ ```
139
+
140
+ There is deliberately no per-component font hook. Typeface is a system-level
141
+ decision made in one place, and a test fails the build if a component
142
+ introduces its own.
143
+
144
+ ## The look is not optional
145
+
146
+ Lit glass, an orbiting rim, faint starfield specks — that is what a SpaceUI
147
+ component *is*. There is no plain mode and no class to compose: install the
148
+ package and you get the system.
149
+
150
+ What you can turn off is the **motion**, because ambient loops that suit a hero
151
+ button distract in a dense form or a long list. One prop, one meaning:
152
+
153
+ ```tsx
154
+ <Button>Build planet</Button> {/* ambient motion, the default */}
155
+ <Button animated={false}>Build planet</Button> {/* same look, no loops */}
156
+
157
+ <TextField.Root animated={false} />
158
+ <Select.Trigger animated={false} />
159
+ ```
160
+
161
+ `animated={false}` stills the orbiting rim, the glint sweep and the twinkling
162
+ stars. Every gradient, rim and shadow stays exactly where it was. Readers who
163
+ set `prefers-reduced-motion` get this without asking — the library honours it
164
+ whatever the prop says.
165
+
166
+ `Slider` takes no `animated` prop: its skin has no ambient loop, and a prop
167
+ that does nothing is worse than no prop.
168
+
169
+ ## Extracted, not invented
170
+
171
+ These components ran in production before they became a package, so they
172
+ arrived with their edge cases already found rather than imagined. The
173
+ extraction kept the rendered output identical — a few deliberate exceptions to
174
+ the spacing grid survive where parity with the shipped app beat grid purity,
175
+ and they are commented where they occur.
176
+
177
+
178
+ ## Develop
179
+
180
+ ```bash
181
+ pnpm install
182
+ pnpm docs # Ladle gallery at localhost:61000
183
+ pnpm test # 49 tests, incl. the Radix-ban and token-grid guards
184
+ pnpm build
185
+ ```
186
+
187
+ The gallery runs against the library **source**, not `dist` — component edits
188
+ hot-reload with no build step in the loop. Prop tables and token usage on the
189
+ docs site are generated from the source at build time, so they cannot drift
190
+ from what ships.
191
+
192
+ ## Releases
193
+
194
+ [Changesets](https://github.com/changesets/changesets): every PR that changes
195
+ `packages/space-ui/src` adds one (`pnpm changeset`). Merging to main
196
+ opens/updates a "Version Packages" PR; merging that publishes to npm and tags
197
+ the release.
198
+
199
+ - **patch** — visual fix, internal refactor, docs
200
+ - **minor** — new component, new prop, new export
201
+ - **major** — removed/renamed export or prop, changed rendering default
202
+
203
+ ## License
204
+
205
+ MIT
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"),M=require("./spaceControls.module-yIFvZ0rt.cjs"),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},i){const c={...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]},...i};return Object.keys(c).length>0?c:void 0}function C(...e){return e.filter(Boolean).join(" ")}const De="_text_4vcq4_1",Ee="_size1_4vcq4_5",Te="_size2_4vcq4_11",Ne="_size3_4vcq4_16",He="_size4_4vcq4_21",Oe="_size5_4vcq4_27",Pe="_size6_4vcq4_33",Ve="_medium_4vcq4_39",Ze="_bold_4vcq4_43",Be="_colorMuted_4vcq4_47",Ae="_colorDanger_4vcq4_51",Fe="_colorSuccess_4vcq4_55",We="_colorWarning_4vcq4_59",P={text:De,size1:Ee,size2:Te,size3:Ne,size4:He,size5:Oe,size6:Pe,medium:Ve,bold:Ze,colorMuted:Be,colorDanger:Ae,colorSuccess:Fe,colorWarning:We},re=l.forwardRef(function({as:n="span",size:s,weight:r,color:t,className:i,style:c,m:a,mt:_,mb:f,p:u,pb:p,...d},g){return l.createElement(n,{...d,ref:g,className:C(P.text,s&&P[`size${s}`],r&&P[r],t&&P[`color${t[0].toUpperCase()}${t.slice(1)}`],i),style:y({m:a,mt:_,mb:f,p:u,pb:p},c)})}),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:i,style:c,m:a,mt:_,mb:f,p:u,pb:p,...d},g){return l.createElement(n,{...d,ref:g,className:C(D.heading,s&&D[`size${s}`],r==="muted"&&D.colorMuted,r==="danger"&&D.colorDanger,t==="center"&&D.alignCenter,i),style:y({m:a,mt:_,mb:f,p:u,pb:p},c)})}),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},it=l.forwardRef(function({asChild:n,size:s,className:r,style:t,m:i,mt:c,mb:a,p:_,pb:f,children:u,...p},d){const g=C(ee.link,s&&ee[`size${s}`],r),m=y({m:i,mt:c,mb:a,p:_,pb:f},t);if(n&&l.isValidElement(u)){const h=u;return l.cloneElement(h,{...p,className:C(g,h.props.className),style:{...m,...h.props.style}})}return o.jsx("a",{...p,ref:d,className:g,style:m,children:u})}),ct="_flex_v4ziu_1",at="_gap1_v4ziu_5",ut="_gap2_v4ziu_9",dt="_gap3_v4ziu_13",ft="_gap4_v4ziu_17",_t="_gap5_v4ziu_21",pt="_gap6_v4ziu_25",gt="_directionRow_v4ziu_29",Ct="_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",qt="_wrapNowrap_v4ziu_77",q={flex:ct,gap1:at,gap2:ut,gap3:dt,gap4:ft,gap5:_t,gap6:pt,directionRow:gt,directionColumn:Ct,alignStart:mt,alignCenter:ht,alignEnd:vt,alignBaseline:xt,alignStretch:bt,justifyStart:wt,justifyCenter:jt,justifyEnd:yt,justifyBetween:Rt,wrapWrap:$t,wrapNowrap:qt},V=e=>e[0].toUpperCase()+e.slice(1),kt=l.forwardRef(function({asChild:n,gap:s,direction:r,align:t,justify:i,wrap:c,className:a,style:_,m:f,mt:u,mb:p,p:d,pb:g,children:m,...h},v){const x=C(q.flex,s&&q[`gap${s}`],r&&q[`direction${V(r)}`],t&&q[`align${V(t)}`],i&&q[`justify${V(i)}`],c&&q[`wrap${V(c)}`],a),R=y({m:f,mt:u,mb:p,p:d,pb:g},_);if(n&&l.isValidElement(m)){const $=m;return l.cloneElement($,{...h,className:C(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:i,pb:c,...a},_){return o.jsx("div",{...a,ref:_,style:y({m:s,mt:r,mb:t,p:i,pb:c},n)})}),zt="_grid_erpqq_1",Mt="_cols1_erpqq_5",It="_cols2_erpqq_9",St="_cols3_erpqq_13",Dt="_smCols2_erpqq_18",Et="_smCols3_erpqq_21",Tt="_mdCols2_erpqq_26",Nt="_mdCols3_erpqq_29",Ht="_gap1_erpqq_33",Ot="_gap2_erpqq_37",Pt="_gap3_erpqq_41",Vt="_gap4_erpqq_45",Zt="_gap5_erpqq_49",Bt="_gap6_erpqq_53",k={grid:zt,cols1:Mt,cols2:It,cols3:St,smCols2:Dt,smCols3:Et,mdCols2:Tt,mdCols3:Nt,gap1:Ht,gap2:Ot,gap3:Pt,gap4:Vt,gap5:Zt,gap6:Bt},At=l.forwardRef(function({columns:n,gap:s,className:r,style:t,m:i,mt:c,mb:a,p:_,pb:f,...u},p){const d=typeof n=="string"?[k[`cols${n}`]]:n?[n.initial&&k[`cols${n.initial}`],n.sm&&k[`smCols${n.sm}`],n.md&&k[`mdCols${n.md}`]]:[];return o.jsx("div",{...u,ref:p,className:C(k.grid,...d,s&&k[`gap${s}`],r),style:y({m:i,mt:c,mb:a,p:_,pb:f},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",E={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:i,style:c,m:a,mt:_,mb:f,p:u,pb:p,...d},g){return o.jsx("span",{...d,ref:g,className:C(E.badge,E[`color${ln(n)}`],s==="solid"&&E.solid,E[`size${r}`],t&&E.wrap,i),style:y({m:a,mt:_,mb:f,p:u,pb:p},c)})}),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:C(te.separator,n==="4"&&te.full,s)})}),fn="_card_10wsm_1",_n={card:fn},pn=l.forwardRef(function({className:n,style:s,m:r,mt:t,mb:i,p:c,pb:a,..._},f){return o.jsx("div",{..._,ref:f,className:C(_n.card,n),style:y({m:r,mt:t,mb:i,p:c,pb:a},s)})}),gn="_scrollArea_ujp70_1",Cn={scrollArea:gn},mn=l.forwardRef(function({className:n,...s},r){return o.jsx("div",{...s,ref:r,className:C(Cn.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",qn="_ember_kjhqx_147",kn="_label_kjhqx_157",Ln="_star_kjhqx_136",zn="_twinkle_kjhqx_1",w={spaceButton:hn,rimRotate:vn,glintSweep:xn,iconOnly:bn,lg:wn,sm:jn,micro:yn,stars:Rn,fullWidth:$n,ember:qn,label:kn,star:Ln,twinkle:zn};function Mn(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:i=!0,className:c,children:a,..._},f){const u=l.useId(),p=l.useMemo(()=>{const g=Mn(In(u));return Array.from({length:3},()=>({top:`${12+g()*58}%`,left:`${8+g()*80}%`,animationDelay:`${(g()*3.2).toFixed(2)}s`,animationDuration:`${(2.8+g()*1.8).toFixed(2)}s`}))},[u]),d=[w.spaceButton,n?w.iconOnly:"",s?w.ember:"",r!=="md"?w[r]:"",t?w.fullWidth:"",c??""].filter(Boolean).join(" ");return o.jsxs("button",{ref:f,className:d,"data-animated":i?void 0:"false",..._,children:[r!=="micro"&&o.jsx("span",{className:w.stars,"aria-hidden":!0,children:p.map((g,m)=>o.jsx("i",{className:w.star,style:g},m))}),o.jsx("span",{className:w.label,children:a})]})}),Dn="_wrap_dwcut_5",En="_sm_dwcut_30",Tn="_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:En,md:Tn,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 Zn({size:e="md",label:n,className:s}){return o.jsxs("div",{className:C(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 Bn="_content_1bxfq_6",An={content:Bn},Fn=350,Wn=80,ne=8,T=8;function Gn({triggerRef:e,tooltipId:n,show:s,hide:r,children:t}){const i=t.props;return l.cloneElement(t,{ref:e,"aria-describedby":n,onPointerEnter:c=>{var a;(a=i.onPointerEnter)==null||a.call(i,c),c.pointerType==="mouse"&&s()},onPointerLeave:c=>{var a;(a=i.onPointerLeave)==null||a.call(i,c),r()},onFocus:c=>{var a;(a=i.onFocus)==null||a.call(i,c),s(!0)},onBlur:c=>{var a;(a=i.onBlur)==null||a.call(i,c),r()},onClick:c=>{var a;(a=i.onClick)==null||a.call(i,c),r()}})}function ie({label:e,side:n="bottom",children:s}){const r=l.useId(),[t,i]=l.useState(!1),[c,a]=l.useState(null),_=l.useRef(null),f=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)},g=(h=!1)=>{if(d(),h){i(!0);return}u.current=setTimeout(()=>i(!0),Fn)},m=()=>{d(),p.current=setTimeout(()=>i(!1),Wn)};return l.useEffect(()=>d,[]),l.useLayoutEffect(()=>{const h=f.current;if(!h)return;if(!t){h.matches(":popover-open")&&h.hidePopover();return}h.matches(":popover-open")||h.showPopover();const v=_.current;if(!v)return;const x=v.getBoundingClientRect(),R=h.offsetWidth,$=h.offsetHeight,B=x.bottom+ne,A=x.top-$-ne,Q=B+$<=window.innerHeight-T,J=A>=T,Ie=n==="bottom"?Q||!J?B:A:J||!Q?A:B,Se=Math.min(Math.max(x.left+x.width/2-R/2,T),Math.max(window.innerWidth-R-T,T));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:_,tooltipId:r,show:g,hide:m,children:s}),o.jsx("div",{ref:f,id:r,popover:"auto",role:"tooltip",className:An.content,style:c?{top:c.top,left:c.left}:void 0,onToggle:h=>{h.nativeEvent.newState==="closed"&&t&&i(!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(ie,{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},ce=l.createContext(null),G=()=>{const e=l.useContext(ce);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 lo(e){const n=[],s=r=>{l.Children.forEach(r,t=>{if(!l.isValidElement(t))return;const i=t.props;t.type===fe&&typeof i.value=="string"?n.push({value:i.value,label:i.children,disabled:i.disabled}):i.children&&s(i.children)})};return s(e),n}function io({value:e,onValueChange:n,disabled:s,children:r}){const[t,i]=l.useState(!1),[c,a]=l.useState(null),_=l.useId(),f=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(()=>lo(p),[p]),g=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)&&i(!1)};return document.addEventListener("mousedown",v),()=>document.removeEventListener("mousedown",v)},[t]),o.jsx(ce.Provider,{value:{value:e,onValueChange:n,disabled:s,open:t,setOpen:i,highlighted:c,setHighlighted:a,listboxId:_,values:g,itemLabels:m,labelFor:h},children:o.jsx(ue.Provider,{value:f,children:o.jsx("div",{ref:u,className:j.root,children:r})})})}function co({placeholder:e,animated:n=!0,className:s,...r}){const t=G(),i=U(),c=t.value?t.labelFor(t.value):null,a=_=>{t.setHighlighted(_??t.values[0]??null),t.setOpen(!0)};return o.jsxs("button",{type:"button",...r,ref:i,disabled:t.disabled,className:C(j.trigger,M.ctl.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:_=>{(_.key==="ArrowDown"||_.key==="Enter"||_.key===" ")&&(_.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:c??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(),i=U(),c=l.useRef(null),[a,_]=l.useState(null),[f,u]=l.useState(null);l.useLayoutEffect(()=>{if(t.open&&i.current){const d=i.current.getBoundingClientRect();_(i.current.offsetWidth);const g=window.innerHeight-d.bottom-16;u(Math.min(380,Math.max(120,g)))}},[t.open,i]),l.useEffect(()=>{var d;t.open&&((d=c.current)==null||d.focus())},[t.open]);const p=d=>{const g=t.highlighted?t.values.indexOf(t.highlighted):-1,m=Math.min(Math.max(g+d,0),t.values.length-1);t.setHighlighted(t.values[m]??null)};return o.jsx("div",{ref:c,id:t.listboxId,role:"listbox",tabIndex:-1,hidden:!t.open,"aria-activedescendant":t.highlighted?ae(t.listboxId,t.highlighted):void 0,className:C(j.listbox,M.ctl.spacePanel,e),"data-animated":s?void 0:"false",style:a!=null||f!=null?{...a!=null?{"--_select-trigger-width":`${a}px`}:{},...f!=null?{maxHeight:`${f}px`}:{}}:void 0,onKeyDown:d=>{var g,m;d.key==="Escape"?(d.stopPropagation(),t.setOpen(!1),(g=i.current)==null||g.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=i.current)==null||m.focus())):d.key==="Tab"&&t.setOpen(!1)},children:r})}function fe({value:e,disabled:n,children:s}){const r=G(),t=U(),i=r.value===e,c=r.highlighted===e;return o.jsx("div",{id:ae(r.listboxId,e),role:"option","aria-selected":i,"aria-disabled":n||void 0,"data-highlighted":c?"":void 0,className:C(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 ao=Object.freeze(Object.defineProperty({__proto__:null,Content:de,Item:fe,Root:io,Trigger:co},Symbol.toStringTag,{value:"Module"})),uo="_root_1lx7y_1",fo="_input_1lx7y_7",_o="_slot_1lx7y_17",W={root:uo,input:fo,slot:_o},po=l.forwardRef(function({className:n,style:s,animated:r=!0,children:t,...i},c){return o.jsxs("div",{className:C(W.root,M.ctl.spaceInput,"spTextFieldRoot",n),"data-animated":r?void 0:"false",style:s,children:[t,o.jsx("input",{...i,ref:c,className:C(W.input,"spTextFieldInput")})]})});function go({children:e}){return o.jsx("span",{className:W.slot,children:e})}const Co=Object.freeze(Object.defineProperty({__proto__:null,Root:po,Slot:go},Symbol.toStringTag,{value:"Module"})),mo="_root_1qu6w_1",ho="_textarea_1qu6w_6",oe={root:mo,textarea:ho},vo=l.forwardRef(function({className:n,style:s,animated:r=!0,...t},i){return o.jsx("div",{className:C(oe.root,M.ctl.spaceInput,M.ctl.spaceTextArea,"spTextFieldRoot",n),"data-animated":r?void 0:"false",style:s,children:o.jsx("textarea",{...t,ref:i,className:C(oe.textarea,"spTextAreaInput")})})}),xo="_root_14a1b_1",bo="_track_14a1b_12",wo="_range_14a1b_22",jo="_thumb_14a1b_28",yo="_input_14a1b_38",N={root:xo,track:bo,range:wo,thumb:jo,input:yo},Ro=l.forwardRef(function({value:n,onValueChange:s,min:r,max:t,step:i,disabled:c,className:a,"aria-label":_},f){const u=n[0]??r,p=t===r?0:(u-r)/(t-r)*100;return o.jsxs("span",{className:C(N.root,M.ctl.spaceSlider,a),"data-disabled":c||void 0,children:[o.jsx("span",{className:C(N.track,"spSliderTrack"),children:o.jsx("span",{className:C(N.range,"spSliderRange"),style:{width:`${p}%`}})}),o.jsx("span",{className:C(N.thumb,"spSliderThumb"),style:{left:`${p}%`}}),o.jsx("input",{ref:f,type:"range",className:C(N.input,"spSliderInput"),value:u,min:r,max:t,step:i,disabled:c,"aria-label":_,onChange:d=>s([Number(d.target.value)])})]})}),$o="_root_1qhel_2",qo="_item_1qhel_8",ko="_selfLabeled_1qhel_15",Lo="_input_1qhel_19",zo="_orb_1qhel_35",z={root:$o,item:qo,selfLabeled:ko,input:Lo,orb:zo},_e=l.createContext(null);function Mo({value:e,onValueChange:n,disabled:s,className:r,children:t}){const i=l.useId();return o.jsx(_e.Provider,{value:{value:e,onValueChange:n,disabled:s,name:i},children:o.jsx("div",{role:"radiogroup",className:C(z.root,r),children:t})})}function Io({value:e,disabled:n,children:s}){const r=l.useContext(_e);if(!r)throw new Error("RadioGroup.Item must be inside RadioGroup.Root");const t=n||r.disabled,i=o.jsxs(o.Fragment,{children:[o.jsx("input",{type:"radio",className:z.input,name:r.name,value:e,checked:r.value===e,disabled:t,onChange:()=>r.onValueChange(e)}),o.jsx("span",{className:C(z.orb,"spRadioOrb"),"aria-hidden":"true"})]});return s==null?o.jsx("span",{className:z.item,children:i}):o.jsxs("label",{className:C(z.item,z.selfLabeled),children:[i,s]})}const So=Object.freeze(Object.defineProperty({__proto__:null,Item:Io,Root:Mo},Symbol.toStringTag,{value:"Module"})),Do="_progress_sr231_16",Eo={progress:Do};function To({value:e,max:n=100,className:s,style:r,...t}){const i=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:C(Eo.progress,s),style:r,children:o.jsx("div",{style:{width:`${i}%`,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 No(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 Ho(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 Oo(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 Po(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 Vo(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 Zo(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 Bo(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 Ao(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 Fo(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 Wo(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 Go(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 Uo(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 Xo(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 Ko(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 Yo(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 Qo(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 Jo(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 es(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 ts(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 ns="_dialog_1qqku_2",os="_inner_1qqku_34",ss="_size4_1qqku_39",rs="_title_1qqku_43",ls="_closeX_1qqku_51",H={dialog:ns,inner:os,size4:ss,title:rs,closeX:ls};let Z=0;const ge=l.createContext(null),I=()=>{const e=l.useContext(ge);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[i,c]=l.useState(!1),a=s!==void 0,_=a?s:i,f=m=>{a||c(m),r==null||r(m)},u=l.useId(),p=l.useId(),[d,g]=l.useState(!1);return o.jsx(ge.Provider,{value:{open:_,setOpen:f,titleId:u,descId:p,alert:e,hasDesc:d,setHasDesc:g},children:t})}}const is=X(!1),Ce=(e,n)=>{if(!l.isValidElement(e))return e;const s=e;return l.cloneElement(s,{onClick:r=>{var t,i;(i=(t=s.props).onClick)==null||i.call(t,r),n()}})};function me({children:e}){const n=I();return o.jsx(o.Fragment,{children:Ce(e,()=>n.setOpen(!0))})}function K({children:e}){const n=I();return o.jsx(o.Fragment,{children:Ce(e,()=>n.setOpen(!1))})}function he({size:e="3",maxWidth:n,className:s,style:r,children:t,...i}){const c=I(),a=l.useRef(null),_=l.useRef(!1),f=l.useRef(!1);return l.useEffect(()=>{const u=a.current;u&&(c.open&&!u.open?u.showModal():!c.open&&u.open&&u.close())},[c.open]),l.useEffect(()=>{if(c.open)return Z+=1,Z===1&&(document.body.style.overflow="hidden"),()=>{Z-=1,Z===0&&(document.body.style.overflow="")}},[c.open]),o.jsx("dialog",{...i,ref:a,role:c.alert?"alertdialog":void 0,"aria-labelledby":c.titleId,"aria-describedby":c.hasDesc?c.descId:void 0,className:C(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])')&&(_.current=!0))},onCancel:u=>{if(u.preventDefault(),_.current){_.current=!1;return}c.setOpen(!1)},onClose:()=>{c.open&&c.setOpen(!1)},onPointerDown:u=>{f.current=u.target===a.current},onClick:u=>{!c.alert&&u.target===a.current&&f.current&&c.setOpen(!1)},children:o.jsxs("div",{className:H.inner,children:[!c.alert&&o.jsx("button",{type:"button",className:H.closeX,"aria-label":"Close",onClick:()=>c.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:C(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 cs=Object.freeze(Object.defineProperty({__proto__:null,Close:K,Content:he,Description:xe,Root:is,Title:ve,Trigger:me,makeRoot:X,useDialog:I},Symbol.toStringTag,{value:"Module"})),as=X(!0),us=me,ds=he,fs=ve,_s=xe,ps=K,gs=K,Cs=Object.freeze(Object.defineProperty({__proto__:null,Action:gs,Cancel:ps,Content:ds,Description:_s,Root:as,Title:fs,Trigger:us},Symbol.toStringTag,{value:"Module"})),ms="_menu_1hwyv_1",hs="_label_1hwyv_16",vs="_item_1hwyv_26",xs="_danger_1hwyv_45",bs="_separator_1hwyv_49",O={menu:ms,label:hs,item:vs,danger:xs,separator:bs},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),ws=()=>{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},qe=l.createContext(null),ke=()=>{const e=l.useContext(qe);if(!e)throw new Error("DropdownMenu parts must be inside DropdownMenu.Root");return e};function js(e){return e.current?(e.current=!1,!0):!1}function se(e){e.current=!0}function ys({children:e}){const[n,s]=l.useState(!1),r=l.useId(),t=l.useRef(null),i=l.useRef(null),c=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:i,children:o.jsx(Re.Provider,{value:c,children:o.jsx(qe.Provider,{value:a,children:e})})})})})}function Rs({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:i=>{var c,a;(a=(c=t.props).onClick)==null||a.call(c,i),!js(r)&&n.setOpen(!n.open)}})}function $s({align:e="start",children:n}){const s=Y(),r=je(),t=ws(),i=$e(),c=ke(),[a,_]=l.useState(null);return l.useLayoutEffect(()=>{var u;const f=t.current;if(f)if(s.open){const p=r.current;if(p){const d=p.getBoundingClientRect(),g=e==="end"?"auto":d.left,m=e==="end"?window.innerWidth-d.right:"auto";_({top:d.bottom+6,left:g,right:m})}f.showPopover(),(u=f.querySelector('[role="menuitem"]'))==null||u.focus()}else f.matches(":popover-open")&&f.hidePopover()},[s.open,e,t,r]),l.useEffect(()=>{if(!s.open)return;const f=s.setOpen,u=()=>f(!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:f=>{if(f.nativeEvent.newState==="closed"){const u=c.current;c.current=!1,u||(i.current=!0,setTimeout(()=>{i.current=!1},300)),s.open&&s.setOpen(!1)}},onKeyDown:f=>{var d,g,m,h,v,x;const u=Array.from(((d=t.current)==null?void 0:d.querySelectorAll('[role="menuitem"]'))??[]),p=u.indexOf(document.activeElement);f.key==="ArrowDown"?(f.preventDefault(),(g=u[Math.min(p+1,u.length-1)])==null||g.focus()):f.key==="ArrowUp"?(f.preventDefault(),(m=u[Math.max(p-1,0)])==null||m.focus()):f.key==="Home"?(f.preventDefault(),(h=u[0])==null||h.focus()):f.key==="End"?(f.preventDefault(),(v=u[u.length-1])==null||v.focus()):f.key==="Escape"&&(s.setOpen(!1),(x=r.current)==null||x.focus())},children:n})}function qs({children:e}){return o.jsx("div",{className:O.label,children:e})}function ks({asChild:e,color:n,onSelect:s,children:r}){const t=Y(),i=ke(),c=C(O.item,n==="danger"&&O.danger),a=()=>{se(i),t.setOpen(!1),s==null||s()};if(e&&l.isValidElement(r)){const _=r,{className:f,onClick:u,children:p,role:d,tabIndex:g,...m}=_.props,h=_.ref;return l.createElement(_.type,{key:_.key,ref:h,role:"menuitem",tabIndex:-1,...m,className:C(c,f),onClick:v=>{u==null||u(v),se(i),t.setOpen(!1)}},p)}return o.jsx("button",{type:"button",role:"menuitem",tabIndex:-1,className:c,onClick:a,children:r})}function Ls(){return o.jsx("div",{role:"separator",className:O.separator})}const zs=Object.freeze(Object.defineProperty({__proto__:null,Content:$s,Item:ks,Label:qs,Root:ys,Separator:Ls,Trigger:Rs},Symbol.toStringTag,{value:"Module"})),Ms="_list_19grf_19",Is="_trigger_19grf_28",Le={list:Ms,trigger:Is},ze=l.createContext(null),Me=()=>{const e=l.useContext(ze);if(!e)throw new Error("Tabs parts must be inside Tabs.Root");return e};function Ss({value:e,onValueChange:n,className:s,children:r}){const t=l.useId();return o.jsx(ze.Provider,{value:{value:e,onValueChange:n,id:t},children:o.jsx("div",{className:s,children:r})})}function Ds({children:e}){return o.jsx("div",{role:"tablist",className:C(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 Es({value:e,className:n,children:s,...r}){const t=Me(),i=t.value===e;return o.jsx("button",{...r,type:"button",role:"tab",id:`${t.id}-tab-${e}`,"aria-selected":i,"aria-controls":`${t.id}-panel-${e}`,tabIndex:i?0:-1,"data-state":i?"active":"inactive",className:C(Le.trigger,"spTabsTrigger",n),onClick:()=>t.onValueChange(e),children:s})}function Ts({value:e,children:n}){const s=Me();return s.value!==e?null:o.jsx("div",{role:"tabpanel",id:`${s.id}-panel-${e}`,"aria-labelledby":`${s.id}-tab-${e}`,children:n})}const Ns=Object.freeze(Object.defineProperty({__proto__:null,Content:Ts,List:Ds,Root:Ss,Trigger:Es},Symbol.toStringTag,{value:"Module"}));exports.AlertDialog=Cs;exports.Badge=cn;exports.BookmarkIcon=ts;exports.Box=Lt;exports.Button=Sn;exports.Card=pn;exports.ChatBubbleIcon=Ho;exports.CheckIcon=Ao;exports.ChevronDownIcon=Qo;exports.ChevronLeftIcon=es;exports.ChevronRightIcon=Jo;exports.ChevronUpIcon=Yo;exports.Dialog=cs;exports.DropdownMenu=zs;exports.EnterFullScreenIcon=Bo;exports.ExitFullScreenIcon=Zo;exports.Flex=kt;exports.Grid=At;exports.Heading=le;exports.HeartFilledIcon=Vo;exports.HeartIcon=Ko;exports.IconToggle=Yn;exports.Link=it;exports.Loader=Zn;exports.MagnifyingGlassIcon=Xo;exports.MinusIcon=Uo;exports.Pencil1Icon=Po;exports.PersonIcon=Go;exports.PlusIcon=Oo;exports.Progress=To;exports.QuestionMarkCircledIcon=Wo;exports.RadioGroup=So;exports.ScrollArea=mn;exports.Select=ao;exports.Separator=dn;exports.Share2Icon=No;exports.Slider=Ro;exports.Tabs=Ns;exports.Text=re;exports.TextArea=vo;exports.TextField=Co;exports.Tooltip=ie;exports.TrashIcon=Fo;exports.XIcon=pe;
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react"),o=require("react/jsx-runtime"),M=require("./spaceControls.module-yIFvZ0rt.cjs"),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},i){const c={...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]},...i};return Object.keys(c).length>0?c:void 0}function g(...e){return e.filter(Boolean).join(" ")}const De="_text_4vcq4_1",Ee="_size1_4vcq4_5",Te="_size2_4vcq4_11",Ne="_size3_4vcq4_16",He="_size4_4vcq4_21",Oe="_size5_4vcq4_27",Pe="_size6_4vcq4_33",Ve="_medium_4vcq4_39",Ze="_bold_4vcq4_43",Be="_colorMuted_4vcq4_47",Ae="_colorDanger_4vcq4_51",Fe="_colorSuccess_4vcq4_55",We="_colorWarning_4vcq4_59",P={text:De,size1:Ee,size2:Te,size3:Ne,size4:He,size5:Oe,size6:Pe,medium:Ve,bold:Ze,colorMuted:Be,colorDanger:Ae,colorSuccess:Fe,colorWarning:We},re=l.forwardRef(function({as:n="span",size:s,weight:r,color:t,className:i,style:c,m:a,mt:_,mb:f,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)}`],i),style:y({m:a,mt:_,mb:f,p:u,pb:p},c)})}),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:i,style:c,m:a,mt:_,mb:f,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,i),style:y({m:a,mt:_,mb:f,p:u,pb:p},c)})}),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},it=l.forwardRef(function({asChild:n,size:s,className:r,style:t,m:i,mt:c,mb:a,p:_,pb:f,children:u,...p},d){const C=g(ee.link,s&&ee[`size${s}`],r),m=y({m:i,mt:c,mb:a,p:_,pb:f},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})}),ct="_flex_v4ziu_1",at="_gap1_v4ziu_5",ut="_gap2_v4ziu_9",dt="_gap3_v4ziu_13",ft="_gap4_v4ziu_17",_t="_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",qt="_wrapNowrap_v4ziu_77",q={flex:ct,gap1:at,gap2:ut,gap3:dt,gap4:ft,gap5:_t,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:qt},V=e=>e[0].toUpperCase()+e.slice(1),kt=l.forwardRef(function({asChild:n,gap:s,direction:r,align:t,justify:i,wrap:c,className:a,style:_,m:f,mt:u,mb:p,p:d,pb:C,children:m,...h},v){const x=g(q.flex,s&&q[`gap${s}`],r&&q[`direction${V(r)}`],t&&q[`align${V(t)}`],i&&q[`justify${V(i)}`],c&&q[`wrap${V(c)}`],a),R=y({m:f,mt:u,mb:p,p:d,pb:C},_);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:i,pb:c,...a},_){return o.jsx("div",{...a,ref:_,style:y({m:s,mt:r,mb:t,p:i,pb:c},n)})}),zt="_grid_erpqq_1",Mt="_cols1_erpqq_5",It="_cols2_erpqq_9",St="_cols3_erpqq_13",Dt="_smCols2_erpqq_18",Et="_smCols3_erpqq_21",Tt="_mdCols2_erpqq_26",Nt="_mdCols3_erpqq_29",Ht="_gap1_erpqq_33",Ot="_gap2_erpqq_37",Pt="_gap3_erpqq_41",Vt="_gap4_erpqq_45",Zt="_gap5_erpqq_49",Bt="_gap6_erpqq_53",k={grid:zt,cols1:Mt,cols2:It,cols3:St,smCols2:Dt,smCols3:Et,mdCols2:Tt,mdCols3:Nt,gap1:Ht,gap2:Ot,gap3:Pt,gap4:Vt,gap5:Zt,gap6:Bt},At=l.forwardRef(function({columns:n,gap:s,className:r,style:t,m:i,mt:c,mb:a,p:_,pb:f,...u},p){const d=typeof n=="string"?[k[`cols${n}`]]:n?[n.initial&&k[`cols${n.initial}`],n.sm&&k[`smCols${n.sm}`],n.md&&k[`mdCols${n.md}`]]:[];return o.jsx("div",{...u,ref:p,className:g(k.grid,...d,s&&k[`gap${s}`],r),style:y({m:i,mt:c,mb:a,p:_,pb:f},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",E={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:i,style:c,m:a,mt:_,mb:f,p:u,pb:p,...d},C){return o.jsx("span",{...d,ref:C,className:g(E.badge,E[`color${ln(n)}`],s==="solid"&&E.solid,E[`size${r}`],t&&E.wrap,i),style:y({m:a,mt:_,mb:f,p:u,pb:p},c)})}),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)})}),fn="_card_10wsm_1",_n={card:fn},pn=l.forwardRef(function({className:n,style:s,m:r,mt:t,mb:i,p:c,pb:a,..._},f){return o.jsx("div",{..._,ref:f,className:g(_n.card,n),style:y({m:r,mt:t,mb:i,p:c,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",qn="_ember_kjhqx_147",kn="_label_kjhqx_157",Ln="_star_kjhqx_136",zn="_twinkle_kjhqx_1",w={spaceButton:hn,rimRotate:vn,glintSweep:xn,iconOnly:bn,lg:wn,sm:jn,micro:yn,stars:Rn,fullWidth:$n,ember:qn,label:kn,star:Ln,twinkle:zn};function Mn(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:i=!0,className:c,children:a,..._},f){const u=l.useId(),p=l.useMemo(()=>{const C=Mn(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:"",c??""].filter(Boolean).join(" ");return o.jsxs("button",{ref:f,className:d,"data-animated":i?void 0:"false",..._,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",En="_sm_dwcut_30",Tn="_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:En,md:Tn,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 Zn({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 Bn="_content_1bxfq_6",An={content:Bn},Fn=350,Wn=80,ne=8,T=8;function Gn({triggerRef:e,tooltipId:n,show:s,hide:r,children:t}){const i=t.props;return l.cloneElement(t,{ref:e,"aria-describedby":n,onPointerEnter:c=>{var a;(a=i.onPointerEnter)==null||a.call(i,c),c.pointerType==="mouse"&&s()},onPointerLeave:c=>{var a;(a=i.onPointerLeave)==null||a.call(i,c),r()},onFocus:c=>{var a;(a=i.onFocus)==null||a.call(i,c),s(!0)},onBlur:c=>{var a;(a=i.onBlur)==null||a.call(i,c),r()},onClick:c=>{var a;(a=i.onClick)==null||a.call(i,c),r()}})}function ie({label:e,side:n="bottom",children:s}){const r=l.useId(),[t,i]=l.useState(!1),[c,a]=l.useState(null),_=l.useRef(null),f=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){i(!0);return}u.current=setTimeout(()=>i(!0),Fn)},m=()=>{d(),p.current=setTimeout(()=>i(!1),Wn)};return l.useEffect(()=>d,[]),l.useLayoutEffect(()=>{const h=f.current;if(!h)return;if(!t){h.matches(":popover-open")&&h.hidePopover();return}h.matches(":popover-open")||h.showPopover();const v=_.current;if(!v)return;const x=v.getBoundingClientRect(),R=h.offsetWidth,$=h.offsetHeight,B=x.bottom+ne,A=x.top-$-ne,Q=B+$<=window.innerHeight-T,J=A>=T,Ie=n==="bottom"?Q||!J?B:A:J||!Q?A:B,Se=Math.min(Math.max(x.left+x.width/2-R/2,T),Math.max(window.innerWidth-R-T,T));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:_,tooltipId:r,show:C,hide:m,children:s}),o.jsx("div",{ref:f,id:r,popover:"auto",role:"tooltip",className:An.content,style:c?{top:c.top,left:c.left}:void 0,onToggle:h=>{h.nativeEvent.newState==="closed"&&t&&i(!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(ie,{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},ce=l.createContext(null),G=()=>{const e=l.useContext(ce);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 lo(e){const n=[],s=r=>{l.Children.forEach(r,t=>{if(!l.isValidElement(t))return;const i=t.props;t.type===fe&&typeof i.value=="string"?n.push({value:i.value,label:i.children,disabled:i.disabled}):i.children&&s(i.children)})};return s(e),n}function io({value:e,onValueChange:n,disabled:s,children:r}){const[t,i]=l.useState(!1),[c,a]=l.useState(null),_=l.useId(),f=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(()=>lo(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)&&i(!1)};return document.addEventListener("mousedown",v),()=>document.removeEventListener("mousedown",v)},[t]),o.jsx(ce.Provider,{value:{value:e,onValueChange:n,disabled:s,open:t,setOpen:i,highlighted:c,setHighlighted:a,listboxId:_,values:C,itemLabels:m,labelFor:h},children:o.jsx(ue.Provider,{value:f,children:o.jsx("div",{ref:u,className:j.root,children:r})})})}function co({placeholder:e,animated:n=!0,className:s,...r}){const t=G(),i=U(),c=t.value?t.labelFor(t.value):null,a=_=>{t.setHighlighted(_??t.values[0]??null),t.setOpen(!0)};return o.jsxs("button",{type:"button",...r,ref:i,disabled:t.disabled,className:g(j.trigger,M.ctl.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:_=>{(_.key==="ArrowDown"||_.key==="Enter"||_.key===" ")&&(_.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:c??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(),i=U(),c=l.useRef(null),[a,_]=l.useState(null),[f,u]=l.useState(null);l.useLayoutEffect(()=>{if(t.open&&i.current){const d=i.current.getBoundingClientRect();_(i.current.offsetWidth);const C=window.innerHeight-d.bottom-16;u(Math.min(380,Math.max(120,C)))}},[t.open,i]),l.useEffect(()=>{var d;t.open&&((d=c.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:c,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,M.ctl.spacePanel,e),"data-animated":s?void 0:"false",style:a!=null||f!=null?{...a!=null?{"--_select-trigger-width":`${a}px`}:{},...f!=null?{maxHeight:`${f}px`}:{}}:void 0,onKeyDown:d=>{var C,m;d.key==="Escape"?(d.stopPropagation(),t.setOpen(!1),(C=i.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=i.current)==null||m.focus())):d.key==="Tab"&&t.setOpen(!1)},children:r})}function fe({value:e,disabled:n,children:s}){const r=G(),t=U(),i=r.value===e,c=r.highlighted===e;return o.jsx("div",{id:ae(r.listboxId,e),role:"option","aria-selected":i,"aria-disabled":n||void 0,"data-highlighted":c?"":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 ao=Object.freeze(Object.defineProperty({__proto__:null,Content:de,Item:fe,Root:io,Trigger:co},Symbol.toStringTag,{value:"Module"})),uo="_root_1lx7y_1",fo="_input_1lx7y_7",_o="_slot_1lx7y_17",W={root:uo,input:fo,slot:_o},po=l.forwardRef(function({className:n,style:s,animated:r=!0,children:t,...i},c){return o.jsxs("div",{className:g(W.root,M.ctl.spaceInput,"spTextFieldRoot",n),"data-animated":r?void 0:"false",style:s,children:[t,o.jsx("input",{...i,ref:c,className:g(W.input,"spTextFieldInput")})]})});function Co({children:e}){return o.jsx("span",{className:W.slot,children:e})}const go=Object.freeze(Object.defineProperty({__proto__:null,Root:po,Slot:Co},Symbol.toStringTag,{value:"Module"})),mo="_root_1qu6w_1",ho="_textarea_1qu6w_6",oe={root:mo,textarea:ho},vo=l.forwardRef(function({className:n,style:s,animated:r=!0,...t},i){return o.jsx("div",{className:g(oe.root,M.ctl.spaceInput,M.ctl.spaceTextArea,"spTextFieldRoot",n),"data-animated":r?void 0:"false",style:s,children:o.jsx("textarea",{...t,ref:i,className:g(oe.textarea,"spTextAreaInput")})})}),xo="_root_14a1b_1",bo="_track_14a1b_12",wo="_range_14a1b_22",jo="_thumb_14a1b_28",yo="_input_14a1b_38",N={root:xo,track:bo,range:wo,thumb:jo,input:yo},Ro=l.forwardRef(function({value:n,onValueChange:s,min:r,max:t,step:i,disabled:c,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,M.ctl.spaceSlider,a),"data-disabled":c||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:f,type:"range",className:g(N.input,"spSliderInput"),value:u,min:r,max:t,step:i,disabled:c,"aria-label":_,onChange:d=>s([Number(d.target.value)])})]})}),$o="_root_1qhel_2",qo="_item_1qhel_8",ko="_selfLabeled_1qhel_15",Lo="_input_1qhel_19",zo="_orb_1qhel_35",z={root:$o,item:qo,selfLabeled:ko,input:Lo,orb:zo},_e=l.createContext(null);function Mo({value:e,onValueChange:n,disabled:s,className:r,children:t}){const i=l.useId();return o.jsx(_e.Provider,{value:{value:e,onValueChange:n,disabled:s,name:i},children:o.jsx("div",{role:"radiogroup",className:g(z.root,r),children:t})})}function Io({value:e,disabled:n,children:s}){const r=l.useContext(_e);if(!r)throw new Error("RadioGroup.Item must be inside RadioGroup.Root");const t=n||r.disabled,i=o.jsxs(o.Fragment,{children:[o.jsx("input",{type:"radio",className:z.input,name:r.name,value:e,checked:r.value===e,disabled:t,onChange:()=>r.onValueChange(e)}),o.jsx("span",{className:g(z.orb,"spRadioOrb"),"aria-hidden":"true"})]});return s==null?o.jsx("span",{className:z.item,children:i}):o.jsxs("label",{className:g(z.item,z.selfLabeled),children:[i,s]})}const So=Object.freeze(Object.defineProperty({__proto__:null,Item:Io,Root:Mo},Symbol.toStringTag,{value:"Module"})),Do="_progress_1cre6_16",Eo={progress:Do};function To({value:e,max:n=100,className:s,style:r,...t}){const i=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(Eo.progress,s),style:r,children:o.jsx("div",{style:{width:`${i}%`,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 No(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 Ho(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 Oo(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 Po(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 Vo(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 Zo(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 Bo(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 Ao(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 Fo(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 Wo(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 Go(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 Uo(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 Xo(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 Ko(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 Yo(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 Qo(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 Jo(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 es(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 ts(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 ns="_dialog_1qqku_2",os="_inner_1qqku_34",ss="_size4_1qqku_39",rs="_title_1qqku_43",ls="_closeX_1qqku_51",H={dialog:ns,inner:os,size4:ss,title:rs,closeX:ls};let Z=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[i,c]=l.useState(!1),a=s!==void 0,_=a?s:i,f=m=>{a||c(m),r==null||r(m)},u=l.useId(),p=l.useId(),[d,C]=l.useState(!1);return o.jsx(Ce.Provider,{value:{open:_,setOpen:f,titleId:u,descId:p,alert:e,hasDesc:d,setHasDesc:C},children:t})}}const is=X(!1),ge=(e,n)=>{if(!l.isValidElement(e))return e;const s=e;return l.cloneElement(s,{onClick:r=>{var t,i;(i=(t=s.props).onClick)==null||i.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,...i}){const c=I(),a=l.useRef(null),_=l.useRef(!1),f=l.useRef(!1);return l.useEffect(()=>{const u=a.current;u&&(c.open&&!u.open?u.showModal():!c.open&&u.open&&u.close())},[c.open]),l.useEffect(()=>{if(c.open)return Z+=1,Z===1&&(document.body.style.overflow="hidden"),()=>{Z-=1,Z===0&&(document.body.style.overflow="")}},[c.open]),o.jsx("dialog",{...i,ref:a,role:c.alert?"alertdialog":void 0,"aria-labelledby":c.titleId,"aria-describedby":c.hasDesc?c.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])')&&(_.current=!0))},onCancel:u=>{if(u.preventDefault(),_.current){_.current=!1;return}c.setOpen(!1)},onClose:()=>{c.open&&c.setOpen(!1)},onPointerDown:u=>{f.current=u.target===a.current},onClick:u=>{!c.alert&&u.target===a.current&&f.current&&c.setOpen(!1)},children:o.jsxs("div",{className:H.inner,children:[!c.alert&&o.jsx("button",{type:"button",className:H.closeX,"aria-label":"Close",onClick:()=>c.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 cs=Object.freeze(Object.defineProperty({__proto__:null,Close:K,Content:he,Description:xe,Root:is,Title:ve,Trigger:me,makeRoot:X,useDialog:I},Symbol.toStringTag,{value:"Module"})),as=X(!0),us=me,ds=he,fs=ve,_s=xe,ps=K,Cs=K,gs=Object.freeze(Object.defineProperty({__proto__:null,Action:Cs,Cancel:ps,Content:ds,Description:_s,Root:as,Title:fs,Trigger:us},Symbol.toStringTag,{value:"Module"})),ms="_menu_1hwyv_1",hs="_label_1hwyv_16",vs="_item_1hwyv_26",xs="_danger_1hwyv_45",bs="_separator_1hwyv_49",O={menu:ms,label:hs,item:vs,danger:xs,separator:bs},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),ws=()=>{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},qe=l.createContext(null),ke=()=>{const e=l.useContext(qe);if(!e)throw new Error("DropdownMenu parts must be inside DropdownMenu.Root");return e};function js(e){return e.current?(e.current=!1,!0):!1}function se(e){e.current=!0}function ys({children:e}){const[n,s]=l.useState(!1),r=l.useId(),t=l.useRef(null),i=l.useRef(null),c=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:i,children:o.jsx(Re.Provider,{value:c,children:o.jsx(qe.Provider,{value:a,children:e})})})})})}function Rs({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:i=>{var c,a;(a=(c=t.props).onClick)==null||a.call(c,i),!js(r)&&n.setOpen(!n.open)}})}function $s({align:e="start",children:n}){const s=Y(),r=je(),t=ws(),i=$e(),c=ke(),[a,_]=l.useState(null);return l.useLayoutEffect(()=>{var u;const f=t.current;if(f)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";_({top:d.bottom+6,left:C,right:m})}f.showPopover(),(u=f.querySelector('[role="menuitem"]'))==null||u.focus()}else f.matches(":popover-open")&&f.hidePopover()},[s.open,e,t,r]),l.useEffect(()=>{if(!s.open)return;const f=s.setOpen,u=()=>f(!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:f=>{if(f.nativeEvent.newState==="closed"){const u=c.current;c.current=!1,u||(i.current=!0,setTimeout(()=>{i.current=!1},300)),s.open&&s.setOpen(!1)}},onKeyDown:f=>{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);f.key==="ArrowDown"?(f.preventDefault(),(C=u[Math.min(p+1,u.length-1)])==null||C.focus()):f.key==="ArrowUp"?(f.preventDefault(),(m=u[Math.max(p-1,0)])==null||m.focus()):f.key==="Home"?(f.preventDefault(),(h=u[0])==null||h.focus()):f.key==="End"?(f.preventDefault(),(v=u[u.length-1])==null||v.focus()):f.key==="Escape"&&(s.setOpen(!1),(x=r.current)==null||x.focus())},children:n})}function qs({children:e}){return o.jsx("div",{className:O.label,children:e})}function ks({asChild:e,color:n,onSelect:s,children:r}){const t=Y(),i=ke(),c=g(O.item,n==="danger"&&O.danger),a=()=>{se(i),t.setOpen(!1),s==null||s()};if(e&&l.isValidElement(r)){const _=r,{className:f,onClick:u,children:p,role:d,tabIndex:C,...m}=_.props,h=_.ref;return l.createElement(_.type,{key:_.key,ref:h,role:"menuitem",tabIndex:-1,...m,className:g(c,f),onClick:v=>{u==null||u(v),se(i),t.setOpen(!1)}},p)}return o.jsx("button",{type:"button",role:"menuitem",tabIndex:-1,className:c,onClick:a,children:r})}function Ls(){return o.jsx("div",{role:"separator",className:O.separator})}const zs=Object.freeze(Object.defineProperty({__proto__:null,Content:$s,Item:ks,Label:qs,Root:ys,Separator:Ls,Trigger:Rs},Symbol.toStringTag,{value:"Module"})),Ms="_list_1hc3r_19",Is="_trigger_1hc3r_28",Le={list:Ms,trigger:Is},ze=l.createContext(null),Me=()=>{const e=l.useContext(ze);if(!e)throw new Error("Tabs parts must be inside Tabs.Root");return e};function Ss({value:e,onValueChange:n,className:s,children:r}){const t=l.useId();return o.jsx(ze.Provider,{value:{value:e,onValueChange:n,id:t},children:o.jsx("div",{className:s,children:r})})}function Ds({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 Es({value:e,className:n,children:s,...r}){const t=Me(),i=t.value===e;return o.jsx("button",{...r,type:"button",role:"tab",id:`${t.id}-tab-${e}`,"aria-selected":i,"aria-controls":`${t.id}-panel-${e}`,tabIndex:i?0:-1,"data-state":i?"active":"inactive",className:g(Le.trigger,"spTabsTrigger",n),onClick:()=>t.onValueChange(e),children:s})}function Ts({value:e,children:n}){const s=Me();return s.value!==e?null:o.jsx("div",{role:"tabpanel",id:`${s.id}-panel-${e}`,"aria-labelledby":`${s.id}-tab-${e}`,children:n})}const Ns=Object.freeze(Object.defineProperty({__proto__:null,Content:Ts,List:Ds,Root:Ss,Trigger:Es},Symbol.toStringTag,{value:"Module"}));exports.AlertDialog=gs;exports.Badge=cn;exports.BookmarkIcon=ts;exports.Box=Lt;exports.Button=Sn;exports.Card=pn;exports.ChatBubbleIcon=Ho;exports.CheckIcon=Ao;exports.ChevronDownIcon=Qo;exports.ChevronLeftIcon=es;exports.ChevronRightIcon=Jo;exports.ChevronUpIcon=Yo;exports.Dialog=cs;exports.DropdownMenu=zs;exports.EnterFullScreenIcon=Bo;exports.ExitFullScreenIcon=Zo;exports.Flex=kt;exports.Grid=At;exports.Heading=le;exports.HeartFilledIcon=Vo;exports.HeartIcon=Ko;exports.IconToggle=Yn;exports.Link=it;exports.Loader=Zn;exports.MagnifyingGlassIcon=Xo;exports.MinusIcon=Uo;exports.Pencil1Icon=Po;exports.PersonIcon=Go;exports.PlusIcon=Oo;exports.Progress=To;exports.QuestionMarkCircledIcon=Wo;exports.RadioGroup=So;exports.ScrollArea=mn;exports.Select=ao;exports.Separator=dn;exports.Share2Icon=No;exports.Slider=Ro;exports.Tabs=Ns;exports.Text=re;exports.TextArea=vo;exports.TextField=go;exports.Tooltip=ie;exports.TrashIcon=Fo;exports.XIcon=pe;
2
2
  //# sourceMappingURL=index.cjs.map