@pollinations/ui 0.1.0-alpha.13 → 0.1.0-alpha.15

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 (71) hide show
  1. package/README.md +5 -3
  2. package/dist/app-user-menu/sdk.js +50 -752
  3. package/dist/app-user-menu/sdk.js.map +1 -1
  4. package/dist/auth/index.js +91 -1131
  5. package/dist/auth/index.js.map +1 -1
  6. package/dist/auth/sdk.js +9 -211
  7. package/dist/auth/sdk.js.map +1 -1
  8. package/dist/chunk-3VM5R3OI.js +50 -0
  9. package/dist/chunk-3VM5R3OI.js.map +1 -0
  10. package/dist/chunk-7GDUPN6U.js +115 -0
  11. package/dist/chunk-7GDUPN6U.js.map +1 -0
  12. package/dist/{app-user-menu/sdk.cjs → chunk-7WXDUAJU.js} +96 -751
  13. package/dist/chunk-7WXDUAJU.js.map +1 -0
  14. package/dist/chunk-7XDOOFTL.js +105 -0
  15. package/dist/chunk-7XDOOFTL.js.map +1 -0
  16. package/dist/chunk-DD7MHUFD.js +93 -0
  17. package/dist/chunk-DD7MHUFD.js.map +1 -0
  18. package/dist/chunk-FLQFOTMR.js +107 -0
  19. package/dist/chunk-FLQFOTMR.js.map +1 -0
  20. package/dist/chunk-IS4CNKV3.js +252 -0
  21. package/dist/chunk-IS4CNKV3.js.map +1 -0
  22. package/dist/chunk-IX6BJNHM.js +58 -0
  23. package/dist/chunk-IX6BJNHM.js.map +1 -0
  24. package/dist/chunk-K2H3JFQK.js +576 -0
  25. package/dist/chunk-K2H3JFQK.js.map +1 -0
  26. package/dist/chunk-LKUZU37X.js +15 -0
  27. package/dist/chunk-LKUZU37X.js.map +1 -0
  28. package/dist/chunk-QAR2WP3L.js +364 -0
  29. package/dist/chunk-QAR2WP3L.js.map +1 -0
  30. package/dist/chunk-QFR7XRUE.js +534 -0
  31. package/dist/chunk-QFR7XRUE.js.map +1 -0
  32. package/dist/chunk-TVPFAM3B.js +88 -0
  33. package/dist/chunk-TVPFAM3B.js.map +1 -0
  34. package/dist/chunk-ZLD4VLUG.js +112 -0
  35. package/dist/chunk-ZLD4VLUG.js.map +1 -0
  36. package/dist/gen/index.js +49 -494
  37. package/dist/gen/index.js.map +1 -1
  38. package/dist/index.browser.min.js +1 -1
  39. package/dist/index.browser.min.js.map +1 -1
  40. package/dist/index.d.ts +1 -0
  41. package/dist/index.js +547 -2596
  42. package/dist/index.js.map +1 -1
  43. package/dist/markdown.js +45 -599
  44. package/dist/markdown.js.map +1 -1
  45. package/dist/wallet/index.js +17 -374
  46. package/dist/wallet/index.js.map +1 -1
  47. package/package.json +10 -16
  48. package/dist/Button-BGqClaBr.d.cts +0 -29
  49. package/dist/Chip-v-ADv6cz.d.cts +0 -18
  50. package/dist/Dialog-D3Nqt8cE.d.cts +0 -66
  51. package/dist/app-user-menu/sdk.cjs.map +0 -1
  52. package/dist/app-user-menu/sdk.d.cts +0 -29
  53. package/dist/auth/index.cjs +0 -1537
  54. package/dist/auth/index.cjs.map +0 -1
  55. package/dist/auth/index.d.cts +0 -114
  56. package/dist/auth/sdk.cjs +0 -250
  57. package/dist/auth/sdk.cjs.map +0 -1
  58. package/dist/auth/sdk.d.cts +0 -40
  59. package/dist/gen/index.cjs +0 -718
  60. package/dist/gen/index.cjs.map +0 -1
  61. package/dist/gen/index.d.cts +0 -91
  62. package/dist/index.cjs +0 -5361
  63. package/dist/index.cjs.map +0 -1
  64. package/dist/index.d.cts +0 -1050
  65. package/dist/markdown.cjs +0 -838
  66. package/dist/markdown.cjs.map +0 -1
  67. package/dist/markdown.d.cts +0 -16
  68. package/dist/types-CCy9JNu9.d.cts +0 -6
  69. package/dist/wallet/index.cjs +0 -433
  70. package/dist/wallet/index.cjs.map +0 -1
  71. package/dist/wallet/index.d.cts +0 -53
