@pstdio/ui 0.24.2 → 0.25.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.
Files changed (56) hide show
  1. package/dist/{MermaidComponent-DSvPk-J8.js → MermaidComponent-BVdDqDRU.js} +2 -2
  2. package/dist/{MermaidComponent-DSvPk-J8.js.map → MermaidComponent-BVdDqDRU.js.map} +1 -1
  3. package/dist/chat-ui.js +15 -14
  4. package/dist/chat-ui.js.map +1 -1
  5. package/dist/components/activity/activity-comment.d.ts +10 -2
  6. package/dist/components/activity/index.d.ts +3 -1
  7. package/dist/components/activity/resource-activity-feed.d.ts +58 -0
  8. package/dist/components/chat-ui/tool-rendering/build-timeline.d.ts +1 -1
  9. package/dist/components/chat-ui/tool-rendering/shared.d.ts +1 -1
  10. package/dist/data-table.js +4 -4
  11. package/dist/{edit-mode-data-table-2E4GSOou.js → edit-mode-data-table-B8UpWb7i.js} +3 -3
  12. package/dist/{edit-mode-data-table-2E4GSOou.js.map → edit-mode-data-table-B8UpWb7i.js.map} +1 -1
  13. package/dist/index.d.ts +2 -2
  14. package/dist/index.js +1867 -1634
  15. package/dist/index.js.map +1 -1
  16. package/dist/{kanban-renderer-toolbar-Dcbxujbk.js → kanban-renderer-toolbar-DzY6THJY.js} +2 -2
  17. package/dist/{kanban-renderer-toolbar-Dcbxujbk.js.map → kanban-renderer-toolbar-DzY6THJY.js.map} +1 -1
  18. package/dist/kanban-renderer.js +4 -4
  19. package/dist/{lazy-markdown-editor-DSlelhHV.js → lazy-markdown-editor-ClZPZuaU.js} +2 -2
  20. package/dist/{lazy-markdown-editor-DSlelhHV.js.map → lazy-markdown-editor-ClZPZuaU.js.map} +1 -1
  21. package/dist/{markdown-editor-BHoRATej.js → markdown-editor-CAVqJ9yR.js} +2 -2
  22. package/dist/{markdown-editor-BHoRATej.js.map → markdown-editor-CAVqJ9yR.js.map} +1 -1
  23. package/dist/{markdown-Cli3KGu9.js → markdown-gNucAjnF.js} +9 -9
  24. package/dist/{markdown-Cli3KGu9.js.map → markdown-gNucAjnF.js.map} +1 -1
  25. package/dist/{param-editor-CaRflJ3e.js → param-editor-CTx3mDxQ.js} +2 -2
  26. package/dist/{param-editor-CaRflJ3e.js.map → param-editor-CTx3mDxQ.js.map} +1 -1
  27. package/dist/{param-editor-field-DVQlXbid.js → param-editor-field-DteDEyeU.js} +2 -2
  28. package/dist/{param-editor-field-DVQlXbid.js.map → param-editor-field-DteDEyeU.js.map} +1 -1
  29. package/dist/prompt-input-DNpRL5tI.js +564 -0
  30. package/dist/prompt-input-DNpRL5tI.js.map +1 -0
  31. package/dist/rich-message-CuPiKxKX.js +78 -0
  32. package/dist/rich-message-CuPiKxKX.js.map +1 -0
  33. package/dist/rich-text.js +24 -23
  34. package/dist/rich-text.js.map +1 -1
  35. package/dist/theme/primitives/colors.d.ts +0 -23
  36. package/dist/theme/recipes/activity-comment.d.ts +36 -0
  37. package/dist/theme/recipes/alert.d.ts +1 -1
  38. package/dist/theme/recipes/dialog.d.ts +1 -1
  39. package/dist/theme/recipes/drawer.d.ts +1 -1
  40. package/dist/theme/recipes/menu.d.ts +1 -1
  41. package/dist/theme/recipes/popover.d.ts +1 -1
  42. package/dist/theme/recipes/progress-circle.d.ts +3 -3
  43. package/dist/theme/recipes/switch.d.ts +1 -1
  44. package/dist/theme/recipes/timeline.d.ts +1 -1
  45. package/dist/theme/recipes/tooltip.d.ts +1 -1
  46. package/dist/theme/recipes/window-title-bar.d.ts +1 -1
  47. package/dist/{theme-B5OVwYEU.js → theme-Dc7hVvMC.js} +118 -808
  48. package/dist/theme-Dc7hVvMC.js.map +1 -0
  49. package/dist/theme.js +1 -1
  50. package/package.json +2 -2
  51. package/dist/rich-message-gWYlm8Ji.js +0 -628
  52. package/dist/rich-message-gWYlm8Ji.js.map +0 -1
  53. package/dist/theme/recipes/landing-story.d.ts +0 -10
  54. package/dist/theme/recipes/landing-tool-demo.d.ts +0 -1
  55. package/dist/theme/recipes/landing.d.ts +0 -23
  56. package/dist/theme-B5OVwYEU.js.map +0 -1
package/dist/index.js CHANGED
@@ -1,33 +1,33 @@
1
- import { Avatar as at, Box as G, Text as F, Stack as Q, HStack as ae, chakra as Pe, Textarea as pn, Spacer as Ft, IconButton as Fe, Icon as ce, Timeline as Ie, Dialog as Z, CloseButton as Mt, Input as Vt, InputGroup as Gt, Kbd as gn, Collapsible as Ke, Flex as de, Badge as Te, Button as ue, Skeleton as pt, Portal as Je, Breadcrumb as pe, AbsoluteCenter as bn, Center as Sn, Popover as Xe, Grid as gt, defineSlotRecipe as xn, createSlotRecipeContext as ft, createToaster as vn, Toaster as yn, Toast as Ne, Spinner as jt, Editable as We, Menu as ge } from "@chakra-ui/react";
2
- import { ChakraProvider as ns } from "@chakra-ui/react";
3
- import { jsx as s, jsxs as y, Fragment as Me } from "react/jsx-runtime";
1
+ import { Avatar as ft, Box as j, defineSlotRecipe as Gt, createSlotRecipeContext as et, Text as M, Stack as X, HStack as le, chakra as Ae, Textarea as In, Spacer as jt, IconButton as Fe, Icon as ce, Timeline as Ie, Spinner as pt, Button as de, Dialog as Z, CloseButton as Ut, Input as Qt, InputGroup as Xt, Kbd as Tn, Collapsible as qe, Flex as fe, Badge as Te, Skeleton as bt, Portal as tt, Breadcrumb as pe, AbsoluteCenter as An, Center as Pn, Popover as Ke, Grid as St, createToaster as kn, Toaster as Rn, Toast as Ne, Editable as We, Menu as ge } from "@chakra-ui/react";
2
+ import { ChakraProvider as Rs } from "@chakra-ui/react";
3
+ import { jsx as s, jsxs as C, Fragment as He } from "react/jsx-runtime";
4
4
  import { c as O } from "react/compiler-runtime";
5
- import * as bt from "react";
6
- import { Children as Cn, useState as fe, useEffect as me, useRef as He, Fragment as St, forwardRef as Ut, Component as wn, createContext as In, useContext as Tn } from "react";
7
- import { Paperclip as Pn, ArrowUp as An, Check as et, ArrowRight as Rn, ArrowLeft as kn, Option as xt, Command as Ye, ChevronRight as $n, Bell as En, X as Qt, Search as qt, SquareArrowOutUpRight as Dn, Minus as Ln, FileText as On, FolderOpen as _n, Folder as Kt, Home as zn, ChevronUp as Nn, ChevronDown as Xt, GripVertical as Bn, Trash2 as Wn, Plus as Hn } from "lucide-react";
8
- import { T as Ue, S as tt, c as Ve } from "./browser-storage-DPtOQJx0.js";
9
- import { useVirtualizer as Fn } from "@tanstack/react-virtual";
10
- import { L as Qe, H as Mn, R as Yt } from "./list-row-BDoV_iMV.js";
11
- import { c as rs, b as ls } from "./list-row-BDoV_iMV.js";
12
- import { T as Vn } from "./tree-list-CZvcg3_6.js";
13
- import { R as ss, a as as } from "./tree-list-CZvcg3_6.js";
14
- import { A as ht } from "./radio-cLMEBBZk.js";
15
- import { R as ds, a as us } from "./radio-cLMEBBZk.js";
16
- import { g as Gn, o as jn, b as Un } from "./param-editor-field-DVQlXbid.js";
17
- import { c as hs, d as ms, e as ps, A as gs, B as bs, C as Ss, f as xs, D as vs, F as ys, H as Cs, M as ws, N as Is, h as Ts, P as Ps, j as As, k as Rs, j as ks, l as $s, m as Es, R as Ds, n as Ls, p as Os, S as _s, q as zs, T as Ns, V as Bs, r as Ws, s as Hs, a as Fs } from "./param-editor-field-DVQlXbid.js";
18
- import { S as Vs, W as Gs, h as js, r as Us, a as Qs, s as qs } from "./workspace-badge-BR_GgsAG.js";
19
- import { P as Xs, a as Ys, b as Zs } from "./param-editor-CaRflJ3e.js";
20
- import { g as Qn } from "./lazy-markdown-editor-DSlelhHV.js";
21
- import { C as ea, R as ta, S as na, i as oa } from "./lazy-markdown-editor-DSlelhHV.js";
22
- import { E as la } from "./empty-state-Bo4HVrgr.js";
23
- import { useStore as nt } from "zustand";
24
- import { persist as ot, createJSONStorage as rt } from "zustand/middleware";
25
- import { createStore as lt } from "zustand/vanilla";
26
- import { useSensors as Zt, useSensor as ct, PointerSensor as Jt, KeyboardSensor as qn, DndContext as en, closestCenter as tn } from "@dnd-kit/core";
27
- import { useSortable as nn, sortableKeyboardCoordinates as Kn, SortableContext as on, horizontalListSortingStrategy as Xn, verticalListSortingStrategy as Yn, arrayMove as Zn } from "@dnd-kit/sortable";
28
- import { CSS as rn } from "@dnd-kit/utilities";
29
- import { w as Jn, b as eo } from "./theme-B5OVwYEU.js";
30
- import { c as sa, a as aa, t as ca } from "./theme-B5OVwYEU.js";
5
+ import * as xt from "react";
6
+ import { Children as $n, useState as ue, Suspense as Ln, lazy as En, useEffect as me, useRef as Me, Fragment as vt, forwardRef as qt, Component as Dn, createContext as _n, useContext as On } from "react";
7
+ import { Paperclip as zn, ArrowUp as Nn, Sparkles as Bn, ScanSearch as Wn, MessageCircle as Mn, Info as Fn, GitBranch as Hn, ExternalLink as Vn, Component as Gn, CircleAlert as jn, Bell as Kt, Activity as Un, Check as nt, ArrowRight as Qn, ArrowLeft as Xn, Option as yt, Command as Ye, ChevronRight as qn, X as Yt, Search as Zt, SquareArrowOutUpRight as Kn, Minus as Yn, FileText as Zn, FolderOpen as Jn, Folder as Jt, Home as eo, ChevronUp as to, ChevronDown as en, GripVertical as no, Trash2 as oo, Plus as lo } from "lucide-react";
8
+ import { T as Ue, S as ot, c as Ve } from "./browser-storage-DPtOQJx0.js";
9
+ import { useVirtualizer as io } from "@tanstack/react-virtual";
10
+ import { L as Qe, H as ro, R as tn } from "./list-row-BDoV_iMV.js";
11
+ import { c as Ls, b as Es } from "./list-row-BDoV_iMV.js";
12
+ import { T as so } from "./tree-list-CZvcg3_6.js";
13
+ import { R as _s, a as Os } from "./tree-list-CZvcg3_6.js";
14
+ import { A as lt } from "./radio-cLMEBBZk.js";
15
+ import { R as Ns, a as Bs } from "./radio-cLMEBBZk.js";
16
+ import { g as ao, o as co, b as fo } from "./param-editor-field-DteDEyeU.js";
17
+ import { c as Ms, d as Fs, e as Hs, A as Vs, B as Gs, C as js, f as Us, D as Qs, F as Xs, H as qs, M as Ks, N as Ys, h as Zs, P as Js, j as ea, k as ta, j as na, l as oa, m as la, R as ia, n as ra, p as sa, S as aa, q as ca, T as da, V as fa, r as ua, s as ha, a as ma } from "./param-editor-field-DteDEyeU.js";
18
+ import { S as ga, W as ba, h as Sa, r as xa, a as va, s as ya } from "./workspace-badge-BR_GgsAG.js";
19
+ import { P as wa, a as Ia, b as Ta } from "./param-editor-CTx3mDxQ.js";
20
+ import { g as uo } from "./lazy-markdown-editor-ClZPZuaU.js";
21
+ import { C as Pa, R as ka, S as Ra, i as $a } from "./lazy-markdown-editor-ClZPZuaU.js";
22
+ import { E as ho } from "./empty-state-Bo4HVrgr.js";
23
+ import { useStore as it } from "zustand";
24
+ import { persist as rt, createJSONStorage as st } from "zustand/middleware";
25
+ import { createStore as at } from "zustand/vanilla";
26
+ import { useSensors as nn, useSensor as ut, PointerSensor as on, KeyboardSensor as mo, DndContext as ln, closestCenter as rn } from "@dnd-kit/core";
27
+ import { useSortable as sn, sortableKeyboardCoordinates as po, SortableContext as an, horizontalListSortingStrategy as go, verticalListSortingStrategy as bo, arrayMove as So } from "@dnd-kit/sortable";
28
+ import { CSS as cn } from "@dnd-kit/utilities";
29
+ import { w as xo, b as vo } from "./theme-Dc7hVvMC.js";
30
+ import { c as Ea, a as Da, t as _a } from "./theme-Dc7hVvMC.js";
31
31
  import "@fontsource/inter/400.css";
32
32
  import "@fontsource/inter/500.css";
33
33
  import "@fontsource/playfair-display/400.css";
@@ -36,283 +36,515 @@ import "@fontsource/playfair-display/700.css";
36
36
  import "@fontsource/onest/400.css";
37
37
  import "@fontsource/onest/500.css";
38
38
  import "@fontsource/onest/700.css";
39
- import { T as ua, a as fa, d as ha, b as ma, c as pa, e as ga, g as ba, i as Sa, u as xa } from "./theme-preference-Bpobguh4.js";
40
- const it = (o) => {
39
+ import { T as za, a as Na, d as Ba, b as Wa, c as Ma, e as Fa, g as Ha, i as Va, u as Ga } from "./theme-preference-Bpobguh4.js";
40
+ const ct = (o) => {
41
41
  const e = O(14), {
42
42
  actor: t,
43
43
  icon: n,
44
- color: r,
45
- background: i
46
- } = o, l = r === void 0 ? "fg.muted" : r, c = i === void 0 ? "bg.muted" : i;
44
+ color: l,
45
+ background: r
46
+ } = o, i = l === void 0 ? "fg.muted" : l, c = r === void 0 ? "bg.muted" : r;
47
47
  if (n) {
48
48
  let m;
49
- return e[0] !== c || e[1] !== l || e[2] !== n ? (m = /* @__PURE__ */ s(G, { boxSize: "18px", borderRadius: "full", display: "inline-flex", alignItems: "center", justifyContent: "center", flexShrink: 0, color: l, background: c, children: n }), e[0] = c, e[1] = l, e[2] = n, e[3] = m) : m = e[3], m;
49
+ return e[0] !== c || e[1] !== i || e[2] !== n ? (m = /* @__PURE__ */ s(j, { boxSize: "18px", borderRadius: "full", display: "inline-flex", alignItems: "center", justifyContent: "center", flexShrink: 0, color: i, background: c, children: n }), e[0] = c, e[1] = i, e[2] = n, e[3] = m) : m = e[3], m;
50
50
  }
51
- const a = t?.avatarSrc, d = t?.avatarAlt ?? t?.name;
52
- let u;
53
- e[4] !== a || e[5] !== d ? (u = /* @__PURE__ */ s(at.Image, { src: a, alt: d }), e[4] = a, e[5] = d, e[6] = u) : u = e[6];
54
- const f = t?.name;
51
+ const a = t?.avatarSrc, f = t?.avatarAlt ?? t?.name;
52
+ let d;
53
+ e[4] !== a || e[5] !== f ? (d = /* @__PURE__ */ s(ft.Image, { src: a, alt: f }), e[4] = a, e[5] = f, e[6] = d) : d = e[6];
54
+ const u = t?.name;
55
55
  let h;
56
- e[7] !== c || e[8] !== l || e[9] !== f ? (h = /* @__PURE__ */ s(at.Fallback, { name: f, background: c, color: l }), e[7] = c, e[8] = l, e[9] = f, e[10] = h) : h = e[10];
56
+ e[7] !== c || e[8] !== i || e[9] !== u ? (h = /* @__PURE__ */ s(ft.Fallback, { name: u, background: c, color: i }), e[7] = c, e[8] = i, e[9] = u, e[10] = h) : h = e[10];
57
57
  let p;
58
- return e[11] !== u || e[12] !== h ? (p = /* @__PURE__ */ y(at.Root, { size: "2xs", flexShrink: 0, children: [
59
- u,
58
+ return e[11] !== d || e[12] !== h ? (p = /* @__PURE__ */ C(ft.Root, { size: "2xs", flexShrink: 0, children: [
59
+ d,
60
60
  h
61
- ] }), e[11] = u, e[12] = h, e[13] = p) : p = e[13], p;
62
- }, to = () => {
61
+ ] }), e[11] = d, e[12] = h, e[13] = p) : p = e[13], p;
62
+ }, yo = Gt({
63
+ className: "activity-comment",
64
+ slots: ["root", "body", "content"],
65
+ base: {
66
+ root: {
67
+ width: "full",
68
+ borderWidth: "1px",
69
+ borderRadius: "xs",
70
+ overflow: "hidden"
71
+ },
72
+ body: {
73
+ display: "flex",
74
+ flexDirection: "column"
75
+ },
76
+ content: {
77
+ color: "fg",
78
+ overflowWrap: "anywhere",
79
+ whiteSpace: "pre-wrap"
80
+ }
81
+ },
82
+ variants: {
83
+ tone: {
84
+ default: {
85
+ root: {
86
+ background: "bg",
87
+ borderColor: "border.subtle"
88
+ }
89
+ },
90
+ attention: {
91
+ root: {
92
+ background: "bg.warning",
93
+ borderColor: "border.warning"
94
+ }
95
+ }
96
+ },
97
+ size: {
98
+ comfortable: {
99
+ body: {
100
+ gap: "sm",
101
+ padding: "md"
102
+ },
103
+ content: {
104
+ textStyle: "label/S/regular"
105
+ }
106
+ },
107
+ compact: {
108
+ body: {
109
+ gap: "xs",
110
+ padding: "sm"
111
+ },
112
+ content: {
113
+ textStyle: "label/S/regular"
114
+ }
115
+ }
116
+ }
117
+ },
118
+ defaultVariants: {
119
+ tone: "default",
120
+ size: "comfortable"
121
+ }
122
+ }), {
123
+ withContext: dn,
124
+ withProvider: Co
125
+ } = et({
126
+ recipe: yo
127
+ }), wo = () => {
63
128
  const o = O(1);
64
129
  let e;
65
- return o[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ s(G, { as: "span", boxSize: "3px", borderRadius: "full", background: "fg.subtle", flexShrink: 0 }), o[0] = e) : e = o[0], e;
66
- }, ln = (o) => {
67
- const e = O(13), {
130
+ return o[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ s(j, { as: "span", boxSize: "3px", borderRadius: "full", background: "fg.subtle", flexShrink: 0 }), o[0] = e) : e = o[0], e;
131
+ }, fn = (o) => {
132
+ const e = O(16), {
68
133
  actor: t,
69
- timestamp: n,
70
- actions: r
134
+ icon: n,
135
+ iconColor: l,
136
+ iconBackground: r,
137
+ timestamp: i,
138
+ actions: c
71
139
  } = o;
72
- let i;
73
- e[0] !== t ? (i = /* @__PURE__ */ s(it, { actor: t }), e[0] = t, e[1] = i) : i = e[1];
74
- let l;
75
- e[2] !== t.name ? (l = /* @__PURE__ */ s(F, { textStyle: "label/S/medium", color: "fg", truncate: !0, children: t.name }), e[2] = t.name, e[3] = l) : l = e[3];
76
- let c;
77
- e[4] !== n ? (c = n ? /* @__PURE__ */ y(Me, { children: [
78
- /* @__PURE__ */ s(to, {}),
79
- /* @__PURE__ */ s(F, { textStyle: "label/S/regular", color: "fg.muted", flexShrink: 0, children: n })
80
- ] }) : null, e[4] = n, e[5] = c) : c = e[5];
81
140
  let a;
82
- e[6] !== r ? (a = /* @__PURE__ */ s(G, { marginLeft: "auto", flexShrink: 0, children: r }), e[6] = r, e[7] = a) : a = e[7];
141
+ e[0] !== t || e[1] !== n || e[2] !== r || e[3] !== l ? (a = /* @__PURE__ */ s(ct, { actor: t, icon: n, color: l, background: r }), e[0] = t, e[1] = n, e[2] = r, e[3] = l, e[4] = a) : a = e[4];
142
+ let f;
143
+ e[5] !== t.name ? (f = /* @__PURE__ */ s(M, { textStyle: "label/S/medium", color: "fg", truncate: !0, children: t.name }), e[5] = t.name, e[6] = f) : f = e[6];
83
144
  let d;
84
- return e[8] !== i || e[9] !== l || e[10] !== c || e[11] !== a ? (d = /* @__PURE__ */ y(ae, { gap: "xs", alignItems: "center", minW: "0", children: [
85
- i,
86
- l,
87
- c,
88
- a
89
- ] }), e[8] = i, e[9] = l, e[10] = c, e[11] = a, e[12] = d) : d = e[12], d;
90
- }, no = (o) => {
145
+ e[7] !== i ? (d = i ? /* @__PURE__ */ C(He, { children: [
146
+ /* @__PURE__ */ s(wo, {}),
147
+ /* @__PURE__ */ s(M, { textStyle: "label/S/regular", color: "fg.muted", flexShrink: 0, children: i })
148
+ ] }) : null, e[7] = i, e[8] = d) : d = e[8];
149
+ let u;
150
+ e[9] !== c ? (u = /* @__PURE__ */ s(j, { marginLeft: "auto", flexShrink: 0, children: c }), e[9] = c, e[10] = u) : u = e[10];
151
+ let h;
152
+ return e[11] !== a || e[12] !== f || e[13] !== d || e[14] !== u ? (h = /* @__PURE__ */ C(le, { gap: "xs", alignItems: "center", minW: "0", children: [
153
+ a,
154
+ f,
155
+ d,
156
+ u
157
+ ] }), e[11] = a, e[12] = f, e[13] = d, e[14] = u, e[15] = h) : h = e[15], h;
158
+ }, Io = Co("article", "root"), To = dn("div", "body"), Ao = dn("div", "content"), Po = (o) => {
91
159
  const e = O(18);
92
- let t, n, r, i, l;
160
+ let t, n, l, r, i;
93
161
  e[0] !== o ? ({
94
162
  actor: n,
95
- timestamp: l,
163
+ timestamp: i,
96
164
  actions: t,
97
- children: r,
98
- ...i
99
- } = o, e[0] = o, e[1] = t, e[2] = n, e[3] = r, e[4] = i, e[5] = l) : (t = e[1], n = e[2], r = e[3], i = e[4], l = e[5]);
165
+ children: l,
166
+ ...r
167
+ } = o, e[0] = o, e[1] = t, e[2] = n, e[3] = l, e[4] = r, e[5] = i) : (t = e[1], n = e[2], l = e[3], r = e[4], i = e[5]);
100
168
  let c;
101
- e[6] !== t || e[7] !== n || e[8] !== l ? (c = /* @__PURE__ */ s(ln, { actor: n, timestamp: l, actions: t }), e[6] = t, e[7] = n, e[8] = l, e[9] = c) : c = e[9];
169
+ e[6] !== t || e[7] !== n || e[8] !== i ? (c = /* @__PURE__ */ s(fn, { actor: n, timestamp: i, actions: t }), e[6] = t, e[7] = n, e[8] = i, e[9] = c) : c = e[9];
102
170
  let a;
103
- e[10] !== r ? (a = /* @__PURE__ */ s(G, { paddingLeft: "32px", children: /* @__PURE__ */ s(F, { as: "div", textStyle: "label/S/regular", color: "fg", overflowWrap: "anywhere", children: r }) }), e[10] = r, e[11] = a) : a = e[11];
104
- let d;
105
- e[12] !== c || e[13] !== a ? (d = /* @__PURE__ */ y(Q, { gap: "xs", children: [
171
+ e[10] !== l ? (a = /* @__PURE__ */ s(j, { paddingLeft: "32px", children: /* @__PURE__ */ s(M, { as: "div", textStyle: "label/S/regular", color: "fg", overflowWrap: "anywhere", children: l }) }), e[10] = l, e[11] = a) : a = e[11];
172
+ let f;
173
+ e[12] !== c || e[13] !== a ? (f = /* @__PURE__ */ C(X, { gap: "xs", children: [
106
174
  c,
107
175
  a
108
- ] }), e[12] = c, e[13] = a, e[14] = d) : d = e[14];
109
- let u;
110
- return e[15] !== i || e[16] !== d ? (u = /* @__PURE__ */ s(G, { paddingX: "md", paddingY: "sm", ...i, children: d }), e[15] = i, e[16] = d, e[17] = u) : u = e[17], u;
111
- }, oo = (o) => {
112
- const e = O(27);
113
- let t, n, r, i, l, c, a;
176
+ ] }), e[12] = c, e[13] = a, e[14] = f) : f = e[14];
177
+ let d;
178
+ return e[15] !== r || e[16] !== f ? (d = /* @__PURE__ */ s(j, { paddingX: "md", paddingY: "sm", ...r, children: f }), e[15] = r, e[16] = f, e[17] = d) : d = e[17], d;
179
+ }, un = (o) => {
180
+ const e = O(33);
181
+ let t, n, l, r, i, c, a, f, d, u;
114
182
  e[0] !== o ? ({
115
183
  actor: n,
116
- timestamp: a,
184
+ icon: i,
185
+ iconColor: a,
186
+ iconBackground: c,
187
+ timestamp: u,
117
188
  actions: t,
118
- replies: l,
119
- composer: i,
120
- children: r,
121
- ...c
122
- } = o, e[0] = o, e[1] = t, e[2] = n, e[3] = r, e[4] = i, e[5] = l, e[6] = c, e[7] = a) : (t = e[1], n = e[2], r = e[3], i = e[4], l = e[5], c = e[6], a = e[7]);
123
- const d = Cn.count(l) > 0;
124
- let u;
125
- e[8] !== t || e[9] !== n || e[10] !== a ? (u = /* @__PURE__ */ s(ln, { actor: n, timestamp: a, actions: t }), e[8] = t, e[9] = n, e[10] = a, e[11] = u) : u = e[11];
126
- let f;
127
- e[12] !== r ? (f = /* @__PURE__ */ s(F, { as: "div", textStyle: "label/S/regular", color: "fg", overflowWrap: "anywhere", whiteSpace: "pre-wrap", children: r }), e[12] = r, e[13] = f) : f = e[13];
128
- let h;
129
- e[14] !== u || e[15] !== f ? (h = /* @__PURE__ */ y(Q, { gap: "sm", padding: "md", children: [
130
- u,
131
- f
132
- ] }), e[14] = u, e[15] = f, e[16] = h) : h = e[16];
189
+ replies: f,
190
+ composer: r,
191
+ children: l,
192
+ ...d
193
+ } = o, e[0] = o, e[1] = t, e[2] = n, e[3] = l, e[4] = r, e[5] = i, e[6] = c, e[7] = a, e[8] = f, e[9] = d, e[10] = u) : (t = e[1], n = e[2], l = e[3], r = e[4], i = e[5], c = e[6], a = e[7], f = e[8], d = e[9], u = e[10]);
194
+ const h = $n.count(f) > 0;
133
195
  let p;
134
- e[17] !== d || e[18] !== l ? (p = d ? /* @__PURE__ */ s(G, { borderTopWidth: "1px", borderColor: "border.subtle", children: l }) : null, e[17] = d, e[18] = l, e[19] = p) : p = e[19];
196
+ e[11] !== t || e[12] !== n || e[13] !== i || e[14] !== c || e[15] !== a || e[16] !== u ? (p = /* @__PURE__ */ s(fn, { actor: n, icon: i, iconColor: a, iconBackground: c, timestamp: u, actions: t }), e[11] = t, e[12] = n, e[13] = i, e[14] = c, e[15] = a, e[16] = u, e[17] = p) : p = e[17];
135
197
  let m;
136
- e[20] !== i ? (m = i ? /* @__PURE__ */ s(G, { borderTopWidth: "1px", borderColor: "border.subtle", children: i }) : null, e[20] = i, e[21] = m) : m = e[21];
198
+ e[18] !== l ? (m = /* @__PURE__ */ s(Ao, { children: l }), e[18] = l, e[19] = m) : m = e[19];
137
199
  let g;
138
- return e[22] !== c || e[23] !== h || e[24] !== p || e[25] !== m ? (g = /* @__PURE__ */ y(G, { as: "article", width: "full", borderWidth: "1px", borderColor: "border.subtle", borderRadius: "xs", background: "bg", overflow: "hidden", ...c, children: [
139
- h,
200
+ e[20] !== p || e[21] !== m ? (g = /* @__PURE__ */ C(To, { children: [
140
201
  p,
141
202
  m
142
- ] }), e[22] = c, e[23] = h, e[24] = p, e[25] = m, e[26] = g) : g = e[26], g;
143
- }, ro = (o) => {
203
+ ] }), e[20] = p, e[21] = m, e[22] = g) : g = e[22];
204
+ let S;
205
+ e[23] !== h || e[24] !== f ? (S = h ? /* @__PURE__ */ s(j, { borderTopWidth: "1px", borderColor: "border.subtle", children: f }) : null, e[23] = h, e[24] = f, e[25] = S) : S = e[25];
206
+ let b;
207
+ e[26] !== r ? (b = r ? /* @__PURE__ */ s(j, { borderTopWidth: "1px", borderColor: "border.subtle", children: r }) : null, e[26] = r, e[27] = b) : b = e[27];
208
+ let T;
209
+ return e[28] !== d || e[29] !== g || e[30] !== S || e[31] !== b ? (T = /* @__PURE__ */ C(Io, { ...d, children: [
210
+ g,
211
+ S,
212
+ b
213
+ ] }), e[28] = d, e[29] = g, e[30] = S, e[31] = b, e[32] = T) : T = e[32], T;
214
+ }, ko = (o) => {
144
215
  const {
145
216
  actor: e,
146
217
  value: t,
147
218
  defaultValue: n = "",
148
- placeholder: r = "Leave a comment...",
149
- variant: i = "standalone",
150
- minRows: l = i === "standalone" ? 3 : 1,
219
+ placeholder: l = "Leave a comment...",
220
+ variant: r = "standalone",
221
+ minRows: i = r === "standalone" ? 3 : 1,
151
222
  attachLabel: c = "Attach file",
152
223
  submitLabel: a = "Submit comment",
153
- actions: d,
154
- onAttach: u,
155
- onChange: f,
224
+ actions: f,
225
+ onAttach: d,
226
+ onChange: u,
156
227
  onSubmit: h,
157
228
  ...p
158
- } = o, [m, g] = fe(n), x = t ?? m, b = i === "inline", k = x.trim().length > 0, A = (S) => {
159
- t === void 0 && g(S), f?.(S);
160
- }, R = (S) => {
161
- S.preventDefault(), k && (h?.(x.trim()), t === void 0 && g(""));
229
+ } = o, [m, g] = ue(n), S = t ?? m, b = r === "inline", T = S.trim().length > 0, I = (x) => {
230
+ t === void 0 && g(x), u?.(x);
231
+ }, R = (x) => {
232
+ x.preventDefault(), T && (h?.(S.trim()), t === void 0 && g(""));
162
233
  };
163
- return /* @__PURE__ */ s(Pe.form, { width: "full", background: "bg", borderWidth: b ? "0" : "1px", borderColor: "border", borderRadius: b ? "0" : "sm", transition: "border-color 0.12s ease", _hover: b ? void 0 : {
234
+ return /* @__PURE__ */ s(Ae.form, { width: "full", background: "bg", borderWidth: b ? "0" : "1px", borderColor: "border", borderRadius: b ? "0" : "sm", transition: "border-color 0.12s ease", _hover: b ? void 0 : {
164
235
  borderColor: "border"
165
236
  }, _focusWithin: b ? void 0 : {
166
237
  borderColor: "border.accent"
167
- }, onSubmit: R, ...p, children: /* @__PURE__ */ y(ae, { alignItems: "flex-start", gap: "xs", padding: b ? "sm" : "md", children: [
168
- e ? /* @__PURE__ */ s(it, { actor: e }) : null,
169
- /* @__PURE__ */ y(G, { flex: "1", minW: "0", children: [
170
- /* @__PURE__ */ s(pn, { value: x, rows: l, resize: "none", border: "0", padding: "0", minH: b ? "1.5rem" : "4rem", background: "transparent", color: "fg", textStyle: "label/S/regular", placeholder: r, _placeholder: {
238
+ }, onSubmit: R, ...p, children: /* @__PURE__ */ C(le, { alignItems: "flex-start", gap: "xs", padding: b ? "sm" : "md", children: [
239
+ e ? /* @__PURE__ */ s(ct, { actor: e }) : null,
240
+ /* @__PURE__ */ C(j, { flex: "1", minW: "0", children: [
241
+ /* @__PURE__ */ s(In, { value: S, rows: i, resize: "none", border: "0", padding: "0", minH: b ? "1.5rem" : "4rem", background: "transparent", color: "fg", textStyle: "label/S/regular", placeholder: l, _placeholder: {
171
242
  color: "fg.subtle"
172
- }, onChange: (S) => A(S.currentTarget.value) }),
173
- /* @__PURE__ */ y(ae, { gap: "2xs", marginTop: b ? "0" : "sm", children: [
174
- d,
175
- /* @__PURE__ */ s(Ft, {}),
176
- /* @__PURE__ */ s(Ue, { content: c, children: /* @__PURE__ */ s(Fe, { size: "2xs", variant: "ghost", "aria-label": c, type: "button", onClick: u, children: /* @__PURE__ */ s(ce, { as: Pn, boxSize: "14px" }) }) }),
177
- /* @__PURE__ */ s(Ue, { content: a, children: /* @__PURE__ */ s(Fe, { size: "2xs", variant: "subtle", "aria-label": a, type: "submit", disabled: !k, children: /* @__PURE__ */ s(ce, { as: An, boxSize: "14px" }) }) })
243
+ }, onChange: (x) => I(x.currentTarget.value) }),
244
+ /* @__PURE__ */ C(le, { gap: "2xs", marginTop: b ? "0" : "sm", children: [
245
+ f,
246
+ /* @__PURE__ */ s(jt, {}),
247
+ /* @__PURE__ */ s(Ue, { content: c, children: /* @__PURE__ */ s(Fe, { size: "2xs", variant: "ghost", "aria-label": c, type: "button", onClick: d, children: /* @__PURE__ */ s(ce, { as: zn, boxSize: "14px" }) }) }),
248
+ /* @__PURE__ */ s(Ue, { content: a, children: /* @__PURE__ */ s(Fe, { size: "2xs", variant: "subtle", "aria-label": a, type: "submit", disabled: !T, children: /* @__PURE__ */ s(ce, { as: Nn, boxSize: "14px" }) }) })
178
249
  ] })
179
250
  ] })
180
251
  ] }) });
181
- }, lo = () => {
252
+ }, Ro = () => {
182
253
  const o = O(1);
183
254
  let e;
184
- return o[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ s(G, { as: "span", boxSize: "3px", borderRadius: "full", background: "fg.subtle", flexShrink: 0 }), o[0] = e) : e = o[0], e;
185
- }, io = (o) => {
255
+ return o[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ s(j, { as: "span", boxSize: "3px", borderRadius: "full", background: "fg.subtle", flexShrink: 0 }), o[0] = e) : e = o[0], e;
256
+ }, hn = (o) => {
186
257
  const e = O(28);
187
- let t, n, r, i, l, c, a;
258
+ let t, n, l, r, i, c, a;
188
259
  e[0] !== o ? ({
189
260
  actor: t,
190
- icon: r,
191
- iconColor: l,
261
+ icon: l,
262
+ iconColor: i,
192
263
  iconBackground: c,
193
264
  timestamp: a,
194
265
  children: n,
195
- ...i
196
- } = o, e[0] = o, e[1] = t, e[2] = n, e[3] = r, e[4] = i, e[5] = l, e[6] = c, e[7] = a) : (t = e[1], n = e[2], r = e[3], i = e[4], l = e[5], c = e[6], a = e[7]);
197
- const d = l === void 0 ? "fg" : l, u = c === void 0 ? "transparent" : c;
198
- let f;
199
- e[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (f = /* @__PURE__ */ s(Ie.Separator, { borderColor: "border" }), e[8] = f) : f = e[8];
266
+ ...r
267
+ } = o, e[0] = o, e[1] = t, e[2] = n, e[3] = l, e[4] = r, e[5] = i, e[6] = c, e[7] = a) : (t = e[1], n = e[2], l = e[3], r = e[4], i = e[5], c = e[6], a = e[7]);
268
+ const f = i === void 0 ? "fg" : i, d = c === void 0 ? "transparent" : c;
269
+ let u;
270
+ e[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (u = /* @__PURE__ */ s(Ie.Separator, { borderColor: "border" }), e[8] = u) : u = e[8];
200
271
  let h;
201
- e[9] !== t || e[10] !== r || e[11] !== u || e[12] !== d ? (h = /* @__PURE__ */ y(Ie.Connector, { children: [
202
- f,
203
- /* @__PURE__ */ s(Ie.Indicator, { outline: "none", border: "none", background: "bg", children: /* @__PURE__ */ s(it, { actor: t, icon: r, color: d, background: u }) })
204
- ] }), e[9] = t, e[10] = r, e[11] = u, e[12] = d, e[13] = h) : h = e[13];
272
+ e[9] !== t || e[10] !== l || e[11] !== d || e[12] !== f ? (h = /* @__PURE__ */ C(Ie.Connector, { children: [
273
+ u,
274
+ /* @__PURE__ */ s(Ie.Indicator, { outline: "none", border: "none", background: "bg", children: /* @__PURE__ */ s(ct, { actor: t, icon: l, color: f, background: d }) })
275
+ ] }), e[9] = t, e[10] = l, e[11] = d, e[12] = f, e[13] = h) : h = e[13];
205
276
  let p;
206
- e[14] !== t ? (p = t ? /* @__PURE__ */ s(F, { as: "span", color: "fg", fontWeight: "500", flexShrink: 0, children: t.name }) : null, e[14] = t, e[15] = p) : p = e[15];
277
+ e[14] !== t ? (p = t ? /* @__PURE__ */ s(M, { as: "span", color: "fg", fontWeight: "500", flexShrink: 0, children: t.name }) : null, e[14] = t, e[15] = p) : p = e[15];
207
278
  let m;
208
- e[16] !== n ? (m = /* @__PURE__ */ s(G, { as: "span", display: "inline-flex", alignItems: "center", gap: "2xs", minW: "0", flexWrap: "wrap", children: n }), e[16] = n, e[17] = m) : m = e[17];
279
+ e[16] !== n ? (m = /* @__PURE__ */ s(j, { as: "span", display: "inline-flex", alignItems: "center", gap: "2xs", minW: "0", flexWrap: "wrap", children: n }), e[16] = n, e[17] = m) : m = e[17];
209
280
  let g;
210
- e[18] !== a ? (g = a ? /* @__PURE__ */ y(Me, { children: [
211
- /* @__PURE__ */ s(lo, {}),
212
- /* @__PURE__ */ s(F, { as: "span", color: "fg.muted", flexShrink: 0, children: a })
281
+ e[18] !== a ? (g = a ? /* @__PURE__ */ C(He, { children: [
282
+ /* @__PURE__ */ s(Ro, {}),
283
+ /* @__PURE__ */ s(M, { as: "span", color: "fg.muted", flexShrink: 0, children: a })
213
284
  ] }) : null, e[18] = a, e[19] = g) : g = e[19];
214
- let x;
215
- e[20] !== p || e[21] !== m || e[22] !== g ? (x = /* @__PURE__ */ s(Ie.Content, { gap: "0", minW: "0", children: /* @__PURE__ */ y(Ie.Title, { marginTop: "0", gap: "xs", minW: "0", fontWeight: "normal", textStyle: "label/S/regular", color: "fg.muted", children: [
285
+ let S;
286
+ e[20] !== p || e[21] !== m || e[22] !== g ? (S = /* @__PURE__ */ s(Ie.Content, { gap: "0", minW: "0", children: /* @__PURE__ */ C(Ie.Title, { marginTop: "0", gap: "xs", minW: "0", fontWeight: "normal", textStyle: "label/S/regular", color: "fg.muted", children: [
216
287
  p,
217
288
  m,
218
289
  g
219
- ] }) }), e[20] = p, e[21] = m, e[22] = g, e[23] = x) : x = e[23];
290
+ ] }) }), e[20] = p, e[21] = m, e[22] = g, e[23] = S) : S = e[23];
220
291
  let b;
221
- return e[24] !== i || e[25] !== h || e[26] !== x ? (b = /* @__PURE__ */ y(Ie.Item, { gap: "xs", minH: "24px", paddingX: "md", ...i, children: [
292
+ return e[24] !== r || e[25] !== h || e[26] !== S ? (b = /* @__PURE__ */ C(Ie.Item, { gap: "xs", minH: "24px", paddingX: "md", ...r, children: [
222
293
  h,
223
- x
224
- ] }), e[24] = i, e[25] = h, e[26] = x, e[27] = b) : b = e[27], b;
225
- }, so = (o) => {
294
+ S
295
+ ] }), e[24] = r, e[25] = h, e[26] = S, e[27] = b) : b = e[27], b;
296
+ }, $o = (o) => {
226
297
  const e = O(6);
227
298
  let t, n;
228
299
  e[0] !== o ? ({
229
300
  children: t,
230
301
  ...n
231
302
  } = o, e[0] = o, e[1] = t, e[2] = n) : (t = e[1], n = e[2]);
232
- let r;
233
- return e[3] !== t || e[4] !== n ? (r = /* @__PURE__ */ s(Q, { width: "full", gap: "md", ...n, children: t }), e[3] = t, e[4] = n, e[5] = r) : r = e[5], r;
234
- }, ao = (o) => {
303
+ let l;
304
+ return e[3] !== t || e[4] !== n ? (l = /* @__PURE__ */ s(X, { width: "full", gap: "md", ...n, children: t }), e[3] = t, e[4] = n, e[5] = l) : l = e[5], l;
305
+ }, Lo = (o) => {
235
306
  const e = O(12);
236
- let t, n, r;
307
+ let t, n, l;
237
308
  e[0] !== o ? ({
238
- title: r,
309
+ title: l,
239
310
  actions: t,
240
311
  ...n
241
- } = o, e[0] = o, e[1] = t, e[2] = n, e[3] = r) : (t = e[1], n = e[2], r = e[3]);
242
- const i = r === void 0 ? "Activity" : r;
243
- let l;
244
- e[4] !== i ? (l = /* @__PURE__ */ s(F, { textStyle: "label/M/medium", color: "fg", children: i }), e[4] = i, e[5] = l) : l = e[5];
312
+ } = o, e[0] = o, e[1] = t, e[2] = n, e[3] = l) : (t = e[1], n = e[2], l = e[3]);
313
+ const r = l === void 0 ? "Activity" : l;
314
+ let i;
315
+ e[4] !== r ? (i = /* @__PURE__ */ s(M, { textStyle: "label/M/medium", color: "fg", children: r }), e[4] = r, e[5] = i) : i = e[5];
245
316
  let c;
246
- e[6] !== t ? (c = t ? /* @__PURE__ */ s(ae, { gap: "xs", children: t }) : null, e[6] = t, e[7] = c) : c = e[7];
317
+ e[6] !== t ? (c = t ? /* @__PURE__ */ s(le, { gap: "xs", children: t }) : null, e[6] = t, e[7] = c) : c = e[7];
247
318
  let a;
248
- return e[8] !== n || e[9] !== l || e[10] !== c ? (a = /* @__PURE__ */ y(ae, { alignItems: "center", justifyContent: "space-between", gap: "md", ...n, children: [
249
- l,
319
+ return e[8] !== n || e[9] !== i || e[10] !== c ? (a = /* @__PURE__ */ C(le, { alignItems: "center", justifyContent: "space-between", gap: "md", ...n, children: [
320
+ i,
250
321
  c
251
- ] }), e[8] = n, e[9] = l, e[10] = c, e[11] = a) : a = e[11], a;
252
- }, co = (o) => {
322
+ ] }), e[8] = n, e[9] = i, e[10] = c, e[11] = a) : a = e[11], a;
323
+ }, mn = (o) => {
253
324
  const e = O(6);
254
325
  let t, n;
255
326
  e[0] !== o ? ({
256
327
  children: t,
257
328
  ...n
258
329
  } = o, e[0] = o, e[1] = t, e[2] = n) : (t = e[1], n = e[2]);
259
- let r;
260
- return e[3] !== t || e[4] !== n ? (r = /* @__PURE__ */ s(Q, { gap: "md", width: "full", ...n, children: t }), e[3] = t, e[4] = n, e[5] = r) : r = e[5], r;
261
- }, uo = (o) => {
330
+ let l;
331
+ return e[3] !== t || e[4] !== n ? (l = /* @__PURE__ */ s(X, { gap: "md", width: "full", ...n, children: t }), e[3] = t, e[4] = n, e[5] = l) : l = e[5], l;
332
+ }, pn = (o) => {
262
333
  const e = O(7);
263
334
  let t, n;
264
335
  e[0] !== o ? ({
265
336
  children: t,
266
337
  ...n
267
338
  } = o, e[0] = o, e[1] = t, e[2] = n) : (t = e[1], n = e[2]);
268
- let r;
269
- e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (r = {
339
+ let l;
340
+ e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (l = {
270
341
  "--timeline-indicator-size": "18px"
271
- }, e[3] = r) : r = e[3];
342
+ }, e[3] = l) : l = e[3];
343
+ let r;
344
+ return e[4] !== t || e[5] !== n ? (r = /* @__PURE__ */ s(Ie.Root, { size: "sm", variant: "plain", width: "full", css: l, ...n, children: t }), e[4] = t, e[5] = n, e[6] = r) : r = e[6], r;
345
+ }, Eo = /* @__PURE__ */ En(() => import("./rich-message-CuPiKxKX.js").then((o) => ({
346
+ default: o.RichMessage
347
+ }))), Do = {
348
+ activity: Un,
349
+ bell: Kt,
350
+ "circle-alert": jn,
351
+ component: Gn,
352
+ "external-link": Vn,
353
+ "git-branch": Hn,
354
+ info: Fn,
355
+ "message-circle": Mn,
356
+ "scan-search": Wn,
357
+ sparkles: Bn
358
+ }, Je = (o) => {
359
+ const e = O(2), t = Do[o.name];
360
+ let n;
361
+ return e[0] !== t ? (n = /* @__PURE__ */ s(ce, { as: t, boxSize: "13px" }), e[0] = t, e[1] = n) : n = e[1], n;
362
+ }, Ct = (o) => {
363
+ const e = O(12), {
364
+ item: t,
365
+ size: n,
366
+ onActionSelect: l,
367
+ onRelatedResourceSelect: r
368
+ } = o, i = t.kind === "message" ? t.attention?.actions : void 0;
369
+ if (!t.relatedResources?.length && !i?.length)
370
+ return null;
371
+ let c;
372
+ e[0] !== i || e[1] !== t || e[2] !== l || e[3] !== n ? (c = i?.map((d) => /* @__PURE__ */ C(de, { type: "button", size: n === "compact" ? "2xs" : "xs", variant: "outline", disabled: !l, onClick: () => l?.(d, t), children: [
373
+ d.icon ? /* @__PURE__ */ s(Je, { name: d.icon }) : null,
374
+ d.label
375
+ ] }, d.id)), e[0] = i, e[1] = t, e[2] = l, e[3] = n, e[4] = c) : c = e[4];
376
+ let a;
377
+ e[5] !== t || e[6] !== r || e[7] !== n ? (a = t.relatedResources?.map((d) => /* @__PURE__ */ s(de, { type: "button", size: n === "compact" ? "2xs" : "xs", variant: "ghost", disabled: !r, onClick: () => r?.(d, t), children: d.label }, `${d.type}:${d.id}`)), e[5] = t, e[6] = r, e[7] = n, e[8] = a) : a = e[8];
378
+ let f;
379
+ return e[9] !== c || e[10] !== a ? (f = /* @__PURE__ */ C(le, { gap: "2xs", flexWrap: "wrap", children: [
380
+ c,
381
+ a
382
+ ] }), e[9] = c, e[10] = a, e[11] = f) : f = e[11], f;
383
+ }, _o = (o) => {
384
+ const e = O(7), {
385
+ attention: t
386
+ } = o;
387
+ if (!t.statusLabel)
388
+ return null;
389
+ const n = t.icon ?? "bell";
390
+ let l;
391
+ e[0] !== n ? (l = /* @__PURE__ */ s(Je, { name: n }), e[0] = n, e[1] = l) : l = e[1];
392
+ let r;
393
+ e[2] !== t.statusLabel ? (r = /* @__PURE__ */ s(M, { textStyle: "label/XS/medium", children: t.statusLabel }), e[2] = t.statusLabel, e[3] = r) : r = e[3];
272
394
  let i;
273
- return e[4] !== t || e[5] !== n ? (i = /* @__PURE__ */ s(Ie.Root, { size: "sm", variant: "plain", width: "full", css: r, ...n, children: t }), e[4] = t, e[5] = n, e[6] = i) : i = e[6], i;
274
- }, Si = {
275
- Root: so,
276
- Header: ao,
277
- Feed: co,
278
- Timeline: uo,
279
- Event: io,
280
- Comment: oo,
281
- Reply: no,
282
- Composer: ro,
283
- Avatar: it
284
- }, xi = 48, fo = (o) => {
395
+ return e[4] !== l || e[5] !== r ? (i = /* @__PURE__ */ C(le, { gap: "2xs", color: "fg.warning", children: [
396
+ l,
397
+ r
398
+ ] }), e[4] = l, e[5] = r, e[6] = i) : i = e[6], i;
399
+ }, Oo = (o) => {
400
+ const e = O(50), {
401
+ item: t,
402
+ size: n,
403
+ fallbackActorName: l,
404
+ formatTimestamp: r,
405
+ onActionSelect: i,
406
+ onRelatedResourceSelect: c
407
+ } = o;
408
+ let a;
409
+ e[0] !== l || e[1] !== t.actor ? (a = t.actor ?? {
410
+ name: l
411
+ }, e[0] = l, e[1] = t.actor, e[2] = a) : a = e[2];
412
+ const f = a;
413
+ let d;
414
+ e[3] !== r || e[4] !== t ? (d = t.timestampLabel ?? r(t.createdAt, t), e[3] = r, e[4] = t, e[5] = d) : d = e[5];
415
+ let u;
416
+ e[6] !== t.createdAt || e[7] !== d ? (u = /* @__PURE__ */ s("time", { dateTime: t.createdAt, children: d }), e[6] = t.createdAt, e[7] = d, e[8] = u) : u = e[8];
417
+ const h = u;
418
+ if (t.kind === "event") {
419
+ let P;
420
+ e[9] !== t.icon ? (P = t.icon ? /* @__PURE__ */ s(Je, { name: t.icon }) : void 0, e[9] = t.icon, e[10] = P) : P = e[10];
421
+ const w = n === "compact" ? "sm" : "md";
422
+ let y;
423
+ e[11] !== t.summary ? (y = /* @__PURE__ */ s(M, { as: "span", children: t.summary }), e[11] = t.summary, e[12] = y) : y = e[12];
424
+ let L;
425
+ e[13] !== t || e[14] !== c || e[15] !== n ? (L = /* @__PURE__ */ s(Ct, { item: t, size: n, onRelatedResourceSelect: c }), e[13] = t, e[14] = c, e[15] = n, e[16] = L) : L = e[16];
426
+ let D;
427
+ return e[17] !== f || e[18] !== P || e[19] !== w || e[20] !== y || e[21] !== L || e[22] !== h ? (D = /* @__PURE__ */ s(pn, { children: /* @__PURE__ */ C(hn, { actor: f, icon: P, timestamp: h, paddingX: w, children: [
428
+ y,
429
+ L
430
+ ] }) }), e[17] = f, e[18] = P, e[19] = w, e[20] = y, e[21] = L, e[22] = h, e[23] = D) : D = e[23], D;
431
+ }
432
+ const p = t.attention?.icon ?? "bell";
433
+ let m;
434
+ e[24] !== p || e[25] !== t.attention ? (m = t.attention ? /* @__PURE__ */ s(Je, { name: p }) : void 0, e[24] = p, e[25] = t.attention, e[26] = m) : m = e[26];
435
+ const g = t.attention ? "fg.warning" : void 0, S = t.attention ? "bg.warning" : void 0;
436
+ let b;
437
+ e[27] !== t.attention ? (b = t.attention ? /* @__PURE__ */ s(_o, { attention: t.attention }) : void 0, e[27] = t.attention, e[28] = b) : b = e[28];
438
+ const T = t.attention ? "attention" : "default", I = n === "compact" ? "xs" : "sm";
439
+ let R;
440
+ e[29] !== t.markdown ? (R = /* @__PURE__ */ s(Ln, { fallback: /* @__PURE__ */ s(M, { children: t.markdown }), children: /* @__PURE__ */ s(Eo, { defaultState: t.markdown, fullWidth: !0 }) }), e[29] = t.markdown, e[30] = R) : R = e[30];
441
+ let x;
442
+ e[31] !== t || e[32] !== i || e[33] !== c || e[34] !== n ? (x = /* @__PURE__ */ s(Ct, { item: t, size: n, onActionSelect: i, onRelatedResourceSelect: c }), e[31] = t, e[32] = i, e[33] = c, e[34] = n, e[35] = x) : x = e[35];
443
+ let $;
444
+ e[36] !== x || e[37] !== I || e[38] !== R ? ($ = /* @__PURE__ */ C(X, { gap: I, children: [
445
+ R,
446
+ x
447
+ ] }), e[36] = x, e[37] = I, e[38] = R, e[39] = $) : $ = e[39];
448
+ let A;
449
+ return e[40] !== f || e[41] !== n || e[42] !== $ || e[43] !== m || e[44] !== g || e[45] !== S || e[46] !== b || e[47] !== T || e[48] !== h ? (A = /* @__PURE__ */ s(un, { actor: f, icon: m, iconColor: g, iconBackground: S, timestamp: h, actions: b, tone: T, size: n, children: $ }), e[40] = f, e[41] = n, e[42] = $, e[43] = m, e[44] = g, e[45] = S, e[46] = b, e[47] = T, e[48] = h, e[49] = A) : A = e[49], A;
450
+ }, zo = (o) => o, Gr = (o) => {
451
+ const e = O(56);
452
+ let t, n, l, r, i, c, a, f, d, u, h, p, m, g, S, b, T;
453
+ e[0] !== o ? ({
454
+ items: n,
455
+ size: a,
456
+ isLoading: f,
457
+ error: t,
458
+ hasMore: u,
459
+ isLoadingMore: h,
460
+ emptyTitle: p,
461
+ emptyDescription: m,
462
+ errorTitle: g,
463
+ loadMoreLabel: S,
464
+ loadingLabel: b,
465
+ fallbackActorName: T,
466
+ formatTimestamp: d,
467
+ onActionSelect: l,
468
+ onLoadMore: r,
469
+ onRelatedResourceSelect: i,
470
+ ...c
471
+ } = o, e[0] = o, e[1] = t, e[2] = n, e[3] = l, e[4] = r, e[5] = i, e[6] = c, e[7] = a, e[8] = f, e[9] = d, e[10] = u, e[11] = h, e[12] = p, e[13] = m, e[14] = g, e[15] = S, e[16] = b, e[17] = T) : (t = e[1], n = e[2], l = e[3], r = e[4], i = e[5], c = e[6], a = e[7], f = e[8], d = e[9], u = e[10], h = e[11], p = e[12], m = e[13], g = e[14], S = e[15], b = e[16], T = e[17]);
472
+ const I = a === void 0 ? "comfortable" : a, R = f === void 0 ? !1 : f, x = u === void 0 ? !1 : u, $ = h === void 0 ? !1 : h, A = p === void 0 ? "No activity yet" : p, P = m === void 0 ? "Events and messages will appear here." : m, w = g === void 0 ? "Activity unavailable" : g, y = S === void 0 ? "Load more" : S, L = b === void 0 ? "Loading activity" : b, D = T === void 0 ? "System" : T, k = d === void 0 ? zo : d;
473
+ if (t) {
474
+ let E;
475
+ return e[18] !== t || e[19] !== w || e[20] !== c ? (E = /* @__PURE__ */ s(lt, { status: "error", colorPalette: "red", title: w, size: "sm", ...c, children: t }), e[18] = t, e[19] = w, e[20] = c, e[21] = E) : E = e[21], E;
476
+ }
477
+ if (R && n.length === 0) {
478
+ let E;
479
+ e[22] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (E = /* @__PURE__ */ s(pt, { size: "sm" }), e[22] = E) : E = e[22];
480
+ let H;
481
+ e[23] !== L ? (H = /* @__PURE__ */ s(M, { textStyle: "label/S/regular", children: L }), e[23] = L, e[24] = H) : H = e[24];
482
+ let W;
483
+ return e[25] !== c || e[26] !== H ? (W = /* @__PURE__ */ C(le, { role: "status", "aria-live": "polite", gap: "xs", color: "fg.muted", ...c, children: [
484
+ E,
485
+ H
486
+ ] }), e[25] = c, e[26] = H, e[27] = W) : W = e[27], W;
487
+ }
488
+ if (n.length === 0) {
489
+ let E;
490
+ return e[28] !== P || e[29] !== A || e[30] !== c ? (E = /* @__PURE__ */ s(ho, { title: A, description: P, ...c }), e[28] = P, e[29] = A, e[30] = c, e[31] = E) : E = e[31], E;
491
+ }
492
+ const N = I === "compact" ? "sm" : "md";
493
+ let _;
494
+ if (e[32] !== D || e[33] !== k || e[34] !== n || e[35] !== l || e[36] !== i || e[37] !== I) {
495
+ let E;
496
+ e[39] !== D || e[40] !== k || e[41] !== l || e[42] !== i || e[43] !== I ? (E = (H) => /* @__PURE__ */ s(Oo, { item: H, size: I, fallbackActorName: D, formatTimestamp: k, onActionSelect: l, onRelatedResourceSelect: i }, H.id), e[39] = D, e[40] = k, e[41] = l, e[42] = i, e[43] = I, e[44] = E) : E = e[44], _ = n.map(E), e[32] = D, e[33] = k, e[34] = n, e[35] = l, e[36] = i, e[37] = I, e[38] = _;
497
+ } else
498
+ _ = e[38];
499
+ let v;
500
+ e[45] !== x || e[46] !== $ || e[47] !== y || e[48] !== r || e[49] !== I ? (v = x ? /* @__PURE__ */ s(de, { type: "button", width: "full", size: I === "compact" ? "xs" : "sm", variant: "ghost", loading: $, onClick: r, children: y }) : null, e[45] = x, e[46] = $, e[47] = y, e[48] = r, e[49] = I, e[50] = v) : v = e[50];
501
+ let z;
502
+ return e[51] !== c || e[52] !== N || e[53] !== _ || e[54] !== v ? (z = /* @__PURE__ */ C(mn, { gap: N, ...c, children: [
503
+ _,
504
+ v
505
+ ] }), e[51] = c, e[52] = N, e[53] = _, e[54] = v, e[55] = z) : z = e[55], z;
506
+ }, jr = {
507
+ Root: $o,
508
+ Header: Lo,
509
+ Feed: mn,
510
+ Timeline: pn,
511
+ Event: hn,
512
+ Comment: un,
513
+ Reply: Po,
514
+ Composer: ko,
515
+ Avatar: ct
516
+ }, Ur = 48, No = (o) => {
285
517
  const e = typeof o.label == "string" ? o.label : "", t = typeof o.secondaryLabel == "string" ? o.secondaryLabel : "";
286
518
  return `${e} ${o.searchText ?? ""} ${t}`;
287
- }, sn = (o, e) => o.trimStart().startsWith(e), ho = (o, e = [], t) => e.find((r) => r.inputPrefix && sn(o, r.inputPrefix))?.id ?? t ?? e.find((r) => !r.inputPrefix)?.id ?? e[0]?.id, mo = (o, e = [], t) => {
288
- const n = e.find((r) => r.id === t && r.inputPrefix && sn(o, r.inputPrefix));
519
+ }, gn = (o, e) => o.trimStart().startsWith(e), Bo = (o, e = [], t) => e.find((l) => l.inputPrefix && gn(o, l.inputPrefix))?.id ?? t ?? e.find((l) => !l.inputPrefix)?.id ?? e[0]?.id, Wo = (o, e = [], t) => {
520
+ const n = e.find((l) => l.id === t && l.inputPrefix && gn(o, l.inputPrefix));
289
521
  return n?.inputPrefix ? o.trimStart().slice(n.inputPrefix.length).trim() : o.trim();
290
- }, po = (o, e) => {
522
+ }, Mo = (o, e) => {
291
523
  const t = {};
292
524
  return o.filter((n) => {
293
- const r = n.assetType;
294
- if (!r) return !0;
295
- const i = t[r] ?? 0;
296
- return i >= e ? !1 : (t[r] = i + 1, !0);
525
+ const l = n.assetType;
526
+ if (!l) return !0;
527
+ const r = t[l] ?? 0;
528
+ return r >= e ? !1 : (t[l] = r + 1, !0);
297
529
  });
298
- }, go = (o, e) => {
299
- const t = (e.getEffectiveQuery?.(e.query) ?? e.query.trim()).toLowerCase(), n = o.filter((r) => e.mode && r.mode !== e.mode ? !1 : t ? fo(r).toLowerCase().includes(t) : !0);
300
- return t || e.defaultAssetLimit === void 0 ? n : po(n, e.defaultAssetLimit);
301
- }, bo = 24, So = 40, xo = 384, vo = (o) => ({
530
+ }, Fo = (o, e) => {
531
+ const t = (e.getEffectiveQuery?.(e.query) ?? e.query.trim()).toLowerCase(), n = o.filter((l) => e.mode && l.mode !== e.mode ? !1 : t ? No(l).toLowerCase().includes(t) : !0);
532
+ return t || e.defaultAssetLimit === void 0 ? n : Mo(n, e.defaultAssetLimit);
533
+ }, Ho = 24, Vo = 40, Go = 384, jo = (o) => ({
302
534
  id: o.id,
303
535
  label: o.label,
304
536
  description: o.description ?? o.secondaryLabel,
305
537
  icon: o.icon,
306
- endContent: o.endContent ?? (o.shortcut || o.isSelected ? /* @__PURE__ */ y(ae, { gap: "2", children: [
538
+ endContent: o.endContent ?? (o.shortcut || o.isSelected ? /* @__PURE__ */ C(le, { gap: "2", children: [
307
539
  o.shortcut,
308
- o.isSelected ? /* @__PURE__ */ s(ce, { as: et, boxSize: "14px", color: "fg.muted" }) : null
540
+ o.isSelected ? /* @__PURE__ */ s(ce, { as: nt, boxSize: "14px", color: "fg.muted" }) : null
309
541
  ] }) : void 0),
310
542
  onActivate: o.onActivate
311
- }), yo = (o) => {
543
+ }), Uo = (o) => {
312
544
  const e = [];
313
545
  return o.forEach((t, n) => {
314
- const r = o[n - 1];
315
- t.group && t.group !== r?.group && e.push({
546
+ const l = o[n - 1];
547
+ t.group && t.group !== l?.group && e.push({
316
548
  type: "group",
317
549
  id: `group:${t.group}:${t.id}`,
318
550
  label: t.group
@@ -323,21 +555,21 @@ const it = (o) => {
323
555
  entryIndex: n
324
556
  });
325
557
  }), e;
326
- }, Co = (o, e) => o.findIndex((t) => t.type === "entry" && t.entryIndex === e), wo = (o) => {
558
+ }, Qo = (o, e) => o.findIndex((t) => t.type === "entry" && t.entryIndex === e), Xo = (o) => {
327
559
  const {
328
560
  entries: e,
329
561
  activeIndex: t,
330
562
  emptyLabel: n,
331
- onHover: r,
332
- scrollRef: i
333
- } = o, l = yo(e), c = Co(l, t), a = Fn({
334
- count: l.length,
335
- getScrollElement: () => i.current,
336
- estimateSize: (d) => l[d]?.type === "group" ? bo : So,
337
- getItemKey: (d) => l[d]?.id ?? d,
563
+ onHover: l,
564
+ scrollRef: r
565
+ } = o, i = Uo(e), c = Qo(i, t), a = io({
566
+ count: i.length,
567
+ getScrollElement: () => r.current,
568
+ estimateSize: (f) => i[f]?.type === "group" ? Ho : Vo,
569
+ getItemKey: (f) => i[f]?.id ?? f,
338
570
  initialRect: {
339
571
  width: 0,
340
- height: xo
572
+ height: Go
341
573
  },
342
574
  overscan: 6
343
575
  });
@@ -346,142 +578,142 @@ const it = (o) => {
346
578
  align: "auto",
347
579
  behavior: "auto"
348
580
  });
349
- }, [c, a]), e.length === 0 ? /* @__PURE__ */ s(F, { textStyle: "paragraph/S/regular", color: "fg.muted", px: "sm", py: "md", children: n }) : /* @__PURE__ */ s(G, { role: "listbox", position: "relative", width: "100%", style: {
581
+ }, [c, a]), e.length === 0 ? /* @__PURE__ */ s(M, { textStyle: "paragraph/S/regular", color: "fg.muted", px: "sm", py: "md", children: n }) : /* @__PURE__ */ s(j, { role: "listbox", position: "relative", width: "100%", style: {
350
582
  height: a.getTotalSize()
351
- }, children: a.getVirtualItems().map((d) => {
352
- const u = l[d.index];
353
- return u ? /* @__PURE__ */ s(G, { "data-index": d.index, ref: a.measureElement, position: "absolute", left: "0", width: "100%", style: {
354
- top: d.start
355
- }, children: u.type === "group" ? /* @__PURE__ */ s(F, { textStyle: "label/XS/medium", color: "fg.muted", px: "sm", pt: "xs", pb: "2xs", children: u.label }) : /* @__PURE__ */ s(Qe, { variant: "full-width", ...vo(u.entry), isSelected: u.entryIndex === t, tabIndex: -1, onPointerMove: () => r(u.entryIndex) }) }, d.key) : null;
583
+ }, children: a.getVirtualItems().map((f) => {
584
+ const d = i[f.index];
585
+ return d ? /* @__PURE__ */ s(j, { "data-index": f.index, ref: a.measureElement, position: "absolute", left: "0", width: "100%", style: {
586
+ top: f.start
587
+ }, children: d.type === "group" ? /* @__PURE__ */ s(M, { textStyle: "label/XS/medium", color: "fg.muted", px: "sm", pt: "xs", pb: "2xs", children: d.label }) : /* @__PURE__ */ s(Qe, { variant: "full-width", ...jo(d.entry), isSelected: d.entryIndex === t, tabIndex: -1, onPointerMove: () => l(d.entryIndex) }) }, f.key) : null;
356
588
  }) });
357
- }, vt = (o) => o != null, Io = (o, e) => o && e ? "space-between" : e ? "flex-end" : "flex-start", an = (o) => {
589
+ }, wt = (o) => o != null, qo = (o, e) => o && e ? "space-between" : e ? "flex-end" : "flex-start", bn = (o) => {
358
590
  const e = O(49), {
359
591
  children: t,
360
592
  searchValue: n,
361
- searchPlaceholder: r,
362
- searchAriaLabel: i,
363
- searchIcon: l,
593
+ searchPlaceholder: l,
594
+ searchAriaLabel: r,
595
+ searchIcon: i,
364
596
  searchInputRef: c,
365
597
  searchAutoFocus: a,
366
- showCloseButton: d,
367
- closeButtonLabel: u,
368
- bodyBefore: f,
598
+ showCloseButton: f,
599
+ closeButtonLabel: d,
600
+ bodyBefore: u,
369
601
  footerStart: h,
370
602
  footerEnd: p,
371
603
  scrollAreaProps: m,
372
604
  onSearchChange: g,
373
- onSearchKeyDown: x
374
- } = o, b = i === void 0 ? r : i, k = d === void 0 ? !1 : d, A = u === void 0 ? "Close" : u;
605
+ onSearchKeyDown: S
606
+ } = o, b = r === void 0 ? l : r, T = f === void 0 ? !1 : f, I = d === void 0 ? "Close" : d;
375
607
  let R;
376
- if (e[0] !== f || e[1] !== t || e[2] !== A || e[3] !== p || e[4] !== h || e[5] !== g || e[6] !== x || e[7] !== m || e[8] !== b || e[9] !== a || e[10] !== l || e[11] !== c || e[12] !== r || e[13] !== n || e[14] !== k) {
377
- const S = vt(h), $ = vt(p);
378
- let I;
379
- e[16] !== m ? (I = m ?? {}, e[16] = m, e[17] = I) : I = e[17];
380
- let P, w, C;
381
- e[18] !== I ? ({
608
+ if (e[0] !== u || e[1] !== t || e[2] !== I || e[3] !== p || e[4] !== h || e[5] !== g || e[6] !== S || e[7] !== m || e[8] !== b || e[9] !== a || e[10] !== i || e[11] !== c || e[12] !== l || e[13] !== n || e[14] !== T) {
609
+ const x = wt(h), $ = wt(p);
610
+ let A;
611
+ e[16] !== m ? (A = m ?? {}, e[16] = m, e[17] = A) : A = e[17];
612
+ let P, w, y;
613
+ e[18] !== A ? ({
382
614
  maxH: w,
383
- showHorizontalScrollbar: C,
615
+ showHorizontalScrollbar: y,
384
616
  ...P
385
- } = I, e[18] = I, e[19] = P, e[20] = w, e[21] = C) : (P = e[19], w = e[20], C = e[21]);
386
- const D = w === void 0 ? "24rem" : w, L = C === void 0 ? !1 : C;
387
- let T;
388
- e[22] !== g ? (T = (W) => g(W.target.value), e[22] = g, e[23] = T) : T = e[23];
389
- let z;
390
- e[24] !== x || e[25] !== b || e[26] !== a || e[27] !== c || e[28] !== r || e[29] !== n || e[30] !== T ? (z = /* @__PURE__ */ s(Vt, { ref: c, value: n, placeholder: r, "aria-label": b, autoComplete: "off", autoFocus: a, mx: "xs", h: "3rem", variant: "borderless", onChange: T, onKeyDown: x }), e[24] = x, e[25] = b, e[26] = a, e[27] = c, e[28] = r, e[29] = n, e[30] = T, e[31] = z) : z = e[31];
391
- let E;
392
- e[32] !== l || e[33] !== z ? (E = /* @__PURE__ */ s(Gt, { startElement: l, width: "full", children: z }), e[32] = l, e[33] = z, e[34] = E) : E = e[34];
393
- let v;
394
- e[35] !== A || e[36] !== k ? (v = k ? /* @__PURE__ */ s(Z.CloseTrigger, { asChild: !0, children: /* @__PURE__ */ s(Mt, { "aria-label": A, size: "sm", mr: "2" }) }) : null, e[35] = A, e[36] = k, e[37] = v) : v = e[37];
617
+ } = A, e[18] = A, e[19] = P, e[20] = w, e[21] = y) : (P = e[19], w = e[20], y = e[21]);
618
+ const L = w === void 0 ? "24rem" : w, D = y === void 0 ? !1 : y;
619
+ let k;
620
+ e[22] !== g ? (k = (W) => g(W.target.value), e[22] = g, e[23] = k) : k = e[23];
621
+ let N;
622
+ e[24] !== S || e[25] !== b || e[26] !== a || e[27] !== c || e[28] !== l || e[29] !== n || e[30] !== k ? (N = /* @__PURE__ */ s(Qt, { ref: c, value: n, placeholder: l, "aria-label": b, autoComplete: "off", autoFocus: a, mx: "xs", h: "3rem", variant: "borderless", onChange: k, onKeyDown: S }), e[24] = S, e[25] = b, e[26] = a, e[27] = c, e[28] = l, e[29] = n, e[30] = k, e[31] = N) : N = e[31];
395
623
  let _;
396
- e[38] !== v || e[39] !== E ? (_ = /* @__PURE__ */ y(Z.Header, { px: "0", py: "0", borderBottomWidth: "1px", borderBottomColor: "border.subtle", children: [
397
- E,
398
- v
399
- ] }), e[38] = v, e[39] = E, e[40] = _) : _ = e[40];
400
- let B;
401
- e[41] !== t || e[42] !== D || e[43] !== P || e[44] !== L ? (B = /* @__PURE__ */ s(tt, { maxH: D, showHorizontalScrollbar: L, ...P, children: t }), e[41] = t, e[42] = D, e[43] = P, e[44] = L, e[45] = B) : B = e[45];
402
- let K;
403
- e[46] !== f || e[47] !== B ? (K = /* @__PURE__ */ y(Z.Body, { p: "0", children: [
404
- f,
405
- B
406
- ] }), e[46] = f, e[47] = B, e[48] = K) : K = e[48], R = /* @__PURE__ */ y(Me, { children: [
624
+ e[32] !== i || e[33] !== N ? (_ = /* @__PURE__ */ s(Xt, { startElement: i, width: "full", children: N }), e[32] = i, e[33] = N, e[34] = _) : _ = e[34];
625
+ let v;
626
+ e[35] !== I || e[36] !== T ? (v = T ? /* @__PURE__ */ s(Z.CloseTrigger, { asChild: !0, children: /* @__PURE__ */ s(Ut, { "aria-label": I, size: "sm", mr: "2" }) }) : null, e[35] = I, e[36] = T, e[37] = v) : v = e[37];
627
+ let z;
628
+ e[38] !== v || e[39] !== _ ? (z = /* @__PURE__ */ C(Z.Header, { px: "0", py: "0", borderBottomWidth: "1px", borderBottomColor: "border.subtle", children: [
407
629
  _,
408
- K,
409
- S || $ ? /* @__PURE__ */ y(Z.Footer, { justifyContent: Io(S, $), px: "sm", py: "xs", borderTopWidth: "1px", borderTopColor: "border.subtle", children: [
410
- S ? /* @__PURE__ */ s(G, { minW: "0", children: h }) : null,
411
- $ ? /* @__PURE__ */ s(G, { flexShrink: 0, children: p }) : null
630
+ v
631
+ ] }), e[38] = v, e[39] = _, e[40] = z) : z = e[40];
632
+ let E;
633
+ e[41] !== t || e[42] !== L || e[43] !== P || e[44] !== D ? (E = /* @__PURE__ */ s(ot, { maxH: L, showHorizontalScrollbar: D, ...P, children: t }), e[41] = t, e[42] = L, e[43] = P, e[44] = D, e[45] = E) : E = e[45];
634
+ let H;
635
+ e[46] !== u || e[47] !== E ? (H = /* @__PURE__ */ C(Z.Body, { p: "0", children: [
636
+ u,
637
+ E
638
+ ] }), e[46] = u, e[47] = E, e[48] = H) : H = e[48], R = /* @__PURE__ */ C(He, { children: [
639
+ z,
640
+ H,
641
+ x || $ ? /* @__PURE__ */ C(Z.Footer, { justifyContent: qo(x, $), px: "sm", py: "xs", borderTopWidth: "1px", borderTopColor: "border.subtle", children: [
642
+ x ? /* @__PURE__ */ s(j, { minW: "0", children: h }) : null,
643
+ $ ? /* @__PURE__ */ s(j, { flexShrink: 0, children: p }) : null
412
644
  ] }) : null
413
- ] }), e[0] = f, e[1] = t, e[2] = A, e[3] = p, e[4] = h, e[5] = g, e[6] = x, e[7] = m, e[8] = b, e[9] = a, e[10] = l, e[11] = c, e[12] = r, e[13] = n, e[14] = k, e[15] = R;
645
+ ] }), e[0] = u, e[1] = t, e[2] = I, e[3] = p, e[4] = h, e[5] = g, e[6] = S, e[7] = m, e[8] = b, e[9] = a, e[10] = i, e[11] = c, e[12] = l, e[13] = n, e[14] = T, e[15] = R;
414
646
  } else
415
647
  R = e[15];
416
648
  return R;
417
- }, yt = (o, e, t) => typeof o == "function" ? o(e) : o ?? t, vi = (o) => {
649
+ }, It = (o, e, t) => typeof o == "function" ? o(e) : o ?? t, Qr = (o) => {
418
650
  const e = O(71), {
419
651
  open: t,
420
652
  entries: n,
421
- initialQuery: r,
422
- initialActiveIndex: i,
423
- mode: l,
653
+ initialQuery: l,
654
+ initialActiveIndex: r,
655
+ mode: i,
424
656
  modes: c,
425
657
  resetKey: a,
426
- inputIcon: d,
427
- placeholder: u,
428
- emptyLabel: f,
658
+ inputIcon: f,
659
+ placeholder: d,
660
+ emptyLabel: u,
429
661
  footerStart: h,
430
662
  footerEnd: p,
431
663
  filterEntries: m,
432
664
  onActiveEntryChange: g,
433
- onQueryChange: x,
665
+ onQueryChange: S,
434
666
  onClose: b,
435
- onEscape: k
436
- } = o, A = r === void 0 ? "" : r, R = i === void 0 ? 0 : i, S = a === void 0 ? "default" : a, $ = f === void 0 ? "No results." : f, [I, P] = fe(A), [w, C] = fe(R), D = He(null), L = He(null);
437
- let T;
438
- e[0] !== S ? (T = {
667
+ onEscape: T
668
+ } = o, I = l === void 0 ? "" : l, R = r === void 0 ? 0 : r, x = a === void 0 ? "default" : a, $ = u === void 0 ? "No results." : u, [A, P] = ue(I), [w, y] = ue(R), L = Me(null), D = Me(null);
669
+ let k;
670
+ e[0] !== x ? (k = {
439
671
  open: !1,
440
- resetKey: S
441
- }, e[0] = S, e[1] = T) : T = e[1];
442
- const z = He(T);
443
- let E, v, _, B, K;
444
- if (e[2] !== w || e[3] !== n || e[4] !== m || e[5] !== d || e[6] !== l || e[7] !== c || e[8] !== u || e[9] !== I) {
445
- const M = l ?? ho(I, c);
446
- v = m ? m(n, I, M) : go(n, {
447
- query: I,
448
- mode: M,
449
- getEffectiveQuery: (be) => mo(be, c, M)
450
- }), E = v[w] ?? null, B = {
451
- query: I,
452
- mode: M,
672
+ resetKey: x
673
+ }, e[0] = x, e[1] = k) : k = e[1];
674
+ const N = Me(k);
675
+ let _, v, z, E, H;
676
+ if (e[2] !== w || e[3] !== n || e[4] !== m || e[5] !== f || e[6] !== i || e[7] !== c || e[8] !== d || e[9] !== A) {
677
+ const V = i ?? Bo(A, c);
678
+ v = m ? m(n, A, V) : Fo(n, {
679
+ query: A,
680
+ mode: V,
681
+ getEffectiveQuery: (be) => Wo(be, c, V)
682
+ }), _ = v[w] ?? null, E = {
683
+ query: A,
684
+ mode: V,
453
685
  activeIndex: w,
454
686
  entries: v
455
- }, _ = yt(d, B, null), K = yt(u, B, "Search"), e[2] = w, e[3] = n, e[4] = m, e[5] = d, e[6] = l, e[7] = c, e[8] = u, e[9] = I, e[10] = E, e[11] = v, e[12] = _, e[13] = B, e[14] = K;
687
+ }, z = It(f, E, null), H = It(d, E, "Search"), e[2] = w, e[3] = n, e[4] = m, e[5] = f, e[6] = i, e[7] = c, e[8] = d, e[9] = A, e[10] = _, e[11] = v, e[12] = z, e[13] = E, e[14] = H;
456
688
  } else
457
- E = e[10], v = e[11], _ = e[12], B = e[13], K = e[14];
458
- const W = K;
459
- let H;
460
- e[15] !== x ? (H = (M) => {
461
- P(M), x?.(M);
462
- }, e[15] = x, e[16] = H) : H = e[16];
463
- const N = H;
689
+ _ = e[10], v = e[11], z = e[12], E = e[13], H = e[14];
690
+ const W = H;
691
+ let F;
692
+ e[15] !== S ? (F = (V) => {
693
+ P(V), S?.(V);
694
+ }, e[15] = S, e[16] = F) : F = e[16];
695
+ const B = F;
464
696
  let q;
465
- e[17] !== E ? (q = () => {
466
- E?.onActivate();
467
- }, e[17] = E, e[18] = q) : q = e[18];
468
- const j = q;
469
- let V;
470
- e[19] !== b ? (V = () => {
697
+ e[17] !== _ ? (q = () => {
698
+ _?.onActivate();
699
+ }, e[17] = _, e[18] = q) : q = e[18];
700
+ const U = q;
701
+ let G;
702
+ e[19] !== b ? (G = () => {
471
703
  b();
472
- }, e[19] = b, e[20] = V) : V = e[20];
473
- const U = V;
474
- let X, se;
475
- e[21] !== R || e[22] !== A || e[23] !== t || e[24] !== S ? (se = () => {
476
- const M = z.current;
477
- if (z.current = {
704
+ }, e[19] = b, e[20] = G) : G = e[20];
705
+ const Q = G;
706
+ let K, ae;
707
+ e[21] !== R || e[22] !== I || e[23] !== t || e[24] !== x ? (ae = () => {
708
+ const V = N.current;
709
+ if (N.current = {
478
710
  open: t,
479
- resetKey: S
480
- }, !t || !(!M.open || M.resetKey !== S))
711
+ resetKey: x
712
+ }, !t || !(!V.open || V.resetKey !== x))
481
713
  return;
482
- P(A), C(R);
714
+ P(I), y(R);
483
715
  const Ce = setTimeout(() => {
484
- const we = D.current;
716
+ const we = L.current;
485
717
  if (!we)
486
718
  return;
487
719
  we.focus();
@@ -489,84 +721,84 @@ const it = (o) => {
489
721
  we.setSelectionRange(Se, Se);
490
722
  }, 0);
491
723
  return () => clearTimeout(Ce);
492
- }, X = [R, A, t, S], e[21] = R, e[22] = A, e[23] = t, e[24] = S, e[25] = X, e[26] = se) : (X = e[25], se = e[26]), me(se, X);
724
+ }, K = [R, I, t, x], e[21] = R, e[22] = I, e[23] = t, e[24] = x, e[25] = K, e[26] = ae) : (K = e[25], ae = e[26]), me(ae, K);
493
725
  let J, ee;
494
726
  e[27] !== v.length ? (J = () => {
495
- C((M) => Math.min(M, Math.max(v.length - 1, 0)));
727
+ y((V) => Math.min(V, Math.max(v.length - 1, 0)));
496
728
  }, ee = [v.length], e[27] = v.length, e[28] = J, e[29] = ee) : (J = e[28], ee = e[29]), me(J, ee);
497
- let re, te;
498
- e[30] !== E || e[31] !== w || e[32] !== g ? (re = () => {
499
- g?.(E, w);
500
- }, te = [E, w, g], e[30] = E, e[31] = w, e[32] = g, e[33] = re, e[34] = te) : (re = e[33], te = e[34]), me(re, te);
501
- let le;
502
- e[35] !== E || e[36] !== U || e[37] !== v.length || e[38] !== k || e[39] !== I || e[40] !== j || e[41] !== N || e[42] !== B ? (le = () => {
503
- if (!k?.({
504
- ...B,
505
- activeEntry: E,
729
+ let ie, te;
730
+ e[30] !== _ || e[31] !== w || e[32] !== g ? (ie = () => {
731
+ g?.(_, w);
732
+ }, te = [_, w, g], e[30] = _, e[31] = w, e[32] = g, e[33] = ie, e[34] = te) : (ie = e[33], te = e[34]), me(ie, te);
733
+ let re;
734
+ e[35] !== _ || e[36] !== Q || e[37] !== v.length || e[38] !== T || e[39] !== A || e[40] !== U || e[41] !== B || e[42] !== E ? (re = () => {
735
+ if (!T?.({
736
+ ...E,
737
+ activeEntry: _,
506
738
  entryCount: v.length,
507
- setQuery: N,
508
- setActiveIndex: C,
509
- runActiveEntry: j,
510
- closePalette: U
739
+ setQuery: B,
740
+ setActiveIndex: y,
741
+ runActiveEntry: U,
742
+ closePalette: Q
511
743
  })) {
512
- if (I.length > 0) {
513
- N(""), C(0);
744
+ if (A.length > 0) {
745
+ B(""), y(0);
514
746
  return;
515
747
  }
516
- U();
748
+ Q();
517
749
  }
518
- }, e[35] = E, e[36] = U, e[37] = v.length, e[38] = k, e[39] = I, e[40] = j, e[41] = N, e[42] = B, e[43] = le) : le = e[43];
519
- const ne = le;
750
+ }, e[35] = _, e[36] = Q, e[37] = v.length, e[38] = T, e[39] = A, e[40] = U, e[41] = B, e[42] = E, e[43] = re) : re = e[43];
751
+ const ne = re;
520
752
  let Y;
521
- e[44] !== v.length || e[45] !== ne || e[46] !== j ? (Y = (M) => {
522
- if (M.key === "ArrowDown") {
523
- M.preventDefault(), C((be) => Math.min(be + 1, Math.max(v.length - 1, 0)));
753
+ e[44] !== v.length || e[45] !== ne || e[46] !== U ? (Y = (V) => {
754
+ if (V.key === "ArrowDown") {
755
+ V.preventDefault(), y((be) => Math.min(be + 1, Math.max(v.length - 1, 0)));
524
756
  return;
525
757
  }
526
- if (M.key === "ArrowUp") {
527
- M.preventDefault(), C(To);
758
+ if (V.key === "ArrowUp") {
759
+ V.preventDefault(), y(Ko);
528
760
  return;
529
761
  }
530
- if (M.key === "Enter") {
531
- M.preventDefault(), j();
762
+ if (V.key === "Enter") {
763
+ V.preventDefault(), U();
532
764
  return;
533
765
  }
534
- M.key === "Escape" && (M.preventDefault(), M.stopPropagation(), ne());
535
- }, e[44] = v.length, e[45] = ne, e[46] = j, e[47] = Y) : Y = e[47];
536
- const ie = Y;
766
+ V.key === "Escape" && (V.preventDefault(), V.stopPropagation(), ne());
767
+ }, e[44] = v.length, e[45] = ne, e[46] = U, e[47] = Y) : Y = e[47];
768
+ const se = Y;
537
769
  let oe;
538
- e[48] !== U ? (oe = (M) => !M.open && U(), e[48] = U, e[49] = oe) : oe = e[49];
770
+ e[48] !== Q ? (oe = (V) => !V.open && Q(), e[48] = Q, e[49] = oe) : oe = e[49];
539
771
  let he;
540
772
  e[50] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (he = /* @__PURE__ */ s(Z.Backdrop, {}), e[50] = he) : he = e[50];
541
- let Ae;
542
- e[51] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Ae = {
773
+ let Pe;
774
+ e[51] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Pe = {
543
775
  maxH: "24rem",
544
776
  showHorizontalScrollbar: !1,
545
- viewportRef: L,
777
+ viewportRef: D,
546
778
  viewportProps: {
547
779
  style: {
548
780
  overflowAnchor: "none"
549
781
  }
550
782
  }
551
- }, e[51] = Ae) : Ae = e[51];
783
+ }, e[51] = Pe) : Pe = e[51];
552
784
  let xe;
553
- e[52] !== N ? (xe = (M) => {
554
- N(M), C(0);
555
- }, e[52] = N, e[53] = xe) : xe = e[53];
785
+ e[52] !== B ? (xe = (V) => {
786
+ B(V), y(0);
787
+ }, e[52] = B, e[53] = xe) : xe = e[53];
556
788
  let ve;
557
- e[54] !== w || e[55] !== $ || e[56] !== v ? (ve = /* @__PURE__ */ s(wo, { entries: v, activeIndex: w, emptyLabel: $, onHover: C, scrollRef: L }), e[54] = w, e[55] = $, e[56] = v, e[57] = ve) : ve = e[57];
789
+ e[54] !== w || e[55] !== $ || e[56] !== v ? (ve = /* @__PURE__ */ s(Xo, { entries: v, activeIndex: w, emptyLabel: $, onHover: y, scrollRef: D }), e[54] = w, e[55] = $, e[56] = v, e[57] = ve) : ve = e[57];
558
790
  let ye;
559
- e[58] !== p || e[59] !== h || e[60] !== ie || e[61] !== I || e[62] !== _ || e[63] !== W || e[64] !== xe || e[65] !== ve ? (ye = /* @__PURE__ */ s(Z.Positioner, { alignItems: "center", justifyContent: "center", p: "md", children: /* @__PURE__ */ s(Z.Content, { maxW: "44rem", w: "full", p: "0", overflow: "hidden", borderWidth: "1px", borderColor: "border.subtle", children: /* @__PURE__ */ s(an, { searchValue: I, searchPlaceholder: W, searchIcon: _, searchInputRef: D, showCloseButton: !0, footerStart: h, footerEnd: p, scrollAreaProps: Ae, onSearchChange: xe, onSearchKeyDown: ie, children: ve }) }) }), e[58] = p, e[59] = h, e[60] = ie, e[61] = I, e[62] = _, e[63] = W, e[64] = xe, e[65] = ve, e[66] = ye) : ye = e[66];
560
- let Re;
561
- return e[67] !== t || e[68] !== oe || e[69] !== ye ? (Re = /* @__PURE__ */ y(Z.Root, { open: t, onOpenChange: oe, children: [
791
+ e[58] !== p || e[59] !== h || e[60] !== se || e[61] !== A || e[62] !== z || e[63] !== W || e[64] !== xe || e[65] !== ve ? (ye = /* @__PURE__ */ s(Z.Positioner, { alignItems: "center", justifyContent: "center", p: "md", children: /* @__PURE__ */ s(Z.Content, { maxW: "44rem", w: "full", p: "0", overflow: "hidden", borderWidth: "1px", borderColor: "border.subtle", children: /* @__PURE__ */ s(bn, { searchValue: A, searchPlaceholder: W, searchIcon: z, searchInputRef: L, showCloseButton: !0, footerStart: h, footerEnd: p, scrollAreaProps: Pe, onSearchChange: xe, onSearchKeyDown: se, children: ve }) }) }), e[58] = p, e[59] = h, e[60] = se, e[61] = A, e[62] = z, e[63] = W, e[64] = xe, e[65] = ve, e[66] = ye) : ye = e[66];
792
+ let ke;
793
+ return e[67] !== t || e[68] !== oe || e[69] !== ye ? (ke = /* @__PURE__ */ C(Z.Root, { open: t, onOpenChange: oe, children: [
562
794
  he,
563
795
  ye
564
- ] }), e[67] = t, e[68] = oe, e[69] = ye, e[70] = Re) : Re = e[70], Re;
796
+ ] }), e[67] = t, e[68] = oe, e[69] = ye, e[70] = ke) : ke = e[70], ke;
565
797
  };
566
- function To(o) {
798
+ function Ko(o) {
567
799
  return Math.max(o - 1, 0);
568
800
  }
569
- const Po = {
801
+ const Yo = {
570
802
  alt: {
571
803
  label: "Alt"
572
804
  },
@@ -582,10 +814,10 @@ const Po = {
582
814
  shift: {
583
815
  label: "Shift"
584
816
  }
585
- }, Ao = {
817
+ }, Zo = {
586
818
  alt: {
587
819
  label: "Option",
588
- Icon: xt
820
+ Icon: yt
589
821
  },
590
822
  cmd: {
591
823
  label: "Command",
@@ -605,111 +837,111 @@ const Po = {
605
837
  },
606
838
  option: {
607
839
  label: "Option",
608
- Icon: xt
840
+ Icon: yt
609
841
  },
610
842
  shift: {
611
843
  label: "Shift"
612
844
  }
613
- }, Ro = {
845
+ }, Jo = {
614
846
  arrowleft: {
615
847
  label: "Arrow Left",
616
- Icon: kn
848
+ Icon: Xn
617
849
  },
618
850
  arrowright: {
619
851
  label: "Arrow Right",
620
- Icon: Rn
852
+ Icon: Qn
621
853
  }
622
- }, ko = () => {
854
+ }, el = () => {
623
855
  if (typeof navigator > "u") return "linux";
624
856
  const o = navigator.platform?.toLowerCase() ?? "";
625
857
  return o.includes("mac") ? "mac" : o.includes("win") ? "win" : "linux";
626
- }, $o = (o, e = ko()) => {
627
- const t = o.toLowerCase(), n = e === "mac" ? Ao : Po;
628
- return Ro[t] ?? n[t] ?? {
858
+ }, tl = (o, e = el()) => {
859
+ const t = o.toLowerCase(), n = e === "mac" ? Zo : Yo;
860
+ return Jo[t] ?? n[t] ?? {
629
861
  label: o
630
862
  };
631
- }, Ct = (o) => o.split("+").map((e) => e.trim()).filter(Boolean), Eo = (o) => (Array.isArray(o) ? o.map(Ct) : [Ct(o)]).map((t) => t.map((n) => $o(n))), yi = (o) => {
863
+ }, Tt = (o) => o.split("+").map((e) => e.trim()).filter(Boolean), nl = (o) => (Array.isArray(o) ? o.map(Tt) : [Tt(o)]).map((t) => t.map((n) => tl(n))), Xr = (o) => {
632
864
  const e = O(4), {
633
865
  binding: t
634
866
  } = o;
635
867
  let n;
636
868
  if (e[0] !== t) {
637
- const i = Eo(t);
638
- n = i.map((l, c) => /* @__PURE__ */ y(St, { children: [
639
- l.map((a, d) => /* @__PURE__ */ y(St, { children: [
640
- /* @__PURE__ */ s(gn, { fontSize: "xs", borderRadius: "0", display: "inline-flex", alignItems: "center", justifyContent: "center", "aria-label": a.label, children: a.Icon ? /* @__PURE__ */ s(a.Icon, { size: 12, "aria-hidden": "true" }) : a.label }),
641
- d < l.length - 1 ? " " : null
642
- ] }, `${a.label}-${d}`)),
643
- c < i.length - 1 ? " then " : null
644
- ] }, `${l.map(Do).join("+")}-${c}`)), e[0] = t, e[1] = n;
869
+ const r = nl(t);
870
+ n = r.map((i, c) => /* @__PURE__ */ C(vt, { children: [
871
+ i.map((a, f) => /* @__PURE__ */ C(vt, { children: [
872
+ /* @__PURE__ */ s(Tn, { fontSize: "xs", borderRadius: "0", display: "inline-flex", alignItems: "center", justifyContent: "center", "aria-label": a.label, children: a.Icon ? /* @__PURE__ */ s(a.Icon, { size: 12, "aria-hidden": "true" }) : a.label }),
873
+ f < i.length - 1 ? " " : null
874
+ ] }, `${a.label}-${f}`)),
875
+ c < r.length - 1 ? " then " : null
876
+ ] }, `${i.map(ol).join("+")}-${c}`)), e[0] = t, e[1] = n;
645
877
  } else
646
878
  n = e[1];
647
- let r;
648
- return e[2] !== n ? (r = /* @__PURE__ */ s(Me, { children: n }), e[2] = n, e[3] = r) : r = e[3], r;
879
+ let l;
880
+ return e[2] !== n ? (l = /* @__PURE__ */ s(He, { children: n }), e[2] = n, e[3] = l) : l = e[3], l;
649
881
  };
650
- function Do(o) {
882
+ function ol(o) {
651
883
  return o.label;
652
884
  }
653
- function Ci(o) {
885
+ function qr(o) {
654
886
  const e = O(14);
655
- let t, n, r, i, l, c;
887
+ let t, n, l, r, i, c;
656
888
  e[0] !== o ? ({
657
889
  children: t,
658
- h: r,
659
- px: i,
660
- py: l,
890
+ h: l,
891
+ px: r,
892
+ py: i,
661
893
  borderBottomWidth: c,
662
894
  ...n
663
- } = o, e[0] = o, e[1] = t, e[2] = n, e[3] = r, e[4] = i, e[5] = l, e[6] = c) : (t = e[1], n = e[2], r = e[3], i = e[4], l = e[5], c = e[6]);
664
- const a = r === void 0 ? "41px" : r, d = i === void 0 ? "xs" : i, u = l === void 0 ? "xs" : l, f = c === void 0 ? "1px" : c;
895
+ } = o, e[0] = o, e[1] = t, e[2] = n, e[3] = l, e[4] = r, e[5] = i, e[6] = c) : (t = e[1], n = e[2], l = e[3], r = e[4], i = e[5], c = e[6]);
896
+ const a = l === void 0 ? "41px" : l, f = r === void 0 ? "xs" : r, d = i === void 0 ? "xs" : i, u = c === void 0 ? "1px" : c;
665
897
  let h;
666
- return e[7] !== f || e[8] !== t || e[9] !== a || e[10] !== d || e[11] !== u || e[12] !== n ? (h = /* @__PURE__ */ s(ae, { ...n, h: a, justify: "space-between", align: "center", borderBottomWidth: f, borderColor: "border.subtle", px: d, py: u, children: t }), e[7] = f, e[8] = t, e[9] = a, e[10] = d, e[11] = u, e[12] = n, e[13] = h) : h = e[13], h;
898
+ return e[7] !== u || e[8] !== t || e[9] !== a || e[10] !== f || e[11] !== d || e[12] !== n ? (h = /* @__PURE__ */ s(le, { ...n, h: a, justify: "space-between", align: "center", borderBottomWidth: u, borderColor: "border.subtle", px: f, py: d, children: t }), e[7] = u, e[8] = t, e[9] = a, e[10] = f, e[11] = d, e[12] = n, e[13] = h) : h = e[13], h;
667
899
  }
668
- const wi = (o) => {
900
+ const Kr = (o) => {
669
901
  const e = O(17), {
670
902
  children: t,
671
903
  title: n,
672
- defaultOpen: r,
673
- action: i
674
- } = o, l = r === void 0 ? !0 : r;
904
+ defaultOpen: l,
905
+ action: r
906
+ } = o, i = l === void 0 ? !0 : l;
675
907
  let c;
676
908
  e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (c = {
677
909
  background: "bg.hover"
678
910
  }, e[0] = c) : c = e[0];
679
911
  let a;
680
- e[1] !== n ? (a = n && /* @__PURE__ */ s(F, { fontWeight: "600", textStyle: "label/S/medium", children: n }), e[1] = n, e[2] = a) : a = e[2];
681
- let d;
682
- e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = /* @__PURE__ */ s(Ke.Indicator, { transition: "transform 0.2s", _open: {
912
+ e[1] !== n ? (a = n && /* @__PURE__ */ s(M, { fontWeight: "600", textStyle: "label/S/medium", children: n }), e[1] = n, e[2] = a) : a = e[2];
913
+ let f;
914
+ e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (f = /* @__PURE__ */ s(qe.Indicator, { transition: "transform 0.2s", _open: {
683
915
  transform: "rotate(90deg)"
684
- }, children: /* @__PURE__ */ s($n, { size: 16 }) }), e[3] = d) : d = e[3];
685
- let u;
686
- e[4] !== a ? (u = /* @__PURE__ */ y(Ke.Trigger, { _hover: c, padding: "sm", height: "2rem", display: "flex", width: "full", gap: "2", alignItems: "center", cursor: "pointer", justifyContent: "space-between", children: [
916
+ }, children: /* @__PURE__ */ s(qn, { size: 16 }) }), e[3] = f) : f = e[3];
917
+ let d;
918
+ e[4] !== a ? (d = /* @__PURE__ */ C(qe.Trigger, { _hover: c, padding: "sm", height: "2rem", display: "flex", width: "full", gap: "2", alignItems: "center", cursor: "pointer", justifyContent: "space-between", children: [
687
919
  a,
688
- d
689
- ] }), e[4] = a, e[5] = u) : u = e[5];
690
- let f;
691
- e[6] !== i ? (f = i && /* @__PURE__ */ s(G, { marginLeft: "auto", onClick: Lo, children: i }), e[6] = i, e[7] = f) : f = e[7];
692
- let h;
693
- e[8] !== u || e[9] !== f ? (h = /* @__PURE__ */ y(de, { children: [
694
- u,
695
920
  f
696
- ] }), e[8] = u, e[9] = f, e[10] = h) : h = e[10];
921
+ ] }), e[4] = a, e[5] = d) : d = e[5];
922
+ let u;
923
+ e[6] !== r ? (u = r && /* @__PURE__ */ s(j, { marginLeft: "auto", onClick: ll, children: r }), e[6] = r, e[7] = u) : u = e[7];
924
+ let h;
925
+ e[8] !== d || e[9] !== u ? (h = /* @__PURE__ */ C(fe, { children: [
926
+ d,
927
+ u
928
+ ] }), e[8] = d, e[9] = u, e[10] = h) : h = e[10];
697
929
  let p;
698
- e[11] !== t ? (p = /* @__PURE__ */ s(Ke.Content, { children: t }), e[11] = t, e[12] = p) : p = e[12];
930
+ e[11] !== t ? (p = /* @__PURE__ */ s(qe.Content, { children: t }), e[11] = t, e[12] = p) : p = e[12];
699
931
  let m;
700
- return e[13] !== l || e[14] !== h || e[15] !== p ? (m = /* @__PURE__ */ y(Ke.Root, { defaultOpen: l, width: "full", children: [
932
+ return e[13] !== i || e[14] !== h || e[15] !== p ? (m = /* @__PURE__ */ C(qe.Root, { defaultOpen: i, width: "full", children: [
701
933
  h,
702
934
  p
703
- ] }), e[13] = l, e[14] = h, e[15] = p, e[16] = m) : m = e[16], m;
935
+ ] }), e[13] = i, e[14] = h, e[15] = p, e[16] = m) : m = e[16], m;
704
936
  };
705
- function Lo(o) {
937
+ function ll(o) {
706
938
  return o.stopPropagation();
707
939
  }
708
- const Oo = "2.5rem", wt = "2xs", Ii = "sm", cn = (o) => o === "urgent" ? "red" : o === "high" ? "orange" : o === "low" ? "gray" : "blue", _o = (o) => o !== "normal", zo = (o) => [o.title, o.body, o.kind, o.priority, o.status, o.sourceLabel, o.targetLabel, o.searchText, ...(o.actions ?? []).map((e) => e.label)].filter(Boolean).join(" ").toLowerCase(), No = (o, e) => {
940
+ const il = "2.5rem", At = "2xs", Yr = "sm", Sn = (o) => o === "urgent" ? "red" : o === "high" ? "orange" : o === "low" ? "gray" : "blue", rl = (o) => o !== "normal", sl = (o) => [o.title, o.body, o.kind, o.priority, o.status, o.sourceLabel, o.targetLabel, o.searchText, ...(o.actions ?? []).map((e) => e.label)].filter(Boolean).join(" ").toLowerCase(), al = (o, e) => {
709
941
  const t = e.trim().toLowerCase();
710
- return t ? o.filter((n) => zo(n).includes(t)) : o;
711
- }, dn = (o) => {
712
- const e = o.filter((r) => r.kind === "blocked"), t = o.filter((r) => r.kind !== "blocked" && (r.priority === "urgent" || r.priority === "high")), n = o.filter((r) => r.kind !== "blocked" && (r.priority === "normal" || r.priority === "low"));
942
+ return t ? o.filter((n) => sl(n).includes(t)) : o;
943
+ }, xn = (o) => {
944
+ const e = o.filter((l) => l.kind === "blocked"), t = o.filter((l) => l.kind !== "blocked" && (l.priority === "urgent" || l.priority === "high")), n = o.filter((l) => l.kind !== "blocked" && (l.priority === "normal" || l.priority === "low"));
713
945
  return [{
714
946
  id: "needs-input",
715
947
  label: "Needs input",
@@ -722,249 +954,249 @@ const Oo = "2.5rem", wt = "2xs", Ii = "sm", cn = (o) => o === "urgent" ? "red" :
722
954
  id: "other",
723
955
  label: "Other",
724
956
  items: n
725
- }].filter((r) => r.items.length > 0);
726
- }, Bo = (o) => dn(o).flatMap((e) => e.items), Wo = (o) => [o.body, o.targetLabel, o.sourceLabel, o.timeLabel].filter(Boolean).join(" · "), Ho = (o, e) => {
957
+ }].filter((l) => l.items.length > 0);
958
+ }, cl = (o) => xn(o).flatMap((e) => e.items), dl = (o) => [o.body, o.targetLabel, o.sourceLabel, o.timeLabel].filter(Boolean).join(" · "), fl = (o, e) => {
727
959
  const t = [];
728
960
  return e.onDismiss && t.push({
729
961
  id: "dismiss",
730
962
  label: "Dismiss",
731
- icon: /* @__PURE__ */ s(Qt, { size: 14 }),
963
+ icon: /* @__PURE__ */ s(Yt, { size: 14 }),
732
964
  tooltip: "Dismiss",
733
965
  onAction: () => e.onDismiss?.(o)
734
966
  }), t;
735
- }, Fo = (o) => {
967
+ }, ul = (o) => {
736
968
  const e = O(15), {
737
969
  actions: t,
738
970
  item: n,
739
- onRunAction: r
971
+ onRunAction: l
740
972
  } = o;
973
+ let r;
974
+ e[0] !== n.priority ? (r = rl(n.priority) ? /* @__PURE__ */ s(Te, { size: "sm", colorPalette: Sn(n.priority), textTransform: "capitalize", flexShrink: 0, children: n.priority }) : null, e[0] = n.priority, e[1] = r) : r = e[1];
741
975
  let i;
742
- e[0] !== n.priority ? (i = _o(n.priority) ? /* @__PURE__ */ s(Te, { size: "sm", colorPalette: cn(n.priority), textTransform: "capitalize", flexShrink: 0, children: n.priority }) : null, e[0] = n.priority, e[1] = i) : i = e[1];
743
- let l;
744
- e[2] !== n.status ? (l = n.status === "open" ? /* @__PURE__ */ s(Te, { size: "sm", colorPalette: "blue", variant: "solid", flexShrink: 0, children: "New" }) : null, e[2] = n.status, e[3] = l) : l = e[3];
976
+ e[2] !== n.status ? (i = n.status === "open" ? /* @__PURE__ */ s(Te, { size: "sm", colorPalette: "blue", variant: "solid", flexShrink: 0, children: "New" }) : null, e[2] = n.status, e[3] = i) : i = e[3];
745
977
  let c;
746
- if (e[4] !== t || e[5] !== n || e[6] !== r) {
747
- let d;
748
- e[8] !== n || e[9] !== r ? (d = (u) => /* @__PURE__ */ s(ue, { size: "2xs", variant: "outline", colorPalette: u.destructive ? "red" : "gray", maxW: "9rem", onClick: (f) => {
749
- f.stopPropagation(), r?.(n, u);
750
- }, children: /* @__PURE__ */ s(F, { truncate: !0, children: u.label }) }, u.id), e[8] = n, e[9] = r, e[10] = d) : d = e[10], c = t.map(d), e[4] = t, e[5] = n, e[6] = r, e[7] = c;
978
+ if (e[4] !== t || e[5] !== n || e[6] !== l) {
979
+ let f;
980
+ e[8] !== n || e[9] !== l ? (f = (d) => /* @__PURE__ */ s(de, { size: "2xs", variant: "outline", colorPalette: d.destructive ? "red" : "gray", maxW: "9rem", onClick: (u) => {
981
+ u.stopPropagation(), l?.(n, d);
982
+ }, children: /* @__PURE__ */ s(M, { truncate: !0, children: d.label }) }, d.id), e[8] = n, e[9] = l, e[10] = f) : f = e[10], c = t.map(f), e[4] = t, e[5] = n, e[6] = l, e[7] = c;
751
983
  } else
752
984
  c = e[7];
753
985
  let a;
754
- return e[11] !== i || e[12] !== l || e[13] !== c ? (a = /* @__PURE__ */ y(ae, { gap: "2", minW: "0", flexWrap: "wrap", justify: "flex-end", children: [
986
+ return e[11] !== r || e[12] !== i || e[13] !== c ? (a = /* @__PURE__ */ C(le, { gap: "2", minW: "0", flexWrap: "wrap", justify: "flex-end", children: [
987
+ r,
755
988
  i,
756
- l,
757
989
  c
758
- ] }), e[11] = i, e[12] = l, e[13] = c, e[14] = a) : a = e[14], a;
759
- }, Mo = (o) => {
990
+ ] }), e[11] = r, e[12] = i, e[13] = c, e[14] = a) : a = e[14], a;
991
+ }, hl = (o) => {
760
992
  const {
761
993
  activeIndex: e,
762
994
  items: t,
763
995
  onActivateItem: n,
764
- onActiveIndexChange: r,
765
- onRunAction: i
766
- } = o, l = dn(t);
996
+ onActiveIndexChange: l,
997
+ onRunAction: r
998
+ } = o, i = xn(t);
767
999
  let c = 0;
768
- return /* @__PURE__ */ s(Q, { gap: "2xs", py: "xs", children: l.map((a) => /* @__PURE__ */ y(Q, { gap: "2xs", children: [
769
- /* @__PURE__ */ s(F, { textStyle: "label/XS/medium", color: "fg.muted", px: "sm", pt: "xs", children: a.label }),
770
- a.items.map((d) => {
771
- const u = c;
772
- return c += 1, /* @__PURE__ */ s(Qe, { id: d.id, label: d.title, description: Wo(d), icon: /* @__PURE__ */ s(ce, { as: En, boxSize: "14px" }), iconColor: `${cn(d.priority)}.500`, variant: "compact", isSelected: u === e, endContent: /* @__PURE__ */ s(Fo, { item: d, actions: d.actions ?? [], onRunAction: i }), actions: Ho(d, o), tabIndex: -1, onActivate: () => n?.(d), onPointerMove: () => r(u) }, d.id);
1000
+ return /* @__PURE__ */ s(X, { gap: "2xs", py: "xs", children: i.map((a) => /* @__PURE__ */ C(X, { gap: "2xs", children: [
1001
+ /* @__PURE__ */ s(M, { textStyle: "label/XS/medium", color: "fg.muted", px: "sm", pt: "xs", children: a.label }),
1002
+ a.items.map((f) => {
1003
+ const d = c;
1004
+ return c += 1, /* @__PURE__ */ s(Qe, { id: f.id, label: f.title, description: dl(f), icon: /* @__PURE__ */ s(ce, { as: Kt, boxSize: "14px" }), iconColor: `${Sn(f.priority)}.500`, variant: "compact", isSelected: d === e, endContent: /* @__PURE__ */ s(ul, { item: f, actions: f.actions ?? [], onRunAction: r }), actions: fl(f, o), tabIndex: -1, onActivate: () => n?.(f), onPointerMove: () => l(d) }, f.id);
773
1005
  })
774
1006
  ] }, a.id)) });
775
- }, Vo = () => {
1007
+ }, ml = () => {
776
1008
  const o = O(1);
777
1009
  let e;
778
- return o[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ s(Q, { gap: "2", p: "sm", children: [0, 1, 2, 3].map(Go) }), o[0] = e) : e = o[0], e;
779
- }, Ti = (o) => {
1010
+ return o[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ s(X, { gap: "2", p: "sm", children: [0, 1, 2, 3].map(pl) }), o[0] = e) : e = o[0], e;
1011
+ }, Zr = (o) => {
780
1012
  const e = O(37), {
781
1013
  autoFocus: t,
782
1014
  emptyLabel: n,
783
- error: r,
784
- footerEnd: i,
785
- footerStart: l,
1015
+ error: l,
1016
+ footerEnd: r,
1017
+ footerStart: i,
786
1018
  items: c,
787
1019
  loading: a,
788
- onActivateItem: d,
789
- onEscape: u,
790
- onQueryChange: f,
1020
+ onActivateItem: f,
1021
+ onEscape: d,
1022
+ onQueryChange: u,
791
1023
  query: h
792
- } = o, p = t === void 0 ? !1 : t, m = n === void 0 ? "No notifications." : n, g = a === void 0 ? !1 : a, [x, b] = fe(""), [k, A] = fe(0), R = He(null), S = h ?? x;
793
- let $, I;
794
- e[0] !== S || e[1] !== c ? ($ = No(c, S), I = Bo($), e[0] = S, e[1] = c, e[2] = $, e[3] = I) : ($ = e[2], I = e[3]);
795
- const P = I, w = P[k] ?? null;
796
- let C, D;
797
- e[4] !== p ? (C = () => {
1024
+ } = o, p = t === void 0 ? !1 : t, m = n === void 0 ? "No notifications." : n, g = a === void 0 ? !1 : a, [S, b] = ue(""), [T, I] = ue(0), R = Me(null), x = h ?? S;
1025
+ let $, A;
1026
+ e[0] !== x || e[1] !== c ? ($ = al(c, x), A = cl($), e[0] = x, e[1] = c, e[2] = $, e[3] = A) : ($ = e[2], A = e[3]);
1027
+ const P = A, w = P[T] ?? null;
1028
+ let y, L;
1029
+ e[4] !== p ? (y = () => {
798
1030
  if (!p)
799
1031
  return;
800
- const N = setTimeout(() => R.current?.focus(), 0);
801
- return () => clearTimeout(N);
802
- }, D = [p], e[4] = p, e[5] = C, e[6] = D) : (C = e[5], D = e[6]), me(C, D);
803
- let L, T;
804
- e[7] !== P.length ? (L = () => {
805
- A((N) => Math.min(N, Math.max(P.length - 1, 0)));
806
- }, T = [P.length], e[7] = P.length, e[8] = L, e[9] = T) : (L = e[8], T = e[9]), me(L, T);
807
- let z;
808
- e[10] !== f || e[11] !== h ? (z = (N) => {
809
- h === void 0 && b(N), f?.(N), A(0);
810
- }, e[10] = f, e[11] = h, e[12] = z) : z = e[12];
811
- const E = z;
1032
+ const B = setTimeout(() => R.current?.focus(), 0);
1033
+ return () => clearTimeout(B);
1034
+ }, L = [p], e[4] = p, e[5] = y, e[6] = L) : (y = e[5], L = e[6]), me(y, L);
1035
+ let D, k;
1036
+ e[7] !== P.length ? (D = () => {
1037
+ I((B) => Math.min(B, Math.max(P.length - 1, 0)));
1038
+ }, k = [P.length], e[7] = P.length, e[8] = D, e[9] = k) : (D = e[8], k = e[9]), me(D, k);
1039
+ let N;
1040
+ e[10] !== u || e[11] !== h ? (N = (B) => {
1041
+ h === void 0 && b(B), u?.(B), I(0);
1042
+ }, e[10] = u, e[11] = h, e[12] = N) : N = e[12];
1043
+ const _ = N;
812
1044
  let v;
813
- e[13] !== w || e[14] !== S || e[15] !== P.length || e[16] !== d || e[17] !== u || e[18] !== E ? (v = (N) => {
814
- if (N.key === "ArrowDown") {
815
- N.preventDefault(), A((q) => Math.min(q + 1, Math.max(P.length - 1, 0)));
1045
+ e[13] !== w || e[14] !== x || e[15] !== P.length || e[16] !== f || e[17] !== d || e[18] !== _ ? (v = (B) => {
1046
+ if (B.key === "ArrowDown") {
1047
+ B.preventDefault(), I((q) => Math.min(q + 1, Math.max(P.length - 1, 0)));
816
1048
  return;
817
1049
  }
818
- if (N.key === "ArrowUp") {
819
- N.preventDefault(), A(jo);
1050
+ if (B.key === "ArrowUp") {
1051
+ B.preventDefault(), I(gl);
820
1052
  return;
821
1053
  }
822
- if (N.key === "Enter") {
823
- N.preventDefault(), w && d?.(w);
1054
+ if (B.key === "Enter") {
1055
+ B.preventDefault(), w && f?.(w);
824
1056
  return;
825
1057
  }
826
- if (N.key === "Escape") {
827
- if (N.preventDefault(), S.length > 0) {
828
- E("");
1058
+ if (B.key === "Escape") {
1059
+ if (B.preventDefault(), x.length > 0) {
1060
+ _("");
829
1061
  return;
830
1062
  }
831
- u?.();
1063
+ d?.();
832
1064
  }
833
- }, e[13] = w, e[14] = S, e[15] = P.length, e[16] = d, e[17] = u, e[18] = E, e[19] = v) : v = e[19];
834
- const _ = v;
835
- let B;
836
- e[20] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (B = /* @__PURE__ */ s(qt, { size: 14 }), e[20] = B) : B = e[20];
837
- let K;
838
- e[21] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (K = {
1065
+ }, e[13] = w, e[14] = x, e[15] = P.length, e[16] = f, e[17] = d, e[18] = _, e[19] = v) : v = e[19];
1066
+ const z = v;
1067
+ let E;
1068
+ e[20] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (E = /* @__PURE__ */ s(Zt, { size: 14 }), e[20] = E) : E = e[20];
1069
+ let H;
1070
+ e[21] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (H = {
839
1071
  maxH: "24rem",
840
1072
  showHorizontalScrollbar: !1
841
- }, e[21] = K) : K = e[21];
1073
+ }, e[21] = H) : H = e[21];
842
1074
  let W;
843
- e[22] !== k || e[23] !== m || e[24] !== r || e[25] !== $ || e[26] !== g || e[27] !== o ? (W = r ? /* @__PURE__ */ s(G, { p: "sm", children: /* @__PURE__ */ s(ht, { status: "error", colorPalette: "red", title: "Notifications unavailable", size: "sm", children: r }) }) : g ? /* @__PURE__ */ s(Vo, {}) : $.length === 0 ? /* @__PURE__ */ s(F, { textStyle: "paragraph/S/regular", color: "fg.muted", px: "sm", py: "md", children: m }) : /* @__PURE__ */ s(Mo, { ...o, items: $, activeIndex: k, onActiveIndexChange: A }), e[22] = k, e[23] = m, e[24] = r, e[25] = $, e[26] = g, e[27] = o, e[28] = W) : W = e[28];
844
- let H;
845
- return e[29] !== S || e[30] !== p || e[31] !== i || e[32] !== l || e[33] !== _ || e[34] !== W || e[35] !== E ? (H = /* @__PURE__ */ s(an, { searchValue: S, searchPlaceholder: "Search notifications", searchIcon: B, searchInputRef: R, searchAutoFocus: p, footerStart: l, footerEnd: i, scrollAreaProps: K, onSearchChange: E, onSearchKeyDown: _, children: W }), e[29] = S, e[30] = p, e[31] = i, e[32] = l, e[33] = _, e[34] = W, e[35] = E, e[36] = H) : H = e[36], H;
1075
+ e[22] !== T || e[23] !== m || e[24] !== l || e[25] !== $ || e[26] !== g || e[27] !== o ? (W = l ? /* @__PURE__ */ s(j, { p: "sm", children: /* @__PURE__ */ s(lt, { status: "error", colorPalette: "red", title: "Notifications unavailable", size: "sm", children: l }) }) : g ? /* @__PURE__ */ s(ml, {}) : $.length === 0 ? /* @__PURE__ */ s(M, { textStyle: "paragraph/S/regular", color: "fg.muted", px: "sm", py: "md", children: m }) : /* @__PURE__ */ s(hl, { ...o, items: $, activeIndex: T, onActiveIndexChange: I }), e[22] = T, e[23] = m, e[24] = l, e[25] = $, e[26] = g, e[27] = o, e[28] = W) : W = e[28];
1076
+ let F;
1077
+ return e[29] !== x || e[30] !== p || e[31] !== r || e[32] !== i || e[33] !== z || e[34] !== W || e[35] !== _ ? (F = /* @__PURE__ */ s(bn, { searchValue: x, searchPlaceholder: "Search notifications", searchIcon: E, searchInputRef: R, searchAutoFocus: p, footerStart: i, footerEnd: r, scrollAreaProps: H, onSearchChange: _, onSearchKeyDown: z, children: W }), e[29] = x, e[30] = p, e[31] = r, e[32] = i, e[33] = z, e[34] = W, e[35] = _, e[36] = F) : F = e[36], F;
846
1078
  };
847
- function Go(o) {
848
- return /* @__PURE__ */ y(Q, { gap: "2xs", children: [
849
- /* @__PURE__ */ s(pt, { h: "4", w: o % 2 === 0 ? "68%" : "52%", borderRadius: "xs" }),
850
- /* @__PURE__ */ s(pt, { h: "3", w: "88%", borderRadius: "xs" })
1079
+ function pl(o) {
1080
+ return /* @__PURE__ */ C(X, { gap: "2xs", children: [
1081
+ /* @__PURE__ */ s(bt, { h: "4", w: o % 2 === 0 ? "68%" : "52%", borderRadius: "xs" }),
1082
+ /* @__PURE__ */ s(bt, { h: "3", w: "88%", borderRadius: "xs" })
851
1083
  ] }, o);
852
1084
  }
853
- function jo(o) {
1085
+ function gl(o) {
854
1086
  return Math.max(o - 1, 0);
855
1087
  }
856
- const Pi = (o) => {
1088
+ const Jr = (o) => {
857
1089
  const e = O(6);
858
1090
  let t, n;
859
1091
  e[0] !== o ? ({
860
1092
  children: t,
861
1093
  ...n
862
1094
  } = o, e[0] = o, e[1] = t, e[2] = n) : (t = e[1], n = e[2]);
863
- let r;
864
- return e[3] !== t || e[4] !== n ? (r = /* @__PURE__ */ s(de, { as: "aside", direction: "column", h: "full", minH: "0", minW: "0", w: "full", overflow: "hidden", bg: "bg", ...n, children: t }), e[3] = t, e[4] = n, e[5] = r) : r = e[5], r;
865
- }, Uo = "20rem", Ai = (o) => {
1095
+ let l;
1096
+ return e[3] !== t || e[4] !== n ? (l = /* @__PURE__ */ s(fe, { as: "aside", direction: "column", h: "full", minH: "0", minW: "0", w: "full", overflow: "hidden", bg: "bg", ...n, children: t }), e[3] = t, e[4] = n, e[5] = l) : l = e[5], l;
1097
+ }, bl = "20rem", es = (o) => {
866
1098
  const e = O(15);
867
- let t, n, r, i, l, c;
1099
+ let t, n, l, r, i, c;
868
1100
  e[0] !== o ? ({
869
1101
  children: t,
870
1102
  header: n,
871
- width: l,
872
- minWidth: r,
1103
+ width: i,
1104
+ minWidth: l,
873
1105
  resizable: c,
874
- ...i
875
- } = o, e[0] = o, e[1] = t, e[2] = n, e[3] = r, e[4] = i, e[5] = l, e[6] = c) : (t = e[1], n = e[2], r = e[3], i = e[4], l = e[5], c = e[6]);
876
- const a = l === void 0 ? "28rem" : l, d = c === void 0 ? !1 : c, u = r ?? (d ? Uo : a), f = d ? "full" : a;
1106
+ ...r
1107
+ } = o, e[0] = o, e[1] = t, e[2] = n, e[3] = l, e[4] = r, e[5] = i, e[6] = c) : (t = e[1], n = e[2], l = e[3], r = e[4], i = e[5], c = e[6]);
1108
+ const a = i === void 0 ? "28rem" : i, f = c === void 0 ? !1 : c, d = l ?? (f ? bl : a), u = f ? "full" : a;
877
1109
  let h;
878
- e[7] !== t ? (h = /* @__PURE__ */ s(de, { flex: "1", minH: 0, direction: "column", children: t }), e[7] = t, e[8] = h) : h = e[8];
1110
+ e[7] !== t ? (h = /* @__PURE__ */ s(fe, { flex: "1", minH: 0, direction: "column", children: t }), e[7] = t, e[8] = h) : h = e[8];
879
1111
  let p;
880
- return e[9] !== n || e[10] !== u || e[11] !== f || e[12] !== i || e[13] !== h ? (p = /* @__PURE__ */ y(de, { direction: "column", position: "relative", flexShrink: 0, w: f, minW: u, h: "100%", bg: "bg", overflow: "hidden", ...i, children: [
1112
+ return e[9] !== n || e[10] !== d || e[11] !== u || e[12] !== r || e[13] !== h ? (p = /* @__PURE__ */ C(fe, { direction: "column", position: "relative", flexShrink: 0, w: u, minW: d, h: "100%", bg: "bg", overflow: "hidden", ...r, children: [
881
1113
  n,
882
1114
  h
883
- ] }), e[9] = n, e[10] = u, e[11] = f, e[12] = i, e[13] = h, e[14] = p) : p = e[14], p;
884
- }, Ri = Ut(function(e, t) {
1115
+ ] }), e[9] = n, e[10] = d, e[11] = u, e[12] = r, e[13] = h, e[14] = p) : p = e[14], p;
1116
+ }, ts = qt(function(e, t) {
885
1117
  const n = O(19);
886
- let r, i, l, c, a;
1118
+ let l, r, i, c, a;
887
1119
  n[0] !== e ? ({
888
- children: r,
889
- containerProps: i,
1120
+ children: l,
1121
+ containerProps: r,
890
1122
  isOpen: c,
891
1123
  tooltip: a,
892
- ...l
893
- } = e, n[0] = e, n[1] = r, n[2] = i, n[3] = l, n[4] = c, n[5] = a) : (r = n[1], i = n[2], l = n[3], c = n[4], a = n[5]);
894
- const u = (c === void 0 ? !1 : c) ? "border.accent" : "border";
895
- let f, h;
896
- n[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (f = {
1124
+ ...i
1125
+ } = e, n[0] = e, n[1] = l, n[2] = r, n[3] = i, n[4] = c, n[5] = a) : (l = n[1], r = n[2], i = n[3], c = n[4], a = n[5]);
1126
+ const d = (c === void 0 ? !1 : c) ? "border.accent" : "border";
1127
+ let u, h;
1128
+ n[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (u = {
897
1129
  borderColor: "border.accent"
898
1130
  }, h = {
899
1131
  borderColor: "border.accent"
900
- }, n[6] = f, n[7] = h) : (f = n[6], h = n[7]);
1132
+ }, n[6] = u, n[7] = h) : (u = n[6], h = n[7]);
901
1133
  let p;
902
- n[8] !== r || n[9] !== t || n[10] !== l || n[11] !== u ? (p = /* @__PURE__ */ s(Fe, { ref: t, rounded: "full", size: "lg", borderWidth: "1px", borderColor: u, transition: "border-color 0.2s ease-in-out", _hover: f, _active: h, ...l, children: r }), n[8] = r, n[9] = t, n[10] = l, n[11] = u, n[12] = p) : p = n[12];
1134
+ n[8] !== l || n[9] !== t || n[10] !== i || n[11] !== d ? (p = /* @__PURE__ */ s(Fe, { ref: t, rounded: "full", size: "lg", borderWidth: "1px", borderColor: d, transition: "border-color 0.2s ease-in-out", _hover: u, _active: h, ...i, children: l }), n[8] = l, n[9] = t, n[10] = i, n[11] = d, n[12] = p) : p = n[12];
903
1135
  const m = p;
904
1136
  let g;
905
1137
  n[13] !== m || n[14] !== a ? (g = a ? /* @__PURE__ */ s(Ue, { content: a, children: m }) : m, n[13] = m, n[14] = a, n[15] = g) : g = n[15];
906
- let x;
907
- return n[16] !== i || n[17] !== g ? (x = /* @__PURE__ */ s(Pe.div, { position: "fixed", bottom: "6", right: "6", zIndex: "docked", ...i, children: g }), n[16] = i, n[17] = g, n[18] = x) : x = n[18], x;
908
- }), ki = Ut(function(e, t) {
1138
+ let S;
1139
+ return n[16] !== r || n[17] !== g ? (S = /* @__PURE__ */ s(Ae.div, { position: "fixed", bottom: "6", right: "6", zIndex: "docked", ...r, children: g }), n[16] = r, n[17] = g, n[18] = S) : S = n[18], S;
1140
+ }), ns = qt(function(e, t) {
909
1141
  const n = O(28), {
910
- isOpen: r,
911
- title: i,
912
- menu: l,
1142
+ isOpen: l,
1143
+ title: r,
1144
+ menu: i,
913
1145
  onClose: c,
914
1146
  closeLabel: a,
915
- onPopOut: d,
916
- popOutLabel: u,
917
- width: f,
1147
+ onPopOut: f,
1148
+ popOutLabel: d,
1149
+ width: u,
918
1150
  height: h,
919
1151
  containerProps: p,
920
1152
  testId: m,
921
1153
  "aria-label": g,
922
- children: x
923
- } = e, b = r === void 0 ? !1 : r, k = f === void 0 ? "28rem" : f, A = h === void 0 ? "38rem" : h;
1154
+ children: S
1155
+ } = e, b = l === void 0 ? !1 : l, T = u === void 0 ? "28rem" : u, I = h === void 0 ? "38rem" : h;
924
1156
  if (!b)
925
1157
  return null;
926
- const R = g ?? i;
927
- let S;
928
- n[0] !== l ? (S = /* @__PURE__ */ s(ae, { gap: "1", minW: "0", children: l }), n[0] = l, n[1] = S) : S = n[1];
1158
+ const R = g ?? r;
1159
+ let x;
1160
+ n[0] !== i ? (x = /* @__PURE__ */ s(le, { gap: "1", minW: "0", children: i }), n[0] = i, n[1] = x) : x = n[1];
929
1161
  let $;
930
- n[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? ($ = /* @__PURE__ */ s(Ft, {}), n[2] = $) : $ = n[2];
931
- let I;
932
- n[3] !== d || n[4] !== u ? (I = d ? /* @__PURE__ */ s(Ue, { content: u, children: /* @__PURE__ */ s(Fe, { size: wt, variant: "ghost", "aria-label": u, onClick: d, children: /* @__PURE__ */ s(Dn, { size: 16 }) }) }) : null, n[3] = d, n[4] = u, n[5] = I) : I = n[5];
1162
+ n[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? ($ = /* @__PURE__ */ s(jt, {}), n[2] = $) : $ = n[2];
1163
+ let A;
1164
+ n[3] !== f || n[4] !== d ? (A = f ? /* @__PURE__ */ s(Ue, { content: d, children: /* @__PURE__ */ s(Fe, { size: At, variant: "ghost", "aria-label": d, onClick: f, children: /* @__PURE__ */ s(Kn, { size: 16 }) }) }) : null, n[3] = f, n[4] = d, n[5] = A) : A = n[5];
933
1165
  let P;
934
- n[6] !== a || n[7] !== c ? (P = c ? /* @__PURE__ */ s(Ue, { content: a, children: /* @__PURE__ */ s(Fe, { size: wt, variant: "ghost", "aria-label": a, onClick: c, children: /* @__PURE__ */ s(Ln, { size: 16 }) }) }) : null, n[6] = a, n[7] = c, n[8] = P) : P = n[8];
1166
+ n[6] !== a || n[7] !== c ? (P = c ? /* @__PURE__ */ s(Ue, { content: a, children: /* @__PURE__ */ s(Fe, { size: At, variant: "ghost", "aria-label": a, onClick: c, children: /* @__PURE__ */ s(Yn, { size: 16 }) }) }) : null, n[6] = a, n[7] = c, n[8] = P) : P = n[8];
935
1167
  let w;
936
- n[9] !== I || n[10] !== P ? (w = /* @__PURE__ */ y(ae, { gap: "1", children: [
937
- I,
1168
+ n[9] !== A || n[10] !== P ? (w = /* @__PURE__ */ C(le, { gap: "1", children: [
1169
+ A,
938
1170
  P
939
- ] }), n[9] = I, n[10] = P, n[11] = w) : w = n[11];
940
- let C;
941
- n[12] !== S || n[13] !== w ? (C = /* @__PURE__ */ y(Mn, { variant: "main", gap: "sm", flexShrink: 0, children: [
942
- S,
1171
+ ] }), n[9] = A, n[10] = P, n[11] = w) : w = n[11];
1172
+ let y;
1173
+ n[12] !== x || n[13] !== w ? (y = /* @__PURE__ */ C(ro, { variant: "main", gap: "sm", flexShrink: 0, children: [
1174
+ x,
943
1175
  $,
944
1176
  w
945
- ] }), n[12] = S, n[13] = w, n[14] = C) : C = n[14];
946
- let D;
947
- n[15] !== x ? (D = /* @__PURE__ */ s(G, { flex: "1", minH: 0, display: "flex", flexDirection: "column", gap: "sm", children: x }), n[15] = x, n[16] = D) : D = n[16];
1177
+ ] }), n[12] = x, n[13] = w, n[14] = y) : y = n[14];
948
1178
  let L;
949
- n[17] !== D || n[18] !== C ? (L = /* @__PURE__ */ y(de, { direction: "column", h: "full", children: [
950
- C,
951
- D
952
- ] }), n[17] = D, n[18] = C, n[19] = L) : L = n[19];
953
- let T;
954
- return n[20] !== p || n[21] !== A || n[22] !== t || n[23] !== L || n[24] !== R || n[25] !== m || n[26] !== k ? (T = /* @__PURE__ */ s(Je, { children: /* @__PURE__ */ s(Pe.section, { ref: t, role: "dialog", "data-testid": m, "aria-label": R, position: "fixed", bottom: "3", right: "3", w: k, maxW: "calc(100vw - 2rem)", h: A, maxH: "calc(100vh - 2rem)", borderRadius: "xs", borderWidth: "1px", borderColor: "border.subtle", bg: "bg", overflow: "hidden", zIndex: "dropdown", ...p, children: L }) }), n[20] = p, n[21] = A, n[22] = t, n[23] = L, n[24] = R, n[25] = m, n[26] = k, n[27] = T) : T = n[27], T;
955
- }), Qo = (o) => {
956
- const [e, t] = fe(!1), {
1179
+ n[15] !== S ? (L = /* @__PURE__ */ s(j, { flex: "1", minH: 0, display: "flex", flexDirection: "column", gap: "sm", children: S }), n[15] = S, n[16] = L) : L = n[16];
1180
+ let D;
1181
+ n[17] !== L || n[18] !== y ? (D = /* @__PURE__ */ C(fe, { direction: "column", h: "full", children: [
1182
+ y,
1183
+ L
1184
+ ] }), n[17] = L, n[18] = y, n[19] = D) : D = n[19];
1185
+ let k;
1186
+ return n[20] !== p || n[21] !== I || n[22] !== t || n[23] !== D || n[24] !== R || n[25] !== m || n[26] !== T ? (k = /* @__PURE__ */ s(tt, { children: /* @__PURE__ */ s(Ae.section, { ref: t, role: "dialog", "data-testid": m, "aria-label": R, position: "fixed", bottom: "3", right: "3", w: T, maxW: "calc(100vw - 2rem)", h: I, maxH: "calc(100vh - 2rem)", borderRadius: "xs", borderWidth: "1px", borderColor: "border.subtle", bg: "bg", overflow: "hidden", zIndex: "dropdown", ...p, children: D }) }), n[20] = p, n[21] = I, n[22] = t, n[23] = D, n[24] = R, n[25] = m, n[26] = T, n[27] = k) : k = n[27], k;
1187
+ }), Sl = (o) => {
1188
+ const [e, t] = ue(!1), {
957
1189
  headline: n,
958
- buttonText: r,
959
- notificationText: i,
960
- onDelete: l,
1190
+ buttonText: l,
1191
+ notificationText: r,
1192
+ onDelete: i,
961
1193
  open: c,
962
1194
  onClose: a,
963
- children: d
964
- } = o, u = async () => {
1195
+ children: f
1196
+ } = o, d = async () => {
965
1197
  t(!0);
966
1198
  try {
967
- await l(), a();
1199
+ await i(), a();
968
1200
  } catch {
969
1201
  } finally {
970
1202
  t(!1);
@@ -974,53 +1206,53 @@ const Pi = (o) => {
974
1206
  // Destructive confirmations dismiss only through their explicit controls —
975
1207
  // outside interactions must never cancel them, and when nested inside another
976
1208
  // overlay (e.g. the settings dialog) a portal keeps the layers cooperating.
977
- /* @__PURE__ */ s(Z.Root, { open: c, onOpenChange: (f) => {
978
- f.open || a();
979
- }, closeOnInteractOutside: !1, children: /* @__PURE__ */ y(Je, { children: [
1209
+ /* @__PURE__ */ s(Z.Root, { open: c, onOpenChange: (u) => {
1210
+ u.open || a();
1211
+ }, closeOnInteractOutside: !1, children: /* @__PURE__ */ C(tt, { children: [
980
1212
  /* @__PURE__ */ s(Z.Backdrop, {}),
981
- /* @__PURE__ */ s(Z.Positioner, { children: /* @__PURE__ */ y(Z.Content, { children: [
982
- /* @__PURE__ */ y(Z.Header, { children: [
983
- /* @__PURE__ */ s(F, { textStyle: "heading/M", children: n }),
984
- /* @__PURE__ */ s(Z.CloseTrigger, { asChild: !0, children: /* @__PURE__ */ s(Mt, { size: "sm" }) })
1213
+ /* @__PURE__ */ s(Z.Positioner, { children: /* @__PURE__ */ C(Z.Content, { children: [
1214
+ /* @__PURE__ */ C(Z.Header, { children: [
1215
+ /* @__PURE__ */ s(M, { textStyle: "heading/M", children: n }),
1216
+ /* @__PURE__ */ s(Z.CloseTrigger, { asChild: !0, children: /* @__PURE__ */ s(Ut, { size: "sm" }) })
985
1217
  ] }),
986
- /* @__PURE__ */ s(Z.Body, { children: /* @__PURE__ */ y(Q, { gap: "3", children: [
987
- i ? /* @__PURE__ */ s(F, { children: i }) : null,
988
- d
1218
+ /* @__PURE__ */ s(Z.Body, { children: /* @__PURE__ */ C(X, { gap: "3", children: [
1219
+ r ? /* @__PURE__ */ s(M, { children: r }) : null,
1220
+ f
989
1221
  ] }) }),
990
- /* @__PURE__ */ s(Z.Footer, { children: /* @__PURE__ */ y(Q, { direction: "row", gap: "1", children: [
991
- /* @__PURE__ */ s(ue, { onClick: a, children: "Close" }),
992
- /* @__PURE__ */ s(ue, { loading: e, variant: "destructive", onClick: u, children: r })
1222
+ /* @__PURE__ */ s(Z.Footer, { children: /* @__PURE__ */ C(X, { direction: "row", gap: "1", children: [
1223
+ /* @__PURE__ */ s(de, { onClick: a, children: "Close" }),
1224
+ /* @__PURE__ */ s(de, { loading: e, variant: "destructive", onClick: d, children: l })
993
1225
  ] }) })
994
1226
  ] }) })
995
1227
  ] }) })
996
1228
  );
997
- }, qo = (o) => o.isDirectory ? o.isGitRepo ? _n : Kt : On, Ko = (o, e) => {
1229
+ }, xl = (o) => o.isDirectory ? o.isGitRepo ? Jn : Jt : Zn, vl = (o, e) => {
998
1230
  const t = e.trim().toLowerCase();
999
1231
  return t ? o.filter((n) => `${n.name} ${n.path}`.toLowerCase().includes(t)) : o;
1000
- }, Xo = (o) => {
1232
+ }, yl = (o) => {
1001
1233
  const e = O(22), {
1002
1234
  entry: t,
1003
1235
  selectedPath: n,
1004
- selectedPathSet: r,
1005
- onEntryClick: i
1236
+ selectedPathSet: l,
1237
+ onEntryClick: r
1006
1238
  } = o;
1007
- let l;
1008
- e[0] !== t.isGitRepo || e[1] !== t.path || e[2] !== r ? (l = t.isGitRepo && r.has(t.path), e[0] = t.isGitRepo, e[1] = t.path, e[2] = r, e[3] = l) : l = e[3];
1009
- const c = l, a = !t.isDirectory || c;
1010
- let d;
1011
- e[4] !== t || e[5] !== c || e[6] !== i ? (d = () => {
1012
- c || i(t);
1013
- }, e[4] = t, e[5] = c, e[6] = i, e[7] = d) : d = e[7];
1014
- const u = d, f = n === t.path, h = t.path, p = t.name;
1239
+ let i;
1240
+ e[0] !== t.isGitRepo || e[1] !== t.path || e[2] !== l ? (i = t.isGitRepo && l.has(t.path), e[0] = t.isGitRepo, e[1] = t.path, e[2] = l, e[3] = i) : i = e[3];
1241
+ const c = i, a = !t.isDirectory || c;
1242
+ let f;
1243
+ e[4] !== t || e[5] !== c || e[6] !== r ? (f = () => {
1244
+ c || r(t);
1245
+ }, e[4] = t, e[5] = c, e[6] = r, e[7] = f) : f = e[7];
1246
+ const d = f, u = n === t.path, h = t.path, p = t.name;
1015
1247
  let m;
1016
- e[8] !== t ? (m = qo(t), e[8] = t, e[9] = m) : m = e[9];
1248
+ e[8] !== t ? (m = xl(t), e[8] = t, e[9] = m) : m = e[9];
1017
1249
  let g;
1018
1250
  e[10] !== m ? (g = /* @__PURE__ */ s(ce, { as: m, boxSize: "16px" }), e[10] = m, e[11] = g) : g = e[11];
1019
- let x;
1020
- e[12] !== t.isGitRepo ? (x = t.isGitRepo ? /* @__PURE__ */ s(Te, { textStyle: "label/XS/medium", px: "xs", py: "2px", colorPalette: "green", variant: "subtle", pointerEvents: "none", children: "Git repo" }) : void 0, e[12] = t.isGitRepo, e[13] = x) : x = e[13];
1251
+ let S;
1252
+ e[12] !== t.isGitRepo ? (S = t.isGitRepo ? /* @__PURE__ */ s(Te, { textStyle: "label/XS/medium", px: "xs", py: "2px", colorPalette: "green", variant: "subtle", pointerEvents: "none", children: "Git repo" }) : void 0, e[12] = t.isGitRepo, e[13] = S) : S = e[13];
1021
1253
  let b;
1022
- return e[14] !== t.name || e[15] !== t.path || e[16] !== u || e[17] !== a || e[18] !== f || e[19] !== g || e[20] !== x ? (b = /* @__PURE__ */ s(Qe, { variant: "compact", isSelected: f, id: h, label: p, icon: g, endContent: x, disabled: a, onActivate: u }), e[14] = t.name, e[15] = t.path, e[16] = u, e[17] = a, e[18] = f, e[19] = g, e[20] = x, e[21] = b) : b = e[21], b;
1023
- }, Yo = (o) => {
1254
+ return e[14] !== t.name || e[15] !== t.path || e[16] !== d || e[17] !== a || e[18] !== u || e[19] !== g || e[20] !== S ? (b = /* @__PURE__ */ s(Qe, { variant: "compact", isSelected: u, id: h, label: p, icon: g, endContent: S, disabled: a, onActivate: d }), e[14] = t.name, e[15] = t.path, e[16] = d, e[17] = a, e[18] = u, e[19] = g, e[20] = S, e[21] = b) : b = e[21], b;
1255
+ }, Cl = (o) => {
1024
1256
  if (!["ArrowDown", "ArrowUp", "Home", "End"].includes(o.key))
1025
1257
  return;
1026
1258
  const e = Array.from(o.currentTarget.querySelectorAll('button[role="option"]:not(:disabled)'));
@@ -1028,111 +1260,111 @@ const Pi = (o) => {
1028
1260
  return;
1029
1261
  const t = e.indexOf(document.activeElement), n = o.key === "Home" ? 0 : o.key === "End" ? e.length - 1 : o.key === "ArrowUp" ? t <= 0 ? e.length - 1 : t - 1 : t < 0 || t === e.length - 1 ? 0 : t + 1;
1030
1262
  o.preventDefault(), e[n]?.focus();
1031
- }, $i = (o) => {
1263
+ }, os = (o) => {
1032
1264
  const e = O(68), {
1033
1265
  open: t,
1034
1266
  title: n,
1035
- description: r,
1036
- currentPath: i,
1037
- entries: l,
1267
+ description: l,
1268
+ currentPath: r,
1269
+ entries: i,
1038
1270
  selectedPath: c,
1039
1271
  selectedPaths: a,
1040
- isLoading: d,
1041
- error: u,
1042
- isSelectDisabled: f,
1272
+ isLoading: f,
1273
+ error: d,
1274
+ isSelectDisabled: u,
1043
1275
  onClose: h,
1044
1276
  onSelect: p,
1045
1277
  onSelectHomeDirectory: m,
1046
1278
  onSelectParentDirectory: g,
1047
- onEntryClick: x
1048
- } = o, b = n === void 0 ? "Select folder" : n, k = i === void 0 ? "" : i, A = c === void 0 ? null : c;
1279
+ onEntryClick: S
1280
+ } = o, b = n === void 0 ? "Select folder" : n, T = r === void 0 ? "" : r, I = c === void 0 ? null : c;
1049
1281
  let R;
1050
1282
  e[0] !== a ? (R = a === void 0 ? [] : a, e[0] = a, e[1] = R) : R = e[1];
1051
- const S = R, $ = d === void 0 ? !1 : d, I = u === void 0 ? "" : u, P = f === void 0 ? !1 : f, [w, C] = fe("");
1052
- let D;
1053
- e[2] !== S ? (D = new Set(S), e[2] = S, e[3] = D) : D = e[3];
1054
- const L = D, T = Ko(l, w), z = k || "Home";
1055
- let E, v;
1056
- e[4] !== t || e[5] !== z ? (v = () => {
1057
- !t || !z || C("");
1058
- }, E = [t, z], e[4] = t, e[5] = z, e[6] = E, e[7] = v) : (E = e[6], v = e[7]), me(v, E);
1059
- const _ = Z, B = !0, K = !0, W = !1;
1060
- let H;
1061
- e[8] !== h ? (H = (ze) => !ze.open && h(), e[8] = h, e[9] = H) : H = e[9];
1062
- let N;
1063
- e[10] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (N = /* @__PURE__ */ s(Z.Backdrop, {}), e[10] = N) : N = e[10];
1064
- const q = Z, j = Z;
1065
- let V;
1066
- e[11] !== b ? (V = /* @__PURE__ */ s(F, { textStyle: "heading/M", children: b }), e[11] = b, e[12] = V) : V = e[12];
1067
- let U;
1068
- e[13] !== r ? (U = r ? /* @__PURE__ */ s(F, { textStyle: "paragraph/S/regular", color: "fg.muted", children: r }) : null, e[13] = r, e[14] = U) : U = e[14];
1069
- let X;
1070
- e[15] !== V || e[16] !== U ? (X = /* @__PURE__ */ s(Z.Header, { children: /* @__PURE__ */ y(Q, { gap: "xs", children: [
1071
- V,
1072
- U
1073
- ] }) }), e[15] = V, e[16] = U, e[17] = X) : X = e[17];
1074
- const se = Z, J = Q, ee = "md";
1075
- let re;
1076
- e[18] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (re = /* @__PURE__ */ s(zn, { size: 16 }), e[18] = re) : re = e[18];
1283
+ const x = R, $ = f === void 0 ? !1 : f, A = d === void 0 ? "" : d, P = u === void 0 ? !1 : u, [w, y] = ue("");
1284
+ let L;
1285
+ e[2] !== x ? (L = new Set(x), e[2] = x, e[3] = L) : L = e[3];
1286
+ const D = L, k = vl(i, w), N = T || "Home";
1287
+ let _, v;
1288
+ e[4] !== t || e[5] !== N ? (v = () => {
1289
+ !t || !N || y("");
1290
+ }, _ = [t, N], e[4] = t, e[5] = N, e[6] = _, e[7] = v) : (_ = e[6], v = e[7]), me(v, _);
1291
+ const z = Z, E = !0, H = !0, W = !1;
1292
+ let F;
1293
+ e[8] !== h ? (F = (ze) => !ze.open && h(), e[8] = h, e[9] = F) : F = e[9];
1294
+ let B;
1295
+ e[10] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (B = /* @__PURE__ */ s(Z.Backdrop, {}), e[10] = B) : B = e[10];
1296
+ const q = Z, U = Z;
1297
+ let G;
1298
+ e[11] !== b ? (G = /* @__PURE__ */ s(M, { textStyle: "heading/M", children: b }), e[11] = b, e[12] = G) : G = e[12];
1299
+ let Q;
1300
+ e[13] !== l ? (Q = l ? /* @__PURE__ */ s(M, { textStyle: "paragraph/S/regular", color: "fg.muted", children: l }) : null, e[13] = l, e[14] = Q) : Q = e[14];
1301
+ let K;
1302
+ e[15] !== G || e[16] !== Q ? (K = /* @__PURE__ */ s(Z.Header, { children: /* @__PURE__ */ C(X, { gap: "xs", children: [
1303
+ G,
1304
+ Q
1305
+ ] }) }), e[15] = G, e[16] = Q, e[17] = K) : K = e[17];
1306
+ const ae = Z, J = X, ee = "md";
1307
+ let ie;
1308
+ e[18] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ie = /* @__PURE__ */ s(eo, { size: 16 }), e[18] = ie) : ie = e[18];
1077
1309
  let te;
1078
- e[19] !== m ? (te = /* @__PURE__ */ s(ue, { "aria-label": "Go to home directory", variant: "outline", size: "sm", onClick: m, children: re }), e[19] = m, e[20] = te) : te = e[20];
1079
- const le = !k || k === "/";
1310
+ e[19] !== m ? (te = /* @__PURE__ */ s(de, { "aria-label": "Go to home directory", variant: "outline", size: "sm", onClick: m, children: ie }), e[19] = m, e[20] = te) : te = e[20];
1311
+ const re = !T || T === "/";
1080
1312
  let ne;
1081
- e[21] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ne = /* @__PURE__ */ s(Nn, { size: 16 }), e[21] = ne) : ne = e[21];
1313
+ e[21] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ne = /* @__PURE__ */ s(to, { size: 16 }), e[21] = ne) : ne = e[21];
1082
1314
  let Y;
1083
- e[22] !== g || e[23] !== le ? (Y = /* @__PURE__ */ s(ue, { "aria-label": "Go to parent directory", variant: "outline", size: "sm", onClick: g, disabled: le, children: ne }), e[22] = g, e[23] = le, e[24] = Y) : Y = e[24];
1084
- let ie;
1085
- e[25] !== z ? (ie = /* @__PURE__ */ s(F, { "data-testid": "folder-picker-path", textStyle: "paragraph/S/regular", color: "fg.muted", flex: "1", lineClamp: 1, children: z }), e[25] = z, e[26] = ie) : ie = e[26];
1315
+ e[22] !== g || e[23] !== re ? (Y = /* @__PURE__ */ s(de, { "aria-label": "Go to parent directory", variant: "outline", size: "sm", onClick: g, disabled: re, children: ne }), e[22] = g, e[23] = re, e[24] = Y) : Y = e[24];
1316
+ let se;
1317
+ e[25] !== N ? (se = /* @__PURE__ */ s(M, { "data-testid": "folder-picker-path", textStyle: "paragraph/S/regular", color: "fg.muted", flex: "1", lineClamp: 1, children: N }), e[25] = N, e[26] = se) : se = e[26];
1086
1318
  let oe;
1087
- e[27] !== te || e[28] !== Y || e[29] !== ie ? (oe = /* @__PURE__ */ y(Q, { direction: "row", gap: "sm", align: "center", children: [
1319
+ e[27] !== te || e[28] !== Y || e[29] !== se ? (oe = /* @__PURE__ */ C(X, { direction: "row", gap: "sm", align: "center", children: [
1088
1320
  te,
1089
1321
  Y,
1090
- ie
1091
- ] }), e[27] = te, e[28] = Y, e[29] = ie, e[30] = oe) : oe = e[30];
1092
- const he = Q, Ae = "0", xe = "1px", ve = "md", ye = "border.subtle", Re = "hidden";
1093
- let M;
1094
- e[31] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (M = /* @__PURE__ */ s(qt, { size: 14 }), e[31] = M) : M = e[31];
1322
+ se
1323
+ ] }), e[27] = te, e[28] = Y, e[29] = se, e[30] = oe) : oe = e[30];
1324
+ const he = X, Pe = "0", xe = "1px", ve = "md", ye = "border.subtle", ke = "hidden";
1325
+ let V;
1326
+ e[31] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (V = /* @__PURE__ */ s(Zt, { size: 14 }), e[31] = V) : V = e[31];
1095
1327
  let be;
1096
- e[32] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (be = (ze) => C(ze.target.value), e[32] = be) : be = e[32];
1328
+ e[32] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (be = (ze) => y(ze.target.value), e[32] = be) : be = e[32];
1097
1329
  let Ce;
1098
- e[33] !== w ? (Ce = /* @__PURE__ */ s(Gt, { startElement: M, width: "full", borderBottomWidth: "1px", borderColor: "border.subtle", children: /* @__PURE__ */ s(Vt, { mx: "xs", value: w, placeholder: "Search repositories", "aria-label": "Search repositories", autoComplete: "off", onChange: be }) }), e[33] = w, e[34] = Ce) : Ce = e[34];
1099
- const we = $ ? /* @__PURE__ */ s(F, { textStyle: "paragraph/S/regular", color: "fg.muted", p: "sm", children: "Loading..." }) : I ? /* @__PURE__ */ s(F, { textStyle: "paragraph/S/regular", color: "red.500", p: "sm", children: I }) : T.length === 0 ? /* @__PURE__ */ s(F, { textStyle: "paragraph/S/regular", color: "fg.muted", p: "sm", children: "No entries found." }) : /* @__PURE__ */ s(tt, { maxHeight: "320px", contentProps: {
1330
+ e[33] !== w ? (Ce = /* @__PURE__ */ s(Xt, { startElement: V, width: "full", borderBottomWidth: "1px", borderColor: "border.subtle", children: /* @__PURE__ */ s(Qt, { mx: "xs", value: w, placeholder: "Search repositories", "aria-label": "Search repositories", autoComplete: "off", onChange: be }) }), e[33] = w, e[34] = Ce) : Ce = e[34];
1331
+ const we = $ ? /* @__PURE__ */ s(M, { textStyle: "paragraph/S/regular", color: "fg.muted", p: "sm", children: "Loading..." }) : A ? /* @__PURE__ */ s(M, { textStyle: "paragraph/S/regular", color: "red.500", p: "sm", children: A }) : k.length === 0 ? /* @__PURE__ */ s(M, { textStyle: "paragraph/S/regular", color: "fg.muted", p: "sm", children: "No entries found." }) : /* @__PURE__ */ s(ot, { maxHeight: "320px", contentProps: {
1100
1332
  padding: "sm"
1101
- }, children: /* @__PURE__ */ s(Q, { gap: "xs", role: "listbox", "aria-label": "Repository folders", onKeyDown: Yo, children: T.map((ze) => /* @__PURE__ */ s(Xo, { entry: ze, selectedPath: A, selectedPathSet: L, onEntryClick: x }, ze.path)) }) });
1333
+ }, children: /* @__PURE__ */ s(X, { gap: "xs", role: "listbox", "aria-label": "Repository folders", onKeyDown: Cl, children: k.map((ze) => /* @__PURE__ */ s(yl, { entry: ze, selectedPath: I, selectedPathSet: D, onEntryClick: S }, ze.path)) }) });
1102
1334
  let Se;
1103
- e[35] !== he || e[36] !== Ce || e[37] !== we ? (Se = /* @__PURE__ */ y(he, { gap: Ae, borderWidth: xe, borderRadius: ve, borderColor: ye, overflow: Re, children: [
1335
+ e[35] !== he || e[36] !== Ce || e[37] !== we ? (Se = /* @__PURE__ */ C(he, { gap: Pe, borderWidth: xe, borderRadius: ve, borderColor: ye, overflow: ke, children: [
1104
1336
  Ce,
1105
1337
  we
1106
1338
  ] }), e[35] = he, e[36] = Ce, e[37] = we, e[38] = Se) : Se = e[38];
1107
- let ke;
1108
- e[39] !== J || e[40] !== oe || e[41] !== Se ? (ke = /* @__PURE__ */ y(J, { gap: ee, children: [
1339
+ let Re;
1340
+ e[39] !== J || e[40] !== oe || e[41] !== Se ? (Re = /* @__PURE__ */ C(J, { gap: ee, children: [
1109
1341
  oe,
1110
1342
  Se
1111
- ] }), e[39] = J, e[40] = oe, e[41] = Se, e[42] = ke) : ke = e[42];
1343
+ ] }), e[39] = J, e[40] = oe, e[41] = Se, e[42] = Re) : Re = e[42];
1112
1344
  let $e;
1113
- e[43] !== se.Body || e[44] !== ke ? ($e = /* @__PURE__ */ s(se.Body, { children: ke }), e[43] = se.Body, e[44] = ke, e[45] = $e) : $e = e[45];
1345
+ e[43] !== ae.Body || e[44] !== Re ? ($e = /* @__PURE__ */ s(ae.Body, { children: Re }), e[43] = ae.Body, e[44] = Re, e[45] = $e) : $e = e[45];
1346
+ let Le;
1347
+ e[46] !== h ? (Le = /* @__PURE__ */ s(de, { variant: "outline", onClick: h, children: "Cancel" }), e[46] = h, e[47] = Le) : Le = e[47];
1114
1348
  let Ee;
1115
- e[46] !== h ? (Ee = /* @__PURE__ */ s(ue, { variant: "outline", onClick: h, children: "Cancel" }), e[46] = h, e[47] = Ee) : Ee = e[47];
1349
+ e[48] !== P || e[49] !== p ? (Ee = /* @__PURE__ */ s(de, { onClick: p, disabled: P, children: "Select repository" }), e[48] = P, e[49] = p, e[50] = Ee) : Ee = e[50];
1116
1350
  let De;
1117
- e[48] !== P || e[49] !== p ? (De = /* @__PURE__ */ s(ue, { onClick: p, disabled: P, children: "Select repository" }), e[48] = P, e[49] = p, e[50] = De) : De = e[50];
1118
- let Le;
1119
- e[51] !== Ee || e[52] !== De ? (Le = /* @__PURE__ */ s(Z.Footer, { children: /* @__PURE__ */ y(Q, { direction: "row", gap: "sm", children: [
1120
- Ee,
1351
+ e[51] !== Le || e[52] !== Ee ? (De = /* @__PURE__ */ s(Z.Footer, { children: /* @__PURE__ */ C(X, { direction: "row", gap: "sm", children: [
1352
+ Le,
1353
+ Ee
1354
+ ] }) }), e[51] = Le, e[52] = Ee, e[53] = De) : De = e[53];
1355
+ let _e;
1356
+ e[54] !== U.Content || e[55] !== K || e[56] !== $e || e[57] !== De ? (_e = /* @__PURE__ */ C(U.Content, { children: [
1357
+ K,
1358
+ $e,
1121
1359
  De
1122
- ] }) }), e[51] = Ee, e[52] = De, e[53] = Le) : Le = e[53];
1360
+ ] }), e[54] = U.Content, e[55] = K, e[56] = $e, e[57] = De, e[58] = _e) : _e = e[58];
1123
1361
  let Oe;
1124
- e[54] !== j.Content || e[55] !== X || e[56] !== $e || e[57] !== Le ? (Oe = /* @__PURE__ */ y(j.Content, { children: [
1125
- X,
1126
- $e,
1127
- Le
1128
- ] }), e[54] = j.Content, e[55] = X, e[56] = $e, e[57] = Le, e[58] = Oe) : Oe = e[58];
1129
- let _e;
1130
- e[59] !== q.Positioner || e[60] !== Oe ? (_e = /* @__PURE__ */ s(q.Positioner, { children: Oe }), e[59] = q.Positioner, e[60] = Oe, e[61] = _e) : _e = e[61];
1131
- let qe;
1132
- return e[62] !== t || e[63] !== _.Root || e[64] !== H || e[65] !== N || e[66] !== _e ? (qe = /* @__PURE__ */ y(_.Root, { lazyMount: B, unmountOnExit: K, closeOnInteractOutside: W, open: t, onOpenChange: H, children: [
1133
- N,
1134
- _e
1135
- ] }), e[62] = t, e[63] = _.Root, e[64] = H, e[65] = N, e[66] = _e, e[67] = qe) : qe = e[67], qe;
1362
+ e[59] !== q.Positioner || e[60] !== _e ? (Oe = /* @__PURE__ */ s(q.Positioner, { children: _e }), e[59] = q.Positioner, e[60] = _e, e[61] = Oe) : Oe = e[61];
1363
+ let Xe;
1364
+ return e[62] !== t || e[63] !== z.Root || e[64] !== F || e[65] !== B || e[66] !== Oe ? (Xe = /* @__PURE__ */ C(z.Root, { lazyMount: E, unmountOnExit: H, closeOnInteractOutside: W, open: t, onOpenChange: F, children: [
1365
+ B,
1366
+ Oe
1367
+ ] }), e[62] = t, e[63] = z.Root, e[64] = F, e[65] = B, e[66] = Oe, e[67] = Xe) : Xe = e[67], Xe;
1136
1368
  }, Ze = {
1137
1369
  alignItems: "center",
1138
1370
  display: "inline-flex",
@@ -1152,7 +1384,7 @@ const Pi = (o) => {
1152
1384
  _focusVisible: {
1153
1385
  outline: "none"
1154
1386
  }
1155
- }, It = {
1387
+ }, Pt = {
1156
1388
  ...Ze,
1157
1389
  color: "fg",
1158
1390
  cursor: "default",
@@ -1160,98 +1392,98 @@ const Pi = (o) => {
1160
1392
  _hover: {
1161
1393
  textDecoration: "none"
1162
1394
  }
1163
- }, Zo = (o) => !!(o.url || o.onClick), Jo = (o) => {
1395
+ }, wl = (o) => !!(o.url || o.onClick), Il = (o) => {
1164
1396
  const e = O(14), {
1165
1397
  item: t,
1166
1398
  isCurrent: n,
1167
- linkComponent: r
1399
+ linkComponent: l
1168
1400
  } = o;
1169
- if (n && !Zo(t)) {
1170
- let l;
1171
- return e[0] !== t.title ? (l = /* @__PURE__ */ s(pe.CurrentLink, { ...It, children: t.title }), e[0] = t.title, e[1] = l) : l = e[1], l;
1401
+ if (n && !wl(t)) {
1402
+ let i;
1403
+ return e[0] !== t.title ? (i = /* @__PURE__ */ s(pe.CurrentLink, { ...Pt, children: t.title }), e[0] = t.title, e[1] = i) : i = e[1], i;
1172
1404
  }
1173
- if (t.url && r) {
1174
- let l;
1175
- return e[2] !== r || e[3] !== t.title || e[4] !== t.url ? (l = /* @__PURE__ */ s(pe.Link, { asChild: !0, ...Ze, children: /* @__PURE__ */ s(r, { to: t.url, children: t.title }) }), e[2] = r, e[3] = t.title, e[4] = t.url, e[5] = l) : l = e[5], l;
1405
+ if (t.url && l) {
1406
+ let i;
1407
+ return e[2] !== l || e[3] !== t.title || e[4] !== t.url ? (i = /* @__PURE__ */ s(pe.Link, { asChild: !0, ...Ze, children: /* @__PURE__ */ s(l, { to: t.url, children: t.title }) }), e[2] = l, e[3] = t.title, e[4] = t.url, e[5] = i) : i = e[5], i;
1176
1408
  }
1177
1409
  if (t.url) {
1178
- let l;
1179
- return e[6] !== t.title || e[7] !== t.url ? (l = /* @__PURE__ */ s(pe.Link, { href: t.url, ...Ze, children: t.title }), e[6] = t.title, e[7] = t.url, e[8] = l) : l = e[8], l;
1410
+ let i;
1411
+ return e[6] !== t.title || e[7] !== t.url ? (i = /* @__PURE__ */ s(pe.Link, { href: t.url, ...Ze, children: t.title }), e[6] = t.title, e[7] = t.url, e[8] = i) : i = e[8], i;
1180
1412
  }
1181
1413
  if (t.onClick) {
1182
- let l;
1183
- return e[9] !== t.onClick || e[10] !== t.title ? (l = /* @__PURE__ */ s(pe.Link, { as: "button", type: "button", onClick: t.onClick, ...Ze, children: t.title }), e[9] = t.onClick, e[10] = t.title, e[11] = l) : l = e[11], l;
1414
+ let i;
1415
+ return e[9] !== t.onClick || e[10] !== t.title ? (i = /* @__PURE__ */ s(pe.Link, { as: "button", type: "button", onClick: t.onClick, ...Ze, children: t.title }), e[9] = t.onClick, e[10] = t.title, e[11] = i) : i = e[11], i;
1184
1416
  }
1185
- let i;
1186
- return e[12] !== t.title ? (i = /* @__PURE__ */ s(pe.Link, { as: "span", ...It, children: t.title }), e[12] = t.title, e[13] = i) : i = e[13], i;
1187
- }, er = (o) => {
1417
+ let r;
1418
+ return e[12] !== t.title ? (r = /* @__PURE__ */ s(pe.Link, { as: "span", ...Pt, children: t.title }), e[12] = t.title, e[13] = r) : r = e[13], r;
1419
+ }, Tl = (o) => {
1188
1420
  const e = O(6), {
1189
1421
  item: t
1190
1422
  } = o;
1191
1423
  let n;
1192
- e[0] !== o ? (n = /* @__PURE__ */ s(Jo, { ...o }), e[0] = o, e[1] = n) : n = e[1];
1193
- const r = n;
1424
+ e[0] !== o ? (n = /* @__PURE__ */ s(Il, { ...o }), e[0] = o, e[1] = n) : n = e[1];
1425
+ const l = n;
1194
1426
  if (!t.contextMenuActions?.length)
1195
- return r;
1196
- let i;
1197
- e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (i = {
1427
+ return l;
1428
+ let r;
1429
+ e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (r = {
1198
1430
  placement: "bottom-start"
1199
- }, e[2] = i) : i = e[2];
1200
- let l;
1201
- return e[3] !== r || e[4] !== t.contextMenuActions ? (l = /* @__PURE__ */ s(Yt, { actions: t.contextMenuActions, positioning: i, children: r }), e[3] = r, e[4] = t.contextMenuActions, e[5] = l) : l = e[5], l;
1202
- }, tr = (o) => {
1431
+ }, e[2] = r) : r = e[2];
1432
+ let i;
1433
+ return e[3] !== l || e[4] !== t.contextMenuActions ? (i = /* @__PURE__ */ s(tn, { actions: t.contextMenuActions, positioning: r, children: l }), e[3] = l, e[4] = t.contextMenuActions, e[5] = i) : i = e[5], i;
1434
+ }, Al = (o) => {
1203
1435
  const e = O(3), {
1204
1436
  separator: t
1205
1437
  } = o;
1206
1438
  if (t === void 0) {
1207
- let r;
1208
- return e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (r = /* @__PURE__ */ s(pe.Separator, { flexShrink: 0 }), e[0] = r) : r = e[0], r;
1439
+ let l;
1440
+ return e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (l = /* @__PURE__ */ s(pe.Separator, { flexShrink: 0 }), e[0] = l) : l = e[0], l;
1209
1441
  }
1210
1442
  let n;
1211
1443
  return e[1] !== t ? (n = /* @__PURE__ */ s(pe.Separator, { flexShrink: 0, children: t }), e[1] = t, e[2] = n) : n = e[2], n;
1212
- }, Ei = bt.forwardRef(function(e, t) {
1444
+ }, ls = xt.forwardRef(function(e, t) {
1213
1445
  const n = O(21);
1214
- let r, i, l, c, a;
1446
+ let l, r, i, c, a;
1215
1447
  n[0] !== e ? ({
1216
1448
  separator: c,
1217
1449
  separatorGap: a,
1218
- items: i,
1219
- linkComponent: r,
1220
- ...l
1221
- } = e, n[0] = e, n[1] = r, n[2] = i, n[3] = l, n[4] = c, n[5] = a) : (r = n[1], i = n[2], l = n[3], c = n[4], a = n[5]);
1222
- let d;
1223
- if (n[6] !== r || n[7] !== i || n[8] !== c) {
1450
+ items: r,
1451
+ linkComponent: l,
1452
+ ...i
1453
+ } = e, n[0] = e, n[1] = l, n[2] = r, n[3] = i, n[4] = c, n[5] = a) : (l = n[1], r = n[2], i = n[3], c = n[4], a = n[5]);
1454
+ let f;
1455
+ if (n[6] !== l || n[7] !== r || n[8] !== c) {
1224
1456
  let h;
1225
- n[10] !== r || n[11] !== i.length || n[12] !== c ? (h = (p, m) => {
1226
- const g = m === i.length - 1;
1227
- return /* @__PURE__ */ y(bt.Fragment, { children: [
1228
- /* @__PURE__ */ s(pe.Item, { minW: "0", flexShrink: g ? 1 : 0, overflow: "hidden", children: /* @__PURE__ */ s(er, { item: p, isCurrent: g, linkComponent: r }) }),
1229
- g ? null : /* @__PURE__ */ s(tr, { separator: c })
1457
+ n[10] !== l || n[11] !== r.length || n[12] !== c ? (h = (p, m) => {
1458
+ const g = m === r.length - 1;
1459
+ return /* @__PURE__ */ C(xt.Fragment, { children: [
1460
+ /* @__PURE__ */ s(pe.Item, { minW: "0", flexShrink: g ? 1 : 0, overflow: "hidden", children: /* @__PURE__ */ s(Tl, { item: p, isCurrent: g, linkComponent: l }) }),
1461
+ g ? null : /* @__PURE__ */ s(Al, { separator: c })
1230
1462
  ] }, m);
1231
- }, n[10] = r, n[11] = i.length, n[12] = c, n[13] = h) : h = n[13], d = i.map(h), n[6] = r, n[7] = i, n[8] = c, n[9] = d;
1463
+ }, n[10] = l, n[11] = r.length, n[12] = c, n[13] = h) : h = n[13], f = r.map(h), n[6] = l, n[7] = r, n[8] = c, n[9] = f;
1232
1464
  } else
1233
- d = n[9];
1465
+ f = n[9];
1466
+ let d;
1467
+ n[14] !== a || n[15] !== f ? (d = /* @__PURE__ */ s(pe.List, { gap: a, flexWrap: "nowrap", minW: "0", maxW: "100%", overflow: "hidden", children: f }), n[14] = a, n[15] = f, n[16] = d) : d = n[16];
1234
1468
  let u;
1235
- n[14] !== a || n[15] !== d ? (u = /* @__PURE__ */ s(pe.List, { gap: a, flexWrap: "nowrap", minW: "0", maxW: "100%", overflow: "hidden", children: d }), n[14] = a, n[15] = d, n[16] = u) : u = n[16];
1236
- let f;
1237
- return n[17] !== t || n[18] !== l || n[19] !== u ? (f = /* @__PURE__ */ s(pe.Root, { ref: t, ...l, children: u }), n[17] = t, n[18] = l, n[19] = u, n[20] = f) : f = n[20], f;
1238
- }), nr = `url("data:image/svg+xml,%3Csvg width='6' height='6' viewBox='0 0 6 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%239C92AC' fill-opacity='0.2' fillRule='evenodd'%3E%3Cpath d='M5 0h1L0 6V5zM6 5v1H5z'/%3E%3C/g%3E%3C/svg%3E")`, or = (o) => {
1469
+ return n[17] !== t || n[18] !== i || n[19] !== d ? (u = /* @__PURE__ */ s(pe.Root, { ref: t, ...i, children: d }), n[17] = t, n[18] = i, n[19] = d, n[20] = u) : u = n[20], u;
1470
+ }), Pl = `url("data:image/svg+xml,%3Csvg width='6' height='6' viewBox='0 0 6 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%239C92AC' fill-opacity='0.2' fillRule='evenodd'%3E%3Cpath d='M5 0h1L0 6V5zM6 5v1H5z'/%3E%3C/g%3E%3C/svg%3E")`, kl = (o) => {
1239
1471
  const e = O(3);
1240
1472
  let t;
1241
1473
  e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t = {
1242
1474
  backgroundClip: "padding-box",
1243
- backgroundImage: nr,
1475
+ backgroundImage: Pl,
1244
1476
  display: "flex",
1245
1477
  width: "100%"
1246
1478
  }, e[0] = t) : t = e[0];
1247
1479
  let n;
1248
- return e[1] !== o ? (n = /* @__PURE__ */ s(G, { ...o, css: t }), e[1] = o, e[2] = n) : n = e[2], n;
1249
- }, Di = (o) => {
1480
+ return e[1] !== o ? (n = /* @__PURE__ */ s(j, { ...o, css: t }), e[1] = o, e[2] = n) : n = e[2], n;
1481
+ }, is = (o) => {
1250
1482
  const e = O(2);
1251
1483
  let t;
1252
- return e[0] !== o ? (t = /* @__PURE__ */ s(G, { p: "2", children: /* @__PURE__ */ s(F, { color: "fg.muted", fontWeight: "medium", textStyle: "sm", whiteSpace: "nowrap", ...o }) }), e[0] = o, e[1] = t) : t = e[1], t;
1484
+ return e[0] !== o ? (t = /* @__PURE__ */ s(j, { p: "2", children: /* @__PURE__ */ s(M, { color: "fg.muted", fontWeight: "medium", textStyle: "sm", whiteSpace: "nowrap", ...o }) }), e[0] = o, e[1] = t) : t = e[1], t;
1253
1485
  };
1254
- class Li extends wn {
1486
+ class rs extends Dn {
1255
1487
  state = {
1256
1488
  error: null
1257
1489
  };
@@ -1274,50 +1506,50 @@ class Li extends wn {
1274
1506
  fallback: t,
1275
1507
  label: n
1276
1508
  } = this.props, {
1277
- error: r
1509
+ error: l
1278
1510
  } = this.state;
1279
- return r ? t || /* @__PURE__ */ s(rr, { error: r, label: n, onReset: this.handleReset }) : e;
1511
+ return l ? t || /* @__PURE__ */ s(Rl, { error: l, label: n, onReset: this.handleReset }) : e;
1280
1512
  }
1281
1513
  }
1282
- const rr = (o) => {
1514
+ const Rl = (o) => {
1283
1515
  const e = O(12), {
1284
1516
  error: t,
1285
1517
  label: n,
1286
- onReset: r
1287
- } = o, i = n ?? "Something went wrong";
1288
- let l;
1289
- e[0] !== i ? (l = /* @__PURE__ */ s(F, { textStyle: "paragraph/M/medium", children: i }), e[0] = i, e[1] = l) : l = e[1];
1518
+ onReset: l
1519
+ } = o, r = n ?? "Something went wrong";
1520
+ let i;
1521
+ e[0] !== r ? (i = /* @__PURE__ */ s(M, { textStyle: "paragraph/M/medium", children: r }), e[0] = r, e[1] = i) : i = e[1];
1290
1522
  const c = t.message || "An unexpected error occurred while rendering this section.";
1291
1523
  let a;
1292
- e[2] !== c ? (a = /* @__PURE__ */ s(F, { textStyle: "paragraph/S/regular", children: c }), e[2] = c, e[3] = a) : a = e[3];
1524
+ e[2] !== c ? (a = /* @__PURE__ */ s(M, { textStyle: "paragraph/S/regular", children: c }), e[2] = c, e[3] = a) : a = e[3];
1525
+ let f;
1526
+ e[4] !== l ? (f = l ? /* @__PURE__ */ s(de, { size: "sm", variant: "primary", onClick: l, children: "Try again" }) : null, e[4] = l, e[5] = f) : f = e[5];
1293
1527
  let d;
1294
- e[4] !== r ? (d = r ? /* @__PURE__ */ s(ue, { size: "sm", variant: "primary", onClick: r, children: "Try again" }) : null, e[4] = r, e[5] = d) : d = e[5];
1295
- let u;
1296
- e[6] !== a || e[7] !== d ? (u = /* @__PURE__ */ y(Q, { gap: "sm", children: [
1528
+ e[6] !== a || e[7] !== f ? (d = /* @__PURE__ */ C(X, { gap: "sm", children: [
1297
1529
  a,
1298
- d
1299
- ] }), e[6] = a, e[7] = d, e[8] = u) : u = e[8];
1300
- let f;
1301
- return e[9] !== l || e[10] !== u ? (f = /* @__PURE__ */ s(or, { height: "100%", width: "100%", children: /* @__PURE__ */ s(bn, { children: /* @__PURE__ */ s(ht, { status: "error", title: l, children: u }) }) }), e[9] = l, e[10] = u, e[11] = f) : f = e[11], f;
1302
- }, lr = (o) => !!o && o !== "circle", ir = (o) => {
1530
+ f
1531
+ ] }), e[6] = a, e[7] = f, e[8] = d) : d = e[8];
1532
+ let u;
1533
+ return e[9] !== i || e[10] !== d ? (u = /* @__PURE__ */ s(kl, { height: "100%", width: "100%", children: /* @__PURE__ */ s(An, { children: /* @__PURE__ */ s(lt, { status: "error", title: i, children: d }) }) }), e[9] = i, e[10] = d, e[11] = u) : u = e[11], u;
1534
+ }, $l = (o) => !!o && o !== "circle", Ll = (o) => {
1303
1535
  const e = O(18);
1304
- let t, n, r, i, l;
1536
+ let t, n, l, r, i;
1305
1537
  e[0] !== o ? ({
1306
1538
  color: t,
1307
1539
  icon: n,
1308
- iconOptions: r,
1309
- showIcon: l,
1310
- ...i
1311
- } = o, e[0] = o, e[1] = t, e[2] = n, e[3] = r, e[4] = i, e[5] = l) : (t = e[1], n = e[2], r = e[3], i = e[4], l = e[5]);
1312
- const c = l === void 0 ? !0 : l;
1540
+ iconOptions: l,
1541
+ showIcon: i,
1542
+ ...r
1543
+ } = o, e[0] = o, e[1] = t, e[2] = n, e[3] = l, e[4] = r, e[5] = i) : (t = e[1], n = e[2], l = e[3], r = e[4], i = e[5]);
1544
+ const c = i === void 0 ? !0 : i;
1313
1545
  let a;
1314
- e[6] !== n || e[7] !== r ? (a = Gn(n, r), e[6] = n, e[7] = r, e[8] = a) : a = e[8];
1315
- const d = a, u = `${t}.500/15`;
1316
- let f;
1317
- e[9] !== d || e[10] !== t || e[11] !== n || e[12] !== c ? (f = c && lr(n) ? /* @__PURE__ */ s(ce, { as: d, boxSize: "icon-xs", color: `${t}.500` }) : /* @__PURE__ */ s(G, { boxSize: "tag-swatch-dot", borderRadius: "full", bg: `${t}.500` }), e[9] = d, e[10] = t, e[11] = n, e[12] = c, e[13] = f) : f = e[13];
1546
+ e[6] !== n || e[7] !== l ? (a = ao(n, l), e[6] = n, e[7] = l, e[8] = a) : a = e[8];
1547
+ const f = a, d = `${t}.500/15`;
1548
+ let u;
1549
+ e[9] !== f || e[10] !== t || e[11] !== n || e[12] !== c ? (u = c && $l(n) ? /* @__PURE__ */ s(ce, { as: f, boxSize: "icon-xs", color: `${t}.500` }) : /* @__PURE__ */ s(j, { boxSize: "tag-swatch-dot", borderRadius: "full", bg: `${t}.500` }), e[9] = f, e[10] = t, e[11] = n, e[12] = c, e[13] = u) : u = e[13];
1318
1550
  let h;
1319
- return e[14] !== i || e[15] !== u || e[16] !== f ? (h = /* @__PURE__ */ s(Sn, { boxSize: "tag-swatch", flexShrink: 0, borderRadius: "compact", bg: u, ...i, children: f }), e[14] = i, e[15] = u, e[16] = f, e[17] = h) : h = e[17], h;
1320
- }, sr = Pe("button", {
1551
+ return e[14] !== r || e[15] !== d || e[16] !== u ? (h = /* @__PURE__ */ s(Pn, { boxSize: "tag-swatch", flexShrink: 0, borderRadius: "compact", bg: d, ...r, children: u }), e[14] = r, e[15] = d, e[16] = u, e[17] = h) : h = e[17], h;
1552
+ }, El = Ae("button", {
1321
1553
  base: {
1322
1554
  display: "inline-flex",
1323
1555
  borderRadius: "compact",
@@ -1328,7 +1560,7 @@ const rr = (o) => {
1328
1560
  opacity: 0.5
1329
1561
  }
1330
1562
  }
1331
- }), ar = Pe("button", {
1563
+ }), Dl = Ae("button", {
1332
1564
  base: {
1333
1565
  boxSize: "tag-color-dot",
1334
1566
  borderRadius: "full",
@@ -1341,7 +1573,7 @@ const rr = (o) => {
1341
1573
  outlineColor: "fg"
1342
1574
  }
1343
1575
  }
1344
- }), cr = Pe("button", {
1576
+ }), _l = Ae("button", {
1345
1577
  base: {
1346
1578
  display: "inline-flex",
1347
1579
  alignItems: "center",
@@ -1354,135 +1586,135 @@ const rr = (o) => {
1354
1586
  bg: "bg.hover"
1355
1587
  }
1356
1588
  }
1357
- }), dr = (o) => {
1589
+ }), Ol = (o) => {
1358
1590
  const e = O(39), {
1359
1591
  color: t,
1360
1592
  colorOptions: n,
1361
- icon: r,
1362
- iconOptions: i,
1363
- onColorChange: l,
1593
+ icon: l,
1594
+ iconOptions: r,
1595
+ onColorChange: i,
1364
1596
  onIconChange: c,
1365
1597
  disabled: a,
1366
- showIcons: d,
1367
- colorLabel: u,
1368
- iconLabel: f,
1598
+ showIcons: f,
1599
+ colorLabel: d,
1600
+ iconLabel: u,
1369
1601
  "aria-label": h
1370
- } = o, p = n === void 0 ? Un : n, m = i === void 0 ? jn : i, g = d === void 0 ? !0 : d, x = u === void 0 ? "Color" : u, b = f === void 0 ? "Icon" : f, k = h === void 0 ? "Pick color and icon" : h, A = r === "circle" ? null : r ?? null;
1602
+ } = o, p = n === void 0 ? fo : n, m = r === void 0 ? co : r, g = f === void 0 ? !0 : f, S = d === void 0 ? "Color" : d, b = u === void 0 ? "Icon" : u, T = h === void 0 ? "Pick color and icon" : h, I = l === "circle" ? null : l ?? null;
1371
1603
  let R;
1372
1604
  e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (R = {
1373
1605
  placement: "bottom-start"
1374
1606
  }, e[0] = R) : R = e[0];
1375
- let S;
1376
- e[1] !== t || e[2] !== r || e[3] !== m || e[4] !== g ? (S = /* @__PURE__ */ s(ir, { color: t, icon: r, iconOptions: m, showIcon: g }), e[1] = t, e[2] = r, e[3] = m, e[4] = g, e[5] = S) : S = e[5];
1607
+ let x;
1608
+ e[1] !== t || e[2] !== l || e[3] !== m || e[4] !== g ? (x = /* @__PURE__ */ s(Ll, { color: t, icon: l, iconOptions: m, showIcon: g }), e[1] = t, e[2] = l, e[3] = m, e[4] = g, e[5] = x) : x = e[5];
1377
1609
  let $;
1378
- e[6] !== k || e[7] !== a || e[8] !== S ? ($ = /* @__PURE__ */ s(Xe.Trigger, { asChild: !0, children: /* @__PURE__ */ s(sr, { type: "button", disabled: a, "aria-label": k, children: S }) }), e[6] = k, e[7] = a, e[8] = S, e[9] = $) : $ = e[9];
1379
- const I = g ? "tag-picker" : "tag-picker-color-only";
1610
+ e[6] !== T || e[7] !== a || e[8] !== x ? ($ = /* @__PURE__ */ s(Ke.Trigger, { asChild: !0, children: /* @__PURE__ */ s(El, { type: "button", disabled: a, "aria-label": T, children: x }) }), e[6] = T, e[7] = a, e[8] = x, e[9] = $) : $ = e[9];
1611
+ const A = g ? "tag-picker" : "tag-picker-color-only";
1380
1612
  let P;
1381
- e[10] !== x ? (P = /* @__PURE__ */ s(F, { textStyle: "label/S/medium", color: "fg.muted", children: x }), e[10] = x, e[11] = P) : P = e[11];
1613
+ e[10] !== S ? (P = /* @__PURE__ */ s(M, { textStyle: "label/S/medium", color: "fg.muted", children: S }), e[10] = S, e[11] = P) : P = e[11];
1382
1614
  const w = `repeat(${g ? 10 : 5}, 1fr)`;
1383
- let C;
1384
- if (e[12] !== t || e[13] !== p || e[14] !== l) {
1615
+ let y;
1616
+ if (e[12] !== t || e[13] !== p || e[14] !== i) {
1385
1617
  let v;
1386
- e[16] !== t || e[17] !== l ? (v = (_) => /* @__PURE__ */ s(ar, { type: "button", bg: `${_}.500`, "aria-label": _, "aria-pressed": _ === t, "data-selected": _ === t ? "" : void 0, onClick: () => l(_) }, _), e[16] = t, e[17] = l, e[18] = v) : v = e[18], C = p.map(v), e[12] = t, e[13] = p, e[14] = l, e[15] = C;
1618
+ e[16] !== t || e[17] !== i ? (v = (z) => /* @__PURE__ */ s(Dl, { type: "button", bg: `${z}.500`, "aria-label": z, "aria-pressed": z === t, "data-selected": z === t ? "" : void 0, onClick: () => i(z) }, z), e[16] = t, e[17] = i, e[18] = v) : v = e[18], y = p.map(v), e[12] = t, e[13] = p, e[14] = i, e[15] = y;
1387
1619
  } else
1388
- C = e[15];
1389
- let D;
1390
- e[19] !== w || e[20] !== C ? (D = /* @__PURE__ */ s(gt, { templateColumns: w, gap: "2xs", justifyItems: "center", children: C }), e[19] = w, e[20] = C, e[21] = D) : D = e[21];
1620
+ y = e[15];
1391
1621
  let L;
1392
- e[22] !== t || e[23] !== b || e[24] !== m || e[25] !== c || e[26] !== A || e[27] !== g ? (L = g ? /* @__PURE__ */ y(Me, { children: [
1393
- /* @__PURE__ */ s(G, { borderTop: "subtle" }),
1394
- /* @__PURE__ */ s(F, { textStyle: "label/S/medium", color: "fg.muted", children: b }),
1395
- /* @__PURE__ */ s(gt, { templateColumns: "repeat(8, 1fr)", gap: "3xs", justifyItems: "center", children: m.map((v) => {
1396
- const _ = v.value === A;
1397
- return /* @__PURE__ */ s(cr, { type: "button", color: _ ? `${t}.500` : void 0, bg: _ ? `${t}.500/15` : void 0, _hover: _ ? {
1622
+ e[19] !== w || e[20] !== y ? (L = /* @__PURE__ */ s(St, { templateColumns: w, gap: "2xs", justifyItems: "center", children: y }), e[19] = w, e[20] = y, e[21] = L) : L = e[21];
1623
+ let D;
1624
+ e[22] !== t || e[23] !== b || e[24] !== m || e[25] !== c || e[26] !== I || e[27] !== g ? (D = g ? /* @__PURE__ */ C(He, { children: [
1625
+ /* @__PURE__ */ s(j, { borderTop: "subtle" }),
1626
+ /* @__PURE__ */ s(M, { textStyle: "label/S/medium", color: "fg.muted", children: b }),
1627
+ /* @__PURE__ */ s(St, { templateColumns: "repeat(8, 1fr)", gap: "3xs", justifyItems: "center", children: m.map((v) => {
1628
+ const z = v.value === I;
1629
+ return /* @__PURE__ */ s(_l, { type: "button", color: z ? `${t}.500` : void 0, bg: z ? `${t}.500/15` : void 0, _hover: z ? {
1398
1630
  bg: `${t}.500/15`
1399
- } : void 0, "aria-label": v.label, "aria-pressed": _, onClick: () => c?.(v.value), children: /* @__PURE__ */ s(ce, { as: v.icon, boxSize: "icon-xs" }) }, v.value ?? "none");
1631
+ } : void 0, "aria-label": v.label, "aria-pressed": z, onClick: () => c?.(v.value), children: /* @__PURE__ */ s(ce, { as: v.icon, boxSize: "icon-xs" }) }, v.value ?? "none");
1400
1632
  }) })
1401
- ] }) : null, e[22] = t, e[23] = b, e[24] = m, e[25] = c, e[26] = A, e[27] = g, e[28] = L) : L = e[28];
1402
- let T;
1403
- e[29] !== P || e[30] !== D || e[31] !== L ? (T = /* @__PURE__ */ y(Q, { gap: "compact", p: "sm", children: [
1633
+ ] }) : null, e[22] = t, e[23] = b, e[24] = m, e[25] = c, e[26] = I, e[27] = g, e[28] = D) : D = e[28];
1634
+ let k;
1635
+ e[29] !== P || e[30] !== L || e[31] !== D ? (k = /* @__PURE__ */ C(X, { gap: "compact", p: "sm", children: [
1404
1636
  P,
1405
- D,
1406
- L
1407
- ] }), e[29] = P, e[30] = D, e[31] = L, e[32] = T) : T = e[32];
1408
- let z;
1409
- e[33] !== T || e[34] !== I ? (z = /* @__PURE__ */ s(Je, { children: /* @__PURE__ */ s(Xe.Positioner, { children: /* @__PURE__ */ s(Xe.Content, { width: I, bg: "bg.elevated", children: T }) }) }), e[33] = T, e[34] = I, e[35] = z) : z = e[35];
1410
- let E;
1411
- return e[36] !== z || e[37] !== $ ? (E = /* @__PURE__ */ y(Xe.Root, { positioning: R, children: [
1637
+ L,
1638
+ D
1639
+ ] }), e[29] = P, e[30] = L, e[31] = D, e[32] = k) : k = e[32];
1640
+ let N;
1641
+ e[33] !== k || e[34] !== A ? (N = /* @__PURE__ */ s(tt, { children: /* @__PURE__ */ s(Ke.Positioner, { children: /* @__PURE__ */ s(Ke.Content, { width: A, bg: "bg.elevated", children: k }) }) }), e[33] = k, e[34] = A, e[35] = N) : N = e[35];
1642
+ let _;
1643
+ return e[36] !== N || e[37] !== $ ? (_ = /* @__PURE__ */ C(Ke.Root, { positioning: R, children: [
1412
1644
  $,
1413
- z
1414
- ] }), e[36] = z, e[37] = $, e[38] = E) : E = e[38], E;
1415
- }, ur = (o) => {
1645
+ N
1646
+ ] }), e[36] = N, e[37] = $, e[38] = _) : _ = e[38], _;
1647
+ }, zl = (o) => {
1416
1648
  const e = O(6);
1417
1649
  let t, n;
1418
1650
  e[0] !== o ? ({
1419
1651
  children: t,
1420
1652
  ...n
1421
1653
  } = o, e[0] = o, e[1] = t, e[2] = n) : (t = e[1], n = e[2]);
1422
- let r;
1423
- return e[3] !== t || e[4] !== n ? (r = /* @__PURE__ */ s(G, { borderWidth: "1px", borderColor: "border.subtle", borderRadius: "xs", bg: "bg", ...n, children: t }), e[3] = t, e[4] = n, e[5] = r) : r = e[5], r;
1424
- }, fr = (o) => {
1654
+ let l;
1655
+ return e[3] !== t || e[4] !== n ? (l = /* @__PURE__ */ s(j, { borderWidth: "1px", borderColor: "border.subtle", borderRadius: "xs", bg: "bg", ...n, children: t }), e[3] = t, e[4] = n, e[5] = l) : l = e[5], l;
1656
+ }, Nl = (o) => {
1425
1657
  const e = O(6);
1426
1658
  let t, n;
1427
1659
  e[0] !== o ? ({
1428
1660
  children: t,
1429
1661
  ...n
1430
1662
  } = o, e[0] = o, e[1] = t, e[2] = n) : (t = e[1], n = e[2]);
1431
- let r;
1432
- return e[3] !== t || e[4] !== n ? (r = /* @__PURE__ */ s(G, { p: "md", ...n, children: t }), e[3] = t, e[4] = n, e[5] = r) : r = e[5], r;
1433
- }, Oi = (o) => {
1663
+ let l;
1664
+ return e[3] !== t || e[4] !== n ? (l = /* @__PURE__ */ s(j, { p: "md", ...n, children: t }), e[3] = t, e[4] = n, e[5] = l) : l = e[5], l;
1665
+ }, ss = (o) => {
1434
1666
  const e = O(30), {
1435
1667
  icon: t,
1436
1668
  name: n,
1437
- description: r,
1438
- id: i,
1439
- version: l,
1669
+ description: l,
1670
+ id: r,
1671
+ version: i,
1440
1672
  category: c,
1441
1673
  active: a,
1442
- actionLabel: d
1443
- } = o, u = a === void 0 ? !1 : a;
1444
- let f;
1445
- e[0] !== t ? (f = /* @__PURE__ */ s(ce, { boxSize: "1em", fontSize: "2xl", flexShrink: "0", color: "fg.muted", children: t }), e[0] = t, e[1] = f) : f = e[1];
1674
+ actionLabel: f
1675
+ } = o, d = a === void 0 ? !1 : a;
1676
+ let u;
1677
+ e[0] !== t ? (u = /* @__PURE__ */ s(ce, { boxSize: "1em", fontSize: "2xl", flexShrink: "0", color: "fg.muted", children: t }), e[0] = t, e[1] = u) : u = e[1];
1446
1678
  let h;
1447
- e[2] !== n ? (h = /* @__PURE__ */ s(F, { textStyle: "sm", fontWeight: "semibold", children: n }), e[2] = n, e[3] = h) : h = e[3];
1679
+ e[2] !== n ? (h = /* @__PURE__ */ s(M, { textStyle: "sm", fontWeight: "semibold", children: n }), e[2] = n, e[3] = h) : h = e[3];
1448
1680
  let p;
1449
- e[4] !== i ? (p = /* @__PURE__ */ s(Te, { size: "sm", variant: "outline", children: i }), e[4] = i, e[5] = p) : p = e[5];
1681
+ e[4] !== r ? (p = /* @__PURE__ */ s(Te, { size: "sm", variant: "outline", children: r }), e[4] = r, e[5] = p) : p = e[5];
1450
1682
  let m;
1451
- e[6] !== l ? (m = l && /* @__PURE__ */ y(Te, { size: "sm", variant: "outline", children: [
1683
+ e[6] !== i ? (m = i && /* @__PURE__ */ C(Te, { size: "sm", variant: "outline", children: [
1452
1684
  "v",
1453
- l
1454
- ] }), e[6] = l, e[7] = m) : m = e[7];
1685
+ i
1686
+ ] }), e[6] = i, e[7] = m) : m = e[7];
1455
1687
  let g;
1456
1688
  e[8] !== c ? (g = c && /* @__PURE__ */ s(Te, { size: "sm", variant: "outline", children: c }), e[8] = c, e[9] = g) : g = e[9];
1457
- let x;
1458
- e[10] !== h || e[11] !== p || e[12] !== m || e[13] !== g ? (x = /* @__PURE__ */ y(ae, { gap: "2", flexWrap: "wrap", children: [
1689
+ let S;
1690
+ e[10] !== h || e[11] !== p || e[12] !== m || e[13] !== g ? (S = /* @__PURE__ */ C(le, { gap: "2", flexWrap: "wrap", children: [
1459
1691
  h,
1460
1692
  p,
1461
1693
  m,
1462
1694
  g
1463
- ] }), e[10] = h, e[11] = p, e[12] = m, e[13] = g, e[14] = x) : x = e[14];
1695
+ ] }), e[10] = h, e[11] = p, e[12] = m, e[13] = g, e[14] = S) : S = e[14];
1464
1696
  let b;
1465
- e[15] !== r ? (b = /* @__PURE__ */ s(F, { color: "fg.muted", children: r }), e[15] = r, e[16] = b) : b = e[16];
1466
- let k;
1467
- e[17] !== x || e[18] !== b ? (k = /* @__PURE__ */ s(G, { flex: "1", minW: "0", children: /* @__PURE__ */ y(Q, { gap: "1", children: [
1468
- x,
1697
+ e[15] !== l ? (b = /* @__PURE__ */ s(M, { color: "fg.muted", children: l }), e[15] = l, e[16] = b) : b = e[16];
1698
+ let T;
1699
+ e[17] !== S || e[18] !== b ? (T = /* @__PURE__ */ s(j, { flex: "1", minW: "0", children: /* @__PURE__ */ C(X, { gap: "1", children: [
1700
+ S,
1469
1701
  b
1470
- ] }) }), e[17] = x, e[18] = b, e[19] = k) : k = e[19];
1471
- let A;
1472
- e[20] !== u ? (A = u && /* @__PURE__ */ s(ce, { color: "fg.success", children: /* @__PURE__ */ s(et, {}) }), e[20] = u, e[21] = A) : A = e[21];
1473
- const R = d ?? (u ? "Active" : "Connect");
1474
- let S;
1475
- e[22] !== u || e[23] !== R || e[24] !== A ? (S = /* @__PURE__ */ y(ue, { type: "button", disabled: u, size: "sm", variant: "outline", colorPalette: "gray", bg: "bg", flexShrink: "0", children: [
1476
- A,
1702
+ ] }) }), e[17] = S, e[18] = b, e[19] = T) : T = e[19];
1703
+ let I;
1704
+ e[20] !== d ? (I = d && /* @__PURE__ */ s(ce, { color: "fg.success", children: /* @__PURE__ */ s(nt, {}) }), e[20] = d, e[21] = I) : I = e[21];
1705
+ const R = f ?? (d ? "Active" : "Connect");
1706
+ let x;
1707
+ e[22] !== d || e[23] !== R || e[24] !== I ? (x = /* @__PURE__ */ C(de, { type: "button", disabled: d, size: "sm", variant: "outline", colorPalette: "gray", bg: "bg", flexShrink: "0", children: [
1708
+ I,
1477
1709
  R
1478
- ] }), e[22] = u, e[23] = R, e[24] = A, e[25] = S) : S = e[25];
1710
+ ] }), e[22] = d, e[23] = R, e[24] = I, e[25] = x) : x = e[25];
1479
1711
  let $;
1480
- return e[26] !== f || e[27] !== S || e[28] !== k ? ($ = /* @__PURE__ */ s(ur, { children: /* @__PURE__ */ s(fr, { children: /* @__PURE__ */ y(ae, { gap: "4", alignItems: "flex-start", children: [
1481
- f,
1482
- k,
1483
- S
1484
- ] }) }) }), e[26] = f, e[27] = S, e[28] = k, e[29] = $) : $ = e[29], $;
1485
- }, hr = xn({
1712
+ return e[26] !== u || e[27] !== x || e[28] !== T ? ($ = /* @__PURE__ */ s(zl, { children: /* @__PURE__ */ s(Nl, { children: /* @__PURE__ */ C(le, { gap: "4", alignItems: "flex-start", children: [
1713
+ u,
1714
+ T,
1715
+ x
1716
+ ] }) }) }), e[26] = u, e[27] = x, e[28] = T, e[29] = $) : $ = e[29], $;
1717
+ }, Bl = Gt({
1486
1718
  className: "ps-segmented-control",
1487
1719
  slots: ["root", "item"],
1488
1720
  base: {
@@ -1551,51 +1783,51 @@ const rr = (o) => {
1551
1783
  size: "sm"
1552
1784
  }
1553
1785
  }), {
1554
- withProvider: mr,
1555
- withContext: pr
1556
- } = ft({
1557
- recipe: hr
1558
- }), gr = mr("div", "root"), br = pr("button", "item"), _i = (o) => {
1786
+ withProvider: Wl,
1787
+ withContext: Ml
1788
+ } = et({
1789
+ recipe: Bl
1790
+ }), Fl = Wl("div", "root"), Hl = Ml("button", "item"), as = (o) => {
1559
1791
  const e = O(20);
1560
- let t, n, r, i, l, c;
1792
+ let t, n, l, r, i, c;
1561
1793
  e[0] !== o ? ({
1562
- options: i,
1794
+ options: r,
1563
1795
  value: c,
1564
- onValueChange: r,
1796
+ onValueChange: l,
1565
1797
  disabled: n,
1566
1798
  "aria-label": t,
1567
- ...l
1568
- } = o, e[0] = o, e[1] = t, e[2] = n, e[3] = r, e[4] = i, e[5] = l, e[6] = c) : (t = e[1], n = e[2], r = e[3], i = e[4], l = e[5], c = e[6]);
1799
+ ...i
1800
+ } = o, e[0] = o, e[1] = t, e[2] = n, e[3] = l, e[4] = r, e[5] = i, e[6] = c) : (t = e[1], n = e[2], l = e[3], r = e[4], i = e[5], c = e[6]);
1569
1801
  let a;
1570
- if (e[7] !== n || e[8] !== r || e[9] !== i || e[10] !== c) {
1571
- let u;
1572
- e[12] !== n || e[13] !== r || e[14] !== c ? (u = (f) => {
1573
- const h = f.value === c;
1574
- return /* @__PURE__ */ s(br, { type: "button", "aria-pressed": h, "data-selected": h ? "" : void 0, disabled: n, onClick: () => r(f.value), children: f.label }, f.value);
1575
- }, e[12] = n, e[13] = r, e[14] = c, e[15] = u) : u = e[15], a = i.map(u), e[7] = n, e[8] = r, e[9] = i, e[10] = c, e[11] = a;
1802
+ if (e[7] !== n || e[8] !== l || e[9] !== r || e[10] !== c) {
1803
+ let d;
1804
+ e[12] !== n || e[13] !== l || e[14] !== c ? (d = (u) => {
1805
+ const h = u.value === c;
1806
+ return /* @__PURE__ */ s(Hl, { type: "button", "aria-pressed": h, "data-selected": h ? "" : void 0, disabled: n, onClick: () => l(u.value), children: u.label }, u.value);
1807
+ }, e[12] = n, e[13] = l, e[14] = c, e[15] = d) : d = e[15], a = r.map(d), e[7] = n, e[8] = l, e[9] = r, e[10] = c, e[11] = a;
1576
1808
  } else
1577
1809
  a = e[11];
1578
- let d;
1579
- return e[16] !== t || e[17] !== l || e[18] !== a ? (d = /* @__PURE__ */ s(gr, { role: "group", "aria-label": t, ...l, children: a }), e[16] = t, e[17] = l, e[18] = a, e[19] = d) : d = e[19], d;
1580
- }, Sr = vn({
1810
+ let f;
1811
+ return e[16] !== t || e[17] !== i || e[18] !== a ? (f = /* @__PURE__ */ s(Fl, { role: "group", "aria-label": t, ...i, children: a }), e[16] = t, e[17] = i, e[18] = a, e[19] = f) : f = e[19], f;
1812
+ }, Vl = kn({
1581
1813
  placement: "top",
1582
1814
  pauseOnPageIdle: !0,
1583
1815
  duration: 1e4
1584
- }), zi = () => {
1816
+ }), cs = () => {
1585
1817
  const o = O(1);
1586
1818
  let e;
1587
- return o[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ s(Je, { children: /* @__PURE__ */ s(yn, { toaster: Sr, insetInline: {
1819
+ return o[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ s(tt, { children: /* @__PURE__ */ s(Rn, { toaster: Vl, insetInline: {
1588
1820
  mdDown: "4"
1589
- }, children: xr }) }), o[0] = e) : e = o[0], e;
1821
+ }, children: Gl }) }), o[0] = e) : e = o[0], e;
1590
1822
  };
1591
- function xr(o) {
1592
- return /* @__PURE__ */ y(Ne.Root, { width: {
1823
+ function Gl(o) {
1824
+ return /* @__PURE__ */ C(Ne.Root, { width: {
1593
1825
  md: "sm"
1594
1826
  }, alignItems: "start", borderRadius: "xs", gap: "xs", px: "sm", py: "xs", minH: "auto", children: [
1595
- o.type === "loading" ? /* @__PURE__ */ s(jt, { size: "sm", color: "blue.solid" }) : /* @__PURE__ */ s(Ne.Indicator, {}),
1596
- /* @__PURE__ */ y(Q, { gap: "0", flex: "1", minWidth: "0", maxWidth: "100%", children: [
1827
+ o.type === "loading" ? /* @__PURE__ */ s(pt, { size: "sm", color: "blue.solid" }) : /* @__PURE__ */ s(Ne.Indicator, {}),
1828
+ /* @__PURE__ */ C(X, { gap: "0", flex: "1", minWidth: "0", maxWidth: "100%", children: [
1597
1829
  o.title && /* @__PURE__ */ s(Ne.Title, { textStyle: "label/S/medium", children: o.title }),
1598
- o.description && /* @__PURE__ */ s(tt, { maxHeight: "12rem", contentProps: {
1830
+ o.description && /* @__PURE__ */ s(ot, { maxHeight: "12rem", contentProps: {
1599
1831
  paddingEnd: "1"
1600
1832
  }, children: /* @__PURE__ */ s(Ne.Description, { textStyle: "paragraph/S/regular", whiteSpace: "pre-wrap", wordBreak: "break-word", children: o.description }) })
1601
1833
  ] }),
@@ -1603,159 +1835,159 @@ function xr(o) {
1603
1835
  /* @__PURE__ */ s(Ne.CloseTrigger, {})
1604
1836
  ] });
1605
1837
  }
1606
- const Ni = (o) => {
1838
+ const ds = (o) => {
1607
1839
  const e = O(6);
1608
1840
  let t, n;
1609
1841
  e[0] !== o ? ({
1610
1842
  children: t,
1611
1843
  ...n
1612
1844
  } = o, e[0] = o, e[1] = t, e[2] = n) : (t = e[1], n = e[2]);
1613
- let r;
1614
- return e[3] !== t || e[4] !== n ? (r = /* @__PURE__ */ s(Q, { gap: "sm", minW: "0", ...n, children: t }), e[3] = t, e[4] = n, e[5] = r) : r = e[5], r;
1615
- }, Tt = {
1845
+ let l;
1846
+ return e[3] !== t || e[4] !== n ? (l = /* @__PURE__ */ s(X, { gap: "sm", minW: "0", ...n, children: t }), e[3] = t, e[4] = n, e[5] = l) : l = e[5], l;
1847
+ }, kt = {
1616
1848
  open: !0,
1617
1849
  expandedSections: [],
1618
1850
  expandedNodes: [],
1619
1851
  width: null
1620
- }, vr = "pstdio/ui/sidenav", yr = (o) => `${vr}/${o}`, Pt = (o, e) => o.includes(e) ? o.filter((t) => t !== e) : [...o, e], At = (o, e, t) => t ? o.includes(e) ? o : [...o, e] : o.filter((n) => n !== e), Cr = (o) => ({
1852
+ }, jl = "pstdio/ui/sidenav", Ul = (o) => `${jl}/${o}`, Rt = (o, e) => o.includes(e) ? o.filter((t) => t !== e) : [...o, e], $t = (o, e, t) => t ? o.includes(e) ? o : [...o, e] : o.filter((n) => n !== e), Ql = (o) => ({
1621
1853
  open: o.open,
1622
1854
  expandedSections: o.expandedSections,
1623
1855
  expandedNodes: o.expandedNodes,
1624
1856
  width: o.width
1625
- }), wr = (o) => {
1857
+ }), Xl = (o) => {
1626
1858
  const {
1627
1859
  storageKey: e,
1628
1860
  initialState: t
1629
1861
  } = o, n = {
1630
- ...Tt,
1862
+ ...kt,
1631
1863
  ...t
1632
1864
  };
1633
- return lt()(ot((r) => ({
1865
+ return at()(rt((l) => ({
1634
1866
  ...n,
1635
- openSidenav: () => r((i) => ({
1636
- ...i,
1867
+ openSidenav: () => l((r) => ({
1868
+ ...r,
1637
1869
  open: !0
1638
1870
  })),
1639
- closeSidenav: () => r((i) => ({
1640
- ...i,
1871
+ closeSidenav: () => l((r) => ({
1872
+ ...r,
1641
1873
  open: !1
1642
1874
  })),
1643
- toggleSidenav: () => r((i) => ({
1644
- ...i,
1645
- open: !i.open
1875
+ toggleSidenav: () => l((r) => ({
1876
+ ...r,
1877
+ open: !r.open
1646
1878
  })),
1647
- toggleSection: (i) => r((l) => ({
1648
- ...l,
1649
- expandedSections: Pt(l.expandedSections, i)
1879
+ toggleSection: (r) => l((i) => ({
1880
+ ...i,
1881
+ expandedSections: Rt(i.expandedSections, r)
1650
1882
  })),
1651
- toggleNode: (i) => r((l) => ({
1652
- ...l,
1653
- expandedNodes: Pt(l.expandedNodes, i)
1883
+ toggleNode: (r) => l((i) => ({
1884
+ ...i,
1885
+ expandedNodes: Rt(i.expandedNodes, r)
1654
1886
  })),
1655
- setSectionExpanded: (i, l) => r((c) => ({
1887
+ setSectionExpanded: (r, i) => l((c) => ({
1656
1888
  ...c,
1657
- expandedSections: At(c.expandedSections, i, l)
1889
+ expandedSections: $t(c.expandedSections, r, i)
1658
1890
  })),
1659
- setNodeExpanded: (i, l) => r((c) => ({
1891
+ setNodeExpanded: (r, i) => l((c) => ({
1660
1892
  ...c,
1661
- expandedNodes: At(c.expandedNodes, i, l)
1893
+ expandedNodes: $t(c.expandedNodes, r, i)
1662
1894
  })),
1663
- setWidth: (i) => r((l) => ({
1664
- ...l,
1665
- width: i
1895
+ setWidth: (r) => l((i) => ({
1896
+ ...i,
1897
+ width: r
1666
1898
  })),
1667
- reset: () => r(Tt)
1899
+ reset: () => l(kt)
1668
1900
  }), {
1669
- name: yr(e),
1670
- storage: rt(Ve),
1671
- partialize: Cr
1901
+ name: Ul(e),
1902
+ storage: st(Ve),
1903
+ partialize: Ql
1672
1904
  }));
1673
- }, Rt = /* @__PURE__ */ new Map(), Ir = (o, e) => {
1674
- const t = Rt.get(o);
1905
+ }, Lt = /* @__PURE__ */ new Map(), ql = (o, e) => {
1906
+ const t = Lt.get(o);
1675
1907
  if (t)
1676
1908
  return t;
1677
- const n = wr({
1909
+ const n = Xl({
1678
1910
  storageKey: o,
1679
1911
  initialState: e
1680
1912
  });
1681
- return Rt.set(o, n), n;
1913
+ return Lt.set(o, n), n;
1682
1914
  }, Be = (o, e, t) => {
1683
1915
  const n = O(3);
1684
- let r;
1685
- return n[0] !== t || n[1] !== o ? (r = Ir(o, t), n[0] = t, n[1] = o, n[2] = r) : r = n[2], nt(r, e);
1686
- }, Tr = (o) => {
1916
+ let l;
1917
+ return n[0] !== t || n[1] !== o ? (l = ql(o, t), n[0] = t, n[1] = o, n[2] = l) : l = n[2], it(l, e);
1918
+ }, Kl = (o) => {
1687
1919
  const e = O(2), {
1688
1920
  children: t
1689
1921
  } = o;
1690
1922
  if (!t)
1691
1923
  return null;
1692
1924
  let n;
1693
- return e[0] !== t ? (n = /* @__PURE__ */ s(G, { bg: "bg", position: "sticky", bottom: "0", overflow: "hidden", children: t }), e[0] = t, e[1] = n) : n = e[1], n;
1694
- }, Pr = (o) => {
1925
+ return e[0] !== t ? (n = /* @__PURE__ */ s(j, { bg: "bg", position: "sticky", bottom: "0", overflow: "hidden", children: t }), e[0] = t, e[1] = n) : n = e[1], n;
1926
+ }, Yl = (o) => {
1695
1927
  const e = O(2), {
1696
1928
  children: t
1697
1929
  } = o;
1698
1930
  let n;
1699
- return e[0] !== t ? (n = /* @__PURE__ */ s(ae, { "data-testid": "sidenav-header", justify: "space-between", align: "center", minH: Oo, bg: "bg", position: "sticky", top: "0", zIndex: "1", gap: "0", children: /* @__PURE__ */ s(ae, { minW: "0", flex: "1", children: t }) }), e[0] = t, e[1] = n) : n = e[1], n;
1700
- }, Ar = 240, Rr = 200, kr = 480, $r = (o, e, t) => Math.min(Math.max(o, e), t), Er = (o, e = Ar) => {
1931
+ return e[0] !== t ? (n = /* @__PURE__ */ s(le, { "data-testid": "sidenav-header", justify: "space-between", align: "center", minH: il, bg: "bg", position: "sticky", top: "0", zIndex: "1", gap: "0", children: /* @__PURE__ */ s(le, { minW: "0", flex: "1", children: t }) }), e[0] = t, e[1] = n) : n = e[1], n;
1932
+ }, Zl = 240, Jl = 200, ei = 480, ti = (o, e, t) => Math.min(Math.max(o, e), t), ni = (o, e = Zl) => {
1701
1933
  if (typeof o == "number") return o;
1702
1934
  if (typeof o == "string") {
1703
1935
  const t = parseInt(o, 10);
1704
1936
  if (!Number.isNaN(t)) return t;
1705
1937
  }
1706
1938
  return e;
1707
- }, Bi = (o) => {
1939
+ }, fs = (o) => {
1708
1940
  const e = O(43), {
1709
1941
  storageKey: t,
1710
1942
  sections: n,
1711
- activeNodeId: r,
1712
- contextActions: i,
1713
- header: l,
1943
+ activeNodeId: l,
1944
+ contextActions: r,
1945
+ header: i,
1714
1946
  footer: c,
1715
1947
  width: a,
1716
- closable: d,
1717
- emptyLabel: u,
1718
- defaultExpandedSections: f,
1948
+ closable: f,
1949
+ emptyLabel: d,
1950
+ defaultExpandedSections: u,
1719
1951
  linkComponent: h,
1720
1952
  onNavigate: p,
1721
1953
  onOpenChange: m,
1722
1954
  resizable: g,
1723
- defaultWidth: x,
1955
+ defaultWidth: S,
1724
1956
  minWidth: b,
1725
- maxWidth: k,
1726
- virtualize: A
1957
+ maxWidth: T,
1958
+ virtualize: I
1727
1959
  } = o;
1728
1960
  let R;
1729
- e[0] !== i ? (R = i === void 0 ? [] : i, e[0] = i, e[1] = R) : R = e[1];
1730
- const S = R, $ = d === void 0 ? !0 : d, I = u === void 0 ? "No items available." : u, P = g === void 0 ? !0 : g, w = b === void 0 ? Rr : b, C = k === void 0 ? kr : k, D = A === void 0 ? !1 : A, L = He(null);
1731
- let T;
1732
- e[2] !== x || e[3] !== a ? (T = Er(a, x), e[2] = x, e[3] = a, e[4] = T) : T = e[4];
1733
- const z = T;
1734
- let E;
1735
- e[5] !== f ? (E = f ? {
1736
- expandedSections: f
1737
- } : {}, e[5] = f, e[6] = E) : E = e[6];
1961
+ e[0] !== r ? (R = r === void 0 ? [] : r, e[0] = r, e[1] = R) : R = e[1];
1962
+ const x = R, $ = f === void 0 ? !0 : f, A = d === void 0 ? "No items available." : d, P = g === void 0 ? !0 : g, w = b === void 0 ? Jl : b, y = T === void 0 ? ei : T, L = I === void 0 ? !1 : I, D = Me(null);
1963
+ let k;
1964
+ e[2] !== S || e[3] !== a ? (k = ni(a, S), e[2] = S, e[3] = a, e[4] = k) : k = e[4];
1965
+ const N = k;
1966
+ let _;
1967
+ e[5] !== u ? (_ = u ? {
1968
+ expandedSections: u
1969
+ } : {}, e[5] = u, e[6] = _) : _ = e[6];
1738
1970
  let v;
1739
- e[7] !== z || e[8] !== E ? (v = {
1740
- ...E,
1741
- width: z
1742
- }, e[7] = z, e[8] = E, e[9] = v) : v = e[9];
1743
- const _ = v, B = Be(t, Dr, _), K = Be(t, Lr, _), W = Be(t, Or, _), H = Be(t, _r, _), N = Be(t, zr, _), q = Be(t, Nr, _);
1744
- let j, V;
1745
- e[10] !== m || e[11] !== B ? (j = () => {
1746
- m?.(B);
1747
- }, V = [m, B], e[10] = m, e[11] = B, e[12] = j, e[13] = V) : (j = e[12], V = e[13]), me(j, V);
1748
- const U = K ?? z;
1749
- let X;
1750
- e[14] !== C || e[15] !== w || e[16] !== U ? (X = $r(U, w, C), e[14] = C, e[15] = w, e[16] = U, e[17] = X) : X = e[17];
1751
- const se = X;
1752
- if (!B && $)
1971
+ e[7] !== N || e[8] !== _ ? (v = {
1972
+ ..._,
1973
+ width: N
1974
+ }, e[7] = N, e[8] = _, e[9] = v) : v = e[9];
1975
+ const z = v, E = Be(t, oi, z), H = Be(t, li, z), W = Be(t, ii, z), F = Be(t, ri, z), B = Be(t, si, z), q = Be(t, ai, z);
1976
+ let U, G;
1977
+ e[10] !== m || e[11] !== E ? (U = () => {
1978
+ m?.(E);
1979
+ }, G = [m, E], e[10] = m, e[11] = E, e[12] = U, e[13] = G) : (U = e[12], G = e[13]), me(U, G);
1980
+ const Q = H ?? N;
1981
+ let K;
1982
+ e[14] !== y || e[15] !== w || e[16] !== Q ? (K = ti(Q, w, y), e[14] = y, e[15] = w, e[16] = Q, e[17] = K) : K = e[17];
1983
+ const ae = K;
1984
+ if (!E && $)
1753
1985
  return null;
1754
- const J = P ? `${se}px` : a ?? `${z}px`;
1986
+ const J = P ? `${ae}px` : a ?? `${N}px`;
1755
1987
  let ee;
1756
- e[18] !== l ? (ee = /* @__PURE__ */ s(Pr, { children: l }), e[18] = l, e[19] = ee) : ee = e[19];
1757
- let re, te;
1758
- e[20] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (re = {
1988
+ e[18] !== i ? (ee = /* @__PURE__ */ s(Yl, { children: i }), e[18] = i, e[19] = ee) : ee = e[19];
1989
+ let ie, te;
1990
+ e[20] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ie = {
1759
1991
  display: "block",
1760
1992
  style: {
1761
1993
  overflowX: "hidden"
@@ -1768,288 +2000,288 @@ const Ni = (o) => {
1768
2000
  display: "flex",
1769
2001
  flexDirection: "column"
1770
2002
  }
1771
- }, e[20] = re, e[21] = te) : (re = e[20], te = e[21]);
1772
- let le;
1773
- e[22] !== r || e[23] !== I || e[24] !== H || e[25] !== W || e[26] !== h || e[27] !== p || e[28] !== n || e[29] !== q || e[30] !== N || e[31] !== D ? (le = /* @__PURE__ */ s(tt, { flex: "1", mt: "lg", viewportRef: L, viewportProps: re, contentProps: te, children: /* @__PURE__ */ s(G, { w: "full", minW: "0", flex: "1 0 auto", display: "flex", flexDirection: "column", children: n.length === 0 ? /* @__PURE__ */ s(F, { textStyle: "paragraph/S/regular", color: "fg.muted", p: "3", children: I }) : /* @__PURE__ */ s(Vn, { sections: n, expandedSectionIds: W, expandedNodeIds: H, activeNodeId: r, rowVariant: "compact", sectionGap: "md", nodeGap: "1px", linkComponent: h, onNavigate: p, onToggleSection: N, onToggleNode: q, virtualize: D, scrollRef: L }) }) }), e[22] = r, e[23] = I, e[24] = H, e[25] = W, e[26] = h, e[27] = p, e[28] = n, e[29] = q, e[30] = N, e[31] = D, e[32] = le) : le = e[32];
2003
+ }, e[20] = ie, e[21] = te) : (ie = e[20], te = e[21]);
2004
+ let re;
2005
+ e[22] !== l || e[23] !== A || e[24] !== F || e[25] !== W || e[26] !== h || e[27] !== p || e[28] !== n || e[29] !== q || e[30] !== B || e[31] !== L ? (re = /* @__PURE__ */ s(ot, { flex: "1", mt: "lg", viewportRef: D, viewportProps: ie, contentProps: te, children: /* @__PURE__ */ s(j, { w: "full", minW: "0", flex: "1 0 auto", display: "flex", flexDirection: "column", children: n.length === 0 ? /* @__PURE__ */ s(M, { textStyle: "paragraph/S/regular", color: "fg.muted", p: "3", children: A }) : /* @__PURE__ */ s(so, { sections: n, expandedSectionIds: W, expandedNodeIds: F, activeNodeId: l, rowVariant: "compact", sectionGap: "md", nodeGap: "1px", linkComponent: h, onNavigate: p, onToggleSection: B, onToggleNode: q, virtualize: L, scrollRef: D }) }) }), e[22] = l, e[23] = A, e[24] = F, e[25] = W, e[26] = h, e[27] = p, e[28] = n, e[29] = q, e[30] = B, e[31] = L, e[32] = re) : re = e[32];
1774
2006
  let ne;
1775
- e[33] !== c ? (ne = /* @__PURE__ */ s(Tr, { children: c }), e[33] = c, e[34] = ne) : ne = e[34];
2007
+ e[33] !== c ? (ne = /* @__PURE__ */ s(Kl, { children: c }), e[33] = c, e[34] = ne) : ne = e[34];
1776
2008
  let Y;
1777
- e[35] !== ee || e[36] !== le || e[37] !== ne || e[38] !== J ? (Y = /* @__PURE__ */ y(de, { as: "aside", "data-testid": "sidenav", direction: "column", position: "relative", h: "100%", w: J, minW: J, maxW: J, flexShrink: 0, borderRightWidth: "1px", borderRightColor: "border.subtle", bg: "bg", children: [
2009
+ e[35] !== ee || e[36] !== re || e[37] !== ne || e[38] !== J ? (Y = /* @__PURE__ */ C(fe, { as: "aside", "data-testid": "sidenav", direction: "column", position: "relative", h: "100%", w: J, minW: J, maxW: J, flexShrink: 0, borderRightWidth: "1px", borderRightColor: "border.subtle", bg: "bg", children: [
1778
2010
  ee,
1779
- le,
2011
+ re,
1780
2012
  ne
1781
- ] }), e[35] = ee, e[36] = le, e[37] = ne, e[38] = J, e[39] = Y) : Y = e[39];
1782
- const ie = Y;
2013
+ ] }), e[35] = ee, e[36] = re, e[37] = ne, e[38] = J, e[39] = Y) : Y = e[39];
2014
+ const se = Y;
1783
2015
  let oe;
1784
- return e[40] !== ie || e[41] !== S ? (oe = /* @__PURE__ */ s(Yt, { actions: S, closeOnSelect: !1, children: ie }), e[40] = ie, e[41] = S, e[42] = oe) : oe = e[42], oe;
2016
+ return e[40] !== se || e[41] !== x ? (oe = /* @__PURE__ */ s(tn, { actions: x, closeOnSelect: !1, children: se }), e[40] = se, e[41] = x, e[42] = oe) : oe = e[42], oe;
1785
2017
  };
1786
- function Dr(o) {
2018
+ function oi(o) {
1787
2019
  return o.open;
1788
2020
  }
1789
- function Lr(o) {
2021
+ function li(o) {
1790
2022
  return o.width;
1791
2023
  }
1792
- function Or(o) {
2024
+ function ii(o) {
1793
2025
  return o.expandedSections;
1794
2026
  }
1795
- function _r(o) {
2027
+ function ri(o) {
1796
2028
  return o.expandedNodes;
1797
2029
  }
1798
- function zr(o) {
2030
+ function si(o) {
1799
2031
  return o.toggleSection;
1800
2032
  }
1801
- function Nr(o) {
2033
+ function ai(o) {
1802
2034
  return o.toggleNode;
1803
2035
  }
1804
- const kt = {
2036
+ const Et = {
1805
2037
  tabOverrides: {}
1806
- }, Br = "pstdio/ui/tab-visibility", Wr = (o) => `${Br}/${o}`, Hr = (o, e) => o ?? (e ? "hidden" : "shown"), dt = (o, e, t) => {
2038
+ }, ci = "pstdio/ui/tab-visibility", di = (o) => `${ci}/${o}`, fi = (o, e) => o ?? (e ? "hidden" : "shown"), ht = (o, e, t) => {
1807
2039
  if (t === void 0) {
1808
2040
  if (!(e in o)) return o;
1809
2041
  const {
1810
2042
  [e]: n,
1811
- ...r
2043
+ ...l
1812
2044
  } = o;
1813
- return r;
2045
+ return l;
1814
2046
  }
1815
2047
  return o[e] === t ? o : {
1816
2048
  ...o,
1817
2049
  [e]: t
1818
2050
  };
1819
- }, Fr = (o, e, t) => {
1820
- const n = Hr(o[e], t);
1821
- return dt(o, e, n === "hidden" ? "shown" : "hidden");
1822
- }, Mr = (o) => ({
2051
+ }, ui = (o, e, t) => {
2052
+ const n = fi(o[e], t);
2053
+ return ht(o, e, n === "hidden" ? "shown" : "hidden");
2054
+ }, hi = (o) => ({
1823
2055
  tabOverrides: o.tabOverrides
1824
- }), Vr = (o) => lt()(ot((e) => ({
1825
- ...kt,
1826
- setTab: (t, n) => e((r) => ({
1827
- ...r,
1828
- tabOverrides: dt(r.tabOverrides, t, n)
2056
+ }), mi = (o) => at()(rt((e) => ({
2057
+ ...Et,
2058
+ setTab: (t, n) => e((l) => ({
2059
+ ...l,
2060
+ tabOverrides: ht(l.tabOverrides, t, n)
1829
2061
  })),
1830
- toggleTab: (t, n) => e((r) => ({
1831
- ...r,
1832
- tabOverrides: Fr(r.tabOverrides, t, n)
2062
+ toggleTab: (t, n) => e((l) => ({
2063
+ ...l,
2064
+ tabOverrides: ui(l.tabOverrides, t, n)
1833
2065
  })),
1834
2066
  clearTab: (t) => e((n) => ({
1835
2067
  ...n,
1836
- tabOverrides: dt(n.tabOverrides, t, void 0)
2068
+ tabOverrides: ht(n.tabOverrides, t, void 0)
1837
2069
  })),
1838
- reset: () => e(kt)
2070
+ reset: () => e(Et)
1839
2071
  }), {
1840
- name: Wr(o.storageKey),
1841
- storage: rt(Ve),
1842
- partialize: Mr
1843
- })), $t = /* @__PURE__ */ new Map(), Gr = (o) => {
1844
- const e = $t.get(o);
2072
+ name: di(o.storageKey),
2073
+ storage: st(Ve),
2074
+ partialize: hi
2075
+ })), Dt = /* @__PURE__ */ new Map(), pi = (o) => {
2076
+ const e = Dt.get(o);
1845
2077
  if (e) return e;
1846
- const t = Vr({
2078
+ const t = mi({
1847
2079
  storageKey: o
1848
2080
  });
1849
- return $t.set(o, t), t;
1850
- }, Wi = (o, e) => {
2081
+ return Dt.set(o, t), t;
2082
+ }, us = (o, e) => {
1851
2083
  const t = O(2);
1852
2084
  let n;
1853
- return t[0] !== o ? (n = Gr(o), t[0] = o, t[1] = n) : n = t[1], nt(n, e);
1854
- }, jr = (o, e) => typeof o == "string" ? o : e, Ge = (o, e) => o ?? (e ? "hidden" : "shown"), Et = (o) => o.canHide === !0 || o.hiddenByDefault === !0, Ur = (o, e) => Ge(e[o.id], o.hiddenByDefault) === "shown", mt = (o, e) => {
2085
+ return t[0] !== o ? (n = pi(o), t[0] = o, t[1] = n) : n = t[1], it(n, e);
2086
+ }, gi = (o, e) => typeof o == "string" ? o : e, Ge = (o, e) => o ?? (e ? "hidden" : "shown"), _t = (o) => o.canHide === !0 || o.hiddenByDefault === !0, bi = (o, e) => Ge(e[o.id], o.hiddenByDefault) === "shown", gt = (o, e) => {
1855
2087
  let t = !1;
1856
2088
  const n = [];
1857
- for (const r of o) {
1858
- if (!Ur(r, e)) {
2089
+ for (const l of o) {
2090
+ if (!bi(l, e)) {
1859
2091
  t = !0;
1860
2092
  continue;
1861
2093
  }
1862
- if (r.children && r.children.length > 0) {
1863
- const i = mt(r.children, e);
1864
- if (i !== r.children) {
2094
+ if (l.children && l.children.length > 0) {
2095
+ const r = gt(l.children, e);
2096
+ if (r !== l.children) {
1865
2097
  t = !0, n.push({
1866
- ...r,
1867
- children: i
2098
+ ...l,
2099
+ children: r
1868
2100
  });
1869
2101
  continue;
1870
2102
  }
1871
2103
  }
1872
- n.push(r);
2104
+ n.push(l);
1873
2105
  }
1874
2106
  return t ? n : o;
1875
- }, Hi = (o, e) => mt(o, e), Fi = (o, e, t) => {
2107
+ }, hs = (o, e) => gt(o, e), ms = (o, e, t) => {
1876
2108
  let n = !1;
1877
- const r = [];
1878
- for (const i of o) {
1879
- if (Ge(e[i.id], i.hiddenByDefault) === "hidden") {
2109
+ const l = [];
2110
+ for (const r of o) {
2111
+ if (Ge(e[r.id], r.hiddenByDefault) === "hidden") {
1880
2112
  n = !0;
1881
2113
  continue;
1882
2114
  }
1883
- const l = mt(i.nodes, t);
1884
- if (l.length === 0 && !i.emptyState) {
2115
+ const i = gt(r.nodes, t);
2116
+ if (i.length === 0 && !r.emptyState) {
1885
2117
  n = !0;
1886
2118
  continue;
1887
2119
  }
1888
- if (l !== i.nodes) {
1889
- n = !0, r.push({
1890
- ...i,
1891
- nodes: l
2120
+ if (i !== r.nodes) {
2121
+ n = !0, l.push({
2122
+ ...r,
2123
+ nodes: i
1892
2124
  });
1893
2125
  continue;
1894
2126
  }
1895
- r.push(i);
2127
+ l.push(r);
1896
2128
  }
1897
- return n ? r : o;
1898
- }, un = (o, e) => o === "shown" ? e.visibleIcon : e.hiddenIcon, Qr = (o, e, t, n) => {
1899
- const r = o.hiddenByDefault === !0, i = Ge(e[o.id], r);
2129
+ return n ? l : o;
2130
+ }, vn = (o, e) => o === "shown" ? e.visibleIcon : e.hiddenIcon, Si = (o, e, t, n) => {
2131
+ const l = o.hiddenByDefault === !0, r = Ge(e[o.id], l);
1900
2132
  return {
1901
2133
  key: `section:${o.id}`,
1902
2134
  label: o.label ?? o.id,
1903
- onClick: () => t.onToggleSection(o.id, r),
1904
- endContent: un(i, n)
2135
+ onClick: () => t.onToggleSection(o.id, l),
2136
+ endContent: vn(r, n)
1905
2137
  };
1906
- }, qr = (o, e, t, n) => {
1907
- const r = o.hiddenByDefault === !0, i = Ge(e[o.id], r);
2138
+ }, xi = (o, e, t, n) => {
2139
+ const l = o.hiddenByDefault === !0, r = Ge(e[o.id], l);
1908
2140
  return {
1909
2141
  key: `node:${o.id}`,
1910
- label: jr(o.label, o.id),
2142
+ label: gi(o.label, o.id),
1911
2143
  icon: o.icon,
1912
- onClick: () => t.onToggleNode(o.id, r),
1913
- endContent: un(i, n)
2144
+ onClick: () => t.onToggleNode(o.id, l),
2145
+ endContent: vn(r, n)
1914
2146
  };
1915
- }, Mi = (o, e, t, n, r) => {
1916
- const i = [], l = (a) => {
1917
- a.length !== 0 && (i.length > 0 && (a[0] = {
2147
+ }, ps = (o, e, t, n, l) => {
2148
+ const r = [], i = (a) => {
2149
+ a.length !== 0 && (r.length > 0 && (a[0] = {
1918
2150
  ...a[0],
1919
2151
  separatorBefore: !0
1920
- }), i.push(...a));
2152
+ }), r.push(...a));
1921
2153
  }, c = (a) => {
1922
- const d = [];
1923
- for (const u of a) {
1924
- Et(u) && d.push(Qr(u, e, n, r));
1925
- for (const f of u.nodes)
1926
- Et(f) && d.push(qr(f, t, n, r));
2154
+ const f = [];
2155
+ for (const d of a) {
2156
+ _t(d) && f.push(Si(d, e, n, l));
2157
+ for (const u of d.nodes)
2158
+ _t(u) && f.push(xi(u, t, n, l));
1927
2159
  }
1928
- return d;
2160
+ return f;
1929
2161
  };
1930
- return l(c(o.headerSections ?? [])), l(c(o.sections)), l(c(o.footerSections ?? [])), i.length === 0 || i.push({
2162
+ return i(c(o.headerSections ?? [])), i(c(o.sections)), i(c(o.footerSections ?? [])), r.length === 0 || r.push({
1931
2163
  key: "__reset-visibility",
1932
2164
  label: "Reset to default",
1933
- icon: r.resetIcon,
2165
+ icon: l.resetIcon,
1934
2166
  separatorBefore: !0,
1935
2167
  onClick: n.onResetAll
1936
- }), i;
1937
- }, Vi = (o, e, t) => {
2168
+ }), r;
2169
+ }, gs = (o, e, t) => {
1938
2170
  let n = !1;
1939
- const r = [];
1940
- for (const i of o) {
1941
- if (i.closable === !0) {
1942
- r.push(i);
2171
+ const l = [];
2172
+ for (const r of o) {
2173
+ if (r.closable === !0) {
2174
+ l.push(r);
1943
2175
  continue;
1944
2176
  }
1945
- if (i.pinned === !0 && i.hiddenByDefault === !0) {
2177
+ if (r.pinned === !0 && r.hiddenByDefault === !0) {
1946
2178
  n = !0;
1947
2179
  continue;
1948
2180
  }
1949
- if (Ge(e[t(i)], i.hiddenByDefault) === "hidden") {
2181
+ if (Ge(e[t(r)], r.hiddenByDefault) === "hidden") {
1950
2182
  n = !0;
1951
2183
  continue;
1952
2184
  }
1953
- r.push(i);
2185
+ l.push(r);
1954
2186
  }
1955
- return n ? r : o;
1956
- }, Gi = (o, e, t, n, r, i) => {
1957
- const l = [];
2187
+ return n ? l : o;
2188
+ }, bs = (o, e, t, n, l, r) => {
2189
+ const i = [];
1958
2190
  let c = 0;
1959
2191
  for (const a of o) {
1960
2192
  if (a.pinned === !0 || a.closable === !0) continue;
1961
2193
  c += 1;
1962
- const d = n(a), u = a.hiddenByDefault === !0, f = Ge(e[d], u);
1963
- l.push({
1964
- key: `tab:${d}`,
2194
+ const f = n(a), d = a.hiddenByDefault === !0, u = Ge(e[f], d);
2195
+ i.push({
2196
+ key: `tab:${f}`,
1965
2197
  label: a.title ?? a.contributionId,
1966
- icon: i?.(a),
1967
- onClick: () => t.onToggleTab(d, u),
1968
- endContent: f === "shown" ? r.visibleIcon : r.hiddenIcon
2198
+ icon: r?.(a),
2199
+ onClick: () => t.onToggleTab(f, d),
2200
+ endContent: u === "shown" ? l.visibleIcon : l.hiddenIcon
1969
2201
  });
1970
2202
  }
1971
- return c === 0 || l.push({
2203
+ return c === 0 || i.push({
1972
2204
  key: "__reset-tabs",
1973
2205
  label: "Reset to default",
1974
- icon: r.resetIcon,
2206
+ icon: l.resetIcon,
1975
2207
  separatorBefore: !0,
1976
2208
  onClick: t.onResetAll
1977
- }), l;
2209
+ }), i;
1978
2210
  }, {
1979
- withProvider: Kr,
1980
- withContext: st
1981
- } = ft({
1982
- recipe: Jn
1983
- }), Xr = Kr("div", "list"), Yr = st("div", "tab"), Zr = st("button", "trigger"), Jr = st("span", "label"), el = st("button", "close"), tl = (o) => {
2211
+ withProvider: vi,
2212
+ withContext: dt
2213
+ } = et({
2214
+ recipe: xo
2215
+ }), yi = vi("div", "list"), Ci = dt("div", "tab"), wi = dt("button", "trigger"), Ii = dt("span", "label"), Ti = dt("button", "close"), Ai = (o) => {
1984
2216
  const e = O(38), {
1985
2217
  tab: t,
1986
2218
  selected: n,
1987
- tabIndex: r,
1988
- reorderable: i,
1989
- onSelect: l,
2219
+ tabIndex: l,
2220
+ reorderable: r,
2221
+ onSelect: i,
1990
2222
  onClose: c,
1991
2223
  onKeyDown: a
1992
- } = o, d = !i;
1993
- let u;
1994
- e[0] !== d || e[1] !== t.id ? (u = {
2224
+ } = o, f = !r;
2225
+ let d;
2226
+ e[0] !== f || e[1] !== t.id ? (d = {
1995
2227
  id: t.id,
1996
- disabled: d
1997
- }, e[0] = d, e[1] = t.id, e[2] = u) : u = e[2];
2228
+ disabled: f
2229
+ }, e[0] = f, e[1] = t.id, e[2] = d) : d = e[2];
1998
2230
  const {
1999
- attributes: f,
2231
+ attributes: u,
2000
2232
  listeners: h,
2001
2233
  setNodeRef: p,
2002
2234
  setActivatorNodeRef: m,
2003
2235
  transform: g,
2004
- transition: x,
2236
+ transition: S,
2005
2237
  isDragging: b,
2006
- isSorting: k
2007
- } = nn(u), A = n ? "" : void 0, R = b ? "" : void 0;
2008
- let S;
2009
- e[3] !== g ? (S = rn.Translate.toString(g), e[3] = g, e[4] = S) : S = e[4];
2238
+ isSorting: T
2239
+ } = sn(d), I = n ? "" : void 0, R = b ? "" : void 0;
2240
+ let x;
2241
+ e[3] !== g ? (x = cn.Translate.toString(g), e[3] = g, e[4] = x) : x = e[4];
2010
2242
  let $;
2011
- e[5] !== f || e[6] !== i ? ($ = i ? f : {}, e[5] = f, e[6] = i, e[7] = $) : $ = e[7];
2012
- let I;
2013
- e[8] !== k || e[9] !== h || e[10] !== a ? (I = (E) => {
2014
- h?.onKeyDown?.(E), !k && !E.defaultPrevented && a(E);
2015
- }, e[8] = k, e[9] = h, e[10] = a, e[11] = I) : I = e[11];
2243
+ e[5] !== u || e[6] !== r ? ($ = r ? u : {}, e[5] = u, e[6] = r, e[7] = $) : $ = e[7];
2244
+ let A;
2245
+ e[8] !== T || e[9] !== h || e[10] !== a ? (A = (_) => {
2246
+ h?.onKeyDown?.(_), !T && !_.defaultPrevented && a(_);
2247
+ }, e[8] = T, e[9] = h, e[10] = a, e[11] = A) : A = e[11];
2016
2248
  let P;
2017
- e[12] !== t.label ? (P = /* @__PURE__ */ s(Jr, { children: t.label }), e[12] = t.label, e[13] = P) : P = e[13];
2249
+ e[12] !== t.label ? (P = /* @__PURE__ */ s(Ii, { children: t.label }), e[12] = t.label, e[13] = P) : P = e[13];
2018
2250
  let w;
2019
- e[14] !== h || e[15] !== l || e[16] !== n || e[17] !== m || e[18] !== $ || e[19] !== I || e[20] !== P || e[21] !== t.icon || e[22] !== t.label || e[23] !== r ? (w = /* @__PURE__ */ y(Zr, { ...$, ...h, ref: m, type: "button", role: "tab", "aria-selected": n, "aria-label": t.label, tabIndex: r, title: t.label, onClick: l, onKeyDown: I, children: [
2251
+ e[14] !== h || e[15] !== i || e[16] !== n || e[17] !== m || e[18] !== $ || e[19] !== A || e[20] !== P || e[21] !== t.icon || e[22] !== t.label || e[23] !== l ? (w = /* @__PURE__ */ C(wi, { ...$, ...h, ref: m, type: "button", role: "tab", "aria-selected": n, "aria-label": t.label, tabIndex: l, title: t.label, onClick: i, onKeyDown: A, children: [
2020
2252
  t.icon,
2021
2253
  P
2022
- ] }), e[14] = h, e[15] = l, e[16] = n, e[17] = m, e[18] = $, e[19] = I, e[20] = P, e[21] = t.icon, e[22] = t.label, e[23] = r, e[24] = w) : w = e[24];
2023
- const C = `Close ${t.label}`, D = `Close ${t.label}`;
2024
- let L;
2025
- e[25] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (L = /* @__PURE__ */ s(Qt, { "aria-hidden": "true" }), e[25] = L) : L = e[25];
2026
- let T;
2027
- e[26] !== c || e[27] !== D || e[28] !== C ? (T = /* @__PURE__ */ s(el, { type: "button", "aria-label": C, title: D, onClick: c, children: L }), e[26] = c, e[27] = D, e[28] = C, e[29] = T) : T = e[29];
2028
- let z;
2029
- return e[30] !== p || e[31] !== T || e[32] !== A || e[33] !== R || e[34] !== S || e[35] !== w || e[36] !== x ? (z = /* @__PURE__ */ y(Yr, { ref: p, role: "presentation", "data-selected": A, "data-dragging": R, transform: S, transition: x, children: [
2254
+ ] }), e[14] = h, e[15] = i, e[16] = n, e[17] = m, e[18] = $, e[19] = A, e[20] = P, e[21] = t.icon, e[22] = t.label, e[23] = l, e[24] = w) : w = e[24];
2255
+ const y = `Close ${t.label}`, L = `Close ${t.label}`;
2256
+ let D;
2257
+ e[25] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (D = /* @__PURE__ */ s(Yt, { "aria-hidden": "true" }), e[25] = D) : D = e[25];
2258
+ let k;
2259
+ e[26] !== c || e[27] !== L || e[28] !== y ? (k = /* @__PURE__ */ s(Ti, { type: "button", "aria-label": y, title: L, onClick: c, children: D }), e[26] = c, e[27] = L, e[28] = y, e[29] = k) : k = e[29];
2260
+ let N;
2261
+ return e[30] !== p || e[31] !== k || e[32] !== I || e[33] !== R || e[34] !== x || e[35] !== w || e[36] !== S ? (N = /* @__PURE__ */ C(Ci, { ref: p, role: "presentation", "data-selected": I, "data-dragging": R, transform: x, transition: S, children: [
2030
2262
  w,
2031
- T
2032
- ] }), e[30] = p, e[31] = T, e[32] = A, e[33] = R, e[34] = S, e[35] = w, e[36] = x, e[37] = z) : z = e[37], z;
2033
- }, ji = (o) => {
2263
+ k
2264
+ ] }), e[30] = p, e[31] = k, e[32] = I, e[33] = R, e[34] = x, e[35] = w, e[36] = S, e[37] = N) : N = e[37], N;
2265
+ }, Ss = (o) => {
2034
2266
  const e = O(48), {
2035
2267
  tabs: t,
2036
2268
  selectedId: n,
2037
- onSelect: r,
2038
- onClose: i,
2039
- onReorder: l,
2269
+ onSelect: l,
2270
+ onClose: r,
2271
+ onReorder: i,
2040
2272
  "aria-label": c
2041
- } = o, a = He(null);
2042
- let d;
2043
- e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = {
2273
+ } = o, a = Me(null);
2274
+ let f;
2275
+ e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (f = {
2044
2276
  activationConstraint: {
2045
2277
  distance: 6
2046
2278
  }
2047
- }, e[0] = d) : d = e[0];
2048
- let u;
2049
- e[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (u = {
2050
- coordinateGetter: Kn
2051
- }, e[1] = u) : u = e[1];
2052
- const f = Zt(ct(Jt, d), ct(qn, u));
2279
+ }, e[0] = f) : f = e[0];
2280
+ let d;
2281
+ e[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = {
2282
+ coordinateGetter: po
2283
+ }, e[1] = d) : d = e[1];
2284
+ const u = nn(ut(on, f), ut(mo, d));
2053
2285
  let h, p;
2054
2286
  e[2] !== n ? (h = () => {
2055
2287
  n && a.current?.querySelector('[aria-selected="true"]')?.scrollIntoView({
@@ -2057,45 +2289,45 @@ const kt = {
2057
2289
  inline: "nearest"
2058
2290
  });
2059
2291
  }, p = [n], e[2] = n, e[3] = h, e[4] = p) : (h = e[3], p = e[4]), me(h, p);
2060
- let m, g, x, b, k, A, R, S, $, I, P, w, C;
2061
- if (e[5] !== c || e[6] !== i || e[7] !== l || e[8] !== r || e[9] !== n || e[10] !== f || e[11] !== t) {
2062
- const z = (v) => {
2063
- const _ = a.current?.querySelectorAll('[role="tab"]'), B = _?.[v + 1] ?? _?.[v - 1];
2064
- i(t[v].id), B?.focus();
2065
- }, E = (v, _) => {
2066
- let B;
2292
+ let m, g, S, b, T, I, R, x, $, A, P, w, y;
2293
+ if (e[5] !== c || e[6] !== r || e[7] !== i || e[8] !== l || e[9] !== n || e[10] !== u || e[11] !== t) {
2294
+ const N = (v) => {
2295
+ const z = a.current?.querySelectorAll('[role="tab"]'), E = z?.[v + 1] ?? z?.[v - 1];
2296
+ r(t[v].id), E?.focus();
2297
+ }, _ = (v, z) => {
2298
+ let E;
2067
2299
  if (v.key === "ArrowRight")
2068
- B = (_ + 1) % t.length;
2300
+ E = (z + 1) % t.length;
2069
2301
  else if (v.key === "ArrowLeft")
2070
- B = (_ - 1 + t.length) % t.length;
2302
+ E = (z - 1 + t.length) % t.length;
2071
2303
  else if (v.key === "Home")
2072
- B = 0;
2304
+ E = 0;
2073
2305
  else if (v.key === "End")
2074
- B = t.length - 1;
2306
+ E = t.length - 1;
2075
2307
  else if (v.key === "Delete") {
2076
- v.preventDefault(), z(_);
2308
+ v.preventDefault(), N(z);
2077
2309
  return;
2078
2310
  } else
2079
2311
  return;
2080
- v.preventDefault(), a.current?.querySelectorAll('[role="tab"]')[B]?.focus(), r(t[B].id);
2312
+ v.preventDefault(), a.current?.querySelectorAll('[role="tab"]')[E]?.focus(), l(t[E].id);
2081
2313
  };
2082
- x = en, b = f, k = tn, e[25] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (A = [nl], e[25] = A) : A = e[25], e[26] !== l ? (R = (v) => {
2314
+ S = ln, b = u, T = rn, e[25] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (I = [Pi], e[25] = I) : I = e[25], e[26] !== i ? (R = (v) => {
2083
2315
  const {
2084
- active: _,
2085
- over: B
2316
+ active: z,
2317
+ over: E
2086
2318
  } = v;
2087
- B && _.id !== B.id && l?.(String(_.id), String(B.id));
2088
- }, e[26] = l, e[27] = R) : R = e[27], g = on, e[28] !== t ? (w = t.map(ol), e[28] = t, e[29] = w) : w = e[29], C = Xn, m = Xr, S = a, $ = "tablist", I = c, P = t.map((v, _) => /* @__PURE__ */ s(tl, { tab: v, selected: v.id === n, tabIndex: v.id === (n ?? t[0]?.id) ? 0 : -1, reorderable: !!l, onSelect: () => r(v.id), onClose: () => z(_), onKeyDown: (B) => E(B, _) }, v.id)), e[5] = c, e[6] = i, e[7] = l, e[8] = r, e[9] = n, e[10] = f, e[11] = t, e[12] = m, e[13] = g, e[14] = x, e[15] = b, e[16] = k, e[17] = A, e[18] = R, e[19] = S, e[20] = $, e[21] = I, e[22] = P, e[23] = w, e[24] = C;
2319
+ E && z.id !== E.id && i?.(String(z.id), String(E.id));
2320
+ }, e[26] = i, e[27] = R) : R = e[27], g = an, e[28] !== t ? (w = t.map(ki), e[28] = t, e[29] = w) : w = e[29], y = go, m = yi, x = a, $ = "tablist", A = c, P = t.map((v, z) => /* @__PURE__ */ s(Ai, { tab: v, selected: v.id === n, tabIndex: v.id === (n ?? t[0]?.id) ? 0 : -1, reorderable: !!i, onSelect: () => l(v.id), onClose: () => N(z), onKeyDown: (E) => _(E, z) }, v.id)), e[5] = c, e[6] = r, e[7] = i, e[8] = l, e[9] = n, e[10] = u, e[11] = t, e[12] = m, e[13] = g, e[14] = S, e[15] = b, e[16] = T, e[17] = I, e[18] = R, e[19] = x, e[20] = $, e[21] = A, e[22] = P, e[23] = w, e[24] = y;
2089
2321
  } else
2090
- m = e[12], g = e[13], x = e[14], b = e[15], k = e[16], A = e[17], R = e[18], S = e[19], $ = e[20], I = e[21], P = e[22], w = e[23], C = e[24];
2091
- let D;
2092
- e[30] !== m || e[31] !== S || e[32] !== $ || e[33] !== I || e[34] !== P ? (D = /* @__PURE__ */ s(m, { ref: S, role: $, "aria-label": I, children: P }), e[30] = m, e[31] = S, e[32] = $, e[33] = I, e[34] = P, e[35] = D) : D = e[35];
2322
+ m = e[12], g = e[13], S = e[14], b = e[15], T = e[16], I = e[17], R = e[18], x = e[19], $ = e[20], A = e[21], P = e[22], w = e[23], y = e[24];
2093
2323
  let L;
2094
- e[36] !== g || e[37] !== D || e[38] !== w || e[39] !== C ? (L = /* @__PURE__ */ s(g, { items: w, strategy: C, children: D }), e[36] = g, e[37] = D, e[38] = w, e[39] = C, e[40] = L) : L = e[40];
2095
- let T;
2096
- return e[41] !== x || e[42] !== b || e[43] !== k || e[44] !== A || e[45] !== R || e[46] !== L ? (T = /* @__PURE__ */ s(x, { sensors: b, collisionDetection: k, modifiers: A, onDragEnd: R, children: L }), e[41] = x, e[42] = b, e[43] = k, e[44] = A, e[45] = R, e[46] = L, e[47] = T) : T = e[47], T;
2324
+ e[30] !== m || e[31] !== x || e[32] !== $ || e[33] !== A || e[34] !== P ? (L = /* @__PURE__ */ s(m, { ref: x, role: $, "aria-label": A, children: P }), e[30] = m, e[31] = x, e[32] = $, e[33] = A, e[34] = P, e[35] = L) : L = e[35];
2325
+ let D;
2326
+ e[36] !== g || e[37] !== L || e[38] !== w || e[39] !== y ? (D = /* @__PURE__ */ s(g, { items: w, strategy: y, children: L }), e[36] = g, e[37] = L, e[38] = w, e[39] = y, e[40] = D) : D = e[40];
2327
+ let k;
2328
+ return e[41] !== S || e[42] !== b || e[43] !== T || e[44] !== I || e[45] !== R || e[46] !== D ? (k = /* @__PURE__ */ s(S, { sensors: b, collisionDetection: T, modifiers: I, onDragEnd: R, children: D }), e[41] = S, e[42] = b, e[43] = T, e[44] = I, e[45] = R, e[46] = D, e[47] = k) : k = e[47], k;
2097
2329
  };
2098
- function nl(o) {
2330
+ function Pi(o) {
2099
2331
  const {
2100
2332
  transform: e
2101
2333
  } = o;
@@ -2104,198 +2336,198 @@ function nl(o) {
2104
2336
  y: 0
2105
2337
  };
2106
2338
  }
2107
- function ol(o) {
2339
+ function ki(o) {
2108
2340
  return o.id;
2109
2341
  }
2110
2342
  const {
2111
- withProvider: rl,
2112
- withContext: ll
2113
- } = ft({
2114
- recipe: eo
2115
- }), il = rl("div", "root"), sl = ll("div", "content"), Ui = (o) => {
2343
+ withProvider: Ri,
2344
+ withContext: $i
2345
+ } = et({
2346
+ recipe: vo
2347
+ }), Li = Ri("div", "root"), Ei = $i("div", "content"), xs = (o) => {
2116
2348
  const e = O(5), {
2117
2349
  platform: t,
2118
2350
  children: n
2119
- } = o, r = t === "darwin" ? "mac" : "overlay";
2351
+ } = o, l = t === "darwin" ? "mac" : "overlay";
2352
+ let r;
2353
+ e[0] !== n ? (r = /* @__PURE__ */ s(Ei, { children: n }), e[0] = n, e[1] = r) : r = e[1];
2120
2354
  let i;
2121
- e[0] !== n ? (i = /* @__PURE__ */ s(sl, { children: n }), e[0] = n, e[1] = i) : i = e[1];
2122
- let l;
2123
- return e[2] !== r || e[3] !== i ? (l = /* @__PURE__ */ s(il, { controls: r, "data-window-title-bar": "", children: i }), e[2] = r, e[3] = i, e[4] = l) : l = e[4], l;
2124
- }, al = (o) => {
2355
+ return e[2] !== l || e[3] !== r ? (i = /* @__PURE__ */ s(Li, { controls: l, "data-window-title-bar": "", children: r }), e[2] = l, e[3] = r, e[4] = i) : i = e[4], i;
2356
+ }, Di = (o) => {
2125
2357
  const e = O(7), {
2126
2358
  children: t,
2127
2359
  hasChanges: n
2128
2360
  } = o;
2361
+ let l;
2362
+ e[0] !== t ? (l = /* @__PURE__ */ s(M, { textStyle: "label/L/medium", truncate: !0, children: t }), e[0] = t, e[1] = l) : l = e[1];
2129
2363
  let r;
2130
- e[0] !== t ? (r = /* @__PURE__ */ s(F, { textStyle: "label/L/medium", truncate: !0, children: t }), e[0] = t, e[1] = r) : r = e[1];
2364
+ e[2] !== n ? (r = n ? /* @__PURE__ */ s(M, { textStyle: "label/L/medium", color: "fg.muted", "aria-label": "Unsaved changes", children: "*" }) : null, e[2] = n, e[3] = r) : r = e[3];
2131
2365
  let i;
2132
- e[2] !== n ? (i = n ? /* @__PURE__ */ s(F, { textStyle: "label/L/medium", color: "fg.muted", "aria-label": "Unsaved changes", children: "*" }) : null, e[2] = n, e[3] = i) : i = e[3];
2133
- let l;
2134
- return e[4] !== r || e[5] !== i ? (l = /* @__PURE__ */ y(ae, { gap: "3xs", minWidth: "0", children: [
2135
- r,
2136
- i
2137
- ] }), e[4] = r, e[5] = i, e[6] = l) : l = e[6], l;
2138
- }, cl = (o) => o.length === 0 ? "None" : o.length === 1 ? o[0].label : `${o[0].label} +${o.length - 1}`, dl = (o) => {
2366
+ return e[4] !== l || e[5] !== r ? (i = /* @__PURE__ */ C(le, { gap: "3xs", minWidth: "0", children: [
2367
+ l,
2368
+ r
2369
+ ] }), e[4] = l, e[5] = r, e[6] = i) : i = e[6], i;
2370
+ }, _i = (o) => o.length === 0 ? "None" : o.length === 1 ? o[0].label : `${o[0].label} +${o.length - 1}`, Oi = (o) => {
2139
2371
  const e = O(54), {
2140
2372
  actions: t,
2141
2373
  disabled: n,
2142
- label: r,
2143
- options: i,
2144
- optionName: l,
2374
+ label: l,
2375
+ options: r,
2376
+ optionName: i,
2145
2377
  onChange: c
2146
2378
  } = o;
2147
- let a, d, u, f, h, p, m, g, x, b, k, A, R, S;
2148
- if (e[0] !== t || e[1] !== n || e[2] !== r || e[3] !== c || e[4] !== l || e[5] !== i) {
2149
- let L;
2150
- e[20] !== t ? (L = (E) => t.includes(E.value), e[20] = t, e[21] = L) : L = e[21];
2151
- const T = i.filter(L);
2152
- let z;
2153
- e[22] !== t || e[23] !== c ? (z = (E) => {
2154
- c(t.includes(E) ? t.filter((v) => v !== E) : [...t, E]);
2155
- }, e[22] = t, e[23] = c, e[24] = z) : z = e[24], S = z, u = ge.Root, R = !1, d = ge.Trigger, A = !0, a = ue, f = "2xs", h = "ghost", p = "xs", m = T.length === 0 ? "fg.subtle" : "fg", g = n, x = `${r} for ${l}`, b = T[0]?.icon, k = cl(T), e[0] = t, e[1] = n, e[2] = r, e[3] = c, e[4] = l, e[5] = i, e[6] = a, e[7] = d, e[8] = u, e[9] = f, e[10] = h, e[11] = p, e[12] = m, e[13] = g, e[14] = x, e[15] = b, e[16] = k, e[17] = A, e[18] = R, e[19] = S;
2379
+ let a, f, d, u, h, p, m, g, S, b, T, I, R, x;
2380
+ if (e[0] !== t || e[1] !== n || e[2] !== l || e[3] !== c || e[4] !== i || e[5] !== r) {
2381
+ let D;
2382
+ e[20] !== t ? (D = (_) => t.includes(_.value), e[20] = t, e[21] = D) : D = e[21];
2383
+ const k = r.filter(D);
2384
+ let N;
2385
+ e[22] !== t || e[23] !== c ? (N = (_) => {
2386
+ c(t.includes(_) ? t.filter((v) => v !== _) : [...t, _]);
2387
+ }, e[22] = t, e[23] = c, e[24] = N) : N = e[24], x = N, d = ge.Root, R = !1, f = ge.Trigger, I = !0, a = de, u = "2xs", h = "ghost", p = "xs", m = k.length === 0 ? "fg.subtle" : "fg", g = n, S = `${l} for ${i}`, b = k[0]?.icon, T = _i(k), e[0] = t, e[1] = n, e[2] = l, e[3] = c, e[4] = i, e[5] = r, e[6] = a, e[7] = f, e[8] = d, e[9] = u, e[10] = h, e[11] = p, e[12] = m, e[13] = g, e[14] = S, e[15] = b, e[16] = T, e[17] = I, e[18] = R, e[19] = x;
2156
2388
  } else
2157
- a = e[6], d = e[7], u = e[8], f = e[9], h = e[10], p = e[11], m = e[12], g = e[13], x = e[14], b = e[15], k = e[16], A = e[17], R = e[18], S = e[19];
2389
+ a = e[6], f = e[7], d = e[8], u = e[9], h = e[10], p = e[11], m = e[12], g = e[13], S = e[14], b = e[15], T = e[16], I = e[17], R = e[18], x = e[19];
2158
2390
  let $;
2159
- e[25] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? ($ = /* @__PURE__ */ s(ce, { as: Xt, boxSize: "icon-2xs" }), e[25] = $) : $ = e[25];
2160
- let I;
2161
- e[26] !== a || e[27] !== f || e[28] !== h || e[29] !== p || e[30] !== m || e[31] !== g || e[32] !== x || e[33] !== b || e[34] !== k ? (I = /* @__PURE__ */ y(a, { size: f, variant: h, gap: p, color: m, disabled: g, "aria-label": x, children: [
2391
+ e[25] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? ($ = /* @__PURE__ */ s(ce, { as: en, boxSize: "icon-2xs" }), e[25] = $) : $ = e[25];
2392
+ let A;
2393
+ e[26] !== a || e[27] !== u || e[28] !== h || e[29] !== p || e[30] !== m || e[31] !== g || e[32] !== S || e[33] !== b || e[34] !== T ? (A = /* @__PURE__ */ C(a, { size: u, variant: h, gap: p, color: m, disabled: g, "aria-label": S, children: [
2162
2394
  b,
2163
- k,
2395
+ T,
2164
2396
  $
2165
- ] }), e[26] = a, e[27] = f, e[28] = h, e[29] = p, e[30] = m, e[31] = g, e[32] = x, e[33] = b, e[34] = k, e[35] = I) : I = e[35];
2397
+ ] }), e[26] = a, e[27] = u, e[28] = h, e[29] = p, e[30] = m, e[31] = g, e[32] = S, e[33] = b, e[34] = T, e[35] = A) : A = e[35];
2166
2398
  let P;
2167
- e[36] !== d || e[37] !== I || e[38] !== A ? (P = /* @__PURE__ */ s(d, { asChild: A, children: I }), e[36] = d, e[37] = I, e[38] = A, e[39] = P) : P = e[39];
2399
+ e[36] !== f || e[37] !== A || e[38] !== I ? (P = /* @__PURE__ */ s(f, { asChild: I, children: A }), e[36] = f, e[37] = A, e[38] = I, e[39] = P) : P = e[39];
2168
2400
  let w;
2169
- if (e[40] !== t || e[41] !== i || e[42] !== S) {
2170
- let L;
2171
- e[44] !== t || e[45] !== S ? (L = (T) => /* @__PURE__ */ s(ge.Item, { value: T.value, asChild: !0, children: /* @__PURE__ */ s(Qe, { asChild: !0, variant: "full-width", id: T.value, label: T.label, icon: T.icon, isSelected: t.includes(T.value), endContent: t.includes(T.value) ? /* @__PURE__ */ s(ce, { as: et, boxSize: "icon-xs" }) : void 0, onActivate: () => S(T.value) }) }, T.value), e[44] = t, e[45] = S, e[46] = L) : L = e[46], w = i.map(L), e[40] = t, e[41] = i, e[42] = S, e[43] = w;
2401
+ if (e[40] !== t || e[41] !== r || e[42] !== x) {
2402
+ let D;
2403
+ e[44] !== t || e[45] !== x ? (D = (k) => /* @__PURE__ */ s(ge.Item, { value: k.value, asChild: !0, children: /* @__PURE__ */ s(Qe, { asChild: !0, variant: "full-width", id: k.value, label: k.label, icon: k.icon, isSelected: t.includes(k.value), endContent: t.includes(k.value) ? /* @__PURE__ */ s(ce, { as: nt, boxSize: "icon-xs" }) : void 0, onActivate: () => x(k.value) }) }, k.value), e[44] = t, e[45] = x, e[46] = D) : D = e[46], w = r.map(D), e[40] = t, e[41] = r, e[42] = x, e[43] = w;
2172
2404
  } else
2173
2405
  w = e[43];
2174
- let C;
2175
- e[47] !== w ? (C = /* @__PURE__ */ s(ge.Positioner, { children: /* @__PURE__ */ s(ge.Content, { minW: "tag-action-menu", bg: "bg", children: w }) }), e[47] = w, e[48] = C) : C = e[48];
2176
- let D;
2177
- return e[49] !== u || e[50] !== P || e[51] !== C || e[52] !== R ? (D = /* @__PURE__ */ y(u, { closeOnSelect: R, children: [
2406
+ let y;
2407
+ e[47] !== w ? (y = /* @__PURE__ */ s(ge.Positioner, { children: /* @__PURE__ */ s(ge.Content, { minW: "tag-action-menu", bg: "bg", children: w }) }), e[47] = w, e[48] = y) : y = e[48];
2408
+ let L;
2409
+ return e[49] !== d || e[50] !== P || e[51] !== y || e[52] !== R ? (L = /* @__PURE__ */ C(d, { closeOnSelect: R, children: [
2178
2410
  P,
2179
- C
2180
- ] }), e[49] = u, e[50] = P, e[51] = C, e[52] = R, e[53] = D) : D = e[53], D;
2181
- }, ul = (o) => {
2411
+ y
2412
+ ] }), e[49] = d, e[50] = P, e[51] = y, e[52] = R, e[53] = L) : L = e[53], L;
2413
+ }, zi = (o) => {
2182
2414
  const e = O(69), {
2183
2415
  actionOptions: t,
2184
2416
  actionsLabel: n,
2185
- colorOptions: r,
2186
- iconOptions: i,
2187
- value: l,
2417
+ colorOptions: l,
2418
+ iconOptions: r,
2419
+ value: i,
2188
2420
  isSaving: c,
2189
2421
  readOnly: a,
2190
- showDefault: d,
2191
- showIcons: u,
2192
- onActionsChange: f,
2422
+ showDefault: f,
2423
+ showIcons: d,
2424
+ onActionsChange: u,
2193
2425
  onColorChange: h,
2194
2426
  onDelete: p,
2195
2427
  onIconChange: m,
2196
2428
  onNameChange: g
2197
- } = o, x = n === void 0 ? "Actions" : n, b = c || a;
2198
- let k;
2199
- e[0] !== b || e[1] !== l.id ? (k = {
2200
- id: l.id,
2429
+ } = o, S = n === void 0 ? "Actions" : n, b = c || a;
2430
+ let T;
2431
+ e[0] !== b || e[1] !== i.id ? (T = {
2432
+ id: i.id,
2201
2433
  disabled: b
2202
- }, e[0] = b, e[1] = l.id, e[2] = k) : k = e[2];
2434
+ }, e[0] = b, e[1] = i.id, e[2] = T) : T = e[2];
2203
2435
  const {
2204
- attributes: A,
2436
+ attributes: I,
2205
2437
  listeners: R,
2206
- setNodeRef: S,
2438
+ setNodeRef: x,
2207
2439
  transform: $,
2208
- transition: I,
2440
+ transition: A,
2209
2441
  isDragging: P
2210
- } = nn(k);
2442
+ } = sn(T);
2211
2443
  let w;
2212
- e[3] !== $ ? (w = rn.Transform.toString($), e[3] = $, e[4] = w) : w = e[4];
2213
- let C;
2214
- e[5] !== w || e[6] !== I ? (C = {
2444
+ e[3] !== $ ? (w = cn.Transform.toString($), e[3] = $, e[4] = w) : w = e[4];
2445
+ let y;
2446
+ e[5] !== w || e[6] !== A ? (y = {
2215
2447
  transform: w,
2216
- transition: I
2217
- }, e[5] = w, e[6] = I, e[7] = C) : C = e[7];
2218
- const D = P ? "bg.elevated" : "transparent", L = P ? "compact" : "none", T = P ? "1px" : void 0, z = P ? "lg" : void 0, E = P ? "bg.elevated" : "bg.muted";
2448
+ transition: A
2449
+ }, e[5] = w, e[6] = A, e[7] = y) : y = e[7];
2450
+ const L = P ? "bg.elevated" : "transparent", D = P ? "compact" : "none", k = P ? "1px" : void 0, N = P ? "lg" : void 0, _ = P ? "bg.elevated" : "bg.muted";
2219
2451
  let v;
2220
- e[8] !== E ? (v = {
2221
- bg: E
2222
- }, e[8] = E, e[9] = v) : v = e[9];
2223
- const _ = a ? "default" : "grab";
2224
- let B;
2225
- e[10] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (B = {
2452
+ e[8] !== _ ? (v = {
2453
+ bg: _
2454
+ }, e[8] = _, e[9] = v) : v = e[9];
2455
+ const z = a ? "default" : "grab";
2456
+ let E;
2457
+ e[10] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (E = {
2226
2458
  color: "fg.muted"
2227
- }, e[10] = B) : B = e[10];
2228
- const K = `Reorder ${l.name}`;
2459
+ }, e[10] = E) : E = e[10];
2460
+ const H = `Reorder ${i.name}`;
2229
2461
  let W;
2230
- e[11] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (W = /* @__PURE__ */ s(ce, { as: Bn, boxSize: "icon-xs" }), e[11] = W) : W = e[11];
2231
- let H;
2232
- e[12] !== A || e[13] !== R || e[14] !== _ || e[15] !== K ? (H = /* @__PURE__ */ s(de, { cursor: _, color: "fg.subtle", _groupHover: B, "aria-label": K, ...A, ...R, children: W }), e[12] = A, e[13] = R, e[14] = _, e[15] = K, e[16] = H) : H = e[16];
2233
- const N = `Change ${l.name} appearance`;
2462
+ e[11] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (W = /* @__PURE__ */ s(ce, { as: no, boxSize: "icon-xs" }), e[11] = W) : W = e[11];
2463
+ let F;
2464
+ e[12] !== I || e[13] !== R || e[14] !== z || e[15] !== H ? (F = /* @__PURE__ */ s(fe, { cursor: z, color: "fg.subtle", _groupHover: E, "aria-label": H, ...I, ...R, children: W }), e[12] = I, e[13] = R, e[14] = z, e[15] = H, e[16] = F) : F = e[16];
2465
+ const B = `Change ${i.name} appearance`;
2234
2466
  let q;
2235
- e[17] !== r || e[18] !== b || e[19] !== i || e[20] !== h || e[21] !== m || e[22] !== u || e[23] !== N || e[24] !== l.color || e[25] !== l.icon ? (q = /* @__PURE__ */ s(dr, { color: l.color, colorOptions: r, icon: l.icon, iconOptions: i, showIcons: u, onColorChange: h, onIconChange: m, disabled: b, "aria-label": N }), e[17] = r, e[18] = b, e[19] = i, e[20] = h, e[21] = m, e[22] = u, e[23] = N, e[24] = l.color, e[25] = l.icon, e[26] = q) : q = e[26];
2236
- let j;
2237
- e[27] !== g || e[28] !== l.name ? (j = (oe) => {
2467
+ e[17] !== l || e[18] !== b || e[19] !== r || e[20] !== h || e[21] !== m || e[22] !== d || e[23] !== B || e[24] !== i.color || e[25] !== i.icon ? (q = /* @__PURE__ */ s(Ol, { color: i.color, colorOptions: l, icon: i.icon, iconOptions: r, showIcons: d, onColorChange: h, onIconChange: m, disabled: b, "aria-label": B }), e[17] = l, e[18] = b, e[19] = r, e[20] = h, e[21] = m, e[22] = d, e[23] = B, e[24] = i.color, e[25] = i.icon, e[26] = q) : q = e[26];
2468
+ let U;
2469
+ e[27] !== g || e[28] !== i.name ? (U = (oe) => {
2238
2470
  const he = oe.value.trim();
2239
- he && he !== l.name && g(he);
2240
- }, e[27] = g, e[28] = l.name, e[29] = j) : j = e[29];
2241
- let V, U;
2242
- e[30] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (V = /* @__PURE__ */ s(We.Preview, { textStyle: "paragraph/S/regular" }), U = /* @__PURE__ */ s(We.Input, { textStyle: "paragraph/S/regular" }), e[30] = V, e[31] = U) : (V = e[30], U = e[31]);
2243
- let X;
2244
- e[32] !== b || e[33] !== j || e[34] !== l.isNew || e[35] !== l.name ? (X = /* @__PURE__ */ y(We.Root, { minWidth: "0", defaultValue: l.name, defaultEdit: l.isNew, selectOnFocus: !0, disabled: b, onValueCommit: j, children: [
2245
- V,
2246
- U
2247
- ] }, l.name), e[32] = b, e[33] = j, e[34] = l.isNew, e[35] = l.name, e[36] = X) : X = e[36];
2248
- let se;
2249
- e[37] !== d || e[38] !== l.isDefault ? (se = d && l.isDefault ? /* @__PURE__ */ s(Te, { size: "sm", variant: "subtle", colorPalette: "blue", children: "Default" }) : null, e[37] = d, e[38] = l.isDefault, e[39] = se) : se = e[39];
2471
+ he && he !== i.name && g(he);
2472
+ }, e[27] = g, e[28] = i.name, e[29] = U) : U = e[29];
2473
+ let G, Q;
2474
+ e[30] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (G = /* @__PURE__ */ s(We.Preview, { textStyle: "paragraph/S/regular" }), Q = /* @__PURE__ */ s(We.Input, { textStyle: "paragraph/S/regular" }), e[30] = G, e[31] = Q) : (G = e[30], Q = e[31]);
2475
+ let K;
2476
+ e[32] !== b || e[33] !== U || e[34] !== i.isNew || e[35] !== i.name ? (K = /* @__PURE__ */ C(We.Root, { minWidth: "0", defaultValue: i.name, defaultEdit: i.isNew, selectOnFocus: !0, disabled: b, onValueCommit: U, children: [
2477
+ G,
2478
+ Q
2479
+ ] }, i.name), e[32] = b, e[33] = U, e[34] = i.isNew, e[35] = i.name, e[36] = K) : K = e[36];
2480
+ let ae;
2481
+ e[37] !== f || e[38] !== i.isDefault ? (ae = f && i.isDefault ? /* @__PURE__ */ s(Te, { size: "sm", variant: "subtle", colorPalette: "blue", children: "Default" }) : null, e[37] = f, e[38] = i.isDefault, e[39] = ae) : ae = e[39];
2250
2482
  let J;
2251
- e[40] !== X || e[41] !== se ? (J = /* @__PURE__ */ y(de, { flex: "1", minWidth: "0", alignItems: "center", gap: "xs", children: [
2252
- X,
2253
- se
2254
- ] }), e[40] = X, e[41] = se, e[42] = J) : J = e[42];
2483
+ e[40] !== K || e[41] !== ae ? (J = /* @__PURE__ */ C(fe, { flex: "1", minWidth: "0", alignItems: "center", gap: "xs", children: [
2484
+ K,
2485
+ ae
2486
+ ] }), e[40] = K, e[41] = ae, e[42] = J) : J = e[42];
2255
2487
  let ee;
2256
- e[43] !== t || e[44] !== x || e[45] !== b || e[46] !== f || e[47] !== l.actions || e[48] !== l.name ? (ee = t ? /* @__PURE__ */ s(de, { width: "tag-editor-commands", justifyContent: "flex-end", children: /* @__PURE__ */ s(dl, { actions: l.actions ?? [], disabled: b, label: x, optionName: l.name, options: t, onChange: f }) }) : null, e[43] = t, e[44] = x, e[45] = b, e[46] = f, e[47] = l.actions, e[48] = l.name, e[49] = ee) : ee = e[49];
2257
- let re;
2258
- e[50] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (re = {
2488
+ e[43] !== t || e[44] !== S || e[45] !== b || e[46] !== u || e[47] !== i.actions || e[48] !== i.name ? (ee = t ? /* @__PURE__ */ s(fe, { width: "tag-editor-commands", justifyContent: "flex-end", children: /* @__PURE__ */ s(Oi, { actions: i.actions ?? [], disabled: b, label: S, optionName: i.name, options: t, onChange: u }) }) : null, e[43] = t, e[44] = S, e[45] = b, e[46] = u, e[47] = i.actions, e[48] = i.name, e[49] = ee) : ee = e[49];
2489
+ let ie;
2490
+ e[50] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ie = {
2259
2491
  color: "fg.error",
2260
2492
  bg: "bg.error"
2261
- }, e[50] = re) : re = e[50];
2262
- const te = b || l.isDefault, le = `Delete ${l.name}`;
2493
+ }, e[50] = ie) : ie = e[50];
2494
+ const te = b || i.isDefault, re = `Delete ${i.name}`;
2263
2495
  let ne;
2264
- e[51] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ne = /* @__PURE__ */ s(ce, { as: Wn, boxSize: "icon-xs" }), e[51] = ne) : ne = e[51];
2496
+ e[51] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ne = /* @__PURE__ */ s(ce, { as: oo, boxSize: "icon-xs" }), e[51] = ne) : ne = e[51];
2265
2497
  let Y;
2266
- e[52] !== p || e[53] !== te || e[54] !== le ? (Y = /* @__PURE__ */ s(Fe, { size: "xs", variant: "ghost", color: "fg.subtle", _groupHover: re, onClick: p, disabled: te, "aria-label": le, children: ne }), e[52] = p, e[53] = te, e[54] = le, e[55] = Y) : Y = e[55];
2267
- let ie;
2268
- return e[56] !== S || e[57] !== H || e[58] !== q || e[59] !== J || e[60] !== ee || e[61] !== Y || e[62] !== C || e[63] !== D || e[64] !== L || e[65] !== T || e[66] !== z || e[67] !== v ? (ie = /* @__PURE__ */ y(de, { ref: S, style: C, className: "group", height: "tag-editor-row", alignItems: "center", gap: "compact", px: "xs", borderBottomWidth: "1px", borderColor: "border.subtle", bg: D, borderRadius: L, borderWidth: T, boxShadow: z, _hover: v, children: [
2269
- H,
2498
+ e[52] !== p || e[53] !== te || e[54] !== re ? (Y = /* @__PURE__ */ s(Fe, { size: "xs", variant: "ghost", color: "fg.subtle", _groupHover: ie, onClick: p, disabled: te, "aria-label": re, children: ne }), e[52] = p, e[53] = te, e[54] = re, e[55] = Y) : Y = e[55];
2499
+ let se;
2500
+ return e[56] !== x || e[57] !== F || e[58] !== q || e[59] !== J || e[60] !== ee || e[61] !== Y || e[62] !== y || e[63] !== L || e[64] !== D || e[65] !== k || e[66] !== N || e[67] !== v ? (se = /* @__PURE__ */ C(fe, { ref: x, style: y, className: "group", height: "tag-editor-row", alignItems: "center", gap: "compact", px: "xs", borderBottomWidth: "1px", borderColor: "border.subtle", bg: L, borderRadius: D, borderWidth: k, boxShadow: N, _hover: v, children: [
2501
+ F,
2270
2502
  q,
2271
2503
  J,
2272
2504
  ee,
2273
2505
  Y
2274
- ] }), e[56] = S, e[57] = H, e[58] = q, e[59] = J, e[60] = ee, e[61] = Y, e[62] = C, e[63] = D, e[64] = L, e[65] = T, e[66] = z, e[67] = v, e[68] = ie) : ie = e[68], ie;
2275
- }, fl = (o) => o.length > 0 ? Math.max(...o.map((e) => e.sortOrder)) + 1 : 0, hl = (o) => {
2506
+ ] }), e[56] = x, e[57] = F, e[58] = q, e[59] = J, e[60] = ee, e[61] = Y, e[62] = y, e[63] = L, e[64] = D, e[65] = k, e[66] = N, e[67] = v, e[68] = se) : se = e[68], se;
2507
+ }, Ni = (o) => o.length > 0 ? Math.max(...o.map((e) => e.sortOrder)) + 1 : 0, Bi = (o) => {
2276
2508
  const e = O(12), {
2277
2509
  title: t,
2278
2510
  hasChanges: n,
2279
- isSaving: r,
2280
- onTitleChange: i
2511
+ isSaving: l,
2512
+ onTitleChange: r
2281
2513
  } = o;
2282
- if (!i) {
2283
- let u;
2284
- return e[0] !== n || e[1] !== t ? (u = /* @__PURE__ */ s(al, { hasChanges: n, children: t }), e[0] = n, e[1] = t, e[2] = u) : u = e[2], u;
2514
+ if (!r) {
2515
+ let d;
2516
+ return e[0] !== n || e[1] !== t ? (d = /* @__PURE__ */ s(Di, { hasChanges: n, children: t }), e[0] = n, e[1] = t, e[2] = d) : d = e[2], d;
2285
2517
  }
2286
- let l;
2287
- e[3] !== i || e[4] !== t ? (l = (u) => {
2288
- const f = u.value.trim();
2289
- f && f !== t && i(f);
2290
- }, e[3] = i, e[4] = t, e[5] = l) : l = e[5];
2518
+ let i;
2519
+ e[3] !== r || e[4] !== t ? (i = (d) => {
2520
+ const u = d.value.trim();
2521
+ u && u !== t && r(u);
2522
+ }, e[3] = r, e[4] = t, e[5] = i) : i = e[5];
2291
2523
  let c, a;
2292
2524
  e[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */ s(We.Preview, { textStyle: "label/L/medium" }), a = /* @__PURE__ */ s(We.Input, { textStyle: "label/L/medium" }), e[6] = c, e[7] = a) : (c = e[6], a = e[7]);
2293
- let d;
2294
- return e[8] !== r || e[9] !== l || e[10] !== t ? (d = /* @__PURE__ */ y(We.Root, { defaultValue: t, disabled: r, selectOnFocus: !0, onValueCommit: l, children: [
2525
+ let f;
2526
+ return e[8] !== l || e[9] !== i || e[10] !== t ? (f = /* @__PURE__ */ C(We.Root, { defaultValue: t, disabled: l, selectOnFocus: !0, onValueCommit: i, children: [
2295
2527
  c,
2296
2528
  a
2297
- ] }, t), e[8] = r, e[9] = l, e[10] = t, e[11] = d) : d = e[11], d;
2298
- }, ml = Pe("button", {
2529
+ ] }, t), e[8] = l, e[9] = i, e[10] = t, e[11] = f) : f = e[11], f;
2530
+ }, Wi = Ae("button", {
2299
2531
  base: {
2300
2532
  display: "flex",
2301
2533
  alignItems: "center",
@@ -2318,260 +2550,260 @@ const {
2318
2550
  }
2319
2551
  }
2320
2552
  }
2321
- }), pl = (o) => {
2553
+ }), Mi = (o) => {
2322
2554
  const e = O(9), {
2323
2555
  valueLabel: t,
2324
2556
  actionsLabel: n
2325
2557
  } = o;
2558
+ let l;
2559
+ e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (l = /* @__PURE__ */ s(fe, { width: "tag-editor-lead", flexShrink: "0" }), e[0] = l) : l = e[0];
2326
2560
  let r;
2327
- e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (r = /* @__PURE__ */ s(de, { width: "tag-editor-lead", flexShrink: "0" }), e[0] = r) : r = e[0];
2561
+ e[1] !== t ? (r = /* @__PURE__ */ s(M, { flex: "1", minWidth: "0", textStyle: "label/XS/caps", color: "fg.subtle", children: t }), e[1] = t, e[2] = r) : r = e[2];
2328
2562
  let i;
2329
- e[1] !== t ? (i = /* @__PURE__ */ s(F, { flex: "1", minWidth: "0", textStyle: "label/XS/caps", color: "fg.subtle", children: t }), e[1] = t, e[2] = i) : i = e[2];
2330
- let l;
2331
- e[3] !== n ? (l = n ? /* @__PURE__ */ s(F, { width: "tag-editor-commands", textAlign: "right", textStyle: "label/XS/caps", color: "fg.subtle", children: n }) : null, e[3] = n, e[4] = l) : l = e[4];
2563
+ e[3] !== n ? (i = n ? /* @__PURE__ */ s(M, { width: "tag-editor-commands", textAlign: "right", textStyle: "label/XS/caps", color: "fg.subtle", children: n }) : null, e[3] = n, e[4] = i) : i = e[4];
2332
2564
  let c;
2333
- e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */ s(de, { width: "tag-editor-trailing", flexShrink: "0" }), e[5] = c) : c = e[5];
2565
+ e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */ s(fe, { width: "tag-editor-trailing", flexShrink: "0" }), e[5] = c) : c = e[5];
2334
2566
  let a;
2335
- return e[6] !== i || e[7] !== l ? (a = /* @__PURE__ */ y(de, { alignItems: "center", gap: "compact", paddingInline: "xs", height: "tag-editor-add-row", bg: "bg.subtle", borderBottomWidth: "1px", borderColor: "border.subtle", children: [
2567
+ return e[6] !== r || e[7] !== i ? (a = /* @__PURE__ */ C(fe, { alignItems: "center", gap: "compact", paddingInline: "xs", height: "tag-editor-add-row", bg: "bg.subtle", borderBottomWidth: "1px", borderColor: "border.subtle", children: [
2568
+ l,
2336
2569
  r,
2337
2570
  i,
2338
- l,
2339
2571
  c
2340
- ] }), e[6] = i, e[7] = l, e[8] = a) : a = e[8], a;
2341
- }, gl = (o) => {
2572
+ ] }), e[6] = r, e[7] = i, e[8] = a) : a = e[8], a;
2573
+ }, Fi = (o) => {
2342
2574
  const e = O(22), {
2343
2575
  label: t,
2344
2576
  values: n,
2345
- disabled: r,
2346
- onSelect: i
2577
+ disabled: l,
2578
+ onSelect: r
2347
2579
  } = o;
2348
- let l;
2349
- e[0] !== n ? (l = n.find(Sl), e[0] = n, e[1] = l) : l = e[1];
2350
- const c = l;
2580
+ let i;
2581
+ e[0] !== n ? (i = n.find(Vi), e[0] = n, e[1] = i) : i = e[1];
2582
+ const c = i;
2351
2583
  let a;
2352
- e[2] !== t ? (a = /* @__PURE__ */ s(F, { textStyle: "paragraph/S/regular", color: "fg.muted", children: t }), e[2] = t, e[3] = a) : a = e[3];
2353
- const d = c?.name ?? "None";
2584
+ e[2] !== t ? (a = /* @__PURE__ */ s(M, { textStyle: "paragraph/S/regular", color: "fg.muted", children: t }), e[2] = t, e[3] = a) : a = e[3];
2585
+ const f = c?.name ?? "None";
2586
+ let d;
2587
+ e[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = /* @__PURE__ */ s(ce, { as: en, boxSize: "icon-2xs" }), e[4] = d) : d = e[4];
2354
2588
  let u;
2355
- e[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (u = /* @__PURE__ */ s(ce, { as: Xt, boxSize: "icon-2xs" }), e[4] = u) : u = e[4];
2356
- let f;
2357
- e[5] !== r || e[6] !== t || e[7] !== d ? (f = /* @__PURE__ */ s(ge.Trigger, { asChild: !0, children: /* @__PURE__ */ y(ue, { size: "2xs", variant: "ghost", gap: "xs", disabled: r, "aria-label": t, children: [
2358
- d,
2359
- u
2360
- ] }) }), e[5] = r, e[6] = t, e[7] = d, e[8] = f) : f = e[8];
2589
+ e[5] !== l || e[6] !== t || e[7] !== f ? (u = /* @__PURE__ */ s(ge.Trigger, { asChild: !0, children: /* @__PURE__ */ C(de, { size: "2xs", variant: "ghost", gap: "xs", disabled: l, "aria-label": t, children: [
2590
+ f,
2591
+ d
2592
+ ] }) }), e[5] = l, e[6] = t, e[7] = f, e[8] = u) : u = e[8];
2361
2593
  let h;
2362
- if (e[9] !== i || e[10] !== n) {
2363
- let x;
2364
- e[12] !== i ? (x = (b) => /* @__PURE__ */ s(ge.Item, { value: b.id, asChild: !0, children: /* @__PURE__ */ s(Qe, { asChild: !0, variant: "full-width", id: b.id, label: b.name, isSelected: b.isDefault, endContent: b.isDefault ? /* @__PURE__ */ s(ce, { as: et, boxSize: "icon-xs" }) : void 0, onActivate: () => i(b) }) }, b.id), e[12] = i, e[13] = x) : x = e[13], h = n.map(x), e[9] = i, e[10] = n, e[11] = h;
2594
+ if (e[9] !== r || e[10] !== n) {
2595
+ let S;
2596
+ e[12] !== r ? (S = (b) => /* @__PURE__ */ s(ge.Item, { value: b.id, asChild: !0, children: /* @__PURE__ */ s(Qe, { asChild: !0, variant: "full-width", id: b.id, label: b.name, isSelected: b.isDefault, endContent: b.isDefault ? /* @__PURE__ */ s(ce, { as: nt, boxSize: "icon-xs" }) : void 0, onActivate: () => r(b) }) }, b.id), e[12] = r, e[13] = S) : S = e[13], h = n.map(S), e[9] = r, e[10] = n, e[11] = h;
2365
2597
  } else
2366
2598
  h = e[11];
2367
2599
  let p;
2368
2600
  e[14] !== h ? (p = /* @__PURE__ */ s(ge.Positioner, { children: /* @__PURE__ */ s(ge.Content, { minW: "tag-action-menu", bg: "bg", children: h }) }), e[14] = h, e[15] = p) : p = e[15];
2369
2601
  let m;
2370
- e[16] !== f || e[17] !== p ? (m = /* @__PURE__ */ y(ge.Root, { children: [
2371
- f,
2602
+ e[16] !== u || e[17] !== p ? (m = /* @__PURE__ */ C(ge.Root, { children: [
2603
+ u,
2372
2604
  p
2373
- ] }), e[16] = f, e[17] = p, e[18] = m) : m = e[18];
2605
+ ] }), e[16] = u, e[17] = p, e[18] = m) : m = e[18];
2374
2606
  let g;
2375
- return e[19] !== a || e[20] !== m ? (g = /* @__PURE__ */ y(de, { alignItems: "center", gap: "sm", paddingInline: "xs", paddingBlock: "xs", bg: "bg.subtle", borderTopWidth: "1px", borderColor: "border.subtle", children: [
2607
+ return e[19] !== a || e[20] !== m ? (g = /* @__PURE__ */ C(fe, { alignItems: "center", gap: "sm", paddingInline: "xs", paddingBlock: "xs", bg: "bg.subtle", borderTopWidth: "1px", borderColor: "border.subtle", children: [
2376
2608
  a,
2377
2609
  m
2378
2610
  ] }), e[19] = a, e[20] = m, e[21] = g) : g = e[21], g;
2379
- }, bl = (o) => {
2611
+ }, Hi = (o) => {
2380
2612
  const {
2381
2613
  title: e,
2382
2614
  description: t,
2383
2615
  headerActions: n,
2384
- values: r,
2385
- onValuesChange: i,
2386
- onDeleteValue: l,
2616
+ values: l,
2617
+ onValuesChange: r,
2618
+ onDeleteValue: i,
2387
2619
  onSetDefault: c,
2388
2620
  onTitleChange: a,
2389
- hasChanges: d,
2390
- isSaving: u,
2391
- readOnly: f,
2621
+ hasChanges: f,
2622
+ isSaving: d,
2623
+ readOnly: u,
2392
2624
  addLabel: h = "Add option",
2393
2625
  addName: p = "New option",
2394
2626
  actionOptions: m,
2395
2627
  actionsLabel: g,
2396
- defaultValueLabel: x = "Default value",
2628
+ defaultValueLabel: S = "Default value",
2397
2629
  colorOptions: b,
2398
- defaultAddColor: k = "blue",
2399
- defaultAddIcon: A = null,
2630
+ defaultAddColor: T = "blue",
2631
+ defaultAddIcon: I = null,
2400
2632
  deleteButtonText: R = "Delete tag",
2401
- deleteHeadline: S = "Delete tag?",
2633
+ deleteHeadline: x = "Delete tag?",
2402
2634
  deleteNotificationText: $ = (W) => `This will delete "${W.name}".`,
2403
- iconOptions: I,
2635
+ iconOptions: A,
2404
2636
  showDefault: P,
2405
2637
  showIcons: w = !0,
2406
- framed: C,
2407
- showColumnHeaders: D,
2408
- valueColumnLabel: L = "Name"
2409
- } = o, [T, z] = fe(null), E = Zt(ct(Jt, {
2638
+ framed: y,
2639
+ showColumnHeaders: L,
2640
+ valueColumnLabel: D = "Name"
2641
+ } = o, [k, N] = ue(null), _ = nn(ut(on, {
2410
2642
  activationConstraint: {
2411
2643
  distance: 5
2412
2644
  }
2413
- })), v = (W, H) => {
2414
- const N = [...r];
2415
- N[W] = {
2416
- ...N[W],
2417
- ...H
2418
- }, i(N);
2419
- }, _ = () => {
2420
- i([...r, {
2645
+ })), v = (W, F) => {
2646
+ const B = [...l];
2647
+ B[W] = {
2648
+ ...B[W],
2649
+ ...F
2650
+ }, r(B);
2651
+ }, z = () => {
2652
+ r([...l, {
2421
2653
  id: `new-${crypto.randomUUID()}`,
2422
2654
  name: p,
2423
- color: k,
2424
- icon: A,
2425
- sortOrder: fl(r),
2655
+ color: T,
2656
+ icon: I,
2657
+ sortOrder: Ni(l),
2426
2658
  isNew: !0
2427
2659
  }]);
2428
- }, B = () => {
2429
- T && (l ? l(T) : i(r.filter((W) => W.id !== T.id)), z(null));
2660
+ }, E = () => {
2661
+ k && (i ? i(k) : r(l.filter((W) => W.id !== k.id)), N(null));
2430
2662
  };
2431
- return /* @__PURE__ */ y(Me, { children: [
2432
- /* @__PURE__ */ y(Q, { gap: "2xs", children: [
2433
- e || n ? /* @__PURE__ */ y(de, { minHeight: "tag-editor-row", alignItems: "center", justifyContent: "space-between", gap: "xs", children: [
2434
- /* @__PURE__ */ y(Q, { gap: "3xs", minWidth: "0", children: [
2435
- e ? /* @__PURE__ */ s(hl, { title: e, hasChanges: d, isSaving: u, onTitleChange: a }) : null,
2436
- t ? /* @__PURE__ */ s(F, { textStyle: "paragraph/S/regular", color: "fg.muted", children: t }) : null
2663
+ return /* @__PURE__ */ C(He, { children: [
2664
+ /* @__PURE__ */ C(X, { gap: "2xs", children: [
2665
+ e || n ? /* @__PURE__ */ C(fe, { minHeight: "tag-editor-row", alignItems: "center", justifyContent: "space-between", gap: "xs", children: [
2666
+ /* @__PURE__ */ C(X, { gap: "3xs", minWidth: "0", children: [
2667
+ e ? /* @__PURE__ */ s(Bi, { title: e, hasChanges: f, isSaving: d, onTitleChange: a }) : null,
2668
+ t ? /* @__PURE__ */ s(M, { textStyle: "paragraph/S/regular", color: "fg.muted", children: t }) : null
2437
2669
  ] }),
2438
2670
  n
2439
2671
  ] }) : null,
2440
- /* @__PURE__ */ y(Q, { gap: "none", borderWidth: C ? "1px" : void 0, borderColor: C ? "border.subtle" : void 0, borderRadius: C ? "md" : void 0, overflow: C ? "hidden" : void 0, children: [
2441
- D ? /* @__PURE__ */ s(pl, { valueLabel: L, actionsLabel: m ? g : void 0 }) : null,
2442
- /* @__PURE__ */ s(en, { sensors: E, collisionDetection: tn, onDragEnd: f ? void 0 : (W) => {
2672
+ /* @__PURE__ */ C(X, { gap: "none", borderWidth: y ? "1px" : void 0, borderColor: y ? "border.subtle" : void 0, borderRadius: y ? "md" : void 0, overflow: y ? "hidden" : void 0, children: [
2673
+ L ? /* @__PURE__ */ s(Mi, { valueLabel: D, actionsLabel: m ? g : void 0 }) : null,
2674
+ /* @__PURE__ */ s(ln, { sensors: _, collisionDetection: rn, onDragEnd: u ? void 0 : (W) => {
2443
2675
  const {
2444
- active: H,
2445
- over: N
2676
+ active: F,
2677
+ over: B
2446
2678
  } = W;
2447
- if (!N || H.id === N.id) return;
2448
- const q = r.findIndex((V) => V.id === H.id), j = r.findIndex((V) => V.id === N.id);
2449
- q < 0 || j < 0 || i(Zn(r, q, j).map((V, U) => ({
2450
- ...V,
2451
- sortOrder: U
2679
+ if (!B || F.id === B.id) return;
2680
+ const q = l.findIndex((G) => G.id === F.id), U = l.findIndex((G) => G.id === B.id);
2681
+ q < 0 || U < 0 || r(So(l, q, U).map((G, Q) => ({
2682
+ ...G,
2683
+ sortOrder: Q
2452
2684
  })));
2453
- }, children: /* @__PURE__ */ s(on, { items: r.map((W) => W.id), strategy: Yn, children: r.map((W, H) => /* @__PURE__ */ s(ul, { value: W, isSaving: u, readOnly: f, showDefault: P, showIcons: w, actionOptions: m, actionsLabel: g, colorOptions: b, iconOptions: I, onNameChange: (N) => v(H, {
2454
- name: N
2455
- }), onColorChange: (N) => v(H, {
2456
- color: N
2457
- }), onIconChange: (N) => v(H, {
2458
- icon: N
2459
- }), onActionsChange: (N) => v(H, {
2460
- actions: N
2461
- }), onDelete: () => z(W) }, W.id)) }) }),
2462
- f ? null : /* @__PURE__ */ y(ml, { type: "button", disabled: u, onClick: _, children: [
2463
- /* @__PURE__ */ s(ce, { as: Hn, boxSize: "icon-xs" }),
2464
- /* @__PURE__ */ s(F, { textStyle: "paragraph/S/regular", children: h })
2685
+ }, children: /* @__PURE__ */ s(an, { items: l.map((W) => W.id), strategy: bo, children: l.map((W, F) => /* @__PURE__ */ s(zi, { value: W, isSaving: d, readOnly: u, showDefault: P, showIcons: w, actionOptions: m, actionsLabel: g, colorOptions: b, iconOptions: A, onNameChange: (B) => v(F, {
2686
+ name: B
2687
+ }), onColorChange: (B) => v(F, {
2688
+ color: B
2689
+ }), onIconChange: (B) => v(F, {
2690
+ icon: B
2691
+ }), onActionsChange: (B) => v(F, {
2692
+ actions: B
2693
+ }), onDelete: () => N(W) }, W.id)) }) }),
2694
+ u ? null : /* @__PURE__ */ C(Wi, { type: "button", disabled: d, onClick: z, children: [
2695
+ /* @__PURE__ */ s(ce, { as: lo, boxSize: "icon-xs" }),
2696
+ /* @__PURE__ */ s(M, { textStyle: "paragraph/S/regular", children: h })
2465
2697
  ] }),
2466
- P && r.length > 0 ? /* @__PURE__ */ s(gl, { label: x, values: r, disabled: u || f, onSelect: (W) => c?.(W) }) : null
2698
+ P && l.length > 0 ? /* @__PURE__ */ s(Fi, { label: S, values: l, disabled: d || u, onSelect: (W) => c?.(W) }) : null
2467
2699
  ] })
2468
2700
  ] }),
2469
- /* @__PURE__ */ s(Qo, { open: !!T, onClose: () => z(null), onDelete: B, headline: S, notificationText: T ? $(T) : "", buttonText: R })
2701
+ /* @__PURE__ */ s(Sl, { open: !!k, onClose: () => N(null), onDelete: E, headline: x, notificationText: k ? $(k) : "", buttonText: R })
2470
2702
  ] });
2471
2703
  };
2472
- function Sl(o) {
2704
+ function Vi(o) {
2473
2705
  return o.isDefault;
2474
2706
  }
2475
- const xl = (o) => {
2707
+ const Gi = (o) => {
2476
2708
  const e = O(13), {
2477
2709
  onSave: t,
2478
2710
  onReset: n,
2479
- hasChanges: r,
2480
- isSaving: i,
2481
- resetLabel: l,
2711
+ hasChanges: l,
2712
+ isSaving: r,
2713
+ resetLabel: i,
2482
2714
  saveLabel: c
2483
- } = o, a = l === void 0 ? "Reset" : l, d = c === void 0 ? "Save" : c;
2484
- let u;
2485
- e[0] !== r || e[1] !== i || e[2] !== n || e[3] !== a ? (u = r ? /* @__PURE__ */ s(ue, { size: "sm", variant: "ghost", onClick: n, disabled: i, children: a }) : null, e[0] = r, e[1] = i, e[2] = n, e[3] = a, e[4] = u) : u = e[4];
2486
- const f = !r;
2715
+ } = o, a = i === void 0 ? "Reset" : i, f = c === void 0 ? "Save" : c;
2716
+ let d;
2717
+ e[0] !== l || e[1] !== r || e[2] !== n || e[3] !== a ? (d = l ? /* @__PURE__ */ s(de, { size: "sm", variant: "ghost", onClick: n, disabled: r, children: a }) : null, e[0] = l, e[1] = r, e[2] = n, e[3] = a, e[4] = d) : d = e[4];
2718
+ const u = !l;
2487
2719
  let h;
2488
- e[5] !== i || e[6] !== t || e[7] !== d || e[8] !== f ? (h = /* @__PURE__ */ s(ue, { size: "sm", variant: "primary", onClick: t, loading: i, disabled: f, children: d }), e[5] = i, e[6] = t, e[7] = d, e[8] = f, e[9] = h) : h = e[9];
2720
+ e[5] !== r || e[6] !== t || e[7] !== f || e[8] !== u ? (h = /* @__PURE__ */ s(de, { size: "sm", variant: "primary", onClick: t, loading: r, disabled: u, children: f }), e[5] = r, e[6] = t, e[7] = f, e[8] = u, e[9] = h) : h = e[9];
2489
2721
  let p;
2490
- return e[10] !== u || e[11] !== h ? (p = /* @__PURE__ */ y(ae, { gap: "xs", children: [
2491
- u,
2722
+ return e[10] !== d || e[11] !== h ? (p = /* @__PURE__ */ C(le, { gap: "xs", children: [
2723
+ d,
2492
2724
  h
2493
- ] }), e[10] = u, e[11] = h, e[12] = p) : p = e[12], p;
2494
- }, vl = (o, e) => o.sortOrder - e.sortOrder || o.name.localeCompare(e.name), Dt = (o, e) => o.map(e).sort(vl), yl = (o, e) => o.find((t) => t.id === e.id), Cl = (o, e, t, n) => t.size > 0 ? !0 : e.some((r) => {
2495
- if (r.isNew) return !0;
2496
- const i = yl(o, r);
2497
- return i ? n(i, r) || r.sortOrder !== i.sortOrder : !0;
2498
- }), Lt = (o) => o instanceof Error ? o.message : o ? String(o) : null, Qi = (o) => {
2725
+ ] }), e[10] = d, e[11] = h, e[12] = p) : p = e[12], p;
2726
+ }, ji = (o, e) => o.sortOrder - e.sortOrder || o.name.localeCompare(e.name), Ot = (o, e) => o.map(e).sort(ji), Ui = (o, e) => o.find((t) => t.id === e.id), Qi = (o, e, t, n) => t.size > 0 ? !0 : e.some((l) => {
2727
+ if (l.isNew) return !0;
2728
+ const r = Ui(o, l);
2729
+ return r ? n(r, l) || l.sortOrder !== r.sortOrder : !0;
2730
+ }), zt = (o) => o instanceof Error ? o.message : o ? String(o) : null, vs = (o) => {
2499
2731
  const {
2500
2732
  errorTitle: e,
2501
2733
  loadingText: t = "Loading...",
2502
2734
  resetLabel: n,
2503
- saveLabel: r,
2504
- values: i,
2505
- loadError: l,
2735
+ saveLabel: l,
2736
+ values: r,
2737
+ loadError: i,
2506
2738
  onSave: c,
2507
2739
  readOnly: a,
2508
- toEditorValue: d,
2509
- valueNeedsUpdate: u,
2510
- ...f
2511
- } = o, [h, p] = fe([]), [m, g] = fe(/* @__PURE__ */ new Set()), [x, b] = fe(!1), [k, A] = fe(null), R = i ?? [];
2740
+ toEditorValue: f,
2741
+ valueNeedsUpdate: d,
2742
+ ...u
2743
+ } = o, [h, p] = ue([]), [m, g] = ue(/* @__PURE__ */ new Set()), [S, b] = ue(!1), [T, I] = ue(null), R = r ?? [];
2512
2744
  me(() => {
2513
- i && p(Dt(i, d));
2514
- }, [i, d]);
2515
- const S = async () => {
2516
- b(!0), A(null);
2745
+ r && p(Ot(r, f));
2746
+ }, [r, f]);
2747
+ const x = async () => {
2748
+ b(!0), I(null);
2517
2749
  try {
2518
2750
  await c({
2519
2751
  deletedIds: m,
2520
2752
  drafts: h,
2521
2753
  values: R
2522
2754
  }), g(/* @__PURE__ */ new Set());
2523
- } catch (C) {
2524
- A(C);
2755
+ } catch (y) {
2756
+ I(y);
2525
2757
  } finally {
2526
2758
  b(!1);
2527
2759
  }
2528
- }, $ = Cl(R, h, m, u), I = Lt(l) ?? Lt(k), P = (C) => {
2529
- C.isNew || g(/* @__PURE__ */ new Set([...m, C.id])), p(h.filter((D) => D.id !== C.id));
2760
+ }, $ = Qi(R, h, m, d), A = zt(i) ?? zt(T), P = (y) => {
2761
+ y.isNew || g(/* @__PURE__ */ new Set([...m, y.id])), p(h.filter((L) => L.id !== y.id));
2530
2762
  }, w = () => {
2531
- p(Dt(R, d)), g(/* @__PURE__ */ new Set()), A(null);
2763
+ p(Ot(R, f)), g(/* @__PURE__ */ new Set()), I(null);
2532
2764
  };
2533
- return /* @__PURE__ */ y(Q, { boxSizing: "border-box", minH: "100%", p: "lg", gap: "lg", bg: "bg", color: "fg", children: [
2534
- I ? /* @__PURE__ */ s(ht, { status: "error", colorPalette: "red", title: e, size: "sm", children: I }) : null,
2535
- i === void 0 ? /* @__PURE__ */ y(ae, { gap: "sm", color: "fg.muted", children: [
2536
- /* @__PURE__ */ s(jt, { size: "sm" }),
2537
- /* @__PURE__ */ s(F, { textStyle: "paragraph/S/regular", children: t })
2538
- ] }) : /* @__PURE__ */ s(bl, { ...f, readOnly: a, values: h, onValuesChange: p, onDeleteValue: P, onSetDefault: f.showDefault ? (C) => p(h.map((D) => ({
2539
- ...D,
2540
- isDefault: D.id === C.id
2541
- }))) : f.onSetDefault, hasChanges: $, isSaving: x, headerActions: a ? void 0 : /* @__PURE__ */ s(xl, { hasChanges: $, isSaving: x, resetLabel: n, saveLabel: r, onSave: () => {
2542
- S();
2765
+ return /* @__PURE__ */ C(X, { boxSizing: "border-box", minH: "100%", p: "lg", gap: "lg", bg: "bg", color: "fg", children: [
2766
+ A ? /* @__PURE__ */ s(lt, { status: "error", colorPalette: "red", title: e, size: "sm", children: A }) : null,
2767
+ r === void 0 ? /* @__PURE__ */ C(le, { gap: "sm", color: "fg.muted", children: [
2768
+ /* @__PURE__ */ s(pt, { size: "sm" }),
2769
+ /* @__PURE__ */ s(M, { textStyle: "paragraph/S/regular", children: t })
2770
+ ] }) : /* @__PURE__ */ s(Hi, { ...u, readOnly: a, values: h, onValuesChange: p, onDeleteValue: P, onSetDefault: u.showDefault ? (y) => p(h.map((L) => ({
2771
+ ...L,
2772
+ isDefault: L.id === y.id
2773
+ }))) : u.onSetDefault, hasChanges: $, isSaving: S, headerActions: a ? void 0 : /* @__PURE__ */ s(Gi, { hasChanges: $, isSaving: S, resetLabel: n, saveLabel: l, onSave: () => {
2774
+ x();
2543
2775
  }, onReset: w }) })
2544
2776
  ] });
2545
- }, Ot = {
2777
+ }, Nt = {
2546
2778
  sectionOrder: [],
2547
2779
  nodeOrderBySection: {},
2548
2780
  sectionSlotById: {}
2549
- }, wl = "pstdio/ui/tree-list-order", Il = (o) => `${wl}/${o}`, _t = (o) => {
2781
+ }, Xi = "pstdio/ui/tree-list-order", qi = (o) => `${Xi}/${o}`, Bt = (o) => {
2550
2782
  const e = /* @__PURE__ */ new Set(), t = [];
2551
2783
  for (const n of o)
2552
2784
  e.has(n) || (e.add(n), t.push(n));
2553
2785
  return t;
2554
- }, Tl = (o) => ({
2786
+ }, Ki = (o) => ({
2555
2787
  sectionOrder: o.sectionOrder,
2556
2788
  nodeOrderBySection: o.nodeOrderBySection,
2557
2789
  sectionSlotById: o.sectionSlotById
2558
- }), Pl = (o) => lt()(ot((e) => ({
2559
- ...Ot,
2790
+ }), Yi = (o) => at()(rt((e) => ({
2791
+ ...Nt,
2560
2792
  setSectionOrder: (t) => e((n) => ({
2561
2793
  ...n,
2562
- sectionOrder: _t(t)
2794
+ sectionOrder: Bt(t)
2563
2795
  })),
2564
- setNodeOrder: (t, n) => e((r) => ({
2565
- ...r,
2796
+ setNodeOrder: (t, n) => e((l) => ({
2797
+ ...l,
2566
2798
  nodeOrderBySection: {
2567
- ...r.nodeOrderBySection,
2568
- [t]: _t(n)
2799
+ ...l.nodeOrderBySection,
2800
+ [t]: Bt(n)
2569
2801
  }
2570
2802
  })),
2571
- setSectionSlot: (t, n) => e((r) => ({
2572
- ...r,
2803
+ setSectionSlot: (t, n) => e((l) => ({
2804
+ ...l,
2573
2805
  sectionSlotById: {
2574
- ...r.sectionSlotById,
2806
+ ...l.sectionSlotById,
2575
2807
  [t]: n
2576
2808
  }
2577
2809
  })),
@@ -2582,112 +2814,112 @@ const xl = (o) => {
2582
2814
  resetNodeOrder: (t) => e((n) => {
2583
2815
  if (!(t in n.nodeOrderBySection)) return n;
2584
2816
  const {
2585
- [t]: r,
2586
- ...i
2817
+ [t]: l,
2818
+ ...r
2587
2819
  } = n.nodeOrderBySection;
2588
2820
  return {
2589
2821
  ...n,
2590
- nodeOrderBySection: i
2822
+ nodeOrderBySection: r
2591
2823
  };
2592
2824
  }),
2593
- reset: () => e(Ot)
2825
+ reset: () => e(Nt)
2594
2826
  }), {
2595
- name: Il(o.storageKey),
2596
- storage: rt(Ve),
2597
- partialize: Tl
2598
- })), zt = /* @__PURE__ */ new Map(), Al = (o) => {
2599
- const e = zt.get(o);
2827
+ name: qi(o.storageKey),
2828
+ storage: st(Ve),
2829
+ partialize: Ki
2830
+ })), Wt = /* @__PURE__ */ new Map(), Zi = (o) => {
2831
+ const e = Wt.get(o);
2600
2832
  if (e) return e;
2601
- const t = Pl({
2833
+ const t = Yi({
2602
2834
  storageKey: o
2603
2835
  });
2604
- return zt.set(o, t), t;
2605
- }, qi = (o, e) => {
2836
+ return Wt.set(o, t), t;
2837
+ }, ys = (o, e) => {
2606
2838
  const t = O(2);
2607
2839
  let n;
2608
- return t[0] !== o ? (n = Al(o), t[0] = o, t[1] = n) : n = t[1], nt(n, e);
2609
- }, Rl = (o, e) => {
2840
+ return t[0] !== o ? (n = Zi(o), t[0] = o, t[1] = n) : n = t[1], it(n, e);
2841
+ }, Ji = (o, e) => {
2610
2842
  if (e.length === 0) return o;
2611
- const t = new Map(o.map((l, c) => [l.id, c])), n = /* @__PURE__ */ new Set(), r = [];
2612
- for (const l of e) {
2613
- const c = t.get(l);
2614
- c === void 0 || n.has(c) || (n.add(c), r.push(o[c]));
2843
+ const t = new Map(o.map((i, c) => [i.id, c])), n = /* @__PURE__ */ new Set(), l = [];
2844
+ for (const i of e) {
2845
+ const c = t.get(i);
2846
+ c === void 0 || n.has(c) || (n.add(c), l.push(o[c]));
2615
2847
  }
2616
- let i = r.length > 0 && r.length !== o.length;
2617
- for (let l = 0; l < o.length; l += 1)
2618
- n.has(l) || (r.length !== l && !i && (i = !0), r.push(o[l]));
2619
- if (!i) {
2620
- for (let l = 0; l < o.length; l += 1)
2621
- if (o[l] !== r[l]) {
2622
- i = !0;
2848
+ let r = l.length > 0 && l.length !== o.length;
2849
+ for (let i = 0; i < o.length; i += 1)
2850
+ n.has(i) || (l.length !== i && !r && (r = !0), l.push(o[i]));
2851
+ if (!r) {
2852
+ for (let i = 0; i < o.length; i += 1)
2853
+ if (o[i] !== l[i]) {
2854
+ r = !0;
2623
2855
  break;
2624
2856
  }
2625
2857
  }
2626
- return i ? r : o;
2627
- }, Ki = (o, e, t) => {
2858
+ return r ? l : o;
2859
+ }, Cs = (o, e, t) => {
2628
2860
  let n = !1;
2629
- const r = Rl(o, e);
2630
- r !== o && (n = !0);
2631
- const i = new Map(o.flatMap((a) => a.nodes.map((d) => [d.id, d]))), l = new Set(Object.entries(t).filter(([a]) => o.some((d) => d.id === a)).flatMap(([, a]) => a.filter((d) => i.has(d)))), c = [];
2632
- for (const a of r) {
2633
- const d = t[a.id];
2861
+ const l = Ji(o, e);
2862
+ l !== o && (n = !0);
2863
+ const r = new Map(o.flatMap((a) => a.nodes.map((f) => [f.id, f]))), i = new Set(Object.entries(t).filter(([a]) => o.some((f) => f.id === a)).flatMap(([, a]) => a.filter((f) => r.has(f)))), c = [];
2864
+ for (const a of l) {
2865
+ const f = t[a.id];
2634
2866
  if (!(a.id in t)) {
2635
- const p = a.nodes.filter((m) => !l.has(m.id));
2867
+ const p = a.nodes.filter((m) => !i.has(m.id));
2636
2868
  p.length === a.nodes.length ? c.push(a) : (n = !0, c.push({
2637
2869
  ...a,
2638
2870
  nodes: p
2639
2871
  }));
2640
2872
  continue;
2641
2873
  }
2642
- const u = (d ?? []).flatMap((p) => {
2643
- const m = i.get(p);
2874
+ const d = (f ?? []).flatMap((p) => {
2875
+ const m = r.get(p);
2644
2876
  return m ? [m] : [];
2645
- }), f = a.nodes.filter((p) => !l.has(p.id)), h = [...u, ...f];
2877
+ }), u = a.nodes.filter((p) => !i.has(p.id)), h = [...d, ...u];
2646
2878
  h.length !== a.nodes.length || h.some((p, m) => p !== a.nodes[m]) ? (n = !0, c.push({
2647
2879
  ...a,
2648
2880
  nodes: h
2649
2881
  })) : c.push(a);
2650
2882
  }
2651
2883
  return n ? c : o;
2652
- }, Nt = {
2884
+ }, Mt = {
2653
2885
  sectionOverrides: {},
2654
2886
  nodeOverrides: {}
2655
- }, kl = "pstdio/ui/tree-list-visibility", $l = (o) => `${kl}/${o}`, El = (o, e) => o ?? (e ? "hidden" : "shown"), Dl = (o) => o === "hidden" ? "shown" : "hidden", je = (o, e, t) => {
2887
+ }, er = "pstdio/ui/tree-list-visibility", tr = (o) => `${er}/${o}`, nr = (o, e) => o ?? (e ? "hidden" : "shown"), or = (o) => o === "hidden" ? "shown" : "hidden", je = (o, e, t) => {
2656
2888
  if (t === void 0) {
2657
2889
  if (!(e in o)) return o;
2658
2890
  const {
2659
2891
  [e]: n,
2660
- ...r
2892
+ ...l
2661
2893
  } = o;
2662
- return r;
2894
+ return l;
2663
2895
  }
2664
2896
  return o[e] === t ? o : {
2665
2897
  ...o,
2666
2898
  [e]: t
2667
2899
  };
2668
- }, Bt = (o, e, t) => {
2669
- const n = Dl(El(o[e], t));
2900
+ }, Ft = (o, e, t) => {
2901
+ const n = or(nr(o[e], t));
2670
2902
  return je(o, e, n);
2671
- }, Ll = (o) => ({
2903
+ }, lr = (o) => ({
2672
2904
  sectionOverrides: o.sectionOverrides,
2673
2905
  nodeOverrides: o.nodeOverrides
2674
- }), Ol = (o) => lt()(ot((e) => ({
2675
- ...Nt,
2676
- setSection: (t, n) => e((r) => ({
2677
- ...r,
2678
- sectionOverrides: je(r.sectionOverrides, t, n)
2906
+ }), ir = (o) => at()(rt((e) => ({
2907
+ ...Mt,
2908
+ setSection: (t, n) => e((l) => ({
2909
+ ...l,
2910
+ sectionOverrides: je(l.sectionOverrides, t, n)
2679
2911
  })),
2680
- setNode: (t, n) => e((r) => ({
2681
- ...r,
2682
- nodeOverrides: je(r.nodeOverrides, t, n)
2912
+ setNode: (t, n) => e((l) => ({
2913
+ ...l,
2914
+ nodeOverrides: je(l.nodeOverrides, t, n)
2683
2915
  })),
2684
- toggleSection: (t, n) => e((r) => ({
2685
- ...r,
2686
- sectionOverrides: Bt(r.sectionOverrides, t, n)
2916
+ toggleSection: (t, n) => e((l) => ({
2917
+ ...l,
2918
+ sectionOverrides: Ft(l.sectionOverrides, t, n)
2687
2919
  })),
2688
- toggleNode: (t, n) => e((r) => ({
2689
- ...r,
2690
- nodeOverrides: Bt(r.nodeOverrides, t, n)
2920
+ toggleNode: (t, n) => e((l) => ({
2921
+ ...l,
2922
+ nodeOverrides: Ft(l.nodeOverrides, t, n)
2691
2923
  })),
2692
2924
  clearSection: (t) => e((n) => ({
2693
2925
  ...n,
@@ -2697,272 +2929,273 @@ const xl = (o) => {
2697
2929
  ...n,
2698
2930
  nodeOverrides: je(n.nodeOverrides, t, void 0)
2699
2931
  })),
2700
- reset: () => e(Nt)
2932
+ reset: () => e(Mt)
2701
2933
  }), {
2702
- name: $l(o.storageKey),
2703
- storage: rt(Ve),
2704
- partialize: Ll
2705
- })), Wt = /* @__PURE__ */ new Map(), _l = (o) => {
2706
- const e = Wt.get(o);
2934
+ name: tr(o.storageKey),
2935
+ storage: st(Ve),
2936
+ partialize: lr
2937
+ })), Ht = /* @__PURE__ */ new Map(), rr = (o) => {
2938
+ const e = Ht.get(o);
2707
2939
  if (e) return e;
2708
- const t = Ol({
2940
+ const t = ir({
2709
2941
  storageKey: o
2710
2942
  });
2711
- return Wt.set(o, t), t;
2712
- }, Xi = (o, e) => {
2943
+ return Ht.set(o, t), t;
2944
+ }, ws = (o, e) => {
2713
2945
  const t = O(2);
2714
2946
  let n;
2715
- return t[0] !== o ? (n = _l(o), t[0] = o, t[1] = n) : n = t[1], nt(n, e);
2716
- }, zl = [], fn = (o, e) => typeof o == "string" && e.some((t) => t.id === o), Nl = (o) => {
2947
+ return t[0] !== o ? (n = rr(o), t[0] = o, t[1] = n) : n = t[1], it(n, e);
2948
+ }, sr = [], yn = (o, e) => typeof o == "string" && e.some((t) => t.id === o), ar = (o) => {
2717
2949
  const e = o.toLowerCase().split("."), t = [];
2718
2950
  for (let n = 1; n < e.length; n += 1) t.push(e.slice(n).join("."));
2719
2951
  return t;
2720
- }, Bl = (o, e, t) => {
2952
+ }, cr = (o, e, t) => {
2721
2953
  if (t) return o.defaults.folder;
2722
2954
  const n = o.fileNames[e.toLowerCase()];
2723
2955
  if (n) return n;
2724
- for (const r of Nl(e)) {
2725
- const i = o.fileExtensions[r];
2726
- if (i) return i;
2956
+ for (const l of ar(e)) {
2957
+ const r = o.fileExtensions[l];
2958
+ if (r) return r;
2727
2959
  }
2728
2960
  return o.defaults.file;
2729
- }, Wl = (o, e) => {
2961
+ }, dr = (o, e) => {
2730
2962
  if (e.fontId) {
2731
2963
  const t = o.fonts.find((n) => n.fontFamily === `${o.id}-${e.fontId}`);
2732
2964
  if (t) return t.fontFamily;
2733
2965
  }
2734
2966
  return o.fonts[0]?.fontFamily;
2735
- }, Hl = (o) => {
2967
+ }, fr = (o) => {
2736
2968
  const e = /^\\([0-9a-fA-F]+)$/.exec(o);
2737
2969
  return e ? String.fromCodePoint(Number.parseInt(e[1], 16)) : o;
2738
- }, Fl = (o, e, t = !1) => {
2970
+ }, ur = (o, e, t = !1) => {
2739
2971
  if (!o) return;
2740
- const n = Bl(o, e, t);
2972
+ const n = cr(o, e, t);
2741
2973
  if (!n) return;
2742
- const r = o.definitions[n];
2743
- if (!r?.fontCharacter) return;
2744
- const i = Wl(o, r);
2745
- if (i)
2974
+ const l = o.definitions[n];
2975
+ if (!l?.fontCharacter) return;
2976
+ const r = dr(o, l);
2977
+ if (r)
2746
2978
  return {
2747
- fontFamily: i,
2748
- fontCharacter: Hl(r.fontCharacter),
2749
- fontColor: r.fontColor
2979
+ fontFamily: r,
2980
+ fontCharacter: fr(l.fontCharacter),
2981
+ fontColor: l.fontColor
2750
2982
  };
2751
- }, Ht = "data-pstdio-file-icon-fonts", Ml = (o) => {
2983
+ }, Vt = "data-pstdio-file-icon-fonts", hr = (o) => {
2752
2984
  const e = o.src.map((t) => `url("${t.url}")${t.format ? ` format("${t.format}")` : ""}`).join(", ");
2753
2985
  return ["@font-face {", ` font-family: "${o.fontFamily}";`, ` src: ${e};`, ` font-weight: ${o.weight ?? "normal"};`, ` font-style: ${o.style ?? "normal"};`, "}"].join(`
2754
2986
  `);
2755
- }, Vl = (o, e) => {
2987
+ }, mr = (o, e) => {
2756
2988
  if (typeof document > "u") return;
2757
- let t = document.querySelector(`style[${Ht}]`);
2758
- t || (t = document.createElement("style"), t.setAttribute(Ht, ""), document.head.appendChild(t));
2759
- const n = e.find((r) => r.id === o);
2760
- t.textContent = (n?.fonts ?? []).map(Ml).join(`
2989
+ let t = document.querySelector(`style[${Vt}]`);
2990
+ t || (t = document.createElement("style"), t.setAttribute(Vt, ""), document.head.appendChild(t));
2991
+ const n = e.find((l) => l.id === o);
2992
+ t.textContent = (n?.fonts ?? []).map(hr).join(`
2761
2993
 
2762
2994
  `);
2763
- }, hn = "file-icon-theme-preference", ut = (o) => o.find((e) => e.id.endsWith(".seti"))?.id ?? o[0]?.id ?? null, mn = In(null), Gl = (o) => {
2764
- if (typeof window > "u") return ut(o);
2765
- const e = Ve().getItem(hn);
2766
- return fn(e, o) ? e : ut(o);
2767
- }, Yi = (o) => {
2995
+ }, Cn = "file-icon-theme-preference", mt = (o) => o.find((e) => e.id.endsWith(".seti"))?.id ?? o[0]?.id ?? null, wn = _n(null), pr = (o) => {
2996
+ if (typeof window > "u") return mt(o);
2997
+ const e = Ve().getItem(Cn);
2998
+ return yn(e, o) ? e : mt(o);
2999
+ }, Is = (o) => {
2768
3000
  const e = O(18), {
2769
3001
  children: t,
2770
3002
  themePreferences: n
2771
- } = o, r = n === void 0 ? zl : n;
2772
- let i;
2773
- e[0] !== r ? (i = () => Gl(r), e[0] = r, e[1] = i) : i = e[1];
2774
- const [l, c] = fe(i);
2775
- let a, d;
2776
- e[2] !== l || e[3] !== r ? (a = () => {
2777
- const m = fn(l, r) ? l : ut(r);
2778
- if (m !== l) {
3003
+ } = o, l = n === void 0 ? sr : n;
3004
+ let r;
3005
+ e[0] !== l ? (r = () => pr(l), e[0] = l, e[1] = r) : r = e[1];
3006
+ const [i, c] = ue(r);
3007
+ let a, f;
3008
+ e[2] !== i || e[3] !== l ? (a = () => {
3009
+ const m = yn(i, l) ? i : mt(l);
3010
+ if (m !== i) {
2779
3011
  c(m);
2780
3012
  return;
2781
3013
  }
2782
- Vl(m, r), typeof window < "u" && m && Ve().setItem(hn, m);
2783
- }, d = [l, r], e[2] = l, e[3] = r, e[4] = a, e[5] = d) : (a = e[4], d = e[5]), me(a, d);
2784
- let u;
2785
- if (e[6] !== l || e[7] !== r) {
3014
+ mr(m, l), typeof window < "u" && m && Ve().setItem(Cn, m);
3015
+ }, f = [i, l], e[2] = i, e[3] = l, e[4] = a, e[5] = f) : (a = e[4], f = e[5]), me(a, f);
3016
+ let d;
3017
+ if (e[6] !== i || e[7] !== l) {
2786
3018
  let m;
2787
- e[9] !== l ? (m = (g) => g.id === l, e[9] = l, e[10] = m) : m = e[10], u = r.find(m), e[6] = l, e[7] = r, e[8] = u;
3019
+ e[9] !== i ? (m = (g) => g.id === i, e[9] = i, e[10] = m) : m = e[10], d = l.find(m), e[6] = i, e[7] = l, e[8] = d;
2788
3020
  } else
2789
- u = e[8];
2790
- const f = u;
3021
+ d = e[8];
3022
+ const u = d;
2791
3023
  let h;
2792
- e[11] !== f || e[12] !== l || e[13] !== r ? (h = {
2793
- fileIconThemePreference: l,
2794
- fileIconThemePreferences: r,
2795
- activeFileIconTheme: f,
3024
+ e[11] !== u || e[12] !== i || e[13] !== l ? (h = {
3025
+ fileIconThemePreference: i,
3026
+ fileIconThemePreferences: l,
3027
+ activeFileIconTheme: u,
2796
3028
  setFileIconThemePreference: c
2797
- }, e[11] = f, e[12] = l, e[13] = r, e[14] = h) : h = e[14];
3029
+ }, e[11] = u, e[12] = i, e[13] = l, e[14] = h) : h = e[14];
2798
3030
  let p;
2799
- return e[15] !== t || e[16] !== h ? (p = /* @__PURE__ */ s(mn, { value: h, children: t }), e[15] = t, e[16] = h, e[17] = p) : p = e[17], p;
2800
- }, Zi = () => {
2801
- const o = Tn(mn);
3031
+ return e[15] !== t || e[16] !== h ? (p = /* @__PURE__ */ s(wn, { value: h, children: t }), e[15] = t, e[16] = h, e[17] = p) : p = e[17], p;
3032
+ }, Ts = () => {
3033
+ const o = On(wn);
2802
3034
  if (!o)
2803
3035
  throw new Error("useFileIconThemePreference must be used within a FileIconThemePreferenceProvider");
2804
3036
  return o;
2805
- }, Ji = (o, e = {}) => {
3037
+ }, As = (o, e = {}) => {
2806
3038
  const {
2807
3039
  isDirectory: t = !1,
2808
3040
  theme: n,
2809
- size: r = 16
2810
- } = e, i = Fl(n, o, t);
2811
- if (i) {
3041
+ size: l = 16
3042
+ } = e, r = ur(n, o, t);
3043
+ if (r) {
2812
3044
  const c = {
2813
- fontFamily: `"${i.fontFamily}"`,
2814
- color: i.fontColor,
2815
- fontSize: r,
3045
+ fontFamily: `"${r.fontFamily}"`,
3046
+ color: r.fontColor,
3047
+ fontSize: l,
2816
3048
  lineHeight: 1,
2817
3049
  display: "inline-flex"
2818
3050
  };
2819
- return /* @__PURE__ */ s("span", { "aria-hidden": "true", style: c, children: i.fontCharacter });
3051
+ return /* @__PURE__ */ s("span", { "aria-hidden": "true", style: c, children: r.fontCharacter });
2820
3052
  }
2821
- if (t) return /* @__PURE__ */ s(Kt, { size: r });
2822
- const l = Qn(o);
2823
- return /* @__PURE__ */ s(l, { size: r });
3053
+ if (t) return /* @__PURE__ */ s(Jt, { size: l });
3054
+ const i = uo(o);
3055
+ return /* @__PURE__ */ s(i, { size: l });
2824
3056
  };
2825
3057
  export {
2826
- hs as ANCHOR_GRID_VALUES,
2827
- ms as ActionInput,
2828
- Si as Activity,
2829
- it as ActivityAvatar,
2830
- oo as ActivityComment,
2831
- ro as ActivityComposer,
2832
- io as ActivityEvent,
2833
- co as ActivityFeed,
2834
- ao as ActivityHeader,
2835
- no as ActivityReply,
2836
- so as ActivityRoot,
2837
- uo as ActivityTimeline,
2838
- ht as AlertMessage,
2839
- ps as AnchorGridInput,
2840
- Pi as AttachedMenu,
2841
- Ai as AttachedPanel,
2842
- gs as AttachmentChip,
2843
- bs as BooleanInput,
2844
- Ei as Breadcrumb,
2845
- Ri as BubbleButton,
2846
- ki as BubblePanel,
2847
- ns as ChakraProvider,
2848
- ea as Checkbox,
2849
- Ss as Chip,
2850
- xs as ColorInput,
2851
- or as ContentPlaceholder,
2852
- Di as ContentPlaceholderLabel,
2853
- xi as DEFAULT_PALETTE_ASSET_LIMIT,
2854
- vs as DateInput,
2855
- Qo as DeleteConfirmationModal,
2856
- la as EmptyState,
2857
- Li as ErrorBoundary,
2858
- Yi as FileIconThemePreferenceProvider,
2859
- ys as FileUploadInput,
2860
- Mn as Header,
2861
- Ci as HorizontalMenuStack,
2862
- Cs as HorizontalTextInput,
2863
- dr as IconColorPicker,
2864
- Oi as IntegrationCard,
2865
- wi as ItemSection,
3058
+ Ms as ANCHOR_GRID_VALUES,
3059
+ Fs as ActionInput,
3060
+ jr as Activity,
3061
+ ct as ActivityAvatar,
3062
+ un as ActivityComment,
3063
+ ko as ActivityComposer,
3064
+ hn as ActivityEvent,
3065
+ mn as ActivityFeed,
3066
+ Lo as ActivityHeader,
3067
+ Po as ActivityReply,
3068
+ $o as ActivityRoot,
3069
+ pn as ActivityTimeline,
3070
+ lt as AlertMessage,
3071
+ Hs as AnchorGridInput,
3072
+ Jr as AttachedMenu,
3073
+ es as AttachedPanel,
3074
+ Vs as AttachmentChip,
3075
+ Gs as BooleanInput,
3076
+ ls as Breadcrumb,
3077
+ ts as BubbleButton,
3078
+ ns as BubblePanel,
3079
+ Rs as ChakraProvider,
3080
+ Pa as Checkbox,
3081
+ js as Chip,
3082
+ Us as ColorInput,
3083
+ kl as ContentPlaceholder,
3084
+ is as ContentPlaceholderLabel,
3085
+ Ur as DEFAULT_PALETTE_ASSET_LIMIT,
3086
+ Qs as DateInput,
3087
+ Sl as DeleteConfirmationModal,
3088
+ ho as EmptyState,
3089
+ rs as ErrorBoundary,
3090
+ Is as FileIconThemePreferenceProvider,
3091
+ Xs as FileUploadInput,
3092
+ ro as Header,
3093
+ qr as HorizontalMenuStack,
3094
+ qs as HorizontalTextInput,
3095
+ Ol as IconColorPicker,
3096
+ ss as IntegrationCard,
3097
+ Kr as ItemSection,
2866
3098
  Qe as ListRow,
2867
- ws as MarkdownInput,
2868
- Ti as NotificationCenter,
2869
- Is as NumberInput,
2870
- wt as PANEL_HEADER_CONTROL_SIZE,
2871
- Oo as PANEL_HEADER_HEIGHT,
2872
- Ii as PANEL_HEADER_TAB_SIZE,
2873
- vi as Palette,
2874
- yi as PaletteShortcut,
2875
- Xs as ParamEditor,
2876
- Ts as ParamEditorControlItem,
2877
- Ni as ParamEditorControlList,
2878
- Ps as ParamEditorField,
2879
- As as ParamEditorFieldLabel,
2880
- Rs as ParamEditorInlineGroup,
2881
- ks as ParamEditorLabel,
2882
- $s as ParamEditorReadOnlyField,
2883
- Es as ParamEditorReadOnlyValue,
2884
- Ys as ParamEditorRow,
2885
- Zs as ParamEditorSection,
2886
- ds as Radio,
2887
- us as RadioGroup,
2888
- Ds as RangeInput,
2889
- $i as RepoPickerDialog,
2890
- ss as ResizableSplitLayout,
2891
- rs as ResourceActionMenu,
2892
- ta as ResourceBadge,
2893
- Yt as ResourceContextMenu,
2894
- Ls as ResourceInput,
2895
- tt as ScrollArea,
2896
- an as SearchModalContent,
2897
- ls as SearchableMenu,
2898
- _i as SegmentedControl,
2899
- Os as SegmentedInput,
2900
- _s as SelectionInput,
2901
- Vs as SessionIndicator,
2902
- Bi as Sidenav,
2903
- ur as SimpleCard,
2904
- fr as SimpleCardBody,
2905
- zs as Slider,
2906
- na as Switch,
2907
- bl as TagEditor,
2908
- al as TagEditorHeading,
2909
- xl as TagEditorSaveBar,
2910
- Qi as TagSettingsPanel,
2911
- ir as TagSwatch,
2912
- Ns as TextInput,
2913
- ua as ThemePreferenceProvider,
2914
- zi as Toaster,
3099
+ Ks as MarkdownInput,
3100
+ Zr as NotificationCenter,
3101
+ Ys as NumberInput,
3102
+ At as PANEL_HEADER_CONTROL_SIZE,
3103
+ il as PANEL_HEADER_HEIGHT,
3104
+ Yr as PANEL_HEADER_TAB_SIZE,
3105
+ Qr as Palette,
3106
+ Xr as PaletteShortcut,
3107
+ wa as ParamEditor,
3108
+ Zs as ParamEditorControlItem,
3109
+ ds as ParamEditorControlList,
3110
+ Js as ParamEditorField,
3111
+ ea as ParamEditorFieldLabel,
3112
+ ta as ParamEditorInlineGroup,
3113
+ na as ParamEditorLabel,
3114
+ oa as ParamEditorReadOnlyField,
3115
+ la as ParamEditorReadOnlyValue,
3116
+ Ia as ParamEditorRow,
3117
+ Ta as ParamEditorSection,
3118
+ Ns as Radio,
3119
+ Bs as RadioGroup,
3120
+ ia as RangeInput,
3121
+ os as RepoPickerDialog,
3122
+ _s as ResizableSplitLayout,
3123
+ Ls as ResourceActionMenu,
3124
+ Gr as ResourceActivityFeed,
3125
+ ka as ResourceBadge,
3126
+ tn as ResourceContextMenu,
3127
+ ra as ResourceInput,
3128
+ ot as ScrollArea,
3129
+ bn as SearchModalContent,
3130
+ Es as SearchableMenu,
3131
+ as as SegmentedControl,
3132
+ sa as SegmentedInput,
3133
+ aa as SelectionInput,
3134
+ ga as SessionIndicator,
3135
+ fs as Sidenav,
3136
+ zl as SimpleCard,
3137
+ Nl as SimpleCardBody,
3138
+ ca as Slider,
3139
+ Ra as Switch,
3140
+ Hi as TagEditor,
3141
+ Di as TagEditorHeading,
3142
+ Gi as TagEditorSaveBar,
3143
+ vs as TagSettingsPanel,
3144
+ Ll as TagSwatch,
3145
+ da as TextInput,
3146
+ za as ThemePreferenceProvider,
3147
+ cs as Toaster,
2915
3148
  Ue as Tooltip,
2916
- Vn as TreeList,
2917
- as as TreeListDragProvider,
2918
- Bs as VectorInput,
2919
- ji as WindowTabs,
2920
- Ui as WindowTitleBar,
2921
- Gs as WorkspaceBadge,
2922
- Vl as applyFileIconThemePreference,
2923
- fa as applyThemePreference,
2924
- Ki as applyTreeListOrder,
2925
- Gi as buildTabVisibilityMenuActions,
2926
- Mi as buildTreeVisibilityMenuActions,
2927
- Ws as createGlyphIcon,
2928
- sa as createMonacoThemeFromVsCodeTheme,
2929
- aa as createThemePreferenceFromVsCodeTheme,
2930
- zl as defaultFileIconThemePreferences,
2931
- ha as defaultThemePreferences,
2932
- go as filterPaletteEntries,
2933
- Hi as filterVisibleNodes,
2934
- Fi as filterVisibleSections,
2935
- Vi as filterVisibleTabs,
2936
- Qn as getFileTypeIcon,
2937
- Gn as getIconComponent,
2938
- ma as getInitialThemePreference,
2939
- Gr as getTabVisibilityStore,
2940
- pa as getThemePreferenceClassName,
2941
- ga as getThemePreferenceClassNames,
2942
- ba as getThemePreferenceMode,
2943
- Al as getTreeListOrderStore,
2944
- _l as getTreeListVisibilityStore,
2945
- js as handleDialogAcceptShortcut,
2946
- oa as installPrismGlobal,
2947
- Hs as isAnchorGridValue,
2948
- fn as isFileIconThemePreference,
2949
- Fs as isParamEditorRichControl,
2950
- Sa as isThemePreference,
2951
- Un as optionColors,
2952
- jn as optionIcons,
2953
- ca as psTheme,
2954
- Ji as resolveFileIconElement,
2955
- Fl as resolveFileIconGlyph,
2956
- Us as resolveSessionIndicatorColor,
2957
- Qs as resolveSessionIndicatorIcon,
3149
+ so as TreeList,
3150
+ Os as TreeListDragProvider,
3151
+ fa as VectorInput,
3152
+ Ss as WindowTabs,
3153
+ xs as WindowTitleBar,
3154
+ ba as WorkspaceBadge,
3155
+ mr as applyFileIconThemePreference,
3156
+ Na as applyThemePreference,
3157
+ Cs as applyTreeListOrder,
3158
+ bs as buildTabVisibilityMenuActions,
3159
+ ps as buildTreeVisibilityMenuActions,
3160
+ ua as createGlyphIcon,
3161
+ Ea as createMonacoThemeFromVsCodeTheme,
3162
+ Da as createThemePreferenceFromVsCodeTheme,
3163
+ sr as defaultFileIconThemePreferences,
3164
+ Ba as defaultThemePreferences,
3165
+ Fo as filterPaletteEntries,
3166
+ hs as filterVisibleNodes,
3167
+ ms as filterVisibleSections,
3168
+ gs as filterVisibleTabs,
3169
+ uo as getFileTypeIcon,
3170
+ ao as getIconComponent,
3171
+ Wa as getInitialThemePreference,
3172
+ pi as getTabVisibilityStore,
3173
+ Ma as getThemePreferenceClassName,
3174
+ Fa as getThemePreferenceClassNames,
3175
+ Ha as getThemePreferenceMode,
3176
+ Zi as getTreeListOrderStore,
3177
+ rr as getTreeListVisibilityStore,
3178
+ Sa as handleDialogAcceptShortcut,
3179
+ $a as installPrismGlobal,
3180
+ ha as isAnchorGridValue,
3181
+ yn as isFileIconThemePreference,
3182
+ ma as isParamEditorRichControl,
3183
+ Va as isThemePreference,
3184
+ fo as optionColors,
3185
+ co as optionIcons,
3186
+ _a as psTheme,
3187
+ As as resolveFileIconElement,
3188
+ ur as resolveFileIconGlyph,
3189
+ xa as resolveSessionIndicatorColor,
3190
+ va as resolveSessionIndicatorIcon,
2958
3191
  Ge as resolveVisibility,
2959
- qs as sessionCompletionStatuses,
2960
- Sr as toaster,
2961
- Zi as useFileIconThemePreference,
3192
+ ya as sessionCompletionStatuses,
3193
+ Vl as toaster,
3194
+ Ts as useFileIconThemePreference,
2962
3195
  Be as useSidenavStore,
2963
- Wi as useTabVisibilityStore,
2964
- xa as useThemePreference,
2965
- qi as useTreeListOrderStore,
2966
- Xi as useTreeListVisibilityStore
3196
+ us as useTabVisibilityStore,
3197
+ Ga as useThemePreference,
3198
+ ys as useTreeListOrderStore,
3199
+ ws as useTreeListVisibilityStore
2967
3200
  };
2968
3201
  //# sourceMappingURL=index.js.map