@humain/ui 2.4.2 → 2.4.4

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 (159) hide show
  1. package/dist/index194.js +6 -8
  2. package/dist/index194.js.map +1 -1
  3. package/dist/index225.js +1 -1
  4. package/dist/index225.js.map +1 -1
  5. package/dist/index24.js +1 -1
  6. package/dist/index24.js.map +1 -1
  7. package/dist/styles.css +1 -1
  8. package/dist/wc/AIClarificationCard.js +1 -1
  9. package/dist/wc/AIContainer.js +1 -1
  10. package/dist/wc/AIForm.js +17 -17
  11. package/dist/wc/AIInput.js +1 -1
  12. package/dist/wc/AIMermaidDiagram.js +1 -1
  13. package/dist/wc/AIMessage.js +1 -1
  14. package/dist/wc/AIScrollButton.js +4 -4
  15. package/dist/wc/AIToolCall.js +5 -5
  16. package/dist/wc/AppSidebar.constants.js +1 -1
  17. package/dist/wc/AvatarFallback.js +5 -5
  18. package/dist/wc/CheckboxIndicator.js +7 -7
  19. package/dist/wc/CollapsiblePanel.js +1 -1
  20. package/dist/wc/DialogTrigger.js +9 -9
  21. package/dist/wc/DropdownMenu.js +16 -16
  22. package/dist/wc/MenuSubmenuTrigger.js +31 -31
  23. package/dist/wc/PopoverDescription.js +30 -30
  24. package/dist/wc/PrehydrationScript.js +1 -1
  25. package/dist/wc/Select.js +18 -18
  26. package/dist/wc/SelectSeparator.js +72 -72
  27. package/dist/wc/SelectSeparator.js.map +1 -1
  28. package/dist/wc/Tabs.js +18 -18
  29. package/dist/wc/TooltipProvider.js +9 -9
  30. package/dist/wc/chart.js +1 -1
  31. package/dist/wc/chunk-75Z2AOVW.js +39 -39
  32. package/dist/wc/chunk-OSK3NFVY.js +32 -32
  33. package/dist/wc/command.js +4 -4
  34. package/dist/wc/form-field.js +1 -1
  35. package/dist/wc/form-fieldset.js +5 -5
  36. package/dist/wc/hf-accordion-card.js +4 -4
  37. package/dist/wc/hf-accordion.js +6 -6
  38. package/dist/wc/hf-ai-feedback-bar.js +5 -5
  39. package/dist/wc/hf-ai-reasoning-block.js +6 -6
  40. package/dist/wc/hf-ai-system-message.js +1 -1
  41. package/dist/wc/hf-ai-tool-run.js +1 -1
  42. package/dist/wc/hf-app-sidebar.js +1 -1
  43. package/dist/wc/hf-app-sidebar.js.map +1 -1
  44. package/dist/wc/hf-area-chart.js +15 -15
  45. package/dist/wc/hf-autocomplete.js +36 -36
  46. package/dist/wc/hf-bar-chart.js +4 -4
  47. package/dist/wc/hf-calendar.js +4 -4
  48. package/dist/wc/hf-carousel.js +1 -1
  49. package/dist/wc/hf-context-menu.js +8 -8
  50. package/dist/wc/hf-donut-chart.js +10 -10
  51. package/dist/wc/hf-empty-state.js +87 -88
  52. package/dist/wc/hf-empty-state.js.map +1 -1
  53. package/dist/wc/hf-history.js +4 -4
  54. package/dist/wc/hf-horizontal-bar-chart.js +7 -7
  55. package/dist/wc/hf-hover-card.js +6 -6
  56. package/dist/wc/hf-line-chart.js +4 -4
  57. package/dist/wc/hf-metric-card.js +5 -5
  58. package/dist/wc/hf-metric-item.js +8 -8
  59. package/dist/wc/hf-metric-item.js.map +1 -1
  60. package/dist/wc/hf-nav-account-menu.js +4 -4
  61. package/dist/wc/hf-notification-panel.js +2 -2
  62. package/dist/wc/hf-pie-chart.js +17 -17
  63. package/dist/wc/hf-radar-chart.js +16 -16
  64. package/dist/wc/hf-section-header.js +6 -6
  65. package/dist/wc/hf-sheet.js +1 -1
  66. package/dist/wc/hf-sparkline-chart.js +5 -5
  67. package/dist/wc/hf-steps.js +6 -6
  68. package/dist/wc/journeyDiagram-3NMN7TZE.js +10 -10
  69. package/dist/wc/pieDiagram-E7YTZNPT.js +16 -16
  70. package/dist/wc/popupStateMapping.js +53 -53
  71. package/dist/wc/popupStateMapping.js.map +1 -1
  72. package/dist/wc/selection-group.js +1 -1
  73. package/dist/wc/selection-group.js.map +1 -1
  74. package/dist/wc/{useOpenChangeComplete.js → stateAttributesMapping.js} +21 -21
  75. package/dist/wc/stateAttributesMapping.js.map +1 -0
  76. package/dist/wc/stateDiagram-D77RDMKH.js +3 -3
  77. package/dist/wc/timeline-definition-24CTP7MA.js +19 -19
  78. package/dist/wc/useCollapsiblePanel.js +3 -3
  79. package/dist/wc/usePopupHandleStore.js +4 -4
  80. package/dist/wc/useScrollLock.js +1 -1
  81. package/dist/wc/vendor/recharts.js +525 -524
  82. package/dist/wc/vendor/recharts.js.map +1 -1
  83. package/dist/wc/xychartDiagram-S5SC5T6Z.js +6 -6
  84. package/dist/wc-react/AIClarificationCard.js +1 -1
  85. package/dist/wc-react/AIContainer.js +1 -1
  86. package/dist/wc-react/AIForm.js +17 -17
  87. package/dist/wc-react/AIInput.js +1 -1
  88. package/dist/wc-react/AIMermaidDiagram.js +1 -1
  89. package/dist/wc-react/AIMessage.js +1 -1
  90. package/dist/wc-react/AIScrollButton.js +4 -4
  91. package/dist/wc-react/AIToolCall.js +5 -5
  92. package/dist/wc-react/AppSidebar.constants.js +1 -1
  93. package/dist/wc-react/AvatarFallback.js +5 -5
  94. package/dist/wc-react/CheckboxIndicator.js +7 -7
  95. package/dist/wc-react/CollapsiblePanel.js +1 -1
  96. package/dist/wc-react/DialogTrigger.js +9 -9
  97. package/dist/wc-react/DropdownMenu.js +16 -16
  98. package/dist/wc-react/FloatingPortalLite.js +3 -3
  99. package/dist/wc-react/MenuSubmenuTrigger.js +31 -31
  100. package/dist/wc-react/PopoverDescription.js +31 -31
  101. package/dist/wc-react/PrehydrationScript.js +1 -1
  102. package/dist/wc-react/Select.js +18 -18
  103. package/dist/wc-react/SelectSeparator.js +71 -70
  104. package/dist/wc-react/SelectSeparator.js.map +1 -1
  105. package/dist/wc-react/Tabs.js +18 -18
  106. package/dist/wc-react/TooltipProvider.js +9 -9
  107. package/dist/wc-react/chart.js +1 -1
  108. package/dist/wc-react/chunk-75Z2AOVW.js +39 -39
  109. package/dist/wc-react/chunk-OSK3NFVY.js +32 -32
  110. package/dist/wc-react/command.js +4 -4
  111. package/dist/wc-react/form-field.js +1 -1
  112. package/dist/wc-react/form-fieldset.js +77 -77
  113. package/dist/wc-react/hf-accordion-card.js +4 -4
  114. package/dist/wc-react/hf-accordion.js +6 -6
  115. package/dist/wc-react/hf-ai-feedback-bar.js +5 -5
  116. package/dist/wc-react/hf-ai-reasoning-block.js +6 -6
  117. package/dist/wc-react/hf-ai-system-message.js +1 -1
  118. package/dist/wc-react/hf-ai-tool-run.js +1 -1
  119. package/dist/wc-react/hf-app-sidebar.js +1 -1
  120. package/dist/wc-react/hf-app-sidebar.js.map +1 -1
  121. package/dist/wc-react/hf-autocomplete.js +37 -37
  122. package/dist/wc-react/hf-calendar.js +4 -4
  123. package/dist/wc-react/hf-carousel.js +1 -1
  124. package/dist/wc-react/hf-context-menu.js +8 -8
  125. package/dist/wc-react/hf-data-table.js +1 -1
  126. package/dist/wc-react/hf-empty-state.js +87 -88
  127. package/dist/wc-react/hf-empty-state.js.map +1 -1
  128. package/dist/wc-react/hf-history.js +4 -4
  129. package/dist/wc-react/hf-hover-card.js +6 -6
  130. package/dist/wc-react/hf-metric-item.js +6 -6
  131. package/dist/wc-react/hf-metric-item.js.map +1 -1
  132. package/dist/wc-react/hf-nav-account-menu.js +4 -4
  133. package/dist/wc-react/hf-notification-panel.js +2 -2
  134. package/dist/wc-react/hf-section-header.js +6 -6
  135. package/dist/wc-react/hf-sheet.js +1 -1
  136. package/dist/wc-react/hf-steps.js +5 -5
  137. package/dist/wc-react/journeyDiagram-3NMN7TZE.js +10 -10
  138. package/dist/wc-react/pieDiagram-E7YTZNPT.js +16 -16
  139. package/dist/wc-react/popupStateMapping.js +54 -54
  140. package/dist/wc-react/popupStateMapping.js.map +1 -1
  141. package/dist/wc-react/selection-group.js +1 -1
  142. package/dist/wc-react/selection-group.js.map +1 -1
  143. package/dist/wc-react/{useOpenChangeComplete.js → stateAttributesMapping.js} +19 -19
  144. package/dist/wc-react/stateAttributesMapping.js.map +1 -0
  145. package/dist/wc-react/stateDiagram-D77RDMKH.js +3 -3
  146. package/dist/wc-react/timeline-definition-24CTP7MA.js +19 -19
  147. package/dist/wc-react/useCollapsiblePanel.js +3 -3
  148. package/dist/wc-react/usePopupHandleStore.js +3 -3
  149. package/dist/wc-react/useScrollLock.js +1 -1
  150. package/dist/wc-react/vendor/recharts.js +525 -524
  151. package/dist/wc-react/vendor/recharts.js.map +1 -1
  152. package/dist/wc-react/xychartDiagram-S5SC5T6Z.js +6 -6
  153. package/package.json +1 -1
  154. package/skills/humain-ui/SKILL.md +1 -1
  155. package/skills/humain-ui-wc/SKILL.md +1 -1
  156. package/skills/humain-ui-wc.skill +0 -0
  157. package/skills/humain-ui.skill +0 -0
  158. package/dist/wc/useOpenChangeComplete.js.map +0 -1
  159. package/dist/wc-react/useOpenChangeComplete.js.map +0 -1
