@sisense/sdk-ui 2.6.0 → 2.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (48) hide show
  1. package/dist/ai.cjs +17 -17
  2. package/dist/ai.js +653 -650
  3. package/dist/analytics-composer.cjs +1 -1
  4. package/dist/analytics-composer.js +4 -4
  5. package/dist/derive-chart-family-BCY-GLVZ.cjs +672 -0
  6. package/dist/derive-chart-family-DvYmrG1k.js +93730 -0
  7. package/dist/{dimensions-BgPl9ZS9.cjs → dimensions-DAISVpEZ.cjs} +1 -1
  8. package/dist/{dimensions-DuHaCozA.js → dimensions-WmjaZcrG.js} +1 -1
  9. package/dist/index.cjs +14 -14
  10. package/dist/index.js +4367 -4327
  11. package/dist/index.umd.js +294 -294
  12. package/dist/packages/sdk-ui/src/ai/api/types.d.ts +1 -0
  13. package/dist/packages/sdk-ui/src/ai/chat-config.d.ts +7 -0
  14. package/dist/packages/sdk-ui/src/ai/use-get-query-recommendations.d.ts +7 -0
  15. package/dist/packages/sdk-ui/src/analytics-composer/query/fix-ranking-filter-jaql.d.ts +8 -0
  16. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/cartesians/helpers/highchart-options/get-legacy-cartesian-chart-options.d.ts +3 -0
  17. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/cartesians/helpers/highchart-options/legend.d.ts +2 -0
  18. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/cartesians/helpers/highchart-options/tooltip.d.ts +4 -0
  19. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/cartesians/stackable/bar-chart/{highcharts-options-builder.d.ts → highchart-options/highcharts-options-builder.d.ts} +1 -1
  20. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/cartesians/stackable/bar-chart/highchart-options/legend.d.ts +3 -0
  21. package/dist/packages/sdk-ui/src/chart-options-processor/{cartesian-chart-options.d.ts → cartesian/cartesian-chart-options.d.ts} +6 -6
  22. package/dist/packages/sdk-ui/src/chart-options-processor/cartesian/utils/axis-configuration.d.ts +41 -0
  23. package/dist/packages/sdk-ui/src/chart-options-processor/cartesian/utils/chart-configuration.d.ts +13 -0
  24. package/dist/packages/sdk-ui/src/chart-options-processor/cartesian/utils/chart-spacing-calculator.d.ts +41 -0
  25. package/dist/packages/sdk-ui/src/chart-options-processor/cartesian/utils/series-processor.d.ts +57 -0
  26. package/dist/packages/sdk-ui/src/chart-options-processor/tooltip.d.ts +3 -29
  27. package/dist/packages/sdk-ui/src/chart-options-processor/translations/scatter-plot-options.d.ts +2 -2
  28. package/dist/packages/sdk-ui/src/chart-options-processor/translations/scatter-tooltip.d.ts +2 -2
  29. package/dist/packages/sdk-ui/src/chart-options-processor/translations/tooltip-utils.d.ts +17 -2
  30. package/dist/packages/sdk-ui/src/chart-options-processor/translations/tooltip.d.ts +3 -3
  31. package/dist/packages/sdk-ui/src/chart-options-processor/translations/translations-to-highcharts.d.ts +7 -0
  32. package/dist/packages/sdk-ui/src/chart-options-processor/translations/treemap/treemap-tooltip.d.ts +3 -4
  33. package/dist/packages/sdk-ui/src/chart-options-processor/translations/value-label-section.d.ts +3 -3
  34. package/dist/packages/sdk-ui/src/dashboard/components/editable-layout/utils.d.ts +7 -1
  35. package/dist/packages/sdk-ui/src/decorators/component-decorators/with-tracking/index.d.ts +1 -1
  36. package/dist/packages/sdk-ui/src/decorators/component-decorators/with-tracking/use-track-component-init.d.ts +4 -1
  37. package/dist/packages/sdk-ui/src/decorators/component-decorators/with-tracking/with-tracking.d.ts +10 -2
  38. package/dist/packages/sdk-ui/src/index.d.ts +1 -0
  39. package/dist/packages/sdk-ui/src/types.d.ts +27 -0
  40. package/dist/packages/sdk-ui/src/widget-by-id/utils.d.ts +1 -1
  41. package/dist/{use-common-filters-CRgYdKcV.cjs → use-common-filters-CRrL9rOQ.cjs} +66 -66
  42. package/dist/{use-common-filters-B1RKY2KD.js → use-common-filters-CVgB69Xe.js} +858 -853
  43. package/dist/{widget-composer-I9gUFBZt.js → widget-composer-B4eAv2pf.js} +232 -194
  44. package/dist/{widget-composer-B2r2a9Oh.cjs → widget-composer-D0FZj1tX.cjs} +8 -8
  45. package/package.json +20 -18
  46. package/dist/derive-chart-family-BPYK8evJ.js +0 -90579
  47. package/dist/derive-chart-family-yUBZXP4x.cjs +0 -669
  48. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/cartesians/helpers/get-legacy-cartesian-chart-options.d.ts +0 -3
package/dist/ai.js CHANGED
@@ -1,47 +1,47 @@
1
1
  var yn = Object.defineProperty, xn = Object.defineProperties;
2
2
  var vn = Object.getOwnPropertyDescriptors;
