autoql-fe-utils 1.0.33 → 1.0.34

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.d.ts CHANGED
@@ -717,10 +717,12 @@ declare const getTimeFrameTextFromChunk: (chunk: any) => string;
717
717
  declare const getStringFromSource: (source: string | number | Array<string>) => string | null;
718
718
  declare const mergeSources: (source: string | number | Array<string>, newSource: string | number | Array<string>) => string | null;
719
719
 
720
- declare const nameValueObject: (name: any, value: any) => {
721
- name: any;
722
- value: any;
723
- };
720
+ interface DrilldownColumn {
721
+ name: string;
722
+ value: string | number;
723
+ drill_down?: string;
724
+ }
725
+ declare const nameValueObject: (name: any, value: any, drill_down?: any) => DrilldownColumn;
724
726
  declare const getKeyByValue: (object: any, value: any) => string;
725
727
  declare const cloneObject: (from: any, to: any) => any;
726
728
 
@@ -1773,6 +1775,12 @@ declare const fetchDataExplorerSuggestions: ({ pageSize, pageNumber, domain, api
1773
1775
  userVLSelection?: ValueLabel[];
1774
1776
  skipQueryValidation?: boolean;
1775
1777
  }) => Promise<axios.AxiosResponse<any, any>>;
1778
+ declare const fetchSubjectListV2: ({ domain, apiKey, token, valueLabel }: {
1779
+ domain: any;
1780
+ apiKey: any;
1781
+ token: any;
1782
+ valueLabel: any;
1783
+ }) => Promise<any[]>;
1776
1784
  declare const fetchSubjectList: ({ domain, apiKey, token, valueLabel }: {
1777
1785
  domain: any;
1778
1786
  apiKey: any;
@@ -2147,4 +2155,4 @@ declare function color(): {
2147
2155
  on(): any;
2148
2156
  };
2149
2157
 
2150
- export { AGG_TYPES, AXIS_TITLE_BORDER_PADDING_LEFT, AXIS_TITLE_BORDER_PADDING_TOP, AXIS_TITLE_PADDING_BOTTOM, AXIS_TITLE_PADDING_TOP, AggType, AggTypeParams, AggTypes, AxiosResponse, BUTTON_PADDING, CHARTS_WITHOUT_AGGREGATED_DATA, CHARTS_WITHOUT_AXES, CHARTS_WITHOUT_LEGENDS, CHART_PADDING, CHART_TYPES, COLUMN_TYPES, COMPARE_TYPE, CONTINUOUS_TYPE, CUSTOM_TYPE, Column, Column$1 as ColumnObj, ColumnType, ColumnTypes, DATA_ALERT_CONDITION_TYPES, DATA_ALERT_ENABLED_STATUSES, DATA_ALERT_FREQUENCY_TYPE_OPTIONS, DATA_ALERT_OPERATORS, DATA_ALERT_STATUSES, DATE_ONLY_CHART_TYPES, DAYJS_PRECISION_FORMATS, DEFAULT_AGG_TYPE, DEFAULT_CHART_CONFIG, DEFAULT_DATA_PAGE_SIZE, DEFAULT_EVALUATION_FREQUENCY, DEFAULT_LEGEND_PADDING_BOTTOM, DEFAULT_LEGEND_PADDING_LEFT, DEFAULT_LEGEND_PADDING_RIGHT, DEFAULT_LEGEND_PADDING_TOP, DEFAULT_MAX_LEGEND_WIDTH, DEFAULT_SOURCE, DISPLAY_TYPES, DOUBLE_AXIS_CHART_TYPES, DOW_STYLES, DataExplorerSubject, DataExplorerSubjectInterface, DataExplorerSuggestion, DataExplorerTypes, DataFormatting, DateUTC, DisplayTypes, EVALUATION_FREQUENCY_OPTIONS, EXISTS_TYPE, FilterLock, FrontendReq, GENERAL_ERROR, GENERAL_HTML_ERROR, GENERAL_QUERY_ERROR, GROUP_TERM_TYPE, HORIZONTAL_LEGEND_SPACING, LABEL_FONT_SIZE, LEGEND_BORDER_PADDING, LEGEND_BORDER_THICKNESS, LEGEND_SHAPE_SIZE, LEGEND_TOP_ADJUSTMENT, LOAD_MORE_DROPDOWN_PADDING_BOTTOM, MAX_DATA_PAGE_SIZE, MAX_LEGEND_LABELS, MAX_ROWS_FOR_PIE_CHART, MINIMUM_INNER_HEIGHT, MINIMUM_INNER_WIDTH, MINIMUM_TITLE_LENGTH, MIN_HISTOGRAM_SAMPLE, MONTH_DAY_SELECT_OPTIONS, MONTH_NAMES, NUMBER_TERM_TYPE, PATH_SMOOTHING, PERIODIC_TYPE, PROJECT_TYPE, ParsedInterpretation, ParsedInterpretationChunk, PrecisionTypes, QUERY_TERM_TYPE, QueryData, QueryResponse, REQUEST_CANCELLED_ERROR, RESET_PERIOD_OPTIONS, RawColumn, Rows, SCHEDULED_TYPE, SCHEDULE_FREQUENCY_OPTIONS, SCHEDULE_INTERVAL_OPTIONS, SEASON_NAMES, SampleQueryReplacementTypes, Scale, SubjectSuggestion, TABLE_TYPES, TITLE_FONT_SIZE, TableConfig, Theme, ThemeType, TransformedAxiosResponse, TransformedQueryResponse, UNAUTHENTICATED_ERROR, VERTICAL_LEGEND_SPACING, ValueLabel, ValueLabelSuggestion, WEEKDAY_NAMES_MON, WEEKDAY_NAMES_SUN, addUserToProjectRule, adjustBottomTitleToFit, adjustMinAndMaxForScaleRatio, adjustTitleToFit, adjustTopTitleToFit, adjustVerticalTitleToFit, aggregateData, animateInputText, applyLegendTitleStyles, applyStylesForHiddenSeries, areAllColumnsHidden, areSomeColumnsHidden, authenticationDefault, autoQLConfigDefault, bezierCommand, calculateMinAndMaxSums, capitalizeFirstChar, cloneObject, configureTheme, constructFilter, constructRTArray, convertToNumber, countDecimals, createDataAlert, createNotificationChannel, createSVGPath, currentEventLoopEnd, dataConfigDefault, dataFormattingDefault, dataStructureChanged, dateSortFn, dateStringSortFn, deepEqual, deleteDataAlert, deleteNotification, difference, dismissAllNotifications, dismissNotification, distributeListsEvenly, doesElementOverflowContainer, exportCSV, fetchAutocomplete, fetchDataAlerts, fetchDataExplorerAutocomplete, fetchDataExplorerSuggestions, fetchDataExplorerSuggestionsV2, fetchDataPreview, fetchExploreQueries, fetchFilters, fetchNotificationChannels, fetchNotificationCount, fetchNotificationData, fetchNotificationFeed, fetchRule, fetchSubjectList, fetchSuggestions, fetchTopics, fetchTopicsForVL, fetchVLAutocomplete, formatChartLabel, formatDatePivotMonth, formatDatePivotYear, formatDateStringType, formatDateType, formatElement, formatEpochDate, formatFiltersForAPI, formatISODateWithPrecision, formatNextScheduleDate, formatNumberFilterValue, formatQueryColumns, formatResetDate, formatSortersForAPI, formatStringDate, formatStringDateWithPrecision, formatTableParams, functionsEqual, generateDatePivotData, generateFilterDrilldownResponse, generatePivotData, generatePivotTableData, getAggConfig, getAuthentication, getAutoQLConfig, getAxis, getAxisLabelsBbox, getBBoxFromRef, getBandScale, getBarRectObj, getBinData, getBinLinearScale, getBubbleObj, getChartColorVars, getChartScaleRatio, getColorScale, getColorScales, getColumnDateRanges, getColumnIndexConfig, getColumnNameForDateRange, getColumnRectObj, getColumnTypeAmounts, getCombinedFilters, getCurrencySymbol, getDataConfig, getDataFormatting, getDateColumnIndex, getDateRangeIntersection, getDateRangesFromInterpretation, getDatesFromRT, getDayJSObj, getDayLocalStartDate, getDayjsObjForStringType, getDefaultBucketConfig, getDefaultDisplayType, getDrilldownData, getDrilldownGroupby, getEpochFromDate, getFilterDrilldown, getFilterPrecision, getFirstChartDisplayType, getGroupBys, getGroupBysFromPivotTable, getGroupBysFromTable, getGroupableColumns, getHeatmapRectObj, getHiddenColumns, getHistogramColumnObj, getHistogramScale, getInitialBucketSize, getKey, getKeyByValue, getLabelsBBox, getLegendLabels, getLegendLabelsForGroupbyQuery, getLegendLabelsForMultiSeries, getLegendLabelsForSingleColumn, getLegendLocation, getLegendScale, getLegendTitleFromColumns, getLineVertexObj, getLinearAxisTitle, getLinearScale, getLinearScales, getMaxLegendHeight, getMaxLegendSectionWidth, getMaxTickLabelWidth, getMaxValueFromKeyValueObj, getMinAndMaxValues, getMinValueFromKeyValueObj, getMonthLocalStartDate, getMultiSeriesColumnIndex, getNiceDateTickValues, getNiceTickValues, getNumberAxisUnits, getNumberColumnIndices, getNumberFormatConfig, getNumberOfGroupables, getNumberOfSeries, getObjSize, getOpacityScale, getPadding, getPieChartData, getPivotColumnIndexConfig, getPointObj, getPotentialDisplayTypes, getPrecisionForDayJS, getQueryFn, getQueryParams, getQueryRequestParams, getRadiusScale, getRangeForAxis, getRowNumberListForPopover, getSVGBase64, getSampleQueryRegex, getSampleQueryText, getScheduleFrequencyObject, getStartAndEndDateFromDateStrs, getStringColumnIndices, getStringFromSource, getSupportedConditionTypes, getSupportedDisplayTypes, getThemeType, getThemeValue, getTickSizeFromNumTicks, getTickValues, getTimeFrameTextFromChunk, getTimeObjFromTimeStamp, getTimeRangeFromDateArray, getTimeRangeFromRT, getTimeScale, getTitleCase, getTooltipContent, getTotalBottomPadding, getTotalHorizontalPadding, getTotalLeftPadding, getTotalPossibleLegendSections, getTotalRightPadding, getTotalTopPadding, getTotalVerticalPadding, getUniqueYearsForColumn, getUnitSymbol, getUnitsForColumn, getVisibleColumns, getWeekLocalStartDate, getWeekdayFromTimeStamp, getlegendLabelSections, handleTooltipBoundaryCollision, hasColumnIndex, hasData, hasDateColumn, hasMoreData, hasNumberColumn, hasStringColumn, initializeAlert, invertArray, isAggSeed, isAggregation, isChartType, isColumnDateType, isColumnIndexConfigValid, isColumnIndexValid, isColumnIndicesValid, isColumnNumberType, isColumnStringType, isDataLimited, isDisplayTypeValid, isDrilldown, isError500Type, isExpressionQueryValid, isISODate, isListQuery, isNumber, isObject, isSingleValueResponse, isTableType, color as legendColor, lineCommand, makeEmptyArray, markNotificationAsUnread, mergeBboxes, mergeBoundingClientRects, mergeSources, nameValueObject, numberIndicesArraysOverlap, onTableCellClick, onlySeriesVisibilityChanged, onlyUnique, parseJwt, potentiallySupportsDatePivot, potentiallySupportsPivot, removeElementAtIndex, removeFromDOM, removeHiddenLegendLabels, removeNotificationChannel, removeUserFromProjectRule, reportProblem, resetDateIsFuture, resetNotificationCount, rotateArray, roundDownToNearestMultiple, roundToNearestLog10, roundToNearestMultiple, roundUpToNearestMultiple, runDrilldown, runQuery, runQueryNewPage, runQueryOnly, runQueryValidation, scaleZero, sendDataToChannel, sendSuggestion, setCaretPosition, setColumnVisibility, setFilterFunction, setFilters, setHeaderFilterPlaceholder, setSorterFunction, setTickSize, setTickValues, shouldDisableChartScale, shouldLabelsRotate, shouldPlotMultiSeries, showEvaluationFrequencySetting, sortDataByDate, supportsDatePivotTable, supportsPieChart, supportsRegularPivotTable, svgPathD, svgToPng, tableFilterParams, toggleCustomDataAlertStatus, toggleProjectDataAlertStatus, transformLabels, transformQueryResponse, transformQueryResponseColumns, unsetFilterFromAPI, updateDataAlert, updateDataAlertStatus, usePivotDataForChart, uuidv4, validateExpression };
2158
+ export { AGG_TYPES, AXIS_TITLE_BORDER_PADDING_LEFT, AXIS_TITLE_BORDER_PADDING_TOP, AXIS_TITLE_PADDING_BOTTOM, AXIS_TITLE_PADDING_TOP, AggType, AggTypeParams, AggTypes, AxiosResponse, BUTTON_PADDING, CHARTS_WITHOUT_AGGREGATED_DATA, CHARTS_WITHOUT_AXES, CHARTS_WITHOUT_LEGENDS, CHART_PADDING, CHART_TYPES, COLUMN_TYPES, COMPARE_TYPE, CONTINUOUS_TYPE, CUSTOM_TYPE, Column, Column$1 as ColumnObj, ColumnType, ColumnTypes, DATA_ALERT_CONDITION_TYPES, DATA_ALERT_ENABLED_STATUSES, DATA_ALERT_FREQUENCY_TYPE_OPTIONS, DATA_ALERT_OPERATORS, DATA_ALERT_STATUSES, DATE_ONLY_CHART_TYPES, DAYJS_PRECISION_FORMATS, DEFAULT_AGG_TYPE, DEFAULT_CHART_CONFIG, DEFAULT_DATA_PAGE_SIZE, DEFAULT_EVALUATION_FREQUENCY, DEFAULT_LEGEND_PADDING_BOTTOM, DEFAULT_LEGEND_PADDING_LEFT, DEFAULT_LEGEND_PADDING_RIGHT, DEFAULT_LEGEND_PADDING_TOP, DEFAULT_MAX_LEGEND_WIDTH, DEFAULT_SOURCE, DISPLAY_TYPES, DOUBLE_AXIS_CHART_TYPES, DOW_STYLES, DataExplorerSubject, DataExplorerSubjectInterface, DataExplorerSuggestion, DataExplorerTypes, DataFormatting, DateUTC, DisplayTypes, EVALUATION_FREQUENCY_OPTIONS, EXISTS_TYPE, FilterLock, FrontendReq, GENERAL_ERROR, GENERAL_HTML_ERROR, GENERAL_QUERY_ERROR, GROUP_TERM_TYPE, HORIZONTAL_LEGEND_SPACING, LABEL_FONT_SIZE, LEGEND_BORDER_PADDING, LEGEND_BORDER_THICKNESS, LEGEND_SHAPE_SIZE, LEGEND_TOP_ADJUSTMENT, LOAD_MORE_DROPDOWN_PADDING_BOTTOM, MAX_DATA_PAGE_SIZE, MAX_LEGEND_LABELS, MAX_ROWS_FOR_PIE_CHART, MINIMUM_INNER_HEIGHT, MINIMUM_INNER_WIDTH, MINIMUM_TITLE_LENGTH, MIN_HISTOGRAM_SAMPLE, MONTH_DAY_SELECT_OPTIONS, MONTH_NAMES, NUMBER_TERM_TYPE, PATH_SMOOTHING, PERIODIC_TYPE, PROJECT_TYPE, ParsedInterpretation, ParsedInterpretationChunk, PrecisionTypes, QUERY_TERM_TYPE, QueryData, QueryResponse, REQUEST_CANCELLED_ERROR, RESET_PERIOD_OPTIONS, RawColumn, Rows, SCHEDULED_TYPE, SCHEDULE_FREQUENCY_OPTIONS, SCHEDULE_INTERVAL_OPTIONS, SEASON_NAMES, SampleQueryReplacementTypes, Scale, SubjectSuggestion, TABLE_TYPES, TITLE_FONT_SIZE, TableConfig, Theme, ThemeType, TransformedAxiosResponse, TransformedQueryResponse, UNAUTHENTICATED_ERROR, VERTICAL_LEGEND_SPACING, ValueLabel, ValueLabelSuggestion, WEEKDAY_NAMES_MON, WEEKDAY_NAMES_SUN, addUserToProjectRule, adjustBottomTitleToFit, adjustMinAndMaxForScaleRatio, adjustTitleToFit, adjustTopTitleToFit, adjustVerticalTitleToFit, aggregateData, animateInputText, applyLegendTitleStyles, applyStylesForHiddenSeries, areAllColumnsHidden, areSomeColumnsHidden, authenticationDefault, autoQLConfigDefault, bezierCommand, calculateMinAndMaxSums, capitalizeFirstChar, cloneObject, configureTheme, constructFilter, constructRTArray, convertToNumber, countDecimals, createDataAlert, createNotificationChannel, createSVGPath, currentEventLoopEnd, dataConfigDefault, dataFormattingDefault, dataStructureChanged, dateSortFn, dateStringSortFn, deepEqual, deleteDataAlert, deleteNotification, difference, dismissAllNotifications, dismissNotification, distributeListsEvenly, doesElementOverflowContainer, exportCSV, fetchAutocomplete, fetchDataAlerts, fetchDataExplorerAutocomplete, fetchDataExplorerSuggestions, fetchDataExplorerSuggestionsV2, fetchDataPreview, fetchExploreQueries, fetchFilters, fetchNotificationChannels, fetchNotificationCount, fetchNotificationData, fetchNotificationFeed, fetchRule, fetchSubjectList, fetchSubjectListV2, fetchSuggestions, fetchTopics, fetchTopicsForVL, fetchVLAutocomplete, formatChartLabel, formatDatePivotMonth, formatDatePivotYear, formatDateStringType, formatDateType, formatElement, formatEpochDate, formatFiltersForAPI, formatISODateWithPrecision, formatNextScheduleDate, formatNumberFilterValue, formatQueryColumns, formatResetDate, formatSortersForAPI, formatStringDate, formatStringDateWithPrecision, formatTableParams, functionsEqual, generateDatePivotData, generateFilterDrilldownResponse, generatePivotData, generatePivotTableData, getAggConfig, getAuthentication, getAutoQLConfig, getAxis, getAxisLabelsBbox, getBBoxFromRef, getBandScale, getBarRectObj, getBinData, getBinLinearScale, getBubbleObj, getChartColorVars, getChartScaleRatio, getColorScale, getColorScales, getColumnDateRanges, getColumnIndexConfig, getColumnNameForDateRange, getColumnRectObj, getColumnTypeAmounts, getCombinedFilters, getCurrencySymbol, getDataConfig, getDataFormatting, getDateColumnIndex, getDateRangeIntersection, getDateRangesFromInterpretation, getDatesFromRT, getDayJSObj, getDayLocalStartDate, getDayjsObjForStringType, getDefaultBucketConfig, getDefaultDisplayType, getDrilldownData, getDrilldownGroupby, getEpochFromDate, getFilterDrilldown, getFilterPrecision, getFirstChartDisplayType, getGroupBys, getGroupBysFromPivotTable, getGroupBysFromTable, getGroupableColumns, getHeatmapRectObj, getHiddenColumns, getHistogramColumnObj, getHistogramScale, getInitialBucketSize, getKey, getKeyByValue, getLabelsBBox, getLegendLabels, getLegendLabelsForGroupbyQuery, getLegendLabelsForMultiSeries, getLegendLabelsForSingleColumn, getLegendLocation, getLegendScale, getLegendTitleFromColumns, getLineVertexObj, getLinearAxisTitle, getLinearScale, getLinearScales, getMaxLegendHeight, getMaxLegendSectionWidth, getMaxTickLabelWidth, getMaxValueFromKeyValueObj, getMinAndMaxValues, getMinValueFromKeyValueObj, getMonthLocalStartDate, getMultiSeriesColumnIndex, getNiceDateTickValues, getNiceTickValues, getNumberAxisUnits, getNumberColumnIndices, getNumberFormatConfig, getNumberOfGroupables, getNumberOfSeries, getObjSize, getOpacityScale, getPadding, getPieChartData, getPivotColumnIndexConfig, getPointObj, getPotentialDisplayTypes, getPrecisionForDayJS, getQueryFn, getQueryParams, getQueryRequestParams, getRadiusScale, getRangeForAxis, getRowNumberListForPopover, getSVGBase64, getSampleQueryRegex, getSampleQueryText, getScheduleFrequencyObject, getStartAndEndDateFromDateStrs, getStringColumnIndices, getStringFromSource, getSupportedConditionTypes, getSupportedDisplayTypes, getThemeType, getThemeValue, getTickSizeFromNumTicks, getTickValues, getTimeFrameTextFromChunk, getTimeObjFromTimeStamp, getTimeRangeFromDateArray, getTimeRangeFromRT, getTimeScale, getTitleCase, getTooltipContent, getTotalBottomPadding, getTotalHorizontalPadding, getTotalLeftPadding, getTotalPossibleLegendSections, getTotalRightPadding, getTotalTopPadding, getTotalVerticalPadding, getUniqueYearsForColumn, getUnitSymbol, getUnitsForColumn, getVisibleColumns, getWeekLocalStartDate, getWeekdayFromTimeStamp, getlegendLabelSections, handleTooltipBoundaryCollision, hasColumnIndex, hasData, hasDateColumn, hasMoreData, hasNumberColumn, hasStringColumn, initializeAlert, invertArray, isAggSeed, isAggregation, isChartType, isColumnDateType, isColumnIndexConfigValid, isColumnIndexValid, isColumnIndicesValid, isColumnNumberType, isColumnStringType, isDataLimited, isDisplayTypeValid, isDrilldown, isError500Type, isExpressionQueryValid, isISODate, isListQuery, isNumber, isObject, isSingleValueResponse, isTableType, color as legendColor, lineCommand, makeEmptyArray, markNotificationAsUnread, mergeBboxes, mergeBoundingClientRects, mergeSources, nameValueObject, numberIndicesArraysOverlap, onTableCellClick, onlySeriesVisibilityChanged, onlyUnique, parseJwt, potentiallySupportsDatePivot, potentiallySupportsPivot, removeElementAtIndex, removeFromDOM, removeHiddenLegendLabels, removeNotificationChannel, removeUserFromProjectRule, reportProblem, resetDateIsFuture, resetNotificationCount, rotateArray, roundDownToNearestMultiple, roundToNearestLog10, roundToNearestMultiple, roundUpToNearestMultiple, runDrilldown, runQuery, runQueryNewPage, runQueryOnly, runQueryValidation, scaleZero, sendDataToChannel, sendSuggestion, setCaretPosition, setColumnVisibility, setFilterFunction, setFilters, setHeaderFilterPlaceholder, setSorterFunction, setTickSize, setTickValues, shouldDisableChartScale, shouldLabelsRotate, shouldPlotMultiSeries, showEvaluationFrequencySetting, sortDataByDate, supportsDatePivotTable, supportsPieChart, supportsRegularPivotTable, svgPathD, svgToPng, tableFilterParams, toggleCustomDataAlertStatus, toggleProjectDataAlertStatus, transformLabels, transformQueryResponse, transformQueryResponseColumns, unsetFilterFromAPI, updateDataAlert, updateDataAlertStatus, usePivotDataForChart, uuidv4, validateExpression };
@@ -61,9 +61,9 @@
61
61
  return void 0 === t2;
62
62
  } }, g = "en", D = {};
