@databrainhq/plugin 0.17.9-beta.89 → 0.17.9-beta.90
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/{Accordion-Cm7NvhtU.mjs → Accordion-CBeM5jJS.mjs} +1 -1
- package/dist/{CardChartSlot-C6Mvfs25.mjs → CardChartSlot-B-Ngm7L2.mjs} +7 -7
- package/dist/{Chart-D59hFodU.mjs → Chart-DVy_ucZn.mjs} +8 -8
- package/dist/{ChartCardOverlay-BU9Az6O8.mjs → ChartCardOverlay-VSQRyMW2.mjs} +1 -1
- package/dist/{ChartTypePanel-Bd9xpwBz.mjs → ChartTypePanel-CD8UZYq_.mjs} +12 -12
- package/dist/{CreateGlobalFilter-BglIVAbU.mjs → CreateGlobalFilter-B0W6aBZS.mjs} +2 -2
- package/dist/{CreateMetricV2-B4Qh8ilT.mjs → CreateMetricV2-CfROozFF.mjs} +18 -14
- package/dist/{HorizontalStackTable-CbHC13wB.mjs → HorizontalStackTable-C6Y8jTZx.mjs} +3 -3
- package/dist/{ManageMetricsV2-DZ3hRAVE.mjs → ManageMetricsV2-CKLIByOd.mjs} +3 -3
- package/dist/{MetricCardV2-78VV9622.mjs → MetricCardV2-DzI3bmvs.mjs} +623 -626
- package/dist/{NoDataFound-C49L7xWQ.mjs → NoDataFound-DJlW6hHe.mjs} +1 -1
- package/dist/{Panel-CMkiqPwr.mjs → Panel-BHzPWaa8.mjs} +1 -1
- package/dist/{PivotTableV2-By0gA5rR.mjs → PivotTableV2-Bd1SHLUx.mjs} +2 -2
- package/dist/{PivotTableV3--v3NlWBG.mjs → PivotTableV3-CHm-stWR.mjs} +4 -4
- package/dist/{Portal-BINiwYIE.mjs → Portal-CL-S1tXR.mjs} +29 -11
- package/dist/{RadioButton-D2xlAse7.mjs → RadioButton-DZWBIci3.mjs} +30 -30
- package/dist/{ScheduleEmail-GnNMpHBH.mjs → ScheduleEmail-Dv8m65aQ.mjs} +145 -136
- package/dist/{SearchMetricData-DJW7y87n.mjs → SearchMetricData-LScEnff3.mjs} +13 -13
- package/dist/{SortPanel-B0K5hI59.mjs → SortPanel-BPOISeUj.mjs} +9 -9
- package/dist/{Table-DQlYOUYN.mjs → Table-DI_eYdYo.mjs} +4 -4
- package/dist/{TagInputField-BGM6vEtu.mjs → TagInputField-C0AKAT5E.mjs} +5 -5
- package/dist/{TextAreaField-DBMbqlLr.mjs → TextAreaField-BGLVqIH_.mjs} +2 -2
- package/dist/{TimeSeriesSettings-Bu9CIVts.mjs → TimeSeriesSettings-D-02eLGd.mjs} +2 -2
- package/dist/{cardStates-C6q56mQy.mjs → cardStates-YaeHm3yq.mjs} +1 -1
- package/dist/{charts-BCsWRROL.mjs → charts-BfKyYVQ3.mjs} +1 -1
- package/dist/{clickActions-D9ZeoDnp.mjs → clickActions-GtHmsSzk.mjs} +14 -14
- package/dist/{conditionalFormatting-ZjZ6wY0g.mjs → conditionalFormatting-Doxpmemq.mjs} +1 -1
- package/dist/{createGlobalFilter.module-B3nAWt-z.mjs → createGlobalFilter.module-D6HjUXWX.mjs} +1 -1
- package/dist/{crossPointer-1otwmut1.mjs → crossPointer-B3cgqnZo.mjs} +3 -3
- package/dist/data.cjs +1 -1
- package/dist/data.mjs +1 -1
- package/dist/{metric.mutation-D6RtkleZ.mjs → metric.mutation-BmM7y6ro.mjs} +2 -2
- package/dist/{pluginV3Request-DDHTowqW.mjs → pluginV3Request-DSTXpnb2.mjs} +2 -2
- package/dist/{renderer-CYUeXAi5.mjs → renderer-DEJWO1tC.mjs} +1 -1
- package/dist/{timeseries-hkiBF4TC.mjs → timeseries-C3w9dXh4.mjs} +1 -1
- package/dist/{useGuesTokenUsageLog-CHzIT9Ex.mjs → useGuesTokenUsageLog-B4vI8cc-.mjs} +1 -1
- package/dist/{useLoadingDeadline-ZhTlljOz.mjs → useLoadingDeadline-AkEY8sVK.mjs} +13 -8
- package/dist/{usePublishArchivedMetrics-Cgh9agh-.mjs → usePublishArchivedMetrics-d7UD9S-D.mjs} +2 -2
- package/dist/{useQuery-CKH-_Ztf.mjs → useQuery-DsSv-fcD.mjs} +1 -1
- package/dist/webcomponents-styles.es.js +1 -1
- package/dist/webcomponents.es.js +2007 -1967
- package/dist/webcomponents.umd.js +191 -191
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "react";
|
|
2
2
|
import "react-dom";
|
|
3
3
|
import "react-dom/client";
|
|
4
|
-
import { ho as e } from "./Portal-
|
|
4
|
+
import { ho as e } from "./Portal-CL-S1tXR.mjs";
|
|
5
5
|
import { t } from "./No_data-CdjBgHVn.mjs";
|
|
6
6
|
import { jsx as n, jsxs as r } from "react/jsx-runtime";
|
|
7
7
|
var i = {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "react";
|
|
2
2
|
import "react-dom";
|
|
3
3
|
import "react-dom/client";
|
|
4
|
-
import { co as e, ho as t, t as n, wr as r } from "./Portal-
|
|
4
|
+
import { co as e, ho as t, t as n, wr as r } from "./Portal-CL-S1tXR.mjs";
|
|
5
5
|
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
6
6
|
var o = {
|
|
7
7
|
backdrop: "_backdrop_xf2e1_17",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import e, { useEffect as t, useMemo as n, useState as r } from "react";
|
|
2
2
|
import "react-dom";
|
|
3
3
|
import "react-dom/client";
|
|
4
|
-
import { a as i, co as a, wr as o } from "./Portal-
|
|
5
|
-
import { h as s, p as c } from "./timeseries-
|
|
4
|
+
import { a as i, co as a, wr as o } from "./Portal-CL-S1tXR.mjs";
|
|
5
|
+
import { h as s, p as c } from "./timeseries-C3w9dXh4.mjs";
|
|
6
6
|
import { i as l } from "./transformData-CO9XMhAy.mjs";
|
|
7
7
|
import { t as u } from "./pivotTable.module-V9UL5sqx.mjs";
|
|
8
8
|
import { Fragment as d, jsx as f, jsxs as p } from "react/jsx-runtime";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import e, { useEffect as t, useMemo as n, useState as r } from "react";
|
|
2
2
|
import "react-dom";
|
|
3
3
|
import "react-dom/client";
|
|
4
|
-
import { co as i, wr as a } from "./Portal-
|
|
5
|
-
import { h as o, o as s, p as c } from "./timeseries-
|
|
4
|
+
import { co as i, wr as a } from "./Portal-CL-S1tXR.mjs";
|
|
5
|
+
import { h as o, o as s, p as c } from "./timeseries-C3w9dXh4.mjs";
|
|
6
6
|
import { i as l } from "./transformData-CO9XMhAy.mjs";
|
|
7
|
-
import { t as u } from "./NoDataFound-
|
|
8
|
-
import { t as d } from "./conditionalFormatting-
|
|
7
|
+
import { t as u } from "./NoDataFound-DJlW6hHe.mjs";
|
|
8
|
+
import { t as d } from "./conditionalFormatting-Doxpmemq.mjs";
|
|
9
9
|
import { t as f } from "./pivotTable.module-V9UL5sqx.mjs";
|
|
10
10
|
import { Fragment as p, jsx as m, jsxs as h } from "react/jsx-runtime";
|
|
11
11
|
// ../core/src/helpers/regexUtils/formula.ts
|
|
@@ -2,9 +2,9 @@ import * as e from "react";
|
|
|
2
2
|
import * as t from "react-dom";
|
|
3
3
|
import "react-dom/client";
|
|
4
4
|
import { i as n, o as r, r as i, t as a } from "./rolldown-runtime-zXSK1Ut9.mjs";
|
|
5
|
-
import { o, p as s, s as l } from "./cardStates-
|
|
6
|
-
import { A as u, B as d, C as f, D as p, E as m, G as h, I as ee, J as te, K as ne, L as re, M as ie, N as ae, O as oe, R as se, S as ce, T as le, W as ue, Y as de, at as fe, ct as pe, et as me, it as he, j as ge, lt as _e, nt as ve, on as ye, ot as be, q as xe, rt as Se, st as Ce, tt as we, w as Te, x as Ee, z as De } from "./pluginV3Request-
|
|
7
|
-
import { A as Oe, B as Ae, C as je, D as Me, E as Ne, F as Pe, I as Fe, K as Ie, L as Le, M as Re, N as ze, O as Be, P as Ve, R as He, S as Ue, T as We, U as Ge, V as Ke, _ as qe, b as Je, et as Ye, f as Xe, g as Ze, h as Qe, j as $e, k as et, m as tt, p as nt, q as rt, s as it, st as at, v as ot, w as st, x as ct, y as lt, z as ut } from "./metric.mutation-
|
|
5
|
+
import { o, p as s, s as l } from "./cardStates-YaeHm3yq.mjs";
|
|
6
|
+
import { A as u, B as d, C as f, D as p, E as m, G as h, I as ee, J as te, K as ne, L as re, M as ie, N as ae, O as oe, R as se, S as ce, T as le, W as ue, Y as de, at as fe, ct as pe, et as me, it as he, j as ge, lt as _e, nt as ve, on as ye, ot as be, q as xe, rt as Se, st as Ce, tt as we, w as Te, x as Ee, z as De } from "./pluginV3Request-DSTXpnb2.mjs";
|
|
7
|
+
import { A as Oe, B as Ae, C as je, D as Me, E as Ne, F as Pe, I as Fe, K as Ie, L as Le, M as Re, N as ze, O as Be, P as Ve, R as He, S as Ue, T as We, U as Ge, V as Ke, _ as qe, b as Je, et as Ye, f as Xe, g as Ze, h as Qe, j as $e, k as et, m as tt, p as nt, q as rt, s as it, st as at, v as ot, w as st, x as ct, y as lt, z as ut } from "./metric.mutation-BmM7y6ro.mjs";
|
|
8
8
|
import { c as dt, s as ft } from "./contrast-Dse7KwXW.mjs";
|
|
9
9
|
import { c as pt, t as mt, u as ht } from "./text-CSXb1-LG.mjs";
|
|
10
10
|
import { t as gt } from "./loading-state-D6iHFb1k.mjs";
|
|
@@ -6915,11 +6915,27 @@ var Hc = "Set Date", Uc = "Set Range", Wc = {
|
|
|
6915
6915
|
label: "Distinct",
|
|
6916
6916
|
tooltip: nl
|
|
6917
6917
|
}
|
|
6918
|
-
] : [
|
|
6919
|
-
|
|
6920
|
-
|
|
6921
|
-
|
|
6922
|
-
}
|
|
6918
|
+
] : [
|
|
6919
|
+
{
|
|
6920
|
+
value: "NONE",
|
|
6921
|
+
label: "Original Value"
|
|
6922
|
+
},
|
|
6923
|
+
{
|
|
6924
|
+
value: "lowercase",
|
|
6925
|
+
label: "Lowercase",
|
|
6926
|
+
tooltip: tl
|
|
6927
|
+
},
|
|
6928
|
+
{
|
|
6929
|
+
value: "uppercase",
|
|
6930
|
+
label: "Uppercase",
|
|
6931
|
+
tooltip: tl
|
|
6932
|
+
},
|
|
6933
|
+
{
|
|
6934
|
+
value: "distinct",
|
|
6935
|
+
label: "Distinct",
|
|
6936
|
+
tooltip: nl
|
|
6937
|
+
}
|
|
6938
|
+
], il = [
|
|
6923
6939
|
{
|
|
6924
6940
|
value: "NONE",
|
|
6925
6941
|
label: "Original Value"
|
|
@@ -95307,7 +95323,7 @@ var pM = {
|
|
|
95307
95323
|
Mt(() => {
|
|
95308
95324
|
t && Ie(`dashboard.filter_options_${t}`, { reason: "client" });
|
|
95309
95325
|
}, [t]);
|
|
95310
|
-
}, yN = (e) => e === "client" ? "Select a client to see values" : "No values found", bN = ({ isLoading: e, isOriginUnauthorized: t, hasOptions: n, errorMessage: r, error: i }) => e ? "" : !t && !n && r && i ? r : i, xN = (e) => ({
|
|
95326
|
+
}, yN = (e) => e === "client" ? "Select a client to see values" : "No values found", bN = ({ isLoading: e, isOriginUnauthorized: t, hasOptions: n, errorMessage: r, error: i, hasCustomDependencies: a }) => e ? "" : !t && !n && r && i ? r : !t && a && /filter options could not be loaded/i.test(i) ? `${i} Ask your admin to edit this filter and check that its custom SQL returns every dependency column.` : i, xN = (e) => ({
|
|
95311
95327
|
embedId: e.embedId,
|
|
95312
95328
|
filter: {
|
|
95313
95329
|
tableName: e.filter.tableName,
|
|
@@ -95433,7 +95449,8 @@ var pM = {
|
|
|
95433
95449
|
isOriginUnauthorized: Ne.isOriginUnauthorized,
|
|
95434
95450
|
hasOptions: Ne.options.length > 0,
|
|
95435
95451
|
errorMessage: re,
|
|
95436
|
-
error: Ne.error
|
|
95452
|
+
error: Ne.error,
|
|
95453
|
+
hasCustomDependencies: !!(u && s?.length)
|
|
95437
95454
|
}),
|
|
95438
95455
|
emptyMessage: yN(Ne.waitReason),
|
|
95439
95456
|
onRetry: Ne.isOriginUnauthorized ? void 0 : Ne.retry,
|
|
@@ -95590,7 +95607,8 @@ var pM = {
|
|
|
95590
95607
|
isOriginUnauthorized: Be.isOriginUnauthorized,
|
|
95591
95608
|
hasOptions: Be.options.length > 0,
|
|
95592
95609
|
errorMessage: le,
|
|
95593
|
-
error: Be.error
|
|
95610
|
+
error: Be.error,
|
|
95611
|
+
hasCustomDependencies: !!(f && o?.length)
|
|
95594
95612
|
}),
|
|
95595
95613
|
emptyMessage: yN(Be.waitReason),
|
|
95596
95614
|
onRetry: Be.isOriginUnauthorized ? void 0 : Be.retry
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "react";
|
|
2
2
|
import "react-dom";
|
|
3
3
|
import "react-dom/client";
|
|
4
|
-
import { Yn as e } from "./Portal-
|
|
4
|
+
import { Yn as e } from "./Portal-CL-S1tXR.mjs";
|
|
5
5
|
import { h as t } from "./text-CSXb1-LG.mjs";
|
|
6
6
|
import { jsx as n, jsxs as r } from "react/jsx-runtime";
|
|
7
7
|
// src/helpers/datasetMetricSettingsPersistence.ts
|
|
@@ -98,7 +98,7 @@ var i = (e) => {
|
|
|
98
98
|
} else r ? (c === "]" && (r = !1), o += c === "\n" ? c : " ") : c === "-" && l === "-" ? (i = !0, o += " ", s++) : c === "/" && l === "*" ? (a = !0, o += " ", s++) : c === "'" || c === "\"" || c === "`" ? (n = c, o += " ") : c === "[" ? (r = !0, o += " ") : c === "(" ? (t++, o += " ") : c === ")" ? (t = Math.max(0, t - 1), o += " ") : o += t === 0 || c === "\n" ? c : " ";
|
|
99
99
|
}
|
|
100
100
|
return o;
|
|
101
|
-
},
|
|
101
|
+
}, te = (e) => {
|
|
102
102
|
let t = [...x(e).matchAll(/\blimit\s+(\d+)(?:\s+offset\s+(\d+))?(?:\s+rows\s+fetch\s+next\s+\d+\s+rows\s+only)?/gi)], n = t[t.length - 1];
|
|
103
103
|
if (n?.[0] && n.index !== void 0) return {
|
|
104
104
|
value: Number(n[1]),
|
|
@@ -106,7 +106,7 @@ var i = (e) => {
|
|
|
106
106
|
index: n.index,
|
|
107
107
|
end: n.index + n[0].length
|
|
108
108
|
};
|
|
109
|
-
},
|
|
109
|
+
}, S = (e) => {
|
|
110
110
|
let t = [...x(e).matchAll(/\boffset\s+(\d+)(?:\s+rows?)?\s+limit\s+(\d+)/gi)], n = t[t.length - 1];
|
|
111
111
|
if (n?.[0] && n.index !== void 0) return {
|
|
112
112
|
value: Number(n[2]),
|
|
@@ -114,7 +114,7 @@ var i = (e) => {
|
|
|
114
114
|
index: n.index,
|
|
115
115
|
end: n.index + n[0].length
|
|
116
116
|
};
|
|
117
|
-
},
|
|
117
|
+
}, C = (e) => /\blimit\b/i.test(x(e)), ne = (e) => {
|
|
118
118
|
let t = x(e), n = t.match(/\boffset\s+(\d+)\s+rows\s+fetch\s+next\s+(\d+)\s+rows\s+only/i);
|
|
119
119
|
if (n?.[0] && n.index !== void 0) return {
|
|
120
120
|
value: Number(n[2]),
|
|
@@ -139,26 +139,26 @@ var i = (e) => {
|
|
|
139
139
|
index: i.index,
|
|
140
140
|
end: i.index + i[0].length
|
|
141
141
|
};
|
|
142
|
-
}, re = (e) => /\border\s+by\b/i.test(x(e)), w = (e, t, n) => `${e.slice(0, t.index)}${n}${e.slice(t.end)}`, ie = (e) => e.replace(/\s*ORDER\s+BY\s*\(\s*SELECT\s+NULL\s*\)\s*;?/gi, ""),
|
|
142
|
+
}, re = (e) => /\border\s+by\b/i.test(x(e)), w = (e, t, n) => `${e.slice(0, t.index)}${n}${e.slice(t.end)}`, ie = (e) => e.replace(/\s*ORDER\s+BY\s*\(\s*SELECT\s+NULL\s*\)\s*;?/gi, ""), ae = (e, t) => {
|
|
143
143
|
if (y(t)) {
|
|
144
144
|
let t = /^\s*(?:--.*\n\s*|\/\*[^*]*\*+(?:[^/*][^*]*\*+)*\/\s*)*select\s+(distinct\s+)?top\s*(\(\s*\d+\s*\)|\d+)(?:\s+percent)?(?:\s+with\s+ties)?/i;
|
|
145
145
|
if (t.test(e)) return e.replace(t, (e) => e.replace(/top\s*(\(\s*\d+\s*\)|\d+)(\s+percent)?(\s+with\s+ties)?/i, ""));
|
|
146
146
|
}
|
|
147
147
|
return e;
|
|
148
|
-
},
|
|
148
|
+
}, T = ({ query: e, limit: t, dbName: n, offset: r, isRemove: i, preserveTopOnRemove: a, stripComments: o, isServerSidePagination: s }) => {
|
|
149
149
|
let c = _(n), l = v(n), u = y(n);
|
|
150
150
|
if (!e) return "";
|
|
151
151
|
let d = r || "0", f = (o ? o(e) : e).replace(/;\s*$/, "");
|
|
152
|
-
i && a || (f =
|
|
153
|
-
let p = parseInt(t, 10), m = l &&
|
|
152
|
+
i && a || (f = ae(f, n));
|
|
153
|
+
let p = parseInt(t, 10), m = l && S(f) || te(f), h = C(f), g = ne(f), x = re(f) || /\border\s+by\b/i.test(ee(f)), T = m?.offset || g?.offset || 0, E = m?.value || g?.value || NaN, D = r || T?.toString() || "0";
|
|
154
154
|
if (m) {
|
|
155
|
-
let e = s ? p :
|
|
155
|
+
let e = s ? p : E || d === "0" ? Math.min(E, p) : t, n = `${x || c || l ? "" : " ORDER BY(SELECT NULL) "} OFFSET ${T || d} ROWS
|
|
156
156
|
FETCH NEXT ${e} ROWS ONLY`;
|
|
157
|
-
f = l ? w(f, m, i ? "" : b(e,
|
|
157
|
+
f = l ? w(f, m, i ? "" : b(e, D)) : u ? w(f, m, i ? "" : n) : w(f, m, i ? "" : `limit ${e} ${D === "0" ? "" : `OFFSET ${D}`}`);
|
|
158
158
|
} else if (h) return f;
|
|
159
159
|
else l ? !g && !i ? f += ` ${b(p, d)}` : g?.isOffsetFetch ? f = w(f, g, i ? "" : b(p, d)) : g?.isOffsetOnly && (g.offset === 0 ? f = w(f, g, i ? "" : b(p, d)) : i || (f += ` limit ${p}`)) : u ? !g && !i ? f += ` ${x || c || l ? "" : " ORDER BY(SELECT NULL) "} ${`offset ${d || 0} rows`} fetch next ${p} rows only` : g?.isOffsetFetch && (f = w(f, g, i ? "" : `OFFSET ${d || 0} ROWS FETCH NEXT ${p} ROWS ONLY`), i && (f = ie(f))) : i || (f += ` limit ${p} ${d === "0" ? "" : `OFFSET ${d}`}`);
|
|
160
160
|
return f;
|
|
161
|
-
},
|
|
161
|
+
}, E = (e) => {
|
|
162
162
|
let t = e.toLowerCase(), n = 0, r = null, i = -1, a = (r, i) => n === 0 && t.slice(r, r + i.length) === i && !/[a-z0-9_]/i.test(e[r - 1] || "") && !/[a-z0-9_]/i.test(e[r + i.length] || "");
|
|
163
163
|
for (let t = 0; t < e.length; t++) {
|
|
164
164
|
let o = e[t];
|
|
@@ -173,11 +173,11 @@ var i = (e) => {
|
|
|
173
173
|
};
|
|
174
174
|
}
|
|
175
175
|
return null;
|
|
176
|
-
},
|
|
176
|
+
}, D = (e) => {
|
|
177
177
|
if (!e?.trim()) return e;
|
|
178
|
-
let t =
|
|
178
|
+
let t = E(e);
|
|
179
179
|
return t ? `${e.slice(0, t.selectIndex)}SELECT * ${e.slice(t.fromIndex)}` : e;
|
|
180
|
-
},
|
|
180
|
+
}, O = String.raw`(?:[a-z_][a-z0-9_$]*|"[^"]+"|\x60[^\x60]+\x60|\[[^\]]+\])`, oe = RegExp(`^${O}(?:\\.${O})*$`, "i"), se = /^(?:sum|count|avg|min|max)\s*\(\s*(?:distinct\s+)?([^()]+?)\s*\)$/i, ce = RegExp(`^(.+?)\\s+(?:as\\s+)?${O}$`, "is"), le = /* @__PURE__ */ new Set([
|
|
181
181
|
"all",
|
|
182
182
|
"case",
|
|
183
183
|
"distinct",
|
|
@@ -185,46 +185,46 @@ var i = (e) => {
|
|
|
185
185
|
"false",
|
|
186
186
|
"null",
|
|
187
187
|
"true"
|
|
188
|
-
]),
|
|
188
|
+
]), ue = (e) => {
|
|
189
189
|
let t = [], n = 0, r = null, i = 0;
|
|
190
190
|
for (let a = 0; a < e.length; a++) {
|
|
191
191
|
let o = e[a];
|
|
192
192
|
r ? o === r && (r = null) : o === "'" || o === "\"" || o === "`" ? r = o : o === "[" ? r = "]" : o === "(" ? n++ : o === ")" ? n-- : o === "," && n === 0 && (t.push(e.slice(i, a).trim()), i = a + 1);
|
|
193
193
|
}
|
|
194
194
|
return r || n !== 0 ? null : (t.push(e.slice(i).trim()), t);
|
|
195
|
-
},
|
|
196
|
-
if (!
|
|
197
|
-
let t = e.match(new RegExp(
|
|
195
|
+
}, de = (e) => {
|
|
196
|
+
if (!oe.test(e)) return null;
|
|
197
|
+
let t = e.match(new RegExp(O, "gi")) ?? [], n = t[t.length - 1];
|
|
198
198
|
if (!n) return null;
|
|
199
199
|
let r = /^["`[]/.test(n), i = (r ? n.slice(1, -1) : n).toLowerCase();
|
|
200
|
-
return !r &&
|
|
201
|
-
},
|
|
200
|
+
return !r && le.has(i) ? null : i;
|
|
201
|
+
}, fe = (e) => {
|
|
202
202
|
let t = (e) => {
|
|
203
|
-
let t =
|
|
204
|
-
return
|
|
203
|
+
let t = se.exec(e);
|
|
204
|
+
return de(t ? t[1] : e);
|
|
205
205
|
}, n = t(e);
|
|
206
206
|
if (n) return n;
|
|
207
|
-
let r =
|
|
207
|
+
let r = ce.exec(e);
|
|
208
208
|
return r ? t(r[1].trim()) : null;
|
|
209
|
-
},
|
|
209
|
+
}, k = (e) => {
|
|
210
210
|
if (!e?.trim()) return [];
|
|
211
|
-
let t =
|
|
211
|
+
let t = E(e);
|
|
212
212
|
if (!t) return [];
|
|
213
|
-
let n =
|
|
213
|
+
let n = ue(e.slice(t.selectIndex + 6, t.fromIndex));
|
|
214
214
|
if (!n?.length) return [];
|
|
215
215
|
let r = /* @__PURE__ */ new Set();
|
|
216
216
|
for (let e of n) {
|
|
217
|
-
let t =
|
|
217
|
+
let t = fe(e);
|
|
218
218
|
if (!t) return [];
|
|
219
219
|
r.add(t);
|
|
220
220
|
}
|
|
221
221
|
return [...r];
|
|
222
222
|
}, pe = (e, t) => {
|
|
223
|
-
let n = new Set(
|
|
223
|
+
let n = new Set(k(t));
|
|
224
224
|
if (!n.size || !e.length) return e;
|
|
225
225
|
let r = Object.keys(e[0]).filter((e) => n.has(e.toLowerCase()));
|
|
226
226
|
return r.length ? e.map((e) => Object.fromEntries(r.map((t) => [t, e[t]]))) : e;
|
|
227
|
-
}, me = ({ query: t, limit: n, dbName: r, offset: i, isRemove: a, preserveTopOnRemove: o }) =>
|
|
227
|
+
}, me = ({ query: t, limit: n, dbName: r, offset: i, isRemove: a, preserveTopOnRemove: o }) => T({
|
|
228
228
|
query: t,
|
|
229
229
|
limit: n,
|
|
230
230
|
offset: i,
|
|
@@ -550,4 +550,4 @@ var i = (e) => {
|
|
|
550
550
|
]
|
|
551
551
|
})]
|
|
552
552
|
});
|
|
553
|
-
export { Ie as a, we as c, me as d,
|
|
553
|
+
export { Ie as a, we as c, me as d, k as f, d as g, c as h, Ee as i, xe as l, pe as m, J as n, Fe as o, D as p, Re as r, W as s, ze as t, A as u };
|