react-semaphor 0.1.563 → 0.1.565

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 (139) hide show
  1. package/DATA_APP_SDK.md +3 -3
  2. package/README.md +2 -2
  3. package/dist/analytics-protocol/index.js +8 -8
  4. package/dist/assistant-context/index.js +3 -2
  5. package/dist/brand-studio/index.js +28 -29
  6. package/dist/briefings/index.js +4 -4
  7. package/dist/chunks/{assistant-chat-iIp02_77.js → assistant-chat-DNfb5fbF.js} +294 -294
  8. package/dist/chunks/{bookmark-impact-D4Kl4amw.js → bookmark-impact-CHr7b1J2.js} +2 -2
  9. package/dist/chunks/bookmark-state-ByODVqee.js +1613 -0
  10. package/dist/chunks/card-filter-builder-CcEcfaYz.js +4100 -0
  11. package/dist/chunks/{switch-BW4yXSYs.js → code-editor-DJNOsgJH.js} +463 -442
  12. package/dist/chunks/{comparison-window-caption-D1EUXzaR.js → comparison-window-caption-CMLb3mut.js} +451 -419
  13. package/dist/chunks/{dashboard-CmqeP3QZ.js → dashboard-CtIfxycc.js} +1 -1
  14. package/dist/chunks/dashboard-briefing-launcher-D3mc6peE.js +4910 -0
  15. package/dist/chunks/{dashboard-controls-B253nJS-.js → dashboard-controls-BFv0zdws.js} +684 -674
  16. package/dist/chunks/{dashboard-json-osQuinUZ.js → dashboard-json-CXn_3OYb.js} +4 -4
  17. package/dist/chunks/{dates-DFY7Gfss.js → dates-DcRxw17S.js} +13 -13
  18. package/dist/chunks/{edit-dashboard-visual-CMar-NhA.js → edit-dashboard-visual-Y6HatqBd.js} +7704 -10337
  19. package/dist/chunks/filter-reach-copy-DbggA5B7.js +4673 -0
  20. package/dist/chunks/{filter-value-text-CPwFkrMz.js → filter-value-text-7zhmth1S.js} +2 -2
  21. package/dist/chunks/{index-CNGkfUp4.js → index-DDa_rklN.js} +69 -64
  22. package/dist/chunks/index-RNaTnE3m.js +585 -0
  23. package/dist/chunks/{layout-grid-BM65viQh.js → layout-grid-0hIlqEtk.js} +1 -1
  24. package/dist/chunks/{list-filter-BoeLBfL3.js → list-filter-DkgoCeBm.js} +1 -1
  25. package/dist/chunks/{matrix-analytical-definition-hEucouWM.js → matrix-analytical-definition-C9xB_T84.js} +18 -18
  26. package/dist/chunks/{matrix-card-CCh9JjP1.js → matrix-card-BSUeSXpD.js} +2 -2
  27. package/dist/chunks/{matrix-member-presentation-DsAUbuoL.js → matrix-member-presentation-DZNgQpUq.js} +1 -1
  28. package/dist/chunks/{matrix-operation-contract-DsLdFdSa.js → matrix-operation-contract-Eb6elidS.js} +1 -1
  29. package/dist/chunks/{metric-comparison-Bnso1cm1.js → metric-comparison-ChXUFaZu.js} +1 -1
  30. package/dist/chunks/{palette-p1XSJFgB.js → palette-4vf2BEEg.js} +1 -1
  31. package/dist/chunks/{pivot-result-contract-expectations-B53jqszr.js → pivot-result-contract-expectations-Ddh1rNz5.js} +4 -4
  32. package/dist/chunks/{pivot-result-identity-Dq5jm-EC.js → pivot-result-identity-BlbLrqaC.js} +1 -1
  33. package/dist/chunks/{report-preferences-dialog-l54wJyYE.js → report-preferences-dialog-Db-b04B4.js} +122 -131
  34. package/dist/chunks/{report-runtime-context-BITkNSDa.js → report-runtime-context-DnA_PiKo.js} +1 -1
  35. package/dist/chunks/resolve-dashboard-input-context-C18J-YZC.js +21394 -0
  36. package/dist/chunks/{save-CHV1B1fL.js → save-D6pHmSSP.js} +1 -1
  37. package/dist/chunks/saved-dashboard-context-DhC_EVus.js +629 -0
  38. package/dist/chunks/{selection-reducer-Bz5aywT4.js → selection-reducer-OaJ-N5uN.js} +1 -1
  39. package/dist/chunks/{semaphor-ready-indicator-C3EQEiD9.js → semaphor-ready-indicator-T6TsiBMT.js} +80879 -80744
  40. package/dist/chunks/{shelf-drop-preview-context-BODiBlqT.js → shelf-drop-preview-context-CNWL_b0S.js} +407 -407
  41. package/dist/chunks/{source-entity-resolution-DdDVXFB8.js → source-entity-resolution-DF6GulDn.js} +1 -1
  42. package/dist/chunks/stored-dashboard-IdmtrNkA.js +5026 -0
  43. package/dist/chunks/{table-export-sheet-bSXxGn-v.js → table-export-sheet--DUKWk6o.js} +1 -1
  44. package/dist/chunks/{temporal-input-presentation-sk9gqLi6.js → temporal-input-presentation--2r9BLr0.js} +392 -377
  45. package/dist/chunks/{token-types-BUK06hU2.js → token-types-C8JymO8s.js} +1 -1
  46. package/dist/chunks/{upload-BnmuyPqW.js → upload-Cf3wXZT8.js} +1 -1
  47. package/dist/chunks/{validators-BIM0FE31.js → validators-wtjw0aw6.js} +7 -7
  48. package/dist/chunks/variable-draft-3xseULxR.js +241 -0
  49. package/dist/dashboard/index.js +2 -2
  50. package/dist/dashboard-authoring/index.js +2226 -1704
  51. package/dist/data-app-sdk/index.js +4 -4
  52. package/dist/data-app-sdk-adapters/index.js +2 -2
  53. package/dist/data-app-sdk-validation/index.js +5 -5
  54. package/dist/format-utils/index.js +174 -167
  55. package/dist/index.js +190 -188
  56. package/dist/layouts/index.js +1 -1
  57. package/dist/pdf-export-policy/index.js +80 -28
  58. package/dist/pdf-table-layout/index.js +65 -65
  59. package/dist/report-runtime-context/index.js +1 -1
  60. package/dist/style.css +1 -1
  61. package/dist/surfboard/index.js +2 -2
  62. package/dist/types/briefings/attachment-outcomes.d.ts +1 -1
  63. package/dist/types/components/activity/activity-bell.d.ts +5 -1
  64. package/dist/types/components/activity/activity-types.d.ts +12 -4
  65. package/dist/types/components/dashboard-variables/data-variables-menu.d.ts +8 -0
  66. package/dist/types/components/dashboard-variables/variable-editor-host.d.ts +1 -0
  67. package/dist/types/components/index.d.ts +2 -0
  68. package/dist/types/index.js +5 -5
  69. package/dist/types/lib/dashboard-inputs/build-normalized-dashboard-inputs.d.ts +62 -0
  70. package/dist/types/lib/dashboard-inputs/dashboard-filter-mapping-authoring.d.ts +33 -2
  71. package/dist/types/lib/dashboard-inputs/filter-settings.d.ts +7 -2
  72. package/dist/types/lib/dashboard-inputs/prepare-loaded-dashboard.d.ts +4 -2
  73. package/dist/types/lib/dashboard-variables/data-text.d.ts +33 -0
  74. package/dist/types/lib/dashboard-variables/types.d.ts +207 -0
  75. package/dist/types/lib/document/document-edits.d.ts +16 -1
  76. package/dist/types/lib/document/document-panel-target.d.ts +1 -1
  77. package/dist/types/lib/document/document-section-query-options.d.ts +29 -0
  78. package/dist/types/lib/document/document-table-data-policy.d.ts +0 -1
  79. package/dist/types/lib/hooks/use-dashboard-frame-query.d.ts +92 -0
  80. package/dist/types/lib/query-context/build-card-query-context.d.ts +6 -0
  81. package/dist/types/lib/query-context/describe-card-execution-snapshot.d.ts +1 -0
  82. package/dist/types/lib/query-context/use-semantic-execution-payload-for-cards.d.ts +24 -0
  83. package/dist/types/lib/stores/dashboard-store.d.ts +36 -0
  84. package/dist/types/lib/text-variables/temporal-input-text.d.ts +28 -0
  85. package/dist/types/lib/text-variables/text-variable-types.d.ts +72 -0
  86. package/dist/types/lib/types/common-types.d.ts +155 -51
  87. package/dist/types/lib/utils/card-definition.d.ts +2 -2
  88. package/dist/types/shared/assistant-context/index.d.ts +1 -1
  89. package/dist/types/shared/assistant-context/saved-dashboard-context.d.ts +51 -1
  90. package/dist/types/shared/dashboard-authoring/card-query-request.d.ts +7 -1
  91. package/dist/types/shared/dashboard-authoring/card-settings/resolve-card-highlights.d.ts +10 -0
  92. package/dist/types/shared/dashboard-authoring/changes/card-query-part.d.ts +7 -1
  93. package/dist/types/shared/dashboard-authoring/changes/dashboard-change.d.ts +1088 -431
  94. package/dist/types/shared/dashboard-authoring/changes/diagnostics.d.ts +18 -1
  95. package/dist/types/shared/dashboard-authoring/changes/read-card-query.d.ts +8 -1
  96. package/dist/types/shared/dashboard-authoring/changes/resolve-dashboard-changes.d.ts +1 -1
  97. package/dist/types/shared/dashboard-authoring/conditional-formatting/kpi.d.ts +10 -0
  98. package/dist/types/shared/dashboard-authoring/conditional-formatting/schema.d.ts +40 -40
  99. package/dist/types/shared/dashboard-authoring/control-execution-contract.d.ts +16 -16
  100. package/dist/types/shared/dashboard-authoring/dashboard-card-source-index.d.ts +1 -0
  101. package/dist/types/shared/dashboard-authoring/dashboard-filter-targets.d.ts +29 -0
  102. package/dist/types/shared/dashboard-authoring/dashboard-input-scope.d.ts +7 -4
  103. package/dist/types/shared/dashboard-authoring/dashboard-variable-card.d.ts +159 -0
  104. package/dist/types/shared/dashboard-authoring/dashboard-variable-changes.d.ts +61 -0
  105. package/dist/types/shared/dashboard-authoring/document-section-cards.d.ts +7 -0
  106. package/dist/types/shared/dashboard-authoring/filter-model/index.d.ts +2 -0
  107. package/dist/types/shared/dashboard-authoring/filter-model/read-dashboard-filter-model.d.ts +10 -0
  108. package/dist/types/shared/dashboard-authoring/index.d.ts +6 -0
  109. package/dist/types/shared/dashboard-authoring/measure-calculations/comparison.d.ts +2 -0
  110. package/dist/types/shared/dashboard-authoring/measure-calculations/schemas.d.ts +1 -1
  111. package/dist/types/shared/dashboard-authoring/operations/operation-sentences.d.ts +1 -1
  112. package/dist/types/shared/dashboard-authoring/operations/operation-types.d.ts +50 -3
  113. package/dist/types/shared/dashboard-authoring/outline/outline-dashboard.d.ts +48 -1
  114. package/dist/types/shared/dashboard-authoring/outline/outline-filters.d.ts +2 -2
  115. package/dist/types/shared/dashboard-authoring/text-card-words/blocks.d.ts +87 -13
  116. package/dist/types/shared/dashboard-authoring/text-card-words/chip-colors.d.ts +23 -0
  117. package/dist/types/shared/dashboard-authoring/text-card-words/index.d.ts +90 -8
  118. package/dist/types/shared/dashboard-authoring/text-card-words/rich-content.d.ts +31 -3
  119. package/dist/types/shared/dashboard-authoring/text-card-words/variable-words.d.ts +8 -0
  120. package/dist/types/shared/dashboard-authoring/variable-draft.d.ts +125 -0
  121. package/dist/types/shared/dashboard-authoring/variable-editability.d.ts +24 -0
  122. package/dist/types/shared/dashboard-authoring/variable-references.d.ts +39 -0
  123. package/dist/types/shared/format-utils/document-print.d.ts +4 -2
  124. package/dist/types/shared/format-utils/index.d.ts +1 -0
  125. package/dist/types/shared/format-utils/pdf-capacity-lines.d.ts +17 -0
  126. package/dist/types/shared/format-utils/pdf-delivery.d.ts +8 -1
  127. package/dist/types/shared/format-utils/pdf-export-policy.d.ts +74 -6
  128. package/dist/types/shared/format-utils/presentation-execution.d.ts +9 -0
  129. package/package.json +2 -2
  130. package/src/data-app-sdk/README.md +3 -3
  131. package/dist/chunks/bookmark-state-CWeoGbrx.js +0 -743
  132. package/dist/chunks/braces-DzgoQC64.js +0 -23
  133. package/dist/chunks/dashboard-briefing-launcher-TYlSW77S.js +0 -3828
  134. package/dist/chunks/filter-reach-copy-CvV7W5dd.js +0 -3965
  135. package/dist/chunks/global-date-filter-utils-N1kcsOFE.js +0 -16722
  136. package/dist/chunks/index-CJW5BdWT.js +0 -583
  137. package/dist/chunks/resolve-dashboard-input-context-DaDrZGuA.js +0 -8214
  138. package/dist/chunks/saved-dashboard-context-DFYBrE6O.js +0 -564
  139. package/dist/chunks/use-create-flow-overlay-state-BXY8-Cyz.js +0 -1436
@@ -1,12 +1,12 @@
1
1
  import { jsxs as Ne, jsx as N, Fragment as ft } from "react/jsx-runtime";
2
2
  import * as T from "react";