package/dist/wc/Tabs.js CHANGED
@@ -14,13 +14,13 @@ import { n as Ot, t as $t } from "./shadowDom.js";
14
14
  import { t as Ht } from "./useCompositeListItem.js";
15
15
  import { t as Wt } from "./CompositeList.js";
16
16
  import { t as Ft } from "./PrehydrationScript.js";
17
- import { i as Ut, t as Kt } from "./useButton.js";
18
- import { t as Xt } from "./useCompositeItem.js";
19
- import { n as Yt, t as qt } from "./CompositeRoot.js";
20
- import { t as Gt } from "./use-controllable-state.js";
21
- import { a as Jt, o as Qt, t as Zt } from "./useOpenChangeComplete.js";
22
- import { t as ta } from "./Badge.js";
23
- import { t as aa } from "./inertValue.js";
17
+ import { a as Ut, n as Kt, r as Xt } from "./stateAttributesMapping.js";
18
+ import { i as Yt, t as qt } from "./useButton.js";
19
+ import { t as Gt } from "./inertValue.js";
20
+ import { t as Jt } from "./Badge.js";
21
+ import { t as Qt } from "./useCompositeItem.js";
22
+ import { n as Zt, t as ta } from "./CompositeRoot.js";
23
+ import { t as aa } from "./use-controllable-state.js";
24
24
  var g = St(), e = /* @__PURE__ */ jt(Lt(), 1);
