@sisense/sdk-ui-vue 2.7.0 → 2.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/ai.js CHANGED
@@ -1,5 +1,5 @@
1
- import { inject as sa, ref as Qt, defineComponent as st, watchEffect as Ft, provide as ca, watch as ct, toRefs as pt } from "vue";
2
- import { aC as Vt, aD as Be, aE as pa, aF as He, aG as ua, aH as ga, aI as me, aJ as $t, aK as ha, aL as b, aM as Jt, aN as L, aO as n, aP as E, aQ as Y, aR as Fe, aS as U, aT as Me, aU as N, aV as Xt, aW as ma, aX as ba, aY as se, aZ as fa, a_ as ke, a$ as Ve, b0 as ye, b1 as ut, b2 as xa, b3 as ka, b4 as ya, b5 as C, b6 as P, b7 as wa, b8 as Ct, b9 as Z, ba as We, bb as v, bc as De, bd as _a, be as Ca, bf as va, bg as Sa, bh as Ie, bi as ve, bj as Ma, bk as Da, bl as Kt, bm as Ia, bn as Aa, bo as La, bp as Ta, bq as er, br as Na, bs as ja, bt as Oa, bu as Ea, bv as za, bw as tr, bx as Ra, by as Za, bz as Wa, bA as vt, bB as Pa, bC as qa, bD as Ga, bE as Ba, bF as rr, bG as Ce, bH as ar, bI as rt, bJ as Ha, bK as $e, bL as Ya, bM as Ua, bN as Qa, bO as Fa, bP as Va, bQ as $a, bR as Ja, bS as Xa, ao as je, bT as ir, bU as Ka, bV as ei, bW as ti, bX as or, bY as nr, bZ as ri, b_ as ai, b$ as ii, L as oi, c0 as ni, a as lr, c1 as dr, N as gt, K as ht, O as mt, P as be, a4 as bt } from "./use-tracking-71a2feea.js";
1
+ import { inject as sa, ref as Ut, defineComponent as st, watchEffect as Ft, provide as ca, watch as ct, toRefs as pt } from "vue";
2
+ import { aC as Vt, aD as He, aE as pa, aF as Be, aG as ua, aH as ga, aI as me, aJ as $t, aK as ha, aL as b, aM as Jt, aN as L, aO as n, aP as E, aQ as Y, aR as Fe, aS as Q, aT as Me, aU as N, aV as Xt, aW as ma, aX as ba, aY as se, aZ as fa, a_ as ke, a$ as Ve, b0 as ye, b1 as ut, b2 as xa, b3 as ka, b4 as ya, b5 as C, b6 as P, b7 as wa, b8 as Ct, b9 as Z, ba as We, bb as v, bc as Ie, bd as _a, be as Ca, bf as va, bg as Sa, bh as De, bi as ve, bj as Ma, bk as Ia, bl as Kt, bm as Da, bn as Aa, bo as La, bp as Ta, bq as er, br as Na, bs as ja, bt as Oa, bu as Ea, bv as za, bw as tr, bx as Ra, by as Za, bz as Wa, bA as vt, bB as Pa, bC as qa, bD as Ga, bE as Ha, bF as rr, bG as Ce, bH as ar, bI as rt, bJ as Ba, bK as $e, bL as Ya, bM as Qa, bN as Ua, bO as Fa, bP as Va, bQ as $a, bR as Ja, bS as Xa, ao as je, bT as ir, bU as Ka, bV as ei, bW as ti, bX as or, bY as nr, bZ as ri, b_ as ai, b$ as ii, J as oi, c0 as ni, a as lr, c1 as dr, K as gt, H as ht, L as mt, N as be, a4 as bt } from "./use-tracking-a39b9c1f.js";
3
3
  var li = Object.defineProperty, di = Object.defineProperties, si = Object.getOwnPropertyDescriptors, Pe = Object.getOwnPropertySymbols, sr = Object.prototype.hasOwnProperty, cr = Object.prototype.propertyIsEnumerable, St = (e, t, r) => t in e ? li(e, t, {
4
4
  enumerable: !0,
5
5
  configurable: !0,
@@ -24,7 +24,7 @@ var li = Object.defineProperty, di = Object.defineProperties, si = Object.getOwn
24
24
  let pr = class extends ar {
25
25
  constructor(e, t) {
26
26
  var r;
27
- super((r = e.jaql.title) !== null && r !== void 0 ? r : "", t), this.__serializable = "JaqlElement", this.expression = e.jaql.dim || e.jaql.formula, this.metadataItem = e, e.jaql.agg ? this.aggregation = e.jaql.agg : delete this.aggregation, e.jaql.formula ? this.formula = e.jaql.formula : delete this.formula, e.jaql.sort ? this.sortType = Qa(e.jaql.sort) : delete this.sortType, this.skipValidation = !0;
27
+ super((r = e.jaql.title) !== null && r !== void 0 ? r : "", t), this.__serializable = "JaqlElement", this.expression = e.jaql.dim || e.jaql.formula, this.metadataItem = e, e.jaql.agg ? this.aggregation = e.jaql.agg : delete this.aggregation, e.jaql.formula ? this.formula = e.jaql.formula : delete this.formula, e.jaql.sort ? this.sortType = Ua(e.jaql.sort) : delete this.sortType, this.skipValidation = !0;
28
28
  }
29
29
  get id() {
30
30
  return this.expression;
@@ -700,21 +700,21 @@ import { DashboardById } from '@sisense/sdk-ui-vue';
700
700
  a += `,${Oe}`;
701
701
  }), a += " ".repeat(t), a += "}"), a;
702
702
  };
