react-semaphor 0.1.477 → 0.1.478

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 (109) hide show
  1. package/dist/analytics-protocol/index.cjs +1 -1
  2. package/dist/analytics-protocol/index.js +9 -9
  3. package/dist/brand-studio/index.cjs +1 -1
  4. package/dist/brand-studio/index.js +4 -4
  5. package/dist/briefings/index.cjs +1 -1
  6. package/dist/briefings/index.js +4 -4
  7. package/dist/chunks/{analyze-result-contract-OgPk-zGu.cjs → analyze-result-contract-BX_nQmPN.cjs} +1 -1
  8. package/dist/chunks/{analyze-result-contract-C8s8EUL5.js → analyze-result-contract-DsiAzCYn.js} +1 -1
  9. package/dist/chunks/{saved-temporal-bucket-format-CHsXUPJI.js → card-config-utils-CyDKaPNT.js} +190 -190
  10. package/dist/chunks/card-config-utils-D3Xuu0ub.cjs +1 -0
  11. package/dist/chunks/{common-types-C1IM7gao.cjs → common-types-BCSbPclk.cjs} +1 -1
  12. package/dist/chunks/{common-types-BLPy5_E0.js → common-types-D3r4PILe.js} +1 -1
  13. package/dist/chunks/{dashboard-briefing-launcher-CXHq6ime.cjs → dashboard-briefing-launcher-7qAW16mO.cjs} +2 -2
  14. package/dist/chunks/{dashboard-briefing-launcher-C9d8CPxv.js → dashboard-briefing-launcher-DAhtLQPc.js} +134 -134
  15. package/dist/chunks/{dashboard-controls-BqDm4ARp.js → dashboard-controls-C_CBmEwW.js} +13 -12
  16. package/dist/chunks/{dashboard-controls-d7Yd2fJb.cjs → dashboard-controls-CoVqAeKG.cjs} +10 -10
  17. package/dist/chunks/{dashboard-input-contract-JFJZgenC.cjs → dashboard-date-comparison-definition-C93wv8Ua.cjs} +1 -1
  18. package/dist/chunks/{dashboard-input-contract-BrGdGFz0.js → dashboard-date-comparison-definition-KohOqBqR.js} +19 -19
  19. package/dist/chunks/dashboard-filter-value-compatibility-BAatYtUS.js +1215 -0
  20. package/dist/chunks/dashboard-filter-value-compatibility-Bco2gN96.cjs +1 -0
  21. package/dist/chunks/{dashboard-json-CL_vgcWq.js → dashboard-json-0w58H39L.js} +7 -7
  22. package/dist/chunks/dashboard-json-B3XSl7b_.cjs +1 -0
  23. package/dist/chunks/{edit-dashboard-visual-Dklel3MC.cjs → edit-dashboard-visual-BsLRKeuO.cjs} +6 -6
  24. package/dist/chunks/{edit-dashboard-visual-C0Zvyo-X.js → edit-dashboard-visual-BsWEU8xf.js} +277 -277
  25. package/dist/chunks/{editor-action-buttons-BOyUtX9j.js → editor-action-buttons-B3CB5c__.js} +39 -39
  26. package/dist/chunks/{editor-action-buttons-AcaZsiDy.cjs → editor-action-buttons-DMLDvrJD.cjs} +1 -1
  27. package/dist/chunks/{index-Cd8qGOXl.cjs → index--0Il-Bpd.cjs} +238 -238
  28. package/dist/chunks/{format-types-CFHQoIuk.js → index-BS0_dp0l.js} +168 -168
  29. package/dist/chunks/{index-D9S3j7_z.js → index-BvRREsU9.js} +9 -9
  30. package/dist/chunks/index-ByQgqT9d.cjs +1 -0
  31. package/dist/chunks/{index-v2MZLyus.cjs → index-CXeIDdjd.cjs} +1 -1
  32. package/dist/chunks/{index-DrdF7QR7.js → index-DgGcVyUs.js} +30518 -31308
  33. package/dist/chunks/matrix-result-contract-CFPnlcLm.cjs +1 -0
  34. package/dist/chunks/{matrix-result-contract-BpzhImar.js → matrix-result-contract-DFfUvb1r.js} +3 -3
  35. package/dist/chunks/{temporal-bucket-CtP7hKLa.js → metric-comparison-CTexJ8V1.js} +705 -705
  36. package/dist/chunks/metric-comparison-x0lipytf.cjs +1 -0
  37. package/dist/chunks/pivot-header-presentation-8Ra1RfHg.cjs +4 -0
  38. package/dist/chunks/{pivot-header-presentation-CaERAWpl.js → pivot-header-presentation-tpb_J900.js} +118 -118
  39. package/dist/chunks/{pivot-result-identity-CIZXsI53.js → pivot-result-identity-BIeP9v8I.js} +1 -1
  40. package/dist/chunks/{pivot-result-identity-DRUlTWUq.cjs → pivot-result-identity-BVnhG2rR.cjs} +1 -1
  41. package/dist/chunks/pivot-result-lifecycle-D_bRCqaB.cjs +1 -0
  42. package/dist/chunks/{pivot-result-lifecycle-B9FTybxN.js → pivot-result-lifecycle-mjJ1rBvV.js} +7 -7
  43. package/dist/chunks/{raw-temporal-contract-U8J9RlEH.js → raw-temporal-contract-BuQIB31z.js} +1 -1
  44. package/dist/chunks/{raw-temporal-contract-D8YuxTAg.cjs → raw-temporal-contract-vnNwLy9R.cjs} +1 -1
  45. package/dist/chunks/{report-preferences-dialog-BjygtSP3.js → report-preferences-dialog-Bytgubvz.js} +25 -25
  46. package/dist/chunks/report-preferences-dialog-I0Pbn_Yb.cjs +1 -0
  47. package/dist/chunks/{report-runtime-context-DNbgCsko.js → report-runtime-context-B_pAmqxl.js} +1 -1
  48. package/dist/chunks/{report-runtime-context-RFiWq4wK.cjs → report-runtime-context-BfW4qiMJ.cjs} +1 -1
  49. package/dist/chunks/{source-entity-resolution-BDC-Qngk.cjs → source-entity-resolution-DCAAS-y8.cjs} +1 -1
  50. package/dist/chunks/{source-entity-resolution-ugN3sZUk.js → source-entity-resolution-WUstJID6.js} +1 -1
  51. package/dist/chunks/{switch-C8NihGV4.js → switch-BsGTOjuD.js} +12342 -11110
  52. package/dist/chunks/switch-Cpj3DrCZ.cjs +138 -0
  53. package/dist/chunks/{temporal-bucket-authoring-DJ9kK2wD.js → temporal-bucket-authoring-CyTCHy1K.js} +3 -3
  54. package/dist/chunks/temporal-bucket-authoring-DueSgLJU.cjs +1 -0
  55. package/dist/chunks/{temporal-bucket-contract-CZl5D7FZ.js → temporal-bucket-contract-BeOx0uYe.js} +1 -1
  56. package/dist/chunks/{temporal-bucket-contract-BD862TAa.cjs → temporal-bucket-contract-Cp-usD9Z.cjs} +1 -1
  57. package/dist/chunks/{token-types-CoHsSJ4E.cjs → token-types-D9eN35rf.cjs} +1 -1
  58. package/dist/chunks/{token-types-DfDtCqlw.js → token-types-Dvomvqw0.js} +1 -1
  59. package/dist/chunks/{update-policy-BGNXFgBU.cjs → update-policy-Buw2LmvX.cjs} +1 -1
  60. package/dist/chunks/{update-policy-BybMiM61.js → update-policy-MWg0aH3d.js} +1 -1
  61. package/dist/chunks/{validators-D-T-2HOR.js → validators-D3AarM2T.js} +662 -663
  62. package/dist/chunks/validators-DqIM0B3C.cjs +1 -0
  63. package/dist/dashboard/index.cjs +1 -1
  64. package/dist/dashboard/index.js +2 -2
  65. package/dist/dashboard-authoring/index.cjs +3 -3
  66. package/dist/dashboard-authoring/index.js +81 -79
  67. package/dist/data-app-builder/index.cjs +1 -1
  68. package/dist/data-app-builder/index.js +2 -2
  69. package/dist/data-app-codegen/index.cjs +1 -1
  70. package/dist/data-app-codegen/index.js +2 -2
  71. package/dist/data-app-codegen-node/index.cjs +1 -1
  72. package/dist/data-app-codegen-node/index.js +3 -3
  73. package/dist/data-app-sdk/index.cjs +1 -1
  74. package/dist/data-app-sdk/index.js +3 -3
  75. package/dist/data-app-sdk-adapters/index.cjs +1 -1
  76. package/dist/data-app-sdk-adapters/index.js +2 -2
  77. package/dist/data-app-sdk-validation/index.cjs +1 -1
  78. package/dist/data-app-sdk-validation/index.js +3 -3
  79. package/dist/format-utils/index.cjs +3 -3
  80. package/dist/format-utils/index.js +9 -9
  81. package/dist/index.cjs +1 -1
  82. package/dist/index.js +177 -176
  83. package/dist/report-runtime-context/index.cjs +1 -1
  84. package/dist/report-runtime-context/index.js +2 -2
  85. package/dist/surfboard/index.cjs +1 -1
  86. package/dist/surfboard/index.js +3 -3
  87. package/dist/types/briefings.d.ts +11 -0
  88. package/dist/types/dashboard-authoring.d.ts +17 -0
  89. package/dist/types/dashboard.d.ts +11 -0
  90. package/dist/types/index.cjs +1 -1
  91. package/dist/types/index.js +4 -4
  92. package/dist/types/main.d.ts +12 -0
  93. package/dist/types/shared.d.ts +11 -0
  94. package/dist/types/surfboard.d.ts +11 -0
  95. package/dist/types/types.d.ts +11 -0
  96. package/package.json +1 -1
  97. package/dist/chunks/dashboard-filter-value-compatibility-BCVF9IHg.js +0 -1026
  98. package/dist/chunks/dashboard-filter-value-compatibility-DLkdeypb.cjs +0 -1
  99. package/dist/chunks/dashboard-json-BYQjTmqD.cjs +0 -1
  100. package/dist/chunks/format-types-PSZZ7hG8.cjs +0 -1
  101. package/dist/chunks/matrix-result-contract-Bhg60NtS.cjs +0 -1
  102. package/dist/chunks/pivot-header-presentation-CePk1R6g.cjs +0 -4
  103. package/dist/chunks/pivot-result-lifecycle-CcGt_29N.cjs +0 -1
  104. package/dist/chunks/report-preferences-dialog-DW40ECz1.cjs +0 -1
  105. package/dist/chunks/saved-temporal-bucket-format-DNMtD77o.cjs +0 -1
  106. package/dist/chunks/switch-B1mZx2k9.cjs +0 -138
  107. package/dist/chunks/temporal-bucket-9Wz9Ds6H.cjs +0 -1
  108. package/dist/chunks/temporal-bucket-authoring-DSpzgXHc.cjs +0 -1
  109. package/dist/chunks/validators-DcshgK7w.cjs +0 -1
