UNPKG

mermaid

Version:

Markdown-ish syntax for generating flowcharts, sequence diagrams, class diagrams, gantt charts and git graphs.

1,045 lines (1,044 loc) 88.7 kB
import { s as we, g as Oe, a as Te, b as Re, c as Dt, d as ue, e as De, f as Kt, h as Se, i as wt, j as Nt, l as le, k as Pe, w as Me, m as oe } from "./mermaid-9f2aa176.js"; import { d as Le, g as Ne } from "./svgDrawCommon-ecc5f780.js"; var Yt = function() { var e = function(bt, _, x, m) { for (x = x || {}, m = bt.length; m--; x[bt[m]] = _) ; return x; }, t = [1, 24], r = [1, 25], o = [1, 26], l = [1, 27], n = [1, 28], a = [1, 63], s = [1, 64], i = [1, 65], u = [1, 66], d = [1, 67], f = [1, 68], p = [1, 69], E = [1, 29], O = [1, 30], R = [1, 31], S = [1, 32], L = [1, 33], Y = [1, 34], Q = [1, 35], H = [1, 36], q = [1, 37], G = [1, 38], K = [1, 39], J = [1, 40], Z = [1, 41], $ = [1, 42], tt = [1, 43], et = [1, 44], nt = [1, 45], it = [1, 46], st = [1, 47], at = [1, 48], rt = [1, 50], lt = [1, 51], ot = [1, 52], ct = [1, 53], ht = [1, 54], ut = [1, 55], dt = [1, 56], ft = [1, 57], pt = [1, 58], yt = [1, 59], gt = [1, 60], Ct = [14, 42], Vt = [14, 34, 36, 37, 38, 39, 40, 41, 42, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74], Ot = [12, 14, 34, 36, 37, 38, 39, 40, 41, 42, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74], k = [1, 82], A = [1, 83], C = [1, 84], v = [1, 85], w = [12, 14, 42], ie = [12, 14, 33, 42], Pt = [12, 14, 33, 42, 76, 77, 79, 80], mt = [12, 33], zt = [34, 36, 37, 38, 39, 40, 41, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74], Xt = { trace: function() { }, yy: {}, symbols_: { error: 2, start: 3, mermaidDoc: 4, direction: 5, direction_tb: 6, direction_bt: 7, direction_rl: 8, direction_lr: 9, graphConfig: 10, C4_CONTEXT: 11, NEWLINE: 12, statements: 13, EOF: 14, C4_CONTAINER: 15, C4_COMPONENT: 16, C4_DYNAMIC: 17, C4_DEPLOYMENT: 18, otherStatements: 19, diagramStatements: 20, otherStatement: 21, title: 22, accDescription: 23, acc_title: 24, acc_title_value: 25, acc_descr: 26, acc_descr_value: 27, acc_descr_multiline_value: 28, boundaryStatement: 29, boundaryStartStatement: 30, boundaryStopStatement: 31, boundaryStart: 32, LBRACE: 33, ENTERPRISE_BOUNDARY: 34, attributes: 35, SYSTEM_BOUNDARY: 36, BOUNDARY: 37, CONTAINER_BOUNDARY: 38, NODE: 39, NODE_L: 40, NODE_R: 41, RBRACE: 42, diagramStatement: 43, PERSON: 44, PERSON_EXT: 45, SYSTEM: 46, SYSTEM_DB: 47, SYSTEM_QUEUE: 48, SYSTEM_EXT: 49, SYSTEM_EXT_DB: 50, SYSTEM_EXT_QUEUE: 51, CONTAINER: 52, CONTAINER_DB: 53, CONTAINER_QUEUE: 54, CONTAINER_EXT: 55, CONTAINER_EXT_DB: 56, CONTAINER_EXT_QUEUE: 57, COMPONENT: 58, COMPONENT_DB: 59, COMPONENT_QUEUE: 60, COMPONENT_EXT: 61, COMPONENT_EXT_DB: 62, COMPONENT_EXT_QUEUE: 63, REL: 64, BIREL: 65, REL_U: 66, REL_D: 67, REL_L: 68, REL_R: 69, REL_B: 70, REL_INDEX: 71, UPDATE_EL_STYLE: 72, UPDATE_REL_STYLE: 73, UPDATE_LAYOUT_CONFIG: 74, attribute: 75, STR: 76, STR_KEY: 77, STR_VALUE: 78, ATTRIBUTE: 79, ATTRIBUTE_EMPTY: 80, $accept: 0, $end: 1 }, terminals_: { 2: "error", 6: "direction_tb", 7: "direction_bt", 8: "direction_rl", 9: "direction_lr", 11: "C4_CONTEXT", 12: "NEWLINE", 14: "EOF", 15: "C4_CONTAINER", 16: "C4_COMPONENT", 17: "C4_DYNAMIC", 18: "C4_DEPLOYMENT", 22: "title", 23: "accDescription", 24: "acc_title", 25: "acc_title_value", 26: "acc_descr", 27: "acc_descr_value", 28: "acc_descr_multiline_value", 33: "LBRACE", 34: "ENTERPRISE_BOUNDARY", 36: "SYSTEM_BOUNDARY", 37: "BOUNDARY", 38: "CONTAINER_BOUNDARY", 39: "NODE", 40: "NODE_L", 41: "NODE_R", 42: "RBRACE", 44: "PERSON", 45: "PERSON_EXT", 46: "SYSTEM", 47: "SYSTEM_DB", 48: "SYSTEM_QUEUE", 49: "SYSTEM_EXT", 50: "SYSTEM_EXT_DB", 51: "SYSTEM_EXT_QUEUE", 52: "CONTAINER", 53: "CONTAINER_DB", 54: "CONTAINER_QUEUE", 55: "CONTAINER_EXT", 56: "CONTAINER_EXT_DB", 57: "CONTAINER_EXT_QUEUE", 58: "COMPONENT", 59: "COMPONENT_DB", 60: "COMPONENT_QUEUE", 61: "COMPONENT_EXT", 62: "COMPONENT_EXT_DB", 63: "COMPONENT_EXT_QUEUE", 64: "REL", 65: "BIREL", 66: "REL_U", 67: "REL_D", 68: "REL_L", 69: "REL_R", 70: "REL_B", 71: "REL_INDEX", 72: "UPDATE_EL_STYLE", 73: "UPDATE_REL_STYLE", 74: "UPDATE_LAYOUT_CONFIG", 76: "STR", 77: "STR_KEY", 78: "STR_VALUE", 79: "ATTRIBUTE", 80: "ATTRIBUTE_EMPTY" }, productions_: [0, [3, 1], [3, 1], [5, 1], [5, 1], [5, 1], [5, 1], [4, 1], [10, 4], [10, 4], [10, 4], [10, 4], [10, 4], [13, 1], [13, 1], [13, 2], [19, 1], [19, 2], [19, 3], [21, 1], [21, 1], [21, 2], [21, 2], [21, 1], [29, 3], [30, 3], [30, 3], [30, 4], [32, 2], [32, 2], [32, 2], [32, 2], [32, 2], [32, 2], [32, 2], [31, 1], [20, 1], [20, 2], [20, 3], [43, 2], [43, 2], [43, 2], [43, 2], [43, 2], [43, 2], [43, 2], [43, 2], [43, 2], [43, 2], [43, 2], [43, 2], [43, 2], [43, 2], [43, 2], [43, 2], [43, 2], [43, 2], [43, 2], [43, 2], [43, 1], [43, 2], [43, 2], [43, 2], [43, 2], [43, 2], [43, 2], [43, 2], [43, 2], [43, 2], [43, 2], [43, 2], [35, 1], [35, 2], [75, 1], [75, 2], [75, 1], [75, 1]], performAction: function(_, x, m, g, T, h, Tt) { var y = h.length - 1; switch (T) { case 3: g.setDirection("TB"); break; case 4: g.setDirection("BT"); break; case 5: g.setDirection("RL"); break; case 6: g.setDirection("LR"); break; case 8: case 9: case 10: case 11: case 12: g.setC4Type(h[y - 3]); break; case 19: g.setTitle(h[y].substring(6)), this.$ = h[y].substring(6); break; case 20: g.setAccDescription(h[y].substring(15)), this.$ = h[y].substring(15); break; case 21: this.$ = h[y].trim(), g.setTitle(this.$); break; case 22: case 23: this.$ = h[y].trim(), g.setAccDescription(this.$); break; case 28: case 29: h[y].splice(2, 0, "ENTERPRISE"), g.addPersonOrSystemBoundary(...h[y]), this.$ = h[y]; break; case 30: g.addPersonOrSystemBoundary(...h[y]), this.$ = h[y]; break; case 31: h[y].splice(2, 0, "CONTAINER"), g.addContainerBoundary(...h[y]), this.$ = h[y]; break; case 32: g.addDeploymentNode("node", ...h[y]), this.$ = h[y]; break; case 33: g.addDeploymentNode("nodeL", ...h[y]), this.$ = h[y]; break; case 34: g.addDeploymentNode("nodeR", ...h[y]), this.$ = h[y]; break; case 35: g.popBoundaryParseStack(); break; case 39: g.addPersonOrSystem("person", ...h[y]), this.$ = h[y]; break; case 40: g.addPersonOrSystem("external_person", ...h[y]), this.$ = h[y]; break; case 41: g.addPersonOrSystem("system", ...h[y]), this.$ = h[y]; break; case 42: g.addPersonOrSystem("system_db", ...h[y]), this.$ = h[y]; break; case 43: g.addPersonOrSystem("system_queue", ...h[y]), this.$ = h[y]; break; case 44: g.addPersonOrSystem("external_system", ...h[y]), this.$ = h[y]; break; case 45: g.addPersonOrSystem("external_system_db", ...h[y]), this.$ = h[y]; break; case 46: g.addPersonOrSystem("external_system_queue", ...h[y]), this.$ = h[y]; break; case 47: g.addContainer("container", ...h[y]), this.$ = h[y]; break; case 48: g.addContainer("container_db", ...h[y]), this.$ = h[y]; break; case 49: g.addContainer("container_queue", ...h[y]), this.$ = h[y]; break; case 50: g.addContainer("external_container", ...h[y]), this.$ = h[y]; break; case 51: g.addContainer("external_container_db", ...h[y]), this.$ = h[y]; break; case 52: g.addContainer("external_container_queue", ...h[y]), this.$ = h[y]; break; case 53: g.addComponent("component", ...h[y]), this.$ = h[y]; break; case 54: g.addComponent("component_db", ...h[y]), this.$ = h[y]; break; case 55: g.addComponent("component_queue", ...h[y]), this.$ = h[y]; break; case 56: g.addComponent("external_component", ...h[y]), this.$ = h[y]; break; case 57: g.addComponent("external_component_db", ...h[y]), this.$ = h[y]; break; case 58: g.addComponent("external_component_queue", ...h[y]), this.$ = h[y]; break; case 60: g.addRel("rel", ...h[y]), this.$ = h[y]; break; case 61: g.addRel("birel", ...h[y]), this.$ = h[y]; break; case 62: g.addRel("rel_u", ...h[y]), this.$ = h[y]; break; case 63: g.addRel("rel_d", ...h[y]), this.$ = h[y]; break; case 64: g.addRel("rel_l", ...h[y]), this.$ = h[y]; break; case 65: g.addRel("rel_r", ...h[y]), this.$ = h[y]; break; case 66: g.addRel("rel_b", ...h[y]), this.$ = h[y]; break; case 67: h[y].splice(0, 1), g.addRel("rel", ...h[y]), this.$ = h[y]; break; case 68: g.updateElStyle("update_el_style", ...h[y]), this.$ = h[y]; break; case 69: g.updateRelStyle("update_rel_style", ...h[y]), this.$ = h[y]; break; case 70: g.updateLayoutConfig("update_layout_config", ...h[y]), this.$ = h[y]; break; case 71: this.$ = [h[y]]; break; case 72: h[y].unshift(h[y - 1]), this.$ = h[y]; break; case 73: case 75: this.$ = h[y].trim(); break; case 74: let Et = {}; Et[h[y - 1].trim()] = h[y].trim(), this.$ = Et; break; case 76: this.$ = ""; break; } }, table: [{ 3: 1, 4: 2, 5: 3, 6: [1, 5], 7: [1, 6], 8: [1, 7], 9: [1, 8], 10: 4, 11: [1, 9], 15: [1, 10], 16: [1, 11], 17: [1, 12], 18: [1, 13] }, { 1: [3] }, { 1: [2, 1] }, { 1: [2, 2] }, { 1: [2, 7] }, { 1: [2, 3] }, { 1: [2, 4] }, { 1: [2, 5] }, { 1: [2, 6] }, { 12: [1, 14] }, { 12: [1, 15] }, { 12: [1, 16] }, { 12: [1, 17] }, { 12: [1, 18] }, { 13: 19, 19: 20, 20: 21, 21: 22, 22: t, 23: r, 24: o, 26: l, 28: n, 29: 49, 30: 61, 32: 62, 34: a, 36: s, 37: i, 38: u, 39: d, 40: f, 41: p, 43: 23, 44: E, 45: O, 46: R, 47: S, 48: L, 49: Y, 50: Q, 51: H, 52: q, 53: G, 54: K, 55: J, 56: Z, 57: $, 58: tt, 59: et, 60: nt, 61: it, 62: st, 63: at, 64: rt, 65: lt, 66: ot, 67: ct, 68: ht, 69: ut, 70: dt, 71: ft, 72: pt, 73: yt, 74: gt }, { 13: 70, 19: 20, 20: 21, 21: 22, 22: t, 23: r, 24: o, 26: l, 28: n, 29: 49, 30: 61, 32: 62, 34: a, 36: s, 37: i, 38: u, 39: d, 40: f, 41: p, 43: 23, 44: E, 45: O, 46: R, 47: S, 48: L, 49: Y, 50: Q, 51: H, 52: q, 53: G, 54: K, 55: J, 56: Z, 57: $, 58: tt, 59: et, 60: nt, 61: it, 62: st, 63: at, 64: rt, 65: lt, 66: ot, 67: ct, 68: ht, 69: ut, 70: dt, 71: ft, 72: pt, 73: yt, 74: gt }, { 13: 71, 19: 20, 20: 21, 21: 22, 22: t, 23: r, 24: o, 26: l, 28: n, 29: 49, 30: 61, 32: 62, 34: a, 36: s, 37: i, 38: u, 39: d, 40: f, 41: p, 43: 23, 44: E, 45: O, 46: R, 47: S, 48: L, 49: Y, 50: Q, 51: H, 52: q, 53: G, 54: K, 55: J, 56: Z, 57: $, 58: tt, 59: et, 60: nt, 61: it, 62: st, 63: at, 64: rt, 65: lt, 66: ot, 67: ct, 68: ht, 69: ut, 70: dt, 71: ft, 72: pt, 73: yt, 74: gt }, { 13: 72, 19: 20, 20: 21, 21: 22, 22: t, 23: r, 24: o, 26: l, 28: n, 29: 49, 30: 61, 32: 62, 34: a, 36: s, 37: i, 38: u, 39: d, 40: f, 41: p, 43: 23, 44: E, 45: O, 46: R, 47: S, 48: L, 49: Y, 50: Q, 51: H, 52: q, 53: G, 54: K, 55: J, 56: Z, 57: $, 58: tt, 59: et, 60: nt, 61: it, 62: st, 63: at, 64: rt, 65: lt, 66: ot, 67: ct, 68: ht, 69: ut, 70: dt, 71: ft, 72: pt, 73: yt, 74: gt }, { 13: 73, 19: 20, 20: 21, 21: 22, 22: t, 23: r, 24: o, 26: l, 28: n, 29: 49, 30: 61, 32: 62, 34: a, 36: s, 37: i, 38: u, 39: d, 40: f, 41: p, 43: 23, 44: E, 45: O, 46: R, 47: S, 48: L, 49: Y, 50: Q, 51: H, 52: q, 53: G, 54: K, 55: J, 56: Z, 57: $, 58: tt, 59: et, 60: nt, 61: it, 62: st, 63: at, 64: rt, 65: lt, 66: ot, 67: ct, 68: ht, 69: ut, 70: dt, 71: ft, 72: pt, 73: yt, 74: gt }, { 14: [1, 74] }, e(Ct, [2, 13], { 43: 23, 29: 49, 30: 61, 32: 62, 20: 75, 34: a, 36: s, 37: i, 38: u, 39: d, 40: f, 41: p, 44: E, 45: O, 46: R, 47: S, 48: L, 49: Y, 50: Q, 51: H, 52: q, 53: G, 54: K, 55: J, 56: Z, 57: $, 58: tt, 59: et, 60: nt, 61: it, 62: st, 63: at, 64: rt, 65: lt, 66: ot, 67: ct, 68: ht, 69: ut, 70: dt, 71: ft, 72: pt, 73: yt, 74: gt }), e(Ct, [2, 14]), e(Vt, [2, 16], { 12: [1, 76] }), e(Ct, [2, 36], { 12: [1, 77] }), e(Ot, [2, 19]), e(Ot, [2, 20]), { 25: [1, 78] }, { 27: [1, 79] }, e(Ot, [2, 23]), { 35: 80, 75: 81, 76: k, 77: A, 79: C, 80: v }, { 35: 86, 75: 81, 76: k, 77: A, 79: C, 80: v }, { 35: 87, 75: 81, 76: k, 77: A, 79: C, 80: v }, { 35: 88, 75: 81, 76: k, 77: A, 79: C, 80: v }, { 35: 89, 75: 81, 76: k, 77: A, 79: C, 80: v }, { 35: 90, 75: 81, 76: k, 77: A, 79: C, 80: v }, { 35: 91, 75: 81, 76: k, 77: A, 79: C, 80: v }, { 35: 92, 75: 81, 76: k, 77: A, 79: C, 80: v }, { 35: 93, 75: 81, 76: k, 77: A, 79: C, 80: v }, { 35: 94, 75: 81, 76: k, 77: A, 79: C, 80: v }, { 35: 95, 75: 81, 76: k, 77: A, 79: C, 80: v }, { 35: 96, 75: 81, 76: k, 77: A, 79: C, 80: v }, { 35: 97, 75: 81, 76: k, 77: A, 79: C, 80: v }, { 35: 98, 75: 81, 76: k, 77: A, 79: C, 80: v }, { 35: 99, 75: 81, 76: k, 77: A, 79: C, 80: v }, { 35: 100, 75: 81, 76: k, 77: A, 79: C, 80: v }, { 35: 101, 75: 81, 76: k, 77: A, 79: C, 80: v }, { 35: 102, 75: 81, 76: k, 77: A, 79: C, 80: v }, { 35: 103, 75: 81, 76: k, 77: A, 79: C, 80: v }, { 35: 104, 75: 81, 76: k, 77: A, 79: C, 80: v }, e(w, [2, 59]), { 35: 105, 75: 81, 76: k, 77: A, 79: C, 80: v }, { 35: 106, 75: 81, 76: k, 77: A, 79: C, 80: v }, { 35: 107, 75: 81, 76: k, 77: A, 79: C, 80: v }, { 35: 108, 75: 81, 76: k, 77: A, 79: C, 80: v }, { 35: 109, 75: 81, 76: k, 77: A, 79: C, 80: v }, { 35: 110, 75: 81, 76: k, 77: A, 79: C, 80: v }, { 35: 111, 75: 81, 76: k, 77: A, 79: C, 80: v }, { 35: 112, 75: 81, 76: k, 77: A, 79: C, 80: v }, { 35: 113, 75: 81, 76: k, 77: A, 79: C, 80: v }, { 35: 114, 75: 81, 76: k, 77: A, 79: C, 80: v }, { 35: 115, 75: 81, 76: k, 77: A, 79: C, 80: v }, { 20: 116, 29: 49, 30: 61, 32: 62, 34: a, 36: s, 37: i, 38: u, 39: d, 40: f, 41: p, 43: 23, 44: E, 45: O, 46: R, 47: S, 48: L, 49: Y, 50: Q, 51: H, 52: q, 53: G, 54: K, 55: J, 56: Z, 57: $, 58: tt, 59: et, 60: nt, 61: it, 62: st, 63: at, 64: rt, 65: lt, 66: ot, 67: ct, 68: ht, 69: ut, 70: dt, 71: ft, 72: pt, 73: yt, 74: gt }, { 12: [1, 118], 33: [1, 117] }, { 35: 119, 75: 81, 76: k, 77: A, 79: C, 80: v }, { 35: 120, 75: 81, 76: k, 77: A, 79: C, 80: v }, { 35: 121, 75: 81, 76: k, 77: A, 79: C, 80: v }, { 35: 122, 75: 81, 76: k, 77: A, 79: C, 80: v }, { 35: 123, 75: 81, 76: k, 77: A, 79: C, 80: v }, { 35: 124, 75: 81, 76: k, 77: A, 79: C, 80: v }, { 35: 125, 75: 81, 76: k, 77: A, 79: C, 80: v }, { 14: [1, 126] }, { 14: [1, 127] }, { 14: [1, 128] }, { 14: [1, 129] }, { 1: [2, 8] }, e(Ct, [2, 15]), e(Vt, [2, 17], { 21: 22, 19: 130, 22: t, 23: r, 24: o, 26: l, 28: n }), e(Ct, [2, 37], { 19: 20, 20: 21, 21: 22, 43: 23, 29: 49, 30: 61, 32: 62, 13: 131, 22: t, 23: r, 24: o, 26: l, 28: n, 34: a, 36: s, 37: i, 38: u, 39: d, 40: f, 41: p, 44: E, 45: O, 46: R, 47: S, 48: L, 49: Y, 50: Q, 51: H, 52: q, 53: G, 54: K, 55: J, 56: Z, 57: $, 58: tt, 59: et, 60: nt, 61: it, 62: st, 63: at, 64: rt, 65: lt, 66: ot, 67: ct, 68: ht, 69: ut, 70: dt, 71: ft, 72: pt, 73: yt, 74: gt }), e(Ot, [2, 21]), e(Ot, [2, 22]), e(w, [2, 39]), e(ie, [2, 71], { 75: 81, 35: 132, 76: k, 77: A, 79: C, 80: v }), e(Pt, [2, 73]), { 78: [1, 133] }, e(Pt, [2, 75]), e(Pt, [2, 76]), e(w, [2, 40]), e(w, [2, 41]), e(w, [2, 42]), e(w, [2, 43]), e(w, [2, 44]), e(w, [2, 45]), e(w, [2, 46]), e(w, [2, 47]), e(w, [2, 48]), e(w, [2, 49]), e(w, [2, 50]), e(w, [2, 51]), e(w, [2, 52]), e(w, [2, 53]), e(w, [2, 54]), e(w, [2, 55]), e(w, [2, 56]), e(w, [2, 57]), e(w, [2, 58]), e(w, [2, 60]), e(w, [2, 61]), e(w, [2, 62]), e(w, [2, 63]), e(w, [2, 64]), e(w, [2, 65]), e(w, [2, 66]), e(w, [2, 67]), e(w, [2, 68]), e(w, [2, 69]), e(w, [2, 70]), { 31: 134, 42: [1, 135] }, { 12: [1, 136] }, { 33: [1, 137] }, e(mt, [2, 28]), e(mt, [2, 29]), e(mt, [2, 30]), e(mt, [2, 31]), e(mt, [2, 32]), e(mt, [2, 33]), e(mt, [2, 34]), { 1: [2, 9] }, { 1: [2, 10] }, { 1: [2, 11] }, { 1: [2, 12] }, e(Vt, [2, 18]), e(Ct, [2, 38]), e(ie, [2, 72]), e(Pt, [2, 74]), e(w, [2, 24]), e(w, [2, 35]), e(zt, [2, 25]), e(zt, [2, 26], { 12: [1, 138] }), e(zt, [2, 27])], defaultActions: { 2: [2, 1], 3: [2, 2], 4: [2, 7], 5: [2, 3], 6: [2, 4], 7: [2, 5], 8: [2, 6], 74: [2, 8], 126: [2, 9], 127: [2, 10], 128: [2, 11], 129: [2, 12] }, parseError: function(_, x) { if (x.recoverable) this.trace(_); else { var m = new Error(_); throw m.hash = x, m; } }, parse: function(_) { var x = this, m = [0], g = [], T = [null], h = [], Tt = this.table, y = "", Et = 0, se = 0, ke = 2, ae = 1, Ae = h.slice.call(arguments, 1), D = Object.create(this.lexer), kt = { yy: {} }; for (var Qt in this.yy) Object.prototype.hasOwnProperty.call(this.yy, Qt) && (kt.yy[Qt] = this.yy[Qt]); D.setInput(_, kt.yy), kt.yy.lexer = D, kt.yy.parser = this, typeof D.yylloc > "u" && (D.yylloc = {}); var Ht = D.yylloc; h.push(Ht); var Ce = D.options && D.options.ranges; typeof kt.yy.parseError == "function" ? this.parseError = kt.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError; function ve() { var X; return X = g.pop() || D.lex() || ae, typeof X != "number" && (X instanceof Array && (g = X, X = g.pop()), X = x.symbols_[X] || X), X; } for (var M, At, N, qt, vt = {}, Mt, z, re, Lt; ; ) { if (At = m[m.length - 1], this.defaultActions[At] ? N = this.defaultActions[At] : ((M === null || typeof M > "u") && (M = ve()), N = Tt[At] && Tt[At][M]), typeof N > "u" || !N.length || !N[0]) { var Gt = ""; Lt = []; for (Mt in Tt[At]) this.terminals_[Mt] && Mt > ke && Lt.push("'" + this.terminals_[Mt] + "'"); D.showPosition ? Gt = "Parse error on line " + (Et + 1) + `: ` + D.showPosition() + ` Expecting ` + Lt.join(", ") + ", got '" + (this.terminals_[M] || M) + "'" : Gt = "Parse error on line " + (Et + 1) + ": Unexpected " + (M == ae ? "end of input" : "'" + (this.terminals_[M] || M) + "'"), this.parseError(Gt, { text: D.match, token: this.terminals_[M] || M, line: D.yylineno, loc: Ht, expected: Lt }); } if (N[0] instanceof Array && N.length > 1) throw new Error("Parse Error: multiple actions possible at state: " + At + ", token: " + M); switch (N[0]) { case 1: m.push(M), T.push(D.yytext), h.push(D.yylloc), m.push(N[1]), M = null, se = D.yyleng, y = D.yytext, Et = D.yylineno, Ht = D.yylloc; break; case 2: if (z = this.productions_[N[1]][1], vt.$ = T[T.length - z], vt._$ = { first_line: h[h.length - (z || 1)].first_line, last_line: h[h.length - 1].last_line, first_column: h[h.length - (z || 1)].first_column, last_column: h[h.length - 1].last_column }, Ce && (vt._$.range = [ h[h.length - (z || 1)].range[0], h[h.length - 1].range[1] ]), qt = this.performAction.apply(vt, [ y, se, Et, kt.yy, N[1], T, h ].concat(Ae)), typeof qt < "u") return qt; z && (m = m.slice(0, -1 * z * 2), T = T.slice(0, -1 * z), h = h.slice(0, -1 * z)), m.push(this.productions_[N[1]][0]), T.push(vt.$), h.push(vt._$), re = Tt[m[m.length - 2]][m[m.length - 1]], m.push(re); break; case 3: return !0; } } return !0; } }, Ee = function() { var bt = { EOF: 1, parseError: function(x, m) { if (this.yy.parser) this.yy.parser.parseError(x, m); else throw new Error(x); }, // resets the lexer, sets new input setInput: function(_, x) { return this.yy = x || this.yy || {}, this._input = _, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = { first_line: 1, first_column: 0, last_line: 1, last_column: 0 }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this; }, // consumes and returns one char from the input input: function() { var _ = this._input[0]; this.yytext += _, this.yyleng++, this.offset++, this.match += _, this.matched += _; var x = _.match(/(?:\r\n?|\n).*/g); return x ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), _; }, // unshifts one char (or a string) into the input unput: function(_) { var x = _.length, m = _.split(/(?:\r\n?|\n)/g); this._input = _ + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - x), this.offset -= x; var g = this.match.split(/(?:\r\n?|\n)/g); this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), m.length - 1 && (this.yylineno -= m.length - 1); var T = this.yylloc.range; return this.yylloc = { first_line: this.yylloc.first_line, last_line: this.yylineno + 1, first_column: this.yylloc.first_column, last_column: m ? (m.length === g.length ? this.yylloc.first_column : 0) + g[g.length - m.length].length - m[0].length : this.yylloc.first_column - x }, this.options.ranges && (this.yylloc.range = [T[0], T[0] + this.yyleng - x]), this.yyleng = this.yytext.length, this; }, // When called from action, caches matched text and appends it on next action more: function() { return this._more = !0, this; }, // When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead. reject: function() { if (this.options.backtrack_lexer) this._backtrack = !0; else return this.parseError("Lexical error on line " + (this.yylineno + 1) + `. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). ` + this.showPosition(), { text: "", token: null, line: this.yylineno }); return this; }, // retain first n characters of the match less: function(_) { this.unput(this.match.slice(_)); }, // displays already matched input, i.e. for error messages pastInput: function() { var _ = this.matched.substr(0, this.matched.length - this.match.length); return (_.length > 20 ? "..." : "") + _.substr(-20).replace(/\n/g, ""); }, // displays upcoming input, i.e. for error messages upcomingInput: function() { var _ = this.match; return _.length < 20 && (_ += this._input.substr(0, 20 - _.length)), (_.substr(0, 20) + (_.length > 20 ? "..." : "")).replace(/\n/g, ""); }, // displays the character position where the lexing error occurred, i.e. for error messages showPosition: function() { var _ = this.pastInput(), x = new Array(_.length + 1).join("-"); return _ + this.upcomingInput() + ` ` + x + "^"; }, // test the lexed token: return FALSE when not a match, otherwise return token test_match: function(_, x) { var m, g, T; if (this.options.backtrack_lexer && (T = { yylineno: this.yylineno, yylloc: { first_line: this.yylloc.first_line, last_line: this.last_line, first_column: this.yylloc.first_column, last_column: this.yylloc.last_column }, yytext: this.yytext, match: this.match, matches: this.matches, matched: this.matched, yyleng: this.yyleng, offset: this.offset, _more: this._more, _input: this._input, yy: this.yy, conditionStack: this.conditionStack.slice(0), done: this.done }, this.options.ranges && (T.yylloc.range = this.yylloc.range.slice(0))), g = _[0].match(/(?:\r\n?|\n).*/g), g && (this.yylineno += g.length), this.yylloc = { first_line: this.yylloc.last_line, last_line: this.yylineno + 1, first_column: this.yylloc.last_column, last_column: g ? g[g.length - 1].length - g[g.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + _[0].length }, this.yytext += _[0], this.match += _[0], this.matches = _, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [this.offset, this.offset += this.yyleng]), this._more = !1, this._backtrack = !1, this._input = this._input.slice(_[0].length), this.matched += _[0], m = this.performAction.call(this, this.yy, this, x, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), m) return m; if (this._backtrack) { for (var h in T) this[h] = T[h]; return !1; } return !1; }, // return next match in input next: function() { if (this.done) return this.EOF; this._input || (this.done = !0); var _, x, m, g; this._more || (this.yytext = "", this.match = ""); for (var T = this._currentRules(), h = 0; h < T.length; h++) if (m = this._input.match(this.rules[T[h]]), m && (!x || m[0].length > x[0].length)) { if (x = m, g = h, this.options.backtrack_lexer) { if (_ = this.test_match(m, T[h]), _ !== !1) return _; if (this._backtrack) { x = !1; continue; } else return !1; } else if (!this.options.flex) break; } return x ? (_ = this.test_match(x, T[g]), _ !== !1 ? _ : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text. ` + this.showPosition(), { text: "", token: null, line: this.yylineno }); }, // return next match that has a token lex: function() { var x = this.next(); return x || this.lex(); }, // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack) begin: function(x) { this.conditionStack.push(x); }, // pop the previously active lexer condition state off the condition stack popState: function() { var x = this.conditionStack.length - 1; return x > 0 ? this.conditionStack.pop() : this.conditionStack[0]; }, // produce the lexer rule set which is active for the currently active lexer condition state _currentRules: function() { return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules; }, // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available topState: function(x) { return x = this.conditionStack.length - 1 - Math.abs(x || 0), x >= 0 ? this.conditionStack[x] : "INITIAL"; }, // alias for begin(condition) pushState: function(x) { this.begin(x); }, // return the number of states currently on the stack stateStackSize: function() { return this.conditionStack.length; }, options: {}, performAction: function(x, m, g, T) { switch (g) { case 0: return 6; case 1: return 7; case 2: return 8; case 3: return 9; case 4: return 22; case 5: return 23; case 6: return this.begin("acc_title"), 24; case 7: return this.popState(), "acc_title_value"; case 8: return this.begin("acc_descr"), 26; case 9: return this.popState(), "acc_descr_value"; case 10: this.begin("acc_descr_multiline"); break; case 11: this.popState(); break; case 12: return "acc_descr_multiline_value"; case 13: break; case 14: c; break; case 15: return 12; case 16: break; case 17: return 11; case 18: return 15; case 19: return 16; case 20: return 17; case 21: return 18; case 22: return this.begin("person_ext"), 45; case 23: return this.begin("person"), 44; case 24: return this.begin("system_ext_queue"), 51; case 25: return this.begin("system_ext_db"), 50; case 26: return this.begin("system_ext"), 49; case 27: return this.begin("system_queue"), 48; case 28: return this.begin("system_db"), 47; case 29: return this.begin("system"), 46; case 30: return this.begin("boundary"), 37; case 31: return this.begin("enterprise_boundary"), 34; case 32: return this.begin("system_boundary"), 36; case 33: return this.begin("container_ext_queue"), 57; case 34: return this.begin("container_ext_db"), 56; case 35: return this.begin("container_ext"), 55; case 36: return this.begin("container_queue"), 54; case 37: return this.begin("container_db"), 53; case 38: return this.begin("container"), 52; case 39: return this.begin("container_boundary"), 38; case 40: return this.begin("component_ext_queue"), 63; case 41: return this.begin("component_ext_db"), 62; case 42: return this.begin("component_ext"), 61; case 43: return this.begin("component_queue"), 60; case 44: return this.begin("component_db"), 59; case 45: return this.begin("component"), 58; case 46: return this.begin("node"), 39; case 47: return this.begin("node"), 39; case 48: return this.begin("node_l"), 40; case 49: return this.begin("node_r"), 41; case 50: return this.begin("rel"), 64; case 51: return this.begin("birel"), 65; case 52: return this.begin("rel_u"), 66; case 53: return this.begin("rel_u"), 66; case 54: return this.begin("rel_d"), 67; case 55: return this.begin("rel_d"), 67; case 56: return this.begin("rel_l"), 68; case 57: return this.begin("rel_l"), 68; case 58: return this.begin("rel_r"), 69; case 59: return this.begin("rel_r"), 69; case 60: return this.begin("rel_b"), 70; case 61: return this.begin("rel_index"), 71; case 62: return this.begin("update_el_style"), 72; case 63: return this.begin("update_rel_style"), 73; case 64: return this.begin("update_layout_config"), 74; case 65: return "EOF_IN_STRUCT"; case 66: return this.begin("attribute"), "ATTRIBUTE_EMPTY"; case 67: this.begin("attribute"); break; case 68: this.popState(), this.popState(); break; case 69: return 80; case 70: break; case 71: return 80; case 72: this.begin("string"); break; case 73: this.popState(); break; case 74: return "STR"; case 75: this.begin("string_kv"); break; case 76: return this.begin("string_kv_key"), "STR_KEY"; case 77: this.popState(), this.begin("string_kv_value"); break; case 78: return "STR_VALUE"; case 79: this.popState(), this.popState(); break; case 80: return "STR"; case 81: return "LBRACE"; case 82: return "RBRACE"; case 83: return "SPACE"; case 84: return "EOL"; case 85: return 14; } }, rules: [/^(?:.*direction\s+TB[^\n]*)/, /^(?:.*direction\s+BT[^\n]*)/, /^(?:.*direction\s+RL[^\n]*)/, /^(?:.*direction\s+LR[^\n]*)/, /^(?:title\s[^#\n;]+)/, /^(?:accDescription\s[^#\n;]+)/, /^(?:accTitle\s*:\s*)/, /^(?:(?!\n||)*[^\n]*)/, /^(?:accDescr\s*:\s*)/, /^(?:(?!\n||)*[^\n]*)/, /^(?:accDescr\s*\{\s*)/, /^(?:[\}])/, /^(?:[^\}]*)/, /^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/, /^(?:%%[^\n]*(\r?\n)*)/, /^(?:\s*(\r?\n)+)/, /^(?:\s+)/, /^(?:C4Context\b)/, /^(?:C4Container\b)/, /^(?:C4Component\b)/, /^(?:C4Dynamic\b)/, /^(?:C4Deployment\b)/, /^(?:Person_Ext\b)/, /^(?:Person\b)/, /^(?:SystemQueue_Ext\b)/, /^(?:SystemDb_Ext\b)/, /^(?:System_Ext\b)/, /^(?:SystemQueue\b)/, /^(?:SystemDb\b)/, /^(?:System\b)/, /^(?:Boundary\b)/, /^(?:Enterprise_Boundary\b)/, /^(?:System_Boundary\b)/, /^(?:ContainerQueue_Ext\b)/, /^(?:ContainerDb_Ext\b)/, /^(?:Container_Ext\b)/, /^(?:ContainerQueue\b)/, /^(?:ContainerDb\b)/, /^(?:Container\b)/, /^(?:Container_Boundary\b)/, /^(?:ComponentQueue_Ext\b)/, /^(?:ComponentDb_Ext\b)/, /^(?:Component_Ext\b)/, /^(?:ComponentQueue\b)/, /^(?:ComponentDb\b)/, /^(?:Component\b)/, /^(?:Deployment_Node\b)/, /^(?:Node\b)/, /^(?:Node_L\b)/, /^(?:Node_R\b)/, /^(?:Rel\b)/, /^(?:BiRel\b)/, /^(?:Rel_Up\b)/, /^(?:Rel_U\b)/, /^(?:Rel_Down\b)/, /^(?:Rel_D\b)/, /^(?:Rel_Left\b)/, /^(?:Rel_L\b)/, /^(?:Rel_Right\b)/, /^(?:Rel_R\b)/, /^(?:Rel_Back\b)/, /^(?:RelIndex\b)/, /^(?:UpdateElementStyle\b)/, /^(?:UpdateRelStyle\b)/, /^(?:UpdateLayoutConfig\b)/, /^(?:$)/, /^(?:[(][ ]*[,])/, /^(?:[(])/, /^(?:[)])/, /^(?:,,)/, /^(?:,)/, /^(?:[ ]*["]["])/, /^(?:[ ]*["])/, /^(?:["])/, /^(?:[^"]*)/, /^(?:[ ]*[\$])/, /^(?:[^=]*)/, /^(?:[=][ ]*["])/, /^(?:[^"]+)/, /^(?:["])/, /^(?:[^,]+)/, /^(?:\{)/, /^(?:\})/, /^(?:[\s]+)/, /^(?:[\n\r]+)/, /^(?:$)/], conditions: { acc_descr_multiline: { rules: [11, 12], inclusive: !1 }, acc_descr: { rules: [9], inclusive: !1 }, acc_title: { rules: [7], inclusive: !1 }, string_kv_value: { rules: [78, 79], inclusive: !1 }, string_kv_key: { rules: [77], inclusive: !1 }, string_kv: { rules: [76], inclusive: !1 }, string: { rules: [73, 74], inclusive: !1 }, attribute: { rules: [68, 69, 70, 71, 72, 75, 80], inclusive: !1 }, update_layout_config: { rules: [65, 66, 67, 68], inclusive: !1 }, update_rel_style: { rules: [65, 66, 67, 68], inclusive: !1 }, update_el_style: { rules: [65, 66, 67, 68], inclusive: !1 }, rel_b: { rules: [65, 66, 67, 68], inclusive: !1 }, rel_r: { rules: [65, 66, 67, 68], inclusive: !1 }, rel_l: { rules: [65, 66, 67, 68], inclusive: !1 }, rel_d: { rules: [65, 66, 67, 68], inclusive: !1 }, rel_u: { rules: [65, 66, 67, 68], inclusive: !1 }, rel_bi: { rules: [], inclusive: !1 }, rel: { rules: [65, 66, 67, 68], inclusive: !1 }, node_r: { rules: [65, 66, 67, 68], inclusive: !1 }, node_l: { rules: [65, 66, 67, 68], inclusive: !1 }, node: { rules: [65, 66, 67, 68], inclusive: !1 }, index: { rules: [], inclusive: !1 }, rel_index: { rules: [65, 66, 67, 68], inclusive: !1 }, component_ext_queue: { rules: [], inclusive: !1 }, component_ext_db: { rules: [65, 66, 67, 68], inclusive: !1 }, component_ext: { rules: [65, 66, 67, 68], inclusive: !1 }, component_queue: { rules: [65, 66, 67, 68], inclusive: !1 }, component_db: { rules: [65, 66, 67, 68], inclusive: !1 }, component: { rules: [65, 66, 67, 68], inclusive: !1 }, container_boundary: { rules: [65, 66, 67, 68], inclusive: !1 }, container_ext_queue: { rules: [65, 66, 67, 68], inclusive: !1 }, container_ext_db: { rules: [65, 66, 67, 68], inclusive: !1 }, container_ext: { rules: [65, 66, 67, 68], inclusive: !1 }, container_queue: { rules: [65, 66, 67, 68], inclusive: !1 }, container_db: { rules: [65, 66, 67, 68], inclusive: !1 }, container: { rules: [65, 66, 67, 68], inclusive: !1 }, birel: { rules: [65, 66, 67, 68], inclusive: !1 }, system_boundary: { rules: [65, 66, 67, 68], inclusive: !1 }, enterprise_boundary: { rules: [65, 66, 67, 68], inclusive: !1 }, boundary: { rules: [65, 66, 67, 68], inclusive: !1 }, system_ext_queue: { rules: [65, 66, 67, 68], inclusive: !1 }, system_ext_db: { rules: [65, 66, 67, 68], inclusive: !1 }, system_ext: { rules: [65, 66, 67, 68], inclusive: !1 }, system_queue: { rules: [65, 66, 67, 68], inclusive: !1 }, system_db: { rules: [65, 66, 67, 68], inclusive: !1 }, system: { rules: [65, 66, 67, 68], inclusive: !1 }, person_ext: { rules: [65, 66, 67, 68], inclusive: !1 }, person: { rules: [65, 66, 67, 68], inclusive: !1 }, INITIAL: { rules: [0, 1, 2, 3, 4, 5, 6, 8, 10, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 81, 82, 83, 84, 85], inclusive: !0 } } }; return bt; }(); Xt.lexer = Ee; function Wt() { this.yy = {}; } return Wt.prototype = Xt, Xt.Parser = Wt, new Wt(); }(); Yt.parser = Yt; const Be = Yt; let U = [], _t = [""], P = "global", j = "", V = [ { alias: "global", label: { text: "global" }, type: { text: "global" }, tags: null, link: null, parentBoundary: "" } ], St = [], te = "", ee = !1, It = 4, jt = 2; var de; const Ye = function() { return de; }, Ie = function(e) { de = ue(e, Dt()); }, je = function(e, t, r, o, l, n, a, s, i) { if (e == null || t === void 0 || t === null || r === void 0 || r === null || o === void 0 || o === null) return; let u = {}; const d = St.find((f) => f.from === t && f.to === r); if (d ? u = d : St.push(u), u.type = e, u.from = t, u.to = r, u.label = { text: o }, l == null) u.techn = { text: "" }; else if (typeof l == "object") { let [f, p] = Object.entries(l)[0]; u[f] = { text: p }; } else u.techn = { text: l }; if (n == null) u.descr = { text: "" }; else if (typeof n == "object") { let [f, p] = Object.entries(n)[0]; u[f] = { text: p }; } else u.descr = { text: n }; if (typeof a == "object") { let [f, p] = Object.entries(a)[0]; u[f] = p; } else u.sprite = a; if (typeof s == "object") { let [f, p] = Object.entries(s)[0]; u[f] = p; } else u.tags = s; if (typeof i == "object") { let [f, p] = Object.entries(i)[0]; u[f] = p; } else u.link = i; u.wrap = xt(); }, Ue = function(e, t, r, o, l, n, a) { if (t === null || r === null) return; let s = {}; const i = U.find((u) => u.alias === t); if (i && t === i.alias ? s = i : (s.alias = t, U.push(s)), r == null ? s.label = { text: "" } : s.label = { text: r }, o == null) s.descr = { text: "" }; else if (typeof o == "object") { let [u, d] = Object.entries(o)[0]; s[u] = { text: d }; } else s.descr = { text: o }; if (typeof l == "object") { let [u, d] = Object.entries(l)[0]; s[u] = d; } else s.sprite = l; if (typeof n == "object") { let [u, d] = Object.entries(n)[0]; s[u] = d; } else s.tags = n; if (typeof a == "object") { let [u, d] = Object.entries(a)[0]; s[u] = d; } else s.link = a; s.typeC4Shape = { text: e }, s.parentBoundary = P, s.wrap = xt(); }, Fe = function(e, t, r, o, l, n, a, s) { if (t === null || r === null) return; let i = {}; const u = U.find((d) => d.alias === t); if (u && t === u.alias ? i = u : (i.alias = t, U.push(i)), r == null ? i.label = { text: "" } : i.label = { text: r }, o == null) i.techn = { text: "" }; else if (typeof o == "object") { let [d, f] = Object.entries(o)[0]; i[d] = { text: f }; } else i.techn = { text: o }; if (l == null) i.descr = { text: "" }; else if (typeof l == "object") { let [d, f] = Object.entries(l)[0]; i[d] = { text: f }; } else i.descr = { text: l }; if (typeof n == "object") { let [d, f] = Object.entries(n)[0]; i[d] = f; } else i.sprite = n; if (typeof a == "object") { let [d, f] = Object.entries(a)[0]; i[d] = f; } else i.tags = a; if (typeof s == "object") { let [d, f] = Object.entries(s)[0]; i[d] = f; } else i.link = s; i.wrap = xt(), i.typeC4Shape = { text: e }, i.parentBoundary = P; }, Ve = function(e, t, r, o, l, n, a, s) { if (t === null || r === null) return; let i = {}; const u = U.find((d) => d.alias === t); if (u && t === u.alias ? i = u : (i.alias = t, U.push(i)), r == null ? i.label = { text: "" } : i.label = { text: r }, o == null) i.techn = { text: "" }; else if (typeof o == "object") { let [d, f] = Object.entries(o)[0]; i[d] = { text: f }; } else i.techn = { text: o }; if (l == null) i.descr = { text: "" }; else if (typeof l == "object") { let [d, f] = Object.entries(l)[0]; i[d] = { text: f }; } else i.descr = { text: l }; if (typeof n == "object") { let [d, f] = Object.entries(n)[0]; i[d] = f; } else i.sprite = n; if (typeof a == "object") { let [d, f] = Object.entries(a)[0]; i[d] = f; } else i.tags = a; if (typeof s == "object") { let [d, f] = Object.entries(s)[0]; i[d] = f; } else i.link = s; i.wrap = xt(), i.typeC4Shape = { text: e }, i.parentBoundary = P; }, ze = function(e, t, r, o, l) { if (e === null || t === null) return; let n = {}; const a = V.find((s) => s.alias === e); if (a && e === a.alias ? n = a : (n.alias = e, V.push(n)), t == null ? n.label = { text: "" } : n.label = { text: t }, r == null) n.type = { text: "system" }; else if (typeof r == "object") { let [s, i] = Object.entries(r)[0]; n[s] = { text: i }; } else n.type = { text: r }; if (typeof o == "object") { let [s, i] = Object.entries(o)[0]; n[s] = i; } else n.tags = o; if (typeof l == "object") { let [s, i] = Object.entries(l)[0]; n[s] = i; } else n.link = l; n.parentBoundary = P, n.wrap = xt(), j = P, P = e, _t.push(j); }, Xe = function(e, t, r, o, l) { if (e === null || t === null) return; let n = {}; const a = V.find((s) => s.alias === e); if (a && e === a.alias ? n = a : (n.alias = e, V.push(n)), t == null ? n.label = { text: "" } : n.label = { text: t }, r == null) n.type = { text: "container" }; else if (typeof r == "object") { let [s, i] = Object.entries(r)[0]; n[s] = { text: i }; } else n.type = { text: r }; if (typeof o == "object") { let [s, i] = Object.entries(o)[0]; n[s] = i; } else n.tags = o; if (typeof l == "object") { let [s, i] = Object.entries(l)[0]; n[s] = i; } else n.link = l; n.parentBoundary = P, n.wrap = xt(), j = P, P = e, _t.push(j); }, We = function(e, t, r, o, l, n, a, s) { if (t === null || r === null) return; let i = {}; const u = V.find((d) => d.alias === t); if (u && t === u.alias ? i = u : (i.alias = t, V.push(i)), r == null ? i.label = { text: "" } : i.label = { text: r }, o == null) i.type = { text: "node" }; else if (typeof o == "object") { let [d, f] = Object.entries(o)[0]; i[d] = { text: f }; } else i.type = { text: o }; if (l == null) i.descr = { text: "" }; else if (typeof l == "object") { let [d, f] = Object.entries(l)[0]; i[d] = { text: f }; } else i.descr = { text: l }; if (typeof a == "object") { let [d, f] = Object.entries(a)[0]; i[d] = f; } else i.tags = a; if (typeof s == "object") { let [d, f] = Object.entries(s)[0]; i[d] = f; } else i.link = s; i.nodeType = e, i.parentBoundary = P, i.wrap = xt(), j = P, P = t, _t.push(j); }, Qe = function() { P = j, _t.pop(), j = _t.pop(), _t.push(j); }, He = function(e, t, r, o, l, n, a, s, i, u, d) { let f = U.find((p) => p.alias === t); if (!(f === void 0 && (f = V.find((p) => p.alias === t), f === void 0))) { if (r != null) if (typeof r == "object") { let [p, E] = Object.entries(r)[0]; f[p] = E; } else f.bgColor = r; if (o != null) if (typeof o == "object") { let [p, E] = Object.entries(o)[0]; f[p] = E; } else f.fontColor = o; if (l != null) if (typeof l == "object") { let [p, E] = Object.entries(l)[0]; f[p] = E; } else f.borderColor = l; if (n != null) if (typeof n == "object") { let [p, E] = Object.entries(n)[0]; f[p] = E; } else f.shadowing = n; if (a != null) if (typeof a == "object") { let [p, E] = Object.entries(a)[0]; f[p] = E; } else f.shape = a; if (s != null) if (typeof s == "object") { let [p, E] = Object.entries(s)[0]; f[p] = E; } else f.sprite = s; if (i != null) if (typeof i == "object") { let [p, E] = Object.entries(i)[0]; f[p] = E; } else f.techn = i; if (u != null) if (typeof u == "object") { let [p, E] = Object.entries(u)[0]; f[p] = E; } else f.legendText = u; if (d != null) if (typeof d == "object") { let [p, E] = Object.entries(d)[0]; f[p] = E; } else f.legendSprite = d; } }, qe = function(e, t, r, o, l, n, a) { const s = St.find((i) => i.from === t && i.to === r); if (s !== void 0) { if (o != null) if (typeof o == "object") { let [i, u] = Object.entries(o)[0]; s[i] = u; } else s.textColor = o; if (l != null) if (typeof l == "object") { let [i, u] = Object.entries(l)[0]; s[i] = u; } else s.lineColor = l; if (n != null) if (typeof n == "object") { let [i, u] = Object.entries(n)[0]; s[i] = parseInt(u); } else s.offsetX = parseInt(n); if (a != null) if (typeof a == "object") { let [i, u] = Object.entries(a)[0]; s[i] = parseInt(u); } else s.offsetY = parseInt(a); } }, Ge = function(e, t, r) { let o = It, l = jt; if (typeof t == "object") { const n = Object.values(t)[0]; o = parseInt(n); } else o = parseInt(t); if (typeof r == "object") { const n = Object.values(r)[0]; l = parseInt(n); } else l = parseInt(r); o >= 1 && (It = o), l >= 1 && (jt = l); }, Ke = function() { return It; }, Je = function() { return jt; }, Ze = function() { return P; }, $e = function() { return j; }, fe = function(e) { return e == null ? U : U.filter((t) => t.parentBoundary === e); }, t0 = function(e) { return U.find((t) => t.alias === e); }, e0 = function(e) { return Object.keys(fe(e)); }, pe = function(e) { return e == null ? V : V.filter((t) => t.parentBoundary === e); }, n0 = pe, i0 = function() { return St; }, s0 = function() { return te; }, a0 = function(e) { ee = e; }, xt = function() { return ee; }, r0 = function() { U = [], V = [ { alias: "global", label: { text: "global" }, type: { text: "global" }, tags: null, link: null, parentBoundary: "" } ], j = "", P = "global", _t = [""], St = [], _t = [""], te = "", ee = !1, It = 4, jt = 2; }, l0 = { SOLID: 0, DOTTED: 1, NOTE: 2, SOLID_CROSS: 3, DOTTED_CROSS: 4, SOLID_OPEN: 5, DOTTED_OPEN: 6, LOOP_START: 10, LOOP_END: 11, ALT_START: 12, ALT_ELSE: 13, ALT_END: 14, OPT_START: 15, OPT_END: 16, ACTIVE_START: 17, ACTIVE_END: 18, PAR_START: 19, PAR_AND: 20, PAR_END: 21, RECT_START: 22, RECT_END: 23, SOLID_POINT: 24, DOTTED_POINT: 25 }, o0 = { FILLED: 0, OPEN: 1 }, c0 = { LEFTOF: 0, RIGHTOF: 1, OVER: 2 }, h0 = function(e) { te = ue(e, Dt()); }, Jt = { addPersonOrSystem: Ue, addPersonOrSystemBoundary: ze, addContainer: Fe, addContainerBoundary: Xe, addComponent: Ve, addDeploymentNode: We, popBoundaryParseStack: Qe, addRel: je, updateElStyle: He, updateRelStyle: qe, updateLayoutConfig: Ge, autoWrap: xt, setWrap: a0, getC4ShapeArray: fe, getC4Shape: t0, getC4ShapeKeys: e0, getBoundaries: pe, getBoundarys: n0, getCurrentBoundaryParse: Ze, getParentBoundaryParse: $e, getRels: i0, getTitle: s0, getC4Type: Ye, getC4ShapeInRow: Ke, getC4BoundaryInRow: Je, setAccTitle: we,