react-semaphor 0.1.544 → 0.1.546

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 (179) hide show
  1. package/dist/analytics-protocol/index.js +405 -441
  2. package/dist/assistant-context/index.js +1 -1
  3. package/dist/assistant-protocol/index.js +100 -76
  4. package/dist/brand-studio/index.js +5 -5
  5. package/dist/briefings/index.js +55 -52
  6. package/dist/chunks/{class-utils-Df1OVOT1.js → _commonjsHelpers-DimLPMtv.js} +124 -98
  7. package/dist/chunks/{add-to-dashboard-BuAqfA2Y.js → add-to-dashboard-BQRAAnc3.js} +55 -33
  8. package/dist/chunks/{analytics-base-schemas-BFAoRlkU.js → analytics-base-schemas-BKs3flFS.js} +2 -2
  9. package/dist/chunks/{assistant-chat-BNLkCDml.js → assistant-chat-BPXhulAx.js} +2792 -2562
  10. package/dist/chunks/{bookmark-state-CXw7lZ50.js → bookmark-state-C4vetoa0.js} +7 -8
  11. package/dist/chunks/column-catalog-BYnochWQ.js +3363 -0
  12. package/dist/chunks/comparison-window-caption-C2xF-eWw.js +1433 -0
  13. package/dist/chunks/{context-ClREvqCZ.js → context-BerEBuFR.js} +11 -6
  14. package/dist/chunks/custom-visual-inputs-CkJW9pBS.js +295 -0
  15. package/dist/chunks/{dashboard-g5a4DKWq.js → dashboard-C3CoKbGY.js} +1 -1
  16. package/dist/chunks/dashboard-briefing-launcher-Be4h-7My.js +3734 -0
  17. package/dist/chunks/dashboard-controls-bxPrlSyp.js +2307 -0
  18. package/dist/chunks/{dashboard-json-7qT9jmfL.js → dashboard-json-BrjxIiRt.js} +6 -6
  19. package/dist/chunks/document-dashboard-inputs-CRVHpIHp.js +3010 -0
  20. package/dist/chunks/{edit-dashboard-visual-BfJwnRIZ.js → edit-dashboard-visual-DYYYDjY6.js} +5986 -6063
  21. package/dist/chunks/{filter-value-text-CYsVYPuD.js → filter-value-text-Ddf55Ku1.js} +8 -8
  22. package/dist/chunks/global-date-filter-utils-9d6m9-FE.js +11859 -0
  23. package/dist/chunks/index-CtoK1Lgu.js +586 -0
  24. package/dist/chunks/{index-DkAyQvC6.js → index-DkQkMKa1.js} +385 -339
  25. package/dist/chunks/list-filter-DsaTbM3J.js +15 -0
  26. package/dist/chunks/matrix-analytical-definition-B9vW-osb.js +717 -0
  27. package/dist/chunks/{matrix-card-DjwWcCo8.js → matrix-card-LiMEipvq.js} +3 -3
  28. package/dist/chunks/{matrix-formatter-CxJLkztA.js → matrix-formatter-DWEeC0_c.js} +55 -55
  29. package/dist/chunks/{matrix-member-presentation-CQGdVks6.js → matrix-member-presentation-DqzG-UhQ.js} +1 -1
  30. package/dist/chunks/{matrix-operation-contract-8OIO4gob.js → matrix-operation-contract-D6vYkZK4.js} +72 -72
  31. package/dist/chunks/{metric-comparison-DEwi9uc2.js → metric-comparison-zpGw4lD6.js} +2 -2
  32. package/dist/chunks/normalize-dashboard-for-dirty-check-XKgH3GFX.js +119 -0
  33. package/dist/chunks/{pivot-header-presentation-DHcx1XGQ.js → pivot-header-presentation-CQnIDtUv.js} +1 -1
  34. package/dist/chunks/{pivot-result-identity-DJhXXcns.js → pivot-result-identity-C-Q1j1Wb.js} +1 -1
  35. package/dist/chunks/{pivot-result-lifecycle-DM4CyGKs.js → pivot-result-lifecycle-pwq3b7LC.js} +571 -380
  36. package/dist/chunks/{raw-temporal-contract-C51YG48G.js → raw-temporal-contract-WuXA8jBP.js} +1 -1
  37. package/dist/chunks/{raw-temporal-presentation-CLiVi90c.js → raw-temporal-presentation-CBzrDOjM.js} +8 -8
  38. package/dist/chunks/rendered-file-D8xEuVVx.js +108 -0
  39. package/dist/chunks/{report-preferences-dialog-Df7VpRVW.js → report-preferences-dialog-4QEZWe5U.js} +637 -610
  40. package/dist/chunks/{report-runtime-context-Dq8XyODK.js → report-runtime-context-hWiTCzFV.js} +2 -2
  41. package/dist/chunks/resolve-dashboard-input-context-UpK_LBpL.js +5677 -0
  42. package/dist/chunks/{saved-dashboard-context-B-mQ--nV.js → saved-dashboard-context-D_I3Lxk0.js} +184 -212
  43. package/dist/chunks/selection-filter-compiler-BKXmyLrS.js +79 -0
  44. package/dist/chunks/{selection-reducer-Dj_8xD69.js → selection-reducer-CJzkTZio.js} +15 -15
  45. package/dist/chunks/{semaphor-ready-indicator-DDAxk8us.js → semaphor-ready-indicator-4zpRHE-X.js} +56832 -59068
  46. package/dist/chunks/{shelf-drop-preview-context-BSRPwaED.js → shelf-drop-preview-context-Cfw7TRAx.js} +890 -871
  47. package/dist/chunks/{source-entity-resolution-BYn9giz3.js → source-entity-resolution-BIGRvtbG.js} +13 -13
  48. package/dist/chunks/{switch-C3jLxlG0.js → switch-CEBOR4n7.js} +47 -48
  49. package/dist/chunks/{table-export-sheet-CPfGAQ9X.js → table-export-sheet-4X9mAG3V.js} +1 -1
  50. package/dist/chunks/table-settings-CunhoDUi.js +605 -0
  51. package/dist/chunks/{temporal-bucket-D7NBrrtL.js → temporal-bucket-CQOSbv9-.js} +26 -26
  52. package/dist/chunks/{token-types-DBbZVQsm.js → token-types-BMqRmT-C.js} +1 -1
  53. package/dist/chunks/{use-create-flow-overlay-state-BxzFviM-.js → use-create-flow-overlay-state-DZBZiiD-.js} +83 -83
  54. package/dist/chunks/{validators-DMHTpf7a.js → validators-C-aOQlTB.js} +713 -658
  55. package/dist/dashboard/index.js +2 -2
  56. package/dist/dashboard-authoring/index.js +1800 -1135
  57. package/dist/data-app-sdk/index.js +6 -6
  58. package/dist/data-app-sdk-adapters/index.js +3 -3
  59. package/dist/data-app-sdk-validation/index.js +14 -14
  60. package/dist/format-utils/index.js +198 -187
  61. package/dist/index.js +359 -325
  62. package/dist/layouts/index.js +5 -242
  63. package/dist/report-runtime-context/index.js +2 -2
  64. package/dist/shared/index.js +4 -5
  65. package/dist/style.css +1 -1
  66. package/dist/surfboard/index.js +2 -2
  67. package/dist/types/briefings/attachment-outcomes.d.ts +1 -1
  68. package/dist/types/briefings/attachments.d.ts +33 -6
  69. package/dist/types/briefings/index.d.ts +6 -5
  70. package/dist/types/components/index.d.ts +2 -0
  71. package/dist/types/components/surfboard/arrange-layout-button.d.ts +8 -0
  72. package/dist/types/components/surfboard/filter/types.d.ts +0 -14
  73. package/dist/types/components/surfboard/screen-size-preview-button.d.ts +7 -0
  74. package/dist/types/index.js +6 -6
  75. package/dist/types/lib/charts/table-chart-types.d.ts +4 -0
  76. package/dist/types/lib/charts/types.d.ts +2 -2
  77. package/dist/types/lib/dashboard-inputs/dashboard-filter-mapping-authoring.d.ts +68 -82
  78. package/dist/types/lib/dashboard-inputs/dashboard-input-target-context.d.ts +0 -8
  79. package/dist/types/lib/dashboard-inputs/dashboard-input-values.d.ts +41 -1
  80. package/dist/types/lib/dashboard-inputs/filter-settings.d.ts +201 -0
  81. package/dist/types/lib/dashboard-inputs/prepare-loaded-dashboard.d.ts +15 -0
  82. package/dist/types/lib/dashboard-inputs/resolve-dashboard-input-context.d.ts +7 -2
  83. package/dist/types/lib/dashboard-inputs/resolve-selection-input.d.ts +1 -1
  84. package/dist/types/lib/dashboard-viewer/captured-runtime-values.d.ts +40 -0
  85. package/dist/types/lib/dashboard-viewer/compatibility-input-storage.d.ts +16 -16
  86. package/dist/types/lib/dashboard-viewer/viewer-state.d.ts +11 -9
  87. package/dist/types/lib/download-pdf.d.ts +75 -1
  88. package/dist/types/lib/hooks/use-date-filter.d.ts +5 -0
  89. package/dist/types/lib/hooks/use-text-filter.d.ts +5 -0
  90. package/dist/types/lib/matrix-table/matrix-delivery-policy.d.ts +5 -4
  91. package/dist/types/lib/matrix-table/matrix-editor.d.ts +52 -0
  92. package/dist/types/lib/query-context/assemble-card-query.d.ts +158 -0
  93. package/dist/types/lib/query-context/build-card-query-context.d.ts +3 -3
  94. package/dist/types/lib/query-context/build-dashboard-card-query-contract.d.ts +15 -6
  95. package/dist/types/lib/query-context/build-dashboard-execution-snapshot.d.ts +11 -13
  96. package/dist/types/lib/query-context/compile-dashboard-card-filters.d.ts +22 -12
  97. package/dist/types/lib/query-context/dashboard-filter-mapping-resolution.d.ts +69 -0
  98. package/dist/types/lib/stores/dashboard-store.d.ts +159 -56
  99. package/dist/types/lib/stores/editor-store.d.ts +0 -3
  100. package/dist/types/lib/types/common-types.d.ts +29 -6
  101. package/dist/types/lib/types/explorer-types.d.ts +10 -0
  102. package/dist/types/lib/types/semantic-types.d.ts +84 -0
  103. package/dist/types/lib/utils/build-saved-editor-card.d.ts +20 -0
  104. package/dist/types/lib/utils/card-type-change.d.ts +16 -0
  105. package/dist/types/lib/utils/field-availability-context.d.ts +25 -0
  106. package/dist/types/lib/utils/field-placement.d.ts +96 -0
  107. package/dist/types/lib/utils/field-state-calculator.d.ts +161 -0
  108. package/dist/types/lib/utils/qualified-entity-name.d.ts +2 -0
  109. package/dist/types/shared/analytics-protocol/field-provenance.d.ts +89 -0
  110. package/dist/types/shared/analytics-protocol/index.d.ts +2 -0
  111. package/dist/types/shared/analytics-protocol/query-policies.d.ts +52 -0
  112. package/dist/types/shared/analytics-protocol/time-window-schema.d.ts +1 -1
  113. package/dist/types/shared/analytics-protocol/time-window.d.ts +40 -1
  114. package/dist/types/shared/assistant-context/saved-dashboard-context.d.ts +8 -12
  115. package/dist/types/shared/assistant-protocol/answer-text.d.ts +20 -0
  116. package/dist/types/shared/assistant-protocol/context.d.ts +21 -21
  117. package/dist/types/shared/assistant-protocol/index.d.ts +1 -0
  118. package/dist/types/shared/assistant-protocol/limits.d.ts +6 -1
  119. package/dist/types/shared/assistant-protocol/parts.d.ts +43 -3
  120. package/dist/types/shared/assistant-protocol/request.d.ts +14 -2
  121. package/dist/types/shared/dashboard-authoring/calculated-field-identity.d.ts +3 -0
  122. package/dist/types/shared/dashboard-authoring/changes/card-query-part.d.ts +487 -0
  123. package/dist/types/shared/dashboard-authoring/changes/card-types.d.ts +34 -0
  124. package/dist/types/shared/dashboard-authoring/changes/dashboard-change.d.ts +7886 -0
  125. package/dist/types/shared/dashboard-authoring/changes/diagnostics.d.ts +43 -0
  126. package/dist/types/shared/dashboard-authoring/changes/read-card-query.d.ts +54 -0
  127. package/dist/types/shared/dashboard-authoring/changes/resolve-dashboard-changes.d.ts +89 -0
  128. package/dist/types/shared/dashboard-authoring/column-catalog.d.ts +32 -0
  129. package/dist/types/shared/dashboard-authoring/contracts.d.ts +0 -55
  130. package/dist/types/shared/dashboard-authoring/control-execution-contract.d.ts +16 -6
  131. package/dist/types/shared/dashboard-authoring/dashboard-card-source-index.d.ts +9 -1
  132. package/dist/types/shared/dashboard-authoring/dashboard-filter-mapping-contract.d.ts +7 -0
  133. package/dist/types/shared/dashboard-authoring/dashboard-input-scope.d.ts +118 -0
  134. package/dist/types/shared/dashboard-authoring/filter-applicability.d.ts +75 -0
  135. package/dist/types/shared/dashboard-authoring/filter-model/ad-hoc-filter-values.d.ts +10 -0
  136. package/dist/types/shared/dashboard-authoring/filter-model/filter-definitions.d.ts +29 -0
  137. package/dist/types/shared/dashboard-authoring/filter-model/filter-values.d.ts +58 -0
  138. package/dist/types/shared/dashboard-authoring/filter-model/index.d.ts +7 -0
  139. package/dist/types/shared/dashboard-authoring/filter-model/prototype-document-inputs.d.ts +15 -0
  140. package/dist/types/shared/dashboard-authoring/filter-model/read-dashboard-filter-model.d.ts +78 -0
  141. package/dist/types/shared/dashboard-authoring/filter-model/stored-dashboard.d.ts +18 -0
  142. package/dist/types/shared/dashboard-authoring/filter-model/toolbar-filter-reach.d.ts +23 -0
  143. package/dist/types/shared/dashboard-authoring/index.d.ts +20 -2
  144. package/dist/types/shared/dashboard-authoring/operations/apply-dashboard-operations.d.ts +10 -37
  145. package/dist/types/shared/dashboard-authoring/operations/operation-types.d.ts +189 -0
  146. package/dist/types/shared/dashboard-authoring/outline/outline-dashboard.d.ts +94 -0
  147. package/dist/types/shared/dashboard-authoring/outline/outline-filters.d.ts +78 -0
  148. package/dist/types/shared/dashboard-authoring/validators.d.ts +1 -2
  149. package/dist/types/shared/format-utils/exporters/index.d.ts +2 -0
  150. package/dist/types/shared/format-utils/exporters/rendered-file.d.ts +106 -0
  151. package/dist/types/shared/layouts/engine/grid.d.ts +25 -0
  152. package/dist/types/shared/layouts/engine/index.d.ts +4 -0
  153. package/dist/types/shared/layouts/engine/sheet-layout.d.ts +7 -0
  154. package/dist/types/shared/layouts/engine/types.d.ts +125 -0
  155. package/dist/types/shared/layouts/index.d.ts +1 -2
  156. package/package.json +2 -2
  157. package/dist/chunks/_commonjsHelpers-BkfeUUK-.js +0 -28
  158. package/dist/chunks/apply-dashboard-operations-Bz4n1Lq6.js +0 -2260
  159. package/dist/chunks/calendar-day-equality-BmJAWduY.js +0 -460
  160. package/dist/chunks/comparison-window-caption-BTkrN3W4.js +0 -1623
  161. package/dist/chunks/custom-visual-inputs-DUtpYZOk.js +0 -323
  162. package/dist/chunks/dashboard-briefing-launcher-DQ_8O_e2.js +0 -3725
  163. package/dist/chunks/dashboard-controls-8RyBTQUO.js +0 -2315
  164. package/dist/chunks/dashboard-filter-value-compatibility-CwQ_iSNb.js +0 -108
  165. package/dist/chunks/document-dashboard-inputs-BC6p-ESg.js +0 -8087
  166. package/dist/chunks/document-sheet-utils-Duo9uLoH.js +0 -3619
  167. package/dist/chunks/matrix-analytical-definition-C7Gb0e12.js +0 -117
  168. package/dist/chunks/normalize-dashboard-for-dirty-check-Bk3VYv_q.js +0 -67
  169. package/dist/chunks/numeric-presentation-DESvLiu9.js +0 -5227
  170. package/dist/chunks/sort-target-MT1WK1vX.js +0 -29
  171. package/dist/chunks/stable-serialize-CfqXeiBP.js +0 -6
  172. package/dist/chunks/table-settings-CLZocegs.js +0 -501
  173. package/dist/chunks/use-debounced-dirty-check-BwAbnX_5.js +0 -59
  174. package/dist/types/lib/dashboard-inputs/dashboard-filter-mapping-storage-transition.d.ts +0 -88
  175. package/dist/types/lib/dashboard-inputs/dashboard-input-scope.d.ts +0 -10
  176. package/dist/types/shared/dashboard-authoring/change-compiler.d.ts +0 -7
  177. package/dist/types/shared/dashboard-authoring/layout-compiler.d.ts +0 -2
  178. package/dist/types/shared/layouts/create-frame-layouts.d.ts +0 -27
  179. package/dist/types/shared/layouts/frame-layouts.d.ts +0 -23
@@ -1,37 +1,37 @@
1
- import { jsxs as Ae, jsx as A, Fragment as ft } from "react/jsx-runtime";
2
- import * as k from "react";
3
- import zn, { forwardRef as $e, createElement as xe, useContext as rt, createContext as xt, useRef as B, useLayoutEffect as Pn, useImperativeHandle as zt, useEffect as Z, useState as ue, useCallback as O, useMemo as U, memo as wn, Suspense as Cn, useSyncExternalStore as En } from "react";
4
- import { aS as In, Y as te, aT as Pt, Z as wt, aU as ot, aV as Ct, aW as Rn, aX as Dn, aY as An, aZ as Nn, u as Ue, a_ as Mn, a$ as Ln, b0 as _n, b1 as kn, b2 as Tn, b3 as Hn, b4 as Vn, b5 as $n } from "./semaphor-ready-indicator-DDAxk8us.js";
5
- import { C as Et, y as It, z as ze, A as pe, D as Rt, E as Fn, F as Kn, G as Pe, H as Bn, J as Dt, K as qn, M as On } from "./switch-C3jLxlG0.js";
6
- import { f as Gn, r as At } from "./editor-draft-sync-BN5qYHPF.js";
7
- import { a4 as Un, a5 as Wn, a6 as Yn } from "./document-dashboard-inputs-BC6p-ESg.js";
8
- import { f as Xn, r as Nt, g as Mt, a as Je, c as ke, n as jn, b as Qn } from "./custom-visual-inputs-DUtpYZOk.js";
1
+ import { jsxs as Me, jsx as L, Fragment as ft } from "react/jsx-runtime";
2
+ import * as T from "react";
3
+ import zn, { forwardRef as Fe, createElement as xe, useContext as rt, createContext as xt, useRef as q, useLayoutEffect as Pn, useImperativeHandle as zt, useEffect as re, useState as ce, useCallback as O, useMemo as G, memo as wn, Suspense as Cn, useSyncExternalStore as En } from "react";
4
+ import { aZ as In, a3 as ie, a_ as Pt, a4 as wt, a$ as ot, b0 as Ct, b1 as Rn, b2 as Dn, b3 as An, b4 as Mn, u as Re, b5 as Nn, b6 as Ln, b7 as _n, b8 as kn, b9 as Tn, ba as Hn, bb as Vn, bc as $n, bd as Fn } from "./semaphor-ready-indicator-4zpRHE-X.js";
5
+ import { C as Et, y as It, z as ze, A as pe, D as Rt, E as Kn, F as Bn, G as Pe, H as qn, J as Dt, K as On, M as Gn } from "./switch-CEBOR4n7.js";
6
+ import { f as Un, r as At } from "./editor-draft-sync-BN5qYHPF.js";
7
+ import { cL as Wn, cM as Xn } from "./global-date-filter-utils-9d6m9-FE.js";
8
+ import { f as Yn, r as Mt, g as Nt, a as Je, c as Te, n as jn, b as Qn } from "./custom-visual-inputs-CkJW9pBS.js";
9
9
  import "./index-CuHybtft.js";
