@sourcegraph/amp 0.0.1749830540-ga4b4f1 → 0.0.1749844876-g4dbafe
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/amp.js +136 -136
- package/package.json +1 -1
package/dist/amp.js
CHANGED
@@ -7,7 +7,7 @@ import su, { promisify as Xd, isDeepStrictEqual as Bnt } from "node:util";
|
|
7
7
|
import * as nK from "node:os";
|
8
8
|
import Cs, { homedir as Jh, cpus as Unt, totalmem as $nt, freemem as znt, arch as qnt, release as Gnt, platform as O4 } from "node:os";
|
9
9
|
import * as Pp from "node:process";
|
10
|
-
import qa, { stdout as
|
10
|
+
import qa, { stdout as Di, stderr as Jr } from "node:process";
|
11
11
|
import * as lae from "node:tty";
|
12
12
|
import iK from "node:events";
|
13
13
|
import * as Hnt from "node:child_process";
|
@@ -5903,18 +5903,18 @@ function mot() {
|
|
5903
5903
|
var Fe = Ar.value;
|
5904
5904
|
if (Fe < lt && ++Tt > m && D("overflow"), Fe == lt) {
|
5905
5905
|
for (
|
5906
|
-
var
|
5906
|
+
var xi = Tt, qe = _;
|
5907
5907
|
;
|
5908
5908
|
/* no condition */
|
5909
5909
|
qe += _
|
5910
5910
|
) {
|
5911
5911
|
var mn = qe <= Ht ? v : qe >= Ht + y ? y : qe - Ht;
|
5912
|
-
if (
|
5912
|
+
if (xi < mn)
|
5913
5913
|
break;
|
5914
|
-
var ja =
|
5915
|
-
Pe.push(U(M(mn + ja % pa, 0))),
|
5914
|
+
var ja = xi - mn, pa = _ - mn;
|
5915
|
+
Pe.push(U(M(mn + ja % pa, 0))), xi = N(ja / pa);
|
5916
5916
|
}
|
5917
|
-
Pe.push(U(M(
|
5917
|
+
Pe.push(U(M(xi, 0))), Ht = q(Tt, Mr, At == _t), Tt = 0, ++At;
|
5918
5918
|
}
|
5919
5919
|
}
|
5920
5920
|
} catch (Fa) {
|
@@ -21738,9 +21738,9 @@ var zwe = /* @__PURE__ */ g((t) => (v0t(), yv.sanitize(t)), "removeScript"), Yoe
|
|
21738
21738
|
r === "antiscript" || r === "strict" ? t = zwe(t) : r !== "loose" && (t = qwe(t), t = t.replace(/</g, "<").replace(/>/g, ">"), t = t.replace(/=/g, "="), t = S0t(t));
|
21739
21739
|
}
|
21740
21740
|
return t;
|
21741
|
-
}, "sanitizeMore"),
|
21741
|
+
}, "sanitizeMore"), Ci = /* @__PURE__ */ g((t, e) => t && (e.dompurifyConfig ? t = yv.sanitize(Yoe(t, e), e.dompurifyConfig).toString() : t = yv.sanitize(Yoe(t, e), {
|
21742
21742
|
FORBID_TAGS: ["style"]
|
21743
|
-
}).toString(), t), "sanitizeText"), b0t = /* @__PURE__ */ g((t, e) => typeof t == "string" ?
|
21743
|
+
}).toString(), t), "sanitizeText"), b0t = /* @__PURE__ */ g((t, e) => typeof t == "string" ? Ci(t, e) : t.flat().map((r) => Ci(r, e)), "sanitizeTextOrArray"), E0t = /* @__PURE__ */ g((t) => ub.test(t), "hasBreaks"), T0t = /* @__PURE__ */ g((t) => t.split(ub), "splitBreaks"), S0t = /* @__PURE__ */ g((t) => t.replace(/#br#/g, "<br/>"), "placeholderToBreak"), qwe = /* @__PURE__ */ g((t) => t.replace(ub, "#br#"), "breakToPlaceholder"), w0t = /* @__PURE__ */ g((t) => {
|
21744
21744
|
let e = "";
|
21745
21745
|
return t && (e = window.location.protocol + "//" + window.location.host + window.location.pathname + window.location.search, e = e.replaceAll(/\(/g, "\\("), e = e.replaceAll(/\)/g, "\\)")), e;
|
21746
21746
|
}, "getUrl"), bi = /* @__PURE__ */ g((t) => !(t === !1 || ["false", "null", "0"].includes(String(t).trim().toLowerCase())), "evaluate"), C0t = /* @__PURE__ */ g(function(...t) {
|
@@ -21798,7 +21798,7 @@ var zwe = /* @__PURE__ */ g((t) => (v0t(), yv.sanitize(t)), "removeScript"), Yoe
|
|
21798
21798
|
);
|
21799
21799
|
}, "renderKatex"), Wt = {
|
21800
21800
|
getRows: y0t,
|
21801
|
-
sanitizeText:
|
21801
|
+
sanitizeText: Ci,
|
21802
21802
|
sanitizeTextOrArray: b0t,
|
21803
21803
|
hasBreaks: E0t,
|
21804
21804
|
splitBreaks: T0t,
|
@@ -21915,7 +21915,7 @@ ju(JK, {
|
|
21915
21915
|
setAccTitle: () => hs,
|
21916
21916
|
setDiagramTitle: () => js
|
21917
21917
|
});
|
21918
|
-
var ej = "", tj = "", rj = "", nj = /* @__PURE__ */ g((t) =>
|
21918
|
+
var ej = "", tj = "", rj = "", nj = /* @__PURE__ */ g((t) => Ci(t, Ei()), "sanitizeText"), _s = /* @__PURE__ */ g(() => {
|
21919
21919
|
ej = "", rj = "", tj = "";
|
21920
21920
|
}, "clear"), hs = /* @__PURE__ */ g((t) => {
|
21921
21921
|
ej = nj(t).replace(/^\s+/g, "");
|
@@ -21924,7 +21924,7 @@ var ej = "", tj = "", rj = "", nj = /* @__PURE__ */ g((t) => xi(t, Ei()), "sanit
|
|
21924
21924
|
`);
|
21925
21925
|
}, "setAccDescription"), Rs = /* @__PURE__ */ g(() => rj, "getAccDescription"), js = /* @__PURE__ */ g((t) => {
|
21926
21926
|
tj = nj(t);
|
21927
|
-
}, "setDiagramTitle"), ys = /* @__PURE__ */ g(() => tj, "getDiagramTitle"), Koe = Ce, L0t = jK, et = Ei, Xq = Nwe, Gwe = mv, ij = /* @__PURE__ */ g((t) =>
|
21927
|
+
}, "setDiagramTitle"), ys = /* @__PURE__ */ g(() => tj, "getDiagramTitle"), Koe = Ce, L0t = jK, et = Ei, Xq = Nwe, Gwe = mv, ij = /* @__PURE__ */ g((t) => Ci(t, et()), "sanitizeText"), Hwe = db, M0t = /* @__PURE__ */ g(() => JK, "getCommonDb"), d3 = {}, h3 = /* @__PURE__ */ g((t, e, r) => {
|
21928
21928
|
d3[t] && Koe.warn(`Diagram with id ${t} already registered. Overwriting.`), d3[t] = e, r && Twe(t, r), I0t(t, e.styles), e.injectUtils?.(
|
21929
21929
|
Koe,
|
21930
21930
|
L0t,
|
@@ -31488,7 +31488,7 @@ var Ol = /* @__PURE__ */ g(async (t, e = "", {
|
|
31488
31488
|
const a = t.insert("g").attr("class", n).attr("id", e.domId || e.id), s = a.insert("g").attr("class", "label").attr("style", Go(e.labelStyle));
|
31489
31489
|
let o;
|
31490
31490
|
e.label === void 0 ? o = "" : o = typeof e.label == "string" ? e.label : e.label[0];
|
31491
|
-
const l = await Ol(s,
|
31491
|
+
const l = await Ol(s, Ci(Gd(o), et()), {
|
31492
31492
|
useHtmlLabels: i,
|
31493
31493
|
width: e.width || et().flowchart?.wrappingWidth,
|
31494
31494
|
// @ts-expect-error -- This is currently not used. Should this be `classes` instead?
|
@@ -31524,7 +31524,7 @@ var Ol = /* @__PURE__ */ g(async (t, e = "", {
|
|
31524
31524
|
}
|
31525
31525
|
return i ? s.attr("transform", "translate(" + -u.width / 2 + ", " + -u.height / 2 + ")") : s.attr("transform", "translate(0, " + -u.height / 2 + ")"), e.centerLabel && s.attr("transform", "translate(" + -u.width / 2 + ", " + -u.height / 2 + ")"), s.insert("rect", ":first-child"), { shapeSvg: a, bbox: u, halfPadding: d, label: s };
|
31526
31526
|
}, "labelHelper"), J8 = /* @__PURE__ */ g(async (t, e, r) => {
|
31527
|
-
const n = r.useHtmlLabels || bi(et()?.flowchart?.htmlLabels), i = t.insert("g").attr("class", "label").attr("style", r.labelStyle || ""), a = await Ol(i,
|
31527
|
+
const n = r.useHtmlLabels || bi(et()?.flowchart?.htmlLabels), i = t.insert("g").attr("class", "label").attr("style", r.labelStyle || ""), a = await Ol(i, Ci(Gd(e), et()), {
|
31528
31528
|
useHtmlLabels: n,
|
31529
31529
|
width: r.width || et()?.flowchart?.wrappingWidth,
|
31530
31530
|
style: r.labelStyle,
|
@@ -55330,13 +55330,13 @@ function oNt() {
|
|
55330
55330
|
let Ar = "", Fe = "";
|
55331
55331
|
typeof vt == "object" ? (Ar = ut, Ct = vt.ignoreIllegals, Fe = vt.language, St = void 0) : (Re("10.7.0", "highlight(lang, code, ...args) has been deprecated."), Re("10.7.0", `Please use highlight(code, options) instead.
|
55332
55332
|
https://github.com/highlightjs/highlight.js/issues/2277`), Fe = ut, Ar = vt);
|
55333
|
-
const
|
55333
|
+
const xi = {
|
55334
55334
|
code: Ar,
|
55335
55335
|
language: Fe
|
55336
55336
|
};
|
55337
|
-
$r("before:highlight",
|
55338
|
-
const qe =
|
55339
|
-
return qe.code =
|
55337
|
+
$r("before:highlight", xi);
|
55338
|
+
const qe = xi.result ? xi.result : Et(xi.language, xi.code, Ct, St);
|
55339
|
+
return qe.code = xi.code, $r("after:highlight", qe), qe;
|
55340
55340
|
}
|
55341
55341
|
function Et(ut, vt, Ct, St) {
|
55342
55342
|
function Ar(gr, xr) {
|
@@ -55368,7 +55368,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Fe = ut, Ar = vt);
|
|
55368
55368
|
}
|
55369
55369
|
Hr += kn.substr(gr), Vn.addText(Hr);
|
55370
55370
|
}
|
55371
|
-
function
|
55371
|
+
function xi() {
|
55372
55372
|
if (kn === "") return;
|
55373
55373
|
let gr = null;
|
55374
55374
|
if (typeof rn.subLanguage == "string") {
|
@@ -55383,7 +55383,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Fe = ut, Ar = vt);
|
|
55383
55383
|
rn.relevance > 0 && (So += gr.relevance), Vn.addSublanguage(gr.emitter, gr.language);
|
55384
55384
|
}
|
55385
55385
|
function qe() {
|
55386
|
-
rn.subLanguage != null ?
|
55386
|
+
rn.subLanguage != null ? xi() : Fe(), kn = "";
|
55387
55387
|
}
|
55388
55388
|
function mn(gr) {
|
55389
55389
|
return gr.className && Vn.openNode(Ms.classNameAliases[gr.className] || gr.className), rn = Object.create(gr, { parent: { value: rn } }), rn;
|
@@ -55537,8 +55537,8 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Fe = ut, Ar = vt);
|
|
55537
55537
|
return -1;
|
55538
55538
|
}
|
55539
55539
|
return 0;
|
55540
|
-
}), [Fe,
|
55541
|
-
return qe.second_best =
|
55540
|
+
}), [Fe, xi] = Ar, qe = Fe;
|
55541
|
+
return qe.second_best = xi, qe;
|
55542
55542
|
}
|
55543
55543
|
function Lt(ut) {
|
55544
55544
|
return Je.tabReplace || Je.useBR ? ut.replace(rt, (vt) => vt === `
|
@@ -89765,7 +89765,7 @@ function K6t() {
|
|
89765
89765
|
[t.WHITESPACE_CHARACTER_TOKEN]: je,
|
89766
89766
|
[t.COMMENT_TOKEN]: Ee,
|
89767
89767
|
[t.DOCTYPE_TOKEN]: de,
|
89768
|
-
[t.START_TAG_TOKEN]:
|
89768
|
+
[t.START_TAG_TOKEN]: Ai,
|
89769
89769
|
[t.END_TAG_TOKEN]: Ti,
|
89770
89770
|
[t.EOF_TOKEN]: Ls
|
89771
89771
|
},
|
@@ -90409,7 +90409,7 @@ function K6t() {
|
|
90409
90409
|
function Fe(Q) {
|
90410
90410
|
Q.openElements.hasInListItemScope(f.LI) && (Q.openElements.generateImpliedEndTagsWithExclusion(f.LI), Q.openElements.popUntilTagNamePopped(f.LI));
|
90411
90411
|
}
|
90412
|
-
function
|
90412
|
+
function xi(Q, ne) {
|
90413
90413
|
const se = ne.tagName;
|
90414
90414
|
Q.openElements.hasInScope(se) && (Q.openElements.generateImpliedEndTagsWithExclusion(se), Q.openElements.popUntilTagNamePopped(se));
|
90415
90415
|
}
|
@@ -90442,7 +90442,7 @@ function K6t() {
|
|
90442
90442
|
se === f.A || se === f.B || se === f.I || se === f.S || se === f.U ? ve(Q, ne) : se === f.P ? Ar(Q) : pa(Q, ne);
|
90443
90443
|
break;
|
90444
90444
|
case 2:
|
90445
|
-
se === f.DL || se === f.UL || se === f.OL ? Ct(Q, ne) : se === f.LI ? Fe(Q) : se === f.DD || se === f.DT ?
|
90445
|
+
se === f.DL || se === f.UL || se === f.OL ? Ct(Q, ne) : se === f.LI ? Fe(Q) : se === f.DD || se === f.DT ? xi(Q, ne) : se === f.H1 || se === f.H2 || se === f.H3 || se === f.H4 || se === f.H5 || se === f.H6 ? qe(Q) : se === f.BR ? ja(Q) : se === f.EM || se === f.TT ? ve(Q, ne) : pa(Q, ne);
|
90446
90446
|
break;
|
90447
90447
|
case 3:
|
90448
90448
|
se === f.BIG ? ve(Q, ne) : se === f.DIR || se === f.DIV || se === f.NAV || se === f.PRE ? Ct(Q, ne) : pa(Q, ne);
|
@@ -90613,7 +90613,7 @@ function K6t() {
|
|
90613
90613
|
Q.openElements.currentTagName === f.OPTION && zr === f.OPTGROUP && Q.openElements.pop(), Q.openElements.currentTagName === f.OPTGROUP && Q.openElements.pop();
|
90614
90614
|
} else se === f.OPTION ? Q.openElements.currentTagName === f.OPTION && Q.openElements.pop() : se === f.SELECT && Q.openElements.hasInSelectScope(f.SELECT) ? (Q.openElements.popUntilTagNamePopped(f.SELECT), Q._resetInsertionMode()) : se === f.TEMPLATE && Ue(Q, ne);
|
90615
90615
|
}
|
90616
|
-
function
|
90616
|
+
function Ai(Q, ne) {
|
90617
90617
|
const se = ne.tagName;
|
90618
90618
|
se === f.CAPTION || se === f.TABLE || se === f.TBODY || se === f.TFOOT || se === f.THEAD || se === f.TR || se === f.TD || se === f.TH ? (Q.openElements.popUntilTagNamePopped(f.SELECT), Q._resetInsertionMode(), Q._processToken(ne)) : Tx(Q, ne);
|
90619
90619
|
}
|
@@ -100676,7 +100676,7 @@ function om(t, e, r) {
|
|
100676
100676
|
...n && e instanceof Error ? { stack: e.stack } : {},
|
100677
100677
|
...a ? { suggestion: a } : {}
|
100678
100678
|
};
|
100679
|
-
|
100679
|
+
Di.write(JSON.stringify(l) + `
|
100680
100680
|
`), process.exit(l.code);
|
100681
100681
|
}
|
100682
100682
|
Jr.write(
|
@@ -111722,7 +111722,7 @@ function M5(t, e, r) {
|
|
111722
111722
|
}
|
111723
111723
|
return { blocks: n };
|
111724
111724
|
}
|
111725
|
-
function _1e({ blocks: t }, e = (l) =>
|
111725
|
+
function _1e({ blocks: t }, e = (l) => Di.write(l + `
|
111726
111726
|
`), r, n, i, a, s, o) {
|
111727
111727
|
for (const l of t)
|
111728
111728
|
if (l.type === "message") {
|
@@ -113350,7 +113350,7 @@ async function Mhr({
|
|
113350
113350
|
}
|
113351
113351
|
async function Phr(t) {
|
113352
113352
|
try {
|
113353
|
-
const e = await Dhr("0.0.
|
113353
|
+
const e = await Dhr("0.0.1749844876-g4dbafe");
|
113354
113354
|
e.hasUpdate && e.latestVersion ? (t.next({ type: "update-start-updating" }), setTimeout(async () => {
|
113355
113355
|
try {
|
113356
113356
|
await Ohr(e.latestVersion), t.next({
|
@@ -115275,7 +115275,7 @@ async function T0(t, e) {
|
|
115275
115275
|
gR({
|
115276
115276
|
logLevel: e.logLevel || process.env.AMP_LOG_LEVEL,
|
115277
115277
|
logFile: e.logFile || process.env.AMP_LOG_FILE
|
115278
|
-
}), Uft("0.0.
|
115278
|
+
}), Uft("0.0.1749844876-g4dbafe");
|
115279
115279
|
const r = e.settingsFile ?? process.env.AMP_SETTINGS_FILE;
|
115280
115280
|
Qe.info("Using settings file", { settingsFile: r });
|
115281
115281
|
const n = O5(), i = OLe({ settingsFile: r }), a = process.env.AMP_API_KEY;
|
@@ -115307,7 +115307,7 @@ async function T0(t, e) {
|
|
115307
115307
|
}
|
115308
115308
|
}(), h = { [Symbol.dispose]: () => {
|
115309
115309
|
} };
|
115310
|
-
await n.get("apiKey", t.ampURL) || (
|
115310
|
+
await n.get("apiKey", t.ampURL) || (Di.write(`No API key found. Starting login flow...
|
115311
115311
|
`), await ifr(t, n) || process.exit(1));
|
115312
115312
|
const p = zlt(), f = new Fft(p), m = new wft(p), _ = new qRt(f), v = new Shr({
|
115313
115313
|
configService: s,
|
@@ -115340,12 +115340,12 @@ async function T0(t, e) {
|
|
115340
115340
|
};
|
115341
115341
|
}
|
115342
115342
|
async function ifr(t, e) {
|
115343
|
-
return t.isInteractiveMode && !(await M0("Would you like to log in to Amp?", ["(y)es", "(n)o"]) == "y") ? (
|
115343
|
+
return t.isInteractiveMode && !(await M0("Would you like to log in to Amp?", ["(y)es", "(n)o"]) == "y") ? (Di.write(`Login cancelled. Run the command again to retry.
|
115344
115344
|
`), !1) : await N8e(t, e);
|
115345
115345
|
}
|
115346
115346
|
async function N8e(t, e) {
|
115347
115347
|
const r = Xnt(32).toString("hex"), n = await bdr(t.ampURL, r);
|
115348
|
-
|
115348
|
+
Di.write(
|
115349
115349
|
`If your browser doesn't open automatically, visit:
|
115350
115350
|
|
115351
115351
|
${t.printer.print(n, {
|
@@ -115364,13 +115364,13 @@ ${t.printer.print(n, {
|
|
115364
115364
|
`
|
115365
115365
|
);
|
115366
115366
|
}
|
115367
|
-
|
115368
|
-
`),
|
115367
|
+
Di.write(`Waiting for login to complete...
|
115368
|
+
`), Di.write(`Press Ctrl+C to cancel
|
115369
115369
|
|
115370
115370
|
`);
|
115371
115371
|
try {
|
115372
115372
|
const i = await Tdr(r);
|
115373
|
-
return await Sdr(i, t.ampURL, e),
|
115373
|
+
return await Sdr(i, t.ampURL, e), Di.write(`
|
115374
115374
|
Login successful! You can now use the Amp CLI.
|
115375
115375
|
`), !0;
|
115376
115376
|
} catch (i) {
|
@@ -115386,11 +115386,11 @@ function sfr(t) {
|
|
115386
115386
|
const o = s.originalError ?? s;
|
115387
115387
|
om(t, o);
|
115388
115388
|
}), e.option("-V, --version", "output the version number", () => {
|
115389
|
-
|
115390
|
-
|
115391
|
-
|
115392
|
-
|
115393
|
-
|
115389
|
+
const o = "(released 2025-06-13T20:09:04.209Z)";
|
115390
|
+
t.isTTY ? Di.write(
|
115391
|
+
`0.0.1749844876-g4dbafe ${t.printer.print(o, { foreground: "gray" })}
|
115392
|
+
`
|
115393
|
+
) : Di.write(`0.0.1749844876-g4dbafe ${o}
|
115394
115394
|
`), process.exit(0);
|
115395
115395
|
}), e.addHelpText(
|
115396
115396
|
"after",
|
@@ -115485,13 +115485,13 @@ function sfr(t) {
|
|
115485
115485
|
}
|
115486
115486
|
}), e.command("logout").description("Log out by removing stored API key").action(async (s, o) => {
|
115487
115487
|
const l = o.optsWithGlobals(), u = dl(l), d = O5();
|
115488
|
-
await d.get("apiKey", u.ampURL) || (
|
115489
|
-
`), process.exit(0)), await d.set("apiKey", "", u.ampURL),
|
115488
|
+
await d.get("apiKey", u.ampURL) || (Di.write(`Already logged out.
|
115489
|
+
`), process.exit(0)), await d.set("apiKey", "", u.ampURL), Di.write(`Successfully logged out.
|
115490
115490
|
`), process.exit(0);
|
115491
115491
|
}), e.command("login").description("Log in to Amp").action(async (s, o) => {
|
115492
115492
|
const l = o.optsWithGlobals(), u = dl(l), d = O5();
|
115493
|
-
await d.get("apiKey", u.ampURL) && (
|
115494
|
-
`), await M0("Do you want to log in again?", ["(y)es", "(n)o"]) === "n" && process.exit(0),
|
115493
|
+
await d.get("apiKey", u.ampURL) && (Di.write(`Already logged in.
|
115494
|
+
`), await M0("Do you want to log in again?", ["(y)es", "(n)o"]) === "n" && process.exit(0), Di.write(`
|
115495
115495
|
`));
|
115496
115496
|
const p = await N8e(u, d);
|
115497
115497
|
process.exit(p ? 0 : 1);
|
@@ -115517,7 +115517,7 @@ function sfr(t) {
|
|
115517
115517
|
`Failed to create thread on server: ${f.status}${m ? `: ${m}` : ""}`
|
115518
115518
|
);
|
115519
115519
|
}
|
115520
|
-
await _V(h),
|
115520
|
+
await _V(h), Di.write(`${h}
|
115521
115521
|
`), d.threadSyncService?.dispose(), d.threadService.dispose(), await d.mcpService.dispose(), process.exit(0);
|
115522
115522
|
} catch (h) {
|
115523
115523
|
Jr.write(
|
@@ -115574,7 +115574,7 @@ Provide a thread ID as an argument or run a thread first.
|
|
115574
115574
|
`Failed to create forked thread on server: ${y.status}${b ? `: ${b}` : ""}`
|
115575
115575
|
);
|
115576
115576
|
}
|
115577
|
-
await _V(_),
|
115577
|
+
await _V(_), Di.write(`${_}
|
115578
115578
|
`), h.threadSyncService?.dispose(), h.threadService.dispose(), await h.mcpService.dispose(), process.exit(0);
|
115579
115579
|
} catch (p) {
|
115580
115580
|
Jr.write(
|
@@ -115596,7 +115596,7 @@ Provide a thread ID as an argument or run a thread first.
|
|
115596
115596
|
`
|
115597
115597
|
), process.exit(1));
|
115598
115598
|
const _ = await m.json();
|
115599
|
-
_.length === 0 && (
|
115599
|
+
_.length === 0 && (Di.write(`No threads found.
|
115600
115600
|
`), process.exit(0));
|
115601
115601
|
const v = ["Title", "Last Updated", "Visibility", "Messages", "Thread ID"], y = _.map((b) => {
|
115602
115602
|
const E = b.title || "Untitled";
|
@@ -115640,7 +115640,7 @@ Provide a thread ID as an argument or run a thread first.
|
|
115640
115640
|
h.printer.print("Error: ", { foreground: "red", style: "bold" }) + `No thread ID provided and no previously used thread found.
|
115641
115641
|
Provide a thread ID as an argument or run a thread first.
|
115642
115642
|
`
|
115643
|
-
), process.exit(1))),
|
115643
|
+
), process.exit(1))), Di.write(`Updating thread ${f}...
|
115644
115644
|
`);
|
115645
115645
|
const _ = await No(`/api/threads/${f}`);
|
115646
115646
|
_.ok || (Jr.write(
|
@@ -115694,7 +115694,7 @@ Please provide a title as an argument.
|
|
115694
115694
|
const b = await p.threadService.exclusiveSyncReadWriter(f);
|
115695
115695
|
b.update((E) => {
|
115696
115696
|
E.title = y, E.v++;
|
115697
|
-
}), b.dispose(), await p.threadService.flushVersion(f, v.v + 1), p.threadSyncService && await p.threadSyncService.sync(),
|
115697
|
+
}), b.dispose(), await p.threadService.flushVersion(f, v.v + 1), p.threadSyncService && await p.threadSyncService.sync(), Di.write(
|
115698
115698
|
h.printer.print("✓ ", { foreground: "green" }) + `Thread ${f} renamed to: "${y}"
|
115699
115699
|
`
|
115700
115700
|
), p.threadSyncService?.dispose(), p.threadService.dispose(), await p.mcpService.dispose(), process.exit(0);
|
@@ -115731,7 +115731,7 @@ Please provide a title as an argument.
|
|
115731
115731
|
h.threadSyncService || (Jr.write(
|
115732
115732
|
d.printer.print("Error: ", { foreground: "red", style: "bold" }) + `Thread sync service not available
|
115733
115733
|
`
|
115734
|
-
), process.exit(1)), await h.threadSyncService.updateThreadMeta(s, _),
|
115734
|
+
), process.exit(1)), await h.threadSyncService.updateThreadMeta(s, _), Di.write(
|
115735
115735
|
d.printer.print("✓ ", { foreground: "green" }) + `Thread ${s} visibility changed to ${p}.
|
115736
115736
|
`
|
115737
115737
|
);
|
@@ -115747,7 +115747,7 @@ Please provide a title as an argument.
|
|
115747
115747
|
`
|
115748
115748
|
), process.exit(1)), m = await _.json();
|
115749
115749
|
}
|
115750
|
-
h.threadStorage.set(s, m), await qft(h.threadService, s),
|
115750
|
+
h.threadStorage.set(s, m), await qft(h.threadService, s), Di.write(
|
115751
115751
|
d.printer.print("✓ ", { foreground: "green" }) + `Thread ${s} has been shared with Amp support.
|
115752
115752
|
`
|
115753
115753
|
);
|
@@ -115772,7 +115772,7 @@ Please provide a title as an argument.
|
|
115772
115772
|
`
|
115773
115773
|
), process.exit(1));
|
115774
115774
|
const f = await p.json();
|
115775
|
-
h.threadStorage.set(s, f),
|
115775
|
+
h.threadStorage.set(s, f), Di.write(`Compacting thread ${s}...
|
115776
115776
|
`);
|
115777
115777
|
const m = await h.summaryService.summarizeThread(s), { ThreadWorker: _ } = await Promise.resolve().then(() => kRt), v = await _.getOrCreateForThread(
|
115778
115778
|
{
|
@@ -115796,7 +115796,7 @@ Please provide a title as an argument.
|
|
115796
115796
|
}
|
115797
115797
|
}), h.threadSyncService && await h.threadSyncService.sync();
|
115798
115798
|
const y = m.summary.length > 100 ? m.summary.slice(0, 100) + "..." : m.summary;
|
115799
|
-
|
115799
|
+
Di.write(
|
115800
115800
|
d.printer.print("✓ ", { foreground: "green" }) + `Thread ${s} compacted successfully.
|
115801
115801
|
Summary: ${y}
|
115802
115802
|
`
|
@@ -116027,23 +116027,23 @@ function cfr(t, e, r = {}) {
|
|
116027
116027
|
throw new Error(
|
116028
116028
|
`Row ${v} has ${e[v].length} columns, but headers have ${t.length} columns`
|
116029
116029
|
);
|
116030
|
-
const s =
|
116030
|
+
const s = Di.columns || 120, o = " ", l = t.length - 1, u = a ?? t.length - 1, d = [];
|
116031
116031
|
for (let v = 0; v < t.length; v++)
|
116032
116032
|
v === u ? d.push(0) : d.push(Math.max(t[v].length, ...e.map((y) => y[v].length)));
|
116033
116033
|
const h = d.reduce((v, y) => v + y, 0) + l * o.length, p = Math.max(i, s - h);
|
116034
116034
|
d[u] = p;
|
116035
116035
|
const f = d, m = t.map((v, y) => v.padEnd(f[y])).join(o);
|
116036
|
-
|
116036
|
+
Di.write(m + `
|
116037
116037
|
`);
|
116038
116038
|
const _ = f.map((v) => "─".repeat(v)).join(o);
|
116039
|
-
|
116039
|
+
Di.write(_ + `
|
116040
116040
|
`);
|
116041
116041
|
for (const v of e) {
|
116042
116042
|
const y = v.map((b, E) => {
|
116043
116043
|
const T = f[E], S = n[E];
|
116044
116044
|
return S ? S(b, T) : (b.length > T ? b.substring(0, T - 3) + "..." : b).padEnd(T);
|
116045
116045
|
});
|
116046
|
-
|
116046
|
+
Di.write(y.join(o) + `
|
116047
116047
|
`);
|
116048
116048
|
}
|
116049
116049
|
}
|
@@ -118124,7 +118124,7 @@ function dpr() {
|
|
118124
118124
|
["partial", S],
|
118125
118125
|
["partialRight", w],
|
118126
118126
|
["rearg", x]
|
118127
|
-
], ee = "[object Arguments]", j = "[object Array]", J = "[object AsyncFunction]", ae = "[object Boolean]", Z = "[object Date]", te = "[object DOMException]", W = "[object Error]", X = "[object Function]", ce = "[object GeneratorFunction]", he = "[object Map]", ue = "[object Number]", xe = "[object Null]", ve = "[object Object]", de = "[object Promise]", $e = "[object Proxy]", Ee = "[object RegExp]", Ze = "[object Set]", st = "[object String]", je = "[object Symbol]", Ge = "[object Undefined]", ot = "[object WeakMap]", Ne = "[object WeakSet]", me = "[object ArrayBuffer]", Le = "[object DataView]", be = "[object Float32Array]", Ie = "[object Float64Array]", ge = "[object Int8Array]", Re = "[object Int16Array]", le = "[object Int32Array]", Ue = "[object Uint8Array]", Me = "[object Uint8ClampedArray]", tt = "[object Uint16Array]", ze = "[object Uint32Array]", re = /\b__p \+= '';/g, _e = /\b(__p \+=) '' \+/g, ye = /(__e\(.*?\)|\b__t\)) \+\n'';/g, Be = /&(?:amp|lt|gt|quot|#39);/g, We = /[&<>"']/g, rt = RegExp(Be.source), at = RegExp(We.source), nt = /<%-([\s\S]+?)%>/g, Je = /<%([\s\S]+?)%>/g, ft = /<%=([\s\S]+?)%>/g, wt = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, Rt = /^\w*$/, Et = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, Kt = /[\\^$.*+?()[\]{}|]/g, kt = RegExp(Kt.source), Lt = /^\s+/, De = /\s/, Se = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/, Pe = /\{\n\/\* \[wrapped with (.+)\] \*/, He = /,? & /, lt = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g, Tt = /[()=,{}\[\]\/\s]/, Ht = /\\(\\)?/g, lr = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g, Er = /\w*$/, pr = /^[-+]0x[0-9a-f]+$/i, cr = /^0b[01]+$/i, Nt = /^\[object .+?Constructor\]$/, Ve = /^0o[0-7]+$/i, _t = /^(?:0|[1-9]\d*)$/, At = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, It = /($^)/, pe = /['\n\r\u2028\u2029\\]/g, er = "\\ud800-\\udfff", wr = "\\u0300-\\u036f", Ur = "\\ufe20-\\ufe2f", $r = "\\u20d0-\\u20ff", Cr = wr + Ur + $r, Mr = "\\u2700-\\u27bf", ut = "a-z\\xdf-\\xf6\\xf8-\\xff", vt = "\\xac\\xb1\\xd7\\xf7", Ct = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", St = "\\u2000-\\u206f", Ar = " \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000", Fe = "A-Z\\xc0-\\xd6\\xd8-\\xde",
|
118127
|
+
], ee = "[object Arguments]", j = "[object Array]", J = "[object AsyncFunction]", ae = "[object Boolean]", Z = "[object Date]", te = "[object DOMException]", W = "[object Error]", X = "[object Function]", ce = "[object GeneratorFunction]", he = "[object Map]", ue = "[object Number]", xe = "[object Null]", ve = "[object Object]", de = "[object Promise]", $e = "[object Proxy]", Ee = "[object RegExp]", Ze = "[object Set]", st = "[object String]", je = "[object Symbol]", Ge = "[object Undefined]", ot = "[object WeakMap]", Ne = "[object WeakSet]", me = "[object ArrayBuffer]", Le = "[object DataView]", be = "[object Float32Array]", Ie = "[object Float64Array]", ge = "[object Int8Array]", Re = "[object Int16Array]", le = "[object Int32Array]", Ue = "[object Uint8Array]", Me = "[object Uint8ClampedArray]", tt = "[object Uint16Array]", ze = "[object Uint32Array]", re = /\b__p \+= '';/g, _e = /\b(__p \+=) '' \+/g, ye = /(__e\(.*?\)|\b__t\)) \+\n'';/g, Be = /&(?:amp|lt|gt|quot|#39);/g, We = /[&<>"']/g, rt = RegExp(Be.source), at = RegExp(We.source), nt = /<%-([\s\S]+?)%>/g, Je = /<%([\s\S]+?)%>/g, ft = /<%=([\s\S]+?)%>/g, wt = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, Rt = /^\w*$/, Et = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, Kt = /[\\^$.*+?()[\]{}|]/g, kt = RegExp(Kt.source), Lt = /^\s+/, De = /\s/, Se = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/, Pe = /\{\n\/\* \[wrapped with (.+)\] \*/, He = /,? & /, lt = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g, Tt = /[()=,{}\[\]\/\s]/, Ht = /\\(\\)?/g, lr = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g, Er = /\w*$/, pr = /^[-+]0x[0-9a-f]+$/i, cr = /^0b[01]+$/i, Nt = /^\[object .+?Constructor\]$/, Ve = /^0o[0-7]+$/i, _t = /^(?:0|[1-9]\d*)$/, At = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, It = /($^)/, pe = /['\n\r\u2028\u2029\\]/g, er = "\\ud800-\\udfff", wr = "\\u0300-\\u036f", Ur = "\\ufe20-\\ufe2f", $r = "\\u20d0-\\u20ff", Cr = wr + Ur + $r, Mr = "\\u2700-\\u27bf", ut = "a-z\\xdf-\\xf6\\xf8-\\xff", vt = "\\xac\\xb1\\xd7\\xf7", Ct = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", St = "\\u2000-\\u206f", Ar = " \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000", Fe = "A-Z\\xc0-\\xd6\\xd8-\\xde", xi = "\\ufe0e\\ufe0f", qe = vt + Ct + St + Ar, mn = "['’]", ja = "[" + er + "]", pa = "[" + qe + "]", Fa = "[" + Cr + "]", Ls = "\\d+", Ui = "[" + Mr + "]", bs = "[" + ut + "]", Ba = "[^" + er + qe + Ls + Mr + ut + Fe + "]", Ms = "\\ud83c[\\udffb-\\udfff]", oh = "(?:" + Fa + "|" + Ms + ")", gc = "[^" + er + "]", rn = "(?:\\ud83c[\\udde6-\\uddff]){2}", $i = "[\\ud800-\\udbff][\\udc00-\\udfff]", Vn = "[" + Fe + "]", kn = "\\u200d", So = "(?:" + bs + "|" + Ba + ")", ga = "(?:" + Vn + "|" + Ba + ")", Es = "(?:" + mn + "(?:d|ll|m|re|s|t|ve))?", ni = "(?:" + mn + "(?:D|LL|M|RE|S|T|VE))?", gr = oh + "?", xr = "[" + xi + "]?", Hr = "(?:" + kn + "(?:" + [gc, rn, $i].join("|") + ")" + xr + gr + ")*", jr = "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])", ma = "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])", mc = xr + gr + Hr, jf = "(?:" + [Ui, rn, $i].join("|") + ")" + mc, lh = "(?:" + [gc + Fa + "?", Fa, rn, $i, ja].join("|") + ")", bx = RegExp(mn, "g"), Ex = RegExp(Fa, "g"), eE = RegExp(Ms + "(?=" + Ms + ")|" + lh + mc, "g"), f9 = RegExp([
|
118128
118128
|
Vn + "?" + bs + "+" + Es + "(?=" + [pa, Vn, "$"].join("|") + ")",
|
118129
118129
|
ga + "+" + ni + "(?=" + [pa, Vn + So, "$"].join("|") + ")",
|
118130
118130
|
Vn + "?" + So + "+" + Es,
|
@@ -118133,7 +118133,7 @@ function dpr() {
|
|
118133
118133
|
jr,
|
118134
118134
|
Ls,
|
118135
118135
|
jf
|
118136
|
-
].join("|"), "g"), p9 = RegExp("[" + kn + er + Cr +
|
118136
|
+
].join("|"), "g"), p9 = RegExp("[" + kn + er + Cr + xi + "]"), g9 = /[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/, Tx = [
|
118137
118137
|
"Array",
|
118138
118138
|
"Buffer",
|
118139
118139
|
"DataView",
|
@@ -118164,8 +118164,8 @@ function dpr() {
|
|
118164
118164
|
"isFinite",
|
118165
118165
|
"parseInt",
|
118166
118166
|
"setTimeout"
|
118167
|
-
], Sx = -1,
|
118168
|
-
|
118167
|
+
], Sx = -1, Ai = {};
|
118168
|
+
Ai[be] = Ai[Ie] = Ai[ge] = Ai[Re] = Ai[le] = Ai[Ue] = Ai[Me] = Ai[tt] = Ai[ze] = !0, Ai[ee] = Ai[j] = Ai[me] = Ai[ae] = Ai[Le] = Ai[Z] = Ai[W] = Ai[X] = Ai[he] = Ai[ue] = Ai[ve] = Ai[Ee] = Ai[Ze] = Ai[st] = Ai[ot] = !1;
|
118169
118169
|
var Ti = {};
|
118170
118170
|
Ti[ee] = Ti[j] = Ti[me] = Ti[Le] = Ti[ae] = Ti[Z] = Ti[be] = Ti[Ie] = Ti[ge] = Ti[Re] = Ti[le] = Ti[he] = Ti[ue] = Ti[ve] = Ti[Ee] = Ti[Ze] = Ti[st] = Ti[je] = Ti[Ue] = Ti[Me] = Ti[tt] = Ti[ze] = !0, Ti[W] = Ti[X] = Ti[ot] = !1;
|
118171
118171
|
var m9 = {
|
@@ -118515,8 +118515,8 @@ function dpr() {
|
|
118515
118515
|
};
|
118516
118516
|
}
|
118517
118517
|
function hne(ht, Ot, xt, mr, _n) {
|
118518
|
-
return _n(ht, function(ai, Qa,
|
118519
|
-
xt = mr ? (mr = !1, ai) : Ot(xt, ai, Qa,
|
118518
|
+
return _n(ht, function(ai, Qa, ki) {
|
118519
|
+
xt = mr ? (mr = !1, ai) : Ot(xt, ai, Qa, ki);
|
118520
118520
|
}), xt;
|
118521
118521
|
}
|
118522
118522
|
function oQe(ht, Ot) {
|
@@ -118658,18 +118658,18 @@ function dpr() {
|
|
118658
118658
|
}
|
118659
118659
|
var SQe = function ht(Ot) {
|
118660
118660
|
Ot = Ot == null ? Xa : L1.defaults(Xa.Object(), Ot, L1.pick(Xa, Tx));
|
118661
|
-
var xt = Ot.Array, mr = Ot.Date, _n = Ot.Error, ai = Ot.Function, Qa = Ot.Math,
|
118661
|
+
var xt = Ot.Array, mr = Ot.Date, _n = Ot.Error, ai = Ot.Function, Qa = Ot.Math, ki = Ot.Object, R9 = Ot.RegExp, wQe = Ot.String, _c = Ot.TypeError, Nx = xt.prototype, CQe = ai.prototype, M1 = ki.prototype, Ix = Ot["__core-js_shared__"], Ox = CQe.toString, mi = M1.hasOwnProperty, xQe = 0, yne = function() {
|
118662
118662
|
var k = /[^.]+$/.exec(Ix && Ix.keys && Ix.keys.IE_PROTO || "");
|
118663
118663
|
return k ? "Symbol(src)_1." + k : "";
|
118664
|
-
}(), Lx = M1.toString, AQe = Ox.call(
|
118664
|
+
}(), Lx = M1.toString, AQe = Ox.call(ki), kQe = Xa._, DQe = R9(
|
118665
118665
|
"^" + Ox.call(mi).replace(Kt, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
118666
|
-
), Mx = zg ? Ot.Buffer : r, Jf = Ot.Symbol, Px = Ot.Uint8Array, vne = Mx ? Mx.allocUnsafe : r, Fx = mne(
|
118666
|
+
), Mx = zg ? Ot.Buffer : r, Jf = Ot.Symbol, Px = Ot.Uint8Array, vne = Mx ? Mx.allocUnsafe : r, Fx = mne(ki.getPrototypeOf, ki), bne = ki.create, Ene = M1.propertyIsEnumerable, Bx = Nx.splice, Tne = Jf ? Jf.isConcatSpreadable : r, aE = Jf ? Jf.iterator : r, qg = Jf ? Jf.toStringTag : r, Ux = function() {
|
118667
118667
|
try {
|
118668
|
-
var k = Wg(
|
118668
|
+
var k = Wg(ki, "defineProperty");
|
118669
118669
|
return k({}, "", {}), k;
|
118670
118670
|
} catch {
|
118671
118671
|
}
|
118672
|
-
}(), RQe = Ot.clearTimeout !== Xa.clearTimeout && Ot.clearTimeout, NQe = mr && mr.now !== Xa.Date.now && mr.now, IQe = Ot.setTimeout !== Xa.setTimeout && Ot.setTimeout, $x = Qa.ceil, zx = Qa.floor, N9 =
|
118672
|
+
}(), RQe = Ot.clearTimeout !== Xa.clearTimeout && Ot.clearTimeout, NQe = mr && mr.now !== Xa.Date.now && mr.now, IQe = Ot.setTimeout !== Xa.setTimeout && Ot.setTimeout, $x = Qa.ceil, zx = Qa.floor, N9 = ki.getOwnPropertySymbols, OQe = Mx ? Mx.isBuffer : r, Sne = Ot.isFinite, LQe = Nx.join, MQe = mne(ki.keys, ki), Za = Qa.max, Qs = Qa.min, PQe = mr.now, FQe = Ot.parseInt, wne = Qa.random, BQe = Nx.reverse, I9 = Wg(Ot, "DataView"), sE = Wg(Ot, "Map"), O9 = Wg(Ot, "Promise"), P1 = Wg(Ot, "Set"), oE = Wg(Ot, "WeakMap"), lE = Wg(ki, "create"), qx = oE && new oE(), F1 = {}, UQe = Kg(I9), $Qe = Kg(sE), zQe = Kg(O9), qQe = Kg(P1), GQe = Kg(oE), Gx = Jf ? Jf.prototype : r, cE = Gx ? Gx.valueOf : r, Cne = Gx ? Gx.toString : r;
|
118673
118673
|
function Ae(k) {
|
118674
118674
|
if (_a(k) && !vn(k) && !(k instanceof Un)) {
|
118675
118675
|
if (k instanceof yc)
|
@@ -119016,7 +119016,7 @@ function dpr() {
|
|
119016
119016
|
var oe = V.length;
|
119017
119017
|
if (k == null)
|
119018
119018
|
return !oe;
|
119019
|
-
for (k =
|
119019
|
+
for (k = ki(k); oe--; ) {
|
119020
119020
|
var Te = V[oe], Oe = F[Te], Ke = k[Te];
|
119021
119021
|
if (Ke === r && !(Te in k) || !Oe(Ke))
|
119022
119022
|
return !1;
|
@@ -119105,7 +119105,7 @@ function dpr() {
|
|
119105
119105
|
return vn(k) ? oe : Qf(oe, V(k));
|
119106
119106
|
}
|
119107
119107
|
function wo(k) {
|
119108
|
-
return k == null ? k === r ? Ge : xe : qg && qg in
|
119108
|
+
return k == null ? k === r ? Ge : xe : qg && qg in ki(k) ? nJe(k) : mJe(k);
|
119109
119109
|
}
|
119110
119110
|
function B9(k, F) {
|
119111
119111
|
return k > F;
|
@@ -119114,7 +119114,7 @@ function dpr() {
|
|
119114
119114
|
return k != null && mi.call(k, F);
|
119115
119115
|
}
|
119116
119116
|
function SZe(k, F) {
|
119117
|
-
return k != null && F in
|
119117
|
+
return k != null && F in ki(k);
|
119118
119118
|
}
|
119119
119119
|
function wZe(k, F, V) {
|
119120
119120
|
return k >= Qs(F, V) && k < Za(F, V);
|
@@ -119189,7 +119189,7 @@ function dpr() {
|
|
119189
119189
|
var Te = V.length, Oe = Te, Ke = !oe;
|
119190
119190
|
if (k == null)
|
119191
119191
|
return !Oe;
|
119192
|
-
for (k =
|
119192
|
+
for (k = ki(k); Te--; ) {
|
119193
119193
|
var it = V[Te];
|
119194
119194
|
if (Ke && it[2] ? it[1] !== k[it[0]] : !(it[0] in k))
|
119195
119195
|
return !1;
|
@@ -119223,7 +119223,7 @@ function dpr() {
|
|
119223
119223
|
return _a(k) && Zs(k) == Ze;
|
119224
119224
|
}
|
119225
119225
|
function IZe(k) {
|
119226
|
-
return _a(k) && uA(k.length) && !!
|
119226
|
+
return _a(k) && uA(k.length) && !!Ai[wo(k)];
|
119227
119227
|
}
|
119228
119228
|
function Fne(k) {
|
119229
119229
|
return typeof k == "function" ? k : k == null ? il : typeof k == "object" ? vn(k) ? $ne(k[0], k[1]) : Une(k) : aae(k);
|
@@ -119232,7 +119232,7 @@ function dpr() {
|
|
119232
119232
|
if (!mE(k))
|
119233
119233
|
return MQe(k);
|
119234
119234
|
var F = [];
|
119235
|
-
for (var V in
|
119235
|
+
for (var V in ki(k))
|
119236
119236
|
mi.call(k, V) && V != "constructor" && F.push(V);
|
119237
119237
|
return F;
|
119238
119238
|
}
|
@@ -119554,7 +119554,7 @@ function dpr() {
|
|
119554
119554
|
return F.lastIndex = k.lastIndex, F;
|
119555
119555
|
}
|
119556
119556
|
function YZe(k) {
|
119557
|
-
return cE ?
|
119557
|
+
return cE ? ki(cE.call(k)) : {};
|
119558
119558
|
}
|
119559
119559
|
function Jne(k, F) {
|
119560
119560
|
var V = F ? Q9(k.buffer) : k.buffer;
|
@@ -119630,7 +119630,7 @@ function dpr() {
|
|
119630
119630
|
function U1(k) {
|
119631
119631
|
return Rn(function(F, V) {
|
119632
119632
|
var oe = -1, Te = V.length, Oe = Te > 1 ? V[Te - 1] : r, Ke = Te > 2 ? V[2] : r;
|
119633
|
-
for (Oe = k.length > 3 && typeof Oe == "function" ? (Te--, Oe) : r, Ke && Co(V[0], V[1], Ke) && (Oe = Te < 3 ? r : Oe, Te = 1), F =
|
119633
|
+
for (Oe = k.length > 3 && typeof Oe == "function" ? (Te--, Oe) : r, Ke && Co(V[0], V[1], Ke) && (Oe = Te < 3 ? r : Oe, Te = 1), F = ki(F); ++oe < Te; ) {
|
119634
119634
|
var it = V[oe];
|
119635
119635
|
it && k(F, it, oe, Oe);
|
119636
119636
|
}
|
@@ -119643,14 +119643,14 @@ function dpr() {
|
|
119643
119643
|
return V;
|
119644
119644
|
if (!rl(V))
|
119645
119645
|
return k(V, oe);
|
119646
|
-
for (var Te = V.length, Oe = F ? Te : -1, Ke =
|
119646
|
+
for (var Te = V.length, Oe = F ? Te : -1, Ke = ki(V); (F ? Oe-- : ++Oe < Te) && oe(Ke[Oe], Oe, Ke) !== !1; )
|
119647
119647
|
;
|
119648
119648
|
return V;
|
119649
119649
|
};
|
119650
119650
|
}
|
119651
119651
|
function iie(k) {
|
119652
119652
|
return function(F, V, oe) {
|
119653
|
-
for (var Te = -1, Oe =
|
119653
|
+
for (var Te = -1, Oe = ki(F), Ke = oe(F), it = Ke.length; it--; ) {
|
119654
119654
|
var pt = Ke[k ? it : ++Te];
|
119655
119655
|
if (V(Oe[pt], pt, Oe) === !1)
|
119656
119656
|
break;
|
@@ -119729,7 +119729,7 @@ function dpr() {
|
|
119729
119729
|
}
|
119730
119730
|
function sie(k) {
|
119731
119731
|
return function(F, V, oe) {
|
119732
|
-
var Te =
|
119732
|
+
var Te = ki(F);
|
119733
119733
|
if (!rl(F)) {
|
119734
119734
|
var Oe = Xr(V, 3);
|
119735
119735
|
F = Ss(F), V = function(it) {
|
@@ -120074,7 +120074,7 @@ function dpr() {
|
|
120074
120074
|
return oe && (F ? k[qg] = V : delete k[qg]), Te;
|
120075
120075
|
}
|
120076
120076
|
var iL = N9 ? function(k) {
|
120077
|
-
return k == null ? [] : (k =
|
120077
|
+
return k == null ? [] : (k = ki(k), cu(N9(k), function(F) {
|
120078
120078
|
return Ene.call(k, F);
|
120079
120079
|
}));
|
120080
120080
|
} : TL, gie = N9 ? function(k) {
|
@@ -120199,7 +120199,7 @@ function dpr() {
|
|
120199
120199
|
if (vn(k))
|
120200
120200
|
return !1;
|
120201
120201
|
var V = typeof k;
|
120202
|
-
return V == "number" || V == "symbol" || V == "boolean" || k == null || zl(k) ? !0 : Rt.test(k) || !wt.test(k) || F != null && k in
|
120202
|
+
return V == "number" || V == "symbol" || V == "boolean" || k == null || zl(k) ? !0 : Rt.test(k) || !wt.test(k) || F != null && k in ki(F);
|
120203
120203
|
}
|
120204
120204
|
function uJe(k) {
|
120205
120205
|
var F = typeof k;
|
@@ -120227,7 +120227,7 @@ function dpr() {
|
|
120227
120227
|
}
|
120228
120228
|
function vie(k, F) {
|
120229
120229
|
return function(V) {
|
120230
|
-
return V == null ? !1 : V[k] === F && (F !== r || k in
|
120230
|
+
return V == null ? !1 : V[k] === F && (F !== r || k in ki(V));
|
120231
120231
|
};
|
120232
120232
|
}
|
120233
120233
|
function fJe(k) {
|
@@ -120251,7 +120251,7 @@ function dpr() {
|
|
120251
120251
|
function gJe(k) {
|
120252
120252
|
var F = [];
|
120253
120253
|
if (k != null)
|
120254
|
-
for (var V in
|
120254
|
+
for (var V in ki(k))
|
120255
120255
|
F.push(V);
|
120256
120256
|
return F;
|
120257
120257
|
}
|
@@ -121178,7 +121178,7 @@ function dpr() {
|
|
121178
121178
|
return F == null ? V : kne(V, F);
|
121179
121179
|
}
|
121180
121180
|
var Vtt = Rn(function(k, F) {
|
121181
|
-
k =
|
121181
|
+
k = ki(k);
|
121182
121182
|
var V = -1, oe = F.length, Te = oe > 2 ? F[2] : r;
|
121183
121183
|
for (Te && Co(F[0], F[1], Te) && (oe = 1); ++V < oe; )
|
121184
121184
|
for (var Oe = F[V], Ke = nl(Oe), it = -1, pt = Ke.length; ++it < pt; ) {
|
@@ -137883,7 +137883,7 @@ function T7e(t) {
|
|
137883
137883
|
return t == null ? [] : F1r(t, as(t));
|
137884
137884
|
}
|
137885
137885
|
g(T7e, "values");
|
137886
|
-
var
|
137886
|
+
var wi = T7e;
|
137887
137887
|
function S7e(t) {
|
137888
137888
|
return t === void 0;
|
137889
137889
|
}
|
@@ -138297,7 +138297,7 @@ function TFe(t) {
|
|
138297
138297
|
g(TFe, "isString");
|
138298
138298
|
var Ko = TFe, j_r = Math.max;
|
138299
138299
|
function SFe(t, e, r, n) {
|
138300
|
-
t = Zu(t) ? t :
|
138300
|
+
t = Zu(t) ? t : wi(t), r = r && !n ? PC(r) : 0;
|
138301
138301
|
var i = t.length;
|
138302
138302
|
return r < 0 && (r = j_r(i + r, 0)), Ko(t) ? r <= i && t.indexOf(e, r) > -1 : !!i && $Z(t, e, r) > -1;
|
138303
138303
|
}
|
@@ -138676,7 +138676,7 @@ var Myr = "\0", n0 = "\0", J_e = "", Pl = class {
|
|
138676
138676
|
return this._edgeCount;
|
138677
138677
|
}
|
138678
138678
|
edges() {
|
138679
|
-
return
|
138679
|
+
return wi(this._edgeObjs);
|
138680
138680
|
}
|
138681
138681
|
setPath(t, e) {
|
138682
138682
|
var r = this, n = arguments;
|
@@ -138715,7 +138715,7 @@ var Myr = "\0", n0 = "\0", J_e = "", Pl = class {
|
|
138715
138715
|
inEdges(t, e) {
|
138716
138716
|
var r = this._in[t];
|
138717
138717
|
if (r) {
|
138718
|
-
var n =
|
138718
|
+
var n = wi(r);
|
138719
138719
|
return e ? Sa(n, function(i) {
|
138720
138720
|
return i.v === e;
|
138721
138721
|
}) : n;
|
@@ -138724,7 +138724,7 @@ var Myr = "\0", n0 = "\0", J_e = "", Pl = class {
|
|
138724
138724
|
outEdges(t, e) {
|
138725
138725
|
var r = this._out[t];
|
138726
138726
|
if (r) {
|
138727
|
-
var n =
|
138727
|
+
var n = wi(r);
|
138728
138728
|
return e ? Sa(n, function(i) {
|
138729
138729
|
return i.w === e;
|
138730
138730
|
}) : n;
|
@@ -139324,7 +139324,7 @@ function qV(t) {
|
|
139324
139324
|
}
|
139325
139325
|
g(qV, "networkSimplexRanker");
|
139326
139326
|
function MBe(t) {
|
139327
|
-
var e = f1(t, "root", {}, "_root"), r = PBe(t), n = Um(
|
139327
|
+
var e = f1(t, "root", {}, "_root"), r = PBe(t), n = Um(wi(r)) - 1, i = 2 * n + 1;
|
139328
139328
|
t.graph().nestingRoot = e, gt(t.edges(), function(s) {
|
139329
139329
|
t.edge(s).minlen *= i;
|
139330
139330
|
});
|
@@ -139826,7 +139826,7 @@ function uUe(t, e, r, n) {
|
|
139826
139826
|
}
|
139827
139827
|
g(uUe, "buildBlockGraph");
|
139828
139828
|
function dUe(t, e) {
|
139829
|
-
return qZ(
|
139829
|
+
return qZ(wi(e), function(r) {
|
139830
139830
|
var n = Number.NEGATIVE_INFINITY, i = Number.POSITIVE_INFINITY;
|
139831
139831
|
return U_r(r, function(a, s) {
|
139832
139832
|
var o = mUe(t, s) / 2;
|
@@ -139836,12 +139836,12 @@ function dUe(t, e) {
|
|
139836
139836
|
}
|
139837
139837
|
g(dUe, "findSmallestWidthAlignment");
|
139838
139838
|
function hUe(t, e) {
|
139839
|
-
var r =
|
139839
|
+
var r = wi(e), n = Fv(r), i = Um(r);
|
139840
139840
|
gt(["u", "d"], function(a) {
|
139841
139841
|
gt(["l", "r"], function(s) {
|
139842
139842
|
var o = a + s, l = t[o], u;
|
139843
139843
|
if (l !== e) {
|
139844
|
-
var d =
|
139844
|
+
var d = wi(l);
|
139845
139845
|
u = s === "l" ? n - Fv(d) : i - Um(d), u && (t[o] = $O(l, function(h) {
|
139846
139846
|
return h + u;
|
139847
139847
|
}));
|
@@ -139862,9 +139862,9 @@ g(fUe, "balance");
|
|
139862
139862
|
function pUe(t) {
|
139863
139863
|
var e = UC(t), r = F3(iUe(t, e), aUe(t, e)), n = {}, i;
|
139864
139864
|
gt(["u", "d"], function(s) {
|
139865
|
-
i = s === "u" ? e :
|
139865
|
+
i = s === "u" ? e : wi(e).reverse(), gt(["l", "r"], function(o) {
|
139866
139866
|
o === "r" && (i = Zt(i, function(h) {
|
139867
|
-
return
|
139867
|
+
return wi(h).reverse();
|
139868
139868
|
}));
|
139869
139869
|
var l = (s === "u" ? t.predecessors : t.successors).bind(t), u = lUe(t, i, r, l), d = cUe(t, i, u.root, u.align, o === "r");
|
139870
139870
|
o === "r" && (d = $O(d, function(h) {
|
@@ -141261,7 +141261,7 @@ var nvr = RR, Vu = [], Gp = [""], Ho = "global", Uu = "", Yd = [
|
|
141261
141261
|
], rw = [], oJ = "", lJ = !1, NR = 4, IR = 2, HUe, ivr = /* @__PURE__ */ g(function() {
|
141262
141262
|
return HUe;
|
141263
141263
|
}, "getC4Type"), avr = /* @__PURE__ */ g(function(t) {
|
141264
|
-
HUe =
|
141264
|
+
HUe = Ci(t, et());
|
141265
141265
|
}, "setC4Type"), svr = /* @__PURE__ */ g(function(t, e, r, n, i, a, s, o, l) {
|
141266
141266
|
if (t == null || e === void 0 || e === null || r === void 0 || r === null || n === void 0 || n === null)
|
141267
141267
|
return;
|
@@ -141639,7 +141639,7 @@ var nvr = RR, Vu = [], Gp = [""], Ho = "global", Uu = "", Yd = [
|
|
141639
141639
|
RIGHTOF: 1,
|
141640
141640
|
OVER: 2
|
141641
141641
|
}, Nvr = /* @__PURE__ */ g(function(t) {
|
141642
|
-
oJ =
|
141642
|
+
oJ = Ci(t, et());
|
141643
141643
|
}, "setTitle"), YV = {
|
141644
141644
|
addPersonOrSystem: ovr,
|
141645
141645
|
addPersonOrSystemBoundary: uvr,
|
@@ -142856,7 +142856,7 @@ You have to call mermaid.initialize.`
|
|
142856
142856
|
symbols_: { error: 2, start: 3, graphConfig: 4, document: 5, line: 6, statement: 7, SEMI: 8, NEWLINE: 9, SPACE: 10, EOF: 11, GRAPH: 12, NODIR: 13, DIR: 14, FirstStmtSeparator: 15, ending: 16, endToken: 17, spaceList: 18, spaceListNewline: 19, vertexStatement: 20, separator: 21, styleStatement: 22, linkStyleStatement: 23, classDefStatement: 24, classStatement: 25, clickStatement: 26, subgraph: 27, textNoTags: 28, SQS: 29, text: 30, SQE: 31, end: 32, direction: 33, acc_title: 34, acc_title_value: 35, acc_descr: 36, acc_descr_value: 37, acc_descr_multiline_value: 38, shapeData: 39, SHAPE_DATA: 40, link: 41, node: 42, styledVertex: 43, AMP: 44, vertex: 45, STYLE_SEPARATOR: 46, idString: 47, DOUBLECIRCLESTART: 48, DOUBLECIRCLEEND: 49, PS: 50, PE: 51, "(-": 52, "-)": 53, STADIUMSTART: 54, STADIUMEND: 55, SUBROUTINESTART: 56, SUBROUTINEEND: 57, VERTEX_WITH_PROPS_START: 58, "NODE_STRING[field]": 59, COLON: 60, "NODE_STRING[value]": 61, PIPE: 62, CYLINDERSTART: 63, CYLINDEREND: 64, DIAMOND_START: 65, DIAMOND_STOP: 66, TAGEND: 67, TRAPSTART: 68, TRAPEND: 69, INVTRAPSTART: 70, INVTRAPEND: 71, linkStatement: 72, arrowText: 73, TESTSTR: 74, START_LINK: 75, edgeText: 76, LINK: 77, LINK_ID: 78, edgeTextToken: 79, STR: 80, MD_STR: 81, textToken: 82, keywords: 83, STYLE: 84, LINKSTYLE: 85, CLASSDEF: 86, CLASS: 87, CLICK: 88, DOWN: 89, UP: 90, textNoTagsToken: 91, stylesOpt: 92, "idString[vertex]": 93, "idString[class]": 94, CALLBACKNAME: 95, CALLBACKARGS: 96, HREF: 97, LINK_TARGET: 98, "STR[link]": 99, "STR[tooltip]": 100, alphaNum: 101, DEFAULT: 102, numList: 103, INTERPOLATE: 104, NUM: 105, COMMA: 106, style: 107, styleComponent: 108, NODE_STRING: 109, UNIT: 110, BRKT: 111, PCT: 112, idStringToken: 113, MINUS: 114, MULT: 115, UNICODE_TEXT: 116, TEXT: 117, TAGSTART: 118, EDGE_TEXT: 119, alphaNumToken: 120, direction_tb: 121, direction_bt: 122, direction_rl: 123, direction_lr: 124, $accept: 0, $end: 1 },
|
142857
142857
|
terminals_: { 2: "error", 8: "SEMI", 9: "NEWLINE", 10: "SPACE", 11: "EOF", 12: "GRAPH", 13: "NODIR", 14: "DIR", 27: "subgraph", 29: "SQS", 31: "SQE", 32: "end", 34: "acc_title", 35: "acc_title_value", 36: "acc_descr", 37: "acc_descr_value", 38: "acc_descr_multiline_value", 40: "SHAPE_DATA", 44: "AMP", 46: "STYLE_SEPARATOR", 48: "DOUBLECIRCLESTART", 49: "DOUBLECIRCLEEND", 50: "PS", 51: "PE", 52: "(-", 53: "-)", 54: "STADIUMSTART", 55: "STADIUMEND", 56: "SUBROUTINESTART", 57: "SUBROUTINEEND", 58: "VERTEX_WITH_PROPS_START", 59: "NODE_STRING[field]", 60: "COLON", 61: "NODE_STRING[value]", 62: "PIPE", 63: "CYLINDERSTART", 64: "CYLINDEREND", 65: "DIAMOND_START", 66: "DIAMOND_STOP", 67: "TAGEND", 68: "TRAPSTART", 69: "TRAPEND", 70: "INVTRAPSTART", 71: "INVTRAPEND", 74: "TESTSTR", 75: "START_LINK", 77: "LINK", 78: "LINK_ID", 80: "STR", 81: "MD_STR", 84: "STYLE", 85: "LINKSTYLE", 86: "CLASSDEF", 87: "CLASS", 88: "CLICK", 89: "DOWN", 90: "UP", 93: "idString[vertex]", 94: "idString[class]", 95: "CALLBACKNAME", 96: "CALLBACKARGS", 97: "HREF", 98: "LINK_TARGET", 99: "STR[link]", 100: "STR[tooltip]", 102: "DEFAULT", 104: "INTERPOLATE", 105: "NUM", 106: "COMMA", 109: "NODE_STRING", 110: "UNIT", 111: "BRKT", 112: "PCT", 114: "MINUS", 115: "MULT", 116: "UNICODE_TEXT", 117: "TEXT", 118: "TAGSTART", 119: "EDGE_TEXT", 121: "direction_tb", 122: "direction_bt", 123: "direction_rl", 124: "direction_lr" },
|
142858
142858
|
productions_: [0, [3, 2], [5, 0], [5, 2], [6, 1], [6, 1], [6, 1], [6, 1], [6, 1], [4, 2], [4, 2], [4, 2], [4, 3], [16, 2], [16, 1], [17, 1], [17, 1], [17, 1], [15, 1], [15, 1], [15, 2], [19, 2], [19, 2], [19, 1], [19, 1], [18, 2], [18, 1], [7, 2], [7, 2], [7, 2], [7, 2], [7, 2], [7, 2], [7, 9], [7, 6], [7, 4], [7, 1], [7, 2], [7, 2], [7, 1], [21, 1], [21, 1], [21, 1], [39, 2], [39, 1], [20, 4], [20, 3], [20, 4], [20, 2], [20, 2], [20, 1], [42, 1], [42, 6], [42, 5], [43, 1], [43, 3], [45, 4], [45, 4], [45, 6], [45, 4], [45, 4], [45, 4], [45, 8], [45, 4], [45, 4], [45, 4], [45, 6], [45, 4], [45, 4], [45, 4], [45, 4], [45, 4], [45, 1], [41, 2], [41, 3], [41, 3], [41, 1], [41, 3], [41, 4], [76, 1], [76, 2], [76, 1], [76, 1], [72, 1], [72, 2], [73, 3], [30, 1], [30, 2], [30, 1], [30, 1], [83, 1], [83, 1], [83, 1], [83, 1], [83, 1], [83, 1], [83, 1], [83, 1], [83, 1], [83, 1], [83, 1], [28, 1], [28, 2], [28, 1], [28, 1], [24, 5], [25, 5], [26, 2], [26, 4], [26, 3], [26, 5], [26, 3], [26, 5], [26, 5], [26, 7], [26, 2], [26, 4], [26, 2], [26, 4], [26, 4], [26, 6], [22, 5], [23, 5], [23, 5], [23, 9], [23, 9], [23, 7], [23, 7], [103, 1], [103, 3], [92, 1], [92, 3], [107, 1], [107, 2], [108, 1], [108, 1], [108, 1], [108, 1], [108, 1], [108, 1], [108, 1], [108, 1], [113, 1], [113, 1], [113, 1], [113, 1], [113, 1], [113, 1], [113, 1], [113, 1], [113, 1], [113, 1], [113, 1], [82, 1], [82, 1], [82, 1], [82, 1], [91, 1], [91, 1], [91, 1], [91, 1], [91, 1], [91, 1], [91, 1], [91, 1], [91, 1], [91, 1], [91, 1], [79, 1], [79, 1], [120, 1], [120, 1], [120, 1], [120, 1], [120, 1], [120, 1], [120, 1], [120, 1], [120, 1], [120, 1], [120, 1], [47, 1], [47, 2], [101, 1], [101, 2], [33, 1], [33, 1], [33, 1], [33, 1]],
|
142859
|
-
performAction: /* @__PURE__ */ g(function(ut, vt, Ct, St, Ar, Fe,
|
142859
|
+
performAction: /* @__PURE__ */ g(function(ut, vt, Ct, St, Ar, Fe, xi) {
|
142860
142860
|
var qe = Fe.length - 1;
|
142861
142861
|
switch (Ar) {
|
142862
142862
|
case 2:
|
@@ -143164,7 +143164,7 @@ You have to call mermaid.initialize.`
|
|
143164
143164
|
}
|
143165
143165
|
}, "parseError"),
|
143166
143166
|
parse: /* @__PURE__ */ g(function(ut) {
|
143167
|
-
var vt = this, Ct = [0], St = [], Ar = [null], Fe = [],
|
143167
|
+
var vt = this, Ct = [0], St = [], Ar = [null], Fe = [], xi = this.table, qe = "", mn = 0, ja = 0, pa = 2, Fa = 1, Ls = Fe.slice.call(arguments, 1), Ui = Object.create(this.lexer), bs = { yy: {} };
|
143168
143168
|
for (var Ba in this.yy)
|
143169
143169
|
Object.prototype.hasOwnProperty.call(this.yy, Ba) && (bs.yy[Ba] = this.yy[Ba]);
|
143170
143170
|
Ui.setInput(ut, bs.yy), bs.yy.lexer = Ui, bs.yy.parser = this, typeof Ui.yylloc > "u" && (Ui.yylloc = {});
|
@@ -143182,10 +143182,10 @@ You have to call mermaid.initialize.`
|
|
143182
143182
|
}
|
143183
143183
|
g(rn, "lex");
|
143184
143184
|
for (var $i, Vn, kn, So, ga = {}, Es, ni, gr, xr; ; ) {
|
143185
|
-
if (Vn = Ct[Ct.length - 1], this.defaultActions[Vn] ? kn = this.defaultActions[Vn] : (($i === null || typeof $i > "u") && ($i = rn()), kn =
|
143185
|
+
if (Vn = Ct[Ct.length - 1], this.defaultActions[Vn] ? kn = this.defaultActions[Vn] : (($i === null || typeof $i > "u") && ($i = rn()), kn = xi[Vn] && xi[Vn][$i]), typeof kn > "u" || !kn.length || !kn[0]) {
|
143186
143186
|
var Hr = "";
|
143187
143187
|
xr = [];
|
143188
|
-
for (Es in
|
143188
|
+
for (Es in xi[Vn])
|
143189
143189
|
this.terminals_[Es] && Es > pa && xr.push("'" + this.terminals_[Es] + "'");
|
143190
143190
|
Ui.showPosition ? Hr = "Parse error on line " + (mn + 1) + `:
|
143191
143191
|
` + Ui.showPosition() + `
|
@@ -143222,7 +143222,7 @@ Expecting ` + xr.join(", ") + ", got '" + (this.terminals_[$i] || $i) + "'" : Hr
|
|
143222
143222
|
Fe
|
143223
143223
|
].concat(Ls)), typeof So < "u")
|
143224
143224
|
return So;
|
143225
|
-
ni && (Ct = Ct.slice(0, -1 * ni * 2), Ar = Ar.slice(0, -1 * ni), Fe = Fe.slice(0, -1 * ni)), Ct.push(this.productions_[kn[1]][0]), Ar.push(ga.$), Fe.push(ga._$), gr =
|
143225
|
+
ni && (Ct = Ct.slice(0, -1 * ni * 2), Ar = Ar.slice(0, -1 * ni), Fe = Fe.slice(0, -1 * ni)), Ct.push(this.productions_[kn[1]][0]), Ar.push(ga.$), Fe.push(ga._$), gr = xi[Ct[Ct.length - 2]][Ct[Ct.length - 1]], Ct.push(gr);
|
143226
143226
|
break;
|
143227
143227
|
case 3:
|
143228
143228
|
return !0;
|
@@ -148533,7 +148533,7 @@ function HR(t, e, r) {
|
|
148533
148533
|
default:
|
148534
148534
|
throw Error("non exhaustive match!");
|
148535
148535
|
}
|
148536
|
-
return
|
148536
|
+
return wi(e);
|
148537
148537
|
}
|
148538
148538
|
g(HR, "firstCharOptimizedIndices");
|
148539
148539
|
function q2(t, e, r) {
|
@@ -149006,7 +149006,7 @@ g(Sze, "performRuntimeChecks");
|
|
149006
149006
|
function wze(t, e, r) {
|
149007
149007
|
const n = [];
|
149008
149008
|
let i = !1;
|
149009
|
-
const a = FC(As(
|
149009
|
+
const a = FC(As(wi(t.modes))), s = qO(a, (l) => l[$m] === Vo.NA), o = yee(r);
|
149010
149010
|
return e && gt(s, (l) => {
|
149011
149011
|
const u = _ee(l, o);
|
149012
149012
|
if (u !== !1) {
|
@@ -149674,7 +149674,7 @@ var Obr = class extends zb {
|
|
149674
149674
|
super(), this.nameToTopRule = t, this.errMsgProvider = e, this.errors = [];
|
149675
149675
|
}
|
149676
149676
|
resolveRefs() {
|
149677
|
-
gt(
|
149677
|
+
gt(wi(this.nameToTopRule), (t) => {
|
149678
149678
|
this.currTopLevel = t, t.accept(this);
|
149679
149679
|
});
|
149680
149680
|
}
|
@@ -150335,7 +150335,7 @@ function jze(t, e) {
|
|
150335
150335
|
const r = new Ubr();
|
150336
150336
|
t.accept(r);
|
150337
150337
|
const n = r.allProductions, i = H_r(n, Xze), a = td(i, (o) => o.length > 1);
|
150338
|
-
return Zt(
|
150338
|
+
return Zt(wi(a), (o) => {
|
150339
150339
|
const l = Hu(o), u = e.buildDuplicateFoundError(t, o), d = Ru(l), h = {
|
150340
150340
|
message: u,
|
150341
150341
|
type: Xo.DUPLICATE_PRODUCTIONS,
|
@@ -151557,7 +151557,7 @@ var Xbr = class {
|
|
151557
151557
|
return this.gastProductionsCache;
|
151558
151558
|
}
|
151559
151559
|
getSerializedGastProductions() {
|
151560
|
-
return K$e(
|
151560
|
+
return K$e(wi(this.gastProductionsCache));
|
151561
151561
|
}
|
151562
151562
|
}, Jbr = class {
|
151563
151563
|
static {
|
@@ -151580,16 +151580,16 @@ var Xbr = class {
|
|
151580
151580
|
}
|
151581
151581
|
if (Bn(t))
|
151582
151582
|
this.tokensMap = Ga(t, (i, a) => (i[a.name] = a, i), {});
|
151583
|
-
else if (Gr(t, "modes") && Bu(As(
|
151584
|
-
const i = As(
|
151583
|
+
else if (Gr(t, "modes") && Bu(As(wi(t.modes)), Pze)) {
|
151584
|
+
const i = As(wi(t.modes)), a = GZ(i);
|
151585
151585
|
this.tokensMap = Ga(a, (s, o) => (s[o.name] = o, s), {});
|
151586
151586
|
} else if (kl(t))
|
151587
151587
|
this.tokensMap = ps(t);
|
151588
151588
|
else
|
151589
151589
|
throw new Error("<tokensDictionary> argument must be An Array of Token constructors, A dictionary of Token constructors or an IMultiModeLexerDefinition");
|
151590
151590
|
this.tokensMap.EOF = cg;
|
151591
|
-
const r = Gr(t, "modes") ? As(
|
151592
|
-
this.tokenMatcher = n ? cw : Gb, Hb(
|
151591
|
+
const r = Gr(t, "modes") ? As(wi(t.modes)) : wi(t), n = Bu(r, (i) => oi(i.categoryMatches));
|
151592
|
+
this.tokenMatcher = n ? cw : Gb, Hb(wi(this.tokensMap));
|
151593
151593
|
}
|
151594
151594
|
defineRule(t, e, r) {
|
151595
151595
|
if (this.selfAnalysisDone)
|
@@ -152218,31 +152218,31 @@ var Nee = class Rqe {
|
|
152218
152218
|
let n = [];
|
152219
152219
|
if (this.TRACE_INIT("Grammar Resolving", () => {
|
152220
152220
|
n = sqe({
|
152221
|
-
rules:
|
152221
|
+
rules: wi(this.gastProductionsCache)
|
152222
152222
|
}), this.definitionErrors = this.definitionErrors.concat(n);
|
152223
152223
|
}), this.TRACE_INIT("Grammar Validations", () => {
|
152224
152224
|
if (oi(n) && this.skipValidations === !1) {
|
152225
152225
|
const i = oqe({
|
152226
|
-
rules:
|
152227
|
-
tokenTypes:
|
152226
|
+
rules: wi(this.gastProductionsCache),
|
152227
|
+
tokenTypes: wi(this.tokensMap),
|
152228
152228
|
errMsgProvider: J0,
|
152229
152229
|
grammarName: r
|
152230
152230
|
}), a = Wze({
|
152231
152231
|
lookaheadStrategy: this.lookaheadStrategy,
|
152232
|
-
rules:
|
152233
|
-
tokenTypes:
|
152232
|
+
rules: wi(this.gastProductionsCache),
|
152233
|
+
tokenTypes: wi(this.tokensMap),
|
152234
152234
|
grammarName: r
|
152235
152235
|
});
|
152236
152236
|
this.definitionErrors = this.definitionErrors.concat(i, a);
|
152237
152237
|
}
|
152238
152238
|
}), oi(this.definitionErrors) && (this.recoveryEnabled && this.TRACE_INIT("computeAllProdsFollows", () => {
|
152239
|
-
const i = tze(
|
152239
|
+
const i = tze(wi(this.gastProductionsCache));
|
152240
152240
|
this.resyncFollows = i;
|
152241
152241
|
}), this.TRACE_INIT("ComputeLookaheadFunctions", () => {
|
152242
152242
|
var i, a;
|
152243
152243
|
(a = (i = this.lookaheadStrategy).initialize) === null || a === void 0 || a.call(i, {
|
152244
|
-
rules:
|
152245
|
-
}), this.preComputeLookaheadFunctions(
|
152244
|
+
rules: wi(this.gastProductionsCache)
|
152245
|
+
}), this.preComputeLookaheadFunctions(wi(this.gastProductionsCache));
|
152246
152246
|
})), !Rqe.DEFER_DEFINITION_ERRORS_HANDLING && !oi(this.definitionErrors))
|
152247
152247
|
throw e = Zt(this.definitionErrors, (i) => i.message), new Error(`Parser Definition Errors detected:
|
152248
152248
|
${e.join(`
|
@@ -162353,7 +162353,7 @@ function eVe(t) {
|
|
162353
162353
|
g(eVe, "validateSizeInPixels");
|
162354
162354
|
var wSr = et();
|
162355
162355
|
function ih(t) {
|
162356
|
-
return
|
162356
|
+
return Ci(t.trim(), wSr);
|
162357
162357
|
}
|
162358
162358
|
g(ih, "textSanitizer");
|
162359
162359
|
var Gs = new SSr();
|
@@ -163645,7 +163645,7 @@ function qte() {
|
|
163645
163645
|
g(qte, "getChartDefaultData");
|
163646
163646
|
function L6(t) {
|
163647
163647
|
const e = Ei();
|
163648
|
-
return
|
163648
|
+
return Ci(t.trim(), e);
|
163649
163649
|
}
|
163650
163650
|
g(L6, "textSanitizer");
|
163651
163651
|
function vVe(t) {
|
@@ -165486,7 +165486,7 @@ var JSr = ZY, ewr = {
|
|
165486
165486
|
}
|
165487
165487
|
const { wrap: i, cleanedText: a } = this.extractWrap(n);
|
165488
165488
|
return {
|
165489
|
-
text: a ?
|
165489
|
+
text: a ? Ci(a, et()) : void 0,
|
165490
165490
|
color: r,
|
165491
165491
|
wrap: i
|
165492
165492
|
};
|
@@ -165511,7 +165511,7 @@ var JSr = ZY, ewr = {
|
|
165511
165511
|
addLinks(t, e) {
|
165512
165512
|
const r = this.getActor(t);
|
165513
165513
|
try {
|
165514
|
-
let n =
|
165514
|
+
let n = Ci(e.text, et());
|
165515
165515
|
n = n.replace(/=/g, "="), n = n.replace(/&/g, "&");
|
165516
165516
|
const i = JSON.parse(n);
|
165517
165517
|
this.insertLinks(r, i);
|
@@ -165523,7 +165523,7 @@ var JSr = ZY, ewr = {
|
|
165523
165523
|
const r = this.getActor(t);
|
165524
165524
|
try {
|
165525
165525
|
const n = {};
|
165526
|
-
let i =
|
165526
|
+
let i = Ci(e.text, et());
|
165527
165527
|
const a = i.indexOf("@");
|
165528
165528
|
i = i.replace(/=/g, "="), i = i.replace(/&/g, "&");
|
165529
165529
|
const s = i.slice(0, a - 1).trim(), o = i.slice(a + 1).trim();
|
@@ -165542,7 +165542,7 @@ var JSr = ZY, ewr = {
|
|
165542
165542
|
addProperties(t, e) {
|
165543
165543
|
const r = this.getActor(t);
|
165544
165544
|
try {
|
165545
|
-
const n =
|
165545
|
+
const n = Ci(e.text, et()), i = JSON.parse(n);
|
165546
165546
|
this.insertProperties(r, i);
|
165547
165547
|
} catch (n) {
|
165548
165548
|
Ce.error("error while parsing actor properties text", n);
|
@@ -167651,7 +167651,7 @@ var VVe = tW, Uve = ["#", "+", "~", "-", ""], $ve = class {
|
|
167651
167651
|
}
|
167652
167652
|
constructor(t, e) {
|
167653
167653
|
this.memberType = e, this.visibility = "", this.classifier = "", this.text = "";
|
167654
|
-
const r =
|
167654
|
+
const r = Ci(t, et());
|
167655
167655
|
this.parseMember(r);
|
167656
167656
|
}
|
167657
167657
|
getDisplayDetails() {
|
@@ -192289,9 +192289,9 @@ var J3r = PW, zu = [], Nje = 0, Gre = {}, eRr = /* @__PURE__ */ g(() => {
|
|
192289
192289
|
}
|
192290
192290
|
const s = {
|
192291
192291
|
id: Nje++,
|
192292
|
-
nodeId:
|
192292
|
+
nodeId: Ci(e, i),
|
192293
192293
|
level: t,
|
192294
|
-
descr:
|
192294
|
+
descr: Ci(r, i),
|
192295
192295
|
type: n,
|
192296
192296
|
children: [],
|
192297
192297
|
width: i.mindmap?.maxNodeWidth ?? Wn.mindmap.maxNodeWidth,
|
@@ -192337,7 +192337,7 @@ var J3r = PW, zu = [], Nje = 0, Gre = {}, eRr = /* @__PURE__ */ g(() => {
|
|
192337
192337
|
if (!t)
|
192338
192338
|
return;
|
192339
192339
|
const e = et(), r = zu[zu.length - 1];
|
192340
|
-
t.icon && (r.icon =
|
192340
|
+
t.icon && (r.icon = Ci(t.icon, e)), t.class && (r.class = Ci(t.class, e));
|
192341
192341
|
}, "decorateNode"), oRr = /* @__PURE__ */ g((t) => {
|
192342
192342
|
switch (t) {
|
192343
192343
|
case ns.DEFAULT:
|
@@ -193152,7 +193152,7 @@ var RRr = FW, Nc = [], Yre = [], BW = 0, Wre = {}, NRr = /* @__PURE__ */ g(() =>
|
|
193152
193152
|
for (const i of r) {
|
193153
193153
|
const a = {
|
193154
193154
|
id: i.id,
|
193155
|
-
label:
|
193155
|
+
label: Ci(i.label ?? "", n),
|
193156
193156
|
isGroup: !0,
|
193157
193157
|
ticket: i.ticket,
|
193158
193158
|
shape: "kanbanSection",
|
@@ -193165,7 +193165,7 @@ var RRr = FW, Nc = [], Yre = [], BW = 0, Wre = {}, NRr = /* @__PURE__ */ g(() =>
|
|
193165
193165
|
const l = {
|
193166
193166
|
id: o.id,
|
193167
193167
|
parentId: i.id,
|
193168
|
-
label:
|
193168
|
+
label: Ci(o.label ?? "", n),
|
193169
193169
|
isGroup: !1,
|
193170
193170
|
ticket: o?.ticket,
|
193171
193171
|
priority: o?.priority,
|
@@ -193191,9 +193191,9 @@ var RRr = FW, Nc = [], Yre = [], BW = 0, Wre = {}, NRr = /* @__PURE__ */ g(() =>
|
|
193191
193191
|
s *= 2;
|
193192
193192
|
}
|
193193
193193
|
const o = {
|
193194
|
-
id:
|
193194
|
+
id: Ci(e, a) || "kbn" + BW++,
|
193195
193195
|
level: t,
|
193196
|
-
label:
|
193196
|
+
label: Ci(r, a),
|
193197
193197
|
width: a.mindmap?.maxNodeWidth ?? Wn.mindmap.maxNodeWidth,
|
193198
193198
|
padding: s,
|
193199
193199
|
isGroup: !1
|
@@ -193244,7 +193244,7 @@ var RRr = FW, Nc = [], Yre = [], BW = 0, Wre = {}, NRr = /* @__PURE__ */ g(() =>
|
|
193244
193244
|
if (!t)
|
193245
193245
|
return;
|
193246
193246
|
const e = et(), r = Nc[Nc.length - 1];
|
193247
|
-
t.icon && (r.icon =
|
193247
|
+
t.icon && (r.icon = Ci(t.icon, e)), t.class && (r.cssClasses = Ci(t.class, e));
|
193248
193248
|
}, "decorateNode"), BRr = /* @__PURE__ */ g((t) => {
|
193249
193249
|
switch (t) {
|
193250
193250
|
case is.DEFAULT:
|
@@ -196133,7 +196133,7 @@ var jIr = /* @__PURE__ */ g((t, e) => {
|
|
196133
196133
|
let h;
|
196134
196134
|
e.labelType === "markdown" ? h = Ol(
|
196135
196135
|
l,
|
196136
|
-
|
196136
|
+
Ci(Gd(u), i),
|
196137
196137
|
{
|
196138
196138
|
useHtmlLabels: s,
|
196139
196139
|
width: e.width || i.flowchart.wrappingWidth,
|
@@ -196141,7 +196141,7 @@ var jIr = /* @__PURE__ */ g((t, e) => {
|
|
196141
196141
|
},
|
196142
196142
|
i
|
196143
196143
|
) : h = d.appendChild(
|
196144
|
-
Uc(
|
196144
|
+
Uc(Ci(Gd(u), i), e.labelStyle, !1, n)
|
196145
196145
|
);
|
196146
196146
|
let p = h.getBBox();
|
196147
196147
|
const f = e.padding / 2;
|
package/package.json
CHANGED