react-semaphor 0.1.602 → 0.1.603

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 (107) hide show
  1. package/dist/analytics-protocol/index.js +415 -375
  2. package/dist/assistant-context/index.js +1 -1
  3. package/dist/assistant-protocol/index.js +5 -5
  4. package/dist/brand-studio/index.js +8 -8
  5. package/dist/briefings/index.js +5 -5
  6. package/dist/chunks/{add-to-dashboard-ClhEIFst.js → add-to-dashboard-CFF-wFU-.js} +1 -1
  7. package/dist/chunks/{analytics-base-schemas-DevrgqQb.js → analytics-base-schemas-DsUh5Q3C.js} +14 -12
  8. package/dist/chunks/{assistant-chat-BWF3GYip.js → assistant-chat-B6hNQI1t.js} +146 -146
  9. package/dist/chunks/{bookmark-impact-BF3iRx5a.js → bookmark-impact-Ba2PLcGp.js} +3 -3
  10. package/dist/chunks/{bookmark-state-CBSTdW6q.js → bookmark-state-n7AaNzR_.js} +517 -516
  11. package/dist/chunks/{card-filter-builder-B8XHwMY6.js → card-filter-builder-Y22HizVx.js} +104 -104
  12. package/dist/chunks/{comparison-window-caption-W83qB4V5.js → comparison-window-caption-Ck2TIbnR.js} +69 -69
  13. package/dist/chunks/{context-BJoEFgNl.js → context-UCQ7sere.js} +1 -1
  14. package/dist/chunks/{dashboard-DG5EIYYB.js → dashboard-BghI99oY.js} +1 -1
  15. package/dist/chunks/{dashboard-briefing-launcher-CBSrhyWZ.js → dashboard-briefing-launcher-DtBAnGiH.js} +103 -103
  16. package/dist/chunks/{dashboard-controls-D6ECO4N1.js → dashboard-controls-CtFXlyjV.js} +53 -53
  17. package/dist/chunks/{dashboard-json-DrJftBSL.js → dashboard-json-DfGBUtCd.js} +5 -5
  18. package/dist/chunks/dates-BnrXF4bb.js +185 -0
  19. package/dist/chunks/{edit-dashboard-visual-BDYAJIbb.js → edit-dashboard-visual-oxt3x1wb.js} +7976 -8184
  20. package/dist/chunks/{filter-line-BXT6y303.js → filter-line-Cy5YYqRL.js} +27 -27
  21. package/dist/chunks/{filter-reach-copy-BukhZmzm.js → filter-reach-copy-CE_ZX147.js} +1590 -1729
  22. package/dist/chunks/{filter-value-text-D3-bf3_b.js → filter-value-text-fWvSDwkl.js} +11 -11
  23. package/dist/chunks/{index-BW0yozjs.js → index-D5rxbtS4.js} +24 -24
  24. package/dist/chunks/{layout-grid-Ds0diMeY.js → layout-grid-9LndRoLa.js} +1 -1
  25. package/dist/chunks/{matrix-analytical-definition-CgQgVeeI.js → matrix-analytical-definition-CCp48UCw.js} +496 -425
  26. package/dist/chunks/matrix-member-presentation-zNehruXR.js +391 -0
  27. package/dist/chunks/{matrix-operation-contract--DkNCOzd.js → matrix-operation-contract-DPBj69D8.js} +3 -2
  28. package/dist/chunks/{metric-comparison-zMylnIkc.js → metric-comparison-B0FR-Q8I.js} +184 -125
  29. package/dist/chunks/{paintbrush-CX8pao1j.js → paintbrush-58FQYY-y.js} +1 -1
  30. package/dist/chunks/{palette-CuA0HlzF.js → palette-Be62Tkoa.js} +1 -1
  31. package/dist/chunks/{pivot-result-contract-expectations-C8KL7hPx.js → pivot-result-contract-expectations-BYqAmG9n.js} +1236 -1190
  32. package/dist/chunks/{pivot-result-identity-C1AOH1PS.js → pivot-result-identity-CAP4--iq.js} +1 -1
  33. package/dist/chunks/raw-temporal-value-Dg_MTFF7.js +3778 -0
  34. package/dist/chunks/{report-preferences-dialog-CbuVNDGi.js → report-preferences-dialog-uJp9GBTM.js} +219 -205
  35. package/dist/chunks/{report-runtime-context-E7USjN7E.js → report-runtime-context-c77_KF9v.js} +2 -2
  36. package/dist/chunks/{resolve-dashboard-input-context-CULCE_hM.js → resolve-dashboard-input-context-Rtl1ffmE.js} +7115 -6963
  37. package/dist/chunks/{save-BKHlDONy.js → save-C5A0JnEV.js} +1 -1
  38. package/dist/chunks/{saved-dashboard-context-C1WlOx5z.js → saved-dashboard-context-tcyTU8jm.js} +193 -207
  39. package/dist/chunks/selection-filter-compiler-DNijjI5y.js +150 -0
  40. package/dist/chunks/{semaphor-ready-indicator-CBIRcDWs.js → semaphor-ready-indicator-FBvunj6S.js} +35550 -35273
  41. package/dist/chunks/{shelf-drop-preview-context-xR69SMA8.js → shelf-drop-preview-context-QKStrcK9.js} +6 -6
  42. package/dist/chunks/{stored-dashboard-BuM8vnWf.js → stored-dashboard-CHozcAY9.js} +621 -616
  43. package/dist/chunks/{style-sheet-parts-Bt9ZNre8.js → style-sheet-parts-CDCG-8Ej.js} +258 -251
  44. package/dist/chunks/{table-export-sheet-DVljtHkG.js → table-export-sheet-ZFIvs6Sj.js} +1 -1
  45. package/dist/chunks/{token-types-D_xKgyVS.js → token-types-XbM6QByy.js} +1 -1
  46. package/dist/chunks/{upload-Dll_M7XQ.js → upload-H15d7uHK.js} +1 -1
  47. package/dist/chunks/{validators-ClWHpYql.js → validators-Baf3VIf5.js} +3 -3
  48. package/dist/chunks/{variable-draft-CDGGl53R.js → variable-draft-C2y8Jp6Z.js} +3 -3
  49. package/dist/dashboard/index.js +2 -2
  50. package/dist/dashboard-authoring/index.js +2466 -2343
  51. package/dist/format-utils/index.js +205 -204
  52. package/dist/index.js +20 -20
  53. package/dist/report-runtime-context/index.js +2 -2
  54. package/dist/style.css +1 -1
  55. package/dist/surfboard/index.js +2 -2
  56. package/dist/types/components/ui-custom/date-range-presets.d.ts +8 -0
  57. package/dist/types/index.js +5 -5
  58. package/dist/types/lib/document/document-edits.d.ts +0 -4
  59. package/dist/types/lib/stores/dashboard-store.d.ts +0 -1
  60. package/dist/types/lib/types/common-types.d.ts +0 -2
  61. package/dist/types/lib/types/explorer-types.d.ts +1 -1
  62. package/dist/types/shared/analytics-protocol/analytics-base-schemas.d.ts +18 -0
  63. package/dist/types/shared/analytics-protocol/analyze-result-types.d.ts +3 -0
  64. package/dist/types/shared/analytics-protocol/comparison-choices.d.ts +92 -0
  65. package/dist/types/shared/analytics-protocol/comparison-placement.d.ts +30 -0
  66. package/dist/types/shared/analytics-protocol/contracts.d.ts +11 -5
  67. package/dist/types/shared/analytics-protocol/date-window.d.ts +105 -0
  68. package/dist/types/shared/analytics-protocol/filter-field-ownership.d.ts +27 -0
  69. package/dist/types/shared/analytics-protocol/fixtures.d.ts +4 -2
  70. package/dist/types/shared/analytics-protocol/index.d.ts +3 -0
  71. package/dist/types/shared/analytics-protocol/metric-comparison.d.ts +93 -11
  72. package/dist/types/shared/assistant-protocol/context.d.ts +16 -16
  73. package/dist/types/shared/dashboard-authoring/calculations/calculated-column.d.ts +1 -1
  74. package/dist/types/shared/dashboard-authoring/card-settings/card-display-write.d.ts +8 -0
  75. package/dist/types/shared/dashboard-authoring/card-settings/card-kinds.d.ts +1 -1
  76. package/dist/types/shared/dashboard-authoring/card-settings/inputs.d.ts +2 -1
  77. package/dist/types/shared/dashboard-authoring/card-settings/resolved.d.ts +0 -3
  78. package/dist/types/shared/dashboard-authoring/changes/dashboard-change.d.ts +21 -358
  79. package/dist/types/shared/dashboard-authoring/changes/diagnostics.d.ts +2 -0
  80. package/dist/types/shared/dashboard-authoring/conditional-formatting/schema.d.ts +10 -10
  81. package/dist/types/shared/dashboard-authoring/dashboard-variable-card.d.ts +2 -4
  82. package/dist/types/shared/dashboard-authoring/kpi-date-context.d.ts +2 -0
  83. package/dist/types/shared/dashboard-authoring/kpi-figure.d.ts +18 -0
  84. package/dist/types/shared/dashboard-authoring/measure-calculations/comparison.d.ts +8 -7
  85. package/dist/types/shared/dashboard-authoring/measure-calculations/dates.d.ts +11 -1
  86. package/dist/types/shared/dashboard-authoring/measure-calculations/index.d.ts +2 -2
  87. package/dist/types/shared/dashboard-authoring/measure-calculations/options.d.ts +4 -0
  88. package/dist/types/shared/dashboard-authoring/measure-calculations/read.d.ts +18 -1
  89. package/dist/types/shared/dashboard-authoring/measure-calculations/resolve.d.ts +2 -0
  90. package/dist/types/shared/dashboard-authoring/measure-calculations/schemas.d.ts +46 -88
  91. package/dist/types/shared/dashboard-authoring/operations/calculated-field-operations.d.ts +33 -8
  92. package/dist/types/shared/dashboard-authoring/operations/operation-types.d.ts +0 -2
  93. package/dist/types/shared/dashboard-authoring/outline/outline-filters.d.ts +3 -0
  94. package/dist/types/shared/format-utils/comparison-detail.d.ts +34 -0
  95. package/dist/types/shared/format-utils/index.d.ts +1 -0
  96. package/dist/types/shared/format-utils/partial-period.d.ts +4 -2
  97. package/dist/types/shared/temporal/calendar-periods.d.ts +11 -0
  98. package/dist/types/shared/temporal/index.d.ts +2 -0
  99. package/dist/types/shared/temporal/temporal-text.d.ts +33 -0
  100. package/dist/types/shared/temporal/temporal.d.ts +27 -0
  101. package/dist/types/shared/temporal/zoned-wall-clock.d.ts +4 -3
  102. package/dist/usage-events/index.js +1 -1
  103. package/package.json +3 -2
  104. package/dist/chunks/dates-Bz-qM5px.js +0 -164
  105. package/dist/chunks/matrix-member-presentation-DSBIIudt.js +0 -258
  106. package/dist/chunks/raw-temporal-value-E416F-0L.js +0 -454
  107. package/dist/chunks/selection-filter-compiler-ifT8JCXS.js +0 -131