package/dist/index.js CHANGED
@@ -1,977 +1,144 @@
1
- // src/compositions/AccountIdentity.tsx
2
- import { useId as useId2 } from "react";
3
-
4
- // src/lib/cn.ts
5
- import { clsx } from "clsx";
6
- import { extendTailwindMerge } from "tailwind-merge";
7
- var twMerge = extendTailwindMerge({
8
- prefix: "polli",
9
- extend: { theme: { text: ["micro"] } }
10
- });
11
- function cn(...inputs) {
12
- return twMerge(clsx(...inputs));
13
- }
14
-
15
- // src/primitives/ChevronIcon.tsx
16
- import { jsx } from "react/jsx-runtime";
17
- var ChevronIcon = ({ expanded, className }) => /* @__PURE__ */ jsx(
18
- "svg",
19
- {
20
- "aria-hidden": "true",
21
- width: "12",
22
- height: "12",
23
- viewBox: "0 0 12 12",
24
- className: cn(
25
- "polli:shrink-0 polli:transition-transform polli:duration-200 polli:ease-out",
26
- expanded && "polli:rotate-180",
27
- className
28
- ),
29
- children: /* @__PURE__ */ jsx(
30
- "path",
31
- {
32
- d: "M3 4.5 6 7.5l3-3",
33
- fill: "none",
34
- stroke: "currentColor",
35
- strokeLinecap: "round",
36
- strokeLinejoin: "round",
37
- strokeWidth: "1.5"
38
- }
39
- )
40
- }
41
- );
42
-
43
- // src/primitives/Dropdown.tsx
44
- import { Popover } from "@ark-ui/react/popover";
45
- import { Portal } from "@ark-ui/react/portal";
46
- import { useId, useState } from "react";
47
- import { jsx as jsx2, jsxs } from "react/jsx-runtime";
48
- var DEFAULT_PANEL = "polli:rounded-lg polli:bg-surface-menu polli:shadow-lg";
49
- var Dropdown = ({
50
- trigger,
51
- children,
52
- align = "start",
53
- side = "bottom",
54
- open: openProp,
55
- portalled = true,
56
- onOpenChange,
57
- className,
58
- panelStyle
59
- }) => {
60
- const triggerId = useId();
61
- const [internalOpen, setInternalOpen] = useState(false);
62
- const isControlled = openProp !== void 0;
63
- const open = isControlled ? openProp : internalOpen;
64
- const setOpen = (next) => {
65
- if (!isControlled) setInternalOpen(next);
66
- onOpenChange?.(next);
67
- };
68
- return /* @__PURE__ */ jsxs(
69
- Popover.Root,
70
- {
71
- ids: { trigger: triggerId },
72
- open,
73
- portalled,
74
- onOpenChange: (details) => setOpen(details.open),
75
- positioning: {
76
- placement: `${side}-${align}`,
77
- strategy: portalled ? "absolute" : "fixed"
78
- },
79
- children: [
80
- /* @__PURE__ */ jsx2(Popover.Trigger, { asChild: true, children: trigger(open) }),
81
- /* @__PURE__ */ jsx2(Portal, { disabled: !portalled, children: /* @__PURE__ */ jsx2(Popover.Positioner, { children: /* @__PURE__ */ jsx2(
82
- Popover.Content,
83
- {
84
- "aria-labelledby": triggerId,
85
- style: panelStyle,
86
- className: cn(
87
- "polli:z-[120] polli:overflow-hidden polli:focus:outline-none",
88
- DEFAULT_PANEL,
89
- className
90
- ),
91
- children: typeof children === "function" ? children(() => setOpen(false)) : children
92
- }
93
- ) }) })
94
- ]
95
- }
96
- );
97
- };
98
-
99
- // src/primitives/icons/index.tsx
100
- import { jsx as jsx3, jsxs as jsxs2 } from "react/jsx-runtime";
101
- var strokeProps = {
102
- fill: "none",
103
- stroke: "currentColor",
104
- strokeWidth: 2,
105
- strokeLinecap: "round",
106
- strokeLinejoin: "round"
107
- };
108
- function AppIcon(props) {
109
- return /* @__PURE__ */ jsxs2("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", ...strokeProps, ...props, children: [
110
- /* @__PURE__ */ jsx3("rect", { x: "2", y: "4", width: "20", height: "14", rx: "2" }),
111
- /* @__PURE__ */ jsx3("path", { d: "M2 20h20" })
112
- ] });
113
- }
114
- function AccountIcon(props) {
115
- return /* @__PURE__ */ jsxs2("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", ...strokeProps, ...props, children: [
116
- /* @__PURE__ */ jsx3("circle", { cx: "12", cy: "8", r: "4" }),
117
- /* @__PURE__ */ jsx3("path", { d: "M4 21a8 8 0 0 1 16 0" })
118
- ] });
119
- }
120
- function ArrowRightIcon(props) {
121
- return /* @__PURE__ */ jsx3("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", ...strokeProps, ...props, children: /* @__PURE__ */ jsx3("path", { d: "M5 12h14M13 6l6 6-6 6" }) });
122
- }
123
- function BeakerIcon(props) {
124
- return /* @__PURE__ */ jsxs2("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", ...strokeProps, ...props, children: [
125
- /* @__PURE__ */ jsx3("path", { d: "M9 3h6" }),
126
- /* @__PURE__ */ jsx3("path", { d: "M10 3v6.5L4.5 18a2 2 0 0 0 1.7 3h11.6a2 2 0 0 0 1.7-3L14 9.5V3" }),
127
- /* @__PURE__ */ jsx3("path", { d: "M7 14h10" })
128
- ] });
129
- }
130
- function BotIcon(props) {
131
- return /* @__PURE__ */ jsxs2("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", ...strokeProps, ...props, children: [
132
- /* @__PURE__ */ jsx3("path", { d: "M12 8V4H8" }),
133
- /* @__PURE__ */ jsx3("rect", { x: "4", y: "8", width: "16", height: "12", rx: "2" }),
134
- /* @__PURE__ */ jsx3("path", { d: "M2 14h2M20 14h2" }),
135
- /* @__PURE__ */ jsx3("path", { d: "M9 13v2M15 13v2" })
136
- ] });
137
- }
138
- function BookIcon(props) {
139
- return /* @__PURE__ */ jsxs2("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", ...strokeProps, ...props, children: [
140
- /* @__PURE__ */ jsx3("path", { d: "M4 4h5a3 3 0 0 1 3 3v13a2 2 0 0 0-2-2H4z" }),
141
- /* @__PURE__ */ jsx3("path", { d: "M20 4h-5a3 3 0 0 0-3 3v13a2 2 0 0 1 2-2h6z" })
142
- ] });
143
- }
144
- function BugIcon(props) {
145
- return /* @__PURE__ */ jsxs2("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", ...strokeProps, ...props, children: [
146
- /* @__PURE__ */ jsx3("path", { d: "m8 2 1.9 1.9M14.1 3.9 16 2" }),
147
- /* @__PURE__ */ jsx3("path", { d: "M9 7V6a3 3 0 0 1 6 0v1" }),
148
- /* @__PURE__ */ jsx3("path", { d: "M12 20c-3.3 0-6-2.7-6-6v-3a6 6 0 0 1 12 0v3c0 3.3-2.7 6-6 6Z" }),
149
- /* @__PURE__ */ jsx3("path", { d: "M12 20v-9M6.5 9C4.6 8.8 3 7.1 3 5M6 13H2M3 21c0-2.1 1.7-3.9 3.8-4M17.5 9C19.4 8.8 21 7.1 21 5M18 13h4M21 21c0-2.1-1.7-3.9-3.8-4" })
150
- ] });
151
- }
152
- function CheckIcon(props) {
153
- return /* @__PURE__ */ jsx3(
154
- "svg",
155
- {
156
- "aria-hidden": "true",
157
- viewBox: "0 0 24 24",
158
- ...strokeProps,
159
- strokeWidth: 2.5,
160
- ...props,
161
- children: /* @__PURE__ */ jsx3("polyline", { points: "20 6 9 17 4 12" })
162
- }
163
- );
164
- }
165
- function ClipboardIcon(props) {
166
- return /* @__PURE__ */ jsxs2("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", ...strokeProps, ...props, children: [
167
- /* @__PURE__ */ jsx3("rect", { x: "9", y: "9", width: "13", height: "13", rx: "2" }),
168
- /* @__PURE__ */ jsx3("path", { d: "M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1" })
169
- ] });
170
- }
171
- function ClockIcon(props) {
172
- return /* @__PURE__ */ jsxs2("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", ...strokeProps, ...props, children: [
173
- /* @__PURE__ */ jsx3("circle", { cx: "12", cy: "12", r: "9" }),
174
- /* @__PURE__ */ jsx3("path", { d: "M12 7v5l3 2" })
175
- ] });
176
- }
177
- function DiscordIcon(props) {
178
- return /* @__PURE__ */ jsx3("svg", { viewBox: "0 0 24 24", "aria-hidden": "true", ...props, children: /* @__PURE__ */ jsx3(
179
- "path",
180
- {
181
- fill: "currentColor",
182
- d: "M20.32 4.37A19.8 19.8 0 0 0 15.36 2.83a.07.07 0 0 0-.08.04c-.21.38-.45.88-.62 1.27a18.27 18.27 0 0 0-5.52 0 12.84 12.84 0 0 0-.63-1.27.08.08 0 0 0-.08-.04A19.74 19.74 0 0 0 3.47 4.37a.07.07 0 0 0-.03.03C.31 9.07-.55 13.61-.13 18.1a.08.08 0 0 0 .03.06 19.9 19.9 0 0 0 6.08 3.07.08.08 0 0 0 .09-.03c.47-.64.88-1.31 1.24-2.02a.08.08 0 0 0-.04-.1 13.08 13.08 0 0 1-1.9-.91.08.08 0 0 1-.01-.13c.13-.1.25-.2.37-.29a.07.07 0 0 1 .08-.01 14.24 14.24 0 0 0 12.38 0 .07.07 0 0 1 .08.01c.12.1.25.2.38.3a.08.08 0 0 1-.01.12 12.22 12.22 0 0 1-1.9.9.08.08 0 0 0-.04.11c.36.7.77 1.38 1.23 2.02a.08.08 0 0 0 .1.03 19.84 19.84 0 0 0 6.08-3.07.08.08 0 0 0 .03-.05c.5-5.2-.84-9.7-3.77-13.71a.06.06 0 0 0-.03-.03ZM8.02 15.37c-1.18 0-2.16-1.08-2.16-2.4 0-1.32.96-2.4 2.16-2.4 1.2 0 2.18 1.09 2.16 2.4 0 1.32-.96 2.4-2.16 2.4Zm7.96 0c-1.18 0-2.16-1.08-2.16-2.4 0-1.32.96-2.4 2.16-2.4 1.2 0 2.18 1.09 2.16 2.4 0 1.32-.95 2.4-2.16 2.4Z"
183
- }
184
- ) });
185
- }
186
- function InstagramIcon(props) {
187
- return /* @__PURE__ */ jsxs2("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", ...strokeProps, ...props, children: [
188
- /* @__PURE__ */ jsx3("rect", { x: "3", y: "3", width: "18", height: "18", rx: "5" }),
189
- /* @__PURE__ */ jsx3("circle", { cx: "12", cy: "12", r: "4" }),
190
- /* @__PURE__ */ jsx3(
191
- "circle",
192
- {
193
- cx: "17.5",
194
- cy: "6.5",
195
- r: "1",
196
- fill: "currentColor",
197
- stroke: "none"
198
- }
199
- )
200
- ] });
201
- }
202
- function XSocialIcon(props) {
203
- return /* @__PURE__ */ jsx3("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", ...props, children: /* @__PURE__ */ jsx3(
204
- "path",
205
- {
206
- fill: "currentColor",
207
- d: "M18.24 2.25h3.31l-7.23 8.26 8.51 11.24h-6.66l-5.21-6.82-5.97 6.82H1.68l7.73-8.84L1.25 2.25h6.83l4.71 6.23 5.45-6.23Zm-1.16 17.52h1.83L7.08 4.13H5.12l11.96 15.64Z"
208
- }
209
- ) });
210
- }
211
- function LinkedInIcon(props) {
212
- return /* @__PURE__ */ jsx3("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", ...props, children: /* @__PURE__ */ jsx3(
213
- "path",
214
- {
215
- fill: "currentColor",
216
- d: "M20.45 20.45h-3.56v-5.57c0-1.33-.03-3.04-1.85-3.04-1.86 0-2.14 1.45-2.14 2.94v5.67H9.34V9h3.42v1.56h.05c.47-.9 1.64-1.85 3.37-1.85 3.6 0 4.27 2.37 4.27 5.46v6.28ZM5.32 7.43a2.07 2.07 0 1 1 0-4.13 2.07 2.07 0 0 1 0 4.13ZM7.1 20.45H3.54V9H7.1v11.45Z"
217
- }
218
- ) });
219
- }
220
- function DownloadIcon(props) {
221
- return /* @__PURE__ */ jsxs2("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", ...strokeProps, ...props, children: [
222
- /* @__PURE__ */ jsx3("path", { d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4" }),
223
- /* @__PURE__ */ jsx3("polyline", { points: "7 10 12 15 17 10" }),
224
- /* @__PURE__ */ jsx3("line", { x1: "12", y1: "15", x2: "12", y2: "3" })
225
- ] });
226
- }
227
- function ExpandIcon(props) {
228
- return /* @__PURE__ */ jsx3("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", ...strokeProps, ...props, children: /* @__PURE__ */ jsx3("path", { d: "M8 3H3v5M16 3h5v5M21 16v5h-5M3 16v5h5" }) });
229
- }
230
- function PlayIcon(props) {
231
- return /* @__PURE__ */ jsx3("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", ...props, children: /* @__PURE__ */ jsx3("path", { fill: "currentColor", d: "M7 4.5v15l12-7.5z" }) });
232
- }
233
- function PauseIcon(props) {
234
- return /* @__PURE__ */ jsx3("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", ...props, children: /* @__PURE__ */ jsx3("path", { fill: "currentColor", d: "M6 4h4v16H6zM14 4h4v16h-4z" }) });
235
- }
236
- function CloudUploadIcon(props) {
237
- return /* @__PURE__ */ jsxs2("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", ...strokeProps, ...props, children: [
238
- /* @__PURE__ */ jsx3("path", { d: "M17.5 19H19a4 4 0 0 0 .4-8A7.5 7.5 0 0 0 5 9.5 5 5 0 0 0 6 19h1.5" }),
239
- /* @__PURE__ */ jsx3("path", { d: "m8.5 15.5 3.5-3.5 3.5 3.5M12 12v9" })
240
- ] });
241
- }
242
- function ExternalLinkIcon(props) {
243
- return /* @__PURE__ */ jsx3("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", ...strokeProps, ...props, children: /* @__PURE__ */ jsx3("path", { d: "M7 17 17 7M9 7h8v8" }) });
244
- }
245
- function GenApiIcon(props) {
246
- return /* @__PURE__ */ jsxs2("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", ...strokeProps, ...props, children: [
247
- /* @__PURE__ */ jsx3("path", { d: "m8 3 4 1.5L16 3v18l-4-1.5L8 21z" }),
248
- /* @__PURE__ */ jsx3("path", { d: "M8 3v18M16 3v18" })
249
- ] });
250
- }
251
- function GitBranchIcon(props) {
252
- return /* @__PURE__ */ jsxs2("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", ...strokeProps, ...props, children: [
253
- /* @__PURE__ */ jsx3("line", { x1: "6", y1: "3", x2: "6", y2: "15" }),
254
- /* @__PURE__ */ jsx3("circle", { cx: "18", cy: "6", r: "3" }),
255
- /* @__PURE__ */ jsx3("circle", { cx: "6", cy: "18", r: "3" }),
256
- /* @__PURE__ */ jsx3("path", { d: "M18 9a9 9 0 0 1-9 9" })
257
- ] });
258
- }
259
- function GitPullRequestIcon(props) {
260
- return /* @__PURE__ */ jsxs2("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", ...strokeProps, ...props, children: [
261
- /* @__PURE__ */ jsx3("circle", { cx: "6", cy: "6", r: "3" }),
262
- /* @__PURE__ */ jsx3("circle", { cx: "18", cy: "18", r: "3" }),
263
- /* @__PURE__ */ jsx3("path", { d: "M6 9v12M13 6h3a2 2 0 0 1 2 2v7" })
264
- ] });
265
- }
266
- function GraduationCapIcon(props) {
267
- return /* @__PURE__ */ jsxs2("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", ...strokeProps, ...props, children: [
268
- /* @__PURE__ */ jsx3("path", { d: "M21.42 10.92a1 1 0 0 0-.02-1.84L12.83 5.18a2 2 0 0 0-1.66 0L2.6 9.08a1 1 0 0 0 0 1.83l8.57 3.91a2 2 0 0 0 1.66 0z" }),
269
- /* @__PURE__ */ jsx3("path", { d: "M22 10v6" }),
270
- /* @__PURE__ */ jsx3("path", { d: "M6 12.5V16a6 3 0 0 0 12 0v-3.5" })
271
- ] });
272
- }
273
- function SparklesIcon(props) {
274
- return /* @__PURE__ */ jsx3("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", ...strokeProps, ...props, children: /* @__PURE__ */ jsx3("path", { d: "M12 3l1.9 5.8a2 2 0 0 0 1.3 1.3L21 12l-5.8 1.9a2 2 0 0 0-1.3 1.3L12 21l-1.9-5.8a2 2 0 0 0-1.3-1.3L3 12l5.8-1.9a2 2 0 0 0 1.3-1.3z" }) });
275
- }
276
- function GitHubIcon(props) {
277
- return /* @__PURE__ */ jsx3("svg", { viewBox: "0 0 24 24", "aria-hidden": "true", ...props, children: /* @__PURE__ */ jsx3(
278
- "path",
279
- {
280
- fill: "currentColor",
281
- d: "M12 .5A11.5 11.5 0 0 0 8.36 22.9c.58.11.79-.25.79-.56v-2.16c-3.21.7-3.89-1.38-3.89-1.38-.53-1.34-1.29-1.7-1.29-1.7-1.05-.72.08-.7.08-.7 1.16.08 1.77 1.19 1.77 1.19 1.04 1.76 2.71 1.25 3.37.96.11-.75.4-1.25.74-1.54-2.56-.29-5.26-1.28-5.26-5.7 0-1.26.45-2.29 1.19-3.1-.12-.29-.52-1.46.11-3.06 0 0 .97-.31 3.16 1.18a10.88 10.88 0 0 1 5.76 0c2.19-1.49 3.15-1.18 3.15-1.18.63 1.6.23 2.77.11 3.06.74.81 1.19 1.84 1.19 3.1 0 4.43-2.7 5.4-5.27 5.69.41.36.78 1.06.78 2.14v3.19c0 .31.21.68.8.56A11.5 11.5 0 0 0 12 .5Z"
282
- }
283
- ) });
284
- }
285
- function ImageIcon(props) {
286
- return /* @__PURE__ */ jsxs2("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", ...strokeProps, ...props, children: [
287
- /* @__PURE__ */ jsx3("rect", { x: "3", y: "3", width: "18", height: "18", rx: "2" }),
288
- /* @__PURE__ */ jsx3("circle", { cx: "9", cy: "9", r: "2" }),
289
- /* @__PURE__ */ jsx3("path", { d: "m21 15-5-5L5 21" })
290
- ] });
291
- }
292
- function CubeIcon(props) {
293
- return /* @__PURE__ */ jsxs2("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", ...strokeProps, ...props, children: [
294
- /* @__PURE__ */ jsx3("path", { d: "m21 16-9 5-9-5V8l9-5 9 5z" }),
295
- /* @__PURE__ */ jsx3("path", { d: "m3 8 9 5 9-5" }),
296
- /* @__PURE__ */ jsx3("path", { d: "M12 13v8" })
297
- ] });
298
- }
299
- function AudioIcon(props) {
300
- return /* @__PURE__ */ jsxs2("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", ...strokeProps, ...props, children: [
301
- /* @__PURE__ */ jsx3("path", { d: "M9 18V5l12-2v13" }),
302
- /* @__PURE__ */ jsx3("circle", { cx: "6", cy: "18", r: "3" }),
303
- /* @__PURE__ */ jsx3("circle", { cx: "18", cy: "16", r: "3" })
304
- ] });
305
- }
306
- function LockIcon(props) {
307
- return /* @__PURE__ */ jsxs2("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", ...strokeProps, ...props, children: [
308
- /* @__PURE__ */ jsx3("rect", { x: "3", y: "11", width: "18", height: "11", rx: "2", ry: "2" }),
309
- /* @__PURE__ */ jsx3("path", { d: "M7 11V7a5 5 0 0 1 10 0v4" })
310
- ] });
311
- }
312
- function LogInIcon(props) {
313
- return /* @__PURE__ */ jsxs2("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", ...strokeProps, ...props, children: [
314
- /* @__PURE__ */ jsx3("path", { d: "M10 17l5-5-5-5" }),
315
- /* @__PURE__ */ jsx3("path", { d: "M15 12H3" }),
316
- /* @__PURE__ */ jsx3("path", { d: "M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4" })
317
- ] });
318
- }
319
- function LogOutIcon(props) {
320
- return /* @__PURE__ */ jsxs2("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", ...strokeProps, ...props, children: [
321
- /* @__PURE__ */ jsx3("path", { d: "M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4" }),
322
- /* @__PURE__ */ jsx3("path", { d: "m16 17 5-5-5-5" }),
323
- /* @__PURE__ */ jsx3("path", { d: "M21 12H9" })
324
- ] });
325
- }
326
- function MailIcon(props) {
327
- return /* @__PURE__ */ jsxs2("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", ...strokeProps, ...props, children: [
328
- /* @__PURE__ */ jsx3("rect", { x: "3", y: "5", width: "18", height: "14", rx: "2" }),
329
- /* @__PURE__ */ jsx3("path", { d: "m3 7 9 7 9-7" })
330
- ] });
331
- }
332
- function McpIcon(props) {
333
- return /* @__PURE__ */ jsxs2("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", ...strokeProps, ...props, children: [
334
- /* @__PURE__ */ jsx3("rect", { x: "2", y: "4", width: "8", height: "16", rx: "1.5" }),
335
- /* @__PURE__ */ jsx3("rect", { x: "14", y: "4", width: "8", height: "16", rx: "1.5" }),
336
- /* @__PURE__ */ jsx3("path", { d: "M10 12h4" })
337
- ] });
338
- }
339
- function MenuIcon(props) {
340
- return /* @__PURE__ */ jsx3("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", ...strokeProps, ...props, children: /* @__PURE__ */ jsx3("path", { d: "M4 7h16M4 12h16M4 17h16" }) });
341
- }
342
- function NewspaperIcon(props) {
343
- return /* @__PURE__ */ jsxs2("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", ...strokeProps, ...props, children: [
344
- /* @__PURE__ */ jsx3("path", { d: "M5 4h12a1 1 0 0 1 1 1v14a1 1 0 0 0 1 1H4a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1h1z" }),
345
- /* @__PURE__ */ jsx3("path", { d: "M18 8h2a1 1 0 0 1 1 1v9a2 2 0 0 1-2 2" }),
346
- /* @__PURE__ */ jsx3("path", { d: "M7 8h7M7 12h7M7 16h4" })
347
- ] });
348
- }
349
- function PlusIcon(props) {
350
- return /* @__PURE__ */ jsx3("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", ...strokeProps, ...props, children: /* @__PURE__ */ jsx3("path", { d: "M12 5v14M5 12h14" }) });
351
- }
352
- function TerminalIcon(props) {
353
- return /* @__PURE__ */ jsxs2("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", ...strokeProps, ...props, children: [
354
- /* @__PURE__ */ jsx3("polyline", { points: "4 8 8 12 4 16" }),
355
- /* @__PURE__ */ jsx3("line", { x1: "12", y1: "20", x2: "20", y2: "20" })
356
- ] });
357
- }
358
- function ToolIcon(props) {
359
- return /* @__PURE__ */ jsx3("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", ...strokeProps, ...props, children: /* @__PURE__ */ jsx3("path", { d: "M14.7 6.3a1 1 0 0 0 0 1.4l2.1 2.1a1 1 0 0 0 1.4 0l4-4a6 6 0 0 1-8 8l-8 8a2.8 2.8 0 0 1-4-4l8-8a6 6 0 0 1 8-8l-4 4Z" }) });
360
- }
361
- function TargetIcon(props) {
362
- return /* @__PURE__ */ jsxs2("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", ...strokeProps, ...props, children: [
363
- /* @__PURE__ */ jsx3("circle", { cx: "12", cy: "12", r: "9" }),
364
- /* @__PURE__ */ jsx3("circle", { cx: "12", cy: "12", r: "5" }),
365
- /* @__PURE__ */ jsx3("circle", { cx: "12", cy: "12", r: "1.6", fill: "currentColor", stroke: "none" })
366
- ] });
367
- }
368
- function TokensIcon(props) {
369
- return /* @__PURE__ */ jsx3("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", ...strokeProps, ...props, children: /* @__PURE__ */ jsx3("path", { d: "M4 9h16M4 15h16M10 3 8 21M16 3l-2 18" }) });
370
- }
371
- function UsageIcon(props) {
372
- return /* @__PURE__ */ jsxs2("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", ...strokeProps, ...props, children: [
373
- /* @__PURE__ */ jsx3("path", { d: "M4 18a8 8 0 1 1 16 0" }),
374
- /* @__PURE__ */ jsx3("path", { d: "M12 18l3.5-5" }),
375
- /* @__PURE__ */ jsx3("path", { d: "M7 18h10" }),
376
- /* @__PURE__ */ jsx3("path", { d: "M7.5 12.5 6 11" }),
377
- /* @__PURE__ */ jsx3("path", { d: "M16.5 12.5 18 11" })
378
- ] });
379
- }
380
- function WarningIcon(props) {
381
- return /* @__PURE__ */ jsxs2("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", ...strokeProps, ...props, children: [
382
- /* @__PURE__ */ jsx3("path", { d: "M10.3 3.1 1.8 17a2 2 0 0 0 1.7 3h17a2 2 0 0 0 1.7-3L13.7 3.1a2 2 0 0 0-3.4 0Z" }),
383
- /* @__PURE__ */ jsx3("path", { d: "M12 9v4M12 17h.01" })
384
- ] });
385
- }
386
- function TrendUpIcon(props) {
387
- return /* @__PURE__ */ jsxs2("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", ...strokeProps, ...props, children: [
388
- /* @__PURE__ */ jsx3("polyline", { points: "3 17 9 11 13 15 21 7" }),
389
- /* @__PURE__ */ jsx3("polyline", { points: "15 7 21 7 21 13" })
390
- ] });
391
- }
392
- function EarningsIcon(props) {
393
- return /* @__PURE__ */ jsxs2("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", ...strokeProps, ...props, children: [
394
- /* @__PURE__ */ jsx3("ellipse", { cx: "10", cy: "6", rx: "6", ry: "3" }),
395
- /* @__PURE__ */ jsx3("path", { d: "M4 6v8c0 1.7 2.7 3 6 3 1.2 0 2.4-.2 3.3-.5" }),
396
- /* @__PURE__ */ jsx3("path", { d: "M16 6v4" }),
397
- /* @__PURE__ */ jsx3("path", { d: "M4 10c0 1.7 2.7 3 6 3 1.1 0 2.1-.1 3-.4" }),
398
- /* @__PURE__ */ jsx3("path", { d: "M18 14v6" }),
399
- /* @__PURE__ */ jsx3("path", { d: "M15 17h6" })
400
- ] });
401
- }
402
- function WalletIcon(props) {
403
- return /* @__PURE__ */ jsxs2("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", ...strokeProps, ...props, children: [
404
- /* @__PURE__ */ jsx3("path", { d: "M3 7a2 2 0 0 1 2-2h13a2 2 0 0 1 2 2v2H5a2 2 0 0 0-2 2V7Z" }),
405
- /* @__PURE__ */ jsx3("path", { d: "M3 11a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-6Z" }),
406
- /* @__PURE__ */ jsx3("circle", { cx: "17", cy: "14", r: "1.25", fill: "currentColor" })
407
- ] });
408
- }
409
- function ReceiptIcon(props) {
410
- return /* @__PURE__ */ jsxs2("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", ...strokeProps, ...props, children: [
411
- /* @__PURE__ */ jsx3("path", { d: "M6 3h12v18l-2-1.5-2 1.5-2-1.5-2 1.5-2-1.5L6 21Z" }),
412
- /* @__PURE__ */ jsx3("path", { d: "M9 8h6M9 12h6M9 16h3" })
413
- ] });
414
- }
415
- function MoonIcon(props) {
416
- return /* @__PURE__ */ jsx3("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", ...strokeProps, ...props, children: /* @__PURE__ */ jsx3("path", { d: "M21 12.8A9 9 0 1 1 11.2 3a7 7 0 0 0 9.8 9.8Z" }) });
417
- }
418
- function SunIcon(props) {
419
- return /* @__PURE__ */ jsxs2("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", ...strokeProps, ...props, children: [
420
- /* @__PURE__ */ jsx3("circle", { cx: "12", cy: "12", r: "4" }),
421
- /* @__PURE__ */ jsx3("path", { d: "M12 2v2M12 20v2M4.9 4.9l1.4 1.4M17.7 17.7l1.4 1.4M2 12h2M20 12h2M4.9 19.1l1.4-1.4M17.7 6.3l1.4-1.4" })
422
- ] });
423
- }
424
- function XIcon(props) {
425
- return /* @__PURE__ */ jsx3("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", ...strokeProps, ...props, children: /* @__PURE__ */ jsx3("path", { d: "M18 6 6 18M6 6l12 12" }) });
426
- }
427
- function TrashIcon(props) {
428
- return /* @__PURE__ */ jsxs2("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", ...strokeProps, ...props, children: [
429
- /* @__PURE__ */ jsx3("path", { d: "M3 6h18" }),
430
- /* @__PURE__ */ jsx3("path", { d: "M8 6V4h8v2" }),
431
- /* @__PURE__ */ jsx3("path", { d: "m19 6-1 15H6L5 6" }),
432
- /* @__PURE__ */ jsx3("path", { d: "M10 11v6M14 11v6" })
433
- ] });
434
- }
435
- function ChatIcon(props) {
436
- return /* @__PURE__ */ jsx3("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", ...strokeProps, ...props, children: /* @__PURE__ */ jsx3("path", { d: "M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z" }) });
437
- }
438
- function RobotIcon(props) {
439
- return /* @__PURE__ */ jsxs2("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", ...strokeProps, ...props, children: [
440
- /* @__PURE__ */ jsx3("rect", { x: "3", y: "6", width: "18", height: "15", rx: "3" }),
441
- /* @__PURE__ */ jsx3("path", { d: "M12 2v4M3 11H1v5h2M21 11h2v5h-2M8 17h8" }),
442
- /* @__PURE__ */ jsx3("circle", { cx: "9", cy: "12", r: "1" }),
443
- /* @__PURE__ */ jsx3("circle", { cx: "15", cy: "12", r: "1" })
444
- ] });
445
- }
446
- function EyeIcon(props) {
447
- return /* @__PURE__ */ jsxs2("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", ...strokeProps, ...props, children: [
448
- /* @__PURE__ */ jsx3("path", { d: "M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7z" }),
449
- /* @__PURE__ */ jsx3("circle", { cx: "12", cy: "12", r: "3" })
450
- ] });
451
- }
452
- function EyeOffIcon(props) {
453
- return /* @__PURE__ */ jsxs2("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", ...strokeProps, ...props, children: [
454
- /* @__PURE__ */ jsx3("path", { d: "M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7z" }),
455
- /* @__PURE__ */ jsx3("circle", { cx: "12", cy: "12", r: "3" }),
456
- /* @__PURE__ */ jsx3("path", { d: "M3 3l18 18" })
457
- ] });
458
- }
459
- function VideoIcon(props) {
460
- return /* @__PURE__ */ jsxs2("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", ...strokeProps, ...props, children: [
461
- /* @__PURE__ */ jsx3("path", { d: "m22 8-6 4 6 4V8z" }),
462
- /* @__PURE__ */ jsx3("rect", { x: "2", y: "6", width: "14", height: "12", rx: "2" })
463
- ] });
464
- }
465
- function MicIcon(props) {
466
- return /* @__PURE__ */ jsxs2("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", ...strokeProps, ...props, children: [
467
- /* @__PURE__ */ jsx3("path", { d: "M12 2a3 3 0 0 0-3 3v7a3 3 0 0 0 6 0V5a3 3 0 0 0-3-3z" }),
468
- /* @__PURE__ */ jsx3("path", { d: "M19 10v2a7 7 0 0 1-14 0v-2" }),
469
- /* @__PURE__ */ jsx3("path", { d: "M12 19v3" })
470
- ] });
471
- }
472
- function SpeakerIcon(props) {
473
- return /* @__PURE__ */ jsxs2("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", ...strokeProps, ...props, children: [
474
- /* @__PURE__ */ jsx3("path", { d: "M11 5 6 9H2v6h4l5 4z" }),
475
- /* @__PURE__ */ jsx3("path", { d: "M15.54 8.46a5 5 0 0 1 0 7.07" }),
476
- /* @__PURE__ */ jsx3("path", { d: "M19.07 4.93a10 10 0 0 1 0 14.14" })
477
- ] });
478
- }
479
- function MegaphoneIcon(props) {
480
- return /* @__PURE__ */ jsxs2("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", ...strokeProps, ...props, children: [
481
- /* @__PURE__ */ jsx3("path", { d: "m3 11 18-5v12L3 14v-3z" }),
482
- /* @__PURE__ */ jsx3("path", { d: "m7 15 1.5 6H14l-2-7" })
483
- ] });
484
- }
485
- function ReasoningIcon(props) {
486
- return /* @__PURE__ */ jsx3("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", ...strokeProps, ...props, children: /* @__PURE__ */ jsx3("path", { d: "M9 18h6M10 22h4M15.1 14c.2-1 .6-1.7 1.4-2.5A4.6 4.6 0 0 0 18 8 6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.8.8 1.2 1.5 1.4 2.5" }) });
487
- }
488
- function RocketIcon(props) {
489
- return /* @__PURE__ */ jsxs2("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", ...strokeProps, ...props, children: [
490
- /* @__PURE__ */ jsx3("path", { d: "M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09z" }),
491
- /* @__PURE__ */ jsx3("path", { d: "m12 15-3-3a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 0 1-4 2z" }),
492
- /* @__PURE__ */ jsx3("path", { d: "M9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0" }),
493
- /* @__PURE__ */ jsx3("path", { d: "M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5" })
494
- ] });
495
- }
496
- function SearchIcon(props) {
497
- return /* @__PURE__ */ jsxs2("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", ...strokeProps, ...props, children: [
498
- /* @__PURE__ */ jsx3("circle", { cx: "11", cy: "11", r: "7" }),
499
- /* @__PURE__ */ jsx3("path", { d: "m21 21-4.3-4.3" })
500
- ] });
501
- }
502
- function SignOutIcon(props) {
503
- return /* @__PURE__ */ jsxs2("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", ...strokeProps, ...props, children: [
504
- /* @__PURE__ */ jsx3("path", { d: "M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4" }),
505
- /* @__PURE__ */ jsx3("path", { d: "m16 17 5-5-5-5" }),
506
- /* @__PURE__ */ jsx3("path", { d: "M21 12H9" })
507
- ] });
508
- }
509
- function PowerIcon(props) {
510
- return /* @__PURE__ */ jsxs2("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", ...strokeProps, ...props, children: [
511
- /* @__PURE__ */ jsx3("path", { d: "M12 2v10" }),
512
- /* @__PURE__ */ jsx3("path", { d: "M18.4 6.6a9 9 0 1 1-12.77.04" })
513
- ] });
514
- }
515
- function SparkleIcon(props) {
516
- return /* @__PURE__ */ jsxs2("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", ...strokeProps, ...props, children: [
517
- /* @__PURE__ */ jsx3("path", { d: "M9.94 15.5A2 2 0 0 0 8.5 14.06l-6.14-1.58a.5.5 0 0 1 0-.96L8.5 9.94A2 2 0 0 0 9.94 8.5l1.58-6.14a.5.5 0 0 1 .96 0L14.06 8.5A2 2 0 0 0 15.5 9.94l6.14 1.58a.5.5 0 0 1 0 .96L15.5 14.06a2 2 0 0 0-1.44 1.44l-1.58 6.14a.5.5 0 0 1-.96 0z" }),
518
- /* @__PURE__ */ jsx3("path", { d: "M20 3v4" }),
519
- /* @__PURE__ */ jsx3("path", { d: "M22 5h-4" }),
520
- /* @__PURE__ */ jsx3("path", { d: "M4 17v2" }),
521
- /* @__PURE__ */ jsx3("path", { d: "M5 18H3" })
522
- ] });
523
- }
524
- function StarIcon({
525
- filled = false,
526
- ...props
527
- }) {
528
- return /* @__PURE__ */ jsx3(
529
- "svg",
530
- {
531
- "aria-hidden": "true",
532
- viewBox: "0 0 24 24",
533
- ...strokeProps,
534
- fill: filled ? "currentColor" : "none",
535
- ...props,
536
- children: /* @__PURE__ */ jsx3("polygon", { points: "12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2" })
537
- }
538
- );
539
- }
540
- function CodeIcon(props) {
541
- return /* @__PURE__ */ jsx3("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", ...strokeProps, ...props, children: /* @__PURE__ */ jsx3("path", { d: "m16 18 6-6-6-6M8 6l-6 6 6 6" }) });
542
- }
543
- function DatabaseIcon(props) {
544
- return /* @__PURE__ */ jsxs2("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", ...strokeProps, ...props, children: [
545
- /* @__PURE__ */ jsx3("ellipse", { cx: "12", cy: "5", rx: "9", ry: "3" }),
546
- /* @__PURE__ */ jsx3("path", { d: "M3 5v14a9 3 0 0 0 18 0V5" }),
547
- /* @__PURE__ */ jsx3("path", { d: "M3 12a9 3 0 0 0 18 0" })
548
- ] });
549
- }
550
- function CardIcon(props) {
551
- return /* @__PURE__ */ jsxs2("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", ...strokeProps, ...props, children: [
552
- /* @__PURE__ */ jsx3("rect", { x: "2", y: "5", width: "20", height: "14", rx: "2" }),
553
- /* @__PURE__ */ jsx3("path", { d: "M2 10h20" })
554
- ] });
555
- }
556
- function SproutIcon(props) {
557
- return /* @__PURE__ */ jsxs2("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", ...strokeProps, ...props, children: [
558
- /* @__PURE__ */ jsx3("path", { d: "M7 20h10" }),
559
- /* @__PURE__ */ jsx3("path", { d: "M10 20c5.5-2.5.8-6.4 3-10" }),
560
- /* @__PURE__ */ jsx3("path", { d: "M9.5 9.4c1.1.8 1.8 2.2 2.3 3.7-2 .4-3.5.4-4.8-.3-1.2-.6-2.3-1.9-3-4.2 2.8-.5 4.4 0 5.5.8z" }),
561
- /* @__PURE__ */ jsx3("path", { d: "M14.1 6a7 7 0 0 0-1.1 4c1.9-.1 3.3-.6 4.3-1.4 1-1 1.6-2.3 1.7-4.6-2.7.1-4 1-4.9 2z" })
562
- ] });
563
- }
564
- function PencilIcon(props) {
565
- return /* @__PURE__ */ jsxs2("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", ...strokeProps, ...props, children: [
566
- /* @__PURE__ */ jsx3("path", { d: "M12 20h9" }),
567
- /* @__PURE__ */ jsx3("path", { d: "M16.5 3.5a2.12 2.12 0 0 1 3 3L7 19l-4 1 1-4Z" })
568
- ] });
569
- }
570
- function KeyIcon(props) {
571
- return /* @__PURE__ */ jsxs2("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", ...strokeProps, ...props, children: [
572
- /* @__PURE__ */ jsx3("circle", { cx: "7.5", cy: "15.5", r: "5.5" }),
573
- /* @__PURE__ */ jsx3("path", { d: "m21 2-9.6 9.6" }),
574
- /* @__PURE__ */ jsx3("path", { d: "m15.5 7.5 3 3L22 7l-3-3" })
575
- ] });
576
- }
577
- function GlobeIcon(props) {
578
- return /* @__PURE__ */ jsxs2("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", ...strokeProps, ...props, children: [
579
- /* @__PURE__ */ jsx3("circle", { cx: "12", cy: "12", r: "10" }),
580
- /* @__PURE__ */ jsx3("path", { d: "M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20" }),
581
- /* @__PURE__ */ jsx3("path", { d: "M2 12h20" })
582
- ] });
583
- }
584
- function ArrowLeftIcon(props) {
585
- return /* @__PURE__ */ jsxs2("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", ...strokeProps, ...props, children: [
586
- /* @__PURE__ */ jsx3("path", { d: "M19 12H5" }),
587
- /* @__PURE__ */ jsx3("path", { d: "m12 19-7-7 7-7" })
588
- ] });
589
- }
590
- function RefreshIcon(props) {
591
- return /* @__PURE__ */ jsxs2("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", ...strokeProps, ...props, children: [
592
- /* @__PURE__ */ jsx3("path", { d: "M21 12a9 9 0 1 1-2.64-6.36" }),
593
- /* @__PURE__ */ jsx3("path", { d: "M21 3v6h-6" })
594
- ] });
595
- }
596
-
597
- // src/compositions/AccountIdentity.tsx
598
- import { jsx as jsx4, jsxs as jsxs3 } from "react/jsx-runtime";
599
- function initials(name) {
600
- const parts = name.trim().split(/\s+/).filter(Boolean);
601
- if (parts.length === 0) return "?";
602
- if (parts.length === 1) return parts[0].slice(0, 2).toUpperCase();
603
- return `${parts[0][0] ?? ""}${parts.at(-1)?.[0] ?? ""}`.toUpperCase();
604
- }
605
- function AccountAvatar({
606
- name,
607
- avatarUrl,
608
- secondaryContent,
609
- dashboardHref,
610
- inline = false
611
- }) {
612
- const size = inline ? "polli:h-6 polli:w-6" : secondaryContent != null ? "polli:h-11 polli:w-11" : "polli:h-8 polli:w-8";
613
- const className = cn(
614
- size,
615
- inline && "polli:transition-transform polli:group-hover:scale-110 polli:group-hover:brightness-110 polli:motion-reduce:transition-none polli:motion-reduce:group-hover:scale-100"
616
- );
617
- const avatar = avatarUrl ? /* @__PURE__ */ jsx4(
618
- "img",
619
- {
620
- src: avatarUrl,
621
- alt: "",
622
- className: cn(
623
- className,
624
- "polli:shrink-0 polli:rounded-full polli:object-cover"
625
- )
626
- }
627
- ) : /* @__PURE__ */ jsx4(
628
- "span",
629
- {
630
- role: "img",
631
- "aria-label": `${name} avatar`,
632
- className: cn(
633
- className,
634
- "polli:flex polli:shrink-0 polli:items-center polli:justify-center polli:rounded-full polli:bg-theme-bg-pale polli:text-xs polli:font-semibold polli:text-theme-text-strong"
635
- ),
636
- children: initials(name)
637
- }
638
- );
639
- return dashboardHref ? /* @__PURE__ */ jsx4(
640
- "a",
641
- {
642
- href: dashboardHref,
643
- target: "_blank",
644
- rel: "noopener noreferrer",
645
- "aria-label": "Open dashboard",
646
- title: "Open dashboard",
647
- className: "polli:shrink-0 polli:rounded-full polli:cursor-pointer polli:transition-transform polli:hover:scale-105 polli:hover:brightness-110 polli:focus-visible:outline-2 polli:focus-visible:outline-offset-2 polli:focus-visible:outline-current polli:motion-reduce:transition-none polli:motion-reduce:hover:scale-100",
648
- children: avatar
649
- }
650
- ) : avatar;
651
- }
652
- function AccountIdentity({
653
- name,
654
- avatarUrl,
655
- secondaryContent,
656
- dashboardHref,
657
- className
658
- }) {
659
- return /* @__PURE__ */ jsxs3(
660
- "span",
661
- {
662
- className: cn(
663
- "polli:flex polli:min-w-0 polli:items-center polli:gap-2 polli:rounded-full polli:bg-surface-opaque polli:p-1 polli:pr-3",
664
- className
665
- ),
666
- children: [
667
- /* @__PURE__ */ jsx4(
668
- AccountAvatar,
669
- {
670
- name,
671
- avatarUrl,
672
- dashboardHref,
673
- secondaryContent
674
- }
675
- ),
676
- /* @__PURE__ */ jsx4(AccountDetails, { name, secondaryContent })
677
- ]
678
- }
679
- );
680
- }
681
- function AccountIdentityLink({
682
- name,
683
- avatarUrl,
684
- href,
685
- className
686
- }) {
687
- return /* @__PURE__ */ jsxs3(
688
- "a",
689
- {
690
- href,
691
- target: "_blank",
692
- rel: "noopener noreferrer",
693
- className: cn(
694
- // Sits in running text on cards, so it is compact and tinted.
695
- "polli:group polli:inline-flex polli:max-w-full polli:min-w-0 polli:items-center polli:gap-1.5 polli:rounded-full polli:bg-theme-bg-subtle polli:p-0.5 polli:pr-2.5 polli:align-middle polli:focus-visible:outline-2 polli:focus-visible:outline-offset-2 polli:focus-visible:outline-current",
696
- className
697
- ),
698
- children: [
699
- /* @__PURE__ */ jsx4(AccountAvatar, { name, avatarUrl, inline: true }),
700
- /* @__PURE__ */ jsx4(AccountDetails, { name }),
701
- /* @__PURE__ */ jsx4(
702
- ExternalLinkIcon,
703
- {
704
- "aria-hidden": "true",
705
- className: "polli:-ml-0.5 polli:h-3 polli:w-3 polli:shrink-0 polli:text-theme-text-strong polli:opacity-65"
706
- }
707
- )
708
- ]
709
- }
710
- );
711
- }
712
- function AccountDetails({
713
- name,
714
- secondaryContent,
715
- secondaryId
716
- }) {
717
- return /* @__PURE__ */ jsxs3("span", { className: "polli:flex polli:min-w-0 polli:flex-col polli:items-start polli:text-left", children: [
718
- /* @__PURE__ */ jsx4(
719
- "span",
720
- {
721
- title: name,
722
- className: "polli:max-w-full polli:truncate polli:text-sm polli:font-medium polli:leading-5 polli:text-theme-text-strong",
723
- children: name
724
- }
725
- ),
726
- secondaryContent != null && /* @__PURE__ */ jsx4(
727
- "span",
728
- {
729
- id: secondaryId,
730
- className: "polli:inline-flex polli:min-h-5 polli:items-center polli:whitespace-nowrap polli:text-xs polli:leading-4 polli:text-theme-text-base",
731
- children: secondaryContent
732
- }
733
- )
734
- ] });
735
- }
736
- function AccountMenu({
737
- name,
738
- avatarUrl,
739
- dashboardHref,
740
- secondaryContent,
741
- children,
742
- className,
743
- menuClassName,
744
- side = "bottom",
745
- menuLabel = `Account menu for ${name}`
746
- }) {
747
- const statusId = useId2();
748
- const avatar = /* @__PURE__ */ jsx4(
749
- AccountAvatar,
750
- {
751
- name,
752
- avatarUrl,
753
- dashboardHref,
754
- secondaryContent
755
- }
756
- );
757
- return /* @__PURE__ */ jsxs3(
758
- "div",
759
- {
760
- "data-theme": "accent",
761
- className: cn(
762
- "polli:flex polli:min-w-0 polli:items-center polli:gap-2 polli:rounded-full polli:bg-theme-bg-active polli:p-1 polli:pr-3 polli:text-theme-text-strong polli:transition-colors polli:hover:bg-theme-bg-hover",
763
- className
764
- ),
765
- children: [
766
- dashboardHref && avatar,
767
- /* @__PURE__ */ jsx4(
768
- Dropdown,
769
- {
770
- align: "end",
771
- side,
772
- className: cn(
773
- "polli:w-max polli:min-w-[var(--reference-width)] polli:p-1",
774
- menuClassName
775
- ),
776
- trigger: (open) => /* @__PURE__ */ jsxs3(
777
- "button",
778
- {
779
- type: "button",
780
- "aria-label": menuLabel,
781
- "aria-describedby": secondaryContent != null ? statusId : void 0,
782
- className: "polli-control polli:flex polli:min-w-0 polli:flex-1 polli:items-center polli:gap-2 polli:self-stretch polli:rounded-full polli:text-theme-text-strong",
783
- children: [
784
- !dashboardHref && avatar,
785
- /* @__PURE__ */ jsx4(
786
- AccountDetails,
787
- {
788
- name,
789
- secondaryContent,
790
- secondaryId: statusId
791
- }
792
- ),
793
- /* @__PURE__ */ jsx4(
794
- ChevronIcon,
795
- {
796
- expanded: open,
797
- className: "polli:ml-auto polli:h-4 polli:w-4 polli:text-theme-text-strong"
798
- }
799
- )
800
- ]
801
- }
802
- ),
803
- children
804
- }
805
- )
806
- ]
807
- }
808
- );
809
- }
810
-
811
- // src/primitives/Typography.tsx
812
- import { jsx as jsx5 } from "react/jsx-runtime";
813
- var headingSizeClasses = {
814
- display: "polli:font-heading polli:text-5xl polli:leading-none",
815
- title: "polli:font-heading polli:text-4xl polli:leading-none",
816
- section: "polli:font-subheading polli:text-2xl polli:leading-tight",
817
- subsection: "polli:font-subheading polli:text-xl polli:leading-tight",
818
- card: "polli:font-subheading polli:text-lg polli:leading-tight"
819
- };
820
- var textSizeClasses = {
821
- body: "polli:text-base polli:leading-relaxed",
822
- sm: "polli:text-sm polli:leading-6",
823
- xs: "polli:text-xs polli:leading-normal",
824
- micro: "polli:text-micro polli:leading-normal"
825
- };
826
- var textToneClasses = {
827
- base: "polli:text-theme-text-base",
828
- strong: "polli:text-theme-text-strong",
829
- soft: "polli:text-theme-text-soft",
830
- muted: "polli:text-theme-text-muted"
831
- };
832
- var textWeightClasses = {
833
- normal: "polli:font-normal",
834
- medium: "polli:font-medium",
835
- semibold: "polli:font-semibold",
836
- bold: "polli:font-bold"
837
- };
838
- function headingClassName(size, className) {
839
- return cn(
840
- "polli:break-words polli:text-theme-text-strong",
841
- headingSizeClasses[size],
842
- className
843
- );
844
- }
845
- function textClassName({
846
- size,
847
- tone,
848
- weight,
849
- className
850
- }) {
851
- return cn(
852
- "polli:break-words polli:font-body",
853
- textSizeClasses[size],
854
- textToneClasses[tone],
855
- textWeightClasses[weight],
856
- className
857
- );
858
- }
859
- function Heading({
860
- as,
861
- size = "section",
862
- className,
863
- children,
864
- ...rest
865
- }) {
866
- const Component = as || "h2";
867
- return /* @__PURE__ */ jsx5(Component, { ...rest, className: headingClassName(size, className), children });
868
- }
869
- function Text({
870
- as,
871
- size = "body",
872
- tone = "base",
873
- weight = "normal",
874
- className,
875
- children,
876
- ...rest
877
- }) {
878
- const Component = as || "p";
879
- return /* @__PURE__ */ jsx5(
880
- Component,
881
- {
882
- ...rest,
883
- className: textClassName({ size, tone, weight, className }),
884
- children
885
- }
886
- );
887
- }
888
-
889
- // src/compositions/Alert.tsx
890
- import { Fragment, jsx as jsx6, jsxs as jsxs4 } from "react/jsx-runtime";
891
- var intentClasses = {
892
- info: "polli:bg-theme-bg-pale polli:text-theme-text-strong",
893
- advisory: "polli:bg-intent-warning-bg-light/45 polli:text-theme-text-base",
894
- warning: "polli:bg-intent-warning-bg-light polli:text-intent-warning-text",
895
- danger: "polli:bg-intent-danger-bg-light polli:text-intent-danger-text"
896
- };
897
- var Alert = ({
898
- intent = "info",
899
- title,
900
- className,
901
- children,
902
- ...rest
903
- }) => /* @__PURE__ */ jsxs4(
904
- "div",
905
- {
906
- ...rest,
907
- role: intent === "danger" ? "alert" : "status",
908
- className: cn(
909
- "polli:rounded-xl polli:px-3 polli:py-2 polli:text-sm",
910
- intent === "advisory" && "polli:flex polli:items-start polli:gap-2",
911
- intentClasses[intent],
912
- className
913
- ),
914
- children: [
915
- intent === "advisory" && /* @__PURE__ */ jsx6(WarningIcon, { className: "polli:mt-0.5 polli:h-4 polli:w-4 polli:shrink-0 polli:text-intent-warning-text" }),
916
- /* @__PURE__ */ jsxs4("div", { className: "polli:min-w-0", children: [
917
- title && (intent === "advisory" ? /* @__PURE__ */ jsxs4(Fragment, { children: [
918
- /* @__PURE__ */ jsx6("strong", { className: "polli:font-semibold polli:text-theme-text-strong", children: title }),
919
- " ",
920
- "\u2014",
921
- " "
922
- ] }) : /* @__PURE__ */ jsx6(
923
- Text,
924
- {
925
- as: "div",
926
- size: "xs",
927
- tone: "strong",
928
- weight: "bold",
929
- className: "polli:mb-1 polli:uppercase polli:tracking-wide",
930
- children: title
931
- }
932
- )),
933
- children
934
- ] })
935
- ]
936
- }
937
- );
938
-
939
- // src/brand/lockup-horizontal.svg
940
- var lockup_horizontal_default = 'data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 858.891 105.6" fill="currentColor">%0A <g transform="translate(-13.81 -16.241) scale(0.921)"><path fill-rule="evenodd" d="M73.832 19.293a1893.685 1893.685 0 0 0-7.742 9.047c-1.93 2.273-3.274 3.898-4.266 5.156-.988 1.258-1.62 2.149-2.117 2.957-.5.805-.86 1.531-1.309 2.453-.14.285-.277.563-.402.813-.121.254-.238.48-.332.676a20.107 20.107 0 0 1-.34.652c-.008.008-.062 0-.156-.02s-.227-.047-.383-.09c-.16-.039-.351-.09-.558-.148-.207-.059-.43-.121-.668-.191-1.079-.32-1.895-.559-2.684-.743-.79-.18-1.55-.3-2.516-.382-.96-.082-2.129-.121-3.734-.145-1.602-.02-3.64-.023-6.348-.023H35.31l-2.485-.004H30.34v20.574l-.527.059-.524.058-1.055.117c-.59.067-1.203.157-1.84.274-.636.113-1.292.25-1.968.414-.676.16-1.371.348-2.086.555-.715.21-1.445.441-2.195.695-.47.16-1.024.36-1.594.574a64.38 64.38 0 0 0-1.684.649c-.523.207-.992.398-1.328.546-.336.149-.539.246-.539.274 0 .039.07.234.191.535.118.297.29.7.485 1.156.195.453.418.961.644 1.473.227.508.461 1.02.676 1.484a52.041 52.041 0 0 0 9.54 13.926 47.507 47.507 0 0 0 6.14 5.41c2.164 1.59 4.426 2.953 6.75 4.047a51.197 51.197 0 0 0 3.414 1.461c1.129.43 2.242.805 3.36 1.125 1.112.324 2.226.59 3.343.809a39.04 39.04 0 0 0 3.375.504c.84.085 1.781.136 2.777.156a51.632 51.632 0 0 0 6.203-.266 34.786 34.786 0 0 0 2.836-.394 59.177 59.177 0 0 1 2.633-.442c.149-.02.235-.023.246-.015.043.043-.02.195-.152.414a9.01 9.01 0 0 1-.582.812c-.242.313-.527.645-.813.965-.289.316-.582.617-.851.86-.57.519-1.168.968-1.809 1.355-.64.383-1.324.703-2.07.969-.746.261-1.555.464-2.441.617-.891.156-1.856.258-2.926.316-1.36.07-2.582.207-3.703.422-1.118.211-2.13.496-3.07.871-.938.375-1.801.84-2.618 1.403a15.82 15.82 0 0 0-2.351 2 14.205 14.205 0 0 0-1.489 1.765 13.256 13.256 0 0 0-1.148 1.945 15.518 15.518 0 0 0-.856 2.207 20.834 20.834 0 0 0-.59 2.543c-.058.348-.105.61-.156.817-.05.207-.105.36-.183.484a1.184 1.184 0 0 1-.325.332c-.144.106-.332.211-.578.356a9.157 9.157 0 0 0-2.543 2.183 8.797 8.797 0 0 0-1.52 2.813 8.33 8.33 0 0 0-.382 3.113 7.995 7.995 0 0 0 .852 3.098 7.95 7.95 0 0 0 1.574 2.117 9.294 9.294 0 0 0 2.168 1.566c.789.418 1.629.715 2.469.868.84.152 1.68.167 2.472.007a7.941 7.941 0 0 0 1.188-.336c.406-.144.82-.32 1.222-.515.399-.2.79-.418 1.149-.653.36-.234.691-.476.976-.73a6.93 6.93 0 0 0 1.473-1.86c.39-.71.68-1.492.855-2.308.176-.82.243-1.676.188-2.527a8.74 8.74 0 0 0-.531-2.516 5.919 5.919 0 0 0-.68-1.281c-.289-.43-.64-.856-1.031-1.258a10.34 10.34 0 0 0-1.262-1.11 8.299 8.299 0 0 0-1.379-.847c-.414-.2-.722-.352-.95-.492-.226-.137-.366-.27-.44-.43-.075-.16-.083-.352-.043-.613.039-.266.125-.598.242-1.043.226-.871.566-1.695 1.004-2.465a10.426 10.426 0 0 1 3.672-3.754c.77-.46 1.605-.836 2.492-1.102.152-.046.386-.093.675-.144a30.829 30.829 0 0 1 2.246-.273c.43-.043.876-.075 1.317-.102a41.754 41.754 0 0 0 2.773-.25 19.813 19.813 0 0 0 2.243-.406 13.283 13.283 0 0 0 1.918-.621c.609-.246 1.199-.536 1.804-.88a20.824 20.824 0 0 0 1.774-1.116c.539-.383 1.031-.786 1.511-1.227.48-.445.942-.934 1.415-1.488.468-.559.953-1.18 1.468-1.899l.309-.426.308-.43.313-.429.309-.426v19.633l-.399.262-.402.265-.797.532a11.66 11.66 0 0 0-1.567 1.21c-.44.41-.808.837-1.113 1.305-.305.465-.55.97-.746 1.535-.2.567-.351 1.192-.473 1.903a7.401 7.401 0 0 0 .024 2.574 8.502 8.502 0 0 0 2.441 4.543 7.787 7.787 0 0 0 2.157 1.496c.804.367 1.632.61 2.46.715.829.105 1.66.082 2.47-.07a7.963 7.963 0 0 0 2.343-.828 8.831 8.831 0 0 0 2.094-1.567c.406-.402.738-.789 1.011-1.18.27-.394.48-.796.641-1.234.156-.441.266-.918.336-1.473.07-.55.102-1.171.105-1.894 0-.524 0-.93-.011-1.266a6.504 6.504 0 0 0-.074-.836 3.967 3.967 0 0 0-.192-.683c-.09-.23-.207-.485-.355-.805a7.845 7.845 0 0 0-1.594-2.262 8.117 8.117 0 0 0-1.07-.879 9.342 9.342 0 0 0-1.254-.718l-.348-.164-.348-.16-.343-.165-.348-.164v-4.957l-.004-2.476v-2.48c0-1.36.004-2.657.012-3.833.008-1.176.02-2.23.035-3.11.016-.882.035-1.589.055-2.07.02-.48.043-.734.066-.707.02.028.074.102.156.208l.301.421c.121.168.258.364.406.575.145.207.305.433.461.664.38.543.735 1.027 1.09 1.468.352.438.703.832 1.063 1.2.363.367.742.707 1.148 1.039.406.328.844.652 1.332.98.777.528 1.5.965 2.223 1.328.718.364 1.437.657 2.203.89.765.235 1.582.411 2.496.544.914.137 1.93.23 3.094.3.433.024.867.055 1.289.087a40.742 40.742 0 0 1 2.148.215c.27.035.477.07.602.101.965.234 1.898.64 2.761 1.168a11.119 11.119 0 0 1 2.34 1.93 10.355 10.355 0 0 1 1.688 2.437c.43.867.707 1.781.805 2.695l.03.313.032.309.035.316.031.309-.27.14-.538.274-.274.136c-.828.426-1.558.922-2.183 1.493a7.954 7.954 0 0 0-1.54 1.91 7.731 7.731 0 0 0-.87 2.273 9.264 9.264 0 0 0-.172 2.594c.066.96.285 1.871.64 2.703a7.903 7.903 0 0 0 1.446 2.258 8.316 8.316 0 0 0 2.14 1.683c.817.45 1.727.782 2.715.98 1.309.255 2.617.126 3.836-.3a8.813 8.813 0 0 0 3.266-2.05 8.893 8.893 0 0 0 2.117-3.239c.453-1.21.613-2.527.387-3.848a9.06 9.06 0 0 0-1.504-3.644 9.344 9.344 0 0 0-1.301-1.477 8.97 8.97 0 0 0-1.61-1.16c-.18-.097-.347-.2-.507-.293-.16-.097-.305-.183-.434-.265-.125-.082-.23-.153-.312-.211a.573.573 0 0 1-.137-.121.813.813 0 0 1-.063-.184c-.027-.094-.058-.223-.097-.375a11.147 11.147 0 0 1-.11-.512c-.039-.187-.082-.39-.12-.594-.098-.5-.227-1.023-.383-1.554a19.7 19.7 0 0 0-.551-1.594c-.207-.527-.43-1.039-.668-1.512a12.868 12.868 0 0 0-.735-1.3 12.93 12.93 0 0 0-1.582-1.954 15.064 15.064 0 0 0-1.98-1.691 15.833 15.833 0 0 0-2.27-1.355 14.35 14.35 0 0 0-2.449-.934 9.33 9.33 0 0 0-.836-.188 25.72 25.72 0 0 0-1.094-.18 40.224 40.224 0 0 0-2.605-.269 51.614 51.614 0 0 1-1.281-.11 47.27 47.27 0 0 1-1.242-.128 37.65 37.65 0 0 1-1.067-.14 12.643 12.643 0 0 1-.746-.133 11.48 11.48 0 0 1-1.508-.458c-.5-.187-.996-.414-1.472-.668a12.371 12.371 0 0 1-2.606-1.847 16.117 16.117 0 0 1-1.676-1.836 5.604 5.604 0 0 1-.465-.707c-.097-.192-.125-.324-.074-.375.016-.016.117-.012.285.004.168.015.407.047.696.09.293.039.633.093 1.008.156.37.062.78.137 1.207.215a60.65 60.65 0 0 0 1.789.304c.527.079 1.011.133 1.535.172.523.04 1.09.063 1.777.078.692.016 1.504.02 2.527.024 1.22 0 2.204-.008 3.06-.031a27.474 27.474 0 0 0 2.257-.153 20.662 20.662 0 0 0 2.047-.336 48.885 48.885 0 0 0 2.426-.59 44.634 44.634 0 0 0 5.347-1.761 42.256 42.256 0 0 0 4.98-2.387 43.059 43.059 0 0 0 4.633-3.031 46.976 46.976 0 0 0 4.329-3.692 55.822 55.822 0 0 0 3.312-3.468 49.244 49.244 0 0 0 2.879-3.63 50.142 50.142 0 0 0 2.516-3.886 57.29 57.29 0 0 0 2.23-4.258c.375-.793.691-1.48.95-2.066.257-.59.46-1.078.613-1.473.144-.398.242-.7.285-.918.047-.219.039-.351-.016-.402-.078-.07-.41-.23-.902-.442a57.272 57.272 0 0 0-1.828-.73c-.692-.262-1.434-.535-2.121-.777a36.517 36.517 0 0 0-1.778-.586 54.289 54.289 0 0 0-3.531-.879 48.341 48.341 0 0 0-1.715-.332 23.874 23.874 0 0 0-1.465-.215l-.633-.07-.312-.04-.316-.035V39.301l-2.461.004h-2.461l-2.457.004h-2.461c-2.645.004-4.664.007-6.266.03-1.605.024-2.797.067-3.789.141-.992.079-1.789.192-2.598.356-.812.164-1.64.383-2.703.668a23.531 23.531 0 0 1-1.203.3c-.16.036-.289.06-.383.075-.093.016-.148.02-.156.008a29.962 29.962 0 0 1-.355-.672c-.102-.2-.22-.434-.348-.692a79.19 79.19 0 0 1-.418-.828c-.45-.902-.785-1.578-1.168-2.234-.379-.66-.805-1.297-1.422-2.117-.617-.817-1.433-1.82-2.594-3.203-1.16-1.387-2.671-3.153-4.68-5.508-1.398-1.64-2.53-2.961-3.44-4.02a272.265 272.265 0 0 0-2.122-2.441c-.523-.59-.875-.973-1.11-1.211-.237-.234-.355-.324-.402-.32-.015 0-.07.047-.156.132-.086.086-.199.207-.34.356-.136.148-.296.328-.472.523-.172.2-.364.414-.555.641m7.059 11.504a151.52 151.52 0 0 1 3.582 4.336 58.05 58.05 0 0 1 2.488 3.336c.66.965 1.16 1.793 1.516 2.515.355.72.57 1.332.66 1.868.023.14.039.25.031.347a.526.526 0 0 1-.09.262 1.205 1.205 0 0 1-.266.262c-.12.093-.285.199-.492.332-.332.21-.773.554-1.265.976-.493.426-1.043.934-1.594 1.473a43.455 43.455 0 0 0-1.625 1.672 25.487 25.487 0 0 0-1.348 1.574c-.398.512-.812 1.09-1.222 1.703a39.76 39.76 0 0 0-1.204 1.91 39.73 39.73 0 0 0-1.085 1.946c-.329.636-.622 1.25-.86 1.812-.34.809-.672 1.727-.976 2.688-.305.96-.582 1.964-.817 2.945-.234.984-.43 1.945-.562 2.816-.137.871-.215 1.653-.215 2.282-.004.609-.024 1.054-.055 1.332-.035.277-.086.386-.152.328-.067-.055-.149-.278-.246-.664a26.572 26.572 0 0 1-.336-1.66 76.29 76.29 0 0 0-.54-2.758 81.86 81.86 0 0 0-.624-2.66c-.211-.844-.43-1.637-.645-2.34a22.878 22.878 0 0 0-.617-1.801 24.472 24.472 0 0 0-.742-1.66 48.94 48.94 0 0 0-2.047-3.746c-.36-.59-.707-1.13-1.027-1.582a21.393 21.393 0 0 0-1.153-1.446 44.776 44.776 0 0 0-1.558-1.71 47.283 47.283 0 0 0-1.657-1.657c-.539-.512-1.043-.96-1.468-1.3-.172-.141-.34-.278-.489-.41a8.144 8.144 0 0 1-.402-.376 3.846 3.846 0 0 1-.27-.293c-.066-.082-.101-.144-.101-.176 0-.105.098-.378.262-.753.16-.372.386-.848.644-1.356.258-.508.547-1.05.828-1.562a24.735 24.735 0 0 1 1.582-2.508c.262-.371.543-.746.871-1.16.329-.418.7-.871 1.149-1.407.45-.535.973-1.144 1.601-1.87.235-.27.536-.614.875-1.005.336-.394.715-.832 1.114-1.293.394-.46.808-.937 1.215-1.41.402-.472.8-.933 1.168-1.363l.668-.777.668-.774.667-.777.665-.778.117.118.113.12.117.118.113.117a110.75 110.75 0 0 1 1.668 1.914l1.555 1.809c.57.664 1.184 1.383 1.813 2.12M51.227 44.149c.425.09.867.2 1.304.317.434.117.864.242 1.254.37.395.13.754.259 1.055.38.297.12.535.234.687.332.051.035.09.094.11.191.02.098.023.239.011.442-.015.199-.046.457-.097.793-.055.336-.125.75-.215 1.257-.094.524-.172.989-.23 1.446-.06.457-.106.91-.137 1.41a32.68 32.68 0 0 0-.067 1.7c-.011.648-.015 1.401-.015 2.312 0 .98.004 1.761.015 2.414.012.648.035 1.172.07 1.644.04.473.09.89.165 1.336.07.446.164.918.285 1.488.074.348.156.72.242 1.094.082.375.168.754.254 1.11.086.359.168.695.242.992.074.3.14.554.195.75.055.195.102.383.149.554.043.172.082.329.113.461.031.13.059.239.07.317.016.078.02.125.012.133a.942.942 0 0 1-.183-.079 35.955 35.955 0 0 1-1.148-.629c-.255-.144-.532-.304-.821-.472a95.651 95.651 0 0 0-2.031-1.152 44.616 44.616 0 0 0-1.723-.899 34 34 0 0 0-1.633-.75 44.224 44.224 0 0 0-1.762-.715 50.86 50.86 0 0 0-2.855-1.004 45.68 45.68 0 0 0-2.8-.793 39.106 39.106 0 0 0-2.653-.562 26.924 26.924 0 0 0-2.406-.309l-.426-.03-.426-.036-.426-.031-.426-.035V43.758h7.215c1.578.004 2.832.008 3.852.015 1.02.012 1.8.028 2.437.055a20.37 20.37 0 0 1 1.547.117c.43.051.797.117 1.196.203m64.886 7.493c0 1.23-.008 2.34-.015 3.312-.008.977-.02 1.817-.04 2.504-.015.691-.038 1.23-.062 1.602-.023.367-.05.57-.082.59a1.259 1.259 0 0 1-.281.07c-.153.031-.367.062-.617.101-.254.035-.547.078-.868.117-.32.043-.664.083-1.02.122-.765.086-1.538.199-2.323.343-.79.141-1.59.313-2.407.516-.816.203-1.652.434-2.503.7-.856.26-1.73.558-2.625.882-.735.266-1.305.477-1.801.672-.496.195-.918.375-1.348.578-.43.203-.867.43-1.398.723-.528.289-1.149.644-1.946 1.101a34.54 34.54 0 0 1-1.644.895 9.035 9.035 0 0 1-.528.242c-.128.055-.21.074-.226.059-.016-.016-.02-.082-.012-.184a5.49 5.49 0 0 1 .055-.422c.031-.172.066-.371.113-.59.043-.219.098-.457.156-.699.258-1.082.454-1.906.602-2.613.152-.703.258-1.282.332-1.867.078-.583.125-1.172.156-1.895.035-.723.059-1.578.086-2.695.024-.98.04-1.77.043-2.434.004-.66-.004-1.2-.027-1.684a17.76 17.76 0 0 0-.113-1.355 29.95 29.95 0 0 0-.223-1.445c-.152-.887-.27-1.543-.336-2.035-.066-.493-.086-.825-.04-1.059a.664.664 0 0 1 .333-.492c.18-.117.437-.207.781-.336.692-.266 1.29-.469 1.926-.63.637-.16 1.309-.276 2.152-.358.84-.082 1.852-.133 3.164-.16 1.309-.032 2.922-.044 4.965-.047l3.813-.008h1.902l1.906-.004v7.883m-25.05-2.368c.195 1.02.343 1.977.437 2.91.098.934.14 1.837.133 2.75a25.621 25.621 0 0 1-.18 2.797c-.11.961-.273 1.961-.488 3.036a39.395 39.395 0 0 1-.746 3.12 31.161 31.161 0 0 1-.946 2.829c-.355.906-.75 1.781-1.187 2.64a30.9 30.9 0 0 1-1.473 2.555c-.215.34-.597.86-1.074 1.469a76.18 76.18 0 0 1-1.625 2.012 79.82 79.82 0 0 1-1.73 2.011 30.987 30.987 0 0 1-1.387 1.489l-.258.25-.262.254-.257.253-.262.254.02-1.62.023-1.622.02-1.617.019-1.621c.02-1.414.035-2.543.058-3.465.02-.922.047-1.637.082-2.227.036-.59.082-1.054.141-1.472.059-.422.133-.797.227-1.211a38.117 38.117 0 0 1 1.086-3.91c.418-1.235.89-2.403 1.433-3.524a28.68 28.68 0 0 1 1.82-3.222 31.184 31.184 0 0 1 2.258-3.012 18.08 18.08 0 0 1 1.012-1.086c.367-.363.746-.715 1.106-1.023.355-.31.69-.575.964-.762.27-.188.48-.297.59-.297.035 0 .07.031.11.086.039.05.078.129.12.226a4.214 4.214 0 0 1 .216.75m-28.895.91c.914.915 1.738 1.86 2.488 2.86a25.52 25.52 0 0 1 2.028 3.187 30.027 30.027 0 0 1 1.636 3.645 42.64 42.64 0 0 1 1.32 4.23c.122.485.22.872.294 1.274.074.406.125.832.164 1.387.043.554.07 1.242.09 2.171.023.934.039 2.11.058 3.645.02 1.441.035 2.566.04 3.438.003.87 0 1.488-.016 1.921-.016.434-.043.68-.086.813-.04.129-.094.14-.16.101-.106-.058-.376-.324-.743-.722-.367-.399-.84-.926-1.34-1.512a82.643 82.643 0 0 1-1.539-1.832 48.185 48.185 0 0 1-1.34-1.695c-.34-.45-.722-1.031-1.117-1.688a40.534 40.534 0 0 1-1.183-2.125 43.623 43.623 0 0 1-1.075-2.207 21.82 21.82 0 0 1-.773-1.933c-.07-.215-.152-.477-.238-.762-.082-.29-.172-.602-.258-.922a49.961 49.961 0 0 1-.461-1.844c-.187-.86-.316-2.113-.395-3.508a62.606 62.606 0 0 1-.066-4.378c.027-1.434.106-2.762.227-3.735.12-.969.285-1.578.492-1.578.023 0 .097.05.21.14.11.09.259.22.438.38a44.358 44.358 0 0 1 1.305 1.25m53.23 15.39a24.897 24.897 0 0 1-.965 4.492 26.72 26.72 0 0 1-.824 2.25 33.11 33.11 0 0 1-1.058 2.305c-.344.676-.66 1.262-.98 1.805-.321.543-.641 1.035-.997 1.523-.351.485-.734.961-1.18 1.473-.445.508-.953 1.05-1.542 1.66a35.204 35.204 0 0 1-1.579 1.54c-.496.448-.976.847-1.468 1.21-.493.367-1 .703-1.551 1.031-.55.328-1.145.649-1.817.989-.84.421-1.624.761-2.445 1.03a15.58 15.58 0 0 1-2.683.626c-1.004.152-2.145.25-3.532.308-1.382.063-3.011.082-4.98.082H82.18l.03-.113.036-.113.031-.113.035-.114c.055-.199.243-.582.516-1.074.274-.496.633-1.101 1.027-1.746.399-.645.836-1.324 1.266-1.969.43-.644.852-1.25 1.219-1.746a44.604 44.604 0 0 1 5.883-6.445 41.569 41.569 0 0 1 6.812-4.977 38.048 38.048 0 0 1 7.477-3.36 34.711 34.711 0 0 1 7.886-1.585c.11-.008.22-.02.325-.027.105-.008.203-.02.293-.028.09-.008.164-.02.226-.023.063-.008.106-.016.13-.02.023-.004.038.024.05.078a.934.934 0 0 1 .023.239c.004.101 0 .226-.007.363-.008.137-.02.29-.04.45M30.934 66.89c.242 1.234.562 2.488.945 3.738a41.182 41.182 0 0 0 1.32 3.68 37.438 37.438 0 0 0 1.61 3.425 27.185 27.185 0 0 0 1.816 2.961c.45.633.992 1.313 1.594 2.004a38.232 38.232 0 0 0 1.949 2.074c.687.68 1.395 1.34 2.098 1.942.699.597 1.39 1.144 2.03 1.597.298.208.575.407.825.59.25.184.469.352.649.496.18.141.32.258.41.344.09.082.129.133.105.14-.066.028-.328-.038-.71-.167-.384-.13-.891-.324-1.458-.555a48.612 48.612 0 0 1-1.812-.777 38.066 38.066 0 0 1-7.352-4.297 42.01 42.01 0 0 1-5.043-4.422 44.733 44.733 0 0 1-4.37-5.254 45.026 45.026 0 0 1-3.575-5.941c-.125-.258-.25-.504-.356-.735-.109-.226-.207-.433-.285-.609-.078-.176-.14-.32-.18-.422-.042-.101-.058-.164-.05-.172.008-.008.062-.031.148-.066.09-.035.211-.082.36-.137.144-.05.32-.113.507-.18l.614-.21c.433-.145.988-.297 1.593-.446a39.578 39.578 0 0 1 3.805-.73c.574-.078 1.07-.125 1.434-.133l.23-.004.235-.004.23-.004.234-.004.114.57.109.57.113.567.114.57m8.199-1.87c1.383.238 2.8.59 4.226 1.039 1.426.449 2.856 1 4.27 1.636a42.064 42.064 0 0 1 4.16 2.164c1.348.801 2.648 1.68 3.879 2.621.41.317.95.778 1.547 1.32a69.069 69.069 0 0 1 1.914 1.805c.652.641 1.3 1.293 1.871 1.899a31.34 31.34 0 0 1 1.422 1.586 46.416 46.416 0 0 1 1.726 2.27c.57.796 1.125 1.613 1.622 2.39.5.781.94 1.52 1.285 2.152.343.637.593 1.172.71 1.543l.032.114.035.113.04.113.03.113h-5.511c-1.918 0-3.48-.02-4.801-.078-1.324-.058-2.41-.156-3.371-.312a15.68 15.68 0 0 1-2.63-.653c-.831-.289-1.651-.652-2.581-1.109a20.527 20.527 0 0 1-3.137-1.926 24.776 24.776 0 0 1-2.902-2.523 26.07 26.07 0 0 1-2.528-2.988 24.005 24.005 0 0 1-2.011-3.305 35.404 35.404 0 0 1-1.192-2.649 38.321 38.321 0 0 1-.968-2.66 25.394 25.394 0 0 1-.645-2.39c-.156-.72-.238-1.348-.238-1.832 0-.211 0-.371.011-.489.012-.12.032-.203.079-.257.043-.055.105-.082.203-.098.093-.016.222-.016.39-.016.094 0 .25.012.453.032.204.023.454.05.73.09.278.035.583.078.903.128.32.047.653.102.977.157m84.953.085c.336.06.809.168 1.336.297.523.13 1.101.282 1.64.434.543.152 1.051.305 1.43.43.387.125.649.222.7.273.027.023-.028.184-.149.45-.121.265-.3.632-.527 1.062-.223.433-.493.93-.79 1.457a56.9 56.9 0 0 1-.937 1.633 44.31 44.31 0 0 1-3.473 5.027 46.345 46.345 0 0 1-4.12 4.531 43.203 43.203 0 0 1-4.571 3.848 34.726 34.726 0 0 1-4.82 2.969 42.898 42.898 0 0 1-3.02 1.367c-.469.191-.89.351-1.207.457-.32.105-.535.156-.598.137-.027-.012.004-.055.079-.133.074-.074.195-.18.351-.309.153-.129.348-.281.563-.445.218-.164.465-.344.722-.531a31.987 31.987 0 0 0 3.067-2.473 30.025 30.025 0 0 0 4.992-5.887 32.018 32.018 0 0 0 1.953-3.441c.398-.809.75-1.57 1.059-2.309a30.121 30.121 0 0 0 1.48-4.39c.188-.758.363-1.547.52-2.391l.109-.59.113-.586.11-.59.109-.586h1.133c.156 0 .347.008.566.024.215.012.457.035.703.062a20.21 20.21 0 0 1 1.477.203m-79.191 55.711c.363.23.671.555.917.934.247.379.426.816.536 1.273.109.457.148.938.105 1.407a3.61 3.61 0 0 1-.371 1.336c-.156.304-.332.57-.539.808a3.303 3.303 0 0 1-1.512.996 4.104 4.104 0 0 1-.965.184 4.468 4.468 0 0 1-1.03-.043 3.427 3.427 0 0 1-1.719-.805 4.434 4.434 0 0 1-.696-.77 3.378 3.378 0 0 1-.555-1.284 4.203 4.203 0 0 1-.046-1.434c.066-.48.21-.945.43-1.36.214-.413.507-.78.87-1.058a3.654 3.654 0 0 1 1.059-.555c.383-.132.789-.207 1.2-.222.41-.02.82.023 1.214.12.39.102.766.259 1.102.473m64.375-.195c.175.086.37.23.574.406.199.176.402.38.586.598.187.215.36.438.492.652.133.211.226.407.266.567.019.07.035.168.042.285.012.113.02.25.024.398.004.145 0 .301-.004.457a8.875 8.875 0 0 1-.023.461 3.545 3.545 0 0 1-.774 1.953 3.866 3.866 0 0 1-3.625 1.368 3.584 3.584 0 0 1-1.883-.95 4.289 4.289 0 0 1-.55-.609 2.827 2.827 0 0 1-.352-.637 3.475 3.475 0 0 1-.188-.746 6.793 6.793 0 0 1-.054-.941c0-.352.027-.672.082-.961.05-.293.137-.555.25-.797.117-.242.265-.465.449-.676.188-.21.406-.41.668-.601.25-.188.547-.328.879-.434a4.168 4.168 0 0 1 1.05-.187c.364-.024.735 0 1.09.066.36.062.7.176 1 .328m-31.93.473c.177.125.368.328.556.57.183.242.367.531.527.824.16.293.297.598.394.88a2.5 2.5 0 0 1 .16.737c0 .258-.074.567-.206.895a5.551 5.551 0 0 1-.54.996 6 6 0 0 1-.742.906c-.265.27-.547.489-.816.63a2.93 2.93 0 0 1-1.024.3 3.709 3.709 0 0 1-1.117-.047 3.928 3.928 0 0 1-1.066-.37 3.194 3.194 0 0 1-.871-.669 4.034 4.034 0 0 1-.68-1.012 4.028 4.028 0 0 1-.355-1.12 3.802 3.802 0 0 1-.012-1.153 3.5 3.5 0 0 1 .344-1.094c.187-.363.375-.664.586-.91.21-.242.441-.43.71-.57.266-.14.57-.23.922-.282a6.496 6.496 0 0 1 1.239-.046c.254.011.472.027.664.046.195.024.363.055.515.098a2.284 2.284 0 0 1 .813.39"/></g>%0A <g transform="translate(-68.454 -154.133) scale(4.051)"><path d="M82.117 39.523c-.152.172-.191 2.747-.172 9.192l.059 8.945h4.773l.059-9.039c.039-7.113 0-9.078-.191-9.21-.438-.266-4.278-.192-4.528.112m7.621.117c-.21.4-.265 16.895-.054 17.696.093.398.187.418 2.441.418 1.969 0 2.371-.059 2.465-.305.21-.535.133-17.43-.074-17.828-.192-.324-.422-.363-2.391-.363-1.965 0-2.195.039-2.387.383m7.774-.27c-.075.078-.133.992-.133 2.024v1.867h4.793l-.055-1.965-.058-1.945-2.215-.055c-1.203-.02-2.254.02-2.332.074m50.312.152c-.156.172-.21.88-.172 1.965l.055 1.68h4.777l.055-1.793c.04-1.316-.02-1.852-.191-1.965-.133-.074-1.164-.152-2.27-.152-1.512 0-2.101.078-2.254.265m76.512-.152c-.074.078-.133.992-.133 2.024v1.867h4.793l-.055-1.965-.058-1.945-2.215-.055c-1.203-.02-2.254.02-2.332.074m-86.539 1.527c-.059.172-.117 1.145-.117 2.192v1.887h-.84c-.973 0-1.07.136-1.07 1.601 0 1.184.21 1.45 1.183 1.45h.727v2.042c0 1.145.058 2.899.132 3.907l.118 1.87h1.832l.058.895.055.918h5.54l.058-1.316c.039-.934-.02-1.375-.192-1.469-.133-.098-.781-.172-1.449-.172h-1.187l.039-3.3.058-3.278 1.336-.098 1.336-.093v-2.86l-1.336-.097-1.336-.094-.058-2.156-.055-2.133h-2.352c-1.984 0-2.386.054-2.48.304m-88.414 4.215c-.078.055-.137 4.04-.137 8.848 0 8.14.02 8.75.344 8.883.172.097 1.3.133 2.484.097l2.14-.058v-5.13h3.532c2.695 0 3.535-.058 3.555-.245.02-.117.035-.535.054-.899.02-.668.02-.668 1.032-.722l.996-.059v-8.906l-.594-.113a7.4 7.4 0 0 0-1.05-.114c-.419 0-.458-.078-.458-.86v-.858H55.38l-.059.707c-.054.726-.054.726-.953.78l-.918.06v-1.547h-1.97c-1.085 0-2.042.058-2.097.136m9.031 6.235v3.336l-2.023.058c-1.11.035-2.063.02-2.102-.02-.039-.038-.074-1.562-.074-3.394v-3.3h4.2Zm9.32-5.473c-.054.875-.074.914-.629.875a5.6 5.6 0 0 0-.992.059l-.441.078v8.941l1.012.059.996.054.054.918.059.895 4.91-.04 4.906-.054.059-.918.059-.894h2.082v-4.461c0-4.328-.02-4.485-.383-4.598-.211-.074-.668-.094-1.012-.055-.594.055-.613.036-.707-.8l-.098-.86-4.906-.058-4.91-.04Zm6.914 5.492v3.336h-4.007v-6.676h4.007Zm22.864-6.254c-.075.055-.133 2.934-.133 6.387v6.273l2.351-.058 2.329-.055.058-6.351.035-6.332h-2.25c-1.242 0-2.332.058-2.39.136m6.972 6.196.059 6.351h4.773l.059-4.824.04-4.809h4.007l.039 4.809.059 4.824h4.773l.059-5.379.039-5.379-.996-.054-1.012-.059-.055-.914-.058-.898-3.094.039-3.094.058-.059.703-.058.727h-1.89v-1.527h-3.63Zm17-4.864.055 1.489 3.785.058 3.781.035-.058.918-.059.895-3.148.097-3.153.094-.019.762v.766l-.973.054c-.824.04-.996.133-1.09.477-.152.555-.152 1.773 0 2.879l.133.879h1.832l.059.894.058.918 2.922.055 2.903.058v-1.562l.918.055c.898.058.898.058.953.761l.058.727h3.61V46.922l-.574-.133c-.305-.074-.649-.074-.743-.02-.441.29-.785-.132-.785-.953v-.84h-10.523Zm7.602 7.399v.86h-3.629v-1.716h3.629Zm18.621-8.637c-.055.133-.074 2.992-.055 6.352l.055 6.101h4.777V45.074l-2.351-.058c-1.778-.04-2.367.02-2.426.191m9.168 0a5.3 5.3 0 0 0-.133.914c-.058.668-.058.668-1.07.727l-.992.054.039 4.426.054 4.422.997.059.992.058.058.895.055.898 4.93.055 4.906.039v-1.906h2.101v-8.961h-.742c-1.207 0-1.36-.137-1.36-1.07v-.84h-4.866c-3.746 0-4.91.058-4.969.23m6.973 6.16v3.336h-4.012v-6.676h4.012Zm7.179-6.234c-.054.113-.035 8.406.059 11.894l.02.727h2.367c1.988 0 2.386-.059 2.484-.305.059-.172.113-2.347.113-4.863v-4.574l1.97.054 1.948.059.094 4.766.098 4.77h4.773V46.98l-.957-.094-.953-.098-.094-.855-.097-.86-3.094-.058-3.113-.04v1.528h-1.91v-1.527h-1.798c-.992 0-1.851.078-1.91.156m18.321.075a5 5 0 0 0-.137.914c-.055.668-.055.668-1.05.727l-1.013.054v1.891c0 1.027.059 2 .118 2.172.074.23.379.305 1.03.305h.934l.06.8.058.82 2.73.06 2.711.058v1.695h-3.57c-1.989 0-3.707.074-3.84.172-.172.094-.23.535-.191 1.469l.058 1.316h10.313l.058-.898.055-.895.996-.058.992-.059.059-1.617c.074-2.367.035-2.48-1.11-2.48h-.937l-.055-.821-.058-.8-2.77-.094-2.77-.098v-1.715l3.516-.059c1.95-.02 3.61-.113 3.723-.207.133-.117.191-.726.152-1.527l-.074-1.355h-4.95c-3.8 0-4.984.058-5.038.23m19.902 0c-.04.133-.04.8.035 1.488l.117 1.239 3.684.058 3.668.035v1.91h-6.3v1.715h-2.102v4.176l1.011.059.992.054.06.918.054.914 2.906-.058 2.902-.055.059-.726c.055-.707.074-.707.894-.707.825 0 .844 0 .899.707l.059.726 1.87.055 1.852.058V52.32c0-4.215-.055-5.433-.226-5.453-.137-.02-.594-.039-1.012-.058-.766-.02-.766-.02-.863-.875l-.094-.86-5.176-.058c-4.05-.04-5.215 0-5.289.191m7.504 8.637v.879l-1.758-.059-1.773-.055-.059-.535c-.113-1.011 0-1.086 1.871-1.086h1.719Zm7.449-2.477v6.387h4.719l.113-2.156a67 67 0 0 0 0-8.293l-.113-2.328h-4.719Zm-22.137 2.27c-.152.172-.21.894-.171 2.133l.058 1.89 2.063.055 2.062.058-.058-2.156-.055-2.152-1.836-.059c-1.414-.039-1.89.02-2.063.23m0 0"/></g>%0A</svg>%0A';
941
-
942
- // src/brand/mark.svg
943
- var mark_default = 'data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="15 17.6409 119.9998 114.7498" fill="currentColor"><path fill-rule="evenodd" d="M73.832 19.293a1893.685 1893.685 0 0 0-7.742 9.047c-1.93 2.273-3.274 3.898-4.266 5.156-.988 1.258-1.62 2.149-2.117 2.957-.5.805-.86 1.531-1.309 2.453-.14.285-.277.563-.402.813-.121.254-.238.48-.332.676a20.107 20.107 0 0 1-.34.652c-.008.008-.062 0-.156-.02s-.227-.047-.383-.09c-.16-.039-.351-.09-.558-.148-.207-.059-.43-.121-.668-.191-1.079-.32-1.895-.559-2.684-.743-.79-.18-1.55-.3-2.516-.382-.96-.082-2.129-.121-3.734-.145-1.602-.02-3.64-.023-6.348-.023H35.31l-2.485-.004H30.34v20.574l-.527.059-.524.058-1.055.117c-.59.067-1.203.157-1.84.274-.636.113-1.292.25-1.968.414-.676.16-1.371.348-2.086.555-.715.21-1.445.441-2.195.695-.47.16-1.024.36-1.594.574a64.38 64.38 0 0 0-1.684.649c-.523.207-.992.398-1.328.546-.336.149-.539.246-.539.274 0 .039.07.234.191.535.118.297.29.7.485 1.156.195.453.418.961.644 1.473.227.508.461 1.02.676 1.484a52.041 52.041 0 0 0 9.54 13.926 47.507 47.507 0 0 0 6.14 5.41c2.164 1.59 4.426 2.953 6.75 4.047a51.197 51.197 0 0 0 3.414 1.461c1.129.43 2.242.805 3.36 1.125 1.112.324 2.226.59 3.343.809a39.04 39.04 0 0 0 3.375.504c.84.085 1.781.136 2.777.156a51.632 51.632 0 0 0 6.203-.266 34.786 34.786 0 0 0 2.836-.394 59.177 59.177 0 0 1 2.633-.442c.149-.02.235-.023.246-.015.043.043-.02.195-.152.414a9.01 9.01 0 0 1-.582.812c-.242.313-.527.645-.813.965-.289.316-.582.617-.851.86-.57.519-1.168.968-1.809 1.355-.64.383-1.324.703-2.07.969-.746.261-1.555.464-2.441.617-.891.156-1.856.258-2.926.316-1.36.07-2.582.207-3.703.422-1.118.211-2.13.496-3.07.871-.938.375-1.801.84-2.618 1.403a15.82 15.82 0 0 0-2.351 2 14.205 14.205 0 0 0-1.489 1.765 13.256 13.256 0 0 0-1.148 1.945 15.518 15.518 0 0 0-.856 2.207 20.834 20.834 0 0 0-.59 2.543c-.058.348-.105.61-.156.817-.05.207-.105.36-.183.484a1.184 1.184 0 0 1-.325.332c-.144.106-.332.211-.578.356a9.157 9.157 0 0 0-2.543 2.183 8.797 8.797 0 0 0-1.52 2.813 8.33 8.33 0 0 0-.382 3.113 7.995 7.995 0 0 0 .852 3.098 7.95 7.95 0 0 0 1.574 2.117 9.294 9.294 0 0 0 2.168 1.566c.789.418 1.629.715 2.469.868.84.152 1.68.167 2.472.007a7.941 7.941 0 0 0 1.188-.336c.406-.144.82-.32 1.222-.515.399-.2.79-.418 1.149-.653.36-.234.691-.476.976-.73a6.93 6.93 0 0 0 1.473-1.86c.39-.71.68-1.492.855-2.308.176-.82.243-1.676.188-2.527a8.74 8.74 0 0 0-.531-2.516 5.919 5.919 0 0 0-.68-1.281c-.289-.43-.64-.856-1.031-1.258a10.34 10.34 0 0 0-1.262-1.11 8.299 8.299 0 0 0-1.379-.847c-.414-.2-.722-.352-.95-.492-.226-.137-.366-.27-.44-.43-.075-.16-.083-.352-.043-.613.039-.266.125-.598.242-1.043.226-.871.566-1.695 1.004-2.465a10.426 10.426 0 0 1 3.672-3.754c.77-.46 1.605-.836 2.492-1.102.152-.046.386-.093.675-.144a30.829 30.829 0 0 1 2.246-.273c.43-.043.876-.075 1.317-.102a41.754 41.754 0 0 0 2.773-.25 19.813 19.813 0 0 0 2.243-.406 13.283 13.283 0 0 0 1.918-.621c.609-.246 1.199-.536 1.804-.88a20.824 20.824 0 0 0 1.774-1.116c.539-.383 1.031-.786 1.511-1.227.48-.445.942-.934 1.415-1.488.468-.559.953-1.18 1.468-1.899l.309-.426.308-.43.313-.429.309-.426v19.633l-.399.262-.402.265-.797.532a11.66 11.66 0 0 0-1.567 1.21c-.44.41-.808.837-1.113 1.305-.305.465-.55.97-.746 1.535-.2.567-.351 1.192-.473 1.903a7.401 7.401 0 0 0 .024 2.574 8.502 8.502 0 0 0 2.441 4.543 7.787 7.787 0 0 0 2.157 1.496c.804.367 1.632.61 2.46.715.829.105 1.66.082 2.47-.07a7.963 7.963 0 0 0 2.343-.828 8.831 8.831 0 0 0 2.094-1.567c.406-.402.738-.789 1.011-1.18.27-.394.48-.796.641-1.234.156-.441.266-.918.336-1.473.07-.55.102-1.171.105-1.894 0-.524 0-.93-.011-1.266a6.504 6.504 0 0 0-.074-.836 3.967 3.967 0 0 0-.192-.683c-.09-.23-.207-.485-.355-.805a7.845 7.845 0 0 0-1.594-2.262 8.117 8.117 0 0 0-1.07-.879 9.342 9.342 0 0 0-1.254-.718l-.348-.164-.348-.16-.343-.165-.348-.164v-4.957l-.004-2.476v-2.48c0-1.36.004-2.657.012-3.833.008-1.176.02-2.23.035-3.11.016-.882.035-1.589.055-2.07.02-.48.043-.734.066-.707.02.028.074.102.156.208l.301.421c.121.168.258.364.406.575.145.207.305.433.461.664.38.543.735 1.027 1.09 1.468.352.438.703.832 1.063 1.2.363.367.742.707 1.148 1.039.406.328.844.652 1.332.98.777.528 1.5.965 2.223 1.328.718.364 1.437.657 2.203.89.765.235 1.582.411 2.496.544.914.137 1.93.23 3.094.3.433.024.867.055 1.289.087a40.742 40.742 0 0 1 2.148.215c.27.035.477.07.602.101.965.234 1.898.64 2.761 1.168a11.119 11.119 0 0 1 2.34 1.93 10.355 10.355 0 0 1 1.688 2.437c.43.867.707 1.781.805 2.695l.03.313.032.309.035.316.031.309-.27.14-.538.274-.274.136c-.828.426-1.558.922-2.183 1.493a7.954 7.954 0 0 0-1.54 1.91 7.731 7.731 0 0 0-.87 2.273 9.264 9.264 0 0 0-.172 2.594c.066.96.285 1.871.64 2.703a7.903 7.903 0 0 0 1.446 2.258 8.316 8.316 0 0 0 2.14 1.683c.817.45 1.727.782 2.715.98 1.309.255 2.617.126 3.836-.3a8.813 8.813 0 0 0 3.266-2.05 8.893 8.893 0 0 0 2.117-3.239c.453-1.21.613-2.527.387-3.848a9.06 9.06 0 0 0-1.504-3.644 9.344 9.344 0 0 0-1.301-1.477 8.97 8.97 0 0 0-1.61-1.16c-.18-.097-.347-.2-.507-.293-.16-.097-.305-.183-.434-.265-.125-.082-.23-.153-.312-.211a.573.573 0 0 1-.137-.121.813.813 0 0 1-.063-.184c-.027-.094-.058-.223-.097-.375a11.147 11.147 0 0 1-.11-.512c-.039-.187-.082-.39-.12-.594-.098-.5-.227-1.023-.383-1.554a19.7 19.7 0 0 0-.551-1.594c-.207-.527-.43-1.039-.668-1.512a12.868 12.868 0 0 0-.735-1.3 12.93 12.93 0 0 0-1.582-1.954 15.064 15.064 0 0 0-1.98-1.691 15.833 15.833 0 0 0-2.27-1.355 14.35 14.35 0 0 0-2.449-.934 9.33 9.33 0 0 0-.836-.188 25.72 25.72 0 0 0-1.094-.18 40.224 40.224 0 0 0-2.605-.269 51.614 51.614 0 0 1-1.281-.11 47.27 47.27 0 0 1-1.242-.128 37.65 37.65 0 0 1-1.067-.14 12.643 12.643 0 0 1-.746-.133 11.48 11.48 0 0 1-1.508-.458c-.5-.187-.996-.414-1.472-.668a12.371 12.371 0 0 1-2.606-1.847 16.117 16.117 0 0 1-1.676-1.836 5.604 5.604 0 0 1-.465-.707c-.097-.192-.125-.324-.074-.375.016-.016.117-.012.285.004.168.015.407.047.696.09.293.039.633.093 1.008.156.37.062.78.137 1.207.215a60.65 60.65 0 0 0 1.789.304c.527.079 1.011.133 1.535.172.523.04 1.09.063 1.777.078.692.016 1.504.02 2.527.024 1.22 0 2.204-.008 3.06-.031a27.474 27.474 0 0 0 2.257-.153 20.662 20.662 0 0 0 2.047-.336 48.885 48.885 0 0 0 2.426-.59 44.634 44.634 0 0 0 5.347-1.761 42.256 42.256 0 0 0 4.98-2.387 43.059 43.059 0 0 0 4.633-3.031 46.976 46.976 0 0 0 4.329-3.692 55.822 55.822 0 0 0 3.312-3.468 49.244 49.244 0 0 0 2.879-3.63 50.142 50.142 0 0 0 2.516-3.886 57.29 57.29 0 0 0 2.23-4.258c.375-.793.691-1.48.95-2.066.257-.59.46-1.078.613-1.473.144-.398.242-.7.285-.918.047-.219.039-.351-.016-.402-.078-.07-.41-.23-.902-.442a57.272 57.272 0 0 0-1.828-.73c-.692-.262-1.434-.535-2.121-.777a36.517 36.517 0 0 0-1.778-.586 54.289 54.289 0 0 0-3.531-.879 48.341 48.341 0 0 0-1.715-.332 23.874 23.874 0 0 0-1.465-.215l-.633-.07-.312-.04-.316-.035V39.301l-2.461.004h-2.461l-2.457.004h-2.461c-2.645.004-4.664.007-6.266.03-1.605.024-2.797.067-3.789.141-.992.079-1.789.192-2.598.356-.812.164-1.64.383-2.703.668a23.531 23.531 0 0 1-1.203.3c-.16.036-.289.06-.383.075-.093.016-.148.02-.156.008a29.962 29.962 0 0 1-.355-.672c-.102-.2-.22-.434-.348-.692a79.19 79.19 0 0 1-.418-.828c-.45-.902-.785-1.578-1.168-2.234-.379-.66-.805-1.297-1.422-2.117-.617-.817-1.433-1.82-2.594-3.203-1.16-1.387-2.671-3.153-4.68-5.508-1.398-1.64-2.53-2.961-3.44-4.02a272.265 272.265 0 0 0-2.122-2.441c-.523-.59-.875-.973-1.11-1.211-.237-.234-.355-.324-.402-.32-.015 0-.07.047-.156.132-.086.086-.199.207-.34.356-.136.148-.296.328-.472.523-.172.2-.364.414-.555.641m7.059 11.504a151.52 151.52 0 0 1 3.582 4.336 58.05 58.05 0 0 1 2.488 3.336c.66.965 1.16 1.793 1.516 2.515.355.72.57 1.332.66 1.868.023.14.039.25.031.347a.526.526 0 0 1-.09.262 1.205 1.205 0 0 1-.266.262c-.12.093-.285.199-.492.332-.332.21-.773.554-1.265.976-.493.426-1.043.934-1.594 1.473a43.455 43.455 0 0 0-1.625 1.672 25.487 25.487 0 0 0-1.348 1.574c-.398.512-.812 1.09-1.222 1.703a39.76 39.76 0 0 0-1.204 1.91 39.73 39.73 0 0 0-1.085 1.946c-.329.636-.622 1.25-.86 1.812-.34.809-.672 1.727-.976 2.688-.305.96-.582 1.964-.817 2.945-.234.984-.43 1.945-.562 2.816-.137.871-.215 1.653-.215 2.282-.004.609-.024 1.054-.055 1.332-.035.277-.086.386-.152.328-.067-.055-.149-.278-.246-.664a26.572 26.572 0 0 1-.336-1.66 76.29 76.29 0 0 0-.54-2.758 81.86 81.86 0 0 0-.624-2.66c-.211-.844-.43-1.637-.645-2.34a22.878 22.878 0 0 0-.617-1.801 24.472 24.472 0 0 0-.742-1.66 48.94 48.94 0 0 0-2.047-3.746c-.36-.59-.707-1.13-1.027-1.582a21.393 21.393 0 0 0-1.153-1.446 44.776 44.776 0 0 0-1.558-1.71 47.283 47.283 0 0 0-1.657-1.657c-.539-.512-1.043-.96-1.468-1.3-.172-.141-.34-.278-.489-.41a8.144 8.144 0 0 1-.402-.376 3.846 3.846 0 0 1-.27-.293c-.066-.082-.101-.144-.101-.176 0-.105.098-.378.262-.753.16-.372.386-.848.644-1.356.258-.508.547-1.05.828-1.562a24.735 24.735 0 0 1 1.582-2.508c.262-.371.543-.746.871-1.16.329-.418.7-.871 1.149-1.407.45-.535.973-1.144 1.601-1.87.235-.27.536-.614.875-1.005.336-.394.715-.832 1.114-1.293.394-.46.808-.937 1.215-1.41.402-.472.8-.933 1.168-1.363l.668-.777.668-.774.667-.777.665-.778.117.118.113.12.117.118.113.117a110.75 110.75 0 0 1 1.668 1.914l1.555 1.809c.57.664 1.184 1.383 1.813 2.12M51.227 44.149c.425.09.867.2 1.304.317.434.117.864.242 1.254.37.395.13.754.259 1.055.38.297.12.535.234.687.332.051.035.09.094.11.191.02.098.023.239.011.442-.015.199-.046.457-.097.793-.055.336-.125.75-.215 1.257-.094.524-.172.989-.23 1.446-.06.457-.106.91-.137 1.41a32.68 32.68 0 0 0-.067 1.7c-.011.648-.015 1.401-.015 2.312 0 .98.004 1.761.015 2.414.012.648.035 1.172.07 1.644.04.473.09.89.165 1.336.07.446.164.918.285 1.488.074.348.156.72.242 1.094.082.375.168.754.254 1.11.086.359.168.695.242.992.074.3.14.554.195.75.055.195.102.383.149.554.043.172.082.329.113.461.031.13.059.239.07.317.016.078.02.125.012.133a.942.942 0 0 1-.183-.079 35.955 35.955 0 0 1-1.148-.629c-.255-.144-.532-.304-.821-.472a95.651 95.651 0 0 0-2.031-1.152 44.616 44.616 0 0 0-1.723-.899 34 34 0 0 0-1.633-.75 44.224 44.224 0 0 0-1.762-.715 50.86 50.86 0 0 0-2.855-1.004 45.68 45.68 0 0 0-2.8-.793 39.106 39.106 0 0 0-2.653-.562 26.924 26.924 0 0 0-2.406-.309l-.426-.03-.426-.036-.426-.031-.426-.035V43.758h7.215c1.578.004 2.832.008 3.852.015 1.02.012 1.8.028 2.437.055a20.37 20.37 0 0 1 1.547.117c.43.051.797.117 1.196.203m64.886 7.493c0 1.23-.008 2.34-.015 3.312-.008.977-.02 1.817-.04 2.504-.015.691-.038 1.23-.062 1.602-.023.367-.05.57-.082.59a1.259 1.259 0 0 1-.281.07c-.153.031-.367.062-.617.101-.254.035-.547.078-.868.117-.32.043-.664.083-1.02.122-.765.086-1.538.199-2.323.343-.79.141-1.59.313-2.407.516-.816.203-1.652.434-2.503.7-.856.26-1.73.558-2.625.882-.735.266-1.305.477-1.801.672-.496.195-.918.375-1.348.578-.43.203-.867.43-1.398.723-.528.289-1.149.644-1.946 1.101a34.54 34.54 0 0 1-1.644.895 9.035 9.035 0 0 1-.528.242c-.128.055-.21.074-.226.059-.016-.016-.02-.082-.012-.184a5.49 5.49 0 0 1 .055-.422c.031-.172.066-.371.113-.59.043-.219.098-.457.156-.699.258-1.082.454-1.906.602-2.613.152-.703.258-1.282.332-1.867.078-.583.125-1.172.156-1.895.035-.723.059-1.578.086-2.695.024-.98.04-1.77.043-2.434.004-.66-.004-1.2-.027-1.684a17.76 17.76 0 0 0-.113-1.355 29.95 29.95 0 0 0-.223-1.445c-.152-.887-.27-1.543-.336-2.035-.066-.493-.086-.825-.04-1.059a.664.664 0 0 1 .333-.492c.18-.117.437-.207.781-.336.692-.266 1.29-.469 1.926-.63.637-.16 1.309-.276 2.152-.358.84-.082 1.852-.133 3.164-.16 1.309-.032 2.922-.044 4.965-.047l3.813-.008h1.902l1.906-.004v7.883m-25.05-2.368c.195 1.02.343 1.977.437 2.91.098.934.14 1.837.133 2.75a25.621 25.621 0 0 1-.18 2.797c-.11.961-.273 1.961-.488 3.036a39.395 39.395 0 0 1-.746 3.12 31.161 31.161 0 0 1-.946 2.829c-.355.906-.75 1.781-1.187 2.64a30.9 30.9 0 0 1-1.473 2.555c-.215.34-.597.86-1.074 1.469a76.18 76.18 0 0 1-1.625 2.012 79.82 79.82 0 0 1-1.73 2.011 30.987 30.987 0 0 1-1.387 1.489l-.258.25-.262.254-.257.253-.262.254.02-1.62.023-1.622.02-1.617.019-1.621c.02-1.414.035-2.543.058-3.465.02-.922.047-1.637.082-2.227.036-.59.082-1.054.141-1.472.059-.422.133-.797.227-1.211a38.117 38.117 0 0 1 1.086-3.91c.418-1.235.89-2.403 1.433-3.524a28.68 28.68 0 0 1 1.82-3.222 31.184 31.184 0 0 1 2.258-3.012 18.08 18.08 0 0 1 1.012-1.086c.367-.363.746-.715 1.106-1.023.355-.31.69-.575.964-.762.27-.188.48-.297.59-.297.035 0 .07.031.11.086.039.05.078.129.12.226a4.214 4.214 0 0 1 .216.75m-28.895.91c.914.915 1.738 1.86 2.488 2.86a25.52 25.52 0 0 1 2.028 3.187 30.027 30.027 0 0 1 1.636 3.645 42.64 42.64 0 0 1 1.32 4.23c.122.485.22.872.294 1.274.074.406.125.832.164 1.387.043.554.07 1.242.09 2.171.023.934.039 2.11.058 3.645.02 1.441.035 2.566.04 3.438.003.87 0 1.488-.016 1.921-.016.434-.043.68-.086.813-.04.129-.094.14-.16.101-.106-.058-.376-.324-.743-.722-.367-.399-.84-.926-1.34-1.512a82.643 82.643 0 0 1-1.539-1.832 48.185 48.185 0 0 1-1.34-1.695c-.34-.45-.722-1.031-1.117-1.688a40.534 40.534 0 0 1-1.183-2.125 43.623 43.623 0 0 1-1.075-2.207 21.82 21.82 0 0 1-.773-1.933c-.07-.215-.152-.477-.238-.762-.082-.29-.172-.602-.258-.922a49.961 49.961 0 0 1-.461-1.844c-.187-.86-.316-2.113-.395-3.508a62.606 62.606 0 0 1-.066-4.378c.027-1.434.106-2.762.227-3.735.12-.969.285-1.578.492-1.578.023 0 .097.05.21.14.11.09.259.22.438.38a44.358 44.358 0 0 1 1.305 1.25m53.23 15.39a24.897 24.897 0 0 1-.965 4.492 26.72 26.72 0 0 1-.824 2.25 33.11 33.11 0 0 1-1.058 2.305c-.344.676-.66 1.262-.98 1.805-.321.543-.641 1.035-.997 1.523-.351.485-.734.961-1.18 1.473-.445.508-.953 1.05-1.542 1.66a35.204 35.204 0 0 1-1.579 1.54c-.496.448-.976.847-1.468 1.21-.493.367-1 .703-1.551 1.031-.55.328-1.145.649-1.817.989-.84.421-1.624.761-2.445 1.03a15.58 15.58 0 0 1-2.683.626c-1.004.152-2.145.25-3.532.308-1.382.063-3.011.082-4.98.082H82.18l.03-.113.036-.113.031-.113.035-.114c.055-.199.243-.582.516-1.074.274-.496.633-1.101 1.027-1.746.399-.645.836-1.324 1.266-1.969.43-.644.852-1.25 1.219-1.746a44.604 44.604 0 0 1 5.883-6.445 41.569 41.569 0 0 1 6.812-4.977 38.048 38.048 0 0 1 7.477-3.36 34.711 34.711 0 0 1 7.886-1.585c.11-.008.22-.02.325-.027.105-.008.203-.02.293-.028.09-.008.164-.02.226-.023.063-.008.106-.016.13-.02.023-.004.038.024.05.078a.934.934 0 0 1 .023.239c.004.101 0 .226-.007.363-.008.137-.02.29-.04.45M30.934 66.89c.242 1.234.562 2.488.945 3.738a41.182 41.182 0 0 0 1.32 3.68 37.438 37.438 0 0 0 1.61 3.425 27.185 27.185 0 0 0 1.816 2.961c.45.633.992 1.313 1.594 2.004a38.232 38.232 0 0 0 1.949 2.074c.687.68 1.395 1.34 2.098 1.942.699.597 1.39 1.144 2.03 1.597.298.208.575.407.825.59.25.184.469.352.649.496.18.141.32.258.41.344.09.082.129.133.105.14-.066.028-.328-.038-.71-.167-.384-.13-.891-.324-1.458-.555a48.612 48.612 0 0 1-1.812-.777 38.066 38.066 0 0 1-7.352-4.297 42.01 42.01 0 0 1-5.043-4.422 44.733 44.733 0 0 1-4.37-5.254 45.026 45.026 0 0 1-3.575-5.941c-.125-.258-.25-.504-.356-.735-.109-.226-.207-.433-.285-.609-.078-.176-.14-.32-.18-.422-.042-.101-.058-.164-.05-.172.008-.008.062-.031.148-.066.09-.035.211-.082.36-.137.144-.05.32-.113.507-.18l.614-.21c.433-.145.988-.297 1.593-.446a39.578 39.578 0 0 1 3.805-.73c.574-.078 1.07-.125 1.434-.133l.23-.004.235-.004.23-.004.234-.004.114.57.109.57.113.567.114.57m8.199-1.87c1.383.238 2.8.59 4.226 1.039 1.426.449 2.856 1 4.27 1.636a42.064 42.064 0 0 1 4.16 2.164c1.348.801 2.648 1.68 3.879 2.621.41.317.95.778 1.547 1.32a69.069 69.069 0 0 1 1.914 1.805c.652.641 1.3 1.293 1.871 1.899a31.34 31.34 0 0 1 1.422 1.586 46.416 46.416 0 0 1 1.726 2.27c.57.796 1.125 1.613 1.622 2.39.5.781.94 1.52 1.285 2.152.343.637.593 1.172.71 1.543l.032.114.035.113.04.113.03.113h-5.511c-1.918 0-3.48-.02-4.801-.078-1.324-.058-2.41-.156-3.371-.312a15.68 15.68 0 0 1-2.63-.653c-.831-.289-1.651-.652-2.581-1.109a20.527 20.527 0 0 1-3.137-1.926 24.776 24.776 0 0 1-2.902-2.523 26.07 26.07 0 0 1-2.528-2.988 24.005 24.005 0 0 1-2.011-3.305 35.404 35.404 0 0 1-1.192-2.649 38.321 38.321 0 0 1-.968-2.66 25.394 25.394 0 0 1-.645-2.39c-.156-.72-.238-1.348-.238-1.832 0-.211 0-.371.011-.489.012-.12.032-.203.079-.257.043-.055.105-.082.203-.098.093-.016.222-.016.39-.016.094 0 .25.012.453.032.204.023.454.05.73.09.278.035.583.078.903.128.32.047.653.102.977.157m84.953.085c.336.06.809.168 1.336.297.523.13 1.101.282 1.64.434.543.152 1.051.305 1.43.43.387.125.649.222.7.273.027.023-.028.184-.149.45-.121.265-.3.632-.527 1.062-.223.433-.493.93-.79 1.457a56.9 56.9 0 0 1-.937 1.633 44.31 44.31 0 0 1-3.473 5.027 46.345 46.345 0 0 1-4.12 4.531 43.203 43.203 0 0 1-4.571 3.848 34.726 34.726 0 0 1-4.82 2.969 42.898 42.898 0 0 1-3.02 1.367c-.469.191-.89.351-1.207.457-.32.105-.535.156-.598.137-.027-.012.004-.055.079-.133.074-.074.195-.18.351-.309.153-.129.348-.281.563-.445.218-.164.465-.344.722-.531a31.987 31.987 0 0 0 3.067-2.473 30.025 30.025 0 0 0 4.992-5.887 32.018 32.018 0 0 0 1.953-3.441c.398-.809.75-1.57 1.059-2.309a30.121 30.121 0 0 0 1.48-4.39c.188-.758.363-1.547.52-2.391l.109-.59.113-.586.11-.59.109-.586h1.133c.156 0 .347.008.566.024.215.012.457.035.703.062a20.21 20.21 0 0 1 1.477.203m-79.191 55.711c.363.23.671.555.917.934.247.379.426.816.536 1.273.109.457.148.938.105 1.407a3.61 3.61 0 0 1-.371 1.336c-.156.304-.332.57-.539.808a3.303 3.303 0 0 1-1.512.996 4.104 4.104 0 0 1-.965.184 4.468 4.468 0 0 1-1.03-.043 3.427 3.427 0 0 1-1.719-.805 4.434 4.434 0 0 1-.696-.77 3.378 3.378 0 0 1-.555-1.284 4.203 4.203 0 0 1-.046-1.434c.066-.48.21-.945.43-1.36.214-.413.507-.78.87-1.058a3.654 3.654 0 0 1 1.059-.555c.383-.132.789-.207 1.2-.222.41-.02.82.023 1.214.12.39.102.766.259 1.102.473m64.375-.195c.175.086.37.23.574.406.199.176.402.38.586.598.187.215.36.438.492.652.133.211.226.407.266.567.019.07.035.168.042.285.012.113.02.25.024.398.004.145 0 .301-.004.457a8.875 8.875 0 0 1-.023.461 3.545 3.545 0 0 1-.774 1.953 3.866 3.866 0 0 1-3.625 1.368 3.584 3.584 0 0 1-1.883-.95 4.289 4.289 0 0 1-.55-.609 2.827 2.827 0 0 1-.352-.637 3.475 3.475 0 0 1-.188-.746 6.793 6.793 0 0 1-.054-.941c0-.352.027-.672.082-.961.05-.293.137-.555.25-.797.117-.242.265-.465.449-.676.188-.21.406-.41.668-.601.25-.188.547-.328.879-.434a4.168 4.168 0 0 1 1.05-.187c.364-.024.735 0 1.09.066.36.062.7.176 1 .328m-31.93.473c.177.125.368.328.556.57.183.242.367.531.527.824.16.293.297.598.394.88a2.5 2.5 0 0 1 .16.737c0 .258-.074.567-.206.895a5.551 5.551 0 0 1-.54.996 6 6 0 0 1-.742.906c-.265.27-.547.489-.816.63a2.93 2.93 0 0 1-1.024.3 3.709 3.709 0 0 1-1.117-.047 3.928 3.928 0 0 1-1.066-.37 3.194 3.194 0 0 1-.871-.669 4.034 4.034 0 0 1-.68-1.012 4.028 4.028 0 0 1-.355-1.12 3.802 3.802 0 0 1-.012-1.153 3.5 3.5 0 0 1 .344-1.094c.187-.363.375-.664.586-.91.21-.242.441-.43.71-.57.266-.14.57-.23.922-.282a6.496 6.496 0 0 1 1.239-.046c.254.011.472.027.664.046.195.024.363.055.515.098a2.284 2.284 0 0 1 .813.39"/></svg>%0A';
944
-
945
- // src/primitives/BrandMark.tsx
946
- import { jsx as jsx7 } from "react/jsx-runtime";
947
- var mask = (url) => ({
948
- WebkitMask: `url('${url}') center / contain no-repeat`,
949
- mask: `url('${url}') center / contain no-repeat`
950
- });
951
- var MASKS = { mark: mask(mark_default), lockup: mask(lockup_horizontal_default) };
952
- function BrandMark({ variant = "mark", className }) {
953
- return /* @__PURE__ */ jsx7(
954
- "span",
955
- {
956
- "aria-hidden": "true",
957
- className: cn(
958
- "polli:block polli:shrink-0 polli:bg-current",
959
- className
960
- ),
961
- style: MASKS[variant]
962
- }
963
- );
964
- }
1
+ import {
2
+ Alert,
3
+ ColorModeToggle,
4
+ Dialog,
5
+ DialogBody,
6
+ DialogDescription,
7
+ DialogFooter,
8
+ DialogHeader,
9
+ DialogTitle,
10
+ LoadingStatus,
11
+ Surface,
12
+ Switch,
13
+ setColorMode,
14
+ useColorMode
15
+ } from "./chunk-QFR7XRUE.js";
16
+ import {
17
+ AccountIdentity,
18
+ AccountIdentityLink,
19
+ AccountMenu,
20
+ BrandMark,
21
+ DropdownItem
22
+ } from "./chunk-7WXDUAJU.js";
23
+ import {
24
+ TabButton
25
+ } from "./chunk-ZLD4VLUG.js";
26
+ import {
27
+ ScrollArea
28
+ } from "./chunk-7XDOOFTL.js";
29
+ import {
30
+ ChevronIcon,
31
+ Dropdown
32
+ } from "./chunk-DD7MHUFD.js";
33
+ import {
34
+ Chip
35
+ } from "./chunk-3VM5R3OI.js";
36
+ import {
37
+ CodeBlock,
38
+ CopyButton,
39
+ Tooltip
40
+ } from "./chunk-QAR2WP3L.js";
41
+ import {
42
+ Heading,
43
+ Text
44
+ } from "./chunk-TVPFAM3B.js";
45
+ import {
46
+ Button
47
+ } from "./chunk-7GDUPN6U.js";
48
+ import {
49
+ InlineLink,
50
+ isExternalHref
51
+ } from "./chunk-IX6BJNHM.js";
52
+ import {
53
+ AccountIcon,
54
+ AppIcon,
55
+ ArrowLeftIcon,
56
+ ArrowRightIcon,
57
+ AudioIcon,
58
+ BeakerIcon,
59
+ BookIcon,
60
+ BotIcon,
61
+ BugIcon,
62
+ CardIcon,
63
+ ChatIcon,
64
+ CheckIcon,
65
+ ClipboardIcon,
66
+ ClockIcon,
67
+ CloudUploadIcon,
68
+ CodeIcon,
69
+ CubeIcon,
70
+ DatabaseIcon,
71
+ DiscordIcon,
72
+ DownloadIcon,
73
+ EarningsIcon,
74
+ ExpandIcon,
75
+ ExternalLinkIcon,
76
+ EyeIcon,
77
+ EyeOffIcon,
78
+ GenApiIcon,
79
+ GitBranchIcon,
80
+ GitHubIcon,
81
+ GitPullRequestIcon,
82
+ GlobeIcon,
83
+ GraduationCapIcon,
84
+ ImageIcon,
85
+ InstagramIcon,
86
+ KeyIcon,
87
+ LinkedInIcon,
88
+ LockIcon,
89
+ LogInIcon,
90
+ LogOutIcon,
91
+ MailIcon,
92
+ McpIcon,
93
+ MegaphoneIcon,
94
+ MenuIcon,
95
+ MicIcon,
96
+ MoonIcon,
97
+ NewspaperIcon,
98
+ PauseIcon,
99
+ PencilIcon,
100
+ PlayIcon,
101
+ PlusIcon,
102
+ PowerIcon,
103
+ ReasoningIcon,
104
+ ReceiptIcon,
105
+ RefreshIcon,
106
+ RobotIcon,
107
+ RocketIcon,
108
+ SearchIcon,
109
+ SignOutIcon,
110
+ SparkleIcon,
111
+ SparklesIcon,
112
+ SpeakerIcon,
113
+ SproutIcon,
114
+ StarIcon,
115
+ SunIcon,
116
+ TargetIcon,
117
+ TerminalIcon,
118
+ TokensIcon,
119
+ ToolIcon,
120
+ TrashIcon,
121
+ TrendUpIcon,
122
+ UsageIcon,
123
+ VideoIcon,
124
+ WalletIcon,
125
+ WarningIcon,
126
+ XIcon,
127
+ XSocialIcon
128
+ } from "./chunk-K2H3JFQK.js";
129
+ import {
130
+ cn
131
+ } from "./chunk-LKUZU37X.js";
965
132
 