63
63
  D[g] = M;
64
- var p = function(t2) {
65
- return t2 instanceof b;
66
- }, S = function t2(e3, n2, r2) {
64
+ var p = "$isDayjsObject", S = function(t2) {
65
+ return t2 instanceof _ || !(!t2 || !t2[p]);
66
+ }, w = function t2(e3, n2, r2) {
67
67
  var i2;
68
68
  if (!e3)
69
69
  return g;
@@ -78,18 +78,18 @@
78
78
  D[a2] = e3, i2 = a2;
79
79
  }
80
80
  return !r2 && i2 && (g = i2), i2 || !r2 && g;
81
- }, w = function(t2, e3) {
82
- if (p(t2))
81
+ }, O = function(t2, e3) {
82
+ if (S(t2))
83
83
  return t2.clone();
84
84
  var n2 = "object" == typeof e3 ? e3 : {};
85
- return n2.date = t2, n2.args = arguments, new b(n2);
86
- }, O = v;
87
- O.l = S, O.i = p, O.w = function(t2, e3) {
88
- return w(t2, { locale: e3.$L, utc: e3.$u, x: e3.$x, $offset: e3.$offset });
85
+ return n2.date = t2, n2.args = arguments, new _(n2);
86
+ }, b = v;
87
+ b.l = w, b.i = S, b.w = function(t2, e3) {
88
+ return O(t2, { locale: e3.$L, utc: e3.$u, x: e3.$x, $offset: e3.$offset });
89
89
  };
