@quidgest/chatbot 0.3.0 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { getCurrentInstance as Bn, computed as I, inject as co, defineComponent as X, createElementBlock as G, openBlock as F, normalizeStyle as He, normalizeClass as se, unref as L, toRef as In, withModifiers as wt, createCommentVNode as ne, createElementVNode as W, createVNode as Z, renderSlot as $, createTextVNode as io, toDisplayString as Ie, createBlock as re, resolveDynamicComponent as ks, h as At, mergeProps as Ce, ref as Q, withCtx as j, normalizeProps as Et, guardReactiveProps as _n, mergeModels as Pe, useModel as it, watch as he, createSlots as ao, withDirectives as lo, vModelDynamic as xs, readonly as _s, customRef as As, getCurrentScope as Es, onScopeDispose as uo, shallowRef as An, nextTick as Se, toValue as Ee, onMounted as at, onUnmounted as fo, reactive as Yn, onBeforeUnmount as Cs, Fragment as lt, Teleport as Ds, Transition as Xn, renderList as On, toHandlers as Ss, vModelText as qs, resolveComponent as Rs, withKeys as Ts } from "vue";
1
+ import { getCurrentInstance as Bn, computed as I, inject as co, defineComponent as X, createElementBlock as G, openBlock as F, normalizeStyle as He, normalizeClass as se, unref as L, toRef as In, withModifiers as wt, createCommentVNode as ne, createElementVNode as W, createVNode as Z, renderSlot as $, createTextVNode as io, toDisplayString as Ie, createBlock as re, resolveDynamicComponent as ks, h as At, mergeProps as Ce, ref as Q, withCtx as j, normalizeProps as Et, guardReactiveProps as _n, mergeModels as Pe, useModel as it, watch as me, createSlots as ao, withDirectives as lo, vModelDynamic as xs, readonly as _s, customRef as As, getCurrentScope as Es, onScopeDispose as uo, shallowRef as An, nextTick as Se, toValue as Ee, onMounted as at, onUnmounted as fo, reactive as Yn, onBeforeUnmount as Cs, Fragment as lt, Teleport as Ds, Transition as Xn, renderList as On, toHandlers as Ss, vModelText as qs, resolveComponent as Rs, withKeys as Ts } from "vue";
2
2
  function po(t, e) {
3
3
  return function() {
4
4
  return t.apply(e, arguments);
@@ -7,11 +7,11 @@ function po(t, e) {
7
7
  const { toString: Fs } = Object.prototype, { getPrototypeOf: Pn } = Object, Bt = /* @__PURE__ */ ((t) => (e) => {
8
8
  const n = Fs.call(e);
9
9
  return t[n] || (t[n] = n.slice(8, -1).toLowerCase());
10
- })(/* @__PURE__ */ Object.create(null)), me = (t) => (t = t.toLowerCase(), (e) => Bt(e) === t), It = (t) => (e) => typeof e === t, { isArray: Ze } = Array, st = It("undefined");
10
+ })(/* @__PURE__ */ Object.create(null)), ge = (t) => (t = t.toLowerCase(), (e) => Bt(e) === t), It = (t) => (e) => typeof e === t, { isArray: Ze } = Array, st = It("undefined");
11
11
  function Ls(t) {
12
12
  return t !== null && !st(t) && t.constructor !== null && !st(t.constructor) && ue(t.constructor.isBuffer) && t.constructor.isBuffer(t);
13
13
  }
14
- const ho = me("ArrayBuffer");
14
+ const ho = ge("ArrayBuffer");
15
15
  function Ns(t) {
16
16
  let e;
17
17
  return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(t) : e = t && t.buffer && ho(t.buffer), e;
@@ -21,11 +21,11 @@ const Bs = It("string"), ue = It("function"), mo = It("number"), Ot = (t) => t !
21
21
  return !1;
22
22
  const e = Pn(t);
23
23
  return (e === null || e === Object.prototype || Object.getPrototypeOf(e) === null) && !(Symbol.toStringTag in t) && !(Symbol.iterator in t);
24
- }, Os = me("Date"), Ps = me("File"), zs = me("Blob"), Ms = me("FileList"), Us = (t) => Ot(t) && ue(t.pipe), js = (t) => {
24
+ }, Os = ge("Date"), Ps = ge("File"), zs = ge("Blob"), Ms = ge("FileList"), Us = (t) => Ot(t) && ue(t.pipe), js = (t) => {
25
25
  let e;
26
26
  return t && (typeof FormData == "function" && t instanceof FormData || ue(t.append) && ((e = Bt(t)) === "formdata" || // detect form-data instance
27
27
  e === "object" && ue(t.toString) && t.toString() === "[object FormData]"));
28
- }, Vs = me("URLSearchParams"), [Gs, $s, Hs, Zs] = ["ReadableStream", "Request", "Response", "Headers"].map(me), Ws = (t) => t.trim ? t.trim() : t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
28
+ }, Vs = ge("URLSearchParams"), [Gs, $s, Hs, Zs] = ["ReadableStream", "Request", "Response", "Headers"].map(ge), Ws = (t) => t.trim ? t.trim() : t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
29
29
  function ut(t, e, { allOwnKeys: n = !1 } = {}) {
30
30
  if (t === null || typeof t > "u")
31
31
  return;
@@ -101,12 +101,12 @@ const Js = (t, e, n, { allOwnKeys: r } = {}) => (ut(e, (o, s) => {
101
101
  for (; (n = t.exec(e)) !== null; )
102
102
  r.push(n);
103
103
  return r;
104
- }, oc = me("HTMLFormElement"), sc = (t) => t.toLowerCase().replace(
104
+ }, oc = ge("HTMLFormElement"), sc = (t) => t.toLowerCase().replace(
105
105
  /[-_\s]([a-z\d])(\w*)/g,
106
106
  function(n, r, o) {
107
107
  return r.toUpperCase() + o;
108
108
  }
109
- ), Kn = (({ hasOwnProperty: t }) => (e, n) => t.call(e, n))(Object.prototype), cc = me("RegExp"), vo = (t, e) => {
109
+ ), Kn = (({ hasOwnProperty: t }) => (e, n) => t.call(e, n))(Object.prototype), cc = ge("RegExp"), vo = (t, e) => {
110
110
  const n = Object.getOwnPropertyDescriptors(t), r = {};
111
111
  ut(n, (o, s) => {
112
112
  let c;
@@ -156,7 +156,7 @@ const dc = (t) => {
156
156
  return r;
157
157
  };
158
158
  return n(t, 0);
159
- }, pc = me("AsyncFunction"), hc = (t) => t && (Ot(t) || ue(t)) && ue(t.then) && ue(t.catch), yo = ((t, e) => t ? setImmediate : e ? ((n, r) => (Ne.addEventListener("message", ({ source: o, data: s }) => {
159
+ }, pc = ge("AsyncFunction"), hc = (t) => t && (Ot(t) || ue(t)) && ue(t.then) && ue(t.catch), yo = ((t, e) => t ? setImmediate : e ? ((n, r) => (Ne.addEventListener("message", ({ source: o, data: s }) => {
160
160
  o === Ne && s === n && r.length && r.shift()();
161
161
  }, !1), (o) => {
162
162
  r.push(o), Ne.postMessage(n, "*");
@@ -196,7 +196,7 @@ const dc = (t) => {
196
196
  inherits: Ys,
197
197
  toFlatObject: Xs,
198
198
  kindOf: Bt,
199
- kindOfTest: me,
199
+ kindOfTest: ge,
200
200
  endsWith: Ks,
201
201
  toArray: ec,
202
202
  forEachEntry: nc,
@@ -1371,7 +1371,7 @@ function ri(t, e, n) {
1371
1371
  const _t = {
1372
1372
  assertOptions: ri,
1373
1373
  validators: Mt
1374
- }, be = _t.validators;
1374
+ }, ve = _t.validators;
1375
1375
  let Oe = class {
1376
1376
  constructor(e) {
1377
1377
  this.defaults = e, this.interceptors = {
@@ -1408,17 +1408,17 @@ let Oe = class {
1408
1408
  typeof e == "string" ? (n = n || {}, n.url = e) : n = e || {}, n = ze(this.defaults, n);
1409
1409
  const { transitional: r, paramsSerializer: o, headers: s } = n;
1410
1410
  r !== void 0 && _t.assertOptions(r, {
1411
- silentJSONParsing: be.transitional(be.boolean),
1412
- forcedJSONParsing: be.transitional(be.boolean),
1413
- clarifyTimeoutError: be.transitional(be.boolean)
1411
+ silentJSONParsing: ve.transitional(ve.boolean),
1412
+ forcedJSONParsing: ve.transitional(ve.boolean),
1413
+ clarifyTimeoutError: ve.transitional(ve.boolean)
1414
1414
  }, !1), o != null && (b.isFunction(o) ? n.paramsSerializer = {
1415
1415
  serialize: o
1416
1416
  } : _t.assertOptions(o, {
1417
- encode: be.function,
1418
- serialize: be.function
1417
+ encode: ve.function,
1418
+ serialize: ve.function
1419
1419
  }, !0)), n.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? n.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : n.allowAbsoluteUrls = !0), _t.assertOptions(n, {
1420
- baseUrl: be.spelling("baseURL"),
1421
- withXsrfToken: be.spelling("withXSRFToken")
1420
+ baseUrl: ve.spelling("baseURL"),
1421
+ withXsrfToken: ve.spelling("withXSRFToken")
1422
1422
  }, !0), n.method = (n.method || this.defaults.method || "get").toLowerCase();
1423
1423
  let c = s && b.merge(
1424
1424
  s.common,
@@ -1969,7 +1969,7 @@ const Ci = ["id", "disabled"], Di = {
1969
1969
  ])
1970
1970
  ], 14, Ci));
1971
1971
  }
1972
- }), ve = ce(qi), Ri = /* @__PURE__ */ X({
1972
+ }), ye = ce(qi), Ri = /* @__PURE__ */ X({
1973
1973
  __name: "QIcon",
1974
1974
  props: {
1975
1975
  id: {},
@@ -2335,7 +2335,7 @@ const Vi = ["id"], Gi = ["for"], $i = /* @__PURE__ */ X({
2335
2335
  function o(s) {
2336
2336
  r("click", s);
2337
2337
  }
2338
- return (s, c) => (F(), re(L(ve), {
2338
+ return (s, c) => (F(), re(L(ye), {
2339
2339
  id: n.id,
2340
2340
  class: se(["q-clear-btn", n.class]),
2341
2341
  "aria-label": n.texts.clearValue,
@@ -2389,7 +2389,7 @@ const Vi = ["id"], Gi = ["for"], $i = /* @__PURE__ */ X({
2389
2389
  s.value = g ? p == null ? void 0 : p.slice(0, g) : p;
2390
2390
  }
2391
2391
  });
2392
- he(s, (p) => c.value = p, { immediate: !0 });
2392
+ me(s, (p) => c.value = p, { immediate: !0 });
2393
2393
  const i = Uo(r.id), a = Q(null), l = Q(null), u = I(
2394
2394
  () => r.readonly || r.disabled ? void 0 : r.placeholder
2395
2395
  ), f = I(() => r.clearable && !r.readonly && !r.disabled), d = I(() => f.value && s.value);
@@ -2491,7 +2491,7 @@ function nn(t) {
2491
2491
  return Array.isArray(t) ? t : [t];
2492
2492
  }
2493
2493
  function aa(t, e, n) {
2494
- return he(
2494
+ return me(
2495
2495
  t,
2496
2496
  e,
2497
2497
  {
@@ -2625,7 +2625,7 @@ function da(t, e, n = {}) {
2625
2625
  }, a = I(() => {
2626
2626
  const f = Ee(t);
2627
2627
  return Array.isArray(f) ? f.map((d) => qe(d)) : [qe(f)];
2628
- }), l = he(
2628
+ }), l = me(
2629
2629
  a,
2630
2630
  (f) => {
2631
2631
  if (i(), c.value && r) {
@@ -2658,14 +2658,14 @@ function ha(t = {}) {
2658
2658
  const d = Ee(t == null ? void 0 : t.styleTarget);
2659
2659
  d ? d.style[c] = `${i.value}px` : f = `${i.value}px`, o.value.style[c] = f;
2660
2660
  }
2661
- return he([s, o], () => Se(l), { immediate: !0 }), he(i, () => {
2661
+ return me([s, o], () => Se(l), { immediate: !0 }), me(i, () => {
2662
2662
  var u;
2663
2663
  return (u = t == null ? void 0 : t.onResize) == null ? void 0 : u.call(t);
2664
2664
  }), da(o, ([{ contentRect: u }]) => {
2665
2665
  a.value !== u.width && pa(r, () => {
2666
2666
  a.value = u.width, l();
2667
2667
  });
2668
- }), t != null && t.watch && he(t.watch, l, { immediate: !0, deep: !0 }), {
2668
+ }), t != null && t.watch && me(t.watch, l, { immediate: !0, deep: !0 }), {
2669
2669
  textarea: o,
2670
2670
  input: s,
2671
2671
  triggerResize: l
@@ -3190,8 +3190,8 @@ var yr = {
3190
3190
  if (N < 0)
3191
3191
  C ? A = s.tabbableGroups[s.tabbableGroups.length - 1].lastTabbableNode : A = s.tabbableGroups[0].firstTabbableNode;
3192
3192
  else if (C) {
3193
- var H = s.tabbableGroups.findIndex(function(_e) {
3194
- var Re = _e.firstTabbableNode;
3193
+ var H = s.tabbableGroups.findIndex(function(he) {
3194
+ var Re = he.firstTabbableNode;
3195
3195
  return x === Re;
3196
3196
  });
3197
3197
  if (H < 0 && (J.container === x || rn(x, o.tabbableOptions) && !je(x, o.tabbableOptions) && !J.nextTabbableNode(x, !1)) && (H = N), H >= 0) {
@@ -3199,8 +3199,8 @@ var yr = {
3199
3199
  A = Le(x) >= 0 ? z.lastTabbableNode : z.lastDomTabbableNode;
3200
3200
  } else rt(R) || (A = J.nextTabbableNode(x, !1));
3201
3201
  } else {
3202
- var M = s.tabbableGroups.findIndex(function(_e) {
3203
- var Re = _e.lastTabbableNode;
3202
+ var M = s.tabbableGroups.findIndex(function(he) {
3203
+ var Re = he.lastTabbableNode;
3204
3204
  return x === Re;
3205
3205
  });
3206
3206
  if (M < 0 && (J.container === x || rn(x, o.tabbableOptions) && !je(x, o.tabbableOptions) && !J.nextTabbableNode(x)) && (M = N), M >= 0) {
@@ -3386,7 +3386,7 @@ const Wa = /* @__PURE__ */ X({
3386
3386
  setup(t, { slots: e }) {
3387
3387
  let n;
3388
3388
  const r = Q(), o = () => n && n.activate(), s = () => n && n.deactivate();
3389
- return he(
3389
+ return me(
3390
3390
  () => qe(r),
3391
3391
  (c) => {
3392
3392
  c && (n = Za(c, t.options || {}), o());
@@ -3722,7 +3722,7 @@ const yl = ["id"], wl = ["role"], kl = /* @__PURE__ */ X({
3722
3722
  left: void 0,
3723
3723
  hidden: !0
3724
3724
  });
3725
- he(o, R);
3725
+ me(o, R);
3726
3726
  const h = I(() => {
3727
3727
  if (i.value) return;
3728
3728
  const B = C(), Ae = n.width === "anchor", ie = Ae ? B == null ? void 0 : B.getBoundingClientRect().width : void 0;
@@ -3757,7 +3757,7 @@ const yl = ["id"], wl = ["role"], kl = /* @__PURE__ */ X({
3757
3757
  );
3758
3758
  f.left = ie.overlayCoords.x, f.top = ie.overlayCoords.y, f.placement = ie.placement, d.hidden = ie.arrowCoords === void 0, ie.arrowCoords && (d.top = ie.arrowCoords.y, d.left = ie.arrowCoords.x);
3759
3759
  }
3760
- he(
3760
+ me(
3761
3761
  () => n.placement,
3762
3762
  () => Se(y)
3763
3763
  );
@@ -3861,12 +3861,12 @@ const yl = ["id"], wl = ["role"], kl = /* @__PURE__ */ X({
3861
3861
  window.removeEventListener("resize", y), n.scrollLock || window.removeEventListener("scroll", y);
3862
3862
  }
3863
3863
  let ee;
3864
- function _e() {
3865
- C() ? (y(), ee = window.setTimeout(_e, 100)) : T();
3864
+ function he() {
3865
+ C() ? (y(), ee = window.setTimeout(he, 100)) : T();
3866
3866
  }
3867
3867
  function Re() {
3868
3868
  var B;
3869
- i.value || (M(), n.spy ? _e() : y()), (i.value || n.trigger === "click") && ((B = m.value) == null || B.focus());
3869
+ i.value || (M(), n.spy ? he() : y()), (i.value || n.trigger === "click") && ((B = m.value) == null || B.focus());
3870
3870
  }
3871
3871
  function Qt() {
3872
3872
  i.value || le(), n.spy && (clearTimeout(ee), ee = void 0);
@@ -4052,7 +4052,7 @@ const yl = ["id"], wl = ["role"], kl = /* @__PURE__ */ X({
4052
4052
  1
4053
4053
  /* TEXT */
4054
4054
  ),
4055
- e.dismissible ? (F(), re(L(ve), {
4055
+ e.dismissible ? (F(), re(L(ye), {
4056
4056
  key: 0,
4057
4057
  variant: "text",
4058
4058
  onClick: r
@@ -4102,7 +4102,7 @@ const yl = ["id"], wl = ["role"], kl = /* @__PURE__ */ X({
4102
4102
  (F(!0), G(
4103
4103
  lt,
4104
4104
  null,
4105
- On(e.buttons, (i) => (F(), re(L(ve), Ce({ ref_for: !0 }, i.props, {
4105
+ On(e.buttons, (i) => (F(), re(L(ye), Ce({ ref_for: !0 }, i.props, {
4106
4106
  key: i.id,
4107
4107
  onClick: () => o(i)
4108
4108
  }), {
@@ -4167,7 +4167,7 @@ const yl = ["id"], wl = ["role"], kl = /* @__PURE__ */ X({
4167
4167
  n.value = u ? l == null ? void 0 : l.slice(0, u) : l;
4168
4168
  }
4169
4169
  });
4170
- he(n, (l) => r.value = l, { immediate: !0 });
4170
+ me(n, (l) => r.value = l, { immediate: !0 });
4171
4171
  const o = Uo(e.id), s = I(
4172
4172
  () => e.readonly || e.disabled ? void 0 : e.placeholder
4173
4173
  ), c = I(() => ({ input: e.autosize ? a : null })), i = Q(), { triggerResize: a } = ha({
@@ -6788,17 +6788,17 @@ var Vt = {}, E$ = function(e, n, r) {
6788
6788
  Vt.parseLinkLabel = E$;
6789
6789
  Vt.parseLinkDestination = C$;
6790
6790
  Vt.parseLinkTitle = S$;
6791
- var q$ = V.assign, R$ = V.unescapeAll, Ue = V.escapeHtml, ke = {};
6792
- ke.code_inline = function(t, e, n, r, o) {
6791
+ var q$ = V.assign, R$ = V.unescapeAll, Ue = V.escapeHtml, xe = {};
6792
+ xe.code_inline = function(t, e, n, r, o) {
6793
6793
  var s = t[e];
6794
6794
  return "<code" + o.renderAttrs(s) + ">" + Ue(s.content) + "</code>";
6795
6795
  };
6796
- ke.code_block = function(t, e, n, r, o) {
6796
+ xe.code_block = function(t, e, n, r, o) {
6797
6797
  var s = t[e];
6798
6798
  return "<pre" + o.renderAttrs(s) + "><code>" + Ue(t[e].content) + `</code></pre>
6799
6799
  `;
6800
6800
  };
6801
- ke.fence = function(t, e, n, r, o) {
6801
+ xe.fence = function(t, e, n, r, o) {
6802
6802
  var s = t[e], c = s.info ? R$(s.info).trim() : "", i = "", a = "", l, u, f, d, h;
6803
6803
  return c && (f = c.split(/(\s+)/g), i = f[0], a = f.slice(2).join("")), n.highlight ? l = n.highlight(s.content, i, a) || Ue(s.content) : l = Ue(s.content), l.indexOf("<pre") === 0 ? l + `
6804
6804
  ` : c ? (u = s.attrIndex("class"), d = s.attrs ? s.attrs.slice() : [], u < 0 ? d.push(["class", n.langPrefix + i]) : (d[u] = d[u].slice(), d[u][1] += " " + n.langPrefix + i), h = {
@@ -6807,32 +6807,32 @@ ke.fence = function(t, e, n, r, o) {
6807
6807
  `) : "<pre><code" + o.renderAttrs(s) + ">" + l + `</code></pre>
6808
6808
  `;
6809
6809
  };
6810
- ke.image = function(t, e, n, r, o) {
6810
+ xe.image = function(t, e, n, r, o) {
6811
6811
  var s = t[e];
6812
6812
  return s.attrs[s.attrIndex("alt")][1] = o.renderInlineAsText(s.children, n, r), o.renderToken(t, e, n);
6813
6813
  };
6814
- ke.hardbreak = function(t, e, n) {
6814
+ xe.hardbreak = function(t, e, n) {
6815
6815
  return n.xhtmlOut ? `<br />
6816
6816
  ` : `<br>
6817
6817
  `;
6818
6818
  };
6819
- ke.softbreak = function(t, e, n) {
6819
+ xe.softbreak = function(t, e, n) {
6820
6820
  return n.breaks ? n.xhtmlOut ? `<br />
6821
6821
  ` : `<br>
6822
6822
  ` : `
6823
6823
  `;
6824
6824
  };
6825
- ke.text = function(t, e) {
6825
+ xe.text = function(t, e) {
6826
6826
  return Ue(t[e].content);
6827
6827
  };
6828
- ke.html_block = function(t, e) {
6828
+ xe.html_block = function(t, e) {
6829
6829
  return t[e].content;
6830
6830
  };
6831
- ke.html_inline = function(t, e) {
6831
+ xe.html_inline = function(t, e) {
6832
6832
  return t[e].content;
6833
6833
  };
6834
6834
  function Ye() {
6835
- this.rules = q$({}, ke);
6835
+ this.rules = q$({}, xe);
6836
6836
  }
6837
6837
  Ye.prototype.renderAttrs = function(e) {
6838
6838
  var n, r, o;
@@ -6866,16 +6866,16 @@ Ye.prototype.render = function(t, e, n) {
6866
6866
  return c;
6867
6867
  };
6868
6868
  var T$ = Ye;
6869
- function ge() {
6869
+ function be() {
6870
6870
  this.__rules__ = [], this.__cache__ = null;
6871
6871
  }
6872
- ge.prototype.__find__ = function(t) {
6872
+ be.prototype.__find__ = function(t) {
6873
6873
  for (var e = 0; e < this.__rules__.length; e++)
6874
6874
  if (this.__rules__[e].name === t)
6875
6875
  return e;
6876
6876
  return -1;
6877
6877
  };
6878
- ge.prototype.__compile__ = function() {
6878
+ be.prototype.__compile__ = function() {
6879
6879
  var t = this, e = [""];
6880
6880
  t.__rules__.forEach(function(n) {
6881
6881
  n.enabled && n.alt.forEach(function(r) {
@@ -6887,13 +6887,13 @@ ge.prototype.__compile__ = function() {
6887
6887
  });
6888
6888
  });
6889
6889
  };
6890
- ge.prototype.at = function(t, e, n) {
6890
+ be.prototype.at = function(t, e, n) {
6891
6891
  var r = this.__find__(t), o = n || {};
6892
6892
  if (r === -1)
6893
6893
  throw new Error("Parser rule not found: " + t);
6894
6894
  this.__rules__[r].fn = e, this.__rules__[r].alt = o.alt || [], this.__cache__ = null;
6895
6895
  };
6896
- ge.prototype.before = function(t, e, n, r) {
6896
+ be.prototype.before = function(t, e, n, r) {
6897
6897
  var o = this.__find__(t), s = r || {};
6898
6898
  if (o === -1)
6899
6899
  throw new Error("Parser rule not found: " + t);
@@ -6904,7 +6904,7 @@ ge.prototype.before = function(t, e, n, r) {
6904
6904
  alt: s.alt || []
6905
6905
  }), this.__cache__ = null;
6906
6906
  };
6907
- ge.prototype.after = function(t, e, n, r) {
6907
+ be.prototype.after = function(t, e, n, r) {
6908
6908
  var o = this.__find__(t), s = r || {};
6909
6909
  if (o === -1)
6910
6910
  throw new Error("Parser rule not found: " + t);
@@ -6915,7 +6915,7 @@ ge.prototype.after = function(t, e, n, r) {
6915
6915
  alt: s.alt || []
6916
6916
  }), this.__cache__ = null;
6917
6917
  };
6918
- ge.prototype.push = function(t, e, n) {
6918
+ be.prototype.push = function(t, e, n) {
6919
6919
  var r = n || {};
6920
6920
  this.__rules__.push({
6921
6921
  name: t,
@@ -6924,7 +6924,7 @@ ge.prototype.push = function(t, e, n) {
6924
6924
  alt: r.alt || []
6925
6925
  }), this.__cache__ = null;
6926
6926
  };
6927
- ge.prototype.enable = function(t, e) {
6927
+ be.prototype.enable = function(t, e) {
6928
6928
  Array.isArray(t) || (t = [t]);
6929
6929
  var n = [];
6930
6930
  return t.forEach(function(r) {
@@ -6937,12 +6937,12 @@ ge.prototype.enable = function(t, e) {
6937
6937
  this.__rules__[o].enabled = !0, n.push(r);
6938
6938
  }, this), this.__cache__ = null, n;
6939
6939
  };
6940
- ge.prototype.enableOnly = function(t, e) {
6940
+ be.prototype.enableOnly = function(t, e) {
6941
6941
  Array.isArray(t) || (t = [t]), this.__rules__.forEach(function(n) {
6942
6942
  n.enabled = !1;
6943
6943
  }), this.enable(t, e);
6944
6944
  };
6945
- ge.prototype.disable = function(t, e) {
6945
+ be.prototype.disable = function(t, e) {
6946
6946
  Array.isArray(t) || (t = [t]);
6947
6947
  var n = [];
6948
6948
  return t.forEach(function(r) {
@@ -6955,10 +6955,10 @@ ge.prototype.disable = function(t, e) {
6955
6955
  this.__rules__[o].enabled = !1, n.push(r);
6956
6956
  }, this), this.__cache__ = null, n;
6957
6957
  };
6958
- ge.prototype.getRules = function(t) {
6958
+ be.prototype.getRules = function(t) {
6959
6959
  return this.__cache__ === null && this.__compile__(), this.__cache__[t] || [];
6960
6960
  };
6961
- var jn = ge, F$ = /\r\n?|\n/g, L$ = /\0/g, N$ = function(e) {
6961
+ var jn = be, F$ = /\r\n?|\n/g, L$ = /\0/g, N$ = function(e) {
6962
6962
  var n;
6963
6963
  n = e.src.replace(F$, `
6964
6964
  `), n = n.replace(L$, "�"), e.src = n;
@@ -7511,7 +7511,7 @@ var C4 = p4, D4 = Gt.HTML_OPEN_CLOSE_TAG_RE, Ge = [
7511
7511
  }
7512
7512
  return o = e.getLines(n, u, e.blkIndent, !1).trim(), e.line = u, a = e.push("paragraph_open", "p", 1), a.map = [n, e.line], a = e.push("inline", "", 0), a.content = o, a.map = [n, e.line], a.children = [], a = e.push("paragraph_close", "p", -1), e.parentType = l, !0;
7513
7513
  }, is = Vn, $t = V.isSpace;
7514
- function xe(t, e, n, r) {
7514
+ function _e(t, e, n, r) {
7515
7515
  var o, s, c, i, a, l, u, f;
7516
7516
  for (this.src = t, this.md = e, this.env = n, this.tokens = r, this.bMarks = [], this.eMarks = [], this.tShift = [], this.sCount = [], this.bsCount = [], this.blkIndent = 0, this.line = 0, this.lineMax = 0, this.tight = !1, this.ddIndent = -1, this.listIndent = -1, this.parentType = "root", this.level = 0, this.result = "", s = this.src, f = !1, c = i = l = u = 0, a = s.length; i < a; i++) {
7517
7517
  if (o = s.charCodeAt(i), !f)
@@ -7524,24 +7524,24 @@ function xe(t, e, n, r) {
7524
7524
  }
7525
7525
  this.bMarks.push(s.length), this.eMarks.push(s.length), this.tShift.push(0), this.sCount.push(0), this.bsCount.push(0), this.lineMax = this.bMarks.length - 1;
7526
7526
  }
7527
- xe.prototype.push = function(t, e, n) {
7527
+ _e.prototype.push = function(t, e, n) {
7528
7528
  var r = new is(t, e, n);
7529
7529
  return r.block = !0, n < 0 && this.level--, r.level = this.level, n > 0 && this.level++, this.tokens.push(r), r;
7530
7530
  };
7531
- xe.prototype.isEmpty = function(e) {
7531
+ _e.prototype.isEmpty = function(e) {
7532
7532
  return this.bMarks[e] + this.tShift[e] >= this.eMarks[e];
7533
7533
  };
7534
- xe.prototype.skipEmptyLines = function(e) {
7534
+ _e.prototype.skipEmptyLines = function(e) {
7535
7535
  for (var n = this.lineMax; e < n && !(this.bMarks[e] + this.tShift[e] < this.eMarks[e]); e++)
7536
7536
  ;
7537
7537
  return e;
7538
7538
  };
7539
- xe.prototype.skipSpaces = function(e) {
7539
+ _e.prototype.skipSpaces = function(e) {
7540
7540
  for (var n, r = this.src.length; e < r && (n = this.src.charCodeAt(e), !!$t(n)); e++)
7541
7541
  ;
7542
7542
  return e;
7543
7543
  };
7544
- xe.prototype.skipSpacesBack = function(e, n) {
7544
+ _e.prototype.skipSpacesBack = function(e, n) {
7545
7545
  if (e <= n)
7546
7546
  return e;
7547
7547
  for (; e > n; )
@@ -7549,12 +7549,12 @@ xe.prototype.skipSpacesBack = function(e, n) {
7549
7549
  return e + 1;
7550
7550
  return e;
7551
7551
  };
7552
- xe.prototype.skipChars = function(e, n) {
7552
+ _e.prototype.skipChars = function(e, n) {
7553
7553
  for (var r = this.src.length; e < r && this.src.charCodeAt(e) === n; e++)
7554
7554
  ;
7555
7555
  return e;
7556
7556
  };
7557
- xe.prototype.skipCharsBack = function(e, n, r) {
7557
+ _e.prototype.skipCharsBack = function(e, n, r) {
7558
7558
  if (e <= r)
7559
7559
  return e;
7560
7560
  for (; e > r; )
@@ -7562,7 +7562,7 @@ xe.prototype.skipCharsBack = function(e, n, r) {
7562
7562
  return e + 1;
7563
7563
  return e;
7564
7564
  };
7565
- xe.prototype.getLines = function(e, n, r, o) {
7565
+ _e.prototype.getLines = function(e, n, r, o) {
7566
7566
  var s, c, i, a, l, u, f, d = e;
7567
7567
  if (e >= n)
7568
7568
  return "";
@@ -7580,8 +7580,8 @@ xe.prototype.getLines = function(e, n, r, o) {
7580
7580
  }
7581
7581
  return u.join("");
7582
7582
  };
7583
- xe.prototype.Token = is;
7584
- var F4 = xe, L4 = jn, yt = [
7583
+ _e.prototype.Token = is;
7584
+ var F4 = _e, L4 = jn, yt = [
7585
7585
  // First 2 params - rule name & source. Secondary array - list of rules,
7586
7586
  // which can be terminated by this one.
7587
7587
  ["table", n4, ["paragraph", "reference"]],
@@ -8185,11 +8185,11 @@ fe.prototype.normalize = function(e) {
8185
8185
  fe.prototype.onCompile = function() {
8186
8186
  };
8187
8187
  var _5 = fe;
8188
- const $e = 2147483647, ye = 36, Zn = 1, ct = 26, A5 = 38, E5 = 700, ls = 72, us = 128, fs = "-", C5 = /^xn--/, D5 = /[^\0-\x7F]/, S5 = /[\x2E\u3002\uFF0E\uFF61]/g, q5 = {
8188
+ const $e = 2147483647, we = 36, Zn = 1, ct = 26, A5 = 38, E5 = 700, ls = 72, us = 128, fs = "-", C5 = /^xn--/, D5 = /[^\0-\x7F]/, S5 = /[\x2E\u3002\uFF0E\uFF61]/g, q5 = {
8189
8189
  overflow: "Overflow: input needs wider integers to process",
8190
8190
  "not-basic": "Illegal input >= 0x80 (not a basic code point)",
8191
8191
  "invalid-input": "Invalid input"
8192
- }, wn = ye - Zn, we = Math.floor, kn = String.fromCharCode;
8192
+ }, wn = we - Zn, ke = Math.floor, kn = String.fromCharCode;
8193
8193
  function De(t) {
8194
8194
  throw new RangeError(q5[t]);
8195
8195
  }
@@ -8222,14 +8222,14 @@ function Wn(t) {
8222
8222
  return e;
8223
8223
  }
8224
8224
  const ps = (t) => String.fromCodePoint(...t), T5 = function(t) {
8225
- return t >= 48 && t < 58 ? 26 + (t - 48) : t >= 65 && t < 91 ? t - 65 : t >= 97 && t < 123 ? t - 97 : ye;
8225
+ return t >= 48 && t < 58 ? 26 + (t - 48) : t >= 65 && t < 91 ? t - 65 : t >= 97 && t < 123 ? t - 97 : we;
8226
8226
  }, oo = function(t, e) {
8227
8227
  return t + 22 + 75 * (t < 26) - ((e != 0) << 5);
8228
8228
  }, hs = function(t, e, n) {
8229
8229
  let r = 0;
8230
- for (t = n ? we(t / E5) : t >> 1, t += we(t / e); t > wn * ct >> 1; r += ye)
8231
- t = we(t / wn);
8232
- return we(r + (wn + 1) * t / (t + A5));
8230
+ for (t = n ? ke(t / E5) : t >> 1, t += ke(t / e); t > wn * ct >> 1; r += we)
8231
+ t = ke(t / wn);
8232
+ return ke(r + (wn + 1) * t / (t + A5));
8233
8233
  }, Jn = function(t) {
8234
8234
  const e = [], n = t.length;
8235
8235
  let r = 0, o = us, s = ls, c = t.lastIndexOf(fs);
@@ -8238,18 +8238,18 @@ const ps = (t) => String.fromCodePoint(...t), T5 = function(t) {
8238
8238
  t.charCodeAt(i) >= 128 && De("not-basic"), e.push(t.charCodeAt(i));
8239
8239
  for (let i = c > 0 ? c + 1 : 0; i < n; ) {
8240
8240
  const a = r;
8241
- for (let u = 1, f = ye; ; f += ye) {
8241
+ for (let u = 1, f = we; ; f += we) {
8242
8242
  i >= n && De("invalid-input");
8243
8243
  const d = T5(t.charCodeAt(i++));
8244
- d >= ye && De("invalid-input"), d > we(($e - r) / u) && De("overflow"), r += d * u;
8244
+ d >= we && De("invalid-input"), d > ke(($e - r) / u) && De("overflow"), r += d * u;
8245
8245
  const h = f <= s ? Zn : f >= s + ct ? ct : f - s;
8246
8246
  if (d < h)
8247
8247
  break;
8248
- const p = ye - h;
8249
- u > we($e / p) && De("overflow"), u *= p;
8248
+ const p = we - h;
8249
+ u > ke($e / p) && De("overflow"), u *= p;
8250
8250
  }
8251
8251
  const l = e.length + 1;
8252
- s = hs(r - a, l, a == 0), we(r / l) > $e - o && De("overflow"), o += we(r / l), r %= l, e.splice(r++, 0, o);
8252
+ s = hs(r - a, l, a == 0), ke(r / l) > $e - o && De("overflow"), o += ke(r / l), r %= l, e.splice(r++, 0, o);
8253
8253
  }
8254
8254
  return String.fromCodePoint(...e);
8255
8255
  }, Qn = function(t) {
@@ -8266,18 +8266,18 @@ const ps = (t) => String.fromCodePoint(...t), T5 = function(t) {
8266
8266
  for (const u of t)
8267
8267
  u >= r && u < a && (a = u);
8268
8268
  const l = i + 1;
8269
- a - r > we(($e - o) / l) && De("overflow"), o += (a - r) * l, r = a;
8269
+ a - r > ke(($e - o) / l) && De("overflow"), o += (a - r) * l, r = a;
8270
8270
  for (const u of t)
8271
8271
  if (u < r && ++o > $e && De("overflow"), u === r) {
8272
8272
  let f = o;
8273
- for (let d = ye; ; d += ye) {
8273
+ for (let d = we; ; d += we) {
8274
8274
  const h = d <= s ? Zn : d >= s + ct ? ct : d - s;
8275
8275
  if (f < h)
8276
8276
  break;
8277
- const p = f - h, g = ye - h;
8277
+ const p = f - h, g = we - h;
8278
8278
  e.push(
8279
8279
  kn(oo(h + p % g, 0))
8280
- ), f = we(p / g);
8280
+ ), f = ke(p / g);
8281
8281
  }
8282
8282
  e.push(kn(oo(f, 0))), s = hs(o, l, i === c), o = 0, ++i;
8283
8283
  }
@@ -8735,7 +8735,7 @@ const X5 = /* @__PURE__ */ Ul(Y5), K5 = X({
8735
8735
  c.value ? (F(), G("div", i6, [
8736
8736
  Z(v, null, {
8737
8737
  default: j(() => [
8738
- Z(L(ve), {
8738
+ Z(L(ye), {
8739
8739
  title: e.texts.goodResponse,
8740
8740
  borderless: "",
8741
8741
  disabled: g.loading,
@@ -8746,7 +8746,7 @@ const X5 = /* @__PURE__ */ Ul(Y5), K5 = X({
8746
8746
  ]),
8747
8747
  _: 1
8748
8748
  }, 8, ["title", "disabled"]),
8749
- Z(L(ve), {
8749
+ Z(L(ye), {
8750
8750
  title: e.texts.badResponse,
8751
8751
  borderless: "",
8752
8752
  disabled: g.loading,
@@ -8757,7 +8757,7 @@ const X5 = /* @__PURE__ */ Ul(Y5), K5 = X({
8757
8757
  ]),
8758
8758
  _: 1
8759
8759
  }, 8, ["title", "disabled"]),
8760
- Z(L(ve), {
8760
+ Z(L(ye), {
8761
8761
  title: e.texts.copyResponse,
8762
8762
  borderless: "",
8763
8763
  disabled: g.loading,
@@ -8850,42 +8850,38 @@ const m6 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAA
8850
8850
  s.value = q;
8851
8851
  }
8852
8852
  async function y() {
8853
- const q = await Y.post(p.apiEndpoint + "/auth/login", {
8854
- username: p.username,
8855
- password: "test"
8856
- });
8857
- if (!q.data) {
8858
- D(p.texts.loginError), v(!0), o.value = !1;
8859
- return;
8860
- }
8861
- if (q.status !== 200 || !q.data.success) {
8862
- v(!0), D(p.texts.loginError), console.log(`Unsuccessful login, endpoint gave status ${q.status}`);
8863
- return;
8853
+ try {
8854
+ await Y.post(p.apiEndpoint + "/auth/login", {
8855
+ username: p.username,
8856
+ password: "test"
8857
+ }), E();
8858
+ } catch (q) {
8859
+ v(!0), D(p.texts.loginError), console.log("Error logging in: " + q);
8864
8860
  }
8865
- E();
8866
8861
  }
8867
8862
  async function E() {
8868
- const q = await Y.post(p.apiEndpoint + "/prompt/load", {
8869
- username: p.username,
8870
- project: p.projectPath
8871
- });
8872
- if (!q.data) {
8873
- v(!0), D(p.texts.loginError), v(!0), o.value = !1;
8874
- return;
8875
- }
8876
- if (q.status !== 200 || !q.data.success) {
8877
- v(!0), D(p.texts.loginError), console.log(`Unsuccessful load, endpoint gave status ${q.status}`);
8878
- return;
8863
+ try {
8864
+ const q = await Y.post(p.apiEndpoint + "/prompt/load", {
8865
+ username: p.username,
8866
+ project: p.projectPath
8867
+ });
8868
+ if (!q) return console.error("No response from server");
8869
+ if (q.status !== 200 || !q.data.success) {
8870
+ v(!0), D(p.texts.botIsSick), console.log(`Unsuccessful load, endpoint gave status ${q.status}`);
8871
+ return;
8872
+ }
8873
+ _(), q.data.history.forEach((z) => {
8874
+ const M = z.imageUrl ? p.controllerEndpoint + z.imageUrl : void 0;
8875
+ D(
8876
+ z.content,
8877
+ z.type === "ai" ? "bot" : "user",
8878
+ M,
8879
+ z.sessionID
8880
+ );
8881
+ });
8882
+ } catch (q) {
8883
+ v(!0), D(p.texts.botIsSick), console.log("Error loading: " + q);
8879
8884
  }
8880
- _(), q.data.history.forEach((z) => {
8881
- const M = z.imageUrl ? p.controllerEndpoint + z.imageUrl : void 0;
8882
- D(
8883
- z.content,
8884
- z.type === "ai" ? "bot" : "user",
8885
- M,
8886
- z.sessionID
8887
- );
8888
- });
8889
8885
  }
8890
8886
  function D(q, z = "bot", M = null, le, ee) {
8891
8887
  e.value.push({
@@ -8946,35 +8942,37 @@ const m6 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAA
8946
8942
  let M = S();
8947
8943
  const le = (M == null ? void 0 : M.sessionID) || "", ee = new FormData();
8948
8944
  z && ee.append("image", z), ee.append("message", q), ee.append("project", p.projectPath), ee.append("user", p.username), ee.append("sessionID", le), o.value = !0;
8949
- const _e = await Y.post(p.apiEndpoint + "/prompt/submit", ee, {
8950
- headers: {
8951
- "Content-Type": "text/event-stream",
8952
- Accept: "text/event-stream"
8953
- },
8954
- responseType: "stream",
8955
- adapter: "fetch"
8956
- });
8957
- if (!_e.data) {
8958
- D(p.texts.botIsSick), v(!0), o.value = !1;
8959
- return;
8960
- }
8961
- const Re = _e.data.getReader(), Qt = new TextDecoder("utf-8");
8962
- for (; ; ) {
8963
- const { done: B, value: Ae } = await Re.read();
8964
- if (B) break;
8965
- const mt = Qt.decode(Ae, { stream: !0 }).match(/data:\s*({.*?})/g);
8966
- if (mt) {
8967
- for (const ys of mt)
8968
- try {
8969
- const Yt = ys.split("data:")[1].trim(), ws = JSON.parse(Yt);
8970
- M && (M.message += ws.value);
8971
- } catch (Yt) {
8972
- console.error("Error parsing match:", Yt);
8973
- }
8974
- i.value && U();
8945
+ try {
8946
+ const he = await Y.post(p.apiEndpoint + "/prompt/submit", ee, {
8947
+ headers: {
8948
+ "Content-Type": "text/event-stream",
8949
+ Accept: "text/event-stream"
8950
+ },
8951
+ responseType: "stream",
8952
+ adapter: "fetch"
8953
+ });
8954
+ if (!he) return console.error("No response from server");
8955
+ const Re = he.data.getReader(), Qt = new TextDecoder("utf-8");
8956
+ for (; ; ) {
8957
+ const { done: B, value: Ae } = await Re.read();
8958
+ if (B) break;
8959
+ const mt = Qt.decode(Ae, { stream: !0 }).match(/data:\s*({.*?})/g);
8960
+ if (mt) {
8961
+ for (const ys of mt)
8962
+ try {
8963
+ const Yt = ys.split("data:")[1].trim(), ws = JSON.parse(Yt);
8964
+ M && (M.message += ws.value);
8965
+ } catch (Yt) {
8966
+ console.error("Error parsing match:", Yt);
8967
+ }
8968
+ i.value && U();
8969
+ }
8975
8970
  }
8971
+ o.value = !1;
8972
+ } catch (he) {
8973
+ v(!0), D(p.texts.botIsSick), console.log("Error setting chat prompt: " + he);
8974
+ return;
8976
8975
  }
8977
- o.value = !1;
8978
8976
  }
8979
8977
  function C() {
8980
8978
  Y.post(p.apiEndpoint + "/prompt/clear", {
@@ -9013,7 +9011,7 @@ const m6 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAA
9013
9011
  }
9014
9012
  }
9015
9013
  }
9016
- return he(
9014
+ return me(
9017
9015
  () => p.apiEndpoint,
9018
9016
  () => {
9019
9017
  T(), y();
@@ -9021,7 +9019,7 @@ const m6 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAA
9021
9019
  ), (q, z) => (F(), G("div", b6, [
9022
9020
  W("div", v6, [
9023
9021
  W("div", y6, [
9024
- Z(L(ve), {
9022
+ Z(L(ye), {
9025
9023
  title: p.texts.clearChat,
9026
9024
  disabled: s.value,
9027
9025
  borderless: "",
@@ -9072,7 +9070,7 @@ const m6 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAA
9072
9070
  tabindex: "0",
9073
9071
  alt: "Image preview"
9074
9072
  }, null, 8, _6),
9075
- Z(L(ve), {
9073
+ Z(L(ye), {
9076
9074
  class: "q-chatbot__remove-image",
9077
9075
  tabindex: "0",
9078
9076
  flat: "",
@@ -9099,7 +9097,7 @@ const m6 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAA
9099
9097
  ])
9100
9098
  ]),
9101
9099
  W("div", E6, [
9102
- Z(L(ve), {
9100
+ Z(L(ye), {
9103
9101
  title: p.texts.imageUpload,
9104
9102
  class: "q-chatbot__upload",
9105
9103
  disabled: s.value || o.value || f.value,
@@ -9120,7 +9118,7 @@ const m6 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAA
9120
9118
  class: "hidden-input",
9121
9119
  style: { display: "none" }
9122
9120
  }, null, 40, C6),
9123
- Z(L(ve), {
9121
+ Z(L(ye), {
9124
9122
  title: p.texts.sendMessage,
9125
9123
  variant: "bold",
9126
9124
  class: "q-chatbot__send",