@sisense/sdk-ui 2.12.0 → 2.14.0

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 (97) hide show
  1. package/dist/ai.cjs +19 -19
  2. package/dist/ai.js +623 -613
  3. package/dist/analytics-composer/node.cjs +1 -1
  4. package/dist/analytics-composer/node.js +252 -217
  5. package/dist/analytics-composer.cjs +18 -18
  6. package/dist/analytics-composer.js +18 -9
  7. package/dist/{derive-chart-family-mugR7Ty1.cjs → derive-chart-family-DJUpWKOP.cjs} +69 -64
  8. package/dist/{derive-chart-family-YIDiS_iY.js → derive-chart-family-D_bylSQy.js} +8340 -8069
  9. package/dist/{dimensions-DmRfLrT-.js → dimensions-CTUJhW-M.js} +1 -1
  10. package/dist/{dimensions-CyzZ0dbM.cjs → dimensions-CdNGgk9I.cjs} +1 -1
  11. package/dist/execute-query-CNt566O5.cjs +1 -0
  12. package/dist/{execute-query-BCEeyd9s.js → execute-query-DyjkDYHG.js} +1494 -1431
  13. package/dist/index.cjs +24 -24
  14. package/dist/index.js +7449 -7168
  15. package/dist/index.umd.js +351 -349
  16. package/dist/packages/sdk-ui/src/ai/index.d.ts +1 -1
  17. package/dist/packages/sdk-ui/src/ai/use-get-nlq-result.d.ts +22 -1
  18. package/dist/packages/sdk-ui/src/app/client-application.d.ts +3 -2
  19. package/dist/packages/sdk-ui/src/app/settings/settings.d.ts +49 -0
  20. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/constants.d.ts +12 -4
  21. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/highchart-options-builder/index.d.ts +25 -1
  22. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/highchart-options-builder/options/axes-options/continuous-axes-options.d.ts +12 -0
  23. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/highchart-options-builder/options/axes-options/helpers.d.ts +24 -0
  24. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/highchart-options-builder/options/axes-options/index.d.ts +2 -0
  25. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/highchart-options-builder/options/axes-options/split-axes-options.d.ts +12 -0
  26. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/highchart-options-builder/options/chart-options.d.ts +9 -2
  27. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/highchart-options-builder/options/index.d.ts +3 -3
  28. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/highchart-options-builder/options/series-options/calendar-data-generator.d.ts +12 -2
  29. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/highchart-options-builder/options/series-options/index.d.ts +1 -1
  30. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/highchart-options-builder/options/series-options/series-options.d.ts +9 -2
  31. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/calendar-heatmap-charts-grid.d.ts +2 -1
  32. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/helpers/data-helpers.d.ts +2 -1
  33. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/helpers/data-per-chart-instance.d.ts +13 -0
  34. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/helpers/sizing-helpers.d.ts +16 -3
  35. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/helpers/view-helpers.d.ts +4 -4
  36. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/hooks/use-calendar-heatmap-chart-options.d.ts +7 -6
  37. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/utils/calendar-utils.d.ts +1 -1
  38. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/funnel-chart/design-options/index.d.ts +14 -0
  39. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/pie-chart/design-options/index.d.ts +2 -0
  40. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/treemap-chart/design-options/index.d.ts +3 -0
  41. package/dist/packages/sdk-ui/src/chart/restructured-charts/types.d.ts +9 -0
  42. package/dist/packages/sdk-ui/src/chart-options-processor/cartesian/utils/series-processor.d.ts +12 -15
  43. package/dist/packages/sdk-ui/src/chart-options-processor/series-labels.d.ts +17 -17
  44. package/dist/packages/sdk-ui/src/chart-options-processor/stack-labels.d.ts +18 -22
  45. package/dist/packages/sdk-ui/src/chart-options-processor/style-to-design-options-translator/translate-to-highcharts-options.d.ts +4 -2
  46. package/dist/packages/sdk-ui/src/chart-options-processor/translations/axis-section.d.ts +3 -2
  47. package/dist/packages/sdk-ui/src/chart-options-processor/translations/design-options.d.ts +7 -6
  48. package/dist/packages/sdk-ui/src/chart-options-processor/translations/funnel-plot-options.d.ts +12 -17
  49. package/dist/packages/sdk-ui/src/chart-options-processor/translations/legend-section.d.ts +3 -2
  50. package/dist/packages/sdk-ui/src/chart-options-processor/translations/pie-plot-options.d.ts +3 -3
  51. package/dist/packages/sdk-ui/src/chart-options-processor/translations/treemap/treemap-labels.d.ts +2 -2
  52. package/dist/packages/sdk-ui/src/chart-options-processor/translations/value-label-section.d.ts +3 -2
  53. package/dist/packages/sdk-ui/src/common/components/menu/context-menu/context-menu.d.ts +1 -0
  54. package/dist/packages/sdk-ui/src/dashboard/components/editable-layout/helpers.d.ts +11 -0
  55. package/dist/packages/sdk-ui/src/dashboard/components/toolbar/edit-toggle.d.ts +25 -0
  56. package/dist/packages/sdk-ui/src/dashboard/constants.d.ts +2 -2
  57. package/dist/packages/sdk-ui/src/dashboard/dashboard.d.ts +0 -30
  58. package/dist/packages/sdk-ui/src/dashboard/hooks/use-dashboard-header-toolbar.d.ts +3 -2
  59. package/dist/packages/sdk-ui/src/dashboard/hooks/use-tabber.d.ts +25 -10
  60. package/dist/packages/sdk-ui/src/dashboard/index.d.ts +1 -1
  61. package/dist/packages/sdk-ui/src/dashboard/types.d.ts +83 -11
  62. package/dist/packages/sdk-ui/src/dashboard/use-composed-dashboard.d.ts +1 -1
  63. package/dist/packages/sdk-ui/src/index.d.ts +2 -0
  64. package/dist/packages/sdk-ui/src/models/dashboard/dashboard-model.d.ts +15 -3
  65. package/dist/packages/sdk-ui/src/models/dashboard/translate-dashboard-utils.d.ts +3 -2
  66. package/dist/packages/sdk-ui/src/models/dashboard/types.d.ts +1 -10
  67. package/dist/packages/sdk-ui/src/models/dashboard/use-dashboard-model/use-dasboard-model-utils.d.ts +5 -5
  68. package/dist/packages/sdk-ui/src/models/widget/widget-model-translator/index.d.ts +1 -0
  69. package/dist/packages/sdk-ui/src/models/widget/widget-model-translator/tabber.d.ts +21 -0
  70. package/dist/packages/sdk-ui/src/models/widget/{widget-model-translator.d.ts → widget-model-translator/widget-model-translator.d.ts} +15 -15
  71. package/dist/packages/sdk-ui/src/models/widget/widget-model.d.ts +6 -0
  72. package/dist/packages/sdk-ui/src/pivot-table/hooks/use-render-pivot.d.ts +7 -1
  73. package/dist/packages/sdk-ui/src/props.d.ts +8 -20
  74. package/dist/packages/sdk-ui/src/translation/resources/en.d.ts +2 -0
  75. package/dist/packages/sdk-ui/src/translation/resources/index.d.ts +4 -0
  76. package/dist/packages/sdk-ui/src/types.d.ts +157 -107
  77. package/dist/packages/sdk-ui/src/utils/gradient.d.ts +396 -0
  78. package/dist/packages/sdk-ui/src/utils/omit-undefined.d.ts +21 -0
  79. package/dist/packages/sdk-ui/src/widget-by-id/translate-widget-style-options/index.d.ts +1 -0
  80. package/dist/packages/sdk-ui/src/widget-by-id/translate-widget-style-options/tabber.d.ts +23 -0
  81. package/dist/packages/sdk-ui/src/widget-by-id/{translate-widget-style-options.d.ts → translate-widget-style-options/translate-widget-style-options.d.ts} +4 -4
  82. package/dist/packages/sdk-ui/src/widget-by-id/types.d.ts +38 -3
  83. package/dist/packages/sdk-ui/src/widget-by-id/utils.d.ts +30 -2
  84. package/dist/packages/sdk-ui/src/widgets/tabber/tabber-buttons-widget.d.ts +8 -0
  85. package/dist/packages/sdk-ui/src/widgets/tabber/types.d.ts +110 -0
  86. package/dist/{types-CevYjGN4.cjs → types-D1qM-ltg.cjs} +1 -1
  87. package/dist/{types-DVAfvbpR.js → types-DglXXR-Q.js} +1 -1
  88. package/dist/{use-common-filters-DIF4c8WP.js → use-common-filters-BGrn7zoW.js} +22269 -21424
  89. package/dist/use-common-filters-DxzCHhgF.cjs +846 -0
  90. package/dist/{widget-composer-C0lZpwN6.cjs → widget-composer-C24YJEek.cjs} +6 -10
  91. package/dist/{widget-composer-BB5Jrgae.js → widget-composer-lBv40CFf.js} +132 -135
  92. package/package.json +7 -7
  93. package/dist/execute-query-Xt9drS3G.cjs +0 -1
  94. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/highchart-options-builder/highcharts-options-builder.d.ts +0 -8
  95. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/highchart-options-builder/options/axes-options.d.ts +0 -12
  96. package/dist/packages/sdk-ui/src/widgets/tabber-widget.d.ts +0 -41
  97. package/dist/use-common-filters-BXdnB4GI.cjs +0 -845