966
133
  // src/compositions/AppBrand.tsx
967
- import { jsx as jsx8, jsxs as jsxs5 } from "react/jsx-runtime";
134
+ import { jsx, jsxs } from "react/jsx-runtime";
968
135
  function AppBrand({
969
136
  appName,
970
137
  href = "/",
971
138
  size = "md",
972
139
  className
973
140
  }) {
974
- return /* @__PURE__ */ jsxs5(
141
+ return /* @__PURE__ */ jsxs(
975
142
  "a",
976
143
  {
977
144
  href,
@@ -981,13 +148,13 @@ function AppBrand({
981
148
  className
982
149
  ),
983
150
  children: [
984
- /* @__PURE__ */ jsx8(
151
+ /* @__PURE__ */ jsx(
985
152
  BrandMark,
986
153
  {
987
154
  className: size === "md" ? "polli:h-8 polli:w-8" : "polli:h-7 polli:w-7"
988
155
  }
989
156
  ),
990
- /* @__PURE__ */ jsx8(
157
+ /* @__PURE__ */ jsx(
991
158
  "span",
992
159
  {
993
160
  className: cn(
@@ -1003,8 +170,8 @@ function AppBrand({
1003
170
  }
1004
171
 
1005
172
  // src/compositions/AppHeader.tsx
1006
- import { useEffect, useState as useState2 } from "react";
1007
- import { jsx as jsx9, jsxs as jsxs6 } from "react/jsx-runtime";
173
+ import { useEffect, useState } from "react";
174
+ import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
1008
175
  function scrollTopFor(target) {
1009
176
  return target === window ? window.scrollY : target.scrollTop;
1010
177
  }
@@ -1020,7 +187,7 @@ function AppHeader({
1020
187
  innerClassName,
1021
188
  navClassName
1022
189
  }) {
1023
- const [hidden, setHidden] = useState2(false);
190
+ const [hidden, setHidden] = useState(false);
1024
191
  useEffect(() => {
1025
192
  if (!autoHide || typeof window === "undefined") {
1026
193
  setHidden(false);
@@ -1051,7 +218,7 @@ function AppHeader({
1051
218
  target.removeEventListener("scroll", handleScroll);
1052
219
  };
1053
220
  }, [autoHide, scrollTargetRef]);
1054
- return /* @__PURE__ */ jsx9(
221
+ return /* @__PURE__ */ jsx2(
1055
222
  "header",
1056
223
  {
1057
224
  className: cn(
@@ -1062,7 +229,7 @@ function AppHeader({
1062
229
  className
1063
230
  ),
1064
231
  onFocusCapture: () => setHidden(false),
1065
- children: /* @__PURE__ */ jsxs6(
232
+ children: /* @__PURE__ */ jsxs2(
1066
233
  "div",
1067
234
  {
1068
235
  className: cn(
@@ -1070,7 +237,7 @@ function AppHeader({
1070
237
  innerClassName
1071
238
  ),
1072
239
  children: [
1073
- appName ? /* @__PURE__ */ jsx9(AppBrand, { appName, href: brandHref }) : /* @__PURE__ */ jsxs6(
240
+ appName ? /* @__PURE__ */ jsx2(AppBrand, { appName, href: brandHref }) : /* @__PURE__ */ jsxs2(
1074
241
  "a",
1075
242
  {
1076
243
  href: brandHref ?? "https://pollinations.ai",
@@ -1078,8 +245,8 @@ function AppHeader({
1078
245
  rel: "noopener noreferrer",
1079
246
  className: "polli:inline-flex polli:shrink-0 polli:items-center polli:text-theme-text-strong",
1080
247
  children: [
1081
- /* @__PURE__ */ jsx9("span", { className: "polli:sr-only", children: brandLabel }),
1082
- /* @__PURE__ */ jsx9(
248
+ /* @__PURE__ */ jsx2("span", { className: "polli:sr-only", children: brandLabel }),
249
+ /* @__PURE__ */ jsx2(
1083
250
  BrandMark,
1084
251
  {
1085
252
  variant: "lockup",
@@ -1089,7 +256,7 @@ function AppHeader({
1089
256
  ]
1090
257
  }
1091
258
  ),
1092
- children ? /* @__PURE__ */ jsx9(
259
+ children ? /* @__PURE__ */ jsx2(
1093
260
  "nav",
1094
261
  {
1095
262
  "aria-label": navLabel,
@@ -1107,35 +274,8 @@ function AppHeader({
1107
274
  );
1108
275
  }
1109
276
 
1110
- // src/primitives/Surface.tsx
1111
- import { jsx as jsx10 } from "react/jsx-runtime";
1112
- var variantClasses = {
1113
- // Phones get tighter padding (and a matching radius) so nested cards keep
1114
- // their width; from `sm` up the page has room for the full spacing.
1115
- panel: "polli:rounded-3xl polli:bg-surface-block polli:p-4 polli:sm:rounded-block polli:sm:p-7",
1116
- card: "polli-surface-card polli:rounded-card polli:bg-surface-opaque polli:p-3.5 polli:sm:p-4",
1117
- "card-themed": "polli:rounded-card polli:bg-theme-bg-pale polli:p-3.5 polli:sm:p-4"
1118
- };
1119
- function Surface({
1120
- as,
1121
- variant = "card",
1122
- className,
1123
- children,
1124
- ...rest
1125
- }) {
1126
- const Component = as || "div";
1127
- return /* @__PURE__ */ jsx10(
1128
- Component,
1129
- {
1130
- ...rest,
1131
- className: cn("polli:min-w-0", variantClasses[variant], className),
1132
- children
1133
- }
1134
- );
1135
- }
1136
-
1137
277
  // src/compositions/Callout.tsx
1138
- import { jsx as jsx11, jsxs as jsxs7 } from "react/jsx-runtime";
278
+ import { jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
1139
279
  function Callout({
1140
280
  title,
1141
281
  body,
@@ -1143,7 +283,7 @@ function Callout({
1143
283
  tone = "theme",
1144
284
  className
1145
285
  }) {
1146
- return /* @__PURE__ */ jsxs7(
286
+ return /* @__PURE__ */ jsxs3(
1147
287
  Surface,
1148
288
  {
1149
289
  as: "section",
@@ -1154,8 +294,8 @@ function Callout({
1154
294
  className
1155
295
  ),
1156
296
  children: [
1157
- /* @__PURE__ */ jsxs7("div", { className: "polli:flex polli:max-w-lg polli:flex-col polli:gap-2.5", children: [
1158
- /* @__PURE__ */ jsx11(
297
+ /* @__PURE__ */ jsxs3("div", { className: "polli:flex polli:max-w-lg polli:flex-col polli:gap-2.5", children: [
298
+ /* @__PURE__ */ jsx3(
1159
299
  Heading,
1160
300
  {
1161
301
  size: "section",
@@ -1163,9 +303,9 @@ function Callout({
1163
303
  children: title
1164
304
  }
1165
305
  ),
1166
- /* @__PURE__ */ jsx11(Text, { className: "polli:text-theme-text-strong/75", children: body })
306
+ /* @__PURE__ */ jsx3(Text, { className: "polli:text-theme-text-strong/75", children: body })
1167
307
  ] }),
1168
- /* @__PURE__ */ jsx11("div", { className: "polli:flex polli:flex-wrap polli:items-center polli:gap-3", children })
308
+ /* @__PURE__ */ jsx3("div", { className: "polli:flex polli:flex-wrap polli:items-center polli:gap-3", children })
1169
309
  ]
1170
310
  }
1171
311
  );
@@ -1173,109 +313,10 @@ function Callout({
1173
313
 
1174
314
  // src/compositions/ChatConversation.tsx
1175
315
  import {
1176
- forwardRef as forwardRef2
1177
- } from "react";
1178
-
1179
- // src/primitives/ScrollArea.tsx
1180
- import {
1181
- forwardRef,
1182
- useCallback,
1183
- useEffect as useEffect2,
1184
- useRef
316
+ forwardRef
1185
317
  } from "react";
1186
- import { jsx as jsx12 } from "react/jsx-runtime";
1187
- var axisClasses = {
1188
- y: "polli:overflow-y-auto polli:overflow-x-hidden",
1189
- x: "polli:overflow-x-auto polli:overflow-y-hidden",
1190
- both: "polli:overflow-auto"
1191
- };
1192
- function assignRef(ref, value) {
1193
- if (typeof ref === "function") ref(value);
1194
- else if (ref) ref.current = value;
1195
- }
1196
- var ScrollArea = forwardRef(
1197
- ({ axis = "y", scrollbar = "subtle", className, children, ...rest }, externalRef) => {
1198
- const innerRef = useRef(null);
1199
- const setRef = useCallback(
1200
- (node) => {
1201
- innerRef.current = node;
1202
- assignRef(externalRef, node);
1203
- },
1204
- [externalRef]
1205
- );
1206
- useEffect2(() => {
1207
- if (scrollbar === "native") return;
1208
- const element = innerRef.current;
1209
- if (!element) return;
1210
- let hideTimer = null;
1211
- const clearHideTimer = () => {
1212
- if (hideTimer !== null) {
1213
- window.clearTimeout(hideTimer);
1214
- hideTimer = null;
1215
- }
1216
- };
1217
- const show = () => {
1218
- element.dataset.scrollbarActive = "true";
1219
- clearHideTimer();
1220
- };
1221
- const hide = () => {
1222
- element.dataset.scrollbarActive = "false";
1223
- clearHideTimer();
1224
- };
1225
- const scheduleHide = () => {
1226
- clearHideTimer();
1227
- hideTimer = window.setTimeout(hide, 2e3);
1228
- };
1229
- const handleInteraction = () => {
1230
- show();
1231
- scheduleHide();
1232
- };
1233
- hide();
1234
- element.addEventListener("scroll", handleInteraction, {
1235
- passive: true
1236
- });
1237
- element.addEventListener("wheel", handleInteraction, {
1238
- passive: true
1239
- });
1240
- element.addEventListener("touchstart", handleInteraction, {
1241
- passive: true
1242
- });
1243
- element.addEventListener("pointerdown", handleInteraction);
1244
- element.addEventListener("keydown", handleInteraction);
1245
- element.addEventListener("focusin", handleInteraction);
1246
- element.addEventListener("focusout", scheduleHide);
1247
- return () => {
1248
- clearHideTimer();
1249
- element.removeEventListener("scroll", handleInteraction);
1250
- element.removeEventListener("wheel", handleInteraction);
1251
- element.removeEventListener("touchstart", handleInteraction);
1252
- element.removeEventListener("pointerdown", handleInteraction);
1253
- element.removeEventListener("keydown", handleInteraction);
1254
- element.removeEventListener("focusin", handleInteraction);
1255
- element.removeEventListener("focusout", scheduleHide);
1256
- };
1257
- }, [scrollbar]);
1258
- return /* @__PURE__ */ jsx12(
1259
- "div",
1260
- {
1261
- ...rest,
1262
- ref: setRef,
1263
- className: cn(
1264
- scrollbar === "subtle" && "polli-scrollbar-subtle",
1265
- "polli:min-w-0 polli:max-w-full",
1266
- axisClasses[axis],
1267
- className
1268
- ),
1269
- children
1270
- }
1271
- );
1272
- }
1273
- );
1274
- ScrollArea.displayName = "ScrollArea";
1275
-
1276
- // src/compositions/ChatConversation.tsx
1277
- import { jsx as jsx13, jsxs as jsxs8 } from "react/jsx-runtime";
1278
- var ChatConversation = forwardRef2(
318
+ import { jsx as jsx4, jsxs as jsxs4 } from "react/jsx-runtime";
319
+ var ChatConversation = forwardRef(
1279
320
  ({
1280
321
  children,
1281
322
  className,
@@ -1284,8 +325,8 @@ var ChatConversation = forwardRef2(
1284
325
  onScrollToBottom,
1285
326
  scrollButtonLabel = "Scroll to latest message",
1286
327
  ...viewportProps
1287
- }, ref) => /* @__PURE__ */ jsxs8("div", { className: cn("polli:relative polli:min-h-0", className), children: [
1288
- /* @__PURE__ */ jsx13(
328
+ }, ref) => /* @__PURE__ */ jsxs4("div", { className: cn("polli:relative polli:min-h-0", className), children: [
329
+ /* @__PURE__ */ jsx4(
1289
330
  ScrollArea,
1290
331
  {
1291
332
  ...viewportProps,
@@ -1294,7 +335,7 @@ var ChatConversation = forwardRef2(
1294
335
  children
1295
336
  }
1296
337
  ),
1297
- showScrollButton && onScrollToBottom && /* @__PURE__ */ jsx13(
338
+ showScrollButton && onScrollToBottom && /* @__PURE__ */ jsx4(
1298
339
  "button",
1299
340
  {
1300
341
  type: "button",
@@ -1302,7 +343,7 @@ var ChatConversation = forwardRef2(
1302
343
  title: scrollButtonLabel,
1303
344
  onClick: onScrollToBottom,
1304
345
  className: "polli-control polli:absolute polli:bottom-3 polli:left-1/2 polli:flex polli:size-9 polli:-translate-x-1/2 polli:cursor-pointer polli:items-center polli:justify-center polli:rounded-full polli:border polli:border-theme-border/60 polli:bg-surface-opaque polli:text-theme-text-strong polli:transition-transform polli:hover:translate-y-0.5",
1305
- children: /* @__PURE__ */ jsx13(ArrowRightIcon, { className: "polli:size-4 polli:rotate-90" })
346
+ children: /* @__PURE__ */ jsx4(ArrowRightIcon, { className: "polli:size-4 polli:rotate-90" })
1306
347
  }
1307
348
  )
1308
349
  ] })
@@ -1312,7 +353,7 @@ function ChatConversationContent({
1312
353
  className,
1313
354
  ...props
1314
355
  }) {
1315
- return /* @__PURE__ */ jsx13(
356
+ return /* @__PURE__ */ jsx4(
1316
357
  "div",
1317
358
  {
1318
359
  className: cn(
@@ -1325,14 +366,14 @@ function ChatConversationContent({
1325
366
  }
1326
367
 
1327
368
  // src/compositions/ChatMessage.tsx
1328
- import { jsx as jsx14, jsxs as jsxs9 } from "react/jsx-runtime";
369
+ import { jsx as jsx5, jsxs as jsxs5 } from "react/jsx-runtime";
1329
370
  function ChatMessage({
1330
371
  from,
1331
372
  className,
1332
373
  children,
1333
374
  ...props
1334
375
  }) {
1335
- return /* @__PURE__ */ jsx14(
376
+ return /* @__PURE__ */ jsx5(
1336
377
  "article",
1337
378
  {
1338
379
  "data-role": from,
@@ -1354,7 +395,7 @@ function ChatMessageHeader({
1354
395
  ...props
1355
396
  }) {
1356
397
  const content = label ?? (from === "user" ? "You" : from === "assistant" ? "Agent" : "System");
1357
- return /* @__PURE__ */ jsxs9(
398
+ return /* @__PURE__ */ jsxs5(
1358
399
  "header",
1359
400
  {
1360
401
  className: cn(
@@ -1362,584 +403,134 @@ function ChatMessageHeader({
1362
403
  className
1363
404
  ),
1364
405
  ...props,
1365
- children: [
1366
- from === "assistant" && (icon ?? /* @__PURE__ */ jsx14("span", { className: "polli:flex polli:size-6 polli:items-center polli:justify-center polli:rounded-full polli:bg-theme-bg-active polli:text-theme-text-strong", children: /* @__PURE__ */ jsx14(RobotIcon, { className: "polli:size-3.5" }) })),
1367
- /* @__PURE__ */ jsx14(
1368
- Text,
1369
- {
1370
- as: "span",
1371
- size: "xs",
1372
- tone: "muted",
1373
- weight: "bold",
1374
- className: "polli:uppercase polli:tracking-wide",
1375
- children: content
1376
- }
1377
- )
1378
- ]
1379
- }
1380
- );
1381
- }
1382
- function ChatMessageContent({
1383
- className,
1384
- ...props
1385
- }) {
1386
- return /* @__PURE__ */ jsx14(
1387
- "div",
1388
- {
1389
- className: cn(
1390
- "polli:min-w-0 polli:[&_pre]:max-w-full polli:[&_pre]:overflow-x-auto polli:[&_table]:max-w-full polli:[&_table]:overflow-x-auto",
1391
- className
1392
- ),
1393
- ...props
1394
- }
1395
- );
1396
- }
1397
- function ChatMessageActions({
1398
- className,
1399
- ...props
1400
- }) {
1401
- return /* @__PURE__ */ jsx14(
1402
- "footer",
1403
- {
1404
- className: cn(
1405
- "polli:flex polli:flex-wrap polli:items-center polli:gap-1 polli:pt-2",
1406
- className
1407
- ),
1408
- ...props
1409
- }
1410
- );
1411
- }
1412
-
1413
- // src/compositions/ChatPromptInput.tsx
1414
- import {
1415
- forwardRef as forwardRef4
1416
- } from "react";
1417
-
1418
- // src/primitives/Textarea.tsx
1419
- import { forwardRef as forwardRef3 } from "react";
1420
- import { jsx as jsx15 } from "react/jsx-runtime";
1421
- var Textarea = forwardRef3(
1422
- ({ className, error, rows = 4, ...props }, ref) => /* @__PURE__ */ jsx15(
1423
- "textarea",
1424
- {
1425
- ref,
1426
- rows,
1427
- "data-error": error ? "true" : void 0,
1428
- className: cn(
1429
- "polli-textarea polli:w-full polli:rounded-lg polli:border polli:px-3 polli:py-2",
1430
- "polli:min-h-20 polli:resize-y polli:font-body polli:text-base",
1431
- "polli:text-theme-text-strong",
1432
- "polli:transition-colors",
1433
- "polli:disabled:opacity-50 polli:disabled:cursor-not-allowed",
1434
- className
1435
- ),
1436
- ...props
1437
- }
1438
- )
1439
- );
1440
- Textarea.displayName = "Textarea";
1441
-
1442
- // src/compositions/ChatPromptInput.tsx
1443
- import { Fragment as Fragment2, jsx as jsx16, jsxs as jsxs10 } from "react/jsx-runtime";
1444
- function ChatPromptInput({ className, ...props }) {
1445
- return /* @__PURE__ */ jsx16(
1446
- "fieldset",
1447
- {
1448
- className: cn("polli:m-0 polli:min-w-0 polli:p-0", className),
1449
- ...props
1450
- }
1451
- );
1452
- }
1453
- var ChatPromptTextarea = forwardRef4(({ className, ...props }, ref) => /* @__PURE__ */ jsx16(
1454
- Textarea,
1455
- {
1456
- ...props,
1457
- ref,
1458
- className: cn("polli:resize-none", className)
1459
- }
1460
- ));
1461
- ChatPromptTextarea.displayName = "ChatPromptTextarea";
1462
- function ChatPromptInputFooter({
1463
- start,
1464
- end,
1465
- children,
1466
- className,
1467
- ...props
1468
- }) {
1469
- return /* @__PURE__ */ jsx16(
1470
- "div",
1471
- {
1472
- className: cn(
1473
- "polli:flex polli:flex-wrap polli:items-end polli:gap-2",
1474
- className
1475
- ),
1476
- ...props,
1477
- children: children ?? /* @__PURE__ */ jsxs10(Fragment2, { children: [
1478
- /* @__PURE__ */ jsx16("div", { className: "polli:flex polli:flex-wrap polli:items-center polli:gap-2", children: start }),
1479
- /* @__PURE__ */ jsx16("div", { className: "polli:ml-auto polli:flex polli:items-center polli:gap-2", children: end })
1480
- ] })
1481
- }
1482
- );
1483
- }
1484
-
1485
- // src/compositions/CopyButton.tsx
1486
- import {
1487
- useEffect as useEffect4,
1488
- useRef as useRef3,
1489
- useState as useState4
1490
- } from "react";
1491
-
1492
- // src/primitives/Button.tsx
1493
- import { jsx as jsx17, jsxs as jsxs11 } from "react/jsx-runtime";
1494
- var pillSizes = {
1495
- icon: "polli:h-12 polli:w-12 polli:p-0",
1496
- xs: "polli:h-5 polli:px-1.5 polli:py-0 polli:text-[11px] polli:leading-none",
1497
- sm: "polli:min-h-7 polli:px-2 polli:pt-0.5 polli:pb-1",
1498
- md: "polli:min-h-9 polli:px-4 polli:pt-1.5 polli:pb-2",
1499
- lg: "polli:min-h-12 polli:px-6 polli:py-3 polli:text-base"
1500
- };
1501
- var raisedSizes = {
1502
- icon: "polli:h-12 polli:w-12 polli:p-0",
1503
- xs: "polli:px-2 polli:py-1 polli:text-xs",
1504
- sm: "polli:px-4 polli:py-2 polli:text-sm",
1505
- md: "polli:px-7 polli:py-3.5 polli:text-base",
1506
- lg: "polli:px-8 polli:py-4 polli:text-lg"
1507
- };
1508
- var appearanceClasses = {
1509
- pill: "polli:rounded-full",
1510
- raised: "polli:rounded-xl polli:border-r-[3px] polli:border-b-[3px] polli:border-solid polli:border-theme-text-strong/20 polli:hover:border-theme-text-strong/45"
1511
- };
1512
- var themeClasses = "polli:bg-theme-bg-active polli:text-theme-text-strong polli:hover:bg-theme-bg-hover polli:hover:text-theme-text-hover polli:transition-colors";
1513
- var outlined = "polli:border polli:border-theme-text-soft polli:bg-theme-bg-active/30 polli:text-theme-text-strong polli:transition-colors polli:[.dark_&]:bg-transparent";
1514
- var intentClasses2 = {
1515
- brand: `${outlined} polli:hover:bg-theme-bg-active/50 polli:[.dark_&]:hover:bg-theme-text-soft/10`,
1516
- commit: `${outlined} polli:hover:border-theme-bg-active polli:hover:bg-theme-bg-active polli:focus-visible:border-theme-bg-active polli:focus-visible:bg-theme-bg-active polli:[.dark_&]:hover:bg-theme-bg-active polli:[.dark_&]:focus-visible:bg-theme-bg-active`,
1517
- danger: "polli:border polli:border-intent-danger-text polli:bg-intent-danger-bg-light polli:text-intent-danger-text polli:hover:bg-intent-danger-bg-hover polli:focus-visible:bg-intent-danger-bg-hover polli:transition-colors polli:[.dark_&]:bg-transparent polli:[.dark_&]:hover:bg-intent-danger-bg-hover polli:[.dark_&]:focus-visible:bg-intent-danger-bg-hover",
1518
- info: "polli:bg-intent-info-bg-light polli:text-intent-info-text polli:hover:bg-intent-info-bg-hover polli:transition-colors",
1519
- // A quiet white pill on the desk, like the colour toggle; hover previews
1520
- // the accent as the ambient button does.
1521
- surface: "polli:bg-surface-opaque polli:text-theme-text-strong polli:hover:bg-theme-bg-hover polli:hover:text-theme-text-hover polli:transition-colors",
1522
- // Secondary actions never take the accent: one step stronger grey on hover.
1523
- neutral: "polli:bg-theme-bg-subtle polli:text-theme-text-base polli:hover:bg-theme-text-muted/25 polli:hover:text-theme-text-strong polli:transition-colors"
1524
- };
1525
- var buttonClasses = ({
1526
- intent,
1527
- appearance = "pill",
1528
- size,
1529
- className,
1530
- disabled,
1531
- busy
1532
- }) => {
1533
- const colorClasses = intent ? intentClasses2[intent] : themeClasses;
1534
- const sizeClasses4 = appearance === "raised" ? raisedSizes : pillSizes;
1535
- return cn(
1536
- "polli-control polli:inline-flex polli:items-center polli:justify-center polli:self-center polli:font-body polli:text-sm polli:font-medium polli:leading-normal polli:box-border polli:border polli:border-transparent",
1537
- // A busy button is working, not unavailable: it keeps its strength.
1538
- busy ? "polli:cursor-progress" : disabled ? "polli:opacity-50 polli:cursor-not-allowed" : "polli:hover:filter polli:hover:brightness-105 polli:cursor-pointer",
1539
- colorClasses,
1540
- appearanceClasses[appearance],
1541
- sizeClasses4[size || "md"],
1542
- className
1543
- );
1544
- };
1545
- function Button({
1546
- as,
1547
- children,
1548
- icon,
1549
- intent,
1550
- appearance,
1551
- size,
1552
- className,
1553
- disabled,
1554
- ...buttonProps
1555
- }) {
1556
- const Component = as || "button";
1557
- const isButton = Component === "button";
1558
- const isAnchor = Component === "a";
1559
- const buttonType = buttonProps.type;
1560
- const onClick = buttonProps.onClick;
1561
- const ariaBusy = buttonProps["aria-busy"];
1562
- const busy = ariaBusy === true || ariaBusy === "true";
1563
- const handleClick = disabled ? (event) => {
1564
- event.preventDefault();
1565
- event.stopPropagation();
1566
- } : onClick;
1567
- return /* @__PURE__ */ jsxs11(
1568
- Component,
1569
- {
1570
- ...buttonProps,
1571
- "data-intent": intent,
1572
- ...isButton ? { type: buttonType ?? "button", disabled } : {},
1573
- ...!isButton && disabled ? { "aria-disabled": true, tabIndex: -1 } : {},
1574
- ...isAnchor && disabled ? { href: void 0 } : {},
1575
- onClick: handleClick,
1576
- className: buttonClasses({
1577
- intent,
1578
- appearance,
1579
- size,
1580
- className,
1581
- disabled,
1582
- busy
1583
- }),
1584
- children: [
1585
- icon && /* @__PURE__ */ jsx17(
1586
- "span",
1587
- {
1588
- "aria-hidden": "true",
1589
- className: "polli:mr-2 polli:flex polli:size-4 polli:shrink-0 polli:[&>svg]:size-full",
1590
- children: busy ? /* @__PURE__ */ jsx17("span", { className: "polli:block polli:size-full polli:animate-spin polli:rounded-full polli:border-2 polli:border-current polli:border-r-transparent polli:motion-reduce:animate-none" }) : icon
1591
- }
1592
- ),
1593
- children
1594
- ]
1595
- }
1596
- );
1597
- }
1598
-
1599
- // src/primitives/Tooltip.tsx
1600
- import {
1601
- useEffect as useEffect3,
1602
- useId as useId3,
1603
- useRef as useRef2,
1604
- useState as useState3
1605
- } from "react";
1606
- import { createPortal } from "react-dom";
1607
- import { Fragment as Fragment3, jsx as jsx18, jsxs as jsxs12 } from "react/jsx-runtime";
1608
- var TOOLTIP_MAX_WIDTH = 288;
1609
- var TOOLTIP_VIEWPORT_MARGIN = 12;
1610
- var Tooltip = ({
1611
- children,
1612
- content,
1613
- align = "start",
1614
- ariaLabel,
1615
- clampToViewport = true,
1616
- className,
1617
- maxWidth = TOOLTIP_MAX_WIDTH,
1618
- onClick,
1619
- stopClickPropagation = true,
1620
- style,
1621
- tapEnabled = false,
1622
- triggerAs = "button",
1623
- displayContents = false
1624
- }) => {
1625
- const [showTooltip, setShowTooltip] = useState3(false);
1626
- const [tooltipPosition, setTooltipPosition] = useState3({
1627
- top: 0,
1628
- left: 0,
1629
- maxWidth
1630
- });
1631
- const triggerRef = useRef2(null);
1632
- const tapPinnedRef = useRef2(false);
1633
- const tooltipId = useId3();
1634
- const closeTooltip = () => {
1635
- tapPinnedRef.current = false;
1636
- setShowTooltip(false);
1637
- };
1638
- useEffect3(() => {
1639
- if (!showTooltip) return;
1640
- const dismissOnOutsideTap = (event) => {
1641
- if (triggerRef.current?.contains(event.target)) return;
1642
- tapPinnedRef.current = false;
1643
- setShowTooltip(false);
1644
- };
1645
- const dismissOnEscape = (event) => {
1646
- if (event.key !== "Escape") return;
1647
- tapPinnedRef.current = false;
1648
- setShowTooltip(false);
1649
- };
1650
- const dismissOnViewportChange = () => {
1651
- tapPinnedRef.current = false;
1652
- setShowTooltip(false);
1653
- };
1654
- document.addEventListener("pointerdown", dismissOnOutsideTap);
1655
- document.addEventListener("keydown", dismissOnEscape);
1656
- window.addEventListener("scroll", dismissOnViewportChange, {
1657
- capture: true,
1658
- passive: true
1659
- });
1660
- window.addEventListener("resize", dismissOnViewportChange);
1661
- return () => {
1662
- document.removeEventListener("pointerdown", dismissOnOutsideTap);
1663
- document.removeEventListener("keydown", dismissOnEscape);
1664
- window.removeEventListener("scroll", dismissOnViewportChange, true);
1665
- window.removeEventListener("resize", dismissOnViewportChange);
1666
- };
1667
- }, [showTooltip]);
1668
- const updateTooltipPosition = () => {
1669
- if (triggerRef.current) {
1670
- const rect = triggerRef.current.getBoundingClientRect();
1671
- const availableMaxWidth = Math.min(
1672
- maxWidth,
1673
- window.innerWidth - TOOLTIP_VIEWPORT_MARGIN * 2
1674
- );
1675
- let left = align === "center" ? rect.left + rect.width / 2 : rect.left;
1676
- let transform = align === "center" ? "translateX(-50%)" : void 0;
1677
- if (clampToViewport) {
1678
- left = Math.min(
1679
- Math.max(rect.left, TOOLTIP_VIEWPORT_MARGIN),
1680
- Math.max(
1681
- TOOLTIP_VIEWPORT_MARGIN,
1682
- window.innerWidth - availableMaxWidth - TOOLTIP_VIEWPORT_MARGIN
1683
- )
1684
- );
1685
- transform = void 0;
1686
- }
1687
- setTooltipPosition({
1688
- top: rect.bottom + 4,
1689
- left,
1690
- maxWidth: availableMaxWidth,
1691
- transform
1692
- });
406
+ children: [
407
+ from === "assistant" && (icon ?? /* @__PURE__ */ jsx5("span", { className: "polli:flex polli:size-6 polli:items-center polli:justify-center polli:rounded-full polli:bg-theme-bg-active polli:text-theme-text-strong", children: /* @__PURE__ */ jsx5(RobotIcon, { className: "polli:size-3.5" }) })),
408
+ /* @__PURE__ */ jsx5(
409
+ Text,
410
+ {
411
+ as: "span",
412
+ size: "xs",
413
+ tone: "muted",
414
+ weight: "bold",
415
+ className: "polli:uppercase polli:tracking-wide",
416
+ children: content
417
+ }
418
+ )
419
+ ]
1693
420
  }
1694
- };
1695
- const isControl = triggerAs === "button" || tapEnabled;
1696
- const triggerClassName = cn(
1697
- isControl && "polli-control",
1698
- "polli:relative polli:cursor-help polli:text-left polli:inline-flex polli:items-center",
1699
- className
1700
421
  );
1701
- const cursorClass = displayContents ? "polli:contents" : "polli:cursor-inherit";
1702
- const popupClasses = "polli:fixed polli:w-max polli:px-2 polli:py-1 polli:bg-surface-menu polli:text-theme-text-base polli:font-normal polli:leading-snug polli:tracking-normal polli:normal-case polli:not-italic polli:text-xs polli:rounded-md polli:shadow-md polli:z-[130] polli:pointer-events-none polli:transition-opacity polli:whitespace-pre-line polli:break-words";
1703
- const popupNode = content ? /* @__PURE__ */ jsx18(
1704
- "span",
1705
- {
1706
- id: tooltipId,
1707
- role: "tooltip",
1708
- "aria-hidden": !showTooltip,
1709
- style: {
1710
- top: tooltipPosition.top,
1711
- left: tooltipPosition.left,
1712
- maxWidth: tooltipPosition.maxWidth,
1713
- transform: tooltipPosition.transform
1714
- },
1715
- className: `${showTooltip ? "polli:visible polli:opacity-100" : "polli:invisible polli:opacity-0"} ${popupClasses}`,
1716
- children: content
1717
- }
1718
- ) : null;
1719
- const tooltipPopup = popupNode && typeof document !== "undefined" ? createPortal(
1720
- popupNode,
1721
- triggerRef.current?.closest('[role="dialog"]') ?? document.body
1722
- ) : popupNode;
1723
- const contentNode = /* @__PURE__ */ jsxs12(Fragment3, { children: [
1724
- /* @__PURE__ */ jsx18("span", { className: cursorClass, children }),
1725
- tooltipPopup
1726
- ] });
1727
- const sharedProps = {
1728
- "aria-label": ariaLabel,
1729
- "aria-describedby": content && showTooltip ? tooltipId : void 0,
1730
- className: triggerClassName,
1731
- onMouseEnter: () => {
1732
- updateTooltipPosition();
1733
- setShowTooltip(true);
1734
- },
1735
- onMouseLeave: () => {
1736
- if (!tapPinnedRef.current) setShowTooltip(false);
1737
- },
1738
- onClick: (e) => {
1739
- if (stopClickPropagation) e.stopPropagation();
1740
- if (onClick) {
1741
- onClick();
1742
- }
1743
- if (!tapEnabled || !content) return;
1744
- updateTooltipPosition();
1745
- if (tapPinnedRef.current) {
1746
- closeTooltip();
1747
- return;
1748
- }
1749
- tapPinnedRef.current = true;
1750
- setShowTooltip(true);
1751
- },
1752
- onFocus: () => {
1753
- updateTooltipPosition();
1754
- setShowTooltip(true);
1755
- },
1756
- onBlur: closeTooltip,
1757
- style
1758
- };
1759
- if (triggerAs === "span") {
1760
- const handleKeyDown = (event) => {
1761
- if (!tapEnabled || !content) return;
1762
- if (event.key !== "Enter" && event.key !== " ") return;
1763
- event.preventDefault();
1764
- updateTooltipPosition();
1765
- if (tapPinnedRef.current) {
1766
- closeTooltip();
1767
- return;
1768
- }
1769
- tapPinnedRef.current = true;
1770
- setShowTooltip(true);
1771
- };
1772
- const spanInteractionProps = {
1773
- ...sharedProps,
1774
- role: tapEnabled && content ? "button" : void 0,
1775
- tabIndex: tapEnabled && content ? 0 : void 0,
1776
- onKeyDown: tapEnabled && content ? handleKeyDown : void 0
1777
- };
1778
- return /* @__PURE__ */ jsx18(
1779
- "span",
1780
- {
1781
- ref: (node) => {
1782
- triggerRef.current = node;
1783
- },
1784
- ...spanInteractionProps,
1785
- children: contentNode
1786
- }
1787
- );
1788
- }
1789
- return /* @__PURE__ */ jsx18(
1790
- "button",
422
+ }
423
+ function ChatMessageContent({
424
+ className,
425
+ ...props
426
+ }) {
427
+ return /* @__PURE__ */ jsx5(
428
+ "div",
1791
429
  {
1792
- ref: (node) => {
1793
- triggerRef.current = node;
1794
- },
1795
- type: "button",
1796
- "aria-label": ariaLabel,
1797
- "aria-describedby": content && showTooltip ? tooltipId : void 0,
1798
- className: triggerClassName,
1799
- onMouseEnter: sharedProps.onMouseEnter,
1800
- onMouseLeave: sharedProps.onMouseLeave,
1801
- onClick: sharedProps.onClick,
1802
- onFocus: sharedProps.onFocus,
1803
- onBlur: sharedProps.onBlur,
1804
- style,
1805
- children: contentNode
430
+ className: cn(
431
+ "polli:min-w-0 polli:[&_pre]:max-w-full polli:[&_pre]:overflow-x-auto polli:[&_table]:max-w-full polli:[&_table]:overflow-x-auto",
432
+ className
433
+ ),
434
+ ...props
1806
435
  }
1807
436
  );
1808
- };
1809
-
1810
- // src/compositions/CopyButton.tsx
1811
- import { jsx as jsx19 } from "react/jsx-runtime";
1812
- function CopyButton({
1813
- value,
1814
- children,
1815
- copiedTimeoutMs = 2e3,
1816
- tooltip = "\u{1F4CB} Click to copy",
1817
- tooltipAlign,
1818
- tooltipClampToViewport,
1819
- tooltipMaxWidth,
1820
- copiedTooltip = "\u2705 Copied!",
1821
- tooltipClassName,
437
+ }
438
+ function ChatMessageActions({
1822
439
  className,
1823
- variant = "plain",
1824
- intent,
1825
- onCopied,
1826
- onCopyError,
1827
- ...buttonProps
440
+ ...props
1828
441
  }) {
1829
- const [copied, setCopied] = useState4(false);
1830
- const timeoutRef = useRef3(null);
1831
- useEffect4(
1832
- () => () => {
1833
- if (timeoutRef.current) clearTimeout(timeoutRef.current);
1834
- },
1835
- []
1836
- );
1837
- async function handleCopy(event) {
1838
- event.stopPropagation();
1839
- try {
1840
- const text = typeof value === "function" ? await value() : value;
1841
- await navigator.clipboard.writeText(text);
1842
- setCopied(true);
1843
- onCopied?.();
1844
- if (timeoutRef.current) clearTimeout(timeoutRef.current);
1845
- timeoutRef.current = setTimeout(
1846
- () => setCopied(false),
1847
- copiedTimeoutMs
1848
- );
1849
- } catch (error) {
1850
- onCopyError?.(error);
1851
- }
1852
- }
1853
- const Control = variant === "button" ? Button : "button";
1854
- const button = /* @__PURE__ */ jsx19(
1855
- Control,
442
+ return /* @__PURE__ */ jsx5(
443
+ "footer",
1856
444
  {
1857
- ...buttonProps,
1858
- ...variant === "button" && intent ? { intent } : {},
1859
- type: "button",
1860
- onClick: handleCopy,
1861
445
  className: cn(
1862
- "polli-control",
1863
- buttonProps.disabled ? "polli:cursor-not-allowed" : "polli:cursor-pointer",
1864
- typeof className === "function" ? className(copied) : className
446
+ "polli:flex polli:flex-wrap polli:items-center polli:gap-1 polli:pt-2",
447
+ className
1865
448
  ),
1866
- children: typeof children === "function" ? children(copied) : children
449
+ ...props
1867
450
  }
1868
451
  );
1869
- if (tooltip === null) {
1870
- return button;
1871
- }
1872
- return /* @__PURE__ */ jsx19(
1873
- Tooltip,
452
+ }
453
+
454
+ // src/compositions/ChatPromptInput.tsx
455
+ import {
456
+ forwardRef as forwardRef3
457
+ } from "react";
458
+
459
+ // src/primitives/Textarea.tsx
460
+ import { forwardRef as forwardRef2 } from "react";
461
+
462
+ // src/primitives/Field.tsx
463
+ import { Field } from "@ark-ui/react/field";
464
+
465
+ // src/primitives/Textarea.tsx
466
+ import { jsx as jsx6 } from "react/jsx-runtime";
467
+ var Textarea = forwardRef2(
468
+ ({ className, error, rows = 4, ...props }, ref) => /* @__PURE__ */ jsx6(
469
+ Field.Textarea,
1874
470
  {
1875
- triggerAs: "span",
1876
- content: copied ? copiedTooltip : tooltip,
1877
- align: tooltipAlign,
1878
- clampToViewport: tooltipClampToViewport,
1879
- maxWidth: tooltipMaxWidth,
1880
- displayContents: true,
1881
- tapEnabled: false,
471
+ ref,
472
+ rows,
473
+ "aria-invalid": error || void 0,
474
+ "data-error": error ? "true" : void 0,
1882
475
  className: cn(
1883
- buttonProps.disabled ? "polli:cursor-not-allowed" : "polli:cursor-pointer",
1884
- tooltipClassName
476
+ "polli-textarea polli:w-full polli:rounded-lg polli:border polli:px-3 polli:py-2",
477
+ "polli:min-h-20 polli:resize-y polli:font-body polli:text-base",
478
+ "polli:text-theme-text-strong",
479
+ "polli:transition-colors",
480
+ "polli:disabled:opacity-50 polli:disabled:cursor-not-allowed",
481
+ className
1885
482
  ),
1886
- children: button
483
+ ...props
484
+ }
485
+ )
486
+ );
487
+ Textarea.displayName = "Textarea";
488
+
489
+ // src/compositions/ChatPromptInput.tsx
490
+ import { Fragment, jsx as jsx7, jsxs as jsxs6 } from "react/jsx-runtime";
491
+ function ChatPromptInput({ className, ...props }) {
492
+ return /* @__PURE__ */ jsx7(
493
+ "fieldset",
494
+ {
495
+ className: cn("polli:m-0 polli:min-w-0 polli:p-0", className),
496
+ ...props
1887
497
  }
1888
498
  );
1889
499
  }
1890
-
1891
- // src/compositions/CodeBlock.tsx
1892
- import { Fragment as Fragment4, jsx as jsx20, jsxs as jsxs13 } from "react/jsx-runtime";
1893
- var CodeBlock = ({
1894
- code,
1895
- codeClassName,
1896
- language,
500
+ var ChatPromptTextarea = forwardRef3(({ className, ...props }, ref) => /* @__PURE__ */ jsx7(
501
+ Textarea,
502
+ {
503
+ ...props,
504
+ ref,
505
+ className: cn("polli:resize-none", className)
506
+ }
507
+ ));
508
+ ChatPromptTextarea.displayName = "ChatPromptTextarea";
509
+ function ChatPromptInputFooter({
510
+ start,
511
+ end,
512
+ children,
1897
513
  className,
1898
- ...rest
1899
- }) => {
1900
- const label = language || "Code";
1901
- return /* @__PURE__ */ jsxs13(
514
+ ...props
515
+ }) {
516
+ return /* @__PURE__ */ jsx7(
1902
517
  "div",
1903
518
  {
1904
- ...rest,
1905
519
  className: cn(
1906
- "polli:min-w-0 polli:max-w-full polli:overflow-hidden polli:rounded-lg polli:border polli:border-theme-border polli:bg-theme-bg-pale",
520
+ "polli:flex polli:flex-wrap polli:items-end polli:gap-2",
1907
521
  className
1908
522
  ),
1909
- children: [
1910
- /* @__PURE__ */ jsxs13("div", { className: "polli:flex polli:min-h-9 polli:items-center polli:justify-between polli:gap-3 polli:bg-theme-bg-subtle polli:px-3 polli:py-1.5", children: [
1911
- /* @__PURE__ */ jsx20("span", { className: "polli:truncate polli:font-mono polli:text-[11px] polli:font-medium polli:uppercase polli:tracking-wide polli:text-theme-text-muted", children: label }),
1912
- /* @__PURE__ */ jsx20(
1913
- CopyButton,
1914
- {
1915
- value: code,
1916
- tooltip: null,
1917
- "aria-label": "Copy code",
1918
- className: "polli:flex polli:items-center polli:gap-1.5 polli:rounded-md polli:px-2 polli:py-1 polli:text-xs polli:font-medium polli:text-theme-text-base polli:transition-colors polli:hover:bg-theme-bg-hover polli:hover:text-theme-text-hover",
1919
- children: (copied) => /* @__PURE__ */ jsxs13(Fragment4, { children: [
1920
- copied ? /* @__PURE__ */ jsx20(CheckIcon, { className: "polli:size-3.5" }) : /* @__PURE__ */ jsx20(ClipboardIcon, { className: "polli:size-3.5" }),
1921
- /* @__PURE__ */ jsx20("span", { children: copied ? "Copied" : "Copy" })
1922
- ] })
1923
- }
1924
- )
1925
- ] }),
1926
- /* @__PURE__ */ jsx20(
1927
- "pre",
1928
- {
1929
- className: cn(
1930
- "polli:m-0 polli:min-w-0 polli:whitespace-pre-wrap polli:break-words polli:[overflow-wrap:anywhere] polli:[tab-size:4] polli:p-3 polli:font-mono polli:text-xs polli:leading-6 polli:text-theme-text-strong",
1931
- codeClassName
1932
- ),
1933
- children: /* @__PURE__ */ jsx20("code", { children: code })
1934
- }
1935
- )
1936
- ]
523
+ ...props,
524
+ children: children ?? /* @__PURE__ */ jsxs6(Fragment, { children: [
525
+ /* @__PURE__ */ jsx7("div", { className: "polli:flex polli:flex-wrap polli:items-center polli:gap-2", children: start }),
526
+ /* @__PURE__ */ jsx7("div", { className: "polli:ml-auto polli:flex polli:items-center polli:gap-2", children: end })
527
+ ] })
1937
528
  }
1938
529
  );
1939
- };
530
+ }
1940
531
 
1941
532
  // src/compositions/Collapsible.tsx
1942
- import { jsx as jsx21, jsxs as jsxs14 } from "react/jsx-runtime";
533
+ import { jsx as jsx8, jsxs as jsxs7 } from "react/jsx-runtime";
1943
534
  var Collapsible = ({
1944
535
  label,
1945
536
  expanded,
@@ -1952,7 +543,7 @@ var Collapsible = ({
1952
543
  focusClassName,
1953
544
  panelClassName = "polli:border-t polli:border-theme-border polli:px-3 polli:pt-3 polli:pb-3",
1954
545
  ariaLabel
1955
- }) => /* @__PURE__ */ jsxs14(
546
+ }) => /* @__PURE__ */ jsxs7(
1956
547
  "div",
1957
548
  {
1958
549
  className: cn(
@@ -1961,7 +552,7 @@ var Collapsible = ({
1961
552
  disabled && "polli:opacity-50"
1962
553
  ),
1963
554
  children: [
1964
- /* @__PURE__ */ jsxs14(
555
+ /* @__PURE__ */ jsxs7(
1965
556
  "button",
1966
557
  {
1967
558
  type: "button",
@@ -1978,218 +569,29 @@ var Collapsible = ({
1978
569
  disabled ? "polli:cursor-not-allowed" : "polli:cursor-pointer"
1979
570
  ),
1980
571
  children: [
1981
- /* @__PURE__ */ jsx21("div", { className: "polli:flex-1 polli:min-w-0", children: label }),
1982
- /* @__PURE__ */ jsx21(
572
+ /* @__PURE__ */ jsx8("div", { className: "polli:flex-1 polli:min-w-0", children: label }),
573
+ /* @__PURE__ */ jsx8(
1983
574
  ChevronIcon,
1984
575
  {
1985
576
  expanded,
1986
577
  className: "polli:text-theme-text-soft"
1987
578
  }
1988
579
  )
1989
- ]
1990
- }
1991
- ),
1992
- expanded && /* @__PURE__ */ jsx21("div", { className: panelClassName, children })
1993
- ]
1994
- }
1995
- );
1996
-
1997
- // src/primitives/Dialog.tsx
1998
- import { Dialog as ArkDialog } from "@ark-ui/react/dialog";
1999
- import { Portal as Portal2 } from "@ark-ui/react/portal";
2000
- import { useRef as useRef4 } from "react";
2001
- import { jsx as jsx22, jsxs as jsxs15 } from "react/jsx-runtime";
2002
- var sizeClasses = {
2003
- sm: "polli:max-w-md",
2004
- md: "polli:max-w-xl",
2005
- lg: "polli:max-w-[800px]",
2006
- xl: "polli:max-w-6xl"
2007
- };
2008
- var Dialog = ({
2009
- open,
2010
- onOpenChange,
2011
- trigger,
2012
- triggerAsChild = false,
2013
- triggerClassName,
2014
- title,
2015
- ariaLabel,
2016
- labelledBy,
2017
- size = "md",
2018
- showBackdrop = true,
2019
- backdropBlur = true,
2020
- positionerClassName,
2021
- contentClassName,
2022
- children
2023
- }) => {
2024
- const contentRef = useRef4(null);
2025
- return /* @__PURE__ */ jsxs15(
2026
- ArkDialog.Root,
2027
- {
2028
- open,
2029
- initialFocusEl: () => contentRef.current,
2030
- onOpenChange: (details) => onOpenChange?.(details.open),
2031
- children: [
2032
- trigger && /* @__PURE__ */ jsx22(
2033
- ArkDialog.Trigger,
2034
- {
2035
- asChild: triggerAsChild,
2036
- className: triggerClassName,
2037
- children: trigger
2038
- }
2039
- ),
2040
- /* @__PURE__ */ jsxs15(Portal2, { children: [
2041
- showBackdrop && /* @__PURE__ */ jsx22(
2042
- ArkDialog.Backdrop,
2043
- {
2044
- className: cn(
2045
- "polli:fixed polli:inset-0 polli:z-[calc(100_+_var(--layer-index,0)_*_20)] polli:bg-[#000]/50",
2046
- backdropBlur && "polli:backdrop-blur-sm"
2047
- )
2048
- }
2049
- ),
2050
- /* @__PURE__ */ jsx22(
2051
- ArkDialog.Positioner,
2052
- {
2053
- className: cn(
2054
- "polli:fixed polli:inset-0 polli:z-[calc(110_+_var(--layer-index,0)_*_20)] polli:flex polli:max-h-dvh polli:items-start polli:justify-center polli:overflow-hidden polli:p-4",
2055
- "polli-dialog-mobile-positioner",
2056
- positionerClassName
2057
- ),
2058
- children: /* @__PURE__ */ jsxs15(
2059
- ArkDialog.Content,
2060
- {
2061
- ref: contentRef,
2062
- "aria-label": ariaLabel,
2063
- "aria-labelledby": labelledBy,
2064
- className: cn(
2065
- "polli:my-auto polli:flex polli:h-auto polli:max-h-full polli:w-full polli:flex-col polli:overflow-y-auto polli:rounded-block polli:bg-surface-block polli:outline-none polli:focus:outline-none polli:focus-visible:outline-none",
2066
- "polli-dialog-mobile-page",
2067
- sizeClasses[size],
2068
- contentClassName
2069
- ),
2070
- children: [
2071
- title && /* @__PURE__ */ jsx22(DialogHeader, { title }),
2072
- children
2073
- ]
2074
- }
2075
- )
2076
- }
2077
- )
2078
- ] })
2079
- ]
2080
- }
2081
- );
2082
- };
2083
- var DialogTitle = ArkDialog.Title;
2084
- var DialogDescription = ArkDialog.Description;
2085
- var DialogHeader = ({
2086
- title,
2087
- description,
2088
- children,
2089
- inBody = false,
2090
- className,
2091
- titleClassName,
2092
- descriptionClassName,
2093
- ...props
2094
- }) => {
2095
- return /* @__PURE__ */ jsxs15(
2096
- "div",
2097
- {
2098
- className: cn(
2099
- inBody ? "polli:shrink-0 polli:pt-2 polli:pb-4" : "polli:shrink-0 polli:px-(--polli-dialog-gutter) polli:pt-6 polli:pb-4",
2100
- className
2101
- ),
2102
- ...props,
2103
- children: [
2104
- title && /* @__PURE__ */ jsx22(
2105
- DialogTitle,
2106
- {
2107
- className: cn(headingClassName("section"), titleClassName),
2108
- children: title
2109
- }
2110
- ),
2111
- description && /* @__PURE__ */ jsx22(
2112
- DialogDescription,
2113
- {
2114
- className: cn(
2115
- "polli:mt-1 polli:font-body polli:text-sm polli:font-normal polli:leading-5 polli:text-theme-text-base",
2116
- descriptionClassName
2117
- ),
2118
- children: description
2119
- }
2120
- ),
2121
- children
2122
- ]
2123
- }
2124
- );
2125
- };
2126
- function DialogBody({
2127
- children,
2128
- actions,
2129
- footnote,
2130
- bodyClassName,
2131
- className,
2132
- ...props
2133
- }) {
2134
- return /* @__PURE__ */ jsxs15(
2135
- ScrollArea,
2136
- {
2137
- ...props,
2138
- className: cn(
2139
- "polli:flex polli:min-h-0 polli:flex-1 polli:flex-col polli:overscroll-contain",
2140
- className
2141
- ),
2142
- children: [
2143
- /* @__PURE__ */ jsx22(
2144
- "div",
2145
- {
2146
- className: cn(
2147
- "polli:space-y-3 polli:px-(--polli-dialog-gutter) polli:py-4",
2148
- bodyClassName
2149
- ),
2150
- children
2151
- }
2152
- ),
2153
- (actions || footnote) && // The size container lets the footer follow the dialog's width.
2154
- // It sits on the footer alone so pickers and tooltips in the
2155
- // body keep their positioning.
2156
- /* @__PURE__ */ jsxs15("div", { className: "polli-dialog-floating-controls polli:@container polli:pointer-events-none polli:sticky polli:bottom-0 polli:z-10", children: [
2157
- actions && /* @__PURE__ */ jsx22(DialogFooter, { className: "polli:pointer-events-auto", children: actions }),
2158
- footnote && /* @__PURE__ */ jsx22("div", { className: "polli:pointer-events-auto", children: footnote })
2159
- ] })
2160
- ]
2161
- }
2162
- );
2163
- }
2164
- var DialogFooter = ({
2165
- children,
2166
- className,
2167
- ...props
2168
- }) => {
2169
- return /* @__PURE__ */ jsx22(
2170
- "div",
2171
- {
2172
- className: cn(
2173
- "polli:flex polli:shrink-0 polli:flex-wrap polli:items-center polli:justify-end polli:gap-3 polli:bg-transparent polli:px-(--polli-dialog-gutter) polli:pt-4 polli:pb-6",
2174
- // Actions are the screen's main controls: touch-sized, sharing
2175
- // the row in a narrow dialog (below 36rem, phones included), and
2176
- // spanning it when there is only one.
2177
- "polli:[&>.polli-control]:min-h-12 polli:[&>.polli-control]:text-base polli:@max-xl:[&>.polli-control]:flex-auto polli:[&>.polli-control:only-child]:flex-auto",
2178
- className
2179
- ),
2180
- ...props,
2181
- children
2182
- }
2183
- );
2184
- };
580
+ ]
581
+ }
582
+ ),
583
+ expanded && /* @__PURE__ */ jsx8("div", { className: panelClassName, children })
584
+ ]
585
+ }
586
+ );
2185
587
 
2186
588
  // src/compositions/ConfirmationDialog.tsx
2187
- import { Fragment as Fragment5, jsx as jsx23, jsxs as jsxs16 } from "react/jsx-runtime";
589
+ import { Fragment as Fragment2, jsx as jsx9, jsxs as jsxs8 } from "react/jsx-runtime";
2188
590
  var defaultIcons = {
2189
- danger: /* @__PURE__ */ jsx23(TrashIcon, {}),
2190
- commit: /* @__PURE__ */ jsx23(CheckIcon, {}),
2191
- info: /* @__PURE__ */ jsx23(CheckIcon, {}),
2192
- neutral: /* @__PURE__ */ jsx23(CheckIcon, {})
591
+ danger: /* @__PURE__ */ jsx9(TrashIcon, {}),
592
+ commit: /* @__PURE__ */ jsx9(CheckIcon, {}),
593
+ info: /* @__PURE__ */ jsx9(CheckIcon, {}),
594
+ neutral: /* @__PURE__ */ jsx9(CheckIcon, {})
2193
595
  };
2194
596
  function ConfirmationDialog({
2195
597
  open,
@@ -2205,19 +607,19 @@ function ConfirmationDialog({
2205
607
  onCancel,
2206
608
  size = "md"
2207
609
  }) {
2208
- const actions = /* @__PURE__ */ jsxs16(Fragment5, { children: [
2209
- /* @__PURE__ */ jsx23(
610
+ const actions = /* @__PURE__ */ jsxs8(Fragment2, { children: [
611
+ /* @__PURE__ */ jsx9(
2210
612
  Button,
2211
613
  {
2212
614
  type: "button",
2213
615
  intent: "neutral",
2214
- icon: /* @__PURE__ */ jsx23(XIcon, {}),
616
+ icon: /* @__PURE__ */ jsx9(XIcon, {}),
2215
617
  onClick: onCancel,
2216
618
  disabled: cancelDisabled,
2217
619
  children: "Cancel"
2218
620
  }
2219
621
  ),
2220
- /* @__PURE__ */ jsx23(
622
+ /* @__PURE__ */ jsx9(
2221
623
  Button,
2222
624
  {
2223
625
  type: "button",
@@ -2229,16 +631,16 @@ function ConfirmationDialog({
2229
631
  }
2230
632
  )
2231
633
  ] });
2232
- return /* @__PURE__ */ jsx23(
634
+ return /* @__PURE__ */ jsx9(
2233
635
  Dialog,
2234
636
  {
2235
637
  open,
2236
- onOpenChange: (next) => !next && onCancel(),
638
+ onOpenChange: (next) => !next && !cancelDisabled && onCancel(),
2237
639
  size,
2238
640
  contentClassName: "polli:overflow-hidden",
2239
- children: /* @__PURE__ */ jsxs16(DialogBody, { actions, children: [
2240
- /* @__PURE__ */ jsx23(DialogHeader, { inBody: true, title }),
2241
- description && /* @__PURE__ */ jsx23("p", { className: "polli:text-sm polli:leading-relaxed", children: description }),
641
+ children: /* @__PURE__ */ jsxs8(DialogBody, { actions, children: [
642
+ /* @__PURE__ */ jsx9(DialogHeader, { inBody: true, title }),
643
+ description && /* @__PURE__ */ jsx9("p", { className: "polli:text-sm polli:leading-relaxed", children: description }),
2242
644
  children
2243
645
  ] })
2244
646
  }
@@ -2246,8 +648,8 @@ function ConfirmationDialog({
2246
648
  }
2247
649
 
2248
650
  // src/primitives/Eyebrow.tsx
2249
- import { jsx as jsx24 } from "react/jsx-runtime";
2250
- var sizeClasses2 = {
651
+ import { jsx as jsx10 } from "react/jsx-runtime";
652
+ var sizeClasses = {
2251
653
  page: "polli:text-sm polli:tracking-widest polli:text-theme-text-soft",
2252
654
  card: "polli:text-xs polli:tracking-wider polli:text-theme-text-soft",
2253
655
  chrome: "polli:text-micro polli:tracking-widest polli:text-theme-text-muted"
@@ -2260,13 +662,13 @@ function Eyebrow({
2260
662
  ...rest
2261
663
  }) {
2262
664
  const Component = as || "span";
2263
- return /* @__PURE__ */ jsx24(
665
+ return /* @__PURE__ */ jsx10(
2264
666
  Component,
2265
667
  {
2266
668
  ...rest,
2267
669
  className: cn(
2268
670
  "polli:font-pixel polli:uppercase",
2269
- sizeClasses2[size],
671
+ sizeClasses[size],
2270
672
  className
2271
673
  ),
2272
674
  children
@@ -2275,7 +677,7 @@ function Eyebrow({
2275
677
  }
2276
678
 
2277
679
  // src/compositions/ContentHeader.tsx
2278
- import { jsx as jsx25, jsxs as jsxs17 } from "react/jsx-runtime";
680
+ import { jsx as jsx11, jsxs as jsxs9 } from "react/jsx-runtime";
2279
681
  var titleClasses = {
2280
682
  page: "polli:font-heading polli:text-4xl polli:leading-[1.08] polli:text-theme-text-strong polli:sm:text-5xl polli:lg:text-7xl",
2281
683
  section: "polli:font-subheading polli:text-3xl polli:leading-tight polli:text-theme-text-strong polli:sm:text-4xl"
@@ -2293,7 +695,7 @@ function ContentHeader({
2293
695
  className
2294
696
  }) {
2295
697
  const Title = variant === "page" ? "h1" : "h2";
2296
- return /* @__PURE__ */ jsxs17(
698
+ return /* @__PURE__ */ jsxs9(
2297
699
  "header",
2298
700
  {
2299
701
  className: cn(
@@ -2301,10 +703,10 @@ function ContentHeader({
2301
703
  className
2302
704
  ),
2303
705
  children: [
2304
- /* @__PURE__ */ jsxs17("div", { className: "polli:flex polli:max-w-2xl polli:flex-col polli:gap-3", children: [
2305
- eyebrow ? /* @__PURE__ */ jsx25(Eyebrow, { size: "page", children: eyebrow }) : null,
2306
- /* @__PURE__ */ jsx25(Title, { className: titleClasses[variant], children: title }),
2307
- subtitle && /* @__PURE__ */ jsx25(
706
+ /* @__PURE__ */ jsxs9("div", { className: "polli:flex polli:max-w-2xl polli:flex-col polli:gap-3", children: [
707
+ eyebrow ? /* @__PURE__ */ jsx11(Eyebrow, { size: "page", children: eyebrow }) : null,
708
+ /* @__PURE__ */ jsx11(Title, { className: titleClasses[variant], children: title }),
709
+ subtitle && /* @__PURE__ */ jsx11(
2308
710
  "p",
2309
711
  {
2310
712
  className: cn(
@@ -2322,7 +724,7 @@ function ContentHeader({
2322
724
  }
2323
725
 
2324
726
  // src/compositions/CopyField.tsx
2325
- import { Fragment as Fragment6, jsx as jsx26, jsxs as jsxs18 } from "react/jsx-runtime";
727
+ import { Fragment as Fragment3, jsx as jsx12, jsxs as jsxs10 } from "react/jsx-runtime";
2326
728
  function CopyField({
2327
729
  value,
2328
730
  label,
@@ -2330,7 +732,7 @@ function CopyField({
2330
732
  className,
2331
733
  ...copy
2332
734
  }) {
2333
- return /* @__PURE__ */ jsx26(
735
+ return /* @__PURE__ */ jsx12(
2334
736
  CopyButton,
2335
737
  {
2336
738
  ...copy,
@@ -2342,14 +744,14 @@ function CopyField({
2342
744
  copied ? "polli:text-intent-success-text" : "polli:text-theme-text-base polli:hover:text-theme-text-strong",
2343
745
  className
2344
746
  ),
2345
- children: (copied) => /* @__PURE__ */ jsxs18(Fragment6, { children: [
2346
- /* @__PURE__ */ jsx26("span", { className: "polli:min-w-0 polli:flex-1 polli:select-all polli:break-all", children: copied ? "Copied" : display ?? (typeof value === "string" ? value : label) }),
2347
- /* @__PURE__ */ jsx26(
747
+ children: (copied) => /* @__PURE__ */ jsxs10(Fragment3, { children: [
748
+ /* @__PURE__ */ jsx12("span", { className: "polli:min-w-0 polli:flex-1 polli:select-all polli:break-all", children: copied ? "Copied" : display ?? (typeof value === "string" ? value : label) }),
749
+ /* @__PURE__ */ jsx12(
2348
750
  "span",
2349
751
  {
2350
752
  "aria-hidden": "true",
2351
753
  className: "polli:flex polli:size-4 polli:shrink-0 polli:[&>svg]:size-full",
2352
- children: copied ? /* @__PURE__ */ jsx26(CheckIcon, {}) : /* @__PURE__ */ jsx26(ClipboardIcon, {})
754
+ children: copied ? /* @__PURE__ */ jsx12(CheckIcon, {}) : /* @__PURE__ */ jsx12(ClipboardIcon, {})
2353
755
  }
2354
756
  )
2355
757
  ] })
@@ -2361,19 +763,20 @@ function CopyField({
2361
763
  import { createListCollection } from "@ark-ui/react/collection";
2362
764
  import { Combobox } from "@ark-ui/react/combobox";
2363
765
  import {
2364
- useEffect as useEffect5,
766
+ useEffect as useEffect2,
2365
767
  useMemo,
2366
- useRef as useRef5
768
+ useRef
2367
769
  } from "react";
2368
770
 
2369
771
  // src/primitives/Input.tsx
2370
- import { forwardRef as forwardRef5 } from "react";
2371
- import { jsx as jsx27 } from "react/jsx-runtime";
2372
- var Input = forwardRef5(
2373
- ({ className, error, hideNumberSteppers, ...props }, ref) => /* @__PURE__ */ jsx27(
2374
- "input",
772
+ import { forwardRef as forwardRef4 } from "react";
773
+ import { jsx as jsx13 } from "react/jsx-runtime";
774
+ var Input = forwardRef4(
775
+ ({ className, error, hideNumberSteppers, ...props }, ref) => /* @__PURE__ */ jsx13(
776
+ Field.Input,
2375
777
  {
2376
778
  ref,
779
+ "aria-invalid": error || void 0,
2377
780
  "data-error": error ? "true" : void 0,
2378
781
  className: cn(
2379
782
  "polli-input polli:px-3 polli:py-2 polli:border polli:rounded-lg",
@@ -2389,7 +792,7 @@ var Input = forwardRef5(
2389
792
  );
2390
793
 
2391
794
  // src/compositions/EditableCombobox.tsx
2392
- import { jsx as jsx28, jsxs as jsxs19 } from "react/jsx-runtime";
795
+ import { jsx as jsx14, jsxs as jsxs11 } from "react/jsx-runtime";
2393
796
  function EditableComboboxToken({
2394
797
  label,
2395
798
  value,
@@ -2397,7 +800,7 @@ function EditableComboboxToken({
2397
800
  className,
2398
801
  ...buttonProps
2399
802
  }) {
2400
- return /* @__PURE__ */ jsxs19(
803
+ return /* @__PURE__ */ jsxs11(
2401
804
  "button",
2402
805
  {
2403
806
  type: "button",
@@ -2408,12 +811,12 @@ function EditableComboboxToken({
2408
811
  ),
2409
812
  ...buttonProps,
2410
813
  children: [
2411
- /* @__PURE__ */ jsxs19("span", { className: "polli:text-theme-text-muted", children: [
814
+ /* @__PURE__ */ jsxs11("span", { className: "polli:text-theme-text-muted", children: [
2412
815
  label,
2413
816
  ":"
2414
817
  ] }),
2415
- /* @__PURE__ */ jsx28("span", { className: "polli:truncate polli:text-theme-text-base", children: value }),
2416
- /* @__PURE__ */ jsx28(ChevronIcon, { className: "polli:h-3 polli:w-3 polli:text-theme-text-muted" })
818
+ /* @__PURE__ */ jsx14("span", { className: "polli:truncate polli:text-theme-text-base", children: value }),
819
+ /* @__PURE__ */ jsx14(ChevronIcon, { className: "polli:h-3 polli:w-3 polli:text-theme-text-muted" })
2417
820
  ]
2418
821
  }
2419
822
  );
@@ -2450,13 +853,13 @@ function EditableCombobox({
2450
853
  );
2451
854
  const hasOptions = options.length > 0;
2452
855
  const hasStartContent = Boolean(startContent);
2453
- const inputRef = useRef5(null);
2454
- useEffect5(() => {
856
+ const inputRef = useRef(null);
857
+ useEffect2(() => {
2455
858
  if (inputRef.current && inputRef.current.value !== value) {
2456
859
  inputRef.current.value = value;
2457
860
  }
2458
861
  });
2459
- return /* @__PURE__ */ jsxs19(
862
+ return /* @__PURE__ */ jsxs11(
2460
863
  Combobox.Root,
2461
864
  {
2462
865
  collection,
@@ -2478,7 +881,7 @@ function EditableCombobox({
2478
881
  onInputValueChange: (details) => onChange(details.inputValue),
2479
882
  onOpenChange: (details) => onOpenChange?.(details.open),
2480
883
  children: [
2481
- /* @__PURE__ */ jsxs19(
884
+ /* @__PURE__ */ jsxs11(
2482
885
  Combobox.Control,
2483
886
  {
2484
887
  className: cn(
@@ -2487,7 +890,7 @@ function EditableCombobox({
2487
890
  ),
2488
891
  children: [
2489
892
  startContent,
2490
- /* @__PURE__ */ jsx28(Combobox.Input, { asChild: true, children: /* @__PURE__ */ jsx28(
893
+ /* @__PURE__ */ jsx14(Combobox.Input, { asChild: true, children: /* @__PURE__ */ jsx14(
2491
894
  Input,
2492
895
  {
2493
896
  ref: inputRef,
@@ -2500,12 +903,12 @@ function EditableCombobox({
2500
903
  )
2501
904
  }
2502
905
  ) }),
2503
- hasOptions && !hasStartContent && /* @__PURE__ */ jsx28(
906
+ hasOptions && !hasStartContent && /* @__PURE__ */ jsx14(
2504
907
  Combobox.Trigger,
2505
908
  {
2506
909
  "aria-label": "Show options",
2507
910
  className: "polli-control polli:absolute polli:right-0 polli:top-0 polli:flex polli:h-full polli:w-10 polli:cursor-pointer polli:items-center polli:justify-center polli:rounded-r-lg polli:text-theme-text-muted polli:hover:text-theme-text-strong",
2508
- children: /* @__PURE__ */ jsx28(Combobox.Context, { children: (context) => /* @__PURE__ */ jsx28(
911
+ children: /* @__PURE__ */ jsx14(Combobox.Context, { children: (context) => /* @__PURE__ */ jsx14(
2509
912
  ChevronIcon,
2510
913
  {
2511
914
  expanded: context.open,
@@ -2517,15 +920,15 @@ function EditableCombobox({
2517
920
  ]
2518
921
  }
2519
922
  ),
2520
- /* @__PURE__ */ jsx28(Combobox.Positioner, { children: /* @__PURE__ */ jsx28(
923
+ /* @__PURE__ */ jsx14(Combobox.Positioner, { children: /* @__PURE__ */ jsx14(
2521
924
  Combobox.Content,
2522
925
  {
2523
926
  className: cn(
2524
927
  "polli:z-[120] polli:overflow-hidden polli:rounded-lg polli:bg-surface-menu polli:p-1 polli:shadow-lg polli:focus:outline-none",
2525
928
  contentClassName
2526
929
  ),
2527
- children: /* @__PURE__ */ jsx28(ScrollArea, { className: "polli:max-h-64", children: /* @__PURE__ */ jsxs19(Combobox.List, { className: "polli:flex polli:flex-col", children: [
2528
- visibleOptions.map((option) => /* @__PURE__ */ jsx28(
930
+ children: /* @__PURE__ */ jsx14(ScrollArea, { className: "polli:max-h-64", children: /* @__PURE__ */ jsxs11(Combobox.List, { className: "polli:flex polli:flex-col", children: [
931
+ visibleOptions.map((option) => /* @__PURE__ */ jsx14(
2529
932
  Combobox.Item,
2530
933
  {
2531
934
  item: option,
@@ -2533,11 +936,11 @@ function EditableCombobox({
2533
936
  "polli-control polli:flex polli:w-full polli:cursor-pointer polli:items-center polli:rounded-lg polli:bg-transparent polli:px-3 polli:py-2 polli:text-left polli:text-sm polli:font-medium polli:text-theme-text-base polli:transition-colors polli:hover:bg-theme-bg-hover polli:data-[highlighted]:bg-theme-bg-hover",
2534
937
  value === option && "polli:bg-theme-bg-active polli:text-theme-text-strong"
2535
938
  ),
2536
- children: /* @__PURE__ */ jsx28(Combobox.ItemText, { className: "polli:truncate polli:font-mono", children: option })
939
+ children: /* @__PURE__ */ jsx14(Combobox.ItemText, { className: "polli:truncate polli:font-mono", children: option })
2537
940
  },
2538
941
  option
2539
942
  )),
2540
- visibleOptions.length === 0 && /* @__PURE__ */ jsx28(Combobox.Empty, { className: "polli:m-0 polli:px-2 polli:py-2 polli:text-sm polli:text-theme-text-soft", children: emptyMessage })
943
+ visibleOptions.length === 0 && /* @__PURE__ */ jsx14(Combobox.Empty, { className: "polli:m-0 polli:px-2 polli:py-2 polli:text-sm polli:text-theme-text-soft", children: emptyMessage })
2541
944
  ] }) })
2542
945
  }
2543
946
  ) })
@@ -2547,25 +950,13 @@ function EditableCombobox({
2547
950
  }
2548
951
 
2549
952
  // src/compositions/EmptyState.tsx
2550
- import { jsx as jsx29 } from "react/jsx-runtime";
953
+ import { jsx as jsx15 } from "react/jsx-runtime";
2551
954
  function EmptyState({ children }) {
2552
- return /* @__PURE__ */ jsx29("p", { className: "polli:rounded-card polli:border polli:border-dashed polli:border-theme-border polli:px-5 polli:py-8 polli:text-center polli:font-body polli:text-sm polli:text-theme-text-muted", children });
2553
- }
2554
-
2555
- // src/lib/link.ts
2556
- function isExternalHref(href, origin = globalThis.location?.origin) {
2557
- if (typeof href !== "string" || !/^(https?:)?\/\//i.test(href))
2558
- return false;
2559
- if (!origin) return true;
2560
- try {
2561
- return new URL(href, origin).origin !== origin;
2562
- } catch {
2563
- return false;
2564
- }
955
+ return /* @__PURE__ */ jsx15("p", { className: "polli:rounded-card polli:border polli:border-dashed polli:border-theme-border polli:px-5 polli:py-8 polli:text-center polli:font-body polli:text-sm polli:text-theme-text-muted", children });
2565
956
  }
2566
957
 
2567
958
  // src/compositions/ExternalLinkButton.tsx
2568
- import { Fragment as Fragment7, jsx as jsx30, jsxs as jsxs20 } from "react/jsx-runtime";
959
+ import { Fragment as Fragment4, jsx as jsx16, jsxs as jsxs12 } from "react/jsx-runtime";
2569
960
  function ExternalLinkButton(props) {
2570
961
  const {
2571
962
  size = "md",
@@ -2576,10 +967,10 @@ function ExternalLinkButton(props) {
2576
967
  className,
2577
968
  children
2578
969
  } = props;
2579
- const content = /* @__PURE__ */ jsxs20(Fragment7, { children: [
970
+ const content = /* @__PURE__ */ jsxs12(Fragment4, { children: [
2580
971
  icon,
2581
- /* @__PURE__ */ jsx30("span", { children }),
2582
- external && showIcon ? /* @__PURE__ */ jsx30(
972
+ /* @__PURE__ */ jsx16("span", { children }),
973
+ external && showIcon ? /* @__PURE__ */ jsx16(
2583
974
  ExternalLinkIcon,
2584
975
  {
2585
976
  className: "polli:h-4 polli:w-4 polli:shrink-0 polli:opacity-60",
@@ -2601,7 +992,7 @@ function ExternalLinkButton(props) {
2601
992
  children: _children2,
2602
993
  ...anchorProps
2603
994
  } = props;
2604
- return /* @__PURE__ */ jsx30(
995
+ return /* @__PURE__ */ jsx16(
2605
996
  Button,
2606
997
  {
2607
998
  as: "a",
@@ -2627,7 +1018,7 @@ function ExternalLinkButton(props) {
2627
1018
  children: _children,
2628
1019
  ...buttonProps
2629
1020
  } = props;
2630
- return /* @__PURE__ */ jsx30(
1021
+ return /* @__PURE__ */ jsx16(
2631
1022
  Button,
2632
1023
  {
2633
1024
  as: "button",
@@ -2641,11 +1032,8 @@ function ExternalLinkButton(props) {
2641
1032
  );
2642
1033
  }
2643
1034
 
2644
- // src/primitives/Field.tsx
2645
- import { Field } from "@ark-ui/react/field";
2646
-
2647
1035
  // src/compositions/FieldStack.tsx
2648
- import { jsx as jsx31, jsxs as jsxs21 } from "react/jsx-runtime";
1036
+ import { jsx as jsx17, jsxs as jsxs13 } from "react/jsx-runtime";
2649
1037
  var orientationClasses = {
2650
1038
  stacked: "polli:flex polli:flex-col polli:gap-2",
2651
1039
  inline: "polli:grid polli:grid-cols-[6.5rem_minmax(0,1fr)] polli:items-center polli:gap-x-4 polli:gap-y-2 polli:max-sm:grid-cols-[5.5rem_minmax(0,1fr)] polli:max-sm:gap-x-2 polli:[&>*:not(:first-child)]:col-start-2 polli:[&>*:not(:first-child)]:min-w-0"
@@ -2663,7 +1051,7 @@ function FieldStack({
2663
1051
  helperClassName,
2664
1052
  errorClassName
2665
1053
  }) {
2666
- return /* @__PURE__ */ jsxs21(
1054
+ return /* @__PURE__ */ jsxs13(
2667
1055
  Field.Root,
2668
1056
  {
2669
1057
  className: cn(
@@ -2673,7 +1061,7 @@ function FieldStack({
2673
1061
  ),
2674
1062
  invalid: Boolean(error),
2675
1063
  children: [
2676
- (label || action) && /* @__PURE__ */ jsxs21(
1064
+ (label || action) && /* @__PURE__ */ jsxs13(
2677
1065
  "div",
2678
1066
  {
2679
1067
  className: cn(
@@ -2681,7 +1069,7 @@ function FieldStack({
2681
1069
  alignLabelRow && "polli:min-h-8"
2682
1070
  ),
2683
1071
  children: [
2684
- label && /* @__PURE__ */ jsx31(
1072
+ label && /* @__PURE__ */ jsx17(
2685
1073
  Field.Label,
2686
1074
  {
2687
1075
  className: cn(
@@ -2696,7 +1084,7 @@ function FieldStack({
2696
1084
  }
2697
1085
  ),
2698
1086
  children,
2699
- error ? /* @__PURE__ */ jsx31(
1087
+ error ? /* @__PURE__ */ jsx17(
2700
1088
  Field.ErrorText,
2701
1089
  {
2702
1090
  className: cn(
@@ -2705,7 +1093,7 @@ function FieldStack({
2705
1093
  ),
2706
1094
  children: error
2707
1095
  }
2708
- ) : helper ? /* @__PURE__ */ jsx31(
1096
+ ) : helper ? /* @__PURE__ */ jsx17(
2709
1097
  Field.HelperText,
2710
1098
  {
2711
1099
  className: cn(
@@ -2722,10 +1110,10 @@ function FieldStack({
2722
1110
 
2723
1111
  // src/compositions/FileUpload.tsx
2724
1112
  import {
2725
- useEffect as useEffect6,
2726
- useId as useId4,
2727
- useRef as useRef6,
2728
- useState as useState5
1113
+ useEffect as useEffect3,
1114
+ useId,
1115
+ useRef as useRef2,
1116
+ useState as useState2
2729
1117
  } from "react";
2730
1118
 
2731
1119
  // src/lib/document-file-drop-guard.ts
@@ -2771,10 +1159,10 @@ function matchesAccept(file, accept) {
2771
1159
  return file.type === token;
2772
1160
  });
2773
1161
  }
2774
- function partitionFiles(incoming, current2, { maxFiles, maxSizeBytes, accept }) {
1162
+ function partitionFiles(incoming, current, { maxFiles, maxSizeBytes, accept }) {
2775
1163
  const accepted = [];
2776
1164
  const rejected = [];
2777
- let slots = Math.max(0, maxFiles - current2.length);
1165
+ let slots = Math.max(0, maxFiles - current.length);
2778
1166
  for (const file of incoming) {
2779
1167
  if (!matchesAccept(file, accept)) {
2780
1168
  rejected.push({ file, reason: "type" });
@@ -2792,10 +1180,10 @@ function partitionFiles(incoming, current2, { maxFiles, maxSizeBytes, accept })
2792
1180
 
2793
1181
  // src/primitives/IconButton.tsx
2794
1182
  import {
2795
- forwardRef as forwardRef6
1183
+ forwardRef as forwardRef5
2796
1184
  } from "react";
2797
- import { jsx as jsx32 } from "react/jsx-runtime";
2798
- var intentClasses3 = {
1185
+ import { jsx as jsx18 } from "react/jsx-runtime";
1186
+ var intentClasses = {
2799
1187
  danger: "polli:bg-intent-danger-bg-light polli:text-intent-danger-text",
2800
1188
  info: "polli:bg-intent-info-bg-light polli:text-intent-info-text"
2801
1189
  };
@@ -2803,7 +1191,7 @@ var intentHoverClasses = {
2803
1191
  danger: "polli:hover:bg-intent-danger-bg-hover",
2804
1192
  info: "polli:hover:bg-intent-info-bg-hover"
2805
1193
  };
2806
- var variantClasses2 = {
1194
+ var variantClasses = {
2807
1195
  tile: "polli:bg-theme-bg-active polli:text-theme-text-soft",
2808
1196
  ghost: "polli:bg-transparent polli:text-theme-text-muted"
2809
1197
  };
@@ -2811,11 +1199,11 @@ var variantHoverClasses = {
2811
1199
  tile: "polli:hover:bg-theme-bg-hover polli:hover:text-theme-text-hover",
2812
1200
  ghost: "polli:hover:bg-transparent polli:hover:text-theme-text-soft"
2813
1201
  };
2814
- var sizeClasses3 = {
1202
+ var sizeClasses2 = {
2815
1203
  sm: "polli:h-6 polli:w-6 polli:rounded",
2816
1204
  md: "polli:h-9 polli:w-9 polli:rounded-full"
2817
1205
  };
2818
- var IconButton = forwardRef6(
1206
+ var IconButton = forwardRef5(
2819
1207
  ({
2820
1208
  intent,
2821
1209
  variant = "tile",
@@ -2839,23 +1227,32 @@ var IconButton = forwardRef6(
2839
1227
  className: cn(
2840
1228
  "polli-control polli:inline-flex polli:items-center polli:justify-center polli:transition-colors",
2841
1229
  disabled ? "polli:cursor-not-allowed polli:opacity-50" : "polli:cursor-pointer",
2842
- sizeClasses3[size],
2843
- intent ? intentClasses3[intent] : variantClasses2[variant],
1230
+ sizeClasses2[size],
1231
+ intent ? intentClasses[intent] : variantClasses[variant],
2844
1232
  !disabled && (intent ? intentHoverClasses[intent] : variantHoverClasses[variant]),
2845
1233
  className
2846
1234
  )
2847
1235
  };
2848
- const button = href ? /* @__PURE__ */ jsx32(
1236
+ const button = href ? /* @__PURE__ */ jsx18(
2849
1237
  "a",
2850
1238
  {
2851
1239
  ...buttonProps,
2852
1240
  ...shared,
2853
- href,
1241
+ href: disabled ? void 0 : href,
2854
1242
  target,
2855
1243
  rel,
1244
+ ...disabled && {
1245
+ role: buttonProps.role ?? "link",
1246
+ "aria-disabled": true,
1247
+ tabIndex: -1,
1248
+ onClick: (event) => {
1249
+ event.preventDefault();
1250
+ event.stopPropagation();
1251
+ }
1252
+ },
2856
1253
  children
2857
1254
  }
2858
- ) : /* @__PURE__ */ jsx32(
1255
+ ) : /* @__PURE__ */ jsx18(
2859
1256
  "button",
2860
1257
  {
2861
1258
  ...buttonProps,
@@ -2869,7 +1266,7 @@ var IconButton = forwardRef6(
2869
1266
  );
2870
1267
  const tooltipContent = tooltip ?? title;
2871
1268
  if (!tooltipContent) return button;
2872
- return /* @__PURE__ */ jsx32(
1269
+ return /* @__PURE__ */ jsx18(
2873
1270
  Tooltip,
2874
1271
  {
2875
1272
  triggerAs: "span",
@@ -2886,7 +1283,7 @@ var IconButton = forwardRef6(
2886
1283
  IconButton.displayName = "IconButton";
2887
1284
 
2888
1285
  // src/compositions/FileUpload.tsx
2889
- import { Fragment as Fragment8, jsx as jsx33, jsxs as jsxs22 } from "react/jsx-runtime";
1286
+ import { Fragment as Fragment5, jsx as jsx19, jsxs as jsxs14 } from "react/jsx-runtime";
2890
1287
  var PREVIEWABLE_IMAGE_TYPES = /* @__PURE__ */ new Set([
2891
1288
  "image/gif",
2892
1289
  "image/jpeg",
@@ -2898,7 +1295,7 @@ function isPreviewableImage(file) {
2898
1295
  return PREVIEWABLE_IMAGE_TYPES.has(file.type);
2899
1296
  }
2900
1297
  function PreviewPlaceholder({ icon }) {
2901
- return /* @__PURE__ */ jsx33(
1298
+ return /* @__PURE__ */ jsx19(
2902
1299
  "div",
2903
1300
  {
2904
1301
  className: cn(
@@ -2913,11 +1310,11 @@ function FilePreview({
2913
1310
  file,
2914
1311
  placeholderIcon
2915
1312
  }) {
2916
- const canvasRef = useRef6(null);
2917
- const [canPreview, setCanPreview] = useState5(
1313
+ const canvasRef = useRef2(null);
1314
+ const [canPreview, setCanPreview] = useState2(
2918
1315
  () => isPreviewableImage(file)
2919
1316
  );
2920
- useEffect6(() => {
1317
+ useEffect3(() => {
2921
1318
  if (!isPreviewableImage(file)) {
2922
1319
  setCanPreview(false);
2923
1320
  return;
@@ -2961,9 +1358,9 @@ function FilePreview({
2961
1358
  };
2962
1359
  }, [file]);
2963
1360
  if (!canPreview) {
2964
- return /* @__PURE__ */ jsx33(PreviewPlaceholder, { icon: placeholderIcon });
1361
+ return /* @__PURE__ */ jsx19(PreviewPlaceholder, { icon: placeholderIcon });
2965
1362
  }
2966
- return /* @__PURE__ */ jsx33(
1363
+ return /* @__PURE__ */ jsx19(
2967
1364
  "canvas",
2968
1365
  {
2969
1366
  ref: canvasRef,
@@ -2982,16 +1379,16 @@ function FileUpload({
2982
1379
  maxFiles = 4,
2983
1380
  maxSizeBytes = 10 * 1024 * 1024,
2984
1381
  accept = "image/*",
2985
- icon = /* @__PURE__ */ jsx33(ImageIcon, { className: "polli:h-6 polli:w-6" }),
2986
- label = /* @__PURE__ */ jsxs22(Fragment8, { children: [
1382
+ icon = /* @__PURE__ */ jsx19(ImageIcon, { className: "polli:h-6 polli:w-6" }),
1383
+ label = /* @__PURE__ */ jsxs14(Fragment5, { children: [
2987
1384
  "Drag images here or ",
2988
- /* @__PURE__ */ jsx33("span", { className: "polli:underline", children: "browse" })
1385
+ /* @__PURE__ */ jsx19("span", { className: "polli:underline", children: "browse" })
2989
1386
  ] }),
2990
- previewIcon = /* @__PURE__ */ jsx33(ImageIcon, { className: "polli:h-5 polli:w-5" }),
1387
+ previewIcon = /* @__PURE__ */ jsx19(ImageIcon, { className: "polli:h-5 polli:w-5" }),
2991
1388
  disabled = false,
2992
1389
  className
2993
1390
  }) {
2994
- useEffect6(() => acquireDocumentFileDropGuard(document), []);
1391
+ useEffect3(() => acquireDocumentFileDropGuard(document), []);
2995
1392
  function addFiles(incoming) {
2996
1393
  if (disabled || incoming.length === 0) return;
2997
1394
  const { accepted, rejected } = partitionFiles(incoming, value, {
@@ -3003,12 +1400,12 @@ function FileUpload({
3003
1400
  if (rejected.length > 0) onReject?.(rejected);
3004
1401
  }
3005
1402
  const canAdd = !disabled && value.length < maxFiles;
3006
- const inputId = useId4();
1403
+ const inputId = useId();
3007
1404
  function handleInputChange(event) {
3008
1405
  addFiles(Array.from(event.target.files ?? []));
3009
1406
  event.target.value = "";
3010
1407
  }
3011
- return /* @__PURE__ */ jsx33(
1408
+ return /* @__PURE__ */ jsx19(
3012
1409
  "fieldset",
3013
1410
  {
3014
1411
  disabled,
@@ -3022,22 +1419,22 @@ function FileUpload({
3022
1419
  event.preventDefault();
3023
1420
  addFiles(Array.from(event.dataTransfer.files));
3024
1421
  },
3025
- children: /* @__PURE__ */ jsxs22("ul", { className: "polli:m-0 polli:flex polli:flex-wrap polli:gap-3 polli:p-0", children: [
3026
- value.map((file, index) => /* @__PURE__ */ jsxs22(
1422
+ children: /* @__PURE__ */ jsxs14("ul", { className: "polli:m-0 polli:flex polli:flex-wrap polli:gap-3 polli:p-0", children: [
1423
+ value.map((file, index) => /* @__PURE__ */ jsxs14(
3027
1424
  "li",
3028
1425
  {
3029
1426
  title: file.name,
3030
1427
  className: "polli:relative polli:list-none",
3031
1428
  children: [
3032
- /* @__PURE__ */ jsx33(
1429
+ /* @__PURE__ */ jsx19(
3033
1430
  FilePreview,
3034
1431
  {
3035
1432
  file,
3036
1433
  placeholderIcon: previewIcon
3037
1434
  }
3038
1435
  ),
3039
- /* @__PURE__ */ jsx33("span", { className: "polli:sr-only", children: file.name }),
3040
- !disabled && /* @__PURE__ */ jsx33("div", { className: "polli:absolute polli:-top-2 polli:right-1", children: /* @__PURE__ */ jsx33(
1436
+ /* @__PURE__ */ jsx19("span", { className: "polli:sr-only", children: file.name }),
1437
+ !disabled && /* @__PURE__ */ jsx19("div", { className: "polli:absolute polli:-top-2 polli:right-1", children: /* @__PURE__ */ jsx19(
3041
1438
  IconButton,
3042
1439
  {
3043
1440
  intent: "danger",
@@ -3045,14 +1442,14 @@ function FileUpload({
3045
1442
  onClick: () => onChange(
3046
1443
  value.filter((_, i) => i !== index)
3047
1444
  ),
3048
- children: /* @__PURE__ */ jsx33(XIcon, { className: "polli:h-3 polli:w-3" })
1445
+ children: /* @__PURE__ */ jsx19(XIcon, { className: "polli:h-3 polli:w-3" })
3049
1446
  }
3050
1447
  ) })
3051
1448
  ]
3052
1449
  },
3053
1450
  `${file.name}-${index}`
3054
1451
  )),
3055
- (canAdd || value.length === 0) && /* @__PURE__ */ jsx33("li", { className: "polli:list-none", children: /* @__PURE__ */ jsxs22(
1452
+ (canAdd || value.length === 0) && /* @__PURE__ */ jsx19("li", { className: "polli:list-none", children: /* @__PURE__ */ jsxs14(
3056
1453
  "label",
3057
1454
  {
3058
1455
  htmlFor: inputId,
@@ -3061,9 +1458,9 @@ function FileUpload({
3061
1458
  canAdd ? "polli:cursor-pointer polli:hover:bg-theme-bg-hover" : "polli:cursor-not-allowed"
3062
1459
  ),
3063
1460
  children: [
3064
- value.length ? /* @__PURE__ */ jsx33(PlusIcon, { className: "polli:h-6 polli:w-6" }) : icon,
3065
- /* @__PURE__ */ jsx33("span", { children: value.length ? "Add files" : label }),
3066
- /* @__PURE__ */ jsx33(
1461
+ value.length ? /* @__PURE__ */ jsx19(PlusIcon, { className: "polli:h-6 polli:w-6" }) : icon,
1462
+ /* @__PURE__ */ jsx19("span", { children: value.length ? "Add files" : label }),
1463
+ /* @__PURE__ */ jsx19(
3067
1464
  "input",
3068
1465
  {
3069
1466
  id: inputId,
@@ -3084,7 +1481,7 @@ function FileUpload({
3084
1481
  }
3085
1482
 
3086
1483
  // src/compositions/InfoTip.tsx
3087
- import { jsx as jsx34 } from "react/jsx-runtime";
1484
+ import { jsx as jsx20 } from "react/jsx-runtime";
3088
1485
  var InfoTip = ({
3089
1486
  text,
3090
1487
  content,
@@ -3093,7 +1490,7 @@ var InfoTip = ({
3093
1490
  }) => (
3094
1491
  // displayContents drops the inline wrapper so the badge centres on its row
3095
1492
  // instead of sitting on the text baseline.
3096
- /* @__PURE__ */ jsx34(
1493
+ /* @__PURE__ */ jsx20(
3097
1494
  Tooltip,
3098
1495
  {
3099
1496
  content: content ?? text,
@@ -3101,55 +1498,13 @@ var InfoTip = ({
3101
1498
  className: "polli:ml-1",
3102
1499
  displayContents: true,
3103
1500
  tapEnabled,
3104
- children: /* @__PURE__ */ jsx34("span", { className: "polli:inline-flex polli:h-4 polli:w-4 polli:items-center polli:justify-center polli:rounded-full polli:bg-surface-menu polli:font-bold polli:text-[10px] polli:leading-none polli:text-theme-text-muted polli:transition-colors polli:hover:text-theme-text-strong", children: "i" })
1501
+ children: /* @__PURE__ */ jsx20("span", { className: "polli:inline-flex polli:h-4 polli:w-4 polli:items-center polli:justify-center polli:rounded-full polli:bg-surface-menu polli:font-bold polli:text-[10px] polli:leading-none polli:text-theme-text-muted polli:transition-colors polli:hover:text-theme-text-strong", children: "i" })
3105
1502
  }
3106
1503
  )
3107
1504
  );
3108
1505
 
3109
- // src/primitives/Chip.tsx
3110
- import { jsx as jsx35 } from "react/jsx-runtime";
3111
- var chipSizes = {
3112
- icon: "polli:h-5 polli:w-5 polli:p-0 polli:text-xs",
3113
- sm: "polli:h-5 polli:px-2 polli:text-xs",
3114
- md: "polli:h-6 polli:px-2.5 polli:text-sm",
3115
- lg: "polli:h-7 polli:px-3 polli:text-sm"
3116
- };
3117
- var intentClasses4 = {
3118
- news: "polli:bg-intent-news-bg-light polli:text-intent-news-text",
3119
- new: "polli:bg-intent-new-bg-light polli:text-intent-new-text",
3120
- free: "polli:bg-intent-free-bg-light polli:text-intent-free-text",
3121
- alpha: "polli:bg-intent-alpha-bg-light polli:text-intent-alpha-text",
3122
- neutral: "polli:bg-ink-100/80 polli:text-ink-900",
3123
- success: "polli:bg-intent-success-bg-bright/15 polli:text-intent-success-text",
3124
- warning: "polli:bg-intent-warning-bg-light polli:text-intent-warning-text",
3125
- info: "polli:bg-intent-info-bg-light polli:text-intent-info-text",
3126
- danger: "polli:bg-intent-danger-bg-light polli:text-intent-danger-text"
3127
- };
3128
- var Chip = ({
3129
- intent,
3130
- size = "md",
3131
- className,
3132
- children,
3133
- ...rest
3134
- }) => {
3135
- const intentClass = intent ? intentClasses4[intent] : "polli:bg-theme-bg-active polli:text-theme-text-strong";
3136
- return /* @__PURE__ */ jsx35(
3137
- "span",
3138
- {
3139
- ...rest,
3140
- className: cn(
3141
- "polli:inline-flex polli:shrink-0 polli:items-center polli:justify-center polli:gap-1 polli:rounded-lg polli:font-medium polli:leading-none",
3142
- chipSizes[size],
3143
- intentClass,
3144
- className
3145
- ),
3146
- children
3147
- }
3148
- );
3149
- };
3150
-
3151
1506
  // src/compositions/KeyChip.tsx
3152
- import { jsx as jsx36, jsxs as jsxs23 } from "react/jsx-runtime";
1507
+ import { jsx as jsx21, jsxs as jsxs15 } from "react/jsx-runtime";
3153
1508
  var chipClassName = "polli:gap-1.5 polli:font-mono polli:font-normal polli:[&>svg]:size-3.5 polli:[&>svg]:shrink-0";
3154
1509
  function KeyChip({
3155
1510
  prefix,
@@ -3159,16 +1514,16 @@ function KeyChip({
3159
1514
  }) {
3160
1515
  const text = `${prefix}\u2026`;
3161
1516
  if (!value) {
3162
- return /* @__PURE__ */ jsx36(Chip, { intent: "neutral", className: cn(chipClassName, className), children: text });
1517
+ return /* @__PURE__ */ jsx21(Chip, { intent: "neutral", className: cn(chipClassName, className), children: text });
3163
1518
  }
3164
- return /* @__PURE__ */ jsx36(
1519
+ return /* @__PURE__ */ jsx21(
3165
1520
  CopyButton,
3166
1521
  {
3167
1522
  value,
3168
1523
  tooltip: null,
3169
1524
  "aria-label": label,
3170
1525
  className: "polli:inline-flex polli:cursor-pointer polli:rounded-lg",
3171
- children: (copied) => /* @__PURE__ */ jsxs23(
1526
+ children: (copied) => /* @__PURE__ */ jsxs15(
3172
1527
  Chip,
3173
1528
  {
3174
1529
  intent: copied ? "success" : "neutral",
@@ -3178,7 +1533,7 @@ function KeyChip({
3178
1533
  className
3179
1534
  ),
3180
1535
  children: [
3181
- copied ? /* @__PURE__ */ jsx36(CheckIcon, { "aria-hidden": "true" }) : /* @__PURE__ */ jsx36(ClipboardIcon, { "aria-hidden": "true" }),
1536
+ copied ? /* @__PURE__ */ jsx21(CheckIcon, { "aria-hidden": "true" }) : /* @__PURE__ */ jsx21(ClipboardIcon, { "aria-hidden": "true" }),
3182
1537
  copied ? "Copied" : text
3183
1538
  ]
3184
1539
  }
@@ -3188,7 +1543,7 @@ function KeyChip({
3188
1543
  }
3189
1544
 
3190
1545
  // src/compositions/LinkCard.tsx
3191
- import { jsx as jsx37, jsxs as jsxs24 } from "react/jsx-runtime";
1546
+ import { jsx as jsx22, jsxs as jsxs16 } from "react/jsx-runtime";
3192
1547
  function LinkCard({
3193
1548
  as,
3194
1549
  external,
@@ -3202,7 +1557,7 @@ function LinkCard({
3202
1557
  const Component = as || "a";
3203
1558
  const isExternal = external ?? isExternalHref(linkProps.href);
3204
1559
  const style = linkProps.style;
3205
- return /* @__PURE__ */ jsxs24(
1560
+ return /* @__PURE__ */ jsxs16(
3206
1561
  Surface,
3207
1562
  {
3208
1563
  as: Component,
@@ -3223,7 +1578,7 @@ function LinkCard({
3223
1578
  surfaceClassName
3224
1579
  ),
3225
1580
  children: [
3226
- showIcon && isExternal && /* @__PURE__ */ jsx37(
1581
+ showIcon && isExternal && /* @__PURE__ */ jsx22(
3227
1582
  ExternalLinkIcon,
3228
1583
  {
3229
1584
  "aria-hidden": "true",
@@ -3237,7 +1592,7 @@ function LinkCard({
3237
1592
  }
3238
1593
 
3239
1594
  // src/compositions/MediaPlaceholder.tsx
3240
- import { jsx as jsx38, jsxs as jsxs25 } from "react/jsx-runtime";
1595
+ import { jsx as jsx23, jsxs as jsxs17 } from "react/jsx-runtime";
3241
1596
  var MediaPlaceholder = ({
3242
1597
  icon,
3243
1598
  label,
@@ -3248,7 +1603,7 @@ var MediaPlaceholder = ({
3248
1603
  className,
3249
1604
  style,
3250
1605
  ...rest
3251
- }) => /* @__PURE__ */ jsxs25(
1606
+ }) => /* @__PURE__ */ jsxs17(
3252
1607
  "div",
3253
1608
  {
3254
1609
  ...rest,
@@ -3263,7 +1618,7 @@ var MediaPlaceholder = ({
3263
1618
  className
3264
1619
  ),
3265
1620
  children: [
3266
- icon && /* @__PURE__ */ jsx38(
1621
+ icon && /* @__PURE__ */ jsx23(
3267
1622
  "div",
3268
1623
  {
3269
1624
  className: cn(
@@ -3274,9 +1629,9 @@ var MediaPlaceholder = ({
3274
1629
  children: icon
3275
1630
  }
3276
1631
  ),
3277
- (label || detail) && /* @__PURE__ */ jsxs25("div", { className: "polli:max-w-sm", children: [
3278
- label && /* @__PURE__ */ jsx38(Text, { as: "p", size: "sm", tone: "strong", weight: "semibold", children: label }),
3279
- detail && /* @__PURE__ */ jsx38(Text, { as: "p", size: "sm", tone: "soft", className: "polli:mt-1", children: detail })
1632
+ (label || detail) && /* @__PURE__ */ jsxs17("div", { className: "polli:max-w-sm", children: [
1633
+ label && /* @__PURE__ */ jsx23(Text, { as: "p", size: "sm", tone: "strong", weight: "semibold", children: label }),
1634
+ detail && /* @__PURE__ */ jsx23(Text, { as: "p", size: "sm", tone: "soft", className: "polli:mt-1", children: detail })
3280
1635
  ] }),
3281
1636
  children
3282
1637
  ]
@@ -3284,7 +1639,7 @@ var MediaPlaceholder = ({
3284
1639
  );
3285
1640
 
3286
1641
  // src/compositions/MultiSelect.tsx
3287
- import { jsx as jsx39, jsxs as jsxs26 } from "react/jsx-runtime";
1642
+ import { jsx as jsx24, jsxs as jsxs18 } from "react/jsx-runtime";
3288
1643
  var TRIGGER_BASE = "polli-control polli:inline-flex polli:min-h-8 polli:min-w-[140px] polli:items-center polli:gap-2 polli:rounded-full polli:px-3 polli:py-1.5 polli:text-xs polli:font-medium polli:transition-all polli:duration-200";
3289
1644
  var ROW_BASE = "polli-control polli:flex polli:w-full polli:items-center polli:gap-3 polli:px-3 polli:py-2 polli:text-left polli:text-xs polli:transition-colors";
3290
1645
  var CHECK_BASE = "polli:flex polli:h-4 polli:w-4 polli:flex-shrink-0 polli:items-center polli:justify-center polli:rounded polli:border polli:border-theme-border polli:text-xs";
@@ -3311,9 +1666,9 @@ var MultiSelect = ({
3311
1666
  };
3312
1667
  const selectAll = () => onChange([]);
3313
1668
  const displayText = disabled ? disabledText : isAllSelected ? placeholder : selected.length === 1 ? options.find((option) => option.value === selected[0])?.label ?? "1 selected" : `${selected.length} selected`;
3314
- const labelNode = label ? /* @__PURE__ */ jsx39("span", { className: "polli:text-xs polli:font-medium polli:text-theme-text-soft", children: label }) : null;
1669
+ const labelNode = label ? /* @__PURE__ */ jsx24("span", { className: "polli:text-xs polli:font-medium polli:text-theme-text-soft", children: label }) : null;
3315
1670
  if (disabled) {
3316
- return /* @__PURE__ */ jsxs26(
1671
+ return /* @__PURE__ */ jsxs18(
3317
1672
  "div",
3318
1673
  {
3319
1674
  className: cn(
@@ -3322,7 +1677,7 @@ var MultiSelect = ({
3322
1677
  ),
3323
1678
  children: [
3324
1679
  labelNode,
3325
- /* @__PURE__ */ jsx39(
1680
+ /* @__PURE__ */ jsx24(
3326
1681
  Tooltip,
3327
1682
  {
3328
1683
  triggerAs: "span",
@@ -3332,7 +1687,7 @@ var MultiSelect = ({
3332
1687
  "polli:inline-flex polli:cursor-not-allowed",
3333
1688
  fullWidth && "polli:min-w-0 polli:flex-1"
3334
1689
  ),
3335
- children: /* @__PURE__ */ jsxs26(
1690
+ children: /* @__PURE__ */ jsxs18(
3336
1691
  "button",
3337
1692
  {
3338
1693
  type: "button",
@@ -3344,8 +1699,8 @@ var MultiSelect = ({
3344
1699
  "polli:cursor-not-allowed polli:bg-theme-bg-active polli:opacity-50"
3345
1700
  ),
3346
1701
  children: [
3347
- /* @__PURE__ */ jsx39("span", { className: "polli:flex-1 polli:truncate polli:text-left polli:text-theme-text-strong", children: displayText }),
3348
- /* @__PURE__ */ jsx39(
1702
+ /* @__PURE__ */ jsx24("span", { className: "polli:flex-1 polli:truncate polli:text-left polli:text-theme-text-strong", children: displayText }),
1703
+ /* @__PURE__ */ jsx24(
3349
1704
  ChevronIcon,
3350
1705
  {
3351
1706
  expanded: false,
@@ -3361,7 +1716,7 @@ var MultiSelect = ({
3361
1716
  }
3362
1717
  );
3363
1718
  }
3364
- return /* @__PURE__ */ jsxs26(
1719
+ return /* @__PURE__ */ jsxs18(
3365
1720
  "div",
3366
1721
  {
3367
1722
  className: cn(
@@ -3370,12 +1725,12 @@ var MultiSelect = ({
3370
1725
  ),
3371
1726
  children: [
3372
1727
  labelNode,
3373
- /* @__PURE__ */ jsx39(
1728
+ /* @__PURE__ */ jsx24(
3374
1729
  Dropdown,
3375
1730
  {
3376
1731
  align,
3377
1732
  className: "polli:w-[min(20rem,calc(100vw-2rem))]",
3378
- trigger: (open) => /* @__PURE__ */ jsxs26(
1733
+ trigger: (open) => /* @__PURE__ */ jsxs18(
3379
1734
  "button",
3380
1735
  {
3381
1736
  type: "button",
@@ -3386,7 +1741,7 @@ var MultiSelect = ({
3386
1741
  open ? "polli:bg-theme-bg-hover" : "polli:bg-theme-bg-active polli:hover:bg-theme-bg-hover"
3387
1742
  ),
3388
1743
  children: [
3389
- /* @__PURE__ */ jsx39(
1744
+ /* @__PURE__ */ jsx24(
3390
1745
  "span",
3391
1746
  {
3392
1747
  className: cn(
@@ -3396,7 +1751,7 @@ var MultiSelect = ({
3396
1751
  children: displayText
3397
1752
  }
3398
1753
  ),
3399
- /* @__PURE__ */ jsx39(
1754
+ /* @__PURE__ */ jsx24(
3400
1755
  ChevronIcon,
3401
1756
  {
3402
1757
  expanded: open,
@@ -3409,8 +1764,8 @@ var MultiSelect = ({
3409
1764
  ]
3410
1765
  }
3411
1766
  ),
3412
- children: /* @__PURE__ */ jsxs26(ScrollArea, { className: "polli:max-h-64", children: [
3413
- /* @__PURE__ */ jsxs26(
1767
+ children: /* @__PURE__ */ jsxs18(ScrollArea, { className: "polli:max-h-64", children: [
1768
+ /* @__PURE__ */ jsxs18(
3414
1769
  "button",
3415
1770
  {
3416
1771
  type: "button",
@@ -3421,7 +1776,7 @@ var MultiSelect = ({
3421
1776
  isAllSelected ? "polli:bg-theme-bg-active polli:font-medium polli:text-theme-text-strong" : "polli:text-theme-text-base polli:hover:bg-theme-bg-subtle"
3422
1777
  ),
3423
1778
  children: [
3424
- /* @__PURE__ */ jsx39(
1779
+ /* @__PURE__ */ jsx24(
3425
1780
  "span",
3426
1781
  {
3427
1782
  "aria-hidden": "true",
@@ -3438,7 +1793,7 @@ var MultiSelect = ({
3438
1793
  ),
3439
1794
  options.map((opt) => {
3440
1795
  const isChecked = selected.includes(opt.value);
3441
- return /* @__PURE__ */ jsxs26(
1796
+ return /* @__PURE__ */ jsxs18(
3442
1797
  "button",
3443
1798
  {
3444
1799
  type: "button",
@@ -3449,7 +1804,7 @@ var MultiSelect = ({
3449
1804
  isChecked ? "polli:bg-theme-bg-active polli:text-theme-text-strong" : "polli:text-theme-text-base polli:hover:bg-theme-bg-subtle"
3450
1805
  ),
3451
1806
  children: [
3452
- /* @__PURE__ */ jsx39(
1807
+ /* @__PURE__ */ jsx24(
3453
1808
  "span",
3454
1809
  {
3455
1810
  "aria-hidden": "true",
@@ -3460,7 +1815,7 @@ var MultiSelect = ({
3460
1815
  children: isChecked && "\u2713"
3461
1816
  }
3462
1817
  ),
3463
- /* @__PURE__ */ jsx39("span", { className: "polli:min-w-0 polli:[overflow-wrap:anywhere]", children: opt.label })
1818
+ /* @__PURE__ */ jsx24("span", { className: "polli:min-w-0 polli:[overflow-wrap:anywhere]", children: opt.label })
3464
1819
  ]
3465
1820
  },
3466
1821
  opt.value
@@ -3475,7 +1830,7 @@ var MultiSelect = ({
3475
1830
  };
3476
1831
 
3477
1832
  // src/compositions/NavItem.tsx
3478
- import { jsx as jsx40, jsxs as jsxs27 } from "react/jsx-runtime";
1833
+ import { jsx as jsx25, jsxs as jsxs19 } from "react/jsx-runtime";
3479
1834
  var base = "polli-control polli:flex polli:items-center polli:gap-2 polli:rounded-full polli:px-3 polli:py-2 polli:text-left polli:text-sm polli:font-medium polli:whitespace-nowrap polli:transition-colors";
3480
1835
  var activeClasses = "polli:bg-theme-bg-active polli:text-theme-text-strong";
3481
1836
  var inactiveClasses = "polli:text-ink-800 polli:hover:bg-surface-opaque/60 polli:hover:text-ink-950";
@@ -3488,7 +1843,7 @@ function NavItem({
3488
1843
  ...rest
3489
1844
  }) {
3490
1845
  const Component = as || "button";
3491
- return /* @__PURE__ */ jsxs27(
1846
+ return /* @__PURE__ */ jsxs19(
3492
1847
  Component,
3493
1848
  {
3494
1849
  "aria-current": active ? "page" : void 0,
@@ -3499,7 +1854,7 @@ function NavItem({
3499
1854
  ),
3500
1855
  ...rest,
3501
1856
  children: [
3502
- Icon ? /* @__PURE__ */ jsx40(Icon, { className: "polli:h-4 polli:w-4 polli:shrink-0" }) : null,
1857
+ Icon ? /* @__PURE__ */ jsx25(Icon, { className: "polli:h-4 polli:w-4 polli:shrink-0" }) : null,
3503
1858
  children
3504
1859
  ]
3505
1860
  }
@@ -3507,7 +1862,7 @@ function NavItem({
3507
1862
  }
3508
1863
 
3509
1864
  // src/compositions/PeriodPicker.tsx
3510
- import { useEffect as useEffect7, useMemo as useMemo2, useRef as useRef7, useState as useState6 } from "react";
1865
+ import { useEffect as useEffect4, useMemo as useMemo2, useRef as useRef3, useState as useState3 } from "react";
3511
1866
 
3512
1867
  // src/lib/period.ts
3513
1868
  var MS_PER_DAY = 864e5;
@@ -3614,112 +1969,8 @@ function isPeriodSelectable(selection, minDate = /* @__PURE__ */ new Date(0), ma
3614
1969
  return end > minDate && start <= maxDate;
3615
1970
  }
3616
1971
 
3617
- // src/primitives/TabButton.tsx
3618
- import { jsx as jsx41, jsxs as jsxs28 } from "react/jsx-runtime";
3619
- var tabButtonBaseClass = "polli-control polli:inline-flex polli:items-center polli:justify-center polli:rounded-full polli:font-medium polli:leading-normal polli:transition-colors polli:duration-200";
3620
- var tabButtonSizeClass = {
3621
- xs: "polli:px-2.5 polli:py-1 polli:text-xs",
3622
- lg: "polli:px-5 polli:py-2 polli:text-lg",
3623
- md: "polli:px-4 polli:py-1.5 polli:text-base",
3624
- sm: "polli:px-3 polli:py-1.5 polli:text-sm"
3625
- };
3626
- var variantClasses3 = {
3627
- // The default tab look: borderless and monochrome. Selected uses `bg-active`
3628
- // — the same light resting fill as the site's normal buttons. Both states
3629
- // deepen to `bg-hover` and use the theme's hover label color. Non-selected
3630
- // uses the quiet `bg-subtle` token until then.
3631
- soft: {
3632
- base: "",
3633
- active: "polli:bg-theme-bg-active polli:text-theme-text-strong polli:hover:bg-theme-bg-hover polli:hover:text-theme-text-hover",
3634
- mixed: "polli:bg-theme-bg-active/45 polli:text-theme-text-strong polli:hover:bg-theme-bg-hover polli:hover:text-theme-text-hover",
3635
- inactive: "polli:bg-theme-bg-subtle polli:text-theme-text-base polli:hover:bg-theme-bg-hover polli:hover:text-theme-text-hover"
3636
- },
3637
- // Transparent until hovered or selected — for multi-select toggles and
3638
- // inline rows where a filled idle pill would read as a hard selection.
3639
- ghost: {
3640
- base: "polli:border polli:border-transparent",
3641
- active: "polli:bg-theme-bg-active polli:text-theme-text-strong polli:hover:bg-theme-bg-hover polli:hover:text-theme-text-hover",
3642
- mixed: "polli:bg-theme-bg-active/45 polli:text-theme-text-strong polli:hover:bg-theme-bg-hover polli:hover:text-theme-text-hover",
3643
- inactive: "polli:bg-transparent polli:text-theme-text-base polli:hover:bg-theme-bg-hover polli:hover:text-theme-text-hover"
3644
- }
3645
- };
3646
- var intentClasses5 = {
3647
- amber: {
3648
- active: "polli:bg-paid-pale polli:text-paid-deep",
3649
- inactive: "polli:bg-transparent polli:text-theme-text-base polli:hover:bg-paid-pale/60"
3650
- },
3651
- green: {
3652
- active: "polli:bg-tier-pale polli:text-tier-deep",
3653
- inactive: "polli:bg-transparent polli:text-tier-deep polli:hover:bg-tier-pale/60"
3654
- },
3655
- // Site navigation: the current page is the one full brand pill; hover
3656
- // only previews it, so "where you are" never doubles up.
3657
- brand: {
3658
- active: "polli:bg-brand-accent polli:font-bold polli:text-brand-dark",
3659
- inactive: "polli:bg-transparent polli:font-bold polli:text-theme-text-strong polli:hover:bg-brand-accent/60 polli:hover:text-brand-dark"
3660
- }
3661
- };
3662
- function TabButton({
3663
- as,
3664
- active,
3665
- onClick,
3666
- children,
3667
- icon,
3668
- size = "md",
3669
- variant = "soft",
3670
- intent,
3671
- detail,
3672
- ariaLabel,
3673
- disabled = false,
3674
- className,
3675
- ...rest
3676
- }) {
3677
- const Component = as || "button";
3678
- const isButton = Component === "button";
3679
- const colors = intent === "neutral" ? variantClasses3.soft : intent ? {
3680
- ...intentClasses5[intent],
3681
- mixed: intentClasses5[intent].active
3682
- } : variantClasses3[variant];
3683
- const handleClick = disabled ? (event) => {
3684
- event.preventDefault();
3685
- event.stopPropagation();
3686
- } : onClick;
3687
- return /* @__PURE__ */ jsxs28(
3688
- Component,
3689
- {
3690
- ...rest,
3691
- ...isButton ? { type: "button", disabled } : {},
3692
- ...!isButton && disabled ? { "aria-disabled": true, tabIndex: -1 } : {},
3693
- ...Component === "a" && disabled ? { href: void 0 } : {},
3694
- onClick: handleClick,
3695
- ...ariaLabel !== void 0 ? { "aria-label": ariaLabel } : {},
3696
- ...isButton ? { "aria-pressed": active } : { "aria-current": active === true ? "page" : void 0 },
3697
- className: cn(
3698
- tabButtonBaseClass,
3699
- variantClasses3[variant].base,
3700
- active === "mixed" ? colors.mixed : active ? colors.active : colors.inactive,
3701
- disabled && "polli:pointer-events-none polli:cursor-not-allowed polli:opacity-50",
3702
- tabButtonSizeClass[size],
3703
- className
3704
- ),
3705
- children: [
3706
- icon && /* @__PURE__ */ jsx41(
3707
- "span",
3708
- {
3709
- "aria-hidden": "true",
3710
- className: "polli:mr-1.5 polli:flex polli:size-4 polli:shrink-0 polli:[&>svg]:size-full",
3711
- children: icon
3712
- }
3713
- ),
3714
- children,
3715
- detail != null && /* @__PURE__ */ jsx41("span", { className: "polli:ml-1 polli:font-normal polli:opacity-70", children: detail })
3716
- ]
3717
- }
3718
- );
3719
- }
3720
-
3721
1972
  // src/compositions/PeriodPicker.tsx
3722
- import { Fragment as Fragment9, jsx as jsx42, jsxs as jsxs29 } from "react/jsx-runtime";
1973
+ import { Fragment as Fragment6, jsx as jsx26, jsxs as jsxs20 } from "react/jsx-runtime";
3723
1974
  var WEEKDAY_LABELS = ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"];
3724
1975
  var MONTH_LABELS = [
3725
1976
  "Jan",
@@ -3809,12 +2060,12 @@ var PeriodPicker = ({
3809
2060
  trigger,
3810
2061
  header
3811
2062
  }) => {
3812
- const [open, setOpen] = useState6(false);
3813
- const [viewDate, setViewDate] = useState6(() => periodDate(value));
3814
- const [anchorDate, setAnchorDate] = useState6(() => periodDate(value));
3815
- const emittedSelectionRef = useRef7(null);
2063
+ const [open, setOpen] = useState3(false);
2064
+ const [viewDate, setViewDate] = useState3(() => periodDate(value));
2065
+ const [anchorDate, setAnchorDate] = useState3(() => periodDate(value));
2066
+ const emittedSelectionRef = useRef3(null);
3816
2067
  const { granularity, period } = value;
3817
- useEffect7(() => {
2068
+ useEffect4(() => {
3818
2069
  const currentSelectionKey = selectionKey({ granularity, period });
3819
2070
  if (emittedSelectionRef.current === currentSelectionKey) {
3820
2071
  emittedSelectionRef.current = null;
@@ -3848,13 +2099,13 @@ var PeriodPicker = ({
3848
2099
  setOpen(false);
3849
2100
  };
3850
2101
  const viewLabel = value.granularity === "month" ? String(viewDate.getUTCFullYear()) : formatMonthYear(viewDate, "long");
3851
- return /* @__PURE__ */ jsxs29(
2102
+ return /* @__PURE__ */ jsxs20(
3852
2103
  "div",
3853
2104
  {
3854
2105
  className: trigger ? "polli:contents" : "polli:flex polli:w-full polli:flex-wrap polli:items-center polli:gap-2",
3855
2106
  children: [
3856
- !trigger && /* @__PURE__ */ jsx42("div", { className: "polli:flex polli:flex-wrap polli:gap-1.5", children: ["day", "week", "month"].map(
3857
- (granularity2) => /* @__PURE__ */ jsx42(
2107
+ !trigger && /* @__PURE__ */ jsx26("div", { className: "polli:flex polli:flex-wrap polli:gap-1.5", children: ["day", "week", "month"].map(
2108
+ (granularity2) => /* @__PURE__ */ jsx26(
3858
2109
  TabButton,
3859
2110
  {
3860
2111
  active: value.granularity === granularity2,
@@ -3864,13 +2115,13 @@ var PeriodPicker = ({
3864
2115
  granularity2
3865
2116
  )
3866
2117
  ) }),
3867
- /* @__PURE__ */ jsxs29(
2118
+ /* @__PURE__ */ jsxs20(
3868
2119
  Dropdown,
3869
2120
  {
3870
2121
  open,
3871
2122
  onOpenChange: setOpen,
3872
2123
  className: "polli:w-[320px] polli:max-w-[calc(100vw-2rem)] polli:rounded-xl polli:border polli:border-divider polli:bg-surface-opaque polli:p-3.5 polli:shadow-lg",
3873
- trigger: trigger ?? ((isOpen) => /* @__PURE__ */ jsxs29(
2124
+ trigger: trigger ?? ((isOpen) => /* @__PURE__ */ jsxs20(
3874
2125
  "button",
3875
2126
  {
3876
2127
  type: "button",
@@ -3882,15 +2133,15 @@ var PeriodPicker = ({
3882
2133
  isOpen && "polli:bg-theme-bg-hover polli:text-theme-text-strong"
3883
2134
  ),
3884
2135
  children: [
3885
- /* @__PURE__ */ jsx42("span", { className: "polli:truncate", children: summaryLabel }),
3886
- /* @__PURE__ */ jsx42(ChevronIcon, { expanded: isOpen })
2136
+ /* @__PURE__ */ jsx26("span", { className: "polli:truncate", children: summaryLabel }),
2137
+ /* @__PURE__ */ jsx26(ChevronIcon, { expanded: isOpen })
3887
2138
  ]
3888
2139
  }
3889
2140
  )),
3890
2141
  children: [
3891
2142
  header,
3892
- /* @__PURE__ */ jsxs29("div", { className: "polli:mb-3 polli:flex polli:items-center polli:justify-between", children: [
3893
- /* @__PURE__ */ jsx42(
2143
+ /* @__PURE__ */ jsxs20("div", { className: "polli:mb-3 polli:flex polli:items-center polli:justify-between", children: [
2144
+ /* @__PURE__ */ jsx26(
3894
2145
  "button",
3895
2146
  {
3896
2147
  type: "button",
@@ -3904,8 +2155,8 @@ var PeriodPicker = ({
3904
2155
  children: "<"
3905
2156
  }
3906
2157
  ),
3907
- /* @__PURE__ */ jsx42("div", { className: "polli:text-base polli:font-bold polli:text-theme-text-base", children: viewLabel }),
3908
- /* @__PURE__ */ jsx42(
2158
+ /* @__PURE__ */ jsx26("div", { className: "polli:text-base polli:font-bold polli:text-theme-text-base", children: viewLabel }),
2159
+ /* @__PURE__ */ jsx26(
3909
2160
  "button",
3910
2161
  {
3911
2162
  type: "button",
@@ -3920,7 +2171,7 @@ var PeriodPicker = ({
3920
2171
  }
3921
2172
  )
3922
2173
  ] }),
3923
- value.granularity === "month" ? /* @__PURE__ */ jsx42("div", { className: "polli:grid polli:grid-cols-3 polli:gap-1.5", children: MONTH_LABELS.map((label, monthIndex) => {
2174
+ value.granularity === "month" ? /* @__PURE__ */ jsx26("div", { className: "polli:grid polli:grid-cols-3 polli:gap-1.5", children: MONTH_LABELS.map((label, monthIndex) => {
3924
2175
  const date = new Date(
3925
2176
  Date.UTC(
3926
2177
  viewDate.getUTCFullYear(),
@@ -3939,7 +2190,7 @@ var PeriodPicker = ({
3939
2190
  year: "numeric"
3940
2191
  });
3941
2192
  const selected = date.getUTCFullYear() === selectedWindow.start.getUTCFullYear() && date.getUTCMonth() === selectedWindow.start.getUTCMonth();
3942
- return /* @__PURE__ */ jsx42(
2193
+ return /* @__PURE__ */ jsx26(
3943
2194
  "button",
3944
2195
  {
3945
2196
  type: "button",
@@ -3956,9 +2207,9 @@ var PeriodPicker = ({
3956
2207
  },
3957
2208
  label
3958
2209
  );
3959
- }) }) : /* @__PURE__ */ jsxs29(Fragment9, { children: [
3960
- /* @__PURE__ */ jsx42("div", { className: "polli:mb-1 polli:grid polli:grid-cols-7 polli:gap-1 polli:text-center polli:text-xs polli:font-bold polli:uppercase polli:text-theme-text-muted", children: WEEKDAY_LABELS.map((label) => /* @__PURE__ */ jsx42("div", { children: label }, label)) }),
3961
- /* @__PURE__ */ jsx42("div", { className: "polli:grid polli:grid-cols-7 polli:gap-1", children: dates.map((date) => {
2210
+ }) }) : /* @__PURE__ */ jsxs20(Fragment6, { children: [
2211
+ /* @__PURE__ */ jsx26("div", { className: "polli:mb-1 polli:grid polli:grid-cols-7 polli:gap-1 polli:text-center polli:text-xs polli:font-bold polli:uppercase polli:text-theme-text-muted", children: WEEKDAY_LABELS.map((label) => /* @__PURE__ */ jsx26("div", { children: label }, label)) }),
2212
+ /* @__PURE__ */ jsx26("div", { className: "polli:grid polli:grid-cols-7 polli:gap-1", children: dates.map((date) => {
3962
2213
  const inCurrentMonth = date.getUTCMonth() === viewDate.getUTCMonth();
3963
2214
  const selectable = isPeriodSelectable(
3964
2215
  periodFromDate(value.granularity, date),
@@ -3976,7 +2227,7 @@ var PeriodPicker = ({
3976
2227
  }
3977
2228
  )}`;
3978
2229
  const selected = value.granularity === "day" ? sameUtcDay(date, selectedWindow.start) : date >= selectedWindow.start && date < selectedWindow.end;
3979
- return /* @__PURE__ */ jsx42(
2230
+ return /* @__PURE__ */ jsx26(
3980
2231
  "button",
3981
2232
  {
3982
2233
  type: "button",
@@ -4006,7 +2257,7 @@ var PeriodPicker = ({
4006
2257
  };
4007
2258
 
4008
2259
  // src/compositions/Section.tsx
4009
- import { Fragment as Fragment10, jsx as jsx43, jsxs as jsxs30 } from "react/jsx-runtime";
2260
+ import { Fragment as Fragment7, jsx as jsx27, jsxs as jsxs21 } from "react/jsx-runtime";
4010
2261
  var Section = ({
4011
2262
  title,
4012
2263
  id,
@@ -4019,13 +2270,13 @@ var Section = ({
4019
2270
  children,
4020
2271
  className
4021
2272
  }) => {
4022
- const body = /* @__PURE__ */ jsxs30(Fragment10, { children: [
4023
- intro && /* @__PURE__ */ jsx43(Text, { as: "div", className: "polli:max-w-2xl", children: intro }),
2273
+ const body = /* @__PURE__ */ jsxs21(Fragment7, { children: [
2274
+ intro && /* @__PURE__ */ jsx27(Text, { as: "div", className: "polli:max-w-2xl", children: intro }),
4024
2275
  children
4025
2276
  ] });
4026
- const content = /* @__PURE__ */ jsxs30(Fragment10, { children: [
4027
- /* @__PURE__ */ jsxs30("header", { className: "polli:flex polli:flex-wrap polli:items-center polli:justify-between polli:gap-3", children: [
4028
- /* @__PURE__ */ jsx43(
2277
+ const content = /* @__PURE__ */ jsxs21(Fragment7, { children: [
2278
+ /* @__PURE__ */ jsxs21("header", { className: "polli:flex polli:flex-wrap polli:items-center polli:justify-between polli:gap-3", children: [
2279
+ /* @__PURE__ */ jsx27(
4029
2280
  Heading,
4030
2281
  {
4031
2282
  as: "h2",
@@ -4034,11 +2285,11 @@ var Section = ({
4034
2285
  children: title
4035
2286
  }
4036
2287
  ),
4037
- action && /* @__PURE__ */ jsx43("div", { className: cn("polli:shrink-0", actionClassName), children: action })
2288
+ action && /* @__PURE__ */ jsx27("div", { className: cn("polli:shrink-0", actionClassName), children: action })
4038
2289
  ] }),
4039
2290
  body
4040
2291
  ] });
4041
- return /* @__PURE__ */ jsx43("section", { id, className: cn("polli:scroll-mt-10", className), children: framed ? /* @__PURE__ */ jsx43(
2292
+ return /* @__PURE__ */ jsx27("section", { id, className: cn("polli:scroll-mt-10", className), children: framed ? /* @__PURE__ */ jsx27(
4042
2293
  Surface,
4043
2294
  {
4044
2295
  variant: "panel",
@@ -4048,11 +2299,11 @@ var Section = ({
4048
2299
  ),
4049
2300
  children: content
4050
2301
  }
4051
- ) : /* @__PURE__ */ jsx43("div", { className: "polli:flex polli:flex-col polli:gap-4", children: content }) });
2302
+ ) : /* @__PURE__ */ jsx27("div", { className: "polli:flex polli:flex-col polli:gap-4", children: content }) });
4052
2303
  };
4053
2304
 
4054
2305
  // src/compositions/SocialCount.tsx
4055
- import { jsx as jsx44, jsxs as jsxs31 } from "react/jsx-runtime";
2306
+ import { jsx as jsx28, jsxs as jsxs22 } from "react/jsx-runtime";
4056
2307
  var networks = {
4057
2308
  discord: {
4058
2309
  Icon: DiscordIcon,
@@ -4073,7 +2324,7 @@ function SocialCount({
4073
2324
  }) {
4074
2325
  const Component = as || "a";
4075
2326
  const { Icon, className: colours } = networks[network];
4076
- return /* @__PURE__ */ jsxs31(
2327
+ return /* @__PURE__ */ jsxs22(
4077
2328
  Component,
4078
2329
  {
4079
2330
  ...rest,
@@ -4083,7 +2334,7 @@ function SocialCount({
4083
2334
  className
4084
2335
  ),
4085
2336
  children: [
4086
- showIcon ? /* @__PURE__ */ jsx44(
2337
+ showIcon ? /* @__PURE__ */ jsx28(
4087
2338
  Icon,
4088
2339
  {
4089
2340
  "aria-hidden": "true",
@@ -4097,7 +2348,7 @@ function SocialCount({
4097
2348
  }
4098
2349
 
4099
2350
  // src/compositions/StatCard.tsx
4100
- import { jsx as jsx45, jsxs as jsxs32 } from "react/jsx-runtime";
2351
+ import { jsx as jsx29, jsxs as jsxs23 } from "react/jsx-runtime";
4101
2352
  var valueVariantClasses = {
4102
2353
  stat: "polli:min-h-8 polli:text-2xl polli:font-bold polli:leading-tight polli:tabular-nums polli:text-theme-text-base",
4103
2354
  fact: "polli:text-sm polli:leading-6 polli:text-theme-text-soft",
@@ -4112,9 +2363,9 @@ var StatCard = ({
4112
2363
  labelClassName,
4113
2364
  valueClassName,
4114
2365
  detailClassName
4115
- }) => variant === "display" ? /* @__PURE__ */ jsxs32("div", { className: cn("polli:flex polli:flex-col polli:gap-1", className), children: [
4116
- /* @__PURE__ */ jsx45("div", { className: cn(valueVariantClasses.display, valueClassName), children: value }),
4117
- /* @__PURE__ */ jsx45(
2366
+ }) => variant === "display" ? /* @__PURE__ */ jsxs23("div", { className: cn("polli:flex polli:flex-col polli:gap-1", className), children: [
2367
+ /* @__PURE__ */ jsx29("div", { className: cn(valueVariantClasses.display, valueClassName), children: value }),
2368
+ /* @__PURE__ */ jsx29(
4118
2369
  Text,
4119
2370
  {
4120
2371
  as: "div",
@@ -4127,8 +2378,8 @@ var StatCard = ({
4127
2378
  children: label
4128
2379
  }
4129
2380
  )
4130
- ] }) : /* @__PURE__ */ jsxs32("div", { className: cn("polli:text-sm", className), children: [
4131
- /* @__PURE__ */ jsx45(
2381
+ ] }) : /* @__PURE__ */ jsxs23("div", { className: cn("polli:text-sm", className), children: [
2382
+ /* @__PURE__ */ jsx29(
4132
2383
  Text,
4133
2384
  {
4134
2385
  as: "div",
@@ -4142,7 +2393,7 @@ var StatCard = ({
4142
2393
  children: label
4143
2394
  }
4144
2395
  ),
4145
- /* @__PURE__ */ jsx45(
2396
+ /* @__PURE__ */ jsx29(
4146
2397
  "div",
4147
2398
  {
4148
2399
  className: cn(
@@ -4153,7 +2404,7 @@ var StatCard = ({
4153
2404
  children: value
4154
2405
  }
4155
2406
  ),
4156
- detail && /* @__PURE__ */ jsx45(
2407
+ detail && /* @__PURE__ */ jsx29(
4157
2408
  Text,
4158
2409
  {
4159
2410
  as: "div",
@@ -4166,47 +2417,8 @@ var StatCard = ({
4166
2417
  ] });
4167
2418
 
4168
2419
  // src/compositions/ToolCallDetails.tsx
4169
- import { Fragment as Fragment11, useState as useState7 } from "react";
4170
-
4171
- // src/primitives/InlineLink.tsx
4172
- import { jsx as jsx46, jsxs as jsxs33 } from "react/jsx-runtime";
4173
- function InlineLink({
4174
- as,
4175
- external,
4176
- showIcon = true,
4177
- size = "inherit",
4178
- tone = "accent",
4179
- className,
4180
- children,
4181
- ...linkProps
4182
- }) {
4183
- const Component = as || "a";
4184
- const isExternal = external ?? isExternalHref(linkProps.href);
4185
- return /* @__PURE__ */ jsxs33(
4186
- Component,
4187
- {
4188
- target: isExternal && as !== "button" ? "_blank" : void 0,
4189
- rel: isExternal && as !== "button" ? "noopener noreferrer" : void 0,
4190
- className: ["polli-link", className].filter(Boolean).join(" "),
4191
- "data-size": size,
4192
- "data-tone": tone,
4193
- ...linkProps,
4194
- children: [
4195
- children,
4196
- showIcon && isExternal && /* @__PURE__ */ jsx46(
4197
- ExternalLinkIcon,
4198
- {
4199
- "aria-hidden": "true",
4200
- className: "polli-link-external-icon"
4201
- }
4202
- )
4203
- ]
4204
- }
4205
- );
4206
- }
4207
-
4208
- // src/compositions/ToolCallDetails.tsx
4209
- import { jsx as jsx47, jsxs as jsxs34 } from "react/jsx-runtime";
2420
+ import { Fragment as Fragment8, useState as useState4 } from "react";
2421
+ import { jsx as jsx30, jsxs as jsxs24 } from "react/jsx-runtime";
4210
2422
  function formattedValue(value) {
4211
2423
  if (typeof value === "string") return value;
4212
2424
  try {
@@ -4230,8 +2442,8 @@ function linkedValue(value) {
4230
2442
  if (href.endsWith(")")) extraClosingParens--;
4231
2443
  href = href.slice(0, -1);
4232
2444
  }
4233
- return /* @__PURE__ */ jsxs34(Fragment11, { children: [
4234
- /* @__PURE__ */ jsx47(InlineLink, { href, children: href }),
2445
+ return /* @__PURE__ */ jsxs24(Fragment8, { children: [
2446
+ /* @__PURE__ */ jsx30(InlineLink, { href, children: href }),
4235
2447
  segment.slice(href.length)
4236
2448
  ] }, key);
4237
2449
  });
@@ -4240,7 +2452,7 @@ function ToolValue({
4240
2452
  value,
4241
2453
  error = false
4242
2454
  }) {
4243
- return /* @__PURE__ */ jsx47(
2455
+ return /* @__PURE__ */ jsx30(
4244
2456
  "pre",
4245
2457
  {
4246
2458
  className: cn(
@@ -4261,7 +2473,7 @@ var STATUS_LABELS = {
4261
2473
  denied: "Denied"
4262
2474
  };
4263
2475
  function ToolStatus({ status }) {
4264
- const icon = status === "complete" || status === "approval-responded" ? /* @__PURE__ */ jsx47(CheckIcon, { className: "polli:size-3" }) : status === "error" || status === "denied" ? /* @__PURE__ */ jsx47(XIcon, { className: "polli:size-3" }) : /* @__PURE__ */ jsx47(
2476
+ const icon = status === "complete" || status === "approval-responded" ? /* @__PURE__ */ jsx30(CheckIcon, { className: "polli:size-3" }) : status === "error" || status === "denied" ? /* @__PURE__ */ jsx30(XIcon, { className: "polli:size-3" }) : /* @__PURE__ */ jsx30(
4265
2477
  ClockIcon,
4266
2478
  {
4267
2479
  className: cn(
@@ -4270,7 +2482,7 @@ function ToolStatus({ status }) {
4270
2482
  )
4271
2483
  }
4272
2484
  );
4273
- return /* @__PURE__ */ jsxs34(
2485
+ return /* @__PURE__ */ jsxs24(
4274
2486
  "span",
4275
2487
  {
4276
2488
  "data-status": status,
@@ -4295,8 +2507,8 @@ function ToolCallDetails({
4295
2507
  className
4296
2508
  }) {
4297
2509
  const result = error === void 0 ? output : error;
4298
- const [open, setOpen] = useState7(defaultOpen);
4299
- return /* @__PURE__ */ jsxs34(
2510
+ const [open, setOpen] = useState4(defaultOpen);
2511
+ return /* @__PURE__ */ jsxs24(
4300
2512
  "div",
4301
2513
  {
4302
2514
  "data-tool-status": status,
@@ -4305,18 +2517,18 @@ function ToolCallDetails({
4305
2517
  className
4306
2518
  ),
4307
2519
  children: [
4308
- /* @__PURE__ */ jsxs34(
2520
+ /* @__PURE__ */ jsxs24(
4309
2521
  "button",
4310
2522
  {
4311
2523
  type: "button",
4312
2524
  "aria-expanded": open,
4313
- onClick: () => setOpen((current2) => !current2),
2525
+ onClick: () => setOpen((current) => !current),
4314
2526
  className: "polli-control polli:flex polli:w-full polli:cursor-pointer polli:items-center polli:gap-2 polli:px-3 polli:py-2.5 polli:text-left polli:hover:bg-theme-bg-hover/50",
4315
2527
  children: [
4316
- /* @__PURE__ */ jsx47("span", { className: "polli:flex polli:size-7 polli:shrink-0 polli:items-center polli:justify-center polli:rounded-lg polli:bg-theme-bg-active polli:text-theme-text-strong", children: /* @__PURE__ */ jsx47(ToolIcon, { className: "polli:size-3.5" }) }),
4317
- /* @__PURE__ */ jsx47("code", { className: "polli:min-w-0 polli:truncate polli:text-xs polli:font-semibold polli:text-theme-text-strong", children: name }),
4318
- /* @__PURE__ */ jsx47(ToolStatus, { status }),
4319
- /* @__PURE__ */ jsx47(
2528
+ /* @__PURE__ */ jsx30("span", { className: "polli:flex polli:size-7 polli:shrink-0 polli:items-center polli:justify-center polli:rounded-lg polli:bg-theme-bg-active polli:text-theme-text-strong", children: /* @__PURE__ */ jsx30(ToolIcon, { className: "polli:size-3.5" }) }),
2529
+ /* @__PURE__ */ jsx30("code", { className: "polli:min-w-0 polli:truncate polli:text-xs polli:font-semibold polli:text-theme-text-strong", children: name }),
2530
+ /* @__PURE__ */ jsx30(ToolStatus, { status }),
2531
+ /* @__PURE__ */ jsx30(
4320
2532
  ChevronIcon,
4321
2533
  {
4322
2534
  expanded: open,
@@ -4326,14 +2538,14 @@ function ToolCallDetails({
4326
2538
  ]
4327
2539
  }
4328
2540
  ),
4329
- open && /* @__PURE__ */ jsxs34("div", { className: "polli:flex polli:flex-col polli:gap-4 polli:border-theme-border/30 polli:border-t polli:bg-theme-bg-pale/35 polli:px-3 polli:py-3", children: [
4330
- input !== void 0 && /* @__PURE__ */ jsxs34("div", { className: "polli:flex polli:flex-col polli:gap-1", children: [
4331
- /* @__PURE__ */ jsx47(Text, { size: "xs", tone: "muted", weight: "bold", children: "Parameters" }),
4332
- /* @__PURE__ */ jsx47(ToolValue, { value: input })
2541
+ open && /* @__PURE__ */ jsxs24("div", { className: "polli:flex polli:flex-col polli:gap-4 polli:border-theme-border/30 polli:border-t polli:bg-theme-bg-pale/35 polli:px-3 polli:py-3", children: [
2542
+ input !== void 0 && /* @__PURE__ */ jsxs24("div", { className: "polli:flex polli:flex-col polli:gap-1", children: [
2543
+ /* @__PURE__ */ jsx30(Text, { size: "xs", tone: "muted", weight: "bold", children: "Parameters" }),
2544
+ /* @__PURE__ */ jsx30(ToolValue, { value: input })
4333
2545
  ] }),
4334
- result !== void 0 && /* @__PURE__ */ jsxs34("div", { className: "polli:flex polli:flex-col polli:gap-1", children: [
4335
- /* @__PURE__ */ jsx47(Text, { size: "xs", tone: "muted", weight: "bold", children: error === void 0 ? "Result" : "Error" }),
4336
- /* @__PURE__ */ jsx47(
2546
+ result !== void 0 && /* @__PURE__ */ jsxs24("div", { className: "polli:flex polli:flex-col polli:gap-1", children: [
2547
+ /* @__PURE__ */ jsx30(Text, { size: "xs", tone: "muted", weight: "bold", children: error === void 0 ? "Result" : "Error" }),
2548
+ /* @__PURE__ */ jsx30(
4337
2549
  ToolValue,
4338
2550
  {
4339
2551
  value: result,
@@ -4348,19 +2560,19 @@ function ToolCallDetails({
4348
2560
  }
4349
2561
 
4350
2562
  // src/lib/cn-app.ts
4351
- import { clsx as clsx2 } from "clsx";
4352
- import { extendTailwindMerge as extendTailwindMerge2 } from "tailwind-merge";
4353
- var twMerge2 = extendTailwindMerge2({
2563
+ import { clsx } from "clsx";
2564
+ import { extendTailwindMerge } from "tailwind-merge";
2565
+ var twMerge = extendTailwindMerge({
4354
2566
  extend: { theme: { text: ["micro"] } }
4355
2567
  });
4356
2568
  function cn2(...inputs) {
4357
- return twMerge2(clsx2(...inputs));
2569
+ return twMerge(clsx(...inputs));
4358
2570
  }
4359
2571
 
4360
2572
  // src/lib/use-scroll-lock.ts
4361
- import { useEffect as useEffect8 } from "react";
2573
+ import { useEffect as useEffect5 } from "react";
4362
2574
  function useScrollLock(enabled = true) {
4363
- useEffect8(() => {
2575
+ useEffect5(() => {
4364
2576
  if (!enabled) return;
4365
2577
  const originalBody = document.body.style.overflow;
4366
2578
  const originalHtml = document.documentElement.style.overflow;
@@ -4374,13 +2586,13 @@ function useScrollLock(enabled = true) {
4374
2586
  }
4375
2587
 
4376
2588
  // src/primitives/ButtonGroup.tsx
4377
- import { jsx as jsx48 } from "react/jsx-runtime";
2589
+ import { jsx as jsx31 } from "react/jsx-runtime";
4378
2590
  var ButtonGroup = ({
4379
2591
  className,
4380
2592
  children,
4381
2593
  role = "group",
4382
2594
  ...rest
4383
- }) => /* @__PURE__ */ jsx48(
2595
+ }) => /* @__PURE__ */ jsx31(
4384
2596
  "div",
4385
2597
  {
4386
2598
  ...rest,
@@ -4393,234 +2605,11 @@ var ButtonGroup = ({
4393
2605
  }
4394
2606
  );
4395
2607
 
4396
- // src/primitives/ColorModeToggle.tsx
4397
- import { useSyncExternalStore } from "react";
4398
-
4399
- // src/primitives/Switch.tsx
4400
- import { jsx as jsx49, jsxs as jsxs35 } from "react/jsx-runtime";
4401
- var sizes = {
4402
- sm: {
4403
- track: "polli:h-7 polli:w-[52px]",
4404
- thumb: "polli:h-5 polli:w-5",
4405
- travel: "polli:translate-x-6",
4406
- icon: "polli:h-3.5 polli:w-3.5",
4407
- ghostOff: "polli:right-2",
4408
- ghostOn: "polli:left-2"
4409
- },
4410
- md: {
4411
- track: "polli:h-9 polli:w-16",
4412
- thumb: "polli:h-7 polli:w-7",
4413
- travel: "polli:translate-x-7",
4414
- icon: "polli:h-4 polli:w-4",
4415
- ghostOff: "polli:right-[9px]",
4416
- ghostOn: "polli:left-[9px]"
4417
- },
4418
- lg: {
4419
- track: "polli:h-12 polli:w-[88px]",
4420
- thumb: "polli:h-10 polli:w-10",
4421
- travel: "polli:translate-x-10",
4422
- icon: "polli:h-5 polli:w-5",
4423
- ghostOff: "polli:right-[13px]",
4424
- ghostOn: "polli:left-[13px]"
4425
- }
4426
- };
4427
- var trackClasses = {
4428
- off: "polli:border-theme-text-strong/15 polli:bg-theme-bg-subtle polli:hover:border-theme-text-strong/30",
4429
- on: "polli:border-tier-soft polli:bg-tier-soft",
4430
- invalid: "polli:border-intent-danger-text polli:bg-intent-danger-bg-light",
4431
- choice: "polli:border-theme-text-strong/10 polli:bg-surface-opaque"
4432
- };
4433
- var thumbClasses = {
4434
- off: "polli:bg-theme-text-muted/60 polli:text-app-bg",
4435
- on: "polli:bg-intent-success-text-on-bright",
4436
- invalid: "polli:bg-intent-danger-text polli:text-app-bg",
4437
- choice: "polli:bg-app-bg polli:text-theme-text-soft"
4438
- };
4439
- var Switch = ({
4440
- checked,
4441
- onChange,
4442
- status,
4443
- ariaLabel,
4444
- disabled = false,
4445
- size = "md",
4446
- icons,
4447
- className
4448
- }) => {
4449
- const geometry = sizes[size];
4450
- const look = icons ? "choice" : status ?? (checked ? "on" : "off");
4451
- return /* @__PURE__ */ jsxs35(
4452
- "button",
4453
- {
4454
- type: "button",
4455
- role: "switch",
4456
- "aria-checked": checked,
4457
- "aria-label": ariaLabel ?? (checked ? "Turn off toggle" : "Turn on toggle"),
4458
- onClick: () => onChange(!checked),
4459
- disabled,
4460
- className: cn(
4461
- "polli-control polli:relative polli:inline-block polli:shrink-0 polli:cursor-pointer polli:rounded-full polli:border polli:transition-colors polli:disabled:cursor-not-allowed polli:disabled:opacity-60",
4462
- geometry.track,
4463
- trackClasses[look],
4464
- className
4465
- ),
4466
- children: [
4467
- icons && /* @__PURE__ */ jsx49(
4468
- "span",
4469
- {
4470
- "aria-hidden": "true",
4471
- className: cn(
4472
- "polli:absolute polli:top-1/2 polli:flex polli:-translate-y-1/2 polli:text-theme-text-strong/40 polli:[&>svg]:h-full polli:[&>svg]:w-full",
4473
- geometry.icon,
4474
- checked ? geometry.ghostOn : geometry.ghostOff
4475
- ),
4476
- children: checked ? icons.off : icons.on
4477
- }
4478
- ),
4479
- /* @__PURE__ */ jsx49(
4480
- "span",
4481
- {
4482
- className: cn(
4483
- "polli:absolute polli:top-1/2 polli:left-[3px] polli:flex polli:-translate-y-1/2 polli:items-center polli:justify-center polli:rounded-full polli:transition-[transform,background-color]",
4484
- geometry.thumb,
4485
- thumbClasses[look],
4486
- checked ? geometry.travel : "polli:translate-x-0"
4487
- ),
4488
- children: icons && /* @__PURE__ */ jsx49(
4489
- "span",
4490
- {
4491
- "aria-hidden": "true",
4492
- className: cn(
4493
- "polli:flex polli:[&>svg]:h-full polli:[&>svg]:w-full",
4494
- geometry.icon
4495
- ),
4496
- children: checked ? icons.on : icons.off
4497
- }
4498
- )
4499
- }
4500
- )
4501
- ]
4502
- }
4503
- );
4504
- };
4505
-
4506
- // src/primitives/ColorModeToggle.tsx
4507
- import { jsx as jsx50 } from "react/jsx-runtime";
4508
- var STORAGE_KEY = "polli-color-mode";
4509
- function readStored() {
4510
- try {
4511
- const value = localStorage.getItem(STORAGE_KEY);
4512
- return value === "light" || value === "dark" ? value : null;
4513
- } catch {
4514
- return null;
4515
- }
4516
- }
4517
- function systemMode() {
4518
- return typeof window !== "undefined" && window.matchMedia?.("(prefers-color-scheme: dark)").matches === true ? "dark" : "light";
4519
- }
4520
- var current = readStored() ?? systemMode();
4521
- var listeners = /* @__PURE__ */ new Set();
4522
- var systemQuery;
4523
- function apply() {
4524
- if (typeof document === "undefined") return;
4525
- document.documentElement.classList.toggle("dark", current === "dark");
4526
- syncThemeColor();
4527
- }
4528
- function syncThemeColor() {
4529
- if (typeof document === "undefined") return;
4530
- const appBg = getComputedStyle(document.documentElement).getPropertyValue("--polli-color-app-bg").trim();
4531
- if (!appBg) return;
4532
- let meta = document.querySelector('meta[name="theme-color"]');
4533
- if (!meta) {
4534
- meta = document.createElement("meta");
4535
- meta.setAttribute("name", "theme-color");
4536
- document.head.appendChild(meta);
4537
- }
4538
- meta.setAttribute("content", appBg);
4539
- }
4540
- function emit() {
4541
- for (const listener of listeners) listener();
4542
- }
4543
- function handleStorage(event) {
4544
- if (event.key !== STORAGE_KEY) return;
4545
- const next = readStored() ?? systemMode();
4546
- if (next === current) return;
4547
- current = next;
4548
- apply();
4549
- emit();
4550
- }
4551
- function handleSystemChange() {
4552
- if (readStored() !== null) return;
4553
- const next = systemMode();
4554
- if (next === current) return;
4555
- current = next;
4556
- apply();
4557
- emit();
4558
- }
4559
- function subscribe(listener) {
4560
- if (listeners.size === 0 && typeof window !== "undefined") {
4561
- apply();
4562
- window.addEventListener("storage", handleStorage);
4563
- systemQuery = window.matchMedia?.("(prefers-color-scheme: dark)");
4564
- systemQuery?.addEventListener("change", handleSystemChange);
4565
- }
4566
- listeners.add(listener);
4567
- return () => {
4568
- listeners.delete(listener);
4569
- if (listeners.size === 0 && typeof window !== "undefined") {
4570
- window.removeEventListener("storage", handleStorage);
4571
- systemQuery?.removeEventListener("change", handleSystemChange);
4572
- systemQuery = void 0;
4573
- }
4574
- };
4575
- }
4576
- function getSnapshot() {
4577
- return current;
4578
- }
4579
- function getServerSnapshot() {
4580
- return "light";
4581
- }
4582
- function setColorMode(mode) {
4583
- if (mode === current) return;
4584
- current = mode;
4585
- apply();
4586
- try {
4587
- if (mode === systemMode()) localStorage.removeItem(STORAGE_KEY);
4588
- else localStorage.setItem(STORAGE_KEY, mode);
4589
- } catch {
4590
- }
4591
- emit();
4592
- }
4593
- function useColorMode() {
4594
- const mode = useSyncExternalStore(
4595
- subscribe,
4596
- getSnapshot,
4597
- getServerSnapshot
4598
- );
4599
- return {
4600
- mode,
4601
- isDark: mode === "dark",
4602
- toggle: () => setColorMode(mode === "dark" ? "light" : "dark")
4603
- };
4604
- }
4605
- var ColorModeToggle = () => {
4606
- const { isDark, toggle } = useColorMode();
4607
- return /* @__PURE__ */ jsx50(
4608
- Switch,
4609
- {
4610
- checked: isDark,
4611
- onChange: toggle,
4612
- ariaLabel: "Toggle dark mode",
4613
- size: "sm",
4614
- icons: { off: /* @__PURE__ */ jsx50(SunIcon, {}), on: /* @__PURE__ */ jsx50(MoonIcon, {}) }
4615
- }
4616
- );
4617
- };
4618
-
4619
2608
  // src/primitives/Drawer.tsx
4620
- import { Dialog as ArkDialog2 } from "@ark-ui/react/dialog";
4621
- import { Portal as Portal3 } from "@ark-ui/react/portal";
4622
- import { useRef as useRef8 } from "react";
4623
- import { jsx as jsx51, jsxs as jsxs36 } from "react/jsx-runtime";
2609
+ import { Dialog as ArkDialog } from "@ark-ui/react/dialog";
2610
+ import { Portal } from "@ark-ui/react/portal";
2611
+ import { useRef as useRef4 } from "react";
2612
+ import { jsx as jsx32, jsxs as jsxs25 } from "react/jsx-runtime";
4624
2613
  var Drawer = ({
4625
2614
  open,
4626
2615
  onOpenChange,
@@ -4629,17 +2618,17 @@ var Drawer = ({
4629
2618
  side = "left",
4630
2619
  contentClassName
4631
2620
  }) => {
4632
- const contentRef = useRef8(null);
4633
- return /* @__PURE__ */ jsx51(
4634
- ArkDialog2.Root,
2621
+ const contentRef = useRef4(null);
2622
+ return /* @__PURE__ */ jsx32(
2623
+ ArkDialog.Root,
4635
2624
  {
4636
2625
  open,
4637
2626
  initialFocusEl: () => contentRef.current,
4638
2627
  onOpenChange: (details) => onOpenChange(details.open),
4639
- children: /* @__PURE__ */ jsxs36(Portal3, { children: [
4640
- /* @__PURE__ */ jsx51(ArkDialog2.Backdrop, { className: "polli:fixed polli:inset-0 polli:z-[100] polli:bg-[#000]/40 polli:backdrop-blur-sm" }),
4641
- /* @__PURE__ */ jsx51(ArkDialog2.Positioner, { className: "polli:pointer-events-none polli:fixed polli:inset-0 polli:z-[110] polli:h-dvh polli:overflow-hidden", children: /* @__PURE__ */ jsx51(
4642
- ArkDialog2.Content,
2628
+ children: /* @__PURE__ */ jsxs25(Portal, { children: [
2629
+ /* @__PURE__ */ jsx32(ArkDialog.Backdrop, { className: "polli:fixed polli:inset-0 polli:z-[100] polli:bg-[#000]/40 polli:backdrop-blur-sm" }),
2630
+ /* @__PURE__ */ jsx32(ArkDialog.Positioner, { className: "polli:pointer-events-none polli:fixed polli:inset-0 polli:z-[110] polli:h-dvh polli:overflow-hidden", children: /* @__PURE__ */ jsx32(
2631
+ ArkDialog.Content,
4643
2632
  {
4644
2633
  ref: contentRef,
4645
2634
  "aria-label": ariaLabel,
@@ -4656,31 +2645,8 @@ var Drawer = ({
4656
2645
  );
4657
2646
  };
4658
2647
 
4659
- // src/primitives/DropdownItem.tsx
4660
- import { jsx as jsx52 } from "react/jsx-runtime";
4661
- function DropdownItem({
4662
- as,
4663
- className,
4664
- children,
4665
- ...rest
4666
- }) {
4667
- const Component = as || "button";
4668
- return /* @__PURE__ */ jsx52(
4669
- Component,
4670
- {
4671
- ...Component === "button" ? { type: "button" } : void 0,
4672
- ...rest,
4673
- className: cn(
4674
- "polli-control polli:flex polli:w-full polli:cursor-pointer polli:items-center polli:gap-2 polli:rounded-lg polli:bg-transparent polli:px-3 polli:py-2 polli:text-left polli:text-sm polli:font-medium polli:text-theme-text-base polli:no-underline polli:transition-colors polli:hover:bg-theme-bg-hover polli:hover:text-theme-text-hover polli:focus-visible:bg-theme-bg-hover",
4675
- className
4676
- ),
4677
- children
4678
- }
4679
- );
4680
- }
4681
-
4682
2648
  // src/primitives/IconTile.tsx
4683
- import { jsx as jsx53 } from "react/jsx-runtime";
2649
+ import { jsx as jsx33 } from "react/jsx-runtime";
4684
2650
  var toneClasses = {
4685
2651
  neutral: "polli:bg-theme-bg-subtle polli:text-theme-text-strong",
4686
2652
  // The wallet's Paid and Quest Pollen colours, for rows about money.
@@ -4693,7 +2659,7 @@ function IconTile({
4693
2659
  tone = "neutral",
4694
2660
  color
4695
2661
  }) {
4696
- return /* @__PURE__ */ jsx53(
2662
+ return /* @__PURE__ */ jsx33(
4697
2663
  "span",
4698
2664
  {
4699
2665
  className: cn(
@@ -4704,15 +2670,15 @@ function IconTile({
4704
2670
  color,
4705
2671
  backgroundColor: `color-mix(in oklab, ${color} 14%, transparent)`
4706
2672
  } : void 0,
4707
- children: /* @__PURE__ */ jsx53(Icon, { "aria-hidden": "true", className: "polli:size-6" })
2673
+ children: /* @__PURE__ */ jsx33(Icon, { "aria-hidden": "true", className: "polli:size-6" })
4708
2674
  }
4709
2675
  );
4710
2676
  }
4711
2677
 
4712
2678
  // src/primitives/LiveDot.tsx
4713
- import { jsx as jsx54, jsxs as jsxs37 } from "react/jsx-runtime";
2679
+ import { jsx as jsx34, jsxs as jsxs26 } from "react/jsx-runtime";
4714
2680
  function LiveDot({ className }) {
4715
- return /* @__PURE__ */ jsxs37(
2681
+ return /* @__PURE__ */ jsxs26(
4716
2682
  "span",
4717
2683
  {
4718
2684
  "aria-hidden": "true",
@@ -4721,30 +2687,15 @@ function LiveDot({ className }) {
4721
2687
  className
4722
2688
  ),
4723
2689
  children: [
4724
- /* @__PURE__ */ jsx54("span", { className: "polli:absolute polli:inset-0 polli:animate-ping polli:rounded-full polli:bg-intent-success-bg-bright polli:opacity-60 polli:[animation-duration:2.4s] polli:motion-reduce:hidden" }),
4725
- /* @__PURE__ */ jsx54("span", { className: "polli:relative polli:size-2 polli:rounded-full polli:bg-intent-success-bg-bright" })
2690
+ /* @__PURE__ */ jsx34("span", { className: "polli:absolute polli:inset-0 polli:animate-ping polli:rounded-full polli:bg-intent-success-bg-bright polli:opacity-60 polli:[animation-duration:2.4s] polli:motion-reduce:hidden" }),
2691
+ /* @__PURE__ */ jsx34("span", { className: "polli:relative polli:size-2 polli:rounded-full polli:bg-intent-success-bg-bright" })
4726
2692
  ]
4727
2693
  }
4728
2694
  );
4729
2695
  }
4730
2696
 
4731
- // src/primitives/LoadingStatus.tsx
4732
- import { jsx as jsx55, jsxs as jsxs38 } from "react/jsx-runtime";
4733
- function LoadingStatus({ children }) {
4734
- return /* @__PURE__ */ jsxs38("output", { className: "polli:flex polli:items-center polli:gap-2 polli:font-body polli:text-sm polli:text-theme-text-muted", children: [
4735
- /* @__PURE__ */ jsx55(
4736
- "span",
4737
- {
4738
- "aria-hidden": "true",
4739
- className: "polli:h-4 polli:w-4 polli:shrink-0 polli:animate-spin polli:motion-reduce:animate-none polli:rounded-full polli:border-2 polli:border-current polli:border-r-transparent"
4740
- }
4741
- ),
4742
- children
4743
- ] });
4744
- }
4745
-
4746
2697
  // src/primitives/Skeleton.tsx
4747
- import { jsx as jsx56 } from "react/jsx-runtime";
2698
+ import { jsx as jsx35 } from "react/jsx-runtime";
4748
2699
  var shapeClasses = {
4749
2700
  // Stands in for a card or tile.
4750
2701
  card: "polli:rounded-card",
@@ -4754,7 +2705,7 @@ var shapeClasses = {
4754
2705
  media: ""
4755
2706
  };
4756
2707
  function Skeleton({ shape = "card", className }) {
4757
- return /* @__PURE__ */ jsx56(
2708
+ return /* @__PURE__ */ jsx35(
4758
2709
  "span",
4759
2710
  {
4760
2711
  "aria-hidden": "true",
@@ -4768,8 +2719,8 @@ function Skeleton({ shape = "card", className }) {
4768
2719
  }
4769
2720
 
4770
2721
  // src/primitives/Slider.tsx
4771
- import { forwardRef as forwardRef7 } from "react";
4772
- import { jsx as jsx57 } from "react/jsx-runtime";
2722
+ import { forwardRef as forwardRef6 } from "react";
2723
+ import { jsx as jsx36 } from "react/jsx-runtime";
4773
2724
  var toNumber = (value) => {
4774
2725
  if (typeof value === "number") return value;
4775
2726
  if (typeof value !== "string" || value.trim() === "") return void 0;
@@ -4796,7 +2747,7 @@ var getProgressPercent = ({
4796
2747
  (numericValue - numericMin) / (numericMax - numericMin) * 100
4797
2748
  );
4798
2749
  };
4799
- var Slider = forwardRef7(
2750
+ var Slider = forwardRef6(
4800
2751
  ({ className, defaultValue, max, min, progress, style, value, ...props }, ref) => {
4801
2752
  const progressPercent = getProgressPercent({
4802
2753
  progress,
@@ -4809,7 +2760,7 @@ var Slider = forwardRef7(
4809
2760
  ...style,
4810
2761
  ...progressPercent === void 0 ? null : { "--polli-slider-progress": `${progressPercent}%` }
4811
2762
  };
4812
- return /* @__PURE__ */ jsx57(
2763
+ return /* @__PURE__ */ jsx36(
4813
2764
  "input",
4814
2765
  {
4815
2766
  ref,
@@ -4827,14 +2778,14 @@ var Slider = forwardRef7(
4827
2778
  );
4828
2779
 
4829
2780
  // src/primitives/StableLabel.tsx
4830
- import { jsxs as jsxs39 } from "react/jsx-runtime";
2781
+ import { jsxs as jsxs27 } from "react/jsx-runtime";
4831
2782
  function StableLabel({
4832
2783
  text,
4833
2784
  options,
4834
2785
  align = "center",
4835
2786
  prefix
4836
2787
  }) {
4837
- return /* @__PURE__ */ jsxs39(
2788
+ return /* @__PURE__ */ jsxs27(
4838
2789
  "span",
4839
2790
  {
4840
2791
  className: cn(
@@ -4842,7 +2793,7 @@ function StableLabel({
4842
2793
  align === "center" ? "polli:justify-items-center" : "polli:justify-items-start polli:sm:justify-items-end"
4843
2794
  ),
4844
2795
  children: [
4845
- options.map((option) => /* @__PURE__ */ jsxs39(
2796
+ options.map((option) => /* @__PURE__ */ jsxs27(
4846
2797
  "span",
4847
2798
  {
4848
2799
  "aria-hidden": "true",
@@ -4854,7 +2805,7 @@ function StableLabel({
4854
2805
  },
4855
2806
  option
4856
2807
  )),
4857
- /* @__PURE__ */ jsxs39("span", { className: "polli:col-start-1 polli:row-start-1 polli:inline-flex polli:items-center polli:gap-1", children: [
2808
+ /* @__PURE__ */ jsxs27("span", { className: "polli:col-start-1 polli:row-start-1 polli:inline-flex polli:items-center polli:gap-1", children: [
4858
2809
  prefix,
4859
2810
  text
4860
2811
  ] })
@@ -4864,7 +2815,7 @@ function StableLabel({
4864
2815
  }
4865
2816
 
4866
2817
  // src/primitives/Table.tsx
4867
- import { Fragment as Fragment12, jsx as jsx58, jsxs as jsxs40 } from "react/jsx-runtime";
2818
+ import { Fragment as Fragment9, jsx as jsx37, jsxs as jsxs28 } from "react/jsx-runtime";
4868
2819
  var alignClasses = {
4869
2820
  left: "polli:text-left",
4870
2821
  center: "polli:text-center",
@@ -4875,7 +2826,7 @@ var rowIntentClasses = {
4875
2826
  warning: "polli:bg-intent-warning-bg-light/65",
4876
2827
  danger: "polli:bg-intent-danger-bg-light/65"
4877
2828
  };
4878
- var Table = ({ className, ...rest }) => /* @__PURE__ */ jsx58(
2829
+ var Table = ({ className, ...rest }) => /* @__PURE__ */ jsx37(
4879
2830
  "table",
4880
2831
  {
4881
2832
  ...rest,
@@ -4885,7 +2836,7 @@ var Table = ({ className, ...rest }) => /* @__PURE__ */ jsx58(
4885
2836
  )
4886
2837
  }
4887
2838
  );
4888
- var TableHead = ({ className, ...rest }) => /* @__PURE__ */ jsx58(
2839
+ var TableHead = ({ className, ...rest }) => /* @__PURE__ */ jsx37(
4889
2840
  "thead",
4890
2841
  {
4891
2842
  ...rest,
@@ -4899,7 +2850,7 @@ var TableBody = ({
4899
2850
  className,
4900
2851
  divider = "themed",
4901
2852
  ...rest
4902
- }) => /* @__PURE__ */ jsx58(
2853
+ }) => /* @__PURE__ */ jsx37(
4903
2854
  "tbody",
4904
2855
  {
4905
2856
  ...rest,
@@ -4914,7 +2865,7 @@ var TableRow = ({
4914
2865
  intent = "default",
4915
2866
  className,
4916
2867
  ...rest
4917
- }) => /* @__PURE__ */ jsx58(
2868
+ }) => /* @__PURE__ */ jsx37(
4918
2869
  "tr",
4919
2870
  {
4920
2871
  ...rest,
@@ -4934,9 +2885,9 @@ var TableHeaderCell = ({
4934
2885
  children,
4935
2886
  ...rest
4936
2887
  }) => {
4937
- const content = /* @__PURE__ */ jsxs40(Fragment12, { children: [
4938
- /* @__PURE__ */ jsx58("span", { children }),
4939
- onSort && /* @__PURE__ */ jsx58(
2888
+ const content = /* @__PURE__ */ jsxs28(Fragment9, { children: [
2889
+ /* @__PURE__ */ jsx37("span", { children }),
2890
+ onSort && /* @__PURE__ */ jsx37(
4940
2891
  "span",
4941
2892
  {
4942
2893
  "aria-hidden": "true",
@@ -4953,15 +2904,15 @@ var TableHeaderCell = ({
4953
2904
  className
4954
2905
  );
4955
2906
  if (!onSort) {
4956
- return /* @__PURE__ */ jsx58("th", { ...rest, className: classes, children: content });
2907
+ return /* @__PURE__ */ jsx37("th", { ...rest, className: classes, children: content });
4957
2908
  }
4958
- return /* @__PURE__ */ jsx58(
2909
+ return /* @__PURE__ */ jsx37(
4959
2910
  "th",
4960
2911
  {
4961
2912
  ...rest,
4962
2913
  "aria-sort": active && sortDirection ? sortDirection === "asc" ? "ascending" : "descending" : "none",
4963
2914
  className: classes,
4964
- children: /* @__PURE__ */ jsx58(
2915
+ children: /* @__PURE__ */ jsx37(
4965
2916
  "button",
4966
2917
  {
4967
2918
  type: "button",
@@ -4983,7 +2934,7 @@ var TableCell = ({
4983
2934
  muted = false,
4984
2935
  className,
4985
2936
  ...rest
4986
- }) => /* @__PURE__ */ jsx58(
2937
+ }) => /* @__PURE__ */ jsx37(
4987
2938
  "td",
4988
2939
  {
4989
2940
  ...rest,
@@ -4998,14 +2949,14 @@ var TableCell = ({
4998
2949
  );
4999
2950
 
5000
2951
  // src/primitives/TableDisclosureButton.tsx
5001
- import { jsx as jsx59, jsxs as jsxs41 } from "react/jsx-runtime";
2952
+ import { jsx as jsx38, jsxs as jsxs29 } from "react/jsx-runtime";
5002
2953
  var TableDisclosureButton = ({
5003
2954
  children,
5004
2955
  disabled = false,
5005
2956
  expanded,
5006
2957
  onClick,
5007
2958
  className
5008
- }) => /* @__PURE__ */ jsxs41(
2959
+ }) => /* @__PURE__ */ jsxs29(
5009
2960
  "button",
5010
2961
  {
5011
2962
  type: "button",
@@ -5018,7 +2969,7 @@ var TableDisclosureButton = ({
5018
2969
  className
5019
2970
  ),
5020
2971
  children: [
5021
- /* @__PURE__ */ jsx59(
2972
+ /* @__PURE__ */ jsx38(
5022
2973
  ChevronIcon,
5023
2974
  {
5024
2975
  expanded,