@@ -1,5 +1,77 @@
1
1
  import { t as G, a as R } from "./index-CACdoqu3.js";
2
- const V = {
2
+ function me(t) {
3
+ if (!t || typeof t != "object") return !1;
4
+ const e = t.type;
5
+ return e === "number" || e === "currency" || e === "percent" || e === "scientific";
6
+ }
7
+ function l(t) {
8
+ const e = Object.prototype.toString.call(t);
9
+ return t instanceof Date || typeof t == "object" && e === "[object Date]" ? new t.constructor(+t) : typeof t == "number" || e === "[object Number]" || typeof t == "string" || e === "[object String]" ? new Date(t) : /* @__PURE__ */ new Date(NaN);
10
+ }
11
+ function b(t, e) {
12
+ return t instanceof Date ? new t.constructor(e) : new Date(e);
13
+ }
14
+ const B = 6048e5, V = 864e5, le = 6e4, ge = 36e5, we = 43200, ye = 1440;
15
+ let U = {};
16
+ function v() {
17
+ return U;
18
+ }
19
+ function D(t, e) {
20
+ var c, d, u, h;
21
+ const n = v(), r = (e == null ? void 0 : e.weekStartsOn) ?? ((d = (c = e == null ? void 0 : e.locale) == null ? void 0 : c.options) == null ? void 0 : d.weekStartsOn) ?? n.weekStartsOn ?? ((h = (u = n.locale) == null ? void 0 : u.options) == null ? void 0 : h.weekStartsOn) ?? 0, a = l(t), i = a.getDay(), o = (i < r ? 7 : 0) + i - r;
22
+ return a.setDate(a.getDate() - o), a.setHours(0, 0, 0, 0), a;
23
+ }
24
+ function W(t) {
25
+ return D(t, { weekStartsOn: 1 });
26
+ }
27
+ function $(t) {
28
+ const e = l(t), n = e.getFullYear(), r = b(t, 0);
29
+ r.setFullYear(n + 1, 0, 4), r.setHours(0, 0, 0, 0);
30
+ const a = W(r), i = b(t, 0);
31
+ i.setFullYear(n, 0, 4), i.setHours(0, 0, 0, 0);
32
+ const o = W(i);
33
+ return e.getTime() >= a.getTime() ? n + 1 : e.getTime() >= o.getTime() ? n : n - 1;
34
+ }
35
+ function q(t) {
36
+ const e = l(t);
37
+ return e.setHours(0, 0, 0, 0), e;
38
+ }
39
+ function H(t) {
40
+ const e = l(t), n = new Date(
41
+ Date.UTC(
42
+ e.getFullYear(),
43
+ e.getMonth(),
44
+ e.getDate(),
45
+ e.getHours(),
46
+ e.getMinutes(),
47
+ e.getSeconds(),
48
+ e.getMilliseconds()
49
+ )
50
+ );
51
+ return n.setUTCFullYear(e.getFullYear()), +t - +n;
52
+ }
53
+ function J(t, e) {
54
+ const n = q(t), r = q(e), a = +n - H(n), i = +r - H(r);
55
+ return Math.round((a - i) / V);
56
+ }
57
+ function K(t) {
58
+ const e = $(t), n = b(t, 0);
59
+ return n.setFullYear(e, 0, 4), n.setHours(0, 0, 0, 0), W(n);
60
+ }
61
+ function tt(t) {
62
+ return t instanceof Date || typeof t == "object" && Object.prototype.toString.call(t) === "[object Date]";
63
+ }
64
+ function et(t) {
65
+ if (!tt(t) && typeof t != "number")
66
+ return !1;
67
+ const e = l(t);
68
+ return !isNaN(Number(e));
69
+ }
70
+ function nt(t) {
71
+ const e = l(t), n = b(t, 0);
72
+ return n.setFullYear(e.getFullYear(), 0, 1), n.setHours(0, 0, 0, 0), n;
73
+ }
74
+ const rt = {
3
75
  lessThanXSeconds: {
4
76
  one: "less than a second",
5
77
  other: "less than {{count}} seconds"
@@ -61,9 +133,9 @@ const V = {
61
133
  one: "almost 1 year",
62
134
  other: "almost {{count}} years"
63
135
  }
64
- }, U = (t, e, n) => {
136
+ }, at = (t, e, n) => {
65
137
  let r;
66
- const a = V[t];
138
+ const a = rt[t];
67
139
  return typeof a == "string" ? r = a : e === 1 ? r = a.one : r = a.other.replace("{{count}}", e.toString()), n != null && n.addSuffix ? n.comparison && n.comparison > 0 ? "in " + r : r + " ago" : r;
68
140
  };
69
141
  function C(t) {
@@ -72,42 +144,42 @@ function C(t) {
72
144
  return t.formats[n] || t.formats[t.defaultWidth];
73
145
  };
74
146
  }
75
- const J = {
147
+ const it = {
76
148
  full: "EEEE, MMMM do, y",
77
149
  long: "MMMM do, y",
78
150
  medium: "MMM d, y",
79
151
  short: "MM/dd/yyyy"
80
- }, K = {
152
+ }, ot = {
81
153
  full: "h:mm:ss a zzzz",
82
154
  long: "h:mm:ss a z",
83
155
  medium: "h:mm:ss a",
84
156
  short: "h:mm a"
85
- }, tt = {
157
+ }, st = {
86
158
  full: "{{date}} 'at' {{time}}",
87
159
  long: "{{date}} 'at' {{time}}",
88
160
  medium: "{{date}}, {{time}}",
89
161
  short: "{{date}}, {{time}}"
90
- }, et = {
162
+ }, ct = {
91
163
  date: C({
92
- formats: J,
164
+ formats: it,
93
165
  defaultWidth: "full"
94
166
  }),
95
167
  time: C({
96
- formats: K,
168
+ formats: ot,
97
169
  defaultWidth: "full"
98
170
  }),
99
171
  dateTime: C({
100
- formats: tt,
172
+ formats: st,
101
173
  defaultWidth: "full"
102
174
  })
103
- }, nt = {
175
+ }, ut = {
104
176
  lastWeek: "'last' eeee 'at' p",
105
177
  yesterday: "'yesterday at' p",
106
178
  today: "'today at' p",
107
179
  tomorrow: "'tomorrow at' p",
108
180
  nextWeek: "eeee 'at' p",
109
181
  other: "P"
110
- }, rt = (t, e, n, r) => nt[t];
182
+ }, dt = (t, e, n, r) => ut[t];
111
183
  function T(t) {
112
184
  return (e, n) => {
113
185
  const r = n != null && n.context ? String(n.context) : "standalone";
@@ -123,15 +195,15 @@ function T(t) {
123
195
  return a[i];
124
196
  };
125
197
  }
126
- const at = {
198
+ const ft = {
127
199
  narrow: ["B", "A"],
128
200
  abbreviated: ["BC", "AD"],
129
201
  wide: ["Before Christ", "Anno Domini"]
130
- }, it = {
202
+ }, ht = {
131
203
  narrow: ["1", "2", "3", "4"],
132
204
  abbreviated: ["Q1", "Q2", "Q3", "Q4"],
133
205
  wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"]
134
- }, ot = {
206
+ }, mt = {
135
207
  narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
136
208
  abbreviated: [
137
209
  "Jan",
@@ -161,7 +233,7 @@ const at = {
161
233
  "November",
162
234
  "December"
163
235
  ]
164
- }, st = {
236
+ }, lt = {
165
237
  narrow: ["S", "M", "T", "W", "T", "F", "S"],
166
238
  short: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
167
239
  abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
@@ -174,7 +246,7 @@ const at = {
174
246
  "Friday",
175
247
  "Saturday"
176
248
  ]
177
- }, ct = {
249
+ }, gt = {
178
250
  narrow: {
179
251
  am: "a",
180
252
  pm: "p",
@@ -205,7 +277,7 @@ const at = {
205
277
  evening: "evening",
206
278
  night: "night"
207
279
  }
208
- }, ut = {
280
+ }, wt = {
209
281
  narrow: {
210
282
  am: "a",
211
283
  pm: "p",
@@ -236,7 +308,7 @@ const at = {
236
308
  evening: "in the evening",
237
309
  night: "at night"
238
310
  }
239
- }, dt = (t, e) => {
311
+ }, yt = (t, e) => {
240
312
  const n = Number(t), r = n % 100;
241
313
  if (r > 20 || r < 10)
242
314
  switch (r % 10) {
@@ -248,29 +320,29 @@ const at = {
248
320
  return n + "rd";
249
321
  }
250
322
  return n + "th";
251
- }, ft = {
252
- ordinalNumber: dt,
323
+ }, bt = {
324
+ ordinalNumber: yt,
253
325
  era: T({
254
- values: at,
326
+ values: ft,
255
327
  defaultWidth: "wide"
256
328
  }),
257
329
  quarter: T({
258
- values: it,
330
+ values: ht,
259
331
  defaultWidth: "wide",
260
332
  argumentCallback: (t) => t - 1
261
333
  }),
262
334
  month: T({
263
- values: ot,
335
+ values: mt,
264
336
  defaultWidth: "wide"
265
337
  }),
266
338
  day: T({
267
- values: st,
339
+ values: lt,
268
340
  defaultWidth: "wide"
269
341
  }),
270
342
  dayPeriod: T({
271
- values: ct,
343
+ values: gt,
272
344
  defaultWidth: "wide",
273
- formattingValues: ut,
345
+ formattingValues: wt,
274
346
  defaultFormattingWidth: "wide"
275
347
  })
276
348
  };
@@ -279,9 +351,9 @@ function k(t) {
279
351
  const r = n.width, a = r && t.matchPatterns[r] || t.matchPatterns[t.defaultMatchWidth], i = e.match(a);
280
352
  if (!i)
281
353
  return null;
282
- const o = i[0], c = r && t.parsePatterns[r] || t.parsePatterns[t.defaultParseWidth], d = Array.isArray(c) ? mt(c, (g) => g.test(o)) : (
354
+ const o = i[0], c = r && t.parsePatterns[r] || t.parsePatterns[t.defaultParseWidth], d = Array.isArray(c) ? Mt(c, (g) => g.test(o)) : (
283
355
  // eslint-disable-next-line @typescript-eslint/no-explicit-any -- I challange you to fix the type
284
- ht(c, (g) => g.test(o))
356
+ Ot(c, (g) => g.test(o))
285
357
  );
286
358
  let u;
287
359
  u = t.valueCallback ? t.valueCallback(d) : d, u = n.valueCallback ? (
@@ -292,17 +364,17 @@ function k(t) {
292
364
  return { value: u, rest: h };
293
365
  };
294
366
  }
295
- function ht(t, e) {
367
+ function Ot(t, e) {
296
368
  for (const n in t)
297
369
  if (Object.prototype.hasOwnProperty.call(t, n) && e(t[n]))
298
370
  return n;
299
371
  }
300
- function mt(t, e) {
372
+ function Mt(t, e) {
301
373
  for (let n = 0; n < t.length; n++)
302
374
  if (e(t[n]))
303
375
  return n;
304
376
  }
305
- function lt(t) {
377
+ function xt(t) {
306
378
  return (e, n = {}) => {
307
379
  const r = e.match(t.matchPattern);
308
380
  if (!r) return null;
@@ -314,23 +386,23 @@ function lt(t) {
314
386
  return { value: o, rest: c };
315
387
  };
316
388
  }
317
- const gt = /^(\d+)(th|st|nd|rd)?/i, wt = /\d+/i, yt = {
389
+ const Pt = /^(\d+)(th|st|nd|rd)?/i, Tt = /\d+/i, kt = {
318
390
  narrow: /^(b|a)/i,
319
391
  abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
320
392
  wide: /^(before christ|before common era|anno domini|common era)/i
321
- }, bt = {
393
+ }, Dt = {
322
394
  any: [/^b/i, /^(a|c)/i]
323
- }, Ot = {
395
+ }, vt = {
324
396
  narrow: /^[1234]/i,
325
397
  abbreviated: /^q[1234]/i,
326
398
  wide: /^[1234](th|st|nd|rd)? quarter/i
327
- }, Mt = {
399
+ }, Wt = {
328
400
  any: [/1/i, /2/i, /3/i, /4/i]
329
- }, xt = {
401
+ }, St = {
330
402
  narrow: /^[jfmasond]/i,
331
403
  abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
332
404
  wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
333
- }, Pt = {
405
+ }, Yt = {
334
406
  narrow: [
335
407
  /^j/i,
336
408
  /^f/i,
@@ -359,18 +431,18 @@ const gt = /^(\d+)(th|st|nd|rd)?/i, wt = /\d+/i, yt = {
359
431
  /^n/i,
360
432
  /^d/i
361
433
  ]
362
- }, Tt = {
434
+ }, Ct = {
363
435
  narrow: /^[smtwf]/i,
364
436
  short: /^(su|mo|tu|we|th|fr|sa)/i,
365
437
  abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
366
438
  wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
367
- }, kt = {
439
+ }, Et = {
368
440
  narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
369
441
  any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]
370
- }, Dt = {
442
+ }, Ft = {
371
443
  narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
372
444
  any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
373
- }, vt = {
445
+ }, pt = {
374
446
  any: {
375
447
  am: /^a/i,
376
448
  pm: /^p/i,
@@ -381,119 +453,61 @@ const gt = /^(\d+)(th|st|nd|rd)?/i, wt = /\d+/i, yt = {
381
453
  evening: /evening/i,
382
454
  night: /night/i
383
455
  }
384
- }, Wt = {
385
- ordinalNumber: lt({
386
- matchPattern: gt,
387
- parsePattern: wt,
456
+ }, Nt = {
457
+ ordinalNumber: xt({
458
+ matchPattern: Pt,
459
+ parsePattern: Tt,
388
460
  valueCallback: (t) => parseInt(t, 10)
389
461
  }),
390
462
  era: k({
391
- matchPatterns: yt,
463
+ matchPatterns: kt,
392
464
  defaultMatchWidth: "wide",
393
- parsePatterns: bt,
465
+ parsePatterns: Dt,
394
466
  defaultParseWidth: "any"
395
467
  }),
396
468
  quarter: k({
397
- matchPatterns: Ot,
469
+ matchPatterns: vt,
398
470
  defaultMatchWidth: "wide",
399
- parsePatterns: Mt,
471
+ parsePatterns: Wt,
400
472
  defaultParseWidth: "any",
401
473
  valueCallback: (t) => t + 1
402
474
  }),
403
475
  month: k({
404
- matchPatterns: xt,
476
+ matchPatterns: St,
405
477
  defaultMatchWidth: "wide",
406
- parsePatterns: Pt,
478
+ parsePatterns: Yt,
407
479
  defaultParseWidth: "any"
408
480
  }),
409
481
  day: k({
410
- matchPatterns: Tt,
482
+ matchPatterns: Ct,
411
483
  defaultMatchWidth: "wide",
412
- parsePatterns: kt,
484
+ parsePatterns: Et,
413
485
  defaultParseWidth: "any"
414
486
  }),
415
487
  dayPeriod: k({
416
- matchPatterns: Dt,
488
+ matchPatterns: Ft,
417
489
  defaultMatchWidth: "any",
418
- parsePatterns: vt,
490
+ parsePatterns: pt,
419
491
  defaultParseWidth: "any"
420
492
  })
421
- }, St = {
493
+ }, Xt = {
422
494
  code: "en-US",
423
- formatDistance: U,
424
- formatLong: et,
425
- formatRelative: rt,
426
- localize: ft,
427
- match: Wt,
495
+ formatDistance: at,
496
+ formatLong: ct,
497
+ formatRelative: dt,
498
+ localize: bt,
499
+ match: Nt,
428
500
  options: {
429
501
  weekStartsOn: 0,
430
502
  firstWeekContainsDate: 1
431
503
  }
432
504
  };
433
- let Yt = {};
434
- function v() {
435
- return Yt;
436
- }
437
- const B = 6048e5, Ct = 864e5, me = 6e4, le = 36e5, ge = 43200, we = 1440;
438
- function l(t) {
439
- const e = Object.prototype.toString.call(t);
440
- return t instanceof Date || typeof t == "object" && e === "[object Date]" ? new t.constructor(+t) : typeof t == "number" || e === "[object Number]" || typeof t == "string" || e === "[object String]" ? new Date(t) : /* @__PURE__ */ new Date(NaN);
441
- }
442
- function q(t) {
443
- const e = l(t);
444
- return e.setHours(0, 0, 0, 0), e;
445
- }
446
- function H(t) {
447
- const e = l(t), n = new Date(
448
- Date.UTC(
449
- e.getFullYear(),
450
- e.getMonth(),
451
- e.getDate(),
452
- e.getHours(),
453
- e.getMinutes(),
454
- e.getSeconds(),
455
- e.getMilliseconds()
456
- )
457
- );
458
- return n.setUTCFullYear(e.getFullYear()), +t - +n;
459
- }
460
- function Et(t, e) {
461
- const n = q(t), r = q(e), a = +n - H(n), i = +r - H(r);
462
- return Math.round((a - i) / Ct);
463
- }
464
- function b(t, e) {
465
- return t instanceof Date ? new t.constructor(e) : new Date(e);
466
- }
467
- function Ft(t) {
468
- const e = l(t), n = b(t, 0);
469
- return n.setFullYear(e.getFullYear(), 0, 1), n.setHours(0, 0, 0, 0), n;
470
- }
471
- function pt(t) {
505
+ function qt(t) {
472
506
  const e = l(t);
473
- return Et(e, Ft(e)) + 1;
474
- }
475
- function D(t, e) {
476
- var c, d, u, h;
477
- const n = v(), r = (e == null ? void 0 : e.weekStartsOn) ?? ((d = (c = e == null ? void 0 : e.locale) == null ? void 0 : c.options) == null ? void 0 : d.weekStartsOn) ?? n.weekStartsOn ?? ((h = (u = n.locale) == null ? void 0 : u.options) == null ? void 0 : h.weekStartsOn) ?? 0, a = l(t), i = a.getDay(), o = (i < r ? 7 : 0) + i - r;
478
- return a.setDate(a.getDate() - o), a.setHours(0, 0, 0, 0), a;
479
- }
480
- function W(t) {
481
- return D(t, { weekStartsOn: 1 });
507
+ return J(e, nt(e)) + 1;
482
508
  }
483
- function $(t) {
484
- const e = l(t), n = e.getFullYear(), r = b(t, 0);
485
- r.setFullYear(n + 1, 0, 4), r.setHours(0, 0, 0, 0);
486
- const a = W(r), i = b(t, 0);
487
- i.setFullYear(n, 0, 4), i.setHours(0, 0, 0, 0);
488
- const o = W(i);
489
- return e.getTime() >= a.getTime() ? n + 1 : e.getTime() >= o.getTime() ? n : n - 1;
490
- }
491
- function Nt(t) {
492
- const e = $(t), n = b(t, 0);
493
- return n.setFullYear(e, 0, 4), n.setHours(0, 0, 0, 0), W(n);
494
- }
495
- function Xt(t) {
496
- const e = l(t), n = +W(e) - +Nt(e);
509
+ function Ht(t) {
510
+ const e = l(t), n = +W(e) - +K(e);
497
511
  return Math.round(n / B) + 1;
498
512
  }
499
513
  function A(t, e) {
@@ -505,13 +519,13 @@ function A(t, e) {
505
519
  const u = D(d, e);
506
520
  return n.getTime() >= c.getTime() ? r + 1 : n.getTime() >= u.getTime() ? r : r - 1;
507
521
  }
508
- function qt(t, e) {
522
+ function zt(t, e) {
509
523
  var c, d, u, h;
510
524
  const n = v(), r = (e == null ? void 0 : e.firstWeekContainsDate) ?? ((d = (c = e == null ? void 0 : e.locale) == null ? void 0 : c.options) == null ? void 0 : d.firstWeekContainsDate) ?? n.firstWeekContainsDate ?? ((h = (u = n.locale) == null ? void 0 : u.options) == null ? void 0 : h.firstWeekContainsDate) ?? 1, a = A(t, e), i = b(t, 0);
511
525
  return i.setFullYear(a, 0, r), i.setHours(0, 0, 0, 0), D(i, e);
512
526
  }
513
- function Ht(t, e) {
514
- const n = l(t), r = +D(n, e) - +qt(n, e);
527
+ function jt(t, e) {
528
+ const n = l(t), r = +D(n, e) - +zt(n, e);
515
529
  return Math.round(r / B) + 1;
516
530
  }
517
531
  function s(t, e) {
@@ -737,12 +751,12 @@ const w = {
737
751
  },
738
752
  // Local week of year
739
753
  w: function(t, e, n, r) {
740
- const a = Ht(t, r);
754
+ const a = jt(t, r);
741
755
  return e === "wo" ? n.ordinalNumber(a, { unit: "week" }) : s(a, e.length);
742
756
  },
743
757
  // ISO week of year
744
758
  I: function(t, e, n) {
745
- const r = Xt(t);
759
+ const r = Ht(t);
746
760
  return e === "Io" ? n.ordinalNumber(r, { unit: "week" }) : s(r, e.length);
747
761
  },
748
762
  // Day of the month
@@ -751,7 +765,7 @@ const w = {
751
765
  },
752
766
  // Day of year
753
767
  D: function(t, e, n) {
754
- const r = pt(t);
768
+ const r = qt(t);
755
769
  return e === "Do" ? n.ordinalNumber(r, { unit: "dayOfYear" }) : s(r, e.length);
756
770
  },
757
771
  // Day of week
@@ -1102,7 +1116,7 @@ const L = (t, e) => {
1102
1116
  default:
1103
1117
  return e.time({ width: "full" });
1104
1118
  }
1105
- }, zt = (t, e) => {
1119
+ }, It = (t, e) => {
1106
1120
  const n = t.match(/(P+)(p+)?/) || [], r = n[1], a = n[2];
1107
1121
  if (!a)
1108
1122
  return L(t, e);
@@ -1123,43 +1137,34 @@ const L = (t, e) => {
1123
1137
  break;
1124
1138
  }
1125
1139
  return i.replace("{{date}}", L(r, e)).replace("{{time}}", Z(a, e));
1126
- }, jt = {
1140
+ }, Lt = {
1127
1141
  p: Z,
1128
- P: zt
1129
- }, It = /^D+$/, Lt = /^Y+$/, Qt = ["D", "DD", "YY", "YYYY"];
1130
- function _t(t) {
1131
- return It.test(t);
1142
+ P: It
1143
+ }, Qt = /^D+$/, _t = /^Y+$/, Gt = ["D", "DD", "YY", "YYYY"];
1144
+ function Rt(t) {
1145
+ return Qt.test(t);
1132
1146
  }
1133
- function Gt(t) {
1134
- return Lt.test(t);
1147
+ function Bt(t) {
1148
+ return _t.test(t);
1135
1149
  }
1136
- function Rt(t, e, n) {
1137
- const r = Bt(t, e, n);
1138
- if (console.warn(r), Qt.includes(t)) throw new RangeError(r);
1150
+ function $t(t, e, n) {
1151
+ const r = At(t, e, n);
1152
+ if (console.warn(r), Gt.includes(t)) throw new RangeError(r);
1139
1153
  }
1140
- function Bt(t, e, n) {
1154
+ function At(t, e, n) {
1141
1155
  const r = t[0] === "Y" ? "years" : "days of the month";
1142
1156
  return `Use \`${t.toLowerCase()}\` instead of \`${t}\` (in \`${e}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`;
1143
1157
  }
1144
- function $t(t) {
1145
- return t instanceof Date || typeof t == "object" && Object.prototype.toString.call(t) === "[object Date]";
1146
- }
1147
- function At(t) {
1148
- if (!$t(t) && typeof t != "number")
1149
- return !1;
1150
- const e = l(t);
1151
- return !isNaN(Number(e));
1152
- }
1153
1158
  const Zt = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Vt = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Ut = /^'([^]*?)'?$/, Jt = /''/g, Kt = /[a-zA-Z]/;
1154
1159
  function te(t, e, n) {
1155
1160
  var h, g, x, P, F, p, N, X;
1156
- const r = v(), a = (n == null ? void 0 : n.locale) ?? r.locale ?? St, i = (n == null ? void 0 : n.firstWeekContainsDate) ?? ((g = (h = n == null ? void 0 : n.locale) == null ? void 0 : h.options) == null ? void 0 : g.firstWeekContainsDate) ?? r.firstWeekContainsDate ?? ((P = (x = r.locale) == null ? void 0 : x.options) == null ? void 0 : P.firstWeekContainsDate) ?? 1, o = (n == null ? void 0 : n.weekStartsOn) ?? ((p = (F = n == null ? void 0 : n.locale) == null ? void 0 : F.options) == null ? void 0 : p.weekStartsOn) ?? r.weekStartsOn ?? ((X = (N = r.locale) == null ? void 0 : N.options) == null ? void 0 : X.weekStartsOn) ?? 0, c = l(t);
1157
- if (!At(c))
1161
+ const r = v(), a = (n == null ? void 0 : n.locale) ?? r.locale ?? Xt, i = (n == null ? void 0 : n.firstWeekContainsDate) ?? ((g = (h = n == null ? void 0 : n.locale) == null ? void 0 : h.options) == null ? void 0 : g.firstWeekContainsDate) ?? r.firstWeekContainsDate ?? ((P = (x = r.locale) == null ? void 0 : x.options) == null ? void 0 : P.firstWeekContainsDate) ?? 1, o = (n == null ? void 0 : n.weekStartsOn) ?? ((p = (F = n == null ? void 0 : n.locale) == null ? void 0 : F.options) == null ? void 0 : p.weekStartsOn) ?? r.weekStartsOn ?? ((X = (N = r.locale) == null ? void 0 : N.options) == null ? void 0 : X.weekStartsOn) ?? 0, c = l(t);
1162
+ if (!et(c))
1158
1163
  throw new RangeError("Invalid time value");
1159
1164
  let d = e.match(Vt).map((m) => {
1160
1165
  const f = m[0];
1161
1166
  if (f === "p" || f === "P") {
1162
- const Y = jt[f];
1167
+ const Y = Lt[f];
1163
1168
  return Y(m, a.formatLong);
1164
1169
  }
1165
1170
  return m;
@@ -1186,7 +1191,7 @@ function te(t, e, n) {
1186
1191
  return d.map((m) => {
1187
1192
  if (!m.isToken) return m.value;
1188
1193
  const f = m.value;
1189
- (!(n != null && n.useAdditionalWeekYearTokens) && Gt(f) || !(n != null && n.useAdditionalDayOfYearTokens) && _t(f)) && Rt(f, e, String(t));
1194
+ (!(n != null && n.useAdditionalWeekYearTokens) && Bt(f) || !(n != null && n.useAdditionalDayOfYearTokens) && Rt(f)) && $t(f, e, String(t));
1190
1195
  const Y = z[f[0]];
1191
1196
  return Y(c, f, a.localize, u);
1192
1197
  }).join("");
@@ -1321,30 +1326,25 @@ function fe(t, e, n) {
1321
1326
  const r = G(e, t, !0), a = new Date(t.getTime() - r), i = /* @__PURE__ */ new Date(0);
1322
1327
  return i.setFullYear(a.getUTCFullYear(), a.getUTCMonth(), a.getUTCDate()), i.setHours(a.getUTCHours(), a.getUTCMinutes(), a.getUTCSeconds(), a.getUTCMilliseconds()), i;
1323
1328
  }
1324
- function ye(t, e, n, r) {
1329
+ function be(t, e, n, r) {
1325
1330
  return r = {
1326
1331
  ...r,
1327
1332
  timeZone: e,
1328
1333
  originalDate: t
1329
1334
  }, de(fe(t, e, { timeZone: r.timeZone }), n, r);
1330
1335
  }
1331
- function be(t) {
1332
- if (!t || typeof t != "object") return !1;
1333
- const e = t.type;
1334
- return e === "number" || e === "currency" || e === "percent" || e === "scientific";
1335
- }
1336
1336
  export {
1337
1337
  H as a,
1338
- ge as b,
1338
+ we as b,
1339
1339
  b as c,
1340
1340
  te as d,
1341
- St as e,
1342
- ye as f,
1341
+ Xt as e,
1342
+ be as f,
1343
1343
  v as g,
1344
- le as h,
1345
- be as i,
1346
- me as j,
1344
+ ge as h,
1345
+ me as i,
1346
+ le as j,
1347
1347
  fe as k,
1348
- we as m,
1348
+ ye as m,
1349
1349
  l as t
1350
1350
  };
@@ -1,16 +1,16 @@
1
1
  var Je = Object.defineProperty;
2
2
  var Xe = (e, r, t) => r in e ? Je(e, r, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[r] = t;
3
3
  var _ = (e, r, t) => Xe(e, typeof r != "symbol" ? r + "" : r, t);
4
- import { G as et, E as tt, q as rt, F as nt, o as ot, M as at, B as Q, u as U, w as it, R as ct, A as lt, i as Te, b as dt, m as st, P as j } from "./pivot-result-lifecycle-B9FTybxN.js";
4
+ import { G as et, E as tt, q as rt, F as nt, o as ot, M as at, B as Q, u as U, w as it, R as ct, A as lt, i as Te, b as dt, m as st, P as j } from "./pivot-result-lifecycle-mjJ1rBvV.js";
5
5
  import { DEFAULT_RESOLVED_VALUE_FORMAT_PREFERENCES as de } from "../value-format-preferences/index.js";
6
- import { F as Ce, m as mt, r as ae } from "./validators-D-T-2HOR.js";
7
- import "./analyze-result-contract-C8s8EUL5.js";
8
- import { h as $e, r as ke, a as Ee, v as ut, i as ft } from "./saved-temporal-bucket-format-CHsXUPJI.js";
9
- import { r as z, b as pt, d as yt, P as ht } from "./pivot-result-identity-CIZXsI53.js";
10
- import { v as gt, a as vt } from "./temporal-bucket-contract-CZl5D7FZ.js";
11
- import { h as bt, T as It, k as xe, i as wt } from "./temporal-bucket-CtP7hKLa.js";
12
- import { r as Se, s as Tt, i as Ct } from "./temporal-bucket-authoring-DJ9kK2wD.js";
13
- import { v as _e } from "./raw-temporal-contract-U8J9RlEH.js";
6
+ import { F as Ce, m as mt, r as ae } from "./validators-D3AarM2T.js";
7
+ import "./analyze-result-contract-DsiAzCYn.js";
8
+ import { h as $e, r as ke, a as Ee, v as ut, i as ft } from "./card-config-utils-CyDKaPNT.js";
9
+ import { r as z, b as pt, d as yt, P as ht } from "./pivot-result-identity-BIeP9v8I.js";
10
+ import { v as gt, a as vt } from "./temporal-bucket-contract-BeOx0uYe.js";
11
+ import { h as bt, T as It, k as xe, i as wt } from "./metric-comparison-CTexJ8V1.js";
12
+ import { r as Se, s as Tt, i as Ct } from "./temporal-bucket-authoring-CyTCHy1K.js";
13
+ import { v as _e } from "./raw-temporal-contract-BuQIB31z.js";
14
14
  import { r as $t, a as kt, b as Et } from "./canonical-result-keys-CEQefvdO.js";
15
15
  const xt = `import pandas as pd
16
16
  df = pd.DataFrame(data) # 'data' contains the query result