@donkit-ai/design-system 1.4.40 → 1.4.41

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import K, { useState as D, useRef as E, useEffect as M, useLayoutEffect as Ve } from "react";
2
- import { Check as Ne, X as re, ChevronDown as he, Minus as Ye, Plus as He, XCircle as we, AlertTriangle as ge, CheckCircle as ye, Info as ke, ChevronUp as qe, ChevronsUpDown as Ke, ChevronLeft as Xe, ChevronRight as Ge, Copy as Je, Brain as Ze, Loader as Qe, Paperclip as Re, Square as es, ArrowUp as ss, Zap as ts, Cpu as Se, FileText as ns, ThumbsUp as rs, ThumbsDown as as } from "lucide-react";
2
+ import { Check as Ne, X as re, ChevronDown as he, Minus as Ye, Plus as He, XCircle as we, AlertTriangle as ge, CheckCircle as ye, Info as ke, ChevronUp as qe, ChevronsUpDown as Ke, ChevronLeft as Ge, ChevronRight as Xe, Copy as Je, Brain as Ze, Loader as Qe, Paperclip as Re, Square as es, ArrowUp as ss, Zap as ts, Cpu as Se, FileText as ns, ThumbsUp as rs, ThumbsDown as as } from "lucide-react";
3
3
  import pe from "react-dom";
4
4
  const I = {
5
5
  1: 16,
@@ -128,7 +128,7 @@ function os() {
128
128
  }
129
129
  }
130
130
  function a() {
131
- var c = X.A;
131
+ var c = G.A;
132
132
  return c === null ? null : c.getOwner();
133
133
  }
134
134
  function r() {
@@ -153,7 +153,7 @@ function os() {
153
153
  configurable: !0
154
154
  });
155
155
  }