25
25
  function ea() {
26
26
  const [, a] = e.useState({});
@@ -186,7 +186,7 @@ function xt() {
186
186
  return a;
187
187
  }
188
188
  var Tt = /* @__PURE__ */ e.forwardRef(function(t, r) {
189
- const { className: s, disabled: i = !1, render: b, value: o, id: v, nativeButton: x = !0, style: E, ...z } = t, { value: M, getTabPanelIdByValue: T, onValueChange: I, orientation: m, tabActivationDirection: n } = at(), { activateOnFocus: w, registerTabResizeObserverElement: f, tabsListElement: l } = xt(), { highlightedIndex: y, onHighlightedIndexChange: R } = Ut(), p = gt(v), S = e.useMemo(() => ({
189
+ const { className: s, disabled: i = !1, render: b, value: o, id: v, nativeButton: x = !0, style: E, ...z } = t, { value: M, getTabPanelIdByValue: T, onValueChange: I, orientation: m, tabActivationDirection: n } = at(), { activateOnFocus: w, registerTabResizeObserverElement: f, tabsListElement: l } = xt(), { highlightedIndex: y, onHighlightedIndexChange: R } = Yt(), p = gt(v), S = e.useMemo(() => ({
190
190
  disabled: i,
191
191
  id: p,
192
192
  value: o
@@ -194,7 +194,7 @@ var Tt = /* @__PURE__ */ e.forwardRef(function(t, r) {
194
194
  i,
195
195
  p,
196
196
  o
197
- ]), { compositeProps: j, compositeRef: d, index: N } = Xt({ metadata: S }), c = o === M, A = e.useRef(!1), k = e.useRef(null), H = q((h) => {
197
+ ]), { compositeProps: j, compositeRef: d, index: N } = Qt({ metadata: S }), c = o === M, A = e.useRef(!1), k = e.useRef(null), H = q((h) => {
198
198
  k.current?.(), k.current = h ? f(h) : null;
199
199
  });
200
200
  J(() => {
@@ -217,7 +217,7 @@ var Tt = /* @__PURE__ */ e.forwardRef(function(t, r) {
217
217
  i,
218
218
  l
219
219
  ]);
220
- const { getButtonProps: W, buttonRef: B } = Kt({
220
+ const { getButtonProps: W, buttonRef: B } = qt({
221
221
  disabled: i,
222
222
  native: x,
223
223
  focusableWhenDisabled: !0
@@ -263,7 +263,7 @@ var Tt = /* @__PURE__ */ e.forwardRef(function(t, r) {
263
263
  onClick: O,
264
264
  onFocus: Z,
265
265
  onPointerDown: X,
266
- [Yt]: c ? "" : void 0,
266
+ [Zt]: c ? "" : void 0,
267
267
  onKeyDownCapture() {
268
268
  A.current = !0;
269
269
  }
@@ -331,9 +331,9 @@ var Tt = /* @__PURE__ */ e.forwardRef(function(t, r) {
331
331
  return M == null ? null : /* @__PURE__ */ (0, g.jsxs)(e.Fragment, { children: [N, b && (bt || (bt = /* @__PURE__ */ (0, g.jsx)(Ft, { script: "" })))] });
332
332
  }), ia = {
333
333
  ...Q,
334
- ...Jt
334
+ ...Kt
335
335
  }, Rt = /* @__PURE__ */ e.forwardRef(function(t, r) {
336
- const { className: s, value: i, render: b, keepMounted: o = !1, style: v, ...x } = t, { value: E, getTabIdByPanelValue: z, orientation: M, tabActivationDirection: T, registerMountedTabPanel: I } = at(), m = gt(), { ref: n, index: w } = Ht(), f = i === E, { mounted: l, transitionStatus: y, setMounted: R } = Qt(f), p = !l, S = z(i), j = {
336
+ const { className: s, value: i, render: b, keepMounted: o = !1, style: v, ...x } = t, { value: E, getTabIdByPanelValue: z, orientation: M, tabActivationDirection: T, registerMountedTabPanel: I } = at(), m = gt(), { ref: n, index: w } = Ht(), f = i === E, { mounted: l, transitionStatus: y, setMounted: R } = Ut(f), p = !l, S = z(i), j = {
337
337
  hidden: p,
338
338
  orientation: M,
339
339
  tabActivationDirection: T,
@@ -351,12 +351,12 @@ var Tt = /* @__PURE__ */ e.forwardRef(function(t, r) {
351
351
  id: m,
352
352
  role: "tabpanel",
353
353
  tabIndex: f ? 0 : -1,
354
- inert: aa(!f),
354
+ inert: Gt(!f),
355
355
  "data-index": w
356
356
  }, x],
357
357
  stateAttributesMapping: ia
358
358
  });
359
- return Zt({
359
+ return Xt({
360
360
  open: f,
361
361
  ref: d,
362
362
  onComplete() {
@@ -410,7 +410,7 @@ var Tt = /* @__PURE__ */ e.forwardRef(function(t, r) {
410
410
  ]);
411
411
  return /* @__PURE__ */ (0, g.jsx)(ht.Provider, {
412
412
  value: j,
413
- children: /* @__PURE__ */ (0, g.jsx)(qt, {
413
+ children: /* @__PURE__ */ (0, g.jsx)(ta, {
414
414
  render: o,
415
415
  className: i,
416
416
  style: v,
@@ -635,7 +635,7 @@ na.displayName = "TabsTrigger";
635
635
  la.displayName = "TabsContent";
636
636
  da.displayName = "TabsIndicator";
637
637
  function rt({ value: a, defaultValue: t, onValueChange: r, orientation: s = "horizontal", children: i, className: b, ...o }) {
638
- const [v, x] = Gt({
638
+ const [v, x] = aa({
639
639
  value: a,
640
640
  defaultValue: t ?? "",
641
641
  onChange: r
@@ -711,7 +711,7 @@ function It({ children: a, count: t, isActive: r, className: s, ...i }) {
711
711
  return /* @__PURE__ */ (0, g.jsxs)(it, {
712
712
  className: P("gap-2", s),
713
713
  ...i,
714
- children: [a, t !== void 0 && /* @__PURE__ */ (0, g.jsx)(ta, {
714
+ children: [a, t !== void 0 && /* @__PURE__ */ (0, g.jsx)(Jt, {
715
715
  variant: "soft",
716
716
  color: r ? "primary" : "secondary",
717
717
  size: "xs",
@@ -10,9 +10,9 @@ import { H as He, P as ke, R as _e, V as Ne, _ as je, a as Be, c as Le, f as Fe,
10
10
  import { n as $, r as ze } from "./shadowDom.js";
11
11
  import { t as Ke } from "./addEventListener.js";
12
12
  import { t as Qe } from "./useValueAsRef.js";
13
- import { t as Ze } from "./useOpenChangeComplete.js";
14
- import { n as ae, t as et } from "./useTimeout.js";
15
- import { a as L, i as tt, n as nt, r as ot, t as rt } from "./safePolygon.js";
13
+ import { n as ae, t as Ze } from "./useTimeout.js";
14
+ import { a as L, i as et, n as tt, r as nt, t as ot } from "./safePolygon.js";
15
+ import { r as rt } from "./stateAttributesMapping.js";
16
16
  import { n as st, r as it, t as at } from "./usePositioner.js";
17
17
  import { n as lt, r as ut, t as ct } from "./store.js";
18
18
  import { t as pt } from "./usePopupHandleStore.js";
@@ -23,7 +23,7 @@ var a = /* @__PURE__ */ Re(xe(), 1), M = Se(), le = /* @__PURE__ */ a.createCont
23
23
  timeoutMs: 0,
24
24
  delayRef: { current: 0 },
25
25
  initialDelayRef: { current: 0 },
26
- timeout: new et(),
26
+ timeout: new Ze(),
27
27
  currentIdRef: { current: null },
28
28
  currentContextRef: { current: null }
29
29
  });
@@ -375,7 +375,7 @@ var $t = He(function(t, n) {
375
375
  payload: c,
376
376
  closeOnClick: f,
377
377
  closeDelay: x
378
- }), w = St(), { delayRef: A, isInstantPhase: j, hasProvider: _ } = vt(P, { open: b }), S = tt(P);
378
+ }), w = St(), { delayRef: A, isInstantPhase: j, hasProvider: _ } = vt(P, { open: b }), S = et(P);
379
379
  i.useSyncedValue("isInstantPhase", j);
380
380
  const G = i.useState("disabled"), H = g ?? G, z = Qe(H), K = i.useState("trackCursorAxis"), me = i.useState("disableHoverablePopup"), B = a.useRef(!1), U = ae(), V = a.useRef(void 0);
381
381
  function Q() {
@@ -391,11 +391,11 @@ var $t = He(function(t, n) {
391
391
  const E = Z(T);
392
392
  return B.current = E, E && (S.openChangeTimeout.clear(), S.restTimeout.clear(), S.restTimeoutPending = !1, U.clear()), E;
393
393
  }
394
- const he = nt(P, {
394
+ const he = tt(P, {
395
395
  enabled: !H,
396
396
  mouseOnly: !0,
397
397
  move: !1,
398
- handleClose: !me && K !== "both" ? rt() : null,
398
+ handleClose: !me && K !== "both" ? ot() : null,
399
399
  restMs: Q,
400
400
  delay() {
401
401
  return d == null && _ ? { close: L(A.current, "close") } : { close: x };
@@ -523,13 +523,13 @@ var zt = /* @__PURE__ */ a.forwardRef(function(t, n) {
523
523
  });
524
524
  }), Kt = /* @__PURE__ */ a.forwardRef(function(t, n) {
525
525
  const { render: s, className: o, style: r, ...u } = t, c = F(), { side: g, align: p } = ge(), f = c.useState("open"), d = c.useState("instantType"), h = c.useState("transitionStatus"), C = c.useState("popupProps"), l = c.useState("floatingRootContext"), i = c.useState("disabled"), v = c.useState("closeDelay");
526
- Ze({
526
+ rt({
527
527
  open: f,
528
528
  ref: c.context.popupRef,
529
529
  onComplete() {
530
530
  f && c.context.onOpenChangeComplete?.(!0);
531
531
  }
532
- }), ot(l, {
532
+ }), nt(l, {
533
533
  enabled: !i,
534
534
  closeDelay: v
535
535
  });
package/dist/wc/chart.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import { a as L } from "./rolldown-runtime.js";
2
2
  import { i as P, t as S } from "./vendor/react.js";
3
3
  import { N as A, nt as E, rt as M } from "./vendor/recharts.js";
4
- import { t as R } from "./create-safe-context.js";
5
4
  import { n as d } from "./utils.js";
5
+ import { t as R } from "./create-safe-context.js";
6
6
  var f = /* @__PURE__ */ L(P(), 1), n = S(), I = {
7
7
  light: "",
8
8
  dark: ".dark"
@@ -1,4 +1,4 @@
1
- import { Ct as ct, Dt as ft, St as ot, _t as ut, bt as lt, ct as dt, dt as ht, ft as yt, gt, ht as pt, lt as mt, mt as wt, ot as xt, pt as bt, st as Ot, u as At, ut as St, vt as Mt, wt as _t, xt as $t, yt as Bt } from "./vendor/recharts.js";
1
+ import { St as ct, Tt as ft, _t as ot, at as ut, bt as lt, ct as dt, dt as ht, ft as yt, gt, ht as pt, it as mt, lt as wt, mt as xt, ot as bt, pt as Ot, st as At, u as St, ut as Mt, vt as _t, xt as $t, yt as Bt } from "./vendor/recharts.js";
2
2
  import { n as o } from "./chunk-Y2CYZVJY.js";
3
3
  import { t as m } from "./chunk-X3CZISLH.js";
4
4
  import { R as vt, h as A, p as Pt, r as X, s as B } from "./chunk-DU6HZSFF.js";
@@ -6,10 +6,10 @@ import { t as Et } from "./dist2.js";
6
6
  function It(t) {
7
7
  return Number.isSafeInteger(t) && t >= 0;
8
8
  }
9
- function Dt(t) {
9
+ function Lt(t) {
10
10
  return t != null && typeof t != "function" && It(t.length);
11
11
  }
12
- function Lt(t) {
12
+ function Dt(t) {
13
13
  return t === "__proto__";
14
14
  }
15
15
  function v(t) {
@@ -175,7 +175,7 @@ function $(t) {
175
175
  return typeof t == "object" && t !== null;
176
176
  }
177
177
  function ee(t) {
178
- return $(t) && Dt(t);
178
+ return $(t) && Lt(t);
179
179
  }
180
180
  function x(t, e) {
181
181
  if (typeof t != "function" || e != null && typeof e != "function") throw new TypeError("Expected a function");
@@ -249,7 +249,7 @@ function S(t, e, i, r) {
249
249
  const s = [...Object.keys(e), ...Y(e)];
250
250
  for (let a = 0; a < s.length; a++) {
251
251
  const n = s[a];
252
- if (Lt(n)) continue;
252
+ if (Dt(n)) continue;
253
253
  let c = e[n], f = t[n];
254
254
  if (H(c) && (c = { ...c }), H(f) && (f = { ...f }), Z(c) && (c = j(c)), Array.isArray(c))
255
255
  if (Array.isArray(f)) {
@@ -274,26 +274,26 @@ function se(t, ...e) {
274
274
  }
275
275
  var ae = Et();
276
276
  var ce = {
277
- curveBasis: ot,
278
- curveBasisClosed: $t,
279
- curveBasisOpen: lt,
280
- curveBumpX: ct,
281
- curveBumpY: _t,
282
- curveBundle: Bt,
283
- curveCardinalClosed: ut,
284
- curveCardinalOpen: gt,
285
- curveCardinal: Mt,
286
- curveCatmullRomClosed: wt,
287
- curveCatmullRomOpen: bt,
288
- curveCatmullRom: pt,
277
+ curveBasis: lt,
278
+ curveBasisClosed: Bt,
279
+ curveBasisOpen: _t,
280
+ curveBumpX: $t,
281
+ curveBumpY: ct,
282
+ curveBundle: ot,
283
+ curveCardinalClosed: pt,
284
+ curveCardinalOpen: xt,
285
+ curveCardinal: gt,
286
+ curveCatmullRomClosed: yt,
287
+ curveCatmullRomOpen: ht,
288
+ curveCatmullRom: Ot,
289
289
  curveLinear: ft,
290
- curveLinearClosed: yt,
291
- curveMonotoneX: St,
292
- curveMonotoneY: ht,
293
- curveNatural: mt,
294
- curveStep: dt,
295
- curveStepAfter: xt,
296
- curveStepBefore: Ot
290
+ curveLinearClosed: Mt,
291
+ curveMonotoneX: dt,
292
+ curveMonotoneY: wt,
293
+ curveNatural: At,
294
+ curveStep: bt,
295
+ curveStepAfter: mt,
296
+ curveStepBefore: ut
297
297
  }, fe = /\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi, oe = /* @__PURE__ */ o(function(t, e) {
298
298
  const i = Q(t, /(?:init\b)|(?:initialize\b)/);
299
299
  let r = {};
@@ -364,7 +364,7 @@ function T(t) {
364
364
  let e, i = 0;
365
365
  return t.forEach((r) => {
366
366
  i += I(r, e), e = r;
367
- }), D(t, i / 2);
367
+ }), L(t, i / 2);
368
368
  }
369
369
  o(T, "traverseEdge");
370
370
  function C(t) {
@@ -374,7 +374,7 @@ o(C, "calcLabelPosition");
374
374
  var z = /* @__PURE__ */ o((t, e = 2) => {
375
375
  const i = Math.pow(10, e);
376
376
  return Math.round(t * i) / i;
377
- }, "roundNumber"), D = /* @__PURE__ */ o((t, e) => {
377
+ }, "roundNumber"), L = /* @__PURE__ */ o((t, e) => {
378
378
  let i, r = e;
379
379
  for (const s of t) {
380
380
  if (i) {
@@ -399,7 +399,7 @@ var z = /* @__PURE__ */ o((t, e = 2) => {
399
399
  throw new Error("Could not find a suitable point for the given distance");
400
400
  }, "calculatePoint"), de = /* @__PURE__ */ o((t, e, i) => {
401
401
  m.info(`our points ${JSON.stringify(e)}`), e[0] !== i && (e = e.reverse());
402
- const r = D(e, 25), s = t ? 10 : 5, a = Math.atan2(e[0].y - r.y, e[0].x - r.x), n = {
402
+ const r = L(e, 25), s = t ? 10 : 5, a = Math.atan2(e[0].y - r.y, e[0].x - r.x), n = {
403
403
  x: 0,
404
404
  y: 0
405
405
  };
@@ -408,7 +408,7 @@ var z = /* @__PURE__ */ o((t, e = 2) => {
408
408
  function tt(t, e, i) {
409
409
  const r = structuredClone(i);
410
410
  m.info("our points", r), e !== "start_left" && e !== "start_right" && r.reverse();
411
- const s = D(r, 25 + t), a = 10 + t * 0.5, n = Math.atan2(r[0].y - s.y, r[0].x - s.x), c = {
411
+ const s = L(r, 25 + t), a = 10 + t * 0.5, n = Math.atan2(r[0].y - s.y, r[0].x - s.x), c = {
412
412
  x: 0,
413
413
  y: 0
414
414
  };
@@ -490,20 +490,20 @@ var ye = /* @__PURE__ */ o((t) => rt(t.length), "random"), ge = /* @__PURE__ */
490
490
  };
491
491
  }, (t, e, i = "-", r) => `${t}${e}${i}${r.fontSize}${r.fontWeight}${r.fontFamily}`);
492
492
  function nt(t, e) {
493
- return L(t, e).height;
493
+ return D(t, e).height;
494
494
  }
495
495
  o(nt, "calculateTextHeight");
496
496
  function w(t, e) {
497
- return L(t, e).width;
497
+ return D(t, e).width;
498
498
  }
499
499
  o(w, "calculateTextWidth");
500
- var L = x((t, e) => {
500
+ var D = x((t, e) => {
501
501
  const { fontSize: i = 12, fontFamily: r = "Arial", fontWeight: s = 400 } = e;
502
502
  if (!t) return {
503
503
  width: 0,
504
504
  height: 0
505
505
  };
506
- const [, a] = F(i), n = ["sans-serif", r], c = t.split(B.lineBreakRegex), f = [], l = At("body");
506
+ const [, a] = F(i), n = ["sans-serif", r], c = t.split(B.lineBreakRegex), f = [], l = St("body");
507
507
  if (!l.remove) return {
508
508
  width: 0,
509
509
  height: 0,
@@ -559,7 +559,7 @@ var Ee = {
559
559
  wrapLabel: me,
560
560
  calculateTextHeight: nt,
561
561
  calculateTextWidth: w,
562
- calculateTextDimensions: L,
562
+ calculateTextDimensions: D,
563
563
  cleanAndMerge: it,
564
564
  detectInit: oe,
565
565
  detectDirective: Q,
@@ -588,9 +588,9 @@ var Ee = {
588
588
  const r = i.substring(1, i.length - 1);
589
589
  return /^\+?\d+$/.test(r) ? "fl°°" + r + "¶ß" : "fl°" + r + "¶ß";
590
590
  }), e;
591
- }, "encodeEntities"), De = /* @__PURE__ */ o(function(t) {
591
+ }, "encodeEntities"), Le = /* @__PURE__ */ o(function(t) {
592
592
  return t.replace(/fl°°/g, "&#").replace(/fl°/g, "&").replace(/¶ß/g, ";");
593
- }, "decodeEntities"), Le = /* @__PURE__ */ o((t, e, { counter: i = 0, prefix: r, suffix: s }, a) => a || `${r ? `${r}_` : ""}${t}_${e}_${i}${s ? `_${s}` : ""}`, "getEdgeId");
593
+ }, "decodeEntities"), De = /* @__PURE__ */ o((t, e, { counter: i = 0, prefix: r, suffix: s }, a) => a || `${r ? `${r}_` : ""}${t}_${e}_${i}${s ? `_${s}` : ""}`, "getEdgeId");
594
594
  function Se(t) {
595
595
  return t ?? null;
596
596
  }
@@ -607,7 +607,7 @@ export {
607
607
  Vt as D,
608
608
  Wt as E,
609
609
  Ft as F,
610
- Dt as G,
610
+ Lt as G,
611
611
  Kt as H,
612
612
  jt as I,
613
613
  K as L,
@@ -622,9 +622,9 @@ export {
622
622
  Yt as V,
623
623
  v as W,
624
624
  me as _,
625
- De as a,
625
+ Le as a,
626
626
  Z as b,
627
- Le as c,
627
+ De as c,
628
628
  V as d,
629
629
  Oe as f,
630
630
  Ee as g,
@@ -639,7 +639,7 @@ export {
639
639
  F as p,
640
640
  w as r,
641
641
  he as s,
642
- L as t,
642
+ D as t,
643
643
  Se as u,
644
644
  M as v,
645
645
  q as w,
@@ -1,12 +1,12 @@
1
- import { Ct as yt, Dt as tt, Et as gt, St as et, ct as xt, dt as bt, ht as wt, lt as Mt, ot as Lt, st as _t, u as H, ut as St, vt as Ot, wt as Ut } from "./vendor/recharts.js";
1
+ import { St as yt, Tt as tt, at as gt, bt as et, ct as xt, gt as bt, it as wt, lt as Mt, ot as Lt, pt as _t, st as St, u as H, wt as Ot, xt as Ut } from "./vendor/recharts.js";
2
2
  import { n as h } from "./chunk-Y2CYZVJY.js";
3
3
  import { t as g } from "./chunk-X3CZISLH.js";
4
4
  import { T as ct, b as T, x as B } from "./chunk-DU6HZSFF.js";
5
5
  import { g as A, u as Et } from "./chunk-75Z2AOVW.js";
6
- import { n as vt, r as nt } from "./chunk-GMAD6QVW.js";
7
- import { i as $t, n as Xt } from "./chunk-P2QGCYS3.js";
6
+ import { n as $t, r as nt } from "./chunk-GMAD6QVW.js";
7
+ import { i as vt, n as Xt } from "./chunk-P2QGCYS3.js";
8
8
  import { t as Yt } from "./rough.esm.js";
9
- import { t as V } from "./chunk-4HAMMTFA.js";
9
+ import { t as D } from "./chunk-4HAMMTFA.js";
10
10
  import { n as Wt } from "./chunk-GVQU2GXP.js";
11
11
  var I = /* @__PURE__ */ h((r, t) => {
12
12
  if (t) return "translate(" + -r.width / 2 + ", " + -r.height / 2 + ")";
@@ -190,9 +190,9 @@ var y = /* @__PURE__ */ h((r) => Array.isArray(r) ? {
190
190
  }, "clear"), er = /* @__PURE__ */ h((r) => !!(r.label || r.startLabelLeft || r.startLabelRight || r.endLabelLeft || r.endLabelRight), "hasEdgeLabel"), Q = /* @__PURE__ */ h((r) => r ? typeof r == "string" ? r : r.reduce((t, a) => t + ";" + a, "") : "", "getLabelStyles"), nr = /* @__PURE__ */ h(async (r, t) => {
191
191
  const a = B();
192
192
  let e = ct(a);
193
- const { labelStyles: n } = $t(t);
193
+ const { labelStyles: n } = vt(t);
194
194
  t.labelStyle = n;
195
- const o = r.insert("g").attr("class", "edgeLabel"), s = o.insert("g").attr("class", "label").attr("data-id", t.id), i = t.labelType === "markdown", c = await vt(r, t.label, {
195
+ const o = r.insert("g").attr("class", "edgeLabel"), s = o.insert("g").attr("class", "label").attr("data-id", t.id), i = t.labelType === "markdown", c = await $t(r, t.label, {
196
196
  style: Q(t.labelStyle),
197
197
  useHtmlLabels: e,
198
198
  addSvgBackground: !0,
@@ -214,7 +214,7 @@ var y = /* @__PURE__ */ h((r) => Array.isArray(r) ? {
214
214
  s.attr("transform", I(l, e)), F.set(t.id, o), t.width = k.width, t.height = k.height;
215
215
  let f;
216
216
  if (t.startLabelLeft) {
217
- const p = r.insert("g").attr("class", "edgeTerminals"), d = p.insert("g").attr("class", "inner"), m = await V(d, t.startLabelLeft, Q(t.labelStyle) || "", !1, !1);
217
+ const p = r.insert("g").attr("class", "edgeTerminals"), d = p.insert("g").attr("class", "inner"), m = await D(d, t.startLabelLeft, Q(t.labelStyle) || "", !1, !1);
218
218
  f = m;
219
219
  let u = m.getBBox();
220
220
  if (e) {
@@ -224,7 +224,7 @@ var y = /* @__PURE__ */ h((r) => Array.isArray(r) ? {
224
224
  d.attr("transform", I(u, e)), _.get(t.id) || _.set(t.id, {}), _.get(t.id).startLeft = p, Z(f, t.startLabelLeft);
225
225
  }
226
226
  if (t.startLabelRight) {
227
- const p = r.insert("g").attr("class", "edgeTerminals"), d = p.insert("g").attr("class", "inner"), m = await V(d, t.startLabelRight, Q(t.labelStyle) || "", !1, !1);
227
+ const p = r.insert("g").attr("class", "edgeTerminals"), d = p.insert("g").attr("class", "inner"), m = await D(d, t.startLabelRight, Q(t.labelStyle) || "", !1, !1);
228
228
  f = m;
229
229
  let u = m.getBBox();
230
230
  if (e) {
@@ -234,7 +234,7 @@ var y = /* @__PURE__ */ h((r) => Array.isArray(r) ? {
234
234
  d.attr("transform", I(u, e)), _.get(t.id) || _.set(t.id, {}), _.get(t.id).startRight = p, Z(f, t.startLabelRight);
235
235
  }
236
236
  if (t.endLabelLeft) {
237
- const p = r.insert("g").attr("class", "edgeTerminals"), d = p.insert("g").attr("class", "inner"), m = await V(p, t.endLabelLeft, Q(t.labelStyle) || "", !1, !1);
237
+ const p = r.insert("g").attr("class", "edgeTerminals"), d = p.insert("g").attr("class", "inner"), m = await D(p, t.endLabelLeft, Q(t.labelStyle) || "", !1, !1);
238
238
  f = m;
239
239
  let u = m.getBBox();
240
240
  if (e) {
@@ -244,7 +244,7 @@ var y = /* @__PURE__ */ h((r) => Array.isArray(r) ? {
244
244
  d.attr("transform", I(u, e)), _.get(t.id) || _.set(t.id, {}), _.get(t.id).endLeft = p, Z(f, t.endLabelLeft);
245
245
  }
246
246
  if (t.endLabelRight) {
247
- const p = r.insert("g").attr("class", "edgeTerminals"), d = p.insert("g").attr("class", "inner"), m = await V(p, t.endLabelRight, Q(t.labelStyle) || "", !1, !1);
247
+ const p = r.insert("g").attr("class", "edgeTerminals"), d = p.insert("g").attr("class", "inner"), m = await D(p, t.endLabelRight, Q(t.labelStyle) || "", !1, !1);
248
248
  f = m;
249
249
  let u = m.getBBox();
250
250
  if (e) {
@@ -429,7 +429,7 @@ var lt = /* @__PURE__ */ h(function(r, t, a) {
429
429
  if (d.intersect && p.intersect && Array.isArray(l) && l.length >= 2)
430
430
  if (l.length === 2) l = [p.intersect(l[0]), d.intersect(l[1])];
431
431
  else {
432
- const x = l.slice(1, -1), $ = x[0], U = x[x.length - 1], E = 0.5, R = Math.abs(l[l.length - 1].x - U.x) < E && Math.abs(l[l.length - 1].y - U.y) < E, X = p.intersect($), Y = R ? U : d.intersect(U), W = Math.abs(Y.x - U.x) < E && Math.abs(Y.y - U.y) < E, P = Math.abs(X.x - $.x) < E && Math.abs(X.y - $.y) < E ? [] : [X], ut = W ? [] : [Y];
432
+ const x = l.slice(1, -1), v = x[0], U = x[x.length - 1], E = 0.5, R = Math.abs(l[l.length - 1].x - U.x) < E && Math.abs(l[l.length - 1].y - U.y) < E, X = p.intersect(v), Y = R ? U : d.intersect(U), W = Math.abs(Y.x - U.x) < E && Math.abs(Y.y - U.y) < E, P = Math.abs(X.x - v.x) < E && Math.abs(X.y - v.y) < E ? [] : [X], ut = W ? [] : [Y];
433
433
  l = [
434
434
  ...P,
435
435
  ...x,
@@ -452,34 +452,34 @@ var lt = /* @__PURE__ */ h(function(r, t, a) {
452
452
  w = et;
453
453
  break;
454
454
  case "cardinal":
455
- w = Ot;
455
+ w = bt;
456
456
  break;
457
457
  case "bumpX":
458
- w = yt;
458
+ w = Ut;
459
459
  break;
460
460
  case "bumpY":
461
- w = Ut;
461
+ w = yt;
462
462
  break;
463
463
  case "catmullRom":
464
- w = wt;
464
+ w = _t;
465
465
  break;
466
466
  case "monotoneX":
467
- w = St;
467
+ w = xt;
468
468
  break;
469
469
  case "monotoneY":
470
- w = bt;
470
+ w = Mt;
471
471
  break;
472
472
  case "natural":
473
- w = Mt;
473
+ w = St;
474
474
  break;
475
475
  case "step":
476
- w = xt;
476
+ w = Lt;
477
477
  break;
478
478
  case "stepAfter":
479
- w = Lt;
479
+ w = wt;
480
480
  break;
481
481
  case "stepBefore":
482
- w = _t;
482
+ w = gt;
483
483
  break;
484
484
  case "rounded":
485
485
  w = tt;
@@ -487,7 +487,7 @@ var lt = /* @__PURE__ */ h(function(r, t, a) {
487
487
  default:
488
488
  w = et;
489
489
  }
490
- const { x: J, y: q } = Tt(t), C = gt().x(J).y(q).curve(w);
490
+ const { x: J, y: q } = Tt(t), C = Ot().x(J).y(q).curve(w);
491
491
  let O;
492
492
  switch (t.thickness) {
493
493
  case "normal":
@@ -516,22 +516,22 @@ var lt = /* @__PURE__ */ h(function(r, t, a) {
516
516
  O += " edge-pattern-solid";
517
517
  }
518
518
  let L, j = b === "rounded" ? pt(ht(M, t), 5) : C(M);
519
- const v = Array.isArray(t.style) ? t.style : [t.style];
520
- let at = v.find((x) => x?.startsWith("stroke:")), z = "";
519
+ const $ = Array.isArray(t.style) ? t.style : [t.style];
520
+ let at = $.find((x) => x?.startsWith("stroke:")), z = "";
521
521
  t.animate && (z = "edge-animation-fast"), t.animation && (z = "edge-animation-" + t.animation);
522
522
  let G = !1;
523
523
  if (t.look === "handDrawn") {
524
524
  const x = Yt.svg(r);
525
525
  Object.assign([], M);
526
- const $ = x.path(j, {
526
+ const v = x.path(j, {
527
527
  roughness: 0.3,
528
528
  seed: c
529
529
  });
530
- O += " transition", L = H($).select("path").attr("id", `${s}-${t.id}`).attr("class", " " + O + (t.classes ? " " + t.classes : "") + (z ? " " + z : "")).attr("style", v ? v.reduce((E, R) => E + ";" + R, "") : "");
530
+ O += " transition", L = H(v).select("path").attr("id", `${s}-${t.id}`).attr("class", " " + O + (t.classes ? " " + t.classes : "") + (z ? " " + z : "")).attr("style", $ ? $.reduce((E, R) => E + ";" + R, "") : "");
531
531
  let U = L.attr("d");
532
532
  L.attr("d", U), r.node().appendChild(L.node());
533
533
  } else {
534
- const x = m.join(";"), $ = v ? v.reduce((W, P) => W + P + ";", "") : "", U = (x ? x + ";" + $ + ";" : $) + ";" + (v ? v.reduce((W, P) => W + ";" + P, "") : "");
534
+ const x = m.join(";"), v = $ ? $.reduce((W, P) => W + P + ";", "") : "", U = (x ? x + ";" + v + ";" : v) + ";" + ($ ? $.reduce((W, P) => W + ";" + P, "") : "");
535
535
  L = r.append("path").attr("d", j).attr("id", `${s}-${t.id}`).attr("class", " " + O + (t.classes ? " " + t.classes : "") + (z ? " " + z : "")).attr("style", U), at = U.match(/stroke:([^;]+)/)?.[1], G = t.animate === !0 || !!t.animation || x.includes("animation");
536
536
  const E = L.node(), R = typeof E.getTotalLength == "function" ? E.getTotalLength() : 0, X = st[t.arrowTypeStart] || 0, Y = st[t.arrowTypeEnd] || 0;
537
537
  if (t.look === "neo" && !G) {
@@ -542,10 +542,10 @@ var lt = /* @__PURE__ */ h(function(r, t, a) {
542
542
  L.attr("data-edge", !0), L.attr("data-et", "edge"), L.attr("data-id", t.id), L.attr("data-points", u), L.attr("data-look", Et(t.look)), t.showPoints && M.forEach((x) => {
543
543
  r.append("circle").style("stroke", "red").style("fill", "red").attr("r", 1).attr("cx", x.x).attr("cy", x.y);
544
544
  });
545
- let D = "";
546
- (B().flowchart.arrowMarkerAbsolute || B().state.arrowMarkerAbsolute) && (D = window.location.protocol + "//" + window.location.host + window.location.pathname + window.location.search, D = D.replace(/\(/g, "\\(").replace(/\)/g, "\\)")), g.info("arrowTypeStart", t.arrowTypeStart), g.info("arrowTypeEnd", t.arrowTypeEnd);
545
+ let V = "";
546
+ (B().flowchart.arrowMarkerAbsolute || B().state.arrowMarkerAbsolute) && (V = window.location.protocol + "//" + window.location.host + window.location.pathname + window.location.search, V = V.replace(/\(/g, "\\(").replace(/\)/g, "\\)")), g.info("arrowTypeStart", t.arrowTypeStart), g.info("arrowTypeEnd", t.arrowTypeEnd);
547
547
  const ft = !G && t?.look === "neo";
548
- Ht(L, t, D, s, e, ft, at);
548
+ Ht(L, t, V, s, e, ft, at);
549
549
  const mt = Math.floor(l.length / 2), kt = l[mt];
550
550
  A.isLabelCoordinateInPath(kt, L.attr("d")) || (f = !0);
551
551
  let K = {};
@@ -570,8 +570,8 @@ function pt(r, t) {
570
570
  a += `L${s.x},${s.y}`;
571
571
  continue;
572
572
  }
573
- const C = Math.min(t / Math.sin(q / 2), d / 2, m / 2), O = s.x - u * C, L = s.y - M * C, j = s.x + b * C, v = s.y + w * C;
574
- a += `L${O},${L}`, a += `Q${s.x},${s.y} ${j},${v}`;
573
+ const C = Math.min(t / Math.sin(q / 2), d / 2, m / 2), O = s.x - u * C, L = s.y - M * C, j = s.x + b * C, $ = s.y + w * C;
574
+ a += `L${O},${L}`, a += `Q${s.x},${s.y} ${j},${$}`;
575
575
  }
576
576
  }
577
577
  return a;
@@ -3,8 +3,8 @@ import { i as te, t as ae } from "./vendor/react.js";
3
3
  import { t as oe } from "./check.js";
4
4
  import { t as ne } from "./search.js";
5
5
  import { t as re } from "./x.js";
6
- import { t as se } from "./create-safe-context.js";
7
- import { n as d, r as ie } from "./utils.js";
6
+ import { n as d, r as se } from "./utils.js";
7
+ import { t as ie } from "./create-safe-context.js";
8
8
  import { t as le } from "./button.js";
9
9
  import { a as de, c as ce, i as ue, l as M, n as me, t as pe, u as fe } from "./DialogTrigger.js";
10
10
  import { t as ge } from "./DialogRoot.js";
@@ -107,7 +107,7 @@ var he = Object.assign(A, {
107
107
  Footer: G,
108
108
  Title: F,
109
109
  Description: L
110
- }), [ye, z] = se("Command");
110
+ }), [ye, z] = ie("Command");
111
111
  function be(e, t) {
112
112
  const n = e.toLowerCase(), r = t.toLowerCase().trim();
113
113
  return r ? n.includes(r) ? 1 : 0 : 1;
@@ -333,7 +333,7 @@ function Y({ className: e, children: t, value: n, disabled: r = !1, onSelect: i,
333
333
  const { activeId: C, getItemVisibility: D, registerItem: j, setActiveId: b, updateItem: I } = z(), s = l.useId(), S = l.useMemo(() => [
334
334
  n,
335
335
  x?.join(" ") ?? "",
336
- ie(t)
336
+ se(t)
337
337
  ].filter(Boolean).join(" "), [
338
338
  t,
339
339
  x,
@@ -1,7 +1,7 @@
1
1
  import { a as B } from "./rolldown-runtime.js";
2
2
  import { i as _, t as q } from "./vendor/react.js";
3
- import { t as w } from "./create-safe-context.js";
4
3
  import { n as s } from "./utils.js";
4
+ import { t as w } from "./create-safe-context.js";
5
5
  var u = /* @__PURE__ */ B(_(), 1), r = q();
6
6
  function f(t) {
7
7
  switch (t) {
@@ -8,8 +8,8 @@ import { d as me, l as De, r as Se, s as Ee, t as U } from "./useRenderElement.j
8
8
  import { t as Z } from "./useBaseUiId.js";
9
9
  import { r as Ne } from "./shadowDom.js";
10
10
  import { l as X, n as W, o as je, r as ee, s as ae, t as Le, u as te } from "./LabelableContext.js";
11
- import { a as Pe, o as Ae, t as we } from "./useOpenChangeComplete.js";
12
- import { n as ke } from "./useTimeout.js";
11
+ import { n as Pe } from "./useTimeout.js";
12
+ import { a as Ae, n as we, r as ke } from "./stateAttributesMapping.js";
13
13
  import { t as ve } from "./FieldItemContext.js";
14
14
  import { t as Te } from "./FieldControl.js";
15
15
  var i = /* @__PURE__ */ Ce(Ie(), 1), S = he();
@@ -127,7 +127,7 @@ function fe(t, e) {
127
127
  t?.setCustomValidity("");
128
128
  }
129
129
  function Ke(t) {
130
- const { elementRef: e, formRef: s } = ee(), { setValidityData: u, validate: y, validityData: b, validationDebounceTime: f, invalid: C, markedDirtyRef: l, state: n, shouldValidateOnChange: o, registeredFieldIdRef: d } = t, { controlId: R, getDescriptionProps: a } = W(), m = ke(), F = i.useRef(null), v = me(() => /* @__PURE__ */ new Map()).current, E = i.useRef(0), x = i.useCallback((I, P) => (v.set(I, P), () => {
130
+ const { elementRef: e, formRef: s } = ee(), { setValidityData: u, validate: y, validityData: b, validationDebounceTime: f, invalid: C, markedDirtyRef: l, state: n, shouldValidateOnChange: o, registeredFieldIdRef: d } = t, { controlId: R, getDescriptionProps: a } = W(), m = Pe(), F = i.useRef(null), v = me(() => /* @__PURE__ */ new Map()).current, E = i.useRef(0), x = i.useCallback((I, P) => (v.set(I, P), () => {
131
131
  v.delete(I);
132
132
  }), [v]), r = A(() => {
133
133
  const I = ce(v, e.current);
@@ -414,7 +414,7 @@ var We = /* @__PURE__ */ i.forwardRef(function(e, s) {
414
414
  });
415
415
  }), He = {
416
416
  ...te,
417
- ...Pe
417
+ ...we
418
418
  }, Je = /* @__PURE__ */ i.forwardRef(function(e, s) {
419
419
  const { render: u, id: y, className: b, match: f, style: C, ...l } = e, n = Z(y), { validityData: o, state: d, name: R } = ae(!1), { setMessageIds: a } = W(), { errors: m } = ee(), F = R && Object.hasOwn(m, R) ? m[R] : null, v = !!(Array.isArray(F) ? F.length : F), E = typeof f == "string";
420
420
  let x = !1;
@@ -436,7 +436,7 @@ var We = /* @__PURE__ */ i.forwardRef(function(e, s) {
436
436
  let c = j;
437
437
  Array.isArray(j) && (c = j.length > 1 ? /* @__PURE__ */ (0, S.jsx)("ul", { children: j.map((M) => /* @__PURE__ */ (0, S.jsx)("li", { children: M }, M)) }) : j[0]);
438
438
  const $ = Array.isArray(j) ? JSON.stringify(j) : j;
439
- x && $ !== q && (_($), P(c)), we({
439
+ x && $ !== q && (_($), P(c)), ke({
440
440
  open: x,
441
441
  ref: O,
442
442
  onComplete() {