10
- import "./validators-DMHTpf7a.js";
11
- import "./matrix-operation-contract-8OIO4gob.js";
12
- import "./analytics-base-schemas-BFAoRlkU.js";
10
+ import "./validators-C-aOQlTB.js";
11
+ import "./matrix-operation-contract-D6vYkZK4.js";
12
+ import "./analytics-base-schemas-BKs3flFS.js";
13
13
  import "zod";
14
14
  import "../value-format-preferences/index.js";
15
- import { c as we } from "./class-utils-Df1OVOT1.js";
15
+ import { c as we } from "./_commonjsHelpers-DimLPMtv.js";
16
16
  import { u as Jn } from "./appearance-context-DEYtWinQ.js";
17
17
  const wo = zn.memo(function({
18
18
  context: t = "editor"
19
19
  } = {}) {
20
- return /* @__PURE__ */ Ae(
20
+ return /* @__PURE__ */ Me(
21
21
  "div",
22
22
  {
23
23
  "data-content": "fields-section",
24
24
  className: "flex h-full grow flex-col items-center overflow-hidden",
25
25
  children: [
26
26
  " ",
27
- /* @__PURE__ */ A(In, { context: t }),
27
+ /* @__PURE__ */ L(In, { context: t }),
28
28
  " "
29
29
  ]
30
30
  }
31
31
  );
32
- }), Fe = xt(null);
33
- Fe.displayName = "PanelGroupContext";
34
- const K = {
32
+ }), Ke = xt(null);
33
+ Ke.displayName = "PanelGroupContext";
34
+ const B = {
35
35
  group: "data-panel-group",
36
36
  groupDirection: "data-panel-group-direction",
37
37
  groupId: "data-panel-group-id",
@@ -44,10 +44,10 @@ const K = {
44
44
  resizeHandleEnabled: "data-panel-resize-handle-enabled",
45
45
  resizeHandleId: "data-panel-resize-handle-id",
46
46
  resizeHandleState: "data-resize-handle-state"
47
- }, it = 10, me = Pn, pt = k.useId, Zn = typeof pt == "function" ? pt : () => null;
47
+ }, it = 10, me = Pn, pt = T.useId, Zn = typeof pt == "function" ? pt : () => null;
48
48
  let er = 0;
49
49
  function st(e = null) {
50
- const t = Zn(), n = B(e || t || null);
50
+ const t = Zn(), n = q(e || t || null);
51
51
  return n.current === null && (n.current = "" + er++), e ?? n.current;
52
52
  }
