diff --git a/MystEditor.js b/MystEditor.js index b5dfee8..e2ec5b2 100644 --- a/MystEditor.js +++ b/MystEditor.js @@ -35802,7 +35802,7 @@ var Aie = /* @__PURE__ */ x((t) => (cvt(), Ug.sanitize(t)), "removeScript"), gU return t; if (!(mU() || e.legacyMathML || e.forceLegacyMathML)) return t.replace(y8, "MathML is unsupported in this environment."); - const { default: r } = await Promise.resolve().then(() => mLt), n = e.forceLegacyMathML || !mU() && e.legacyMathML ? "htmlAndMathml" : "mathml"; + const { default: r } = await Promise.resolve().then(() => vLt), n = e.forceLegacyMathML || !mU() && e.legacyMathML ? "htmlAndMathml" : "mathml"; return t.split(G1).map( (i) => ca(i) ? `
${i}
` : `
${i}
` ).join("").replace( @@ -45474,7 +45474,7 @@ res:`, boe([ { name: "dagre", - loader: /* @__PURE__ */ x(async () => await Promise.resolve().then(() => nIt), "loader") + loader: /* @__PURE__ */ x(async () => await Promise.resolve().then(() => iIt), "loader") } ]); }, "registerDefaultLayoutLoaders"); @@ -45810,7 +45810,7 @@ function $r(t) { return !0; } var _oe = "c4", FTt = /* @__PURE__ */ x((t) => /^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(t), "detector"), zTt = /* @__PURE__ */ x(async () => { - const { diagram: t } = await Promise.resolve().then(() => tPt); + const { diagram: t } = await Promise.resolve().then(() => rPt); return { id: _oe, diagram: t }; }, "loader"), VTt = { id: _oe, @@ -45837,63 +45837,63 @@ var _oe = "c4", FTt = /* @__PURE__ */ x((t) => /^\s*C4Context|C4Container|C4Comp detector: GTt, loader: HTt }, ZTt = XTt, Roe = "er", jTt = /* @__PURE__ */ x((t) => /^\s*erDiagram/.test(t), "detector"), KTt = /* @__PURE__ */ x(async () => { - const { diagram: t } = await Promise.resolve().then(() => iBt); + const { diagram: t } = await Promise.resolve().then(() => sBt); return { id: Roe, diagram: t }; }, "loader"), JTt = { id: Roe, detector: jTt, loader: KTt }, eCt = JTt, Moe = "gitGraph", tCt = /* @__PURE__ */ x((t) => /^\s*gitGraph/.test(t), "detector"), rCt = /* @__PURE__ */ x(async () => { - const { diagram: t } = await Promise.resolve().then(() => SYt); + const { diagram: t } = await Promise.resolve().then(() => TYt); return { id: Moe, diagram: t }; }, "loader"), nCt = { id: Moe, detector: tCt, loader: rCt }, iCt = nCt, Doe = "gantt", sCt = /* @__PURE__ */ x((t) => /^\s*gantt/.test(t), "detector"), aCt = /* @__PURE__ */ x(async () => { - const { diagram: t } = await Promise.resolve().then(() => yWt); + const { diagram: t } = await Promise.resolve().then(() => bWt); return { id: Doe, diagram: t }; }, "loader"), oCt = { id: Doe, detector: sCt, loader: aCt }, lCt = oCt, Noe = "info", cCt = /* @__PURE__ */ x((t) => /^\s*info/.test(t), "detector"), uCt = /* @__PURE__ */ x(async () => { - const { diagram: t } = await Promise.resolve().then(() => CWt); + const { diagram: t } = await Promise.resolve().then(() => EWt); return { id: Noe, diagram: t }; }, "loader"), hCt = { id: Noe, detector: cCt, loader: uCt }, Ioe = "pie", fCt = /* @__PURE__ */ x((t) => /^\s*pie/.test(t), "detector"), dCt = /* @__PURE__ */ x(async () => { - const { diagram: t } = await Promise.resolve().then(() => UWt); + const { diagram: t } = await Promise.resolve().then(() => qWt); return { id: Ioe, diagram: t }; }, "loader"), pCt = { id: Ioe, detector: fCt, loader: dCt }, Poe = "quadrantChart", gCt = /* @__PURE__ */ x((t) => /^\s*quadrantChart/.test(t), "detector"), mCt = /* @__PURE__ */ x(async () => { - const { diagram: t } = await Promise.resolve().then(() => jWt); + const { diagram: t } = await Promise.resolve().then(() => KWt); return { id: Poe, diagram: t }; }, "loader"), vCt = { id: Poe, detector: gCt, loader: mCt }, yCt = vCt, $oe = "xychart", bCt = /* @__PURE__ */ x((t) => /^\s*xychart-beta/.test(t), "detector"), xCt = /* @__PURE__ */ x(async () => { - const { diagram: t } = await Promise.resolve().then(() => fGt); + const { diagram: t } = await Promise.resolve().then(() => dGt); return { id: $oe, diagram: t }; }, "loader"), wCt = { id: $oe, detector: bCt, loader: xCt }, OCt = wCt, Boe = "requirement", kCt = /* @__PURE__ */ x((t) => /^\s*requirement(Diagram)?/.test(t), "detector"), SCt = /* @__PURE__ */ x(async () => { - const { diagram: t } = await Promise.resolve().then(() => QGt); + const { diagram: t } = await Promise.resolve().then(() => YGt); return { id: Boe, diagram: t }; }, "loader"), TCt = { id: Boe, detector: kCt, loader: SCt }, CCt = TCt, Foe = "sequence", ECt = /* @__PURE__ */ x((t) => /^\s*sequenceDiagram/.test(t), "detector"), _Ct = /* @__PURE__ */ x(async () => { - const { diagram: t } = await Promise.resolve().then(() => YHt); + const { diagram: t } = await Promise.resolve().then(() => WHt); return { id: Foe, diagram: t }; }, "loader"), ACt = { id: Foe, @@ -45903,7 +45903,7 @@ var _oe = "c4", FTt = /* @__PURE__ */ x((t) => /^\s*C4Context|C4Container|C4Comp var r; return ((r = e == null ? void 0 : e.class) == null ? void 0 : r.defaultRenderer) === "dagre-wrapper" ? !1 : /^\s*classDiagram/.test(t); }, "detector"), MCt = /* @__PURE__ */ x(async () => { - const { diagram: t } = await Promise.resolve().then(() => CXt); + const { diagram: t } = await Promise.resolve().then(() => EXt); return { id: zoe, diagram: t }; }, "loader"), DCt = { id: zoe, @@ -45913,7 +45913,7 @@ var _oe = "c4", FTt = /* @__PURE__ */ x((t) => /^\s*C4Context|C4Container|C4Comp var r; return /^\s*classDiagram/.test(t) && ((r = e == null ? void 0 : e.class) == null ? void 0 : r.defaultRenderer) === "dagre-wrapper" ? !0 : /^\s*classDiagram-v2/.test(t); }, "detector"), PCt = /* @__PURE__ */ x(async () => { - const { diagram: t } = await Promise.resolve().then(() => lZt); + const { diagram: t } = await Promise.resolve().then(() => cZt); return { id: Voe, diagram: t }; }, "loader"), $Ct = { id: Voe, @@ -45923,7 +45923,7 @@ var _oe = "c4", FTt = /* @__PURE__ */ x((t) => /^\s*C4Context|C4Container|C4Comp var r; return ((r = e == null ? void 0 : e.state) == null ? void 0 : r.defaultRenderer) === "dagre-wrapper" ? !1 : /^\s*stateDiagram/.test(t); }, "detector"), zCt = /* @__PURE__ */ x(async () => { - const { diagram: t } = await Promise.resolve().then(() => bjt); + const { diagram: t } = await Promise.resolve().then(() => xjt); return { id: Uoe, diagram: t }; }, "loader"), VCt = { id: Uoe, @@ -45933,14 +45933,14 @@ var _oe = "c4", FTt = /* @__PURE__ */ x((t) => /^\s*C4Context|C4Container|C4Comp var r; return !!(/^\s*stateDiagram-v2/.test(t) || /^\s*stateDiagram/.test(t) && ((r = e == null ? void 0 : e.state) == null ? void 0 : r.defaultRenderer) === "dagre-wrapper"); }, "detector"), QCt = /* @__PURE__ */ x(async () => { - const { diagram: t } = await Promise.resolve().then(() => wjt); + const { diagram: t } = await Promise.resolve().then(() => Ojt); return { id: qoe, diagram: t }; }, "loader"), YCt = { id: qoe, detector: qCt, loader: QCt }, WCt = YCt, Qoe = "journey", GCt = /* @__PURE__ */ x((t) => /^\s*journey/.test(t), "detector"), HCt = /* @__PURE__ */ x(async () => { - const { diagram: t } = await Promise.resolve().then(() => qjt); + const { diagram: t } = await Promise.resolve().then(() => Qjt); return { id: Qoe, diagram: t }; }, "loader"), XCt = { id: Qoe, @@ -45987,42 +45987,42 @@ var _oe = "c4", FTt = /* @__PURE__ */ x((t) => /^\s*C4Context|C4Container|C4Comp detector: tEt, loader: rEt }, iEt = nEt, Goe = "timeline", sEt = /* @__PURE__ */ x((t) => /^\s*timeline/.test(t), "detector"), aEt = /* @__PURE__ */ x(async () => { - const { diagram: t } = await Promise.resolve().then(() => hKt); + const { diagram: t } = await Promise.resolve().then(() => fKt); return { id: Goe, diagram: t }; }, "loader"), oEt = { id: Goe, detector: sEt, loader: aEt }, lEt = oEt, Hoe = "mindmap", cEt = /* @__PURE__ */ x((t) => /^\s*mindmap/.test(t), "detector"), uEt = /* @__PURE__ */ x(async () => { - const { diagram: t } = await Promise.resolve().then(() => kar); + const { diagram: t } = await Promise.resolve().then(() => Sar); return { id: Hoe, diagram: t }; }, "loader"), hEt = { id: Hoe, detector: cEt, loader: uEt }, fEt = hEt, Xoe = "sankey", dEt = /* @__PURE__ */ x((t) => /^\s*sankey-beta/.test(t), "detector"), pEt = /* @__PURE__ */ x(async () => { - const { diagram: t } = await Promise.resolve().then(() => sor); + const { diagram: t } = await Promise.resolve().then(() => aor); return { id: Xoe, diagram: t }; }, "loader"), gEt = { id: Xoe, detector: dEt, loader: pEt }, mEt = gEt, Zoe = "packet", vEt = /* @__PURE__ */ x((t) => /^\s*packet-beta/.test(t), "detector"), yEt = /* @__PURE__ */ x(async () => { - const { diagram: t } = await Promise.resolve().then(() => Oor); + const { diagram: t } = await Promise.resolve().then(() => kor); return { id: Zoe, diagram: t }; }, "loader"), bEt = { id: Zoe, detector: vEt, loader: yEt }, joe = "block", xEt = /* @__PURE__ */ x((t) => /^\s*block-beta/.test(t), "detector"), wEt = /* @__PURE__ */ x(async () => { - const { diagram: t } = await Promise.resolve().then(() => Zor); + const { diagram: t } = await Promise.resolve().then(() => jor); return { id: joe, diagram: t }; }, "loader"), OEt = { id: joe, detector: xEt, loader: wEt }, kEt = OEt, Koe = "architecture", SEt = /* @__PURE__ */ x((t) => /^\s*architecture/.test(t), "detector"), TEt = /* @__PURE__ */ x(async () => { - const { diagram: t } = await Promise.resolve().then(() => Mlr); + const { diagram: t } = await Promise.resolve().then(() => Dlr); return { id: Koe, diagram: t }; }, "loader"), CEt = { id: Koe, @@ -48503,7 +48503,7 @@ const R_t = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvM parent: n.current }); return t.syncSuggestions(e), t.registerCommentEditor(e, u), l.observe((h, f) => { - !f.local || t.syncSuggestions(e); + !f.local || (t.syncSuggestions(e), t.provider.awareness.setLocalStateField("lastChanged", Date.now())); }), t.newLocalComment && (u.focus(), t.newLocalComment = !1), () => { u.destroy(); }; @@ -48686,7 +48686,6 @@ const R_t = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvM } .cm-ySelectionInfo { - opacity: 1 !important; font-size: 0.6rem; padding: 0.25rem 0.5rem !important; border-top-left-radius: 10px; @@ -48694,14 +48693,22 @@ const R_t = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvM border-bottom-right-radius: 10px; font-family: "Lato" !important; font-weight: 600 !important; - } + transition: none; - .cm-widgetBuffer { - margin-bottom: 0; + &.active { + opacity: 1; + } } .cm-ySelectionCaretDot { - display: none; + transition: none; + &:has(+ .active) { + transform: scale(0); + } + } + + .cm-widgetBuffer { + margin-bottom: 0; } .cm-yLineSelection { @@ -50623,6 +50630,65 @@ const fAt = er.div` <${pAt} buttons=${h} initialClickedId=${f} /> `; }; +function YAt({ + ytext: t, + prov: e, + parent: r, + hideDelay: n = 5e3 +}) { + const i = /* @__PURE__ */ new Map(), s = Date.now(); + t.observe((a, o) => { + !o.local || e.awareness.setLocalStateField("lastChanged", Date.now()); + }), e.awareness.on("change", () => { + e.awareness.getStates().forEach((a, o) => { + var g, m; + const l = o === e.awareness.clientID, u = a.lastChanged && ((g = i.get(o)) == null ? void 0 : g.lastChanged) !== a.lastChanged && a.lastChanged >= s; + if (l || !u) + return; + const h = (m = i.get(o)) == null ? void 0 : m.timer; + clearTimeout(h); + const f = () => { + r.querySelectorAll(".cm-ySelectionInfo").forEach((v) => { + v.innerText === a.user.name && v.classList.add("active"); + }); + }, d = () => { + r.querySelectorAll(".cm-ySelectionInfo").forEach((v) => { + v.innerText === a.user.name && v.classList.remove("active"); + }); + }; + if (!h) { + f(); + const v = new MutationObserver((y) => { + for (const b of y) { + const w = b.target.className.includes("cm-line"), O = Boolean([...b.removedNodes].find((S) => { + var C, T; + return (T = (C = S.classList) == null ? void 0 : C.contains) == null ? void 0 : T.call(C, "cm-ySelectionCaret"); + })); + w && O && f(); + } + }); + v.observe(r, { + childList: !0, + subtree: !0 + }), i.set(o, { + ...i.get(o), + observer: v + }); + } + const p = setTimeout(() => { + d(), i.get(o).observer.disconnect(), i.set(o, { + ...i.get(o), + timer: null + }); + }, n); + i.set(o, { + ...i.get(o), + timer: p, + lastChanged: a.lastChanged + }); + }); + }); +} kre.prototype.watchCollabolators = function(t) { this.awareness.on("change", ({ added: e, @@ -50639,51 +50705,56 @@ kre.prototype.watchCollabolators = function(t) { } }); }; -function YAt(t) { +function WAt(t, e) { if (!t.enabled) return {}; - const e = Nn(() => new V1(), []), [r, n] = Rn(!1), [i, s] = Rn(!1), [a, o] = Rn(!1); + const r = Nn(() => new V1(), []), [n, i] = Rn(!1), [s, a] = Rn(!1), [o, l] = Rn(!1), u = Nn(() => r.getText("codemirror"), []); _i(() => { - const f = console.error, d = (p) => p == null ? void 0 : p.includes("Caught error while handling a Yjs update"); - console.error = (...p) => { - d(p[0]) && o("Collaboration error occured. Please check browser logs and restart the MyST Editor"), f(...p); + const d = console.error, p = (g) => g == null ? void 0 : g.includes("Caught error while handling a Yjs update"); + console.error = (...g) => { + p(g[0]) && l("Collaboration error occured. Please check browser logs and restart the MyST Editor"), d(...g); }; }, []); - const l = Nn(() => { - var d; - const f = new kre((d = t.wsUrl) != null ? d : "ws://localhost:4444", t.room, e, { + const h = Nn(() => { + var p; + const d = new kre((p = t.wsUrl) != null ? p : "ws://localhost:4444", t.room, r, { connect: !0, params: {}, WebSocketPolyfill: WebSocket, - awareness: new bre(e), + awareness: new bre(r), maxBackoffTime: 2500 }); - return f.awareness.setLocalStateField("user", { + return d.awareness.setLocalStateField("user", { name: t.username, color: t.color - }), f.ws.onerror = () => o(!0), f.on("sync", n), f.on("status", ({ - status: p - }) => s(p == "connected")), f; - }, []), u = Nn(() => e.getText("codemirror"), []), h = Nn(() => new CM(u, { - trackedOrigins: /* @__PURE__ */ new Set([l.doc.clientID, null]), + }), d.ws.onerror = () => l(!0), d.on("sync", i), d.on("status", ({ + status: g + }) => a(g == "connected")), YAt({ + ytext: u, + prov: d, + parent: e, + hideDelay: t.hideUsernameDelay + }), d; + }, []), f = Nn(() => new CM(u, { + trackedOrigins: /* @__PURE__ */ new Set([h.doc.clientID, null]), ignoreRemoteMapChanges: !0 }), []); - return _i(() => !l.ws && o(!0), [i]), { - provider: l, - undoManager: h, + return _i(() => !h.ws && l(!0), [s]), { + provider: h, + undoManager: f, ytext: u, - ydoc: e, - error: a, - ready: r && i + ydoc: r, + error: o, + ready: n && s }; } -function WAt(t, e, r, n) { +function GAt(t, e, r, n) { return !t || !e ? null : Nn(() => { const i = new Kv(t, e, r, n); return window.myst_editor.ycomments = i, i; }, []); } -const GAt = er.p` +const HAt = er.p` font-size: 16px; padding: 10px 6px; margin-bottom: 0; @@ -50698,29 +50769,29 @@ const GAt = er.p` & > span { display: ${(t) => t.orphaned ? "none" : "block"}; } -`, HAt = er.div` +`, XAt = er.div` background-color: color-mix(in srgb, ${(t) => t.color}, white); border: 2px solid ${(t) => t.color}; padding-top: 10px; margin-left: -1px; width: calc(100% - 3px); -`, XAt = er.div` +`, ZAt = er.div` display: flex; justify-content: space-between; align-items: center; line-height: 22px; padding: 0 6px; -`, ZAt = er.h2` +`, jAt = er.h2` font-weight: bold; font-size: 12px; margin: 0; -`, jAt = er.p` +`, KAt = er.p` font-size: 12px; font-weight: 400; line-height: 14px; margin: 0; margin-right: 25px; -`, KAt = er.p` +`, JAt = er.p` margin: 0; margin-top: 3px; font-size: 16px; @@ -50738,17 +50809,17 @@ const GAt = er.p` position: absolute; transform: translateX(calc(-100% - 12px)); } -`, JAt = er.span` +`, e7t = er.span` display: block; background-color: color-mix(in srgb, ${(t) => t.color}, white); margin: 0; padding: 10px 6px; white-space: pre-wrap; -`, e7t = er.span` +`, t7t = er.span` position: absolute; transform: translateX(calc(-100% - 24px)); color: var(--gray-700); -`, t7t = er.span` +`, r7t = er.span` margin-right: 6px; display: block; display: flex; @@ -50759,7 +50830,7 @@ const GAt = er.p` &:hover div { display: flex !important; } -`, r7t = er.div` +`, n7t = er.div` align-items: center; position: absolute; background-color: var(--gray-200); @@ -50798,7 +50869,7 @@ const GAt = er.p` color: var(--gray-900); } } -`, n7t = () => Bt` +`, i7t = () => Bt` -`, i7t = () => Bt` +`, s7t = () => Bt` @@ -50827,7 +50898,7 @@ const GAt = er.p` -`, s7t = () => Bt` +`, a7t = () => Bt` -`, a7t = new Intl.RelativeTimeFormat("en", { +`, o7t = new Intl.RelativeTimeFormat("en", { style: "long" -}), o7t = ({ +}), l7t = ({ c: t, authors: e, ycomments: r, @@ -50886,38 +50957,38 @@ const GAt = er.p` const u = Nn(() => t.orphaned ? "RESTORE ORPHANED" : t.occupied ? "RESTORE AND MERGE" : "RESTORE", [t]); return Bt`
- <${GAt} orphaned=${t.orphaned}> - <${e7t}>${t.lineNumber} + <${HAt} orphaned=${t.orphaned}> + <${t7t}>${t.lineNumber} ${t.resolvedLine} - <${HAt} className="resolved-comment" color=${e.get(1).color}> - <${XAt}> + <${XAt} className="resolved-comment" color=${e.get(1).color}> + <${ZAt}> <${EQ}> <${hue} login=${e.get(1).name} color=${e.get(1).color} avatarUrl=${e.get(1).avatar} userUrl=${e.get(1).url} /> - <${ZAt}>${e.get(1).name} + <${jAt}>${e.get(1).name} <${EQ}> - <${jAt}>Comment resolved by @${t.resolvedBy.name} ${a7t.format(-i.amount, i.unit)} - <${t7t} className="myst-dropdown-toggle"> - <${n7t} /> - <${r7t}> + <${KAt}>Comment resolved by @${t.resolvedBy.name} ${o7t.format(-i.amount, i.unit)} + <${r7t} className="myst-dropdown-toggle"> + <${i7t} /> + <${n7t}> <${_Q} className="myst-restore-btn" onClick=${() => r.restoreComment(t)}> - <${s7t} /> + <${a7t} />

${u}

<${_Q} className="myst-delete-btn" onClick=${() => r.resolver().delete(t.commentId)}> - <${i7t} /> + <${s7t} />

DELETE

- <${KAt}> ${o.map((h) => Bt` <${JAt} color=${h.author.color}>${h.text} `)} + <${JAt}> ${o.map((h) => Bt` <${e7t} color=${h.author.color}>${h.text} `)}
`; -}, l7t = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNSIgaGVpZ2h0PSIyMCIgdmlld0JveD0iMCAyIDIwIDEyIiBmaWxsPSJub25lIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik02LjM4NDk2IDUuMDkxNzRDNS45MDUwNyA1LjA5MTc0IDUuNTE0NjUgNS40ODIxNiA1LjUxNDY1IDUuOTYyMDVDNS41MTQ2NSA2LjE4OTc5IDUuNjA0MTIgNi40MTc1NCA1Ljc2Njc5IDYuNTgwMjFDNS45Mjk0NyA2Ljc0Mjg5IDYuMTQ5MDggNi44MzIzNiA2LjM4NDk2IDYuODMyMzZDNi42MjA4NCA2LjgzMjM2IDYuODQwNDUgNi43NDI4OSA3LjAwMzEzIDYuNTgwMjFDNy4xNjU4IDYuNDE3NTQgNy4yNTUyNyA2LjE5NzkzIDcuMjU1MjcgNS45NjIwNUM3LjI1NTI3IDUuNDgyMTYgNi44NjQ4NSA1LjA5MTc0IDYuMzg0OTYgNS4wOTE3NFoiIGZpbGw9IiMzMzJEMzciLz4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik04Ljk5NjI5IDUuMDkxNzRDOC41MTY0IDUuMDkxNzQgOC4xMjU5OCA1LjQ4MjE2IDguMTI1OTggNS45NjIwNUM4LjEyNTk4IDYuMTg5NzkgOC4yMTU0NSA2LjQxNzU0IDguMzc4MTIgNi41ODAyMUM4LjU0MDggNi43NDI4OSA4Ljc2MDQxIDYuODMyMzYgOC45OTYyOSA2LjgzMjM2QzkuMjMyMTcgNi44MzIzNiA5LjQ1MTc4IDYuNzQyODkgOS42MTQ0NSA2LjU4MDIxQzkuNzc3MTMgNi40MTc1NCA5Ljg2NjYgNi4xOTc5MyA5Ljg2NjYgNS45NjIwNUM5Ljg2NjYgNS40ODIxNiA5LjQ3NjE4IDUuMDkxNzQgOC45OTYyOSA1LjA5MTc0WiIgZmlsbD0iIzMzMkQzNyIvPgo8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTExLjYwNjYgNS4wOTE3NEMxMS4xMjY3IDUuMDkxNzQgMTAuNzM2MyA1LjQ4MjE2IDEwLjczNjMgNS45NjIwNUMxMC43MzYzIDYuMTg5NzkgMTAuODI1OCA2LjQxNzU0IDEwLjk4ODUgNi41ODAyMUMxMS4xNTExIDYuNzQyODkgMTEuMzcwOCA2LjgzMjM2IDExLjYwNjYgNi44MzIzNkMxMS44NDI1IDYuODMyMzYgMTIuMDYyMSA2Ljc0Mjg5IDEyLjIyNDggNi41ODAyMUMxMi4zODc1IDYuNDE3NTQgMTIuNDc3IDYuMTk3OTMgMTIuNDc3IDUuOTYyMDVDMTIuNDc3IDUuNDgyMTYgMTIuMDg2NSA1LjA5MTc0IDExLjYwNjYgNS4wOTE3NFoiIGZpbGw9IiMzMzJEMzciLz4KPHBhdGggZD0iTTE3LjEyOTggMTEuMDM3NVYwLjg2MjE4M0gwLjg2MjMwNVYxMC44NzQ4TDUuMTE2MjYgMTAuOTE1NUw5LjA1MyAxNC44NTIyTDEyLjg4NCAxMS4wMjk0TDE3LjEyOTggMTEuMDM3NVoiIHN0cm9rZT0iIzMzMkQzNyIgc3Ryb2tlLXdpZHRoPSIxLjUiLz4KPC9zdmc+", fue = er.div` +}, c7t = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNSIgaGVpZ2h0PSIyMCIgdmlld0JveD0iMCAyIDIwIDEyIiBmaWxsPSJub25lIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik02LjM4NDk2IDUuMDkxNzRDNS45MDUwNyA1LjA5MTc0IDUuNTE0NjUgNS40ODIxNiA1LjUxNDY1IDUuOTYyMDVDNS41MTQ2NSA2LjE4OTc5IDUuNjA0MTIgNi40MTc1NCA1Ljc2Njc5IDYuNTgwMjFDNS45Mjk0NyA2Ljc0Mjg5IDYuMTQ5MDggNi44MzIzNiA2LjM4NDk2IDYuODMyMzZDNi42MjA4NCA2LjgzMjM2IDYuODQwNDUgNi43NDI4OSA3LjAwMzEzIDYuNTgwMjFDNy4xNjU4IDYuNDE3NTQgNy4yNTUyNyA2LjE5NzkzIDcuMjU1MjcgNS45NjIwNUM3LjI1NTI3IDUuNDgyMTYgNi44NjQ4NSA1LjA5MTc0IDYuMzg0OTYgNS4wOTE3NFoiIGZpbGw9IiMzMzJEMzciLz4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik04Ljk5NjI5IDUuMDkxNzRDOC41MTY0IDUuMDkxNzQgOC4xMjU5OCA1LjQ4MjE2IDguMTI1OTggNS45NjIwNUM4LjEyNTk4IDYuMTg5NzkgOC4yMTU0NSA2LjQxNzU0IDguMzc4MTIgNi41ODAyMUM4LjU0MDggNi43NDI4OSA4Ljc2MDQxIDYuODMyMzYgOC45OTYyOSA2LjgzMjM2QzkuMjMyMTcgNi44MzIzNiA5LjQ1MTc4IDYuNzQyODkgOS42MTQ0NSA2LjU4MDIxQzkuNzc3MTMgNi40MTc1NCA5Ljg2NjYgNi4xOTc5MyA5Ljg2NjYgNS45NjIwNUM5Ljg2NjYgNS40ODIxNiA5LjQ3NjE4IDUuMDkxNzQgOC45OTYyOSA1LjA5MTc0WiIgZmlsbD0iIzMzMkQzNyIvPgo8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTExLjYwNjYgNS4wOTE3NEMxMS4xMjY3IDUuMDkxNzQgMTAuNzM2MyA1LjQ4MjE2IDEwLjczNjMgNS45NjIwNUMxMC43MzYzIDYuMTg5NzkgMTAuODI1OCA2LjQxNzU0IDEwLjk4ODUgNi41ODAyMUMxMS4xNTExIDYuNzQyODkgMTEuMzcwOCA2LjgzMjM2IDExLjYwNjYgNi44MzIzNkMxMS44NDI1IDYuODMyMzYgMTIuMDYyMSA2Ljc0Mjg5IDEyLjIyNDggNi41ODAyMUMxMi4zODc1IDYuNDE3NTQgMTIuNDc3IDYuMTk3OTMgMTIuNDc3IDUuOTYyMDVDMTIuNDc3IDUuNDgyMTYgMTIuMDg2NSA1LjA5MTc0IDExLjYwNjYgNS4wOTE3NFoiIGZpbGw9IiMzMzJEMzciLz4KPHBhdGggZD0iTTE3LjEyOTggMTEuMDM3NVYwLjg2MjE4M0gwLjg2MjMwNVYxMC44NzQ4TDUuMTE2MjYgMTAuOTE1NUw5LjA1MyAxNC44NTIyTDEyLjg4NCAxMS4wMjk0TDE3LjEyOTggMTEuMDM3NVoiIHN0cm9rZT0iIzMzMkQzNyIgc3Ryb2tlLXdpZHRoPSIxLjUiLz4KPC9zdmc+", fue = er.div` background-color: white; padding: 20px 0; box-sizing: border-box; @@ -50934,13 +51005,13 @@ const GAt = er.p` padding-left: 100px; margin-bottom: 0; } -`, c7t = er.hr` +`, u7t = er.hr` border: none; height: 1px; background-color: var(--gray-600); margin-top: 20px; margin-bottom: 0; -`, u7t = er.div` +`, h7t = er.div` margin-left: 100px; border-left: 1px solid var(--gray-600); @@ -50948,7 +51019,7 @@ const GAt = er.p` p { margin-top: 0; } -`, h7t = er.p` +`, f7t = er.p` padding: 10px 6px; img { @@ -50969,7 +51040,7 @@ fue.defaultProps = { function l_(t, e) { return t.resolvedDate - e.resolvedDate; } -const f7t = ({ +const d7t = ({ ycomments: t }) => { let [e, r] = Rn(t.resolver().resolved().sort(l_)), n = Nn(() => e.reduce((s, { @@ -50979,11 +51050,11 @@ const f7t = ({ r(t.resolver().resolved().sort(l_)), t.resolver().onUpdate((s) => r(s.sort(l_))); }, []), Bt` <${fue}>

Resolved comments

- <${c7t} /> - <${u7t}> - ${e.length === 0 ? Bt`<${h7t} - >No resolved comments yet, to resolve a comment hover over it's icon and click RESOLVE` : e.map((s, a) => Bt`<${o7t} + <${u7t} /> + <${h7t}> + ${e.length === 0 ? Bt`<${f7t} + >No resolved comments yet, to resolve a comment hover over it's icon and click RESOLVE` : e.map((s, a) => Bt`<${l7t} key=${s.commentId} c=${s} authors=${i[a]} @@ -50997,7 +51068,7 @@ var nZ; (nZ = window.myst_editor) != null && nZ.isFresh || (Zne(), window.myst_editor = { isFresh: !0 }); -const d7t = er.div` +const p7t = er.div` font-family: "Lato"; display: flex; flex-flow: row wrap; @@ -51053,14 +51124,14 @@ const AQ = er.div` & > * { min-height: 500px; } -`, p7t = (t) => { +`, g7t = (t) => { const e = (r, n, i) => { r.type == "rule" && (r.props[0] = r.props[0].split(",").map((s) => `${t} ${s}`).join(",")); }; return Object.defineProperty(e, "name", { value: `scope-${t}` }), e; -}, g7t = (t) => document.documentElement.style.overflow = t ? "hidden" : "visible", Km = { +}, m7t = (t) => document.documentElement.style.overflow = t ? "hidden" : "visible", Km = { printToPdf: { id: "print-to-pdf", tooltip: "Print document as pdf", @@ -51081,13 +51152,13 @@ const AQ = er.div` id: "refresh", tooltip: "Refresh issue links" } -}, m7t = [Km.fullscreen, Km.copyHtml, Km.refresh, Km.printToPdf, Km.templateManager], v7t = ({ +}, v7t = [Km.fullscreen, Km.copyHtml, Km.refresh, Km.printToPdf, Km.templateManager], y7t = ({ name: t = "myst_editor_textarea", id: e = "myst_editor_textarea", title: r = null, initialMode: n = "Both", initialText: i = "", - includeButtons: s = m7t, + includeButtons: s = v7t, topbar: a = !0, templatelist: o, collaboration: l = {}, @@ -51122,7 +51193,7 @@ const AQ = er.div` ydoc: N, ready: M, error: I - } = YAt(l), D = WAt(N, R, d, p), P = (V, Q) => { + } = WAt(l, m), D = GAt(N, R, d, p), P = (V, Q) => { E(V), setTimeout(() => E(null), Q * 1e3); }, F = { "copy-html": () => { @@ -51136,9 +51207,9 @@ const AQ = er.div` ...V, action: V.action || F[V.id] })), []); - return _i(() => g7t(O), [O]), Bt`
- <${j2e} target=${m} stylisPlugins=${[p7t("#myst-css-namespace")]}> - <${d7t} mode=${b} fullscreen=${O}> + return _i(() => m7t(O), [O]), Bt`
+ <${j2e} target=${m} stylisPlugins=${[g7t("#myst-css-namespace")]}> + <${p7t} mode=${b} fullscreen=${O}> ${a && Bt`<${QAt} ...${{ alert: A, @@ -51191,12 +51262,12 @@ const AQ = er.div` ><${q_t} className="cm-previewFocus" /> ${b === "Diff" && Bt`<${uO}><${cue} root=${m} oldText=${i} text=${T} />`} - ${l.commentsEnabled && l.resolvingCommentsEnabled && !I && Bt`<${uO} id="resolved-wrapper"><${f7t} ycomments=${D} />`} + ${l.commentsEnabled && l.resolvingCommentsEnabled && !I && Bt`<${uO} id="resolved-wrapper"><${d7t} ycomments=${D} />`}
`; -}, Vlr = ({ +}, Ulr = ({ additionalStyles: t, ...e }, r) => { @@ -51204,7 +51275,7 @@ const AQ = er.div` mode: "open" }), t && r.shadowRoot.adoptedStyleSheets.push(...Array.isArray(t) ? t : [t]), e.parent = r.shadowRoot; const n = r.closest("form"); - n && n.addEventListener("formdata", (i) => i.formData.append(e.name, window.myst_editor.text)), yg(Bt`<${v7t} ...${e} />`, r.shadowRoot); + n && n.addEventListener("formdata", (i) => i.formData.append(e.name, window.myst_editor.text)), yg(Bt`<${y7t} ...${e} />`, r.shadowRoot); }; (function() { const e = document.createElement("link").relList; @@ -51263,42 +51334,42 @@ class ct { } } ct.prototype.__proto__ = Error.prototype; -var y7t = function(e, r) { +var b7t = function(e, r) { return e.indexOf(r) !== -1; -}, b7t = function(e, r) { +}, x7t = function(e, r) { return e === void 0 ? r : e; -}, x7t = /([A-Z])/g, w7t = function(e) { - return e.replace(x7t, "-$1").toLowerCase(); -}, O7t = { +}, w7t = /([A-Z])/g, O7t = function(e) { + return e.replace(w7t, "-$1").toLowerCase(); +}, k7t = { "&": "&", ">": ">", "<": "<", '"': """, "'": "'" -}, k7t = /[&><"']/g; -function S7t(t) { - return String(t).replace(k7t, (e) => O7t[e]); +}, S7t = /[&><"']/g; +function T7t(t) { + return String(t).replace(S7t, (e) => k7t[e]); } var pue = function t(e) { return e.type === "ordgroup" || e.type === "color" ? e.body.length === 1 ? t(e.body[0]) : e : e.type === "font" ? t(e.body) : e; -}, T7t = function(e) { +}, C7t = function(e) { var r = pue(e); return r.type === "mathord" || r.type === "textord" || r.type === "atom"; -}, C7t = function(e) { +}, E7t = function(e) { if (!e) throw new Error("Expected non-null, but got " + String(e)); return e; -}, E7t = function(e) { +}, _7t = function(e) { var r = /^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(e); return r ? r[2] !== ":" || !/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(r[1]) ? null : r[1].toLowerCase() : "_relative"; }, Gt = { - contains: y7t, - deflt: b7t, - escape: S7t, - hyphenate: w7t, + contains: b7t, + deflt: x7t, + escape: T7t, + hyphenate: O7t, getBaseElem: pue, - isCharacterBox: T7t, - protocolFromUrl: E7t + isCharacterBox: C7t, + protocolFromUrl: _7t }, V4 = { displayMode: { type: "boolean", @@ -51386,7 +51457,7 @@ var pue = function t(e) { cli: !1 } }; -function _7t(t) { +function A7t(t) { if (t.default) return t.default; var e = t.type, r = Array.isArray(e) ? e[0] : e; @@ -51409,7 +51480,7 @@ class vN { for (var r in V4) if (V4.hasOwnProperty(r)) { var n = V4[r]; - this[r] = e[r] !== void 0 ? n.processor ? n.processor(e[r]) : e[r] : _7t(n); + this[r] = e[r] !== void 0 ? n.processor ? n.processor(e[r]) : e[r] : A7t(n); } } reportNonstrict(e, r, n) { @@ -51446,28 +51517,28 @@ class vh { this.id = void 0, this.size = void 0, this.cramped = void 0, this.id = e, this.size = r, this.cramped = n; } sup() { - return cc[A7t[this.id]]; + return cc[L7t[this.id]]; } sub() { - return cc[L7t[this.id]]; + return cc[R7t[this.id]]; } fracNum() { - return cc[R7t[this.id]]; + return cc[M7t[this.id]]; } fracDen() { - return cc[M7t[this.id]]; + return cc[D7t[this.id]]; } cramp() { - return cc[D7t[this.id]]; + return cc[N7t[this.id]]; } text() { - return cc[N7t[this.id]]; + return cc[I7t[this.id]]; } isTight() { return this.size >= 2; } } -var yN = 0, ik = 1, ag = 2, Ru = 3, k2 = 4, Io = 5, l1 = 6, na = 7, cc = [new vh(yN, 0, !1), new vh(ik, 0, !0), new vh(ag, 1, !1), new vh(Ru, 1, !0), new vh(k2, 2, !1), new vh(Io, 2, !0), new vh(l1, 3, !1), new vh(na, 3, !0)], A7t = [k2, Io, k2, Io, l1, na, l1, na], L7t = [Io, Io, Io, Io, na, na, na, na], R7t = [ag, Ru, k2, Io, l1, na, l1, na], M7t = [Ru, Ru, Io, Io, na, na, na, na], D7t = [ik, ik, Ru, Ru, Io, Io, na, na], N7t = [yN, ik, ag, Ru, ag, Ru, ag, Ru], Xt = { +var yN = 0, ik = 1, ag = 2, Ru = 3, k2 = 4, Io = 5, l1 = 6, na = 7, cc = [new vh(yN, 0, !1), new vh(ik, 0, !0), new vh(ag, 1, !1), new vh(Ru, 1, !0), new vh(k2, 2, !1), new vh(Io, 2, !0), new vh(l1, 3, !1), new vh(na, 3, !0)], L7t = [k2, Io, k2, Io, l1, na, l1, na], R7t = [Io, Io, Io, Io, na, na, na, na], M7t = [ag, Ru, k2, Io, l1, na, l1, na], D7t = [Ru, Ru, Io, Io, na, na, na, na], N7t = [ik, ik, Ru, Ru, Io, Io, na, na], I7t = [yN, ik, ag, Ru, ag, Ru, ag, Ru], Xt = { DISPLAY: cc[yN], TEXT: cc[ag], SCRIPT: cc[k2], @@ -51501,7 +51572,7 @@ var yN = 0, ik = 1, ag = 2, Ru = 3, k2 = 4, Io = 5, l1 = 6, na = 7, cc = [new vh name: "hangul", blocks: [[44032, 55215]] }]; -function I7t(t) { +function P7t(t) { for (var e = 0; e < xL.length; e++) for (var r = xL[e], n = 0; n < r.blocks.length; n++) { var i = r.blocks[n]; @@ -51518,7 +51589,7 @@ function gue(t) { return !0; return !1; } -var fp = 80, P7t = function(e, r) { +var fp = 80, $7t = function(e, r) { return "M95," + (622 + e + r) + ` c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14 c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54 @@ -51531,7 +51602,7 @@ H400000v` + (40 + e) + `H845.2724 s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7 c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z M` + (834 + e) + " " + r + "h400000v" + (40 + e) + "h-400000z"; -}, $7t = function(e, r) { +}, B7t = function(e, r) { return "M263," + (601 + e + r) + `c0.7,0,18,39.7,52,119 c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120 c340,-704.7,510.7,-1060.3,512,-1067 @@ -51543,7 +51614,7 @@ c-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1 s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26 c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z M` + (1001 + e) + " " + r + "h400000v" + (40 + e) + "h-400000z"; -}, B7t = function(e, r) { +}, F7t = function(e, r) { return "M983 " + (10 + e + r) + ` l` + e / 3.13 + " -" + e + ` c4,-6.7,10,-10,18,-10 H400000v` + (40 + e) + ` @@ -51554,7 +51625,7 @@ c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722 c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5 c53.7,-170.3,84.5,-266.8,92.5,-289.5z M` + (1001 + e) + " " + r + "h400000v" + (40 + e) + "h-400000z"; -}, F7t = function(e, r) { +}, z7t = function(e, r) { return "M424," + (2398 + e + r) + ` c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514 c0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20 @@ -51566,7 +51637,7 @@ s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185 c-2,6,-10,9,-24,9 c-8,0,-12,-0.7,-12,-2z M` + (1001 + e) + " " + r + ` h400000v` + (40 + e) + "h-400000z"; -}, z7t = function(e, r) { +}, V7t = function(e, r) { return "M473," + (2713 + e + r) + ` c339.3,-1799.3,509.3,-2700,510,-2702 l` + e / 5.298 + " -" + e + ` c3.3,-7.3,9.3,-11,18,-11 H400000v` + (40 + e) + `H1017.7 @@ -51575,40 +51646,40 @@ c-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1 c0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26 s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104, 606zM` + (1001 + e) + " " + r + "h400000v" + (40 + e) + "H1017.7z"; -}, V7t = function(e) { +}, U7t = function(e) { var r = e / 2; return "M400000 " + e + " H0 L" + r + " 0 l65 45 L145 " + (e - 80) + " H400000z"; -}, U7t = function(e, r, n) { +}, q7t = function(e, r, n) { var i = n - 54 - r - e; return "M702 " + (e + r) + "H400000" + (40 + e) + ` H742v` + i + `l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1 h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170 c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667 219 661 l218 661zM702 ` + r + "H400000v" + (40 + e) + "H742z"; -}, q7t = function(e, r, n) { +}, Q7t = function(e, r, n) { r = 1e3 * r; var i = ""; switch (e) { case "sqrtMain": - i = P7t(r, fp); + i = $7t(r, fp); break; case "sqrtSize1": - i = $7t(r, fp); + i = B7t(r, fp); break; case "sqrtSize2": - i = B7t(r, fp); + i = F7t(r, fp); break; case "sqrtSize3": - i = F7t(r, fp); + i = z7t(r, fp); break; case "sqrtSize4": - i = z7t(r, fp); + i = V7t(r, fp); break; case "sqrtTall": - i = U7t(r, fp, n); + i = q7t(r, fp, n); } return i; -}, Q7t = function(e, r) { +}, Y7t = function(e, r) { switch (e) { case "\u239C": return "M291 0 H417 V" + r + " H291z M291 0 H417 V" + r + " H291z"; @@ -51862,7 +51933,7 @@ c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199, -231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6 c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z` -}, Y7t = function(e, r) { +}, W7t = function(e, r) { switch (e) { case "lbrack": return "M403 1759 V84 H666 V0 H319 V1759 v" + r + ` v1759 h347 v-84 @@ -54120,7 +54191,7 @@ var Oc = { \u044E: "m", \u044F: "r" }; -function W7t(t, e) { +function G7t(t, e) { Oc[t] = e; } function bN(t, e, r) { @@ -54137,7 +54208,7 @@ function bN(t, e, r) { }; } var c_ = {}; -function G7t(t) { +function H7t(t) { var e; if (t >= 5 ? e = 0 : t >= 3 ? e = 1 : e = 2, !c_[e]) { var r = c_[e] = { @@ -54148,7 +54219,7 @@ function G7t(t) { } return c_[e]; } -var H7t = [ +var X7t = [ [1, 1, 1], [2, 1, 1], [3, 1, 1], @@ -54173,7 +54244,7 @@ var H7t = [ 2.074, 2.488 ], DQ = function(e, r) { - return r.size < 2 ? e : H7t[e - 1][r.size - 1]; + return r.size < 2 ? e : X7t[e - 1][r.size - 1]; }; class pu { constructor(e) { @@ -54281,7 +54352,7 @@ class pu { return this.size !== pu.BASESIZE ? ["sizing", "reset-size" + this.size, "size" + pu.BASESIZE] : []; } fontMetrics() { - return this._fontMetrics || (this._fontMetrics = G7t(this.size)), this._fontMetrics; + return this._fontMetrics || (this._fontMetrics = H7t(this.size)), this._fontMetrics; } getColor() { return this.phantom ? "transparent" : this.color; @@ -54301,12 +54372,12 @@ var wL = { nc: 1370 / 107, sp: 1 / 65536, px: 803 / 800 -}, X7t = { +}, Z7t = { ex: !0, em: !0, mu: !0 }, mue = function(e) { - return typeof e != "string" && (e = e.unit), e in wL || e in X7t || e === "ex"; + return typeof e != "string" && (e = e.unit), e in wL || e in Z7t || e === "ex"; }, Mn = function(e, r) { var n; if (e.unit in wL) @@ -54392,7 +54463,7 @@ class xN { return bue.call(this, "a"); } } -class Z7t { +class j7t { constructor(e, r, n) { this.src = void 0, this.alt = void 0, this.classes = void 0, this.height = void 0, this.depth = void 0, this.maxFontSize = void 0, this.style = void 0, this.alt = r, this.src = e, this.classes = ["mord"], this.style = n; } @@ -54413,7 +54484,7 @@ class Z7t { return r && (e += ' style="' + Gt.escape(r) + '"'), e += "'/>", e; } } -var j7t = { +var K7t = { \u00EE: "\u0131\u0302", \u00EF: "\u0131\u0308", \u00ED: "\u0131\u0301", @@ -54422,8 +54493,8 @@ var j7t = { class jo { constructor(e, r, n, i, s, a, o, l) { this.text = void 0, this.height = void 0, this.depth = void 0, this.italic = void 0, this.skew = void 0, this.width = void 0, this.maxFontSize = void 0, this.classes = void 0, this.style = void 0, this.text = e, this.height = r || 0, this.depth = n || 0, this.italic = i || 0, this.skew = s || 0, this.width = a || 0, this.classes = o || [], this.style = l || {}, this.maxFontSize = 0; - var u = I7t(this.text.charCodeAt(0)); - u && this.classes.push(u + "_fallback"), /[îïíì]/.test(this.text) && (this.text = j7t[this.text]); + var u = P7t(this.text.charCodeAt(0)); + u && this.classes.push(u + "_fallback"), /[îïíì]/.test(this.text) && (this.text = K7t[this.text]); } hasClass(e) { return Gt.contains(this.classes, e); @@ -54503,19 +54574,19 @@ function NQ(t) { return t; throw new Error("Expected symbolNode but got " + String(t) + "."); } -function K7t(t) { +function J7t(t) { if (t instanceof Sx) return t; throw new Error("Expected span but got " + String(t) + "."); } -var J7t = { +var e8t = { bin: 1, close: 1, inner: 1, open: 1, punct: 1, rel: 1 -}, e8t = { +}, t8t = { "accent-token": 1, mathord: 1, "op-token": 1, @@ -55211,7 +55282,7 @@ var pO = [ ["mathsf", "textsf", "SansSerif-Regular"], ["mathboldsf", "textboldsf", "SansSerif-Bold"], ["mathtt", "texttt", "Typewriter-Regular"] -], t8t = function(e, r) { +], r8t = function(e, r) { var n = e.charCodeAt(0), i = e.charCodeAt(1), s = (n - 55296) * 1024 + (i - 56320) + 65536, a = r === "math" ? 0 : 1; if (119808 <= s && s < 120484) { var o = Math.floor((s - 119808) / 26); @@ -55246,9 +55317,9 @@ var pO = [ h && (l.style.color = h); } return l; -}, r8t = function(e, r, n, i) { +}, n8t = function(e, r, n, i) { return i === void 0 && (i = []), n.font === "boldsymbol" && YT(e, "Main-Bold", r).metrics ? hl(e, "Main-Bold", r, n, i.concat(["mathbf"])) : e === "\\" || hn[r][e].font === "main" ? hl(e, "Main-Regular", r, n, i) : hl(e, "AMS-Regular", r, n, i.concat(["amsrm"])); -}, n8t = function(e, r, n, i, s) { +}, i8t = function(e, r, n, i, s) { return s !== "textord" && YT(e, "Math-BoldItalic", r).metrics ? { fontName: "Math-BoldItalic", fontClass: "boldsymbol" @@ -55256,14 +55327,14 @@ var pO = [ fontName: "Main-Bold", fontClass: "mathbf" }; -}, i8t = function(e, r, n) { +}, s8t = function(e, r, n) { var i = e.mode, s = e.text, a = ["mord"], o = i === "math" || i === "text" && r.font, l = o ? r.font : r.fontFamily, u = "", h = ""; - if (s.charCodeAt(0) === 55349 && ([u, h] = t8t(s, i)), u.length > 0) + if (s.charCodeAt(0) === 55349 && ([u, h] = r8t(s, i)), u.length > 0) return hl(s, u, i, r, a.concat(h)); if (l) { var f, d; if (l === "boldsymbol") { - var p = n8t(s, i, r, a, n); + var p = i8t(s, i, r, a, n); f = p.fontName, d = [p.fontClass]; } else o ? (f = kue[l].fontName, d = [l]) : (f = gO(l, r.fontWeight, r.fontShape), d = [l, r.fontWeight, r.fontShape]); @@ -55291,7 +55362,7 @@ var pO = [ } } else throw new Error("unexpected type: " + n + " in makeOrd"); -}, s8t = (t, e) => { +}, a8t = (t, e) => { if (Of(t.classes) !== Of(e.classes) || t.skew !== e.skew || t.maxFontSize !== e.maxFontSize) return !1; if (t.classes.length === 1) { @@ -55306,10 +55377,10 @@ var pO = [ if (e.style.hasOwnProperty(i) && t.style[i] !== e.style[i]) return !1; return !0; -}, a8t = (t) => { +}, o8t = (t) => { for (var e = 0; e < t.length - 1; e++) { var r = t[e], n = t[e + 1]; - r instanceof jo && n instanceof jo && s8t(r, n) && (r.text += n.text, r.height = Math.max(r.height, n.height), r.depth = Math.max(r.depth, n.depth), r.italic = n.italic, t.splice(e + 1, 1), e--); + r instanceof jo && n instanceof jo && a8t(r, n) && (r.text += n.text, r.height = Math.max(r.height, n.height), r.depth = Math.max(r.depth, n.depth), r.italic = n.italic, t.splice(e + 1, 1), e--); } return t; }, wN = function(e) { @@ -55321,18 +55392,18 @@ var pO = [ }, ba = function(e, r, n, i) { var s = new Sx(e, r, n, i); return wN(s), s; -}, wue = (t, e, r, n) => new Sx(t, e, r, n), o8t = function(e, r, n) { +}, wue = (t, e, r, n) => new Sx(t, e, r, n), l8t = function(e, r, n) { var i = ba([e], [], r); return i.height = Math.max(n || r.fontMetrics().defaultRuleThickness, r.minRuleThickness), i.style.borderBottomWidth = vt(i.height), i.maxFontSize = 1, i; -}, l8t = function(e, r, n, i) { +}, c8t = function(e, r, n, i) { var s = new xN(e, r, n, i); return wN(s), s; }, Oue = function(e) { var r = new kx(e); return wN(r), r; -}, c8t = function(e, r) { +}, u8t = function(e, r) { return e instanceof kx ? ba([], [e], r) : e; -}, u8t = function(e) { +}, h8t = function(e) { if (e.positionType === "individualShift") { for (var r = e.children, n = [r[0]], i = -r[0].shift - r[0].elem.depth, s = i, a = 1; a < r.length; a++) { var o = -r[a].shift - s - r[a].elem.depth, l = o - (r[a - 1].elem.height + r[a - 1].elem.depth); @@ -55370,11 +55441,11 @@ var pO = [ children: e.children, depth: u }; -}, h8t = function(e, r) { +}, f8t = function(e, r) { for (var { children: n, depth: i - } = u8t(e), s = 0, a = 0; a < n.length; a++) { + } = h8t(e), s = 0, a = 0; a < n.length; a++) { var o = n[a]; if (o.type === "elem") { var l = o.elem; @@ -55406,7 +55477,7 @@ var pO = [ S = [ba(["vlist-r"], [O])]; var E = ba(["vlist-t"], S); return S.length === 2 && E.classes.push("vlist-t2"), E.height = d, E.depth = -f, E; -}, f8t = (t, e) => { +}, d8t = (t, e) => { var r = ba(["mspace"], [], e), n = Mn(t, e); return r.style.marginRight = vt(n), r; }, gO = function(e, r, n) { @@ -55480,7 +55551,7 @@ var pO = [ oiintSize2: ["oiintSize2", 1.472, 0.659], oiiintSize1: ["oiiintSize1", 1.304, 0.499], oiiintSize2: ["oiiintSize2", 1.98, 0.659] -}, d8t = function(e, r) { +}, p8t = function(e, r) { var [n, i, s] = Sue[e], a = new kf(n), o = new Wu([a], { width: vt(i), height: vt(s), @@ -55492,19 +55563,19 @@ var pO = [ }, Be = { fontMap: kue, makeSymbol: hl, - mathsym: r8t, + mathsym: n8t, makeSpan: ba, makeSvgSpan: wue, - makeLineSpan: o8t, - makeAnchor: l8t, + makeLineSpan: l8t, + makeAnchor: c8t, makeFragment: Oue, - wrapFragment: c8t, - makeVList: h8t, - makeOrd: i8t, - makeGlue: f8t, - staticSvg: d8t, + wrapFragment: u8t, + makeVList: f8t, + makeOrd: s8t, + makeGlue: d8t, + staticSvg: p8t, svgData: Sue, - tryCombineChars: a8t + tryCombineChars: o8t }, An = { number: 3, unit: "mu" @@ -55514,7 +55585,7 @@ var pO = [ }, lu = { number: 5, unit: "mu" -}, p8t = { +}, g8t = { mord: { mop: An, mbin: rd, @@ -55564,7 +55635,7 @@ var pO = [ mpunct: An, minner: An } -}, g8t = { +}, m8t = { mord: { mop: An }, @@ -55629,12 +55700,12 @@ var lk = function(e) { return e.type === "ordgroup" && e.body.length === 1 ? e.body[0] : e; }, ri = function(e) { return e.type === "ordgroup" ? e.body : [e]; -}, Gu = Be.makeSpan, m8t = ["leftmost", "mbin", "mopen", "mrel", "mop", "mpunct"], v8t = ["rightmost", "mrel", "mclose", "mpunct"], y8t = { +}, Gu = Be.makeSpan, v8t = ["leftmost", "mbin", "mopen", "mrel", "mop", "mpunct"], y8t = ["rightmost", "mrel", "mclose", "mpunct"], b8t = { display: Xt.DISPLAY, text: Xt.TEXT, script: Xt.SCRIPT, scriptscript: Xt.SCRIPTSCRIPT -}, b8t = { +}, x8t = { mord: "mord", mop: "mop", mbin: "mbin", @@ -55658,16 +55729,16 @@ var lk = function(e) { var u = r; if (e.length === 1) { var h = e[0]; - h.type === "sizing" ? u = r.havingSize(h.size) : h.type === "styling" && (u = r.havingStyle(y8t[h.style])); + h.type === "sizing" ? u = r.havingSize(h.size) : h.type === "styling" && (u = r.havingStyle(b8t[h.style])); } var f = Gu([i[0] || "leftmost"], [], r), d = Gu([i[1] || "rightmost"], [], r), p = n === "root"; return zQ(s, (g, m) => { var v = m.classes[0], y = g.classes[0]; - v === "mbin" && Gt.contains(v8t, y) ? m.classes[0] = "mord" : y === "mbin" && Gt.contains(m8t, v) && (g.classes[0] = "mord"); + v === "mbin" && Gt.contains(y8t, y) ? m.classes[0] = "mord" : y === "mbin" && Gt.contains(v8t, v) && (g.classes[0] = "mord"); }, { node: f }, d, p), zQ(s, (g, m) => { - var v = SL(m), y = SL(g), b = v && y ? g.hasClass("mtight") ? g8t[v][y] : p8t[v][y] : null; + var v = SL(m), y = SL(g), b = v && y ? g.hasClass("mtight") ? m8t[v][y] : g8t[v][y] : null; if (b) return Be.makeGlue(b, u); }, { @@ -55693,7 +55764,7 @@ var lk = function(e) { i && e.pop(); }, Cue = function(e) { return e instanceof kx || e instanceof xN || e instanceof Sx && e.hasClass("enclosing") ? e : null; -}, x8t = function t(e, r) { +}, w8t = function t(e, r) { var n = Cue(e); if (n) { var i = n.children; @@ -55706,7 +55777,7 @@ var lk = function(e) { } return e; }, SL = function(e, r) { - return e ? (r && (e = x8t(e, r)), b8t[e.classes[0]] || null) : null; + return e ? (r && (e = w8t(e, r)), x8t[e.classes[0]] || null) : null; }, S2 = function(e, r) { var n = ["nulldelimiter"].concat(e.baseSizingClasses()); return Gu(r.concat(n)); @@ -55799,7 +55870,7 @@ class ly { return this.text; } } -class w8t { +class O8t { constructor(e) { this.width = void 0, this.character = void 0, this.width = e, e >= 0.05555 && e <= 0.05556 ? this.character = "\u200A" : e >= 0.1666 && e <= 0.1667 ? this.character = "\u2009" : e >= 0.2222 && e <= 0.2223 ? this.character = "\u2005" : e >= 0.2777 && e <= 0.2778 ? this.character = "\u2005\u200A" : e >= -0.05556 && e <= -0.05555 ? this.character = "\u200A\u2063" : e >= -0.1667 && e <= -0.1666 ? this.character = "\u2009\u2063" : e >= -0.2223 && e <= -0.2222 ? this.character = "\u205F\u2063" : e >= -0.2778 && e <= -0.2777 ? this.character = "\u2005\u2063" : this.character = null; } @@ -55819,7 +55890,7 @@ class w8t { var lt = { MathNode: Lo, TextNode: ly, - SpaceNode: w8t, + SpaceNode: O8t, newDocumentFragment: Eue }, Ko = function(e, r, n) { return hn[r][e] && hn[r][e].replace && e.charCodeAt(0) !== 55349 && !(xue.hasOwnProperty(e) && n && (n.fontFamily && n.fontFamily.slice(4, 6) === "tt" || n.font && n.font.slice(4, 6) === "tt")) && (e = hn[r][e].replace), new lt.TextNode(e); @@ -55926,7 +55997,7 @@ var _ue = function(e) { r.leqno && n.push("leqno"), r.fleqn && n.push("fleqn"), e = Be.makeSpan(n, [e]); } return e; -}, O8t = function(e, r, n) { +}, k8t = function(e, r, n) { var i = _ue(n), s; if (n.output === "mathml") return VQ(e, r, i, n.displayMode, !0); @@ -55938,10 +56009,10 @@ var _ue = function(e) { s = Be.makeSpan(["katex"], [o, l]); } return Aue(s, n); -}, k8t = function(e, r, n) { +}, S8t = function(e, r, n) { var i = _ue(n), s = TL(e, i), a = Be.makeSpan(["katex"], [s]); return Aue(a, n); -}, S8t = { +}, T8t = { widehat: "^", widecheck: "\u02C7", widetilde: "~", @@ -55984,10 +56055,10 @@ var _ue = function(e) { "\\cdrightarrow": "\u2192", "\\cdleftarrow": "\u2190", "\\cdlongequal": "=" -}, T8t = function(e) { - var r = new lt.MathNode("mo", [new lt.TextNode(S8t[e.replace(/^\\/, "")])]); +}, C8t = function(e) { + var r = new lt.MathNode("mo", [new lt.TextNode(T8t[e.replace(/^\\/, "")])]); return r.setAttribute("stretchy", "true"), r; -}, C8t = { +}, E8t = { overrightarrow: [["rightarrow"], 0.888, 522, "xMaxYMin"], overleftarrow: [["leftarrow"], 0.888, 522, "xMinYMin"], underrightarrow: [["rightarrow"], 0.888, 522, "xMaxYMin"], @@ -56028,13 +56099,13 @@ var _ue = function(e) { xrightleftarrows: [["baraboveleftarrow", "rightarrowabovebar"], 1.75, 901], xrightequilibrium: [["baraboveshortleftharpoon", "rightharpoonaboveshortbar"], 1.75, 716], xleftequilibrium: [["shortbaraboveleftharpoon", "shortrightharpoonabovebar"], 1.75, 716] -}, E8t = function(e) { +}, _8t = function(e) { return e.type === "ordgroup" ? e.body.length : 1; -}, _8t = function(e, r) { +}, A8t = function(e, r) { function n() { var o = 4e5, l = e.label.slice(1); if (Gt.contains(["widehat", "widecheck", "widetilde", "utilde"], l)) { - var u = e, h = E8t(u.base), f, d, p; + var u = e, h = _8t(u.base), f, d, p; if (h > 5) l === "widehat" || l === "widecheck" ? (f = 420, o = 2364, p = 0.42, d = l + "4") : (f = 312, o = 2340, p = 0.34, d = "tilde4"); else { @@ -56053,7 +56124,7 @@ var _ue = function(e) { height: p }; } else { - var y = [], b = C8t[l], [w, O, S] = b, C = S / 1e3, T = w.length, A, E; + var y = [], b = E8t[l], [w, O, S] = b, C = S / 1e3, T = w.length, A, E; if (T === 1) { var L = b[3]; A = ["hide-tail"], E = [L]; @@ -56092,7 +56163,7 @@ var _ue = function(e) { height: a } = n(); return i.height = a, i.style.height = vt(a), s > 0 && (i.style.minWidth = vt(s)), i; -}, A8t = function(e, r, n, i, s) { +}, L8t = function(e, r, n, i, s) { var a, o = e.height + e.depth + n + i; if (/fbox|color|angl/.test(r)) { if (a = Be.makeSpan(["stretchy", r], [], s), r === "fbox") { @@ -56122,9 +56193,9 @@ var _ue = function(e) { } return a.height = o, a.style.height = vt(o), a; }, Hu = { - encloseSpan: A8t, - mathMLnode: T8t, - svgSpan: _8t + encloseSpan: L8t, + mathMLnode: C8t, + svgSpan: A8t }; function gr(t, e) { if (!t || t.type !== e) @@ -56138,11 +56209,11 @@ function SN(t) { return e; } function WT(t) { - return t && (t.type === "atom" || e8t.hasOwnProperty(t.type)) ? t : null; + return t && (t.type === "atom" || t8t.hasOwnProperty(t.type)) ? t : null; } var TN = (t, e) => { var r, n, i; - t && t.type === "supsub" ? (n = gr(t.base, "accent"), r = n.base, t.base = r, i = K7t(Lr(t, e)), t.base = n) : (n = gr(t, "accent"), r = n.base); + t && t.type === "supsub" ? (n = gr(t.base, "accent"), r = n.base, t.base = r, i = J7t(Lr(t, e)), t.base = n) : (n = gr(t, "accent"), r = n.base); var s = Lr(r, e.havingCrampedStyle()), a = n.isShifty && Gt.isCharacterBox(r), o = 0; if (a) { var l = Gt.getBaseElem(r), u = Lr(l, e.havingCrampedStyle()); @@ -56193,7 +56264,7 @@ var TN = (t, e) => { }, Lue = (t, e) => { var r = t.isStretchy ? Hu.mathMLnode(t.label) : new lt.MathNode("mo", [Ko(t.label, t.mode)]), n = new lt.MathNode("mover", [sn(t.base, e), r]); return n.setAttribute("accent", "true"), n; -}, L8t = new RegExp(["\\acute", "\\grave", "\\ddot", "\\tilde", "\\bar", "\\breve", "\\check", "\\hat", "\\vec", "\\dot", "\\mathring"].map((t) => "\\" + t).join("|")); +}, R8t = new RegExp(["\\acute", "\\grave", "\\ddot", "\\tilde", "\\bar", "\\breve", "\\check", "\\hat", "\\vec", "\\dot", "\\mathring"].map((t) => "\\" + t).join("|")); Ct({ type: "accent", names: ["\\acute", "\\grave", "\\ddot", "\\tilde", "\\bar", "\\breve", "\\check", "\\hat", "\\vec", "\\dot", "\\mathring", "\\widecheck", "\\widehat", "\\widetilde", "\\overrightarrow", "\\overleftarrow", "\\Overrightarrow", "\\overleftrightarrow", "\\overgroup", "\\overlinesegment", "\\overleftharpoon", "\\overrightharpoon"], @@ -56201,7 +56272,7 @@ Ct({ numArgs: 1 }, handler: (t, e) => { - var r = lk(e[0]), n = !L8t.test(t.funcName), i = !n || t.funcName === "\\widehat" || t.funcName === "\\widetilde" || t.funcName === "\\widecheck"; + var r = lk(e[0]), n = !R8t.test(t.funcName), i = !n || t.funcName === "\\widehat" || t.funcName === "\\widetilde" || t.funcName === "\\widecheck"; return { type: "accent", mode: t.parser.mode, @@ -56388,10 +56459,10 @@ Ct({ return n; } }); -var R8t = Be.makeSpan; +var M8t = Be.makeSpan; function Rue(t, e) { var r = Di(t.body, e, !0); - return R8t([t.mclass], r, e); + return M8t([t.mclass], r, e); } function Mue(t, e) { var r, n = Ua(t.body, e); @@ -56509,7 +56580,7 @@ Ct({ return n.setAttribute("style", "text-shadow: 0.02em 0.01em 0.04px"), n; } }); -var M8t = { +var D8t = { ">": "\\\\cdrightarrow", "<": "\\\\cdleftarrow", "=": "\\\\cdlongequal", @@ -56522,9 +56593,9 @@ var M8t = { body: [], mode: "math", style: "display" -}), qQ = (t) => t.type === "textord" && t.text === "@", D8t = (t, e) => (t.type === "mathord" || t.type === "atom") && t.text === e; -function N8t(t, e, r) { - var n = M8t[t]; +}), qQ = (t) => t.type === "textord" && t.text === "@", N8t = (t, e) => (t.type === "mathord" || t.type === "atom") && t.text === e; +function I8t(t, e, r) { + var n = D8t[t]; switch (n) { case "\\\\cdrightarrow": case "\\\\cdleftarrow": @@ -56561,7 +56632,7 @@ function N8t(t, e, r) { }; } } -function I8t(t) { +function P8t(t) { var e = []; for (t.gullet.beginGroup(), t.gullet.macros.set("\\cr", "\\\\\\relax"), t.gullet.beginGroup(); ; ) { e.push(t.parseExpression(!1, "\\\\")), t.gullet.endGroup(), t.gullet.beginGroup(); @@ -56593,7 +56664,7 @@ function I8t(t) { if ("<>AV".indexOf(u) > -1) for (var f = 0; f < 2; f++) { for (var d = !0, p = l + 1; p < a.length; p++) { - if (D8t(a[p], u)) { + if (N8t(a[p], u)) { d = !1, l = p; break; } @@ -56606,7 +56677,7 @@ function I8t(t) { } else throw new ct('Expected one of "<>AV=|." after @', a[l]); - var g = N8t(u, h, t), m = { + var g = I8t(u, h, t), m = { type: "styling", body: [g], mode: "math", @@ -56809,7 +56880,7 @@ var CL = { if (/^(?:[\\{}$&#^_]|EOF)$/.test(e)) throw new ct("Expected a control sequence", t); return e; -}, P8t = (t) => { +}, $8t = (t) => { var e = t.gullet.popToken(); return e.text === "=" && (e = t.gullet.popToken(), e.text === " " && (e = t.gullet.popToken())), e; }, Pue = (t, e, r, n) => { @@ -56904,7 +56975,7 @@ Ct({ funcName: r } = t, n = Iue(e.gullet.popToken()); e.gullet.consumeSpaces(); - var i = P8t(e); + var i = $8t(e); return Pue(e, n, i, r === "\\\\globallet"), { type: "internal", mode: e.mode @@ -56944,13 +57015,13 @@ var Sv = function(e, r, n) { }, $ue = function(e, r, n) { var i = r.havingBaseStyle(n), s = (1 - r.sizeMultiplier / i.sizeMultiplier) * r.fontMetrics().axisHeight; e.classes.push("delimcenter"), e.style.top = vt(s), e.height -= s, e.depth += s; -}, $8t = function(e, r, n, i, s, a) { +}, B8t = function(e, r, n, i, s, a) { var o = Be.makeSymbol(e, "Main-Regular", s, i), l = CN(o, r, i, a); return n && $ue(l, i, r), l; -}, B8t = function(e, r, n, i) { +}, F8t = function(e, r, n, i) { return Be.makeSymbol(e, "Size" + r + "-Regular", n, i); }, Bue = function(e, r, n, i, s, a) { - var o = B8t(e, r, s, i), l = CN(Be.makeSpan(["delimsizing", "size" + r], [o], i), Xt.TEXT, i, a); + var o = F8t(e, r, s, i), l = CN(Be.makeSpan(["delimsizing", "size" + r], [o], i), Xt.TEXT, i, a); return n && $ue(l, i, Xt.TEXT), l; }, p_ = function(e, r, n) { var i; @@ -56961,7 +57032,7 @@ var Sv = function(e, r, n) { elem: s }; }, g_ = function(e, r, n) { - var i = Oc["Size4-Regular"][e.charCodeAt(0)] ? Oc["Size4-Regular"][e.charCodeAt(0)][4] : Oc["Size1-Regular"][e.charCodeAt(0)][4], s = new kf("inner", Q7t(e, Math.round(1e3 * r))), a = new Wu([s], { + var i = Oc["Size4-Regular"][e.charCodeAt(0)] ? Oc["Size4-Regular"][e.charCodeAt(0)][4] : Oc["Size1-Regular"][e.charCodeAt(0)][4], s = new kf("inner", Y7t(e, Math.round(1e3 * r))), a = new Wu([s], { width: vt(i), height: vt(r), style: "width:" + vt(i), @@ -56975,11 +57046,11 @@ var Sv = function(e, r, n) { }, EL = 8e-3, yO = { type: "kern", size: -1 * EL -}, F8t = ["|", "\\lvert", "\\rvert", "\\vert"], z8t = ["\\|", "\\lVert", "\\rVert", "\\Vert"], Fue = function(e, r, n, i, s, a) { +}, z8t = ["|", "\\lvert", "\\rvert", "\\vert"], V8t = ["\\|", "\\lVert", "\\rVert", "\\Vert"], Fue = function(e, r, n, i, s, a) { var o, l, u, h, f = "", d = 0; o = u = h = e, l = null; var p = "Size1-Regular"; - e === "\\uparrow" ? u = h = "\u23D0" : e === "\\Uparrow" ? u = h = "\u2016" : e === "\\downarrow" ? o = u = "\u23D0" : e === "\\Downarrow" ? o = u = "\u2016" : e === "\\updownarrow" ? (o = "\\uparrow", u = "\u23D0", h = "\\downarrow") : e === "\\Updownarrow" ? (o = "\\Uparrow", u = "\u2016", h = "\\Downarrow") : Gt.contains(F8t, e) ? (u = "\u2223", f = "vert", d = 333) : Gt.contains(z8t, e) ? (u = "\u2225", f = "doublevert", d = 556) : e === "[" || e === "\\lbrack" ? (o = "\u23A1", u = "\u23A2", h = "\u23A3", p = "Size4-Regular", f = "lbrack", d = 667) : e === "]" || e === "\\rbrack" ? (o = "\u23A4", u = "\u23A5", h = "\u23A6", p = "Size4-Regular", f = "rbrack", d = 667) : e === "\\lfloor" || e === "\u230A" ? (u = o = "\u23A2", h = "\u23A3", p = "Size4-Regular", f = "lfloor", d = 667) : e === "\\lceil" || e === "\u2308" ? (o = "\u23A1", u = h = "\u23A2", p = "Size4-Regular", f = "lceil", d = 667) : e === "\\rfloor" || e === "\u230B" ? (u = o = "\u23A5", h = "\u23A6", p = "Size4-Regular", f = "rfloor", d = 667) : e === "\\rceil" || e === "\u2309" ? (o = "\u23A4", u = h = "\u23A5", p = "Size4-Regular", f = "rceil", d = 667) : e === "(" || e === "\\lparen" ? (o = "\u239B", u = "\u239C", h = "\u239D", p = "Size4-Regular", f = "lparen", d = 875) : e === ")" || e === "\\rparen" ? (o = "\u239E", u = "\u239F", h = "\u23A0", p = "Size4-Regular", f = "rparen", d = 875) : e === "\\{" || e === "\\lbrace" ? (o = "\u23A7", l = "\u23A8", h = "\u23A9", u = "\u23AA", p = "Size4-Regular") : e === "\\}" || e === "\\rbrace" ? (o = "\u23AB", l = "\u23AC", h = "\u23AD", u = "\u23AA", p = "Size4-Regular") : e === "\\lgroup" || e === "\u27EE" ? (o = "\u23A7", h = "\u23A9", u = "\u23AA", p = "Size4-Regular") : e === "\\rgroup" || e === "\u27EF" ? (o = "\u23AB", h = "\u23AD", u = "\u23AA", p = "Size4-Regular") : e === "\\lmoustache" || e === "\u23B0" ? (o = "\u23A7", h = "\u23AD", u = "\u23AA", p = "Size4-Regular") : (e === "\\rmoustache" || e === "\u23B1") && (o = "\u23AB", h = "\u23A9", u = "\u23AA", p = "Size4-Regular"); + e === "\\uparrow" ? u = h = "\u23D0" : e === "\\Uparrow" ? u = h = "\u2016" : e === "\\downarrow" ? o = u = "\u23D0" : e === "\\Downarrow" ? o = u = "\u2016" : e === "\\updownarrow" ? (o = "\\uparrow", u = "\u23D0", h = "\\downarrow") : e === "\\Updownarrow" ? (o = "\\Uparrow", u = "\u2016", h = "\\Downarrow") : Gt.contains(z8t, e) ? (u = "\u2223", f = "vert", d = 333) : Gt.contains(V8t, e) ? (u = "\u2225", f = "doublevert", d = 556) : e === "[" || e === "\\lbrack" ? (o = "\u23A1", u = "\u23A2", h = "\u23A3", p = "Size4-Regular", f = "lbrack", d = 667) : e === "]" || e === "\\rbrack" ? (o = "\u23A4", u = "\u23A5", h = "\u23A6", p = "Size4-Regular", f = "rbrack", d = 667) : e === "\\lfloor" || e === "\u230A" ? (u = o = "\u23A2", h = "\u23A3", p = "Size4-Regular", f = "lfloor", d = 667) : e === "\\lceil" || e === "\u2308" ? (o = "\u23A1", u = h = "\u23A2", p = "Size4-Regular", f = "lceil", d = 667) : e === "\\rfloor" || e === "\u230B" ? (u = o = "\u23A5", h = "\u23A6", p = "Size4-Regular", f = "rfloor", d = 667) : e === "\\rceil" || e === "\u2309" ? (o = "\u23A4", u = h = "\u23A5", p = "Size4-Regular", f = "rceil", d = 667) : e === "(" || e === "\\lparen" ? (o = "\u239B", u = "\u239C", h = "\u239D", p = "Size4-Regular", f = "lparen", d = 875) : e === ")" || e === "\\rparen" ? (o = "\u239E", u = "\u239F", h = "\u23A0", p = "Size4-Regular", f = "rparen", d = 875) : e === "\\{" || e === "\\lbrace" ? (o = "\u23A7", l = "\u23A8", h = "\u23A9", u = "\u23AA", p = "Size4-Regular") : e === "\\}" || e === "\\rbrace" ? (o = "\u23AB", l = "\u23AC", h = "\u23AD", u = "\u23AA", p = "Size4-Regular") : e === "\\lgroup" || e === "\u27EE" ? (o = "\u23A7", h = "\u23A9", u = "\u23AA", p = "Size4-Regular") : e === "\\rgroup" || e === "\u27EF" ? (o = "\u23AB", h = "\u23AD", u = "\u23AA", p = "Size4-Regular") : e === "\\lmoustache" || e === "\u23B0" ? (o = "\u23A7", h = "\u23AD", u = "\u23AA", p = "Size4-Regular") : (e === "\\rmoustache" || e === "\u23B1") && (o = "\u23AB", h = "\u23A9", u = "\u23AA", p = "Size4-Regular"); var g = Sv(o, p, s), m = g.height + g.depth, v = Sv(u, p, s), y = v.height + v.depth, b = Sv(h, p, s), w = b.height + b.depth, O = 0, S = 1; if (l !== null) { var C = Sv(l, p, s); @@ -56989,7 +57060,7 @@ var Sv = function(e, r, n) { n && (L *= i.sizeMultiplier); var _ = E / 2 - L, R = []; if (f.length > 0) { - var $ = E - m - w, k = Math.round(E * 1e3), N = Y7t(f, Math.round($ * 1e3)), M = new kf(f, N), I = (d / 1e3).toFixed(3) + "em", D = (k / 1e3).toFixed(3) + "em", P = new Wu([M], { + var $ = E - m - w, k = Math.round(E * 1e3), N = W7t(f, Math.round($ * 1e3)), M = new kf(f, N), I = (d / 1e3).toFixed(3) + "em", D = (k / 1e3).toFixed(3) + "em", P = new Wu([M], { width: I, height: D, viewBox: "0 0 " + d + " " + k @@ -57015,27 +57086,27 @@ var Sv = function(e, r, n) { }, Q); return CN(Be.makeSpan(["delimsizing", "mult"], [W], Q), Xt.TEXT, i, a); }, m_ = 80, v_ = 0.08, y_ = function(e, r, n, i, s) { - var a = q7t(e, i, n), o = new kf(e, a), l = new Wu([o], { + var a = Q7t(e, i, n), o = new kf(e, a), l = new Wu([o], { width: "400em", height: vt(r), viewBox: "0 0 400000 " + n, preserveAspectRatio: "xMinYMin slice" }); return Be.makeSvgSpan(["hide-tail"], [l], s); -}, V8t = function(e, r) { +}, U8t = function(e, r) { var n = r.havingBaseSizing(), i = que("\\surd", e * n.sizeMultiplier, Uue, n), s = n.sizeMultiplier, a = Math.max(0, r.minRuleThickness - r.fontMetrics().sqrtRuleThickness), o, l = 0, u = 0, h = 0, f; return i.type === "small" ? (h = 1e3 + 1e3 * a + m_, e < 1 ? s = 1 : e < 1.4 && (s = 0.7), l = (1 + a + v_) / s, u = (1 + a) / s, o = y_("sqrtMain", l, h, a, r), o.style.minWidth = "0.853em", f = 0.833 / s) : i.type === "large" ? (h = (1e3 + m_) * cy[i.size], u = (cy[i.size] + a) / s, l = (cy[i.size] + a + v_) / s, o = y_("sqrtSize" + i.size, l, h, a, r), o.style.minWidth = "1.02em", f = 1 / s) : (l = e + a + v_, u = e + a, h = Math.floor(1e3 * e + a) + m_, o = y_("sqrtTall", l, h, a, r), o.style.minWidth = "0.742em", f = 1.056), o.height = u, o.style.height = vt(l), { span: o, advanceWidth: f, ruleWidth: (r.fontMetrics().sqrtRuleThickness + a) * s }; -}, zue = ["(", "\\lparen", ")", "\\rparen", "[", "\\lbrack", "]", "\\rbrack", "\\{", "\\lbrace", "\\}", "\\rbrace", "\\lfloor", "\\rfloor", "\u230A", "\u230B", "\\lceil", "\\rceil", "\u2308", "\u2309", "\\surd"], U8t = ["\\uparrow", "\\downarrow", "\\updownarrow", "\\Uparrow", "\\Downarrow", "\\Updownarrow", "|", "\\|", "\\vert", "\\Vert", "\\lvert", "\\rvert", "\\lVert", "\\rVert", "\\lgroup", "\\rgroup", "\u27EE", "\u27EF", "\\lmoustache", "\\rmoustache", "\u23B0", "\u23B1"], Vue = ["<", ">", "\\langle", "\\rangle", "/", "\\backslash", "\\lt", "\\gt"], cy = [0, 1.2, 1.8, 2.4, 3], q8t = function(e, r, n, i, s) { +}, zue = ["(", "\\lparen", ")", "\\rparen", "[", "\\lbrack", "]", "\\rbrack", "\\{", "\\lbrace", "\\}", "\\rbrace", "\\lfloor", "\\rfloor", "\u230A", "\u230B", "\\lceil", "\\rceil", "\u2308", "\u2309", "\\surd"], q8t = ["\\uparrow", "\\downarrow", "\\updownarrow", "\\Uparrow", "\\Downarrow", "\\Updownarrow", "|", "\\|", "\\vert", "\\Vert", "\\lvert", "\\rvert", "\\lVert", "\\rVert", "\\lgroup", "\\rgroup", "\u27EE", "\u27EF", "\\lmoustache", "\\rmoustache", "\u23B0", "\u23B1"], Vue = ["<", ">", "\\langle", "\\rangle", "/", "\\backslash", "\\lt", "\\gt"], cy = [0, 1.2, 1.8, 2.4, 3], Q8t = function(e, r, n, i, s) { if (e === "<" || e === "\\lt" || e === "\u27E8" ? e = "\\langle" : (e === ">" || e === "\\gt" || e === "\u27E9") && (e = "\\rangle"), Gt.contains(zue, e) || Gt.contains(Vue, e)) return Bue(e, r, !1, n, i, s); - if (Gt.contains(U8t, e)) + if (Gt.contains(q8t, e)) return Fue(e, cy[r], !1, n, i, s); throw new ct("Illegal delimiter: '" + e + "'"); -}, Q8t = [{ +}, Y8t = [{ type: "small", style: Xt.SCRIPTSCRIPT }, { @@ -57056,7 +57127,7 @@ var Sv = function(e, r, n) { }, { type: "large", size: 4 -}], Y8t = [{ +}], W8t = [{ type: "small", style: Xt.SCRIPTSCRIPT }, { @@ -57090,7 +57161,7 @@ var Sv = function(e, r, n) { size: 4 }, { type: "stack" -}], W8t = function(e) { +}], G8t = function(e) { if (e.type === "small") return "Main-Regular"; if (e.type === "large") @@ -57100,7 +57171,7 @@ var Sv = function(e, r, n) { throw new Error("Add support for delim type '" + e.type + "' here."); }, que = function(e, r, n, i) { for (var s = Math.min(2, 3 - i.style.size), a = s; a < n.length && n[a].type !== "stack"; a++) { - var o = Sv(e, W8t(n[a]), "math"), l = o.height + o.depth; + var o = Sv(e, G8t(n[a]), "math"), l = o.height + o.depth; if (n[a].type === "small") { var u = i.havingBaseStyle(n[a].style); l *= u.sizeMultiplier; @@ -57112,21 +57183,21 @@ var Sv = function(e, r, n) { }, Que = function(e, r, n, i, s, a) { e === "<" || e === "\\lt" || e === "\u27E8" ? e = "\\langle" : (e === ">" || e === "\\gt" || e === "\u27E9") && (e = "\\rangle"); var o; - Gt.contains(Vue, e) ? o = Q8t : Gt.contains(zue, e) ? o = Uue : o = Y8t; + Gt.contains(Vue, e) ? o = Y8t : Gt.contains(zue, e) ? o = Uue : o = W8t; var l = que(e, r, o, i); - return l.type === "small" ? $8t(e, l.style, n, i, s, a) : l.type === "large" ? Bue(e, l.size, n, i, s, a) : Fue(e, r, n, i, s, a); -}, G8t = function(e, r, n, i, s, a) { + return l.type === "small" ? B8t(e, l.style, n, i, s, a) : l.type === "large" ? Bue(e, l.size, n, i, s, a) : Fue(e, r, n, i, s, a); +}, H8t = function(e, r, n, i, s, a) { var o = i.fontMetrics().axisHeight * i.sizeMultiplier, l = 901, u = 5 / i.fontMetrics().ptPerEm, h = Math.max(r - o, n + o), f = Math.max( h / 500 * l, 2 * h - u ); return Que(e, f, !0, i, s, a); }, Mu = { - sqrtImage: V8t, - sizedDelim: q8t, + sqrtImage: U8t, + sizedDelim: Q8t, sizeToMaxHeight: cy, customSizedDelim: Que, - leftRightDelim: G8t + leftRightDelim: H8t }, QQ = { "\\bigl": { mclass: "mopen", @@ -57192,10 +57263,10 @@ var Sv = function(e, r, n) { mclass: "mord", size: 4 } -}, H8t = ["(", "\\lparen", ")", "\\rparen", "[", "\\lbrack", "]", "\\rbrack", "\\{", "\\lbrace", "\\}", "\\rbrace", "\\lfloor", "\\rfloor", "\u230A", "\u230B", "\\lceil", "\\rceil", "\u2308", "\u2309", "<", ">", "\\langle", "\u27E8", "\\rangle", "\u27E9", "\\lt", "\\gt", "\\lvert", "\\rvert", "\\lVert", "\\rVert", "\\lgroup", "\\rgroup", "\u27EE", "\u27EF", "\\lmoustache", "\\rmoustache", "\u23B0", "\u23B1", "/", "\\backslash", "|", "\\vert", "\\|", "\\Vert", "\\uparrow", "\\Uparrow", "\\downarrow", "\\Downarrow", "\\updownarrow", "\\Updownarrow", "."]; +}, X8t = ["(", "\\lparen", ")", "\\rparen", "[", "\\lbrack", "]", "\\rbrack", "\\{", "\\lbrace", "\\}", "\\rbrace", "\\lfloor", "\\rfloor", "\u230A", "\u230B", "\\lceil", "\\rceil", "\u2308", "\u2309", "<", ">", "\\langle", "\u27E8", "\\rangle", "\u27E9", "\\lt", "\\gt", "\\lvert", "\\rvert", "\\lVert", "\\rVert", "\\lgroup", "\\rgroup", "\u27EE", "\u27EF", "\\lmoustache", "\\rmoustache", "\u23B0", "\u23B1", "/", "\\backslash", "|", "\\vert", "\\|", "\\Vert", "\\uparrow", "\\Uparrow", "\\downarrow", "\\Downarrow", "\\updownarrow", "\\Updownarrow", "."]; function HT(t, e) { var r = WT(t); - if (r && Gt.contains(H8t, r.text)) + if (r && Gt.contains(X8t, r.text)) return r; throw r ? new ct("Invalid delimiter '" + r.text + "' after '" + e.funcName + "'", t) : new ct("Invalid delimiter type '" + t.type + "'", t); } @@ -57356,7 +57427,7 @@ var EN = (t, e) => { i = i / h.sizeMultiplier; var f = r.height + r.depth + l + u; r.style.paddingLeft = vt(f / 2 + l); - var d = Math.floor(1e3 * f * i), p = V7t(d), g = new Wu([new kf("phase", p)], { + var d = Math.floor(1e3 * f * i), p = U7t(d), g = new Wu([new kf("phase", p)], { width: "400em", height: vt(d / 1e3), viewBox: "0 0 400000 " + d, @@ -57773,7 +57844,7 @@ var Jc = function(e, r) { children: I }, r); return ce = Be.makeSpan(["tag"], [ce], r), Be.makeFragment([l, ce]); -}, X8t = { +}, Z8t = { c: "center ", l: "left ", r: "right " @@ -57790,7 +57861,7 @@ var Jc = function(e, r) { var g = e.cols, m = "", v = !1, y = 0, b = g.length; g[0].type === "separator" && (d += "top ", y = 1), g[g.length - 1].type === "separator" && (d += "bottom ", b -= 1); for (var w = y; w < b; w++) - g[w].type === "align" ? (p += X8t[g[w].align], v && (m += "none "), v = !0) : g[w].type === "separator" && v && (m += g[w].separator === "|" ? "solid " : "dashed ", v = !1); + g[w].type === "align" ? (p += Z8t[g[w].align], v && (m += "none "), v = !0) : g[w].type === "separator" && v && (m += g[w].separator === "|" ? "solid " : "dashed ", v = !1); h.setAttribute("columnalign", p.trim()), /[sd]/.test(m) && h.setAttribute("columnlines", m.trim()); } if (e.colSeparationType === "align") { @@ -58083,7 +58154,7 @@ Kc({ numArgs: 0 }, handler(t) { - return XT(t), I8t(t.parser); + return XT(t), P8t(t.parser); }, htmlBuilder: Jc, mathmlBuilder: eu @@ -58541,7 +58612,7 @@ Ct({ var { parser: r, funcName: n - } = t, i = e[0], s = C7t(gr(e[1], "infix").size), a = e[2], o = s.number > 0; + } = t, i = e[0], s = E7t(gr(e[1], "infix").size), a = e[2], o = s.number > 0; return { type: "genfrac", mode: r.mode, @@ -58617,7 +58688,7 @@ var jue = (t, e) => { }, e); } return Be.makeSpan(["mord", i.isOver ? "mover" : "munder"], [o], e); -}, Z8t = (t, e) => { +}, j8t = (t, e) => { var r = Hu.mathMLnode(t.label); return new lt.MathNode(t.isOver ? "mover" : "munder", [sn(t.base, e), r]); }; @@ -58641,7 +58712,7 @@ Ct({ }; }, htmlBuilder: jue, - mathmlBuilder: Z8t + mathmlBuilder: j8t }); Ct({ type: "href", @@ -58917,7 +58988,7 @@ Ct({ height: vt(r + n) }; i > 0 && (s.width = vt(i)), n > 0 && (s.verticalAlign = vt(-n)); - var a = new Z7t(t.src, t.alt, s); + var a = new j7t(t.src, t.alt, s); return a.height = r, a.depth = n, a; }, mathmlBuilder: (t, e) => { @@ -59216,7 +59287,7 @@ var Kue = (t, e, r, n, i, s, a) => { t.parentIsSupSub ? r = new Lo("mrow", [r, n]) : r = Eue([r, n]); } return r; -}, j8t = { +}, K8t = { "\u220F": "\\prod", "\u2210": "\\coprod", "\u2211": "\\sum", @@ -59241,7 +59312,7 @@ Ct({ parser: r, funcName: n } = t, i = n; - return i.length === 1 && (i = j8t[i]), { + return i.length === 1 && (i = K8t[i]), { type: "op", mode: r.mode, limits: !0, @@ -59276,7 +59347,7 @@ Ct({ htmlBuilder: rm, mathmlBuilder: Tx }); -var K8t = { +var J8t = { "\u222B": "\\int", "\u222C": "\\iint", "\u222D": "\\iiint", @@ -59341,7 +59412,7 @@ Ct({ parser: e, funcName: r } = t, n = r; - return n.length === 1 && (n = K8t[n]), { + return n.length === 1 && (n = J8t[n]), { type: "op", mode: e.mode, limits: !1, @@ -59373,7 +59444,7 @@ var ehe = (t, e) => { } else a = Be.makeSpan(["mop"], [], e); return i ? Kue(a, r, n, e, e.style, 0, 0) : a; -}, J8t = (t, e) => { +}, eLt = (t, e) => { for (var r = Ua(t.body, e.withFont("mathrm")), n = !0, i = 0; i < r.length; i++) { var s = r[i]; if (!(s instanceof lt.SpaceNode)) @@ -59426,7 +59497,7 @@ Ct({ }; }, htmlBuilder: ehe, - mathmlBuilder: J8t + mathmlBuilder: eLt }); le("\\operatorname", "\\@ifstar\\operatornamewithlimits\\operatorname@"); X0({ @@ -59657,7 +59728,7 @@ function the(t, e, r) { } return Be.makeFragment(n); } -var KQ = ["\\tiny", "\\sixptsize", "\\scriptsize", "\\footnotesize", "\\small", "\\normalsize", "\\large", "\\Large", "\\LARGE", "\\huge", "\\Huge"], eLt = (t, e) => { +var KQ = ["\\tiny", "\\sixptsize", "\\scriptsize", "\\footnotesize", "\\small", "\\normalsize", "\\large", "\\Large", "\\LARGE", "\\huge", "\\Huge"], tLt = (t, e) => { var r = e.havingSize(t.size); return the(t.body, r, e); }; @@ -59681,7 +59752,7 @@ Ct({ body: s }; }, - htmlBuilder: eLt, + htmlBuilder: tLt, mathmlBuilder: (t, e) => { var r = e.havingSize(t.size), n = Ua(t.body, r), i = new lt.MathNode("mstyle", n); return i.setAttribute("mathsize", vt(r.sizeMultiplier)), i; @@ -59856,7 +59927,7 @@ Ct({ return s.setAttribute("scriptlevel", o[0]), s.setAttribute("displaystyle", o[1]), s; } }); -var tLt = function(e, r) { +var rLt = function(e, r) { var n = e.base; if (n) if (n.type === "op") { @@ -59880,7 +59951,7 @@ var tLt = function(e, r) { X0({ type: "supsub", htmlBuilder(t, e) { - var r = tLt(t, e); + var r = rLt(t, e); if (r) return r(t, e); var { @@ -60081,7 +60152,7 @@ var tY = { }, rY = { "\\textbf": "textbf", "\\textmd": "textmd" -}, rLt = { +}, nLt = { "\\textit": "textit", "\\textup": "textup" }, nY = (t, e) => { @@ -60095,7 +60166,7 @@ var tY = { return e.fontShape === "textit" ? e.withTextFontShape("textup") : e.withTextFontShape("textit"); } else return e; - return e.withTextFontShape(rLt[r]); + return e.withTextFontShape(nLt[r]); }; Ct({ type: "text", @@ -60238,12 +60309,12 @@ Ct({ } }); var iY = (t) => t.body.replace(/ /g, t.star ? "\u2423" : "\xA0"), Vh = Tue, nhe = `[ \r - ]`, nLt = "\\\\[a-zA-Z@]+", iLt = "\\\\[^\uD800-\uDFFF]", sLt = "(" + nLt + ")" + nhe + "*", aLt = `\\\\( + ]`, iLt = "\\\\[a-zA-Z@]+", sLt = "\\\\[^\uD800-\uDFFF]", aLt = "(" + iLt + ")" + nhe + "*", oLt = `\\\\( |[ \r ]+ -?)[ \r ]*`, _L = "[\u0300-\u036F]", oLt = new RegExp(_L + "+$"), lLt = "(" + nhe + "+)|" + (aLt + "|") + "([!-\\[\\]-\u2027\u202A-\uD7FF\uF900-\uFFFF]" + (_L + "*") + "|[\uD800-\uDBFF][\uDC00-\uDFFF]" + (_L + "*") + "|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5" + ("|" + sLt) + ("|" + iLt + ")"); +?)[ \r ]*`, _L = "[\u0300-\u036F]", lLt = new RegExp(_L + "+$"), cLt = "(" + nhe + "+)|" + (oLt + "|") + "([!-\\[\\]-\u2027\u202A-\uD7FF\uF900-\uFFFF]" + (_L + "*") + "|[\uD800-\uDBFF][\uDC00-\uDFFF]" + (_L + "*") + "|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5" + ("|" + aLt) + ("|" + sLt + ")"); class sY { constructor(e, r) { - this.input = void 0, this.settings = void 0, this.tokenRegex = void 0, this.catcodes = void 0, this.input = e, this.settings = r, this.tokenRegex = new RegExp(lLt, "g"), this.catcodes = { + this.input = void 0, this.settings = void 0, this.tokenRegex = void 0, this.catcodes = void 0, this.input = e, this.settings = r, this.tokenRegex = new RegExp(cLt, "g"), this.catcodes = { "%": 14, "~": 13 }; @@ -60267,7 +60338,7 @@ class sY { return new zo(i, new eo(this, r, this.tokenRegex.lastIndex)); } } -class cLt { +class uLt { constructor(e, r) { e === void 0 && (e = {}), r === void 0 && (r = {}), this.current = void 0, this.builtins = void 0, this.undefStack = void 0, this.current = r, this.builtins = e, this.undefStack = []; } @@ -60303,7 +60374,7 @@ class cLt { r == null ? delete this.current[e] : this.current[e] = r; } } -var uLt = Wue; +var hLt = Wue; le("\\noexpand", function(t) { var e = t.popToken(); return t.isExpandable(e.text) && (e.noexpand = !0, e.treatAsRelax = !0), { @@ -60878,9 +60949,9 @@ var ahe = { "\\limits": !0, "\\nolimits": !0 }; -class hLt { +class fLt { constructor(e, r, n) { - this.settings = void 0, this.expansionCount = void 0, this.lexer = void 0, this.macros = void 0, this.stack = void 0, this.mode = void 0, this.settings = r, this.expansionCount = 0, this.feed(e), this.macros = new cLt(uLt, r.macros), this.mode = n, this.stack = []; + this.settings = void 0, this.expansionCount = void 0, this.lexer = void 0, this.macros = void 0, this.stack = void 0, this.mode = void 0, this.settings = r, this.expansionCount = 0, this.feed(e), this.macros = new uLt(hLt, r.macros), this.mode = n, this.stack = []; } feed(e) { this.lexer = new sY(e, this.settings); @@ -61566,7 +61637,7 @@ var lY = /^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗ }; class ZT { constructor(e, r) { - this.mode = void 0, this.gullet = void 0, this.settings = void 0, this.leftrightDepth = void 0, this.nextToken = void 0, this.mode = "math", this.gullet = new hLt(e, r, this.mode), this.settings = r, this.leftrightDepth = 0; + this.mode = void 0, this.gullet = void 0, this.settings = void 0, this.leftrightDepth = void 0, this.nextToken = void 0, this.mode = "math", this.gullet = new fLt(e, r, this.mode), this.settings = r, this.leftrightDepth = 0; } expect(e, r) { if (r === void 0 && (r = !0), this.fetch().text !== e) @@ -61965,13 +62036,13 @@ class ZT { }; } cY.hasOwnProperty(r[0]) && !hn[this.mode][r[0]] && (this.settings.strict && this.mode === "math" && this.settings.reportNonstrict("unicodeTextInMathMode", 'Accented Unicode text character "' + r[0] + '" used in math mode', e), r = cY[r[0]] + r.slice(1)); - var s = oLt.exec(r); + var s = lLt.exec(r); s && (r = r.substring(0, s.index), r === "i" ? r = "\u0131" : r === "j" && (r = "\u0237")); var a; if (hn[this.mode][r]) { this.settings.strict && this.mode === "math" && kL.indexOf(r) >= 0 && this.settings.reportNonstrict("unicodeTextInMathMode", 'Latin-1/Unicode text character "' + r[0] + '" used in math mode', e); var o = hn[this.mode][r].group, l = eo.range(e), u; - if (J7t.hasOwnProperty(o)) { + if (e8t.hasOwnProperty(o)) { var h = o; u = { type: "atom", @@ -62044,10 +62115,10 @@ var IN = function(e, r) { typeof document < "u" && document.compatMode !== "CSS1Compat" && (typeof console < "u" && console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype."), ohe = function() { throw new ct("KaTeX doesn't work in quirks mode."); }); -var fLt = function(e, r) { +var dLt = function(e, r) { var n = PN(e, r).toMarkup(); return n; -}, dLt = function(e, r) { +}, pLt = function(e, r) { var n = new vN(r); return IN(e, n); }, lhe = function(e, r, n) { @@ -62059,28 +62130,28 @@ var fLt = function(e, r) { var n = new vN(r); try { var i = IN(e, n); - return O8t(i, e, n); + return k8t(i, e, n); } catch (s) { return lhe(s, e, n); } -}, pLt = function(e, r) { +}, gLt = function(e, r) { var n = new vN(r); try { var i = IN(e, n); - return k8t(i, e, n); + return S8t(i, e, n); } catch (s) { return lhe(s, e, n); } -}, gLt = { +}, mLt = { version: "0.16.11", render: ohe, - renderToString: fLt, + renderToString: dLt, ParseError: ct, SETTINGS_SCHEMA: V4, - __parse: dLt, + __parse: pLt, __renderToDomTree: PN, - __renderToHTMLTree: pLt, - __setFontMetrics: W7t, + __renderToHTMLTree: gLt, + __setFontMetrics: G7t, __defineSymbol: z, __defineFunction: Ct, __defineMacro: le, @@ -62093,20 +62164,20 @@ var fLt = function(e, r) { LineNode: OL } }; -const mLt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +const vLt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - default: gLt + default: mLt }, Symbol.toStringTag, { value: "Module" })); -var vLt = "[object Symbol]"; +var yLt = "[object Symbol]"; function p0(t) { - return typeof t == "symbol" || Xo(t) && ah(t) == vLt; + return typeof t == "symbol" || Xo(t) && ah(t) == yLt; } function Jh(t, e) { for (var r = -1, n = t == null ? 0 : t.length, i = Array(n); ++r < n; ) i[r] = e(t[r], r, t); return i; } -var yLt = 1 / 0, uY = Go ? Go.prototype : void 0, hY = uY ? uY.toString : void 0; +var bLt = 1 / 0, uY = Go ? Go.prototype : void 0, hY = uY ? uY.toString : void 0; function che(t) { if (typeof t == "string") return t; @@ -62115,20 +62186,20 @@ function che(t) { if (p0(t)) return hY ? hY.call(t) : ""; var e = t + ""; - return e == "0" && 1 / t == -yLt ? "-0" : e; + return e == "0" && 1 / t == -bLt ? "-0" : e; } -var bLt = /\s/; -function xLt(t) { - for (var e = t.length; e-- && bLt.test(t.charAt(e)); ) +var xLt = /\s/; +function wLt(t) { + for (var e = t.length; e-- && xLt.test(t.charAt(e)); ) ; return e; } -var wLt = /^\s+/; -function OLt(t) { - return t && t.slice(0, xLt(t) + 1).replace(wLt, ""); +var OLt = /^\s+/; +function kLt(t) { + return t && t.slice(0, wLt(t) + 1).replace(OLt, ""); } -var fY = 0 / 0, kLt = /^[-+]0x[0-9a-f]+$/i, SLt = /^0b[01]+$/i, TLt = /^0o[0-7]+$/i, CLt = parseInt; -function ELt(t) { +var fY = 0 / 0, SLt = /^[-+]0x[0-9a-f]+$/i, TLt = /^0b[01]+$/i, CLt = /^0o[0-7]+$/i, ELt = parseInt; +function _Lt(t) { if (typeof t == "number") return t; if (p0(t)) @@ -62139,17 +62210,17 @@ function ELt(t) { } if (typeof t != "string") return t === 0 ? t : +t; - t = OLt(t); - var r = SLt.test(t); - return r || TLt.test(t) ? CLt(t.slice(2), r ? 2 : 8) : kLt.test(t) ? fY : +t; + t = kLt(t); + var r = TLt.test(t); + return r || CLt.test(t) ? ELt(t.slice(2), r ? 2 : 8) : SLt.test(t) ? fY : +t; } -var dY = 1 / 0, _Lt = 17976931348623157e292; +var dY = 1 / 0, ALt = 17976931348623157e292; function q4(t) { if (!t) return t === 0 ? t : 0; - if (t = ELt(t), t === dY || t === -dY) { + if (t = _Lt(t), t === dY || t === -dY) { var e = t < 0 ? -1 : 1; - return e * _Lt; + return e * ALt; } return t === t ? t : 0; } @@ -62170,17 +62241,17 @@ function hhe(t, e, r, n) { return s; return -1; } -function ALt(t) { +function LLt(t) { return t !== t; } -function LLt(t, e, r) { +function RLt(t, e, r) { for (var n = r - 1, i = t.length; ++n < i; ) if (t[n] === e) return n; return -1; } function $N(t, e, r) { - return e === e ? LLt(t, e, r) : hhe(t, ALt, r); + return e === e ? RLt(t, e, r) : hhe(t, LLt, r); } function fhe(t, e) { var r = t == null ? 0 : t.length; @@ -62189,48 +62260,48 @@ function fhe(t, e) { function ki(t) { return Zc(t) ? uae(t) : Eoe(t); } -var RLt = Object.prototype, MLt = RLt.hasOwnProperty, DLt = pae(function(t, e) { +var MLt = Object.prototype, DLt = MLt.hasOwnProperty, NLt = pae(function(t, e) { if (fx(e) || Zc(e)) { J1(e, ki(e), t); return; } for (var r in e) - MLt.call(e, r) && dx(t, r, e[r]); + DLt.call(e, r) && dx(t, r, e[r]); }); -const ho = DLt; -var NLt = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, ILt = /^\w*$/; +const ho = NLt; +var ILt = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, PLt = /^\w*$/; function BN(t, e) { if (Sr(t)) return !1; var r = typeof t; - return r == "number" || r == "symbol" || r == "boolean" || t == null || p0(t) ? !0 : ILt.test(t) || !NLt.test(t) || e != null && t in Object(e); + return r == "number" || r == "symbol" || r == "boolean" || t == null || p0(t) ? !0 : PLt.test(t) || !ILt.test(t) || e != null && t in Object(e); } -var PLt = 500; -function $Lt(t) { +var $Lt = 500; +function BLt(t) { var e = j1(t, function(n) { - return r.size === PLt && r.clear(), n; + return r.size === $Lt && r.clear(), n; }), r = e.cache; return e; } -var BLt = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, FLt = /\\(\\)?/g, zLt = $Lt(function(t) { +var FLt = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, zLt = /\\(\\)?/g, VLt = BLt(function(t) { var e = []; - return t.charCodeAt(0) === 46 && e.push(""), t.replace(BLt, function(r, n, i, s) { - e.push(i ? s.replace(FLt, "$1") : n || r); + return t.charCodeAt(0) === 46 && e.push(""), t.replace(FLt, function(r, n, i, s) { + e.push(i ? s.replace(zLt, "$1") : n || r); }), e; }); -const VLt = zLt; +const ULt = VLt; function dhe(t) { return t == null ? "" : che(t); } function jT(t, e) { - return Sr(t) ? t : BN(t, e) ? [t] : VLt(dhe(t)); + return Sr(t) ? t : BN(t, e) ? [t] : ULt(dhe(t)); } -var ULt = 1 / 0; +var qLt = 1 / 0; function Ex(t) { if (typeof t == "string" || p0(t)) return t; var e = t + ""; - return e == "0" && 1 / t == -ULt ? "-0" : e; + return e == "0" && 1 / t == -qLt ? "-0" : e; } function KT(t, e) { e = jT(e, t); @@ -62238,7 +62309,7 @@ function KT(t, e) { t = t[Ex(e[r++])]; return r && r == n ? t : void 0; } -function qLt(t, e, r) { +function QLt(t, e, r) { var n = t == null ? void 0 : KT(t, e); return n === void 0 ? r : n; } @@ -62248,12 +62319,12 @@ function FN(t, e) { return t; } var pY = Go ? Go.isConcatSpreadable : void 0; -function QLt(t) { +function YLt(t) { return Sr(t) || Jg(t) || !!(pY && t && t[pY]); } function nm(t, e, r, n, i) { var s = -1, a = t.length; - for (r || (r = QLt), i || (i = []); ++s < a; ) { + for (r || (r = YLt), i || (i = []); ++s < a; ) { var o = t[s]; e > 0 && r(o) ? e > 1 ? nm(o, e - 1, r, n, i) : FN(i, o) : n || (i[i.length] = o); } @@ -62263,7 +62334,7 @@ function Yi(t) { var e = t == null ? 0 : t.length; return e ? nm(t, 1) : []; } -function YLt(t) { +function WLt(t) { return dae(fae(t, void 0, Yi), t + ""); } function phe(t, e, r) { @@ -62273,16 +62344,16 @@ function phe(t, e, r) { s[n] = t[n + e]; return s; } -function WLt(t, e, r, n) { +function GLt(t, e, r, n) { var i = -1, s = t == null ? 0 : t.length; for (n && s && (r = t[++i]); ++i < s; ) r = e(r, t[i], i, t); return r; } -function GLt(t, e) { +function HLt(t, e) { return t && J1(e, ki(e), t); } -function HLt(t, e) { +function XLt(t, e) { return t && J1(e, Y0(e), t); } function zN(t, e) { @@ -62295,22 +62366,22 @@ function zN(t, e) { function ghe() { return []; } -var XLt = Object.prototype, ZLt = XLt.propertyIsEnumerable, gY = Object.getOwnPropertySymbols, jLt = gY ? function(t) { +var ZLt = Object.prototype, jLt = ZLt.propertyIsEnumerable, gY = Object.getOwnPropertySymbols, KLt = gY ? function(t) { return t == null ? [] : (t = Object(t), zN(gY(t), function(e) { - return ZLt.call(t, e); + return jLt.call(t, e); })); } : ghe; -const VN = jLt; -function KLt(t, e) { +const VN = KLt; +function JLt(t, e) { return J1(t, VN(t), e); } -var JLt = Object.getOwnPropertySymbols, e9t = JLt ? function(t) { +var e9t = Object.getOwnPropertySymbols, t9t = e9t ? function(t) { for (var e = []; t; ) FN(e, VN(t)), t = zD(t); return e; } : ghe; -const mhe = e9t; -function t9t(t, e) { +const mhe = t9t; +function r9t(t, e) { return J1(t, mhe(t), e); } function vhe(t, e, r) { @@ -62323,36 +62394,35 @@ function AL(t) { function yhe(t) { return vhe(t, Y0, mhe); } -var r9t = Object.prototype, n9t = r9t.hasOwnProperty; -function i9t(t) { +var n9t = Object.prototype, i9t = n9t.hasOwnProperty; +function s9t(t) { var e = t.length, r = new t.constructor(e); - return e && typeof t[0] == "string" && n9t.call(t, "index") && (r.index = t.index, r.input = t.input), r; + return e && typeof t[0] == "string" && i9t.call(t, "index") && (r.index = t.index, r.input = t.input), r; } -function s9t(t, e) { +function a9t(t, e) { var r = e ? FD(t.buffer) : t.buffer; return new t.constructor(r, t.byteOffset, t.byteLength); } -var a9t = /\w*$/; -function o9t(t) { - var e = new t.constructor(t.source, a9t.exec(t)); +var o9t = /\w*$/; +function l9t(t) { + var e = new t.constructor(t.source, o9t.exec(t)); return e.lastIndex = t.lastIndex, e; } var mY = Go ? Go.prototype : void 0, vY = mY ? mY.valueOf : void 0; -function l9t(t) { +function c9t(t) { return vY ? Object(vY.call(t)) : {}; } -var c9t = "[object Boolean]", u9t = "[object Date]", h9t = "[object Map]", f9t = "[object Number]", d9t = "[object RegExp]", p9t = "[object Set]", g9t = "[object String]", m9t = "[object Symbol]", v9t = "[object ArrayBuffer]", y9t = "[object DataView]", b9t = "[object Float32Array]", x9t = "[object Float64Array]", w9t = "[object Int8Array]", O9t = "[object Int16Array]", k9t = "[object Int32Array]", S9t = "[object Uint8Array]", T9t = "[object Uint8ClampedArray]", C9t = "[object Uint16Array]", E9t = "[object Uint32Array]"; -function _9t(t, e, r) { +var u9t = "[object Boolean]", h9t = "[object Date]", f9t = "[object Map]", d9t = "[object Number]", p9t = "[object RegExp]", g9t = "[object Set]", m9t = "[object String]", v9t = "[object Symbol]", y9t = "[object ArrayBuffer]", b9t = "[object DataView]", x9t = "[object Float32Array]", w9t = "[object Float64Array]", O9t = "[object Int8Array]", k9t = "[object Int16Array]", S9t = "[object Int32Array]", T9t = "[object Uint8Array]", C9t = "[object Uint8ClampedArray]", E9t = "[object Uint16Array]", _9t = "[object Uint32Array]"; +function A9t(t, e, r) { var n = t.constructor; switch (e) { - case v9t: + case y9t: return FD(t); - case c9t: case u9t: + case h9t: return new n(+t); - case y9t: - return s9t(t, r); case b9t: + return a9t(t, r); case x9t: case w9t: case O9t: @@ -62361,65 +62431,66 @@ function _9t(t, e, r) { case T9t: case C9t: case E9t: + case _9t: return rae(t, r); - case h9t: - return new n(); case f9t: - case g9t: - return new n(t); - case d9t: - return o9t(t); - case p9t: return new n(); + case d9t: case m9t: + return new n(t); + case p9t: return l9t(t); + case g9t: + return new n(); + case v9t: + return c9t(t); } } -var A9t = "[object Map]"; -function L9t(t) { - return Xo(t) && n1(t) == A9t; +var L9t = "[object Map]"; +function R9t(t) { + return Xo(t) && n1(t) == L9t; } -var yY = bf && bf.isMap, R9t = yY ? K1(yY) : L9t; -const M9t = R9t; -var D9t = "[object Set]"; -function N9t(t) { - return Xo(t) && n1(t) == D9t; +var yY = bf && bf.isMap, M9t = yY ? K1(yY) : R9t; +const D9t = M9t; +var N9t = "[object Set]"; +function I9t(t) { + return Xo(t) && n1(t) == N9t; } -var bY = bf && bf.isSet, I9t = bY ? K1(bY) : N9t; -const P9t = I9t; -var $9t = 1, B9t = 2, F9t = 4, bhe = "[object Arguments]", z9t = "[object Array]", V9t = "[object Boolean]", U9t = "[object Date]", q9t = "[object Error]", xhe = "[object Function]", Q9t = "[object GeneratorFunction]", Y9t = "[object Map]", W9t = "[object Number]", whe = "[object Object]", G9t = "[object RegExp]", H9t = "[object Set]", X9t = "[object String]", Z9t = "[object Symbol]", j9t = "[object WeakMap]", K9t = "[object ArrayBuffer]", J9t = "[object DataView]", eRt = "[object Float32Array]", tRt = "[object Float64Array]", rRt = "[object Int8Array]", nRt = "[object Int16Array]", iRt = "[object Int32Array]", sRt = "[object Uint8Array]", aRt = "[object Uint8ClampedArray]", oRt = "[object Uint16Array]", lRt = "[object Uint32Array]", ln = {}; -ln[bhe] = ln[z9t] = ln[K9t] = ln[J9t] = ln[V9t] = ln[U9t] = ln[eRt] = ln[tRt] = ln[rRt] = ln[nRt] = ln[iRt] = ln[Y9t] = ln[W9t] = ln[whe] = ln[G9t] = ln[H9t] = ln[X9t] = ln[Z9t] = ln[sRt] = ln[aRt] = ln[oRt] = ln[lRt] = !0; -ln[q9t] = ln[xhe] = ln[j9t] = !1; +var bY = bf && bf.isSet, P9t = bY ? K1(bY) : I9t; +const $9t = P9t; +var B9t = 1, F9t = 2, z9t = 4, bhe = "[object Arguments]", V9t = "[object Array]", U9t = "[object Boolean]", q9t = "[object Date]", Q9t = "[object Error]", xhe = "[object Function]", Y9t = "[object GeneratorFunction]", W9t = "[object Map]", G9t = "[object Number]", whe = "[object Object]", H9t = "[object RegExp]", X9t = "[object Set]", Z9t = "[object String]", j9t = "[object Symbol]", K9t = "[object WeakMap]", J9t = "[object ArrayBuffer]", eRt = "[object DataView]", tRt = "[object Float32Array]", rRt = "[object Float64Array]", nRt = "[object Int8Array]", iRt = "[object Int16Array]", sRt = "[object Int32Array]", aRt = "[object Uint8Array]", oRt = "[object Uint8ClampedArray]", lRt = "[object Uint16Array]", cRt = "[object Uint32Array]", ln = {}; +ln[bhe] = ln[V9t] = ln[J9t] = ln[eRt] = ln[U9t] = ln[q9t] = ln[tRt] = ln[rRt] = ln[nRt] = ln[iRt] = ln[sRt] = ln[W9t] = ln[G9t] = ln[whe] = ln[H9t] = ln[X9t] = ln[Z9t] = ln[j9t] = ln[aRt] = ln[oRt] = ln[lRt] = ln[cRt] = !0; +ln[Q9t] = ln[xhe] = ln[K9t] = !1; function uy(t, e, r, n, i, s) { - var a, o = e & $9t, l = e & B9t, u = e & F9t; + var a, o = e & B9t, l = e & F9t, u = e & z9t; if (r && (a = i ? r(t, n, i, s) : r(t)), a !== void 0) return a; if (!$a(t)) return t; var h = Sr(t); if (h) { - if (a = i9t(t), !o) + if (a = s9t(t), !o) return nae(t, a); } else { - var f = n1(t), d = f == xhe || f == Q9t; + var f = n1(t), d = f == xhe || f == Y9t; if (e1(t)) return tae(t, o); if (f == whe || f == bhe || d && !i) { if (a = l || d ? {} : sae(t), !o) - return l ? t9t(t, HLt(a, t)) : KLt(t, GLt(a, t)); + return l ? r9t(t, XLt(a, t)) : JLt(t, HLt(a, t)); } else { if (!ln[f]) return i ? t : {}; - a = _9t(t, f, o); + a = A9t(t, f, o); } } s || (s = new wl()); var p = s.get(t); if (p) return p; - s.set(t, a), P9t(t) ? t.forEach(function(v) { + s.set(t, a), $9t(t) ? t.forEach(function(v) { a.add(uy(v, e, r, v, t, s)); - }) : M9t(t) && t.forEach(function(v, y) { + }) : D9t(t) && t.forEach(function(v, y) { a.set(y, uy(v, e, r, y, t, s)); }); var g = u ? l ? yhe : AL : l ? Y0 : ki, m = h ? void 0 : g(t); @@ -62427,13 +62498,13 @@ function uy(t, e, r, n, i, s) { m && (y = v, v = t[y]), dx(a, y, uy(v, e, r, y, t, s)); }), a; } -var cRt = 4; +var uRt = 4; function Ni(t) { - return uy(t, cRt); + return uy(t, uRt); } -var uRt = 1, hRt = 4; -function fRt(t) { - return uy(t, uRt | hRt); +var hRt = 1, fRt = 4; +function dRt(t) { + return uy(t, hRt | fRt); } function _x(t) { for (var e = -1, r = t == null ? 0 : t.length, n = 0, i = []; ++e < r; ) { @@ -62442,11 +62513,11 @@ function _x(t) { } return i; } -var dRt = "__lodash_hash_undefined__"; -function pRt(t) { - return this.__data__.set(t, dRt), this; -} +var pRt = "__lodash_hash_undefined__"; function gRt(t) { + return this.__data__.set(t, pRt), this; +} +function mRt(t) { return this.__data__.has(t); } function c1(t) { @@ -62454,8 +62525,8 @@ function c1(t) { for (this.__data__ = new lh(); ++e < r; ) this.add(t[e]); } -c1.prototype.add = c1.prototype.push = pRt; -c1.prototype.has = gRt; +c1.prototype.add = c1.prototype.push = gRt; +c1.prototype.has = mRt; function Ohe(t, e) { for (var r = -1, n = t == null ? 0 : t.length; ++r < n; ) if (e(t[r], r, t)) @@ -62465,15 +62536,15 @@ function Ohe(t, e) { function UN(t, e) { return t.has(e); } -var mRt = 1, vRt = 2; +var vRt = 1, yRt = 2; function khe(t, e, r, n, i, s) { - var a = r & mRt, o = t.length, l = e.length; + var a = r & vRt, o = t.length, l = e.length; if (o != l && !(a && l > o)) return !1; var u = s.get(t), h = s.get(e); if (u && h) return u == e && h == t; - var f = -1, d = !0, p = r & vRt ? new c1() : void 0; + var f = -1, d = !0, p = r & yRt ? new c1() : void 0; for (s.set(t, e), s.set(e, t); ++f < o; ) { var g = t[f], m = e[f]; if (n) @@ -62499,7 +62570,7 @@ function khe(t, e, r, n, i, s) { } return s.delete(t), s.delete(e), d; } -function yRt(t) { +function bRt(t) { var e = -1, r = Array(t.size); return t.forEach(function(n, i) { r[++e] = [i, n]; @@ -62511,50 +62582,50 @@ function qN(t) { r[++e] = n; }), r; } -var bRt = 1, xRt = 2, wRt = "[object Boolean]", ORt = "[object Date]", kRt = "[object Error]", SRt = "[object Map]", TRt = "[object Number]", CRt = "[object RegExp]", ERt = "[object Set]", _Rt = "[object String]", ARt = "[object Symbol]", LRt = "[object ArrayBuffer]", RRt = "[object DataView]", xY = Go ? Go.prototype : void 0, k_ = xY ? xY.valueOf : void 0; -function MRt(t, e, r, n, i, s, a) { +var xRt = 1, wRt = 2, ORt = "[object Boolean]", kRt = "[object Date]", SRt = "[object Error]", TRt = "[object Map]", CRt = "[object Number]", ERt = "[object RegExp]", _Rt = "[object Set]", ARt = "[object String]", LRt = "[object Symbol]", RRt = "[object ArrayBuffer]", MRt = "[object DataView]", xY = Go ? Go.prototype : void 0, k_ = xY ? xY.valueOf : void 0; +function DRt(t, e, r, n, i, s, a) { switch (r) { - case RRt: + case MRt: if (t.byteLength != e.byteLength || t.byteOffset != e.byteOffset) return !1; t = t.buffer, e = e.buffer; - case LRt: + case RRt: return !(t.byteLength != e.byteLength || !s(new P3(t), new P3(e))); - case wRt: case ORt: - case TRt: - return Z1(+t, +e); case kRt: - return t.name == e.name && t.message == e.message; case CRt: - case _Rt: - return t == e + ""; + return Z1(+t, +e); case SRt: - var o = yRt; + return t.name == e.name && t.message == e.message; case ERt: - var l = n & bRt; + case ARt: + return t == e + ""; + case TRt: + var o = bRt; + case _Rt: + var l = n & xRt; if (o || (o = qN), t.size != e.size && !l) return !1; var u = a.get(t); if (u) return u == e; - n |= xRt, a.set(t, e); + n |= wRt, a.set(t, e); var h = khe(o(t), o(e), n, i, s, a); return a.delete(t), h; - case ARt: + case LRt: if (k_) return k_.call(t) == k_.call(e); } return !1; } -var DRt = 1, NRt = Object.prototype, IRt = NRt.hasOwnProperty; -function PRt(t, e, r, n, i, s) { - var a = r & DRt, o = AL(t), l = o.length, u = AL(e), h = u.length; +var NRt = 1, IRt = Object.prototype, PRt = IRt.hasOwnProperty; +function $Rt(t, e, r, n, i, s) { + var a = r & NRt, o = AL(t), l = o.length, u = AL(e), h = u.length; if (l != h && !a) return !1; for (var f = l; f--; ) { var d = o[f]; - if (!(a ? d in e : IRt.call(e, d))) + if (!(a ? d in e : PRt.call(e, d))) return !1; } var p = s.get(t), g = s.get(e); @@ -62579,8 +62650,8 @@ function PRt(t, e, r, n, i, s) { } return s.delete(t), s.delete(e), m; } -var $Rt = 1, wY = "[object Arguments]", OY = "[object Array]", xO = "[object Object]", BRt = Object.prototype, kY = BRt.hasOwnProperty; -function FRt(t, e, r, n, i, s) { +var BRt = 1, wY = "[object Arguments]", OY = "[object Array]", xO = "[object Object]", FRt = Object.prototype, kY = FRt.hasOwnProperty; +function zRt(t, e, r, n, i, s) { var a = Sr(t), o = Sr(e), l = a ? OY : n1(t), u = o ? OY : n1(e); l = l == wY ? xO : l, u = u == wY ? xO : u; var h = l == xO, f = u == xO, d = l == u; @@ -62590,21 +62661,21 @@ function FRt(t, e, r, n, i, s) { a = !0, h = !1; } if (d && !h) - return s || (s = new wl()), a || DT(t) ? khe(t, e, r, n, i, s) : MRt(t, e, l, r, n, i, s); - if (!(r & $Rt)) { + return s || (s = new wl()), a || DT(t) ? khe(t, e, r, n, i, s) : DRt(t, e, l, r, n, i, s); + if (!(r & BRt)) { var p = h && kY.call(t, "__wrapped__"), g = f && kY.call(e, "__wrapped__"); if (p || g) { var m = p ? t.value() : t, v = g ? e.value() : e; return s || (s = new wl()), i(m, v, r, n, s); } } - return d ? (s || (s = new wl()), PRt(t, e, r, n, i, s)) : !1; + return d ? (s || (s = new wl()), $Rt(t, e, r, n, i, s)) : !1; } function QN(t, e, r, n, i) { - return t === e ? !0 : t == null || e == null || !Xo(t) && !Xo(e) ? t !== t && e !== e : FRt(t, e, r, n, QN, i); + return t === e ? !0 : t == null || e == null || !Xo(t) && !Xo(e) ? t !== t && e !== e : zRt(t, e, r, n, QN, i); } -var zRt = 1, VRt = 2; -function URt(t, e, r, n) { +var VRt = 1, URt = 2; +function qRt(t, e, r, n) { var i = r.length, s = i, a = !n; if (t == null) return !s; @@ -62623,7 +62694,7 @@ function URt(t, e, r, n) { var f = new wl(); if (n) var d = n(u, h, l, t, e, f); - if (!(d === void 0 ? QN(h, u, zRt | VRt, n, f) : d)) + if (!(d === void 0 ? QN(h, u, VRt | URt, n, f) : d)) return !1; } } @@ -62632,7 +62703,7 @@ function URt(t, e, r, n) { function She(t) { return t === t && !$a(t); } -function qRt(t) { +function QRt(t) { for (var e = ki(t), r = e.length; r--; ) { var n = e[r], i = t[n]; e[r] = [n, i, She(i)]; @@ -62644,13 +62715,13 @@ function The(t, e) { return r == null ? !1 : r[t] === e && (e !== void 0 || t in Object(r)); }; } -function QRt(t) { - var e = qRt(t); +function YRt(t) { + var e = QRt(t); return e.length == 1 && e[0][2] ? The(e[0][0], e[0][1]) : function(r) { - return r === t || URt(r, t, e); + return r === t || qRt(r, t, e); }; } -function YRt(t, e) { +function WRt(t, e) { return t != null && e in Object(t); } function Che(t, e, r) { @@ -62664,32 +62735,32 @@ function Che(t, e, r) { return s || ++n != i ? s : (i = t == null ? 0 : t.length, !!i && VD(i) && NT(a, i) && (Sr(t) || Jg(t))); } function Ehe(t, e) { - return t != null && Che(t, e, YRt); + return t != null && Che(t, e, WRt); } -var WRt = 1, GRt = 2; -function HRt(t, e) { +var GRt = 1, HRt = 2; +function XRt(t, e) { return BN(t) && She(e) ? The(Ex(t), e) : function(r) { - var n = qLt(r, t); - return n === void 0 && n === e ? Ehe(r, t) : QN(e, n, WRt | GRt); + var n = QLt(r, t); + return n === void 0 && n === e ? Ehe(r, t) : QN(e, n, GRt | HRt); }; } -function XRt(t) { +function ZRt(t) { return function(e) { return e == null ? void 0 : e[t]; }; } -function ZRt(t) { +function jRt(t) { return function(e) { return KT(e, t); }; } -function jRt(t) { - return BN(t) ? XRt(Ex(t)) : ZRt(t); +function KRt(t) { + return BN(t) ? ZRt(Ex(t)) : jRt(t); } function qa(t) { - return typeof t == "function" ? t : t == null ? Yu : typeof t == "object" ? Sr(t) ? HRt(t[0], t[1]) : QRt(t) : jRt(t); + return typeof t == "function" ? t : t == null ? Yu : typeof t == "object" ? Sr(t) ? XRt(t[0], t[1]) : YRt(t) : KRt(t); } -function KRt(t, e, r, n) { +function JRt(t, e, r, n) { for (var i = -1, s = t == null ? 0 : t.length; ++i < s; ) { var a = t[i]; e(n, a, r(a), t); @@ -62699,7 +62770,7 @@ function KRt(t, e, r, n) { function YN(t, e) { return t && BD(t, e, ki); } -function JRt(t, e) { +function eMt(t, e) { return function(r, n) { if (r == null) return r; @@ -62710,46 +62781,46 @@ function JRt(t, e) { return r; }; } -var eMt = JRt(YN); -const Z0 = eMt; -function tMt(t, e, r, n) { +var tMt = eMt(YN); +const Z0 = tMt; +function rMt(t, e, r, n) { return Z0(t, function(i, s, a) { e(n, i, r(i), a); }), n; } -function rMt(t, e) { +function nMt(t, e) { return function(r, n) { - var i = Sr(r) ? KRt : tMt, s = e ? e() : {}; + var i = Sr(r) ? JRt : rMt, s = e ? e() : {}; return i(r, t, qa(n), s); }; } -var nMt = function() { +var iMt = function() { return Gl.Date.now(); }; -const SY = nMt; -var _he = Object.prototype, iMt = _he.hasOwnProperty, sMt = px(function(t, e) { +const SY = iMt; +var _he = Object.prototype, sMt = _he.hasOwnProperty, aMt = px(function(t, e) { t = Object(t); var r = -1, n = e.length, i = n > 2 ? e[2] : void 0; for (i && l0(e[0], e[1], i) && (n = 1); ++r < n; ) for (var s = e[r], a = Y0(s), o = -1, l = a.length; ++o < l; ) { var u = a[o], h = t[u]; - (h === void 0 || Z1(h, _he[u]) && !iMt.call(t, u)) && (t[u] = s[u]); + (h === void 0 || Z1(h, _he[u]) && !sMt.call(t, u)) && (t[u] = s[u]); } return t; }); -const JT = sMt; +const JT = aMt; function Ahe(t, e, r) { for (var n = -1, i = t == null ? 0 : t.length; ++n < i; ) if (r(e, t[n])) return !0; return !1; } -var aMt = 200; -function oMt(t, e, r, n) { +var oMt = 200; +function lMt(t, e, r, n) { var i = -1, s = fhe, a = !0, o = t.length, l = [], u = e.length; if (!o) return l; - r && (e = Jh(e, K1(r))), n ? (s = Ahe, a = !1) : e.length >= aMt && (s = UN, a = !1, e = new c1(e)); + r && (e = Jh(e, K1(r))), n ? (s = Ahe, a = !1) : e.length >= oMt && (s = UN, a = !1, e = new c1(e)); e: for (; ++i < o; ) { var h = t[i], f = r == null ? h : r(h); @@ -62763,10 +62834,10 @@ function oMt(t, e, r, n) { } return l; } -var lMt = px(function(t, e) { - return $3(t) ? oMt(t, nm(e, 1, $3, !0)) : []; +var cMt = px(function(t, e) { + return $3(t) ? lMt(t, nm(e, 1, $3, !0)) : []; }); -const eC = lMt; +const eC = cMt; function $c(t) { var e = t == null ? 0 : t.length; return e ? t[e - 1] : void 0; @@ -62786,20 +62857,20 @@ function $e(t, e) { var r = Sr(t) ? uhe : Z0; return r(t, WN(e)); } -function cMt(t, e) { +function uMt(t, e) { for (var r = -1, n = t == null ? 0 : t.length; ++r < n; ) if (!e(t[r], r, t)) return !1; return !0; } -function uMt(t, e) { +function hMt(t, e) { var r = !0; return Z0(t, function(n, i, s) { return r = !!e(n, i, s), r; }), r; } function Tl(t, e, r) { - var n = Sr(t) ? cMt : uMt; + var n = Sr(t) ? uMt : hMt; return r && l0(t, e, r) && (e = void 0), n(t, qa(e)); } function Lhe(t, e) { @@ -62812,7 +62883,7 @@ function Qn(t, e) { var r = Sr(t) ? zN : Lhe; return r(t, qa(e)); } -function hMt(t) { +function fMt(t) { return function(e, r, n) { var i = Object(e); if (!Zc(e)) { @@ -62825,16 +62896,16 @@ function hMt(t) { return a > -1 ? i[s ? e[a] : a] : void 0; }; } -var fMt = Math.max; -function dMt(t, e, r) { +var dMt = Math.max; +function pMt(t, e, r) { var n = t == null ? 0 : t.length; if (!n) return -1; var i = r == null ? 0 : Cx(r); - return i < 0 && (i = fMt(n + i, 0)), hhe(t, qa(e), i); + return i < 0 && (i = dMt(n + i, 0)), hhe(t, qa(e), i); } -var pMt = hMt(dMt); -const Xu = pMt; +var gMt = fMt(pMt); +const Xu = gMt; function Bl(t) { return t && t.length ? t[0] : void 0; } @@ -62851,58 +62922,58 @@ function gt(t, e) { function oo(t, e) { return nm(gt(t, e), 1); } -function gMt(t, e) { +function mMt(t, e) { return t == null ? t : BD(t, WN(e), Y0); } -function mMt(t, e) { +function vMt(t, e) { return t && YN(t, WN(e)); } -var vMt = Object.prototype, yMt = vMt.hasOwnProperty, bMt = rMt(function(t, e, r) { - yMt.call(t, r) ? t[r].push(e) : hx(t, r, [e]); +var yMt = Object.prototype, bMt = yMt.hasOwnProperty, xMt = nMt(function(t, e, r) { + bMt.call(t, r) ? t[r].push(e) : hx(t, r, [e]); }); -const xMt = bMt; -function wMt(t, e) { +const wMt = xMt; +function OMt(t, e) { return t > e; } -var OMt = Object.prototype, kMt = OMt.hasOwnProperty; -function SMt(t, e) { - return t != null && kMt.call(t, e); +var kMt = Object.prototype, SMt = kMt.hasOwnProperty; +function TMt(t, e) { + return t != null && SMt.call(t, e); } function yt(t, e) { - return t != null && Che(t, e, SMt); + return t != null && Che(t, e, TMt); } -var TMt = "[object String]"; +var CMt = "[object String]"; function Ba(t) { - return typeof t == "string" || !Sr(t) && Xo(t) && ah(t) == TMt; + return typeof t == "string" || !Sr(t) && Xo(t) && ah(t) == CMt; } -function CMt(t, e) { +function EMt(t, e) { return Jh(e, function(r) { return t[r]; }); } function Kr(t) { - return t == null ? [] : CMt(t, ki(t)); + return t == null ? [] : EMt(t, ki(t)); } -var EMt = Math.max; +var _Mt = Math.max; function pa(t, e, r, n) { t = Zc(t) ? t : Kr(t), r = r && !n ? Cx(r) : 0; var i = t.length; - return r < 0 && (r = EMt(i + r, 0)), Ba(t) ? r <= i && t.indexOf(e, r) > -1 : !!i && $N(t, e, r) > -1; + return r < 0 && (r = _Mt(i + r, 0)), Ba(t) ? r <= i && t.indexOf(e, r) > -1 : !!i && $N(t, e, r) > -1; } -var _Mt = Math.max; +var AMt = Math.max; function TY(t, e, r) { var n = t == null ? 0 : t.length; if (!n) return -1; var i = r == null ? 0 : Cx(r); - return i < 0 && (i = _Mt(n + i, 0)), $N(t, e, i); + return i < 0 && (i = AMt(n + i, 0)), $N(t, e, i); } -var AMt = "[object RegExp]"; -function LMt(t) { - return Xo(t) && ah(t) == AMt; +var LMt = "[object RegExp]"; +function RMt(t) { + return Xo(t) && ah(t) == LMt; } -var CY = bf && bf.isRegExp, RMt = CY ? K1(CY) : LMt; -const Zu = RMt; +var CY = bf && bf.isRegExp, MMt = CY ? K1(CY) : RMt; +const Zu = MMt; function qr(t) { return t === void 0; } @@ -62924,7 +62995,7 @@ function GN(t, e, r) { return l; } function g0(t) { - return t && t.length ? GN(t, Yu, wMt) : void 0; + return t && t.length ? GN(t, Yu, OMt) : void 0; } function u1(t) { return t && t.length ? GN(t, Yu, Mhe) : void 0; @@ -62932,10 +63003,10 @@ function u1(t) { function HN(t, e) { return t && t.length ? GN(t, qa(e), Mhe) : void 0; } -var MMt = "Expected a function"; -function DMt(t) { +var DMt = "Expected a function"; +function NMt(t) { if (typeof t != "function") - throw new TypeError(MMt); + throw new TypeError(DMt); return function() { var e = arguments; switch (e.length) { @@ -62951,7 +63022,7 @@ function DMt(t) { return !t.apply(this, e); }; } -function NMt(t, e, r, n) { +function IMt(t, e, r, n) { if (!$a(t)) return t; e = jT(e, t); @@ -62970,7 +63041,7 @@ function NMt(t, e, r, n) { function Dhe(t, e, r) { for (var n = -1, i = e.length, s = {}; ++n < i; ) { var a = e[n], o = KT(t, a); - r(o, a) && NMt(s, jT(a, t), o); + r(o, a) && IMt(s, jT(a, t), o); } return s; } @@ -62984,13 +63055,13 @@ function Hl(t, e) { return e(n, i[0]); }); } -function IMt(t, e) { +function PMt(t, e) { var r = t.length; for (t.sort(e); r--; ) t[r] = t[r].value; return t; } -function PMt(t, e) { +function $Mt(t, e) { if (t !== e) { var r = t !== void 0, n = t === null, i = t === t, s = p0(t), a = e !== void 0, o = e === null, l = e === e, u = p0(e); if (!o && !u && !s && t > e || s && a && l && !o && !u || n && a && l || !r && l || !i) @@ -63000,9 +63071,9 @@ function PMt(t, e) { } return 0; } -function $Mt(t, e, r) { +function BMt(t, e, r) { for (var n = -1, i = t.criteria, s = e.criteria, a = i.length, o = r.length; ++n < a; ) { - var l = PMt(i[n], s[n]); + var l = $Mt(i[n], s[n]); if (l) { if (n >= o) return l; @@ -63012,7 +63083,7 @@ function $Mt(t, e, r) { } return t.index - e.index; } -function BMt(t, e, r) { +function FMt(t, e, r) { e.length ? e = Jh(e, function(s) { return Sr(s) ? function(a) { return KT(a, s.length === 1 ? s[0] : s); @@ -63026,73 +63097,73 @@ function BMt(t, e, r) { }); return { criteria: l, index: ++n, value: s }; }); - return IMt(i, function(s, a) { - return $Mt(s, a, r); + return PMt(i, function(s, a) { + return BMt(s, a, r); }); } -function FMt(t, e) { +function zMt(t, e) { return Dhe(t, e, function(r, n) { return Ehe(t, n); }); } -var zMt = YLt(function(t, e) { - return t == null ? {} : FMt(t, e); +var VMt = WLt(function(t, e) { + return t == null ? {} : zMt(t, e); }); -const ck = zMt; -var VMt = Math.ceil, UMt = Math.max; -function qMt(t, e, r, n) { - for (var i = -1, s = UMt(VMt((e - t) / (r || 1)), 0), a = Array(s); s--; ) +const ck = VMt; +var UMt = Math.ceil, qMt = Math.max; +function QMt(t, e, r, n) { + for (var i = -1, s = qMt(UMt((e - t) / (r || 1)), 0), a = Array(s); s--; ) a[n ? s : ++i] = t, t += r; return a; } -function QMt(t) { +function YMt(t) { return function(e, r, n) { - return n && typeof n != "number" && l0(e, r, n) && (r = n = void 0), e = q4(e), r === void 0 ? (r = e, e = 0) : r = q4(r), n = n === void 0 ? e < r ? 1 : -1 : q4(n), qMt(e, r, n, t); + return n && typeof n != "number" && l0(e, r, n) && (r = n = void 0), e = q4(e), r === void 0 ? (r = e, e = 0) : r = q4(r), n = n === void 0 ? e < r ? 1 : -1 : q4(n), QMt(e, r, n, t); }; } -var YMt = QMt(); -const h1 = YMt; -function WMt(t, e, r, n, i) { +var WMt = YMt(); +const h1 = WMt; +function GMt(t, e, r, n, i) { return i(t, function(s, a, o) { r = n ? (n = !1, s) : e(r, s, a, o); }), r; } function gi(t, e, r) { - var n = Sr(t) ? WLt : WMt, i = arguments.length < 3; + var n = Sr(t) ? GLt : GMt, i = arguments.length < 3; return n(t, qa(e), r, i, Z0); } function rC(t, e) { var r = Sr(t) ? zN : Lhe; - return r(t, DMt(qa(e))); + return r(t, NMt(qa(e))); } -function GMt(t, e) { +function HMt(t, e) { var r; return Z0(t, function(n, i, s) { return r = e(n, i, s), !r; }), !!r; } function Nhe(t, e, r) { - var n = Sr(t) ? Ohe : GMt; + var n = Sr(t) ? Ohe : HMt; return r && l0(t, e, r) && (e = void 0), n(t, qa(e)); } -var HMt = px(function(t, e) { +var XMt = px(function(t, e) { if (t == null) return []; var r = e.length; - return r > 1 && l0(t, e[0], e[1]) ? e = [] : r > 2 && l0(e[0], e[1], e[2]) && (e = [e[0]]), BMt(t, nm(e, 1), []); + return r > 1 && l0(t, e[0], e[1]) ? e = [] : r > 2 && l0(e[0], e[1], e[2]) && (e = [e[0]]), FMt(t, nm(e, 1), []); }); -const Ax = HMt; -var XMt = 1 / 0, ZMt = ig && 1 / qN(new ig([, -0]))[1] == XMt ? function(t) { +const Ax = XMt; +var ZMt = 1 / 0, jMt = ig && 1 / qN(new ig([, -0]))[1] == ZMt ? function(t) { return new ig(t); } : vi; -const jMt = ZMt; -var KMt = 200; +const KMt = jMt; +var JMt = 200; function XN(t, e, r) { var n = -1, i = fhe, s = t.length, a = !0, o = [], l = o; if (r) a = !1, i = Ahe; - else if (s >= KMt) { - var u = e ? null : jMt(t); + else if (s >= JMt) { + var u = e ? null : KMt(t); if (u) return qN(u); a = !1, i = UN, l = new c1(); @@ -63111,32 +63182,32 @@ function XN(t, e, r) { } return o; } -var JMt = px(function(t) { +var eDt = px(function(t) { return XN(nm(t, 1, $3, !0)); }); -const eDt = JMt; +const tDt = eDt; function ZN(t) { return t && t.length ? XN(t) : []; } -function tDt(t, e) { +function rDt(t, e) { return t && t.length ? XN(t, qa(e)) : []; } -var rDt = 0; +var nDt = 0; function jN(t) { - var e = ++rDt; + var e = ++nDt; return dhe(t) + e; } -function nDt(t, e, r) { +function iDt(t, e, r) { for (var n = -1, i = t.length, s = e.length, a = {}; ++n < i; ) { var o = n < s ? e[n] : void 0; r(a, t[n], o); } return a; } -function iDt(t, e) { - return nDt(t || [], e || [], dx); +function sDt(t, e) { + return iDt(t || [], e || [], dx); } -var sDt = "\0", nd = "\0", EY = ""; +var aDt = "\0", nd = "\0", EY = ""; class Bi { constructor(e = {}) { this._isDirected = yt(e, "directed") ? e.directed : !0, this._isMultigraph = yt(e, "multigraph") ? e.multigraph : !1, this._isCompound = yt(e, "compound") ? e.compound : !1, this._label = void 0, this._defaultNodeLabelFn = $p(void 0), this._defaultEdgeLabelFn = $p(void 0), this._nodes = {}, this._isCompound && (this._parent = {}, this._children = {}, this._children[nd] = {}), this._in = {}, this._preds = {}, this._out = {}, this._sucs = {}, this._edgeObjs = {}, this._edgeLabels = {}; @@ -63253,7 +63324,7 @@ class Bi { neighbors(e) { var r = this.predecessors(e); if (r) - return eDt(r, this.successors(e)); + return tDt(r, this.successors(e)); } isLeaf(e) { var r; @@ -63305,7 +63376,7 @@ class Bi { if (!qr(n) && !this._isMultigraph) throw new Error("Cannot set a named edge when isMultigraph = false"); this.setNode(e), this.setNode(r), this._edgeLabels[o] = s ? i : this._defaultEdgeLabelFn(e, r, n); - var l = aDt(this._isDirected, e, r, n); + var l = oDt(this._isDirected, e, r, n); return e = l.v, r = l.w, Object.freeze(l), this._edgeObjs[o] = l, _Y(this._preds[r], e), _Y(this._sucs[e], r), this._in[r][o] = l, this._out[e][o] = l, this._edgeCount++, this; } edge(e, r, n) { @@ -63358,9 +63429,9 @@ function Tv(t, e, r, n) { var a = i; i = s, s = a; } - return i + EY + s + EY + (qr(n) ? sDt : n); + return i + EY + s + EY + (qr(n) ? aDt : n); } -function aDt(t, e, r, n) { +function oDt(t, e, r, n) { var i = "" + e, s = "" + r; if (!t && i > s) { var a = i; @@ -63372,7 +63443,7 @@ function aDt(t, e, r, n) { function S_(t, e) { return Tv(t, e.v, e.w, e.name); } -class oDt { +class lDt { constructor() { var e = {}; e._next = e._prev = e, this._sentinel = e; @@ -63388,29 +63459,29 @@ class oDt { } toString() { for (var e = [], r = this._sentinel, n = r._prev; n !== r; ) - e.push(JSON.stringify(n, lDt)), n = n._prev; + e.push(JSON.stringify(n, cDt)), n = n._prev; return "[" + e.join(", ") + "]"; } } function LY(t) { t._prev._next = t._next, t._next._prev = t._prev, delete t._next, delete t._prev; } -function lDt(t, e) { +function cDt(t, e) { if (t !== "_next" && t !== "_prev") return e; } -var cDt = $p(1); -function uDt(t, e) { +var uDt = $p(1); +function hDt(t, e) { if (t.nodeCount() <= 1) return []; - var r = fDt(t, e || cDt), n = hDt(r.graph, r.buckets, r.zeroIdx); + var r = dDt(t, e || uDt), n = fDt(r.graph, r.buckets, r.zeroIdx); return Yi( gt(n, function(i) { return t.outEdges(i.v, i.w); }) ); } -function hDt(t, e, r) { +function fDt(t, e, r) { for (var n = [], i = e[e.length - 1], s = e[0], a; t.nodeCount(); ) { for (; a = s.dequeue(); ) T_(t, e, r, a); @@ -63436,7 +63507,7 @@ function T_(t, e, r, n, i) { u.in -= o, LL(e, r, u); }), t.removeNode(n.v), s; } -function fDt(t, e) { +function dDt(t, e) { var r = new Bi(), n = 0, i = 0; $e(t.nodes(), function(o) { r.setNode(o, { v: o, in: 0, out: 0 }); @@ -63445,7 +63516,7 @@ function fDt(t, e) { r.setEdge(o.v, o.w, h), i = Math.max(i, r.node(o.v).out += u), n = Math.max(n, r.node(o.w).in += u); }); var s = h1(i + n + 3).map(function() { - return new oDt(); + return new lDt(); }), a = n + 1; return $e(r.nodes(), function(o) { LL(s, a, r.node(o)); @@ -63454,8 +63525,8 @@ function fDt(t, e) { function LL(t, e, r) { r.out ? r.in ? t[r.out - r.in + e].enqueue(r) : t[t.length - 1].enqueue(r) : t[0].enqueue(r); } -function dDt(t) { - var e = t.graph().acyclicer === "greedy" ? uDt(t, r(t)) : pDt(t); +function pDt(t) { + var e = t.graph().acyclicer === "greedy" ? hDt(t, r(t)) : gDt(t); $e(e, function(n) { var i = t.edge(n); t.removeEdge(n), i.forwardName = n.name, i.reversed = !0, t.setEdge(n.w, n.v, i, jN("rev")); @@ -63466,7 +63537,7 @@ function dDt(t) { }; } } -function pDt(t) { +function gDt(t) { var e = [], r = {}, n = {}; function i(s) { yt(n, s) || (n[s] = !0, r[s] = !0, $e(t.outEdges(s), function(a) { @@ -63475,7 +63546,7 @@ function pDt(t) { } return $e(t.nodes(), i), e; } -function gDt(t) { +function mDt(t) { $e(t.edges(), function(e) { var r = t.edge(e); if (r.reversed) { @@ -63492,7 +63563,7 @@ function im(t, e, r, n) { while (t.hasNode(i)); return r.dummy = e, t.setNode(i, r), i; } -function mDt(t) { +function vDt(t) { var e = new Bi().setGraph(t.graph()); return $e(t.nodes(), function(r) { e.setNode(r, t.node(r)); @@ -63528,7 +63599,7 @@ function nC(t) { qr(i) || (e[i][n.order] = r); }), e; } -function vDt(t) { +function yDt(t) { var e = u1( gt(t.nodes(), function(r) { return t.node(r).rank; @@ -63539,7 +63610,7 @@ function vDt(t) { yt(n, "rank") && (n.rank -= e); }); } -function yDt(t) { +function bDt(t) { var e = u1( gt(t.nodes(), function(s) { return t.node(s).rank; @@ -63572,13 +63643,13 @@ function Phe(t) { }) ); } -function bDt(t, e) { +function xDt(t, e) { var r = { lhs: [], rhs: [] }; return $e(t, function(n) { e(n) ? r.lhs.push(n) : r.rhs.push(n); }), r; } -function xDt(t, e) { +function wDt(t, e) { var r = SY(); try { return e(); @@ -63586,10 +63657,10 @@ function xDt(t, e) { console.log(t + " time: " + (SY() - r) + "ms"); } } -function wDt(t, e) { +function ODt(t, e) { return e(); } -function ODt(t) { +function kDt(t) { function e(r) { var n = t.children(r), i = t.node(r); if (n.length && $e(n, e), yt(i, "minRank")) { @@ -63604,13 +63675,13 @@ function DY(t, e, r, n, i, s) { var a = { width: 0, height: 0, rank: s, borderType: e }, o = i[e][s - 1], l = im(t, "border", a, r); i[e][s] = l, t.setParent(l, n), o && t.setEdge(o, l, { weight: 1 }); } -function kDt(t) { +function SDt(t) { var e = t.graph().rankdir.toLowerCase(); (e === "lr" || e === "rl") && $he(t); } -function SDt(t) { +function TDt(t) { var e = t.graph().rankdir.toLowerCase(); - (e === "bt" || e === "rl") && TDt(t), (e === "lr" || e === "rl") && (CDt(t), $he(t)); + (e === "bt" || e === "rl") && CDt(t), (e === "lr" || e === "rl") && (EDt(t), $he(t)); } function $he(t) { $e(t.nodes(), function(e) { @@ -63623,7 +63694,7 @@ function NY(t) { var e = t.width; t.width = t.height, t.height = e; } -function TDt(t) { +function CDt(t) { $e(t.nodes(), function(e) { C_(t.node(e)); }), $e(t.edges(), function(e) { @@ -63634,7 +63705,7 @@ function TDt(t) { function C_(t) { t.y = -t.y; } -function CDt(t) { +function EDt(t) { $e(t.nodes(), function(e) { E_(t.node(e)); }), $e(t.edges(), function(e) { @@ -63646,12 +63717,12 @@ function E_(t) { var e = t.x; t.x = t.y, t.y = e; } -function EDt(t) { +function _Dt(t) { t.graph().dummyChains = [], $e(t.edges(), function(e) { - _Dt(t, e); + ADt(t, e); }); } -function _Dt(t, e) { +function ADt(t, e) { var r = e.v, n = t.node(r).rank, i = e.w, s = t.node(i).rank, a = e.name, o = t.edge(e), l = o.labelRank; if (s !== n + 1) { t.removeEdge(e); @@ -63667,7 +63738,7 @@ function _Dt(t, e) { t.setEdge(r, i, { weight: o.weight }, a); } } -function ADt(t) { +function LDt(t) { $e(t.graph().dummyChains, function(e) { var r = t.node(e), n = r.edgeLabel, i; for (t.setEdge(r.edgeObj, n); r.dummy; ) @@ -63696,11 +63767,11 @@ function C2(t, e) { function Bhe(t) { var e = new Bi({ directed: !1 }), r = t.nodes()[0], n = t.nodeCount(); e.setNode(r, {}); - for (var i, s; LDt(e, t) < n; ) - i = RDt(e, t), s = e.hasNode(i.v) ? C2(t, i) : -C2(t, i), MDt(e, t, s); + for (var i, s; RDt(e, t) < n; ) + i = MDt(e, t), s = e.hasNode(i.v) ? C2(t, i) : -C2(t, i), DDt(e, t, s); return e; } -function LDt(t, e) { +function RDt(t, e) { function r(n) { $e(e.nodeEdges(n), function(i) { var s = i.v, a = n === s ? i.w : s; @@ -63709,20 +63780,20 @@ function LDt(t, e) { } return $e(t.nodes(), r), t.nodeCount(); } -function RDt(t, e) { +function MDt(t, e) { return HN(e.edges(), function(r) { if (t.hasNode(r.v) !== t.hasNode(r.w)) return C2(e, r); }); } -function MDt(t, e, r) { +function DDt(t, e, r) { $e(t.nodes(), function(n) { e.node(n).rank += r; }); } -function DDt() { +function NDt() { } -DDt.prototype = new Error(); +NDt.prototype = new Error(); function Fhe(t, e, r) { Sr(e) || (e = [e]); var n = (t.isDirected() ? t.successors : t.neighbors).bind(t), i = [], s = {}; @@ -63737,10 +63808,10 @@ function zhe(t, e, r, n, i, s) { zhe(t, a, r, n, i, s); }), r && s.push(e)); } -function NDt(t, e) { +function IDt(t, e) { return Fhe(t, e, "post"); } -function IDt(t, e) { +function PDt(t, e) { return Fhe(t, e, "pre"); } j0.initLowLimValues = eI; @@ -63750,19 +63821,19 @@ j0.leaveEdge = qhe; j0.enterEdge = Qhe; j0.exchangeEdges = Yhe; function j0(t) { - t = mDt(t), KN(t); + t = vDt(t), KN(t); var e = Bhe(t); eI(e), JN(e, t); for (var r, n; r = qhe(e); ) n = Qhe(e, t, r), Yhe(e, t, r, n); } function JN(t, e) { - var r = NDt(t, t.nodes()); + var r = IDt(t, t.nodes()); r = r.slice(0, r.length - 1), $e(r, function(n) { - PDt(t, e, n); + $Dt(t, e, n); }); } -function PDt(t, e, r) { +function $Dt(t, e, r) { var n = t.node(r), i = n.parent; t.edge(r, i).cutvalue = Vhe(t, e, r); } @@ -63772,7 +63843,7 @@ function Vhe(t, e, r) { var u = l.v === r, h = u ? l.w : l.v; if (h !== i) { var f = u === s, d = e.edge(l).weight; - if (o += f ? d : -d, BDt(t, r, h)) { + if (o += f ? d : -d, FDt(t, r, h)) { var p = t.edge(r, h).cutvalue; o += f ? -p : p; } @@ -63807,51 +63878,51 @@ function Qhe(t, e, r) { } function Yhe(t, e, r, n) { var i = r.v, s = r.w; - t.removeEdge(i, s), t.setEdge(n.v, n.w, {}), eI(t), JN(t, e), $Dt(t, e); + t.removeEdge(i, s), t.setEdge(n.v, n.w, {}), eI(t), JN(t, e), BDt(t, e); } -function $Dt(t, e) { +function BDt(t, e) { var r = Xu(t.nodes(), function(i) { return !e.node(i).parent; - }), n = IDt(t, r); + }), n = PDt(t, r); n = n.slice(1), $e(n, function(i) { var s = t.node(i).parent, a = e.edge(i, s), o = !1; a || (a = e.edge(s, i), o = !0), e.node(i).rank = e.node(s).rank + (o ? a.minlen : -a.minlen); }); } -function BDt(t, e, r) { +function FDt(t, e, r) { return t.hasEdge(e, r); } function IY(t, e, r) { return r.low <= e.lim && e.lim <= r.lim; } -function FDt(t) { +function zDt(t) { switch (t.graph().ranker) { case "network-simplex": PY(t); break; case "tight-tree": - VDt(t); + UDt(t); break; case "longest-path": - zDt(t); + VDt(t); break; default: PY(t); } } -var zDt = KN; -function VDt(t) { +var VDt = KN; +function UDt(t) { KN(t), Bhe(t); } function PY(t) { j0(t); } -function UDt(t) { - var e = im(t, "root", {}, "_root"), r = qDt(t), n = g0(Kr(r)) - 1, i = 2 * n + 1; +function qDt(t) { + var e = im(t, "root", {}, "_root"), r = QDt(t), n = g0(Kr(r)) - 1, i = 2 * n + 1; t.graph().nestingRoot = e, $e(t.edges(), function(a) { t.edge(a).minlen *= i; }); - var s = QDt(t) + 1; + var s = YDt(t) + 1; $e(t.children(), function(a) { Whe(t, e, i, s, n, r, a); }), t.graph().nodeRankFactor = i; @@ -63877,7 +63948,7 @@ function Whe(t, e, r, n, i, s, a) { }); }), t.parent(a) || t.setEdge(e, l, { weight: 0, minlen: i + s[a] }); } -function qDt(t) { +function QDt(t) { var e = {}; function r(n, i) { var s = t.children(n); @@ -63889,7 +63960,7 @@ function qDt(t) { r(n, 1); }), e; } -function QDt(t) { +function YDt(t) { return gi( t.edges(), function(e, r) { @@ -63898,14 +63969,14 @@ function QDt(t) { 0 ); } -function YDt(t) { +function WDt(t) { var e = t.graph(); t.removeNode(e.nestingRoot), delete e.nestingRoot, $e(t.edges(), function(r) { var n = t.edge(r); n.nestingEdge && t.removeEdge(r); }); } -function WDt(t, e, r) { +function GDt(t, e, r) { var n = {}, i; $e(r, function(s) { for (var a = t.parent(s), o, l; a; ) { @@ -63917,8 +63988,8 @@ function WDt(t, e, r) { } }); } -function GDt(t, e, r) { - var n = HDt(t), i = new Bi({ compound: !0 }).setGraph({ root: n }).setDefaultNodeLabel(function(s) { +function HDt(t, e, r) { + var n = XDt(t), i = new Bi({ compound: !0 }).setGraph({ root: n }).setDefaultNodeLabel(function(s) { return t.node(s); }); return $e(t.nodes(), function(s) { @@ -63932,18 +64003,18 @@ function GDt(t, e, r) { })); }), i; } -function HDt(t) { +function XDt(t) { for (var e; t.hasNode(e = jN("_root")); ) ; return e; } -function XDt(t, e) { +function ZDt(t, e) { for (var r = 0, n = 1; n < e.length; ++n) - r += ZDt(t, e[n - 1], e[n]); + r += jDt(t, e[n - 1], e[n]); return r; } -function ZDt(t, e, r) { - for (var n = iDt( +function jDt(t, e, r) { + for (var n = sDt( r, gt(r, function(u, h) { return h; @@ -63974,7 +64045,7 @@ function ZDt(t, e, r) { }) ), l; } -function jDt(t) { +function KDt(t) { var e = {}, r = Qn(t.nodes(), function(o) { return !t.children(o).length; }), n = g0( @@ -63996,7 +64067,7 @@ function jDt(t) { }); return $e(a, s), i; } -function KDt(t, e) { +function JDt(t, e) { return gt(e, function(r) { var n = t.inEdges(r); if (n.length) { @@ -64020,7 +64091,7 @@ function KDt(t, e) { return { v: r }; }); } -function JDt(t, e) { +function eNt(t, e) { var r = {}; $e(t, function(i, s) { var a = r[i.v] = { @@ -64038,13 +64109,13 @@ function JDt(t, e) { var n = Qn(r, function(i) { return !i.indegree; }); - return eNt(n); + return tNt(n); } -function eNt(t) { +function tNt(t) { var e = []; function r(s) { return function(a) { - a.merged || (qr(a.barycenter) || qr(s.barycenter) || a.barycenter >= s.barycenter) && tNt(s, a); + a.merged || (qr(a.barycenter) || qr(s.barycenter) || a.barycenter >= s.barycenter) && rNt(s, a); }; } function n(s) { @@ -64065,17 +64136,17 @@ function eNt(t) { } ); } -function tNt(t, e) { +function rNt(t, e) { var r = 0, n = 0; t.weight && (r += t.barycenter * t.weight, n += t.weight), e.weight && (r += e.barycenter * e.weight, n += e.weight), t.vs = e.vs.concat(t.vs), t.barycenter = r / n, t.weight = n, t.i = Math.min(e.i, t.i), e.merged = !0; } -function rNt(t, e) { - var r = bDt(t, function(h) { +function nNt(t, e) { + var r = xDt(t, function(h) { return yt(h, "barycenter"); }), n = r.lhs, i = Ax(r.rhs, function(h) { return -h.i; }), s = [], a = 0, o = 0, l = 0; - n.sort(nNt(!!e)), l = $Y(s, i, l), $e(n, function(h) { + n.sort(iNt(!!e)), l = $Y(s, i, l), $e(n, function(h) { l += h.vs.length, s.push(h.vs), a += h.barycenter * h.weight, o += h.weight, l = $Y(s, i, l); }); var u = { vs: Yi(s) }; @@ -64086,7 +64157,7 @@ function $Y(t, e, r) { e.pop(), t.push(n.vs), r++; return r; } -function nNt(t) { +function iNt(t) { return function(e, r) { return e.barycenter < r.barycenter ? -1 : e.barycenter > r.barycenter ? 1 : t ? r.i - e.i : e.i - r.i; }; @@ -64096,23 +64167,23 @@ function Ghe(t, e, r, n) { a && (i = Qn(i, function(g) { return g !== a && g !== o; })); - var u = KDt(t, i); + var u = JDt(t, i); $e(u, function(g) { if (t.children(g.v).length) { var m = Ghe(t, g.v, r, n); - l[g.v] = m, yt(m, "barycenter") && sNt(g, m); + l[g.v] = m, yt(m, "barycenter") && aNt(g, m); } }); - var h = JDt(u, r); - iNt(h, l); - var f = rNt(h, n); + var h = eNt(u, r); + sNt(h, l); + var f = nNt(h, n); if (a && (f.vs = Yi([a, f.vs, o]), t.predecessors(a).length)) { var d = t.node(t.predecessors(a)[0]), p = t.node(t.predecessors(o)[0]); yt(f, "barycenter") || (f.barycenter = 0, f.weight = 0), f.barycenter = (f.barycenter * f.weight + d.order + p.order) / (f.weight + 2), f.weight += 2; } return f; } -function iNt(t, e) { +function sNt(t, e) { $e(t, function(r) { r.vs = Yi( r.vs.map(function(n) { @@ -64121,31 +64192,31 @@ function iNt(t, e) { ); }); } -function sNt(t, e) { +function aNt(t, e) { qr(t.barycenter) ? (t.barycenter = e.barycenter, t.weight = e.weight) : (t.barycenter = (t.barycenter * t.weight + e.barycenter * e.weight) / (t.weight + e.weight), t.weight += e.weight); } -function aNt(t) { - var e = Phe(t), r = BY(t, h1(1, e + 1), "inEdges"), n = BY(t, h1(e - 1, -1, -1), "outEdges"), i = jDt(t); +function oNt(t) { + var e = Phe(t), r = BY(t, h1(1, e + 1), "inEdges"), n = BY(t, h1(e - 1, -1, -1), "outEdges"), i = KDt(t); FY(t, i); for (var s = Number.POSITIVE_INFINITY, a, o = 0, l = 0; l < 4; ++o, ++l) { - oNt(o % 2 ? r : n, o % 4 >= 2), i = nC(t); - var u = XDt(t, i); - u < s && (l = 0, a = fRt(i), s = u); + lNt(o % 2 ? r : n, o % 4 >= 2), i = nC(t); + var u = ZDt(t, i); + u < s && (l = 0, a = dRt(i), s = u); } FY(t, a); } function BY(t, e, r) { return gt(e, function(n) { - return GDt(t, n, r); + return HDt(t, n, r); }); } -function oNt(t, e) { +function lNt(t, e) { var r = new Bi(); $e(t, function(n) { var i = n.graph().root, s = Ghe(n, i, r, e); $e(s.vs, function(a, o) { n.node(a).order = o; - }), WDt(n, r, s.vs); + }), GDt(n, r, s.vs); }); } function FY(t, e) { @@ -64155,10 +64226,10 @@ function FY(t, e) { }); }); } -function lNt(t) { - var e = uNt(t); +function cNt(t) { + var e = hNt(t); $e(t.graph().dummyChains, function(r) { - for (var n = t.node(r), i = n.edgeObj, s = cNt(t, e, i.v, i.w), a = s.path, o = s.lca, l = 0, u = a[l], h = !0; r !== i.w; ) { + for (var n = t.node(r), i = n.edgeObj, s = uNt(t, e, i.v, i.w), a = s.path, o = s.lca, l = 0, u = a[l], h = !0; r !== i.w; ) { if (n = t.node(r), h) { for (; (u = a[l]) !== o && t.node(u).maxRank < n.rank; ) l++; @@ -64173,7 +64244,7 @@ function lNt(t) { } }); } -function cNt(t, e, r, n) { +function uNt(t, e, r, n) { var i = [], s = [], a = Math.min(e[r].low, e[n].low), o = Math.max(e[r].lim, e[n].lim), l, u; l = r; do @@ -64183,7 +64254,7 @@ function cNt(t, e, r, n) { s.push(l); return { path: i.concat(s.reverse()), lca: u }; } -function uNt(t) { +function hNt(t) { var e = {}, r = 0; function n(i) { var s = r; @@ -64191,12 +64262,12 @@ function uNt(t) { } return $e(t.children(), n), e; } -function hNt(t, e) { +function fNt(t, e) { var r = {}; function n(i, s) { var a = 0, o = 0, l = i.length, u = $c(s); return $e(s, function(h, f) { - var d = dNt(t, h), p = d ? t.node(d).order : l; + var d = pNt(t, h), p = d ? t.node(d).order : l; (d || h === u) && ($e(s.slice(o, f + 1), function(g) { $e(t.predecessors(g), function(m) { var v = t.node(m), y = v.order; @@ -64207,7 +64278,7 @@ function hNt(t, e) { } return gi(e, n), r; } -function fNt(t, e) { +function dNt(t, e) { var r = {}; function n(s, a, o, l, u) { var h; @@ -64230,7 +64301,7 @@ function fNt(t, e) { } return gi(e, i), r; } -function dNt(t, e) { +function pNt(t, e) { if (t.node(e).dummy) return Xu(t.predecessors(e), function(r) { return t.node(r).dummy; @@ -64244,14 +64315,14 @@ function Hhe(t, e, r) { var i = t[e]; i || (t[e] = i = {}), i[r] = !0; } -function pNt(t, e, r) { +function gNt(t, e, r) { if (e > r) { var n = e; e = r, r = n; } return yt(t[e], r); } -function gNt(t, e, r, n) { +function mNt(t, e, r, n) { var i = {}, s = {}, a = {}; return $e(e, function(o) { $e(o, function(l, u) { @@ -64267,14 +64338,14 @@ function gNt(t, e, r, n) { }); for (var f = (h.length - 1) / 2, d = Math.floor(f), p = Math.ceil(f); d <= p; ++d) { var g = h[d]; - s[u] === u && l < a[g] && !pNt(r, u, g) && (s[g] = u, s[u] = i[u] = i[g], l = a[g]); + s[u] === u && l < a[g] && !gNt(r, u, g) && (s[g] = u, s[u] = i[u] = i[g], l = a[g]); } } }); }), { root: i, align: s }; } -function mNt(t, e, r, n, i) { - var s = {}, a = vNt(t, e, r, i), o = i ? "borderLeft" : "borderRight"; +function vNt(t, e, r, n, i) { + var s = {}, a = yNt(t, e, r, i), o = i ? "borderLeft" : "borderRight"; function l(f, d) { for (var p = a.nodes(), g = p.pop(), m = {}; g; ) m[g] ? f(g) : (m[g] = !0, p.push(g), p = p.concat(d(g))), g = p.pop(); @@ -64294,8 +64365,8 @@ function mNt(t, e, r, n, i) { s[f] = s[r[f]]; }), s; } -function vNt(t, e, r, n) { - var i = new Bi(), s = t.graph(), a = ONt(s.nodesep, s.edgesep, n); +function yNt(t, e, r, n) { + var i = new Bi(), s = t.graph(), a = kNt(s.nodesep, s.edgesep, n); return $e(e, function(o) { var l; $e(o, function(u) { @@ -64308,16 +64379,16 @@ function vNt(t, e, r, n) { }); }), i; } -function yNt(t, e) { +function bNt(t, e) { return HN(Kr(e), function(r) { var n = Number.NEGATIVE_INFINITY, i = Number.POSITIVE_INFINITY; - return gMt(r, function(s, a) { - var o = kNt(t, a) / 2; + return mMt(r, function(s, a) { + var o = SNt(t, a) / 2; n = Math.max(s + o, n), i = Math.min(s - o, i); }), n - i; }); } -function bNt(t, e) { +function xNt(t, e) { var r = Kr(e), n = u1(r), i = g0(r); $e(["u", "d"], function(s) { $e(["l", "r"], function(a) { @@ -64331,7 +64402,7 @@ function bNt(t, e) { }); }); } -function xNt(t, e) { +function wNt(t, e) { return tC(t.ul, function(r, n) { if (e) return t[e.toLowerCase()][n]; @@ -64339,23 +64410,23 @@ function xNt(t, e) { return (i[1] + i[2]) / 2; }); } -function wNt(t) { - var e = nC(t), r = B3(hNt(t, e), fNt(t, e)), n = {}, i; +function ONt(t) { + var e = nC(t), r = B3(fNt(t, e), dNt(t, e)), n = {}, i; $e(["u", "d"], function(a) { i = a === "u" ? e : Kr(e).reverse(), $e(["l", "r"], function(o) { o === "r" && (i = gt(i, function(f) { return Kr(f).reverse(); })); - var l = (a === "u" ? t.predecessors : t.successors).bind(t), u = gNt(t, i, r, l), h = mNt(t, i, u.root, u.align, o === "r"); + var l = (a === "u" ? t.predecessors : t.successors).bind(t), u = mNt(t, i, r, l), h = vNt(t, i, u.root, u.align, o === "r"); o === "r" && (h = tC(h, function(f) { return -f; })), n[a + o] = h; }); }); - var s = yNt(t, n); - return bNt(n, s), xNt(n, t.graph().align); + var s = bNt(t, n); + return xNt(n, s), wNt(n, t.graph().align); } -function ONt(t, e, r) { +function kNt(t, e, r) { return function(n, i, s) { var a = n.node(i), o = n.node(s), l = 0, u; if (l += a.width / 2, yt(a, "labelpos")) @@ -64379,15 +64450,15 @@ function ONt(t, e, r) { return u && (l += r ? u : -u), u = 0, l; }; } -function kNt(t, e) { +function SNt(t, e) { return t.node(e).width; } -function SNt(t) { - t = Ihe(t), TNt(t), mMt(wNt(t), function(e, r) { +function TNt(t) { + t = Ihe(t), CNt(t), vMt(ONt(t), function(e, r) { t.node(r).x = e; }); } -function TNt(t) { +function CNt(t) { var e = nC(t), r = t.graph().ranksep, n = 0; $e(e, function(i) { var s = g0( @@ -64401,76 +64472,76 @@ function TNt(t) { }); } function sm(t, e) { - var r = e && e.debugTiming ? xDt : wDt; + var r = e && e.debugTiming ? wDt : ODt; r("layout", function() { var n = r(" buildLayoutGraph", function() { - return PNt(t); + return $Nt(t); }); r(" runLayout", function() { - CNt(n, r); + ENt(n, r); }), r(" updateInputGraph", function() { - ENt(t, n); + _Nt(t, n); }); }); } -function CNt(t, e) { +function ENt(t, e) { e(" makeSpaceForEdgeLabels", function() { - $Nt(t); + BNt(t); }), e(" removeSelfEdges", function() { - WNt(t); + GNt(t); }), e(" acyclic", function() { - dDt(t); + pDt(t); }), e(" nestingGraph.run", function() { - UDt(t); + qDt(t); }), e(" rank", function() { - FDt(Ihe(t)); + zDt(Ihe(t)); }), e(" injectEdgeLabelProxies", function() { - BNt(t); + FNt(t); }), e(" removeEmptyRanks", function() { - yDt(t); + bDt(t); }), e(" nestingGraph.cleanup", function() { - YDt(t); + WDt(t); }), e(" normalizeRanks", function() { - vDt(t); + yDt(t); }), e(" assignRankMinMax", function() { - FNt(t); - }), e(" removeEdgeLabelProxies", function() { zNt(t); + }), e(" removeEdgeLabelProxies", function() { + VNt(t); }), e(" normalize.run", function() { - EDt(t); + _Dt(t); }), e(" parentDummyChains", function() { - lNt(t); + cNt(t); }), e(" addBorderSegments", function() { - ODt(t); + kDt(t); }), e(" order", function() { - aNt(t); + oNt(t); }), e(" insertSelfEdges", function() { - GNt(t); + HNt(t); }), e(" adjustCoordinateSystem", function() { - kDt(t); + SDt(t); }), e(" position", function() { - SNt(t); + TNt(t); }), e(" positionSelfEdges", function() { - HNt(t); + XNt(t); }), e(" removeBorderNodes", function() { - YNt(t); + WNt(t); }), e(" normalize.undo", function() { - ADt(t); + LDt(t); }), e(" fixupEdgeLabelCoords", function() { - qNt(t); + QNt(t); }), e(" undoCoordinateSystem", function() { - SDt(t); + TDt(t); }), e(" translateGraph", function() { - VNt(t); - }), e(" assignNodeIntersects", function() { UNt(t); + }), e(" assignNodeIntersects", function() { + qNt(t); }), e(" reversePoints", function() { - QNt(t); + YNt(t); }), e(" acyclic.undo", function() { - gDt(t); + mDt(t); }); } -function ENt(t, e) { +function _Nt(t, e) { $e(t.nodes(), function(r) { var n = t.node(r), i = e.node(r); n && (n.x = i.x, n.y = i.y, e.children(r).length && (n.width = i.width, n.height = i.height)); @@ -64479,37 +64550,37 @@ function ENt(t, e) { n.points = i.points, yt(i, "x") && (n.x = i.x, n.y = i.y); }), t.graph().width = e.graph().width, t.graph().height = e.graph().height; } -var _Nt = ["nodesep", "edgesep", "ranksep", "marginx", "marginy"], ANt = { ranksep: 50, edgesep: 20, nodesep: 50, rankdir: "tb" }, LNt = ["acyclicer", "ranker", "rankdir", "align"], RNt = ["width", "height"], MNt = { width: 0, height: 0 }, DNt = ["minlen", "weight", "width", "height", "labeloffset"], NNt = { +var ANt = ["nodesep", "edgesep", "ranksep", "marginx", "marginy"], LNt = { ranksep: 50, edgesep: 20, nodesep: 50, rankdir: "tb" }, RNt = ["acyclicer", "ranker", "rankdir", "align"], MNt = ["width", "height"], DNt = { width: 0, height: 0 }, NNt = ["minlen", "weight", "width", "height", "labeloffset"], INt = { minlen: 1, weight: 1, width: 0, height: 0, labeloffset: 10, labelpos: "r" -}, INt = ["labelpos"]; -function PNt(t) { +}, PNt = ["labelpos"]; +function $Nt(t) { var e = new Bi({ multigraph: !0, compound: !0 }), r = A_(t.graph()); return e.setGraph( - B3({}, ANt, __(r, _Nt), ck(r, LNt)) + B3({}, LNt, __(r, ANt), ck(r, RNt)) ), $e(t.nodes(), function(n) { var i = A_(t.node(n)); - e.setNode(n, JT(__(i, RNt), MNt)), e.setParent(n, t.parent(n)); + e.setNode(n, JT(__(i, MNt), DNt)), e.setParent(n, t.parent(n)); }), $e(t.edges(), function(n) { var i = A_(t.edge(n)); e.setEdge( n, - B3({}, NNt, __(i, DNt), ck(i, INt)) + B3({}, INt, __(i, NNt), ck(i, PNt)) ); }), e; } -function $Nt(t) { +function BNt(t) { var e = t.graph(); e.ranksep /= 2, $e(t.edges(), function(r) { var n = t.edge(r); n.minlen *= 2, n.labelpos.toLowerCase() !== "c" && (e.rankdir === "TB" || e.rankdir === "BT" ? n.width += n.labeloffset : n.height += n.labeloffset); }); } -function BNt(t) { +function FNt(t) { $e(t.edges(), function(e) { var r = t.edge(e); if (r.width && r.height) { @@ -64518,20 +64589,20 @@ function BNt(t) { } }); } -function FNt(t) { +function zNt(t) { var e = 0; $e(t.nodes(), function(r) { var n = t.node(r); n.borderTop && (n.minRank = t.node(n.borderTop).rank, n.maxRank = t.node(n.borderBottom).rank, e = g0(e, n.maxRank)); }), t.graph().maxRank = e; } -function zNt(t) { +function VNt(t) { $e(t.nodes(), function(e) { var r = t.node(e); r.dummy === "edge-proxy" && (t.edge(r.e).labelRank = r.rank, t.removeNode(e)); }); } -function VNt(t) { +function UNt(t) { var e = Number.POSITIVE_INFINITY, r = 0, n = Number.POSITIVE_INFINITY, i = 0, s = t.graph(), a = s.marginx || 0, o = s.marginy || 0; function l(u) { var h = u.x, f = u.y, d = u.width, p = u.height; @@ -64552,13 +64623,13 @@ function VNt(t) { }), yt(h, "x") && (h.x -= e), yt(h, "y") && (h.y -= n); }), s.width = r - e + a, s.height = i - n + o; } -function UNt(t) { +function qNt(t) { $e(t.edges(), function(e) { var r = t.edge(e), n = t.node(e.v), i = t.node(e.w), s, a; r.points ? (s = r.points[0], a = r.points[r.points.length - 1]) : (r.points = [], s = i, a = n), r.points.unshift(RY(n, s)), r.points.push(RY(i, a)); }); } -function qNt(t) { +function QNt(t) { $e(t.edges(), function(e) { var r = t.edge(e); if (yt(r, "x")) @@ -64572,13 +64643,13 @@ function qNt(t) { } }); } -function QNt(t) { +function YNt(t) { $e(t.edges(), function(e) { var r = t.edge(e); r.reversed && r.points.reverse(); }); } -function YNt(t) { +function WNt(t) { $e(t.nodes(), function(e) { if (t.children(e).length) { var r = t.node(e), n = t.node(r.borderTop), i = t.node(r.borderBottom), s = t.node($c(r.borderLeft)), a = t.node($c(r.borderRight)); @@ -64588,7 +64659,7 @@ function YNt(t) { t.node(e).dummy === "border" && t.removeNode(e); }); } -function WNt(t) { +function GNt(t) { $e(t.edges(), function(e) { if (e.v === e.w) { var r = t.node(e.v); @@ -64596,7 +64667,7 @@ function WNt(t) { } }); } -function GNt(t) { +function HNt(t) { var e = nC(t); $e(e, function(r) { var n = 0; @@ -64620,7 +64691,7 @@ function GNt(t) { }); }); } -function HNt(t) { +function XNt(t) { $e(t.nodes(), function(e) { var r = t.node(e); if (r.dummy === "selfedge") { @@ -64651,29 +64722,29 @@ function di(t) { multigraph: t.isMultigraph(), compound: t.isCompound() }, - nodes: XNt(t), - edges: ZNt(t) + nodes: ZNt(t), + edges: jNt(t) }; return qr(t.graph()) || (e.value = Ni(t.graph())), e; } -function XNt(t) { +function ZNt(t) { return gt(t.nodes(), function(e) { var r = t.node(e), n = t.parent(e), i = { v: e }; return qr(r) || (i.value = r), qr(n) || (i.parent = n), i; }); } -function ZNt(t) { +function jNt(t) { return gt(t.edges(), function(e) { var r = t.edge(e), n = { v: e.v, w: e.w }; return qr(e.name) || (n.name = e.name), qr(r) || (n.value = r), n; }); } -var br = /* @__PURE__ */ new Map(), Id = /* @__PURE__ */ new Map(), Xhe = /* @__PURE__ */ new Map(), jNt = /* @__PURE__ */ x(() => { +var br = /* @__PURE__ */ new Map(), Id = /* @__PURE__ */ new Map(), Xhe = /* @__PURE__ */ new Map(), KNt = /* @__PURE__ */ x(() => { Id.clear(), Xhe.clear(), br.clear(); }, "clear"), uk = /* @__PURE__ */ x((t, e) => { const r = Id.get(e) || []; return X.trace("In isDescendant", e, " ", t, " = ", r.includes(t)), r.includes(t); -}, "isDescendant"), KNt = /* @__PURE__ */ x((t, e) => { +}, "isDescendant"), JNt = /* @__PURE__ */ x((t, e) => { const r = Id.get(e) || []; return X.info("Descendants of ", e, " is ", r), X.info("Edge is ", t), t.v === e || t.w === e ? !1 : r ? r.includes(t.v) || uk(t.v, e) || uk(t.w, e) || r.includes(t.w) : (X.debug("Tilt, ", e, ",not in descendants"), !1); }, "edgeInCluster"), Zhe = /* @__PURE__ */ x((t, e, r, n) => { @@ -64706,7 +64777,7 @@ var br = /* @__PURE__ */ new Map(), Id = /* @__PURE__ */ new Map(), Xhe = /* @__ const u = e.edge(l.v, l.w, l.name); X.info("Edge data", u, n); try { - KNt(l, n) ? (X.info("Copying as ", l.v, l.w, u, l.name), r.setEdge(l.v, l.w, u, l.name), X.info("newGraph edges ", r.edges(), r.edge(r.edges()[0]))) : X.info( + JNt(l, n) ? (X.info("Copying as ", l.v, l.w, u, l.name), r.setEdge(l.v, l.w, u, l.name), X.info("newGraph edges ", r.edges(), r.edge(r.edges()[0]))) : X.info( "Skipping copy of edge ", l.v, "-->", @@ -64729,7 +64800,7 @@ var br = /* @__PURE__ */ new Map(), Id = /* @__PURE__ */ new Map(), Xhe = /* @__ for (const i of r) Xhe.set(i, t), n = [...n, ...jhe(i, e)]; return n; -}, "extractDescendants"), JNt = /* @__PURE__ */ x((t, e, r) => { +}, "extractDescendants"), eIt = /* @__PURE__ */ x((t, e, r) => { const n = t.edges().filter((l) => l.v === e || l.w === e), i = t.edges().filter((l) => l.v === r || l.w === r), s = n.map((l) => ({ v: l.v === e ? r : l.v, w: l.w === e ? e : l.w })), a = i.map((l) => ({ v: l.v, w: l.w })); return s.filter((l) => a.some((u) => l.v === u.v && l.w === u.w)); }, "findCommonEdges"), E2 = /* @__PURE__ */ x((t, e, r) => { @@ -64738,7 +64809,7 @@ var br = /* @__PURE__ */ new Map(), Id = /* @__PURE__ */ new Map(), Xhe = /* @__ return t; let i; for (const s of n) { - const a = E2(s, e, r), o = JNt(e, r, a); + const a = E2(s, e, r), o = eIt(e, r, a); if (a) if (o.length > 0) i = a; @@ -64746,7 +64817,7 @@ var br = /* @__PURE__ */ new Map(), Id = /* @__PURE__ */ new Map(), Xhe = /* @__ return a; } return i; -}, "findNonClusterChild"), zY = /* @__PURE__ */ x((t) => !br.has(t) || !br.get(t).externalConnections ? t : br.has(t) ? br.get(t).id : t, "getAnchorId"), eIt = /* @__PURE__ */ x((t, e) => { +}, "findNonClusterChild"), zY = /* @__PURE__ */ x((t) => !br.has(t) || !br.get(t).externalConnections ? t : br.has(t) ? br.get(t).id : t, "getAnchorId"), tIt = /* @__PURE__ */ x((t, e) => { if (!t || e > 10) { X.debug("Opting out, no graph "); return; @@ -64878,7 +64949,7 @@ var br = /* @__PURE__ */ new Map(), Id = /* @__PURE__ */ new Map(), Xhe = /* @__ const i = t.children(n), s = Jhe(t, i); r = [...r, ...s]; }), r; -}, "sorter"), tIt = /* @__PURE__ */ x((t) => Jhe(t, t.children()), "sortNodesByHierarchy"), efe = /* @__PURE__ */ x(async (t, e, r, n, i, s) => { +}, "sorter"), rIt = /* @__PURE__ */ x((t) => Jhe(t, t.children()), "sortNodesByHierarchy"), efe = /* @__PURE__ */ x(async (t, e, r, n, i, s) => { X.warn("Graph in recursive render:XAX", di(e), i); const a = e.graph().rankdir; X.trace("Dir in recursive render - dir:", a); @@ -64955,7 +65026,7 @@ Parent cluster`, }, "processEdges"))(), X.info("Graph before layout:", JSON.stringify(di(e))), X.info("############################################# XXX"), X.info("### Layout ### XXX"), X.info("############################################# XXX"), sm(e), X.info("Graph after layout:", JSON.stringify(di(e))); let p = 0, { subGraphTitleTotalMargin: g } = F0(s); return await Promise.all( - tIt(e).map(async function(m) { + rIt(e).map(async function(m) { var y; const v = e.node(m); if (X.info( @@ -65020,7 +65091,7 @@ Parent cluster`, const v = e.node(m); X.info(m, v.type, v.diff), v.isGroup && (p = v.diff); }), X.warn("Returning from recursive render XAX", o, p), { elem: o, diff: p }; -}, "recursiveRender"), rIt = /* @__PURE__ */ x(async (t, e) => { +}, "recursiveRender"), nIt = /* @__PURE__ */ x(async (t, e) => { var s, a, o, l, u, h; const r = new Bi({ multigraph: !0, @@ -65034,7 +65105,7 @@ Parent cluster`, }).setDefaultEdgeLabel(function() { return {}; }), n = e.select("g"); - hoe(n, t.markers, t.type, t.diagramId), tTt(), iSt(), tSt(), jNt(), t.nodes.forEach((f) => { + hoe(n, t.markers, t.type, t.diagramId), tTt(), iSt(), tSt(), KNt(), t.nodes.forEach((f) => { r.setNode(f.id, { ...f }), f.parentId && r.setParent(f.id, f.parentId); }), X.debug("Edges:", t.edges), t.edges.forEach((f) => { if (f.start === f.end) { @@ -65066,7 +65137,7 @@ Parent cluster`, v.label = "", v.arrowTypeEnd = "none", v.id = d + "-cyclic-special-1", y.arrowTypeEnd = "none", y.id = d + "-cyclic-special-mid", b.label = "", m.isGroup && (v.fromCluster = d, b.toCluster = d), b.id = d + "-cyclic-special-2", r.setEdge(d, p, v, d + "-cyclic-special-0"), r.setEdge(p, g, y, d + "-cyclic-special-1"), r.setEdge(g, d, b, d + "-cyc { const r = t.append("rect"); @@ -65098,17 +65169,17 @@ var iC = /* @__PURE__ */ x((t, e) => { class: "rect" }; iC(t, r).lower(); -}, "drawBackgroundRect"), iIt = /* @__PURE__ */ x((t, e) => { +}, "drawBackgroundRect"), sIt = /* @__PURE__ */ x((t, e) => { const r = e.text.replace(G1, " "), n = t.append("text"); n.attr("x", e.x), n.attr("y", e.y), n.attr("class", "legend"), n.style("text-anchor", e.anchor), e.class && n.attr("class", e.class); const i = n.append("tspan"); return i.attr("x", e.x + e.textMargin * 2), i.text(r), n; -}, "drawText"), sIt = /* @__PURE__ */ x((t, e, r, n) => { +}, "drawText"), aIt = /* @__PURE__ */ x((t, e, r, n) => { const i = t.append("image"); i.attr("x", e), i.attr("y", r); const s = zf(n); i.attr("xlink:href", s); -}, "drawImage"), aIt = /* @__PURE__ */ x((t, e, r, n) => { +}, "drawImage"), oIt = /* @__PURE__ */ x((t, e, r, n) => { const i = t.append("use"); i.attr("x", e), i.attr("y", r); const s = zf(n); @@ -65744,7 +65815,7 @@ Expecting ` + st.join(", ") + ", got '" + (this.terminals_[ft] || ft) + "'" : Ze return x(Ye, "Parser"), Ye.prototype = Ue, Ue.Parser = Ye, new Ye(); }(); hk.parser = hk; -var oIt = hk, Fl = [], ef = [""], aa = "global", Cl = "", Bc = [ +var lIt = hk, Fl = [], ef = [""], aa = "global", Cl = "", Bc = [ { alias: "global", label: { text: "global" }, @@ -65753,11 +65824,11 @@ var oIt = hk, Fl = [], ef = [""], aa = "global", Cl = "", Bc = [ link: null, parentBoundary: "" } -], _2 = [], rI = "", nI = !1, fk = 4, dk = 2, rfe, lIt = /* @__PURE__ */ x(function() { +], _2 = [], rI = "", nI = !1, fk = 4, dk = 2, rfe, cIt = /* @__PURE__ */ x(function() { return rfe; -}, "getC4Type"), cIt = /* @__PURE__ */ x(function(t) { +}, "getC4Type"), uIt = /* @__PURE__ */ x(function(t) { rfe = ni(t, be()); -}, "setC4Type"), uIt = /* @__PURE__ */ x(function(t, e, r, n, i, s, a, o, l) { +}, "setC4Type"), hIt = /* @__PURE__ */ x(function(t, e, r, n, i, s, a, o, l) { if (t == null || e === void 0 || e === null || r === void 0 || r === null || n === void 0 || n === null) return; let u = {}; @@ -65792,7 +65863,7 @@ var oIt = hk, Fl = [], ef = [""], aa = "global", Cl = "", Bc = [ } else u.link = l; u.wrap = Uf(); -}, "addRel"), hIt = /* @__PURE__ */ x(function(t, e, r, n, i, s, a) { +}, "addRel"), fIt = /* @__PURE__ */ x(function(t, e, r, n, i, s, a) { if (e === null || r === null) return; let o = {}; @@ -65820,7 +65891,7 @@ var oIt = hk, Fl = [], ef = [""], aa = "global", Cl = "", Bc = [ } else o.link = a; o.typeC4Shape = { text: t }, o.parentBoundary = aa, o.wrap = Uf(); -}, "addPersonOrSystem"), fIt = /* @__PURE__ */ x(function(t, e, r, n, i, s, a, o) { +}, "addPersonOrSystem"), dIt = /* @__PURE__ */ x(function(t, e, r, n, i, s, a, o) { if (e === null || r === null) return; let l = {}; @@ -65855,7 +65926,7 @@ var oIt = hk, Fl = [], ef = [""], aa = "global", Cl = "", Bc = [ } else l.link = o; l.wrap = Uf(), l.typeC4Shape = { text: t }, l.parentBoundary = aa; -}, "addContainer"), dIt = /* @__PURE__ */ x(function(t, e, r, n, i, s, a, o) { +}, "addContainer"), pIt = /* @__PURE__ */ x(function(t, e, r, n, i, s, a, o) { if (e === null || r === null) return; let l = {}; @@ -65890,7 +65961,7 @@ var oIt = hk, Fl = [], ef = [""], aa = "global", Cl = "", Bc = [ } else l.link = o; l.wrap = Uf(), l.typeC4Shape = { text: t }, l.parentBoundary = aa; -}, "addComponent"), pIt = /* @__PURE__ */ x(function(t, e, r, n, i) { +}, "addComponent"), gIt = /* @__PURE__ */ x(function(t, e, r, n, i) { if (t === null || e === null) return; let s = {}; @@ -65913,7 +65984,7 @@ var oIt = hk, Fl = [], ef = [""], aa = "global", Cl = "", Bc = [ } else s.link = i; s.parentBoundary = aa, s.wrap = Uf(), Cl = aa, aa = t, ef.push(Cl); -}, "addPersonOrSystemBoundary"), gIt = /* @__PURE__ */ x(function(t, e, r, n, i) { +}, "addPersonOrSystemBoundary"), mIt = /* @__PURE__ */ x(function(t, e, r, n, i) { if (t === null || e === null) return; let s = {}; @@ -65936,7 +66007,7 @@ var oIt = hk, Fl = [], ef = [""], aa = "global", Cl = "", Bc = [ } else s.link = i; s.parentBoundary = aa, s.wrap = Uf(), Cl = aa, aa = t, ef.push(Cl); -}, "addContainerBoundary"), mIt = /* @__PURE__ */ x(function(t, e, r, n, i, s, a, o) { +}, "addContainerBoundary"), vIt = /* @__PURE__ */ x(function(t, e, r, n, i, s, a, o) { if (e === null || r === null) return; let l = {}; @@ -65966,9 +66037,9 @@ var oIt = hk, Fl = [], ef = [""], aa = "global", Cl = "", Bc = [ } else l.link = o; l.nodeType = t, l.parentBoundary = aa, l.wrap = Uf(), Cl = aa, aa = e, ef.push(Cl); -}, "addDeploymentNode"), vIt = /* @__PURE__ */ x(function() { +}, "addDeploymentNode"), yIt = /* @__PURE__ */ x(function() { aa = Cl, ef.pop(), Cl = ef.pop(), ef.push(Cl); -}, "popBoundaryParseStack"), yIt = /* @__PURE__ */ x(function(t, e, r, n, i, s, a, o, l, u, h) { +}, "popBoundaryParseStack"), bIt = /* @__PURE__ */ x(function(t, e, r, n, i, s, a, o, l, u, h) { let f = Fl.find((d) => d.alias === e); if (!(f === void 0 && (f = Bc.find((d) => d.alias === e), f === void 0))) { if (r != null) @@ -66026,7 +66097,7 @@ var oIt = hk, Fl = [], ef = [""], aa = "global", Cl = "", Bc = [ } else f.legendSprite = h; } -}, "updateElStyle"), bIt = /* @__PURE__ */ x(function(t, e, r, n, i, s, a) { +}, "updateElStyle"), xIt = /* @__PURE__ */ x(function(t, e, r, n, i, s, a) { const o = _2.find((l) => l.from === e && l.to === r); if (o !== void 0) { if (n != null) @@ -66054,7 +66125,7 @@ var oIt = hk, Fl = [], ef = [""], aa = "global", Cl = "", Bc = [ } else o.offsetY = parseInt(a); } -}, "updateRelStyle"), xIt = /* @__PURE__ */ x(function(t, e, r) { +}, "updateRelStyle"), wIt = /* @__PURE__ */ x(function(t, e, r) { let n = fk, i = dk; if (typeof e == "object") { const s = Object.values(e)[0]; @@ -66067,31 +66138,31 @@ var oIt = hk, Fl = [], ef = [""], aa = "global", Cl = "", Bc = [ } else i = parseInt(r); n >= 1 && (fk = n), i >= 1 && (dk = i); -}, "updateLayoutConfig"), wIt = /* @__PURE__ */ x(function() { +}, "updateLayoutConfig"), OIt = /* @__PURE__ */ x(function() { return fk; -}, "getC4ShapeInRow"), OIt = /* @__PURE__ */ x(function() { +}, "getC4ShapeInRow"), kIt = /* @__PURE__ */ x(function() { return dk; -}, "getC4BoundaryInRow"), kIt = /* @__PURE__ */ x(function() { +}, "getC4BoundaryInRow"), SIt = /* @__PURE__ */ x(function() { return aa; -}, "getCurrentBoundaryParse"), SIt = /* @__PURE__ */ x(function() { +}, "getCurrentBoundaryParse"), TIt = /* @__PURE__ */ x(function() { return Cl; }, "getParentBoundaryParse"), nfe = /* @__PURE__ */ x(function(t) { return t == null ? Fl : Fl.filter((e) => e.parentBoundary === t); -}, "getC4ShapeArray"), TIt = /* @__PURE__ */ x(function(t) { +}, "getC4ShapeArray"), CIt = /* @__PURE__ */ x(function(t) { return Fl.find((e) => e.alias === t); -}, "getC4Shape"), CIt = /* @__PURE__ */ x(function(t) { +}, "getC4Shape"), EIt = /* @__PURE__ */ x(function(t) { return Object.keys(nfe(t)); }, "getC4ShapeKeys"), ife = /* @__PURE__ */ x(function(t) { return t == null ? Bc : Bc.filter((e) => e.parentBoundary === t); -}, "getBoundaries"), EIt = ife, _It = /* @__PURE__ */ x(function() { +}, "getBoundaries"), _It = ife, AIt = /* @__PURE__ */ x(function() { return _2; -}, "getRels"), AIt = /* @__PURE__ */ x(function() { +}, "getRels"), LIt = /* @__PURE__ */ x(function() { return rI; -}, "getTitle"), LIt = /* @__PURE__ */ x(function(t) { +}, "getTitle"), RIt = /* @__PURE__ */ x(function(t) { nI = t; }, "setWrap"), Uf = /* @__PURE__ */ x(function() { return nI; -}, "autoWrap"), RIt = /* @__PURE__ */ x(function() { +}, "autoWrap"), MIt = /* @__PURE__ */ x(function() { Fl = [], Bc = [ { alias: "global", @@ -66102,7 +66173,7 @@ var oIt = hk, Fl = [], ef = [""], aa = "global", Cl = "", Bc = [ parentBoundary: "" } ], Cl = "", aa = "global", ef = [""], _2 = [], ef = [""], rI = "", nI = !1, fk = 4, dk = 2; -}, "clear"), MIt = { +}, "clear"), DIt = { SOLID: 0, DOTTED: 1, NOTE: 2, @@ -66126,52 +66197,52 @@ var oIt = hk, Fl = [], ef = [""], aa = "global", Cl = "", Bc = [ RECT_END: 23, SOLID_POINT: 24, DOTTED_POINT: 25 -}, DIt = { +}, NIt = { FILLED: 0, OPEN: 1 -}, NIt = { +}, IIt = { LEFTOF: 0, RIGHTOF: 1, OVER: 2 -}, IIt = /* @__PURE__ */ x(function(t) { +}, PIt = /* @__PURE__ */ x(function(t) { rI = ni(t, be()); }, "setTitle"), RL = { - addPersonOrSystem: hIt, - addPersonOrSystemBoundary: pIt, - addContainer: fIt, - addContainerBoundary: gIt, - addComponent: dIt, - addDeploymentNode: mIt, - popBoundaryParseStack: vIt, - addRel: uIt, - updateElStyle: yIt, - updateRelStyle: bIt, - updateLayoutConfig: xIt, + addPersonOrSystem: fIt, + addPersonOrSystemBoundary: gIt, + addContainer: dIt, + addContainerBoundary: mIt, + addComponent: pIt, + addDeploymentNode: vIt, + popBoundaryParseStack: yIt, + addRel: hIt, + updateElStyle: bIt, + updateRelStyle: xIt, + updateLayoutConfig: wIt, autoWrap: Uf, - setWrap: LIt, + setWrap: RIt, getC4ShapeArray: nfe, - getC4Shape: TIt, - getC4ShapeKeys: CIt, + getC4Shape: CIt, + getC4ShapeKeys: EIt, getBoundaries: ife, - getBoundarys: EIt, - getCurrentBoundaryParse: kIt, - getParentBoundaryParse: SIt, - getRels: _It, - getTitle: AIt, - getC4Type: lIt, - getC4ShapeInRow: wIt, - getC4BoundaryInRow: OIt, + getBoundarys: _It, + getCurrentBoundaryParse: SIt, + getParentBoundaryParse: TIt, + getRels: AIt, + getTitle: LIt, + getC4Type: cIt, + getC4ShapeInRow: OIt, + getC4BoundaryInRow: kIt, setAccTitle: Zi, getAccTitle: vs, getAccDescription: bs, setAccDescription: ys, getConfig: /* @__PURE__ */ x(() => be().c4, "getConfig"), - clear: RIt, - LINETYPE: MIt, - ARROWTYPE: DIt, - PLACEMENT: NIt, - setTitle: IIt, - setC4Type: cIt + clear: MIt, + LINETYPE: DIt, + ARROWTYPE: NIt, + PLACEMENT: IIt, + setTitle: PIt, + setC4Type: uIt }, iI = /* @__PURE__ */ x(function(t, e) { return iC(t, e); }, "drawRect"), sfe = /* @__PURE__ */ x(function(t, e, r, n, i, s) { @@ -66179,7 +66250,7 @@ var oIt = hk, Fl = [], ef = [""], aa = "global", Cl = "", Bc = [ a.attr("width", e), a.attr("height", r), a.attr("x", n), a.attr("y", i); let o = s.startsWith("data:image/png;base64") ? s : zf(s); a.attr("xlink:href", o); -}, "drawImage"), PIt = /* @__PURE__ */ x((t, e, r) => { +}, "drawImage"), $It = /* @__PURE__ */ x((t, e, r) => { const n = t.append("g"); let i = 0; for (let s of e) { @@ -66218,7 +66289,7 @@ var oIt = hk, Fl = [], ef = [""], aa = "global", Cl = "", Bc = [ f )); } -}, "drawRels"), $It = /* @__PURE__ */ x(function(t, e, r) { +}, "drawRels"), BIt = /* @__PURE__ */ x(function(t, e, r) { const n = t.append("g"); let i = e.bgColor ? e.bgColor : "none", s = e.borderColor ? e.borderColor : "#444444", a = e.fontColor ? e.fontColor : "black", o = { "stroke-width": 1, "stroke-dasharray": "7.0,7.0" }; e.nodeType && (o = { "stroke-width": 1 }); @@ -66263,7 +66334,7 @@ var oIt = hk, Fl = [], ef = [""], aa = "global", Cl = "", Bc = [ { fill: "#444444" }, u )); -}, "drawBoundary"), BIt = /* @__PURE__ */ x(function(t, e, r) { +}, "drawBoundary"), FIt = /* @__PURE__ */ x(function(t, e, r) { var f; let n = e.bgColor ? e.bgColor : r[e.typeC4Shape.text + "_bg_color"], i = e.borderColor ? e.borderColor : r[e.typeC4Shape.text + "_border_color"], s = e.fontColor ? e.fontColor : "#FFFFFF", a = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAACD0lEQVR4Xu2YoU4EMRCGT+4j8Ai8AhaH4QHgAUjQuFMECUgMIUgwJAgMhgQsAYUiJCiQIBBY+EITsjfTdme6V24v4c8vyGbb+ZjOtN0bNcvjQXmkH83WvYBWto6PLm6v7p7uH1/w2fXD+PBycX1Pv2l3IdDm/vn7x+dXQiAubRzoURa7gRZWd0iGRIiJbOnhnfYBQZNJjNbuyY2eJG8fkDE3bbG4ep6MHUAsgYxmE3nVs6VsBWJSGccsOlFPmLIViMzLOB7pCVO2AtHJMohH7Fh6zqitQK7m0rJvAVYgGcEpe//PLdDz65sM4pF9N7ICcXDKIB5Nv6j7tD0NoSdM2QrU9Gg0ewE1LqBhHR3BBdvj2vapnidjHxD/q6vd7Pvhr31AwcY8eXMTXAKECZZJFXuEq27aLgQK5uLMohCenGGuGewOxSjBvYBqeG6B+Nqiblggdjnc+ZXDy+FNFpFzw76O3UBAROuXh6FoiAcf5g9eTvUgzy0nWg6I8cXHRUpg5bOVBCo+KDpFajOf23GgPme7RSQ+lacIENUgJ6gg1k6HjgOlqnLqip4tEuhv0hNEMXUD0clyXE3p6pZA0S2nnvTlXwLJEZWlb7cTQH1+USgTN4VhAenm/wea1OCAOmqo6fE1WCb9WSKBah+rbUWPWAmE2Rvk0ApiB45eOyNAzU8xcTvj8KvkKEoOaIYeHNA3ZuygAvFMUO0AAAAASUVORK5CYII="; switch (e.typeC4Shape.text) { @@ -66317,7 +66388,7 @@ var oIt = hk, Fl = [], ef = [""], aa = "global", Cl = "", Bc = [ ); break; } - let u = GIt(r, e.typeC4Shape.text); + let u = HIt(r, e.typeC4Shape.text); switch (o.append("text").attr("fill", s).attr("font-family", u.fontFamily).attr("font-size", u.fontSize - 2).attr("font-style", "italic").attr("lengthAdjust", "spacing").attr("textLength", e.typeC4Shape.width).attr("x", e.x + e.width / 2 - e.typeC4Shape.width / 2).attr("y", e.y + e.typeC4Shape.Y).text("<<" + e.typeC4Shape.text + ">>"), e.typeC4Shape.text) { case "person": case "external_person": @@ -66369,33 +66440,33 @@ var oIt = hk, Fl = [], ef = [""], aa = "global", Cl = "", Bc = [ { fill: s }, h )), e.height; -}, "drawC4Shape"), FIt = /* @__PURE__ */ x(function(t) { +}, "drawC4Shape"), zIt = /* @__PURE__ */ x(function(t) { t.append("defs").append("symbol").attr("id", "database").attr("fill-rule", "evenodd").attr("clip-rule", "evenodd").append("path").attr("transform", "scale(.5)").attr( "d", "M12.258.001l.256.004.255.005.253.008.251.01.249.012.247.015.246.016.242.019.241.02.239.023.236.024.233.027.231.028.229.031.225.032.223.034.22.036.217.038.214.04.211.041.208.043.205.045.201.046.198.048.194.05.191.051.187.053.183.054.18.056.175.057.172.059.168.06.163.061.16.063.155.064.15.066.074.033.073.033.071.034.07.034.069.035.068.035.067.035.066.035.064.036.064.036.062.036.06.036.06.037.058.037.058.037.055.038.055.038.053.038.052.038.051.039.05.039.048.039.047.039.045.04.044.04.043.04.041.04.04.041.039.041.037.041.036.041.034.041.033.042.032.042.03.042.029.042.027.042.026.043.024.043.023.043.021.043.02.043.018.044.017.043.015.044.013.044.012.044.011.045.009.044.007.045.006.045.004.045.002.045.001.045v17l-.001.045-.002.045-.004.045-.006.045-.007.045-.009.044-.011.045-.012.044-.013.044-.015.044-.017.043-.018.044-.02.043-.021.043-.023.043-.024.043-.026.043-.027.042-.029.042-.03.042-.032.042-.033.042-.034.041-.036.041-.037.041-.039.041-.04.041-.041.04-.043.04-.044.04-.045.04-.047.039-.048.039-.05.039-.051.039-.052.038-.053.038-.055.038-.055.038-.058.037-.058.037-.06.037-.06.036-.062.036-.064.036-.064.036-.066.035-.067.035-.068.035-.069.035-.07.034-.071.034-.073.033-.074.033-.15.066-.155.064-.16.063-.163.061-.168.06-.172.059-.175.057-.18.056-.183.054-.187.053-.191.051-.194.05-.198.048-.201.046-.205.045-.208.043-.211.041-.214.04-.217.038-.22.036-.223.034-.225.032-.229.031-.231.028-.233.027-.236.024-.239.023-.241.02-.242.019-.246.016-.247.015-.249.012-.251.01-.253.008-.255.005-.256.004-.258.001-.258-.001-.256-.004-.255-.005-.253-.008-.251-.01-.249-.012-.247-.015-.245-.016-.243-.019-.241-.02-.238-.023-.236-.024-.234-.027-.231-.028-.228-.031-.226-.032-.223-.034-.22-.036-.217-.038-.214-.04-.211-.041-.208-.043-.204-.045-.201-.046-.198-.048-.195-.05-.19-.051-.187-.053-.184-.054-.179-.056-.176-.057-.172-.059-.167-.06-.164-.061-.159-.063-.155-.064-.151-.066-.074-.033-.072-.033-.072-.034-.07-.034-.069-.035-.068-.035-.067-.035-.066-.035-.064-.036-.063-.036-.062-.036-.061-.036-.06-.037-.058-.037-.057-.037-.056-.038-.055-.038-.053-.038-.052-.038-.051-.039-.049-.039-.049-.039-.046-.039-.046-.04-.044-.04-.043-.04-.041-.04-.04-.041-.039-.041-.037-.041-.036-.041-.034-.041-.033-.042-.032-.042-.03-.042-.029-.042-.027-.042-.026-.043-.024-.043-.023-.043-.021-.043-.02-.043-.018-.044-.017-.043-.015-.044-.013-.044-.012-.044-.011-.045-.009-.044-.007-.045-.006-.045-.004-.045-.002-.045-.001-.045v-17l.001-.045.002-.045.004-.045.006-.045.007-.045.009-.044.011-.045.012-.044.013-.044.015-.044.017-.043.018-.044.02-.043.021-.043.023-.043.024-.043.026-.043.027-.042.029-.042.03-.042.032-.042.033-.042.034-.041.036-.041.037-.041.039-.041.04-.041.041-.04.043-.04.044-.04.046-.04.046-.039.049-.039.049-.039.051-.039.052-.038.053-.038.055-.038.056-.038.057-.037.058-.037.06-.037.061-.036.062-.036.063-.036.064-.036.066-.035.067-.035.068-.035.069-.035.07-.034.072-.034.072-.033.074-.033.151-.066.155-.064.159-.063.164-.061.167-.06.172-.059.176-.057.179-.056.184-.054.187-.053.19-.051.195-.05.198-.048.201-.046.204-.045.208-.043.211-.041.214-.04.217-.038.22-.036.223-.034.226-.032.228-.031.231-.028.234-.027.236-.024.238-.023.241-.02.243-.019.245-.016.247-.015.249-.012.251-.01.253-.008.255-.005.256-.004.258-.001.258.001zm-9.258 20.499v.01l.001.021.003.021.004.022.005.021.006.022.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.023.018.024.019.024.021.024.022.025.023.024.024.025.052.049.056.05.061.051.066.051.07.051.075.051.079.052.084.052.088.052.092.052.097.052.102.051.105.052.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.048.144.049.147.047.152.047.155.047.16.045.163.045.167.043.171.043.176.041.178.041.183.039.187.039.19.037.194.035.197.035.202.033.204.031.209.03.212.029.216.027.219.025.222.024.226.021.23.02.233.018.236.016.24.015.243.012.246.01.249.008.253.005.256.004.259.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.021.224-.024.22-.026.216-.027.212-.028.21-.031.205-.031.202-.034.198-.034.194-.036.191-.037.187-.039.183-.04.179-.04.175-.042.172-.043.168-.044.163-.045.16-.046.155-.046.152-.047.148-.048.143-.049.139-.049.136-.05.131-.05.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.053.083-.051.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.05.023-.024.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.023.01-.022.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.127l-.077.055-.08.053-.083.054-.085.053-.087.052-.09.052-.093.051-.095.05-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.045-.118.044-.12.043-.122.042-.124.042-.126.041-.128.04-.13.04-.132.038-.134.038-.135.037-.138.037-.139.035-.142.035-.143.034-.144.033-.147.032-.148.031-.15.03-.151.03-.153.029-.154.027-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.01-.179.008-.179.008-.181.006-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.006-.179-.008-.179-.008-.178-.01-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.027-.153-.029-.151-.03-.15-.03-.148-.031-.146-.032-.145-.033-.143-.034-.141-.035-.14-.035-.137-.037-.136-.037-.134-.038-.132-.038-.13-.04-.128-.04-.126-.041-.124-.042-.122-.042-.12-.044-.117-.043-.116-.045-.113-.045-.112-.046-.109-.047-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.05-.093-.052-.09-.051-.087-.052-.085-.053-.083-.054-.08-.054-.077-.054v4.127zm0-5.654v.011l.001.021.003.021.004.021.005.022.006.022.007.022.009.022.01.022.011.023.012.023.013.023.015.024.016.023.017.024.018.024.019.024.021.024.022.024.023.025.024.024.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.052.11.051.114.051.119.052.123.05.127.051.131.05.135.049.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.044.171.042.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.022.23.02.233.018.236.016.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.012.241-.015.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.048.139-.05.136-.049.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.051.051-.049.023-.025.023-.024.021-.025.02-.024.019-.024.018-.024.017-.024.015-.023.014-.023.013-.024.012-.022.01-.023.01-.023.008-.022.006-.022.006-.022.004-.021.004-.022.001-.021.001-.021v-4.139l-.077.054-.08.054-.083.054-.085.052-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.044-.118.044-.12.044-.122.042-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.035-.143.033-.144.033-.147.033-.148.031-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.009-.179.009-.179.007-.181.007-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.007-.179-.007-.179-.009-.178-.009-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.031-.146-.033-.145-.033-.143-.033-.141-.035-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.04-.126-.041-.124-.042-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.051-.093-.051-.09-.051-.087-.053-.085-.052-.083-.054-.08-.054-.077-.054v4.139zm0-5.666v.011l.001.02.003.022.004.021.005.022.006.021.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.024.018.023.019.024.021.025.022.024.023.024.024.025.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.051.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.043.171.043.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.021.23.02.233.018.236.017.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.013.241-.014.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.049.139-.049.136-.049.131-.051.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.049.023-.025.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.022.01-.023.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.153l-.077.054-.08.054-.083.053-.085.053-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.048-.105.048-.106.048-.109.046-.111.046-.114.046-.115.044-.118.044-.12.043-.122.043-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.034-.143.034-.144.033-.147.032-.148.032-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.024-.161.024-.162.023-.163.023-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.01-.178.01-.179.009-.179.007-.181.006-.182.006-.182.004-.184.003-.184.001-.185.001-.185-.001-.184-.001-.184-.003-.182-.004-.182-.006-.181-.006-.179-.007-.179-.009-.178-.01-.176-.01-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.023-.162-.023-.161-.024-.159-.024-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.032-.146-.032-.145-.033-.143-.034-.141-.034-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.041-.126-.041-.124-.041-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.048-.105-.048-.102-.048-.1-.05-.097-.049-.095-.051-.093-.051-.09-.052-.087-.052-.085-.053-.083-.053-.08-.054-.077-.054v4.153zm8.74-8.179l-.257.004-.254.005-.25.008-.247.011-.244.012-.241.014-.237.016-.233.018-.231.021-.226.022-.224.023-.22.026-.216.027-.212.028-.21.031-.205.032-.202.033-.198.034-.194.036-.191.038-.187.038-.183.04-.179.041-.175.042-.172.043-.168.043-.163.045-.16.046-.155.046-.152.048-.148.048-.143.048-.139.049-.136.05-.131.05-.126.051-.123.051-.118.051-.114.052-.11.052-.106.052-.101.052-.096.052-.092.052-.088.052-.083.052-.079.052-.074.051-.07.052-.065.051-.06.05-.056.05-.051.05-.023.025-.023.024-.021.024-.02.025-.019.024-.018.024-.017.023-.015.024-.014.023-.013.023-.012.023-.01.023-.01.022-.008.022-.006.023-.006.021-.004.022-.004.021-.001.021-.001.021.001.021.001.021.004.021.004.022.006.021.006.023.008.022.01.022.01.023.012.023.013.023.014.023.015.024.017.023.018.024.019.024.02.025.021.024.023.024.023.025.051.05.056.05.06.05.065.051.07.052.074.051.079.052.083.052.088.052.092.052.096.052.101.052.106.052.11.052.114.052.118.051.123.051.126.051.131.05.136.05.139.049.143.048.148.048.152.048.155.046.16.046.163.045.168.043.172.043.175.042.179.041.183.04.187.038.191.038.194.036.198.034.202.033.205.032.21.031.212.028.216.027.22.026.224.023.226.022.231.021.233.018.237.016.241.014.244.012.247.011.25.008.254.005.257.004.26.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.022.224-.023.22-.026.216-.027.212-.028.21-.031.205-.032.202-.033.198-.034.194-.036.191-.038.187-.038.183-.04.179-.041.175-.042.172-.043.168-.043.163-.045.16-.046.155-.046.152-.048.148-.048.143-.048.139-.049.136-.05.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.05.051-.05.023-.025.023-.024.021-.024.02-.025.019-.024.018-.024.017-.023.015-.024.014-.023.013-.023.012-.023.01-.023.01-.022.008-.022.006-.023.006-.021.004-.022.004-.021.001-.021.001-.021-.001-.021-.001-.021-.004-.021-.004-.022-.006-.021-.006-.023-.008-.022-.01-.022-.01-.023-.012-.023-.013-.023-.014-.023-.015-.024-.017-.023-.018-.024-.019-.024-.02-.025-.021-.024-.023-.024-.023-.025-.051-.05-.056-.05-.06-.05-.065-.051-.07-.052-.074-.051-.079-.052-.083-.052-.088-.052-.092-.052-.096-.052-.101-.052-.106-.052-.11-.052-.114-.052-.118-.051-.123-.051-.126-.051-.131-.05-.136-.05-.139-.049-.143-.048-.148-.048-.152-.048-.155-.046-.16-.046-.163-.045-.168-.043-.172-.043-.175-.042-.179-.041-.183-.04-.187-.038-.191-.038-.194-.036-.198-.034-.202-.033-.205-.032-.21-.031-.212-.028-.216-.027-.22-.026-.224-.023-.226-.022-.231-.021-.233-.018-.237-.016-.241-.014-.244-.012-.247-.011-.25-.008-.254-.005-.257-.004-.26-.001-.26.001z" ); -}, "insertDatabaseIcon"), zIt = /* @__PURE__ */ x(function(t) { +}, "insertDatabaseIcon"), VIt = /* @__PURE__ */ x(function(t) { t.append("defs").append("symbol").attr("id", "computer").attr("width", "24").attr("height", "24").append("path").attr("transform", "scale(.5)").attr( "d", "M2 2v13h20v-13h-20zm18 11h-16v-9h16v9zm-10.228 6l.466-1h3.524l.467 1h-4.457zm14.228 3h-24l2-6h2.104l-1.33 4h18.45l-1.297-4h2.073l2 6zm-5-10h-14v-7h14v7z" ); -}, "insertComputerIcon"), VIt = /* @__PURE__ */ x(function(t) { +}, "insertComputerIcon"), UIt = /* @__PURE__ */ x(function(t) { t.append("defs").append("symbol").attr("id", "clock").attr("width", "24").attr("height", "24").append("path").attr("transform", "scale(.5)").attr( "d", "M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm5.848 12.459c.202.038.202.333.001.372-1.907.361-6.045 1.111-6.547 1.111-.719 0-1.301-.582-1.301-1.301 0-.512.77-5.447 1.125-7.445.034-.192.312-.181.343.014l.985 6.238 5.394 1.011z" ); -}, "insertClockIcon"), UIt = /* @__PURE__ */ x(function(t) { +}, "insertClockIcon"), qIt = /* @__PURE__ */ x(function(t) { t.append("defs").append("marker").attr("id", "arrowhead").attr("refX", 9).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto").append("path").attr("d", "M 0 0 L 10 5 L 0 10 z"); -}, "insertArrowHead"), qIt = /* @__PURE__ */ x(function(t) { +}, "insertArrowHead"), QIt = /* @__PURE__ */ x(function(t) { t.append("defs").append("marker").attr("id", "arrowend").attr("refX", 1).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto").append("path").attr("d", "M 10 0 L 0 5 L 10 10 z"); -}, "insertArrowEnd"), QIt = /* @__PURE__ */ x(function(t) { +}, "insertArrowEnd"), YIt = /* @__PURE__ */ x(function(t) { t.append("defs").append("marker").attr("id", "filled-head").attr("refX", 18).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L14,7 L9,1 Z"); -}, "insertArrowFilledHead"), YIt = /* @__PURE__ */ x(function(t) { +}, "insertArrowFilledHead"), WIt = /* @__PURE__ */ x(function(t) { t.append("defs").append("marker").attr("id", "sequencenumber").attr("refX", 15).attr("refY", 15).attr("markerWidth", 60).attr("markerHeight", 40).attr("orient", "auto").append("circle").attr("cx", 15).attr("cy", 15).attr("r", 6); -}, "insertDynamicNumber"), WIt = /* @__PURE__ */ x(function(t) { +}, "insertDynamicNumber"), GIt = /* @__PURE__ */ x(function(t) { const r = t.append("defs").append("marker").attr("id", "crosshead").attr("markerWidth", 15).attr("markerHeight", 8).attr("orient", "auto").attr("refX", 16).attr("refY", 4); r.append("path").attr("fill", "black").attr("stroke", "#000000").style("stroke-dasharray", "0, 0").attr("stroke-width", "1px").attr("d", "M 9,2 V 6 L16,4 Z"), r.append("path").attr("fill", "none").attr("stroke", "#000000").style("stroke-dasharray", "0, 0").attr("stroke-width", "1px").attr("d", "M 0,1 L 6,7 M 6,1 L 0,7"); -}, "insertArrowCrossHead"), GIt = /* @__PURE__ */ x((t, e) => ({ +}, "insertArrowCrossHead"), HIt = /* @__PURE__ */ x((t, e) => ({ fontFamily: t[e + "FontFamily"], fontSize: t[e + "FontSize"], fontWeight: t[e + "FontWeight"] @@ -66427,18 +66498,18 @@ var oIt = hk, Fl = [], ef = [""], aa = "global", Cl = "", Bc = [ }; }(), oc = { drawRect: iI, - drawBoundary: $It, - drawC4Shape: BIt, - drawRels: PIt, + drawBoundary: BIt, + drawC4Shape: FIt, + drawRels: $It, drawImage: sfe, - insertArrowHead: UIt, - insertArrowEnd: qIt, - insertArrowFilledHead: QIt, - insertDynamicNumber: YIt, - insertArrowCrossHead: WIt, - insertDatabaseIcon: FIt, - insertComputerIcon: zIt, - insertClockIcon: VIt + insertArrowHead: qIt, + insertArrowEnd: QIt, + insertArrowFilledHead: YIt, + insertDynamicNumber: WIt, + insertArrowCrossHead: GIt, + insertDatabaseIcon: zIt, + insertComputerIcon: VIt, + insertClockIcon: UIt }, pk = 0, gk = 0, afe = 4, ML = 2; hk.yy = RL; var Nt = {}, hb, ofe = (hb = class { @@ -66486,7 +66557,7 @@ var Nt = {}, hb, ofe = (hb = class { fontFamily: t.boundaryFontFamily, fontSize: t.boundaryFontSize, fontWeight: t.boundaryFontWeight -}), "boundaryFont"), HIt = /* @__PURE__ */ x((t) => ({ +}), "boundaryFont"), XIt = /* @__PURE__ */ x((t) => ({ fontFamily: t.messageFontFamily, fontSize: t.messageFontSize, fontWeight: t.messageFontWeight @@ -66563,22 +66634,22 @@ var lfe = /* @__PURE__ */ x(function(t, e, r) { a + l / u * t.height / 2, n + t.height ) : r < i && n > s ? f >= h ? d = new wo(r + t.width, o - h * t.width / 2) : d = new wo(a + t.height / 2 * l / u, n) : r > i && n > s && (f >= h ? d = new wo(r, o - t.width / 2 * h) : d = new wo(a - t.height / 2 * l / u, n)), d; -}, "getIntersectPoint"), XIt = /* @__PURE__ */ x(function(t, e) { +}, "getIntersectPoint"), ZIt = /* @__PURE__ */ x(function(t, e) { let r = { x: 0, y: 0 }; r.x = e.x + e.width / 2, r.y = e.y + e.height / 2; let n = VY(t, r); r.x = t.x + t.width / 2, r.y = t.y + t.height / 2; let i = VY(e, r); return { startPoint: n, endPoint: i }; -}, "getIntersectPoints"), ZIt = /* @__PURE__ */ x(function(t, e, r, n) { +}, "getIntersectPoints"), jIt = /* @__PURE__ */ x(function(t, e, r, n) { let i = 0; for (let s of e) { i = i + 1; - let a = s.wrap && Nt.wrap, o = HIt(Nt); + let a = s.wrap && Nt.wrap, o = XIt(Nt); n.db.getC4Type() === "C4Dynamic" && (s.label.text = i + ": " + s.label.text); let u = Ol(s.label.text, o); Po("label", s, a, o, u), s.techn && s.techn.text !== "" && (u = Ol(s.techn.text, o), Po("techn", s, a, o, u)), s.descr && s.descr.text !== "" && (u = Ol(s.descr.text, o), Po("descr", s, a, o, u)); - let h = r(s.from), f = r(s.to), d = XIt(h, f); + let h = r(s.from), f = r(s.to), d = ZIt(h, f); s.startPoint = d.startPoint, s.endPoint = d.endPoint; } oc.drawRels(t, e, Nt); @@ -66649,7 +66720,7 @@ function sI(t, e, r, n, i) { } } x(sI, "drawInsideBoundary"); -var jIt = /* @__PURE__ */ x(function(t, e, r, n) { +var KIt = /* @__PURE__ */ x(function(t, e, r, n) { Nt = be().c4; const i = be().securityLevel; let s; @@ -66668,7 +66739,7 @@ var jIt = /* @__PURE__ */ x(function(t, e, r, n) { ), u.data.widthLimit = screen.availWidth, pk = Nt.diagramMarginX, gk = Nt.diagramMarginY; const h = n.db.getTitle(); let f = n.db.getBoundarys(""); - sI(l, "", u, f, n), oc.insertArrowHead(l), oc.insertArrowEnd(l), oc.insertArrowCrossHead(l), oc.insertArrowFilledHead(l), ZIt(l, n.db.getRels(), n.db.getC4Shape, n), u.data.stopx = pk, u.data.stopy = gk; + sI(l, "", u, f, n), oc.insertArrowHead(l), oc.insertArrowEnd(l), oc.insertArrowCrossHead(l), oc.insertArrowFilledHead(l), jIt(l, n.db.getRels(), n.db.getC4Shape, n), u.data.stopx = pk, u.data.stopy = gk; const d = u.data; let g = d.stopy - d.starty + 2 * Nt.diagramMarginY; const v = d.stopx - d.startx + 2 * Nt.diagramMarginX; @@ -66682,34 +66753,34 @@ var jIt = /* @__PURE__ */ x(function(t, e, r, n) { drawPersonOrSystemArray: cfe, drawBoundary: lfe, setConf: DL, - draw: jIt -}, KIt = /* @__PURE__ */ x((t) => `.person { + draw: KIt +}, JIt = /* @__PURE__ */ x((t) => `.person { stroke: ${t.personBorder}; fill: ${t.personBkg}; } -`, "getStyles"), JIt = KIt, ePt = { - parser: oIt, +`, "getStyles"), ePt = JIt, tPt = { + parser: lIt, db: RL, renderer: UY, - styles: JIt, + styles: ePt, init: /* @__PURE__ */ x(({ c4: t, wrap: e }) => { UY.setConf(t), RL.setWrap(e); }, "init") }; -const tPt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +const rPt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - diagram: ePt + diagram: tPt }, Symbol.toStringTag, { value: "Module" })); var ufe = /* @__PURE__ */ x((t, e) => { let r; return e === "sandbox" && (r = et("#i" + t)), et(e === "sandbox" ? r.nodes()[0].contentDocument.body : "body").select(`[id="${t}"]`); }, "getDiagramElement"), hfe = /* @__PURE__ */ x((t, e, r, n) => { t.attr("class", r); - const { width: i, height: s, x: a, y: o } = rPt(t, e); + const { width: i, height: s, x: a, y: o } = nPt(t, e); ms(t, s, i, n); - const l = nPt(a, o, i, s, e); + const l = iPt(a, o, i, s, e); t.attr("viewBox", l), X.debug(`viewBox configured: ${l} with padding: ${e}`); -}, "setupViewPortForSVG"), rPt = /* @__PURE__ */ x((t, e) => { +}, "setupViewPortForSVG"), nPt = /* @__PURE__ */ x((t, e) => { var n; const r = ((n = t.node()) == null ? void 0 : n.getBBox()) || { width: 0, height: 0, x: 0, y: 0 }; return { @@ -66718,7 +66789,7 @@ var ufe = /* @__PURE__ */ x((t, e) => { x: r.x, y: r.y }; -}, "calculateDimensionsWithPadding"), nPt = /* @__PURE__ */ x((t, e, r, n, i) => `${t - i} ${e - i} ${r} ${n}`, "createViewBox"); +}, "calculateDimensionsWithPadding"), iPt = /* @__PURE__ */ x((t, e, r, n, i) => `${t - i} ${e - i} ${r} ${n}`, "createViewBox"); function NL(t, e) { e && t.attr("style", e); } @@ -66728,7 +66799,7 @@ function ffe(t) { return s.html(n), NL(s, t.labelStyle), s.attr("class", i), NL(r, t.labelStyle), r.style("display", "inline-block"), r.style("white-space", "nowrap"), r.attr("xmlns", "http://www.w3.org/1999/xhtml"), e.node(); } x(ffe, "addHtmlLabel"); -var iPt = /* @__PURE__ */ x((t, e, r, n) => { +var sPt = /* @__PURE__ */ x((t, e, r, n) => { let i = t || ""; if (typeof i == "object" && (i = i[0]), bn(be().flowchart.htmlLabels)) { i = i.replace(/\\n|\n/g, "
"), X.debug("vertexText" + i); @@ -66749,7 +66820,7 @@ var iPt = /* @__PURE__ */ x((t, e, r, n) => { } return s; } -}, "createLabel"), _a = iPt, Ki = /* @__PURE__ */ x(async (t, e, r, n) => { +}, "createLabel"), _a = sPt, Ki = /* @__PURE__ */ x(async (t, e, r, n) => { const i = be(); let s; const a = e.useHtmlLabels || bn(i.flowchart.htmlLabels); @@ -66811,7 +66882,7 @@ function Xl(t, e, r, n) { ).attr("class", "label-container").attr("transform", "translate(" + -e / 2 + "," + r / 2 + ")"); } x(Xl, "insertPolygonShape"); -var sPt = /* @__PURE__ */ x((t) => { +var aPt = /* @__PURE__ */ x((t) => { const e = /* @__PURE__ */ new Set(); for (const r of t) switch (r) { @@ -66826,8 +66897,8 @@ var sPt = /* @__PURE__ */ x((t) => { break; } return e; -}, "expandAndDeduplicateDirections"), aPt = /* @__PURE__ */ x((t, e, r) => { - const n = sPt(t), i = 2, s = e.height + 2 * r.padding, a = s / i, o = e.width + 2 * a + r.padding, l = r.padding / 2; +}, "expandAndDeduplicateDirections"), oPt = /* @__PURE__ */ x((t, e, r) => { + const n = aPt(t), i = 2, s = e.height + 2 * r.padding, a = s / i, o = e.width + 2 * a + r.padding, l = r.padding / 2; return n.has("right") && n.has("left") && n.has("up") && n.has("down") ? [ { x: 0, y: 0 }, { x: a, y: 0 }, @@ -66945,7 +67016,7 @@ function dfe(t, e) { return t.intersect(e); } x(dfe, "intersectNode"); -var oPt = dfe; +var lPt = dfe; function pfe(t, e, r, n) { var i = t.x, s = t.y, a = i - n.x, o = s - n.y, l = Math.sqrt(e * e * o * o + r * r * a * a), u = Math.abs(e * r * a / l); n.x < i && (u = -u); @@ -66958,7 +67029,7 @@ function mfe(t, e, r) { return gfe(t, e, e, r); } x(mfe, "intersectCircle"); -var lPt = mfe; +var cPt = mfe; function vfe(t, e, r, n) { var i, s, a, o, l, u, h, f, d, p, g, m, v, y, b; if (i = e.y - t.y, a = t.x - e.x, l = e.x * t.y - t.x * e.y, d = i * r.x + a * r.y + l, p = i * n.x + a * n.y + l, !(d !== 0 && p !== 0 && IL(d, p)) && (s = n.y - r.y, o = r.x - n.x, u = n.x * r.y - r.x * n.y, h = s * t.x + o * t.y + u, f = s * e.x + o * e.y + u, !(h !== 0 && f !== 0 && IL(h, f)) && (g = i * o - s * a, g !== 0))) @@ -66969,14 +67040,14 @@ function IL(t, e) { return t * e > 0; } x(IL, "sameSign"); -var cPt = vfe, uPt = yfe; +var uPt = vfe, hPt = yfe; function yfe(t, e, r) { var n = t.x, i = t.y, s = [], a = Number.POSITIVE_INFINITY, o = Number.POSITIVE_INFINITY; typeof e.forEach == "function" ? e.forEach(function(g) { a = Math.min(a, g.x), o = Math.min(o, g.y); }) : (a = Math.min(a, e.x), o = Math.min(o, e.y)); for (var l = n - t.width / 2 - a, u = i - t.height / 2 - o, h = 0; h < e.length; h++) { - var f = e[h], d = e[h < e.length - 1 ? h + 1 : 0], p = cPt( + var f = e[h], d = e[h < e.length - 1 ? h + 1 : 0], p = uPt( t, r, { x: l + f.x, y: u + f.y }, @@ -66990,16 +67061,16 @@ function yfe(t, e, r) { }), s[0]) : t; } x(yfe, "intersectPolygon"); -var hPt = /* @__PURE__ */ x((t, e) => { +var fPt = /* @__PURE__ */ x((t, e) => { var r = t.x, n = t.y, i = e.x - r, s = e.y - n, a = t.width / 2, o = t.height / 2, l, u; return Math.abs(s) * a > Math.abs(i) * o ? (s < 0 && (o = -o), l = s === 0 ? 0 : o * i / s, u = o) : (i < 0 && (a = -a), l = a, u = i === 0 ? 0 : a * s / i), { x: r + l, y: n + u }; -}, "intersectRect"), Lx = hPt, Cn = { - node: oPt, - circle: lPt, +}, "intersectRect"), Lx = fPt, Cn = { + node: lPt, + circle: cPt, ellipse: gfe, - polygon: uPt, + polygon: hPt, rect: Lx -}, fPt = /* @__PURE__ */ x(async (t, e) => { +}, dPt = /* @__PURE__ */ x(async (t, e) => { e.useHtmlLabels || be().flowchart.htmlLabels || (e.centerLabel = !0); const { shapeSvg: n, bbox: i, halfPadding: s } = await Ki( t, @@ -67012,7 +67083,7 @@ var hPt = /* @__PURE__ */ x((t, e) => { return a.attr("rx", e.rx).attr("ry", e.ry).attr("x", -i.width / 2 - s).attr("y", -i.height / 2 - s).attr("width", i.width + e.padding).attr("height", i.height + e.padding), Fn(e, a), e.intersect = function(o) { return Cn.rect(e, o); }, n; -}, "note"), dPt = fPt, qY = /* @__PURE__ */ x((t) => t ? " " + t : "", "formatClass"), go = /* @__PURE__ */ x((t, e) => `${e || "node default"}${qY(t.classes)} ${qY( +}, "note"), pPt = dPt, qY = /* @__PURE__ */ x((t) => t ? " " + t : "", "formatClass"), go = /* @__PURE__ */ x((t, e) => `${e || "node default"}${qY(t.classes)} ${qY( t.class )}`, "getClassesFromNode"), QY = /* @__PURE__ */ x(async (t, e) => { const { shapeSvg: r, bbox: n } = await Ki( @@ -67031,7 +67102,7 @@ var hPt = /* @__PURE__ */ x((t, e) => { return l.attr("style", e.style), Fn(e, l), e.intersect = function(u) { return X.warn("Intersect called"), Cn.polygon(e, o, u); }, r; -}, "question"), pPt = /* @__PURE__ */ x((t, e) => { +}, "question"), gPt = /* @__PURE__ */ x((t, e) => { const r = t.insert("g").attr("class", "node default").attr("id", e.domId || e.id), n = 28, i = [ { x: 0, y: n / 2 }, { x: n / 2, y: 0 }, @@ -67046,7 +67117,7 @@ var hPt = /* @__PURE__ */ x((t, e) => { ).attr("class", "state-start").attr("r", 7).attr("width", 28).attr("height", 28), e.width = 28, e.height = 28, e.intersect = function(a) { return Cn.circle(e, 14, a); }, r; -}, "choice"), gPt = /* @__PURE__ */ x(async (t, e) => { +}, "choice"), mPt = /* @__PURE__ */ x(async (t, e) => { const { shapeSvg: r, bbox: n } = await Ki( t, e, @@ -67063,12 +67134,12 @@ var hPt = /* @__PURE__ */ x((t, e) => { return u.attr("style", e.style), Fn(e, u), e.intersect = function(h) { return Cn.polygon(e, l, h); }, r; -}, "hexagon"), mPt = /* @__PURE__ */ x(async (t, e) => { - const { shapeSvg: r, bbox: n } = await Ki(t, e, void 0, !0), i = 2, s = n.height + 2 * e.padding, a = s / i, o = n.width + 2 * a + e.padding, l = aPt(e.directions, n, e), u = Xl(r, o, s, l); +}, "hexagon"), vPt = /* @__PURE__ */ x(async (t, e) => { + const { shapeSvg: r, bbox: n } = await Ki(t, e, void 0, !0), i = 2, s = n.height + 2 * e.padding, a = s / i, o = n.width + 2 * a + e.padding, l = oPt(e.directions, n, e), u = Xl(r, o, s, l); return u.attr("style", e.style), Fn(e, u), e.intersect = function(h) { return Cn.polygon(e, l, h); }, r; -}, "block_arrow"), vPt = /* @__PURE__ */ x(async (t, e) => { +}, "block_arrow"), yPt = /* @__PURE__ */ x(async (t, e) => { const { shapeSvg: r, bbox: n } = await Ki( t, e, @@ -67084,7 +67155,7 @@ var hPt = /* @__PURE__ */ x((t, e) => { return Xl(r, i, s, a).attr("style", e.style), e.width = i + s, e.height = s, e.intersect = function(l) { return Cn.polygon(e, a, l); }, r; -}, "rect_left_inv_arrow"), yPt = /* @__PURE__ */ x(async (t, e) => { +}, "rect_left_inv_arrow"), bPt = /* @__PURE__ */ x(async (t, e) => { const { shapeSvg: r, bbox: n } = await Ki(t, e, go(e), !0), i = n.width + e.padding, s = n.height + e.padding, a = [ { x: -2 * s / 6, y: 0 }, { x: i - s / 6, y: 0 }, @@ -67094,7 +67165,7 @@ var hPt = /* @__PURE__ */ x((t, e) => { return o.attr("style", e.style), Fn(e, o), e.intersect = function(l) { return Cn.polygon(e, a, l); }, r; -}, "lean_right"), bPt = /* @__PURE__ */ x(async (t, e) => { +}, "lean_right"), xPt = /* @__PURE__ */ x(async (t, e) => { const { shapeSvg: r, bbox: n } = await Ki( t, e, @@ -67109,7 +67180,7 @@ var hPt = /* @__PURE__ */ x((t, e) => { return o.attr("style", e.style), Fn(e, o), e.intersect = function(l) { return Cn.polygon(e, a, l); }, r; -}, "lean_left"), xPt = /* @__PURE__ */ x(async (t, e) => { +}, "lean_left"), wPt = /* @__PURE__ */ x(async (t, e) => { const { shapeSvg: r, bbox: n } = await Ki( t, e, @@ -67124,7 +67195,7 @@ var hPt = /* @__PURE__ */ x((t, e) => { return o.attr("style", e.style), Fn(e, o), e.intersect = function(l) { return Cn.polygon(e, a, l); }, r; -}, "trapezoid"), wPt = /* @__PURE__ */ x(async (t, e) => { +}, "trapezoid"), OPt = /* @__PURE__ */ x(async (t, e) => { const { shapeSvg: r, bbox: n } = await Ki( t, e, @@ -67139,7 +67210,7 @@ var hPt = /* @__PURE__ */ x((t, e) => { return o.attr("style", e.style), Fn(e, o), e.intersect = function(l) { return Cn.polygon(e, a, l); }, r; -}, "inv_trapezoid"), OPt = /* @__PURE__ */ x(async (t, e) => { +}, "inv_trapezoid"), kPt = /* @__PURE__ */ x(async (t, e) => { const { shapeSvg: r, bbox: n } = await Ki( t, e, @@ -67155,7 +67226,7 @@ var hPt = /* @__PURE__ */ x((t, e) => { return o.attr("style", e.style), Fn(e, o), e.intersect = function(l) { return Cn.polygon(e, a, l); }, r; -}, "rect_right_inv_arrow"), kPt = /* @__PURE__ */ x(async (t, e) => { +}, "rect_right_inv_arrow"), SPt = /* @__PURE__ */ x(async (t, e) => { const { shapeSvg: r, bbox: n } = await Ki( t, e, @@ -67170,7 +67241,7 @@ var hPt = /* @__PURE__ */ x((t, e) => { } return f; }, r; -}, "cylinder"), SPt = /* @__PURE__ */ x(async (t, e) => { +}, "cylinder"), TPt = /* @__PURE__ */ x(async (t, e) => { const { shapeSvg: r, bbox: n, halfPadding: i } = await Ki( t, e, @@ -67186,7 +67257,7 @@ var hPt = /* @__PURE__ */ x((t, e) => { return Fn(e, s), e.intersect = function(h) { return Cn.rect(e, h); }, r; -}, "rect"), TPt = /* @__PURE__ */ x(async (t, e) => { +}, "rect"), CPt = /* @__PURE__ */ x(async (t, e) => { const { shapeSvg: r, bbox: n, halfPadding: i } = await Ki( t, e, @@ -67202,7 +67273,7 @@ var hPt = /* @__PURE__ */ x((t, e) => { return Fn(e, s), e.intersect = function(h) { return Cn.rect(e, h); }, r; -}, "composite"), CPt = /* @__PURE__ */ x(async (t, e) => { +}, "composite"), EPt = /* @__PURE__ */ x(async (t, e) => { const { shapeSvg: r } = await Ki(t, e, "label", !0); X.trace("Classes = ", e.class); const n = r.insert("rect", ":first-child"), i = 0, s = 0; @@ -67225,7 +67296,7 @@ function sC(t, e, r, n) { e.includes("t") ? (X.debug("add top border"), s(r)) : a(r), e.includes("r") ? (X.debug("add right border"), s(n)) : a(n), e.includes("b") ? (X.debug("add bottom border"), s(r)) : a(r), e.includes("l") ? (X.debug("add left border"), s(n)) : a(n), t.attr("stroke-dasharray", i.join(" ")); } x(sC, "applyNodePropertyBorders"); -var EPt = /* @__PURE__ */ x((t, e) => { +var _Pt = /* @__PURE__ */ x((t, e) => { let r; e.classes ? r = "node " + e.classes : r = "node default"; const n = t.insert("g").attr("class", r).attr("id", e.domId || e.id), i = n.insert("rect", ":first-child"), s = n.insert("line"), a = n.insert("g").attr("class", "label"), o = e.labelText.flat ? e.labelText.flat() : e.labelText; @@ -67260,7 +67331,7 @@ var EPt = /* @__PURE__ */ x((t, e) => { ), i.attr("class", "outer title-state").attr("x", -h.width / 2 - g).attr("y", -h.height / 2 - g).attr("width", h.width + e.padding).attr("height", h.height + e.padding), s.attr("class", "divider").attr("x1", -h.width / 2 - g).attr("x2", h.width / 2 + g).attr("y1", -h.height / 2 - g + d.height + g).attr("y2", -h.height / 2 - g + d.height + g), Fn(e, i), e.intersect = function(m) { return Cn.rect(e, m); }, n; -}, "rectWithTitle"), _Pt = /* @__PURE__ */ x(async (t, e) => { +}, "rectWithTitle"), APt = /* @__PURE__ */ x(async (t, e) => { const { shapeSvg: r, bbox: n } = await Ki( t, e, @@ -67270,7 +67341,7 @@ var EPt = /* @__PURE__ */ x((t, e) => { return Fn(e, a), e.intersect = function(o) { return Cn.rect(e, o); }, r; -}, "stadium"), APt = /* @__PURE__ */ x(async (t, e) => { +}, "stadium"), LPt = /* @__PURE__ */ x(async (t, e) => { const { shapeSvg: r, bbox: n, halfPadding: i } = await Ki( t, e, @@ -67280,7 +67351,7 @@ var EPt = /* @__PURE__ */ x((t, e) => { return s.attr("style", e.style).attr("rx", e.rx).attr("ry", e.ry).attr("r", n.width / 2 + i).attr("width", n.width + e.padding).attr("height", n.height + e.padding), X.info("Circle main"), Fn(e, s), e.intersect = function(a) { return X.info("Circle intersect", e, n.width / 2 + i, a), Cn.circle(e, n.width / 2 + i, a); }, r; -}, "circle"), LPt = /* @__PURE__ */ x(async (t, e) => { +}, "circle"), RPt = /* @__PURE__ */ x(async (t, e) => { const { shapeSvg: r, bbox: n, halfPadding: i } = await Ki( t, e, @@ -67290,7 +67361,7 @@ var EPt = /* @__PURE__ */ x((t, e) => { return a.attr("class", e.class), o.attr("style", e.style).attr("rx", e.rx).attr("ry", e.ry).attr("r", n.width / 2 + i + s).attr("width", n.width + e.padding + s * 2).attr("height", n.height + e.padding + s * 2), l.attr("style", e.style).attr("rx", e.rx).attr("ry", e.ry).attr("r", n.width / 2 + i).attr("width", n.width + e.padding).attr("height", n.height + e.padding), X.info("DoubleCircle main"), Fn(e, o), e.intersect = function(u) { return X.info("DoubleCircle intersect", e, n.width / 2 + i + s, u), Cn.circle(e, n.width / 2 + i + s, u); }, r; -}, "doublecircle"), RPt = /* @__PURE__ */ x(async (t, e) => { +}, "doublecircle"), MPt = /* @__PURE__ */ x(async (t, e) => { const { shapeSvg: r, bbox: n } = await Ki( t, e, @@ -67311,7 +67382,7 @@ var EPt = /* @__PURE__ */ x((t, e) => { return o.attr("style", e.style), Fn(e, o), e.intersect = function(l) { return Cn.polygon(e, a, l); }, r; -}, "subroutine"), MPt = /* @__PURE__ */ x((t, e) => { +}, "subroutine"), DPt = /* @__PURE__ */ x((t, e) => { const r = t.insert("g").attr("class", "node default").attr("id", e.domId || e.id), n = r.insert("circle", ":first-child"); return n.attr("class", "state-start").attr("r", 7).attr("width", 14).attr("height", 14), Fn(e, n), e.intersect = function(i) { return Cn.circle(e, 7, i); @@ -67324,12 +67395,12 @@ var EPt = /* @__PURE__ */ x((t, e) => { return Fn(e, a), e.height = e.height + e.padding / 2, e.width = e.width + e.padding / 2, e.intersect = function(o) { return Cn.rect(e, o); }, n; -}, "forkJoin"), DPt = /* @__PURE__ */ x((t, e) => { +}, "forkJoin"), NPt = /* @__PURE__ */ x((t, e) => { const r = t.insert("g").attr("class", "node default").attr("id", e.domId || e.id), n = r.insert("circle", ":first-child"), i = r.insert("circle", ":first-child"); return i.attr("class", "state-start").attr("r", 7).attr("width", 14).attr("height", 14), n.attr("class", "state-end").attr("r", 5).attr("width", 10).attr("height", 10), Fn(e, i), e.intersect = function(s) { return Cn.circle(e, 7, s); }, r; -}, "end"), NPt = /* @__PURE__ */ x((t, e) => { +}, "end"), IPt = /* @__PURE__ */ x((t, e) => { var A; const r = e.padding / 2, n = 4, i = 8; let s; @@ -67426,31 +67497,31 @@ var EPt = /* @__PURE__ */ x((t, e) => { }, a; }, "class_box"), WY = { rhombus: QY, - composite: TPt, + composite: CPt, question: QY, - rect: SPt, - labelRect: CPt, - rectWithTitle: EPt, - choice: pPt, - circle: APt, - doublecircle: LPt, - stadium: _Pt, - hexagon: gPt, - block_arrow: mPt, - rect_left_inv_arrow: vPt, - lean_right: yPt, - lean_left: bPt, - trapezoid: xPt, - inv_trapezoid: wPt, - rect_right_inv_arrow: OPt, - cylinder: kPt, - start: MPt, - end: DPt, - note: dPt, - subroutine: RPt, + rect: TPt, + labelRect: EPt, + rectWithTitle: _Pt, + choice: gPt, + circle: LPt, + doublecircle: RPt, + stadium: APt, + hexagon: mPt, + block_arrow: vPt, + rect_left_inv_arrow: yPt, + lean_right: bPt, + lean_left: xPt, + trapezoid: wPt, + inv_trapezoid: OPt, + rect_right_inv_arrow: kPt, + cylinder: SPt, + start: DPt, + end: NPt, + note: pPt, + subroutine: MPt, fork: YY, join: YY, - class_box: NPt + class_box: IPt }, og = {}, aI = /* @__PURE__ */ x(async (t, e, r) => { let n, i; if (e.link) { @@ -67459,9 +67530,9 @@ var EPt = /* @__PURE__ */ x((t, e) => { } else i = await WY[e.shape](t, e, r), n = i; return e.tooltip && i.attr("title", e.tooltip), e.class && i.attr("class", "node default " + e.class), og[e.id] = n, e.haveCallback && og[e.id].attr("class", og[e.id].attr("class") + " clickable"), n; -}, "insertNode"), IPt = /* @__PURE__ */ x((t, e) => { +}, "insertNode"), PPt = /* @__PURE__ */ x((t, e) => { og[e.id] = t; -}, "setNodeElem"), PPt = /* @__PURE__ */ x(() => { +}, "setNodeElem"), $Pt = /* @__PURE__ */ x(() => { og = {}; }, "clear"), PL = /* @__PURE__ */ x((t) => { const e = og[t.id]; @@ -67476,19 +67547,19 @@ var EPt = /* @__PURE__ */ x((t, e) => { "transform", "translate(" + (t.x + n - t.width / 2) + ", " + (t.y - t.height / 2 - r) + ")" ) : e.attr("transform", "translate(" + t.x + ", " + t.y + ")"), n; -}, "positionNode"), $Pt = "flowchart-", GY = 0, f1 = be(), Tf = /* @__PURE__ */ new Map(), xa = [], A2 = /* @__PURE__ */ new Map(), ju = [], oI = /* @__PURE__ */ new Map(), lI = /* @__PURE__ */ new Map(), Y4 = 0, $L = !0, Oo, aC, oC = [], lC = /* @__PURE__ */ x((t) => at.sanitizeText(t, f1), "sanitizeText"), cC = /* @__PURE__ */ x(function(t) { +}, "positionNode"), BPt = "flowchart-", GY = 0, f1 = be(), Tf = /* @__PURE__ */ new Map(), xa = [], A2 = /* @__PURE__ */ new Map(), ju = [], oI = /* @__PURE__ */ new Map(), lI = /* @__PURE__ */ new Map(), Y4 = 0, $L = !0, Oo, aC, oC = [], lC = /* @__PURE__ */ x((t) => at.sanitizeText(t, f1), "sanitizeText"), cC = /* @__PURE__ */ x(function(t) { for (const e of Tf.values()) if (e.id === t) return e.domId; return t; -}, "lookUpDomId"), BPt = /* @__PURE__ */ x(function(t, e, r, n, i, s, a = {}) { +}, "lookUpDomId"), FPt = /* @__PURE__ */ x(function(t, e, r, n, i, s, a = {}) { if (!t || t.trim().length === 0) return; let o, l = Tf.get(t); l === void 0 && (l = { id: t, labelType: "text", - domId: $Pt + t + "-" + GY, + domId: BPt + t + "-" + GY, styles: [], classes: [] }, Tf.set(t, l)), GY++, e !== void 0 ? (f1 = be(), o = lC(e.text.trim()), l.labelType = e.type, o.startsWith('"') && o.endsWith('"') && (o = o.substring(1, o.length - 1)), l.text = o) : l.text === void 0 && (l.text = t), r !== void 0 && (l.type = r), n != null && n.forEach(function(u) { @@ -67496,7 +67567,7 @@ var EPt = /* @__PURE__ */ x((t, e) => { }), i != null && i.forEach(function(u) { l.classes.push(u); }), s !== void 0 && (l.dir = s), l.props === void 0 ? l.props = a : a !== void 0 && Object.assign(l.props, a); -}, "addVertex"), FPt = /* @__PURE__ */ x(function(t, e, r) { +}, "addVertex"), zPt = /* @__PURE__ */ x(function(t, e, r) { var o; const s = { start: t, end: e, type: void 0, text: "", labelType: "text" }; X.info("abc78 Got edge...", s); @@ -67511,16 +67582,16 @@ Initialize mermaid with maxEdges set to a higher number to allow more edges. You cannot set this config via configuration inside the diagram as it is a secure config. You have to call mermaid.initialize.` ); -}, "addSingleLink"), zPt = /* @__PURE__ */ x(function(t, e, r) { +}, "addSingleLink"), VPt = /* @__PURE__ */ x(function(t, e, r) { X.info("addLink", t, e, r); for (const n of t) for (const i of e) - FPt(n, i, r); -}, "addLink"), VPt = /* @__PURE__ */ x(function(t, e) { + zPt(n, i, r); +}, "addLink"), UPt = /* @__PURE__ */ x(function(t, e) { t.forEach(function(r) { r === "default" ? xa.defaultInterpolate = e : xa[r].interpolate = e; }); -}, "updateLinkInterpolate"), UPt = /* @__PURE__ */ x(function(t, e) { +}, "updateLinkInterpolate"), qPt = /* @__PURE__ */ x(function(t, e) { t.forEach(function(r) { var n, i, s, a, o, l, u; if (typeof r == "number" && r >= xa.length) @@ -67529,7 +67600,7 @@ You have to call mermaid.initialize.` ); r === "default" ? xa.defaultStyle = e : (xa[r].style = e, ((s = (i = (n = xa[r]) == null ? void 0 : n.style) == null ? void 0 : i.length) != null ? s : 0) > 0 && !((o = (a = xa[r]) == null ? void 0 : a.style) != null && o.some((h) => h == null ? void 0 : h.startsWith("fill"))) && ((u = (l = xa[r]) == null ? void 0 : l.style) == null || u.push("fill:none"))); }); -}, "updateLink"), qPt = /* @__PURE__ */ x(function(t, e) { +}, "updateLink"), QPt = /* @__PURE__ */ x(function(t, e) { t.split(",").forEach(function(r) { let n = A2.get(r); n === void 0 && (n = { id: r, styles: [], textStyles: [] }, A2.set(r, n)), e != null && e.forEach(function(i) { @@ -67540,7 +67611,7 @@ You have to call mermaid.initialize.` n.styles.push(i); }); }); -}, "addClass"), QPt = /* @__PURE__ */ x(function(t) { +}, "addClass"), YPt = /* @__PURE__ */ x(function(t) { Oo = t, /.*/.exec(Oo) && (Oo = "LR"), /.*v/.exec(Oo) && (Oo = "TB"), Oo === "TD" && (Oo = "TB"); }, "setDirection"), cI = /* @__PURE__ */ x(function(t, e) { for (const r of t.split(",")) { @@ -67549,13 +67620,13 @@ You have to call mermaid.initialize.` const i = oI.get(r); i && i.classes.push(e); } -}, "setClass"), YPt = /* @__PURE__ */ x(function(t, e) { +}, "setClass"), WPt = /* @__PURE__ */ x(function(t, e) { if (e !== void 0) { e = lC(e); for (const r of t.split(",")) lI.set(aC === "gen-1" ? cC(r) : r, e); } -}, "setTooltip"), WPt = /* @__PURE__ */ x(function(t, e, r) { +}, "setTooltip"), GPt = /* @__PURE__ */ x(function(t, e, r) { const n = cC(t); if (be().securityLevel !== "loose" || e === void 0) return; @@ -67579,18 +67650,18 @@ You have to call mermaid.initialize.` !1 ); })); -}, "setClickFun"), GPt = /* @__PURE__ */ x(function(t, e, r) { +}, "setClickFun"), HPt = /* @__PURE__ */ x(function(t, e, r) { t.split(",").forEach(function(n) { const i = Tf.get(n); i !== void 0 && (i.link = sr.formatUrl(e, f1), i.linkTarget = r); }), cI(t, "clickable"); }, "setLink"), bfe = /* @__PURE__ */ x(function(t) { return lI.get(t); -}, "getTooltip"), HPt = /* @__PURE__ */ x(function(t, e, r) { +}, "getTooltip"), XPt = /* @__PURE__ */ x(function(t, e, r) { t.split(",").forEach(function(n) { - WPt(n, e, r); + GPt(n, e, r); }), cI(t, "clickable"); -}, "setClickEvent"), XPt = /* @__PURE__ */ x(function(t) { +}, "setClickEvent"), ZPt = /* @__PURE__ */ x(function(t) { oC.forEach(function(e) { e(t); }); @@ -67600,7 +67671,7 @@ You have to call mermaid.initialize.` return Tf; }, "getVertices"), Ofe = /* @__PURE__ */ x(function() { return xa; -}, "getEdges"), ZPt = /* @__PURE__ */ x(function() { +}, "getEdges"), jPt = /* @__PURE__ */ x(function() { return A2; }, "getClasses"), kfe = /* @__PURE__ */ x(function(t) { let e = et(".mermaidTooltip"); @@ -67615,13 +67686,13 @@ You have to call mermaid.initialize.` }); }, "setupToolTips"); oC.push(kfe); -var jPt = /* @__PURE__ */ x(function(t = "gen-1") { +var KPt = /* @__PURE__ */ x(function(t = "gen-1") { Tf = /* @__PURE__ */ new Map(), A2 = /* @__PURE__ */ new Map(), xa = [], oC = [kfe], ju = [], oI = /* @__PURE__ */ new Map(), Y4 = 0, lI = /* @__PURE__ */ new Map(), $L = !0, aC = t, f1 = be(), Xi(); -}, "clear"), KPt = /* @__PURE__ */ x((t) => { +}, "clear"), JPt = /* @__PURE__ */ x((t) => { aC = t || "gen-2"; -}, "setGen"), JPt = /* @__PURE__ */ x(function() { +}, "setGen"), e$t = /* @__PURE__ */ x(function() { return "fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;"; -}, "defaultStyle"), e$t = /* @__PURE__ */ x(function(t, e, r) { +}, "defaultStyle"), t$t = /* @__PURE__ */ x(function(t, e, r) { let n = t.text.trim(), i = r.text; t === r && /\s/.exec(r.text) && (n = void 0); function s(u) { @@ -67647,7 +67718,7 @@ var jPt = /* @__PURE__ */ x(function(t = "gen-1") { labelType: r.type }; return X.info("Adding", l.id, l.nodes, l.dir), l.nodes = _fe(l, ju).nodes, ju.push(l), oI.set(n, l), n; -}, "addSubGraph"), t$t = /* @__PURE__ */ x(function(t) { +}, "addSubGraph"), r$t = /* @__PURE__ */ x(function(t) { for (const [e, r] of ju.entries()) if (r.id === t) return e; @@ -67666,7 +67737,7 @@ var jPt = /* @__PURE__ */ x(function(t = "gen-1") { }; let n = 0, i = 1; for (; n < r.length; ) { - const s = t$t(r[n]); + const s = r$t(r[n]); if (s >= 0) { const a = Tfe(t, s); if (a.result) @@ -67682,13 +67753,13 @@ var jPt = /* @__PURE__ */ x(function(t = "gen-1") { result: !1, count: i }; -}, "indexNodes2"), r$t = /* @__PURE__ */ x(function(t) { +}, "indexNodes2"), n$t = /* @__PURE__ */ x(function(t) { return Sfe[t]; -}, "getDepthFirstPos"), n$t = /* @__PURE__ */ x(function() { +}, "getDepthFirstPos"), i$t = /* @__PURE__ */ x(function() { Cv = -1, ju.length > 0 && Tfe("none", ju.length - 1); }, "indexNodes"), Cfe = /* @__PURE__ */ x(function() { return ju; -}, "getSubGraphs"), i$t = /* @__PURE__ */ x(() => $L ? ($L = !1, !0) : !1, "firstGraph"), s$t = /* @__PURE__ */ x((t) => { +}, "getSubGraphs"), s$t = /* @__PURE__ */ x(() => $L ? ($L = !1, !0) : !1, "firstGraph"), a$t = /* @__PURE__ */ x((t) => { let e = t.trim(), r = "arrow_open"; switch (e[0]) { case "<": @@ -67703,13 +67774,13 @@ var jPt = /* @__PURE__ */ x(function(t = "gen-1") { } let n = "normal"; return e.includes("=") && (n = "thick"), e.includes(".") && (n = "dotted"), { type: r, stroke: n }; -}, "destructStartLink"), a$t = /* @__PURE__ */ x((t, e) => { +}, "destructStartLink"), o$t = /* @__PURE__ */ x((t, e) => { const r = e.length; let n = 0; for (let i = 0; i < r; ++i) e[i] === t && ++n; return n; -}, "countChar"), o$t = /* @__PURE__ */ x((t) => { +}, "countChar"), l$t = /* @__PURE__ */ x((t) => { const e = t.trim(); let r = e.slice(0, -1), n = "arrow_open"; switch (e.slice(-1)) { @@ -67725,13 +67796,13 @@ var jPt = /* @__PURE__ */ x(function(t = "gen-1") { } let i = "normal", s = r.length - 1; r.startsWith("=") && (i = "thick"), r.startsWith("~") && (i = "invisible"); - const a = a$t(".", r); + const a = o$t(".", r); return a && (i = "dotted", s = a), { type: n, stroke: i, length: s }; -}, "destructEndLink"), l$t = /* @__PURE__ */ x((t, e) => { - const r = o$t(t); +}, "destructEndLink"), c$t = /* @__PURE__ */ x((t, e) => { + const r = l$t(t); let n; if (e) { - if (n = s$t(e), n.stroke !== r.stroke) + if (n = a$t(e), n.stroke !== r.stroke) return { type: "INVALID", stroke: "INVALID" }; if (n.type === "arrow_open") n.type = r.type; @@ -67753,12 +67824,12 @@ var jPt = /* @__PURE__ */ x(function(t = "gen-1") { return t.nodes.forEach((n, i) => { Efe(e, n) || r.push(t.nodes[i]); }), { nodes: r }; -}, "makeUniq"), c$t = { - firstGraph: i$t -}, u$t = /* @__PURE__ */ x((t) => { +}, "makeUniq"), u$t = { + firstGraph: s$t +}, h$t = /* @__PURE__ */ x((t) => { var e; return t.type === "square" ? "squareRect" : t.type === "round" ? "roundedRect" : (e = t.type) != null ? e : "squareRect"; -}, "getTypeFromVertex"), h$t = /* @__PURE__ */ x((t, e) => t.find((r) => r.id === e), "findNode"), f$t = /* @__PURE__ */ x((t) => { +}, "getTypeFromVertex"), f$t = /* @__PURE__ */ x((t, e) => t.find((r) => r.id === e), "findNode"), d$t = /* @__PURE__ */ x((t) => { let e = "none", r = "arrow_point"; switch (t) { case "arrow_point": @@ -67773,9 +67844,9 @@ var jPt = /* @__PURE__ */ x(function(t = "gen-1") { break; } return { arrowTypeStart: e, arrowTypeEnd: r }; -}, "destructEdgeType"), d$t = /* @__PURE__ */ x((t, e, r, n, i, s) => { +}, "destructEdgeType"), p$t = /* @__PURE__ */ x((t, e, r, n, i, s) => { var u, h; - const a = r.get(t.id), o = (u = n.get(t.id)) != null ? u : !1, l = h$t(e, t.id); + const a = r.get(t.id), o = (u = n.get(t.id)) != null ? u : !1, l = f$t(e, t.id); l ? (l.cssStyles = t.styles, l.cssCompiledStyles = mk(t.classes), l.cssClasses = t.classes.join(" ")) : e.push({ id: t.id, label: t.text, @@ -67785,7 +67856,7 @@ var jPt = /* @__PURE__ */ x(function(t = "gen-1") { cssStyles: t.styles, cssCompiledStyles: mk(["default", "node", ...t.classes]), cssClasses: "default " + t.classes.join(" "), - shape: u$t(t), + shape: h$t(t), dir: t.dir, domId: t.domId, isGroup: o, @@ -67805,7 +67876,7 @@ function mk(t) { return e; } x(mk, "getCompiledStyles"); -var p$t = /* @__PURE__ */ x(() => { +var g$t = /* @__PURE__ */ x(() => { const t = be(), e = [], r = [], n = Cfe(), i = /* @__PURE__ */ new Map(), s = /* @__PURE__ */ new Map(); for (let l = n.length - 1; l >= 0; l--) { const u = n[l]; @@ -67830,12 +67901,12 @@ var p$t = /* @__PURE__ */ x(() => { }); } wfe().forEach((l) => { - d$t(l, e, i, s, t, t.look || "classic"); + p$t(l, e, i, s, t, t.look || "classic"); }); const o = Ofe(); return o.forEach((l, u) => { var g, m; - const { arrowTypeStart: h, arrowTypeEnd: f } = f$t(l.type), d = [...(g = o.defaultStyle) != null ? g : []]; + const { arrowTypeStart: h, arrowTypeEnd: f } = d$t(l.type), d = [...(g = o.defaultStyle) != null ? g : []]; l.style && d.push(...l.style); const p = { id: Tae(l.start, l.end, { counter: u, prefix: "L" }), @@ -67862,41 +67933,41 @@ var p$t = /* @__PURE__ */ x(() => { setAccTitle: Zi, getAccTitle: vs, getAccDescription: bs, - getData: p$t, + getData: g$t, setAccDescription: ys, - addVertex: BPt, + addVertex: FPt, lookUpDomId: cC, - addLink: zPt, - updateLinkInterpolate: VPt, - updateLink: UPt, - addClass: qPt, - setDirection: QPt, + addLink: VPt, + updateLinkInterpolate: UPt, + updateLink: qPt, + addClass: QPt, + setDirection: YPt, setClass: cI, - setTooltip: YPt, + setTooltip: WPt, getTooltip: bfe, - setClickEvent: HPt, - setLink: GPt, - bindFunctions: XPt, + setClickEvent: XPt, + setLink: HPt, + bindFunctions: ZPt, getDirection: xfe, getVertices: wfe, getEdges: Ofe, - getClasses: ZPt, - clear: jPt, - setGen: KPt, - defaultStyle: JPt, - addSubGraph: e$t, - getDepthFirstPos: r$t, - indexNodes: n$t, + getClasses: jPt, + clear: KPt, + setGen: JPt, + defaultStyle: e$t, + addSubGraph: t$t, + getDepthFirstPos: n$t, + indexNodes: i$t, getSubGraphs: Cfe, - destructLink: l$t, - lex: c$t, + destructLink: c$t, + lex: u$t, exists: Efe, makeUniq: _fe, setDiagramTitle: fa, getDiagramTitle: xs -}, g$t = /* @__PURE__ */ x(function(t, e) { +}, m$t = /* @__PURE__ */ x(function(t, e) { return e.db.getClasses(); -}, "getClasses"), m$t = /* @__PURE__ */ x(async function(t, e, r, n) { +}, "getClasses"), v$t = /* @__PURE__ */ x(async function(t, e, r, n) { var p, g; X.info("REF0:"), X.info("Drawing state diagram (v2)", e); const { securityLevel: i, flowchart: s, layout: a } = be(); @@ -67934,9 +68005,9 @@ var p$t = /* @__PURE__ */ x(() => { return O.node(); }); } -}, "draw"), v$t = { - getClasses: g$t, - draw: m$t +}, "draw"), y$t = { + getClasses: m$t, + draw: v$t }, BL = function() { var t = /* @__PURE__ */ x(function(Jt, rt, St, Tt) { for (St = St || {}, Tt = Jt.length; Tt--; St[Jt[Tt]] = rt) @@ -68706,10 +68777,10 @@ Expecting ` + rw.join(", ") + ", got '" + (this.terminals_[ma] || ma) + "'" : iE return x(cr, "Parser"), cr.prototype = ze, ze.Parser = cr, new cr(); }(); BL.parser = BL; -var y$t = BL, b$t = /* @__PURE__ */ x((t, e) => { +var b$t = BL, x$t = /* @__PURE__ */ x((t, e) => { const r = lie, n = r(t, "r"), i = r(t, "g"), s = r(t, "b"); return Qd(n, i, s, e); -}, "fade"), x$t = /* @__PURE__ */ x((t) => `.label { +}, "fade"), w$t = /* @__PURE__ */ x((t) => `.label { font-family: ${t.fontFamily}; color: ${t.nodeTextColor || t.textColor}; } @@ -68789,7 +68860,7 @@ var y$t = BL, b$t = /* @__PURE__ */ x((t, e) => { /* For html labels only */ .labelBkg { - background-color: ${b$t(t.edgeLabelBackground, 0.5)}; + background-color: ${x$t(t.edgeLabelBackground, 0.5)}; // background-color: } @@ -68829,47 +68900,47 @@ var y$t = BL, b$t = /* @__PURE__ */ x((t, e) => { font-size: 18px; fill: ${t.textColor}; } -`, "getStyles"), w$t = x$t, O$t = { - parser: y$t, +`, "getStyles"), O$t = w$t, k$t = { + parser: b$t, db: L_, - renderer: v$t, - styles: w$t, + renderer: y$t, + styles: O$t, init: /* @__PURE__ */ x((t) => { t.flowchart || (t.flowchart = {}), t.layout && yU({ layout: t.layout }), t.flowchart.arrowMarkerAbsolute = t.arrowMarkerAbsolute, yU({ flowchart: { arrowMarkerAbsolute: t.arrowMarkerAbsolute } }), L_.clear(), L_.setGen("gen-2"); }, "init") }; const uI = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - diagram: O$t -}, Symbol.toStringTag, { value: "Module" })), k$t = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i; -function S$t(t) { - return typeof t == "string" && k$t.test(t); + diagram: k$t +}, Symbol.toStringTag, { value: "Module" })), S$t = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i; +function T$t(t) { + return typeof t == "string" && S$t.test(t); } const Ji = []; for (let t = 0; t < 256; ++t) Ji.push((t + 256).toString(16).slice(1)); -function T$t(t, e = 0) { +function C$t(t, e = 0) { return Ji[t[e + 0]] + Ji[t[e + 1]] + Ji[t[e + 2]] + Ji[t[e + 3]] + "-" + Ji[t[e + 4]] + Ji[t[e + 5]] + "-" + Ji[t[e + 6]] + Ji[t[e + 7]] + "-" + Ji[t[e + 8]] + Ji[t[e + 9]] + "-" + Ji[t[e + 10]] + Ji[t[e + 11]] + Ji[t[e + 12]] + Ji[t[e + 13]] + Ji[t[e + 14]] + Ji[t[e + 15]]; } -function C$t(t) { - if (!S$t(t)) +function E$t(t) { + if (!T$t(t)) throw TypeError("Invalid UUID"); let e; const r = new Uint8Array(16); return r[0] = (e = parseInt(t.slice(0, 8), 16)) >>> 24, r[1] = e >>> 16 & 255, r[2] = e >>> 8 & 255, r[3] = e & 255, r[4] = (e = parseInt(t.slice(9, 13), 16)) >>> 8, r[5] = e & 255, r[6] = (e = parseInt(t.slice(14, 18), 16)) >>> 8, r[7] = e & 255, r[8] = (e = parseInt(t.slice(19, 23), 16)) >>> 8, r[9] = e & 255, r[10] = (e = parseInt(t.slice(24, 36), 16)) / 1099511627776 & 255, r[11] = e / 4294967296 & 255, r[12] = e >>> 24 & 255, r[13] = e >>> 16 & 255, r[14] = e >>> 8 & 255, r[15] = e & 255, r; } -function E$t(t) { +function _$t(t) { t = unescape(encodeURIComponent(t)); const e = []; for (let r = 0; r < t.length; ++r) e.push(t.charCodeAt(r)); return e; } -const _$t = "6ba7b810-9dad-11d1-80b4-00c04fd430c8", A$t = "6ba7b811-9dad-11d1-80b4-00c04fd430c8"; -function L$t(t, e, r) { +const A$t = "6ba7b810-9dad-11d1-80b4-00c04fd430c8", L$t = "6ba7b811-9dad-11d1-80b4-00c04fd430c8"; +function R$t(t, e, r) { function n(i, s, a, o) { var l; - if (typeof i == "string" && (i = E$t(i)), typeof s == "string" && (s = C$t(s)), ((l = s) === null || l === void 0 ? void 0 : l.length) !== 16) + if (typeof i == "string" && (i = _$t(i)), typeof s == "string" && (s = E$t(s)), ((l = s) === null || l === void 0 ? void 0 : l.length) !== 16) throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)"); let u = new Uint8Array(16 + i.length); if (u.set(s), u.set(i, s.length), u = r(u), u[6] = u[6] & 15 | e, u[8] = u[8] & 63 | 128, a) { @@ -68878,15 +68949,15 @@ function L$t(t, e, r) { a[o + h] = u[h]; return a; } - return T$t(u); + return C$t(u); } try { n.name = t; } catch { } - return n.DNS = _$t, n.URL = A$t, n; + return n.DNS = A$t, n.URL = L$t, n; } -function R$t(t, e, r, n) { +function M$t(t, e, r, n) { switch (t) { case 0: return e & r ^ ~e & n; @@ -68901,7 +68972,7 @@ function R$t(t, e, r, n) { function R_(t, e) { return t << e | t >>> 32 - e; } -function M$t(t) { +function D$t(t) { const e = [1518500249, 1859775393, 2400959708, 3395469782], r = [1732584193, 4023233417, 2562383102, 271733878, 3285377520]; if (typeof t == "string") { const a = unescape(encodeURIComponent(t)); @@ -68927,14 +68998,14 @@ function M$t(t) { o[p] = R_(o[p - 3] ^ o[p - 8] ^ o[p - 14] ^ o[p - 16], 1); let l = r[0], u = r[1], h = r[2], f = r[3], d = r[4]; for (let p = 0; p < 80; ++p) { - const g = Math.floor(p / 20), m = R_(l, 5) + R$t(g, u, h, f) + d + e[g] + o[p] >>> 0; + const g = Math.floor(p / 20), m = R_(l, 5) + M$t(g, u, h, f) + d + e[g] + o[p] >>> 0; d = f, f = h, h = R_(u, 30) >>> 0, u = l, l = m; } r[0] = r[0] + l >>> 0, r[1] = r[1] + u >>> 0, r[2] = r[2] + h >>> 0, r[3] = r[3] + f >>> 0, r[4] = r[4] + d >>> 0; } return [r[0] >> 24 & 255, r[0] >> 16 & 255, r[0] >> 8 & 255, r[0] & 255, r[1] >> 24 & 255, r[1] >> 16 & 255, r[1] >> 8 & 255, r[1] & 255, r[2] >> 24 & 255, r[2] >> 16 & 255, r[2] >> 8 & 255, r[2] & 255, r[3] >> 24 & 255, r[3] >> 16 & 255, r[3] >> 8 & 255, r[3] & 255, r[4] >> 24 & 255, r[4] >> 16 & 255, r[4] >> 8 & 255, r[4] & 255]; } -const D$t = L$t("v5", 80, M$t), N$t = D$t; +const N$t = R$t("v5", 80, D$t), I$t = N$t; var FL = function() { var t = /* @__PURE__ */ x(function(A, E, L, _) { for (L = L || {}, _ = A.length; _--; L[A[_]] = E) @@ -69419,22 +69490,22 @@ Expecting ` + ce.join(", ") + ", got '" + (this.terminals_[U] || U) + "'" : Ee = return x(T, "Parser"), T.prototype = S, S.Parser = T, new T(); }(); FL.parser = FL; -var I$t = FL, yd = /* @__PURE__ */ new Map(), hI = [], P$t = { +var P$t = FL, yd = /* @__PURE__ */ new Map(), hI = [], $$t = { ZERO_OR_ONE: "ZERO_OR_ONE", ZERO_OR_MORE: "ZERO_OR_MORE", ONE_OR_MORE: "ONE_OR_MORE", ONLY_ONE: "ONLY_ONE", MD_PARENT: "MD_PARENT" -}, $$t = { +}, B$t = { NON_IDENTIFYING: "NON_IDENTIFYING", IDENTIFYING: "IDENTIFYING" }, Afe = /* @__PURE__ */ x(function(t, e = void 0) { return yd.has(t) ? !yd.get(t).alias && e && (yd.get(t).alias = e, X.info(`Add alias '${e}' to entity '${t}'`)) : (yd.set(t, { attributes: [], alias: e }), X.info("Added new entity :", t)), yd.get(t); -}, "addEntity"), B$t = /* @__PURE__ */ x(() => yd, "getEntities"), F$t = /* @__PURE__ */ x(function(t, e) { +}, "addEntity"), F$t = /* @__PURE__ */ x(() => yd, "getEntities"), z$t = /* @__PURE__ */ x(function(t, e) { let r = Afe(t), n; for (n = e.length - 1; n >= 0; n--) r.attributes.push(e[n]), X.debug("Added attribute ", e[n].attributeName); -}, "addAttributes"), z$t = /* @__PURE__ */ x(function(t, e, r, n) { +}, "addAttributes"), V$t = /* @__PURE__ */ x(function(t, e, r, n) { let i = { entityA: t, roleA: e, @@ -69442,18 +69513,18 @@ var I$t = FL, yd = /* @__PURE__ */ new Map(), hI = [], P$t = { relSpec: n }; hI.push(i), X.debug("Added new relationship :", i); -}, "addRelationship"), V$t = /* @__PURE__ */ x(() => hI, "getRelationships"), U$t = /* @__PURE__ */ x(function() { +}, "addRelationship"), U$t = /* @__PURE__ */ x(() => hI, "getRelationships"), q$t = /* @__PURE__ */ x(function() { yd = /* @__PURE__ */ new Map(), hI = [], Xi(); -}, "clear"), q$t = { - Cardinality: P$t, - Identification: $$t, +}, "clear"), Q$t = { + Cardinality: $$t, + Identification: B$t, getConfig: /* @__PURE__ */ x(() => be().er, "getConfig"), addEntity: Afe, - addAttributes: F$t, - getEntities: B$t, - addRelationship: z$t, - getRelationships: V$t, - clear: U$t, + addAttributes: z$t, + getEntities: F$t, + addRelationship: V$t, + getRelationships: U$t, + clear: q$t, setAccTitle: Zi, getAccTitle: vs, setAccDescription: ys, @@ -69471,17 +69542,17 @@ var I$t = FL, yd = /* @__PURE__ */ new Map(), hI = [], P$t = { ZERO_OR_MORE_END: "ZERO_OR_MORE_END", MD_PARENT_END: "MD_PARENT_END", MD_PARENT_START: "MD_PARENT_START" -}, Q$t = /* @__PURE__ */ x(function(t, e) { +}, Y$t = /* @__PURE__ */ x(function(t, e) { let r; t.append("defs").append("marker").attr("id", al.MD_PARENT_START).attr("refX", 0).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), t.append("defs").append("marker").attr("id", al.MD_PARENT_END).attr("refX", 19).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), t.append("defs").append("marker").attr("id", al.ONLY_ONE_START).attr("refX", 0).attr("refY", 9).attr("markerWidth", 18).attr("markerHeight", 18).attr("orient", "auto").append("path").attr("stroke", e.stroke).attr("fill", "none").attr("d", "M9,0 L9,18 M15,0 L15,18"), t.append("defs").append("marker").attr("id", al.ONLY_ONE_END).attr("refX", 18).attr("refY", 9).attr("markerWidth", 18).attr("markerHeight", 18).attr("orient", "auto").append("path").attr("stroke", e.stroke).attr("fill", "none").attr("d", "M3,0 L3,18 M9,0 L9,18"), r = t.append("defs").append("marker").attr("id", al.ZERO_OR_ONE_START).attr("refX", 0).attr("refY", 9).attr("markerWidth", 30).attr("markerHeight", 18).attr("orient", "auto"), r.append("circle").attr("stroke", e.stroke).attr("fill", "white").attr("cx", 21).attr("cy", 9).attr("r", 6), r.append("path").attr("stroke", e.stroke).attr("fill", "none").attr("d", "M9,0 L9,18"), r = t.append("defs").append("marker").attr("id", al.ZERO_OR_ONE_END).attr("refX", 30).attr("refY", 9).attr("markerWidth", 30).attr("markerHeight", 18).attr("orient", "auto"), r.append("circle").attr("stroke", e.stroke).attr("fill", "white").attr("cx", 9).attr("cy", 9).attr("r", 6), r.append("path").attr("stroke", e.stroke).attr("fill", "none").attr("d", "M21,0 L21,18"), t.append("defs").append("marker").attr("id", al.ONE_OR_MORE_START).attr("refX", 18).attr("refY", 18).attr("markerWidth", 45).attr("markerHeight", 36).attr("orient", "auto").append("path").attr("stroke", e.stroke).attr("fill", "none").attr("d", "M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27"), t.append("defs").append("marker").attr("id", al.ONE_OR_MORE_END).attr("refX", 27).attr("refY", 18).attr("markerWidth", 45).attr("markerHeight", 36).attr("orient", "auto").append("path").attr("stroke", e.stroke).attr("fill", "none").attr("d", "M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18"), r = t.append("defs").append("marker").attr("id", al.ZERO_OR_MORE_START).attr("refX", 18).attr("refY", 18).attr("markerWidth", 57).attr("markerHeight", 36).attr("orient", "auto"), r.append("circle").attr("stroke", e.stroke).attr("fill", "white").attr("cx", 48).attr("cy", 18).attr("r", 6), r.append("path").attr("stroke", e.stroke).attr("fill", "none").attr("d", "M0,18 Q18,0 36,18 Q18,36 0,18"), r = t.append("defs").append("marker").attr("id", al.ZERO_OR_MORE_END).attr("refX", 39).attr("refY", 18).attr("markerWidth", 57).attr("markerHeight", 36).attr("orient", "auto"), r.append("circle").attr("stroke", e.stroke).attr("fill", "white").attr("cx", 9).attr("cy", 18).attr("r", 6), r.append("path").attr("stroke", e.stroke).attr("fill", "none").attr("d", "M21,18 Q39,0 57,18 Q39,36 21,18"); }, "insertMarkers"), ol = { ERMarkers: al, - insertMarkers: Q$t -}, Y$t = /[^\dA-Za-z](\W)*/g, wi = {}, L2 = /* @__PURE__ */ new Map(), W$t = /* @__PURE__ */ x(function(t) { + insertMarkers: Y$t +}, W$t = /[^\dA-Za-z](\W)*/g, wi = {}, L2 = /* @__PURE__ */ new Map(), G$t = /* @__PURE__ */ x(function(t) { const e = Object.keys(t); for (const r of e) wi[r] = t[r]; -}, "setConf"), G$t = /* @__PURE__ */ x((t, e, r) => { +}, "setConf"), H$t = /* @__PURE__ */ x((t, e, r) => { const n = wi.entityPadding / 3, i = wi.entityPadding / 3, s = wi.fontSize * 0.85, a = e.node().getBBox(), o = []; let l = !1, u = !1, h = 0, f = 0, d = 0, p = 0, g = a.height + n * 2, m = 1; r.forEach((w) => { @@ -69554,7 +69625,7 @@ var I$t = FL, yd = /* @__PURE__ */ new Map(), hI = [], P$t = { } else b.height = Math.max(wi.minEntityHeight, g), e.attr("transform", "translate(" + b.width / 2 + "," + b.height / 2 + ")"); return b; -}, "drawAttributes"), H$t = /* @__PURE__ */ x(function(t, e, r) { +}, "drawAttributes"), X$t = /* @__PURE__ */ x(function(t, e, r) { const n = [...e.keys()]; let i; return n.forEach(function(s) { @@ -69563,7 +69634,7 @@ var I$t = FL, yd = /* @__PURE__ */ new Map(), hI = [], P$t = { L2.set(s, a); const o = t.append("g").attr("id", a); i = i === void 0 ? a : i; - const l = "text-" + a, u = o.append("text").classed("er entityLabel", !0).attr("id", l).attr("x", 0).attr("y", 0).style("dominant-baseline", "middle").style("text-anchor", "middle").style("font-family", be().fontFamily).style("font-size", wi.fontSize + "px").text((g = e.get(s).alias) != null ? g : s), { width: h, height: f } = G$t( + const l = "text-" + a, u = o.append("text").classed("er entityLabel", !0).attr("id", l).attr("x", 0).attr("y", 0).style("dominant-baseline", "middle").style("text-anchor", "middle").style("font-family", be().fontFamily).style("font-size", wi.fontSize + "px").text((g = e.get(s).alias) != null ? g : s), { width: h, height: f } = H$t( o, u, e.get(s).attributes @@ -69575,7 +69646,7 @@ var I$t = FL, yd = /* @__PURE__ */ new Map(), hI = [], P$t = { id: a }); }), i; -}, "drawEntities"), X$t = /* @__PURE__ */ x(function(t, e) { +}, "drawEntities"), Z$t = /* @__PURE__ */ x(function(t, e) { e.nodes().forEach(function(r) { r !== void 0 && e.node(r) !== void 0 && t.select("#" + r).attr( "transform", @@ -69584,7 +69655,7 @@ var I$t = FL, yd = /* @__PURE__ */ new Map(), hI = [], P$t = { }); }, "adjustEntities"), Lfe = /* @__PURE__ */ x(function(t) { return (t.entityA + t.roleA + t.entityB).replace(/\s/g, ""); -}, "getEdgeName"), Z$t = /* @__PURE__ */ x(function(t, e) { +}, "getEdgeName"), j$t = /* @__PURE__ */ x(function(t, e) { return t.forEach(function(r) { e.setEdge( L2.get(r.entityA), @@ -69593,7 +69664,7 @@ var I$t = FL, yd = /* @__PURE__ */ new Map(), hI = [], P$t = { Lfe(r) ); }), t; -}, "addRelationships"), HY = 0, j$t = /* @__PURE__ */ x(function(t, e, r, n, i) { +}, "addRelationships"), HY = 0, K$t = /* @__PURE__ */ x(function(t, e, r, n, i) { HY++; const s = r.edge( L2.get(e.entityA), @@ -69660,7 +69731,7 @@ var I$t = FL, yd = /* @__PURE__ */ new Map(), hI = [], P$t = { } const g = p.node().getBBox(); t.insert("rect", "#" + f).classed("er relationshipLabelBox", !0).attr("x", h.x - g.width / 2).attr("y", h.y - g.height / 2).attr("width", g.width).attr("height", g.height); -}, "drawRelationshipFromLayout"), K$t = /* @__PURE__ */ x(function(t, e, r, n) { +}, "drawRelationshipFromLayout"), J$t = /* @__PURE__ */ x(function(t, e, r, n) { wi = be().er, X.info("Drawing ER diagram"); const i = be().securityLevel; let s; @@ -69682,20 +69753,20 @@ var I$t = FL, yd = /* @__PURE__ */ new Map(), hI = [], P$t = { }).setDefaultEdgeLabel(function() { return {}; }); - const u = H$t(o, n.db.getEntities(), l), h = Z$t(n.db.getRelationships(), l); - sm(l), X$t(o, l), h.forEach(function(m) { - j$t(o, m, l, u, n); + const u = X$t(o, n.db.getEntities(), l), h = j$t(n.db.getRelationships(), l); + sm(l), Z$t(o, l), h.forEach(function(m) { + K$t(o, m, l, u, n); }); const f = wi.diagramPadding; sr.insertTitle(o, "entityTitleText", wi.titleTopMargin, n.db.getDiagramTitle()); const d = o.node().getBBox(), p = d.width + f * 2, g = d.height + f * 2; ms(o, g, p, wi.useMaxWidth), o.attr("viewBox", `${d.x - f} ${d.y - f} ${p} ${g}`); -}, "draw"), J$t = "28e9f9db-3c8d-5aa5-9faf-44286ae5937c"; +}, "draw"), eBt = "28e9f9db-3c8d-5aa5-9faf-44286ae5937c"; function Rfe(t = "", e = "") { - const r = t.replace(Y$t, ""); - return `${zL(e)}${zL(r)}${N$t( + const r = t.replace(W$t, ""); + return `${zL(e)}${zL(r)}${I$t( t, - J$t + eBt )}`; } x(Rfe, "generateId"); @@ -69703,10 +69774,10 @@ function zL(t = "") { return t.length > 0 ? `${t}-` : ""; } x(zL, "strWithHyphen"); -var eBt = { - setConf: W$t, - draw: K$t -}, tBt = /* @__PURE__ */ x((t) => ` +var tBt = { + setConf: G$t, + draw: J$t +}, rBt = /* @__PURE__ */ x((t) => ` .entityBox { fill: ${t.mainBkg}; stroke: ${t.nodeBorder}; @@ -69751,15 +69822,15 @@ var eBt = { stroke-width: 1; } -`, "getStyles"), rBt = tBt, nBt = { - parser: I$t, - db: q$t, - renderer: eBt, - styles: rBt +`, "getStyles"), nBt = rBt, iBt = { + parser: P$t, + db: Q$t, + renderer: tBt, + styles: nBt }; -const iBt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +const sBt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - diagram: nBt + diagram: iBt }, Symbol.toStringTag, { value: "Module" })); function Rx(t, e) { var r, n, i; @@ -69782,7 +69853,7 @@ function Ps(t) { function kc(t) { return typeof t == "object" && t !== null && typeof t.$refText == "string"; } -function sBt(t) { +function aBt(t) { return typeof t == "object" && t !== null && typeof t.name == "string" && typeof t.type == "string" && typeof t.path == "string"; } function W4(t) { @@ -69898,7 +69969,7 @@ class Ls { const r = this.iterator(); let n = "", i, s = !1; do - i = r.next(), i.done || (s && (n += e), n += aBt(i.value)), s = !0; + i = r.next(), i.done || (s && (n += e), n += oBt(i.value)), s = !0; while (!i.done); return n; } @@ -70084,13 +70155,13 @@ class Ls { }); } } -function aBt(t) { +function oBt(t) { return typeof t == "string" ? t : typeof t > "u" ? "undefined" : typeof t.toString == "function" ? t.toString() : Object.prototype.toString.call(t); } function vk(t) { return !!t && typeof t[Symbol.iterator] == "function"; } -const oBt = new Ls(() => { +const lBt = new Ls(() => { }, () => To), To = Object.freeze({ done: !0, value: void 0 }); function os(...t) { if (t.length === 1) { @@ -70121,7 +70192,7 @@ function os(...t) { } } while (e.iterator || e.array || e.collIndex < t.length); return To; - }) : oBt; + }) : lBt; } class yk extends Ls { constructor(e, r, n) { @@ -70173,7 +70244,7 @@ var VL; function UL(t) { return new yk(t, (e) => d1(e) ? e.content : [], { includeRoot: !0 }); } -function lBt(t, e) { +function cBt(t, e) { for (; t.container; ) if (t = t.container, t === e) return !0; @@ -70206,7 +70277,7 @@ var Lh; (function(t) { t[t.Before = 0] = "Before", t[t.After = 1] = "After", t[t.OverlapFront = 2] = "OverlapFront", t[t.OverlapBack = 3] = "OverlapBack", t[t.Inside = 4] = "Inside"; })(Lh || (Lh = {})); -function cBt(t, e) { +function uBt(t, e) { if (t.end.line < e.start.line || t.end.line === e.start.line && t.end.character < t.start.character) return Lh.Before; if (t.start.line > e.end.line || t.start.line === e.end.line && t.start.character > e.end.character) @@ -70214,13 +70285,13 @@ function cBt(t, e) { const r = t.start.line > e.start.line || t.start.line === e.start.line && t.start.character >= e.start.character, n = t.end.line < e.end.line || t.end.line === e.end.line && t.end.character <= e.end.character; return r && n ? Lh.Inside : r ? Lh.OverlapBack : Lh.OverlapFront; } -function uBt(t, e) { - return cBt(t, e) > Lh.After; +function hBt(t, e) { + return uBt(t, e) > Lh.After; } -const hBt = /^[\w\p{L}]$/u; -function fBt(t, e) { +const fBt = /^[\w\p{L}]$/u; +function dBt(t, e) { if (t) { - const r = dBt(t, !0); + const r = pBt(t, !0); if (r && XY(r, e)) return r; if (Nfe(t)) { @@ -70236,7 +70307,7 @@ function fBt(t, e) { function XY(t, e) { return Dfe(t) && e.includes(t.tokenType.name); } -function dBt(t, e = !0) { +function pBt(t, e = !0) { for (; t.container; ) { const r = t.container; let n = r.content.indexOf(t); @@ -70257,23 +70328,23 @@ class Ife extends Error { function uC(t) { throw new Error("Error! The input value was not handled."); } -const M_ = "AbstractRule", D_ = "AbstractType", ZY = "Condition", pBt = "TypeDefinition", jY = "ValueLiteral", Pfe = "AbstractElement"; -function gBt(t) { +const M_ = "AbstractRule", D_ = "AbstractType", ZY = "Condition", gBt = "TypeDefinition", jY = "ValueLiteral", Pfe = "AbstractElement"; +function mBt(t) { return Wr.isInstance(t, Pfe); } -const mBt = "ArrayLiteral", vBt = "ArrayType", $fe = "BooleanLiteral"; -function yBt(t) { +const vBt = "ArrayLiteral", yBt = "ArrayType", $fe = "BooleanLiteral"; +function bBt(t) { return Wr.isInstance(t, $fe); } const Bfe = "Conjunction"; -function bBt(t) { +function xBt(t) { return Wr.isInstance(t, Bfe); } const Ffe = "Disjunction"; -function xBt(t) { +function wBt(t) { return Wr.isInstance(t, Ffe); } -const wBt = "Grammar", zfe = "InferredType"; +const OBt = "Grammar", zfe = "InferredType"; function Vfe(t) { return Wr.isInstance(t, zfe); } @@ -70282,26 +70353,26 @@ function qfe(t) { return Wr.isInstance(t, Ufe); } const Qfe = "Negation"; -function OBt(t) { +function kBt(t) { return Wr.isInstance(t, Qfe); } -const kBt = "NumberLiteral", SBt = "Parameter", Yfe = "ParameterReference"; -function TBt(t) { +const SBt = "NumberLiteral", TBt = "Parameter", Yfe = "ParameterReference"; +function CBt(t) { return Wr.isInstance(t, Yfe); } const Wfe = "ParserRule"; function Jo(t) { return Wr.isInstance(t, Wfe); } -const CBt = "ReferenceType", EBt = "ReturnType"; -function _Bt(t) { - return Wr.isInstance(t, EBt); +const EBt = "ReferenceType", _Bt = "ReturnType"; +function ABt(t) { + return Wr.isInstance(t, _Bt); } const Gfe = "SimpleType"; -function ABt(t) { +function LBt(t) { return Wr.isInstance(t, Gfe); } -const LBt = "StringLiteral", QL = "TerminalRule"; +const RBt = "StringLiteral", QL = "TerminalRule"; function J0(t) { return Wr.isInstance(t, QL); } @@ -70309,7 +70380,7 @@ const Hfe = "Type"; function Xfe(t) { return Wr.isInstance(t, Hfe); } -const RBt = "UnionType", Zfe = "Action"; +const MBt = "UnionType", Zfe = "Action"; function hC(t) { return Wr.isInstance(t, Zfe); } @@ -70322,7 +70393,7 @@ function m0(t) { return Wr.isInstance(t, Jfe); } const ede = "CharacterRange"; -function MBt(t) { +function DBt(t) { return Wr.isInstance(t, ede); } const tde = "CrossReference"; @@ -70330,7 +70401,7 @@ function dI(t) { return Wr.isInstance(t, tde); } const rde = "EndOfFile"; -function DBt(t) { +function NBt(t) { return Wr.isInstance(t, rde); } const nde = "Group"; @@ -70342,11 +70413,11 @@ function v0(t) { return Wr.isInstance(t, ide); } const sde = "NegatedToken"; -function NBt(t) { +function IBt(t) { return Wr.isInstance(t, sde); } const ade = "RegexToken"; -function IBt(t) { +function PBt(t) { return Wr.isInstance(t, ade); } const ode = "RuleCall"; @@ -70354,11 +70425,11 @@ function y0(t) { return Wr.isInstance(t, ode); } const lde = "TerminalAlternatives"; -function PBt(t) { +function $Bt(t) { return Wr.isInstance(t, lde); } const cde = "TerminalGroup"; -function $Bt(t) { +function BBt(t) { return Wr.isInstance(t, cde); } const ude = "TerminalRuleCall"; @@ -70370,11 +70441,11 @@ function dde(t) { return Wr.isInstance(t, fde); } const pde = "UntilToken"; -function BBt(t) { +function FBt(t) { return Wr.isInstance(t, pde); } const gde = "Wildcard"; -function FBt(t) { +function zBt(t) { return Wr.isInstance(t, gde); } class mde extends Mfe { @@ -70401,15 +70472,15 @@ class mde extends Mfe { case pde: case gde: return this.isSubtype(Pfe, r); - case mBt: - case kBt: - case LBt: - return this.isSubtype(jY, r); case vBt: - case CBt: - case Gfe: + case SBt: case RBt: - return this.isSubtype(pBt, r); + return this.isSubtype(jY, r); + case yBt: + case EBt: + case Gfe: + case MBt: + return this.isSubtype(gBt, r); case $fe: return this.isSubtype(ZY, r) || this.isSubtype(jY, r); case Bfe: @@ -70443,10 +70514,10 @@ class mde extends Mfe { case "RuleCall:rule": return M_; case "Grammar:usedGrammars": - return wBt; + return OBt; case "NamedArgument:parameter": case "ParameterReference:parameter": - return SBt; + return TBt; case "TerminalRuleCall:rule": return QL; default: @@ -70828,7 +70899,7 @@ class mde extends Mfe { } } const Wr = new mde(); -function zBt(t) { +function VBt(t) { for (const [e, r] of Object.entries(t)) e.startsWith("$") || (Array.isArray(r) ? r.forEach((n, i) => { Ps(n) && (n.$container = t, n.$containerProperty = e, n.$containerIndex = i); @@ -70843,12 +70914,12 @@ function fC(t, e) { } } function Fc(t) { - const r = VBt(t).$document; + const r = UBt(t).$document; if (!r) throw new Error("AST node has no document."); return r; } -function VBt(t) { +function UBt(t) { for (; t.$container; ) t = t.$container; return t; @@ -70901,7 +70972,7 @@ function YL(t, e) { if (!e) return !0; const n = (r = t.$cstNode) === null || r === void 0 ? void 0 : r.range; - return n ? uBt(n, e) : !1; + return n ? hBt(n, e) : !1; } function vde(t) { return new Ls(() => ({ @@ -70929,7 +71000,7 @@ function vde(t) { return To; }); } -function UBt(t, e) { +function qBt(t, e) { const r = t.getTypeMetaData(e.$type), n = e; for (const i of r.properties) i.defaultValue !== void 0 && n[i.name] === void 0 && (n[i.name] = yde(i.defaultValue)); @@ -70955,7 +71026,7 @@ function dp(t) { throw Error("Internal Error - Should never get here!"); return !0; } -function qBt() { +function QBt() { throw Error("Internal Error - Should never get here!"); } function KY(t) { @@ -70997,7 +71068,7 @@ const JY = [ nr("\u205F"), nr("\u3000"), nr("\uFEFF") -], QBt = /[0-9a-fA-F]/, wO = /[0-9]/, YBt = /[1-9]/; +], YBt = /[0-9a-fA-F]/, wO = /[0-9]/, WBt = /[1-9]/; class bde { constructor() { this.idx = 0, this.input = "", this.groupIdx = 0; @@ -71110,7 +71181,7 @@ class bde { loc: this.loc(e) }; } - return qBt(); + return QBt(); } quantifier(e = !1) { let r; @@ -71397,7 +71468,7 @@ class bde { } positiveInteger() { let e = this.popChar(); - if (YBt.test(e) === !1) + if (WBt.test(e) === !1) throw Error("Expecting a positive integer"); for (; wO.test(this.peekChar(0)); ) e += this.popChar(); @@ -71539,7 +71610,7 @@ class bde { let r = ""; for (let i = 0; i < e; i++) { const s = this.popChar(); - if (QBt.test(s) === !1) + if (YBt.test(s) === !1) throw Error("Expecting a HexDecimal digits"); r += s; } @@ -71653,8 +71724,8 @@ class dC { visitQuantifier(e) { } } -const WBt = /\r?\n/gm, GBt = new bde(); -class HBt extends dC { +const GBt = /\r?\n/gm, HBt = new bde(); +class XBt extends dC { constructor() { super(...arguments), this.isStarting = !0, this.endRegexpStack = [], this.multiline = !1; } @@ -71694,10 +71765,10 @@ class HBt extends dC { e.type === "Group" && e.quantifier || super.visitChildren(e); } } -const I_ = new HBt(); -function XBt(t) { +const I_ = new XBt(); +function ZBt(t) { try { - return typeof t == "string" && (t = new RegExp(t)), t = t.toString(), I_.reset(t), I_.visit(GBt.pattern(t)), I_.multiline; + return typeof t == "string" && (t = new RegExp(t)), t = t.toString(), I_.reset(t), I_.visit(HBt.pattern(t)), I_.multiline; } catch { return !1; } @@ -71708,14 +71779,14 @@ function eW(t) { function pC(t) { return t.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"); } -function ZBt(t) { +function jBt(t) { return Array.prototype.map.call(t, (e) => /\w/.test(e) ? `[${e.toLowerCase()}${e.toUpperCase()}]` : pC(e)).join(""); } -function jBt(t, e) { - const r = KBt(t), n = e.match(r); +function KBt(t, e) { + const r = JBt(t), n = e.match(r); return !!n && n[0].length > 0; } -function KBt(t) { +function JBt(t) { typeof t == "string" && (t = new RegExp(t)); const e = t, r = t.source; let n = 0; @@ -71803,17 +71874,17 @@ function KBt(t) { } return new RegExp(i(), t.flags); } -function JBt(t) { +function eFt(t) { return t.rules.find((e) => Jo(e) && e.entry); } -function eFt(t) { +function tFt(t) { return t.rules.filter((e) => J0(e) && e.hidden); } function xde(t, e) { - const r = /* @__PURE__ */ new Set(), n = JBt(t); + const r = /* @__PURE__ */ new Set(), n = eFt(t); if (!n) return new Set(t.rules); - const i = [n].concat(eFt(t)); + const i = [n].concat(tFt(t)); for (const a of i) wde(a, r, e); const s = /* @__PURE__ */ new Set(); @@ -71829,7 +71900,7 @@ function wde(t, e, r) { } }); } -function tFt(t) { +function rFt(t) { if (t.terminal) return t.terminal; if (t.type.ref) { @@ -71837,10 +71908,10 @@ function tFt(t) { return e == null ? void 0 : e.terminal; } } -function rFt(t) { +function nFt(t) { return t.hidden && !yI(t).test(" "); } -function nFt(t, e) { +function iFt(t, e) { return !t || !e ? [] : mI(t, e, t.astNode, !0); } function Ode(t, e, r) { @@ -71858,14 +71929,14 @@ function mI(t, e, r, n) { } return d1(t) && t.astNode === r ? t.content.flatMap((i) => mI(i, e, r, !1)) : []; } -function iFt(t, e, r) { +function sFt(t, e, r) { if (!t) return; - const n = sFt(t, e, t == null ? void 0 : t.astNode); + const n = aFt(t, e, t == null ? void 0 : t.astNode); if (n.length !== 0) return r !== void 0 ? r = Math.max(0, Math.min(r, n.length - 1)) : r = 0, n[r]; } -function sFt(t, e, r) { +function aFt(t, e, r) { if (t.astNode !== r) return []; if (v0(t.grammarSource) && t.grammarSource.value === e) @@ -71881,7 +71952,7 @@ function sFt(t, e, r) { while (!i.done); return s; } -function aFt(t) { +function oFt(t) { var e; const r = t.astNode; for (; r === ((e = t.container) === null || e === void 0 ? void 0 : e.astNode); ) { @@ -71909,7 +71980,7 @@ function Sde(t, e, r) { return r.set(t, s), s; if (y0(s) && Jo(s.rule.ref)) return i(s, s.rule.ref); - if (ABt(s) && ((n = s.typeRef) === null || n === void 0 ? void 0 : n.ref)) + if (LBt(s) && ((n = s.typeRef) === null || n === void 0 ? void 0 : n.ref)) return i(s, s.typeRef.ref); } } @@ -71951,24 +72022,24 @@ function gC(t) { var e; if (Jo(t)) return vI(t) ? t.name : (e = Cde(t)) !== null && e !== void 0 ? e : t.name; - if (qfe(t) || Xfe(t) || _Bt(t)) + if (qfe(t) || Xfe(t) || ABt(t)) return t.name; if (hC(t)) { - const r = oFt(t); + const r = lFt(t); if (r) return r; } else if (Vfe(t)) return t.name; throw new Error("Cannot get name of Unknown Type"); } -function oFt(t) { +function lFt(t) { var e; if (t.inferredType) return t.inferredType.name; if (!((e = t.type) === null || e === void 0) && e.ref) return gC(t.type.ref); } -function lFt(t) { +function cFt(t) { var e, r, n; return J0(t) ? (r = (e = t.type) === null || e === void 0 ? void 0 : e.name) !== null && r !== void 0 ? r : "string" : vI(t) ? t.name : (n = Cde(t)) !== null && n !== void 0 ? n : t.name; } @@ -71982,12 +72053,12 @@ function yI(t) { } const bI = /[\s\S]/.source; function am(t, e) { - if (PBt(t)) - return cFt(t); if ($Bt(t)) return uFt(t); - if (MBt(t)) - return dFt(t); + if (BBt(t)) + return hFt(t); + if (DBt(t)) + return pFt(t); if (hde(t)) { const r = t.rule.ref; if (!r) @@ -71997,11 +72068,11 @@ function am(t, e) { lookahead: t.lookahead }); } else { - if (NBt(t)) + if (IBt(t)) + return dFt(t); + if (FBt(t)) return fFt(t); - if (BBt(t)) - return hFt(t); - if (IBt(t)) { + if (PBt(t)) { const r = t.regex.lastIndexOf("/"), n = t.regex.substring(1, r), i = t.regex.substring(r + 1); return e && (e.i = i.includes("i"), e.s = i.includes("s"), e.u = i.includes("u")), Du(n, { cardinality: t.cardinality, @@ -72009,7 +72080,7 @@ function am(t, e) { wrap: !1 }); } else { - if (FBt(t)) + if (zBt(t)) return Du(bI, { cardinality: t.cardinality, lookahead: t.lookahead @@ -72018,31 +72089,31 @@ function am(t, e) { } } } -function cFt(t) { +function uFt(t) { return Du(t.elements.map((e) => am(e)).join("|"), { cardinality: t.cardinality, lookahead: t.lookahead }); } -function uFt(t) { +function hFt(t) { return Du(t.elements.map((e) => am(e)).join(""), { cardinality: t.cardinality, lookahead: t.lookahead }); } -function hFt(t) { +function fFt(t) { return Du(`${bI}*?${am(t.terminal)}`, { cardinality: t.cardinality, lookahead: t.lookahead }); } -function fFt(t) { +function dFt(t) { return Du(`(?!${am(t.terminal)})${bI}*?`, { cardinality: t.cardinality, lookahead: t.lookahead }); } -function dFt(t) { +function pFt(t) { return t.right ? Du(`[${P_(t.left)}-${P_(t.right)}]`, { cardinality: t.cardinality, lookahead: t.lookahead, @@ -72060,13 +72131,13 @@ function Du(t, e) { var r; return (e.wrap !== !1 || e.lookahead) && (t = `(${(r = e.lookahead) !== null && r !== void 0 ? r : ""}${t})`), e.cardinality ? `${t}${e.cardinality}` : t; } -function pFt(t) { +function gFt(t) { const e = [], r = t.Grammar; for (const n of r.rules) - J0(n) && rFt(n) && XBt(yI(n)) && e.push(n.name); + J0(n) && nFt(n) && ZBt(yI(n)) && e.push(n.name); return { multilineCommentRules: e, - nameRegexp: hBt + nameRegexp: fBt }; } function WL(t) { @@ -72089,10 +72160,10 @@ function Ade(t) { } return n(), n(), t; } -function gFt(t) { - return mFt(t) ? t.LABEL : t.name; -} function mFt(t) { + return vFt(t) ? t.LABEL : t.name; +} +function vFt(t) { return Ba(t.LABEL) && t.LABEL !== ""; } class tu { @@ -72178,7 +72249,7 @@ class wn { e.visit(this); } } -function vFt(t) { +function yFt(t) { return gt(t, G4); } function G4(t) { @@ -72240,7 +72311,7 @@ function G4(t) { const r = { type: "Terminal", name: t.terminalType.name, - label: gFt(t.terminalType), + label: mFt(t.terminalType), idx: t.idx }; Ba(t.label) && (r.terminalLabel = t.label); @@ -72307,13 +72378,13 @@ class lm { visitRule(e) { } } -function yFt(t) { +function bFt(t) { return t instanceof Fa || t instanceof fs || t instanceof Un || t instanceof mo || t instanceof vo || t instanceof Qa || t instanceof wn || t instanceof om; } function Ok(t, e = []) { return t instanceof fs || t instanceof Un || t instanceof Qa ? !0 : t instanceof Ya ? Nhe(t.definition, (n) => Ok(n, e)) : t instanceof ua && pa(e, t) ? !1 : t instanceof tu ? (t instanceof ua && e.push(t), Tl(t.definition, (n) => Ok(n, e))) : !1; } -function bFt(t) { +function xFt(t) { return t instanceof Ya; } function uc(t) { @@ -72414,14 +72485,14 @@ function Dx(t) { if (t instanceof ua) return Dx(t.referencedRule); if (t instanceof wn) - return OFt(t); - if (yFt(t)) - return xFt(t); + return kFt(t); if (bFt(t)) return wFt(t); + if (xFt(t)) + return OFt(t); throw Error("non exhaustive match"); } -function xFt(t) { +function wFt(t) { let e = []; const r = t.definition; let n = 0, i = r.length > n, s, a = !0; @@ -72429,15 +72500,15 @@ function xFt(t) { s = r[n], a = Ok(s), e = e.concat(Dx(s)), n = n + 1, i = r.length > n; return ZN(e); } -function wFt(t) { +function OFt(t) { const e = gt(t.definition, (r) => Dx(r)); return ZN(Yi(e)); } -function OFt(t) { +function kFt(t) { return [t.terminalType]; } const Lde = "_~IN~_"; -class kFt extends mC { +class SFt extends mC { constructor(e) { super(), this.topProd = e, this.follows = {}; } @@ -72447,37 +72518,37 @@ class kFt extends mC { walkTerminal(e, r, n) { } walkProdRef(e, r, n) { - const i = TFt(e.referencedRule, e.idx) + this.topProd.name, s = r.concat(n), a = new Fa({ definition: s }), o = Dx(a); + const i = CFt(e.referencedRule, e.idx) + this.topProd.name, s = r.concat(n), a = new Fa({ definition: s }), o = Dx(a); this.follows[i] = o; } } -function SFt(t) { +function TFt(t) { const e = {}; return $e(t, (r) => { - const n = new kFt(r).startWalking(); + const n = new SFt(r).startWalking(); ho(e, n); }), e; } -function TFt(t, e) { +function CFt(t, e) { return t.name + e + Lde; } let H4 = {}; -const CFt = new bde(); +const EFt = new bde(); function vC(t) { const e = t.toString(); if (H4.hasOwnProperty(e)) return H4[e]; { - const r = CFt.pattern(e); + const r = EFt.pattern(e); return H4[e] = r, r; } } -function EFt() { +function _Ft() { H4 = {}; } const Rde = "Complement Sets are not supported for first char optimization", kk = `Unable to use "first char" lexer optimizations: `; -function _Ft(t, e = !1) { +function AFt(t, e = !1) { try { const r = vC(t); return GL(r.value, {}, r.flags.ignoreCase); @@ -72565,9 +72636,9 @@ function GL(t, e, r) { } function OO(t, e, r) { const n = Cf(t); - e[n] = n, r === !0 && AFt(t, e); + e[n] = n, r === !0 && LFt(t, e); } -function AFt(t, e) { +function LFt(t, e) { const r = String.fromCharCode(t), n = r.toUpperCase(); if (n !== r) { const i = Cf(n.charCodeAt(0)); @@ -72594,7 +72665,7 @@ function HL(t) { const e = t.quantifier; return e && e.atLeast === 0 ? !0 : t.value ? Sr(t.value) ? Tl(t.value, HL) : HL(t.value) : !1; } -class LFt extends dC { +class RFt extends dC { constructor(e) { super(), this.targetCharCodes = e, this.found = !1; } @@ -72620,14 +72691,14 @@ class LFt extends dC { } function xI(t, e) { if (e instanceof RegExp) { - const r = vC(e), n = new LFt(t); + const r = vC(e), n = new RFt(t); return n.visit(r), n.found; } else return Xu(e, (r) => pa(t, r.charCodeAt(0))) !== void 0; } const b0 = "PATTERN", Ev = "defaultMode", kO = "modes"; let Mde = typeof new RegExp("(?:)").sticky == "boolean"; -function RFt(t, e) { +function MFt(t, e) { e = JT(e, { useSticky: Mde, debug: !1, @@ -72639,7 +72710,7 @@ function RFt(t, e) { }); const r = e.tracer; r("initCharCodeToOptimizedIndexMap", () => { - ezt(); + tzt(); }); let n; r("Reject Lexer.NA", () => { @@ -72710,7 +72781,7 @@ function RFt(t, e) { }); let d, p, g, m; r("Misc Mapping #2", () => { - d = gt(n, Dde), p = gt(s, jFt), g = gi(n, (b, w) => { + d = gt(n, Dde), p = gt(s, KFt), g = gi(n, (b, w) => { const O = w.GROUP; return Ba(O) && O !== Ia.SKIPPED && (b[O] = []), b; }, {}), m = gt(s, (b, w) => ({ @@ -72745,7 +72816,7 @@ function RFt(t, e) { This will disable the lexer's first char optimizations. For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNICODE_OPTIMIZE`); else { - const S = _Ft(w.PATTERN, e.ensureOptimizations); + const S = AFt(w.PATTERN, e.ensureOptimizations); $r(S) && (v = !1), $e(S, (C) => { $_(b, C, m[O]); }); @@ -72764,19 +72835,19 @@ function RFt(t, e) { canBeOptimized: v }; } -function MFt(t, e) { +function DFt(t, e) { let r = []; - const n = NFt(t); + const n = IFt(t); r = r.concat(n.errors); - const i = IFt(n.valid), s = i.valid; - return r = r.concat(i.errors), r = r.concat(DFt(s)), r = r.concat(qFt(s)), r = r.concat(QFt(s, e)), r = r.concat(YFt(s)), r; + const i = PFt(n.valid), s = i.valid; + return r = r.concat(i.errors), r = r.concat(NFt(s)), r = r.concat(QFt(s)), r = r.concat(YFt(s, e)), r = r.concat(WFt(s)), r; } -function DFt(t) { +function NFt(t) { let e = []; const r = Qn(t, (n) => Zu(n[b0])); - return e = e.concat($Ft(r)), e = e.concat(zFt(r)), e = e.concat(VFt(r)), e = e.concat(UFt(r)), e = e.concat(BFt(r)), e; + return e = e.concat(BFt(r)), e = e.concat(VFt(r)), e = e.concat(UFt(r)), e = e.concat(qFt(r)), e = e.concat(FFt(r)), e; } -function NFt(t) { +function IFt(t) { const e = Qn(t, (i) => !yt(i, b0)), r = gt(e, (i) => ({ message: "Token Type: ->" + i.name + "<- missing static 'PATTERN' property", type: qn.MISSING_PATTERN, @@ -72784,7 +72855,7 @@ function NFt(t) { })), n = eC(t, e); return { errors: r, valid: n }; } -function IFt(t) { +function PFt(t) { const e = Qn(t, (i) => { const s = i[b0]; return !Zu(s) && !Ho(s) && !yt(s, "exec") && !Ba(s); @@ -72795,8 +72866,8 @@ function IFt(t) { })), n = eC(t, e); return { errors: r, valid: n }; } -const PFt = /[^\\][$]/; -function $Ft(t) { +const $Ft = /[^\\][$]/; +function BFt(t) { class e extends dC { constructor() { super(...arguments), this.found = !1; @@ -72811,7 +72882,7 @@ function $Ft(t) { const a = vC(s), o = new e(); return o.visit(a), o.found; } catch { - return PFt.test(s.source); + return $Ft.test(s.source); } }); return gt(r, (i) => ({ @@ -72822,7 +72893,7 @@ function $Ft(t) { tokenTypes: [i] })); } -function BFt(t) { +function FFt(t) { const e = Qn(t, (n) => n.PATTERN.test("")); return gt(e, (n) => ({ message: "Token Type: ->" + n.name + "<- static 'PATTERN' must not match an empty string", @@ -72830,8 +72901,8 @@ function BFt(t) { tokenTypes: [n] })); } -const FFt = /[^\\[][\^]|^\^/; -function zFt(t) { +const zFt = /[^\\[][\^]|^\^/; +function VFt(t) { class e extends dC { constructor() { super(...arguments), this.found = !1; @@ -72846,7 +72917,7 @@ function zFt(t) { const a = vC(s), o = new e(); return o.visit(a), o.found; } catch { - return FFt.test(s.source); + return zFt.test(s.source); } }); return gt(r, (i) => ({ @@ -72857,7 +72928,7 @@ function zFt(t) { tokenTypes: [i] })); } -function VFt(t) { +function UFt(t) { const e = Qn(t, (n) => { const i = n[b0]; return i instanceof RegExp && (i.multiline || i.global); @@ -72868,7 +72939,7 @@ function VFt(t) { tokenTypes: [n] })); } -function UFt(t) { +function qFt(t) { const e = []; let r = gt(t, (s) => gi(t, (a, o) => (s.PATTERN.source === o.PATTERN.source && !pa(e, o) && o.PATTERN !== Ia.NA && (e.push(o), a.push(o)), a), [])); r = _x(r); @@ -72882,7 +72953,7 @@ function UFt(t) { }; }); } -function qFt(t) { +function QFt(t) { const e = Qn(t, (n) => { if (!yt(n, "GROUP")) return !1; @@ -72895,7 +72966,7 @@ function qFt(t) { tokenTypes: [n] })); } -function QFt(t, e) { +function YFt(t, e) { const r = Qn(t, (i) => i.PUSH_MODE !== void 0 && !pa(e, i.PUSH_MODE)); return gt(r, (i) => ({ message: `Token Type: ->${i.name}<- static 'PUSH_MODE' value cannot refer to a Lexer Mode ->${i.PUSH_MODE}<-which does not exist`, @@ -72903,14 +72974,14 @@ function QFt(t, e) { tokenTypes: [i] })); } -function YFt(t) { +function WFt(t) { const e = [], r = gi(t, (n, i, s) => { const a = i.PATTERN; - return a === Ia.NA || (Ba(a) ? n.push({ str: a, idx: s, tokenType: i }) : Zu(a) && GFt(a) && n.push({ str: a.source, idx: s, tokenType: i })), n; + return a === Ia.NA || (Ba(a) ? n.push({ str: a, idx: s, tokenType: i }) : Zu(a) && HFt(a) && n.push({ str: a.source, idx: s, tokenType: i })), n; }, []); return $e(t, (n, i) => { $e(r, ({ str: s, idx: a, tokenType: o }) => { - if (i < a && WFt(s, n.PATTERN)) { + if (i < a && GFt(s, n.PATTERN)) { const l = `Token: ->${o.name}<- can never be matched. Because it appears AFTER the Token Type ->${n.name}<-in the lexer's definition. See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNREACHABLE`; @@ -72923,7 +72994,7 @@ See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNREACHABLE`; }); }), e; } -function WFt(t, e) { +function GFt(t, e) { if (Zu(e)) { const r = e.exec(t); return r !== null && r.index === 0; @@ -72937,7 +73008,7 @@ function WFt(t, e) { throw Error("non exhaustive match"); } } -function GFt(t) { +function HFt(t) { return Xu([ ".", "\\", @@ -72962,7 +73033,7 @@ function iW(t) { const e = t.ignoreCase ? "iy" : "y"; return new RegExp(`${t.source}`, e); } -function HFt(t, e, r) { +function XFt(t, e, r) { const n = []; return yt(t, Ev) || n.push({ message: "A MultiMode Lexer cannot be initialized without a <" + Ev + `> property in its definition @@ -72997,7 +73068,7 @@ function HFt(t, e, r) { }); }), n; } -function XFt(t, e, r) { +function ZFt(t, e, r) { const n = []; let i = !1; const s = _x(Yi(Kr(t.modes))), a = rC(s, (l) => l[b0] === Ia.NA), o = Ide(r); @@ -73005,7 +73076,7 @@ function XFt(t, e, r) { const u = Nde(l, o); if (u !== !1) { const f = { - message: JFt(l, u), + message: ezt(l, u), type: u.issue, tokenType: l }; @@ -73021,7 +73092,7 @@ function XFt(t, e, r) { type: qn.NO_LINE_BREAKS_FLAGS }), n; } -function ZFt(t) { +function jFt(t) { const e = {}, r = ki(t); return $e(r, (n) => { const i = t[n]; @@ -73043,10 +73114,10 @@ function Dde(t) { return !1; throw Error("non exhaustive match"); } -function jFt(t) { +function KFt(t) { return Ba(t) && t.length === 1 ? t.charCodeAt(0) : !1; } -const KFt = { +const JFt = { test: function(t) { const e = t.length; for (let r = this.lastIndex; r < e; r++) { @@ -73081,7 +73152,7 @@ function Nde(t, e) { throw Error("non exhaustive match"); } } -function JFt(t, e) { +function ezt(t, e) { if (e.issue === qn.IDENTIFY_TERMINATOR) return `Warning: unable to identify line terminator usage in pattern. The problem is in the <${t.name}> Token Type @@ -73104,7 +73175,7 @@ let X4 = []; function Cf(t) { return t < _v ? t : X4[t]; } -function ezt() { +function tzt() { if ($r(X4)) { X4 = new Array(65536); for (let t = 0; t < 65536; t++) @@ -73121,12 +73192,12 @@ function Sk(t, e) { let sW = 1; const Pde = {}; function Ix(t) { - const e = tzt(t); - rzt(e), izt(e), nzt(e), $e(e, (r) => { + const e = rzt(t); + nzt(e), szt(e), izt(e), $e(e, (r) => { r.isParent = r.categoryMatches.length > 0; }); } -function tzt(t) { +function rzt(t) { let e = Ni(t), r = t, n = !0; for (; n; ) { r = _x(Yi(gt(r, (s) => s.CATEGORIES))); @@ -73135,19 +73206,19 @@ function tzt(t) { } return e; } -function rzt(t) { +function nzt(t) { $e(t, (e) => { - Bde(e) || (Pde[sW] = e, e.tokenTypeIdx = sW++), aW(e) && !Sr(e.CATEGORIES) && (e.CATEGORIES = [e.CATEGORIES]), aW(e) || (e.CATEGORIES = []), szt(e) || (e.categoryMatches = []), azt(e) || (e.categoryMatchesMap = {}); + Bde(e) || (Pde[sW] = e, e.tokenTypeIdx = sW++), aW(e) && !Sr(e.CATEGORIES) && (e.CATEGORIES = [e.CATEGORIES]), aW(e) || (e.CATEGORIES = []), azt(e) || (e.categoryMatches = []), ozt(e) || (e.categoryMatchesMap = {}); }); } -function nzt(t) { +function izt(t) { $e(t, (e) => { e.categoryMatches = [], $e(e.categoryMatchesMap, (r, n) => { e.categoryMatches.push(Pde[n].tokenTypeIdx); }); }); } -function izt(t) { +function szt(t) { $e(t, (e) => { $de([], e); }); @@ -73166,16 +73237,16 @@ function Bde(t) { function aW(t) { return yt(t, "CATEGORIES"); } -function szt(t) { +function azt(t) { return yt(t, "categoryMatches"); } -function azt(t) { +function ozt(t) { return yt(t, "categoryMatchesMap"); } -function ozt(t) { +function lzt(t) { return yt(t, "tokenTypeIdx"); } -const lzt = { +const czt = { buildUnableToPopLexerModeMessage(t) { return `Unable to pop Lexer Mode after encountering Token ->${t.image}<- The Mode Stack is empty`; }, @@ -73195,7 +73266,7 @@ const Av = { `, "\r"], ensureOptimizations: !1, safeMode: !1, - errorMessageProvider: lzt, + errorMessageProvider: czt, traceInitPerf: !1, skipValidations: !1, recoveryEnabled: !0 @@ -73221,7 +73292,7 @@ a boolean 2nd argument is no longer supported`); let i, s = !0; this.TRACE_INIT("Lexer Config handling", () => { if (this.config.lineTerminatorsPattern === Av.lineTerminatorsPattern) - this.config.lineTerminatorsPattern = KFt; + this.config.lineTerminatorsPattern = JFt; else if (this.config.lineTerminatorCharacters === Av.lineTerminatorCharacters) throw Error(`Error: Missing property on the Lexer config. For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#MISSING_LINE_TERM_CHARS`); @@ -73232,9 +73303,9 @@ a boolean 2nd argument is no longer supported`); defaultMode: Ev } : (s = !1, i = Ni(e)); }), this.config.skipValidations === !1 && (this.TRACE_INIT("performRuntimeChecks", () => { - this.lexerDefinitionErrors = this.lexerDefinitionErrors.concat(HFt(i, this.trackStartLines, this.config.lineTerminatorCharacters)); + this.lexerDefinitionErrors = this.lexerDefinitionErrors.concat(XFt(i, this.trackStartLines, this.config.lineTerminatorCharacters)); }), this.TRACE_INIT("performWarningRuntimeChecks", () => { - this.lexerDefinitionWarning = this.lexerDefinitionWarning.concat(XFt(i, this.trackStartLines, this.config.lineTerminatorCharacters)); + this.lexerDefinitionWarning = this.lexerDefinitionWarning.concat(ZFt(i, this.trackStartLines, this.config.lineTerminatorCharacters)); })), i.modes = i.modes ? i.modes : {}, $e(i.modes, (o, l) => { i.modes[l] = rC(o, (u) => qr(u)); }); @@ -73242,12 +73313,12 @@ a boolean 2nd argument is no longer supported`); if ($e(i.modes, (o, l) => { this.TRACE_INIT(`Mode: <${l}> processing`, () => { if (this.modes.push(l), this.config.skipValidations === !1 && this.TRACE_INIT("validatePatterns", () => { - this.lexerDefinitionErrors = this.lexerDefinitionErrors.concat(MFt(o, a)); + this.lexerDefinitionErrors = this.lexerDefinitionErrors.concat(DFt(o, a)); }), $r(this.lexerDefinitionErrors)) { Ix(o); let u; this.TRACE_INIT("analyzeTokenTypes", () => { - u = RFt(o, { + u = MFt(o, { lineTerminatorCharacters: this.config.lineTerminatorCharacters, positionTracking: r.positionTracking, ensureOptimizations: r.ensureOptimizations, @@ -73282,7 +73353,7 @@ a boolean 2nd argument is no longer supported`); Disable the "ensureOptimizations" lexer config flag to silently ignore this and run the lexer in an un-optimized mode. Or inspect the console log for details on how to resolve these issues.`); }), this.TRACE_INIT("clearRegExpParserCache", () => { - EFt(); + _Ft(); }), this.TRACE_INIT("toFastProperties", () => { Ade(this); }); @@ -73303,7 +73374,7 @@ a boolean 2nd argument is no longer supported`); let O = 0, S = 0; const C = this.hasCustom ? 0 : Math.floor(e.length / 10), T = new Array(C), A = []; let E = this.trackStartLines ? 1 : void 0, L = this.trackStartLines ? 1 : void 0; - const _ = ZFt(this.emptyGroups), R = this.trackStartLines, $ = this.config.lineTerminatorsPattern; + const _ = jFt(this.emptyGroups), R = this.trackStartLines, $ = this.config.lineTerminatorsPattern; let k = 0, N = [], M = []; const I = [], D = []; Object.freeze(D); @@ -73476,13 +73547,13 @@ function cg(t) { function Fde(t) { return Ba(t.LABEL) && t.LABEL !== ""; } -const czt = "parent", oW = "categories", lW = "label", cW = "group", uW = "push_mode", hW = "pop_mode", fW = "longer_alt", dW = "line_breaks", pW = "start_chars_hint"; +const uzt = "parent", oW = "categories", lW = "label", cW = "group", uW = "push_mode", hW = "pop_mode", fW = "longer_alt", dW = "line_breaks", pW = "start_chars_hint"; function zde(t) { - return uzt(t); + return hzt(t); } -function uzt(t) { +function hzt(t) { const e = t.pattern, r = {}; - if (r.name = t.name, qr(e) || (r.PATTERN = e), yt(t, czt)) + if (r.name = t.name, qr(e) || (r.PATTERN = e), yt(t, uzt)) throw `The parent property is no longer supported. See: https://github.com/chevrotain/chevrotain/issues/564#issuecomment-349062346 for details.`; return yt(t, oW) && (r.CATEGORIES = t[oW]), Ix([r]), yt(t, lW) && (r.LABEL = t[lW]), yt(t, cW) && (r.GROUP = t[cW]), yt(t, hW) && (r.POP_MODE = t[hW]), yt(t, uW) && (r.PUSH_MODE = t[uW]), yt(t, fW) && (r.LONGER_ALT = t[fW]), yt(t, dW) && (r.LINE_BREAKS = t[dW]), yt(t, pW) && (r.START_CHARS_HINT = t[pW]), r; @@ -73537,7 +73608,7 @@ but found: '` + Bl(e).image + "'"; } }; Object.freeze(Fp); -const hzt = { +const fzt = { buildRuleNotFoundError(t, e) { return "Invalid grammar, reference to a rule which is not defined: ->" + e.nonTerminalName + `<- inside top level rule: ->` + t.name + "<-"; @@ -73612,11 +73683,11 @@ see: https://en.wikipedia.org/wiki/LL_parser#Left_factoring.`; return t.topLevelRule instanceof om ? e = t.topLevelRule.name : e = t.topLevelRule, `Duplicate definition, rule: ->${e}<- is already defined in the grammar: ->${t.grammarName}<-`; } }; -function fzt(t, e) { - const r = new dzt(t, e); +function dzt(t, e) { + const r = new pzt(t, e); return r.resolveRefs(), r.errors; } -class dzt extends lm { +class pzt extends lm { constructor(e, r) { super(), this.nameToTopRule = e, this.errMsgProvider = r, this.errors = []; } @@ -73640,7 +73711,7 @@ class dzt extends lm { } } } -class pzt extends mC { +class gzt extends mC { constructor(e, r) { super(), this.topProd = e, this.path = r, this.possibleTokTypes = [], this.nextProductionName = "", this.nextProductionOccurrence = 0, this.found = !1, this.isAtEndOfPath = !1; } @@ -73662,7 +73733,7 @@ class pzt extends mC { $r(this.ruleStack) ? (this.nextProductionName = "", this.nextProductionOccurrence = 0, this.isAtEndOfPath = !0) : (this.nextProductionName = this.ruleStack.pop(), this.nextProductionOccurrence = this.occurrenceStack.pop()); } } -class gzt extends pzt { +class mzt extends gzt { constructor(e, r) { super(e, r), this.path = r, this.nextTerminalName = "", this.nextTerminalOccurrence = 0, this.nextTerminalName = this.path.lastTok.name, this.nextTerminalOccurrence = this.path.lastTokOccurrence; } @@ -73685,7 +73756,7 @@ class yC extends mC { return this.walk(this.topRule), this.result; } } -class mzt extends yC { +class vzt extends yC { walkMany(e, r, n) { if (e.idx === this.occurrence) { const i = Bl(r.concat(n)); @@ -73703,7 +73774,7 @@ class gW extends yC { super.walkManySep(e, r, n); } } -class vzt extends yC { +class yzt extends yC { walkAtLeastOne(e, r, n) { if (e.idx === this.occurrence) { const i = Bl(r.concat(n)); @@ -73940,13 +74011,13 @@ function Ude(t, e, r, n) { occurrenceStack: v }); else if (y instanceof om) - f.push(yzt(y, g, m, v)); + f.push(bzt(y, g, m, v)); else throw Error("non exhaustive match"); } return h; } -function yzt(t, e, r, n) { +function bzt(t, e, r, n) { const i = Ni(r); i.push(t.name); const s = Ni(n); @@ -73980,15 +74051,15 @@ function vW(t) { const { occurrence: e, rule: r, prodType: n, maxLookahead: i } = t, s = OI(n); return s === Dn.ALTERNATION ? bC(e, r, i) : xC(e, r, s, i); } -function bzt(t, e, r, n, i, s) { +function xzt(t, e, r, n, i, s) { const a = bC(t, e, r), o = Yde(a) ? Sk : Nx; return s(a, n, o, i); } -function xzt(t, e, r, n, i, s) { +function wzt(t, e, r, n, i, s) { const a = xC(t, e, i, r), o = Yde(a) ? Sk : Nx; return s(a[0], o, n); } -function wzt(t, e, r, n) { +function Ozt(t, e, r, n) { const i = t.length, s = Tl(t, (a) => Tl(a, (o) => o.length === 1)); if (e) return function(a) { @@ -74036,7 +74107,7 @@ function wzt(t, e, r, n) { } }; } -function Ozt(t, e, r) { +function kzt(t, e, r) { const n = Tl(t, (s) => s.length === 1), i = t.length; if (n && !r) { const s = Yi(t); @@ -74069,7 +74140,7 @@ function Ozt(t, e, r) { return !1; }; } -class kzt extends mC { +class Szt extends mC { constructor(e, r, n) { super(), this.topProd = e, this.targetOccurrence = r, this.targetProdType = n; } @@ -74143,7 +74214,7 @@ function B_(t) { } return e; } -function Szt(t, e, r) { +function Tzt(t, e, r) { for (let n = 0; n < t.length; n++) { if (n === r) continue; @@ -74174,7 +74245,7 @@ function Qde(t, e) { const u = o[l]; for (let h = 0; h < u.length; h++) { const f = u[h].partialPath, d = u[h].suffixDef, p = B_(f); - if (Szt(i, p, l) || $r(d) || f.length === e) { + if (Tzt(i, p, l) || $r(d) || f.length === e) { const m = n[l]; if (ZL(m, f) === !1) { m.push(f); @@ -74204,7 +74275,7 @@ function bC(t, e, r, n) { function xC(t, e, r, n) { const i = new qde(t, r); e.accept(i); - const s = i.result, o = new kzt(e, t, r).startWalking(), l = new Fa({ definition: s }), u = new Fa({ definition: o }); + const s = i.result, o = new Szt(e, t, r).startWalking(), l = new Fa({ definition: s }), u = new Fa({ definition: o }); return Qde([l, u], n); } function ZL(t, e) { @@ -74222,7 +74293,7 @@ function ZL(t, e) { } return !1; } -function Tzt(t, e) { +function Czt(t, e) { return t.length < e.length && Tl(t, (r, n) => { const i = e[n]; return r === i || i.categoryMatchesMap[r.tokenTypeIdx]; @@ -74231,7 +74302,7 @@ function Tzt(t, e) { function Yde(t) { return Tl(t, (e) => Tl(e, (r) => Tl(r, (n) => $r(n.categoryMatches)))); } -function Czt(t) { +function Ezt(t) { const e = t.lookaheadStrategy.validate({ rules: t.rules, tokenTypes: t.tokenTypes, @@ -74239,14 +74310,14 @@ function Czt(t) { }); return gt(e, (r) => Object.assign({ type: ha.CUSTOM_LOOKAHEAD_VALIDATION }, r)); } -function Ezt(t, e, r, n) { - const i = oo(t, (l) => _zt(l, r)), s = zzt(t, e, r), a = oo(t, (l) => Pzt(l, r)), o = oo(t, (l) => Rzt(l, t, n, r)); +function _zt(t, e, r, n) { + const i = oo(t, (l) => Azt(l, r)), s = Vzt(t, e, r), a = oo(t, (l) => $zt(l, r)), o = oo(t, (l) => Mzt(l, t, n, r)); return i.concat(s, a, o); } -function _zt(t, e) { - const r = new Lzt(); +function Azt(t, e) { + const r = new Rzt(); t.accept(r); - const n = r.allProductions, i = xMt(n, Azt), s = Hl(i, (o) => o.length > 1); + const n = r.allProductions, i = wMt(n, Lzt), s = Hl(i, (o) => o.length > 1); return gt(Kr(s), (o) => { const l = Bl(o), u = e.buildDuplicateFoundError(t, o), h = uc(l), f = { message: u, @@ -74258,13 +74329,13 @@ function _zt(t, e) { return d && (f.parameter = d), f; }); } -function Azt(t) { +function Lzt(t) { return `${uc(t)}_#_${t.idx}_#_${Wde(t)}`; } function Wde(t) { return t instanceof wn ? t.terminalType.name : t instanceof ua ? t.nonTerminalName : ""; } -class Lzt extends lm { +class Rzt extends lm { constructor() { super(...arguments), this.allProductions = []; } @@ -74293,7 +74364,7 @@ class Lzt extends lm { this.allProductions.push(e); } } -function Rzt(t, e, r, n) { +function Mzt(t, e, r, n) { const i = []; if (gi(e, (a, o) => o.name === t.name ? a + 1 : a, 0) > 1) { const a = n.buildDuplicateRuleNameError({ @@ -74308,7 +74379,7 @@ function Rzt(t, e, r, n) { } return i; } -function Mzt(t, e, r) { +function Dzt(t, e, r) { const n = []; let i; return pa(e, t) || (i = `Invalid rule override, rule: ->${t}<- cannot be overridden in the grammar: ->${r}<-as it is not defined in any of the super grammars `, n.push({ @@ -74366,7 +74437,7 @@ class kI extends lm { this.alternations.push(e); } } -function Dzt(t, e) { +function Nzt(t, e) { const r = new kI(); t.accept(r); const n = r.alternations; @@ -74390,16 +74461,16 @@ function Dzt(t, e) { }); }); } -function Nzt(t, e, r) { +function Izt(t, e, r) { const n = new kI(); t.accept(n); let i = n.alternations; return i = rC(i, (a) => a.ignoreAmbiguities === !0), oo(i, (a) => { - const o = a.idx, l = a.maxLookahead || e, u = bC(o, t, l, a), h = Bzt(u, a, t, r), f = Fzt(u, a, t, r); + const o = a.idx, l = a.maxLookahead || e, u = bC(o, t, l, a), h = Fzt(u, a, t, r), f = zzt(u, a, t, r); return h.concat(f); }); } -class Izt extends lm { +class Pzt extends lm { constructor() { super(...arguments), this.allProductions = []; } @@ -74416,7 +74487,7 @@ class Izt extends lm { this.allProductions.push(e); } } -function Pzt(t, e) { +function $zt(t, e) { const r = new kI(); t.accept(r); const n = r.alternations; @@ -74432,10 +74503,10 @@ function Pzt(t, e) { } ] : []); } -function $zt(t, e, r) { +function Bzt(t, e, r) { const n = []; return $e(t, (i) => { - const s = new Izt(); + const s = new Pzt(); i.accept(s); const a = s.allProductions; $e(a, (o) => { @@ -74454,7 +74525,7 @@ function $zt(t, e, r) { }); }), n; } -function Bzt(t, e, r, n) { +function Fzt(t, e, r, n) { const i = [], s = gi(t, (o, l, u) => (e.definition[u].ignoreAmbiguities === !0 || $e(l, (h) => { const f = [u]; $e(t, (d, p) => { @@ -74480,7 +74551,7 @@ function Bzt(t, e, r, n) { }; }); } -function Fzt(t, e, r, n) { +function zzt(t, e, r, n) { const i = gi(t, (a, o, l) => { const u = gt(o, (h) => ({ idx: l, path: h })); return a.concat(u); @@ -74488,7 +74559,7 @@ function Fzt(t, e, r, n) { return _x(oo(i, (a) => { if (e.definition[a.idx].ignoreAmbiguities === !0) return []; - const l = a.idx, u = a.path, h = Qn(i, (d) => e.definition[d.idx].ignoreAmbiguities !== !0 && d.idx < l && Tzt(d.path, u)); + const l = a.idx, u = a.path, h = Qn(i, (d) => e.definition[d.idx].ignoreAmbiguities !== !0 && d.idx < l && Czt(d.path, u)); return gt(h, (d) => { const p = [d.idx + 1, l + 1], g = e.idx === 0 ? "" : e.idx; return { @@ -74506,7 +74577,7 @@ function Fzt(t, e, r, n) { }); })); } -function zzt(t, e, r) { +function Vzt(t, e, r) { const n = [], i = gt(e, (s) => s.name); return $e(t, (s) => { const a = s.name; @@ -74520,18 +74591,18 @@ function zzt(t, e, r) { } }), n; } -function Vzt(t) { +function Uzt(t) { const e = JT(t, { - errMsgProvider: hzt + errMsgProvider: fzt }), r = {}; return $e(t.rules, (n) => { r[n.name] = n; - }), fzt(r, e.errMsgProvider); + }), dzt(r, e.errMsgProvider); } -function Uzt(t) { +function qzt(t) { return t = JT(t, { errMsgProvider: Pd - }), Ezt(t.rules, t.tokenTypes, t.errMsgProvider, t.grammarName); + }), _zt(t.rules, t.tokenTypes, t.errMsgProvider, t.grammarName); } const Hde = "MismatchedTokenException", Xde = "NoViableAltException", Zde = "EarlyExitException", jde = "NotAllInputParsedException", Kde = [ Hde, @@ -74553,30 +74624,30 @@ class Jde extends wC { super(e, r), this.previousToken = n, this.name = Hde; } } -class qzt extends wC { +class Qzt extends wC { constructor(e, r, n) { super(e, r), this.previousToken = n, this.name = Xde; } } -class Qzt extends wC { +class Yzt extends wC { constructor(e, r) { super(e, r), this.name = jde; } } -class Yzt extends wC { +class Wzt extends wC { constructor(e, r, n) { super(e, r), this.previousToken = n, this.name = Zde; } } const F_ = {}, e0e = "InRuleRecoveryException"; -class Wzt extends Error { +class Gzt extends Error { constructor(e) { super(e), this.name = e0e; } } -class Gzt { +class Hzt { initRecoverable(e) { - this.firstAfterRepMap = {}, this.resyncFollows = {}, this.recoveryEnabled = yt(e, "recoveryEnabled") ? e.recoveryEnabled : Ku.recoveryEnabled, this.recoveryEnabled && (this.attemptInRepetitionRecovery = Hzt); + this.firstAfterRepMap = {}, this.resyncFollows = {}, this.recoveryEnabled = yt(e, "recoveryEnabled") ? e.recoveryEnabled : Ku.recoveryEnabled, this.recoveryEnabled && (this.attemptInRepetitionRecovery = Xzt); } getTokenToInsert(e) { const r = wI(e, "", NaN, NaN, NaN, NaN, NaN, NaN); @@ -74627,7 +74698,7 @@ class Gzt { const n = this.SKIP_TOKEN(); return this.consumeToken(), n; } - throw new Wzt("sad sad panda"); + throw new Gzt("sad sad panda"); } canPerformInRuleRecovery(e, r) { return this.canRecoverWithSingleTokenInsertion(e, r) || this.canRecoverWithSingleTokenDeletion(e); @@ -74708,7 +74779,7 @@ class Gzt { return gt(this.RULE_STACK, (e) => this.shortRuleNameToFullName(e)); } } -function Hzt(t, e, r, n, i, s, a) { +function Xzt(t, e, r, n, i, s, a) { const o = this.getKeyForAutomaticLookahead(n, i); let l = this.firstAfterRepMap[o]; if (l === void 0) { @@ -74719,7 +74790,7 @@ function Hzt(t, e, r, n, i, s, a) { const f = l.isEndOfRule; this.RULE_STACK.length === 1 && f && u === void 0 && (u = Ef, h = 1), !(u === void 0 || h === void 0) && this.shouldInRepetitionRecoveryBeTried(u, h, a) && this.tryInRepetitionRecovery(t, e, r, u); } -const Xzt = 4, qf = 8, t0e = 1 << qf, r0e = 2 << qf, jL = 3 << qf, KL = 4 << qf, JL = 5 << qf, j4 = 6 << qf; +const Zzt = 4, qf = 8, t0e = 1 << qf, r0e = 2 << qf, jL = 3 << qf, KL = 4 << qf, JL = 5 << qf, j4 = 6 << qf; function z_(t, e, r) { return r | e | t; } @@ -74745,29 +74816,29 @@ class SI { return oo(e, (r) => Gde(r, r, Pd)); } validateEmptyOrAlternatives(e) { - return oo(e, (r) => Dzt(r, Pd)); + return oo(e, (r) => Nzt(r, Pd)); } validateAmbiguousAlternationAlternatives(e, r) { - return oo(e, (n) => Nzt(n, r, Pd)); + return oo(e, (n) => Izt(n, r, Pd)); } validateSomeNonEmptyLookaheadPath(e, r) { - return $zt(e, r, Pd); + return Bzt(e, r, Pd); } buildLookaheadForAlternation(e) { - return bzt(e.prodOccurrence, e.rule, e.maxLookahead, e.hasPredicates, e.dynamicTokensEnabled, wzt); + return xzt(e.prodOccurrence, e.rule, e.maxLookahead, e.hasPredicates, e.dynamicTokensEnabled, Ozt); } buildLookaheadForOptional(e) { - return xzt(e.prodOccurrence, e.rule, e.maxLookahead, e.dynamicTokensEnabled, OI(e.prodType), Ozt); + return wzt(e.prodOccurrence, e.rule, e.maxLookahead, e.dynamicTokensEnabled, OI(e.prodType), kzt); } } -class Zzt { +class jzt { initLooksAhead(e) { this.dynamicTokensEnabled = yt(e, "dynamicTokensEnabled") ? e.dynamicTokensEnabled : Ku.dynamicTokensEnabled, this.maxLookahead = yt(e, "maxLookahead") ? e.maxLookahead : Ku.maxLookahead, this.lookaheadStrategy = yt(e, "lookaheadStrategy") ? e.lookaheadStrategy : new SI({ maxLookahead: this.maxLookahead }), this.lookAheadFuncsCache = /* @__PURE__ */ new Map(); } preComputeLookaheadFunctions(e) { $e(e, (r) => { this.TRACE_INIT(`${r.name} Rule Lookahead`, () => { - const { alternation: n, repetition: i, option: s, repetitionMandatory: a, repetitionMandatoryWithSeparator: o, repetitionWithSeparator: l } = Kzt(r); + const { alternation: n, repetition: i, option: s, repetitionMandatory: a, repetitionMandatoryWithSeparator: o, repetitionWithSeparator: l } = Jzt(r); $e(n, (u) => { const h = u.idx === 0 ? "" : u.idx; this.TRACE_INIT(`${uc(u)}${h}`, () => { @@ -74817,7 +74888,7 @@ class Zzt { this.lookAheadFuncsCache.set(e, r); } } -class jzt extends lm { +class Kzt extends lm { constructor() { super(...arguments), this.dslMethods = { option: [], @@ -74857,8 +74928,8 @@ class jzt extends lm { this.dslMethods.alternation.push(e); } } -const SO = new jzt(); -function Kzt(t) { +const SO = new Kzt(); +function Jzt(t) { SO.reset(), t.accept(SO); const e = SO.dslMethods; return SO.reset(), e; @@ -74869,22 +74940,22 @@ function bW(t, e) { function xW(t, e) { isNaN(t.startOffset) === !0 ? (t.startOffset = e.startOffset, t.startColumn = e.startColumn, t.startLine = e.startLine, t.endOffset = e.endOffset, t.endColumn = e.endColumn, t.endLine = e.endLine) : t.endOffset < e.endOffset && (t.endOffset = e.endOffset, t.endColumn = e.endColumn, t.endLine = e.endLine); } -function Jzt(t, e, r) { +function eVt(t, e, r) { t.children[r] === void 0 ? t.children[r] = [e] : t.children[r].push(e); } -function eVt(t, e, r) { +function tVt(t, e, r) { t.children[e] === void 0 ? t.children[e] = [r] : t.children[e].push(r); } -const tVt = "name"; +const rVt = "name"; function n0e(t, e) { - Object.defineProperty(t, tVt, { + Object.defineProperty(t, rVt, { enumerable: !1, configurable: !0, writable: !1, value: e }); } -function rVt(t, e) { +function nVt(t, e) { const r = ki(t), n = r.length; for (let i = 0; i < n; i++) { const s = r[i], a = t[s], o = a.length; @@ -74894,7 +74965,7 @@ function rVt(t, e) { } } } -function nVt(t, e) { +function iVt(t, e) { const r = function() { }; n0e(r, t + "BaseSemantics"); @@ -74904,7 +74975,7 @@ function nVt(t, e) { return this[i.name](i.children, s); }, validateVisitor: function() { - const i = sVt(this, e); + const i = aVt(this, e); if (!$r(i)) { const s = gt(i, (a) => a.msg); throw Error(`Errors Detected in CST Visitor <${this.constructor.name}>: @@ -74917,23 +74988,23 @@ function nVt(t, e) { }; return r.prototype = n, r.prototype.constructor = r, r._RULE_NAMES = e, r; } -function iVt(t, e, r) { +function sVt(t, e, r) { const n = function() { }; n0e(n, t + "BaseSemanticsWithDefaults"); const i = Object.create(r.prototype); return $e(e, (s) => { - i[s] = rVt; + i[s] = nVt; }), n.prototype = i, n.prototype.constructor = n, n; } var e9; (function(t) { t[t.REDUNDANT_METHOD = 0] = "REDUNDANT_METHOD", t[t.MISSING_METHOD = 1] = "MISSING_METHOD"; })(e9 || (e9 = {})); -function sVt(t, e) { - return aVt(t, e); -} function aVt(t, e) { + return oVt(t, e); +} +function oVt(t, e) { const r = Qn(e, (i) => Ho(t[i]) === !1), n = gt(r, (i) => ({ msg: `Missing visitor method: <${i}> on ${t.constructor.name} CST Visitor.`, type: e9.MISSING_METHOD, @@ -74941,7 +75012,7 @@ function aVt(t, e) { })); return _x(n); } -class oVt { +class lVt { initTreeBuilder(e) { if (this.CST_STACK = [], this.outputCst = e.outputCst, this.nodeLocationTracking = yt(e, "nodeLocationTracking") ? e.nodeLocationTracking : Ku.nodeLocationTracking, !this.outputCst) this.cstInvocationStateUpdate = vi, this.cstFinallyStateUpdate = vi, this.cstPostTerminal = vi, this.cstPostNonTerminal = vi, this.cstPostRule = vi; @@ -75007,22 +75078,22 @@ class oVt { } cstPostTerminal(e, r) { const n = this.CST_STACK[this.CST_STACK.length - 1]; - Jzt(n, r, e), this.setNodeLocationFromToken(n.location, r); + eVt(n, r, e), this.setNodeLocationFromToken(n.location, r); } cstPostNonTerminal(e, r) { const n = this.CST_STACK[this.CST_STACK.length - 1]; - eVt(n, r, e), this.setNodeLocationFromNode(n.location, e.location); + tVt(n, r, e), this.setNodeLocationFromNode(n.location, e.location); } getBaseCstVisitorConstructor() { if (qr(this.baseCstVisitorConstructor)) { - const e = nVt(this.className, ki(this.gastProductionsCache)); + const e = iVt(this.className, ki(this.gastProductionsCache)); return this.baseCstVisitorConstructor = e, e; } return this.baseCstVisitorConstructor; } getBaseCstVisitorConstructorWithDefaults() { if (qr(this.baseCstVisitorWithDefaultsConstructor)) { - const e = iVt(this.className, ki(this.gastProductionsCache), this.getBaseCstVisitorConstructor()); + const e = sVt(this.className, ki(this.gastProductionsCache), this.getBaseCstVisitorConstructor()); return this.baseCstVisitorWithDefaultsConstructor = e, e; } return this.baseCstVisitorWithDefaultsConstructor; @@ -75040,7 +75111,7 @@ class oVt { return e[e.length - 1]; } } -class lVt { +class cVt { initLexerAdapter() { this.tokVector = [], this.tokVectorLength = 0, this.currIdx = -1; } @@ -75078,7 +75149,7 @@ class lVt { return this.exportLexerState(); } } -class cVt { +class uVt { ACTION(e) { return e.call(this); } @@ -75357,7 +75428,7 @@ class cVt { return this[e] = i, i; } OVERRIDE_RULE(e, r, n = _k) { - const i = Mzt(e, this.definedRulesNames, this.className); + const i = Dzt(e, this.definedRulesNames, this.className); this.definitionErrors = this.definitionErrors.concat(i); const s = this.defineRule(e, r, n); return this[e] = s, s; @@ -75381,10 +75452,10 @@ class cVt { return this.gastProductionsCache; } getSerializedGastProductions() { - return vFt(Kr(this.gastProductionsCache)); + return yFt(Kr(this.gastProductionsCache)); } } -class uVt { +class hVt { initRecognizerEngine(e, r) { if (this.className = this.constructor.name, this.shortRuleNameToFull = {}, this.fullRuleNameToShort = {}, this.ruleShortNameIdx = 256, this.tokenMatcher = Sk, this.subruleIdx = 0, this.definedRulesNames = [], this.tokensMap = {}, this.isBackTrackingStack = [], this.RULE_STACK = [], this.RULE_OCCURRENCE_STACK = [], this.gastProductionsCache = {}, yt(r, "serializedGrammar")) throw Error(`The Parser's configuration can no longer contain a property. @@ -75402,7 +75473,7 @@ class uVt { } if (Sr(e)) this.tokensMap = gi(e, (s, a) => (s[a.name] = a, s), {}); - else if (yt(e, "modes") && Tl(Yi(Kr(e.modes)), ozt)) { + else if (yt(e, "modes") && Tl(Yi(Kr(e.modes)), lzt)) { const s = Yi(Kr(e.modes)), a = ZN(s); this.tokensMap = gi(a, (o, l) => (o[l.name] = l, o), {}); } else if ($a(e)) @@ -75417,7 +75488,7 @@ class uVt { if (this.selfAnalysisDone) throw Error(`Grammar rule <${e}> may not be defined after the 'performSelfAnalysis' method has been called' Make sure that all grammar rule definitions are done before 'performSelfAnalysis' is called.`); - const i = yt(n, "resyncEnabled") ? n.resyncEnabled : _k.resyncEnabled, s = yt(n, "recoveryValueFunc") ? n.recoveryValueFunc : _k.recoveryValueFunc, a = this.ruleShortNameIdx << Xzt + qf; + const i = yt(n, "resyncEnabled") ? n.resyncEnabled : _k.resyncEnabled, s = yt(n, "recoveryValueFunc") ? n.recoveryValueFunc : _k.recoveryValueFunc, a = this.ruleShortNameIdx << Zzt + qf; this.ruleShortNameIdx++, this.shortRuleNameToFull[a] = e, this.fullRuleNameToShort[e] = a; let o; return this.outputCst === !0 ? o = function(...h) { @@ -75506,7 +75577,7 @@ Make sure that all grammar rule definitions are done before 'performSelfAnalysis a = this.doSingleRepetition(s); } else throw this.raiseEarlyExitException(e, Dn.REPETITION_MANDATORY, r.ERR_MSG); - this.attemptInRepetitionRecovery(this.atLeastOneInternal, [e, r], i, KL, e, vzt); + this.attemptInRepetitionRecovery(this.atLeastOneInternal, [e, r], i, KL, e, yzt); } atLeastOneSepFirstInternal(e, r) { const n = this.getKeyForAutomaticLookahead(j4, e); @@ -75553,7 +75624,7 @@ Make sure that all grammar rule definitions are done before 'performSelfAnalysis i, jL, e, - mzt, + vzt, a ); } @@ -75604,7 +75675,7 @@ Make sure that all grammar rule definitions are done before 'performSelfAnalysis firstRedundant: e, ruleName: this.getCurrRuleFullName() }); - this.SAVE_ERROR(new Qzt(r, e)); + this.SAVE_ERROR(new Yzt(r, e)); } } subruleInternal(e, r, n) { @@ -75682,7 +75753,7 @@ Make sure that all grammar rule definitions are done before 'performSelfAnalysis this.resetLexerState(), this.subruleIdx = 0, this.isBackTrackingStack = [], this.errors = [], this.RULE_STACK = [], this.CST_STACK = [], this.RULE_OCCURRENCE_STACK = []; } } -class hVt { +class fVt { initErrorHandler(e) { this._errors = [], this.errorMessageProvider = yt(e, "errorMessageProvider") ? e.errorMessageProvider : Ku.errorMessageProvider; } @@ -75711,7 +75782,7 @@ class hVt { customUserDescription: n, ruleName: i }); - throw this.SAVE_ERROR(new Yzt(u, this.LA(1), this.LA(0))); + throw this.SAVE_ERROR(new Wzt(u, this.LA(1), this.LA(0))); } raiseNoAltException(e, r) { const n = this.getCurrRuleFullName(), i = this.getGAstProductions()[n], s = bC(e, i, this.maxLookahead), a = []; @@ -75724,10 +75795,10 @@ class hVt { customUserDescription: r, ruleName: this.getCurrRuleFullName() }); - throw this.SAVE_ERROR(new qzt(l, this.LA(1), o)); + throw this.SAVE_ERROR(new Qzt(l, this.LA(1), o)); } } -class fVt { +class dVt { initContentAssist() { } computeContentAssist(e, r) { @@ -75738,7 +75809,7 @@ class fVt { } getNextPossibleTokenTypes(e) { const r = Bl(e.ruleStack), i = this.getGAstProductions()[r]; - return new gzt(i, e).startWalking(); + return new mzt(i, e).startWalking(); } } const OC = { @@ -75759,12 +75830,12 @@ const s0e = wI( -1 ); Object.freeze(s0e); -const dVt = { +const pVt = { name: `This CSTNode indicates the Parser is in Recording Phase See: https://chevrotain.io/docs/guide/internals.html#grammar-recording for details`, children: {} }; -class pVt { +class gVt { initGastRecorder(e) { this.recordingProdStack = [], this.RECORDING_PHASE = !1; } @@ -75855,7 +75926,7 @@ class pVt { tv.call(this, Qa, r, e, wW); } orInternalRecord(e, r) { - return gVt.call(this, e, r); + return mVt.call(this, e, r); } subruleInternalRecord(e, r, n) { if (Ck(r), !e || yt(e, "ruleName") === !1) { @@ -75869,7 +75940,7 @@ class pVt { label: n == null ? void 0 : n.LABEL, referencedRule: void 0 }); - return i.definition.push(a), this.outputCst ? dVt : OC; + return i.definition.push(a), this.outputCst ? pVt : OC; } consumeInternalRecord(e, r, n) { if (Ck(r), !Bde(e)) { @@ -75890,7 +75961,7 @@ function tv(t, e, r, n = !1) { const i = $c(this.recordingProdStack), s = Ho(e) ? e : e.DEF, a = new t({ definition: [], idx: r }); return n && (a.separator = e.SEP), yt(e, "MAX_LOOKAHEAD") && (a.maxLookahead = e.MAX_LOOKAHEAD), this.recordingProdStack.push(a), s.call(this), i.definition.push(a), this.recordingProdStack.pop(), OC; } -function gVt(t, e) { +function mVt(t, e) { Ck(e); const r = $c(this.recordingProdStack), n = Sr(t) === !1, i = n === !1 ? t : t.DEF, s = new Ya({ definition: [], @@ -75916,7 +75987,7 @@ function Ck(t) { throw e.KNOWN_RECORDER_ERROR = !0, e; } } -class mVt { +class vVt { initPerformanceTracer(e) { if (yt(e, "traceInitPerf")) { const r = e.traceInitPerf, n = typeof r == "number"; @@ -75936,7 +76007,7 @@ class mVt { return r(); } } -function vVt(t, e) { +function yVt(t, e) { e.forEach((r) => { const n = r.prototype; Object.getOwnPropertyNames(n).forEach((i) => { @@ -75998,17 +76069,17 @@ class Px { }); let n = []; if (this.TRACE_INIT("Grammar Resolving", () => { - n = Vzt({ + n = Uzt({ rules: Kr(this.gastProductionsCache) }), this.definitionErrors = this.definitionErrors.concat(n); }), this.TRACE_INIT("Grammar Validations", () => { if ($r(n) && this.skipValidations === !1) { - const i = Uzt({ + const i = qzt({ rules: Kr(this.gastProductionsCache), tokenTypes: Kr(this.tokensMap), errMsgProvider: Pd, grammarName: r - }), s = Czt({ + }), s = Ezt({ lookaheadStrategy: this.lookaheadStrategy, rules: Kr(this.gastProductionsCache), tokenTypes: Kr(this.tokensMap), @@ -76017,7 +76088,7 @@ class Px { this.definitionErrors = this.definitionErrors.concat(i, s); } }), $r(this.definitionErrors) && (this.recoveryEnabled && this.TRACE_INIT("computeAllProdsFollows", () => { - const i = SFt(Kr(this.gastProductionsCache)); + const i = TFt(Kr(this.gastProductionsCache)); this.resyncFollows = i; }), this.TRACE_INIT("ComputeLookaheadFunctions", () => { var i, s; @@ -76043,19 +76114,19 @@ class Px { } } Px.DEFER_DEFINITION_ERRORS_HANDLING = !1; -vVt(Px, [ - Gzt, - Zzt, - oVt, +yVt(Px, [ + Hzt, + jzt, lVt, - uVt, cVt, hVt, + uVt, fVt, - pVt, - mVt + dVt, + gVt, + vVt ]); -class yVt extends Px { +class bVt extends Px { constructor(e, r = Ku) { const n = Ni(r); n.outputCst = !1, super(e, n); @@ -76064,7 +76135,7 @@ class yVt extends Px { function p1(t, e, r) { return `${t.name}_${e}_${r}`; } -const _f = 1, bVt = 2, a0e = 4, o0e = 5, $x = 7, xVt = 8, wVt = 9, OVt = 10, kVt = 11, l0e = 12; +const _f = 1, xVt = 2, a0e = 4, o0e = 5, $x = 7, wVt = 8, OVt = 9, kVt = 10, SVt = 11, l0e = 12; class TI { constructor(e) { this.target = e; @@ -76094,7 +76165,7 @@ class EI extends TI { return !0; } } -function SVt(t) { +function TVt(t) { const e = { decisionMap: {}, decisionStates: [], @@ -76102,19 +76173,19 @@ function SVt(t) { ruleToStopState: /* @__PURE__ */ new Map(), states: [] }; - TVt(e, t); + CVt(e, t); const r = t.length; for (let n = 0; n < r; n++) { const i = t[n], s = ep(e, i, i); - s !== void 0 && PVt(e, i, s); + s !== void 0 && $Vt(e, i, s); } return e; } -function TVt(t, e) { +function CVt(t, e) { const r = e.length; for (let n = 0; n < r; n++) { const i = e[n], s = Wi(t, i, void 0, { - type: bVt + type: xVt }), a = Wi(t, i, void 0, { type: $x }); @@ -76122,9 +76193,9 @@ function TVt(t, e) { } } function u0e(t, e, r) { - return r instanceof wn ? _I(t, e, r.terminalType, r) : r instanceof ua ? IVt(t, e, r) : r instanceof Ya ? LVt(t, e, r) : r instanceof fs ? RVt(t, e, r) : r instanceof Un ? CVt(t, e, r) : r instanceof Qa ? EVt(t, e, r) : r instanceof mo ? _Vt(t, e, r) : r instanceof vo ? AVt(t, e, r) : ep(t, e, r); + return r instanceof wn ? _I(t, e, r.terminalType, r) : r instanceof ua ? PVt(t, e, r) : r instanceof Ya ? RVt(t, e, r) : r instanceof fs ? MVt(t, e, r) : r instanceof Un ? EVt(t, e, r) : r instanceof Qa ? _Vt(t, e, r) : r instanceof mo ? AVt(t, e, r) : r instanceof vo ? LVt(t, e, r) : ep(t, e, r); } -function CVt(t, e, r) { +function EVt(t, e, r) { const n = Wi(t, e, r, { type: o0e }); @@ -76132,7 +76203,7 @@ function CVt(t, e, r) { const i = cm(t, e, n, r, ep(t, e, r)); return f0e(t, e, r, i); } -function EVt(t, e, r) { +function _Vt(t, e, r) { const n = Wi(t, e, r, { type: o0e }); @@ -76140,7 +76211,7 @@ function EVt(t, e, r) { const i = cm(t, e, n, r, ep(t, e, r)), s = _I(t, e, r.separator, r); return f0e(t, e, r, i, s); } -function _Vt(t, e, r) { +function AVt(t, e, r) { const n = Wi(t, e, r, { type: a0e }); @@ -76148,7 +76219,7 @@ function _Vt(t, e, r) { const i = cm(t, e, n, r, ep(t, e, r)); return h0e(t, e, r, i); } -function AVt(t, e, r) { +function LVt(t, e, r) { const n = Wi(t, e, r, { type: a0e }); @@ -76156,7 +76227,7 @@ function AVt(t, e, r) { const i = cm(t, e, n, r, ep(t, e, r)), s = _I(t, e, r.separator, r); return h0e(t, e, r, i, s); } -function LVt(t, e, r) { +function RVt(t, e, r) { const n = Wi(t, e, r, { type: _f }); @@ -76164,21 +76235,21 @@ function LVt(t, e, r) { const i = gt(r.definition, (a) => u0e(t, e, a)); return cm(t, e, n, r, ...i); } -function RVt(t, e, r) { +function MVt(t, e, r) { const n = Wi(t, e, r, { type: _f }); Qf(t, n); const i = cm(t, e, n, r, ep(t, e, r)); - return MVt(t, e, r, i); + return DVt(t, e, r, i); } function ep(t, e, r) { const n = Qn(gt(r.definition, (i) => u0e(t, e, i)), (i) => i !== void 0); - return n.length === 1 ? n[0] : n.length === 0 ? void 0 : NVt(t, n); + return n.length === 1 ? n[0] : n.length === 0 ? void 0 : IVt(t, n); } function h0e(t, e, r, n, i) { const s = n.left, a = n.right, o = Wi(t, e, r, { - type: kVt + type: SVt }); Qf(t, o); const l = Wi(t, e, r, { @@ -76191,20 +76262,20 @@ function h0e(t, e, r, n, i) { } function f0e(t, e, r, n, i) { const s = n.left, a = n.right, o = Wi(t, e, r, { - type: OVt + type: kVt }); Qf(t, o); const l = Wi(t, e, r, { type: l0e }), u = Wi(t, e, r, { - type: wVt + type: OVt }); return o.loopback = u, l.loopback = u, oi(o, s), oi(o, l), oi(a, u), i !== void 0 ? (oi(u, l), oi(u, i.left), oi(i.right, s)) : oi(u, o), t.decisionMap[p1(e, i ? "RepetitionWithSeparator" : "Repetition", r.idx)] = o, { left: o, right: l }; } -function MVt(t, e, r, n) { +function DVt(t, e, r, n) { const i = n.left, s = n.right; return oi(i, s), t.decisionMap[p1(e, "Option", r.idx)] = i, n; } @@ -76213,7 +76284,7 @@ function Qf(t, e) { } function cm(t, e, r, n, ...i) { const s = Wi(t, e, n, { - type: xVt, + type: wVt, start: r }); r.end = s; @@ -76223,9 +76294,9 @@ function cm(t, e, r, n, ...i) { left: r, right: s }; - return t.decisionMap[p1(e, DVt(n), n.idx)] = r, a; + return t.decisionMap[p1(e, NVt(n), n.idx)] = r, a; } -function DVt(t) { +function NVt(t) { if (t instanceof Ya) return "Alternation"; if (t instanceof fs) @@ -76240,14 +76311,14 @@ function DVt(t) { return "RepetitionMandatoryWithSeparator"; throw new Error("Invalid production type encountered"); } -function NVt(t, e) { +function IVt(t, e) { const r = e.length; for (let s = 0; s < r - 1; s++) { const a = e[s]; let o; a.left.transitions.length === 1 && (o = a.left.transitions[0]); const l = o instanceof EI, u = o, h = e[s + 1].left; - a.left.type === _f && a.right.type === _f && o !== void 0 && (l && u.followState === a.right || o.target === a.right) ? (l ? u.followState = h : o.target = h, $Vt(t, a.right)) : oi(a.right, h); + a.left.type === _f && a.right.type === _f && o !== void 0 && (l && u.followState === a.right || o.target === a.right) ? (l ? u.followState = h : o.target = h, BVt(t, a.right)) : oi(a.right, h); } const n = e[0], i = e[r - 1]; return { @@ -76266,7 +76337,7 @@ function _I(t, e, r, n) { right: s }; } -function IVt(t, e, r) { +function PVt(t, e, r) { const n = r.referencedRule, i = t.ruleToStartState.get(n), s = Wi(t, e, r, { type: _f }), a = Wi(t, e, r, { @@ -76277,7 +76348,7 @@ function IVt(t, e, r) { right: a }; } -function PVt(t, e, r) { +function $Vt(t, e, r) { const n = t.ruleToStartState.get(e); oi(n, r.left); const i = t.ruleToStopState.get(e); @@ -76305,7 +76376,7 @@ function Wi(t, e, r, n) { function AI(t, e) { t.transitions.length === 0 && (t.epsilonOnlyTransitions = e.isEpsilon()), t.transitions.push(e); } -function $Vt(t, e) { +function BVt(t, e) { t.states.splice(t.states.indexOf(e), 1); } const Ak = {}; @@ -76339,7 +76410,7 @@ class t9 { function d0e(t, e = !0) { return `${e ? `a${t.alt}` : ""}s${t.state.stateNumber}:${t.stack.map((r) => r.stateNumber.toString()).join("_")}`; } -function BVt(t, e) { +function FVt(t, e) { const r = {}; return (n) => { const i = n.toString(); @@ -76370,13 +76441,13 @@ class p0e { } } const TW = new p0e(); -class FVt extends SI { +class zVt extends SI { constructor(e) { var r; super(), this.logging = (r = e == null ? void 0 : e.logging) !== null && r !== void 0 ? r : (n) => console.log(n); } initialize(e) { - this.atn = SVt(e.rules), this.dfas = zVt(this.atn); + this.atn = TVt(e.rules), this.dfas = VVt(this.atn); } validateAmbiguousAlternationAlternatives() { return []; @@ -76475,53 +76546,53 @@ function CW(t, e = !0) { } return !0; } -function zVt(t) { +function VVt(t) { const e = t.decisionStates.length, r = Array(e); for (let n = 0; n < e; n++) - r[n] = BVt(t.decisionStates[n], n); + r[n] = FVt(t.decisionStates[n], n); return r; } function V_(t, e, r, n) { const i = t[e](r); let s = i.start; if (s === void 0) { - const o = jVt(i.atnStartState); + const o = KVt(i.atnStartState); s = m0e(i, g0e(o)), i.start = s; } - return VVt.apply(this, [i, s, r, n]); + return UVt.apply(this, [i, s, r, n]); } -function VVt(t, e, r, n) { +function UVt(t, e, r, n) { let i = e, s = 1; const a = []; let o = this.LA(s++); for (; ; ) { - let l = GVt(i, o); - if (l === void 0 && (l = UVt.apply(this, [t, i, o, s, r, n])), l === Ak) - return WVt(a, i, o); + let l = HVt(i, o); + if (l === void 0 && (l = qVt.apply(this, [t, i, o, s, r, n])), l === Ak) + return GVt(a, i, o); if (l.isAcceptState === !0) return l.prediction; i = l, a.push(o), o = this.LA(s++); } } -function UVt(t, e, r, n, i, s) { - const a = HVt(e.configs, r, i); +function qVt(t, e, r, n, i, s) { + const a = XVt(e.configs, r, i); if (a.size === 0) return EW(t, e, r, Ak), Ak; let o = g0e(a); - const l = ZVt(a, i); + const l = jVt(a, i); if (l !== void 0) o.isAcceptState = !0, o.prediction = l, o.configs.uniqueAlt = l; - else if (tUt(a)) { + else if (rUt(a)) { const u = u1(a.alts); - o.isAcceptState = !0, o.prediction = u, o.configs.uniqueAlt = u, qVt.apply(this, [t, n, a.alts, s]); + o.isAcceptState = !0, o.prediction = u, o.configs.uniqueAlt = u, QVt.apply(this, [t, n, a.alts, s]); } return o = EW(t, e, r, o), o; } -function qVt(t, e, r, n) { +function QVt(t, e, r, n) { const i = []; for (let u = 1; u <= e; u++) i.push(this.LA(u).tokenType); - const s = t.atnStartState, a = s.rule, o = s.production, l = QVt({ + const s = t.atnStartState, a = s.rule, o = s.production, l = YVt({ topLevelRule: a, ambiguityIndices: r, production: o, @@ -76529,15 +76600,15 @@ function qVt(t, e, r, n) { }); n(l); } -function QVt(t) { +function YVt(t) { const e = gt(t.prefixPath, (i) => cg(i)).join(", "), r = t.production.idx === 0 ? "" : t.production.idx; - let n = `Ambiguous Alternatives Detected: <${t.ambiguityIndices.join(", ")}> in <${YVt(t.production)}${r}> inside <${t.topLevelRule.name}> Rule, + let n = `Ambiguous Alternatives Detected: <${t.ambiguityIndices.join(", ")}> in <${WVt(t.production)}${r}> inside <${t.topLevelRule.name}> Rule, <${e}> may appears as a prefix path in all these alternatives. `; return n = n + `See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#AMBIGUOUS_ALTERNATIVES For Further details.`, n; } -function YVt(t) { +function WVt(t) { if (t instanceof ua) return "SUBRULE"; if (t instanceof fs) @@ -76556,18 +76627,18 @@ function YVt(t) { return "CONSUME"; throw Error("non exhaustive match"); } -function WVt(t, e, r) { - const n = oo(e.configs.elements, (s) => s.state.transitions), i = tDt(n.filter((s) => s instanceof CI).map((s) => s.tokenType), (s) => s.tokenTypeIdx); +function GVt(t, e, r) { + const n = oo(e.configs.elements, (s) => s.state.transitions), i = rDt(n.filter((s) => s instanceof CI).map((s) => s.tokenType), (s) => s.tokenTypeIdx); return { actualToken: r, possibleTokenTypes: i, tokenPath: t }; } -function GVt(t, e) { +function HVt(t, e) { return t.edges[e.tokenTypeIdx]; } -function HVt(t, e, r) { +function XVt(t, e, r) { const n = new t9(), i = []; for (const a of t.elements) { if (r.is(a.alt) === !1) @@ -76578,7 +76649,7 @@ function HVt(t, e, r) { } const o = a.state.transitions.length; for (let l = 0; l < o; l++) { - const u = a.state.transitions[l], h = XVt(u, e); + const u = a.state.transitions[l], h = ZVt(u, e); h !== void 0 && n.add({ state: h, alt: a.alt, @@ -76592,16 +76663,16 @@ function HVt(t, e, r) { for (const a of n.elements) Lk(a, s); } - if (i.length > 0 && !JVt(s)) + if (i.length > 0 && !eUt(s)) for (const a of i) s.add(a); return s; } -function XVt(t, e) { +function ZVt(t, e) { if (t instanceof CI && Vde(e, t.tokenType)) return t.target; } -function ZVt(t, e) { +function jVt(t, e) { let r; for (const n of t.elements) if (e.is(n.alt) === !0) { @@ -76629,7 +76700,7 @@ function m0e(t, e) { const r = e.configs.key, n = t.states[r]; return n !== void 0 ? n : (e.configs.finalize(), t.states[r] = e, e); } -function jVt(t) { +function KVt(t) { const e = new t9(), r = t.transitions.length; for (let n = 0; n < r; n++) { const s = { @@ -76658,11 +76729,11 @@ function Lk(t, e) { r.epsilonOnlyTransitions || e.add(t); const n = r.transitions.length; for (let i = 0; i < n; i++) { - const s = r.transitions[i], a = KVt(t, s); + const s = r.transitions[i], a = JVt(t, s); a !== void 0 && Lk(a, e); } } -function KVt(t, e) { +function JVt(t, e) { if (e instanceof c0e) return { state: e.target, @@ -76678,25 +76749,25 @@ function KVt(t, e) { }; } } -function JVt(t) { +function eUt(t) { for (const e of t.elements) if (e.state.type === $x) return !0; return !1; } -function eUt(t) { +function tUt(t) { for (const e of t.elements) if (e.state.type !== $x) return !1; return !0; } -function tUt(t) { - if (eUt(t)) +function rUt(t) { + if (tUt(t)) return !0; - const e = rUt(t.elements); - return nUt(e) && !iUt(e); + const e = nUt(t.elements); + return iUt(e) && !sUt(e); } -function rUt(t) { +function nUt(t) { const e = /* @__PURE__ */ new Map(); for (const r of t) { const n = d0e(r, !1); @@ -76705,13 +76776,13 @@ function rUt(t) { } return e; } -function nUt(t) { +function iUt(t) { for (const e of Array.from(t.values())) if (Object.keys(e).length > 1) return !0; return !1; } -function iUt(t) { +function sUt(t) { for (const e of Array.from(t.values())) if (Object.keys(e).length === 1) return !0; @@ -77493,7 +77564,7 @@ var EG; var _G; (function(t) { function e(s, a, o, l) { - return new sUt(s, a, o, l); + return new aUt(s, a, o, l); } t.create = e; function r(s) { @@ -77532,7 +77603,7 @@ var _G; return s; } })(_G || (_G = {})); -class sUt { +class aUt { constructor(e, r, n, i) { this._uri = e, this._languageId = r, this._version = n, this._content = i, this._lineOffsets = void 0; } @@ -77642,7 +77713,7 @@ var Fe; } t.typedArray = d; })(Fe || (Fe = {})); -class aUt { +class oUt { constructor() { this.nodeStack = []; } @@ -77826,7 +77897,7 @@ class x0e { constructor(e) { this._unorderedGroups = /* @__PURE__ */ new Map(), this.lexer = e.parser.Lexer; const r = this.lexer.definition; - this.wrapper = new hUt(r, Object.assign(Object.assign({}, e.parser.ParserConfig), { errorMessageProvider: e.parser.ParserErrorMessageProvider })); + this.wrapper = new fUt(r, Object.assign(Object.assign({}, e.parser.ParserConfig), { errorMessageProvider: e.parser.ParserErrorMessageProvider })); } alternatives(e, r) { this.wrapper.wrapOr(e, r); @@ -77853,12 +77924,12 @@ class x0e { this.wrapper.wrapSelfAnalysis(); } } -class oUt extends x0e { +class lUt extends x0e { get current() { return this.stack[this.stack.length - 1]; } constructor(e) { - super(e), this.nodeBuilder = new aUt(), this.stack = [], this.assignmentMap = /* @__PURE__ */ new Map(), this.linker = e.references.Linker, this.converter = e.parser.ValueConverter, this.astReflection = e.shared.AstReflection; + super(e), this.nodeBuilder = new oUt(), this.stack = [], this.assignmentMap = /* @__PURE__ */ new Map(), this.linker = e.references.Linker, this.converter = e.parser.ValueConverter, this.astReflection = e.shared.AstReflection; } rule(e, r) { const n = e.fragment ? void 0 : vI(e) ? m9 : gC(e), i = this.wrapper.DEFINE_RULE(b0e(e.name), this.startImplementation(n, r).bind(this)); @@ -77944,7 +78015,7 @@ class oUt extends x0e { if (this.isRecording()) return; const r = this.current; - return zBt(r), this.nodeBuilder.construct(r), e && this.stack.pop(), U_(r) ? this.converter.convert(r.value, r.$cstNode) : (UBt(this.astReflection, r), r); + return VBt(r), this.nodeBuilder.construct(r), e && this.stack.pop(), U_(r) ? this.converter.convert(r.value, r.$cstNode) : (qBt(this.astReflection, r), r); } getAssignment(e) { if (!this.assignmentMap.has(e)) { @@ -77983,7 +78054,7 @@ class oUt extends x0e { return this.wrapper.definitionErrors; } } -class lUt { +class cUt { buildMismatchTokenMessage(e) { return Fp.buildMismatchTokenMessage(e); } @@ -77997,7 +78068,7 @@ class lUt { return Fp.buildEarlyExitMessage(e); } } -class w0e extends lUt { +class w0e extends cUt { buildMismatchTokenMessage({ expected: e, actual: r }) { return `Expecting ${e.LABEL ? "`" + e.LABEL + "`" : e.name.endsWith(":KW") ? `keyword '${e.name.substring(0, e.name.length - 3)}'` : `token of type '${e.name}'`} but found \`${r.image}\`.`; } @@ -78005,7 +78076,7 @@ class w0e extends lUt { return `Expecting end of file but found \`${e.image}\`.`; } } -class cUt extends x0e { +class uUt extends x0e { constructor() { super(...arguments), this.tokens = [], this.elementStack = [], this.lastElementStack = [], this.nextTokenIndex = 0, this.stackSize = 0; } @@ -78068,16 +78139,16 @@ class cUt extends x0e { return this.wrapper.currIdx; } } -const uUt = { +const hUt = { recoveryEnabled: !0, nodeLocationTracking: "full", skipValidations: !0, errorMessageProvider: new w0e() }; -class hUt extends yVt { +class fUt extends bVt { constructor(e, r) { const n = r && "maxLookahead" in r; - super(e, Object.assign(Object.assign(Object.assign({}, uUt), { lookaheadStrategy: n ? new SI({ maxLookahead: r.maxLookahead }) : new FVt() }), r)); + super(e, Object.assign(Object.assign(Object.assign({}, hUt), { lookaheadStrategy: n ? new SI({ maxLookahead: r.maxLookahead }) : new zVt() }), r)); } get IS_RECORDING() { return this.RECORDING_PHASE; @@ -78110,14 +78181,14 @@ class hUt extends yVt { } } function O0e(t, e, r) { - return fUt({ + return dUt({ parser: e, tokens: r, rules: /* @__PURE__ */ new Map(), ruleNames: /* @__PURE__ */ new Map() }, t), e; } -function fUt(t, e) { +function dUt(t, e) { const r = xde(e, !1), n = os(e.rules).filter(Jo).filter((i) => r.has(i)); for (const i of n) { const s = Object.assign(Object.assign({}, t), { consume: 1, optional: 1, subrule: 1, many: 1, or: 1 }); @@ -78127,36 +78198,36 @@ function fUt(t, e) { function x0(t, e, r = !1) { let n; if (v0(e)) - n = bUt(t, e); + n = xUt(t, e); else if (hC(e)) - n = dUt(t, e); + n = pUt(t, e); else if (m0(e)) n = x0(t, e.terminal); else if (dI(e)) n = k0e(t, e); else if (y0(e)) - n = pUt(t, e); + n = gUt(t, e); else if (Kfe(e)) - n = mUt(t, e); - else if (dde(e)) n = vUt(t, e); - else if (pI(e)) + else if (dde(e)) n = yUt(t, e); - else if (DBt(e)) { + else if (pI(e)) + n = bUt(t, e); + else if (NBt(e)) { const i = t.consume++; n = () => t.parser.consume(i, Ef, e); } else throw new Ife(e.$cstNode, `Unexpected element type: ${e.$type}`); return S0e(t, r ? void 0 : Pk(e), n, e.cardinality); } -function dUt(t, e) { +function pUt(t, e) { const r = gC(e); return () => t.parser.action(r, e); } -function pUt(t, e) { +function gUt(t, e) { const r = e.rule.ref; if (Jo(r)) { - const n = t.subrule++, i = e.arguments.length > 0 ? gUt(r, e.arguments) : () => ({}); + const n = t.subrule++, i = e.arguments.length > 0 ? mUt(r, e.arguments) : () => ({}); return (s) => t.parser.subrule(n, T0e(t, r), e, i(s)); } else if (J0(r)) { const n = t.consume++, i = v9(t, r.name); @@ -78166,7 +78237,7 @@ function pUt(t, e) { else throw new Ife(e.$cstNode, `Undefined rule type: ${e.$type}`); } -function gUt(t, e) { +function mUt(t, e) { const r = e.map((n) => mu(n.value)); return (n) => { const i = {}; @@ -78178,25 +78249,25 @@ function gUt(t, e) { }; } function mu(t) { - if (xBt(t)) { + if (wBt(t)) { const e = mu(t.left), r = mu(t.right); return (n) => e(n) || r(n); - } else if (bBt(t)) { + } else if (xBt(t)) { const e = mu(t.left), r = mu(t.right); return (n) => e(n) && r(n); - } else if (OBt(t)) { + } else if (kBt(t)) { const e = mu(t.value); return (r) => !e(r); - } else if (TBt(t)) { + } else if (CBt(t)) { const e = t.parameter.ref.name; return (r) => r !== void 0 && r[e] === !0; - } else if (yBt(t)) { + } else if (bBt(t)) { const e = Boolean(t.true); return () => e; } uC(); } -function mUt(t, e) { +function vUt(t, e) { if (e.elements.length === 1) return x0(t, e.elements[0]); { @@ -78216,7 +78287,7 @@ function mUt(t, e) { })); } } -function vUt(t, e) { +function yUt(t, e) { if (e.elements.length === 1) return x0(t, e.elements[0]); const r = []; @@ -78249,7 +78320,7 @@ function vUt(t, e) { a(o), t.parser.isRecording() || t.parser.unorderedGroups.delete(i(n, t.parser)); }; } -function yUt(t, e) { +function bUt(t, e) { const r = e.elements.map((n) => x0(t, n)); return (n) => r.forEach((i) => i(n)); } @@ -78279,7 +78350,7 @@ function k0e(t, e, r = e.terminal) { return k0e(t, e, i); } } -function bUt(t, e) { +function xUt(t, e) { const r = t.consume++, n = t.tokens[e.value]; if (!n) throw new Error("Could not find token for keyword: " + e.value); @@ -78338,12 +78409,12 @@ function S0e(t, e, r, n) { uC(); } function T0e(t, e) { - const r = xUt(t, e), n = t.rules.get(r); + const r = wUt(t, e), n = t.rules.get(r); if (!n) throw new Error(`Rule "${r}" not found."`); return n; } -function xUt(t, e) { +function wUt(t, e) { if (Jo(e)) return e.name; if (t.ruleNames.has(e)) @@ -78361,16 +78432,16 @@ function v9(t, e) { throw new Error(`Token "${e}" not found."`); return r; } -function wUt(t) { - const e = t.Grammar, r = t.parser.Lexer, n = new cUt(t); +function OUt(t) { + const e = t.Grammar, r = t.parser.Lexer, n = new uUt(t); return O0e(e, n, r.definition), n.finalize(), n; } -function OUt(t) { - const e = kUt(t); +function kUt(t) { + const e = SUt(t); return e.finalize(), e; } -function kUt(t) { - const e = t.Grammar, r = t.parser.Lexer, n = new oUt(t); +function SUt(t) { + const e = t.Grammar, r = t.parser.Lexer, n = new lUt(t); return O0e(e, n, r.definition); } class C0e { @@ -78410,19 +78481,19 @@ class C0e { }; } buildKeywordPattern(e, r) { - return r ? new RegExp(ZBt(e.value)) : e.value; + return r ? new RegExp(jBt(e.value)) : e.value; } findLongerAlt(e, r) { return r.reduce((n, i) => { const s = i == null ? void 0 : i.PATTERN; - return (s == null ? void 0 : s.source) && jBt("^" + s.source + "$", e.value) && n.push(i), n; + return (s == null ? void 0 : s.source) && KBt("^" + s.source + "$", e.value) && n.push(i), n; }, []); } } class E0e { convert(e, r) { let n = r.grammarSource; - if (dI(n) && (n = tFt(n)), y0(n)) { + if (dI(n) && (n = rFt(n)), y0(n)) { const i = n.rule.ref; if (!i) throw new Error("This cst node was not parsed by a rule."); @@ -78440,7 +78511,7 @@ class E0e { case "ID": return fu.convertID(r); } - switch ((i = lFt(e)) === null || i === void 0 ? void 0 : i.toLowerCase()) { + switch ((i = cFt(e)) === null || i === void 0 ? void 0 : i.toLowerCase()) { case "number": return fu.convertNumber(r); case "boolean": @@ -78535,38 +78606,38 @@ kC.default = b9; var Rs = {}; Object.defineProperty(Rs, "__esModule", { value: !0 }); Rs.stringArray = Rs.array = Rs.func = Rs.error = Rs.number = Rs.string = Rs.boolean = void 0; -function SUt(t) { +function TUt(t) { return t === !0 || t === !1; } -Rs.boolean = SUt; +Rs.boolean = TUt; function _0e(t) { return typeof t == "string" || t instanceof String; } Rs.string = _0e; -function TUt(t) { +function CUt(t) { return typeof t == "number" || t instanceof Number; } -Rs.number = TUt; -function CUt(t) { +Rs.number = CUt; +function EUt(t) { return t instanceof Error; } -Rs.error = CUt; -function EUt(t) { +Rs.error = EUt; +function _Ut(t) { return typeof t == "function"; } -Rs.func = EUt; +Rs.func = _Ut; function A0e(t) { return Array.isArray(t); } Rs.array = A0e; -function _Ut(t) { +function AUt(t) { return A0e(t) && t.every((e) => _0e(e)); } -Rs.stringArray = _Ut; +Rs.stringArray = AUt; var y1 = {}; Object.defineProperty(y1, "__esModule", { value: !0 }); y1.Emitter = y1.Event = void 0; -const AUt = kC; +const LUt = kC; var LG; (function(t) { const e = { dispose() { @@ -78575,7 +78646,7 @@ var LG; return e; }; })(LG || (y1.Event = LG = {})); -class LUt { +class RUt { add(e, r = null, n) { this._callbacks || (this._callbacks = [], this._contexts = []), this._callbacks.push(e), this._contexts.push(r), Array.isArray(n) && n.push({ dispose: () => this.remove(e, r) }); } @@ -78601,7 +78672,7 @@ class LUt { try { r.push(n[s].apply(i[s], e)); } catch (o) { - (0, AUt.default)().console.error(o); + (0, LUt.default)().console.error(o); } return r; } @@ -78618,7 +78689,7 @@ class SC { } get event() { return this._event || (this._event = (e, r, n) => { - this._callbacks || (this._callbacks = new LUt()), this._options && this._options.onFirstListenerAdd && this._callbacks.isEmpty() && this._options.onFirstListenerAdd(this), this._callbacks.add(e, r); + this._callbacks || (this._callbacks = new RUt()), this._options && this._options.onFirstListenerAdd && this._callbacks.isEmpty() && this._options.onFirstListenerAdd(this), this._callbacks.add(e, r); const i = { dispose: () => { !this._callbacks || (this._callbacks.remove(e, r), i.dispose = SC._noop, this._options && this._options.onLastListenerRemove && this._callbacks.isEmpty() && this._options.onLastListenerRemove(this)); @@ -78640,7 +78711,7 @@ SC._noop = function() { var Gi; Object.defineProperty(M2, "__esModule", { value: !0 }); var x9 = M2.CancellationTokenSource = Gi = M2.CancellationToken = void 0; -const RUt = kC, MUt = Rs, w9 = y1; +const MUt = kC, DUt = Rs, w9 = y1; var $k; (function(t) { t.None = Object.freeze({ @@ -78652,12 +78723,12 @@ var $k; }); function e(r) { const n = r; - return n && (n === t.None || n === t.Cancelled || MUt.boolean(n.isCancellationRequested) && !!n.onCancellationRequested); + return n && (n === t.None || n === t.Cancelled || DUt.boolean(n.isCancellationRequested) && !!n.onCancellationRequested); } t.is = e; })($k || (Gi = M2.CancellationToken = $k = {})); -const DUt = Object.freeze(function(t, e) { - const r = (0, RUt.default)().timer.setTimeout(t.bind(e), 0); +const NUt = Object.freeze(function(t, e) { + const r = (0, MUt.default)().timer.setTimeout(t.bind(e), 0); return { dispose() { r.dispose(); } }; @@ -78673,13 +78744,13 @@ class RG { return this._isCancelled; } get onCancellationRequested() { - return this._isCancelled ? DUt : (this._emitter || (this._emitter = new w9.Emitter()), this._emitter.event); + return this._isCancelled ? NUt : (this._emitter || (this._emitter = new w9.Emitter()), this._emitter.event); } dispose() { this._emitter && (this._emitter.dispose(), this._emitter = void 0); } } -class NUt { +class IUt { get token() { return this._token || (this._token = new RG()), this._token; } @@ -78690,13 +78761,13 @@ class NUt { this._token ? this._token instanceof RG && this._token.dispose() : this._token = $k.None; } } -x9 = M2.CancellationTokenSource = NUt; -function IUt() { +x9 = M2.CancellationTokenSource = IUt; +function PUt() { return new Promise((t) => { typeof setImmediate > "u" ? setTimeout(t, 0) : setImmediate(t); }); } -let MG = 0, PUt = 10; +let MG = 0, $Ut = 10; const Bk = Symbol("OperationCancelled"); function MI(t) { return t === Bk; @@ -78705,7 +78776,7 @@ async function El(t) { if (t === Gi.None) return; const e = Date.now(); - if (e - MG >= PUt && (MG = e, await IUt()), t.isCancellationRequested) + if (e - MG >= $Ut && (MG = e, await PUt()), t.isCancellationRequested) throw Bk; } class DI { @@ -78816,7 +78887,7 @@ var O9; } t.update = r; function n(i, s) { - const a = i.getText(), o = k9(s.map($Ut), (h, f) => { + const a = i.getText(), o = k9(s.map(BUt), (h, f) => { const d = h.range.start.line - f.range.start.line; return d === 0 ? h.range.start.character - f.range.start.character : d; }); @@ -78861,7 +78932,7 @@ function R0e(t) { const e = t.start, r = t.end; return e.line > r.line || e.line === r.line && e.character > r.character ? { start: r, end: e } : t; } -function $Ut(t) { +function BUt(t) { const e = R0e(t.range); return e !== t.range ? { newText: t.newText, range: e } : t; } @@ -79256,7 +79327,7 @@ var kn; (function(t) { t[t.Changed = 0] = "Changed", t[t.Parsed = 1] = "Parsed", t[t.IndexedContent = 2] = "IndexedContent", t[t.ComputedScopes = 3] = "ComputedScopes", t[t.Linked = 4] = "Linked", t[t.IndexedReferences = 5] = "IndexedReferences", t[t.Validated = 6] = "Validated"; })(kn || (kn = {})); -class BUt { +class FUt { constructor(e) { this.serviceRegistry = e.ServiceRegistry, this.textDocuments = e.workspace.TextDocuments, this.fileSystemProvider = e.workspace.FileSystemProvider; } @@ -79345,7 +79416,7 @@ class BUt { return () => i != null ? i : i = O9.create(e.toString(), n.getServices(e).LanguageMetaData.languageId, 0, r != null ? r : ""); } } -class FUt { +class zUt { constructor(e) { this.documentMap = /* @__PURE__ */ new Map(), this.langiumDocumentFactory = e.workspace.LangiumDocumentFactory; } @@ -79386,7 +79457,7 @@ class FUt { return n && (n.state = kn.Changed, this.documentMap.delete(r)), n; } } -class zUt { +class VUt { constructor(e) { this.reflection = e.shared.AstReflection, this.langiumDocuments = () => e.shared.workspace.LangiumDocuments, this.scopeProvider = e.references.ScopeProvider, this.astNodeLocator = e.workspace.AstNodeLocator; } @@ -79427,7 +79498,7 @@ class zUt { var o; if (Ps(this._ref)) return this._ref; - if (sBt(this._nodeDescription)) { + if (aBt(this._nodeDescription)) { const l = s.loadAstNode(this._nodeDescription); this._ref = l != null ? l : s.createLinkingError({ reference: a, container: e, property: r }, this._nodeDescription); } else if (this._ref === void 0) { @@ -79477,25 +79548,25 @@ class zUt { return Object.assign(Object.assign({}, e), { message: `Could not resolve reference to ${i} named '${e.reference.$refText}'.`, targetDescription: r }); } } -function VUt(t) { +function UUt(t) { return typeof t.name == "string"; } -class UUt { +class qUt { getName(e) { - if (VUt(e)) + if (UUt(e)) return e.name; } getNameNode(e) { return Ode(e.$cstNode, "name"); } } -class qUt { +class QUt { constructor(e) { this.nameProvider = e.references.NameProvider, this.index = e.shared.workspace.IndexManager, this.nodeLocator = e.workspace.AstNodeLocator; } findDeclaration(e) { if (e) { - const r = aFt(e), n = e.astNode; + const r = oFt(e), n = e.astNode; if (r && n) { const i = n[r.feature]; if (kc(i)) @@ -79508,7 +79579,7 @@ class qUt { } if (n) { const i = this.nameProvider.getNameNode(n); - if (i && (i === e || lBt(e, i))) + if (i && (i === e || cBt(e, i))) return n; } } @@ -79632,7 +79703,7 @@ class NG { return r !== void 0 ? (this.map.delete(e), this.inverse.delete(r), !0) : !1; } } -class QUt { +class YUt { constructor(e) { this.nameProvider = e.references.NameProvider, this.descriptions = e.workspace.AstNodeDescriptionProvider; } @@ -79680,7 +79751,7 @@ class IG { return this.outerScope.getElement(e); } } -class YUt { +class WUt { constructor(e, r, n) { var i; this.elements = /* @__PURE__ */ new Map(), this.caseInsensitive = (i = n == null ? void 0 : n.caseInsensitive) !== null && i !== void 0 ? i : !1; @@ -79717,7 +79788,7 @@ class D0e { throw new Error("This cache has already been disposed"); } } -class WUt extends D0e { +class GUt extends D0e { constructor() { super(...arguments), this.cache = /* @__PURE__ */ new Map(); } @@ -79743,7 +79814,7 @@ class WUt extends D0e { this.throwIfDisposed(), this.cache.clear(); } } -class GUt extends D0e { +class HUt extends D0e { constructor(e) { super(), this.cache = /* @__PURE__ */ new Map(), this.converter = e != null ? e : (r) => r; } @@ -79780,16 +79851,16 @@ class GUt extends D0e { return n || (n = /* @__PURE__ */ new Map(), this.cache.set(r, n)), n; } } -class HUt extends WUt { +class XUt extends GUt { constructor(e) { super(), this.onDispose(e.workspace.DocumentBuilder.onUpdate(() => { this.clear(); })); } } -class XUt { +class ZUt { constructor(e) { - this.reflection = e.shared.AstReflection, this.nameProvider = e.references.NameProvider, this.descriptions = e.workspace.AstNodeDescriptionProvider, this.indexManager = e.shared.workspace.IndexManager, this.globalScopeCache = new HUt(e.shared); + this.reflection = e.shared.AstReflection, this.nameProvider = e.references.NameProvider, this.descriptions = e.workspace.AstNodeDescriptionProvider, this.indexManager = e.shared.workspace.IndexManager, this.globalScopeCache = new XUt(e.shared); } getScope(e) { const r = [], n = this.reflection.getReferenceType(e), i = Fc(e.container).precomputedScopes; @@ -79817,16 +79888,16 @@ class XUt { return new IG(i, r, n); } getGlobalScope(e, r) { - return this.globalScopeCache.get(e, () => new YUt(this.indexManager.allElements(e))); + return this.globalScopeCache.get(e, () => new WUt(this.indexManager.allElements(e))); } } -function ZUt(t) { +function jUt(t) { return typeof t.$comment == "string"; } function PG(t) { return typeof t == "object" && !!t && ("$ref" in t || "$error" in t); } -class jUt { +class KUt { constructor(e) { this.ignoreProperties = /* @__PURE__ */ new Set(["$container", "$containerProperty", "$containerIndex", "$document", "$cstNode"]), this.langiumDocuments = e.shared.workspace.LangiumDocuments, this.astNodeLocator = e.workspace.AstNodeLocator, this.nameProvider = e.references.NameProvider, this.commentProvider = e.documentation.CommentProvider; } @@ -79882,7 +79953,7 @@ class jUt { if (e.$cstNode) { const n = e.$textRegion = r(e.$cstNode), i = n.assignments = {}; return Object.keys(e).filter((s) => !s.startsWith("$")).forEach((s) => { - const a = nFt(e.$cstNode, s).map(r); + const a = iFt(e.$cstNode, s).map(r); a.length !== 0 && (i[s] = a); }), e; } @@ -79946,7 +80017,7 @@ class jUt { } } } -class KUt { +class JUt { register(e) { if (!this.singleton && !this.map) { this.singleton = e; @@ -79981,7 +80052,7 @@ var Fk; (function(t) { t.all = ["fast", "slow", "built-in"]; })(Fk || (Fk = {})); -class JUt { +class eqt { constructor(e) { this.entries = new NI(), this.reflection = e.shared.AstReflection; } @@ -80033,7 +80104,7 @@ class JUt { return r && (n = n.filter((i) => r.includes(i.category))), n.map((i) => i.check); } } -class eqt { +class tqt { constructor(e) { this.validationRegistry = e.validation.ValidationRegistry, this.metadata = e.LanguageMetaData; } @@ -80141,7 +80212,7 @@ class eqt { toDiagnostic(e, r, n) { return { message: r, - range: tqt(n), + range: rqt(n), severity: q_(e), code: n.code, codeDescription: n.codeDescription, @@ -80155,11 +80226,11 @@ class eqt { return this.metadata.languageId; } } -function tqt(t) { +function rqt(t) { if (t.range) return t.range; let e; - return typeof t.property == "string" ? e = Ode(t.node.$cstNode, t.property, t.index) : typeof t.keyword == "string" && (e = iFt(t.node.$cstNode, t.keyword, t.index)), e != null || (e = t.node.$cstNode), e ? e.range : { + return typeof t.property == "string" ? e = Ode(t.node.$cstNode, t.property, t.index) : typeof t.keyword == "string" && (e = sFt(t.node.$cstNode, t.keyword, t.index)), e != null || (e = t.node.$cstNode), e ? e.range : { start: { line: 0, character: 0 }, end: { line: 0, character: 0 } }; @@ -80182,7 +80253,7 @@ var Ch; (function(t) { t.LexingError = "lexing-error", t.ParsingError = "parsing-error", t.LinkingError = "linking-error"; })(Ch || (Ch = {})); -class rqt { +class nqt { constructor(e) { this.astNodeLocator = e.workspace.AstNodeLocator, this.nameProvider = e.references.NameProvider; } @@ -80209,7 +80280,7 @@ class rqt { }; } } -class nqt { +class iqt { constructor(e) { this.nodeLocator = e.workspace.AstNodeLocator; } @@ -80237,7 +80308,7 @@ class nqt { }; } } -class iqt { +class sqt { constructor() { this.segmentSeparator = "/", this.indexSeparator = "@"; } @@ -80266,7 +80337,7 @@ class iqt { }, e); } } -class sqt { +class aqt { constructor(e) { this._ready = new DI(), this.settings = {}, this.workspaceConfig = !1, this.serviceRegistry = e.ServiceRegistry; } @@ -80323,7 +80394,7 @@ var zk; } t.create = e; })(zk || (zk = {})); -class aqt { +class oqt { constructor(e) { this.updateBuildOptions = { validation: { @@ -80467,9 +80538,9 @@ class aqt { return (n = (r = this.buildState.get(e.uri.toString())) === null || r === void 0 ? void 0 : r.options) !== null && n !== void 0 ? n : {}; } } -class oqt { +class lqt { constructor(e) { - this.symbolIndex = /* @__PURE__ */ new Map(), this.symbolByTypeIndex = new GUt(), this.referenceIndex = /* @__PURE__ */ new Map(), this.documents = e.workspace.LangiumDocuments, this.serviceRegistry = e.ServiceRegistry, this.astReflection = e.AstReflection; + this.symbolIndex = /* @__PURE__ */ new Map(), this.symbolByTypeIndex = new HUt(), this.referenceIndex = /* @__PURE__ */ new Map(), this.documents = e.workspace.LangiumDocuments, this.serviceRegistry = e.ServiceRegistry, this.astReflection = e.AstReflection; } findAllReferences(e, r) { const n = Fc(e).uri, i = []; @@ -80507,7 +80578,7 @@ class oqt { return n ? n.some((i) => !i.local && r.has(i.targetUri.toString())) : !1; } } -class lqt { +class cqt { constructor(e) { this.initialBuildOptions = {}, this._ready = new DI(), this.serviceRegistry = e.ServiceRegistry, this.langiumDocuments = e.workspace.LangiumDocuments, this.documentBuilder = e.workspace.DocumentBuilder, this.fileSystemProvider = e.workspace.FileSystemProvider, this.mutex = e.workspace.WorkspaceLock; } @@ -80566,7 +80637,7 @@ class lqt { return !1; } } -class cqt { +class uqt { constructor(e) { const r = e.parser.TokenBuilder.buildTokens(e.Grammar, { caseInsensitive: e.LanguageMetaData.caseInsensitive @@ -80596,30 +80667,30 @@ class cqt { return r.forEach((i) => n[i.name] = i), n; } } -function uqt(t) { +function hqt(t) { return Array.isArray(t) && (t.length === 0 || "name" in t[0]); } function N0e(t) { return t && "modes" in t && "defaultMode" in t; } function BG(t) { - return !uqt(t) && !N0e(t); + return !hqt(t) && !N0e(t); } -function hqt(t, e, r) { +function fqt(t, e, r) { let n, i; typeof t == "string" ? (i = e, n = r) : (i = t.range.start, n = e), i || (i = zr.create(0, 0)); - const s = I0e(t), a = II(n), o = pqt({ + const s = I0e(t), a = II(n), o = gqt({ lines: s, position: i, options: a }); - return bqt({ + return xqt({ index: 0, tokens: o, position: i }); } -function fqt(t, e) { +function dqt(t, e) { const r = II(e), n = I0e(t); if (n.length === 0) return !1; @@ -80628,10 +80699,10 @@ function fqt(t, e) { } function I0e(t) { let e = ""; - return typeof t == "string" ? e = t : e = t.text, e.split(WBt); + return typeof t == "string" ? e = t : e = t.text, e.split(GBt); } -const FG = /\s*(@([\p{L}][\p{L}\p{N}]*)?)/uy, dqt = /\{(@[\p{L}][\p{L}\p{N}]*)(\s*)([^\r\n}]+)?\}/gu; -function pqt(t) { +const FG = /\s*(@([\p{L}][\p{L}\p{N}]*)?)/uy, pqt = /\{(@[\p{L}][\p{L}\p{N}]*)(\s*)([^\r\n}]+)?\}/gu; +function gqt(t) { var e, r, n; const i = []; let s = t.position.line, a = t.position.character; @@ -80649,7 +80720,7 @@ function pqt(t) { const p = (n = t.options.end) === null || n === void 0 ? void 0 : n.exec(h); p && (h = h.substring(0, p.index)); } - if (h = h.substring(0, yqt(h)), S9(h, f) >= h.length) { + if (h = h.substring(0, bqt(h)), S9(h, f) >= h.length) { if (i.length > 0) { const p = zr.create(s, a); i.push({ @@ -80670,15 +80741,15 @@ function pqt(t) { }), f += g.length, f = S9(h, f); } if (f < h.length) { - const g = h.substring(f), m = Array.from(g.matchAll(dqt)); - i.push(...gqt(m, g, s, a + f)); + const g = h.substring(f), m = Array.from(g.matchAll(pqt)); + i.push(...mqt(m, g, s, a + f)); } } s++, a = 0; } return i.length > 0 && i[i.length - 1].type === "break" ? i.slice(0, -1) : i; } -function gqt(t, e, r, n) { +function mqt(t, e, r, n) { const i = []; if (t.length === 0) { const s = zr.create(r, n), a = zr.create(r, n + e.length); @@ -80727,38 +80798,38 @@ function gqt(t, e, r, n) { } return i; } -const mqt = /\S/, vqt = /\s*$/; +const vqt = /\S/, yqt = /\s*$/; function S9(t, e) { - const r = t.substring(e).match(mqt); + const r = t.substring(e).match(vqt); return r ? e + r.index : t.length; } -function yqt(t) { - const e = t.match(vqt); +function bqt(t) { + const e = t.match(yqt); if (e && typeof e.index == "number") return e.index; } -function bqt(t) { +function xqt(t) { var e, r, n, i; const s = zr.create(t.position.line, t.position.character); if (t.tokens.length === 0) return new zG([], Cr.create(s, s)); const a = []; for (; t.index < t.tokens.length; ) { - const u = xqt(t, a[a.length - 1]); + const u = wqt(t, a[a.length - 1]); u && a.push(u); } const o = (r = (e = a[0]) === null || e === void 0 ? void 0 : e.range.start) !== null && r !== void 0 ? r : s, l = (i = (n = a[a.length - 1]) === null || n === void 0 ? void 0 : n.range.end) !== null && i !== void 0 ? i : s; return new zG(a, Cr.create(o, l)); } -function xqt(t, e) { +function wqt(t, e) { const r = t.tokens[t.index]; if (r.type === "tag") return $0e(t, !1); if (r.type === "text" || r.type === "inline-tag") return P0e(t); - wqt(r, e), t.index++; + Oqt(r, e), t.index++; } -function wqt(t, e) { +function Oqt(t, e) { if (e) { const r = new F0e("", t.range); "inlines" in e ? e.inlines.push(r) : e.content.inlines.push(r); @@ -80770,10 +80841,10 @@ function P0e(t) { let n = e; const i = []; for (; e && e.type !== "break" && e.type !== "tag"; ) - i.push(Oqt(t)), n = e, e = t.tokens[t.index]; + i.push(kqt(t)), n = e, e = t.tokens[t.index]; return new T9(i, Cr.create(r.range.start, n.range.end)); } -function Oqt(t) { +function kqt(t) { return t.tokens[t.index].type === "inline-tag" ? $0e(t, !0) : B0e(t); } function $0e(t, e) { @@ -80869,7 +80940,7 @@ ${r}`), this.inline ? `{${e}}` : e; toMarkdownDefault(e) { const r = this.content.toMarkdown(e); if (this.inline) { - const s = kqt(this.name, r, e != null ? e : {}); + const s = Sqt(this.name, r, e != null ? e : {}); if (typeof s == "string") return s; } @@ -80880,7 +80951,7 @@ ${r}`), this.inline ? `{${e}}` : e; ${r}`), this.inline ? `{${i}}` : i; } } -function kqt(t, e, r) { +function Sqt(t, e, r) { var n, i; if (t === "linkplain" || t === "linkcode" || t === "link") { const s = e.indexOf(" "); @@ -80889,10 +80960,10 @@ function kqt(t, e, r) { const l = S9(e, s); a = e.substring(l), e = e.substring(0, s); } - return (t === "linkcode" || t === "link" && r.link === "code") && (a = `\`${a}\``), (i = (n = r.renderLink) === null || n === void 0 ? void 0 : n.call(r, e, a)) !== null && i !== void 0 ? i : Sqt(e, a); + return (t === "linkcode" || t === "link" && r.link === "code") && (a = `\`${a}\``), (i = (n = r.renderLink) === null || n === void 0 ? void 0 : n.call(r, e, a)) !== null && i !== void 0 ? i : Tqt(e, a); } } -function Sqt(t, e) { +function Tqt(t, e) { try { return b1.parse(t, !0), `[${e}](${t})`; } catch { @@ -80940,14 +81011,14 @@ function VG(t) { `; } -class Tqt { +class Cqt { constructor(e) { this.indexManager = e.shared.workspace.IndexManager, this.commentProvider = e.documentation.CommentProvider; } getDocumentation(e) { const r = this.commentProvider.getComment(e); - if (r && fqt(r)) - return hqt(r).toMarkdown({ + if (r && dqt(r)) + return fqt(r).toMarkdown({ renderLink: (i, s) => this.documentationLinkRenderer(e, i, s), renderTag: (i) => this.documentationTagRenderer(e, i) }); @@ -80979,16 +81050,16 @@ class Tqt { return this.indexManager.allElements().find((i) => i.name === r); } } -class Cqt { +class Eqt { constructor(e) { this.grammarConfig = () => e.parser.GrammarConfig; } getComment(e) { var r; - return ZUt(e) ? e.$comment : (r = fBt(e.$cstNode, this.grammarConfig().multilineCommentRules)) === null || r === void 0 ? void 0 : r.text; + return jUt(e) ? e.$comment : (r = dBt(e.$cstNode, this.grammarConfig().multilineCommentRules)) === null || r === void 0 ? void 0 : r.text; } } -class Eqt { +class _qt { constructor(e) { this.syncParser = e.parser.LangiumParser; } @@ -80996,7 +81067,7 @@ class Eqt { return Promise.resolve(this.syncParser.parse(e)); } } -class _qt { +class Aqt { constructor() { this.previousTokenSource = new x9(), this.writeQueue = [], this.readQueue = [], this.done = !0; } @@ -81039,7 +81110,7 @@ class _qt { this.previousTokenSource.cancel(); } } -class Aqt { +class Lqt { constructor(e) { this.grammarElementIdMap = new NG(), this.tokenTypeIdMap = new NG(), this.grammar = e.Grammar, this.lexer = e.parser.Lexer, this.linker = e.references.Linker; } @@ -81165,60 +81236,60 @@ class Aqt { createGrammarElementIdMap() { let e = 0; for (const r of lg(this.grammar)) - gBt(r) && this.grammarElementIdMap.set(r, e++); + mBt(r) && this.grammarElementIdMap.set(r, e++); } } function um(t) { return { documentation: { - CommentProvider: (e) => new Cqt(e), - DocumentationProvider: (e) => new Tqt(e) + CommentProvider: (e) => new Eqt(e), + DocumentationProvider: (e) => new Cqt(e) }, parser: { - AsyncParser: (e) => new Eqt(e), - GrammarConfig: (e) => pFt(e), - LangiumParser: (e) => OUt(e), - CompletionParser: (e) => wUt(e), + AsyncParser: (e) => new _qt(e), + GrammarConfig: (e) => gFt(e), + LangiumParser: (e) => kUt(e), + CompletionParser: (e) => OUt(e), ValueConverter: () => new E0e(), TokenBuilder: () => new C0e(), - Lexer: (e) => new cqt(e), + Lexer: (e) => new uqt(e), ParserErrorMessageProvider: () => new w0e() }, workspace: { - AstNodeLocator: () => new iqt(), - AstNodeDescriptionProvider: (e) => new rqt(e), - ReferenceDescriptionProvider: (e) => new nqt(e) + AstNodeLocator: () => new sqt(), + AstNodeDescriptionProvider: (e) => new nqt(e), + ReferenceDescriptionProvider: (e) => new iqt(e) }, references: { - Linker: (e) => new zUt(e), - NameProvider: () => new UUt(), - ScopeProvider: (e) => new XUt(e), - ScopeComputation: (e) => new QUt(e), - References: (e) => new qUt(e) + Linker: (e) => new VUt(e), + NameProvider: () => new qUt(), + ScopeProvider: (e) => new ZUt(e), + ScopeComputation: (e) => new YUt(e), + References: (e) => new QUt(e) }, serializer: { - Hydrator: (e) => new Aqt(e), - JsonSerializer: (e) => new jUt(e) + Hydrator: (e) => new Lqt(e), + JsonSerializer: (e) => new KUt(e) }, validation: { - DocumentValidator: (e) => new eqt(e), - ValidationRegistry: (e) => new JUt(e) + DocumentValidator: (e) => new tqt(e), + ValidationRegistry: (e) => new eqt(e) }, shared: () => t.shared }; } function hm(t) { return { - ServiceRegistry: () => new KUt(), + ServiceRegistry: () => new JUt(), workspace: { - LangiumDocuments: (e) => new FUt(e), - LangiumDocumentFactory: (e) => new BUt(e), - DocumentBuilder: (e) => new aqt(e), - IndexManager: (e) => new oqt(e), - WorkspaceManager: (e) => new lqt(e), + LangiumDocuments: (e) => new zUt(e), + LangiumDocumentFactory: (e) => new FUt(e), + DocumentBuilder: (e) => new oqt(e), + IndexManager: (e) => new lqt(e), + WorkspaceManager: (e) => new cqt(e), FileSystemProvider: (e) => t.fileSystemProvider(e), - WorkspaceLock: () => new _qt(), - ConfigurationProvider: (e) => new sqt(e) + WorkspaceLock: () => new Aqt(), + ConfigurationProvider: (e) => new aqt(e) } }; } @@ -81271,7 +81342,7 @@ function Vk(t, e) { } return t; } -class Lqt { +class Rqt { readFile() { throw new Error("No file system is available."); } @@ -81280,8 +81351,8 @@ class Lqt { } } const fm = { - fileSystemProvider: () => new Lqt() -}, Rqt = { + fileSystemProvider: () => new Rqt() +}, Mqt = { Grammar: () => { }, LanguageMetaData: () => ({ @@ -81289,86 +81360,86 @@ const fm = { fileExtensions: [".langium"], languageId: "langium" }) -}, Mqt = { +}, Dqt = { AstReflection: () => new mde() }; -function Dqt() { - const t = el(hm(fm), Mqt), e = el(um({ shared: t }), Rqt); +function Nqt() { + const t = el(hm(fm), Dqt), e = el(um({ shared: t }), Mqt); return t.ServiceRegistry.register(e), e; } function Bx(t) { var e; - const r = Dqt(), n = r.serializer.JsonSerializer.deserialize(t); + const r = Nqt(), n = r.serializer.JsonSerializer.deserialize(t); return r.shared.workspace.LangiumDocumentFactory.fromModel(n, b1.parse(`memory://${(e = n.name) !== null && e !== void 0 ? e : "grammar"}.langium`)), n; } -var Nqt = Object.defineProperty, Dt = (t, e) => Nqt(t, "name", { value: e, configurable: !0 }), Iqt = "Statement", Pqt = "Architecture"; -function $qt(t) { - return Zl.isInstance(t, Pqt); +var Iqt = Object.defineProperty, Dt = (t, e) => Iqt(t, "name", { value: e, configurable: !0 }), Pqt = "Statement", $qt = "Architecture"; +function Bqt(t) { + return Zl.isInstance(t, $qt); } -Dt($qt, "isArchitecture"); +Dt(Bqt, "isArchitecture"); var V0e = "Branch"; -function Bqt(t) { +function Fqt(t) { return Zl.isInstance(t, V0e); } -Dt(Bqt, "isBranch"); -var Fqt = "Checkout", zqt = "CherryPicking", U0e = "Commit"; -function Vqt(t) { +Dt(Fqt, "isBranch"); +var zqt = "Checkout", Vqt = "CherryPicking", U0e = "Commit"; +function Uqt(t) { return Zl.isInstance(t, U0e); } -Dt(Vqt, "isCommit"); -var Uqt = "Common"; -function qqt(t) { - return Zl.isInstance(t, Uqt); +Dt(Uqt, "isCommit"); +var qqt = "Common"; +function Qqt(t) { + return Zl.isInstance(t, qqt); } -Dt(qqt, "isCommon"); +Dt(Qqt, "isCommon"); var q0e = "GitGraph"; -function Qqt(t) { +function Yqt(t) { return Zl.isInstance(t, q0e); } -Dt(Qqt, "isGitGraph"); -var Yqt = "Info"; -function Wqt(t) { - return Zl.isInstance(t, Yqt); +Dt(Yqt, "isGitGraph"); +var Wqt = "Info"; +function Gqt(t) { + return Zl.isInstance(t, Wqt); } -Dt(Wqt, "isInfo"); +Dt(Gqt, "isInfo"); var Q0e = "Merge"; -function Gqt(t) { +function Hqt(t) { return Zl.isInstance(t, Q0e); } -Dt(Gqt, "isMerge"); -var Hqt = "Packet"; -function Xqt(t) { - return Zl.isInstance(t, Hqt); +Dt(Hqt, "isMerge"); +var Xqt = "Packet"; +function Zqt(t) { + return Zl.isInstance(t, Xqt); } -Dt(Xqt, "isPacket"); -var Zqt = "PacketBlock"; -function jqt(t) { - return Zl.isInstance(t, Zqt); +Dt(Zqt, "isPacket"); +var jqt = "PacketBlock"; +function Kqt(t) { + return Zl.isInstance(t, jqt); } -Dt(jqt, "isPacketBlock"); -var Kqt = "Pie"; -function Jqt(t) { - return Zl.isInstance(t, Kqt); +Dt(Kqt, "isPacketBlock"); +var Jqt = "Pie"; +function eQt(t) { + return Zl.isInstance(t, Jqt); } -Dt(Jqt, "isPie"); -var eQt = "PieSection"; -function tQt(t) { - return Zl.isInstance(t, eQt); +Dt(eQt, "isPie"); +var tQt = "PieSection"; +function rQt(t) { + return Zl.isInstance(t, tQt); } -Dt(tQt, "isPieSection"); -var rQt = "Direction", pb, Y0e = (pb = class extends Mfe { +Dt(rQt, "isPieSection"); +var nQt = "Direction", pb, Y0e = (pb = class extends Mfe { getAllTypes() { return ["Architecture", "Branch", "Checkout", "CherryPicking", "Commit", "Common", "Direction", "Edge", "GitGraph", "Group", "Info", "Junction", "Merge", "Packet", "PacketBlock", "Pie", "PieSection", "Service", "Statement"]; } computeIsSubtype(e, r) { switch (e) { case V0e: - case Fqt: case zqt: + case Vqt: case U0e: case Q0e: - return this.isSubtype(Iqt, r); - case rQt: + return this.isSubtype(Pqt, r); + case nQt: return this.isSubtype(q0e, r); default: return !1; @@ -81570,32 +81641,28 @@ var rQt = "Direction", pb, Y0e = (pb = class extends Mfe { } }, (() => { Dt(pb, "MermaidAstReflection"); -})(), pb), Zl = new Y0e(), TO, nQt = /* @__PURE__ */ Dt(() => TO != null ? TO : TO = Bx('{"$type":"Grammar","isDeclared":true,"name":"Info","imports":[],"rules":[{"$type":"ParserRule","name":"Info","entry":true,"definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[],"cardinality":"*"},{"$type":"Keyword","value":"info"},{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[],"cardinality":"*"},{"$type":"Group","elements":[{"$type":"Keyword","value":"showInfo"},{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[],"cardinality":"*"}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[],"cardinality":"?"}]},"definesHiddenTokens":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"TitleAndAccessibilities","fragment":true,"definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}],"cardinality":"+"},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"EOL","fragment":true,"dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/"},"fragment":false}],"definesHiddenTokens":false,"hiddenTokens":[],"interfaces":[{"$type":"Interface","name":"Common","attributes":[{"$type":"TypeAttribute","name":"accDescr","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accTitle","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"title","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}}],"superTypes":[]}],"types":[],"usedGrammars":[]}'), "InfoGrammar"), CO, iQt = /* @__PURE__ */ Dt(() => CO != null ? CO : CO = Bx(`{"$type":"Grammar","isDeclared":true,"name":"Packet","imports":[],"rules":[{"$type":"ParserRule","name":"Packet","entry":true,"definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[],"cardinality":"*"},{"$type":"Keyword","value":"packet-beta"},{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]},{"$type":"Assignment","feature":"blocks","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]},"cardinality":"*"}]},{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[],"cardinality":"+"},{"$type":"Assignment","feature":"blocks","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]},"cardinality":"+"}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[],"cardinality":"*"}]}]},"definesHiddenTokens":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"PacketBlock","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"start","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"-"},{"$type":"Assignment","feature":"end","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}}],"cardinality":"?"},{"$type":"Keyword","value":":"},{"$type":"Assignment","feature":"label","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","definition":{"$type":"RegexToken","regex":"/\\"[^\\"]*\\"|'[^']*'/"},"fragment":false,"hidden":false},{"$type":"ParserRule","name":"TitleAndAccessibilities","fragment":true,"definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}],"cardinality":"+"},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"EOL","fragment":true,"dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/"},"fragment":false}],"definesHiddenTokens":false,"hiddenTokens":[],"interfaces":[{"$type":"Interface","name":"Common","attributes":[{"$type":"TypeAttribute","name":"accDescr","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accTitle","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"title","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}}],"superTypes":[]}],"types":[],"usedGrammars":[]}`), "PacketGrammar"), EO, sQt = /* @__PURE__ */ Dt(() => EO != null ? EO : EO = Bx('{"$type":"Grammar","isDeclared":true,"name":"Pie","imports":[],"rules":[{"$type":"ParserRule","name":"Pie","entry":true,"definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[],"cardinality":"*"},{"$type":"Keyword","value":"pie"},{"$type":"Assignment","feature":"showData","operator":"?=","terminal":{"$type":"Keyword","value":"showData"},"cardinality":"?"},{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]},{"$type":"Assignment","feature":"sections","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]},"cardinality":"*"}]},{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[],"cardinality":"+"},{"$type":"Assignment","feature":"sections","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]},"cardinality":"+"}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[],"cardinality":"*"}]}]},"definesHiddenTokens":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"PieSection","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"label","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}},{"$type":"Keyword","value":":"},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"PIE_SECTION_LABEL","definition":{"$type":"RegexToken","regex":"/\\"[^\\"]+\\"/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"PIE_SECTION_VALUE","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/(0|[1-9][0-9]*)(\\\\.[0-9]+)?/"},"fragment":false,"hidden":false},{"$type":"ParserRule","name":"TitleAndAccessibilities","fragment":true,"definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}],"cardinality":"+"},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"EOL","fragment":true,"dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/"},"fragment":false}],"definesHiddenTokens":false,"hiddenTokens":[],"interfaces":[{"$type":"Interface","name":"Common","attributes":[{"$type":"TypeAttribute","name":"accDescr","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accTitle","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"title","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}}],"superTypes":[]}],"types":[],"usedGrammars":[]}'), "PieGrammar"), _O, aQt = /* @__PURE__ */ Dt(() => _O != null ? _O : _O = Bx('{"$type":"Grammar","isDeclared":true,"name":"Architecture","imports":[],"rules":[{"$type":"ParserRule","name":"Architecture","entry":true,"definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[],"cardinality":"*"},{"$type":"Keyword","value":"architecture-beta"},{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}]},{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[],"cardinality":"*"}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[],"cardinality":"*"}]}]},"definesHiddenTokens":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Statement","fragment":true,"definition":{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"groups","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Assignment","feature":"services","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}},{"$type":"Assignment","feature":"junctions","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}},{"$type":"Assignment","feature":"edges","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"LeftPort","fragment":true,"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":":"},{"$type":"Assignment","feature":"lhsDir","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"RightPort","fragment":true,"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"rhsDir","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}},{"$type":"Keyword","value":":"}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Arrow","fragment":true,"definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]},{"$type":"Assignment","feature":"lhsInto","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]},"cardinality":"?"},{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"--"},{"$type":"Group","elements":[{"$type":"Keyword","value":"-"},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}},{"$type":"Keyword","value":"-"}]}]},{"$type":"Assignment","feature":"rhsInto","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]},"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Group","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"group"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}},{"$type":"Assignment","feature":"icon","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]},"cardinality":"?"},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]},"cardinality":"?"},{"$type":"Group","elements":[{"$type":"Keyword","value":"in"},{"$type":"Assignment","feature":"in","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Service","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"service"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"iconText","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]}},{"$type":"Assignment","feature":"icon","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}}],"cardinality":"?"},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]},"cardinality":"?"},{"$type":"Group","elements":[{"$type":"Keyword","value":"in"},{"$type":"Assignment","feature":"in","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Junction","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"junction"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"in"},{"$type":"Assignment","feature":"in","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Edge","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"lhsId","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}},{"$type":"Assignment","feature":"lhsGroup","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]},"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]},{"$type":"Assignment","feature":"rhsId","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}},{"$type":"Assignment","feature":"rhsGroup","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]},"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"ARROW_DIRECTION","definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"L"}},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"R"}}]},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"T"}}]},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"B"}}]},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARCH_ID","definition":{"$type":"RegexToken","regex":"/[\\\\w]+/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARCH_TEXT_ICON","definition":{"$type":"RegexToken","regex":"/\\\\(\\"[^\\"]+\\"\\\\)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARCH_ICON","definition":{"$type":"RegexToken","regex":"/\\\\([\\\\w-:]+\\\\)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARCH_TITLE","definition":{"$type":"RegexToken","regex":"/\\\\[[\\\\w ]+\\\\]/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARROW_GROUP","definition":{"$type":"RegexToken","regex":"/\\\\{group\\\\}/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARROW_INTO","definition":{"$type":"RegexToken","regex":"/<|>/"},"fragment":false,"hidden":false},{"$type":"ParserRule","name":"TitleAndAccessibilities","fragment":true,"definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@21"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}],"cardinality":"+"},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"EOL","fragment":true,"dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/"},"fragment":false}],"definesHiddenTokens":false,"hiddenTokens":[],"interfaces":[{"$type":"Interface","name":"Common","attributes":[{"$type":"TypeAttribute","name":"accDescr","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accTitle","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"title","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}}],"superTypes":[]}],"types":[],"usedGrammars":[]}'), "ArchitectureGrammar"), AO, oQt = /* @__PURE__ */ Dt(() => AO != null ? AO : AO = Bx(`{"$type":"Grammar","isDeclared":true,"name":"GitGraph","interfaces":[{"$type":"Interface","name":"Common","attributes":[{"$type":"TypeAttribute","name":"accDescr","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accTitle","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"title","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}}],"superTypes":[]}],"rules":[{"$type":"ParserRule","name":"TitleAndAccessibilities","fragment":true,"definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}],"cardinality":"+"},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"EOL","fragment":true,"dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/"},"fragment":false},{"$type":"ParserRule","name":"GitGraph","entry":true,"definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[],"cardinality":"*"},{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"gitGraph"},{"$type":"Group","elements":[{"$type":"Keyword","value":"gitGraph"},{"$type":"Keyword","value":":"}]},{"$type":"Keyword","value":"gitGraph:"},{"$type":"Group","elements":[{"$type":"Keyword","value":"gitGraph"},{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]},{"$type":"Keyword","value":":"}]}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[],"cardinality":"*"},{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[],"cardinality":"*"},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@0"},"arguments":[]},{"$type":"Assignment","feature":"statements","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}],"cardinality":"*"}]}]},"definesHiddenTokens":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Statement","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Direction","definition":{"$type":"Assignment","feature":"dir","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"LR"},{"$type":"Keyword","value":"TB"},{"$type":"Keyword","value":"BT"}]}},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Commit","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"commit"},{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"Keyword","value":"id:"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"msg:","cardinality":"?"},{"$type":"Assignment","feature":"message","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"tag:"},{"$type":"Assignment","feature":"tags","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"type:"},{"$type":"Assignment","feature":"type","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"NORMAL"},{"$type":"Keyword","value":"REVERSE"},{"$type":"Keyword","value":"HIGHLIGHT"}]}}]}],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Branch","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"branch"},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"order:"},{"$type":"Assignment","feature":"order","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Merge","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"merge"},{"$type":"Assignment","feature":"branch","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}]}},{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"Keyword","value":"id:"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"tag:"},{"$type":"Assignment","feature":"tags","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"type:"},{"$type":"Assignment","feature":"type","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"NORMAL"},{"$type":"Keyword","value":"REVERSE"},{"$type":"Keyword","value":"HIGHLIGHT"}]}}]}],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Checkout","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"checkout"},{"$type":"Keyword","value":"switch"}]},{"$type":"Assignment","feature":"branch","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"CherryPicking","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"cherry-pick"},{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"Keyword","value":"id:"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"tag:"},{"$type":"Assignment","feature":"tags","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"parent:"},{"$type":"Assignment","feature":"parent","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}}]}],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+(?=\\\\s)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\\\w([-\\\\./\\\\w]*[-\\\\w])?/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","definition":{"$type":"RegexToken","regex":"/\\"[^\\"]*\\"|'[^']*'/"},"fragment":false,"hidden":false}],"definesHiddenTokens":false,"hiddenTokens":[],"imports":[],"types":[],"usedGrammars":[]}`), "GitGraphGrammar"), lQt = { +})(), pb), Zl = new Y0e(), TO, iQt = /* @__PURE__ */ Dt(() => TO != null ? TO : TO = Bx('{"$type":"Grammar","isDeclared":true,"name":"Info","imports":[],"rules":[{"$type":"ParserRule","name":"Info","entry":true,"definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[],"cardinality":"*"},{"$type":"Keyword","value":"info"},{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[],"cardinality":"*"},{"$type":"Group","elements":[{"$type":"Keyword","value":"showInfo"},{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[],"cardinality":"*"}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[],"cardinality":"?"}]},"definesHiddenTokens":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"TitleAndAccessibilities","fragment":true,"definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}],"cardinality":"+"},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"EOL","fragment":true,"dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/"},"fragment":false}],"definesHiddenTokens":false,"hiddenTokens":[],"interfaces":[{"$type":"Interface","name":"Common","attributes":[{"$type":"TypeAttribute","name":"accDescr","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accTitle","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"title","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}}],"superTypes":[]}],"types":[],"usedGrammars":[]}'), "InfoGrammar"), CO, sQt = /* @__PURE__ */ Dt(() => CO != null ? CO : CO = Bx(`{"$type":"Grammar","isDeclared":true,"name":"Packet","imports":[],"rules":[{"$type":"ParserRule","name":"Packet","entry":true,"definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[],"cardinality":"*"},{"$type":"Keyword","value":"packet-beta"},{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]},{"$type":"Assignment","feature":"blocks","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]},"cardinality":"*"}]},{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[],"cardinality":"+"},{"$type":"Assignment","feature":"blocks","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]},"cardinality":"+"}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[],"cardinality":"*"}]}]},"definesHiddenTokens":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"PacketBlock","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"start","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"-"},{"$type":"Assignment","feature":"end","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}}],"cardinality":"?"},{"$type":"Keyword","value":":"},{"$type":"Assignment","feature":"label","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","definition":{"$type":"RegexToken","regex":"/\\"[^\\"]*\\"|'[^']*'/"},"fragment":false,"hidden":false},{"$type":"ParserRule","name":"TitleAndAccessibilities","fragment":true,"definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}],"cardinality":"+"},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"EOL","fragment":true,"dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/"},"fragment":false}],"definesHiddenTokens":false,"hiddenTokens":[],"interfaces":[{"$type":"Interface","name":"Common","attributes":[{"$type":"TypeAttribute","name":"accDescr","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accTitle","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"title","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}}],"superTypes":[]}],"types":[],"usedGrammars":[]}`), "PacketGrammar"), EO, aQt = /* @__PURE__ */ Dt(() => EO != null ? EO : EO = Bx('{"$type":"Grammar","isDeclared":true,"name":"Pie","imports":[],"rules":[{"$type":"ParserRule","name":"Pie","entry":true,"definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[],"cardinality":"*"},{"$type":"Keyword","value":"pie"},{"$type":"Assignment","feature":"showData","operator":"?=","terminal":{"$type":"Keyword","value":"showData"},"cardinality":"?"},{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]},{"$type":"Assignment","feature":"sections","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]},"cardinality":"*"}]},{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[],"cardinality":"+"},{"$type":"Assignment","feature":"sections","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]},"cardinality":"+"}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[],"cardinality":"*"}]}]},"definesHiddenTokens":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"PieSection","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"label","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}},{"$type":"Keyword","value":":"},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"PIE_SECTION_LABEL","definition":{"$type":"RegexToken","regex":"/\\"[^\\"]+\\"/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"PIE_SECTION_VALUE","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/(0|[1-9][0-9]*)(\\\\.[0-9]+)?/"},"fragment":false,"hidden":false},{"$type":"ParserRule","name":"TitleAndAccessibilities","fragment":true,"definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}],"cardinality":"+"},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"EOL","fragment":true,"dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/"},"fragment":false}],"definesHiddenTokens":false,"hiddenTokens":[],"interfaces":[{"$type":"Interface","name":"Common","attributes":[{"$type":"TypeAttribute","name":"accDescr","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accTitle","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"title","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}}],"superTypes":[]}],"types":[],"usedGrammars":[]}'), "PieGrammar"), _O, oQt = /* @__PURE__ */ Dt(() => _O != null ? _O : _O = Bx('{"$type":"Grammar","isDeclared":true,"name":"Architecture","imports":[],"rules":[{"$type":"ParserRule","name":"Architecture","entry":true,"definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[],"cardinality":"*"},{"$type":"Keyword","value":"architecture-beta"},{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}]},{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[],"cardinality":"*"}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[],"cardinality":"*"}]}]},"definesHiddenTokens":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Statement","fragment":true,"definition":{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"groups","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Assignment","feature":"services","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}},{"$type":"Assignment","feature":"junctions","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}},{"$type":"Assignment","feature":"edges","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"LeftPort","fragment":true,"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":":"},{"$type":"Assignment","feature":"lhsDir","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"RightPort","fragment":true,"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"rhsDir","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}},{"$type":"Keyword","value":":"}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Arrow","fragment":true,"definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]},{"$type":"Assignment","feature":"lhsInto","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]},"cardinality":"?"},{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"--"},{"$type":"Group","elements":[{"$type":"Keyword","value":"-"},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}},{"$type":"Keyword","value":"-"}]}]},{"$type":"Assignment","feature":"rhsInto","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]},"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Group","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"group"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}},{"$type":"Assignment","feature":"icon","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]},"cardinality":"?"},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]},"cardinality":"?"},{"$type":"Group","elements":[{"$type":"Keyword","value":"in"},{"$type":"Assignment","feature":"in","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Service","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"service"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"iconText","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]}},{"$type":"Assignment","feature":"icon","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}}],"cardinality":"?"},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]},"cardinality":"?"},{"$type":"Group","elements":[{"$type":"Keyword","value":"in"},{"$type":"Assignment","feature":"in","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Junction","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"junction"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"in"},{"$type":"Assignment","feature":"in","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Edge","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"lhsId","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}},{"$type":"Assignment","feature":"lhsGroup","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]},"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]},{"$type":"Assignment","feature":"rhsId","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}},{"$type":"Assignment","feature":"rhsGroup","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]},"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"ARROW_DIRECTION","definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"L"}},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"R"}}]},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"T"}}]},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"B"}}]},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARCH_ID","definition":{"$type":"RegexToken","regex":"/[\\\\w]+/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARCH_TEXT_ICON","definition":{"$type":"RegexToken","regex":"/\\\\(\\"[^\\"]+\\"\\\\)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARCH_ICON","definition":{"$type":"RegexToken","regex":"/\\\\([\\\\w-:]+\\\\)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARCH_TITLE","definition":{"$type":"RegexToken","regex":"/\\\\[[\\\\w ]+\\\\]/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARROW_GROUP","definition":{"$type":"RegexToken","regex":"/\\\\{group\\\\}/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARROW_INTO","definition":{"$type":"RegexToken","regex":"/<|>/"},"fragment":false,"hidden":false},{"$type":"ParserRule","name":"TitleAndAccessibilities","fragment":true,"definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@21"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}],"cardinality":"+"},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"EOL","fragment":true,"dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/"},"fragment":false}],"definesHiddenTokens":false,"hiddenTokens":[],"interfaces":[{"$type":"Interface","name":"Common","attributes":[{"$type":"TypeAttribute","name":"accDescr","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accTitle","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"title","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}}],"superTypes":[]}],"types":[],"usedGrammars":[]}'), "ArchitectureGrammar"), AO, lQt = /* @__PURE__ */ Dt(() => AO != null ? AO : AO = Bx(`{"$type":"Grammar","isDeclared":true,"name":"GitGraph","interfaces":[{"$type":"Interface","name":"Common","attributes":[{"$type":"TypeAttribute","name":"accDescr","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accTitle","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"title","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}}],"superTypes":[]}],"rules":[{"$type":"ParserRule","name":"TitleAndAccessibilities","fragment":true,"definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}],"cardinality":"+"},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"EOL","fragment":true,"dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/"},"fragment":false},{"$type":"ParserRule","name":"GitGraph","entry":true,"definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[],"cardinality":"*"},{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"gitGraph"},{"$type":"Group","elements":[{"$type":"Keyword","value":"gitGraph"},{"$type":"Keyword","value":":"}]},{"$type":"Keyword","value":"gitGraph:"},{"$type":"Group","elements":[{"$type":"Keyword","value":"gitGraph"},{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]},{"$type":"Keyword","value":":"}]}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[],"cardinality":"*"},{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[],"cardinality":"*"},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@0"},"arguments":[]},{"$type":"Assignment","feature":"statements","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}],"cardinality":"*"}]}]},"definesHiddenTokens":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Statement","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Direction","definition":{"$type":"Assignment","feature":"dir","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"LR"},{"$type":"Keyword","value":"TB"},{"$type":"Keyword","value":"BT"}]}},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Commit","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"commit"},{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"Keyword","value":"id:"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"msg:","cardinality":"?"},{"$type":"Assignment","feature":"message","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"tag:"},{"$type":"Assignment","feature":"tags","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"type:"},{"$type":"Assignment","feature":"type","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"NORMAL"},{"$type":"Keyword","value":"REVERSE"},{"$type":"Keyword","value":"HIGHLIGHT"}]}}]}],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Branch","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"branch"},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"order:"},{"$type":"Assignment","feature":"order","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Merge","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"merge"},{"$type":"Assignment","feature":"branch","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}]}},{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"Keyword","value":"id:"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"tag:"},{"$type":"Assignment","feature":"tags","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"type:"},{"$type":"Assignment","feature":"type","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"NORMAL"},{"$type":"Keyword","value":"REVERSE"},{"$type":"Keyword","value":"HIGHLIGHT"}]}}]}],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Checkout","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"checkout"},{"$type":"Keyword","value":"switch"}]},{"$type":"Assignment","feature":"branch","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"CherryPicking","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"cherry-pick"},{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"Keyword","value":"id:"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"tag:"},{"$type":"Assignment","feature":"tags","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"parent:"},{"$type":"Assignment","feature":"parent","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}}]}],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+(?=\\\\s)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\\\w([-\\\\./\\\\w]*[-\\\\w])?/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","definition":{"$type":"RegexToken","regex":"/\\"[^\\"]*\\"|'[^']*'/"},"fragment":false,"hidden":false}],"definesHiddenTokens":false,"hiddenTokens":[],"imports":[],"types":[],"usedGrammars":[]}`), "GitGraphGrammar"), cQt = { languageId: "info", fileExtensions: [".mmd", ".mermaid"], caseInsensitive: !1 -}, cQt = { +}, uQt = { languageId: "packet", fileExtensions: [".mmd", ".mermaid"], caseInsensitive: !1 -}, uQt = { +}, hQt = { languageId: "pie", fileExtensions: [".mmd", ".mermaid"], caseInsensitive: !1 -}, hQt = { +}, fQt = { languageId: "architecture", fileExtensions: [".mmd", ".mermaid"], caseInsensitive: !1 -}, fQt = { +}, dQt = { languageId: "gitGraph", fileExtensions: [".mmd", ".mermaid"], caseInsensitive: !1 }, Fx = { AstReflection: /* @__PURE__ */ Dt(() => new Y0e(), "AstReflection") -}, dQt = { - Grammar: /* @__PURE__ */ Dt(() => nQt(), "Grammar"), - LanguageMetaData: /* @__PURE__ */ Dt(() => lQt, "LanguageMetaData"), - parser: {} }, pQt = { Grammar: /* @__PURE__ */ Dt(() => iQt(), "Grammar"), LanguageMetaData: /* @__PURE__ */ Dt(() => cQt, "LanguageMetaData"), @@ -81612,17 +81679,21 @@ var rQt = "Direction", pb, Y0e = (pb = class extends Mfe { Grammar: /* @__PURE__ */ Dt(() => oQt(), "Grammar"), LanguageMetaData: /* @__PURE__ */ Dt(() => fQt, "LanguageMetaData"), parser: {} -}, yQt = /accDescr(?:[\t ]*:([^\n\r]*)|\s*{([^}]*)})/, bQt = /accTitle[\t ]*:([^\n\r]*)/, xQt = /title([\t ][^\n\r]*|)/, wQt = { - ACC_DESCR: yQt, - ACC_TITLE: bQt, - TITLE: xQt +}, yQt = { + Grammar: /* @__PURE__ */ Dt(() => lQt(), "Grammar"), + LanguageMetaData: /* @__PURE__ */ Dt(() => dQt, "LanguageMetaData"), + parser: {} +}, bQt = /accDescr(?:[\t ]*:([^\n\r]*)|\s*{([^}]*)})/, xQt = /accTitle[\t ]*:([^\n\r]*)/, wQt = /title([\t ][^\n\r]*|)/, OQt = { + ACC_DESCR: bQt, + ACC_TITLE: xQt, + TITLE: wQt }, gb, PI = (gb = class extends E0e { runConverter(e, r, n) { let i = this.runCommonConverter(e, r, n); return i === void 0 && (i = this.runCustomConverter(e, r, n)), i === void 0 ? super.runConverter(e, r, n) : i; } runCommonConverter(e, r, n) { - const i = wQt[e.name]; + const i = OQt[e.name]; if (i === void 0) return; const s = i.exec(r); @@ -81656,7 +81727,7 @@ var rQt = "Direction", pb, Y0e = (pb = class extends Mfe { })(), vb), yb; yb = class extends dm { }, Dt(yb, "CommonTokenBuilder"); -var bb, OQt = (bb = class extends dm { +var bb, kQt = (bb = class extends dm { constructor() { super(["gitGraph"]); } @@ -81664,7 +81735,7 @@ var bb, OQt = (bb = class extends dm { Dt(bb, "GitGraphTokenBuilder"); })(), bb), W0e = { parser: { - TokenBuilder: /* @__PURE__ */ Dt(() => new OQt(), "TokenBuilder"), + TokenBuilder: /* @__PURE__ */ Dt(() => new kQt(), "TokenBuilder"), ValueConverter: /* @__PURE__ */ Dt(() => new $I(), "ValueConverter") } }; @@ -81674,13 +81745,13 @@ function G0e(t = fm) { Fx ), r = el( um({ shared: e }), - vQt, + yQt, W0e ); return e.ServiceRegistry.register(r), { shared: e, GitGraph: r }; } Dt(G0e, "createGitGraphServices"); -var xb, kQt = (xb = class extends dm { +var xb, SQt = (xb = class extends dm { constructor() { super(["info", "showInfo"]); } @@ -81688,7 +81759,7 @@ var xb, kQt = (xb = class extends dm { Dt(xb, "InfoTokenBuilder"); })(), xb), H0e = { parser: { - TokenBuilder: /* @__PURE__ */ Dt(() => new kQt(), "TokenBuilder"), + TokenBuilder: /* @__PURE__ */ Dt(() => new SQt(), "TokenBuilder"), ValueConverter: /* @__PURE__ */ Dt(() => new $I(), "ValueConverter") } }; @@ -81698,13 +81769,13 @@ function X0e(t = fm) { Fx ), r = el( um({ shared: e }), - dQt, + pQt, H0e ); return e.ServiceRegistry.register(r), { shared: e, Info: r }; } Dt(X0e, "createInfoServices"); -var wb, SQt = (wb = class extends dm { +var wb, TQt = (wb = class extends dm { constructor() { super(["packet-beta"]); } @@ -81712,7 +81783,7 @@ var wb, SQt = (wb = class extends dm { Dt(wb, "PacketTokenBuilder"); })(), wb), Z0e = { parser: { - TokenBuilder: /* @__PURE__ */ Dt(() => new SQt(), "TokenBuilder"), + TokenBuilder: /* @__PURE__ */ Dt(() => new TQt(), "TokenBuilder"), ValueConverter: /* @__PURE__ */ Dt(() => new $I(), "ValueConverter") } }; @@ -81722,19 +81793,19 @@ function j0e(t = fm) { Fx ), r = el( um({ shared: e }), - pQt, + gQt, Z0e ); return e.ServiceRegistry.register(r), { shared: e, Packet: r }; } Dt(j0e, "createPacketServices"); -var Ob, TQt = (Ob = class extends dm { +var Ob, CQt = (Ob = class extends dm { constructor() { super(["pie", "showData"]); } }, (() => { Dt(Ob, "PieTokenBuilder"); -})(), Ob), kb, CQt = (kb = class extends PI { +})(), Ob), kb, EQt = (kb = class extends PI { runCustomConverter(e, r, n) { if (e.name === "PIE_SECTION_LABEL") return r.replace(/"/g, "").trim(); @@ -81743,8 +81814,8 @@ var Ob, TQt = (Ob = class extends dm { Dt(kb, "PieValueConverter"); })(), kb), K0e = { parser: { - TokenBuilder: /* @__PURE__ */ Dt(() => new TQt(), "TokenBuilder"), - ValueConverter: /* @__PURE__ */ Dt(() => new CQt(), "ValueConverter") + TokenBuilder: /* @__PURE__ */ Dt(() => new CQt(), "TokenBuilder"), + ValueConverter: /* @__PURE__ */ Dt(() => new EQt(), "ValueConverter") } }; function J0e(t = fm) { @@ -81753,19 +81824,19 @@ function J0e(t = fm) { Fx ), r = el( um({ shared: e }), - gQt, + mQt, K0e ); return e.ServiceRegistry.register(r), { shared: e, Pie: r }; } Dt(J0e, "createPieServices"); -var Sb, EQt = (Sb = class extends dm { +var Sb, _Qt = (Sb = class extends dm { constructor() { super(["architecture"]); } }, (() => { Dt(Sb, "ArchitectureTokenBuilder"); -})(), Sb), Tb, _Qt = (Tb = class extends PI { +})(), Sb), Tb, AQt = (Tb = class extends PI { runCustomConverter(e, r, n) { if (e.name === "ARCH_ICON") return r.replace(/[()]/g, "").trim(); @@ -81778,8 +81849,8 @@ var Sb, EQt = (Sb = class extends dm { Dt(Tb, "ArchitectureValueConverter"); })(), Tb), epe = { parser: { - TokenBuilder: /* @__PURE__ */ Dt(() => new EQt(), "TokenBuilder"), - ValueConverter: /* @__PURE__ */ Dt(() => new _Qt(), "ValueConverter") + TokenBuilder: /* @__PURE__ */ Dt(() => new _Qt(), "TokenBuilder"), + ValueConverter: /* @__PURE__ */ Dt(() => new AQt(), "ValueConverter") } }; function tpe(t = fm) { @@ -81788,46 +81859,46 @@ function tpe(t = fm) { Fx ), r = el( um({ shared: e }), - mQt, + vQt, epe ); return e.ServiceRegistry.register(r), { shared: e, Architecture: r }; } Dt(tpe, "createArchitectureServices"); -var bd = {}, AQt = { +var bd = {}, LQt = { info: /* @__PURE__ */ Dt(async () => { - const { createInfoServices: t } = await Promise.resolve().then(() => Dlr), e = t().Info.parser.LangiumParser; + const { createInfoServices: t } = await Promise.resolve().then(() => Nlr), e = t().Info.parser.LangiumParser; bd.info = e; }, "info"), packet: /* @__PURE__ */ Dt(async () => { - const { createPacketServices: t } = await Promise.resolve().then(() => Nlr), e = t().Packet.parser.LangiumParser; + const { createPacketServices: t } = await Promise.resolve().then(() => Ilr), e = t().Packet.parser.LangiumParser; bd.packet = e; }, "packet"), pie: /* @__PURE__ */ Dt(async () => { - const { createPieServices: t } = await Promise.resolve().then(() => Ilr), e = t().Pie.parser.LangiumParser; + const { createPieServices: t } = await Promise.resolve().then(() => Plr), e = t().Pie.parser.LangiumParser; bd.pie = e; }, "pie"), architecture: /* @__PURE__ */ Dt(async () => { - const { createArchitectureServices: t } = await Promise.resolve().then(() => Plr), e = t().Architecture.parser.LangiumParser; + const { createArchitectureServices: t } = await Promise.resolve().then(() => $lr), e = t().Architecture.parser.LangiumParser; bd.architecture = e; }, "architecture"), gitGraph: /* @__PURE__ */ Dt(async () => { - const { createGitGraphServices: t } = await Promise.resolve().then(() => $lr), e = t().GitGraph.parser.LangiumParser; + const { createGitGraphServices: t } = await Promise.resolve().then(() => Blr), e = t().GitGraph.parser.LangiumParser; bd.gitGraph = e; }, "gitGraph") }; async function pm(t, e) { - const r = AQt[t]; + const r = LQt[t]; if (!r) throw new Error(`Unknown diagram type: ${t}`); bd[t] || await r(); const i = bd[t].parse(e); if (i.lexerErrors.length > 0 || i.parserErrors.length > 0) - throw new LQt(i); + throw new RQt(i); return i.value; } Dt(pm, "parse"); -var Cb, LQt = (Cb = class extends Error { +var Cb, RQt = (Cb = class extends Error { constructor(e) { const r = e.lexerErrors.map((i) => i.message).join(` `), n = e.parserErrors.map((i) => i.message).join(` @@ -81842,8 +81913,8 @@ var Cb, LQt = (Cb = class extends Error { HIGHLIGHT: 2, MERGE: 3, CHERRY_PICK: 4 -}, RQt = jr.gitGraph, tp = /* @__PURE__ */ x(() => ch({ - ...RQt, +}, MQt = jr.gitGraph, tp = /* @__PURE__ */ x(() => ch({ + ...MQt, ...pi().gitGraph }), "getConfig"), wt = new fI(() => { const t = tp(), e = t.mainBranchName, r = t.mainBranchOrder; @@ -81871,18 +81942,18 @@ function rpe(t, e) { }, []); } x(rpe, "uniqBy"); -var MQt = /* @__PURE__ */ x(function(t) { +var DQt = /* @__PURE__ */ x(function(t) { wt.records.direction = t; -}, "setDirection"), DQt = /* @__PURE__ */ x(function(t) { +}, "setDirection"), NQt = /* @__PURE__ */ x(function(t) { X.debug("options str", t), t = t == null ? void 0 : t.trim(), t = t || "{}"; try { wt.records.options = JSON.parse(t); } catch (e) { X.error("error while parsing gitGraph options", e.message); } -}, "setOptions"), NQt = /* @__PURE__ */ x(function() { +}, "setOptions"), IQt = /* @__PURE__ */ x(function() { return wt.records.options; -}, "getOptions"), IQt = /* @__PURE__ */ x(function(t) { +}, "getOptions"), PQt = /* @__PURE__ */ x(function(t) { let e = t.msg, r = t.id; const n = t.type; let i = t.tags; @@ -81899,7 +81970,7 @@ var MQt = /* @__PURE__ */ x(function(t) { branch: wt.records.currBranch }; wt.records.head = a, X.info("main branch", s.mainBranchName), wt.records.commits.set(a.id, a), wt.records.branches.set(wt.records.currBranch, a.id), X.debug("in pushCommit " + a.id); -}, "commit"), PQt = /* @__PURE__ */ x(function(t) { +}, "commit"), $Qt = /* @__PURE__ */ x(function(t) { let e = t.name; const r = t.order; if (e = at.sanitizeText(e, tp()), wt.records.branches.has(e)) @@ -81907,7 +81978,7 @@ var MQt = /* @__PURE__ */ x(function(t) { `Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout ${e}")` ); wt.records.branches.set(e, wt.records.head != null ? wt.records.head.id : null), wt.records.branchConfig.set(e, { name: e, order: r }), npe(e), X.debug("in createBranch"); -}, "branch"), $Qt = /* @__PURE__ */ x((t) => { +}, "branch"), BQt = /* @__PURE__ */ x((t) => { let e = t.branch, r = t.id; const n = t.type, i = t.tags, s = tp(); e = at.sanitizeText(e, s), r && (r = at.sanitizeText(r, s)); @@ -81984,7 +82055,7 @@ var MQt = /* @__PURE__ */ x(function(t) { tags: i != null ? i : [] }; wt.records.head = f, wt.records.commits.set(f.id, f), wt.records.branches.set(wt.records.currBranch, f.id), X.debug(wt.records.branches), X.debug("in mergeBranch"); -}, "merge"), BQt = /* @__PURE__ */ x(function(t) { +}, "merge"), FQt = /* @__PURE__ */ x(function(t) { let e = t.id, r = t.targetId, n = t.tags, i = t.parent; X.debug("Entering cherryPick:", e, r, n); const s = tp(); @@ -82101,13 +82172,13 @@ function BI(t) { t = rpe(t, (i) => i.id), BI(t); } x(BI, "prettyPrintCommitHistory"); -var FQt = /* @__PURE__ */ x(function() { +var zQt = /* @__PURE__ */ x(function() { X.debug(wt.records.commits); const t = ipe()[0]; BI([t]); -}, "prettyPrint"), zQt = /* @__PURE__ */ x(function() { +}, "prettyPrint"), VQt = /* @__PURE__ */ x(function() { wt.reset(), Xi(); -}, "clear"), VQt = /* @__PURE__ */ x(function() { +}, "clear"), UQt = /* @__PURE__ */ x(function() { return [...wt.records.branchConfig.values()].map((e, r) => e.order !== null && e.order !== void 0 ? e : { ...e, order: parseFloat(`0.${r}`) @@ -82115,61 +82186,61 @@ var FQt = /* @__PURE__ */ x(function() { var n, i; return ((n = e.order) != null ? n : 0) - ((i = r.order) != null ? i : 0); }).map(({ name: e }) => ({ name: e })); -}, "getBranchesAsObjArray"), UQt = /* @__PURE__ */ x(function() { +}, "getBranchesAsObjArray"), qQt = /* @__PURE__ */ x(function() { return wt.records.branches; -}, "getBranches"), qQt = /* @__PURE__ */ x(function() { +}, "getBranches"), QQt = /* @__PURE__ */ x(function() { return wt.records.commits; }, "getCommits"), ipe = /* @__PURE__ */ x(function() { const t = [...wt.records.commits.values()]; return t.forEach(function(e) { X.debug(e.id); }), t.sort((e, r) => e.seq - r.seq), t; -}, "getCommitsArray"), QQt = /* @__PURE__ */ x(function() { +}, "getCommitsArray"), YQt = /* @__PURE__ */ x(function() { return wt.records.currBranch; -}, "getCurrentBranch"), YQt = /* @__PURE__ */ x(function() { +}, "getCurrentBranch"), WQt = /* @__PURE__ */ x(function() { return wt.records.direction; -}, "getDirection"), WQt = /* @__PURE__ */ x(function() { +}, "getDirection"), GQt = /* @__PURE__ */ x(function() { return wt.records.head; }, "getHead"), spe = { commitType: Hr, getConfig: tp, - setDirection: MQt, - setOptions: DQt, - getOptions: NQt, - commit: IQt, - branch: PQt, - merge: $Qt, - cherryPick: BQt, + setDirection: DQt, + setOptions: NQt, + getOptions: IQt, + commit: PQt, + branch: $Qt, + merge: BQt, + cherryPick: FQt, checkout: npe, - prettyPrint: FQt, - clear: zQt, - getBranchesAsObjArray: VQt, - getBranches: UQt, - getCommits: qQt, + prettyPrint: zQt, + clear: VQt, + getBranchesAsObjArray: UQt, + getBranches: qQt, + getCommits: QQt, getCommitsArray: ipe, - getCurrentBranch: QQt, - getDirection: YQt, - getHead: WQt, + getCurrentBranch: YQt, + getDirection: WQt, + getHead: GQt, setAccTitle: Zi, getAccTitle: vs, getAccDescription: bs, setAccDescription: ys, setDiagramTitle: fa, getDiagramTitle: xs -}, GQt = /* @__PURE__ */ x((t, e) => { +}, HQt = /* @__PURE__ */ x((t, e) => { Rx(t, e), t.dir && e.setDirection(t.dir); for (const r of t.statements) - HQt(r, e); -}, "populate"), HQt = /* @__PURE__ */ x((t, e) => { + XQt(r, e); +}, "populate"), XQt = /* @__PURE__ */ x((t, e) => { const n = { - Commit: /* @__PURE__ */ x((i) => e.commit(XQt(i)), "Commit"), - Branch: /* @__PURE__ */ x((i) => e.branch(ZQt(i)), "Branch"), - Merge: /* @__PURE__ */ x((i) => e.merge(jQt(i)), "Merge"), - Checkout: /* @__PURE__ */ x((i) => e.checkout(KQt(i)), "Checkout"), - CherryPicking: /* @__PURE__ */ x((i) => e.cherryPick(JQt(i)), "CherryPicking") + Commit: /* @__PURE__ */ x((i) => e.commit(ZQt(i)), "Commit"), + Branch: /* @__PURE__ */ x((i) => e.branch(jQt(i)), "Branch"), + Merge: /* @__PURE__ */ x((i) => e.merge(KQt(i)), "Merge"), + Checkout: /* @__PURE__ */ x((i) => e.checkout(JQt(i)), "Checkout"), + CherryPicking: /* @__PURE__ */ x((i) => e.cherryPick(eYt(i)), "CherryPicking") }[t.$type]; n ? n(t) : X.error(`Unknown statement type: ${t.$type}`); -}, "parseStatement"), XQt = /* @__PURE__ */ x((t) => { +}, "parseStatement"), ZQt = /* @__PURE__ */ x((t) => { var r, n; return { id: t.id, @@ -82177,13 +82248,13 @@ var FQt = /* @__PURE__ */ x(function() { type: t.type !== void 0 ? Hr[t.type] : Hr.NORMAL, tags: (n = t.tags) != null ? n : void 0 }; -}, "parseCommit"), ZQt = /* @__PURE__ */ x((t) => { +}, "parseCommit"), jQt = /* @__PURE__ */ x((t) => { var r; return { name: t.name, order: (r = t.order) != null ? r : 0 }; -}, "parseBranch"), jQt = /* @__PURE__ */ x((t) => { +}, "parseBranch"), KQt = /* @__PURE__ */ x((t) => { var r, n; return { branch: t.branch, @@ -82191,7 +82262,7 @@ var FQt = /* @__PURE__ */ x(function() { type: t.type !== void 0 ? Hr[t.type] : void 0, tags: (n = t.tags) != null ? n : void 0 }; -}, "parseMerge"), KQt = /* @__PURE__ */ x((t) => t.branch, "parseCheckout"), JQt = /* @__PURE__ */ x((t) => { +}, "parseMerge"), JQt = /* @__PURE__ */ x((t) => t.branch, "parseCheckout"), eYt = /* @__PURE__ */ x((t) => { var r; return { id: t.id, @@ -82199,12 +82270,12 @@ var FQt = /* @__PURE__ */ x(function() { tags: ((r = t.tags) == null ? void 0 : r.length) === 0 ? void 0 : t.tags, parent: t.parent }; -}, "parseCherryPicking"), eYt = { +}, "parseCherryPicking"), tYt = { parse: /* @__PURE__ */ x(async (t) => { const e = await pm("gitGraph", t); - X.debug(e), GQt(e, spe); + X.debug(e), HQt(e, spe); }, "parse") -}, W_ = be(), ui = W_ == null ? void 0 : W_.gitGraph, Uh = 10, qh = 40, sc = 4, gu = 2, xd = 8, Aa = /* @__PURE__ */ new Map(), Pa = /* @__PURE__ */ new Map(), Uk = 30, Lv = /* @__PURE__ */ new Map(), qk = [], Rh = 0, Tr = "LR", tYt = /* @__PURE__ */ x(() => { +}, W_ = be(), ui = W_ == null ? void 0 : W_.gitGraph, Uh = 10, qh = 40, sc = 4, gu = 2, xd = 8, Aa = /* @__PURE__ */ new Map(), Pa = /* @__PURE__ */ new Map(), Uk = 30, Lv = /* @__PURE__ */ new Map(), qk = [], Rh = 0, Tr = "LR", rYt = /* @__PURE__ */ x(() => { Aa.clear(), Pa.clear(), Lv.clear(), Rh = 0, qk = [], Tr = "LR"; }, "clear"), ape = /* @__PURE__ */ x((t) => { const e = document.createElementNS("http://www.w3.org/2000/svg", "text"); @@ -82219,32 +82290,32 @@ var FQt = /* @__PURE__ */ x(function() { const s = Tr === "TB" || Tr == "BT" ? (a = Pa.get(i)) == null ? void 0 : a.y : (o = Pa.get(i)) == null ? void 0 : o.x; s !== void 0 && r(s, n) && (e = i, n = s); }), e; -}, "findClosestParent"), rYt = /* @__PURE__ */ x((t) => { +}, "findClosestParent"), nYt = /* @__PURE__ */ x((t) => { let e = "", r = 1 / 0; return t.forEach((n) => { const i = Pa.get(n).y; i <= r && (e = n, r = i); }), e || void 0; -}, "findClosestParentBT"), nYt = /* @__PURE__ */ x((t, e, r) => { +}, "findClosestParentBT"), iYt = /* @__PURE__ */ x((t, e, r) => { let n = r, i = r; const s = []; t.forEach((a) => { const o = e.get(a); if (!o) throw new Error(`Commit not found for key ${a}`); - o.parents.length ? (n = sYt(o), i = Math.max(n, i)) : s.push(o), aYt(o, n); + o.parents.length ? (n = aYt(o), i = Math.max(n, i)) : s.push(o), oYt(o, n); }), n = i, s.forEach((a) => { - oYt(a, n, r); + lYt(a, n, r); }), t.forEach((a) => { const o = e.get(a); if (o != null && o.parents.length) { - const l = rYt(o.parents); + const l = nYt(o.parents); n = Pa.get(l).y - qh, n <= i && (i = n); const u = Aa.get(o.branch).pos, h = n - Uh; Pa.set(o.id, { x: u, y: h }); } }); -}, "setParallelBTPos"), iYt = /* @__PURE__ */ x((t) => { +}, "setParallelBTPos"), sYt = /* @__PURE__ */ x((t) => { var n; const e = ope(t.parents.filter((i) => i !== null)); if (!e) @@ -82253,19 +82324,19 @@ var FQt = /* @__PURE__ */ x(function() { if (r === void 0) throw new Error(`Closest parent position not found for commit ${t.id}`); return r; -}, "findClosestParentPos"), sYt = /* @__PURE__ */ x((t) => iYt(t) + qh, "calculateCommitPosition"), aYt = /* @__PURE__ */ x((t, e) => { +}, "findClosestParentPos"), aYt = /* @__PURE__ */ x((t) => sYt(t) + qh, "calculateCommitPosition"), oYt = /* @__PURE__ */ x((t, e) => { const r = Aa.get(t.branch); if (!r) throw new Error(`Branch not found for commit ${t.id}`); const n = r.pos, i = e + Uh; return Pa.set(t.id, { x: n, y: i }), { x: n, y: i }; -}, "setCommitPosition"), oYt = /* @__PURE__ */ x((t, e, r) => { +}, "setCommitPosition"), lYt = /* @__PURE__ */ x((t, e, r) => { const n = Aa.get(t.branch); if (!n) throw new Error(`Branch not found for commit ${t.id}`); const i = e + r, s = n.pos; Pa.set(t.id, { x: s, y: i }); -}, "setRootPosition"), lYt = /* @__PURE__ */ x((t, e, r, n, i, s) => { +}, "setRootPosition"), cYt = /* @__PURE__ */ x((t, e, r, n, i, s) => { if (s === Hr.HIGHLIGHT) t.append("rect").attr("x", r.x - 10).attr("y", r.y - 10).attr("width", 20).attr("height", 20).attr( "class", @@ -82290,7 +82361,7 @@ var FQt = /* @__PURE__ */ x(function() { `M ${r.x - 5},${r.y - 5}L${r.x + 5},${r.y + 5}M${r.x - 5},${r.y + 5}L${r.x + 5},${r.y - 5}` ).attr("class", `commit ${n} ${e.id} commit${i % xd}`); } -}, "drawCommitBullet"), cYt = /* @__PURE__ */ x((t, e, r, n) => { +}, "drawCommitBullet"), uYt = /* @__PURE__ */ x((t, e, r, n) => { var i; if (e.type !== Hr.CHERRY_PICK && (e.customId && e.type === Hr.MERGE || e.type !== Hr.MERGE) && (ui == null ? void 0 : ui.showCommitLabel)) { const s = t.append("g"), a = s.insert("rect").attr("class", "commit-label-bkg"), o = s.append("text").attr("x", n).attr("y", r.y + 25).attr("class", "commit-label").text(e.id), l = (i = o.node()) == null ? void 0 : i.getBBox(); @@ -82311,7 +82382,7 @@ var FQt = /* @__PURE__ */ x(function() { ); } } -}, "drawCommitLabel"), uYt = /* @__PURE__ */ x((t, e, r, n) => { +}, "drawCommitLabel"), hYt = /* @__PURE__ */ x((t, e, r, n) => { var i; if (e.tags.length > 0) { let s = 0, a = 0, o = 0; @@ -82353,7 +82424,7 @@ var FQt = /* @__PURE__ */ x(function() { } } } -}, "drawCommitTags"), hYt = /* @__PURE__ */ x((t) => { +}, "drawCommitTags"), fYt = /* @__PURE__ */ x((t) => { var r; switch ((r = t.customType) != null ? r : t.type) { case Hr.NORMAL: @@ -82369,7 +82440,7 @@ var FQt = /* @__PURE__ */ x(function() { default: return "commit-normal"; } -}, "getCommitClassType"), fYt = /* @__PURE__ */ x((t, e, r, n) => { +}, "getCommitClassType"), dYt = /* @__PURE__ */ x((t, e, r, n) => { var s, a, o; const i = { x: 0, y: 0 }; if (t.parents.length > 0) { @@ -82381,7 +82452,7 @@ var FQt = /* @__PURE__ */ x(function() { } else return e === "TB" ? Uk : e === "BT" ? ((o = n.get(t.id)) != null ? o : i).y - qh : 0; return 0; -}, "calculatePosition"), dYt = /* @__PURE__ */ x((t, e, r) => { +}, "calculatePosition"), pYt = /* @__PURE__ */ x((t, e, r) => { var a, o; const n = Tr === "BT" && r ? e : e + Uh, i = Tr === "TB" || Tr === "BT" ? n : (a = Aa.get(t.branch)) == null ? void 0 : a.pos, s = Tr === "TB" || Tr === "BT" ? (o = Aa.get(t.branch)) == null ? void 0 : o.pos : n; if (s === void 0 || i === void 0) @@ -82399,20 +82470,20 @@ var FQt = /* @__PURE__ */ x(function() { return p !== void 0 && g !== void 0 ? p - g : 0; }, "sortKeys"); let u = a.sort(l); - Tr === "BT" && (o && nYt(u, e, s), u = u.reverse()), u.forEach((f) => { + Tr === "BT" && (o && iYt(u, e, s), u = u.reverse()), u.forEach((f) => { var g, m, v; const d = e.get(f); if (!d) throw new Error(`Commit not found for key ${f}`); - o && (s = fYt(d, Tr, s, Pa)); - const p = dYt(d, s, o); + o && (s = dYt(d, Tr, s, Pa)); + const p = pYt(d, s, o); if (r) { - const y = hYt(d), b = (g = d.customType) != null ? g : d.type, w = (v = (m = Aa.get(d.branch)) == null ? void 0 : m.index) != null ? v : 0; - lYt(n, d, p, y, w, b), cYt(i, d, p, s), uYt(i, d, p, s); + const y = fYt(d), b = (g = d.customType) != null ? g : d.type, w = (v = (m = Aa.get(d.branch)) == null ? void 0 : m.index) != null ? v : 0; + cYt(n, d, p, y, w, b), uYt(i, d, p, s), hYt(i, d, p, s); } Tr === "TB" || Tr === "BT" ? Pa.set(d.id, { x: p.x, y: p.posWithOffset }) : Pa.set(d.id, { x: p.posWithOffset, y: p.y }), s = Tr === "BT" && o ? s + qh : s + qh + Uh, s > Rh && (Rh = s); }); -}, "drawCommits"), pYt = /* @__PURE__ */ x((t, e, r, n, i) => { +}, "drawCommits"), gYt = /* @__PURE__ */ x((t, e, r, n, i) => { const a = (Tr === "TB" || Tr === "BT" ? r.x < n.x : r.y < n.y) ? e.branch : t.branch, o = /* @__PURE__ */ x((u) => u.branch === a, "isOnBranchToGetCurve"), l = /* @__PURE__ */ x((u) => u.seq > t.seq && u.seq < e.seq, "isBetweenCommits"); return [...i.values()].some((u) => l(u) && o(u)); }, "shouldRerouteArrow"), Rv = /* @__PURE__ */ x((t, e, r = 0) => { @@ -82423,12 +82494,12 @@ var FQt = /* @__PURE__ */ x(function() { return qk.push(n), n; const s = Math.abs(t - e); return Rv(t, e - s / 5, r + 1); -}, "findLane"), gYt = /* @__PURE__ */ x((t, e, r, n) => { +}, "findLane"), mYt = /* @__PURE__ */ x((t, e, r, n) => { var p, g, m, v, y; const i = Pa.get(e.id), s = Pa.get(r.id); if (i === void 0 || s === void 0) throw new Error(`Commit positions not found for commits ${e.id} and ${r.id}`); - const a = pYt(e, r, i, s, n); + const a = gYt(e, r, i, s, n); let o = "", l = "", u = 0, h = 0, f = (p = Aa.get(r.branch)) == null ? void 0 : p.index; r.type === Hr.MERGE && e.id !== r.parents[0] && (f = (g = Aa.get(e.branch)) == null ? void 0 : g.index); let d; @@ -82441,15 +82512,15 @@ var FQt = /* @__PURE__ */ x(function() { if (d === void 0) throw new Error("Line definition not found"); t.append("path").attr("d", d).attr("class", "arrow arrow" + f % xd); -}, "drawArrow"), mYt = /* @__PURE__ */ x((t, e) => { +}, "drawArrow"), vYt = /* @__PURE__ */ x((t, e) => { const r = t.append("g").attr("class", "commit-arrows"); [...e.keys()].forEach((n) => { const i = e.get(n); i.parents && i.parents.length > 0 && i.parents.forEach((s) => { - gYt(r, e.get(s), i, e); + mYt(r, e.get(s), i, e); }); }); -}, "drawArrows"), vYt = /* @__PURE__ */ x((t, e) => { +}, "drawArrows"), yYt = /* @__PURE__ */ x((t, e) => { const r = t.append("g"); e.forEach((n, i) => { var g; @@ -82466,11 +82537,11 @@ var FQt = /* @__PURE__ */ x(function() { "translate(" + (-p.width - 14 - ((ui == null ? void 0 : ui.rotateCommitLabel) === !0 ? 30 : 0)) + ", " + (a - p.height / 2 - 1) + ")" ), Tr === "TB" ? (h.attr("x", a - p.width / 2 - 10).attr("y", 0), d.attr("transform", "translate(" + (a - p.width / 2 - 5) + ", 0)")) : Tr === "BT" ? (h.attr("x", a - p.width / 2 - 10).attr("y", Rh), d.attr("transform", "translate(" + (a - p.width / 2 - 5) + ", " + Rh + ")")) : h.attr("transform", "translate(-19, " + (a - p.height / 2) + ")"); }); -}, "drawBranches"), yYt = /* @__PURE__ */ x(function(t, e, r, n, i) { +}, "drawBranches"), bYt = /* @__PURE__ */ x(function(t, e, r, n, i) { return Aa.set(t, { pos: e, index: r }), e += 50 + (i ? 40 : 0) + (Tr === "TB" || Tr === "BT" ? n.width / 2 : 0), e; -}, "setBranchPosition"), bYt = /* @__PURE__ */ x(function(t, e, r, n) { +}, "setBranchPosition"), xYt = /* @__PURE__ */ x(function(t, e, r, n) { var u, h; - if (tYt(), X.debug("in gitgraph renderer", t + ` + if (rYt(), X.debug("in gitgraph renderer", t + ` `, "id:", e, r), !ui) throw new Error("GitGraph config not found"); const i = (u = ui.rotateCommitLabel) != null ? u : !1, s = n.db; @@ -82484,8 +82555,8 @@ var FQt = /* @__PURE__ */ x(function() { const p = ape(f.name), g = o.append("g"), m = g.insert("g").attr("class", "branchLabel"), v = m.insert("g").attr("class", "label branch-label"); (b = v.node()) == null || b.appendChild(p); const y = p.getBBox(); - l = yYt(f.name, l, d, y, i), v.remove(), m.remove(), g.remove(); - }), WG(o, Lv, !1), ui.showBranches && vYt(o, a), mYt(o, Lv), WG(o, Lv, !0), sr.insertTitle( + l = bYt(f.name, l, d, y, i), v.remove(), m.remove(), g.remove(); + }), WG(o, Lv, !1), ui.showBranches && yYt(o, a), vYt(o, Lv), WG(o, Lv, !0), sr.insertTitle( o, "gitTitleText", (h = ui.titleTopMargin) != null ? h : 0, @@ -82496,9 +82567,9 @@ var FQt = /* @__PURE__ */ x(function() { ui.diagramPadding, ui.useMaxWidth ); -}, "draw"), xYt = { - draw: bYt -}, wYt = /* @__PURE__ */ x((t) => ` +}, "draw"), wYt = { + draw: xYt +}, OYt = /* @__PURE__ */ x((t) => ` .commit-id, .commit-msg, .branch-label { @@ -82551,15 +82622,15 @@ var FQt = /* @__PURE__ */ x(function() { font-size: 18px; fill: ${t.textColor}; } -`, "getStyles"), OYt = wYt, kYt = { - parser: eYt, +`, "getStyles"), kYt = OYt, SYt = { + parser: tYt, db: spe, - renderer: xYt, - styles: OYt + renderer: wYt, + styles: kYt }; -const SYt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +const TYt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - diagram: kYt + diagram: SYt }, Symbol.toStringTag, { value: "Module" })); var lpe = { exports: {} }; (function(t, e) { @@ -82589,7 +82660,7 @@ var lpe = { exports: {} }; }; }); })(lpe); -const TYt = lpe.exports; +const CYt = lpe.exports; var cpe = { exports: {} }; (function(t, e) { (function(r, n) { @@ -82722,7 +82793,7 @@ var cpe = { exports: {} }; }; }); })(cpe); -const CYt = cpe.exports; +const EYt = cpe.exports; var upe = { exports: {} }; (function(t, e) { (function(r, n) { @@ -82772,7 +82843,7 @@ var upe = { exports: {} }; }; }); })(upe); -const EYt = upe.exports; +const _Yt = upe.exports; var E9 = function() { var t = /* @__PURE__ */ x(function($, k, N, M) { for (N = N || {}, M = $.length; M--; N[$[M]] = k) @@ -83268,55 +83339,55 @@ Expecting ` + Ye.join(", ") + ", got '" + (this.terminals_[se] || se) + "'" : De return x(R, "Parser"), R.prototype = L, L.Parser = R, new R(); }(); E9.parser = E9; -var _Yt = E9; -Ns.extend(TYt); +var AYt = E9; Ns.extend(CYt); Ns.extend(EYt); -var GG = { friday: 5, saturday: 6 }, Sc = "", FI = "", zI = void 0, VI = "", zx = [], Vx = [], UI = /* @__PURE__ */ new Map(), qI = [], Qk = [], x1 = "", QI = "", hpe = ["active", "done", "crit", "milestone"], YI = [], Ux = !1, WI = !1, GI = "sunday", Yk = "saturday", _9 = 0, AYt = /* @__PURE__ */ x(function() { +Ns.extend(_Yt); +var GG = { friday: 5, saturday: 6 }, Sc = "", FI = "", zI = void 0, VI = "", zx = [], Vx = [], UI = /* @__PURE__ */ new Map(), qI = [], Qk = [], x1 = "", QI = "", hpe = ["active", "done", "crit", "milestone"], YI = [], Ux = !1, WI = !1, GI = "sunday", Yk = "saturday", _9 = 0, LYt = /* @__PURE__ */ x(function() { qI = [], Qk = [], x1 = "", YI = [], K4 = 0, L9 = void 0, J4 = void 0, yi = [], Sc = "", FI = "", QI = "", zI = void 0, VI = "", zx = [], Vx = [], Ux = !1, WI = !1, _9 = 0, UI = /* @__PURE__ */ new Map(), Xi(), GI = "sunday", Yk = "saturday"; -}, "clear"), LYt = /* @__PURE__ */ x(function(t) { +}, "clear"), RYt = /* @__PURE__ */ x(function(t) { FI = t; -}, "setAxisFormat"), RYt = /* @__PURE__ */ x(function() { +}, "setAxisFormat"), MYt = /* @__PURE__ */ x(function() { return FI; -}, "getAxisFormat"), MYt = /* @__PURE__ */ x(function(t) { +}, "getAxisFormat"), DYt = /* @__PURE__ */ x(function(t) { zI = t; -}, "setTickInterval"), DYt = /* @__PURE__ */ x(function() { +}, "setTickInterval"), NYt = /* @__PURE__ */ x(function() { return zI; -}, "getTickInterval"), NYt = /* @__PURE__ */ x(function(t) { +}, "getTickInterval"), IYt = /* @__PURE__ */ x(function(t) { VI = t; -}, "setTodayMarker"), IYt = /* @__PURE__ */ x(function() { +}, "setTodayMarker"), PYt = /* @__PURE__ */ x(function() { return VI; -}, "getTodayMarker"), PYt = /* @__PURE__ */ x(function(t) { +}, "getTodayMarker"), $Yt = /* @__PURE__ */ x(function(t) { Sc = t; -}, "setDateFormat"), $Yt = /* @__PURE__ */ x(function() { +}, "setDateFormat"), BYt = /* @__PURE__ */ x(function() { Ux = !0; -}, "enableInclusiveEndDates"), BYt = /* @__PURE__ */ x(function() { +}, "enableInclusiveEndDates"), FYt = /* @__PURE__ */ x(function() { return Ux; -}, "endDatesAreInclusive"), FYt = /* @__PURE__ */ x(function() { +}, "endDatesAreInclusive"), zYt = /* @__PURE__ */ x(function() { WI = !0; -}, "enableTopAxis"), zYt = /* @__PURE__ */ x(function() { +}, "enableTopAxis"), VYt = /* @__PURE__ */ x(function() { return WI; -}, "topAxisEnabled"), VYt = /* @__PURE__ */ x(function(t) { +}, "topAxisEnabled"), UYt = /* @__PURE__ */ x(function(t) { QI = t; -}, "setDisplayMode"), UYt = /* @__PURE__ */ x(function() { +}, "setDisplayMode"), qYt = /* @__PURE__ */ x(function() { return QI; -}, "getDisplayMode"), qYt = /* @__PURE__ */ x(function() { +}, "getDisplayMode"), QYt = /* @__PURE__ */ x(function() { return Sc; -}, "getDateFormat"), QYt = /* @__PURE__ */ x(function(t) { +}, "getDateFormat"), YYt = /* @__PURE__ */ x(function(t) { zx = t.toLowerCase().split(/[\s,]+/); -}, "setIncludes"), YYt = /* @__PURE__ */ x(function() { +}, "setIncludes"), WYt = /* @__PURE__ */ x(function() { return zx; -}, "getIncludes"), WYt = /* @__PURE__ */ x(function(t) { +}, "getIncludes"), GYt = /* @__PURE__ */ x(function(t) { Vx = t.toLowerCase().split(/[\s,]+/); -}, "setExcludes"), GYt = /* @__PURE__ */ x(function() { +}, "setExcludes"), HYt = /* @__PURE__ */ x(function() { return Vx; -}, "getExcludes"), HYt = /* @__PURE__ */ x(function() { +}, "getExcludes"), XYt = /* @__PURE__ */ x(function() { return UI; -}, "getLinks"), XYt = /* @__PURE__ */ x(function(t) { +}, "getLinks"), ZYt = /* @__PURE__ */ x(function(t) { x1 = t, qI.push(t); -}, "addSection"), ZYt = /* @__PURE__ */ x(function() { +}, "addSection"), jYt = /* @__PURE__ */ x(function() { return qI; -}, "getSections"), jYt = /* @__PURE__ */ x(function() { +}, "getSections"), KYt = /* @__PURE__ */ x(function() { let t = HG(); const e = 10; let r = 0; @@ -83325,11 +83396,11 @@ var GG = { friday: 5, saturday: 6 }, Sc = "", FI = "", zI = void 0, VI = "", zx return Qk = yi, Qk; }, "getTasks"), fpe = /* @__PURE__ */ x(function(t, e, r, n) { return n.includes(t.format(e.trim())) ? !1 : r.includes("weekends") && (t.isoWeekday() === GG[Yk] || t.isoWeekday() === GG[Yk] + 1) || r.includes(t.format("dddd").toLowerCase()) ? !0 : r.includes(t.format(e.trim())); -}, "isInvalidDate"), KYt = /* @__PURE__ */ x(function(t) { +}, "isInvalidDate"), JYt = /* @__PURE__ */ x(function(t) { GI = t; -}, "setWeekday"), JYt = /* @__PURE__ */ x(function() { +}, "setWeekday"), eWt = /* @__PURE__ */ x(function() { return GI; -}, "getWeekday"), eWt = /* @__PURE__ */ x(function(t) { +}, "getWeekday"), tWt = /* @__PURE__ */ x(function(t) { Yk = t; }, "setWeekend"), dpe = /* @__PURE__ */ x(function(t, e, r, n) { if (!r.length || t.manualEndTime) @@ -83338,7 +83409,7 @@ var GG = { friday: 5, saturday: 6 }, Sc = "", FI = "", zI = void 0, VI = "", zx t.startTime instanceof Date ? i = Ns(t.startTime) : i = Ns(t.startTime, e, !0), i = i.add(1, "d"); let s; t.endTime instanceof Date ? s = Ns(t.endTime) : s = Ns(t.endTime, e, !0); - const [a, o] = tWt( + const [a, o] = rWt( i, s, e, @@ -83346,7 +83417,7 @@ var GG = { friday: 5, saturday: 6 }, Sc = "", FI = "", zI = void 0, VI = "", zx n ); t.endTime = a.toDate(), t.renderEndTime = o; -}, "checkTaskDates"), tWt = /* @__PURE__ */ x(function(t, e, r, n, i) { +}, "checkTaskDates"), rWt = /* @__PURE__ */ x(function(t, e, r, n, i) { let s = !1, a = null; for (; t <= e; ) s || (a = e.toDate()), s = fpe(t, r, n, i), s && (e = e.add(1, "d")), t = t.add(1, "d"); @@ -83404,7 +83475,7 @@ var GG = { friday: 5, saturday: 6 }, Sc = "", FI = "", zI = void 0, VI = "", zx return o.toDate(); }, "getEndDate"), K4 = 0, ug = /* @__PURE__ */ x(function(t) { return t === void 0 ? (K4 = K4 + 1, "task" + K4) : t; -}, "parseId"), rWt = /* @__PURE__ */ x(function(t, e) { +}, "parseId"), nWt = /* @__PURE__ */ x(function(t, e) { let r; e.substr(0, 1) === ":" ? r = e.substr(1, e.length) : r = e; const n = r.split(","), i = {}; @@ -83424,7 +83495,7 @@ var GG = { friday: 5, saturday: 6 }, Sc = "", FI = "", zI = void 0, VI = "", zx break; } return s && (i.endTime = gpe(i.startTime, Sc, s, Ux), i.manualEndTime = Ns(s, "YYYY-MM-DD", !0).isValid(), dpe(i, Sc, Vx, zx)), i; -}, "compileData"), nWt = /* @__PURE__ */ x(function(t, e) { +}, "compileData"), iWt = /* @__PURE__ */ x(function(t, e) { let r; e.substr(0, 1) === ":" ? r = e.substr(1, e.length) : r = e; const n = r.split(","), i = {}; @@ -83458,7 +83529,7 @@ var GG = { friday: 5, saturday: 6 }, Sc = "", FI = "", zI = void 0, VI = "", zx break; } return i; -}, "parseData"), L9, J4, yi = [], mpe = {}, iWt = /* @__PURE__ */ x(function(t, e) { +}, "parseData"), L9, J4, yi = [], mpe = {}, sWt = /* @__PURE__ */ x(function(t, e) { const r = { section: x1, type: x1, @@ -83468,21 +83539,21 @@ var GG = { friday: 5, saturday: 6 }, Sc = "", FI = "", zI = void 0, VI = "", zx raw: { data: e }, task: t, classes: [] - }, n = nWt(J4, e); + }, n = iWt(J4, e); r.raw.startTime = n.startTime, r.raw.endTime = n.endTime, r.id = n.id, r.prevTaskId = J4, r.active = n.active, r.done = n.done, r.crit = n.crit, r.milestone = n.milestone, r.order = _9, _9++; const i = yi.push(r); J4 = r.id, mpe[r.id] = i - 1; }, "addTask"), rp = /* @__PURE__ */ x(function(t) { const e = mpe[t]; return yi[e]; -}, "findTaskById"), sWt = /* @__PURE__ */ x(function(t, e) { +}, "findTaskById"), aWt = /* @__PURE__ */ x(function(t, e) { const r = { section: x1, type: x1, description: t, task: t, classes: [] - }, n = rWt(L9, e); + }, n = nWt(L9, e); r.startTime = n.startTime, r.endTime = n.endTime, r.id = n.id, r.active = n.active, r.done = n.done, r.crit = n.crit, r.milestone = n.milestone, L9 = r, Qk.push(r); }, "addTaskOrg"), HG = /* @__PURE__ */ x(function() { const t = /* @__PURE__ */ x(function(r) { @@ -83513,7 +83584,7 @@ var GG = { friday: 5, saturday: 6 }, Sc = "", FI = "", zI = void 0, VI = "", zx for (const [r, n] of yi.entries()) t(r), e = e && n.processed; return e; -}, "compileTasks"), aWt = /* @__PURE__ */ x(function(t, e) { +}, "compileTasks"), oWt = /* @__PURE__ */ x(function(t, e) { let r = e; be().securityLevel !== "loose" && (r = zf(e)), t.split(",").forEach(function(n) { rp(n) !== void 0 && (ype(n, () => { @@ -83525,7 +83596,7 @@ var GG = { friday: 5, saturday: 6 }, Sc = "", FI = "", zI = void 0, VI = "", zx let n = rp(r); n !== void 0 && n.classes.push(e); }); -}, "setClass"), oWt = /* @__PURE__ */ x(function(t, e, r) { +}, "setClass"), lWt = /* @__PURE__ */ x(function(t, e, r) { if (be().securityLevel !== "loose" || e === void 0) return; let n = []; @@ -83554,56 +83625,56 @@ var GG = { friday: 5, saturday: 6 }, Sc = "", FI = "", zI = void 0, VI = "", zx }); } ); -}, "pushFun"), lWt = /* @__PURE__ */ x(function(t, e, r) { +}, "pushFun"), cWt = /* @__PURE__ */ x(function(t, e, r) { t.split(",").forEach(function(n) { - oWt(n, e, r); + lWt(n, e, r); }), vpe(t, "clickable"); -}, "setClickEvent"), cWt = /* @__PURE__ */ x(function(t) { +}, "setClickEvent"), uWt = /* @__PURE__ */ x(function(t) { YI.forEach(function(e) { e(t); }); -}, "bindFunctions"), uWt = { +}, "bindFunctions"), hWt = { getConfig: /* @__PURE__ */ x(() => be().gantt, "getConfig"), - clear: AYt, - setDateFormat: PYt, - getDateFormat: qYt, - enableInclusiveEndDates: $Yt, - endDatesAreInclusive: BYt, - enableTopAxis: FYt, - topAxisEnabled: zYt, - setAxisFormat: LYt, - getAxisFormat: RYt, - setTickInterval: MYt, - getTickInterval: DYt, - setTodayMarker: NYt, - getTodayMarker: IYt, + clear: LYt, + setDateFormat: $Yt, + getDateFormat: QYt, + enableInclusiveEndDates: BYt, + endDatesAreInclusive: FYt, + enableTopAxis: zYt, + topAxisEnabled: VYt, + setAxisFormat: RYt, + getAxisFormat: MYt, + setTickInterval: DYt, + getTickInterval: NYt, + setTodayMarker: IYt, + getTodayMarker: PYt, setAccTitle: Zi, getAccTitle: vs, setDiagramTitle: fa, getDiagramTitle: xs, - setDisplayMode: VYt, - getDisplayMode: UYt, + setDisplayMode: UYt, + getDisplayMode: qYt, setAccDescription: ys, getAccDescription: bs, - addSection: XYt, - getSections: ZYt, - getTasks: jYt, - addTask: iWt, + addSection: ZYt, + getSections: jYt, + getTasks: KYt, + addTask: sWt, findTaskById: rp, - addTaskOrg: sWt, - setIncludes: QYt, - getIncludes: YYt, - setExcludes: WYt, - getExcludes: GYt, - setClickEvent: lWt, - setLink: aWt, - getLinks: HYt, - bindFunctions: cWt, + addTaskOrg: aWt, + setIncludes: YYt, + getIncludes: WYt, + setExcludes: GYt, + getExcludes: HYt, + setClickEvent: cWt, + setLink: oWt, + getLinks: XYt, + bindFunctions: uWt, parseDuration: ppe, isInvalidDate: fpe, - setWeekday: KYt, - getWeekday: JYt, - setWeekend: eWt + setWeekday: JYt, + getWeekday: eWt, + setWeekend: tWt }; function HI(t, e, r) { let n = !0; @@ -83614,7 +83685,7 @@ function HI(t, e, r) { }); } x(HI, "getTaskTags"); -var hWt = /* @__PURE__ */ x(function() { +var fWt = /* @__PURE__ */ x(function() { X.debug("Something is calling, setConf, remove the call"); }, "setConf"), XG = { monday: u2, @@ -83624,7 +83695,7 @@ var hWt = /* @__PURE__ */ x(function() { friday: Ase, saturday: Lse, sunday: ux -}, fWt = /* @__PURE__ */ x((t, e) => { +}, dWt = /* @__PURE__ */ x((t, e) => { let r = [...t].map(() => -1 / 0), n = [...t].sort((s, a) => s.startTime - a.startTime || s.order - a.order), i = 0; for (const s of n) for (let a = 0; a < r.length; a++) @@ -83633,7 +83704,7 @@ var hWt = /* @__PURE__ */ x(function() { break; } return i; -}, "getMaxIntersections"), cu, dWt = /* @__PURE__ */ x(function(t, e, r, n) { +}, "getMaxIntersections"), cu, pWt = /* @__PURE__ */ x(function(t, e, r, n) { const i = be().gantt, s = be().securityLevel; let a; s === "sandbox" && (a = et("#i" + e)); @@ -83652,7 +83723,7 @@ var hWt = /* @__PURE__ */ x(function() { A[L.section] === void 0 ? A[L.section] = [L] : A[L.section].push(L); let E = 0; for (const L of Object.keys(A)) { - const _ = fWt(A[L], E) + 1; + const _ = dWt(A[L], E) + 1; E += _, p += _ * (i.barHeight + i.barGap), d[L] = _; } } else { @@ -83895,10 +83966,10 @@ var hWt = /* @__PURE__ */ x(function() { return L; } x(T, "checkUnique"); -}, "draw"), pWt = { - setConf: hWt, - draw: dWt -}, gWt = /* @__PURE__ */ x((t) => ` +}, "draw"), gWt = { + setConf: fWt, + draw: pWt +}, mWt = /* @__PURE__ */ x((t) => ` .mermaid-main-font { font-family: var(--mermaid-font-family, "trebuchet ms", verdana, arial, sans-serif); } @@ -84149,68 +84220,68 @@ var hWt = /* @__PURE__ */ x(function() { fill: ${t.titleColor || t.textColor}; font-family: var(--mermaid-font-family, "trebuchet ms", verdana, arial, sans-serif); } -`, "getStyles"), mWt = gWt, vWt = { - parser: _Yt, - db: uWt, - renderer: pWt, - styles: mWt +`, "getStyles"), vWt = mWt, yWt = { + parser: AYt, + db: hWt, + renderer: gWt, + styles: vWt }; -const yWt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +const bWt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - diagram: vWt + diagram: yWt }, Symbol.toStringTag, { value: "Module" })); -var bWt = { +var xWt = { parse: /* @__PURE__ */ x(async (t) => { const e = await pm("info", t); X.debug(e); }, "parse") -}, xWt = { version: W8 }, wWt = /* @__PURE__ */ x(() => xWt.version, "getVersion"), OWt = { - getVersion: wWt -}, kWt = /* @__PURE__ */ x((t, e, r) => { +}, wWt = { version: W8 }, OWt = /* @__PURE__ */ x(() => wWt.version, "getVersion"), kWt = { + getVersion: OWt +}, SWt = /* @__PURE__ */ x((t, e, r) => { X.debug(`rendering info diagram ` + t); const n = H0(e); ms(n, 100, 400, !0), n.append("g").append("text").attr("x", 100).attr("y", 40).attr("class", "version").attr("font-size", 32).style("text-anchor", "middle").text(`v${r}`); -}, "draw"), SWt = { draw: kWt }, TWt = { - parser: bWt, - db: OWt, - renderer: SWt +}, "draw"), TWt = { draw: SWt }, CWt = { + parser: xWt, + db: kWt, + renderer: TWt }; -const CWt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +const EWt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - diagram: TWt + diagram: CWt }, Symbol.toStringTag, { value: "Module" })); var bpe = jr.pie, XI = { sections: /* @__PURE__ */ new Map(), showData: !1, config: bpe -}, Wk = XI.sections, ZI = XI.showData, EWt = structuredClone(bpe), _Wt = /* @__PURE__ */ x(() => structuredClone(EWt), "getConfig"), AWt = /* @__PURE__ */ x(() => { +}, Wk = XI.sections, ZI = XI.showData, _Wt = structuredClone(bpe), AWt = /* @__PURE__ */ x(() => structuredClone(_Wt), "getConfig"), LWt = /* @__PURE__ */ x(() => { Wk = /* @__PURE__ */ new Map(), ZI = XI.showData, Xi(); -}, "clear"), LWt = /* @__PURE__ */ x(({ label: t, value: e }) => { +}, "clear"), RWt = /* @__PURE__ */ x(({ label: t, value: e }) => { Wk.has(t) || (Wk.set(t, e), X.debug(`added new section: ${t}, with value: ${e}`)); -}, "addSection"), RWt = /* @__PURE__ */ x(() => Wk, "getSections"), MWt = /* @__PURE__ */ x((t) => { +}, "addSection"), MWt = /* @__PURE__ */ x(() => Wk, "getSections"), DWt = /* @__PURE__ */ x((t) => { ZI = t; -}, "setShowData"), DWt = /* @__PURE__ */ x(() => ZI, "getShowData"), xpe = { - getConfig: _Wt, - clear: AWt, +}, "setShowData"), NWt = /* @__PURE__ */ x(() => ZI, "getShowData"), xpe = { + getConfig: AWt, + clear: LWt, setDiagramTitle: fa, getDiagramTitle: xs, setAccTitle: Zi, getAccTitle: vs, setAccDescription: ys, getAccDescription: bs, - addSection: LWt, - getSections: RWt, - setShowData: MWt, - getShowData: DWt -}, NWt = /* @__PURE__ */ x((t, e) => { + addSection: RWt, + getSections: MWt, + setShowData: DWt, + getShowData: NWt +}, IWt = /* @__PURE__ */ x((t, e) => { Rx(t, e), e.setShowData(t.showData), t.sections.map(e.addSection); -}, "populateDb"), IWt = { +}, "populateDb"), PWt = { parse: /* @__PURE__ */ x(async (t) => { const e = await pm("pie", t); - X.debug(e), NWt(e, xpe); + X.debug(e), IWt(e, xpe); }, "parse") -}, PWt = /* @__PURE__ */ x((t) => ` +}, $Wt = /* @__PURE__ */ x((t) => ` .pieCircle{ stroke: ${t.pieStrokeColor}; stroke-width : ${t.pieStrokeWidth}; @@ -84238,7 +84309,7 @@ var bpe = jr.pie, XI = { font-family: ${t.fontFamily}; font-size: ${t.pieLegendTextSize}; } -`, "getStyles"), $Wt = PWt, BWt = /* @__PURE__ */ x((t) => { +`, "getStyles"), BWt = $Wt, FWt = /* @__PURE__ */ x((t) => { const e = [...t.entries()].map((n) => ({ label: n[0], value: n[1] @@ -84246,7 +84317,7 @@ var bpe = jr.pie, XI = { return UOt().value( (n) => n.value )(e); -}, "createPieArcs"), FWt = /* @__PURE__ */ x((t, e, r, n) => { +}, "createPieArcs"), zWt = /* @__PURE__ */ x((t, e, r, n) => { X.debug(`rendering pie chart ` + t); const i = n.db, s = be(), a = ch(i.getConfig(), s.pie), o = 40, l = 18, u = 4, h = 450, f = h, d = H0(e), p = d.append("g"); @@ -84256,7 +84327,7 @@ var bpe = jr.pie, XI = { m != null || (m = 2); const v = a.textPosition, y = Math.min(f, h) / 2 - o, b = Kg().innerRadius(0).outerRadius(y), w = Kg().innerRadius(y * v).outerRadius(y * v); p.append("circle").attr("cx", 0).attr("cy", 0).attr("r", y + m / 2).attr("class", "pieOuterCircle"); - const O = i.getSections(), S = BWt(O), C = [ + const O = i.getSections(), S = FWt(O), C = [ g.pie1, g.pie2, g.pie3, @@ -84290,15 +84361,15 @@ var bpe = jr.pie, XI = { }) ), _ = f + o + l + u + L; d.attr("viewBox", `0 0 ${_} ${h}`), ms(d, h, _, a.useMaxWidth); -}, "draw"), zWt = { draw: FWt }, VWt = { - parser: IWt, +}, "draw"), VWt = { draw: zWt }, UWt = { + parser: PWt, db: xpe, - renderer: zWt, - styles: $Wt + renderer: VWt, + styles: BWt }; -const UWt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +const qWt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - diagram: VWt + diagram: UWt }, Symbol.toStringTag, { value: "Module" })); var R9 = function() { var t = /* @__PURE__ */ x(function(ge, xe, ke, Ce) { @@ -84769,7 +84840,7 @@ Expecting ` + Br.join(", ") + ", got '" + (this.terminals_[Ze] || Ze) + "'" : Xr return x(de, "Parser"), de.prototype = ue, ue.Parser = de, new de(); }(); R9.parser = R9; -var qWt = R9, Ks = mD(), Eb, QWt = (Eb = class { +var QWt = R9, Ks = mD(), Eb, YWt = (Eb = class { constructor() { this.classes = /* @__PURE__ */ new Map(), this.config = this.getDefaultConfig(), this.themeConfig = this.getDefaultThemeConfig(), this.data = this.getDefaultData(); } @@ -85125,12 +85196,12 @@ function Ope(t) { return !/^\d+px$/.test(t); } x(Ope, "validateSizeInPixels"); -var YWt = be(); +var WWt = be(); function ru(t) { - return ni(t.trim(), YWt); + return ni(t.trim(), WWt); } x(ru, "textSanitizer"); -var cs = new QWt(); +var cs = new YWt(); function kpe(t) { cs.setData({ quadrant1Text: ru(t.text) }); } @@ -85235,9 +85306,9 @@ function Ipe() { }), cs.setData({ titleText: xs() }), cs.build(); } x(Ipe, "getQuadrantData"); -var WWt = /* @__PURE__ */ x(function() { +var GWt = /* @__PURE__ */ x(function() { cs.clear(), Xi(); -}, "clear"), GWt = { +}, "clear"), HWt = { setWidth: Dpe, setHeight: Npe, setQuadrant1Text: kpe, @@ -85252,14 +85323,14 @@ var WWt = /* @__PURE__ */ x(function() { addPoint: Rpe, addClass: Mpe, getQuadrantData: Ipe, - clear: WWt, + clear: GWt, setAccTitle: Zi, getAccTitle: vs, setDiagramTitle: fa, getDiagramTitle: xs, getAccDescription: bs, setAccDescription: ys -}, HWt = /* @__PURE__ */ x((t, e, r, n) => { +}, XWt = /* @__PURE__ */ x((t, e, r, n) => { var A, E, L, _, R, $; function i(k) { return k === "top" ? "hanging" : "middle"; @@ -85293,17 +85364,17 @@ var WWt = /* @__PURE__ */ x(function() { "dominant-baseline", (k) => i(k.text.horizontalPos) ).attr("text-anchor", (k) => s(k.text.verticalPos)).attr("transform", (k) => a(k.text)); -}, "draw"), XWt = { - draw: HWt -}, ZWt = { - parser: qWt, - db: GWt, - renderer: XWt, +}, "draw"), ZWt = { + draw: XWt +}, jWt = { + parser: QWt, + db: HWt, + renderer: ZWt, styles: /* @__PURE__ */ x(() => "", "styles") }; -const jWt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +const KWt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - diagram: ZWt + diagram: jWt }, Symbol.toStringTag, { value: "Module" })); var D9 = function() { var t = /* @__PURE__ */ x(function(N, M, I, D) { @@ -85749,7 +85820,7 @@ Expecting ` + he.join(", ") + ", got '" + (this.terminals_[_e] || _e) + "'" : H return x(k, "Parser"), k.prototype = R, R.Parser = k, new k(); }(); D9.parser = D9; -var KWt = D9; +var JWt = D9; function N9(t) { return t.type === "bar"; } @@ -86039,7 +86110,7 @@ var Ab, Ppe = (Ab = class { } }, (() => { x(Lb, "BaseAxis"); -})(), Lb), Rb, JWt = (Rb = class extends $pe { +})(), Lb), Rb, eGt = (Rb = class extends $pe { constructor(e, r, n, i, s) { super(e, i, s, r), this.categories = n, this.scale = I8().domain(this.categories).range(this.getRange()); } @@ -86058,7 +86129,7 @@ var Ab, Ppe = (Ab = class { } }, (() => { x(Rb, "BandAxis"); -})(), Rb), Mb, eGt = (Mb = class extends $pe { +})(), Rb), Mb, tGt = (Mb = class extends $pe { constructor(e, r, n, i, s) { super(e, i, s, r), this.domain = n, this.scale = Xg().domain(this.domain).range(this.getRange()); } @@ -86077,13 +86148,13 @@ var Ab, Ppe = (Ab = class { })(), Mb); function I9(t, e, r, n) { const i = new Ppe(n); - return jI(t) ? new JWt( + return jI(t) ? new eGt( e, r, t.categories, t.title, i - ) : new eGt( + ) : new tGt( e, r, [t.min, t.max], @@ -86092,7 +86163,7 @@ function I9(t, e, r, n) { ); } x(I9, "getAxis"); -var Db, tGt = (Db = class { +var Db, rGt = (Db = class { constructor(e, r, n, i) { this.textDimensionCalculator = e, this.chartConfig = r, this.chartData = n, this.chartThemeConfig = i, this.boundingRect = { x: 0, @@ -86138,10 +86209,10 @@ var Db, tGt = (Db = class { })(), Db); function Bpe(t, e, r, n) { const i = new Ppe(n); - return new tGt(i, t, e, r); + return new rGt(i, t, e, r); } x(Bpe, "getChartTitleComponent"); -var Nb, rGt = (Nb = class { +var Nb, nGt = (Nb = class { constructor(e, r, n, i, s) { this.plotData = e, this.xAxis = r, this.yAxis = n, this.orientation = i, this.plotIndex = s; } @@ -86167,7 +86238,7 @@ var Nb, rGt = (Nb = class { } }, (() => { x(Nb, "LinePlot"); -})(), Nb), Ib, nGt = (Ib = class { +})(), Nb), Ib, iGt = (Ib = class { constructor(e, r, n, i, s, a) { this.barData = e, this.boundingRect = r, this.xAxis = n, this.yAxis = i, this.orientation = s, this.plotIndex = a; } @@ -86208,7 +86279,7 @@ var Nb, rGt = (Nb = class { } }, (() => { x(Ib, "BarPlot"); -})(), Ib), Pb, iGt = (Pb = class { +})(), Ib), Pb, sGt = (Pb = class { constructor(e, r, n) { this.chartConfig = e, this.chartData = r, this.chartThemeConfig = n, this.boundingRect = { x: 0, @@ -86237,7 +86308,7 @@ var Nb, rGt = (Nb = class { switch (n.type) { case "line": { - const i = new rGt( + const i = new nGt( n, this.xAxis, this.yAxis, @@ -86249,7 +86320,7 @@ var Nb, rGt = (Nb = class { break; case "bar": { - const i = new nGt( + const i = new iGt( n, this.boundingRect, this.xAxis, @@ -86267,10 +86338,10 @@ var Nb, rGt = (Nb = class { x(Pb, "BasePlot"); })(), Pb); function Fpe(t, e, r) { - return new iGt(t, e, r); + return new sGt(t, e, r); } x(Fpe, "getPlotComponent"); -var $b, sGt = ($b = class { +var $b, aGt = ($b = class { constructor(e, r, n, i) { this.chartConfig = e, this.chartData = r, this.componentStore = { title: Bpe(e, r, n, i), @@ -86354,9 +86425,9 @@ var $b, sGt = ($b = class { } }, (() => { x($b, "Orchestrator"); -})(), $b), Bb, aGt = (Bb = class { +})(), $b), Bb, oGt = (Bb = class { static build(e, r, n, i) { - return new sGt(e, r, n, i).getDrawableElement(); + return new aGt(e, r, n, i).getDrawableElement(); } }, (() => { x(Bb, "XYChartBuilder"); @@ -86482,7 +86553,7 @@ x(Xpe, "setBarData"); function Zpe() { if (Gr.plots.length === 0) throw Error("No Plot to render, please provide a plot with some data"); - return Gr.title = xs(), aGt.build(I2, Gr, P2, zpe); + return Gr.title = xs(), oGt.build(I2, Gr, P2, zpe); } x(Zpe, "getDrawableElem"); function jpe() { @@ -86493,11 +86564,11 @@ function Kpe() { return I2; } x(Kpe, "getChartConfig"); -var oGt = /* @__PURE__ */ x(function() { +var lGt = /* @__PURE__ */ x(function() { Xi(), N2 = 0, I2 = eP(), Gr = tP(), P2 = JI(), P9 = P2.plotColorPalette.split(",").map((t) => t.trim()), EC = !1, KI = !1; -}, "clear"), lGt = { +}, "clear"), cGt = { getDrawableElem: Zpe, - clear: oGt, + clear: lGt, setAccTitle: Zi, getAccTitle: vs, setDiagramTitle: fa, @@ -86515,7 +86586,7 @@ var oGt = /* @__PURE__ */ x(function() { setTmpSVGG: Vpe, getChartThemeConfig: jpe, getChartConfig: Kpe -}, cGt = /* @__PURE__ */ x((t, e, r, n) => { +}, uGt = /* @__PURE__ */ x((t, e, r, n) => { const i = n.db, s = i.getChartThemeConfig(), a = i.getChartConfig(); function o(v) { return v === "top" ? "text-before-edge" : "middle"; @@ -86558,16 +86629,16 @@ var oGt = /* @__PURE__ */ x(function() { break; } } -}, "draw"), uGt = { - draw: cGt -}, hGt = { - parser: KWt, - db: lGt, - renderer: uGt +}, "draw"), hGt = { + draw: uGt +}, fGt = { + parser: JWt, + db: cGt, + renderer: hGt }; -const fGt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +const dGt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - diagram: hGt + diagram: fGt }, Symbol.toStringTag, { value: "Module" })); var $9 = function() { var t = /* @__PURE__ */ x(function(ee, Y, ne, ie) { @@ -87037,23 +87108,23 @@ Expecting ` + ke.join(", ") + ", got '" + (this.terminals_[oe] || oe) + "'" : Ce return x(W, "Parser"), W.prototype = V, V.Parser = W, new W(); }(); $9.parser = $9; -var dGt = $9, sP = [], La = {}, hy = /* @__PURE__ */ new Map(), tf = {}, fy = /* @__PURE__ */ new Map(), pGt = { +var pGt = $9, sP = [], La = {}, hy = /* @__PURE__ */ new Map(), tf = {}, fy = /* @__PURE__ */ new Map(), gGt = { REQUIREMENT: "Requirement", FUNCTIONAL_REQUIREMENT: "Functional Requirement", INTERFACE_REQUIREMENT: "Interface Requirement", PERFORMANCE_REQUIREMENT: "Performance Requirement", PHYSICAL_REQUIREMENT: "Physical Requirement", DESIGN_CONSTRAINT: "Design Constraint" -}, gGt = { +}, mGt = { LOW_RISK: "Low", MED_RISK: "Medium", HIGH_RISK: "High" -}, mGt = { +}, vGt = { VERIFY_ANALYSIS: "Analysis", VERIFY_DEMONSTRATION: "Demonstration", VERIFY_INSPECTION: "Inspection", VERIFY_TEST: "Test" -}, vGt = { +}, yGt = { CONTAINS: "contains", COPIES: "copies", DERIVES: "derives", @@ -87061,61 +87132,61 @@ var dGt = $9, sP = [], La = {}, hy = /* @__PURE__ */ new Map(), tf = {}, fy = /* VERIFIES: "verifies", REFINES: "refines", TRACES: "traces" -}, yGt = /* @__PURE__ */ x((t, e) => (hy.has(t) || hy.set(t, { +}, bGt = /* @__PURE__ */ x((t, e) => (hy.has(t) || hy.set(t, { name: t, type: e, id: La.id, text: La.text, risk: La.risk, verifyMethod: La.verifyMethod -}), La = {}, hy.get(t)), "addRequirement"), bGt = /* @__PURE__ */ x(() => hy, "getRequirements"), xGt = /* @__PURE__ */ x((t) => { +}), La = {}, hy.get(t)), "addRequirement"), xGt = /* @__PURE__ */ x(() => hy, "getRequirements"), wGt = /* @__PURE__ */ x((t) => { La !== void 0 && (La.id = t); -}, "setNewReqId"), wGt = /* @__PURE__ */ x((t) => { +}, "setNewReqId"), OGt = /* @__PURE__ */ x((t) => { La !== void 0 && (La.text = t); -}, "setNewReqText"), OGt = /* @__PURE__ */ x((t) => { +}, "setNewReqText"), kGt = /* @__PURE__ */ x((t) => { La !== void 0 && (La.risk = t); -}, "setNewReqRisk"), kGt = /* @__PURE__ */ x((t) => { +}, "setNewReqRisk"), SGt = /* @__PURE__ */ x((t) => { La !== void 0 && (La.verifyMethod = t); -}, "setNewReqVerifyMethod"), SGt = /* @__PURE__ */ x((t) => (fy.has(t) || (fy.set(t, { +}, "setNewReqVerifyMethod"), TGt = /* @__PURE__ */ x((t) => (fy.has(t) || (fy.set(t, { name: t, type: tf.type, docRef: tf.docRef -}), X.info("Added new requirement: ", t)), tf = {}, fy.get(t)), "addElement"), TGt = /* @__PURE__ */ x(() => fy, "getElements"), CGt = /* @__PURE__ */ x((t) => { +}), X.info("Added new requirement: ", t)), tf = {}, fy.get(t)), "addElement"), CGt = /* @__PURE__ */ x(() => fy, "getElements"), EGt = /* @__PURE__ */ x((t) => { tf !== void 0 && (tf.type = t); -}, "setNewElementType"), EGt = /* @__PURE__ */ x((t) => { +}, "setNewElementType"), _Gt = /* @__PURE__ */ x((t) => { tf !== void 0 && (tf.docRef = t); -}, "setNewElementDocRef"), _Gt = /* @__PURE__ */ x((t, e, r) => { +}, "setNewElementDocRef"), AGt = /* @__PURE__ */ x((t, e, r) => { sP.push({ type: t, src: e, dst: r }); -}, "addRelationship"), AGt = /* @__PURE__ */ x(() => sP, "getRelationships"), LGt = /* @__PURE__ */ x(() => { +}, "addRelationship"), LGt = /* @__PURE__ */ x(() => sP, "getRelationships"), RGt = /* @__PURE__ */ x(() => { sP = [], La = {}, hy = /* @__PURE__ */ new Map(), tf = {}, fy = /* @__PURE__ */ new Map(), Xi(); -}, "clear"), RGt = { - RequirementType: pGt, - RiskLevel: gGt, - VerifyType: mGt, - Relationships: vGt, +}, "clear"), MGt = { + RequirementType: gGt, + RiskLevel: mGt, + VerifyType: vGt, + Relationships: yGt, getConfig: /* @__PURE__ */ x(() => be().req, "getConfig"), - addRequirement: yGt, - getRequirements: bGt, - setNewReqId: xGt, - setNewReqText: wGt, - setNewReqRisk: OGt, - setNewReqVerifyMethod: kGt, + addRequirement: bGt, + getRequirements: xGt, + setNewReqId: wGt, + setNewReqText: OGt, + setNewReqRisk: kGt, + setNewReqVerifyMethod: SGt, setAccTitle: Zi, getAccTitle: vs, setAccDescription: ys, getAccDescription: bs, - addElement: SGt, - getElements: TGt, - setNewElementType: CGt, - setNewElementDocRef: EGt, - addRelationship: _Gt, - getRelationships: AGt, - clear: LGt -}, MGt = /* @__PURE__ */ x((t) => ` + addElement: TGt, + getElements: CGt, + setNewElementType: EGt, + setNewElementDocRef: _Gt, + addRelationship: AGt, + getRelationships: LGt, + clear: RGt +}, DGt = /* @__PURE__ */ x((t) => ` marker { fill: ${t.relationColor}; @@ -87158,10 +87229,10 @@ var dGt = $9, sP = [], La = {}, hy = /* @__PURE__ */ new Map(), tf = {}, fy = /* fill: ${t.relationLabelColor}; } -`, "getStyles"), DGt = MGt, B9 = { +`, "getStyles"), NGt = DGt, B9 = { CONTAINS: "contains", ARROW: "arrow" -}, NGt = /* @__PURE__ */ x((t, e) => { +}, IGt = /* @__PURE__ */ x((t, e) => { let r = t.append("defs").append("marker").attr("id", B9.CONTAINS + "_line_ending").attr("refX", 0).attr("refY", e.line_height / 2).attr("markerWidth", e.line_height).attr("markerHeight", e.line_height).attr("orient", "auto").append("g"); r.append("circle").attr("cx", e.line_height / 2).attr("cy", e.line_height / 2).attr("r", e.line_height / 2).attr("fill", "none"), r.append("line").attr("x1", 0).attr("x2", e.line_height).attr("y1", e.line_height / 2).attr("y2", e.line_height / 2).attr("stroke-width", 1), r.append("line").attr("y1", 0).attr("y2", e.line_height).attr("x1", e.line_height / 2).attr("x2", e.line_height / 2).attr("stroke-width", 1), t.append("defs").append("marker").attr("id", B9.ARROW + "_line_ending").attr("refX", e.line_height).attr("refY", 0.5 * e.line_height).attr("markerWidth", e.line_height).attr("markerHeight", e.line_height).attr("orient", "auto").append("path").attr( "d", @@ -87172,7 +87243,7 @@ var dGt = $9, sP = [], La = {}, hy = /* @__PURE__ */ new Map(), tf = {}, fy = /* ).attr("stroke-width", 1); }, "insertLineEndings"), Jpe = { ReqMarkers: B9, - insertLineEndings: NGt + insertLineEndings: IGt }, Vn = {}, KG = 0, ege = /* @__PURE__ */ x((t, e) => t.insert("rect", "#" + e).attr("class", "req reqBox").attr("x", 0).attr("y", 0).attr("width", Vn.rect_min_width + "px").attr("height", Vn.rect_min_height + "px"), "newRectNode"), tge = /* @__PURE__ */ x((t, e, r) => { let n = Vn.rect_min_width / 2, i = t.append("text").attr("class", "req reqLabel reqTitle").attr("id", e).attr("x", n).attr("y", Vn.rect_padding).attr("dominant-baseline", "hanging"), s = 0; r.forEach((u) => { @@ -87202,12 +87273,12 @@ var dGt = $9, sP = [], La = {}, hy = /* @__PURE__ */ new Map(), tf = {}, fy = /* }), o.forEach((l) => { i.append("tspan").attr("x", Vn.rect_padding).attr("dy", Vn.line_height).text(l); }), i; -}, "newBodyNode"), IGt = /* @__PURE__ */ x((t, e, r, n) => { +}, "newBodyNode"), PGt = /* @__PURE__ */ x((t, e, r, n) => { const i = e.node().getTotalLength(), s = e.node().getPointAtLength(i * 0.5), a = "rel" + KG; KG++; const l = t.append("text").attr("class", "req relationshipLabel").attr("id", a).attr("x", s.x).attr("y", s.y).attr("text-anchor", "middle").attr("dominant-baseline", "middle").text(n).node().getBBox(); t.insert("rect", "#" + a).attr("class", "req reqLabelBox").attr("x", s.x - l.width / 2).attr("y", s.y - l.height / 2).attr("width", l.width).attr("height", l.height).attr("fill", "white").attr("fill-opacity", "85%"); -}, "addEdgeLabel"), PGt = /* @__PURE__ */ x(function(t, e, r, n, i) { +}, "addEdgeLabel"), $Gt = /* @__PURE__ */ x(function(t, e, r, n, i) { const s = r.edge(w1(e.src), w1(e.dst)), a = vf().x(function(l) { return l.x; }).y(function(l) { @@ -87219,8 +87290,8 @@ var dGt = $9, sP = [], La = {}, hy = /* @__PURE__ */ new Map(), tf = {}, fy = /* ) : (o.attr("stroke-dasharray", "10,7"), o.attr( "marker-end", "url(" + at.getUrl(Vn.arrowMarkerAbsolute) + "#" + Jpe.ReqMarkers.ARROW + "_line_ending)" - )), IGt(t, o, Vn, `<<${e.type}>>`); -}, "drawRelationshipFromLayout"), $Gt = /* @__PURE__ */ x((t, e, r) => { + )), PGt(t, o, Vn, `<<${e.type}>>`); +}, "drawRelationshipFromLayout"), BGt = /* @__PURE__ */ x((t, e, r) => { t.forEach((n, i) => { i = w1(i), X.info("Added new requirement: ", i); const s = r.append("g").attr("id", i), a = "req-" + i, o = ege(s, a); @@ -87249,7 +87320,7 @@ var dGt = $9, sP = [], La = {}, hy = /* @__PURE__ */ new Map(), tf = {}, fy = /* id: i }); }); -}, "drawReqs"), BGt = /* @__PURE__ */ x((t, e, r) => { +}, "drawReqs"), FGt = /* @__PURE__ */ x((t, e, r) => { t.forEach((n, i) => { const s = w1(i), a = r.append("g").attr("id", s), o = "element-" + s, l = ege(a, o); let u = [], h = tge(a, o + "_title", ["<>", `${i}`]); @@ -87269,17 +87340,17 @@ var dGt = $9, sP = [], La = {}, hy = /* @__PURE__ */ new Map(), tf = {}, fy = /* id: s }); }); -}, "drawElements"), FGt = /* @__PURE__ */ x((t, e) => (t.forEach(function(r) { +}, "drawElements"), zGt = /* @__PURE__ */ x((t, e) => (t.forEach(function(r) { let n = w1(r.src), i = w1(r.dst); e.setEdge(n, i, { relationship: r }); -}), t), "addRelationships"), zGt = /* @__PURE__ */ x(function(t, e) { +}), t), "addRelationships"), VGt = /* @__PURE__ */ x(function(t, e) { e.nodes().forEach(function(r) { r !== void 0 && e.node(r) !== void 0 && (t.select("#" + r), t.select("#" + r).attr( "transform", "translate(" + (e.node(r).x - e.node(r).width / 2) + "," + (e.node(r).y - e.node(r).height / 2) + " )" )); }); -}, "adjustEntities"), w1 = /* @__PURE__ */ x((t) => t.replace(/\s/g, "").replace(/\./g, "_"), "elementString"), VGt = /* @__PURE__ */ x((t, e, r, n) => { +}, "adjustEntities"), w1 = /* @__PURE__ */ x((t) => t.replace(/\s/g, "").replace(/\./g, "_"), "elementString"), UGt = /* @__PURE__ */ x((t, e, r, n) => { Vn = be().requirement; const i = Vn.securityLevel; let s; @@ -87301,22 +87372,22 @@ var dGt = $9, sP = [], La = {}, hy = /* @__PURE__ */ new Map(), tf = {}, fy = /* return {}; }); let u = n.db.getRequirements(), h = n.db.getElements(), f = n.db.getRelationships(); - $Gt(u, l, o), BGt(h, l, o), FGt(f, l), sm(l), zGt(o, l), f.forEach(function(v) { - PGt(o, v, l, e, n); + BGt(u, l, o), FGt(h, l, o), zGt(f, l), sm(l), VGt(o, l), f.forEach(function(v) { + $Gt(o, v, l, e, n); }); const d = Vn.rect_padding, p = o.node().getBBox(), g = p.width + d * 2, m = p.height + d * 2; ms(o, m, g, Vn.useMaxWidth), o.attr("viewBox", `${p.x - d} ${p.y - d} ${g} ${m}`); -}, "draw"), UGt = { - draw: VGt -}, qGt = { - parser: dGt, - db: RGt, - renderer: UGt, - styles: DGt -}; -const QGt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +}, "draw"), qGt = { + draw: UGt +}, QGt = { + parser: pGt, + db: MGt, + renderer: qGt, + styles: NGt +}; +const YGt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - diagram: qGt + diagram: QGt }, Symbol.toStringTag, { value: "Module" })); var F9 = function() { var t = /* @__PURE__ */ x(function(U, Z, G, j) { @@ -87908,7 +87979,7 @@ Expecting ` + Te.join(", ") + ", got '" + (this.terminals_[fe] || fe) + "'" : Xe return x(ie, "Parser"), ie.prototype = Y, Y.Parser = ie, new ie(); }(); F9.parser = F9; -var YGt = F9, It = new fI(() => ({ +var WGt = F9, It = new fI(() => ({ prevActor: void 0, actors: /* @__PURE__ */ new Map(), createdActors: /* @__PURE__ */ new Map(), @@ -87921,7 +87992,7 @@ var YGt = F9, It = new fI(() => ({ currentBox: void 0, lastCreated: void 0, lastDestroyed: void 0 -})), WGt = /* @__PURE__ */ x(function(t) { +})), GGt = /* @__PURE__ */ x(function(t) { var e; It.records.boxes.push({ name: t.text, @@ -87957,14 +88028,14 @@ var YGt = F9, It = new fI(() => ({ o && (o.nextActor = t); } It.records.currentBox && It.records.currentBox.actorKeys.push(t), It.records.prevActor = t; -}, "addActor"), GGt = /* @__PURE__ */ x((t) => { +}, "addActor"), HGt = /* @__PURE__ */ x((t) => { let e, r = 0; if (!t) return 0; for (e = 0; e < It.records.messages.length; e++) It.records.messages[e].type === $2.ACTIVE_START && It.records.messages[e].from === t && r++, It.records.messages[e].type === $2.ACTIVE_END && It.records.messages[e].from === t && r--; return r; -}, "activationCount"), HGt = /* @__PURE__ */ x(function(t, e, r, n) { +}, "activationCount"), XGt = /* @__PURE__ */ x(function(t, e, r, n) { var i; It.records.messages.push({ from: t, @@ -87975,7 +88046,7 @@ var YGt = F9, It = new fI(() => ({ }); }, "addMessage"), Gn = /* @__PURE__ */ x(function(t, e, r, n, i = !1) { var s, a; - if (n === $2.ACTIVE_END && GGt(t != null ? t : "") < 1) { + if (n === $2.ACTIVE_END && HGt(t != null ? t : "") < 1) { const l = new Error("Trying to inactivate an inactive participant (" + t + ")"); throw l.hash = { text: "->>-", @@ -87993,29 +88064,29 @@ var YGt = F9, It = new fI(() => ({ type: n, activate: i }), !0; -}, "addSignal"), XGt = /* @__PURE__ */ x(function() { +}, "addSignal"), ZGt = /* @__PURE__ */ x(function() { return It.records.boxes.length > 0; -}, "hasAtLeastOneBox"), ZGt = /* @__PURE__ */ x(function() { +}, "hasAtLeastOneBox"), jGt = /* @__PURE__ */ x(function() { return It.records.boxes.some((t) => t.name); -}, "hasAtLeastOneBoxWithTitle"), jGt = /* @__PURE__ */ x(function() { +}, "hasAtLeastOneBoxWithTitle"), KGt = /* @__PURE__ */ x(function() { return It.records.messages; -}, "getMessages"), KGt = /* @__PURE__ */ x(function() { +}, "getMessages"), JGt = /* @__PURE__ */ x(function() { return It.records.boxes; -}, "getBoxes"), JGt = /* @__PURE__ */ x(function() { +}, "getBoxes"), eHt = /* @__PURE__ */ x(function() { return It.records.actors; -}, "getActors"), eHt = /* @__PURE__ */ x(function() { +}, "getActors"), tHt = /* @__PURE__ */ x(function() { return It.records.createdActors; -}, "getCreatedActors"), tHt = /* @__PURE__ */ x(function() { +}, "getCreatedActors"), rHt = /* @__PURE__ */ x(function() { return It.records.destroyedActors; }, "getDestroyedActors"), qx = /* @__PURE__ */ x(function(t) { return It.records.actors.get(t); -}, "getActor"), rHt = /* @__PURE__ */ x(function() { +}, "getActor"), nHt = /* @__PURE__ */ x(function() { return [...It.records.actors.keys()]; -}, "getActorKeys"), nHt = /* @__PURE__ */ x(function() { +}, "getActorKeys"), iHt = /* @__PURE__ */ x(function() { It.records.sequenceNumbersEnabled = !0; -}, "enableSequenceNumbers"), iHt = /* @__PURE__ */ x(function() { +}, "enableSequenceNumbers"), sHt = /* @__PURE__ */ x(function() { It.records.sequenceNumbersEnabled = !1; -}, "disableSequenceNumbers"), sHt = /* @__PURE__ */ x(() => It.records.sequenceNumbersEnabled, "showSequenceNumbers"), aHt = /* @__PURE__ */ x(function(t) { +}, "disableSequenceNumbers"), aHt = /* @__PURE__ */ x(() => It.records.sequenceNumbersEnabled, "showSequenceNumbers"), oHt = /* @__PURE__ */ x(function(t) { It.records.wrapEnabled = t; }, "setWrap"), nge = /* @__PURE__ */ x((t) => { if (t === void 0) @@ -88026,15 +88097,15 @@ var YGt = F9, It = new fI(() => ({ }, "extractWrap"), w0 = /* @__PURE__ */ x(() => { var t, e; return It.records.wrapEnabled !== void 0 ? It.records.wrapEnabled : (e = (t = be().sequence) == null ? void 0 : t.wrap) != null ? e : !1; -}, "autoWrap"), oHt = /* @__PURE__ */ x(function() { +}, "autoWrap"), lHt = /* @__PURE__ */ x(function() { It.reset(), Xi(); -}, "clear"), lHt = /* @__PURE__ */ x(function(t) { +}, "clear"), cHt = /* @__PURE__ */ x(function(t) { const e = t.trim(), { wrap: r, cleanedText: n } = nge(e), i = { text: n, wrap: r }; return X.debug(`parseMessage: ${JSON.stringify(i)}`), i; -}, "parseMessage"), cHt = /* @__PURE__ */ x(function(t) { +}, "parseMessage"), uHt = /* @__PURE__ */ x(function(t) { const e = /^((?:rgba?|hsla?)\s*\(.*\)|\w*)(.*)$/.exec(t); let r = e != null && e[1] ? e[1].trim() : "transparent", n = e != null && e[2] ? e[2].trim() : void 0; if (window != null && window.CSS) @@ -88082,10 +88153,10 @@ var YGt = F9, It = new fI(() => ({ PAR_OVER_START: 32, BIDIRECTIONAL_SOLID: 33, BIDIRECTIONAL_DOTTED: 34 -}, uHt = { +}, hHt = { FILLED: 0, OPEN: 1 -}, hHt = { +}, fHt = { LEFTOF: 0, RIGHTOF: 1, OVER: 2 @@ -88115,7 +88186,7 @@ var YGt = F9, It = new fI(() => ({ } catch (n) { X.error("error while parsing actor link text", n); } -}, "addLinks"), fHt = /* @__PURE__ */ x(function(t, e) { +}, "addLinks"), dHt = /* @__PURE__ */ x(function(t, e) { const r = qx(t); try { const n = {}; @@ -88165,7 +88236,7 @@ var lge = /* @__PURE__ */ x(function(t, e) { } catch (i) { X.error("error while parsing actor details text", i); } -}, "addDetails"), dHt = /* @__PURE__ */ x(function(t, e) { +}, "addDetails"), pHt = /* @__PURE__ */ x(function(t, e) { if ((t == null ? void 0 : t.properties) !== void 0) return t.properties[e]; }, "getActorProperty"), cge = /* @__PURE__ */ x(function(t) { @@ -88214,7 +88285,7 @@ var lge = /* @__PURE__ */ x(function(t, e) { sge(t.actor, t.text); break; case "addALink": - fHt(t.actor, t.text); + dHt(t.actor, t.text); break; case "addProperties": age(t.actor, t.text); @@ -88239,7 +88310,7 @@ var lge = /* @__PURE__ */ x(function(t, e) { Gn(t.from, t.to, t.msg, t.signalType, t.activate); break; case "boxStart": - WGt(t.boxData); + GGt(t.boxData); break; case "boxEnd": oge(); @@ -88301,42 +88372,42 @@ var lge = /* @__PURE__ */ x(function(t, e) { } }, "apply"), JG = { addActor: z9, - addMessage: HGt, + addMessage: XGt, addSignal: Gn, addLinks: sge, addDetails: lge, addProperties: age, autoWrap: w0, - setWrap: aHt, - enableSequenceNumbers: nHt, - disableSequenceNumbers: iHt, - showSequenceNumbers: sHt, - getMessages: jGt, - getActors: JGt, - getCreatedActors: eHt, - getDestroyedActors: tHt, + setWrap: oHt, + enableSequenceNumbers: iHt, + disableSequenceNumbers: sHt, + showSequenceNumbers: aHt, + getMessages: KGt, + getActors: eHt, + getCreatedActors: tHt, + getDestroyedActors: rHt, getActor: qx, - getActorKeys: rHt, - getActorProperty: dHt, + getActorKeys: nHt, + getActorProperty: pHt, getAccTitle: vs, - getBoxes: KGt, + getBoxes: JGt, getDiagramTitle: xs, setDiagramTitle: fa, getConfig: /* @__PURE__ */ x(() => be().sequence, "getConfig"), - clear: oHt, - parseMessage: lHt, - parseBoxData: cHt, + clear: lHt, + parseMessage: cHt, + parseBoxData: uHt, LINETYPE: $2, - ARROWTYPE: uHt, - PLACEMENT: hHt, + ARROWTYPE: hHt, + PLACEMENT: fHt, addNote: ige, setAccTitle: Zi, apply: cge, setAccDescription: ys, getAccDescription: bs, - hasAtLeastOneBox: XGt, - hasAtLeastOneBoxWithTitle: ZGt -}, pHt = /* @__PURE__ */ x((t) => `.actor { + hasAtLeastOneBox: ZGt, + hasAtLeastOneBoxWithTitle: jGt +}, gHt = /* @__PURE__ */ x((t) => `.actor { stroke: ${t.actorBorder}; fill: ${t.actorBkg}; } @@ -88452,9 +88523,9 @@ var lge = /* @__PURE__ */ x(function(t, e) { fill: ${t.actorBkg}; stroke-width: 2px; } -`, "getStyles"), gHt = pHt, $d = 18 * 2, uge = "actor-top", hge = "actor-bottom", mHt = "actor-box", eH = "actor-man", oP = /* @__PURE__ */ x(function(t, e) { +`, "getStyles"), mHt = gHt, $d = 18 * 2, uge = "actor-top", hge = "actor-bottom", vHt = "actor-box", eH = "actor-man", oP = /* @__PURE__ */ x(function(t, e) { return iC(t, e); -}, "drawRect"), vHt = /* @__PURE__ */ x(function(t, e, r, n, i) { +}, "drawRect"), yHt = /* @__PURE__ */ x(function(t, e, r, n, i) { if (e.links === void 0 || e.links === null || Object.keys(e.links).length === 0) return { height: 0, width: 0 }; const s = e.links, a = e.actorCnt, o = e.rectData; @@ -88470,7 +88541,7 @@ var lge = /* @__PURE__ */ x(function(t, e) { var p = 20; for (let v in s) { var g = u.append("a"), m = zf(s[v]); - g.attr("xlink:href", m), g.attr("target", "_blank"), NHt(n)( + g.attr("xlink:href", m), g.attr("target", "_blank"), IHt(n)( v, g, o.x + 10, @@ -88483,7 +88554,7 @@ var lge = /* @__PURE__ */ x(function(t, e) { } } return d.attr("height", p), { height: o.height + p, width: f }; -}, "drawPopup"), yHt = /* @__PURE__ */ x(function(t) { +}, "drawPopup"), bHt = /* @__PURE__ */ x(function(t) { return "var pu = document.getElementById('" + t + "'); if (pu != null) { pu.style.display = pu.style.display == 'block' ? 'none' : 'block'; }"; }, "popupMenuToggle"), Gk = /* @__PURE__ */ x(async function(t, e, r = null) { let n = t.append("foreignObject"); @@ -88563,18 +88634,18 @@ var lge = /* @__PURE__ */ x(function(t, e) { const s = e.get(i), a = t.select("#actor" + s.actorCnt); !n.mirrorActors && s.stopy ? a.attr("y2", s.stopy + s.height / 2) : n.mirrorActors && a.attr("y2", s.stopy); }); -}, "fixLifeLineHeights"), bHt = /* @__PURE__ */ x(function(t, e, r, n) { +}, "fixLifeLineHeights"), xHt = /* @__PURE__ */ x(function(t, e, r, n) { var p, g; const i = n ? e.stopy : e.starty, s = e.x + e.width / 2, a = i + 5, o = t.append("g").lower(); var l = o; - n || (pc++, Object.keys(e.links || {}).length && !r.forceMenus && l.attr("onclick", yHt(`actor${pc}_popup`)).attr("cursor", "pointer"), l.append("line").attr("id", "actor" + pc).attr("x1", s).attr("y1", a).attr("x2", s).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", e.name), l = o.append("g"), e.actorCnt = pc, e.links != null && l.attr("id", "root-" + pc)); + n || (pc++, Object.keys(e.links || {}).length && !r.forceMenus && l.attr("onclick", bHt(`actor${pc}_popup`)).attr("cursor", "pointer"), l.append("line").attr("id", "actor" + pc).attr("x1", s).attr("y1", a).attr("x2", s).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", e.name), l = o.append("g"), e.actorCnt = pc, e.links != null && l.attr("id", "root-" + pc)); const u = K0(); var h = "actor"; (p = e.properties) != null && p.class ? h = e.properties.class : u.fill = "#eaeaea", n ? h += ` ${hge}` : h += ` ${uge}`, u.x = e.x, u.y = i, u.width = e.width, u.height = e.height, u.class = h, u.rx = 3, u.ry = 3, u.name = e.name; const f = oP(l, u); if (e.rectData = u, (g = e.properties) != null && g.icon) { const m = e.properties.icon.trim(); - m.charAt(0) === "@" ? aIt(l, u.x + u.width - 20, u.y + 10, m.substr(1)) : sIt(l, u.x + u.width - 20, u.y + 10, m); + m.charAt(0) === "@" ? oIt(l, u.x + u.width - 20, u.y + 10, m.substr(1)) : aIt(l, u.x + u.width - 20, u.y + 10, m); } lP(r, ca(e.description))( e.description, @@ -88583,7 +88654,7 @@ var lge = /* @__PURE__ */ x(function(t, e) { u.y, u.width, u.height, - { class: `actor ${mHt}` }, + { class: `actor ${vHt}` }, r ); let d = e.height; @@ -88592,7 +88663,7 @@ var lge = /* @__PURE__ */ x(function(t, e) { e.height = m.height, d = m.height; } return d; -}, "drawActorTypeParticipant"), xHt = /* @__PURE__ */ x(function(t, e, r, n) { +}, "drawActorTypeParticipant"), wHt = /* @__PURE__ */ x(function(t, e, r, n) { const i = n ? e.stopy : e.starty, s = e.x + e.width / 2, a = i + 80, o = t.append("g").lower(); n || (pc++, o.append("line").attr("id", "actor" + pc).attr("x1", s).attr("y1", a).attr("x2", s).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", e.name), e.actorCnt = pc); const l = t.append("g"); @@ -88613,14 +88684,14 @@ var lge = /* @__PURE__ */ x(function(t, e) { { class: `actor ${eH}` }, r ), e.height; -}, "drawActorTypeActor"), wHt = /* @__PURE__ */ x(async function(t, e, r, n) { +}, "drawActorTypeActor"), OHt = /* @__PURE__ */ x(async function(t, e, r, n) { switch (e.type) { case "actor": - return await xHt(t, e, r, n); + return await wHt(t, e, r, n); case "participant": - return await bHt(t, e, r, n); + return await xHt(t, e, r, n); } -}, "drawActor"), OHt = /* @__PURE__ */ x(function(t, e, r) { +}, "drawActor"), kHt = /* @__PURE__ */ x(function(t, e, r) { const i = t.append("g"); pge(i, e), e.name && lP(r)( e.name, @@ -88632,12 +88703,12 @@ var lge = /* @__PURE__ */ x(function(t, e) { { class: "text" }, r ), i.lower(); -}, "drawBox"), kHt = /* @__PURE__ */ x(function(t) { +}, "drawBox"), SHt = /* @__PURE__ */ x(function(t) { return t.append("g"); -}, "anchorElement"), SHt = /* @__PURE__ */ x(function(t, e, r, n, i) { +}, "anchorElement"), THt = /* @__PURE__ */ x(function(t, e, r, n, i) { const s = K0(), a = e.anchored; s.x = e.startx, s.y = e.starty, s.class = "activation" + i % 3, s.width = e.stopx - e.startx, s.height = r - e.starty, oP(a, s); -}, "drawActivation"), THt = /* @__PURE__ */ x(async function(t, e, r, n) { +}, "drawActivation"), CHt = /* @__PURE__ */ x(async function(t, e, r, n) { const { boxMargin: i, boxTextMargin: s, @@ -88671,28 +88742,28 @@ var lge = /* @__PURE__ */ x(function(t, e) { return e.height = Math.round(e.stopy - e.starty), f; }, "drawLoop"), pge = /* @__PURE__ */ x(function(t, e) { tfe(t, e); -}, "drawBackgroundRect"), CHt = /* @__PURE__ */ x(function(t) { +}, "drawBackgroundRect"), EHt = /* @__PURE__ */ x(function(t) { t.append("defs").append("symbol").attr("id", "database").attr("fill-rule", "evenodd").attr("clip-rule", "evenodd").append("path").attr("transform", "scale(.5)").attr( "d", "M12.258.001l.256.004.255.005.253.008.251.01.249.012.247.015.246.016.242.019.241.02.239.023.236.024.233.027.231.028.229.031.225.032.223.034.22.036.217.038.214.04.211.041.208.043.205.045.201.046.198.048.194.05.191.051.187.053.183.054.18.056.175.057.172.059.168.06.163.061.16.063.155.064.15.066.074.033.073.033.071.034.07.034.069.035.068.035.067.035.066.035.064.036.064.036.062.036.06.036.06.037.058.037.058.037.055.038.055.038.053.038.052.038.051.039.05.039.048.039.047.039.045.04.044.04.043.04.041.04.04.041.039.041.037.041.036.041.034.041.033.042.032.042.03.042.029.042.027.042.026.043.024.043.023.043.021.043.02.043.018.044.017.043.015.044.013.044.012.044.011.045.009.044.007.045.006.045.004.045.002.045.001.045v17l-.001.045-.002.045-.004.045-.006.045-.007.045-.009.044-.011.045-.012.044-.013.044-.015.044-.017.043-.018.044-.02.043-.021.043-.023.043-.024.043-.026.043-.027.042-.029.042-.03.042-.032.042-.033.042-.034.041-.036.041-.037.041-.039.041-.04.041-.041.04-.043.04-.044.04-.045.04-.047.039-.048.039-.05.039-.051.039-.052.038-.053.038-.055.038-.055.038-.058.037-.058.037-.06.037-.06.036-.062.036-.064.036-.064.036-.066.035-.067.035-.068.035-.069.035-.07.034-.071.034-.073.033-.074.033-.15.066-.155.064-.16.063-.163.061-.168.06-.172.059-.175.057-.18.056-.183.054-.187.053-.191.051-.194.05-.198.048-.201.046-.205.045-.208.043-.211.041-.214.04-.217.038-.22.036-.223.034-.225.032-.229.031-.231.028-.233.027-.236.024-.239.023-.241.02-.242.019-.246.016-.247.015-.249.012-.251.01-.253.008-.255.005-.256.004-.258.001-.258-.001-.256-.004-.255-.005-.253-.008-.251-.01-.249-.012-.247-.015-.245-.016-.243-.019-.241-.02-.238-.023-.236-.024-.234-.027-.231-.028-.228-.031-.226-.032-.223-.034-.22-.036-.217-.038-.214-.04-.211-.041-.208-.043-.204-.045-.201-.046-.198-.048-.195-.05-.19-.051-.187-.053-.184-.054-.179-.056-.176-.057-.172-.059-.167-.06-.164-.061-.159-.063-.155-.064-.151-.066-.074-.033-.072-.033-.072-.034-.07-.034-.069-.035-.068-.035-.067-.035-.066-.035-.064-.036-.063-.036-.062-.036-.061-.036-.06-.037-.058-.037-.057-.037-.056-.038-.055-.038-.053-.038-.052-.038-.051-.039-.049-.039-.049-.039-.046-.039-.046-.04-.044-.04-.043-.04-.041-.04-.04-.041-.039-.041-.037-.041-.036-.041-.034-.041-.033-.042-.032-.042-.03-.042-.029-.042-.027-.042-.026-.043-.024-.043-.023-.043-.021-.043-.02-.043-.018-.044-.017-.043-.015-.044-.013-.044-.012-.044-.011-.045-.009-.044-.007-.045-.006-.045-.004-.045-.002-.045-.001-.045v-17l.001-.045.002-.045.004-.045.006-.045.007-.045.009-.044.011-.045.012-.044.013-.044.015-.044.017-.043.018-.044.02-.043.021-.043.023-.043.024-.043.026-.043.027-.042.029-.042.03-.042.032-.042.033-.042.034-.041.036-.041.037-.041.039-.041.04-.041.041-.04.043-.04.044-.04.046-.04.046-.039.049-.039.049-.039.051-.039.052-.038.053-.038.055-.038.056-.038.057-.037.058-.037.06-.037.061-.036.062-.036.063-.036.064-.036.066-.035.067-.035.068-.035.069-.035.07-.034.072-.034.072-.033.074-.033.151-.066.155-.064.159-.063.164-.061.167-.06.172-.059.176-.057.179-.056.184-.054.187-.053.19-.051.195-.05.198-.048.201-.046.204-.045.208-.043.211-.041.214-.04.217-.038.22-.036.223-.034.226-.032.228-.031.231-.028.234-.027.236-.024.238-.023.241-.02.243-.019.245-.016.247-.015.249-.012.251-.01.253-.008.255-.005.256-.004.258-.001.258.001zm-9.258 20.499v.01l.001.021.003.021.004.022.005.021.006.022.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.023.018.024.019.024.021.024.022.025.023.024.024.025.052.049.056.05.061.051.066.051.07.051.075.051.079.052.084.052.088.052.092.052.097.052.102.051.105.052.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.048.144.049.147.047.152.047.155.047.16.045.163.045.167.043.171.043.176.041.178.041.183.039.187.039.19.037.194.035.197.035.202.033.204.031.209.03.212.029.216.027.219.025.222.024.226.021.23.02.233.018.236.016.24.015.243.012.246.01.249.008.253.005.256.004.259.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.021.224-.024.22-.026.216-.027.212-.028.21-.031.205-.031.202-.034.198-.034.194-.036.191-.037.187-.039.183-.04.179-.04.175-.042.172-.043.168-.044.163-.045.16-.046.155-.046.152-.047.148-.048.143-.049.139-.049.136-.05.131-.05.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.053.083-.051.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.05.023-.024.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.023.01-.022.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.127l-.077.055-.08.053-.083.054-.085.053-.087.052-.09.052-.093.051-.095.05-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.045-.118.044-.12.043-.122.042-.124.042-.126.041-.128.04-.13.04-.132.038-.134.038-.135.037-.138.037-.139.035-.142.035-.143.034-.144.033-.147.032-.148.031-.15.03-.151.03-.153.029-.154.027-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.01-.179.008-.179.008-.181.006-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.006-.179-.008-.179-.008-.178-.01-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.027-.153-.029-.151-.03-.15-.03-.148-.031-.146-.032-.145-.033-.143-.034-.141-.035-.14-.035-.137-.037-.136-.037-.134-.038-.132-.038-.13-.04-.128-.04-.126-.041-.124-.042-.122-.042-.12-.044-.117-.043-.116-.045-.113-.045-.112-.046-.109-.047-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.05-.093-.052-.09-.051-.087-.052-.085-.053-.083-.054-.08-.054-.077-.054v4.127zm0-5.654v.011l.001.021.003.021.004.021.005.022.006.022.007.022.009.022.01.022.011.023.012.023.013.023.015.024.016.023.017.024.018.024.019.024.021.024.022.024.023.025.024.024.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.052.11.051.114.051.119.052.123.05.127.051.131.05.135.049.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.044.171.042.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.022.23.02.233.018.236.016.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.012.241-.015.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.048.139-.05.136-.049.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.051.051-.049.023-.025.023-.024.021-.025.02-.024.019-.024.018-.024.017-.024.015-.023.014-.023.013-.024.012-.022.01-.023.01-.023.008-.022.006-.022.006-.022.004-.021.004-.022.001-.021.001-.021v-4.139l-.077.054-.08.054-.083.054-.085.052-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.044-.118.044-.12.044-.122.042-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.035-.143.033-.144.033-.147.033-.148.031-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.009-.179.009-.179.007-.181.007-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.007-.179-.007-.179-.009-.178-.009-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.031-.146-.033-.145-.033-.143-.033-.141-.035-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.04-.126-.041-.124-.042-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.051-.093-.051-.09-.051-.087-.053-.085-.052-.083-.054-.08-.054-.077-.054v4.139zm0-5.666v.011l.001.02.003.022.004.021.005.022.006.021.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.024.018.023.019.024.021.025.022.024.023.024.024.025.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.051.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.043.171.043.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.021.23.02.233.018.236.017.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.013.241-.014.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.049.139-.049.136-.049.131-.051.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.049.023-.025.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.022.01-.023.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.153l-.077.054-.08.054-.083.053-.085.053-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.048-.105.048-.106.048-.109.046-.111.046-.114.046-.115.044-.118.044-.12.043-.122.043-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.034-.143.034-.144.033-.147.032-.148.032-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.024-.161.024-.162.023-.163.023-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.01-.178.01-.179.009-.179.007-.181.006-.182.006-.182.004-.184.003-.184.001-.185.001-.185-.001-.184-.001-.184-.003-.182-.004-.182-.006-.181-.006-.179-.007-.179-.009-.178-.01-.176-.01-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.023-.162-.023-.161-.024-.159-.024-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.032-.146-.032-.145-.033-.143-.034-.141-.034-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.041-.126-.041-.124-.041-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.048-.105-.048-.102-.048-.1-.05-.097-.049-.095-.051-.093-.051-.09-.052-.087-.052-.085-.053-.083-.053-.08-.054-.077-.054v4.153zm8.74-8.179l-.257.004-.254.005-.25.008-.247.011-.244.012-.241.014-.237.016-.233.018-.231.021-.226.022-.224.023-.22.026-.216.027-.212.028-.21.031-.205.032-.202.033-.198.034-.194.036-.191.038-.187.038-.183.04-.179.041-.175.042-.172.043-.168.043-.163.045-.16.046-.155.046-.152.048-.148.048-.143.048-.139.049-.136.05-.131.05-.126.051-.123.051-.118.051-.114.052-.11.052-.106.052-.101.052-.096.052-.092.052-.088.052-.083.052-.079.052-.074.051-.07.052-.065.051-.06.05-.056.05-.051.05-.023.025-.023.024-.021.024-.02.025-.019.024-.018.024-.017.023-.015.024-.014.023-.013.023-.012.023-.01.023-.01.022-.008.022-.006.023-.006.021-.004.022-.004.021-.001.021-.001.021.001.021.001.021.004.021.004.022.006.021.006.023.008.022.01.022.01.023.012.023.013.023.014.023.015.024.017.023.018.024.019.024.02.025.021.024.023.024.023.025.051.05.056.05.06.05.065.051.07.052.074.051.079.052.083.052.088.052.092.052.096.052.101.052.106.052.11.052.114.052.118.051.123.051.126.051.131.05.136.05.139.049.143.048.148.048.152.048.155.046.16.046.163.045.168.043.172.043.175.042.179.041.183.04.187.038.191.038.194.036.198.034.202.033.205.032.21.031.212.028.216.027.22.026.224.023.226.022.231.021.233.018.237.016.241.014.244.012.247.011.25.008.254.005.257.004.26.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.022.224-.023.22-.026.216-.027.212-.028.21-.031.205-.032.202-.033.198-.034.194-.036.191-.038.187-.038.183-.04.179-.041.175-.042.172-.043.168-.043.163-.045.16-.046.155-.046.152-.048.148-.048.143-.048.139-.049.136-.05.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.05.051-.05.023-.025.023-.024.021-.024.02-.025.019-.024.018-.024.017-.023.015-.024.014-.023.013-.023.012-.023.01-.023.01-.022.008-.022.006-.023.006-.021.004-.022.004-.021.001-.021.001-.021-.001-.021-.001-.021-.004-.021-.004-.022-.006-.021-.006-.023-.008-.022-.01-.022-.01-.023-.012-.023-.013-.023-.014-.023-.015-.024-.017-.023-.018-.024-.019-.024-.02-.025-.021-.024-.023-.024-.023-.025-.051-.05-.056-.05-.06-.05-.065-.051-.07-.052-.074-.051-.079-.052-.083-.052-.088-.052-.092-.052-.096-.052-.101-.052-.106-.052-.11-.052-.114-.052-.118-.051-.123-.051-.126-.051-.131-.05-.136-.05-.139-.049-.143-.048-.148-.048-.152-.048-.155-.046-.16-.046-.163-.045-.168-.043-.172-.043-.175-.042-.179-.041-.183-.04-.187-.038-.191-.038-.194-.036-.198-.034-.202-.033-.205-.032-.21-.031-.212-.028-.216-.027-.22-.026-.224-.023-.226-.022-.231-.021-.233-.018-.237-.016-.241-.014-.244-.012-.247-.011-.25-.008-.254-.005-.257-.004-.26-.001-.26.001z" ); -}, "insertDatabaseIcon"), EHt = /* @__PURE__ */ x(function(t) { +}, "insertDatabaseIcon"), _Ht = /* @__PURE__ */ x(function(t) { t.append("defs").append("symbol").attr("id", "computer").attr("width", "24").attr("height", "24").append("path").attr("transform", "scale(.5)").attr( "d", "M2 2v13h20v-13h-20zm18 11h-16v-9h16v9zm-10.228 6l.466-1h3.524l.467 1h-4.457zm14.228 3h-24l2-6h2.104l-1.33 4h18.45l-1.297-4h2.073l2 6zm-5-10h-14v-7h14v7z" ); -}, "insertComputerIcon"), _Ht = /* @__PURE__ */ x(function(t) { +}, "insertComputerIcon"), AHt = /* @__PURE__ */ x(function(t) { t.append("defs").append("symbol").attr("id", "clock").attr("width", "24").attr("height", "24").append("path").attr("transform", "scale(.5)").attr( "d", "M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm5.848 12.459c.202.038.202.333.001.372-1.907.361-6.045 1.111-6.547 1.111-.719 0-1.301-.582-1.301-1.301 0-.512.77-5.447 1.125-7.445.034-.192.312-.181.343.014l.985 6.238 5.394 1.011z" ); -}, "insertClockIcon"), AHt = /* @__PURE__ */ x(function(t) { +}, "insertClockIcon"), LHt = /* @__PURE__ */ x(function(t) { t.append("defs").append("marker").attr("id", "arrowhead").attr("refX", 7.9).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto-start-reverse").append("path").attr("d", "M -1 0 L 10 5 L 0 10 z"); -}, "insertArrowHead"), LHt = /* @__PURE__ */ x(function(t) { +}, "insertArrowHead"), RHt = /* @__PURE__ */ x(function(t) { t.append("defs").append("marker").attr("id", "filled-head").attr("refX", 15.5).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L14,7 L9,1 Z"); -}, "insertArrowFilledHead"), RHt = /* @__PURE__ */ x(function(t) { +}, "insertArrowFilledHead"), MHt = /* @__PURE__ */ x(function(t) { t.append("defs").append("marker").attr("id", "sequencenumber").attr("refX", 15).attr("refY", 15).attr("markerWidth", 60).attr("markerHeight", 40).attr("orient", "auto").append("circle").attr("cx", 15).attr("cy", 15).attr("r", 6); -}, "insertSequenceNumber"), MHt = /* @__PURE__ */ x(function(t) { +}, "insertSequenceNumber"), DHt = /* @__PURE__ */ x(function(t) { t.append("defs").append("marker").attr("id", "crosshead").attr("markerWidth", 15).attr("markerHeight", 8).attr("orient", "auto").attr("refX", 4).attr("refY", 4.5).append("path").attr("fill", "none").attr("stroke", "#000000").style("stroke-dasharray", "0, 0").attr("stroke-width", "1pt").attr("d", "M 1,2 L 6,7 M 6,2 L 1,7"); }, "insertArrowCrossHead"), gge = /* @__PURE__ */ x(function() { return { @@ -88709,7 +88780,7 @@ var lge = /* @__PURE__ */ x(function(t, e) { tspan: !0, valign: void 0 }; -}, "getTextObj"), DHt = /* @__PURE__ */ x(function() { +}, "getTextObj"), NHt = /* @__PURE__ */ x(function() { return { x: 0, y: 0, @@ -88752,7 +88823,7 @@ var lge = /* @__PURE__ */ x(function(t, e) { return x(i, "_setTextAttrs"), function(s, a = !1) { return a ? n : s.textPlacement === "fo" ? r : s.textPlacement === "old" ? t : e; }; -}(), NHt = /* @__PURE__ */ function() { +}(), IHt = /* @__PURE__ */ function() { function t(i, s, a, o, l, u, h) { const f = s.append("text").attr("x", a).attr("y", o).style("text-anchor", "start").text(i); n(f, h); @@ -88782,22 +88853,22 @@ var lge = /* @__PURE__ */ x(function(t, e) { drawRect: oP, drawText: O1, drawLabel: fge, - drawActor: wHt, - drawBox: OHt, - drawPopup: vHt, - anchorElement: kHt, - drawActivation: SHt, - drawLoop: THt, + drawActor: OHt, + drawBox: kHt, + drawPopup: yHt, + anchorElement: SHt, + drawActivation: THt, + drawLoop: CHt, drawBackgroundRect: pge, - insertArrowHead: AHt, - insertArrowFilledHead: LHt, - insertSequenceNumber: RHt, - insertArrowCrossHead: MHt, - insertDatabaseIcon: CHt, - insertComputerIcon: EHt, - insertClockIcon: _Ht, + insertArrowHead: LHt, + insertArrowFilledHead: RHt, + insertSequenceNumber: MHt, + insertArrowCrossHead: DHt, + insertDatabaseIcon: EHt, + insertComputerIcon: _Ht, + insertClockIcon: AHt, getTextObj: gge, - getNoteRect: DHt, + getNoteRect: NHt, fixLifeLineHeights: dge, sanitizeUrl: zf }, Ie = {}, nt = { @@ -88938,7 +89009,7 @@ var lge = /* @__PURE__ */ x(function(t, e) { getBounds: /* @__PURE__ */ x(function() { return { bounds: this.data, models: this.models }; }, "getBounds") -}, IHt = /* @__PURE__ */ x(async function(t, e) { +}, PHt = /* @__PURE__ */ x(async function(t, e) { nt.bumpVerticalPos(Ie.boxMargin), e.height = Ie.boxMargin, e.starty = nt.getVerticalPos(); const r = K0(); r.x = e.startx, r.y = e.starty, r.width = e.width || Ie.width, r.class = "note"; @@ -88984,7 +89055,7 @@ async function mge(t, e) { return nt.bumpVerticalPos(u), e.height += u, e.stopy = e.starty + e.height, nt.insert(e.fromBounds, e.starty, e.toBounds, e.stopy), l; } x(mge, "boundMessage"); -var PHt = /* @__PURE__ */ x(async function(t, e, r, n) { +var $Ht = /* @__PURE__ */ x(async function(t, e, r, n) { const { startx: i, stopx: s, starty: a, message: o, type: l, sequenceIndex: u, sequenceVisible: h } = e, f = sr.calculateTextDimensions(o, O0(Ie)), d = tI(); d.x = i, d.y = a + 10, d.width = s - i, d.class = "messageText", d.dy = "1em", d.text = o, d.fontFamily = Ie.messageFontFamily, d.fontSize = Ie.messageFontSize, d.fontWeight = Ie.messageFontWeight, d.anchor = Ie.messageAlign, d.valign = "center", d.textMargin = Ie.wrapPadding, d.tspan = !1, ca(d.text) ? await Gk(t, d, { startx: i, stopx: s, starty: r }) : O1(t, d); const p = f.width; @@ -88998,7 +89069,7 @@ var PHt = /* @__PURE__ */ x(async function(t, e, r, n) { ) : (g = t.append("line"), g.attr("x1", i), g.attr("y1", r), g.attr("x2", s), g.attr("y2", r)), l === n.db.LINETYPE.DOTTED || l === n.db.LINETYPE.DOTTED_CROSS || l === n.db.LINETYPE.DOTTED_POINT || l === n.db.LINETYPE.DOTTED_OPEN || l === n.db.LINETYPE.BIDIRECTIONAL_DOTTED ? (g.style("stroke-dasharray", "3, 3"), g.attr("class", "messageLine1")) : g.attr("class", "messageLine0"); let m = ""; Ie.arrowMarkerAbsolute && (m = window.location.protocol + "//" + window.location.host + window.location.pathname + window.location.search, m = m.replace(/\(/g, "\\("), m = m.replace(/\)/g, "\\)")), g.attr("stroke-width", 2), g.attr("stroke", "none"), g.style("fill", "none"), (l === n.db.LINETYPE.SOLID || l === n.db.LINETYPE.DOTTED) && g.attr("marker-end", "url(" + m + "#arrowhead)"), (l === n.db.LINETYPE.BIDIRECTIONAL_SOLID || l === n.db.LINETYPE.BIDIRECTIONAL_DOTTED) && (g.attr("marker-start", "url(" + m + "#arrowhead)"), g.attr("marker-end", "url(" + m + "#arrowhead)")), (l === n.db.LINETYPE.SOLID_POINT || l === n.db.LINETYPE.DOTTED_POINT) && g.attr("marker-end", "url(" + m + "#filled-head)"), (l === n.db.LINETYPE.SOLID_CROSS || l === n.db.LINETYPE.DOTTED_CROSS) && g.attr("marker-end", "url(" + m + "#crosshead)"), (h || Ie.showSequenceNumbers) && (g.attr("marker-start", "url(" + m + "#sequencenumber)"), t.append("text").attr("x", i).attr("y", r + 4).attr("font-family", "sans-serif").attr("font-size", "12px").attr("text-anchor", "middle").attr("class", "sequenceNumber").text(u)); -}, "drawMessage"), $Ht = /* @__PURE__ */ x(function(t, e, r, n, i, s, a) { +}, "drawMessage"), BHt = /* @__PURE__ */ x(function(t, e, r, n, i, s, a) { let o = 0, l = 0, u, h = 0; for (const f of n) { const d = e.get(f), p = d.box; @@ -89024,7 +89095,7 @@ var PHt = /* @__PURE__ */ x(async function(t, e, r, n) { }, "drawActors"), vge = /* @__PURE__ */ x(function(t, e, r, n) { let i = 0, s = 0; for (const a of r) { - const o = e.get(a), l = FHt(o), u = Hn.drawPopup( + const o = e.get(a), l = zHt(o), u = Hn.drawPopup( t, o, l, @@ -89115,7 +89186,7 @@ function bge(t, e, r, n, i, s, a) { } } x(bge, "adjustCreatedDestroyedData"); -var BHt = /* @__PURE__ */ x(async function(t, e, r, n) { +var FHt = /* @__PURE__ */ x(async function(t, e, r, n) { const { securityLevel: i, sequence: s } = be(); Ie = s; let a; @@ -89131,8 +89202,8 @@ var BHt = /* @__PURE__ */ x(async function(t, e, r, n) { D.add(P.from), D.add(P.to); }), g = g.filter((P) => D.has(P)); } - $Ht(u, h, f, g, 0, m, !1); - const O = await UHt(m, h, w, n); + BHt(u, h, f, g, 0, m, !1); + const O = await qHt(m, h, w, n); Hn.insertArrowHead(u), Hn.insertArrowCrossHead(u), Hn.insertArrowFilledHead(u), Hn.insertSequenceNumber(u); function S(D, P) { const F = nt.endActivation(D); @@ -89152,7 +89223,7 @@ var BHt = /* @__PURE__ */ x(async function(t, e, r, n) { let P, F, B; switch (D.type) { case n.db.LINETYPE.NOTE: - nt.resetVerticalPos(), F = D.noteModel, await IHt(u, F); + nt.resetVerticalPos(), F = D.noteModel, await PHt(u, F); break; case n.db.LINETYPE.ACTIVE_START: nt.newActivation(D, u, h); @@ -89307,7 +89378,7 @@ var BHt = /* @__PURE__ */ x(async function(t, e, r, n) { } X.debug("createdActors", f), X.debug("destroyedActors", d), await U9(u, h, g, !1); for (const D of A) - await PHt(u, D.messageModel, D.lineStartY, n); + await $Ht(u, D.messageModel, D.lineStartY, n); Ie.mirrorActors && await U9(u, h, g, !0), E.forEach((D) => Hn.drawBackgroundRect(u, D)), dge(u, h, g, Ie); for (const D of nt.models.boxes) D.height = nt.getVerticalPos() - D.y, nt.insert(D.x, D.y, D.x + D.width, D.height), D.startx = D.x, D.starty = D.y, D.stopx = D.startx + D.width, D.stopy = D.starty + D.height, D.stroke = "rgb(0,0,0, 0.5)", Hn.drawBox(u, D, Ie); @@ -89365,7 +89436,7 @@ async function xge(t, e, r) { return X.debug("maxMessageWidthPerActor:", n), n; } x(xge, "getMaxMessageWidthPerActor"); -var FHt = /* @__PURE__ */ x(function(t) { +var zHt = /* @__PURE__ */ x(function(t) { let e = 0; const r = V9(Ie); for (const n in t.links) { @@ -89414,7 +89485,7 @@ async function wge(t, e, r) { }), r.forEach((s) => s.textMaxHeight = i), at.getMax(n, Ie.height); } x(wge, "calculateActorMargins"); -var zHt = /* @__PURE__ */ x(async function(t, e, r) { +var VHt = /* @__PURE__ */ x(async function(t, e, r) { const n = e.get(t.from), i = e.get(t.to), s = n.x, a = i.x, o = t.wrap && t.message; let l = ca(t.message) ? await ax(t.message, be()) : sr.calculateTextDimensions( o ? sr.wrapLabel(t.message, Ie.width, Ep(Ie)) : t.message, @@ -89445,7 +89516,7 @@ var zHt = /* @__PURE__ */ x(async function(t, e, r) { )), X.debug( `NM:[${u.startx},${u.stopx},${u.starty},${u.stopy}:${u.width},${u.height}=${t.message}]` ), u; -}, "buildNoteModel"), VHt = /* @__PURE__ */ x(function(t, e, r) { +}, "buildNoteModel"), UHt = /* @__PURE__ */ x(function(t, e, r) { if (![ r.db.LINETYPE.SOLID_OPEN, r.db.LINETYPE.DOTTED_OPEN, @@ -89489,7 +89560,7 @@ var zHt = /* @__PURE__ */ x(async function(t, e, r) { fromBounds: Math.min.apply(null, d), toBounds: Math.max.apply(null, d) }; -}, "buildMessageModel"), UHt = /* @__PURE__ */ x(async function(t, e, r, n) { +}, "buildMessageModel"), qHt = /* @__PURE__ */ x(async function(t, e, r, n) { const i = {}, s = []; let a, o, l; for (const u of t) { @@ -89540,9 +89611,9 @@ var zHt = /* @__PURE__ */ x(async function(t, e, r) { } break; } - u.placement !== void 0 ? (o = await zHt(u, e, n), u.noteModel = o, s.forEach((f) => { + u.placement !== void 0 ? (o = await VHt(u, e, n), u.noteModel = o, s.forEach((f) => { a = f, a.from = at.getMin(a.from, o.startx), a.to = at.getMax(a.to, o.startx + o.width), a.width = at.getMax(a.width, Math.abs(a.from - a.to)) - Ie.labelBoxWidth; - })) : (l = VHt(u, e, n), u.msgModel = l, l.startx && l.stopx && s.length > 0 && s.forEach((f) => { + })) : (l = UHt(u, e, n), u.msgModel = l, l.startx && l.stopx && s.length > 0 && s.forEach((f) => { if (a = f, l.startx === l.stopx) { const d = e.get(u.from), p = e.get(u.to); a.from = at.getMin( @@ -89559,24 +89630,24 @@ var zHt = /* @__PURE__ */ x(async function(t, e, r) { })); } return nt.activations = [], X.debug("Loop type widths:", i), i; -}, "calculateLoopBounds"), qHt = { +}, "calculateLoopBounds"), QHt = { bounds: nt, drawActors: U9, drawActorsPopup: vge, setConf: yge, - draw: BHt -}, QHt = { - parser: YGt, + draw: FHt +}, YHt = { + parser: WGt, db: JG, - renderer: qHt, - styles: gHt, + renderer: QHt, + styles: mHt, init: /* @__PURE__ */ x(({ wrap: t }) => { JG.setWrap(t); }, "init") }; -const YHt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +const WHt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - diagram: QHt + diagram: YHt }, Symbol.toStringTag, { value: "Module" })); var q9 = function() { var t = /* @__PURE__ */ x(function(Ye, De, he, H) { @@ -90297,7 +90368,7 @@ var Oge = q9, rH = ["#", "+", "~", "-", ""], Fb, nH = (Fb = class { n = k0(i[0]), r = k0(i[1]); } return { className: n, type: r }; -}, "splitClassNameAndType"), WHt = /* @__PURE__ */ x(function(t, e) { +}, "splitClassNameAndType"), GHt = /* @__PURE__ */ x(function(t, e) { const r = at.sanitizeText(t, be()); e && (e = k0(e)); const { className: n } = S0(r); @@ -90323,19 +90394,19 @@ var Oge = q9, rH = ["#", "+", "~", "-", ""], Fb, nH = (Fb = class { if (Ii.has(e)) return Ii.get(e).domId; throw new Error("Class not found: " + e); -}, "lookUpDomId"), GHt = /* @__PURE__ */ x(function() { +}, "lookUpDomId"), HHt = /* @__PURE__ */ x(function() { cP = [], Ii = /* @__PURE__ */ new Map(), Hk = [], B2 = [], B2.push(Tge), Ju = /* @__PURE__ */ new Map(), Q9 = 0, hP = "TB", Xi(); -}, "clear"), HHt = /* @__PURE__ */ x(function(t) { +}, "clear"), XHt = /* @__PURE__ */ x(function(t) { return Ii.get(t); -}, "getClass"), XHt = /* @__PURE__ */ x(function() { +}, "getClass"), ZHt = /* @__PURE__ */ x(function() { return Ii; -}, "getClasses"), ZHt = /* @__PURE__ */ x(function() { +}, "getClasses"), jHt = /* @__PURE__ */ x(function() { return cP; -}, "getRelations"), jHt = /* @__PURE__ */ x(function() { +}, "getRelations"), KHt = /* @__PURE__ */ x(function() { return Hk; -}, "getNotes"), KHt = /* @__PURE__ */ x(function(t) { +}, "getNotes"), JHt = /* @__PURE__ */ x(function(t) { X.debug("Adding relation: " + JSON.stringify(t)), Xk(t.id1), Xk(t.id2), t.id1 = S0(t.id1).className, t.id2 = S0(t.id2).className, t.relationTitle1 = at.sanitizeText(t.relationTitle1.trim(), be()), t.relationTitle2 = at.sanitizeText(t.relationTitle2.trim(), be()), cP.push(t); -}, "addRelation"), JHt = /* @__PURE__ */ x(function(t, e) { +}, "addRelation"), eXt = /* @__PURE__ */ x(function(t, e) { const r = S0(t).className; Ii.get(r).annotations.push(e); }, "addAnnotation"), Sge = /* @__PURE__ */ x(function(t, e) { @@ -90345,16 +90416,16 @@ var Oge = q9, rH = ["#", "+", "~", "-", ""], Fb, nH = (Fb = class { const i = e.trim(); i.startsWith("<<") && i.endsWith(">>") ? n.annotations.push(k0(i.substring(2, i.length - 2))) : i.indexOf(")") > 0 ? n.methods.push(new nH(i, "method")) : i && n.members.push(new nH(i, "attribute")); } -}, "addMember"), eXt = /* @__PURE__ */ x(function(t, e) { +}, "addMember"), tXt = /* @__PURE__ */ x(function(t, e) { Array.isArray(e) && (e.reverse(), e.forEach((r) => Sge(t, r))); -}, "addMembers"), tXt = /* @__PURE__ */ x(function(t, e) { +}, "addMembers"), rXt = /* @__PURE__ */ x(function(t, e) { const r = { id: `note${Hk.length}`, class: e, text: t }; Hk.push(r); -}, "addNote"), rXt = /* @__PURE__ */ x(function(t) { +}, "addNote"), nXt = /* @__PURE__ */ x(function(t) { return t.startsWith(":") && (t = t.substring(1)), k0(t.trim()); }, "cleanupLabel"), uP = /* @__PURE__ */ x(function(t, e) { t.split(",").forEach(function(r) { @@ -90363,13 +90434,13 @@ var Oge = q9, rH = ["#", "+", "~", "-", ""], Fb, nH = (Fb = class { const i = Ii.get(n); i && i.cssClasses.push(e); }); -}, "setCssClass"), nXt = /* @__PURE__ */ x(function(t, e) { +}, "setCssClass"), iXt = /* @__PURE__ */ x(function(t, e) { t.split(",").forEach(function(r) { e !== void 0 && (Ii.get(r).tooltip = k0(e)); }); -}, "setTooltip"), iXt = /* @__PURE__ */ x(function(t, e) { +}, "setTooltip"), sXt = /* @__PURE__ */ x(function(t, e) { return e && Ju.has(e) ? Ju.get(e).classes.get(t).tooltip : Ii.get(t).tooltip; -}, "getTooltip"), sXt = /* @__PURE__ */ x(function(t, e, r) { +}, "getTooltip"), aXt = /* @__PURE__ */ x(function(t, e, r) { const n = be(); t.split(",").forEach(function(i) { let s = i; @@ -90377,11 +90448,11 @@ var Oge = q9, rH = ["#", "+", "~", "-", ""], Fb, nH = (Fb = class { const a = Ii.get(s); a && (a.link = sr.formatUrl(e, n), n.securityLevel === "sandbox" ? a.linkTarget = "_top" : typeof r == "string" ? a.linkTarget = k0(r) : a.linkTarget = "_blank"); }), uP(t, "clickable"); -}, "setLink"), aXt = /* @__PURE__ */ x(function(t, e, r) { +}, "setLink"), oXt = /* @__PURE__ */ x(function(t, e, r) { t.split(",").forEach(function(n) { - oXt(n, e, r), Ii.get(n).haveCallback = !0; + lXt(n, e, r), Ii.get(n).haveCallback = !0; }), uP(t, "clickable"); -}, "setClickEvent"), oXt = /* @__PURE__ */ x(function(t, e, r) { +}, "setClickEvent"), lXt = /* @__PURE__ */ x(function(t, e, r) { const n = at.sanitizeText(t, be()); if (be().securityLevel !== "loose" || e === void 0) return; @@ -90407,14 +90478,14 @@ var Oge = q9, rH = ["#", "+", "~", "-", ""], Fb, nH = (Fb = class { ); }); } -}, "setClickFunc"), lXt = /* @__PURE__ */ x(function(t) { +}, "setClickFunc"), cXt = /* @__PURE__ */ x(function(t) { B2.forEach(function(e) { e(t); }); -}, "bindFunctions"), cXt = { +}, "bindFunctions"), uXt = { LINE: 0, DOTTED_LINE: 1 -}, uXt = { +}, hXt = { AGGREGATION: 0, EXTENSION: 1, COMPOSITION: 2, @@ -90433,26 +90504,26 @@ var Oge = q9, rH = ["#", "+", "~", "-", ""], Fb, nH = (Fb = class { }); }, "setupToolTips"); B2.push(Tge); -var hP = "TB", hXt = /* @__PURE__ */ x(() => hP, "getDirection"), fXt = /* @__PURE__ */ x((t) => { +var hP = "TB", fXt = /* @__PURE__ */ x(() => hP, "getDirection"), dXt = /* @__PURE__ */ x((t) => { hP = t; -}, "setDirection"), dXt = /* @__PURE__ */ x(function(t) { +}, "setDirection"), pXt = /* @__PURE__ */ x(function(t) { Ju.has(t) || (Ju.set(t, { id: t, classes: /* @__PURE__ */ new Map(), children: {}, domId: RC + t + "-" + Q9 }), Q9++); -}, "addNamespace"), pXt = /* @__PURE__ */ x(function(t) { +}, "addNamespace"), gXt = /* @__PURE__ */ x(function(t) { return Ju.get(t); -}, "getNamespace"), gXt = /* @__PURE__ */ x(function() { +}, "getNamespace"), mXt = /* @__PURE__ */ x(function() { return Ju; -}, "getNamespaces"), mXt = /* @__PURE__ */ x(function(t, e) { +}, "getNamespaces"), vXt = /* @__PURE__ */ x(function(t, e) { if (!!Ju.has(t)) for (const r of e) { const { className: n } = S0(r); Ii.get(n).parent = t, Ju.get(t).classes.set(n, Ii.get(n)); } -}, "addClassesToNamespace"), vXt = /* @__PURE__ */ x(function(t, e) { +}, "addClassesToNamespace"), yXt = /* @__PURE__ */ x(function(t, e) { const r = Ii.get(t); if (!(!e || !r)) for (const n of e) @@ -90464,37 +90535,37 @@ var hP = "TB", hXt = /* @__PURE__ */ x(() => hP, "getDirection"), fXt = /* @__PU setAccDescription: ys, getConfig: /* @__PURE__ */ x(() => be().class, "getConfig"), addClass: Xk, - bindFunctions: lXt, - clear: GHt, - getClass: HHt, - getClasses: XHt, - getNotes: jHt, - addAnnotation: JHt, - addNote: tXt, - getRelations: ZHt, - addRelation: KHt, - getDirection: hXt, - setDirection: fXt, + bindFunctions: cXt, + clear: HHt, + getClass: XHt, + getClasses: ZHt, + getNotes: KHt, + addAnnotation: eXt, + addNote: rXt, + getRelations: jHt, + addRelation: JHt, + getDirection: fXt, + setDirection: dXt, addMember: Sge, - addMembers: eXt, - cleanupLabel: rXt, - lineType: cXt, - relationType: uXt, - setClickEvent: aXt, + addMembers: tXt, + cleanupLabel: nXt, + lineType: uXt, + relationType: hXt, + setClickEvent: oXt, setCssClass: uP, - setLink: sXt, - getTooltip: iXt, - setTooltip: nXt, + setLink: aXt, + getTooltip: sXt, + setTooltip: iXt, lookUpDomId: kge, setDiagramTitle: fa, getDiagramTitle: xs, - setClassLabel: WHt, - addNamespace: dXt, - addClassesToNamespace: mXt, - getNamespace: pXt, - getNamespaces: gXt, - setCssStyle: vXt -}, yXt = /* @__PURE__ */ x((t) => `g.classGroup text { + setClassLabel: GHt, + addNamespace: pXt, + addClassesToNamespace: vXt, + getNamespace: gXt, + getNamespaces: mXt, + setCssStyle: yXt +}, bXt = /* @__PURE__ */ x((t) => `g.classGroup text { fill: ${t.nodeBorder || t.classText}; stroke: none; font-family: ${t.fontFamily}; @@ -90648,7 +90719,7 @@ g.classGroup line { font-size: 18px; fill: ${t.textColor}; } -`, "getStyles"), Cge = yXt, sH = 0, bXt = /* @__PURE__ */ x(function(t, e, r, n, i) { +`, "getStyles"), Cge = bXt, sH = 0, xXt = /* @__PURE__ */ x(function(t, e, r, n, i) { const s = /* @__PURE__ */ x(function(b) { switch (b) { case i.db.relationType.AGGREGATION: @@ -90701,7 +90772,7 @@ g.classGroup line { b.insert("rect", ":first-child").attr("class", "box").attr("x", O.x - n.padding / 2).attr("y", O.y - n.padding / 2).attr("width", O.width + n.padding).attr("height", O.height + n.padding); } X.info("Rendering relation " + JSON.stringify(r)), r.relationTitle1 !== void 0 && r.relationTitle1 !== "none" && t.append("g").attr("class", "cardinality").append("text").attr("class", "type1").attr("x", g).attr("y", m).attr("fill", "black").attr("font-size", "6").text(r.relationTitle1), r.relationTitle2 !== void 0 && r.relationTitle2 !== "none" && t.append("g").attr("class", "cardinality").append("text").attr("class", "type2").attr("x", v).attr("y", y).attr("fill", "black").attr("font-size", "6").text(r.relationTitle2), sH++; -}, "drawEdge"), xXt = /* @__PURE__ */ x(function(t, e, r, n) { +}, "drawEdge"), wXt = /* @__PURE__ */ x(function(t, e, r, n) { X.debug("Rendering class ", e, r); const i = e.id, s = { id: i, @@ -90745,7 +90816,7 @@ g.classGroup line { }, "drawClass"), Ege = /* @__PURE__ */ x(function(t) { let e = t.id; return t.type && (e += "<" + ny(t.type) + ">"), e; -}, "getClassTitleString"), wXt = /* @__PURE__ */ x(function(t, e, r, n) { +}, "getClassTitleString"), OXt = /* @__PURE__ */ x(function(t, e, r, n) { X.debug("Rendering note ", e, r); const i = e.id, s = { id: i, @@ -90771,23 +90842,23 @@ g.classGroup line { s !== "" && a.attr("style", e.cssStyle), r || a.attr("dy", n.textHeight); }, "addTspan"), G_ = { getClassTitleString: Ege, - drawClass: xXt, - drawEdge: bXt, - drawNote: wXt + drawClass: wXt, + drawEdge: xXt, + drawNote: OXt }, e5 = {}, RO = 20, nv = /* @__PURE__ */ x(function(t) { const e = Object.entries(e5).find((r) => r[1].label === t); if (e) return e[0]; -}, "getGraphId"), OXt = /* @__PURE__ */ x(function(t) { +}, "getGraphId"), kXt = /* @__PURE__ */ x(function(t) { t.append("defs").append("marker").attr("id", "extensionStart").attr("class", "extension").attr("refX", 0).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 1,7 L18,13 V 1 Z"), t.append("defs").append("marker").attr("id", "extensionEnd").attr("refX", 19).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 1,1 V 13 L18,7 Z"), t.append("defs").append("marker").attr("id", "compositionStart").attr("class", "extension").attr("refX", 0).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), t.append("defs").append("marker").attr("id", "compositionEnd").attr("refX", 19).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), t.append("defs").append("marker").attr("id", "aggregationStart").attr("class", "extension").attr("refX", 0).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), t.append("defs").append("marker").attr("id", "aggregationEnd").attr("refX", 19).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), t.append("defs").append("marker").attr("id", "dependencyStart").attr("class", "extension").attr("refX", 0).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 5,7 L9,13 L1,7 L9,1 Z"), t.append("defs").append("marker").attr("id", "dependencyEnd").attr("refX", 19).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L14,7 L9,1 Z"); -}, "insertMarkers"), kXt = /* @__PURE__ */ x(function(t, e, r, n) { +}, "insertMarkers"), SXt = /* @__PURE__ */ x(function(t, e, r, n) { const i = be().class; e5 = {}, X.info("Rendering diagram " + t); const s = be().securityLevel; let a; s === "sandbox" && (a = et("#i" + e)); const o = et(s === "sandbox" ? a.nodes()[0].contentDocument.body : "body"), l = o.select(`[id='${e}']`); - OXt(l); + kXt(l); const u = new Bi({ multigraph: !0 }); @@ -90843,56 +90914,56 @@ g.classGroup line { ms(l, v, m, i.useMaxWidth); const y = `${g.x - RO} ${g.y - RO} ${m} ${v}`; X.debug(`viewBox ${y}`), l.attr("viewBox", y); -}, "draw"), SXt = { - draw: kXt -}, TXt = { +}, "draw"), TXt = { + draw: SXt +}, CXt = { parser: Oge, db: Zk, - renderer: SXt, + renderer: TXt, styles: Cge, init: /* @__PURE__ */ x((t) => { t.class || (t.class = {}), t.class.arrowMarkerAbsolute = t.arrowMarkerAbsolute, Zk.clear(); }, "init") }; -const CXt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +const EXt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - diagram: TXt + diagram: CXt }, Symbol.toStringTag, { value: "Module" })); -var EXt = /* @__PURE__ */ x((t, e, r, n) => { +var _Xt = /* @__PURE__ */ x((t, e, r, n) => { e.forEach((i) => { - $Xt[i](t, r, n); + BXt[i](t, r, n); }); -}, "insertMarkers"), _Xt = /* @__PURE__ */ x((t, e, r) => { +}, "insertMarkers"), AXt = /* @__PURE__ */ x((t, e, r) => { X.trace("Making markers for ", r), t.append("defs").append("marker").attr("id", r + "_" + e + "-extensionStart").attr("class", "marker extension " + e).attr("refX", 18).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 1,7 L18,13 V 1 Z"), t.append("defs").append("marker").attr("id", r + "_" + e + "-extensionEnd").attr("class", "marker extension " + e).attr("refX", 1).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 1,1 V 13 L18,7 Z"); -}, "extension"), AXt = /* @__PURE__ */ x((t, e, r) => { +}, "extension"), LXt = /* @__PURE__ */ x((t, e, r) => { t.append("defs").append("marker").attr("id", r + "_" + e + "-compositionStart").attr("class", "marker composition " + e).attr("refX", 18).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), t.append("defs").append("marker").attr("id", r + "_" + e + "-compositionEnd").attr("class", "marker composition " + e).attr("refX", 1).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"); -}, "composition"), LXt = /* @__PURE__ */ x((t, e, r) => { +}, "composition"), RXt = /* @__PURE__ */ x((t, e, r) => { t.append("defs").append("marker").attr("id", r + "_" + e + "-aggregationStart").attr("class", "marker aggregation " + e).attr("refX", 18).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), t.append("defs").append("marker").attr("id", r + "_" + e + "-aggregationEnd").attr("class", "marker aggregation " + e).attr("refX", 1).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"); -}, "aggregation"), RXt = /* @__PURE__ */ x((t, e, r) => { +}, "aggregation"), MXt = /* @__PURE__ */ x((t, e, r) => { t.append("defs").append("marker").attr("id", r + "_" + e + "-dependencyStart").attr("class", "marker dependency " + e).attr("refX", 6).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 5,7 L9,13 L1,7 L9,1 Z"), t.append("defs").append("marker").attr("id", r + "_" + e + "-dependencyEnd").attr("class", "marker dependency " + e).attr("refX", 13).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L14,7 L9,1 Z"); -}, "dependency"), MXt = /* @__PURE__ */ x((t, e, r) => { +}, "dependency"), DXt = /* @__PURE__ */ x((t, e, r) => { t.append("defs").append("marker").attr("id", r + "_" + e + "-lollipopStart").attr("class", "marker lollipop " + e).attr("refX", 13).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("circle").attr("stroke", "black").attr("fill", "transparent").attr("cx", 7).attr("cy", 7).attr("r", 6), t.append("defs").append("marker").attr("id", r + "_" + e + "-lollipopEnd").attr("class", "marker lollipop " + e).attr("refX", 1).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("circle").attr("stroke", "black").attr("fill", "transparent").attr("cx", 7).attr("cy", 7).attr("r", 6); -}, "lollipop"), DXt = /* @__PURE__ */ x((t, e, r) => { +}, "lollipop"), NXt = /* @__PURE__ */ x((t, e, r) => { t.append("marker").attr("id", r + "_" + e + "-pointEnd").attr("class", "marker " + e).attr("viewBox", "0 0 10 10").attr("refX", 6).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto").append("path").attr("d", "M 0 0 L 10 5 L 0 10 z").attr("class", "arrowMarkerPath").style("stroke-width", 1).style("stroke-dasharray", "1,0"), t.append("marker").attr("id", r + "_" + e + "-pointStart").attr("class", "marker " + e).attr("viewBox", "0 0 10 10").attr("refX", 4.5).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto").append("path").attr("d", "M 0 5 L 10 10 L 10 0 z").attr("class", "arrowMarkerPath").style("stroke-width", 1).style("stroke-dasharray", "1,0"); -}, "point"), NXt = /* @__PURE__ */ x((t, e, r) => { +}, "point"), IXt = /* @__PURE__ */ x((t, e, r) => { t.append("marker").attr("id", r + "_" + e + "-circleEnd").attr("class", "marker " + e).attr("viewBox", "0 0 10 10").attr("refX", 11).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 11).attr("markerHeight", 11).attr("orient", "auto").append("circle").attr("cx", "5").attr("cy", "5").attr("r", "5").attr("class", "arrowMarkerPath").style("stroke-width", 1).style("stroke-dasharray", "1,0"), t.append("marker").attr("id", r + "_" + e + "-circleStart").attr("class", "marker " + e).attr("viewBox", "0 0 10 10").attr("refX", -1).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 11).attr("markerHeight", 11).attr("orient", "auto").append("circle").attr("cx", "5").attr("cy", "5").attr("r", "5").attr("class", "arrowMarkerPath").style("stroke-width", 1).style("stroke-dasharray", "1,0"); -}, "circle"), IXt = /* @__PURE__ */ x((t, e, r) => { +}, "circle"), PXt = /* @__PURE__ */ x((t, e, r) => { t.append("marker").attr("id", r + "_" + e + "-crossEnd").attr("class", "marker cross " + e).attr("viewBox", "0 0 11 11").attr("refX", 12).attr("refY", 5.2).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 11).attr("markerHeight", 11).attr("orient", "auto").append("path").attr("d", "M 1,1 l 9,9 M 10,1 l -9,9").attr("class", "arrowMarkerPath").style("stroke-width", 2).style("stroke-dasharray", "1,0"), t.append("marker").attr("id", r + "_" + e + "-crossStart").attr("class", "marker cross " + e).attr("viewBox", "0 0 11 11").attr("refX", -1).attr("refY", 5.2).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 11).attr("markerHeight", 11).attr("orient", "auto").append("path").attr("d", "M 1,1 l 9,9 M 10,1 l -9,9").attr("class", "arrowMarkerPath").style("stroke-width", 2).style("stroke-dasharray", "1,0"); -}, "cross"), PXt = /* @__PURE__ */ x((t, e, r) => { +}, "cross"), $Xt = /* @__PURE__ */ x((t, e, r) => { t.append("defs").append("marker").attr("id", r + "_" + e + "-barbEnd").attr("refX", 19).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 14).attr("markerUnits", "strokeWidth").attr("orient", "auto").append("path").attr("d", "M 19,7 L9,13 L14,7 L9,1 Z"); -}, "barb"), $Xt = { - extension: _Xt, - composition: AXt, - aggregation: LXt, - dependency: RXt, - lollipop: MXt, - point: DXt, - circle: NXt, - cross: IXt, - barb: PXt -}, _ge = EXt, BXt = /* @__PURE__ */ x((t, e, r, n, i) => { +}, "barb"), BXt = { + extension: AXt, + composition: LXt, + aggregation: RXt, + dependency: MXt, + lollipop: DXt, + point: NXt, + circle: IXt, + cross: PXt, + barb: $Xt +}, _ge = _Xt, FXt = /* @__PURE__ */ x((t, e, r, n, i) => { e.arrowTypeStart && oH(t, "start", e.arrowTypeStart, r, n, i), e.arrowTypeEnd && oH(t, "end", e.arrowTypeEnd, r, n, i); -}, "addEdgeMarkers"), FXt = { +}, "addEdgeMarkers"), zXt = { arrow_cross: "cross", arrow_point: "point", arrow_barb: "barb", @@ -90903,14 +90974,14 @@ var EXt = /* @__PURE__ */ x((t, e, r, n) => { dependency: "dependency", lollipop: "lollipop" }, oH = /* @__PURE__ */ x((t, e, r, n, i, s) => { - const a = FXt[r]; + const a = zXt[r]; if (!a) { X.warn(`Unknown arrow type: ${r}`); return; } const o = e === "start" ? "Start" : "End"; t.attr(`marker-${e}`, `url(${n}#${i}_${s}-${a}${o})`); -}, "addEdgeMarker"), jk = {}, rs = {}, zXt = /* @__PURE__ */ x(() => { +}, "addEdgeMarker"), jk = {}, rs = {}, VXt = /* @__PURE__ */ x(() => { jk = {}, rs = {}; }, "clear"), Age = /* @__PURE__ */ x((t, e) => { const r = be(), n = bn(r.flowchart.htmlLabels), i = e.labelType === "markdown" ? jc( @@ -91024,10 +91095,10 @@ var Lge = /* @__PURE__ */ x((t, e) => { } s.attr("transform", `translate(${a}, ${o})`); } -}, "positionEdgeLabel"), VXt = /* @__PURE__ */ x((t, e) => { +}, "positionEdgeLabel"), UXt = /* @__PURE__ */ x((t, e) => { const r = t.x, n = t.y, i = Math.abs(e.x - r), s = Math.abs(e.y - n), a = t.width / 2, o = t.height / 2; return i >= a || s >= o; -}, "outsideNode"), UXt = /* @__PURE__ */ x((t, e, r) => { +}, "outsideNode"), qXt = /* @__PURE__ */ x((t, e, r) => { X.debug(`intersection calc abc89: outsidePoint: ${JSON.stringify(e)} insidePoint : ${JSON.stringify(r)} @@ -91052,8 +91123,8 @@ var Lge = /* @__PURE__ */ x((t, e) => { X.debug("abc88 cutPathAtIntersect", t, e); let r = [], n = t[0], i = !1; return t.forEach((s) => { - if (!VXt(e, s) && !i) { - const a = UXt(e, n, s); + if (!UXt(e, s) && !i) { + const a = qXt(e, n, s); let o = !1; r.forEach((l) => { o = o || l.x === a.x && l.y === a.y; @@ -91099,12 +91170,12 @@ var Lge = /* @__PURE__ */ x((t, e) => { } const y = t.append("path").attr("d", m(f)).attr("id", r.id).attr("class", " " + v + (r.classes ? " " + r.classes : "")).attr("style", r.style); let b = ""; - (be().flowchart.arrowMarkerAbsolute || be().state.arrowMarkerAbsolute) && (b = window.location.protocol + "//" + window.location.host + window.location.pathname + window.location.search, b = b.replace(/\(/g, "\\("), b = b.replace(/\)/g, "\\)")), BXt(y, r, b, a, i); + (be().flowchart.arrowMarkerAbsolute || be().state.arrowMarkerAbsolute) && (b = window.location.protocol + "//" + window.location.host + window.location.pathname + window.location.search, b = b.replace(/\(/g, "\\("), b = b.replace(/\)/g, "\\)")), FXt(y, r, b, a, i); let w = {}; return l && (w.updatedPath = o), w.originalPath = r.points, w; -}, "insertEdge"), hr = {}, yl = {}, Mge = {}, qXt = /* @__PURE__ */ x(() => { +}, "insertEdge"), hr = {}, yl = {}, Mge = {}, QXt = /* @__PURE__ */ x(() => { yl = {}, Mge = {}, hr = {}; -}, "clear"), Kk = /* @__PURE__ */ x((t, e) => (X.trace("In isDescendant", e, " ", t, " = ", yl[e].includes(t)), !!yl[e].includes(t)), "isDescendant"), QXt = /* @__PURE__ */ x((t, e) => (X.info("Descendants of ", e, " is ", yl[e]), X.info("Edge is ", t), t.v === e || t.w === e ? !1 : yl[e] ? yl[e].includes(t.v) || Kk(t.v, e) || Kk(t.w, e) || yl[e].includes(t.w) : (X.debug("Tilt, ", e, ",not in descendants"), !1)), "edgeInCluster"), Dge = /* @__PURE__ */ x((t, e, r, n) => { +}, "clear"), Kk = /* @__PURE__ */ x((t, e) => (X.trace("In isDescendant", e, " ", t, " = ", yl[e].includes(t)), !!yl[e].includes(t)), "isDescendant"), YXt = /* @__PURE__ */ x((t, e) => (X.info("Descendants of ", e, " is ", yl[e]), X.info("Edge is ", t), t.v === e || t.w === e ? !1 : yl[e] ? yl[e].includes(t.v) || Kk(t.v, e) || Kk(t.w, e) || yl[e].includes(t.w) : (X.debug("Tilt, ", e, ",not in descendants"), !1)), "edgeInCluster"), Dge = /* @__PURE__ */ x((t, e, r, n) => { X.warn( "Copying children of ", t, @@ -91134,7 +91205,7 @@ var Lge = /* @__PURE__ */ x((t, e) => { const u = e.edge(l.v, l.w, l.name); X.info("Edge data", u, n); try { - QXt(l, n) ? (X.info("Copying as ", l.v, l.w, u, l.name), r.setEdge(l.v, l.w, u, l.name), X.info("newGraph edges ", r.edges(), r.edge(r.edges()[0]))) : X.info( + YXt(l, n) ? (X.info("Copying as ", l.v, l.w, u, l.name), r.setEdge(l.v, l.w, u, l.name), X.info("newGraph edges ", r.edges(), r.edge(r.edges()[0]))) : X.info( "Skipping copy of edge ", l.v, "-->", @@ -91167,7 +91238,7 @@ var Lge = /* @__PURE__ */ x((t, e) => { if (i) return X.trace("Found replacement for", t, " => ", i), i; } -}, "findNonClusterChild"), MO = /* @__PURE__ */ x((t) => !hr[t] || !hr[t].externalConnections ? t : hr[t] ? hr[t].id : t, "getAnchorId"), YXt = /* @__PURE__ */ x((t, e) => { +}, "findNonClusterChild"), MO = /* @__PURE__ */ x((t) => !hr[t] || !hr[t].externalConnections ? t : hr[t] ? hr[t].id : t, "getAnchorId"), WXt = /* @__PURE__ */ x((t, e) => { if (!t || e > 10) { X.debug("Opting out, no graph "); return; @@ -91315,7 +91386,7 @@ var Lge = /* @__PURE__ */ x((t, e) => { const i = t.children(n), s = Pge(t, i); r = [...r, ...s]; }), r; -}, "sorter"), WXt = /* @__PURE__ */ x((t) => Pge(t, t.children()), "sortNodesByHierarchy"), GXt = /* @__PURE__ */ x((t, e) => { +}, "sorter"), GXt = /* @__PURE__ */ x((t) => Pge(t, t.children()), "sortNodesByHierarchy"), HXt = /* @__PURE__ */ x((t, e) => { X.info("Creating subgraph rect for ", e.id, e); const r = be(), n = t.insert("g").attr("class", "cluster" + (e.class ? " " + e.class : "")).attr("id", e.id), i = n.insert("rect", ":first-child"), s = bn(r.flowchart.htmlLabels), a = n.insert("g").attr("class", "cluster-label"), o = e.labelType === "markdown" ? jc(a, e.labelText, { style: e.labelStyle, useHtmlLabels: s }, r) : a.node().appendChild(_a(e.labelText, e.labelStyle, void 0, !0)); let l = o.getBBox(); @@ -91337,14 +91408,14 @@ var Lge = /* @__PURE__ */ x((t, e) => { return e.width = p.width, e.height = p.height, e.intersect = function(g) { return Lx(e, g); }, n; -}, "rect"), HXt = /* @__PURE__ */ x((t, e) => { +}, "rect"), XXt = /* @__PURE__ */ x((t, e) => { const r = t.insert("g").attr("class", "note-cluster").attr("id", e.id), n = r.insert("rect", ":first-child"), i = 0 * e.padding, s = i / 2; n.attr("rx", e.rx).attr("ry", e.ry).attr("x", e.x - e.width / 2 - s).attr("y", e.y - e.height / 2 - s).attr("width", e.width + i).attr("height", e.height + i).attr("fill", "none"); const a = n.node().getBBox(); return e.width = a.width, e.height = a.height, e.intersect = function(o) { return Lx(e, o); }, r; -}, "noteGroup"), XXt = /* @__PURE__ */ x((t, e) => { +}, "noteGroup"), ZXt = /* @__PURE__ */ x((t, e) => { const r = be(), n = t.insert("g").attr("class", e.classes).attr("id", e.id), i = n.insert("rect", ":first-child"), s = n.insert("g").attr("class", "cluster-label"), a = n.append("rect"), o = s.node().appendChild(_a(e.labelText, e.labelStyle, void 0, !0)); let l = o.getBBox(); if (bn(r.flowchart.htmlLabels)) { @@ -91363,18 +91434,18 @@ var Lge = /* @__PURE__ */ x((t, e) => { return e.height = p.height, e.intersect = function(g) { return Lx(e, g); }, n; -}, "roundedWithTitle"), ZXt = /* @__PURE__ */ x((t, e) => { +}, "roundedWithTitle"), jXt = /* @__PURE__ */ x((t, e) => { const r = t.insert("g").attr("class", e.classes).attr("id", e.id), n = r.insert("rect", ":first-child"), i = 0 * e.padding, s = i / 2; n.attr("class", "divider").attr("x", e.x - e.width / 2 - s).attr("y", e.y - e.height / 2).attr("width", e.width + i).attr("height", e.height + i); const a = n.node().getBBox(); return e.width = a.width, e.height = a.height, e.diff = -e.padding / 2, e.intersect = function(o) { return Lx(e, o); }, r; -}, "divider"), jXt = { rect: GXt, roundedWithTitle: XXt, noteGroup: HXt, divider: ZXt }, $ge = {}, KXt = /* @__PURE__ */ x((t, e) => { +}, "divider"), KXt = { rect: HXt, roundedWithTitle: ZXt, noteGroup: XXt, divider: jXt }, $ge = {}, JXt = /* @__PURE__ */ x((t, e) => { X.trace("Inserting cluster"); const r = e.shape || "rect"; - $ge[e.id] = jXt[r](t, e); -}, "insertCluster"), JXt = /* @__PURE__ */ x(() => { + $ge[e.id] = KXt[r](t, e); +}, "insertCluster"), eZt = /* @__PURE__ */ x(() => { $ge = {}; }, "clear"), Bge = /* @__PURE__ */ x(async (t, e, r, n, i, s) => { X.info("Graph in recursive render: XXX", di(e), i); @@ -91406,7 +91477,7 @@ var Lge = /* @__PURE__ */ x((t, e) => { e.node(g), s ), w = b.elem; - Fn(m, w), m.diff = b.diff || 0, X.info("Node bounds (abc123)", g, m, m.width, m.x, m.y), IPt(w, m), X.warn("Recursive render complete ", w, m); + Fn(m, w), m.diff = b.diff || 0, X.info("Node bounds (abc123)", g, m, m.width, m.x, m.y), PPt(w, m), X.warn("Recursive render complete ", w, m); } else e.children(g).length > 0 ? (X.info("Cluster - the non recursive path XXX", g, m.id, m, e), X.info(F2(m.id, e)), hr[m.id] = { id: F2(m.id, e), node: m }) : (X.info("Node - the non recursive path", g, m.id, m), await aI(f, e.node(g), a)); }) @@ -91418,7 +91489,7 @@ var Lge = /* @__PURE__ */ x((t, e) => { }), X.info("Graph before layout:", JSON.stringify(di(e))), X.info("#############################################"), X.info("### Layout ###"), X.info("#############################################"), X.info(e), sm(e), X.info("Graph after layout:", JSON.stringify(di(e))); let d = 0; const { subGraphTitleTotalMargin: p } = F0(s); - return WXt(e).forEach(function(g) { + return GXt(e).forEach(function(g) { const m = e.node(g); X.info("Position " + g + ": " + JSON.stringify(e.node(g))), X.info( "Position " + g + ": (" + m.x, @@ -91427,7 +91498,7 @@ var Lge = /* @__PURE__ */ x((t, e) => { m.width, " height: ", m.height - ), m != null && m.clusterNode ? (m.y += p, PL(m)) : e.children(g).length > 0 ? (m.height += p, KXt(l, m), hr[m.id].node = m) : (m.y += p / 2, PL(m)); + ), m != null && m.clusterNode ? (m.y += p, PL(m)) : e.children(g).length > 0 ? (m.height += p, JXt(l, m), hr[m.id].node = m) : (m.y += p / 2, PL(m)); }), e.edges().forEach(function(g) { const m = e.edge(g); X.info("Edge " + g.v + " -> " + g.w + ": " + JSON.stringify(m), m), m.points.forEach((y) => y.y += p / 2); @@ -91437,8 +91508,8 @@ var Lge = /* @__PURE__ */ x((t, e) => { const m = e.node(g); X.info(g, m.type, m.diff), m.type === "group" && (d = m.diff); }), { elem: o, diff: d }; -}, "recursiveRender"), eZt = /* @__PURE__ */ x(async (t, e, r, n, i) => { - _ge(t, r, n, i), PPt(), zXt(), JXt(), qXt(), X.warn("Graph at first:", JSON.stringify(di(e))), YXt(e), X.warn("Graph after:", JSON.stringify(di(e))); +}, "recursiveRender"), tZt = /* @__PURE__ */ x(async (t, e, r, n, i) => { + _ge(t, r, n, i), $Pt(), VXt(), eZt(), QXt(), X.warn("Graph at first:", JSON.stringify(di(e))), WXt(e), X.warn("Graph after:", JSON.stringify(di(e))); const s = be(); await Bge(t, e, n, i, void 0, s); }, "render"), fP = /* @__PURE__ */ x((t) => at.sanitizeText(t, be()), "sanitizeText"), Y9 = { @@ -91446,7 +91517,7 @@ var Lge = /* @__PURE__ */ x((t, e) => { padding: 5, textHeight: 10, curve: void 0 -}, tZt = /* @__PURE__ */ x(function(t, e, r, n) { +}, rZt = /* @__PURE__ */ x(function(t, e, r, n) { X.info("keys:", [...t.keys()]), X.info(t), t.forEach(function(i) { var o, l, u; const a = { @@ -91483,7 +91554,7 @@ var Lge = /* @__PURE__ */ x((t, e) => { }; e.setNode(s.id, f), i && e.setParent(s.id, i), X.info("setNode", f); }); -}, "addClasses"), rZt = /* @__PURE__ */ x(function(t, e, r, n) { +}, "addClasses"), nZt = /* @__PURE__ */ x(function(t, e, r, n) { X.info(t), t.forEach(function(i, s) { var m, v, y; const a = i, o = "", l = { labelStyle: "", style: "" }, u = a.text, h = 0, f = "note", d = { @@ -91518,7 +91589,7 @@ var Lge = /* @__PURE__ */ x((t, e) => { }; e.setEdge(a.id, a.class, g, p); }); -}, "addNotes"), nZt = /* @__PURE__ */ x(function(t, e) { +}, "addNotes"), iZt = /* @__PURE__ */ x(function(t, e) { const r = be().flowchart; let n = 0; t.forEach(function(i) { @@ -91547,12 +91618,12 @@ var Lge = /* @__PURE__ */ x((t, e) => { i.text = i.title, i.text === void 0 ? i.style !== void 0 && (s.arrowheadStyle = "fill: #333") : (s.arrowheadStyle = "fill: #333", s.labelpos = "c", ((o = (a = be().flowchart) == null ? void 0 : a.htmlLabels) != null ? o : be().htmlLabels) ? (s.labelType = "html", s.label = '' + i.text + "") : (s.labelType = "text", s.label = i.text.replace(at.lineBreakRegex, ` `), i.style === void 0 && (s.style = s.style || "stroke: #333; stroke-width: 1.5px;fill:none"), s.labelStyle = s.labelStyle.replace("color:", "fill:"))), e.setEdge(i.id1, i.id2, s, n); }); -}, "addRelations"), iZt = /* @__PURE__ */ x(function(t) { +}, "addRelations"), sZt = /* @__PURE__ */ x(function(t) { Y9 = { ...Y9, ...t }; -}, "setConf"), sZt = /* @__PURE__ */ x(async function(t, e, r, n) { +}, "setConf"), aZt = /* @__PURE__ */ x(async function(t, e, r, n) { var y, b, w, O; X.info("Drawing class - ", e); const i = (y = be().flowchart) != null ? y : be().class, s = be().securityLevel; @@ -91569,11 +91640,11 @@ var Lge = /* @__PURE__ */ x((t, e) => { }).setDefaultEdgeLabel(function() { return {}; }), u = n.db.getNamespaces(), h = n.db.getClasses(), f = n.db.getRelations(), d = n.db.getNotes(); - X.info(f), tZt(u, l, e, n), Fge(h, l, e, n), nZt(f, l), rZt(d, l, f.length + 1, h); + X.info(f), rZt(u, l, e, n), Fge(h, l, e, n), iZt(f, l), nZt(d, l, f.length + 1, h); let p; s === "sandbox" && (p = et("#i" + e)); const g = et(s === "sandbox" ? p.nodes()[0].contentDocument.body : "body"), m = g.select(`[id="${e}"]`), v = g.select("#" + e + " g"); - if (await eZt( + if (await tZt( v, l, ["aggregation", "extension", "composition", "dependency", "lollipop"], @@ -91611,21 +91682,21 @@ function W9(t) { return e; } x(W9, "getArrowMarker"); -var aZt = { - setConf: iZt, - draw: sZt -}, oZt = { +var oZt = { + setConf: sZt, + draw: aZt +}, lZt = { parser: Oge, db: Zk, - renderer: aZt, + renderer: oZt, styles: Cge, init: /* @__PURE__ */ x((t) => { t.class || (t.class = {}), t.class.arrowMarkerAbsolute = t.arrowMarkerAbsolute, Zk.clear(); }, "init") }; -const lZt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +const cZt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - diagram: oZt + diagram: lZt }, Symbol.toStringTag, { value: "Module" })); var G9 = function() { var t = /* @__PURE__ */ x(function(D, P, F, B) { @@ -92153,16 +92224,16 @@ Expecting ` + ve.join(", ") + ", got '" + (this.terminals_[Ae] || Ae) + "'" : re return x(I, "Parser"), I.prototype = N, N.Parser = I, new I(); }(); G9.parser = G9; -var zge = G9, cZt = "LR", Vge = "TB", Jk = "state", dP = "relation", uZt = "classDef", hZt = "style", fZt = "applyClass", Qx = "default", Uge = "divider", qge = "fill:none", Qge = "fill: #333", Yge = "c", Wge = "text", Gge = "normal", H_ = "rect", X_ = "rectWithTitle", dZt = "stateStart", pZt = "stateEnd", cH = "divider", uH = "roundedWithTitle", gZt = "note", mZt = "noteGroup", Yx = "statediagram", vZt = "state", yZt = `${Yx}-${vZt}`, Hge = "transition", bZt = "note", xZt = "note-edge", wZt = `${Hge} ${xZt}`, OZt = `${Yx}-${bZt}`, kZt = "cluster", SZt = `${Yx}-${kZt}`, TZt = "cluster-alt", CZt = `${Yx}-${TZt}`, Xge = "parent", Zge = "note", EZt = "state", pP = "----", _Zt = `${pP}${Zge}`, hH = `${pP}${Xge}`, jge = /* @__PURE__ */ x((t, e = Vge) => { +var zge = G9, uZt = "LR", Vge = "TB", Jk = "state", dP = "relation", hZt = "classDef", fZt = "style", dZt = "applyClass", Qx = "default", Uge = "divider", qge = "fill:none", Qge = "fill: #333", Yge = "c", Wge = "text", Gge = "normal", H_ = "rect", X_ = "rectWithTitle", pZt = "stateStart", gZt = "stateEnd", cH = "divider", uH = "roundedWithTitle", mZt = "note", vZt = "noteGroup", Yx = "statediagram", yZt = "state", bZt = `${Yx}-${yZt}`, Hge = "transition", xZt = "note", wZt = "note-edge", OZt = `${Hge} ${wZt}`, kZt = `${Yx}-${xZt}`, SZt = "cluster", TZt = `${Yx}-${SZt}`, CZt = "cluster-alt", EZt = `${Yx}-${CZt}`, Xge = "parent", Zge = "note", _Zt = "state", pP = "----", AZt = `${pP}${Zge}`, hH = `${pP}${Xge}`, jge = /* @__PURE__ */ x((t, e = Vge) => { if (!t.doc) return e; let r = e; for (const n of t.doc) n.stmt === "dir" && (r = n.value); return r; -}, "getDir"), AZt = /* @__PURE__ */ x(function(t, e) { +}, "getDir"), LZt = /* @__PURE__ */ x(function(t, e) { return e.db.extract(e.db.getRootDocV2()), e.db.getClasses(); -}, "getClasses"), LZt = /* @__PURE__ */ x(async function(t, e, r, n) { +}, "getClasses"), RZt = /* @__PURE__ */ x(async function(t, e, r, n) { var h, f; X.info("REF0:"), X.info("Drawing state diagram (v2)", e); const { securityLevel: i, state: s, layout: a } = be(); @@ -92176,17 +92247,17 @@ var zge = G9, cZt = "LR", Vge = "TB", Jk = "state", dP = "relation", uZt = "clas (h = s == null ? void 0 : s.titleTopMargin) != null ? h : 25, n.db.getDiagramTitle() ), hfe(l, u, Yx, (f = s == null ? void 0 : s.useMaxWidth) != null ? f : !0); -}, "draw"), RZt = { - getClasses: AZt, - draw: LZt, +}, "draw"), MZt = { + getClasses: LZt, + draw: RZt, getDir: jge }, t5 = /* @__PURE__ */ new Map(), Mh = 0; function r5(t = "", e = 0, r = "", n = pP) { const i = r !== null && r.length > 0 ? `${n}${r}` : ""; - return `${EZt}-${t}${i}-${e}`; + return `${_Zt}-${t}${i}-${e}`; } x(r5, "stateDomId"); -var MZt = /* @__PURE__ */ x((t, e, r, n, i, s, a, o) => { +var DZt = /* @__PURE__ */ x((t, e, r, n, i, s, a, o) => { X.trace("items", e), e.forEach((l) => { switch (l.stmt) { case Jk: @@ -92272,15 +92343,15 @@ var Nv = /* @__PURE__ */ x((t, e, r, n, i, s, a, o) => { const l = e.id, u = r.get(l), h = Kge(u), f = Jge(u); if (X.info("dataFetcher parsedItem", e, u, f), l !== "root") { let g = H_; - e.start === !0 ? g = dZt : e.start === !1 && (g = pZt), e.type !== Qx && (g = e.type), t5.get(l) || t5.set(l, { + e.start === !0 ? g = pZt : e.start === !1 && (g = gZt), e.type !== Qx && (g = e.type), t5.get(l) || t5.set(l, { id: l, shape: g, description: at.sanitizeText(l, be()), - cssClasses: `${h} ${yZt}`, + cssClasses: `${h} ${bZt}`, cssStyles: f }); const m = t5.get(l); - e.description && (Array.isArray(m.description) ? (m.shape = X_, m.description.push(e.description)) : ((d = m.description) == null ? void 0 : d.length) > 0 ? (m.shape = X_, m.description === l ? m.description = [e.description] : m.description = [m.description, e.description]) : (m.shape = H_, m.description = e.description), m.description = at.sanitizeTextOrArray(m.description, be())), ((p = m.description) == null ? void 0 : p.length) === 1 && m.shape === X_ && (m.type === "group" ? m.shape = uH : m.shape = H_), !m.type && e.doc && (X.info("Setting cluster for XCX", l, fH(e)), m.type = "group", m.isGroup = !0, m.dir = fH(e), m.shape = e.type === Uge ? cH : uH, m.cssClasses = `${m.cssClasses} ${SZt} ${s ? CZt : ""}`); + e.description && (Array.isArray(m.description) ? (m.shape = X_, m.description.push(e.description)) : ((d = m.description) == null ? void 0 : d.length) > 0 ? (m.shape = X_, m.description === l ? m.description = [e.description] : m.description = [m.description, e.description]) : (m.shape = H_, m.description = e.description), m.description = at.sanitizeTextOrArray(m.description, be())), ((p = m.description) == null ? void 0 : p.length) === 1 && m.shape === X_ && (m.type === "group" ? m.shape = uH : m.shape = H_), !m.type && e.doc && (X.info("Setting cluster for XCX", l, fH(e)), m.type = "group", m.isGroup = !0, m.dir = fH(e), m.shape = e.type === Uge ? cH : uH, m.cssClasses = `${m.cssClasses} ${TZt} ${s ? EZt : ""}`); const v = { labelStyle: "", shape: m.shape, @@ -92301,12 +92372,12 @@ var Nv = /* @__PURE__ */ x((t, e, r, n, i, s, a, o) => { if (v.shape === cH && (v.label = ""), t && t.id !== "root" && (X.trace("Setting node ", l, " to be child of its parent ", t.id), v.parentId = t.id), v.centerLabel = !0, e.note) { const y = { labelStyle: "", - shape: gZt, + shape: mZt, label: e.note.text, - cssClasses: OZt, + cssClasses: kZt, cssStyles: [], cssCompilesStyles: [], - id: l + _Zt + "-" + Mh, + id: l + AZt + "-" + Mh, domId: r5(l, Mh, Zge), type: m.type, isGroup: m.type === "group", @@ -92315,7 +92386,7 @@ var Nv = /* @__PURE__ */ x((t, e, r, n, i, s, a, o) => { position: e.note.position }, b = l + hH, w = { labelStyle: "", - shape: mZt, + shape: vZt, label: e.note.text, cssClasses: m.cssClasses, cssStyles: [], @@ -92337,7 +92408,7 @@ var Nv = /* @__PURE__ */ x((t, e, r, n, i, s, a, o) => { arrowTypeEnd: "", style: qge, labelStyle: "", - classes: wZt, + classes: OZt, arrowheadStyle: Qge, labelpos: Yge, labelType: Wge, @@ -92347,31 +92418,31 @@ var Nv = /* @__PURE__ */ x((t, e, r, n, i, s, a, o) => { } else Dv(n, v, o); } - e.doc && (X.trace("Adding nodes children "), MZt(e, e.doc, r, n, i, !s, a, o)); -}, "dataFetcher"), DZt = /* @__PURE__ */ x(() => { + e.doc && (X.trace("Adding nodes children "), DZt(e, e.doc, r, n, i, !s, a, o)); +}, "dataFetcher"), NZt = /* @__PURE__ */ x(() => { t5.clear(), Mh = 0; -}, "reset"), gP = "[*]", e1e = "start", t1e = gP, r1e = "end", dH = "color", pH = "fill", NZt = "bgFill", IZt = ","; +}, "reset"), gP = "[*]", e1e = "start", t1e = gP, r1e = "end", dH = "color", pH = "fill", IZt = "bgFill", PZt = ","; function mP() { return /* @__PURE__ */ new Map(); } x(mP, "newClassesList"); -var eS = [], vP = [], n1e = cZt, tS = [], fg = mP(), i1e = /* @__PURE__ */ x(() => ({ +var eS = [], vP = [], n1e = uZt, tS = [], fg = mP(), i1e = /* @__PURE__ */ x(() => ({ relations: [], states: /* @__PURE__ */ new Map(), documents: {} }), "newDoc"), rS = { root: i1e() -}, wa = rS.root, z2 = 0, gH = 0, PZt = { +}, wa = rS.root, z2 = 0, gH = 0, $Zt = { LINE: 0, DOTTED_LINE: 1 -}, $Zt = { +}, BZt = { AGGREGATION: 0, EXTENSION: 1, COMPOSITION: 2, DEPENDENCY: 3 -}, DO = /* @__PURE__ */ x((t) => JSON.parse(JSON.stringify(t)), "clone"), BZt = /* @__PURE__ */ x((t) => { +}, DO = /* @__PURE__ */ x((t) => JSON.parse(JSON.stringify(t)), "clone"), FZt = /* @__PURE__ */ x((t) => { X.info("Setting root doc", t), tS = t; -}, "setRootDoc"), FZt = /* @__PURE__ */ x(() => tS, "getRootDoc"), n5 = /* @__PURE__ */ x((t, e, r) => { +}, "setRootDoc"), zZt = /* @__PURE__ */ x(() => tS, "getRootDoc"), n5 = /* @__PURE__ */ x((t, e, r) => { if (e.stmt === dP) n5(t, e.state1, !0), n5(t, e.state2, !1); else if (e.stmt === Jk && (e.id === "[*]" ? (e.id = r ? t.id + "_start" : t.id + "_end", e.start = r) : e.id = e.id.trim()), e.doc) { @@ -92394,7 +92465,7 @@ var eS = [], vP = [], n1e = cZt, tS = [], fg = mP(), i1e = /* @__PURE__ */ x(() } e.doc.forEach((a) => n5(e, a, !0)); } -}, "docTranslator"), yP = /* @__PURE__ */ x(() => (n5({ id: "root" }, { id: "root", doc: tS }, !0), { id: "root", doc: tS }), "getRootDocV2"), zZt = /* @__PURE__ */ x((t) => { +}, "docTranslator"), yP = /* @__PURE__ */ x(() => (n5({ id: "root" }, { id: "root", doc: tS }, !0), { id: "root", doc: tS }), "getRootDocV2"), VZt = /* @__PURE__ */ x((t) => { let e; t.doc ? e = t.doc : e = t, X.info(e), s1e(!0), X.info("Extract initial document:", e), e.forEach((s) => { switch (X.warn("Statement", s.stmt), s.stmt) { @@ -92413,10 +92484,10 @@ var eS = [], vP = [], n1e = cZt, tS = [], fg = mP(), i1e = /* @__PURE__ */ x(() case dP: u1e(s.state1, s.state2, s.description); break; - case uZt: + case hZt: h1e(s.id.trim(), s.classes); break; - case hZt: + case fZt: { const a = s.id.trim().split(","), o = s.styleClass.split(","); a.forEach((l) => { @@ -92432,13 +92503,13 @@ var eS = [], vP = [], n1e = cZt, tS = [], fg = mP(), i1e = /* @__PURE__ */ x(() }); } break; - case fZt: + case dZt: bP(s.id.trim(), s.styleClass); break; } }); const r = a1e(), i = be().look; - DZt(), Nv(void 0, yP(), r, eS, vP, !0, i, fg), eS.forEach((s) => { + NZt(), Nv(void 0, yP(), r, eS, vP, !0, i, fg), eS.forEach((s) => { if (Array.isArray(s.label)) { if (s.description = s.label.slice(1), s.isGroup && s.description.length > 0) throw new Error( @@ -92462,7 +92533,7 @@ var eS = [], vP = [], n1e = cZt, tS = [], fg = mP(), i1e = /* @__PURE__ */ x(() const u = wa.states.get(l); u.note = i, u.note.text = at.sanitizeText(u.note.text, be()); } - s && (X.info("Setting state classes", l, s), (typeof s == "string" ? [s] : s).forEach((h) => bP(l, h.trim()))), a && (X.info("Setting state styles", l, a), (typeof a == "string" ? [a] : a).forEach((h) => WZt(l, h.trim()))), o && (X.info("Setting state styles", l, a), (typeof o == "string" ? [o] : o).forEach((h) => GZt(l, h.trim()))); + s && (X.info("Setting state classes", l, s), (typeof s == "string" ? [s] : s).forEach((h) => bP(l, h.trim()))), a && (X.info("Setting state styles", l, a), (typeof a == "string" ? [a] : a).forEach((h) => GZt(l, h.trim()))), o && (X.info("Setting state styles", l, a), (typeof o == "string" ? [o] : o).forEach((h) => HZt(l, h.trim()))); }, "addState"), s1e = /* @__PURE__ */ x(function(t) { eS = [], vP = [], rS = { root: i1e() @@ -92471,9 +92542,9 @@ var eS = [], vP = [], n1e = cZt, tS = [], fg = mP(), i1e = /* @__PURE__ */ x(() return wa.states.get(t); }, "getState"), a1e = /* @__PURE__ */ x(function() { return wa.states; -}, "getStates"), VZt = /* @__PURE__ */ x(function() { +}, "getStates"), UZt = /* @__PURE__ */ x(function() { X.info("Documents = ", rS); -}, "logDocuments"), UZt = /* @__PURE__ */ x(function() { +}, "logDocuments"), qZt = /* @__PURE__ */ x(function() { return wa.relations; }, "getRelations"); function nS(t = "") { @@ -92535,20 +92606,20 @@ var u1e = /* @__PURE__ */ x(function(t, e, r) { }, "addRelation"), H9 = /* @__PURE__ */ x(function(t, e) { const r = wa.states.get(t), n = e.startsWith(":") ? e.replace(":", "").trim() : e; r.descriptions.push(at.sanitizeText(n, be())); -}, "addDescription"), qZt = /* @__PURE__ */ x(function(t) { +}, "addDescription"), QZt = /* @__PURE__ */ x(function(t) { return t.substring(0, 1) === ":" ? t.substr(2).trim() : t.trim(); -}, "cleanupLabel"), QZt = /* @__PURE__ */ x(() => (gH++, "divider-id-" + gH), "getDividerId"), h1e = /* @__PURE__ */ x(function(t, e = "") { +}, "cleanupLabel"), YZt = /* @__PURE__ */ x(() => (gH++, "divider-id-" + gH), "getDividerId"), h1e = /* @__PURE__ */ x(function(t, e = "") { fg.has(t) || fg.set(t, { id: t, styles: [], textStyles: [] }); const r = fg.get(t); - e != null && e.split(IZt).forEach((n) => { + e != null && e.split(PZt).forEach((n) => { const i = n.replace(/([^;]*);/, "$1").trim(); if (RegExp(dH).exec(n)) { - const a = i.replace(pH, NZt).replace(dH, pH); + const a = i.replace(pH, IZt).replace(dH, pH); r.textStyles.push(a); } r.styles.push(i); }); -}, "addStyleClass"), YZt = /* @__PURE__ */ x(function() { +}, "addStyleClass"), WZt = /* @__PURE__ */ x(function() { return fg; }, "getClasses"), bP = /* @__PURE__ */ x(function(t, e) { t.split(",").forEach(function(r) { @@ -92559,39 +92630,39 @@ var u1e = /* @__PURE__ */ x(function(t, e, r) { } n.classes.push(e); }); -}, "setCssClass"), WZt = /* @__PURE__ */ x(function(t, e) { +}, "setCssClass"), GZt = /* @__PURE__ */ x(function(t, e) { const r = T0(t); r !== void 0 && r.styles.push(e); -}, "setStyle"), GZt = /* @__PURE__ */ x(function(t, e) { +}, "setStyle"), HZt = /* @__PURE__ */ x(function(t, e) { const r = T0(t); r !== void 0 && r.textStyles.push(e); -}, "setTextStyle"), HZt = /* @__PURE__ */ x(() => n1e, "getDirection"), XZt = /* @__PURE__ */ x((t) => { +}, "setTextStyle"), XZt = /* @__PURE__ */ x(() => n1e, "getDirection"), ZZt = /* @__PURE__ */ x((t) => { n1e = t; -}, "setDirection"), ZZt = /* @__PURE__ */ x((t) => t && t[0] === ":" ? t.substr(1).trim() : t.trim(), "trimColon"), jZt = /* @__PURE__ */ x(() => { +}, "setDirection"), jZt = /* @__PURE__ */ x((t) => t && t[0] === ":" ? t.substr(1).trim() : t.trim(), "trimColon"), KZt = /* @__PURE__ */ x(() => { const t = be(); return { nodes: eS, edges: vP, other: {}, config: t, direction: jge(yP()) }; }, "getData"), vu = { getConfig: /* @__PURE__ */ x(() => be().state, "getConfig"), - getData: jZt, + getData: KZt, addState: Lf, clear: s1e, getState: T0, getStates: a1e, - getRelations: UZt, - getClasses: YZt, - getDirection: HZt, + getRelations: qZt, + getClasses: WZt, + getDirection: XZt, addRelation: u1e, - getDividerId: QZt, - setDirection: XZt, - cleanupLabel: qZt, - lineType: PZt, - relationType: $Zt, - logDocuments: VZt, - getRootDoc: FZt, - setRootDoc: BZt, + getDividerId: YZt, + setDirection: ZZt, + cleanupLabel: QZt, + lineType: $Zt, + relationType: BZt, + logDocuments: UZt, + getRootDoc: zZt, + setRootDoc: FZt, getRootDocV2: yP, - extract: zZt, - trimColon: ZZt, + extract: VZt, + trimColon: jZt, getAccTitle: vs, setAccTitle: Zi, getAccDescription: bs, @@ -92601,7 +92672,7 @@ var u1e = /* @__PURE__ */ x(function(t, e, r) { addDescription: H9, setDiagramTitle: fa, getDiagramTitle: xs -}, KZt = /* @__PURE__ */ x((t) => ` +}, JZt = /* @__PURE__ */ x((t) => ` defs #statediagram-barbEnd { fill: ${t.transitionColor}; stroke: ${t.transitionColor}; @@ -92815,17 +92886,17 @@ g.stateGroup line { font-size: 18px; fill: ${t.textColor}; } -`, "getStyles"), f1e = KZt, xP = {}, JZt = /* @__PURE__ */ x((t, e) => { +`, "getStyles"), f1e = JZt, xP = {}, ejt = /* @__PURE__ */ x((t, e) => { xP[t] = e; -}, "set"), ejt = /* @__PURE__ */ x((t) => xP[t], "get"), d1e = /* @__PURE__ */ x(() => Object.keys(xP), "keys"), tjt = /* @__PURE__ */ x(() => d1e().length, "size"), rjt = { - get: ejt, - set: JZt, +}, "set"), tjt = /* @__PURE__ */ x((t) => xP[t], "get"), d1e = /* @__PURE__ */ x(() => Object.keys(xP), "keys"), rjt = /* @__PURE__ */ x(() => d1e().length, "size"), njt = { + get: tjt, + set: ejt, keys: d1e, - size: tjt -}, njt = /* @__PURE__ */ x((t) => t.append("circle").attr("class", "start-state").attr("r", be().state.sizeUnit).attr("cx", be().state.padding + be().state.sizeUnit).attr("cy", be().state.padding + be().state.sizeUnit), "drawStartState"), ijt = /* @__PURE__ */ x((t) => t.append("line").style("stroke", "grey").style("stroke-dasharray", "3").attr("x1", be().state.textHeight).attr("class", "divider").attr("x2", be().state.textHeight * 2).attr("y1", 0).attr("y2", 0), "drawDivider"), sjt = /* @__PURE__ */ x((t, e) => { + size: rjt +}, ijt = /* @__PURE__ */ x((t) => t.append("circle").attr("class", "start-state").attr("r", be().state.sizeUnit).attr("cx", be().state.padding + be().state.sizeUnit).attr("cy", be().state.padding + be().state.sizeUnit), "drawStartState"), sjt = /* @__PURE__ */ x((t) => t.append("line").style("stroke", "grey").style("stroke-dasharray", "3").attr("x1", be().state.textHeight).attr("class", "divider").attr("x2", be().state.textHeight * 2).attr("y1", 0).attr("y2", 0), "drawDivider"), ajt = /* @__PURE__ */ x((t, e) => { const r = t.append("text").attr("x", 2 * be().state.padding).attr("y", be().state.textHeight + 2 * be().state.padding).attr("font-size", be().state.fontSize).attr("class", "state-title").text(e.id), n = r.node().getBBox(); return t.insert("rect", ":first-child").attr("x", be().state.padding).attr("y", be().state.padding).attr("width", n.width + 2 * be().state.padding).attr("height", n.height + 2 * be().state.padding).attr("rx", be().state.radius), r; -}, "drawSimpleState"), ajt = /* @__PURE__ */ x((t, e) => { +}, "drawSimpleState"), ojt = /* @__PURE__ */ x((t, e) => { const r = /* @__PURE__ */ x(function(d, p, g) { const m = d.append("tspan").attr("x", 2 * be().state.padding).text(p); g || m.attr("dy", be().state.textHeight); @@ -92839,7 +92910,7 @@ g.stateGroup line { }); const u = t.append("line").attr("x1", be().state.padding).attr("y1", be().state.padding + s + be().state.dividerMargin / 2).attr("y2", be().state.padding + s + be().state.dividerMargin / 2).attr("class", "descr-divider"), h = a.node().getBBox(), f = Math.max(h.width, i.width); return u.attr("x2", f + 3 * be().state.padding), t.insert("rect", ":first-child").attr("x", be().state.padding).attr("y", be().state.padding).attr("width", f + 2 * be().state.padding).attr("height", h.height + s + 2 * be().state.padding).attr("rx", be().state.radius), t; -}, "drawDescrState"), ojt = /* @__PURE__ */ x((t, e, r) => { +}, "drawDescrState"), ljt = /* @__PURE__ */ x((t, e, r) => { const n = be().state.padding, i = 2 * be().state.padding, s = t.node().getBBox(), a = s.width, o = s.x, l = t.append("text").attr("x", 0).attr("y", be().state.titleShift).attr("font-size", be().state.fontSize).attr("class", "state-title").text(e.id), h = l.node().getBBox().width + i; let f = Math.max(h, a); f === a && (f = f + i); @@ -92857,20 +92928,20 @@ g.stateGroup line { "y", be().state.titleShift - be().state.textHeight - be().state.padding ).attr("width", f).attr("height", p.height + 3 + 2 * be().state.textHeight).attr("rx", be().state.radius), t; -}, "addTitleAndBox"), ljt = /* @__PURE__ */ x((t) => (t.append("circle").attr("class", "end-state-outer").attr("r", be().state.sizeUnit + be().state.miniPadding).attr( +}, "addTitleAndBox"), cjt = /* @__PURE__ */ x((t) => (t.append("circle").attr("class", "end-state-outer").attr("r", be().state.sizeUnit + be().state.miniPadding).attr( "cx", be().state.padding + be().state.sizeUnit + be().state.miniPadding ).attr( "cy", be().state.padding + be().state.sizeUnit + be().state.miniPadding -), t.append("circle").attr("class", "end-state-inner").attr("r", be().state.sizeUnit).attr("cx", be().state.padding + be().state.sizeUnit + 2).attr("cy", be().state.padding + be().state.sizeUnit + 2)), "drawEndState"), cjt = /* @__PURE__ */ x((t, e) => { +), t.append("circle").attr("class", "end-state-inner").attr("r", be().state.sizeUnit).attr("cx", be().state.padding + be().state.sizeUnit + 2).attr("cy", be().state.padding + be().state.sizeUnit + 2)), "drawEndState"), ujt = /* @__PURE__ */ x((t, e) => { let r = be().state.forkWidth, n = be().state.forkHeight; if (e.parentId) { let i = r; r = n, n = i; } return t.append("rect").style("stroke", "black").style("fill", "black").attr("width", r).attr("height", n).attr("x", be().state.padding).attr("y", be().state.padding); -}, "drawForkJoinState"), ujt = /* @__PURE__ */ x((t, e, r, n) => { +}, "drawForkJoinState"), hjt = /* @__PURE__ */ x((t, e, r, n) => { let i = 0; const s = n.append("text"); s.style("text-anchor", "start"), s.attr("class", "noteText"); @@ -92890,9 +92961,9 @@ g.stateGroup line { } } return { textWidth: s.node().getBBox().width, textHeight: i }; -}, "_drawLongText"), hjt = /* @__PURE__ */ x((t, e) => { +}, "_drawLongText"), fjt = /* @__PURE__ */ x((t, e) => { e.attr("class", "state-note"); - const r = e.append("rect").attr("x", 0).attr("y", be().state.padding), n = e.append("g"), { textWidth: i, textHeight: s } = ujt(t, 0, 0, n); + const r = e.append("rect").attr("x", 0).attr("y", be().state.padding), n = e.append("g"), { textWidth: i, textHeight: s } = hjt(t, 0, 0, n); return r.attr("height", s + 2 * be().state.noteMargin), r.attr("width", i + be().state.noteMargin * 2), r; }, "drawNote"), mH = /* @__PURE__ */ x(function(t, e) { const r = e.id, n = { @@ -92901,10 +92972,10 @@ g.stateGroup line { width: 0, height: 0 }, i = t.append("g").attr("id", r).attr("class", "stateGroup"); - e.type === "start" && njt(i), e.type === "end" && ljt(i), (e.type === "fork" || e.type === "join") && cjt(i, e), e.type === "note" && hjt(e.note.text, i), e.type === "divider" && ijt(i), e.type === "default" && e.descriptions.length === 0 && sjt(i, e), e.type === "default" && e.descriptions.length > 0 && ajt(i, e); + e.type === "start" && ijt(i), e.type === "end" && cjt(i), (e.type === "fork" || e.type === "join") && ujt(i, e), e.type === "note" && fjt(e.note.text, i), e.type === "divider" && sjt(i), e.type === "default" && e.descriptions.length === 0 && ajt(i, e), e.type === "default" && e.descriptions.length > 0 && ojt(i, e); const s = i.node().getBBox(); - return n.width = s.width + 2 * be().state.padding, n.height = s.height + 2 * be().state.padding, rjt.set(r, n), n; -}, "drawState"), vH = 0, fjt = /* @__PURE__ */ x(function(t, e, r) { + return n.width = s.width + 2 * be().state.padding, n.height = s.height + 2 * be().state.padding, njt.set(r, n), n; +}, "drawState"), vH = 0, djt = /* @__PURE__ */ x(function(t, e, r) { const n = /* @__PURE__ */ x(function(l) { switch (l) { case vu.relationType.AGGREGATION: @@ -92945,10 +93016,10 @@ g.stateGroup line { l.insert("rect", ":first-child").attr("class", "box").attr("x", u - g / 2 - be().state.padding / 2).attr("y", h - v / 2 - be().state.padding / 2 - 3.5).attr("width", g + be().state.padding).attr("height", v + be().state.padding), X.info(y); } vH++; -}, "drawEdge"), to, Z_ = {}, djt = /* @__PURE__ */ x(function() { -}, "setConf"), pjt = /* @__PURE__ */ x(function(t) { +}, "drawEdge"), to, Z_ = {}, pjt = /* @__PURE__ */ x(function() { +}, "setConf"), gjt = /* @__PURE__ */ x(function(t) { t.append("defs").append("marker").attr("id", "dependencyEnd").attr("refX", 19).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 19,7 L9,13 L14,7 L9,1 Z"); -}, "insertMarkers"), gjt = /* @__PURE__ */ x(function(t, e, r, n) { +}, "insertMarkers"), mjt = /* @__PURE__ */ x(function(t, e, r, n) { to = be().state; const i = be().securityLevel; let s; @@ -92956,7 +93027,7 @@ g.stateGroup line { const a = et(i === "sandbox" ? s.nodes()[0].contentDocument.body : "body"), o = i === "sandbox" ? s.nodes()[0].contentDocument : document; X.debug("Rendering diagram " + t); const l = a.select(`[id='${e}']`); - pjt(l); + gjt(l); const u = n.db.getRootDoc(); p1e(u, l, void 0, !1, a, o, n); const h = to.padding, f = l.node().getBBox(), d = f.width + h * 2, p = f.height + h * 2, g = d * 1.75; @@ -92964,7 +93035,7 @@ g.stateGroup line { "viewBox", `${f.x - to.padding} ${f.y - to.padding} ` + d + " " + p ); -}, "draw"), mjt = /* @__PURE__ */ x((t) => t ? t.length * to.fontSizeFactor : 1, "getLabelWidth"), p1e = /* @__PURE__ */ x((t, e, r, n, i, s, a) => { +}, "draw"), vjt = /* @__PURE__ */ x((t) => t ? t.length * to.fontSizeFactor : 1, "getLabelWidth"), p1e = /* @__PURE__ */ x((t, e, r, n, i, s, a) => { const o = new Bi({ compound: !0, multigraph: !0 @@ -93003,7 +93074,7 @@ g.stateGroup line { let O = e.append("g").attr("id", b.id).attr("class", "stateGroup"); w = p1e(b.doc, O, b.id, !n, i, s, a); { - O = ojt(O, b, n); + O = ljt(O, b, n); let S = O.node().getBBox(); w.width = S.width, w.height = S.height + to.padding / 2, Z_[b.id] = { y: to.compositTitleSize }; } @@ -93028,7 +93099,7 @@ g.stateGroup line { y.id2, { relation: y, - width: mjt(y.title), + width: vjt(y.title), height: to.labelHeight * at.getRows(y.title).length, labelpos: "c" }, @@ -93048,7 +93119,7 @@ g.stateGroup line { }); let m = g.getBBox(); o.edges().forEach(function(y) { - y !== void 0 && o.edge(y) !== void 0 && (X.debug("Edge " + y.v + " -> " + y.w + ": " + JSON.stringify(o.edge(y))), fjt(e, o.edge(y), o.edge(y).relation)); + y !== void 0 && o.edge(y) !== void 0 && (X.debug("Edge " + y.v + " -> " + y.w + ": " + JSON.stringify(o.edge(y))), djt(e, o.edge(y), o.edge(y).relation)); }), m = g.getBBox(); const v = { id: r || "root", @@ -93057,34 +93128,34 @@ g.stateGroup line { height: 0 }; return v.width = m.width + 2 * to.padding, v.height = m.height + 2 * to.padding, X.debug("Doc rendered", v, o), v; -}, "renderDoc"), vjt = { - setConf: djt, - draw: gjt -}, yjt = { +}, "renderDoc"), yjt = { + setConf: pjt, + draw: mjt +}, bjt = { parser: zge, db: vu, - renderer: vjt, + renderer: yjt, styles: f1e, init: /* @__PURE__ */ x((t) => { t.state || (t.state = {}), t.state.arrowMarkerAbsolute = t.arrowMarkerAbsolute, vu.clear(); }, "init") }; -const bjt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +const xjt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - diagram: yjt + diagram: bjt }, Symbol.toStringTag, { value: "Module" })); -var xjt = { +var wjt = { parser: zge, db: vu, - renderer: RZt, + renderer: MZt, styles: f1e, init: /* @__PURE__ */ x((t) => { t.state || (t.state = {}), t.state.arrowMarkerAbsolute = t.arrowMarkerAbsolute, vu.clear(); }, "init") }; -const wjt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +const Ojt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - diagram: xjt + diagram: wjt }, Symbol.toStringTag, { value: "Module" })); var X9 = function() { var t = /* @__PURE__ */ x(function(f, d, p, g) { @@ -93422,25 +93493,25 @@ Expecting ` + W.join(", ") + ", got '" + (this.terminals_[M] || M) + "'" : ee = return x(h, "Parser"), h.prototype = l, l.Parser = h, new h(); }(); X9.parser = X9; -var Ojt = X9, k1 = "", wP = [], V2 = [], U2 = [], kjt = /* @__PURE__ */ x(function() { +var kjt = X9, k1 = "", wP = [], V2 = [], U2 = [], Sjt = /* @__PURE__ */ x(function() { wP.length = 0, V2.length = 0, k1 = "", U2.length = 0, Xi(); -}, "clear"), Sjt = /* @__PURE__ */ x(function(t) { +}, "clear"), Tjt = /* @__PURE__ */ x(function(t) { k1 = t, wP.push(t); -}, "addSection"), Tjt = /* @__PURE__ */ x(function() { +}, "addSection"), Cjt = /* @__PURE__ */ x(function() { return wP; -}, "getSections"), Cjt = /* @__PURE__ */ x(function() { +}, "getSections"), Ejt = /* @__PURE__ */ x(function() { let t = yH(); const e = 100; let r = 0; for (; !t && r < e; ) t = yH(), r++; return V2.push(...U2), V2; -}, "getTasks"), Ejt = /* @__PURE__ */ x(function() { +}, "getTasks"), _jt = /* @__PURE__ */ x(function() { const t = []; return V2.forEach((r) => { r.people && t.push(...r.people); }), [...new Set(t)].sort(); -}, "updateActors"), _jt = /* @__PURE__ */ x(function(t, e) { +}, "updateActors"), Ajt = /* @__PURE__ */ x(function(t, e) { const r = e.substr(1).split(":"); let n = 0, i = []; r.length === 1 ? (n = Number(r[0]), i = []) : (n = Number(r[0]), i = r[1].split(",")); @@ -93452,7 +93523,7 @@ var Ojt = X9, k1 = "", wP = [], V2 = [], U2 = [], kjt = /* @__PURE__ */ x(functi score: n }; U2.push(a); -}, "addTask"), Ajt = /* @__PURE__ */ x(function(t) { +}, "addTask"), Ljt = /* @__PURE__ */ x(function(t) { const e = { section: k1, type: k1, @@ -93469,24 +93540,24 @@ var Ojt = X9, k1 = "", wP = [], V2 = [], U2 = [], kjt = /* @__PURE__ */ x(functi for (const [r, n] of U2.entries()) t(r), e = e && n.processed; return e; -}, "compileTasks"), Ljt = /* @__PURE__ */ x(function() { - return Ejt(); +}, "compileTasks"), Rjt = /* @__PURE__ */ x(function() { + return _jt(); }, "getActors"), bH = { getConfig: /* @__PURE__ */ x(() => be().journey, "getConfig"), - clear: kjt, + clear: Sjt, setDiagramTitle: fa, getDiagramTitle: xs, setAccTitle: Zi, getAccTitle: vs, setAccDescription: ys, getAccDescription: bs, - addSection: Sjt, - getSections: Tjt, - getTasks: Cjt, - addTask: _jt, - addTaskOrg: Ajt, - getActors: Ljt -}, Rjt = /* @__PURE__ */ x((t) => `.label { + addSection: Tjt, + getSections: Cjt, + getTasks: Ejt, + addTask: Ajt, + addTaskOrg: Ljt, + getActors: Rjt +}, Mjt = /* @__PURE__ */ x((t) => `.label { font-family: 'trebuchet ms', verdana, arial, sans-serif; font-family: var(--mermaid-font-family); color: ${t.textColor}; @@ -93619,9 +93690,9 @@ var Ojt = X9, k1 = "", wP = [], V2 = [], U2 = [], kjt = /* @__PURE__ */ x(functi .actor-5 { ${t.actor5 ? `fill: ${t.actor5}` : ""}; } -`, "getStyles"), Mjt = Rjt, OP = /* @__PURE__ */ x(function(t, e) { +`, "getStyles"), Djt = Mjt, OP = /* @__PURE__ */ x(function(t, e) { return iC(t, e); -}, "drawRect"), Djt = /* @__PURE__ */ x(function(t, e) { +}, "drawRect"), Njt = /* @__PURE__ */ x(function(t, e) { const n = t.append("circle").attr("cx", e.cx).attr("cy", e.cy).attr("class", "face").attr("r", 15).attr("stroke-width", 2).attr("overflow", "visible"), i = t.append("g"); i.append("circle").attr("cx", e.cx - 15 / 3).attr("cy", e.cy - 15 / 3).attr("r", 1.5).attr("stroke-width", 2).attr("fill", "#666").attr("stroke", "#666"), i.append("circle").attr("cx", e.cx + 15 / 3).attr("cy", e.cy - 15 / 3).attr("r", 1.5).attr("stroke-width", 2).attr("fill", "#666").attr("stroke", "#666"); function s(l) { @@ -93642,15 +93713,15 @@ var Ojt = X9, k1 = "", wP = [], V2 = [], U2 = [], kjt = /* @__PURE__ */ x(functi const r = t.append("circle"); return r.attr("cx", e.cx), r.attr("cy", e.cy), r.attr("class", "actor-" + e.pos), r.attr("fill", e.fill), r.attr("stroke", e.stroke), r.attr("r", e.r), r.class !== void 0 && r.attr("class", r.class), e.title !== void 0 && r.append("title").text(e.title), r; }, "drawCircle"), m1e = /* @__PURE__ */ x(function(t, e) { - return iIt(t, e); -}, "drawText"), Njt = /* @__PURE__ */ x(function(t, e) { + return sIt(t, e); +}, "drawText"), Ijt = /* @__PURE__ */ x(function(t, e) { function r(i, s, a, o, l) { return i + "," + s + " " + (i + a) + "," + s + " " + (i + a) + "," + (s + o - l) + " " + (i + a - l * 1.2) + "," + (s + o) + " " + i + "," + (s + o); } x(r, "genPoints"); const n = t.append("polygon"); n.attr("points", r(e.x, e.y, 50, 20, 7)), n.attr("class", "labelBox"), e.y = e.y + e.labelMargin, e.x = e.x + 0.5 * e.labelMargin, m1e(t, e); -}, "drawLabel"), Ijt = /* @__PURE__ */ x(function(t, e, r) { +}, "drawLabel"), Pjt = /* @__PURE__ */ x(function(t, e, r) { const n = t.append("g"), i = K0(); i.x = e.x, i.y = e.y, i.fill = e.fill, i.width = r.width * e.taskCount + r.diagramMarginX * (e.taskCount - 1), i.height = r.height, i.class = "journey-section section-type-" + e.num, i.rx = 3, i.ry = 3, OP(n, i), v1e(r)( e.text, @@ -93663,11 +93734,11 @@ var Ojt = X9, k1 = "", wP = [], V2 = [], U2 = [], kjt = /* @__PURE__ */ x(functi r, e.colour ); -}, "drawSection"), xH = -1, Pjt = /* @__PURE__ */ x(function(t, e, r) { +}, "drawSection"), xH = -1, $jt = /* @__PURE__ */ x(function(t, e, r) { const n = e.x + r.width / 2, i = t.append("g"); xH++; const s = 300 + 5 * 30; - i.append("line").attr("id", "task" + xH).attr("x1", n).attr("y1", e.y).attr("x2", n).attr("y2", s).attr("class", "task-line").attr("stroke-width", "1px").attr("stroke-dasharray", "4 2").attr("stroke", "#666"), Djt(i, { + i.append("line").attr("id", "task" + xH).attr("x1", n).attr("y1", e.y).attr("x2", n).attr("y2", s).attr("class", "task-line").attr("stroke-width", "1px").attr("stroke-dasharray", "4 2").attr("stroke", "#666"), Njt(i, { cx: n, cy: 300 + (5 - e.score) * 30, score: e.score @@ -93697,7 +93768,7 @@ var Ojt = X9, k1 = "", wP = [], V2 = [], U2 = [], kjt = /* @__PURE__ */ x(functi r, e.colour ); -}, "drawTask"), $jt = /* @__PURE__ */ x(function(t, e) { +}, "drawTask"), Bjt = /* @__PURE__ */ x(function(t, e) { tfe(t, e); }, "drawBackgroundRect"), v1e = /* @__PURE__ */ function() { function t(i, s, a, o, l, u, h, f) { @@ -93725,18 +93796,18 @@ var Ojt = X9, k1 = "", wP = [], V2 = [], U2 = [], kjt = /* @__PURE__ */ x(functi return x(n, "_setTextAttrs"), function(i) { return i.textPlacement === "fo" ? r : i.textPlacement === "old" ? t : e; }; -}(), Bjt = /* @__PURE__ */ x(function(t) { +}(), Fjt = /* @__PURE__ */ x(function(t) { t.append("defs").append("marker").attr("id", "arrowhead").attr("refX", 5).attr("refY", 2).attr("markerWidth", 6).attr("markerHeight", 4).attr("orient", "auto").append("path").attr("d", "M 0,0 V 4 L6,2 Z"); }, "initGraphics"), q2 = { drawRect: OP, drawCircle: g1e, - drawSection: Ijt, + drawSection: Pjt, drawText: m1e, - drawLabel: Njt, - drawTask: Pjt, - drawBackgroundRect: $jt, - initGraphics: Bjt -}, Fjt = /* @__PURE__ */ x(function(t) { + drawLabel: Ijt, + drawTask: $jt, + drawBackgroundRect: Bjt, + initGraphics: Fjt +}, zjt = /* @__PURE__ */ x(function(t) { Object.keys(t).forEach(function(r) { MC[r] = t[r]; }); @@ -93765,7 +93836,7 @@ function y1e(t) { }); } x(y1e, "drawActorLegend"); -var MC = be().journey, wd = MC.leftMargin, zjt = /* @__PURE__ */ x(function(t, e, r, n) { +var MC = be().journey, wd = MC.leftMargin, Vjt = /* @__PURE__ */ x(function(t, e, r, n) { const i = be().journey, s = be().securityLevel; let a; s === "sandbox" && (a = et("#i" + e)); @@ -93782,7 +93853,7 @@ var MC = be().journey, wd = MC.leftMargin, zjt = /* @__PURE__ */ x(function(t, e color: i.actorColours[d % i.actorColours.length], position: d }, d++; - }), y1e(l), So.insert(0, 0, wd, Object.keys(ku).length * 50), Vjt(l, u, 0); + }), y1e(l), So.insert(0, 0, wd, Object.keys(ku).length * 50), Ujt(l, u, 0); const p = So.getBounds(); h && l.append("text").text(h).attr("x", wd).attr("font-size", "4ex").attr("font-weight", "bold").attr("y", 25); const g = p.stopy - p.starty + 2 * i.diagramMarginY, m = wd + p.stopx + 2 * i.diagramMarginX; @@ -93834,7 +93905,7 @@ var MC = be().journey, wd = MC.leftMargin, zjt = /* @__PURE__ */ x(function(t, e getBounds: /* @__PURE__ */ x(function() { return this.data; }, "getBounds") -}, j_ = MC.sectionFills, wH = MC.sectionColours, Vjt = /* @__PURE__ */ x(function(t, e, r) { +}, j_ = MC.sectionFills, wH = MC.sectionColours, Ujt = /* @__PURE__ */ x(function(t, e, r) { const n = be().journey; let i = ""; const s = n.height * 2 + n.diagramMarginY, a = r + s; @@ -93861,20 +93932,20 @@ var MC = be().journey, wd = MC.leftMargin, zjt = /* @__PURE__ */ x(function(t, e d.x = f * n.taskMargin + f * n.width + wd, d.y = a, d.width = n.diagramMarginX, d.height = n.diagramMarginY, d.colour = u, d.fill = l, d.num = h, d.actors = p, q2.drawTask(t, d, n), So.insert(d.x, d.y, d.x + d.width + n.taskMargin, 300 + 5 * 30); } }, "drawTasks"), OH = { - setConf: Fjt, - draw: zjt -}, Ujt = { - parser: Ojt, + setConf: zjt, + draw: Vjt +}, qjt = { + parser: kjt, db: bH, renderer: OH, - styles: Mjt, + styles: Djt, init: /* @__PURE__ */ x((t) => { OH.setConf(t.journey), bH.clear(); }, "init") }; -const qjt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +const Qjt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - diagram: Ujt + diagram: qjt }, Symbol.toStringTag, { value: "Module" })); var Z9 = function() { var t = /* @__PURE__ */ x(function(d, p, g, m) { @@ -94213,14 +94284,14 @@ Expecting ` + ee.join(", ") + ", got '" + (this.terminals_[I] || I) + "'" : Y = return x(f, "Parser"), f.prototype = u, u.Parser = f, new f(); }(); Z9.parser = Z9; -var Qjt = Z9, b1e = {}; +var Yjt = Z9, b1e = {}; mie(b1e, { addEvent: () => E1e, addSection: () => k1e, addTask: () => C1e, addTaskOrg: () => _1e, clear: () => O1e, - default: () => Yjt, + default: () => Wjt, getCommonDb: () => w1e, getSections: () => S1e, getTasks: () => T1e @@ -94267,7 +94338,7 @@ var S1 = "", x1e = 0, kP = [], sS = [], T1 = [], w1e = /* @__PURE__ */ x(() => v for (const [r, n] of T1.entries()) t(r), e = e && n.processed; return e; -}, "compileTasks"), Yjt = { +}, "compileTasks"), Wjt = { clear: O1e, getCommonDb: w1e, addSection: k1e, @@ -94276,10 +94347,10 @@ var S1 = "", x1e = 0, kP = [], sS = [], T1 = [], w1e = /* @__PURE__ */ x(() => v addTask: C1e, addTaskOrg: _1e, addEvent: E1e -}, Wjt = 12, DC = /* @__PURE__ */ x(function(t, e) { +}, Gjt = 12, DC = /* @__PURE__ */ x(function(t, e) { const r = t.append("rect"); return r.attr("x", e.x), r.attr("y", e.y), r.attr("fill", e.fill), r.attr("stroke", e.stroke), r.attr("width", e.width), r.attr("height", e.height), r.attr("rx", e.rx), r.attr("ry", e.ry), e.class !== void 0 && r.attr("class", e.class), r; -}, "drawRect"), Gjt = /* @__PURE__ */ x(function(t, e) { +}, "drawRect"), Hjt = /* @__PURE__ */ x(function(t, e) { const n = t.append("circle").attr("cx", e.cx).attr("cy", e.cy).attr("class", "face").attr("r", 15).attr("stroke-width", 2).attr("overflow", "visible"), i = t.append("g"); i.append("circle").attr("cx", e.cx - 15 / 3).attr("cy", e.cy - 15 / 3).attr("r", 1.5).attr("stroke-width", 2).attr("fill", "#666").attr("stroke", "#666"), i.append("circle").attr("cx", e.cx + 15 / 3).attr("cy", e.cy - 15 / 3).attr("r", 1.5).attr("stroke-width", 2).attr("fill", "#666").attr("stroke", "#666"); function s(l) { @@ -94296,7 +94367,7 @@ var S1 = "", x1e = 0, kP = [], sS = [], T1 = [], w1e = /* @__PURE__ */ x(() => v l.append("line").attr("class", "mouth").attr("stroke", 2).attr("x1", e.cx - 5).attr("y1", e.cy + 7).attr("x2", e.cx + 5).attr("y2", e.cy + 7).attr("class", "mouth").attr("stroke-width", "1px").attr("stroke", "#666"); } return x(o, "ambivalent"), e.score > 3 ? s(i) : e.score < 3 ? a(i) : o(i), n; -}, "drawFace"), Hjt = /* @__PURE__ */ x(function(t, e) { +}, "drawFace"), Xjt = /* @__PURE__ */ x(function(t, e) { const r = t.append("circle"); return r.attr("cx", e.cx), r.attr("cy", e.cy), r.attr("class", "actor-" + e.pos), r.attr("fill", e.fill), r.attr("stroke", e.stroke), r.attr("r", e.r), r.class !== void 0 && r.attr("class", r.class), e.title !== void 0 && r.append("title").text(e.title), r; }, "drawCircle"), A1e = /* @__PURE__ */ x(function(t, e) { @@ -94304,14 +94375,14 @@ var S1 = "", x1e = 0, kP = [], sS = [], T1 = [], w1e = /* @__PURE__ */ x(() => v n.attr("x", e.x), n.attr("y", e.y), n.attr("class", "legend"), n.style("text-anchor", e.anchor), e.class !== void 0 && n.attr("class", e.class); const i = n.append("tspan"); return i.attr("x", e.x + e.textMargin * 2), i.text(r), n; -}, "drawText"), Xjt = /* @__PURE__ */ x(function(t, e) { +}, "drawText"), Zjt = /* @__PURE__ */ x(function(t, e) { function r(i, s, a, o, l) { return i + "," + s + " " + (i + a) + "," + s + " " + (i + a) + "," + (s + o - l) + " " + (i + a - l * 1.2) + "," + (s + o) + " " + i + "," + (s + o); } x(r, "genPoints"); const n = t.append("polygon"); n.attr("points", r(e.x, e.y, 50, 20, 7)), n.attr("class", "labelBox"), e.y = e.y + e.labelMargin, e.x = e.x + 0.5 * e.labelMargin, A1e(t, e); -}, "drawLabel"), Zjt = /* @__PURE__ */ x(function(t, e, r) { +}, "drawLabel"), jjt = /* @__PURE__ */ x(function(t, e, r) { const n = t.append("g"), i = SP(); i.x = e.x, i.y = e.y, i.fill = e.fill, i.width = r.width, i.height = r.height, i.class = "journey-section section-type-" + e.num, i.rx = 3, i.ry = 3, DC(n, i), L1e(r)( e.text, @@ -94324,11 +94395,11 @@ var S1 = "", x1e = 0, kP = [], sS = [], T1 = [], w1e = /* @__PURE__ */ x(() => v r, e.colour ); -}, "drawSection"), SH = -1, jjt = /* @__PURE__ */ x(function(t, e, r) { +}, "drawSection"), SH = -1, Kjt = /* @__PURE__ */ x(function(t, e, r) { const n = e.x + r.width / 2, i = t.append("g"); SH++; const s = 300 + 5 * 30; - i.append("line").attr("id", "task" + SH).attr("x1", n).attr("y1", e.y).attr("x2", n).attr("y2", s).attr("class", "task-line").attr("stroke-width", "1px").attr("stroke-dasharray", "4 2").attr("stroke", "#666"), Gjt(i, { + i.append("line").attr("id", "task" + SH).attr("x1", n).attr("y1", e.y).attr("x2", n).attr("y2", s).attr("class", "task-line").attr("stroke-width", "1px").attr("stroke-dasharray", "4 2").attr("stroke", "#666"), Hjt(i, { cx: n, cy: 300 + (5 - e.score) * 30, score: e.score @@ -94345,7 +94416,7 @@ var S1 = "", x1e = 0, kP = [], sS = [], T1 = [], w1e = /* @__PURE__ */ x(() => v r, e.colour ); -}, "drawTask"), Kjt = /* @__PURE__ */ x(function(t, e) { +}, "drawTask"), Jjt = /* @__PURE__ */ x(function(t, e) { DC(t, { x: e.startx, y: e.starty, @@ -94354,7 +94425,7 @@ var S1 = "", x1e = 0, kP = [], sS = [], T1 = [], w1e = /* @__PURE__ */ x(() => v fill: e.fill, class: "rect" }).lower(); -}, "drawBackgroundRect"), Jjt = /* @__PURE__ */ x(function() { +}, "drawBackgroundRect"), eKt = /* @__PURE__ */ x(function() { return { x: 0, y: 0, @@ -94402,7 +94473,7 @@ var S1 = "", x1e = 0, kP = [], sS = [], T1 = [], w1e = /* @__PURE__ */ x(() => v return x(n, "_setTextAttrs"), function(i) { return i.textPlacement === "fo" ? r : i.textPlacement === "old" ? t : e; }; -}(), eKt = /* @__PURE__ */ x(function(t) { +}(), tKt = /* @__PURE__ */ x(function(t) { t.append("defs").append("marker").attr("id", "arrowhead").attr("refX", 5).attr("refY", 2).attr("markerWidth", 6).attr("markerHeight", 4).attr("orient", "auto").append("path").attr("d", "M 0,0 V 4 L6,2 Z"); }, "initGraphics"); function TP(t, e) { @@ -94413,38 +94484,38 @@ function TP(t, e) { }); } x(TP, "wrap"); -var tKt = /* @__PURE__ */ x(function(t, e, r, n) { +var rKt = /* @__PURE__ */ x(function(t, e, r, n) { var f; - const i = r % Wjt - 1, s = t.append("g"); + const i = r % Gjt - 1, s = t.append("g"); e.section = i, s.attr( "class", (e.class ? e.class + " " : "") + "timeline-node " + ("section-" + i) ); const a = s.append("g"), o = s.append("g"), u = o.append("text").text(e.descr).attr("dy", "1em").attr("alignment-baseline", "middle").attr("dominant-baseline", "middle").attr("text-anchor", "middle").call(TP, e.width).node().getBBox(), h = (f = n.fontSize) != null && f.replace ? n.fontSize.replace("px", "") : n.fontSize; - return e.height = u.height + h * 1.1 * 0.5 + e.padding, e.height = Math.max(e.height, e.maxHeight), e.width = e.width + 2 * e.padding, o.attr("transform", "translate(" + e.width / 2 + ", " + e.padding / 2 + ")"), nKt(a, e, i, n), e; -}, "drawNode"), rKt = /* @__PURE__ */ x(function(t, e, r) { + return e.height = u.height + h * 1.1 * 0.5 + e.padding, e.height = Math.max(e.height, e.maxHeight), e.width = e.width + 2 * e.padding, o.attr("transform", "translate(" + e.width / 2 + ", " + e.padding / 2 + ")"), iKt(a, e, i, n), e; +}, "drawNode"), nKt = /* @__PURE__ */ x(function(t, e, r) { var o; const n = t.append("g"), s = n.append("text").text(e.descr).attr("dy", "1em").attr("alignment-baseline", "middle").attr("dominant-baseline", "middle").attr("text-anchor", "middle").call(TP, e.width).node().getBBox(), a = (o = r.fontSize) != null && o.replace ? r.fontSize.replace("px", "") : r.fontSize; return n.remove(), s.height + a * 1.1 * 0.5 + e.padding; -}, "getVirtualNodeHeight"), nKt = /* @__PURE__ */ x(function(t, e, r) { +}, "getVirtualNodeHeight"), iKt = /* @__PURE__ */ x(function(t, e, r) { t.append("path").attr("id", "node-" + e.id).attr("class", "node-bkg node-" + e.type).attr( "d", `M0 ${e.height - 5} v${-e.height + 2 * 5} q0,-5 5,-5 h${e.width - 2 * 5} q5,0 5,5 v${e.height - 5} H0 Z` ), t.append("line").attr("class", "node-line-" + r).attr("x1", 0).attr("y1", e.height).attr("x2", e.width).attr("y2", e.height); }, "defaultBkg"), Od = { drawRect: DC, - drawCircle: Hjt, - drawSection: Zjt, + drawCircle: Xjt, + drawSection: jjt, drawText: A1e, - drawLabel: Xjt, - drawTask: jjt, - drawBackgroundRect: Kjt, - getTextObj: Jjt, + drawLabel: Zjt, + drawTask: Kjt, + drawBackgroundRect: Jjt, + getTextObj: eKt, getNoteRect: SP, - initGraphics: eKt, - drawNode: tKt, - getVirtualNodeHeight: rKt -}, iKt = /* @__PURE__ */ x(function(t, e, r, n) { + initGraphics: tKt, + drawNode: rKt, + getVirtualNodeHeight: nKt +}, sKt = /* @__PURE__ */ x(function(t, e, r, n) { var E, L, _, R, $; const i = be(), s = (E = i.leftMargin) != null ? E : 50; X.debug("timeline", n.db); @@ -94557,7 +94628,7 @@ var tKt = /* @__PURE__ */ x(function(t, e, r, n) { if (X.debug("taskHeight after draw", v), g.attr("transform", `translate(${n}, ${i})`), s = Math.max(s, v), d.events) { const y = t.append("g").attr("class", "lineWrapper"); let b = s; - i += 100, b = b + sKt(t, d.events, r, n, i, a), i -= 100, y.append("line").attr("x1", n + 190 / 2).attr("y1", i + s).attr("x2", n + 190 / 2).attr( + i += 100, b = b + aKt(t, d.events, r, n, i, a), i -= 100, y.append("line").attr("x1", n + 190 / 2).attr("y1", i + s).attr("x2", n + 190 / 2).attr( "y2", i + s + (h ? s : u) + l + 120 ).attr("stroke-width", 2).attr("stroke", "black").attr("marker-end", "url(#arrowhead)").attr("stroke-dasharray", "5,5"); @@ -94565,7 +94636,7 @@ var tKt = /* @__PURE__ */ x(function(t, e, r, n) { n = n + 200, h && !((f = a.timeline) != null && f.disableMulticolor) && r++; } i = i - 10; -}, "drawTasks"), sKt = /* @__PURE__ */ x(function(t, e, r, n, i, s) { +}, "drawTasks"), aKt = /* @__PURE__ */ x(function(t, e, r, n, i, s) { let a = 0; const o = i; i = i + 100; @@ -94583,11 +94654,11 @@ var tKt = /* @__PURE__ */ x(function(t, e, r, n) { a = a + d, h.attr("transform", `translate(${n}, ${i})`), i = i + 10 + d; } return i = o, a; -}, "drawEvents"), aKt = { +}, "drawEvents"), oKt = { setConf: /* @__PURE__ */ x(() => { }, "setConf"), - draw: iKt -}, oKt = /* @__PURE__ */ x((t) => { + draw: sKt +}, lKt = /* @__PURE__ */ x((t) => { let e = ""; for (let r = 0; r < t.THEME_COLOR_LIMIT; r++) t["lineColor" + r] = t["lineColor" + r] || t["cScaleInv" + r], B0(t["lineColor" + r]) ? t["lineColor" + r] = Ft(t["lineColor" + r], 20) : t["lineColor" + r] = Yt(t["lineColor" + r], 20); @@ -94628,11 +94699,11 @@ var tKt = /* @__PURE__ */ x(function(t, e, r, n) { `; } return e; -}, "genSections"), lKt = /* @__PURE__ */ x((t) => ` +}, "genSections"), cKt = /* @__PURE__ */ x((t) => ` .edge { stroke-width: 3; } - ${oKt(t)} + ${lKt(t)} .section-root rect, .section-root path, .section-root circle { fill: ${t.git0}; } @@ -94651,15 +94722,15 @@ var tKt = /* @__PURE__ */ x(function(t, e, r, n) { .eventWrapper { filter: brightness(120%); } -`, "getStyles"), cKt = lKt, uKt = { +`, "getStyles"), uKt = cKt, hKt = { db: b1e, - renderer: aKt, - parser: Qjt, - styles: cKt + renderer: oKt, + parser: Yjt, + styles: uKt }; -const hKt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +const fKt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - diagram: uKt + diagram: hKt }, Symbol.toStringTag, { value: "Module" })); function Pi(t) { return Pi = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) { @@ -94692,13 +94763,13 @@ function R1e(t, e, r) { }) : t[e] = r, t; } function ul(t, e) { - return fKt(t) || dKt(t, e) || M1e(t, e) || pKt(); + return dKt(t) || pKt(t, e) || M1e(t, e) || gKt(); } -function fKt(t) { +function dKt(t) { if (Array.isArray(t)) return t; } -function dKt(t, e) { +function pKt(t, e) { var r = t == null ? null : typeof Symbol < "u" && t[Symbol.iterator] || t["@@iterator"]; if (r != null) { var n = [], i = !0, s = !1, a, o; @@ -94735,7 +94806,7 @@ function EH(t, e) { n[r] = t[r]; return n; } -function pKt() { +function gKt() { throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`); } @@ -94789,25 +94860,25 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } var xi = typeof window > "u" ? null : window, _H = xi ? xi.navigator : null; xi && xi.document; -var gKt = Pi(""), N1e = Pi({}), mKt = Pi(function() { -}), vKt = typeof HTMLElement > "u" ? "undefined" : Pi(HTMLElement), Wx = function(e) { +var mKt = Pi(""), N1e = Pi({}), vKt = Pi(function() { +}), yKt = typeof HTMLElement > "u" ? "undefined" : Pi(HTMLElement), Wx = function(e) { return e && e.instanceString && Pn(e.instanceString) ? e.instanceString() : null; }, qt = function(e) { - return e != null && Pi(e) == gKt; + return e != null && Pi(e) == mKt; }, Pn = function(e) { - return e != null && Pi(e) === mKt; + return e != null && Pi(e) === vKt; }, nn = function(e) { return !lo(e) && (Array.isArray ? Array.isArray(e) : e != null && e instanceof Array); }, Ar = function(e) { return e != null && Pi(e) === N1e && !nn(e) && e.constructor === Object; -}, yKt = function(e) { +}, bKt = function(e) { return e != null && Pi(e) === N1e; }, bt = function(e) { return e != null && Pi(e) === Pi(1) && !isNaN(e); -}, bKt = function(e) { +}, xKt = function(e) { return bt(e) && Math.floor(e) === e; }, aS = function(e) { - if (vKt !== "undefined") + if (yKt !== "undefined") return e != null && e instanceof HTMLElement; }, lo = function(e) { return Gx(e) || I1e(e); @@ -94819,17 +94890,17 @@ var gKt = Pi(""), N1e = Pi({}), mKt = Pi(function() { return Wx(e) === "core"; }, P1e = function(e) { return Wx(e) === "stylesheet"; -}, xKt = function(e) { +}, wKt = function(e) { return Wx(e) === "event"; }, Rf = function(e) { return e == null ? !0 : !!(e === "" || e.match(/^\s+$/)); -}, wKt = function(e) { - return typeof HTMLElement > "u" ? !1 : e instanceof HTMLElement; }, OKt = function(e) { - return Ar(e) && bt(e.x1) && bt(e.x2) && bt(e.y1) && bt(e.y2); + return typeof HTMLElement > "u" ? !1 : e instanceof HTMLElement; }, kKt = function(e) { - return yKt(e) && Pn(e.then); -}, SKt = function() { + return Ar(e) && bt(e.x1) && bt(e.x2) && bt(e.y1) && bt(e.y2); +}, SKt = function(e) { + return bKt(e) && Pn(e.then); +}, TKt = function() { return _H && _H.userAgent.match(/msie|trident|edge/i); }, Q2 = function(e, r) { r || (r = function() { @@ -94860,9 +94931,9 @@ var gKt = Pi(""), N1e = Pi({}), mKt = Pi(function() { return t + "$" + e; }), AH = function(e) { return Rf(e) ? e : e.charAt(0).toUpperCase() + e.substring(1); -}, Ai = "(?:[-+]?(?:(?:\\d+|\\d*\\.\\d+)(?:[Ee][+-]?\\d+)?))", TKt = "rgb[a]?\\((" + Ai + "[%]?)\\s*,\\s*(" + Ai + "[%]?)\\s*,\\s*(" + Ai + "[%]?)(?:\\s*,\\s*(" + Ai + "))?\\)", CKt = "rgb[a]?\\((?:" + Ai + "[%]?)\\s*,\\s*(?:" + Ai + "[%]?)\\s*,\\s*(?:" + Ai + "[%]?)(?:\\s*,\\s*(?:" + Ai + "))?\\)", EKt = "hsl[a]?\\((" + Ai + ")\\s*,\\s*(" + Ai + "[%])\\s*,\\s*(" + Ai + "[%])(?:\\s*,\\s*(" + Ai + "))?\\)", _Kt = "hsl[a]?\\((?:" + Ai + ")\\s*,\\s*(?:" + Ai + "[%])\\s*,\\s*(?:" + Ai + "[%])(?:\\s*,\\s*(?:" + Ai + "))?\\)", AKt = "\\#[0-9a-fA-F]{3}", LKt = "\\#[0-9a-fA-F]{6}", B1e = function(e, r) { +}, Ai = "(?:[-+]?(?:(?:\\d+|\\d*\\.\\d+)(?:[Ee][+-]?\\d+)?))", CKt = "rgb[a]?\\((" + Ai + "[%]?)\\s*,\\s*(" + Ai + "[%]?)\\s*,\\s*(" + Ai + "[%]?)(?:\\s*,\\s*(" + Ai + "))?\\)", EKt = "rgb[a]?\\((?:" + Ai + "[%]?)\\s*,\\s*(?:" + Ai + "[%]?)\\s*,\\s*(?:" + Ai + "[%]?)(?:\\s*,\\s*(?:" + Ai + "))?\\)", _Kt = "hsl[a]?\\((" + Ai + ")\\s*,\\s*(" + Ai + "[%])\\s*,\\s*(" + Ai + "[%])(?:\\s*,\\s*(" + Ai + "))?\\)", AKt = "hsl[a]?\\((?:" + Ai + ")\\s*,\\s*(?:" + Ai + "[%])\\s*,\\s*(?:" + Ai + "[%])(?:\\s*,\\s*(?:" + Ai + "))?\\)", LKt = "\\#[0-9a-fA-F]{3}", RKt = "\\#[0-9a-fA-F]{6}", B1e = function(e, r) { return e < r ? -1 : e > r ? 1 : 0; -}, RKt = function(e, r) { +}, MKt = function(e, r) { return -1 * B1e(e, r); }, Kt = Object.assign != null ? Object.assign.bind(Object) : function(t) { for (var e = arguments, r = 1; r < e.length; r++) { @@ -94874,17 +94945,17 @@ var gKt = Pi(""), N1e = Pi({}), mKt = Pi(function() { } } return t; -}, MKt = function(e) { +}, DKt = function(e) { if (!(!(e.length === 4 || e.length === 7) || e[0] !== "#")) { var r = e.length === 4, n, i, s, a = 16; return r ? (n = parseInt(e[1] + e[1], a), i = parseInt(e[2] + e[2], a), s = parseInt(e[3] + e[3], a)) : (n = parseInt(e[1] + e[2], a), i = parseInt(e[3] + e[4], a), s = parseInt(e[5] + e[6], a)), [n, i, s]; } -}, DKt = function(e) { +}, NKt = function(e) { var r, n, i, s, a, o, l, u; function h(g, m, v) { return v < 0 && (v += 1), v > 1 && (v -= 1), v < 1 / 6 ? g + (m - g) * 6 * v : v < 1 / 2 ? m : v < 2 / 3 ? g + (m - g) * (2 / 3 - v) * 6 : g; } - var f = new RegExp("^" + EKt + "$").exec(e); + var f = new RegExp("^" + _Kt + "$").exec(e); if (f) { if (n = parseInt(f[1]), n < 0 ? n = (360 - -1 * n % 360) % 360 : n > 360 && (n = n % 360), n /= 360, i = parseFloat(f[2]), i < 0 || i > 100 || (i = i / 100, s = parseFloat(f[3]), s < 0 || s > 100) || (s = s / 100, a = f[4], a !== void 0 && (a = parseFloat(a), a < 0 || a > 1))) return; @@ -94897,8 +94968,8 @@ var gKt = Pi(""), N1e = Pi({}), mKt = Pi(function() { r = [o, l, u, a]; } return r; -}, NKt = function(e) { - var r, n = new RegExp("^" + TKt + "$").exec(e); +}, IKt = function(e) { + var r, n = new RegExp("^" + CKt + "$").exec(e); if (n) { r = []; for (var i = [], s = 1; s <= 3; s++) { @@ -94918,11 +94989,11 @@ var gKt = Pi(""), N1e = Pi({}), mKt = Pi(function() { } } return r; -}, IKt = function(e) { - return $Kt[e.toLowerCase()]; }, PKt = function(e) { - return (nn(e) ? e : null) || IKt(e) || MKt(e) || NKt(e) || DKt(e); -}, $Kt = { + return BKt[e.toLowerCase()]; +}, $Kt = function(e) { + return (nn(e) ? e : null) || PKt(e) || DKt(e) || IKt(e) || NKt(e); +}, BKt = { transparent: [0, 0, 0, 0], aliceblue: [240, 248, 255], antiquewhite: [250, 235, 215], @@ -95088,55 +95159,55 @@ var gKt = Pi(""), N1e = Pi({}), mKt = Pi(function() { } return r; }; -function BKt(t) { +function FKt(t) { var e = typeof t; return t != null && (e == "object" || e == "function"); } -var C0 = BKt, Iv = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}; -function FKt(t, e) { +var C0 = FKt, Iv = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}; +function zKt(t, e) { return e = { exports: {} }, t(e, e.exports), e.exports; } -var zKt = typeof Iv == "object" && Iv && Iv.Object === Object && Iv, VKt = zKt, UKt = typeof self == "object" && self && self.Object === Object && self, qKt = VKt || UKt || Function("return this")(), IC = qKt, QKt = function() { +var VKt = typeof Iv == "object" && Iv && Iv.Object === Object && Iv, UKt = VKt, qKt = typeof self == "object" && self && self.Object === Object && self, QKt = UKt || qKt || Function("return this")(), IC = QKt, YKt = function() { return IC.Date.now(); -}, K_ = QKt, YKt = /\s/; -function WKt(t) { - for (var e = t.length; e-- && YKt.test(t.charAt(e)); ) +}, K_ = YKt, WKt = /\s/; +function GKt(t) { + for (var e = t.length; e-- && WKt.test(t.charAt(e)); ) ; return e; } -var GKt = WKt, HKt = /^\s+/; -function XKt(t) { - return t && t.slice(0, GKt(t) + 1).replace(HKt, ""); +var HKt = GKt, XKt = /^\s+/; +function ZKt(t) { + return t && t.slice(0, HKt(t) + 1).replace(XKt, ""); } -var ZKt = XKt, jKt = IC.Symbol, C1 = jKt, V1e = Object.prototype, KKt = V1e.hasOwnProperty, JKt = V1e.toString, iv = C1 ? C1.toStringTag : void 0; -function eJt(t) { - var e = KKt.call(t, iv), r = t[iv]; +var jKt = ZKt, KKt = IC.Symbol, C1 = KKt, V1e = Object.prototype, JKt = V1e.hasOwnProperty, eJt = V1e.toString, iv = C1 ? C1.toStringTag : void 0; +function tJt(t) { + var e = JKt.call(t, iv), r = t[iv]; try { t[iv] = void 0; var n = !0; } catch { } - var i = JKt.call(t); + var i = eJt.call(t); return n && (e ? t[iv] = r : delete t[iv]), i; } -var tJt = eJt, rJt = Object.prototype, nJt = rJt.toString; -function iJt(t) { - return nJt.call(t); +var rJt = tJt, nJt = Object.prototype, iJt = nJt.toString; +function sJt(t) { + return iJt.call(t); } -var sJt = iJt, aJt = "[object Null]", oJt = "[object Undefined]", LH = C1 ? C1.toStringTag : void 0; -function lJt(t) { - return t == null ? t === void 0 ? oJt : aJt : LH && LH in Object(t) ? tJt(t) : sJt(t); -} -var U1e = lJt; +var aJt = sJt, oJt = "[object Null]", lJt = "[object Undefined]", LH = C1 ? C1.toStringTag : void 0; function cJt(t) { + return t == null ? t === void 0 ? lJt : oJt : LH && LH in Object(t) ? rJt(t) : aJt(t); +} +var U1e = cJt; +function uJt(t) { return t != null && typeof t == "object"; } -var uJt = cJt, hJt = "[object Symbol]"; -function fJt(t) { - return typeof t == "symbol" || uJt(t) && U1e(t) == hJt; +var hJt = uJt, fJt = "[object Symbol]"; +function dJt(t) { + return typeof t == "symbol" || hJt(t) && U1e(t) == fJt; } -var Hx = fJt, RH = 0 / 0, dJt = /^[-+]0x[0-9a-f]+$/i, pJt = /^0b[01]+$/i, gJt = /^0o[0-7]+$/i, mJt = parseInt; -function vJt(t) { +var Hx = dJt, RH = 0 / 0, pJt = /^[-+]0x[0-9a-f]+$/i, gJt = /^0b[01]+$/i, mJt = /^0o[0-7]+$/i, vJt = parseInt; +function yJt(t) { if (typeof t == "number") return t; if (Hx(t)) @@ -95147,16 +95218,16 @@ function vJt(t) { } if (typeof t != "string") return t === 0 ? t : +t; - t = ZKt(t); - var r = pJt.test(t); - return r || gJt.test(t) ? mJt(t.slice(2), r ? 2 : 8) : dJt.test(t) ? RH : +t; + t = jKt(t); + var r = gJt.test(t); + return r || mJt.test(t) ? vJt(t.slice(2), r ? 2 : 8) : pJt.test(t) ? RH : +t; } -var MH = vJt, yJt = "Expected a function", bJt = Math.max, xJt = Math.min; -function wJt(t, e, r) { +var MH = yJt, bJt = "Expected a function", xJt = Math.max, wJt = Math.min; +function OJt(t, e, r) { var n, i, s, a, o, l, u = 0, h = !1, f = !1, d = !0; if (typeof t != "function") - throw new TypeError(yJt); - e = MH(e) || 0, C0(r) && (h = !!r.leading, f = "maxWait" in r, s = f ? bJt(MH(r.maxWait) || 0, e) : s, d = "trailing" in r ? !!r.trailing : d); + throw new TypeError(bJt); + e = MH(e) || 0, C0(r) && (h = !!r.leading, f = "maxWait" in r, s = f ? xJt(MH(r.maxWait) || 0, e) : s, d = "trailing" in r ? !!r.trailing : d); function p(C) { var T = n, A = i; return n = i = void 0, u = C, a = t.apply(A, T), a; @@ -95166,7 +95237,7 @@ function wJt(t, e, r) { } function m(C) { var T = C - l, A = C - u, E = e - T; - return f ? xJt(E, s - A) : E; + return f ? wJt(E, s - A) : E; } function v(C) { var T = C - l, A = C - u; @@ -95199,11 +95270,11 @@ function wJt(t, e, r) { } return S.cancel = w, S.flush = O, S; } -var PC = wJt, J_ = xi ? xi.performance : null, q1e = J_ && J_.now ? function() { +var PC = OJt, J_ = xi ? xi.performance : null, q1e = J_ && J_.now ? function() { return J_.now(); } : function() { return Date.now(); -}, OJt = function() { +}, kJt = function() { if (xi) { if (xi.requestAnimationFrame) return function(t) { @@ -95228,7 +95299,7 @@ var PC = wJt, J_ = xi ? xi.performance : null, q1e = J_ && J_.now ? function() { }, 1e3 / 60); }; }(), oS = function(e) { - return OJt(e); + return kJt(e); }, eh = q1e, zp = 9261, Q1e = 65599, Pv = 5381, Y1e = function(e) { for (var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : zp, n = r, i; i = e.next(), !i.done; ) n = n * Q1e + i.value | 0; @@ -95239,13 +95310,13 @@ var PC = wJt, J_ = xi ? xi.performance : null, q1e = J_ && J_.now ? function() { }, W2 = function(e) { var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Pv; return (r << 5) + r + e | 0; -}, kJt = function(e, r) { +}, SJt = function(e, r) { return e * 2097152 + r; }, bh = function(e) { return e[0] * 2097152 + e[1]; }, NO = function(e, r) { return [Y2(e[0], r[0]), W2(e[1], r[1])]; -}, SJt = function(e, r) { +}, TJt = function(e, r) { var n = { value: 0, done: !1 @@ -95266,14 +95337,14 @@ var PC = wJt, J_ = xi ? xi.performance : null, q1e = J_ && J_.now ? function() { }; return Y1e(a, r); }, W1e = function() { - return TJt(arguments); -}, TJt = function(e) { + return CJt(arguments); +}, CJt = function(e) { for (var r, n = 0; n < e.length; n++) { var i = e[n]; n === 0 ? r = E0(i) : r = E0(i, r); } return r; -}, DH = !0, CJt = console.warn != null, EJt = console.trace != null, LP = Number.MAX_SAFE_INTEGER || 9007199254740991, G1e = function() { +}, DH = !0, EJt = console.warn != null, _Jt = console.trace != null, LP = Number.MAX_SAFE_INTEGER || 9007199254740991, G1e = function() { return !0; }, lS = function() { return !1; @@ -95288,19 +95359,19 @@ var PC = wJt, J_ = xi ? xi.performance : null, q1e = J_ && J_.now ? function() { else return DH; }, Qr = function(e) { - !H1e() || (CJt ? console.warn(e) : (console.log(e), EJt && console.trace())); -}, _Jt = function(e) { + !H1e() || (EJt ? console.warn(e) : (console.log(e), _Jt && console.trace())); +}, AJt = function(e) { return Kt({}, e); }, Tc = function(e) { - return e == null ? e : nn(e) ? e.slice() : Ar(e) ? _Jt(e) : e; -}, AJt = function(e) { + return e == null ? e : nn(e) ? e.slice() : Ar(e) ? AJt(e) : e; +}, LJt = function(e) { return e.slice(); }, X1e = function(e, r) { for (r = e = ""; e++ < 36; r += e * 51 & 52 ? (e ^ 15 ? 8 ^ Math.random() * (e ^ 20 ? 16 : 4) : 4).toString(16) : "-") ; return r; -}, LJt = {}, Z1e = function() { - return LJt; +}, RJt = {}, Z1e = function() { + return RJt; }, ws = function(e) { var r = Object.keys(e); return function(n) { @@ -95315,7 +95386,7 @@ var PC = wJt, J_ = xi ? xi.performance : null, q1e = J_ && J_.now ? function() { ; }, MP = function(e) { e.splice(0, e.length); -}, RJt = function(e, r) { +}, MJt = function(e, r) { for (var n = 0; n < r.length; n++) { var i = r[n]; e.push(i); @@ -95324,7 +95395,7 @@ var PC = wJt, J_ = xi ? xi.performance : null, q1e = J_ && J_.now ? function() { return n && (r = $1e(n, r)), e[r]; }, Dh = function(e, r, n, i) { n && (r = $1e(n, r)), e[r] = i; -}, MJt = /* @__PURE__ */ function() { +}, DJt = /* @__PURE__ */ function() { function t() { CP(this, t), this._obj = {}; } @@ -95354,7 +95425,7 @@ var PC = wJt, J_ = xi ? xi.performance : null, q1e = J_ && J_.now ? function() { return this._obj[r]; } }]), t; -}(), Cc = typeof Map < "u" ? Map : MJt, DJt = "undefined", NJt = /* @__PURE__ */ function() { +}(), Cc = typeof Map < "u" ? Map : DJt, NJt = "undefined", IJt = /* @__PURE__ */ function() { function t(e) { if (CP(this, t), this._obj = /* @__PURE__ */ Object.create(null), this.size = 0, e != null) { var r; @@ -95404,7 +95475,7 @@ var PC = wJt, J_ = xi ? xi.performance : null, q1e = J_ && J_.now ? function() { return this.toArray().forEach(r, n); } }]), t; -}(), gm = (typeof Set > "u" ? "undefined" : Pi(Set)) !== DJt ? Set : NJt, $C = function(e, r) { +}(), gm = (typeof Set > "u" ? "undefined" : Pi(Set)) !== NJt ? Set : IJt, $C = function(e, r) { var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0; if (e === void 0 || r === void 0 || !_P(e)) { Yn("An element must have a core reference and parameters set"); @@ -95546,7 +95617,7 @@ var PC = wJt, J_ = xi ? xi.performance : null, q1e = J_ && J_.now ? function() { }; G2.bfs = G2.breadthFirstSearch; G2.dfs = G2.depthFirstSearch; -var IJt = FKt(function(t, e) { +var PJt = zKt(function(t, e) { (function() { var r, n, i, s, a, o, l, u, h, f, d, p, g, m, v; i = Math.floor, f = Math.min, n = function(y, b) { @@ -95656,13 +95727,13 @@ var IJt = FKt(function(t, e) { return r; }); }).call(Iv); -}), Xx = IJt, PJt = ws({ +}), Xx = PJt, $Jt = ws({ root: null, weight: function(e) { return 1; }, directed: !1 -}), $Jt = { +}), BJt = { dijkstra: function(e) { if (!Ar(e)) { var r = arguments; @@ -95672,7 +95743,7 @@ var IJt = FKt(function(t, e) { directed: r[2] }; } - var n = PJt(e), i = n.root, s = n.weight, a = n.directed, o = this, l = s, u = qt(i) ? this.filter(i)[0] : i[0], h = {}, f = {}, d = {}, p = this.byGroup(), g = p.nodes, m = p.edges; + var n = $Jt(e), i = n.root, s = n.weight, a = n.directed, o = this, l = s, u = qt(i) ? this.filter(i)[0] : i[0], h = {}, f = {}, d = {}, p = this.byGroup(), g = p.nodes, m = p.edges; m.unmergeBy(function(N) { return N.isLoop(); }); @@ -95722,7 +95793,7 @@ var IJt = FKt(function(t, e) { } }; } -}, BJt = { +}, FJt = { kruskal: function(e) { e = e || function(w) { return 1; @@ -95743,7 +95814,7 @@ var IJt = FKt(function(t, e) { } return o; } -}, FJt = ws({ +}, zJt = ws({ root: null, goal: null, weight: function(e) { @@ -95753,9 +95824,9 @@ var IJt = FKt(function(t, e) { return 0; }, directed: !1 -}), zJt = { +}), VJt = { aStar: function(e) { - var r = this.cy(), n = FJt(e), i = n.root, s = n.goal, a = n.heuristic, o = n.directed, l = n.weight; + var r = this.cy(), n = zJt(e), i = n.root, s = n.goal, a = n.heuristic, o = n.directed, l = n.weight; i = r.collection(i)[0], s = r.collection(s)[0]; var u = i.id(), h = s.id(), f = {}, d = {}, p = {}, g = new Xx(function(F, B) { return d[F.id()] - d[B.id()]; @@ -95801,14 +95872,14 @@ var IJt = FKt(function(t, e) { steps: T }; } -}, VJt = ws({ +}, UJt = ws({ weight: function(e) { return 1; }, directed: !1 -}), UJt = { +}), qJt = { floydWarshall: function(e) { - for (var r = this.cy(), n = VJt(e), i = n.weight, s = n.directed, a = i, o = this.byGroup(), l = o.nodes, u = o.edges, h = l.length, f = h * h, d = function(Q) { + for (var r = this.cy(), n = UJt(e), i = n.weight, s = n.directed, a = i, o = this.byGroup(), l = o.nodes, u = o.edges, h = l.length, f = h * h, d = function(Q) { return l.indexOf(Q); }, p = function(Q) { return l[Q]; @@ -95855,15 +95926,15 @@ var IJt = FKt(function(t, e) { }; return B; } -}, qJt = ws({ +}, QJt = ws({ weight: function(e) { return 1; }, directed: !1, root: null -}), QJt = { +}), YJt = { bellmanFord: function(e) { - var r = this, n = qJt(e), i = n.weight, s = n.directed, a = n.root, o = i, l = this, u = this.cy(), h = this.byGroup(), f = h.edges, d = h.nodes, p = d.length, g = new Cc(), m = !1, v = []; + var r = this, n = QJt(e), i = n.weight, s = n.directed, a = n.root, o = i, l = this, u = this.cy(), h = this.byGroup(), f = h.edges, d = h.nodes, p = d.length, g = new Cc(), m = !1, v = []; a = u.collection(a)[0], f.unmergeBy(function(ce) { return ce.isLoop(); }); @@ -95931,7 +96002,7 @@ var IJt = FKt(function(t, e) { negativeWeightCycles: v }; } -}, YJt = Math.sqrt(2), WJt = function(e, r, n) { +}, WJt = Math.sqrt(2), GJt = function(e, r, n) { n.length === 0 && Yn("Karger-Stein must be run on a connected (sub)graph"); for (var i = n[e], s = i[1], a = i[2], o = r[s], l = r[a], u = n, h = u.length - 1; h >= 0; h--) { var f = u[h], d = f[1], p = f[2]; @@ -95947,16 +96018,16 @@ var IJt = FKt(function(t, e) { }, eA = function(e, r, n, i) { for (; n > i; ) { var s = Math.floor(Math.random() * r.length); - r = WJt(s, e, r), n--; + r = GJt(s, e, r), n--; } return r; -}, GJt = { +}, HJt = { kargerStein: function() { var e = this, r = this.byGroup(), n = r.nodes, i = r.edges; i.unmergeBy(function(D) { return D.isLoop(); }); - var s = n.length, a = i.length, o = Math.ceil(Math.pow(Math.log(s) / Math.LN2, 2)), l = Math.floor(s / YJt); + var s = n.length, a = i.length, o = Math.ceil(Math.pow(Math.log(s) / Math.LN2, 2)), l = Math.floor(s / WJt); if (s < 2) { Yn("At least 2 nodes are required for Karger-Stein algorithm"); return; @@ -95997,7 +96068,7 @@ var IJt = FKt(function(t, e) { }; return I; } -}, HJt = function(e) { +}, XJt = function(e) { return { x: e.x, y: e.y @@ -96017,25 +96088,25 @@ var IJt = FKt(function(t, e) { x: e[0], y: e[1] }; -}, XJt = function(e) { +}, ZJt = function(e) { for (var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : e.length, i = 1 / 0, s = r; s < n; s++) { var a = e[s]; isFinite(a) && (i = Math.min(a, i)); } return i; -}, ZJt = function(e) { +}, jJt = function(e) { for (var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : e.length, i = -1 / 0, s = r; s < n; s++) { var a = e[s]; isFinite(a) && (i = Math.max(a, i)); } return i; -}, jJt = function(e) { +}, KJt = function(e) { for (var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : e.length, i = 0, s = 0, a = r; a < n; a++) { var o = e[a]; isFinite(o) && (i += o, s++); } return i / s; -}, KJt = function(e) { +}, JJt = function(e) { var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : e.length, i = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : !0, s = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !0, a = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : !0; i ? e = e.slice(r, n) : (n < e.length && e.splice(n, e.length - n), r > 0 && e.splice(0, r)); for (var o = 0, l = e.length - 1; l >= 0; l--) { @@ -96047,7 +96118,7 @@ var IJt = FKt(function(t, e) { }); var h = e.length, f = Math.floor(h / 2); return h % 2 !== 0 ? e[f + 1 + o] : (e[f - 1 + o] + e[f + o]) / 2; -}, JJt = function(e) { +}, eer = function(e) { return Math.PI * e / 180; }, IO = function(e, r) { return Math.atan2(r, e) - Math.PI / 2; @@ -96060,7 +96131,7 @@ var IJt = FKt(function(t, e) { }, cd = function(e, r) { var n = r.x - e.x, i = r.y - e.y; return n * n + i * i; -}, eer = function(e) { +}, ter = function(e) { for (var r = e.length, n = 0, i = 0; i < r; i++) n += e[i]; for (var s = 0; s < r; s++) @@ -96073,7 +96144,7 @@ var IJt = FKt(function(t, e) { x: Vi(e.x, r.x, n.x, i), y: Vi(e.y, r.y, n.y, i) }; -}, ter = function(e, r, n, i) { +}, rer = function(e, r, n, i) { var s = { x: r.x - e.x, y: r.y - e.y @@ -96117,7 +96188,7 @@ var IJt = FKt(function(t, e) { h: e.h }; } -}, rer = function(e) { +}, ner = function(e) { return { x1: e.x1, x2: e.x2, @@ -96126,9 +96197,9 @@ var IJt = FKt(function(t, e) { y2: e.y2, h: e.h }; -}, ner = function(e) { +}, ier = function(e) { e.x1 = 1 / 0, e.y1 = 1 / 0, e.x2 = -1 / 0, e.y2 = -1 / 0, e.w = 0, e.h = 0; -}, ier = function(e, r, n) { +}, ser = function(e, r, n) { return { x1: e.x1 + r, x2: e.x2 + r, @@ -96139,7 +96210,7 @@ var IJt = FKt(function(t, e) { }; }, J1e = function(e, r) { e.x1 = Math.min(e.x1, r.x1), e.x2 = Math.max(e.x2, r.x2), e.w = e.x2 - e.x1, e.y1 = Math.min(e.y1, r.y1), e.y2 = Math.max(e.y2, r.y2), e.h = e.y2 - e.y1; -}, ser = function(e, r, n) { +}, aer = function(e, r, n) { e.x1 = Math.min(e.x1, r), e.x2 = Math.max(e.x2, r), e.w = e.x2 - e.x1, e.y1 = Math.min(e.y1, n), e.y2 = Math.max(e.y2, n), e.h = e.y2 - e.y1; }, i5 = function(e) { var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0; @@ -96161,7 +96232,7 @@ var IJt = FKt(function(t, e) { return !(e.x1 > r.x2 || r.x1 > e.x2 || e.x2 < r.x1 || r.x2 < e.x1 || e.y2 < r.y1 || r.y2 < e.y1 || e.y1 > r.y2 || r.y1 > e.y2); }, E1 = function(e, r, n) { return e.x1 <= r && r <= e.x2 && e.y1 <= n && n <= e.y2; -}, aer = function(e, r) { +}, oer = function(e, r) { return E1(e, r.x, r.y); }, eme = function(e, r) { return E1(e, r.x1, r.y1) && E1(e, r.x2, r.y2); @@ -96211,10 +96282,10 @@ var IJt = FKt(function(t, e) { return [N[0], N[1]]; } return []; -}, oer = function(e, r, n, i, s, a, o) { +}, ler = function(e, r, n, i, s, a, o) { var l = o, u = Math.min(n, s), h = Math.max(n, s), f = Math.min(i, a), d = Math.max(i, a); return u - l <= e && e <= h + l && f - l <= r && r <= d + l; -}, ler = function(e, r, n, i, s, a, o, l, u) { +}, cer = function(e, r, n, i, s, a, o, l, u) { var h = { x1: Math.min(n, o, s) - u, x2: Math.max(n, o, s) + u, @@ -96222,14 +96293,14 @@ var IJt = FKt(function(t, e) { y2: Math.max(i, l, a) + u }; return !(e < h.x1 || e > h.x2 || r < h.y1 || r > h.y2); -}, cer = function(e, r, n, i) { +}, uer = function(e, r, n, i) { n -= i; var s = r * r - 4 * e * n; if (s < 0) return []; var a = Math.sqrt(s), o = 2 * e, l = (-r + a) / o, u = (-r - a) / o; return [l, u]; -}, uer = function(e, r, n, i, s) { +}, her = function(e, r, n, i, s) { var a = 1e-5; e === 0 && (e = a), r /= e, n /= e, i /= e; var o, l, u, h, f, d, p, g; @@ -96242,16 +96313,16 @@ var IJt = FKt(function(t, e) { return; } l = -l, h = l * l * l, h = Math.acos(u / Math.sqrt(h)), g = 2 * Math.sqrt(l), s[0] = -p + g * Math.cos(h / 3), s[2] = -p + g * Math.cos((h + 2 * Math.PI) / 3), s[4] = -p + g * Math.cos((h + 4 * Math.PI) / 3); -}, her = function(e, r, n, i, s, a, o, l) { +}, fer = function(e, r, n, i, s, a, o, l) { var u = 1 * n * n - 4 * n * s + 2 * n * o + 4 * s * s - 4 * s * o + o * o + i * i - 4 * i * a + 2 * i * l + 4 * a * a - 4 * a * l + l * l, h = 1 * 9 * n * s - 3 * n * n - 3 * n * o - 6 * s * s + 3 * s * o + 9 * i * a - 3 * i * i - 3 * i * l - 6 * a * a + 3 * a * l, f = 1 * 3 * n * n - 6 * n * s + n * o - n * e + 2 * s * s + 2 * s * e - o * e + 3 * i * i - 6 * i * a + i * l - i * r + 2 * a * a + 2 * a * r - l * r, d = 1 * n * s - n * n + n * e - s * e + i * a - i * i + i * r - a * r, p = []; - uer(u, h, f, d, p); + her(u, h, f, d, p); for (var g = 1e-7, m = [], v = 0; v < 6; v += 2) Math.abs(p[v + 1]) < g && p[v] >= 0 && p[v] <= 1 && m.push(p[v]); m.push(1), m.push(0); for (var y = -1, b, w, O, S = 0; S < m.length; S++) b = Math.pow(1 - m[S], 2) * n + 2 * (1 - m[S]) * m[S] * s + m[S] * m[S] * o, w = Math.pow(1 - m[S], 2) * i + 2 * (1 - m[S]) * m[S] * a + m[S] * m[S] * l, O = Math.pow(b - e, 2) + Math.pow(w - r, 2), y >= 0 ? O < y && (y = O) : y = O; return y; -}, fer = function(e, r, n, i, s, a) { +}, der = function(e, r, n, i, s, a) { var o = [e - n, r - i], l = [s - n, a - i], u = l[0] * l[0] + l[1] * l[1], h = o[0] * o[0] + o[1] * o[1], f = o[0] * l[0] + o[1] * l[1], d = f * f / u; return f < 0 ? h : d > u ? (e - s) * (e - s) + (r - a) * (r - a) : h - d; }, Ta = function(e, r, n) { @@ -96274,7 +96345,7 @@ var IJt = FKt(function(t, e) { } else m = h; return Ta(e, r, m); -}, der = function(e, r, n, i, s, a, o, l) { +}, per = function(e, r, n, i, s, a, o, l) { for (var u = new Array(n.length * 2), h = 0; h < l.length; h++) { var f = l[h]; u[h * 4 + 0] = f.startX, u[h * 4 + 1] = f.startY, u[h * 4 + 2] = f.stopX, u[h * 4 + 3] = f.stopY; @@ -96297,7 +96368,7 @@ var IJt = FKt(function(t, e) { n[l * 4] = i + d * r, n[l * 4 + 1] = s + p * r, n[l * 4 + 2] = a + d * r, n[l * 4 + 3] = o + p * r; } return n; -}, per = function(e, r, n, i, s, a) { +}, ger = function(e, r, n, i, s, a) { var o = n - e, l = i - r; o /= s, l /= a; var u = Math.sqrt(o * o + l * l), h = u - 1; @@ -96348,7 +96419,7 @@ var IJt = FKt(function(t, e) { for (var v, y, b, w, O = 0; O < p.length / 2; O++) v = p[O * 2], y = p[O * 2 + 1], O < p.length / 2 - 1 ? (b = p[(O + 1) * 2], w = p[(O + 1) * 2 + 1]) : (b = p[0], w = p[1]), h = Qh(e, r, i, s, v, y, b, w), h.length !== 0 && u.push(h[0], h[1]); return u; -}, ger = function(e, r, n, i, s, a, o, l, u) { +}, mer = function(e, r, n, i, s, a, o, l, u) { var h = [], f, d = new Array(n.length * 2); u.forEach(function(b, w) { w === 0 ? (d[d.length - 2] = b.startX, d[d.length - 1] = b.startY) : (d[w * 4 - 2] = b.startX, d[w * 4 - 1] = b.startY), d[w * 4] = b.stopX, d[w * 4 + 1] = b.stopY, f = $v(e, r, i, s, b.cx, b.cy, b.radius), f.length !== 0 && h.push(f[0], f[1]); @@ -96390,7 +96461,7 @@ var IJt = FKt(function(t, e) { return Math.min(e / 10, r / 10, 8); }, IP = function() { return 8; -}, mer = function(e, r, n) { +}, ver = function(e, r, n) { return [e - 2 * r + n, 2 * (r - e), e]; }, K9 = function(e, r) { return { @@ -96398,16 +96469,16 @@ var IJt = FKt(function(t, e) { widthOffset: Math.min(100, 0.25 * e), ctrlPtOffsetPct: 0.05 }; -}, ver = ws({ +}, yer = ws({ dampingFactor: 0.8, precision: 1e-6, iterations: 200, weight: function(e) { return 1; } -}), yer = { +}), ber = { pageRank: function(e) { - for (var r = ver(e), n = r.dampingFactor, i = r.precision, s = r.iterations, a = r.weight, o = this._private.cy, l = this.byGroup(), u = l.nodes, h = l.edges, f = u.length, d = f * f, p = h.length, g = new Array(d), m = new Array(f), v = (1 - n) / f, y = 0; y < f; y++) { + for (var r = yer(e), n = r.dampingFactor, i = r.precision, s = r.iterations, a = r.weight, o = this._private.cy, l = this.byGroup(), u = l.nodes, h = l.edges, f = u.length, d = f * f, p = h.length, g = new Array(d), m = new Array(f), v = (1 - n) / f, y = 0; y < f; y++) { for (var b = 0; b < f; b++) { var w = y * f + b; g[w] = 0; @@ -96442,7 +96513,7 @@ var IJt = FKt(function(t, e) { var Y = W * f + ee; P[W] += g[Y] * D[ee]; } - eer(P), F = D, D = P, P = F; + ter(P), F = D, D = P, P = F; for (var ne = 0, ie = 0; ie < f; ie++) { var U = F[ie] - D[ie]; ne += U * U; @@ -96569,12 +96640,12 @@ var BH = ws({ }; gg.cc = gg.closenessCentrality; gg.ccn = gg.closenessCentralityNormalised = gg.closenessCentralityNormalized; -var ber = ws({ +var xer = ws({ weight: null, directed: !1 }), J9 = { betweennessCentrality: function(e) { - for (var r = ber(e), n = r.directed, i = r.weight, s = i != null, a = this.cy(), o = this.nodes(), l = {}, u = {}, h = 0, f = { + for (var r = xer(e), n = r.directed, i = r.weight, s = i != null, a = this.cy(), o = this.nodes(), l = {}, u = {}, h = 0, f = { set: function(w, O) { u[w] = O, O > h && (h = O); }, @@ -96634,7 +96705,7 @@ var ber = ws({ } }; J9.bc = J9.betweennessCentrality; -var xer = ws({ +var wer = ws({ expandFactor: 2, inflateFactor: 2, multFactor: 1, @@ -96644,13 +96715,13 @@ var xer = ws({ return 1; } ] -}), wer = function(e) { - return xer(e); -}, Oer = function(e, r) { +}), Oer = function(e) { + return wer(e); +}, ker = function(e, r) { for (var n = 0, i = 0; i < r.length; i++) n += r[i](e); return n; -}, ker = function(e, r, n) { +}, Ser = function(e, r, n) { for (var i = 0; i < r; i++) e[i * r + i] = n; }, ime = function(e, r) { @@ -96661,7 +96732,7 @@ var xer = ws({ for (var a = 0; a < r; a++) e[a * r + i] = e[a * r + i] / n; } -}, Ser = function(e, r, n) { +}, Ter = function(e, r, n) { for (var i = new Array(n * n), s = 0; s < n; s++) { for (var a = 0; a < n; a++) i[s * n + a] = 0; @@ -96670,56 +96741,56 @@ var xer = ws({ i[s * n + l] += e[s * n + o] * r[o * n + l]; } return i; -}, Ter = function(e, r, n) { +}, Cer = function(e, r, n) { for (var i = e.slice(0), s = 1; s < n; s++) - e = Ser(e, i, r); + e = Ter(e, i, r); return e; -}, Cer = function(e, r, n) { +}, Eer = function(e, r, n) { for (var i = new Array(r * r), s = 0; s < r * r; s++) i[s] = Math.pow(e[s], n); return ime(i, r), i; -}, Eer = function(e, r, n, i) { +}, _er = function(e, r, n, i) { for (var s = 0; s < n; s++) { var a = Math.round(e[s] * Math.pow(10, i)) / Math.pow(10, i), o = Math.round(r[s] * Math.pow(10, i)) / Math.pow(10, i); if (a !== o) return !1; } return !0; -}, _er = function(e, r, n, i) { +}, Aer = function(e, r, n, i) { for (var s = [], a = 0; a < r; a++) { for (var o = [], l = 0; l < r; l++) Math.round(e[a * r + l] * 1e3) / 1e3 > 0 && o.push(n[l]); o.length !== 0 && s.push(i.collection(o)); } return s; -}, Aer = function(e, r) { +}, Ler = function(e, r) { for (var n = 0; n < e.length; n++) if (!r[n] || e[n].id() !== r[n].id()) return !1; return !0; -}, Ler = function(e) { +}, Rer = function(e) { for (var r = 0; r < e.length; r++) for (var n = 0; n < e.length; n++) - r != n && Aer(e[r], e[n]) && e.splice(n, 1); + r != n && Ler(e[r], e[n]) && e.splice(n, 1); return e; }, FH = function(e) { - for (var r = this.nodes(), n = this.edges(), i = this.cy(), s = wer(e), a = {}, o = 0; o < r.length; o++) + for (var r = this.nodes(), n = this.edges(), i = this.cy(), s = Oer(e), a = {}, o = 0; o < r.length; o++) a[r[o].id()] = o; for (var l = r.length, u = l * l, h = new Array(u), f, d = 0; d < u; d++) h[d] = 0; for (var p = 0; p < n.length; p++) { - var g = n[p], m = a[g.source().id()], v = a[g.target().id()], y = Oer(g, s.attributes); + var g = n[p], m = a[g.source().id()], v = a[g.target().id()], y = ker(g, s.attributes); h[m * l + v] += y, h[v * l + m] += y; } - ker(h, l, s.multFactor), ime(h, l); + Ser(h, l, s.multFactor), ime(h, l); for (var b = !0, w = 0; b && w < s.maxIterations; ) - b = !1, f = Ter(h, l, s.expandFactor), h = Cer(f, l, s.inflateFactor), Eer(h, f, u, 4) || (b = !0), w++; - var O = _er(h, l, r, i); - return O = Ler(O), O; -}, Rer = { + b = !1, f = Cer(h, l, s.expandFactor), h = Eer(f, l, s.inflateFactor), _er(h, f, u, 4) || (b = !0), w++; + var O = Aer(h, l, r, i); + return O = Rer(O), O; +}, Mer = { markovClustering: FH, mcl: FH -}, Mer = function(e) { +}, Der = function(e) { return e; }, sme = function(e, r) { return Math.abs(r - e); @@ -96727,17 +96798,17 @@ var xer = ws({ return e + sme(r, n); }, VH = function(e, r, n) { return e + Math.pow(n - r, 2); -}, Der = function(e) { +}, Ner = function(e) { return Math.sqrt(e); -}, Ner = function(e, r, n) { +}, Ier = function(e, r, n) { return Math.max(e, sme(r, n)); }, sv = function(e, r, n, i, s) { - for (var a = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : Mer, o = i, l, u, h = 0; h < e; h++) + for (var a = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : Der, o = i, l, u, h = 0; h < e; h++) l = r(h), u = n(h), o = s(o, l, u); return a(o); }, _1 = { euclidean: function(e, r, n) { - return e >= 2 ? sv(e, r, n, 0, VH, Der) : sv(e, r, n, 0, zH); + return e >= 2 ? sv(e, r, n, 0, VH, Ner) : sv(e, r, n, 0, zH); }, squaredEuclidean: function(e, r, n) { return sv(e, r, n, 0, VH); @@ -96746,7 +96817,7 @@ var xer = ws({ return sv(e, r, n, 0, zH); }, max: function(e, r, n) { - return sv(e, r, n, -1 / 0, Ner); + return sv(e, r, n, -1 / 0, Ier); } }; _1["squared-euclidean"] = _1.squaredEuclidean; @@ -96755,7 +96826,7 @@ function FC(t, e, r, n, i, s) { var a; return Pn(t) ? a = t : a = _1[t] || _1.euclidean, e === 0 && Pn(t) ? a(i, s) : a(e, r, n, i, s); } -var Ier = ws({ +var Per = ws({ k: 2, m: 2, sensitivityThreshold: 1e-4, @@ -96765,7 +96836,7 @@ var Ier = ws({ testMode: !1, testCentroids: null }), PP = function(e) { - return Ier(e); + return Per(e); }, hS = function(e, r, n, i, s) { var a = s !== "kMedoids", o = a ? function(f) { return n[f]; @@ -96795,9 +96866,9 @@ var Ier = ws({ for (var i = [], s = null, a = 0; a < r.length; a++) s = r[a], n[s.id()] === e && i.push(s); return i; -}, Per = function(e, r, n) { - return Math.abs(r - e) <= n; }, $er = function(e, r, n) { + return Math.abs(r - e) <= n; +}, Ber = function(e, r, n) { for (var i = 0; i < e.length; i++) for (var s = 0; s < e[i].length; s++) { var a = Math.abs(e[i][s] - r[i][s]); @@ -96805,7 +96876,7 @@ var Ier = ws({ return !1; } return !0; -}, Ber = function(e, r, n) { +}, Fer = function(e, r, n) { for (var i = 0; i < n; i++) if (e === r[i]) return !0; @@ -96814,7 +96885,7 @@ var Ier = ws({ var n = new Array(r); if (e.length < 50) for (var i = 0; i < r; i++) { - for (var s = e[Math.floor(Math.random() * e.length)]; Ber(s, n, i); ) + for (var s = e[Math.floor(Math.random() * e.length)]; Fer(s, n, i); ) s = e[Math.floor(Math.random() * e.length)]; n[i] = s; } @@ -96826,7 +96897,7 @@ var Ier = ws({ for (var i = 0, s = 0; s < r.length; s++) i += hS("manhattan", r[s], e, n, "kMedoids"); return i; -}, Fer = function(e) { +}, zer = function(e) { var r = this.cy(), n = this.nodes(), i = null, s = PP(e), a = new Array(s.k), o = {}, l; s.testMode ? typeof s.testCentroids == "number" ? (s.testCentroids, l = rA(n, s.k, s.attributes)) : Pi(s.testCentroids) === "object" ? l = s.testCentroids : l = rA(n, s.k, s.attributes) : l = rA(n, s.k, s.attributes); for (var u = !0, h = 0; u && h < s.maxIterations; ) { @@ -96840,7 +96911,7 @@ var Ier = ws({ y[b] = 0; for (var w = 0; w < p.length; w++) i = p[w], y[b] += s.attributes[b](i); - v[b] = y[b] / p.length, Per(v[b], m[b], s.sensitivityThreshold) || (u = !0); + v[b] = y[b] / p.length, $er(v[b], m[b], s.sensitivityThreshold) || (u = !0); } l[d] = v, a[d] = r.collection(p); } @@ -96848,7 +96919,7 @@ var Ier = ws({ h++; } return a; -}, zer = function(e) { +}, Ver = function(e) { var r = this.cy(), n = this.nodes(), i = null, s = PP(e), a = new Array(s.k), o, l = {}, u, h = new Array(s.k); s.testMode ? typeof s.testCentroids == "number" || (Pi(s.testCentroids) === "object" ? o = s.testCentroids : o = UH(n, s.k)) : o = UH(n, s.k); for (var f = !0, d = 0; f && d < s.maxIterations; ) { @@ -96867,7 +96938,7 @@ var Ier = ws({ d++; } return a; -}, Ver = function(e, r, n, i, s) { +}, Uer = function(e, r, n, i, s) { for (var a, o, l = 0; l < r.length; l++) for (var u = 0; u < e.length; u++) i[l][u] = Math.pow(n[l][u], s.m); @@ -96878,7 +96949,7 @@ var Ier = ws({ a += i[d][h] * s.attributes[f](r[d]), o += i[d][h]; e[h][f] = a / o; } -}, Uer = function(e, r, n, i, s) { +}, qer = function(e, r, n, i, s) { for (var a = 0; a < e.length; a++) r[a] = e[a].slice(); for (var o, l, u, h = 2 / (s.m - 1), f = 0; f < n.length; f++) @@ -96888,7 +96959,7 @@ var Ier = ws({ l = hS(s.distance, i[d], n[f], s.attributes, "cmeans"), u = hS(s.distance, i[d], n[p], s.attributes, "cmeans"), o += Math.pow(l / u, h); e[d][f] = 1 / o; } -}, qer = function(e, r, n, i) { +}, Qer = function(e, r, n, i) { for (var s = new Array(n.k), a = 0; a < s.length; a++) s[a] = []; for (var o, l, u = 0; u < r.length; u++) { @@ -96921,17 +96992,17 @@ var Ier = ws({ for (var y = 0; y < n.length; y++) u[y] = new Array(i.k); for (var b = !0, w = 0; b && w < i.maxIterations; ) - b = !1, Ver(a, n, o, u, i), Uer(o, l, a, n, i), $er(o, l, i.sensitivityThreshold) || (b = !0), w++; - return s = qer(n, o, i, r), { + b = !1, Uer(a, n, o, u, i), qer(o, l, a, n, i), Ber(o, l, i.sensitivityThreshold) || (b = !0), w++; + return s = Qer(n, o, i, r), { clusters: s, degreeOfMembership: o }; -}, Qer = { - kMeans: Fer, - kMedoids: zer, +}, Yer = { + kMeans: zer, + kMedoids: Ver, fuzzyCMeans: QH, fcm: QH -}, Yer = ws({ +}, Wer = ws({ distance: "euclidean", linkage: "min", mode: "threshold", @@ -96939,11 +97010,11 @@ var Ier = ws({ addDendrogram: !1, dendrogramDepth: 0, attributes: [] -}), Wer = { +}), Ger = { single: "min", complete: "max" -}, Ger = function(e) { - var r = Yer(e), n = Wer[r.linkage]; +}, Her = function(e) { + var r = Wer(e), n = Ger[r.linkage]; return n != null && (r.linkage = n), r; }, YH = function(e, r, n, i, s) { for (var a = 0, o = 1 / 0, l, u = s.attributes, h = function(E, L) { @@ -96985,7 +97056,7 @@ var Ier = ws({ return g.key = m.key = g.index = m.index = null, !0; }, $O = function t(e, r, n) { !e || (e.value ? r.push(e.value) : (e.left && t(e.left, r), e.right && t(e.right, r))); -}, Her = function t(e, r) { +}, Xer = function t(e, r) { if (!e) return ""; if (e.left && e.right) { @@ -97010,13 +97081,13 @@ var Ier = ws({ }), s.id(); } else if (e.value) return e.value.id(); -}, Xer = function t(e, r, n) { +}, Zer = function t(e, r, n) { if (!e) return []; var i = [], s = [], a = []; return r === 0 ? (e.left && $O(e.left, i), e.right && $O(e.right, s), a = i.concat(s), [n.collection(a)]) : r === 1 ? e.value ? [n.collection(e.value)] : (e.left && $O(e.left, i), e.right && $O(e.right, s), [n.collection(i), n.collection(s)]) : e.value ? [n.collection(e.value)] : (e.left && (i = t(e.left, r - 1, n)), e.right && (s = t(e.right, r - 1, n)), i.concat(s)); }, WH = function(e) { - for (var r = this.cy(), n = this.nodes(), i = Ger(e), s = i.attributes, a = function(w, O) { + for (var r = this.cy(), n = this.nodes(), i = Her(e), s = i.attributes, a = function(w, O) { return FC(i.distance, s.length, function(S) { return s[S](w); }, function(S) { @@ -97038,20 +97109,20 @@ var Ier = ws({ for (var v = YH(o, h, l, u, i); v; ) v = YH(o, h, l, u, i); var y; - return i.mode === "dendrogram" ? (y = Xer(o[0], i.dendrogramDepth, r), i.addDendrogram && Her(o[0], r)) : (y = new Array(o.length), o.forEach(function(b, w) { + return i.mode === "dendrogram" ? (y = Zer(o[0], i.dendrogramDepth, r), i.addDendrogram && Xer(o[0], r)) : (y = new Array(o.length), o.forEach(function(b, w) { b.key = b.index = null, y[w] = r.collection(b.value); })), y; -}, Zer = { +}, jer = { hierarchicalClustering: WH, hca: WH -}, jer = ws({ +}, Ker = ws({ distance: "euclidean", preference: "median", damping: 0.8, maxIterations: 1e3, minIterations: 100, attributes: [] -}), Ker = function(e) { +}), Jer = function(e) { var r = e.damping, n = e.preference; 0.5 <= r && r < 1 || Yn("Damping must range on [0.5, 1). Got: ".concat(r)); var i = ["median", "mean", "min", "max"]; @@ -97059,8 +97130,8 @@ var Ier = ws({ return s === n; }) || bt(n) || Yn("Preference must be one of [".concat(i.map(function(s) { return "'".concat(s, "'"); - }).join(", "), "] or a number. Got: ").concat(n)), jer(e); -}, Jer = function(e, r, n, i) { + }).join(", "), "] or a number. Got: ").concat(n)), Ker(e); +}, etr = function(e, r, n, i) { var s = function(o, l) { return i[l](o); }; @@ -97069,10 +97140,10 @@ var Ier = ws({ }, function(a) { return s(n, a); }, r, n); -}, etr = function(e, r) { +}, ttr = function(e, r) { var n = null; - return r === "median" ? n = KJt(e) : r === "mean" ? n = jJt(e) : r === "min" ? n = XJt(e) : r === "max" ? n = ZJt(e) : n = r, n; -}, ttr = function(e, r, n) { + return r === "median" ? n = JJt(e) : r === "mean" ? n = KJt(e) : r === "min" ? n = ZJt(e) : r === "max" ? n = jJt(e) : n = r, n; +}, rtr = function(e, r, n) { for (var i = [], s = 0; s < e; s++) r[s * e + s] + n[s * e + s] > 0 && i.push(s); return i; @@ -97087,7 +97158,7 @@ var Ier = ws({ for (var h = 0; h < n.length; h++) i[n[h]] = n[h]; return i; -}, rtr = function(e, r, n) { +}, ntr = function(e, r, n) { for (var i = GH(e, r, n), s = 0; s < n.length; s++) { for (var a = [], o = 0; o < i.length; o++) i[o] === n[s] && a.push(o); @@ -97100,7 +97171,7 @@ var Ier = ws({ } return i = GH(e, r, n), i; }, HH = function(e) { - for (var r = this.cy(), n = this.nodes(), i = Ker(e), s = {}, a = 0; a < n.length; a++) + for (var r = this.cy(), n = this.nodes(), i = Jer(e), s = {}, a = 0; a < n.length; a++) s[n[a].id()] = a; var o, l, u, h, f, d; o = n.length, l = o * o, u = new Array(l); @@ -97108,8 +97179,8 @@ var Ier = ws({ u[p] = -1 / 0; for (var g = 0; g < o; g++) for (var m = 0; m < o; m++) - g !== m && (u[g * o + m] = Jer(i.distance, n[g], n[m], i.attributes)); - h = etr(u, i.preference); + g !== m && (u[g * o + m] = etr(i.distance, n[g], n[m], i.attributes)); + h = ttr(u, i.preference); for (var v = 0; v < o; v++) u[v * o + v] = h; f = new Array(l); @@ -97154,7 +97225,7 @@ var Ier = ws({ break; } } - for (var ne = ttr(o, f, d), ie = rtr(o, u, ne), U = {}, Z = 0; Z < ne.length; Z++) + for (var ne = rtr(o, f, d), ie = ntr(o, u, ne), U = {}, Z = 0; Z < ne.length; Z++) U[ne[Z]] = []; for (var G = 0; G < n.length; G++) { var j = s[n[G].id()], ae = ie[j]; @@ -97163,13 +97234,13 @@ var Ier = ws({ for (var se = new Array(ne.length), K = 0; K < ne.length; K++) se[K] = r.collection(U[ne[K]]); return se; -}, ntr = { +}, itr = { affinityPropagation: HH, ap: HH -}, itr = ws({ +}, str = ws({ root: void 0, directed: !1 -}), str = { +}), atr = { hierholzer: function(e) { if (!Ar(e)) { var r = arguments; @@ -97178,7 +97249,7 @@ var Ier = ws({ directed: r[1] }; } - var n = itr(e), i = n.root, s = n.directed, a = this, o = !1, l, u, h; + var n = str(e), i = n.root, s = n.directed, a = this, o = !1, l, u, h; i && (h = qt(i) ? this.filter(i)[0].id() : i[0].id()); var f = {}, d = {}; s ? a.forEach(function(b) { @@ -97283,7 +97354,7 @@ var Ier = ws({ cut: e.spawn(h), components: s }; -}, atr = { +}, otr = { hopcroftTarjanBiconnected: BO, htbc: BO, htb: BO, @@ -97318,13 +97389,13 @@ var Ier = ws({ cut: a, components: i }; -}, otr = { +}, ltr = { tarjanStronglyConnected: FO, tsc: FO, tscc: FO, tarjanStronglyConnectedComponents: FO }, lme = {}; -[G2, $Jt, BJt, zJt, UJt, QJt, GJt, yer, pg, gg, J9, Rer, Qer, Zer, ntr, str, atr, otr].forEach(function(t) { +[G2, BJt, FJt, VJt, qJt, YJt, HJt, ber, pg, gg, J9, Mer, Yer, jer, itr, atr, otr, ltr].forEach(function(t) { Kt(lme, t); }); /*! @@ -97377,10 +97448,10 @@ var XH = function(e, r, n, i) { r.reject(a); return; } - ltr(r, s); + ctr(r, s); } }; -}, ltr = function t(e, r) { +}, ctr = function t(e, r) { if (e === r || e.proxy === r) { e.reject(new TypeError("cannot resolve promise with itself")); return; @@ -97548,7 +97619,7 @@ Kt(L0, { L0.complete = L0.completed; L0.run = L0.play; L0.running = L0.playing; -var ctr = { +var utr = { animated: function() { return function() { var r = this, n = r.length !== void 0, i = n ? r : [r], s = this._private.cy || this; @@ -97666,32 +97737,32 @@ var ctr = { return o.notify("draw"), this; }; } -}, utr = Array.isArray, zC = utr, htr = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, ftr = /^\w*$/; -function dtr(t, e) { +}, htr = Array.isArray, zC = htr, ftr = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, dtr = /^\w*$/; +function ptr(t, e) { if (zC(t)) return !1; var r = typeof t; - return r == "number" || r == "symbol" || r == "boolean" || t == null || Hx(t) ? !0 : ftr.test(t) || !htr.test(t) || e != null && t in Object(e); + return r == "number" || r == "symbol" || r == "boolean" || t == null || Hx(t) ? !0 : dtr.test(t) || !ftr.test(t) || e != null && t in Object(e); } -var ptr = dtr, gtr = "[object AsyncFunction]", mtr = "[object Function]", vtr = "[object GeneratorFunction]", ytr = "[object Proxy]"; -function btr(t) { +var gtr = ptr, mtr = "[object AsyncFunction]", vtr = "[object Function]", ytr = "[object GeneratorFunction]", btr = "[object Proxy]"; +function xtr(t) { if (!C0(t)) return !1; var e = U1e(t); - return e == mtr || e == vtr || e == gtr || e == ytr; + return e == vtr || e == ytr || e == mtr || e == btr; } -var xtr = btr, wtr = IC["__core-js_shared__"], nA = wtr, KH = function() { +var wtr = xtr, Otr = IC["__core-js_shared__"], nA = Otr, KH = function() { var t = /[^.]+$/.exec(nA && nA.keys && nA.keys.IE_PROTO || ""); return t ? "Symbol(src)_1." + t : ""; }(); -function Otr(t) { +function ktr(t) { return !!KH && KH in t; } -var ktr = Otr, Str = Function.prototype, Ttr = Str.toString; -function Ctr(t) { +var Str = ktr, Ttr = Function.prototype, Ctr = Ttr.toString; +function Etr(t) { if (t != null) { try { - return Ttr.call(t); + return Ctr.call(t); } catch { } try { @@ -97701,53 +97772,53 @@ function Ctr(t) { } return ""; } -var Etr = Ctr, _tr = /[\\^$.*+?()[\]{}|]/g, Atr = /^\[object .+?Constructor\]$/, Ltr = Function.prototype, Rtr = Object.prototype, Mtr = Ltr.toString, Dtr = Rtr.hasOwnProperty, Ntr = RegExp( - "^" + Mtr.call(Dtr).replace(_tr, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$" +var _tr = Etr, Atr = /[\\^$.*+?()[\]{}|]/g, Ltr = /^\[object .+?Constructor\]$/, Rtr = Function.prototype, Mtr = Object.prototype, Dtr = Rtr.toString, Ntr = Mtr.hasOwnProperty, Itr = RegExp( + "^" + Dtr.call(Ntr).replace(Atr, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$" ); -function Itr(t) { - if (!C0(t) || ktr(t)) +function Ptr(t) { + if (!C0(t) || Str(t)) return !1; - var e = xtr(t) ? Ntr : Atr; - return e.test(Etr(t)); + var e = wtr(t) ? Itr : Ltr; + return e.test(_tr(t)); } -var Ptr = Itr; -function $tr(t, e) { +var $tr = Ptr; +function Btr(t, e) { return t == null ? void 0 : t[e]; } -var Btr = $tr; -function Ftr(t, e) { - var r = Btr(t, e); - return Ptr(r) ? r : void 0; +var Ftr = Btr; +function ztr(t, e) { + var r = Ftr(t, e); + return $tr(r) ? r : void 0; } -var $P = Ftr, ztr = $P(Object, "create"), Z2 = ztr; -function Vtr() { +var $P = ztr, Vtr = $P(Object, "create"), Z2 = Vtr; +function Utr() { this.__data__ = Z2 ? Z2(null) : {}, this.size = 0; } -var Utr = Vtr; -function qtr(t) { +var qtr = Utr; +function Qtr(t) { var e = this.has(t) && delete this.__data__[t]; return this.size -= e ? 1 : 0, e; } -var Qtr = qtr, Ytr = "__lodash_hash_undefined__", Wtr = Object.prototype, Gtr = Wtr.hasOwnProperty; -function Htr(t) { +var Ytr = Qtr, Wtr = "__lodash_hash_undefined__", Gtr = Object.prototype, Htr = Gtr.hasOwnProperty; +function Xtr(t) { var e = this.__data__; if (Z2) { var r = e[t]; - return r === Ytr ? void 0 : r; + return r === Wtr ? void 0 : r; } - return Gtr.call(e, t) ? e[t] : void 0; + return Htr.call(e, t) ? e[t] : void 0; } -var Xtr = Htr, Ztr = Object.prototype, jtr = Ztr.hasOwnProperty; -function Ktr(t) { +var Ztr = Xtr, jtr = Object.prototype, Ktr = jtr.hasOwnProperty; +function Jtr(t) { var e = this.__data__; - return Z2 ? e[t] !== void 0 : jtr.call(e, t); + return Z2 ? e[t] !== void 0 : Ktr.call(e, t); } -var Jtr = Ktr, err = "__lodash_hash_undefined__"; -function trr(t, e) { +var err = Jtr, trr = "__lodash_hash_undefined__"; +function rrr(t, e) { var r = this.__data__; - return this.size += this.has(t) ? 0 : 1, r[t] = Z2 && e === void 0 ? err : e, this; + return this.size += this.has(t) ? 0 : 1, r[t] = Z2 && e === void 0 ? trr : e, this; } -var rrr = trr; +var nrr = rrr; function vm(t) { var e = -1, r = t == null ? 0 : t.length; for (this.clear(); ++e < r; ) { @@ -97755,49 +97826,49 @@ function vm(t) { this.set(n[0], n[1]); } } -vm.prototype.clear = Utr; -vm.prototype.delete = Qtr; -vm.prototype.get = Xtr; -vm.prototype.has = Jtr; -vm.prototype.set = rrr; +vm.prototype.clear = qtr; +vm.prototype.delete = Ytr; +vm.prototype.get = Ztr; +vm.prototype.has = err; +vm.prototype.set = nrr; var JH = vm; -function nrr() { +function irr() { this.__data__ = [], this.size = 0; } -var irr = nrr; -function srr(t, e) { +var srr = irr; +function arr(t, e) { return t === e || t !== t && e !== e; } -var dme = srr; -function arr(t, e) { +var dme = arr; +function orr(t, e) { for (var r = t.length; r--; ) if (dme(t[r][0], e)) return r; return -1; } -var VC = arr, orr = Array.prototype, lrr = orr.splice; -function crr(t) { +var VC = orr, lrr = Array.prototype, crr = lrr.splice; +function urr(t) { var e = this.__data__, r = VC(e, t); if (r < 0) return !1; var n = e.length - 1; - return r == n ? e.pop() : lrr.call(e, r, 1), --this.size, !0; + return r == n ? e.pop() : crr.call(e, r, 1), --this.size, !0; } -var urr = crr; -function hrr(t) { +var hrr = urr; +function frr(t) { var e = this.__data__, r = VC(e, t); return r < 0 ? void 0 : e[r][1]; } -var frr = hrr; -function drr(t) { +var drr = frr; +function prr(t) { return VC(this.__data__, t) > -1; } -var prr = drr; -function grr(t, e) { +var grr = prr; +function mrr(t, e) { var r = this.__data__, n = VC(r, t); return n < 0 ? (++this.size, r.push([t, e])) : r[n][1] = e, this; } -var mrr = grr; +var vrr = mrr; function ym(t) { var e = -1, r = t == null ? 0 : t.length; for (this.clear(); ++e < r; ) { @@ -97805,48 +97876,48 @@ function ym(t) { this.set(n[0], n[1]); } } -ym.prototype.clear = irr; -ym.prototype.delete = urr; -ym.prototype.get = frr; -ym.prototype.has = prr; -ym.prototype.set = mrr; -var vrr = ym, yrr = $P(IC, "Map"), brr = yrr; -function xrr() { +ym.prototype.clear = srr; +ym.prototype.delete = hrr; +ym.prototype.get = drr; +ym.prototype.has = grr; +ym.prototype.set = vrr; +var yrr = ym, brr = $P(IC, "Map"), xrr = brr; +function wrr() { this.size = 0, this.__data__ = { hash: new JH(), - map: new (brr || vrr)(), + map: new (xrr || yrr)(), string: new JH() }; } -var wrr = xrr; -function Orr(t) { +var Orr = wrr; +function krr(t) { var e = typeof t; return e == "string" || e == "number" || e == "symbol" || e == "boolean" ? t !== "__proto__" : t === null; } -var krr = Orr; -function Srr(t, e) { +var Srr = krr; +function Trr(t, e) { var r = t.__data__; - return krr(e) ? r[typeof e == "string" ? "string" : "hash"] : r.map; + return Srr(e) ? r[typeof e == "string" ? "string" : "hash"] : r.map; } -var UC = Srr; -function Trr(t) { +var UC = Trr; +function Crr(t) { var e = UC(this, t).delete(t); return this.size -= e ? 1 : 0, e; } -var Crr = Trr; -function Err(t) { +var Err = Crr; +function _rr(t) { return UC(this, t).get(t); } -var _rr = Err; -function Arr(t) { +var Arr = _rr; +function Lrr(t) { return UC(this, t).has(t); } -var Lrr = Arr; -function Rrr(t, e) { +var Rrr = Lrr; +function Mrr(t, e) { var r = UC(this, t), n = r.size; return r.set(t, e), this.size += r.size == n ? 0 : 1, this; } -var Mrr = Rrr; +var Drr = Mrr; function bm(t) { var e = -1, r = t == null ? 0 : t.length; for (this.clear(); ++e < r; ) { @@ -97854,15 +97925,15 @@ function bm(t) { this.set(n[0], n[1]); } } -bm.prototype.clear = wrr; -bm.prototype.delete = Crr; -bm.prototype.get = _rr; -bm.prototype.has = Lrr; -bm.prototype.set = Mrr; -var pme = bm, Drr = "Expected a function"; +bm.prototype.clear = Orr; +bm.prototype.delete = Err; +bm.prototype.get = Arr; +bm.prototype.has = Rrr; +bm.prototype.set = Drr; +var pme = bm, Nrr = "Expected a function"; function BP(t, e) { if (typeof t != "function" || e != null && typeof e != "function") - throw new TypeError(Drr); + throw new TypeError(Nrr); var r = function() { var n = arguments, i = e ? e.apply(this, n) : n[0], s = r.cache; if (s.has(i)) @@ -97873,25 +97944,25 @@ function BP(t, e) { return r.cache = new (BP.Cache || pme)(), r; } BP.Cache = pme; -var Nrr = BP, Irr = 500; -function Prr(t) { - var e = Nrr(t, function(n) { - return r.size === Irr && r.clear(), n; +var Irr = BP, Prr = 500; +function $rr(t) { + var e = Irr(t, function(n) { + return r.size === Prr && r.clear(), n; }), r = e.cache; return e; } -var $rr = Prr, Brr = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, Frr = /\\(\\)?/g, zrr = $rr(function(t) { +var Brr = $rr, Frr = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, zrr = /\\(\\)?/g, Vrr = Brr(function(t) { var e = []; - return t.charCodeAt(0) === 46 && e.push(""), t.replace(Brr, function(r, n, i, s) { - e.push(i ? s.replace(Frr, "$1") : n || r); + return t.charCodeAt(0) === 46 && e.push(""), t.replace(Frr, function(r, n, i, s) { + e.push(i ? s.replace(zrr, "$1") : n || r); }), e; -}), gme = zrr; -function Vrr(t, e) { +}), gme = Vrr; +function Urr(t, e) { for (var r = -1, n = t == null ? 0 : t.length, i = Array(n); ++r < n; ) i[r] = e(t[r], r, t); return i; } -var mme = Vrr, Urr = 1 / 0, eX = C1 ? C1.prototype : void 0, tX = eX ? eX.toString : void 0; +var mme = Urr, qrr = 1 / 0, eX = C1 ? C1.prototype : void 0, tX = eX ? eX.toString : void 0; function vme(t) { if (typeof t == "string") return t; @@ -97900,43 +97971,43 @@ function vme(t) { if (Hx(t)) return tX ? tX.call(t) : ""; var e = t + ""; - return e == "0" && 1 / t == -Urr ? "-0" : e; + return e == "0" && 1 / t == -qrr ? "-0" : e; } -var qrr = vme; -function Qrr(t) { - return t == null ? "" : qrr(t); +var Qrr = vme; +function Yrr(t) { + return t == null ? "" : Qrr(t); } -var yme = Qrr; -function Yrr(t, e) { - return zC(t) ? t : ptr(t, e) ? [t] : gme(yme(t)); +var yme = Yrr; +function Wrr(t, e) { + return zC(t) ? t : gtr(t, e) ? [t] : gme(yme(t)); } -var bme = Yrr, Wrr = 1 / 0; -function Grr(t) { +var bme = Wrr, Grr = 1 / 0; +function Hrr(t) { if (typeof t == "string" || Hx(t)) return t; var e = t + ""; - return e == "0" && 1 / t == -Wrr ? "-0" : e; + return e == "0" && 1 / t == -Grr ? "-0" : e; } -var FP = Grr; -function Hrr(t, e) { +var FP = Hrr; +function Xrr(t, e) { e = bme(e, t); for (var r = 0, n = e.length; t != null && r < n; ) t = t[FP(e[r++])]; return r && r == n ? t : void 0; } -var Xrr = Hrr; -function Zrr(t, e, r) { - var n = t == null ? void 0 : Xrr(t, e); +var Zrr = Xrr; +function jrr(t, e, r) { + var n = t == null ? void 0 : Zrr(t, e); return n === void 0 ? r : n; } -var jrr = Zrr, Krr = function() { +var Krr = jrr, Jrr = function() { try { var t = $P(Object, "defineProperty"); return t({}, "", {}), t; } catch { } -}(), rX = Krr; -function Jrr(t, e, r) { +}(), rX = Jrr; +function enr(t, e, r) { e == "__proto__" && rX ? rX(t, e, { configurable: !0, enumerable: !0, @@ -97944,18 +98015,18 @@ function Jrr(t, e, r) { writable: !0 }) : t[e] = r; } -var enr = Jrr, tnr = Object.prototype, rnr = tnr.hasOwnProperty; -function nnr(t, e, r) { +var tnr = enr, rnr = Object.prototype, nnr = rnr.hasOwnProperty; +function inr(t, e, r) { var n = t[e]; - (!(rnr.call(t, e) && dme(n, r)) || r === void 0 && !(e in t)) && enr(t, e, r); + (!(nnr.call(t, e) && dme(n, r)) || r === void 0 && !(e in t)) && tnr(t, e, r); } -var inr = nnr, snr = 9007199254740991, anr = /^(?:0|[1-9]\d*)$/; -function onr(t, e) { +var snr = inr, anr = 9007199254740991, onr = /^(?:0|[1-9]\d*)$/; +function lnr(t, e) { var r = typeof t; - return e = e == null ? snr : e, !!e && (r == "number" || r != "symbol" && anr.test(t)) && t > -1 && t % 1 == 0 && t < e; + return e = e == null ? anr : e, !!e && (r == "number" || r != "symbol" && onr.test(t)) && t > -1 && t % 1 == 0 && t < e; } -var lnr = onr; -function cnr(t, e, r, n) { +var cnr = lnr; +function unr(t, e, r, n) { if (!C0(t)) return t; e = bme(e, t); @@ -97965,28 +98036,28 @@ function cnr(t, e, r, n) { return t; if (i != a) { var h = o[l]; - u = n ? n(h, l, o) : void 0, u === void 0 && (u = C0(h) ? h : lnr(e[i + 1]) ? [] : {}); + u = n ? n(h, l, o) : void 0, u === void 0 && (u = C0(h) ? h : cnr(e[i + 1]) ? [] : {}); } - inr(o, l, u), o = o[l]; + snr(o, l, u), o = o[l]; } return t; } -var unr = cnr; -function hnr(t, e, r) { - return t == null ? t : unr(t, e, r); +var hnr = unr; +function fnr(t, e, r) { + return t == null ? t : hnr(t, e, r); } -var fnr = hnr; -function dnr(t, e) { +var dnr = fnr; +function pnr(t, e) { var r = -1, n = t.length; for (e || (e = Array(n)); ++r < n; ) e[r] = t[r]; return e; } -var pnr = dnr; -function gnr(t) { - return zC(t) ? mme(t, FP) : Hx(t) ? [t] : pnr(gme(yme(t))); +var gnr = pnr; +function mnr(t) { + return zC(t) ? mme(t, FP) : Hx(t) ? [t] : gnr(gme(yme(t))); } -var mnr = gnr, vnr = { +var vnr = mnr, ynr = { data: function(e) { var r = { field: "data", @@ -98012,10 +98083,10 @@ var mnr = gnr, vnr = { return e = Kt({}, r, e), function(i, s) { var a = e, o = this, l = o.length !== void 0, u = l ? o : [o], h = l ? o[0] : o; if (qt(i)) { - var f = i.indexOf(".") !== -1, d = f && mnr(i); + var f = i.indexOf(".") !== -1, d = f && vnr(i); if (a.allowGetting && s === void 0) { var p; - return h && (a.beforeGet(h), d && h._private[a.field][i] === void 0 ? p = jrr(h._private[a.field], d) : p = h._private[a.field][i]), p; + return h && (a.beforeGet(h), d && h._private[a.field][i] === void 0 ? p = Krr(h._private[a.field], d) : p = h._private[a.field][i]), p; } else if (a.allowSetting && s !== void 0) { var g = !a.immutableKeys[i]; if (g) { @@ -98023,7 +98094,7 @@ var mnr = gnr, vnr = { a.beforeSet(o, m); for (var v = 0, y = u.length; v < y; v++) { var b = u[v]; - a.canSet(b) && (d && h._private[a.field][i] === void 0 ? fnr(b._private[a.field], d, s) : b._private[a.field][i] = s); + a.canSet(b) && (d && h._private[a.field][i] === void 0 ? dnr(b._private[a.field], d, s) : b._private[a.field][i] = s); } a.updateStyle && o.updateStyle(), a.onSet(o), a.settingTriggersEvent && o[a.triggerFnName](a.settingEvent); } @@ -98083,7 +98154,7 @@ var mnr = gnr, vnr = { return a; }; } -}, ynr = { +}, bnr = { eventAliasesOn: function(e) { var r = e; r.addListener = r.listen = r.bind = r.on, r.unlisten = r.unbind = r.off = r.removeListener, r.trigger = r.emit, r.pon = r.promiseOn = function(n, i) { @@ -98097,10 +98168,10 @@ var mnr = gnr, vnr = { }; } }, Vr = {}; -[ctr, vnr, ynr].forEach(function(t) { +[utr, ynr, bnr].forEach(function(t) { Kt(Vr, t); }); -var bnr = { +var xnr = { animate: Vr.animate(), animation: Vr.animation(), animated: Vr.animated(), @@ -98359,14 +98430,14 @@ var Zr = function() { return !e.backgrounding(); } }].sort(function(t, e) { - return RKt(t.selector, e.selector); -}), xnr = function() { + return MKt(t.selector, e.selector); +}), wnr = function() { for (var t = {}, e, r = 0; r < tR.length; r++) e = tR[r], t[e.selector] = e.matches; return t; -}(), wnr = function(e, r) { - return xnr[e](r); -}, Onr = "(" + tR.map(function(t) { +}(), Onr = function(e, r) { + return wnr[e](r); +}, knr = "(" + tR.map(function(t) { return t.selector; }).join("|") + ")", pp = function(e) { return e.replace(new RegExp("\\\\(" + _r.metaChar + ")", "g"), function(r, n) { @@ -98388,7 +98459,7 @@ var Zr = function() { }, { name: "state", query: !0, - regex: Onr, + regex: knr, populate: function(e, r, n) { var i = ul(n, 1), s = i[0]; r.checks.push({ @@ -98607,7 +98678,7 @@ var Zr = function() { rR.forEach(function(t) { return t.regexObj = new RegExp("^" + t.regex); }); -var knr = function(e) { +var Snr = function(e) { for (var r, n, i, s = 0; s < rR.length; s++) { var a = rR[s], o = a.name, l = e.match(a.regexObj); if (l != null) { @@ -98623,17 +98694,17 @@ var knr = function(e) { name: i, remaining: e }; -}, Snr = function(e) { +}, Tnr = function(e) { var r = e.match(/^\s+/); if (r) { var n = r[0]; e = e.substring(n.length); } return e; -}, Tnr = function(e) { +}, Cnr = function(e) { var r = this, n = r.inputText = e, i = r[0] = Zr(); - for (r.length = 1, n = Snr(n); ; ) { - var s = knr(n); + for (r.length = 1, n = Tnr(n); ; ) { + var s = Snr(n); if (s.expr == null) return Qr("The selector `" + e + "`is invalid"), !1; var a = s.match.slice(1), o = s.expr.populate(r, i, a); @@ -98653,7 +98724,7 @@ var knr = function(e) { h.edgeCount === 1 && Qr("The selector `" + e + "` is deprecated. Edge selectors do not take effect on changes to source and target nodes after an edge is added, for performance reasons. Use a class or data selector on edges instead, updating the class or data of an edge when your app detects a change in source or target nodes."); } return !0; -}, Cnr = function() { +}, Enr = function() { if (this.toStringCache != null) return this.toStringCache; for (var e = function(h) { @@ -98713,9 +98784,9 @@ var knr = function(e) { a += s(l, l.subject), this.length > 1 && o < this.length - 1 && (a += ", "); } return this.toStringCache = a, a; -}, Enr = { - parse: Tnr, - toString: Cnr +}, _nr = { + parse: Cnr, + toString: Enr }, xme = function(e, r, n) { var i, s = qt(e), a = bt(e), o = qt(n), l, u, h = !1, f = !1, d = !1; switch (r.indexOf("!") >= 0 && (r = r.replace("!", ""), f = !0), r.indexOf("@") >= 0 && (r = r.replace("@", ""), h = !0), (s || o || h) && (l = !s && !a ? "" : "" + e, u = "" + n), h && (e = l = l.toLowerCase(), n = u = u.toLowerCase()), r) { @@ -98748,7 +98819,7 @@ var knr = function(e) { break; } return f && (e != null || !d) && (i = !i), i; -}, _nr = function(e, r) { +}, Anr = function(e, r) { switch (r) { case "?": return !!e; @@ -98757,11 +98828,11 @@ var knr = function(e) { case "^": return e === void 0; } -}, Anr = function(e) { +}, Lnr = function(e) { return e !== void 0; }, zP = function(e, r) { return e.data(r); -}, Lnr = function(e, r) { +}, Rnr = function(e, r) { return e[r](); }, Wn = [], xn = function(e, r) { return e.checks.every(function(n) { @@ -98774,7 +98845,7 @@ Wn[Rt.GROUP] = function(t, e) { }; Wn[Rt.STATE] = function(t, e) { var r = t.value; - return wnr(r, e); + return Onr(r, e); }; Wn[Rt.ID] = function(t, e) { var r = t.value; @@ -98786,7 +98857,7 @@ Wn[Rt.CLASS] = function(t, e) { }; Wn[Rt.META_COMPARE] = function(t, e) { var r = t.field, n = t.operator, i = t.value; - return xme(Lnr(e, r), n, i); + return xme(Rnr(e, r), n, i); }; Wn[Rt.DATA_COMPARE] = function(t, e) { var r = t.field, n = t.operator, i = t.value; @@ -98794,11 +98865,11 @@ Wn[Rt.DATA_COMPARE] = function(t, e) { }; Wn[Rt.DATA_BOOL] = function(t, e) { var r = t.field, n = t.operator; - return _nr(zP(e, r), n); + return Anr(zP(e, r), n); }; Wn[Rt.DATA_EXIST] = function(t, e) { var r = t.field; - return t.operator, Anr(zP(e, r)); + return t.operator, Lnr(zP(e, r)); }; Wn[Rt.UNDIRECTED_EDGE] = function(t, e) { var r = t.nodes[0], n = t.nodes[1], i = e.source(), s = e.target(); @@ -98854,7 +98925,7 @@ Wn[Rt.FILTER] = function(t, e) { var r = t.value; return r(e); }; -var Rnr = function(e) { +var Mnr = function(e) { var r = this; if (r.length === 1 && r[0].checks.length === 1 && r[0].checks[0].type === Rt.ID) return e.getElementById(r[0].checks[0].value).collection(); @@ -98869,16 +98940,16 @@ var Rnr = function(e) { return r.text() == null && (n = function() { return !0; }), e.filter(n); -}, Mnr = function(e) { +}, Dnr = function(e) { for (var r = this, n = 0; n < r.length; n++) { var i = r[n]; if (xn(i, e)) return !0; } return !1; -}, Dnr = { - matches: Mnr, - filter: Rnr +}, Nnr = { + matches: Dnr, + filter: Mnr }, Df = function(e) { this.inputText = e, this.currentSubject = null, this.compoundCount = 0, this.edgeCount = 0, this.length = 0, e == null || qt(e) && e.match(/^\s*$/) || (lo(e) ? this.addQuery({ checks: [{ @@ -98892,7 +98963,7 @@ var Rnr = function(e) { }] }) : qt(e) ? this.parse(e) || (this.invalid = !0) : Yn("A selector must be created from a string; found ")); }, Nf = Df.prototype; -[Enr, Dnr].forEach(function(t) { +[_nr, Nnr].forEach(function(t) { return Kt(Nf, t); }); Nf.text = function() { @@ -99094,12 +99165,12 @@ A1.forEachUp = function(t) { var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0; return VP(this, t, e, Ome); }; -function Nnr(t, e, r) { +function Inr(t, e, r) { Ome(t, e, r), wme(t, e, r); } A1.forEachUpAndDown = function(t) { var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0; - return VP(this, t, e, Nnr); + return VP(this, t, e, Inr); }; A1.ancestors = A1.parents; var j2, kme; @@ -99171,7 +99242,7 @@ j2 = kme = { }; j2.attr = j2.data; j2.removeAttr = j2.removeData; -var Inr = kme, qC = {}; +var Pnr = kme, qC = {}; function iA(t) { return function(e) { var r = this; @@ -99379,7 +99450,7 @@ _l.modelPosition = _l.point = _l.position; _l.modelPositions = _l.points = _l.positions; _l.renderedPoint = _l.renderedPosition; _l.relativePoint = _l.relativePosition; -var Pnr = Sme, mg, Yf; +var $nr = Sme, mg, Yf; mg = Yf = {}; Yf.renderedBoundingBox = function(t) { var e = this.boundingBox(t), r = this.cy(), n = r.zoom(), i = r.pan(), s = e.x1 * n + i.x, a = e.x2 * n + i.x, o = e.y1 * n + i.y, l = e.y2 * n + i.y; @@ -99560,7 +99631,7 @@ var Co = function(e) { } return e; } -}, $nr = function(e, r) { +}, Bnr = function(e, r) { if (!r.cy().headless()) { var n = r.pstyle("outline-opacity").value, i = r.pstyle("outline-width").value; if (n > 0 && i > 0) { @@ -99568,12 +99639,12 @@ var Co = function(e) { ["diamond", "pentagon", "round-triangle"].includes(a) ? (l = (e.w + o * 2.4) / e.w, f = -o / 3.6) : ["concave-hexagon", "rhomboid", "right-rhomboid"].includes(a) ? l = (e.w + o * 2.4) / e.w : a === "star" ? (l = (e.w + o * 2.8) / e.w, u = (e.h + o * 2.6) / e.h, f = -o / 3.8) : a === "triangle" ? (l = (e.w + o * 2.8) / e.w, u = (e.h + o * 2.4) / e.h, f = -o / 1.4) : a === "vee" && (l = (e.w + o * 4.4) / e.w, u = (e.h + o * 3.8) / e.h, f = -o * 0.5); var d = e.h * u - e.h, p = e.w * l - e.w; if (s5(e, [Math.ceil(d / 2), Math.ceil(p / 2)]), h != 0 || f !== 0) { - var g = ier(e, h, f); + var g = ser(e, h, f); J1e(e, g); } } } -}, Bnr = function(e, r) { +}, Fnr = function(e, r) { var n = e._private.cy, i = n.styleEnabled(), s = n.headless(), a = za(), o = e._private, l = e.isNode(), u = e.isEdge(), h, f, d, p, g, m, v = o.rstyle, y = l && i ? e.pstyle("bounds-expansion").pfValue : [0], b = function(_e) { return _e.pstyle("display").value !== "none"; }, w = !i || b(e) && (!u || b(e.source()) && b(e.target())); @@ -99587,7 +99658,7 @@ var Co = function(e) { var _ = e.position(); g = _.x, m = _.y; var R = e.outerWidth(), $ = R / 2, k = e.outerHeight(), N = k / 2; - h = g - $, f = g + $, d = m - N, p = m + N, fl(a, h, d, f, p), i && r.includeOutlines && $nr(a, e); + h = g - $, f = g + $, d = m - N, p = m + N, fl(a, h, d, f, p), i && r.includeOutlines && Bnr(a, e); } else if (u && r.includeEdges) if (i && !s) { var M = e.pstyle("curve-style").strValue; @@ -99648,7 +99719,7 @@ var Co = function(e) { var ae = o.overlayBounds = o.overlayBounds || {}; PH(ae, a), s5(ae, y), i5(ae, 1); var se = o.labelBounds = o.labelBounds || {}; - se.all != null ? ner(se.all) : se.all = za(), i && r.includeLabels && (r.includeMainLabels && sA(a, e, null), u && (r.includeSourceLabels && sA(a, e, "source"), r.includeTargetLabels && sA(a, e, "target"))); + se.all != null ? ier(se.all) : se.all = za(), i && r.includeLabels && (r.includeMainLabels && sA(a, e, null), u && (r.includeSourceLabels && sA(a, e, "source"), r.includeTargetLabels && sA(a, e, "target"))); } return a.x1 = Co(a.x1), a.y1 = Co(a.y1), a.x2 = Co(a.x2), a.y2 = Co(a.y2), a.w = Co(a.x2 - a.x1), a.h = Co(a.y2 - a.y1), a.w > 0 && a.h > 0 && w && (s5(a, y), i5(a, 1)), a; }, Cme = function(e) { @@ -99661,14 +99732,14 @@ var Co = function(e) { var r = e.source().position(), n = e.target().position(), i = function(a) { return Math.round(a); }; - return SJt([i(r.x), i(r.y), i(n.x), i(n.y)]); + return TJt([i(r.x), i(r.y), i(n.x), i(n.y)]); } else return 0; }, iX = function(e, r) { var n = e._private, i, s = e.isEdge(), a = r == null ? sX : Cme(r), o = a === sX, l = Eme(e), u = n.bbCachePosKey === l, h = r.useCache && u, f = function(m) { return m._private.bbCache == null || m._private.styleDirty; }, d = !h || f(e) || s && f(e.source()) || f(e.target()); - if (d ? (u || e.recalculateRenderedStyle(h), i = Bnr(e, K2), n.bbCache = i, n.bbCachePosKey = l) : i = n.bbCache, !o) { + if (d ? (u || e.recalculateRenderedStyle(h), i = Fnr(e, K2), n.bbCache = i, n.bbCachePosKey = l) : i = n.bbCache, !o) { var p = e.isNode(); i = za(), (r.includeNodes && p || r.includeEdges && !p) && (r.includeOverlays ? ud(i, n.overlayBounds) : ud(i, n.bodyBounds)), r.includeLabels && (r.includeMainLabels && (!s || r.includeSourceLabels && r.includeTargetLabels) ? ud(i, n.labelBounds.all) : (r.includeMainLabels && ud(i, n.labelBounds.mainRot), r.includeSourceLabels && ud(i, n.labelBounds.sourceRot), r.includeTargetLabels && ud(i, n.labelBounds.targetRot))), i.w = i.x2 - i.x1, i.h = i.y2 - i.y1; } @@ -99728,14 +99799,14 @@ Yf.boundingBoxAt = function(t) { return h._private.bbAtOldPos; }; r.startBatch(), e.forEach(a).silentPositions(t), n && (i.dirtyCompoundBoundsCache(), i.dirtyBoundingBoxCache(), i.updateCompoundBounds(!0)); - var l = rer(this.boundingBox({ + var l = ner(this.boundingBox({ useCache: !1 })); return e.silentPositions(o), n && (i.dirtyCompoundBoundsCache(), i.dirtyBoundingBoxCache(), i.updateCompoundBounds(!0)), r.endBatch(), l; }; mg.boundingbox = mg.bb = mg.boundingBox; mg.renderedBoundingbox = mg.renderedBoundingBox; -var Fnr = Yf, Bv, Zx; +var znr = Yf, Bv, Zx; Bv = Zx = {}; var _me = function(e) { e.uppercaseName = AH(e.name), e.autoName = "auto" + e.uppercaseName, e.labelName = "label" + e.uppercaseName, e.outerName = "outer" + e.uppercaseName, e.uppercaseOuterName = AH(e.outerName), Bv[e.name] = function() { @@ -99793,61 +99864,61 @@ Zx.paddedWidth = function() { var t = this[0]; return t.width() + 2 * t.padding(); }; -var znr = Zx, Vnr = function(e, r) { +var Vnr = Zx, Unr = function(e, r) { if (e.isEdge()) return r(e); -}, Unr = function(e, r) { +}, qnr = function(e, r) { if (e.isEdge()) { var n = e.cy(); return BC(r(e), n.zoom(), n.pan()); } -}, qnr = function(e, r) { +}, Qnr = function(e, r) { if (e.isEdge()) { var n = e.cy(), i = n.pan(), s = n.zoom(); return r(e).map(function(a) { return BC(a, s, i); }); } -}, Qnr = function(e) { - return e.renderer().getControlPoints(e); }, Ynr = function(e) { - return e.renderer().getSegmentPoints(e); + return e.renderer().getControlPoints(e); }, Wnr = function(e) { - return e.renderer().getSourceEndpoint(e); + return e.renderer().getSegmentPoints(e); }, Gnr = function(e) { - return e.renderer().getTargetEndpoint(e); + return e.renderer().getSourceEndpoint(e); }, Hnr = function(e) { + return e.renderer().getTargetEndpoint(e); +}, Xnr = function(e) { return e.renderer().getEdgeMidpoint(e); }, oX = { controlPoints: { - get: Qnr, + get: Ynr, mult: !0 }, segmentPoints: { - get: Ynr, + get: Wnr, mult: !0 }, sourceEndpoint: { - get: Wnr + get: Gnr }, targetEndpoint: { - get: Gnr + get: Hnr }, midpoint: { - get: Hnr + get: Xnr } -}, Xnr = function(e) { +}, Znr = function(e) { return "rendered" + e[0].toUpperCase() + e.substr(1); -}, Znr = Object.keys(oX).reduce(function(t, e) { - var r = oX[e], n = Xnr(e); +}, jnr = Object.keys(oX).reduce(function(t, e) { + var r = oX[e], n = Znr(e); return t[e] = function() { - return Vnr(this, r.get); + return Unr(this, r.get); }, r.mult ? t[n] = function() { - return qnr(this, r.get); + return Qnr(this, r.get); } : t[n] = function() { - return Unr(this, r.get); + return qnr(this, r.get); }, t; -}, {}), jnr = Kt({}, Pnr, Fnr, znr, Znr); +}, {}), Knr = Kt({}, $nr, znr, Vnr, jnr); /*! Event object based on jQuery events, MIT license @@ -99895,7 +99966,7 @@ Ame.prototype = { isPropagationStopped: ov, isImmediatePropagationStopped: ov }; -var Lme = /^([^.]+)(\.(?:[^.]+))?$/, Knr = ".*", Rme = { +var Lme = /^([^.]+)(\.(?:[^.]+))?$/, Jnr = ".*", Rme = { qualifierCompare: function(e, r) { return e === r; }, @@ -99918,9 +99989,9 @@ var Lme = /^([^.]+)(\.(?:[^.]+))?$/, Knr = ".*", Rme = { return null; }, context: null -}, lX = Object.keys(Rme), Jnr = {}; +}, lX = Object.keys(Rme), eir = {}; function QC() { - for (var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Jnr, e = arguments.length > 1 ? arguments[1] : void 0, r = 0; r < lX.length; r++) { + for (var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : eir, e = arguments.length > 1 ? arguments[1] : void 0, r = 0; r < lX.length; r++) { var n = lX[r]; this[n] = t[n] || Rme[n]; } @@ -99941,8 +100012,8 @@ var If = QC.prototype, Mme = function(e, r, n, i, s, a, o) { } }, cX = function(e, r) { return e.addEventFields(e.context, r), new Ame(r.type, r); -}, eir = function(e, r, n) { - if (xKt(n)) { +}, tir = function(e, r, n) { + if (wKt(n)) { r(e, n); return; } else if (Ar(n)) { @@ -99983,7 +100054,7 @@ If.one = function(t, e, r, n) { }; If.removeListener = If.off = function(t, e, r, n) { var i = this; - this.emitting !== 0 && (this.listeners = AJt(this.listeners)); + this.emitting !== 0 && (this.listeners = LJt(this.listeners)); for (var s = this.listeners, a = function(u) { var h = s[u]; Mme(i, function(f, d, p, g, m, v) { @@ -99999,7 +100070,7 @@ If.removeAllListeners = function() { }; If.emit = If.trigger = function(t, e, r) { var n = this.listeners, i = n.length; - return this.emitting++, nn(e) || (e = [e]), eir(this, function(s, a) { + return this.emitting++, nn(e) || (e = [e]), tir(this, function(s, a) { r != null && (n = [{ event: a.event, type: a.type, @@ -100008,9 +100079,9 @@ If.emit = If.trigger = function(t, e, r) { }], i = n.length); for (var o = function(h) { var f = n[h]; - if (f.type === a.type && (!f.namespace || f.namespace === a.namespace || f.namespace === Knr) && s.eventMatches(s.context, f, a)) { + if (f.type === a.type && (!f.namespace || f.namespace === a.namespace || f.namespace === Jnr) && s.eventMatches(s.context, f, a)) { var d = [a]; - e != null && RJt(d, e), s.beforeEmit(s.context, f, a), f.conf && f.conf.one && (s.listeners = s.listeners.filter(function(m) { + e != null && MJt(d, e), s.beforeEmit(s.context, f, a), f.conf && f.conf.one && (s.listeners = s.listeners.filter(function(m) { return m !== f; })); var p = s.callbackContext(s.context, f, a), g = f.callback.apply(p, d); @@ -100021,7 +100092,7 @@ If.emit = If.trigger = function(t, e, r) { s.bubble(s.context) && !a.isPropagationStopped() && s.parent(s.context).emit(a, e); }, t), this.emitting--, this; }; -var tir = { +var rir = { qualifierCompare: function(e, r) { return e == null || r == null ? e == null && r == null : e.sameText(r); }, @@ -100050,7 +100121,7 @@ var tir = { createEmitter: function() { for (var e = 0; e < this.length; e++) { var r = this[e], n = r._private; - n.emitter || (n.emitter = new QC(tir, r)); + n.emitter || (n.emitter = new QC(rir, r)); } return this; }, @@ -100307,7 +100378,7 @@ Mr.n = Mr["&"] = Mr["."] = Mr.and = Mr.intersection = Mr.intersect; Mr["^"] = Mr["(+)"] = Mr["(-)"] = Mr.symmetricDifference = Mr.symdiff = Mr.xor; Mr.fnFilter = Mr.filterFn = Mr.stdFilter = Mr.filter; Mr.complement = Mr.abscomp = Mr.absoluteComplement; -var rir = { +var nir = { isNode: function() { return this.group() === "nodes"; }, @@ -100407,7 +100478,7 @@ var rir = { } }; fS.each = fS.forEach; -var nir = function() { +var iir = function() { var e = "undefined", r = (typeof Symbol > "u" ? "undefined" : Pi(Symbol)) != e && Pi(Symbol.iterator) != e; r && (fS[Symbol.iterator] = function() { var n = this, i = { @@ -100423,12 +100494,12 @@ var nir = function() { }); }); }; -nir(); -var iir = ws({ +iir(); +var sir = ws({ nodeDimensionsIncludeLabels: !1 }), o5 = { layoutDimensions: function(e) { - e = iir(e); + e = sir(e); var r; if (!this.takesUpSpace()) r = { @@ -100475,7 +100546,7 @@ var iir = ws({ return null; for (var C = za(), T = 0; T < i.length; T++) { var A = i[T], E = l(A, T); - ser(C, E.x, E.y); + aer(C, E.x, E.y); } return C; }, d = f(), p = Q2(function(S, C) { @@ -100751,14 +100822,14 @@ var xm = YC("eleTakesUpSpace", function(t) { ds.takesUpSpace = WC("takesUpSpace", UP({ ok: xm })); -var sir = YC("eleInteractive", function(t) { +var air = YC("eleInteractive", function(t) { return t.pstyle("events").value === "yes" && t.pstyle("visibility").value === "visible" && xm(t); -}), air = YC("parentInteractive", function(t) { +}), oir = YC("parentInteractive", function(t) { return t.pstyle("visibility").value === "visible" && xm(t); }); ds.interactive = WC("interactive", UP({ - ok: sir, - parentOk: air, + ok: air, + parentOk: oir, edgeOkViaNode: xm })); ds.noninteractive = function() { @@ -100766,12 +100837,12 @@ ds.noninteractive = function() { if (t) return !t.interactive(); }; -var oir = YC("eleVisible", function(t) { +var lir = YC("eleVisible", function(t) { return t.pstyle("visibility").value === "visible" && t.pstyle("opacity").pfValue !== 0 && xm(t); -}), lir = xm; +}), cir = xm; ds.visible = WC("visible", UP({ - ok: oir, - edgeOkViaNode: lir + ok: lir, + edgeOkViaNode: cir })); ds.hidden = function() { var t = this[0]; @@ -101438,10 +101509,10 @@ dn.move = function(t) { } return this; }; -[lme, bnr, a5, rf, A1, Inr, qC, jnr, Dme, Nme, rir, fS, o5, ds, nf, zs].forEach(function(t) { +[lme, xnr, a5, rf, A1, Pnr, qC, Knr, Dme, Nme, nir, fS, o5, ds, nf, zs].forEach(function(t) { Kt(dn, t); }); -var cir = { +var uir = { add: function(e) { var r, n = this; if (lo(e)) { @@ -101487,7 +101558,7 @@ var cir = { } }; /*! Bezier curve function generator. Copyright Gaetan Renaudeau. MIT License: http://en.wikipedia.org/wiki/MIT_License */ -function uir(t, e, r, n) { +function hir(t, e, r, n) { var i = 4, s = 1e-3, a = 1e-7, o = 10, l = 11, u = 1 / (l - 1), h = typeof Float32Array < "u"; if (arguments.length !== 4) return !1; @@ -101561,7 +101632,7 @@ function uir(t, e, r, n) { }, A; } /*! Runge-Kutta spring physics function generator. Adapted from Framer.js, copyright Koen Bok. MIT License: http://en.wikipedia.org/wiki/MIT_License */ -var hir = function() { +var fir = function() { function t(n) { return -n.tension * n.x - n.friction * n.v; } @@ -101598,7 +101669,7 @@ var hir = function() { } : u; }; }(), on = function(e, r, n, i) { - var s = uir(e, r, n, i); + var s = hir(e, r, n, i); return function(a, o, l) { return a + (o - a) * s(l); }; @@ -101634,7 +101705,7 @@ var hir = function() { spring: function(e, r, n) { if (n === 0) return l5.linear; - var i = hir(e, r, n); + var i = fir(e, r, n); return function(s, a, o) { return s + (a - s) * i(o); }; @@ -101668,7 +101739,7 @@ function mp(t, e, r, n, i) { return l; } } -function fir(t, e, r, n) { +function dir(t, e, r, n) { var i = !n, s = t._private, a = e._private, o = a.easing, l = a.startTime, u = n ? t : t.cy(), h = u.style(); if (!a.easingImpl) if (o == null) @@ -101710,7 +101781,7 @@ function fir(t, e, r, n) { function lv(t, e) { return t == null || e == null ? !1 : bt(t) && bt(e) ? !0 : !!(t && e); } -function dir(t, e, r, n) { +function pir(t, e, r, n) { var i = e._private; i.started = !0, i.startTime = r - i.progress * i.duration; } @@ -101734,7 +101805,7 @@ function bX(t, e) { p.splice(b, 1), O.hooked = !1, O.playing = !1, O.started = !1, y(O.frames); continue; } - !O.playing && !O.applying || (O.playing && O.applying && (O.applying = !1), O.started || dir(h, w, t), fir(h, w, t, f), O.applying && (O.applying = !1), y(O.frames), O.step != null && O.step(t), w.completed() && (p.splice(b, 1), O.hooked = !1, O.playing = !1, O.started = !1, y(O.completes)), m = !0); + !O.playing && !O.applying || (O.playing && O.applying && (O.applying = !1), O.started || pir(h, w, t), dir(h, w, t, f), O.applying && (O.applying = !1), y(O.frames), O.step != null && O.step(t), w.completed() && (p.splice(b, 1), O.hooked = !1, O.playing = !1, O.started = !1, y(O.completes)), m = !0); } return !f && p.length === 0 && g.length === 0 && n.push(h), m; } @@ -101745,7 +101816,7 @@ function bX(t, e) { var u = i(e, !0); (s || u) && (r.length > 0 ? e.notify("draw", r) : e.notify("draw")), r.unmerge(n), e.emit("step"); } -var pir = { +var gir = { animate: Vr.animate(), animation: Vr.animation(), animated: Vr.animated(), @@ -101774,7 +101845,7 @@ var pir = { bX(a, e); }, n.beforeRenderPriorities.animations) : r(); } -}, gir = { +}, mir = { qualifierCompare: function(e, r) { return e == null || r == null ? e == null && r == null : e.sameText(r); }, @@ -101793,7 +101864,7 @@ var pir = { }, $me = { createEmitter: function() { var e = this._private; - return e.emitter || (e.emitter = new QC(gir, this)), this; + return e.emitter || (e.emitter = new QC(mir, this)), this; }, emitter: function() { return this._private.emitter; @@ -101858,7 +101929,7 @@ var c5 = { } }; c5.createLayout = c5.makeLayout = c5.layout; -var mir = { +var vir = { notify: function(e, r) { var n = this._private; if (this.batching()) { @@ -101912,7 +101983,7 @@ var mir = { } }); } -}, vir = ws({ +}, yir = ws({ hideEdgesOnViewport: !1, textureOnViewport: !1, motionBlur: !1, @@ -101944,7 +102015,7 @@ var mir = { return; } e.wheelSensitivity !== void 0 && Qr("You have set a custom wheel sensitivity. This will make your app zoom unnaturally when using mainstream mice. You should change this value from the default only if you can guarantee that all your users will use the same hardware and OS configuration as your current machine."); - var i = vir(e); + var i = yir(e); i.cy = r, r._private.renderer = new n(i), this.notify("init"); }, destroyRenderer: function() { @@ -101992,7 +102063,7 @@ var u5 = { } }; u5.elements = u5.filter = u5.$; -var Gs = {}, dy = "t", yir = "f"; +var Gs = {}, dy = "t", bir = "f"; Gs.apply = function(t) { for (var e = this, r = e._private, n = r.cy, i = n.collection(), s = 0; s < t.length; s++) { var a = t[s], o = e.getContextMeta(a); @@ -102029,7 +102100,7 @@ Gs.getPropertiesDiff = function(t, e) { Gs.getContextMeta = function(t) { for (var e = this, r = "", n, i = t._private.styleCxtKey || "", s = 0; s < e.length; s++) { var a = e[s], o = a.selector && a.selector.matches(t); - o ? r += dy : r += yir; + o ? r += dy : r += bir; } return n = e.getPropertiesDiff(i, r), t._private.styleCxtKey = r, { key: r, @@ -102127,7 +102198,7 @@ Gs.updateStyleHints = function(t) { var M = i[N], I = e.styleKeys[M]; k[0] = Y2(I[0], k[0]), k[1] = W2(I[1], k[1]); } - e.styleKey = kJt(k[0], k[1]); + e.styleKey = SJt(k[0], k[1]); var D = e.styleKeys; e.labelDimsKey = bh(D.labelDimensions); var P = s(t, ["label"], D.labelDimensions); @@ -102543,7 +102614,7 @@ QP.fromString = function(t) { }; var ns = {}; (function() { - var t = Ai, e = CKt, r = _Kt, n = AKt, i = LKt, s = function(U) { + var t = Ai, e = EKt, r = AKt, n = LKt, i = RKt, s = function(U) { return "^" + U + "\\s*\\(\\s*([\\w\\.]+)\\s*\\)$"; }, a = function(U) { var Z = t + "|\\w+|" + e + "|" + r + "|" + n + "|" + i; @@ -103993,7 +104064,7 @@ HC.parseImpl = function(t, e, r, n) { return null; if (isNaN(e) && u.enums !== void 0) return e = a, _(); - if (u.integer && !bKt(e) || u.min !== void 0 && (e < u.min || u.strictMin && e === u.min) || u.max !== void 0 && (e > u.max || u.strictMax && e === u.max)) + if (u.integer && !xKt(e) || u.min !== void 0 && (e < u.min || u.strictMin && e === u.min) || u.max !== void 0 && (e > u.max || u.strictMax && e === u.max)) return null; var M = { name: t, @@ -104002,7 +104073,7 @@ HC.parseImpl = function(t, e, r, n) { units: R, bypass: r }; - return u.unitless || R !== "px" && R !== "em" ? M.pfValue = e : M.pfValue = R === "px" || !R ? e : this.getEmSizeInPixels() * e, (R === "ms" || R === "s") && (M.pfValue = R === "ms" ? e : 1e3 * e), (R === "deg" || R === "rad") && (M.pfValue = R === "rad" ? e : JJt(e)), R === "%" && (M.pfValue = e / 100), M; + return u.unitless || R !== "px" && R !== "em" ? M.pfValue = e : M.pfValue = R === "px" || !R ? e : this.getEmSizeInPixels() * e, (R === "ms" || R === "s") && (M.pfValue = R === "ms" ? e : 1e3 * e), (R === "deg" || R === "rad") && (M.pfValue = R === "rad" ? e : eer(e)), R === "%" && (M.pfValue = e / 100), M; } else if (u.propList) { var I = [], D = "" + e; if (D !== "none") { @@ -104020,7 +104091,7 @@ HC.parseImpl = function(t, e, r, n) { bypass: r }; } else if (u.color) { - var V = PKt(e); + var V = $Kt(e); return V ? { name: t, value: V, @@ -104131,7 +104202,7 @@ Fs.properties = Vs.properties; Fs.propertyGroups = Vs.propertyGroups; Fs.propertyGroupNames = Vs.propertyGroupNames; Fs.propertyGroupKeys = Vs.propertyGroupKeys; -var bir = { +var xir = { style: function(e) { if (e) { var r = this.setStyle(e); @@ -104146,7 +104217,7 @@ var bir = { updateStyle: function() { this.mutableElements().updateStyle(); } -}, xir = "single", R0 = { +}, wir = "single", R0 = { autolock: function(e) { if (e !== void 0) this._private.autolock = !!e; @@ -104170,7 +104241,7 @@ var bir = { }, selectionType: function(e) { var r = this._private; - if (r.selectionType == null && (r.selectionType = xir), e !== void 0) + if (r.selectionType == null && (r.selectionType = wir), e !== void 0) (e === "additive" || e === "single") && (r.selectionType = e); else return r.selectionType; @@ -104261,7 +104332,7 @@ var bir = { if (qt(e)) { var i = e; e = this.$(i); - } else if (OKt(e)) { + } else if (kKt(e)) { var s = e; n = { x1: s.x1, @@ -104535,7 +104606,7 @@ var eb = function(e) { max: o.maxZoom }); var h = function(g, m) { - var v = g.some(kKt); + var v = g.some(SKt); if (v) return mm.all(g).then(m); m(g); @@ -104697,10 +104768,10 @@ Kt(dS, { } }); dS.$id = dS.getElementById; -[cir, pir, $me, nR, c5, mir, iR, u5, bir, R0, J2].forEach(function(t) { +[uir, gir, $me, nR, c5, vir, iR, u5, xir, R0, J2].forEach(function(t) { Kt(dS, t); }); -var wir = { +var Oir = { fit: !0, directed: !1, padding: 30, @@ -104723,7 +104794,7 @@ var wir = { transform: function(e, r) { return r; } -}, Oir = { +}, kir = { maximal: !1, acyclic: !1 }, vp = function(e) { @@ -104732,7 +104803,7 @@ var wir = { return e.scratch("breadthfirst", r); }; function Bme(t) { - this.options = Kt({}, wir, Oir, t); + this.options = Kt({}, Oir, kir, t); } Bme.prototype.run = function() { var t = this.options, e = t, r = t.cy, n = e.eles, i = n.nodes().filter(function(se) { @@ -104898,7 +104969,7 @@ Bme.prototype.run = function() { }; return n.nodes().layoutPositions(this, e, ae), this; }; -var kir = { +var Sir = { fit: !0, padding: 30, boundingBox: void 0, @@ -104923,7 +104994,7 @@ var kir = { } }; function Fme(t) { - this.options = Kt({}, kir, t); + this.options = Kt({}, Sir, t); } Fme.prototype.run = function() { var t = this.options, e = t, r = t.cy, n = e.eles, i = e.counterclockwise !== void 0 ? !e.counterclockwise : e.clockwise, s = n.nodes().not(":parent"); @@ -104954,7 +105025,7 @@ Fme.prototype.run = function() { }; return n.nodes().layoutPositions(this, e, O), this; }; -var Sir = { +var Tir = { fit: !0, padding: 30, startAngle: 3 / 2 * Math.PI, @@ -104987,7 +105058,7 @@ var Sir = { } }; function zme(t) { - this.options = Kt({}, Sir, t); + this.options = Kt({}, Tir, t); } zme.prototype.run = function() { for (var t = this.options, e = t, r = e.counterclockwise !== void 0 ? !e.counterclockwise : e.clockwise, n = t.cy, i = e.eles, s = i.nodes().not(":parent"), a = za(e.boundingBox ? e.boundingBox : { @@ -105058,7 +105129,7 @@ zme.prototype.run = function() { return ee[K]; }), this; }; -var oA, Tir = { +var oA, Cir = { ready: function() { }, stop: function() { @@ -105095,7 +105166,7 @@ var oA, Tir = { minTemp: 1 }; function XC(t) { - this.options = Kt({}, Tir, t), this.options.layout = this; + this.options = Kt({}, Cir, t), this.options.layout = this; var e = this.options.eles.nodes(), r = this.options.eles.edges(), n = r.filter(function(i) { var s = i.source().data("id"), a = i.target().data("id"), o = e.some(function(u) { return u.data("id") === s; @@ -105112,12 +105183,12 @@ XC.prototype.run = function() { type: "layoutstart", layout: r }), t.debug === !0 ? oA = !0 : oA = !1; - var n = Cir(e, r, t); - oA && Air(n), t.randomize && Lir(n); + var n = Eir(e, r, t); + oA && Lir(n), t.randomize && Rir(n); var i = eh(), s = function() { - Rir(n, e, t), t.fit === !0 && e.fit(t.padding); + Mir(n, e, t), t.fit === !0 && e.fit(t.padding); }, a = function(d) { - return !(r.stopped || d >= t.numIter || (Mir(n, t), n.temperature = n.temperature * t.coolingFactor, n.temperature < t.minTemp)); + return !(r.stopped || d >= t.numIter || (Dir(n, t), n.temperature = n.temperature * t.coolingFactor, n.temperature < t.minTemp)); }, o = function() { if (t.animate === !0 || t.animate === !1) s(), r.one("layoutstop", t.stop), r.emit({ @@ -105154,7 +105225,7 @@ XC.prototype.stop = function() { XC.prototype.destroy = function() { return this.thread && this.thread.stop(), this; }; -var Cir = function(e, r, n) { +var Eir = function(e, r, n) { for (var i = n.eles.edges(), s = n.eles.nodes(), a = za(n.boundingBox ? n.boundingBox : { x1: 0, y1: 0, @@ -105204,7 +105275,7 @@ var Cir = function(e, r, n) { R.id = _.data("id"), R.sourceId = _.data("source"), R.targetId = _.data("target"); var $ = Pn(n.idealEdgeLength) ? n.idealEdgeLength(_) : n.idealEdgeLength, k = Pn(n.edgeElasticity) ? n.edgeElasticity(_) : n.edgeElasticity, N = o.idToIndex[R.sourceId], M = o.idToIndex[R.targetId], I = o.indexToGraph[N], D = o.indexToGraph[M]; if (I != D) { - for (var P = Eir(R.sourceId, R.targetId, o), F = o.graphSet[P], B = 0, v = o.layoutNodes[N]; F.indexOf(v.id) === -1; ) + for (var P = _ir(R.sourceId, R.targetId, o), F = o.graphSet[P], B = 0, v = o.layoutNodes[N]; F.indexOf(v.id) === -1; ) v = o.layoutNodes[o.idToIndex[v.parentId]], B++; for (v = o.layoutNodes[M]; F.indexOf(v.id) === -1; ) v = o.layoutNodes[o.idToIndex[v.parentId]], B++; @@ -105213,10 +105284,10 @@ var Cir = function(e, r, n) { R.idealLength = $, R.elasticity = k, o.layoutEdges.push(R); } return o; -}, Eir = function(e, r, n) { - var i = _ir(e, r, 0, n); +}, _ir = function(e, r, n) { + var i = Air(e, r, 0, n); return 2 > i.count ? 0 : i.graph; -}, _ir = function t(e, r, n, i) { +}, Air = function t(e, r, n, i) { var s = i.graphSet[n]; if (-1 < s.indexOf(e) && -1 < s.indexOf(r)) return { @@ -105239,7 +105310,7 @@ var Cir = function(e, r, n) { count: a, graph: n }; -}, Air, Lir = function(e, r) { +}, Lir, Rir = function(e, r) { for (var n = e.clientWidth, i = e.clientHeight, s = 0; s < e.nodeSize; s++) { var a = e.layoutNodes[s]; a.children.length === 0 && !a.isLocked && (a.positionX = Math.random() * n, a.positionY = Math.random() * i); @@ -105268,36 +105339,36 @@ var Cir = function(e, r, n) { y: l.positionY }; }; -}, Rir = function(e, r, n) { +}, Mir = function(e, r, n) { var i = n.layout, s = n.eles.nodes(), a = Vme(e, n, s); s.positions(a), e.ready !== !0 && (e.ready = !0, i.one("layoutready", n.ready), i.emit({ type: "layoutready", layout: this })); -}, Mir = function(e, r, n) { - Dir(e, r), Pir(e), $ir(e, r), Bir(e), Fir(e); -}, Dir = function(e, r) { +}, Dir = function(e, r, n) { + Nir(e, r), $ir(e), Bir(e, r), Fir(e), zir(e); +}, Nir = function(e, r) { for (var n = 0; n < e.graphSet.length; n++) for (var i = e.graphSet[n], s = i.length, a = 0; a < s; a++) for (var o = e.layoutNodes[e.idToIndex[i[a]]], l = a + 1; l < s; l++) { var u = e.layoutNodes[e.idToIndex[i[l]]]; - Nir(o, u, e, r); + Iir(o, u, e, r); } }, wX = function(e) { return -e + 2 * e * Math.random(); -}, Nir = function(e, r, n, i) { +}, Iir = function(e, r, n, i) { var s = e.cmptId, a = r.cmptId; if (!(s !== a && !n.isCompound)) { var o = r.positionX - e.positionX, l = r.positionY - e.positionY, u = 1; o === 0 && l === 0 && (o = wX(u), l = wX(u)); - var h = Iir(e, r, o, l); + var h = Pir(e, r, o, l); if (h > 0) var f = i.nodeOverlap * h, d = Math.sqrt(o * o + l * l), p = f * o / d, g = f * l / d; else var m = pS(e, o, l), v = pS(r, -1 * o, -1 * l), y = v.x - m.x, b = v.y - m.y, w = y * y + b * b, d = Math.sqrt(w), f = (e.nodeRepulsion + r.nodeRepulsion) / w, p = f * y / d, g = f * b / d; e.isLocked || (e.offsetX -= p, e.offsetY -= g), r.isLocked || (r.offsetX += p, r.offsetY += g); } -}, Iir = function(e, r, n, i) { +}, Pir = function(e, r, n, i) { if (n > 0) var s = e.maxX - r.minX; else @@ -105310,7 +105381,7 @@ var Cir = function(e, r, n) { }, pS = function(e, r, n) { var i = e.positionX, s = e.positionY, a = e.height || 1, o = e.width || 1, l = n / r, u = a / o, h = {}; return r === 0 && 0 < n || r === 0 && 0 > n ? (h.x = i, h.y = s + a / 2, h) : 0 < r && -1 * u <= l && l <= u ? (h.x = i + o / 2, h.y = s + o * n / 2 / r, h) : 0 > r && -1 * u <= l && l <= u ? (h.x = i - o / 2, h.y = s - o * n / 2 / r, h) : 0 < n && (l <= -1 * u || l >= u) ? (h.x = i + a * r / 2 / n, h.y = s + a / 2, h) : (0 > n && (l <= -1 * u || l >= u) && (h.x = i - a * r / 2 / n, h.y = s - a / 2), h); -}, Pir = function(e, r) { +}, $ir = function(e, r) { for (var n = 0; n < e.edgeSize; n++) { var i = e.layoutEdges[n], s = e.idToIndex[i.sourceId], a = e.layoutNodes[s], o = e.idToIndex[i.targetId], l = e.layoutNodes[o], u = l.positionX - a.positionX, h = l.positionY - a.positionY; if (!(u === 0 && h === 0)) { @@ -105322,7 +105393,7 @@ var Cir = function(e, r, n) { a.isLocked || (a.offsetX += y, a.offsetY += b), l.isLocked || (l.offsetX -= y, l.offsetY -= b); } } -}, $ir = function(e, r) { +}, Bir = function(e, r) { if (r.gravity !== 0) for (var n = 1, i = 0; i < e.graphSet.length; i++) { var s = e.graphSet[i], a = s.length; @@ -105341,7 +105412,7 @@ var Cir = function(e, r, n) { } } } -}, Bir = function(e, r) { +}, Fir = function(e, r) { var n = [], i = 0, s = -1; for (n.push.apply(n, e.graphSet[0]), s += e.graphSet[0].length; i <= s; ) { var a = n[i++], o = e.idToIndex[a], l = e.layoutNodes[o], u = l.children; @@ -105353,7 +105424,7 @@ var Cir = function(e, r, n) { l.offsetX = 0, l.offsetY = 0; } } -}, Fir = function(e, r) { +}, zir = function(e, r) { for (var n = 0; n < e.nodeSize; n++) { var i = e.layoutNodes[n]; 0 < i.children.length && (i.maxX = void 0, i.minX = void 0, i.maxY = void 0, i.minY = void 0); @@ -105361,15 +105432,15 @@ var Cir = function(e, r, n) { for (var n = 0; n < e.nodeSize; n++) { var i = e.layoutNodes[n]; if (!(0 < i.children.length || i.isLocked)) { - var s = zir(i.offsetX, i.offsetY, e.temperature); - i.positionX += s.x, i.positionY += s.y, i.offsetX = 0, i.offsetY = 0, i.minX = i.positionX - i.width, i.maxX = i.positionX + i.width, i.minY = i.positionY - i.height, i.maxY = i.positionY + i.height, Vir(i, e); + var s = Vir(i.offsetX, i.offsetY, e.temperature); + i.positionX += s.x, i.positionY += s.y, i.offsetX = 0, i.offsetY = 0, i.minX = i.positionX - i.width, i.maxX = i.positionX + i.width, i.minY = i.positionY - i.height, i.maxY = i.positionY + i.height, Uir(i, e); } } for (var n = 0; n < e.nodeSize; n++) { var i = e.layoutNodes[n]; 0 < i.children.length && !i.isLocked && (i.positionX = (i.maxX + i.minX) / 2, i.positionY = (i.maxY + i.minY) / 2, i.width = i.maxX - i.minX, i.height = i.maxY - i.minY); } -}, zir = function(e, r, n) { +}, Vir = function(e, r, n) { var i = Math.sqrt(e * e + r * r); if (i > n) var s = { @@ -105382,7 +105453,7 @@ var Cir = function(e, r, n) { y: r }; return s; -}, Vir = function t(e, r) { +}, Uir = function t(e, r) { var n = e.parentId; if (n != null) { var i = r.layoutNodes[r.idToIndex[n]], s = !1; @@ -105418,7 +105489,7 @@ var Cir = function(e, r, n) { p += h.w + r.componentSpacing, m += h.w + r.componentSpacing, v = Math.max(v, h.h), m > y && (g += v + r.componentSpacing, p = 0, m = 0, v = 0); } } -}, Uir = { +}, qir = { fit: !0, padding: 30, boundingBox: void 0, @@ -105445,7 +105516,7 @@ var Cir = function(e, r, n) { } }; function Ume(t) { - this.options = Kt({}, Uir, t); + this.options = Kt({}, qir, t); } Ume.prototype.run = function() { var t = this.options, e = t, r = t.cy, n = e.eles, i = n.nodes().not(":parent"); @@ -105540,14 +105611,14 @@ Ume.prototype.run = function() { } return this; }; -var qir = { +var Qir = { ready: function() { }, stop: function() { } }; function YP(t) { - this.options = Kt({}, qir, t); + this.options = Kt({}, Qir, t); } YP.prototype.run = function() { var t = this.options, e = t.eles, r = this; @@ -105561,7 +105632,7 @@ YP.prototype.run = function() { YP.prototype.stop = function() { return this; }; -var Qir = { +var Yir = { positions: void 0, zoom: void 0, pan: void 0, @@ -105581,13 +105652,13 @@ var Qir = { } }; function qme(t) { - this.options = Kt({}, Qir, t); + this.options = Kt({}, Yir, t); } qme.prototype.run = function() { var t = this.options, e = t.eles, r = e.nodes(), n = Pn(t.positions); function i(s) { if (t.positions == null) - return HJt(s.position()); + return XJt(s.position()); if (n) return t.positions(s); var a = t.positions[s._private.data.id]; @@ -105598,7 +105669,7 @@ qme.prototype.run = function() { return s.locked() || o == null ? !1 : o; }), this; }; -var Yir = { +var Wir = { fit: !0, padding: 30, boundingBox: void 0, @@ -105615,7 +105686,7 @@ var Yir = { } }; function Qme(t) { - this.options = Kt({}, Yir, t); + this.options = Kt({}, Wir, t); } Qme.prototype.run = function() { var t = this.options, e = t.cy, r = t.eles, n = za(t.boundingBox ? t.boundingBox : { @@ -105631,7 +105702,7 @@ Qme.prototype.run = function() { }; return r.nodes().layoutPositions(this, t, i), this; }; -var Wir = [{ +var Gir = [{ name: "breadthfirst", impl: Bme }, { @@ -105889,11 +105960,11 @@ np.findNearestElements = function(t, e, r, n) { var A = T._private, E = A.rscratch, L = T.pstyle("width").pfValue, _ = T.pstyle("arrow-scale").value, R = L / 2 + h, $ = R * R, k = R * 2, D = A.source, P = A.target, N; if (E.edgeType === "segments" || E.edgeType === "straight" || E.edgeType === "haystack") { for (var M = E.allpts, I = 0; I + 3 < M.length; I += 2) - if (oer(t, e, M[I], M[I + 1], M[I + 2], M[I + 3], k) && $ > (N = fer(t, e, M[I], M[I + 1], M[I + 2], M[I + 3]))) + if (ler(t, e, M[I], M[I + 1], M[I + 2], M[I + 3], k) && $ > (N = der(t, e, M[I], M[I + 1], M[I + 2], M[I + 3]))) return v(T, N), !0; } else if (E.edgeType === "bezier" || E.edgeType === "multibezier" || E.edgeType === "self" || E.edgeType === "compound") { for (var M = E.allpts, I = 0; I + 5 < E.allpts.length; I += 4) - if (ler(t, e, M[I], M[I + 1], M[I + 2], M[I + 3], M[I + 4], M[I + 5], k) && $ > (N = her(t, e, M[I], M[I + 1], M[I + 2], M[I + 3], M[I + 4], M[I + 5]))) + if (cer(t, e, M[I], M[I + 1], M[I + 2], M[I + 3], M[I + 4], M[I + 5], k) && $ > (N = fer(t, e, M[I], M[I + 1], M[I + 2], M[I + 3], M[I + 4], M[I + 5]))) return v(T, N), !0; } for (var D = D || A.source, P = P || A.target, F = i.getArrowWidth(L, _), B = [{ @@ -105989,7 +106060,7 @@ np.getAllInBox = function(t, e, r, n) { continue; if (y.edgeType === "bezier" || y.edgeType === "multibezier" || y.edgeType === "self" || y.edgeType === "compound" || y.edgeType === "segments" || y.edgeType === "haystack") { for (var b = v.rstyle.bezierPts || v.rstyle.linePts || v.rstyle.haystackPts, w = !0, O = 0; O < b.length; O++) - if (!aer(h, b[O])) { + if (!oer(h, b[O])) { w = !1; break; } @@ -106058,10 +106129,10 @@ gS.getArrowWidth = gS.getArrowHeight = function(t, e) { }; var sR, aR, ic = {}, ko = {}, TX, CX, kd, h5, uu, id, hd, rc, yp, QO, Wme, Gme, oR, lR, EX, _X = function(e, r, n) { n.x = r.x - e.x, n.y = r.y - e.y, n.len = Math.sqrt(n.x * n.x + n.y * n.y), n.nx = n.x / n.len, n.ny = n.y / n.len, n.ang = Math.atan2(n.ny, n.nx); -}, Gir = function(e, r) { +}, Hir = function(e, r) { r.x = e.x * -1, r.y = e.y * -1, r.nx = e.nx * -1, r.ny = e.ny * -1, r.ang = e.ang > 0 ? -(Math.PI - e.ang) : Math.PI + e.ang; -}, Hir = function(e, r, n, i, s) { - if (e !== EX ? _X(r, e, ic) : Gir(ko, ic), _X(r, n, ko), TX = ic.nx * ko.ny - ic.ny * ko.nx, CX = ic.nx * ko.nx - ic.ny * -ko.ny, uu = Math.asin(Math.max(-1, Math.min(1, TX))), Math.abs(uu) < 1e-6) { +}, Xir = function(e, r, n, i, s) { + if (e !== EX ? _X(r, e, ic) : Hir(ko, ic), _X(r, n, ko), TX = ic.nx * ko.ny - ic.ny * ko.nx, CX = ic.nx * ko.nx - ic.ny * -ko.ny, uu = Math.asin(Math.max(-1, Math.min(1, TX))), Math.abs(uu) < 1e-6) { sR = r.x, aR = r.y, hd = yp = 0; return; } @@ -106083,7 +106154,7 @@ function GP(t, e, r, n) { startAngle: void 0, endAngle: void 0, counterClockwise: void 0 - } : (Hir(t, e, r, n, i), { + } : (Xir(t, e, r, n, i), { cx: sR, cy: aR, radius: hd, @@ -106617,7 +106688,7 @@ Kx.getTargetEndpoint = function(t) { } }; var HP = {}; -function Xir(t, e, r) { +function Zir(t, e, r) { for (var n = function(u, h, f, d) { return Vi(u, h, f, d); }, i = e._private, s = i.rstyle.bezierPts, a = 0; a < t.bezierProjPcts.length; a++) { @@ -106633,7 +106704,7 @@ HP.storeEdgeProjections = function(t) { if (e.rstyle.bezierPts = null, e.rstyle.linePts = null, e.rstyle.haystackPts = null, n === "multibezier" || n === "bezier" || n === "self" || n === "compound") { e.rstyle.bezierPts = []; for (var i = 0; i + 5 < r.allpts.length; i += 4) - Xir(this, t, r.allpts.slice(i, i + 6)); + Zir(this, t, r.allpts.slice(i, i + 6)); } else if (n === "segments") for (var s = e.rstyle.linePts = [], i = 0; i + 1 < r.allpts.length; i += 2) s.push({ @@ -106689,7 +106760,7 @@ var Zme = function(e, r) { }, jme = function(e, r) { var n = r.x - e.x, i = r.y - e.y; return Zme(n, i); -}, Zir = function(e, r, n, i) { +}, jir = function(e, r, n, i) { var s = H2(0, i - 1e-3, 1), a = H2(0, i + 1e-3, 1), o = dg(e, r, n, s), l = dg(e, r, n, a); return jme(o, l); }; @@ -106777,7 +106848,7 @@ nu.recalculateEdgeLabelProjections = function(t) { break; } var A = v.cp, E = v.segment, L = (g - y) / E.length, _ = E.t1 - E.t0, R = p ? E.t0 + _ * L : E.t1 - _ * L; - R = H2(0, R, 1), e = dg(A.p0, A.p1, A.p2, R), d = Zir(A.p0, A.p1, A.p2, R); + R = H2(0, R, 1), e = dg(A.p0, A.p1, A.p2, R), d = jir(A.p0, A.p1, A.p2, R); break; } case "straight": @@ -106798,7 +106869,7 @@ nu.recalculateEdgeLabelProjections = function(t) { }), k = _0(M, I), N = $, $ += k, !($ >= g)); P += 2) ; var F = g - N, B = F / k; - B = H2(0, B, 1), e = ter(M, I, B), d = jme(M, I); + B = H2(0, B, 1), e = rer(M, I, B), d = jme(M, I); break; } } @@ -107040,7 +107111,7 @@ Om.registerBinding = function(t, e, r, n) { return s.on.apply(s, i); }; Om.binder = function(t) { - var e = this, r = e.cy.window(), n = t === r || t === r.document || t === r.document.body || wKt(t); + var e = this, r = e.cy.window(), n = t === r || t === r.document || t === r.document.body || OKt(t); if (e.supportsPassiveEvents == null) { var i = !1; try { @@ -107991,7 +108062,7 @@ fh.generateEllipse = function() { this.renderer.nodeShapeImpl(this.name, e, r, n, i, s); }, intersectLine: function(e, r, n, i, s, a, o, l) { - return per(s, a, e, r, n / 2 + o, i / 2 + o); + return ger(s, a, e, r, n / 2 + o, i / 2 + o); }, checkPoint: function(e, r, n, i, s, a, o, l) { return Bd(e, r, i, s, a, o, n); @@ -108023,10 +108094,10 @@ fh.generateRoundPolygon = function(t, e) { this.renderer.nodeShapeImpl("round-polygon", n, i, s, a, o, this.points, this.getOrCreateCorners(i, s, a, o, l, u, "drawCorners")); }, intersectLine: function(n, i, s, a, o, l, u, h, f) { - return ger(o, l, this.points, n, i, s, a, u, this.getOrCreateCorners(n, i, s, a, h, f, "corners")); + return mer(o, l, this.points, n, i, s, a, u, this.getOrCreateCorners(n, i, s, a, h, f, "corners")); }, checkPoint: function(n, i, s, a, o, l, u, h, f) { - return der(n, i, this.points, l, u, a, o, this.getOrCreateCorners(l, u, a, o, h, f, "corners")); + return per(n, i, this.points, l, u, a, o, this.getOrCreateCorners(l, u, a, o, h, f, "corners")); } }; }; @@ -108138,7 +108209,7 @@ fh.generateBarrel = function() { for (var d = this.generateBarrelBezierPts(i, s, a, o), p = function(A, E, L) { var _ = L[4], R = L[2], $ = L[0], k = L[5], N = L[1], M = Math.min(_, $), I = Math.max(_, $), D = Math.min(k, N), P = Math.max(k, N); if (M <= A && A <= I && D <= E && E <= P) { - var F = mer(_, R, $), B = cer(F[0], F[1], F[2], A), V = B.filter(function(Q) { + var F = ver(_, R, $), B = uer(F[0], F[1], F[2], A), V = B.filter(function(Q) { return 0 <= Q && Q <= 1; }); if (V.length > 0) @@ -108254,9 +108325,9 @@ Jx.startRenderLoop = function() { oS(r); } }; -var jir = function(e) { +var Kir = function(e) { this.init(e); -}, tve = jir, km = tve.prototype; +}, tve = Kir, km = tve.prototype; km.clientFunctions = ["redrawHint", "render", "renderTo", "matchCanvasSize", "nodeShapeImpl", "arrowShapeImpl"]; km.init = function(t) { var e = this; @@ -108364,7 +108435,7 @@ var lA = 1e3 / 60, rve = { } }; } -}, Kir = /* @__PURE__ */ function() { +}, Jir = /* @__PURE__ */ function() { function t(e) { var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : lS; CP(this, t), this.idsByKey = new Cc(), this.keyForId = new Cc(), this.cachesByLvl = new Cc(), this.lvls = [], this.getKey = e, this.doesEleInvalidateKey = r; @@ -108487,11 +108558,11 @@ var lA = 1e3 / 60, rve = { return s && this.invalidateKey(i), s || this.getNumberOfIdsForKey(i) === 0; } }]), t; -}(), MX = 25, YO = 50, f5 = -4, cR = 3, Jir = 7.99, esr = 8, tsr = 1024, rsr = 1024, nsr = 1024, isr = 0.2, ssr = 0.8, asr = 10, osr = 0.15, lsr = 0.1, csr = 0.9, usr = 0.9, hsr = 100, fsr = 1, Up = { +}(), MX = 25, YO = 50, f5 = -4, cR = 3, esr = 7.99, tsr = 8, rsr = 1024, nsr = 1024, isr = 1024, ssr = 0.2, asr = 0.8, osr = 10, lsr = 0.15, csr = 0.1, usr = 0.9, hsr = 0.9, fsr = 100, dsr = 1, Up = { dequeue: "dequeue", downscale: "downscale", highQuality: "highQuality" -}, dsr = ws({ +}, psr = ws({ getKey: null, doesEleInvalidateKey: lS, drawElement: null, @@ -108504,8 +108575,8 @@ var lA = 1e3 / 60, rve = { }), Fv = function(e, r) { var n = this; n.renderer = e, n.onDequeues = []; - var i = dsr(r); - Kt(n, i), n.lookup = new Kir(i.getKey, i.doesEleInvalidateKey), n.setupDequeueing(); + var i = psr(r); + Kt(n, i), n.lookup = new Jir(i.getKey, i.doesEleInvalidateKey), n.setupDequeueing(); }, Fi = Fv.prototype; Fi.reasons = Up; Fi.getTextureQueue = function(t) { @@ -108532,7 +108603,7 @@ Fi.getElement = function(t, e, r, n, i) { return null; if (n == null && (n = Math.ceil(DP(o * r))), n < f5) n = f5; - else if (o >= Jir || n > cR) + else if (o >= esr || n > cR) return null; var u = Math.pow(2, n), h = e.h * u, f = e.w * u, d = a.eleTextBiggerThanMin(t, u); if (!this.isVisible(t, d)) @@ -108541,7 +108612,7 @@ Fi.getElement = function(t, e, r, n, i) { if (p && p.invalidated && (p.invalidated = !1, p.texture.invalidatedWidth -= p.width), p) return p; var g; - if (h <= MX ? g = MX : h <= YO ? g = YO : g = Math.ceil(h / YO) * YO, h > nsr || f > rsr) + if (h <= MX ? g = MX : h <= YO ? g = YO : g = Math.ceil(h / YO) * YO, h > isr || f > nsr) return null; var m = s.getTextureQueue(g), v = m[m.length - 2], y = function() { return s.recycleTexture(g, f) || s.addTexture(g, f); @@ -108590,7 +108661,7 @@ Fi.getElement = function(t, e, r, n, i) { width: f, height: h, scaledLabelShown: d - }, v.usedWidth += Math.ceil(f + esr), v.eleCaches.push(p), l.set(t, n, p), s.checkTextureFullness(v), p; + }, v.usedWidth += Math.ceil(f + tsr), v.eleCaches.push(p), l.set(t, n, p), s.checkTextureFullness(v), p; }; Fi.invalidateElements = function(t) { for (var e = 0; e < t.length; e++) @@ -108613,11 +108684,11 @@ Fi.invalidateElement = function(t) { } }; Fi.checkTextureUtility = function(t) { - t.invalidatedWidth >= isr * t.width && this.retireTexture(t); + t.invalidatedWidth >= ssr * t.width && this.retireTexture(t); }; Fi.checkTextureFullness = function(t) { var e = this, r = e.getTextureQueue(t.height); - t.usedWidth / t.width > ssr && t.fullnessChecks >= asr ? Mf(r, t) : t.fullnessChecks++; + t.usedWidth / t.width > asr && t.fullnessChecks >= osr ? Mf(r, t) : t.fullnessChecks++; }; Fi.retireTexture = function(t) { var e = this, r = t.height, n = e.getTextureQueue(r), i = this.lookup; @@ -108632,7 +108703,7 @@ Fi.retireTexture = function(t) { }; Fi.addTexture = function(t, e) { var r = this, n = r.getTextureQueue(t), i = {}; - return n.push(i), i.eleCaches = [], i.height = t, i.width = Math.max(tsr, e), i.usedWidth = 0, i.invalidatedWidth = 0, i.fullnessChecks = 0, i.canvas = r.renderer.makeOffscreenCanvas(i.width, i.height), i.context = i.canvas.getContext("2d"), i; + return n.push(i), i.eleCaches = [], i.height = t, i.width = Math.max(rsr, e), i.usedWidth = 0, i.invalidatedWidth = 0, i.fullnessChecks = 0, i.canvas = r.renderer.makeOffscreenCanvas(i.width, i.height), i.context = i.canvas.getContext("2d"), i; }; Fi.recycleTexture = function(t, e) { for (var r = this, n = r.getTextureQueue(t), i = r.getRetiredTextureQueue(t), s = 0; s < i.length; s++) { @@ -108656,7 +108727,7 @@ Fi.queueElement = function(t, e) { } }; Fi.dequeue = function(t) { - for (var e = this, r = e.getElementQueue(), n = e.getElementKeyToQueue(), i = [], s = e.lookup, a = 0; a < fsr && r.size() > 0; a++) { + for (var e = this, r = e.getElementQueue(), n = e.getElementKeyToQueue(), i = [], s = e.lookup, a = 0; a < dsr && r.size() > 0; a++) { var o = r.pop(), l = o.key, u = o.eles[0], h = s.hasCache(u, o.level); if (n[l] = null, h) continue; @@ -108677,11 +108748,11 @@ Fi.offDequeue = function(t) { Mf(this.onDequeues, t); }; Fi.setupDequeueing = rve.setupDequeueing({ - deqRedrawThreshold: hsr, - deqCost: osr, - deqAvgCost: lsr, - deqNoDrawCost: csr, - deqFastCost: usr, + deqRedrawThreshold: fsr, + deqCost: lsr, + deqAvgCost: csr, + deqNoDrawCost: usr, + deqFastCost: hsr, deq: function(e, r, n) { return e.dequeue(r, n); }, @@ -108704,21 +108775,21 @@ Fi.setupDequeueing = rve.setupDequeueing({ return e.renderer.beforeRenderPriorities.eleTxrDeq; } }); -var psr = 1, py = -4, mS = 2, gsr = 3.99, msr = 50, vsr = 50, ysr = 0.15, bsr = 0.1, xsr = 0.9, wsr = 0.9, Osr = 1, DX = 250, ksr = 4e3 * 4e3, Ssr = !0, nve = function(e) { +var gsr = 1, py = -4, mS = 2, msr = 3.99, vsr = 50, ysr = 50, bsr = 0.15, xsr = 0.1, wsr = 0.9, Osr = 0.9, ksr = 1, DX = 250, Ssr = 4e3 * 4e3, Tsr = !0, nve = function(e) { var r = this, n = r.renderer = e, i = n.cy; r.layersByLevel = {}, r.firstGet = !0, r.lastInvalidationTime = eh() - 2 * DX, r.skipping = !1, r.eleTxrDeqs = i.collection(), r.scheduleElementRefinement = PC(function() { r.refineElementTextures(r.eleTxrDeqs), r.eleTxrDeqs.unmerge(r.eleTxrDeqs); - }, vsr), n.beforeRender(function(a, o) { + }, ysr), n.beforeRender(function(a, o) { o - r.lastInvalidationTime <= DX ? r.skipping = !0 : r.skipping = !1; }, n.beforeRenderPriorities.lyrTxrSkip); var s = function(o, l) { return l.reqs - o.reqs; }; r.layersQueue = new Xx(s), r.setupDequeueing(); -}, Os = nve.prototype, NX = 0, Tsr = Math.pow(2, 53) - 1; +}, Os = nve.prototype, NX = 0, Csr = Math.pow(2, 53) - 1; Os.makeLayer = function(t, e) { var r = Math.pow(2, e), n = Math.ceil(t.w * r), i = Math.ceil(t.h * r), s = this.renderer.makeOffscreenCanvas(n, i), a = { - id: NX = ++NX % Tsr, + id: NX = ++NX % Csr, bb: t, level: e, width: n, @@ -108736,7 +108807,7 @@ Os.getLayers = function(t, e, r) { if (n.firstGet = !1, r == null) { if (r = Math.ceil(DP(a * e)), r < py) r = py; - else if (a >= gsr || r > mS) + else if (a >= msr || r > mS) return null; } n.validateLayersElesOrdering(r, t); @@ -108771,7 +108842,7 @@ Os.getLayers = function(t, e, r) { var _ = L.after; m(); var R = f.w * u * (f.h * u); - if (R > ksr) + if (R > Ssr) return null; var $ = n.makeLayer(f, r); if (_ != null) { @@ -108783,7 +108854,7 @@ Os.getLayers = function(t, e, r) { }; if (n.skipping && !o) return null; - for (var y = null, b = t.length / psr, w = !o, O = 0; O < t.length; O++) { + for (var y = null, b = t.length / gsr, w = !o, O = 0; O < t.length; O++) { var S = t[O], C = S._private.rscratch, T = C.imgLayerCaches = C.imgLayerCaches || {}, A = T[r]; if (A) { y = A; @@ -108803,7 +108874,7 @@ Os.getEleLevelForLayerLevel = function(t, e) { }; Os.drawEleInLayer = function(t, e, r, n) { var i = this, s = this.renderer, a = t.context, o = e.boundingBox(); - o.w === 0 || o.h === 0 || !e.visible() || (r = i.getEleLevelForLayerLevel(r, n), s.setImgSmoothing(a, !1), s.drawCachedElement(a, e, null, null, r, Ssr), s.setImgSmoothing(a, !0)); + o.w === 0 || o.h === 0 || !e.visible() || (r = i.getEleLevelForLayerLevel(r, n), s.setImgSmoothing(a, !1), s.drawCachedElement(a, e, null, null, r, Tsr), s.setImgSmoothing(a, !0)); }; Os.levelIsComplete = function(t, e) { var r = this, n = r.layersByLevel[t]; @@ -108894,7 +108965,7 @@ Os.queueLayer = function(t, e) { } }; Os.dequeue = function(t) { - for (var e = this, r = e.layersQueue, n = [], i = 0; i < Osr && r.size() !== 0; ) { + for (var e = this, r = e.layersQueue, n = [], i = 0; i < ksr && r.size() !== 0; ) { var s = r.peek(); if (s.replacement) { r.pop(); @@ -108929,11 +109000,11 @@ Os.requestRedraw = PC(function() { t.redrawHint("eles", !0), t.redrawHint("drag", !0), t.redraw(); }, 100); Os.setupDequeueing = rve.setupDequeueing({ - deqRedrawThreshold: msr, - deqCost: ysr, - deqAvgCost: bsr, - deqNoDrawCost: xsr, - deqFastCost: wsr, + deqRedrawThreshold: vsr, + deqCost: bsr, + deqAvgCost: xsr, + deqNoDrawCost: wsr, + deqFastCost: Osr, deq: function(e, r) { return e.dequeue(r); }, @@ -108944,13 +109015,13 @@ Os.setupDequeueing = rve.setupDequeueing({ } }); var ive = {}, IX; -function Csr(t, e) { +function Esr(t, e) { for (var r = 0; r < e.length; r++) { var n = e[r]; t.lineTo(n.x, n.y); } } -function Esr(t, e, r) { +function _sr(t, e, r) { for (var n, i = 0; i < e.length; i++) { var s = e[i]; i === 0 && (n = s), t.lineTo(s.x, s.y); @@ -108971,7 +109042,7 @@ function PX(t, e, r) { } t.closePath && t.closePath(); } -function _sr(t, e, r, n, i) { +function Asr(t, e, r, n, i) { t.beginPath && t.beginPath(), t.arc(r, n, i, 0, Math.PI * 2, !1); var s = e, a = s[0]; t.moveTo(a.x, a.y); @@ -108981,17 +109052,17 @@ function _sr(t, e, r, n, i) { } t.closePath && t.closePath(); } -function Asr(t, e, r, n) { +function Lsr(t, e, r, n) { t.arc(e, r, n, 0, Math.PI * 2, !1); } ive.arrowShapeImpl = function(t) { return (IX || (IX = { - polygon: Csr, - "triangle-backcurve": Esr, + polygon: Esr, + "triangle-backcurve": _sr, "triangle-tee": PX, - "circle-triangle": _sr, + "circle-triangle": Asr, "triangle-cross": PX, - circle: Asr + circle: Lsr }))[t]; }; var iu = {}; @@ -109029,15 +109100,15 @@ iu.drawCachedElementPortion = function(t, e, r, n, i, s, a, o) { r.drawElement(t, e); } }; -var Lsr = function() { +var Rsr = function() { return 0; -}, Rsr = function(e, r) { - return e.getTextAngle(r, null); }, Msr = function(e, r) { - return e.getTextAngle(r, "source"); + return e.getTextAngle(r, null); }, Dsr = function(e, r) { - return e.getTextAngle(r, "target"); + return e.getTextAngle(r, "source"); }, Nsr = function(e, r) { + return e.getTextAngle(r, "target"); +}, Isr = function(e, r) { return r.effectiveOpacity(); }, cA = function(e, r) { return r.pstyle("text-opacity").pfValue * r.effectiveOpacity(); @@ -109046,7 +109117,7 @@ iu.drawCachedElement = function(t, e, r, n, i, s) { var a = this, o = a.data, l = o.eleTxrCache, u = o.lblTxrCache, h = o.slbTxrCache, f = o.tlbTxrCache, d = e.boundingBox(), p = s === !0 ? l.reasons.highQuality : null; if (!(d.w === 0 || d.h === 0 || !e.visible()) && (!n || NP(d, n))) { var g = e.isEdge(), m = e.element()._private.rscratch.badLine; - a.drawElementUnderlay(t, e), a.drawCachedElementPortion(t, e, l, r, i, p, Lsr, Nsr), (!g || !m) && a.drawCachedElementPortion(t, e, u, r, i, p, Rsr, cA), g && !m && (a.drawCachedElementPortion(t, e, h, r, i, p, Msr, cA), a.drawCachedElementPortion(t, e, f, r, i, p, Dsr, cA)), a.drawElementOverlay(t, e); + a.drawElementUnderlay(t, e), a.drawCachedElementPortion(t, e, l, r, i, p, Rsr, Isr), (!g || !m) && a.drawCachedElementPortion(t, e, u, r, i, p, Msr, cA), g && !m && (a.drawCachedElementPortion(t, e, h, r, i, p, Dsr, cA), a.drawCachedElementPortion(t, e, f, r, i, p, Nsr, cA)), a.drawElementOverlay(t, e); } }; iu.drawElements = function(t, e) { @@ -109606,7 +109677,7 @@ Sm.drawPie = function(t, e, r, n) { g === 0 || f >= 1 || f + y > 1 || (t.beginPath(), t.moveTo(a, o), t.arc(a, o, h, b, O), t.closePath(), this.colorFillStyle(t, m[0], m[1], m[2], v), t.fill(), f += y); } }; -var yo = {}, Isr = 100; +var yo = {}, Psr = 100; yo.getPixelRatio = function() { var t = this.data.contexts[0]; if (this.forcedPixelRatio != null) @@ -109849,7 +109920,7 @@ yo.render = function(t) { } a.prevViewport = T, a.clearingMotionBlur && (a.clearingMotionBlur = !1, a.motionBlurCleared = !0, a.motionBlur = !0), d && (a.motionBlurTimeout = setTimeout(function() { a.motionBlurTimeout = null, a.clearedForMotionBlur[a.NODE] = !1, a.clearedForMotionBlur[a.DRAG] = !1, a.motionBlur = !1, a.clearingMotionBlur = !f, a.mbFrames = 0, h[a.NODE] = !0, h[a.DRAG] = !0, a.redraw(); - }, Isr)), e || l.emit("render"); + }, Psr)), e || l.emit("render"); }; var Wf = {}; Wf.drawPolygonPath = function(t, e, r, n, i, s) { @@ -109924,7 +109995,7 @@ ew.bufferCanvasImage = function(t) { } return d; }; -function Psr(t, e) { +function $sr(t, e) { for (var r = atob(t), n = new ArrayBuffer(r.length), i = new Uint8Array(n), s = 0; s < r.length; s++) i[s] = r.charCodeAt(s); return new Blob([n], { @@ -109951,7 +110022,7 @@ function lve(t, e, r) { } }); case "blob": - return Psr(FX(n()), r); + return $sr(FX(n()), r); case "base64": return FX(n()); case "base64uri": @@ -109987,7 +110058,7 @@ cve.nodeShapeImpl = function(t, e, r, n, i, s, a, o) { return this.drawBarrelPath(e, r, n, i, s); } }; -var $sr = uve, Rr = uve.prototype; +var Bsr = uve, Rr = uve.prototype; Rr.CANVAS_LAYERS = 3; Rr.SELECT_BOX = 0; Rr.DRAG = 1; @@ -110018,7 +110089,7 @@ function uve(t) { "-webkit-tap-highlight-color": "rgba(0,0,0,0)", "outline-style": "none" }; - SKt() && (l["-ms-touch-action"] = "none", l["touch-action"] = "none"); + TKt() && (l["-ms-touch-action"] = "none", l["touch-action"] = "none"); for (var u = 0; u < Rr.CANVAS_LAYERS; u++) { var h = e.data.canvases[u] = n.createElement("canvas"); e.data.contexts[u] = h.getContext("2d"), Object.keys(l).forEach(function(ie) { @@ -110173,14 +110244,14 @@ Rr.redrawHint = function(t, e) { break; } }; -var Bsr = typeof Path2D < "u"; +var Fsr = typeof Path2D < "u"; Rr.path2dEnabled = function(t) { if (t === void 0) return this.pathsEnabled; this.pathsEnabled = !!t; }; Rr.usePaths = function() { - return Bsr && this.pathsEnabled; + return Fsr && this.pathsEnabled; }; Rr.setImgSmoothing = function(t, e) { t.imageSmoothingEnabled != null ? t.imageSmoothingEnabled = e : (t.webkitImageSmoothingEnabled = e, t.mozImageSmoothingEnabled = e, t.msImageSmoothingEnabled = e); @@ -110201,7 +110272,7 @@ Rr.makeOffscreenCanvas = function(t, e) { [ive, iu, dh, XP, ip, Sm, yo, Wf, ew, cve].forEach(function(t) { Kt(Rr, t); }); -var Fsr = [{ +var zsr = [{ name: "null", impl: Yme }, { @@ -110209,13 +110280,13 @@ var Fsr = [{ impl: tve }, { name: "canvas", - impl: $sr -}], zsr = [{ + impl: Bsr +}], Vsr = [{ type: "layout", - extensions: Wir + extensions: Gir }, { type: "renderer", - extensions: Fsr + extensions: zsr }], hve = {}, fve = {}; function dve(t, e, r) { var n = r, i = function(A) { @@ -110328,14 +110399,14 @@ function pve(t, e) { keys: [t, e] }); } -function Vsr(t, e, r, n, i) { +function Usr(t, e, r, n, i) { return F1e({ map: fve, keys: [t, e, r, n], value: i }); } -function Usr(t, e, r, n) { +function qsr(t, e, r, n) { return z1e({ map: fve, keys: [t, e, r, n] @@ -110347,13 +110418,13 @@ var fR = function() { if (arguments.length === 3) return dve.apply(null, arguments); if (arguments.length === 4) - return Usr.apply(null, arguments); + return qsr.apply(null, arguments); if (arguments.length === 5) - return Vsr.apply(null, arguments); + return Usr.apply(null, arguments); Yn("Invalid extension access syntax"); }; eb.prototype.extension = fR; -zsr.forEach(function(t) { +Vsr.forEach(function(t) { t.extensions.forEach(function(e) { dve(t.type, e.name, e.impl); }); @@ -110412,7 +110483,7 @@ M0.appendToStyle = function(t) { } return t; }; -var qsr = "3.30.2", Vc = function(e) { +var Qsr = "3.30.2", Vc = function(e) { if (e === void 0 && (e = {}), Ar(e)) return new eb(e); if (qt(e)) @@ -110425,10 +110496,10 @@ Vc.use = function(t) { Vc.warnings = function(t) { return H1e(t); }; -Vc.version = qsr; +Vc.version = Qsr; Vc.stylesheet = Vc.Stylesheet = gve; var mve = { exports: {} }, hA = { exports: {} }, fA = { exports: {} }, zX; -function Qsr() { +function Ysr() { return zX || (zX = 1, function(t, e) { (function(n, i) { t.exports = i(); @@ -111958,10 +112029,10 @@ function Qsr() { }(fA)), fA.exports; } var VX; -function Ysr() { +function Wsr() { return VX || (VX = 1, function(t, e) { (function(n, i) { - t.exports = i(Qsr()); + t.exports = i(Ysr()); })(Uc, function(r) { return function(n) { var i = {}; @@ -112479,7 +112550,7 @@ function Ysr() { } (function(t, e) { (function(n, i) { - t.exports = i(Ysr()); + t.exports = i(Wsr()); })(Uc, function(r) { return function(n) { var i = {}; @@ -112645,7 +112716,7 @@ function Ysr() { ]); }); })(mve); -const Wsr = /* @__PURE__ */ EZ(mve.exports); +const Gsr = /* @__PURE__ */ EZ(mve.exports); var dR = function() { var t = /* @__PURE__ */ x(function(O, S, C, T) { for (C = C || {}, T = O.length; T--; C[O[T]] = S) @@ -113033,14 +113104,14 @@ Expecting ` + ae.join(", ") + ", got '" + (this.terminals_[ee] || ee) + "'" : se return x(w, "Parser"), w.prototype = y, y.Parser = w, new w(); }(); dR.parser = dR; -var Gsr = dR, Al = [], vve = 0, ZP = {}, Hsr = /* @__PURE__ */ x(() => { +var Hsr = dR, Al = [], vve = 0, ZP = {}, Xsr = /* @__PURE__ */ x(() => { Al = [], vve = 0, ZP = {}; -}, "clear"), Xsr = /* @__PURE__ */ x(function(t) { +}, "clear"), Zsr = /* @__PURE__ */ x(function(t) { for (let e = Al.length - 1; e >= 0; e--) if (Al[e].level < t) return Al[e]; return null; -}, "getParent"), Zsr = /* @__PURE__ */ x(() => Al.length > 0 ? Al[0] : null, "getMindmap"), jsr = /* @__PURE__ */ x((t, e, r, n) => { +}, "getParent"), jsr = /* @__PURE__ */ x(() => Al.length > 0 ? Al[0] : null, "getMindmap"), Ksr = /* @__PURE__ */ x((t, e, r, n) => { var l, u, h, f; X.info("addNode", t, e, r, n); const i = be(); @@ -113060,7 +113131,7 @@ var Gsr = dR, Al = [], vve = 0, ZP = {}, Hsr = /* @__PURE__ */ x(() => { children: [], width: (f = (h = i.mindmap) == null ? void 0 : h.maxNodeWidth) != null ? f : jr.mindmap.maxNodeWidth, padding: s - }, o = Xsr(t); + }, o = Zsr(t); if (o) o.children.push(a), Al.push(a); else if (Al.length === 0) @@ -113078,7 +113149,7 @@ var Gsr = dR, Al = [], vve = 0, ZP = {}, Hsr = /* @__PURE__ */ x(() => { CLOUD: 4, BANG: 5, HEXAGON: 6 -}, Ksr = /* @__PURE__ */ x((t, e) => { +}, Jsr = /* @__PURE__ */ x((t, e) => { switch (X.debug("In get type", t, e), t) { case "[": return Oi.RECT; @@ -113095,14 +113166,14 @@ var Gsr = dR, Al = [], vve = 0, ZP = {}, Hsr = /* @__PURE__ */ x(() => { default: return Oi.DEFAULT; } -}, "getType"), Jsr = /* @__PURE__ */ x((t, e) => { +}, "getType"), ear = /* @__PURE__ */ x((t, e) => { ZP[t] = e; -}, "setElementForId"), ear = /* @__PURE__ */ x((t) => { +}, "setElementForId"), tar = /* @__PURE__ */ x((t) => { if (!t) return; const e = be(), r = Al[Al.length - 1]; t.icon && (r.icon = ni(t.icon, e)), t.class && (r.class = ni(t.class, e)); -}, "decorateNode"), tar = /* @__PURE__ */ x((t) => { +}, "decorateNode"), rar = /* @__PURE__ */ x((t) => { switch (t) { case Oi.DEFAULT: return "no-border"; @@ -113121,25 +113192,25 @@ var Gsr = dR, Al = [], vve = 0, ZP = {}, Hsr = /* @__PURE__ */ x(() => { default: return "no-border"; } -}, "type2Str"), rar = /* @__PURE__ */ x(() => X, "getLogger"), nar = /* @__PURE__ */ x((t) => ZP[t], "getElementById"), iar = { - clear: Hsr, - addNode: jsr, - getMindmap: Zsr, +}, "type2Str"), nar = /* @__PURE__ */ x(() => X, "getLogger"), iar = /* @__PURE__ */ x((t) => ZP[t], "getElementById"), sar = { + clear: Xsr, + addNode: Ksr, + getMindmap: jsr, nodeType: Oi, - getType: Ksr, - setElementForId: Jsr, - decorateNode: ear, - type2Str: tar, - getLogger: rar, - getElementById: nar -}, sar = iar, aar = 12, oar = /* @__PURE__ */ x(function(t, e, r, n) { + getType: Jsr, + setElementForId: ear, + decorateNode: tar, + type2Str: rar, + getLogger: nar, + getElementById: iar +}, aar = sar, oar = 12, lar = /* @__PURE__ */ x(function(t, e, r, n) { e.append("path").attr("id", "node-" + r.id).attr("class", "node-bkg node-" + t.type2Str(r.type)).attr( "d", `M0 ${r.height - 5} v${-r.height + 2 * 5} q0,-5 5,-5 h${r.width - 2 * 5} q5,0 5,5 v${r.height - 5} H0 Z` ), e.append("line").attr("class", "node-line-" + n).attr("x1", 0).attr("y1", r.height).attr("x2", r.width).attr("y2", r.height); -}, "defaultBkg"), lar = /* @__PURE__ */ x(function(t, e, r) { +}, "defaultBkg"), car = /* @__PURE__ */ x(function(t, e, r) { e.append("rect").attr("id", "node-" + r.id).attr("class", "node-bkg node-" + t.type2Str(r.type)).attr("height", r.height).attr("width", r.width); -}, "rectBkg"), car = /* @__PURE__ */ x(function(t, e, r) { +}, "rectBkg"), uar = /* @__PURE__ */ x(function(t, e, r) { const n = r.width, i = r.height, s = 0.15 * n, a = 0.25 * n, o = 0.35 * n, l = 0.2 * n; e.append("path").attr("id", "node-" + r.id).attr("class", "node-bkg node-" + t.type2Str(r.type)).attr( "d", @@ -113159,7 +113230,7 @@ var Gsr = dR, Al = [], vve = 0, ZP = {}, Hsr = /* @__PURE__ */ x(() => { H0 V0 Z` ); -}, "cloudBkg"), uar = /* @__PURE__ */ x(function(t, e, r) { +}, "cloudBkg"), har = /* @__PURE__ */ x(function(t, e, r) { const n = r.width, i = r.height, s = 0.15 * n; e.append("path").attr("id", "node-" + r.id).attr("class", "node-bkg node-" + t.type2Str(r.type)).attr( "d", @@ -113183,7 +113254,7 @@ var Gsr = dR, Al = [], vve = 0, ZP = {}, Hsr = /* @__PURE__ */ x(() => { H0 V0 Z` ); -}, "bangBkg"), har = /* @__PURE__ */ x(function(t, e, r) { +}, "bangBkg"), far = /* @__PURE__ */ x(function(t, e, r) { e.append("circle").attr("id", "node-" + r.id).attr("class", "node-bkg node-" + t.type2Str(r.type)).attr("r", r.width / 2); }, "circleBkg"); function yve(t, e, r, n, i) { @@ -113195,7 +113266,7 @@ function yve(t, e, r, n, i) { ).attr("transform", "translate(" + (i.width - e) / 2 + ", " + r + ")"); } x(yve, "insertPolygonShape"); -var far = /* @__PURE__ */ x(function(t, e, r) { +var dar = /* @__PURE__ */ x(function(t, e, r) { const n = r.height, s = n / 4, a = r.width - r.padding + 2 * s, o = [ { x: s, y: 0 }, { x: a - s, y: 0 }, @@ -113205,10 +113276,10 @@ var far = /* @__PURE__ */ x(function(t, e, r) { { x: 0, y: -n / 2 } ]; yve(e, a, n, o, r); -}, "hexagonBkg"), dar = /* @__PURE__ */ x(function(t, e, r) { +}, "hexagonBkg"), par = /* @__PURE__ */ x(function(t, e, r) { e.append("rect").attr("id", "node-" + r.id).attr("class", "node-bkg node-" + t.type2Str(r.type)).attr("height", r.height).attr("rx", r.padding).attr("ry", r.padding).attr("width", r.width); -}, "roundedRectBkg"), par = /* @__PURE__ */ x(async function(t, e, r, n, i) { - const s = i.htmlLabels, a = n % (aar - 1), o = e.append("g"); +}, "roundedRectBkg"), gar = /* @__PURE__ */ x(async function(t, e, r, n, i) { + const s = i.htmlLabels, a = n % (oar - 1), o = e.append("g"); r.section = a; let l = "section-" + a; a < 0 && (l += " section-root"), o.attr("class", (r.class ? r.class + " " : "") + "mindmap-node " + l); @@ -113250,35 +113321,35 @@ var far = /* @__PURE__ */ x(function(t, e, r) { } switch (r.type) { case t.nodeType.DEFAULT: - oar(t, u, r, a); + lar(t, u, r, a); break; case t.nodeType.ROUNDED_RECT: - dar(t, u, r, a); + par(t, u, r, a); break; case t.nodeType.RECT: - lar(t, u, r, a); + car(t, u, r, a); break; case t.nodeType.CIRCLE: - u.attr("transform", "translate(" + r.width / 2 + ", " + +r.height / 2 + ")"), har(t, u, r, a); + u.attr("transform", "translate(" + r.width / 2 + ", " + +r.height / 2 + ")"), far(t, u, r, a); break; case t.nodeType.CLOUD: - car(t, u, r, a); + uar(t, u, r, a); break; case t.nodeType.BANG: - uar(t, u, r, a); + har(t, u, r, a); break; case t.nodeType.HEXAGON: - far(t, u, r, a); + dar(t, u, r, a); break; } return t.setElementForId(r.id, o), r.height; -}, "drawNode"), gar = /* @__PURE__ */ x(function(t, e) { +}, "drawNode"), mar = /* @__PURE__ */ x(function(t, e) { const r = t.getElementById(e.id), n = e.x || 0, i = e.y || 0; r.attr("transform", "translate(" + n + "," + i + ")"); }, "positionNode"); -Vc.use(Wsr); +Vc.use(Gsr); async function jP(t, e, r, n, i) { - await par(t, e, r, n, i), r.children && await Promise.all( + await gar(t, e, r, n, i), r.children && await Promise.all( r.children.map( (s, a) => jP(t, e, s, n < 0 ? a : n, i) ) @@ -113361,7 +113432,7 @@ x(xve, "layoutMindmap"); function wve(t, e) { e.nodes().map((r, n) => { const i = r.data(); - i.x = r.position().x, i.y = r.position().y, gar(t, i); + i.x = r.position().x, i.y = r.position().y, mar(t, i); const s = t.getElementById(i.nodeId); X.info("Id:", n, "Position: (", r.position().x, ", ", r.position().y, ")", i), s.attr( "transform", @@ -113370,7 +113441,7 @@ function wve(t, e) { }); } x(wve, "positionNodes"); -var mar = /* @__PURE__ */ x(async (t, e, r, n) => { +var yar = /* @__PURE__ */ x(async (t, e, r, n) => { var f, d, p, g; X.debug(`Rendering mindmap diagram ` + t); @@ -113390,9 +113461,9 @@ var mar = /* @__PURE__ */ x(async (t, e, r, n) => { (d = (f = a.mindmap) == null ? void 0 : f.padding) != null ? d : jr.mindmap.padding, (g = (p = a.mindmap) == null ? void 0 : p.useMaxWidth) != null ? g : jr.mindmap.useMaxWidth ); -}, "draw"), yar = { - draw: mar -}, bar = /* @__PURE__ */ x((t) => { +}, "draw"), bar = { + draw: yar +}, xar = /* @__PURE__ */ x((t) => { let e = ""; for (let r = 0; r < t.THEME_COLOR_LIMIT; r++) t["lineColor" + r] = t["lineColor" + r] || t["cScaleInv" + r], B0(t["lineColor" + r]) ? t["lineColor" + r] = Ft(t["lineColor" + r], 20) : t["lineColor" + r] = Yt(t["lineColor" + r], 20); @@ -113429,11 +113500,11 @@ var mar = /* @__PURE__ */ x(async (t, e, r, n) => { `; } return e; -}, "genSections"), xar = /* @__PURE__ */ x((t) => ` +}, "genSections"), war = /* @__PURE__ */ x((t) => ` .edge { stroke-width: 3; } - ${bar(t)} + ${xar(t)} .section-root rect, .section-root path, .section-root circle, .section-root polygon { fill: ${t.git0}; } @@ -113456,15 +113527,15 @@ var mar = /* @__PURE__ */ x(async (t, e, r, n) => { dominant-baseline: middle; text-align: center; } -`, "getStyles"), war = xar, Oar = { - db: sar, - renderer: yar, - parser: Gsr, - styles: war +`, "getStyles"), Oar = war, kar = { + db: aar, + renderer: bar, + parser: Hsr, + styles: Oar }; -const kar = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +const Sar = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - diagram: Oar + diagram: kar }, Symbol.toStringTag, { value: "Module" })); function UX(t, e) { let r; @@ -113502,20 +113573,20 @@ function dA(t, e) { } return r; } -function Sar(t) { +function Tar(t) { return t.target.depth; } -function Tar(t) { +function Car(t) { return t.depth; } -function Car(t, e) { +function Ear(t, e) { return e - 1 - t.height; } function kve(t, e) { return t.sourceLinks.length ? t.depth : e - 1; } -function Ear(t) { - return t.targetLinks.length ? t.depth : t.sourceLinks.length ? Ove(t.sourceLinks, Sar) - 1 : 0; +function _ar(t) { + return t.targetLinks.length ? t.depth : t.sourceLinks.length ? Ove(t.sourceLinks, Tar) - 1 : 0; } function WO(t) { return function() { @@ -113534,13 +113605,13 @@ function vS(t, e) { function pA(t) { return t.value; } -function _ar(t) { +function Aar(t) { return t.index; } -function Aar(t) { +function Lar(t) { return t.nodes; } -function Lar(t) { +function Rar(t) { return t.links; } function YX(t, e) { @@ -113558,8 +113629,8 @@ function WX({ nodes: t }) { i.y1 = n + i.width / 2, n += i.width; } } -function Rar() { - let t = 0, e = 0, r = 1, n = 1, i = 24, s = 8, a, o = _ar, l = kve, u, h, f = Aar, d = Lar, p = 6; +function Mar() { + let t = 0, e = 0, r = 1, n = 1, i = 24, s = 8, a, o = Aar, l = kve, u, h, f = Lar, d = Rar, p = 6; function g() { const N = { nodes: f.apply(null, arguments), links: d.apply(null, arguments) }; return m(N), v(N), y(N), b(N), S(N), WX(N), N; @@ -113763,7 +113834,7 @@ function Rar() { } return g; } -var pR = Math.PI, gR = 2 * pR, fd = 1e-6, Mar = gR - fd; +var pR = Math.PI, gR = 2 * pR, fd = 1e-6, Dar = gR - fd; function mR() { this._x0 = this._y0 = this._x1 = this._y1 = null, this._ = ""; } @@ -113807,7 +113878,7 @@ mR.prototype = Sve.prototype = { var a = r * Math.cos(n), o = r * Math.sin(n), l = t + a, u = e + o, h = 1 ^ s, f = s ? n - i : i - n; if (r < 0) throw new Error("negative radius: " + r); - this._x1 === null ? this._ += "M" + l + "," + u : (Math.abs(this._x1 - l) > fd || Math.abs(this._y1 - u) > fd) && (this._ += "L" + l + "," + u), r && (f < 0 && (f = f % gR + gR), f > Mar ? this._ += "A" + r + "," + r + ",0,1," + h + "," + (t - a) + "," + (e - o) + "A" + r + "," + r + ",0,1," + h + "," + (this._x1 = l) + "," + (this._y1 = u) : f > fd && (this._ += "A" + r + "," + r + ",0," + +(f >= pR) + "," + h + "," + (this._x1 = t + r * Math.cos(i)) + "," + (this._y1 = e + r * Math.sin(i)))); + this._x1 === null ? this._ += "M" + l + "," + u : (Math.abs(this._x1 - l) > fd || Math.abs(this._y1 - u) > fd) && (this._ += "L" + l + "," + u), r && (f < 0 && (f = f % gR + gR), f > Dar ? this._ += "A" + r + "," + r + ",0,1," + h + "," + (t - a) + "," + (e - o) + "A" + r + "," + r + ",0,1," + h + "," + (this._x1 = l) + "," + (this._y1 = u) : f > fd && (this._ += "A" + r + "," + r + ",0," + +(f >= pR) + "," + h + "," + (this._x1 = t + r * Math.cos(i)) + "," + (this._y1 = e + r * Math.sin(i)))); }, rect: function(t, e, r, n) { this._ += "M" + (this._x0 = this._x1 = +t) + "," + (this._y0 = this._y1 = +e) + "h" + +r + "v" + +n + "h" + -r + "Z"; @@ -113821,23 +113892,23 @@ function GX(t) { return t; }; } -function Dar(t) { +function Nar(t) { return t[0]; } -function Nar(t) { +function Iar(t) { return t[1]; } -var Iar = Array.prototype.slice; -function Par(t) { +var Par = Array.prototype.slice; +function $ar(t) { return t.source; } -function $ar(t) { +function Bar(t) { return t.target; } -function Bar(t) { - var e = Par, r = $ar, n = Dar, i = Nar, s = null; +function Far(t) { + var e = $ar, r = Bar, n = Nar, i = Iar, s = null; function a() { - var o, l = Iar.call(arguments), u = e.apply(this, l), h = r.apply(this, l); + var o, l = Par.call(arguments), u = e.apply(this, l), h = r.apply(this, l); if (s || (s = o = Sve()), t(s, +n.apply(this, (l[0] = u, l)), +i.apply(this, l), +n.apply(this, (l[0] = h, l)), +i.apply(this, l)), o) return s = null, o + "" || null; } @@ -113853,20 +113924,20 @@ function Bar(t) { return arguments.length ? (s = o == null ? null : o, a) : s; }, a; } -function Far(t, e, r, n, i) { +function zar(t, e, r, n, i) { t.moveTo(e, r), t.bezierCurveTo(e = (e + n) / 2, r, e, i, n, i); } -function zar() { - return Bar(Far); +function Var() { + return Far(zar); } -function Var(t) { +function Uar(t) { return [t.source.x1, t.y0]; } -function Uar(t) { +function qar(t) { return [t.target.x0, t.y1]; } -function qar() { - return zar().source(Var).target(Uar); +function Qar() { + return Var().source(Uar).target(qar); } var vR = function() { var t = /* @__PURE__ */ x(function(o, l, u, h) { @@ -114158,48 +114229,48 @@ Expecting ` + F.join(", ") + ", got '" + (this.terminals_[R] || R) + "'" : B = " return x(a, "Parser"), a.prototype = i, i.Parser = a, new a(); }(); vR.parser = vR; -var yS = vR, KC = [], JC = [], bS = /* @__PURE__ */ new Map(), Qar = /* @__PURE__ */ x(() => { +var yS = vR, KC = [], JC = [], bS = /* @__PURE__ */ new Map(), Yar = /* @__PURE__ */ x(() => { KC = [], JC = [], bS = /* @__PURE__ */ new Map(), Xi(); -}, "clear"), zb, Yar = (zb = class { +}, "clear"), zb, War = (zb = class { constructor(e, r, n = 0) { this.source = e, this.target = r, this.value = n; } }, (() => { x(zb, "SankeyLink"); -})(), zb), War = /* @__PURE__ */ x((t, e, r) => { - KC.push(new Yar(t, e, r)); -}, "addLink"), Vb, Gar = (Vb = class { +})(), zb), Gar = /* @__PURE__ */ x((t, e, r) => { + KC.push(new War(t, e, r)); +}, "addLink"), Vb, Har = (Vb = class { constructor(e) { this.ID = e; } }, (() => { x(Vb, "SankeyNode"); -})(), Vb), Har = /* @__PURE__ */ x((t) => { +})(), Vb), Xar = /* @__PURE__ */ x((t) => { t = at.sanitizeText(t, be()); let e = bS.get(t); - return e === void 0 && (e = new Gar(t), bS.set(t, e), JC.push(e)), e; -}, "findOrCreateNode"), Xar = /* @__PURE__ */ x(() => JC, "getNodes"), Zar = /* @__PURE__ */ x(() => KC, "getLinks"), jar = /* @__PURE__ */ x(() => ({ + return e === void 0 && (e = new Har(t), bS.set(t, e), JC.push(e)), e; +}, "findOrCreateNode"), Zar = /* @__PURE__ */ x(() => JC, "getNodes"), jar = /* @__PURE__ */ x(() => KC, "getLinks"), Kar = /* @__PURE__ */ x(() => ({ nodes: JC.map((t) => ({ id: t.ID })), links: KC.map((t) => ({ source: t.source.ID, target: t.target.ID, value: t.value })) -}), "getGraph"), Kar = { +}), "getGraph"), Jar = { nodesMap: bS, getConfig: /* @__PURE__ */ x(() => be().sankey, "getConfig"), - getNodes: Xar, - getLinks: Zar, - getGraph: jar, - addLink: War, - findOrCreateNode: Har, + getNodes: Zar, + getLinks: jar, + getGraph: Kar, + addLink: Gar, + findOrCreateNode: Xar, getAccTitle: vs, setAccTitle: Zi, getAccDescription: bs, setAccDescription: ys, getDiagramTitle: xs, setDiagramTitle: fa, - clear: Qar + clear: Yar }, Yh, HX = (Yh = class { static next(e) { return new Yh(e + ++Yh.count); @@ -114214,18 +114285,18 @@ var yS = vR, KC = [], JC = [], bS = /* @__PURE__ */ new Map(), Qar = /* @__PURE_ x(Yh, "Uid"); })(), (() => { Yh.count = 0; -})(), Yh), Jar = { - left: Tar, - right: Car, - center: Ear, +})(), Yh), eor = { + left: Car, + right: Ear, + center: _ar, justify: kve -}, eor = /* @__PURE__ */ x(function(t, e, r, n) { +}, tor = /* @__PURE__ */ x(function(t, e, r, n) { var L, _, R, $, k, N, M, I; const { securityLevel: i, sankey: s } = be(), a = Rie.sankey; let o; i === "sandbox" && (o = et("#i" + e)); - const l = et(i === "sandbox" ? o.nodes()[0].contentDocument.body : "body"), u = i === "sandbox" ? l.select(`[id="${e}"]`) : et(`[id="${e}"]`), h = (L = s == null ? void 0 : s.width) != null ? L : a.width, f = (_ = s == null ? void 0 : s.height) != null ? _ : a.width, d = (R = s == null ? void 0 : s.useMaxWidth) != null ? R : a.useMaxWidth, p = ($ = s == null ? void 0 : s.nodeAlignment) != null ? $ : a.nodeAlignment, g = (k = s == null ? void 0 : s.prefix) != null ? k : a.prefix, m = (N = s == null ? void 0 : s.suffix) != null ? N : a.suffix, v = (M = s == null ? void 0 : s.showValues) != null ? M : a.showValues, y = n.db.getGraph(), b = Jar[p], w = 10; - Rar().nodeId((D) => D.id).nodeWidth(w).nodePadding(10 + (v ? 15 : 0)).nodeAlign(b).extent([ + const l = et(i === "sandbox" ? o.nodes()[0].contentDocument.body : "body"), u = i === "sandbox" ? l.select(`[id="${e}"]`) : et(`[id="${e}"]`), h = (L = s == null ? void 0 : s.width) != null ? L : a.width, f = (_ = s == null ? void 0 : s.height) != null ? _ : a.width, d = (R = s == null ? void 0 : s.useMaxWidth) != null ? R : a.useMaxWidth, p = ($ = s == null ? void 0 : s.nodeAlignment) != null ? $ : a.nodeAlignment, g = (k = s == null ? void 0 : s.prefix) != null ? k : a.prefix, m = (N = s == null ? void 0 : s.suffix) != null ? N : a.suffix, v = (M = s == null ? void 0 : s.showValues) != null ? M : a.showValues, y = n.db.getGraph(), b = eor[p], w = 10; + Mar().nodeId((D) => D.id).nodeWidth(w).nodePadding(10 + (v ? 15 : 0)).nodeAlign(b).extent([ [0, 0], [h, f] ])(y); @@ -114255,45 +114326,45 @@ ${g}${Math.round(P * 100) / 100}${m}` : D, "getText"); default: E = A; } - T.append("path").attr("d", qar()).attr("stroke", E).attr("stroke-width", (D) => Math.max(1, D.width)), H1(void 0, u, 0, d); -}, "draw"), tor = { - draw: eor -}, ror = /* @__PURE__ */ x((t) => t.replaceAll(/^[^\S\n\r]+|[^\S\n\r]+$/g, "").replaceAll(/([\n\r])+/g, ` -`).trim(), "prepareTextForParsing"), nor = yS.parse.bind(yS); -yS.parse = (t) => nor(ror(t)); -var ior = { + T.append("path").attr("d", Qar()).attr("stroke", E).attr("stroke-width", (D) => Math.max(1, D.width)), H1(void 0, u, 0, d); +}, "draw"), ror = { + draw: tor +}, nor = /* @__PURE__ */ x((t) => t.replaceAll(/^[^\S\n\r]+|[^\S\n\r]+$/g, "").replaceAll(/([\n\r])+/g, ` +`).trim(), "prepareTextForParsing"), ior = yS.parse.bind(yS); +yS.parse = (t) => ior(nor(t)); +var sor = { parser: yS, - db: Kar, - renderer: tor + db: Jar, + renderer: ror }; -const sor = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +const aor = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - diagram: ior + diagram: sor }, Symbol.toStringTag, { value: "Module" })); var Tve = { packet: [] -}, JP = structuredClone(Tve), aor = jr.packet, oor = /* @__PURE__ */ x(() => { +}, JP = structuredClone(Tve), oor = jr.packet, lor = /* @__PURE__ */ x(() => { const t = ch({ - ...aor, + ...oor, ...pi().packet }); return t.showBits && (t.paddingY += 10), t; -}, "getConfig"), lor = /* @__PURE__ */ x(() => JP.packet, "getPacket"), cor = /* @__PURE__ */ x((t) => { +}, "getConfig"), cor = /* @__PURE__ */ x(() => JP.packet, "getPacket"), uor = /* @__PURE__ */ x((t) => { t.length > 0 && JP.packet.push(t); -}, "pushWord"), uor = /* @__PURE__ */ x(() => { +}, "pushWord"), hor = /* @__PURE__ */ x(() => { Xi(), JP = structuredClone(Tve); }, "clear"), _p = { - pushWord: cor, - getPacket: lor, - getConfig: oor, - clear: uor, + pushWord: uor, + getPacket: cor, + getConfig: lor, + clear: hor, setAccTitle: Zi, getAccTitle: vs, setDiagramTitle: fa, getDiagramTitle: xs, getAccDescription: bs, setAccDescription: ys -}, hor = 1e4, dor = /* @__PURE__ */ x((t) => { +}, dor = 1e4, por = /* @__PURE__ */ x((t) => { Rx(t, _p); let e = -1, r = [], n = 1; const { bitsPerRow: i } = _p.getConfig(); @@ -114304,15 +114375,15 @@ var Tve = { throw new Error( `Packet block ${s} - ${a != null ? a : s} is not contiguous. It should start from ${e + 1}.` ); - for (e = a != null ? a : s, X.debug(`Packet block ${s} - ${e} with label ${o}`); r.length <= i + 1 && _p.getPacket().length < hor; ) { - const [l, u] = por({ start: s, end: a, label: o }, n, i); + for (e = a != null ? a : s, X.debug(`Packet block ${s} - ${e} with label ${o}`); r.length <= i + 1 && _p.getPacket().length < dor; ) { + const [l, u] = gor({ start: s, end: a, label: o }, n, i); if (r.push(l), l.end + 1 === n * i && (_p.pushWord(r), r = [], n++), !u) break; ({ start: s, end: a, label: o } = u); } } _p.pushWord(r); -}, "populate"), por = /* @__PURE__ */ x((t, e, r) => { +}, "populate"), gor = /* @__PURE__ */ x((t, e, r) => { if (t.end === void 0 && (t.end = t.start), t.start > t.end) throw new Error(`Block start ${t.start} is greater than block end ${t.end}.`); return t.end + 1 <= e * r ? [t, void 0] : [ @@ -114327,18 +114398,18 @@ var Tve = { label: t.label } ]; -}, "getNextFittingBlock"), gor = { +}, "getNextFittingBlock"), mor = { parse: /* @__PURE__ */ x(async (t) => { const e = await pm("packet", t); - X.debug(e), dor(e); + X.debug(e), por(e); }, "parse") -}, mor = /* @__PURE__ */ x((t, e, r, n) => { +}, vor = /* @__PURE__ */ x((t, e, r, n) => { const i = n.db, s = i.getConfig(), { rowHeight: a, paddingY: o, bitWidth: l, bitsPerRow: u } = s, h = i.getPacket(), f = i.getDiagramTitle(), d = a + o, p = d * (h.length + 1) - (f ? 0 : a), g = l * u + 2, m = H0(e); m.attr("viewbox", `0 0 ${g} ${p}`), ms(m, p, g, s.useMaxWidth); for (const [v, y] of h.entries()) - vor(m, y, v, s); + yor(m, y, v, s); m.append("text").text(f).attr("x", g / 2).attr("y", p - d / 2).attr("dominant-baseline", "middle").attr("text-anchor", "middle").attr("class", "packetTitle"); -}, "draw"), vor = /* @__PURE__ */ x((t, e, r, { rowHeight: n, paddingX: i, paddingY: s, bitWidth: a, bitsPerRow: o, showBits: l }) => { +}, "draw"), yor = /* @__PURE__ */ x((t, e, r, { rowHeight: n, paddingX: i, paddingY: s, bitWidth: a, bitsPerRow: o, showBits: l }) => { const u = t.append("g"), h = r * (n + s) + s; for (const f of e) { const d = f.start % o * a + 1, p = (f.end - f.start + 1) * a - i; @@ -114347,7 +114418,7 @@ var Tve = { const g = f.end === f.start, m = h - 2; u.append("text").attr("x", d + (g ? p / 2 : 0)).attr("y", m).attr("class", "packetByte start").attr("dominant-baseline", "auto").attr("text-anchor", g ? "middle" : "start").text(f.start), g || u.append("text").attr("x", d + p).attr("y", m).attr("class", "packetByte end").attr("dominant-baseline", "auto").attr("text-anchor", "end").text(f.end); } -}, "drawWord"), yor = { draw: mor }, bor = { +}, "drawWord"), bor = { draw: vor }, xor = { byteFontSize: "10px", startByteColor: "black", endByteColor: "black", @@ -114358,8 +114429,8 @@ var Tve = { blockStrokeColor: "black", blockStrokeWidth: "1", blockFillColor: "#efefef" -}, xor = /* @__PURE__ */ x(({ packet: t } = {}) => { - const e = ch(bor, t); +}, wor = /* @__PURE__ */ x(({ packet: t } = {}) => { + const e = ch(xor, t); return ` .packetByte { font-size: ${e.byteFontSize}; @@ -114384,15 +114455,15 @@ var Tve = { fill: ${e.blockFillColor}; } `; -}, "styles"), wor = { - parser: gor, +}, "styles"), Oor = { + parser: mor, db: _p, - renderer: yor, - styles: xor + renderer: bor, + styles: wor }; -const Oor = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +const kor = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - diagram: wor + diagram: Oor }, Symbol.toStringTag, { value: "Module" })); var yR = function() { var t = /* @__PURE__ */ x(function(w, O, S, C) { @@ -114978,20 +115049,20 @@ Expecting ` + j.join(", ") + ", got '" + (this.terminals_[W] || W) + "'" : ae = return x(b, "Parser"), b.prototype = v, v.Parser = b, new b(); }(); yR.parser = yR; -var kor = yR, Ll = /* @__PURE__ */ new Map(), e$ = [], bR = /* @__PURE__ */ new Map(), XX = "color", ZX = "fill", Sor = "bgFill", Cve = ",", Tor = be(), xS = /* @__PURE__ */ new Map(), Cor = /* @__PURE__ */ x((t) => at.sanitizeText(t, Tor), "sanitizeText"), Eor = /* @__PURE__ */ x(function(t, e = "") { +var Sor = yR, Ll = /* @__PURE__ */ new Map(), e$ = [], bR = /* @__PURE__ */ new Map(), XX = "color", ZX = "fill", Tor = "bgFill", Cve = ",", Cor = be(), xS = /* @__PURE__ */ new Map(), Eor = /* @__PURE__ */ x((t) => at.sanitizeText(t, Cor), "sanitizeText"), _or = /* @__PURE__ */ x(function(t, e = "") { let r = xS.get(t); r || (r = { id: t, styles: [], textStyles: [] }, xS.set(t, r)), e != null && e.split(Cve).forEach((n) => { const i = n.replace(/([^;]*);/, "$1").trim(); if (RegExp(XX).exec(n)) { - const a = i.replace(ZX, Sor).replace(XX, ZX); + const a = i.replace(ZX, Tor).replace(XX, ZX); r.textStyles.push(a); } r.styles.push(i); }); -}, "addStyleClass"), _or = /* @__PURE__ */ x(function(t, e = "") { +}, "addStyleClass"), Aor = /* @__PURE__ */ x(function(t, e = "") { const r = Ll.get(t); e != null && (r.styles = e.split(Cve)); -}, "addStyle2Node"), Aor = /* @__PURE__ */ x(function(t, e) { +}, "addStyle2Node"), Lor = /* @__PURE__ */ x(function(t, e) { t.split(",").forEach(function(r) { let n = Ll.get(r); if (n === void 0) { @@ -115004,16 +115075,16 @@ var kor = yR, Ll = /* @__PURE__ */ new Map(), e$ = [], bR = /* @__PURE__ */ new var i, s, a, o; const r = t.flat(), n = []; for (const l of r) { - if (l.label && (l.label = Cor(l.label)), l.type === "classDef") { - Eor(l.id, l.css); + if (l.label && (l.label = Eor(l.label)), l.type === "classDef") { + _or(l.id, l.css); continue; } if (l.type === "applyClass") { - Aor(l.id, (i = l == null ? void 0 : l.styleClass) != null ? i : ""); + Lor(l.id, (i = l == null ? void 0 : l.styleClass) != null ? i : ""); continue; } if (l.type === "applyStyles") { - l != null && l.stylesStr && _or(l.id, l == null ? void 0 : l.stylesStr); + l != null && l.stylesStr && Aor(l.id, l == null ? void 0 : l.stylesStr); continue; } if (l.type === "column-setting") @@ -115035,7 +115106,7 @@ var kor = yR, Ll = /* @__PURE__ */ new Map(), e$ = [], bR = /* @__PURE__ */ new } } e.children = n; -}, "populateBlockDatabase"), t$ = [], gy = { id: "root", type: "composite", children: [], columns: -1 }, Lor = /* @__PURE__ */ x(() => { +}, "populateBlockDatabase"), t$ = [], gy = { id: "root", type: "composite", children: [], columns: -1 }, Ror = /* @__PURE__ */ x(() => { X.debug("Clear called"), Xi(), gy = { id: "root", type: "composite", children: [], columns: -1 }, Ll = /* @__PURE__ */ new Map([["root", gy]]), t$ = [], xS = /* @__PURE__ */ new Map(), e$ = [], bR = /* @__PURE__ */ new Map(); }, "clear"); function _ve(t) { @@ -115095,35 +115166,35 @@ function Lve(t) { } } x(Lve, "edgeStrToEdgeData"); -var jX = 0, Ror = /* @__PURE__ */ x(() => (jX++, "id-" + Math.random().toString(36).substr(2, 12) + "-" + jX), "generateId"), Mor = /* @__PURE__ */ x((t) => { +var jX = 0, Mor = /* @__PURE__ */ x(() => (jX++, "id-" + Math.random().toString(36).substr(2, 12) + "-" + jX), "generateId"), Dor = /* @__PURE__ */ x((t) => { gy.children = t, Eve(t, gy), t$ = gy.children; -}, "setHierarchy"), Dor = /* @__PURE__ */ x((t) => { +}, "setHierarchy"), Nor = /* @__PURE__ */ x((t) => { const e = Ll.get(t); return e ? e.columns ? e.columns : e.children ? e.children.length : -1 : -1; -}, "getColumns"), Nor = /* @__PURE__ */ x(() => [...Ll.values()], "getBlocksFlat"), Ior = /* @__PURE__ */ x(() => t$ || [], "getBlocks"), Por = /* @__PURE__ */ x(() => e$, "getEdges"), $or = /* @__PURE__ */ x((t) => Ll.get(t), "getBlock"), Bor = /* @__PURE__ */ x((t) => { +}, "getColumns"), Ior = /* @__PURE__ */ x(() => [...Ll.values()], "getBlocksFlat"), Por = /* @__PURE__ */ x(() => t$ || [], "getBlocks"), $or = /* @__PURE__ */ x(() => e$, "getEdges"), Bor = /* @__PURE__ */ x((t) => Ll.get(t), "getBlock"), For = /* @__PURE__ */ x((t) => { Ll.set(t.id, t); -}, "setBlock"), For = /* @__PURE__ */ x(() => console, "getLogger"), zor = /* @__PURE__ */ x(function() { +}, "setBlock"), zor = /* @__PURE__ */ x(() => console, "getLogger"), Vor = /* @__PURE__ */ x(function() { return xS; -}, "getClasses"), Vor = { +}, "getClasses"), Uor = { getConfig: /* @__PURE__ */ x(() => pi().block, "getConfig"), typeStr2Type: _ve, edgeTypeStr2Type: Ave, edgeStrToEdgeData: Lve, - getLogger: For, - getBlocksFlat: Nor, - getBlocks: Ior, - getEdges: Por, - setHierarchy: Mor, - getBlock: $or, - setBlock: Bor, - getColumns: Dor, - getClasses: zor, - clear: Lor, - generateId: Ror -}, Uor = Vor, GO = /* @__PURE__ */ x((t, e) => { + getLogger: zor, + getBlocksFlat: Ior, + getBlocks: Por, + getEdges: $or, + setHierarchy: Dor, + getBlock: Bor, + setBlock: For, + getColumns: Nor, + getClasses: Vor, + clear: Ror, + generateId: Mor +}, qor = Uor, GO = /* @__PURE__ */ x((t, e) => { const r = lie, n = r(t, "r"), i = r(t, "g"), s = r(t, "b"); return Qd(n, i, s, e); -}, "fade"), qor = /* @__PURE__ */ x((t) => `.label { +}, "fade"), Qor = /* @__PURE__ */ x((t) => `.label { font-family: ${t.fontFamily}; color: ${t.nodeTextColor || t.textColor}; } @@ -115235,7 +115306,7 @@ var jX = 0, Ror = /* @__PURE__ */ x(() => (jX++, "id-" + Math.random().toString( font-size: 18px; fill: ${t.textColor}; } -`, "getStyles"), Qor = qor, iZ, sZ, aZ, Xn = (aZ = (sZ = (iZ = be()) == null ? void 0 : iZ.block) == null ? void 0 : sZ.padding) != null ? aZ : 8; +`, "getStyles"), Yor = Qor, iZ, sZ, aZ, Xn = (aZ = (sZ = (iZ = be()) == null ? void 0 : iZ.block) == null ? void 0 : sZ.padding) != null ? aZ : 8; function Rve(t, e) { if (t === 0 || !Number.isInteger(t)) throw new Error("Columns must be an integer !== 0."); @@ -115249,7 +115320,7 @@ function Rve(t, e) { return { px: r, py: n }; } x(Rve, "calculateBlockPosition"); -var Yor = /* @__PURE__ */ x((t) => { +var Wor = /* @__PURE__ */ x((t) => { var n, i; let e = 0, r = 0; for (const s of t.children) { @@ -115290,7 +115361,7 @@ function wS(t, e, r = 0, n = 0) { if (((l = t.children) == null ? void 0 : l.length) > 0) { for (const R of t.children) wS(R, e); - const S = Yor(t); + const S = Wor(t); i = S.width, s = S.height, X.debug("setBlockSizes abc95 maxWidth of", t.id, ":s children is ", i, s); for (const R of t.children) R.size && (X.debug( @@ -115575,9 +115646,9 @@ async function $ve(t, e, r, n, i) { } } x($ve, "insertEdges"); -var Wor = /* @__PURE__ */ x(function(t, e) { +var Gor = /* @__PURE__ */ x(function(t, e) { return e.db.getClasses(); -}, "getClasses"), Gor = /* @__PURE__ */ x(async function(t, e, r, n) { +}, "getClasses"), Hor = /* @__PURE__ */ x(async function(t, e, r, n) { const { securityLevel: i, block: s } = pi(), a = n.db; let o; i === "sandbox" && (o = et("#i" + e)); @@ -115593,21 +115664,21 @@ var Wor = /* @__PURE__ */ x(function(t, e) { `${v.x - 5} ${v.y - 5} ${v.width + 10} ${v.height + 10}` ); } -}, "draw"), Hor = { - draw: Gor, - getClasses: Wor -}, Xor = { - parser: kor, - db: Uor, - renderer: Hor, - styles: Qor +}, "draw"), Xor = { + draw: Hor, + getClasses: Gor +}, Zor = { + parser: Sor, + db: qor, + renderer: Xor, + styles: Yor }; -const Zor = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +const jor = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - diagram: Xor + diagram: Zor }, Symbol.toStringTag, { value: "Module" })); var Bve = { exports: {} }, gA = { exports: {} }, mA = { exports: {} }, KX; -function jor() { +function Kor() { return KX || (KX = 1, function(t, e) { (function(n, i) { t.exports = i(); @@ -117437,10 +117508,10 @@ function jor() { }(mA)), mA.exports; } var JX; -function Kor() { +function Jor() { return JX || (JX = 1, function(t, e) { (function(n, i) { - t.exports = i(jor()); + t.exports = i(Kor()); })(Uc, function(r) { return (() => { var n = { @@ -118636,7 +118707,7 @@ function Kor() { } (function(t, e) { (function(n, i) { - t.exports = i(Kor()); + t.exports = i(Jor()); })(Uc, function(r) { return (() => { var n = { @@ -119234,7 +119305,7 @@ function Kor() { })(); }); })(Bve); -const Jor = Bve.exports; +const elr = Bve.exports; var eZ = { L: "left", R: "right", @@ -119250,7 +119321,7 @@ var eZ = { R: /* @__PURE__ */ x((t, e) => t - 2, "R"), T: /* @__PURE__ */ x((t, e) => t - e + 2, "T"), B: /* @__PURE__ */ x((t, e) => t - 2, "B") -}, elr = /* @__PURE__ */ x(function(t) { +}, tlr = /* @__PURE__ */ x(function(t) { return Oa(t) ? t === "L" ? "R" : "L" : t === "T" ? "B" : "T"; }, "getOppositeArchitectureDirection"), rZ = /* @__PURE__ */ x(function(t) { const e = t; @@ -119264,22 +119335,22 @@ var eZ = { }, "isArchitectureDirectionY"), Fve = /* @__PURE__ */ x(function(t, e) { const r = Oa(t) && Pf(e), n = Pf(t) && Oa(e); return r || n; -}, "isArchitectureDirectionXY"), tlr = /* @__PURE__ */ x(function(t) { +}, "isArchitectureDirectionXY"), rlr = /* @__PURE__ */ x(function(t) { const e = t[0], r = t[1], n = Oa(e) && Pf(r), i = Pf(e) && Oa(r); return n || i; -}, "isArchitecturePairXY"), rlr = /* @__PURE__ */ x(function(t) { +}, "isArchitecturePairXY"), nlr = /* @__PURE__ */ x(function(t) { return t !== "LL" && t !== "RR" && t !== "TT" && t !== "BB"; }, "isValidArchitectureDirectionPair"), xR = /* @__PURE__ */ x(function(t, e) { const r = `${t}${e}`; - return rlr(r) ? r : void 0; -}, "getArchitectureDirectionPair"), nlr = /* @__PURE__ */ x(function([t, e], r) { + return nlr(r) ? r : void 0; +}, "getArchitectureDirectionPair"), ilr = /* @__PURE__ */ x(function([t, e], r) { const n = r[0], i = r[1]; return Oa(n) ? Pf(i) ? [t + (n === "L" ? -1 : 1), e + (i === "T" ? 1 : -1)] : [t + (n === "L" ? -1 : 1), e] : Oa(i) ? [t + (i === "L" ? 1 : -1), e + (n === "T" ? 1 : -1)] : [t, e + (n === "T" ? 1 : -1)]; -}, "shiftPositionByArchitectureDirectionPair"), ilr = /* @__PURE__ */ x(function(t) { +}, "shiftPositionByArchitectureDirectionPair"), slr = /* @__PURE__ */ x(function(t) { return t === "LT" || t === "TL" ? [1, 1] : t === "BL" || t === "LB" ? [1, -1] : t === "BR" || t === "RB" ? [-1, -1] : [-1, 1]; -}, "getArchitectureDirectionXYFactors"), slr = /* @__PURE__ */ x(function(t) { +}, "getArchitectureDirectionXYFactors"), alr = /* @__PURE__ */ x(function(t) { return t.type === "service"; -}, "isArchitectureService"), alr = /* @__PURE__ */ x(function(t) { +}, "isArchitectureService"), olr = /* @__PURE__ */ x(function(t) { return t.type === "junction"; }, "isArchitectureJunction"), zve = /* @__PURE__ */ x((t) => t.data(), "edgeData"), qp = /* @__PURE__ */ x((t) => t.data(), "nodeData"), Vve = jr.architecture, fr = new fI(() => ({ nodes: {}, @@ -119289,9 +119360,9 @@ var eZ = { config: Vve, dataStructures: void 0, elements: {} -})), olr = /* @__PURE__ */ x(() => { +})), llr = /* @__PURE__ */ x(() => { fr.reset(), Xi(); -}, "clear"), llr = /* @__PURE__ */ x(function({ +}, "clear"), clr = /* @__PURE__ */ x(function({ id: t, icon: e, in: r, @@ -119321,14 +119392,14 @@ var eZ = { edges: [], in: r }; -}, "addService"), clr = /* @__PURE__ */ x(() => Object.values(fr.records.nodes).filter(slr), "getServices"), ulr = /* @__PURE__ */ x(function({ id: t, in: e }) { +}, "addService"), ulr = /* @__PURE__ */ x(() => Object.values(fr.records.nodes).filter(alr), "getServices"), hlr = /* @__PURE__ */ x(function({ id: t, in: e }) { fr.records.registeredIds[t] = "node", fr.records.nodes[t] = { id: t, type: "junction", edges: [], in: e }; -}, "addJunction"), hlr = /* @__PURE__ */ x(() => Object.values(fr.records.nodes).filter(alr), "getJunctions"), flr = /* @__PURE__ */ x(() => Object.values(fr.records.nodes), "getNodes"), dlr = /* @__PURE__ */ x((t) => fr.records.nodes[t], "getNode"), plr = /* @__PURE__ */ x(function({ id: t, icon: e, in: r, title: n }) { +}, "addJunction"), flr = /* @__PURE__ */ x(() => Object.values(fr.records.nodes).filter(olr), "getJunctions"), dlr = /* @__PURE__ */ x(() => Object.values(fr.records.nodes), "getNodes"), plr = /* @__PURE__ */ x((t) => fr.records.nodes[t], "getNode"), glr = /* @__PURE__ */ x(function({ id: t, icon: e, in: r, title: n }) { if (fr.records.registeredIds[t] !== void 0) throw new Error( `The group id [${t}] is already in use by another ${fr.records.registeredIds[t]}` @@ -119349,7 +119420,7 @@ var eZ = { title: n, in: r }; -}, "addGroup"), glr = /* @__PURE__ */ x(() => Object.values(fr.records.groups), "getGroups"), mlr = /* @__PURE__ */ x(function({ +}, "addGroup"), mlr = /* @__PURE__ */ x(() => Object.values(fr.records.groups), "getGroups"), vlr = /* @__PURE__ */ x(function({ lhsId: t, rhsId: e, lhsDir: r, @@ -119397,7 +119468,7 @@ var eZ = { title: l }; fr.records.edges.push(f), fr.records.nodes[t] && fr.records.nodes[e] && (fr.records.nodes[t].edges.push(fr.records.edges[fr.records.edges.length - 1]), fr.records.nodes[e].edges.push(fr.records.edges[fr.records.edges.length - 1])); -}, "addEdge"), vlr = /* @__PURE__ */ x(() => fr.records.edges, "getEdges"), ylr = /* @__PURE__ */ x(() => { +}, "addEdge"), ylr = /* @__PURE__ */ x(() => fr.records.edges, "getEdges"), blr = /* @__PURE__ */ x(() => { if (fr.records.dataStructures === void 0) { const t = Object.entries(fr.records.nodes).reduce((a, [o, l]) => (a[o] = l.edges.reduce((u, h) => { if (h.lhsId === o) { @@ -119419,7 +119490,7 @@ var eZ = { r[u] = 1, delete n[u]; const h = t[u], [f, d] = o[u]; Object.entries(h).forEach(([p, g]) => { - r[g] || (o[g] = nlr( + r[g] || (o[g] = ilr( [f, d], p ), l.push(g)); @@ -119436,43 +119507,43 @@ var eZ = { }; } return fr.records.dataStructures; -}, "getDataStructures"), blr = /* @__PURE__ */ x((t, e) => { +}, "getDataStructures"), xlr = /* @__PURE__ */ x((t, e) => { fr.records.elements[t] = e; -}, "setElementForId"), xlr = /* @__PURE__ */ x((t) => fr.records.elements[t], "getElementById"), OS = { - clear: olr, +}, "setElementForId"), wlr = /* @__PURE__ */ x((t) => fr.records.elements[t], "getElementById"), OS = { + clear: llr, setDiagramTitle: fa, getDiagramTitle: xs, setAccTitle: Zi, getAccTitle: vs, setAccDescription: ys, getAccDescription: bs, - addService: llr, - getServices: clr, - addJunction: ulr, - getJunctions: hlr, - getNodes: flr, - getNode: dlr, - addGroup: plr, - getGroups: glr, - addEdge: mlr, - getEdges: vlr, - setElementForId: blr, - getElementById: xlr, - getDataStructures: ylr + addService: clr, + getServices: ulr, + addJunction: hlr, + getJunctions: flr, + getNodes: dlr, + getNode: plr, + addGroup: glr, + getGroups: mlr, + addEdge: vlr, + getEdges: ylr, + setElementForId: xlr, + getElementById: wlr, + getDataStructures: blr }; function Li(t) { const e = be().architecture; return e != null && e[t] ? e[t] : Vve[t]; } x(Li, "getConfigField"); -var wlr = /* @__PURE__ */ x((t, e) => { +var Olr = /* @__PURE__ */ x((t, e) => { Rx(t, e), t.groups.map(e.addGroup), t.services.map((r) => e.addService({ ...r, type: "service" })), t.junctions.map((r) => e.addJunction({ ...r, type: "junction" })), t.edges.map(e.addEdge); -}, "populateDb"), Olr = { +}, "populateDb"), klr = { parse: /* @__PURE__ */ x(async (t) => { const e = await pm("architecture", t); - X.debug(e), wlr(e, OS); + X.debug(e), Olr(e, OS); }, "parse") -}, klr = /* @__PURE__ */ x((t) => ` +}, Slr = /* @__PURE__ */ x((t) => ` .edge { stroke-width: ${t.archEdgeWidth}; stroke: ${t.archEdgeColor}; @@ -119503,7 +119574,7 @@ var wlr = /* @__PURE__ */ x((t, e) => { display: -webkit-box; -webkit-box-orient: vertical; } -`, "getStyles"), Slr = klr, xp = /* @__PURE__ */ x((t) => `${t}`, "wrapIcon"), tb = { +`, "getStyles"), Tlr = Slr, xp = /* @__PURE__ */ x((t) => `${t}`, "wrapIcon"), tb = { prefix: "mermaid-architecture", height: 80, width: 80, @@ -119538,7 +119609,7 @@ var wlr = /* @__PURE__ */ x((t, e) => { body: xp("") } } -}, Tlr = /* @__PURE__ */ x(async function(t, e) { +}, Clr = /* @__PURE__ */ x(async function(t, e) { const r = Li("padding"), n = Li("iconSize"), i = n / 2, s = n / 6, a = s / 2; await Promise.all( e.edges().map(async (o) => { @@ -119588,8 +119659,8 @@ var wlr = /* @__PURE__ */ x((t, e) => { $.attr("transform", "translate(" + w + ", " + O + ") rotate(-90)"); else if (_ === "XY") { const k = xR(u, p); - if (k && tlr(k)) { - const N = $.node().getBoundingClientRect(), [M, I] = ilr(k); + if (k && rlr(k)) { + const N = $.node().getBoundingClientRect(), [M, I] = slr(k); $.attr("dominant-baseline", "auto").attr("transform", `rotate(${-1 * M * I * 45})`); const D = $.node().getBoundingClientRect(); $.attr( @@ -119606,7 +119677,7 @@ var wlr = /* @__PURE__ */ x((t, e) => { } }) ); -}, "drawEdges"), Clr = /* @__PURE__ */ x(async function(t, e) { +}, "drawEdges"), Elr = /* @__PURE__ */ x(async function(t, e) { const n = Li("padding") * 0.75, i = Li("fontSize"), a = Li("iconSize") / 2; await Promise.all( e.nodes().map(async (o) => { @@ -119644,7 +119715,7 @@ var wlr = /* @__PURE__ */ x((t, e) => { } }) ); -}, "drawGroups"), Elr = /* @__PURE__ */ x(async function(t, e, r) { +}, "drawGroups"), _lr = /* @__PURE__ */ x(async function(t, e, r) { var n; for (const i of r) { const s = e.append("g"), a = Li("iconSize"); @@ -119684,7 +119755,7 @@ var wlr = /* @__PURE__ */ x((t, e) => { i.width = l, i.height = u, t.setElementForId(i.id, s); } return 0; -}, "drawServices"), _lr = /* @__PURE__ */ x(function(t, e, r) { +}, "drawServices"), Alr = /* @__PURE__ */ x(function(t, e, r) { r.forEach((n) => { const i = e.append("g"), s = Li("iconSize"); i.append("g").append("rect").attr("id", "node-" + n.id).attr("fill-opacity", "0").attr("width", s).attr("height", s), i.attr("class", "architecture-junction"); @@ -119698,7 +119769,7 @@ Pie([ icons: tb } ]); -Vc.use(Jor); +Vc.use(elr); function Uve(t, e) { t.forEach((r) => { e.add({ @@ -119826,7 +119897,7 @@ function Hve(t) { const g = r([f[0] + p[0], f[1] + p[1]]), m = s[g]; m && !o[g] && (a.push(g), e.push({ [eZ[d]]: m, - [eZ[elr(d)]]: h, + [eZ[tlr(d)]]: h, gap: 1.5 * Li("iconSize") })); }); @@ -119963,47 +120034,47 @@ function Xve(t, e, r, n, { spatialMaps: i }) { }); } x(Xve, "layoutArchitecture"); -var Alr = /* @__PURE__ */ x(async (t, e, r, n) => { +var Llr = /* @__PURE__ */ x(async (t, e, r, n) => { const i = n.db, s = i.getServices(), a = i.getJunctions(), o = i.getGroups(), l = i.getEdges(), u = i.getDataStructures(), h = H0(e), f = h.append("g"); f.attr("class", "architecture-edges"); const d = h.append("g"); d.attr("class", "architecture-services"); const p = h.append("g"); - p.attr("class", "architecture-groups"), await Elr(i, d, s), _lr(i, d, a); + p.attr("class", "architecture-groups"), await _lr(i, d, s), Alr(i, d, a); const g = await Xve(s, a, o, l, u); - await Tlr(f, g), await Clr(p, g), Qve(i, g), H1(void 0, h, Li("padding"), Li("useMaxWidth")); -}, "draw"), Llr = { draw: Alr }, Rlr = { - parser: Olr, + await Clr(f, g), await Elr(p, g), Qve(i, g), H1(void 0, h, Li("padding"), Li("useMaxWidth")); +}, "draw"), Rlr = { draw: Llr }, Mlr = { + parser: klr, db: OS, - renderer: Llr, - styles: Slr + renderer: Rlr, + styles: Tlr }; -const Mlr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +const Dlr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - diagram: Rlr -}, Symbol.toStringTag, { value: "Module" })), Dlr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ + diagram: Mlr +}, Symbol.toStringTag, { value: "Module" })), Nlr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, InfoModule: H0e, createInfoServices: X0e -}, Symbol.toStringTag, { value: "Module" })), Nlr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +}, Symbol.toStringTag, { value: "Module" })), Ilr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, PacketModule: Z0e, createPacketServices: j0e -}, Symbol.toStringTag, { value: "Module" })), Ilr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +}, Symbol.toStringTag, { value: "Module" })), Plr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, PieModule: K0e, createPieServices: J0e -}, Symbol.toStringTag, { value: "Module" })), Plr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +}, Symbol.toStringTag, { value: "Module" })), $lr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, ArchitectureModule: epe, createArchitectureServices: tpe -}, Symbol.toStringTag, { value: "Module" })), $lr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +}, Symbol.toStringTag, { value: "Module" })), Blr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, GitGraphModule: W0e, createGitGraphServices: G0e }, Symbol.toStringTag, { value: "Module" })); export { - Vlr as default, - m7t as defaultButtons, + Ulr as default, + v7t as defaultButtons, Km as predefinedButtons }; diff --git a/docs/collaboration.html b/docs/collaboration.html index 710c98f..5c1d559 100644 --- a/docs/collaboration.html +++ b/docs/collaboration.html @@ -404,7 +404,7 @@

Other Collaborative FeaturesOther Collaborative Featuresdf5b86c3 + 4d140338 @ main

diff --git a/docs/comments.html b/docs/comments.html index c91136d..dc86b06 100644 --- a/docs/comments.html +++ b/docs/comments.html @@ -569,7 +569,7 @@

Suggestions Last update: - 2024-10-09 + 2024-10-10 @@ -622,7 +622,7 @@

Suggestions - df5b86c3 + 4d140338 @ main diff --git a/docs/genindex.html b/docs/genindex.html index c66ef1e..4d0b309 100644 --- a/docs/genindex.html +++ b/docs/genindex.html @@ -335,7 +335,7 @@ Last update: - 2024-10-09 + 2024-10-10 @@ -367,7 +367,7 @@ - df5b86c3 + 4d140338 @ main diff --git a/docs/index.html b/docs/index.html index 0d4f356..cc4179e 100644 --- a/docs/index.html +++ b/docs/index.html @@ -373,7 +373,7 @@

MyST Editor - User Manual Last update: - 2024-10-09 + 2024-10-10 @@ -426,7 +426,7 @@

MyST Editor - User Manual - df5b86c3 + 4d140338 @ main diff --git a/docs/introduction.html b/docs/introduction.html index 4f6ccfa..7a2d1c1 100644 --- a/docs/introduction.html +++ b/docs/introduction.html @@ -358,7 +358,7 @@

Introduction Last update: - 2024-10-09 + 2024-10-10 @@ -426,7 +426,7 @@

Introduction - df5b86c3 + 4d140338 @ main diff --git a/docs/mermaid.html b/docs/mermaid.html index a5052bc..844d3ed 100644 --- a/docs/mermaid.html +++ b/docs/mermaid.html @@ -362,7 +362,7 @@

Mermaid DiagramsMermaid Diagramsdf5b86c3 + 4d140338 @ main diff --git a/docs/rich-links.html b/docs/rich-links.html index 0ffd3d1..f13566d 100644 --- a/docs/rich-links.html +++ b/docs/rich-links.html @@ -438,7 +438,7 @@

View Mode ButtonsView Mode Buttonsdf5b86c3 + 4d140338 @ main