3
- import zn, { forwardRef as Fe, createElement as xe, useContext as rt, createContext as xt, useRef as O, useLayoutEffect as Pn, useImperativeHandle as zt, useEffect as ne, useState as de, useCallback as G, useMemo as W, memo as wn, Suspense as Cn, useSyncExternalStore as En } from "react";
4
- import { b1 as In, a6 as ie, b2 as Pt, b3 as Rn, a7 as wt, b4 as ot, b5 as Ct, b6 as Et, b7 as Dn, b8 as An, b9 as Nn, ba as Mn, u as Re, bb as Ln, bc as _n, bd as kn, be as Tn, bf as Hn, bg as Vn, bh as $n, bi as Fn, bj as Kn } from "./semaphor-ready-indicator-C3EQEiD9.js";
5
- import { C as It, A as Rt, D as ze, E as me, F as Dt, G as Bn, H as qn, J as Pe, K as On, M as At, N as Gn, O as Un } from "./switch-BW4yXSYs.js";
6
- import { Y as Wn, Z as Nt, $ as Mt, eG as Je, eH as Te, eI as Yn, eJ as jn, eK as Xn, _ as Qn } from "./global-date-filter-utils-N1kcsOFE.js";
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 ne, useState as de, useCallback as G, useMemo as W, memo as wn, Suspense as Cn, useSyncExternalStore as En } from "react";
4
+ import { aN as In, a6 as ie, aO as Pt, aP as Rn, a7 as wt, aQ as ot, aR as Ct, aS as Et, aT as Dn, aU as An, aV as Nn, aW as Mn, u as Re, aX as Ln, aY as _n, aZ as kn, a_ as Tn, a$ as Hn, b0 as Vn, b1 as $n, b2 as Fn, b3 as Kn } from "./semaphor-ready-indicator-T6TsiBMT.js";
5
+ import { C as It, A as Rt, D as ze, E as me, F as Dt, G as Bn, H as On, J as Pe, K as qn, M as At, N as Gn, O as Un } from "./code-editor-DJNOsgJH.js";
6
+ import { Q as Wn, R as Nt, T as Mt, U as Je, V as Te, W as Xn, X as Yn, Y as jn, S as Qn } from "./resolve-dashboard-input-context-C18J-YZC.js";
7
7
  import "./index-CuHybtft.js";
8
- import "./validators-BIM0FE31.js";
9
- import "./matrix-operation-contract-DsLdFdSa.js";
8
+ import "./validators-wtjw0aw6.js";
9
+ import "./matrix-operation-contract-Eb6elidS.js";
10
10
  import "./analytics-base-schemas-BaIQrEzX.js";
11
11
  import "zod";
12
12
  import "../value-format-preferences/index.js";
@@ -29,7 +29,7 @@ const zo = zn.memo(function({
29
29
  );
30
30
  }), Ke = xt(null);
31
31
  Ke.displayName = "PanelGroupContext";
