@pstdio/ui 0.1.1 → 0.2.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.
package/dist/index.js CHANGED
@@ -1,14 +1,17 @@
1
- import { Alert as ke, Breadcrumb as ce, Checkbox as Re, Box as L, Text as C, Dialog as q, CloseButton as Qe, Stack as $, Button as fe, IconButton as We, Grid as Ze, ScrollArea as Ie, Timeline as re, HStack as ee, Image as et, List as Ve, Flex as ge, Badge as Le, Link as Ae, Heading as tt, useEnvironmentContext as lt, Icon as ne, Collapsible as pe, MenuItem as nt, Menu as xe, AbsoluteCenter as it, Separator as rt, Switch as ue, Wrap as Fe, Spacer as ot, createToaster as st, Portal as at, Toaster as ct, Toast as Pe, Spinner as dt } from "@chakra-ui/react";
2
- import { ChakraProvider as hn } from "@chakra-ui/react";
3
- import { jsx as n, jsxs as b, Fragment as ht } from "react/jsx-runtime";
1
+ import { Alert as Ie, Breadcrumb as de, Checkbox as Le, Box as D, Text as w, Dialog as J, CloseButton as ot, Stack as R, Button as ue, IconButton as $e, Grid as st, ScrollArea as Pe, Timeline as oe, HStack as F, Image as at, List as Ke, Flex as me, Badge as ze, Link as Be, Heading as ct, useEnvironmentContext as dt, Icon as ne, Collapsible as xe, MenuItem as ht, Menu as ie, AbsoluteCenter as ft, Separator as gt, Switch as be, Wrap as qe, Spacer as ut, createToaster as mt, Portal as pt, Toaster as bt, Toast as Te, Spinner as xt } from "@chakra-ui/react";
2
+ import { ChakraProvider as Vn } from "@chakra-ui/react";
3
+ import { jsx as i, jsxs as b, Fragment as St } from "react/jsx-runtime";
4
4
  import { c as T } from "react/compiler-runtime";
5
- import * as ze from "react";
6
- import { useState as De, useRef as Ye, useEffect as Be, Component as ft, createContext as mt, useContext as ut } from "react";
7
- import { D as gt, a as Ne, E as pt } from "./empty-state-B8mbv7ZH.js";
8
- import { useVirtualizer as xt } from "@tanstack/react-virtual";
9
- import { ChevronRight as Te, ChevronDown as Ue, FileText as Oe, ChevronLeft as bt, FolderOpen as St, Folder as yt, Home as Ct, ChevronUp as vt, Info as wt, CircleCheck as kt, CircleAlert as It, CircleDashed as Pt, GitBranchIcon as Dt, Plus as Tt, MoreHorizontal as $t } from "lucide-react";
10
- import { T as _e } from "./tooltip-Gm7PLwZG.js";
11
- import { useReactTable as Rt, getExpandedRowModel as _t, getCoreRowModel as Lt, flexRender as zt } from "@tanstack/react-table";
5
+ import * as He from "react";
6
+ import { useState as Re, useRef as Je, useEffect as We, Component as yt, createContext as vt, useContext as Ct } from "react";
7
+ import { D as wt, a as Qe, E as kt } from "./empty-state-B8mbv7ZH.js";
8
+ import { useVirtualizer as It } from "@tanstack/react-virtual";
9
+ import { ChevronRight as pe, ChevronDown as Ze, FileText as Oe, ChevronLeft as Pt, FolderOpen as Tt, Folder as _t, Home as $t, ChevronUp as Rt, Info as Dt, CircleCheck as Lt, CircleAlert as Et, CircleDashed as zt, PanelLeftClose as Ht, GitBranchIcon as Nt, Plus as Wt, MoreHorizontal as At } from "lucide-react";
10
+ import { T as Ee } from "./tooltip-Gm7PLwZG.js";
11
+ import { useStore as Mt } from "zustand";
12
+ import { persist as Bt, createJSONStorage as Ot } from "zustand/middleware";
13
+ import { createStore as jt } from "zustand/vanilla";
14
+ import { useReactTable as Gt, getExpandedRowModel as Xt, getCoreRowModel as Ft, flexRender as Vt } from "@tanstack/react-table";
12
15
  import "@fontsource/inter/400.css";
13
16
  import "@fontsource/inter/500.css";
14
17
  import "@fontsource/playfair-display/400.css";
@@ -17,8 +20,8 @@ import "@fontsource/playfair-display/700.css";
17
20
  import "@fontsource/onest/400.css";
18
21
  import "@fontsource/onest/500.css";
19
22
  import "@fontsource/onest/700.css";