@@ -1,20 +1,20 @@
1
1
  var _e = Object.defineProperty, Le = Object.defineProperties;
2
2
  var Ve = Object.getOwnPropertyDescriptors;
3
- var oe = Object.getOwnPropertySymbols;
3
+ var ue = Object.getOwnPropertySymbols;
4
4
  var Ue = Object.prototype.hasOwnProperty, Je = Object.prototype.propertyIsEnumerable;
5
- var ue = (e, r, t) => r in e ? _e(e, r, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[r] = t, h = (e, r) => {
5
+ var le = (e, r, t) => r in e ? _e(e, r, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[r] = t, h = (e, r) => {
6
6
  for (var t in r || (r = {}))
7
- Ue.call(r, t) && ue(e, t, r[t]);
8
- if (oe)
9
- for (var t of oe(r))
10
- Je.call(r, t) && ue(e, t, r[t]);
7
+ Ue.call(r, t) && le(e, t, r[t]);
8
+ if (ue)
9
+ for (var t of ue(r))
10
+ Je.call(r, t) && le(e, t, r[t]);
11
11
  return e;
12
12
  }, q = (e, r) => Le(e, Ve(r));
13
- import { f as We, J as Ke } from "../types-DVAfvbpR.js";
14
- import { b as ei, E as ri, a as ti, i as ii, e as si, d as ni } from "../types-DVAfvbpR.js";
15
- import { bW as je, bA as Qe, bX as Ye, bY as He, bZ as Xe, ax as ge, b_ as Ze, aw as Ge, b$ as ve, b5 as er, ay as rr, b8 as tr, b6 as ir, aH as sr, b4 as nr, b7 as ar, e as or, d as ur, l as lr, c0 as cr, c1 as fr, c2 as dr, c3 as yr, c4 as pr, c5 as mr, c6 as gr, c7 as br, c8 as hr, c9 as Fr, as as qr, ca as wr, cb as Er, S as Ar, i as xr, s as Cr, c as j, M as z, cc as $r, cd as Dr, ce as Mr, cf as Rr, aD as Sr, al as le, ak as Nr, cg as zr, x as Or, w as Tr } from "../execute-query-BCEeyd9s.js";
16
- import { i as Br, b as Pr, D as kr, d as Ir } from "../dimensions-DmRfLrT-.js";
17
- class _r {
13
+ import { f as We, J as Ke } from "../types-DglXXR-Q.js";
14
+ import { b as ti, E as ii, a as si, i as ni, e as ai, d as oi } from "../types-DglXXR-Q.js";
15
+ import { bW as je, bB as Qe, bX as Ye, bY as He, bZ as Xe, av as ge, b_ as Ze, au as Ge, b$ as ve, b6 as er, aw as rr, c0 as tr, b9 as ir, b7 as sr, aI as nr, b5 as ar, b8 as or, e as ur, d as lr, l as cr, c1 as fr, c2 as dr, c3 as yr, c4 as pr, c5 as mr, c6 as gr, c7 as br, c8 as hr, c9 as Fr, ca as qr, cb as wr, at as Er, cc as Ar, cd as Cr, S as xr, i as $r, s as Dr, c as j, M as z, ce as Mr, cf as Rr, cg as Sr, ch as Nr, aE as zr, am as ce, al as Or, ci as Tr, x as Br, w as Pr } from "../execute-query-DyjkDYHG.js";
16
+ import { i as kr, b as Ir, D as _r, d as Lr } from "../dimensions-CTUJhW-M.js";
17
+ class Vr {
18
18
  constructor() {
19
19
  this.keyToValue = /* @__PURE__ */ new Map(), this.valueToKey = /* @__PURE__ */ new Map();
20
20
  }
@@ -33,7 +33,7 @@ class _r {
33
33
  }
34
34
  class be {
35
35
  constructor(r) {
36
- this.generateIdentifier = r, this.kv = new _r();
36
+ this.generateIdentifier = r, this.kv = new Vr();
37
37
  }
38
38
  register(r, t) {
39
39
  this.kv.getByValue(r) || (t || (t = this.generateIdentifier(r)), this.kv.set(t, r));
@@ -48,7 +48,7 @@ class be {
48
48
  return this.kv.getByKey(r);
49
49
  }
50
50
  }
51
- class Lr extends be {
51
+ class Ur extends be {
52
52
  constructor() {
53
53
  super((r) => r.name), this.classToAllowedProps = /* @__PURE__ */ new Map();
54
54
  }
@@ -59,7 +59,7 @@ class Lr extends be {
59
59
  return this.classToAllowedProps.get(r);
60
60
  }
61
61
  }
62
- function Vr(e) {
62
+ function Jr(e) {
63
63
  if ("values" in Object)
64
64
  return Object.values(e);
65
65
  const r = [];
@@ -67,8 +67,8 @@ function Vr(e) {
67
67
  e.hasOwnProperty(t) && r.push(e[t]);
68
68
  return r;
69
69
  }
70
- function Ur(e, r) {
71
- const t = Vr(e);
70
+ function Wr(e, r) {
71
+ const t = Jr(e);
72
72
  if ("find" in t)
73
73
  return t.find(r);
74
74
  const i = t;
@@ -84,14 +84,14 @@ function O(e, r) {
84
84
  function V(e, r) {
85
85
  return e.indexOf(r) !== -1;
86
86
  }
87
- function ce(e, r) {
87
+ function fe(e, r) {
88
88
  for (let t = 0; t < e.length; t++) {
89
89
  const i = e[t];
90
90
  if (r(i))
91
91
  return i;
92
92
  }
93
93
  }
94
- class Jr {
94
+ class Kr {
95
95
  constructor() {
96
96
  this.transfomers = {};
97
97
  }
@@ -99,13 +99,13 @@ class Jr {
99
99
  this.transfomers[r.name] = r;
100
100
  }
101
101
  findApplicable(r) {
102
- return Ur(this.transfomers, (t) => t.isApplicable(r));
102
+ return Wr(this.transfomers, (t) => t.isApplicable(r));
103
103
  }
104
104
  findByName(r) {
105
105
  return this.transfomers[r];
106
106
  }
107
107
  }
108
- const Wr = (e) => Object.prototype.toString.call(e).slice(8, -1), he = (e) => typeof e == "undefined", Kr = (e) => e === null, k = (e) => typeof e != "object" || e === null || e === Object.prototype ? !1 : Object.getPrototypeOf(e) === null ? !0 : Object.getPrototypeOf(e) === Object.prototype, H = (e) => k(e) && Object.keys(e).length === 0, $ = (e) => Array.isArray(e), jr = (e) => typeof e == "string", Qr = (e) => typeof e == "number" && !isNaN(e), Yr = (e) => typeof e == "boolean", Hr = (e) => e instanceof RegExp, I = (e) => e instanceof Map, _ = (e) => e instanceof Set, Fe = (e) => Wr(e) === "Symbol", Xr = (e) => e instanceof Date && !isNaN(e.valueOf()), Zr = (e) => e instanceof Error, fe = (e) => typeof e == "number" && isNaN(e), Gr = (e) => Yr(e) || Kr(e) || he(e) || Qr(e) || jr(e) || Fe(e), vr = (e) => typeof e == "bigint", et = (e) => e === 1 / 0 || e === -1 / 0, rt = (e) => ArrayBuffer.isView(e) && !(e instanceof DataView), tt = (e) => e instanceof URL, qe = (e) => e.replace(/\./g, "\\."), Q = (e) => e.map(String).map(qe).join("."), P = (e) => {
108
+ const jr = (e) => Object.prototype.toString.call(e).slice(8, -1), he = (e) => typeof e == "undefined", Qr = (e) => e === null, k = (e) => typeof e != "object" || e === null || e === Object.prototype ? !1 : Object.getPrototypeOf(e) === null ? !0 : Object.getPrototypeOf(e) === Object.prototype, X = (e) => k(e) && Object.keys(e).length === 0, $ = (e) => Array.isArray(e), Yr = (e) => typeof e == "string", Hr = (e) => typeof e == "number" && !isNaN(e), Xr = (e) => typeof e == "boolean", Zr = (e) => e instanceof RegExp, I = (e) => e instanceof Map, _ = (e) => e instanceof Set, Fe = (e) => jr(e) === "Symbol", Gr = (e) => e instanceof Date && !isNaN(e.valueOf()), vr = (e) => e instanceof Error, de = (e) => typeof e == "number" && isNaN(e), et = (e) => Xr(e) || Qr(e) || he(e) || Hr(e) || Yr(e) || Fe(e), rt = (e) => typeof e == "bigint", tt = (e) => e === 1 / 0 || e === -1 / 0, it = (e) => ArrayBuffer.isView(e) && !(e instanceof DataView), st = (e) => e instanceof URL, qe = (e) => e.replace(/\./g, "\\."), Q = (e) => e.map(String).map(qe).join("."), P = (e) => {
109
109
  const r = [];
110
110
  let t = "";
111
111
  for (let s = 0; s < e.length; s++) {
@@ -134,9 +134,9 @@ function E(e, r, t, i) {
134
134
  const we = [
135
135
  E(he, "undefined", () => null, () => {
136
136
  }),
137
- E(vr, "bigint", (e) => e.toString(), (e) => typeof BigInt != "undefined" ? BigInt(e) : (console.error("Please add a BigInt polyfill."), e)),
138
- E(Xr, "Date", (e) => e.toISOString(), (e) => new Date(e)),
139
- E(Zr, "Error", (e, r) => {
137
+ E(rt, "bigint", (e) => e.toString(), (e) => typeof BigInt != "undefined" ? BigInt(e) : (console.error("Please add a BigInt polyfill."), e)),
138
+ E(Gr, "Date", (e) => e.toISOString(), (e) => new Date(e)),
139
+ E(vr, "Error", (e, r) => {
140
140
  const t = {
141
141
  name: e.name,
142
142
  message: e.message
@@ -150,7 +150,7 @@ const we = [
150
150
  t[i] = e[i];
151
151
  }), t;
152
152
  }),
153
- E(Hr, "regexp", (e) => "" + e, (e) => {
153
+ E(Zr, "regexp", (e) => "" + e, (e) => {
154
154
  const r = e.slice(1, e.lastIndexOf("/")), t = e.slice(e.lastIndexOf("/") + 1);
155
155
  return new RegExp(r, t);
156
156
  }),
@@ -163,9 +163,9 @@ const we = [
163
163
  (e) => new Set(e)
164
164
  ),
165
165
  E(I, "map", (e) => [...e.entries()], (e) => new Map(e)),
166
- E((e) => fe(e) || et(e), "number", (e) => fe(e) ? "NaN" : e > 0 ? "Infinity" : "-Infinity", Number),
166
+ E((e) => de(e) || tt(e), "number", (e) => de(e) ? "NaN" : e > 0 ? "Infinity" : "-Infinity", Number),
167
167
  E((e) => e === 0 && 1 / e === -1 / 0, "number", () => "-0", Number),
168
- E(tt, "URL", (e) => e.toString(), (e) => new URL(e))
168
+ E(st, "URL", (e) => e.toString(), (e) => new URL(e))
169
169
  ];
170
170
  function U(e, r, t, i) {
171
171
  return {
@@ -180,7 +180,7 @@ const Ee = U((e, r) => Fe(e) ? !!r.symbolRegistry.getIdentifier(e) : !1, (e, r)
180
180
  if (!i)
181
181
  throw new Error("Trying to deserialize unknown symbol");
182
182
  return i;
183
- }), it = [
183
+ }), nt = [
184
184
  Int8Array,
185
185
  Uint8Array,
186
186
  Int16Array,
@@ -190,16 +190,16 @@ const Ee = U((e, r) => Fe(e) ? !!r.symbolRegistry.getIdentifier(e) : !1, (e, r)
190
190
  Float32Array,
191
191
  Float64Array,
192
192
  Uint8ClampedArray
193
- ].reduce((e, r) => (e[r.name] = r, e), {}), Ae = U(rt, (e) => ["typed-array", e.constructor.name], (e) => [...e], (e, r) => {
194
- const t = it[r[1]];
193
+ ].reduce((e, r) => (e[r.name] = r, e), {}), Ae = U(it, (e) => ["typed-array", e.constructor.name], (e) => [...e], (e, r) => {
194
+ const t = nt[r[1]];
195
195
  if (!t)
196
196
  throw new Error("Trying to deserialize unknown typed array");
197
197
  return new t(e);
198
198
  });
199
- function xe(e, r) {
199
+ function Ce(e, r) {
200
200
  return e != null && e.constructor ? !!r.classRegistry.getIdentifier(e.constructor) : !1;
201
201
  }
202
- const Ce = U(xe, (e, r) => ["class", r.classRegistry.getIdentifier(e.constructor)], (e, r) => {
202
+ const xe = U(Ce, (e, r) => ["class", r.classRegistry.getIdentifier(e.constructor)], (e, r) => {
203
203
  const t = r.classRegistry.getAllowedProps(e.constructor);
204
204
  if (!t)
205
205
  return h({}, e);
@@ -217,14 +217,14 @@ const Ce = U(xe, (e, r) => ["class", r.classRegistry.getIdentifier(e.constructor
217
217
  if (!i)
218
218
  throw new Error("Trying to deserialize unknown custom value");
219
219
  return i.deserialize(e);
220
- }), st = [Ce, Ee, $e, Ae], de = (e, r) => {
221
- const t = ce(st, (s) => s.isApplicable(e, r));
220
+ }), at = [xe, Ee, $e, Ae], ye = (e, r) => {
221
+ const t = fe(at, (s) => s.isApplicable(e, r));
222
222
  if (t)
223
223
  return {
224
224
  value: t.transform(e, r),
225
225
  type: t.annotation(e, r)
226
226
  };
227
- const i = ce(we, (s) => s.isApplicable(e, r));
227
+ const i = fe(we, (s) => s.isApplicable(e, r));
228
228
  if (i)
229
229
  return {
230
230
  value: i.transform(e, r),
@@ -234,13 +234,13 @@ const Ce = U(xe, (e, r) => ["class", r.classRegistry.getIdentifier(e.constructor
234
234
  we.forEach((e) => {
235
235
  De[e.annotation] = e;
236
236
  });
237
- const nt = (e, r, t) => {
237
+ const ot = (e, r, t) => {
238
238
  if ($(r))
239
239
  switch (r[0]) {
240
240
  case "symbol":
241
241
  return Ee.untransform(e, r, t);
242
242
  case "class":
243
- return Ce.untransform(e, r, t);
243
+ return xe.untransform(e, r, t);
244
244
  case "custom":
245
245
  return $e.untransform(e, r, t);
246
246
  case "typed-array":
@@ -270,7 +270,7 @@ function Me(e) {
270
270
  if (V(e, "constructor"))
271
271
  throw new Error("constructor is not allowed as a property");
272
272
  }
273
- const at = (e, r) => {
273
+ const ut = (e, r) => {
274
274
  Me(r);
275
275
  for (let t = 0; t < r.length; t++) {
276
276
  const i = r[t];
@@ -290,7 +290,7 @@ const at = (e, r) => {
290
290
  e = e[i];
291
291
  }
292
292
  return e;
293
- }, X = (e, r, t) => {
293
+ }, Z = (e, r, t) => {
294
294
  if (Me(r), r.length === 0)
295
295
  return t(e);
296
296
  let i = e;
@@ -339,45 +339,45 @@ const at = (e, r) => {
339
339
  }
340
340
  return e;
341
341
  };
342
- function Z(e, r, t = []) {
342
+ function G(e, r, t = []) {
343
343
  if (!e)
344
344
  return;
345
345
  if (!$(e)) {
346
- O(e, (a, n) => Z(a, r, [...t, ...P(n)]));
346
+ O(e, (a, n) => G(a, r, [...t, ...P(n)]));
347
347
  return;
348
348
  }
349
349
  const [i, s] = e;
350
350
  s && O(s, (a, n) => {
351
- Z(a, r, [...t, ...P(n)]);
351
+ G(a, r, [...t, ...P(n)]);
352
352
  }), r(i, t);
353
353
  }
354
- function ot(e, r, t) {
355
- return Z(r, (i, s) => {
356
- e = X(e, s, (a) => nt(a, i, t));
354
+ function lt(e, r, t) {
355
+ return G(r, (i, s) => {
356
+ e = Z(e, s, (a) => ot(a, i, t));
357
357
  }), e;
358
358
  }
359
- function ut(e, r) {
359
+ function ct(e, r) {
360
360
  function t(i, s) {
361
- const a = at(e, P(s));
361
+ const a = ut(e, P(s));
362
362
  i.map(P).forEach((n) => {
363
- e = X(e, n, () => a);
363
+ e = Z(e, n, () => a);
364
364
  });
365
365
  }
366
366
  if ($(r)) {
367
367
  const [i, s] = r;
368
368
  i.forEach((a) => {
369
- e = X(e, P(a), () => e);
369
+ e = Z(e, P(a), () => e);
370
370
  }), s && O(s, t);
371
371
  } else
372
372
  O(r, t);
373
373
  return e;
374
374
  }
375
- const lt = (e, r) => k(e) || $(e) || I(e) || _(e) || xe(e, r);
376
- function ct(e, r, t) {
375
+ const ft = (e, r) => k(e) || $(e) || I(e) || _(e) || Ce(e, r);
376
+ function dt(e, r, t) {
377
377
  const i = t.get(e);
378
378
  i ? i.push(r) : t.set(e, [r]);
379
379
  }
380
- function ft(e, r) {
380
+ function yt(e, r) {
381
381
  const t = {};
382
382
  let i;
383
383
  return e.forEach((s) => {
@@ -386,21 +386,21 @@ function ft(e, r) {
386
386
  r || (s = s.map((o) => o.map(String)).sort((o, u) => o.length - u.length));
387
387
  const [a, ...n] = s;
388
388
  a.length === 0 ? i = n.map(Q) : t[Q(a)] = n.map(Q);
389
- }), i ? H(t) ? [i] : [i, t] : H(t) ? void 0 : t;
389
+ }), i ? X(t) ? [i] : [i, t] : X(t) ? void 0 : t;
390
390
  }
391
391
  const Re = (e, r, t, i, s = [], a = [], n = /* @__PURE__ */ new Map()) => {
392
392
  var b;
393
- const o = Gr(e);
393
+ const o = et(e);
394
394
  if (!o) {
395
- ct(e, s, r);
395
+ dt(e, s, r);
396
396
  const f = n.get(e);
397
397
  if (f)
398
398
  return i ? {
399
399
  transformedValue: null
400
400
  } : f;
401
401
  }
402
- if (!lt(e, t)) {
403
- const f = de(e, t), y = f ? {
402
+ if (!ft(e, t)) {
403
+ const f = ye(e, t), y = f ? {
404
404
  transformedValue: f.value,
405
405
  annotations: [f.type]
406
406
  } : {
@@ -412,16 +412,16 @@ const Re = (e, r, t, i, s = [], a = [], n = /* @__PURE__ */ new Map()) => {
412
412
  return {
413
413
  transformedValue: null
414
414
  };
415
- const u = de(e, t), c = (b = u == null ? void 0 : u.value) != null ? b : e, d = $(c) ? [] : {}, g = {};
415
+ const u = ye(e, t), c = (b = u == null ? void 0 : u.value) != null ? b : e, d = $(c) ? [] : {}, g = {};
416
416
  O(c, (f, y) => {
417
417
  if (y === "__proto__" || y === "constructor" || y === "prototype")
418
418
  throw new Error(`Detected property ${y}. This is a prototype pollution risk, please remove it from your object.`);
419
- const C = Re(f, r, t, i, [...s, y], [...a, e], n);
420
- d[y] = C.transformedValue, $(C.annotations) ? g[y] = C.annotations : k(C.annotations) && O(C.annotations, (B, S) => {
419
+ const x = Re(f, r, t, i, [...s, y], [...a, e], n);
420
+ d[y] = x.transformedValue, $(x.annotations) ? g[y] = x.annotations : k(x.annotations) && O(x.annotations, (B, S) => {
421
421
  g[qe(y) + "." + S] = B;
422
422
  });
423
423
  });
424
- const p = H(g) ? {
424
+ const p = X(g) ? {
425
425
  transformedValue: d,
426
426
  annotations: u ? [u.type] : void 0
427
427
  } : {
@@ -433,16 +433,16 @@ const Re = (e, r, t, i, s = [], a = [], n = /* @__PURE__ */ new Map()) => {
433
433
  function Se(e) {
434
434
  return Object.prototype.toString.call(e).slice(8, -1);
435
435
  }
436
- function ye(e) {
436
+ function pe(e) {
437
437
  return Se(e) === "Array";
438
438
  }
439
- function dt(e) {
439
+ function pt(e) {
440
440
  if (Se(e) !== "Object")
441
441
  return !1;
442
442
  const r = Object.getPrototypeOf(e);
443
443
  return !!r && r.constructor === Object && r === Object.prototype;
444
444
  }
445
- function yt(e, r, t, i, s) {
445
+ function mt(e, r, t, i, s) {
446
446
  const a = {}.propertyIsEnumerable.call(i, r) ? "enumerable" : "nonenumerable";
447
447
  a === "enumerable" && (e[r] = t), s && a === "nonenumerable" && Object.defineProperty(e, r, {
448
448
  value: t,
@@ -451,17 +451,17 @@ function yt(e, r, t, i, s) {
451
451
  configurable: !0
452
452
  });
453
453
  }
454
- function G(e, r = {}) {
455
- if (ye(e))
456
- return e.map((s) => G(s, r));
457
- if (!dt(e))
454
+ function v(e, r = {}) {
455
+ if (pe(e))
456
+ return e.map((s) => v(s, r));
457
+ if (!pt(e))
458
458
  return e;
459
459
  const t = Object.getOwnPropertyNames(e), i = Object.getOwnPropertySymbols(e);
460
460
  return [...t, ...i].reduce((s, a) => {
461
- if (ye(r.props) && !r.props.includes(a))
461
+ if (pe(r.props) && !r.props.includes(a))
462
462
  return s;
463
- const n = e[a], o = G(n, r);
464
- return yt(s, a, o, e, r.nonenumerable), s;
463
+ const n = e[a], o = v(n, r);
464
+ return mt(s, a, o, e, r.nonenumerable), s;
465
465
  }, {});
466
466
  }
467
467
  class l {
@@ -469,10 +469,10 @@ class l {
469
469
  * @param dedupeReferentialEqualities If true, SuperJSON will make sure only one instance of referentially equal objects are serialized and the rest are replaced with `null`.
470
470
  */
471
471
  constructor({ dedupe: r = !1 } = {}) {
472
- this.classRegistry = new Lr(), this.symbolRegistry = new be((t) => {
472
+ this.classRegistry = new Ur(), this.symbolRegistry = new be((t) => {
473
473
  var i;
474
474
  return (i = t.description) != null ? i : "";
475
- }), this.customTransformerRegistry = new Jr(), this.allowedErrorProps = [], this.dedupe = r;
475
+ }), this.customTransformerRegistry = new Kr(), this.allowedErrorProps = [], this.dedupe = r;
476
476
  }
477
477
  serialize(r) {
478
478
  const t = /* @__PURE__ */ new Map(), i = Re(r, t, this, this.dedupe), s = {
@@ -481,15 +481,15 @@ class l {
481
481
  i.annotations && (s.meta = q(h({}, s.meta), {
482
482
  values: i.annotations
483
483
  }));
484
- const a = ft(t, this.dedupe);
484
+ const a = yt(t, this.dedupe);
485
485
  return a && (s.meta = q(h({}, s.meta), {
486
486
  referentialEqualities: a
487
487
  })), s;
488
488
  }
489
489
  deserialize(r) {
490
490
  const { json: t, meta: i } = r;
491
- let s = G(t);
492
- return i != null && i.values && (s = ot(s, i.values, this)), i != null && i.referentialEqualities && (s = ut(s, i.referentialEqualities)), s;
491
+ let s = v(t);
492
+ return i != null && i.values && (s = lt(s, i.values, this)), i != null && i.referentialEqualities && (s = ct(s, i.referentialEqualities)), s;
493
493
  }
494
494
  stringify(r) {
495
495
  return JSON.stringify(this.serialize(r));
@@ -521,16 +521,16 @@ l.registerClass = l.defaultInstance.registerClass.bind(l.defaultInstance);
521
521
  l.registerSymbol = l.defaultInstance.registerSymbol.bind(l.defaultInstance);
522
522
  l.registerCustom = l.defaultInstance.registerCustom.bind(l.defaultInstance);
523
523
  l.allowErrorProps = l.defaultInstance.allowErrorProps.bind(l.defaultInstance);
524
- const R = (e) => e === void 0 ? Ar.None : e, pt = (e) => new Ke(e.metadataItem, e.type), v = (e) => new or(e.name, e.expression, e.type, e.description, R(e.sort), e.dataSource, e.composeCode), ee = (e) => new ur(e.name, e.expression, e.granularity, e.format, e.description, R(e.sort), e.dataSource, e.composeCode), F = (e) => {
524
+ const R = (e) => e === void 0 ? xr.None : e, gt = (e) => new Ke(e.metadataItem, e.type), ee = (e) => new ur(e.name, e.expression, e.type, e.description, R(e.sort), e.dataSource, e.composeCode), re = (e) => new lr(e.name, e.expression, e.granularity, e.format, e.description, R(e.sort), e.dataSource, e.composeCode), F = (e) => {
525
525
  switch (e.__serializable) {
526
526
  case "DimensionalAttribute":
527
- return v(e);
528
- case "DimensionalLevelAttribute":
529
527
  return ee(e);
528
+ case "DimensionalLevelAttribute":
529
+ return re(e);
530
530
  default:
531
531
  return e;
532
532
  }
533
- }, Ne = (e) => new kr(e.name, e.expression, e.attributes.map(F), e.dimensions.map(mt), e.type, e.description, R(e.sort), e.dataSource, e.composeCode, e.defaultAttribute ? F(e.defaultAttribute) : void 0), ze = (e) => new Ir(e.name, e.expression, e.description, R(e.sort), e.dataSource, e.composeCode), mt = (e) => {
533
+ }, Ne = (e) => new _r(e.name, e.expression, e.attributes.map(F), e.dimensions.map(bt), e.type, e.description, R(e.sort), e.dataSource, e.composeCode, e.defaultAttribute ? F(e.defaultAttribute) : void 0), ze = (e) => new Lr(e.name, e.expression, e.description, R(e.sort), e.dataSource, e.composeCode), bt = (e) => {
534
534
  switch (e.__serializable) {
535
535
  case "DimensionalDimension":
536
536
  return Ne(e);
@@ -539,29 +539,29 @@ const R = (e) => e === void 0 ? Ar.None : e, pt = (e) => new Ke(e.metadataItem,
539
539
  default:
540
540
  return e;
541
541
  }
542
- }, re = (e) => new lr(e.name, F(e.attribute), e.aggregation, e.format, e.description, R(e.sort), e.dataSource, e.composeCode), te = (e) => {
542
+ }, te = (e) => new cr(e.name, F(e.attribute), e.aggregation, e.format, e.description, R(e.sort), e.dataSource, e.composeCode), ie = (e) => {
543
543
  const r = Object.fromEntries(Object.entries(e.context).map(([t, i]) => {
544
544
  if (i && typeof i == "object" && "__serializable" in i)
545
545
  switch (i.__serializable) {
546
546
  case "DimensionalAttribute":
547
547
  return [
548
548
  t,
549
- v(i)
549
+ ee(i)
550
550
  ];
551
551
  case "DimensionalLevelAttribute":
552
552
  return [
553
553
  t,
554
- ee(i)
554
+ re(i)
555
555
  ];
556
556
  case "DimensionalBaseMeasure":
557
557
  return [
558
558
  t,
559
- re(i)
559
+ te(i)
560
560
  ];
561
561
  case "DimensionalCalculatedMeasure":
562
562
  return [
563
563
  t,
564
- te(i)
564
+ ie(i)
565
565
  ];
566
566
  default:
567
567
  return [
@@ -574,13 +574,13 @@ const R = (e) => e === void 0 ? Ar.None : e, pt = (e) => new Ke(e.metadataItem,
574
574
  i
575
575
  ];
576
576
  }));
577
- return new cr(e.name, e.expression, r, e.format, e.description, R(e.sort), e.dataSource, e.composeCode);
578
- }, Oe = (e) => new fr(e.name, F(e.attribute), e.format, e.description, R(e.sort), e.dataSource, e.composeCode), pe = (e) => {
577
+ return new fr(e.name, e.expression, r, e.format, e.description, R(e.sort), e.dataSource, e.composeCode);
578
+ }, Oe = (e) => new dr(e.name, F(e.attribute), e.format, e.description, R(e.sort), e.dataSource, e.composeCode), Y = (e) => {
579
579
  switch (e.__serializable) {
580
580
  case "DimensionalBaseMeasure":
581
- return re(e);
582
- case "DimensionalCalculatedMeasure":
583
581
  return te(e);
582
+ case "DimensionalCalculatedMeasure":
583
+ return ie(e);
584
584
  case "DimensionalMeasureTemplate":
585
585
  return Oe(e);
586
586
  default:
@@ -589,31 +589,33 @@ const R = (e) => e === void 0 ? Ar.None : e, pt = (e) => new Ke(e.metadataItem,
589
589
  }, m = (e) => {
590
590
  switch (e.__serializable) {
591
591
  case "MembersFilter":
592
- return new Er(F(e.attribute), e.members, e.config.backgroundFilter ? q(h({}, e.config), {
592
+ return new Cr(F(e.attribute), e.members, e.config.backgroundFilter ? q(h({}, e.config), {
593
593
  backgroundFilter: m(e.config.backgroundFilter)
594
594
  }) : e.config, e.composeCode);
595
595
  case "LogicalAttributeFilter":
596
- return new wr(e.filters.map((t) => m(t)), e.operator, e.config, e.composeCode);
596
+ return new Ar(e.filters.map((t) => m(t)), e.operator, e.config, e.composeCode);
597
597
  case "CascadingFilter":
598
- return new qr(e._filters.map((t) => m(t)), e.config, e.composeCode);
598
+ return new Er(e._filters.map((t) => m(t)), e.config, e.composeCode);
599
599
  case "ExcludeFilter":
600
- return new Fr(m(e.filter), e.input ? m(e.input) : void 0, e.config, e.composeCode);
600
+ return new wr(m(e.filter), e.input ? m(e.input) : void 0, e.config, e.composeCode);
601
601
  case "MeasureFilter":
602
- return new hr(F(e.attribute), pe(e.measure), e.operatorA, e.valueA, e.operatorB, e.valueB, e.config, e.composeCode);
602
+ return new qr(F(e.attribute), Y(e.measure), e.operatorA, e.valueA, e.operatorB, e.valueB, e.config, e.composeCode);
603
603
  case "RankingFilter":
604
- return new br(F(e.attribute), pe(e.measure), e.operator, e.count, e.config, e.composeCode);
604
+ return new Fr(F(e.attribute), Y(e.measure), e.operator, e.count, e.config, e.composeCode);
605
+ case "MeasureRankingFilter":
606
+ return new hr(Y(e.measure), e.operator, e.count, e.config, e.composeCode);
605
607
  case "NumericFilter":
606
- return new gr(F(e.attribute), e.operatorA, e.valueA, e.operatorB, e.valueB, e.config, e.composeCode);
608
+ return new br(F(e.attribute), e.operatorA, e.valueA, e.operatorB, e.valueB, e.config, e.composeCode);
607
609
  case "TextFilter":
608
- return new mr(F(e.attribute), e.operatorA, e.valueA, e.config, e.composeCode);
610
+ return new gr(F(e.attribute), e.operatorA, e.valueA, e.config, e.composeCode);
609
611
  case "DateRangeFilter": {
610
612
  const { valueA: t, valueB: i } = e;
611
- return new pr(F(e.attribute), t, i, e.config, e.composeCode);
613
+ return new mr(F(e.attribute), t, i, e.config, e.composeCode);
612
614
  }
613
615
  case "RelativeDateFilter":
614
- return new yr(F(e.attribute), e.offset, e.count, e.operator, e.anchor, e.config, e.composeCode);
616
+ return new pr(F(e.attribute), e.offset, e.count, e.operator, e.anchor, e.config, e.composeCode);
615
617
  case "CustomFilter":
616
- return new dr(F(e.attribute), e.jaqlExpression, e.config, e.composeCode);
618
+ return new yr(F(e.attribute), e.jaqlExpression, e.config, e.composeCode);
617
619
  default:
618
620
  return e;
619
621
  }
@@ -621,37 +623,37 @@ const R = (e) => e === void 0 ? Ar.None : e, pt = (e) => new Ke(e.metadataItem,
621
623
  l.registerCustom({
622
624
  isApplicable: We,
623
625
  serialize: (e) => e.serialize(),
624
- deserialize: (e) => pt(e)
626
+ deserialize: (e) => gt(e)
625
627
  }, "JaqlElement");
626
628
  l.registerCustom({
627
629
  isApplicable: je,
628
630
  serialize: (e) => e.serialize(),
629
- deserialize: (e) => v(e)
631
+ deserialize: (e) => ee(e)
630
632
  }, "DimensionalAttribute");
631
633
  l.registerCustom({
632
634
  isApplicable: Qe,
633
635
  serialize: (e) => e.serialize(),
634
- deserialize: (e) => ee(e)
636
+ deserialize: (e) => re(e)
635
637
  }, "DimensionalLevelAttribute");
636
638
  l.registerCustom({
637
- isApplicable: Br,
639
+ isApplicable: kr,
638
640
  serialize: (e) => e.serialize(),
639
641
  deserialize: (e) => Ne(e)
640
642
  }, "DimensionalDimension");
641
643
  l.registerCustom({
642
- isApplicable: Pr,
644
+ isApplicable: Ir,
643
645
  serialize: (e) => e.serialize(),
644
646
  deserialize: (e) => ze(e)
645
647
  }, "DimensionalDateDimension");
646
648
  l.registerCustom({
647
649
  isApplicable: Ye,
648
650
  serialize: (e) => e.serialize(),
649
- deserialize: (e) => re(e)
651
+ deserialize: (e) => te(e)
650
652
  }, "DimensionalBaseMeasure");
651
653
  l.registerCustom({
652
654
  isApplicable: He,
653
655
  serialize: (e) => e.serialize(),
654
- deserialize: (e) => te(e)
656
+ deserialize: (e) => ie(e)
655
657
  }, "DimensionalCalculatedMeasure");
656
658
  l.registerCustom({
657
659
  isApplicable: Xe,
@@ -692,33 +694,38 @@ l.registerCustom({
692
694
  isApplicable: tr,
693
695
  serialize: (e) => e.serialize(),
694
696
  deserialize: (e) => m(e)
695
- }, "NumericFilter");
697
+ }, "MeasureRankingFilter");
696
698
  l.registerCustom({
697
699
  isApplicable: ir,
698
700
  serialize: (e) => e.serialize(),
699
701
  deserialize: (e) => m(e)
700
- }, "TextFilter");
702
+ }, "NumericFilter");
701
703
  l.registerCustom({
702
704
  isApplicable: sr,
703
705
  serialize: (e) => e.serialize(),
704
706
  deserialize: (e) => m(e)
705
- }, "DateRangeFilter");
707
+ }, "TextFilter");
706
708
  l.registerCustom({
707
709
  isApplicable: nr,
708
710
  serialize: (e) => e.serialize(),
709
711
  deserialize: (e) => m(e)
710
- }, "RelativeDateFilter");
712
+ }, "DateRangeFilter");
711
713
  l.registerCustom({
712
714
  isApplicable: ar,
713
715
  serialize: (e) => e.serialize(),
714
716
  deserialize: (e) => m(e)
717
+ }, "RelativeDateFilter");
718
+ l.registerCustom({
719
+ isApplicable: or,
720
+ serialize: (e) => e.serialize(),
721
+ deserialize: (e) => m(e)
715
722
  }, "CustomFilter");
716
- const Ht = l, T = "DM.";
717
- function x(e) {
723
+ const Zt = l, T = "DM.";
724
+ function C(e) {
718
725
  return typeof e == "object" && e !== null && "function" in e && "args" in e;
719
726
  }
720
- function ie(e) {
721
- return e.every(x);
727
+ function se(e) {
728
+ return e.every(C);
722
729
  }
723
730
  function J(e) {
724
731
  return "attribute" in e && "config" in e;
@@ -729,10 +736,10 @@ function L(e) {
729
736
  function Te(e) {
730
737
  return !J(e) && !L(e);
731
738
  }
732
- function gt(e) {
739
+ function ht(e) {
733
740
  return e.every((r) => typeof r == "string");
734
741
  }
735
- function bt(e) {
742
+ function Ft(e) {
736
743
  const r = e.split(".");
737
744
  if (r.length < 3 || `${r[0]}.` !== T)
738
745
  throw new Error(`Invalid attribute name format: "${e}". Expected format: "${T}TableName.ColumnName[.Level]"`);
@@ -744,15 +751,15 @@ function bt(e) {
744
751
  level: s
745
752
  };
746
753
  }
747
- function ht(e, r) {
748
- const { tableName: t, columnName: i, level: s } = bt(e), a = r.find((o) => o.name === t);
754
+ function qt(e, r) {
755
+ const { tableName: t, columnName: i, level: s } = Ft(e), a = r.find((o) => o.name === t);
749
756
  if (!a)
750
757
  throw new Error(`Table "${t}" not found in the data model`);
751
758
  const n = a.columns.find((o) => o.name === i);
752
759
  if (!n)
753
760
  throw new Error(`Column "${i}" not found in table "${t}"`);
754
761
  if (s) {
755
- if (!Cr(n.dataType))
762
+ if (!Dr(n.dataType))
756
763
  throw new Error(`Invalid date level "${s}" in attribute "${e}". Column "${t}.${i}" is not a datetime column`);
757
764
  const o = j.all;
758
765
  if (!o.includes(s))
@@ -775,18 +782,18 @@ function Be(e) {
775
782
  function Pe(e) {
776
783
  return e.type === z.NumericAttribute;
777
784
  }
778
- function Ft(e) {
785
+ function wt(e) {
779
786
  return e.type === z.DateLevel;
780
787
  }
781
- function qt(e) {
788
+ function Et(e) {
782
789
  return Be(e) || Pe(e);
783
790
  }
784
791
  function W(e) {
785
792
  return e.type === z.TextAttribute ? "text" : e.type === z.NumericAttribute ? "numeric" : e.type === z.DateLevel ? "date/datetime" : "unknown";
786
793
  }
787
- function se(e, r, t) {
788
- const { field: i, level: s } = ht(e, t);
789
- return xr({
794
+ function ne(e, r, t) {
795
+ const { field: i, level: s } = qt(e, t);
796
+ return $r({
790
797
  expression: i.expression,
791
798
  dataType: i.dataType,
792
799
  granularity: s,
@@ -795,14 +802,14 @@ function se(e, r, t) {
795
802
  dataSource: r
796
803
  });
797
804
  }
798
- const wt = (e) => {
805
+ const At = (e) => {
799
806
  const { data: r } = e, { dataSource: t, tables: i } = e.context;
800
807
  if (!r)
801
808
  return {
802
809
  success: !0,
803
810
  data: []
804
811
  };
805
- if (!gt(r))
812
+ if (!ht(r))
806
813
  return {
807
814
  success: !1,
808
815
  errors: [
@@ -822,7 +829,7 @@ const wt = (e) => {
822
829
  input: n
823
830
  };
824
831
  try {
825
- const c = se(n, t, i);
832
+ const c = ne(n, t, i);
826
833
  s.push(c);
827
834
  } catch (c) {
828
835
  const d = c instanceof Error ? c.message : "Unknown error";
@@ -838,42 +845,42 @@ const wt = (e) => {
838
845
  data: s
839
846
  };
840
847
  };
841
- function ne(e, r) {
848
+ function ae(e, r) {
842
849
  const t = Reflect.get(e, r);
843
850
  if (typeof t != "function")
844
851
  throw new Error(`Function "${r}" not found or is not a function`);
845
852
  return t;
846
853
  }
847
- function Et(e, r) {
848
- const t = e.replace("measureFactory.", ""), s = ne($r, t)(...r);
854
+ function Ct(e, r) {
855
+ const t = e.replace("measureFactory.", ""), s = ae(Mr, t)(...r);
849
856
  if (!Te(s))
850
857
  throw new Error(`Function "${e}" did not return a valid Measure`);
851
858
  return s;
852
859
  }
853
- function At(e, r) {
854
- const t = e.replace("filterFactory.logic.", ""), s = ne(Dr, t)(...r);
860
+ function xt(e, r) {
861
+ const t = e.replace("filterFactory.logic.", ""), s = ae(Rr, t)(...r);
855
862
  if (!L(s))
856
863
  throw new Error(`Function "${e}" did not return a valid FilterRelations`);
857
864
  return s;
858
865
  }
859
- function xt(e, r) {
866
+ function $t(e, r) {
860
867
  if (e.startsWith("filterFactory.logic."))
861
- return At(e, r);
862
- const t = e.replace("filterFactory.", ""), s = ne(Mr, t)(...r);
868
+ return xt(e, r);
869
+ const t = e.replace("filterFactory.", ""), s = ae(Sr, t)(...r);
863
870
  if (!J(s) && !L(s))
864
871
  throw new Error(`Function "${e}" did not return a valid Filter or FilterRelations`);
865
872
  return s;
866
873
  }
867
- function Ct(e, r) {
874
+ function Dt(e, r) {
868
875
  const i = e.split(".")[0];
869
876
  if (i === "measureFactory")
870
- return Et(e, r);
877
+ return Ct(e, r);
871
878
  if (i === "filterFactory")
872
- return xt(e, r);
879
+ return $t(e, r);
873
880
  throw new Error(`Unsupported factory: "${i}". Supported factories: measureFactory, filterFactory`);
874
881
  }
875
- const $t = /\[([a-zA-Z_][a-zA-Z0-9_.-]*)\]/g;
876
- function Dt(e, r, t = {}) {
882
+ const Mt = /\[([a-zA-Z_][a-zA-Z0-9_.-]*)\]/g;
883
+ function Rt(e, r, t = {}) {
877
884
  const { warnUnusedContext: i = !0, errorOnUnusedContext: s = !0, allowEmptyFormula: a = !1, errorPrefix: n = "customFormula validation" } = t, o = {
878
885
  isValid: !0,
879
886
  errors: [],
@@ -886,7 +893,7 @@ function Dt(e, r, t = {}) {
886
893
  const u = Object.keys(r);
887
894
  if (u.length === 0)
888
895
  return o.errors.push(`${n}args[2]: Context cannot be empty - custom formulas require context definitions`), o.isValid = !1, o;
889
- const c = $t, d = /* @__PURE__ */ new Set();
896
+ const c = Mt, d = /* @__PURE__ */ new Set();
890
897
  let g;
891
898
  for (; (g = c.exec(e)) !== null; ) {
892
899
  const b = g[1];
@@ -905,17 +912,17 @@ function Dt(e, r, t = {}) {
905
912
  }
906
913
  return o;
907
914
  }
908
- function Mt(e, r, t = {}) {
909
- const i = Dt(e, r, t);
915
+ function St(e, r, t = {}) {
916
+ const i = Rt(e, r, t);
910
917
  if (!i.isValid)
911
918
  throw new Error(i.errors.join("; "));
912
919
  i.warnings.length > 0 && console.warn("Formula validation warnings:", i.warnings.join("; "));
913
920
  }
914
- function Rt(e, r) {
921
+ function Nt(e, r) {
915
922
  if (e.length < 3)
916
923
  throw new Error(`${r.pathPrefix}Expected at least 3 arguments for customFormula`);
917
924
  const t = e[1], i = e[2];
918
- Mt(t, i, {
925
+ St(t, i, {
919
926
  errorPrefix: `${r.pathPrefix}`,
920
927
  errorOnUnusedContext: !0,
921
928
  allowEmptyFormula: !1
@@ -923,7 +930,7 @@ function Rt(e, r) {
923
930
  const s = {};
924
931
  for (const [a, n] of Object.entries(i)) {
925
932
  const o = `args[2].${a}`;
926
- if (x(n))
933
+ if (C(n))
927
934
  s[`${a}`] = w({
928
935
  data: n,
929
936
  context: {
@@ -934,7 +941,7 @@ function Rt(e, r) {
934
941
  });
935
942
  else if (typeof n == "string" && n.startsWith(T))
936
943
  try {
937
- s[`${a}`] = se(n, r.dataSource, r.tables);
944
+ s[`${a}`] = ne(n, r.dataSource, r.tables);
938
945
  } catch (u) {
939
946
  const c = u instanceof Error ? u.message : "Unknown error";
940
947
  throw new Error(`${o}: ${c}`);
@@ -954,7 +961,7 @@ function K(e, r) {
954
961
  }
955
962
  function me(e, r) {
956
963
  const t = K(e, r);
957
- if (!qt(t))
964
+ if (!Et(t))
958
965
  throw new Error(`${r.pathPrefix}args[0]: Attribute must be string or numeric type, got ${W(t)} attribute`);
959
966
  }
960
967
  function D(e, r) {
@@ -969,11 +976,11 @@ function M(e, r) {
969
976
  }
970
977
  function A(e, r) {
971
978
  const t = K(e, r);
972
- if (!Ft(t))
979
+ if (!wt(t))
973
980
  throw new Error(`${r.pathPrefix}args[0]: Attribute must be date/datetime type, got ${W(t)} attribute`);
974
981
  }
975
- const St = {
976
- "measureFactory.customFormula": Rt,
982
+ const zt = {
983
+ "measureFactory.customFormula": Nt,
977
984
  // String | Number filters
978
985
  "filterFactory.equals": me,
979
986
  "filterFactory.doesntEqual": me,
@@ -1005,10 +1012,10 @@ const St = {
1005
1012
  "filterFactory.thisQuarter": A,
1006
1013
  "filterFactory.today": A
1007
1014
  };
1008
- function Nt(e) {
1009
- return St[`${e}`];
1015
+ function Ot(e) {
1016
+ return zt[`${e}`];
1010
1017
  }
1011
- const zt = {
1018
+ const Tt = {
1012
1019
  // ==================== MEASURE FACTORY FUNCTIONS ====================
1013
1020
  // Basic aggregations
1014
1021
  "measureFactory.sum": [
@@ -2114,6 +2121,34 @@ const zt = {
2114
2121
  required: !1
2115
2122
  }
2116
2123
  ],
2124
+ "filterFactory.measureTopRanking": [
2125
+ {
2126
+ type: "BaseMeasure",
2127
+ required: !0
2128
+ },
2129
+ {
2130
+ type: "number",
2131
+ required: !0
2132
+ },
2133
+ {
2134
+ type: "BaseFilterConfig",
2135
+ required: !1
2136
+ }
2137
+ ],
2138
+ "filterFactory.measureBottomRanking": [
2139
+ {
2140
+ type: "BaseMeasure",
2141
+ required: !0
2142
+ },
2143
+ {
2144
+ type: "number",
2145
+ required: !0
2146
+ },
2147
+ {
2148
+ type: "BaseFilterConfig",
2149
+ required: !1
2150
+ }
2151
+ ],
2117
2152
  // Advanced filters
2118
2153
  "filterFactory.cascading": [
2119
2154
  {
@@ -2147,18 +2182,18 @@ const zt = {
2147
2182
  }
2148
2183
  ]
2149
2184
  };
2150
- function ae(e) {
2151
- return zt[`${e}`];
2185
+ function oe(e) {
2186
+ return Tt[`${e}`];
2152
2187
  }
2153
- function Ot(e) {
2154
- const r = ae(e);
2188
+ function Bt(e) {
2189
+ const r = oe(e);
2155
2190
  return r ? r.filter((t) => t.required).length : 0;
2156
2191
  }
2157
- function Tt(e) {
2158
- const r = ae(e);
2192
+ function Pt(e) {
2193
+ const r = oe(e);
2159
2194
  return r ? r.length : 0;
2160
2195
  }
2161
- function Bt(e) {
2196
+ function kt(e) {
2162
2197
  if (typeof e != "string")
2163
2198
  return !1;
2164
2199
  const r = Date.parse(e);
@@ -2167,17 +2202,17 @@ function Bt(e) {
2167
2202
  const i = new Date(e);
2168
2203
  return !isNaN(i.getTime()) && i.toISOString().startsWith(e.substring(0, 10));
2169
2204
  }
2170
- function Y(e, r, t, i) {
2205
+ function H(e, r, t, i) {
2171
2206
  if (e.startsWith(T))
2172
2207
  try {
2173
- return se(e, r, t);
2208
+ return ne(e, r, t);
2174
2209
  } catch (s) {
2175
2210
  const a = s instanceof Error ? s.message : "Unknown error";
2176
2211
  throw new Error(`${i}: ${a}`);
2177
2212
  }
2178
2213
  throw new Error(`${i}: Invalid attribute "${e}". Expected format: "${T}TableName.ColumnName[.Level]"`);
2179
2214
  }
2180
- function Pt(e) {
2215
+ function It(e) {
2181
2216
  const r = e.data, { argSchema: t, dataSource: i, tables: s, pathPrefix: a } = e.context, n = a;
2182
2217
  if (r === void 0) {
2183
2218
  if (t.required)
@@ -2212,18 +2247,18 @@ function Pt(e) {
2212
2247
  case "Attribute":
2213
2248
  if (typeof r != "string")
2214
2249
  throw new Error(`${n}: Expected attribute string, got ${typeof r}. Example: "DM.Commerce.Revenue"`);
2215
- return Y(r, i, s, n);
2250
+ return H(r, i, s, n);
2216
2251
  case "Attribute[]":
2217
2252
  if (!Array.isArray(r))
2218
2253
  throw new Error(`${n}: Expected array of attributes, got ${typeof r}. Example: ["DM.Commerce.AgeRange"]`);
2219
2254
  return r.map((o, u) => {
2220
2255
  if (typeof o != "string")
2221
2256
  throw new Error(`${n}[${u}]: Expected attribute string, got ${typeof o}`);
2222
- return Y(o, i, s, `${n}[${u}]`);
2257
+ return H(o, i, s, `${n}[${u}]`);
2223
2258
  });
2224
2259
  case "Measure":
2225
2260
  case "BaseMeasure":
2226
- if (!x(r))
2261
+ if (!C(r))
2227
2262
  throw new Error(`${n}: Expected measure function call, got ${typeof r}. Example: {"function": "measureFactory.sum", "args": ["DM.Commerce.Revenue"]}`);
2228
2263
  return w({
2229
2264
  data: r,
@@ -2237,7 +2272,7 @@ function Pt(e) {
2237
2272
  if (!Array.isArray(r))
2238
2273
  throw new Error(`${n}: Expected array of measure function calls, got ${typeof r}`);
2239
2274
  return r.map((o, u) => {
2240
- if (!x(o))
2275
+ if (!C(o))
2241
2276
  throw new Error(`${n}[${u}]: Expected measure function call, got ${typeof o}`);
2242
2277
  return w({
2243
2278
  data: o,
@@ -2249,7 +2284,7 @@ function Pt(e) {
2249
2284
  });
2250
2285
  });
2251
2286
  case "Filter":
2252
- if (!x(r))
2287
+ if (!C(r))
2253
2288
  throw new Error(`${n}: Expected filter function call, got ${typeof r}. Example: {"function": "filterFactory.contains", "args": ["DM.Brand.Brand", "Apple"]}`);
2254
2289
  return w({
2255
2290
  data: r,
@@ -2263,7 +2298,7 @@ function Pt(e) {
2263
2298
  if (!Array.isArray(r))
2264
2299
  throw new Error(`${n}: Expected array of filter function calls, got ${typeof r}`);
2265
2300
  return r.map((o, u) => {
2266
- if (!x(o))
2301
+ if (!C(o))
2267
2302
  throw new Error(`${n}[${u}]: Expected filter function call, got ${typeof o}`);
2268
2303
  return w({
2269
2304
  data: o,
@@ -2277,7 +2312,7 @@ function Pt(e) {
2277
2312
  case "FilterRelationsNode":
2278
2313
  if (Array.isArray(r))
2279
2314
  return r.map((o, u) => {
2280
- if (!x(o))
2315
+ if (!C(o))
2281
2316
  throw new Error(`${n}[${u}]: Expected filter function call, got ${typeof o}`);
2282
2317
  return w({
2283
2318
  data: o,
@@ -2288,7 +2323,7 @@ function Pt(e) {
2288
2323
  }
2289
2324
  });
2290
2325
  });
2291
- if (x(r))
2326
+ if (C(r))
2292
2327
  return w({
2293
2328
  data: r,
2294
2329
  context: {
@@ -2302,11 +2337,11 @@ function Pt(e) {
2302
2337
  case "LevelAttribute":
2303
2338
  if (typeof r != "string")
2304
2339
  throw new Error(`${n}: Expected date attribute string, got ${typeof r}. Example: "DM.Commerce.Date.Years"`);
2305
- return Y(r, i, s, n);
2340
+ return H(r, i, s, n);
2306
2341
  case "Measure | number":
2307
2342
  if (typeof r == "number")
2308
2343
  return r;
2309
- if (x(r))
2344
+ if (C(r))
2310
2345
  return w({
2311
2346
  data: r,
2312
2347
  context: {
@@ -2318,7 +2353,7 @@ function Pt(e) {
2318
2353
  throw new Error(`${n}: Expected measure function call or number, got ${typeof r}`);
2319
2354
  case "Date | string":
2320
2355
  if (typeof r == "string") {
2321
- if (Bt(r))
2356
+ if (kt(r))
2322
2357
  return r;
2323
2358
  throw new Error(`${n}: Expected valid ISO date string or Date object, got invalid date string "${r}"`);
2324
2359
  } else {
@@ -2342,18 +2377,18 @@ function Pt(e) {
2342
2377
  }
2343
2378
  }
2344
2379
  function w(e) {
2345
- const { data: r } = e, { dataSource: t, tables: i, pathPrefix: s } = e.context, { function: a, args: n } = r, o = s ? `${s}.` : "", u = ae(a);
2380
+ const { data: r } = e, { dataSource: t, tables: i, pathPrefix: s } = e.context, { function: a, args: n } = r, o = s ? `${s}.` : "", u = oe(a);
2346
2381
  if (!u)
2347
2382
  throw new Error(`${o}function: Unknown function "${a}"`);
2348
- const c = Ot(a), d = Tt(a);
2383
+ const c = Bt(a), d = Pt(a);
2349
2384
  if (n.length < c)
2350
2385
  throw new Error(`${o}function: Expected at least ${c} arguments, got ${n.length}`);
2351
2386
  if (n.length > d)
2352
2387
  throw new Error(`${o}function: Expected at most ${d} arguments, got ${n.length}`);
2353
2388
  const g = [], p = [];
2354
2389
  for (let f = 0; f < Math.max(n.length, u.length); f++) {
2355
- const y = u[`${f}`], C = n[`${f}`], B = o ? `${o}args[${f}]` : `args[${f}]`;
2356
- if (C === void 0) {
2390
+ const y = u[`${f}`], x = n[`${f}`], B = o ? `${o}args[${f}]` : `args[${f}]`;
2391
+ if (x === void 0) {
2357
2392
  y != null && y.required && p.push(`${B}: Missing required argument (expected ${y.type})`);
2358
2393
  continue;
2359
2394
  }
@@ -2362,8 +2397,8 @@ function w(e) {
2362
2397
  continue;
2363
2398
  }
2364
2399
  try {
2365
- const S = Pt({
2366
- data: C,
2400
+ const S = It({
2401
+ data: x,
2367
2402
  context: {
2368
2403
  dataSource: t,
2369
2404
  tables: i,
@@ -2381,7 +2416,7 @@ function w(e) {
2381
2416
  const f = p.join("; ");
2382
2417
  throw new Error(f);
2383
2418
  }
2384
- const b = Nt(a);
2419
+ const b = Ot(a);
2385
2420
  if (b)
2386
2421
  try {
2387
2422
  b(g, {
@@ -2393,25 +2428,25 @@ function w(e) {
2393
2428
  const y = f instanceof Error ? f.message : "Unknown validation error";
2394
2429
  throw new Error(y);
2395
2430
  }
2396
- return Ct(a, g);
2431
+ return Dt(a, g);
2397
2432
  }
2398
2433
  function ke(e) {
2399
2434
  const { attribute: r, config: t } = e;
2400
- if (ge(e) && Rr(r)) {
2435
+ if (ge(e) && Nr(r)) {
2401
2436
  const { granularity: i } = r;
2402
- return Sr(r, e.members.map((s) => i === "Years" && !isNaN(Number(s)) ? `${s}-01-01T00:00:00` : s), t);
2437
+ return zr(r, e.members.map((s) => i === "Years" && !isNaN(Number(s)) ? `${s}-01-01T00:00:00` : s), t);
2403
2438
  }
2404
2439
  return e;
2405
2440
  }
2406
- function kt(e) {
2441
+ function _t(e) {
2407
2442
  let r = [];
2408
2443
  for (const t of e)
2409
- L(t) ? r = le(t, r) : r = le([
2444
+ L(t) ? r = ce(t, r) : r = ce([
2410
2445
  ke(t)
2411
2446
  ], r);
2412
2447
  return r != null ? r : [];
2413
2448
  }
2414
- const It = (e) => {
2449
+ const Lt = (e) => {
2415
2450
  const { data: r } = e, { dataSource: t, tables: i } = e.context, s = [], a = [];
2416
2451
  return r.forEach((n, o) => {
2417
2452
  const u = {
@@ -2442,11 +2477,11 @@ const It = (e) => {
2442
2477
  errors: a
2443
2478
  } : {
2444
2479
  success: !0,
2445
- data: kt(s)
2480
+ data: _t(s)
2446
2481
  };
2447
- }, _t = (e) => {
2482
+ }, Vt = (e) => {
2448
2483
  const { data: r } = e, { dataSource: t, tables: i } = e.context;
2449
- return r ? ie(r) ? It({
2484
+ return r ? se(r) ? Lt({
2450
2485
  data: r,
2451
2486
  context: {
2452
2487
  dataSource: t,
@@ -2466,7 +2501,7 @@ const It = (e) => {
2466
2501
  success: !0,
2467
2502
  data: []
2468
2503
  };
2469
- }, Lt = (e) => {
2504
+ }, Ut = (e) => {
2470
2505
  const { data: r } = e, { dataSource: t, tables: i } = e.context, s = [], a = [];
2471
2506
  return r.forEach((n, o) => {
2472
2507
  const u = {
@@ -2499,9 +2534,9 @@ const It = (e) => {
2499
2534
  success: !0,
2500
2535
  data: s
2501
2536
  };
2502
- }, Vt = (e) => {
2537
+ }, Jt = (e) => {
2503
2538
  const { data: r } = e, { dataSource: t, tables: i } = e.context;
2504
- return r ? ie(r) ? Lt({
2539
+ return r ? se(r) ? Ut({
2505
2540
  data: r,
2506
2541
  context: {
2507
2542
  dataSource: t,
@@ -2521,7 +2556,7 @@ const It = (e) => {
2521
2556
  success: !0,
2522
2557
  data: []
2523
2558
  };
2524
- }, Ut = (e) => {
2559
+ }, Wt = (e) => {
2525
2560
  const { data: r } = e, { dataSource: t, tables: i } = e.context, s = [], a = [];
2526
2561
  return r.forEach((n, o) => {
2527
2562
  const u = {
@@ -2554,9 +2589,9 @@ const It = (e) => {
2554
2589
  success: !0,
2555
2590
  data: s
2556
2591
  };
2557
- }, Jt = (e) => {
2592
+ }, Kt = (e) => {
2558
2593
  const { data: r } = e, { dataSource: t, tables: i } = e.context;
2559
- return r ? ie(r) ? Ut({
2594
+ return r ? se(r) ? Wt({
2560
2595
  data: r,
2561
2596
  context: {
2562
2597
  dataSource: t,
@@ -2576,23 +2611,23 @@ const It = (e) => {
2576
2611
  success: !0,
2577
2612
  data: []
2578
2613
  };
2579
- }, Xt = (e) => {
2614
+ }, Gt = (e) => {
2580
2615
  const { data: r } = e, { dataSource: t, tables: i } = e.context, s = [], a = (g) => {
2581
2616
  const p = g();
2582
2617
  return p.success ? p.data : (s.push(...p.errors), null);
2583
- }, n = a(() => wt({
2618
+ }, n = a(() => At({
2584
2619
  data: r.dimensions || [],
2585
2620
  context: {
2586
2621
  dataSource: t,
2587
2622
  tables: i
2588
2623
  }
2589
- })), o = a(() => Jt({
2624
+ })), o = a(() => Kt({
2590
2625
  data: r.measures || [],
2591
2626
  context: {
2592
2627
  dataSource: t,
2593
2628
  tables: i
2594
2629
  }
2595
- })), u = a(() => _t({
2630
+ })), u = a(() => Vt({
2596
2631
  data: r.filters || [],
2597
2632
  context: {
2598
2633
  dataSource: t,
@@ -2600,7 +2635,7 @@ const It = (e) => {
2600
2635
  }
2601
2636
  }));
2602
2637
  let c = null;
2603
- return r.highlights && (c = a(() => Vt({
2638
+ return r.highlights && (c = a(() => Jt({
2604
2639
  data: r.highlights || [],
2605
2640
  context: {
2606
2641
  dataSource: t,
@@ -2612,7 +2647,7 @@ const It = (e) => {
2612
2647
  } : {
2613
2648
  success: !0,
2614
2649
  data: h({
2615
- dataSource: Nr(t),
2650
+ dataSource: Or(t),
2616
2651
  dimensions: n || [],
2617
2652
  measures: o || [],
2618
2653
  filters: u || []
@@ -2621,8 +2656,8 @@ const It = (e) => {
2621
2656
  })
2622
2657
  };
2623
2658
  };
2624
- function Wt(e) {
2625
- const { filters: r, relations: t } = Tr(e.filters || []);
2659
+ function jt(e) {
2660
+ const { filters: r, relations: t } = Pr(e.filters || []);
2626
2661
  return {
2627
2662
  dataSource: e.dataSource,
2628
2663
  dimensions: e.dimensions,
@@ -2632,18 +2667,18 @@ function Wt(e) {
2632
2667
  highlights: e.highlights
2633
2668
  };
2634
2669
  }
2635
- function Zt(e, r, t = !1) {
2636
- const i = Wt(e), s = zr(i, r);
2637
- return Or(s, t);
2670
+ function vt(e, r, t = !1) {
2671
+ const i = jt(e), s = Tr(i, r);
2672
+ return Br(s, t);
2638
2673
  }
2639
2674
  export {
2640
- Ht as CustomSuperJSON,
2641
- ei as EMPTY_EXPANDED_QUERY_MODEL,
2642
- ri as EMPTY_SIMPLE_QUERY_MODEL,
2643
- ti as isByIdDashboardCodeParams,
2644
- ii as isByIdWidgetCodeParams,
2645
- si as isClientSideDashboardCodeParams,
2646
- ni as isClientSideWidgetCodeParams,
2647
- Xt as translateQueryJSON,
2648
- Zt as translateQueryToJaql
2675
+ Zt as CustomSuperJSON,
2676
+ ti as EMPTY_EXPANDED_QUERY_MODEL,
2677
+ ii as EMPTY_SIMPLE_QUERY_MODEL,
2678
+ si as isByIdDashboardCodeParams,
2679
+ ni as isByIdWidgetCodeParams,
2680
+ ai as isClientSideDashboardCodeParams,
2681
+ oi as isClientSideWidgetCodeParams,
2682
+ Gt as translateQueryJSON,
2683
+ vt as translateQueryToJaql
2649
2684
  };