32
- const q = {
32
+ const O = {
33
33
  group: "data-panel-group",
34
34
  groupDirection: "data-panel-group-direction",
35
35
  groupId: "data-panel-group-id",
@@ -45,7 +45,7 @@ const q = {
45
45
  }, it = 10, ge = Pn, pt = T.useId, Zn = typeof pt == "function" ? pt : () => null;
46
46
  let er = 0;
47
47
  function st(e = null) {
48
- const t = Zn(), n = O(e || t || null);
48
+ const t = Zn(), n = q(e || t || null);
49
49
  return n.current === null && (n.current = "" + er++), e ?? n.current;
50
50
  }
51
51
  function Lt({
@@ -56,8 +56,8 @@ function Lt({
56
56
  defaultSize: i,
57
57
  forwardedRef: o,
58
58
  id: s,
59
- maxSize: l,
60
- minSize: a,
59
+ maxSize: a,
60
+ minSize: l,
61
61
  onCollapse: d,
62
62
  onExpand: f,
63
63
  onResize: u,
@@ -77,10 +77,10 @@ function Lt({
77
77
  groupId: D,
78
78
  isPanelCollapsed: L,
79
79
  reevaluatePanelConstraints: C,
80
- registerPanel: j,
80
+ registerPanel: Y,
81
81
  resizePanel: J,
82
82
  unregisterPanel: K
83
- } = y, M = st(s), _ = O({
83
+ } = y, M = st(s), _ = q({
84
84
  callbacks: {
85
85
  onCollapse: d,
86
86
  onExpand: f,
@@ -90,14 +90,14 @@ function Lt({
90
90
  collapsedSize: n,
91
91
  collapsible: r,
92
92
  defaultSize: i,
93
- maxSize: l,
94
- minSize: a
93
+ maxSize: a,
94
+ minSize: l
95
95
  },
96
96
  id: M,
97
97
  idIsFromProps: s !== void 0,
98
98
  order: c
99
99
  });
100
- O({
100
+ q({
101
101
  didLogMissingDefaultSizeWarning: !1
102
102
  }), ge(() => {
103
103
  const {
@@ -106,13 +106,13 @@ function Lt({
106
106
  } = _.current, F = {
107
107
  ...$
108
108
  };
109
- _.current.id = M, _.current.idIsFromProps = s !== void 0, _.current.order = c, B.onCollapse = d, B.onExpand = f, B.onResize = u, $.collapsedSize = n, $.collapsible = r, $.defaultSize = i, $.maxSize = l, $.minSize = a, (F.collapsedSize !== $.collapsedSize || F.collapsible !== $.collapsible || F.maxSize !== $.maxSize || F.minSize !== $.minSize) && C(_.current, F);
109
+ _.current.id = M, _.current.idIsFromProps = s !== void 0, _.current.order = c, B.onCollapse = d, B.onExpand = f, B.onResize = u, $.collapsedSize = n, $.collapsible = r, $.defaultSize = i, $.maxSize = a, $.minSize = l, (F.collapsedSize !== $.collapsedSize || F.collapsible !== $.collapsible || F.maxSize !== $.maxSize || F.minSize !== $.minSize) && C(_.current, F);
110
110
  }), ge(() => {
111
111
  const B = _.current;
112
- return j(B), () => {
112
+ return Y(B), () => {
113
113
  K(B);
114
114
  };
115
- }, [c, M, j, K]), zt(o, () => ({
115
+ }, [c, M, Y, K]), zt(o, () => ({
116
116
  collapse: () => {
117
117
  h(_.current);
118
118
  },
@@ -146,11 +146,11 @@ function Lt({
146
146
  ...m
147
147
  },
148
148
  // CSS selectors
149
- [q.groupId]: D,
150
- [q.panel]: "",
151
- [q.panelCollapsible]: r || void 0,
152
- [q.panelId]: M,
153
- [q.panelSize]: parseFloat("" + U.flexGrow).toFixed(1)
149
+ [O.groupId]: D,
150
+ [O.panel]: "",
151
+ [O.panelCollapsible]: r || void 0,
152
+ [O.panelId]: M,
153
+ [O.panelSize]: parseFloat("" + U.flexGrow).toFixed(1)
154
154
  });
155
155
  }
156
156
  const tr = Fe((e, t) => xe(Lt, {
@@ -247,24 +247,24 @@ function sr(e, t) {
247
247
  a: n.a.at(-1),
248
248
  b: n.b.at(-1)
249
249
  };
250
- let l = o.length;
251
- for (; l--; ) {
252
- const a = o[l];
253
- if (a === s.a) return 1;
254
- if (a === s.b) return -1;
250
+ let a = o.length;
251
+ for (; a--; ) {
252
+ const l = o[a];
253
+ if (l === s.a) return 1;
254
+ if (l === s.b) return -1;
255
255
  }
256
256
  }
257
257
  return Math.sign(i.a - i.b);
258
258
  }
259
- const lr = /\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;
260
- function ar(e) {
259
+ const ar = /\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;
260
+ function lr(e) {
261
261
  var t;
262
262
  const n = getComputedStyle((t = Ht(e)) !== null && t !== void 0 ? t : e).display;
263
263
  return n === "flex" || n === "inline-flex";
264
264
  }
265
265
  function cr(e) {
266
266
  const t = getComputedStyle(e);
267
- return !!(t.position === "fixed" || t.zIndex !== "auto" && (t.position !== "static" || ar(e)) || +t.opacity < 1 || "transform" in t && t.transform !== "none" || "webkitTransform" in t && t.webkitTransform !== "none" || "mixBlendMode" in t && t.mixBlendMode !== "normal" || "filter" in t && t.filter !== "none" || "webkitFilter" in t && t.webkitFilter !== "none" || "isolation" in t && t.isolation === "isolate" || lr.test(t.willChange) || t.webkitOverflowScrolling === "touch");
267
+ return !!(t.position === "fixed" || t.zIndex !== "auto" && (t.position !== "static" || lr(e)) || +t.opacity < 1 || "transform" in t && t.transform !== "none" || "webkitTransform" in t && t.webkitTransform !== "none" || "mixBlendMode" in t && t.mixBlendMode !== "normal" || "filter" in t && t.filter !== "none" || "webkitFilter" in t && t.webkitFilter !== "none" || "isolation" in t && t.isolation === "isolate" || ar.test(t.willChange) || t.webkitOverflowScrolling === "touch");
268
268
  }
269
269
  function mt(e) {
270
270
  let t = e.length;
@@ -290,25 +290,25 @@ function Ht(e) {
290
290
  return t && t instanceof ShadowRoot ? t.host : t;
291
291
  }
292
292
  const Vt = 1, $t = 2, Ft = 4, Kt = 8, ur = or() === "coarse";
293
- let se = [], Se = !1, pe = /* @__PURE__ */ new Map(), qe = /* @__PURE__ */ new Map();
293
+ let se = [], be = !1, pe = /* @__PURE__ */ new Map(), Oe = /* @__PURE__ */ new Map();
294
294
  const Me = /* @__PURE__ */ new Set();
295
295
  function dr(e, t, n, r, i) {
296
296
  var o;
297
297
  const {
298
298
  ownerDocument: s
299
- } = t, l = {
299
+ } = t, a = {
300
300
  direction: n,
301
301
  element: t,
302
302
  hitAreaMargins: r,
303
303
  setResizeHandlerState: i
304
- }, a = (o = pe.get(s)) !== null && o !== void 0 ? o : 0;
305
- return pe.set(s, a + 1), Me.add(l), Ve(), function() {
304
+ }, l = (o = pe.get(s)) !== null && o !== void 0 ? o : 0;
305
+ return pe.set(s, l + 1), Me.add(a), Ve(), function() {
306
306
  var f;
307
- qe.delete(e), Me.delete(l);
307
+ Oe.delete(e), Me.delete(a);
308
308
  const u = (f = pe.get(s)) !== null && f !== void 0 ? f : 1;
309
- if (pe.set(s, u - 1), Ve(), u === 1 && pe.delete(s), se.includes(l)) {
310
- const c = se.indexOf(l);
311
- c >= 0 && se.splice(c, 1), at(), i("up", !0, null);
309
+ if (pe.set(s, u - 1), Ve(), u === 1 && pe.delete(s), se.includes(a)) {
310
+ const c = se.indexOf(a);
311
+ c >= 0 && se.splice(c, 1), lt(), i("up", !0, null);
312
312
  }
313
313
  };
314
314
  }
@@ -319,52 +319,52 @@ function fr(e) {
319
319
  x: n,
320
320
  y: r
321
321
  } = Be(e);
322
- Se = !0, lt({
322
+ be = !0, at({
323
323
  target: t,
324
324
  x: n,
325
325
  y: r
326
326
  }), Ve(), se.length > 0 && ($e("down", e), e.preventDefault(), Bt(t) || e.stopImmediatePropagation());
327
327
  }
328
- function Ye(e) {
328
+ function Xe(e) {
329
329
  const {
330
330
  x: t,
331
331
  y: n
332
332
  } = Be(e);
333
- if (Se && e.buttons === 0 && (Se = !1, $e("up", e)), !Se) {
333
+ if (be && e.buttons === 0 && (be = !1, $e("up", e)), !be) {
334
334
  const {
335
335
  target: r
336
336
  } = e;
337
- lt({
337
+ at({
338
338
  target: r,
339
339
  x: t,
340
340
  y: n
341
341
  });
342
342
  }
343
- $e("move", e), at(), se.length > 0 && e.preventDefault();
343
+ $e("move", e), lt(), se.length > 0 && e.preventDefault();
344
344
  }
345
- function je(e) {
345
+ function Ye(e) {
346
346
  const {
347
347
  target: t
348
348
  } = e, {
349
349
  x: n,
350
350
  y: r
351
351
  } = Be(e);
352
- qe.clear(), Se = !1, se.length > 0 && (e.preventDefault(), Bt(t) || e.stopImmediatePropagation()), $e("up", e), lt({
352
+ Oe.clear(), be = !1, se.length > 0 && (e.preventDefault(), Bt(t) || e.stopImmediatePropagation()), $e("up", e), at({
353
353
  target: t,
354
354
  x: n,
355
355
  y: r
356
- }), at(), Ve();
356
+ }), lt(), Ve();
357
357
  }
358
358
  function Bt(e) {
359
359
  let t = e;
360
360
  for (; t; ) {
361
- if (t.hasAttribute(q.resizeHandle))
361
+ if (t.hasAttribute(O.resizeHandle))
362
362
  return !0;
363
363
  t = t.parentElement;
364
364
  }
365
365
  return !1;
366
366
  }
367
- function lt({
367
+ function at({
368
368
  target: e,
369
369
  x: t,
370
370
  y: n
@@ -375,20 +375,20 @@ function lt({
375
375
  const {
376
376
  element: o,
377
377
  hitAreaMargins: s
378
- } = i, l = o.getBoundingClientRect(), {
379
- bottom: a,
378
+ } = i, a = o.getBoundingClientRect(), {
379
+ bottom: l,
380
380
  left: d,
381
381
  right: f,
382
382
  top: u
383
- } = l, c = ur ? s.coarse : s.fine;
384
- if (t >= d - c && t <= f + c && n >= u - c && n <= a + c) {
383
+ } = a, c = ur ? s.coarse : s.fine;
384
+ if (t >= d - c && t <= f + c && n >= u - c && n <= l + c) {
385
385
  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
386
386
  // That is why we only check potentially intersecting handles,
387
387
  // and why we skip if the event target is within the handle's DOM
388
388
  sr(r, o) > 0) {
389
389
  let p = r, g = !1;
390
390
  for (; p && !p.contains(o); ) {
391
- if (ir(p.getBoundingClientRect(), l)) {
391
+ if (ir(p.getBoundingClientRect(), a)) {
392
392
  g = !0;
393
393
  break;
394
394
  }
@@ -401,10 +401,10 @@ function lt({
401
401
  }
402
402
  });
403
403
  }
404
- function Xe(e, t) {
405
- qe.set(e, t);
404
+ function je(e, t) {
405
+ Oe.set(e, t);
406
406
  }
407
- function at() {
407
+ function lt() {
408
408
  let e = !1, t = !1;
409
409
  se.forEach((r) => {
410
410
  const {
@@ -413,7 +413,7 @@ function at() {
413
413
  i === "horizontal" ? e = !0 : t = !0;
414
414
  });
415
415
  let n = 0;
416
- qe.forEach((r) => {
416
+ Oe.forEach((r) => {
417
417
  n |= r;
418
418
  }), e && t ? We("intersection", n) : e ? We("horizontal", n) : t ? We("vertical", n) : rr();
419
419
  }
@@ -424,16 +424,16 @@ function Ve() {
424
424
  capture: !0,
425
425
  signal: Qe.signal
426
426
  };
427
- Me.size && (Se ? (se.length > 0 && pe.forEach((t, n) => {
427
+ Me.size && (be ? (se.length > 0 && pe.forEach((t, n) => {
428
428
  const {
429
429
  body: r
430
430
  } = n;
431
- t > 0 && (r.addEventListener("contextmenu", je, e), r.addEventListener("pointerleave", Ye, e), r.addEventListener("pointermove", Ye, e));
432
- }), window.addEventListener("pointerup", je, e), window.addEventListener("pointercancel", je, e)) : pe.forEach((t, n) => {
431
+ t > 0 && (r.addEventListener("contextmenu", Ye, e), r.addEventListener("pointerleave", Xe, e), r.addEventListener("pointermove", Xe, e));
432
+ }), window.addEventListener("pointerup", Ye, e), window.addEventListener("pointercancel", Ye, e)) : pe.forEach((t, n) => {
433
433
  const {
434
434
  body: r
435
435
  } = n;
436
- t > 0 && (r.addEventListener("pointerdown", fr, e), r.addEventListener("pointermove", Ye, e));
436
+ t > 0 && (r.addEventListener("pointerdown", fr, e), r.addEventListener("pointermove", Xe, e));
437
437
  }));
438
438
  }
439
439
  function $e(e, t) {
@@ -455,7 +455,7 @@ function I(e, t) {
455
455
  function he(e, t, n = it) {
456
456
  return e.toFixed(n) === t.toFixed(n) ? 0 : e > t ? 1 : -1;
457
457
  }
458
- function ae(e, t, n = it) {
458
+ function le(e, t, n = it) {
459
459
  return he(e, t, n) === 0;
460
460
  }
461
461
  function ee(e, t, n) {
@@ -471,7 +471,7 @@ function mr(e, t, n) {
471
471
  }
472
472
  return !0;
473
473
  }
474
- function be({
474
+ function Se({
475
475
  panelConstraints: e,
476
476
  panelIndex: t,
477
477
  size: n
@@ -482,14 +482,14 @@ function be({
482
482
  collapsedSize: i = 0,
483
483
  collapsible: o,
484
484
  maxSize: s = 100,
485
- minSize: l = 0
485
+ minSize: a = 0
486
486
  } = r;
487
- if (he(n, l) < 0)
487
+ if (he(n, a) < 0)
488
488
  if (o) {
489
- const a = (i + l) / 2;
490
- he(n, a) < 0 ? n = i : n = l;
489
+ const l = (i + a) / 2;
490
+ he(n, l) < 0 ? n = i : n = a;
491
491
  } else
492
- n = l;
492
+ n = a;
493
493
  return n = Math.min(s, n), n = parseFloat(n.toFixed(it)), n;
494
494
  }
495
495
  function De({
@@ -502,12 +502,12 @@ function De({
502
502
  }) {
503
503
  if (ee(e, 0))
504
504
  return t;
505
- const s = [...t], [l, a] = r;
506
- I(l != null, "Invalid first pivot index"), I(a != null, "Invalid second pivot index");
505
+ const s = [...t], [a, l] = r;
506
+ I(a != null, "Invalid first pivot index"), I(l != null, "Invalid second pivot index");
507
507
  let d = 0;
508
508
  if (o === "keyboard") {
509
509
  {
510
- const u = e < 0 ? a : l, c = n[u];
510
+ const u = e < 0 ? l : a, c = n[u];
511
511
  I(c, `Panel constraints not found for index ${u}`);
512
512
  const {
513
513
  collapsedSize: m = 0,
@@ -523,7 +523,7 @@ function De({
523
523
  }
524
524
  }
525
525
  {
526
- const u = e < 0 ? l : a, c = n[u];
526
+ const u = e < 0 ? a : l, c = n[u];
527
527
  I(c, `No panel constraints found for index ${u}`);
528
528
  const {
529
529
  collapsedSize: m = 0,
@@ -541,11 +541,11 @@ function De({
541
541
  }
542
542
  {
543
543
  const u = e < 0 ? 1 : -1;
544
- let c = e < 0 ? a : l, m = 0;
544
+ let c = e < 0 ? l : a, m = 0;
545
545
  for (; ; ) {
546
546
  const g = t[c];
547
547
  I(g != null, `Previous layout not found for panel index ${c}`);
548
- const h = be({
548
+ const h = Se({
549
549
  panelConstraints: n,
550
550
  panelIndex: c,
551
551
  size: 100
@@ -557,11 +557,11 @@ function De({
557
557
  e = e < 0 ? 0 - p : p;
558
558
  }
559
559
  {
560
- let c = e < 0 ? l : a;
560
+ let c = e < 0 ? a : l;
561
561
  for (; c >= 0 && c < n.length; ) {
562
562
  const m = Math.abs(e) - Math.abs(d), p = t[c];
563
563
  I(p != null, `Previous layout not found for panel index ${c}`);
564
- const g = p - m, y = be({
564
+ const g = p - m, y = Se({
565
565
  panelConstraints: n,
566
566
  panelIndex: c,
567
567
  size: g
@@ -576,19 +576,19 @@ function De({
576
576
  if (mr(i, s))
577
577
  return i;
578
578
  {
579
- const u = e < 0 ? a : l, c = t[u];
579
+ const u = e < 0 ? l : a, c = t[u];
580
580
  I(c != null, `Previous layout not found for panel index ${u}`);
581
- const m = c + d, p = be({
581
+ const m = c + d, p = Se({
582
582
  panelConstraints: n,
583
583
  panelIndex: u,
584
584
  size: m
585
585
  });
586
586
  if (s[u] = p, !ee(p, m)) {
587
- let g = m - p, h = e < 0 ? a : l;
587
+ let g = m - p, h = e < 0 ? l : a;
588
588
  for (; h >= 0 && h < n.length; ) {
589
589
  const A = s[h];
590
590
  I(A != null, `Previous layout not found for panel index ${h}`);
591
- const x = A + g, R = be({
591
+ const x = A + g, R = Se({
592
592
  panelConstraints: n,
593
593
  panelIndex: h,
594
594
  size: x
@@ -608,32 +608,32 @@ function gr({
608
608
  pivotIndices: n
609
609
  }) {
610
610
  let r = 0, i = 100, o = 0, s = 0;
611
- const l = n[0];
612
- I(l != null, "No pivot index found"), t.forEach((u, c) => {
611
+ const a = n[0];
612
+ I(a != null, "No pivot index found"), t.forEach((u, c) => {
613
613
  const {
614
614
  constraints: m
615
615
  } = u, {
616
616
  maxSize: p = 100,
617
617
  minSize: g = 0
618
618
  } = m;
619
- c === l ? (r = g, i = p) : (o += g, s += p);
619
+ c === a ? (r = g, i = p) : (o += g, s += p);
620
620
  });
621
- const a = Math.min(i, 100 - o), d = Math.max(r, 100 - s), f = e[l];
621
+ const l = Math.min(i, 100 - o), d = Math.max(r, 100 - s), f = e[a];
622
622
  return {
623
- valueMax: a,
623
+ valueMax: l,
624
624
  valueMin: d,
625
625
  valueNow: f
626
626
  };
627
627
  }
628
628
  function Le(e, t = document) {
629
- return Array.from(t.querySelectorAll(`[${q.resizeHandleId}][data-panel-group-id="${e}"]`));
629
+ return Array.from(t.querySelectorAll(`[${O.resizeHandleId}][data-panel-group-id="${e}"]`));
630
630
  }
631
- function qt(e, t, n = document) {
632
- const i = Le(e, n).findIndex((o) => o.getAttribute(q.resizeHandleId) === t);
631
+ function Ot(e, t, n = document) {
632
+ const i = Le(e, n).findIndex((o) => o.getAttribute(O.resizeHandleId) === t);
633
633
  return i ?? null;
634
634
  }
635
- function Ot(e, t, n) {
636
- const r = qt(e, t, n);
635
+ function qt(e, t, n) {
636
+ const r = Ot(e, t, n);
637
637
  return r != null ? [r, r + 1] : [-1, -1];
638
638
  }
639
639
  function Gt(e, t = document) {
@@ -643,13 +643,13 @@ function Gt(e, t = document) {
643
643
  const r = t.querySelector(`[data-panel-group][data-panel-group-id="${e}"]`);
644
644
  return r || null;
645
645
  }
646
- function Oe(e, t = document) {
647
- const n = t.querySelector(`[${q.resizeHandleId}="${e}"]`);
646
+ function qe(e, t = document) {
647
+ const n = t.querySelector(`[${O.resizeHandleId}="${e}"]`);
648
648
  return n || null;
649
649
  }
650
650
  function hr(e, t, n, r = document) {
651
- var i, o, s, l;
652
- 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;
651
+ var i, o, s, a;
652
+ const l = qe(t, r), d = Le(e, r), f = l ? d.indexOf(l) : -1, u = (i = (o = n[f]) === null || o === void 0 ? void 0 : o.id) !== null && i !== void 0 ? i : null, c = (s = (a = n[f + 1]) === null || a === void 0 ? void 0 : a.id) !== null && s !== void 0 ? s : null;
653
653
  return [u, c];
654
654
  }
655
655
  function yr({
@@ -661,13 +661,13 @@ function yr({
661
661
  panelGroupElement: o,
662
662
  setLayout: s
663
663
  }) {
664
- O({
664
+ q({
665
665
  didWarnAboutMissingResizeHandle: !1
666
666
  }), ge(() => {
667
667
  if (!o)
668
668
  return;
669
- const l = Le(n, o);
670
- for (let a = 0; a < i.length - 1; a++) {
669
+ const a = Le(n, o);
670
+ for (let l = 0; l < i.length - 1; l++) {
671
671
  const {
672
672
  valueMax: d,
673
673
  valueMin: f,
@@ -675,33 +675,33 @@ function yr({
675
675
  } = gr({
676
676
  layout: r,
677
677
  panelsArray: i,
678
- pivotIndices: [a, a + 1]
679
- }), c = l[a];
678
+ pivotIndices: [l, l + 1]
679
+ }), c = a[l];
680
680
  if (c != null) {
681
- const m = i[a];
682
- 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) : "");
681
+ const m = i[l];
682
+ I(m, `No panel data found for index "${l}"`), 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) : "");
683
683
  }
684
684
  }
685
685
  return () => {
686
- l.forEach((a, d) => {
687
- a.removeAttribute("aria-controls"), a.removeAttribute("aria-valuemax"), a.removeAttribute("aria-valuemin"), a.removeAttribute("aria-valuenow");
686
+ a.forEach((l, d) => {
687
+ l.removeAttribute("aria-controls"), l.removeAttribute("aria-valuemax"), l.removeAttribute("aria-valuemin"), l.removeAttribute("aria-valuenow");
688
688
  });
689
689
  };
690
690
  }, [n, r, i, o]), ne(() => {
691
691
  if (!o)
692
692
  return;
693
- const l = t.current;
694
- I(l, "Eager values not found");
693
+ const a = t.current;
694
+ I(a, "Eager values not found");
695
695
  const {
696
- panelDataArray: a
697
- } = l, d = Gt(n, o);
696
+ panelDataArray: l
697
+ } = a, d = Gt(n, o);
698
698
  I(d != null, `No group found for id "${n}"`);
699
699
  const f = Le(n, o);
700
700
  I(f, `No resize handles found for group id "${n}"`);
701
701
  const u = f.map((c) => {
702
- const m = c.getAttribute(q.resizeHandleId);
702
+ const m = c.getAttribute(O.resizeHandleId);
703
703
  I(m, "Resize handle element has no handle id attribute");
704
- const [p, g] = hr(n, m, a, o);
704
+ const [p, g] = hr(n, m, l, o);
705
705
  if (p == null || g == null)
706
706
  return () => {
707
707
  };
@@ -710,9 +710,9 @@ function yr({
710
710
  switch (h.key) {
711
711
  case "Enter": {
712
712
  h.preventDefault();
713
- const A = a.findIndex((x) => x.id === p);
713
+ const A = l.findIndex((x) => x.id === p);
714
714
  if (A >= 0) {
715
- const x = a[A];
715
+ const x = l[A];
716
716
  I(x, `No panel data found for index ${A}`);
717
717
  const R = r[A], {
718
718
  collapsedSize: D = 0,
@@ -720,15 +720,15 @@ function yr({
720
720
  minSize: C = 0
721
721
  } = x.constraints;
722
722
  if (R != null && L) {
723
- const j = De({
723
+ const Y = De({
724
724
  delta: ee(R, D) ? C - D : D - R,
725
725
  initialLayout: r,
726
- panelConstraints: a.map((J) => J.constraints),
727
- pivotIndices: Ot(n, m, o),
726
+ panelConstraints: l.map((J) => J.constraints),
727
+ pivotIndices: qt(n, m, o),
728
728
  prevLayout: r,
729
729
  trigger: "keyboard"
730
730
  });
731
- r !== j && s(j);
731
+ r !== Y && s(Y);
732
732
  }
733
733
  }
734
734
  break;
@@ -760,49 +760,49 @@ function Ut(e, t) {
760
760
  return n ? r : i;
761
761
  }
762
762
  function vr(e, t, n, r, i) {
763
- const o = n === "horizontal", s = Oe(t, i);
763
+ const o = n === "horizontal", s = qe(t, i);
764
764
  I(s, `No resize handle element found for id "${t}"`);
765
- const l = s.getAttribute(q.groupId);
766
- I(l, "Resize handle element has no group id attribute");
765
+ const a = s.getAttribute(O.groupId);
766
+ I(a, "Resize handle element has no group id attribute");
767
767
  let {
768
- initialCursorPosition: a
768
+ initialCursorPosition: l
769
769
  } = r;
770
- const d = Ut(n, e), f = Gt(l, i);
771
- I(f, `No group element found for id "${l}"`);
770
+ const d = Ut(n, e), f = Gt(a, i);
771
+ I(f, `No group element found for id "${a}"`);
772
772
  const u = f.getBoundingClientRect(), c = o ? u.width : u.height;
773
- return (d - a) / c * 100;
773
+ return (d - l) / c * 100;
774
774
  }
775
- function br(e, t, n, r, i, o) {
775
+ function Sr(e, t, n, r, i, o) {
776
776
  if (_t(e)) {
777
777
  const s = n === "horizontal";
778
- let l = 0;
779
- e.shiftKey ? l = 100 : i != null ? l = i : l = 10;
780
778
  let a = 0;
779
+ e.shiftKey ? a = 100 : i != null ? a = i : a = 10;
780
+ let l = 0;
781
781
  switch (e.key) {
782
782
  case "ArrowDown":
783
- a = s ? 0 : l;
783
+ l = s ? 0 : a;
784
784
  break;
785
785
  case "ArrowLeft":
786
- a = s ? -l : 0;
786
+ l = s ? -a : 0;
787
787
  break;
788
788
  case "ArrowRight":
789
- a = s ? l : 0;
789
+ l = s ? a : 0;
790
790
  break;
791
791
  case "ArrowUp":
792
- a = s ? 0 : -l;
792
+ l = s ? 0 : -a;
793
793
  break;
794
794
  case "End":
795
- a = 100;
795
+ l = 100;
796
796
  break;
797
797
  case "Home":
798
- a = -100;
798
+ l = -100;
799
799
  break;
800
800
  }
801
- return a;
801
+ return l;
802
802
  } else
803
803
  return r == null ? 0 : vr(e, t, n, r, o);
804
804
  }
805
- function Sr({
805
+ function br({
806
806
  panelDataArray: e
807
807
  }) {
808
808
  const t = Array(e.length), n = e.map((o) => o.constraints);
@@ -811,19 +811,19 @@ function Sr({
811
811
  const s = n[o];
812
812
  I(s, `Panel constraints not found for index ${o}`);
813
813
  const {
814
- defaultSize: l
814
+ defaultSize: a
815
815
  } = s;
816
- l != null && (r++, t[o] = l, i -= l);
816
+ a != null && (r++, t[o] = a, i -= a);
817
817
  }
818
818
  for (let o = 0; o < e.length; o++) {
819
819
  const s = n[o];
820
820
  I(s, `Panel constraints not found for index ${o}`);
821
821
  const {
822
- defaultSize: l
822
+ defaultSize: a
823
823
  } = s;
824
- if (l != null)
824
+ if (a != null)
825
825
  continue;
826
- const a = e.length - r, d = i / a;
826
+ const l = e.length - r, d = i / l;
827
827
  r++, t[o] = d, i -= d;
828
828
  }
829
829
  return t;
@@ -834,20 +834,20 @@ function ye(e, t, n) {
834
834
  I(o, `Panel data not found for index ${i}`);
835
835
  const {
836
836
  callbacks: s,
837
- constraints: l,
838
- id: a
837
+ constraints: a,
838
+ id: l
839
839
  } = o, {
840
840
  collapsedSize: d = 0,
841
841
  collapsible: f
842
- } = l, u = n[a];
842
+ } = a, u = n[l];
843
843
  if (u == null || r !== u) {
844
- n[a] = r;
844
+ n[l] = r;
845
845
  const {
846
846
  onCollapse: c,
847
847
  onExpand: m,
848
848
  onResize: p
849
849
  } = s;
850
- p && p(r, u), f && (c || m) && (m && (u == null || ae(u, d)) && !ae(r, d) && m(), c && (u == null || !ae(u, d)) && ae(r, d) && c());
850
+ 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());
851
851
  }
852
852
  });
853
853
  }
@@ -868,10 +868,10 @@ function xr({
868
868
  precision: o = 3
869
869
  }) {
870
870
  const s = n[i];
871
- let l;
872
- return s == null ? l = e != null ? e.toPrecision(o) : "1" : r.length === 1 ? l = "1" : l = s.toPrecision(o), {
871
+ let a;
872
+ return s == null ? a = e != null ? e.toPrecision(o) : "1" : r.length === 1 ? a = "1" : a = s.toPrecision(o), {
873
873
  flexBasis: 0,
874
- flexGrow: l,
874
+ flexGrow: a,
875
875
  flexShrink: 1,
876
876
  // Without this, Panel sizes may be unintentionally overridden by their content
877
877
  overflow: "hidden",
@@ -904,7 +904,7 @@ function vt(e) {
904
904
  function Wt(e) {
905
905
  return `react-resizable-panels:${e}`;
906
906
  }
907
- function Yt(e) {
907
+ function Xt(e) {
908
908
  return e.map((t) => {
909
909
  const {
910
910
  constraints: n,
@@ -915,7 +915,7 @@ function Yt(e) {
915
915
  return i ? r : o ? `${o}:${JSON.stringify(n)}` : JSON.stringify(n);
916
916
  }).sort((t, n) => t.localeCompare(n)).join(",");
917
917
  }
918
- function jt(e, t) {
918
+ function Yt(e, t) {
919
919
  try {
920
920
  const n = Wt(e), r = t.getItem(n);
921
921
  if (r) {
@@ -929,23 +929,23 @@ function jt(e, t) {
929
929
  }
930
930
  function Pr(e, t, n) {
931
931
  var r, i;
932
- const o = (r = jt(e, n)) !== null && r !== void 0 ? r : {}, s = Yt(t);
932
+ const o = (r = Yt(e, n)) !== null && r !== void 0 ? r : {}, s = Xt(t);
933
933
  return (i = o[s]) !== null && i !== void 0 ? i : null;
934
934
  }
935
935
  function wr(e, t, n, r, i) {
936
936
  var o;
937
- const s = Wt(e), l = Yt(t), a = (o = jt(e, i)) !== null && o !== void 0 ? o : {};
938
- a[l] = {
937
+ const s = Wt(e), a = Xt(t), l = (o = Yt(e, i)) !== null && o !== void 0 ? o : {};
938
+ l[a] = {
939
939
  expandToSizes: Object.fromEntries(n.entries()),
940
940
  layout: r
941
941
  };
942
942
  try {
943
- i.setItem(s, JSON.stringify(a));
943
+ i.setItem(s, JSON.stringify(l));
944
944
  } catch (d) {
945
945
  console.error(d);
946
946
  }
947
947
  }
948
- function bt({
948
+ function St({
949
949
  layout: e,
950
950
  panelConstraints: t
951
951
  }) {
@@ -956,30 +956,30 @@ function bt({
956
956
  for (let o = 0; o < t.length; o++) {
957
957
  const s = n[o];
958
958
  I(s != null, `No layout data found for index ${o}`);
959
- const l = 100 / r * s;
960
- n[o] = l;
959
+ const a = 100 / r * s;
960
+ n[o] = a;
961
961
  }
962
962
  let i = 0;
963
963
  for (let o = 0; o < t.length; o++) {
964
964
  const s = n[o];
965
965
  I(s != null, `No layout data found for index ${o}`);
966
- const l = be({
966
+ const a = Se({
967
967
  panelConstraints: t,
968
968
  panelIndex: o,
969
969
  size: s
970
970
  });
971
- s != l && (i += s - l, n[o] = l);
971
+ s != a && (i += s - a, n[o] = a);
972
972
  }
973
973
  if (!ee(i, 0))
974
974
  for (let o = 0; o < t.length; o++) {
975
975
  const s = n[o];
976
976
  I(s != null, `No layout data found for index ${o}`);
977
- const l = s + i, a = be({
977
+ const a = s + i, l = Se({
978
978
  panelConstraints: t,
979
979
  panelIndex: o,
980
- size: l
980
+ size: a
981
981
  });
982
- if (s !== a && (i -= a - s, n[o] = a, ee(i, 0)))
982
+ if (s !== l && (i -= l - s, n[o] = l, ee(i, 0)))
983
983
  break;
984
984
  }
985
985
  return n;
@@ -989,8 +989,8 @@ const Cr = 100, Ae = {
989
989
  setItem: (e, t) => {
990
990
  vt(Ae), Ae.setItem(e, t);
991
991
  }
992
- }, St = {};
993
- function Xt({
992
+ }, bt = {};
993
+ function jt({
994
994
  autoSaveId: e = null,
995
995
  children: t,
996
996
  className: n = "",
@@ -998,26 +998,26 @@ function Xt({
998
998
  forwardedRef: i,
999
999
  id: o = null,
1000
1000
  onLayout: s = null,
1001
- keyboardResizeBy: l = null,
1002
- storage: a = Ae,
1001
+ keyboardResizeBy: a = null,
1002
+ storage: l = Ae,
1003
1003
  style: d,
1004
1004
  tagName: f = "div",
1005
1005
  ...u
1006
1006
  }) {
1007
- const c = st(o), m = O(null), [p, g] = de(null), [y, h] = de([]), A = pr(), x = O({}), R = O(/* @__PURE__ */ new Map()), D = O(0), L = O({
1007
+ const c = st(o), m = q(null), [p, g] = de(null), [y, h] = de([]), A = pr(), x = q({}), R = q(/* @__PURE__ */ new Map()), D = q(0), L = q({
1008
1008
  autoSaveId: e,
1009
1009
  direction: r,
1010
1010
  dragState: p,
1011
1011
  id: c,
1012
- keyboardResizeBy: l,
1012
+ keyboardResizeBy: a,
1013
1013
  onLayout: s,
1014
- storage: a
1015
- }), C = O({
1014
+ storage: l
1015
+ }), C = q({
1016
1016
  layout: y,
1017
1017
  panelDataArray: [],
1018
1018
  panelDataArrayChanged: !1
1019
1019
  });
1020
- O({
1020
+ q({
1021
1021
  didLogIdAndOrderWarning: !1,
1022
1022
  didLogPanelConstraintsWarning: !1,
1023
1023
  prevPanelIds: []
@@ -1035,14 +1035,14 @@ function Xt({
1035
1035
  } = L.current, {
1036
1036
  layout: E,
1037
1037
  panelDataArray: z
1038
- } = C.current, b = bt({
1038
+ } = C.current, S = St({
1039
1039
  layout: v,
1040
1040
  panelConstraints: z.map((w) => w.constraints)
1041
1041
  });
1042
- yt(E, b) || (h(b), C.current.layout = b, P && P(b), ye(z, b, x.current));
1042
+ yt(E, S) || (h(S), C.current.layout = S, P && P(S), ye(z, S, x.current));
1043
1043
  }
1044
1044
  }), []), ge(() => {
1045
- L.current.autoSaveId = e, L.current.direction = r, L.current.dragState = p, L.current.id = c, L.current.onLayout = s, L.current.storage = a;
1045
+ L.current.autoSaveId = e, L.current.direction = r, L.current.dragState = p, L.current.id = c, L.current.onLayout = s, L.current.storage = l;
1046
1046
  }), yr({
1047
1047
  committedValuesRef: L,
1048
1048
  eagerValuesRef: C,
@@ -1058,14 +1058,14 @@ function Xt({
1058
1058
  if (e) {
1059
1059
  if (y.length === 0 || y.length !== v.length)
1060
1060
  return;
1061
- let P = St[e];
1062
- P == null && (P = zr(wr, Cr), St[e] = P);
1061
+ let P = bt[e];
1062
+ P == null && (P = zr(wr, Cr), bt[e] = P);
1063
1063
  const E = [...v], z = new Map(R.current);
1064
- P(e, E, z, y, a);
1064
+ P(e, E, z, y, l);
1065
1065
  }
1066
- }, [e, y, a]), ne(() => {
1066
+ }, [e, y, l]), ne(() => {
1067
1067
  });
1068
- const j = G((v) => {
1068
+ const Y = G((v) => {
1069
1069
  const {
1070
1070
  onLayout: P
1071
1071
  } = L.current, {
@@ -1073,18 +1073,18 @@ function Xt({
1073
1073
  panelDataArray: z
1074
1074
  } = C.current;
1075
1075
  if (v.constraints.collapsible) {
1076
- const b = z.map((H) => H.constraints), {
1076
+ const S = z.map((H) => H.constraints), {
1077
1077
  collapsedSize: w = 0,
1078
1078
  panelSize: k,
1079
- pivotIndices: S
1079
+ pivotIndices: b
1080
1080
  } = fe(z, v, E);
1081
- if (I(k != null, `Panel size not found for panel "${v.id}"`), !ae(k, w)) {
1081
+ if (I(k != null, `Panel size not found for panel "${v.id}"`), !le(k, w)) {
1082
1082
  R.current.set(v.id, k);
1083
1083
  const Q = ve(z, v) === z.length - 1 ? k - w : w - k, V = De({
1084
1084
  delta: Q,
1085
1085
  initialLayout: E,
1086
- panelConstraints: b,
1087
- pivotIndices: S,
1086
+ panelConstraints: S,
1087
+ pivotIndices: b,
1088
1088
  prevLayout: E,
1089
1089
  trigger: "imperative-api"
1090
1090
  });
@@ -1096,17 +1096,17 @@ function Xt({
1096
1096
  onLayout: E
1097
1097
  } = L.current, {
1098
1098
  layout: z,
1099
- panelDataArray: b
1099
+ panelDataArray: S
1100
1100
  } = C.current;
1101
1101
  if (v.constraints.collapsible) {
1102
- const w = b.map((oe) => oe.constraints), {
1102
+ const w = S.map((oe) => oe.constraints), {
1103
1103
  collapsedSize: k = 0,
1104
- panelSize: S = 0,
1104
+ panelSize: b = 0,
1105
1105
  minSize: H = 0,
1106
1106
  pivotIndices: Q
1107
- } = fe(b, v, z), V = P ?? H;
1108
- if (ae(S, k)) {
1109
- const oe = R.current.get(v.id), Ee = oe != null && oe >= V ? oe : V, Ue = ve(b, v) === b.length - 1 ? S - Ee : Ee - S, Z = De({
1107
+ } = fe(S, v, z), V = P ?? H;
1108
+ if (le(b, k)) {
1109
+ const oe = R.current.get(v.id), Ee = oe != null && oe >= V ? oe : V, Ue = ve(S, v) === S.length - 1 ? b - Ee : Ee - b, Z = De({
1110
1110
  delta: Ue,
1111
1111
  initialLayout: z,
1112
1112
  panelConstraints: w,
@@ -1114,7 +1114,7 @@ function Xt({
1114
1114
  prevLayout: z,
1115
1115
  trigger: "imperative-api"
1116
1116
  });
1117
- ke(z, Z) || (h(Z), C.current.layout = Z, E && E(Z), ye(b, Z, x.current));
1117
+ ke(z, Z) || (h(Z), C.current.layout = Z, E && E(Z), ye(S, Z, x.current));
1118
1118
  }
1119
1119
  }
1120
1120
  }, []), K = G((v) => {
@@ -1142,27 +1142,27 @@ function Xt({
1142
1142
  panelDataArray: E
1143
1143
  } = C.current, {
1144
1144
  collapsedSize: z = 0,
1145
- collapsible: b,
1145
+ collapsible: S,
1146
1146
  panelSize: w
1147
1147
  } = fe(E, v, P);
1148
- return I(w != null, `Panel size not found for panel "${v.id}"`), b === !0 && ae(w, z);
1148
+ return I(w != null, `Panel size not found for panel "${v.id}"`), S === !0 && le(w, z);
1149
1149
  }, []), U = G((v) => {
1150
1150
  const {
1151
1151
  layout: P,
1152
1152
  panelDataArray: E
1153
1153
  } = C.current, {
1154
1154
  collapsedSize: z = 0,
1155
- collapsible: b,
1155
+ collapsible: S,
1156
1156
  panelSize: w
1157
1157
  } = fe(E, v, P);
1158
- return I(w != null, `Panel size not found for panel "${v.id}"`), !b || he(w, z) > 0;
1158
+ return I(w != null, `Panel size not found for panel "${v.id}"`), !S || he(w, z) > 0;
1159
1159
  }, []), B = G((v) => {
1160
1160
  const {
1161
1161
  panelDataArray: P
1162
1162
  } = C.current;
1163
1163
  P.push(v), P.sort((E, z) => {
1164
- const b = E.order, w = z.order;
1165
- return b == null && w == null ? 0 : b == null ? -1 : w == null ? 1 : b - w;
1164
+ const S = E.order, w = z.order;
1165
+ return S == null && w == null ? 0 : S == null ? -1 : w == null ? 1 : S - w;
1166
1166
  }), C.current.panelDataArrayChanged = !0, A();
1167
1167
  }, [A]);
1168
1168
  ge(() => {
@@ -1174,21 +1174,21 @@ function Xt({
1174
1174
  storage: E
1175
1175
  } = L.current, {
1176
1176
  layout: z,
1177
- panelDataArray: b
1177
+ panelDataArray: S
1178
1178
  } = C.current;
1179
1179
  let w = null;
1180
1180
  if (v) {
1181
- const S = Pr(v, b, E);
1182
- S && (R.current = new Map(Object.entries(S.expandToSizes)), w = S.layout);
1181
+ const b = Pr(v, S, E);
1182
+ b && (R.current = new Map(Object.entries(b.expandToSizes)), w = b.layout);
1183
1183
  }
1184
- w == null && (w = Sr({
1185
- panelDataArray: b
1184
+ w == null && (w = br({
1185
+ panelDataArray: S
1186
1186
  }));
1187
- const k = bt({
1187
+ const k = St({
1188
1188
  layout: w,
1189
- panelConstraints: b.map((S) => S.constraints)
1189
+ panelConstraints: S.map((b) => b.constraints)
1190
1190
  });
1191
- yt(z, k) || (h(k), C.current.layout = k, P && P(k), ye(b, k, x.current));
1191
+ yt(z, k) || (h(k), C.current.layout = k, P && P(k), ye(S, k, x.current));
1192
1192
  }
1193
1193
  }), ge(() => {
1194
1194
  const v = C.current;
@@ -1199,14 +1199,14 @@ function Xt({
1199
1199
  const $ = G((v) => {
1200
1200
  let P = !1;
1201
1201
  const E = m.current;
1202
- return E && window.getComputedStyle(E, null).getPropertyValue("direction") === "rtl" && (P = !0), function(b) {
1203
- b.preventDefault();
1202
+ return E && window.getComputedStyle(E, null).getPropertyValue("direction") === "rtl" && (P = !0), function(S) {
1203
+ S.preventDefault();
1204
1204
  const w = m.current;
1205
1205
  if (!w)
1206
1206
  return () => null;
1207
1207
  const {
1208
1208
  direction: k,
1209
- dragState: S,
1209
+ dragState: b,
1210
1210
  id: H,
1211
1211
  keyboardResizeBy: Q,
1212
1212
  onLayout: V
@@ -1215,57 +1215,57 @@ function Xt({
1215
1215
  panelDataArray: Ee
1216
1216
  } = C.current, {
1217
1217
  initialLayout: _e
1218
- } = S ?? {}, Ue = Ot(H, v, w);
1219
- let Z = br(b, v, k, S, Q, w);
1218
+ } = b ?? {}, Ue = qt(H, v, w);
1219
+ let Z = Sr(S, v, k, b, Q, w);
1220
1220
  const ut = k === "horizontal";
1221
1221
  ut && P && (Z = -Z);
1222
- const Sn = Ee.map((xn) => xn.constraints), Ie = De({
1222
+ const bn = Ee.map((xn) => xn.constraints), Ie = De({
1223
1223
  delta: Z,
1224
1224
  initialLayout: _e ?? oe,
1225
- panelConstraints: Sn,
1225
+ panelConstraints: bn,
1226
1226
  pivotIndices: Ue,
1227
1227
  prevLayout: oe,
1228
- trigger: _t(b) ? "keyboard" : "mouse-or-touch"
1228
+ trigger: _t(S) ? "keyboard" : "mouse-or-touch"
1229
1229
  }), dt = !ke(oe, Ie);
1230
- (kt(b) || Tt(b)) && D.current != Z && (D.current = Z, !dt && Z !== 0 ? ut ? Xe(v, Z < 0 ? Vt : $t) : Xe(v, Z < 0 ? Ft : Kt) : Xe(v, 0)), dt && (h(Ie), C.current.layout = Ie, V && V(Ie), ye(Ee, Ie, x.current));
1230
+ (kt(S) || Tt(S)) && D.current != Z && (D.current = Z, !dt && Z !== 0 ? ut ? je(v, Z < 0 ? Vt : $t) : je(v, Z < 0 ? Ft : Kt) : je(v, 0)), dt && (h(Ie), C.current.layout = Ie, V && V(Ie), ye(Ee, Ie, x.current));
1231
1231
  };
1232
1232
  }, []), F = G((v, P) => {
1233
1233
  const {
1234
1234
  onLayout: E
1235
1235
  } = L.current, {
1236
1236
  layout: z,
1237
- panelDataArray: b
1238
- } = C.current, w = b.map((oe) => oe.constraints), {
1237
+ panelDataArray: S
1238
+ } = C.current, w = S.map((oe) => oe.constraints), {
1239
1239
  panelSize: k,
1240
- pivotIndices: S
1241
- } = fe(b, v, z);
1240
+ pivotIndices: b
1241
+ } = fe(S, v, z);
1242
1242
  I(k != null, `Panel size not found for panel "${v.id}"`);
1243
- const Q = ve(b, v) === b.length - 1 ? k - P : P - k, V = De({
1243
+ const Q = ve(S, v) === S.length - 1 ? k - P : P - k, V = De({
1244
1244
  delta: Q,
1245
1245
  initialLayout: z,
1246
1246
  panelConstraints: w,
1247
- pivotIndices: S,
1247
+ pivotIndices: b,
1248
1248
  prevLayout: z,
1249
1249
  trigger: "imperative-api"
1250
1250
  });
1251
- ke(z, V) || (h(V), C.current.layout = V, E && E(V), ye(b, V, x.current));
1252
- }, []), X = G((v, P) => {
1251
+ ke(z, V) || (h(V), C.current.layout = V, E && E(V), ye(S, V, x.current));
1252
+ }, []), j = G((v, P) => {
1253
1253
  const {
1254
1254
  layout: E,
1255
1255
  panelDataArray: z
1256
1256
  } = C.current, {
1257
- collapsedSize: b = 0,
1257
+ collapsedSize: S = 0,
1258
1258
  collapsible: w
1259
1259
  } = P, {
1260
1260
  collapsedSize: k = 0,
1261
- collapsible: S,
1261
+ collapsible: b,
1262
1262
  maxSize: H = 100,
1263
1263
  minSize: Q = 0
1264
1264
  } = v.constraints, {
1265
1265
  panelSize: V
1266
1266
  } = fe(z, v, E);
1267
- V != null && (w && S && ae(V, b) ? ae(b, k) || F(v, k) : V < Q ? F(v, Q) : V > H && F(v, H));
1268
- }, [F]), Y = G((v, P) => {
1267
+ V != null && (w && b && le(V, S) ? le(S, k) || F(v, k) : V < Q ? F(v, Q) : V > H && F(v, H));
1268
+ }, [F]), X = G((v, P) => {
1269
1269
  const {
1270
1270
  direction: E
1271
1271
  } = L.current, {
@@ -1273,12 +1273,12 @@ function Xt({
1273
1273
  } = C.current;
1274
1274
  if (!m.current)
1275
1275
  return;
1276
- const b = Oe(v, m.current);
1277
- I(b, `Drag handle element not found for id "${v}"`);
1276
+ const S = qe(v, m.current);
1277
+ I(S, `Drag handle element not found for id "${v}"`);
1278
1278
  const w = Ut(E, P);
1279
1279
  g({
1280
1280
  dragHandleId: v,
1281
- dragHandleRect: b.getBoundingClientRect(),
1281
+ dragHandleRect: S.getBoundingClientRect(),
1282
1282
  initialCursorPosition: w,
1283
1283
  initialLayout: z
1284
1284
  });
@@ -1289,8 +1289,8 @@ function Xt({
1289
1289
  panelDataArray: P
1290
1290
  } = C.current, E = ve(P, v);
1291
1291
  E >= 0 && (P.splice(E, 1), delete x.current[v.id], C.current.panelDataArrayChanged = !0, A());
1292
- }, [A]), le = W(() => ({
1293
- collapsePanel: j,
1292
+ }, [A]), ae = W(() => ({
1293
+ collapsePanel: Y,
1294
1294
  direction: r,
1295
1295
  dragState: p,
1296
1296
  expandPanel: J,
@@ -1299,15 +1299,15 @@ function Xt({
1299
1299
  groupId: c,
1300
1300
  isPanelCollapsed: _,
1301
1301
  isPanelExpanded: U,
1302
- reevaluatePanelConstraints: X,
1302
+ reevaluatePanelConstraints: j,
1303
1303
  registerPanel: B,
1304
1304
  registerResizeHandle: $,
1305
1305
  resizePanel: F,
1306
- startDragging: Y,
1306
+ startDragging: X,
1307
1307
  stopDragging: te,
1308
1308
  unregisterPanel: ce,
1309
1309
  panelGroupElement: m.current
1310
- }), [j, p, r, J, K, M, c, _, U, X, B, $, F, Y, te, ce]), re = {
1310
+ }), [Y, p, r, J, K, M, c, _, U, j, B, $, F, X, te, ce]), re = {
1311
1311
  display: "flex",
1312
1312
  flexDirection: r === "horizontal" ? "row" : "column",
1313
1313
  height: "100%",
@@ -1315,7 +1315,7 @@ function Xt({
1315
1315
  width: "100%"
1316
1316
  };
1317
1317
  return xe(Ke.Provider, {
1318
- value: le
1318
+ value: ae
1319
1319
  }, xe(f, {
1320
1320
  ...u,
1321
1321
  children: t,
@@ -1327,16 +1327,16 @@ function Xt({
1327
1327
  ...d
1328
1328
  },
1329
1329
  // CSS selectors
1330
- [q.group]: "",
1331
- [q.groupDirection]: r,
1332
- [q.groupId]: c
1330
+ [O.group]: "",
1331
+ [O.groupDirection]: r,
1332
+ [O.groupId]: c
1333
1333
  }));
1334
1334
  }
1335
- const Er = Fe((e, t) => xe(Xt, {
1335
+ const Er = Fe((e, t) => xe(jt, {
1336
1336
  ...e,
1337
1337
  forwardedRef: t
1338
1338
  }));
1339
- Xt.displayName = "PanelGroup";
1339
+ jt.displayName = "PanelGroup";
1340
1340
  Er.displayName = "forwardRef(PanelGroup)";
1341
1341
  function ve(e, t) {
1342
1342
  return e.findIndex((n) => n === t || n.id === t.id);
@@ -1358,7 +1358,7 @@ function Ir({
1358
1358
  ne(() => {
1359
1359
  if (e || n == null || r == null)
1360
1360
  return;
1361
- const i = Oe(t, r);
1361
+ const i = qe(t, r);
1362
1362
  if (i == null)
1363
1363
  return;
1364
1364
  const o = (s) => {
@@ -1375,12 +1375,12 @@ function Ir({
1375
1375
  }
1376
1376
  case "F6": {
1377
1377
  s.preventDefault();
1378
- const l = i.getAttribute(q.groupId);
1379
- I(l, `No group element found for id "${l}"`);
1380
- const a = Le(l, r), d = qt(l, t, r);
1378
+ const a = i.getAttribute(O.groupId);
1379
+ I(a, `No group element found for id "${a}"`);
1380
+ const l = Le(a, r), d = Ot(a, t, r);
1381
1381
  I(d !== null, `No resize element found for id "${t}"`);
1382
- const f = s.shiftKey ? d > 0 ? d - 1 : a.length - 1 : d + 1 < a.length ? d + 1 : 0;
1383
- a[f].focus();
1382
+ const f = s.shiftKey ? d > 0 ? d - 1 : l.length - 1 : d + 1 < l.length ? d + 1 : 0;
1383
+ l[f].focus();
1384
1384
  break;
1385
1385
  }
1386
1386
  }
@@ -1398,8 +1398,8 @@ function Rr({
1398
1398
  id: i,
1399
1399
  onBlur: o,
1400
1400
  onClick: s,
1401
- onDragging: l,
1402
- onFocus: a,
1401
+ onDragging: a,
1402
+ onFocus: l,
1403
1403
  onPointerDown: d,
1404
1404
  onPointerUp: f,
1405
1405
  style: u = {},
@@ -1408,14 +1408,14 @@ function Rr({
1408
1408
  ...p
1409
1409
  }) {
1410
1410
  var g, y;
1411
- const h = O(null), A = O({
1411
+ const h = q(null), A = q({
1412
1412
  onClick: s,
1413
- onDragging: l,
1413
+ onDragging: a,
1414
1414
  onPointerDown: d,
1415
1415
  onPointerUp: f
1416
1416
  });
1417
1417
  ne(() => {
1418
- A.current.onClick = s, A.current.onDragging = l, A.current.onPointerDown = d, A.current.onPointerUp = f;
1418
+ A.current.onClick = s, A.current.onDragging = a, A.current.onPointerDown = d, A.current.onPointerUp = f;
1419
1419
  });
1420
1420
  const x = rt(Ke);
1421
1421
  if (x === null)
@@ -1425,30 +1425,30 @@ function Rr({
1425
1425
  groupId: D,
1426
1426
  registerResizeHandle: L,
1427
1427
  startDragging: C,
1428
- stopDragging: j,
1428
+ stopDragging: Y,
1429
1429
  panelGroupElement: J
1430
- } = x, K = st(i), [M, _] = de("inactive"), [U, B] = de(!1), [$, F] = de(null), X = O({
1430
+ } = x, K = st(i), [M, _] = de("inactive"), [U, B] = de(!1), [$, F] = de(null), j = q({
1431
1431
  state: M
1432
1432
  });
1433
1433
  ge(() => {
1434
- X.current.state = M;
1434
+ j.current.state = M;
1435
1435
  }), ne(() => {
1436
1436
  if (n)
1437
1437
  F(null);
1438
1438
  else {
1439
- const le = L(K);
1440
- F(() => le);
1439
+ const ae = L(K);
1440
+ F(() => ae);
1441
1441
  }
1442
1442
  }, [n, K, L]);
1443
- const Y = (g = r == null ? void 0 : r.coarse) !== null && g !== void 0 ? g : 15, te = (y = r == null ? void 0 : r.fine) !== null && y !== void 0 ? y : 5;
1443
+ const X = (g = r == null ? void 0 : r.coarse) !== null && g !== void 0 ? g : 15, te = (y = r == null ? void 0 : r.fine) !== null && y !== void 0 ? y : 5;
1444
1444
  return ne(() => {
1445
1445
  if (n || $ == null)
1446
1446
  return;
1447
- const le = h.current;
1448
- I(le, "Element ref not attached");
1447
+ const ae = h.current;
1448
+ I(ae, "Element ref not attached");
1449
1449
  let re = !1;
1450
- return dr(K, le, R, {
1451
- coarse: Y,
1450
+ return dr(K, ae, R, {
1451
+ coarse: X,
1452
1452
  fine: te
1453
1453
  }, (P, E, z) => {
1454
1454
  if (!E) {
@@ -1459,32 +1459,32 @@ function Rr({
1459
1459
  case "down": {
1460
1460
  _("drag"), re = !1, I(z, 'Expected event to be defined for "down" action'), C(K, z);
1461
1461
  const {
1462
- onDragging: b,
1462
+ onDragging: S,
1463
1463
  onPointerDown: w
1464
1464
  } = A.current;
1465
- b == null || b(!0), w == null || w();
1465
+ S == null || S(!0), w == null || w();
1466
1466
  break;
1467
1467
  }
1468
1468
  case "move": {
1469
1469
  const {
1470
- state: b
1471
- } = X.current;
1472
- re = !0, b !== "drag" && _("hover"), I(z, 'Expected event to be defined for "move" action'), $(z);
1470
+ state: S
1471
+ } = j.current;
1472
+ re = !0, S !== "drag" && _("hover"), I(z, 'Expected event to be defined for "move" action'), $(z);
1473
1473
  break;
1474
1474
  }
1475
1475
  case "up": {
1476
- _("hover"), j();
1476
+ _("hover"), Y();
1477
1477
  const {
1478
- onClick: b,
1478
+ onClick: S,
1479
1479
  onDragging: w,
1480
1480
  onPointerUp: k
1481
1481
  } = A.current;
1482
- w == null || w(!1), k == null || k(), re || b == null || b();
1482
+ w == null || w(!1), k == null || k(), re || S == null || S();
1483
1483
  break;
1484
1484
  }
1485
1485
  }
1486
1486
  });
1487
- }, [Y, R, n, te, L, K, $, C, j]), Ir({
1487
+ }, [X, R, n, te, L, K, $, C, Y]), Ir({
1488
1488
  disabled: n,
1489
1489
  handleId: K,
1490
1490
  resizeHandler: $,
@@ -1498,7 +1498,7 @@ function Rr({
1498
1498
  B(!1), o == null || o();
1499
1499
  },
1500
1500
  onFocus: () => {
1501
- B(!0), a == null || a();
1501
+ B(!0), l == null || l();
1502
1502
  },
1503
1503
  ref: h,
1504
1504
  role: "separator",
@@ -1511,23 +1511,23 @@ function Rr({
1511
1511
  },
1512
1512
  tabIndex: c,
1513
1513
  // CSS selectors
1514
- [q.groupDirection]: R,
1515
- [q.groupId]: D,
1516
- [q.resizeHandle]: "",
1517
- [q.resizeHandleActive]: M === "drag" ? "pointer" : U ? "keyboard" : void 0,
1518
- [q.resizeHandleEnabled]: !n,
1519
- [q.resizeHandleId]: K,
1520
- [q.resizeHandleState]: M
1514
+ [O.groupDirection]: R,
1515
+ [O.groupId]: D,
1516
+ [O.resizeHandle]: "",
1517
+ [O.resizeHandleActive]: M === "drag" ? "pointer" : U ? "keyboard" : void 0,
1518
+ [O.resizeHandleEnabled]: !n,
1519
+ [O.resizeHandleId]: K,
1520
+ [O.resizeHandleState]: M
1521
1521
  });
1522
1522
  }
1523
1523
  Rr.displayName = "PanelResizeHandle";
1524
1524
  function Qt() {
1525
- var a, d;
1525
+ var l, d;
1526
1526
  const e = ie((f) => f.card), t = ie((f) => f.frame), n = W(
1527
1527
  () => Wn(t, e),
1528
1528
  [t, e]
1529
1529
  ), { manifest: r } = Pt(
1530
- ((a = n == null ? void 0 : n.customCardPreferences) == null ? void 0 : a.url) || ""
1530
+ ((l = n == null ? void 0 : n.customCardPreferences) == null ? void 0 : l.url) || ""
1531
1531
  ), i = W(
1532
1532
  () => {
1533
1533
  var f;
@@ -1546,17 +1546,17 @@ function Qt() {
1546
1546
  isMultiInputVisual: o === "multiple"
1547
1547
  }),
1548
1548
  [t, n, o]
1549
- ), l = W(() => {
1549
+ ), a = W(() => {
1550
1550
  const f = s.findIndex(
1551
1551
  (u) => (u == null ? void 0 : u.id) === e.id
1552
1552
  );
1553
1553
  return f < 0 ? -1 : Je(e, f);
1554
1554
  }, [s, e]);
1555
- return W(() => !n || o !== "multiple" || l < 0 ? e.type : Te(
1555
+ return W(() => !n || o !== "multiple" || a < 0 ? e.type : Te(
1556
1556
  e,
1557
- l,
1557
+ a,
1558
1558
  i == null ? void 0 : i.slots
1559
- ) ?? e.type, [n, o, l, e, i == null ? void 0 : i.slots]);
1559
+ ) ?? e.type, [n, o, a, e, i == null ? void 0 : i.slots]);
1560
1560
  }
1561
1561
  function Jt({
1562
1562
  storeValue: e,
@@ -1564,14 +1564,14 @@ function Jt({
1564
1564
  onStoreUpdate: n,
1565
1565
  delay: r = 300
1566
1566
  }) {
1567
- const [i, o] = de(e ?? t), s = O(null), l = O(i), a = O(e), d = O(!1), f = G(() => {
1568
- s.current && (clearTimeout(s.current), s.current = null), d.current && l.current !== (a.current ?? t) && (n(l.current), a.current = l.current);
1567
+ const [i, o] = de(e ?? t), s = q(null), a = q(i), l = q(e), d = q(!1), f = G(() => {
1568
+ s.current && (clearTimeout(s.current), s.current = null), d.current && a.current !== (l.current ?? t) && (n(a.current), l.current = a.current);
1569
1569
  }, [t, n]);
1570
1570
  ne(() => {
1571
- if (e !== a.current) {
1571
+ if (e !== l.current) {
1572
1572
  s.current && (clearTimeout(s.current), s.current = null);
1573
1573
  const c = e ?? t;
1574
- o(c), l.current = c, a.current = e, d.current = !1;
1574
+ o(c), a.current = c, l.current = e, d.current = !1;
1575
1575
  }
1576
1576
  }, [e, t]), ne(() => {
1577
1577
  if (d.current)
@@ -1586,7 +1586,7 @@ function Jt({
1586
1586
  const u = G(
1587
1587
  (c) => {
1588
1588
  const m = c ?? t;
1589
- d.current = !0, l.current = m, o(m);
1589
+ d.current = !0, a.current = m, o(m);
1590
1590
  },
1591
1591
  [t]
1592
1592
  );
@@ -1603,9 +1603,9 @@ function Zt({
1603
1603
  }
1604
1604
  const Dr = 300;
1605
1605
  function Ar({ className: e }, t) {
1606
- 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 = W(() => o !== i.type ? { ...i, type: o } : i, [i, o]), { queryKey: f } = ot(d), u = Ct(), c = O(f);
1606
+ const n = ie((x) => x.card.sql), r = ie((x) => x.sqlGen), i = ie((x) => x.card), o = Qt(), { setCardSql: s, setSqlGen: a, setRunSql: l } = wt(), d = W(() => o !== i.type ? { ...i, type: o } : i, [i, o]), { queryKey: f } = ot(d), u = Ct(), c = q(f);
1607
1607
  c.current = f;
1608
- const m = O(r);
1608
+ const m = q(r);
1609
1609
  m.current = r;
1610
1610
  const p = G(
1611
1611
  (x) => {
@@ -1624,7 +1624,7 @@ function Ar({ className: e }, t) {
1624
1624
  });
1625
1625
  ne(() => Et(h), [h]);
1626
1626
  function A(x) {
1627
- y(x), Yn(m.current) || l({});
1627
+ y(x), Xn(m.current) || a({});
1628
1628
  }
1629
1629
  return /* @__PURE__ */ N("div", { className: "relative h-full w-full", children: /* @__PURE__ */ N(
1630
1630
  It,
@@ -1642,7 +1642,7 @@ function Ar({ className: e }, t) {
1642
1642
  x.key === "Enter" && x.shiftKey && (x.preventDefault(), Zt({
1643
1643
  queryClient: u,
1644
1644
  readQueryKey: () => c.current,
1645
- setRunSql: a
1645
+ setRunSql: l
1646
1646
  }));
1647
1647
  }
1648
1648
  }
@@ -1653,8 +1653,8 @@ const Po = Fe(Ar), Nr = 300, Mr = `# 'data' holds the SQL result.
1653
1653
  # import pandas as pd
1654
1654
  # result = pd.DataFrame(data).to_dict('records')`;
1655
1655
  function Lr({ className: e }, t) {
1656
- const n = ie((p) => p.card.python), r = ie((p) => p.card), i = Qt(), { setCardPython: o, setRunSql: s } = wt(), l = W(() => i !== r.type ? { ...r, type: i } : r, [r, i]), { queryKey: a } = ot(l), d = Ct(), f = O(a);
1657
- f.current = a;
1656
+ const n = ie((p) => p.card.python), r = ie((p) => p.card), i = Qt(), { setCardPython: o, setRunSql: s } = wt(), a = W(() => i !== r.type ? { ...r, type: i } : r, [r, i]), { queryKey: l } = ot(a), d = Ct(), f = q(l);
1657
+ f.current = l;
1658
1658
  const { value: u, onChange: c, flush: m } = Jt({
1659
1659
  storeValue: n,
1660
1660
  onStoreUpdate: o,
@@ -1688,35 +1688,35 @@ function Lr({ className: e }, t) {
1688
1688
  }
1689
1689
  const wo = Fe(Lr);
1690
1690
  function _r({ card: e }) {
1691
- var E, z, b, w, k;
1692
- const t = Dn(), [n, r] = de({}), { authToken: i } = An(), o = jn(i == null ? void 0 : i.accessToken), { compiledAppearance: s } = Jn(), l = W(
1691
+ var E, z, S, w, k;
1692
+ const t = Dn(), [n, r] = de({}), { authToken: i } = An(), o = Yn(i == null ? void 0 : i.accessToken), { compiledAppearance: s } = Jn(), a = W(
1693
1693
  () => Nn(s),
1694
1694
  [s]
1695
- ), a = ie((S) => S.frame), d = ie(
1696
- (S) => S.inlineFilterValuesMap[e.id]
1695
+ ), l = ie((b) => b.frame), d = ie(
1696
+ (b) => b.inlineFilterValuesMap[e.id]
1697
1697
  ), f = ie(
1698
- (S) => S.actions.setCardInlineFilterValue
1698
+ (b) => b.actions.setCardInlineFilterValue
1699
1699
  ), u = ie(
1700
- (S) => S.actions.removeCardInlineFilterValue
1700
+ (b) => b.actions.removeCardInlineFilterValue
1701
1701
  ), c = e, { getCard: m, manifest: p } = Pt(
1702
1702
  ((E = c.customCardPreferences) == null ? void 0 : E.url) || ""
1703
1703
  ), g = (z = p == null ? void 0 : p.visuals) == null ? void 0 : z.find(
1704
- (S) => {
1704
+ (b) => {
1705
1705
  var H;
1706
- return S.name === ((H = c.customCardPreferences) == null ? void 0 : H.componentName);
1706
+ return b.name === ((H = c.customCardPreferences) == null ? void 0 : H.componentName);
1707
1707
  }
1708
1708
  ), y = Nt(c, g) ?? "single", h = W(
1709
1709
  () => Mt({
1710
- frame: a,
1710
+ frame: l,
1711
1711
  configCard: c,
1712
1712
  isMultiInputVisual: y === "multiple"
1713
1713
  }),
1714
- [a, c, y]
1714
+ [l, c, y]
1715
1715
  ), A = W(() => {
1716
- const S = h.findIndex(
1716
+ const b = h.findIndex(
1717
1717
  (H) => (H == null ? void 0 : H.id) === e.id
1718
1718
  );
1719
- return S < 0 ? -1 : Je(e, S);
1719
+ return b < 0 ? -1 : Je(e, b);
1720
1720
  }, [h, e]), x = W(() => y !== "multiple" || A < 0 ? e.type : Te(
1721
1721
  e,
1722
1722
  A,
@@ -1729,22 +1729,22 @@ function _r({ card: e }) {
1729
1729
  python: "",
1730
1730
  config: void 0,
1731
1731
  queryConfig: void 0
1732
- } : x !== e.type ? { ...e, type: x } : e, [e, x, y]), { data: D, effectiveCardConfig: L, renderCard: C } = ot(R), j = Mn(), J = Re((S) => S.dashboard), K = Re(
1733
- (S) => S.dashboardInputValues
1732
+ } : x !== e.type ? { ...e, type: x } : e, [e, x, y]), { data: D, effectiveCardConfig: L, renderCard: C } = ot(R), Y = Mn(), J = Re((b) => b.dashboard), K = Re(
1733
+ (b) => b.dashboardInputValues
1734
1734
  ), M = Re(
1735
- (S) => S.adHocFilterValues
1735
+ (b) => b.adHocFilterValues
1736
1736
  ), _ = Re(
1737
- (S) => {
1737
+ (b) => {
1738
1738
  var H;
1739
- return ((H = S.reportContext) == null ? void 0 : H.calendar) ?? null;
1739
+ return ((H = b.reportContext) == null ? void 0 : H.calendar) ?? null;
1740
1740
  }
1741
- ), U = Re((S) => S.selectedSheetId), B = W(
1741
+ ), U = Re((b) => b.selectedSheetId), B = W(
1742
1742
  () => Ln({
1743
1743
  card: e,
1744
1744
  sheetId: U || "",
1745
1745
  inlineFilterValues: d,
1746
- setInlineFilterValue: (S) => f(e.id, S),
1747
- removeInlineFilterValue: (S) => u(e.id, S)
1746
+ setInlineFilterValue: (b) => f(e.id, b),
1747
+ removeInlineFilterValue: (b) => u(e.id, b)
1748
1748
  }),
1749
1749
  [
1750
1750
  e,
@@ -1756,7 +1756,7 @@ function _r({ card: e }) {
1756
1756
  ), {
1757
1757
  filterInputs: $,
1758
1758
  filters: F,
1759
- filterValues: X
1759
+ filterValues: j
1760
1760
  } = W(
1761
1761
  () => _n({
1762
1762
  dashboard: J,
@@ -1764,7 +1764,7 @@ function _r({ card: e }) {
1764
1764
  sheetId: U,
1765
1765
  dashboardInputValues: K,
1766
1766
  adHocFilterValues: M,
1767
- transientContexts: j,
1767
+ transientContexts: Y,
1768
1768
  calendar: _
1769
1769
  }),
1770
1770
  [
@@ -1774,18 +1774,18 @@ function _r({ card: e }) {
1774
1774
  _,
1775
1775
  J,
1776
1776
  U,
1777
- j
1777
+ Y
1778
1778
  ]
1779
- ), Y = G(
1780
- (S, H) => {
1781
- const Q = Xn(H);
1779
+ ), X = G(
1780
+ (b, H) => {
1781
+ const Q = jn(H);
1782
1782
  r((V) => ({
1783
1783
  ...V,
1784
- [S]: Q
1784
+ [b]: Q
1785
1785
  }));
1786
1786
  },
1787
1787
  []
1788
- ), te = (b = c.customCardPreferences) == null ? void 0 : b.componentName, ce = te ? m(te) : null, le = kn(
1788
+ ), te = (S = c.customCardPreferences) == null ? void 0 : S.componentName, ce = te ? m(te) : null, ae = kn(
1789
1789
  (w = c.customCardPreferences) == null ? void 0 : w.settings,
1790
1790
  c
1791
1791
  ), re = W(
@@ -1793,8 +1793,8 @@ function _r({ card: e }) {
1793
1793
  [h]
1794
1794
  ), v = W(
1795
1795
  () => re.map(
1796
- (S, H) => Te(
1797
- S,
1796
+ (b, H) => Te(
1797
+ b,
1798
1798
  H,
1799
1799
  g == null ? void 0 : g.slots
1800
1800
  )
@@ -1837,61 +1837,61 @@ function _r({ card: e }) {
1837
1837
  {
1838
1838
  editing: !0,
1839
1839
  params: o,
1840
- theme: l,
1841
- settings: le,
1840
+ theme: a,
1841
+ settings: ae,
1842
1842
  cardMetadata: Vn({
1843
1843
  // Its formats as its rows render, live model formats included (CF-D17).
1844
1844
  card: C,
1845
1845
  dataMetadata: D == null ? void 0 : D.metadata
1846
1846
  }),
1847
- onDataChange: Y,
1847
+ onDataChange: X,
1848
1848
  data: (D == null ? void 0 : D.records) || [],
1849
1849
  columns: (D == null ? void 0 : D.columns) || [],
1850
1850
  formatTemporalBucketValue: P,
1851
1851
  filterInputs: $,
1852
1852
  filters: F,
1853
1853
  filterValues: [
1854
- ...X || [],
1854
+ ...j || [],
1855
1855
  ...d || []
1856
1856
  ],
1857
1857
  inlineFilters: B
1858
1858
  }
1859
1859
  ),
1860
1860
  ce && y === "multiple" && /* @__PURE__ */ Ne(ft, { children: [
1861
- h.map((S, H) => {
1862
- if (!S) return null;
1863
- const Q = Je(S, H), V = Te(
1864
- S,
1861
+ h.map((b, H) => {
1862
+ if (!b) return null;
1863
+ const Q = Je(b, H), V = Te(
1864
+ b,
1865
1865
  Q,
1866
1866
  g == null ? void 0 : g.slots
1867
1867
  );
1868
1868
  return /* @__PURE__ */ N(
1869
1869
  $n,
1870
1870
  {
1871
- onDataChange: Y,
1872
- card: S,
1871
+ onDataChange: X,
1872
+ card: b,
1873
1873
  effectiveCardType: V
1874
1874
  },
1875
- `${S.id}-${Q}`
1875
+ `${b.id}-${Q}`
1876
1876
  );
1877
1877
  }),
1878
1878
  /* @__PURE__ */ N("div", { className: "flex flex-col gap-2", children: /* @__PURE__ */ N(
1879
1879
  ce,
1880
1880
  {
1881
1881
  editing: !0,
1882
- onDataChange: Y,
1882
+ onDataChange: X,
1883
1883
  ...Fn({
1884
1884
  configCard: c,
1885
1885
  slotOrderedCards: re,
1886
1886
  slotTypes: v,
1887
1887
  multiInputData: n,
1888
1888
  params: o,
1889
- theme: l,
1890
- chartSettings: le,
1889
+ theme: a,
1890
+ chartSettings: ae,
1891
1891
  filterInputs: $,
1892
1892
  filters: F,
1893
1893
  filterValues: [
1894
- ...X || [],
1894
+ ...j || [],
1895
1895
  ...d || []
1896
1896
  ],
1897
1897
  inlineFilters: B,
@@ -1907,7 +1907,7 @@ function _r({ card: e }) {
1907
1907
  }
1908
1908
  const Co = wn(_r);
1909
1909
  var en = "Toggle", tn = T.forwardRef((e, t) => {
1910
- const { pressed: n, defaultPressed: r, onPressedChange: i, ...o } = e, [s, l] = Rt({
1910
+ const { pressed: n, defaultPressed: r, onPressedChange: i, ...o } = e, [s, a] = Rt({
1911
1911
  prop: n,
1912
1912
  onChange: i,
1913
1913
  defaultProp: r ?? !1,
@@ -1923,7 +1923,7 @@ var en = "Toggle", tn = T.forwardRef((e, t) => {
1923
1923
  ...o,
1924
1924
  ref: t,
1925
1925
  onClick: me(e.onClick, () => {
1926
- e.disabled || l(!s);
1926
+ e.disabled || a(!s);
1927
1927
  })
1928
1928
  }
1929
1929
  );
@@ -2004,9 +2004,9 @@ var rn = ["PageUp", "PageDown"], on = ["ArrowUp", "ArrowDown", "ArrowLeft", "Arr
2004
2004
  "from-right": ["Home", "PageDown", "ArrowDown", "ArrowRight"],
2005
2005
  "from-bottom": ["Home", "PageDown", "ArrowDown", "ArrowLeft"],
2006
2006
  "from-top": ["Home", "PageDown", "ArrowUp", "ArrowLeft"]
2007
- }, Ce = "Slider", [et, Kr, Br] = qn(Ce), [ln] = Bn(Ce, [
2007
+ }, Ce = "Slider", [et, Kr, Br] = On(Ce), [an] = Bn(Ce, [
2008
2008
  Br
2009
- ]), [qr, Ge] = ln(Ce), an = T.forwardRef(
2009
+ ]), [Or, Ge] = an(Ce), ln = T.forwardRef(
2010
2010
  (e, t) => {
2011
2011
  const {
2012
2012
  name: n,
@@ -2014,8 +2014,8 @@ var rn = ["PageUp", "PageDown"], on = ["ArrowUp", "ArrowDown", "ArrowLeft", "Arr
2014
2014
  max: i = 100,
2015
2015
  step: o = 1,
2016
2016
  orientation: s = "horizontal",
2017
- disabled: l = !1,
2018
- minStepsBetweenThumbs: a = 0,
2017
+ disabled: a = !1,
2018
+ minStepsBetweenThumbs: l = 0,
2019
2019
  defaultValue: d = [r],
2020
2020
  value: f,
2021
2021
  onValueChange: u = () => {
@@ -2025,7 +2025,7 @@ var rn = ["PageUp", "PageDown"], on = ["ArrowUp", "ArrowDown", "ArrowLeft", "Arr
2025
2025
  inverted: m = !1,
2026
2026
  form: p,
2027
2027
  ...g
2028
- } = e, y = T.useRef(/* @__PURE__ */ new Set()), h = T.useRef(0), x = s === "horizontal" ? Or : Gr, [R = [], D] = Rt({
2028
+ } = e, y = T.useRef(/* @__PURE__ */ new Set()), h = T.useRef(0), x = s === "horizontal" ? qr : Gr, [R = [], D] = Rt({
2029
2029
  prop: f,
2030
2030
  defaultProp: d,
2031
2031
  onChange: (M) => {
@@ -2034,10 +2034,10 @@ var rn = ["PageUp", "PageDown"], on = ["ArrowUp", "ArrowDown", "ArrowLeft", "Arr
2034
2034
  }
2035
2035
  }), L = T.useRef(R);
2036
2036
  function C(M) {
2037
- const _ = Xr(R, M);
2037
+ const _ = jr(R, M);
2038
2038
  K(M, _);
2039
2039
  }
2040
- function j(M) {
2040
+ function Y(M) {
2041
2041
  K(M, h.current);
2042
2042
  }
2043
2043
  function J() {
@@ -2046,22 +2046,22 @@ var rn = ["PageUp", "PageDown"], on = ["ArrowUp", "ArrowDown", "ArrowLeft", "Arr
2046
2046
  }
2047
2047
  function K(M, _, { commit: U } = { commit: !1 }) {
2048
2048
  const B = eo(o), $ = to(Math.round((M - r) / o) * o + r, B), F = At($, [r, i]);
2049
- D((X = []) => {
2050
- const Y = Yr(X, F, _);
2051
- if (Zr(Y, a * o)) {
2052
- h.current = Y.indexOf(F);
2053
- const te = String(Y) !== String(X);
2054
- return te && U && c(Y), te ? Y : X;
2049
+ D((j = []) => {
2050
+ const X = Xr(j, F, _);
2051
+ if (Zr(X, l * o)) {
2052
+ h.current = X.indexOf(F);
2053
+ const te = String(X) !== String(j);
2054
+ return te && U && c(X), te ? X : j;
2055
2055
  } else
2056
- return X;
2056
+ return j;
2057
2057
  });
2058
2058
  }
2059
2059
  return /* @__PURE__ */ N(
2060
- qr,
2060
+ Or,
2061
2061
  {
2062
2062
  scope: e.__scopeSlider,
2063
2063
  name: n,
2064
- disabled: l,
2064
+ disabled: a,
2065
2065
  min: r,
2066
2066
  max: i,
2067
2067
  valueIndexToChangeRef: h,
@@ -2072,25 +2072,25 @@ var rn = ["PageUp", "PageDown"], on = ["ArrowUp", "ArrowDown", "ArrowLeft", "Arr
2072
2072
  children: /* @__PURE__ */ N(et.Provider, { scope: e.__scopeSlider, children: /* @__PURE__ */ N(et.Slot, { scope: e.__scopeSlider, children: /* @__PURE__ */ N(
2073
2073
  x,
2074
2074
  {
2075
- "aria-disabled": l,
2076
- "data-disabled": l ? "" : void 0,
2075
+ "aria-disabled": a,
2076
+ "data-disabled": a ? "" : void 0,
2077
2077
  ...g,
2078
2078
  ref: t,
2079
2079
  onPointerDown: me(g.onPointerDown, () => {
2080
- l || (L.current = R);
2080
+ a || (L.current = R);
2081
2081
  }),
2082
2082
  min: r,
2083
2083
  max: i,
2084
2084
  inverted: m,
2085
- onSlideStart: l ? void 0 : C,
2086
- onSlideMove: l ? void 0 : j,
2087
- onSlideEnd: l ? void 0 : J,
2088
- onHomeKeyDown: () => !l && K(r, 0, { commit: !0 }),
2089
- onEndKeyDown: () => !l && K(i, R.length - 1, { commit: !0 }),
2085
+ onSlideStart: a ? void 0 : C,
2086
+ onSlideMove: a ? void 0 : Y,
2087
+ onSlideEnd: a ? void 0 : J,
2088
+ onHomeKeyDown: () => !a && K(r, 0, { commit: !0 }),
2089
+ onEndKeyDown: () => !a && K(i, R.length - 1, { commit: !0 }),
2090
2090
  onStepKeyDown: ({ event: M, direction: _ }) => {
2091
- if (!l) {
2092
- const $ = rn.includes(M.key) || M.shiftKey && on.includes(M.key) ? 10 : 1, F = h.current, X = R[F], Y = o * $ * _;
2093
- K(X + Y, F, { commit: !0 });
2091
+ if (!a) {
2092
+ const $ = rn.includes(M.key) || M.shiftKey && on.includes(M.key) ? 10 : 1, F = h.current, j = R[F], X = o * $ * _;
2093
+ K(j + X, F, { commit: !0 });
2094
2094
  }
2095
2095
  }
2096
2096
  }
@@ -2099,13 +2099,13 @@ var rn = ["PageUp", "PageDown"], on = ["ArrowUp", "ArrowDown", "ArrowLeft", "Arr
2099
2099
  );
2100
2100
  }
2101
2101
  );
2102
- an.displayName = Ce;
2103
- var [cn, un] = ln(Ce, {
2102
+ ln.displayName = Ce;
2103
+ var [cn, un] = an(Ce, {
2104
2104
  startEdge: "left",
2105
2105
  endEdge: "right",
2106
2106
  size: "width",
2107
2107
  direction: 1
2108
- }), Or = T.forwardRef(
2108
+ }), qr = T.forwardRef(
2109
2109
  (e, t) => {
2110
2110
  const {
2111
2111
  min: n,
@@ -2113,11 +2113,11 @@ var [cn, un] = ln(Ce, {
2113
2113
  dir: i,
2114
2114
  inverted: o,
2115
2115
  onSlideStart: s,
2116
- onSlideMove: l,
2117
- onSlideEnd: a,
2116
+ onSlideMove: a,
2117
+ onSlideEnd: l,
2118
2118
  onStepKeyDown: d,
2119
2119
  ...f
2120
- } = e, [u, c] = T.useState(null), m = Pe(t, (x) => c(x)), p = T.useRef(void 0), g = On(i), y = g === "ltr", h = y && !o || !y && o;
2120
+ } = e, [u, c] = T.useState(null), m = Pe(t, (x) => c(x)), p = T.useRef(void 0), g = qn(i), y = g === "ltr", h = y && !o || !y && o;
2121
2121
  function A(x) {
2122
2122
  const R = p.current || u.getBoundingClientRect(), D = [0, R.width], C = ct(D, h ? [n, r] : [r, n]);
2123
2123
  return p.current = R, C(x - R.left);
@@ -2147,10 +2147,10 @@ var [cn, un] = ln(Ce, {
2147
2147
  },
2148
2148
  onSlideMove: (x) => {
2149
2149
  const R = A(x.clientX);
2150
- l == null || l(R);
2150
+ a == null || a(R);
2151
2151
  },
2152
2152
  onSlideEnd: () => {
2153
- p.current = void 0, a == null || a();
2153
+ p.current = void 0, l == null || l();
2154
2154
  },
2155
2155
  onStepKeyDown: (x) => {
2156
2156
  const D = sn[h ? "from-left" : "from-right"].includes(x.key);
@@ -2169,8 +2169,8 @@ var [cn, un] = ln(Ce, {
2169
2169
  inverted: i,
2170
2170
  onSlideStart: o,
2171
2171
  onSlideMove: s,
2172
- onSlideEnd: l,
2173
- onStepKeyDown: a,
2172
+ onSlideEnd: a,
2173
+ onStepKeyDown: l,
2174
2174
  ...d
2175
2175
  } = e, f = T.useRef(null), u = Pe(t, f), c = T.useRef(void 0), m = !i;
2176
2176
  function p(g) {
@@ -2204,11 +2204,11 @@ var [cn, un] = ln(Ce, {
2204
2204
  s == null || s(y);
2205
2205
  },
2206
2206
  onSlideEnd: () => {
2207
- c.current = void 0, l == null || l();
2207
+ c.current = void 0, a == null || a();
2208
2208
  },
2209
2209
  onStepKeyDown: (g) => {
2210
2210
  const h = sn[m ? "from-bottom" : "from-top"].includes(g.key);
2211
- a == null || a({ event: g, direction: h ? -1 : 1 });
2211
+ l == null || l({ event: g, direction: h ? -1 : 1 });
2212
2212
  }
2213
2213
  }
2214
2214
  )
@@ -2223,8 +2223,8 @@ var [cn, un] = ln(Ce, {
2223
2223
  onSlideMove: i,
2224
2224
  onSlideEnd: o,
2225
2225
  onHomeKeyDown: s,
2226
- onEndKeyDown: l,
2227
- onStepKeyDown: a,
2226
+ onEndKeyDown: a,
2227
+ onStepKeyDown: l,
2228
2228
  ...d
2229
2229
  } = e, f = Ge(Ce, n);
2230
2230
  return /* @__PURE__ */ N(
@@ -2233,7 +2233,7 @@ var [cn, un] = ln(Ce, {
2233
2233
  ...d,
2234
2234
  ref: t,
2235
2235
  onKeyDown: me(e.onKeyDown, (u) => {
2236
- u.key === "Home" ? (s(u), u.preventDefault()) : u.key === "End" ? (l(u), u.preventDefault()) : rn.concat(on).includes(u.key) && (a(u), u.preventDefault());
2236
+ u.key === "Home" ? (s(u), u.preventDefault()) : u.key === "End" ? (a(u), u.preventDefault()) : rn.concat(on).includes(u.key) && (l(u), u.preventDefault());
2237
2237
  }),
2238
2238
  onPointerDown: me(e.onPointerDown, (u) => {
2239
2239
  const c = u.target;
@@ -2266,16 +2266,16 @@ var [cn, un] = ln(Ce, {
2266
2266
  pn.displayName = fn;
2267
2267
  var tt = "SliderRange", mn = T.forwardRef(
2268
2268
  (e, t) => {
2269
- 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(
2269
+ const { __scopeSlider: n, ...r } = e, i = Ge(tt, n), o = un(tt, n), s = T.useRef(null), a = Pe(t, s), l = i.values.length, d = i.values.map(
2270
2270
  (c) => yn(c, i.min, i.max)
2271
- ), f = a > 1 ? Math.min(...d) : 0, u = 100 - Math.max(...d);
2271
+ ), f = l > 1 ? Math.min(...d) : 0, u = 100 - Math.max(...d);
2272
2272
  return /* @__PURE__ */ N(
2273
2273
  ze.span,
2274
2274
  {
2275
2275
  "data-orientation": i.orientation,
2276
2276
  "data-disabled": i.disabled ? "" : void 0,
2277
2277
  ...r,
2278
- ref: l,
2278
+ ref: a,
2279
2279
  style: {
2280
2280
  ...e.style,
2281
2281
  [o.startEdge]: f + "%",
@@ -2288,27 +2288,27 @@ var tt = "SliderRange", mn = T.forwardRef(
2288
2288
  mn.displayName = tt;
2289
2289
  var nt = "SliderThumb", gn = T.forwardRef(
2290
2290
  (e, t) => {
2291
- const n = Kr(e.__scopeSlider), [r, i] = T.useState(null), o = Pe(t, (l) => i(l)), s = T.useMemo(
2292
- () => r ? n().findIndex((l) => l.ref.current === r) : -1,
2291
+ const n = Kr(e.__scopeSlider), [r, i] = T.useState(null), o = Pe(t, (a) => i(a)), s = T.useMemo(
2292
+ () => r ? n().findIndex((a) => a.ref.current === r) : -1,
2293
2293
  [n, r]
2294
2294
  );
2295
2295
  return /* @__PURE__ */ N(Ur, { ...e, ref: o, index: s });
2296
2296
  }
2297
2297
  ), Ur = T.forwardRef(
2298
2298
  (e, t) => {
2299
- 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 = Gn(a), m = s.values[r], p = m === void 0 ? 0 : yn(m, s.min, s.max), g = jr(r, s.values.length), y = c == null ? void 0 : c[l.size], h = y ? Qr(y, p, l.direction) : 0;
2299
+ const { __scopeSlider: n, index: r, name: i, ...o } = e, s = Ge(nt, n), a = un(nt, n), [l, d] = T.useState(null), f = Pe(t, (A) => d(A)), u = l ? s.form || !!l.closest("form") : !0, c = Gn(l), m = s.values[r], p = m === void 0 ? 0 : yn(m, s.min, s.max), g = Yr(r, s.values.length), y = c == null ? void 0 : c[a.size], h = y ? Qr(y, p, a.direction) : 0;
2300
2300
  return T.useEffect(() => {
2301
- if (a)
2302
- return s.thumbs.add(a), () => {
2303
- s.thumbs.delete(a);
2301
+ if (l)
2302
+ return s.thumbs.add(l), () => {
2303
+ s.thumbs.delete(l);
2304
2304
  };
2305
- }, [a, s.thumbs]), /* @__PURE__ */ Ne(
2305
+ }, [l, s.thumbs]), /* @__PURE__ */ Ne(
2306
2306
  "span",
2307
2307
  {
2308
2308
  style: {
2309
2309
  transform: "var(--radix-slider-thumb-transform)",
2310
2310
  position: "absolute",
2311
- [l.startEdge]: `calc(${p}% + ${h}px)`
2311
+ [a.startEdge]: `calc(${p}% + ${h}px)`
2312
2312
  },
2313
2313
  children: [
2314
2314
  /* @__PURE__ */ N(et.ItemSlot, { scope: e.__scopeSlider, children: /* @__PURE__ */ N(
@@ -2350,12 +2350,12 @@ var Wr = "RadioBubbleInput", hn = T.forwardRef(
2350
2350
  ({ __scopeSlider: e, value: t, ...n }, r) => {
2351
2351
  const i = T.useRef(null), o = Pe(i, r), s = Un(t);
2352
2352
  return T.useEffect(() => {
2353
- const l = i.current;
2354
- if (!l) return;
2355
- const a = window.HTMLInputElement.prototype, f = Object.getOwnPropertyDescriptor(a, "value").set;
2353
+ const a = i.current;
2354
+ if (!a) return;
2355
+ const l = window.HTMLInputElement.prototype, f = Object.getOwnPropertyDescriptor(l, "value").set;
2356
2356
  if (s !== t && f) {
2357
2357
  const u = new Event("input", { bubbles: !0 });
2358
- f.call(l, t), l.dispatchEvent(u);
2358
+ f.call(a, t), a.dispatchEvent(u);
2359
2359
  }
2360
2360
  }, [s, t]), /* @__PURE__ */ N(
2361
2361
  ze.input,
@@ -2369,7 +2369,7 @@ var Wr = "RadioBubbleInput", hn = T.forwardRef(
2369
2369
  }
2370
2370
  );
2371
2371
  hn.displayName = Wr;
2372
- function Yr(e = [], t, n) {
2372
+ function Xr(e = [], t, n) {
2373
2373
  const r = [...e];
2374
2374
  return r[n] = t, r.sort((i, o) => i - o);
2375
2375
  }
@@ -2377,10 +2377,10 @@ function yn(e, t, n) {
2377
2377
  const o = 100 / (n - t) * (e - t);
2378
2378
  return At(o, [0, 100]);
2379
2379
  }
2380
- function jr(e, t) {
2380
+ function Yr(e, t) {
2381
2381
  return t > 2 ? `Value ${e + 1} of ${t}` : t === 2 ? ["Minimum", "Maximum"][e] : void 0;
2382
2382
  }
2383
- function Xr(e, t) {
2383
+ function jr(e, t) {
2384
2384
  if (e.length === 1) return 0;
2385
2385
  const n = e.map((i) => Math.abs(i - t)), r = Math.min(...n);
2386
2386
  return n.indexOf(r);
@@ -2413,7 +2413,7 @@ function to(e, t) {
2413
2413
  const n = Math.pow(10, t);
2414
2414
  return Math.round(e * n) / n;
2415
2415
  }
2416
- var vn = an, no = pn, ro = mn, oo = gn;
2416
+ var vn = ln, no = pn, ro = mn, oo = gn;
2417
2417
  const io = T.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ Ne(
2418
2418
  vn,
2419
2419
  {
@@ -2430,18 +2430,18 @@ const io = T.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ Ne(
2430
2430
  }
2431
2431
  ));
2432
2432
  io.displayName = vn.displayName;
2433
- const so = xt(null), lo = Kn();
2434
- function bn(e) {
2435
- const t = rt(so) ?? lo;
2433
+ const so = xt(null), ao = Kn();
2434
+ function Sn(e) {
2435
+ const t = rt(so) ?? ao;
2436
2436
  return En(t.subscribe, () => e(t.get()), () => e(null));
2437
2437
  }
2438
2438
  function Eo(e) {
2439
- return bn(
2439
+ return Sn(
2440
2440
  G((t) => (t == null ? void 0 : t.slot.zone) === e ? t.outcome : null, [e])
2441
2441
  );
2442
2442
  }
2443
2443
  function Io(e, t, n) {
2444
- return bn(
2444
+ return Sn(
2445
2445
  G(
2446
2446
  (r) => (r == null ? void 0 : r.slot.zone) !== e || r.outcome.kind === "refused" ? null : r.slot.beforeId === t ? "top" : !r.slot.beforeId && n ? "bottom" : null,
2447
2447
  [e, t, n]