53
53
  function Lt({
@@ -60,32 +60,32 @@ function Lt({
60
60
  id: s,
61
61
  maxSize: l,
62
62
  minSize: a,
63
- onCollapse: f,
64
- onExpand: p,
63
+ onCollapse: d,
64
+ onExpand: f,
65
65
  onResize: u,
66
66
  order: c,
67
- style: h,
68
- tagName: m = "div",
69
- ...y
67
+ style: m,
68
+ tagName: p = "div",
69
+ ...g
70
70
  }) {
71
- const S = rt(Fe);
72
- if (S === null)
71
+ const v = rt(Ke);
72
+ if (v === null)
73
73
  throw Error("Panel components must be rendered within a PanelGroup container");
74
74
  const {
75
- collapsePanel: v,
76
- expandPanel: D,
75
+ collapsePanel: h,
76
+ expandPanel: A,
77
77
  getPanelSize: x,
78
- getPanelStyle: I,
79
- groupId: R,
80
- isPanelCollapsed: M,
78
+ getPanelStyle: R,
79
+ groupId: D,
80
+ isPanelCollapsed: k,
81
81
  reevaluatePanelConstraints: w,
82
- registerPanel: Y,
83
- resizePanel: j,
84
- unregisterPanel: V
85
- } = S, N = st(s), L = B({
82
+ registerPanel: X,
83
+ resizePanel: Q,
84
+ unregisterPanel: $
85
+ } = v, _ = st(s), N = q({
86
86
  callbacks: {
87
- onCollapse: f,
88
- onExpand: p,
87
+ onCollapse: d,
88
+ onExpand: f,
89
89
  onResize: u
90
90
  },
91
91
  constraints: {
@@ -95,73 +95,73 @@ function Lt({
95
95
  maxSize: l,
96
96
  minSize: a
97
97
  },
98
- id: N,
98
+ id: _,
99
99
  idIsFromProps: s !== void 0,
100
100
  order: c
101
101
  });
102
- B({
102
+ q({
103
103
  didLogMissingDefaultSizeWarning: !1
104
104
  }), me(() => {
105
105
  const {
106
- callbacks: $,
107
- constraints: T
108
- } = L.current, H = {
109
- ...T
106
+ callbacks: F,
107
+ constraints: H
108
+ } = N.current, V = {
109
+ ...H
110
110
  };
111
- L.current.id = N, L.current.idIsFromProps = s !== void 0, L.current.order = c, $.onCollapse = f, $.onExpand = p, $.onResize = u, T.collapsedSize = n, T.collapsible = r, T.defaultSize = i, T.maxSize = l, T.minSize = a, (H.collapsedSize !== T.collapsedSize || H.collapsible !== T.collapsible || H.maxSize !== T.maxSize || H.minSize !== T.minSize) && w(L.current, H);
111
+ N.current.id = _, N.current.idIsFromProps = s !== void 0, N.current.order = c, F.onCollapse = d, F.onExpand = f, F.onResize = u, H.collapsedSize = n, H.collapsible = r, H.defaultSize = i, H.maxSize = l, H.minSize = a, (V.collapsedSize !== H.collapsedSize || V.collapsible !== H.collapsible || V.maxSize !== H.maxSize || V.minSize !== H.minSize) && w(N.current, V);
112
112
  }), me(() => {
113
- const $ = L.current;
114
- return Y($), () => {
115
- V($);
113
+ const F = N.current;
114
+ return X(F), () => {
115
+ $(F);
116
116
  };
117
- }, [c, N, Y, V]), zt(o, () => ({
117
+ }, [c, _, X, $]), zt(o, () => ({
118
118
  collapse: () => {
119
- v(L.current);
119
+ h(N.current);
120
120
  },
121
- expand: ($) => {
122
- D(L.current, $);
121
+ expand: (F) => {
122
+ A(N.current, F);
123
123
  },
124
124
  getId() {
125
- return N;
125
+ return _;
126
126
  },
127
127
  getSize() {
128
- return x(L.current);
128
+ return x(N.current);
129
129
  },
130
130
  isCollapsed() {
131
- return M(L.current);
131
+ return k(N.current);
132
132
  },
133
133
  isExpanded() {
134
- return !M(L.current);
134
+ return !k(N.current);
135
135
  },
136
- resize: ($) => {
137
- j(L.current, $);
136
+ resize: (F) => {
137
+ Q(N.current, F);
138
138
  }
139
- }), [v, D, x, M, N, j]);
140
- const W = I(L.current, i);
141
- return xe(m, {
142
- ...y,
139
+ }), [h, A, x, k, _, Q]);
140
+ const U = R(N.current, i);
141
+ return xe(p, {
142
+ ...g,
143
143
  children: e,
144
144
  className: t,
145
- id: N,
145
+ id: _,
146
146
  style: {
147
- ...W,
148
- ...h
147
+ ...U,
148
+ ...m
149
149
  },
150
150
  // CSS selectors
151
- [K.groupId]: R,
152
- [K.panel]: "",
153
- [K.panelCollapsible]: r || void 0,
154
- [K.panelId]: N,
155
- [K.panelSize]: parseFloat("" + W.flexGrow).toFixed(1)
151
+ [B.groupId]: D,
152
+ [B.panel]: "",
153
+ [B.panelCollapsible]: r || void 0,
154
+ [B.panelId]: _,
155
+ [B.panelSize]: parseFloat("" + U.flexGrow).toFixed(1)
156
156
  });
157
157
  }
158
- const tr = $e((e, t) => xe(Lt, {
158
+ const tr = Fe((e, t) => xe(Lt, {
159
159
  ...e,
160
160
  forwardedRef: t
161
161
  }));
162
162
  Lt.displayName = "Panel";
163
163
  tr.displayName = "forwardRef(Panel)";
164
- let Ze = null, Te = -1, ce = null;
164
+ let Ze = null, He = -1, ae = null;
165
165
  function nr(e, t) {
166
166
  if (t) {
167
167
  const n = (t & Vt) !== 0, r = (t & $t) !== 0, i = (t & Ft) !== 0, o = (t & Kt) !== 0;
@@ -184,17 +184,17 @@ function nr(e, t) {
184
184
  }
185
185
  }
186
186
  function rr() {
187
- ce !== null && (document.head.removeChild(ce), Ze = null, ce = null, Te = -1);
187
+ ae !== null && (document.head.removeChild(ae), Ze = null, ae = null, He = -1);
188
188
  }
189
189
  function We(e, t) {
190
190
  var n, r;
191
191
  const i = nr(e, t);
192
192
  if (Ze !== i) {
193
- if (Ze = i, ce === null && (ce = document.createElement("style"), document.head.appendChild(ce)), Te >= 0) {
193
+ if (Ze = i, ae === null && (ae = document.createElement("style"), document.head.appendChild(ae)), He >= 0) {
194
194
  var o;
195
- (o = ce.sheet) === null || o === void 0 || o.removeRule(Te);
195
+ (o = ae.sheet) === null || o === void 0 || o.removeRule(He);
196
196
  }
197
- Te = (n = (r = ce.sheet) === null || r === void 0 ? void 0 : r.insertRule(`*{cursor: ${i} !important;}`)) !== null && n !== void 0 ? n : -1;
197
+ He = (n = (r = ae.sheet) === null || r === void 0 ? void 0 : r.insertRule(`*{cursor: ${i} !important;}`)) !== null && n !== void 0 ? n : -1;
198
198
  }
199
199
  }
200
200
  function _t(e) {
@@ -206,7 +206,7 @@ function kt(e) {
206
206
  function Tt(e) {
207
207
  return e.type.startsWith("mouse");
208
208
  }
209
- function Ke(e) {
209
+ function Be(e) {
210
210
  if (kt(e)) {
211
211
  if (e.isPrimary)
212
212
  return {
@@ -239,7 +239,7 @@ function sr(e, t) {
239
239
  let r;
240
240
  for (; n.a.at(-1) === n.b.at(-1); )
241
241
  e = n.a.pop(), t = n.b.pop(), r = e;
242
- E(r, "Stacking order can only be calculated for elements with a common ancestor");
242
+ I(r, "Stacking order can only be calculated for elements with a common ancestor");
243
243
  const i = {
244
244
  a: gt(mt(n.a)),
245
245
  b: gt(mt(n.b))
@@ -272,7 +272,7 @@ function mt(e) {
272
272
  let t = e.length;
273
273
  for (; t--; ) {
274
274
  const n = e[t];
275
- if (E(n, "Missing node"), cr(n)) return n;
275
+ if (I(n, "Missing node"), cr(n)) return n;
276
276
  }
277
277
  return null;
278
278
  }
@@ -292,7 +292,7 @@ function Ht(e) {
292
292
  return t && t instanceof ShadowRoot ? t.host : t;
293
293
  }
294
294
  const Vt = 1, $t = 2, Ft = 4, Kt = 8, ur = or() === "coarse";
295
- let ne = [], be = !1, fe = /* @__PURE__ */ new Map(), Be = /* @__PURE__ */ new Map();
295
+ let se = [], be = !1, fe = /* @__PURE__ */ new Map(), qe = /* @__PURE__ */ new Map();
296
296
  const Ne = /* @__PURE__ */ new Set();
297
297
  function dr(e, t, n, r, i) {
298
298
  var o;
@@ -304,13 +304,13 @@ function dr(e, t, n, r, i) {
304
304
  hitAreaMargins: r,
305
305
  setResizeHandlerState: i
306
306
  }, a = (o = fe.get(s)) !== null && o !== void 0 ? o : 0;
307
- return fe.set(s, a + 1), Ne.add(l), He(), function() {
308
- var p;
309
- Be.delete(e), Ne.delete(l);
310
- const u = (p = fe.get(s)) !== null && p !== void 0 ? p : 1;
311
- if (fe.set(s, u - 1), He(), u === 1 && fe.delete(s), ne.includes(l)) {
312
- const c = ne.indexOf(l);
313
- c >= 0 && ne.splice(c, 1), at(), i("up", !0, null);
307
+ return fe.set(s, a + 1), Ne.add(l), Ve(), function() {
308
+ var f;
309
+ qe.delete(e), Ne.delete(l);
310
+ const u = (f = fe.get(s)) !== null && f !== void 0 ? f : 1;
311
+ if (fe.set(s, u - 1), Ve(), u === 1 && fe.delete(s), se.includes(l)) {
312
+ const c = se.indexOf(l);
313
+ c >= 0 && se.splice(c, 1), at(), i("up", !0, null);
314
314
  }
315
315
  };
316
316
  }
@@ -320,19 +320,19 @@ function fr(e) {
320
320
  } = e, {
321
321
  x: n,
322
322
  y: r
323
- } = Ke(e);
323
+ } = Be(e);
324
324
  be = !0, lt({
325
325
  target: t,
326
326
  x: n,
327
327
  y: r
328
- }), He(), ne.length > 0 && (Ve("down", e), e.preventDefault(), Bt(t) || e.stopImmediatePropagation());
328
+ }), Ve(), se.length > 0 && ($e("down", e), e.preventDefault(), Bt(t) || e.stopImmediatePropagation());
329
329
  }
330
- function Ye(e) {
330
+ function Xe(e) {
331
331
  const {
332
332
  x: t,
333
333
  y: n
334
- } = Ke(e);
335
- if (be && e.buttons === 0 && (be = !1, Ve("up", e)), !be) {
334
+ } = Be(e);
335
+ if (be && e.buttons === 0 && (be = !1, $e("up", e)), !be) {
336
336
  const {
337
337
  target: r
338
338
  } = e;
@@ -342,25 +342,25 @@ function Ye(e) {
342
342
  y: n
343
343
  });
344
344
  }
345
- Ve("move", e), at(), ne.length > 0 && e.preventDefault();
345
+ $e("move", e), at(), se.length > 0 && e.preventDefault();
346
346
  }
347
- function Xe(e) {
347
+ function Ye(e) {
348
348
  const {
349
349
  target: t
350
350
  } = e, {
351
351
  x: n,
352
352
  y: r
353
- } = Ke(e);
354
- Be.clear(), be = !1, ne.length > 0 && (e.preventDefault(), Bt(t) || e.stopImmediatePropagation()), Ve("up", e), lt({
353
+ } = Be(e);
354
+ qe.clear(), be = !1, se.length > 0 && (e.preventDefault(), Bt(t) || e.stopImmediatePropagation()), $e("up", e), lt({
355
355
  target: t,
356
356
  x: n,
357
357
  y: r
358
- }), at(), He();
358
+ }), at(), Ve();
359
359
  }
360
360
  function Bt(e) {
361
361
  let t = e;
362
362
  for (; t; ) {
363
- if (t.hasAttribute(K.resizeHandle))
363
+ if (t.hasAttribute(B.resizeHandle))
364
364
  return !0;
365
365
  t = t.parentElement;
366
366
  }
@@ -371,7 +371,7 @@ function lt({
371
371
  x: t,
372
372
  y: n
373
373
  }) {
374
- ne.splice(0);
374
+ se.splice(0);
375
375
  let r = null;
376
376
  (e instanceof HTMLElement || e instanceof SVGElement) && (r = e), Ne.forEach((i) => {
377
377
  const {
@@ -379,78 +379,78 @@ function lt({
379
379
  hitAreaMargins: s
380
380
  } = i, l = o.getBoundingClientRect(), {
381
381
  bottom: a,
382
- left: f,
383
- right: p,
382
+ left: d,
383
+ right: f,
384
384
  top: u
385
385
  } = l, c = ur ? s.coarse : s.fine;
386
- if (t >= f - c && t <= p + c && n >= u - c && n <= a + c) {
386
+ if (t >= d - c && t <= f + c && n >= u - c && n <= a + c) {
387
387
  if (r !== null && document.contains(r) && o !== r && !o.contains(r) && !r.contains(o) && // Calculating stacking order has a cost, so we should avoid it if possible
388
388
  // That is why we only check potentially intersecting handles,
389
389
  // and why we skip if the event target is within the handle's DOM
390
390
  sr(r, o) > 0) {
391
- let m = r, y = !1;
392
- for (; m && !m.contains(o); ) {
393
- if (ir(m.getBoundingClientRect(), l)) {
394
- y = !0;
391
+ let p = r, g = !1;
392
+ for (; p && !p.contains(o); ) {
393
+ if (ir(p.getBoundingClientRect(), l)) {
394
+ g = !0;
395
395
  break;
396
396
  }
397
- m = m.parentElement;
397
+ p = p.parentElement;
398
398
  }
399
- if (y)
399
+ if (g)
400
400
  return;
401
401
  }
402
- ne.push(i);
402
+ se.push(i);
403
403
  }
404
404
  });
405
405
  }
406
406
  function je(e, t) {
407
- Be.set(e, t);
407
+ qe.set(e, t);
408
408
  }
409
409
  function at() {
410
410
  let e = !1, t = !1;
411
- ne.forEach((r) => {
411
+ se.forEach((r) => {
412
412
  const {
413
413
  direction: i
414
414
  } = r;
415
415
  i === "horizontal" ? e = !0 : t = !0;
416
416
  });
417
417
  let n = 0;
418
- Be.forEach((r) => {
418
+ qe.forEach((r) => {
419
419
  n |= r;
420
420
  }), e && t ? We("intersection", n) : e ? We("horizontal", n) : t ? We("vertical", n) : rr();
421
421
  }
422
422
  let Qe = new AbortController();
423
- function He() {
423
+ function Ve() {
424
424
  Qe.abort(), Qe = new AbortController();
425
425
  const e = {
426
426
  capture: !0,
427
427
  signal: Qe.signal
428
428
  };
429
- Ne.size && (be ? (ne.length > 0 && fe.forEach((t, n) => {
429
+ Ne.size && (be ? (se.length > 0 && fe.forEach((t, n) => {
430
430
  const {
431
431
  body: r
432
432
  } = n;
433
- t > 0 && (r.addEventListener("contextmenu", Xe, e), r.addEventListener("pointerleave", Ye, e), r.addEventListener("pointermove", Ye, e));
434
- }), window.addEventListener("pointerup", Xe, e), window.addEventListener("pointercancel", Xe, e)) : fe.forEach((t, n) => {
433
+ t > 0 && (r.addEventListener("contextmenu", Ye, e), r.addEventListener("pointerleave", Xe, e), r.addEventListener("pointermove", Xe, e));
434
+ }), window.addEventListener("pointerup", Ye, e), window.addEventListener("pointercancel", Ye, e)) : fe.forEach((t, n) => {
435
435
  const {
436
436
  body: r
437
437
  } = n;
438
- t > 0 && (r.addEventListener("pointerdown", fr, e), r.addEventListener("pointermove", Ye, e));
438
+ t > 0 && (r.addEventListener("pointerdown", fr, e), r.addEventListener("pointermove", Xe, e));
439
439
  }));
440
440
  }
441
- function Ve(e, t) {
441
+ function $e(e, t) {
442
442
  Ne.forEach((n) => {
443
443
  const {
444
444
  setResizeHandlerState: r
445
- } = n, i = ne.includes(n);
445
+ } = n, i = se.includes(n);
446
446
  r(e, i, t);
447
447
  });
448
448
  }
449
449
  function pr() {
450
- const [e, t] = ue(0);
450
+ const [e, t] = ce(0);
451
451
  return O(() => t((n) => n + 1), []);
452
452
  }
453
- function E(e, t) {
453
+ function I(e, t) {
454
454
  if (!e)
455
455
  throw console.error(t), Error(t);
456
456
  }
@@ -460,7 +460,7 @@ function ge(e, t, n = it) {
460
460
  function le(e, t, n = it) {
461
461
  return ge(e, t, n) === 0;
462
462
  }
463
- function J(e, t, n) {
463
+ function te(e, t, n) {
464
464
  return ge(e, t, n) === 0;
465
465
  }
466
466
  function mr(e, t, n) {
@@ -468,7 +468,7 @@ function mr(e, t, n) {
468
468
  return !1;
469
469
  for (let r = 0; r < e.length; r++) {
470
470
  const i = e[r], o = t[r];
471
- if (!J(i, o, n))
471
+ if (!te(i, o, n))
472
472
  return !1;
473
473
  }
474
474
  return !0;
@@ -479,7 +479,7 @@ function Se({
479
479
  size: n
480
480
  }) {
481
481
  const r = e[t];
482
- E(r != null, `Panel constraints not found for index ${t}`);
482
+ I(r != null, `Panel constraints not found for index ${t}`);
483
483
  let {
484
484
  collapsedSize: i = 0,
485
485
  collapsible: o,
@@ -494,7 +494,7 @@ function Se({
494
494
  n = l;
495
495
  return n = Math.min(s, n), n = parseFloat(n.toFixed(it)), n;
496
496
  }
497
- function Re({
497
+ function De({
498
498
  delta: e,
499
499
  initialLayout: t,
500
500
  panelConstraints: n,
@@ -502,73 +502,73 @@ function Re({
502
502
  prevLayout: i,
503
503
  trigger: o
504
504
  }) {
505
- if (J(e, 0))
505
+ if (te(e, 0))
506
506
  return t;
507
507
  const s = [...t], [l, a] = r;
508
- E(l != null, "Invalid first pivot index"), E(a != null, "Invalid second pivot index");
509
- let f = 0;
508
+ I(l != null, "Invalid first pivot index"), I(a != null, "Invalid second pivot index");
509
+ let d = 0;
510
510
  if (o === "keyboard") {
511
511
  {
512
512
  const u = e < 0 ? a : l, c = n[u];
513
- E(c, `Panel constraints not found for index ${u}`);
513
+ I(c, `Panel constraints not found for index ${u}`);
514
514
  const {
515
- collapsedSize: h = 0,
516
- collapsible: m,
517
- minSize: y = 0
515
+ collapsedSize: m = 0,
516
+ collapsible: p,
517
+ minSize: g = 0
518
518
  } = c;
519
- if (m) {
520
- const S = t[u];
521
- if (E(S != null, `Previous layout not found for panel index ${u}`), J(S, h)) {
522
- const v = y - S;
523
- ge(v, Math.abs(e)) > 0 && (e = e < 0 ? 0 - v : v);
519
+ if (p) {
520
+ const v = t[u];
521
+ if (I(v != null, `Previous layout not found for panel index ${u}`), te(v, m)) {
522
+ const h = g - v;
523
+ ge(h, Math.abs(e)) > 0 && (e = e < 0 ? 0 - h : h);
524
524
  }
525
525
  }
526
526
  }
527
527
  {
528
528
  const u = e < 0 ? l : a, c = n[u];
529
- E(c, `No panel constraints found for index ${u}`);
529
+ I(c, `No panel constraints found for index ${u}`);
530
530
  const {
531
- collapsedSize: h = 0,
532
- collapsible: m,
533
- minSize: y = 0
531
+ collapsedSize: m = 0,
532
+ collapsible: p,
533
+ minSize: g = 0
534
534
  } = c;
535
- if (m) {
536
- const S = t[u];
537
- if (E(S != null, `Previous layout not found for panel index ${u}`), J(S, y)) {
538
- const v = S - h;
539
- ge(v, Math.abs(e)) > 0 && (e = e < 0 ? 0 - v : v);
535
+ if (p) {
536
+ const v = t[u];
537
+ if (I(v != null, `Previous layout not found for panel index ${u}`), te(v, g)) {
538
+ const h = v - m;
539
+ ge(h, Math.abs(e)) > 0 && (e = e < 0 ? 0 - h : h);
540
540
  }
541
541
  }
542
542
  }
543
543
  }
544
544
  {
545
545
  const u = e < 0 ? 1 : -1;
546
- let c = e < 0 ? a : l, h = 0;
546
+ let c = e < 0 ? a : l, m = 0;
547
547
  for (; ; ) {
548
- const y = t[c];
549
- E(y != null, `Previous layout not found for panel index ${c}`);
550
- const v = Se({
548
+ const g = t[c];
549
+ I(g != null, `Previous layout not found for panel index ${c}`);
550
+ const h = Se({
551
551
  panelConstraints: n,
552
552
  panelIndex: c,
553
553
  size: 100
554
- }) - y;
555
- if (h += v, c += u, c < 0 || c >= n.length)
554
+ }) - g;
555
+ if (m += h, c += u, c < 0 || c >= n.length)
556
556
  break;
557
557
  }
558
- const m = Math.min(Math.abs(e), Math.abs(h));
559
- e = e < 0 ? 0 - m : m;
558
+ const p = Math.min(Math.abs(e), Math.abs(m));
559
+ e = e < 0 ? 0 - p : p;
560
560
  }
561
561
  {
562
562
  let c = e < 0 ? l : a;
563
563
  for (; c >= 0 && c < n.length; ) {
564
- const h = Math.abs(e) - Math.abs(f), m = t[c];
565
- E(m != null, `Previous layout not found for panel index ${c}`);
566
- const y = m - h, S = Se({
564
+ const m = Math.abs(e) - Math.abs(d), p = t[c];
565
+ I(p != null, `Previous layout not found for panel index ${c}`);
566
+ const g = p - m, v = Se({
567
567
  panelConstraints: n,
568
568
  panelIndex: c,
569
- size: y
569
+ size: g
570
570
  });
571
- if (!J(m, S) && (f += m - S, s[c] = S, f.toPrecision(3).localeCompare(Math.abs(e).toPrecision(3), void 0, {
571
+ if (!te(p, v) && (d += p - v, s[c] = v, d.toPrecision(3).localeCompare(Math.abs(e).toPrecision(3), void 0, {
572
572
  numeric: !0
573
573
  }) >= 0))
574
574
  break;
@@ -579,30 +579,30 @@ function Re({
579
579
  return i;
580
580
  {
581
581
  const u = e < 0 ? a : l, c = t[u];
582
- E(c != null, `Previous layout not found for panel index ${u}`);
583
- const h = c + f, m = Se({
582
+ I(c != null, `Previous layout not found for panel index ${u}`);
583
+ const m = c + d, p = Se({
584
584
  panelConstraints: n,
585
585
  panelIndex: u,
586
- size: h
586
+ size: m
587
587
  });
588
- if (s[u] = m, !J(m, h)) {
589
- let y = h - m, v = e < 0 ? a : l;
590
- for (; v >= 0 && v < n.length; ) {
591
- const D = s[v];
592
- E(D != null, `Previous layout not found for panel index ${v}`);
593
- const x = D + y, I = Se({
588
+ if (s[u] = p, !te(p, m)) {
589
+ let g = m - p, h = e < 0 ? a : l;
590
+ for (; h >= 0 && h < n.length; ) {
591
+ const A = s[h];
592
+ I(A != null, `Previous layout not found for panel index ${h}`);
593
+ const x = A + g, R = Se({
594
594
  panelConstraints: n,
595
- panelIndex: v,
595
+ panelIndex: h,
596
596
  size: x
597
597
  });
598
- if (J(D, I) || (y -= I - D, s[v] = I), J(y, 0))
598
+ if (te(A, R) || (g -= R - A, s[h] = R), te(g, 0))
599
599
  break;
600
- e > 0 ? v-- : v++;
600
+ e > 0 ? h-- : h++;
601
601
  }
602
602
  }
603
603
  }
604
- const p = s.reduce((u, c) => c + u, 0);
605
- return J(p, 100) ? s : i;
604
+ const f = s.reduce((u, c) => c + u, 0);
605
+ return te(f, 100) ? s : i;
606
606
  }
607
607
  function gr({
608
608
  layout: e,
@@ -611,27 +611,27 @@ function gr({
611
611
  }) {
612
612
  let r = 0, i = 100, o = 0, s = 0;
613
613
  const l = n[0];
614
- E(l != null, "No pivot index found"), t.forEach((u, c) => {
614
+ I(l != null, "No pivot index found"), t.forEach((u, c) => {
615
615
  const {
616
- constraints: h
616
+ constraints: m
617
617
  } = u, {
618
- maxSize: m = 100,
619
- minSize: y = 0
620
- } = h;
621
- c === l ? (r = y, i = m) : (o += y, s += m);
618
+ maxSize: p = 100,
619
+ minSize: g = 0
620
+ } = m;
621
+ c === l ? (r = g, i = p) : (o += g, s += p);
622
622
  });
623
- const a = Math.min(i, 100 - o), f = Math.max(r, 100 - s), p = e[l];
623
+ const a = Math.min(i, 100 - o), d = Math.max(r, 100 - s), f = e[l];
624
624
  return {
625
625
  valueMax: a,
626
- valueMin: f,
627
- valueNow: p
626
+ valueMin: d,
627
+ valueNow: f
628
628
  };
629
629
  }
630
- function Me(e, t = document) {
631
- return Array.from(t.querySelectorAll(`[${K.resizeHandleId}][data-panel-group-id="${e}"]`));
630
+ function Le(e, t = document) {
631
+ return Array.from(t.querySelectorAll(`[${B.resizeHandleId}][data-panel-group-id="${e}"]`));
632
632
  }
633
633
  function qt(e, t, n = document) {
634
- const i = Me(e, n).findIndex((o) => o.getAttribute(K.resizeHandleId) === t);
634
+ const i = Le(e, n).findIndex((o) => o.getAttribute(B.resizeHandleId) === t);
635
635
  return i ?? null;
636
636
  }
637
637
  function Ot(e, t, n) {
@@ -645,13 +645,13 @@ function Gt(e, t = document) {
645
645
  const r = t.querySelector(`[data-panel-group][data-panel-group-id="${e}"]`);
646
646
  return r || null;
647
647
  }
648
- function qe(e, t = document) {
649
- const n = t.querySelector(`[${K.resizeHandleId}="${e}"]`);
648
+ function Oe(e, t = document) {
649
+ const n = t.querySelector(`[${B.resizeHandleId}="${e}"]`);
650
650
  return n || null;
651
651
  }
652
652
  function hr(e, t, n, r = document) {
653
653
  var i, o, s, l;
654
- const a = qe(t, r), f = Me(e, r), p = a ? f.indexOf(a) : -1, u = (i = (o = n[p]) === null || o === void 0 ? void 0 : o.id) !== null && i !== void 0 ? i : null, c = (s = (l = n[p + 1]) === null || l === void 0 ? void 0 : l.id) !== null && s !== void 0 ? s : null;
654
+ const a = Oe(t, r), d = Le(e, r), f = a ? d.indexOf(a) : -1, u = (i = (o = n[f]) === null || o === void 0 ? void 0 : o.id) !== null && i !== void 0 ? i : null, c = (s = (l = n[f + 1]) === null || l === void 0 ? void 0 : l.id) !== null && s !== void 0 ? s : null;
655
655
  return [u, c];
656
656
  }
657
657
  function yr({
@@ -663,16 +663,16 @@ function yr({
663
663
  panelGroupElement: o,
664
664
  setLayout: s
665
665
  }) {
666
- B({
666
+ q({
667
667
  didWarnAboutMissingResizeHandle: !1
668
668
  }), me(() => {
669
669
  if (!o)
670
670
  return;
671
- const l = Me(n, o);
671
+ const l = Le(n, o);
672
672
  for (let a = 0; a < i.length - 1; a++) {
673
673
  const {
674
- valueMax: f,
675
- valueMin: p,
674
+ valueMax: d,
675
+ valueMin: f,
676
676
  valueNow: u
677
677
  } = gr({
678
678
  layout: r,
@@ -680,65 +680,65 @@ function yr({
680
680
  pivotIndices: [a, a + 1]
681
681
  }), c = l[a];
682
682
  if (c != null) {
683
- const h = i[a];
684
- E(h, `No panel data found for index "${a}"`), c.setAttribute("aria-controls", h.id), c.setAttribute("aria-valuemax", "" + Math.round(f)), c.setAttribute("aria-valuemin", "" + Math.round(p)), c.setAttribute("aria-valuenow", u != null ? "" + Math.round(u) : "");
683
+ const m = i[a];
684
+ I(m, `No panel data found for index "${a}"`), c.setAttribute("aria-controls", m.id), c.setAttribute("aria-valuemax", "" + Math.round(d)), c.setAttribute("aria-valuemin", "" + Math.round(f)), c.setAttribute("aria-valuenow", u != null ? "" + Math.round(u) : "");
685
685
  }
686
686
  }
687
687
  return () => {
688
- l.forEach((a, f) => {
688
+ l.forEach((a, d) => {
689
689
  a.removeAttribute("aria-controls"), a.removeAttribute("aria-valuemax"), a.removeAttribute("aria-valuemin"), a.removeAttribute("aria-valuenow");
690
690
  });
691
691
  };
692
- }, [n, r, i, o]), Z(() => {
692
+ }, [n, r, i, o]), re(() => {
693
693
  if (!o)
694
694
  return;
695
695
  const l = t.current;
696
- E(l, "Eager values not found");
696
+ I(l, "Eager values not found");
697
697
  const {
698
698
  panelDataArray: a
699
- } = l, f = Gt(n, o);
700
- E(f != null, `No group found for id "${n}"`);
701
- const p = Me(n, o);
702
- E(p, `No resize handles found for group id "${n}"`);
703
- const u = p.map((c) => {
704
- const h = c.getAttribute(K.resizeHandleId);
705
- E(h, "Resize handle element has no handle id attribute");
706
- const [m, y] = hr(n, h, a, o);
707
- if (m == null || y == null)
699
+ } = l, d = Gt(n, o);
700
+ I(d != null, `No group found for id "${n}"`);
701
+ const f = Le(n, o);
702
+ I(f, `No resize handles found for group id "${n}"`);
703
+ const u = f.map((c) => {
704
+ const m = c.getAttribute(B.resizeHandleId);
705
+ I(m, "Resize handle element has no handle id attribute");
706
+ const [p, g] = hr(n, m, a, o);
707
+ if (p == null || g == null)
708
708
  return () => {
709
709
  };
710
- const S = (v) => {
711
- if (!v.defaultPrevented)
712
- switch (v.key) {
710
+ const v = (h) => {
711
+ if (!h.defaultPrevented)
712
+ switch (h.key) {
713
713
  case "Enter": {
714
- v.preventDefault();
715
- const D = a.findIndex((x) => x.id === m);
716
- if (D >= 0) {
717
- const x = a[D];
718
- E(x, `No panel data found for index ${D}`);
719
- const I = r[D], {
720
- collapsedSize: R = 0,
721
- collapsible: M,
714
+ h.preventDefault();
715
+ const A = a.findIndex((x) => x.id === p);
716
+ if (A >= 0) {
717
+ const x = a[A];
718
+ I(x, `No panel data found for index ${A}`);
719
+ const R = r[A], {
720
+ collapsedSize: D = 0,
721
+ collapsible: k,
722
722
  minSize: w = 0
723
723
  } = x.constraints;
724
- if (I != null && M) {
725
- const Y = Re({
726
- delta: J(I, R) ? w - R : R - I,
724
+ if (R != null && k) {
725
+ const X = De({
726
+ delta: te(R, D) ? w - D : D - R,
727
727
  initialLayout: r,
728
- panelConstraints: a.map((j) => j.constraints),
729
- pivotIndices: Ot(n, h, o),
728
+ panelConstraints: a.map((Q) => Q.constraints),
729
+ pivotIndices: Ot(n, m, o),
730
730
  prevLayout: r,
731
731
  trigger: "keyboard"
732
732
  });
733
- r !== Y && s(Y);
733
+ r !== X && s(X);
734
734
  }
735
735
  }
736
736
  break;
737
737
  }
738
738
  }
739
739
  };
740
- return c.addEventListener("keydown", S), () => {
741
- c.removeEventListener("keydown", S);
740
+ return c.addEventListener("keydown", v), () => {
741
+ c.removeEventListener("keydown", v);
742
742
  };
743
743
  });
744
744
  return () => {
@@ -758,21 +758,21 @@ function Ut(e, t) {
758
758
  const n = e === "horizontal", {
759
759
  x: r,
760
760
  y: i
761
- } = Ke(t);
761
+ } = Be(t);
762
762
  return n ? r : i;
763
763
  }
764
764
  function vr(e, t, n, r, i) {
765
- const o = n === "horizontal", s = qe(t, i);
766
- E(s, `No resize handle element found for id "${t}"`);
767
- const l = s.getAttribute(K.groupId);
768
- E(l, "Resize handle element has no group id attribute");
765
+ const o = n === "horizontal", s = Oe(t, i);
766
+ I(s, `No resize handle element found for id "${t}"`);
767
+ const l = s.getAttribute(B.groupId);
768
+ I(l, "Resize handle element has no group id attribute");
769
769
  let {
770
770
  initialCursorPosition: a
771
771
  } = r;
772
- const f = Ut(n, e), p = Gt(l, i);
773
- E(p, `No group element found for id "${l}"`);
774
- const u = p.getBoundingClientRect(), c = o ? u.width : u.height;
775
- return (f - a) / c * 100;
772
+ const d = Ut(n, e), f = Gt(l, i);
773
+ I(f, `No group element found for id "${l}"`);
774
+ const u = f.getBoundingClientRect(), c = o ? u.width : u.height;
775
+ return (d - a) / c * 100;
776
776
  }
777
777
  function Sr(e, t, n, r, i, o) {
778
778
  if (_t(e)) {
@@ -811,7 +811,7 @@ function br({
811
811
  let r = 0, i = 100;
812
812
  for (let o = 0; o < e.length; o++) {
813
813
  const s = n[o];
814
- E(s, `Panel constraints not found for index ${o}`);
814
+ I(s, `Panel constraints not found for index ${o}`);
815
815
  const {
816
816
  defaultSize: l
817
817
  } = s;
@@ -819,41 +819,41 @@ function br({
819
819
  }
820
820
  for (let o = 0; o < e.length; o++) {
821
821
  const s = n[o];
822
- E(s, `Panel constraints not found for index ${o}`);
822
+ I(s, `Panel constraints not found for index ${o}`);
823
823
  const {
824
824
  defaultSize: l
825
825
  } = s;
826
826
  if (l != null)
827
827
  continue;
828
- const a = e.length - r, f = i / a;
829
- r++, t[o] = f, i -= f;
828
+ const a = e.length - r, d = i / a;
829
+ r++, t[o] = d, i -= d;
830
830
  }
831
831
  return t;
832
832
  }
833
833
  function ye(e, t, n) {
834
834
  t.forEach((r, i) => {
835
835
  const o = e[i];
836
- E(o, `Panel data not found for index ${i}`);
836
+ I(o, `Panel data not found for index ${i}`);
837
837
  const {
838
838
  callbacks: s,
839
839
  constraints: l,
840
840
  id: a
841
841
  } = o, {
842
- collapsedSize: f = 0,
843
- collapsible: p
842
+ collapsedSize: d = 0,
843
+ collapsible: f
844
844
  } = l, u = n[a];
845
845
  if (u == null || r !== u) {
846
846
  n[a] = r;
847
847
  const {
848
848
  onCollapse: c,
849
- onExpand: h,
850
- onResize: m
849
+ onExpand: m,
850
+ onResize: p
851
851
  } = s;
852
- m && m(r, u), p && (c || h) && (h && (u == null || le(u, f)) && !le(r, f) && h(), c && (u == null || !le(u, f)) && le(r, f) && c());
852
+ p && p(r, u), f && (c || m) && (m && (u == null || le(u, d)) && !le(r, d) && m(), c && (u == null || !le(u, d)) && le(r, d) && c());
853
853
  }
854
854
  });
855
855
  }
856
- function _e(e, t) {
856
+ function ke(e, t) {
857
857
  if (e.length !== t.length)
858
858
  return !1;
859
859
  for (let n = 0; n < e.length; n++)
@@ -906,7 +906,7 @@ function vt(e) {
906
906
  function Wt(e) {
907
907
  return `react-resizable-panels:${e}`;
908
908
  }
909
- function Yt(e) {
909
+ function Xt(e) {
910
910
  return e.map((t) => {
911
911
  const {
912
912
  constraints: n,
@@ -917,7 +917,7 @@ function Yt(e) {
917
917
  return i ? r : o ? `${o}:${JSON.stringify(n)}` : JSON.stringify(n);
918
918
  }).sort((t, n) => t.localeCompare(n)).join(",");
919
919
  }
920
- function Xt(e, t) {
920
+ function Yt(e, t) {
921
921
  try {
922
922
  const n = Wt(e), r = t.getItem(n);
923
923
  if (r) {
@@ -931,20 +931,20 @@ function Xt(e, t) {
931
931
  }
932
932
  function Pr(e, t, n) {
933
933
  var r, i;
934
- const o = (r = Xt(e, n)) !== null && r !== void 0 ? r : {}, s = Yt(t);
934
+ const o = (r = Yt(e, n)) !== null && r !== void 0 ? r : {}, s = Xt(t);
935
935
  return (i = o[s]) !== null && i !== void 0 ? i : null;
936
936
  }
937
937
  function wr(e, t, n, r, i) {
938
938
  var o;
939
- const s = Wt(e), l = Yt(t), a = (o = Xt(e, i)) !== null && o !== void 0 ? o : {};
939
+ const s = Wt(e), l = Xt(t), a = (o = Yt(e, i)) !== null && o !== void 0 ? o : {};
940
940
  a[l] = {
941
941
  expandToSizes: Object.fromEntries(n.entries()),
942
942
  layout: r
943
943
  };
944
944
  try {
945
945
  i.setItem(s, JSON.stringify(a));
946
- } catch (f) {
947
- console.error(f);
946
+ } catch (d) {
947
+ console.error(d);
948
948
  }
949
949
  }
950
950
  function St({
@@ -954,17 +954,17 @@ function St({
954
954
  const n = [...e], r = n.reduce((o, s) => o + s, 0);
955
955
  if (n.length !== t.length)
956
956
  throw Error(`Invalid ${t.length} panel layout: ${n.map((o) => `${o}%`).join(", ")}`);
957
- if (!J(r, 100) && n.length > 0)
957
+ if (!te(r, 100) && n.length > 0)
958
958
  for (let o = 0; o < t.length; o++) {
959
959
  const s = n[o];
960
- E(s != null, `No layout data found for index ${o}`);
960
+ I(s != null, `No layout data found for index ${o}`);
961
961
  const l = 100 / r * s;
962
962
  n[o] = l;
963
963
  }
964
964
  let i = 0;
965
965
  for (let o = 0; o < t.length; o++) {
966
966
  const s = n[o];
967
- E(s != null, `No layout data found for index ${o}`);
967
+ I(s != null, `No layout data found for index ${o}`);
968
968
  const l = Se({
969
969
  panelConstraints: t,
970
970
  panelIndex: o,
@@ -972,24 +972,24 @@ function St({
972
972
  });
973
973
  s != l && (i += s - l, n[o] = l);
974
974
  }
975
- if (!J(i, 0))
975
+ if (!te(i, 0))
976
976
  for (let o = 0; o < t.length; o++) {
977
977
  const s = n[o];
978
- E(s != null, `No layout data found for index ${o}`);
978
+ I(s != null, `No layout data found for index ${o}`);
979
979
  const l = s + i, a = Se({
980
980
  panelConstraints: t,
981
981
  panelIndex: o,
982
982
  size: l
983
983
  });
984
- if (s !== a && (i -= a - s, n[o] = a, J(i, 0)))
984
+ if (s !== a && (i -= a - s, n[o] = a, te(i, 0)))
985
985
  break;
986
986
  }
987
987
  return n;
988
988
  }
989
- const Cr = 100, De = {
990
- getItem: (e) => (vt(De), De.getItem(e)),
989
+ const Cr = 100, Ae = {
990
+ getItem: (e) => (vt(Ae), Ae.getItem(e)),
991
991
  setItem: (e, t) => {
992
- vt(De), De.setItem(e, t);
992
+ vt(Ae), Ae.setItem(e, t);
993
993
  }
994
994
  }, bt = {};
995
995
  function jt({
@@ -1001,340 +1001,340 @@ function jt({
1001
1001
  id: o = null,
1002
1002
  onLayout: s = null,
1003
1003
  keyboardResizeBy: l = null,
1004
- storage: a = De,
1005
- style: f,
1006
- tagName: p = "div",
1004
+ storage: a = Ae,
1005
+ style: d,
1006
+ tagName: f = "div",
1007
1007
  ...u
1008
1008
  }) {
1009
- const c = st(o), h = B(null), [m, y] = ue(null), [S, v] = ue([]), D = pr(), x = B({}), I = B(/* @__PURE__ */ new Map()), R = B(0), M = B({
1009
+ const c = st(o), m = q(null), [p, g] = ce(null), [v, h] = ce([]), A = pr(), x = q({}), R = q(/* @__PURE__ */ new Map()), D = q(0), k = q({
1010
1010
  autoSaveId: e,
1011
1011
  direction: r,
1012
- dragState: m,
1012
+ dragState: p,
1013
1013
  id: c,
1014
1014
  keyboardResizeBy: l,
1015
1015
  onLayout: s,
1016
1016
  storage: a
1017
- }), w = B({
1018
- layout: S,
1017
+ }), w = q({
1018
+ layout: v,
1019
1019
  panelDataArray: [],
1020
1020
  panelDataArrayChanged: !1
1021
1021
  });
1022
- B({
1022
+ q({
1023
1023
  didLogIdAndOrderWarning: !1,
1024
1024
  didLogPanelConstraintsWarning: !1,
1025
1025
  prevPanelIds: []
1026
1026
  }), zt(i, () => ({
1027
- getId: () => M.current.id,
1027
+ getId: () => k.current.id,
1028
1028
  getLayout: () => {
1029
1029
  const {
1030
- layout: b
1030
+ layout: S
1031
1031
  } = w.current;
1032
- return b;
1032
+ return S;
1033
1033
  },
1034
- setLayout: (b) => {
1034
+ setLayout: (S) => {
1035
1035
  const {
1036
- onLayout: z
1037
- } = M.current, {
1038
- layout: C,
1039
- panelDataArray: d
1040
- } = w.current, g = St({
1041
- layout: b,
1042
- panelConstraints: d.map((P) => P.constraints)
1036
+ onLayout: P
1037
+ } = k.current, {
1038
+ layout: E,
1039
+ panelDataArray: z
1040
+ } = w.current, b = St({
1041
+ layout: S,
1042
+ panelConstraints: z.map((C) => C.constraints)
1043
1043
  });
1044
- yt(C, g) || (v(g), w.current.layout = g, z && z(g), ye(d, g, x.current));
1044
+ yt(E, b) || (h(b), w.current.layout = b, P && P(b), ye(z, b, x.current));
1045
1045
  }
1046
1046
  }), []), me(() => {
1047
- M.current.autoSaveId = e, M.current.direction = r, M.current.dragState = m, M.current.id = c, M.current.onLayout = s, M.current.storage = a;
1047
+ k.current.autoSaveId = e, k.current.direction = r, k.current.dragState = p, k.current.id = c, k.current.onLayout = s, k.current.storage = a;
1048
1048
  }), yr({
1049
- committedValuesRef: M,
1049
+ committedValuesRef: k,
1050
1050
  eagerValuesRef: w,
1051
1051
  groupId: c,
1052
- layout: S,
1052
+ layout: v,
1053
1053
  panelDataArray: w.current.panelDataArray,
1054
- setLayout: v,
1055
- panelGroupElement: h.current
1056
- }), Z(() => {
1054
+ setLayout: h,
1055
+ panelGroupElement: m.current
1056
+ }), re(() => {
1057
1057
  const {
1058
- panelDataArray: b
1058
+ panelDataArray: S
1059
1059
  } = w.current;
1060
1060
  if (e) {
1061
- if (S.length === 0 || S.length !== b.length)
1061
+ if (v.length === 0 || v.length !== S.length)
1062
1062
  return;
1063
- let z = bt[e];
1064
- z == null && (z = zr(wr, Cr), bt[e] = z);
1065
- const C = [...b], d = new Map(I.current);
1066
- z(e, C, d, S, a);
1063
+ let P = bt[e];
1064
+ P == null && (P = zr(wr, Cr), bt[e] = P);
1065
+ const E = [...S], z = new Map(R.current);
1066
+ P(e, E, z, v, a);
1067
1067
  }
1068
- }, [e, S, a]), Z(() => {
1068
+ }, [e, v, a]), re(() => {
1069
1069
  });
1070
- const Y = O((b) => {
1070
+ const X = O((S) => {
1071
1071
  const {
1072
- onLayout: z
1073
- } = M.current, {
1074
- layout: C,
1075
- panelDataArray: d
1072
+ onLayout: P
1073
+ } = k.current, {
1074
+ layout: E,
1075
+ panelDataArray: z
1076
1076
  } = w.current;
1077
- if (b.constraints.collapsible) {
1078
- const g = d.map((oe) => oe.constraints), {
1079
- collapsedSize: P = 0,
1080
- panelSize: _,
1081
- pivotIndices: q
1082
- } = de(d, b, C);
1083
- if (E(_ != null, `Panel size not found for panel "${b.id}"`), !le(_, P)) {
1084
- I.current.set(b.id, _);
1085
- const ie = ve(d, b) === d.length - 1 ? _ - P : P - _, F = Re({
1086
- delta: ie,
1087
- initialLayout: C,
1088
- panelConstraints: g,
1089
- pivotIndices: q,
1090
- prevLayout: C,
1077
+ if (S.constraints.collapsible) {
1078
+ const b = z.map((j) => j.constraints), {
1079
+ collapsedSize: C = 0,
1080
+ panelSize: y,
1081
+ pivotIndices: M
1082
+ } = de(z, S, E);
1083
+ if (I(y != null, `Panel size not found for panel "${S.id}"`), !le(y, C)) {
1084
+ R.current.set(S.id, y);
1085
+ const J = ve(z, S) === z.length - 1 ? y - C : C - y, K = De({
1086
+ delta: J,
1087
+ initialLayout: E,
1088
+ panelConstraints: b,
1089
+ pivotIndices: M,
1090
+ prevLayout: E,
1091
1091
  trigger: "imperative-api"
1092
1092
  });
1093
- _e(C, F) || (v(F), w.current.layout = F, z && z(F), ye(d, F, x.current));
1093
+ ke(E, K) || (h(K), w.current.layout = K, P && P(K), ye(z, K, x.current));
1094
1094
  }
1095
1095
  }
1096
- }, []), j = O((b, z) => {
1096
+ }, []), Q = O((S, P) => {
1097
1097
  const {
1098
- onLayout: C
1099
- } = M.current, {
1100
- layout: d,
1101
- panelDataArray: g
1098
+ onLayout: E
1099
+ } = k.current, {
1100
+ layout: z,
1101
+ panelDataArray: b
1102
1102
  } = w.current;
1103
- if (b.constraints.collapsible) {
1104
- const P = g.map((ee) => ee.constraints), {
1105
- collapsedSize: _ = 0,
1106
- panelSize: q = 0,
1107
- minSize: oe = 0,
1108
- pivotIndices: ie
1109
- } = de(g, b, d), F = z ?? oe;
1110
- if (le(q, _)) {
1111
- const ee = I.current.get(b.id), Ee = ee != null && ee >= F ? ee : F, Ge = ve(g, b) === g.length - 1 ? q - Ee : Ee - q, Q = Re({
1112
- delta: Ge,
1113
- initialLayout: d,
1114
- panelConstraints: P,
1115
- pivotIndices: ie,
1116
- prevLayout: d,
1103
+ if (S.constraints.collapsible) {
1104
+ const C = b.map((oe) => oe.constraints), {
1105
+ collapsedSize: y = 0,
1106
+ panelSize: M = 0,
1107
+ minSize: j = 0,
1108
+ pivotIndices: J
1109
+ } = de(b, S, z), K = P ?? j;
1110
+ if (le(M, y)) {
1111
+ const oe = R.current.get(S.id), Ee = oe != null && oe >= K ? oe : K, Ue = ve(b, S) === b.length - 1 ? M - Ee : Ee - M, Z = De({
1112
+ delta: Ue,
1113
+ initialLayout: z,
1114
+ panelConstraints: C,
1115
+ pivotIndices: J,
1116
+ prevLayout: z,
1117
1117
  trigger: "imperative-api"
1118
1118
  });
1119
- _e(d, Q) || (v(Q), w.current.layout = Q, C && C(Q), ye(g, Q, x.current));
1119
+ ke(z, Z) || (h(Z), w.current.layout = Z, E && E(Z), ye(b, Z, x.current));
1120
1120
  }
1121
1121
  }
1122
- }, []), V = O((b) => {
1122
+ }, []), $ = O((S) => {
1123
1123
  const {
1124
- layout: z,
1125
- panelDataArray: C
1124
+ layout: P,
1125
+ panelDataArray: E
1126
1126
  } = w.current, {
1127
- panelSize: d
1128
- } = de(C, b, z);
1129
- return E(d != null, `Panel size not found for panel "${b.id}"`), d;
1130
- }, []), N = O((b, z) => {
1127
+ panelSize: z
1128
+ } = de(E, S, P);
1129
+ return I(z != null, `Panel size not found for panel "${S.id}"`), z;
1130
+ }, []), _ = O((S, P) => {
1131
1131
  const {
1132
- panelDataArray: C
1133
- } = w.current, d = ve(C, b);
1132
+ panelDataArray: E
1133
+ } = w.current, z = ve(E, S);
1134
1134
  return xr({
1135
- defaultSize: z,
1136
- dragState: m,
1137
- layout: S,
1138
- panelData: C,
1139
- panelIndex: d
1135
+ defaultSize: P,
1136
+ dragState: p,
1137
+ layout: v,
1138
+ panelData: E,
1139
+ panelIndex: z
1140
1140
  });
1141
- }, [m, S]), L = O((b) => {
1141
+ }, [p, v]), N = O((S) => {
1142
1142
  const {
1143
- layout: z,
1144
- panelDataArray: C
1143
+ layout: P,
1144
+ panelDataArray: E
1145
1145
  } = w.current, {
1146
- collapsedSize: d = 0,
1147
- collapsible: g,
1148
- panelSize: P
1149
- } = de(C, b, z);
1150
- return E(P != null, `Panel size not found for panel "${b.id}"`), g === !0 && le(P, d);
1151
- }, []), W = O((b) => {
1146
+ collapsedSize: z = 0,
1147
+ collapsible: b,
1148
+ panelSize: C
1149
+ } = de(E, S, P);
1150
+ return I(C != null, `Panel size not found for panel "${S.id}"`), b === !0 && le(C, z);
1151
+ }, []), U = O((S) => {
1152
1152
  const {
1153
- layout: z,
1154
- panelDataArray: C
1153
+ layout: P,
1154
+ panelDataArray: E
1155
1155
  } = w.current, {
1156
- collapsedSize: d = 0,
1157
- collapsible: g,
1158
- panelSize: P
1159
- } = de(C, b, z);
1160
- return E(P != null, `Panel size not found for panel "${b.id}"`), !g || ge(P, d) > 0;
1161
- }, []), $ = O((b) => {
1156
+ collapsedSize: z = 0,
1157
+ collapsible: b,
1158
+ panelSize: C
1159
+ } = de(E, S, P);
1160
+ return I(C != null, `Panel size not found for panel "${S.id}"`), !b || ge(C, z) > 0;
1161
+ }, []), F = O((S) => {
1162
1162
  const {
1163
- panelDataArray: z
1163
+ panelDataArray: P
1164
1164
  } = w.current;
1165
- z.push(b), z.sort((C, d) => {
1166
- const g = C.order, P = d.order;
1167
- return g == null && P == null ? 0 : g == null ? -1 : P == null ? 1 : g - P;
1168
- }), w.current.panelDataArrayChanged = !0, D();
1169
- }, [D]);
1165
+ P.push(S), P.sort((E, z) => {
1166
+ const b = E.order, C = z.order;
1167
+ return b == null && C == null ? 0 : b == null ? -1 : C == null ? 1 : b - C;
1168
+ }), w.current.panelDataArrayChanged = !0, A();
1169
+ }, [A]);
1170
1170
  me(() => {
1171
1171
  if (w.current.panelDataArrayChanged) {
1172
1172
  w.current.panelDataArrayChanged = !1;
1173
1173
  const {
1174
- autoSaveId: b,
1175
- onLayout: z,
1176
- storage: C
1177
- } = M.current, {
1178
- layout: d,
1179
- panelDataArray: g
1174
+ autoSaveId: S,
1175
+ onLayout: P,
1176
+ storage: E
1177
+ } = k.current, {
1178
+ layout: z,
1179
+ panelDataArray: b
1180
1180
  } = w.current;
1181
- let P = null;
1182
- if (b) {
1183
- const q = Pr(b, g, C);
1184
- q && (I.current = new Map(Object.entries(q.expandToSizes)), P = q.layout);
1181
+ let C = null;
1182
+ if (S) {
1183
+ const M = Pr(S, b, E);
1184
+ M && (R.current = new Map(Object.entries(M.expandToSizes)), C = M.layout);
1185
1185
  }
1186
- P == null && (P = br({
1187
- panelDataArray: g
1186
+ C == null && (C = br({
1187
+ panelDataArray: b
1188
1188
  }));
1189
- const _ = St({
1190
- layout: P,
1191
- panelConstraints: g.map((q) => q.constraints)
1189
+ const y = St({
1190
+ layout: C,
1191
+ panelConstraints: b.map((M) => M.constraints)
1192
1192
  });
1193
- yt(d, _) || (v(_), w.current.layout = _, z && z(_), ye(g, _, x.current));
1193
+ yt(z, y) || (h(y), w.current.layout = y, P && P(y), ye(b, y, x.current));
1194
1194
  }
1195
1195
  }), me(() => {
1196
- const b = w.current;
1196
+ const S = w.current;
1197
1197
  return () => {
1198
- b.layout = [];
1198
+ S.layout = [];
1199
1199
  };
1200
1200
  }, []);
1201
- const T = O((b) => {
1202
- let z = !1;
1203
- const C = h.current;
1204
- return C && window.getComputedStyle(C, null).getPropertyValue("direction") === "rtl" && (z = !0), function(g) {
1205
- g.preventDefault();
1206
- const P = h.current;
1207
- if (!P)
1201
+ const H = O((S) => {
1202
+ let P = !1;
1203
+ const E = m.current;
1204
+ return E && window.getComputedStyle(E, null).getPropertyValue("direction") === "rtl" && (P = !0), function(b) {
1205
+ b.preventDefault();
1206
+ const C = m.current;
1207
+ if (!C)
1208
1208
  return () => null;
1209
1209
  const {
1210
- direction: _,
1211
- dragState: q,
1212
- id: oe,
1213
- keyboardResizeBy: ie,
1214
- onLayout: F
1215
- } = M.current, {
1216
- layout: ee,
1210
+ direction: y,
1211
+ dragState: M,
1212
+ id: j,
1213
+ keyboardResizeBy: J,
1214
+ onLayout: K
1215
+ } = k.current, {
1216
+ layout: oe,
1217
1217
  panelDataArray: Ee
1218
1218
  } = w.current, {
1219
- initialLayout: Le
1220
- } = q ?? {}, Ge = Ot(oe, b, P);
1221
- let Q = Sr(g, b, _, q, ie, P);
1222
- const ut = _ === "horizontal";
1223
- ut && z && (Q = -Q);
1224
- const bn = Ee.map((xn) => xn.constraints), Ie = Re({
1225
- delta: Q,
1226
- initialLayout: Le ?? ee,
1219
+ initialLayout: _e
1220
+ } = M ?? {}, Ue = Ot(j, S, C);
1221
+ let Z = Sr(b, S, y, M, J, C);
1222
+ const ut = y === "horizontal";
1223
+ ut && P && (Z = -Z);
1224
+ const bn = Ee.map((xn) => xn.constraints), Ie = De({
1225
+ delta: Z,
1226
+ initialLayout: _e ?? oe,
1227
1227
  panelConstraints: bn,
1228
- pivotIndices: Ge,
1229
- prevLayout: ee,
1230
- trigger: _t(g) ? "keyboard" : "mouse-or-touch"
1231
- }), dt = !_e(ee, Ie);
1232
- (kt(g) || Tt(g)) && R.current != Q && (R.current = Q, !dt && Q !== 0 ? ut ? je(b, Q < 0 ? Vt : $t) : je(b, Q < 0 ? Ft : Kt) : je(b, 0)), dt && (v(Ie), w.current.layout = Ie, F && F(Ie), ye(Ee, Ie, x.current));
1228
+ pivotIndices: Ue,
1229
+ prevLayout: oe,
1230
+ trigger: _t(b) ? "keyboard" : "mouse-or-touch"
1231
+ }), dt = !ke(oe, Ie);
1232
+ (kt(b) || Tt(b)) && D.current != Z && (D.current = Z, !dt && Z !== 0 ? ut ? je(S, Z < 0 ? Vt : $t) : je(S, Z < 0 ? Ft : Kt) : je(S, 0)), dt && (h(Ie), w.current.layout = Ie, K && K(Ie), ye(Ee, Ie, x.current));
1233
1233
  };
1234
- }, []), H = O((b, z) => {
1234
+ }, []), V = O((S, P) => {
1235
1235
  const {
1236
- onLayout: C
1237
- } = M.current, {
1238
- layout: d,
1239
- panelDataArray: g
1240
- } = w.current, P = g.map((ee) => ee.constraints), {
1241
- panelSize: _,
1242
- pivotIndices: q
1243
- } = de(g, b, d);
1244
- E(_ != null, `Panel size not found for panel "${b.id}"`);
1245
- const ie = ve(g, b) === g.length - 1 ? _ - z : z - _, F = Re({
1246
- delta: ie,
1247
- initialLayout: d,
1248
- panelConstraints: P,
1249
- pivotIndices: q,
1250
- prevLayout: d,
1236
+ onLayout: E
1237
+ } = k.current, {
1238
+ layout: z,
1239
+ panelDataArray: b
1240
+ } = w.current, C = b.map((oe) => oe.constraints), {
1241
+ panelSize: y,
1242
+ pivotIndices: M
1243
+ } = de(b, S, z);
1244
+ I(y != null, `Panel size not found for panel "${S.id}"`);
1245
+ const J = ve(b, S) === b.length - 1 ? y - P : P - y, K = De({
1246
+ delta: J,
1247
+ initialLayout: z,
1248
+ panelConstraints: C,
1249
+ pivotIndices: M,
1250
+ prevLayout: z,
1251
1251
  trigger: "imperative-api"
1252
1252
  });
1253
- _e(d, F) || (v(F), w.current.layout = F, C && C(F), ye(g, F, x.current));
1254
- }, []), X = O((b, z) => {
1253
+ ke(z, K) || (h(K), w.current.layout = K, E && E(K), ye(b, K, x.current));
1254
+ }, []), Y = O((S, P) => {
1255
1255
  const {
1256
- layout: C,
1257
- panelDataArray: d
1256
+ layout: E,
1257
+ panelDataArray: z
1258
1258
  } = w.current, {
1259
- collapsedSize: g = 0,
1260
- collapsible: P
1261
- } = z, {
1262
- collapsedSize: _ = 0,
1263
- collapsible: q,
1264
- maxSize: oe = 100,
1265
- minSize: ie = 0
1266
- } = b.constraints, {
1267
- panelSize: F
1268
- } = de(d, b, C);
1269
- F != null && (P && q && le(F, g) ? le(g, _) || H(b, _) : F < ie ? H(b, ie) : F > oe && H(b, oe));
1270
- }, [H]), G = O((b, z) => {
1259
+ collapsedSize: b = 0,
1260
+ collapsible: C
1261
+ } = P, {
1262
+ collapsedSize: y = 0,
1263
+ collapsible: M,
1264
+ maxSize: j = 100,
1265
+ minSize: J = 0
1266
+ } = S.constraints, {
1267
+ panelSize: K
1268
+ } = de(z, S, E);
1269
+ K != null && (C && M && le(K, b) ? le(b, y) || V(S, y) : K < J ? V(S, J) : K > j && V(S, j));
1270
+ }, [V]), W = O((S, P) => {
1271
1271
  const {
1272
- direction: C
1273
- } = M.current, {
1274
- layout: d
1272
+ direction: E
1273
+ } = k.current, {
1274
+ layout: z
1275
1275
  } = w.current;
1276
- if (!h.current)
1276
+ if (!m.current)
1277
1277
  return;
1278
- const g = qe(b, h.current);
1279
- E(g, `Drag handle element not found for id "${b}"`);
1280
- const P = Ut(C, z);
1281
- y({
1282
- dragHandleId: b,
1283
- dragHandleRect: g.getBoundingClientRect(),
1284
- initialCursorPosition: P,
1285
- initialLayout: d
1278
+ const b = Oe(S, m.current);
1279
+ I(b, `Drag handle element not found for id "${S}"`);
1280
+ const C = Ut(E, P);
1281
+ g({
1282
+ dragHandleId: S,
1283
+ dragHandleRect: b.getBoundingClientRect(),
1284
+ initialCursorPosition: C,
1285
+ initialLayout: z
1286
1286
  });
1287
- }, []), re = O(() => {
1288
- y(null);
1289
- }, []), he = O((b) => {
1287
+ }, []), ee = O(() => {
1288
+ g(null);
1289
+ }, []), he = O((S) => {
1290
1290
  const {
1291
- panelDataArray: z
1292
- } = w.current, C = ve(z, b);
1293
- C >= 0 && (z.splice(C, 1), delete x.current[b.id], w.current.panelDataArrayChanged = !0, D());
1294
- }, [D]), se = U(() => ({
1295
- collapsePanel: Y,
1291
+ panelDataArray: P
1292
+ } = w.current, E = ve(P, S);
1293
+ E >= 0 && (P.splice(E, 1), delete x.current[S.id], w.current.panelDataArrayChanged = !0, A());
1294
+ }, [A]), ne = G(() => ({
1295
+ collapsePanel: X,
1296
1296
  direction: r,
1297
- dragState: m,
1298
- expandPanel: j,
1299
- getPanelSize: V,
1300
- getPanelStyle: N,
1297
+ dragState: p,
1298
+ expandPanel: Q,
1299
+ getPanelSize: $,
1300
+ getPanelStyle: _,
1301
1301
  groupId: c,
1302
- isPanelCollapsed: L,
1303
- isPanelExpanded: W,
1304
- reevaluatePanelConstraints: X,
1305
- registerPanel: $,
1306
- registerResizeHandle: T,
1307
- resizePanel: H,
1308
- startDragging: G,
1309
- stopDragging: re,
1302
+ isPanelCollapsed: N,
1303
+ isPanelExpanded: U,
1304
+ reevaluatePanelConstraints: Y,
1305
+ registerPanel: F,
1306
+ registerResizeHandle: H,
1307
+ resizePanel: V,
1308
+ startDragging: W,
1309
+ stopDragging: ee,
1310
1310
  unregisterPanel: he,
1311
- panelGroupElement: h.current
1312
- }), [Y, m, r, j, V, N, c, L, W, X, $, T, H, G, re, he]), ae = {
1311
+ panelGroupElement: m.current
1312
+ }), [X, p, r, Q, $, _, c, N, U, Y, F, H, V, W, ee, he]), ue = {
1313
1313
  display: "flex",
1314
1314
  flexDirection: r === "horizontal" ? "row" : "column",
1315
1315
  height: "100%",
1316
1316
  overflow: "hidden",
1317
1317
  width: "100%"
1318
1318
  };
1319
- return xe(Fe.Provider, {
1320
- value: se
1321
- }, xe(p, {
1319
+ return xe(Ke.Provider, {
1320
+ value: ne
1321
+ }, xe(f, {
1322
1322
  ...u,
1323
1323
  children: t,
1324
1324
  className: n,
1325
1325
  id: o,
1326
- ref: h,
1326
+ ref: m,
1327
1327
  style: {
1328
- ...ae,
1329
- ...f
1328
+ ...ue,
1329
+ ...d
1330
1330
  },
1331
1331
  // CSS selectors
1332
- [K.group]: "",
1333
- [K.groupDirection]: r,
1334
- [K.groupId]: c
1332
+ [B.group]: "",
1333
+ [B.groupDirection]: r,
1334
+ [B.groupId]: c
1335
1335
  }));
1336
1336
  }
1337
- const Er = $e((e, t) => xe(jt, {
1337
+ const Er = Fe((e, t) => xe(jt, {
1338
1338
  ...e,
1339
1339
  forwardedRef: t
1340
1340
  }));
@@ -1357,10 +1357,10 @@ function Ir({
1357
1357
  resizeHandler: n,
1358
1358
  panelGroupElement: r
1359
1359
  }) {
1360
- Z(() => {
1360
+ re(() => {
1361
1361
  if (e || n == null || r == null)
1362
1362
  return;
1363
- const i = qe(t, r);
1363
+ const i = Oe(t, r);
1364
1364
  if (i == null)
1365
1365
  return;
1366
1366
  const o = (s) => {
@@ -1377,12 +1377,12 @@ function Ir({
1377
1377
  }
1378
1378
  case "F6": {
1379
1379
  s.preventDefault();
1380
- const l = i.getAttribute(K.groupId);
1381
- E(l, `No group element found for id "${l}"`);
1382
- const a = Me(l, r), f = qt(l, t, r);
1383
- E(f !== null, `No resize element found for id "${t}"`);
1384
- const p = s.shiftKey ? f > 0 ? f - 1 : a.length - 1 : f + 1 < a.length ? f + 1 : 0;
1385
- a[p].focus();
1380
+ const l = i.getAttribute(B.groupId);
1381
+ I(l, `No group element found for id "${l}"`);
1382
+ const a = Le(l, r), d = qt(l, t, r);
1383
+ I(d !== null, `No resize element found for id "${t}"`);
1384
+ const f = s.shiftKey ? d > 0 ? d - 1 : a.length - 1 : d + 1 < a.length ? d + 1 : 0;
1385
+ a[f].focus();
1386
1386
  break;
1387
1387
  }
1388
1388
  }
@@ -1402,107 +1402,107 @@ function Rr({
1402
1402
  onClick: s,
1403
1403
  onDragging: l,
1404
1404
  onFocus: a,
1405
- onPointerDown: f,
1406
- onPointerUp: p,
1405
+ onPointerDown: d,
1406
+ onPointerUp: f,
1407
1407
  style: u = {},
1408
1408
  tabIndex: c = 0,
1409
- tagName: h = "div",
1410
- ...m
1409
+ tagName: m = "div",
1410
+ ...p
1411
1411
  }) {
1412
- var y, S;
1413
- const v = B(null), D = B({
1412
+ var g, v;
1413
+ const h = q(null), A = q({
1414
1414
  onClick: s,
1415
1415
  onDragging: l,
1416
- onPointerDown: f,
1417
- onPointerUp: p
1416
+ onPointerDown: d,
1417
+ onPointerUp: f
1418
1418
  });
1419
- Z(() => {
1420
- D.current.onClick = s, D.current.onDragging = l, D.current.onPointerDown = f, D.current.onPointerUp = p;
1419
+ re(() => {
1420
+ A.current.onClick = s, A.current.onDragging = l, A.current.onPointerDown = d, A.current.onPointerUp = f;
1421
1421
  });
1422
- const x = rt(Fe);
1422
+ const x = rt(Ke);
1423
1423
  if (x === null)
1424
1424
  throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");
1425
1425
  const {
1426
- direction: I,
1427
- groupId: R,
1428
- registerResizeHandle: M,
1426
+ direction: R,
1427
+ groupId: D,
1428
+ registerResizeHandle: k,
1429
1429
  startDragging: w,
1430
- stopDragging: Y,
1431
- panelGroupElement: j
1432
- } = x, V = st(i), [N, L] = ue("inactive"), [W, $] = ue(!1), [T, H] = ue(null), X = B({
1433
- state: N
1430
+ stopDragging: X,
1431
+ panelGroupElement: Q
1432
+ } = x, $ = st(i), [_, N] = ce("inactive"), [U, F] = ce(!1), [H, V] = ce(null), Y = q({
1433
+ state: _
1434
1434
  });
1435
1435
  me(() => {
1436
- X.current.state = N;
1437
- }), Z(() => {
1436
+ Y.current.state = _;
1437
+ }), re(() => {
1438
1438
  if (n)
1439
- H(null);
1439
+ V(null);
1440
1440
  else {
1441
- const se = M(V);
1442
- H(() => se);
1441
+ const ne = k($);
1442
+ V(() => ne);
1443
1443
  }
1444
- }, [n, V, M]);
1445
- const G = (y = r == null ? void 0 : r.coarse) !== null && y !== void 0 ? y : 15, re = (S = r == null ? void 0 : r.fine) !== null && S !== void 0 ? S : 5;
1446
- return Z(() => {
1447
- if (n || T == null)
1444
+ }, [n, $, k]);
1445
+ const W = (g = r == null ? void 0 : r.coarse) !== null && g !== void 0 ? g : 15, ee = (v = r == null ? void 0 : r.fine) !== null && v !== void 0 ? v : 5;
1446
+ return re(() => {
1447
+ if (n || H == null)
1448
1448
  return;
1449
- const se = v.current;
1450
- E(se, "Element ref not attached");
1451
- let ae = !1;
1452
- return dr(V, se, I, {
1453
- coarse: G,
1454
- fine: re
1455
- }, (z, C, d) => {
1456
- if (!C) {
1457
- L("inactive");
1449
+ const ne = h.current;
1450
+ I(ne, "Element ref not attached");
1451
+ let ue = !1;
1452
+ return dr($, ne, R, {
1453
+ coarse: W,
1454
+ fine: ee
1455
+ }, (P, E, z) => {
1456
+ if (!E) {
1457
+ N("inactive");
1458
1458
  return;
1459
1459
  }
1460
- switch (z) {
1460
+ switch (P) {
1461
1461
  case "down": {
1462
- L("drag"), ae = !1, E(d, 'Expected event to be defined for "down" action'), w(V, d);
1462
+ N("drag"), ue = !1, I(z, 'Expected event to be defined for "down" action'), w($, z);
1463
1463
  const {
1464
- onDragging: g,
1465
- onPointerDown: P
1466
- } = D.current;
1467
- g == null || g(!0), P == null || P();
1464
+ onDragging: b,
1465
+ onPointerDown: C
1466
+ } = A.current;
1467
+ b == null || b(!0), C == null || C();
1468
1468
  break;
1469
1469
  }
1470
1470
  case "move": {
1471
1471
  const {
1472
- state: g
1473
- } = X.current;
1474
- ae = !0, g !== "drag" && L("hover"), E(d, 'Expected event to be defined for "move" action'), T(d);
1472
+ state: b
1473
+ } = Y.current;
1474
+ ue = !0, b !== "drag" && N("hover"), I(z, 'Expected event to be defined for "move" action'), H(z);
1475
1475
  break;
1476
1476
  }
1477
1477
  case "up": {
1478
- L("hover"), Y();
1478
+ N("hover"), X();
1479
1479
  const {
1480
- onClick: g,
1481
- onDragging: P,
1482
- onPointerUp: _
1483
- } = D.current;
1484
- P == null || P(!1), _ == null || _(), ae || g == null || g();
1480
+ onClick: b,
1481
+ onDragging: C,
1482
+ onPointerUp: y
1483
+ } = A.current;
1484
+ C == null || C(!1), y == null || y(), ue || b == null || b();
1485
1485
  break;
1486
1486
  }
1487
1487
  }
1488
1488
  });
1489
- }, [G, I, n, re, M, V, T, w, Y]), Ir({
1489
+ }, [W, R, n, ee, k, $, H, w, X]), Ir({
1490
1490
  disabled: n,
1491
- handleId: V,
1492
- resizeHandler: T,
1493
- panelGroupElement: j
1494
- }), xe(h, {
1495
- ...m,
1491
+ handleId: $,
1492
+ resizeHandler: H,
1493
+ panelGroupElement: Q
1494
+ }), xe(m, {
1495
+ ...p,
1496
1496
  children: e,
1497
1497
  className: t,
1498
1498
  id: i,
1499
1499
  onBlur: () => {
1500
- $(!1), o == null || o();
1500
+ F(!1), o == null || o();
1501
1501
  },
1502
1502
  onFocus: () => {
1503
- $(!0), a == null || a();
1503
+ F(!0), a == null || a();
1504
1504
  },
1505
- ref: v,
1505
+ ref: h,
1506
1506
  role: "separator",
1507
1507
  style: {
1508
1508
  ...{
@@ -1513,48 +1513,48 @@ function Rr({
1513
1513
  },
1514
1514
  tabIndex: c,
1515
1515
  // CSS selectors
1516
- [K.groupDirection]: I,
1517
- [K.groupId]: R,
1518
- [K.resizeHandle]: "",
1519
- [K.resizeHandleActive]: N === "drag" ? "pointer" : W ? "keyboard" : void 0,
1520
- [K.resizeHandleEnabled]: !n,
1521
- [K.resizeHandleId]: V,
1522
- [K.resizeHandleState]: N
1516
+ [B.groupDirection]: R,
1517
+ [B.groupId]: D,
1518
+ [B.resizeHandle]: "",
1519
+ [B.resizeHandleActive]: _ === "drag" ? "pointer" : U ? "keyboard" : void 0,
1520
+ [B.resizeHandleEnabled]: !n,
1521
+ [B.resizeHandleId]: $,
1522
+ [B.resizeHandleState]: _
1523
1523
  });
1524
1524
  }
1525
1525
  Rr.displayName = "PanelResizeHandle";
1526
1526
  function Qt() {
1527
- var a, f;
1528
- const e = te((p) => p.card), t = te((p) => p.frame), n = U(
1529
- () => Xn(t, e),
1527
+ var a, d;
1528
+ const e = ie((f) => f.card), t = ie((f) => f.frame), n = G(
1529
+ () => Yn(t, e),
1530
1530
  [t, e]
1531
1531
  ), { manifest: r } = Pt(
1532
1532
  ((a = n == null ? void 0 : n.customCardPreferences) == null ? void 0 : a.url) || ""
1533
- ), i = U(
1533
+ ), i = G(
1534
1534
  () => {
1535
- var p;
1536
- return (p = r == null ? void 0 : r.visuals) == null ? void 0 : p.find(
1535
+ var f;
1536
+ return (f = r == null ? void 0 : r.visuals) == null ? void 0 : f.find(
1537
1537
  (u) => {
1538
1538
  var c;
1539
1539
  return u.name === ((c = n == null ? void 0 : n.customCardPreferences) == null ? void 0 : c.componentName);
1540
1540
  }
1541
1541
  );
1542
1542
  },
1543
- [r, (f = n == null ? void 0 : n.customCardPreferences) == null ? void 0 : f.componentName]
1544
- ), o = Nt(n, i), s = U(
1545
- () => Mt({
1543
+ [r, (d = n == null ? void 0 : n.customCardPreferences) == null ? void 0 : d.componentName]
1544
+ ), o = Mt(n, i), s = G(
1545
+ () => Nt({
1546
1546
  frame: t,
1547
1547
  configCard: n,
1548
1548
  isMultiInputVisual: o === "multiple"
1549
1549
  }),
1550
1550
  [t, n, o]
1551
- ), l = U(() => {
1552
- const p = s.findIndex(
1551
+ ), l = G(() => {
1552
+ const f = s.findIndex(
1553
1553
  (u) => (u == null ? void 0 : u.id) === e.id
1554
1554
  );
1555
- return p < 0 ? -1 : Je(e, p);
1555
+ return f < 0 ? -1 : Je(e, f);
1556
1556
  }, [s, e]);
1557
- return U(() => !n || o !== "multiple" || l < 0 ? e.type : ke(
1557
+ return G(() => !n || o !== "multiple" || l < 0 ? e.type : Te(
1558
1558
  e,
1559
1559
  l,
1560
1560
  i == null ? void 0 : i.slots
@@ -1566,74 +1566,74 @@ function Jt({
1566
1566
  onStoreUpdate: n,
1567
1567
  delay: r = 300
1568
1568
  }) {
1569
- const [i, o] = ue(e ?? t), s = B(null), l = B(i), a = B(e), f = B(!1), p = O(() => {
1570
- s.current && (clearTimeout(s.current), s.current = null), f.current && l.current !== (a.current ?? t) && (n(l.current), a.current = l.current);
1569
+ const [i, o] = ce(e ?? t), s = q(null), l = q(i), a = q(e), d = q(!1), f = O(() => {
1570
+ s.current && (clearTimeout(s.current), s.current = null), d.current && l.current !== (a.current ?? t) && (n(l.current), a.current = l.current);
1571
1571
  }, [t, n]);
1572
- Z(() => {
1572
+ re(() => {
1573
1573
  if (e !== a.current) {
1574
1574
  s.current && (clearTimeout(s.current), s.current = null);
1575
1575
  const c = e ?? t;
1576
- o(c), l.current = c, a.current = e, f.current = !1;
1576
+ o(c), l.current = c, a.current = e, d.current = !1;
1577
1577
  }
1578
- }, [e, t]), Z(() => {
1579
- if (f.current)
1578
+ }, [e, t]), re(() => {
1579
+ if (d.current)
1580
1580
  return s.current = setTimeout(() => {
1581
- p();
1581
+ f();
1582
1582
  }, r), () => {
1583
1583
  s.current && (clearTimeout(s.current), s.current = null);
1584
1584
  };
1585
- }, [r, p, i]), Z(() => () => {
1585
+ }, [r, f, i]), re(() => () => {
1586
1586
  s.current && clearTimeout(s.current);
1587
1587
  }, []);
1588
1588
  const u = O(
1589
1589
  (c) => {
1590
- const h = c ?? t;
1591
- f.current = !0, l.current = h, o(h);
1590
+ const m = c ?? t;
1591
+ d.current = !0, l.current = m, o(m);
1592
1592
  },
1593
1593
  [t]
1594
1594
  );
1595
- return { value: i, onChange: u, flush: p };
1595
+ return { value: i, onChange: u, flush: f };
1596
1596
  }
1597
1597
  function Zt({
1598
1598
  queryClient: e,
1599
1599
  readQueryKey: t,
1600
1600
  setRunSql: n
1601
1601
  }) {
1602
- Gn(), setTimeout(() => {
1602
+ Un(), setTimeout(() => {
1603
1603
  e.resetQueries({ queryKey: t(), exact: !0 }), n(!0);
1604
1604
  }, 0);
1605
1605
  }
1606
1606
  const Dr = 300;
1607
1607
  function Ar({ className: e }, t) {
1608
- const n = te((x) => x.card.sql), r = te((x) => x.sqlGen), i = te((x) => x.card), o = Qt(), { setCardSql: s, setSqlGen: l, setRunSql: a } = wt(), f = U(() => o !== i.type ? { ...i, type: o } : i, [i, o]), { queryKey: p } = ot(f), u = Ct(), c = B(p);
1609
- c.current = p;
1610
- const h = B(r);
1611
- h.current = r;
1612
- const m = O(
1608
+ const n = ie((x) => x.card.sql), r = ie((x) => x.sqlGen), i = ie((x) => x.card), o = Qt(), { setCardSql: s, setSqlGen: l, setRunSql: a } = wt(), d = G(() => o !== i.type ? { ...i, type: o } : i, [i, o]), { queryKey: f } = ot(d), u = Ct(), c = q(f);
1609
+ c.current = f;
1610
+ const m = q(r);
1611
+ m.current = r;
1612
+ const p = O(
1613
1613
  (x) => {
1614
1614
  s(x);
1615
1615
  },
1616
1616
  [s]
1617
1617
  ), {
1618
- value: y,
1619
- onChange: S,
1620
- flush: v
1618
+ value: g,
1619
+ onChange: v,
1620
+ flush: h
1621
1621
  } = Jt({
1622
1622
  storeValue: n,
1623
1623
  defaultValue: "",
1624
- onStoreUpdate: m,
1624
+ onStoreUpdate: p,
1625
1625
  delay: Dr
1626
1626
  });
1627
- Z(() => At(v), [v]);
1628
- function D(x) {
1629
- S(x), Un(h.current) || l({});
1627
+ re(() => At(h), [h]);
1628
+ function A(x) {
1629
+ v(x), Wn(m.current) || l({});
1630
1630
  }
1631
- return /* @__PURE__ */ A("div", { className: "relative h-full w-full", children: /* @__PURE__ */ A(
1631
+ return /* @__PURE__ */ L("div", { className: "relative h-full w-full", children: /* @__PURE__ */ L(
1632
1632
  Et,
1633
1633
  {
1634
1634
  ref: t,
1635
- value: y ?? "",
1636
- onValueChange: D,
1635
+ value: g ?? "",
1636
+ onValueChange: A,
1637
1637
  language: "sql-jinja",
1638
1638
  embedded: !0,
1639
1639
  hideLineNumbers: !0,
@@ -1650,26 +1650,26 @@ function Ar({ className: e }, t) {
1650
1650
  }
1651
1651
  ) });
1652
1652
  }
1653
- const Co = $e(Ar), Nr = 300, Mr = `# 'data' holds the SQL result.
1653
+ const Co = Fe(Ar), Mr = 300, Nr = `# 'data' holds the SQL result.
1654
1654
  # Set 'result' to a list of dicts to replace it, for example:
1655
1655
  # import pandas as pd
1656
1656
  # result = pd.DataFrame(data).to_dict('records')`;
1657
1657
  function Lr({ className: e }, t) {
1658
- const n = te((m) => m.card.python), r = te((m) => m.card), i = Qt(), { setCardPython: o, setRunSql: s } = wt(), l = U(() => i !== r.type ? { ...r, type: i } : r, [r, i]), { queryKey: a } = ot(l), f = Ct(), p = B(a);
1659
- p.current = a;
1660
- const { value: u, onChange: c, flush: h } = Jt({
1658
+ const n = ie((p) => p.card.python), r = ie((p) => p.card), i = Qt(), { setCardPython: o, setRunSql: s } = wt(), l = G(() => i !== r.type ? { ...r, type: i } : r, [r, i]), { queryKey: a } = ot(l), d = Ct(), f = q(a);
1659
+ f.current = a;
1660
+ const { value: u, onChange: c, flush: m } = Jt({
1661
1661
  storeValue: n,
1662
1662
  onStoreUpdate: o,
1663
- delay: Nr
1663
+ delay: Mr
1664
1664
  });
1665
- return Z(() => At(h), [h]), /* @__PURE__ */ A(
1665
+ return re(() => At(m), [m]), /* @__PURE__ */ L(
1666
1666
  Et,
1667
1667
  {
1668
1668
  ref: t,
1669
1669
  value: u ?? "",
1670
1670
  onValueChange: c,
1671
1671
  language: "python",
1672
- placeholder: Mr,
1672
+ placeholder: Nr,
1673
1673
  ariaLabel: "Python code",
1674
1674
  embedded: !0,
1675
1675
  hideLineNumbers: !0,
@@ -1678,52 +1678,52 @@ function Lr({ className: e }, t) {
1678
1678
  "[&_.code-editor-pre]:!pt-2 [&_.code-editor-textarea]:!pt-2",
1679
1679
  e
1680
1680
  ),
1681
- onKeyDown: (m) => {
1682
- m.key === "Enter" && m.shiftKey && (m.preventDefault(), Zt({
1683
- queryClient: f,
1684
- readQueryKey: () => p.current,
1681
+ onKeyDown: (p) => {
1682
+ p.key === "Enter" && p.shiftKey && (p.preventDefault(), Zt({
1683
+ queryClient: d,
1684
+ readQueryKey: () => f.current,
1685
1685
  setRunSql: s
1686
1686
  }));
1687
1687
  }
1688
1688
  }
1689
1689
  );
1690
1690
  }
1691
- const Eo = $e(Lr);
1691
+ const Eo = Fe(Lr);
1692
1692
  function _r({ card: e }) {
1693
- var se, ae, b, z, C;
1694
- const t = Rn(), [n, r] = ue({}), { authToken: i } = Dn(), o = Wn(i == null ? void 0 : i.accessToken), { compiledAppearance: s } = Jn(), l = U(
1693
+ var P, E, z, b, C;
1694
+ const t = Rn(), [n, r] = ce({}), { authToken: i } = Dn(), o = Xn(i == null ? void 0 : i.accessToken), { compiledAppearance: s } = Jn(), l = G(
1695
1695
  () => An(s),
1696
1696
  [s]
1697
- ), a = te((d) => d.frame), f = te(
1698
- (d) => d.inlineFilterValuesMap[e.id]
1699
- ), p = te(
1700
- (d) => d.actions.setCardInlineFilterValue
1701
- ), u = te(
1702
- (d) => d.actions.removeCardInlineFilterValue
1703
- ), c = e, { getCard: h, manifest: m } = Pt(
1704
- ((se = c.customCardPreferences) == null ? void 0 : se.url) || ""
1705
- ), y = (ae = m == null ? void 0 : m.visuals) == null ? void 0 : ae.find(
1706
- (d) => {
1707
- var g;
1708
- return d.name === ((g = c.customCardPreferences) == null ? void 0 : g.componentName);
1697
+ ), a = ie((y) => y.frame), d = ie(
1698
+ (y) => y.inlineFilterValuesMap[e.id]
1699
+ ), f = ie(
1700
+ (y) => y.actions.setCardInlineFilterValue
1701
+ ), u = ie(
1702
+ (y) => y.actions.removeCardInlineFilterValue
1703
+ ), c = e, { getCard: m, manifest: p } = Pt(
1704
+ ((P = c.customCardPreferences) == null ? void 0 : P.url) || ""
1705
+ ), g = (E = p == null ? void 0 : p.visuals) == null ? void 0 : E.find(
1706
+ (y) => {
1707
+ var M;
1708
+ return y.name === ((M = c.customCardPreferences) == null ? void 0 : M.componentName);
1709
1709
  }
1710
- ), S = Nt(c, y) ?? "single", v = U(
1711
- () => Mt({
1710
+ ), v = Mt(c, g) ?? "single", h = G(
1711
+ () => Nt({
1712
1712
  frame: a,
1713
1713
  configCard: c,
1714
- isMultiInputVisual: S === "multiple"
1714
+ isMultiInputVisual: v === "multiple"
1715
1715
  }),
1716
- [a, c, S]
1717
- ), D = U(() => {
1718
- const d = v.findIndex(
1719
- (g) => (g == null ? void 0 : g.id) === e.id
1716
+ [a, c, v]
1717
+ ), A = G(() => {
1718
+ const y = h.findIndex(
1719
+ (M) => (M == null ? void 0 : M.id) === e.id
1720
1720
  );
1721
- return d < 0 ? -1 : Je(e, d);
1722
- }, [v, e]), x = U(() => S !== "multiple" || D < 0 ? e.type : ke(
1721
+ return y < 0 ? -1 : Je(e, y);
1722
+ }, [h, e]), x = G(() => v !== "multiple" || A < 0 ? e.type : Te(
1723
1723
  e,
1724
- D,
1725
- y == null ? void 0 : y.slots
1726
- ) ?? e.type, [S, D, e, y == null ? void 0 : y.slots]), I = U(() => S === "multiple" ? {
1724
+ A,
1725
+ g == null ? void 0 : g.slots
1726
+ ) ?? e.type, [v, A, e, g == null ? void 0 : g.slots]), R = G(() => v === "multiple" ? {
1727
1727
  ...e,
1728
1728
  connectionId: void 0,
1729
1729
  dataSource: void 0,
@@ -1731,153 +1731,172 @@ function _r({ card: e }) {
1731
1731
  python: "",
1732
1732
  config: void 0,
1733
1733
  queryConfig: void 0
1734
- } : x !== e.type ? { ...e, type: x } : e, [e, x, S]), { data: R, effectiveCardConfig: M } = ot(I), w = Nn(), Y = Ue((d) => d.dashboard.filters), j = Ue((d) => d.filterValues), V = Ue((d) => d.selectedSheetId), N = U(
1735
- () => Mn({
1734
+ } : x !== e.type ? { ...e, type: x } : e, [e, x, v]), { data: D, effectiveCardConfig: k } = ot(R), w = Mn(), X = Re((y) => y.dashboard), Q = Re(
1735
+ (y) => y.dashboardInputValues
1736
+ ), $ = Re(
1737
+ (y) => y.adHocFilterValues
1738
+ ), _ = Re(
1739
+ (y) => {
1740
+ var M;
1741
+ return ((M = y.reportContext) == null ? void 0 : M.calendar) ?? null;
1742
+ }
1743
+ ), N = Re((y) => y.selectedSheetId), U = G(
1744
+ () => Nn({
1736
1745
  card: e,
1737
- sheetId: V || "",
1738
- inlineFilterValues: f,
1739
- setInlineFilterValue: (d) => p(e.id, d),
1740
- removeInlineFilterValue: (d) => u(e.id, d)
1746
+ sheetId: N || "",
1747
+ inlineFilterValues: d,
1748
+ setInlineFilterValue: (y) => f(e.id, y),
1749
+ removeInlineFilterValue: (y) => u(e.id, y)
1741
1750
  }),
1742
1751
  [
1743
1752
  e,
1744
- V,
1753
+ N,
1754
+ d,
1745
1755
  f,
1746
- p,
1747
1756
  u
1748
1757
  ]
1749
- ), { cardFilters: L, cardFilterValues: W } = U(
1750
- () => Yn({
1758
+ ), {
1759
+ filterInputs: F,
1760
+ filters: H,
1761
+ filterValues: V
1762
+ } = G(
1763
+ () => Ln({
1764
+ dashboard: X,
1751
1765
  card: e,
1766
+ sheetId: N,
1767
+ dashboardInputValues: Q,
1768
+ adHocFilterValues: $,
1752
1769
  transientContexts: w,
1753
- filters: Y,
1754
- filterValues: j,
1755
- selectedSheetId: V
1770
+ calendar: _
1756
1771
  }),
1757
1772
  [
1773
+ $,
1758
1774
  e,
1759
- w,
1760
- Y,
1761
- j,
1762
- V
1775
+ Q,
1776
+ _,
1777
+ X,
1778
+ N,
1779
+ w
1763
1780
  ]
1764
- ), $ = O(
1765
- (d, g) => {
1766
- const P = jn(g);
1767
- r((_) => ({
1768
- ..._,
1769
- [d]: P
1781
+ ), Y = O(
1782
+ (y, M) => {
1783
+ const j = jn(M);
1784
+ r((J) => ({
1785
+ ...J,
1786
+ [y]: j
1770
1787
  }));
1771
1788
  },
1772
1789
  []
1773
- ), T = (b = c.customCardPreferences) == null ? void 0 : b.componentName, H = T ? h(T) : null, X = Ln(
1774
- (z = c.customCardPreferences) == null ? void 0 : z.settings,
1790
+ ), W = (z = c.customCardPreferences) == null ? void 0 : z.componentName, ee = W ? m(W) : null, he = _n(
1791
+ (b = c.customCardPreferences) == null ? void 0 : b.settings,
1775
1792
  c
1776
- ), G = U(
1777
- () => Qn(v),
1778
- [v]
1779
- ), re = U(
1780
- () => G.map(
1781
- (d, g) => ke(
1782
- d,
1783
- g,
1784
- y == null ? void 0 : y.slots
1793
+ ), ne = G(
1794
+ () => Qn(h),
1795
+ [h]
1796
+ ), ue = G(
1797
+ () => ne.map(
1798
+ (y, M) => Te(
1799
+ y,
1800
+ M,
1801
+ g == null ? void 0 : g.slots
1785
1802
  )
1786
1803
  ),
1787
- [G, y == null ? void 0 : y.slots]
1788
- ), he = U(
1789
- () => _n(
1790
- S === "multiple" ? kn({
1791
- slotOrderedCards: G,
1804
+ [ne, g == null ? void 0 : g.slots]
1805
+ ), S = G(
1806
+ () => kn(
1807
+ v === "multiple" ? Tn({
1808
+ slotOrderedCards: ne,
1792
1809
  multiInputData: n,
1793
1810
  valueFormatPreferences: t
1794
1811
  }) : [
1795
1812
  {
1796
1813
  card: e,
1797
- cardConfig: M,
1798
- columns: R == null ? void 0 : R.columns,
1799
- columnKeyMap: R == null ? void 0 : R.columnKeyMap,
1814
+ cardConfig: k,
1815
+ columns: D == null ? void 0 : D.columns,
1816
+ columnKeyMap: D == null ? void 0 : D.columnKeyMap,
1800
1817
  valueFormatPreferences: t
1801
1818
  }
1802
1819
  ]
1803
1820
  ),
1804
1821
  [
1805
1822
  e,
1806
- R == null ? void 0 : R.columnKeyMap,
1807
- R == null ? void 0 : R.columns,
1808
- M,
1823
+ D == null ? void 0 : D.columnKeyMap,
1824
+ D == null ? void 0 : D.columns,
1825
+ k,
1809
1826
  n,
1810
- G,
1811
- S,
1827
+ ne,
1828
+ v,
1812
1829
  t
1813
1830
  ]
1814
1831
  );
1815
- return T ? /* @__PURE__ */ A("div", { className: "semaphor-custom mb-3 flex grow basis-0 flex-col space-y-2 overflow-y-auto", children: /* @__PURE__ */ Ae(
1832
+ return W ? /* @__PURE__ */ L("div", { className: "semaphor-custom mb-3 flex grow basis-0 flex-col space-y-2 overflow-y-auto", children: /* @__PURE__ */ Me(
1816
1833
  Cn,
1817
1834
  {
1818
- fallback: /* @__PURE__ */ A(ft, {}),
1835
+ fallback: /* @__PURE__ */ L(ft, {}),
1819
1836
  children: [
1820
- H && S === "single" && /* @__PURE__ */ A(
1821
- H,
1837
+ ee && v === "single" && /* @__PURE__ */ L(
1838
+ ee,
1822
1839
  {
1823
1840
  editing: !0,
1824
1841
  params: o,
1825
1842
  theme: l,
1826
- settings: X,
1827
- cardMetadata: Tn({
1843
+ settings: he,
1844
+ cardMetadata: Hn({
1828
1845
  card: e,
1829
- dataMetadata: R == null ? void 0 : R.metadata
1846
+ dataMetadata: D == null ? void 0 : D.metadata
1830
1847
  }),
1831
- onDataChange: $,
1832
- data: (R == null ? void 0 : R.records) || [],
1833
- columns: (R == null ? void 0 : R.columns) || [],
1834
- formatTemporalBucketValue: he,
1835
- filters: L,
1848
+ onDataChange: Y,
1849
+ data: (D == null ? void 0 : D.records) || [],
1850
+ columns: (D == null ? void 0 : D.columns) || [],
1851
+ formatTemporalBucketValue: S,
1852
+ filterInputs: F,
1853
+ filters: H,
1836
1854
  filterValues: [
1837
- ...W || [],
1838
- ...f || []
1855
+ ...V || [],
1856
+ ...d || []
1839
1857
  ],
1840
- inlineFilters: N
1858
+ inlineFilters: U
1841
1859
  }
1842
1860
  ),
1843
- H && S === "multiple" && /* @__PURE__ */ Ae(ft, { children: [
1844
- v.map((d, g) => {
1845
- if (!d) return null;
1846
- const P = Je(d, g), _ = ke(
1847
- d,
1848
- P,
1849
- y == null ? void 0 : y.slots
1861
+ ee && v === "multiple" && /* @__PURE__ */ Me(ft, { children: [
1862
+ h.map((y, M) => {
1863
+ if (!y) return null;
1864
+ const j = Je(y, M), J = Te(
1865
+ y,
1866
+ j,
1867
+ g == null ? void 0 : g.slots
1850
1868
  );
1851
- return /* @__PURE__ */ A(
1852
- Hn,
1869
+ return /* @__PURE__ */ L(
1870
+ Vn,
1853
1871
  {
1854
- onDataChange: $,
1855
- card: d,
1856
- effectiveCardType: _
1872
+ onDataChange: Y,
1873
+ card: y,
1874
+ effectiveCardType: J
1857
1875
  },
1858
- `${d.id}-${P}`
1876
+ `${y.id}-${j}`
1859
1877
  );
1860
1878
  }),
1861
- /* @__PURE__ */ A("div", { className: "flex flex-col gap-2", children: /* @__PURE__ */ A(
1862
- H,
1879
+ /* @__PURE__ */ L("div", { className: "flex flex-col gap-2", children: /* @__PURE__ */ L(
1880
+ ee,
1863
1881
  {
1864
1882
  editing: !0,
1865
- onDataChange: $,
1866
- ...Vn({
1883
+ onDataChange: Y,
1884
+ ...$n({
1867
1885
  configCard: c,
1868
- slotOrderedCards: G,
1869
- slotTypes: re,
1886
+ slotOrderedCards: ne,
1887
+ slotTypes: ue,
1870
1888
  multiInputData: n,
1871
1889
  params: o,
1872
1890
  theme: l,
1873
- chartSettings: X,
1874
- filters: L,
1891
+ chartSettings: he,
1892
+ filterInputs: F,
1893
+ filters: H,
1875
1894
  filterValues: [
1876
- ...W || [],
1877
- ...f || []
1895
+ ...V || [],
1896
+ ...d || []
1878
1897
  ],
1879
- inlineFilters: N,
1880
- formatTemporalBucketValue: he
1898
+ inlineFilters: U,
1899
+ formatTemporalBucketValue: S
1881
1900
  })
1882
1901
  }
1883
1902
  ) })
@@ -1888,14 +1907,14 @@ function _r({ card: e }) {
1888
1907
  ) }) : null;
1889
1908
  }
1890
1909
  const Io = wn(_r);
1891
- var en = "Toggle", tn = k.forwardRef((e, t) => {
1910
+ var en = "Toggle", tn = T.forwardRef((e, t) => {
1892
1911
  const { pressed: n, defaultPressed: r, onPressedChange: i, ...o } = e, [s, l] = It({
1893
1912
  prop: n,
1894
1913
  onChange: i,
1895
1914
  defaultProp: r ?? !1,
1896
1915
  caller: en
1897
1916
  });
1898
- return /* @__PURE__ */ A(
1917
+ return /* @__PURE__ */ L(
1899
1918
  ze.button,
1900
1919
  {
1901
1920
  type: "button",
@@ -1931,7 +1950,7 @@ const kr = Rt(
1931
1950
  size: "default"
1932
1951
  }
1933
1952
  }
1934
- ), Tr = k.forwardRef(({ className: e, variant: t, size: n, ...r }, i) => /* @__PURE__ */ A(
1953
+ ), Tr = T.forwardRef(({ className: e, variant: t, size: n, ...r }, i) => /* @__PURE__ */ L(
1935
1954
  nn,
1936
1955
  {
1937
1956
  ref: i,
@@ -1953,7 +1972,7 @@ const Hr = Rt(
1953
1972
  variant: "default"
1954
1973
  }
1955
1974
  }
1956
- ), Vr = k.forwardRef(({ className: e, variant: t, ...n }, r) => /* @__PURE__ */ A(
1975
+ ), Vr = T.forwardRef(({ className: e, variant: t, ...n }, r) => /* @__PURE__ */ L(
1957
1976
  "div",
1958
1977
  {
1959
1978
  ref: r,
@@ -1963,7 +1982,7 @@ const Hr = Rt(
1963
1982
  }
1964
1983
  ));
1965
1984
  Vr.displayName = "Alert";
1966
- const $r = k.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ A(
1985
+ const $r = T.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ L(
1967
1986
  "h5",
1968
1987
  {
1969
1988
  ref: n,
@@ -1972,7 +1991,7 @@ const $r = k.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ A(
1972
1991
  }
1973
1992
  ));
1974
1993
  $r.displayName = "AlertTitle";
1975
- const Fr = k.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ A(
1994
+ const Fr = T.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ L(
1976
1995
  "div",
1977
1996
  {
1978
1997
  ref: n,
@@ -1986,9 +2005,9 @@ var rn = ["PageUp", "PageDown"], on = ["ArrowUp", "ArrowDown", "ArrowLeft", "Arr
1986
2005
  "from-right": ["Home", "PageDown", "ArrowDown", "ArrowRight"],
1987
2006
  "from-bottom": ["Home", "PageDown", "ArrowDown", "ArrowLeft"],
1988
2007
  "from-top": ["Home", "PageDown", "ArrowUp", "ArrowLeft"]
1989
- }, Ce = "Slider", [et, Kr, Br] = Kn(Ce), [ln] = Fn(Ce, [
2008
+ }, Ce = "Slider", [et, Kr, Br] = Bn(Ce), [ln] = Kn(Ce, [
1990
2009
  Br
1991
- ]), [qr, Oe] = ln(Ce), an = k.forwardRef(
2010
+ ]), [qr, Ge] = ln(Ce), an = T.forwardRef(
1992
2011
  (e, t) => {
1993
2012
  const {
1994
2013
  name: n,
@@ -1998,47 +2017,47 @@ var rn = ["PageUp", "PageDown"], on = ["ArrowUp", "ArrowDown", "ArrowLeft", "Arr
1998
2017
  orientation: s = "horizontal",
1999
2018
  disabled: l = !1,
2000
2019
  minStepsBetweenThumbs: a = 0,
2001
- defaultValue: f = [r],
2002
- value: p,
2020
+ defaultValue: d = [r],
2021
+ value: f,
2003
2022
  onValueChange: u = () => {
2004
2023
  },
2005
2024
  onValueCommit: c = () => {
2006
2025
  },
2007
- inverted: h = !1,
2008
- form: m,
2009
- ...y
2010
- } = e, S = k.useRef(/* @__PURE__ */ new Set()), v = k.useRef(0), x = s === "horizontal" ? Or : Gr, [I = [], R] = It({
2011
- prop: p,
2012
- defaultProp: f,
2013
- onChange: (N) => {
2014
- var W;
2015
- (W = [...S.current][v.current]) == null || W.focus(), u(N);
2026
+ inverted: m = !1,
2027
+ form: p,
2028
+ ...g
2029
+ } = e, v = T.useRef(/* @__PURE__ */ new Set()), h = T.useRef(0), x = s === "horizontal" ? Or : Gr, [R = [], D] = It({
2030
+ prop: f,
2031
+ defaultProp: d,
2032
+ onChange: (_) => {
2033
+ var U;
2034
+ (U = [...v.current][h.current]) == null || U.focus(), u(_);
2016
2035
  }
2017
- }), M = k.useRef(I);
2018
- function w(N) {
2019
- const L = jr(I, N);
2020
- V(N, L);
2036
+ }), k = T.useRef(R);
2037
+ function w(_) {
2038
+ const N = jr(R, _);
2039
+ $(_, N);
2021
2040
  }
2022
- function Y(N) {
2023
- V(N, v.current);
2041
+ function X(_) {
2042
+ $(_, h.current);
2024
2043
  }
2025
- function j() {
2026
- const N = M.current[v.current];
2027
- I[v.current] !== N && c(I);
2044
+ function Q() {
2045
+ const _ = k.current[h.current];
2046
+ R[h.current] !== _ && c(R);
2028
2047
  }
2029
- function V(N, L, { commit: W } = { commit: !1 }) {
2030
- const $ = eo(o), T = to(Math.round((N - r) / o) * o + r, $), H = Dt(T, [r, i]);
2031
- R((X = []) => {
2032
- const G = Yr(X, H, L);
2033
- if (Zr(G, a * o)) {
2034
- v.current = G.indexOf(H);
2035
- const re = String(G) !== String(X);
2036
- return re && W && c(G), re ? G : X;
2048
+ function $(_, N, { commit: U } = { commit: !1 }) {
2049
+ const F = eo(o), H = to(Math.round((_ - r) / o) * o + r, F), V = Dt(H, [r, i]);
2050
+ D((Y = []) => {
2051
+ const W = Xr(Y, V, N);
2052
+ if (Zr(W, a * o)) {
2053
+ h.current = W.indexOf(V);
2054
+ const ee = String(W) !== String(Y);
2055
+ return ee && U && c(W), ee ? W : Y;
2037
2056
  } else
2038
- return X;
2057
+ return Y;
2039
2058
  });
2040
2059
  }
2041
- return /* @__PURE__ */ A(
2060
+ return /* @__PURE__ */ L(
2042
2061
  qr,
2043
2062
  {
2044
2063
  scope: e.__scopeSlider,
@@ -2046,33 +2065,33 @@ var rn = ["PageUp", "PageDown"], on = ["ArrowUp", "ArrowDown", "ArrowLeft", "Arr
2046
2065
  disabled: l,
2047
2066
  min: r,
2048
2067
  max: i,
2049
- valueIndexToChangeRef: v,
2050
- thumbs: S.current,
2051
- values: I,
2068
+ valueIndexToChangeRef: h,
2069
+ thumbs: v.current,
2070
+ values: R,
2052
2071
  orientation: s,
2053
- form: m,
2054
- children: /* @__PURE__ */ A(et.Provider, { scope: e.__scopeSlider, children: /* @__PURE__ */ A(et.Slot, { scope: e.__scopeSlider, children: /* @__PURE__ */ A(
2072
+ form: p,
2073
+ children: /* @__PURE__ */ L(et.Provider, { scope: e.__scopeSlider, children: /* @__PURE__ */ L(et.Slot, { scope: e.__scopeSlider, children: /* @__PURE__ */ L(
2055
2074
  x,
2056
2075
  {
2057
2076
  "aria-disabled": l,
2058
2077
  "data-disabled": l ? "" : void 0,
2059
- ...y,
2078
+ ...g,
2060
2079
  ref: t,
2061
- onPointerDown: pe(y.onPointerDown, () => {
2062
- l || (M.current = I);
2080
+ onPointerDown: pe(g.onPointerDown, () => {
2081
+ l || (k.current = R);
2063
2082
  }),
2064
2083
  min: r,
2065
2084
  max: i,
2066
- inverted: h,
2085
+ inverted: m,
2067
2086
  onSlideStart: l ? void 0 : w,
2068
- onSlideMove: l ? void 0 : Y,
2069
- onSlideEnd: l ? void 0 : j,
2070
- onHomeKeyDown: () => !l && V(r, 0, { commit: !0 }),
2071
- onEndKeyDown: () => !l && V(i, I.length - 1, { commit: !0 }),
2072
- onStepKeyDown: ({ event: N, direction: L }) => {
2087
+ onSlideMove: l ? void 0 : X,
2088
+ onSlideEnd: l ? void 0 : Q,
2089
+ onHomeKeyDown: () => !l && $(r, 0, { commit: !0 }),
2090
+ onEndKeyDown: () => !l && $(i, R.length - 1, { commit: !0 }),
2091
+ onStepKeyDown: ({ event: _, direction: N }) => {
2073
2092
  if (!l) {
2074
- const T = rn.includes(N.key) || N.shiftKey && on.includes(N.key) ? 10 : 1, H = v.current, X = I[H], G = o * T * L;
2075
- V(X + G, H, { commit: !0 });
2093
+ const H = rn.includes(_.key) || _.shiftKey && on.includes(_.key) ? 10 : 1, V = h.current, Y = R[V], W = o * H * N;
2094
+ $(Y + W, V, { commit: !0 });
2076
2095
  }
2077
2096
  }
2078
2097
  }
@@ -2087,7 +2106,7 @@ var [cn, un] = ln(Ce, {
2087
2106
  endEdge: "right",
2088
2107
  size: "width",
2089
2108
  direction: 1
2090
- }), Or = k.forwardRef(
2109
+ }), Or = T.forwardRef(
2091
2110
  (e, t) => {
2092
2111
  const {
2093
2112
  min: n,
@@ -2097,53 +2116,53 @@ var [cn, un] = ln(Ce, {
2097
2116
  onSlideStart: s,
2098
2117
  onSlideMove: l,
2099
2118
  onSlideEnd: a,
2100
- onStepKeyDown: f,
2101
- ...p
2102
- } = e, [u, c] = k.useState(null), h = Pe(t, (x) => c(x)), m = k.useRef(void 0), y = Bn(i), S = y === "ltr", v = S && !o || !S && o;
2103
- function D(x) {
2104
- const I = m.current || u.getBoundingClientRect(), R = [0, I.width], w = ct(R, v ? [n, r] : [r, n]);
2105
- return m.current = I, w(x - I.left);
2119
+ onStepKeyDown: d,
2120
+ ...f
2121
+ } = e, [u, c] = T.useState(null), m = Pe(t, (x) => c(x)), p = T.useRef(void 0), g = qn(i), v = g === "ltr", h = v && !o || !v && o;
2122
+ function A(x) {
2123
+ const R = p.current || u.getBoundingClientRect(), D = [0, R.width], w = ct(D, h ? [n, r] : [r, n]);
2124
+ return p.current = R, w(x - R.left);
2106
2125
  }
2107
- return /* @__PURE__ */ A(
2126
+ return /* @__PURE__ */ L(
2108
2127
  cn,
2109
2128
  {
2110
2129
  scope: e.__scopeSlider,
2111
- startEdge: v ? "left" : "right",
2112
- endEdge: v ? "right" : "left",
2113
- direction: v ? 1 : -1,
2130
+ startEdge: h ? "left" : "right",
2131
+ endEdge: h ? "right" : "left",
2132
+ direction: h ? 1 : -1,
2114
2133
  size: "width",
2115
- children: /* @__PURE__ */ A(
2134
+ children: /* @__PURE__ */ L(
2116
2135
  dn,
2117
2136
  {
2118
- dir: y,
2137
+ dir: g,
2119
2138
  "data-orientation": "horizontal",
2120
- ...p,
2121
- ref: h,
2139
+ ...f,
2140
+ ref: m,
2122
2141
  style: {
2123
- ...p.style,
2142
+ ...f.style,
2124
2143
  "--radix-slider-thumb-transform": "translateX(-50%)"
2125
2144
  },
2126
2145
  onSlideStart: (x) => {
2127
- const I = D(x.clientX);
2128
- s == null || s(I);
2146
+ const R = A(x.clientX);
2147
+ s == null || s(R);
2129
2148
  },
2130
2149
  onSlideMove: (x) => {
2131
- const I = D(x.clientX);
2132
- l == null || l(I);
2150
+ const R = A(x.clientX);
2151
+ l == null || l(R);
2133
2152
  },
2134
2153
  onSlideEnd: () => {
2135
- m.current = void 0, a == null || a();
2154
+ p.current = void 0, a == null || a();
2136
2155
  },
2137
2156
  onStepKeyDown: (x) => {
2138
- const R = sn[v ? "from-left" : "from-right"].includes(x.key);
2139
- f == null || f({ event: x, direction: R ? -1 : 1 });
2157
+ const D = sn[h ? "from-left" : "from-right"].includes(x.key);
2158
+ d == null || d({ event: x, direction: D ? -1 : 1 });
2140
2159
  }
2141
2160
  }
2142
2161
  )
2143
2162
  }
2144
2163
  );
2145
2164
  }
2146
- ), Gr = k.forwardRef(
2165
+ ), Gr = T.forwardRef(
2147
2166
  (e, t) => {
2148
2167
  const {
2149
2168
  min: n,
@@ -2153,51 +2172,51 @@ var [cn, un] = ln(Ce, {
2153
2172
  onSlideMove: s,
2154
2173
  onSlideEnd: l,
2155
2174
  onStepKeyDown: a,
2156
- ...f
2157
- } = e, p = k.useRef(null), u = Pe(t, p), c = k.useRef(void 0), h = !i;
2158
- function m(y) {
2159
- const S = c.current || p.current.getBoundingClientRect(), v = [0, S.height], x = ct(v, h ? [r, n] : [n, r]);
2160
- return c.current = S, x(y - S.top);
2175
+ ...d
2176
+ } = e, f = T.useRef(null), u = Pe(t, f), c = T.useRef(void 0), m = !i;
2177
+ function p(g) {
2178
+ const v = c.current || f.current.getBoundingClientRect(), h = [0, v.height], x = ct(h, m ? [r, n] : [n, r]);
2179
+ return c.current = v, x(g - v.top);
2161
2180
  }
2162
- return /* @__PURE__ */ A(
2181
+ return /* @__PURE__ */ L(
2163
2182
  cn,
2164
2183
  {
2165
2184
  scope: e.__scopeSlider,
2166
- startEdge: h ? "bottom" : "top",
2167
- endEdge: h ? "top" : "bottom",
2185
+ startEdge: m ? "bottom" : "top",
2186
+ endEdge: m ? "top" : "bottom",
2168
2187
  size: "height",
2169
- direction: h ? 1 : -1,
2170
- children: /* @__PURE__ */ A(
2188
+ direction: m ? 1 : -1,
2189
+ children: /* @__PURE__ */ L(
2171
2190
  dn,
2172
2191
  {
2173
2192
  "data-orientation": "vertical",
2174
- ...f,
2193
+ ...d,
2175
2194
  ref: u,
2176
2195
  style: {
2177
- ...f.style,
2196
+ ...d.style,
2178
2197
  "--radix-slider-thumb-transform": "translateY(50%)"
2179
2198
  },
2180
- onSlideStart: (y) => {
2181
- const S = m(y.clientY);
2182
- o == null || o(S);
2199
+ onSlideStart: (g) => {
2200
+ const v = p(g.clientY);
2201
+ o == null || o(v);
2183
2202
  },
2184
- onSlideMove: (y) => {
2185
- const S = m(y.clientY);
2186
- s == null || s(S);
2203
+ onSlideMove: (g) => {
2204
+ const v = p(g.clientY);
2205
+ s == null || s(v);
2187
2206
  },
2188
2207
  onSlideEnd: () => {
2189
2208
  c.current = void 0, l == null || l();
2190
2209
  },
2191
- onStepKeyDown: (y) => {
2192
- const v = sn[h ? "from-bottom" : "from-top"].includes(y.key);
2193
- a == null || a({ event: y, direction: v ? -1 : 1 });
2210
+ onStepKeyDown: (g) => {
2211
+ const h = sn[m ? "from-bottom" : "from-top"].includes(g.key);
2212
+ a == null || a({ event: g, direction: h ? -1 : 1 });
2194
2213
  }
2195
2214
  }
2196
2215
  )
2197
2216
  }
2198
2217
  );
2199
2218
  }
2200
- ), dn = k.forwardRef(
2219
+ ), dn = T.forwardRef(
2201
2220
  (e, t) => {
2202
2221
  const {
2203
2222
  __scopeSlider: n,
@@ -2207,19 +2226,19 @@ var [cn, un] = ln(Ce, {
2207
2226
  onHomeKeyDown: s,
2208
2227
  onEndKeyDown: l,
2209
2228
  onStepKeyDown: a,
2210
- ...f
2211
- } = e, p = Oe(Ce, n);
2212
- return /* @__PURE__ */ A(
2229
+ ...d
2230
+ } = e, f = Ge(Ce, n);
2231
+ return /* @__PURE__ */ L(
2213
2232
  ze.span,
2214
2233
  {
2215
- ...f,
2234
+ ...d,
2216
2235
  ref: t,
2217
2236
  onKeyDown: pe(e.onKeyDown, (u) => {
2218
2237
  u.key === "Home" ? (s(u), u.preventDefault()) : u.key === "End" ? (l(u), u.preventDefault()) : rn.concat(on).includes(u.key) && (a(u), u.preventDefault());
2219
2238
  }),
2220
2239
  onPointerDown: pe(e.onPointerDown, (u) => {
2221
2240
  const c = u.target;
2222
- c.setPointerCapture(u.pointerId), u.preventDefault(), p.thumbs.has(c) ? c.focus() : r(u);
2241
+ c.setPointerCapture(u.pointerId), u.preventDefault(), f.thumbs.has(c) ? c.focus() : r(u);
2223
2242
  }),
2224
2243
  onPointerMove: pe(e.onPointerMove, (u) => {
2225
2244
  u.target.hasPointerCapture(u.pointerId) && i(u);
@@ -2231,10 +2250,10 @@ var [cn, un] = ln(Ce, {
2231
2250
  }
2232
2251
  );
2233
2252
  }
2234
- ), fn = "SliderTrack", pn = k.forwardRef(
2253
+ ), fn = "SliderTrack", pn = T.forwardRef(
2235
2254
  (e, t) => {
2236
- const { __scopeSlider: n, ...r } = e, i = Oe(fn, n);
2237
- return /* @__PURE__ */ A(
2255
+ const { __scopeSlider: n, ...r } = e, i = Ge(fn, n);
2256
+ return /* @__PURE__ */ L(
2238
2257
  ze.span,
2239
2258
  {
2240
2259
  "data-disabled": i.disabled ? "" : void 0,
@@ -2246,12 +2265,12 @@ var [cn, un] = ln(Ce, {
2246
2265
  }
2247
2266
  );
2248
2267
  pn.displayName = fn;
2249
- var tt = "SliderRange", mn = k.forwardRef(
2268
+ var tt = "SliderRange", mn = T.forwardRef(
2250
2269
  (e, t) => {
2251
- const { __scopeSlider: n, ...r } = e, i = Oe(tt, n), o = un(tt, n), s = k.useRef(null), l = Pe(t, s), a = i.values.length, f = i.values.map(
2270
+ const { __scopeSlider: n, ...r } = e, i = Ge(tt, n), o = un(tt, n), s = T.useRef(null), l = Pe(t, s), a = i.values.length, d = i.values.map(
2252
2271
  (c) => yn(c, i.min, i.max)
2253
- ), p = a > 1 ? Math.min(...f) : 0, u = 100 - Math.max(...f);
2254
- return /* @__PURE__ */ A(
2272
+ ), f = a > 1 ? Math.min(...d) : 0, u = 100 - Math.max(...d);
2273
+ return /* @__PURE__ */ L(
2255
2274
  ze.span,
2256
2275
  {
2257
2276
  "data-orientation": i.orientation,
@@ -2260,7 +2279,7 @@ var tt = "SliderRange", mn = k.forwardRef(
2260
2279
  ref: l,
2261
2280
  style: {
2262
2281
  ...e.style,
2263
- [o.startEdge]: p + "%",
2282
+ [o.startEdge]: f + "%",
2264
2283
  [o.endEdge]: u + "%"
2265
2284
  }
2266
2285
  }
@@ -2268,57 +2287,57 @@ var tt = "SliderRange", mn = k.forwardRef(
2268
2287
  }
2269
2288
  );
2270
2289
  mn.displayName = tt;
2271
- var nt = "SliderThumb", gn = k.forwardRef(
2290
+ var nt = "SliderThumb", gn = T.forwardRef(
2272
2291
  (e, t) => {
2273
- const n = Kr(e.__scopeSlider), [r, i] = k.useState(null), o = Pe(t, (l) => i(l)), s = k.useMemo(
2292
+ const n = Kr(e.__scopeSlider), [r, i] = T.useState(null), o = Pe(t, (l) => i(l)), s = T.useMemo(
2274
2293
  () => r ? n().findIndex((l) => l.ref.current === r) : -1,
2275
2294
  [n, r]
2276
2295
  );
2277
- return /* @__PURE__ */ A(Ur, { ...e, ref: o, index: s });
2296
+ return /* @__PURE__ */ L(Ur, { ...e, ref: o, index: s });
2278
2297
  }
2279
- ), Ur = k.forwardRef(
2298
+ ), Ur = T.forwardRef(
2280
2299
  (e, t) => {
2281
- const { __scopeSlider: n, index: r, name: i, ...o } = e, s = Oe(nt, n), l = un(nt, n), [a, f] = k.useState(null), p = Pe(t, (D) => f(D)), u = a ? s.form || !!a.closest("form") : !0, c = qn(a), h = s.values[r], m = h === void 0 ? 0 : yn(h, s.min, s.max), y = Xr(r, s.values.length), S = c == null ? void 0 : c[l.size], v = S ? Qr(S, m, l.direction) : 0;
2282
- return k.useEffect(() => {
2300
+ const { __scopeSlider: n, index: r, name: i, ...o } = e, s = Ge(nt, n), l = un(nt, n), [a, d] = T.useState(null), f = Pe(t, (A) => d(A)), u = a ? s.form || !!a.closest("form") : !0, c = On(a), m = s.values[r], p = m === void 0 ? 0 : yn(m, s.min, s.max), g = Yr(r, s.values.length), v = c == null ? void 0 : c[l.size], h = v ? Qr(v, p, l.direction) : 0;
2301
+ return T.useEffect(() => {
2283
2302
  if (a)
2284
2303
  return s.thumbs.add(a), () => {
2285
2304
  s.thumbs.delete(a);
2286
2305
  };
2287
- }, [a, s.thumbs]), /* @__PURE__ */ Ae(
2306
+ }, [a, s.thumbs]), /* @__PURE__ */ Me(
2288
2307
  "span",
2289
2308
  {
2290
2309
  style: {
2291
2310
  transform: "var(--radix-slider-thumb-transform)",
2292
2311
  position: "absolute",
2293
- [l.startEdge]: `calc(${m}% + ${v}px)`
2312
+ [l.startEdge]: `calc(${p}% + ${h}px)`
2294
2313
  },
2295
2314
  children: [
2296
- /* @__PURE__ */ A(et.ItemSlot, { scope: e.__scopeSlider, children: /* @__PURE__ */ A(
2315
+ /* @__PURE__ */ L(et.ItemSlot, { scope: e.__scopeSlider, children: /* @__PURE__ */ L(
2297
2316
  ze.span,
2298
2317
  {
2299
2318
  role: "slider",
2300
- "aria-label": e["aria-label"] || y,
2319
+ "aria-label": e["aria-label"] || g,
2301
2320
  "aria-valuemin": s.min,
2302
- "aria-valuenow": h,
2321
+ "aria-valuenow": m,
2303
2322
  "aria-valuemax": s.max,
2304
2323
  "aria-orientation": s.orientation,
2305
2324
  "data-orientation": s.orientation,
2306
2325
  "data-disabled": s.disabled ? "" : void 0,
2307
2326
  tabIndex: s.disabled ? void 0 : 0,
2308
2327
  ...o,
2309
- ref: p,
2310
- style: h === void 0 ? { display: "none" } : e.style,
2328
+ ref: f,
2329
+ style: m === void 0 ? { display: "none" } : e.style,
2311
2330
  onFocus: pe(e.onFocus, () => {
2312
2331
  s.valueIndexToChangeRef.current = r;
2313
2332
  })
2314
2333
  }
2315
2334
  ) }),
2316
- u && /* @__PURE__ */ A(
2335
+ u && /* @__PURE__ */ L(
2317
2336
  hn,
2318
2337
  {
2319
2338
  name: i ?? (s.name ? s.name + (s.values.length > 1 ? "[]" : "") : void 0),
2320
2339
  form: s.form,
2321
- value: h
2340
+ value: m
2322
2341
  },
2323
2342
  r
2324
2343
  )
@@ -2328,18 +2347,18 @@ var nt = "SliderThumb", gn = k.forwardRef(
2328
2347
  }
2329
2348
  );
2330
2349
  gn.displayName = nt;
2331
- var Wr = "RadioBubbleInput", hn = k.forwardRef(
2350
+ var Wr = "RadioBubbleInput", hn = T.forwardRef(
2332
2351
  ({ __scopeSlider: e, value: t, ...n }, r) => {
2333
- const i = k.useRef(null), o = Pe(i, r), s = On(t);
2334
- return k.useEffect(() => {
2352
+ const i = T.useRef(null), o = Pe(i, r), s = Gn(t);
2353
+ return T.useEffect(() => {
2335
2354
  const l = i.current;
2336
2355
  if (!l) return;
2337
- const a = window.HTMLInputElement.prototype, p = Object.getOwnPropertyDescriptor(a, "value").set;
2338
- if (s !== t && p) {
2356
+ const a = window.HTMLInputElement.prototype, f = Object.getOwnPropertyDescriptor(a, "value").set;
2357
+ if (s !== t && f) {
2339
2358
  const u = new Event("input", { bubbles: !0 });
2340
- p.call(l, t), l.dispatchEvent(u);
2359
+ f.call(l, t), l.dispatchEvent(u);
2341
2360
  }
2342
- }, [s, t]), /* @__PURE__ */ A(
2361
+ }, [s, t]), /* @__PURE__ */ L(
2343
2362
  ze.input,
2344
2363
  {
2345
2364
  style: { display: "none" },
@@ -2351,7 +2370,7 @@ var Wr = "RadioBubbleInput", hn = k.forwardRef(
2351
2370
  }
2352
2371
  );
2353
2372
  hn.displayName = Wr;
2354
- function Yr(e = [], t, n) {
2373
+ function Xr(e = [], t, n) {
2355
2374
  const r = [...e];
2356
2375
  return r[n] = t, r.sort((i, o) => i - o);
2357
2376
  }
@@ -2359,7 +2378,7 @@ function yn(e, t, n) {
2359
2378
  const o = 100 / (n - t) * (e - t);
2360
2379
  return Dt(o, [0, 100]);
2361
2380
  }
2362
- function Xr(e, t) {
2381
+ function Yr(e, t) {
2363
2382
  return t > 2 ? `Value ${e + 1} of ${t}` : t === 2 ? ["Minimum", "Maximum"][e] : void 0;
2364
2383
  }
2365
2384
  function jr(e, t) {
@@ -2396,7 +2415,7 @@ function to(e, t) {
2396
2415
  return Math.round(e * n) / n;
2397
2416
  }
2398
2417
  var vn = an, no = pn, ro = mn, oo = gn;
2399
- const io = k.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ Ae(
2418
+ const io = T.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ Me(
2400
2419
  vn,
2401
2420
  {
2402
2421
  ref: n,
@@ -2406,13 +2425,13 @@ const io = k.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ Ae(
2406
2425
  ),
2407
2426
  ...t,
2408
2427
  children: [
2409
- /* @__PURE__ */ A(no, { className: "relative h-2 w-full grow overflow-hidden rounded-full bg-secondary", children: /* @__PURE__ */ A(ro, { className: "absolute h-full bg-primary" }) }),
2410
- /* @__PURE__ */ A(oo, { className: "block h-5 w-5 rounded-full border-2 border-primary bg-background ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50" })
2428
+ /* @__PURE__ */ L(no, { className: "relative h-2 w-full grow overflow-hidden rounded-full bg-secondary", children: /* @__PURE__ */ L(ro, { className: "absolute h-full bg-primary" }) }),
2429
+ /* @__PURE__ */ L(oo, { className: "block h-5 w-5 rounded-full border-2 border-primary bg-background ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50" })
2411
2430
  ]
2412
2431
  }
2413
2432
  ));
2414
2433
  io.displayName = vn.displayName;
2415
- const so = xt(null), lo = $n();
2434
+ const so = xt(null), lo = Fn();
2416
2435
  function Sn(e) {
2417
2436
  const t = rt(so) ?? lo;
2418
2437
  return En(t.subscribe, () => e(t.get()), () => e(null));