3
- var Te = Object.getOwnPropertySymbols;
4
- var pt = Object.prototype.hasOwnProperty, ht = Object.prototype.propertyIsEnumerable;
5
- var ut = (e, t, n) => t in e ? yn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, T = (e, t) => {
3
+ var Le = Object.getOwnPropertySymbols;
4
+ var ht = Object.prototype.hasOwnProperty, gt = Object.prototype.propertyIsEnumerable;
5
+ var pt = (e, t, n) => t in e ? yn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, T = (e, t) => {
6
6
  for (var n in t || (t = {}))
7
- pt.call(t, n) && ut(e, n, t[n]);
8
- if (Te)
9
- for (var n of Te(t))
10
- ht.call(t, n) && ut(e, n, t[n]);
7
+ ht.call(t, n) && pt(e, n, t[n]);
8
+ if (Le)
9
+ for (var n of Le(t))
10
+ gt.call(t, n) && pt(e, n, t[n]);
11
11
  return e;
12
12
  }, B = (e, t) => xn(e, vn(t));
13
- var Pe = (e, t) => {
13
+ var De = (e, t) => {
14
14
  var n = {};
15
15
  for (var r in e)
16
- pt.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
17
- if (e != null && Te)
18
- for (var r of Te(e))
19
- t.indexOf(r) < 0 && ht.call(e, r) && (n[r] = e[r]);
16
+ ht.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
17
+ if (e != null && Le)
18
+ for (var r of Le(e))
19
+ t.indexOf(r) < 0 && gt.call(e, r) && (n[r] = e[r]);
20
20
  return n;
21
21
  };
22
22
  var ne = (e, t, n) => new Promise((r, a) => {
23
23
  var c = (d) => {
24
24
  try {
25
25
  p(n.next(d));
26
- } catch (h) {
27
- a(h);
26
+ } catch (g) {
27
+ a(g);
28
28
  }
29
29
  }, s = (d) => {
30
30
  try {
31
31
  p(n.throw(d));
32
- } catch (h) {
33
- a(h);
32
+ } catch (g) {
33
+ a(g);
34
34
  }
35
35
  }, p = (d) => d.done ? r(d.value) : Promise.resolve(d.value).then(c, s);
36
36
  p((n = n.apply(e, t)).next());
37
37
  });
38
- import { by as kn, bz as wn, bA as Tt, bB as Sn, bC as xe, bD as Mn, bE as Tn, bF as Ln, bc as Lt, bd as Rt, aQ as he, G as _e, aF as Et, aj as Rn, bG as En, al as In, v as Bn, x as Be, bH as Fn, bI as Nn, aq as de, bJ as It, ar as Hn, A as On, aT as Pn, bK as Dn, B as ge, q as De, bL as gt, P as f, t as $n, aG as Bt, b3 as An, aC as zn, bM as qn, ah as be, J as Wn, bN as Zn, bO as jn, M as Ft, bP as Gn, b6 as Vn, ba as Un } from "./use-common-filters-B1RKY2KD.js";
39
- import { P as Qn, t as o, _ as _n, k as Kn, c7 as Jn, R as O, T as Ze, aZ as v, bb as $, a7 as w, U as L, F as G, a4 as Nt, aD as je, aI as Xn, c8 as Yn, c9 as er, a2 as tr, a3 as nr, n as rr } from "./derive-chart-family-BPYK8evJ.js";
40
- import * as K from "react";
41
- import { createContext as Ke, useContext as Je, useMemo as Z, useState as D, useCallback as H, useEffect as ve, useRef as ue, useLayoutEffect as Ee, memo as or, forwardRef as ir } from "react";
42
- import { t as Fe } from "./widget-composer-I9gUFBZt.js";
43
- import { w as X1 } from "./widget-composer-I9gUFBZt.js";
44
- import { jsx as Ce } from "react/jsx-runtime";
38
+ import { bz as kn, bA as wn, bB as Lt, bC as Sn, bD as ve, bE as Mn, bF as Tn, bG as Ln, bc as Rt, bd as Et, aR as ge, G as Ke, aG as It, ak as Rn, bH as En, am as In, v as Bn, x as Fe, bI as Fn, bJ as Nn, ar as ue, bK as Bt, as as Hn, A as Pn, aU as On, bL as Dn, B as Ce, q as $e, bM as Ct, P as f, t as $n, aH as Ft, b3 as An, aD as zn, bN as qn, ai as ye, J as Wn, bO as Zn, bP as jn, M as Nt, bQ as Gn, b6 as Vn, ba as Un } from "./use-common-filters-CVgB69Xe.js";
39
+ import { P as Qn, t as o, _ as _n, k as Kn, c7 as Jn, R as P, T as je, aZ as v, bb as A, a7 as w, U as R, F as W, a4 as Ht, aD as Ge, aI as Xn, c8 as Yn, c9 as er, a2 as tr, a3 as nr, n as rr } from "./derive-chart-family-DvYmrG1k.js";
40
+ import * as J from "react";
41
+ import { createContext as Je, useContext as Xe, useMemo as z, useState as D, useCallback as H, useEffect as ke, useRef as pe, useLayoutEffect as Ie, memo as or, forwardRef as ir } from "react";
42
+ import { t as Ne } from "./widget-composer-B4eAv2pf.js";
43
+ import { w as X1 } from "./widget-composer-B4eAv2pf.js";
44
+ import { jsx as fe } from "react/jsx-runtime";
45
45
  class ar extends kn {
46
46
  constructor(t, n) {
47
47
  super(), this.client = t, this.setOptions(n), this.bindMethods(), this.updateResult();
@@ -96,33 +96,33 @@ class ar extends kn {
96
96
  this.currentResult = n;
97
97
  }
98
98
  notify(t) {
99
- Tt.batch(() => {
99
+ Lt.batch(() => {
100
100
  if (this.mutateOptions && this.hasListeners()) {
101
101
  if (t.onSuccess) {
102
102
  var n, r, a, c;
103
103
  (n = (r = this.mutateOptions).onSuccess) == null || n.call(r, this.currentResult.data, this.currentResult.variables, this.currentResult.context), (a = (c = this.mutateOptions).onSettled) == null || a.call(c, this.currentResult.data, null, this.currentResult.variables, this.currentResult.context);
104
104
  } else if (t.onError) {
105
- var s, p, d, h;
106
- (s = (p = this.mutateOptions).onError) == null || s.call(p, this.currentResult.error, this.currentResult.variables, this.currentResult.context), (d = (h = this.mutateOptions).onSettled) == null || d.call(h, void 0, this.currentResult.error, this.currentResult.variables, this.currentResult.context);
105
+ var s, p, d, g;
106
+ (s = (p = this.mutateOptions).onError) == null || s.call(p, this.currentResult.error, this.currentResult.variables, this.currentResult.context), (d = (g = this.mutateOptions).onSettled) == null || d.call(g, void 0, this.currentResult.error, this.currentResult.variables, this.currentResult.context);
107
107
  }
108
108
  }
109
109
  t.listeners && this.listeners.forEach(({
110
- listener: b
110
+ listener: m
111
111
  }) => {
112
- b(this.currentResult);
112
+ m(this.currentResult);
113
113
  });
114
114
  });
115
115
  }
116
116
  }
117
- function Xe(e, t, n) {
118
- const r = Ln(e, t), a = xe({
117
+ function Ye(e, t, n) {
118
+ const r = Ln(e, t), a = ve({
119
119
  context: r.context
120
- }), [c] = K.useState(() => new ar(a, r));
121
- K.useEffect(() => {
120
+ }), [c] = J.useState(() => new ar(a, r));
121
+ J.useEffect(() => {
122
122
  c.setOptions(r);
123
123
  }, [c, r]);
124
- const s = Mn(K.useCallback((d) => c.subscribe(Tt.batchCalls(d)), [c]), () => c.getCurrentResult(), () => c.getCurrentResult()), p = K.useCallback((d, h) => {
125
- c.mutate(d, h).catch(sr);
124
+ const s = Mn(J.useCallback((d) => c.subscribe(Lt.batchCalls(d)), [c]), () => c.getCurrentResult(), () => c.getCurrentResult()), p = J.useCallback((d, g) => {
125
+ c.mutate(d, g).catch(sr);
126
126
  }, [c]);
127
127
  if (s.error && Tn(c.options.useErrorBoundary, [s.error]))
128
128
  throw s.error;
@@ -137,7 +137,7 @@ class lr {
137
137
  constructor(t, n = !1) {
138
138
  this.volatile = n, this.getChatContexts = () => ne(this, null, function* () {
139
139
  return (yield this.httpClient.get("api/datasources//")) || [];
140
- }), this.getNlgInsights = (r) => this.httpClient.post("api/v2/ai/nlg/queryResult", r), this.getQueryRecommendations = (r, a) => this.httpClient.get(`api/v2/ai/recommendations/query/${r}/${a.numOfRecommendations}`), this.getNlqResult = (r, a) => this.httpClient.post(`api/v2/ai/nlq/query/${r}`, a), this.setLlmConfig = (r) => this.httpClient.post("api/v2/settings/ai/llmProvider", r).catch((a) => {
140
+ }), this.getNlgInsights = (r) => this.httpClient.post("api/v2/ai/nlg/queryResult", r), this.getQueryRecommendations = (r, a) => this.httpClient.get(`api/v2/ai/recommendations/query/${r}/${a.numOfRecommendations}${a.userPrompt ? "?userPrompt=" + encodeURIComponent(a.userPrompt) : ""}`), this.getNlqResult = (r, a) => this.httpClient.post(`api/v2/ai/nlq/query/${r}`, a), this.setLlmConfig = (r) => this.httpClient.post("api/v2/settings/ai/llmProvider", r).catch((a) => {
141
141
  console.error("Unable to set llm config", a);
142
142
  }), this.getAllChats = () => ne(this, null, function* () {
143
143
  return this.volatile ? [] : this.httpClient.get("api/v2/ai/chats");
@@ -161,31 +161,31 @@ class lr {
161
161
  }, this.httpClient = t;
162
162
  }
163
163
  }
164
- const cr = new Lt({
164
+ const cr = new Rt({
165
165
  defaultOptions: {
166
166
  queries: {
167
167
  refetchOnWindowFocus: !1,
168
168
  refetchOnMount: !1
169
169
  }
170
170
  }
171
- }), Ye = /* @__PURE__ */ Ke(void 0), J = () => Je(Ye), dr = ({ children: e, volatile: t }) => {
172
- const { app: n } = Qn(), r = Z(() => n ? new lr(n.httpClient, t) : void 0, [
171
+ }), et = /* @__PURE__ */ Je(void 0), X = () => Xe(et), dr = ({ children: e, volatile: t }) => {
172
+ const { app: n } = Qn(), r = z(() => n ? new lr(n.httpClient, t) : void 0, [
173
173
  n,
174
174
  t
175
175
  ]);
176
- return /* @__PURE__ */ o(Ye.Provider, {
176
+ return /* @__PURE__ */ o(et.Provider, {
177
177
  value: r,
178
- children: /* @__PURE__ */ o(Rt, {
178
+ children: /* @__PURE__ */ o(Et, {
179
179
  client: cr,
180
180
  children: e
181
181
  })
182
182
  });
183
- }, Ht = /* @__PURE__ */ Ke({}), ur = () => Je(Ht), Ot = ({ children: e }) => {
183
+ }, Pt = /* @__PURE__ */ Je({}), ur = () => Xe(Pt), Ot = ({ children: e }) => {
184
184
  const [t, n] = D({}), r = H((s, p) => {
185
185
  var d;
186
186
  return `${s}_${(d = p == null ? void 0 : p.dashboardId) != null ? d : ""}`;
187
187
  }, []), a = H((s, p, d) => {
188
- n((h) => B(T({}, h), {
188
+ n((g) => B(T({}, g), {
189
189
  [r(p, d)]: s
190
190
  }));
191
191
  }, [
@@ -194,7 +194,7 @@ const cr = new Lt({
194
194
  t,
195
195
  r
196
196
  ]);
197
- return /* @__PURE__ */ o(Ht.Provider, {
197
+ return /* @__PURE__ */ o(Pt.Provider, {
198
198
  value: {
199
199
  saveChatId: a,
200
200
  getChatId: c
@@ -232,19 +232,19 @@ function pr(e) {
232
232
  return e.verbosity && (d.verbosity = e.verbosity), d;
233
233
  }
234
234
  }
235
- const Ne = (e, t = !0) => {
236
- const n = Z(() => pr(e), [
235
+ const He = (e, t = !0) => {
236
+ const n = z(() => pr(e), [
237
237
  e
238
- ]), r = J(), { data: a, error: c, isError: s, isLoading: p, isSuccess: d, refetch: h } = he({
238
+ ]), r = X(), { data: a, error: c, isError: s, isLoading: p, isSuccess: d, refetch: g } = ge({
239
239
  queryKey: [
240
240
  "getNlgInsights",
241
241
  n,
242
242
  r
243
243
  ],
244
244
  queryFn: () => r == null ? void 0 : r.ai.getNlgInsights(n),
245
- select: (b) => {
246
- var m;
247
- return (m = b == null ? void 0 : b.data) == null ? void 0 : m.answer;
245
+ select: (m) => {
246
+ var b;
247
+ return (b = m == null ? void 0 : m.data) == null ? void 0 : b.answer;
248
248
  },
249
249
  enabled: !!r && t
250
250
  });
@@ -255,15 +255,15 @@ const Ne = (e, t = !0) => {
255
255
  data: a,
256
256
  error: c,
257
257
  refetch: H(() => {
258
- h();
258
+ g();
259
259
  }, [
260
- h
260
+ g
261
261
  ])
262
262
  };
263
263
  }, hr = (e) => {
264
- const r = e, { enabled: t } = r, n = Pe(r, ["enabled"]);
265
- return Ne(n, t);
266
- }, q1 = _e("useGetNlgInsights")(hr), gr = [
264
+ const r = e, { enabled: t } = r, n = De(r, ["enabled"]);
265
+ return He(n, t);
266
+ }, q1 = Ke("useGetNlgInsights")(hr), gr = [
267
267
  "indicator",
268
268
  "column",
269
269
  "line",
@@ -286,7 +286,7 @@ function Cr(e) {
286
286
  };
287
287
  }
288
288
  const fr = (e) => {
289
- const { contextTitle: t, request: n } = Cr(e), r = J(), { isLoading: a, isError: c, isSuccess: s, data: p, error: d, refetch: h } = he({
289
+ const { contextTitle: t, request: n } = Cr(e), r = X(), { isLoading: a, isError: c, isSuccess: s, data: p, error: d, refetch: g } = ge({
290
290
  queryKey: [
291
291
  "getNlqResult",
292
292
  t,
@@ -295,74 +295,76 @@ const fr = (e) => {
295
295
  ],
296
296
  queryFn: () => r == null ? void 0 : r.ai.getNlqResult(t, n),
297
297
  enabled: !!r && e.enabled
298
- }), b = p ? Fe(p, {
298
+ }), m = p ? Ne(p, {
299
299
  useCustomizedStyleOptions: e.enableAxisTitlesInWidgetProps || !1
300
300
  }) : void 0;
301
301
  return {
302
302
  isLoading: a,
303
303
  isError: c,
304
304
  isSuccess: s,
305
- data: b,
305
+ data: m,
306
306
  error: d,
307
307
  refetch: H(() => {
308
- h();
308
+ g();
309
309
  }, [
310
- h
310
+ g
311
311
  ])
312
312
  };
313
- }, W1 = _e("useGetNlqResult")(fr), mr = 4, Pt = (e) => {
314
- const { contextTitle: t, count: n, enableAxisTitlesInWidgetProps: r, enabled: a } = e, c = J(), s = n != null ? n : mr, p = (a === void 0 || a === !0) && s > 0, { isLoading: d, isError: h, isSuccess: b, data: m, error: i, refetch: u } = he({
313
+ }, W1 = Ke("useGetNlqResult")(fr), mr = 4, Dt = (e) => {
314
+ const { contextTitle: t, count: n, enableAxisTitlesInWidgetProps: r, enabled: a, customPrompt: c } = e, s = X(), p = n != null ? n : mr, d = (a === void 0 || a === !0) && p > 0, { isLoading: g, isError: m, isSuccess: b, data: i, error: u, refetch: l } = ge({
315
315
  queryKey: [
316
316
  "getQueryRecommendations",
317
317
  t,
318
- s,
319
- c
318
+ p,
319
+ s
320
320
  ],
321
- queryFn: () => c == null ? void 0 : c.ai.getQueryRecommendations(t, {
322
- numOfRecommendations: s
323
- }),
324
- enabled: !!c && p
325
- }), l = Z(() => m == null ? void 0 : m.map((C) => B(T({}, C), {
326
- widgetProps: C.jaql ? Fe(C, {
321
+ queryFn: () => s == null ? void 0 : s.ai.getQueryRecommendations(t, T({
322
+ numOfRecommendations: p
323
+ }, c ? {
324
+ userPrompt: c
325
+ } : null)),
326
+ enabled: !!s && d
327
+ }), C = z(() => i == null ? void 0 : i.map((h) => B(T({}, h), {
328
+ widgetProps: h.jaql ? Ne(h, {
327
329
  useCustomizedStyleOptions: r
328
330
  }) : void 0
329
331
  })), [
330
- m,
332
+ i,
331
333
  r
332
334
  ]);
333
335
  return {
334
- isLoading: p ? d : !1,
335
- isError: h,
336
+ isLoading: d ? g : !1,
337
+ isError: m,
336
338
  isSuccess: b,
337
- data: l != null ? l : void 0,
338
- error: i,
339
+ data: C != null ? C : void 0,
340
+ error: u,
339
341
  refetch: H(() => {
340
- u();
342
+ l();
341
343
  }, [
342
- u
344
+ l
343
345
  ])
344
346
  };
345
- }, Z1 = _e("useGetQueryRecommendations")(Pt), Dt = Object.freeze({
347
+ }, Z1 = Ke("useGetQueryRecommendations")(Dt), $t = Object.freeze({
346
348
  enableFollowupQuestions: !1,
347
349
  enableHeader: !0,
348
350
  enableInsights: !0,
349
351
  numOfRecommendations: 4,
350
352
  numOfRecentPrompts: 5
351
- }), $t = /* @__PURE__ */ Ke(T({}, Dt)), ee = () => Je($t), br = ({ children: e, value: t }) => {
352
- const { t: n } = O(), r = Object.entries(t).reduce((a, [c, s]) => (s !== void 0 && (a[c] = s), a), B(T({}, Dt), {
353
+ }), At = /* @__PURE__ */ Je(T({}, $t)), ee = () => Xe(At), br = ({ children: e, value: t }) => {
354
+ const { t: n } = P(), r = Object.entries(t).reduce((a, [c, s]) => (s !== void 0 && (a[c] = s), a), B(T({}, $t), {
353
355
  inputPromptText: n("ai.config.inputPromptText"),
354
356
  welcomeText: n("ai.config.welcomeText"),
355
357
  suggestionsWelcomeText: n("ai.config.suggestionsWelcomeText")
356
358
  }));
357
- return /* @__PURE__ */ o($t.Provider, {
359
+ return /* @__PURE__ */ o(At.Provider, {
358
360
  value: r,
359
361
  children: e
360
362
  });
361
- }, et = "chatHistory", yr = (e) => {
362
- const t = J(), { hideHistory: n } = ee();
363
- return he({
363
+ }, tt = "chatHistory", yr = (e) => {
364
+ const t = X(), { hideHistory: n } = ee();
365
+ return ge({
364
366
  queryKey: [
365
- et,
367
+ tt,
366
368
  e,
367
369
  t
368
370
  ],
@@ -376,9 +378,9 @@ const fr = (e) => {
376
378
  }),
377
379
  enabled: !!t && !!e
378
380
  });
379
- }, At = (e) => {
380
- const t = J(), n = xe();
381
- return Xe({
381
+ }, zt = (e) => {
382
+ const t = X(), n = ve();
383
+ return Ye({
382
384
  mutationFn: () => ne(void 0, null, function* () {
383
385
  if (!(!t || !e))
384
386
  return t.ai.chat.clearHistory(e);
@@ -388,14 +390,14 @@ const fr = (e) => {
388
390
  },
389
391
  onSettled: () => {
390
392
  e && n.setQueriesData([
391
- et,
393
+ tt,
392
394
  e
393
395
  ], []);
394
396
  }
395
397
  });
396
- }, tt = (e) => {
397
- const { data: t, isLoading: n, isError: r } = yr(e), { mutate: a } = At(e);
398
- return ve(() => {
398
+ }, nt = (e) => {
399
+ const { data: t, isLoading: n, isError: r } = yr(e), { mutate: a } = zt(e);
400
+ return ke(() => {
399
401
  r && a();
400
402
  }, [
401
403
  r,
@@ -406,7 +408,7 @@ const fr = (e) => {
406
408
  isError: r
407
409
  };
408
410
  }, xr = () => {
409
- const e = J(), { data: t, isLoading: n, fetchStatus: r } = he({
411
+ const e = X(), { data: t, isLoading: n, fetchStatus: r } = ge({
410
412
  queryKey: [
411
413
  "getDataTopics",
412
414
  e
@@ -423,7 +425,7 @@ const fr = (e) => {
423
425
  fetchStatus: r
424
426
  };
425
427
  }, vr = () => {
426
- const e = J(), { data: t, isLoading: n } = he({
428
+ const e = X(), { data: t, isLoading: n } = ge({
427
429
  queryKey: [
428
430
  "getAllChats",
429
431
  e
@@ -436,7 +438,7 @@ const fr = (e) => {
436
438
  isLoading: n
437
439
  };
438
440
  }, kr = (e, t, n) => {
439
- const r = xe(), a = J(), c = Xe({
441
+ const r = ve(), a = X(), c = Ye({
440
442
  mutationFn: () => ne(void 0, null, function* () {
441
443
  if (!(!a || !e))
442
444
  return a.ai.chat.create(e, n);
@@ -445,7 +447,7 @@ const fr = (e) => {
445
447
  "getAllChats"
446
448
  ])
447
449
  });
448
- return ve(() => {
450
+ return ke(() => {
449
451
  t && c.isIdle && c.mutate();
450
452
  }, [
451
453
  t,
@@ -469,18 +471,18 @@ const fr = (e) => {
469
471
  throw Error(`${t}${JSON.stringify(e)}`);
470
472
  }
471
473
  }, Sr = (e, t) => {
472
- const n = xe(), r = H((d) => {
474
+ const n = ve(), r = H((d) => {
473
475
  e && n.setQueriesData([
474
- et,
476
+ tt,
475
477
  e
476
- ], (h) => h && [
477
- ...h,
478
+ ], (g) => g && [
479
+ ...g,
478
480
  d
479
481
  ]);
480
482
  }, [
481
483
  n,
482
484
  e
483
- ]), { t: a } = O(), c = J(), { mutate: s, isLoading: p } = Xe({
485
+ ]), { t: a } = P(), c = X(), { mutate: s, isLoading: p } = Ye({
484
486
  mutationFn: (d) => ne(void 0, null, function* () {
485
487
  if (!(!c || !e))
486
488
  return c.ai.chat.post(e, {
@@ -507,25 +509,25 @@ const fr = (e) => {
507
509
  onSuccess: (d) => {
508
510
  if (!d)
509
511
  return;
510
- const h = a("ai.errors.unknownResponse");
511
- r(wr(d, h));
512
+ const g = a("ai.errors.unknownResponse");
513
+ r(wr(d, g));
512
514
  }
513
515
  });
514
516
  return {
515
517
  mutate: s,
516
518
  isLoading: p
517
519
  };
518
- }, nt = (e, t, n = !1) => {
519
- var b;
520
- const { data: r, isLoading: a } = vr(), c = ur(), s = c.getChatId(e, t) || ((b = r.find((m) => {
520
+ }, rt = (e, t, n = !1) => {
521
+ var m;
522
+ const { data: r, isLoading: a } = vr(), c = ur(), s = c.getChatId(e, t) || ((m = r.find((b) => {
521
523
  var i;
522
- return m.contextTitle === e && ((i = m.contextDetails) == null ? void 0 : i.dashboardId) === (t == null ? void 0 : t.dashboardId);
523
- })) == null ? void 0 : b.chatId), { isError: p, data: d, isSuccess: h } = kr(e, n && !a && !s, t);
524
- return ve(() => {
525
- h && d && !s && c.saveChatId(d.chatId, e, t);
524
+ return b.contextTitle === e && ((i = b.contextDetails) == null ? void 0 : i.dashboardId) === (t == null ? void 0 : t.dashboardId);
525
+ })) == null ? void 0 : m.chatId), { isError: p, data: d, isSuccess: g } = kr(e, n && !a && !s, t);
526
+ return ke(() => {
527
+ g && d && !s && c.saveChatId(d.chatId, e, t);
526
528
  }, [
527
529
  d,
528
- h,
530
+ g,
529
531
  e,
530
532
  t,
531
533
  s,
@@ -535,42 +537,42 @@ const fr = (e) => {
535
537
  isLoading: a,
536
538
  isError: p
537
539
  };
538
- }, zt = (e) => Z(() => {
540
+ }, qt = (e) => z(() => {
539
541
  if (e != null && e.length) {
540
542
  const t = e[e.length - 1];
541
- if (rt(t))
543
+ if (ot(t))
542
544
  return JSON.parse(t.content);
543
545
  }
544
546
  return null;
545
547
  }, [
546
548
  e
547
- ]), rt = (e) => !!e && "type" in e && e.type === "nlq", Mr = (e) => !!e && "type" in e && e.type === "text", Tr = (e, t) => {
548
- const { t: n } = O(), { enableFollowupQuestions: r } = ee(), { chatId: a, isError: c } = nt(e, t, !0), [s, p] = D(null), { history: d, isLoading: h, isError: b } = tt(a);
549
- ve(() => {
550
- c ? p(new Ze("ai.errors.chatUnavailable")) : b && p(new Ze("ai.errors.fetchHistory"));
549
+ ]), ot = (e) => !!e && "type" in e && e.type === "nlq", Mr = (e) => !!e && "type" in e && e.type === "text", Tr = (e, t) => {
550
+ const { t: n } = P(), { enableFollowupQuestions: r } = ee(), { chatId: a, isError: c } = rt(e, t, !0), [s, p] = D(null), { history: d, isLoading: g, isError: m } = nt(a);
551
+ ke(() => {
552
+ c ? p(new je("ai.errors.chatUnavailable")) : m && p(new je("ai.errors.fetchHistory"));
551
553
  }, [
552
554
  c,
553
- b,
555
+ m,
554
556
  n
555
557
  ]);
556
- const { mutate: m, isLoading: i } = Sr(a, r), u = zt(d);
558
+ const { mutate: b, isLoading: i } = Sr(a, r), u = qt(d);
557
559
  return {
558
560
  chatId: a,
559
561
  history: d != null ? d : [],
560
562
  lastNlqResponse: u,
561
- sendMessage: m,
563
+ sendMessage: b,
562
564
  isAwaitingResponse: i,
563
- isLoading: h,
565
+ isLoading: g,
564
566
  lastError: s
565
567
  };
566
568
  }, j1 = ({ contextTitle: e, contextDetails: t }) => {
567
- const { chatId: n } = nt(e, t), { history: r } = tt(n);
568
- return zt(r);
569
+ const { chatId: n } = rt(e, t), { history: r } = nt(n);
570
+ return qt(r);
569
571
  }, G1 = ({ contextTitle: e, contextDetails: t }) => {
570
- const { chatId: n } = nt(e, t), { history: r } = tt(n);
571
- return Z(() => {
572
+ const { chatId: n } = rt(e, t), { history: r } = nt(n);
573
+ return z(() => {
572
574
  if (r != null && r.length) {
573
- const a = r.slice().reverse().find(rt);
575
+ const a = r.slice().reverse().find(ot);
574
576
  if (a)
575
577
  return JSON.parse(a.content);
576
578
  }
@@ -581,11 +583,11 @@ const fr = (e) => {
581
583
  }, Lr = 500, Rr = 500, Er = 500, Ir = 900, Br = /* @__PURE__ */ v("div", {
582
584
  target: "e1ldv6710",
583
585
  label: "ChatFrame"
584
- })("box-sizing:border-box;position:relative;display:flex;flex-direction:column;border:1px solid #c6c9ce;border-radius:", ({ theme: e }) => e.aiChat.borderRadius, ";background-color:", ({ theme: e }) => e.aiChat.backgroundColor, ";overflow:hidden;min-width:", Lr, "px;min-height:", Rr, "px;width:", ({ width: e }) => e ? Ct(e) : `${Er}px`, ";height:", ({ height: e }) => e ? Ct(e) : `${Ir}px`, ";", ({ theme: e }) => $`
586
+ })("box-sizing:border-box;position:relative;display:flex;flex-direction:column;border:1px solid #c6c9ce;border-radius:", ({ theme: e }) => e.aiChat.borderRadius, ";background-color:", ({ theme: e }) => e.aiChat.backgroundColor, ";overflow:hidden;min-width:", Lr, "px;min-height:", Rr, "px;width:", ({ width: e }) => e ? ft(e) : `${Er}px`, ";height:", ({ height: e }) => e ? ft(e) : `${Ir}px`, ";", ({ theme: e }) => A`
585
587
  font-size: ${e.aiChat.primaryFontSize[0]};
586
588
  line-height: ${e.aiChat.primaryFontSize[1]};
587
589
  `, " border:", ({ theme: e }) => e.aiChat.border === !1 ? "none" : e.aiChat.border, ";");
588
- function Ct(e) {
590
+ function ft(e) {
589
591
  return typeof e == "number" ? `${e}px` : e;
590
592
  }
591
593
  function Fr({ spin: e }) {
@@ -613,7 +615,7 @@ function Fr({ spin: e }) {
613
615
  ]
614
616
  });
615
617
  }
616
- function He() {
618
+ function Pe() {
617
619
  return /* @__PURE__ */ o("div", {
618
620
  className: "csdk-m-auto",
619
621
  "aria-label": "loading spinner",
@@ -659,10 +661,10 @@ function Hr({ theme: e }) {
659
661
  ]
660
662
  });
661
663
  }
662
- const Or = /* @__PURE__ */ v("div", {
664
+ const Pr = /* @__PURE__ */ v("div", {
663
665
  target: "e1q6h1ze0",
664
666
  label: "Section"
665
- })("display:flex;flex-direction:column;row-gap:4px;"), Pr = /* @__PURE__ */ v("div", {
667
+ })("display:flex;flex-direction:column;row-gap:4px;"), Or = /* @__PURE__ */ v("div", {
666
668
  target: "e1q6h1ze1",
667
669
  label: "SectionHeader"
668
670
  })("font-size:11px;line-height:18px;font-weight:300;color:", ({ theme: e }) => e.aiChat.dropup.headers.textColor, ";cursor:pointer;padding:4px 12px;&:hover{background-color:", ({ theme: e }) => e.aiChat.dropup.headers.hover.backgroundColor, ";}"), Dr = /* @__PURE__ */ v("div", {
@@ -670,10 +672,10 @@ const Or = /* @__PURE__ */ v("div", {
670
672
  label: "DropupItem"
671
673
  })("font-size:", ({ theme: e }) => e.aiChat.primaryFontSize[0], ";line-height:", ({ theme: e }) => e.aiChat.primaryFontSize[1], ";color:", ({ theme: e }) => e.aiChat.dropup.items.textColor, ";cursor:pointer;padding:4px 12px;&:hover{background-color:", ({ theme: e }) => e.aiChat.dropup.items.hover.backgroundColor, ";}");
672
674
  function $r({ title: e, items: t, onSelect: n, alwaysExpanded: r = !1 }) {
673
- const [a, c] = D(!1), { themeSettings: s } = L();
674
- return /* @__PURE__ */ w(Or, {
675
+ const [a, c] = D(!1), { themeSettings: s } = R();
676
+ return /* @__PURE__ */ w(Pr, {
675
677
  children: [
676
- /* @__PURE__ */ o(Pr, {
678
+ /* @__PURE__ */ o(Or, {
677
679
  onClick: () => c((p) => !p),
678
680
  theme: s,
679
681
  children: e.toUpperCase()
@@ -692,7 +694,7 @@ const Ar = /* @__PURE__ */ v("div", {
692
694
  })("font-family:", ({ theme: e }) => e.typography.fontFamily, ";font-size:", ({ theme: e }) => e.aiChat.primaryFontSize[0], ";line-height:", ({ theme: e }) => e.aiChat.primaryFontSize[1], ";background-color:", ({ theme: e }) => e.aiChat.dropup.backgroundColor, ";border-radius:", ({ theme: e }) => e.aiChat.dropup.borderRadius, ";box-shadow:", ({ theme: e }) => e.aiChat.dropup.boxShadow, ";padding-top:8px;padding-bottom:8px;display:flex;flex-direction:column;row-gap:4px;"), zr = /* @__PURE__ */ v("div", {
693
695
  target: "e10x5x4a1",
694
696
  label: "ErrorMessage"
695
- })("font-size:", ({ theme: e }) => e.aiChat.primaryFontSize[0], ";line-height:", ({ theme: e }) => e.aiChat.primaryFontSize[1], ";color:", ({ theme: e }) => e.aiChat.dropup.items.textColor, ";padding:4px 12px;"), Ge = (e) => e.startsWith("/");
697
+ })("font-size:", ({ theme: e }) => e.aiChat.primaryFontSize[0], ";line-height:", ({ theme: e }) => e.aiChat.primaryFontSize[1], ";color:", ({ theme: e }) => e.aiChat.dropup.items.textColor, ";padding:4px 12px;"), Ve = (e) => e.startsWith("/");
696
698
  function qr({ recentPrompts: e, suggestions: t, isLoading: n, onSelection: r, anchorEl: a, text: c, recommendationsError: s }) {
697
699
  const d = [
698
700
  {
@@ -705,9 +707,9 @@ function qr({ recentPrompts: e, suggestions: t, isLoading: n, onSelection: r, an
705
707
  items: t,
706
708
  onSelect: r
707
709
  }
708
- ].filter((i) => i.title.slice(0, c.length) === c), { themeSettings: h } = L(), { t: b } = O(), m = d.length === 1;
709
- return /* @__PURE__ */ o(Et, {
710
- open: Ge(c) && d.length > 0,
710
+ ].filter((i) => i.title.slice(0, c.length) === c), { themeSettings: g } = R(), { t: m } = P(), b = d.length === 1;
711
+ return /* @__PURE__ */ o(It, {
712
+ open: Ve(c) && d.length > 0,
711
713
  anchorEl: a,
712
714
  placement: "top-start",
713
715
  modifiers: [
@@ -728,22 +730,22 @@ function qr({ recentPrompts: e, suggestions: t, isLoading: n, onSelection: r, an
728
730
  style: {
729
731
  width: a == null ? void 0 : a.offsetWidth
730
732
  },
731
- theme: h,
733
+ theme: g,
732
734
  children: [
733
- n && /* @__PURE__ */ o(He, {}),
735
+ n && /* @__PURE__ */ o(Pe, {}),
734
736
  !n && !s && d.map((i) => /* @__PURE__ */ o($r, B(T({}, i), {
735
- alwaysExpanded: m
737
+ alwaysExpanded: b
736
738
  }), i.title)),
737
739
  s && /* @__PURE__ */ o(zr, {
738
- theme: h,
739
- children: b("ai.errors.recommendationsNotAvailable")
740
+ theme: g,
741
+ children: m("ai.errors.recommendationsNotAvailable")
740
742
  })
741
743
  ]
742
744
  })
743
745
  });
744
746
  }
745
- function ke({ title: e, placement: t = "top", children: n }) {
746
- const { themeSettings: r } = L();
747
+ function we({ title: e, placement: t = "top", children: n }) {
748
+ const { themeSettings: r } = R();
747
749
  return /* @__PURE__ */ o(Rn, {
748
750
  title: e,
749
751
  placement: t,
@@ -784,64 +786,64 @@ const Wr = 500, Zr = /* @__PURE__ */ v("div", {
784
786
  })("font-size:inherit;line-height:inherit;resize:none;overflow-y:auto;box-sizing:border-box;max-height:88px;width:100%;padding-top:7px;padding-bottom:7px;padding-left:16px;padding-right:16px;margin-left:10px;margin-right:10px;border-width:1px;border-color:rgb(38 46 61 / 0.15);border-radius:0.5rem;&:focus{outline:1px solid ", ({ theme: e }) => e.aiChat.input.focus.outlineColor, ";}font-family:inherit;color:", ({ theme: e }) => e.aiChat.primaryTextColor, ";background-color:", ({ theme: e }) => e.aiChat.input.backgroundColor, ";"), Vr = /* @__PURE__ */ v("button", {
785
787
  target: "e6iwkw13",
786
788
  label: "SendMessageButton"
787
- })("height:34px;background-color:inherit;border-style:none;color:", ({ theme: e }) => e.aiChat.primaryTextColor, ";", ({ disabled: e }) => e ? $`
789
+ })("height:34px;background-color:inherit;border-style:none;color:", ({ theme: e }) => e.aiChat.primaryTextColor, ";", ({ disabled: e }) => e ? A`
788
790
  opacity: 0.3;
789
791
  cursor: not-allowed;
790
- ` : $`
792
+ ` : A`
791
793
  opacity: 1;
792
794
  cursor: pointer;
793
795
  `), Ur = 34;
794
796
  function Qr({ onSendMessage: e, onClearHistoryClick: t, disabled: n, recentPrompts: r, suggestions: a, isLoading: c, recommendationsError: s, onChange: p }) {
795
- const [d, h] = D(""), { inputPromptText: b } = ee(), m = H(() => {
797
+ const [d, g] = D(""), { inputPromptText: m } = ee(), b = H(() => {
796
798
  if (n)
797
799
  return;
798
- if (Ge(d)) {
799
- h("");
800
+ if (Ve(d)) {
801
+ g("");
800
802
  return;
801
803
  }
802
- const y = d.trim();
803
- y.length !== 0 && (e(y), h(""));
804
+ const x = d.trim();
805
+ x.length !== 0 && (e(x), g(""));
804
806
  }, [
805
807
  n,
806
808
  e,
807
809
  d
808
- ]), i = H((y) => {
809
- e(y), h("");
810
+ ]), i = H((x) => {
811
+ e(x), g("");
810
812
  }, [
811
813
  e
812
- ]), u = H((y) => {
813
- y.key === "Enter" ? (y.preventDefault(), m()) : y.key === "Escape" && Ge(d) && h("");
814
+ ]), u = H((x) => {
815
+ x.key === "Enter" ? (x.preventDefault(), b()) : x.key === "Escape" && Ve(d) && g("");
814
816
  }, [
815
- m,
817
+ b,
816
818
  d
817
- ]), l = H((y) => {
818
- p == null || p(y.target.value), h(y.target.value);
819
+ ]), l = H((x) => {
820
+ p == null || p(x.target.value), g(x.target.value);
819
821
  }, [
820
822
  p
821
- ]), C = ue(null);
822
- Ee(() => {
823
+ ]), C = pe(null);
824
+ Ie(() => {
823
825
  C.current && (C.current.style.height = "inherit", C.current.style.height = `${Math.max(C.current.scrollHeight + 2, Ur)}px`);
824
826
  }, [
825
827
  d
826
- ]), Ee(() => {
828
+ ]), Ie(() => {
827
829
  C.current && C.current.focus({
828
830
  preventScroll: !0
829
831
  });
830
832
  }, []);
831
- const { themeSettings: g } = L(), { t: k } = O(), S = H((y) => {
832
- var E;
833
- if ((E = document.getElementById("csdk-chatbot-frame")) != null && E.contains(y.relatedTarget)) {
834
- const R = (M) => {
833
+ const { themeSettings: h } = R(), { t: k } = P(), S = H((x) => {
834
+ var L;
835
+ if ((L = document.getElementById("csdk-chatbot-frame")) != null && L.contains(x.relatedTarget)) {
836
+ const E = (M) => {
835
837
  var I;
836
- document.removeEventListener("mouseup", R), document.removeEventListener("keyup", R), M.type === "mouseup" && ((I = document.getSelection()) == null ? void 0 : I.type) !== "Range" && y.target.focus({
838
+ document.removeEventListener("mouseup", E), document.removeEventListener("keyup", E), M.type === "mouseup" && ((I = document.getSelection()) == null ? void 0 : I.type) !== "Range" && x.target.focus({
837
839
  preventScroll: !0
838
840
  });
839
841
  };
840
- document.addEventListener("mouseup", R), document.addEventListener("keyup", R);
842
+ document.addEventListener("mouseup", E), document.addEventListener("keyup", E);
841
843
  }
842
844
  }, []);
843
845
  return /* @__PURE__ */ w(Zr, {
844
- theme: g,
846
+ theme: h,
845
847
  children: [
846
848
  /* @__PURE__ */ o(qr, {
847
849
  recentPrompts: r,
@@ -852,14 +854,14 @@ function Qr({ onSendMessage: e, onClearHistoryClick: t, disabled: n, recentPromp
852
854
  text: d,
853
855
  recommendationsError: s
854
856
  }),
855
- t && /* @__PURE__ */ o(ke, {
857
+ t && /* @__PURE__ */ o(we, {
856
858
  title: k("ai.buttons.clearChat"),
857
859
  placement: "bottom-start",
858
860
  children: /* @__PURE__ */ o(jr, {
859
861
  "aria-label": "clear history",
860
862
  onClick: t,
861
863
  children: /* @__PURE__ */ o(Hr, {
862
- theme: g
864
+ theme: h
863
865
  })
864
866
  })
865
867
  }),
@@ -871,99 +873,99 @@ function Qr({ onSendMessage: e, onClearHistoryClick: t, disabled: n, recentPromp
871
873
  rows: 1,
872
874
  onChange: l,
873
875
  spellCheck: "true",
874
- placeholder: b,
876
+ placeholder: m,
875
877
  value: d,
876
878
  onKeyDown: u,
877
- theme: g
879
+ theme: h
878
880
  }),
879
881
  /* @__PURE__ */ o(Vr, {
880
882
  "aria-label": "send chat message",
881
883
  disabled: n || d.length === 0,
882
- onClick: m,
883
- theme: g,
884
+ onClick: b,
885
+ theme: h,
884
886
  children: /* @__PURE__ */ o("span", {
885
887
  "data-state": "closed",
886
888
  children: /* @__PURE__ */ o(Nr, {
887
- theme: g
889
+ theme: h
888
890
  })
889
891
  })
890
892
  })
891
893
  ]
892
894
  });
893
895
  }
894
- function ae() {
895
- return ae = Object.assign ? Object.assign.bind() : function(e) {
896
+ function se() {
897
+ return se = Object.assign ? Object.assign.bind() : function(e) {
896
898
  for (var t = 1; t < arguments.length; t++) {
897
899
  var n = arguments[t];
898
900
  for (var r in n)
899
901
  Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
900
902
  }
901
903
  return e;
902
- }, ae.apply(this, arguments);
904
+ }, se.apply(this, arguments);
903
905
  }
904
- const _r = ["children", "options"], x = { blockQuote: "0", breakLine: "1", breakThematic: "2", codeBlock: "3", codeFenced: "4", codeInline: "5", footnote: "6", footnoteReference: "7", gfmTask: "8", heading: "9", headingSetext: "10", htmlBlock: "11", htmlComment: "12", htmlSelfClosing: "13", image: "14", link: "15", linkAngleBraceStyleDetector: "16", linkBareUrlDetector: "17", linkMailtoDetector: "18", newlineCoalescer: "19", orderedList: "20", paragraph: "21", ref: "22", refImage: "23", refLink: "24", table: "25", tableSeparator: "26", text: "27", textBolded: "28", textEmphasized: "29", textEscaped: "30", textMarked: "31", textStrikethroughed: "32", unorderedList: "33" };
905
- var ft;
906
+ const _r = ["children", "options"], y = { blockQuote: "0", breakLine: "1", breakThematic: "2", codeBlock: "3", codeFenced: "4", codeInline: "5", footnote: "6", footnoteReference: "7", gfmTask: "8", heading: "9", headingSetext: "10", htmlBlock: "11", htmlComment: "12", htmlSelfClosing: "13", image: "14", link: "15", linkAngleBraceStyleDetector: "16", linkBareUrlDetector: "17", linkMailtoDetector: "18", newlineCoalescer: "19", orderedList: "20", paragraph: "21", ref: "22", refImage: "23", refLink: "24", table: "25", tableSeparator: "26", text: "27", textBolded: "28", textEmphasized: "29", textEscaped: "30", textMarked: "31", textStrikethroughed: "32", unorderedList: "33" };
907
+ var mt;
906
908
  (function(e) {
907
909
  e[e.MAX = 0] = "MAX", e[e.HIGH = 1] = "HIGH", e[e.MED = 2] = "MED", e[e.LOW = 3] = "LOW", e[e.MIN = 4] = "MIN";
908
- })(ft || (ft = {}));
909
- const mt = ["allowFullScreen", "allowTransparency", "autoComplete", "autoFocus", "autoPlay", "cellPadding", "cellSpacing", "charSet", "classId", "colSpan", "contentEditable", "contextMenu", "crossOrigin", "encType", "formAction", "formEncType", "formMethod", "formNoValidate", "formTarget", "frameBorder", "hrefLang", "inputMode", "keyParams", "keyType", "marginHeight", "marginWidth", "maxLength", "mediaGroup", "minLength", "noValidate", "radioGroup", "readOnly", "rowSpan", "spellCheck", "srcDoc", "srcLang", "srcSet", "tabIndex", "useMap"].reduce((e, t) => (e[t.toLowerCase()] = t, e), { class: "className", for: "htmlFor" }), bt = { amp: "&", apos: "'", gt: ">", lt: "<", nbsp: " ", quot: "“" }, Kr = ["style", "script"], Jr = ["src", "href", "data", "formAction", "srcDoc", "action"], Xr = /([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi, Yr = /mailto:/i, eo = /\n{2,}$/, qt = /^(\s*>[\s\S]*?)(?=\n\n|$)/, to = /^ *> ?/gm, no = /^(?:\[!([^\]]*)\]\n)?([\s\S]*)/, ro = /^ {2,}\n/, oo = /^(?:( *[-*_])){3,} *(?:\n *)+\n/, Wt = /^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/, Zt = /^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/, io = /^(`+)((?:\\`|(?!\1)`|[^`])+)\1/, ao = /^(?:\n *)*\n/, so = /\r\n?/g, lo = /^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/, co = /^\[\^([^\]]+)]/, uo = /\f/g, po = /^---[ \t]*\n(.|\n)*\n---[ \t]*\n/, ho = /^\s*?\[(x|\s)\]/, jt = /^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/, Gt = /^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/, Vt = /^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/, Ve = /^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i, go = /&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi, Ut = /^<!--[\s\S]*?(?:-->)/, Co = /^(data|aria|x)-[a-z_][a-z\d_.-]*$/, Ue = /^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i, fo = /^\{.*\}$/, mo = /^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/, bo = /^<([^ >]+@[^ >]+)>/, yo = /^<([^ >]+:\/[^ >]+)>/, xo = /-([a-z])?/gi, Qt = /^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/, vo = /^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/, ko = /^!\[([^\]]*)\] ?\[([^\]]*)\]/, wo = /^\[([^\]]*)\] ?\[([^\]]*)\]/, So = /(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/, Mo = /\t/g, To = /(^ *\||\| *$)/g, Lo = /^ *:-+: *$/, Ro = /^ *:-+ *$/, Eo = /^ *-+: *$/, Oe = "((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|\\\\\\1|[\\s\\S])+?)", Io = new RegExp(`^([*_])\\1${Oe}\\1\\1(?!\\1)`), Bo = new RegExp(`^([*_])${Oe}\\1(?!\\1)`), Fo = new RegExp(`^(==)${Oe}\\1`), No = new RegExp(`^(~~)${Oe}\\1`), Ho = /^\\([^0-9A-Za-z\s])/, yt = /\\([^0-9A-Za-z\s])/g, Oo = /^([\s\S](?:(?! |[0-9]\.)[^=*_~\-\n<`\\\[!])*)/, Po = /^\n+/, Do = /^([ \t]*)/, $o = /\\([^\\])/g, Ao = /(?:^|\n)( *)$/, ot = "(?:\\d+\\.)", it = "(?:[*+-])";
910
- function _t(e) {
911
- return "( *)(" + (e === 1 ? ot : it) + ") +";
910
+ })(mt || (mt = {}));
911
+ const bt = ["allowFullScreen", "allowTransparency", "autoComplete", "autoFocus", "autoPlay", "cellPadding", "cellSpacing", "charSet", "classId", "colSpan", "contentEditable", "contextMenu", "crossOrigin", "encType", "formAction", "formEncType", "formMethod", "formNoValidate", "formTarget", "frameBorder", "hrefLang", "inputMode", "keyParams", "keyType", "marginHeight", "marginWidth", "maxLength", "mediaGroup", "minLength", "noValidate", "radioGroup", "readOnly", "rowSpan", "spellCheck", "srcDoc", "srcLang", "srcSet", "tabIndex", "useMap"].reduce((e, t) => (e[t.toLowerCase()] = t, e), { class: "className", for: "htmlFor" }), yt = { amp: "&", apos: "'", gt: ">", lt: "<", nbsp: " ", quot: "“" }, Kr = ["style", "script"], Jr = ["src", "href", "data", "formAction", "srcDoc", "action"], Xr = /([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi, Yr = /mailto:/i, eo = /\n{2,}$/, Wt = /^(\s*>[\s\S]*?)(?=\n\n|$)/, to = /^ *> ?/gm, no = /^(?:\[!([^\]]*)\]\n)?([\s\S]*)/, ro = /^ {2,}\n/, oo = /^(?:( *[-*_])){3,} *(?:\n *)+\n/, Zt = /^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/, jt = /^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/, io = /^(`+)((?:\\`|(?!\1)`|[^`])+)\1/, ao = /^(?:\n *)*\n/, so = /\r\n?/g, lo = /^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/, co = /^\[\^([^\]]+)]/, uo = /\f/g, po = /^---[ \t]*\n(.|\n)*\n---[ \t]*\n/, ho = /^\s*?\[(x|\s)\]/, Gt = /^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/, Vt = /^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/, Ut = /^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/, Ue = /^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i, go = /&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi, Qt = /^<!--[\s\S]*?(?:-->)/, Co = /^(data|aria|x)-[a-z_][a-z\d_.-]*$/, Qe = /^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i, fo = /^\{.*\}$/, mo = /^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/, bo = /^<([^ >]+@[^ >]+)>/, yo = /^<([^ >]+:\/[^ >]+)>/, xo = /-([a-z])?/gi, _t = /^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/, vo = /^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/, ko = /^!\[([^\]]*)\] ?\[([^\]]*)\]/, wo = /^\[([^\]]*)\] ?\[([^\]]*)\]/, So = /(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/, Mo = /\t/g, To = /(^ *\||\| *$)/g, Lo = /^ *:-+: *$/, Ro = /^ *:-+ *$/, Eo = /^ *-+: *$/, Oe = "((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|\\\\\\1|[\\s\\S])+?)", Io = new RegExp(`^([*_])\\1${Oe}\\1\\1(?!\\1)`), Bo = new RegExp(`^([*_])${Oe}\\1(?!\\1)`), Fo = new RegExp(`^(==)${Oe}\\1`), No = new RegExp(`^(~~)${Oe}\\1`), Ho = /^\\([^0-9A-Za-z\s])/, xt = /\\([^0-9A-Za-z\s])/g, Po = /^([\s\S](?:(?! |[0-9]\.)[^=*_~\-\n<`\\\[!])*)/, Oo = /^\n+/, Do = /^([ \t]*)/, $o = /\\([^\\])/g, Ao = /(?:^|\n)( *)$/, it = "(?:\\d+\\.)", at = "(?:[*+-])";
912
+ function Kt(e) {
913
+ return "( *)(" + (e === 1 ? it : at) + ") +";
912
914
  }
913
- const Kt = _t(1), Jt = _t(2);
914
- function Xt(e) {
915
- return new RegExp("^" + (e === 1 ? Kt : Jt));
916
- }
917
- const zo = Xt(1), qo = Xt(2);
915
+ const Jt = Kt(1), Xt = Kt(2);
918
916
  function Yt(e) {
919
- return new RegExp("^" + (e === 1 ? Kt : Jt) + "[^\\n]*(?:\\n(?!\\1" + (e === 1 ? ot : it) + " )[^\\n]*)*(\\n|$)", "gm");
917
+ return new RegExp("^" + (e === 1 ? Jt : Xt));
920
918
  }
921
- const Wo = Yt(1), Zo = Yt(2);
919
+ const zo = Yt(1), qo = Yt(2);
922
920
  function en(e) {
923
- const t = e === 1 ? ot : it;
921
+ return new RegExp("^" + (e === 1 ? Jt : Xt) + "[^\\n]*(?:\\n(?!\\1" + (e === 1 ? it : at) + " )[^\\n]*)*(\\n|$)", "gm");
922
+ }
923
+ const Wo = en(1), Zo = en(2);
924
+ function tn(e) {
925
+ const t = e === 1 ? it : at;
924
926
  return new RegExp("^( *)(" + t + ") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1" + t + " (?!" + t + " ))\\n*|\\s*\\n*$)");
925
927
  }
926
- const tn = en(1), nn = en(2);
927
- function xt(e, t) {
928
- const n = t === 1, r = n ? tn : nn, a = n ? Wo : Zo, c = n ? zo : qo;
929
- return { match: pe(function(s, p) {
928
+ const nn = tn(1), rn = tn(2);
929
+ function vt(e, t) {
930
+ const n = t === 1, r = n ? nn : rn, a = n ? Wo : Zo, c = n ? zo : qo;
931
+ return { match: he(function(s, p) {
930
932
  const d = Ao.exec(p.prevCapture);
931
933
  return d && (p.list || !p.inline && !p.simple) ? r.exec(s = d[1] + s) : null;
932
934
  }), order: 1, parse(s, p, d) {
933
- const h = n ? +s[2] : void 0, b = s[0].replace(eo, `
935
+ const g = n ? +s[2] : void 0, m = s[0].replace(eo, `
934
936
  `).match(a);
935
- let m = !1;
936
- return { items: b.map(function(i, u) {
937
- const l = c.exec(i)[0].length, C = new RegExp("^ {1," + l + "}", "gm"), g = i.replace(C, "").replace(c, ""), k = u === b.length - 1, S = g.indexOf(`
937
+ let b = !1;
938
+ return { items: m.map(function(i, u) {
939
+ const l = c.exec(i)[0].length, C = new RegExp("^ {1," + l + "}", "gm"), h = i.replace(C, "").replace(c, ""), k = u === m.length - 1, S = h.indexOf(`
938
940
 
939
- `) !== -1 || k && m;
940
- m = S;
941
- const y = d.inline, E = d.list;
942
- let R;
943
- d.list = !0, S ? (d.inline = !1, R = ye(g) + `
941
+ `) !== -1 || k && b;
942
+ b = S;
943
+ const x = d.inline, L = d.list;
944
+ let E;
945
+ d.list = !0, S ? (d.inline = !1, E = xe(h) + `
944
946
 
945
- `) : (d.inline = !0, R = ye(g));
946
- const M = p(R, d);
947
- return d.inline = y, d.list = E, M;
948
- }), ordered: n, start: h };
949
- }, render: (s, p, d) => e(s.ordered ? "ol" : "ul", { key: d.key, start: s.type === x.orderedList ? s.start : void 0 }, s.items.map(function(h, b) {
950
- return e("li", { key: b }, p(h, d));
947
+ `) : (d.inline = !0, E = xe(h));
948
+ const M = p(E, d);
949
+ return d.inline = x, d.list = L, M;
950
+ }), ordered: n, start: g };
951
+ }, render: (s, p, d) => e(s.ordered ? "ol" : "ul", { key: d.key, start: s.type === y.orderedList ? s.start : void 0 }, s.items.map(function(g, m) {
952
+ return e("li", { key: m }, p(g, d));
951
953
  })) };
952
954
  }
953
- const jo = new RegExp(`^\\[((?:\\[[^\\]]*\\]|[^\\[\\]]|\\](?=[^\\[]*\\]))*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*\\)`), Go = /^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/, rn = [qt, Wt, Zt, jt, Vt, Gt, Qt, tn, nn], Vo = [...rn, /^[^\n]+(?: \n|\n{2,})/, Ve, Ut, Ue];
954
- function ye(e) {
955
+ const jo = new RegExp(`^\\[((?:\\[[^\\]]*\\]|[^\\[\\]]|\\](?=[^\\[]*\\]))*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*\\)`), Go = /^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/, on = [Wt, Zt, jt, Gt, Ut, Vt, _t, nn, rn], Vo = [...on, /^[^\n]+(?: \n|\n{2,})/, Ue, Qt, Qe];
956
+ function xe(e) {
955
957
  let t = e.length;
956
958
  for (; t > 0 && e[t - 1] <= " "; )
957
959
  t--;
958
960
  return e.slice(0, t);
959
961
  }
960
- function fe(e) {
962
+ function me(e) {
961
963
  return e.replace(/[ÀÁÂÃÄÅàáâãä忯]/g, "a").replace(/[çÇ]/g, "c").replace(/[ðÐ]/g, "d").replace(/[ÈÉÊËéèêë]/g, "e").replace(/[ÏïÎîÍíÌì]/g, "i").replace(/[Ññ]/g, "n").replace(/[øØœŒÕõÔôÓóÒò]/g, "o").replace(/[ÜüÛûÚúÙù]/g, "u").replace(/[ŸÿÝý]/g, "y").replace(/[^a-z0-9- ]/gi, "").replace(/ /gi, "-").toLowerCase();
962
964
  }
963
965
  function Uo(e) {
964
966
  return Eo.test(e) ? "right" : Lo.test(e) ? "center" : Ro.test(e) ? "left" : null;
965
967
  }
966
- function vt(e, t, n, r) {
968
+ function kt(e, t, n, r) {
967
969
  const a = n.inTable;
968
970
  n.inTable = !0;
969
971
  let c = [[]], s = "";
@@ -973,33 +975,33 @@ function vt(e, t, n, r) {
973
975
  const d = c[c.length - 1];
974
976
  d.push.apply(d, t(s, n)), s = "";
975
977
  }
976
- return e.trim().split(/(`[^`]*`|\\\||\|)/).filter(Boolean).forEach((d, h, b) => {
977
- d.trim() === "|" && (p(), r) ? h !== 0 && h !== b.length - 1 && c.push([]) : s += d;
978
+ return e.trim().split(/(`[^`]*`|\\\||\|)/).filter(Boolean).forEach((d, g, m) => {
979
+ d.trim() === "|" && (p(), r) ? g !== 0 && g !== m.length - 1 && c.push([]) : s += d;
978
980
  }), p(), n.inTable = a, c;
979
981
  }
980
982
  function Qo(e, t, n) {
981
983
  n.inline = !0;
982
984
  const r = e[2] ? e[2].replace(To, "").split("|").map(Uo) : [], a = e[3] ? function(s, p, d) {
983
985
  return s.trim().split(`
984
- `).map(function(h) {
985
- return vt(h, p, d, !0);
986
+ `).map(function(g) {
987
+ return kt(g, p, d, !0);
986
988
  });
987
- }(e[3], t, n) : [], c = vt(e[1], t, n, !!a.length);
988
- return n.inline = !1, a.length ? { align: r, cells: a, header: c, type: x.table } : { children: c, type: x.paragraph };
989
+ }(e[3], t, n) : [], c = kt(e[1], t, n, !!a.length);
990
+ return n.inline = !1, a.length ? { align: r, cells: a, header: c, type: y.table } : { children: c, type: y.paragraph };
989
991
  }
990
- function kt(e, t) {
992
+ function wt(e, t) {
991
993
  return e.align[t] == null ? {} : { textAlign: e.align[t] };
992
994
  }
993
- function pe(e) {
995
+ function he(e) {
994
996
  return e.inline = 1, e;
995
997
  }
996
998
  function re(e) {
997
- return pe(function(t, n) {
999
+ return he(function(t, n) {
998
1000
  return n.inline ? e.exec(t) : null;
999
1001
  });
1000
1002
  }
1001
1003
  function oe(e) {
1002
- return pe(function(t, n) {
1004
+ return he(function(t, n) {
1003
1005
  return n.inline || n.simple ? e.exec(t) : null;
1004
1006
  });
1005
1007
  }
@@ -1008,8 +1010,8 @@ function Y(e) {
1008
1010
  return n.inline || n.simple ? null : e.exec(t);
1009
1011
  };
1010
1012
  }
1011
- function me(e) {
1012
- return pe(function(t) {
1013
+ function be(e) {
1014
+ return he(function(t) {
1013
1015
  return e.exec(t);
1014
1016
  });
1015
1017
  }
@@ -1019,8 +1021,8 @@ function _o(e, t) {
1019
1021
  let n = "";
1020
1022
  e.split(`
1021
1023
  `).every((a) => (a += `
1022
- `, !rn.some((c) => c.test(a)) && (n += a, !!a.trim())));
1023
- const r = ye(n);
1024
+ `, !on.some((c) => c.test(a)) && (n += a, !!a.trim())));
1025
+ const r = xe(n);
1024
1026
  return r == "" ? null : [n, , r];
1025
1027
  }
1026
1028
  const Ko = /(javascript|vbscript|data(?!:image)):/i;
@@ -1034,10 +1036,10 @@ function Jo(e) {
1034
1036
  }
1035
1037
  return e;
1036
1038
  }
1037
- function wt(e) {
1039
+ function St(e) {
1038
1040
  return e.replace($o, "$1");
1039
1041
  }
1040
- function Re(e, t, n) {
1042
+ function Ee(e, t, n) {
1041
1043
  const r = n.inline || !1, a = n.simple || !1;
1042
1044
  n.inline = !0, n.simple = !0;
1043
1045
  const c = e(t, n);
@@ -1055,17 +1057,17 @@ function Yo(e, t, n) {
1055
1057
  const a = e(t, n);
1056
1058
  return n.inline = r, a;
1057
1059
  }
1058
- const $e = (e, t, n) => ({ children: Re(t, e[2], n) });
1059
- function Ae() {
1060
+ const Ae = (e, t, n) => ({ children: Ee(t, e[2], n) });
1061
+ function ze() {
1060
1062
  return {};
1061
1063
  }
1062
- function ze() {
1064
+ function qe() {
1063
1065
  return null;
1064
1066
  }
1065
1067
  function ei(...e) {
1066
1068
  return e.filter(Boolean).join(" ");
1067
1069
  }
1068
- function qe(e, t, n) {
1070
+ function We(e, t, n) {
1069
1071
  let r = e;
1070
1072
  const a = t.split(".");
1071
1073
  for (; a.length && (r = r[a[0]], r !== void 0); )
@@ -1074,17 +1076,17 @@ function qe(e, t, n) {
1074
1076
  }
1075
1077
  function ti(e = "", t = {}) {
1076
1078
  function n(i, u, ...l) {
1077
- const C = qe(t.overrides, `${i}.props`, {});
1078
- return t.createElement(function(g, k) {
1079
- const S = qe(k, g);
1080
- return S ? typeof S == "function" || typeof S == "object" && "render" in S ? S : qe(k, `${g}.component`, g) : g;
1081
- }(i, t.overrides), ae({}, u, C, { className: ei(u == null ? void 0 : u.className, C.className) || void 0 }), ...l);
1079
+ const C = We(t.overrides, `${i}.props`, {});
1080
+ return t.createElement(function(h, k) {
1081
+ const S = We(k, h);
1082
+ return S ? typeof S == "function" || typeof S == "object" && "render" in S ? S : We(k, `${h}.component`, h) : h;
1083
+ }(i, t.overrides), se({}, u, C, { className: ei(u == null ? void 0 : u.className, C.className) || void 0 }), ...l);
1082
1084
  }
1083
1085
  function r(i) {
1084
1086
  i = i.replace(po, "");
1085
1087
  let u = !1;
1086
1088
  t.forceInline ? u = !0 : t.forceBlock || (u = So.test(i) === !1);
1087
- const l = h(d(u ? i : `${ye(i).replace(Po, "")}
1089
+ const l = g(d(u ? i : `${xe(i).replace(Oo, "")}
1088
1090
 
1089
1091
  `, { inline: u }));
1090
1092
  for (; typeof l[l.length - 1] == "string" && !l[l.length - 1].trim(); )
@@ -1092,190 +1094,190 @@ function ti(e = "", t = {}) {
1092
1094
  if (t.wrapper === null)
1093
1095
  return l;
1094
1096
  const C = t.wrapper || (u ? "span" : "div");
1095
- let g;
1097
+ let h;
1096
1098
  if (l.length > 1 || t.forceWrapper)
1097
- g = l;
1099
+ h = l;
1098
1100
  else {
1099
1101
  if (l.length === 1)
1100
- return g = l[0], typeof g == "string" ? n("span", { key: "outer" }, g) : g;
1101
- g = null;
1102
+ return h = l[0], typeof h == "string" ? n("span", { key: "outer" }, h) : h;
1103
+ h = null;
1102
1104
  }
1103
- return t.createElement(C, { key: "outer" }, g);
1105
+ return t.createElement(C, { key: "outer" }, h);
1104
1106
  }
1105
1107
  function a(i, u) {
1106
1108
  const l = u.match(Xr);
1107
- return l ? l.reduce(function(C, g) {
1108
- const k = g.indexOf("=");
1109
+ return l ? l.reduce(function(C, h) {
1110
+ const k = h.indexOf("=");
1109
1111
  if (k !== -1) {
1110
1112
  const S = function(M) {
1111
- return M.indexOf("-") !== -1 && M.match(Co) === null && (M = M.replace(xo, function(I, P) {
1112
- return P.toUpperCase();
1113
+ return M.indexOf("-") !== -1 && M.match(Co) === null && (M = M.replace(xo, function(I, O) {
1114
+ return O.toUpperCase();
1113
1115
  })), M;
1114
- }(g.slice(0, k)).trim(), y = function(M) {
1116
+ }(h.slice(0, k)).trim(), x = function(M) {
1115
1117
  const I = M[0];
1116
1118
  return (I === '"' || I === "'") && M.length >= 2 && M[M.length - 1] === I ? M.slice(1, -1) : M;
1117
- }(g.slice(k + 1).trim()), E = mt[S] || S;
1118
- if (E === "ref")
1119
+ }(h.slice(k + 1).trim()), L = bt[S] || S;
1120
+ if (L === "ref")
1119
1121
  return C;
1120
- const R = C[E] = function(M, I, P, se) {
1121
- return I === "style" ? function(Q) {
1122
- const A = [];
1123
- let U = "", F = !1, z = !1, X = "";
1124
- if (!Q)
1125
- return A;
1126
- for (let V = 0; V < Q.length; V++) {
1127
- const q = Q[V];
1128
- if (q !== '"' && q !== "'" || F || (z ? q === X && (z = !1, X = "") : (z = !0, X = q)), q === "(" && U.endsWith("url") ? F = !0 : q === ")" && F && (F = !1), q !== ";" || z || F)
1129
- U += q;
1122
+ const E = C[L] = function(M, I, O, ae) {
1123
+ return I === "style" ? function(U) {
1124
+ const Z = [];
1125
+ let q = "", G = !1, F = !1, Q = "";
1126
+ if (!U)
1127
+ return Z;
1128
+ for (let V = 0; V < U.length; V++) {
1129
+ const $ = U[V];
1130
+ if ($ !== '"' && $ !== "'" || G || (F ? $ === Q && (F = !1, Q = "") : (F = !0, Q = $)), $ === "(" && q.endsWith("url") ? G = !0 : $ === ")" && G && (G = !1), $ !== ";" || F || G)
1131
+ q += $;
1130
1132
  else {
1131
- const j = U.trim();
1133
+ const j = q.trim();
1132
1134
  if (j) {
1133
1135
  const te = j.indexOf(":");
1134
1136
  if (te > 0) {
1135
- const le = j.slice(0, te).trim(), N = j.slice(te + 1).trim();
1136
- A.push([le, N]);
1137
+ const le = j.slice(0, te).trim(), ce = j.slice(te + 1).trim();
1138
+ Z.push([le, ce]);
1137
1139
  }
1138
1140
  }
1139
- U = "";
1141
+ q = "";
1140
1142
  }
1141
1143
  }
1142
- const _ = U.trim();
1144
+ const _ = q.trim();
1143
1145
  if (_) {
1144
1146
  const V = _.indexOf(":");
1145
1147
  if (V > 0) {
1146
- const q = _.slice(0, V).trim(), j = _.slice(V + 1).trim();
1147
- A.push([q, j]);
1148
+ const $ = _.slice(0, V).trim(), j = _.slice(V + 1).trim();
1149
+ Z.push([$, j]);
1148
1150
  }
1149
1151
  }
1150
- return A;
1151
- }(P).reduce(function(Q, [A, U]) {
1152
- return Q[A.replace(/(-[a-z])/g, (F) => F[1].toUpperCase())] = se(U, M, A), Q;
1153
- }, {}) : Jr.indexOf(I) !== -1 ? se(P, M, I) : (P.match(fo) && (P = P.slice(1, P.length - 1)), P === "true" || P !== "false" && P);
1154
- }(i, S, y, t.sanitizer);
1155
- typeof R == "string" && (Ve.test(R) || Ue.test(R)) && (C[E] = r(R.trim()));
1152
+ return Z;
1153
+ }(O).reduce(function(U, [Z, q]) {
1154
+ return U[Z.replace(/(-[a-z])/g, (G) => G[1].toUpperCase())] = ae(q, M, Z), U;
1155
+ }, {}) : Jr.indexOf(I) !== -1 ? ae(O, M, I) : (O.match(fo) && (O = O.slice(1, O.length - 1)), O === "true" || O !== "false" && O);
1156
+ }(i, S, x, t.sanitizer);
1157
+ typeof E == "string" && (Ue.test(E) || Qe.test(E)) && (C[L] = r(E.trim()));
1156
1158
  } else
1157
- g !== "style" && (C[mt[g] || g] = !0);
1159
+ h !== "style" && (C[bt[h] || h] = !0);
1158
1160
  return C;
1159
1161
  }, {}) : null;
1160
1162
  }
1161
- t.overrides = t.overrides || {}, t.sanitizer = t.sanitizer || Jo, t.slugify = t.slugify || fe, t.namedCodesToUnicode = t.namedCodesToUnicode ? ae({}, bt, t.namedCodesToUnicode) : bt, t.createElement = t.createElement || K.createElement;
1162
- const c = [], s = {}, p = { [x.blockQuote]: { match: Y(qt), order: 1, parse(i, u, l) {
1163
- const [, C, g] = i[0].replace(to, "").match(no);
1164
- return { alert: C, children: u(g, l) };
1163
+ t.overrides = t.overrides || {}, t.sanitizer = t.sanitizer || Jo, t.slugify = t.slugify || me, t.namedCodesToUnicode = t.namedCodesToUnicode ? se({}, yt, t.namedCodesToUnicode) : yt, t.createElement = t.createElement || J.createElement;
1164
+ const c = [], s = {}, p = { [y.blockQuote]: { match: Y(Wt), order: 1, parse(i, u, l) {
1165
+ const [, C, h] = i[0].replace(to, "").match(no);
1166
+ return { alert: C, children: u(h, l) };
1165
1167
  }, render(i, u, l) {
1166
1168
  const C = { key: l.key };
1167
- return i.alert && (C.className = "markdown-alert-" + t.slugify(i.alert.toLowerCase(), fe), i.children.unshift({ attrs: {}, children: [{ type: x.text, text: i.alert }], noInnerParse: !0, type: x.htmlBlock, tag: "header" })), n("blockquote", C, u(i.children, l));
1168
- } }, [x.breakLine]: { match: me(ro), order: 1, parse: Ae, render: (i, u, l) => n("br", { key: l.key }) }, [x.breakThematic]: { match: Y(oo), order: 1, parse: Ae, render: (i, u, l) => n("hr", { key: l.key }) }, [x.codeBlock]: { match: Y(Zt), order: 0, parse: (i) => ({ lang: void 0, text: ye(i[0].replace(/^ {4}/gm, "")).replace(yt, "$1") }), render: (i, u, l) => n("pre", { key: l.key }, n("code", ae({}, i.attrs, { className: i.lang ? `lang-${i.lang}` : "" }), i.text)) }, [x.codeFenced]: { match: Y(Wt), order: 0, parse: (i) => ({ attrs: a("code", i[3] || ""), lang: i[2] || void 0, text: i[4], type: x.codeBlock }) }, [x.codeInline]: { match: oe(io), order: 3, parse: (i) => ({ text: i[2].replace(yt, "$1") }), render: (i, u, l) => n("code", { key: l.key }, i.text) }, [x.footnote]: { match: Y(lo), order: 0, parse: (i) => (c.push({ footnote: i[2], identifier: i[1] }), {}), render: ze }, [x.footnoteReference]: { match: re(co), order: 1, parse: (i) => ({ target: `#${t.slugify(i[1], fe)}`, text: i[1] }), render: (i, u, l) => n("a", { key: l.key, href: t.sanitizer(i.target, "a", "href") }, n("sup", { key: l.key }, i.text)) }, [x.gfmTask]: { match: re(ho), order: 1, parse: (i) => ({ completed: i[1].toLowerCase() === "x" }), render: (i, u, l) => n("input", { checked: i.completed, key: l.key, readOnly: !0, type: "checkbox" }) }, [x.heading]: { match: Y(t.enforceAtxHeadings ? Gt : jt), order: 1, parse: (i, u, l) => ({ children: Re(u, i[2], l), id: t.slugify(i[2], fe), level: i[1].length }), render: (i, u, l) => n(`h${i.level}`, { id: i.id, key: l.key }, u(i.children, l)) }, [x.headingSetext]: { match: Y(Vt), order: 0, parse: (i, u, l) => ({ children: Re(u, i[1], l), level: i[2] === "=" ? 1 : 2, type: x.heading }) }, [x.htmlBlock]: { match: me(Ve), order: 1, parse(i, u, l) {
1169
- const [, C] = i[3].match(Do), g = new RegExp(`^${C}`, "gm"), k = i[3].replace(g, ""), S = (y = k, Vo.some((P) => P.test(y)) ? Yo : Re);
1170
- var y;
1171
- const E = i[1].toLowerCase(), R = Kr.indexOf(E) !== -1, M = (R ? E : i[1]).trim(), I = { attrs: a(M, i[2]), noInnerParse: R, tag: M };
1172
- return l.inAnchor = l.inAnchor || E === "a", R ? I.text = i[3] : I.children = S(u, k, l), l.inAnchor = !1, I;
1173
- }, render: (i, u, l) => n(i.tag, ae({ key: l.key }, i.attrs), i.text || (i.children ? u(i.children, l) : "")) }, [x.htmlSelfClosing]: { match: me(Ue), order: 1, parse(i) {
1169
+ return i.alert && (C.className = "markdown-alert-" + t.slugify(i.alert.toLowerCase(), me), i.children.unshift({ attrs: {}, children: [{ type: y.text, text: i.alert }], noInnerParse: !0, type: y.htmlBlock, tag: "header" })), n("blockquote", C, u(i.children, l));
1170
+ } }, [y.breakLine]: { match: be(ro), order: 1, parse: ze, render: (i, u, l) => n("br", { key: l.key }) }, [y.breakThematic]: { match: Y(oo), order: 1, parse: ze, render: (i, u, l) => n("hr", { key: l.key }) }, [y.codeBlock]: { match: Y(jt), order: 0, parse: (i) => ({ lang: void 0, text: xe(i[0].replace(/^ {4}/gm, "")).replace(xt, "$1") }), render: (i, u, l) => n("pre", { key: l.key }, n("code", se({}, i.attrs, { className: i.lang ? `lang-${i.lang}` : "" }), i.text)) }, [y.codeFenced]: { match: Y(Zt), order: 0, parse: (i) => ({ attrs: a("code", i[3] || ""), lang: i[2] || void 0, text: i[4], type: y.codeBlock }) }, [y.codeInline]: { match: oe(io), order: 3, parse: (i) => ({ text: i[2].replace(xt, "$1") }), render: (i, u, l) => n("code", { key: l.key }, i.text) }, [y.footnote]: { match: Y(lo), order: 0, parse: (i) => (c.push({ footnote: i[2], identifier: i[1] }), {}), render: qe }, [y.footnoteReference]: { match: re(co), order: 1, parse: (i) => ({ target: `#${t.slugify(i[1], me)}`, text: i[1] }), render: (i, u, l) => n("a", { key: l.key, href: t.sanitizer(i.target, "a", "href") }, n("sup", { key: l.key }, i.text)) }, [y.gfmTask]: { match: re(ho), order: 1, parse: (i) => ({ completed: i[1].toLowerCase() === "x" }), render: (i, u, l) => n("input", { checked: i.completed, key: l.key, readOnly: !0, type: "checkbox" }) }, [y.heading]: { match: Y(t.enforceAtxHeadings ? Vt : Gt), order: 1, parse: (i, u, l) => ({ children: Ee(u, i[2], l), id: t.slugify(i[2], me), level: i[1].length }), render: (i, u, l) => n(`h${i.level}`, { id: i.id, key: l.key }, u(i.children, l)) }, [y.headingSetext]: { match: Y(Ut), order: 0, parse: (i, u, l) => ({ children: Ee(u, i[1], l), level: i[2] === "=" ? 1 : 2, type: y.heading }) }, [y.htmlBlock]: { match: be(Ue), order: 1, parse(i, u, l) {
1171
+ const [, C] = i[3].match(Do), h = new RegExp(`^${C}`, "gm"), k = i[3].replace(h, ""), S = (x = k, Vo.some((O) => O.test(x)) ? Yo : Ee);
1172
+ var x;
1173
+ const L = i[1].toLowerCase(), E = Kr.indexOf(L) !== -1, M = (E ? L : i[1]).trim(), I = { attrs: a(M, i[2]), noInnerParse: E, tag: M };
1174
+ return l.inAnchor = l.inAnchor || L === "a", E ? I.text = i[3] : I.children = S(u, k, l), l.inAnchor = !1, I;
1175
+ }, render: (i, u, l) => n(i.tag, se({ key: l.key }, i.attrs), i.text || (i.children ? u(i.children, l) : "")) }, [y.htmlSelfClosing]: { match: be(Qe), order: 1, parse(i) {
1174
1176
  const u = i[1].trim();
1175
1177
  return { attrs: a(u, i[2] || ""), tag: u };
1176
- }, render: (i, u, l) => n(i.tag, ae({}, i.attrs, { key: l.key })) }, [x.htmlComment]: { match: me(Ut), order: 1, parse: () => ({}), render: ze }, [x.image]: { match: oe(Go), order: 1, parse: (i) => ({ alt: i[1], target: wt(i[2]), title: i[3] }), render: (i, u, l) => n("img", { key: l.key, alt: i.alt || void 0, title: i.title || void 0, src: t.sanitizer(i.target, "img", "src") }) }, [x.link]: { match: re(jo), order: 3, parse: (i, u, l) => ({ children: Xo(u, i[1], l), target: wt(i[2]), title: i[3] }), render: (i, u, l) => n("a", { key: l.key, href: t.sanitizer(i.target, "a", "href"), title: i.title }, u(i.children, l)) }, [x.linkAngleBraceStyleDetector]: { match: re(yo), order: 0, parse: (i) => ({ children: [{ text: i[1], type: x.text }], target: i[1], type: x.link }) }, [x.linkBareUrlDetector]: { match: pe((i, u) => u.inAnchor || t.disableAutoLink ? null : re(mo)(i, u)), order: 0, parse: (i) => ({ children: [{ text: i[1], type: x.text }], target: i[1], title: void 0, type: x.link }) }, [x.linkMailtoDetector]: { match: re(bo), order: 0, parse(i) {
1178
+ }, render: (i, u, l) => n(i.tag, se({}, i.attrs, { key: l.key })) }, [y.htmlComment]: { match: be(Qt), order: 1, parse: () => ({}), render: qe }, [y.image]: { match: oe(Go), order: 1, parse: (i) => ({ alt: i[1], target: St(i[2]), title: i[3] }), render: (i, u, l) => n("img", { key: l.key, alt: i.alt || void 0, title: i.title || void 0, src: t.sanitizer(i.target, "img", "src") }) }, [y.link]: { match: re(jo), order: 3, parse: (i, u, l) => ({ children: Xo(u, i[1], l), target: St(i[2]), title: i[3] }), render: (i, u, l) => n("a", { key: l.key, href: t.sanitizer(i.target, "a", "href"), title: i.title }, u(i.children, l)) }, [y.linkAngleBraceStyleDetector]: { match: re(yo), order: 0, parse: (i) => ({ children: [{ text: i[1], type: y.text }], target: i[1], type: y.link }) }, [y.linkBareUrlDetector]: { match: he((i, u) => u.inAnchor || t.disableAutoLink ? null : re(mo)(i, u)), order: 0, parse: (i) => ({ children: [{ text: i[1], type: y.text }], target: i[1], title: void 0, type: y.link }) }, [y.linkMailtoDetector]: { match: re(bo), order: 0, parse(i) {
1177
1179
  let u = i[1], l = i[1];
1178
- return Yr.test(l) || (l = "mailto:" + l), { children: [{ text: u.replace("mailto:", ""), type: x.text }], target: l, type: x.link };
1179
- } }, [x.orderedList]: xt(n, 1), [x.unorderedList]: xt(n, 2), [x.newlineCoalescer]: { match: Y(ao), order: 3, parse: Ae, render: () => `
1180
- ` }, [x.paragraph]: { match: pe(_o), order: 3, parse: $e, render: (i, u, l) => n("p", { key: l.key }, u(i.children, l)) }, [x.ref]: { match: re(vo), order: 0, parse: (i) => (s[i[1]] = { target: i[2], title: i[4] }, {}), render: ze }, [x.refImage]: { match: oe(ko), order: 0, parse: (i) => ({ alt: i[1] || void 0, ref: i[2] }), render: (i, u, l) => s[i.ref] ? n("img", { key: l.key, alt: i.alt, src: t.sanitizer(s[i.ref].target, "img", "src"), title: s[i.ref].title }) : null }, [x.refLink]: { match: re(wo), order: 0, parse: (i, u, l) => ({ children: u(i[1], l), fallbackChildren: i[0], ref: i[2] }), render: (i, u, l) => s[i.ref] ? n("a", { key: l.key, href: t.sanitizer(s[i.ref].target, "a", "href"), title: s[i.ref].title }, u(i.children, l)) : n("span", { key: l.key }, i.fallbackChildren) }, [x.table]: { match: Y(Qt), order: 1, parse: Qo, render(i, u, l) {
1180
+ return Yr.test(l) || (l = "mailto:" + l), { children: [{ text: u.replace("mailto:", ""), type: y.text }], target: l, type: y.link };
1181
+ } }, [y.orderedList]: vt(n, 1), [y.unorderedList]: vt(n, 2), [y.newlineCoalescer]: { match: Y(ao), order: 3, parse: ze, render: () => `
1182
+ ` }, [y.paragraph]: { match: he(_o), order: 3, parse: Ae, render: (i, u, l) => n("p", { key: l.key }, u(i.children, l)) }, [y.ref]: { match: re(vo), order: 0, parse: (i) => (s[i[1]] = { target: i[2], title: i[4] }, {}), render: qe }, [y.refImage]: { match: oe(ko), order: 0, parse: (i) => ({ alt: i[1] || void 0, ref: i[2] }), render: (i, u, l) => s[i.ref] ? n("img", { key: l.key, alt: i.alt, src: t.sanitizer(s[i.ref].target, "img", "src"), title: s[i.ref].title }) : null }, [y.refLink]: { match: re(wo), order: 0, parse: (i, u, l) => ({ children: u(i[1], l), fallbackChildren: i[0], ref: i[2] }), render: (i, u, l) => s[i.ref] ? n("a", { key: l.key, href: t.sanitizer(s[i.ref].target, "a", "href"), title: s[i.ref].title }, u(i.children, l)) : n("span", { key: l.key }, i.fallbackChildren) }, [y.table]: { match: Y(_t), order: 1, parse: Qo, render(i, u, l) {
1181
1183
  const C = i;
1182
- return n("table", { key: l.key }, n("thead", null, n("tr", null, C.header.map(function(g, k) {
1183
- return n("th", { key: k, style: kt(C, k) }, u(g, l));
1184
- }))), n("tbody", null, C.cells.map(function(g, k) {
1185
- return n("tr", { key: k }, g.map(function(S, y) {
1186
- return n("td", { key: y, style: kt(C, y) }, u(S, l));
1184
+ return n("table", { key: l.key }, n("thead", null, n("tr", null, C.header.map(function(h, k) {
1185
+ return n("th", { key: k, style: wt(C, k) }, u(h, l));
1186
+ }))), n("tbody", null, C.cells.map(function(h, k) {
1187
+ return n("tr", { key: k }, h.map(function(S, x) {
1188
+ return n("td", { key: x, style: wt(C, x) }, u(S, l));
1187
1189
  }));
1188
1190
  })));
1189
- } }, [x.text]: { match: me(Oo), order: 4, parse: (i) => ({ text: i[0].replace(go, (u, l) => t.namedCodesToUnicode[l] ? t.namedCodesToUnicode[l] : u) }), render: (i) => i.text }, [x.textBolded]: { match: oe(Io), order: 2, parse: (i, u, l) => ({ children: u(i[2], l) }), render: (i, u, l) => n("strong", { key: l.key }, u(i.children, l)) }, [x.textEmphasized]: { match: oe(Bo), order: 3, parse: (i, u, l) => ({ children: u(i[2], l) }), render: (i, u, l) => n("em", { key: l.key }, u(i.children, l)) }, [x.textEscaped]: { match: oe(Ho), order: 1, parse: (i) => ({ text: i[1], type: x.text }) }, [x.textMarked]: { match: oe(Fo), order: 3, parse: $e, render: (i, u, l) => n("mark", { key: l.key }, u(i.children, l)) }, [x.textStrikethroughed]: { match: oe(No), order: 3, parse: $e, render: (i, u, l) => n("del", { key: l.key }, u(i.children, l)) } };
1190
- t.disableParsingRawHTML === !0 && (delete p[x.htmlBlock], delete p[x.htmlSelfClosing]);
1191
+ } }, [y.text]: { match: be(Po), order: 4, parse: (i) => ({ text: i[0].replace(go, (u, l) => t.namedCodesToUnicode[l] ? t.namedCodesToUnicode[l] : u) }), render: (i) => i.text }, [y.textBolded]: { match: oe(Io), order: 2, parse: (i, u, l) => ({ children: u(i[2], l) }), render: (i, u, l) => n("strong", { key: l.key }, u(i.children, l)) }, [y.textEmphasized]: { match: oe(Bo), order: 3, parse: (i, u, l) => ({ children: u(i[2], l) }), render: (i, u, l) => n("em", { key: l.key }, u(i.children, l)) }, [y.textEscaped]: { match: oe(Ho), order: 1, parse: (i) => ({ text: i[1], type: y.text }) }, [y.textMarked]: { match: oe(Fo), order: 3, parse: Ae, render: (i, u, l) => n("mark", { key: l.key }, u(i.children, l)) }, [y.textStrikethroughed]: { match: oe(No), order: 3, parse: Ae, render: (i, u, l) => n("del", { key: l.key }, u(i.children, l)) } };
1192
+ t.disableParsingRawHTML === !0 && (delete p[y.htmlBlock], delete p[y.htmlSelfClosing]);
1191
1193
  const d = function(i) {
1192
1194
  let u = Object.keys(i);
1193
- function l(C, g) {
1194
- let k, S, y = [], E = "", R = "";
1195
- for (g.prevCapture = g.prevCapture || ""; C; ) {
1195
+ function l(C, h) {
1196
+ let k, S, x = [], L = "", E = "";
1197
+ for (h.prevCapture = h.prevCapture || ""; C; ) {
1196
1198
  let M = 0;
1197
1199
  for (; M < u.length; ) {
1198
- if (E = u[M], k = i[E], g.inline && !k.match.inline) {
1200
+ if (L = u[M], k = i[L], h.inline && !k.match.inline) {
1199
1201
  M++;
1200
1202
  continue;
1201
1203
  }
1202
- const I = k.match(C, g);
1204
+ const I = k.match(C, h);
1203
1205
  if (I) {
1204
- R = I[0], g.prevCapture += R, C = C.substring(R.length), S = k.parse(I, l, g), S.type == null && (S.type = E), y.push(S);
1206
+ E = I[0], h.prevCapture += E, C = C.substring(E.length), S = k.parse(I, l, h), S.type == null && (S.type = L), x.push(S);
1205
1207
  break;
1206
1208
  }
1207
1209
  M++;
1208
1210
  }
1209
1211
  }
1210
- return g.prevCapture = "", y;
1212
+ return h.prevCapture = "", x;
1211
1213
  }
1212
- return u.sort(function(C, g) {
1213
- let k = i[C].order, S = i[g].order;
1214
- return k !== S ? k - S : C < g ? -1 : 1;
1215
- }), function(C, g) {
1214
+ return u.sort(function(C, h) {
1215
+ let k = i[C].order, S = i[h].order;
1216
+ return k !== S ? k - S : C < h ? -1 : 1;
1217
+ }), function(C, h) {
1216
1218
  return l(function(k) {
1217
1219
  return k.replace(so, `
1218
1220
  `).replace(uo, "").replace(Mo, " ");
1219
- }(C), g);
1221
+ }(C), h);
1220
1222
  };
1221
- }(p), h = (b = /* @__PURE__ */ function(i, u) {
1222
- return function(l, C, g) {
1223
+ }(p), g = (m = /* @__PURE__ */ function(i, u) {
1224
+ return function(l, C, h) {
1223
1225
  const k = i[l.type].render;
1224
- return u ? u(() => k(l, C, g), l, C, g) : k(l, C, g);
1226
+ return u ? u(() => k(l, C, h), l, C, h) : k(l, C, h);
1225
1227
  };
1226
1228
  }(p, t.renderRule), function i(u, l = {}) {
1227
1229
  if (Array.isArray(u)) {
1228
- const C = l.key, g = [];
1230
+ const C = l.key, h = [];
1229
1231
  let k = !1;
1230
1232
  for (let S = 0; S < u.length; S++) {
1231
1233
  l.key = S;
1232
- const y = i(u[S], l), E = typeof y == "string";
1233
- E && k ? g[g.length - 1] += y : y !== null && g.push(y), k = E;
1234
+ const x = i(u[S], l), L = typeof x == "string";
1235
+ L && k ? h[h.length - 1] += x : x !== null && h.push(x), k = L;
1234
1236
  }
1235
- return l.key = C, g;
1237
+ return l.key = C, h;
1236
1238
  }
1237
- return b(u, i, l);
1239
+ return m(u, i, l);
1238
1240
  });
1239
- var b;
1240
- const m = r(e);
1241
- return c.length ? n("div", null, m, n("footer", { key: "footer" }, c.map(function(i) {
1242
- return n("div", { id: t.slugify(i.identifier, fe), key: i.identifier }, i.identifier, h(d(i.footnote, { inline: !0 })));
1243
- }))) : m;
1241
+ var m;
1242
+ const b = r(e);
1243
+ return c.length ? n("div", null, b, n("footer", { key: "footer" }, c.map(function(i) {
1244
+ return n("div", { id: t.slugify(i.identifier, me), key: i.identifier }, i.identifier, g(d(i.footnote, { inline: !0 })));
1245
+ }))) : b;
1244
1246
  }
1245
1247
  const ni = (e) => {
1246
1248
  let { children: t = "", options: n } = e, r = function(a, c) {
1247
1249
  if (a == null)
1248
1250
  return {};
1249
- var s, p, d = {}, h = Object.keys(a);
1250
- for (p = 0; p < h.length; p++)
1251
- c.indexOf(s = h[p]) >= 0 || (d[s] = a[s]);
1251
+ var s, p, d = {}, g = Object.keys(a);
1252
+ for (p = 0; p < g.length; p++)
1253
+ c.indexOf(s = g[p]) >= 0 || (d[s] = a[s]);
1252
1254
  return d;
1253
1255
  }(e, _r);
1254
- return K.cloneElement(ti(t, n), r);
1256
+ return J.cloneElement(ti(t, n), r);
1255
1257
  }, ri = /* @__PURE__ */ v("div", {
1256
1258
  target: "e1vkf9b40",
1257
1259
  label: "FlexContainer"
1258
- })("display:flex;", ({ align: e }) => e === "right" ? $`
1260
+ })("display:flex;", ({ align: e }) => e === "right" ? A`
1259
1261
  justify-content: flex-end;
1260
- ` : $`
1262
+ ` : A`
1261
1263
  justify-content: flex-start;
1262
- `), on = /* @__PURE__ */ v("div", {
1264
+ `), an = /* @__PURE__ */ v("div", {
1263
1265
  target: "e1vkf9b41",
1264
1266
  label: "MessageContainer"
1265
- })("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;", ({ align: e }) => e === "right" ? $`
1267
+ })("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;", ({ align: e }) => e === "right" ? A`
1266
1268
  text-align: right;
1267
1269
  border-radius: 10px 10px 0px 10px;
1268
- ` : $`
1270
+ ` : A`
1269
1271
  text-align: left;
1270
1272
  border-radius: 10px 10px 10px 0px;
1271
- `, " ", ({ align: e }) => e !== "full" ? $`
1273
+ `, " ", ({ align: e }) => e !== "full" ? A`
1272
1274
  max-width: 85%;
1273
1275
  ` : "", " color:", ({ theme: e }) => e.aiChat.primaryTextColor, ";background-color:", ({ theme: e, align: t }) => t === "right" ? e.aiChat.userMessages.backgroundColor : e.aiChat.systemMessages.backgroundColor, ";"), ie = ({ align: e, children: t }) => {
1274
- const { themeSettings: n } = L();
1276
+ const { themeSettings: n } = R();
1275
1277
  return /* @__PURE__ */ o(ri, {
1276
1278
  theme: n,
1277
1279
  align: e,
1278
- children: /* @__PURE__ */ o(on, {
1280
+ children: /* @__PURE__ */ o(an, {
1279
1281
  theme: n,
1280
1282
  align: e,
1281
1283
  children: typeof t == "string" ? /* @__PURE__ */ o(ni, {
@@ -1301,8 +1303,8 @@ const ii = /* @__PURE__ */ v("div", {
1301
1303
  target: "e1r5p4wy2",
1302
1304
  label: "ActionButton"
1303
1305
  })("color:rgba(54,163,217,1);cursor:pointer;");
1304
- function an({ text: e, action: t }) {
1305
- const { themeSettings: n } = L();
1306
+ function sn({ text: e, action: t }) {
1307
+ const { themeSettings: n } = R();
1306
1308
  return /* @__PURE__ */ w(ii, {
1307
1309
  children: [
1308
1310
  /* @__PURE__ */ o(ai, {
@@ -1317,26 +1319,26 @@ function an({ text: e, action: t }) {
1317
1319
  ]
1318
1320
  });
1319
1321
  }
1320
- const Le = /* @__PURE__ */ v("div", {
1322
+ const Re = /* @__PURE__ */ v("div", {
1321
1323
  target: "e3ryei50",
1322
1324
  label: "Dot"
1323
1325
  })("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%);}}");
1324
- function at() {
1325
- const { themeSettings: e } = L(), t = e.aiChat.icons.color;
1326
+ function st() {
1327
+ const { themeSettings: e } = R(), t = e.aiChat.icons.color;
1326
1328
  return /* @__PURE__ */ w("div", {
1327
1329
  className: "csdk-flex csdk-justify-between csdk-w-[28px] csdk-py-[14.5px]",
1328
1330
  "aria-label": "loading dots",
1329
1331
  children: [
1330
- /* @__PURE__ */ o(Le, {
1332
+ /* @__PURE__ */ o(Re, {
1331
1333
  color: t
1332
1334
  }),
1333
- /* @__PURE__ */ o(Le, {
1335
+ /* @__PURE__ */ o(Re, {
1334
1336
  color: t
1335
1337
  }),
1336
- /* @__PURE__ */ o(Le, {
1338
+ /* @__PURE__ */ o(Re, {
1337
1339
  color: t
1338
1340
  }),
1339
- /* @__PURE__ */ o(Le, {
1341
+ /* @__PURE__ */ o(Re, {
1340
1342
  color: t
1341
1343
  })
1342
1344
  ]
@@ -1345,24 +1347,24 @@ function at() {
1345
1347
  const li = /* @__PURE__ */ v("div", {
1346
1348
  target: "ed5z2fc0",
1347
1349
  label: "FlexContainer"
1348
- })("display:flex;", ({ align: e }) => e === "right" ? $`
1350
+ })("display:flex;", ({ align: e }) => e === "right" ? A`
1349
1351
  justify-content: flex-end;
1350
- ` : $`
1352
+ ` : A`
1351
1353
  justify-content: flex-start;
1352
1354
  `), ci = /* @__PURE__ */ v("button", {
1353
1355
  target: "ed5z2fc1",
1354
1356
  label: "MessageButton"
1355
- })("font-family:inherit;font-size:inherit;line-height:inherit;border:", ({ theme: e }) => e.aiChat.clickableMessages.border, ";padding:0;cursor:pointer;color:", ({ theme: e }) => e.aiChat.clickableMessages.textColor, ";background-color:", ({ theme: e }) => e.aiChat.clickableMessages.backgroundColor, ";&:hover{color:", ({ theme: e }) => e.aiChat.clickableMessages.hover.textColor, ";background-color:", ({ theme: e }) => e.aiChat.clickableMessages.hover.backgroundColor, ";}border-radius:20px;", ({ align: e }) => e === "right" ? $`
1357
+ })("font-family:inherit;font-size:inherit;line-height:inherit;border:", ({ theme: e }) => e.aiChat.clickableMessages.border, ";padding:0;cursor:pointer;color:", ({ theme: e }) => e.aiChat.clickableMessages.textColor, ";background-color:", ({ theme: e }) => e.aiChat.clickableMessages.backgroundColor, ";&:hover{color:", ({ theme: e }) => e.aiChat.clickableMessages.hover.textColor, ";background-color:", ({ theme: e }) => e.aiChat.clickableMessages.hover.backgroundColor, ";}border-radius:20px;", ({ align: e }) => e === "right" ? A`
1356
1358
  text-align: right;
1357
- ` : $`
1359
+ ` : A`
1358
1360
  text-align: left;
1359
- `, " ", ({ align: e }) => e !== "full" ? $`
1361
+ `, " ", ({ align: e }) => e !== "full" ? A`
1360
1362
  max-width: 382px;
1361
1363
  ` : "", " ", ({ theme: e }) => {
1362
1364
  const { borderGradient: t, borderRadius: n } = e.aiChat.suggestions;
1363
1365
  if (t) {
1364
1366
  const [r, a] = t;
1365
- return $`
1367
+ return A`
1366
1368
  border: none;
1367
1369
  position: relative;
1368
1370
  border-radius: ${n};
@@ -1384,8 +1386,8 @@ const li = /* @__PURE__ */ v("div", {
1384
1386
  }
1385
1387
  return "";
1386
1388
  });
1387
- function Ie({ children: e, align: t, onClick: n, onMouseEnter: r, onMouseLeave: a, accessibleName: c }) {
1388
- const { themeSettings: s } = L();
1389
+ function Be({ children: e, align: t, onClick: n, onMouseEnter: r, onMouseLeave: a, accessibleName: c }) {
1390
+ const { themeSettings: s } = R();
1389
1391
  return /* @__PURE__ */ o(li, {
1390
1392
  align: t,
1391
1393
  children: /* @__PURE__ */ o(ci, {
@@ -1400,8 +1402,8 @@ function Ie({ children: e, align: t, onClick: n, onMouseEnter: r, onMouseLeave:
1400
1402
  });
1401
1403
  }
1402
1404
  function di({ onCancel: e, onConfirm: t }) {
1403
- const { t: n } = O();
1404
- return /* @__PURE__ */ w(G, {
1405
+ const { t: n } = P();
1406
+ return /* @__PURE__ */ w(W, {
1405
1407
  children: [
1406
1408
  /* @__PURE__ */ o(ie, {
1407
1409
  align: "left",
@@ -1410,7 +1412,7 @@ function di({ onCancel: e, onConfirm: t }) {
1410
1412
  /* @__PURE__ */ w("div", {
1411
1413
  className: "csdk-flex csdk-gap-x-2",
1412
1414
  children: [
1413
- /* @__PURE__ */ o(Ie, {
1415
+ /* @__PURE__ */ o(Be, {
1414
1416
  align: "right",
1415
1417
  onClick: t,
1416
1418
  accessibleName: "confirm clear chat",
@@ -1419,7 +1421,7 @@ function di({ onCancel: e, onConfirm: t }) {
1419
1421
  children: n("ai.buttons.yes")
1420
1422
  })
1421
1423
  }),
1422
- /* @__PURE__ */ o(Ie, {
1424
+ /* @__PURE__ */ o(Be, {
1423
1425
  align: "right",
1424
1426
  onClick: e,
1425
1427
  accessibleName: "cancel clear chat",
@@ -1436,9 +1438,9 @@ function di({ onCancel: e, onConfirm: t }) {
1436
1438
  function ui(e) {
1437
1439
  return Bn("MuiDialog", e);
1438
1440
  }
1439
- const We = In("MuiDialog", ["root", "scrollPaper", "scrollBody", "container", "paper", "paperScrollPaper", "paperScrollBody", "paperWidthFalse", "paperWidthXs", "paperWidthSm", "paperWidthMd", "paperWidthLg", "paperWidthXl", "paperFullWidth", "paperFullScreen"]), sn = /* @__PURE__ */ K.createContext({});
1440
- process.env.NODE_ENV !== "production" && (sn.displayName = "DialogContext");
1441
- const pi = Be(Fn, {
1441
+ const Ze = In("MuiDialog", ["root", "scrollPaper", "scrollBody", "container", "paper", "paperScrollPaper", "paperScrollBody", "paperWidthFalse", "paperWidthXs", "paperWidthSm", "paperWidthMd", "paperWidthLg", "paperWidthXl", "paperFullWidth", "paperFullScreen"]), ln = /* @__PURE__ */ J.createContext({});
1442
+ process.env.NODE_ENV !== "production" && (ln.displayName = "DialogContext");
1443
+ const pi = Fe(Fn, {
1442
1444
  name: "MuiDialog",
1443
1445
  slot: "Backdrop",
1444
1446
  overrides: (e, t) => t.backdrop
@@ -1454,11 +1456,11 @@ const pi = Be(Fn, {
1454
1456
  fullScreen: c
1455
1457
  } = e, s = {
1456
1458
  root: ["root"],
1457
- container: ["container", `scroll${de(n)}`],
1458
- paper: ["paper", `paperScroll${de(n)}`, `paperWidth${de(String(r))}`, a && "paperFullWidth", c && "paperFullScreen"]
1459
+ container: ["container", `scroll${ue(n)}`],
1460
+ paper: ["paper", `paperScroll${ue(n)}`, `paperWidth${ue(String(r))}`, a && "paperFullWidth", c && "paperFullScreen"]
1459
1461
  };
1460
1462
  return $n(s, ui, t);
1461
- }, gi = Be(Nn, {
1463
+ }, gi = Fe(Nn, {
1462
1464
  name: "MuiDialog",
1463
1465
  slot: "Root",
1464
1466
  overridesResolver: (e, t) => t.root
@@ -1467,14 +1469,14 @@ const pi = Be(Fn, {
1467
1469
  // Use !important to override the Modal inline-style.
1468
1470
  position: "absolute !important"
1469
1471
  }
1470
- }), Ci = Be("div", {
1472
+ }), Ci = Fe("div", {
1471
1473
  name: "MuiDialog",
1472
1474
  slot: "Container",
1473
1475
  overridesResolver: (e, t) => {
1474
1476
  const {
1475
1477
  ownerState: n
1476
1478
  } = e;
1477
- return [t.container, t[`scroll${de(n.scroll)}`]];
1479
+ return [t.container, t[`scroll${ue(n.scroll)}`]];
1478
1480
  }
1479
1481
  })({
1480
1482
  height: "100%",
@@ -1509,14 +1511,14 @@ const pi = Be(Fn, {
1509
1511
  }
1510
1512
  }
1511
1513
  }]
1512
- }), fi = Be(It, {
1514
+ }), fi = Fe(Bt, {
1513
1515
  name: "MuiDialog",
1514
1516
  slot: "Paper",
1515
1517
  overridesResolver: (e, t) => {
1516
1518
  const {
1517
1519
  ownerState: n
1518
1520
  } = e;
1519
- return [t.paper, t[`scrollPaper${de(n.scroll)}`], t[`paperWidth${de(String(n.maxWidth))}`], n.fullWidth && t.paperFullWidth, n.fullScreen && t.paperFullScreen];
1521
+ return [t.paper, t[`scrollPaper${ue(n.scroll)}`], t[`paperWidth${ue(String(n.maxWidth))}`], n.fullWidth && t.paperFullWidth, n.fullScreen && t.paperFullScreen];
1520
1522
  }
1521
1523
  })(Hn(({
1522
1524
  theme: e
@@ -1559,7 +1561,7 @@ const pi = Be(Fn, {
1559
1561
  },
1560
1562
  style: {
1561
1563
  maxWidth: e.breakpoints.unit === "px" ? Math.max(e.breakpoints.values.xs, 444) : `max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,
1562
- [`&.${We.paperScrollBody}`]: {
1564
+ [`&.${Ze.paperScrollBody}`]: {
1563
1565
  [e.breakpoints.down(Math.max(e.breakpoints.values.xs, 444) + 32 * 2)]: {
1564
1566
  maxWidth: "calc(100% - 64px)"
1565
1567
  }
@@ -1571,7 +1573,7 @@ const pi = Be(Fn, {
1571
1573
  },
1572
1574
  style: {
1573
1575
  maxWidth: `${e.breakpoints.values[t]}${e.breakpoints.unit}`,
1574
- [`&.${We.paperScrollBody}`]: {
1576
+ [`&.${Ze.paperScrollBody}`]: {
1575
1577
  [e.breakpoints.down(e.breakpoints.values[t] + 32 * 2)]: {
1576
1578
  maxWidth: "calc(100% - 64px)"
1577
1579
  }
@@ -1595,44 +1597,44 @@ const pi = Be(Fn, {
1595
1597
  height: "100%",
1596
1598
  maxHeight: "none",
1597
1599
  borderRadius: 0,
1598
- [`&.${We.paperScrollBody}`]: {
1600
+ [`&.${Ze.paperScrollBody}`]: {
1599
1601
  margin: 0,
1600
1602
  maxWidth: "100%"
1601
1603
  }
1602
1604
  }
1603
1605
  }]
1604
- }))), ln = /* @__PURE__ */ K.forwardRef(function(t, n) {
1605
- const r = On({
1606
+ }))), cn = /* @__PURE__ */ J.forwardRef(function(t, n) {
1607
+ const r = Pn({
1606
1608
  props: t,
1607
1609
  name: "MuiDialog"
1608
- }), a = Pn(), c = {
1610
+ }), a = On(), c = {
1609
1611
  enter: a.transitions.duration.enteringScreen,
1610
1612
  exit: a.transitions.duration.leavingScreen
1611
- }, dt = r, {
1613
+ }, ut = r, {
1612
1614
  "aria-describedby": s,
1613
1615
  "aria-labelledby": p,
1614
1616
  "aria-modal": d = !0,
1615
- BackdropComponent: h,
1616
- BackdropProps: b,
1617
- children: m,
1617
+ BackdropComponent: g,
1618
+ BackdropProps: m,
1619
+ children: b,
1618
1620
  className: i,
1619
1621
  disableEscapeKeyDown: u = !1,
1620
1622
  fullScreen: l = !1,
1621
1623
  fullWidth: C = !1,
1622
- maxWidth: g = "sm",
1624
+ maxWidth: h = "sm",
1623
1625
  onBackdropClick: k,
1624
1626
  onClick: S,
1625
- onClose: y,
1626
- open: E,
1627
- PaperComponent: R = It,
1627
+ onClose: x,
1628
+ open: L,
1629
+ PaperComponent: E = Bt,
1628
1630
  PaperProps: M = {},
1629
1631
  scroll: I = "paper",
1630
- slots: P = {},
1631
- slotProps: se = {},
1632
- TransitionComponent: Q = gt,
1633
- transitionDuration: A = c,
1634
- TransitionProps: U
1635
- } = dt, F = Pe(dt, [
1632
+ slots: O = {},
1633
+ slotProps: ae = {},
1634
+ TransitionComponent: U = Ct,
1635
+ transitionDuration: Z = c,
1636
+ TransitionProps: q
1637
+ } = ut, G = De(ut, [
1636
1638
  "aria-describedby",
1637
1639
  "aria-labelledby",
1638
1640
  "aria-modal",
@@ -1656,99 +1658,99 @@ const pi = Be(Fn, {
1656
1658
  "TransitionComponent",
1657
1659
  "transitionDuration",
1658
1660
  "TransitionProps"
1659
- ]), z = B(T({}, r), {
1661
+ ]), F = B(T({}, r), {
1660
1662
  disableEscapeKeyDown: u,
1661
1663
  fullScreen: l,
1662
1664
  fullWidth: C,
1663
- maxWidth: g,
1665
+ maxWidth: h,
1664
1666
  scroll: I
1665
- }), X = hi(z), _ = K.useRef(), V = (ce) => {
1666
- _.current = ce.target === ce.currentTarget;
1667
- }, q = (ce) => {
1668
- S && S(ce), _.current && (_.current = null, k && k(ce), y && y(ce, "backdropClick"));
1669
- }, j = Dn(p), te = K.useMemo(() => ({
1667
+ }), Q = hi(F), _ = J.useRef(), V = (de) => {
1668
+ _.current = de.target === de.currentTarget;
1669
+ }, $ = (de) => {
1670
+ S && S(de), _.current && (_.current = null, k && k(de), x && x(de, "backdropClick"));
1671
+ }, j = Dn(p), te = J.useMemo(() => ({
1670
1672
  titleId: j
1671
1673
  }), [j]), le = T({
1672
- transition: Q
1673
- }, P), N = T({
1674
- transition: U,
1674
+ transition: U
1675
+ }, O), ce = T({
1676
+ transition: q,
1675
1677
  paper: M,
1676
- backdrop: b
1677
- }, se), W = {
1678
+ backdrop: m
1679
+ }, ae), N = {
1678
1680
  slots: le,
1679
- slotProps: N
1680
- }, [Se, ct] = ge("root", {
1681
+ slotProps: ce
1682
+ }, [K, Me] = Ce("root", {
1681
1683
  elementType: gi,
1682
1684
  shouldForwardComponentProp: !0,
1683
- externalForwardedProps: W,
1684
- ownerState: z,
1685
- className: De(X.root, i),
1685
+ externalForwardedProps: N,
1686
+ ownerState: F,
1687
+ className: $e(Q.root, i),
1686
1688
  ref: n
1687
- }), [Me, pn] = ge("backdrop", {
1689
+ }), [dt, Te] = Ce("backdrop", {
1688
1690
  elementType: pi,
1689
1691
  shouldForwardComponentProp: !0,
1690
- externalForwardedProps: W,
1691
- ownerState: z
1692
- }), [hn, gn] = ge("paper", {
1692
+ externalForwardedProps: N,
1693
+ ownerState: F
1694
+ }), [hn, gn] = Ce("paper", {
1693
1695
  elementType: fi,
1694
1696
  shouldForwardComponentProp: !0,
1695
- externalForwardedProps: W,
1696
- ownerState: z,
1697
- className: De(X.paper, M.className)
1698
- }), [Cn, fn] = ge("container", {
1697
+ externalForwardedProps: N,
1698
+ ownerState: F,
1699
+ className: $e(Q.paper, M.className)
1700
+ }), [Cn, fn] = Ce("container", {
1699
1701
  elementType: Ci,
1700
- externalForwardedProps: W,
1701
- ownerState: z,
1702
- className: De(X.container)
1703
- }), [mn, bn] = ge("transition", {
1704
- elementType: gt,
1705
- externalForwardedProps: W,
1706
- ownerState: z,
1702
+ externalForwardedProps: N,
1703
+ ownerState: F,
1704
+ className: $e(Q.container)
1705
+ }), [mn, bn] = Ce("transition", {
1706
+ elementType: Ct,
1707
+ externalForwardedProps: N,
1708
+ ownerState: F,
1707
1709
  additionalProps: {
1708
1710
  appear: !0,
1709
- in: E,
1710
- timeout: A,
1711
+ in: L,
1712
+ timeout: Z,
1711
1713
  role: "presentation"
1712
1714
  }
1713
1715
  });
1714
- return /* @__PURE__ */ Ce(Se, B(T(T({
1716
+ return /* @__PURE__ */ fe(K, B(T(T({
1715
1717
  closeAfterTransition: !0,
1716
1718
  slots: {
1717
- backdrop: Me
1719
+ backdrop: dt
1718
1720
  },
1719
1721
  slotProps: {
1720
1722
  backdrop: T({
1721
- transitionDuration: A,
1722
- as: h
1723
- }, pn)
1723
+ transitionDuration: Z,
1724
+ as: g
1725
+ }, Te)
1724
1726
  },
1725
1727
  disableEscapeKeyDown: u,
1726
- onClose: y,
1727
- open: E,
1728
- onClick: q
1729
- }, ct), F), {
1730
- children: /* @__PURE__ */ Ce(mn, B(T({}, bn), {
1731
- children: /* @__PURE__ */ Ce(Cn, B(T({
1728
+ onClose: x,
1729
+ open: L,
1730
+ onClick: $
1731
+ }, Me), G), {
1732
+ children: /* @__PURE__ */ fe(mn, B(T({}, bn), {
1733
+ children: /* @__PURE__ */ fe(Cn, B(T({
1732
1734
  onMouseDown: V
1733
1735
  }, fn), {
1734
- children: /* @__PURE__ */ Ce(hn, B(T({
1735
- as: R,
1736
+ children: /* @__PURE__ */ fe(hn, B(T({
1737
+ as: E,
1736
1738
  elevation: 24,
1737
1739
  role: "dialog",
1738
1740
  "aria-describedby": s,
1739
1741
  "aria-labelledby": j,
1740
1742
  "aria-modal": d
1741
1743
  }, gn), {
1742
- children: /* @__PURE__ */ Ce(sn.Provider, {
1744
+ children: /* @__PURE__ */ fe(ln.Provider, {
1743
1745
  value: te,
1744
- children: m
1746
+ children: b
1745
1747
  })
1746
1748
  }))
1747
1749
  }))
1748
1750
  }))
1749
1751
  }));
1750
1752
  });
1751
- process.env.NODE_ENV !== "production" && (ln.propTypes = {
1753
+ process.env.NODE_ENV !== "production" && (cn.propTypes = {
1752
1754
  // ┌────────────────────────────── Warning ──────────────────────────────┐
1753
1755
  // │ These PropTypes are generated from the TypeScript type definitions. │
1754
1756
  // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
@@ -1936,7 +1938,7 @@ function mi({ fillColor: e = "#262E3D" }) {
1936
1938
  ]
1937
1939
  });
1938
1940
  }
1939
- const cn = {
1941
+ const dn = {
1940
1942
  row: {
1941
1943
  hover: "rgba(224, 224, 224, 0.3)"
1942
1944
  },
@@ -2023,13 +2025,13 @@ const cn = {
2023
2025
  }
2024
2026
  }, bi = {
2025
2027
  shouldForwardProp: (e) => !e.startsWith("$")
2026
- }, we = /* @__PURE__ */ v(Bt, bi, {
2028
+ }, Se = /* @__PURE__ */ v(Ft, bi, {
2027
2029
  target: "e869yoj0",
2028
2030
  label: "IconButton"
2029
2031
  })(({ $hoverColor: e }) => ({
2030
2032
  padding: 2,
2031
2033
  "&.MuiIconButton-root:hover": {
2032
- backgroundColor: e != null ? e : cn.interaction.defaultHover
2034
+ backgroundColor: e != null ? e : dn.interaction.defaultHover
2033
2035
  }
2034
2036
  }));
2035
2037
  function yi({ fill: e = "rgba(38, 46, 61, 0.67)" }) {
@@ -2078,13 +2080,13 @@ function vi() {
2078
2080
  })
2079
2081
  });
2080
2082
  }
2081
- const st = (e) => Nt(e.chart.backgroundColor), ki = ({ title: e }) => {
2082
- const { themeSettings: t } = L();
2083
- return /* @__PURE__ */ o(ke, {
2083
+ const lt = (e) => Ht(e.chart.backgroundColor), ki = ({ title: e }) => {
2084
+ const { themeSettings: t } = R();
2085
+ return /* @__PURE__ */ o(we, {
2084
2086
  title: e,
2085
- children: /* @__PURE__ */ o(we, {
2087
+ children: /* @__PURE__ */ o(Se, {
2086
2088
  disableTouchRipple: !0,
2087
- $hoverColor: st(t),
2089
+ $hoverColor: lt(t),
2088
2090
  children: /* @__PURE__ */ o(xi, {
2089
2091
  fill: t.chart.textColor
2090
2092
  })
@@ -2095,12 +2097,12 @@ const st = (e) => Nt(e.chart.backgroundColor), ki = ({ title: e }) => {
2095
2097
  n(s.currentTarget);
2096
2098
  }, a = () => {
2097
2099
  n(null);
2098
- }, { themeSettings: c } = L();
2099
- return /* @__PURE__ */ w(G, {
2100
+ }, { themeSettings: c } = R();
2101
+ return /* @__PURE__ */ w(W, {
2100
2102
  children: [
2101
- /* @__PURE__ */ o(we, {
2103
+ /* @__PURE__ */ o(Se, {
2102
2104
  onClick: r,
2103
- $hoverColor: st(c),
2105
+ $hoverColor: lt(c),
2104
2106
  "aria-label": "three dots button",
2105
2107
  children: /* @__PURE__ */ o(An, {
2106
2108
  fill: c.chart.textColor
@@ -2125,7 +2127,7 @@ const st = (e) => Nt(e.chart.backgroundColor), ki = ({ title: e }) => {
2125
2127
  sx: {
2126
2128
  fontSize: "13px",
2127
2129
  fontFamily: c.typography.fontFamily,
2128
- color: cn.text.content
2130
+ color: dn.text.content
2129
2131
  },
2130
2132
  disableRipple: !0,
2131
2133
  children: [
@@ -2140,12 +2142,12 @@ const st = (e) => Nt(e.chart.backgroundColor), ki = ({ title: e }) => {
2140
2142
  ]
2141
2143
  });
2142
2144
  }, Si = ({ onClick: e }) => {
2143
- const { themeSettings: t } = L(), { t: n } = O();
2144
- return /* @__PURE__ */ o(ke, {
2145
+ const { themeSettings: t } = R(), { t: n } = P();
2146
+ return /* @__PURE__ */ o(we, {
2145
2147
  title: n("ai.preview"),
2146
- children: /* @__PURE__ */ o(we, {
2148
+ children: /* @__PURE__ */ o(Se, {
2147
2149
  onClick: e,
2148
- $hoverColor: st(t),
2150
+ $hoverColor: lt(t),
2149
2151
  children: /* @__PURE__ */ o(yi, {
2150
2152
  fill: t.chart.textColor
2151
2153
  })
@@ -2156,7 +2158,7 @@ const st = (e) => Nt(e.chart.backgroundColor), ki = ({ title: e }) => {
2156
2158
  label: "ToolbarContainer"
2157
2159
  })("display:flex;padding-top:6px;padding-bottom:6px;");
2158
2160
  function Ti({ infoTooltipText: e, onRefresh: t, onExpand: n }) {
2159
- const r = Z(() => [
2161
+ const r = z(() => [
2160
2162
  {
2161
2163
  title: "Refresh",
2162
2164
  onClick: t,
@@ -2181,13 +2183,13 @@ function Ti({ infoTooltipText: e, onRefresh: t, onExpand: n }) {
2181
2183
  });
2182
2184
  }
2183
2185
  function Li({ content: e }) {
2184
- const [t, n] = D(!1), { themeSettings: r } = L(), { inlineElement: a, expandedElement: c } = Z(() => {
2185
- const s = Fe(e, {
2186
+ const [t, n] = D(!1), { themeSettings: r } = R(), { inlineElement: a, expandedElement: c } = z(() => {
2187
+ const s = Ne(e, {
2186
2188
  useCustomizedStyleOptions: !0
2187
2189
  });
2188
- if (s === void 0 || !je(s))
2189
- throw new Ze("errors.otherWidgetTypesNotSupported");
2190
- const { detailedDescription: p } = e, { styleOptions: d } = s, h = {
2190
+ if (s === void 0 || !Ge(s))
2191
+ throw new je("errors.otherWidgetTypesNotSupported");
2192
+ const { detailedDescription: p } = e, { styleOptions: d } = s, g = {
2191
2193
  cornerRadius: "Small",
2192
2194
  header: {
2193
2195
  renderToolbar: (i) => /* @__PURE__ */ o(Ti, {
@@ -2197,14 +2199,14 @@ function Li({ content: e }) {
2197
2199
  })
2198
2200
  }
2199
2201
  };
2200
- let b, m;
2202
+ let m, b;
2201
2203
  if (Xn(s.chartType))
2202
- b = /* @__PURE__ */ o("div", {
2204
+ m = /* @__PURE__ */ o("div", {
2203
2205
  className: "csdk-h-[245px]",
2204
- children: /* @__PURE__ */ o(be, B(T({}, s), {
2205
- styleOptions: h
2206
+ children: /* @__PURE__ */ o(ye, B(T({}, s), {
2207
+ styleOptions: g
2206
2208
  }))
2207
- }), m = /* @__PURE__ */ o(be, B(T({}, s), {
2209
+ }), b = /* @__PURE__ */ o(ye, B(T({}, s), {
2208
2210
  styleOptions: {
2209
2211
  header: {
2210
2212
  hidden: !0
@@ -2220,28 +2222,28 @@ function Li({ content: e }) {
2220
2222
  legend: void 0,
2221
2223
  xAxis: void 0,
2222
2224
  yAxis: void 0
2223
- }), h);
2224
- delete u.legend, delete u.xAxis, delete u.yAxis, b = /* @__PURE__ */ o("div", {
2225
- children: /* @__PURE__ */ o(be, B(T({}, s), {
2225
+ }), g);
2226
+ delete u.legend, delete u.xAxis, delete u.yAxis, m = /* @__PURE__ */ o("div", {
2227
+ children: /* @__PURE__ */ o(ye, B(T({}, s), {
2226
2228
  styleOptions: u
2227
2229
  }))
2228
- }), m = /* @__PURE__ */ o(be, B(T({}, s), {
2230
+ }), b = /* @__PURE__ */ o(ye, B(T({}, s), {
2229
2231
  styleOptions: T({
2230
2232
  cornerRadius: "None"
2231
2233
  }, i)
2232
2234
  }));
2233
2235
  }
2234
2236
  return {
2235
- inlineElement: b,
2236
- expandedElement: m
2237
+ inlineElement: m,
2238
+ expandedElement: b
2237
2239
  };
2238
2240
  }, [
2239
2241
  e
2240
2242
  ]);
2241
- return /* @__PURE__ */ w(G, {
2243
+ return /* @__PURE__ */ w(W, {
2242
2244
  children: [
2243
2245
  a,
2244
- /* @__PURE__ */ w(ln, {
2246
+ /* @__PURE__ */ w(cn, {
2245
2247
  open: t,
2246
2248
  onClose: () => n(!1),
2247
2249
  maxWidth: "xl",
@@ -2260,7 +2262,7 @@ function Li({ content: e }) {
2260
2262
  className: "csdk-text-ai-lg csdk-semibold",
2261
2263
  children: e.queryTitle
2262
2264
  }),
2263
- /* @__PURE__ */ o(Bt, {
2265
+ /* @__PURE__ */ o(Ft, {
2264
2266
  onClick: () => n(!1),
2265
2267
  "aria-label": "close expanded chart",
2266
2268
  children: /* @__PURE__ */ o(mi, {
@@ -2294,10 +2296,10 @@ function Ri({ theme: e }) {
2294
2296
  });
2295
2297
  }
2296
2298
  function Ei({ onClick: e, disabled: t }) {
2297
- const { themeSettings: n } = L(), { t: r } = O();
2298
- return /* @__PURE__ */ o(ke, {
2299
+ const { themeSettings: n } = R(), { t: r } = P();
2300
+ return /* @__PURE__ */ o(we, {
2299
2301
  title: r("ai.buttons.incorrectResponse"),
2300
- children: /* @__PURE__ */ o(we, {
2302
+ children: /* @__PURE__ */ o(Se, {
2301
2303
  "aria-label": "thumbs-down",
2302
2304
  onClick: e,
2303
2305
  $hoverColor: n.aiChat.icons.feedbackIcons.hoverColor,
@@ -2324,10 +2326,10 @@ function Ii({ theme: e }) {
2324
2326
  });
2325
2327
  }
2326
2328
  function Bi({ onClick: e, disabled: t }) {
2327
- const { themeSettings: n } = L(), { t: r } = O();
2328
- return /* @__PURE__ */ o(ke, {
2329
+ const { themeSettings: n } = R(), { t: r } = P();
2330
+ return /* @__PURE__ */ o(we, {
2329
2331
  title: r("ai.buttons.correctResponse"),
2330
- children: /* @__PURE__ */ o(we, {
2332
+ children: /* @__PURE__ */ o(Se, {
2331
2333
  "aria-label": "thumbs-up",
2332
2334
  onClick: e,
2333
2335
  $hoverColor: n.aiChat.icons.feedbackIcons.hoverColor,
@@ -2339,7 +2341,7 @@ function Bi({ onClick: e, disabled: t }) {
2339
2341
  });
2340
2342
  }
2341
2343
  const Fi = () => {
2342
- const [e, t] = D(!1), n = ue(null), r = H(() => {
2344
+ const [e, t] = D(!1), n = pe(null), r = H(() => {
2343
2345
  t(!0);
2344
2346
  }, []), a = H(() => {
2345
2347
  t(!1);
@@ -2378,37 +2380,37 @@ function Hi({ visible: e, onSend: t }) {
2378
2380
  ]
2379
2381
  }) : null;
2380
2382
  }
2381
- function Qe({ sourceId: e, data: t, type: n, buttonVisibility: r = "onHover", renderContent: a }) {
2382
- const c = J(), s = Wn(H((m) => {
2383
+ function _e({ sourceId: e, data: t, type: n, buttonVisibility: r = "onHover", renderContent: a }) {
2384
+ const c = X(), s = Wn(H((b) => {
2383
2385
  c && c.ai.sendFeedback({
2384
2386
  sourceId: e,
2385
2387
  type: n,
2386
2388
  data: t,
2387
- rating: m
2389
+ rating: b
2388
2390
  });
2389
2391
  }, [
2390
2392
  c,
2391
2393
  e,
2392
2394
  t,
2393
2395
  n
2394
- ]), 200), [p, d] = Fi(), h = Z(() => r === "onHover" ? d : r !== "never", [
2396
+ ]), 200), [p, d] = Fi(), g = z(() => r === "onHover" ? d : r !== "never", [
2395
2397
  d,
2396
2398
  r
2397
- ]), { themeSettings: b } = L();
2399
+ ]), { themeSettings: m } = R();
2398
2400
  return /* @__PURE__ */ o(Ni, {
2399
2401
  ref: p,
2400
- theme: b,
2402
+ theme: m,
2401
2403
  children: a(/* @__PURE__ */ o(Hi, {
2402
2404
  onSend: s,
2403
- visible: h
2405
+ visible: g
2404
2406
  }))
2405
2407
  });
2406
2408
  }
2407
- const Oi = 18 * 5;
2408
- function lt({ text: e }) {
2409
- const [t, n] = D(!0), [r, a] = D(!1), { t: c } = O(), s = ue(null);
2410
- return Ee(() => {
2411
- s.current && s.current.scrollHeight > Oi && a(!0);
2409
+ const Pi = 18 * 5;
2410
+ function ct({ text: e }) {
2411
+ const [t, n] = D(!0), [r, a] = D(!1), { t: c } = P(), s = pe(null);
2412
+ return Ie(() => {
2413
+ s.current && s.current.scrollHeight > Pi && a(!0);
2412
2414
  }, [
2413
2415
  e
2414
2416
  ]), /* @__PURE__ */ w("div", {
@@ -2429,20 +2431,20 @@ function lt({ text: e }) {
2429
2431
  ]
2430
2432
  });
2431
2433
  }
2432
- function Pi({ nlgRequest: e }) {
2433
- const { data: t, isLoading: n, isError: r } = Ne(e), { t: a } = O();
2434
- return n ? /* @__PURE__ */ o(at, {}) : r ? /* @__PURE__ */ o(ie, {
2434
+ function Oi({ nlgRequest: e }) {
2435
+ const { data: t, isLoading: n, isError: r } = He(e), { t: a } = P();
2436
+ return n ? /* @__PURE__ */ o(st, {}) : r ? /* @__PURE__ */ o(ie, {
2435
2437
  align: "left",
2436
2438
  children: a("ai.errors.unexpected")
2437
2439
  }) : /* @__PURE__ */ o(ie, {
2438
2440
  align: "full",
2439
- children: /* @__PURE__ */ o(lt, {
2441
+ children: /* @__PURE__ */ o(ct, {
2440
2442
  text: t != null ? t : a("ai.errors.insightsNotAvailable")
2441
2443
  })
2442
2444
  });
2443
2445
  }
2444
2446
  function Di() {
2445
- const { themeSettings: e } = L();
2447
+ const { themeSettings: e } = R();
2446
2448
  return /* @__PURE__ */ o("svg", {
2447
2449
  width: "24",
2448
2450
  height: "25",
@@ -2458,8 +2460,8 @@ function Di() {
2458
2460
  });
2459
2461
  }
2460
2462
  function $i({ onClick: e }) {
2461
- const { t } = O();
2462
- return /* @__PURE__ */ o(Ie, {
2463
+ const { t } = P();
2464
+ return /* @__PURE__ */ o(Be, {
2463
2465
  align: "left",
2464
2466
  onClick: e,
2465
2467
  children: /* @__PURE__ */ w("div", {
@@ -2472,42 +2474,42 @@ function $i({ onClick: e }) {
2472
2474
  });
2473
2475
  }
2474
2476
  var Ai = Zn("toLowerCase");
2475
- const St = /* @__PURE__ */ v("div", {
2477
+ const Mt = /* @__PURE__ */ v("div", {
2476
2478
  target: "etljahs0",
2477
2479
  label: "FlexRow"
2478
2480
  })("display:flex;align-items:center;column-gap:10px;"), zi = (e) => !!e && "aeiou".includes(e[0]);
2479
2481
  function qi({ data: e, alwaysShowFeedback: t }) {
2480
- const { chatMode: n = "analyze", enableInsights: r } = ee(), { themeSettings: a } = L(), { queryTitle: c, chartRecommendations: s, jaql: p, userMsg: d, clarification: h = "" } = e;
2482
+ const { chatMode: n = "analyze", enableInsights: r } = ee(), { themeSettings: a } = R(), { queryTitle: c, chartRecommendations: s, jaql: p, userMsg: d, clarification: g = "" } = e;
2481
2483
  console.debug(`JAQL for ${c}`, p), console.debug(`chart recommendations for ${c}`, s);
2482
- const b = "chartType" in s ? s.chartType : "table";
2483
- let m;
2484
- zi(b) ? m = `an ${b}` : m = `a ${b}`, b !== "table" && (m += " chart");
2484
+ const m = "chartType" in s ? s.chartType : "table";
2485
+ let b;
2486
+ zi(m) ? b = `an ${m}` : b = `a ${m}`, m !== "table" && (b += " chart");
2485
2487
  const i = p.datasource.title, [u, l] = D(!1), C = H(() => {
2486
- l((y) => !y);
2487
- }, []), g = {
2488
+ l((x) => !x);
2489
+ }, []), h = {
2488
2490
  jaql: {
2489
2491
  datasource: p.datasource,
2490
2492
  metadata: p.metadata
2491
2493
  }
2492
- }, k = n === "analyze", S = `${d}${d && h ? `
2493
- ` : ""}${h}`;
2494
- return /* @__PURE__ */ w(G, {
2494
+ }, k = n === "analyze", S = `${d}${d && g ? `
2495
+ ` : ""}${g}`;
2496
+ return /* @__PURE__ */ w(W, {
2495
2497
  children: [
2496
- /* @__PURE__ */ o(Qe, {
2498
+ /* @__PURE__ */ o(_e, {
2497
2499
  sourceId: i,
2498
2500
  data: e,
2499
2501
  type: "chats/nlq",
2500
2502
  buttonVisibility: t ? "always" : "onHover",
2501
- renderContent: (y) => /* @__PURE__ */ w(G, {
2503
+ renderContent: (x) => /* @__PURE__ */ w(W, {
2502
2504
  children: [
2503
- /* @__PURE__ */ w(St, {
2505
+ /* @__PURE__ */ w(Mt, {
2504
2506
  children: [
2505
- /* @__PURE__ */ o(on, {
2507
+ /* @__PURE__ */ o(an, {
2506
2508
  align: "left",
2507
2509
  theme: a,
2508
- children: S || `Here's ${m} showing ${Ai(c)}.`
2510
+ children: S || `Here's ${b} showing ${Ai(c)}.`
2509
2511
  }),
2510
- y
2512
+ x
2511
2513
  ]
2512
2514
  }),
2513
2515
  k && /* @__PURE__ */ o(Li, {
@@ -2516,23 +2518,23 @@ function qi({ data: e, alwaysShowFeedback: t }) {
2516
2518
  ]
2517
2519
  })
2518
2520
  }),
2519
- r && /* @__PURE__ */ o(Qe, {
2521
+ r && /* @__PURE__ */ o(_e, {
2520
2522
  sourceId: i,
2521
- data: g,
2523
+ data: h,
2522
2524
  type: "nlg/queryResult",
2523
2525
  buttonVisibility: u ? "onHover" : "never",
2524
- renderContent: (y) => /* @__PURE__ */ w(G, {
2526
+ renderContent: (x) => /* @__PURE__ */ w(W, {
2525
2527
  children: [
2526
- /* @__PURE__ */ w(St, {
2528
+ /* @__PURE__ */ w(Mt, {
2527
2529
  children: [
2528
2530
  /* @__PURE__ */ o($i, {
2529
2531
  onClick: C
2530
2532
  }),
2531
- y
2533
+ x
2532
2534
  ]
2533
2535
  }),
2534
- u && /* @__PURE__ */ o(Pi, {
2535
- nlgRequest: g
2536
+ u && /* @__PURE__ */ o(Oi, {
2537
+ nlgRequest: h
2536
2538
  })
2537
2539
  ]
2538
2540
  })
@@ -2541,7 +2543,7 @@ function qi({ data: e, alwaysShowFeedback: t }) {
2541
2543
  });
2542
2544
  }
2543
2545
  function Wi({ message: e, isLastMessage: t }) {
2544
- if (rt(e)) {
2546
+ if (ot(e)) {
2545
2547
  const r = JSON.parse(e.content);
2546
2548
  return /* @__PURE__ */ o(qi, {
2547
2549
  data: r,
@@ -2559,8 +2561,8 @@ const Zi = /* @__PURE__ */ or(Wi), ji = ({ error: e, displayMessage: t }) => (co
2559
2561
  children: t
2560
2562
  }));
2561
2563
  function Gi({ messages: e }) {
2562
- const { t } = O();
2563
- return /* @__PURE__ */ o(G, {
2564
+ const { t } = P();
2565
+ return /* @__PURE__ */ o(W, {
2564
2566
  children: e.map((n, r) => /* @__PURE__ */ o(jn, {
2565
2567
  fallbackRender: (a) => ji(B(T({}, a), {
2566
2568
  displayMessage: t("ai.errors.unexpected")
@@ -2572,7 +2574,7 @@ function Gi({ messages: e }) {
2572
2574
  }, r))
2573
2575
  });
2574
2576
  }
2575
- function dn({ color: e }) {
2577
+ function un({ color: e }) {
2576
2578
  return /* @__PURE__ */ o("svg", {
2577
2579
  width: "100%",
2578
2580
  height: "100%",
@@ -2590,7 +2592,7 @@ function Vi({ onClick: e, color: t }) {
2590
2592
  "aria-label": "go back",
2591
2593
  className: "csdk-w-5 csdk-h-5 csdk-flex csdk-p-[4px] csdk-ml-[6px] csdk-cursor-pointer",
2592
2594
  onClick: e,
2593
- children: /* @__PURE__ */ o(dn, {
2595
+ children: /* @__PURE__ */ o(un, {
2594
2596
  color: t
2595
2597
  })
2596
2598
  });
@@ -2602,7 +2604,7 @@ const Ui = /* @__PURE__ */ v("button", {
2602
2604
  const { borderGradient: t, borderRadius: n } = e.aiChat.suggestions;
2603
2605
  if (t) {
2604
2606
  const [r, a] = t;
2605
- return $`
2607
+ return A`
2606
2608
  border: none;
2607
2609
  position: relative;
2608
2610
  border-radius: ${n};
@@ -2624,8 +2626,8 @@ const Ui = /* @__PURE__ */ v("button", {
2624
2626
  }
2625
2627
  return "";
2626
2628
  });
2627
- function Mt({ question: e, onClick: t }) {
2628
- const { themeSettings: n } = L();
2629
+ function Tt({ question: e, onClick: t }) {
2630
+ const { themeSettings: n } = R();
2629
2631
  return /* @__PURE__ */ o(Ui, {
2630
2632
  onClick: t,
2631
2633
  theme: n,
@@ -2637,19 +2639,19 @@ const Qi = /* @__PURE__ */ v("div", {
2637
2639
  label: "ListContainer"
2638
2640
  })("display:flex;flex-direction:column;align-items:flex-start;row-gap:", ({ theme: e }) => e.aiChat.suggestions.gap, ";");
2639
2641
  function _i({ questions: e, onSelection: t }) {
2640
- const { t: n } = O(), [r, a] = D(!0), c = Z(() => r && e.length > 5 ? e.slice(0, 4) : e, [
2642
+ const { t: n } = P(), [r, a] = D(!0), c = z(() => r && e.length > 5 ? e.slice(0, 4) : e, [
2641
2643
  e,
2642
2644
  r
2643
- ]), { themeSettings: s } = L();
2645
+ ]), { themeSettings: s } = R();
2644
2646
  return /* @__PURE__ */ w(Qi, {
2645
2647
  "aria-label": "list of suggested questions",
2646
2648
  theme: s,
2647
2649
  children: [
2648
- c.map((p) => /* @__PURE__ */ o(Mt, {
2650
+ c.map((p) => /* @__PURE__ */ o(Tt, {
2649
2651
  question: p,
2650
2652
  onClick: () => t(p)
2651
2653
  }, p)),
2652
- c.length < e.length && /* @__PURE__ */ o(Mt, {
2654
+ c.length < e.length && /* @__PURE__ */ o(Tt, {
2653
2655
  question: n("ai.buttons.seeMore"),
2654
2656
  onClick: () => a(!1)
2655
2657
  })
@@ -2672,7 +2674,7 @@ const Ki = /* @__PURE__ */ v("div", {
2672
2674
  label: "SkeletonContainer"
2673
2675
  })("display:flex;flex-direction:column;row-gap:1rem;");
2674
2676
  function Xi() {
2675
- const { themeSettings: e } = L();
2677
+ const { themeSettings: e } = R();
2676
2678
  return /* @__PURE__ */ o(Ji, {
2677
2679
  children: Array.from({
2678
2680
  length: 3
@@ -2683,7 +2685,7 @@ function Xi() {
2683
2685
  }
2684
2686
  function Yi({ questions: e, isLoading: t, onSelection: n }) {
2685
2687
  const r = e.length > 0, { suggestionsWelcomeText: a } = ee();
2686
- return t ? /* @__PURE__ */ o(Xi, {}) : r ? /* @__PURE__ */ w(G, {
2688
+ return t ? /* @__PURE__ */ o(Xi, {}) : r ? /* @__PURE__ */ w(W, {
2687
2689
  children: [
2688
2690
  a && /* @__PURE__ */ o(ie, {
2689
2691
  align: "left",
@@ -2702,7 +2704,7 @@ const e1 = /* @__PURE__ */ v("div", {
2702
2704
  })("flex:0 0 80px;padding-left:14px;padding-right:14px;display:flex;align-items:center;position:relative;background-color:", ({ style: e }) => e.backgroundColor, ";"), t1 = /* @__PURE__ */ v("div", {
2703
2705
  target: "ew7avl31",
2704
2706
  label: "ToolbarTitle"
2705
- })("font-size:18px;line-height:22px;font-weight:600;margin-left:20px;color:", ({ style: e }) => e.textColor, ";"), un = /* @__PURE__ */ ir(function({ title: t, leftNav: n, rightNav: r, style: a }, c) {
2707
+ })("font-size:18px;line-height:22px;font-weight:600;margin-left:20px;color:", ({ style: e }) => e.textColor, ";"), pn = /* @__PURE__ */ ir(function({ title: t, leftNav: n, rightNav: r, style: a }, c) {
2706
2708
  return /* @__PURE__ */ w(e1, {
2707
2709
  ref: c,
2708
2710
  style: a,
@@ -2723,7 +2725,7 @@ const e1 = /* @__PURE__ */ v("div", {
2723
2725
  label: "AiDisclaimerContainer"
2724
2726
  })("text-align:center;font-size:11px;line-height:18px;white-space:pre-wrap;display:flex;flex-wrap:wrap;align-items:center;justify-content:center;box-sizing:border-box;color:", ({ theme: e }) => e.aiChat.secondaryTextColor, ";");
2725
2727
  function r1({ theme: e }) {
2726
- const { t } = O();
2728
+ const { t } = P();
2727
2729
  return /* @__PURE__ */ w(n1, {
2728
2730
  theme: e,
2729
2731
  children: [
@@ -2740,7 +2742,7 @@ function r1({ theme: e }) {
2740
2742
  });
2741
2743
  }
2742
2744
  function o1() {
2743
- const { themeSettings: e } = L();
2745
+ const { themeSettings: e } = R();
2744
2746
  return /* @__PURE__ */ o("svg", {
2745
2747
  width: "24",
2746
2748
  height: "24",
@@ -2762,13 +2764,13 @@ const i1 = (e, t) => {
2762
2764
  target: "e1rxvpki0",
2763
2765
  label: "Container"
2764
2766
  })("font-size:inherit;line-height:inherit;padding-left:8px;padding-right:8px;padding-top:4px;border-radius:16px;margin-bottom:4px;box-shadow:", ({ theme: e }) => `0 4px 8px 0 ${i1(e.aiChat.primaryTextColor, 0.2)}`, ";cursor:pointer;color:", ({ theme: e }) => e.aiChat.clickableMessages.textColor, ";background-color:", ({ theme: e }) => e.aiChat.clickableMessages.backgroundColor, ";&:hover{color:", ({ theme: e }) => e.aiChat.clickableMessages.hover.textColor, ";background-color:", ({ theme: e }) => e.aiChat.clickableMessages.hover.backgroundColor, ";box-shadow:none;"), s1 = ({ onClick: e }) => {
2765
- const { themeSettings: t } = L();
2767
+ const { themeSettings: t } = R();
2766
2768
  return /* @__PURE__ */ o(a1, {
2767
2769
  theme: t,
2768
2770
  onClick: e,
2769
2771
  children: /* @__PURE__ */ o(o1, {})
2770
2772
  });
2771
- }, l1 = ({ isVisible: e, onClick: t, anchorElement: n }) => /* @__PURE__ */ o(Et, {
2773
+ }, l1 = ({ isVisible: e, onClick: t, anchorElement: n }) => /* @__PURE__ */ o(It, {
2772
2774
  anchorEl: n,
2773
2775
  open: e,
2774
2776
  placement: "top",
@@ -2779,76 +2781,77 @@ const i1 = (e, t) => {
2779
2781
  onClick: t
2780
2782
  })
2781
2783
  }), c1 = /* @__PURE__ */ v("div", {
2782
- target: "ednrf320",
2784
+ target: "evtkjw10",
2783
2785
  label: "ChatBody"
2784
2786
  })("display:flex;flex-direction:column;row-gap:", ({ theme: e }) => e.aiChat.body.gapBetweenMessages, ";overflow-y:scroll;padding-left:", ({ theme: e }) => e.aiChat.body.paddingLeft, ";padding-right:", ({ theme: e }) => e.aiChat.body.paddingRight, ";padding-top:", ({ theme: e }) => e.aiChat.body.paddingTop, ";padding-bottom:", ({ theme: e }) => e.aiChat.body.paddingBottom, ";flex:initial;height:100%;"), d1 = /* @__PURE__ */ v("div", {
2785
- target: "ednrf321",
2787
+ target: "evtkjw11",
2786
2788
  label: "ChatFooter"
2787
2789
  })("padding-left:", ({ theme: e }) => e.aiChat.footer.paddingLeft, ";padding-right:", ({ theme: e }) => e.aiChat.footer.paddingRight, ";padding-top:", ({ theme: e }) => e.aiChat.footer.paddingTop, ";padding-bottom:", ({ theme: e }) => e.aiChat.footer.paddingBottom, ";display:flex;flex-direction:column;row-gap:6px;"), u1 = /* @__PURE__ */ v("div", {
2788
- target: "ednrf322",
2790
+ target: "evtkjw12",
2789
2791
  label: "FollowupQuestionsContainer"
2790
2792
  })("display:flex;flex-direction:column;row-gap:", ({ theme: e }) => e.aiChat.suggestions.gap, ";");
2791
2793
  function p1({ contextTitle: e, onGoBack: t, contextDetails: n }) {
2792
- var j, te, le;
2793
- const { t: r } = O(), { enableFollowupQuestions: a, enableHeader: c, numOfRecentPrompts: s, numOfRecommendations: p } = ee(), { themeSettings: d } = L(), { data: h, isLoading: b, isError: m } = Pt({
2794
+ var te, le, ce;
2795
+ const { t: r } = P(), { enableFollowupQuestions: a, enableHeader: c, numOfRecentPrompts: s, numOfRecommendations: p, customPrompt: d } = ee(), { themeSettings: g } = R(), { data: m, isLoading: b, isError: i } = Dt({
2794
2796
  contextTitle: e,
2795
- count: p
2796
- }), i = Z(() => h == null ? void 0 : h.map((N) => N.nlqPrompt), [
2797
- h
2798
- ]), { history: u, lastNlqResponse: l, isAwaitingResponse: C, sendMessage: g, isLoading: k, chatId: S, lastError: y } = Tr(e, n), { mutate: E, isLoading: R } = At(S), [M, I] = D(!1), [P, se] = D(!1), Q = () => I(!0), A = () => I(!1), U = () => {
2799
- E(), A();
2800
- }, F = ue(null), z = ue(null), X = () => {
2797
+ count: p,
2798
+ customPrompt: d
2799
+ }), u = z(() => m == null ? void 0 : m.map((N) => N.nlqPrompt), [
2800
+ m
2801
+ ]), { history: l, lastNlqResponse: C, isAwaitingResponse: h, sendMessage: k, isLoading: S, chatId: x, lastError: L } = Tr(e, n), { mutate: E, isLoading: M } = zt(x), [I, O] = D(!1), [ae, U] = D(!1), Z = () => O(!0), q = () => O(!1), G = () => {
2802
+ E(), q();
2803
+ }, F = pe(null), Q = pe(null), _ = () => {
2801
2804
  if (!(F != null && F.current))
2802
2805
  return;
2803
- const { scrollTop: N, clientHeight: W, scrollHeight: Se } = F.current;
2804
- if (N === void 0 || W === void 0 || Se === void 0)
2806
+ const { scrollTop: N, clientHeight: K, scrollHeight: Me } = F.current;
2807
+ if (N === void 0 || K === void 0 || Me === void 0)
2805
2808
  return;
2806
- const Me = Se - N - W > W / 2;
2807
- P !== Me && se(Me);
2809
+ const Te = Me - N - K > K / 2;
2810
+ ae !== Te && U(Te);
2808
2811
  };
2809
- Ee(() => {
2812
+ Ie(() => {
2810
2813
  F.current && (F.current.scrollTop = F.current.scrollHeight);
2811
2814
  }, [
2812
- u,
2813
- M,
2814
- C
2815
+ l,
2816
+ I,
2817
+ h
2815
2818
  ]);
2816
- const _ = ue(null), V = c ? /* @__PURE__ */ o(un, {
2817
- ref: _,
2819
+ const V = pe(null), $ = c ? /* @__PURE__ */ o(pn, {
2820
+ ref: V,
2818
2821
  title: e,
2819
2822
  leftNav: t && /* @__PURE__ */ o(Vi, {
2820
2823
  onClick: t,
2821
- color: d.aiChat.header.textColor
2824
+ color: g.aiChat.header.textColor
2822
2825
  }),
2823
- style: d.aiChat.header
2824
- }) : null, q = Z(() => [
2825
- ...new Set(u.filter((N) => N.role === "user").filter((N) => !(i != null && i.includes(N.content))).map((N) => N.content).reverse())
2826
+ style: g.aiChat.header
2827
+ }) : null, j = z(() => [
2828
+ ...new Set(l.filter((N) => N.role === "user").filter((N) => !(u != null && u.includes(N.content))).map((N) => N.content).reverse())
2826
2829
  ].slice(0, s), [
2827
- u,
2830
+ l,
2828
2831
  s,
2829
- i
2832
+ u
2830
2833
  ]);
2831
- return (y == null ? void 0 : y.message) === r("ai.errors.chatUnavailable") ? /* @__PURE__ */ w(G, {
2834
+ return (L == null ? void 0 : L.message) === r("ai.errors.chatUnavailable") ? /* @__PURE__ */ w(W, {
2832
2835
  children: [
2833
- c && V,
2834
- /* @__PURE__ */ o(an, {
2835
- text: y.message
2836
+ c && $,
2837
+ /* @__PURE__ */ o(sn, {
2838
+ text: L.message
2836
2839
  })
2837
2840
  ]
2838
- }) : /* @__PURE__ */ w(G, {
2841
+ }) : /* @__PURE__ */ w(W, {
2839
2842
  children: [
2840
- V,
2843
+ $,
2841
2844
  /* @__PURE__ */ w(c1, {
2842
2845
  ref: F,
2843
- theme: d,
2844
- onScroll: X,
2846
+ theme: g,
2847
+ onScroll: _,
2845
2848
  children: [
2846
2849
  /* @__PURE__ */ o(l1, {
2847
- isVisible: P,
2848
- anchorElement: z.current,
2850
+ isVisible: ae,
2851
+ anchorElement: Q.current,
2849
2852
  onClick: () => {
2850
- var N, W;
2851
- (W = F.current) == null || W.scroll({
2853
+ var N, K;
2854
+ (K = F.current) == null || K.scroll({
2852
2855
  top: (N = F.current) == null ? void 0 : N.scrollHeight,
2853
2856
  behavior: "smooth"
2854
2857
  });
@@ -2856,53 +2859,53 @@ function p1({ contextTitle: e, onGoBack: t, contextDetails: n }) {
2856
2859
  }),
2857
2860
  /* @__PURE__ */ o(oi, {}),
2858
2861
  /* @__PURE__ */ o(Yi, {
2859
- questions: i || [],
2862
+ questions: u || [],
2860
2863
  isLoading: b,
2861
- onSelection: g
2864
+ onSelection: k
2862
2865
  }),
2863
- y && /* @__PURE__ */ o(ie, {
2866
+ L && /* @__PURE__ */ o(ie, {
2864
2867
  align: "left",
2865
- children: y.message
2868
+ children: L.message
2866
2869
  }),
2867
- k ? /* @__PURE__ */ o(He, {}) : /* @__PURE__ */ o(Gi, {
2868
- messages: u
2870
+ S ? /* @__PURE__ */ o(Pe, {}) : /* @__PURE__ */ o(Gi, {
2871
+ messages: l
2869
2872
  }),
2870
- a && l && ((te = (j = l.followupQuestions) == null ? void 0 : j.length) != null ? te : 0) > 0 && /* @__PURE__ */ o(u1, {
2871
- theme: d,
2872
- children: (le = l.followupQuestions) == null ? void 0 : le.slice(0, 2).map((N, W) => /* @__PURE__ */ o(Ie, {
2873
+ a && C && ((le = (te = C.followupQuestions) == null ? void 0 : te.length) != null ? le : 0) > 0 && /* @__PURE__ */ o(u1, {
2874
+ theme: g,
2875
+ children: (ce = C.followupQuestions) == null ? void 0 : ce.slice(0, 2).map((N, K) => /* @__PURE__ */ o(Be, {
2873
2876
  align: "left",
2874
2877
  onClick: () => {
2875
- g(N);
2878
+ k(N);
2876
2879
  },
2877
2880
  children: /* @__PURE__ */ o("div", {
2878
2881
  className: "csdk-py-[7px] csdk-px-4",
2879
2882
  children: N
2880
2883
  })
2881
- }, W))
2884
+ }, K))
2882
2885
  }),
2883
- (C || R) && /* @__PURE__ */ o(at, {}),
2884
- M && /* @__PURE__ */ o(di, {
2885
- onCancel: A,
2886
- onConfirm: U
2886
+ (h || M) && /* @__PURE__ */ o(st, {}),
2887
+ I && /* @__PURE__ */ o(di, {
2888
+ onCancel: q,
2889
+ onConfirm: G
2887
2890
  })
2888
2891
  ]
2889
2892
  }),
2890
2893
  /* @__PURE__ */ w(d1, {
2891
- ref: z,
2892
- theme: d,
2894
+ ref: Q,
2895
+ theme: g,
2893
2896
  children: [
2894
2897
  /* @__PURE__ */ o(Qr, {
2895
- onSendMessage: g,
2896
- disabled: C || k,
2897
- onClearHistoryClick: Q,
2898
- suggestions: i || [],
2899
- recentPrompts: q,
2900
- isLoading: b || k,
2901
- recommendationsError: m,
2902
- onChange: A
2898
+ onSendMessage: k,
2899
+ disabled: h || S,
2900
+ onClearHistoryClick: Z,
2901
+ suggestions: u || [],
2902
+ recentPrompts: j,
2903
+ isLoading: b || S,
2904
+ recommendationsError: i,
2905
+ onChange: q
2903
2906
  }),
2904
2907
  /* @__PURE__ */ o(r1, {
2905
- theme: d
2908
+ theme: g
2906
2909
  })
2907
2910
  ]
2908
2911
  })
@@ -2918,12 +2921,12 @@ const h1 = /* @__PURE__ */ v("button", {
2918
2921
  })("font-size:1.05rem;line-height:28px;color:", ({ theme: e }) => e.aiChat.dataTopics.items.textColor, ";"), C1 = /* @__PURE__ */ v("div", {
2919
2922
  target: "e5a38pw2",
2920
2923
  label: "Description"
2921
- })("font-size:", ({ theme: e }) => e.aiChat.primaryFontSize[0], ";line-height:", ({ theme: e }) => e.aiChat.primaryFontSize[1], ";color:", ({ theme: e }) => Nt(e.aiChat.dataTopics.items.textColor, 0, 0.5), ";"), f1 = /* @__PURE__ */ v("div", {
2924
+ })("font-size:", ({ theme: e }) => e.aiChat.primaryFontSize[0], ";line-height:", ({ theme: e }) => e.aiChat.primaryFontSize[1], ";color:", ({ theme: e }) => Ht(e.aiChat.dataTopics.items.textColor, 0, 0.5), ";"), f1 = /* @__PURE__ */ v("div", {
2922
2925
  target: "e5a38pw3",
2923
2926
  label: "IconContainer"
2924
2927
  })("width:16px;height:16px;transform:rotate(180deg);");
2925
2928
  function m1(e) {
2926
- const { title: t, description: n, onClick: r } = e, { themeSettings: a } = L();
2929
+ const { title: t, description: n, onClick: r } = e, { themeSettings: a } = R();
2927
2930
  return /* @__PURE__ */ w(h1, {
2928
2931
  onClick: r,
2929
2932
  theme: a,
@@ -2941,7 +2944,7 @@ function m1(e) {
2941
2944
  ]
2942
2945
  }),
2943
2946
  /* @__PURE__ */ o(f1, {
2944
- children: /* @__PURE__ */ o(dn, {
2947
+ children: /* @__PURE__ */ o(un, {
2945
2948
  color: a.aiChat.icons.color
2946
2949
  })
2947
2950
  })
@@ -2959,7 +2962,7 @@ const b1 = /* @__PURE__ */ v("div", {
2959
2962
  label: "Subtitle"
2960
2963
  })("font-size:15px;line-height:22px;color:", ({ theme: e }) => e.aiChat.primaryTextColor, ";");
2961
2964
  function v1(e) {
2962
- const { dataTopics: t } = e, { themeSettings: n } = L(), { t: r } = O();
2965
+ const { dataTopics: t } = e, { themeSettings: n } = R(), { t: r } = P();
2963
2966
  return /* @__PURE__ */ w(b1, {
2964
2967
  children: [
2965
2968
  /* @__PURE__ */ o(y1, {
@@ -3066,16 +3069,16 @@ const M1 = /* @__PURE__ */ v("div", {
3066
3069
  label: "DataTopicsContainer"
3067
3070
  })("display:flex;flex-direction:column;justify-content:top;overflow:hidden;height:100%;background-color:", ({ theme: e }) => e.aiChat.dataTopics.backgroundColor, ";");
3068
3071
  function L1({ dataTopicsList: e, onDataTopicClick: t }) {
3069
- const { enableHeader: n } = ee(), { themeSettings: r } = L(), { t: a } = O(), c = Z(() => e == null ? void 0 : e.map((p) => ({
3072
+ const { enableHeader: n } = ee(), { themeSettings: r } = R(), { t: a } = P(), c = z(() => e == null ? void 0 : e.map((p) => ({
3070
3073
  title: p,
3071
3074
  onClick: () => t(p)
3072
3075
  })), [
3073
3076
  e,
3074
3077
  t
3075
3078
  ]), s = tr(nr(r.aiChat.header.backgroundColor)) > 0.5;
3076
- return /* @__PURE__ */ w(G, {
3079
+ return /* @__PURE__ */ w(W, {
3077
3080
  children: [
3078
- n ? /* @__PURE__ */ o(un, {
3081
+ n ? /* @__PURE__ */ o(pn, {
3079
3082
  title: a("ai.analyticsChatbot"),
3080
3083
  leftNav: /* @__PURE__ */ o(M1, {
3081
3084
  children: /* @__PURE__ */ o(S1, {
@@ -3087,7 +3090,7 @@ function L1({ dataTopicsList: e, onDataTopicClick: t }) {
3087
3090
  /* @__PURE__ */ w(T1, {
3088
3091
  theme: r,
3089
3092
  children: [
3090
- !c && /* @__PURE__ */ o(He, {}),
3093
+ !c && /* @__PURE__ */ o(Pe, {}),
3091
3094
  c && /* @__PURE__ */ o(v1, {
3092
3095
  dataTopics: c
3093
3096
  })
@@ -3097,47 +3100,47 @@ function L1({ dataTopicsList: e, onDataTopicClick: t }) {
3097
3100
  });
3098
3101
  }
3099
3102
  function R1() {
3100
- const [e, t] = D(), [n, r] = D(), { data: a, fetchStatus: c } = xr(), { dataTopicsList: s, contextDetails: p } = ee(), { t: d } = O(), h = d("ai.errors.noAvailableDataTopics"), b = H((l) => {
3101
- l.length ? l.length === 1 && (r(void 0), t(l[0])) : r(h);
3103
+ const [e, t] = D(), [n, r] = D(), { data: a, fetchStatus: c } = xr(), { dataTopicsList: s, contextDetails: p } = ee(), { t: d } = P(), g = d("ai.errors.noAvailableDataTopics"), m = H((l) => {
3104
+ l.length ? l.length === 1 && (r(void 0), t(l[0])) : r(g);
3102
3105
  }, [
3103
- h
3104
- ]), m = Z(() => {
3106
+ g
3107
+ ]), b = z(() => {
3105
3108
  if (a && c === "idle") {
3106
- const C = (s != null && s.length ? a == null ? void 0 : a.filter((g) => s == null ? void 0 : s.includes(g.title)) : a).map((g) => g.title);
3107
- return b(C), C;
3109
+ const C = (s != null && s.length ? a == null ? void 0 : a.filter((h) => s == null ? void 0 : s.includes(h.title)) : a).map((h) => h.title);
3110
+ return m(C), C;
3108
3111
  }
3109
3112
  return [];
3110
3113
  }, [
3111
3114
  a,
3112
3115
  c,
3113
3116
  s,
3114
- b
3115
- ]), i = xe(), u = H(() => {
3117
+ m
3118
+ ]), i = ve(), u = H(() => {
3116
3119
  r(void 0), i.invalidateQueries([
3117
3120
  "getDataTopics"
3118
3121
  ]);
3119
3122
  }, [
3120
3123
  i
3121
3124
  ]);
3122
- return n ? /* @__PURE__ */ o(an, {
3125
+ return n ? /* @__PURE__ */ o(sn, {
3123
3126
  text: n,
3124
3127
  action: {
3125
3128
  text: d("ai.buttons.refresh"),
3126
3129
  onClick: u
3127
3130
  }
3128
- }) : m.length === 1 && !e ? /* @__PURE__ */ o(He, {}) : e ? /* @__PURE__ */ o(p1, {
3131
+ }) : b.length === 1 && !e ? /* @__PURE__ */ o(Pe, {}) : e ? /* @__PURE__ */ o(p1, {
3129
3132
  contextTitle: e,
3130
3133
  contextDetails: p,
3131
- onGoBack: m.length === 1 ? void 0 : () => t(void 0)
3134
+ onGoBack: b.length === 1 ? void 0 : () => t(void 0)
3132
3135
  }) : /* @__PURE__ */ o(L1, {
3133
- dataTopicsList: m,
3136
+ dataTopicsList: b,
3134
3137
  onDataTopicClick: (l) => t(l)
3135
3138
  });
3136
3139
  }
3137
- const V1 = Ft({
3140
+ const V1 = Nt({
3138
3141
  componentName: "Chatbot"
3139
3142
  })((e) => {
3140
- const { width: t, height: n, config: r } = e, { themeSettings: a } = L();
3143
+ const { width: t, height: n, config: r } = e, { themeSettings: a } = R();
3141
3144
  return /* @__PURE__ */ o(br, {
3142
3145
  value: r != null ? r : {},
3143
3146
  children: /* @__PURE__ */ o(Br, {
@@ -3149,16 +3152,16 @@ const V1 = Ft({
3149
3152
  children: /* @__PURE__ */ o(R1, {})
3150
3153
  })
3151
3154
  });
3152
- }), U1 = Ft({
3155
+ }), U1 = Nt({
3153
3156
  componentName: "GetNlgInsights"
3154
3157
  })(function(t) {
3155
- const { data: n, isLoading: r, isError: a } = Ne(t), { t: c } = O();
3158
+ const { data: n, isLoading: r, isError: a } = He(t), { t: c } = P();
3156
3159
  if (a)
3157
- return /* @__PURE__ */ o(G, {
3160
+ return /* @__PURE__ */ o(W, {
3158
3161
  children: c("ai.errors.unexpected")
3159
3162
  });
3160
3163
  const s = n != null ? n : c("ai.errors.insightsNotAvailable");
3161
- return /* @__PURE__ */ o(lt, {
3164
+ return /* @__PURE__ */ o(ct, {
3162
3165
  text: r ? "Loading..." : s
3163
3166
  });
3164
3167
  });
@@ -3199,8 +3202,8 @@ const I1 = /* @__PURE__ */ v("div", {
3199
3202
  target: "eit37yz1",
3200
3203
  label: "IconDiv"
3201
3204
  })("align-self:flex-start;"), F1 = ({ summary: e, nlgRequest: t }) => {
3202
- const { themeSettings: n } = L();
3203
- return /* @__PURE__ */ o(Qe, {
3205
+ const { themeSettings: n } = R();
3206
+ return /* @__PURE__ */ o(_e, {
3204
3207
  sourceId: t.jaql.datasource.title,
3205
3208
  data: t,
3206
3209
  type: "chart/insights",
@@ -3214,7 +3217,7 @@ const I1 = /* @__PURE__ */ v("div", {
3214
3217
  theme: n
3215
3218
  })
3216
3219
  }),
3217
- /* @__PURE__ */ o(lt, {
3220
+ /* @__PURE__ */ o(ct, {
3218
3221
  text: e
3219
3222
  }),
3220
3223
  r
@@ -3226,15 +3229,15 @@ const I1 = /* @__PURE__ */ v("div", {
3226
3229
  const { connectToWidgetProps: a } = Vn({
3227
3230
  initialFilters: r
3228
3231
  }), [c, s] = D(null);
3229
- ve(() => {
3230
- const m = Fe(e, {
3232
+ ke(() => {
3233
+ const b = Ne(e, {
3231
3234
  useCustomizedStyleOptions: !0
3232
3235
  });
3233
- if (!m)
3236
+ if (!b)
3234
3237
  s(null);
3235
3238
  else {
3236
- n && m.styleOptions && (m.styleOptions = rr(m.styleOptions, n));
3237
- const i = a(m, {
3239
+ n && b.styleOptions && (b.styleOptions = rr(b.styleOptions, n));
3240
+ const i = a(b, {
3238
3241
  shouldAffectFilters: !1,
3239
3242
  applyMode: "filter"
3240
3243
  });
@@ -3245,8 +3248,8 @@ const I1 = /* @__PURE__ */ v("div", {
3245
3248
  a,
3246
3249
  n
3247
3250
  ]);
3248
- const p = Z(() => {
3249
- const m = c && je(c) ? Un(c == null ? void 0 : c.filters) : [], i = e.jaql.metadata.filter((u) => !u.jaql.filter).concat(m.filter((u) => !u.config.disabled).map((u) => u.jaql()));
3251
+ const p = z(() => {
3252
+ const b = c && Ge(c) ? Un(c == null ? void 0 : c.filters) : [], i = e.jaql.metadata.filter((u) => !u.jaql.filter).concat(b.filter((u) => !u.config.disabled).map((u) => u.jaql()));
3250
3253
  return B(T({}, e), {
3251
3254
  jaql: B(T({}, e.jaql), {
3252
3255
  metadata: i
@@ -3256,16 +3259,16 @@ const I1 = /* @__PURE__ */ v("div", {
3256
3259
  }, [
3257
3260
  e,
3258
3261
  c
3259
- ]), { data: d, isLoading: h, isError: b } = Ne(p);
3260
- return h || !c ? /* @__PURE__ */ o(at, {}) : je(c) ? /* @__PURE__ */ o(be, B(T({}, c), {
3262
+ ]), { data: d, isLoading: g, isError: m } = He(p);
3263
+ return g || !c ? /* @__PURE__ */ o(st, {}) : Ge(c) ? /* @__PURE__ */ o(ye, B(T({}, c), {
3261
3264
  highlightSelectionDisabled: !0,
3262
3265
  onDataReady: t,
3263
- topSlot: d && !b && /* @__PURE__ */ o(F1, {
3266
+ topSlot: d && !m && /* @__PURE__ */ o(F1, {
3264
3267
  nlgRequest: p,
3265
3268
  summary: d
3266
3269
  })
3267
- })) : /* @__PURE__ */ o(G, {});
3268
- }, N1 = new Lt({
3270
+ })) : /* @__PURE__ */ o(W, {});
3271
+ }, N1 = new Rt({
3269
3272
  defaultOptions: {
3270
3273
  queries: {
3271
3274
  refetchOnWindowFocus: !1,
@@ -3275,9 +3278,9 @@ const I1 = /* @__PURE__ */ v("div", {
3275
3278
  });
3276
3279
  function _1({ children: e, context: t }) {
3277
3280
  return /* @__PURE__ */ o(Ot, {
3278
- children: /* @__PURE__ */ o(Ye.Provider, {
3281
+ children: /* @__PURE__ */ o(et.Provider, {
3279
3282
  value: t == null ? void 0 : t.api,
3280
- children: /* @__PURE__ */ o(Rt, {
3283
+ children: /* @__PURE__ */ o(Et, {
3281
3284
  client: N1,
3282
3285
  children: e
3283
3286
  })