@@ -1,10 +1,10 @@
1
- import { aH as Q, i as ee, j as T, m as te, S as V, aI as R, aJ as X, aK as re, aL as G, aM as H, am as ne, ao as oe, aN as w, aO as $ } from "./pivot-result-contract-expectations-C8KL7hPx.js";
1
+ import { aJ as Q, i as ee, k as T, n as te, T as V, aK as R, aL as X, aM as re, aN as G, aO as q, an as ne, ap as oe, aP as w, aQ as $ } from "./pivot-result-contract-expectations-BYqAmG9n.js";
2
2
  import { h as S } from "./export-file-format-C-tJsxsf.js";
3
- import { a6 as ae, aX as q, m as E, k as se } from "./validators-ClWHpYql.js";
4
- import "./matrix-operation-contract--DkNCOzd.js";
5
- import "./analytics-base-schemas-DevrgqQb.js";
6
- import { readPdfCapacityFacts as ie, PDF_SAFETY_LIMIT_EXCEEDED as O, PDF_CAPACITY as v, PDF_NUMBER_COLUMN_TOO_WIDE as K, getUtf8ByteLength as ue, FAST_PDF_POLICY as le, isPdfCapacityRefusalCode as ce } from "../pdf-export-policy/index.js";
7
- import { w as me } from "./raw-temporal-value-E416F-0L.js";
3
+ import { a6 as ae, aX as H, m as E, k as se } from "./validators-Baf3VIf5.js";
4
+ import "./matrix-operation-contract-DPBj69D8.js";
5
+ import "./analytics-base-schemas-DsUh5Q3C.js";
6
+ import { readPdfCapacityFacts as ie, PDF_SAFETY_LIMIT_EXCEEDED as O, PDF_CAPACITY as P, PDF_NUMBER_COLUMN_TOO_WIDE as K, getUtf8ByteLength as ue, FAST_PDF_POLICY as ce, isPdfCapacityRefusalCode as le } from "../pdf-export-policy/index.js";
7
+ import { w as me } from "./raw-temporal-value-Dg_MTFF7.js";
8
8
  function de(e, t, r) {
9
9
  const n = {
10
10
  ...t,
@@ -18,7 +18,7 @@ function de(e, t, r) {
18
18
  negativeStyle: n.type === "currency" ? n.negativeStyle : "minus"
19
19
  })}${a ?? ""}`;
20
20
  }
21
- function I(e, t, r) {
21
+ function F(e, t, r) {
22
22
  return e === null ? { value: e, text: null } : !t || !ee(t) && t.type !== "duration" ? {
23
23
  value: e,
24
24
  text: T(e, { type: "number", locale: r })
@@ -63,21 +63,21 @@ function j(e, t) {
63
63
  throw new RangeError("Comparison precision must be an integer from 0 to 6.");
64
64
  return e;
65
65
  }
66
- function qe(e, t) {
66
+ function He(e, t) {
67
67
  const r = {
68
68
  mode: t.displayMode,
69
- current: I(
69
+ current: F(
70
70
  e.currentValue,
71
71
  t.metricFormat,
72
72
  t.locale
73
73
  ),
74
- comparison: I(
74
+ comparison: F(
75
75
  e.comparisonValue,
76
76
  t.metricFormat,
77
77
  t.locale
78
78
  )
79
79
  };
80
- return (t.displayMode === "difference" || t.displayMode === "both") && (r.difference = I(
80
+ return (t.displayMode === "difference" || t.displayMode === "both") && (r.difference = F(
81
81
  e.delta,
82
82
  Q(t.metricFormat),
83
83
  t.locale
@@ -118,7 +118,7 @@ function We(e, t) {
118
118
  }
119
119
  const fe = 2;
120
120
  function he(e) {
121
- return typeof e == "number" ? Number.isInteger(e) : q(e) ? !e.value.includes(".") : !0;
121
+ return typeof e == "number" ? Number.isInteger(e) : H(e) ? !e.value.includes(".") : !0;
122
122
  }
123
123
  function pe(e, t, r) {
124
124
  const n = e.descriptors.measures.filter(
@@ -129,8 +129,8 @@ function pe(e, t, r) {
129
129
  e.columns.forEach((s, u) => {
130
130
  if (!(s.kind !== "measure" || o.has(s.measureId)))
131
131
  for (const m of t) {
132
- const l = m.values[u];
133
- if ((l == null ? void 0 : l.kind) === "value" && !he(l.value)) {
132
+ const c = m.values[u];
133
+ if ((c == null ? void 0 : c.kind) === "value" && !he(c.value)) {
134
134
  o.add(s.measureId);
135
135
  return;
136
136
  }
@@ -166,29 +166,29 @@ function ye(e) {
166
166
  }
167
167
  const we = "pdf-group-continuation";
168
168
  function W(e, t, r) {
169
- return !(r != null && r.hasTextAffixes) && t.kind === "value" && (typeof t.value == "number" || q(t.value)) ? e : S(e);
169
+ return !(r != null && r.hasTextAffixes) && t.kind === "value" && (typeof t.value == "number" || H(t.value)) ? e : S(e);
170
170
  }
171
171
  function be(e, t, r) {
172
172
  const n = V(e.descriptors, t.presentation, r), o = e.columns.map((i) => {
173
- var c;
174
- return i.kind === "measure" && ((c = n.measureSemantics.get(i.measureId)) == null ? void 0 : c.isNumeric) === !0;
175
- }), a = (i) => R([i], n.levels), s = (i, c, d) => X(i, c, t.presentation.totals[d], n.levels), u = e.columns.map((i) => {
173
+ var l;
174
+ return i.kind === "measure" && ((l = n.measureSemantics.get(i.measureId)) == null ? void 0 : l.isNumeric) === !0;
175
+ }), a = (i) => R([i], n.levels), s = (i, l, d) => X(i, l, t.presentation.totals[d], n.levels), u = e.columns.map((i) => {
176
176
  if (i.kind !== "measure") return i.label;
177
- const c = i.columnPath.map(a);
178
- return i.role !== "member" && c.push(s(i.columnPath, i.role, "columns")), [...c, i.label].join(" / ");
177
+ const l = i.columnPath.map(a);
178
+ return i.role !== "member" && l.push(s(i.columnPath, i.role, "columns")), [...l, i.label].join(" / ");
179
179
  }), m = Math.min(t.spec.columns.length, Math.max(
180
180
  0,
181
181
  ...e.columns.map((i) => i.kind === "measure" ? i.columnPath.length + (i.role !== "member" ? 1 : 0) : 0)
182
- )), l = Array.from({ length: m + 1 }, (i, c) => e.columns.map((d) => c === m ? d.label : d.kind !== "measure" ? "" : c < d.columnPath.length ? a(d.columnPath[c]) : c === d.columnPath.length && d.role !== "member" ? s(d.columnPath, d.role, "columns") : "")), f = (i, c) => re({
182
+ )), c = Array.from({ length: m + 1 }, (i, l) => e.columns.map((d) => l === m ? d.label : d.kind !== "measure" ? "" : l < d.columnPath.length ? a(d.columnPath[l]) : l === d.columnPath.length && d.role !== "member" ? s(d.columnPath, d.role, "columns") : "")), f = (i, l) => re({
183
183
  path: i.rowPath,
184
184
  role: i.kind === "layout" ? i.role : "member",
185
185
  levelCount: Math.max(1, t.spec.rows.length),
186
186
  repeatLabels: t.presentation.layout.kind !== "tabular" || t.presentation.layout.repeatLabels,
187
- previousPath: c == null ? void 0 : c.rowPath
188
- }), P = (i, c) => {
187
+ previousPath: l == null ? void 0 : l.rowPath
188
+ }), v = (i, l) => {
189
189
  if (i.kind !== "layout") throw new Error("Layout presentation requires layout rows.");
190
190
  if (i.values.length !== e.columns.length) throw new Error("Matrix row does not match its frozen layout.");
191
- const d = f(i, c);
191
+ const d = f(i, l);
192
192
  return e.columns.map((h, p) => {
193
193
  if (h.kind === "hierarchy")
194
194
  return `${" ".repeat(Math.max(0, i.rowPath.length - 1))}${s(i.rowPath, i.role, "rows")}`;
@@ -201,28 +201,28 @@ function be(e, t, r) {
201
201
  throw new Error("Matrix value is missing its measure descriptor.");
202
202
  return G(C, x, t.presentation.absence);
203
203
  });
204
- }, _ = (i, c) => P(i, c).map((d, h) => {
204
+ }, _ = (i, l) => v(i, l).map((d, h) => {
205
205
  const p = e.columns[h];
206
206
  return p.kind === "measure" ? W(d, i.values[h], n.measureSemantics.get(p.measureId)) : S(d);
207
207
  });
208
208
  return {
209
209
  headers: u,
210
- headerBands: l,
210
+ headerBands: c,
211
211
  numericColumns: o,
212
212
  /** The card's prepared formats this presentation formats with (the Excel form reads its measure formats). */
213
213
  formatting: n,
214
214
  /** A row's cells; after `previous`, a tabular layout prints each label once. */
215
- row: (i, c) => P(i, c),
215
+ row: (i, l) => v(i, l),
216
216
  /**
217
217
  * Level columns whose group label the row above shows, so this row
218
218
  * continues the group (Plan 2, 2d, C8). Only a member row after a member
219
219
  * row continues one: a total prints as a band, and its rules stay whole
220
220
  * above and below it.
221
221
  */
222
- continuedColumns: (i, c) => {
222
+ continuedColumns: (i, l) => {
223
223
  const d = (p) => (p == null ? void 0 : p.kind) === "layout" && p.role === "member";
224
- if (!d(i) || !d(c)) return [];
225
- const h = f(i, c);
224
+ if (!d(i) || !d(l)) return [];
225
+ const h = f(i, l);
226
226
  return e.columns.flatMap((p, C) => {
227
227
  var D;
228
228
  if (p.kind !== "level") return [];
@@ -238,7 +238,7 @@ function be(e, t, r) {
238
238
  * formatter state or an earlier worker. Without it, the first row prints
239
239
  * its labels.
240
240
  */
241
- csvRows: (i, c) => i.map((d, h) => _(d, h ? i[h - 1] : c ?? void 0))
241
+ csvRows: (i, l) => i.map((d, h) => _(d, h ? i[h - 1] : l ?? void 0))
242
242
  };
243
243
  }
244
244
  function Ye(e) {
@@ -265,7 +265,7 @@ function _e(e, t, r) {
265
265
  return R([s], r.levels);
266
266
  });
267
267
  }
268
- function ve(e) {
268
+ function Pe(e) {
269
269
  const t = be(e.layout, e.request, e.report), r = e.layout.columns.map((s, u) => ({
270
270
  index: u,
271
271
  columnId: `matrix:${u}`,
@@ -287,7 +287,7 @@ function ve(e) {
287
287
  cells: [
288
288
  ...a ? [{ ...n("", 0, !0), colspan: a }] : [],
289
289
  {
290
- ...n(e.request.spec.columns.map((s) => H(s, e.request.presentation)).join(" / "), a, !0),
290
+ ...n(e.request.spec.columns.map((s) => q(s, e.request.presentation)).join(" / "), a, !0),
291
291
  colspan: e.layout.columns.length - a,
292
292
  isNumeric: !1,
293
293
  className: ""
@@ -299,7 +299,7 @@ function ve(e) {
299
299
  repeatHeader: !0,
300
300
  headerType: s === t.headerBands.length - 1 ? "metrics" : "pivot-level",
301
301
  headerRowIndex: o.length,
302
- cells: u.map((m, l) => n(m, l, !0))
302
+ cells: u.map((m, c) => n(m, c, !0))
303
303
  });
304
304
  return {
305
305
  headers: o,
@@ -311,7 +311,7 @@ function ve(e) {
311
311
  subtotalLevel: String(s.rowPath.length),
312
312
  // A tabular layout prints each label once unless it repeats them; the
313
313
  // blank cell continues its group, so a grid draws no rule above it.
314
- cells: t.row(s, e.rows[u - 1]).map((l, f) => m.has(f) ? { ...n(l, f, !1), className: we } : n(l, f, !1))
314
+ cells: t.row(s, e.rows[u - 1]).map((c, f) => m.has(f) ? { ...n(c, f, !1), className: we } : n(c, f, !1))
315
315
  };
316
316
  }),
317
317
  grandTotal: null,
@@ -328,55 +328,55 @@ function ve(e) {
328
328
  }
329
329
  };
330
330
  }
331
- function Pe(e, t, r) {
332
- const { levels: n } = V(e.descriptors, t.presentation, r), o = t.spec.columns.length > 0, a = [], s = [], u = e.columns.map((l, f) => {
333
- if (l.kind !== "measure") return null;
334
- const P = o ? `${l.role}:${E(l.columnPath)}` : `measure:${f}`;
335
- let _ = a.indexOf(P);
336
- return _ < 0 && (_ = a.push(P) - 1, s.push(o ? X(l.columnPath, l.role, t.presentation.totals.columns, n) : l.label)), _;
331
+ function ve(e, t, r) {
332
+ const { levels: n } = V(e.descriptors, t.presentation, r), o = t.spec.columns.length > 0, a = [], s = [], u = e.columns.map((c, f) => {
333
+ if (c.kind !== "measure") return null;
334
+ const v = o ? `${c.role}:${E(c.columnPath)}` : `measure:${f}`;
335
+ let _ = a.indexOf(v);
336
+ return _ < 0 && (_ = a.push(v) - 1, s.push(o ? X(c.columnPath, c.role, t.presentation.totals.columns, n) : c.label)), _;
337
337
  }), m = t.spec.columns[t.spec.columns.length - 1];
338
338
  return {
339
339
  columnGroups: u,
340
340
  groupLabels: s,
341
341
  /** What bands name their groups by: the innermost column level, or "Measures". */
342
- groupLevelLabel: m ? H(m, t.presentation) : "Measures"
342
+ groupLevelLabel: m ? q(m, t.presentation) : "Measures"
343
343
  };
344
344
  }
345
345
  function ze(e) {
346
346
  const { layout: t, rows: r, report: n } = e, o = {
347
347
  ...e.request,
348
348
  presentation: pe(t, r, e.request.presentation)
349
- }, a = ve({ layout: t, rows: r, request: o, report: n }), s = ye(r), u = Pe(t, o, n), m = {
349
+ }, a = Pe({ layout: t, rows: r, request: o, report: n }), s = ye(r), u = ve(t, o, n), m = {
350
350
  ...a,
351
- rows: a.rows.map((l, f) => ({ ...l, keepWithPrevious: s[f] })),
351
+ rows: a.rows.map((c, f) => ({ ...c, keepWithPrevious: s[f] })),
352
352
  metadata: { ...a.metadata, ...u }
353
353
  };
354
354
  return { request: o, table: m, ...u };
355
355
  }
356
- const y = (e) => e.toLocaleString("en-US"), M = (e) => `${y(Math.ceil(e / 1048576))} MB`, F = "export the data as CSV or Excel";
356
+ const y = (e) => e.toLocaleString("en-US"), M = (e) => `${y(Math.ceil(e / 1048576))} MB`, I = "export the data as CSV or Excel";
357
357
  function Je(e) {
358
- const t = ie(e.facts), r = e.dataExport ? `Add a filter to narrow it, or ${F}.` : "Add a filter to narrow it, then export again.";
358
+ const t = ie(e.facts), r = e.dataExport ? `Add a filter to narrow it, or ${I}.` : "Add a filter to narrow it, then export again.";
359
359
  switch (e.code) {
360
360
  case "PDF_ROW_LIMIT_EXCEEDED": {
361
- const n = e.subject ?? "This table", o = t.rowLimit ?? v.maxTableRows;
361
+ const n = e.subject ?? "This table", o = t.rowLimit ?? P.maxTableRows;
362
362
  return t.rowCount !== void 0 ? `${n} has ${y(t.rowCount)} rows. A PDF holds up to ${y(o)} rows per table. ${r}` : `${n} has more than ${y(o)} rows, the most a PDF holds per table. ${r}`;
363
363
  }
364
364
  case "PDF_PAGE_LIMIT_EXCEEDED": {
365
- const n = e.subject ?? "This PDF", o = t.pageLimit ?? v.maxPages;
365
+ const n = e.subject ?? "This PDF", o = t.pageLimit ?? P.maxPages;
366
366
  return t.pageCount !== void 0 ? `${n} is ${y(t.pageCount)} pages. A PDF holds up to ${y(o)}. ${r}` : `${n} is longer than ${y(o)} pages, the most a PDF holds. ${r}`;
367
367
  }
368
368
  case "PDF_SIZE_LIMIT_EXCEEDED": {
369
- const n = e.subject ?? "This PDF", o = t.byteLimit ?? v.maxFileBytes;
369
+ const n = e.subject ?? "This PDF", o = t.byteLimit ?? P.maxFileBytes;
370
370
  return t.bytes !== void 0 ? `${n} is ${M(t.bytes)}. A PDF file holds up to ${M(o)}. ${r}` : `${n} is larger than ${M(o)}, the most a PDF file holds. ${r}`;
371
371
  }
372
372
  case "PDF_CAPTURE_TOO_TALL":
373
- return `${e.subject ?? "This dashboard"} is too long to print as one PDF. Print one sheet or fewer cards${e.dataExport ? `, or ${F}` : ""}.`;
373
+ return `${e.subject ?? "This dashboard"} is too long to print as one PDF. Print one sheet or fewer cards${e.dataExport ? `, or ${I}` : ""}.`;
374
374
  case K:
375
- return `A number in this table is too wide for its column in a PDF. Use landscape or fewer columns${e.dataExport ? `, or ${F}` : ""}.`;
375
+ return `A number in this table is too wide for its column in a PDF. Use landscape or fewer columns${e.dataExport ? `, or ${I}` : ""}.`;
376
376
  case O:
377
- return `This PDF is over what a PDF holds: ${y(v.maxTableRows)} rows per table, ${y(
378
- v.maxPages
379
- )} pages and ${M(v.maxFileBytes)}. ${r}`;
377
+ return `This PDF is over what a PDF holds: ${y(P.maxTableRows)} rows per table, ${y(
378
+ P.maxPages
379
+ )} pages and ${M(P.maxFileBytes)}. ${r}`;
380
380
  }
381
381
  }
382
382
  class xe extends Error {
@@ -385,7 +385,7 @@ class xe extends Error {
385
385
  }
386
386
  }
387
387
  function Te(e) {
388
- return ce(e) || e === O || e === K;
388
+ return le(e) || e === O || e === K;
389
389
  }
390
390
  function B(e) {
391
391
  if (!e || typeof e != "object")
@@ -420,7 +420,7 @@ async function $e(e) {
420
420
  }
421
421
  async function Qe(e) {
422
422
  if (!e.token) throw new Error("Missing auth token for PDF export");
423
- if (ue(e.serializedPayload) > le.maxRequestBytes)
423
+ if (ue(e.serializedPayload) > ce.maxRequestBytes)
424
424
  throw new Error("Fast-path PDF request exceeds the structured body limit");
425
425
  const t = await (e.fetchImpl ?? fetch)(e.url, {
426
426
  method: "POST",
@@ -471,7 +471,7 @@ function g(e, t) {
471
471
  function k(e, t) {
472
472
  return t.includes(e) ? e : void 0;
473
473
  }
474
- function Ie(e) {
474
+ function Fe(e) {
475
475
  let t = e;
476
476
  if (typeof e == "string")
477
477
  try {
@@ -502,7 +502,7 @@ function Ie(e) {
502
502
  );
503
503
  }
504
504
  function rt(e) {
505
- const t = Ie(e.facts), r = t.sectionTitle ? `Section "${t.sectionTitle}"` : t.sectionId ? `Section ${t.sectionId}` : "A section", n = t.pageNumber !== void 0 ? ` on page ${t.pageNumber}` : "";
505
+ const t = Fe(e.facts), r = t.sectionTitle ? `Section "${t.sectionTitle}"` : t.sectionId ? `Section ${t.sectionId}` : "A section", n = t.pageNumber !== void 0 ? ` on page ${t.pageNumber}` : "";
506
506
  switch (e.code) {
507
507
  case "document_section_setup":
508
508
  return `${r} is not set up to print.`;
@@ -542,7 +542,7 @@ function rt(e) {
542
542
  ].join("");
543
543
  }
544
544
  }
545
- function Fe(e) {
545
+ function Ie(e) {
546
546
  return Y.includes(e);
547
547
  }
548
548
  function N(e) {
@@ -558,12 +558,12 @@ function nt(e) {
558
558
  }
559
559
  if (!t || typeof t != "object" || Array.isArray(t)) return;
560
560
  const { stage: r, measuredRowCount: n, totalRowCount: o, pageCount: a } = t;
561
- if (!(!Fe(r) || !N(n) || o !== null && !N(o) || a !== null && !N(a)))
561
+ if (!(!Ie(r) || !N(n) || o !== null && !N(o) || a !== null && !N(a)))
562
562
  return { stage: r, measuredRowCount: n, totalRowCount: o, pageCount: a };
563
563
  }
564
564
  function ot(e, t, r) {
565
- const n = t.from > e.start ? t.from : e.start, o = t.to && t.to < e.end ? t.to : e.end, a = o > r ? "running" : n > e.start ? "start" : o < e.end ? "end" : void 0;
566
- return { start: n, end: o, ...a ? { partial: a } : {} };
565
+ const n = t.from > e.start ? t.from : e.start, o = t.to && t.to < e.end ? t.to : e.end, s = n <= r && o > r ? "running" : n > e.start ? "start" : o < e.end ? "end" : void 0;
566
+ return { start: n, end: o, ...s ? { partial: s } : {} };
567
567
  }
568
568
  function at(e, t, r) {
569
569
  switch (t) {
@@ -581,14 +581,14 @@ function st(e, t, r) {
581
581
  const n = Date.parse(e.startInclusive), o = Date.parse(e.endExclusive);
582
582
  if (!Number.isFinite(n) || !Number.isFinite(o)) return;
583
583
  if (t.granularity === "hour" || t.granularity === "minute" || t.granularity === "second") {
584
- const m = (l) => {
584
+ const m = (c) => {
585
585
  try {
586
586
  return new Intl.DateTimeFormat((r == null ? void 0 : r.locale) ?? "en-US", {
587
587
  timeStyle: (r == null ? void 0 : r.dateTime.timeStyle) ?? "short",
588
588
  timeZone: t.calendar.tz
589
- }).format(new Date(l));
589
+ }).format(new Date(c));
590
590
  } catch {
591
- return new Date(l).toISOString();
591
+ return new Date(c).toISOString();
592
592
  }
593
593
  };
594
594
  return { start: m(n), end: m(o) };
@@ -605,7 +605,7 @@ function st(e, t, r) {
605
605
  s = void 0;
606
606
  }
607
607
  const u = (m) => {
608
- const l = me(new Date(m), t.calendar.tz), f = `${String(l.year).padStart(4, "0")}-${String(l.month).padStart(2, "0")}-${String(l.day).padStart(2, "0")}`;
608
+ const c = me(new Date(m), t.calendar.tz), f = `${String(c.year).padStart(4, "0")}-${String(c.month).padStart(2, "0")}-${String(c.day).padStart(2, "0")}`;
609
609
  try {
610
610
  return s ? oe({ value: f, metadata: a, format: s.format }) : f;
611
611
  } catch {
@@ -712,10 +712,10 @@ export {
712
712
  et as D,
713
713
  Ke as M,
714
714
  we as P,
715
- qe as a,
715
+ He as a,
716
716
  Ye as b,
717
717
  Ze as c,
718
- ve as d,
718
+ Pe as d,
719
719
  ze as e,
720
720
  ut as f,
721
721
  We as g,
@@ -731,7 +731,7 @@ export {
731
731
  Ce as q,
732
732
  $e as r,
733
733
  tt as s,
734
- Ie as t,
734
+ Fe as t,
735
735
  rt as u,
736
736
  nt as v,
737
737
  ot as w,
@@ -2,7 +2,7 @@ var T = Object.defineProperty;
2
2
  var q = (e, a, i) => a in e ? T(e, a, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[a] = i;
3
3
  var b = (e, a, i) => q(e, typeof a != "symbol" ? a + "" : a, i);
4
4
  import { z as t } from "zod";
5
- import { s as k } from "./analytics-base-schemas-DevrgqQb.js";
5
+ import { s as k } from "./analytics-base-schemas-DsUh5Q3C.js";
6
6
  const J = 1, Y = [
7
7
  // before streaming (HTTP status in spec section 10)
8
8
  "assistant_unavailable",
@@ -1,5 +1,5 @@
1
1
  import { jsx as a, jsxs as n } from "react/jsx-runtime";
2
- import { E as o, F as i, S as d, B as s, a as c, U as l, D as t, A as h, C as f, b } from "./semaphor-ready-indicator-CBIRcDWs.js";
2
+ import { E as o, F as i, S as d, B as s, a as c, U as l, D as t, A as h, C as f, b } from "./semaphor-ready-indicator-FBvunj6S.js";
3
3
  function u(e) {
4
4
  if (typeof window > "u")
5
5
  return null;