156
- function m() {
156
+ function f() {
157
157
  var c = s(this.type);
158
158
  return P[c] || (P[c] = !0, console.error(
159
159
  "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
@@ -162,14 +162,14 @@ function os() {
162
162
  function d(c, w, L, O, te, ae) {
163
163
  var W = L.ref;
164
164
  return c = {
165
- $$typeof: _,
165
+ $$typeof: b,
166
166
  type: c,
167
167
  key: w,
168
168
  props: L,
169
169
  _owner: O
170
170
  }, (W !== void 0 ? W : null) !== null ? Object.defineProperty(c, "ref", {
171
171
  enumerable: !1,
172
- get: m
172
+ get: f
173
173
  }) : Object.defineProperty(c, "ref", { enumerable: !1, value: null }), c._store = {}, Object.defineProperty(c._store, "validated", {
174
174
  configurable: !1,
175
175
  enumerable: !1,
@@ -244,39 +244,39 @@ React keys must be passed directly to JSX without using spread:
244
244
  h(c) ? c._store && (c._store.validated = 1) : typeof c == "object" && c !== null && c.$$typeof === F && (c._payload.status === "fulfilled" ? h(c._payload.value) && c._payload.value._store && (c._payload.value._store.validated = 1) : c._store && (c._store.validated = 1));
245
245
  }
246
246
  function h(c) {
247
- return typeof c == "object" && c !== null && c.$$typeof === _;
247
+ return typeof c == "object" && c !== null && c.$$typeof === b;
248
248
  }
249
- var f = K, _ = Symbol.for("react.transitional.element"), j = Symbol.for("react.portal"), R = Symbol.for("react.fragment"), $ = Symbol.for("react.strict_mode"), B = Symbol.for("react.profiler"), y = Symbol.for("react.consumer"), T = Symbol.for("react.context"), z = Symbol.for("react.forward_ref"), A = Symbol.for("react.suspense"), Y = Symbol.for("react.suspense_list"), H = Symbol.for("react.memo"), F = Symbol.for("react.lazy"), v = Symbol.for("react.activity"), C = Symbol.for("react.client.reference"), X = f.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, U = Object.prototype.hasOwnProperty, x = Array.isArray, N = console.createTask ? console.createTask : function() {
249
+ var m = K, b = Symbol.for("react.transitional.element"), j = Symbol.for("react.portal"), R = Symbol.for("react.fragment"), $ = Symbol.for("react.strict_mode"), B = Symbol.for("react.profiler"), y = Symbol.for("react.consumer"), T = Symbol.for("react.context"), z = Symbol.for("react.forward_ref"), A = Symbol.for("react.suspense"), Y = Symbol.for("react.suspense_list"), H = Symbol.for("react.memo"), F = Symbol.for("react.lazy"), v = Symbol.for("react.activity"), C = Symbol.for("react.client.reference"), G = m.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, U = Object.prototype.hasOwnProperty, x = Array.isArray, N = console.createTask ? console.createTask : function() {
250
250
  return null;
251
251
  };
252
- f = {
252
+ m = {
253
253
  react_stack_bottom_frame: function(c) {
254
254
  return c();
255
255
  }
256
256
  };
257
- var k, P = {}, q = f.react_stack_bottom_frame.bind(
258
- f,
257
+ var k, P = {}, q = m.react_stack_bottom_frame.bind(
258
+ m,
259
259
  r
260
- )(), G = N(i(r)), g = {};
260
+ )(), X = N(i(r)), g = {};
261
261
  fe.Fragment = R, fe.jsx = function(c, w, L) {
262
- var O = 1e4 > X.recentlyCreatedOwnerStacks++;
262
+ var O = 1e4 > G.recentlyCreatedOwnerStacks++;
263
263
  return u(
264
264
  c,
265
265
  w,
266
266
  L,
267
267
  !1,
268
268
  O ? Error("react-stack-top-frame") : q,
269
- O ? N(i(c)) : G
269
+ O ? N(i(c)) : X
270
270
  );
271
271
  }, fe.jsxs = function(c, w, L) {
272
- var O = 1e4 > X.recentlyCreatedOwnerStacks++;
272
+ var O = 1e4 > G.recentlyCreatedOwnerStacks++;
273
273
  return u(
274
274
  c,
275
275
  w,
276
276
  L,
277
277
  !0,
278
278
  O ? Error("react-stack-top-frame") : q,
279
- O ? N(i(c)) : G
279
+ O ? N(i(c)) : X
280
280
  );
281
281
  };
282
282
  }()), fe;
@@ -304,18 +304,18 @@ function me({
304
304
  disabled: r = !1,
305
305
  state: o = "idle",
306
306
  onClick: l,
307
- type: m = "button",
307
+ type: f = "button",
308
308
  href: d,
309
309
  "aria-label": u,
310
310
  className: p = "",
311
311
  ...h
312
312
  }) {
313
- const f = a && !s, _ = o === "loading", j = o === "success", R = o === "error", $ = _ || j || R, B = n === "xs" ? "s" : "m", y = t === "danger" ? "on-accent" : "default", T = cs[n] ?? 16, z = _ ? /* @__PURE__ */ e.jsx(ls, { size: B, color: y }) : j ? /* @__PURE__ */ e.jsx("span", { className: "ds-button__icon", "aria-hidden": "true", children: /* @__PURE__ */ e.jsx(Ne, { size: T, strokeWidth: 2.5 }) }) : R ? /* @__PURE__ */ e.jsx("span", { className: "ds-button__icon", "aria-hidden": "true", children: /* @__PURE__ */ e.jsx(re, { size: T, strokeWidth: 2.5 }) }) : null, A = [
313
+ const m = a && !s, b = o === "loading", j = o === "success", R = o === "error", $ = b || j || R, B = n === "xs" ? "s" : "m", y = t === "danger" ? "on-accent" : "default", T = cs[n] ?? 16, z = b ? /* @__PURE__ */ e.jsx(ls, { size: B, color: y }) : j ? /* @__PURE__ */ e.jsx("span", { className: "ds-button__icon", "aria-hidden": "true", children: /* @__PURE__ */ e.jsx(Ne, { size: T, strokeWidth: 2.5 }) }) : R ? /* @__PURE__ */ e.jsx("span", { className: "ds-button__icon", "aria-hidden": "true", children: /* @__PURE__ */ e.jsx(re, { size: T, strokeWidth: 2.5 }) }) : null, A = [
314
314
  "ds-button",
315
315
  `ds-button--${t}`,
316
316
  `ds-button--${n}`,
317
317
  i && "ds-button--full",
318
- f && "ds-button--icon-only",
318
+ m && "ds-button--icon-only",
319
319
  p
320
320
  ].filter(Boolean).join(" "), Y = o !== "idle" ? o : void 0, H = /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
321
321
  $ ? z : a && /* @__PURE__ */ e.jsx("span", { className: "ds-button__icon", "aria-hidden": "true", children: a }),
@@ -323,7 +323,7 @@ function me({
323
323
  ] });
324
324
  if (d) {
325
325
  const F = (v) => {
326
- if (r || _) {
326
+ if (r || b) {
327
327
  v.preventDefault();
328
328
  return;
329
329
  }
@@ -333,11 +333,11 @@ function me({
333
333
  "a",
334
334
  {
335
335
  className: A,
336
- href: r || _ ? void 0 : d,
336
+ href: r || b ? void 0 : d,
337
337
  onClick: F,
338
338
  "aria-label": u,
339
- "aria-disabled": r || _ ? "true" : void 0,
340
- "aria-busy": _ ? "true" : void 0,
339
+ "aria-disabled": r || b ? "true" : void 0,
340
+ "aria-busy": b ? "true" : void 0,
341
341
  "data-state": Y,
342
342
  ...h,
343
343
  children: H
@@ -347,12 +347,12 @@ function me({
347
347
  return /* @__PURE__ */ e.jsx(
348
348
  "button",
349
349
  {
350
- type: m,
350
+ type: f,
351
351
  className: A,
352
352
  disabled: r,
353
- onClick: _ ? void 0 : l,
353
+ onClick: b ? void 0 : l,
354
354
  "aria-label": u,
355
- "aria-busy": _ ? "true" : void 0,
355
+ "aria-busy": b ? "true" : void 0,
356
356
  "data-state": Y,
357
357
  ...h,
358
358
  children: H
@@ -368,12 +368,12 @@ function Us({
368
368
  iconRight: r,
369
369
  onIconRightClick: o,
370
370
  size: l = "m",
371
- disabled: m,
371
+ disabled: f,
372
372
  id: d,
373
373
  ...u
374
374
  }) {
375
- const p = d || `input-${K.useId()}`, h = n ? `${p}-hint` : void 0, f = t ? `${p}-error` : void 0, _ = f || h;
376
- return /* @__PURE__ */ e.jsxs("div", { className: `ds-input-wrapper ${i ? "ds-input-wrapper--full" : ""} ${m ? "ds-input-wrapper--disabled" : ""} ${t ? "ds-input-wrapper--error" : ""}`, children: [
375
+ const p = d || `input-${K.useId()}`, h = n ? `${p}-hint` : void 0, m = t ? `${p}-error` : void 0, b = m || h;
376
+ return /* @__PURE__ */ e.jsxs("div", { className: `ds-input-wrapper ${i ? "ds-input-wrapper--full" : ""} ${f ? "ds-input-wrapper--disabled" : ""} ${t ? "ds-input-wrapper--error" : ""}`, children: [
377
377
  s && /* @__PURE__ */ e.jsx("label", { className: "ds-input-label", htmlFor: p, children: s }),
378
378
  /* @__PURE__ */ e.jsxs("div", { className: "ds-input-container", children: [
379
379
  a && /* @__PURE__ */ e.jsx("span", { className: `ds-input-icon ds-input-icon--${l}`, "aria-hidden": "true", children: a }),
@@ -382,9 +382,9 @@ function Us({
382
382
  {
383
383
  id: p,
384
384
  className: `ds-input ds-input--${l} ${a ? "ds-input--with-icon" : ""} ${r ? "ds-input--with-icon-right" : ""} ${t ? "ds-input--error" : ""}`,
385
- disabled: m,
385
+ disabled: f,
386
386
  "aria-invalid": t ? "true" : "false",
387
- "aria-describedby": _,
387
+ "aria-describedby": b,
388
388
  ...u
389
389
  }
390
390
  ),
@@ -401,7 +401,7 @@ function Us({
401
401
  )
402
402
  ] }),
403
403
  n && !t && /* @__PURE__ */ e.jsx("span", { id: h, className: "ds-input-hint", children: n }),
404
- /* @__PURE__ */ e.jsx("div", { className: "ds-input-error-wrap", children: /* @__PURE__ */ e.jsx("div", { className: "ds-input-error-inner", children: t && /* @__PURE__ */ e.jsx("span", { id: f, className: "ds-input-error", role: "alert", children: t }) }) })
404
+ /* @__PURE__ */ e.jsx("div", { className: "ds-input-error-wrap", children: /* @__PURE__ */ e.jsx("div", { className: "ds-input-error-inner", children: t && /* @__PURE__ */ e.jsx("span", { id: m, className: "ds-input-error", role: "alert", children: t }) }) })
405
405
  ] });
406
406
  }
407
407
  function Vs({
@@ -413,10 +413,10 @@ function Vs({
413
413
  disabled: r,
414
414
  id: o,
415
415
  resize: l = !0,
416
- rows: m = 3,
416
+ rows: f = 3,
417
417
  ...d
418
418
  }) {
419
- const u = o || `textarea-${K.useId()}`, p = n ? `${u}-hint` : void 0, h = t ? `${u}-error` : void 0, f = h || p;
419
+ const u = o || `textarea-${K.useId()}`, p = n ? `${u}-hint` : void 0, h = t ? `${u}-error` : void 0, m = h || p;
420
420
  return /* @__PURE__ */ e.jsxs("div", { className: `ds-textarea-wrapper ${i ? "ds-textarea-wrapper--full" : ""} ${r ? "ds-textarea-wrapper--disabled" : ""}`, children: [
421
421
  s && /* @__PURE__ */ e.jsx("label", { className: "ds-textarea-label", htmlFor: u, children: s }),
422
422
  /* @__PURE__ */ e.jsx(
@@ -426,8 +426,8 @@ function Vs({
426
426
  className: `ds-textarea ds-textarea--${a} ${t ? "ds-textarea--error" : ""} ${l ? "" : "ds-textarea--no-resize"}`,
427
427
  disabled: r,
428
428
  "aria-invalid": t ? "true" : "false",
429
- "aria-describedby": f,
430
- rows: m,
429
+ "aria-describedby": m,
430
+ rows: f,
431
431
  ...d
432
432
  }
433
433
  ),
@@ -444,17 +444,17 @@ function Ys({
444
444
  error: r,
445
445
  fullWidth: o = !0,
446
446
  size: l = "m",
447
- disabled: m = !1,
447
+ disabled: f = !1,
448
448
  id: d,
449
449
  ...u
450
450
  }) {
451
- const [p, h] = D(!1), [f, _] = D(!1), [j, R] = D({}), [$, B] = D("down"), [y, T] = D(-1), z = E(null), A = E(null), Y = E(null), H = E(null), F = d || `select-${K.useId()}`, v = `${F}-label`, C = r ? `${F}-error` : void 0, X = 150, U = (g = !1) => {
452
- f || (_(!0), T(-1), H.current = setTimeout(() => {
451
+ const [p, h] = D(!1), [m, b] = D(!1), [j, R] = D({}), [$, B] = D("down"), [y, T] = D(-1), z = E(null), A = E(null), Y = E(null), H = E(null), F = d || `select-${K.useId()}`, v = `${F}-label`, C = r ? `${F}-error` : void 0, G = 150, U = (g = !1) => {
452
+ m || (b(!0), T(-1), H.current = setTimeout(() => {
453
453
  var c;
454
- h(!1), _(!1), g && ((c = Y.current) == null || c.focus());
455
- }, X));
454
+ h(!1), b(!1), g && ((c = Y.current) == null || c.focus());
455
+ }, G));
456
456
  }, x = (g) => {
457
- clearTimeout(H.current), _(!1);
457
+ clearTimeout(H.current), b(!1);
458
458
  const c = g !== void 0 ? g : Math.max(i.findIndex((w) => w.value === t), 0);
459
459
  T(c), h(!0);
460
460
  };
@@ -478,7 +478,7 @@ function Ys({
478
478
  z.current && !z.current.contains(c.target) && A.current && !A.current.contains(c.target) && U();
479
479
  };
480
480
  return document.addEventListener("mousedown", g), () => document.removeEventListener("mousedown", g);
481
- }, [f]), M(() => {
481
+ }, [m]), M(() => {
482
482
  var c;
483
483
  if (!p || y < 0 || !A.current) return;
484
484
  (c = A.current.querySelectorAll(".ds-select-option")[y]) == null || c.scrollIntoView({ block: "nearest" });
@@ -508,7 +508,7 @@ function Ys({
508
508
  p && U(!1);
509
509
  break;
510
510
  }
511
- }, P = i.find((g) => g.value === t), q = l === "xs" ? I[1] : l === "small" ? I[2] : I[3], G = p && /* @__PURE__ */ e.jsx(
511
+ }, P = i.find((g) => g.value === t), q = l === "xs" ? I[1] : l === "small" ? I[2] : I[3], X = p && /* @__PURE__ */ e.jsx(
512
512
  "div",
513
513
  {
514
514
  ref: A,
@@ -519,7 +519,7 @@ function Ys({
519
519
  "ds-select-dropdown",
520
520
  `ds-select-dropdown--${l}`,
521
521
  `ds-select-dropdown--${$}`,
522
- f && "ds-select-dropdown--closing"
522
+ m && "ds-select-dropdown--closing"
523
523
  ].filter(Boolean).join(" "),
524
524
  style: j,
525
525
  children: i.map((g, c) => /* @__PURE__ */ e.jsx(
@@ -545,7 +545,7 @@ function Ys({
545
545
  ))
546
546
  }
547
547
  );
548
- return /* @__PURE__ */ e.jsxs("div", { className: `ds-select-wrapper ${o ? "ds-select-wrapper--full" : ""} ${m ? "ds-select-wrapper--disabled" : ""}`, children: [
548
+ return /* @__PURE__ */ e.jsxs("div", { className: `ds-select-wrapper ${o ? "ds-select-wrapper--full" : ""} ${f ? "ds-select-wrapper--disabled" : ""}`, children: [
549
549
  s && /* @__PURE__ */ e.jsx("label", { id: v, className: "ds-select-label", children: s }),
550
550
  /* @__PURE__ */ e.jsx("div", { className: "ds-select-container", ref: z, children: /* @__PURE__ */ e.jsxs(
551
551
  "button",
@@ -562,10 +562,10 @@ function Ys({
562
562
  "aria-describedby": C,
563
563
  className: `ds-select-trigger ds-select-trigger--${l} ${r ? "ds-select-trigger--error" : ""}`,
564
564
  onClick: () => {
565
- m || (p ? U() : x());
565
+ f || (p ? U() : x());
566
566
  },
567
567
  onKeyDown: k,
568
- disabled: m,
568
+ disabled: f,
569
569
  ...u,
570
570
  children: [
571
571
  /* @__PURE__ */ e.jsx("span", { className: P ? "" : "ds-select-placeholder", children: (P == null ? void 0 : P.label) || a }),
@@ -582,7 +582,7 @@ function Ys({
582
582
  }
583
583
  ) }),
584
584
  r && /* @__PURE__ */ e.jsx("span", { id: C, className: "ds-select-error", role: "alert", children: r }),
585
- typeof document < "u" && pe.createPortal(G, document.body)
585
+ typeof document < "u" && pe.createPortal(X, document.body)
586
586
  ] });
587
587
  }
588
588
  function Hs({
@@ -594,7 +594,7 @@ function Hs({
594
594
  step: r = 1,
595
595
  size: o = "m",
596
596
  disabled: l = !1,
597
- hint: m,
597
+ hint: f,
598
598
  error: d,
599
599
  ...u
600
600
  }) {
@@ -606,7 +606,7 @@ function Hs({
606
606
  if (l) return;
607
607
  const $ = Math.max(Number(t) - r, i);
608
608
  n == null || n($);
609
- }, f = ($) => {
609
+ }, m = ($) => {
610
610
  if (l) return;
611
611
  const B = $.target.value;
612
612
  if (B === "") {
@@ -618,7 +618,7 @@ function Hs({
618
618
  const T = Math.min(Math.max(y, i), a);
619
619
  n == null || n(T);
620
620
  }
621
- }, _ = [
621
+ }, b = [
622
622
  "ds-stepper-wrapper",
623
623
  l && "ds-stepper-wrapper--disabled",
624
624
  d && "ds-stepper-wrapper--error"
@@ -627,7 +627,7 @@ function Hs({
627
627
  `ds-stepper--${o}`,
628
628
  l && "ds-stepper--disabled"
629
629
  ].filter(Boolean).join(" "), R = o === "xs" ? I[1] : o === "small" ? I[2] : I[3];
630
- return /* @__PURE__ */ e.jsxs("div", { className: _, children: [
630
+ return /* @__PURE__ */ e.jsxs("div", { className: b, children: [
631
631
  s && /* @__PURE__ */ e.jsx("label", { className: "ds-stepper-label", children: s }),
632
632
  /* @__PURE__ */ e.jsxs("div", { className: j, children: [
633
633
  /* @__PURE__ */ e.jsx(
@@ -647,7 +647,7 @@ function Hs({
647
647
  type: "number",
648
648
  className: "ds-stepper-input",
649
649
  value: t,
650
- onChange: f,
650
+ onChange: m,
651
651
  min: i,
652
652
  max: a,
653
653
  step: r,
@@ -667,7 +667,7 @@ function Hs({
667
667
  }
668
668
  )
669
669
  ] }),
670
- m && !d && /* @__PURE__ */ e.jsx("div", { className: "ds-stepper-hint", children: m }),
670
+ f && !d && /* @__PURE__ */ e.jsx("div", { className: "ds-stepper-hint", children: f }),
671
671
  d && /* @__PURE__ */ e.jsx("div", { className: "ds-stepper-error", children: d })
672
672
  ] });
673
673
  }
@@ -688,19 +688,19 @@ function qs({
688
688
  d && "ds-card--interactive"
689
689
  ].filter(Boolean).join(" ");
690
690
  if (r) {
691
- const f = (_) => {
691
+ const m = (b) => {
692
692
  if (o) {
693
- _.preventDefault();
693
+ b.preventDefault();
694
694
  return;
695
695
  }
696
- _.metaKey || _.ctrlKey || _.button === 1 || (_.preventDefault(), a == null || a(_));
696
+ b.metaKey || b.ctrlKey || b.button === 1 || (b.preventDefault(), a == null || a(b));
697
697
  };
698
698
  return /* @__PURE__ */ e.jsx(
699
699
  "a",
700
700
  {
701
701
  className: u,
702
702
  href: o ? void 0 : r,
703
- onClick: f,
703
+ onClick: m,
704
704
  "aria-disabled": o ? "true" : void 0,
705
705
  ...l,
706
706
  children: s
@@ -726,10 +726,10 @@ function qs({
726
726
  function Ks({ children: s, ...t }) {
727
727
  return /* @__PURE__ */ e.jsx("h1", { className: "ds-h1", ...t, children: s });
728
728
  }
729
- function Xs({ children: s, ...t }) {
729
+ function Gs({ children: s, ...t }) {
730
730
  return /* @__PURE__ */ e.jsx("h2", { className: "ds-h2", ...t, children: s });
731
731
  }
732
- function Gs({ children: s, ...t }) {
732
+ function Xs({ children: s, ...t }) {
733
733
  return /* @__PURE__ */ e.jsx("h3", { className: "ds-h3", ...t, children: s });
734
734
  }
735
735
  function Js({ children: s, ...t }) {
@@ -801,7 +801,7 @@ function et({
801
801
  subHeader: r,
802
802
  ...o
803
803
  }) {
804
- const l = E(null), m = K.useId(), [d, u] = D(!1), p = () => {
804
+ const l = E(null), f = K.useId(), [d, u] = D(!1), p = () => {
805
805
  !n || d || (u(!0), setTimeout(() => {
806
806
  u(!1), n();
807
807
  }, fs));
@@ -816,7 +816,7 @@ function et({
816
816
  document.removeEventListener("keydown", j), document.removeEventListener("mousedown", R);
817
817
  };
818
818
  }, [n, d]);
819
- const h = K.Children.toArray(s), f = h.find((j) => (j == null ? void 0 : j.type) === Ie), _ = h.filter((j) => (j == null ? void 0 : j.type) !== Ie);
819
+ const h = K.Children.toArray(s), m = h.find((j) => (j == null ? void 0 : j.type) === Ie), b = h.filter((j) => (j == null ? void 0 : j.type) !== Ie);
820
820
  return /* @__PURE__ */ e.jsx("div", { className: ["ds-modal-overlay", d && "ds-modal-overlay--closing"].filter(Boolean).join(" "), ...o, children: /* @__PURE__ */ e.jsxs(
821
821
  "div",
822
822
  {
@@ -824,11 +824,11 @@ function et({
824
824
  ref: l,
825
825
  role: "dialog",
826
826
  "aria-modal": "true",
827
- "aria-labelledby": t ? m : void 0,
827
+ "aria-labelledby": t ? f : void 0,
828
828
  children: [
829
829
  (t || n || r) && /* @__PURE__ */ e.jsxs("div", { className: "ds-modal__header", children: [
830
830
  (t || n) && /* @__PURE__ */ e.jsxs("div", { className: "ds-modal__header-row", children: [
831
- t && /* @__PURE__ */ e.jsx("h3", { id: m, className: "ds-modal__title", children: t }),
831
+ t && /* @__PURE__ */ e.jsx("h3", { id: f, className: "ds-modal__title", children: t }),
832
832
  n && /* @__PURE__ */ e.jsx(
833
833
  me,
834
834
  {
@@ -842,8 +842,8 @@ function et({
842
842
  ] }),
843
843
  r && /* @__PURE__ */ e.jsx("div", { className: "ds-modal__subheader", children: r })
844
844
  ] }),
845
- /* @__PURE__ */ e.jsx("div", { className: "ds-modal__body", children: _ }),
846
- f
845
+ /* @__PURE__ */ e.jsx("div", { className: "ds-modal__body", children: b }),
846
+ m
847
847
  ]
848
848
  }
849
849
  ) });
@@ -861,15 +861,15 @@ function ms({
861
861
  className: o = "",
862
862
  ...l
863
863
  }) {
864
- const [m, d] = D(n), u = i !== void 0, p = u ? i : m, h = () => {
865
- u ? a == null || a(!i) : d((_) => !_);
866
- }, f = [
864
+ const [f, d] = D(n), u = i !== void 0, p = u ? i : f, h = () => {
865
+ u ? a == null || a(!i) : d((b) => !b);
866
+ }, m = [
867
867
  "ds-code-accordion",
868
868
  `ds-code-accordion--${r}`,
869
869
  p && "ds-code-accordion--expanded",
870
870
  o
871
871
  ].filter(Boolean).join(" ");
872
- return /* @__PURE__ */ e.jsxs("div", { className: f, ...l, children: [
872
+ return /* @__PURE__ */ e.jsxs("div", { className: m, ...l, children: [
873
873
  /* @__PURE__ */ e.jsxs(
874
874
  "button",
875
875
  {
@@ -914,7 +914,7 @@ function tt({ href: s, children: t, onClick: n, target: i, rel: a, ...r }) {
914
914
  function nt({ children: s, size: t = "m", variant: n = "ghost", ...i }) {
915
915
  return /* @__PURE__ */ e.jsx("div", { className: "ds-tabs", role: "tablist", ...i, children: K.Children.map(s, (a) => K.isValidElement(a) ? K.cloneElement(a, { size: t, variant: n }) : a) });
916
916
  }
917
- function rt({ children: s, selected: t = !1, onClick: n, size: i = "m", variant: a = "ghost", disabled: r = !1, icon: o, href: l, ...m }) {
917
+ function rt({ children: s, selected: t = !1, onClick: n, size: i = "m", variant: a = "ghost", disabled: r = !1, icon: o, href: l, ...f }) {
918
918
  const d = o && !s, u = [
919
919
  "ds-tab",
920
920
  `ds-tab--${i}`,
@@ -926,12 +926,12 @@ function rt({ children: s, selected: t = !1, onClick: n, size: i = "m", variant:
926
926
  s
927
927
  ] });
928
928
  if (l) {
929
- const h = (f) => {
929
+ const h = (m) => {
930
930
  if (r) {
931
- f.preventDefault();
931
+ m.preventDefault();
932
932
  return;
933
933
  }
934
- f.metaKey || f.ctrlKey || f.button === 1 || (f.preventDefault(), n == null || n(f));
934
+ m.metaKey || m.ctrlKey || m.button === 1 || (m.preventDefault(), n == null || n(m));
935
935
  };
936
936
  return /* @__PURE__ */ e.jsx(
937
937
  "a",
@@ -942,7 +942,7 @@ function rt({ children: s, selected: t = !1, onClick: n, size: i = "m", variant:
942
942
  className: u,
943
943
  href: r ? void 0 : l,
944
944
  onClick: h,
945
- ...m,
945
+ ...f,
946
946
  children: p
947
947
  }
948
948
  );
@@ -955,18 +955,18 @@ function rt({ children: s, selected: t = !1, onClick: n, size: i = "m", variant:
955
955
  className: u,
956
956
  onClick: n,
957
957
  disabled: r,
958
- ...m,
958
+ ...f,
959
959
  children: p
960
960
  }
961
961
  );
962
962
  }
963
963
  function at({ options: s, value: t, onChange: n, size: i = "m", disabled: a = !1 }) {
964
- const r = E(null), o = E(null), [l, m] = D(!1), d = E(!1), u = E(null), p = E(null), h = () => {
964
+ const r = E(null), o = E(null), [l, f] = D(!1), d = E(!1), u = E(null), p = E(null), h = () => {
965
965
  if (!r.current) return;
966
- const f = r.current.querySelector(`[data-value="${t}"]`);
967
- if (!f) return;
968
- const _ = r.current.getBoundingClientRect(), j = f.getBoundingClientRect(), R = j.left - _.left, $ = j.width;
969
- o.current ? (o.current.style.transition = d.current ? "left var(--transition-normal), width var(--transition-normal)" : "none", o.current.style.left = R + "px", o.current.style.width = $ + "px", d.current = !1) : (m(!0), requestAnimationFrame(() => {
966
+ const m = r.current.querySelector(`[data-value="${t}"]`);
967
+ if (!m) return;
968
+ const b = r.current.getBoundingClientRect(), j = m.getBoundingClientRect(), R = j.left - b.left, $ = j.width;
969
+ o.current ? (o.current.style.transition = d.current ? "left var(--transition-normal), width var(--transition-normal)" : "none", o.current.style.left = R + "px", o.current.style.width = $ + "px", d.current = !1) : (f(!0), requestAnimationFrame(() => {
970
970
  if (!o.current || !r.current) return;
971
971
  const B = r.current.querySelector(`[data-value="${t}"]`);
972
972
  if (!B) return;
@@ -975,14 +975,14 @@ function at({ options: s, value: t, onChange: n, size: i = "m", disabled: a = !1
975
975
  }));
976
976
  };
977
977
  return p.current = h, Ve(() => {
978
- const f = u.current !== t;
979
- u.current = t, d.current = l && f, h();
978
+ const m = u.current !== t;
979
+ u.current = t, d.current = l && m, h();
980
980
  }), M(() => {
981
981
  if (!r.current) return;
982
- const f = new ResizeObserver(() => {
982
+ const m = new ResizeObserver(() => {
983
983
  d.current = !1, p.current();
984
984
  });
985
- return f.observe(r.current), () => f.disconnect();
985
+ return m.observe(r.current), () => m.disconnect();
986
986
  }, []), /* @__PURE__ */ e.jsxs(
987
987
  "div",
988
988
  {
@@ -1002,21 +1002,21 @@ function at({ options: s, value: t, onChange: n, size: i = "m", disabled: a = !1
1002
1002
  "aria-hidden": "true"
1003
1003
  }
1004
1004
  ),
1005
- s.map((f) => /* @__PURE__ */ e.jsxs(
1005
+ s.map((m) => /* @__PURE__ */ e.jsxs(
1006
1006
  "button",
1007
1007
  {
1008
1008
  type: "button",
1009
- "data-value": f.value,
1010
- className: ["ds-seg__btn", t === f.value && "ds-seg__btn--active"].filter(Boolean).join(" "),
1011
- onClick: () => !a && n(f.value),
1012
- "aria-pressed": t === f.value,
1009
+ "data-value": m.value,
1010
+ className: ["ds-seg__btn", t === m.value && "ds-seg__btn--active"].filter(Boolean).join(" "),
1011
+ onClick: () => !a && n(m.value),
1012
+ "aria-pressed": t === m.value,
1013
1013
  disabled: a,
1014
1014
  children: [
1015
- f.icon && /* @__PURE__ */ e.jsx("span", { className: "ds-seg__btn-icon", "aria-hidden": "true", children: f.icon }),
1016
- f.label
1015
+ m.icon && /* @__PURE__ */ e.jsx("span", { className: "ds-seg__btn-icon", "aria-hidden": "true", children: m.icon }),
1016
+ m.label
1017
1017
  ]
1018
1018
  },
1019
- f.value
1019
+ m.value
1020
1020
  ))
1021
1021
  ]
1022
1022
  }
@@ -1031,8 +1031,8 @@ function Ee({
1031
1031
  padding: r = "m",
1032
1032
  ...o
1033
1033
  }) {
1034
- const [l, m] = D(n), d = i !== void 0, u = d ? i : l, p = () => {
1035
- d ? a == null || a(!i) : m((f) => !f);
1034
+ const [l, f] = D(n), d = i !== void 0, u = d ? i : l, p = () => {
1035
+ d ? a == null || a(!i) : f((m) => !m);
1036
1036
  }, h = [
1037
1037
  "ds-accordion",
1038
1038
  `ds-accordion--${r}`,
@@ -1095,7 +1095,7 @@ function hs(s, t, n) {
1095
1095
  return r === s.top ? "top" : r === a - s.bottom ? "bottom" : r === i - s.right ? "right" : "left";
1096
1096
  }
1097
1097
  function it({ children: s, content: t, position: n, ...i }) {
1098
- const [a, r] = D(!1), [o, l] = D({ visibility: "hidden" }), [m, d] = D(n || "top"), u = E(null), p = E(null), h = E(!1), f = () => {
1098
+ const [a, r] = D(!1), [o, l] = D({ visibility: "hidden" }), [f, d] = D(n || "top"), u = E(null), p = E(null), h = E(!1), m = () => {
1099
1099
  if (!u.current || !p.current) return;
1100
1100
  const j = u.current.getBoundingClientRect(), R = p.current.getBoundingClientRect(), $ = n || hs(j, R.height, R.width), { top: B, left: y, arrowOffset: T } = ps($, j, R);
1101
1101
  d($), l({
@@ -1109,9 +1109,9 @@ function it({ children: s, content: t, position: n, ...i }) {
1109
1109
  if (M(() => {
1110
1110
  if (!a) return;
1111
1111
  l({ position: "fixed", visibility: "hidden" });
1112
- const j = requestAnimationFrame(f);
1113
- return window.addEventListener("scroll", f, !0), window.addEventListener("resize", f), () => {
1114
- cancelAnimationFrame(j), window.removeEventListener("scroll", f, !0), window.removeEventListener("resize", f);
1112
+ const j = requestAnimationFrame(m);
1113
+ return window.addEventListener("scroll", m, !0), window.addEventListener("resize", m), () => {
1114
+ cancelAnimationFrame(j), window.removeEventListener("scroll", m, !0), window.removeEventListener("resize", m);
1115
1115
  };
1116
1116
  }, [a, n]), M(() => {
1117
1117
  if (!a) return;
@@ -1120,11 +1120,11 @@ function it({ children: s, content: t, position: n, ...i }) {
1120
1120
  };
1121
1121
  return document.addEventListener("touchstart", j), () => document.removeEventListener("touchstart", j);
1122
1122
  }, [a]), !t) return s;
1123
- const _ = a && /* @__PURE__ */ e.jsx(
1123
+ const b = a && /* @__PURE__ */ e.jsx(
1124
1124
  "div",
1125
1125
  {
1126
1126
  ref: p,
1127
- className: `ds-tooltip ds-tooltip--${m}`,
1127
+ className: `ds-tooltip ds-tooltip--${f}`,
1128
1128
  role: "tooltip",
1129
1129
  style: o,
1130
1130
  children: t
@@ -1147,7 +1147,7 @@ function it({ children: s, content: t, position: n, ...i }) {
1147
1147
  ...i,
1148
1148
  children: [
1149
1149
  s,
1150
- typeof document < "u" && pe.createPortal(_, document.body)
1150
+ typeof document < "u" && pe.createPortal(b, document.body)
1151
1151
  ]
1152
1152
  }
1153
1153
  );
@@ -1161,12 +1161,12 @@ function ot({
1161
1161
  id: r,
1162
1162
  ...o
1163
1163
  }) {
1164
- const l = r || `toggle-${K.useId()}`, m = [
1164
+ const l = r || `toggle-${K.useId()}`, f = [
1165
1165
  "ds-toggle",
1166
1166
  `ds-toggle--${n}`,
1167
1167
  i && "ds-toggle--disabled"
1168
1168
  ].filter(Boolean).join(" ");
1169
- return /* @__PURE__ */ e.jsxs("label", { className: m, htmlFor: l, children: [
1169
+ return /* @__PURE__ */ e.jsxs("label", { className: f, htmlFor: l, children: [
1170
1170
  /* @__PURE__ */ e.jsx(
1171
1171
  "input",
1172
1172
  {
@@ -1192,12 +1192,12 @@ function lt({
1192
1192
  id: r,
1193
1193
  ...o
1194
1194
  }) {
1195
- const l = r || `checkbox-${K.useId()}`, m = [
1195
+ const l = r || `checkbox-${K.useId()}`, f = [
1196
1196
  "ds-checkbox",
1197
1197
  `ds-checkbox--${n}`,
1198
1198
  i && "ds-checkbox--disabled"
1199
1199
  ].filter(Boolean).join(" "), d = n === "xs" ? 10 : n === "small" ? 14 : n === "large" ? 20 : 16;
1200
- return /* @__PURE__ */ e.jsxs("label", { className: m, htmlFor: l, children: [
1200
+ return /* @__PURE__ */ e.jsxs("label", { className: f, htmlFor: l, children: [
1201
1201
  /* @__PURE__ */ e.jsx(
1202
1202
  "input",
1203
1203
  {
@@ -1230,7 +1230,7 @@ function ct({
1230
1230
  name: r,
1231
1231
  value: o,
1232
1232
  id: l,
1233
- ...m
1233
+ ...f
1234
1234
  }) {
1235
1235
  const d = l || `radio-${K.useId()}`, u = [
1236
1236
  "ds-radio",
@@ -1249,7 +1249,7 @@ function ct({
1249
1249
  disabled: i,
1250
1250
  name: r,
1251
1251
  value: o,
1252
- ...m
1252
+ ...f
1253
1253
  }
1254
1254
  ),
1255
1255
  /* @__PURE__ */ e.jsx("span", { className: "ds-radio__circle", children: /* @__PURE__ */ e.jsx("span", { className: "ds-radio__dot" }) }),
@@ -1267,7 +1267,7 @@ function xs({ width: s, height: t, shape: n = "rect", aspectRatio: i, className:
1267
1267
  }
1268
1268
  );
1269
1269
  }
1270
- function _s({ lines: s = 1, lastLineWidth: t = "70%", gap: n, className: i = "", style: a = {}, ...r }) {
1270
+ function bs({ lines: s = 1, lastLineWidth: t = "70%", gap: n, className: i = "", style: a = {}, ...r }) {
1271
1271
  return /* @__PURE__ */ e.jsx(
1272
1272
  "span",
1273
1273
  {
@@ -1286,20 +1286,20 @@ function _s({ lines: s = 1, lastLineWidth: t = "70%", gap: n, className: i = "",
1286
1286
  }
1287
1287
  );
1288
1288
  }
1289
- xs.Text = _s;
1289
+ xs.Text = bs;
1290
1290
  function js(s) {
1291
1291
  let t = 2166136261;
1292
1292
  for (let n = 0; n < s.length; n++)
1293
1293
  t ^= s.charCodeAt(n), t = Math.imul(t, 16777619) >>> 0;
1294
1294
  return t % 360;
1295
1295
  }
1296
- function bs(s) {
1296
+ function _s(s) {
1297
1297
  if (!s) return "";
1298
1298
  const t = s.trim().split(/\s+/);
1299
1299
  return t.length >= 2 ? (t[0][0] + t[1][0]).toUpperCase() : s[0].toUpperCase();
1300
1300
  }
1301
1301
  function dt({ seed: s, icon: t, src: n, size: i = 32, className: a = "", style: r = {}, ...o }) {
1302
- const l = js(s ?? ""), [m, d] = D(!1), u = t ?? /* @__PURE__ */ e.jsx("span", { className: "ds-avatar__initials", children: bs(s) });
1302
+ const l = js(s ?? ""), [f, d] = D(!1), u = t ?? /* @__PURE__ */ e.jsx("span", { className: "ds-avatar__initials", children: _s(s) });
1303
1303
  return /* @__PURE__ */ e.jsx(
1304
1304
  "div",
1305
1305
  {
@@ -1307,7 +1307,7 @@ function dt({ seed: s, icon: t, src: n, size: i = 32, className: a = "", style:
1307
1307
  style: { width: i, height: i, "--ds-avatar-h": l, ...r },
1308
1308
  "aria-hidden": "true",
1309
1309
  ...o,
1310
- children: n && !m ? /* @__PURE__ */ e.jsx("img", { src: n, alt: "", onError: () => d(!0) }) : u
1310
+ children: n && !f ? /* @__PURE__ */ e.jsx("img", { src: n, alt: "", onError: () => d(!0) }) : u
1311
1311
  }
1312
1312
  );
1313
1313
  }
@@ -1347,7 +1347,7 @@ function ft({ children: s, ...t }) {
1347
1347
  function mt({ children: s, ...t }) {
1348
1348
  return /* @__PURE__ */ e.jsx("tbody", { ...t, children: s });
1349
1349
  }
1350
- function pt({ children: s, interactive: t, selected: n, subheader: i, exiting: a, updated: r, className: o = "", onClick: l, ...m }) {
1350
+ function pt({ children: s, interactive: t, selected: n, subheader: i, exiting: a, updated: r, className: o = "", onClick: l, ...f }) {
1351
1351
  return /* @__PURE__ */ e.jsx(
1352
1352
  "tr",
1353
1353
  {
@@ -1361,7 +1361,7 @@ function pt({ children: s, interactive: t, selected: n, subheader: i, exiting: a
1361
1361
  o
1362
1362
  ].filter(Boolean).join(" "),
1363
1363
  onClick: l,
1364
- ...m,
1364
+ ...f,
1365
1365
  children: s
1366
1366
  }
1367
1367
  );
@@ -1370,13 +1370,13 @@ function ht({ children: s, colSpan: t = 999, ...n }) {
1370
1370
  return /* @__PURE__ */ e.jsx("tr", { className: "ds-table-row ds-table-row--subheader", ...n, children: /* @__PURE__ */ e.jsx("td", { colSpan: t, children: s }) });
1371
1371
  }
1372
1372
  function xt({ children: s, align: t = "left", sortDir: n, onSort: i, width: a, className: r = "", style: o = {}, ...l }) {
1373
- const m = !!i || n !== void 0, d = n === "asc" ? qe : n === "desc" ? he : Ke;
1373
+ const f = !!i || n !== void 0, d = n === "asc" ? qe : n === "desc" ? he : Ke;
1374
1374
  return /* @__PURE__ */ e.jsx(
1375
1375
  "th",
1376
1376
  {
1377
1377
  className: [
1378
1378
  "ds-th",
1379
- m ? "ds-th--sortable" : "",
1379
+ f ? "ds-th--sortable" : "",
1380
1380
  n ? "ds-th--sorted" : "",
1381
1381
  t !== "left" ? `ds-table-cell--${t}` : "",
1382
1382
  r
@@ -1384,14 +1384,14 @@ function xt({ children: s, align: t = "left", sortDir: n, onSort: i, width: a, c
1384
1384
  onClick: i,
1385
1385
  style: { width: a, ...o },
1386
1386
  ...l,
1387
- children: m ? /* @__PURE__ */ e.jsxs("span", { className: "ds-th__inner", children: [
1387
+ children: f ? /* @__PURE__ */ e.jsxs("span", { className: "ds-th__inner", children: [
1388
1388
  s,
1389
1389
  /* @__PURE__ */ e.jsx("span", { className: "ds-th__sort-icon", children: /* @__PURE__ */ e.jsx(d, { size: 11, strokeWidth: 2.5 }) })
1390
1390
  ] }) : s
1391
1391
  }
1392
1392
  );
1393
1393
  }
1394
- function _t({ children: s, align: t = "left", secondary: n, muted: i, truncate: a, nowrap: r, className: o = "", ...l }) {
1394
+ function bt({ children: s, align: t = "left", secondary: n, muted: i, truncate: a, nowrap: r, className: o = "", ...l }) {
1395
1395
  return /* @__PURE__ */ e.jsx(
1396
1396
  "td",
1397
1397
  {
@@ -1432,7 +1432,7 @@ function jt({
1432
1432
  }
1433
1433
  );
1434
1434
  }
1435
- function bt({
1435
+ function _t({
1436
1436
  label: s,
1437
1437
  hint: t,
1438
1438
  error: n,
@@ -1441,10 +1441,10 @@ function bt({
1441
1441
  htmlFor: r,
1442
1442
  children: o,
1443
1443
  className: l = "",
1444
- style: m,
1444
+ style: f,
1445
1445
  ...d
1446
1446
  }) {
1447
- const u = K.useId(), p = r ?? u, h = `${p}-hint`, f = `${p}-error`;
1447
+ const u = K.useId(), p = r ?? u, h = `${p}-hint`, m = `${p}-error`;
1448
1448
  return /* @__PURE__ */ e.jsxs(
1449
1449
  "div",
1450
1450
  {
@@ -1452,19 +1452,19 @@ function bt({
1452
1452
  "data-state": n ? "error" : void 0,
1453
1453
  "data-required": i ? "" : void 0,
1454
1454
  "data-disabled": a ? "" : void 0,
1455
- style: m,
1455
+ style: f,
1456
1456
  ...d,
1457
1457
  children: [
1458
1458
  s && /* @__PURE__ */ e.jsx("label", { className: "ds-field-label", htmlFor: p, children: s }),
1459
1459
  /* @__PURE__ */ e.jsx("div", { className: "ds-field-control", children: o }),
1460
1460
  t && !n && /* @__PURE__ */ e.jsx("p", { className: "ds-field-hint", id: h, children: t }),
1461
- n && /* @__PURE__ */ e.jsx("p", { className: "ds-field-error", id: f, role: "alert", children: n })
1461
+ n && /* @__PURE__ */ e.jsx("p", { className: "ds-field-error", id: m, role: "alert", children: n })
1462
1462
  ]
1463
1463
  }
1464
1464
  );
1465
1465
  }
1466
1466
  function vt({ label: s, value: t, delta: n, size: i = "m", inline: a = !1, className: r = "", style: o, ...l }) {
1467
- const m = n != null && n.startsWith("+") ? "up" : n != null && n.startsWith("-") ? "down" : "neutral";
1467
+ const f = n != null && n.startsWith("+") ? "up" : n != null && n.startsWith("-") ? "down" : "neutral";
1468
1468
  return /* @__PURE__ */ e.jsxs(
1469
1469
  "div",
1470
1470
  {
@@ -1479,7 +1479,7 @@ function vt({ label: s, value: t, delta: n, size: i = "m", inline: a = !1, class
1479
1479
  children: [
1480
1480
  s && /* @__PURE__ */ e.jsx("span", { className: "ds-stat-label", children: s }),
1481
1481
  t != null && /* @__PURE__ */ e.jsx("span", { className: "ds-stat-value", children: t }),
1482
- n != null && /* @__PURE__ */ e.jsx("span", { className: `ds-stat-delta ds-stat-delta--${m}`, children: n })
1482
+ n != null && /* @__PURE__ */ e.jsx("span", { className: `ds-stat-delta ds-stat-delta--${f}`, children: n })
1483
1483
  ]
1484
1484
  }
1485
1485
  );
@@ -1500,10 +1500,10 @@ function Nt({
1500
1500
  "aria-label": n,
1501
1501
  style: a,
1502
1502
  ...r,
1503
- children: /* @__PURE__ */ e.jsx("ol", { className: "ds-breadcrumb-list", children: o.map((l, m) => /* @__PURE__ */ e.jsxs("li", { className: "ds-breadcrumb-item", children: [
1503
+ children: /* @__PURE__ */ e.jsx("ol", { className: "ds-breadcrumb-list", children: o.map((l, f) => /* @__PURE__ */ e.jsxs("li", { className: "ds-breadcrumb-item", children: [
1504
1504
  l,
1505
- m < o.length - 1 && /* @__PURE__ */ e.jsx("span", { className: "ds-breadcrumb-sep", "aria-hidden": "true", children: t })
1506
- ] }, m)) })
1505
+ f < o.length - 1 && /* @__PURE__ */ e.jsx("span", { className: "ds-breadcrumb-sep", "aria-hidden": "true", children: t })
1506
+ ] }, f)) })
1507
1507
  }
1508
1508
  );
1509
1509
  }
@@ -1517,7 +1517,7 @@ function wt({
1517
1517
  style: o,
1518
1518
  ...l
1519
1519
  }) {
1520
- const m = vs(s, t, i);
1520
+ const f = vs(s, t, i);
1521
1521
  return /* @__PURE__ */ e.jsxs(
1522
1522
  "nav",
1523
1523
  {
@@ -1533,10 +1533,10 @@ function wt({
1533
1533
  onClick: () => n == null ? void 0 : n(s - 1),
1534
1534
  disabled: s <= 1,
1535
1535
  "aria-label": "Previous page",
1536
- children: /* @__PURE__ */ e.jsx(Xe, { size: 16 })
1536
+ children: /* @__PURE__ */ e.jsx(Ge, { size: 16 })
1537
1537
  }
1538
1538
  ),
1539
- m.map(
1539
+ f.map(
1540
1540
  (d, u) => d === "…" ? /* @__PURE__ */ e.jsx("span", { className: "ds-pagination-gap", "aria-hidden": "true", children: "…" }, `gap-${u}`) : /* @__PURE__ */ e.jsx(
1541
1541
  "button",
1542
1542
  {
@@ -1556,7 +1556,7 @@ function wt({
1556
1556
  onClick: () => n == null ? void 0 : n(s + 1),
1557
1557
  disabled: s >= t,
1558
1558
  "aria-label": "Next page",
1559
- children: /* @__PURE__ */ e.jsx(Ge, { size: 16 })
1559
+ children: /* @__PURE__ */ e.jsx(Xe, { size: 16 })
1560
1560
  }
1561
1561
  )
1562
1562
  ]
@@ -1578,22 +1578,22 @@ function gt({
1578
1578
  side: i = "right",
1579
1579
  ...a
1580
1580
  }) {
1581
- const r = E(null), o = K.useId(), [l, m] = D(!1), d = () => {
1582
- !n || l || (m(!0), setTimeout(() => {
1583
- m(!1), n();
1581
+ const r = E(null), o = K.useId(), [l, f] = D(!1), d = () => {
1582
+ !n || l || (f(!0), setTimeout(() => {
1583
+ f(!1), n();
1584
1584
  }, Ns));
1585
1585
  };
1586
1586
  M(() => {
1587
- const f = (j) => {
1587
+ const m = (j) => {
1588
1588
  j.key === "Escape" && d();
1589
- }, _ = (j) => {
1589
+ }, b = (j) => {
1590
1590
  r.current && !r.current.contains(j.target) && d();
1591
1591
  };
1592
- return document.addEventListener("keydown", f), document.addEventListener("mousedown", _), () => {
1593
- document.removeEventListener("keydown", f), document.removeEventListener("mousedown", _);
1592
+ return document.addEventListener("keydown", m), document.addEventListener("mousedown", b), () => {
1593
+ document.removeEventListener("keydown", m), document.removeEventListener("mousedown", b);
1594
1594
  };
1595
1595
  }, [n, l]);
1596
- const u = K.Children.toArray(s), p = u.find((f) => (f == null ? void 0 : f.type) === Be), h = u.filter((f) => (f == null ? void 0 : f.type) !== Be);
1596
+ const u = K.Children.toArray(s), p = u.find((m) => (m == null ? void 0 : m.type) === Be), h = u.filter((m) => (m == null ? void 0 : m.type) !== Be);
1597
1597
  return /* @__PURE__ */ e.jsx(
1598
1598
  "div",
1599
1599
  {
@@ -1639,12 +1639,12 @@ function yt({
1639
1639
  role: r,
1640
1640
  ...o
1641
1641
  }) {
1642
- const l = ws[t], m = r || (t === "error" ? "alert" : "status");
1642
+ const l = ws[t], f = r || (t === "error" ? "alert" : "status");
1643
1643
  return /* @__PURE__ */ e.jsxs(
1644
1644
  "div",
1645
1645
  {
1646
1646
  className: `ds-banner ds-banner--${t}`,
1647
- role: m,
1647
+ role: f,
1648
1648
  ...o,
1649
1649
  children: [
1650
1650
  l && /* @__PURE__ */ e.jsx("span", { className: "ds-banner-icon", "aria-hidden": "true", children: /* @__PURE__ */ e.jsx(l, { size: I[2], strokeWidth: 1.5 }) }),
@@ -1682,7 +1682,7 @@ function kt({
1682
1682
  style: o,
1683
1683
  ...l
1684
1684
  }) {
1685
- const [m, d] = D(!1), [u, p] = D(!1), h = n !== void 0, f = h ? n : m, _ = E(null), j = E(null), R = E(null), $ = E(null), [B, y] = D({}), T = E(null), z = 150, A = () => {
1685
+ const [f, d] = D(!1), [u, p] = D(!1), h = n !== void 0, m = h ? n : f, b = E(null), j = E(null), R = E(null), $ = E(null), [B, y] = D({}), T = E(null), z = 150, A = () => {
1686
1686
  if (h)
1687
1687
  i == null || i(!1);
1688
1688
  else {
@@ -1692,16 +1692,16 @@ function kt({
1692
1692
  }, z);
1693
1693
  }
1694
1694
  }, Y = () => {
1695
- const x = !f;
1695
+ const x = !m;
1696
1696
  h ? i == null || i(x) : x ? (clearTimeout(T.current), p(!1), d(!0)) : A();
1697
1697
  }, H = () => {
1698
- f || (h ? i == null || i(!0) : (clearTimeout(T.current), p(!1), d(!0)));
1698
+ m || (h ? i == null || i(!0) : (clearTimeout(T.current), p(!1), d(!0)));
1699
1699
  };
1700
1700
  M(() => () => clearTimeout(T.current), []), M(() => {
1701
- if (!f) return;
1701
+ if (!m) return;
1702
1702
  const x = 300, N = () => {
1703
- var G;
1704
- const k = (G = _.current) == null ? void 0 : G.getBoundingClientRect();
1703
+ var X;
1704
+ const k = (X = b.current) == null ? void 0 : X.getBoundingClientRect();
1705
1705
  if (!k) return;
1706
1706
  const P = window.innerHeight - k.bottom, q = P < x + 8 && k.top > P;
1707
1707
  y(
@@ -1711,7 +1711,7 @@ function kt({
1711
1711
  return N(), window.addEventListener("scroll", N, !0), window.addEventListener("resize", N), () => {
1712
1712
  window.removeEventListener("scroll", N, !0), window.removeEventListener("resize", N);
1713
1713
  };
1714
- }, [f, a]);
1714
+ }, [m, a]);
1715
1715
  const F = () => {
1716
1716
  var N;
1717
1717
  const x = (N = R.current) == null ? void 0 : N.querySelector(
@@ -1720,36 +1720,36 @@ function kt({
1720
1720
  x == null || x.focus();
1721
1721
  };
1722
1722
  M(() => {
1723
- if (!f) return;
1723
+ if (!m) return;
1724
1724
  const x = (k) => {
1725
1725
  var P, q;
1726
- !((P = _.current) != null && P.contains(k.target)) && !((q = j.current) != null && q.contains(k.target)) && A();
1726
+ !((P = b.current) != null && P.contains(k.target)) && !((q = j.current) != null && q.contains(k.target)) && A();
1727
1727
  }, N = (k) => {
1728
1728
  k.key === "Escape" && (A(), F());
1729
1729
  };
1730
1730
  return document.addEventListener("mousedown", x), document.addEventListener("keydown", N), () => {
1731
1731
  document.removeEventListener("mousedown", x), document.removeEventListener("keydown", N);
1732
1732
  };
1733
- }, [f]), M(() => {
1734
- if (!f || !$.current || !j.current) return;
1733
+ }, [m]), M(() => {
1734
+ if (!m || !$.current || !j.current) return;
1735
1735
  const x = v(), N = $.current === "last" ? x[x.length - 1] : x[0];
1736
1736
  N == null || N.focus(), $.current = null;
1737
- }, [f]);
1737
+ }, [m]);
1738
1738
  const v = () => j.current ? [...j.current.querySelectorAll(
1739
1739
  'button:not([disabled]), a[href]:not([aria-disabled="true"]), [tabindex]:not([tabindex="-1"])'
1740
1740
  )] : [], C = (x) => {
1741
1741
  var N, k;
1742
1742
  if (x.key === "ArrowDown")
1743
- x.preventDefault(), f ? (N = v()[0]) == null || N.focus() : ($.current = "first", H());
1743
+ x.preventDefault(), m ? (N = v()[0]) == null || N.focus() : ($.current = "first", H());
1744
1744
  else if (x.key === "ArrowUp")
1745
- if (x.preventDefault(), !f)
1745
+ if (x.preventDefault(), !m)
1746
1746
  $.current = "last", H();
1747
1747
  else {
1748
1748
  const P = v();
1749
1749
  (k = P[P.length - 1]) == null || k.focus();
1750
1750
  }
1751
- }, X = (x) => {
1752
- var P, q, G, g;
1751
+ }, G = (x) => {
1752
+ var P, q, X, g;
1753
1753
  const N = v(), k = N.findIndex((c) => c === document.activeElement);
1754
1754
  switch (x.key) {
1755
1755
  case "ArrowDown":
@@ -1759,7 +1759,7 @@ function kt({
1759
1759
  x.preventDefault(), k <= 0 ? F() : (q = N[k - 1]) == null || q.focus();
1760
1760
  break;
1761
1761
  case "Home":
1762
- x.preventDefault(), (G = N[0]) == null || G.focus();
1762
+ x.preventDefault(), (X = N[0]) == null || X.focus();
1763
1763
  break;
1764
1764
  case "End":
1765
1765
  x.preventDefault(), (g = N[N.length - 1]) == null || g.focus();
@@ -1768,7 +1768,7 @@ function kt({
1768
1768
  A();
1769
1769
  break;
1770
1770
  }
1771
- }, U = f && /* @__PURE__ */ e.jsx(
1771
+ }, U = m && /* @__PURE__ */ e.jsx(
1772
1772
  "div",
1773
1773
  {
1774
1774
  ref: j,
@@ -1779,7 +1779,7 @@ function kt({
1779
1779
  u && "ds-dropdown__menu--closing"
1780
1780
  ].filter(Boolean).join(" "),
1781
1781
  style: B,
1782
- onKeyDown: X,
1782
+ onKeyDown: G,
1783
1783
  children: t.map((x, N) => {
1784
1784
  if (x.separator)
1785
1785
  return /* @__PURE__ */ e.jsx("div", { className: "ds-dropdown__separator" }, N);
@@ -1799,8 +1799,8 @@ function kt({
1799
1799
  ].filter(Boolean).join(" "),
1800
1800
  ...q,
1801
1801
  onClick: () => {
1802
- var G;
1803
- (G = x.onClick) == null || G.call(x), A();
1802
+ var X;
1803
+ (X = x.onClick) == null || X.call(x), A();
1804
1804
  },
1805
1805
  children: [
1806
1806
  x.icon && /* @__PURE__ */ e.jsx("span", { className: "ds-dropdown__item-icon", children: x.icon }),
@@ -1816,7 +1816,7 @@ function kt({
1816
1816
  return /* @__PURE__ */ e.jsxs(
1817
1817
  "div",
1818
1818
  {
1819
- ref: _,
1819
+ ref: b,
1820
1820
  className: ["ds-dropdown", r].filter(Boolean).join(" "),
1821
1821
  style: o,
1822
1822
  ...l,
@@ -1844,7 +1844,7 @@ function Et({
1844
1844
  min: a = 2,
1845
1845
  animate: r = !0
1846
1846
  }) {
1847
- const o = Math.min(100, Math.max(0, s)), l = Math.max(a, o), m = n === "auto" ? o >= 70 ? "success" : o >= 50 ? "warning" : "danger" : n;
1847
+ const o = Math.min(100, Math.max(0, s)), l = Math.max(a, o), f = n === "auto" ? o >= 70 ? "success" : o >= 50 ? "warning" : "danger" : n;
1848
1848
  return /* @__PURE__ */ e.jsxs(
1849
1849
  "div",
1850
1850
  {
@@ -1861,7 +1861,7 @@ function Et({
1861
1861
  /* @__PURE__ */ e.jsx("div", { className: "ds-progress__track", children: /* @__PURE__ */ e.jsx(
1862
1862
  "div",
1863
1863
  {
1864
- className: `ds-progress__fill ds-progress__fill--${m}`,
1864
+ className: `ds-progress__fill ds-progress__fill--${f}`,
1865
1865
  style: { width: `${l}%` }
1866
1866
  }
1867
1867
  ) }),
@@ -1883,10 +1883,10 @@ function ks(s, { duration: t = 600 } = {}) {
1883
1883
  }
1884
1884
  const o = a.current, l = s - o;
1885
1885
  if (l === 0) return;
1886
- let m = null;
1886
+ let f = null;
1887
1887
  const d = (u) => {
1888
- m || (m = u);
1889
- const p = Math.min((u - m) / t, 1);
1888
+ f || (f = u);
1889
+ const p = Math.min((u - f) / t, 1);
1890
1890
  i(o + l * gs(p)), p < 1 ? r.current = requestAnimationFrame(d) : a.current = s;
1891
1891
  };
1892
1892
  return r.current = requestAnimationFrame(d), () => cancelAnimationFrame(r.current);
@@ -1908,8 +1908,8 @@ function Es({ threshold: s = 0.1, rootMargin: t = "0px", once: n = !1 } = {}) {
1908
1908
  const o = i.current;
1909
1909
  if (!o) return;
1910
1910
  const l = new IntersectionObserver(
1911
- ([m]) => {
1912
- m.isIntersecting ? (r(!0), n && l.disconnect()) : n || r(!1);
1911
+ ([f]) => {
1912
+ f.isIntersecting ? (r(!0), n && l.disconnect()) : n || r(!1);
1913
1913
  },
1914
1914
  { threshold: s, rootMargin: t }
1915
1915
  );
@@ -1926,10 +1926,10 @@ function Tt({
1926
1926
  onLeave: o,
1927
1927
  ...l
1928
1928
  }) {
1929
- const { ref: m, inView: d } = Es({ threshold: i, rootMargin: a, once: n }), u = E(!1);
1929
+ const { ref: f, inView: d } = Es({ threshold: i, rootMargin: a, once: n }), u = E(!1);
1930
1930
  return M(() => {
1931
1931
  d && !u.current && (r == null || r()), !d && u.current && (o == null || o()), u.current = d;
1932
- }, [d]), /* @__PURE__ */ e.jsx(t, { ref: m, ...l, children: typeof s == "function" ? s(d) : s });
1932
+ }, [d]), /* @__PURE__ */ e.jsx(t, { ref: f, ...l, children: typeof s == "function" ? s(d) : s });
1933
1933
  }
1934
1934
  const Me = {
1935
1935
  default: ke,
@@ -1938,9 +1938,9 @@ const Me = {
1938
1938
  error: we
1939
1939
  };
1940
1940
  let de = [];
1941
- const be = /* @__PURE__ */ new Set();
1941
+ const _e = /* @__PURE__ */ new Set();
1942
1942
  function We() {
1943
- be.forEach((s) => s([...de]));
1943
+ _e.forEach((s) => s([...de]));
1944
1944
  }
1945
1945
  function $s(s) {
1946
1946
  de = [...de, s], We();
@@ -1995,7 +1995,7 @@ function Rs({ data: s, onDismiss: t }) {
1995
1995
  }
1996
1996
  function St({ position: s = "bottom-right" }) {
1997
1997
  const [t, n] = D(() => [...de]);
1998
- return M(() => (be.add(n), () => be.delete(n)), []), !t.length || typeof document > "u" ? null : pe.createPortal(
1998
+ return M(() => (_e.add(n), () => _e.delete(n)), []), !t.length || typeof document > "u" ? null : pe.createPortal(
1999
1999
  /* @__PURE__ */ e.jsx("div", { className: ["ds-toast-container", `ds-toast-container--${s}`].join(" "), children: t.map((i) => /* @__PURE__ */ e.jsx(Rs, { data: i, onDismiss: Ts }, i.id)) }),
2000
2000
  document.body
2001
2001
  );
@@ -2014,7 +2014,7 @@ function Dt({
2014
2014
  expanded: r,
2015
2015
  onToggle: o,
2016
2016
  children: l,
2017
- className: m = "",
2017
+ className: f = "",
2018
2018
  ...d
2019
2019
  }) {
2020
2020
  const u = t === "running", p = /* @__PURE__ */ e.jsxs("span", { className: "ds-tool-card__title-row", children: [
@@ -2026,7 +2026,7 @@ function Dt({
2026
2026
  return l ? /* @__PURE__ */ e.jsx(
2027
2027
  "div",
2028
2028
  {
2029
- className: ["ds-tool-card", u && "ds-tool-card--running", m].filter(Boolean).join(" "),
2029
+ className: ["ds-tool-card", u && "ds-tool-card--running", f].filter(Boolean).join(" "),
2030
2030
  ...d,
2031
2031
  children: /* @__PURE__ */ e.jsx(
2032
2032
  Ee,
@@ -2043,7 +2043,7 @@ function Dt({
2043
2043
  ) : /* @__PURE__ */ e.jsx(
2044
2044
  "div",
2045
2045
  {
2046
- className: ["ds-tool-card", "ds-tool-card--bubble", m].filter(Boolean).join(" "),
2046
+ className: ["ds-tool-card", "ds-tool-card--bubble", f].filter(Boolean).join(" "),
2047
2047
  ...d,
2048
2048
  children: p
2049
2049
  }
@@ -2056,8 +2056,8 @@ function Ds({
2056
2056
  "aria-label": i = "Copy to clipboard",
2057
2057
  ...a
2058
2058
  }) {
2059
- const [r, o] = D(!1), l = (m) => {
2060
- m.currentTarget.blur(), navigator.clipboard.writeText(s).then(() => {
2059
+ const [r, o] = D(!1), l = (f) => {
2060
+ f.currentTarget.blur(), navigator.clipboard.writeText(s).then(() => {
2061
2061
  o(!0), setTimeout(() => o(!1), n);
2062
2062
  });
2063
2063
  };
@@ -2107,8 +2107,8 @@ function It({
2107
2107
  ...l
2108
2108
  }) {
2109
2109
  return /* @__PURE__ */ e.jsxs("div", { className: ["ds-step-indicator", r].filter(Boolean).join(" "), ...l, children: [
2110
- /* @__PURE__ */ e.jsx("div", { className: "ds-step-indicator__dots", role: "tablist", "aria-label": o, children: Array.from({ length: s }, (m, d) => {
2111
- const u = d === t, p = n.includes(d) && !u, h = i && (d <= t || n.includes(d)), f = [
2110
+ /* @__PURE__ */ e.jsx("div", { className: "ds-step-indicator__dots", role: "tablist", "aria-label": o, children: Array.from({ length: s }, (f, d) => {
2111
+ const u = d === t, p = n.includes(d) && !u, h = i && (d <= t || n.includes(d)), m = [
2112
2112
  "ds-step-indicator__dot",
2113
2113
  u && "ds-step-indicator__dot--active",
2114
2114
  p && "ds-step-indicator__dot--done"
@@ -2117,7 +2117,7 @@ function It({
2117
2117
  "button",
2118
2118
  {
2119
2119
  type: "button",
2120
- className: f,
2120
+ className: m,
2121
2121
  role: "tab",
2122
2122
  "aria-selected": u,
2123
2123
  "aria-label": `Step ${d + 1}`,
@@ -2161,17 +2161,17 @@ function Mt({
2161
2161
  className: o = "",
2162
2162
  ...l
2163
2163
  }) {
2164
- const m = [
2164
+ const f = [
2165
2165
  "ds-chat-message",
2166
2166
  `ds-chat-message--${s}`,
2167
2167
  a && "ds-chat-message--streaming",
2168
2168
  o
2169
2169
  ].filter(Boolean).join(" ");
2170
- return s === "system" ? /* @__PURE__ */ e.jsx("div", { className: m, ...l, children: /* @__PURE__ */ e.jsx("span", { className: "ds-chat-message__system-label", children: r }) }) : s === "user" ? /* @__PURE__ */ e.jsxs("div", { className: m, ...l, children: [
2170
+ return s === "system" ? /* @__PURE__ */ e.jsx("div", { className: f, ...l, children: /* @__PURE__ */ e.jsx("span", { className: "ds-chat-message__system-label", children: r }) }) : s === "user" ? /* @__PURE__ */ e.jsxs("div", { className: f, ...l, children: [
2171
2171
  i && /* @__PURE__ */ e.jsx("div", { className: "ds-chat-message__attachments", children: i }),
2172
2172
  /* @__PURE__ */ e.jsx("div", { className: "ds-chat-message__bubble", children: r }),
2173
2173
  n && /* @__PURE__ */ e.jsx("div", { className: "ds-chat-message__footer", children: n })
2174
- ] }) : /* @__PURE__ */ e.jsxs("div", { className: m, ...l, children: [
2174
+ ] }) : /* @__PURE__ */ e.jsxs("div", { className: f, ...l, children: [
2175
2175
  t && /* @__PURE__ */ e.jsx("div", { className: "ds-chat-message__header", children: t }),
2176
2176
  i && /* @__PURE__ */ e.jsx("div", { className: "ds-chat-message__attachments", children: i }),
2177
2177
  /* @__PURE__ */ e.jsx("div", { className: "ds-chat-message__body", children: r }),
@@ -2202,32 +2202,32 @@ function As({
2202
2202
  betweenTime: r = 380,
2203
2203
  manualPauseMs: o = 5e3
2204
2204
  }) {
2205
- const [l, m] = D(0), [d, u] = D(""), p = E("typing"), h = E(0), f = E(0), _ = E(null), j = E(0);
2205
+ const [l, f] = D(0), [d, u] = D(""), p = E("typing"), h = E(0), m = E(0), b = E(null), j = E(0);
2206
2206
  M(() => {
2207
- f.current = l;
2207
+ m.current = l;
2208
2208
  }, [l]), M(() => {
2209
- if (_.current && (clearTimeout(_.current), _.current = null), !t || s.length === 0) {
2209
+ if (b.current && (clearTimeout(b.current), b.current = null), !t || s.length === 0) {
2210
2210
  u(""), h.current = 0, p.current = "typing";
2211
2211
  return;
2212
2212
  }
2213
2213
  const T = () => {
2214
2214
  const z = Date.now();
2215
2215
  if (j.current > z) {
2216
- _.current = setTimeout(T, j.current - z);
2216
+ b.current = setTimeout(T, j.current - z);
2217
2217
  return;
2218
2218
  }
2219
- const A = s[f.current % s.length] ?? "";
2220
- p.current === "typing" ? (h.current += 1, u(A.slice(0, h.current)), h.current >= A.length ? (p.current = "holding", _.current = setTimeout(T, a)) : _.current = setTimeout(T, n + Math.random() * 28)) : p.current === "holding" ? (p.current = "erasing", _.current = setTimeout(T, i)) : (h.current = Math.max(0, h.current - 1), u(A.slice(0, h.current)), h.current <= 0 ? (p.current = "typing", f.current = (f.current + 1) % s.length, m(f.current), _.current = setTimeout(T, r)) : _.current = setTimeout(T, i));
2219
+ const A = s[m.current % s.length] ?? "";
2220
+ p.current === "typing" ? (h.current += 1, u(A.slice(0, h.current)), h.current >= A.length ? (p.current = "holding", b.current = setTimeout(T, a)) : b.current = setTimeout(T, n + Math.random() * 28)) : p.current === "holding" ? (p.current = "erasing", b.current = setTimeout(T, i)) : (h.current = Math.max(0, h.current - 1), u(A.slice(0, h.current)), h.current <= 0 ? (p.current = "typing", m.current = (m.current + 1) % s.length, f(m.current), b.current = setTimeout(T, r)) : b.current = setTimeout(T, i));
2221
2221
  };
2222
- return _.current = setTimeout(T, 260), () => {
2223
- _.current && clearTimeout(_.current);
2222
+ return b.current = setTimeout(T, 260), () => {
2223
+ b.current && clearTimeout(b.current);
2224
2224
  };
2225
2225
  }, [t, s, n, i, a, r]);
2226
2226
  const R = (T) => {
2227
2227
  if (s.length === 0) return;
2228
2228
  const z = (T % s.length + s.length) % s.length, A = s[z];
2229
- f.current = z, h.current = A.length, p.current = "holding", j.current = Date.now() + o, m(z), u(A);
2230
- }, $ = () => R(f.current + 1), B = () => R(f.current - 1), y = s[l % s.length] ?? "";
2229
+ m.current = z, h.current = A.length, p.current = "holding", j.current = Date.now() + o, f(z), u(A);
2230
+ }, $ = () => R(m.current + 1), B = () => R(m.current - 1), y = s[l % s.length] ?? "";
2231
2231
  return { displayed: d, currentPrompt: y, index: l, next: $, prev: B };
2232
2232
  }
2233
2233
  let Is = 0;
@@ -2240,13 +2240,13 @@ function Lt({
2240
2240
  loading: r = !1,
2241
2241
  disabled: o = !1,
2242
2242
  placeholder: l = "Let's get things done...",
2243
- animatedPlaceholders: m,
2243
+ animatedPlaceholders: f,
2244
2244
  attachments: d,
2245
2245
  images: u,
2246
2246
  onAttachFiles: p,
2247
2247
  onAttachImages: h,
2248
- onRemoveAttachment: f,
2249
- onRemoveImage: _,
2248
+ onRemoveAttachment: m,
2249
+ onRemoveImage: b,
2250
2250
  acceptImage: j,
2251
2251
  acceptFile: R,
2252
2252
  maxImages: $,
@@ -2256,48 +2256,48 @@ function Lt({
2256
2256
  className: z = "",
2257
2257
  ...A
2258
2258
  }) {
2259
- const Y = E(null), H = E(null), F = E(0), [v, C] = D(!1), [X, U] = D([]), x = (b) => {
2259
+ const Y = E(null), H = E(null), F = E(0), [v, C] = D(!1), [G, U] = D([]), x = (_) => {
2260
2260
  const S = ++Is;
2261
- U((V) => [...V, { id: S, msg: b }]), setTimeout(() => U((V) => V.filter((J) => J.id !== S)), 6e3);
2262
- }, N = (b) => U((S) => S.filter((V) => V.id !== b)), k = (b) => b.type.startsWith("image/"), P = () => !0, q = j ?? k, G = R ?? P, g = (b) => {
2261
+ U((V) => [...V, { id: S, msg: _ }]), setTimeout(() => U((V) => V.filter((J) => J.id !== S)), 6e3);
2262
+ }, N = (_) => U((S) => S.filter((V) => V.id !== _)), k = (_) => _.type.startsWith("image/"), P = () => !0, q = j ?? k, X = R ?? P, g = (_) => {
2263
2263
  const S = [], V = [], J = [], Z = [];
2264
2264
  let ee = 0, oe = $ != null ? $ - ((u == null ? void 0 : u.length) ?? 0) : 1 / 0;
2265
- for (const se of b)
2266
- q(se) ? B && se.size > B ? J.push(se.name) : oe > 0 ? (S.push(se), oe--) : ee++ : G(se) ? V.push(se) : Z.push(se.name);
2265
+ for (const se of _)
2266
+ q(se) ? B && se.size > B ? J.push(se.name) : oe > 0 ? (S.push(se), oe--) : ee++ : X(se) ? V.push(se) : Z.push(se.name);
2267
2267
  return { imageFiles: S, docFiles: V, tooLarge: J, skipped: Z, limitExceeded: ee };
2268
- }, c = (b) => {
2269
- const { imageFiles: S, docFiles: V, tooLarge: J, skipped: Z, limitExceeded: ee } = g(b);
2268
+ }, c = (_) => {
2269
+ const { imageFiles: S, docFiles: V, tooLarge: J, skipped: Z, limitExceeded: ee } = g(_);
2270
2270
  J.length && x(`File${J.length > 1 ? "s" : ""} too large${B ? ` (max ${B / 1024 / 1024}MB)` : ""}: ${J.join(", ")}`), Z.length && x(`Skipped unsupported file${Z.length > 1 ? "s" : ""}: ${Z.join(", ")}`), ee && x(`Max ${$} images per message`), h && S.length && h(S);
2271
2271
  const oe = V.concat(h ? [] : S);
2272
2272
  p && oe.length && p(oe);
2273
2273
  };
2274
2274
  M(() => {
2275
- const b = H.current;
2276
- b && (b.style.height = "auto", b.style.height = `${Math.min(b.scrollHeight, 200)}px`);
2275
+ const _ = H.current;
2276
+ _ && (_.style.height = "auto", _.style.height = `${Math.min(_.scrollHeight, 200)}px`);
2277
2277
  }, [s]), M(() => {
2278
- const b = (S) => {
2278
+ const _ = (S) => {
2279
2279
  var J, Z, ee;
2280
2280
  if (r || o) return;
2281
2281
  const V = (J = S.target) == null ? void 0 : J.tagName;
2282
2282
  V === "INPUT" || V === "TEXTAREA" || V === "SELECT" || (Z = S.target) != null && Z.isContentEditable || S.ctrlKey || S.metaKey || S.altKey || S.key.length !== 1 && S.key !== "Backspace" && S.key !== "Delete" || (ee = H.current) == null || ee.focus();
2283
2283
  };
2284
- return document.addEventListener("keydown", b), () => document.removeEventListener("keydown", b);
2284
+ return document.addEventListener("keydown", _), () => document.removeEventListener("keydown", _);
2285
2285
  }, [r, o]);
2286
- const w = (b) => {
2287
- b.preventDefault(), F.current++, b.dataTransfer.types.includes("Files") && C(!0);
2288
- }, L = (b) => {
2289
- b.preventDefault(), F.current--, F.current === 0 && C(!1);
2290
- }, O = (b) => b.preventDefault(), te = (b) => {
2291
- b.preventDefault(), F.current = 0, C(!1);
2292
- const S = Array.from(b.dataTransfer.files);
2286
+ const w = (_) => {
2287
+ _.preventDefault(), F.current++, _.dataTransfer.types.includes("Files") && C(!0);
2288
+ }, L = (_) => {
2289
+ _.preventDefault(), F.current--, F.current === 0 && C(!1);
2290
+ }, O = (_) => _.preventDefault(), te = (_) => {
2291
+ _.preventDefault(), F.current = 0, C(!1);
2292
+ const S = Array.from(_.dataTransfer.files);
2293
2293
  S.length && c(S);
2294
- }, ae = (b) => {
2295
- const S = Array.from(b.target.files || []);
2294
+ }, ae = (_) => {
2295
+ const S = Array.from(_.target.files || []);
2296
2296
  Y.current && (Y.current.value = ""), S.length && c(S);
2297
- }, W = (b) => {
2297
+ }, W = (_) => {
2298
2298
  var se;
2299
2299
  if (!h) return;
2300
- const S = (se = b.clipboardData) == null ? void 0 : se.items;
2300
+ const S = (se = _.clipboardData) == null ? void 0 : se.items;
2301
2301
  if (!S) return;
2302
2302
  const V = [];
2303
2303
  for (const Ue of S) {
@@ -2306,26 +2306,26 @@ function Lt({
2306
2306
  }
2307
2307
  if (V.length === 0) return;
2308
2308
  const { imageFiles: J, tooLarge: Z, skipped: ee, limitExceeded: oe } = g(V);
2309
- Z.length && x(`File${Z.length > 1 ? "s" : ""} too large: ${Z.join(", ")}`), ee.length && x(`Skipped unsupported file${ee.length > 1 ? "s" : ""}: ${ee.join(", ")}`), oe && x(`Max ${$} images per message`), J.length && (b.preventDefault(), h(J));
2310
- }, Q = !r && !o && !!(m != null && m.length) && s.length === 0, ie = As({
2311
- prompts: m ?? [],
2309
+ Z.length && x(`File${Z.length > 1 ? "s" : ""} too large: ${Z.join(", ")}`), ee.length && x(`Skipped unsupported file${ee.length > 1 ? "s" : ""}: ${ee.join(", ")}`), oe && x(`Max ${$} images per message`), J.length && (_.preventDefault(), h(J));
2310
+ }, Q = !r && !o && !!(f != null && f.length) && s.length === 0, ie = As({
2311
+ prompts: f ?? [],
2312
2312
  enabled: Q
2313
- }), xe = (b) => {
2313
+ }), xe = (_) => {
2314
2314
  if (Q) {
2315
- if (b.key === "ArrowDown" || b.key === "ArrowRight") {
2316
- b.preventDefault(), ie.next();
2315
+ if (_.key === "ArrowDown" || _.key === "ArrowRight") {
2316
+ _.preventDefault(), ie.next();
2317
2317
  return;
2318
2318
  }
2319
- if (b.key === "ArrowUp" || b.key === "ArrowLeft") {
2320
- b.preventDefault(), ie.prev();
2319
+ if (_.key === "ArrowUp" || _.key === "ArrowLeft") {
2320
+ _.preventDefault(), ie.prev();
2321
2321
  return;
2322
2322
  }
2323
- if (b.key === "Tab" && !b.shiftKey) {
2324
- b.preventDefault(), t == null || t(ie.currentPrompt);
2323
+ if (_.key === "Tab" && !_.shiftKey) {
2324
+ _.preventDefault(), t == null || t(ie.currentPrompt);
2325
2325
  return;
2326
2326
  }
2327
2327
  }
2328
- a == null || a(b);
2328
+ a == null || a(_);
2329
2329
  }, Ce = (s.trim() || (u == null ? void 0 : u.length) > 0 || (d == null ? void 0 : d.length) > 0) && !o, $e = p || h;
2330
2330
  return /* @__PURE__ */ e.jsxs("div", { className: ["ds-prompt-input", z].filter(Boolean).join(" "), ...A, children: [
2331
2331
  $e && /* @__PURE__ */ e.jsx(
@@ -2354,7 +2354,7 @@ function Lt({
2354
2354
  {
2355
2355
  ref: H,
2356
2356
  value: s,
2357
- onChange: (b) => t == null ? void 0 : t(b.target.value),
2357
+ onChange: (_) => t == null ? void 0 : t(_.target.value),
2358
2358
  onKeyDown: xe,
2359
2359
  onPaste: W,
2360
2360
  placeholder: Q ? "" : l,
@@ -2367,41 +2367,41 @@ function Lt({
2367
2367
  /* @__PURE__ */ e.jsx("span", { className: "ds-prompt-input__anim-text", children: ie.displayed }),
2368
2368
  /* @__PURE__ */ e.jsx("span", { className: "ds-prompt-input__anim-cursor" })
2369
2369
  ] }),
2370
- u && u.length > 0 && /* @__PURE__ */ e.jsx("div", { className: "ds-prompt-input__images", children: u.map((b, S) => /* @__PURE__ */ e.jsxs("div", { className: "ds-prompt-input__image-thumb", children: [
2371
- /* @__PURE__ */ e.jsx("img", { src: b.preview, alt: "" }),
2370
+ u && u.length > 0 && /* @__PURE__ */ e.jsx("div", { className: "ds-prompt-input__images", children: u.map((_, S) => /* @__PURE__ */ e.jsxs("div", { className: "ds-prompt-input__image-thumb", children: [
2371
+ /* @__PURE__ */ e.jsx("img", { src: _.preview, alt: "" }),
2372
2372
  /* @__PURE__ */ e.jsx(
2373
2373
  "button",
2374
2374
  {
2375
2375
  className: "ds-prompt-input__image-remove",
2376
- onClick: () => _ == null ? void 0 : _(S),
2376
+ onClick: () => b == null ? void 0 : b(S),
2377
2377
  "aria-label": "Remove image",
2378
2378
  type: "button",
2379
2379
  children: /* @__PURE__ */ e.jsx(re, { size: 12, strokeWidth: 2 })
2380
2380
  }
2381
2381
  )
2382
2382
  ] }, S)) }),
2383
- X.length > 0 && /* @__PURE__ */ e.jsx("div", { className: "ds-prompt-input__warnings", children: X.map((b) => /* @__PURE__ */ e.jsxs("div", { className: "ds-prompt-input__warning", role: "alert", children: [
2384
- /* @__PURE__ */ e.jsx("span", { children: b.msg }),
2383
+ G.length > 0 && /* @__PURE__ */ e.jsx("div", { className: "ds-prompt-input__warnings", children: G.map((_) => /* @__PURE__ */ e.jsxs("div", { className: "ds-prompt-input__warning", role: "alert", children: [
2384
+ /* @__PURE__ */ e.jsx("span", { children: _.msg }),
2385
2385
  /* @__PURE__ */ e.jsx(
2386
2386
  "button",
2387
2387
  {
2388
2388
  type: "button",
2389
2389
  className: "ds-prompt-input__warning-close",
2390
- onClick: () => N(b.id),
2390
+ onClick: () => N(_.id),
2391
2391
  "aria-label": "Dismiss",
2392
2392
  children: /* @__PURE__ */ e.jsx(re, { size: I[1], strokeWidth: 1.5 })
2393
2393
  }
2394
2394
  )
2395
- ] }, b.id)) }),
2396
- d && d.length > 0 && /* @__PURE__ */ e.jsx("div", { className: "ds-prompt-input__attachments", children: d.map((b, S) => /* @__PURE__ */ e.jsx(ce, { size: "xs", children: /* @__PURE__ */ e.jsxs("span", { className: "ds-prompt-input__badge-content", children: [
2397
- b.uploading ? /* @__PURE__ */ e.jsx(Qe, { size: I[1], strokeWidth: 1.5, className: "spin" }) : /* @__PURE__ */ e.jsx(Re, { size: I[1], strokeWidth: 1.5 }),
2398
- b.filename,
2399
- b.uploading ? /* @__PURE__ */ e.jsx("span", { className: "ds-prompt-input__uploading", children: "Uploading..." }) : /* @__PURE__ */ e.jsx(
2395
+ ] }, _.id)) }),
2396
+ d && d.length > 0 && /* @__PURE__ */ e.jsx("div", { className: "ds-prompt-input__attachments", children: d.map((_, S) => /* @__PURE__ */ e.jsx(ce, { size: "xs", children: /* @__PURE__ */ e.jsxs("span", { className: "ds-prompt-input__badge-content", children: [
2397
+ _.uploading ? /* @__PURE__ */ e.jsx(Qe, { size: I[1], strokeWidth: 1.5, className: "spin" }) : /* @__PURE__ */ e.jsx(Re, { size: I[1], strokeWidth: 1.5 }),
2398
+ _.filename,
2399
+ _.uploading ? /* @__PURE__ */ e.jsx("span", { className: "ds-prompt-input__uploading", children: "Uploading..." }) : /* @__PURE__ */ e.jsx(
2400
2400
  "button",
2401
2401
  {
2402
2402
  type: "button",
2403
2403
  className: "ds-prompt-input__remove-btn",
2404
- onClick: () => f == null ? void 0 : f(S),
2404
+ onClick: () => m == null ? void 0 : m(S),
2405
2405
  children: /* @__PURE__ */ e.jsx(re, { size: I[1], strokeWidth: 1.5 })
2406
2406
  }
2407
2407
  )
@@ -2415,8 +2415,8 @@ function Lt({
2415
2415
  icon: /* @__PURE__ */ e.jsx(Re, { size: I[2], strokeWidth: 1.5 }),
2416
2416
  "aria-label": "Attach files",
2417
2417
  onClick: () => {
2418
- var b;
2419
- return (b = Y.current) == null ? void 0 : b.click();
2418
+ var _;
2419
+ return (_ = Y.current) == null ? void 0 : _.click();
2420
2420
  }
2421
2421
  }
2422
2422
  ),
@@ -2459,9 +2459,9 @@ function zt({
2459
2459
  showAutoOption: r = !1,
2460
2460
  groupByTier: o = !0,
2461
2461
  className: l = "",
2462
- ...m
2462
+ ...f
2463
2463
  }) {
2464
- const [d, u] = D(!1), p = E(null), h = E(null), f = E(null), [_, j] = D({}), R = s.filter((v) => !a || v.name === "auto" ? !0 : (Pe[v.tier] ?? 1) >= (Pe[a] ?? 1)), $ = R.find((v) => v.name === "auto"), B = R.filter((v) => v.name !== "auto"), y = s.find((v) => v.name === t), z = new Set(B.map((v) => v.tier).filter(Boolean)).size > 1;
2464
+ const [d, u] = D(!1), p = E(null), h = E(null), m = E(null), [b, j] = D({}), R = s.filter((v) => !a || v.name === "auto" ? !0 : (Pe[v.tier] ?? 1) >= (Pe[a] ?? 1)), $ = R.find((v) => v.name === "auto"), B = R.filter((v) => v.name !== "auto"), y = s.find((v) => v.name === t), z = new Set(B.map((v) => v.tier).filter(Boolean)).size > 1;
2465
2465
  M(() => {
2466
2466
  if (!d) return;
2467
2467
  const v = 320, C = () => {
@@ -2477,14 +2477,14 @@ function zt({
2477
2477
  });
2478
2478
  };
2479
2479
  C(), window.addEventListener("scroll", C, !0), window.addEventListener("resize", C);
2480
- const X = (x) => {
2480
+ const G = (x) => {
2481
2481
  var N, k;
2482
- !((N = p.current) != null && N.contains(x.target)) && !((k = f.current) != null && k.contains(x.target)) && u(!1);
2482
+ !((N = p.current) != null && N.contains(x.target)) && !((k = m.current) != null && k.contains(x.target)) && u(!1);
2483
2483
  }, U = (x) => {
2484
2484
  x.key === "Escape" && u(!1);
2485
2485
  };
2486
- return document.addEventListener("mousedown", X), document.addEventListener("keydown", U), () => {
2487
- window.removeEventListener("scroll", C, !0), window.removeEventListener("resize", C), document.removeEventListener("mousedown", X), document.removeEventListener("keydown", U);
2486
+ return document.addEventListener("mousedown", G), document.addEventListener("keydown", U), () => {
2487
+ window.removeEventListener("scroll", C, !0), window.removeEventListener("resize", C), document.removeEventListener("mousedown", G), document.removeEventListener("keydown", U);
2488
2488
  };
2489
2489
  }, [d]);
2490
2490
  const A = (v) => {
@@ -2506,12 +2506,12 @@ function zt({
2506
2506
  },
2507
2507
  v.name
2508
2508
  ), H = () => !o || !z ? B.map(Y) : ["fast", "standard", "premium"].flatMap((v) => {
2509
- const C = B.filter((X) => X.tier === v);
2509
+ const C = B.filter((G) => G.tier === v);
2510
2510
  return C.length ? [
2511
2511
  /* @__PURE__ */ e.jsx("div", { className: "ds-model-picker__group-label", "data-tier": v, children: v.charAt(0).toUpperCase() + v.slice(1) }, `lbl-${v}`),
2512
2512
  ...C.map(Y)
2513
2513
  ] : [];
2514
- }), F = d && /* @__PURE__ */ e.jsxs("div", { ref: f, className: "ds-model-picker__menu", style: _, children: [
2514
+ }), F = d && /* @__PURE__ */ e.jsxs("div", { ref: m, className: "ds-model-picker__menu", style: b, children: [
2515
2515
  r && $ && /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
2516
2516
  /* @__PURE__ */ e.jsxs(
2517
2517
  "button",
@@ -2538,7 +2538,7 @@ function zt({
2538
2538
  {
2539
2539
  ref: p,
2540
2540
  className: ["ds-model-picker", l].filter(Boolean).join(" "),
2541
- ...m,
2541
+ ...f,
2542
2542
  children: [
2543
2543
  /* @__PURE__ */ e.jsxs(
2544
2544
  "button",
@@ -2581,25 +2581,25 @@ function Ot({
2581
2581
  maxVisible: i = 5,
2582
2582
  onSourceClick: a
2583
2583
  }) {
2584
- const [r, o] = D(!1), l = Ms(s), m = l.length > i, d = r ? l : l.slice(0, i), u = s.some((h) => h.snippet), p = ["ds-sources-panel", t === "compact" && "ds-sources-panel--compact"].filter(Boolean).join(" ");
2584
+ const [r, o] = D(!1), l = Ms(s), f = l.length > i, d = r ? l : l.slice(0, i), u = s.some((h) => h.snippet), p = ["ds-sources-panel", t === "compact" && "ds-sources-panel--compact"].filter(Boolean).join(" ");
2585
2585
  return t === "compact" ? /* @__PURE__ */ e.jsxs("div", { className: p, children: [
2586
2586
  d.map((h) => {
2587
- const f = h.items.map((j) => j.page).filter(Boolean), _ = !!a;
2587
+ const m = h.items.map((j) => j.page).filter(Boolean), b = !!a;
2588
2588
  return /* @__PURE__ */ e.jsxs(
2589
2589
  "div",
2590
2590
  {
2591
- className: `ds-sources-panel__compact-row${_ ? " ds-sources-panel__compact-row--clickable" : ""}`,
2592
- onClick: _ ? () => a(h.items[0]) : void 0,
2591
+ className: `ds-sources-panel__compact-row${b ? " ds-sources-panel__compact-row--clickable" : ""}`,
2592
+ onClick: b ? () => a(h.items[0]) : void 0,
2593
2593
  children: [
2594
2594
  /* @__PURE__ */ e.jsx(ns, { size: I[1], strokeWidth: 1.5, className: "ds-sources-panel__compact-icon" }),
2595
2595
  /* @__PURE__ */ e.jsx("span", { className: "ds-sources-panel__filename", children: h.filename }),
2596
- f.length > 0 && /* @__PURE__ */ e.jsx("span", { className: "ds-sources-panel__pages", children: ve(f) })
2596
+ m.length > 0 && /* @__PURE__ */ e.jsx("span", { className: "ds-sources-panel__pages", children: ve(m) })
2597
2597
  ]
2598
2598
  },
2599
2599
  h.filename
2600
2600
  );
2601
2601
  }),
2602
- m && !r && /* @__PURE__ */ e.jsxs("button", { className: "ds-sources-panel__more", onClick: () => o(!0), children: [
2602
+ f && !r && /* @__PURE__ */ e.jsxs("button", { className: "ds-sources-panel__more", onClick: () => o(!0), children: [
2603
2603
  "+",
2604
2604
  l.length - i,
2605
2605
  " more sources"
@@ -2607,17 +2607,17 @@ function Ot({
2607
2607
  ] }) : /* @__PURE__ */ e.jsxs("div", { className: p, children: [
2608
2608
  n && /* @__PURE__ */ e.jsx("div", { className: "ds-sources-panel__title", children: n }),
2609
2609
  d.map((h) => {
2610
- const f = h.items.map((j) => j.page).filter(Boolean), _ = !!a;
2610
+ const m = h.items.map((j) => j.page).filter(Boolean), b = !!a;
2611
2611
  return u ? /* @__PURE__ */ e.jsx(
2612
2612
  Ee,
2613
2613
  {
2614
- title: /* @__PURE__ */ e.jsx(Bs, { filename: h.filename, pages: f }),
2614
+ title: /* @__PURE__ */ e.jsx(Bs, { filename: h.filename, pages: m }),
2615
2615
  padding: "s",
2616
2616
  children: h.items.map((j, R) => /* @__PURE__ */ e.jsx(
2617
2617
  "div",
2618
2618
  {
2619
- className: `ds-sources-panel__snippet${_ ? " ds-sources-panel__snippet--clickable" : ""}`,
2620
- onClick: _ ? () => a(j) : void 0,
2619
+ className: `ds-sources-panel__snippet${b ? " ds-sources-panel__snippet--clickable" : ""}`,
2620
+ onClick: b ? () => a(j) : void 0,
2621
2621
  children: j.snippet ?? `p. ${j.page}`
2622
2622
  },
2623
2623
  R
@@ -2627,17 +2627,17 @@ function Ot({
2627
2627
  ) : /* @__PURE__ */ e.jsxs(
2628
2628
  "div",
2629
2629
  {
2630
- className: `ds-sources-panel__row${_ ? " ds-sources-panel__row--clickable" : ""}`,
2631
- onClick: _ ? () => a(h.items[0]) : void 0,
2630
+ className: `ds-sources-panel__row${b ? " ds-sources-panel__row--clickable" : ""}`,
2631
+ onClick: b ? () => a(h.items[0]) : void 0,
2632
2632
  children: [
2633
2633
  /* @__PURE__ */ e.jsx("span", { className: "ds-sources-panel__filename", children: h.filename }),
2634
- f.length > 0 && /* @__PURE__ */ e.jsx("span", { className: "ds-sources-panel__pages", children: ve(f) })
2634
+ m.length > 0 && /* @__PURE__ */ e.jsx("span", { className: "ds-sources-panel__pages", children: ve(m) })
2635
2635
  ]
2636
2636
  },
2637
2637
  h.filename
2638
2638
  );
2639
2639
  }),
2640
- m && !r && /* @__PURE__ */ e.jsxs("button", { className: "ds-sources-panel__more", onClick: () => o(!0), children: [
2640
+ f && !r && /* @__PURE__ */ e.jsxs("button", { className: "ds-sources-panel__more", onClick: () => o(!0), children: [
2641
2641
  "+",
2642
2642
  l.length - i,
2643
2643
  " more sources"
@@ -2656,7 +2656,7 @@ function Ft({
2656
2656
  warningThreshold: r = 0.8,
2657
2657
  errorThreshold: o = 1
2658
2658
  }) {
2659
- const l = t > 0 ? s / t : 0, m = Math.min(l * 100, 100), d = l >= o ? "error" : l >= r ? "warning" : "normal";
2659
+ const l = t > 0 ? s / t : 0, f = Math.min(l * 100, 100), d = l >= o ? "error" : l >= r ? "warning" : "normal";
2660
2660
  return /* @__PURE__ */ e.jsxs(
2661
2661
  "div",
2662
2662
  {
@@ -2669,7 +2669,7 @@ function Ft({
2669
2669
  "div",
2670
2670
  {
2671
2671
  className: `ds-token-counter__fill ds-token-counter__fill--${d}`,
2672
- style: { width: `${m}%` }
2672
+ style: { width: `${f}%` }
2673
2673
  }
2674
2674
  ) }),
2675
2675
  (i || a) && /* @__PURE__ */ e.jsxs("div", { className: `ds-token-counter__label ds-token-counter__label--${d}`, children: [
@@ -2705,18 +2705,18 @@ function Wt({
2705
2705
  `ds-confidence-bar--${o}`,
2706
2706
  i === "block" && "ds-confidence-bar--block"
2707
2707
  ].filter(Boolean).join(" "), children: [
2708
- /* @__PURE__ */ e.jsx("div", { className: "ds-confidence-bar__segments", "aria-hidden": "true", children: Array.from({ length: Oe }, (l, m) => /* @__PURE__ */ e.jsx(
2708
+ /* @__PURE__ */ e.jsx("div", { className: "ds-confidence-bar__segments", "aria-hidden": "true", children: Array.from({ length: Oe }, (l, f) => /* @__PURE__ */ e.jsx(
2709
2709
  "div",
2710
2710
  {
2711
- className: `ds-confidence-bar__seg${m < r ? " ds-confidence-bar__seg--filled" : ""}`
2711
+ className: `ds-confidence-bar__seg${f < r ? " ds-confidence-bar__seg--filled" : ""}`
2712
2712
  },
2713
- m
2713
+ f
2714
2714
  )) }),
2715
2715
  n === "text" && /* @__PURE__ */ e.jsx("span", { className: "ds-confidence-bar__label", children: o })
2716
2716
  ] });
2717
2717
  }
2718
2718
  const Ls = { add: "+", remove: "-", context: " " };
2719
- function _e({ line: s, lineNumbers: t }) {
2719
+ function be({ line: s, lineNumbers: t }) {
2720
2720
  return /* @__PURE__ */ e.jsxs("div", { className: `ds-diff-view__line ds-diff-view__line--${s.type}`, children: [
2721
2721
  t && s.lineNo != null && /* @__PURE__ */ e.jsx("span", { className: "ds-diff-view__lineno", children: s.lineNo }),
2722
2722
  /* @__PURE__ */ e.jsx("span", { className: "ds-diff-view__prefix", children: Ls[s.type] }),
@@ -2737,18 +2737,18 @@ function Ct({
2737
2737
  n && "ds-diff-view--wrap"
2738
2738
  ].filter(Boolean).join(" "), l = a ? { maxHeight: a, overflowY: "auto" } : void 0;
2739
2739
  if (t === "split") {
2740
- const m = s.filter((u) => u.type === "remove" || u.type === "context"), d = s.filter((u) => u.type === "add" || u.type === "context");
2740
+ const f = s.filter((u) => u.type === "remove" || u.type === "context"), d = s.filter((u) => u.type === "add" || u.type === "context");
2741
2741
  return /* @__PURE__ */ e.jsxs("div", { className: o, children: [
2742
2742
  r && /* @__PURE__ */ e.jsx("div", { className: "ds-diff-view__title", children: r }),
2743
2743
  /* @__PURE__ */ e.jsxs("div", { className: "ds-diff-view__body", style: l, children: [
2744
- /* @__PURE__ */ e.jsx("div", { className: "ds-diff-view__split-col", children: m.map((u, p) => /* @__PURE__ */ e.jsx(_e, { line: u, lineNumbers: i }, p)) }),
2745
- /* @__PURE__ */ e.jsx("div", { className: "ds-diff-view__split-col", children: d.map((u, p) => /* @__PURE__ */ e.jsx(_e, { line: u, lineNumbers: i }, p)) })
2744
+ /* @__PURE__ */ e.jsx("div", { className: "ds-diff-view__split-col", children: f.map((u, p) => /* @__PURE__ */ e.jsx(be, { line: u, lineNumbers: i }, p)) }),
2745
+ /* @__PURE__ */ e.jsx("div", { className: "ds-diff-view__split-col", children: d.map((u, p) => /* @__PURE__ */ e.jsx(be, { line: u, lineNumbers: i }, p)) })
2746
2746
  ] })
2747
2747
  ] });
2748
2748
  }
2749
2749
  return /* @__PURE__ */ e.jsxs("div", { className: o, children: [
2750
2750
  r && /* @__PURE__ */ e.jsx("div", { className: "ds-diff-view__title", children: r }),
2751
- /* @__PURE__ */ e.jsx("div", { className: "ds-diff-view__body", style: l, children: s.map((m, d) => /* @__PURE__ */ e.jsx(_e, { line: m, lineNumbers: i }, d)) })
2751
+ /* @__PURE__ */ e.jsx("div", { className: "ds-diff-view__body", style: l, children: s.map((f, d) => /* @__PURE__ */ e.jsx(be, { line: f, lineNumbers: i }, d)) })
2752
2752
  ] });
2753
2753
  }
2754
2754
  function zs({
@@ -2834,15 +2834,15 @@ function Ut({
2834
2834
  className: o = "",
2835
2835
  ...l
2836
2836
  }) {
2837
- const m = s === "assistant" && (a || r), d = !!t, u = n ? Os(n) : null;
2838
- return !m && !d && !u ? null : /* @__PURE__ */ e.jsxs(
2837
+ const f = s === "assistant" && (a || r), d = !!t, u = n ? Os(n) : null;
2838
+ return !f && !d && !u ? null : /* @__PURE__ */ e.jsxs(
2839
2839
  "div",
2840
2840
  {
2841
2841
  className: ["ds-message-footer", `ds-message-footer--${s}`, o].filter(Boolean).join(" "),
2842
2842
  ...l,
2843
2843
  children: [
2844
2844
  s === "user" && u && /* @__PURE__ */ e.jsx("span", { className: "ds-message-footer__timestamp ds-message-action", children: u }),
2845
- m && /* @__PURE__ */ e.jsx(zs, { className: "ds-message-action", value: i, onLike: a, onDislike: r }),
2845
+ f && /* @__PURE__ */ e.jsx(zs, { className: "ds-message-action", value: i, onLike: a, onDislike: r }),
2846
2846
  d && /* @__PURE__ */ e.jsx(Ds, { className: "ds-message-action", text: t }),
2847
2847
  s === "assistant" && u && /* @__PURE__ */ e.jsx("span", { className: "ds-message-footer__timestamp ds-message-action", children: u })
2848
2848
  ]
@@ -2855,6 +2855,47 @@ function Vt({ label: s, className: t = "", ...n }) {
2855
2855
  s && /* @__PURE__ */ e.jsx("span", { className: "ds-thinking-dot__label", children: s })
2856
2856
  ] });
2857
2857
  }
2858
+ function Yt({ variant: s = "light", glow: t, mask: n = !0, style: i, ...a }) {
2859
+ const r = s === "dark", o = t ?? r, l = r ? "rgba(255,250,250,0.05)" : "var(--color-border-light)", f = r ? "rgba(255,250,250,0.025)" : "color-mix(in srgb, var(--color-border-light) 50%, transparent)";
2860
+ return /* @__PURE__ */ e.jsx(
2861
+ "div",
2862
+ {
2863
+ style: {
2864
+ position: "absolute",
2865
+ inset: 0,
2866
+ pointerEvents: "none",
2867
+ overflow: "hidden",
2868
+ zIndex: 0,
2869
+ ...o && {
2870
+ background: "radial-gradient(ellipse 1000px 500px at 50% 30%, rgba(234,100,100,0.18), transparent 70%)"
2871
+ },
2872
+ ...i
2873
+ },
2874
+ ...a,
2875
+ children: /* @__PURE__ */ e.jsx(
2876
+ "div",
2877
+ {
2878
+ style: {
2879
+ position: "absolute",
2880
+ inset: 0,
2881
+ backgroundImage: [
2882
+ `linear-gradient(${l} 1px, transparent 1px)`,
2883
+ `linear-gradient(90deg, ${l} 1px, transparent 1px)`,
2884
+ `linear-gradient(${f} 1px, transparent 1px)`,
2885
+ `linear-gradient(90deg, ${f} 1px, transparent 1px)`
2886
+ ].join(", "),
2887
+ backgroundSize: "80px 80px, 80px 80px, 16px 16px, 16px 16px",
2888
+ backgroundPosition: "-1px -1px, -1px -1px, -1px -1px, -1px -1px",
2889
+ ...n && {
2890
+ WebkitMaskImage: "radial-gradient(ellipse at center, #000 30%, transparent 85%)",
2891
+ maskImage: "radial-gradient(ellipse at center, #000 30%, transparent 85%)"
2892
+ }
2893
+ }
2894
+ }
2895
+ )
2896
+ }
2897
+ );
2898
+ }
2858
2899
  export {
2859
2900
  Ee as Accordion,
2860
2901
  Qs as Alert,
@@ -2876,10 +2917,11 @@ export {
2876
2917
  Be as DrawerFooter,
2877
2918
  kt as Dropdown,
2878
2919
  jt as EmptyState,
2879
- bt as FormField,
2920
+ Yt as EngineerGrid,
2921
+ _t as FormField,
2880
2922
  Ks as H1,
2881
- Xs as H2,
2882
- Gs as H3,
2923
+ Gs as H2,
2924
+ Xs as H3,
2883
2925
  Js as H4,
2884
2926
  Tt as InView,
2885
2927
  Us as Input,
@@ -2913,7 +2955,7 @@ export {
2913
2955
  pt as TableRow,
2914
2956
  ht as TableSubheaderRow,
2915
2957
  nt as Tabs,
2916
- _t as Td,
2958
+ bt as Td,
2917
2959
  Vs as Textarea,
2918
2960
  xt as Th,
2919
2961
  Vt as ThinkingDot,