90
- var b = function() {
90
+ var _ = function() {
91
91
  function M2(t2) {
92
- this.$L = S(t2.locale, null, true), this.parse(t2);
92
+ this.$L = w(t2.locale, null, true), this.parse(t2), this.$x = this.$x || t2.x || {}, this[p] = true;
93
93
  }
94
94
  var m2 = M2.prototype;
95
95
  return m2.parse = function(t2) {
@@ -97,7 +97,7 @@
97
97
  var e3 = t3.date, n2 = t3.utc;
98
98
  if (null === e3)
99
99
  return /* @__PURE__ */ new Date(NaN);
100
- if (O.u(e3))
100
+ if (b.u(e3))
101
101
  return /* @__PURE__ */ new Date();
102
102
  if (e3 instanceof Date)
103
103
  return new Date(e3);
@@ -109,33 +109,33 @@
109
109
  }
110
110
  }
111
111
  return new Date(e3);
112
- }(t2), this.$x = t2.x || {}, this.init();
112
+ }(t2), this.init();
113
113
  }, m2.init = function() {
114
114
  var t2 = this.$d;
115
115
  this.$y = t2.getFullYear(), this.$M = t2.getMonth(), this.$D = t2.getDate(), this.$W = t2.getDay(), this.$H = t2.getHours(), this.$m = t2.getMinutes(), this.$s = t2.getSeconds(), this.$ms = t2.getMilliseconds();
116
116
  }, m2.$utils = function() {
117
- return O;
117
+ return b;
118
118
  }, m2.isValid = function() {
119
119
  return !(this.$d.toString() === l);
120
120
  }, m2.isSame = function(t2, e3) {
121
- var n2 = w(t2);
121
+ var n2 = O(t2);
122
122
  return this.startOf(e3) <= n2 && n2 <= this.endOf(e3);
123
123
  }, m2.isAfter = function(t2, e3) {
124
- return w(t2) < this.startOf(e3);
124
+ return O(t2) < this.startOf(e3);
125
125
  }, m2.isBefore = function(t2, e3) {
126
- return this.endOf(e3) < w(t2);
126
+ return this.endOf(e3) < O(t2);
127
127
  }, m2.$g = function(t2, e3, n2) {
128
- return O.u(t2) ? this[e3] : this.set(n2, t2);
128
+ return b.u(t2) ? this[e3] : this.set(n2, t2);
129
129
  }, m2.unix = function() {
130
130
  return Math.floor(this.valueOf() / 1e3);
131
131
  }, m2.valueOf = function() {
132
132
  return this.$d.getTime();
133
133
  }, m2.startOf = function(t2, e3) {
134
- var n2 = this, r2 = !!O.u(e3) || e3, f2 = O.p(t2), l2 = function(t3, e4) {
135
- var i2 = O.w(n2.$u ? Date.UTC(n2.$y, e4, t3) : new Date(n2.$y, e4, t3), n2);
134
+ var n2 = this, r2 = !!b.u(e3) || e3, f2 = b.p(t2), l2 = function(t3, e4) {
135
+ var i2 = b.w(n2.$u ? Date.UTC(n2.$y, e4, t3) : new Date(n2.$y, e4, t3), n2);
136
136
  return r2 ? i2 : i2.endOf(a);
137
137
  }, $2 = function(t3, e4) {
138
- return O.w(n2.toDate()[t3].apply(n2.toDate("s"), (r2 ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(e4)), n2);
138
+ return b.w(n2.toDate()[t3].apply(n2.toDate("s"), (r2 ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(e4)), n2);
139
139
  }, y2 = this.$W, M3 = this.$M, m3 = this.$D, v2 = "set" + (this.$u ? "UTC" : "");
140
140
  switch (f2) {
141
141
  case h:
@@ -160,7 +160,7 @@
160
160
  }, m2.endOf = function(t2) {
161
161
  return this.startOf(t2, false);
162
162
  }, m2.$set = function(t2, e3) {
163
- var n2, o2 = O.p(t2), f2 = "set" + (this.$u ? "UTC" : ""), l2 = (n2 = {}, n2[a] = f2 + "Date", n2[d] = f2 + "Date", n2[c] = f2 + "Month", n2[h] = f2 + "FullYear", n2[u] = f2 + "Hours", n2[s] = f2 + "Minutes", n2[i] = f2 + "Seconds", n2[r] = f2 + "Milliseconds", n2)[o2], $2 = o2 === a ? this.$D + (e3 - this.$W) : e3;
163
+ var n2, o2 = b.p(t2), f2 = "set" + (this.$u ? "UTC" : ""), l2 = (n2 = {}, n2[a] = f2 + "Date", n2[d] = f2 + "Date", n2[c] = f2 + "Month", n2[h] = f2 + "FullYear", n2[u] = f2 + "Hours", n2[s] = f2 + "Minutes", n2[i] = f2 + "Seconds", n2[r] = f2 + "Milliseconds", n2)[o2], $2 = o2 === a ? this.$D + (e3 - this.$W) : e3;
164
164
  if (o2 === c || o2 === h) {
165
165
  var y2 = this.clone().set(d, 1);
166
166
  y2.$d[l2]($2), y2.init(), this.$d = y2.set(d, Math.min(this.$D, y2.daysInMonth())).$d;
@@ -170,13 +170,13 @@
170
170
  }, m2.set = function(t2, e3) {
171
171
  return this.clone().$set(t2, e3);
172
172
  }, m2.get = function(t2) {
173
- return this[O.p(t2)]();
173
+ return this[b.p(t2)]();
174
174
  }, m2.add = function(r2, f2) {
175
175
  var d2, l2 = this;
176
176
  r2 = Number(r2);
177
- var $2 = O.p(f2), y2 = function(t2) {
178
- var e3 = w(l2);
179
- return O.w(e3.date(e3.date() + Math.round(t2 * r2)), l2);
177
+ var $2 = b.p(f2), y2 = function(t2) {
178
+ var e3 = O(l2);
179
+ return b.w(e3.date(e3.date() + Math.round(t2 * r2)), l2);
180
180
  };
181
181
  if ($2 === c)
182
182
  return this.set(c, this.$M + r2);
@@ -187,17 +187,17 @@
187
187
  if ($2 === o)
188
188
  return y2(7);
189
189
  var M3 = (d2 = {}, d2[s] = e, d2[u] = n, d2[i] = t, d2)[$2] || 1, m3 = this.$d.getTime() + r2 * M3;
190
- return O.w(m3, this);
190
+ return b.w(m3, this);
191
191
  }, m2.subtract = function(t2, e3) {
192
192
  return this.add(-1 * t2, e3);
193
193
  }, m2.format = function(t2) {
194
194
  var e3 = this, n2 = this.$locale();
195
195
  if (!this.isValid())
196
196
  return n2.invalidDate || l;
197
- var r2 = t2 || "YYYY-MM-DDTHH:mm:ssZ", i2 = O.z(this), s2 = this.$H, u2 = this.$m, a2 = this.$M, o2 = n2.weekdays, c2 = n2.months, f2 = n2.meridiem, h2 = function(t3, n3, i3, s3) {
197
+ var r2 = t2 || "YYYY-MM-DDTHH:mm:ssZ", i2 = b.z(this), s2 = this.$H, u2 = this.$m, a2 = this.$M, o2 = n2.weekdays, c2 = n2.months, f2 = n2.meridiem, h2 = function(t3, n3, i3, s3) {
198
198
  return t3 && (t3[n3] || t3(e3, r2)) || i3[n3].slice(0, s3);
199
199
  }, d2 = function(t3) {
200
- return O.s(s2 % 12 || 12, t3, "0");
200
+ return b.s(s2 % 12 || 12, t3, "0");
201
201
  }, $2 = f2 || function(t3, e4, n3) {
202
202
  var r3 = t3 < 12 ? "AM" : "PM";
203
203
  return n3 ? r3.toLowerCase() : r3;
@@ -208,11 +208,11 @@
208
208
  case "YY":
209
209
  return String(e3.$y).slice(-2);
210
210
  case "YYYY":
211
- return O.s(e3.$y, 4, "0");
211
+ return b.s(e3.$y, 4, "0");
212
212
  case "M":
213
213
  return a2 + 1;
214
214
  case "MM":
215
- return O.s(a2 + 1, 2, "0");
215
+ return b.s(a2 + 1, 2, "0");
216
216
  case "MMM":
217
217
  return h2(n2.monthsShort, a2, c2, 3);
218
218
  case "MMMM":
@@ -220,7 +220,7 @@
220
220
  case "D":
221
221
  return e3.$D;
222
222
  case "DD":
223
- return O.s(e3.$D, 2, "0");
223
+ return b.s(e3.$D, 2, "0");
224
224
  case "d":
225
225
  return String(e3.$W);
226
226
  case "dd":
@@ -232,7 +232,7 @@
232
232
  case "H":
233
233
  return String(s2);
234
234
  case "HH":
235
- return O.s(s2, 2, "0");
235
+ return b.s(s2, 2, "0");
236
236
  case "h":
237
237
  return d2(1);
238
238
  case "hh":
@@ -244,13 +244,13 @@
244
244
  case "m":
245
245
  return String(u2);
246
246
  case "mm":
247
- return O.s(u2, 2, "0");
247
+ return b.s(u2, 2, "0");
248
248
  case "s":
249
249
  return String(e3.$s);
250
250
  case "ss":
251
- return O.s(e3.$s, 2, "0");
251
+ return b.s(e3.$s, 2, "0");
252
252
  case "SSS":
253
- return O.s(e3.$ms, 3, "0");
253
+ return b.s(e3.$ms, 3, "0");
254
254
  case "Z":
255
255
  return i2;
256
256
  }
@@ -260,8 +260,8 @@
260
260
  }, m2.utcOffset = function() {
261
261
  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
262
262
  }, m2.diff = function(r2, d2, l2) {
263
- var $2, y2 = this, M3 = O.p(d2), m3 = w(r2), v2 = (m3.utcOffset() - this.utcOffset()) * e, g2 = this - m3, D2 = function() {
264
- return O.m(y2, m3);
263
+ var $2, y2 = this, M3 = b.p(d2), m3 = O(r2), v2 = (m3.utcOffset() - this.utcOffset()) * e, g2 = this - m3, D2 = function() {
264
+ return b.m(y2, m3);
265
265
  };
266
266
  switch (M3) {
267
267
  case h:
@@ -291,7 +291,7 @@
291
291
  default:
292
292
  $2 = g2;
293
293
  }
294
- return l2 ? $2 : O.a($2);
294
+ return l2 ? $2 : b.a($2);
295
295
  }, m2.daysInMonth = function() {
296
296
  return this.endOf(c).$D;
297
297
  }, m2.$locale = function() {
@@ -299,10 +299,10 @@
299
299
  }, m2.locale = function(t2, e3) {
300
300
  if (!t2)
301
301
  return this.$L;
302
- var n2 = this.clone(), r2 = S(t2, e3, true);
302
+ var n2 = this.clone(), r2 = w(t2, e3, true);
303
303
  return r2 && (n2.$L = r2), n2;
304
304
  }, m2.clone = function() {
305
- return O.w(this.$d, this);
305
+ return b.w(this.$d, this);
306
306
  }, m2.toDate = function() {
307
307
  return new Date(this.valueOf());
308
308
  }, m2.toJSON = function() {
@@ -312,16 +312,16 @@
312
312
  }, m2.toString = function() {
313
313
  return this.$d.toUTCString();
314
314
  }, M2;
315
- }(), _ = b.prototype;
316
- return w.prototype = _, [["$ms", r], ["$s", i], ["$m", s], ["$H", u], ["$W", a], ["$M", c], ["$y", h], ["$D", d]].forEach(function(t2) {
317
- _[t2[1]] = function(e3) {
315
+ }(), k = _.prototype;
316
+ return O.prototype = k, [["$ms", r], ["$s", i], ["$m", s], ["$H", u], ["$W", a], ["$M", c], ["$y", h], ["$D", d]].forEach(function(t2) {
317
+ k[t2[1]] = function(e3) {
318
318
  return this.$g(e3, t2[0], t2[1]);
319
319
  };
320
- }), w.extend = function(t2, e3) {
321
- return t2.$i || (t2(e3, b, w), t2.$i = true), w;
322
- }, w.locale = S, w.isDayjs = p, w.unix = function(t2) {
323
- return w(1e3 * t2);
324
- }, w.en = D[g], w.Ls = D, w.p = {}, w;
320
+ }), O.extend = function(t2, e3) {
321
+ return t2.$i || (t2(e3, _, O), t2.$i = true), O;
322
+ }, O.locale = w, O.isDayjs = S, O.unix = function(t2) {
323
+ return O(1e3 * t2);
324
+ }, O.en = D[g], O.Ls = D, O.p = {}, O;
325
325
  });
326
326
  }
327
327
  });
@@ -513,12 +513,12 @@
513
513
  var f2 = i2[u2], s2 = f2.type, m = f2.value, c = t[s2];
514
514
  c >= 0 && (r2[c] = parseInt(m, 10));
515
515
  }
516
- var d = r2[3], l = 24 === d ? 0 : d, v = r2[0] + "-" + r2[1] + "-" + r2[2] + " " + l + ":" + r2[4] + ":" + r2[5] + ":000", h = +e3;
517
- return (o.utc(v).valueOf() - (h -= h % 1e3)) / 6e4;
516
+ var d = r2[3], l = 24 === d ? 0 : d, h = r2[0] + "-" + r2[1] + "-" + r2[2] + " " + l + ":" + r2[4] + ":" + r2[5] + ":000", v = +e3;
517
+ return (o.utc(h).valueOf() - (v -= v % 1e3)) / 6e4;
518
518
  }, f = i.prototype;
