minerva-plexus-csd 1.1.52 → 1.1.54
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/minerva-plexus-csd.es.js +247 -241
- package/dist/minerva-plexus-csd.umd.js +18 -18
- package/package.json +1 -1
|
@@ -74,14 +74,14 @@ function Vv() {
|
|
|
74
74
|
Ee.unshift("Warning: " + B), Function.prototype.apply.call(console[A], console, Ee);
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
|
-
var b = !1, h = !1, k = !1,
|
|
78
|
-
|
|
77
|
+
var b = !1, h = !1, k = !1, L = !1, R = !1, O;
|
|
78
|
+
O = Symbol.for("react.module.reference");
|
|
79
79
|
function I(A) {
|
|
80
|
-
return !!(typeof A == "string" || typeof A == "function" || A === a || A === o || R || A === i || A === c || A === d ||
|
|
80
|
+
return !!(typeof A == "string" || typeof A == "function" || A === a || A === o || R || A === i || A === c || A === d || L || A === y || b || h || k || typeof A == "object" && A !== null && (A.$$typeof === p || A.$$typeof === f || A.$$typeof === s || A.$$typeof === l || A.$$typeof === u || // This needs to include all possible module reference object
|
|
81
81
|
// types supported by any Flight configuration anywhere since
|
|
82
82
|
// we don't know which Flight build this will end up being used
|
|
83
83
|
// with.
|
|
84
|
-
A.$$typeof ===
|
|
84
|
+
A.$$typeof === O || A.getModuleId !== void 0));
|
|
85
85
|
}
|
|
86
86
|
function M(A, B, J) {
|
|
87
87
|
var oe = A.displayName;
|
|
@@ -2289,40 +2289,40 @@ const h1 = {
|
|
|
2289
2289
|
service: d,
|
|
2290
2290
|
serviceTicketing: f,
|
|
2291
2291
|
serviceTicketingNoUSer: p
|
|
2292
|
-
} = Sn(), [y, S] = ge(""), [_, T] = ge(!1), [E, m] = ge(!1), [x, b] = ge(null), h = (
|
|
2293
|
-
b(
|
|
2292
|
+
} = Sn(), [y, S] = ge(""), [_, T] = ge(!1), [E, m] = ge(!1), [x, b] = ge(null), h = (O) => {
|
|
2293
|
+
b(O), O.success || setTimeout(() => b(null), 5e3);
|
|
2294
2294
|
}, k = async () => {
|
|
2295
2295
|
if (!y.trim()) return;
|
|
2296
|
-
let
|
|
2297
|
-
if (S(""), T(!0), !
|
|
2296
|
+
let O = l == null ? void 0 : l.id;
|
|
2297
|
+
if (S(""), T(!0), !O) {
|
|
2298
2298
|
const I = e("text.new_conversation");
|
|
2299
2299
|
try {
|
|
2300
|
-
|
|
2300
|
+
O = (await u(
|
|
2301
2301
|
I,
|
|
2302
2302
|
d
|
|
2303
|
-
)).id, c(
|
|
2303
|
+
)).id, c(O, d);
|
|
2304
2304
|
} catch (M) {
|
|
2305
2305
|
console.error("Error creating new conversation:", M), T(!1);
|
|
2306
2306
|
return;
|
|
2307
2307
|
}
|
|
2308
2308
|
}
|
|
2309
|
-
if (
|
|
2309
|
+
if (O)
|
|
2310
2310
|
try {
|
|
2311
|
-
await t(
|
|
2311
|
+
await t(O, y, d), T(!1);
|
|
2312
2312
|
} catch (I) {
|
|
2313
2313
|
console.error("Error sending message:", I), T(!1);
|
|
2314
2314
|
}
|
|
2315
2315
|
else
|
|
2316
2316
|
console.error("No conversation selected or user ID is not available"), T(!1);
|
|
2317
|
-
},
|
|
2318
|
-
|
|
2317
|
+
}, L = (O) => {
|
|
2318
|
+
O.key === "Enter" && !O.shiftKey && (O.preventDefault(), k());
|
|
2319
2319
|
}, R = async () => {
|
|
2320
2320
|
if (!(!(l != null && l.id) || E)) {
|
|
2321
2321
|
m(!0);
|
|
2322
2322
|
try {
|
|
2323
2323
|
await r(l.id) || console.warn("No se pudo detener el streaming correctamente");
|
|
2324
|
-
} catch (
|
|
2325
|
-
console.error("Error al detener el streaming:",
|
|
2324
|
+
} catch (O) {
|
|
2325
|
+
console.error("Error al detener el streaming:", O);
|
|
2326
2326
|
} finally {
|
|
2327
2327
|
m(!1);
|
|
2328
2328
|
}
|
|
@@ -2341,7 +2341,7 @@ const h1 = {
|
|
|
2341
2341
|
handleStopStreaming: R,
|
|
2342
2342
|
handleInput: () => {
|
|
2343
2343
|
},
|
|
2344
|
-
handleKeyPress:
|
|
2344
|
+
handleKeyPress: L,
|
|
2345
2345
|
ticketMessage: x
|
|
2346
2346
|
}
|
|
2347
2347
|
) : /* @__PURE__ */ g.jsx(
|
|
@@ -2476,7 +2476,7 @@ const N1 = ({
|
|
|
2476
2476
|
A1,
|
|
2477
2477
|
{
|
|
2478
2478
|
role: "article",
|
|
2479
|
-
"
|
|
2479
|
+
"aria-label": `${l("text.human_message")}: ${e.content}`,
|
|
2480
2480
|
children: a ? /* @__PURE__ */ g.jsxs(g.Fragment, { children: [
|
|
2481
2481
|
/* @__PURE__ */ g.jsx(
|
|
2482
2482
|
I1,
|
|
@@ -4539,20 +4539,20 @@ function rw(e) {
|
|
|
4539
4539
|
)
|
|
4540
4540
|
return;
|
|
4541
4541
|
const k = t.events.length;
|
|
4542
|
-
let
|
|
4543
|
-
for (;
|
|
4544
|
-
if (t.events[
|
|
4542
|
+
let L = k, R, O;
|
|
4543
|
+
for (; L--; )
|
|
4544
|
+
if (t.events[L][0] === "exit" && t.events[L][1].type === "chunkFlow") {
|
|
4545
4545
|
if (R) {
|
|
4546
|
-
|
|
4546
|
+
O = t.events[L][1].end;
|
|
4547
4547
|
break;
|
|
4548
4548
|
}
|
|
4549
4549
|
R = !0;
|
|
4550
4550
|
}
|
|
4551
4551
|
for (T(r), h = k; h < t.events.length; )
|
|
4552
4552
|
t.events[h][1].end = {
|
|
4553
|
-
...
|
|
4553
|
+
...O
|
|
4554
4554
|
}, h++;
|
|
4555
|
-
vt(t.events,
|
|
4555
|
+
vt(t.events, L + 1, 0, t.events.slice(k)), t.events.length = h;
|
|
4556
4556
|
}
|
|
4557
4557
|
}
|
|
4558
4558
|
function T(m) {
|
|
@@ -4848,23 +4848,23 @@ function mw(e, t, n) {
|
|
|
4848
4848
|
function x(h) {
|
|
4849
4849
|
return e.exit("codeFenced"), t(h);
|
|
4850
4850
|
}
|
|
4851
|
-
function b(h, k,
|
|
4851
|
+
function b(h, k, L) {
|
|
4852
4852
|
let R = 0;
|
|
4853
|
-
return
|
|
4854
|
-
function
|
|
4853
|
+
return O;
|
|
4854
|
+
function O($) {
|
|
4855
4855
|
return h.enter("lineEnding"), h.consume($), h.exit("lineEnding"), I;
|
|
4856
4856
|
}
|
|
4857
4857
|
function I($) {
|
|
4858
4858
|
return h.enter("codeFencedFence"), fe($) ? we(h, M, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)($) : M($);
|
|
4859
4859
|
}
|
|
4860
4860
|
function M($) {
|
|
4861
|
-
return $ === s ? (h.enter("codeFencedFenceSequence"), U($)) :
|
|
4861
|
+
return $ === s ? (h.enter("codeFencedFenceSequence"), U($)) : L($);
|
|
4862
4862
|
}
|
|
4863
4863
|
function U($) {
|
|
4864
|
-
return $ === s ? (R++, h.consume($), U) : R >= o ? (h.exit("codeFencedFenceSequence"), fe($) ? we(h, q, "whitespace")($) : q($)) :
|
|
4864
|
+
return $ === s ? (R++, h.consume($), U) : R >= o ? (h.exit("codeFencedFenceSequence"), fe($) ? we(h, q, "whitespace")($) : q($)) : L($);
|
|
4865
4865
|
}
|
|
4866
4866
|
function q($) {
|
|
4867
|
-
return $ === null || ae($) ? (h.exit("codeFencedFence"), k($)) :
|
|
4867
|
+
return $ === null || ae($) ? (h.exit("codeFencedFence"), k($)) : L($);
|
|
4868
4868
|
}
|
|
4869
4869
|
}
|
|
4870
4870
|
}
|
|
@@ -5542,10 +5542,10 @@ function Hw(e, t, n) {
|
|
|
5542
5542
|
return C === 62 ? (e.consume(C), r.interrupt ? t : M) : n(C);
|
|
5543
5543
|
}
|
|
5544
5544
|
function E(C) {
|
|
5545
|
-
return fe(C) ? (e.consume(C), E) :
|
|
5545
|
+
return fe(C) ? (e.consume(C), E) : O(C);
|
|
5546
5546
|
}
|
|
5547
5547
|
function m(C) {
|
|
5548
|
-
return C === 47 ? (e.consume(C),
|
|
5548
|
+
return C === 47 ? (e.consume(C), O) : C === 58 || C === 95 || bt(C) ? (e.consume(C), x) : fe(C) ? (e.consume(C), m) : O(C);
|
|
5549
5549
|
}
|
|
5550
5550
|
function x(C) {
|
|
5551
5551
|
return C === 45 || C === 46 || C === 58 || C === 95 || Je(C) ? (e.consume(C), x) : b(C);
|
|
@@ -5554,18 +5554,18 @@ function Hw(e, t, n) {
|
|
|
5554
5554
|
return C === 61 ? (e.consume(C), h) : fe(C) ? (e.consume(C), b) : m(C);
|
|
5555
5555
|
}
|
|
5556
5556
|
function h(C) {
|
|
5557
|
-
return C === null || C === 60 || C === 61 || C === 62 || C === 96 ? n(C) : C === 34 || C === 39 ? (e.consume(C), l = C, k) : fe(C) ? (e.consume(C), h) :
|
|
5557
|
+
return C === null || C === 60 || C === 61 || C === 62 || C === 96 ? n(C) : C === 34 || C === 39 ? (e.consume(C), l = C, k) : fe(C) ? (e.consume(C), h) : L(C);
|
|
5558
5558
|
}
|
|
5559
5559
|
function k(C) {
|
|
5560
5560
|
return C === l ? (e.consume(C), l = null, R) : C === null || ae(C) ? n(C) : (e.consume(C), k);
|
|
5561
5561
|
}
|
|
5562
|
-
function
|
|
5563
|
-
return C === null || C === 34 || C === 39 || C === 47 || C === 60 || C === 61 || C === 62 || C === 96 || He(C) ? b(C) : (e.consume(C),
|
|
5562
|
+
function L(C) {
|
|
5563
|
+
return C === null || C === 34 || C === 39 || C === 47 || C === 60 || C === 61 || C === 62 || C === 96 || He(C) ? b(C) : (e.consume(C), L);
|
|
5564
5564
|
}
|
|
5565
5565
|
function R(C) {
|
|
5566
5566
|
return C === 47 || C === 62 || fe(C) ? m(C) : n(C);
|
|
5567
5567
|
}
|
|
5568
|
-
function
|
|
5568
|
+
function O(C) {
|
|
5569
5569
|
return C === 62 ? (e.consume(C), I) : n(C);
|
|
5570
5570
|
}
|
|
5571
5571
|
function I(C) {
|
|
@@ -5637,7 +5637,7 @@ function Kw(e, t, n) {
|
|
|
5637
5637
|
return e.enter("htmlText"), e.enter("htmlTextData"), e.consume(w), l;
|
|
5638
5638
|
}
|
|
5639
5639
|
function l(w) {
|
|
5640
|
-
return w === 33 ? (e.consume(w), u) : w === 47 ? (e.consume(w), b) : w === 63 ? (e.consume(w), m) : bt(w) ? (e.consume(w),
|
|
5640
|
+
return w === 33 ? (e.consume(w), u) : w === 47 ? (e.consume(w), b) : w === 63 ? (e.consume(w), m) : bt(w) ? (e.consume(w), L) : n(w);
|
|
5641
5641
|
}
|
|
5642
5642
|
function u(w) {
|
|
5643
5643
|
return w === 45 ? (e.consume(w), c) : w === 91 ? (e.consume(w), i = 0, y) : bt(w) ? (e.consume(w), E) : n(w);
|
|
@@ -5685,14 +5685,14 @@ function Kw(e, t, n) {
|
|
|
5685
5685
|
function k(w) {
|
|
5686
5686
|
return ae(w) ? (o = k, K(w)) : fe(w) ? (e.consume(w), k) : G(w);
|
|
5687
5687
|
}
|
|
5688
|
-
function
|
|
5689
|
-
return w === 45 || Je(w) ? (e.consume(w),
|
|
5688
|
+
function L(w) {
|
|
5689
|
+
return w === 45 || Je(w) ? (e.consume(w), L) : w === 47 || w === 62 || He(w) ? R(w) : n(w);
|
|
5690
5690
|
}
|
|
5691
5691
|
function R(w) {
|
|
5692
|
-
return w === 47 ? (e.consume(w), G) : w === 58 || w === 95 || bt(w) ? (e.consume(w),
|
|
5692
|
+
return w === 47 ? (e.consume(w), G) : w === 58 || w === 95 || bt(w) ? (e.consume(w), O) : ae(w) ? (o = R, K(w)) : fe(w) ? (e.consume(w), R) : G(w);
|
|
5693
5693
|
}
|
|
5694
|
-
function
|
|
5695
|
-
return w === 45 || w === 46 || w === 58 || w === 95 || Je(w) ? (e.consume(w),
|
|
5694
|
+
function O(w) {
|
|
5695
|
+
return w === 45 || w === 46 || w === 58 || w === 95 || Je(w) ? (e.consume(w), O) : I(w);
|
|
5696
5696
|
}
|
|
5697
5697
|
function I(w) {
|
|
5698
5698
|
return w === 61 ? (e.consume(w), M) : ae(w) ? (o = I, K(w)) : fe(w) ? (e.consume(w), I) : R(w);
|
|
@@ -6276,7 +6276,7 @@ function FC(e, t, n) {
|
|
|
6276
6276
|
let c = t.tokenize.call(u, l);
|
|
6277
6277
|
return t.resolveAll && i.push(t), u;
|
|
6278
6278
|
function d(I) {
|
|
6279
|
-
return o = rt(o, I), _(), o[o.length - 1] !== null ? [] : (
|
|
6279
|
+
return o = rt(o, I), _(), o[o.length - 1] !== null ? [] : (L(t, 0), u.events = Vu(i, u.events, u), u.events);
|
|
6280
6280
|
}
|
|
6281
6281
|
function f(I, M) {
|
|
6282
6282
|
return UC(p(I), M);
|
|
@@ -6301,7 +6301,7 @@ function FC(e, t, n) {
|
|
|
6301
6301
|
};
|
|
6302
6302
|
}
|
|
6303
6303
|
function S(I) {
|
|
6304
|
-
a[I.line] = I.column,
|
|
6304
|
+
a[I.line] = I.column, O();
|
|
6305
6305
|
}
|
|
6306
6306
|
function _() {
|
|
6307
6307
|
let I;
|
|
@@ -6318,7 +6318,7 @@ function FC(e, t, n) {
|
|
|
6318
6318
|
c = c(I);
|
|
6319
6319
|
}
|
|
6320
6320
|
function E(I) {
|
|
6321
|
-
ae(I) ? (r.line++, r.column = 1, r.offset += I === -3 ? 2 : 1,
|
|
6321
|
+
ae(I) ? (r.line++, r.column = 1, r.offset += I === -3 ? 2 : 1, O()) : I !== -1 && (r.column++, r.offset++), r._bufferIndex < 0 ? r._index++ : (r._bufferIndex++, r._bufferIndex === // Points w/ non-negative `_bufferIndex` reference
|
|
6322
6322
|
// strings.
|
|
6323
6323
|
/** @type {string} */
|
|
6324
6324
|
o[r._index].length && (r._bufferIndex = -1, r._index++)), u.previous = I;
|
|
@@ -6332,7 +6332,7 @@ function FC(e, t, n) {
|
|
|
6332
6332
|
return M.end = y(), u.events.push(["exit", M, u]), M;
|
|
6333
6333
|
}
|
|
6334
6334
|
function b(I, M) {
|
|
6335
|
-
|
|
6335
|
+
L(I, M.from);
|
|
6336
6336
|
}
|
|
6337
6337
|
function h(I, M) {
|
|
6338
6338
|
M.restore();
|
|
@@ -6388,7 +6388,7 @@ function FC(e, t, n) {
|
|
|
6388
6388
|
}
|
|
6389
6389
|
}
|
|
6390
6390
|
}
|
|
6391
|
-
function
|
|
6391
|
+
function L(I, M) {
|
|
6392
6392
|
I.resolveAll && !i.includes(I) && i.push(I), I.resolve && vt(u.events, M, u.events.length - M, I.resolve(u.events.slice(M), u)), I.resolveTo && (u.events = I.resolveTo(u.events, u));
|
|
6393
6393
|
}
|
|
6394
6394
|
function R() {
|
|
@@ -6398,10 +6398,10 @@ function FC(e, t, n) {
|
|
|
6398
6398
|
restore: G
|
|
6399
6399
|
};
|
|
6400
6400
|
function G() {
|
|
6401
|
-
r = I, u.previous = M, u.currentConstruct = U, u.events.length = q, s = $,
|
|
6401
|
+
r = I, u.previous = M, u.currentConstruct = U, u.events.length = q, s = $, O();
|
|
6402
6402
|
}
|
|
6403
6403
|
}
|
|
6404
|
-
function
|
|
6404
|
+
function O() {
|
|
6405
6405
|
r.line in a && r.column < 2 && (r.column = a[r.line], r.offset += a[r.line] - 1);
|
|
6406
6406
|
}
|
|
6407
6407
|
}
|
|
@@ -6593,7 +6593,7 @@ function VC(e) {
|
|
|
6593
6593
|
autolinkEmail: te,
|
|
6594
6594
|
autolinkProtocol: ee,
|
|
6595
6595
|
blockQuote: l(),
|
|
6596
|
-
characterEscapeValue:
|
|
6596
|
+
characterEscapeValue: O,
|
|
6597
6597
|
characterReferenceMarkerHexadecimal: Z,
|
|
6598
6598
|
characterReferenceMarkerNumeric: Z,
|
|
6599
6599
|
characterReferenceValue: Y,
|
|
@@ -6602,11 +6602,11 @@ function VC(e) {
|
|
|
6602
6602
|
codeFencedFence: S,
|
|
6603
6603
|
codeFencedFenceInfo: p,
|
|
6604
6604
|
codeFencedFenceMeta: y,
|
|
6605
|
-
codeFlowValue:
|
|
6605
|
+
codeFlowValue: O,
|
|
6606
6606
|
codeIndented: l(T),
|
|
6607
6607
|
codeText: l($),
|
|
6608
|
-
codeTextData:
|
|
6609
|
-
data:
|
|
6608
|
+
codeTextData: O,
|
|
6609
|
+
data: O,
|
|
6610
6610
|
definition: l(),
|
|
6611
6611
|
definitionDestinationString: x,
|
|
6612
6612
|
definitionLabelString: E,
|
|
@@ -6615,9 +6615,9 @@ function VC(e) {
|
|
|
6615
6615
|
hardBreakEscape: l(M),
|
|
6616
6616
|
hardBreakTrailing: l(M),
|
|
6617
6617
|
htmlFlow: l(U),
|
|
6618
|
-
htmlFlowData:
|
|
6618
|
+
htmlFlowData: O,
|
|
6619
6619
|
htmlText: l(q),
|
|
6620
|
-
htmlTextData:
|
|
6620
|
+
htmlTextData: O,
|
|
6621
6621
|
image: l(K),
|
|
6622
6622
|
label: X,
|
|
6623
6623
|
labelText: V,
|
|
@@ -6631,7 +6631,7 @@ function VC(e) {
|
|
|
6631
6631
|
resourceDestinationString: w,
|
|
6632
6632
|
resourceTitleString: N,
|
|
6633
6633
|
resource: P,
|
|
6634
|
-
setextHeading: l(
|
|
6634
|
+
setextHeading: l(L),
|
|
6635
6635
|
setextHeadingLineSequence: k,
|
|
6636
6636
|
setextHeadingText: h,
|
|
6637
6637
|
strong: l(),
|
|
@@ -6832,7 +6832,7 @@ function VC(e) {
|
|
|
6832
6832
|
const z = this.stack[this.stack.length - 1];
|
|
6833
6833
|
z.depth = this.sliceSerialize(F).codePointAt(0) === 61 ? 1 : 2;
|
|
6834
6834
|
}
|
|
6835
|
-
function
|
|
6835
|
+
function L() {
|
|
6836
6836
|
this.data.setextHeadingSlurpLineEnding = void 0;
|
|
6837
6837
|
}
|
|
6838
6838
|
function R(F) {
|
|
@@ -6844,7 +6844,7 @@ function VC(e) {
|
|
|
6844
6844
|
end: void 0
|
|
6845
6845
|
}, re.push(ce)), this.stack.push(ce);
|
|
6846
6846
|
}
|
|
6847
|
-
function
|
|
6847
|
+
function O(F) {
|
|
6848
6848
|
const z = this.stack.pop();
|
|
6849
6849
|
z.value += this.sliceSerialize(F), z.position.end = Nt(F.end);
|
|
6850
6850
|
}
|
|
@@ -6855,7 +6855,7 @@ function VC(e) {
|
|
|
6855
6855
|
re.position.end = Nt(F.end), this.data.atHardBreak = void 0;
|
|
6856
6856
|
return;
|
|
6857
6857
|
}
|
|
6858
|
-
!this.data.setextHeadingSlurpLineEnding && t.canContainEols.includes(z.type) && (R.call(this, F),
|
|
6858
|
+
!this.data.setextHeadingSlurpLineEnding && t.canContainEols.includes(z.type) && (R.call(this, F), O.call(this, F));
|
|
6859
6859
|
}
|
|
6860
6860
|
function M() {
|
|
6861
6861
|
this.data.atHardBreak = !0;
|
|
@@ -6935,12 +6935,12 @@ function VC(e) {
|
|
|
6935
6935
|
z.position.end = Nt(F.end);
|
|
6936
6936
|
}
|
|
6937
6937
|
function ee(F) {
|
|
6938
|
-
|
|
6938
|
+
O.call(this, F);
|
|
6939
6939
|
const z = this.stack[this.stack.length - 1];
|
|
6940
6940
|
z.url = this.sliceSerialize(F);
|
|
6941
6941
|
}
|
|
6942
6942
|
function te(F) {
|
|
6943
|
-
|
|
6943
|
+
O.call(this, F);
|
|
6944
6944
|
const z = this.stack[this.stack.length - 1];
|
|
6945
6945
|
z.url = "mailto:" + this.sliceSerialize(F);
|
|
6946
6946
|
}
|
|
@@ -9600,14 +9600,14 @@ function jx(e, t, n, r, a, i, o, s, l) {
|
|
|
9600
9600
|
return t || k.length > 0 ? y(b, h, k) : S(b, h);
|
|
9601
9601
|
}
|
|
9602
9602
|
for (var T = function() {
|
|
9603
|
-
var h = c[p], k = h.children[0].value,
|
|
9604
|
-
if (
|
|
9603
|
+
var h = c[p], k = h.children[0].value, L = Px(k);
|
|
9604
|
+
if (L) {
|
|
9605
9605
|
var R = k.split(`
|
|
9606
9606
|
`);
|
|
9607
|
-
R.forEach(function(
|
|
9607
|
+
R.forEach(function(O, I) {
|
|
9608
9608
|
var M = r && d.length + i, U = {
|
|
9609
9609
|
type: "text",
|
|
9610
|
-
value: "".concat(
|
|
9610
|
+
value: "".concat(O, `
|
|
9611
9611
|
`)
|
|
9612
9612
|
};
|
|
9613
9613
|
if (I === 0) {
|
|
@@ -9619,7 +9619,7 @@ function jx(e, t, n, r, a, i, o, s, l) {
|
|
|
9619
9619
|
} else if (I === R.length - 1) {
|
|
9620
9620
|
var G = c[p + 1] && c[p + 1].children && c[p + 1].children[0], K = {
|
|
9621
9621
|
type: "text",
|
|
9622
|
-
value: "".concat(
|
|
9622
|
+
value: "".concat(O)
|
|
9623
9623
|
};
|
|
9624
9624
|
if (G) {
|
|
9625
9625
|
var V = pr({
|
|
@@ -9689,7 +9689,7 @@ function Gx(e, t) {
|
|
|
9689
9689
|
var a = r.language, i = r.children, o = r.style, s = o === void 0 ? t : o, l = r.customStyle, u = l === void 0 ? {} : l, c = r.codeTagProps, d = c === void 0 ? {
|
|
9690
9690
|
className: a ? "language-".concat(a) : void 0,
|
|
9691
9691
|
style: Ot(Ot({}, s['code[class*="language-"]']), s['code[class*="language-'.concat(a, '"]')])
|
|
9692
|
-
} : c, f = r.useInlineStyles, p = f === void 0 ? !0 : f, y = r.showLineNumbers, S = y === void 0 ? !1 : y, _ = r.showInlineLineNumbers, T = _ === void 0 ? !0 : _, E = r.startingLineNumber, m = E === void 0 ? 1 : E, x = r.lineNumberContainerStyle, b = r.lineNumberStyle, h = b === void 0 ? {} : b, k = r.wrapLines,
|
|
9692
|
+
} : c, f = r.useInlineStyles, p = f === void 0 ? !0 : f, y = r.showLineNumbers, S = y === void 0 ? !1 : y, _ = r.showInlineLineNumbers, T = _ === void 0 ? !0 : _, E = r.startingLineNumber, m = E === void 0 ? 1 : E, x = r.lineNumberContainerStyle, b = r.lineNumberStyle, h = b === void 0 ? {} : b, k = r.wrapLines, L = r.wrapLongLines, R = L === void 0 ? !1 : L, O = r.lineProps, I = O === void 0 ? {} : O, M = r.renderer, U = r.PreTag, q = U === void 0 ? "pre" : U, $ = r.CodeTag, G = $ === void 0 ? "code" : $, K = r.code, V = K === void 0 ? (Array.isArray(i) ? i[0] : i) || "" : K, X = r.astGenerator, w = Cx(r, Mx);
|
|
9693
9693
|
X = X || e;
|
|
9694
9694
|
var N = S ? /* @__PURE__ */ Te.createElement(Bx, {
|
|
9695
9695
|
containerStyle: x,
|
|
@@ -10585,8 +10585,8 @@ function UR(e, t) {
|
|
|
10585
10585
|
return (n.position.indent || n.position.start) && (n.indent = n.position.indent || [], n.position = n.position.start), BR(e, n);
|
|
10586
10586
|
}
|
|
10587
10587
|
function BR(e, t) {
|
|
10588
|
-
var n = t.additional, r = t.nonTerminated, a = t.text, i = t.reference, o = t.warning, s = t.textContext, l = t.referenceContext, u = t.warningContext, c = t.position, d = t.indent || [], f = e.length, p = 0, y = -1, S = c.column || 1, _ = c.line || 1, T = "", E = [], m, x, b, h, k,
|
|
10589
|
-
for (typeof n == "string" && (n = n.charCodeAt(0)), V = P(),
|
|
10588
|
+
var n = t.additional, r = t.nonTerminated, a = t.text, i = t.reference, o = t.warning, s = t.textContext, l = t.referenceContext, u = t.warningContext, c = t.position, d = t.indent || [], f = e.length, p = 0, y = -1, S = c.column || 1, _ = c.line || 1, T = "", E = [], m, x, b, h, k, L, R, O, I, M, U, q, $, G, K, V, X, w, N;
|
|
10589
|
+
for (typeof n == "string" && (n = n.charCodeAt(0)), V = P(), O = o ? C : AR, p--, f++; ++p < f; )
|
|
10590
10590
|
if (k === ep && (S = d[y] || 1), k = e.charCodeAt(p), k === tp) {
|
|
10591
10591
|
if (R = e.charCodeAt(p + 1), R === RR || R === ep || R === kR || R === IR || R === tp || R === OR || R !== R || n && R === n) {
|
|
10592
10592
|
T += ln(k), S++;
|
|
@@ -10594,9 +10594,9 @@ function BR(e, t) {
|
|
|
10594
10594
|
}
|
|
10595
10595
|
for ($ = p + 1, q = $, N = $, R === DR ? (N = ++q, R = e.charCodeAt(N), R === MR || R === FR ? (G = oc, N = ++q) : G = sc) : G = cn, m = "", U = "", h = "", K = xr[G], N--; ++N < f && (R = e.charCodeAt(N), !!K(R)); )
|
|
10596
10596
|
h += ln(R), G === cn && _R.call(Xd, h) && (m = h, U = Xd[h]);
|
|
10597
|
-
b = e.charCodeAt(N) === NR, b && (N++, x = G === cn ? TR(h) : !1, x && (m = h, U = x)), w = 1 + N - $, !b && !r || (h ? G === cn ? (b && !U ?
|
|
10597
|
+
b = e.charCodeAt(N) === NR, b && (N++, x = G === cn ? TR(h) : !1, x && (m = h, U = x)), w = 1 + N - $, !b && !r || (h ? G === cn ? (b && !U ? O(mE, 1) : (m !== h && (N = q + m.length, w = 1 + N - q, b = !1), b || (I = m ? dE : fE, t.attribute ? (R = e.charCodeAt(N), R === LR ? (O(I, w), U = null) : cE(R) ? U = null : O(I, w)) : O(I, w))), L = U) : (b || O(pE, w), L = parseInt(h, lc[G]), $R(L) ? (O(hE, w), L = ln(PR)) : L in Jd ? (O(Au, w), L = Jd[L]) : (M = "", jR(L) && O(Au, w), L > 65535 && (L -= 65536, M += ln(L >>> 10 | 55296), L = 56320 | L & 1023), L = M + ln(L))) : G !== cn && O(gE, w)), L ? (W(), V = P(), p = N - 1, S += N - $ + 1, E.push(L), X = P(), X.offset++, i && i.call(
|
|
10598
10598
|
l,
|
|
10599
|
-
|
|
10599
|
+
L,
|
|
10600
10600
|
{ start: V, end: X },
|
|
10601
10601
|
e.slice($ - 1, N)
|
|
10602
10602
|
), V = X) : (h = e.slice($ - 1, N), T += h, S += h.length, p = N - 1);
|
|
@@ -10750,8 +10750,8 @@ var bE = { exports: {} };
|
|
|
10750
10750
|
case "Array":
|
|
10751
10751
|
return h = s.util.objId(m), x[h] ? x[h] : (b = [], x[h] = b, /** @type {Array} */
|
|
10752
10752
|
/** @type {any} */
|
|
10753
|
-
m.forEach(function(
|
|
10754
|
-
b[R] = E(
|
|
10753
|
+
m.forEach(function(L, R) {
|
|
10754
|
+
b[R] = E(L, x);
|
|
10755
10755
|
}), /** @type {any} */
|
|
10756
10756
|
b);
|
|
10757
10757
|
default:
|
|
@@ -10972,27 +10972,27 @@ var bE = { exports: {} };
|
|
|
10972
10972
|
b = b || /** @type {any} */
|
|
10973
10973
|
s.languages;
|
|
10974
10974
|
var h = b[E], k = {};
|
|
10975
|
-
for (var
|
|
10976
|
-
if (h.hasOwnProperty(
|
|
10977
|
-
if (
|
|
10975
|
+
for (var L in h)
|
|
10976
|
+
if (h.hasOwnProperty(L)) {
|
|
10977
|
+
if (L == m)
|
|
10978
10978
|
for (var R in x)
|
|
10979
10979
|
x.hasOwnProperty(R) && (k[R] = x[R]);
|
|
10980
|
-
x.hasOwnProperty(
|
|
10980
|
+
x.hasOwnProperty(L) || (k[L] = h[L]);
|
|
10981
10981
|
}
|
|
10982
|
-
var
|
|
10982
|
+
var O = b[E];
|
|
10983
10983
|
return b[E] = k, s.languages.DFS(s.languages, function(I, M) {
|
|
10984
|
-
M ===
|
|
10984
|
+
M === O && I != E && (this[I] = k);
|
|
10985
10985
|
}), k;
|
|
10986
10986
|
},
|
|
10987
10987
|
// Traverse a language definition with Depth First Search
|
|
10988
10988
|
DFS: function E(m, x, b, h) {
|
|
10989
10989
|
h = h || {};
|
|
10990
10990
|
var k = s.util.objId;
|
|
10991
|
-
for (var
|
|
10992
|
-
if (m.hasOwnProperty(
|
|
10993
|
-
x.call(m,
|
|
10994
|
-
var R = m[
|
|
10995
|
-
|
|
10991
|
+
for (var L in m)
|
|
10992
|
+
if (m.hasOwnProperty(L)) {
|
|
10993
|
+
x.call(m, L, m[L], b || L);
|
|
10994
|
+
var R = m[L], O = s.util.type(R);
|
|
10995
|
+
O === "Object" && !h[k(R)] ? (h[k(R)] = !0, E(R, x, null, h)) : O === "Array" && !h[k(R)] && (h[k(R)] = !0, E(R, x, L, h));
|
|
10996
10996
|
}
|
|
10997
10997
|
}
|
|
10998
10998
|
},
|
|
@@ -11070,13 +11070,13 @@ var bE = { exports: {} };
|
|
|
11070
11070
|
s.util.setLanguage(E, b);
|
|
11071
11071
|
var k = E.parentElement;
|
|
11072
11072
|
k && k.nodeName.toLowerCase() === "pre" && s.util.setLanguage(k, b);
|
|
11073
|
-
var
|
|
11073
|
+
var L = E.textContent, R = {
|
|
11074
11074
|
element: E,
|
|
11075
11075
|
language: b,
|
|
11076
11076
|
grammar: h,
|
|
11077
|
-
code:
|
|
11077
|
+
code: L
|
|
11078
11078
|
};
|
|
11079
|
-
function
|
|
11079
|
+
function O(M) {
|
|
11080
11080
|
R.highlightedCode = M, s.hooks.run("before-insert", R), R.element.innerHTML = R.highlightedCode, s.hooks.run("after-highlight", R), s.hooks.run("complete", R), x && x.call(R.element);
|
|
11081
11081
|
}
|
|
11082
11082
|
if (s.hooks.run("before-sanity-check", R), k = R.element.parentElement, k && k.nodeName.toLowerCase() === "pre" && !k.hasAttribute("tabindex") && k.setAttribute("tabindex", "0"), !R.code) {
|
|
@@ -11084,20 +11084,20 @@ var bE = { exports: {} };
|
|
|
11084
11084
|
return;
|
|
11085
11085
|
}
|
|
11086
11086
|
if (s.hooks.run("before-highlight", R), !R.grammar) {
|
|
11087
|
-
|
|
11087
|
+
O(s.util.encode(R.code));
|
|
11088
11088
|
return;
|
|
11089
11089
|
}
|
|
11090
11090
|
if (m && r.Worker) {
|
|
11091
11091
|
var I = new Worker(s.filename);
|
|
11092
11092
|
I.onmessage = function(M) {
|
|
11093
|
-
|
|
11093
|
+
O(M.data);
|
|
11094
11094
|
}, I.postMessage(JSON.stringify({
|
|
11095
11095
|
language: R.language,
|
|
11096
11096
|
code: R.code,
|
|
11097
11097
|
immediateClose: !0
|
|
11098
11098
|
}));
|
|
11099
11099
|
} else
|
|
11100
|
-
|
|
11100
|
+
O(s.highlight(R.code, R.grammar, R.language));
|
|
11101
11101
|
},
|
|
11102
11102
|
/**
|
|
11103
11103
|
* Low-level function, only use if you know what you’re doing. It accepts a string of text as input
|
|
@@ -11213,8 +11213,8 @@ var bE = { exports: {} };
|
|
|
11213
11213
|
return m;
|
|
11214
11214
|
if (Array.isArray(m)) {
|
|
11215
11215
|
var b = "";
|
|
11216
|
-
return m.forEach(function(
|
|
11217
|
-
b += E(
|
|
11216
|
+
return m.forEach(function(O) {
|
|
11217
|
+
b += E(O, x);
|
|
11218
11218
|
}), b;
|
|
11219
11219
|
}
|
|
11220
11220
|
var h = {
|
|
@@ -11226,10 +11226,10 @@ var bE = { exports: {} };
|
|
|
11226
11226
|
language: x
|
|
11227
11227
|
}, k = m.alias;
|
|
11228
11228
|
k && (Array.isArray(k) ? Array.prototype.push.apply(h.classes, k) : h.classes.push(k)), s.hooks.run("wrap", h);
|
|
11229
|
-
var
|
|
11229
|
+
var L = "";
|
|
11230
11230
|
for (var R in h.attributes)
|
|
11231
|
-
|
|
11232
|
-
return "<" + h.tag + ' class="' + h.classes.join(" ") + '"' +
|
|
11231
|
+
L += " " + R + '="' + (h.attributes[R] || "").replace(/"/g, """) + '"';
|
|
11232
|
+
return "<" + h.tag + ' class="' + h.classes.join(" ") + '"' + L + ">" + h.content + "</" + h.tag + ">";
|
|
11233
11233
|
};
|
|
11234
11234
|
function u(E, m, x, b) {
|
|
11235
11235
|
E.lastIndex = m;
|
|
@@ -11241,14 +11241,14 @@ var bE = { exports: {} };
|
|
|
11241
11241
|
return h;
|
|
11242
11242
|
}
|
|
11243
11243
|
function c(E, m, x, b, h, k) {
|
|
11244
|
-
for (var
|
|
11245
|
-
if (!(!x.hasOwnProperty(
|
|
11246
|
-
var R = x[
|
|
11244
|
+
for (var L in x)
|
|
11245
|
+
if (!(!x.hasOwnProperty(L) || !x[L])) {
|
|
11246
|
+
var R = x[L];
|
|
11247
11247
|
R = Array.isArray(R) ? R : [R];
|
|
11248
|
-
for (var
|
|
11249
|
-
if (k && k.cause ==
|
|
11248
|
+
for (var O = 0; O < R.length; ++O) {
|
|
11249
|
+
if (k && k.cause == L + "," + O)
|
|
11250
11250
|
return;
|
|
11251
|
-
var I = R[
|
|
11251
|
+
var I = R[O], M = I.inside, U = !!I.lookbehind, q = !!I.greedy, $ = I.alias;
|
|
11252
11252
|
if (q && !I.pattern.global) {
|
|
11253
11253
|
var G = I.pattern.toString().match(/[imsuy]*$/)[0];
|
|
11254
11254
|
I.pattern = RegExp(I.pattern.source, G + "g");
|
|
@@ -11276,10 +11276,10 @@ var bE = { exports: {} };
|
|
|
11276
11276
|
k && ie > k.reach && (k.reach = ie);
|
|
11277
11277
|
var ne = V.prev;
|
|
11278
11278
|
ee && (ne = f(m, ne, ee), X += ee.length), p(m, ne, N);
|
|
11279
|
-
var _e = new l(
|
|
11279
|
+
var _e = new l(L, M ? s.tokenize(Q, M) : Q, $, Q);
|
|
11280
11280
|
if (V = f(m, ne, _e), te && f(m, V, te), N > 1) {
|
|
11281
11281
|
var H = {
|
|
11282
|
-
cause:
|
|
11282
|
+
cause: L + "," + O,
|
|
11283
11283
|
reach: ie
|
|
11284
11284
|
};
|
|
11285
11285
|
c(E, m, x, V.prev, X, H), k && H.reach > k.reach && (k.reach = H.reach);
|
|
@@ -13192,7 +13192,7 @@ function _r() {
|
|
|
13192
13192
|
), h = {
|
|
13193
13193
|
keyword: u,
|
|
13194
13194
|
punctuation: /[<>()?,.:[\]]/
|
|
13195
|
-
}, k = /'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,
|
|
13195
|
+
}, k = /'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source, L = /"(?:\\.|[^\\"\r\n])*"/.source, R = /@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;
|
|
13196
13196
|
n.languages.csharp = n.languages.extend("clike", {
|
|
13197
13197
|
string: [
|
|
13198
13198
|
{
|
|
@@ -13201,7 +13201,7 @@ function _r() {
|
|
|
13201
13201
|
greedy: !0
|
|
13202
13202
|
},
|
|
13203
13203
|
{
|
|
13204
|
-
pattern: a(/(^|[^@$\\])<<0>>/.source, [
|
|
13204
|
+
pattern: a(/(^|[^@$\\])<<0>>/.source, [L]),
|
|
13205
13205
|
lookbehind: !0,
|
|
13206
13206
|
greedy: !0
|
|
13207
13207
|
}
|
|
@@ -13402,9 +13402,9 @@ function _r() {
|
|
|
13402
13402
|
}
|
|
13403
13403
|
}
|
|
13404
13404
|
});
|
|
13405
|
-
var
|
|
13405
|
+
var O = L + "|" + k, I = r(
|
|
13406
13406
|
/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,
|
|
13407
|
-
[
|
|
13407
|
+
[O]
|
|
13408
13408
|
), M = i(
|
|
13409
13409
|
r(/[^"'/()]|<<0>>|\(<<self>>*\)/.source, [
|
|
13410
13410
|
I
|
|
@@ -13454,7 +13454,7 @@ function _r() {
|
|
|
13454
13454
|
]), V = i(
|
|
13455
13455
|
r(
|
|
13456
13456
|
/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source,
|
|
13457
|
-
[
|
|
13457
|
+
[O]
|
|
13458
13458
|
),
|
|
13459
13459
|
2
|
|
13460
13460
|
), X = r(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source, [
|
|
@@ -20641,18 +20641,18 @@ function mN() {
|
|
|
20641
20641
|
}), m = 0, x = {}, b = E.map(function(R) {
|
|
20642
20642
|
if (typeof R == "string")
|
|
20643
20643
|
return R;
|
|
20644
|
-
for (var
|
|
20644
|
+
for (var O = R.content, I; S.indexOf(
|
|
20645
20645
|
I = u(m++, T)
|
|
20646
20646
|
) !== -1; )
|
|
20647
20647
|
;
|
|
20648
|
-
return x[I] =
|
|
20648
|
+
return x[I] = O, I;
|
|
20649
20649
|
}).join(""), h = c(b, _, T), k = Object.keys(x);
|
|
20650
20650
|
m = 0;
|
|
20651
|
-
function
|
|
20652
|
-
for (var
|
|
20651
|
+
function L(R) {
|
|
20652
|
+
for (var O = 0; O < R.length; O++) {
|
|
20653
20653
|
if (m >= k.length)
|
|
20654
20654
|
return;
|
|
20655
|
-
var I = R[
|
|
20655
|
+
var I = R[O];
|
|
20656
20656
|
if (typeof I == "string" || typeof I.content == "string") {
|
|
20657
20657
|
var M = k[m], U = typeof I == "string" ? I : (
|
|
20658
20658
|
/** @type {string} */
|
|
@@ -20665,17 +20665,17 @@ function mN() {
|
|
|
20665
20665
|
), K = U.substring(q + M.length), V = [];
|
|
20666
20666
|
if ($ && V.push($), V.push(G), K) {
|
|
20667
20667
|
var X = [K];
|
|
20668
|
-
|
|
20668
|
+
L(X), V.push.apply(V, X);
|
|
20669
20669
|
}
|
|
20670
|
-
typeof I == "string" ? (R.splice.apply(R, [
|
|
20670
|
+
typeof I == "string" ? (R.splice.apply(R, [O, 1].concat(V)), O += V.length - 1) : I.content = V;
|
|
20671
20671
|
}
|
|
20672
20672
|
} else {
|
|
20673
20673
|
var w = I.content;
|
|
20674
|
-
Array.isArray(w) ?
|
|
20674
|
+
Array.isArray(w) ? L(w) : L([w]);
|
|
20675
20675
|
}
|
|
20676
20676
|
}
|
|
20677
20677
|
}
|
|
20678
|
-
return
|
|
20678
|
+
return L(h), new n.Token(
|
|
20679
20679
|
T,
|
|
20680
20680
|
h,
|
|
20681
20681
|
"language-" + T,
|
|
@@ -20705,10 +20705,10 @@ function mN() {
|
|
|
20705
20705
|
if (x.type === "template-string") {
|
|
20706
20706
|
var h = b[1];
|
|
20707
20707
|
if (b.length === 3 && typeof h != "string" && h.type === "embedded-code") {
|
|
20708
|
-
var k = y(h),
|
|
20709
|
-
if (!
|
|
20708
|
+
var k = y(h), L = h.alias, R = Array.isArray(L) ? L[0] : L, O = n.languages[R];
|
|
20709
|
+
if (!O)
|
|
20710
20710
|
continue;
|
|
20711
|
-
b[1] = f(k,
|
|
20711
|
+
b[1] = f(k, O, R);
|
|
20712
20712
|
}
|
|
20713
20713
|
} else
|
|
20714
20714
|
_(b);
|
|
@@ -31786,51 +31786,58 @@ const a4 = D.div`
|
|
|
31786
31786
|
e.id === (p == null ? void 0 : p.id) && e.content.length > 1 && u && d(!1);
|
|
31787
31787
|
}, [e.content, p, u, e.id]);
|
|
31788
31788
|
const S = g4(e.content);
|
|
31789
|
-
return /* @__PURE__ */ g.jsx(
|
|
31790
|
-
|
|
31789
|
+
return /* @__PURE__ */ g.jsx(
|
|
31790
|
+
t4,
|
|
31791
31791
|
{
|
|
31792
|
-
role: "
|
|
31793
|
-
"aria-
|
|
31794
|
-
"
|
|
31795
|
-
|
|
31796
|
-
}
|
|
31797
|
-
) : /* @__PURE__ */ g.jsx(g.Fragment, { children: /* @__PURE__ */ g.jsxs("div", { "aria-live": "off", children: [
|
|
31798
|
-
S.map(
|
|
31799
|
-
(_, T) => _.type === "code" ? /* @__PURE__ */ g.jsx(
|
|
31800
|
-
h4,
|
|
31801
|
-
{
|
|
31802
|
-
code: m4(_.content)
|
|
31803
|
-
},
|
|
31804
|
-
Hy()
|
|
31805
|
-
) : /* @__PURE__ */ g.jsx(r4, { children: /* @__PURE__ */ g.jsx(
|
|
31806
|
-
fx,
|
|
31792
|
+
role: "article",
|
|
31793
|
+
"aria-label": `${f("text.bot_message")}: ${e.content}`,
|
|
31794
|
+
children: /* @__PURE__ */ g.jsx(n4, { children: /* @__PURE__ */ g.jsx("div", { style: { width: "100%" }, children: e.content === "__CUSTOM_SUPPORT_MESSAGE__" ? /* @__PURE__ */ g.jsx(QO, {}) : y ? /* @__PURE__ */ g.jsx(
|
|
31795
|
+
"div",
|
|
31807
31796
|
{
|
|
31808
|
-
|
|
31809
|
-
|
|
31810
|
-
|
|
31811
|
-
|
|
31812
|
-
|
|
31813
|
-
|
|
31814
|
-
|
|
31815
|
-
|
|
31816
|
-
|
|
31817
|
-
|
|
31818
|
-
|
|
31819
|
-
|
|
31820
|
-
|
|
31821
|
-
|
|
31822
|
-
|
|
31823
|
-
|
|
31824
|
-
|
|
31825
|
-
|
|
31826
|
-
|
|
31827
|
-
|
|
31828
|
-
|
|
31829
|
-
|
|
31830
|
-
|
|
31831
|
-
|
|
31832
|
-
|
|
31833
|
-
|
|
31797
|
+
role: "status",
|
|
31798
|
+
"aria-live": "polite",
|
|
31799
|
+
"aria-label": f("text.bot_typing"),
|
|
31800
|
+
children: f("text.bot_typing")
|
|
31801
|
+
}
|
|
31802
|
+
) : /* @__PURE__ */ g.jsx(g.Fragment, { children: /* @__PURE__ */ g.jsxs("div", { children: [
|
|
31803
|
+
S.map(
|
|
31804
|
+
(_, T) => _.type === "code" ? /* @__PURE__ */ g.jsx(
|
|
31805
|
+
h4,
|
|
31806
|
+
{
|
|
31807
|
+
code: m4(_.content)
|
|
31808
|
+
},
|
|
31809
|
+
Hy()
|
|
31810
|
+
) : /* @__PURE__ */ g.jsx(r4, { children: /* @__PURE__ */ g.jsx(
|
|
31811
|
+
fx,
|
|
31812
|
+
{
|
|
31813
|
+
components: {
|
|
31814
|
+
h1: s4,
|
|
31815
|
+
h2: l4,
|
|
31816
|
+
h3: u4,
|
|
31817
|
+
h4: c4,
|
|
31818
|
+
h5: d4,
|
|
31819
|
+
h6: p4,
|
|
31820
|
+
p: f4
|
|
31821
|
+
},
|
|
31822
|
+
children: _.content
|
|
31823
|
+
}
|
|
31824
|
+
) }, T)
|
|
31825
|
+
),
|
|
31826
|
+
e.created_at && /* @__PURE__ */ g.jsx(
|
|
31827
|
+
"div",
|
|
31828
|
+
{
|
|
31829
|
+
style: {
|
|
31830
|
+
fontSize: "12px",
|
|
31831
|
+
color: "#363D47",
|
|
31832
|
+
marginTop: "5px"
|
|
31833
|
+
},
|
|
31834
|
+
"aria-hidden": "true",
|
|
31835
|
+
children: ly(e.created_at)
|
|
31836
|
+
}
|
|
31837
|
+
)
|
|
31838
|
+
] }) }) }) })
|
|
31839
|
+
}
|
|
31840
|
+
);
|
|
31834
31841
|
}, y4 = {
|
|
31835
31842
|
login: "Iniciar Sesión",
|
|
31836
31843
|
error: "Error",
|
|
@@ -32509,11 +32516,10 @@ const bL = (e) => {
|
|
|
32509
32516
|
n && /* @__PURE__ */ g.jsx(SL, { "aria-hidden": "true", children: bL(s.created_at) }),
|
|
32510
32517
|
l.length === 0 ? /* @__PURE__ */ g.jsx(wL, { role: "status", children: o("text.welcome_text") }) : l.map((x, b) => {
|
|
32511
32518
|
console.log("Renderizando mensaje:", x);
|
|
32512
|
-
const h = d === x.id,
|
|
32513
|
-
return /* @__PURE__ */ g.jsx(
|
|
32519
|
+
const h = d === x.id, k = b === l.length - 1;
|
|
32520
|
+
return console.log("isLastMessage: ", k), k && (x.sender_type === "ai" && !c || x.sender_type), /* @__PURE__ */ g.jsx(
|
|
32514
32521
|
"div",
|
|
32515
32522
|
{
|
|
32516
|
-
"aria-live": O ? "polite" : "off",
|
|
32517
32523
|
children: x.sender_type === "user" ? /* @__PURE__ */ g.jsx(
|
|
32518
32524
|
N1,
|
|
32519
32525
|
{
|
|
@@ -32799,7 +32805,7 @@ function FL() {
|
|
|
32799
32805
|
}
|
|
32800
32806
|
}
|
|
32801
32807
|
}
|
|
32802
|
-
var h = u, k = c,
|
|
32808
|
+
var h = u, k = c, L = l, R = s, O = n, I = d, M = a, U = S, q = y, $ = r, G = o, K = i, V = f, X = !1;
|
|
32803
32809
|
function w(H) {
|
|
32804
32810
|
return X || (X = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), N(H) || b(H) === u;
|
|
32805
32811
|
}
|
|
@@ -32839,7 +32845,7 @@ function FL() {
|
|
|
32839
32845
|
function _e(H) {
|
|
32840
32846
|
return b(H) === f;
|
|
32841
32847
|
}
|
|
32842
|
-
ye.AsyncMode = h, ye.ConcurrentMode = k, ye.ContextConsumer =
|
|
32848
|
+
ye.AsyncMode = h, ye.ConcurrentMode = k, ye.ContextConsumer = L, ye.ContextProvider = R, ye.Element = O, ye.ForwardRef = I, ye.Fragment = M, ye.Lazy = U, ye.Memo = q, ye.Portal = $, ye.Profiler = G, ye.StrictMode = K, ye.Suspense = V, ye.isAsyncMode = w, ye.isConcurrentMode = N, ye.isContextConsumer = P, ye.isContextProvider = C, ye.isElement = W, ye.isForwardRef = Z, ye.isFragment = Y, ye.isLazy = Q, ye.isMemo = ee, ye.isPortal = te, ye.isProfiler = ie, ye.isStrictMode = ne, ye.isSuspense = _e, ye.isValidElementType = x, ye.typeOf = b;
|
|
32843
32849
|
}(), ye;
|
|
32844
32850
|
}
|
|
32845
32851
|
var cb;
|
|
@@ -33000,8 +33006,8 @@ function BL() {
|
|
|
33000
33006
|
instanceOf: k,
|
|
33001
33007
|
node: I(),
|
|
33002
33008
|
objectOf: R,
|
|
33003
|
-
oneOf:
|
|
33004
|
-
oneOfType:
|
|
33009
|
+
oneOf: L,
|
|
33010
|
+
oneOfType: O,
|
|
33005
33011
|
shape: U,
|
|
33006
33012
|
exact: q
|
|
33007
33013
|
};
|
|
@@ -33102,7 +33108,7 @@ function BL() {
|
|
|
33102
33108
|
}
|
|
33103
33109
|
return T(P);
|
|
33104
33110
|
}
|
|
33105
|
-
function
|
|
33111
|
+
function L(N) {
|
|
33106
33112
|
if (!Array.isArray(N))
|
|
33107
33113
|
return e.NODE_ENV !== "production" && (arguments.length > 1 ? o(
|
|
33108
33114
|
"Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
|
|
@@ -33136,7 +33142,7 @@ function BL() {
|
|
|
33136
33142
|
}
|
|
33137
33143
|
return T(P);
|
|
33138
33144
|
}
|
|
33139
|
-
function
|
|
33145
|
+
function O(N) {
|
|
33140
33146
|
if (!Array.isArray(N))
|
|
33141
33147
|
return e.NODE_ENV !== "production" && o("Invalid argument supplied to oneOfType, expected an instance of array."), s;
|
|
33142
33148
|
for (var P = 0; P < N.length; P++) {
|
|
@@ -34187,8 +34193,8 @@ var k3 = function(t, n) {
|
|
|
34187
34193
|
function I3(e) {
|
|
34188
34194
|
var t, n = e.state, r = e.name, a = e.options, i = n.elements.arrow, o = n.modifiersData.popperOffsets, s = yt(n.placement), l = Rc(s), u = [We, st].indexOf(s) >= 0, c = u ? "height" : "width";
|
|
34189
34195
|
if (!(!i || !o)) {
|
|
34190
|
-
var d = k3(a.padding, n), f = Ac(i), p = l === "y" ? Ve : We, y = l === "y" ? ot : st, S = n.rects.reference[c] + n.rects.reference[l] - o[l] - n.rects.popper[c], _ = o[l] - n.rects.reference[l], T = Xn(i), E = T ? l === "y" ? T.clientHeight || 0 : T.clientWidth || 0 : 0, m = S / 2 - _ / 2, x = d[p], b = E - f[c] - d[y], h = E / 2 - f[c] / 2 + m, k = Un(x, h, b),
|
|
34191
|
-
n.modifiersData[r] = (t = {}, t[
|
|
34196
|
+
var d = k3(a.padding, n), f = Ac(i), p = l === "y" ? Ve : We, y = l === "y" ? ot : st, S = n.rects.reference[c] + n.rects.reference[l] - o[l] - n.rects.popper[c], _ = o[l] - n.rects.reference[l], T = Xn(i), E = T ? l === "y" ? T.clientHeight || 0 : T.clientWidth || 0 : 0, m = S / 2 - _ / 2, x = d[p], b = E - f[c] - d[y], h = E / 2 - f[c] / 2 + m, k = Un(x, h, b), L = l;
|
|
34197
|
+
n.modifiersData[r] = (t = {}, t[L] = k, t.centerOffset = k - h, t);
|
|
34192
34198
|
}
|
|
34193
34199
|
}
|
|
34194
34200
|
function N3(e) {
|
|
@@ -34231,8 +34237,8 @@ function Tb(e) {
|
|
|
34231
34237
|
p = _.x, S = _.y;
|
|
34232
34238
|
var T = o.hasOwnProperty("x"), E = o.hasOwnProperty("y"), m = We, x = Ve, b = window;
|
|
34233
34239
|
if (u) {
|
|
34234
|
-
var h = Xn(n), k = "clientHeight",
|
|
34235
|
-
if (h === Qe(n) && (h = Ut(n), At(h).position !== "static" && s === "absolute" && (k = "scrollHeight",
|
|
34240
|
+
var h = Xn(n), k = "clientHeight", L = "clientWidth";
|
|
34241
|
+
if (h === Qe(n) && (h = Ut(n), At(h).position !== "static" && s === "absolute" && (k = "scrollHeight", L = "scrollWidth")), h = h, a === Ve || (a === We || a === st) && i === qn) {
|
|
34236
34242
|
x = ot;
|
|
34237
34243
|
var R = d && h === b && b.visualViewport ? b.visualViewport.height : (
|
|
34238
34244
|
// $FlowFixMe[prop-missing]
|
|
@@ -34242,11 +34248,11 @@ function Tb(e) {
|
|
|
34242
34248
|
}
|
|
34243
34249
|
if (a === We || (a === Ve || a === ot) && i === qn) {
|
|
34244
34250
|
m = st;
|
|
34245
|
-
var
|
|
34251
|
+
var O = d && h === b && b.visualViewport ? b.visualViewport.width : (
|
|
34246
34252
|
// $FlowFixMe[prop-missing]
|
|
34247
|
-
h[
|
|
34253
|
+
h[L]
|
|
34248
34254
|
);
|
|
34249
|
-
p -=
|
|
34255
|
+
p -= O - r.width, p *= l ? 1 : -1;
|
|
34250
34256
|
}
|
|
34251
34257
|
}
|
|
34252
34258
|
var I = Object.assign({
|
|
@@ -34466,7 +34472,7 @@ function zn(e, t) {
|
|
|
34466
34472
|
reference: h,
|
|
34467
34473
|
element: m,
|
|
34468
34474
|
placement: a
|
|
34469
|
-
}),
|
|
34475
|
+
}), L = Du(Object.assign({}, m, k)), R = f === In ? L : h, O = {
|
|
34470
34476
|
top: b.top - R.top + T.top,
|
|
34471
34477
|
bottom: R.bottom - b.bottom + T.bottom,
|
|
34472
34478
|
left: b.left - R.left + T.left,
|
|
@@ -34474,12 +34480,12 @@ function zn(e, t) {
|
|
|
34474
34480
|
}, I = e.modifiersData.offset;
|
|
34475
34481
|
if (f === In && I) {
|
|
34476
34482
|
var M = I[a];
|
|
34477
|
-
Object.keys(
|
|
34483
|
+
Object.keys(O).forEach(function(U) {
|
|
34478
34484
|
var q = [st, ot].indexOf(U) >= 0 ? 1 : -1, $ = [Ve, ot].indexOf(U) >= 0 ? "y" : "x";
|
|
34479
|
-
|
|
34485
|
+
O[U] += M[$] * q;
|
|
34480
34486
|
});
|
|
34481
34487
|
}
|
|
34482
|
-
return
|
|
34488
|
+
return O;
|
|
34483
34489
|
}
|
|
34484
34490
|
function V3(e, t) {
|
|
34485
34491
|
t === void 0 && (t = {});
|
|
@@ -34519,8 +34525,8 @@ function Y3(e) {
|
|
|
34519
34525
|
flipVariations: y,
|
|
34520
34526
|
allowedAutoPlacements: S
|
|
34521
34527
|
}) : Z);
|
|
34522
|
-
}, []), b = t.rects.reference, h = t.rects.popper, k = /* @__PURE__ */ new Map(),
|
|
34523
|
-
var I = x[
|
|
34528
|
+
}, []), b = t.rects.reference, h = t.rects.popper, k = /* @__PURE__ */ new Map(), L = !0, R = x[0], O = 0; O < x.length; O++) {
|
|
34529
|
+
var I = x[O], M = yt(I), U = En(I) === hn, q = [Ve, ot].indexOf(M) >= 0, $ = q ? "width" : "height", G = zn(t, {
|
|
34524
34530
|
placement: I,
|
|
34525
34531
|
boundary: c,
|
|
34526
34532
|
rootBoundary: d,
|
|
@@ -34532,12 +34538,12 @@ function Y3(e) {
|
|
|
34532
34538
|
if (i && X.push(G[M] <= 0), s && X.push(G[K] <= 0, G[V] <= 0), X.every(function(W) {
|
|
34533
34539
|
return W;
|
|
34534
34540
|
})) {
|
|
34535
|
-
R = I,
|
|
34541
|
+
R = I, L = !1;
|
|
34536
34542
|
break;
|
|
34537
34543
|
}
|
|
34538
34544
|
k.set(I, X);
|
|
34539
34545
|
}
|
|
34540
|
-
if (
|
|
34546
|
+
if (L)
|
|
34541
34547
|
for (var w = y ? 3 : 1, N = function(Z) {
|
|
34542
34548
|
var Y = x.find(function(Q) {
|
|
34543
34549
|
var ee = k.get(Q);
|
|
@@ -34653,9 +34659,9 @@ function a6(e) {
|
|
|
34653
34659
|
rootBoundary: u,
|
|
34654
34660
|
padding: d,
|
|
34655
34661
|
altBoundary: c
|
|
34656
|
-
}), T = yt(t.placement), E = En(t.placement), m = !E, x = Rc(T), b = r6(x), h = t.modifiersData.popperOffsets, k = t.rects.reference,
|
|
34662
|
+
}), T = yt(t.placement), E = En(t.placement), m = !E, x = Rc(T), b = r6(x), h = t.modifiersData.popperOffsets, k = t.rects.reference, L = t.rects.popper, R = typeof S == "function" ? S(Object.assign({}, t.rects, {
|
|
34657
34663
|
placement: t.placement
|
|
34658
|
-
})) : S,
|
|
34664
|
+
})) : S, O = typeof R == "number" ? {
|
|
34659
34665
|
mainAxis: R,
|
|
34660
34666
|
altAxis: R
|
|
34661
34667
|
} : Object.assign({
|
|
@@ -34667,14 +34673,14 @@ function a6(e) {
|
|
|
34667
34673
|
};
|
|
34668
34674
|
if (h) {
|
|
34669
34675
|
if (i) {
|
|
34670
|
-
var U, q = x === "y" ? Ve : We, $ = x === "y" ? ot : st, G = x === "y" ? "height" : "width", K = h[x], V = K + _[q], X = K - _[$], w = p ? -
|
|
34676
|
+
var U, q = x === "y" ? Ve : We, $ = x === "y" ? ot : st, G = x === "y" ? "height" : "width", K = h[x], V = K + _[q], X = K - _[$], w = p ? -L[G] / 2 : 0, N = E === hn ? k[G] : L[G], P = E === hn ? -L[G] : -k[G], C = t.elements.arrow, W = p && C ? Ac(C) : {
|
|
34671
34677
|
width: 0,
|
|
34672
34678
|
height: 0
|
|
34673
|
-
}, Z = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : ZE(), Y = Z[q], Q = Z[$], ee = Un(0, k[G], W[G]), te = m ? k[G] / 2 - w - ee - Y -
|
|
34679
|
+
}, Z = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : ZE(), Y = Z[q], Q = Z[$], ee = Un(0, k[G], W[G]), te = m ? k[G] / 2 - w - ee - Y - O.mainAxis : N - ee - Y - O.mainAxis, ie = m ? -k[G] / 2 + w + ee + Q + O.mainAxis : P + ee + Q + O.mainAxis, ne = t.elements.arrow && Xn(t.elements.arrow), _e = ne ? x === "y" ? ne.clientTop || 0 : ne.clientLeft || 0 : 0, H = (U = I == null ? void 0 : I[x]) != null ? U : 0, De = K + te - H - _e, ct = K + ie - H, Ze = Un(p ? br(V, De) : V, K, p ? Kt(X, ct) : X);
|
|
34674
34680
|
h[x] = Ze, M[x] = Ze - K;
|
|
34675
34681
|
}
|
|
34676
34682
|
if (s) {
|
|
34677
|
-
var dt, tn = x === "x" ? Ve : We, Bt = x === "x" ? ot : st, Pe = h[b], Rt = b === "y" ? "height" : "width", nn = Pe + _[tn], kt = Pe - _[Bt], $t = [Ve, We].indexOf(T) !== -1, rn = (dt = I == null ? void 0 : I[b]) != null ? dt : 0, F = $t ? nn : Pe - k[Rt] -
|
|
34683
|
+
var dt, tn = x === "x" ? Ve : We, Bt = x === "x" ? ot : st, Pe = h[b], Rt = b === "y" ? "height" : "width", nn = Pe + _[tn], kt = Pe - _[Bt], $t = [Ve, We].indexOf(T) !== -1, rn = (dt = I == null ? void 0 : I[b]) != null ? dt : 0, F = $t ? nn : Pe - k[Rt] - L[Rt] - rn + O.altAxis, z = $t ? Pe + k[Rt] + L[Rt] - rn - O.altAxis : kt, re = p && $t ? R3(F, Pe, z) : Un(p ? F : nn, Pe, p ? z : kt);
|
|
34678
34684
|
h[b] = re, M[b] = re - Pe;
|
|
34679
34685
|
}
|
|
34680
34686
|
t.modifiersData[r] = M;
|
|
@@ -34819,18 +34825,18 @@ function g6(e) {
|
|
|
34819
34825
|
c.rects = {
|
|
34820
34826
|
reference: u6(E, Xn(m), c.options.strategy === "fixed"),
|
|
34821
34827
|
popper: Ac(m)
|
|
34822
|
-
}, c.reset = !1, c.placement = c.options.placement, c.orderedModifiers.forEach(function(
|
|
34823
|
-
return c.modifiersData[
|
|
34828
|
+
}, c.reset = !1, c.placement = c.options.placement, c.orderedModifiers.forEach(function(O) {
|
|
34829
|
+
return c.modifiersData[O.name] = Object.assign({}, O.data);
|
|
34824
34830
|
});
|
|
34825
34831
|
for (var x = 0; x < c.orderedModifiers.length; x++) {
|
|
34826
34832
|
if (c.reset === !0) {
|
|
34827
34833
|
c.reset = !1, x = -1;
|
|
34828
34834
|
continue;
|
|
34829
34835
|
}
|
|
34830
|
-
var b = c.orderedModifiers[x], h = b.fn, k = b.options,
|
|
34836
|
+
var b = c.orderedModifiers[x], h = b.fn, k = b.options, L = k === void 0 ? {} : k, R = b.name;
|
|
34831
34837
|
typeof h == "function" && (c = h({
|
|
34832
34838
|
state: c,
|
|
34833
|
-
options:
|
|
34839
|
+
options: L,
|
|
34834
34840
|
name: R,
|
|
34835
34841
|
instance: p
|
|
34836
34842
|
}) || c);
|
|
@@ -35373,7 +35379,7 @@ function Jn({
|
|
|
35373
35379
|
setToggle: S
|
|
35374
35380
|
}), [b, o, u, p, _, f, S]);
|
|
35375
35381
|
p && T && !u && (m.current = p.contains(p.ownerDocument.activeElement));
|
|
35376
|
-
const
|
|
35382
|
+
const L = Lt(() => {
|
|
35377
35383
|
_ && _.focus && _.focus();
|
|
35378
35384
|
}), R = Lt(() => {
|
|
35379
35385
|
const I = E.current;
|
|
@@ -35384,11 +35390,11 @@ function Jn({
|
|
|
35384
35390
|
U && U.focus && U.focus();
|
|
35385
35391
|
});
|
|
35386
35392
|
Ie(() => {
|
|
35387
|
-
u ? R() : m.current && (m.current = !1,
|
|
35388
|
-
}, [u, m,
|
|
35393
|
+
u ? R() : m.current && (m.current = !1, L());
|
|
35394
|
+
}, [u, m, L, R]), Ie(() => {
|
|
35389
35395
|
E.current = null;
|
|
35390
35396
|
});
|
|
35391
|
-
const
|
|
35397
|
+
const O = (I, M) => {
|
|
35392
35398
|
if (!d.current) return null;
|
|
35393
35399
|
const U = Eb(d.current, a);
|
|
35394
35400
|
let q = U.indexOf(I) + M;
|
|
@@ -35408,7 +35414,7 @@ function Jn({
|
|
|
35408
35414
|
};
|
|
35409
35415
|
switch (q) {
|
|
35410
35416
|
case "ArrowUp": {
|
|
35411
|
-
const w =
|
|
35417
|
+
const w = O($, -1);
|
|
35412
35418
|
w && w.focus && w.focus(), I.preventDefault();
|
|
35413
35419
|
return;
|
|
35414
35420
|
}
|
|
@@ -35416,7 +35422,7 @@ function Jn({
|
|
|
35416
35422
|
if (I.preventDefault(), !u)
|
|
35417
35423
|
c(!0, X);
|
|
35418
35424
|
else {
|
|
35419
|
-
const w =
|
|
35425
|
+
const w = O($, 1);
|
|
35420
35426
|
w && w.focus && w.focus();
|
|
35421
35427
|
}
|
|
35422
35428
|
return;
|
|
@@ -35561,7 +35567,7 @@ const Sv = /* @__PURE__ */ Oe.forwardRef(({
|
|
|
35561
35567
|
const x = vv(f, _, T), [b, {
|
|
35562
35568
|
hasShown: h,
|
|
35563
35569
|
popper: k,
|
|
35564
|
-
show:
|
|
35570
|
+
show: L,
|
|
35565
35571
|
toggle: R
|
|
35566
35572
|
}] = rv({
|
|
35567
35573
|
flip: a,
|
|
@@ -35573,21 +35579,21 @@ const Sv = /* @__PURE__ */ Oe.forwardRef(({
|
|
|
35573
35579
|
placement: x
|
|
35574
35580
|
});
|
|
35575
35581
|
if (b.ref = Cc(Ev(d, "DropdownMenu"), b.ref), X6(() => {
|
|
35576
|
-
|
|
35577
|
-
}, [
|
|
35578
|
-
typeof s != "string" && (b.show =
|
|
35579
|
-
let
|
|
35580
|
-
return k != null && k.placement && (
|
|
35582
|
+
L && (k == null || k.update());
|
|
35583
|
+
}, [L]), !h && !o && !E) return null;
|
|
35584
|
+
typeof s != "string" && (b.show = L, b.close = () => R == null ? void 0 : R(!1), b.align = n);
|
|
35585
|
+
let O = c.style;
|
|
35586
|
+
return k != null && k.placement && (O = {
|
|
35581
35587
|
...c.style,
|
|
35582
35588
|
...b.style
|
|
35583
35589
|
}, c["x-placement"] = k.placement), /* @__PURE__ */ g.jsx(s, {
|
|
35584
35590
|
...c,
|
|
35585
35591
|
...b,
|
|
35586
|
-
style:
|
|
35592
|
+
style: O,
|
|
35587
35593
|
...(m.length || p) && {
|
|
35588
35594
|
"data-bs-popper": "static"
|
|
35589
35595
|
},
|
|
35590
|
-
className: mt(t, y,
|
|
35596
|
+
className: mt(t, y, L && "show", f && `${y}-end`, u && `${y}-${u}`, ...m)
|
|
35591
35597
|
});
|
|
35592
35598
|
});
|
|
35593
35599
|
Sv.displayName = "DropdownMenu";
|
|
@@ -35627,9 +35633,9 @@ const Cv = /* @__PURE__ */ Oe.forwardRef((e, t) => {
|
|
|
35627
35633
|
...p
|
|
35628
35634
|
} = IL(e, {
|
|
35629
35635
|
show: "onToggle"
|
|
35630
|
-
}), y = xe(Lc), S = wt(n, "dropdown"), _ = LL(), T = (k) => f === !1 ? k === "click" : f === "inside" ? k !== "rootClose" : f === "outside" ? k !== "select" : !0, E = XL((k,
|
|
35636
|
+
}), y = xe(Lc), S = wt(n, "dropdown"), _ = LL(), T = (k) => f === !1 ? k === "click" : f === "inside" ? k !== "rootClose" : f === "outside" ? k !== "select" : !0, E = XL((k, L) => {
|
|
35631
35637
|
var R;
|
|
35632
|
-
!((R =
|
|
35638
|
+
!((R = L.originalEvent) == null || (R = R.target) == null) && R.classList.contains("dropdown-toggle") && L.source === "mousedown" || (L.originalEvent.currentTarget === document && (L.source !== "keydown" || L.originalEvent.key === "Escape") && (L.source = "rootClose"), T(L.source) && (l == null || l(k, L)));
|
|
35633
35639
|
}), x = vv(o === "end", r, _), b = _t(() => ({
|
|
35634
35640
|
align: o,
|
|
35635
35641
|
drop: r,
|
|
@@ -36291,18 +36297,18 @@ const Rv = D.div`
|
|
|
36291
36297
|
showeditIcon: d
|
|
36292
36298
|
}) => {
|
|
36293
36299
|
const [f, p] = ge(() => localStorage.getItem("minerva_chat_expanded") === "true"), { t: y } = lt("minerva"), [S, _] = ge(!1), { selectedConversation: T } = Sn(), E = ve(null), m = ve(null), x = 60 * 60 * 1e3, b = (R) => {
|
|
36294
|
-
const
|
|
36300
|
+
const O = sy(R), I = new Date(O).getTime(), U = Date.now() - I, q = x - U;
|
|
36295
36301
|
return Math.max(0, q);
|
|
36296
36302
|
}, h = (R) => {
|
|
36297
36303
|
E.current && (clearTimeout(E.current), E.current = null), m.current && (clearInterval(m.current), m.current = null);
|
|
36298
|
-
const
|
|
36299
|
-
if (
|
|
36304
|
+
const O = b(R);
|
|
36305
|
+
if (O <= 0) {
|
|
36300
36306
|
_(!0);
|
|
36301
36307
|
return;
|
|
36302
36308
|
}
|
|
36303
36309
|
E.current = setTimeout(() => {
|
|
36304
36310
|
_(!0);
|
|
36305
|
-
},
|
|
36311
|
+
}, O);
|
|
36306
36312
|
};
|
|
36307
36313
|
Ie(() => (_(!1), T != null && T.created_at && h(T.created_at), () => {
|
|
36308
36314
|
E.current && (clearTimeout(E.current), E.current = null), m.current && (clearInterval(m.current), m.current = null);
|
|
@@ -36311,14 +36317,14 @@ const Rv = D.div`
|
|
|
36311
36317
|
}, []);
|
|
36312
36318
|
const k = () => {
|
|
36313
36319
|
p((R) => {
|
|
36314
|
-
const
|
|
36315
|
-
return localStorage.setItem("minerva_chat_expanded", String(
|
|
36320
|
+
const O = !R;
|
|
36321
|
+
return localStorage.setItem("minerva_chat_expanded", String(O)), O;
|
|
36316
36322
|
});
|
|
36317
|
-
},
|
|
36323
|
+
}, L = () => typeof t == "string" ? /* @__PURE__ */ g.jsx("img", { src: t, alt: "Custom Logo", style: { height: "40px" } }) : t ?? /* @__PURE__ */ g.jsx(mD, {});
|
|
36318
36324
|
return /* @__PURE__ */ g.jsxs(hD, { $isExpanded: f, className: s, children: [
|
|
36319
36325
|
/* @__PURE__ */ g.jsxs(bD, { children: [
|
|
36320
36326
|
/* @__PURE__ */ g.jsxs("div", { style: { display: "flex", alignItems: "center", gap: "12px" }, children: [
|
|
36321
|
-
|
|
36327
|
+
L(),
|
|
36322
36328
|
/* @__PURE__ */ g.jsx(vD, { children: y("titles.chatTtitle") })
|
|
36323
36329
|
] }),
|
|
36324
36330
|
/* @__PURE__ */ g.jsx(ED, { children: /* @__PURE__ */ g.jsx(
|
|
@@ -36536,27 +36542,27 @@ const _D = ({
|
|
|
36536
36542
|
t
|
|
36537
36543
|
);
|
|
36538
36544
|
console.log("Mensajes recibidos del backend:", k);
|
|
36539
|
-
const
|
|
36545
|
+
const L = k.map((R) => ({ ...R }));
|
|
36540
36546
|
r(
|
|
36541
|
-
|
|
36542
|
-
(R,
|
|
36547
|
+
L.sort(
|
|
36548
|
+
(R, O) => new Date(R.created_at).getTime() - new Date(O.created_at).getTime()
|
|
36543
36549
|
)
|
|
36544
|
-
), y(
|
|
36550
|
+
), y(L);
|
|
36545
36551
|
} catch (k) {
|
|
36546
|
-
console.error("Failed to fetch messages:", k), r((
|
|
36547
|
-
const R =
|
|
36552
|
+
console.error("Failed to fetch messages:", k), r((L) => {
|
|
36553
|
+
const R = L.filter(
|
|
36548
36554
|
(I) => I.sender_type === "ai" && (I.isStatus201 || f)
|
|
36549
|
-
),
|
|
36555
|
+
), O = L.filter(
|
|
36550
36556
|
(I) => I.sender_type === "user" && Math.abs(new Date(I.created_at).getTime() - (/* @__PURE__ */ new Date()).getTime()) < 1e4
|
|
36551
36557
|
);
|
|
36552
36558
|
return console.log("Preservando mensajes tras error en fetchMessages:", {
|
|
36553
36559
|
status201Messages: R,
|
|
36554
|
-
recentUserMessages:
|
|
36560
|
+
recentUserMessages: O
|
|
36555
36561
|
}), [
|
|
36556
|
-
...
|
|
36562
|
+
...L.filter((I) => !I.pendingSync || I.isStatus201),
|
|
36557
36563
|
...R,
|
|
36558
36564
|
// Optionally preserve status201 messages in error case as well
|
|
36559
|
-
...
|
|
36565
|
+
...O
|
|
36560
36566
|
].sort(
|
|
36561
36567
|
(I, M) => new Date(I.created_at).getTime() - new Date(M.created_at).getTime()
|
|
36562
36568
|
);
|
|
@@ -36564,14 +36570,14 @@ const _D = ({
|
|
|
36564
36570
|
} finally {
|
|
36565
36571
|
i(!1);
|
|
36566
36572
|
}
|
|
36567
|
-
}, E = async (h, k,
|
|
36573
|
+
}, E = async (h, k, L) => {
|
|
36568
36574
|
let R = null;
|
|
36569
|
-
const
|
|
36570
|
-
id: `user-${
|
|
36575
|
+
const O = (/* @__PURE__ */ new Date()).toISOString(), I = {
|
|
36576
|
+
id: `user-${O}`,
|
|
36571
36577
|
content: k,
|
|
36572
36578
|
sender_type: "user",
|
|
36573
36579
|
conversation_id: h,
|
|
36574
|
-
created_at:
|
|
36580
|
+
created_at: O,
|
|
36575
36581
|
pendingSync: !0
|
|
36576
36582
|
};
|
|
36577
36583
|
r((G) => {
|
|
@@ -36606,7 +36612,7 @@ const _D = ({
|
|
|
36606
36612
|
R = await Kv(
|
|
36607
36613
|
h,
|
|
36608
36614
|
k,
|
|
36609
|
-
|
|
36615
|
+
L,
|
|
36610
36616
|
t,
|
|
36611
36617
|
$.signal
|
|
36612
36618
|
);
|
|
@@ -36676,7 +36682,7 @@ const _D = ({
|
|
|
36676
36682
|
} finally {
|
|
36677
36683
|
u.current = null, _.current = null, l.current = null, i(!1), d(!1), console.log("Estado final de messages después de addMessage:", n);
|
|
36678
36684
|
}
|
|
36679
|
-
}, m = async (h, k,
|
|
36685
|
+
}, m = async (h, k, L) => {
|
|
36680
36686
|
const R = (/* @__PURE__ */ new Date()).toISOString();
|
|
36681
36687
|
r((U) => {
|
|
36682
36688
|
const q = U.findIndex((G) => G.id === k);
|
|
@@ -36685,22 +36691,22 @@ const _D = ({
|
|
|
36685
36691
|
...U.slice(0, q),
|
|
36686
36692
|
{
|
|
36687
36693
|
...U[q],
|
|
36688
|
-
content:
|
|
36694
|
+
content: L,
|
|
36689
36695
|
created_at: R,
|
|
36690
36696
|
pendingSync: !0
|
|
36691
36697
|
}
|
|
36692
36698
|
];
|
|
36693
36699
|
return console.log("Estado de messages tras editar mensaje:", $), $;
|
|
36694
36700
|
});
|
|
36695
|
-
const
|
|
36701
|
+
const O = new Date(
|
|
36696
36702
|
(/* @__PURE__ */ new Date()).getTime() + 1
|
|
36697
|
-
).toISOString(), I = `bot-edit-loading-${
|
|
36703
|
+
).toISOString(), I = `bot-edit-loading-${O}`, M = {
|
|
36698
36704
|
id: I,
|
|
36699
36705
|
content: "",
|
|
36700
36706
|
loadingContent: /* @__PURE__ */ g.jsx($b, {}),
|
|
36701
36707
|
sender_type: "ai",
|
|
36702
36708
|
conversation_id: h,
|
|
36703
|
-
created_at:
|
|
36709
|
+
created_at: O,
|
|
36704
36710
|
pendingSync: !0
|
|
36705
36711
|
};
|
|
36706
36712
|
r((U) => {
|
|
@@ -36714,7 +36720,7 @@ const _D = ({
|
|
|
36714
36720
|
const U = await Zv(
|
|
36715
36721
|
h,
|
|
36716
36722
|
k,
|
|
36717
|
-
|
|
36723
|
+
L,
|
|
36718
36724
|
t
|
|
36719
36725
|
);
|
|
36720
36726
|
if (!U.body)
|