703
- function Di(e) {
703
+ function Ii(e) {
704
704
  return te(e, Re);
705
705
  }
706
- function Dt(e, t = "data-source-placeholder") {
706
+ function It(e, t = "data-source-placeholder") {
707
707
  if (!e)
708
708
  return t;
709
709
  const r = typeof e == "object" && "title" in e ? e.title : e;
710
710
  return hi(r);
711
711
  }
712
- function It(e, t = !0) {
712
+ function Dt(e, t = !0) {
713
713
  const r = [];
714
714
  return t && r.push("measureFactory"), X(e) && r.push("filterFactory"), r.length > 0 ? `import { ${r.join(", ")} } from '@sisense/sdk-data';` : "";
715
715
  }
716
716
  const At = `
717
- `, Ii = (e, t) => {
717
+ `, Di = (e, t) => {
718
718
  if (e.composeCode)
719
719
  return `${At}${" ".repeat(t)}${e.composeCode}`;
720
720
  const r = e.jaql().jaql;
@@ -723,7 +723,7 @@ const At = `
723
723
  if (!e)
724
724
  return "";
725
725
  let r = "";
726
- return r += `[${e.map((a) => Ii(a, t + 2))}${e.length ? `
726
+ return r += `[${e.map((a) => Di(a, t + 2))}${e.length ? `
727
727
  ` + " ".repeat(t + 2) : ""}]`, r;
728
728
  }, Lt = (e) => e ? Array.isArray(e) ? Ai(e, 6) : "/** Filter relations not supported yet */" : "[]", Li = ["executeQueryByWidgetIdTmpl", "widgetByIdTmpl"], Ti = "chartWidgetTmpl", Ni = "pivotTableWidgetTmpl", ji = (e) => e, Oi = ({
729
729
  dashboardOid: e,
@@ -745,12 +745,12 @@ const At = `
745
745
  idString: e.id,
746
746
  widgetTypeString: "chart",
747
747
  titleString: e.title,
748
- dataSourceString: Dt(e.dataSource),
748
+ dataSourceString: It(e.dataSource),
749
749
  chartTypeString: ji(e.chartType),
750
- dataOptionsString: Di(e.dataOptions),
750
+ dataOptionsString: Ii(e.dataOptions),
751
751
  filtersString: Lt(e.filters),
752
752
  componentString: "ChartWidget",
753
- extraImportsString: It(e.filters || [], a),
753
+ extraImportsString: Dt(e.filters || [], a),
754
754
  styleOptionsString: te(e.styleOptions || {}, Re),
755
755
  drilldownOptionsString: te(e.drilldownOptions || {}, Re)
756
756
  };
@@ -761,11 +761,11 @@ const At = `
761
761
  idString: e.id,
762
762
  widgetTypeString: "pivot",
763
763
  titleString: e.title,
764
- dataSourceString: Dt(e.dataSource),
764
+ dataSourceString: It(e.dataSource),
765
765
  dataOptionsString: te(e.dataOptions),
766
766
  filtersString: Lt(e.filters),
767
767
  componentString: "PivotTableWidget",
768
- extraImportsString: It(e.filters || [], a),
768
+ extraImportsString: Dt(e.filters || [], a),
769
769
  styleOptionsString: te(e.styleOptions || {}, Re)
770
770
  };
771
771
  return at(r.pivot, i, t);
@@ -829,7 +829,7 @@ const At = `
829
829
  return K(O({}, o), {
830
830
  column: s
831
831
  });
832
- if (Ha(s.type)) {
832
+ if (Ba(s.type)) {
833
833
  const m = (x = (f = u.format) == null ? void 0 : f.mask) == null ? void 0 : x[u.jaql.level];
834
834
  if (m)
835
835
  return K(O({}, o), {
@@ -910,7 +910,7 @@ const At = `
910
910
  function Gi(e) {
911
911
  return !!(e && (e.top !== void 0 || e.bottom !== void 0));
912
912
  }
913
- const Bi = (e) => {
913
+ const Hi = (e) => {
914
914
  const t = e.find((r) => r.panel === "rows");
915
915
  return t ? e.map((r) => {
916
916
  const a = r.jaql.filter;
@@ -940,11 +940,11 @@ const Bi = (e) => {
940
940
  }, g)
941
941
  });
942
942
  }) : e;
943
- }, Hi = (e) => "chartType" in e ? e : {
943
+ }, Bi = (e) => "chartType" in e ? e : {
944
944
  chartType: "table",
945
945
  chartFamily: "table",
946
946
  axesMapping: {}
947
- }, Yi = (e) => e.map((t) => Wa(t.jaql)), Ui = (e) => e.reduce((t, r) => {
947
+ }, Yi = (e) => e.map((t) => Wa(t.jaql)), Qi = (e) => e.reduce((t, r) => {
948
948
  if ((r.panel === "scope" || r.jaql.filter) && t.metadataFilters.push(vt(r)), r.panel !== "scope") {
949
949
  const a = vt(r);
950
950
  delete a.jaql.filter, t.metadataColumns.push(a);
@@ -953,7 +953,7 @@ const Bi = (e) => {
953
953
  }, {
954
954
  metadataColumns: [],
955
955
  metadataFilters: []
956
- }), Qi = (e, t) => {
956
+ }), Ui = (e, t) => {
957
957
  if (!mi(e))
958
958
  try {
959
959
  const {
@@ -967,11 +967,11 @@ const Bi = (e) => {
967
967
  datasource: p
968
968
  } = a, c = K(O({}, p), {
969
969
  type: p.type || "elasticube"
970
- }), g = Aa(c), f = Bi(d).map((M) => Ci(M)).map((M) => K(O({}, M), {
970
+ }), g = Aa(c), f = Hi(d).map((M) => Ci(M)).map((M) => K(O({}, M), {
971
971
  jaql: K(O({}, M.jaql), {
972
972
  datasource: g
973
973
  })
974
- })), x = Hi(i), o = x.chartType.toLowerCase(), u = {
974
+ })), x = Bi(i), o = x.chartType.toLowerCase(), u = {
975
975
  cornerRadius: "Small",
976
976
  header: {
977
977
  // remove info button and render empty toolbar instead
@@ -980,7 +980,7 @@ const Bi = (e) => {
980
980
  }, {
981
981
  metadataColumns: s,
982
982
  metadataFilters: m
983
- } = Ui(f), h = Yi(m), {
983
+ } = Qi(f), h = Yi(m), {
984
984
  dataOptions: w,
985
985
  chartStyleOptions: _
986
986
  } = qi(s, x, r), y = O(O({}, _), u);
@@ -998,7 +998,7 @@ const Bi = (e) => {
998
998
  console.error(r);
999
999
  return;
1000
1000
  }
1001
- }, ft = (e, t) => Qi(e, t), Fi = (e) => gi(e) ? Oi(e) : zi(e), br = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1001
+ }, ft = (e, t) => Ui(e, t), Fi = (e) => gi(e) ? Oi(e) : zi(e), br = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1002
1002
  __proto__: null,
1003
1003
  toWidgetCode: Fi,
1004
1004
  toWidgetProps: ft
@@ -1010,7 +1010,7 @@ var Vi = Object.defineProperty, $i = Object.defineProperties, Ji = Object.getOwn
1010
1010
  configurable: !0,
1011
1011
  writable: !0,
1012
1012
  value: r
1013
- }) : e[t] = r, D = (e, t) => {
1013
+ }) : e[t] = r, I = (e, t) => {
1014
1014
  for (var r in t || (t = {}))
1015
1015
  fr.call(t, r) && jt(e, r, t[r]);
1016
1016
  if (qe)
@@ -1079,20 +1079,21 @@ class Ki extends Pa {
1079
1079
  });
1080
1080
  }
1081
1081
  mutate(t, r) {
1082
- return this.mutateOptions = r, this.currentMutation && this.currentMutation.removeObserver(this), this.currentMutation = this.client.getMutationCache().build(this.client, j(D({}, this.options), {
1082
+ return this.mutateOptions = r, this.currentMutation && this.currentMutation.removeObserver(this), this.currentMutation = this.client.getMutationCache().build(this.client, j(I({}, this.options), {
1083
1083
  variables: typeof t < "u" ? t : this.options.variables
1084
1084
  })), this.currentMutation.addObserver(this), this.currentMutation.execute();
1085
1085
  }
1086
1086
  updateResult() {
1087
- const t = this.currentMutation ? this.currentMutation.state : Ga(), r = j(D({}, t), {
1088
- isLoading: t.status === "loading",
1087
+ const t = this.currentMutation ? this.currentMutation.state : Ga(), r = t.status === "loading", a = j(I({}, t), {
1088
+ isLoading: r,
1089
+ isPending: r,
1089
1090
  isSuccess: t.status === "success",
1090
1091
  isError: t.status === "error",
1091
1092
  isIdle: t.status === "idle",
1092
1093
  mutate: this.mutate,
1093
1094
  reset: this.reset
1094
1095
  });
1095
- this.currentResult = r;
1096
+ this.currentResult = a;
1096
1097
  }
1097
1098
  notify(t) {
1098
1099
  er.batch(() => {
@@ -1114,10 +1115,10 @@ class Ki extends Pa {
1114
1115
  }
1115
1116
  }
1116
1117
  function xt(e, t, r) {
1117
- const a = La(e, t), i = De({
1118
+ const a = La(e, t), i = Ie({
1118
1119
  context: a.context
1119
1120
  }), [l] = Z(() => new Ki(i, a));
1120
- Ie(() => {
1121
+ De(() => {
1121
1122
  l.setOptions(a);
1122
1123
  }, [l, a]);
1123
1124
  const d = Ta(N((c) => l.subscribe(er.batchCalls(c)), [l]), () => l.getCurrentResult(), () => l.getCurrentResult()), p = N((c, g) => {
@@ -1125,7 +1126,7 @@ function xt(e, t, r) {
1125
1126
  }, [l]);
1126
1127
  if (d.error && Na(l.options.useErrorBoundary, [d.error]))
1127
1128
  throw d.error;
1128
- return j(D({}, d), {
1129
+ return j(I({}, d), {
1129
1130
  mutate: p,
1130
1131
  mutateAsync: d.mutate
1131
1132
  });
@@ -1168,14 +1169,14 @@ new Vt({
1168
1169
  }
1169
1170
  }
1170
1171
  });
1171
- const kr = /* @__PURE__ */ Be(void 0), re = () => ut(kr), yr = /* @__PURE__ */ Be({}), to = () => ut(yr), ro = ({
1172
+ const kr = /* @__PURE__ */ He(void 0), re = () => ut(kr), yr = /* @__PURE__ */ He({}), to = () => ut(yr), ro = ({
1172
1173
  children: e
1173
1174
  }) => {
1174
1175
  const [t, r] = Z({}), a = N((d, p) => {
1175
1176
  var c;
1176
1177
  return `${d}_${(c = p == null ? void 0 : p.dashboardId) != null ? c : ""}`;
1177
1178
  }, []), i = N((d, p, c) => {
1178
- r((g) => j(D({}, g), {
1179
+ r((g) => j(I({}, g), {
1179
1180
  [a(p, c)]: d
1180
1181
  }));
1181
1182
  }, [a]), l = N((d, p) => t[a(d, p)], [t, a]);
@@ -1216,7 +1217,7 @@ function wr(e) {
1216
1217
  }
1217
1218
  }
1218
1219
  const _r = (e, t = !0) => {
1219
- const r = U(() => wr(e), [e]), a = re(), {
1220
+ const r = Q(() => wr(e), [e]), a = re(), {
1220
1221
  data: i,
1221
1222
  error: l,
1222
1223
  isError: d,
@@ -1275,13 +1276,13 @@ const ot = 4, oo = (e) => {
1275
1276
  refetch: s
1276
1277
  } = Me({
1277
1278
  queryKey: ["getQueryRecommendations", t, p, d],
1278
- queryFn: () => d == null ? void 0 : d.ai.getQueryRecommendations(t, D({
1279
+ queryFn: () => d == null ? void 0 : d.ai.getQueryRecommendations(t, I({
1279
1280
  numOfRecommendations: p
1280
1281
  }, l ? {
1281
1282
  userPrompt: l
1282
1283
  } : null)),
1283
1284
  enabled: !!d && c
1284
- }), m = U(() => o == null ? void 0 : o.map((h) => j(D({}, h), {
1285
+ }), m = Q(() => o == null ? void 0 : o.map((h) => j(I({}, h), {
1285
1286
  widgetProps: h.jaql ? ft(h, {
1286
1287
  useCustomizedStyleOptions: a
1287
1288
  }) : void 0
@@ -1302,13 +1303,13 @@ const ot = 4, oo = (e) => {
1302
1303
  enableInsights: !0,
1303
1304
  numOfRecommendations: 4,
1304
1305
  numOfRecentPrompts: 5
1305
- }), vr = /* @__PURE__ */ Be(D({}, Cr)), ae = () => ut(vr), no = ({
1306
+ }), vr = /* @__PURE__ */ He(I({}, Cr)), ae = () => ut(vr), no = ({
1306
1307
  children: e,
1307
1308
  value: t
1308
1309
  }) => {
1309
1310
  const {
1310
1311
  t: r
1311
- } = E(), a = Object.entries(t).reduce((i, [l, d]) => (d !== void 0 && (i[l] = d), i), j(D({}, Cr), {
1312
+ } = E(), a = Object.entries(t).reduce((i, [l, d]) => (d !== void 0 && (i[l] = d), i), j(I({}, Cr), {
1312
1313
  inputPromptText: r("ai.config.inputPromptText"),
1313
1314
  welcomeText: r("ai.config.welcomeText"),
1314
1315
  suggestionsWelcomeText: r("ai.config.suggestionsWelcomeText")
@@ -1334,7 +1335,7 @@ const ot = 4, oo = (e) => {
1334
1335
  enabled: !!t && !!e
1335
1336
  });
1336
1337
  }, Sr = (e) => {
1337
- const t = re(), r = De();
1338
+ const t = re(), r = Ie();
1338
1339
  return xt({
1339
1340
  mutationFn: () => ce(void 0, null, function* () {
1340
1341
  if (!(!t || !e))
@@ -1355,7 +1356,7 @@ const ot = 4, oo = (e) => {
1355
1356
  } = lo(e), {
1356
1357
  mutate: i
1357
1358
  } = Sr(e);
1358
- return Ie(() => {
1359
+ return De(() => {
1359
1360
  a && i();
1360
1361
  }, [a, i]), {
1361
1362
  history: t,
@@ -1394,14 +1395,14 @@ const ot = 4, oo = (e) => {
1394
1395
  isLoading: r
1395
1396
  };
1396
1397
  }, uo = (e, t, r) => {
1397
- const a = De(), i = re(), l = xt({
1398
+ const a = Ie(), i = re(), l = xt({
1398
1399
  mutationFn: () => ce(void 0, null, function* () {
1399
1400
  if (!(!i || !e))
1400
1401
  return i.ai.chat.create(e, r);
1401
1402
  }),
1402
1403
  onSuccess: () => a.invalidateQueries(["getAllChats"])
1403
1404
  });
1404
- return Ie(() => {
1405
+ return De(() => {
1405
1406
  t && l.isIdle && l.mutate();
1406
1407
  }, [t, l]), l;
1407
1408
  }, go = (e, t) => {
@@ -1422,7 +1423,7 @@ const ot = 4, oo = (e) => {
1422
1423
  throw Error(`${t}${JSON.stringify(e)}`);
1423
1424
  }
1424
1425
  }, ho = (e, t) => {
1425
- const r = De(), a = N((c) => {
1426
+ const r = Ie(), a = N((c) => {
1426
1427
  e && r.setQueriesData([kt, e], (g) => g && [...g, c]);
1427
1428
  }, [r, e]), {
1428
1429
  t: i
@@ -1477,14 +1478,14 @@ const ot = 4, oo = (e) => {
1477
1478
  data: g,
1478
1479
  isSuccess: f
1479
1480
  } = uo(e, r && !l && !p, t);
1480
- return Ie(() => {
1481
+ return De(() => {
1481
1482
  f && g && !p && d.saveChatId(g.chatId, e, t);
1482
1483
  }, [g, f, e, t, p, d]), {
1483
1484
  chatId: p,
1484
1485
  isLoading: l,
1485
1486
  isError: c
1486
1487
  };
1487
- }, bo = (e) => U(() => {
1488
+ }, bo = (e) => Q(() => {
1488
1489
  if (e != null && e.length) {
1489
1490
  const t = e[e.length - 1];
1490
1491
  if (Mr(t))
@@ -1504,7 +1505,7 @@ const ot = 4, oo = (e) => {
1504
1505
  isLoading: g,
1505
1506
  isError: f
1506
1507
  } = so(i);
1507
- Ie(() => {
1508
+ De(() => {
1508
1509
  l ? p(new ve("ai.errors.chatUnavailable")) : f && p(new ve("ai.errors.fetchHistory"));
1509
1510
  }, [l, f, r]);
1510
1511
  const {
@@ -1612,10 +1613,10 @@ function Mo({
1612
1613
  })]
1613
1614
  });
1614
1615
  }
1615
- const Do = /* @__PURE__ */ C("div", {
1616
+ const Io = /* @__PURE__ */ C("div", {
1616
1617
  target: "e1q6h1ze0",
1617
1618
  label: "Section"
1618
- })("display:flex;flex-direction:column;row-gap:4px;"), Io = /* @__PURE__ */ C("div", {
1619
+ })("display:flex;flex-direction:column;row-gap:4px;"), Do = /* @__PURE__ */ C("div", {
1619
1620
  target: "e1q6h1ze1",
1620
1621
  label: "SectionHeader"
1621
1622
  })("font-size:11px;line-height:18px;font-weight:300;color:", ({
@@ -1643,8 +1644,8 @@ function Lo({
1643
1644
  const [i, l] = Z(!1), {
1644
1645
  themeSettings: d
1645
1646
  } = L();
1646
- return /* @__PURE__ */ v(Do, {
1647
- children: [/* @__PURE__ */ n(Io, {
1647
+ return /* @__PURE__ */ v(Io, {
1648
+ children: [/* @__PURE__ */ n(Do, {
1648
1649
  onClick: () => l((p) => !p),
1649
1650
  theme: d,
1650
1651
  children: e.toUpperCase()
@@ -1720,7 +1721,7 @@ function jo({
1720
1721
  width: i == null ? void 0 : i.offsetWidth
1721
1722
  },
1722
1723
  theme: c,
1723
- children: [r && /* @__PURE__ */ n(Ye, {}), !r && !d && p.map((x) => /* @__PURE__ */ n(Lo, j(D({}, x), {
1724
+ children: [r && /* @__PURE__ */ n(Ye, {}), !r && !d && p.map((x) => /* @__PURE__ */ n(Lo, j(I({}, x), {
1724
1725
  alwaysExpanded: f
1725
1726
  }), x.title)), d && /* @__PURE__ */ n(No, {
1726
1727
  theme: c,
@@ -1838,13 +1839,13 @@ function Po({
1838
1839
  } = E(), _ = N((y) => {
1839
1840
  var M;
1840
1841
  if ((M = document.getElementById("csdk-chatbot-frame")) != null && M.contains(y.relatedTarget)) {
1841
- const I = (S) => {
1842
+ const D = (S) => {
1842
1843
  var A;
1843
- document.removeEventListener("mouseup", I), document.removeEventListener("keyup", I), S.type === "mouseup" && ((A = document.getSelection()) == null ? void 0 : A.type) !== "Range" && y.target.focus({
1844
+ document.removeEventListener("mouseup", D), document.removeEventListener("keyup", D), S.type === "mouseup" && ((A = document.getSelection()) == null ? void 0 : A.type) !== "Range" && y.target.focus({
1844
1845
  preventScroll: !0
1845
1846
  });
1846
1847
  };
1847
- document.addEventListener("mouseup", I), document.addEventListener("keyup", I);
1848
+ document.addEventListener("mouseup", D), document.addEventListener("keyup", D);
1848
1849
  }
1849
1850
  }, []);
1850
1851
  return /* @__PURE__ */ v(Eo, {
@@ -1953,7 +1954,7 @@ const Rt = ["allowFullScreen", "allowTransparency", "autoComplete", "autoFocus",
1953
1954
  lt: "<",
1954
1955
  nbsp: " ",
1955
1956
  quot: "“"
1956
- }, Go = ["style", "script"], Bo = ["src", "href", "data", "formAction", "srcDoc", "action"], Ho = /([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi, Yo = /mailto:/i, Uo = /\n{2,}$/, Dr = /^(\s*>[\s\S]*?)(?=\n\n|$)/, Qo = /^ *> ?/gm, Fo = /^(?:\[!([^\]]*)\]\n)?([\s\S]*)/, Vo = /^ {2,}\n/, $o = /^(?:( *[-*_])){3,} *(?:\n *)+\n/, Ir = /^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/, Ar = /^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/, Jo = /^(`+)((?:\\`|(?!\1)`|[^`])+)\1/, Xo = /^(?:\n *)*\n/, Ko = /\r\n?/g, en = /^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/, tn = /^\[\^([^\]]+)]/, rn = /\f/g, an = /^---[ \t]*\n(.|\n)*\n---[ \t]*\n/, on = /^\s*?\[(x|\s)\]/, Lr = /^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/, Tr = /^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/, Nr = /^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/, lt = /^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i, nn = /&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi, jr = /^<!--[\s\S]*?(?:-->)/, ln = /^(data|aria|x)-[a-z_][a-z\d_.-]*$/, dt = /^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i, dn = /^\{.*\}$/, sn = /^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/, cn = /^<([^ >]+@[^ >]+)>/, pn = /^<([^ >]+:\/[^ >]+)>/, un = /-([a-z])?/gi, Or = /^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/, gn = /^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/, hn = /^!\[([^\]]*)\] ?\[([^\]]*)\]/, mn = /^\[([^\]]*)\] ?\[([^\]]*)\]/, bn = /(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/, fn = /\t/g, xn = /(^ *\||\| *$)/g, kn = /^ *:-+: *$/, yn = /^ *:-+ *$/, wn = /^ *-+: *$/, Ue = "((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|\\\\\\1|[\\s\\S])+?)", _n = new RegExp(`^([*_])\\1${Ue}\\1\\1(?!\\1)`), Cn = new RegExp(`^([*_])${Ue}\\1(?!\\1)`), vn = new RegExp(`^(==)${Ue}\\1`), Sn = new RegExp(`^(~~)${Ue}\\1`), Mn = /^\\([^0-9A-Za-z\s])/, Wt = /\\([^0-9A-Za-z\s])/g, Dn = /^([\s\S](?:(?! |[0-9]\.)[^=*_~\-\n<`\\\[!])*)/, In = /^\n+/, An = /^([ \t]*)/, Ln = /\\([^\\])/g, Tn = /(?:^|\n)( *)$/, yt = "(?:\\d+\\.)", wt = "(?:[*+-])";
1957
+ }, Go = ["style", "script"], Ho = ["src", "href", "data", "formAction", "srcDoc", "action"], Bo = /([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi, Yo = /mailto:/i, Qo = /\n{2,}$/, Ir = /^(\s*>[\s\S]*?)(?=\n\n|$)/, Uo = /^ *> ?/gm, Fo = /^(?:\[!([^\]]*)\]\n)?([\s\S]*)/, Vo = /^ {2,}\n/, $o = /^(?:( *[-*_])){3,} *(?:\n *)+\n/, Dr = /^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/, Ar = /^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/, Jo = /^(`+)((?:\\`|(?!\1)`|[^`])+)\1/, Xo = /^(?:\n *)*\n/, Ko = /\r\n?/g, en = /^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/, tn = /^\[\^([^\]]+)]/, rn = /\f/g, an = /^---[ \t]*\n(.|\n)*\n---[ \t]*\n/, on = /^\s*?\[(x|\s)\]/, Lr = /^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/, Tr = /^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/, Nr = /^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/, lt = /^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i, nn = /&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi, jr = /^<!--[\s\S]*?(?:-->)/, ln = /^(data|aria|x)-[a-z_][a-z\d_.-]*$/, dt = /^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i, dn = /^\{.*\}$/, sn = /^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/, cn = /^<([^ >]+@[^ >]+)>/, pn = /^<([^ >]+:\/[^ >]+)>/, un = /-([a-z])?/gi, Or = /^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/, gn = /^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/, hn = /^!\[([^\]]*)\] ?\[([^\]]*)\]/, mn = /^\[([^\]]*)\] ?\[([^\]]*)\]/, bn = /(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/, fn = /\t/g, xn = /(^ *\||\| *$)/g, kn = /^ *:-+: *$/, yn = /^ *:-+ *$/, wn = /^ *-+: *$/, Qe = "((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|\\\\\\1|[\\s\\S])+?)", _n = new RegExp(`^([*_])\\1${Qe}\\1\\1(?!\\1)`), Cn = new RegExp(`^([*_])${Qe}\\1(?!\\1)`), vn = new RegExp(`^(==)${Qe}\\1`), Sn = new RegExp(`^(~~)${Qe}\\1`), Mn = /^\\([^0-9A-Za-z\s])/, Wt = /\\([^0-9A-Za-z\s])/g, In = /^([\s\S](?:(?! |[0-9]\.)[^=*_~\-\n<`\\\[!])*)/, Dn = /^\n+/, An = /^([ \t]*)/, Ln = /\\([^\\])/g, Tn = /(?:^|\n)( *)$/, yt = "(?:\\d+\\.)", wt = "(?:[*+-])";
1957
1958
  function Er(e) {
1958
1959
  return "( *)(" + (e === 1 ? yt : wt) + ") +";
1959
1960
  }
@@ -1980,7 +1981,7 @@ function Pt(e, t) {
1980
1981
  }),
1981
1982
  order: 1,
1982
1983
  parse(d, p, c) {
1983
- const g = r ? +d[2] : void 0, f = d[0].replace(Uo, `
1984
+ const g = r ? +d[2] : void 0, f = d[0].replace(Qo, `
1984
1985
  `).match(i);
1985
1986
  let x = !1;
1986
1987
  return {
@@ -1990,11 +1991,11 @@ function Pt(e, t) {
1990
1991
  `) !== -1 || w && x;
1991
1992
  x = _;
1992
1993
  const y = c.inline, M = c.list;
1993
- let I;
1994
- c.list = !0, _ ? (c.inline = !1, I = Se(h) + `
1994
+ let D;
1995
+ c.list = !0, _ ? (c.inline = !1, D = Se(h) + `
1995
1996
 
1996
- `) : (c.inline = !0, I = Se(h));
1997
- const S = p(I, c);
1997
+ `) : (c.inline = !0, D = Se(h));
1998
+ const S = p(D, c);
1998
1999
  return c.inline = y, c.list = M, S;
1999
2000
  }),
2000
2001
  ordered: r,
@@ -2011,7 +2012,7 @@ function Pt(e, t) {
2011
2012
  }))
2012
2013
  };
2013
2014
  }
2014
- const zn = new RegExp(`^\\[((?:\\[[^\\]]*\\]|[^\\[\\]]|\\](?=[^\\[]*\\]))*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*\\)`), Rn = /^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/, Br = [Dr, Ir, Ar, Lr, Nr, Tr, Or, qr, Gr], Zn = [...Br, /^[^\n]+(?: \n|\n{2,})/, lt, jr, dt];
2015
+ const zn = new RegExp(`^\\[((?:\\[[^\\]]*\\]|[^\\[\\]]|\\](?=[^\\[]*\\]))*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*\\)`), Rn = /^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/, Hr = [Ir, Dr, Ar, Lr, Nr, Tr, Or, qr, Gr], Zn = [...Hr, /^[^\n]+(?: \n|\n{2,})/, lt, jr, dt];
2015
2016
  function Se(e) {
2016
2017
  let t = e.length;
2017
2018
  for (; t > 0 && e[t - 1] <= " "; )
@@ -2090,12 +2091,12 @@ function qn(e, t) {
2090
2091
  let r = "";
2091
2092
  e.split(`
2092
2093
  `).every((i) => (i += `
2093
- `, !Br.some((l) => l.test(i)) && (r += i, !!i.trim())));
2094
+ `, !Hr.some((l) => l.test(i)) && (r += i, !!i.trim())));
2094
2095
  const a = Se(r);
2095
2096
  return a == "" ? null : [r, , a];
2096
2097
  }
2097
2098
  const Gn = /(javascript|vbscript|data(?!:image)):/i;
2098
- function Bn(e) {
2099
+ function Hn(e) {
2099
2100
  try {
2100
2101
  const t = decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g, "");
2101
2102
  if (Gn.test(t))
@@ -2105,7 +2106,7 @@ function Bn(e) {
2105
2106
  }
2106
2107
  return e;
2107
2108
  }
2108
- function Bt(e) {
2109
+ function Ht(e) {
2109
2110
  return e.replace(Ln, "$1");
2110
2111
  }
2111
2112
  function Ze(e, t, r) {
@@ -2114,7 +2115,7 @@ function Ze(e, t, r) {
2114
2115
  const l = e(t, r);
2115
2116
  return r.inline = a, r.simple = i, l;
2116
2117
  }
2117
- function Hn(e, t, r) {
2118
+ function Bn(e, t, r) {
2118
2119
  const a = r.inline || !1, i = r.simple || !1;
2119
2120
  r.inline = !1, r.simple = !0;
2120
2121
  const l = e(t, r);
@@ -2135,7 +2136,7 @@ function Xe() {
2135
2136
  function Ke() {
2136
2137
  return null;
2137
2138
  }
2138
- function Un(...e) {
2139
+ function Qn(...e) {
2139
2140
  return e.filter(Boolean).join(" ");
2140
2141
  }
2141
2142
  function et(e, t, r) {
@@ -2145,21 +2146,21 @@ function et(e, t, r) {
2145
2146
  i.shift();
2146
2147
  return a || r;
2147
2148
  }
2148
- function Qn(e = "", t = {}) {
2149
+ function Un(e = "", t = {}) {
2149
2150
  function r(o, u, ...s) {
2150
2151
  const m = et(t.overrides, `${o}.props`, {});
2151
2152
  return t.createElement(function(h, w) {
2152
2153
  const _ = et(w, h);
2153
2154
  return _ ? typeof _ == "function" || typeof _ == "object" && "render" in _ ? _ : et(w, `${h}.component`, h) : h;
2154
2155
  }(o, t.overrides), de({}, u, m, {
2155
- className: Un(u == null ? void 0 : u.className, m.className) || void 0
2156
+ className: Qn(u == null ? void 0 : u.className, m.className) || void 0
2156
2157
  }), ...s);
2157
2158
  }
2158
2159
  function a(o) {
2159
2160
  o = o.replace(an, "");
2160
2161
  let u = !1;
2161
2162
  t.forceInline ? u = !0 : t.forceBlock || (u = bn.test(o) === !1);
2162
- const s = g(c(u ? o : `${Se(o).replace(In, "")}
2163
+ const s = g(c(u ? o : `${Se(o).replace(Dn, "")}
2163
2164
 
2164
2165
  `, {
2165
2166
  inline: u
@@ -2184,7 +2185,7 @@ function Qn(e = "", t = {}) {
2184
2185
  }, h);
2185
2186
  }
2186
2187
  function i(o, u) {
2187
- const s = u.match(Ho);
2188
+ const s = u.match(Bo);
2188
2189
  return s ? s.reduce(function(m, h) {
2189
2190
  const w = h.indexOf("=");
2190
2191
  if (w !== -1) {
@@ -2198,54 +2199,54 @@ function Qn(e = "", t = {}) {
2198
2199
  }(h.slice(w + 1).trim()), M = Rt[_] || _;
2199
2200
  if (M === "ref")
2200
2201
  return m;
2201
- const I = m[M] = function(S, A, R, pe) {
2202
- return A === "style" ? function(Q) {
2202
+ const D = m[M] = function(S, A, R, pe) {
2203
+ return A === "style" ? function(U) {
2203
2204
  const q = [];
2204
- let B = "", F = !1, G = !1, V = "";
2205
- if (!Q)
2205
+ let H = "", F = !1, G = !1, V = "";
2206
+ if (!U)
2206
2207
  return q;
2207
- for (let z = 0; z < Q.length; z++) {
2208
- const W = Q[z];
2209
- if (W !== '"' && W !== "'" || F || (G ? W === V && (G = !1, V = "") : (G = !0, V = W)), W === "(" && B.endsWith("url") ? F = !0 : W === ")" && F && (F = !1), W !== ";" || G || F)
2210
- B += W;
2208
+ for (let z = 0; z < U.length; z++) {
2209
+ const W = U[z];
2210
+ if (W !== '"' && W !== "'" || F || (G ? W === V && (G = !1, V = "") : (G = !0, V = W)), W === "(" && H.endsWith("url") ? F = !0 : W === ")" && F && (F = !1), W !== ";" || G || F)
2211
+ H += W;
2211
2212
  else {
2212
- const H = B.trim();
2213
- if (H) {
2214
- const le = H.indexOf(":");
2213
+ const B = H.trim();
2214
+ if (B) {
2215
+ const le = B.indexOf(":");
2215
2216
  if (le > 0) {
2216
- const ue = H.slice(0, le).trim(), xe = H.slice(le + 1).trim();
2217
+ const ue = B.slice(0, le).trim(), xe = B.slice(le + 1).trim();
2217
2218
  q.push([ue, xe]);
2218
2219
  }
2219
2220
  }
2220
- B = "";
2221
+ H = "";
2221
2222
  }
2222
2223
  }
2223
- const $ = B.trim();
2224
+ const $ = H.trim();
2224
2225
  if ($) {
2225
2226
  const z = $.indexOf(":");
2226
2227
  if (z > 0) {
2227
- const W = $.slice(0, z).trim(), H = $.slice(z + 1).trim();
2228
- q.push([W, H]);
2228
+ const W = $.slice(0, z).trim(), B = $.slice(z + 1).trim();
2229
+ q.push([W, B]);
2229
2230
  }
2230
2231
  }
2231
2232
  return q;
2232
- }(R).reduce(function(Q, [q, B]) {
2233
- return Q[q.replace(/(-[a-z])/g, (F) => F[1].toUpperCase())] = pe(B, S, q), Q;
2234
- }, {}) : Bo.indexOf(A) !== -1 ? pe(R, S, A) : (R.match(dn) && (R = R.slice(1, R.length - 1)), R === "true" || R !== "false" && R);
2233
+ }(R).reduce(function(U, [q, H]) {
2234
+ return U[q.replace(/(-[a-z])/g, (F) => F[1].toUpperCase())] = pe(H, S, q), U;
2235
+ }, {}) : Ho.indexOf(A) !== -1 ? pe(R, S, A) : (R.match(dn) && (R = R.slice(1, R.length - 1)), R === "true" || R !== "false" && R);
2235
2236
  }(o, _, y, t.sanitizer);
2236
- typeof I == "string" && (lt.test(I) || dt.test(I)) && (m[M] = a(I.trim()));
2237
+ typeof D == "string" && (lt.test(D) || dt.test(D)) && (m[M] = a(D.trim()));
2237
2238
  } else
2238
2239
  h !== "style" && (m[Rt[h] || h] = !0);
2239
2240
  return m;
2240
2241
  }, {}) : null;
2241
2242
  }
2242
- t.overrides = t.overrides || {}, t.sanitizer = t.sanitizer || Bn, t.slugify = t.slugify || we, t.namedCodesToUnicode = t.namedCodesToUnicode ? de({}, Zt, t.namedCodesToUnicode) : Zt, t.createElement = t.createElement || Ba;
2243
+ t.overrides = t.overrides || {}, t.sanitizer = t.sanitizer || Hn, t.slugify = t.slugify || we, t.namedCodesToUnicode = t.namedCodesToUnicode ? de({}, Zt, t.namedCodesToUnicode) : Zt, t.createElement = t.createElement || Ha;
2243
2244
  const l = [], d = {}, p = {
2244
2245
  [k.blockQuote]: {
2245
- match: ee(Dr),
2246
+ match: ee(Ir),
2246
2247
  order: 1,
2247
2248
  parse(o, u, s) {
2248
- const [, m, h] = o[0].replace(Qo, "").match(Fo);
2249
+ const [, m, h] = o[0].replace(Uo, "").match(Fo);
2249
2250
  return {
2250
2251
  alert: m,
2251
2252
  children: u(h, s)
@@ -2297,7 +2298,7 @@ function Qn(e = "", t = {}) {
2297
2298
  }), o.text))
2298
2299
  },
2299
2300
  [k.codeFenced]: {
2300
- match: ee(Ir),
2301
+ match: ee(Dr),
2301
2302
  order: 0,
2302
2303
  parse: (o) => ({
2303
2304
  attrs: i("code", o[3] || ""),
@@ -2380,12 +2381,12 @@ function Qn(e = "", t = {}) {
2380
2381
  parse(o, u, s) {
2381
2382
  const [, m] = o[3].match(An), h = new RegExp(`^${m}`, "gm"), w = o[3].replace(h, ""), _ = (y = w, Zn.some((R) => R.test(y)) ? Yn : Ze);
2382
2383
  var y;
2383
- const M = o[1].toLowerCase(), I = Go.indexOf(M) !== -1, S = (I ? M : o[1]).trim(), A = {
2384
+ const M = o[1].toLowerCase(), D = Go.indexOf(M) !== -1, S = (D ? M : o[1]).trim(), A = {
2384
2385
  attrs: i(S, o[2]),
2385
- noInnerParse: I,
2386
+ noInnerParse: D,
2386
2387
  tag: S
2387
2388
  };
2388
- return s.inAnchor = s.inAnchor || M === "a", I ? A.text = o[3] : A.children = _(u, w, s), s.inAnchor = !1, A;
2389
+ return s.inAnchor = s.inAnchor || M === "a", D ? A.text = o[3] : A.children = _(u, w, s), s.inAnchor = !1, A;
2389
2390
  },
2390
2391
  render: (o, u, s) => r(o.tag, de({
2391
2392
  key: s.key
@@ -2416,7 +2417,7 @@ function Qn(e = "", t = {}) {
2416
2417
  order: 1,
2417
2418
  parse: (o) => ({
2418
2419
  alt: o[1],
2419
- target: Bt(o[2]),
2420
+ target: Ht(o[2]),
2420
2421
  title: o[3]
2421
2422
  }),
2422
2423
  render: (o, u, s) => r("img", {
@@ -2430,8 +2431,8 @@ function Qn(e = "", t = {}) {
2430
2431
  match: ie(zn),
2431
2432
  order: 3,
2432
2433
  parse: (o, u, s) => ({
2433
- children: Hn(u, o[1], s),
2434
- target: Bt(o[2]),
2434
+ children: Bn(u, o[1], s),
2435
+ target: Ht(o[2]),
2435
2436
  title: o[3]
2436
2437
  }),
2437
2438
  render: (o, u, s) => r("a", {
@@ -2562,7 +2563,7 @@ function Qn(e = "", t = {}) {
2562
2563
  }
2563
2564
  },
2564
2565
  [k.text]: {
2565
- match: _e(Dn),
2566
+ match: _e(In),
2566
2567
  order: 4,
2567
2568
  parse: (o) => ({
2568
2569
  text: o[0].replace(nn, (u, s) => t.namedCodesToUnicode[s] ? t.namedCodesToUnicode[s] : u)
@@ -2618,7 +2619,7 @@ function Qn(e = "", t = {}) {
2618
2619
  const c = function(o) {
2619
2620
  let u = Object.keys(o);
2620
2621
  function s(m, h) {
2621
- let w, _, y = [], M = "", I = "";
2622
+ let w, _, y = [], M = "", D = "";
2622
2623
  for (h.prevCapture = h.prevCapture || ""; m; ) {
2623
2624
  let S = 0;
2624
2625
  for (; S < u.length; ) {
@@ -2628,7 +2629,7 @@ function Qn(e = "", t = {}) {
2628
2629
  }
2629
2630
  const A = w.match(m, h);
2630
2631
  if (A) {
2631
- I = A[0], h.prevCapture += I, m = m.substring(I.length), _ = w.parse(A, s, h), _.type == null && (_.type = M), y.push(_);
2632
+ D = A[0], h.prevCapture += D, m = m.substring(D.length), _ = w.parse(A, s, h), _.type == null && (_.type = M), y.push(_);
2632
2633
  break;
2633
2634
  }
2634
2635
  S++;
@@ -2688,7 +2689,7 @@ const Fn = (e) => {
2688
2689
  l.indexOf(d = g[p]) >= 0 || (c[d] = i[d]);
2689
2690
  return c;
2690
2691
  }(e, qo);
2691
- return Oa(Qn(t, r), a);
2692
+ return Oa(Un(t, r), a);
2692
2693
  }, Vn = /* @__PURE__ */ C("div", {
2693
2694
  target: "e1vkf9b40",
2694
2695
  label: "FlexContainer"
@@ -2698,7 +2699,7 @@ const Fn = (e) => {
2698
2699
  justify-content: flex-end;
2699
2700
  ` : P`
2700
2701
  justify-content: flex-start;
2701
- `), Hr = /* @__PURE__ */ C("div", {
2702
+ `), Br = /* @__PURE__ */ C("div", {
2702
2703
  target: "e1vkf9b41",
2703
2704
  label: "MessageContainer"
2704
2705
  })("font-size:inherit;line-height:inherit;padding-top:8.5px;padding-bottom:8.5px;padding-left:0.5rem;padding-right:0.5rem;white-space:pre-wrap;overflow-wrap:break-word;box-sizing:border-box;", ({
@@ -2728,7 +2729,7 @@ const Fn = (e) => {
2728
2729
  return /* @__PURE__ */ n(Vn, {
2729
2730
  theme: r,
2730
2731
  align: e,
2731
- children: /* @__PURE__ */ n(Hr, {
2732
+ children: /* @__PURE__ */ n(Br, {
2732
2733
  theme: r,
2733
2734
  align: e,
2734
2735
  children: typeof t == "string" ? /* @__PURE__ */ n(Fn, {
@@ -2779,7 +2780,7 @@ const Ee = /* @__PURE__ */ C("div", {
2779
2780
  target: "e3ryei50",
2780
2781
  label: "Dot"
2781
2782
  })("width:5px;height:5px;border-radius:50%;background-color:", (e) => e.color, ";animation:hop 0.9s ease-out infinite;&:nth-of-type(2){animation-delay:0.1s;}&:nth-of-type(3){animation-delay:0.2s;}&:nth-of-type(4){animation-delay:0.3s;}@keyframes hop{0%,40%{transform:translateY(0);}20%{transform:translateY(-100%);}}");
2782
- function Ur() {
2783
+ function Qr() {
2783
2784
  const {
2784
2785
  themeSettings: e
2785
2786
  } = L(), t = e.aiChat.icons.color;
@@ -2920,9 +2921,9 @@ function rl({
2920
2921
  function al(e) {
2921
2922
  return Ma("MuiDialog", e);
2922
2923
  }
2923
- const tt = pa("MuiDialog", ["root", "scrollPaper", "scrollBody", "container", "paper", "paperScrollPaper", "paperScrollBody", "paperWidthFalse", "paperWidthXs", "paperWidthSm", "paperWidthMd", "paperWidthLg", "paperWidthXl", "paperFullWidth", "paperFullScreen"]), Qr = /* @__PURE__ */ Be({});
2924
- process.env.NODE_ENV !== "production" && (Qr.displayName = "DialogContext");
2925
- const il = He(ua, {
2924
+ const tt = pa("MuiDialog", ["root", "scrollPaper", "scrollBody", "container", "paper", "paperScrollPaper", "paperScrollBody", "paperWidthFalse", "paperWidthXs", "paperWidthSm", "paperWidthMd", "paperWidthLg", "paperWidthXl", "paperFullWidth", "paperFullScreen"]), Ur = /* @__PURE__ */ He({});
2925
+ process.env.NODE_ENV !== "production" && (Ur.displayName = "DialogContext");
2926
+ const il = Be(ua, {
2926
2927
  name: "MuiDialog",
2927
2928
  slot: "Backdrop",
2928
2929
  overrides: (e, t) => t.backdrop
@@ -2942,7 +2943,7 @@ const il = He(ua, {
2942
2943
  paper: ["paper", `paperScroll${me(r)}`, `paperWidth${me(String(a))}`, i && "paperFullWidth", l && "paperFullScreen"]
2943
2944
  };
2944
2945
  return wa(d, al, t);
2945
- }, nl = He(ga, {
2946
+ }, nl = Be(ga, {
2946
2947
  name: "MuiDialog",
2947
2948
  slot: "Root",
2948
2949
  overridesResolver: (e, t) => t.root
@@ -2951,7 +2952,7 @@ const il = He(ua, {
2951
2952
  // Use !important to override the Modal inline-style.
2952
2953
  position: "absolute !important"
2953
2954
  }
2954
- }), ll = He("div", {
2955
+ }), ll = Be("div", {
2955
2956
  name: "MuiDialog",
2956
2957
  slot: "Container",
2957
2958
  overridesResolver: (e, t) => {
@@ -2993,7 +2994,7 @@ const il = He(ua, {
2993
2994
  }
2994
2995
  }
2995
2996
  }]
2996
- }), dl = He($t, {
2997
+ }), dl = Be($t, {
2997
2998
  name: "MuiDialog",
2998
2999
  slot: "Paper",
2999
3000
  overridesResolver: (e, t) => {
@@ -3108,15 +3109,15 @@ const il = He(ua, {
3108
3109
  onClick: _,
3109
3110
  onClose: y,
3110
3111
  open: M,
3111
- PaperComponent: I = $t,
3112
+ PaperComponent: D = $t,
3112
3113
  PaperProps: S = {},
3113
3114
  scroll: A = "paper",
3114
3115
  slots: R = {},
3115
3116
  slotProps: pe = {},
3116
- TransitionComponent: Q = Ct,
3117
+ TransitionComponent: U = Ct,
3117
3118
  transitionDuration: q = i,
3118
- TransitionProps: B
3119
- } = l, F = Xi(l, ["aria-describedby", "aria-labelledby", "aria-modal", "BackdropComponent", "BackdropProps", "children", "className", "disableEscapeKeyDown", "fullScreen", "fullWidth", "maxWidth", "onBackdropClick", "onClick", "onClose", "open", "PaperComponent", "PaperProps", "scroll", "slots", "slotProps", "TransitionComponent", "transitionDuration", "TransitionProps"]), G = j(D({}, r), {
3119
+ TransitionProps: H
3120
+ } = l, F = Xi(l, ["aria-describedby", "aria-labelledby", "aria-modal", "BackdropComponent", "BackdropProps", "children", "className", "disableEscapeKeyDown", "fullScreen", "fullWidth", "maxWidth", "onBackdropClick", "onClick", "onClose", "open", "PaperComponent", "PaperProps", "scroll", "slots", "slotProps", "TransitionComponent", "transitionDuration", "TransitionProps"]), G = j(I({}, r), {
3120
3121
  disableEscapeKeyDown: u,
3121
3122
  fullScreen: s,
3122
3123
  fullWidth: m,
@@ -3126,12 +3127,12 @@ const il = He(ua, {
3126
3127
  $.current = ge.target === ge.currentTarget;
3127
3128
  }, W = (ge) => {
3128
3129
  _ && _(ge), $.current && ($.current = null, w && w(ge), y && y(ge, "backdropClick"));
3129
- }, H = fa(p), le = U(() => ({
3130
- titleId: H
3131
- }), [H]), ue = D({
3132
- transition: Q
3133
- }, R), xe = D({
3134
- transition: B,
3130
+ }, B = fa(p), le = Q(() => ({
3131
+ titleId: B
3132
+ }), [B]), ue = I({
3133
+ transition: U
3134
+ }, R), xe = I({
3135
+ transition: H,
3135
3136
  paper: S,
3136
3137
  backdrop: f
3137
3138
  }, pe), T = {
@@ -3171,13 +3172,13 @@ const il = He(ua, {
3171
3172
  role: "presentation"
3172
3173
  }
3173
3174
  });
3174
- return /* @__PURE__ */ ye(J, j(D(D({
3175
+ return /* @__PURE__ */ ye(J, j(I(I({
3175
3176
  closeAfterTransition: !0,
3176
3177
  slots: {
3177
3178
  backdrop: Ne
3178
3179
  },
3179
3180
  slotProps: {
3180
- backdrop: D({
3181
+ backdrop: I({
3181
3182
  transitionDuration: q,
3182
3183
  as: g
3183
3184
  }, ra)
@@ -3187,19 +3188,19 @@ const il = He(ua, {
3187
3188
  open: M,
3188
3189
  onClick: W
3189
3190
  }, Te), F), {
3190
- children: /* @__PURE__ */ ye(la, j(D({}, da), {
3191
- children: /* @__PURE__ */ ye(oa, j(D({
3191
+ children: /* @__PURE__ */ ye(la, j(I({}, da), {
3192
+ children: /* @__PURE__ */ ye(oa, j(I({
3192
3193
  onMouseDown: z
3193
3194
  }, na), {
3194
- children: /* @__PURE__ */ ye(aa, j(D({
3195
- as: I,
3195
+ children: /* @__PURE__ */ ye(aa, j(I({
3196
+ as: D,
3196
3197
  elevation: 24,
3197
3198
  role: "dialog",
3198
3199
  "aria-describedby": d,
3199
- "aria-labelledby": H,
3200
+ "aria-labelledby": B,
3200
3201
  "aria-modal": c
3201
3202
  }, ia), {
3202
- children: /* @__PURE__ */ ye(Qr.Provider, {
3203
+ children: /* @__PURE__ */ ye(Ur.Provider, {
3203
3204
  value: le,
3204
3205
  children: x
3205
3206
  })
@@ -3633,7 +3634,7 @@ function xl({
3633
3634
  onRefresh: t,
3634
3635
  onExpand: r
3635
3636
  }) {
3636
- const a = U(() => [{
3637
+ const a = Q(() => [{
3637
3638
  title: "Refresh",
3638
3639
  onClick: t,
3639
3640
  icon: /* @__PURE__ */ n(gl, {})
@@ -3657,7 +3658,7 @@ function kl({
3657
3658
  } = L(), {
3658
3659
  inlineElement: i,
3659
3660
  expandedElement: l
3660
- } = U(() => {
3661
+ } = Q(() => {
3661
3662
  const d = ft(e, {
3662
3663
  useCustomizedStyleOptions: !0
3663
3664
  });
@@ -3681,10 +3682,10 @@ function kl({
3681
3682
  if (Xa(d.chartType))
3682
3683
  f = /* @__PURE__ */ n("div", {
3683
3684
  className: "csdk-h-[245px]",
3684
- children: /* @__PURE__ */ n(je, j(D({}, d), {
3685
+ children: /* @__PURE__ */ n(je, j(I({}, d), {
3685
3686
  styleOptions: g
3686
3687
  }))
3687
- }), x = /* @__PURE__ */ n(je, j(D({}, d), {
3688
+ }), x = /* @__PURE__ */ n(je, j(I({}, d), {
3688
3689
  styleOptions: {
3689
3690
  header: {
3690
3691
  hidden: !0
@@ -3692,21 +3693,21 @@ function kl({
3692
3693
  }
3693
3694
  }));
3694
3695
  else {
3695
- const o = j(D({}, c), {
3696
+ const o = j(I({}, c), {
3696
3697
  header: {
3697
3698
  hidden: !0
3698
3699
  }
3699
- }), u = D(j(D({}, c), {
3700
+ }), u = I(j(I({}, c), {
3700
3701
  legend: void 0,
3701
3702
  xAxis: void 0,
3702
3703
  yAxis: void 0
3703
3704
  }), g);
3704
3705
  delete u.legend, delete u.xAxis, delete u.yAxis, f = /* @__PURE__ */ n("div", {
3705
- children: /* @__PURE__ */ n(je, j(D({}, d), {
3706
+ children: /* @__PURE__ */ n(je, j(I({}, d), {
3706
3707
  styleOptions: u
3707
3708
  }))
3708
- }), x = /* @__PURE__ */ n(je, j(D({}, d), {
3709
- styleOptions: D({
3709
+ }), x = /* @__PURE__ */ n(je, j(I({}, d), {
3710
+ styleOptions: I({
3710
3711
  cornerRadius: "None"
3711
3712
  }, o)
3712
3713
  }));
@@ -3859,7 +3860,7 @@ function Ml({
3859
3860
  })]
3860
3861
  }) : null;
3861
3862
  }
3862
- function Ht({
3863
+ function Bt({
3863
3864
  sourceId: e,
3864
3865
  data: t,
3865
3866
  type: r,
@@ -3873,7 +3874,7 @@ function Ht({
3873
3874
  data: t,
3874
3875
  rating: x
3875
3876
  });
3876
- }, [l, e, t, r]), 200), [p, c] = vl(), g = U(() => a === "onHover" ? c : a !== "never", [c, a]), {
3877
+ }, [l, e, t, r]), 200), [p, c] = vl(), g = Q(() => a === "onHover" ? c : a !== "never", [c, a]), {
3877
3878
  themeSettings: f
3878
3879
  } = L();
3879
3880
  return /* @__PURE__ */ n(Sl, {
@@ -3885,7 +3886,7 @@ function Ht({
3885
3886
  }))
3886
3887
  });
3887
3888
  }
3888
- const Dl = 18 * 5;
3889
+ const Il = 18 * 5;
3889
3890
  function $r({
3890
3891
  text: e
3891
3892
  }) {
@@ -3893,7 +3894,7 @@ function $r({
3893
3894
  t: l
3894
3895
  } = E(), d = se(null);
3895
3896
  return We(() => {
3896
- d.current && d.current.scrollHeight > Dl && i(!0);
3897
+ d.current && d.current.scrollHeight > Il && i(!0);
3897
3898
  }, [e]), /* @__PURE__ */ v("div", {
3898
3899
  children: [/* @__PURE__ */ n("div", {
3899
3900
  ref: d,
@@ -3909,7 +3910,7 @@ function $r({
3909
3910
  })]
3910
3911
  });
3911
3912
  }
3912
- function Il({
3913
+ function Dl({
3913
3914
  nlgRequest: e
3914
3915
  }) {
3915
3916
  const {
@@ -3919,7 +3920,7 @@ function Il({
3919
3920
  } = _r(e), {
3920
3921
  t: i
3921
3922
  } = E();
3922
- return r ? /* @__PURE__ */ n(Ur, {}) : a ? /* @__PURE__ */ n(ne, {
3923
+ return r ? /* @__PURE__ */ n(Qr, {}) : a ? /* @__PURE__ */ n(ne, {
3923
3924
  align: "left",
3924
3925
  children: i("ai.errors.unexpected")
3925
3926
  }) : /* @__PURE__ */ n(ne, {
@@ -3997,14 +3998,14 @@ function jl({
3997
3998
  }, w = r === "analyze", _ = `${c}${c && g ? `
3998
3999
  ` : ""}${g}`;
3999
4000
  return /* @__PURE__ */ v(Y, {
4000
- children: [/* @__PURE__ */ n(Ht, {
4001
+ children: [/* @__PURE__ */ n(Bt, {
4001
4002
  sourceId: o,
4002
4003
  data: e,
4003
4004
  type: "chats/nlq",
4004
4005
  buttonVisibility: t ? "always" : "onHover",
4005
4006
  renderContent: (y) => /* @__PURE__ */ v(Y, {
4006
4007
  children: [/* @__PURE__ */ v(Yt, {
4007
- children: [/* @__PURE__ */ n(Hr, {
4008
+ children: [/* @__PURE__ */ n(Br, {
4008
4009
  align: "left",
4009
4010
  theme: i,
4010
4011
  children: _ || `Here's ${x} showing ${Tl(l)}.`
@@ -4013,7 +4014,7 @@ function jl({
4013
4014
  content: e
4014
4015
  })]
4015
4016
  })
4016
- }), a && /* @__PURE__ */ n(Ht, {
4017
+ }), a && /* @__PURE__ */ n(Bt, {
4017
4018
  sourceId: o,
4018
4019
  data: h,
4019
4020
  type: "nlg/queryResult",
@@ -4023,7 +4024,7 @@ function jl({
4023
4024
  children: [/* @__PURE__ */ n(Ll, {
4024
4025
  onClick: m
4025
4026
  }), y]
4026
- }), u && /* @__PURE__ */ n(Il, {
4027
+ }), u && /* @__PURE__ */ n(Dl, {
4027
4028
  nlgRequest: h
4028
4029
  })]
4029
4030
  })
@@ -4061,8 +4062,8 @@ function Rl({
4061
4062
  t
4062
4063
  } = E();
4063
4064
  return /* @__PURE__ */ n(Y, {
4064
- children: e.map((r, a) => /* @__PURE__ */ n(Da, {
4065
- fallbackRender: (i) => zl(j(D({}, i), {
4065
+ children: e.map((r, a) => /* @__PURE__ */ n(Ia, {
4066
+ fallbackRender: (i) => zl(j(I({}, i), {
4066
4067
  displayMessage: t("ai.errors.unexpected")
4067
4068
  })),
4068
4069
  children: /* @__PURE__ */ n(El, {
@@ -4148,7 +4149,7 @@ const Wl = /* @__PURE__ */ C("button", {
4148
4149
  }
4149
4150
  return "";
4150
4151
  });
4151
- function Ut({
4152
+ function Qt({
4152
4153
  question: e,
4153
4154
  onClick: t
4154
4155
  }) {
@@ -4173,16 +4174,16 @@ function ql({
4173
4174
  }) {
4174
4175
  const {
4175
4176
  t: r
4176
- } = E(), [a, i] = Z(!0), l = U(() => a && e.length > 5 ? e.slice(0, 4) : e, [e, a]), {
4177
+ } = E(), [a, i] = Z(!0), l = Q(() => a && e.length > 5 ? e.slice(0, 4) : e, [e, a]), {
4177
4178
  themeSettings: d
4178
4179
  } = L();
4179
4180
  return /* @__PURE__ */ v(Pl, {
4180
4181
  "aria-label": "list of suggested questions",
4181
4182
  theme: d,
4182
- children: [l.map((p) => /* @__PURE__ */ n(Ut, {
4183
+ children: [l.map((p) => /* @__PURE__ */ n(Qt, {
4183
4184
  question: p,
4184
4185
  onClick: () => t(p)
4185
- }, p)), l.length < e.length && /* @__PURE__ */ n(Ut, {
4186
+ }, p)), l.length < e.length && /* @__PURE__ */ n(Qt, {
4186
4187
  question: r("ai.buttons.seeMore"),
4187
4188
  onClick: () => i(!1)
4188
4189
  })]
@@ -4201,15 +4202,15 @@ const Gl = /* @__PURE__ */ C("div", {
4201
4202
  ${r} 50%,
4202
4203
  ${t} 100%
4203
4204
  )`;
4204
- }, ";background-size:200% auto;animation:gradient 2s linear infinite;@keyframes gradient{0%{background-position:0 0;}100%{background-position:-200% 0;}}"), Bl = /* @__PURE__ */ C("div", {
4205
+ }, ";background-size:200% auto;animation:gradient 2s linear infinite;@keyframes gradient{0%{background-position:0 0;}100%{background-position:-200% 0;}}"), Hl = /* @__PURE__ */ C("div", {
4205
4206
  target: "ebwb3nc1",
4206
4207
  label: "SkeletonContainer"
4207
4208
  })("display:flex;flex-direction:column;row-gap:1rem;");
4208
- function Hl() {
4209
+ function Bl() {
4209
4210
  const {
4210
4211
  themeSettings: e
4211
4212
  } = L();
4212
- return /* @__PURE__ */ n(Bl, {
4213
+ return /* @__PURE__ */ n(Hl, {
4213
4214
  children: Array.from({
4214
4215
  length: 3
4215
4216
  }, (t, r) => /* @__PURE__ */ n(Gl, {
@@ -4225,7 +4226,7 @@ function Yl({
4225
4226
  const a = e.length > 0, {
4226
4227
  suggestionsWelcomeText: i
4227
4228
  } = ae();
4228
- return t ? /* @__PURE__ */ n(Hl, {}) : a ? /* @__PURE__ */ v(Y, {
4229
+ return t ? /* @__PURE__ */ n(Bl, {}) : a ? /* @__PURE__ */ v(Y, {
4229
4230
  children: [i && /* @__PURE__ */ n(ne, {
4230
4231
  align: "left",
4231
4232
  children: i
@@ -4235,12 +4236,12 @@ function Yl({
4235
4236
  })]
4236
4237
  }) : null;
4237
4238
  }
4238
- const Ul = /* @__PURE__ */ C("div", {
4239
+ const Ql = /* @__PURE__ */ C("div", {
4239
4240
  target: "ew7avl30",
4240
4241
  label: "ToolbarContainer"
4241
4242
  })("flex:0 0 80px;padding-left:14px;padding-right:14px;display:flex;align-items:center;position:relative;background-color:", ({
4242
4243
  style: e
4243
- }) => e.backgroundColor, ";"), Ql = /* @__PURE__ */ C("div", {
4244
+ }) => e.backgroundColor, ";"), Ul = /* @__PURE__ */ C("div", {
4244
4245
  target: "ew7avl31",
4245
4246
  label: "ToolbarTitle"
4246
4247
  })("font-size:18px;line-height:22px;font-weight:600;margin-left:20px;color:", ({
@@ -4251,10 +4252,10 @@ const Ul = /* @__PURE__ */ C("div", {
4251
4252
  rightNav: r,
4252
4253
  style: a
4253
4254
  }, i) {
4254
- return /* @__PURE__ */ v(Ul, {
4255
+ return /* @__PURE__ */ v(Ql, {
4255
4256
  ref: i,
4256
4257
  style: a,
4257
- children: [t, /* @__PURE__ */ n(Ql, {
4258
+ children: [t, /* @__PURE__ */ n(Ul, {
4258
4259
  style: a,
4259
4260
  children: e
4260
4261
  }), r && /* @__PURE__ */ n("div", {
@@ -4302,7 +4303,7 @@ function $l() {
4302
4303
  });
4303
4304
  }
4304
4305
  const Jl = (e, t) => {
4305
- const r = new Ua(e);
4306
+ const r = new Qa(e);
4306
4307
  return r.alpha = t, r;
4307
4308
  }, Xl = /* @__PURE__ */ C("div", {
4308
4309
  target: "e1rxvpki0",
@@ -4396,20 +4397,20 @@ function id({
4396
4397
  contextTitle: e,
4397
4398
  count: f,
4398
4399
  customPrompt: x
4399
- }), h = U(() => u == null ? void 0 : u.map((T) => T.nlqPrompt), [u]), {
4400
+ }), h = Q(() => u == null ? void 0 : u.map((T) => T.nlqPrompt), [u]), {
4400
4401
  history: w,
4401
4402
  lastNlqResponse: _,
4402
4403
  isAwaitingResponse: y,
4403
4404
  sendMessage: M,
4404
- isLoading: I,
4405
+ isLoading: D,
4405
4406
  chatId: S,
4406
4407
  lastError: A
4407
4408
  } = xo(e, r), {
4408
4409
  mutate: R,
4409
4410
  isLoading: pe
4410
- } = Sr(S), [Q, q] = Z(!1), [B, F] = Z(!1), G = () => q(!0), V = () => q(!1), $ = () => {
4411
+ } = Sr(S), [U, q] = Z(!1), [H, F] = Z(!1), G = () => q(!0), V = () => q(!1), $ = () => {
4411
4412
  R(), V();
4412
- }, z = se(null), W = se(null), H = () => {
4413
+ }, z = se(null), W = se(null), B = () => {
4413
4414
  if (!(z != null && z.current))
4414
4415
  return;
4415
4416
  const {
@@ -4420,11 +4421,11 @@ function id({
4420
4421
  if (T === void 0 || J === void 0 || Te === void 0)
4421
4422
  return;
4422
4423
  const Ne = Te - T - J > J / 2;
4423
- B !== Ne && F(Ne);
4424
+ H !== Ne && F(Ne);
4424
4425
  };
4425
4426
  We(() => {
4426
4427
  z.current && (z.current.scrollTop = z.current.scrollHeight);
4427
- }, [w, Q, y]);
4428
+ }, [w, U, y]);
4428
4429
  const le = se(null), ue = c ? /* @__PURE__ */ n(Xr, {
4429
4430
  ref: le,
4430
4431
  title: e,
@@ -4433,7 +4434,7 @@ function id({
4433
4434
  color: o.aiChat.header.textColor
4434
4435
  }),
4435
4436
  style: o.aiChat.header
4436
- }) : null, xe = U(() => [...new Set(w.filter((T) => T.role === "user").filter((T) => !(h != null && h.includes(T.content))).map((T) => T.content).reverse())].slice(0, g), [w, g, h]);
4437
+ }) : null, xe = Q(() => [...new Set(w.filter((T) => T.role === "user").filter((T) => !(h != null && h.includes(T.content))).map((T) => T.content).reverse())].slice(0, g), [w, g, h]);
4437
4438
  return (A == null ? void 0 : A.message) === d("ai.errors.chatUnavailable") ? /* @__PURE__ */ v(Y, {
4438
4439
  children: [c && ue, /* @__PURE__ */ n(Yr, {
4439
4440
  text: A.message
@@ -4442,9 +4443,9 @@ function id({
4442
4443
  children: [ue, /* @__PURE__ */ v(td, {
4443
4444
  ref: z,
4444
4445
  theme: o,
4445
- onScroll: H,
4446
+ onScroll: B,
4446
4447
  children: [/* @__PURE__ */ n(ed, {
4447
- isVisible: B,
4448
+ isVisible: H,
4448
4449
  anchorElement: W.current,
4449
4450
  onClick: () => {
4450
4451
  var T, J;
@@ -4460,7 +4461,7 @@ function id({
4460
4461
  }), A && /* @__PURE__ */ n(ne, {
4461
4462
  align: "left",
4462
4463
  children: A.message
4463
- }), I ? /* @__PURE__ */ n(Ye, {}) : /* @__PURE__ */ n(Rl, {
4464
+ }), D ? /* @__PURE__ */ n(Ye, {}) : /* @__PURE__ */ n(Rl, {
4464
4465
  messages: w
4465
4466
  }), p && _ && ((i = (a = _.followupQuestions) == null ? void 0 : a.length) != null ? i : 0) > 0 && /* @__PURE__ */ n(ad, {
4466
4467
  theme: o,
@@ -4474,7 +4475,7 @@ function id({
4474
4475
  children: T
4475
4476
  })
4476
4477
  }, J))
4477
- }), (y || pe) && /* @__PURE__ */ n(Ur, {}), Q && /* @__PURE__ */ n(rl, {
4478
+ }), (y || pe) && /* @__PURE__ */ n(Qr, {}), U && /* @__PURE__ */ n(rl, {
4478
4479
  onCancel: V,
4479
4480
  onConfirm: $
4480
4481
  })]
@@ -4483,11 +4484,11 @@ function id({
4483
4484
  theme: o,
4484
4485
  children: [/* @__PURE__ */ n(Po, {
4485
4486
  onSendMessage: M,
4486
- disabled: y || I,
4487
+ disabled: y || D,
4487
4488
  onClearHistoryClick: G,
4488
4489
  suggestions: h || [],
4489
4490
  recentPrompts: xe,
4490
- isLoading: s || I,
4491
+ isLoading: s || D,
4491
4492
  recommendationsError: m,
4492
4493
  onChange: V
4493
4494
  }), /* @__PURE__ */ n(Vl, {
@@ -4576,7 +4577,7 @@ function gd(e) {
4576
4577
  }), /* @__PURE__ */ v(ud, {
4577
4578
  theme: r,
4578
4579
  children: [a("ai.chatbotDescription"), /* @__PURE__ */ n("br", {}), /* @__PURE__ */ n("br", {}), a("ai.topicSelectPrompt")]
4579
- }), t.map((i) => /* @__PURE__ */ Ia(sd, j(D({}, i), {
4580
+ }), t.map((i) => /* @__PURE__ */ Da(sd, j(I({}, i), {
4580
4581
  key: i.title
4581
4582
  })))]
4582
4583
  });
@@ -4662,7 +4663,7 @@ function kd({
4662
4663
  themeSettings: a
4663
4664
  } = L(), {
4664
4665
  t: i
4665
- } = E(), l = U(() => e == null ? void 0 : e.map((p) => ({
4666
+ } = E(), l = Q(() => e == null ? void 0 : e.map((p) => ({
4666
4667
  title: p,
4667
4668
  onClick: () => t(p)
4668
4669
  })), [e, t]), d = va(Sa(a.aiChat.header.backgroundColor)) > 0.5;
@@ -4694,13 +4695,13 @@ function yd() {
4694
4695
  t: c
4695
4696
  } = E(), g = c("ai.errors.noAvailableDataTopics"), f = N((s) => {
4696
4697
  s.length ? s.length === 1 && (a(void 0), t(s[0])) : a(g);
4697
- }, [g]), x = U(() => {
4698
+ }, [g]), x = Q(() => {
4698
4699
  if (i && l === "idle") {
4699
4700
  const s = (d != null && d.length ? i == null ? void 0 : i.filter((m) => d == null ? void 0 : d.includes(m.title)) : i).map((m) => m.title);
4700
4701
  return f(s), s;
4701
4702
  }
4702
4703
  return [];
4703
- }, [i, l, d, f]), o = De(), u = N(() => {
4704
+ }, [i, l, d, f]), o = Ie(), u = N(() => {
4704
4705
  a(void 0), o.invalidateQueries(["getDataTopics"]);
4705
4706
  }, [o]);
4706
4707
  return r ? /* @__PURE__ */ n(Yr, {
@@ -4792,11 +4793,11 @@ function vd({
4792
4793
  })();
4793
4794
  const Kr = {
4794
4795
  api: void 0
4795
- }, ea = Symbol("aiContextKey"), Qe = () => sa(
4796
+ }, ea = Symbol("aiContextKey"), Ue = () => sa(
4796
4797
  ea,
4797
- () => Qt(Kr),
4798
+ () => Ut(Kr),
4798
4799
  !0
4799
- ), Dd = st({
4800
+ ), Id = st({
4800
4801
  props: {
4801
4802
  /**
4802
4803
  * {@inheritDoc @sisense/sdk-ui!AiContextProviderProps.volatile}
@@ -4804,7 +4805,7 @@ const Kr = {
4804
4805
  volatile: Boolean
4805
4806
  },
4806
4807
  setup(e, { slots: t }) {
4807
- const r = oi(), a = Qt(Kr), { app: i } = r.value;
4808
+ const r = oi(), a = Ut(Kr), { app: i } = r.value;
4808
4809
  return i && (a.value = {
4809
4810
  api: new Ot(i.httpClient, e.volatile)
4810
4811
  }), Ft(async () => {
@@ -4818,7 +4819,7 @@ const Kr = {
4818
4819
  };
4819
4820
  }
4820
4821
  }), ta = () => {
4821
- const e = Qe(), t = new ni({
4822
+ const e = Ue(), t = new ni({
4822
4823
  context: e.value
4823
4824
  });
4824
4825
  return Ft(() => {
@@ -4829,7 +4830,7 @@ const Kr = {
4829
4830
  propsObserver: t,
4830
4831
  providerComponent: vd
4831
4832
  };
4832
- }, Id = st({
4833
+ }, Dd = st({
4833
4834
  props: {
4834
4835
  /**
4835
4836
  * {@inheritDoc @sisense/sdk-ui!ChatbotProps.width}
@@ -4887,7 +4888,7 @@ const Kr = {
4887
4888
  status: "loading",
4888
4889
  error: void 0,
4889
4890
  data: void 0
4890
- }), a = Qe(), i = async (d) => {
4891
+ }), a = Ue(), i = async (d) => {
4891
4892
  var p;
4892
4893
  try {
4893
4894
  r({ type: "loading" });
@@ -4921,7 +4922,7 @@ const Kr = {
4921
4922
  status: "loading",
4922
4923
  error: void 0,
4923
4924
  data: void 0
4924
- }), a = Qe(), i = async (d) => {
4925
+ }), a = Ue(), i = async (d) => {
4925
4926
  try {
4926
4927
  r({ type: "loading" });
4927
4928
  const { contextTitle: p, count: c, enableAxisTitlesInWidgetProps: g, customPrompt: f } = be(e), x = c ?? ot, o = await (d == null ? void 0 : d.ai.getQueryRecommendations(p, {
@@ -4962,7 +4963,7 @@ const Kr = {
4962
4963
  status: "loading",
4963
4964
  error: void 0,
4964
4965
  data: void 0
4965
- }), a = Qe(), i = async (d) => {
4966
+ }), a = Ue(), i = async (d) => {
4966
4967
  try {
4967
4968
  r({ type: "loading" });
4968
4969
  const p = be(e), { enableAxisTitlesInWidgetProps: c } = p, { contextTitle: g, request: f } = io(p), x = await (d == null ? void 0 : d.ai.getNlqResult(g, f)), o = x ? br.toWidgetProps(x, {
@@ -4990,8 +4991,8 @@ const Kr = {
4990
4991
  };
4991
4992
  };
4992
4993
  export {
4993
- Dd as AiContextProvider,
4994
- Id as Chatbot,
4994
+ Id as AiContextProvider,
4995
+ Dd as Chatbot,
4995
4996
  Ad as GetNlgInsights,
4996
4997
  Ld as useGetNlgInsights,
4997
4998
  Nd as useGetNlqResult,