519
519
  f.tz = function(t2, e3) {
520
520
  void 0 === t2 && (t2 = r);
521
- var n2 = this.utcOffset(), i2 = this.toDate(), a2 = i2.toLocaleString("en-US", { timeZone: t2 }), u2 = Math.round((i2 - new Date(a2)) / 1e3 / 60), f2 = o(a2).$set("millisecond", this.$ms).utcOffset(15 * -Math.round(i2.getTimezoneOffset() / 15) - u2, true);
521
+ var n2 = this.utcOffset(), i2 = this.toDate(), a2 = i2.toLocaleString("en-US", { timeZone: t2 }), u2 = Math.round((i2 - new Date(a2)) / 1e3 / 60), f2 = o(a2, { locale: this.$L }).$set("millisecond", this.$ms).utcOffset(15 * -Math.round(i2.getTimezoneOffset() / 15) - u2, true);
522
522
  if (e3) {
523
523
  var s2 = f2.utcOffset();
524
524
  f2 = f2.add(n2 - s2, "minute");
@@ -534,7 +534,7 @@
534
534
  f.startOf = function(t2, e3) {
535
535
  if (!this.$x || !this.$x.$timezone)
536
536
  return s.call(this, t2, e3);
537
- var n2 = o(this.format("YYYY-MM-DD HH:mm:ss:SSS"));
537
+ var n2 = o(this.format("YYYY-MM-DD HH:mm:ss:SSS"), { locale: this.$L });
538
538
  return s.call(n2, t2, e3).tz(this.$x.$timezone, true);
539
539
  }, o.tz = function(t2, e3, n2) {
540
540
  var i2 = n2 && e3, a2 = n2 || e3 || r, f2 = u(+o(), a2);
@@ -13097,6 +13097,7 @@
13097
13097
  "ERR_STREAM_WRITE_AFTER_END",
13098
13098
  "write after end"
13099
13099
  );
13100
+ var destroy = Writable.prototype.destroy || noop3;
13100
13101
  function RedirectableRequest(options, responseCallback) {
13101
13102
  Writable.call(this);
13102
13103
  this._sanitizeOptions(options);
@@ -13118,9 +13119,15 @@
13118
13119
  }
13119
13120
  RedirectableRequest.prototype = Object.create(Writable.prototype);
13120
13121
  RedirectableRequest.prototype.abort = function() {
13121
- abortRequest(this._currentRequest);
13122
+ destroyRequest(this._currentRequest);
13123
+ this._currentRequest.abort();
13122
13124
  this.emit("abort");
13123
13125
  };
13126
+ RedirectableRequest.prototype.destroy = function(error) {
13127
+ destroyRequest(this._currentRequest, error);
13128
+ destroy.call(this, error);
13129
+ return this;
13130
+ };
13124
13131
  RedirectableRequest.prototype.write = function(data, encoding, callback) {
13125
13132
  if (this._ending) {
13126
13133
  throw new WriteAfterEndError();
@@ -13201,6 +13208,7 @@
13201
13208
  self2.removeListener("abort", clearTimer);
13202
13209
  self2.removeListener("error", clearTimer);
13203
13210
  self2.removeListener("response", clearTimer);
13211
+ self2.removeListener("close", clearTimer);
13204
13212
  if (callback) {
13205
13213
  self2.removeListener("timeout", callback);
13206
13214
  }
@@ -13220,6 +13228,7 @@
13220
13228
  this.on("abort", clearTimer);
13221
13229
  this.on("error", clearTimer);
13222
13230
  this.on("response", clearTimer);
13231
+ this.on("close", clearTimer);
13223
13232
  return this;
13224
13233
  };
13225
13234
  [
@@ -13317,7 +13326,7 @@
13317
13326
  this._requestBodyBuffers = [];
13318
13327
  return;
13319
13328
  }
13320
- abortRequest(this._currentRequest);
13329
+ destroyRequest(this._currentRequest);
13321
13330
  response.destroy();
13322
13331
  if (++this._redirectCount > this._options.maxRedirects) {
13323
13332
  this.emit("error", new TooManyRedirectsError());
@@ -13482,12 +13491,12 @@
13482
13491
  CustomError.prototype.name = "Error [" + code + "]";
13483
13492
  return CustomError;
13484
13493
  }
13485
- function abortRequest(request) {
13494
+ function destroyRequest(request, error) {
13486
13495
  for (var event of events) {
13487
13496
  request.removeListener(event, eventHandlers[event]);
13488
13497
  }
13489
13498
  request.on("error", noop3);
13490
- request.abort();
13499
+ request.destroy(error);
13491
13500
  }
13492
13501
  function isSubdomain(subdomain, domain) {
13493
13502
  assert(isString2(subdomain) && isString2(domain));
@@ -13584,7 +13593,7 @@
13584
13593
  byteToHex.push((i + 256).toString(16).slice(1));
13585
13594
  }
13586
13595
  function unsafeStringify(arr, offset = 0) {
13587
- return (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + "-" + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + "-" + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + "-" + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + "-" + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase();
13596
+ return byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + "-" + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + "-" + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + "-" + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + "-" + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]];
13588
13597
  }
13589
13598
 
13590
13599
  // node_modules/uuid/dist/esm-node/native.js
@@ -15620,11 +15629,15 @@
15620
15629
  };
15621
15630
 
15622
15631
  // src/HelperFns/objectHelpers.ts
15623
- var nameValueObject = (name, value) => {
15624
- return {
15632
+ var nameValueObject = (name, value, drill_down) => {
15633
+ const nameValueObj = {
15625
15634
  name,
15626
15635
  value
15627
15636
  };
15637
+ if (drill_down) {
15638
+ nameValueObj.drill_down = drill_down;
15639
+ }
15640
+ return nameValueObj;
15628
15641
  };
15629
15642
  var getKeyByValue = (object, value) => {
15630
15643
  return Object.keys(object).find((key) => object[key] === value);
@@ -15718,7 +15731,8 @@
15718
15731
  groupableColumns.forEach((colIndex) => {
15719
15732
  const groupByName = columns[colIndex].name;
15720
15733
  const groupByValue = `${row[colIndex]}`;
15721
- groupBys.push(nameValueObject(groupByName, groupByValue));
15734
+ const groupByDrilldown = columns[colIndex].drill_down;
15735
+ groupBys.push(nameValueObject(groupByName, groupByValue, groupByDrilldown));
15722
15736
  });
15723
15737
  return { groupBys, supportedByAPI: true };
15724
15738
  };
@@ -15734,10 +15748,10 @@
15734
15748
  const rowData = cell.getData();
15735
15749
  const groupByArray = [];
15736
15750
  groupableColumns.forEach((colIndex) => {
15737
- var _a;
15738
- const groupByName = (_a = tableColumns[colIndex].drill_down) != null ? _a : tableColumns[colIndex].name;
15751
+ const groupByName = tableColumns[colIndex].name;
15739
15752
  const groupByValue = `${rowData[colIndex]}`;
15740
- groupByArray.push(nameValueObject(groupByName, groupByValue));
15753
+ const groupByDrilldown = tableColumns[colIndex].drill_down;
15754
+ groupByArray.push(nameValueObject(groupByName, groupByValue, groupByDrilldown));
15741
15755
  });
15742
15756
  return groupByArray;
15743
15757
  };
@@ -21652,7 +21666,7 @@
21652
21666
  columnIndexConfig,
21653
21667
  activeKey
21654
21668
  }) => {
21655
- var _a, _b, _c, _d, _e, _f, _g;
21669
+ var _a, _b, _c, _d;
21656
21670
  const { stringColumnIndex } = columnIndexConfig;
21657
21671
  const drilldownData = {};
21658
21672
  const groupBys = [];
@@ -21663,19 +21677,22 @@
21663
21677
  const month = row == null ? void 0 : row[stringColumnIndex];
21664
21678
  const value = `${(_d = pivotOriginalColumnData == null ? void 0 : pivotOriginalColumnData[year]) == null ? void 0 : _d[month]}`;
21665
21679
  groupBys.push({
21666
- name: (_e = stringColumn.drill_down) != null ? _e : stringColumn.name,
21680
+ name: stringColumn.name,
21681
+ drill_down: stringColumn.drill_down,
21667
21682
  value
21668
21683
  });
21669
21684
  } else if (stringColumn == null ? void 0 : stringColumn.groupable) {
21670
21685
  groupBys.push({
21671
- name: (_f = stringColumn.drill_down) != null ? _f : stringColumn.name,
21686
+ name: stringColumn.name,
21687
+ drill_down: stringColumn.drill_down,
21672
21688
  value: `${row == null ? void 0 : row[stringColumnIndex]}`
21673
21689
  });
21674
21690
  }
21675
21691
  if (legendColumn == null ? void 0 : legendColumn.groupable) {
21676
21692
  if (column.origColumn) {
21677
21693
  groupBys.push({
21678
- name: (_g = legendColumn.drill_down) != null ? _g : legendColumn.name,
21694
+ name: legendColumn.name,
21695
+ drill_down: legendColumn.drill_down,
21679
21696
  value: `${column == null ? void 0 : column.name}`
21680
21697
  });
21681
21698
  }
@@ -24822,7 +24839,7 @@
24822
24839
  }
24823
24840
  var defaults = {
24824
24841
  transitional: transitional_default,
24825
- adapter: node_default2.isNode ? "http" : "xhr",
24842
+ adapter: ["xhr", "http"],
24826
24843
  transformRequest: [function transformRequest(data, headers) {
24827
24844
  const contentType = headers.getContentType() || "";
24828
24845
  const hasJSONContentType = contentType.indexOf("application/json") > -1;
@@ -25249,7 +25266,7 @@
25249
25266
  var import_zlib = __toESM(__require("zlib"), 1);
25250
25267
 
25251
25268
  // node_modules/axios/lib/env/data.js
25252
- var VERSION = "1.5.0";
25269
+ var VERSION = "1.5.1";
25253
25270
 
25254
25271
  // node_modules/axios/lib/helpers/parseProtocol.js
25255
25272
  function parseProtocol(url2) {
@@ -25976,7 +25993,7 @@
25976
25993
  if (method === "HEAD" || res.statusCode === 204) {
25977
25994
  delete res.headers["content-encoding"];
25978
25995
  }
25979
- switch (res.headers["content-encoding"]) {
25996
+ switch ((res.headers["content-encoding"] || "").toLowerCase()) {
25980
25997
  case "gzip":
25981
25998
  case "x-gzip":
25982
25999
  case "compress":
@@ -26081,7 +26098,7 @@
26081
26098
  });
26082
26099
  if (config.timeout) {
26083
26100
  const timeout = parseInt(config.timeout, 10);
26084
- if (isNaN(timeout)) {
26101
+ if (Number.isNaN(timeout)) {
26085
26102
  reject(new AxiosError_default(
26086
26103
  "error trying to parse `config.timeout` to int",
26087
26104
  AxiosError_default.ERR_BAD_OPTION_VALUE,
@@ -26255,11 +26272,14 @@
26255
26272
  config.signal.removeEventListener("abort", onCanceled);
26256
26273
  }
26257
26274
  }
26275
+ let contentType;
26258
26276
  if (utils_default.isFormData(requestData)) {
26259
26277
  if (node_default2.isStandardBrowserEnv || node_default2.isStandardBrowserWebWorkerEnv) {
26260
26278
  requestHeaders.setContentType(false);
26261
- } else {
26262
- requestHeaders.setContentType("multipart/form-data;", false);
26279
+ } else if (!requestHeaders.getContentType(/^\s*multipart\/form-data/)) {
26280
+ requestHeaders.setContentType("multipart/form-data");
26281
+ } else if (utils_default.isString(contentType = requestHeaders.getContentType())) {
26282
+ requestHeaders.setContentType(contentType.replace(/^\s*(multipart\/form-data);+/, "$1"));
26263
26283
  }
26264
26284
  }
26265
26285
  let request = new XMLHttpRequest();
@@ -26395,31 +26415,39 @@
26395
26415
  Object.defineProperty(fn, "adapterName", { value });
26396
26416
  }
26397
26417
  });
26418
+ var renderReason = (reason) => `- ${reason}`;
26419
+ var isResolvedHandle = (adapter) => utils_default.isFunction(adapter) || adapter === null || adapter === false;
26398
26420
  var adapters_default = {
26399
26421
  getAdapter: (adapters) => {
26400
26422
  adapters = utils_default.isArray(adapters) ? adapters : [adapters];
26401
26423
  const { length } = adapters;
26402
26424
  let nameOrAdapter;
26403
26425
  let adapter;
26426
+ const rejectedReasons = {};
26404
26427
  for (let i = 0; i < length; i++) {
26405
26428
  nameOrAdapter = adapters[i];
26406
- if (adapter = utils_default.isString(nameOrAdapter) ? knownAdapters[nameOrAdapter.toLowerCase()] : nameOrAdapter) {
26429
+ let id;
26430
+ adapter = nameOrAdapter;
26431
+ if (!isResolvedHandle(nameOrAdapter)) {
26432
+ adapter = knownAdapters[(id = String(nameOrAdapter)).toLowerCase()];
26433
+ if (adapter === void 0) {
26434
+ throw new AxiosError_default(`Unknown adapter '${id}'`);
26435
+ }
26436
+ }
26437
+ if (adapter) {
26407
26438
  break;
26408
26439
  }
26440
+ rejectedReasons[id || "#" + i] = adapter;
26409
26441
  }
26410
26442
  if (!adapter) {
26411
- if (adapter === false) {
26412
- throw new AxiosError_default(
26413
- `Adapter ${nameOrAdapter} is not supported by the environment`,
26414
- "ERR_NOT_SUPPORT"
26415
- );
26416
- }
26417
- throw new Error(
26418
- utils_default.hasOwnProp(knownAdapters, nameOrAdapter) ? `Adapter '${nameOrAdapter}' is not available in the build` : `Unknown adapter '${nameOrAdapter}'`
26443
+ const reasons = Object.entries(rejectedReasons).map(
26444
+ ([id, state]) => `adapter ${id} ` + (state === false ? "is not supported by the environment" : "is not available in the build")
26445
+ );
26446
+ let s = length ? reasons.length > 1 ? "since :\n" + reasons.map(renderReason).join("\n") : " " + renderReason(reasons[0]) : "as no adapter specified";
26447
+ throw new AxiosError_default(
26448
+ `There is no suitable adapter to dispatch the request ` + s,
26449
+ "ERR_NOT_SUPPORT"
26419
26450
  );
26420
- }
26421
- if (!utils_default.isFunction(adapter)) {
26422
- throw new TypeError("adapter is not a function");
26423
26451
  }
26424
26452
  return adapter;
26425
26453
  },
@@ -27172,7 +27200,7 @@
27172
27200
  if (error.message === "Parse error") {
27173
27201
  return Promise.reject({ error: "Parse error" });
27174
27202
  }
27175
- if (error.response === 401 || !((_a = error == null ? void 0 : error.response) == null ? void 0 : _a.data)) {
27203
+ if (!((_a = error == null ? void 0 : error.response) == null ? void 0 : _a.data)) {
27176
27204
  return Promise.reject({ error: "Unauthenticated" });
27177
27205
  }
27178
27206
  return Promise.reject(error == null ? void 0 : error.response);
@@ -27244,7 +27272,7 @@
27244
27272
  if ((error == null ? void 0 : error.message) === "Parse error") {
27245
27273
  return Promise.reject({ error: "Parse error" });
27246
27274
  }
27247
- if ((error == null ? void 0 : error.response) === 401 || !((_a = error == null ? void 0 : error.response) == null ? void 0 : _a.data)) {
27275
+ if (!((_a = error == null ? void 0 : error.response) == null ? void 0 : _a.data)) {
27248
27276
  return Promise.reject({ error: "Unauthenticated" });
27249
27277
  }
27250
27278
  const referenceId = (_c = (_b = error == null ? void 0 : error.response) == null ? void 0 : _b.data) == null ? void 0 : _c.reference_id;
@@ -27900,7 +27928,7 @@
27900
27928
  return Promise.resolve(queryValidationResponse);
27901
27929
  }
27902
27930
  }
27903
- const exploreQueriesUrl = `${domain}/autoql/api/v1/query/query-builder?key=${apiKey}`;
27931
+ const url2 = `${domain}/autoql/api/v1/query/query-builder?key=${apiKey}`;
27904
27932
  const config = {
27905
27933
  headers: {
27906
27934
  Authorization: `Bearer ${token}`
@@ -27917,9 +27945,11 @@
27917
27945
  const data = {
27918
27946
  page: pageNumber,
27919
27947
  page_size: pageSize,
27920
- search_terms: text,
27948
+ query_to_start: text,
27921
27949
  context,
27922
- value_label_info: vlInfo
27950
+ columns
27951
+ // {"public.customer_dimension.customer_name": {"value": "inistar"}}
27952
+ // value_label_info: vlInfo,
27923
27953
  };
27924
27954
  const suggestionsMock = [
27925
27955
  {
@@ -28037,6 +28067,35 @@
28037
28067
  return Promise.reject((_a2 = error == null ? void 0 : error.response) == null ? void 0 : _a2.data);
28038
28068
  });
28039
28069
  };
28070
+ var fetchSubjectListV2 = ({ domain, apiKey, token, valueLabel }) => {
28071
+ if (!token || !domain || !apiKey) {
28072
+ return Promise.reject(new Error("Unauthenticated"));
28073
+ }
28074
+ let url2 = `${domain}/autoql/api/v1/query/subjectsV2?key=${apiKey}`;
28075
+ if (valueLabel) {
28076
+ url2 += `&value_label=${valueLabel}`;
28077
+ }
28078
+ const config = {
28079
+ headers: {
28080
+ Authorization: `Bearer ${token}`
28081
+ }
28082
+ };
28083
+ return axios_default.get(url2, config).then((response) => {
28084
+ var _a, _b;
28085
+ let subjectList = [];
28086
+ if ((_b = (_a = response == null ? void 0 : response.data) == null ? void 0 : _a.data) == null ? void 0 : _b.subjects) {
28087
+ subjectList = response.data.data.subjects.sort((a, b) => {
28088
+ const aName = a.subject;
28089
+ const bName = b.subject;
28090
+ aName.localeCompare(bName);
28091
+ });
28092
+ }
28093
+ return Promise.resolve(subjectList);
28094
+ }).catch((error) => {
28095
+ var _a;
28096
+ return Promise.reject((_a = error == null ? void 0 : error.response) == null ? void 0 : _a.data);
28097
+ });
28098
+ };
28040
28099
  var fetchSubjectList = ({ domain, apiKey, token, valueLabel }) => {
28041
28100
  if (!token || !domain || !apiKey) {
28042
28101
  return Promise.reject(new Error("Unauthenticated"));