@databrainhq/plugin 0.6.1 → 0.6.4

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.
package/dist/index.es.js CHANGED
@@ -1,6 +1,7 @@
1
1
  import * as React$6 from "react";
2
2
  import React__default, { PureComponent, forwardRef, useRef, useEffect, useState, useLayoutEffect, Fragment as Fragment$1, isValidElement, cloneElement as cloneElement$1, createElement as createElement$1, createContext as createContext$1, useContext, useMemo, useReducer, createRef, useCallback, memo } from "react";
3
3
  import require$$2$1 from "react-dom";
4
+ import { jsx, jsxs, Fragment } from "react/jsx-runtime";
4
5
  function _setPrototypeOf$7(o2, p2) {
5
6
  _setPrototypeOf$7 = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf2(o3, p3) {
6
7
  o3.__proto__ = p3;
@@ -2512,70 +2513,70 @@ function useQuery(arg1, arg2, arg3) {
2512
2513
  var parsedOptions = parseQueryArgs(arg1, arg2, arg3);
2513
2514
  return useBaseQuery(parsedOptions, QueryObserver);
2514
2515
  }
2515
- const container$f = "_container_gr5gv_1";
2516
- const fixed = "_fixed_gr5gv_1";
2517
- const absolute = "_absolute_gr5gv_1";
2518
- const flex = "_flex_gr5gv_1";
2519
- const table$4 = "_table_gr5gv_1";
2520
- const grid = "_grid_gr5gv_1";
2521
- const hidden = "_hidden_gr5gv_1";
2522
- const transform = "_transform_gr5gv_1";
2523
- const border = "_border_gr5gv_1";
2524
- const shadow = "_shadow_gr5gv_1";
2525
- const filter$1 = "_filter_gr5gv_347";
2526
- const floatingFilterButton = "_floatingFilterButton_gr5gv_355";
2527
- const floatingFilterButtonIcon = "_floatingFilterButtonIcon_gr5gv_363";
2528
- const floatingButton = "_floatingButton_gr5gv_371";
2529
- const floatingButtonIcon = "_floatingButtonIcon_gr5gv_379";
2530
- const staticContainer = "_staticContainer_gr5gv_387";
2531
- const floatingContainer = "_floatingContainer_gr5gv_395";
2516
+ const container$f = "_container_1hfou_1";
2517
+ const fixed = "_fixed_1hfou_1";
2518
+ const absolute = "_absolute_1hfou_1";
2519
+ const flex = "_flex_1hfou_1";
2520
+ const table$4 = "_table_1hfou_1";
2521
+ const grid = "_grid_1hfou_1";
2522
+ const hidden = "_hidden_1hfou_1";
2523
+ const transform = "_transform_1hfou_1";
2524
+ const border = "_border_1hfou_1";
2525
+ const shadow = "_shadow_1hfou_1";
2526
+ const filter$1 = "_filter_1hfou_347";
2527
+ const floatingFilterButton = "_floatingFilterButton_1hfou_355";
2528
+ const floatingFilterButtonIcon = "_floatingFilterButtonIcon_1hfou_363";
2529
+ const floatingButton = "_floatingButton_1hfou_371";
2530
+ const floatingButtonIcon = "_floatingButtonIcon_1hfou_379";
2531
+ const staticContainer = "_staticContainer_1hfou_387";
2532
+ const floatingContainer = "_floatingContainer_1hfou_395";
2532
2533
  var styles$B = {
2533
2534
  container: container$f,
2534
- "static": "_static_gr5gv_387",
2535
+ "static": "_static_1hfou_387",
2535
2536
  fixed,
2536
2537
  absolute,
2537
- "left-2": "_left-2_gr5gv_1",
2538
- "top-1": "_top-1_gr5gv_1",
2539
- "mb-2": "_mb-2_gr5gv_1",
2540
- "mt-2": "_mt-2_gr5gv_1",
2541
- "mt-2.5": "_mt-2.5_gr5gv_1",
2542
- "mb-3": "_mb-3_gr5gv_1",
2538
+ "left-2": "_left-2_1hfou_1",
2539
+ "top-1": "_top-1_1hfou_1",
2540
+ "mb-2": "_mb-2_1hfou_1",
2541
+ "mt-2": "_mt-2_1hfou_1",
2542
+ "mt-2.5": "_mt-2.5_1hfou_1",
2543
+ "mb-3": "_mb-3_1hfou_1",
2543
2544
  flex,
2544
2545
  table: table$4,
2545
2546
  grid,
2546
2547
  hidden,
2547
- "h-screen": "_h-screen_gr5gv_1",
2548
- "h-full": "_h-full_gr5gv_1",
2549
- "h-80": "_h-80_gr5gv_1",
2550
- "w-screen": "_w-screen_gr5gv_1",
2551
- "w-full": "_w-full_gr5gv_1",
2552
- "w-[200px]": "_w-[200px]_gr5gv_1",
2548
+ "h-screen": "_h-screen_1hfou_1",
2549
+ "h-full": "_h-full_1hfou_1",
2550
+ "h-80": "_h-80_1hfou_1",
2551
+ "w-screen": "_w-screen_1hfou_1",
2552
+ "w-full": "_w-full_1hfou_1",
2553
+ "w-[200px]": "_w-[200px]_1hfou_1",
2553
2554
  transform,
2554
- "flex-col": "_flex-col_gr5gv_1",
2555
- "items-center": "_items-center_gr5gv_1",
2556
- "justify-center": "_justify-center_gr5gv_1",
2557
- "gap-5": "_gap-5_gr5gv_1",
2558
- "divide-solid": "_divide-solid_gr5gv_1",
2559
- "overflow-y-auto": "_overflow-y-auto_gr5gv_1",
2560
- "overflow-x-hidden": "_overflow-x-hidden_gr5gv_1",
2555
+ "flex-col": "_flex-col_1hfou_1",
2556
+ "items-center": "_items-center_1hfou_1",
2557
+ "justify-center": "_justify-center_1hfou_1",
2558
+ "gap-5": "_gap-5_1hfou_1",
2559
+ "divide-solid": "_divide-solid_1hfou_1",
2560
+ "overflow-y-auto": "_overflow-y-auto_1hfou_1",
2561
+ "overflow-x-hidden": "_overflow-x-hidden_1hfou_1",
2561
2562
  border,
2562
- "border-2": "_border-2_gr5gv_1",
2563
- "p-4": "_p-4_gr5gv_1",
2564
- "p-2": "_p-2_gr5gv_1",
2565
- "text-center": "_text-center_gr5gv_1",
2566
- "text-lg": "_text-lg_gr5gv_1",
2567
- "text-6xl": "_text-6xl_gr5gv_1",
2568
- "text-sm": "_text-sm_gr5gv_1",
2569
- "text-xs": "_text-xs_gr5gv_1",
2570
- "text-blue-700": "_text-blue-700_gr5gv_1",
2563
+ "border-2": "_border-2_1hfou_1",
2564
+ "p-4": "_p-4_1hfou_1",
2565
+ "p-2": "_p-2_1hfou_1",
2566
+ "text-center": "_text-center_1hfou_1",
2567
+ "text-lg": "_text-lg_1hfou_1",
2568
+ "text-6xl": "_text-6xl_1hfou_1",
2569
+ "text-sm": "_text-sm_1hfou_1",
2570
+ "text-xs": "_text-xs_1hfou_1",
2571
+ "text-blue-700": "_text-blue-700_1hfou_1",
2571
2572
  shadow,
2572
2573
  filter: filter$1,
2573
- "!filter": "_!filter_gr5gv_1",
2574
- "embedDashboard-container": "_embedDashboard-container_gr5gv_307",
2575
- "embedDashboard-header-static": "_embedDashboard-header-static_gr5gv_315",
2576
- "embedDashboard-header-floating": "_embedDashboard-header-floating_gr5gv_323",
2577
- "embedDashboard-wrapper": "_embedDashboard-wrapper_gr5gv_331",
2578
- "alt-container": "_alt-container_gr5gv_339",
2574
+ "!filter": "_!filter_1hfou_1",
2575
+ "embedDashboard-container": "_embedDashboard-container_1hfou_307",
2576
+ "embedDashboard-header-static": "_embedDashboard-header-static_1hfou_315",
2577
+ "embedDashboard-header-floating": "_embedDashboard-header-floating_1hfou_323",
2578
+ "embedDashboard-wrapper": "_embedDashboard-wrapper_1hfou_331",
2579
+ "alt-container": "_alt-container_1hfou_339",
2579
2580
  floatingFilterButton,
2580
2581
  floatingFilterButtonIcon,
2581
2582
  floatingButton,
@@ -2584,16 +2585,16 @@ var styles$B = {
2584
2585
  floatingContainer
2585
2586
  };
2586
2587
  var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
2587
- function getAugmentedNamespace(n2) {
2588
- if (n2.__esModule)
2589
- return n2;
2588
+ function getAugmentedNamespace(n) {
2589
+ if (n.__esModule)
2590
+ return n;
2590
2591
  var a2 = Object.defineProperty({}, "__esModule", { value: true });
2591
- Object.keys(n2).forEach(function(k2) {
2592
- var d2 = Object.getOwnPropertyDescriptor(n2, k2);
2592
+ Object.keys(n).forEach(function(k2) {
2593
+ var d2 = Object.getOwnPropertyDescriptor(n, k2);
2593
2594
  Object.defineProperty(a2, k2, d2.get ? d2 : {
2594
2595
  enumerable: true,
2595
2596
  get: function() {
2596
- return n2[k2];
2597
+ return n[k2];
2597
2598
  }
2598
2599
  });
2599
2600
  });
@@ -2655,9 +2656,9 @@ var lodash_isequal = { exports: {} };
2655
2656
  }
2656
2657
  return false;
2657
2658
  }
2658
- function baseTimes(n2, iteratee) {
2659
- var index = -1, result = Array(n2);
2660
- while (++index < n2) {
2659
+ function baseTimes(n, iteratee) {
2660
+ var index = -1, result = Array(n);
2661
+ while (++index < n) {
2661
2662
  result[index] = iteratee(index);
2662
2663
  }
2663
2664
  return result;
@@ -3247,22 +3248,22 @@ var lodash_isequal = { exports: {} };
3247
3248
  module.exports = isEqual;
3248
3249
  })(lodash_isequal, lodash_isequal.exports);
3249
3250
  function r$3(e2) {
3250
- var t2, f2, n2 = "";
3251
+ var t2, f2, n = "";
3251
3252
  if ("string" == typeof e2 || "number" == typeof e2)
3252
- n2 += e2;
3253
+ n += e2;
3253
3254
  else if ("object" == typeof e2)
3254
3255
  if (Array.isArray(e2))
3255
3256
  for (t2 = 0; t2 < e2.length; t2++)
3256
- e2[t2] && (f2 = r$3(e2[t2])) && (n2 && (n2 += " "), n2 += f2);
3257
+ e2[t2] && (f2 = r$3(e2[t2])) && (n && (n += " "), n += f2);
3257
3258
  else
3258
3259
  for (t2 in e2)
3259
- e2[t2] && (n2 && (n2 += " "), n2 += t2);
3260
- return n2;
3260
+ e2[t2] && (n && (n += " "), n += t2);
3261
+ return n;
3261
3262
  }
3262
3263
  function clsx() {
3263
- for (var e2, t2, f2 = 0, n2 = ""; f2 < arguments.length; )
3264
- (e2 = arguments[f2++]) && (t2 = r$3(e2)) && (n2 && (n2 += " "), n2 += t2);
3265
- return n2;
3264
+ for (var e2, t2, f2 = 0, n = ""; f2 < arguments.length; )
3265
+ (e2 = arguments[f2++]) && (t2 = r$3(e2)) && (n && (n += " "), n += t2);
3266
+ return n;
3266
3267
  }
3267
3268
  var clsx_m = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3268
3269
  __proto__: null,
@@ -4367,12 +4368,12 @@ function _unsupportedIterableToArray$1(o2, minLen) {
4367
4368
  return;
4368
4369
  if (typeof o2 === "string")
4369
4370
  return _arrayLikeToArray$1(o2, minLen);
4370
- var n2 = Object.prototype.toString.call(o2).slice(8, -1);
4371
- if (n2 === "Object" && o2.constructor)
4372
- n2 = o2.constructor.name;
4373
- if (n2 === "Map" || n2 === "Set")
4371
+ var n = Object.prototype.toString.call(o2).slice(8, -1);
4372
+ if (n === "Object" && o2.constructor)
4373
+ n = o2.constructor.name;
4374
+ if (n === "Map" || n === "Set")
4374
4375
  return Array.from(o2);
4375
- if (n2 === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n2))
4376
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
4376
4377
  return _arrayLikeToArray$1(o2, minLen);
4377
4378
  }
4378
4379
  function _arrayLikeToArray$1(arr, len2) {
@@ -4899,12 +4900,12 @@ _defineProperty$7(DraggableCore$1, "defaultProps", {
4899
4900
  return;
4900
4901
  if (typeof o2 === "string")
4901
4902
  return _arrayLikeToArray2(o2, minLen);
4902
- var n2 = Object.prototype.toString.call(o2).slice(8, -1);
4903
- if (n2 === "Object" && o2.constructor)
4904
- n2 = o2.constructor.name;
4905
- if (n2 === "Map" || n2 === "Set")
4903
+ var n = Object.prototype.toString.call(o2).slice(8, -1);
4904
+ if (n === "Object" && o2.constructor)
4905
+ n = o2.constructor.name;
4906
+ if (n === "Map" || n === "Set")
4906
4907
  return Array.from(o2);
4907
- if (n2 === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n2))
4908
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
4908
4909
  return _arrayLikeToArray2(o2, minLen);
4909
4910
  }
4910
4911
  function _arrayLikeToArray2(arr, len2) {
@@ -6526,12 +6527,12 @@ function _unsupportedIterableToArray(o2, minLen) {
6526
6527
  return;
6527
6528
  if (typeof o2 === "string")
6528
6529
  return _arrayLikeToArray(o2, minLen);
6529
- var n2 = Object.prototype.toString.call(o2).slice(8, -1);
6530
- if (n2 === "Object" && o2.constructor)
6531
- n2 = o2.constructor.name;
6532
- if (n2 === "Map" || n2 === "Set")
6530
+ var n = Object.prototype.toString.call(o2).slice(8, -1);
6531
+ if (n === "Object" && o2.constructor)
6532
+ n = o2.constructor.name;
6533
+ if (n === "Map" || n === "Set")
6533
6534
  return Array.from(o2);
6534
- if (n2 === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n2))
6535
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
6535
6536
  return _arrayLikeToArray(o2, minLen);
6536
6537
  }
6537
6538
  function _arrayLikeToArray(arr, len2) {
@@ -7916,39 +7917,6 @@ var styles$y = {
7916
7917
  "font-15": "_font-15_xtxvk_38",
7917
7918
  "font-34": "_font-34_xtxvk_41"
7918
7919
  };
7919
- var jsxRuntime = { exports: {} };
7920
- var reactJsxRuntime_production_min = {};
7921
- /**
7922
- * @license React
7923
- * react-jsx-runtime.production.min.js
7924
- *
7925
- * Copyright (c) Facebook, Inc. and its affiliates.
7926
- *
7927
- * This source code is licensed under the MIT license found in the
7928
- * LICENSE file in the root directory of this source tree.
7929
- */
7930
- var f$5 = React__default, k$2 = Symbol.for("react.element"), l$2 = Symbol.for("react.fragment"), m$3 = Object.prototype.hasOwnProperty, n = f$5.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, p$4 = { key: true, ref: true, __self: true, __source: true };
7931
- function q$1(c2, a2, g) {
7932
- var b2, d2 = {}, e2 = null, h3 = null;
7933
- void 0 !== g && (e2 = "" + g);
7934
- void 0 !== a2.key && (e2 = "" + a2.key);
7935
- void 0 !== a2.ref && (h3 = a2.ref);
7936
- for (b2 in a2)
7937
- m$3.call(a2, b2) && !p$4.hasOwnProperty(b2) && (d2[b2] = a2[b2]);
7938
- if (c2 && c2.defaultProps)
7939
- for (b2 in a2 = c2.defaultProps, a2)
7940
- void 0 === d2[b2] && (d2[b2] = a2[b2]);
7941
- return { $$typeof: k$2, type: c2, key: e2, ref: h3, props: d2, _owner: n.current };
7942
- }
7943
- reactJsxRuntime_production_min.Fragment = l$2;
7944
- reactJsxRuntime_production_min.jsx = q$1;
7945
- reactJsxRuntime_production_min.jsxs = q$1;
7946
- {
7947
- jsxRuntime.exports = reactJsxRuntime_production_min;
7948
- }
7949
- const jsx = jsxRuntime.exports.jsx;
7950
- const jsxs = jsxRuntime.exports.jsxs;
7951
- const Fragment = jsxRuntime.exports.Fragment;
7952
7920
  const variants = {
7953
7921
  h1: "h1",
7954
7922
  h2: "h2",
@@ -8034,7 +8002,7 @@ function __extends$2(d2, b2) {
8034
8002
  }
8035
8003
  var __assign = function() {
8036
8004
  __assign = Object.assign || function __assign2(t2) {
8037
- for (var s2, i2 = 1, n2 = arguments.length; i2 < n2; i2++) {
8005
+ for (var s2, i2 = 1, n = arguments.length; i2 < n; i2++) {
8038
8006
  s2 = arguments[i2];
8039
8007
  for (var p2 in s2)
8040
8008
  if (Object.prototype.hasOwnProperty.call(s2, p2))
@@ -10192,13 +10160,13 @@ function isOutsideBoundary(handlerInstance, x2, y2) {
10192
10160
  var Handler$1 = Handler;
10193
10161
  var DEFAULT_MIN_MERGE = 32;
10194
10162
  var DEFAULT_MIN_GALLOPING = 7;
10195
- function minRunLength(n2) {
10163
+ function minRunLength(n) {
10196
10164
  var r2 = 0;
10197
- while (n2 >= DEFAULT_MIN_MERGE) {
10198
- r2 |= n2 & 1;
10199
- n2 >>= 1;
10165
+ while (n >= DEFAULT_MIN_MERGE) {
10166
+ r2 |= n & 1;
10167
+ n >>= 1;
10200
10168
  }
10201
- return n2 + r2;
10169
+ return n + r2;
10202
10170
  }
10203
10171
  function makeAscendingRun(array, lo, hi, compare2) {
10204
10172
  var runHi = lo + 1;
@@ -10242,8 +10210,8 @@ function binaryInsertionSort(array, lo, hi, start2, compare2) {
10242
10210
  left2 = mid + 1;
10243
10211
  }
10244
10212
  }
10245
- var n2 = start2 - left2;
10246
- switch (n2) {
10213
+ var n = start2 - left2;
10214
+ switch (n) {
10247
10215
  case 3:
10248
10216
  array[left2 + 3] = array[left2 + 2];
10249
10217
  case 2:
@@ -10252,9 +10220,9 @@ function binaryInsertionSort(array, lo, hi, start2, compare2) {
10252
10220
  array[left2 + 1] = array[left2];
10253
10221
  break;
10254
10222
  default:
10255
- while (n2 > 0) {
10256
- array[left2 + n2] = array[left2 + n2 - 1];
10257
- n2--;
10223
+ while (n > 0) {
10224
+ array[left2 + n] = array[left2 + n - 1];
10225
+ n--;
10258
10226
  }
10259
10227
  }
10260
10228
  array[left2] = pivot;
@@ -10366,24 +10334,24 @@ function TimSort(array, compare2) {
10366
10334
  }
10367
10335
  function mergeRuns() {
10368
10336
  while (stackSize > 1) {
10369
- var n2 = stackSize - 2;
10370
- if (n2 >= 1 && runLength[n2 - 1] <= runLength[n2] + runLength[n2 + 1] || n2 >= 2 && runLength[n2 - 2] <= runLength[n2] + runLength[n2 - 1]) {
10371
- if (runLength[n2 - 1] < runLength[n2 + 1]) {
10372
- n2--;
10337
+ var n = stackSize - 2;
10338
+ if (n >= 1 && runLength[n - 1] <= runLength[n] + runLength[n + 1] || n >= 2 && runLength[n - 2] <= runLength[n] + runLength[n - 1]) {
10339
+ if (runLength[n - 1] < runLength[n + 1]) {
10340
+ n--;
10373
10341
  }
10374
- } else if (runLength[n2] > runLength[n2 + 1]) {
10342
+ } else if (runLength[n] > runLength[n + 1]) {
10375
10343
  break;
10376
10344
  }
10377
- mergeAt(n2);
10345
+ mergeAt(n);
10378
10346
  }
10379
10347
  }
10380
10348
  function forceMergeRuns() {
10381
10349
  while (stackSize > 1) {
10382
- var n2 = stackSize - 2;
10383
- if (n2 > 0 && runLength[n2 - 1] < runLength[n2 + 1]) {
10384
- n2--;
10350
+ var n = stackSize - 2;
10351
+ if (n > 0 && runLength[n - 1] < runLength[n + 1]) {
10352
+ n--;
10385
10353
  }
10386
- mergeAt(n2);
10354
+ mergeAt(n);
10387
10355
  }
10388
10356
  }
10389
10357
  function mergeAt(i2) {
@@ -11073,14 +11041,14 @@ function cubicRootAt(p0, p1, p2, p3, val, roots2) {
11073
11041
  var A2 = b2 * b2 - 3 * a2 * c2;
11074
11042
  var B2 = b2 * c2 - 9 * a2 * d2;
11075
11043
  var C2 = c2 * c2 - 3 * b2 * d2;
11076
- var n2 = 0;
11044
+ var n = 0;
11077
11045
  if (isAroundZero$1(A2) && isAroundZero$1(B2)) {
11078
11046
  if (isAroundZero$1(b2)) {
11079
11047
  roots2[0] = 0;
11080
11048
  } else {
11081
11049
  var t1 = -c2 / b2;
11082
11050
  if (t1 >= 0 && t1 <= 1) {
11083
- roots2[n2++] = t1;
11051
+ roots2[n++] = t1;
11084
11052
  }
11085
11053
  }
11086
11054
  } else {
@@ -11090,10 +11058,10 @@ function cubicRootAt(p0, p1, p2, p3, val, roots2) {
11090
11058
  var t1 = -b2 / a2 + K;
11091
11059
  var t2 = -K / 2;
11092
11060
  if (t1 >= 0 && t1 <= 1) {
11093
- roots2[n2++] = t1;
11061
+ roots2[n++] = t1;
11094
11062
  }
11095
11063
  if (t2 >= 0 && t2 <= 1) {
11096
- roots2[n2++] = t2;
11064
+ roots2[n++] = t2;
11097
11065
  }
11098
11066
  } else if (disc > 0) {
11099
11067
  var discSqrt = mathSqrt$3(disc);
@@ -11111,7 +11079,7 @@ function cubicRootAt(p0, p1, p2, p3, val, roots2) {
11111
11079
  }
11112
11080
  var t1 = (-b2 - (Y1 + Y2)) / (3 * a2);
11113
11081
  if (t1 >= 0 && t1 <= 1) {
11114
- roots2[n2++] = t1;
11082
+ roots2[n++] = t1;
11115
11083
  }
11116
11084
  } else {
11117
11085
  var T2 = (2 * A2 * b2 - 3 * a2 * B2) / (2 * mathSqrt$3(A2 * A2 * A2));
@@ -11122,28 +11090,28 @@ function cubicRootAt(p0, p1, p2, p3, val, roots2) {
11122
11090
  var t2 = (-b2 + ASqrt * (tmp + THREE_SQRT * Math.sin(theta))) / (3 * a2);
11123
11091
  var t3 = (-b2 + ASqrt * (tmp - THREE_SQRT * Math.sin(theta))) / (3 * a2);
11124
11092
  if (t1 >= 0 && t1 <= 1) {
11125
- roots2[n2++] = t1;
11093
+ roots2[n++] = t1;
11126
11094
  }
11127
11095
  if (t2 >= 0 && t2 <= 1) {
11128
- roots2[n2++] = t2;
11096
+ roots2[n++] = t2;
11129
11097
  }
11130
11098
  if (t3 >= 0 && t3 <= 1) {
11131
- roots2[n2++] = t3;
11099
+ roots2[n++] = t3;
11132
11100
  }
11133
11101
  }
11134
11102
  }
11135
- return n2;
11103
+ return n;
11136
11104
  }
11137
11105
  function cubicExtrema(p0, p1, p2, p3, extrema2) {
11138
11106
  var b2 = 6 * p2 - 12 * p1 + 6 * p0;
11139
11107
  var a2 = 9 * p1 + 3 * p3 - 3 * p0 - 9 * p2;
11140
11108
  var c2 = 3 * p1 - 3 * p0;
11141
- var n2 = 0;
11109
+ var n = 0;
11142
11110
  if (isAroundZero$1(a2)) {
11143
11111
  if (isNotAroundZero$1(b2)) {
11144
11112
  var t1 = -c2 / b2;
11145
11113
  if (t1 >= 0 && t1 <= 1) {
11146
- extrema2[n2++] = t1;
11114
+ extrema2[n++] = t1;
11147
11115
  }
11148
11116
  }
11149
11117
  } else {
@@ -11155,14 +11123,14 @@ function cubicExtrema(p0, p1, p2, p3, extrema2) {
11155
11123
  var t1 = (-b2 + discSqrt) / (2 * a2);
11156
11124
  var t2 = (-b2 - discSqrt) / (2 * a2);
11157
11125
  if (t1 >= 0 && t1 <= 1) {
11158
- extrema2[n2++] = t1;
11126
+ extrema2[n++] = t1;
11159
11127
  }
11160
11128
  if (t2 >= 0 && t2 <= 1) {
11161
- extrema2[n2++] = t2;
11129
+ extrema2[n++] = t2;
11162
11130
  }
11163
11131
  }
11164
11132
  }
11165
- return n2;
11133
+ return n;
11166
11134
  }
11167
11135
  function cubicSubdivide(p0, p1, p2, p3, t2, out2) {
11168
11136
  var p01 = (p1 - p0) * t2 + p0;
@@ -11258,12 +11226,12 @@ function quadraticRootAt(p0, p1, p2, val, roots2) {
11258
11226
  var a2 = p0 - 2 * p1 + p2;
11259
11227
  var b2 = 2 * (p1 - p0);
11260
11228
  var c2 = p0 - val;
11261
- var n2 = 0;
11229
+ var n = 0;
11262
11230
  if (isAroundZero$1(a2)) {
11263
11231
  if (isNotAroundZero$1(b2)) {
11264
11232
  var t1 = -c2 / b2;
11265
11233
  if (t1 >= 0 && t1 <= 1) {
11266
- roots2[n2++] = t1;
11234
+ roots2[n++] = t1;
11267
11235
  }
11268
11236
  }
11269
11237
  } else {
@@ -11271,21 +11239,21 @@ function quadraticRootAt(p0, p1, p2, val, roots2) {
11271
11239
  if (isAroundZero$1(disc)) {
11272
11240
  var t1 = -b2 / (2 * a2);
11273
11241
  if (t1 >= 0 && t1 <= 1) {
11274
- roots2[n2++] = t1;
11242
+ roots2[n++] = t1;
11275
11243
  }
11276
11244
  } else if (disc > 0) {
11277
11245
  var discSqrt = mathSqrt$3(disc);
11278
11246
  var t1 = (-b2 + discSqrt) / (2 * a2);
11279
11247
  var t2 = (-b2 - discSqrt) / (2 * a2);
11280
11248
  if (t1 >= 0 && t1 <= 1) {
11281
- roots2[n2++] = t1;
11249
+ roots2[n++] = t1;
11282
11250
  }
11283
11251
  if (t2 >= 0 && t2 <= 1) {
11284
- roots2[n2++] = t2;
11252
+ roots2[n++] = t2;
11285
11253
  }
11286
11254
  }
11287
11255
  }
11288
- return n2;
11256
+ return n;
11289
11257
  }
11290
11258
  function quadraticExtremum(p0, p1, p2) {
11291
11259
  var divider = p0 + p2 - 2 * p1;
@@ -16777,18 +16745,18 @@ var yDim = [];
16777
16745
  function fromCubic(x0, y0, x1, y1, x2, y2, x3, y3, min3, max3) {
16778
16746
  var cubicExtrema$1 = cubicExtrema;
16779
16747
  var cubicAt$1 = cubicAt;
16780
- var n2 = cubicExtrema$1(x0, x1, x2, x3, xDim);
16748
+ var n = cubicExtrema$1(x0, x1, x2, x3, xDim);
16781
16749
  min3[0] = Infinity;
16782
16750
  min3[1] = Infinity;
16783
16751
  max3[0] = -Infinity;
16784
16752
  max3[1] = -Infinity;
16785
- for (var i2 = 0; i2 < n2; i2++) {
16753
+ for (var i2 = 0; i2 < n; i2++) {
16786
16754
  var x4 = cubicAt$1(x0, x1, x2, x3, xDim[i2]);
16787
16755
  min3[0] = mathMin$9(x4, min3[0]);
16788
16756
  max3[0] = mathMax$9(x4, max3[0]);
16789
16757
  }
16790
- n2 = cubicExtrema$1(y0, y1, y2, y3, yDim);
16791
- for (var i2 = 0; i2 < n2; i2++) {
16758
+ n = cubicExtrema$1(y0, y1, y2, y3, yDim);
16759
+ for (var i2 = 0; i2 < n; i2++) {
16792
16760
  var y4 = cubicAt$1(y0, y1, y2, y3, yDim[i2]);
16793
16761
  min3[1] = mathMin$9(y4, min3[1]);
16794
16762
  max3[1] = mathMax$9(y4, max3[1]);
@@ -16883,8 +16851,8 @@ var PI2$7 = PI$9 * 2;
16883
16851
  var hasTypedArray = typeof Float32Array !== "undefined";
16884
16852
  var tmpAngles = [];
16885
16853
  function modPI2(radian) {
16886
- var n2 = Math.round(radian / PI$9 * 1e8) / 1e8;
16887
- return n2 % 2 * PI$9;
16854
+ var n = Math.round(radian / PI$9 * 1e8) / 1e8;
16855
+ return n % 2 * PI$9;
16888
16856
  }
16889
16857
  function normalizeArcAngles(angles, anticlockwise) {
16890
16858
  var newStartAngle = modPI2(angles[0]);
@@ -19745,8 +19713,8 @@ function processArc(x1, y1, x2, y2, fa, fs, rx, ry, psiDeg, cmd, path) {
19745
19713
  dTheta = 0;
19746
19714
  }
19747
19715
  if (dTheta < 0) {
19748
- var n2 = Math.round(dTheta / PI$8 * 1e6) / 1e6;
19749
- dTheta = PI$8 * 2 + n2 % 2 * PI$8;
19716
+ var n = Math.round(dTheta / PI$8 * 1e6) / 1e6;
19717
+ dTheta = PI$8 * 2 + n % 2 * PI$8;
19750
19718
  }
19751
19719
  path.addData(cmd, cx, cy, rx, ry, theta, dTheta, psi, fs);
19752
19720
  }
@@ -29653,8 +29621,8 @@ function normalizeDashArrayX(dash) {
29653
29621
  var dashValue = Math.ceil(dash[i2]);
29654
29622
  result.push([dashValue, dashValue]);
29655
29623
  } else {
29656
- var dashValue = map$3(dash[i2], function(n2) {
29657
- return Math.ceil(n2);
29624
+ var dashValue = map$3(dash[i2], function(n) {
29625
+ return Math.ceil(n);
29658
29626
  });
29659
29627
  if (dashValue.length % 2 === 1) {
29660
29628
  result.push(dashValue.concat(dashValue));
@@ -29673,8 +29641,8 @@ function normalizeDashArrayY(dash) {
29673
29641
  var dashValue_1 = Math.ceil(dash);
29674
29642
  return [dashValue_1, dashValue_1];
29675
29643
  }
29676
- var dashValue = map$3(dash, function(n2) {
29677
- return Math.ceil(n2);
29644
+ var dashValue = map$3(dash, function(n) {
29645
+ return Math.ceil(n);
29678
29646
  });
29679
29647
  return dash.length % 2 ? dashValue.concat(dashValue) : dashValue;
29680
29648
  }
@@ -48508,8 +48476,8 @@ function init(inRoot) {
48508
48476
  while (node = nodes.pop()) {
48509
48477
  children2 = node.children;
48510
48478
  if (node.isExpand && children2.length) {
48511
- var n2 = children2.length;
48512
- for (var i2 = n2 - 1; i2 >= 0; i2--) {
48479
+ var n = children2.length;
48480
+ for (var i2 = n - 1; i2 >= 0; i2--) {
48513
48481
  var child = children2[i2];
48514
48482
  child.hierNode = {
48515
48483
  defaultAncestor: null,
@@ -48569,11 +48537,11 @@ function getViewRect$4(seriesModel, api) {
48569
48537
  }
48570
48538
  function executeShifts(node) {
48571
48539
  var children2 = node.children;
48572
- var n2 = children2.length;
48540
+ var n = children2.length;
48573
48541
  var shift = 0;
48574
48542
  var change = 0;
48575
- while (--n2 >= 0) {
48576
- var child = children2[n2];
48543
+ while (--n >= 0) {
48544
+ var child = children2[n];
48577
48545
  child.hierNode.prelim += shift;
48578
48546
  child.hierNode.modifier += shift;
48579
48547
  change += child.hierNode.change;
@@ -52210,12 +52178,12 @@ function forceLayout(inNodes, inEdges, opts) {
52210
52178
  var center2 = [rect.x + width / 2, rect.y + height / 2];
52211
52179
  var gravity = opts.gravity == null ? 0.1 : opts.gravity;
52212
52180
  for (var i2 = 0; i2 < nodes.length; i2++) {
52213
- var n2 = nodes[i2];
52214
- if (!n2.p) {
52215
- n2.p = create$2(width * (Math.random() - 0.5) + center2[0], height * (Math.random() - 0.5) + center2[1]);
52181
+ var n = nodes[i2];
52182
+ if (!n.p) {
52183
+ n.p = create$2(width * (Math.random() - 0.5) + center2[0], height * (Math.random() - 0.5) + center2[1]);
52216
52184
  }
52217
- n2.pp = clone$5(n2.p);
52218
- n2.edges = null;
52185
+ n.pp = clone$5(n.p);
52186
+ n.edges = null;
52219
52187
  }
52220
52188
  var initialFriction = opts.friction == null ? 0.6 : opts.friction;
52221
52189
  var friction = initialFriction;
@@ -52247,16 +52215,16 @@ function forceLayout(inNodes, inEdges, opts) {
52247
52215
  continue;
52248
52216
  }
52249
52217
  var n1 = e2.n1;
52250
- var n22 = e2.n2;
52251
- sub(v12, n22.p, n1.p);
52218
+ var n2 = e2.n2;
52219
+ sub(v12, n2.p, n1.p);
52252
52220
  var d2 = len(v12) - e2.d;
52253
- var w2 = n22.w / (n1.w + n22.w);
52221
+ var w2 = n2.w / (n1.w + n2.w);
52254
52222
  if (isNaN(w2)) {
52255
52223
  w2 = 0;
52256
52224
  }
52257
52225
  normalize$3(v12, v12);
52258
52226
  !n1.fixed && scaleAndAdd(n1.p, n1.p, v12, w2 * d2 * friction);
52259
- !n22.fixed && scaleAndAdd(n22.p, n22.p, v12, -(1 - w2) * d2 * friction);
52227
+ !n2.fixed && scaleAndAdd(n2.p, n2.p, v12, -(1 - w2) * d2 * friction);
52260
52228
  }
52261
52229
  for (var i3 = 0; i3 < nLen; i3++) {
52262
52230
  var n3 = nodes[i3];
@@ -52268,16 +52236,16 @@ function forceLayout(inNodes, inEdges, opts) {
52268
52236
  for (var i3 = 0; i3 < nLen; i3++) {
52269
52237
  var n1 = nodes[i3];
52270
52238
  for (var j2 = i3 + 1; j2 < nLen; j2++) {
52271
- var n22 = nodes[j2];
52272
- sub(v12, n22.p, n1.p);
52239
+ var n2 = nodes[j2];
52240
+ sub(v12, n2.p, n1.p);
52273
52241
  var d2 = len(v12);
52274
52242
  if (d2 === 0) {
52275
52243
  set$3(v12, Math.random() - 0.5, Math.random() - 0.5);
52276
52244
  d2 = 1;
52277
52245
  }
52278
- var repFact = (n1.rep + n22.rep) / d2 / d2;
52246
+ var repFact = (n1.rep + n2.rep) / d2 / d2;
52279
52247
  !n1.fixed && scaleAndAdd(n1.pp, n1.pp, v12, repFact);
52280
- !n22.fixed && scaleAndAdd(n22.pp, n22.pp, v12, -repFact);
52248
+ !n2.fixed && scaleAndAdd(n2.pp, n2.pp, v12, -repFact);
52281
52249
  }
52282
52250
  }
52283
52251
  var v4 = [];
@@ -52756,11 +52724,11 @@ var Line = function(_super) {
52756
52724
  var distanceY = distance2[1] * invScale;
52757
52725
  var halfPercent = percent / 2;
52758
52726
  var tangent = line.tangentAt(halfPercent);
52759
- var n2 = [tangent[1], -tangent[0]];
52727
+ var n = [tangent[1], -tangent[0]];
52760
52728
  var cp = line.pointAt(halfPercent);
52761
- if (n2[1] > 0) {
52762
- n2[0] = -n2[0];
52763
- n2[1] = -n2[1];
52729
+ if (n[1] > 0) {
52730
+ n[0] = -n[0];
52731
+ n[1] = -n[1];
52764
52732
  }
52765
52733
  var dir3 = tangent[0] < 0 ? -1 : 1;
52766
52734
  if (label2.__position !== "start" && label2.__position !== "end") {
@@ -57181,12 +57149,12 @@ function prepareNodesByBreadth(nodes, orient) {
57181
57149
  function initializeNodeDepth(nodesByBreadth, edges, height, width, nodeGap, orient) {
57182
57150
  var minKy = Infinity;
57183
57151
  each$g(nodesByBreadth, function(nodes) {
57184
- var n2 = nodes.length;
57152
+ var n = nodes.length;
57185
57153
  var sum2 = 0;
57186
57154
  each$g(nodes, function(node) {
57187
57155
  sum2 += node.getLayout().value;
57188
57156
  });
57189
- var ky = orient === "vertical" ? (width - (n2 - 1) * nodeGap) / sum2 : (height - (n2 - 1) * nodeGap) / sum2;
57157
+ var ky = orient === "vertical" ? (width - (n - 1) * nodeGap) / sum2 : (height - (n - 1) * nodeGap) / sum2;
57190
57158
  if (ky < minKy) {
57191
57159
  minKy = ky;
57192
57160
  }
@@ -57228,9 +57196,9 @@ function resolveCollisions(nodesByBreadth, nodeGap, height, width, orient) {
57228
57196
  var node;
57229
57197
  var dy;
57230
57198
  var y0 = 0;
57231
- var n2 = nodes.length;
57199
+ var n = nodes.length;
57232
57200
  var nodeDyAttr = orient === "vertical" ? "dx" : "dy";
57233
- for (var i2 = 0; i2 < n2; i2++) {
57201
+ for (var i2 = 0; i2 < n; i2++) {
57234
57202
  node = nodes[i2];
57235
57203
  dy = y0 - node.getLayout()[keyAttr];
57236
57204
  if (dy > 0) {
@@ -57253,7 +57221,7 @@ function resolveCollisions(nodesByBreadth, nodeGap, height, width, orient) {
57253
57221
  y: nodeX
57254
57222
  }, true);
57255
57223
  y0 = nodeX;
57256
- for (var i2 = n2 - 2; i2 >= 0; --i2) {
57224
+ for (var i2 = n - 2; i2 >= 0; --i2) {
57257
57225
  node = nodes[i2];
57258
57226
  dy = node.getLayout()[keyAttr] + node.getLayout()[nodeDyAttr] + nodeGap - y0;
57259
57227
  if (dy > 0) {
@@ -60847,7 +60815,7 @@ function doThemeRiverLayout(data, seriesModel, height) {
60847
60815
  var base2 = computeBaseline(layerPoints);
60848
60816
  var baseLine = base2.y0;
60849
60817
  var ky = height / base2.max;
60850
- var n2 = layerSeries.length;
60818
+ var n = layerSeries.length;
60851
60819
  var m2 = layerSeries[0].indices.length;
60852
60820
  var baseY0;
60853
60821
  for (var j2 = 0; j2 < m2; ++j2) {
@@ -60858,7 +60826,7 @@ function doThemeRiverLayout(data, seriesModel, height) {
60858
60826
  y0: baseY0,
60859
60827
  y: layerPoints[0][j2][1] * ky
60860
60828
  });
60861
- for (var i2 = 1; i2 < n2; ++i2) {
60829
+ for (var i2 = 1; i2 < n; ++i2) {
60862
60830
  baseY0 += layerPoints[i2 - 1][j2][1] * ky;
60863
60831
  data.setItemLayout(layerSeries[i2].indices[j2], {
60864
60832
  layerIndex: i2,
@@ -65888,13 +65856,13 @@ var Calendar = function() {
65888
65856
  date
65889
65857
  };
65890
65858
  };
65891
- Calendar2.prototype.getNextNDay = function(date, n2) {
65892
- n2 = n2 || 0;
65893
- if (n2 === 0) {
65859
+ Calendar2.prototype.getNextNDay = function(date, n) {
65860
+ n = n || 0;
65861
+ if (n === 0) {
65894
65862
  return this.getDateInfo(date);
65895
65863
  }
65896
65864
  date = new Date(this.getDateInfo(date).time);
65897
- date.setDate(date.getDate() + n2);
65865
+ date.setDate(date.getDate() + n);
65898
65866
  return this.getDateInfo(date);
65899
65867
  };
65900
65868
  Calendar2.prototype.update = function(ecModel, api) {
@@ -67555,10 +67523,10 @@ var SaveAsImage = function(_super) {
67555
67523
  base64Encoded && (bstr = window.atob(bstr));
67556
67524
  var filename = title2 + "." + type3;
67557
67525
  if (window.navigator.msSaveOrOpenBlob) {
67558
- var n2 = bstr.length;
67559
- var u8arr = new Uint8Array(n2);
67560
- while (n2--) {
67561
- u8arr[n2] = bstr.charCodeAt(n2);
67526
+ var n = bstr.length;
67527
+ var u8arr = new Uint8Array(n);
67528
+ while (n--) {
67529
+ u8arr[n] = bstr.charCodeAt(n);
67562
67530
  }
67563
67531
  var blob = new Blob([u8arr]);
67564
67532
  window.navigator.msSaveOrOpenBlob(blob, filename);
@@ -79410,8 +79378,8 @@ function _factorize(value) {
79410
79378
  result.sort((a2, b2) => a2 - b2).pop();
79411
79379
  return result;
79412
79380
  }
79413
- function isNumber(n2) {
79414
- return !isNaN(parseFloat(n2)) && isFinite(n2);
79381
+ function isNumber(n) {
79382
+ return !isNaN(parseFloat(n)) && isFinite(n);
79415
79383
  }
79416
79384
  function almostEquals(x2, y2, epsilon) {
79417
79385
  return Math.abs(x2 - y2) < epsilon;
@@ -79790,11 +79758,11 @@ function hexString(v4) {
79790
79758
  const HUE_RE = /^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;
79791
79759
  function hsl2rgbn(h3, s2, l2) {
79792
79760
  const a2 = s2 * Math.min(l2, 1 - l2);
79793
- const f2 = (n2, k2 = (n2 + h3 / 30) % 12) => l2 - a2 * Math.max(Math.min(k2 - 3, 9 - k2, 1), -1);
79761
+ const f2 = (n, k2 = (n + h3 / 30) % 12) => l2 - a2 * Math.max(Math.min(k2 - 3, 9 - k2, 1), -1);
79794
79762
  return [f2(0), f2(8), f2(4)];
79795
79763
  }
79796
79764
  function hsv2rgbn(h3, s2, v4) {
79797
- const f2 = (n2, k2 = (n2 + h3 / 60) % 6) => v4 - v4 * s2 * Math.max(Math.min(k2, 4 - k2, 1), 0);
79765
+ const f2 = (n, k2 = (n + h3 / 60) % 6) => v4 - v4 * s2 * Math.max(Math.min(k2, 4 - k2, 1), 0);
79798
79766
  return [f2(5), f2(3), f2(1)];
79799
79767
  }
79800
79768
  function hwb2rgbn(h3, w2, b2) {
@@ -80316,7 +80284,7 @@ function getScope$1(node, key) {
80316
80284
  return node;
80317
80285
  }
80318
80286
  const keys2 = key.split(".");
80319
- for (let i2 = 0, n2 = keys2.length; i2 < n2; ++i2) {
80287
+ for (let i2 = 0, n = keys2.length; i2 < n; ++i2) {
80320
80288
  const k2 = keys2[i2];
80321
80289
  node = node[k2] || (node[k2] = /* @__PURE__ */ Object.create(null));
80322
80290
  }
@@ -93410,7 +93378,30 @@ const BoxPlot = ({
93410
93378
  option: option2
93411
93379
  });
93412
93380
  };
93413
- var styles$w = ".tableContainer{position:relative;max-height:24rem;max-width:56rem;overflow:scroll;border-radius:var(--databrainhq-plugin-border-radiusMd);border-width:1px;border-style:solid;border-color:var(--databrainhq-plugin-color-gray300)}.heatMap{position:relative;border-collapse:separate;--tw-border-spacing-x: 0px;--tw-border-spacing-y: 0px;border-spacing:var(--tw-border-spacing-x) var(--tw-border-spacing-y)}.label{white-space:nowrap}.heatMap td,.heatMap th{border-right-width:1px;border-bottom-width:1px;border-style:solid;border-color:var(--databrainhq-plugin-color-gray300);padding:.25rem;text-align:center}.heatMap thead th{position:sticky;top:0px}.heatMap thead th:first-child{left:0px;z-index:10;--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.heatMap tbody th{position:sticky;left:0px;z-index:10;--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.tablechart{position:relative;display:flex;height:100%;padding:1rem}.tablechartWrapper{display:flex;height:100%;width:100%;flex-direction:column}.tablechartContainer{position:sticky;height:4%;width:100%;padding-left:.25rem}.tablechartTable{width:100%}.tablechartHeaderRow{position:sticky;top:0px;height:2.5rem;background-color:var(--databrainhq-plugin-color-primaryLight)}.tablechartHeaderCol{width:16rem}.tablechartHeaderCol>:not([hidden])~:not([hidden]){border-style:solid}.tablechartHeaderCol{border-left-width:1px;padding-left:1rem;padding-right:1rem}.tablechartBodyRow{height:3.5rem}.tablechartBodyCol>:not([hidden])~:not([hidden]){border-style:solid}.tablechartBodyCol{border-left-width:1px;padding-left:1rem;padding-right:1rem;text-align:center}\n";
93381
+ const tableContainer = "_tableContainer_3mspj_1";
93382
+ const heatMap = "_heatMap_3mspj_9";
93383
+ const label$4 = "_label_3mspj_17";
93384
+ const tablechart = "_tablechart_3mspj_59";
93385
+ const tablechartWrapper = "_tablechartWrapper_3mspj_67";
93386
+ const tablechartContainer = "_tablechartContainer_3mspj_75";
93387
+ const tablechartTable = "_tablechartTable_3mspj_83";
93388
+ const tablechartHeaderRow = "_tablechartHeaderRow_3mspj_91";
93389
+ const tablechartHeaderCol = "_tablechartHeaderCol_3mspj_99";
93390
+ const tablechartBodyRow = "_tablechartBodyRow_3mspj_107";
93391
+ const tablechartBodyCol = "_tablechartBodyCol_3mspj_115";
93392
+ var styles$w = {
93393
+ tableContainer,
93394
+ heatMap,
93395
+ label: label$4,
93396
+ tablechart,
93397
+ tablechartWrapper,
93398
+ tablechartContainer,
93399
+ tablechartTable,
93400
+ tablechartHeaderRow,
93401
+ tablechartHeaderCol,
93402
+ tablechartBodyRow,
93403
+ tablechartBodyCol
93404
+ };
93414
93405
  const TableChart = ({
93415
93406
  data
93416
93407
  }) => {
@@ -93991,31 +93982,28 @@ const useGenerateDatasetMetricsMutation = (options2) => useMutation(
93991
93982
  (variables) => fetcher(GenerateDatasetMetricsDocument, variables)(),
93992
93983
  options2
93993
93984
  );
93994
- const CompanyIntegrationDocument = `
93995
- query CompanyIntegration($companyId: uuid = "") {
93996
- companyIntegrations(where: {companyId: {_eq: $companyId}}) {
93997
- companyId
93998
- id
93999
- integrationId
94000
- name
94001
- }
94002
- }
94003
- `;
94004
- const useCompanyIntegrationQuery = (variables, options2) => useQuery(
94005
- variables === void 0 ? ["CompanyIntegration"] : ["CompanyIntegration", variables],
94006
- fetcher(CompanyIntegrationDocument, variables),
94007
- options2
94008
- );
94009
- const CompanySubsetTableListDocument = `
94010
- query CompanySubsetTableList($companyId: uuid = "") {
94011
- companySubsetTables(where: {companyId: {_eq: $companyId}}) {
94012
- tableList
93985
+ const CompanySubsetTableDataDocument = `
93986
+ mutation CompanySubsetTableData($clientId: String = "", $companyId: String = "") {
93987
+ companySubsetTableData(input: {clientId: $clientId, companyId: $companyId}) {
93988
+ companyIntegrationId
93989
+ dbName
93990
+ error {
93991
+ message
93992
+ }
93993
+ tableList {
93994
+ tableName
93995
+ columns {
93996
+ datatype
93997
+ name
93998
+ as
93999
+ }
94000
+ }
94013
94001
  }
94014
94002
  }
94015
94003
  `;
94016
- const useCompanySubsetTableListQuery = (variables, options2) => useQuery(
94017
- variables === void 0 ? ["CompanySubsetTableList"] : ["CompanySubsetTableList", variables],
94018
- fetcher(CompanySubsetTableListDocument, variables),
94004
+ const useCompanySubsetTableDataMutation = (options2) => useMutation(
94005
+ ["CompanySubsetTableData"],
94006
+ (variables) => fetcher(CompanySubsetTableDataDocument, variables)(),
94019
94007
  options2
94020
94008
  );
94021
94009
  const EmbeddedDashboardMetricsDocument = `
@@ -95897,7 +95885,7 @@ function t$1(e2) {
95897
95885
  }));
95898
95886
  }
95899
95887
  function m$1() {
95900
- let n2 = [], i2 = [], r2 = { enqueue(e2) {
95888
+ let n = [], i2 = [], r2 = { enqueue(e2) {
95901
95889
  i2.push(e2);
95902
95890
  }, addEventListener(e2, t2, a2, o2) {
95903
95891
  return e2.addEventListener(t2, a2, o2), r2.add(() => e2.removeEventListener(t2, a2, o2));
@@ -95917,15 +95905,15 @@ function m$1() {
95917
95905
  t2.current = false;
95918
95906
  });
95919
95907
  }, add(e2) {
95920
- return n2.push(e2), () => {
95921
- let t2 = n2.indexOf(e2);
95908
+ return n.push(e2), () => {
95909
+ let t2 = n.indexOf(e2);
95922
95910
  if (t2 >= 0) {
95923
- let [a2] = n2.splice(t2, 1);
95911
+ let [a2] = n.splice(t2, 1);
95924
95912
  a2();
95925
95913
  }
95926
95914
  };
95927
95915
  }, dispose() {
95928
- for (let e2 of n2.splice(0))
95916
+ for (let e2 of n.splice(0))
95929
95917
  e2();
95930
95918
  }, async workQueue() {
95931
95919
  for (let e2 of i2.splice(0))
@@ -95956,24 +95944,24 @@ function r$1() {
95956
95944
  return ++l$1;
95957
95945
  }
95958
95946
  let I$1 = (u$5 = React__default.useId) != null ? u$5 : function() {
95959
- let n2 = a$2(), [e2, o2] = React__default.useState(n2 ? r$1 : null);
95947
+ let n = a$2(), [e2, o2] = React__default.useState(n ? r$1 : null);
95960
95948
  return s$5(() => {
95961
95949
  e2 === null && o2(r$1());
95962
95950
  }, [e2]), e2 != null ? "" + e2 : void 0;
95963
95951
  };
95964
- function u$4(r2, n2, ...a2) {
95965
- if (r2 in n2) {
95966
- let e2 = n2[r2];
95952
+ function u$4(r2, n, ...a2) {
95953
+ if (r2 in n) {
95954
+ let e2 = n[r2];
95967
95955
  return typeof e2 == "function" ? e2(...a2) : e2;
95968
95956
  }
95969
- let t2 = new Error(`Tried to handle "${r2}" but there is no handler defined. Only defined handlers are: ${Object.keys(n2).map((e2) => `"${e2}"`).join(", ")}.`);
95957
+ let t2 = new Error(`Tried to handle "${r2}" but there is no handler defined. Only defined handlers are: ${Object.keys(n).map((e2) => `"${e2}"`).join(", ")}.`);
95970
95958
  throw Error.captureStackTrace && Error.captureStackTrace(t2, u$4), t2;
95971
95959
  }
95972
95960
  function e$2(r2) {
95973
95961
  return e$3 ? null : r2 instanceof Node ? r2.ownerDocument : r2 != null && r2.hasOwnProperty("current") && r2.current instanceof Node ? r2.current.ownerDocument : document;
95974
95962
  }
95975
95963
  let f$4 = ["[contentEditable=true]", "[tabindex]", "a[href]", "area[href]", "button:not([disabled])", "iframe", "input:not([disabled])", "select:not([disabled])", "textarea:not([disabled])"].map((e2) => `${e2}:not([tabindex='-1'])`).join(",");
95976
- var L$1 = ((n2) => (n2[n2.First = 1] = "First", n2[n2.Previous = 2] = "Previous", n2[n2.Next = 4] = "Next", n2[n2.Last = 8] = "Last", n2[n2.WrapAround = 16] = "WrapAround", n2[n2.NoScroll = 32] = "NoScroll", n2))(L$1 || {}), N = ((o2) => (o2[o2.Error = 0] = "Error", o2[o2.Overflow = 1] = "Overflow", o2[o2.Success = 2] = "Success", o2[o2.Underflow = 3] = "Underflow", o2))(N || {}), T$2 = ((r2) => (r2[r2.Previous = -1] = "Previous", r2[r2.Next = 1] = "Next", r2))(T$2 || {});
95964
+ var L$1 = ((n) => (n[n.First = 1] = "First", n[n.Previous = 2] = "Previous", n[n.Next = 4] = "Next", n[n.Last = 8] = "Last", n[n.WrapAround = 16] = "WrapAround", n[n.NoScroll = 32] = "NoScroll", n))(L$1 || {}), N = ((o2) => (o2[o2.Error = 0] = "Error", o2[o2.Overflow = 1] = "Overflow", o2[o2.Success = 2] = "Success", o2[o2.Underflow = 3] = "Underflow", o2))(N || {}), T$2 = ((r2) => (r2[r2.Previous = -1] = "Previous", r2[r2.Next = 1] = "Next", r2))(T$2 || {});
95977
95965
  var F$4 = ((r2) => (r2[r2.Strict = 0] = "Strict", r2[r2.Loose = 1] = "Loose", r2))(F$4 || {});
95978
95966
  function h$2(e2, t2 = 0) {
95979
95967
  var r2;
@@ -95994,18 +95982,18 @@ function A$1(e2, t2 = (r2) => r2) {
95994
95982
  let o2 = t2(r2), i2 = t2(l2);
95995
95983
  if (o2 === null || i2 === null)
95996
95984
  return 0;
95997
- let n2 = o2.compareDocumentPosition(i2);
95998
- return n2 & Node.DOCUMENT_POSITION_FOLLOWING ? -1 : n2 & Node.DOCUMENT_POSITION_PRECEDING ? 1 : 0;
95985
+ let n = o2.compareDocumentPosition(i2);
95986
+ return n & Node.DOCUMENT_POSITION_FOLLOWING ? -1 : n & Node.DOCUMENT_POSITION_PRECEDING ? 1 : 0;
95999
95987
  });
96000
95988
  }
96001
- function d$1(e2, r2, n2) {
95989
+ function d$1(e2, r2, n) {
96002
95990
  let o2 = s$4(r2);
96003
95991
  useEffect(() => {
96004
95992
  function t2(u2) {
96005
95993
  o2.current(u2);
96006
95994
  }
96007
- return document.addEventListener(e2, t2, n2), () => document.removeEventListener(e2, t2, n2);
96008
- }, [e2, n2]);
95995
+ return document.addEventListener(e2, t2, n), () => document.removeEventListener(e2, t2, n);
95996
+ }, [e2, n]);
96009
95997
  }
96010
95998
  function L(m2, E, c2 = true) {
96011
95999
  let i2 = useRef(false);
@@ -96019,16 +96007,16 @@ function L(m2, E, c2 = true) {
96019
96007
  return;
96020
96008
  let l2 = function r2(t2) {
96021
96009
  return typeof t2 == "function" ? r2(t2()) : Array.isArray(t2) || t2 instanceof Set ? t2 : [t2];
96022
- }(m2), n2 = o2(e2);
96023
- if (n2 !== null && !!n2.getRootNode().contains(n2)) {
96010
+ }(m2), n = o2(e2);
96011
+ if (n !== null && !!n.getRootNode().contains(n)) {
96024
96012
  for (let r2 of l2) {
96025
96013
  if (r2 === null)
96026
96014
  continue;
96027
96015
  let t2 = r2 instanceof HTMLElement ? r2 : r2.current;
96028
- if (t2 != null && t2.contains(n2) || e2.composed && e2.composedPath().includes(t2))
96016
+ if (t2 != null && t2.contains(n) || e2.composed && e2.composedPath().includes(t2))
96029
96017
  return;
96030
96018
  }
96031
- return !h$2(n2, F$4.Loose) && n2.tabIndex !== -1 && e2.preventDefault(), E(e2, n2);
96019
+ return !h$2(n, F$4.Loose) && n.tabIndex !== -1 && e2.preventDefault(), E(e2, n);
96032
96020
  }
96033
96021
  }
96034
96022
  let u2 = useRef(null);
@@ -96040,29 +96028,29 @@ function L(m2, E, c2 = true) {
96040
96028
  }, true), d$1("blur", (e2) => f2(e2, () => window.document.activeElement instanceof HTMLIFrameElement ? window.document.activeElement : null), true);
96041
96029
  }
96042
96030
  function i$1(t2) {
96043
- var n2;
96031
+ var n;
96044
96032
  if (t2.type)
96045
96033
  return t2.type;
96046
- let e2 = (n2 = t2.as) != null ? n2 : "button";
96034
+ let e2 = (n = t2.as) != null ? n : "button";
96047
96035
  if (typeof e2 == "string" && e2.toLowerCase() === "button")
96048
96036
  return "button";
96049
96037
  }
96050
96038
  function s$3(t2, e2) {
96051
- let [n2, u2] = useState(() => i$1(t2));
96039
+ let [n, u2] = useState(() => i$1(t2));
96052
96040
  return s$5(() => {
96053
96041
  u2(i$1(t2));
96054
96042
  }, [t2.type, t2.as]), s$5(() => {
96055
- n2 || !e2.current || e2.current instanceof HTMLButtonElement && !e2.current.hasAttribute("type") && u2("button");
96056
- }, [n2, e2]), n2;
96043
+ n || !e2.current || e2.current instanceof HTMLButtonElement && !e2.current.hasAttribute("type") && u2("button");
96044
+ }, [n, e2]), n;
96057
96045
  }
96058
96046
  let u$3 = Symbol();
96059
96047
  function y(...t2) {
96060
- let n2 = useRef(t2);
96048
+ let n = useRef(t2);
96061
96049
  useEffect(() => {
96062
- n2.current = t2;
96050
+ n.current = t2;
96063
96051
  }, [t2]);
96064
96052
  let c2 = o$2((e2) => {
96065
- for (let o2 of n2.current)
96053
+ for (let o2 of n.current)
96066
96054
  o2 != null && (typeof o2 == "function" ? o2(e2) : o2.current = e2);
96067
96055
  });
96068
96056
  return t2.every((e2) => e2 == null || (e2 == null ? void 0 : e2[u$3])) ? void 0 : c2;
@@ -96071,26 +96059,26 @@ function f$3(r2) {
96071
96059
  throw new Error("Unexpected object: " + r2);
96072
96060
  }
96073
96061
  var a$1 = ((e2) => (e2[e2.First = 0] = "First", e2[e2.Previous = 1] = "Previous", e2[e2.Next = 2] = "Next", e2[e2.Last = 3] = "Last", e2[e2.Specific = 4] = "Specific", e2[e2.Nothing = 5] = "Nothing", e2))(a$1 || {});
96074
- function x(r2, n2) {
96075
- let t2 = n2.resolveItems();
96062
+ function x(r2, n) {
96063
+ let t2 = n.resolveItems();
96076
96064
  if (t2.length <= 0)
96077
96065
  return null;
96078
- let l2 = n2.resolveActiveIndex(), s2 = l2 != null ? l2 : -1, d2 = (() => {
96066
+ let l2 = n.resolveActiveIndex(), s2 = l2 != null ? l2 : -1, d2 = (() => {
96079
96067
  switch (r2.focus) {
96080
96068
  case 0:
96081
- return t2.findIndex((e2) => !n2.resolveDisabled(e2));
96069
+ return t2.findIndex((e2) => !n.resolveDisabled(e2));
96082
96070
  case 1: {
96083
- let e2 = t2.slice().reverse().findIndex((i2, c2, u2) => s2 !== -1 && u2.length - c2 - 1 >= s2 ? false : !n2.resolveDisabled(i2));
96071
+ let e2 = t2.slice().reverse().findIndex((i2, c2, u2) => s2 !== -1 && u2.length - c2 - 1 >= s2 ? false : !n.resolveDisabled(i2));
96084
96072
  return e2 === -1 ? e2 : t2.length - 1 - e2;
96085
96073
  }
96086
96074
  case 2:
96087
- return t2.findIndex((e2, i2) => i2 <= s2 ? false : !n2.resolveDisabled(e2));
96075
+ return t2.findIndex((e2, i2) => i2 <= s2 ? false : !n.resolveDisabled(e2));
96088
96076
  case 3: {
96089
- let e2 = t2.slice().reverse().findIndex((i2) => !n2.resolveDisabled(i2));
96077
+ let e2 = t2.slice().reverse().findIndex((i2) => !n.resolveDisabled(i2));
96090
96078
  return e2 === -1 ? e2 : t2.length - 1 - e2;
96091
96079
  }
96092
96080
  case 4:
96093
- return t2.findIndex((e2) => n2.resolveId(e2) === r2.id);
96081
+ return t2.findIndex((e2) => n.resolveId(e2) === r2.id);
96094
96082
  case 5:
96095
96083
  return null;
96096
96084
  default:
@@ -96100,9 +96088,9 @@ function x(r2, n2) {
96100
96088
  return d2 === -1 ? l2 : d2;
96101
96089
  }
96102
96090
  var S$1 = ((a2) => (a2[a2.None = 0] = "None", a2[a2.RenderStrategy = 1] = "RenderStrategy", a2[a2.Static = 2] = "Static", a2))(S$1 || {}), j = ((e2) => (e2[e2.Unmount = 0] = "Unmount", e2[e2.Hidden = 1] = "Hidden", e2))(j || {});
96103
- function $({ ourProps: r2, theirProps: t2, slot: e2, defaultTag: a2, features: o2, visible: n2 = true, name: l2 }) {
96091
+ function $({ ourProps: r2, theirProps: t2, slot: e2, defaultTag: a2, features: o2, visible: n = true, name: l2 }) {
96104
96092
  let s2 = T$1(t2, r2);
96105
- if (n2)
96093
+ if (n)
96106
96094
  return p$2(s2, e2, a2, l2);
96107
96095
  let u2 = o2 != null ? o2 : 0;
96108
96096
  if (u2 & 2) {
@@ -96121,7 +96109,7 @@ function $({ ourProps: r2, theirProps: t2, slot: e2, defaultTag: a2, features: o
96121
96109
  return p$2(s2, e2, a2, l2);
96122
96110
  }
96123
96111
  function p$2(r2, t2 = {}, e2, a2) {
96124
- let { as: o2 = e2, children: n2, refName: l2 = "ref", ...s2 } = m(r2, ["unmount", "static"]), u2 = r2.ref !== void 0 ? { [l2]: r2.ref } : {}, i2 = typeof n2 == "function" ? n2(t2) : n2;
96112
+ let { as: o2 = e2, children: n, refName: l2 = "ref", ...s2 } = m(r2, ["unmount", "static"]), u2 = r2.ref !== void 0 ? { [l2]: r2.ref } : {}, i2 = typeof n == "function" ? n(t2) : n;
96125
96113
  s2.className && typeof s2.className == "function" && (s2.className = s2.className(t2));
96126
96114
  let d2 = {};
96127
96115
  if (t2) {
@@ -96153,17 +96141,17 @@ function T$1(...r2) {
96153
96141
  return r2[0];
96154
96142
  let t2 = {}, e2 = {};
96155
96143
  for (let o2 of r2)
96156
- for (let n2 in o2)
96157
- n2.startsWith("on") && typeof o2[n2] == "function" ? (e2[n2] != null || (e2[n2] = []), e2[n2].push(o2[n2])) : t2[n2] = o2[n2];
96144
+ for (let n in o2)
96145
+ n.startsWith("on") && typeof o2[n] == "function" ? (e2[n] != null || (e2[n] = []), e2[n].push(o2[n])) : t2[n] = o2[n];
96158
96146
  if (t2.disabled || t2["aria-disabled"])
96159
96147
  return Object.assign(t2, Object.fromEntries(Object.keys(e2).map((o2) => [o2, void 0])));
96160
96148
  for (let o2 in e2)
96161
- Object.assign(t2, { [o2](n2, ...l2) {
96149
+ Object.assign(t2, { [o2](n, ...l2) {
96162
96150
  let s2 = e2[o2];
96163
96151
  for (let u2 of s2) {
96164
- if ((n2 instanceof Event || (n2 == null ? void 0 : n2.nativeEvent) instanceof Event) && n2.defaultPrevented)
96152
+ if ((n instanceof Event || (n == null ? void 0 : n.nativeEvent) instanceof Event) && n.defaultPrevented)
96165
96153
  return;
96166
- u2(n2, ...l2);
96154
+ u2(n, ...l2);
96167
96155
  }
96168
96156
  } });
96169
96157
  return t2;
@@ -96184,17 +96172,17 @@ function m(r2, t2 = []) {
96184
96172
  a2 in e2 && delete e2[a2];
96185
96173
  return e2;
96186
96174
  }
96187
- function r(n2) {
96188
- let e2 = n2.parentElement, l2 = null;
96175
+ function r(n) {
96176
+ let e2 = n.parentElement, l2 = null;
96189
96177
  for (; e2 && !(e2 instanceof HTMLFieldSetElement); )
96190
96178
  e2 instanceof HTMLLegendElement && (l2 = e2), e2 = e2.parentElement;
96191
96179
  let t2 = (e2 == null ? void 0 : e2.getAttribute("disabled")) === "";
96192
96180
  return t2 && i(l2) ? false : t2;
96193
96181
  }
96194
- function i(n2) {
96195
- if (!n2)
96182
+ function i(n) {
96183
+ if (!n)
96196
96184
  return false;
96197
- let e2 = n2.previousElementSibling;
96185
+ let e2 = n.previousElementSibling;
96198
96186
  for (; e2 !== null; ) {
96199
96187
  if (e2 instanceof HTMLLegendElement)
96200
96188
  return false;
@@ -96202,24 +96190,24 @@ function i(n2) {
96202
96190
  }
96203
96191
  return true;
96204
96192
  }
96205
- function e$1(n2 = {}, r2 = null, t2 = []) {
96206
- for (let [i2, o2] of Object.entries(n2))
96193
+ function e$1(n = {}, r2 = null, t2 = []) {
96194
+ for (let [i2, o2] of Object.entries(n))
96207
96195
  f$2(t2, s$2(r2, i2), o2);
96208
96196
  return t2;
96209
96197
  }
96210
- function s$2(n2, r2) {
96211
- return n2 ? n2 + "[" + r2 + "]" : r2;
96198
+ function s$2(n, r2) {
96199
+ return n ? n + "[" + r2 + "]" : r2;
96212
96200
  }
96213
- function f$2(n2, r2, t2) {
96201
+ function f$2(n, r2, t2) {
96214
96202
  if (Array.isArray(t2))
96215
96203
  for (let [i2, o2] of t2.entries())
96216
- f$2(n2, s$2(r2, i2.toString()), o2);
96204
+ f$2(n, s$2(r2, i2.toString()), o2);
96217
96205
  else
96218
- t2 instanceof Date ? n2.push([r2, t2.toISOString()]) : typeof t2 == "boolean" ? n2.push([r2, t2 ? "1" : "0"]) : typeof t2 == "string" ? n2.push([r2, t2]) : typeof t2 == "number" ? n2.push([r2, `${t2}`]) : t2 == null ? n2.push([r2, ""]) : e$1(t2, r2, n2);
96206
+ t2 instanceof Date ? n.push([r2, t2.toISOString()]) : typeof t2 == "boolean" ? n.push([r2, t2 ? "1" : "0"]) : typeof t2 == "string" ? n.push([r2, t2]) : typeof t2 == "number" ? n.push([r2, `${t2}`]) : t2 == null ? n.push([r2, ""]) : e$1(t2, r2, n);
96219
96207
  }
96220
- function p$1(n2) {
96208
+ function p$1(n) {
96221
96209
  var t2;
96222
- let r2 = (t2 = n2 == null ? void 0 : n2.form) != null ? t2 : n2.closest("form");
96210
+ let r2 = (t2 = n == null ? void 0 : n.form) != null ? t2 : n.closest("form");
96223
96211
  if (!!r2) {
96224
96212
  for (let i2 of r2.elements)
96225
96213
  if (i2.tagName === "INPUT" && i2.type === "submit" || i2.tagName === "BUTTON" && i2.type === "submit" || i2.nodeName === "INPUT" && i2.type === "image") {
@@ -96240,13 +96228,13 @@ var p = ((e2) => (e2[e2.Open = 0] = "Open", e2[e2.Closed = 1] = "Closed", e2))(p
96240
96228
  function s() {
96241
96229
  return useContext(o$1);
96242
96230
  }
96243
- function C({ value: t2, children: n2 }) {
96244
- return React__default.createElement(o$1.Provider, { value: t2 }, n2);
96231
+ function C({ value: t2, children: n }) {
96232
+ return React__default.createElement(o$1.Provider, { value: t2 }, n);
96245
96233
  }
96246
96234
  var o = ((r2) => (r2.Space = " ", r2.Enter = "Enter", r2.Escape = "Escape", r2.Backspace = "Backspace", r2.Delete = "Delete", r2.ArrowLeft = "ArrowLeft", r2.ArrowUp = "ArrowUp", r2.ArrowRight = "ArrowRight", r2.ArrowDown = "ArrowDown", r2.Home = "Home", r2.End = "End", r2.PageUp = "PageUp", r2.PageDown = "PageDown", r2.Tab = "Tab", r2))(o || {});
96247
96235
  function T(l2, r2, c2) {
96248
96236
  let [i2, s2] = useState(c2), e2 = l2 !== void 0, t2 = useRef(e2), u2 = useRef(false), d2 = useRef(false);
96249
- return e2 && !t2.current && !u2.current ? (u2.current = true, t2.current = e2, console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")) : !e2 && t2.current && !d2.current && (d2.current = true, t2.current = e2, console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")), [e2 ? l2 : i2, o$2((n2) => (e2 || s2(n2), r2 == null ? void 0 : r2(n2)))];
96237
+ return e2 && !t2.current && !u2.current ? (u2.current = true, t2.current = e2, console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")) : !e2 && t2.current && !d2.current && (d2.current = true, t2.current = e2, console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")), [e2 ? l2 : i2, o$2((n) => (e2 || s2(n), r2 == null ? void 0 : r2(n)))];
96250
96238
  }
96251
96239
  function t(e2) {
96252
96240
  return [e2.screenX, e2.screenY];
@@ -96254,8 +96242,8 @@ function t(e2) {
96254
96242
  function u$2() {
96255
96243
  let e2 = useRef([-1, -1]);
96256
96244
  return { wasMoved(r2) {
96257
- let n2 = t(r2);
96258
- return e2.current[0] === n2[0] && e2.current[1] === n2[1] ? false : (e2.current = n2, true);
96245
+ let n = t(r2);
96246
+ return e2.current[0] === n[0] && e2.current[1] === n[1] ? false : (e2.current = n, true);
96259
96247
  }, update(r2) {
96260
96248
  e2.current = t(r2);
96261
96249
  } };
@@ -96268,16 +96256,16 @@ function f$1() {
96268
96256
  }
96269
96257
  let d = createContext$1(null);
96270
96258
  function u$1() {
96271
- let n2 = useContext(d);
96272
- if (n2 === null) {
96259
+ let n = useContext(d);
96260
+ if (n === null) {
96273
96261
  let t2 = new Error("You used a <Description /> component, but it is not inside a relevant parent.");
96274
96262
  throw Error.captureStackTrace && Error.captureStackTrace(t2, u$1), t2;
96275
96263
  }
96276
- return n2;
96264
+ return n;
96277
96265
  }
96278
96266
  function k() {
96279
- let [n2, t2] = useState([]);
96280
- return [n2.length > 0 ? n2.join(" ") : void 0, useMemo(() => function(e2) {
96267
+ let [n, t2] = useState([]);
96268
+ return [n.length > 0 ? n.join(" ") : void 0, useMemo(() => function(e2) {
96281
96269
  let i2 = o$2((r2) => (t2((o2) => [...o2, r2]), () => t2((o2) => {
96282
96270
  let s2 = o2.slice(), p2 = s2.indexOf(r2);
96283
96271
  return p2 !== -1 && s2.splice(p2, 1), s2;
@@ -96291,7 +96279,7 @@ let S = "p", F$2 = C$1(function(t2, c2) {
96291
96279
  let s2 = { ref: o2, ...r2.props, id: i2 };
96292
96280
  return $({ ourProps: s2, theirProps: a2, slot: r2.slot || {}, defaultTag: S, name: r2.name || "Description" });
96293
96281
  });
96294
- var Ue = ((o2) => (o2[o2.Open = 0] = "Open", o2[o2.Closed = 1] = "Closed", o2))(Ue || {}), Be = ((o2) => (o2[o2.Single = 0] = "Single", o2[o2.Multi = 1] = "Multi", o2))(Be || {}), He = ((o2) => (o2[o2.Pointer = 0] = "Pointer", o2[o2.Other = 1] = "Other", o2))(He || {}), Ge = ((n2) => (n2[n2.OpenListbox = 0] = "OpenListbox", n2[n2.CloseListbox = 1] = "CloseListbox", n2[n2.GoToOption = 2] = "GoToOption", n2[n2.Search = 3] = "Search", n2[n2.ClearSearch = 4] = "ClearSearch", n2[n2.RegisterOption = 5] = "RegisterOption", n2[n2.UnregisterOption = 6] = "UnregisterOption", n2[n2.RegisterLabel = 7] = "RegisterLabel", n2))(Ge || {});
96282
+ var Ue = ((o2) => (o2[o2.Open = 0] = "Open", o2[o2.Closed = 1] = "Closed", o2))(Ue || {}), Be = ((o2) => (o2[o2.Single = 0] = "Single", o2[o2.Multi = 1] = "Multi", o2))(Be || {}), He = ((o2) => (o2[o2.Pointer = 0] = "Pointer", o2[o2.Other = 1] = "Other", o2))(He || {}), Ge = ((n) => (n[n.OpenListbox = 0] = "OpenListbox", n[n.CloseListbox = 1] = "CloseListbox", n[n.GoToOption = 2] = "GoToOption", n[n.Search = 3] = "Search", n[n.ClearSearch = 4] = "ClearSearch", n[n.RegisterOption = 5] = "RegisterOption", n[n.UnregisterOption = 6] = "UnregisterOption", n[n.RegisterLabel = 7] = "RegisterLabel", n))(Ge || {});
96295
96283
  function q(e2, r2 = (o2) => o2) {
96296
96284
  let o2 = e2.activeOptionIndex !== null ? e2.options[e2.activeOptionIndex] : null, p2 = A$1(r2(e2.options.slice()), (c2) => c2.dataRef.current.domRef.current), i2 = o2 ? p2.indexOf(o2) : null;
96297
96285
  return i2 === -1 && (i2 = null), { options: p2, activeOptionIndex: i2 };
@@ -96312,9 +96300,9 @@ let je = { [1](e2) {
96312
96300
  }, [3]: (e2, r2) => {
96313
96301
  if (e2.dataRef.current.disabled || e2.listboxState === 1)
96314
96302
  return e2;
96315
- let p2 = e2.searchQuery !== "" ? 0 : 1, i2 = e2.searchQuery + r2.value.toLowerCase(), t2 = (e2.activeOptionIndex !== null ? e2.options.slice(e2.activeOptionIndex + p2).concat(e2.options.slice(0, e2.activeOptionIndex + p2)) : e2.options).find((n2) => {
96303
+ let p2 = e2.searchQuery !== "" ? 0 : 1, i2 = e2.searchQuery + r2.value.toLowerCase(), t2 = (e2.activeOptionIndex !== null ? e2.options.slice(e2.activeOptionIndex + p2).concat(e2.options.slice(0, e2.activeOptionIndex + p2)) : e2.options).find((n) => {
96316
96304
  var T2;
96317
- return !n2.dataRef.current.disabled && ((T2 = n2.dataRef.current.textValue) == null ? void 0 : T2.startsWith(i2));
96305
+ return !n.dataRef.current.disabled && ((T2 = n.dataRef.current.textValue) == null ? void 0 : T2.startsWith(i2));
96318
96306
  }), u2 = t2 ? e2.options.indexOf(t2) : -1;
96319
96307
  return u2 === -1 || u2 === e2.activeOptionIndex ? { ...e2, searchQuery: i2 } : { ...e2, searchQuery: i2, activeOptionIndex: u2, activationTrigger: 1 };
96320
96308
  }, [4](e2) {
@@ -96352,19 +96340,19 @@ function Ke(e2, r2) {
96352
96340
  return u$4(r2.type, je, e2, r2);
96353
96341
  }
96354
96342
  let Ve = Fragment$1, Ne = C$1(function(r2, o2) {
96355
- let { value: p$12, defaultValue: i2, name: c2, onChange: t2, by: u2 = (l2, f2) => l2 === f2, disabled: n2 = false, horizontal: T$12 = false, multiple: g = false, ...A2 } = r2;
96343
+ let { value: p$12, defaultValue: i2, name: c2, onChange: t2, by: u2 = (l2, f2) => l2 === f2, disabled: n = false, horizontal: T$12 = false, multiple: g = false, ...A2 } = r2;
96356
96344
  const m2 = T$12 ? "horizontal" : "vertical";
96357
96345
  let P2 = y(o2), [y$1 = g ? [] : void 0, S2] = T(p$12, t2, i2), [h3, s2] = useReducer(Ke, { dataRef: createRef(), listboxState: 1, options: [], searchQuery: "", labelId: null, activeOptionIndex: null, activationTrigger: 1 }), a2 = useRef({ static: false, hold: false }), x2 = useRef(null), D2 = useRef(null), Q = useRef(null), M2 = o$2(typeof u2 == "string" ? (l2, f2) => {
96358
96346
  let v4 = u2;
96359
96347
  return (l2 == null ? void 0 : l2[v4]) === (f2 == null ? void 0 : f2[v4]);
96360
- } : u2), L$12 = useCallback((l2) => u$4(d2.mode, { [1]: () => y$1.some((f2) => M2(f2, l2)), [0]: () => M2(y$1, l2) }), [y$1]), d2 = useMemo(() => ({ ...h3, value: y$1, disabled: n2, mode: g ? 1 : 0, orientation: m2, compare: M2, isSelected: L$12, optionsPropsRef: a2, labelRef: x2, buttonRef: D2, optionsRef: Q }), [y$1, n2, g, h3]);
96348
+ } : u2), L$12 = useCallback((l2) => u$4(d2.mode, { [1]: () => y$1.some((f2) => M2(f2, l2)), [0]: () => M2(y$1, l2) }), [y$1]), d2 = useMemo(() => ({ ...h3, value: y$1, disabled: n, mode: g ? 1 : 0, orientation: m2, compare: M2, isSelected: L$12, optionsPropsRef: a2, labelRef: x2, buttonRef: D2, optionsRef: Q }), [y$1, n, g, h3]);
96361
96349
  s$5(() => {
96362
96350
  h3.dataRef.current = d2;
96363
96351
  }, [d2]), L([d2.buttonRef, d2.optionsRef], (l2, f2) => {
96364
96352
  var v4;
96365
96353
  s2({ type: 1 }), h$2(f2, F$4.Loose) || (l2.preventDefault(), (v4 = d2.buttonRef.current) == null || v4.focus());
96366
96354
  }, d2.listboxState === 0);
96367
- let G = useMemo(() => ({ open: d2.listboxState === 0, disabled: n2, value: y$1 }), [d2, n2, y$1]), ie2 = o$2((l2) => {
96355
+ let G = useMemo(() => ({ open: d2.listboxState === 0, disabled: n, value: y$1 }), [d2, n, y$1]), ie2 = o$2((l2) => {
96368
96356
  let f2 = d2.options.find((v4) => v4.id === l2);
96369
96357
  !f2 || k2(f2.dataRef.current.value);
96370
96358
  }), re2 = o$2(() => {
@@ -96388,7 +96376,7 @@ let Ve = Fragment$1, Ne = C$1(function(r2, o2) {
96388
96376
  } : void 0, ...F$3({ key: l2, as: "input", type: "hidden", hidden: true, readOnly: true, name: l2, value: f2 }) })), $({ ourProps: be2, theirProps: A2, slot: G, defaultTag: Ve, name: "Listbox" }))));
96389
96377
  }), We = "button", Qe = C$1(function(r$12, o$12) {
96390
96378
  var h3;
96391
- let p2 = I$1(), { id: i2 = `headlessui-listbox-button-${p2}`, ...c2 } = r$12, t2 = H("Listbox.Button"), u2 = B("Listbox.Button"), n2 = y(t2.buttonRef, o$12), T2 = p$3(), g = o$2((s2) => {
96379
+ let p2 = I$1(), { id: i2 = `headlessui-listbox-button-${p2}`, ...c2 } = r$12, t2 = H("Listbox.Button"), u2 = B("Listbox.Button"), n = y(t2.buttonRef, o$12), T2 = p$3(), g = o$2((s2) => {
96392
96380
  switch (s2.key) {
96393
96381
  case o.Space:
96394
96382
  case o.Enter:
@@ -96419,19 +96407,19 @@ let Ve = Fragment$1, Ne = C$1(function(r2, o2) {
96419
96407
  }), P2 = i$2(() => {
96420
96408
  if (!!t2.labelId)
96421
96409
  return [t2.labelId, i2].join(" ");
96422
- }, [t2.labelId, i2]), y$1 = useMemo(() => ({ open: t2.listboxState === 0, disabled: t2.disabled, value: t2.value }), [t2]), S2 = { ref: n2, id: i2, type: s$3(r$12, t2.buttonRef), "aria-haspopup": "listbox", "aria-controls": (h3 = t2.optionsRef.current) == null ? void 0 : h3.id, "aria-expanded": t2.disabled ? void 0 : t2.listboxState === 0, "aria-labelledby": P2, disabled: t2.disabled, onKeyDown: g, onKeyUp: A2, onClick: m2 };
96410
+ }, [t2.labelId, i2]), y$1 = useMemo(() => ({ open: t2.listboxState === 0, disabled: t2.disabled, value: t2.value }), [t2]), S2 = { ref: n, id: i2, type: s$3(r$12, t2.buttonRef), "aria-haspopup": "listbox", "aria-controls": (h3 = t2.optionsRef.current) == null ? void 0 : h3.id, "aria-expanded": t2.disabled ? void 0 : t2.listboxState === 0, "aria-labelledby": P2, disabled: t2.disabled, onKeyDown: g, onKeyUp: A2, onClick: m2 };
96423
96411
  return $({ ourProps: S2, theirProps: c2, slot: y$1, defaultTag: We, name: "Listbox.Button" });
96424
96412
  }), $e = "label", ze = C$1(function(r2, o2) {
96425
- let p2 = I$1(), { id: i2 = `headlessui-listbox-label-${p2}`, ...c2 } = r2, t2 = H("Listbox.Label"), u2 = B("Listbox.Label"), n2 = y(t2.labelRef, o2);
96413
+ let p2 = I$1(), { id: i2 = `headlessui-listbox-label-${p2}`, ...c2 } = r2, t2 = H("Listbox.Label"), u2 = B("Listbox.Label"), n = y(t2.labelRef, o2);
96426
96414
  s$5(() => u2.registerLabel(i2), [i2]);
96427
96415
  let T2 = o$2(() => {
96428
96416
  var m2;
96429
96417
  return (m2 = t2.buttonRef.current) == null ? void 0 : m2.focus({ preventScroll: true });
96430
96418
  }), g = useMemo(() => ({ open: t2.listboxState === 0, disabled: t2.disabled }), [t2]);
96431
- return $({ ourProps: { ref: n2, id: i2, onClick: T2 }, theirProps: c2, slot: g, defaultTag: $e, name: "Listbox.Label" });
96419
+ return $({ ourProps: { ref: n, id: i2, onClick: T2 }, theirProps: c2, slot: g, defaultTag: $e, name: "Listbox.Label" });
96432
96420
  }), qe = "ul", Xe = S$1.RenderStrategy | S$1.Static, Je$1 = C$1(function(r2, o$12) {
96433
96421
  var s$12;
96434
- let p$12 = I$1(), { id: i2 = `headlessui-listbox-options-${p$12}`, ...c2 } = r2, t2 = H("Listbox.Options"), u2 = B("Listbox.Options"), n2 = y(t2.optionsRef, o$12), T2 = p$3(), g = p$3(), A2 = s(), m2 = (() => A2 !== null ? A2 === p.Open : t2.listboxState === 0)();
96422
+ let p$12 = I$1(), { id: i2 = `headlessui-listbox-options-${p$12}`, ...c2 } = r2, t2 = H("Listbox.Options"), u2 = B("Listbox.Options"), n = y(t2.optionsRef, o$12), T2 = p$3(), g = p$3(), A2 = s(), m2 = (() => A2 !== null ? A2 === p.Open : t2.listboxState === 0)();
96435
96423
  useEffect(() => {
96436
96424
  var x2;
96437
96425
  let a2 = t2.optionsRef.current;
@@ -96477,28 +96465,28 @@ let Ve = Fragment$1, Ne = C$1(function(r2, o2) {
96477
96465
  }), y$1 = i$2(() => {
96478
96466
  var a2, x2, D2;
96479
96467
  return (D2 = (a2 = t2.labelRef.current) == null ? void 0 : a2.id) != null ? D2 : (x2 = t2.buttonRef.current) == null ? void 0 : x2.id;
96480
- }, [t2.labelRef.current, t2.buttonRef.current]), S2 = useMemo(() => ({ open: t2.listboxState === 0 }), [t2]), h3 = { "aria-activedescendant": t2.activeOptionIndex === null || (s$12 = t2.options[t2.activeOptionIndex]) == null ? void 0 : s$12.id, "aria-multiselectable": t2.mode === 1 ? true : void 0, "aria-labelledby": y$1, "aria-orientation": t2.orientation, id: i2, onKeyDown: P2, role: "listbox", tabIndex: 0, ref: n2 };
96468
+ }, [t2.labelRef.current, t2.buttonRef.current]), S2 = useMemo(() => ({ open: t2.listboxState === 0 }), [t2]), h3 = { "aria-activedescendant": t2.activeOptionIndex === null || (s$12 = t2.options[t2.activeOptionIndex]) == null ? void 0 : s$12.id, "aria-multiselectable": t2.mode === 1 ? true : void 0, "aria-labelledby": y$1, "aria-orientation": t2.orientation, id: i2, onKeyDown: P2, role: "listbox", tabIndex: 0, ref: n };
96481
96469
  return $({ ourProps: h3, theirProps: c2, slot: S2, defaultTag: qe, features: Xe, visible: m2, name: "Listbox.Options" });
96482
96470
  }), Ye = "li", Ze = C$1(function(r2, o2) {
96483
- let p2 = I$1(), { id: i2 = `headlessui-listbox-option-${p2}`, disabled: c2 = false, value: t2, ...u2 } = r2, n2 = H("Listbox.Option"), T2 = B("Listbox.Option"), g = n2.activeOptionIndex !== null ? n2.options[n2.activeOptionIndex].id === i2 : false, A2 = n2.isSelected(t2), m2 = useRef(null), P2 = s$4({ disabled: c2, value: t2, domRef: m2, get textValue() {
96471
+ let p2 = I$1(), { id: i2 = `headlessui-listbox-option-${p2}`, disabled: c2 = false, value: t2, ...u2 } = r2, n = H("Listbox.Option"), T2 = B("Listbox.Option"), g = n.activeOptionIndex !== null ? n.options[n.activeOptionIndex].id === i2 : false, A2 = n.isSelected(t2), m2 = useRef(null), P2 = s$4({ disabled: c2, value: t2, domRef: m2, get textValue() {
96484
96472
  var L2, d2;
96485
96473
  return (d2 = (L2 = m2.current) == null ? void 0 : L2.textContent) == null ? void 0 : d2.toLowerCase();
96486
96474
  } }), y$1 = y(o2, m2);
96487
96475
  s$5(() => {
96488
- if (n2.listboxState !== 0 || !g || n2.activationTrigger === 0)
96476
+ if (n.listboxState !== 0 || !g || n.activationTrigger === 0)
96489
96477
  return;
96490
96478
  let L2 = m$1();
96491
96479
  return L2.requestAnimationFrame(() => {
96492
96480
  var d2, G;
96493
96481
  (G = (d2 = m2.current) == null ? void 0 : d2.scrollIntoView) == null || G.call(d2, { block: "nearest" });
96494
96482
  }), L2.dispose;
96495
- }, [m2, g, n2.listboxState, n2.activationTrigger, n2.activeOptionIndex]), s$5(() => T2.registerOption(i2, P2), [P2, i2]);
96483
+ }, [m2, g, n.listboxState, n.activationTrigger, n.activeOptionIndex]), s$5(() => T2.registerOption(i2, P2), [P2, i2]);
96496
96484
  let S2 = o$2((L2) => {
96497
96485
  if (c2)
96498
96486
  return L2.preventDefault();
96499
- T2.onChange(t2), n2.mode === 0 && (T2.closeListbox(), m$1().nextFrame(() => {
96487
+ T2.onChange(t2), n.mode === 0 && (T2.closeListbox(), m$1().nextFrame(() => {
96500
96488
  var d2;
96501
- return (d2 = n2.buttonRef.current) == null ? void 0 : d2.focus({ preventScroll: true });
96489
+ return (d2 = n.buttonRef.current) == null ? void 0 : d2.focus({ preventScroll: true });
96502
96490
  }));
96503
96491
  }), h3 = o$2(() => {
96504
96492
  if (c2)
@@ -96513,16 +96501,16 @@ let Ve = Fragment$1, Ne = C$1(function(r2, o2) {
96513
96501
  }), Mt = Object.assign(Ne, { Button: Qe, Label: ze, Options: Je$1, Option: Ze });
96514
96502
  let u = createContext$1(null);
96515
96503
  function c() {
96516
- let n2 = useContext(u);
96517
- if (n2 === null) {
96504
+ let n = useContext(u);
96505
+ if (n === null) {
96518
96506
  let r2 = new Error("You used a <Label /> component, but it is not inside a relevant parent.");
96519
96507
  throw Error.captureStackTrace && Error.captureStackTrace(r2, c), r2;
96520
96508
  }
96521
- return n2;
96509
+ return n;
96522
96510
  }
96523
96511
  function M$2() {
96524
- let [n2, r2] = useState([]);
96525
- return [n2.length > 0 ? n2.join(" ") : void 0, useMemo(() => function(e2) {
96512
+ let [n, r2] = useState([]);
96513
+ return [n.length > 0 ? n.join(" ") : void 0, useMemo(() => function(e2) {
96526
96514
  let o2 = o$2((l2) => (r2((t2) => [...t2, l2]), () => r2((t2) => {
96527
96515
  let i2 = t2.slice(), a2 = i2.indexOf(l2);
96528
96516
  return a2 !== -1 && i2.splice(a2, 1), i2;
@@ -96546,20 +96534,20 @@ function Z(y2) {
96546
96534
  } } }, React__default.createElement(b.Provider, { value: p2 }, $({ ourProps: d2, theirProps: h3, defaultTag: Y, name: "Switch.Group" }))));
96547
96535
  }
96548
96536
  let ee = "button", te = C$1(function(t2, a2) {
96549
- let s2 = I$1(), { id: m2 = `headlessui-switch-${s2}`, checked: c2, defaultChecked: o$12 = false, onChange: p2, name: d2, value: h3, ...v4 } = t2, r$12 = useContext(b), u2 = useRef(null), k2 = y(u2, a2, r$12 === null ? null : r$12.setSwitch), [n2, i2] = T(c2, p2, o$12), T$12 = o$2(() => i2 == null ? void 0 : i2(!n2)), g = o$2((e2) => {
96537
+ let s2 = I$1(), { id: m2 = `headlessui-switch-${s2}`, checked: c2, defaultChecked: o$12 = false, onChange: p2, name: d2, value: h3, ...v4 } = t2, r$12 = useContext(b), u2 = useRef(null), k2 = y(u2, a2, r$12 === null ? null : r$12.setSwitch), [n, i2] = T(c2, p2, o$12), T$12 = o$2(() => i2 == null ? void 0 : i2(!n)), g = o$2((e2) => {
96550
96538
  if (r(e2.currentTarget))
96551
96539
  return e2.preventDefault();
96552
96540
  e2.preventDefault(), T$12();
96553
96541
  }), C2 = o$2((e2) => {
96554
96542
  e2.key === o.Space ? (e2.preventDefault(), T$12()) : e2.key === o.Enter && p$1(e2.currentTarget);
96555
- }), D2 = o$2((e2) => e2.preventDefault()), L2 = useMemo(() => ({ checked: n2 }), [n2]), R = { id: m2, ref: k2, role: "switch", type: s$3(t2, u2), tabIndex: 0, "aria-checked": n2, "aria-labelledby": r$12 == null ? void 0 : r$12.labelledby, "aria-describedby": r$12 == null ? void 0 : r$12.describedby, onClick: g, onKeyUp: C2, onKeyPress: D2 }, A2 = p$3();
96543
+ }), D2 = o$2((e2) => e2.preventDefault()), L2 = useMemo(() => ({ checked: n }), [n]), R = { id: m2, ref: k2, role: "switch", type: s$3(t2, u2), tabIndex: 0, "aria-checked": n, "aria-labelledby": r$12 == null ? void 0 : r$12.labelledby, "aria-describedby": r$12 == null ? void 0 : r$12.describedby, onClick: g, onKeyUp: C2, onKeyPress: D2 }, A2 = p$3();
96556
96544
  return useEffect(() => {
96557
96545
  var E;
96558
96546
  let e2 = (E = u2.current) == null ? void 0 : E.closest("form");
96559
96547
  !e2 || o$12 !== void 0 && A2.addEventListener(e2, "reset", () => {
96560
96548
  i2(o$12);
96561
96549
  });
96562
- }, [u2, i2]), React__default.createElement(React__default.Fragment, null, d2 != null && n2 && React__default.createElement(h$1, { features: s$1.Hidden, ...F$3({ as: "input", type: "checkbox", hidden: true, readOnly: true, checked: n2, name: d2, value: h3 }) }), $({ ourProps: R, theirProps: v4, slot: L2, defaultTag: ee, name: "Switch" }));
96550
+ }, [u2, i2]), React__default.createElement(React__default.Fragment, null, d2 != null && n && React__default.createElement(h$1, { features: s$1.Hidden, ...F$3({ as: "input", type: "checkbox", hidden: true, readOnly: true, checked: n, name: d2, value: h3 }) }), $({ ourProps: R, theirProps: v4, slot: L2, defaultTag: ee, name: "Switch" }));
96563
96551
  }), Pe$1 = Object.assign(te, { Group: Z, Label: F$1, Description: F$2 });
96564
96552
  function l(r2) {
96565
96553
  let e2 = { called: false };
@@ -96575,23 +96563,23 @@ function f(t2, ...e2) {
96575
96563
  t2 && e2.length > 0 && t2.classList.remove(...e2);
96576
96564
  }
96577
96565
  function F(t2, e2) {
96578
- let n2 = m$1();
96566
+ let n = m$1();
96579
96567
  if (!t2)
96580
- return n2.dispose;
96568
+ return n.dispose;
96581
96569
  let { transitionDuration: a2, transitionDelay: i2 } = getComputedStyle(t2), [m2, d2] = [a2, i2].map((o2) => {
96582
96570
  let [r2 = 0] = o2.split(",").filter(Boolean).map((l2) => l2.includes("ms") ? parseFloat(l2) : parseFloat(l2) * 1e3).sort((l2, g) => g - l2);
96583
96571
  return r2;
96584
96572
  });
96585
96573
  if (m2 + d2 !== 0) {
96586
- let o2 = n2.addEventListener(t2, "transitionend", (r2) => {
96574
+ let o2 = n.addEventListener(t2, "transitionend", (r2) => {
96587
96575
  r2.target === r2.currentTarget && (e2(), o2());
96588
96576
  });
96589
96577
  } else
96590
96578
  e2();
96591
- return n2.add(() => e2()), n2.dispose;
96579
+ return n.add(() => e2()), n.dispose;
96592
96580
  }
96593
- function M$1(t2, e2, n2, a2) {
96594
- let i2 = n2 ? "enter" : "leave", m2 = m$1(), d2 = a2 !== void 0 ? l(a2) : () => {
96581
+ function M$1(t2, e2, n, a2) {
96582
+ let i2 = n ? "enter" : "leave", m2 = m$1(), d2 = a2 !== void 0 ? l(a2) : () => {
96595
96583
  };
96596
96584
  i2 === "enter" && (t2.removeAttribute("hidden"), t2.style.display = "");
96597
96585
  let u2 = u$4(i2, { enter: () => e2.enter, leave: () => e2.leave }), o2 = u$4(i2, { enter: () => e2.enterTo, leave: () => e2.leaveTo }), r2 = u$4(i2, { enter: () => e2.enterFrom, leave: () => e2.leaveFrom });
@@ -96604,15 +96592,15 @@ function D({ container: i2, direction: t2, classes: o2, onStart: s2, onStop: u2
96604
96592
  s$5(() => {
96605
96593
  let e2 = m$1();
96606
96594
  c2.add(e2.dispose);
96607
- let n2 = i2.current;
96608
- if (!!n2 && r2.current !== "idle" && !!a2.current)
96609
- return e2.dispose(), s2.current(r2.current), e2.add(M$1(n2, o2.current, r2.current === "enter", () => {
96595
+ let n = i2.current;
96596
+ if (!!n && r2.current !== "idle" && !!a2.current)
96597
+ return e2.dispose(), s2.current(r2.current), e2.add(M$1(n, o2.current, r2.current === "enter", () => {
96610
96598
  e2.dispose(), u2.current(r2.current);
96611
96599
  })), e2.dispose;
96612
96600
  }, [t2]);
96613
96601
  }
96614
- function e(...n2) {
96615
- return n2.filter(Boolean).join(" ");
96602
+ function e(...n) {
96603
+ return n.filter(Boolean).join(" ");
96616
96604
  }
96617
96605
  function P(i2 = "") {
96618
96606
  return i2.split(" ").filter((e2) => e2.trim().length > 1);
@@ -96638,19 +96626,19 @@ function I(i2) {
96638
96626
  return "children" in i2 ? I(i2.children) : i2.current.filter(({ el: e2 }) => e2.current !== null).filter(({ state: e2 }) => e2 === "visible").length > 0;
96639
96627
  }
96640
96628
  function ne(i2, e2) {
96641
- let s2 = s$4(i2), n2 = useRef([]), m2 = f$1(), R = p$3(), b2 = o$2((l2, r2 = j.Hidden) => {
96642
- let t2 = n2.current.findIndex(({ el: o2 }) => o2 === l2);
96629
+ let s2 = s$4(i2), n = useRef([]), m2 = f$1(), R = p$3(), b2 = o$2((l2, r2 = j.Hidden) => {
96630
+ let t2 = n.current.findIndex(({ el: o2 }) => o2 === l2);
96643
96631
  t2 !== -1 && (u$4(r2, { [j.Unmount]() {
96644
- n2.current.splice(t2, 1);
96632
+ n.current.splice(t2, 1);
96645
96633
  }, [j.Hidden]() {
96646
- n2.current[t2].state = "hidden";
96634
+ n.current[t2].state = "hidden";
96647
96635
  } }), R.microTask(() => {
96648
96636
  var o2;
96649
- !I(n2) && m2.current && ((o2 = s2.current) == null || o2.call(s2));
96637
+ !I(n) && m2.current && ((o2 = s2.current) == null || o2.call(s2));
96650
96638
  }));
96651
96639
  }), E = o$2((l2) => {
96652
- let r2 = n2.current.find(({ el: t2 }) => t2 === l2);
96653
- return r2 ? r2.state !== "visible" && (r2.state = "visible") : n2.current.push({ el: l2, state: "visible" }), () => b2(l2, j.Unmount);
96640
+ let r2 = n.current.find(({ el: t2 }) => t2 === l2);
96641
+ return r2 ? r2.state !== "visible" && (r2.state = "visible") : n.current.push({ el: l2, state: "visible" }), () => b2(l2, j.Unmount);
96654
96642
  }), S2 = useRef([]), u2 = useRef(Promise.resolve()), p2 = useRef({ enter: [], leave: [], idle: [] }), d2 = o$2((l2, r2, t2) => {
96655
96643
  S2.current.splice(0), e2 && (e2.chains.current[r2] = e2.chains.current[r2].filter(([o2]) => o2 !== l2)), e2 == null || e2.chains.current[r2].push([l2, new Promise((o2) => {
96656
96644
  S2.current.push(o2);
@@ -96663,7 +96651,7 @@ function ne(i2, e2) {
96663
96651
  (o2 = S2.current.shift()) == null || o2();
96664
96652
  }).then(() => t2(r2));
96665
96653
  });
96666
- return useMemo(() => ({ children: n2, register: E, unregister: b2, onStart: d2, onStop: v4, wait: u2, chains: p2 }), [E, b2, n2, d2, v4, p2, u2]);
96654
+ return useMemo(() => ({ children: n, register: E, unregister: b2, onStart: d2, onStop: v4, wait: u2, chains: p2 }), [E, b2, n, d2, v4, p2, u2]);
96667
96655
  }
96668
96656
  function Ee() {
96669
96657
  }
@@ -96671,8 +96659,8 @@ let Se = ["beforeEnter", "afterEnter", "beforeLeave", "afterLeave"];
96671
96659
  function re(i2) {
96672
96660
  var s2;
96673
96661
  let e2 = {};
96674
- for (let n2 of Se)
96675
- e2[n2] = (s2 = i2[n2]) != null ? s2 : Ee;
96662
+ for (let n of Se)
96663
+ e2[n] = (s2 = i2[n]) != null ? s2 : Ee;
96676
96664
  return e2;
96677
96665
  }
96678
96666
  function xe(i2) {
@@ -96682,7 +96670,7 @@ function xe(i2) {
96682
96670
  }, [i2]), e2;
96683
96671
  }
96684
96672
  let Pe = "div", ie = S$1.RenderStrategy, oe = C$1(function(e$12, s2) {
96685
- let { beforeEnter: n2, afterEnter: m2, beforeLeave: R, afterLeave: b2, enter: E, enterFrom: S2, enterTo: u2, entered: p$12, leave: d2, leaveFrom: v4, leaveTo: l2, ...r2 } = e$12, t2 = useRef(null), o2 = y(t2, s2), f2 = r2.unmount ? j.Unmount : j.Hidden, { show: a2, appear: x2, initial: se } = ge(), [h3, _] = useState(a2 ? "visible" : "hidden"), K = be(), { register: D$1, unregister: V } = K, j$1 = useRef(null);
96673
+ let { beforeEnter: n, afterEnter: m2, beforeLeave: R, afterLeave: b2, enter: E, enterFrom: S2, enterTo: u2, entered: p$12, leave: d2, leaveFrom: v4, leaveTo: l2, ...r2 } = e$12, t2 = useRef(null), o2 = y(t2, s2), f2 = r2.unmount ? j.Unmount : j.Hidden, { show: a2, appear: x2, initial: se } = ge(), [h3, _] = useState(a2 ? "visible" : "hidden"), K = be(), { register: D$1, unregister: V } = K, j$1 = useRef(null);
96686
96674
  useEffect(() => D$1(t2), [D$1, t2]), useEffect(() => {
96687
96675
  if (f2 === j.Hidden && !!t2.current) {
96688
96676
  if (a2 && h3 !== "visible") {
@@ -96692,7 +96680,7 @@ let Pe = "div", ie = S$1.RenderStrategy, oe = C$1(function(e$12, s2) {
96692
96680
  return u$4(h3, { ["hidden"]: () => V(t2), ["visible"]: () => D$1(t2) });
96693
96681
  }
96694
96682
  }, [h3, t2, D$1, V, a2, f2]);
96695
- let U = s$4({ enter: P(E), enterFrom: P(S2), enterTo: P(u2), entered: P(p$12), leave: P(d2), leaveFrom: P(v4), leaveTo: P(l2) }), w2 = xe({ beforeEnter: n2, afterEnter: m2, beforeLeave: R, afterLeave: b2 }), k2 = a$2();
96683
+ let U = s$4({ enter: P(E), enterFrom: P(S2), enterTo: P(u2), entered: P(p$12), leave: P(d2), leaveFrom: P(v4), leaveTo: P(l2) }), w2 = xe({ beforeEnter: n, afterEnter: m2, beforeLeave: R, afterLeave: b2 }), k2 = a$2();
96696
96684
  useEffect(() => {
96697
96685
  if (k2 && h3 === "visible" && t2.current === null)
96698
96686
  throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?");
@@ -96712,20 +96700,20 @@ let Pe = "div", ie = S$1.RenderStrategy, oe = C$1(function(e$12, s2) {
96712
96700
  let B2 = r2, de = { ref: o2 };
96713
96701
  return x2 && a2 && (typeof window == "undefined" || typeof document == "undefined") && (B2 = { ...B2, className: e(r2.className, ...U.current.enter, ...U.current.enterFrom) }), React__default.createElement(M.Provider, { value: L2 }, React__default.createElement(C, { value: u$4(h3, { ["visible"]: p.Open, ["hidden"]: p.Closed }) }, $({ ourProps: de, theirProps: B2, defaultTag: Pe, features: ie, visible: h3 === "visible", name: "Transition.Child" })));
96714
96702
  }), J = C$1(function(e2, s$12) {
96715
- let { show: n2, appear: m2 = false, unmount: R, ...b2 } = e2, E = useRef(null), S2 = y(E, s$12);
96703
+ let { show: n, appear: m2 = false, unmount: R, ...b2 } = e2, E = useRef(null), S2 = y(E, s$12);
96716
96704
  a$2();
96717
96705
  let u2 = s();
96718
- if (n2 === void 0 && u2 !== null && (n2 = u$4(u2, { [p.Open]: true, [p.Closed]: false })), ![true, false].includes(n2))
96706
+ if (n === void 0 && u2 !== null && (n = u$4(u2, { [p.Open]: true, [p.Closed]: false })), ![true, false].includes(n))
96719
96707
  throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");
96720
- let [p$12, d2] = useState(n2 ? "visible" : "hidden"), v4 = ne(() => {
96708
+ let [p$12, d2] = useState(n ? "visible" : "hidden"), v4 = ne(() => {
96721
96709
  d2("hidden");
96722
- }), [l2, r2] = useState(true), t2 = useRef([n2]);
96710
+ }), [l2, r2] = useState(true), t2 = useRef([n]);
96723
96711
  s$5(() => {
96724
- l2 !== false && t2.current[t2.current.length - 1] !== n2 && (t2.current.push(n2), r2(false));
96725
- }, [t2, n2]);
96726
- let o2 = useMemo(() => ({ show: n2, appear: m2, initial: l2 }), [n2, m2, l2]);
96712
+ l2 !== false && t2.current[t2.current.length - 1] !== n && (t2.current.push(n), r2(false));
96713
+ }, [t2, n]);
96714
+ let o2 = useMemo(() => ({ show: n, appear: m2, initial: l2 }), [n, m2, l2]);
96727
96715
  useEffect(() => {
96728
- if (n2)
96716
+ if (n)
96729
96717
  d2("visible");
96730
96718
  else if (!I(v4))
96731
96719
  d2("hidden");
@@ -96736,12 +96724,12 @@ let Pe = "div", ie = S$1.RenderStrategy, oe = C$1(function(e$12, s2) {
96736
96724
  let x2 = a2.getBoundingClientRect();
96737
96725
  x2.x === 0 && x2.y === 0 && x2.width === 0 && x2.height === 0 && d2("hidden");
96738
96726
  }
96739
- }, [n2, v4]);
96727
+ }, [n, v4]);
96740
96728
  let f2 = { unmount: R };
96741
96729
  return React__default.createElement(M.Provider, { value: v4 }, React__default.createElement(A.Provider, { value: o2 }, $({ ourProps: { ...f2, as: Fragment$1, children: React__default.createElement(oe, { ref: S2, ...f2, ...b2 }) }, theirProps: {}, defaultTag: Fragment$1, features: ie, visible: p$12 === "visible", name: "Transition" })));
96742
96730
  }), ye = C$1(function(e2, s$12) {
96743
- let n2 = useContext(A) !== null, m2 = s() !== null;
96744
- return React__default.createElement(React__default.Fragment, null, !n2 && m2 ? React__default.createElement(J, { ref: s$12, ...e2 }) : React__default.createElement(oe, { ref: s$12, ...e2 }));
96731
+ let n = useContext(A) !== null, m2 = s() !== null;
96732
+ return React__default.createElement(React__default.Fragment, null, !n && m2 ? React__default.createElement(J, { ref: s$12, ...e2 }) : React__default.createElement(oe, { ref: s$12, ...e2 }));
96745
96733
  }), Je = Object.assign(J, { Child: ye, Root: J });
96746
96734
  const listBoxButton = "_listBoxButton_syk7m_5";
96747
96735
  const selectedOptionText = "_selectedOptionText_syk7m_17";
@@ -98325,15 +98313,15 @@ var styles$j = {
98325
98313
  floatingCreateButton,
98326
98314
  floatingCreateButtonIcon
98327
98315
  };
98328
- const container$a = "_container_hveoi_1";
98329
- const header$3 = "_header_hveoi_5";
98330
- const wrapper$2 = "_wrapper_hveoi_9";
98331
- const column = "_column_hveoi_17";
98316
+ const container$a = "_container_32zer_1";
98317
+ const header$3 = "_header_32zer_5";
98318
+ const wrapper$2 = "_wrapper_32zer_9";
98319
+ const column = "_column_32zer_17";
98332
98320
  var styles$i = {
98333
98321
  container: container$a,
98334
98322
  header: header$3,
98335
98323
  wrapper: wrapper$2,
98336
- "col-container": "_col-container_hveoi_13",
98324
+ "col-container": "_col-container_32zer_13",
98337
98325
  column
98338
98326
  };
98339
98327
  const systemUiconsHash = (props) => /* @__PURE__ */ jsx("svg", {
@@ -99833,7 +99821,7 @@ const ChartTab = ({
99833
99821
  children: [/* @__PURE__ */ jsx(Button, {
99834
99822
  type: "button",
99835
99823
  variant: "custom",
99836
- className: (labels2 == null ? void 0 : labels2.length) ? styles$d.sqlfullQuery : styles$d.noQuery,
99824
+ className: (labels2 == null ? void 0 : labels2.length) ? styles$d.fullQuery : styles$d.noQuery,
99837
99825
  onClick: (labels2 == null ? void 0 : labels2.length) ? () => setShowFullScreen(true) : void 0,
99838
99826
  children: /* @__PURE__ */ jsx(fluentFullScreenMinimize16Filled, {})
99839
99827
  }), /* @__PURE__ */ jsx(Button, {
@@ -101602,6 +101590,7 @@ const EmbeddedMetricCreation = ({
101602
101590
  value: "",
101603
101591
  label: ""
101604
101592
  });
101593
+ const [companySubsetTableList, setCompanySubsetTableList] = useState([]);
101605
101594
  useEffect(() => {
101606
101595
  if (selectedGroupBy.length)
101607
101596
  setGroupBy({
@@ -101609,43 +101598,52 @@ const EmbeddedMetricCreation = ({
101609
101598
  });
101610
101599
  }, [selectedGroupBy]);
101611
101600
  const {
101612
- data: subsetData
101613
- } = useCompanySubsetTableListQuery({
101614
- companyId
101615
- }, {
101616
- enabled: !!companyId
101617
- });
101618
- const tableData2 = useMemo(() => {
101619
- var _a3;
101620
- return ((_a3 = subsetData == null ? void 0 : subsetData.companySubsetTables[0]) == null ? void 0 : _a3.tableList) || [];
101621
- }, [subsetData == null ? void 0 : subsetData.companySubsetTables]);
101622
- const tableList = useMemo(() => (tableData2 == null ? void 0 : tableData2.map((table2) => ({
101601
+ mutate: getCompanySubsetTableData
101602
+ } = useCompanySubsetTableDataMutation();
101603
+ const tableList = useMemo(() => companySubsetTableList.map((table2) => ({
101623
101604
  value: table2.tableName,
101624
101605
  label: table2.tableName
101625
- }))) || [], [tableData2]);
101626
- const selectedTableData = useMemo(() => tableData2 == null ? void 0 : tableData2.find((table2) => table2.tableName === selectTable.value), [selectTable.value, tableData2]);
101627
- const columnList = useMemo(() => {
101628
- var _a3;
101629
- return ((_a3 = selectedTableData == null ? void 0 : selectedTableData.columns) == null ? void 0 : _a3.map(({
101630
- name,
101631
- as
101632
- }) => ({
101633
- value: name,
101634
- label: as
101635
- }))) || [];
101636
- }, [selectedTableData]);
101606
+ })), [companySubsetTableList]);
101607
+ const selectedTableData = useMemo(() => companySubsetTableList.find((table2) => table2.tableName === selectTable.value), [selectTable.value, companySubsetTableList]);
101608
+ const columnList = useMemo(() => (selectedTableData == null ? void 0 : selectedTableData.columns.map(({
101609
+ name,
101610
+ as
101611
+ }) => ({
101612
+ value: name,
101613
+ label: as
101614
+ }))) || [], [selectedTableData]);
101637
101615
  useEffect(() => {
101638
- if (tableList == null ? void 0 : tableList.length) {
101616
+ if (tableList.length) {
101639
101617
  setSelectTable(tableList[0]);
101640
101618
  }
101641
101619
  }, [tableList]);
101642
- const dateTimeColumnList = useMemo(() => {
101643
- var _a3;
101644
- return ((_a3 = selectedTableData == null ? void 0 : selectedTableData.columns) == null ? void 0 : _a3.filter(({
101645
- datatype
101646
- }) => DATE_TYPES.includes(datatype.toLowerCase()))) || [];
101647
- }, [selectedTableData]);
101620
+ const dateTimeColumnList = useMemo(() => (selectedTableData == null ? void 0 : selectedTableData.columns.filter(({
101621
+ datatype
101622
+ }) => DATE_TYPES.includes(datatype.toLowerCase()))) || [], [selectedTableData]);
101648
101623
  const [companyIntegration, setCompanyIntegration] = useState();
101624
+ useEffect(() => {
101625
+ if (clientId && companyId) {
101626
+ getCompanySubsetTableData({
101627
+ clientId,
101628
+ companyId
101629
+ }, {
101630
+ onSuccess(response) {
101631
+ var _a3;
101632
+ const subsetError = (_a3 = response.companySubsetTableData) == null ? void 0 : _a3.error;
101633
+ const companySubsetTableData = response.companySubsetTableData;
101634
+ if (subsetError) {
101635
+ setError(subsetError.message);
101636
+ } else {
101637
+ setCompanyIntegration({
101638
+ id: companySubsetTableData == null ? void 0 : companySubsetTableData.companyIntegrationId,
101639
+ name: companySubsetTableData == null ? void 0 : companySubsetTableData.dbName
101640
+ });
101641
+ setCompanySubsetTableList(companySubsetTableData == null ? void 0 : companySubsetTableData.tableList);
101642
+ }
101643
+ }
101644
+ });
101645
+ }
101646
+ }, [clientId, companyId, getCompanySubsetTableData]);
101649
101647
  const [chartType2, setChartType] = useState("bar");
101650
101648
  const [xAxis, setXAxis] = useState();
101651
101649
  const [step, setStep] = useState();
@@ -101710,19 +101708,6 @@ const EmbeddedMetricCreation = ({
101710
101708
  setYAxisList(keys2.slice(1));
101711
101709
  }
101712
101710
  }, [data, isEnableGroupBy]);
101713
- const {
101714
- data: companyIntegrationData
101715
- } = useCompanyIntegrationQuery({
101716
- companyId
101717
- });
101718
- useEffect(() => {
101719
- const compIntdata = companyIntegrationData == null ? void 0 : companyIntegrationData.companyIntegrations[0];
101720
- if (compIntdata)
101721
- setCompanyIntegration({
101722
- id: compIntdata.id,
101723
- name: compIntdata.name
101724
- });
101725
- }, [companyIntegrationData]);
101726
101711
  const {
101727
101712
  createExternalMetric,
101728
101713
  error: saveError