@feedmepos/mf-remy-panel 0.3.2 → 0.3.3
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.
|
@@ -1321,9 +1321,9 @@ const Ff = /* @__PURE__ */ E("$ZodObject", (e, t) => {
|
|
|
1321
1321
|
};
|
|
1322
1322
|
p.write("const input = payload.value;");
|
|
1323
1323
|
const g = /* @__PURE__ */ Object.create(null);
|
|
1324
|
-
let
|
|
1324
|
+
let C = 0;
|
|
1325
1325
|
for (const A of d.keys)
|
|
1326
|
-
g[A] = `key_${
|
|
1326
|
+
g[A] = `key_${C++}`;
|
|
1327
1327
|
p.write("const newResult = {};");
|
|
1328
1328
|
for (const A of d.keys) {
|
|
1329
1329
|
const D = g[A], I = os(A), N = h[A], X = ((b = N == null ? void 0 : N._zod) == null ? void 0 : b.optout) === "optional";
|
|
@@ -1364,8 +1364,8 @@ const Ff = /* @__PURE__ */ E("$ZodObject", (e, t) => {
|
|
|
1364
1364
|
`);
|
|
1365
1365
|
}
|
|
1366
1366
|
p.write("payload.value = newResult;"), p.write("return payload;");
|
|
1367
|
-
const
|
|
1368
|
-
return (A, D) =>
|
|
1367
|
+
const S = p.compile();
|
|
1368
|
+
return (A, D) => S(h, A, D);
|
|
1369
1369
|
};
|
|
1370
1370
|
let o;
|
|
1371
1371
|
const s = Zn, i = !Bu.jitless, a = i && Gl.value, l = t.catchall;
|
|
@@ -2395,11 +2395,11 @@ function Mr(e, t) {
|
|
|
2395
2395
|
var v;
|
|
2396
2396
|
const f = e.target === "draft-2020-12" ? "$defs" : "definitions";
|
|
2397
2397
|
if (e.external) {
|
|
2398
|
-
const g = (v = e.external.registry.get(l[0])) == null ? void 0 : v.id,
|
|
2398
|
+
const g = (v = e.external.registry.get(l[0])) == null ? void 0 : v.id, C = e.external.uri ?? ((b) => b);
|
|
2399
2399
|
if (g)
|
|
2400
|
-
return { ref:
|
|
2401
|
-
const
|
|
2402
|
-
return l[1].defId =
|
|
2400
|
+
return { ref: C(g) };
|
|
2401
|
+
const S = l[1].defId ?? l[1].schema.id ?? `schema${e.counter++}`;
|
|
2402
|
+
return l[1].defId = S, { defId: S, ref: `${C("__shared")}#/${f}/${S}` };
|
|
2403
2403
|
}
|
|
2404
2404
|
if (l[1] === n)
|
|
2405
2405
|
return { ref: "#" };
|
|
@@ -2464,11 +2464,11 @@ function _r(e, t) {
|
|
|
2464
2464
|
r(p);
|
|
2465
2465
|
const v = e.seen.get(p), g = v.schema;
|
|
2466
2466
|
if (g.$ref && (e.target === "draft-07" || e.target === "draft-04" || e.target === "openapi-3.0") ? (f.allOf = f.allOf ?? [], f.allOf.push(g)) : Object.assign(f, g), Object.assign(f, h), a._zod.parent === p)
|
|
2467
|
-
for (const
|
|
2468
|
-
|
|
2467
|
+
for (const S in f)
|
|
2468
|
+
S === "$ref" || S === "allOf" || S in h || delete f[S];
|
|
2469
2469
|
if (g.$ref && v.def)
|
|
2470
|
-
for (const
|
|
2471
|
-
|
|
2470
|
+
for (const S in f)
|
|
2471
|
+
S === "$ref" || S === "allOf" || S in v.def && JSON.stringify(f[S]) === JSON.stringify(v.def[S]) && delete f[S];
|
|
2472
2472
|
}
|
|
2473
2473
|
const d = a._zod.parent;
|
|
2474
2474
|
if (d && d !== p) {
|
|
@@ -2955,7 +2955,7 @@ const yp = (e, t) => {
|
|
|
2955
2955
|
}), zp = /* @__PURE__ */ E("ZodString", (e, t) => {
|
|
2956
2956
|
lo.init(e, t), qa.init(e, t), e.email = (n) => e.check(/* @__PURE__ */ ed(Op, n)), e.url = (n) => e.check(/* @__PURE__ */ od(Fp, n)), e.jwt = (n) => e.check(/* @__PURE__ */ xd(Vp, n)), e.emoji = (n) => e.check(/* @__PURE__ */ sd(Pp, n)), e.guid = (n) => e.check(/* @__PURE__ */ gs(Es, n)), e.uuid = (n) => e.check(/* @__PURE__ */ td(gr, n)), e.uuidv4 = (n) => e.check(/* @__PURE__ */ nd(gr, n)), e.uuidv6 = (n) => e.check(/* @__PURE__ */ rd(gr, n)), e.uuidv7 = (n) => e.check(/* @__PURE__ */ ud(gr, n)), e.nanoid = (n) => e.check(/* @__PURE__ */ id(Mp, n)), e.guid = (n) => e.check(/* @__PURE__ */ gs(Es, n)), e.cuid = (n) => e.check(/* @__PURE__ */ ad(_p, n)), e.cuid2 = (n) => e.check(/* @__PURE__ */ cd(Np, n)), e.ulid = (n) => e.check(/* @__PURE__ */ ld(jp, n)), e.base64 = (n) => e.check(/* @__PURE__ */ bd(Wp, n)), e.base64url = (n) => e.check(/* @__PURE__ */ vd(Gp, n)), e.xid = (n) => e.check(/* @__PURE__ */ fd(Lp, n)), e.ksuid = (n) => e.check(/* @__PURE__ */ dd(Bp, n)), e.ipv4 = (n) => e.check(/* @__PURE__ */ pd(Zp, n)), e.ipv6 = (n) => e.check(/* @__PURE__ */ hd(qp, n)), e.cidrv4 = (n) => e.check(/* @__PURE__ */ md(Up, n)), e.cidrv6 = (n) => e.check(/* @__PURE__ */ gd(Hp, n)), e.e164 = (n) => e.check(/* @__PURE__ */ yd(Yp, n)), e.datetime = (n) => e.check(dp(n)), e.date = (n) => e.check(hp(n)), e.time = (n) => e.check(gp(n)), e.duration = (n) => e.check(vp(n));
|
|
2957
2957
|
});
|
|
2958
|
-
function
|
|
2958
|
+
function P(e) {
|
|
2959
2959
|
return /* @__PURE__ */ $f(zp, e);
|
|
2960
2960
|
}
|
|
2961
2961
|
const Ae = /* @__PURE__ */ E("ZodStringFormat", (e, t) => {
|
|
@@ -3482,10 +3482,10 @@ function Ih(e) {
|
|
|
3482
3482
|
const { onEvent: t = bu, onError: n = bu, onRetry: r = bu, onComment: u } = e;
|
|
3483
3483
|
let o = "", s = !0, i, c = "", a = "";
|
|
3484
3484
|
function l(v) {
|
|
3485
|
-
const g = s ? v.replace(/^\xEF\xBB\xBF/, "") : v, [
|
|
3486
|
-
for (const b of
|
|
3485
|
+
const g = s ? v.replace(/^\xEF\xBB\xBF/, "") : v, [C, S] = Th(`${o}${g}`);
|
|
3486
|
+
for (const b of C)
|
|
3487
3487
|
f(b);
|
|
3488
|
-
o =
|
|
3488
|
+
o = S, s = !1;
|
|
3489
3489
|
}
|
|
3490
3490
|
function f(v) {
|
|
3491
3491
|
if (v === "") {
|
|
@@ -3498,13 +3498,13 @@ function Ih(e) {
|
|
|
3498
3498
|
}
|
|
3499
3499
|
const g = v.indexOf(":");
|
|
3500
3500
|
if (g !== -1) {
|
|
3501
|
-
const
|
|
3502
|
-
h(
|
|
3501
|
+
const C = v.slice(0, g), S = v[g + 1] === " " ? 2 : 1, b = v.slice(g + S);
|
|
3502
|
+
h(C, b, v);
|
|
3503
3503
|
return;
|
|
3504
3504
|
}
|
|
3505
3505
|
h(v, "", v);
|
|
3506
3506
|
}
|
|
3507
|
-
function h(v, g,
|
|
3507
|
+
function h(v, g, C) {
|
|
3508
3508
|
switch (v) {
|
|
3509
3509
|
case "event":
|
|
3510
3510
|
a = g;
|
|
@@ -3521,7 +3521,7 @@ function Ih(e) {
|
|
|
3521
3521
|
new Is(`Invalid \`retry\` value: "${g}"`, {
|
|
3522
3522
|
type: "invalid-retry",
|
|
3523
3523
|
value: g,
|
|
3524
|
-
line:
|
|
3524
|
+
line: C
|
|
3525
3525
|
})
|
|
3526
3526
|
);
|
|
3527
3527
|
break;
|
|
@@ -3529,7 +3529,7 @@ function Ih(e) {
|
|
|
3529
3529
|
n(
|
|
3530
3530
|
new Is(
|
|
3531
3531
|
`Unknown field "${v.length > 20 ? `${v.slice(0, 20)}…` : v}"`,
|
|
3532
|
-
{ type: "unknown-field", field: v, value: g, line:
|
|
3532
|
+
{ type: "unknown-field", field: v, value: g, line: C }
|
|
3533
3533
|
)
|
|
3534
3534
|
);
|
|
3535
3535
|
break;
|
|
@@ -4786,7 +4786,7 @@ var oc = "AI_UIMessageStreamError", sc = `vercel.ai.error.${oc}`, F1 = Symbol.fo
|
|
|
4786
4786
|
};
|
|
4787
4787
|
ic = F1;
|
|
4788
4788
|
var Ms = "6.0.101", ac = Ge([
|
|
4789
|
-
|
|
4789
|
+
P(),
|
|
4790
4790
|
jr(Uint8Array),
|
|
4791
4791
|
jr(ArrayBuffer),
|
|
4792
4792
|
Xa(
|
|
@@ -4800,38 +4800,38 @@ var Ms = "6.0.101", ac = Ge([
|
|
|
4800
4800
|
]), Gn = Ch(
|
|
4801
4801
|
() => Ge([
|
|
4802
4802
|
$p(),
|
|
4803
|
-
|
|
4803
|
+
P(),
|
|
4804
4804
|
Jp(),
|
|
4805
4805
|
He(),
|
|
4806
|
-
Un(
|
|
4806
|
+
Un(P(), Gn.optional()),
|
|
4807
4807
|
In(Gn)
|
|
4808
4808
|
])
|
|
4809
4809
|
), re = Un(
|
|
4810
|
-
|
|
4811
|
-
Un(
|
|
4810
|
+
P(),
|
|
4811
|
+
Un(P(), Gn.optional())
|
|
4812
4812
|
), cc = pe({
|
|
4813
4813
|
type: Y("text"),
|
|
4814
|
-
text:
|
|
4814
|
+
text: P(),
|
|
4815
4815
|
providerOptions: re.optional()
|
|
4816
4816
|
}), P1 = pe({
|
|
4817
4817
|
type: Y("image"),
|
|
4818
4818
|
image: Ge([ac, jr(URL)]),
|
|
4819
|
-
mediaType:
|
|
4819
|
+
mediaType: P().optional(),
|
|
4820
4820
|
providerOptions: re.optional()
|
|
4821
4821
|
}), lc = pe({
|
|
4822
4822
|
type: Y("file"),
|
|
4823
4823
|
data: Ge([ac, jr(URL)]),
|
|
4824
|
-
filename:
|
|
4825
|
-
mediaType:
|
|
4824
|
+
filename: P().optional(),
|
|
4825
|
+
mediaType: P(),
|
|
4826
4826
|
providerOptions: re.optional()
|
|
4827
4827
|
}), M1 = pe({
|
|
4828
4828
|
type: Y("reasoning"),
|
|
4829
|
-
text:
|
|
4829
|
+
text: P(),
|
|
4830
4830
|
providerOptions: re.optional()
|
|
4831
4831
|
}), _1 = pe({
|
|
4832
4832
|
type: Y("tool-call"),
|
|
4833
|
-
toolCallId:
|
|
4834
|
-
toolName:
|
|
4833
|
+
toolCallId: P(),
|
|
4834
|
+
toolName: P(),
|
|
4835
4835
|
input: vt(),
|
|
4836
4836
|
providerOptions: re.optional(),
|
|
4837
4837
|
providerExecuted: He().optional()
|
|
@@ -4840,7 +4840,7 @@ var Ms = "6.0.101", ac = Ge([
|
|
|
4840
4840
|
[
|
|
4841
4841
|
pe({
|
|
4842
4842
|
type: Y("text"),
|
|
4843
|
-
value:
|
|
4843
|
+
value: P(),
|
|
4844
4844
|
providerOptions: re.optional()
|
|
4845
4845
|
}),
|
|
4846
4846
|
pe({
|
|
@@ -4850,12 +4850,12 @@ var Ms = "6.0.101", ac = Ge([
|
|
|
4850
4850
|
}),
|
|
4851
4851
|
pe({
|
|
4852
4852
|
type: Y("execution-denied"),
|
|
4853
|
-
reason:
|
|
4853
|
+
reason: P().optional(),
|
|
4854
4854
|
providerOptions: re.optional()
|
|
4855
4855
|
}),
|
|
4856
4856
|
pe({
|
|
4857
4857
|
type: Y("error-text"),
|
|
4858
|
-
value:
|
|
4858
|
+
value: P(),
|
|
4859
4859
|
providerOptions: re.optional()
|
|
4860
4860
|
}),
|
|
4861
4861
|
pe({
|
|
@@ -4869,45 +4869,45 @@ var Ms = "6.0.101", ac = Ge([
|
|
|
4869
4869
|
Ge([
|
|
4870
4870
|
pe({
|
|
4871
4871
|
type: Y("text"),
|
|
4872
|
-
text:
|
|
4872
|
+
text: P(),
|
|
4873
4873
|
providerOptions: re.optional()
|
|
4874
4874
|
}),
|
|
4875
4875
|
pe({
|
|
4876
4876
|
type: Y("media"),
|
|
4877
|
-
data:
|
|
4878
|
-
mediaType:
|
|
4877
|
+
data: P(),
|
|
4878
|
+
mediaType: P()
|
|
4879
4879
|
}),
|
|
4880
4880
|
pe({
|
|
4881
4881
|
type: Y("file-data"),
|
|
4882
|
-
data:
|
|
4883
|
-
mediaType:
|
|
4884
|
-
filename:
|
|
4882
|
+
data: P(),
|
|
4883
|
+
mediaType: P(),
|
|
4884
|
+
filename: P().optional(),
|
|
4885
4885
|
providerOptions: re.optional()
|
|
4886
4886
|
}),
|
|
4887
4887
|
pe({
|
|
4888
4888
|
type: Y("file-url"),
|
|
4889
|
-
url:
|
|
4889
|
+
url: P(),
|
|
4890
4890
|
providerOptions: re.optional()
|
|
4891
4891
|
}),
|
|
4892
4892
|
pe({
|
|
4893
4893
|
type: Y("file-id"),
|
|
4894
|
-
fileId: Ge([
|
|
4894
|
+
fileId: Ge([P(), Un(P(), P())]),
|
|
4895
4895
|
providerOptions: re.optional()
|
|
4896
4896
|
}),
|
|
4897
4897
|
pe({
|
|
4898
4898
|
type: Y("image-data"),
|
|
4899
|
-
data:
|
|
4900
|
-
mediaType:
|
|
4899
|
+
data: P(),
|
|
4900
|
+
mediaType: P(),
|
|
4901
4901
|
providerOptions: re.optional()
|
|
4902
4902
|
}),
|
|
4903
4903
|
pe({
|
|
4904
4904
|
type: Y("image-url"),
|
|
4905
|
-
url:
|
|
4905
|
+
url: P(),
|
|
4906
4906
|
providerOptions: re.optional()
|
|
4907
4907
|
}),
|
|
4908
4908
|
pe({
|
|
4909
4909
|
type: Y("image-file-id"),
|
|
4910
|
-
fileId: Ge([
|
|
4910
|
+
fileId: Ge([P(), Un(P(), P())]),
|
|
4911
4911
|
providerOptions: re.optional()
|
|
4912
4912
|
}),
|
|
4913
4913
|
pe({
|
|
@@ -4920,36 +4920,36 @@ var Ms = "6.0.101", ac = Ge([
|
|
|
4920
4920
|
]
|
|
4921
4921
|
), fc = pe({
|
|
4922
4922
|
type: Y("tool-result"),
|
|
4923
|
-
toolCallId:
|
|
4924
|
-
toolName:
|
|
4923
|
+
toolCallId: P(),
|
|
4924
|
+
toolName: P(),
|
|
4925
4925
|
output: N1,
|
|
4926
4926
|
providerOptions: re.optional()
|
|
4927
4927
|
}), j1 = pe({
|
|
4928
4928
|
type: Y("tool-approval-request"),
|
|
4929
|
-
approvalId:
|
|
4930
|
-
toolCallId:
|
|
4929
|
+
approvalId: P(),
|
|
4930
|
+
toolCallId: P()
|
|
4931
4931
|
}), L1 = pe({
|
|
4932
4932
|
type: Y("tool-approval-response"),
|
|
4933
|
-
approvalId:
|
|
4933
|
+
approvalId: P(),
|
|
4934
4934
|
approved: He(),
|
|
4935
|
-
reason:
|
|
4935
|
+
reason: P().optional()
|
|
4936
4936
|
}), B1 = pe(
|
|
4937
4937
|
{
|
|
4938
4938
|
role: Y("system"),
|
|
4939
|
-
content:
|
|
4939
|
+
content: P(),
|
|
4940
4940
|
providerOptions: re.optional()
|
|
4941
4941
|
}
|
|
4942
4942
|
), Z1 = pe({
|
|
4943
4943
|
role: Y("user"),
|
|
4944
4944
|
content: Ge([
|
|
4945
|
-
|
|
4945
|
+
P(),
|
|
4946
4946
|
In(Ge([cc, P1, lc]))
|
|
4947
4947
|
]),
|
|
4948
4948
|
providerOptions: re.optional()
|
|
4949
4949
|
}), q1 = pe({
|
|
4950
4950
|
role: Y("assistant"),
|
|
4951
4951
|
content: Ge([
|
|
4952
|
-
|
|
4952
|
+
P(),
|
|
4953
4953
|
In(
|
|
4954
4954
|
Ge([
|
|
4955
4955
|
cc,
|
|
@@ -5554,67 +5554,67 @@ var K1 = w1(
|
|
|
5554
5554
|
Ge([
|
|
5555
5555
|
be({
|
|
5556
5556
|
type: Y("text-start"),
|
|
5557
|
-
id:
|
|
5557
|
+
id: P(),
|
|
5558
5558
|
providerMetadata: re.optional()
|
|
5559
5559
|
}),
|
|
5560
5560
|
be({
|
|
5561
5561
|
type: Y("text-delta"),
|
|
5562
|
-
id:
|
|
5563
|
-
delta:
|
|
5562
|
+
id: P(),
|
|
5563
|
+
delta: P(),
|
|
5564
5564
|
providerMetadata: re.optional()
|
|
5565
5565
|
}),
|
|
5566
5566
|
be({
|
|
5567
5567
|
type: Y("text-end"),
|
|
5568
|
-
id:
|
|
5568
|
+
id: P(),
|
|
5569
5569
|
providerMetadata: re.optional()
|
|
5570
5570
|
}),
|
|
5571
5571
|
be({
|
|
5572
5572
|
type: Y("error"),
|
|
5573
|
-
errorText:
|
|
5573
|
+
errorText: P()
|
|
5574
5574
|
}),
|
|
5575
5575
|
be({
|
|
5576
5576
|
type: Y("tool-input-start"),
|
|
5577
|
-
toolCallId:
|
|
5578
|
-
toolName:
|
|
5577
|
+
toolCallId: P(),
|
|
5578
|
+
toolName: P(),
|
|
5579
5579
|
providerExecuted: He().optional(),
|
|
5580
5580
|
providerMetadata: re.optional(),
|
|
5581
5581
|
dynamic: He().optional(),
|
|
5582
|
-
title:
|
|
5582
|
+
title: P().optional()
|
|
5583
5583
|
}),
|
|
5584
5584
|
be({
|
|
5585
5585
|
type: Y("tool-input-delta"),
|
|
5586
|
-
toolCallId:
|
|
5587
|
-
inputTextDelta:
|
|
5586
|
+
toolCallId: P(),
|
|
5587
|
+
inputTextDelta: P()
|
|
5588
5588
|
}),
|
|
5589
5589
|
be({
|
|
5590
5590
|
type: Y("tool-input-available"),
|
|
5591
|
-
toolCallId:
|
|
5592
|
-
toolName:
|
|
5591
|
+
toolCallId: P(),
|
|
5592
|
+
toolName: P(),
|
|
5593
5593
|
input: vt(),
|
|
5594
5594
|
providerExecuted: He().optional(),
|
|
5595
5595
|
providerMetadata: re.optional(),
|
|
5596
5596
|
dynamic: He().optional(),
|
|
5597
|
-
title:
|
|
5597
|
+
title: P().optional()
|
|
5598
5598
|
}),
|
|
5599
5599
|
be({
|
|
5600
5600
|
type: Y("tool-input-error"),
|
|
5601
|
-
toolCallId:
|
|
5602
|
-
toolName:
|
|
5601
|
+
toolCallId: P(),
|
|
5602
|
+
toolName: P(),
|
|
5603
5603
|
input: vt(),
|
|
5604
5604
|
providerExecuted: He().optional(),
|
|
5605
5605
|
providerMetadata: re.optional(),
|
|
5606
5606
|
dynamic: He().optional(),
|
|
5607
|
-
errorText:
|
|
5608
|
-
title:
|
|
5607
|
+
errorText: P(),
|
|
5608
|
+
title: P().optional()
|
|
5609
5609
|
}),
|
|
5610
5610
|
be({
|
|
5611
5611
|
type: Y("tool-approval-request"),
|
|
5612
|
-
approvalId:
|
|
5613
|
-
toolCallId:
|
|
5612
|
+
approvalId: P(),
|
|
5613
|
+
toolCallId: P()
|
|
5614
5614
|
}),
|
|
5615
5615
|
be({
|
|
5616
5616
|
type: Y("tool-output-available"),
|
|
5617
|
-
toolCallId:
|
|
5617
|
+
toolCallId: P(),
|
|
5618
5618
|
output: vt(),
|
|
5619
5619
|
providerExecuted: He().optional(),
|
|
5620
5620
|
dynamic: He().optional(),
|
|
@@ -5622,50 +5622,50 @@ var K1 = w1(
|
|
|
5622
5622
|
}),
|
|
5623
5623
|
be({
|
|
5624
5624
|
type: Y("tool-output-error"),
|
|
5625
|
-
toolCallId:
|
|
5626
|
-
errorText:
|
|
5625
|
+
toolCallId: P(),
|
|
5626
|
+
errorText: P(),
|
|
5627
5627
|
providerExecuted: He().optional(),
|
|
5628
5628
|
dynamic: He().optional()
|
|
5629
5629
|
}),
|
|
5630
5630
|
be({
|
|
5631
5631
|
type: Y("tool-output-denied"),
|
|
5632
|
-
toolCallId:
|
|
5632
|
+
toolCallId: P()
|
|
5633
5633
|
}),
|
|
5634
5634
|
be({
|
|
5635
5635
|
type: Y("reasoning-start"),
|
|
5636
|
-
id:
|
|
5636
|
+
id: P(),
|
|
5637
5637
|
providerMetadata: re.optional()
|
|
5638
5638
|
}),
|
|
5639
5639
|
be({
|
|
5640
5640
|
type: Y("reasoning-delta"),
|
|
5641
|
-
id:
|
|
5642
|
-
delta:
|
|
5641
|
+
id: P(),
|
|
5642
|
+
delta: P(),
|
|
5643
5643
|
providerMetadata: re.optional()
|
|
5644
5644
|
}),
|
|
5645
5645
|
be({
|
|
5646
5646
|
type: Y("reasoning-end"),
|
|
5647
|
-
id:
|
|
5647
|
+
id: P(),
|
|
5648
5648
|
providerMetadata: re.optional()
|
|
5649
5649
|
}),
|
|
5650
5650
|
be({
|
|
5651
5651
|
type: Y("source-url"),
|
|
5652
|
-
sourceId:
|
|
5653
|
-
url:
|
|
5654
|
-
title:
|
|
5652
|
+
sourceId: P(),
|
|
5653
|
+
url: P(),
|
|
5654
|
+
title: P().optional(),
|
|
5655
5655
|
providerMetadata: re.optional()
|
|
5656
5656
|
}),
|
|
5657
5657
|
be({
|
|
5658
5658
|
type: Y("source-document"),
|
|
5659
|
-
sourceId:
|
|
5660
|
-
mediaType:
|
|
5661
|
-
title:
|
|
5662
|
-
filename:
|
|
5659
|
+
sourceId: P(),
|
|
5660
|
+
mediaType: P(),
|
|
5661
|
+
title: P(),
|
|
5662
|
+
filename: P().optional(),
|
|
5663
5663
|
providerMetadata: re.optional()
|
|
5664
5664
|
}),
|
|
5665
5665
|
be({
|
|
5666
5666
|
type: Y("file"),
|
|
5667
|
-
url:
|
|
5668
|
-
mediaType:
|
|
5667
|
+
url: P(),
|
|
5668
|
+
mediaType: P(),
|
|
5669
5669
|
providerMetadata: re.optional()
|
|
5670
5670
|
}),
|
|
5671
5671
|
be({
|
|
@@ -5673,7 +5673,7 @@ var K1 = w1(
|
|
|
5673
5673
|
(e) => typeof e == "string" && e.startsWith("data-"),
|
|
5674
5674
|
{ message: 'Type must start with "data-"' }
|
|
5675
5675
|
),
|
|
5676
|
-
id:
|
|
5676
|
+
id: P().optional(),
|
|
5677
5677
|
data: vt(),
|
|
5678
5678
|
transient: He().optional()
|
|
5679
5679
|
}),
|
|
@@ -5685,7 +5685,7 @@ var K1 = w1(
|
|
|
5685
5685
|
}),
|
|
5686
5686
|
be({
|
|
5687
5687
|
type: Y("start"),
|
|
5688
|
-
messageId:
|
|
5688
|
+
messageId: P().optional(),
|
|
5689
5689
|
messageMetadata: vt().optional()
|
|
5690
5690
|
}),
|
|
5691
5691
|
be({
|
|
@@ -5702,7 +5702,7 @@ var K1 = w1(
|
|
|
5702
5702
|
}),
|
|
5703
5703
|
be({
|
|
5704
5704
|
type: Y("abort"),
|
|
5705
|
-
reason:
|
|
5705
|
+
reason: P().optional()
|
|
5706
5706
|
}),
|
|
5707
5707
|
be({
|
|
5708
5708
|
type: Y("message-metadata"),
|
|
@@ -5787,7 +5787,7 @@ function tm({
|
|
|
5787
5787
|
...I.providerMetadata != null ? { callProviderMetadata: I.providerMetadata } : {}
|
|
5788
5788
|
});
|
|
5789
5789
|
}
|
|
5790
|
-
function
|
|
5790
|
+
function C(b) {
|
|
5791
5791
|
var A, D;
|
|
5792
5792
|
const I = a.message.parts.find(
|
|
5793
5793
|
(ge) => ge.type === "dynamic-tool" && ge.toolCallId === b.toolCallId
|
|
@@ -5806,7 +5806,7 @@ function tm({
|
|
|
5806
5806
|
...N.providerMetadata != null ? { callProviderMetadata: N.providerMetadata } : {}
|
|
5807
5807
|
});
|
|
5808
5808
|
}
|
|
5809
|
-
async function
|
|
5809
|
+
async function S(b) {
|
|
5810
5810
|
if (b != null) {
|
|
5811
5811
|
const A = a.message.metadata != null ? dc(a.message.metadata, b) : b;
|
|
5812
5812
|
t != null && await Ps({
|
|
@@ -5921,7 +5921,7 @@ function tm({
|
|
|
5921
5921
|
index: b.length,
|
|
5922
5922
|
dynamic: i.dynamic,
|
|
5923
5923
|
title: i.title
|
|
5924
|
-
}, i.dynamic ?
|
|
5924
|
+
}, i.dynamic ? C({
|
|
5925
5925
|
toolCallId: i.toolCallId,
|
|
5926
5926
|
toolName: i.toolName,
|
|
5927
5927
|
state: "input-streaming",
|
|
@@ -5952,7 +5952,7 @@ function tm({
|
|
|
5952
5952
|
const { value: A } = await tr(
|
|
5953
5953
|
b.text
|
|
5954
5954
|
);
|
|
5955
|
-
b.dynamic ?
|
|
5955
|
+
b.dynamic ? C({
|
|
5956
5956
|
toolCallId: i.toolCallId,
|
|
5957
5957
|
toolName: b.toolName,
|
|
5958
5958
|
state: "input-streaming",
|
|
@@ -5968,7 +5968,7 @@ function tm({
|
|
|
5968
5968
|
break;
|
|
5969
5969
|
}
|
|
5970
5970
|
case "tool-input-available": {
|
|
5971
|
-
i.dynamic ?
|
|
5971
|
+
i.dynamic ? C({
|
|
5972
5972
|
toolCallId: i.toolCallId,
|
|
5973
5973
|
toolName: i.toolName,
|
|
5974
5974
|
state: "input-available",
|
|
@@ -5991,7 +5991,7 @@ function tm({
|
|
|
5991
5991
|
}
|
|
5992
5992
|
case "tool-input-error": {
|
|
5993
5993
|
const b = a.message.parts.filter(Br).find((D) => D.toolCallId === i.toolCallId);
|
|
5994
|
-
(b != null ? b.type === "dynamic-tool" : !!i.dynamic) ?
|
|
5994
|
+
(b != null ? b.type === "dynamic-tool" : !!i.dynamic) ? C({
|
|
5995
5995
|
toolCallId: i.toolCallId,
|
|
5996
5996
|
toolName: i.toolName,
|
|
5997
5997
|
state: "output-error",
|
|
@@ -6023,7 +6023,7 @@ function tm({
|
|
|
6023
6023
|
}
|
|
6024
6024
|
case "tool-output-available": {
|
|
6025
6025
|
const b = v(i.toolCallId);
|
|
6026
|
-
b.type === "dynamic-tool" ?
|
|
6026
|
+
b.type === "dynamic-tool" ? C({
|
|
6027
6027
|
toolCallId: i.toolCallId,
|
|
6028
6028
|
toolName: b.toolName,
|
|
6029
6029
|
state: "output-available",
|
|
@@ -6046,7 +6046,7 @@ function tm({
|
|
|
6046
6046
|
}
|
|
6047
6047
|
case "tool-output-error": {
|
|
6048
6048
|
const b = v(i.toolCallId);
|
|
6049
|
-
b.type === "dynamic-tool" ?
|
|
6049
|
+
b.type === "dynamic-tool" ? C({
|
|
6050
6050
|
toolCallId: i.toolCallId,
|
|
6051
6051
|
toolName: b.toolName,
|
|
6052
6052
|
state: "output-error",
|
|
@@ -6075,15 +6075,15 @@ function tm({
|
|
|
6075
6075
|
break;
|
|
6076
6076
|
}
|
|
6077
6077
|
case "start": {
|
|
6078
|
-
i.messageId != null && (a.message.id = i.messageId), await
|
|
6078
|
+
i.messageId != null && (a.message.id = i.messageId), await S(i.messageMetadata), (i.messageId != null || i.messageMetadata != null) && l();
|
|
6079
6079
|
break;
|
|
6080
6080
|
}
|
|
6081
6081
|
case "finish": {
|
|
6082
|
-
i.finishReason != null && (a.finishReason = i.finishReason), await
|
|
6082
|
+
i.finishReason != null && (a.finishReason = i.finishReason), await S(i.messageMetadata), i.messageMetadata != null && l();
|
|
6083
6083
|
break;
|
|
6084
6084
|
}
|
|
6085
6085
|
case "message-metadata": {
|
|
6086
|
-
await
|
|
6086
|
+
await S(i.messageMetadata), i.messageMetadata != null && l();
|
|
6087
6087
|
break;
|
|
6088
6088
|
}
|
|
6089
6089
|
case "error": {
|
|
@@ -6229,7 +6229,7 @@ var om = class {
|
|
|
6229
6229
|
messages: t.messages,
|
|
6230
6230
|
trigger: t.trigger,
|
|
6231
6231
|
messageId: t.messageId
|
|
6232
|
-
}, v = (u = f == null ? void 0 : f.credentials) != null ? u : a,
|
|
6232
|
+
}, v = (u = f == null ? void 0 : f.credentials) != null ? u : a, C = await ((o = this.fetch) != null ? o : globalThis.fetch)(h, {
|
|
6233
6233
|
method: "POST",
|
|
6234
6234
|
headers: Rs(
|
|
6235
6235
|
{
|
|
@@ -6243,13 +6243,13 @@ var om = class {
|
|
|
6243
6243
|
credentials: v,
|
|
6244
6244
|
signal: e
|
|
6245
6245
|
});
|
|
6246
|
-
if (!
|
|
6246
|
+
if (!C.ok)
|
|
6247
6247
|
throw new Error(
|
|
6248
|
-
(s = await
|
|
6248
|
+
(s = await C.text()) != null ? s : "Failed to fetch the chat response."
|
|
6249
6249
|
);
|
|
6250
|
-
if (!
|
|
6250
|
+
if (!C.body)
|
|
6251
6251
|
throw new Error("The response body is empty.");
|
|
6252
|
-
return this.processResponseStream(
|
|
6252
|
+
return this.processResponseStream(C.body);
|
|
6253
6253
|
}
|
|
6254
6254
|
async reconnectToStream(e) {
|
|
6255
6255
|
var t, n, r, u, o;
|
|
@@ -6324,33 +6324,33 @@ var om = class {
|
|
|
6324
6324
|
});
|
|
6325
6325
|
return;
|
|
6326
6326
|
}
|
|
6327
|
-
let
|
|
6328
|
-
if ("text" in f || "files" in f ?
|
|
6327
|
+
let C;
|
|
6328
|
+
if ("text" in f || "files" in f ? C = {
|
|
6329
6329
|
parts: [
|
|
6330
6330
|
...Array.isArray(f.files) ? f.files : await um(f.files),
|
|
6331
6331
|
..."text" in f && f.text != null ? [{ type: "text", text: f.text }] : []
|
|
6332
6332
|
]
|
|
6333
|
-
} :
|
|
6334
|
-
const
|
|
6333
|
+
} : C = f, f.messageId != null) {
|
|
6334
|
+
const S = this.state.messages.findIndex(
|
|
6335
6335
|
(b) => b.id === f.messageId
|
|
6336
6336
|
);
|
|
6337
|
-
if (
|
|
6337
|
+
if (S === -1)
|
|
6338
6338
|
throw new Error(`message with id ${f.messageId} not found`);
|
|
6339
|
-
if (this.state.messages[
|
|
6339
|
+
if (this.state.messages[S].role !== "user")
|
|
6340
6340
|
throw new Error(
|
|
6341
6341
|
`message with id ${f.messageId} is not a user message`
|
|
6342
6342
|
);
|
|
6343
|
-
this.state.messages = this.state.messages.slice(0,
|
|
6344
|
-
...
|
|
6343
|
+
this.state.messages = this.state.messages.slice(0, S + 1), this.state.replaceMessage(S, {
|
|
6344
|
+
...C,
|
|
6345
6345
|
id: f.messageId,
|
|
6346
|
-
role: (d =
|
|
6346
|
+
role: (d = C.role) != null ? d : "user",
|
|
6347
6347
|
metadata: f.metadata
|
|
6348
6348
|
});
|
|
6349
6349
|
} else
|
|
6350
6350
|
this.state.pushMessage({
|
|
6351
|
-
...
|
|
6352
|
-
id: (v =
|
|
6353
|
-
role: (g =
|
|
6351
|
+
...C,
|
|
6352
|
+
id: (v = C.id) != null ? v : this.generateId(),
|
|
6353
|
+
role: (g = C.role) != null ? g : "user",
|
|
6354
6354
|
metadata: f.metadata
|
|
6355
6355
|
});
|
|
6356
6356
|
await this.makeRequest({
|
|
@@ -6383,19 +6383,19 @@ var om = class {
|
|
|
6383
6383
|
approved: h,
|
|
6384
6384
|
reason: p
|
|
6385
6385
|
}) => this.jobExecutor.run(async () => {
|
|
6386
|
-
const d = this.state.messages, v = d[d.length - 1], g = (
|
|
6387
|
-
...
|
|
6386
|
+
const d = this.state.messages, v = d[d.length - 1], g = (C) => Br(C) && C.state === "approval-requested" && C.approval.id === f ? {
|
|
6387
|
+
...C,
|
|
6388
6388
|
state: "approval-responded",
|
|
6389
6389
|
approval: { id: f, approved: h, reason: p }
|
|
6390
|
-
} :
|
|
6390
|
+
} : C;
|
|
6391
6391
|
this.state.replaceMessage(d.length - 1, {
|
|
6392
6392
|
...v,
|
|
6393
6393
|
parts: v.parts.map(g)
|
|
6394
|
-
}), this.activeResponse && (this.activeResponse.state.message.parts = this.activeResponse.state.message.parts.map(g)), this.status !== "streaming" && this.status !== "submitted" && this.sendAutomaticallyWhen && this.shouldSendAutomatically().then((
|
|
6395
|
-
var
|
|
6396
|
-
|
|
6394
|
+
}), this.activeResponse && (this.activeResponse.state.message.parts = this.activeResponse.state.message.parts.map(g)), this.status !== "streaming" && this.status !== "submitted" && this.sendAutomaticallyWhen && this.shouldSendAutomatically().then((C) => {
|
|
6395
|
+
var S;
|
|
6396
|
+
C && this.makeRequest({
|
|
6397
6397
|
trigger: "submit-message",
|
|
6398
|
-
messageId: (
|
|
6398
|
+
messageId: (S = this.lastMessage) == null ? void 0 : S.id
|
|
6399
6399
|
});
|
|
6400
6400
|
});
|
|
6401
6401
|
}), this.addToolOutput = async ({
|
|
@@ -6405,11 +6405,11 @@ var om = class {
|
|
|
6405
6405
|
output: d,
|
|
6406
6406
|
errorText: v
|
|
6407
6407
|
}) => this.jobExecutor.run(async () => {
|
|
6408
|
-
const g = this.state.messages,
|
|
6408
|
+
const g = this.state.messages, C = g[g.length - 1], S = (b) => Br(b) && b.toolCallId === p ? { ...b, state: f, output: d, errorText: v } : b;
|
|
6409
6409
|
this.state.replaceMessage(g.length - 1, {
|
|
6410
|
-
...
|
|
6411
|
-
parts:
|
|
6412
|
-
}), this.activeResponse && (this.activeResponse.state.message.parts = this.activeResponse.state.message.parts.map(
|
|
6410
|
+
...C,
|
|
6411
|
+
parts: C.parts.map(S)
|
|
6412
|
+
}), this.activeResponse && (this.activeResponse.state.message.parts = this.activeResponse.state.message.parts.map(S)), this.status !== "streaming" && this.status !== "submitted" && this.sendAutomaticallyWhen && this.shouldSendAutomatically().then((b) => {
|
|
6413
6413
|
var A;
|
|
6414
6414
|
b && this.makeRequest({
|
|
6415
6415
|
trigger: "submit-message",
|
|
@@ -6513,8 +6513,8 @@ var om = class {
|
|
|
6513
6513
|
() => g({
|
|
6514
6514
|
state: p.state,
|
|
6515
6515
|
write: () => {
|
|
6516
|
-
var
|
|
6517
|
-
this.setStatus({ status: "streaming" }), p.state.message.id === ((
|
|
6516
|
+
var C;
|
|
6517
|
+
this.setStatus({ status: "streaming" }), p.state.message.id === ((C = this.lastMessage) == null ? void 0 : C.id) ? this.state.replaceMessage(
|
|
6518
6518
|
this.state.messages.length - 1,
|
|
6519
6519
|
p.state.message
|
|
6520
6520
|
) : this.state.pushMessage(p.state.message);
|
|
@@ -6978,12 +6978,12 @@ function tu(e, t, n) {
|
|
|
6978
6978
|
return y.isArrayBuffer(d) || y.isTypedArray(d) ? c && typeof Blob == "function" ? new Blob([d]) : Buffer.from(d) : d;
|
|
6979
6979
|
}
|
|
6980
6980
|
function l(d, v, g) {
|
|
6981
|
-
let
|
|
6981
|
+
let C = d;
|
|
6982
6982
|
if (d && !g && typeof d == "object") {
|
|
6983
6983
|
if (y.endsWith(v, "{}"))
|
|
6984
6984
|
v = r ? v : v.slice(0, -2), d = JSON.stringify(d);
|
|
6985
|
-
else if (y.isArray(d) && Jm(d) || (y.isFileList(d) || y.endsWith(v, "[]")) && (
|
|
6986
|
-
return v = wc(v),
|
|
6985
|
+
else if (y.isArray(d) && Jm(d) || (y.isFileList(d) || y.endsWith(v, "[]")) && (C = y.toArray(d)))
|
|
6986
|
+
return v = wc(v), C.forEach(function(b, A) {
|
|
6987
6987
|
!(y.isUndefined(b) || b === null) && t.append(
|
|
6988
6988
|
// eslint-disable-next-line no-nested-ternary
|
|
6989
6989
|
s === !0 ? Ls([v], A, o) : s === null ? v : v + "[]",
|
|
@@ -7002,14 +7002,14 @@ function tu(e, t, n) {
|
|
|
7002
7002
|
if (!y.isUndefined(d)) {
|
|
7003
7003
|
if (f.indexOf(d) !== -1)
|
|
7004
7004
|
throw Error("Circular reference detected in " + v.join("."));
|
|
7005
|
-
f.push(d), y.forEach(d, function(
|
|
7006
|
-
(!(y.isUndefined(
|
|
7005
|
+
f.push(d), y.forEach(d, function(C, S) {
|
|
7006
|
+
(!(y.isUndefined(C) || C === null) && u.call(
|
|
7007
7007
|
t,
|
|
7008
|
-
|
|
7009
|
-
y.isString(
|
|
7008
|
+
C,
|
|
7009
|
+
y.isString(S) ? S.trim() : S,
|
|
7010
7010
|
v,
|
|
7011
7011
|
h
|
|
7012
|
-
)) === !0 && p(
|
|
7012
|
+
)) === !0 && p(C, v ? v.concat(S) : [S]);
|
|
7013
7013
|
}), f.pop();
|
|
7014
7014
|
}
|
|
7015
7015
|
}
|
|
@@ -7700,7 +7700,7 @@ const Tc = (e) => {
|
|
|
7700
7700
|
}
|
|
7701
7701
|
let g = new XMLHttpRequest();
|
|
7702
7702
|
g.open(u.method.toUpperCase(), u.url, !0), g.timeout = u.timeout;
|
|
7703
|
-
function
|
|
7703
|
+
function C() {
|
|
7704
7704
|
if (!g)
|
|
7705
7705
|
return;
|
|
7706
7706
|
const b = pt.from(
|
|
@@ -7719,8 +7719,8 @@ const Tc = (e) => {
|
|
|
7719
7719
|
r(N), v();
|
|
7720
7720
|
}, D), g = null;
|
|
7721
7721
|
}
|
|
7722
|
-
"onloadend" in g ? g.onloadend =
|
|
7723
|
-
!g || g.readyState !== 4 || g.status === 0 && !(g.responseURL && g.responseURL.indexOf("file:") === 0) || setTimeout(
|
|
7722
|
+
"onloadend" in g ? g.onloadend = C : g.onreadystatechange = function() {
|
|
7723
|
+
!g || g.readyState !== 4 || g.status === 0 && !(g.responseURL && g.responseURL.indexOf("file:") === 0) || setTimeout(C);
|
|
7724
7724
|
}, g.onabort = function() {
|
|
7725
7725
|
g && (r(new ne("Request aborted", ne.ECONNABORTED, e, g)), g = null);
|
|
7726
7726
|
}, g.onerror = function(A) {
|
|
@@ -7740,9 +7740,9 @@ const Tc = (e) => {
|
|
|
7740
7740
|
}), y.isUndefined(u.withCredentials) || (g.withCredentials = !!u.withCredentials), i && i !== "json" && (g.responseType = u.responseType), a && ([h, d] = Zr(a, !0), g.addEventListener("progress", h)), c && g.upload && ([f, p] = Zr(c), g.upload.addEventListener("progress", f), g.upload.addEventListener("loadend", p)), (u.cancelToken || u.signal) && (l = (b) => {
|
|
7741
7741
|
g && (r(!b || b.type ? new or(null, e, g) : b), g.abort(), g = null);
|
|
7742
7742
|
}, u.cancelToken && u.cancelToken.subscribe(l), u.signal && (u.signal.aborted ? l() : u.signal.addEventListener("abort", l)));
|
|
7743
|
-
const
|
|
7744
|
-
if (
|
|
7745
|
-
r(new ne("Unsupported protocol " +
|
|
7743
|
+
const S = vg(u.url);
|
|
7744
|
+
if (S && Be.protocols.indexOf(S) === -1) {
|
|
7745
|
+
r(new ne("Unsupported protocol " + S + ":", ne.ERR_BAD_REQUEST, e));
|
|
7746
7746
|
return;
|
|
7747
7747
|
}
|
|
7748
7748
|
g.send(o || null);
|
|
@@ -7861,9 +7861,9 @@ const Tc = (e) => {
|
|
|
7861
7861
|
};
|
|
7862
7862
|
u && ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((d) => {
|
|
7863
7863
|
!f[d] && (f[d] = (v, g) => {
|
|
7864
|
-
let
|
|
7865
|
-
if (
|
|
7866
|
-
return
|
|
7864
|
+
let C = v && v[d];
|
|
7865
|
+
if (C)
|
|
7866
|
+
return C.call(v);
|
|
7867
7867
|
throw new ne(`Response type '${d}' is not supported`, ne.ERR_NOT_SUPPORT, g);
|
|
7868
7868
|
});
|
|
7869
7869
|
});
|
|
@@ -7889,8 +7889,8 @@ const Tc = (e) => {
|
|
|
7889
7889
|
let {
|
|
7890
7890
|
url: v,
|
|
7891
7891
|
method: g,
|
|
7892
|
-
data:
|
|
7893
|
-
signal:
|
|
7892
|
+
data: C,
|
|
7893
|
+
signal: S,
|
|
7894
7894
|
cancelToken: b,
|
|
7895
7895
|
timeout: A,
|
|
7896
7896
|
onDownloadProgress: D,
|
|
@@ -7901,24 +7901,24 @@ const Tc = (e) => {
|
|
|
7901
7901
|
fetchOptions: Fe
|
|
7902
7902
|
} = Tc(d), ie = t || fetch;
|
|
7903
7903
|
N = N ? (N + "").toLowerCase() : "text";
|
|
7904
|
-
let Pe = Ig([
|
|
7904
|
+
let Pe = Ig([S, b && b.toAbortSignal()], A), Ce = null;
|
|
7905
7905
|
const R = Pe && Pe.unsubscribe && (() => {
|
|
7906
7906
|
Pe.unsubscribe();
|
|
7907
7907
|
});
|
|
7908
|
-
let
|
|
7908
|
+
let H;
|
|
7909
7909
|
try {
|
|
7910
|
-
if (I && a && g !== "get" && g !== "head" && (
|
|
7910
|
+
if (I && a && g !== "get" && g !== "head" && (H = await p(X, C)) !== 0) {
|
|
7911
7911
|
let w = new n(v, {
|
|
7912
7912
|
method: "POST",
|
|
7913
|
-
body:
|
|
7913
|
+
body: C,
|
|
7914
7914
|
duplex: "half"
|
|
7915
7915
|
}), z;
|
|
7916
|
-
if (y.isFormData(
|
|
7917
|
-
const [_,
|
|
7918
|
-
|
|
7916
|
+
if (y.isFormData(C) && (z = w.headers.get("content-type")) && X.setContentType(z), w.body) {
|
|
7917
|
+
const [_, q] = Us(
|
|
7918
|
+
H,
|
|
7919
7919
|
Zr(Hs(I))
|
|
7920
7920
|
);
|
|
7921
|
-
|
|
7921
|
+
C = Gs(w.body, Ys, _, q);
|
|
7922
7922
|
}
|
|
7923
7923
|
}
|
|
7924
7924
|
y.isString(ge) || (ge = ge ? "include" : "omit");
|
|
@@ -7927,37 +7927,37 @@ const Tc = (e) => {
|
|
|
7927
7927
|
signal: Pe,
|
|
7928
7928
|
method: g.toUpperCase(),
|
|
7929
7929
|
headers: X.normalize().toJSON(),
|
|
7930
|
-
body:
|
|
7930
|
+
body: C,
|
|
7931
7931
|
duplex: "half",
|
|
7932
7932
|
credentials: x ? ge : void 0
|
|
7933
7933
|
};
|
|
7934
7934
|
Ce = o && new n(v, M);
|
|
7935
|
-
let
|
|
7935
|
+
let U = await (o ? ie(Ce, Fe) : ie(v, M));
|
|
7936
7936
|
const $ = l && (N === "stream" || N === "response");
|
|
7937
7937
|
if (l && (D || $ && R)) {
|
|
7938
7938
|
const w = {};
|
|
7939
|
-
["status", "statusText", "headers"].forEach((
|
|
7940
|
-
w[
|
|
7939
|
+
["status", "statusText", "headers"].forEach((O) => {
|
|
7940
|
+
w[O] = U[O];
|
|
7941
7941
|
});
|
|
7942
|
-
const z = y.toFiniteNumber(
|
|
7942
|
+
const z = y.toFiniteNumber(U.headers.get("content-length")), [_, q] = D && Us(
|
|
7943
7943
|
z,
|
|
7944
7944
|
Zr(Hs(D), !0)
|
|
7945
7945
|
) || [];
|
|
7946
|
-
|
|
7947
|
-
Gs(
|
|
7948
|
-
|
|
7946
|
+
U = new r(
|
|
7947
|
+
Gs(U.body, Ys, _, () => {
|
|
7948
|
+
q && q(), R && R();
|
|
7949
7949
|
}),
|
|
7950
7950
|
w
|
|
7951
7951
|
);
|
|
7952
7952
|
}
|
|
7953
7953
|
N = N || "text";
|
|
7954
|
-
let de = await f[y.findKey(f, N) || "text"](
|
|
7954
|
+
let de = await f[y.findKey(f, N) || "text"](U, d);
|
|
7955
7955
|
return !$ && R && R(), await new Promise((w, z) => {
|
|
7956
7956
|
Dc(w, z, {
|
|
7957
7957
|
data: de,
|
|
7958
|
-
headers: pt.from(
|
|
7959
|
-
status:
|
|
7960
|
-
statusText:
|
|
7958
|
+
headers: pt.from(U.headers),
|
|
7959
|
+
status: U.status,
|
|
7960
|
+
statusText: U.statusText,
|
|
7961
7961
|
config: d,
|
|
7962
7962
|
request: Ce
|
|
7963
7963
|
});
|
|
@@ -8484,12 +8484,12 @@ const sr = Bi("chat", () => {
|
|
|
8484
8484
|
return w === "submitted" || w === "streaming";
|
|
8485
8485
|
});
|
|
8486
8486
|
function v() {
|
|
8487
|
-
var
|
|
8487
|
+
var O, oe;
|
|
8488
8488
|
if (!u.value) {
|
|
8489
8489
|
r.value = [...s.value];
|
|
8490
8490
|
return;
|
|
8491
8491
|
}
|
|
8492
|
-
const w = u.value.status, z = (
|
|
8492
|
+
const w = u.value.status, z = (O = [...u.value.messages].reverse().find((J) => J.role === "assistant")) == null ? void 0 : O.id, _ = (oe = u.value.messages[u.value.messages.length - 1]) == null ? void 0 : oe.id, q = u.value.messages.map(
|
|
8493
8493
|
(J) => D(
|
|
8494
8494
|
J,
|
|
8495
8495
|
w,
|
|
@@ -8497,7 +8497,7 @@ const sr = Bi("chat", () => {
|
|
|
8497
8497
|
J.id === _
|
|
8498
8498
|
)
|
|
8499
8499
|
);
|
|
8500
|
-
r.value = [...
|
|
8500
|
+
r.value = [...q, ...s.value];
|
|
8501
8501
|
}
|
|
8502
8502
|
Ol(() => {
|
|
8503
8503
|
u.value && (u.value.messages.length, u.value.status), v();
|
|
@@ -8511,7 +8511,7 @@ const sr = Bi("chat", () => {
|
|
|
8511
8511
|
const z = w.trim();
|
|
8512
8512
|
if (!z.startsWith("/"))
|
|
8513
8513
|
return { userContent: z };
|
|
8514
|
-
const [_, ...
|
|
8514
|
+
const [_, ...q] = z.split(/\s+/), O = _.toLowerCase(), oe = q.join(" ").trim(), ae = {
|
|
8515
8515
|
"/suggestprice": "suggestPrice",
|
|
8516
8516
|
"/price": "suggestPrice",
|
|
8517
8517
|
"/suggestdescription": "suggestDescription",
|
|
@@ -8521,7 +8521,7 @@ const sr = Bi("chat", () => {
|
|
|
8521
8521
|
"/askreport": "askReport",
|
|
8522
8522
|
"/report": "askReport",
|
|
8523
8523
|
"/ask": "askReport"
|
|
8524
|
-
}[
|
|
8524
|
+
}[O];
|
|
8525
8525
|
return ae ? oe ? {
|
|
8526
8526
|
command: ae,
|
|
8527
8527
|
userContent: oe
|
|
@@ -8536,7 +8536,7 @@ const sr = Bi("chat", () => {
|
|
|
8536
8536
|
}[ae]
|
|
8537
8537
|
} : { userContent: z };
|
|
8538
8538
|
}
|
|
8539
|
-
function
|
|
8539
|
+
function C(w) {
|
|
8540
8540
|
s.value.push({
|
|
8541
8541
|
id: `msg-${Date.now()}-assistant-local`,
|
|
8542
8542
|
role: "assistant",
|
|
@@ -8544,14 +8544,14 @@ const sr = Bi("chat", () => {
|
|
|
8544
8544
|
timestamp: Date.now()
|
|
8545
8545
|
}), v();
|
|
8546
8546
|
}
|
|
8547
|
-
function
|
|
8547
|
+
function S() {
|
|
8548
8548
|
var J, ae, ce;
|
|
8549
|
-
const w = (J = p.sessionUser.value) == null ? void 0 : J.token, z = p.currentRestaurant.value, _ = z == null ? void 0 : z.businessId,
|
|
8549
|
+
const w = (J = p.sessionUser.value) == null ? void 0 : J.token, z = p.currentRestaurant.value, _ = z == null ? void 0 : z.businessId, q = ((ce = (ae = z == null ? void 0 : z.profile) == null ? void 0 : ae.address) == null ? void 0 : ce.coordinates) || [], O = q[0] || 0, oe = q[1] || 0;
|
|
8550
8550
|
return !w || !_ ? null : {
|
|
8551
8551
|
token: w,
|
|
8552
8552
|
businessId: _,
|
|
8553
8553
|
latitude: oe,
|
|
8554
|
-
longitude:
|
|
8554
|
+
longitude: O
|
|
8555
8555
|
};
|
|
8556
8556
|
}
|
|
8557
8557
|
function b(w) {
|
|
@@ -8568,21 +8568,21 @@ const sr = Bi("chat", () => {
|
|
|
8568
8568
|
filename: "image-upload"
|
|
8569
8569
|
};
|
|
8570
8570
|
if (w.startsWith("https://")) {
|
|
8571
|
-
const
|
|
8571
|
+
const q = w.match(/\.(jpg|jpeg|png|webp)(?:\?|$)/i), O = (_ = q == null ? void 0 : q[1]) == null ? void 0 : _.toLowerCase();
|
|
8572
8572
|
return {
|
|
8573
8573
|
type: "file",
|
|
8574
|
-
mediaType:
|
|
8574
|
+
mediaType: O === "jpg" || O === "jpeg" ? "image/jpeg" : O === "png" ? "image/png" : O === "webp" ? "image/webp" : "image/jpeg",
|
|
8575
8575
|
url: w,
|
|
8576
8576
|
filename: "image-upload"
|
|
8577
8577
|
};
|
|
8578
8578
|
}
|
|
8579
8579
|
return null;
|
|
8580
8580
|
}
|
|
8581
|
-
function D(w, z, _,
|
|
8581
|
+
function D(w, z, _, q) {
|
|
8582
8582
|
var Wt;
|
|
8583
|
-
const
|
|
8583
|
+
const O = w.parts.filter((Ie) => Ie.type === "text"), oe = O.map((Ie) => Ie.text).join(""), J = Fe(w.parts), ae = I(w.parts);
|
|
8584
8584
|
c.value[w.id] || (c.value[w.id] = Date.now());
|
|
8585
|
-
const ce =
|
|
8585
|
+
const ce = O.some((Ie) => Ie.state === "streaming"), Ht = w.parts.some((Ie) => N(Ie) ? Ie.state === "input-streaming" : !1), an = _ && (z === "submitted" || z === "streaming");
|
|
8586
8586
|
return {
|
|
8587
8587
|
id: w.id,
|
|
8588
8588
|
role: w.role === "assistant" ? "assistant" : "user",
|
|
@@ -8591,7 +8591,7 @@ const sr = Bi("chat", () => {
|
|
|
8591
8591
|
timestamp: c.value[w.id],
|
|
8592
8592
|
imageData: ae || void 0,
|
|
8593
8593
|
feedback: i.value[w.id],
|
|
8594
|
-
isStreaming: w.role === "assistant" &&
|
|
8594
|
+
isStreaming: w.role === "assistant" && q && (an || ce || Ht),
|
|
8595
8595
|
toolCalls: J.length > 0 ? J : void 0
|
|
8596
8596
|
};
|
|
8597
8597
|
}
|
|
@@ -8616,7 +8616,7 @@ const sr = Bi("chat", () => {
|
|
|
8616
8616
|
return w.type === "dynamic-tool" ? typeof w.toolName == "string" ? w.toolName : null : w.type.startsWith("tool-") ? w.type.slice(5) : null;
|
|
8617
8617
|
}
|
|
8618
8618
|
function Fe(w) {
|
|
8619
|
-
const z = [], _ = /* @__PURE__ */ new Set(),
|
|
8619
|
+
const z = [], _ = /* @__PURE__ */ new Set(), q = /* @__PURE__ */ new Set(), O = (J) => {
|
|
8620
8620
|
const ae = ge(J);
|
|
8621
8621
|
if (!ae || typeof J.toolCallId != "string" || _.has(J.toolCallId))
|
|
8622
8622
|
return;
|
|
@@ -8629,9 +8629,9 @@ const sr = Bi("chat", () => {
|
|
|
8629
8629
|
};
|
|
8630
8630
|
J.state === "output-available" ? ce.result = J.output : J.state === "output-error" && (ce.result = { error: J.errorText }), z.push(ce);
|
|
8631
8631
|
}, oe = (J) => {
|
|
8632
|
-
if (J == null ||
|
|
8632
|
+
if (J == null || q.has(J) || typeof J != "object")
|
|
8633
8633
|
return;
|
|
8634
|
-
if (
|
|
8634
|
+
if (q.add(J), Array.isArray(J)) {
|
|
8635
8635
|
for (const ce of J)
|
|
8636
8636
|
oe(ce);
|
|
8637
8637
|
return;
|
|
@@ -8639,14 +8639,14 @@ const sr = Bi("chat", () => {
|
|
|
8639
8639
|
const ae = J;
|
|
8640
8640
|
if (Array.isArray(ae.parts))
|
|
8641
8641
|
for (const ce of ae.parts)
|
|
8642
|
-
X(ce) && (
|
|
8642
|
+
X(ce) && (O(ce), ce.state === "output-available" && oe(ce.output));
|
|
8643
8643
|
for (const ce of Object.values(ae))
|
|
8644
8644
|
oe(ce);
|
|
8645
8645
|
};
|
|
8646
8646
|
return oe(w), z;
|
|
8647
8647
|
}
|
|
8648
8648
|
async function ie() {
|
|
8649
|
-
const w =
|
|
8649
|
+
const w = S();
|
|
8650
8650
|
if (!w) {
|
|
8651
8651
|
console.log("[Chat Store] Waiting for business context before initializing chat transport");
|
|
8652
8652
|
return;
|
|
@@ -8658,8 +8658,8 @@ const sr = Bi("chat", () => {
|
|
|
8658
8658
|
new am({
|
|
8659
8659
|
transport: new pc({
|
|
8660
8660
|
api: `${z}/chat`,
|
|
8661
|
-
prepareSendMessagesRequest: ({ id:
|
|
8662
|
-
const ce =
|
|
8661
|
+
prepareSendMessagesRequest: ({ id: q, messages: O, trigger: oe, messageId: J, body: ae }) => {
|
|
8662
|
+
const ce = S();
|
|
8663
8663
|
if (!ce)
|
|
8664
8664
|
throw new Error("Missing authentication context");
|
|
8665
8665
|
return {
|
|
@@ -8667,8 +8667,8 @@ const sr = Bi("chat", () => {
|
|
|
8667
8667
|
Authorization: `Bearer ${ce.token}`
|
|
8668
8668
|
},
|
|
8669
8669
|
body: {
|
|
8670
|
-
id:
|
|
8671
|
-
messages:
|
|
8670
|
+
id: q,
|
|
8671
|
+
messages: O,
|
|
8672
8672
|
trigger: oe,
|
|
8673
8673
|
messageId: J,
|
|
8674
8674
|
...ae ?? {},
|
|
@@ -8680,8 +8680,12 @@ const sr = Bi("chat", () => {
|
|
|
8680
8680
|
};
|
|
8681
8681
|
}
|
|
8682
8682
|
}),
|
|
8683
|
-
onError: (
|
|
8684
|
-
console.error("[Chat Store] Chat error:",
|
|
8683
|
+
onError: (q) => {
|
|
8684
|
+
console.error("[Chat Store] Chat error:", q);
|
|
8685
|
+
const O = q instanceof Error ? q.message : String(q);
|
|
8686
|
+
O.includes("402") || O.toLowerCase().includes("insufficient tokens") || O.toLowerCase().includes("payment required") ? C(
|
|
8687
|
+
"You don't have enough tokens to continue. Please top up your balance."
|
|
8688
|
+
) : C("Something went wrong. Please try again.");
|
|
8685
8689
|
}
|
|
8686
8690
|
})
|
|
8687
8691
|
), o.value = _, s.value = []);
|
|
@@ -8689,42 +8693,42 @@ const sr = Bi("chat", () => {
|
|
|
8689
8693
|
async function Pe(w, z, _) {
|
|
8690
8694
|
if (!w.trim() && !z || d.value)
|
|
8691
8695
|
return;
|
|
8692
|
-
const
|
|
8693
|
-
if (
|
|
8694
|
-
|
|
8696
|
+
const q = _ ? { command: _, userContent: w.trim() } : g(w);
|
|
8697
|
+
if (q.error) {
|
|
8698
|
+
C(q.error);
|
|
8695
8699
|
return;
|
|
8696
8700
|
}
|
|
8697
|
-
const
|
|
8698
|
-
if (z && !oe && !
|
|
8699
|
-
|
|
8701
|
+
const O = q.command, oe = q.userContent.trim();
|
|
8702
|
+
if (z && !oe && !O) {
|
|
8703
|
+
C(
|
|
8700
8704
|
"Please add image instructions or choose /modifyImage before sending."
|
|
8701
8705
|
);
|
|
8702
8706
|
return;
|
|
8703
8707
|
}
|
|
8704
8708
|
if (await ie(), !u.value) {
|
|
8705
|
-
|
|
8709
|
+
C("Unable to connect to chat right now. Please refresh and try again.");
|
|
8706
8710
|
return;
|
|
8707
8711
|
}
|
|
8708
8712
|
const J = z ? A(z) : null;
|
|
8709
8713
|
if (z && !J) {
|
|
8710
|
-
|
|
8714
|
+
C("Invalid image format. Please try attaching the image again.");
|
|
8711
8715
|
return;
|
|
8712
8716
|
}
|
|
8713
8717
|
try {
|
|
8714
8718
|
await u.value.sendMessage(
|
|
8715
8719
|
{
|
|
8716
8720
|
text: oe,
|
|
8717
|
-
...
|
|
8721
|
+
...O ? { metadata: { command: O } } : {},
|
|
8718
8722
|
...J ? { files: [J] } : {}
|
|
8719
8723
|
},
|
|
8720
8724
|
{
|
|
8721
8725
|
body: {
|
|
8722
|
-
...
|
|
8726
|
+
...O ? { command: O } : {}
|
|
8723
8727
|
}
|
|
8724
8728
|
}
|
|
8725
8729
|
);
|
|
8726
8730
|
} catch (ae) {
|
|
8727
|
-
console.error("[Chat Store] Failed to send message:", ae),
|
|
8731
|
+
console.error("[Chat Store] Failed to send message:", ae), C("Error: Failed to send message");
|
|
8728
8732
|
}
|
|
8729
8733
|
}
|
|
8730
8734
|
function Ce() {
|
|
@@ -8738,8 +8742,8 @@ const sr = Bi("chat", () => {
|
|
|
8738
8742
|
(_) => _.id === w ? { ..._, feedback: z } : _
|
|
8739
8743
|
);
|
|
8740
8744
|
}
|
|
8741
|
-
async function
|
|
8742
|
-
const w =
|
|
8745
|
+
async function H() {
|
|
8746
|
+
const w = S();
|
|
8743
8747
|
if (w) {
|
|
8744
8748
|
h.value = !0, Promise.resolve().then(() => ti).then(({ useAppStore: z }) => z().loadTokenBalance());
|
|
8745
8749
|
try {
|
|
@@ -8759,69 +8763,69 @@ const sr = Bi("chat", () => {
|
|
|
8759
8763
|
}
|
|
8760
8764
|
}
|
|
8761
8765
|
async function x() {
|
|
8762
|
-
const w =
|
|
8766
|
+
const w = S();
|
|
8763
8767
|
if (w)
|
|
8764
8768
|
try {
|
|
8765
8769
|
const z = await ei(w.businessId);
|
|
8766
|
-
a.value = z.id, Ce(), await
|
|
8770
|
+
a.value = z.id, Ce(), await H();
|
|
8767
8771
|
} catch (z) {
|
|
8768
|
-
console.error("[Chat Store] Failed to create conversation:", z),
|
|
8772
|
+
console.error("[Chat Store] Failed to create conversation:", z), C("Failed to create new conversation. Please try again.");
|
|
8769
8773
|
}
|
|
8770
8774
|
}
|
|
8771
8775
|
async function M(w, z, _) {
|
|
8772
|
-
const
|
|
8773
|
-
if (
|
|
8776
|
+
const q = S();
|
|
8777
|
+
if (q)
|
|
8774
8778
|
try {
|
|
8775
|
-
const
|
|
8776
|
-
a.value =
|
|
8777
|
-
} catch (
|
|
8778
|
-
console.error("[Chat Store] Failed to create conversation and send message:",
|
|
8779
|
+
const O = await ei(q.businessId);
|
|
8780
|
+
a.value = O.id, Ce(), await H(), await ie(), await Pe(w, z, _);
|
|
8781
|
+
} catch (O) {
|
|
8782
|
+
console.error("[Chat Store] Failed to create conversation and send message:", O), C("Failed to create new conversation. Please try again.");
|
|
8779
8783
|
}
|
|
8780
8784
|
}
|
|
8781
|
-
async function
|
|
8782
|
-
if (
|
|
8785
|
+
async function U(w) {
|
|
8786
|
+
if (S()) {
|
|
8783
8787
|
f.value = !0;
|
|
8784
8788
|
try {
|
|
8785
8789
|
a.value = w, Ce();
|
|
8786
8790
|
const _ = await Gg(w);
|
|
8787
|
-
await ie(), u.value && (u.value.messages = _.map((
|
|
8788
|
-
const
|
|
8789
|
-
c.value[
|
|
8790
|
-
const oe =
|
|
8791
|
-
id:
|
|
8792
|
-
role:
|
|
8791
|
+
await ie(), u.value && (u.value.messages = _.map((q) => {
|
|
8792
|
+
const O = Yg(q);
|
|
8793
|
+
c.value[O.id] = O.timestamp, O.feedback && (i.value[O.id] = O.feedback);
|
|
8794
|
+
const oe = q.parts && q.parts.length > 0 ? q.parts : null, J = {
|
|
8795
|
+
id: O.id,
|
|
8796
|
+
role: O.role,
|
|
8793
8797
|
parts: oe ?? [
|
|
8794
8798
|
{
|
|
8795
8799
|
type: "text",
|
|
8796
|
-
text:
|
|
8800
|
+
text: O.content,
|
|
8797
8801
|
state: "done"
|
|
8798
8802
|
}
|
|
8799
8803
|
],
|
|
8800
|
-
metadata:
|
|
8804
|
+
metadata: O.command ? { command: O.command } : void 0
|
|
8801
8805
|
};
|
|
8802
|
-
return !oe &&
|
|
8806
|
+
return !oe && O.imageData && J.parts.push({
|
|
8803
8807
|
type: "file",
|
|
8804
8808
|
mediaType: "image/png",
|
|
8805
|
-
url:
|
|
8809
|
+
url: O.imageData,
|
|
8806
8810
|
filename: "image"
|
|
8807
8811
|
}), J;
|
|
8808
8812
|
})), v();
|
|
8809
8813
|
} catch (_) {
|
|
8810
|
-
console.error("[Chat Store] Failed to load conversation:", _),
|
|
8814
|
+
console.error("[Chat Store] Failed to load conversation:", _), C("Failed to load conversation. Please try again.");
|
|
8811
8815
|
} finally {
|
|
8812
8816
|
f.value = !1;
|
|
8813
8817
|
}
|
|
8814
8818
|
}
|
|
8815
8819
|
}
|
|
8816
8820
|
async function $(w) {
|
|
8817
|
-
w ? await
|
|
8821
|
+
w ? await U(w) : (a.value = null, Ce());
|
|
8818
8822
|
}
|
|
8819
8823
|
async function de() {
|
|
8820
|
-
if (!(!
|
|
8824
|
+
if (!(!S() || !a.value))
|
|
8821
8825
|
try {
|
|
8822
|
-
await Wg(a.value), a.value = null, Ce(), await
|
|
8826
|
+
await Wg(a.value), a.value = null, Ce(), await H();
|
|
8823
8827
|
} catch (z) {
|
|
8824
|
-
console.error("[Chat Store] Failed to delete conversation:", z),
|
|
8828
|
+
console.error("[Chat Store] Failed to delete conversation:", z), C("Failed to delete conversation. Please try again.");
|
|
8825
8829
|
}
|
|
8826
8830
|
}
|
|
8827
8831
|
return {
|
|
@@ -8838,10 +8842,10 @@ const sr = Bi("chat", () => {
|
|
|
8838
8842
|
sendMessage: Pe,
|
|
8839
8843
|
clearConversation: Ce,
|
|
8840
8844
|
updateMessageFeedback: R,
|
|
8841
|
-
loadConversations:
|
|
8845
|
+
loadConversations: H,
|
|
8842
8846
|
createNewConversation: x,
|
|
8843
8847
|
createConversationAndSendMessage: M,
|
|
8844
|
-
loadConversation:
|
|
8848
|
+
loadConversation: U,
|
|
8845
8849
|
switchConversation: $,
|
|
8846
8850
|
deleteCurrentConversation: de
|
|
8847
8851
|
};
|
|
@@ -9105,13 +9109,13 @@ Ur.prototype.parse = function(e, t) {
|
|
|
9105
9109
|
if (!p) {
|
|
9106
9110
|
const d = this.hostname.split(/\./);
|
|
9107
9111
|
for (let v = 0, g = d.length; v < g; v++) {
|
|
9108
|
-
const
|
|
9109
|
-
if (
|
|
9110
|
-
let
|
|
9111
|
-
for (let b = 0, A =
|
|
9112
|
-
|
|
9113
|
-
if (!
|
|
9114
|
-
const b = d.slice(0, v), A = d.slice(v + 1), D =
|
|
9112
|
+
const C = d[v];
|
|
9113
|
+
if (C && !C.match(si)) {
|
|
9114
|
+
let S = "";
|
|
9115
|
+
for (let b = 0, A = C.length; b < A; b++)
|
|
9116
|
+
C.charCodeAt(b) > 127 ? S += "x" : S += C[b];
|
|
9117
|
+
if (!S.match(si)) {
|
|
9118
|
+
const b = d.slice(0, v), A = d.slice(v + 1), D = C.match(p2);
|
|
9115
9119
|
D && (b.push(D[1]), A.unshift(D[2])), A.length && (o = A.join(".") + o), this.hostname = b.join(".");
|
|
9116
9120
|
break;
|
|
9117
9121
|
}
|
|
@@ -10006,13 +10010,13 @@ function nb(e) {
|
|
|
10006
10010
|
continue;
|
|
10007
10011
|
let g = a[p].text;
|
|
10008
10012
|
a[p].schema ? a[p].schema === "mailto:" && !/^mailto:/i.test(g) ? g = e.md.normalizeLinkText("mailto:" + g).replace(/^mailto:/, "") : g = e.md.normalizeLinkText(g) : g = e.md.normalizeLinkText("http://" + g).replace(/^http:\/\//, "");
|
|
10009
|
-
const
|
|
10010
|
-
if (
|
|
10013
|
+
const C = a[p].index;
|
|
10014
|
+
if (C > h) {
|
|
10011
10015
|
const D = new e.Token("text", "", 0);
|
|
10012
|
-
D.content = c.slice(h,
|
|
10016
|
+
D.content = c.slice(h, C), D.level = f, l.push(D);
|
|
10013
10017
|
}
|
|
10014
|
-
const
|
|
10015
|
-
|
|
10018
|
+
const S = new e.Token("link_open", "a", 1);
|
|
10019
|
+
S.attrs = [["href", v]], S.level = f++, S.markup = "linkify", S.info = "auto", l.push(S);
|
|
10016
10020
|
const b = new e.Token("text", "", 0);
|
|
10017
10021
|
b.content = g, b.level = f, l.push(b);
|
|
10018
10022
|
const A = new e.Token("link_close", "a", -1);
|
|
@@ -10096,8 +10100,8 @@ function fb(e, t) {
|
|
|
10096
10100
|
v = e[n].content.charCodeAt(0);
|
|
10097
10101
|
break;
|
|
10098
10102
|
}
|
|
10099
|
-
const g = Jn(d) || Vn(String.fromCharCode(d)),
|
|
10100
|
-
if (b ? f = !1 :
|
|
10103
|
+
const g = Jn(d) || Vn(String.fromCharCode(d)), C = Jn(v) || Vn(String.fromCharCode(v)), S = Yn(d), b = Yn(v);
|
|
10104
|
+
if (b ? f = !1 : C && (S || g || (f = !1)), S ? h = !1 : g && (b || C || (h = !1)), v === 34 && l[0] === '"' && d >= 48 && d <= 57 && (h = f = !1), f && h && (f = g, h = C), !f && !h) {
|
|
10101
10105
|
p && (o.content = vr(o.content, l.index, li));
|
|
10102
10106
|
continue;
|
|
10103
10107
|
}
|
|
@@ -10306,8 +10310,8 @@ function mb(e, t, n, r) {
|
|
|
10306
10310
|
d.map = v;
|
|
10307
10311
|
const g = e.push("thead_open", "thead", 1);
|
|
10308
10312
|
g.map = [t, t + 1];
|
|
10309
|
-
const
|
|
10310
|
-
|
|
10313
|
+
const C = e.push("tr_open", "tr", 1);
|
|
10314
|
+
C.map = [t, t + 1];
|
|
10311
10315
|
for (let A = 0; A < a.length; A++) {
|
|
10312
10316
|
const D = e.push("th_open", "th", 1);
|
|
10313
10317
|
l[A] && (D.attrs = [["style", "text-align:" + l[A]]]);
|
|
@@ -10315,7 +10319,7 @@ function mb(e, t, n, r) {
|
|
|
10315
10319
|
I.content = a[A].trim(), I.children = [], e.push("th_close", "th", -1);
|
|
10316
10320
|
}
|
|
10317
10321
|
e.push("tr_close", "tr", -1), e.push("thead_close", "thead", -1);
|
|
10318
|
-
let
|
|
10322
|
+
let S, b = 0;
|
|
10319
10323
|
for (u = t + 2; u < n && !(e.sCount[u] < e.blkIndent); u++) {
|
|
10320
10324
|
let A = !1;
|
|
10321
10325
|
for (let I = 0, N = p.length; I < N; I++)
|
|
@@ -10327,7 +10331,7 @@ function mb(e, t, n, r) {
|
|
|
10327
10331
|
break;
|
|
10328
10332
|
if (u === t + 2) {
|
|
10329
10333
|
const I = e.push("tbody_open", "tbody", 1);
|
|
10330
|
-
I.map =
|
|
10334
|
+
I.map = S = [t + 2, 0];
|
|
10331
10335
|
}
|
|
10332
10336
|
const D = e.push("tr_open", "tr", 1);
|
|
10333
10337
|
D.map = [u, u + 1];
|
|
@@ -10339,7 +10343,7 @@ function mb(e, t, n, r) {
|
|
|
10339
10343
|
}
|
|
10340
10344
|
e.push("tr_close", "tr", -1);
|
|
10341
10345
|
}
|
|
10342
|
-
return
|
|
10346
|
+
return S && (e.push("tbody_close", "tbody", -1), S[1] = u), e.push("table_close", "table", -1), v[1] = u, e.parentType = h, e.line = u, !0;
|
|
10343
10347
|
}
|
|
10344
10348
|
function gb(e, t, n) {
|
|
10345
10349
|
if (e.sCount[t] - e.blkIndent < 4)
|
|
@@ -10435,10 +10439,10 @@ function vb(e, t, n, r) {
|
|
|
10435
10439
|
e.blkIndent = 0;
|
|
10436
10440
|
const g = e.push("blockquote_open", "blockquote", 1);
|
|
10437
10441
|
g.markup = ">";
|
|
10438
|
-
const
|
|
10439
|
-
g.map =
|
|
10440
|
-
const
|
|
10441
|
-
|
|
10442
|
+
const C = [t, 0];
|
|
10443
|
+
g.map = C, e.md.block.tokenize(e, t, d);
|
|
10444
|
+
const S = e.push("blockquote_close", "blockquote", -1);
|
|
10445
|
+
S.markup = ">", e.lineMax = s, e.parentType = h, C[1] = e.line;
|
|
10442
10446
|
for (let b = 0; b < l.length; b++)
|
|
10443
10447
|
e.bMarks[b + t] = i[b], e.tShift[b + t] = l[b], e.sCount[b + t] = a[b], e.bsCount[b + t] = c[b];
|
|
10444
10448
|
return e.blkIndent = v, !0;
|
|
@@ -10528,17 +10532,17 @@ function Eb(e, t, n, r) {
|
|
|
10528
10532
|
f ? (i = e.push("ordered_list_open", "ol", 1), h !== 1 && (i.attrs = [["start", h]])) : i = e.push("bullet_list_open", "ul", 1);
|
|
10529
10533
|
const g = [c, 0];
|
|
10530
10534
|
i.map = g, i.markup = String.fromCharCode(d);
|
|
10531
|
-
let
|
|
10532
|
-
const
|
|
10535
|
+
let C = !1;
|
|
10536
|
+
const S = e.md.block.ruler.getRules("list"), b = e.parentType;
|
|
10533
10537
|
for (e.parentType = "list"; c < n; ) {
|
|
10534
10538
|
o = p, u = e.eMarks[c];
|
|
10535
10539
|
const A = e.sCount[c] + p - (e.bMarks[c] + e.tShift[c]);
|
|
10536
10540
|
let D = A;
|
|
10537
10541
|
for (; o < u; ) {
|
|
10538
|
-
const
|
|
10539
|
-
if (
|
|
10542
|
+
const H = e.src.charCodeAt(o);
|
|
10543
|
+
if (H === 9)
|
|
10540
10544
|
D += 4 - (D + e.bsCount[c]) % 4;
|
|
10541
|
-
else if (
|
|
10545
|
+
else if (H === 32)
|
|
10542
10546
|
D++;
|
|
10543
10547
|
else
|
|
10544
10548
|
break;
|
|
@@ -10552,11 +10556,11 @@ function Eb(e, t, n, r) {
|
|
|
10552
10556
|
const ge = [c, 0];
|
|
10553
10557
|
i.map = ge, f && (i.info = e.src.slice(s, p - 1));
|
|
10554
10558
|
const Fe = e.tight, ie = e.tShift[c], Pe = e.sCount[c], Ce = e.listIndent;
|
|
10555
|
-
if (e.listIndent = e.blkIndent, e.blkIndent = X, e.tight = !0, e.tShift[c] = I - e.bMarks[c], e.sCount[c] = D, I >= u && e.isEmpty(c + 1) ? e.line = Math.min(e.line + 2, n) : e.md.block.tokenize(e, c, n, !0), (!e.tight ||
|
|
10559
|
+
if (e.listIndent = e.blkIndent, e.blkIndent = X, e.tight = !0, e.tShift[c] = I - e.bMarks[c], e.sCount[c] = D, I >= u && e.isEmpty(c + 1) ? e.line = Math.min(e.line + 2, n) : e.md.block.tokenize(e, c, n, !0), (!e.tight || C) && (a = !1), C = e.line - c > 1 && e.isEmpty(e.line - 1), e.blkIndent = e.listIndent, e.listIndent = Ce, e.tShift[c] = ie, e.sCount[c] = Pe, e.tight = Fe, i = e.push("list_item_close", "li", -1), i.markup = String.fromCharCode(d), c = e.line, ge[1] = c, c >= n || e.sCount[c] < e.blkIndent || e.sCount[c] - e.blkIndent >= 4)
|
|
10556
10560
|
break;
|
|
10557
10561
|
let R = !1;
|
|
10558
|
-
for (let
|
|
10559
|
-
if (
|
|
10562
|
+
for (let H = 0, x = S.length; H < x; H++)
|
|
10563
|
+
if (S[H](e, c, n, !0)) {
|
|
10560
10564
|
R = !0;
|
|
10561
10565
|
break;
|
|
10562
10566
|
}
|
|
@@ -10577,40 +10581,40 @@ function wb(e, t, n, r) {
|
|
|
10577
10581
|
let u = e.bMarks[t] + e.tShift[t], o = e.eMarks[t], s = t + 1;
|
|
10578
10582
|
if (e.sCount[t] - e.blkIndent >= 4 || e.src.charCodeAt(u) !== 91)
|
|
10579
10583
|
return !1;
|
|
10580
|
-
function i(
|
|
10584
|
+
function i(S) {
|
|
10581
10585
|
const b = e.lineMax;
|
|
10582
|
-
if (
|
|
10586
|
+
if (S >= b || e.isEmpty(S))
|
|
10583
10587
|
return null;
|
|
10584
10588
|
let A = !1;
|
|
10585
|
-
if (e.sCount[
|
|
10589
|
+
if (e.sCount[S] - e.blkIndent > 3 && (A = !0), e.sCount[S] < 0 && (A = !0), !A) {
|
|
10586
10590
|
const N = e.md.block.ruler.getRules("reference"), X = e.parentType;
|
|
10587
10591
|
e.parentType = "reference";
|
|
10588
10592
|
let ge = !1;
|
|
10589
10593
|
for (let Fe = 0, ie = N.length; Fe < ie; Fe++)
|
|
10590
|
-
if (N[Fe](e,
|
|
10594
|
+
if (N[Fe](e, S, b, !0)) {
|
|
10591
10595
|
ge = !0;
|
|
10592
10596
|
break;
|
|
10593
10597
|
}
|
|
10594
10598
|
if (e.parentType = X, ge)
|
|
10595
10599
|
return null;
|
|
10596
10600
|
}
|
|
10597
|
-
const D = e.bMarks[
|
|
10601
|
+
const D = e.bMarks[S] + e.tShift[S], I = e.eMarks[S];
|
|
10598
10602
|
return e.src.slice(D, I + 1);
|
|
10599
10603
|
}
|
|
10600
10604
|
let c = e.src.slice(u, o + 1);
|
|
10601
10605
|
o = c.length;
|
|
10602
10606
|
let a = -1;
|
|
10603
10607
|
for (u = 1; u < o; u++) {
|
|
10604
|
-
const
|
|
10605
|
-
if (
|
|
10608
|
+
const S = c.charCodeAt(u);
|
|
10609
|
+
if (S === 91)
|
|
10606
10610
|
return !1;
|
|
10607
|
-
if (
|
|
10611
|
+
if (S === 93) {
|
|
10608
10612
|
a = u;
|
|
10609
10613
|
break;
|
|
10610
|
-
} else if (
|
|
10614
|
+
} else if (S === 10) {
|
|
10611
10615
|
const b = i(s);
|
|
10612
10616
|
b !== null && (c += b, o = c.length, s++);
|
|
10613
|
-
} else if (
|
|
10617
|
+
} else if (S === 92 && (u++, u < o && c.charCodeAt(u) === 10)) {
|
|
10614
10618
|
const b = i(s);
|
|
10615
10619
|
b !== null && (c += b, o = c.length, s++);
|
|
10616
10620
|
}
|
|
@@ -10618,11 +10622,11 @@ function wb(e, t, n, r) {
|
|
|
10618
10622
|
if (a < 0 || c.charCodeAt(a + 1) !== 58)
|
|
10619
10623
|
return !1;
|
|
10620
10624
|
for (u = a + 2; u < o; u++) {
|
|
10621
|
-
const
|
|
10622
|
-
if (
|
|
10625
|
+
const S = c.charCodeAt(u);
|
|
10626
|
+
if (S === 10) {
|
|
10623
10627
|
const b = i(s);
|
|
10624
10628
|
b !== null && (c += b, o = c.length, s++);
|
|
10625
|
-
} else if (!he(
|
|
10629
|
+
} else if (!he(S))
|
|
10626
10630
|
break;
|
|
10627
10631
|
}
|
|
10628
10632
|
const l = e.md.helpers.parseLinkDestination(c, u, o);
|
|
@@ -10634,38 +10638,38 @@ function wb(e, t, n, r) {
|
|
|
10634
10638
|
u = l.pos;
|
|
10635
10639
|
const h = u, p = s, d = u;
|
|
10636
10640
|
for (; u < o; u++) {
|
|
10637
|
-
const
|
|
10638
|
-
if (
|
|
10641
|
+
const S = c.charCodeAt(u);
|
|
10642
|
+
if (S === 10) {
|
|
10639
10643
|
const b = i(s);
|
|
10640
10644
|
b !== null && (c += b, o = c.length, s++);
|
|
10641
|
-
} else if (!he(
|
|
10645
|
+
} else if (!he(S))
|
|
10642
10646
|
break;
|
|
10643
10647
|
}
|
|
10644
10648
|
let v = e.md.helpers.parseLinkTitle(c, u, o);
|
|
10645
10649
|
for (; v.can_continue; ) {
|
|
10646
|
-
const
|
|
10647
|
-
if (
|
|
10650
|
+
const S = i(s);
|
|
10651
|
+
if (S === null)
|
|
10648
10652
|
break;
|
|
10649
|
-
c +=
|
|
10653
|
+
c += S, u = o, o = c.length, s++, v = e.md.helpers.parseLinkTitle(c, u, o, v);
|
|
10650
10654
|
}
|
|
10651
10655
|
let g;
|
|
10652
10656
|
for (u < o && d !== u && v.ok ? (g = v.str, u = v.pos) : (g = "", u = h, s = p); u < o; ) {
|
|
10653
|
-
const
|
|
10654
|
-
if (!he(
|
|
10657
|
+
const S = c.charCodeAt(u);
|
|
10658
|
+
if (!he(S))
|
|
10655
10659
|
break;
|
|
10656
10660
|
u++;
|
|
10657
10661
|
}
|
|
10658
10662
|
if (u < o && c.charCodeAt(u) !== 10 && g)
|
|
10659
10663
|
for (g = "", u = h, s = p; u < o; ) {
|
|
10660
|
-
const
|
|
10661
|
-
if (!he(
|
|
10664
|
+
const S = c.charCodeAt(u);
|
|
10665
|
+
if (!he(S))
|
|
10662
10666
|
break;
|
|
10663
10667
|
u++;
|
|
10664
10668
|
}
|
|
10665
10669
|
if (u < o && c.charCodeAt(u) !== 10)
|
|
10666
10670
|
return !1;
|
|
10667
|
-
const
|
|
10668
|
-
return
|
|
10671
|
+
const C = su(c.slice(1, a));
|
|
10672
|
+
return C ? (r || (typeof e.env.references > "u" && (e.env.references = {}), typeof e.env.references[C] > "u" && (e.env.references[C] = { title: g, href: f }), e.line = s), !0) : !1;
|
|
10669
10673
|
}
|
|
10670
10674
|
const kb = [
|
|
10671
10675
|
"address",
|
|
@@ -11242,8 +11246,8 @@ function Qb(e, t) {
|
|
|
11242
11246
|
e.env,
|
|
11243
11247
|
v
|
|
11244
11248
|
);
|
|
11245
|
-
const g = e.push("image", "img", 0),
|
|
11246
|
-
g.attrs =
|
|
11249
|
+
const g = e.push("image", "img", 0), C = [["src", l], ["alt", ""]];
|
|
11250
|
+
g.attrs = C, g.children = v, g.content = r, c && C.push(["title", c]);
|
|
11247
11251
|
}
|
|
11248
11252
|
return e.pos = o, e.posMax = h, !0;
|
|
11249
11253
|
}
|
|
@@ -12212,7 +12216,7 @@ const Ln = {
|
|
|
12212
12216
|
};
|
|
12213
12217
|
function ll() {
|
|
12214
12218
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : av();
|
|
12215
|
-
const t = (
|
|
12219
|
+
const t = (W) => ll(W);
|
|
12216
12220
|
if (t.version = "3.3.1", t.removed = [], !e || !e.document || e.document.nodeType !== Ln.document || !e.Element)
|
|
12217
12221
|
return t.isSupported = !1, t;
|
|
12218
12222
|
let {
|
|
@@ -12228,10 +12232,10 @@ function ll() {
|
|
|
12228
12232
|
HTMLFormElement: f,
|
|
12229
12233
|
DOMParser: h,
|
|
12230
12234
|
trustedTypes: p
|
|
12231
|
-
} = e, d = c.prototype, v = jn(d, "cloneNode"), g = jn(d, "remove"),
|
|
12235
|
+
} = e, d = c.prototype, v = jn(d, "cloneNode"), g = jn(d, "remove"), C = jn(d, "nextSibling"), S = jn(d, "childNodes"), b = jn(d, "parentNode");
|
|
12232
12236
|
if (typeof s == "function") {
|
|
12233
|
-
const
|
|
12234
|
-
|
|
12237
|
+
const W = n.createElement("template");
|
|
12238
|
+
W.content && W.content.ownerDocument && (n = W.content.ownerDocument);
|
|
12235
12239
|
}
|
|
12236
12240
|
let A, D = "";
|
|
12237
12241
|
const {
|
|
@@ -12248,10 +12252,10 @@ function ll() {
|
|
|
12248
12252
|
MUSTACHE_EXPR: Pe,
|
|
12249
12253
|
ERB_EXPR: Ce,
|
|
12250
12254
|
TMPLIT_EXPR: R,
|
|
12251
|
-
DATA_ATTR:
|
|
12255
|
+
DATA_ATTR: H,
|
|
12252
12256
|
ARIA_ATTR: x,
|
|
12253
12257
|
IS_SCRIPT_OR_DATA: M,
|
|
12254
|
-
ATTR_WHITESPACE:
|
|
12258
|
+
ATTR_WHITESPACE: U,
|
|
12255
12259
|
CUSTOM_ELEMENT: $
|
|
12256
12260
|
} = Si;
|
|
12257
12261
|
let {
|
|
@@ -12259,8 +12263,8 @@ function ll() {
|
|
|
12259
12263
|
} = Si, w = null;
|
|
12260
12264
|
const z = te({}, [...wi, ...Ou, ...Fu, ...Pu, ...ki]);
|
|
12261
12265
|
let _ = null;
|
|
12262
|
-
const
|
|
12263
|
-
let
|
|
12266
|
+
const q = te({}, [...Ai, ...Mu, ...Ci, ...Er]);
|
|
12267
|
+
let O = Object.seal(eo(null, {
|
|
12264
12268
|
tagNameCheck: {
|
|
12265
12269
|
writable: !0,
|
|
12266
12270
|
configurable: !1,
|
|
@@ -12296,7 +12300,7 @@ function ll() {
|
|
|
12296
12300
|
}));
|
|
12297
12301
|
let ce = !0, Ht = !0, an = !1, Wt = !0, Ie = !1, zt = !0, Me = !1, On = !1, Gt = !1, V = !1, Yt = !1, Se = !1, le = !0, Vt = !1;
|
|
12298
12302
|
const At = "user-content-";
|
|
12299
|
-
let Jt = !0, Ct = !1,
|
|
12303
|
+
let Jt = !0, Ct = !1, F = {}, j = null;
|
|
12300
12304
|
const K = te({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]);
|
|
12301
12305
|
let se = null;
|
|
12302
12306
|
const ze = te({}, ["audio", "video", "img", "source", "image", "track"]);
|
|
@@ -12315,7 +12319,7 @@ function ll() {
|
|
|
12315
12319
|
let m = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
12316
12320
|
if (!(fn && fn === m)) {
|
|
12317
12321
|
if ((!m || typeof m != "object") && (m = {}), m = bt(m), Fn = // eslint-disable-next-line unicorn/prefer-includes
|
|
12318
|
-
Sl.indexOf(m.PARSER_MEDIA_TYPE) === -1 ? Dl : m.PARSER_MEDIA_TYPE, Oe = Fn === "application/xhtml+xml" ? Ru : Tr, w = ft(m, "ALLOWED_TAGS") ? te({}, m.ALLOWED_TAGS, Oe) : z, _ = ft(m, "ALLOWED_ATTR") ? te({}, m.ALLOWED_ATTR, Oe) :
|
|
12322
|
+
Sl.indexOf(m.PARSER_MEDIA_TYPE) === -1 ? Dl : m.PARSER_MEDIA_TYPE, Oe = Fn === "application/xhtml+xml" ? Ru : Tr, w = ft(m, "ALLOWED_TAGS") ? te({}, m.ALLOWED_TAGS, Oe) : z, _ = ft(m, "ALLOWED_ATTR") ? te({}, m.ALLOWED_ATTR, Oe) : q, fu = ft(m, "ALLOWED_NAMESPACES") ? te({}, m.ALLOWED_NAMESPACES, Ru) : Al, et = ft(m, "ADD_URI_SAFE_ATTR") ? te(bt(lr), m.ADD_URI_SAFE_ATTR, Oe) : lr, se = ft(m, "ADD_DATA_URI_TAGS") ? te(bt(ze), m.ADD_DATA_URI_TAGS, Oe) : ze, j = ft(m, "FORBID_CONTENTS") ? te({}, m.FORBID_CONTENTS, Oe) : K, oe = ft(m, "FORBID_TAGS") ? te({}, m.FORBID_TAGS, Oe) : bt({}), J = ft(m, "FORBID_ATTR") ? te({}, m.FORBID_ATTR, Oe) : bt({}), F = ft(m, "USE_PROFILES") ? m.USE_PROFILES : !1, ce = m.ALLOW_ARIA_ATTR !== !1, Ht = m.ALLOW_DATA_ATTR !== !1, an = m.ALLOW_UNKNOWN_PROTOCOLS || !1, Wt = m.ALLOW_SELF_CLOSE_IN_ATTR !== !1, Ie = m.SAFE_FOR_TEMPLATES || !1, zt = m.SAFE_FOR_XML !== !1, Me = m.WHOLE_DOCUMENT || !1, V = m.RETURN_DOM || !1, Yt = m.RETURN_DOM_FRAGMENT || !1, Se = m.RETURN_TRUSTED_TYPE || !1, Gt = m.FORCE_BODY || !1, le = m.SANITIZE_DOM !== !1, Vt = m.SANITIZE_NAMED_PROPS || !1, Jt = m.KEEP_CONTENT !== !1, Ct = m.IN_PLACE || !1, de = m.ALLOWED_URI_REGEXP || al, ln = m.NAMESPACE || St, dr = m.MATHML_TEXT_INTEGRATION_POINTS || dr, pr = m.HTML_INTEGRATION_POINTS || pr, O = m.CUSTOM_ELEMENT_HANDLING || {}, m.CUSTOM_ELEMENT_HANDLING && _o(m.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (O.tagNameCheck = m.CUSTOM_ELEMENT_HANDLING.tagNameCheck), m.CUSTOM_ELEMENT_HANDLING && _o(m.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (O.attributeNameCheck = m.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), m.CUSTOM_ELEMENT_HANDLING && typeof m.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (O.allowCustomizedBuiltInElements = m.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), Ie && (Ht = !1), Yt && (V = !0), F && (w = te({}, ki), _ = [], F.html === !0 && (te(w, wi), te(_, Ai)), F.svg === !0 && (te(w, Ou), te(_, Mu), te(_, Er)), F.svgFilters === !0 && (te(w, Fu), te(_, Mu), te(_, Er)), F.mathMl === !0 && (te(w, Pu), te(_, Ci), te(_, Er))), m.ADD_TAGS && (typeof m.ADD_TAGS == "function" ? ae.tagCheck = m.ADD_TAGS : (w === z && (w = bt(w)), te(w, m.ADD_TAGS, Oe))), m.ADD_ATTR && (typeof m.ADD_ATTR == "function" ? ae.attributeCheck = m.ADD_ATTR : (_ === q && (_ = bt(_)), te(_, m.ADD_ATTR, Oe))), m.ADD_URI_SAFE_ATTR && te(et, m.ADD_URI_SAFE_ATTR, Oe), m.FORBID_CONTENTS && (j === K && (j = bt(j)), te(j, m.FORBID_CONTENTS, Oe)), m.ADD_FORBID_CONTENTS && (j === K && (j = bt(j)), te(j, m.ADD_FORBID_CONTENTS, Oe)), Jt && (w["#text"] = !0), Me && te(w, ["html", "head", "body"]), w.table && (te(w, ["tbody"]), delete oe.tbody), m.TRUSTED_TYPES_POLICY) {
|
|
12319
12323
|
if (typeof m.TRUSTED_TYPES_POLICY.createHTML != "function")
|
|
12320
12324
|
throw Nn('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
12321
12325
|
if (typeof m.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
|
@@ -12402,8 +12406,8 @@ function ll() {
|
|
|
12402
12406
|
}, Zo = function(m) {
|
|
12403
12407
|
return typeof i == "function" && m instanceof i;
|
|
12404
12408
|
};
|
|
12405
|
-
function Dt(
|
|
12406
|
-
xr(
|
|
12409
|
+
function Dt(W, m, T) {
|
|
12410
|
+
xr(W, (L) => {
|
|
12407
12411
|
L.call(t, m, T, fn);
|
|
12408
12412
|
});
|
|
12409
12413
|
}
|
|
@@ -12418,15 +12422,15 @@ function ll() {
|
|
|
12418
12422
|
}), zt && m.hasChildNodes() && !Zo(m.firstElementChild) && qe(/<[/\w!]/g, m.innerHTML) && qe(/<[/\w!]/g, m.textContent) || m.nodeType === Ln.progressingInstruction || zt && m.nodeType === Ln.comment && qe(/<[/\w]/g, m.data))
|
|
12419
12423
|
return gt(m), !0;
|
|
12420
12424
|
if (!(ae.tagCheck instanceof Function && ae.tagCheck(L)) && (!w[L] || oe[L])) {
|
|
12421
|
-
if (!oe[L] && Ho(L) && (
|
|
12425
|
+
if (!oe[L] && Ho(L) && (O.tagNameCheck instanceof RegExp && qe(O.tagNameCheck, L) || O.tagNameCheck instanceof Function && O.tagNameCheck(L)))
|
|
12422
12426
|
return !1;
|
|
12423
12427
|
if (Jt && !j[L]) {
|
|
12424
|
-
const Ee = b(m) || m.parentNode, Le =
|
|
12428
|
+
const Ee = b(m) || m.parentNode, Le = S(m) || m.childNodes;
|
|
12425
12429
|
if (Le && Ee) {
|
|
12426
12430
|
const Te = Le.length;
|
|
12427
12431
|
for (let Xe = Te - 1; Xe >= 0; --Xe) {
|
|
12428
12432
|
const It = v(Le[Xe], !0);
|
|
12429
|
-
It.__removalCount = (m.__removalCount || 0) + 1, Ee.insertBefore(It,
|
|
12433
|
+
It.__removalCount = (m.__removalCount || 0) + 1, Ee.insertBefore(It, C(m));
|
|
12430
12434
|
}
|
|
12431
12435
|
}
|
|
12432
12436
|
}
|
|
@@ -12440,7 +12444,7 @@ function ll() {
|
|
|
12440
12444
|
}, Uo = function(m, T, L) {
|
|
12441
12445
|
if (le && (T === "id" || T === "name") && (L in n || L in Il))
|
|
12442
12446
|
return !1;
|
|
12443
|
-
if (!(Ht && !J[T] && qe(
|
|
12447
|
+
if (!(Ht && !J[T] && qe(H, T))) {
|
|
12444
12448
|
if (!(ce && qe(x, T))) {
|
|
12445
12449
|
if (!(ae.attributeCheck instanceof Function && ae.attributeCheck(T, m))) {
|
|
12446
12450
|
if (!_[T] || J[T]) {
|
|
@@ -12448,15 +12452,15 @@ function ll() {
|
|
|
12448
12452
|
// First condition does a very basic check if a) it's basically a valid custom element tagname AND
|
|
12449
12453
|
// b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
12450
12454
|
// and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
|
|
12451
|
-
!(Ho(m) && (
|
|
12455
|
+
!(Ho(m) && (O.tagNameCheck instanceof RegExp && qe(O.tagNameCheck, m) || O.tagNameCheck instanceof Function && O.tagNameCheck(m)) && (O.attributeNameCheck instanceof RegExp && qe(O.attributeNameCheck, T) || O.attributeNameCheck instanceof Function && O.attributeNameCheck(T, m)) || // Alternative, second condition checks if it's an `is`-attribute, AND
|
|
12452
12456
|
// the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
12453
|
-
T === "is" &&
|
|
12457
|
+
T === "is" && O.allowCustomizedBuiltInElements && (O.tagNameCheck instanceof RegExp && qe(O.tagNameCheck, L) || O.tagNameCheck instanceof Function && O.tagNameCheck(L)))
|
|
12454
12458
|
)
|
|
12455
12459
|
return !1;
|
|
12456
12460
|
} else if (!et[T]) {
|
|
12457
|
-
if (!qe(de, _n(L,
|
|
12461
|
+
if (!qe(de, _n(L, U, ""))) {
|
|
12458
12462
|
if (!((T === "src" || T === "xlink:href" || T === "href") && m !== "script" && V3(L, "data:") === 0 && se[m])) {
|
|
12459
|
-
if (!(an && !qe(M, _n(L,
|
|
12463
|
+
if (!(an && !qe(M, _n(L, U, "")))) {
|
|
12460
12464
|
if (L)
|
|
12461
12465
|
return !1;
|
|
12462
12466
|
}
|
|
@@ -12536,44 +12540,44 @@ function ll() {
|
|
|
12536
12540
|
}
|
|
12537
12541
|
}
|
|
12538
12542
|
Dt(ie.afterSanitizeAttributes, m, null);
|
|
12539
|
-
}, Rl = function
|
|
12543
|
+
}, Rl = function W(m) {
|
|
12540
12544
|
let T = null;
|
|
12541
12545
|
const L = Bo(m);
|
|
12542
12546
|
for (Dt(ie.beforeSanitizeShadowDOM, m, null); T = L.nextNode(); )
|
|
12543
|
-
Dt(ie.uponSanitizeShadowNode, T, null), qo(T), Wo(T), T.content instanceof o &&
|
|
12547
|
+
Dt(ie.uponSanitizeShadowNode, T, null), qo(T), Wo(T), T.content instanceof o && W(T.content);
|
|
12544
12548
|
Dt(ie.afterSanitizeShadowDOM, m, null);
|
|
12545
12549
|
};
|
|
12546
|
-
return t.sanitize = function(
|
|
12550
|
+
return t.sanitize = function(W) {
|
|
12547
12551
|
let m = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, T = null, L = null, Ee = null, Le = null;
|
|
12548
|
-
if (lu = !
|
|
12549
|
-
if (typeof
|
|
12550
|
-
if (
|
|
12552
|
+
if (lu = !W, lu && (W = "<!-->"), typeof W != "string" && !Zo(W))
|
|
12553
|
+
if (typeof W.toString == "function") {
|
|
12554
|
+
if (W = W.toString(), typeof W != "string")
|
|
12551
12555
|
throw Nn("dirty is not a string, aborting");
|
|
12552
12556
|
} else
|
|
12553
12557
|
throw Nn("toString is not a function");
|
|
12554
12558
|
if (!t.isSupported)
|
|
12555
|
-
return
|
|
12556
|
-
if (On || du(m), t.removed = [], typeof
|
|
12557
|
-
if (
|
|
12558
|
-
const It = Oe(
|
|
12559
|
+
return W;
|
|
12560
|
+
if (On || du(m), t.removed = [], typeof W == "string" && (Ct = !1), Ct) {
|
|
12561
|
+
if (W.nodeName) {
|
|
12562
|
+
const It = Oe(W.nodeName);
|
|
12559
12563
|
if (!w[It] || oe[It])
|
|
12560
12564
|
throw Nn("root node is forbidden and cannot be sanitized in-place");
|
|
12561
12565
|
}
|
|
12562
|
-
} else if (
|
|
12563
|
-
T = Lo("<!---->"), L = T.ownerDocument.importNode(
|
|
12566
|
+
} else if (W instanceof i)
|
|
12567
|
+
T = Lo("<!---->"), L = T.ownerDocument.importNode(W, !0), L.nodeType === Ln.element && L.nodeName === "BODY" || L.nodeName === "HTML" ? T = L : T.appendChild(L);
|
|
12564
12568
|
else {
|
|
12565
12569
|
if (!V && !Ie && !Me && // eslint-disable-next-line unicorn/prefer-includes
|
|
12566
|
-
|
|
12567
|
-
return A && Se ? A.createHTML(
|
|
12568
|
-
if (T = Lo(
|
|
12570
|
+
W.indexOf("<") === -1)
|
|
12571
|
+
return A && Se ? A.createHTML(W) : W;
|
|
12572
|
+
if (T = Lo(W), !T)
|
|
12569
12573
|
return V ? null : Se ? D : "";
|
|
12570
12574
|
}
|
|
12571
12575
|
T && Gt && gt(T.firstChild);
|
|
12572
|
-
const Te = Bo(Ct ?
|
|
12576
|
+
const Te = Bo(Ct ? W : T);
|
|
12573
12577
|
for (; Ee = Te.nextNode(); )
|
|
12574
12578
|
qo(Ee), Wo(Ee), Ee.content instanceof o && Rl(Ee.content);
|
|
12575
12579
|
if (Ct)
|
|
12576
|
-
return
|
|
12580
|
+
return W;
|
|
12577
12581
|
if (V) {
|
|
12578
12582
|
if (Yt)
|
|
12579
12583
|
for (Le = X.call(T.ownerDocument); T.firstChild; )
|
|
@@ -12588,24 +12592,24 @@ function ll() {
|
|
|
12588
12592
|
Xe = _n(Xe, It, " ");
|
|
12589
12593
|
}), A && Se ? A.createHTML(Xe) : Xe;
|
|
12590
12594
|
}, t.setConfig = function() {
|
|
12591
|
-
let
|
|
12592
|
-
du(
|
|
12595
|
+
let W = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
12596
|
+
du(W), On = !0;
|
|
12593
12597
|
}, t.clearConfig = function() {
|
|
12594
12598
|
fn = null, On = !1;
|
|
12595
|
-
}, t.isValidAttribute = function(
|
|
12599
|
+
}, t.isValidAttribute = function(W, m, T) {
|
|
12596
12600
|
fn || du({});
|
|
12597
|
-
const L = Oe(
|
|
12601
|
+
const L = Oe(W), Ee = Oe(m);
|
|
12598
12602
|
return Uo(L, Ee, T);
|
|
12599
|
-
}, t.addHook = function(
|
|
12600
|
-
typeof m == "function" && Mn(ie[
|
|
12601
|
-
}, t.removeHook = function(
|
|
12603
|
+
}, t.addHook = function(W, m) {
|
|
12604
|
+
typeof m == "function" && Mn(ie[W], m);
|
|
12605
|
+
}, t.removeHook = function(W, m) {
|
|
12602
12606
|
if (m !== void 0) {
|
|
12603
|
-
const T = G3(ie[
|
|
12604
|
-
return T === -1 ? void 0 : Y3(ie[
|
|
12607
|
+
const T = G3(ie[W], m);
|
|
12608
|
+
return T === -1 ? void 0 : Y3(ie[W], T, 1)[0];
|
|
12605
12609
|
}
|
|
12606
|
-
return Ei(ie[
|
|
12607
|
-
}, t.removeHooks = function(
|
|
12608
|
-
ie[
|
|
12610
|
+
return Ei(ie[W]);
|
|
12611
|
+
}, t.removeHooks = function(W) {
|
|
12612
|
+
ie[W] = [];
|
|
12609
12613
|
}, t.removeAllHooks = function() {
|
|
12610
12614
|
ie = Di();
|
|
12611
12615
|
}, t;
|
|
@@ -13284,40 +13288,40 @@ const _u = dl, Fi = Nt, Pi = Symbol("nomatch"), n6 = 7, wl = function(e) {
|
|
|
13284
13288
|
function a(x) {
|
|
13285
13289
|
let M = x.className + " ";
|
|
13286
13290
|
M += x.parentNode ? x.parentNode.className : "";
|
|
13287
|
-
const
|
|
13288
|
-
if (
|
|
13289
|
-
const $ = X(
|
|
13290
|
-
return $ || (Oi(o.replace("{}",
|
|
13291
|
+
const U = i.languageDetectRe.exec(M);
|
|
13292
|
+
if (U) {
|
|
13293
|
+
const $ = X(U[1]);
|
|
13294
|
+
return $ || (Oi(o.replace("{}", U[1])), Oi("Falling back to no-highlight mode for this block.", x)), $ ? U[1] : "no-highlight";
|
|
13291
13295
|
}
|
|
13292
13296
|
return M.split(/\s+/).find(($) => c($) || X($));
|
|
13293
13297
|
}
|
|
13294
|
-
function l(x, M,
|
|
13298
|
+
function l(x, M, U) {
|
|
13295
13299
|
let $ = "", de = "";
|
|
13296
|
-
typeof M == "object" ? ($ = x,
|
|
13297
|
-
https://github.com/highlightjs/highlight.js/issues/2277`), de = x, $ = M),
|
|
13300
|
+
typeof M == "object" ? ($ = x, U = M.ignoreIllegals, de = M.language) : (mn("10.7.0", "highlight(lang, code, ...args) has been deprecated."), mn("10.7.0", `Please use highlight(code, options) instead.
|
|
13301
|
+
https://github.com/highlightjs/highlight.js/issues/2277`), de = x, $ = M), U === void 0 && (U = !0);
|
|
13298
13302
|
const w = {
|
|
13299
13303
|
code: $,
|
|
13300
13304
|
language: de
|
|
13301
13305
|
};
|
|
13302
13306
|
R("before:highlight", w);
|
|
13303
|
-
const z = w.result ? w.result : f(w.language, w.code,
|
|
13307
|
+
const z = w.result ? w.result : f(w.language, w.code, U);
|
|
13304
13308
|
return z.code = w.code, R("after:highlight", z), z;
|
|
13305
13309
|
}
|
|
13306
|
-
function f(x, M,
|
|
13310
|
+
function f(x, M, U, $) {
|
|
13307
13311
|
const de = /* @__PURE__ */ Object.create(null);
|
|
13308
|
-
function w(
|
|
13309
|
-
return
|
|
13312
|
+
function w(F, j) {
|
|
13313
|
+
return F.keywords[j];
|
|
13310
13314
|
}
|
|
13311
13315
|
function z() {
|
|
13312
13316
|
if (!V.keywords) {
|
|
13313
13317
|
Se.addText(le);
|
|
13314
13318
|
return;
|
|
13315
13319
|
}
|
|
13316
|
-
let
|
|
13320
|
+
let F = 0;
|
|
13317
13321
|
V.keywordPatternRe.lastIndex = 0;
|
|
13318
13322
|
let j = V.keywordPatternRe.exec(le), K = "";
|
|
13319
13323
|
for (; j; ) {
|
|
13320
|
-
K += le.substring(
|
|
13324
|
+
K += le.substring(F, j.index);
|
|
13321
13325
|
const se = Me.case_insensitive ? j[0].toLowerCase() : j[0], ze = w(V, se);
|
|
13322
13326
|
if (ze) {
|
|
13323
13327
|
const [et, lr] = ze;
|
|
@@ -13325,98 +13329,98 @@ https://github.com/highlightjs/highlight.js/issues/2277`), de = x, $ = M), q ===
|
|
|
13325
13329
|
K += j[0];
|
|
13326
13330
|
else {
|
|
13327
13331
|
const cn = Me.classNameAliases[et] || et;
|
|
13328
|
-
|
|
13332
|
+
O(j[0], cn);
|
|
13329
13333
|
}
|
|
13330
13334
|
} else
|
|
13331
13335
|
K += j[0];
|
|
13332
|
-
|
|
13336
|
+
F = V.keywordPatternRe.lastIndex, j = V.keywordPatternRe.exec(le);
|
|
13333
13337
|
}
|
|
13334
|
-
K += le.substring(
|
|
13338
|
+
K += le.substring(F), Se.addText(K);
|
|
13335
13339
|
}
|
|
13336
13340
|
function _() {
|
|
13337
13341
|
if (le === "")
|
|
13338
13342
|
return;
|
|
13339
|
-
let
|
|
13343
|
+
let F = null;
|
|
13340
13344
|
if (typeof V.subLanguage == "string") {
|
|
13341
13345
|
if (!t[V.subLanguage]) {
|
|
13342
13346
|
Se.addText(le);
|
|
13343
13347
|
return;
|
|
13344
13348
|
}
|
|
13345
|
-
|
|
13346
|
-
|
|
13349
|
+
F = f(V.subLanguage, le, !0, Yt[V.subLanguage]), Yt[V.subLanguage] = /** @type {CompiledMode} */
|
|
13350
|
+
F._top;
|
|
13347
13351
|
} else
|
|
13348
|
-
|
|
13349
|
-
V.relevance > 0 && (Vt +=
|
|
13352
|
+
F = p(le, V.subLanguage.length ? V.subLanguage : null);
|
|
13353
|
+
V.relevance > 0 && (Vt += F.relevance), Se.__addSublanguage(F._emitter, F.language);
|
|
13350
13354
|
}
|
|
13351
|
-
function
|
|
13355
|
+
function q() {
|
|
13352
13356
|
V.subLanguage != null ? _() : z(), le = "";
|
|
13353
13357
|
}
|
|
13354
|
-
function
|
|
13355
|
-
|
|
13358
|
+
function O(F, j) {
|
|
13359
|
+
F !== "" && (Se.startScope(j), Se.addText(F), Se.endScope());
|
|
13356
13360
|
}
|
|
13357
|
-
function oe(
|
|
13361
|
+
function oe(F, j) {
|
|
13358
13362
|
let K = 1;
|
|
13359
13363
|
const se = j.length - 1;
|
|
13360
13364
|
for (; K <= se; ) {
|
|
13361
|
-
if (!
|
|
13365
|
+
if (!F._emit[K]) {
|
|
13362
13366
|
K++;
|
|
13363
13367
|
continue;
|
|
13364
13368
|
}
|
|
13365
|
-
const ze = Me.classNameAliases[
|
|
13366
|
-
ze ?
|
|
13369
|
+
const ze = Me.classNameAliases[F[K]] || F[K], et = j[K];
|
|
13370
|
+
ze ? O(et, ze) : (le = et, z(), le = ""), K++;
|
|
13367
13371
|
}
|
|
13368
13372
|
}
|
|
13369
|
-
function J(
|
|
13370
|
-
return
|
|
13373
|
+
function J(F, j) {
|
|
13374
|
+
return F.scope && typeof F.scope == "string" && Se.openNode(Me.classNameAliases[F.scope] || F.scope), F.beginScope && (F.beginScope._wrap ? (O(le, Me.classNameAliases[F.beginScope._wrap] || F.beginScope._wrap), le = "") : F.beginScope._multi && (oe(F.beginScope, j), le = "")), V = Object.create(F, { parent: { value: V } }), V;
|
|
13371
13375
|
}
|
|
13372
|
-
function ae(
|
|
13373
|
-
let se = vv(
|
|
13376
|
+
function ae(F, j, K) {
|
|
13377
|
+
let se = vv(F.endRe, K);
|
|
13374
13378
|
if (se) {
|
|
13375
|
-
if (
|
|
13376
|
-
const ze = new Ii(
|
|
13377
|
-
|
|
13379
|
+
if (F["on:end"]) {
|
|
13380
|
+
const ze = new Ii(F);
|
|
13381
|
+
F["on:end"](j, ze), ze.isMatchIgnored && (se = !1);
|
|
13378
13382
|
}
|
|
13379
13383
|
if (se) {
|
|
13380
|
-
for (;
|
|
13381
|
-
|
|
13382
|
-
return
|
|
13384
|
+
for (; F.endsParent && F.parent; )
|
|
13385
|
+
F = F.parent;
|
|
13386
|
+
return F;
|
|
13383
13387
|
}
|
|
13384
13388
|
}
|
|
13385
|
-
if (
|
|
13386
|
-
return ae(
|
|
13389
|
+
if (F.endsWithParent)
|
|
13390
|
+
return ae(F.parent, j, K);
|
|
13387
13391
|
}
|
|
13388
|
-
function ce(
|
|
13389
|
-
return V.matcher.regexIndex === 0 ? (le +=
|
|
13392
|
+
function ce(F) {
|
|
13393
|
+
return V.matcher.regexIndex === 0 ? (le += F[0], 1) : (Ct = !0, 0);
|
|
13390
13394
|
}
|
|
13391
|
-
function Ht(
|
|
13392
|
-
const j =
|
|
13395
|
+
function Ht(F) {
|
|
13396
|
+
const j = F[0], K = F.rule, se = new Ii(K), ze = [K.__beforeBegin, K["on:begin"]];
|
|
13393
13397
|
for (const et of ze)
|
|
13394
|
-
if (et && (et(
|
|
13398
|
+
if (et && (et(F, se), se.isMatchIgnored))
|
|
13395
13399
|
return ce(j);
|
|
13396
|
-
return K.skip ? le += j : (K.excludeBegin && (le += j),
|
|
13400
|
+
return K.skip ? le += j : (K.excludeBegin && (le += j), q(), !K.returnBegin && !K.excludeBegin && (le = j)), J(K, F), K.returnBegin ? 0 : j.length;
|
|
13397
13401
|
}
|
|
13398
|
-
function an(
|
|
13399
|
-
const j =
|
|
13402
|
+
function an(F) {
|
|
13403
|
+
const j = F[0], K = M.substring(F.index), se = ae(V, F, K);
|
|
13400
13404
|
if (!se)
|
|
13401
13405
|
return Pi;
|
|
13402
13406
|
const ze = V;
|
|
13403
|
-
V.endScope && V.endScope._wrap ? (
|
|
13407
|
+
V.endScope && V.endScope._wrap ? (q(), O(j, V.endScope._wrap)) : V.endScope && V.endScope._multi ? (q(), oe(V.endScope, F)) : ze.skip ? le += j : (ze.returnEnd || ze.excludeEnd || (le += j), q(), ze.excludeEnd && (le = j));
|
|
13404
13408
|
do
|
|
13405
13409
|
V.scope && Se.closeNode(), !V.skip && !V.subLanguage && (Vt += V.relevance), V = V.parent;
|
|
13406
13410
|
while (V !== se.parent);
|
|
13407
|
-
return se.starts && J(se.starts,
|
|
13411
|
+
return se.starts && J(se.starts, F), ze.returnEnd ? 0 : j.length;
|
|
13408
13412
|
}
|
|
13409
13413
|
function Wt() {
|
|
13410
|
-
const
|
|
13414
|
+
const F = [];
|
|
13411
13415
|
for (let j = V; j !== Me; j = j.parent)
|
|
13412
|
-
j.scope &&
|
|
13413
|
-
|
|
13416
|
+
j.scope && F.unshift(j.scope);
|
|
13417
|
+
F.forEach((j) => Se.openNode(j));
|
|
13414
13418
|
}
|
|
13415
13419
|
let Ie = {};
|
|
13416
|
-
function zt(
|
|
13420
|
+
function zt(F, j) {
|
|
13417
13421
|
const K = j && j[0];
|
|
13418
|
-
if (le +=
|
|
13419
|
-
return
|
|
13422
|
+
if (le += F, K == null)
|
|
13423
|
+
return q(), 0;
|
|
13420
13424
|
if (Ie.type === "begin" && j.type === "end" && Ie.index === j.index && K === "") {
|
|
13421
13425
|
if (le += M.slice(j.index, j.index + 1), !u) {
|
|
13422
13426
|
const se = new Error(`0 width match regex (${x})`);
|
|
@@ -13426,7 +13430,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), de = x, $ = M), q ===
|
|
|
13426
13430
|
}
|
|
13427
13431
|
if (Ie = j, j.type === "begin")
|
|
13428
13432
|
return Ht(j);
|
|
13429
|
-
if (j.type === "illegal" && !
|
|
13433
|
+
if (j.type === "illegal" && !U) {
|
|
13430
13434
|
const se = new Error('Illegal lexeme "' + K + '" for mode "' + (V.scope || "<unnamed>") + '"');
|
|
13431
13435
|
throw se.mode = V, se;
|
|
13432
13436
|
} else if (j.type === "end") {
|
|
@@ -13455,11 +13459,11 @@ https://github.com/highlightjs/highlight.js/issues/2277`), de = x, $ = M), q ===
|
|
|
13455
13459
|
else {
|
|
13456
13460
|
for (V.matcher.considerAll(); ; ) {
|
|
13457
13461
|
Jt++, Ct ? Ct = !1 : V.matcher.considerAll(), V.matcher.lastIndex = At;
|
|
13458
|
-
const
|
|
13459
|
-
if (!
|
|
13462
|
+
const F = V.matcher.exec(M);
|
|
13463
|
+
if (!F)
|
|
13460
13464
|
break;
|
|
13461
|
-
const j = M.substring(At,
|
|
13462
|
-
At =
|
|
13465
|
+
const j = M.substring(At, F.index), K = zt(j, F);
|
|
13466
|
+
At = F.index + K;
|
|
13463
13467
|
}
|
|
13464
13468
|
zt(M.substring(At));
|
|
13465
13469
|
}
|
|
@@ -13471,18 +13475,18 @@ https://github.com/highlightjs/highlight.js/issues/2277`), de = x, $ = M), q ===
|
|
|
13471
13475
|
_emitter: Se,
|
|
13472
13476
|
_top: V
|
|
13473
13477
|
};
|
|
13474
|
-
} catch (
|
|
13475
|
-
if (
|
|
13478
|
+
} catch (F) {
|
|
13479
|
+
if (F.message && F.message.includes("Illegal"))
|
|
13476
13480
|
return {
|
|
13477
13481
|
language: x,
|
|
13478
13482
|
value: _u(M),
|
|
13479
13483
|
illegal: !0,
|
|
13480
13484
|
relevance: 0,
|
|
13481
13485
|
_illegalBy: {
|
|
13482
|
-
message:
|
|
13486
|
+
message: F.message,
|
|
13483
13487
|
index: At,
|
|
13484
13488
|
context: M.slice(At - 100, At + 100),
|
|
13485
|
-
mode:
|
|
13489
|
+
mode: F.mode,
|
|
13486
13490
|
resultSoFar: Gt
|
|
13487
13491
|
},
|
|
13488
13492
|
_emitter: Se
|
|
@@ -13493,11 +13497,11 @@ https://github.com/highlightjs/highlight.js/issues/2277`), de = x, $ = M), q ===
|
|
|
13493
13497
|
value: _u(M),
|
|
13494
13498
|
illegal: !1,
|
|
13495
13499
|
relevance: 0,
|
|
13496
|
-
errorRaised:
|
|
13500
|
+
errorRaised: F,
|
|
13497
13501
|
_emitter: Se,
|
|
13498
13502
|
_top: V
|
|
13499
13503
|
};
|
|
13500
|
-
throw
|
|
13504
|
+
throw F;
|
|
13501
13505
|
}
|
|
13502
13506
|
}
|
|
13503
13507
|
function h(x) {
|
|
@@ -13512,35 +13516,35 @@ https://github.com/highlightjs/highlight.js/issues/2277`), de = x, $ = M), q ===
|
|
|
13512
13516
|
}
|
|
13513
13517
|
function p(x, M) {
|
|
13514
13518
|
M = M || i.languages || Object.keys(t);
|
|
13515
|
-
const
|
|
13516
|
-
(
|
|
13519
|
+
const U = h(x), $ = M.filter(X).filter(Fe).map(
|
|
13520
|
+
(q) => f(q, x, !1)
|
|
13517
13521
|
);
|
|
13518
|
-
$.unshift(
|
|
13519
|
-
const de = $.sort((
|
|
13520
|
-
if (
|
|
13521
|
-
return
|
|
13522
|
-
if (
|
|
13523
|
-
if (X(
|
|
13522
|
+
$.unshift(U);
|
|
13523
|
+
const de = $.sort((q, O) => {
|
|
13524
|
+
if (q.relevance !== O.relevance)
|
|
13525
|
+
return O.relevance - q.relevance;
|
|
13526
|
+
if (q.language && O.language) {
|
|
13527
|
+
if (X(q.language).supersetOf === O.language)
|
|
13524
13528
|
return 1;
|
|
13525
|
-
if (X(
|
|
13529
|
+
if (X(O.language).supersetOf === q.language)
|
|
13526
13530
|
return -1;
|
|
13527
13531
|
}
|
|
13528
13532
|
return 0;
|
|
13529
13533
|
}), [w, z] = de, _ = w;
|
|
13530
13534
|
return _.secondBest = z, _;
|
|
13531
13535
|
}
|
|
13532
|
-
function d(x, M,
|
|
13533
|
-
const $ = M && n[M] ||
|
|
13536
|
+
function d(x, M, U) {
|
|
13537
|
+
const $ = M && n[M] || U;
|
|
13534
13538
|
x.classList.add("hljs"), x.classList.add(`language-${$}`);
|
|
13535
13539
|
}
|
|
13536
13540
|
function v(x) {
|
|
13537
13541
|
let M = null;
|
|
13538
|
-
const
|
|
13539
|
-
if (c(
|
|
13542
|
+
const U = a(x);
|
|
13543
|
+
if (c(U))
|
|
13540
13544
|
return;
|
|
13541
13545
|
if (R(
|
|
13542
13546
|
"before:highlightElement",
|
|
13543
|
-
{ el: x, language:
|
|
13547
|
+
{ el: x, language: U }
|
|
13544
13548
|
), x.dataset.highlighted) {
|
|
13545
13549
|
console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.", x);
|
|
13546
13550
|
return;
|
|
@@ -13551,8 +13555,8 @@ https://github.com/highlightjs/highlight.js/issues/2277`), de = x, $ = M), q ===
|
|
|
13551
13555
|
x.innerHTML
|
|
13552
13556
|
);
|
|
13553
13557
|
M = x;
|
|
13554
|
-
const $ = M.textContent, de =
|
|
13555
|
-
x.innerHTML = de.value, x.dataset.highlighted = "yes", d(x,
|
|
13558
|
+
const $ = M.textContent, de = U ? l($, { language: U, ignoreIllegals: !0 }) : p($);
|
|
13559
|
+
x.innerHTML = de.value, x.dataset.highlighted = "yes", d(x, U, de.language), x.result = {
|
|
13556
13560
|
language: de.language,
|
|
13557
13561
|
// TODO: remove with version 11.0
|
|
13558
13562
|
re: de.relevance,
|
|
@@ -13565,10 +13569,10 @@ https://github.com/highlightjs/highlight.js/issues/2277`), de = x, $ = M), q ===
|
|
|
13565
13569
|
function g(x) {
|
|
13566
13570
|
i = Fi(i, x);
|
|
13567
13571
|
}
|
|
13568
|
-
const
|
|
13572
|
+
const C = () => {
|
|
13569
13573
|
A(), mn("10.6.0", "initHighlighting() deprecated. Use highlightAll() now.");
|
|
13570
13574
|
};
|
|
13571
|
-
function
|
|
13575
|
+
function S() {
|
|
13572
13576
|
A(), mn("10.6.0", "initHighlightingOnLoad() deprecated. Use highlightAll() now.");
|
|
13573
13577
|
}
|
|
13574
13578
|
let b = !1;
|
|
@@ -13583,17 +13587,17 @@ https://github.com/highlightjs/highlight.js/issues/2277`), de = x, $ = M), q ===
|
|
|
13583
13587
|
document.querySelectorAll(i.cssSelector).forEach(v);
|
|
13584
13588
|
}
|
|
13585
13589
|
function D(x, M) {
|
|
13586
|
-
let
|
|
13590
|
+
let U = null;
|
|
13587
13591
|
try {
|
|
13588
|
-
|
|
13592
|
+
U = M(e);
|
|
13589
13593
|
} catch ($) {
|
|
13590
13594
|
if (en("Language definition for '{}' could not be registered.".replace("{}", x)), u)
|
|
13591
13595
|
en($);
|
|
13592
13596
|
else
|
|
13593
13597
|
throw $;
|
|
13594
|
-
|
|
13598
|
+
U = s;
|
|
13595
13599
|
}
|
|
13596
|
-
|
|
13600
|
+
U.name || (U.name = x), t[x] = U, U.rawDefinition = M.bind(null, e), U.aliases && ge(U.aliases, { languageName: x });
|
|
13597
13601
|
}
|
|
13598
13602
|
function I(x) {
|
|
13599
13603
|
delete t[x];
|
|
@@ -13607,8 +13611,8 @@ https://github.com/highlightjs/highlight.js/issues/2277`), de = x, $ = M), q ===
|
|
|
13607
13611
|
return x = (x || "").toLowerCase(), t[x] || t[n[x]];
|
|
13608
13612
|
}
|
|
13609
13613
|
function ge(x, { languageName: M }) {
|
|
13610
|
-
typeof x == "string" && (x = [x]), x.forEach((
|
|
13611
|
-
n[
|
|
13614
|
+
typeof x == "string" && (x = [x]), x.forEach((U) => {
|
|
13615
|
+
n[U.toLowerCase()] = M;
|
|
13612
13616
|
});
|
|
13613
13617
|
}
|
|
13614
13618
|
function Fe(x) {
|
|
@@ -13634,12 +13638,12 @@ https://github.com/highlightjs/highlight.js/issues/2277`), de = x, $ = M), q ===
|
|
|
13634
13638
|
M !== -1 && r.splice(M, 1);
|
|
13635
13639
|
}
|
|
13636
13640
|
function R(x, M) {
|
|
13637
|
-
const
|
|
13641
|
+
const U = x;
|
|
13638
13642
|
r.forEach(function($) {
|
|
13639
|
-
$[
|
|
13643
|
+
$[U] && $[U](M);
|
|
13640
13644
|
});
|
|
13641
13645
|
}
|
|
13642
|
-
function
|
|
13646
|
+
function H(x) {
|
|
13643
13647
|
return mn("10.7.0", "highlightBlock will be removed entirely in v12.0"), mn("10.7.0", "Please use highlightElement now."), v(x);
|
|
13644
13648
|
}
|
|
13645
13649
|
Object.assign(e, {
|
|
@@ -13648,10 +13652,10 @@ https://github.com/highlightjs/highlight.js/issues/2277`), de = x, $ = M), q ===
|
|
|
13648
13652
|
highlightAll: A,
|
|
13649
13653
|
highlightElement: v,
|
|
13650
13654
|
// TODO: Remove with v12 API
|
|
13651
|
-
highlightBlock:
|
|
13655
|
+
highlightBlock: H,
|
|
13652
13656
|
configure: g,
|
|
13653
|
-
initHighlighting:
|
|
13654
|
-
initHighlightingOnLoad:
|
|
13657
|
+
initHighlighting: C,
|
|
13658
|
+
initHighlightingOnLoad: S,
|
|
13655
13659
|
registerLanguage: D,
|
|
13656
13660
|
unregisterLanguage: I,
|
|
13657
13661
|
listLanguages: N,
|
|
@@ -14261,12 +14265,12 @@ const ny = { class: "composer" }, ry = { class: "composer__input-wrap" }, uy = {
|
|
|
14261
14265
|
`) ? "" : R.slice(1).toLowerCase();
|
|
14262
14266
|
}), g = We(() => {
|
|
14263
14267
|
const R = v.value;
|
|
14264
|
-
return R === "" ? r : r.filter((
|
|
14265
|
-
}),
|
|
14268
|
+
return R === "" ? r : r.filter((H) => H.command.toLowerCase().startsWith(R));
|
|
14269
|
+
}), C = We(
|
|
14266
14270
|
() => d.value && g.value.length > 0
|
|
14267
14271
|
);
|
|
14268
14272
|
dt(f, () => {
|
|
14269
|
-
Mt(() =>
|
|
14273
|
+
Mt(() => S());
|
|
14270
14274
|
}), dt(g, (R) => {
|
|
14271
14275
|
if (R.length === 0) {
|
|
14272
14276
|
a.value = 0;
|
|
@@ -14284,18 +14288,18 @@ const ny = { class: "composer" }, ry = { class: "composer__input-wrap" }, uy = {
|
|
|
14284
14288
|
(R) => {
|
|
14285
14289
|
if (!R)
|
|
14286
14290
|
return;
|
|
14287
|
-
const
|
|
14288
|
-
|
|
14291
|
+
const H = r.find((x) => x.command === R);
|
|
14292
|
+
H && (l.value = H), n.pendingCommand = null;
|
|
14289
14293
|
},
|
|
14290
14294
|
{ immediate: !0 }
|
|
14291
14295
|
);
|
|
14292
|
-
function
|
|
14296
|
+
function S() {
|
|
14293
14297
|
c.value && (c.value.style.height = "auto", c.value.style.height = `${c.value.scrollHeight}px`);
|
|
14294
14298
|
}
|
|
14295
14299
|
function b(R) {
|
|
14296
14300
|
l.value = R, f.value = "", a.value = 0, Mt(() => {
|
|
14297
|
-
var
|
|
14298
|
-
return (
|
|
14301
|
+
var H;
|
|
14302
|
+
return (H = c.value) == null ? void 0 : H.focus();
|
|
14299
14303
|
});
|
|
14300
14304
|
}
|
|
14301
14305
|
function A() {
|
|
@@ -14313,10 +14317,10 @@ const ny = { class: "composer" }, ry = { class: "composer__input-wrap" }, uy = {
|
|
|
14313
14317
|
async function N(R) {
|
|
14314
14318
|
var M;
|
|
14315
14319
|
R.preventDefault(), s.value = !1;
|
|
14316
|
-
const
|
|
14317
|
-
if (!
|
|
14320
|
+
const H = (M = R.dataTransfer) == null ? void 0 : M.files;
|
|
14321
|
+
if (!H || H.length === 0)
|
|
14318
14322
|
return;
|
|
14319
|
-
const x =
|
|
14323
|
+
const x = H[0];
|
|
14320
14324
|
await Fe(x);
|
|
14321
14325
|
}
|
|
14322
14326
|
function X() {
|
|
@@ -14324,11 +14328,11 @@ const ny = { class: "composer" }, ry = { class: "composer__input-wrap" }, uy = {
|
|
|
14324
14328
|
(R = i.value) == null || R.click();
|
|
14325
14329
|
}
|
|
14326
14330
|
async function ge(R) {
|
|
14327
|
-
const
|
|
14331
|
+
const H = R.target, x = H.files;
|
|
14328
14332
|
if (!x || x.length === 0)
|
|
14329
14333
|
return;
|
|
14330
14334
|
const M = x[0];
|
|
14331
|
-
await Fe(M),
|
|
14335
|
+
await Fe(M), H.value = "";
|
|
14332
14336
|
}
|
|
14333
14337
|
async function Fe(R) {
|
|
14334
14338
|
if (!["image/jpeg", "image/png", "image/webp"].includes(R.type)) {
|
|
@@ -14341,11 +14345,11 @@ const ny = { class: "composer" }, ry = { class: "composer__input-wrap" }, uy = {
|
|
|
14341
14345
|
return;
|
|
14342
14346
|
}
|
|
14343
14347
|
const M = new FileReader();
|
|
14344
|
-
M.onload = (
|
|
14348
|
+
M.onload = (U) => {
|
|
14345
14349
|
var $;
|
|
14346
14350
|
u.value = {
|
|
14347
14351
|
file: R,
|
|
14348
|
-
dataUrl: ($ =
|
|
14352
|
+
dataUrl: ($ = U.target) == null ? void 0 : $.result
|
|
14349
14353
|
};
|
|
14350
14354
|
}, M.readAsDataURL(R);
|
|
14351
14355
|
}
|
|
@@ -14353,20 +14357,20 @@ const ny = { class: "composer" }, ry = { class: "composer__input-wrap" }, uy = {
|
|
|
14353
14357
|
u.value = null;
|
|
14354
14358
|
}
|
|
14355
14359
|
async function Pe() {
|
|
14356
|
-
var
|
|
14360
|
+
var U;
|
|
14357
14361
|
if (p.value)
|
|
14358
14362
|
return;
|
|
14359
|
-
const R = f.value.trim(),
|
|
14363
|
+
const R = f.value.trim(), H = u.value, x = (U = l.value) == null ? void 0 : U.command;
|
|
14360
14364
|
f.value = "", l.value = null, u.value = null, Mt(() => {
|
|
14361
14365
|
var $;
|
|
14362
|
-
|
|
14366
|
+
S(), ($ = c.value) == null || $.focus();
|
|
14363
14367
|
});
|
|
14364
14368
|
let M;
|
|
14365
|
-
if (
|
|
14369
|
+
if (H)
|
|
14366
14370
|
try {
|
|
14367
|
-
o.value = !0, M = await ty(
|
|
14371
|
+
o.value = !0, M = await ty(H.file, H.dataUrl);
|
|
14368
14372
|
} catch ($) {
|
|
14369
|
-
console.error("[ChatInput] Failed to upload image:", $), u.value =
|
|
14373
|
+
console.error("[ChatInput] Failed to upload image:", $), u.value = H, f.value = R, l.value = r.find((de) => de.command === x) ?? null;
|
|
14370
14374
|
return;
|
|
14371
14375
|
} finally {
|
|
14372
14376
|
o.value = !1;
|
|
@@ -14378,7 +14382,7 @@ const ny = { class: "composer" }, ry = { class: "composer__input-wrap" }, uy = {
|
|
|
14378
14382
|
await n.sendMessage(R, M, x);
|
|
14379
14383
|
}
|
|
14380
14384
|
function Ce(R) {
|
|
14381
|
-
if (
|
|
14385
|
+
if (C.value) {
|
|
14382
14386
|
if (R.key === "ArrowDown") {
|
|
14383
14387
|
R.preventDefault(), a.value = (a.value + 1) % g.value.length;
|
|
14384
14388
|
return;
|
|
@@ -14389,8 +14393,8 @@ const ny = { class: "composer" }, ry = { class: "composer__input-wrap" }, uy = {
|
|
|
14389
14393
|
}
|
|
14390
14394
|
if (R.key === "Tab" || R.key === "Enter") {
|
|
14391
14395
|
R.preventDefault();
|
|
14392
|
-
const
|
|
14393
|
-
|
|
14396
|
+
const H = g.value[a.value];
|
|
14397
|
+
H && b(H);
|
|
14394
14398
|
return;
|
|
14395
14399
|
}
|
|
14396
14400
|
}
|
|
@@ -14400,7 +14404,7 @@ const ny = { class: "composer" }, ry = { class: "composer__input-wrap" }, uy = {
|
|
|
14400
14404
|
}
|
|
14401
14405
|
R.key === "Enter" && !R.shiftKey && (R.preventDefault(), Pe());
|
|
14402
14406
|
}
|
|
14403
|
-
return (R,
|
|
14407
|
+
return (R, H) => (Z(), G("div", ny, [
|
|
14404
14408
|
k("input", {
|
|
14405
14409
|
ref_key: "fileInputRef",
|
|
14406
14410
|
ref: i,
|
|
@@ -14410,12 +14414,12 @@ const ny = { class: "composer" }, ry = { class: "composer__input-wrap" }, uy = {
|
|
|
14410
14414
|
onChange: ge
|
|
14411
14415
|
}, null, 544),
|
|
14412
14416
|
k("div", ry, [
|
|
14413
|
-
|
|
14417
|
+
C.value ? (Z(), G("div", uy, [
|
|
14414
14418
|
(Z(!0), G(Rt, null, un(g.value, (x, M) => (Z(), G("button", {
|
|
14415
14419
|
key: x.command,
|
|
14416
14420
|
type: "button",
|
|
14417
14421
|
class: kr(["composer__slash-item", { "composer__slash-item--active": M === a.value }]),
|
|
14418
|
-
onMousedown: Nu((
|
|
14422
|
+
onMousedown: Nu((U) => b(x), ["prevent"])
|
|
14419
14423
|
}, [
|
|
14420
14424
|
k("span", sy, "/" + ve(x.command), 1),
|
|
14421
14425
|
k("span", iy, ve(x.description), 1)
|
|
@@ -14435,7 +14439,7 @@ const ny = { class: "composer" }, ry = { class: "composer__input-wrap" }, uy = {
|
|
|
14435
14439
|
disabled: De(n).isStreaming,
|
|
14436
14440
|
onClick: A,
|
|
14437
14441
|
"aria-label": "Remove selected command"
|
|
14438
|
-
}, [...
|
|
14442
|
+
}, [...H[1] || (H[1] = [
|
|
14439
14443
|
k("svg", {
|
|
14440
14444
|
width: "12",
|
|
14441
14445
|
height: "12",
|
|
@@ -14472,7 +14476,7 @@ const ny = { class: "composer" }, ry = { class: "composer__input-wrap" }, uy = {
|
|
|
14472
14476
|
type: "button",
|
|
14473
14477
|
onClick: ie,
|
|
14474
14478
|
"aria-label": "Remove image"
|
|
14475
|
-
}, [...
|
|
14479
|
+
}, [...H[2] || (H[2] = [
|
|
14476
14480
|
k("svg", {
|
|
14477
14481
|
width: "12",
|
|
14478
14482
|
height: "12",
|
|
@@ -14502,7 +14506,7 @@ const ny = { class: "composer" }, ry = { class: "composer__input-wrap" }, uy = {
|
|
|
14502
14506
|
Pl(k("textarea", {
|
|
14503
14507
|
ref_key: "textareaRef",
|
|
14504
14508
|
ref: c,
|
|
14505
|
-
"onUpdate:modelValue":
|
|
14509
|
+
"onUpdate:modelValue": H[0] || (H[0] = (x) => f.value = x),
|
|
14506
14510
|
placeholder: De(t)("remy.chat.placeholder"),
|
|
14507
14511
|
rows: "1",
|
|
14508
14512
|
class: "composer__textarea",
|
|
@@ -14517,7 +14521,7 @@ const ny = { class: "composer" }, ry = { class: "composer__input-wrap" }, uy = {
|
|
|
14517
14521
|
type: "button",
|
|
14518
14522
|
onClick: X,
|
|
14519
14523
|
"aria-label": "Attach image"
|
|
14520
|
-
}, [...
|
|
14524
|
+
}, [...H[3] || (H[3] = [
|
|
14521
14525
|
k("svg", {
|
|
14522
14526
|
width: "18",
|
|
14523
14527
|
height: "18",
|
|
@@ -14549,9 +14553,9 @@ const ny = { class: "composer" }, ry = { class: "composer__input-wrap" }, uy = {
|
|
|
14549
14553
|
onClick: Pe,
|
|
14550
14554
|
"aria-label": o.value ? "Uploading image…" : "Send message"
|
|
14551
14555
|
}, [
|
|
14552
|
-
o.value ? (Z(), G("svg", by, [...
|
|
14556
|
+
o.value ? (Z(), G("svg", by, [...H[4] || (H[4] = [
|
|
14553
14557
|
k("path", { d: "M12 2a10 10 0 0 1 10 10" }, null, -1)
|
|
14554
|
-
])])) : (Z(), G("svg", vy, [...
|
|
14558
|
+
])])) : (Z(), G("svg", vy, [...H[5] || (H[5] = [
|
|
14555
14559
|
k("path", { d: "M5 12h14" }, null, -1),
|
|
14556
14560
|
k("path", { d: "m12 5 7 7-7 7" }, null, -1)
|
|
14557
14561
|
])]))
|
|
@@ -14957,7 +14961,7 @@ const i4 = /* @__PURE__ */ at(Xy, [["__scopeId", "data-v-cc73b959"]]), Ky = [
|
|
|
14957
14961
|
{
|
|
14958
14962
|
path: "/",
|
|
14959
14963
|
name: "home",
|
|
14960
|
-
component: () => import("./HomeView-
|
|
14964
|
+
component: () => import("./HomeView-169d32d8.js")
|
|
14961
14965
|
}
|
|
14962
14966
|
], a4 = Nl({
|
|
14963
14967
|
history: jl(),
|
|
@@ -15063,7 +15067,7 @@ async function l4(e) {
|
|
|
15063
15067
|
throw new Error("Backend URL is required for Remy Chat initialization");
|
|
15064
15068
|
uu().initialize(), sr(), console.log("Remy Chat initialized");
|
|
15065
15069
|
}
|
|
15066
|
-
const f4 = Li(() => Promise.resolve().then(() => Yy)), d4 = Li(() => import("./RemyButton-
|
|
15070
|
+
const f4 = Li(() => Promise.resolve().then(() => Yy)), d4 = Li(() => import("./RemyButton-4437c13a.js"));
|
|
15067
15071
|
export {
|
|
15068
15072
|
i4 as A,
|
|
15069
15073
|
f4 as C,
|