20
- import { t as mn } from "./theme-C7CIuIPZ.js";
21
- const Et = ze.forwardRef(function(e, l) {
23
+ import { t as Un } from "./theme-C7CIuIPZ.js";
24
+ const Yt = He.forwardRef(function(e, l) {
22
25
  const t = T(19);
23
26
  let r, s, o, a, c, d;
24
27
  t[0] !== e ? ({
@@ -30,19 +33,19 @@ const Et = ze.forwardRef(function(e, l) {
30
33
  ...a
31
34
  } = e, t[0] = e, t[1] = r, t[2] = s, t[3] = o, t[4] = a, t[5] = c, t[6] = d) : (r = t[1], s = t[2], o = t[3], a = t[4], c = t[5], d = t[6]);
32
35
  let h;
33
- t[7] !== o || t[8] !== c ? (h = c || /* @__PURE__ */ n(ke.Indicator, { children: o }), t[7] = o, t[8] = c, t[9] = h) : h = t[9];
36
+ t[7] !== o || t[8] !== c ? (h = c || /* @__PURE__ */ i(Ie.Indicator, { children: o }), t[7] = o, t[8] = c, t[9] = h) : h = t[9];
37
+ let g;
38
+ t[10] !== r || t[11] !== d ? (g = r ? /* @__PURE__ */ b(Ie.Content, { children: [
39
+ /* @__PURE__ */ i(Ie.Title, { children: d }),
40
+ /* @__PURE__ */ i(Ie.Description, { children: r })
41
+ ] }) : /* @__PURE__ */ i(Ie.Title, { flex: "1", children: d }), t[10] = r, t[11] = d, t[12] = g) : g = t[12];
34
42
  let f;
35
- t[10] !== r || t[11] !== d ? (f = r ? /* @__PURE__ */ b(ke.Content, { children: [
36
- /* @__PURE__ */ n(ke.Title, { children: d }),
37
- /* @__PURE__ */ n(ke.Description, { children: r })
38
- ] }) : /* @__PURE__ */ n(ke.Title, { flex: "1", children: d }), t[10] = r, t[11] = d, t[12] = f) : f = t[12];
39
- let m;
40
- return t[13] !== s || t[14] !== l || t[15] !== a || t[16] !== h || t[17] !== f ? (m = /* @__PURE__ */ b(ke.Root, { ref: l, ...a, children: [
43
+ return t[13] !== s || t[14] !== l || t[15] !== a || t[16] !== h || t[17] !== g ? (f = /* @__PURE__ */ b(Ie.Root, { ref: l, ...a, children: [
41
44
  h,
42
- f,
45
+ g,
43
46
  s
44
- ] }), t[13] = s, t[14] = l, t[15] = a, t[16] = h, t[17] = f, t[18] = m) : m = t[18], m;
45
- }), jl = ze.forwardRef(function(e, l) {
47
+ ] }), t[13] = s, t[14] = l, t[15] = a, t[16] = h, t[17] = g, t[18] = f) : f = t[18], f;
48
+ }), wn = He.forwardRef(function(e, l) {
46
49
  const t = T(21);
47
50
  let r, s, o, a, c;
48
51
  t[0] !== e ? ({
@@ -54,22 +57,22 @@ const Et = ze.forwardRef(function(e, l) {
54
57
  } = e, t[0] = e, t[1] = r, t[2] = s, t[3] = o, t[4] = a, t[5] = c) : (r = t[1], s = t[2], o = t[3], a = t[4], c = t[5]);
55
58
  let d;
56
59
  if (t[6] !== r || t[7] !== s || t[8] !== a) {
57
- let m;
58
- t[10] !== r || t[11] !== s.length || t[12] !== a ? (m = (u, g) => {
59
- const p = g === s.length - 1, x = !!(u.url || u.onClick);
60
+ let f;
61
+ t[10] !== r || t[11] !== s.length || t[12] !== a ? (f = (u, m) => {
62
+ const p = m === s.length - 1, x = !!(u.url || u.onClick);
60
63
  let S;
61
- return p && !x ? S = /* @__PURE__ */ n(ce.CurrentLink, { children: u.title }) : u.url ? S = r ? /* @__PURE__ */ n(ce.Link, { asChild: !0, children: /* @__PURE__ */ n(r, { to: u.url, children: u.title }) }) : /* @__PURE__ */ n(ce.Link, { href: u.url, children: u.title }) : u.onClick ? S = /* @__PURE__ */ n(ce.Link, { as: "button", type: "button", onClick: u.onClick, children: u.title }) : S = /* @__PURE__ */ n(ce.Link, { children: u.title }), /* @__PURE__ */ b(ce.Item, { children: [
64
+ return p && !x ? S = /* @__PURE__ */ i(de.CurrentLink, { children: u.title }) : u.url ? S = r ? /* @__PURE__ */ i(de.Link, { asChild: !0, children: /* @__PURE__ */ i(r, { to: u.url, children: u.title }) }) : /* @__PURE__ */ i(de.Link, { href: u.url, children: u.title }) : u.onClick ? S = /* @__PURE__ */ i(de.Link, { as: "button", type: "button", onClick: u.onClick, children: u.title }) : S = /* @__PURE__ */ i(de.Link, { children: u.title }), /* @__PURE__ */ b(de.Item, { children: [
62
65
  S,
63
- p ? null : /* @__PURE__ */ n(ce.Separator, { as: "span", "aria-hidden": !0, ml: "xs", children: a })
64
- ] }, g);
65
- }, t[10] = r, t[11] = s.length, t[12] = a, t[13] = m) : m = t[13], d = s.map(m), t[6] = r, t[7] = s, t[8] = a, t[9] = d;
66
+ p ? null : /* @__PURE__ */ i(de.Separator, { as: "span", "aria-hidden": !0, ml: "xs", children: a })
67
+ ] }, m);
68
+ }, t[10] = r, t[11] = s.length, t[12] = a, t[13] = f) : f = t[13], d = s.map(f), t[6] = r, t[7] = s, t[8] = a, t[9] = d;
66
69
  } else
67
70
  d = t[9];
68
71
  let h;
69
- t[14] !== c || t[15] !== d ? (h = /* @__PURE__ */ n(ce.List, { gap: c, children: d }), t[14] = c, t[15] = d, t[16] = h) : h = t[16];
70
- let f;
71
- return t[17] !== l || t[18] !== o || t[19] !== h ? (f = /* @__PURE__ */ n(ce.Root, { ref: l, ...o, children: h }), t[17] = l, t[18] = o, t[19] = h, t[20] = f) : f = t[20], f;
72
- }), Xl = ze.forwardRef(function(e, l) {
72
+ t[14] !== c || t[15] !== d ? (h = /* @__PURE__ */ i(de.List, { gap: c, children: d }), t[14] = c, t[15] = d, t[16] = h) : h = t[16];
73
+ let g;
74
+ return t[17] !== l || t[18] !== o || t[19] !== h ? (g = /* @__PURE__ */ i(de.Root, { ref: l, ...o, children: h }), t[17] = l, t[18] = o, t[19] = h, t[20] = g) : g = t[20], g;
75
+ }), kn = He.forwardRef(function(e, l) {
73
76
  const t = T(26);
74
77
  let r, s, o, a, c, d;
75
78
  t[0] !== e ? ({
@@ -80,22 +83,22 @@ const Et = ze.forwardRef(function(e, l) {
80
83
  disabled: d,
81
84
  ...a
82
85
  } = e, t[0] = e, t[1] = r, t[2] = s, t[3] = o, t[4] = a, t[5] = c, t[6] = d) : (r = t[1], s = t[2], o = t[3], a = t[4], c = t[5], d = t[6]);
83
- const h = d === void 0 ? !1 : d, f = h ? "not-allowed" : "pointer";
84
- let m;
85
- t[7] !== o || t[8] !== l ? (m = /* @__PURE__ */ n(Re.HiddenInput, { ref: l, ...o }), t[7] = o, t[8] = l, t[9] = m) : m = t[9];
86
+ const h = d === void 0 ? !1 : d, g = h ? "not-allowed" : "pointer";
87
+ let f;
88
+ t[7] !== o || t[8] !== l ? (f = /* @__PURE__ */ i(Le.HiddenInput, { ref: l, ...o }), t[7] = o, t[8] = l, t[9] = f) : f = t[9];
86
89
  let u;
87
- t[10] !== s ? (u = s || /* @__PURE__ */ n(Re.Indicator, {}), t[10] = s, t[11] = u) : u = t[11];
88
- let g;
89
- t[12] !== f || t[13] !== u ? (g = /* @__PURE__ */ n(Re.Control, { borderRadius: "xs", cursor: f, children: u }), t[12] = f, t[13] = u, t[14] = g) : g = t[14];
90
+ t[10] !== s ? (u = s || /* @__PURE__ */ i(Le.Indicator, {}), t[10] = s, t[11] = u) : u = t[11];
91
+ let m;
92
+ t[12] !== g || t[13] !== u ? (m = /* @__PURE__ */ i(Le.Control, { borderRadius: "xs", cursor: g, children: u }), t[12] = g, t[13] = u, t[14] = m) : m = t[14];
90
93
  let p;
91
- t[15] !== r || t[16] !== f ? (p = r != null && /* @__PURE__ */ n(Re.Label, { cursor: f, children: r }), t[15] = r, t[16] = f, t[17] = p) : p = t[17];
94
+ t[15] !== r || t[16] !== g ? (p = r != null && /* @__PURE__ */ i(Le.Label, { cursor: g, children: r }), t[15] = r, t[16] = g, t[17] = p) : p = t[17];
92
95
  let x;
93
- return t[18] !== h || t[19] !== f || t[20] !== a || t[21] !== c || t[22] !== m || t[23] !== g || t[24] !== p ? (x = /* @__PURE__ */ b(Re.Root, { ref: c, disabled: h, cursor: f, ...a, children: [
96
+ return t[18] !== h || t[19] !== g || t[20] !== a || t[21] !== c || t[22] !== f || t[23] !== m || t[24] !== p ? (x = /* @__PURE__ */ b(Le.Root, { ref: c, disabled: h, cursor: g, ...a, children: [
97
+ f,
94
98
  m,
95
- g,
96
99
  p
97
- ] }), t[18] = h, t[19] = f, t[20] = a, t[21] = c, t[22] = m, t[23] = g, t[24] = p, t[25] = x) : x = t[25], x;
98
- }), Ht = (i) => {
100
+ ] }), t[18] = h, t[19] = g, t[20] = a, t[21] = c, t[22] = f, t[23] = m, t[24] = p, t[25] = x) : x = t[25], x;
101
+ }), Ut = (n) => {
99
102
  const e = T(3);
100
103
  let l;
101
104
  e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (l = {
@@ -105,20 +108,20 @@ const Et = ze.forwardRef(function(e, l) {
105
108
  width: "100%"
106
109
  }, e[0] = l) : l = e[0];
107
110
  let t;
108
- return e[1] !== i ? (t = /* @__PURE__ */ n(L, { ...i, css: l }), e[1] = i, e[2] = t) : t = e[2], t;
109
- }, Vl = (i) => {
111
+ return e[1] !== n ? (t = /* @__PURE__ */ i(D, { ...n, css: l }), e[1] = n, e[2] = t) : t = e[2], t;
112
+ }, In = (n) => {
110
113
  const e = T(2);
111
114
  let l;
112
- return e[0] !== i ? (l = /* @__PURE__ */ n(L, { p: "2", children: /* @__PURE__ */ n(C, { color: "fg.muted", fontWeight: "medium", textStyle: "sm", whiteSpace: "nowrap", ...i }) }), e[0] = i, e[1] = l) : l = e[1], l;
113
- }, Fl = (i) => {
114
- const [e, l] = De(!1), {
115
+ return e[0] !== n ? (l = /* @__PURE__ */ i(D, { p: "2", children: /* @__PURE__ */ i(w, { color: "fg.muted", fontWeight: "medium", textStyle: "sm", whiteSpace: "nowrap", ...n }) }), e[0] = n, e[1] = l) : l = e[1], l;
116
+ }, Pn = (n) => {
117
+ const [e, l] = Re(!1), {
115
118
  headline: t,
116
119
  buttonText: r,
117
120
  notificationText: s,
118
121
  onDelete: o,
119
122
  open: a,
120
123
  onClose: c
121
- } = i, d = async () => {
124
+ } = n, d = async () => {
122
125
  l(!0);
123
126
  try {
124
127
  await o(), c();
@@ -127,22 +130,22 @@ const Et = ze.forwardRef(function(e, l) {
127
130
  l(!1);
128
131
  }
129
132
  };
130
- return /* @__PURE__ */ b(q.Root, { open: a, onOpenChange: c, children: [
131
- /* @__PURE__ */ n(q.Backdrop, {}),
132
- /* @__PURE__ */ n(q.Positioner, { children: /* @__PURE__ */ b(q.Content, { children: [
133
- /* @__PURE__ */ b(q.Header, { children: [
134
- /* @__PURE__ */ n(C, { textStyle: "heading/M", children: t }),
135
- /* @__PURE__ */ n(q.CloseTrigger, { asChild: !0, children: /* @__PURE__ */ n(Qe, { size: "sm" }) })
133
+ return /* @__PURE__ */ b(J.Root, { open: a, onOpenChange: c, children: [
134
+ /* @__PURE__ */ i(J.Backdrop, {}),
135
+ /* @__PURE__ */ i(J.Positioner, { children: /* @__PURE__ */ b(J.Content, { children: [
136
+ /* @__PURE__ */ b(J.Header, { children: [
137
+ /* @__PURE__ */ i(w, { textStyle: "heading/M", children: t }),
138
+ /* @__PURE__ */ i(J.CloseTrigger, { asChild: !0, children: /* @__PURE__ */ i(ot, { size: "sm" }) })
136
139
  ] }),
137
- /* @__PURE__ */ n(q.Body, { children: s }),
138
- /* @__PURE__ */ n(q.Footer, { children: /* @__PURE__ */ b($, { direction: "row", gap: "1", children: [
139
- /* @__PURE__ */ n(fe, { onClick: c, children: "Close" }),
140
- /* @__PURE__ */ n(fe, { loading: e, variant: "solid", colorPalette: "red", onClick: d, children: r })
140
+ /* @__PURE__ */ i(J.Body, { children: s }),
141
+ /* @__PURE__ */ i(J.Footer, { children: /* @__PURE__ */ b(R, { direction: "row", gap: "1", children: [
142
+ /* @__PURE__ */ i(ue, { onClick: c, children: "Close" }),
143
+ /* @__PURE__ */ i(ue, { loading: e, variant: "solid", colorPalette: "red", onClick: d, children: r })
141
144
  ] }) })
142
145
  ] }) })
143
146
  ] });
144
- }, Mt = (i) => {
145
- switch (i.split(".").pop()?.toLowerCase()) {
147
+ }, Kt = (n) => {
148
+ switch (n.split(".").pop()?.toLowerCase()) {
146
149
  case "ts":
147
150
  case "tsx":
148
151
  return "typescript";
@@ -171,180 +174,180 @@ const Et = ze.forwardRef(function(e, l) {
171
174
  default:
172
175
  return "plaintext";
173
176
  }
174
- }, Wt = (i) => {
177
+ }, qt = (n) => {
175
178
  const e = T(37), {
176
179
  diff: l
177
- } = i, [t, r] = De(!0), s = l.newPath || l.oldPath || "unknown";
180
+ } = n, [t, r] = Re(!0), s = l.newPath || l.oldPath || "unknown";
178
181
  let o;
179
- e[0] !== s ? (o = Mt(s), e[0] = s, e[1] = o) : o = e[1];
182
+ e[0] !== s ? (o = Kt(s), e[0] = s, e[1] = o) : o = e[1];
180
183
  const a = o, c = l.additions ?? 0, d = l.deletions ?? 0, h = t ? "1px solid" : "none";
181
- let f;
182
- e[2] !== t ? (f = () => r(!t), e[2] = t, e[3] = f) : f = e[3];
183
- const m = t ? "Collapse" : "Expand";
184
+ let g;
185
+ e[2] !== t ? (g = () => r(!t), e[2] = t, e[3] = g) : g = e[3];
186
+ const f = t ? "Collapse" : "Expand";
184
187
  let u;
185
188
  e[4] !== t ? (u = (k) => {
186
189
  k.stopPropagation(), r(!t);
187
190
  }, e[4] = t, e[5] = u) : u = e[5];
188
- let g;
189
- e[6] !== t ? (g = t ? /* @__PURE__ */ n(Ue, { size: 16 }) : /* @__PURE__ */ n(Te, { size: 16 }), e[6] = t, e[7] = g) : g = e[7];
191
+ let m;
192
+ e[6] !== t ? (m = t ? /* @__PURE__ */ i(Ze, { size: 16 }) : /* @__PURE__ */ i(pe, { size: 16 }), e[6] = t, e[7] = m) : m = e[7];
190
193
  let p;
191
- e[8] !== m || e[9] !== u || e[10] !== g ? (p = /* @__PURE__ */ n(We, { "aria-label": m, variant: "ghost", size: "2xs", onClick: u, flexShrink: 0, children: g }), e[8] = m, e[9] = u, e[10] = g, e[11] = p) : p = e[11];
194
+ e[8] !== f || e[9] !== u || e[10] !== m ? (p = /* @__PURE__ */ i($e, { "aria-label": f, variant: "ghost", size: "2xs", onClick: u, flexShrink: 0, children: m }), e[8] = f, e[9] = u, e[10] = m, e[11] = p) : p = e[11];
192
195
  let x;
193
- e[12] !== l.change || e[13] !== l.newPath || e[14] !== l.oldPath || e[15] !== s ? (x = l.change === "renamed" ? /* @__PURE__ */ b(C, { as: "span", textStyle: "sm", children: [
194
- /* @__PURE__ */ n(C, { as: "span", color: "fg.muted", textDecoration: "line-through", mr: "xs", children: l.oldPath }),
195
- /* @__PURE__ */ n(L, { as: "span", display: "inline-flex", alignItems: "center", verticalAlign: "middle", mr: "xs", children: /* @__PURE__ */ n(Te, { size: 12 }) }),
196
+ e[12] !== l.change || e[13] !== l.newPath || e[14] !== l.oldPath || e[15] !== s ? (x = l.change === "renamed" ? /* @__PURE__ */ b(w, { as: "span", textStyle: "sm", children: [
197
+ /* @__PURE__ */ i(w, { as: "span", color: "fg.muted", textDecoration: "line-through", mr: "xs", children: l.oldPath }),
198
+ /* @__PURE__ */ i(D, { as: "span", display: "inline-flex", alignItems: "center", verticalAlign: "middle", mr: "xs", children: /* @__PURE__ */ i(pe, { size: 12 }) }),
196
199
  l.newPath
197
- ] }) : l.change === "deleted" ? /* @__PURE__ */ n(C, { as: "span", color: "fg.muted", textDecoration: "line-through", textStyle: "sm", children: s }) : /* @__PURE__ */ n(C, { as: "span", textStyle: "sm", children: s }), e[12] = l.change, e[13] = l.newPath, e[14] = l.oldPath, e[15] = s, e[16] = x) : x = e[16];
200
+ ] }) : l.change === "deleted" ? /* @__PURE__ */ i(w, { as: "span", color: "fg.muted", textDecoration: "line-through", textStyle: "sm", children: s }) : /* @__PURE__ */ i(w, { as: "span", textStyle: "sm", children: s }), e[12] = l.change, e[13] = l.newPath, e[14] = l.oldPath, e[15] = s, e[16] = x) : x = e[16];
198
201
  let S;
199
- e[17] !== s || e[18] !== x ? (S = /* @__PURE__ */ n(L, { minW: 0, overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap", title: s, children: x }), e[17] = s, e[18] = x, e[19] = S) : S = e[19];
202
+ e[17] !== s || e[18] !== x ? (S = /* @__PURE__ */ i(D, { minW: 0, overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap", title: s, children: x }), e[17] = s, e[18] = x, e[19] = S) : S = e[19];
200
203
  let y;
201
- e[20] !== c || e[21] !== d ? (y = /* @__PURE__ */ n(L, { flexShrink: 0, children: /* @__PURE__ */ n(Ne, { variant: "ghost", additions: c, deletions: d }) }), e[20] = c, e[21] = d, e[22] = y) : y = e[22];
204
+ e[20] !== c || e[21] !== d ? (y = /* @__PURE__ */ i(D, { flexShrink: 0, children: /* @__PURE__ */ i(Qe, { variant: "ghost", additions: c, deletions: d }) }), e[20] = c, e[21] = d, e[22] = y) : y = e[22];
202
205
  let v;
203
- e[23] !== h || e[24] !== f || e[25] !== p || e[26] !== S || e[27] !== y ? (v = /* @__PURE__ */ b(Ze, { templateColumns: "auto minmax(0, 1fr) auto", px: "xs", py: "2xs", alignItems: "center", justifyContent: "space-between", borderBottom: h, borderColor: "border.muted", cursor: "pointer", onClick: f, gap: "sm", children: [
206
+ e[23] !== h || e[24] !== g || e[25] !== p || e[26] !== S || e[27] !== y ? (v = /* @__PURE__ */ b(st, { templateColumns: "auto minmax(0, 1fr) auto", px: "xs", py: "2xs", alignItems: "center", justifyContent: "space-between", borderBottom: h, borderColor: "border.muted", cursor: "pointer", onClick: g, gap: "sm", children: [
204
207
  p,
205
208
  S,
206
209
  y
207
- ] }), e[23] = h, e[24] = f, e[25] = p, e[26] = S, e[27] = y, e[28] = v) : v = e[28];
208
- let w;
209
- e[29] !== l.newContent || e[30] !== l.oldContent || e[31] !== t || e[32] !== a ? (w = t && /* @__PURE__ */ n(L, { height: "400px", bg: "bg", children: /* @__PURE__ */ n(gt, { original: l.oldContent || "", modified: l.newContent || "", language: a, sideBySide: !1, disableScroll: !1 }) }), e[29] = l.newContent, e[30] = l.oldContent, e[31] = t, e[32] = a, e[33] = w) : w = e[33];
210
+ ] }), e[23] = h, e[24] = g, e[25] = p, e[26] = S, e[27] = y, e[28] = v) : v = e[28];
211
+ let I;
212
+ e[29] !== l.newContent || e[30] !== l.oldContent || e[31] !== t || e[32] !== a ? (I = t && /* @__PURE__ */ i(D, { height: "400px", bg: "bg", children: /* @__PURE__ */ i(wt, { original: l.oldContent || "", modified: l.newContent || "", language: a, sideBySide: !1, disableScroll: !1 }) }), e[29] = l.newContent, e[30] = l.oldContent, e[31] = t, e[32] = a, e[33] = I) : I = e[33];
210
213
  let P;
211
- return e[34] !== v || e[35] !== w ? (P = /* @__PURE__ */ b(L, { border: "1px solid", borderColor: "border.muted", borderRadius: "xs", overflow: "hidden", bg: "bg", width: "100%", maxW: "100%", children: [
214
+ return e[34] !== v || e[35] !== I ? (P = /* @__PURE__ */ b(D, { border: "1px solid", borderColor: "border.muted", borderRadius: "xs", overflow: "hidden", bg: "bg", width: "100%", maxW: "100%", children: [
212
215
  v,
213
- w
214
- ] }), e[34] = v, e[35] = w, e[36] = P) : P = e[36], P;
215
- }, me = ze.forwardRef(function(e, l) {
216
+ I
217
+ ] }), e[34] = v, e[35] = I, e[36] = P) : P = e[36], P;
218
+ }, he = He.forwardRef(function(e, l) {
216
219
  const t = T(33);
217
- let r, s, o, a, c, d, h, f, m, u;
220
+ let r, s, o, a, c, d, h, g, f, u;
218
221
  t[0] !== e ? ({
219
222
  children: r,
220
223
  viewportRef: u,
221
- viewportProps: m,
224
+ viewportProps: f,
222
225
  contentProps: s,
223
- verticalScrollbarProps: f,
226
+ verticalScrollbarProps: g,
224
227
  horizontalScrollbarProps: o,
225
228
  showVerticalScrollbar: c,
226
229
  showHorizontalScrollbar: d,
227
230
  showCorner: h,
228
231
  ...a
229
- } = e, t[0] = e, t[1] = r, t[2] = s, t[3] = o, t[4] = a, t[5] = c, t[6] = d, t[7] = h, t[8] = f, t[9] = m, t[10] = u) : (r = t[1], s = t[2], o = t[3], a = t[4], c = t[5], d = t[6], h = t[7], f = t[8], m = t[9], u = t[10]);
230
- const g = c === void 0 ? !0 : c, p = d === void 0 ? !1 : d, x = h === void 0 ? g && p : h;
232
+ } = e, t[0] = e, t[1] = r, t[2] = s, t[3] = o, t[4] = a, t[5] = c, t[6] = d, t[7] = h, t[8] = g, t[9] = f, t[10] = u) : (r = t[1], s = t[2], o = t[3], a = t[4], c = t[5], d = t[6], h = t[7], g = t[8], f = t[9], u = t[10]);
233
+ const m = c === void 0 ? !0 : c, p = d === void 0 ? !1 : d, x = h === void 0 ? m && p : h;
231
234
  let S;
232
- t[11] !== r || t[12] !== s ? (S = /* @__PURE__ */ n(Ie.Content, { ...s, children: r }), t[11] = r, t[12] = s, t[13] = S) : S = t[13];
235
+ t[11] !== r || t[12] !== s ? (S = /* @__PURE__ */ i(Pe.Content, { ...s, children: r }), t[11] = r, t[12] = s, t[13] = S) : S = t[13];
233
236
  let y;
234
- t[14] !== S || t[15] !== m || t[16] !== u ? (y = /* @__PURE__ */ n(Ie.Viewport, { ...m, ref: u, children: S }), t[14] = S, t[15] = m, t[16] = u, t[17] = y) : y = t[17];
237
+ t[14] !== S || t[15] !== f || t[16] !== u ? (y = /* @__PURE__ */ i(Pe.Viewport, { ...f, ref: u, children: S }), t[14] = S, t[15] = f, t[16] = u, t[17] = y) : y = t[17];
235
238
  let v;
236
- t[18] !== g || t[19] !== f ? (v = g ? /* @__PURE__ */ n(Ie.Scrollbar, { ...f, borderRadius: "xs" }) : null, t[18] = g, t[19] = f, t[20] = v) : v = t[20];
237
- let w;
238
- t[21] !== o || t[22] !== p ? (w = p ? /* @__PURE__ */ n(Ie.Scrollbar, { orientation: "horizontal", ...o, borderRadius: "xs" }) : null, t[21] = o, t[22] = p, t[23] = w) : w = t[23];
239
+ t[18] !== m || t[19] !== g ? (v = m ? /* @__PURE__ */ i(Pe.Scrollbar, { ...g, borderRadius: "xs" }) : null, t[18] = m, t[19] = g, t[20] = v) : v = t[20];
240
+ let I;
241
+ t[21] !== o || t[22] !== p ? (I = p ? /* @__PURE__ */ i(Pe.Scrollbar, { orientation: "horizontal", ...o, borderRadius: "xs" }) : null, t[21] = o, t[22] = p, t[23] = I) : I = t[23];
239
242
  let P;
240
- t[24] !== x ? (P = x ? /* @__PURE__ */ n(Ie.Corner, {}) : null, t[24] = x, t[25] = P) : P = t[25];
243
+ t[24] !== x ? (P = x ? /* @__PURE__ */ i(Pe.Corner, {}) : null, t[24] = x, t[25] = P) : P = t[25];
241
244
  let k;
242
- return t[26] !== l || t[27] !== a || t[28] !== y || t[29] !== v || t[30] !== w || t[31] !== P ? (k = /* @__PURE__ */ b(Ie.Root, { ref: l, ...a, children: [
245
+ return t[26] !== l || t[27] !== a || t[28] !== y || t[29] !== v || t[30] !== I || t[31] !== P ? (k = /* @__PURE__ */ b(Pe.Root, { ref: l, ...a, children: [
243
246
  y,
244
247
  v,
245
- w,
248
+ I,
246
249
  P
247
- ] }), t[26] = l, t[27] = a, t[28] = y, t[29] = v, t[30] = w, t[31] = P, t[32] = k) : k = t[32], k;
250
+ ] }), t[26] = l, t[27] = a, t[28] = y, t[29] = v, t[30] = I, t[31] = P, t[32] = k) : k = t[32], k;
248
251
  });
249
- function Yl(i) {
252
+ function Tn(n) {
250
253
  const {
251
254
  diffs: e
252
- } = i, l = Ye(null), t = xt({
255
+ } = n, l = Je(null), t = It({
253
256
  count: e.length,
254
257
  getScrollElement: () => l.current,
255
258
  estimateSize: () => 42,
256
259
  overscan: 5
257
260
  });
258
- return e.length === 0 ? /* @__PURE__ */ n($, { h: "full", minH: "0", gap: "0", children: /* @__PURE__ */ n(me, { flex: "1", minH: "0", contentProps: {
261
+ return e.length === 0 ? /* @__PURE__ */ i(R, { h: "full", minH: "0", gap: "0", children: /* @__PURE__ */ i(he, { flex: "1", minH: "0", contentProps: {
259
262
  p: "xs",
260
263
  spaceY: "xs"
261
- }, children: /* @__PURE__ */ n(pt, { title: "No changes detected", description: "Make some changes to see the diff here.", paddingY: "sm" }) }) }) : /* @__PURE__ */ n($, { h: "full", minH: "0", gap: "0", children: /* @__PURE__ */ n(L, { position: "relative", flex: "1", minH: "0", children: /* @__PURE__ */ n(me, { position: "absolute", inset: "0", viewportRef: l, contentProps: {
264
+ }, children: /* @__PURE__ */ i(kt, { title: "No changes detected", description: "Make some changes to see the diff here.", paddingY: "sm" }) }) }) : /* @__PURE__ */ i(R, { h: "full", minH: "0", gap: "0", children: /* @__PURE__ */ i(D, { position: "relative", flex: "1", minH: "0", children: /* @__PURE__ */ i(he, { position: "absolute", inset: "0", viewportRef: l, contentProps: {
262
265
  p: "xs"
263
- }, children: /* @__PURE__ */ n(L, { position: "relative", width: "100%", style: {
266
+ }, children: /* @__PURE__ */ i(D, { position: "relative", width: "100%", style: {
264
267
  height: t.getTotalSize()
265
- }, children: t.getVirtualItems().map((r) => /* @__PURE__ */ n(L, { "data-index": r.index, ref: t.measureElement, position: "absolute", top: "0", left: "0", width: "100%", pb: "xs", style: {
268
+ }, children: t.getVirtualItems().map((r) => /* @__PURE__ */ i(D, { "data-index": r.index, ref: t.measureElement, position: "absolute", top: "0", left: "0", width: "100%", pb: "xs", style: {
266
269
  transform: `translateY(${r.start}px)`
267
- }, children: /* @__PURE__ */ n(Wt, { diff: e[r.index] }) }, r.key)) }) }) }) });
270
+ }, children: /* @__PURE__ */ i(qt, { diff: e[r.index] }) }, r.key)) }) }) }) });
268
271
  }
269
- const At = (i, e) => `${i.version}-${i.date}-${e}`, Bt = (i, e) => `${i.title}-${e}`, Ge = (i) => {
272
+ const Jt = (n, e) => `${n.version}-${n.date}-${e}`, Qt = (n, e) => `${n.title}-${e}`, je = (n) => {
270
273
  const e = T(12);
271
274
  let l, t, r;
272
- e[0] !== i ? ({
275
+ e[0] !== n ? ({
273
276
  date: l,
274
277
  version: r,
275
278
  ...t
276
- } = i, e[0] = i, e[1] = l, e[2] = t, e[3] = r) : (l = e[1], t = e[2], r = e[3]);
279
+ } = n, e[0] = n, e[1] = l, e[2] = t, e[3] = r) : (l = e[1], t = e[2], r = e[3]);
277
280
  let s;
278
- e[4] !== l ? (s = /* @__PURE__ */ n(re.Title, { textStyle: "sm", color: "fg.muted", children: l }), e[4] = l, e[5] = s) : s = e[5];
281
+ e[4] !== l ? (s = /* @__PURE__ */ i(oe.Title, { textStyle: "sm", color: "fg.muted", children: l }), e[4] = l, e[5] = s) : s = e[5];
279
282
  let o;
280
- e[6] !== r ? (o = /* @__PURE__ */ n(ge, { px: "3", py: "2", rounded: "l3", align: "center", justify: "center", borderWidth: "1px", textAlign: "center", alignSelf: "flex-start", children: /* @__PURE__ */ n(re.Title, { textStyle: "md", fontWeight: "semibold", children: r }) }), e[6] = r, e[7] = o) : o = e[7];
283
+ e[6] !== r ? (o = /* @__PURE__ */ i(me, { px: "3", py: "2", rounded: "l3", align: "center", justify: "center", borderWidth: "1px", textAlign: "center", alignSelf: "flex-start", children: /* @__PURE__ */ i(oe.Title, { textStyle: "md", fontWeight: "semibold", children: r }) }), e[6] = r, e[7] = o) : o = e[7];
281
284
  let a;
282
- return e[8] !== t || e[9] !== s || e[10] !== o ? (a = /* @__PURE__ */ b($, { ...t, children: [
285
+ return e[8] !== t || e[9] !== s || e[10] !== o ? (a = /* @__PURE__ */ b(R, { ...t, children: [
283
286
  s,
284
287
  o
285
288
  ] }), e[8] = t, e[9] = s, e[10] = o, e[11] = a) : a = e[11], a;
286
- }, Nl = (i) => {
289
+ }, _n = (n) => {
287
290
  const e = T(14), {
288
291
  entries: l,
289
292
  title: t,
290
293
  description: r
291
- } = i;
294
+ } = n;
292
295
  let s;
293
- e[0] !== t ? (s = /* @__PURE__ */ n(tt, { size: "4xl", children: t }), e[0] = t, e[1] = s) : s = e[1];
296
+ e[0] !== t ? (s = /* @__PURE__ */ i(ct, { size: "4xl", children: t }), e[0] = t, e[1] = s) : s = e[1];
294
297
  let o;
295
- e[2] !== r ? (o = r ? /* @__PURE__ */ n(C, { color: "fg.muted", textStyle: "lg", children: r }) : null, e[2] = r, e[3] = o) : o = e[3];
298
+ e[2] !== r ? (o = r ? /* @__PURE__ */ i(w, { color: "fg.muted", textStyle: "lg", children: r }) : null, e[2] = r, e[3] = o) : o = e[3];
296
299
  let a;
297
- e[4] !== s || e[5] !== o ? (a = /* @__PURE__ */ b($, { textAlign: "center", children: [
300
+ e[4] !== s || e[5] !== o ? (a = /* @__PURE__ */ b(R, { textAlign: "center", children: [
298
301
  s,
299
302
  o
300
303
  ] }), e[4] = s, e[5] = o, e[6] = a) : a = e[6];
301
304
  let c;
302
- e[7] !== l ? (c = l.map(jt), e[7] = l, e[8] = c) : c = e[8];
305
+ e[7] !== l ? (c = l.map(tl), e[7] = l, e[8] = c) : c = e[8];
303
306
  let d;
304
- e[9] !== c ? (d = /* @__PURE__ */ n(L, { position: "relative", children: /* @__PURE__ */ n(re.Root, { size: "sm", variant: "solid", children: c }) }), e[9] = c, e[10] = d) : d = e[10];
307
+ e[9] !== c ? (d = /* @__PURE__ */ i(D, { position: "relative", children: /* @__PURE__ */ i(oe.Root, { size: "sm", variant: "solid", children: c }) }), e[9] = c, e[10] = d) : d = e[10];
305
308
  let h;
306
- return e[11] !== a || e[12] !== d ? (h = /* @__PURE__ */ b($, { gap: "20", children: [
309
+ return e[11] !== a || e[12] !== d ? (h = /* @__PURE__ */ b(R, { gap: "20", children: [
307
310
  a,
308
311
  d
309
312
  ] }), e[11] = a, e[12] = d, e[13] = h) : h = e[13], h;
310
313
  };
311
- function Ot(i) {
312
- return /* @__PURE__ */ n(Le, { size: "md", rounded: "l2", variant: "subtle", colorPalette: "gray", textTransform: "capitalize", children: i }, i);
314
+ function Zt(n) {
315
+ return /* @__PURE__ */ i(ze, { size: "md", rounded: "l2", variant: "subtle", colorPalette: "gray", textTransform: "capitalize", children: n }, n);
313
316
  }
314
- function Gt(i, e) {
315
- return /* @__PURE__ */ n(Ve.Item, { children: /* @__PURE__ */ b($, { gap: "1", children: [
316
- /* @__PURE__ */ n(C, { color: "fg.muted", fontWeight: "normal", textStyle: "sm", children: i.title }),
317
- i.description ? /* @__PURE__ */ n(C, { color: "fg.subtle", textStyle: "xs", children: i.description }) : null,
318
- i.link ? /* @__PURE__ */ n(Ae, { href: i.link, textStyle: "xs", width: "fit-content", children: "Learn more" }) : null
319
- ] }) }, Bt(i, e));
317
+ function el(n, e) {
318
+ return /* @__PURE__ */ i(Ke.Item, { children: /* @__PURE__ */ b(R, { gap: "1", children: [
319
+ /* @__PURE__ */ i(w, { color: "fg.muted", fontWeight: "normal", textStyle: "sm", children: n.title }),
320
+ n.description ? /* @__PURE__ */ i(w, { color: "fg.subtle", textStyle: "xs", children: n.description }) : null,
321
+ n.link ? /* @__PURE__ */ i(Be, { href: n.link, textStyle: "xs", width: "fit-content", children: "Learn more" }) : null
322
+ ] }) }, Qt(n, e));
320
323
  }
321
- function jt(i, e) {
322
- return /* @__PURE__ */ b(re.Item, { children: [
323
- /* @__PURE__ */ n(re.Content, { top: "6", width: "48", flexShrink: "0", hideBelow: "md", position: {
324
+ function tl(n, e) {
325
+ return /* @__PURE__ */ b(oe.Item, { children: [
326
+ /* @__PURE__ */ i(oe.Content, { top: "6", width: "48", flexShrink: "0", hideBelow: "md", position: {
324
327
  base: "static",
325
328
  md: "sticky"
326
- }, children: /* @__PURE__ */ n(Ge, { hideBelow: "md", date: i.date, version: i.version }) }),
327
- /* @__PURE__ */ b(re.Connector, { children: [
328
- /* @__PURE__ */ n(re.Separator, {}),
329
- /* @__PURE__ */ n(re.Indicator, {})
329
+ }, children: /* @__PURE__ */ i(je, { hideBelow: "md", date: n.date, version: n.version }) }),
330
+ /* @__PURE__ */ b(oe.Connector, { children: [
331
+ /* @__PURE__ */ i(oe.Separator, {}),
332
+ /* @__PURE__ */ i(oe.Indicator, {})
330
333
  ] }),
331
- /* @__PURE__ */ n(re.Content, { children: /* @__PURE__ */ b($, { gap: "4", children: [
332
- /* @__PURE__ */ n(Ge, { hideFrom: "md", date: i.date, version: i.version }),
333
- /* @__PURE__ */ b($, { gap: "2", children: [
334
- /* @__PURE__ */ n(re.Title, { fontSize: "lg", fontWeight: "medium", children: i.title }),
335
- i.description ? /* @__PURE__ */ n(C, { color: "fg.muted", textStyle: "sm", children: i.description }) : null
334
+ /* @__PURE__ */ i(oe.Content, { children: /* @__PURE__ */ b(R, { gap: "4", children: [
335
+ /* @__PURE__ */ i(je, { hideFrom: "md", date: n.date, version: n.version }),
336
+ /* @__PURE__ */ b(R, { gap: "2", children: [
337
+ /* @__PURE__ */ i(oe.Title, { fontSize: "lg", fontWeight: "medium", children: n.title }),
338
+ n.description ? /* @__PURE__ */ i(w, { color: "fg.muted", textStyle: "sm", children: n.description }) : null
336
339
  ] }),
337
- i.tags && i.tags.length > 0 ? /* @__PURE__ */ n(ee, { children: i.tags.map(Ot) }) : null,
338
- i.image ? /* @__PURE__ */ n(et, { rounded: "l2", src: i.image, alt: i.title }) : null,
339
- i.changes && i.changes.length > 0 ? /* @__PURE__ */ n(Ve.Root, { pl: "4", gap: "4", children: i.changes.map(Gt) }) : null
340
+ n.tags && n.tags.length > 0 ? /* @__PURE__ */ i(F, { children: n.tags.map(Zt) }) : null,
341
+ n.image ? /* @__PURE__ */ i(at, { rounded: "l2", src: n.image, alt: n.title }) : null,
342
+ n.changes && n.changes.length > 0 ? /* @__PURE__ */ i(Ke.Root, { pl: "4", gap: "4", children: n.changes.map(el) }) : null
340
343
  ] }) })
341
- ] }, At(i, e));
344
+ ] }, Jt(n, e));
342
345
  }
343
- const Xt = /^(#{1,3})\s+(.+)$/gm, Vt = ".rich-text__h1, .rich-text__h2, .rich-text__h3", Ft = (i, e) => i.classList.contains(`rich-text__h${e}`), Yt = (i) => i.toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-+|-+$/g, ""), Me = (i) => {
346
+ const ll = /^(#{1,3})\s+(.+)$/gm, nl = ".rich-text__h1, .rich-text__h2, .rich-text__h3", il = (n, e) => n.classList.contains(`rich-text__h${e}`), rl = (n) => n.toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-+|-+$/g, ""), Me = (n) => {
344
347
  const e = [];
345
348
  let l = 0;
346
- for (const t of i.matchAll(Xt)) {
347
- const r = t[1].length, s = t[2].trim(), a = `${Yt(s) || "heading"}-${l}`;
349
+ for (const t of n.matchAll(ll)) {
350
+ const r = t[1].length, s = t[2].trim(), a = `${rl(s) || "heading"}-${l}`;
348
351
  e.push({
349
352
  id: a,
350
353
  level: r,
@@ -352,13 +355,13 @@ const Xt = /^(#{1,3})\s+(.+)$/gm, Vt = ".rich-text__h1, .rich-text__h2, .rich-te
352
355
  }), l += 1;
353
356
  }
354
357
  return e;
355
- }, Nt = (i, e) => {
356
- const l = Array.from(e.querySelectorAll(Vt)), t = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Map();
358
+ }, ol = (n, e) => {
359
+ const l = Array.from(e.querySelectorAll(nl)), t = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Map();
357
360
  let s = 0;
358
- for (const o of i)
361
+ for (const o of n)
359
362
  for (let a = s; a < l.length; a += 1) {
360
363
  const c = l[a], d = c.textContent?.trim();
361
- if (!(!d || d !== o.text) && Ft(c, o.level)) {
364
+ if (!(!d || d !== o.text) && il(c, o.level)) {
362
365
  t.set(o.id, c), r.set(c, o.id), s = a + 1;
363
366
  break;
364
367
  }
@@ -367,225 +370,225 @@ const Xt = /^(#{1,3})\s+(.+)$/gm, Vt = ".rich-text__h1, .rich-text__h2, .rich-te
367
370
  elementsByHeadingId: t,
368
371
  headingIdByElement: r
369
372
  };
370
- }, je = (i) => {
373
+ }, Ge = (n) => {
371
374
  const e = T(14), {
372
375
  heading: l,
373
376
  isActive: t,
374
377
  emphasized: r,
375
378
  variant: s,
376
379
  onSelect: o
377
- } = i, a = s === "line", c = `calc(${l.level} * 0.75rem)`, d = t ? "fg" : "fg.muted", h = t || r ? "medium" : "normal", f = a ? "1px" : "0px", m = a ? t ? "fg" : "bg.muted" : "transparent";
380
+ } = n, a = s === "line", c = `calc(${l.level} * 0.75rem)`, d = t ? "fg" : "fg.muted", h = t || r ? "medium" : "normal", g = a ? "1px" : "0px", f = a ? t ? "fg" : "bg.muted" : "transparent";
378
381
  let u;
379
382
  e[0] !== a ? (u = a ? {
380
383
  borderStartColor: "bg.emphasized"
381
384
  } : {
382
385
  color: "fg"
383
386
  }, e[0] = a, e[1] = u) : u = e[1];
384
- let g;
385
- e[2] !== l.id || e[3] !== o ? (g = () => o(l.id), e[2] = l.id, e[3] = o, e[4] = g) : g = e[4];
387
+ let m;
388
+ e[2] !== l.id || e[3] !== o ? (m = () => o(l.id), e[2] = l.id, e[3] = o, e[4] = m) : m = e[4];
386
389
  let p;
387
- return e[5] !== l.text || e[6] !== c || e[7] !== d || e[8] !== h || e[9] !== f || e[10] !== m || e[11] !== u || e[12] !== g ? (p = /* @__PURE__ */ n(L, { as: "button", py: "1.5", px: "0", width: "full", display: "flex", textAlign: "left", textStyle: "sm", cursor: "pointer", textDecoration: "none", transition: "all 0.15s ease", paddingInlineStart: c, color: d, fontWeight: h, borderStartWidth: f, borderStartColor: m, _hover: u, onClick: g, children: l.text }), e[5] = l.text, e[6] = c, e[7] = d, e[8] = h, e[9] = f, e[10] = m, e[11] = u, e[12] = g, e[13] = p) : p = e[13], p;
388
- }, Ul = (i) => {
390
+ return e[5] !== l.text || e[6] !== c || e[7] !== d || e[8] !== h || e[9] !== g || e[10] !== f || e[11] !== u || e[12] !== m ? (p = /* @__PURE__ */ i(D, { as: "button", py: "1.5", px: "0", width: "full", display: "flex", textAlign: "left", textStyle: "sm", cursor: "pointer", textDecoration: "none", transition: "all 0.15s ease", paddingInlineStart: c, color: d, fontWeight: h, borderStartWidth: g, borderStartColor: f, _hover: u, onClick: m, children: l.text }), e[5] = l.text, e[6] = c, e[7] = d, e[8] = h, e[9] = g, e[10] = f, e[11] = u, e[12] = m, e[13] = p) : p = e[13], p;
391
+ }, $n = (n) => {
389
392
  const e = T(39), {
390
393
  markdown: l,
391
394
  title: t,
392
395
  rootMargin: r
393
- } = i, s = t === void 0 ? "On this page" : t, o = r === void 0 ? "-20% 0% -35% 0%" : r, a = Me(l), c = lt(), [d, h] = De(a[0]?.id ?? ""), [f, m] = De(!1);
396
+ } = n, s = t === void 0 ? "On this page" : t, o = r === void 0 ? "-20% 0% -35% 0%" : r, a = Me(l), c = dt(), [d, h] = Re(a[0]?.id ?? ""), [g, f] = Re(!1);
394
397
  let u;
395
398
  e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (u = {
396
399
  elementsByHeadingId: /* @__PURE__ */ new Map(),
397
400
  headingIdByElement: /* @__PURE__ */ new Map()
398
401
  }, e[0] = u) : u = e[0];
399
- const g = Ye(u);
402
+ const m = Je(u);
400
403
  let p, x;
401
404
  e[1] !== l ? (p = () => {
402
- const _ = Me(l);
403
- h(_[0]?.id ?? "");
404
- }, x = [l], e[1] = l, e[2] = p, e[3] = x) : (p = e[2], x = e[3]), Be(p, x);
405
+ const H = Me(l);
406
+ h(H[0]?.id ?? "");
407
+ }, x = [l], e[1] = l, e[2] = p, e[3] = x) : (p = e[2], x = e[3]), We(p, x);
405
408
  let S, y;
406
409
  if (e[4] !== c || e[5] !== l || e[6] !== o ? (S = () => {
407
- const _ = Me(l), le = c.getDocument(), be = c.getWindow(), de = Nt(_, le);
408
- if (g.current = de, de.headingIdByElement.size === 0)
410
+ const H = Me(l), le = c.getDocument(), Se = c.getWindow(), fe = ol(H, le);
411
+ if (m.current = fe, fe.headingIdByElement.size === 0)
409
412
  return;
410
- const oe = new be.IntersectionObserver((ie) => {
411
- const se = ie.filter(Ut).sort(Kt);
412
- if (se.length === 0)
413
+ const se = new Se.IntersectionObserver((re) => {
414
+ const ae = re.filter(sl).sort(al);
415
+ if (ae.length === 0)
413
416
  return;
414
- const he = se[0].target, ae = de.headingIdByElement.get(he);
415
- ae && h(ae);
417
+ const ge = ae[0].target, ce = fe.headingIdByElement.get(ge);
418
+ ce && h(ce);
416
419
  }, {
417
420
  rootMargin: o
418
421
  });
419
- for (const ie of de.headingIdByElement.keys())
420
- oe.observe(ie);
422
+ for (const re of fe.headingIdByElement.keys())
423
+ se.observe(re);
421
424
  return () => {
422
- oe.disconnect();
425
+ se.disconnect();
423
426
  };
424
- }, y = [c, l, o], e[4] = c, e[5] = l, e[6] = o, e[7] = S, e[8] = y) : (S = e[7], y = e[8]), Be(S, y), a.length === 0)
427
+ }, y = [c, l, o], e[4] = c, e[5] = l, e[6] = o, e[7] = S, e[8] = y) : (S = e[7], y = e[8]), We(S, y), a.length === 0)
425
428
  return null;
426
429
  let v;
427
- e[9] !== d ? (v = (_) => _.id === d, e[9] = d, e[10] = v) : v = e[10];
428
- const w = a.find(v);
430
+ e[9] !== d ? (v = (H) => H.id === d, e[9] = d, e[10] = v) : v = e[10];
431
+ const I = a.find(v);
429
432
  let P;
430
- e[11] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (P = (_) => {
431
- const le = g.current.elementsByHeadingId.get(_);
432
- h(_), m(!1), le?.scrollIntoView({
433
+ e[11] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (P = (H) => {
434
+ const le = m.current.elementsByHeadingId.get(H);
435
+ h(H), f(!1), le?.scrollIntoView({
433
436
  behavior: "smooth",
434
437
  block: "start"
435
438
  });
436
439
  }, e[11] = P) : P = e[11];
437
440
  const k = P;
438
- let I;
439
- e[12] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (I = (_) => m(_.open), e[12] = I) : I = e[12];
440
- let R;
441
- e[13] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (R = /* @__PURE__ */ n(ne, { as: Oe, color: "fg.subtle" }), e[13] = R) : R = e[13];
442
- let z;
443
- e[14] !== s ? (z = /* @__PURE__ */ n(C, { textStyle: "sm", fontWeight: "medium", color: "fg", children: s }), e[14] = s, e[15] = z) : z = e[15];
444
- const j = f ? null : /* @__PURE__ */ b(ht, { children: [
445
- /* @__PURE__ */ n(ne, { as: Te, color: "fg.subtle" }),
446
- /* @__PURE__ */ n(C, { textStyle: "sm", color: "fg.muted", children: w?.text })
441
+ let C;
442
+ e[12] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (C = (H) => f(H.open), e[12] = C) : C = e[12];
443
+ let _;
444
+ e[13] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (_ = /* @__PURE__ */ i(ne, { as: Oe, color: "fg.subtle" }), e[13] = _) : _ = e[13];
445
+ let L;
446
+ e[14] !== s ? (L = /* @__PURE__ */ i(w, { textStyle: "sm", fontWeight: "medium", color: "fg", children: s }), e[14] = s, e[15] = L) : L = e[15];
447
+ const B = g ? null : /* @__PURE__ */ b(St, { children: [
448
+ /* @__PURE__ */ i(ne, { as: pe, color: "fg.subtle" }),
449
+ /* @__PURE__ */ i(w, { textStyle: "sm", color: "fg.muted", children: I?.text })
447
450
  ] });
448
- let W;
449
- e[16] !== z || e[17] !== j ? (W = /* @__PURE__ */ b(ee, { children: [
450
- R,
451
- z,
452
- j
453
- ] }), e[16] = z, e[17] = j, e[18] = W) : W = e[18];
454
- const V = f ? "rotate(180deg)" : "rotate(0deg)";
455
- let H;
456
- e[19] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (H = /* @__PURE__ */ n(ne, { as: Ue, color: "fg.subtle" }), e[19] = H) : H = e[19];
451
+ let N;
452
+ e[16] !== L || e[17] !== B ? (N = /* @__PURE__ */ b(F, { children: [
453
+ _,
454
+ L,
455
+ B
456
+ ] }), e[16] = L, e[17] = B, e[18] = N) : N = e[18];
457
+ const O = g ? "rotate(180deg)" : "rotate(0deg)";
458
+ let z;
459
+ e[19] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (z = /* @__PURE__ */ i(ne, { as: Ze, color: "fg.subtle" }), e[19] = z) : z = e[19];
457
460
  let E;
458
- e[20] !== V ? (E = /* @__PURE__ */ n(L, { transition: "transform 0.2s", transform: V, children: H }), e[20] = V, e[21] = E) : E = e[21];
459
- let B;
460
- e[22] !== W || e[23] !== E ? (B = /* @__PURE__ */ b(pe.Trigger, { width: "full", display: "flex", alignItems: "center", justifyContent: "space-between", children: [
461
- W,
461
+ e[20] !== O ? (E = /* @__PURE__ */ i(D, { transition: "transform 0.2s", transform: O, children: z }), e[20] = O, e[21] = E) : E = e[21];
462
+ let A;
463
+ e[22] !== N || e[23] !== E ? (A = /* @__PURE__ */ b(xe.Trigger, { width: "full", display: "flex", alignItems: "center", justifyContent: "space-between", children: [
464
+ N,
462
465
  E
463
- ] }), e[22] = W, e[23] = E, e[24] = B) : B = e[24];
464
- let O;
465
- e[25] !== d ? (O = (_) => /* @__PURE__ */ n(je, { heading: _, variant: "minimal", emphasized: !1, isActive: d === _.id, onSelect: k }, _.id), e[25] = d, e[26] = O) : O = e[26];
466
- const A = me, F = "md", D = "6", G = "xs", J = "sticky", Y = "calc(100vh - 3rem)";
466
+ ] }), e[22] = N, e[23] = E, e[24] = A) : A = e[24];
467
467
  let M;
468
- e[27] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (M = /* @__PURE__ */ n(ne, { as: Oe, color: "fg.subtle" }), e[27] = M) : M = e[27];
469
- let N;
470
- e[28] !== s ? (N = /* @__PURE__ */ b(ee, { mb: "4", children: [
471
- M,
472
- /* @__PURE__ */ n(C, { fontWeight: "medium", textStyle: "sm", children: s })
473
- ] }), e[28] = s, e[29] = N) : N = e[29];
474
- const Q = $, te = "0";
475
- let U;
476
- e[30] !== d ? (U = (_) => /* @__PURE__ */ n(je, { heading: _, variant: "line", emphasized: _.level === 1, isActive: d === _.id, onSelect: k }, _.id), e[30] = d, e[31] = U) : U = e[31];
477
- const Z = a.map(U);
468
+ e[25] !== d ? (M = (H) => /* @__PURE__ */ i(Ge, { heading: H, variant: "minimal", emphasized: !1, isActive: d === H.id, onSelect: k }, H.id), e[25] = d, e[26] = M) : M = e[26];
469
+ const W = he, j = "md", $ = "6", G = "xs", Q = "sticky", Y = "calc(100vh - 3rem)";
478
470
  let X;
479
- e[32] !== Q || e[33] !== Z ? (X = /* @__PURE__ */ n(Q, { gap: te, children: Z }), e[32] = Q, e[33] = Z, e[34] = X) : X = e[34];
471
+ e[27] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (X = /* @__PURE__ */ i(ne, { as: Oe, color: "fg.subtle" }), e[27] = X) : X = e[27];
472
+ let U;
473
+ e[28] !== s ? (U = /* @__PURE__ */ b(F, { mb: "4", children: [
474
+ X,
475
+ /* @__PURE__ */ i(w, { fontWeight: "medium", textStyle: "sm", children: s })
476
+ ] }), e[28] = s, e[29] = U) : U = e[29];
477
+ const Z = R, te = "0";
480
478
  let K;
481
- return e[35] !== A || e[36] !== N || e[37] !== X ? (K = /* @__PURE__ */ b(A, { hideBelow: F, top: D, width: G, position: J, maxH: Y, children: [
482
- N,
483
- X
484
- ] }), e[35] = A, e[36] = N, e[37] = X, e[38] = K) : K = e[38], /* @__PURE__ */ b($, { gap: "0", width: "full", children: [
485
- /* @__PURE__ */ n(L, { hideFrom: "md", px: "4", py: "2", w: "full", bg: "bg.subtle", borderWidth: "1px", children: /* @__PURE__ */ b(pe.Root, { open: f, onOpenChange: I, children: [
486
- B,
487
- /* @__PURE__ */ n(pe.Content, { children: /* @__PURE__ */ n(me, { mt: "3", maxH: "30vh", children: /* @__PURE__ */ n($, { gap: "0", children: a.map(O) }) }) })
479
+ e[30] !== d ? (K = (H) => /* @__PURE__ */ i(Ge, { heading: H, variant: "line", emphasized: H.level === 1, isActive: d === H.id, onSelect: k }, H.id), e[30] = d, e[31] = K) : K = e[31];
480
+ const ee = a.map(K);
481
+ let V;
482
+ e[32] !== Z || e[33] !== ee ? (V = /* @__PURE__ */ i(Z, { gap: te, children: ee }), e[32] = Z, e[33] = ee, e[34] = V) : V = e[34];
483
+ let q;
484
+ return e[35] !== W || e[36] !== U || e[37] !== V ? (q = /* @__PURE__ */ b(W, { hideBelow: j, top: $, width: G, position: Q, maxH: Y, children: [
485
+ U,
486
+ V
487
+ ] }), e[35] = W, e[36] = U, e[37] = V, e[38] = q) : q = e[38], /* @__PURE__ */ b(R, { gap: "0", width: "full", children: [
488
+ /* @__PURE__ */ i(D, { hideFrom: "md", px: "4", py: "2", w: "full", bg: "bg.subtle", borderWidth: "1px", children: /* @__PURE__ */ b(xe.Root, { open: g, onOpenChange: C, children: [
489
+ A,
490
+ /* @__PURE__ */ i(xe.Content, { children: /* @__PURE__ */ i(he, { mt: "3", maxH: "30vh", children: /* @__PURE__ */ i(R, { gap: "0", children: a.map(M) }) }) })
488
491
  ] }) }),
489
- K
492
+ q
490
493
  ] });
491
494
  };
492
- function Ut(i) {
493
- return i.isIntersecting;
495
+ function sl(n) {
496
+ return n.isIntersecting;
494
497
  }
495
- function Kt(i, e) {
496
- return i.boundingClientRect.top - e.boundingClientRect.top;
498
+ function al(n, e) {
499
+ return n.boundingClientRect.top - e.boundingClientRect.top;
497
500
  }
498
- const Xe = (i) => {
501
+ const Xe = (n) => {
499
502
  const e = T(24), {
500
503
  item: l,
501
504
  direction: t
502
- } = i, r = t === "prev", s = r ? "Previous" : "Next", o = r ? "start" : "end", a = r ? "flex-start" : "flex-end";
505
+ } = n, r = t === "prev", s = r ? "Previous" : "Next", o = r ? "start" : "end", a = r ? "flex-start" : "flex-end";
503
506
  let c;
504
- e[0] !== r ? (c = r ? /* @__PURE__ */ n(bt, { size: 16 }) : null, e[0] = r, e[1] = c) : c = e[1];
507
+ e[0] !== r ? (c = r ? /* @__PURE__ */ i(Pt, { size: 16 }) : null, e[0] = r, e[1] = c) : c = e[1];
505
508
  const d = r ? "flex-start" : "flex-end";
506
509
  let h;
507
- e[2] !== s ? (h = /* @__PURE__ */ n(C, { textStyle: "sm", color: "fg.muted", fontWeight: "normal", children: s }), e[2] = s, e[3] = h) : h = e[3];
510
+ e[2] !== s ? (h = /* @__PURE__ */ i(w, { textStyle: "sm", color: "fg.muted", fontWeight: "normal", children: s }), e[2] = s, e[3] = h) : h = e[3];
511
+ let g;
512
+ e[4] !== l.title ? (g = /* @__PURE__ */ i(w, { textStyle: "sm", fontWeight: "medium", children: l.title }), e[4] = l.title, e[5] = g) : g = e[5];
508
513
  let f;
509
- e[4] !== l.title ? (f = /* @__PURE__ */ n(C, { textStyle: "sm", fontWeight: "medium", children: l.title }), e[4] = l.title, e[5] = f) : f = e[5];
510
- let m;
511
- e[6] !== l.description ? (m = l.description ? /* @__PURE__ */ n(C, { textStyle: "xs", color: "fg.subtle", fontWeight: "normal", children: l.description }) : null, e[6] = l.description, e[7] = m) : m = e[7];
514
+ e[6] !== l.description ? (f = l.description ? /* @__PURE__ */ i(w, { textStyle: "xs", color: "fg.subtle", fontWeight: "normal", children: l.description }) : null, e[6] = l.description, e[7] = f) : f = e[7];
512
515
  let u;
513
- e[8] !== d || e[9] !== h || e[10] !== f || e[11] !== m ? (u = /* @__PURE__ */ b($, { gap: "0", alignItems: d, children: [
516
+ e[8] !== d || e[9] !== h || e[10] !== g || e[11] !== f ? (u = /* @__PURE__ */ b(R, { gap: "0", alignItems: d, children: [
514
517
  h,
515
- f,
516
- m
517
- ] }), e[8] = d, e[9] = h, e[10] = f, e[11] = m, e[12] = u) : u = e[12];
518
- let g;
519
- e[13] !== r ? (g = r ? null : /* @__PURE__ */ n(Te, { size: 16 }), e[13] = r, e[14] = g) : g = e[14];
518
+ g,
519
+ f
520
+ ] }), e[8] = d, e[9] = h, e[10] = g, e[11] = f, e[12] = u) : u = e[12];
521
+ let m;
522
+ e[13] !== r ? (m = r ? null : /* @__PURE__ */ i(pe, { size: 16 }), e[13] = r, e[14] = m) : m = e[14];
520
523
  let p;
521
- e[15] !== l.href || e[16] !== c || e[17] !== u || e[18] !== g ? (p = /* @__PURE__ */ b("a", { href: l.href, children: [
524
+ e[15] !== l.href || e[16] !== c || e[17] !== u || e[18] !== m ? (p = /* @__PURE__ */ b("a", { href: l.href, children: [
522
525
  c,
523
526
  u,
524
- g
525
- ] }), e[15] = l.href, e[16] = c, e[17] = u, e[18] = g, e[19] = p) : p = e[19];
527
+ m
528
+ ] }), e[15] = l.href, e[16] = c, e[17] = u, e[18] = m, e[19] = p) : p = e[19];
526
529
  let x;
527
- return e[20] !== o || e[21] !== a || e[22] !== p ? (x = /* @__PURE__ */ n(fe, { asChild: !0, variant: "ghost", colorPalette: "gray", gap: "3", size: "sm", h: "auto", py: "2", textAlign: o, justifyContent: a, flex: "1", children: p }), e[20] = o, e[21] = a, e[22] = p, e[23] = x) : x = e[23], x;
528
- }, Kl = (i) => {
530
+ return e[20] !== o || e[21] !== a || e[22] !== p ? (x = /* @__PURE__ */ i(ue, { asChild: !0, variant: "ghost", colorPalette: "gray", gap: "3", size: "sm", h: "auto", py: "2", textAlign: o, justifyContent: a, flex: "1", children: p }), e[20] = o, e[21] = a, e[22] = p, e[23] = x) : x = e[23], x;
531
+ }, Rn = (n) => {
529
532
  const e = T(11), {
530
533
  previous: l,
531
534
  next: t
532
- } = i;
535
+ } = n;
533
536
  if (!l && !t)
534
537
  return null;
535
538
  let r;
536
- e[0] !== l ? (r = l ? /* @__PURE__ */ n(Xe, { item: l, direction: "prev" }) : null, e[0] = l, e[1] = r) : r = e[1];
539
+ e[0] !== l ? (r = l ? /* @__PURE__ */ i(Xe, { item: l, direction: "prev" }) : null, e[0] = l, e[1] = r) : r = e[1];
537
540
  let s;
538
- e[2] !== r ? (s = /* @__PURE__ */ n(L, { flex: "1", children: r }), e[2] = r, e[3] = s) : s = e[3];
541
+ e[2] !== r ? (s = /* @__PURE__ */ i(D, { flex: "1", children: r }), e[2] = r, e[3] = s) : s = e[3];
539
542
  let o;
540
- e[4] !== t ? (o = t ? /* @__PURE__ */ n(Xe, { item: t, direction: "next" }) : null, e[4] = t, e[5] = o) : o = e[5];
543
+ e[4] !== t ? (o = t ? /* @__PURE__ */ i(Xe, { item: t, direction: "next" }) : null, e[4] = t, e[5] = o) : o = e[5];
541
544
  let a;
542
- e[6] !== o ? (a = /* @__PURE__ */ n(L, { flex: "1", children: o }), e[6] = o, e[7] = a) : a = e[7];
545
+ e[6] !== o ? (a = /* @__PURE__ */ i(D, { flex: "1", children: o }), e[6] = o, e[7] = a) : a = e[7];
543
546
  let c;
544
- return e[8] !== s || e[9] !== a ? (c = /* @__PURE__ */ b(ee, { justify: "space-between", gap: "4", children: [
547
+ return e[8] !== s || e[9] !== a ? (c = /* @__PURE__ */ b(F, { justify: "space-between", gap: "4", children: [
545
548
  s,
546
549
  a
547
550
  ] }), e[8] = s, e[9] = a, e[10] = c) : c = e[10], c;
548
- }, qt = (i) => {
551
+ }, cl = (n) => {
549
552
  const e = T(17), {
550
553
  children: l,
551
554
  title: t,
552
555
  defaultOpen: r,
553
556
  action: s
554
- } = i, o = r === void 0 ? !0 : r;
557
+ } = n, o = r === void 0 ? !0 : r;
555
558
  let a;
556
559
  e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (a = {
557
560
  background: "bg.muted"
558
561
  }, e[0] = a) : a = e[0];
559
562
  let c;
560
- e[1] !== t ? (c = t && /* @__PURE__ */ n(C, { fontWeight: "600", textStyle: "label/S/medium", children: t }), e[1] = t, e[2] = c) : c = e[2];
563
+ e[1] !== t ? (c = t && /* @__PURE__ */ i(w, { fontWeight: "600", textStyle: "label/S/medium", children: t }), e[1] = t, e[2] = c) : c = e[2];
561
564
  let d;
562
- e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = /* @__PURE__ */ n(pe.Indicator, { transition: "transform 0.2s", _open: {
565
+ e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = /* @__PURE__ */ i(xe.Indicator, { transition: "transform 0.2s", _open: {
563
566
  transform: "rotate(90deg)"
564
- }, children: /* @__PURE__ */ n(Te, { size: 16 }) }), e[3] = d) : d = e[3];
567
+ }, children: /* @__PURE__ */ i(pe, { size: 16 }) }), e[3] = d) : d = e[3];
565
568
  let h;
566
- e[4] !== c ? (h = /* @__PURE__ */ b(pe.Trigger, { _hover: a, borderRadius: "xs", padding: "sm", height: "2rem", display: "flex", width: "full", gap: "2", alignItems: "center", cursor: "pointer", justifyContent: "space-between", children: [
569
+ e[4] !== c ? (h = /* @__PURE__ */ b(xe.Trigger, { _hover: a, borderRadius: "xs", padding: "sm", height: "2rem", display: "flex", width: "full", gap: "2", alignItems: "center", cursor: "pointer", justifyContent: "space-between", children: [
567
570
  c,
568
571
  d
569
572
  ] }), e[4] = c, e[5] = h) : h = e[5];
573
+ let g;
574
+ e[6] !== s ? (g = s && /* @__PURE__ */ i(D, { marginLeft: "auto", onClick: dl, children: s }), e[6] = s, e[7] = g) : g = e[7];
570
575
  let f;
571
- e[6] !== s ? (f = s && /* @__PURE__ */ n(L, { marginLeft: "auto", onClick: Jt, children: s }), e[6] = s, e[7] = f) : f = e[7];
572
- let m;
573
- e[8] !== h || e[9] !== f ? (m = /* @__PURE__ */ b(ge, { children: [
576
+ e[8] !== h || e[9] !== g ? (f = /* @__PURE__ */ b(me, { children: [
574
577
  h,
575
- f
576
- ] }), e[8] = h, e[9] = f, e[10] = m) : m = e[10];
578
+ g
579
+ ] }), e[8] = h, e[9] = g, e[10] = f) : f = e[10];
577
580
  let u;
578
- e[11] !== l ? (u = /* @__PURE__ */ n(pe.Content, { children: l }), e[11] = l, e[12] = u) : u = e[12];
579
- let g;
580
- return e[13] !== o || e[14] !== m || e[15] !== u ? (g = /* @__PURE__ */ b(pe.Root, { defaultOpen: o, width: "full", children: [
581
- m,
581
+ e[11] !== l ? (u = /* @__PURE__ */ i(xe.Content, { children: l }), e[11] = l, e[12] = u) : u = e[12];
582
+ let m;
583
+ return e[13] !== o || e[14] !== f || e[15] !== u ? (m = /* @__PURE__ */ b(xe.Root, { defaultOpen: o, width: "full", children: [
584
+ f,
582
585
  u
583
- ] }), e[13] = o, e[14] = m, e[15] = u, e[16] = g) : g = e[16], g;
586
+ ] }), e[13] = o, e[14] = f, e[15] = u, e[16] = m) : m = e[16], m;
584
587
  };
585
- function Jt(i) {
586
- return i.stopPropagation();
588
+ function dl(n) {
589
+ return n.stopPropagation();
587
590
  }
588
- const Qt = {
591
+ const hl = {
589
592
  default: {
590
593
  paddingX: "sm",
591
594
  paddingY: "xs",
@@ -604,7 +607,7 @@ const Qt = {
604
607
  secondaryMarginLeft: "0",
605
608
  secondaryTextStyle: "label/XS/regular"
606
609
  }
607
- }, He = (i) => {
610
+ }, Ae = (n) => {
608
611
  const e = T(67), {
609
612
  id: l,
610
613
  primaryLabel: t,
@@ -615,84 +618,84 @@ const Qt = {
615
618
  rightIcon: c,
616
619
  leftIconColor: d,
617
620
  rightIconColor: h,
618
- leftIconSize: f,
619
- rightIconSize: m,
621
+ leftIconSize: g,
622
+ rightIconSize: f,
620
623
  rightIconAriaLabel: u,
621
- rightTooltipLabel: g,
624
+ rightTooltipLabel: m,
622
625
  onRightIconClick: p,
623
626
  isDisabled: x,
624
627
  isSelected: S,
625
628
  tagLabel: y,
626
629
  tagColorPalette: v,
627
- tagVariant: w,
630
+ tagVariant: I,
628
631
  variant: P,
629
632
  tabIndex: k,
630
- width: I,
631
- maxWidth: R,
632
- setRefElement: z
633
- } = i, j = o === void 0 ? null : o, W = d === void 0 ? "fg.menu-item.default" : d, V = h === void 0 ? "fg.menu-item.default" : h, H = v === void 0 ? "yellow" : v, E = w === void 0 ? "subtle" : w, B = P === void 0 ? "default" : P, {
634
- onClick: O,
635
- onMouseDown: A,
636
- onMouseEnter: F
637
- } = i, D = Qt[B], G = S ? "bg.menu-item.selected" : "bg.menu-item.default", J = f ?? D.iconSize, Y = m ?? D.iconSize, M = !!(p && c);
638
- let N;
639
- e[0] !== M ? (N = ($e) => {
640
- M && ($e.preventDefault(), $e.stopPropagation());
641
- }, e[0] = M, e[1] = N) : N = e[1];
642
- const Q = N;
633
+ width: C,
634
+ maxWidth: _,
635
+ setRefElement: L
636
+ } = n, B = o === void 0 ? null : o, N = d === void 0 ? "fg.menu-item.default" : d, O = h === void 0 ? "fg.menu-item.default" : h, z = v === void 0 ? "yellow" : v, E = I === void 0 ? "subtle" : I, A = P === void 0 ? "default" : P, {
637
+ onClick: M,
638
+ onMouseDown: W,
639
+ onMouseEnter: j
640
+ } = n, $ = hl[A], G = S ? "bg.menu-item.selected" : "bg.menu-item.default", Q = g ?? $.iconSize, Y = f ?? $.iconSize, X = !!(p && c);
641
+ let U;
642
+ e[0] !== X ? (U = (De) => {
643
+ X && (De.preventDefault(), De.stopPropagation());
644
+ }, e[0] = X, e[1] = U) : U = e[1];
645
+ const Z = U;
643
646
  let te;
644
- e[2] !== M || e[3] !== p ? (te = ($e) => {
645
- !M || !p || ($e.preventDefault(), $e.stopPropagation(), p());
646
- }, e[2] = M, e[3] = p, e[4] = te) : te = e[4];
647
- const U = te, Z = R ?? "20rem", X = x ? "default" : "pointer", K = l ?? t;
648
- let _, le;
649
- e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (_ = {
647
+ e[2] !== X || e[3] !== p ? (te = (De) => {
648
+ !X || !p || (De.preventDefault(), De.stopPropagation(), p());
649
+ }, e[2] = X, e[3] = p, e[4] = te) : te = e[4];
650
+ const K = te, ee = _ ?? "20rem", V = x ? "default" : "pointer", q = l ?? t;
651
+ let H, le;
652
+ e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (H = {
650
653
  bg: "bg.menu-item.hover"
651
654
  }, le = {
652
655
  bg: "bg.menu-item.focus"
653
- }, e[5] = _, e[6] = le) : (_ = e[5], le = e[6]);
654
- let be;
655
- e[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (be = {
656
+ }, e[5] = H, e[6] = le) : (H = e[5], le = e[6]);
657
+ let Se;
658
+ e[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Se = {
656
659
  placement: "right"
657
- }, e[7] = be) : be = e[7];
658
- const de = !r;
659
- let oe;
660
- e[8] !== j || e[9] !== W || e[10] !== a || e[11] !== J ? (oe = a || (j ? /* @__PURE__ */ n(ne, { as: j, boxSize: J, color: W }) : null), e[8] = j, e[9] = W, e[10] = a, e[11] = J, e[12] = oe) : oe = e[12];
661
- let ie;
662
- e[13] !== t || e[14] !== D.primaryTextStyle ? (ie = /* @__PURE__ */ n(C, { lineClamp: 1, textOverflow: "ellipsis", textStyle: D.primaryTextStyle, children: t }), e[13] = t, e[14] = D.primaryTextStyle, e[15] = ie) : ie = e[15];
660
+ }, e[7] = Se) : Se = e[7];
661
+ const fe = !r;
663
662
  let se;
664
- e[16] !== oe || e[17] !== ie ? (se = /* @__PURE__ */ b(ge, { alignItems: "flex-start", gap: "xs", flex: "1", children: [
665
- oe,
666
- ie
667
- ] }), e[16] = oe, e[17] = ie, e[18] = se) : se = e[18];
668
- let he;
669
- e[19] !== s || e[20] !== D.secondaryMarginLeft || e[21] !== D.secondaryTextStyle ? (he = s && /* @__PURE__ */ n(C, { ml: D.secondaryMarginLeft, lineClamp: 1, textOverflow: "ellipsis", textStyle: D.secondaryTextStyle, color: "fg.menu-item.secondary", children: s }), e[19] = s, e[20] = D.secondaryMarginLeft, e[21] = D.secondaryTextStyle, e[22] = he) : he = e[22];
663
+ e[8] !== B || e[9] !== N || e[10] !== a || e[11] !== Q ? (se = a || (B ? /* @__PURE__ */ i(ne, { as: B, boxSize: Q, color: N }) : null), e[8] = B, e[9] = N, e[10] = a, e[11] = Q, e[12] = se) : se = e[12];
664
+ let re;
665
+ e[13] !== t || e[14] !== $.primaryTextStyle ? (re = /* @__PURE__ */ i(w, { lineClamp: 1, textOverflow: "ellipsis", textStyle: $.primaryTextStyle, children: t }), e[13] = t, e[14] = $.primaryTextStyle, e[15] = re) : re = e[15];
670
666
  let ae;
671
- e[23] !== se || e[24] !== he ? (ae = /* @__PURE__ */ b($, { gap: "2xs", children: [
667
+ e[16] !== se || e[17] !== re ? (ae = /* @__PURE__ */ b(me, { alignItems: "flex-start", gap: "xs", flex: "1", children: [
672
668
  se,
673
- he
674
- ] }), e[23] = se, e[24] = he, e[25] = ae) : ae = e[25];
675
- let Se;
676
- e[26] !== de || e[27] !== ae || e[28] !== r ? (Se = /* @__PURE__ */ n(_e, { positioning: be, content: r, disabled: de, children: ae }), e[26] = de, e[27] = ae, e[28] = r, e[29] = Se) : Se = e[29];
669
+ re
670
+ ] }), e[16] = se, e[17] = re, e[18] = ae) : ae = e[18];
671
+ let ge;
672
+ e[19] !== s || e[20] !== $.secondaryMarginLeft || e[21] !== $.secondaryTextStyle ? (ge = s && /* @__PURE__ */ i(w, { ml: $.secondaryMarginLeft, lineClamp: 1, textOverflow: "ellipsis", textStyle: $.secondaryTextStyle, color: "fg.menu-item.secondary", children: s }), e[19] = s, e[20] = $.secondaryMarginLeft, e[21] = $.secondaryTextStyle, e[22] = ge) : ge = e[22];
673
+ let ce;
674
+ e[23] !== ae || e[24] !== ge ? (ce = /* @__PURE__ */ b(R, { gap: "2xs", children: [
675
+ ae,
676
+ ge
677
+ ] }), e[23] = ae, e[24] = ge, e[25] = ce) : ce = e[25];
677
678
  let ye;
678
- e[30] !== U || e[31] !== Q || e[32] !== M || e[33] !== Y || e[34] !== c || e[35] !== u || e[36] !== V || e[37] !== g ? (ye = c ? /* @__PURE__ */ n(_e, { positioning: {
679
+ e[26] !== fe || e[27] !== ce || e[28] !== r ? (ye = /* @__PURE__ */ i(Ee, { positioning: Se, content: r, disabled: fe, children: ce }), e[26] = fe, e[27] = ce, e[28] = r, e[29] = ye) : ye = e[29];
680
+ let ve;
681
+ e[30] !== K || e[31] !== Z || e[32] !== X || e[33] !== Y || e[34] !== c || e[35] !== u || e[36] !== O || e[37] !== m ? (ve = c ? /* @__PURE__ */ i(Ee, { positioning: {
679
682
  placement: "right"
680
- }, content: g, disabled: !g, children: /* @__PURE__ */ n(ge, { as: M ? "button" : "div", alignItems: "center", "aria-label": u, cursor: M ? "pointer" : "default", bg: "transparent", borderWidth: "0", padding: "0", onMouseDown: Q, onClick: U, children: /* @__PURE__ */ n(ne, { as: c, boxSize: Y, color: V }) }) }) : null, e[30] = U, e[31] = Q, e[32] = M, e[33] = Y, e[34] = c, e[35] = u, e[36] = V, e[37] = g, e[38] = ye) : ye = e[38];
683
+ }, content: m, disabled: !m, children: /* @__PURE__ */ i(me, { as: X ? "button" : "div", alignItems: "center", "aria-label": u, cursor: X ? "pointer" : "default", bg: "transparent", borderWidth: "0", padding: "0", onMouseDown: Z, onClick: K, children: /* @__PURE__ */ i(ne, { as: c, boxSize: Y, color: O }) }) }) : null, e[30] = K, e[31] = Z, e[32] = X, e[33] = Y, e[34] = c, e[35] = u, e[36] = O, e[37] = m, e[38] = ve) : ve = e[38];
681
684
  let Ce;
682
- e[39] !== ye ? (Ce = /* @__PURE__ */ n(ge, { justifyContent: "flex-end", color: "fg.menu-item.default", children: ye }), e[39] = ye, e[40] = Ce) : Ce = e[40];
683
- let ve;
684
- e[41] !== Se || e[42] !== Ce ? (ve = /* @__PURE__ */ b(ge, { justifyContent: "space-between", alignItems: "center", gap: "xs", flex: "1", children: [
685
- Se,
686
- Ce
687
- ] }), e[41] = Se, e[42] = Ce, e[43] = ve) : ve = e[43];
685
+ e[39] !== ve ? (Ce = /* @__PURE__ */ i(me, { justifyContent: "flex-end", color: "fg.menu-item.default", children: ve }), e[39] = ve, e[40] = Ce) : Ce = e[40];
688
686
  let we;
689
- e[44] !== H || e[45] !== y || e[46] !== E ? (we = y ? /* @__PURE__ */ n(Le, { position: "absolute", top: "xs", right: "sm", textStyle: "label/XS/medium", px: "xs", py: "2px", borderRadius: "md", colorPalette: H, variant: E, pointerEvents: "none", children: y }) : null, e[44] = H, e[45] = y, e[46] = E, e[47] = we) : we = e[47];
690
- let Ee;
691
- return e[48] !== G || e[49] !== l || e[50] !== x || e[51] !== S || e[52] !== O || e[53] !== A || e[54] !== F || e[55] !== z || e[56] !== K || e[57] !== ve || e[58] !== we || e[59] !== Z || e[60] !== X || e[61] !== k || e[62] !== D.minHeight || e[63] !== D.paddingX || e[64] !== D.paddingY || e[65] !== I ? (Ee = /* @__PURE__ */ b(nt, { id: l, ref: z, tabIndex: k, disabled: x, "aria-selected": S, paddingX: D.paddingX, paddingY: D.paddingY, onClick: O, onMouseDown: A, onMouseEnter: F, height: "auto", minHeight: D.minHeight, role: "option", width: I, maxWidth: Z, overflow: "hidden", position: "relative", cursor: X, value: K, bg: G, _hover: _, _focus: le, children: [
692
- ve,
693
- we
694
- ] }), e[48] = G, e[49] = l, e[50] = x, e[51] = S, e[52] = O, e[53] = A, e[54] = F, e[55] = z, e[56] = K, e[57] = ve, e[58] = we, e[59] = Z, e[60] = X, e[61] = k, e[62] = D.minHeight, e[63] = D.paddingX, e[64] = D.paddingY, e[65] = I, e[66] = Ee) : Ee = e[66], Ee;
695
- }, Zt = {
687
+ e[41] !== ye || e[42] !== Ce ? (we = /* @__PURE__ */ b(me, { justifyContent: "space-between", alignItems: "center", gap: "xs", flex: "1", children: [
688
+ ye,
689
+ Ce
690
+ ] }), e[41] = ye, e[42] = Ce, e[43] = we) : we = e[43];
691
+ let ke;
692
+ e[44] !== z || e[45] !== y || e[46] !== E ? (ke = y ? /* @__PURE__ */ i(ze, { position: "absolute", top: "xs", right: "sm", textStyle: "label/XS/medium", px: "xs", py: "2px", borderRadius: "md", colorPalette: z, variant: E, pointerEvents: "none", children: y }) : null, e[44] = z, e[45] = y, e[46] = E, e[47] = ke) : ke = e[47];
693
+ let Ne;
694
+ return e[48] !== G || e[49] !== l || e[50] !== x || e[51] !== S || e[52] !== M || e[53] !== W || e[54] !== j || e[55] !== L || e[56] !== q || e[57] !== we || e[58] !== ke || e[59] !== ee || e[60] !== V || e[61] !== k || e[62] !== $.minHeight || e[63] !== $.paddingX || e[64] !== $.paddingY || e[65] !== C ? (Ne = /* @__PURE__ */ b(ht, { id: l, ref: L, tabIndex: k, disabled: x, "aria-selected": S, paddingX: $.paddingX, paddingY: $.paddingY, onClick: M, onMouseDown: W, onMouseEnter: j, height: "auto", minHeight: $.minHeight, role: "option", width: C, maxWidth: ee, overflow: "hidden", position: "relative", cursor: V, value: q, bg: G, _hover: H, _focus: le, children: [
695
+ we,
696
+ ke
697
+ ] }), e[48] = G, e[49] = l, e[50] = x, e[51] = S, e[52] = M, e[53] = W, e[54] = j, e[55] = L, e[56] = q, e[57] = we, e[58] = ke, e[59] = ee, e[60] = V, e[61] = k, e[62] = $.minHeight, e[63] = $.paddingX, e[64] = $.paddingY, e[65] = C, e[66] = Ne) : Ne = e[66], Ne;
698
+ }, fl = {
696
699
  default: {
697
700
  width: "64",
698
701
  headerHeight: "49px",
@@ -710,58 +713,58 @@ const Qt = {
710
713
  contentGap: "2xs"
711
714
  }
712
715
  };
713
- function el(i) {
716
+ function gl(n) {
714
717
  const e = T(13), {
715
718
  title: l,
716
719
  children: t,
717
720
  variant: r
718
- } = i, o = Zt[r === void 0 ? "default" : r];
721
+ } = n, o = fl[r === void 0 ? "default" : r];
719
722
  let a;
720
- e[0] !== o.headerHeight || e[1] !== o.headerPadding || e[2] !== o.headerTextStyle || e[3] !== l ? (a = l && /* @__PURE__ */ n(ge, { height: o.headerHeight, p: o.headerPadding, borderBottomWidth: "1px", alignItems: "center", children: /* @__PURE__ */ n(C, { pb: "0", textStyle: o.headerTextStyle, color: "fg.muted", children: l }) }), e[0] = o.headerHeight, e[1] = o.headerPadding, e[2] = o.headerTextStyle, e[3] = l, e[4] = a) : a = e[4];
723
+ e[0] !== o.headerHeight || e[1] !== o.headerPadding || e[2] !== o.headerTextStyle || e[3] !== l ? (a = l && /* @__PURE__ */ i(me, { height: o.headerHeight, p: o.headerPadding, borderBottomWidth: "1px", alignItems: "center", children: /* @__PURE__ */ i(w, { pb: "0", textStyle: o.headerTextStyle, color: "fg.muted", children: l }) }), e[0] = o.headerHeight, e[1] = o.headerPadding, e[2] = o.headerTextStyle, e[3] = l, e[4] = a) : a = e[4];
721
724
  let c;
722
- e[5] !== t || e[6] !== o.contentGap || e[7] !== o.contentPadding ? (c = t && /* @__PURE__ */ n(me, { flex: "1", minH: "0", contentProps: {
725
+ e[5] !== t || e[6] !== o.contentGap || e[7] !== o.contentPadding ? (c = t && /* @__PURE__ */ i(he, { flex: "1", minH: "0", contentProps: {
723
726
  p: o.contentPadding,
724
727
  spaceY: o.contentGap
725
728
  }, children: t }), e[5] = t, e[6] = o.contentGap, e[7] = o.contentPadding, e[8] = c) : c = e[8];
726
729
  let d;
727
- return e[9] !== o.width || e[10] !== a || e[11] !== c ? (d = /* @__PURE__ */ b($, { borderRightWidth: "1px", width: o.width, gap: "0", minH: "0", children: [
730
+ return e[9] !== o.width || e[10] !== a || e[11] !== c ? (d = /* @__PURE__ */ b(R, { borderRightWidth: "1px", width: o.width, gap: "0", minH: "0", children: [
728
731
  a,
729
732
  c
730
733
  ] }), e[9] = o.width, e[10] = a, e[11] = c, e[12] = d) : d = e[12], d;
731
734
  }
732
- const Ke = (i) => {
735
+ const et = (n) => {
733
736
  const e = T(27), {
734
737
  item: l,
735
738
  activeLink: t,
736
739
  onSelectLink: r,
737
740
  shouldStartOpen: s
738
- } = i;
741
+ } = n;
739
742
  let o;
740
743
  e[0] !== l.items ? (o = l.items ?? [], e[0] = l.items, e[1] = o) : o = e[1];
741
744
  const a = o, c = a.length > 0;
742
745
  if (!c && l.link) {
743
- const g = l.link, p = l.link === t;
746
+ const m = l.link, p = l.link === t;
744
747
  let x;
745
- e[2] !== g || e[3] !== r ? (x = () => r(g), e[2] = g, e[3] = r, e[4] = x) : x = e[4];
748
+ e[2] !== m || e[3] !== r ? (x = () => r(m), e[2] = m, e[3] = r, e[4] = x) : x = e[4];
746
749
  let S;
747
- return e[5] !== p || e[6] !== l.text || e[7] !== x ? (S = /* @__PURE__ */ n(xe.Root, { children: /* @__PURE__ */ n(He, { primaryLabel: l.text, isSelected: p, variant: "compact", onClick: x }) }), e[5] = p, e[6] = l.text, e[7] = x, e[8] = S) : S = e[8], S;
750
+ return e[5] !== p || e[6] !== l.text || e[7] !== x ? (S = /* @__PURE__ */ i(ie.Root, { children: /* @__PURE__ */ i(Ae, { primaryLabel: l.text, isSelected: p, variant: "compact", onClick: x }) }), e[5] = p, e[6] = l.text, e[7] = x, e[8] = S) : S = e[8], S;
748
751
  }
749
752
  if (!c) {
750
- let g;
751
- return e[9] !== l.text ? (g = /* @__PURE__ */ n(xe.Root, { children: /* @__PURE__ */ n(He, { primaryLabel: l.text, isDisabled: !0, variant: "compact" }) }), e[9] = l.text, e[10] = g) : g = e[10], g;
753
+ let m;
754
+ return e[9] !== l.text ? (m = /* @__PURE__ */ i(ie.Root, { children: /* @__PURE__ */ i(Ae, { primaryLabel: l.text, isDisabled: !0, variant: "compact" }) }), e[9] = l.text, e[10] = m) : m = e[10], m;
752
755
  }
753
756
  let d;
754
757
  e[11] !== l || e[12] !== s ? (d = s?.(l) ?? !1, e[11] = l, e[12] = s, e[13] = d) : d = e[13];
755
- const h = d, f = l.text;
756
- let m;
758
+ const h = d, g = l.text;
759
+ let f;
757
760
  if (e[14] !== t || e[15] !== a || e[16] !== r || e[17] !== s) {
758
- let g;
759
- e[19] !== t || e[20] !== r || e[21] !== s ? (g = (p, x) => /* @__PURE__ */ n(Ke, { item: p, activeLink: t, onSelectLink: r, shouldStartOpen: s }, `${p.text}-${p.link ?? x}`), e[19] = t, e[20] = r, e[21] = s, e[22] = g) : g = e[22], m = a.map(g), e[14] = t, e[15] = a, e[16] = r, e[17] = s, e[18] = m;
761
+ let m;
762
+ e[19] !== t || e[20] !== r || e[21] !== s ? (m = (p, x) => /* @__PURE__ */ i(et, { item: p, activeLink: t, onSelectLink: r, shouldStartOpen: s }, `${p.text}-${p.link ?? x}`), e[19] = t, e[20] = r, e[21] = s, e[22] = m) : m = e[22], f = a.map(m), e[14] = t, e[15] = a, e[16] = r, e[17] = s, e[18] = f;
760
763
  } else
761
- m = e[18];
764
+ f = e[18];
762
765
  let u;
763
- return e[23] !== h || e[24] !== l.text || e[25] !== m ? (u = /* @__PURE__ */ n(qt, { title: f, defaultOpen: h, children: m }), e[23] = h, e[24] = l.text, e[25] = m, e[26] = u) : u = e[26], u;
764
- }, ql = (i) => {
766
+ return e[23] !== h || e[24] !== l.text || e[25] !== f ? (u = /* @__PURE__ */ i(cl, { title: g, defaultOpen: h, children: f }), e[23] = h, e[24] = l.text, e[25] = f, e[26] = u) : u = e[26], u;
767
+ }, Dn = (n) => {
765
768
  const e = T(9), {
766
769
  title: l,
767
770
  emptyMessage: t,
@@ -769,13 +772,13 @@ const Ke = (i) => {
769
772
  activeLink: s,
770
773
  onSelectLink: o,
771
774
  shouldStartOpen: a
772
- } = i;
775
+ } = n;
773
776
  let c;
774
- e[0] !== s || e[1] !== t || e[2] !== r || e[3] !== o || e[4] !== a ? (c = r.length === 0 ? /* @__PURE__ */ n(C, { textStyle: "paragraph/S/regular", color: "fg.muted", p: "xs", children: t ?? "No files found" }) : r.map((h, f) => /* @__PURE__ */ n(Ke, { item: h, activeLink: s, onSelectLink: o, shouldStartOpen: a }, `${h.text}-${h.link ?? f}`)), e[0] = s, e[1] = t, e[2] = r, e[3] = o, e[4] = a, e[5] = c) : c = e[5];
777
+ e[0] !== s || e[1] !== t || e[2] !== r || e[3] !== o || e[4] !== a ? (c = r.length === 0 ? /* @__PURE__ */ i(w, { textStyle: "paragraph/S/regular", color: "fg.muted", p: "xs", children: t ?? "No files found" }) : r.map((h, g) => /* @__PURE__ */ i(et, { item: h, activeLink: s, onSelectLink: o, shouldStartOpen: a }, `${h.text}-${h.link ?? g}`)), e[0] = s, e[1] = t, e[2] = r, e[3] = o, e[4] = a, e[5] = c) : c = e[5];
775
778
  let d;
776
- return e[6] !== c || e[7] !== l ? (d = /* @__PURE__ */ n(el, { title: l, variant: "compact", children: c }), e[6] = c, e[7] = l, e[8] = d) : d = e[8], d;
779
+ return e[6] !== c || e[7] !== l ? (d = /* @__PURE__ */ i(gl, { title: l, variant: "compact", children: c }), e[6] = c, e[7] = l, e[8] = d) : d = e[8], d;
777
780
  };
778
- class Jl extends ft {
781
+ class Ln extends yt {
779
782
  state = {
780
783
  error: null
781
784
  };
@@ -800,36 +803,36 @@ class Jl extends ft {
800
803
  } = this.props, {
801
804
  error: r
802
805
  } = this.state;
803
- return r ? l || /* @__PURE__ */ n(tl, { error: r, label: t, onReset: this.handleReset }) : e;
806
+ return r ? l || /* @__PURE__ */ i(ul, { error: r, label: t, onReset: this.handleReset }) : e;
804
807
  }
805
808
  }
806
- const tl = (i) => {
809
+ const ul = (n) => {
807
810
  const e = T(12), {
808
811
  error: l,
809
812
  label: t,
810
813
  onReset: r
811
- } = i, s = t ?? "Something went wrong";
814
+ } = n, s = t ?? "Something went wrong";
812
815
  let o;
813
- e[0] !== s ? (o = /* @__PURE__ */ n(C, { textStyle: "paragraph/M/medium", children: s }), e[0] = s, e[1] = o) : o = e[1];
816
+ e[0] !== s ? (o = /* @__PURE__ */ i(w, { textStyle: "paragraph/M/medium", children: s }), e[0] = s, e[1] = o) : o = e[1];
814
817
  const a = l.message || "An unexpected error occurred while rendering this section.";
815
818
  let c;
816
- e[2] !== a ? (c = /* @__PURE__ */ n(C, { textStyle: "paragraph/S/regular", children: a }), e[2] = a, e[3] = c) : c = e[3];
819
+ e[2] !== a ? (c = /* @__PURE__ */ i(w, { textStyle: "paragraph/S/regular", children: a }), e[2] = a, e[3] = c) : c = e[3];
817
820
  let d;
818
- e[4] !== r ? (d = r ? /* @__PURE__ */ n(fe, { size: "sm", variant: "solid", colorScheme: "black", onClick: r, children: "Try again" }) : null, e[4] = r, e[5] = d) : d = e[5];
821
+ e[4] !== r ? (d = r ? /* @__PURE__ */ i(ue, { size: "sm", variant: "solid", colorScheme: "black", onClick: r, children: "Try again" }) : null, e[4] = r, e[5] = d) : d = e[5];
819
822
  let h;
820
- e[6] !== c || e[7] !== d ? (h = /* @__PURE__ */ b($, { gap: "sm", children: [
823
+ e[6] !== c || e[7] !== d ? (h = /* @__PURE__ */ b(R, { gap: "sm", children: [
821
824
  c,
822
825
  d
823
826
  ] }), e[6] = c, e[7] = d, e[8] = h) : h = e[8];
824
- let f;
825
- return e[9] !== o || e[10] !== h ? (f = /* @__PURE__ */ n(Ht, { height: "100%", width: "100%", children: /* @__PURE__ */ n(it, { children: /* @__PURE__ */ n(Et, { status: "error", title: o, children: h }) }) }), e[9] = o, e[10] = h, e[11] = f) : f = e[11], f;
826
- }, ll = (i) => i.isDirectory ? i.isGitRepo ? St : yt : Oe, nl = (i) => {
827
+ let g;
828
+ return e[9] !== o || e[10] !== h ? (g = /* @__PURE__ */ i(Ut, { height: "100%", width: "100%", children: /* @__PURE__ */ i(ft, { children: /* @__PURE__ */ i(Yt, { status: "error", title: o, children: h }) }) }), e[9] = o, e[10] = h, e[11] = g) : g = e[11], g;
829
+ }, ml = (n) => n.isDirectory ? n.isGitRepo ? Tt : _t : Oe, pl = (n) => {
827
830
  const e = T(18), {
828
831
  entry: l,
829
832
  selectedPath: t,
830
833
  selectedPathSet: r,
831
834
  onEntryClick: s
832
- } = i;
835
+ } = n;
833
836
  let o;
834
837
  e[0] !== l.isGitRepo || e[1] !== l.path || e[2] !== r ? (o = l.isGitRepo && r.has(l.path), e[0] = l.isGitRepo, e[1] = l.path, e[2] = r, e[3] = o) : o = e[3];
835
838
  const a = o, c = !l.isDirectory || a;
@@ -837,13 +840,13 @@ const tl = (i) => {
837
840
  e[4] !== l || e[5] !== a || e[6] !== s ? (d = () => {
838
841
  a || s(l);
839
842
  }, e[4] = l, e[5] = a, e[6] = s, e[7] = d) : d = e[7];
840
- const h = d, f = l.name;
841
- let m;
842
- e[8] !== l ? (m = ll(l), e[8] = l, e[9] = m) : m = e[9];
843
- const u = l.isGitRepo ? "Git repo" : void 0, g = l.isGitRepo ? "green" : void 0, p = t === l.path;
843
+ const h = d, g = l.name;
844
+ let f;
845
+ e[8] !== l ? (f = ml(l), e[8] = l, e[9] = f) : f = e[9];
846
+ const u = l.isGitRepo ? "Git repo" : void 0, m = l.isGitRepo ? "green" : void 0, p = t === l.path;
844
847
  let x;
845
- return e[10] !== l.name || e[11] !== h || e[12] !== c || e[13] !== m || e[14] !== u || e[15] !== g || e[16] !== p ? (x = /* @__PURE__ */ n(xe.Root, { children: /* @__PURE__ */ n(He, { primaryLabel: f, leftIcon: m, tagLabel: u, tagColorPalette: g, isDisabled: c, isSelected: p, width: "100%", maxWidth: "100%", onClick: h }) }), e[10] = l.name, e[11] = h, e[12] = c, e[13] = m, e[14] = u, e[15] = g, e[16] = p, e[17] = x) : x = e[17], x;
846
- }, Ql = (i) => {
848
+ return e[10] !== l.name || e[11] !== h || e[12] !== c || e[13] !== f || e[14] !== u || e[15] !== m || e[16] !== p ? (x = /* @__PURE__ */ i(ie.Root, { children: /* @__PURE__ */ i(Ae, { primaryLabel: g, leftIcon: f, tagLabel: u, tagColorPalette: m, isDisabled: c, isSelected: p, width: "100%", maxWidth: "100%", onClick: h }) }), e[10] = l.name, e[11] = h, e[12] = c, e[13] = f, e[14] = u, e[15] = m, e[16] = p, e[17] = x) : x = e[17], x;
849
+ }, En = (n) => {
847
850
  const e = T(54), {
848
851
  open: l,
849
852
  title: t,
@@ -854,93 +857,93 @@ const tl = (i) => {
854
857
  selectedPaths: c,
855
858
  isLoading: d,
856
859
  error: h,
857
- isSelectDisabled: f,
858
- onClose: m,
860
+ isSelectDisabled: g,
861
+ onClose: f,
859
862
  onSelect: u,
860
- onSelectHomeDirectory: g,
863
+ onSelectHomeDirectory: m,
861
864
  onSelectParentDirectory: p,
862
865
  onEntryClick: x
863
- } = i, S = t === void 0 ? "Select folder" : t, y = s === void 0 ? "" : s, v = a === void 0 ? null : a;
864
- let w;
865
- e[0] !== c ? (w = c === void 0 ? [] : c, e[0] = c, e[1] = w) : w = e[1];
866
- const P = w, k = d === void 0 ? !1 : d, I = h === void 0 ? "" : h, R = f === void 0 ? !1 : f;
866
+ } = n, S = t === void 0 ? "Select folder" : t, y = s === void 0 ? "" : s, v = a === void 0 ? null : a;
867
+ let I;
868
+ e[0] !== c ? (I = c === void 0 ? [] : c, e[0] = c, e[1] = I) : I = e[1];
869
+ const P = I, k = d === void 0 ? !1 : d, C = h === void 0 ? "" : h, _ = g === void 0 ? !1 : g;
870
+ let L;
871
+ e[2] !== P ? (L = new Set(P), e[2] = P, e[3] = L) : L = e[3];
872
+ const B = L;
873
+ let N;
874
+ e[4] !== f ? (N = (le) => !le.open && f(), e[4] = f, e[5] = N) : N = e[5];
875
+ let O;
876
+ e[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (O = /* @__PURE__ */ i(J.Backdrop, {}), e[6] = O) : O = e[6];
867
877
  let z;
868
- e[2] !== P ? (z = new Set(P), e[2] = P, e[3] = z) : z = e[3];
869
- const j = z;
870
- let W;
871
- e[4] !== m ? (W = (le) => !le.open && m(), e[4] = m, e[5] = W) : W = e[5];
872
- let V;
873
- e[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (V = /* @__PURE__ */ n(q.Backdrop, {}), e[6] = V) : V = e[6];
874
- let H;
875
- e[7] !== S ? (H = /* @__PURE__ */ n(C, { textStyle: "heading/M", children: S }), e[7] = S, e[8] = H) : H = e[8];
878
+ e[7] !== S ? (z = /* @__PURE__ */ i(w, { textStyle: "heading/M", children: S }), e[7] = S, e[8] = z) : z = e[8];
876
879
  let E;
877
- e[9] !== r ? (E = r ? /* @__PURE__ */ n(C, { textStyle: "paragraph/S/regular", color: "fg.muted", children: r }) : null, e[9] = r, e[10] = E) : E = e[10];
878
- let B;
879
- e[11] !== H || e[12] !== E ? (B = /* @__PURE__ */ n(q.Header, { children: /* @__PURE__ */ b($, { gap: "xs", children: [
880
- H,
881
- E
882
- ] }) }), e[11] = H, e[12] = E, e[13] = B) : B = e[13];
883
- let O;
884
- e[14] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (O = /* @__PURE__ */ n(Ct, { size: 16 }), e[14] = O) : O = e[14];
880
+ e[9] !== r ? (E = r ? /* @__PURE__ */ i(w, { textStyle: "paragraph/S/regular", color: "fg.muted", children: r }) : null, e[9] = r, e[10] = E) : E = e[10];
885
881
  let A;
886
- e[15] !== g ? (A = /* @__PURE__ */ n(fe, { "aria-label": "Go to home directory", variant: "outline", size: "sm", onClick: g, children: O }), e[15] = g, e[16] = A) : A = e[16];
887
- const F = !y || y === "/";
888
- let D;
889
- e[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (D = /* @__PURE__ */ n(vt, { size: 16 }), e[17] = D) : D = e[17];
882
+ e[11] !== z || e[12] !== E ? (A = /* @__PURE__ */ i(J.Header, { children: /* @__PURE__ */ b(R, { gap: "xs", children: [
883
+ z,
884
+ E
885
+ ] }) }), e[11] = z, e[12] = E, e[13] = A) : A = e[13];
886
+ let M;
887
+ e[14] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (M = /* @__PURE__ */ i($t, { size: 16 }), e[14] = M) : M = e[14];
888
+ let W;
889
+ e[15] !== m ? (W = /* @__PURE__ */ i(ue, { "aria-label": "Go to home directory", variant: "outline", size: "sm", onClick: m, children: M }), e[15] = m, e[16] = W) : W = e[16];
890
+ const j = !y || y === "/";
891
+ let $;
892
+ e[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? ($ = /* @__PURE__ */ i(Rt, { size: 16 }), e[17] = $) : $ = e[17];
890
893
  let G;
891
- e[18] !== p || e[19] !== F ? (G = /* @__PURE__ */ n(fe, { "aria-label": "Go to parent directory", variant: "outline", size: "sm", onClick: p, disabled: F, children: D }), e[18] = p, e[19] = F, e[20] = G) : G = e[20];
892
- const J = y || "Home";
894
+ e[18] !== p || e[19] !== j ? (G = /* @__PURE__ */ i(ue, { "aria-label": "Go to parent directory", variant: "outline", size: "sm", onClick: p, disabled: j, children: $ }), e[18] = p, e[19] = j, e[20] = G) : G = e[20];
895
+ const Q = y || "Home";
893
896
  let Y;
894
- e[21] !== J ? (Y = /* @__PURE__ */ n(C, { textStyle: "paragraph/S/regular", color: "fg.muted", flex: "1", lineClamp: 1, children: J }), e[21] = J, e[22] = Y) : Y = e[22];
895
- let M;
896
- e[23] !== A || e[24] !== G || e[25] !== Y ? (M = /* @__PURE__ */ b($, { direction: "row", gap: "sm", align: "center", children: [
897
- A,
897
+ e[21] !== Q ? (Y = /* @__PURE__ */ i(w, { textStyle: "paragraph/S/regular", color: "fg.muted", flex: "1", lineClamp: 1, children: Q }), e[21] = Q, e[22] = Y) : Y = e[22];
898
+ let X;
899
+ e[23] !== W || e[24] !== G || e[25] !== Y ? (X = /* @__PURE__ */ b(R, { direction: "row", gap: "sm", align: "center", children: [
900
+ W,
898
901
  G,
899
902
  Y
900
- ] }), e[23] = A, e[24] = G, e[25] = Y, e[26] = M) : M = e[26];
901
- let N;
902
- e[27] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (N = {
903
- padding: "sm"
904
- }, e[27] = N) : N = e[27];
905
- let Q;
906
- e[28] !== o || e[29] !== I || e[30] !== k || e[31] !== x || e[32] !== v || e[33] !== j ? (Q = /* @__PURE__ */ n(me, { borderWidth: "1px", borderRadius: "md", borderColor: "border.muted", maxHeight: "320px", contentProps: N, children: k ? /* @__PURE__ */ n(C, { textStyle: "paragraph/S/regular", color: "fg.muted", children: "Loading..." }) : I ? /* @__PURE__ */ n(C, { textStyle: "paragraph/S/regular", color: "red.500", children: I }) : o.length === 0 ? /* @__PURE__ */ n(C, { textStyle: "paragraph/S/regular", color: "fg.muted", children: "No entries found." }) : /* @__PURE__ */ n($, { gap: "xs", children: o.map((le) => /* @__PURE__ */ n(nl, { entry: le, selectedPath: v, selectedPathSet: j, onEntryClick: x }, le.path)) }) }), e[28] = o, e[29] = I, e[30] = k, e[31] = x, e[32] = v, e[33] = j, e[34] = Q) : Q = e[34];
907
- let te;
908
- e[35] !== M || e[36] !== Q ? (te = /* @__PURE__ */ n(q.Body, { children: /* @__PURE__ */ b($, { gap: "md", children: [
909
- M,
910
- Q
911
- ] }) }), e[35] = M, e[36] = Q, e[37] = te) : te = e[37];
903
+ ] }), e[23] = W, e[24] = G, e[25] = Y, e[26] = X) : X = e[26];
912
904
  let U;
913
- e[38] !== m ? (U = /* @__PURE__ */ n(fe, { variant: "outline", onClick: m, children: "Cancel" }), e[38] = m, e[39] = U) : U = e[39];
905
+ e[27] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (U = {
906
+ padding: "sm"
907
+ }, e[27] = U) : U = e[27];
914
908
  let Z;
915
- e[40] !== R || e[41] !== u ? (Z = /* @__PURE__ */ n(fe, { onClick: u, disabled: R, children: "Select repository" }), e[40] = R, e[41] = u, e[42] = Z) : Z = e[42];
916
- let X;
917
- e[43] !== U || e[44] !== Z ? (X = /* @__PURE__ */ n(q.Footer, { children: /* @__PURE__ */ b($, { direction: "row", gap: "sm", children: [
918
- U,
909
+ e[28] !== o || e[29] !== C || e[30] !== k || e[31] !== x || e[32] !== v || e[33] !== B ? (Z = /* @__PURE__ */ i(he, { borderWidth: "1px", borderRadius: "md", borderColor: "border.muted", maxHeight: "320px", contentProps: U, children: k ? /* @__PURE__ */ i(w, { textStyle: "paragraph/S/regular", color: "fg.muted", children: "Loading..." }) : C ? /* @__PURE__ */ i(w, { textStyle: "paragraph/S/regular", color: "red.500", children: C }) : o.length === 0 ? /* @__PURE__ */ i(w, { textStyle: "paragraph/S/regular", color: "fg.muted", children: "No entries found." }) : /* @__PURE__ */ i(R, { gap: "xs", children: o.map((le) => /* @__PURE__ */ i(pl, { entry: le, selectedPath: v, selectedPathSet: B, onEntryClick: x }, le.path)) }) }), e[28] = o, e[29] = C, e[30] = k, e[31] = x, e[32] = v, e[33] = B, e[34] = Z) : Z = e[34];
910
+ let te;
911
+ e[35] !== X || e[36] !== Z ? (te = /* @__PURE__ */ i(J.Body, { children: /* @__PURE__ */ b(R, { gap: "md", children: [
912
+ X,
919
913
  Z
920
- ] }) }), e[43] = U, e[44] = Z, e[45] = X) : X = e[45];
914
+ ] }) }), e[35] = X, e[36] = Z, e[37] = te) : te = e[37];
921
915
  let K;
922
- e[46] !== B || e[47] !== te || e[48] !== X ? (K = /* @__PURE__ */ n(q.Positioner, { children: /* @__PURE__ */ b(q.Content, { children: [
923
- B,
916
+ e[38] !== f ? (K = /* @__PURE__ */ i(ue, { variant: "outline", onClick: f, children: "Cancel" }), e[38] = f, e[39] = K) : K = e[39];
917
+ let ee;
918
+ e[40] !== _ || e[41] !== u ? (ee = /* @__PURE__ */ i(ue, { onClick: u, disabled: _, children: "Select repository" }), e[40] = _, e[41] = u, e[42] = ee) : ee = e[42];
919
+ let V;
920
+ e[43] !== K || e[44] !== ee ? (V = /* @__PURE__ */ i(J.Footer, { children: /* @__PURE__ */ b(R, { direction: "row", gap: "sm", children: [
921
+ K,
922
+ ee
923
+ ] }) }), e[43] = K, e[44] = ee, e[45] = V) : V = e[45];
924
+ let q;
925
+ e[46] !== A || e[47] !== te || e[48] !== V ? (q = /* @__PURE__ */ i(J.Positioner, { children: /* @__PURE__ */ b(J.Content, { children: [
926
+ A,
924
927
  te,
925
- X
926
- ] }) }), e[46] = B, e[47] = te, e[48] = X, e[49] = K) : K = e[49];
927
- let _;
928
- return e[50] !== l || e[51] !== K || e[52] !== W ? (_ = /* @__PURE__ */ b(q.Root, { closeOnInteractOutside: !1, open: l, onOpenChange: W, children: [
929
- V,
930
- K
931
- ] }), e[50] = l, e[51] = K, e[52] = W, e[53] = _) : _ = e[53], _;
928
+ V
929
+ ] }) }), e[46] = A, e[47] = te, e[48] = V, e[49] = q) : q = e[49];
930
+ let H;
931
+ return e[50] !== l || e[51] !== q || e[52] !== N ? (H = /* @__PURE__ */ b(J.Root, { closeOnInteractOutside: !1, open: l, onOpenChange: N, children: [
932
+ O,
933
+ q
934
+ ] }), e[50] = l, e[51] = q, e[52] = N, e[53] = H) : H = e[53], H;
932
935
  };
933
- function Zl(i) {
936
+ function zn(n) {
934
937
  const e = T(6);
935
938
  let l, t;
936
- e[0] !== i ? ({
939
+ e[0] !== n ? ({
937
940
  children: l,
938
941
  ...t
939
- } = i, e[0] = i, e[1] = l, e[2] = t) : (l = e[1], t = e[2]);
942
+ } = n, e[0] = n, e[1] = l, e[2] = t) : (l = e[1], t = e[2]);
940
943
  let r;
941
- return e[3] !== l || e[4] !== t ? (r = /* @__PURE__ */ n(ee, { ...t, minH: "49px", justify: "space-between", align: "center", borderBottomWidth: "1px", p: "xs", children: l }), e[3] = l, e[4] = t, e[5] = r) : r = e[5], r;
944
+ return e[3] !== l || e[4] !== t ? (r = /* @__PURE__ */ i(F, { ...t, minH: "49px", justify: "space-between", align: "center", borderBottomWidth: "1px", p: "xs", children: l }), e[3] = l, e[4] = t, e[5] = r) : r = e[5], r;
942
945
  }
943
- const il = (i, e) => `${i.name}-${i.version ?? "unknown"}-${e}`, rl = (i) => i.version ? `${i.name} v${i.version}` : i.name, en = (i) => {
946
+ const bl = (n, e) => `${n.name}-${n.version ?? "unknown"}-${e}`, xl = (n) => n.version ? `${n.name} v${n.version}` : n.name, Hn = (n) => {
944
947
  const e = T(30), {
945
948
  notices: l,
946
949
  title: t,
@@ -950,113 +953,429 @@ const il = (i, e) => `${i.name}-${i.version ?? "unknown"}-${e}`, rl = (i) => i.v
950
953
  generatedAt: a,
951
954
  emptyTitle: c,
952
955
  emptyDescription: d
953
- } = i, h = t === void 0 ? "Open Source and Third-Party Notices" : t, f = r === void 0 ? "This product includes software developed by the open source community." : r, m = c === void 0 ? "No third-party notices available" : c, u = d === void 0 ? "No third-party packages were included in this build." : d;
954
- let g;
955
- e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (g = {
956
+ } = n, h = t === void 0 ? "Open Source and Third-Party Notices" : t, g = r === void 0 ? "This product includes software developed by the open source community." : r, f = c === void 0 ? "No third-party notices available" : c, u = d === void 0 ? "No third-party packages were included in this build." : d;
957
+ let m;
958
+ e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (m = {
956
959
  base: "md",
957
960
  md: "xl"
958
- }, e[0] = g) : g = e[0];
961
+ }, e[0] = m) : m = e[0];
959
962
  let p;
960
- e[1] !== h ? (p = /* @__PURE__ */ n(C, { textStyle: "heading/L", children: h }), e[1] = h, e[2] = p) : p = e[2];
963
+ e[1] !== h ? (p = /* @__PURE__ */ i(w, { textStyle: "heading/L", children: h }), e[1] = h, e[2] = p) : p = e[2];
961
964
  let x;
962
- e[3] !== f ? (x = /* @__PURE__ */ n(C, { textStyle: "paragraph/S/regular", color: "fg.muted", children: f }), e[3] = f, e[4] = x) : x = e[4];
965
+ e[3] !== g ? (x = /* @__PURE__ */ i(w, { textStyle: "paragraph/S/regular", color: "fg.muted", children: g }), e[3] = g, e[4] = x) : x = e[4];
963
966
  let S;
964
- e[5] !== s ? (S = s ? /* @__PURE__ */ b(C, { textStyle: "label/XS", color: "fg.muted", children: [
967
+ e[5] !== s ? (S = s ? /* @__PURE__ */ b(w, { textStyle: "label/XS", color: "fg.muted", children: [
965
968
  "Product: ",
966
969
  s
967
970
  ] }) : null, e[5] = s, e[6] = S) : S = e[6];
968
971
  let y;
969
- e[7] !== o ? (y = o ? /* @__PURE__ */ b(C, { textStyle: "label/XS", color: "fg.muted", children: [
972
+ e[7] !== o ? (y = o ? /* @__PURE__ */ b(w, { textStyle: "label/XS", color: "fg.muted", children: [
970
973
  "Version: ",
971
974
  o
972
975
  ] }) : null, e[7] = o, e[8] = y) : y = e[8];
973
976
  let v;
974
- e[9] !== l.length ? (v = /* @__PURE__ */ b(C, { textStyle: "label/XS", color: "fg.muted", children: [
977
+ e[9] !== l.length ? (v = /* @__PURE__ */ b(w, { textStyle: "label/XS", color: "fg.muted", children: [
975
978
  "Packages: ",
976
979
  l.length
977
980
  ] }), e[9] = l.length, e[10] = v) : v = e[10];
978
- let w;
979
- e[11] !== a ? (w = a ? /* @__PURE__ */ b(C, { textStyle: "label/XS", color: "fg.muted", children: [
981
+ let I;
982
+ e[11] !== a ? (I = a ? /* @__PURE__ */ b(w, { textStyle: "label/XS", color: "fg.muted", children: [
980
983
  "Generated: ",
981
984
  a
982
- ] }) : null, e[11] = a, e[12] = w) : w = e[12];
985
+ ] }) : null, e[11] = a, e[12] = I) : I = e[12];
983
986
  let P;
984
- e[13] !== w || e[14] !== S || e[15] !== y || e[16] !== v ? (P = /* @__PURE__ */ b(ee, { gap: "md", flexWrap: "wrap", children: [
987
+ e[13] !== I || e[14] !== S || e[15] !== y || e[16] !== v ? (P = /* @__PURE__ */ b(F, { gap: "md", flexWrap: "wrap", children: [
985
988
  S,
986
989
  y,
987
990
  v,
988
- w
989
- ] }), e[13] = w, e[14] = S, e[15] = y, e[16] = v, e[17] = P) : P = e[17];
991
+ I
992
+ ] }), e[13] = I, e[14] = S, e[15] = y, e[16] = v, e[17] = P) : P = e[17];
990
993
  let k;
991
- e[18] !== P || e[19] !== p || e[20] !== x ? (k = /* @__PURE__ */ b($, { gap: "xs", children: [
994
+ e[18] !== P || e[19] !== p || e[20] !== x ? (k = /* @__PURE__ */ b(R, { gap: "xs", children: [
992
995
  p,
993
996
  x,
994
997
  P
995
998
  ] }), e[18] = P, e[19] = p, e[20] = x, e[21] = k) : k = e[21];
996
- let I;
997
- e[22] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (I = /* @__PURE__ */ n(rt, { borderColor: "border.muted" }), e[22] = I) : I = e[22];
998
- let R;
999
- e[23] !== u || e[24] !== m || e[25] !== l ? (R = l.length === 0 ? /* @__PURE__ */ b($, { borderWidth: "1px", borderColor: "border.muted", borderRadius: "md", padding: "lg", gap: "xs", children: [
1000
- /* @__PURE__ */ n(C, { textStyle: "label/L/medium", children: m }),
1001
- /* @__PURE__ */ n(C, { textStyle: "paragraph/S/regular", color: "fg.muted", children: u })
1002
- ] }) : /* @__PURE__ */ n($, { gap: "md", children: l.map(ol) }), e[23] = u, e[24] = m, e[25] = l, e[26] = R) : R = e[26];
1003
- let z;
1004
- return e[27] !== k || e[28] !== R ? (z = /* @__PURE__ */ b($, { width: "full", minHeight: "100%", background: "bg", color: "fg", padding: g, gap: "lg", children: [
999
+ let C;
1000
+ e[22] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (C = /* @__PURE__ */ i(gt, { borderColor: "border.muted" }), e[22] = C) : C = e[22];
1001
+ let _;
1002
+ e[23] !== u || e[24] !== f || e[25] !== l ? (_ = l.length === 0 ? /* @__PURE__ */ b(R, { borderWidth: "1px", borderColor: "border.muted", borderRadius: "md", padding: "lg", gap: "xs", children: [
1003
+ /* @__PURE__ */ i(w, { textStyle: "label/L/medium", children: f }),
1004
+ /* @__PURE__ */ i(w, { textStyle: "paragraph/S/regular", color: "fg.muted", children: u })
1005
+ ] }) : /* @__PURE__ */ i(R, { gap: "md", children: l.map(Sl) }), e[23] = u, e[24] = f, e[25] = l, e[26] = _) : _ = e[26];
1006
+ let L;
1007
+ return e[27] !== k || e[28] !== _ ? (L = /* @__PURE__ */ b(R, { width: "full", minHeight: "100%", background: "bg", color: "fg", padding: m, gap: "lg", children: [
1005
1008
  k,
1006
- I,
1007
- R
1008
- ] }), e[27] = k, e[28] = R, e[29] = z) : z = e[29], z;
1009
+ C,
1010
+ _
1011
+ ] }), e[27] = k, e[28] = _, e[29] = L) : L = e[29], L;
1009
1012
  };
1010
- function ol(i, e) {
1011
- return /* @__PURE__ */ n(L, { borderWidth: "1px", borderColor: "border.muted", borderRadius: "md", padding: "md", children: /* @__PURE__ */ b($, { gap: "sm", children: [
1012
- /* @__PURE__ */ b($, { gap: "2xs", children: [
1013
- /* @__PURE__ */ n(C, { textStyle: "label/L/medium", children: rl(i) }),
1014
- /* @__PURE__ */ b(C, { textStyle: "label/S/regular", color: "fg.muted", children: [
1013
+ function Sl(n, e) {
1014
+ return /* @__PURE__ */ i(D, { borderWidth: "1px", borderColor: "border.muted", borderRadius: "md", padding: "md", children: /* @__PURE__ */ b(R, { gap: "sm", children: [
1015
+ /* @__PURE__ */ b(R, { gap: "2xs", children: [
1016
+ /* @__PURE__ */ i(w, { textStyle: "label/L/medium", children: xl(n) }),
1017
+ /* @__PURE__ */ b(w, { textStyle: "label/S/regular", color: "fg.muted", children: [
1015
1018
  "License: ",
1016
- i.license ?? "Unknown"
1019
+ n.license ?? "Unknown"
1017
1020
  ] })
1018
1021
  ] }),
1019
- i.copyright ? /* @__PURE__ */ n(C, { textStyle: "label/S/regular", color: "fg.muted", children: i.copyright }) : null,
1020
- (i.homepageUrl || i.sourceUrl) && /* @__PURE__ */ b($, { gap: "2xs", children: [
1021
- i.homepageUrl ? /* @__PURE__ */ n(Ae, { href: i.homepageUrl, target: "_blank", rel: "noreferrer", textStyle: "label/S/medium", width: "fit-content", children: "Homepage" }) : null,
1022
- i.sourceUrl ? /* @__PURE__ */ n(Ae, { href: i.sourceUrl, target: "_blank", rel: "noreferrer", textStyle: "label/S/medium", width: "fit-content", children: "Source code" }) : null
1022
+ n.copyright ? /* @__PURE__ */ i(w, { textStyle: "label/S/regular", color: "fg.muted", children: n.copyright }) : null,
1023
+ (n.homepageUrl || n.sourceUrl) && /* @__PURE__ */ b(R, { gap: "2xs", children: [
1024
+ n.homepageUrl ? /* @__PURE__ */ i(Be, { href: n.homepageUrl, target: "_blank", rel: "noreferrer", textStyle: "label/S/medium", width: "fit-content", children: "Homepage" }) : null,
1025
+ n.sourceUrl ? /* @__PURE__ */ i(Be, { href: n.sourceUrl, target: "_blank", rel: "noreferrer", textStyle: "label/S/medium", width: "fit-content", children: "Source code" }) : null
1023
1026
  ] }),
1024
- i.attribution ? /* @__PURE__ */ n(L, { background: "bg.muted", borderRadius: "sm", padding: "sm", children: /* @__PURE__ */ n(C, { textStyle: "label/S/regular", whiteSpace: "pre-wrap", children: i.attribution }) }) : null
1025
- ] }) }, il(i, e));
1027
+ n.attribution ? /* @__PURE__ */ i(D, { background: "bg.muted", borderRadius: "sm", padding: "sm", children: /* @__PURE__ */ i(w, { textStyle: "label/S/regular", whiteSpace: "pre-wrap", children: n.attribution }) }) : null
1028
+ ] }) }, bl(n, e));
1026
1029
  }
1027
- const tn = (i) => {
1030
+ const Nn = (n) => {
1028
1031
  const e = T(4), {
1029
1032
  items: l
1030
- } = i;
1033
+ } = n;
1031
1034
  let t;
1032
- e[0] !== l ? (t = l.map(sl), e[0] = l, e[1] = t) : t = e[1];
1035
+ e[0] !== l ? (t = l.map(yl), e[0] = l, e[1] = t) : t = e[1];
1033
1036
  let r;
1034
- return e[2] !== t ? (r = /* @__PURE__ */ n($, { gap: "sm", paddingLeft: "sm", paddingY: "xs", children: t }), e[2] = t, e[3] = r) : r = e[3], r;
1037
+ return e[2] !== t ? (r = /* @__PURE__ */ i(R, { gap: "sm", paddingLeft: "sm", paddingY: "xs", children: t }), e[2] = t, e[3] = r) : r = e[3], r;
1035
1038
  };
1036
- function sl(i, e) {
1037
- return /* @__PURE__ */ b(ee, { gap: "md", alignItems: "center", children: [
1038
- /* @__PURE__ */ n(L, { width: "140px", flexShrink: 0, children: /* @__PURE__ */ b(ee, { gap: "1", alignItems: "center", children: [
1039
- /* @__PURE__ */ n(C, { textStyle: "label/S/medium", color: "fg.muted", children: i.label }),
1040
- i.description && /* @__PURE__ */ n(_e, { content: i.description, showArrow: !0, children: /* @__PURE__ */ n(ne, { as: wt, boxSize: "12px", color: "fg.muted", opacity: 0.6, cursor: "help" }) })
1039
+ function yl(n, e) {
1040
+ return /* @__PURE__ */ b(F, { gap: "md", alignItems: "center", children: [
1041
+ /* @__PURE__ */ i(D, { width: "140px", flexShrink: 0, children: /* @__PURE__ */ b(F, { gap: "1", alignItems: "center", children: [
1042
+ /* @__PURE__ */ i(w, { textStyle: "label/S/medium", color: "fg.muted", children: n.label }),
1043
+ n.description && /* @__PURE__ */ i(Ee, { content: n.description, showArrow: !0, children: /* @__PURE__ */ i(ne, { as: Dt, boxSize: "12px", color: "fg.muted", opacity: 0.6, cursor: "help" }) })
1041
1044
  ] }) }),
1042
- /* @__PURE__ */ n(L, { flex: "1", children: i.value })
1043
- ] }, `${i.label}-${e}`);
1045
+ /* @__PURE__ */ i(D, { flex: "1", children: n.value })
1046
+ ] }, `${n.label}-${e}`);
1044
1047
  }
1045
- const al = (i) => i === "completed" ? kt : i === "failed" ? It : Pt, cl = (i) => i === "completed" ? "fg.success" : i === "failed" ? "fg.error" : "fg.muted", dl = (i) => {
1048
+ const vl = (n) => n === "completed" ? Lt : n === "failed" ? Et : zt, Cl = (n) => n === "completed" ? "fg.success" : n === "failed" ? "fg.error" : "fg.muted", wl = (n) => {
1046
1049
  const e = T(11), {
1047
1050
  status: l,
1048
1051
  boxSize: t,
1049
1052
  ariaLabel: r,
1050
1053
  cursor: s,
1051
1054
  onClick: o
1052
- } = i, a = t === void 0 ? "14px" : t, c = r === void 0 ? "Session status" : r;
1055
+ } = n, a = t === void 0 ? "14px" : t, c = r === void 0 ? "Session status" : r;
1053
1056
  let d;
1054
- e[0] !== l ? (d = al(l), e[0] = l, e[1] = d) : d = e[1];
1057
+ e[0] !== l ? (d = vl(l), e[0] = l, e[1] = d) : d = e[1];
1055
1058
  let h;
1056
- e[2] !== l ? (h = cl(l), e[2] = l, e[3] = h) : h = e[3];
1057
- let f;
1058
- return e[4] !== c || e[5] !== a || e[6] !== s || e[7] !== o || e[8] !== d || e[9] !== h ? (f = /* @__PURE__ */ n(ne, { as: d, boxSize: a, color: h, "aria-label": c, cursor: s, onClick: o }), e[4] = c, e[5] = a, e[6] = s, e[7] = o, e[8] = d, e[9] = h, e[10] = f) : f = e[10], f;
1059
- }, ln = ze.forwardRef(function(e, l) {
1059
+ e[2] !== l ? (h = Cl(l), e[2] = l, e[3] = h) : h = e[3];
1060
+ let g;
1061
+ return e[4] !== c || e[5] !== a || e[6] !== s || e[7] !== o || e[8] !== d || e[9] !== h ? (g = /* @__PURE__ */ i(ne, { as: d, boxSize: a, color: h, "aria-label": c, cursor: s, onClick: o }), e[4] = c, e[5] = a, e[6] = s, e[7] = o, e[8] = d, e[9] = h, e[10] = g) : g = e[10], g;
1062
+ }, tt = (n, e) => e.includes(n), kl = (n) => {
1063
+ const e = T(18), {
1064
+ action: l,
1065
+ sectionId: t,
1066
+ nodeId: r
1067
+ } = n;
1068
+ if (l.menuItems && l.menuItems.length > 0) {
1069
+ let a;
1070
+ e[0] !== l.icon || e[1] !== l.label ? (a = /* @__PURE__ */ i(ie.Trigger, { asChild: !0, children: /* @__PURE__ */ i($e, { variant: "ghost", size: "2xs", "aria-label": l.label, children: l.icon }) }), e[0] = l.icon, e[1] = l.label, e[2] = a) : a = e[2];
1071
+ let c;
1072
+ e[3] !== l.menuItems ? (c = l.menuItems.map(Pl), e[3] = l.menuItems, e[4] = c) : c = e[4];
1073
+ let d;
1074
+ e[5] !== c ? (d = /* @__PURE__ */ i(ie.Positioner, { children: /* @__PURE__ */ i(ie.Content, { minW: "160px", bg: "bg", children: c }) }), e[5] = c, e[6] = d) : d = e[6];
1075
+ let h;
1076
+ return e[7] !== a || e[8] !== d ? (h = /* @__PURE__ */ b(ie.Root, { children: [
1077
+ a,
1078
+ d
1079
+ ] }), e[7] = a, e[8] = d, e[9] = h) : h = e[9], h;
1080
+ }
1081
+ let s;
1082
+ e[10] !== l || e[11] !== r || e[12] !== t ? (s = (a) => {
1083
+ a.stopPropagation(), l.onAction?.({
1084
+ sectionId: t,
1085
+ nodeId: r
1086
+ });
1087
+ }, e[10] = l, e[11] = r, e[12] = t, e[13] = s) : s = e[13];
1088
+ let o;
1089
+ return e[14] !== l.icon || e[15] !== l.label || e[16] !== s ? (o = /* @__PURE__ */ i($e, { variant: "ghost", size: "2xs", "aria-label": l.label, onClick: s, children: l.icon }), e[14] = l.icon, e[15] = l.label, e[16] = s, e[17] = o) : o = e[17], o;
1090
+ }, lt = (n) => {
1091
+ const e = T(11), {
1092
+ sectionId: l,
1093
+ nodeId: t,
1094
+ actions: r
1095
+ } = n;
1096
+ if (r.length === 0)
1097
+ return null;
1098
+ let s, o;
1099
+ e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (s = {
1100
+ opacity: "1",
1101
+ pointerEvents: "auto"
1102
+ }, o = {
1103
+ opacity: "1",
1104
+ pointerEvents: "auto"
1105
+ }, e[0] = s, e[1] = o) : (s = e[0], o = e[1]);
1106
+ let a;
1107
+ if (e[2] !== r || e[3] !== t || e[4] !== l) {
1108
+ let d;
1109
+ e[6] !== t || e[7] !== l ? (d = (h) => /* @__PURE__ */ i(kl, { action: h, sectionId: l, nodeId: t }, h.id), e[6] = t, e[7] = l, e[8] = d) : d = e[8], a = r.map(d), e[2] = r, e[3] = t, e[4] = l, e[5] = a;
1110
+ } else
1111
+ a = e[5];
1112
+ let c;
1113
+ return e[9] !== a ? (c = /* @__PURE__ */ i(F, { gap: "0", opacity: "0", pointerEvents: "none", _groupHover: s, _groupFocusWithin: o, transition: "opacity 120ms ease", onClick: Tl, children: a }), e[9] = a, e[10] = c) : c = e[10], c;
1114
+ }, nt = (n) => {
1115
+ const e = T(60), {
1116
+ sectionId: l,
1117
+ node: t,
1118
+ level: r,
1119
+ expandedNodes: s,
1120
+ activeNodeId: o,
1121
+ onNavigate: a,
1122
+ onToggleNode: c
1123
+ } = n, d = (t.children?.length ?? 0) > 0;
1124
+ let h;
1125
+ e[0] !== s || e[1] !== d || e[2] !== t.id ? (h = d && tt(t.id, s), e[0] = s, e[1] = d, e[2] = t.id, e[3] = h) : h = e[3];
1126
+ const g = h, f = t.isNavigable || t.navigationIntent !== void 0, u = o === t.id, m = t.disabled === !0, p = r > 0 ? `calc(var(--chakra-spacing-1) + ${r} * var(--chakra-spacing-3))` : void 0;
1127
+ let x;
1128
+ e[4] !== d || e[5] !== m || e[6] !== f || e[7] !== t || e[8] !== a || e[9] !== c || e[10] !== l ? (x = () => {
1129
+ if (!m) {
1130
+ if (d) {
1131
+ c(t.id);
1132
+ return;
1133
+ }
1134
+ f && a?.({
1135
+ sectionId: l,
1136
+ nodeId: t.id,
1137
+ node: t,
1138
+ intent: t.navigationIntent
1139
+ });
1140
+ }
1141
+ }, e[4] = d, e[5] = m, e[6] = f, e[7] = t, e[8] = a, e[9] = c, e[10] = l, e[11] = x) : x = e[11];
1142
+ const S = x, y = t.children ? "0" : "2xs", v = u ? "bg.muted" : "transparent", I = u ? "bg.muted" : "bg.subtle";
1143
+ let P;
1144
+ e[12] !== I ? (P = {
1145
+ bg: I
1146
+ }, e[12] = I, e[13] = P) : P = e[13];
1147
+ const k = m ? "default" : "pointer";
1148
+ let C;
1149
+ e[14] !== t.icon ? (C = t.icon ? /* @__PURE__ */ i(D, { color: "fg.muted", flexShrink: 0, children: t.icon }) : null, e[14] = t.icon, e[15] = C) : C = e[15];
1150
+ const _ = m ? "fg.muted" : "fg";
1151
+ let L;
1152
+ e[16] !== t.label || e[17] !== _ ? (L = /* @__PURE__ */ i(w, { textStyle: "paragraph/S/regular", color: _, truncate: !0, children: t.label }), e[16] = t.label, e[17] = _, e[18] = L) : L = e[18];
1153
+ let B;
1154
+ e[19] !== g || e[20] !== d ? (B = d ? /* @__PURE__ */ i(D, { color: "fg.muted", flexShrink: 0, children: /* @__PURE__ */ i(pe, { size: 14, style: {
1155
+ transform: g ? "rotate(90deg)" : "rotate(0deg)",
1156
+ transition: "120ms"
1157
+ } }) }) : null, e[19] = g, e[20] = d, e[21] = B) : B = e[21];
1158
+ let N;
1159
+ e[22] !== B || e[23] !== L ? (N = /* @__PURE__ */ b(F, { gap: "1", minW: "0", children: [
1160
+ L,
1161
+ B
1162
+ ] }), e[22] = B, e[23] = L, e[24] = N) : N = e[24];
1163
+ let O;
1164
+ e[25] !== t.description ? (O = t.description ? /* @__PURE__ */ i(w, { textStyle: "paragraph/XS/regular", color: "fg.muted", truncate: !0, children: t.description }) : null, e[25] = t.description, e[26] = O) : O = e[26];
1165
+ let z;
1166
+ e[27] !== N || e[28] !== O ? (z = /* @__PURE__ */ b(R, { gap: "0", minW: "0", flex: "1", children: [
1167
+ N,
1168
+ O
1169
+ ] }), e[27] = N, e[28] = O, e[29] = z) : z = e[29];
1170
+ let E;
1171
+ e[30] !== z || e[31] !== C ? (E = /* @__PURE__ */ b(F, { gap: "2", minW: "0", flex: "1", overflow: "hidden", children: [
1172
+ C,
1173
+ z
1174
+ ] }), e[30] = z, e[31] = C, e[32] = E) : E = e[32];
1175
+ let A;
1176
+ e[33] !== t.actions ? (A = t.actions ?? [], e[33] = t.actions, e[34] = A) : A = e[34];
1177
+ let M;
1178
+ e[35] !== t.id || e[36] !== l || e[37] !== A ? (M = /* @__PURE__ */ i(lt, { sectionId: l, nodeId: t.id, actions: A }), e[35] = t.id, e[36] = l, e[37] = A, e[38] = M) : M = e[38];
1179
+ let W;
1180
+ e[39] !== S || e[40] !== p || e[41] !== E || e[42] !== M || e[43] !== v || e[44] !== P || e[45] !== k ? (W = /* @__PURE__ */ b(F, { className: "group", justify: "space-between", align: "center", borderRadius: "xs", px: "1", py: "2xs", pl: p, bg: v, _hover: P, cursor: k, onClick: S, overflow: "hidden", children: [
1181
+ E,
1182
+ M
1183
+ ] }), e[39] = S, e[40] = p, e[41] = E, e[42] = M, e[43] = v, e[44] = P, e[45] = k, e[46] = W) : W = e[46];
1184
+ let j;
1185
+ e[47] !== o || e[48] !== g || e[49] !== s || e[50] !== r || e[51] !== t.children || e[52] !== a || e[53] !== c || e[54] !== l ? (j = g ? t.children?.map((G) => /* @__PURE__ */ i(nt, { sectionId: l, node: G, level: r + 1, expandedNodes: s, activeNodeId: o, onNavigate: a, onToggleNode: c }, G.id)) : null, e[47] = o, e[48] = g, e[49] = s, e[50] = r, e[51] = t.children, e[52] = a, e[53] = c, e[54] = l, e[55] = j) : j = e[55];
1186
+ let $;
1187
+ return e[56] !== W || e[57] !== j || e[58] !== y ? ($ = /* @__PURE__ */ b(R, { gap: y, children: [
1188
+ W,
1189
+ j
1190
+ ] }), e[56] = W, e[57] = j, e[58] = y, e[59] = $) : $ = e[59], $;
1191
+ }, Il = (n) => {
1192
+ const e = T(17), {
1193
+ sections: l,
1194
+ expandedSections: t,
1195
+ expandedNodes: r,
1196
+ activeNodeId: s,
1197
+ onNavigate: o,
1198
+ onToggleSection: a,
1199
+ onToggleNode: c
1200
+ } = n;
1201
+ let d;
1202
+ if (e[0] !== s || e[1] !== r || e[2] !== t || e[3] !== o || e[4] !== c || e[5] !== a || e[6] !== l) {
1203
+ let g;
1204
+ e[8] !== s || e[9] !== r || e[10] !== t || e[11] !== o || e[12] !== c || e[13] !== a ? (g = (f) => {
1205
+ const u = f.label ? tt(f.id, t) : !0;
1206
+ return /* @__PURE__ */ b(R, { gap: "0", children: [
1207
+ f.label ? /* @__PURE__ */ b(F, { className: "group", justify: "space-between", align: "center", px: "1", py: "2xs", minH: "7", cursor: "pointer", borderRadius: "xs", _hover: {
1208
+ bg: "bg.subtle"
1209
+ }, onClick: () => a(f.id), children: [
1210
+ /* @__PURE__ */ b(F, { gap: "1", flex: "1", minW: "0", children: [
1211
+ /* @__PURE__ */ i(w, { textStyle: "label/XS", textTransform: "uppercase", color: "fg.muted", letterSpacing: "0.08em", truncate: !0, children: f.label }),
1212
+ /* @__PURE__ */ i(D, { color: "fg.muted", flexShrink: 0, children: /* @__PURE__ */ i(pe, { size: 14, style: {
1213
+ transform: u ? "rotate(90deg)" : "rotate(0deg)",
1214
+ transition: "120ms"
1215
+ } }) })
1216
+ ] }),
1217
+ /* @__PURE__ */ i(lt, { sectionId: f.id, actions: f.actions ?? [] })
1218
+ ] }) : null,
1219
+ u ? f.nodes.length > 0 ? f.nodes.map((m) => /* @__PURE__ */ i(nt, { sectionId: f.id, node: m, level: 0, expandedNodes: r, activeNodeId: s, onNavigate: o, onToggleNode: c }, m.id)) : f.emptyState ?? null : null
1220
+ ] }, f.id);
1221
+ }, e[8] = s, e[9] = r, e[10] = t, e[11] = o, e[12] = c, e[13] = a, e[14] = g) : g = e[14], d = l.map(g), e[0] = s, e[1] = r, e[2] = t, e[3] = o, e[4] = c, e[5] = a, e[6] = l, e[7] = d;
1222
+ } else
1223
+ d = e[7];
1224
+ let h;
1225
+ return e[15] !== d ? (h = /* @__PURE__ */ i(R, { gap: "md", p: "md", children: d }), e[15] = d, e[16] = h) : h = e[16], h;
1226
+ };
1227
+ function Pl(n) {
1228
+ return /* @__PURE__ */ b(ie.Item, { value: n.id, onClick: () => n.onAction?.(), children: [
1229
+ n.icon ? /* @__PURE__ */ i(D, { mr: "2", children: n.icon }) : null,
1230
+ n.label
1231
+ ] }, n.id);
1232
+ }
1233
+ function Tl(n) {
1234
+ return n.stopPropagation();
1235
+ }
1236
+ const Fe = {
1237
+ open: !0,
1238
+ expandedSections: [],
1239
+ expandedNodes: []
1240
+ }, _l = "pstdio/ui/sidebar-next", $l = (n) => `${_l}/${n}`, Rl = () => ({
1241
+ getItem: () => null,
1242
+ setItem: () => {
1243
+ },
1244
+ removeItem: () => {
1245
+ }
1246
+ }), Ve = (n, e) => n.includes(e) ? n.filter((l) => l !== e) : [...n, e], Ye = (n, e, l) => l ? n.includes(e) ? n : [...n, e] : n.filter((t) => t !== e), Dl = (n) => ({
1247
+ open: n.open,
1248
+ expandedSections: n.expandedSections,
1249
+ expandedNodes: n.expandedNodes
1250
+ }), Ll = (n) => {
1251
+ const {
1252
+ storageKey: e,
1253
+ initialState: l
1254
+ } = n, t = {
1255
+ ...Fe,
1256
+ ...l
1257
+ };
1258
+ return jt()(Bt((r) => ({
1259
+ ...t,
1260
+ openSidebar: () => r((s) => ({
1261
+ ...s,
1262
+ open: !0
1263
+ })),
1264
+ closeSidebar: () => r((s) => ({
1265
+ ...s,
1266
+ open: !1
1267
+ })),
1268
+ toggleSidebar: () => r((s) => ({
1269
+ ...s,
1270
+ open: !s.open
1271
+ })),
1272
+ toggleSection: (s) => r((o) => ({
1273
+ ...o,
1274
+ expandedSections: Ve(o.expandedSections, s)
1275
+ })),
1276
+ toggleNode: (s) => r((o) => ({
1277
+ ...o,
1278
+ expandedNodes: Ve(o.expandedNodes, s)
1279
+ })),
1280
+ setSectionExpanded: (s, o) => r((a) => ({
1281
+ ...a,
1282
+ expandedSections: Ye(a.expandedSections, s, o)
1283
+ })),
1284
+ setNodeExpanded: (s, o) => r((a) => ({
1285
+ ...a,
1286
+ expandedNodes: Ye(a.expandedNodes, s, o)
1287
+ })),
1288
+ reset: () => r(Fe)
1289
+ }), {
1290
+ name: $l(e),
1291
+ storage: Ot(() => typeof globalThis.localStorage > "u" ? Rl() : globalThis.localStorage),
1292
+ partialize: Dl
1293
+ }));
1294
+ }, Ue = /* @__PURE__ */ new Map(), El = (n) => {
1295
+ const e = Ue.get(n);
1296
+ if (e)
1297
+ return e;
1298
+ const l = Ll({
1299
+ storageKey: n
1300
+ });
1301
+ return Ue.set(n, l), l;
1302
+ }, _e = (n, e) => {
1303
+ const l = T(2);
1304
+ let t;
1305
+ return l[0] !== n ? (t = El(n), l[0] = n, l[1] = t) : t = l[1], Mt(t, e);
1306
+ }, zl = (n) => {
1307
+ const e = T(2), {
1308
+ children: l
1309
+ } = n;
1310
+ if (!l)
1311
+ return null;
1312
+ let t;
1313
+ return e[0] !== l ? (t = /* @__PURE__ */ i(D, { borderTopWidth: "1px", borderTopColor: "border.muted", px: "2", py: "2", bg: "bg", position: "sticky", bottom: "0", children: l }), e[0] = l, e[1] = t) : t = e[1], t;
1314
+ }, Hl = (n) => {
1315
+ const e = T(8), {
1316
+ children: l,
1317
+ onClose: t
1318
+ } = n;
1319
+ let r;
1320
+ e[0] !== l ? (r = /* @__PURE__ */ i(F, { minW: "0", flex: "1", children: l }), e[0] = l, e[1] = r) : r = e[1];
1321
+ let s;
1322
+ e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ i(Ht, { size: 16 }), e[2] = s) : s = e[2];
1323
+ let o;
1324
+ e[3] !== t ? (o = /* @__PURE__ */ i($e, { variant: "ghost", size: "sm", "aria-label": "Hide sidebar", onClick: t, children: s }), e[3] = t, e[4] = o) : o = e[4];
1325
+ let a;
1326
+ return e[5] !== r || e[6] !== o ? (a = /* @__PURE__ */ b(F, { justify: "space-between", align: "center", minH: "11", px: "3", py: "2", borderBottomWidth: "1px", borderBottomColor: "border.muted", bg: "bg", position: "sticky", top: "0", zIndex: "1", children: [
1327
+ r,
1328
+ o
1329
+ ] }), e[5] = r, e[6] = o, e[7] = a) : a = e[7], a;
1330
+ }, Wn = (n) => {
1331
+ const e = T(23), {
1332
+ storageKey: l,
1333
+ sections: t,
1334
+ activeNodeId: r,
1335
+ header: s,
1336
+ footer: o,
1337
+ width: a,
1338
+ emptyLabel: c,
1339
+ onNavigate: d,
1340
+ onOpenChange: h
1341
+ } = n, g = a === void 0 ? "320px" : a, f = c === void 0 ? "No items available." : c, u = _e(l, Nl), m = _e(l, Wl), p = _e(l, Al), x = _e(l, Ml), S = _e(l, Bl), y = _e(l, Ol);
1342
+ let v, I;
1343
+ if (e[0] !== h || e[1] !== u ? (v = () => {
1344
+ h?.(u);
1345
+ }, I = [h, u], e[0] = h, e[1] = u, e[2] = v, e[3] = I) : (v = e[2], I = e[3]), We(v, I), !u)
1346
+ return null;
1347
+ let P;
1348
+ e[4] !== x || e[5] !== s ? (P = /* @__PURE__ */ i(Hl, { onClose: x, children: s }), e[4] = x, e[5] = s, e[6] = P) : P = e[6];
1349
+ let k;
1350
+ e[7] !== r || e[8] !== f || e[9] !== p || e[10] !== m || e[11] !== d || e[12] !== t || e[13] !== y || e[14] !== S ? (k = /* @__PURE__ */ i(he, { flex: "1", children: t.length === 0 ? /* @__PURE__ */ i(w, { textStyle: "paragraph/S/regular", color: "fg.muted", p: "3", children: f }) : /* @__PURE__ */ i(Il, { sections: t, expandedSections: m, expandedNodes: p, activeNodeId: r, onNavigate: d, onToggleSection: S, onToggleNode: y }) }), e[7] = r, e[8] = f, e[9] = p, e[10] = m, e[11] = d, e[12] = t, e[13] = y, e[14] = S, e[15] = k) : k = e[15];
1351
+ let C;
1352
+ e[16] !== o ? (C = /* @__PURE__ */ i(zl, { children: o }), e[16] = o, e[17] = C) : C = e[17];
1353
+ let _;
1354
+ return e[18] !== P || e[19] !== k || e[20] !== C || e[21] !== g ? (_ = /* @__PURE__ */ b(me, { as: "aside", direction: "column", h: "100%", w: g, minW: g, maxW: g, borderRightWidth: "1px", borderRightColor: "border.muted", bg: "bg", children: [
1355
+ P,
1356
+ k,
1357
+ C
1358
+ ] }), e[18] = P, e[19] = k, e[20] = C, e[21] = g, e[22] = _) : _ = e[22], _;
1359
+ };
1360
+ function Nl(n) {
1361
+ return n.open;
1362
+ }
1363
+ function Wl(n) {
1364
+ return n.expandedSections;
1365
+ }
1366
+ function Al(n) {
1367
+ return n.expandedNodes;
1368
+ }
1369
+ function Ml(n) {
1370
+ return n.closeSidebar;
1371
+ }
1372
+ function Bl(n) {
1373
+ return n.toggleSection;
1374
+ }
1375
+ function Ol(n) {
1376
+ return n.toggleNode;
1377
+ }
1378
+ const An = He.forwardRef(function(e, l) {
1060
1379
  const t = T(32);
1061
1380
  let r, s, o, a, c, d, h;
1062
1381
  t[0] !== e ? ({
@@ -1068,29 +1387,29 @@ const al = (i) => i === "completed" ? kt : i === "failed" ? It : Pt, cl = (i) =>
1068
1387
  disabled: c,
1069
1388
  ...o
1070
1389
  } = e, t[0] = e, t[1] = r, t[2] = s, t[3] = o, t[4] = a, t[5] = c, t[6] = d, t[7] = h) : (r = t[1], s = t[2], o = t[3], a = t[4], c = t[5], d = t[6], h = t[7]);
1071
- const f = c === void 0 ? !1 : c, m = f ? "not-allowed" : "pointer";
1390
+ const g = c === void 0 ? !1 : c, f = g ? "not-allowed" : "pointer";
1072
1391
  let u;
1073
- t[8] !== s || t[9] !== l ? (u = /* @__PURE__ */ n(ue.HiddenInput, { ref: l, ...s }), t[8] = s, t[9] = l, t[10] = u) : u = t[10];
1074
- let g;
1075
- t[11] !== d ? (g = d && /* @__PURE__ */ n(ue.ThumbIndicator, { fallback: d?.off, children: d?.on }), t[11] = d, t[12] = g) : g = t[12];
1392
+ t[8] !== s || t[9] !== l ? (u = /* @__PURE__ */ i(be.HiddenInput, { ref: l, ...s }), t[8] = s, t[9] = l, t[10] = u) : u = t[10];
1393
+ let m;
1394
+ t[11] !== d ? (m = d && /* @__PURE__ */ i(be.ThumbIndicator, { fallback: d?.off, children: d?.on }), t[11] = d, t[12] = m) : m = t[12];
1076
1395
  let p;
1077
- t[13] !== g ? (p = /* @__PURE__ */ n(ue.Thumb, { borderRadius: "full", children: g }), t[13] = g, t[14] = p) : p = t[14];
1396
+ t[13] !== m ? (p = /* @__PURE__ */ i(be.Thumb, { borderRadius: "full", children: m }), t[13] = m, t[14] = p) : p = t[14];
1078
1397
  let x;
1079
- t[15] !== h ? (x = h && /* @__PURE__ */ n(ue.Indicator, { fallback: h.off, children: h.on }), t[15] = h, t[16] = x) : x = t[16];
1398
+ t[15] !== h ? (x = h && /* @__PURE__ */ i(be.Indicator, { fallback: h.off, children: h.on }), t[15] = h, t[16] = x) : x = t[16];
1080
1399
  let S;
1081
- t[17] !== m || t[18] !== p || t[19] !== x ? (S = /* @__PURE__ */ b(ue.Control, { borderRadius: "md", cursor: m, children: [
1400
+ t[17] !== f || t[18] !== p || t[19] !== x ? (S = /* @__PURE__ */ b(be.Control, { borderRadius: "md", cursor: f, children: [
1082
1401
  p,
1083
1402
  x
1084
- ] }), t[17] = m, t[18] = p, t[19] = x, t[20] = S) : S = t[20];
1403
+ ] }), t[17] = f, t[18] = p, t[19] = x, t[20] = S) : S = t[20];
1085
1404
  let y;
1086
- t[21] !== r || t[22] !== m ? (y = r != null && /* @__PURE__ */ n(ue.Label, { cursor: m, children: r }), t[21] = r, t[22] = m, t[23] = y) : y = t[23];
1405
+ t[21] !== r || t[22] !== f ? (y = r != null && /* @__PURE__ */ i(be.Label, { cursor: f, children: r }), t[21] = r, t[22] = f, t[23] = y) : y = t[23];
1087
1406
  let v;
1088
- return t[24] !== f || t[25] !== m || t[26] !== o || t[27] !== a || t[28] !== u || t[29] !== S || t[30] !== y ? (v = /* @__PURE__ */ b(ue.Root, { ref: a, disabled: f, cursor: m, ...o, children: [
1407
+ return t[24] !== g || t[25] !== f || t[26] !== o || t[27] !== a || t[28] !== u || t[29] !== S || t[30] !== y ? (v = /* @__PURE__ */ b(be.Root, { ref: a, disabled: g, cursor: f, ...o, children: [
1089
1408
  u,
1090
1409
  S,
1091
1410
  y
1092
- ] }), t[24] = f, t[25] = m, t[26] = o, t[27] = a, t[28] = u, t[29] = S, t[30] = y, t[31] = v) : v = t[31], v;
1093
- }), hl = (i) => {
1411
+ ] }), t[24] = g, t[25] = f, t[26] = o, t[27] = a, t[28] = u, t[29] = S, t[30] = y, t[31] = v) : v = t[31], v;
1412
+ }), jl = (n) => {
1094
1413
  const e = T(43), {
1095
1414
  ticketId: l,
1096
1415
  parentPath: t,
@@ -1101,102 +1420,102 @@ const al = (i) => i === "completed" ? kt : i === "failed" ? It : Pt, cl = (i) =>
1101
1420
  diffAdditions: c,
1102
1421
  diffDeletions: d,
1103
1422
  isSelected: h,
1104
- draggable: f,
1105
- onDragStart: m,
1423
+ draggable: g,
1424
+ onDragStart: f,
1106
1425
  onDragEnd: u,
1107
- onClick: g,
1426
+ onClick: m,
1108
1427
  onDiffBadgeClick: p,
1109
1428
  onSessionIndicatorClick: x
1110
- } = i;
1429
+ } = n;
1111
1430
  let S;
1112
1431
  e[0] !== t ? (S = t === void 0 ? [] : t, e[0] = t, e[1] = S) : S = e[1];
1113
1432
  const y = S;
1114
1433
  let v;
1115
1434
  e[2] !== a ? (v = a === void 0 ? [] : a, e[2] = a, e[3] = v) : v = e[3];
1116
- const w = v, P = h === void 0 ? !1 : h;
1435
+ const I = v, P = h === void 0 ? !1 : h;
1117
1436
  let k;
1118
1437
  e[4] !== p ? (k = (Y) => {
1119
1438
  Y.stopPropagation(), p?.();
1120
1439
  }, e[4] = p, e[5] = k) : k = e[5];
1121
- const I = k;
1122
- let R;
1123
- e[6] !== x ? (R = (Y) => {
1440
+ const C = k;
1441
+ let _;
1442
+ e[6] !== x ? (_ = (Y) => {
1124
1443
  Y.stopPropagation(), x?.();
1125
- }, e[6] = x, e[7] = R) : R = e[7];
1126
- const z = R;
1127
- let j;
1128
- e[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (j = {
1444
+ }, e[6] = x, e[7] = _) : _ = e[7];
1445
+ const L = _;
1446
+ let B;
1447
+ e[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (B = {
1129
1448
  borderColor: "border.blue",
1130
1449
  boxShadow: "mid"
1131
- }, e[8] = j) : j = e[8];
1132
- const W = f ? "grab" : g ? "pointer" : "default", V = P ? "true" : void 0;
1133
- let H;
1134
- e[9] !== y ? (H = y.length > 0 && /* @__PURE__ */ b(C, { as: "span", color: "subtle", children: [
1450
+ }, e[8] = B) : B = e[8];
1451
+ const N = g ? "grab" : m ? "pointer" : "default", O = P ? "true" : void 0;
1452
+ let z;
1453
+ e[9] !== y ? (z = y.length > 0 && /* @__PURE__ */ b(w, { as: "span", color: "subtle", children: [
1135
1454
  y.join(" / "),
1136
1455
  " /",
1137
1456
  " "
1138
- ] }), e[9] = y, e[10] = H) : H = e[10];
1457
+ ] }), e[9] = y, e[10] = z) : z = e[10];
1139
1458
  let E;
1140
- e[11] !== H || e[12] !== l ? (E = /* @__PURE__ */ b(C, { textStyle: "label/S/regular", flexShrink: 0, children: [
1141
- H,
1459
+ e[11] !== z || e[12] !== l ? (E = /* @__PURE__ */ b(w, { textStyle: "label/S/regular", flexShrink: 0, children: [
1460
+ z,
1142
1461
  l
1143
- ] }), e[11] = H, e[12] = l, e[13] = E) : E = e[13];
1144
- let B;
1145
- e[14] !== z || e[15] !== x || e[16] !== r || e[17] !== s ? (B = r ? /* @__PURE__ */ n(_e, { content: `Session ${r}`, children: /* @__PURE__ */ n(dl, { status: s, boxSize: "12px", "aria-label": `Session ${r}`, cursor: x ? "pointer" : "default", onClick: x ? z : void 0 }) }) : null, e[14] = z, e[15] = x, e[16] = r, e[17] = s, e[18] = B) : B = e[18];
1146
- let O;
1147
- e[19] !== E || e[20] !== B ? (O = /* @__PURE__ */ b(ee, { gap: "2xs", flexShrink: 0, children: [
1148
- E,
1149
- B
1150
- ] }), e[19] = E, e[20] = B, e[21] = O) : O = e[21];
1462
+ ] }), e[11] = z, e[12] = l, e[13] = E) : E = e[13];
1151
1463
  let A;
1152
- e[22] !== c || e[23] !== d || e[24] !== I ? (A = typeof c == "number" && typeof d == "number" ? /* @__PURE__ */ n(Ne, { additions: c, deletions: d, variant: "ghost", size: "small", label: /* @__PURE__ */ n(Dt, { size: "12" }), onClick: I, "data-testid": "ticket-diff-badge" }) : null, e[22] = c, e[23] = d, e[24] = I, e[25] = A) : A = e[25];
1153
- let F;
1154
- e[26] !== O || e[27] !== A ? (F = /* @__PURE__ */ b(ee, { justifyContent: "space-between", gap: "2xs", flexWrap: "wrap", children: [
1155
- O,
1464
+ e[14] !== L || e[15] !== x || e[16] !== r || e[17] !== s ? (A = r ? /* @__PURE__ */ i(Ee, { content: `Session ${r}`, children: /* @__PURE__ */ i(wl, { status: s, boxSize: "12px", "aria-label": `Session ${r}`, cursor: x ? "pointer" : "default", onClick: x ? L : void 0 }) }) : null, e[14] = L, e[15] = x, e[16] = r, e[17] = s, e[18] = A) : A = e[18];
1465
+ let M;
1466
+ e[19] !== E || e[20] !== A ? (M = /* @__PURE__ */ b(F, { gap: "2xs", flexShrink: 0, children: [
1467
+ E,
1156
1468
  A
1157
- ] }), e[26] = O, e[27] = A, e[28] = F) : F = e[28];
1158
- let D;
1159
- e[29] !== o ? (D = /* @__PURE__ */ n(ee, { align: "start", gap: "2xs", flexWrap: "wrap", children: /* @__PURE__ */ n(C, { textStyle: "label/S/regular", flex: "1", minW: "0", children: o }) }), e[29] = o, e[30] = D) : D = e[30];
1469
+ ] }), e[19] = E, e[20] = A, e[21] = M) : M = e[21];
1470
+ let W;
1471
+ e[22] !== c || e[23] !== d || e[24] !== C ? (W = typeof c == "number" && typeof d == "number" ? /* @__PURE__ */ i(Qe, { additions: c, deletions: d, variant: "ghost", size: "small", label: /* @__PURE__ */ i(Nt, { size: "12" }), onClick: C, "data-testid": "ticket-diff-badge" }) : null, e[22] = c, e[23] = d, e[24] = C, e[25] = W) : W = e[25];
1472
+ let j;
1473
+ e[26] !== M || e[27] !== W ? (j = /* @__PURE__ */ b(F, { justifyContent: "space-between", gap: "2xs", flexWrap: "wrap", children: [
1474
+ M,
1475
+ W
1476
+ ] }), e[26] = M, e[27] = W, e[28] = j) : j = e[28];
1477
+ let $;
1478
+ e[29] !== o ? ($ = /* @__PURE__ */ i(F, { align: "start", gap: "2xs", flexWrap: "wrap", children: /* @__PURE__ */ i(w, { textStyle: "label/S/regular", flex: "1", minW: "0", children: o }) }), e[29] = o, e[30] = $) : $ = e[30];
1160
1479
  let G;
1161
- e[31] !== w ? (G = w.length > 0 && /* @__PURE__ */ n(Fe, { gap: "2xs", children: w.map(fl) }), e[31] = w, e[32] = G) : G = e[32];
1162
- let J;
1163
- return e[33] !== f || e[34] !== g || e[35] !== u || e[36] !== m || e[37] !== F || e[38] !== D || e[39] !== G || e[40] !== W || e[41] !== V ? (J = /* @__PURE__ */ b($, { gap: "xs", padding: "sm", borderRadius: "sm", borderWidth: "1px", width: "calc(100% - 8px)", alignSelf: "center", background: "bg", transition: "box-shadow 0.2s ease-in-out, border-color 0.2s ease-in-out", _hover: j, cursor: W, draggable: f, onDragStart: m, onDragEnd: u, onClick: g, "data-selected": V, children: [
1164
- F,
1165
- D,
1480
+ e[31] !== I ? (G = I.length > 0 && /* @__PURE__ */ i(qe, { gap: "2xs", children: I.map(Gl) }), e[31] = I, e[32] = G) : G = e[32];
1481
+ let Q;
1482
+ return e[33] !== g || e[34] !== m || e[35] !== u || e[36] !== f || e[37] !== j || e[38] !== $ || e[39] !== G || e[40] !== N || e[41] !== O ? (Q = /* @__PURE__ */ b(R, { gap: "xs", padding: "sm", borderRadius: "sm", borderWidth: "1px", width: "calc(100% - 8px)", alignSelf: "center", background: "bg", transition: "box-shadow 0.2s ease-in-out, border-color 0.2s ease-in-out", _hover: B, cursor: N, draggable: g, onDragStart: f, onDragEnd: u, onClick: m, "data-selected": O, children: [
1483
+ j,
1484
+ $,
1166
1485
  G
1167
- ] }), e[33] = f, e[34] = g, e[35] = u, e[36] = m, e[37] = F, e[38] = D, e[39] = G, e[40] = W, e[41] = V, e[42] = J) : J = e[42], J;
1486
+ ] }), e[33] = g, e[34] = m, e[35] = u, e[36] = f, e[37] = j, e[38] = $, e[39] = G, e[40] = N, e[41] = O, e[42] = Q) : Q = e[42], Q;
1168
1487
  };
1169
- function fl(i) {
1170
- return /* @__PURE__ */ n(Le, { variant: "subtle", colorPalette: i.color ?? "gray", textStyle: "label/XS/medium", children: i.label }, i.label);
1488
+ function Gl(n) {
1489
+ return /* @__PURE__ */ i(ze, { variant: "subtle", colorPalette: n.color ?? "gray", textStyle: "label/XS/medium", children: n.label }, n.label);
1171
1490
  }
1172
- const nn = (i) => {
1491
+ const Mn = (n) => {
1173
1492
  const e = T(21), {
1174
1493
  columns: l,
1175
1494
  selectedItemId: t,
1176
1495
  onMoveItem: r,
1177
1496
  onCreateStart: s,
1178
1497
  onColumnAction: o
1179
- } = i, a = t === void 0 ? null : t, [c, d] = De(null), h = ul;
1180
- let f;
1181
- e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (f = () => {
1498
+ } = n, a = t === void 0 ? null : t, [c, d] = Re(null), h = Fl;
1499
+ let g;
1500
+ e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (g = () => {
1182
1501
  d(null);
1183
- }, e[0] = f) : f = e[0];
1184
- const m = f;
1502
+ }, e[0] = g) : g = e[0];
1503
+ const f = g;
1185
1504
  let u;
1186
- e[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (u = (k) => (I) => {
1187
- I.preventDefault(), I.dataTransfer.dropEffect = "move", d(k);
1505
+ e[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (u = (k) => (C) => {
1506
+ C.preventDefault(), C.dataTransfer.dropEffect = "move", d(k);
1188
1507
  }, e[1] = u) : u = e[1];
1189
- const g = u;
1508
+ const m = u;
1190
1509
  let p;
1191
1510
  e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (p = (k) => {
1192
1511
  k.currentTarget.contains(k.relatedTarget) || d(null);
1193
1512
  }, e[2] = p) : p = e[2];
1194
1513
  const x = p;
1195
1514
  let S;
1196
- e[3] !== r ? (S = (k) => (I) => {
1197
- I.preventDefault(), d(null);
1198
- const R = I.dataTransfer.getData("text/plain");
1199
- R && r?.(R, k);
1515
+ e[3] !== r ? (S = (k) => (C) => {
1516
+ C.preventDefault(), d(null);
1517
+ const _ = C.dataTransfer.getData("text/plain");
1518
+ _ && r?.(_, k);
1200
1519
  }, e[3] = r, e[4] = S) : S = e[4];
1201
1520
  const y = S;
1202
1521
  let v;
@@ -1207,238 +1526,241 @@ const nn = (i) => {
1207
1526
  pb: "2xs",
1208
1527
  minH: "100%"
1209
1528
  }, e[5] = v) : v = e[5];
1210
- let w;
1529
+ let I;
1211
1530
  if (e[6] !== c || e[7] !== l || e[8] !== y || e[9] !== o || e[10] !== s || e[11] !== a) {
1212
1531
  let k;
1213
- e[13] !== c || e[14] !== y || e[15] !== o || e[16] !== s || e[17] !== a ? (k = (I) => /* @__PURE__ */ b($, { gap: "xs", _notFirst: {
1532
+ e[13] !== c || e[14] !== y || e[15] !== o || e[16] !== s || e[17] !== a ? (k = (C) => /* @__PURE__ */ b(R, { gap: "xs", _notFirst: {
1214
1533
  borderLeft: "1px solid",
1215
1534
  borderColor: "border"
1216
- }, background: c === I.id ? "bg.subtle" : "bg", transition: "background 150ms ease", height: "100%", minH: "240px", overflow: "hidden", minW: "260px", flex: "1 0 260px", onDragOver: I.canDragIn ? g(I.id) : void 0, onDragLeave: I.canDragIn ? x : void 0, onDrop: I.canDragIn ? y(I.id) : void 0, children: [
1217
- /* @__PURE__ */ n(ml, { column: I, onCreateStart: s, onColumnAction: o }),
1218
- /* @__PURE__ */ n(me, { flex: "1", minH: "0", contentProps: {
1535
+ }, background: c === C.id ? "bg.subtle" : "bg", transition: "background 150ms ease", height: "100%", minH: "240px", overflow: "hidden", minW: "260px", flex: "1 0 260px", onDragOver: C.canDragIn ? m(C.id) : void 0, onDragLeave: C.canDragIn ? x : void 0, onDrop: C.canDragIn ? y(C.id) : void 0, children: [
1536
+ /* @__PURE__ */ i(Xl, { column: C, onCreateStart: s, onColumnAction: o }),
1537
+ /* @__PURE__ */ i(he, { flex: "1", minH: "0", contentProps: {
1219
1538
  spaceY: "sm"
1220
- }, children: I.items.map((R) => /* @__PURE__ */ n(hl, { ...R.cardProps, isSelected: R.id === a, draggable: I.canDragOut, onDragStart: I.canDragOut ? h(R.id) : void 0, onDragEnd: I.canDragOut ? m : void 0 }, R.id)) })
1221
- ] }, I.id), e[13] = c, e[14] = y, e[15] = o, e[16] = s, e[17] = a, e[18] = k) : k = e[18], w = l.map(k), e[6] = c, e[7] = l, e[8] = y, e[9] = o, e[10] = s, e[11] = a, e[12] = w;
1539
+ }, children: C.items.map((_) => /* @__PURE__ */ i(jl, { ..._.cardProps, isSelected: _.id === a, draggable: C.canDragOut, onDragStart: C.canDragOut ? h(_.id) : void 0, onDragEnd: C.canDragOut ? f : void 0 }, _.id)) })
1540
+ ] }, C.id), e[13] = c, e[14] = y, e[15] = o, e[16] = s, e[17] = a, e[18] = k) : k = e[18], I = l.map(k), e[6] = c, e[7] = l, e[8] = y, e[9] = o, e[10] = s, e[11] = a, e[12] = I;
1222
1541
  } else
1223
- w = e[12];
1542
+ I = e[12];
1224
1543
  let P;
1225
- return e[19] !== w ? (P = /* @__PURE__ */ n(me, { height: "100%", showHorizontalScrollbar: !0, showVerticalScrollbar: !1, contentProps: v, children: w }), e[19] = w, e[20] = P) : P = e[20], P;
1226
- }, ml = (i) => {
1544
+ return e[19] !== I ? (P = /* @__PURE__ */ i(he, { height: "100%", showHorizontalScrollbar: !0, showVerticalScrollbar: !1, contentProps: v, children: I }), e[19] = I, e[20] = P) : P = e[20], P;
1545
+ }, Xl = (n) => {
1227
1546
  const e = T(20), {
1228
1547
  column: l,
1229
1548
  onCreateStart: t,
1230
1549
  onColumnAction: r
1231
- } = i;
1550
+ } = n;
1232
1551
  let s;
1233
- e[0] !== l.label ? (s = /* @__PURE__ */ n(C, { textStyle: "label/L/medium", children: l.label }), e[0] = l.label, e[1] = s) : s = e[1];
1552
+ e[0] !== l.label ? (s = /* @__PURE__ */ i(w, { textStyle: "label/L/medium", children: l.label }), e[0] = l.label, e[1] = s) : s = e[1];
1234
1553
  const o = l.color ?? "gray";
1235
1554
  let a;
1236
- e[2] !== l.items.length || e[3] !== o ? (a = /* @__PURE__ */ n(Le, { variant: "subtle", colorPalette: o, children: l.items.length }), e[2] = l.items.length, e[3] = o, e[4] = a) : a = e[4];
1555
+ e[2] !== l.items.length || e[3] !== o ? (a = /* @__PURE__ */ i(ze, { variant: "subtle", colorPalette: o, children: l.items.length }), e[2] = l.items.length, e[3] = o, e[4] = a) : a = e[4];
1237
1556
  let c;
1238
- e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */ n(ot, {}), e[5] = c) : c = e[5];
1557
+ e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */ i(ut, {}), e[5] = c) : c = e[5];
1239
1558
  let d;
1240
- e[6] !== l.canCreate || e[7] !== l.id || e[8] !== t ? (d = l.canCreate && t && /* @__PURE__ */ n(_e, { content: "Create new ticket", children: /* @__PURE__ */ n(We, { size: "2xs", variant: "outline", onClick: () => t(l.id), "aria-label": "Create ticket", children: /* @__PURE__ */ n(ne, { as: Tt, boxSize: "12px" }) }) }), e[6] = l.canCreate, e[7] = l.id, e[8] = t, e[9] = d) : d = e[9];
1559
+ e[6] !== l.canCreate || e[7] !== l.id || e[8] !== t ? (d = l.canCreate && t && /* @__PURE__ */ i(Ee, { content: "Create new ticket", children: /* @__PURE__ */ i($e, { size: "2xs", variant: "outline", onClick: () => t(l.id), "aria-label": "Create ticket", children: /* @__PURE__ */ i(ne, { as: Wt, boxSize: "12px" }) }) }), e[6] = l.canCreate, e[7] = l.id, e[8] = t, e[9] = d) : d = e[9];
1241
1560
  let h;
1242
- e[10] !== l.actions || e[11] !== l.id || e[12] !== l.label || e[13] !== r ? (h = l.actions.length > 0 && /* @__PURE__ */ b(xe.Root, { children: [
1243
- /* @__PURE__ */ n(xe.Trigger, { asChild: !0, children: /* @__PURE__ */ n(We, { size: "2xs", variant: "ghost", "aria-label": `Column actions for ${l.label}`, children: /* @__PURE__ */ n(ne, { as: $t, boxSize: "12px" }) }) }),
1244
- /* @__PURE__ */ n(xe.Positioner, { children: /* @__PURE__ */ n(xe.Content, { minW: "180px", bg: "bg", children: l.actions.map((m) => /* @__PURE__ */ n(He, { primaryLabel: m.label, leftIcon: m.icon, onClick: () => r?.(l.id, m.id) }, m.id)) }) })
1561
+ e[10] !== l.actions || e[11] !== l.id || e[12] !== l.label || e[13] !== r ? (h = l.actions.length > 0 && /* @__PURE__ */ b(ie.Root, { children: [
1562
+ /* @__PURE__ */ i(ie.Trigger, { asChild: !0, children: /* @__PURE__ */ i($e, { size: "2xs", variant: "ghost", "aria-label": `Column actions for ${l.label}`, children: /* @__PURE__ */ i(ne, { as: At, boxSize: "12px" }) }) }),
1563
+ /* @__PURE__ */ i(ie.Positioner, { children: /* @__PURE__ */ i(ie.Content, { minW: "180px", bg: "bg", children: l.actions.map((f) => /* @__PURE__ */ i(Ae, { primaryLabel: f.label, leftIcon: f.icon, onClick: () => r?.(l.id, f.id) }, f.id)) }) })
1245
1564
  ] }), e[10] = l.actions, e[11] = l.id, e[12] = l.label, e[13] = r, e[14] = h) : h = e[14];
1246
- let f;
1247
- return e[15] !== s || e[16] !== a || e[17] !== d || e[18] !== h ? (f = /* @__PURE__ */ b(ee, { padding: "xs", gap: "xs", alignItems: "center", children: [
1565
+ let g;
1566
+ return e[15] !== s || e[16] !== a || e[17] !== d || e[18] !== h ? (g = /* @__PURE__ */ b(F, { padding: "xs", gap: "xs", alignItems: "center", children: [
1248
1567
  s,
1249
1568
  a,
1250
1569
  c,
1251
1570
  d,
1252
1571
  h
1253
- ] }), e[15] = s, e[16] = a, e[17] = d, e[18] = h, e[19] = f) : f = e[19], f;
1572
+ ] }), e[15] = s, e[16] = a, e[17] = d, e[18] = h, e[19] = g) : g = e[19], g;
1254
1573
  };
1255
- function ul(i) {
1574
+ function Fl(n) {
1256
1575
  return (e) => {
1257
- e.dataTransfer.setData("text/plain", i), e.dataTransfer.effectAllowed = "move";
1576
+ e.dataTransfer.setData("text/plain", n), e.dataTransfer.effectAllowed = "move";
1258
1577
  };
1259
1578
  }
1260
- const gl = [{
1579
+ const Vl = [{
1261
1580
  id: "ticket",
1262
1581
  header: "",
1263
1582
  cell: ({
1264
- row: i
1265
- }) => /* @__PURE__ */ n(pl, { row: i })
1266
- }], rn = (i) => {
1583
+ row: n
1584
+ }) => /* @__PURE__ */ i(Yl, { row: n })
1585
+ }], Bn = (n) => {
1267
1586
  const {
1268
1587
  items: e,
1269
1588
  selectedItemId: l = null,
1270
1589
  onItemClick: t
1271
- } = i, r = Rt({
1590
+ } = n, r = Gt({
1272
1591
  data: e,
1273
- columns: gl,
1592
+ columns: Vl,
1274
1593
  state: {
1275
1594
  expanded: !0
1276
1595
  },
1277
1596
  getSubRows: (s) => s.children,
1278
- getCoreRowModel: Lt(),
1279
- getExpandedRowModel: _t(),
1597
+ getCoreRowModel: Ft(),
1598
+ getExpandedRowModel: Xt(),
1280
1599
  getRowId: (s) => s.id
1281
1600
  });
1282
- return /* @__PURE__ */ n(L, { children: r.getRowModel().rows.map((s) => {
1601
+ return /* @__PURE__ */ i(D, { children: r.getRowModel().rows.map((s) => {
1283
1602
  const o = s.original, a = o.id === l;
1284
- return /* @__PURE__ */ n(ee, { paddingX: "sm", paddingY: "xs", gap: "sm", cursor: "pointer", borderBottomWidth: "1px", borderColor: "border.muted", background: a ? "bg.muted" : "transparent", _hover: {
1603
+ return /* @__PURE__ */ i(F, { paddingX: "sm", paddingY: "xs", gap: "sm", cursor: "pointer", borderBottomWidth: "1px", borderColor: "border.muted", background: a ? "bg.muted" : "transparent", _hover: {
1285
1604
  background: "bg.muted"
1286
1605
  }, onClick: () => {
1287
1606
  o.onClick?.(), t?.(o);
1288
- }, "data-selected": a ? "true" : void 0, children: zt(s.getVisibleCells()[0].column.columnDef.cell, s.getVisibleCells()[0].getContext()) }, s.id);
1607
+ }, "data-selected": a ? "true" : void 0, children: Vt(s.getVisibleCells()[0].column.columnDef.cell, s.getVisibleCells()[0].getContext()) }, s.id);
1289
1608
  }) });
1290
- }, pl = (i) => {
1609
+ }, Yl = (n) => {
1291
1610
  const e = T(25), {
1292
1611
  row: l
1293
- } = i, t = l.original, r = l.depth, s = r > 0 ? `${r * 24}px` : void 0;
1612
+ } = n, t = l.original, r = l.depth, s = r > 0 ? `${r * 24}px` : void 0;
1294
1613
  let o;
1295
- e[0] !== r || e[1] !== l ? (o = l.getCanExpand() ? /* @__PURE__ */ n(xl, { row: l }) : r > 0 ? /* @__PURE__ */ n(bl, {}) : null, e[0] = r, e[1] = l, e[2] = o) : o = e[2];
1614
+ e[0] !== r || e[1] !== l ? (o = l.getCanExpand() ? /* @__PURE__ */ i(Ul, { row: l }) : r > 0 ? /* @__PURE__ */ i(Kl, {}) : null, e[0] = r, e[1] = l, e[2] = o) : o = e[2];
1296
1615
  let a;
1297
- e[3] !== t.statusColor || e[4] !== t.statusIcon ? (a = t.statusIcon && /* @__PURE__ */ n(ne, { as: t.statusIcon, boxSize: "16px", color: t.statusColor ?? "fg.muted", flexShrink: 0 }), e[3] = t.statusColor, e[4] = t.statusIcon, e[5] = a) : a = e[5];
1616
+ e[3] !== t.statusColor || e[4] !== t.statusIcon ? (a = t.statusIcon && /* @__PURE__ */ i(ne, { as: t.statusIcon, boxSize: "16px", color: t.statusColor ?? "fg.muted", flexShrink: 0 }), e[3] = t.statusColor, e[4] = t.statusIcon, e[5] = a) : a = e[5];
1298
1617
  let c;
1299
- e[6] !== t.ticketId ? (c = /* @__PURE__ */ n(C, { textStyle: "label/S/regular", color: "fg.muted", flexShrink: 0, minW: "70px", children: t.ticketId }), e[6] = t.ticketId, e[7] = c) : c = e[7];
1618
+ e[6] !== t.ticketId ? (c = /* @__PURE__ */ i(w, { textStyle: "label/S/regular", color: "fg.muted", flexShrink: 0, minW: "70px", children: t.ticketId }), e[6] = t.ticketId, e[7] = c) : c = e[7];
1300
1619
  let d;
1301
- e[8] !== t.title ? (d = /* @__PURE__ */ n(C, { textStyle: "label/S/regular", flex: "1", truncate: !0, children: t.title }), e[8] = t.title, e[9] = d) : d = e[9];
1620
+ e[8] !== t.title ? (d = /* @__PURE__ */ i(w, { textStyle: "label/S/regular", flex: "1", truncate: !0, children: t.title }), e[8] = t.title, e[9] = d) : d = e[9];
1302
1621
  let h;
1303
- e[10] !== t.badges ? (h = t.badges && t.badges.length > 0 && /* @__PURE__ */ n(Fe, { gap: "2xs", flexShrink: 0, children: t.badges.map(Sl) }), e[10] = t.badges, e[11] = h) : h = e[11];
1622
+ e[10] !== t.badges ? (h = t.badges && t.badges.length > 0 && /* @__PURE__ */ i(qe, { gap: "2xs", flexShrink: 0, children: t.badges.map(ql) }), e[10] = t.badges, e[11] = h) : h = e[11];
1623
+ let g;
1624
+ e[12] !== t.assigneeIcon ? (g = t.assigneeIcon && /* @__PURE__ */ i(D, { flexShrink: 0, children: t.assigneeIcon }), e[12] = t.assigneeIcon, e[13] = g) : g = e[13];
1304
1625
  let f;
1305
- e[12] !== t.assigneeIcon ? (f = t.assigneeIcon && /* @__PURE__ */ n(L, { flexShrink: 0, children: t.assigneeIcon }), e[12] = t.assigneeIcon, e[13] = f) : f = e[13];
1306
- let m;
1307
- e[14] !== t.date ? (m = t.date && /* @__PURE__ */ n(C, { textStyle: "label/XS/regular", color: "fg.muted", flexShrink: 0, children: t.date }), e[14] = t.date, e[15] = m) : m = e[15];
1626
+ e[14] !== t.date ? (f = t.date && /* @__PURE__ */ i(w, { textStyle: "label/XS/regular", color: "fg.muted", flexShrink: 0, children: t.date }), e[14] = t.date, e[15] = f) : f = e[15];
1308
1627
  let u;
1309
- return e[16] !== s || e[17] !== o || e[18] !== a || e[19] !== c || e[20] !== d || e[21] !== h || e[22] !== f || e[23] !== m ? (u = /* @__PURE__ */ b(ee, { gap: "sm", flex: "1", paddingLeft: s, children: [
1628
+ return e[16] !== s || e[17] !== o || e[18] !== a || e[19] !== c || e[20] !== d || e[21] !== h || e[22] !== g || e[23] !== f ? (u = /* @__PURE__ */ b(F, { gap: "sm", flex: "1", paddingLeft: s, children: [
1310
1629
  o,
1311
1630
  a,
1312
1631
  c,
1313
1632
  d,
1314
1633
  h,
1315
- f,
1316
- m
1317
- ] }), e[16] = s, e[17] = o, e[18] = a, e[19] = c, e[20] = d, e[21] = h, e[22] = f, e[23] = m, e[24] = u) : u = e[24], u;
1318
- }, xl = (i) => {
1634
+ g,
1635
+ f
1636
+ ] }), e[16] = s, e[17] = o, e[18] = a, e[19] = c, e[20] = d, e[21] = h, e[22] = g, e[23] = f, e[24] = u) : u = e[24], u;
1637
+ }, Ul = (n) => {
1319
1638
  const e = T(7), {
1320
1639
  row: l
1321
- } = i;
1640
+ } = n;
1322
1641
  let t;
1323
1642
  e[0] !== l ? (t = (a) => {
1324
1643
  a.stopPropagation(), l.toggleExpanded();
1325
1644
  }, e[0] = l, e[1] = t) : t = e[1];
1326
1645
  const r = l.getIsExpanded() ? "rotate(90deg)" : "rotate(0deg)";
1327
1646
  let s;
1328
- e[2] !== r ? (s = /* @__PURE__ */ n(ne, { as: Te, boxSize: "14px", color: "fg.muted", transform: r, transition: "transform 0.15s ease" }), e[2] = r, e[3] = s) : s = e[3];
1647
+ e[2] !== r ? (s = /* @__PURE__ */ i(ne, { as: pe, boxSize: "14px", color: "fg.muted", transform: r, transition: "transform 0.15s ease" }), e[2] = r, e[3] = s) : s = e[3];
1329
1648
  let o;
1330
- return e[4] !== t || e[5] !== s ? (o = /* @__PURE__ */ n(L, { as: "button", onClick: t, cursor: "pointer", display: "flex", alignItems: "center", justifyContent: "center", flexShrink: 0, width: "16px", height: "16px", children: s }), e[4] = t, e[5] = s, e[6] = o) : o = e[6], o;
1331
- }, bl = () => {
1332
- const i = T(1);
1649
+ return e[4] !== t || e[5] !== s ? (o = /* @__PURE__ */ i(D, { as: "button", onClick: t, cursor: "pointer", display: "flex", alignItems: "center", justifyContent: "center", flexShrink: 0, width: "16px", height: "16px", children: s }), e[4] = t, e[5] = s, e[6] = o) : o = e[6], o;
1650
+ }, Kl = () => {
1651
+ const n = T(1);
1333
1652
  let e;
1334
- return i[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ b(L, { width: "16px", height: "16px", position: "relative", flexShrink: 0, children: [
1335
- /* @__PURE__ */ n(L, { position: "absolute", left: "7px", top: "0", bottom: "50%", borderLeftWidth: "1px", borderColor: "border.muted" }),
1336
- /* @__PURE__ */ n(L, { position: "absolute", left: "7px", top: "50%", width: "8px", borderBottomWidth: "1px", borderColor: "border.muted" })
1337
- ] }), i[0] = e) : e = i[0], e;
1653
+ return n[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ b(D, { width: "16px", height: "16px", position: "relative", flexShrink: 0, children: [
1654
+ /* @__PURE__ */ i(D, { position: "absolute", left: "7px", top: "0", bottom: "50%", borderLeftWidth: "1px", borderColor: "border.muted" }),
1655
+ /* @__PURE__ */ i(D, { position: "absolute", left: "7px", top: "50%", width: "8px", borderBottomWidth: "1px", borderColor: "border.muted" })
1656
+ ] }), n[0] = e) : e = n[0], e;
1338
1657
  };
1339
- function Sl(i) {
1340
- return /* @__PURE__ */ n(Le, { variant: "subtle", colorPalette: i.color ?? "gray", textStyle: "label/XS/medium", children: i.label }, i.label);
1658
+ function ql(n) {
1659
+ return /* @__PURE__ */ i(ze, { variant: "subtle", colorPalette: n.color ?? "gray", textStyle: "label/XS/medium", children: n.label }, n.label);
1341
1660
  }
1342
- const yl = st({
1661
+ const Jl = mt({
1343
1662
  placement: "bottom-end",
1344
1663
  pauseOnPageIdle: !0
1345
- }), on = () => {
1346
- const i = T(1);
1664
+ }), On = () => {
1665
+ const n = T(1);
1347
1666
  let e;
1348
- return i[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ n(at, { children: /* @__PURE__ */ n(ct, { toaster: yl, insetInline: {
1667
+ return n[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ i(pt, { children: /* @__PURE__ */ i(bt, { toaster: Jl, insetInline: {
1349
1668
  mdDown: "4"
1350
- }, children: Cl }) }), i[0] = e) : e = i[0], e;
1669
+ }, children: Ql }) }), n[0] = e) : e = n[0], e;
1351
1670
  };
1352
- function Cl(i) {
1353
- return /* @__PURE__ */ b(Pe.Root, { width: {
1671
+ function Ql(n) {
1672
+ return /* @__PURE__ */ b(Te.Root, { width: {
1354
1673
  md: "sm"
1355
1674
  }, children: [
1356
- i.type === "loading" ? /* @__PURE__ */ n(dt, { size: "sm", color: "blue.solid" }) : /* @__PURE__ */ n(Pe.Indicator, {}),
1357
- /* @__PURE__ */ b($, { gap: "1", flex: "1", maxWidth: "100%", children: [
1358
- i.title && /* @__PURE__ */ n(Pe.Title, { children: i.title }),
1359
- i.description && /* @__PURE__ */ n(Pe.Description, { children: i.description })
1675
+ n.type === "loading" ? /* @__PURE__ */ i(xt, { size: "sm", color: "blue.solid" }) : /* @__PURE__ */ i(Te.Indicator, {}),
1676
+ /* @__PURE__ */ b(R, { gap: "1", flex: "1", maxWidth: "100%", children: [
1677
+ n.title && /* @__PURE__ */ i(Te.Title, { children: n.title }),
1678
+ n.description && /* @__PURE__ */ i(Te.Description, { children: n.description })
1360
1679
  ] }),
1361
- i.action && /* @__PURE__ */ n(Pe.ActionTrigger, { children: i.action.label }),
1362
- i.closable && /* @__PURE__ */ n(Pe.CloseTrigger, {})
1680
+ n.action && /* @__PURE__ */ i(Te.ActionTrigger, { children: n.action.label }),
1681
+ n.closable && /* @__PURE__ */ i(Te.CloseTrigger, {})
1363
1682
  ] });
1364
1683
  }
1365
- const vl = (i) => {
1684
+ const Zl = (n) => {
1366
1685
  if (typeof document > "u") return;
1367
- const e = document.documentElement, l = document.body, t = i === "dark" ? "light" : "dark";
1686
+ const e = document.documentElement, l = document.body, t = n === "dark" ? "light" : "dark";
1368
1687
  for (const r of [e, l])
1369
- r && (r.classList.remove(t), r.classList.add(i), r.setAttribute("data-theme", i), r.style.colorScheme = i);
1370
- }, qe = "theme-preference", Je = mt(null), wl = () => {
1688
+ r && (r.classList.remove(t), r.classList.add(n), r.setAttribute("data-theme", n), r.style.colorScheme = n);
1689
+ }, it = "theme-preference", rt = vt(null), en = () => {
1371
1690
  if (typeof window > "u") return "light";
1372
- const i = window.localStorage.getItem(qe);
1373
- return i === "dark" || i === "light" ? i : typeof window.matchMedia == "function" && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
1374
- }, sn = (i) => {
1691
+ const n = window.localStorage.getItem(it);
1692
+ return n === "dark" || n === "light" ? n : typeof window.matchMedia == "function" && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
1693
+ }, jn = (n) => {
1375
1694
  const e = T(11), {
1376
1695
  children: l,
1377
1696
  initialPreference: t
1378
- } = i;
1697
+ } = n;
1379
1698
  let r;
1380
- e[0] !== t ? (r = t === void 0 ? wl() : t, e[0] = t, e[1] = r) : r = e[1];
1381
- const s = r, [o, a] = De(s);
1699
+ e[0] !== t ? (r = t === void 0 ? en() : t, e[0] = t, e[1] = r) : r = e[1];
1700
+ const s = r, [o, a] = Re(s);
1382
1701
  let c, d;
1383
1702
  e[2] !== o ? (c = () => {
1384
- vl(o), typeof window < "u" && window.localStorage.setItem(qe, o);
1385
- }, d = [o], e[2] = o, e[3] = c, e[4] = d) : (c = e[3], d = e[4]), Be(c, d);
1703
+ Zl(o), typeof window < "u" && window.localStorage.setItem(it, o);
1704
+ }, d = [o], e[2] = o, e[3] = c, e[4] = d) : (c = e[3], d = e[4]), We(c, d);
1386
1705
  let h;
1387
- e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (h = () => a(kl), e[5] = h) : h = e[5];
1388
- const f = h;
1389
- let m;
1390
- e[6] !== o ? (m = {
1706
+ e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (h = () => a(tn), e[5] = h) : h = e[5];
1707
+ const g = h;
1708
+ let f;
1709
+ e[6] !== o ? (f = {
1391
1710
  themePreference: o,
1392
1711
  setThemePreference: a,
1393
- toggleThemePreference: f
1394
- }, e[6] = o, e[7] = m) : m = e[7];
1712
+ toggleThemePreference: g
1713
+ }, e[6] = o, e[7] = f) : f = e[7];
1395
1714
  let u;
1396
- return e[8] !== l || e[9] !== m ? (u = /* @__PURE__ */ n(Je, { value: m, children: l }), e[8] = l, e[9] = m, e[10] = u) : u = e[10], u;
1397
- }, an = () => {
1398
- const i = ut(Je);
1399
- if (!i)
1715
+ return e[8] !== l || e[9] !== f ? (u = /* @__PURE__ */ i(rt, { value: f, children: l }), e[8] = l, e[9] = f, e[10] = u) : u = e[10], u;
1716
+ }, Gn = () => {
1717
+ const n = Ct(rt);
1718
+ if (!n)
1400
1719
  throw new Error("useThemePreference must be used within a ThemePreferenceProvider");
1401
- return i;
1720
+ return n;
1402
1721
  };
1403
- function kl(i) {
1404
- return i === "dark" ? "light" : "dark";
1722
+ function tn(n) {
1723
+ return n === "dark" ? "light" : "dark";
1405
1724
  }
1406
1725
  export {
1407
- Et as AlertMessage,
1408
- jl as Breadcrumb,
1409
- hn as ChakraProvider,
1410
- Xl as Checkbox,
1411
- Ht as ContentPlaceholder,
1412
- Vl as ContentPlaceholderLabel,
1413
- Fl as DeleteConfirmationModal,
1414
- Ne as DiffBubble,
1415
- Yl as DiffDrawer,
1416
- Nl as DocsChangelog,
1417
- Ul as DocsOutline,
1418
- Kl as DocsPagination,
1419
- ql as DocsSidebar,
1420
- pt as EmptyState,
1421
- Jl as ErrorBoundary,
1422
- Ql as FolderPickerDialog,
1423
- Zl as HorizontalMenuStack,
1424
- qt as ItemSection,
1425
- He as MenuItem,
1426
- en as OpenSourceNoticesScreen,
1427
- el as PanelMenu,
1428
- tn as Properties,
1429
- me as ScrollArea,
1430
- dl as SessionIndicator,
1431
- ln as Switch,
1432
- sn as ThemePreferenceProvider,
1433
- nn as TicketBoard,
1434
- hl as TicketCard,
1435
- rn as TicketList,
1436
- on as Toaster,
1437
- _e as Tooltip,
1438
- vl as applyThemePreference,
1439
- wl as getInitialThemePreference,
1440
- mn as psTheme,
1441
- yl as toaster,
1442
- an as useThemePreference
1726
+ Yt as AlertMessage,
1727
+ wn as Breadcrumb,
1728
+ Vn as ChakraProvider,
1729
+ kn as Checkbox,
1730
+ Ut as ContentPlaceholder,
1731
+ In as ContentPlaceholderLabel,
1732
+ Pn as DeleteConfirmationModal,
1733
+ Qe as DiffBubble,
1734
+ Tn as DiffDrawer,
1735
+ _n as DocsChangelog,
1736
+ $n as DocsOutline,
1737
+ Rn as DocsPagination,
1738
+ Dn as DocsSidebar,
1739
+ kt as EmptyState,
1740
+ Ln as ErrorBoundary,
1741
+ En as FolderPickerDialog,
1742
+ zn as HorizontalMenuStack,
1743
+ cl as ItemSection,
1744
+ Ae as MenuItem,
1745
+ Hn as OpenSourceNoticesScreen,
1746
+ gl as PanelMenu,
1747
+ Nn as Properties,
1748
+ he as ScrollArea,
1749
+ wl as SessionIndicator,
1750
+ Wn as SidebarNext,
1751
+ Il as SidebarTree,
1752
+ An as Switch,
1753
+ jn as ThemePreferenceProvider,
1754
+ Mn as TicketBoard,
1755
+ jl as TicketCard,
1756
+ Bn as TicketList,
1757
+ On as Toaster,
1758
+ Ee as Tooltip,
1759
+ Zl as applyThemePreference,
1760
+ en as getInitialThemePreference,
1761
+ Un as psTheme,
1762
+ Jl as toaster,
1763
+ _e as useSidebarNextStore,
1764
+ Gn as useThemePreference
1443
1765
  };
1444
1766
  //# sourceMappingURL=index.js.map