@demlik/tea 0.8.0 → 0.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (55) hide show
  1. package/README.md +4 -0
  2. package/dist/chart/lane/server.d.ts +113 -0
  3. package/dist/chart/lane/server.js +171 -0
  4. package/dist/chart/lane/server.js.map +1 -0
  5. package/dist/chart/lane/viewer/assets/abnfDiagram-N423BO3Z-C729LI31.js +1 -0
  6. package/dist/chart/lane/viewer/assets/architectureDiagram-T3A2C74G-C729LI31.js +1 -0
  7. package/dist/chart/lane/viewer/assets/blockDiagram-VBNYF7ZC-C729LI31.js +1 -0
  8. package/dist/chart/lane/viewer/assets/c4Diagram-5PPSVZJV-C729LI31.js +1 -0
  9. package/dist/chart/lane/viewer/assets/chunk-2GRJ4B5K-HdDf8SI3.js +1 -0
  10. package/dist/chart/lane/viewer/assets/chunk-5RXB4S5H-IPzIfiJ6.js +231 -0
  11. package/dist/chart/lane/viewer/assets/chunk-5VM5RSS4-BP4fRS_5.js +15 -0
  12. package/dist/chart/lane/viewer/assets/chunk-KBJHAD2P-DZOw7xU6.js +1 -0
  13. package/dist/chart/lane/viewer/assets/chunk-NSK5VX7P-CBCyTZMs.js +128 -0
  14. package/dist/chart/lane/viewer/assets/classDiagram-JCYQIIEL-C729LI31.js +1 -0
  15. package/dist/chart/lane/viewer/assets/classDiagram-v2-OCEON4UE-DnUXz1Pv.js +206 -0
  16. package/dist/chart/lane/viewer/assets/cose-bilkent-JH36ORCC-DOwCrGXH.js +1 -0
  17. package/dist/chart/lane/viewer/assets/cynefinDiagram-MW4NZA55-C729LI31.js +1 -0
  18. package/dist/chart/lane/viewer/assets/dagre-K_PewWfS.js +1 -0
  19. package/dist/chart/lane/viewer/assets/dagre-VZM6K2ZE-Og2UIoWg.js +4 -0
  20. package/dist/chart/lane/viewer/assets/diagram-7IWD3JNH-C729LI31.js +1 -0
  21. package/dist/chart/lane/viewer/assets/diagram-B4RE2ZJO-C729LI31.js +1 -0
  22. package/dist/chart/lane/viewer/assets/diagram-LBJQPF4R-C729LI31.js +1 -0
  23. package/dist/chart/lane/viewer/assets/diagram-Q27KOJAE-C729LI31.js +1 -0
  24. package/dist/chart/lane/viewer/assets/diagram-UB23O5K3-C729LI31.js +1 -0
  25. package/dist/chart/lane/viewer/assets/ebnfDiagram-BXEA7PRR-C729LI31.js +1 -0
  26. package/dist/chart/lane/viewer/assets/erDiagram-JOGREHBK-C729LI31.js +1 -0
  27. package/dist/chart/lane/viewer/assets/flowDiagram-UKHOOZJN-C729LI31.js +1 -0
  28. package/dist/chart/lane/viewer/assets/ganttDiagram-PKOTCBZU-C729LI31.js +1 -0
  29. package/dist/chart/lane/viewer/assets/gitGraphDiagram-DS77QQ5N-C729LI31.js +1 -0
  30. package/dist/chart/lane/viewer/assets/index-Obj05Jex.js +195 -0
  31. package/dist/chart/lane/viewer/assets/index-sP-6AD57.css +1 -0
  32. package/dist/chart/lane/viewer/assets/infoDiagram-6WML65LV-C729LI31.js +1 -0
  33. package/dist/chart/lane/viewer/assets/ishikawaDiagram-WSZJBQD7-C729LI31.js +1 -0
  34. package/dist/chart/lane/viewer/assets/journeyDiagram-NVQOT4AX-C729LI31.js +1 -0
  35. package/dist/chart/lane/viewer/assets/kanban-definition-27J2QSJJ-CxkCxJUN.js +89 -0
  36. package/dist/chart/lane/viewer/assets/katex-DOwCrGXH.js +1 -0
  37. package/dist/chart/lane/viewer/assets/mindmap-definition-FAOFIHXS-DvgvXZhp.js +96 -0
  38. package/dist/chart/lane/viewer/assets/path-fybaL0A-.js +1 -0
  39. package/dist/chart/lane/viewer/assets/pegDiagram-VL7TDLO6-C729LI31.js +1 -0
  40. package/dist/chart/lane/viewer/assets/pieDiagram-7S7Q4E2Y-C729LI31.js +1 -0
  41. package/dist/chart/lane/viewer/assets/quadrantDiagram-CIZ2JOQS-C729LI31.js +1 -0
  42. package/dist/chart/lane/viewer/assets/railroadDiagram-AXF67PYL-C729LI31.js +1 -0
  43. package/dist/chart/lane/viewer/assets/requirementDiagram-LRYGKXZP-C729LI31.js +1 -0
  44. package/dist/chart/lane/viewer/assets/sankeyDiagram-W5VNT64P-C729LI31.js +1 -0
  45. package/dist/chart/lane/viewer/assets/sequenceDiagram-SI44F4Z6-C729LI31.js +1 -0
  46. package/dist/chart/lane/viewer/assets/stateDiagram-OKZ733FA-CIZQWK5X.js +1 -0
  47. package/dist/chart/lane/viewer/assets/stateDiagram-v2-UEYNNEHI-Sm6p0NoR.js +1 -0
  48. package/dist/chart/lane/viewer/assets/swimlanes-SLNWSIFB-B4xK-rwg.js +1 -0
  49. package/dist/chart/lane/viewer/assets/swimlanesDiagram-ULZ7WXOC-C729LI31.js +1 -0
  50. package/dist/chart/lane/viewer/assets/timeline-definition-Z64GVDOM-CV3KwSb-.js +120 -0
  51. package/dist/chart/lane/viewer/assets/vennDiagram-T6HMQDX7-C729LI31.js +1 -0
  52. package/dist/chart/lane/viewer/assets/wardleyDiagram-T6FBY63Y-C729LI31.js +1 -0
  53. package/dist/chart/lane/viewer/assets/xychartDiagram-ELKLHX3M-C729LI31.js +1 -0
  54. package/dist/chart/lane/viewer/index.html +15 -0
  55. package/package.json +12 -3
@@ -0,0 +1 @@
1
+ .tea-lv{--tea-lv-fg:var(--foreground,#e6edf3);--tea-lv-muted:var(--muted-foreground,#8b949e);--tea-lv-border:var(--border,#30363d);--tea-lv-bg:var(--card,#0d1117);--tea-lv-raised:var(--muted,#161b22);--tea-lv-accent:var(--teal-11,#2dd4bf);--tea-lv-warn:var(--amber-11,#d29922);--tea-lv-bad:var(--crimson-11,#f85149);--tea-lv-r:var(--radius,6px);font-family:var(--font-mono,"JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace);color:var(--tea-lv-fg);background:var(--tea-lv-bg);border:1px solid var(--tea-lv-border);border-radius:var(--tea-lv-r);flex-direction:column;gap:1.6rem;padding:1.25rem;font-size:12px;line-height:1.55;display:flex}.tea-lv-boot{color:var(--tea-lv-muted);padding:16px;font-style:italic}.tea-lv-sep{color:var(--tea-lv-border)}.tea-lv-head{border-bottom:1px solid var(--tea-lv-border);flex-wrap:wrap;align-items:center;gap:.75rem;padding-bottom:.75rem;display:flex}.tea-lv-title{letter-spacing:-.01em;font-size:15px;font-weight:700}.tea-lv-src,.tea-lv-standing,.tea-lv-status,.tea-lv-badge{text-transform:uppercase;letter-spacing:.08em;border:1px solid var(--tea-lv-border);background:var(--tea-lv-raised);color:var(--tea-lv-muted);border-radius:999px;padding:.15rem .45rem;font-size:10px;font-weight:600}.tea-lv-src[data-source=live]{color:var(--tea-lv-accent);border-color:var(--tea-lv-accent)}.tea-lv-now{align-items:center;gap:6px;display:inline-flex}.tea-lv-phase,.tea-lv-terminal{color:var(--tea-lv-fg);font-weight:700}.tea-lv-warn{color:var(--tea-lv-warn)}.tea-lv-muted{color:var(--tea-lv-muted)}.tea-lv-lede{font-family:var(--font-sans,ui-sans-serif, system-ui, sans-serif);max-width:68ch;color:var(--tea-lv-muted);margin:0;font-size:13.5px;line-height:1.65}.tea-lv-lede b{color:var(--tea-lv-fg)}.tea-lv-panel{border:1px solid var(--tea-lv-border);border-radius:var(--tea-lv-r);background:var(--tea-lv-raised);box-sizing:border-box;align-self:stretch;width:100%;min-width:0;padding:.9rem 1rem}.tea-lv-h{text-transform:uppercase;letter-spacing:.09em;color:var(--tea-lv-muted);flex-wrap:wrap;align-items:center;gap:.5rem;margin:0 0 .6rem;font-size:11px;font-weight:600;display:flex}.tea-lv-hint{font-family:var(--font-sans,ui-sans-serif, system-ui, sans-serif);text-transform:none;letter-spacing:0;opacity:.75;font-size:11.5px}.tea-lv-none{color:var(--tea-lv-muted);margin:0;font-style:italic}.tea-lv-stuck{border-left:3px solid var(--tea-lv-warn)}.tea-lv-stuck .tea-lv-h{color:var(--tea-lv-warn)}.tea-lv-stuck:has([data-stuck]){border-left-color:var(--tea-lv-bad)}.tea-lv-stucklist{flex-direction:column;gap:.2rem;margin:0;padding-left:1.1rem;display:flex}.tea-lv-stucklist [data-stuck=budget-spent]{color:var(--tea-lv-warn)}.tea-lv-stucklist [data-stuck=tripped],.tea-lv-stucklist [data-stuck=dead-end]{color:var(--tea-lv-bad)}.tea-lv-tripped{color:var(--tea-lv-bad);margin:8px 0 0}.tea-lv-phase-complete .tea-lv-standing{color:var(--tea-lv-accent)}.tea-lv-phase-active{border-color:var(--tea-lv-accent)}.tea-lv-phase-active .tea-lv-standing{color:var(--tea-lv-fg)}.tea-lv-phase-tripped{border-color:var(--tea-lv-bad)}.tea-lv-phase-tripped .tea-lv-standing{color:var(--tea-lv-bad)}.tea-lv-phase-waiting{opacity:.75}.tea-lv-phase-waiting .tea-lv-standing{color:var(--tea-lv-muted)}.tea-lv-chips{flex-wrap:wrap;gap:.4rem;margin:0 0 .75rem;padding:0;list-style:none;display:flex}.tea-lv-chip{border:1px solid var(--tea-lv-border);border-radius:var(--tea-lv-r);background:var(--tea-lv-bg);color:var(--tea-lv-muted);padding:.2rem .5rem}.tea-lv-chip[data-end=error]{border-color:var(--tea-lv-bad);color:var(--tea-lv-bad)}.tea-lv-chip[data-end=true]{border-color:var(--tea-lv-accent);color:var(--tea-lv-accent)}.tea-lv-task{border-top:1px solid var(--tea-lv-border);min-width:0;margin-top:.75rem;padding-top:.75rem}.tea-lv-collapsed>summary{cursor:pointer;color:var(--tea-lv-muted)}.tea-lv-taskh{margin:0 0 .3rem;font-size:13px;font-weight:400}.tea-lv-state{color:var(--tea-lv-accent);font-weight:600}.tea-lv-badge{border-color:var(--tea-lv-bad);color:var(--tea-lv-bad)}.tea-lv-waiting{color:var(--tea-lv-fg);border-left:2px solid var(--tea-lv-accent);background:var(--tea-lv-bg);border-radius:0 var(--tea-lv-r) var(--tea-lv-r) 0;margin:.2rem 0 .6rem;padding:.45rem .6rem}.tea-lv-retries{color:var(--tea-lv-warn);margin:0 0 4px}.tea-lv-controls{grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:.5rem;margin:.5rem 0 .9rem;display:grid}.tea-lv-ev{border:1px solid var(--tea-lv-border);border-radius:var(--tea-lv-r);background:var(--tea-lv-bg);flex-direction:column;gap:.25rem;min-width:0;padding:.5rem .6rem;display:flex}.tea-lv-ev[data-status=refused]{opacity:.62;border-style:dashed}.tea-lv-btn{font:inherit;text-align:left;border:1px solid var(--tea-lv-border);border-radius:var(--tea-lv-r);background:var(--tea-lv-raised);color:var(--tea-lv-fg);cursor:pointer;padding:.2rem .5rem;font-weight:700}.tea-lv-ev[data-sendable=true] .tea-lv-btn,.tea-lv-btn:hover:not(:disabled){border-color:var(--tea-lv-accent);color:var(--tea-lv-accent)}.tea-lv-btn:disabled{cursor:not-allowed;color:var(--tea-lv-muted);background:0 0;border-color:#0000;padding-left:0}.tea-lv-to{color:var(--tea-lv-muted)}.tea-lv-ev-end .tea-lv-btn,.tea-lv-ev-undeclared .tea-lv-btn{color:var(--tea-lv-bad);text-decoration:line-through}.tea-lv-ev-ignored .tea-lv-btn{color:var(--tea-lv-warn);text-decoration:line-through}.tea-lv-ev-out-of-scope .tea-lv-btn,.tea-lv-ev-no-edge .tea-lv-btn{color:var(--tea-lv-muted);text-decoration:line-through}.tea-lv-accepts>summary{cursor:pointer;color:var(--tea-lv-muted);margin:.35rem 0;font-size:11px}.tea-lv-accepts[open]>summary{margin-bottom:.6rem}.tea-lv-unavailable{color:var(--tea-lv-muted);margin:0;font-style:italic}.tea-lv-mermaid{border:1px solid var(--tea-lv-border);border-radius:var(--tea-lv-r);background:var(--tea-lv-bg);color:var(--tea-lv-muted);margin:0;padding:.75rem;line-height:1.5;overflow-x:auto}.tea-lv-travel{flex-wrap:wrap;align-items:center;gap:.75rem;display:flex}.tea-lv-scrub{accent-color:var(--tea-lv-accent);flex-wrap:wrap;flex:260px;align-items:center;gap:10px;display:flex}.tea-lv-scrub input[type=range]{min-width:120px;accent-color:var(--tea-lv-accent);flex:160px}.tea-lv-step{color:var(--tea-lv-muted);white-space:nowrap}.tea-lv-scrub button{font:inherit;border:1px solid var(--tea-lv-border);border-radius:var(--tea-lv-r);color:var(--tea-lv-fg);cursor:pointer;background:0 0;padding:2px 10px}.tea-lv-scrub button:disabled{cursor:not-allowed;opacity:.5}.tea-lv-steps{border-collapse:collapse;width:100%;max-height:280px;display:block;overflow:auto}.tea-lv-steps th,.tea-lv-steps td{text-align:left;border-bottom:1px solid var(--tea-lv-border);white-space:nowrap;color:var(--tea-lv-muted);padding:.25rem .6rem .25rem 0}.tea-lv-steps th{text-transform:uppercase;letter-spacing:.08em;font-size:10px;font-weight:400}.tea-lv-steps td:first-child{color:var(--tea-lv-fg)}.tea-lv-steps tr[data-refused] td{opacity:.7;font-style:italic}:root{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}body{color:#e6edf3;background:#0d1117;margin:0;font:15px/1.6 ui-sans-serif,system-ui,sans-serif}main{max-width:1000px;margin:0 auto;padding:1.5rem 1rem 5rem}.lv-bar{z-index:5;background:#161b22;border-bottom:1px solid #30363d;flex-wrap:wrap;align-items:center;gap:1rem;padding:.85rem 1.25rem;display:flex;position:sticky;top:0}.lv-brand{letter-spacing:-.01em;font-weight:600}.lv-bar nav{flex-wrap:wrap;gap:.4rem;display:flex}.lv-bar button{font:inherit;color:#e6edf3;cursor:pointer;background:#21262d;border:1px solid #30363d;border-radius:999px;padding:.28rem .7rem;font-size:.85rem}.lv-bar button:hover{border-color:#2dd4bf}.lv-bar button.on{color:#04201c;background:#2dd4bf;border-color:#2dd4bf;font-weight:600}.lv-src{color:#8b949e;margin-left:auto;font-size:.72rem}.lv-empty{padding-top:4rem}.lv-empty pre{background:#161b22;border:1px solid #30363d;border-radius:6px;padding:.9rem 1.1rem;overflow-x:auto}.fl{max-width:860px;margin:0 auto;padding:3.5rem 1rem 6rem}.fl-h1{letter-spacing:-.02em;text-wrap:balance;margin:0 0 1.4rem;font-size:1.6rem;font-weight:600}.fl-counts{flex-wrap:wrap;gap:.5rem;margin-bottom:2rem;display:flex}.fl-chip{color:#8b949e;border:1px solid #30363d;border-radius:999px;padding:.24rem .7rem;font-size:.78rem}.fl-chip b{color:#e6edf3;font-variant-numeric:tabular-nums}.fl-chip.is-needs-you{color:#e3b341;border-color:#d29922}.fl-chip.is-needs-you b{color:#e3b341}.fl-chip.is-tripped{color:#ff7b72;border-color:#f85149}.fl-chip.is-tripped b{color:#ff7b72}.fl-rows{flex-direction:column;gap:.5rem;margin:0;padding:0;list-style:none;display:flex}.fl-row{text-align:left;width:100%;font:inherit;color:#e6edf3;cursor:pointer;background:#161b22;border:1px solid #30363d;border-left-width:3px;border-radius:6px;grid-template-columns:5.5rem 1fr auto;align-items:baseline;gap:1rem;padding:.85rem 1.1rem;display:grid}.fl-row:hover{border-color:#2dd4bf}.fl-row.is-needs-you{border-left-color:#d29922}.fl-row.is-tripped{border-left-color:#f85149}.fl-row.is-quiet{border-left-color:#8b949e}.fl-row.is-moving{border-left-color:#2dd4bf}.fl-row.is-done{opacity:.62;border-left-color:#238636}.fl-row.is-unstarted{opacity:.62}.fl-id{font-variant-numeric:tabular-nums;font-weight:600}.fl-head{color:#c9d1d9}.fl-head code{background:0 0}.fl-meta{color:#8b949e;white-space:nowrap;font-size:.78rem}.fl-foot{color:#8b949e;margin-top:2.5rem;font-size:.75rem}.lv-back{font:inherit;color:#e6edf3;cursor:pointer;background:#21262d;border:1px solid #30363d;border-radius:999px;padding:.28rem .7rem;font-size:.85rem}.lv-back:hover{border-color:#2dd4bf}@media (width<=620px){.fl-row{grid-template-columns:1fr;gap:.3rem}}.act{background:#161b22;border:1px solid #30363d;border-radius:8px;margin:0 0 1.5rem;padding:1rem 1.2rem 1.1rem}.act-h{letter-spacing:.1em;text-transform:uppercase;color:#e6edf3;flex-wrap:wrap;align-items:baseline;gap:.75rem;margin:0 0 .9rem;font-size:.78rem;display:flex}.act-sub{text-transform:none;letter-spacing:0;color:#8b949e;font-size:.8rem;font-style:italic}.act-row{border-top:1px solid #21262d;flex-wrap:wrap;align-items:center;gap:.75rem;padding:.45rem 0;display:flex}.act-row:first-of-type{border-top:0}.act-task{min-width:15rem;font-family:ui-monospace,monospace;font-size:.83rem}.act-at{color:#8b949e}.act-btns{flex-wrap:wrap;gap:.35rem;display:flex}.act-btn{font:inherit;color:#e6edf3;cursor:pointer;background:#21262d;border:1px solid #30363d;border-radius:5px;padding:.24rem .62rem;font-family:ui-monospace,monospace;font-size:.76rem}.act-btn:hover:not(:disabled){color:#2dd4bf;border-color:#2dd4bf}.act-btn:disabled{opacity:.45;cursor:default}.act-said{font-size:.78rem}.act-said.ok{color:#3fb950}.act-said.no{color:#e3b341}.fl-drv{color:#a5d6ff;border:1px solid #30363d;border-radius:999px;margin-right:.6rem;padding:.1rem .5rem;font-family:ui-monospace,monospace;font-size:.68rem;display:inline-block}
@@ -0,0 +1 @@
1
+ var e={};export{e as diagram};
@@ -0,0 +1 @@
1
+ var e={};export{e as diagram};
@@ -0,0 +1 @@
1
+ var e={};export{e as diagram};
@@ -0,0 +1,89 @@
1
+ import{$ as e,At as t,Ht as n,It as r,Lt as i,Rt as a,St as o,st as s,zt as c}from"./chunk-NSK5VX7P-CBCyTZMs.js";import{_ as l,d as u,f as d,g as f,u as p,v as m}from"./index-Obj05Jex.js";import{t as h}from"./chunk-5VM5RSS4-BP4fRS_5.js";var g=(function(){var e=n(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),t=[1,4],r=[1,13],i=[1,12],a=[1,15],o=[1,16],s=[1,20],c=[1,19],l=[6,7,8],u=[1,26],d=[1,24],f=[1,25],p=[6,7,11],m=[1,31],h=[6,7,11,24],g=[1,6,13,16,17,20,23],_=[1,35],v=[1,36],y=[1,6,7,11,13,16,17,20,23],b=[1,38],x={trace:n(function(){},`trace`),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,KANBAN:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,shapeData:15,ICON:16,CLASS:17,nodeWithId:18,nodeWithoutId:19,NODE_DSTART:20,NODE_DESCR:21,NODE_DEND:22,NODE_ID:23,SHAPE_DATA:24,$accept:0,$end:1},terminals_:{2:`error`,6:`SPACELINE`,7:`NL`,8:`KANBAN`,11:`EOF`,13:`SPACELIST`,16:`ICON`,17:`CLASS`,20:`NODE_DSTART`,21:`NODE_DESCR`,22:`NODE_DEND`,23:`NODE_ID`,24:`SHAPE_DATA`},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,3],[12,2],[12,2],[12,2],[12,1],[12,2],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[19,3],[18,1],[18,4],[15,2],[15,1]],performAction:n(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 6:case 7:return r;case 8:r.getLogger().trace(`Stop NL `);break;case 9:r.getLogger().trace(`Stop EOF `);break;case 11:r.getLogger().trace(`Stop NL2 `);break;case 12:r.getLogger().trace(`Stop EOF2 `);break;case 15:r.getLogger().info(`Node: `,a[s-1].id),r.addNode(a[s-2].length,a[s-1].id,a[s-1].descr,a[s-1].type,a[s]);break;case 16:r.getLogger().info(`Node: `,a[s].id),r.addNode(a[s-1].length,a[s].id,a[s].descr,a[s].type);break;case 17:r.getLogger().trace(`Icon: `,a[s]),r.decorateNode({icon:a[s]});break;case 18:case 23:r.decorateNode({class:a[s]});break;case 19:r.getLogger().trace(`SPACELIST`);break;case 20:r.getLogger().trace(`Node: `,a[s-1].id),r.addNode(0,a[s-1].id,a[s-1].descr,a[s-1].type,a[s]);break;case 21:r.getLogger().trace(`Node: `,a[s].id),r.addNode(0,a[s].id,a[s].descr,a[s].type);break;case 22:r.decorateNode({icon:a[s]});break;case 27:r.getLogger().trace(`node found ..`,a[s-2]),this.$={id:a[s-1],descr:a[s-1],type:r.getType(a[s-2],a[s])};break;case 28:this.$={id:a[s],descr:a[s],type:0};break;case 29:r.getLogger().trace(`node found ..`,a[s-3]),this.$={id:a[s-3],descr:a[s-1],type:r.getType(a[s-2],a[s])};break;case 30:this.$=a[s-1]+a[s];break;case 31:this.$=a[s]}},`anonymous`),table:[{3:1,4:2,5:3,6:[1,5],8:t},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:t},{6:r,7:[1,10],9:9,12:11,13:i,14:14,16:a,17:o,18:17,19:18,20:s,23:c},e(l,[2,3]),{1:[2,2]},e(l,[2,4]),e(l,[2,5]),{1:[2,6],6:r,12:21,13:i,14:14,16:a,17:o,18:17,19:18,20:s,23:c},{6:r,9:22,12:11,13:i,14:14,16:a,17:o,18:17,19:18,20:s,23:c},{6:u,7:d,10:23,11:f},e(p,[2,24],{18:17,19:18,14:27,16:[1,28],17:[1,29],20:s,23:c}),e(p,[2,19]),e(p,[2,21],{15:30,24:m}),e(p,[2,22]),e(p,[2,23]),e(h,[2,25]),e(h,[2,26]),e(h,[2,28],{20:[1,32]}),{21:[1,33]},{6:u,7:d,10:34,11:f},{1:[2,7],6:r,12:21,13:i,14:14,16:a,17:o,18:17,19:18,20:s,23:c},e(g,[2,14],{7:_,11:v}),e(y,[2,8]),e(y,[2,9]),e(y,[2,10]),e(p,[2,16],{15:37,24:m}),e(p,[2,17]),e(p,[2,18]),e(p,[2,20],{24:b}),e(h,[2,31]),{21:[1,39]},{22:[1,40]},e(g,[2,13],{7:_,11:v}),e(y,[2,11]),e(y,[2,12]),e(p,[2,15],{24:b}),e(h,[2,30]),{22:[1,41]},e(h,[2,27]),e(h,[2,29])],defaultActions:{2:[2,1],6:[2,2]},parseError:n(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:n(function(e){var t=this,r=[0],i=[],a=[null],o=[],s=this.table,c=``,l=0,u=0,d=0,f=2,p=1,m=o.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(e,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;o.push(v);var y=h.options&&h.options.ranges;this.parseError=typeof g.yy.parseError==`function`?g.yy.parseError:Object.getPrototypeOf(this).parseError;function b(e){r.length-=2*e,a.length-=e,o.length-=e}n(b,`popStack`);function x(){var e=i.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(i=e,e=i.pop()),e=t.symbols_[e]||e),e}n(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=r[r.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=s[w]&&s[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],s[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`:
2
+ `+h.showPosition()+`
3
+ Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(l+1)+`: Unexpected `+(S==p?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(M,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:r.push(S),a.push(h.yytext),o.push(h.yylloc),r.push(T[1]),S=null,C?(S=C,C=null):(u=h.yyleng,c=h.yytext,l=h.yylineno,v=h.yylloc,d>0&&d--);break;case 2:if(k=this.productions_[T[1]][1],D.$=a[a.length-k],D._$={first_line:o[o.length-(k||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(k||1)].first_column,last_column:o[o.length-1].last_column},y&&(D._$.range=[o[o.length-(k||1)].range[0],o[o.length-1].range[1]]),E=this.performAction.apply(D,[c,u,l,g.yy,T[1],a,o].concat(m)),E!==void 0)return E;k&&(r=r.slice(0,-1*k*2),a=a.slice(0,-1*k),o=o.slice(0,-1*k)),r.push(this.productions_[T[1]][0]),a.push(D.$),o.push(D._$),A=s[r[r.length-2]][r[r.length-1]],r.push(A);break;case 3:return!0}}return!0},`parse`)};x.lexer=(function(){return{EOF:1,parseError:n(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:n(function(e,t){return this.yy=t||this.yy||{},this._input=e,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},`setInput`),input:n(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:n(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=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),n.length-1&&(this.yylineno-=n.length-1);var i=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:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:n(function(){return this._more=!0,this},`more`),reject:n(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).
4
+ `+this.showPosition(),{text:``,token:null,line:this.yylineno});return this},`reject`),less:n(function(e){this.unput(this.match.slice(e))},`less`),pastInput:n(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:n(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:n(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+`
5
+ `+t+`^`},`showPosition`),test_match:n(function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={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&&(i.yylloc.range=this.yylloc.range.slice(0))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,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(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},`test_match`),next:n(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r;this._more||(this.yytext=``,this.match=``);for(var i=this._currentRules(),a=0;a<i.length;a++)if(n=this._input.match(this.rules[i[a]]),n&&(!t||n[0].length>t[0].length)){if(t=n,r=a,this.options.backtrack_lexer){if(e=this.test_match(n,i[a]),e!==!1)return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?(e=this.test_match(t,i[r]),e!==!1&&e):this._input===``?this.EOF:this.parseError(`Lexical error on line `+(this.yylineno+1)+`. Unrecognized text.
6
+ `+this.showPosition(),{text:``,token:null,line:this.yylineno})},`next`),lex:n(function(){return this.next()||this.lex()},`lex`),begin:n(function(e){this.conditionStack.push(e)},`begin`),popState:n(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},`popState`),_currentRules:n(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},`_currentRules`),topState:n(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:`INITIAL`},`topState`),pushState:n(function(e){this.begin(e)},`pushState`),stateStackSize:n(function(){return this.conditionStack.length},`stateStackSize`),options:{"case-insensitive":!0},performAction:n(function(e,t,n,r){switch(n){case 0:return this.pushState(`shapeData`),t.yytext=``,24;case 1:return this.pushState(`shapeDataStr`),24;case 2:return this.popState(),24;case 3:return t.yytext=t.yytext.replace(/\n\s*/g,`<br/>`),24;case 4:return 24;case 5:this.popState();break;case 6:return e.getLogger().trace(`Found comment`,t.yytext),6;case 7:return 8;case 8:this.begin(`CLASS`);break;case 9:return this.popState(),17;case 10:this.popState();break;case 11:e.getLogger().trace(`Begin icon`),this.begin(`ICON`);break;case 12:return e.getLogger().trace(`SPACELINE`),6;case 13:return 7;case 14:return 16;case 15:e.getLogger().trace(`end icon`),this.popState();break;case 16:return e.getLogger().trace(`Exploding node`),this.begin(`NODE`),20;case 17:return e.getLogger().trace(`Cloud`),this.begin(`NODE`),20;case 18:return e.getLogger().trace(`Explosion Bang`),this.begin(`NODE`),20;case 19:return e.getLogger().trace(`Cloud Bang`),this.begin(`NODE`),20;case 20:return this.begin(`NODE`),20;case 21:return this.begin(`NODE`),20;case 22:return this.begin(`NODE`),20;case 23:return this.begin(`NODE`),20;case 24:return 13;case 25:return 23;case 26:return 11;case 27:this.begin(`NSTR2`);break;case 28:return`NODE_DESCR`;case 29:this.popState();break;case 30:e.getLogger().trace(`Starting NSTR`),this.begin(`NSTR`);break;case 31:return e.getLogger().trace(`description:`,t.yytext),`NODE_DESCR`;case 32:this.popState();break;case 33:return this.popState(),e.getLogger().trace(`node end ))`),`NODE_DEND`;case 34:return this.popState(),e.getLogger().trace(`node end )`),`NODE_DEND`;case 35:return this.popState(),e.getLogger().trace(`node end ...`,t.yytext),`NODE_DEND`;case 36:return this.popState(),e.getLogger().trace(`node end ((`),`NODE_DEND`;case 37:return this.popState(),e.getLogger().trace(`node end (-`),`NODE_DEND`;case 38:return this.popState(),e.getLogger().trace(`node end (-`),`NODE_DEND`;case 39:return this.popState(),e.getLogger().trace(`node end ((`),`NODE_DEND`;case 40:return this.popState(),e.getLogger().trace(`node end ((`),`NODE_DEND`;case 41:return e.getLogger().trace(`Long description:`,t.yytext),21;case 42:return e.getLogger().trace(`Long description:`,t.yytext),21}},`anonymous`),rules:[/^(?:@\{)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^\"]+)/i,/^(?:[^}^"]+)/i,/^(?:\})/i,/^(?:\s*%%.*)/i,/^(?:kanban\b)/i,/^(?::::)/i,/^(?:.+)/i,/^(?:\n)/i,/^(?:::icon\()/i,/^(?:[\s]+[\n])/i,/^(?:[\n]+)/i,/^(?:[^\)]+)/i,/^(?:\))/i,/^(?:-\))/i,/^(?:\(-)/i,/^(?:\)\))/i,/^(?:\))/i,/^(?:\(\()/i,/^(?:\{\{)/i,/^(?:\()/i,/^(?:\[)/i,/^(?:[\s]+)/i,/^(?:[^\(\[\n\)\{\}@]+)/i,/^(?:$)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:[^"]+)/i,/^(?:["])/i,/^(?:[\)]\))/i,/^(?:[\)])/i,/^(?:[\]])/i,/^(?:\}\})/i,/^(?:\(-)/i,/^(?:-\))/i,/^(?:\(\()/i,/^(?:\()/i,/^(?:[^\)\]\(\}]+)/i,/^(?:.+(?!\(\())/i],conditions:{shapeDataEndBracket:{rules:[],inclusive:!1},shapeDataStr:{rules:[2,3],inclusive:!1},shapeData:{rules:[1,4,5],inclusive:!1},CLASS:{rules:[9,10],inclusive:!1},ICON:{rules:[14,15],inclusive:!1},NSTR2:{rules:[28,29],inclusive:!1},NSTR:{rules:[31,32],inclusive:!1},NODE:{rules:[27,30,33,34,35,36,37,38,39,40,41,42],inclusive:!1},INITIAL:{rules:[0,6,7,8,11,12,13,16,17,18,19,20,21,22,23,24,25,26],inclusive:!0}}}})();function S(){this.yy={}}return n(S,`Parser`),S.prototype=x,x.Parser=S,new S})();g.parser=g;var _=g,v=[],y=[],b=0,x={},S=n(()=>{v=[],y=[],b=0,x={}},`clear`),C=n(e=>{if(v.length===0)return null;let t=v[0].level,n=null;for(let e=v.length-1;e>=0;e--)if(v[e].level===t&&!n&&(n=v[e]),v[e].level<t)throw Error(`Items without section detected, found section ("`+v[e].label+`")`);return e===n?.level?null:n},`getSection`),w=n(function(){return y},`getSections`),T=n(function(){let e=[],t=[],n=w(),r=s();for(let e of n){let n={id:e.id,label:o(e.label??``,r),labelType:`markdown`,isGroup:!0,ticket:e.ticket,shape:`kanbanSection`,level:e.level,look:r.look};t.push(n);let i=v.filter(t=>t.parentId===e.id);for(let n of i){let i={id:n.id,parentId:e.id,label:o(n.label??``,r),labelType:`markdown`,isGroup:!1,ticket:n?.ticket,priority:n?.priority,assigned:n?.assigned,icon:n?.icon,shape:`kanbanItem`,level:n.level,rx:5,ry:5,cssStyles:[`text-align: left`]};t.push(i)}}return{nodes:t,edges:e,other:{},config:s()}},`getData`),E=n((t,n,r,i,a)=>{let c=s(),u=c.mindmap?.padding??e.mindmap.padding;switch(i){case D.ROUNDED_RECT:case D.RECT:case D.HEXAGON:u*=2}let d={id:o(n,c)||`kbn`+b++,level:t,label:o(r,c),width:c.mindmap?.maxNodeWidth??e.mindmap.maxNodeWidth,padding:u,isGroup:!1};if(a!==void 0){let e;e=a.includes(`
7
+ `)?a+`
8
+ `:`{
9
+ `+a+`
10
+ }`;let t=l(e,{schema:f});if(t.shape&&(t.shape!==t.shape.toLowerCase()||t.shape.includes(`_`)))throw Error(`No such shape: ${t.shape}. Shape names should be lowercase.`);t?.shape&&t.shape===`kanbanItem`&&(d.shape=t?.shape),t?.label&&(d.label=t?.label),t?.icon&&(d.icon=t?.icon.toString()),t?.assigned&&(d.assigned=t?.assigned.toString()),t?.ticket&&(d.ticket=t?.ticket.toString()),t?.priority&&(d.priority=t?.priority)}let p=C(t);p?d.parentId=p.id||`kbn`+b++:y.push(d),v.push(d)},`addNode`),D={DEFAULT:0,NO_BORDER:0,ROUNDED_RECT:1,RECT:2,CIRCLE:3,CLOUD:4,BANG:5,HEXAGON:6},O={clear:S,addNode:E,getSections:w,getData:T,nodeType:D,getType:n((e,t)=>{switch(c.debug(`In get type`,e,t),e){case`[`:return D.RECT;case`(`:return t===`)`?D.ROUNDED_RECT:D.CLOUD;case`((`:return D.CIRCLE;case`)`:return D.CLOUD;case`))`:return D.BANG;case`{{`:return D.HEXAGON;default:return D.DEFAULT}},`getType`),setElementForId:n((e,t)=>{x[e]=t},`setElementForId`),decorateNode:n(e=>{if(!e)return;let t=s(),n=v[v.length-1];e.icon&&(n.icon=o(e.icon,t)),e.class&&(n.cssClasses=o(e.class,t))},`decorateNode`),type2Str:n(e=>{switch(e){case D.DEFAULT:return`no-border`;case D.RECT:return`rect`;case D.ROUNDED_RECT:return`rounded-rect`;case D.CIRCLE:return`circle`;case D.CLOUD:return`cloud`;case D.BANG:return`bang`;case D.HEXAGON:return`hexgon`;default:return`no-border`}},`type2Str`),getLogger:n(()=>c,`getLogger`),getElementById:n(e=>x[e],`getElementById`)},k={draw:n(async(n,r,i,a)=>{c.debug(`Rendering kanban diagram
11
+ `+n);let o=a.db.getData(),l=s();l.htmlLabels=!1;let f=m(r);for(let e of o.nodes)e.domId=`${r}-${e.id}`;let h=f.append(`g`);h.attr(`class`,`sections`);let g=f.append(`g`);g.attr(`class`,`items`);let _=o.nodes.filter(e=>e.isGroup),v=0,y=[],b=25;for(let e of _){let t=l?.kanban?.sectionWidth||200;v+=1,e.x=t*v+(v-1)*10/2,e.width=t,e.y=0,e.height=t*3,e.rx=5,e.ry=5,e.cssClasses=e.cssClasses+` section-`+v;let n=await p(h,e);b=Math.max(b,n?.labelBBox?.height),y.push(n)}let x=0;for(let e of _){let t=y[x];x+=1;let n=l?.kanban?.sectionWidth||200,r=-n*3/2+b,i=r,a=o.nodes.filter(t=>t.parentId===e.id);for(let t of a){if(t.isGroup)throw Error(`Groups within groups are not allowed in Kanban diagrams`);t.x=e.x,t.width=n-15;let r=(await u(g,t,{config:l})).node().getBBox();t.y=i+r.height/2,await d(t),i=t.y+r.height/2+5}let s=t.cluster.select(`rect`),c=Math.max(i-r+30,50)+(b-25);s.attr(`height`,c)}t(void 0,f,l.mindmap?.padding??e.kanban.padding,l.mindmap?.useMaxWidth??e.kanban.useMaxWidth)},`draw`)},A=n(e=>{let t=``;for(let t=0;t<e.THEME_COLOR_LIMIT;t++)e[`lineColor`+t]=e[`lineColor`+t]||e[`cScaleInv`+t],a(e[`lineColor`+t])?e[`lineColor`+t]=i(e[`lineColor`+t],20):e[`lineColor`+t]=r(e[`lineColor`+t],20);let o=n((t,n)=>e.darkMode?r(t,n):i(t,n),`adjuster`);for(let n=0;n<e.THEME_COLOR_LIMIT;n++){let r=``+(17-3*n);t+=`
12
+ .section-${n-1} rect, .section-${n-1} path, .section-${n-1} circle, .section-${n-1} polygon, .section-${n-1} path {
13
+ fill: ${o(e[`cScale`+n],10)};
14
+ stroke: ${o(e[`cScale`+n],10)};
15
+
16
+ }
17
+ .section-${n-1} text {
18
+ fill: ${e[`cScaleLabel`+n]};
19
+ }
20
+ .node-icon-${n-1} {
21
+ font-size: 40px;
22
+ color: ${e[`cScaleLabel`+n]};
23
+ }
24
+ .section-edge-${n-1}{
25
+ stroke: ${e[`cScale`+n]};
26
+ }
27
+ .edge-depth-${n-1}{
28
+ stroke-width: ${r};
29
+ }
30
+ .section-${n-1} line {
31
+ stroke: ${e[`cScaleInv`+n]} ;
32
+ stroke-width: 3;
33
+ }
34
+
35
+ .disabled, .disabled circle, .disabled text {
36
+ fill: lightgray;
37
+ }
38
+ .disabled text {
39
+ fill: #efefef;
40
+ }
41
+
42
+ .node rect,
43
+ .node circle,
44
+ .node ellipse,
45
+ .node polygon,
46
+ .node path {
47
+ fill: ${e.background};
48
+ stroke: ${e.nodeBorder};
49
+ stroke-width: 1px;
50
+ }
51
+
52
+ .kanban-ticket-link {
53
+ fill: ${e.background};
54
+ stroke: ${e.nodeBorder};
55
+ text-decoration: underline;
56
+ }
57
+ `}return t},`genSections`),j={db:O,renderer:k,parser:_,styles:n(e=>`
58
+ .edge {
59
+ stroke-width: 3;
60
+ }
61
+ ${A(e)}
62
+ .section-root rect, .section-root path, .section-root circle, .section-root polygon {
63
+ fill: ${e.git0};
64
+ }
65
+ .section-root text {
66
+ fill: ${e.gitBranchLabel0};
67
+ }
68
+ .icon-container {
69
+ height:100%;
70
+ display: flex;
71
+ justify-content: center;
72
+ align-items: center;
73
+ }
74
+ .edge {
75
+ fill: none;
76
+ }
77
+ .cluster-label, .label {
78
+ color: ${e.textColor};
79
+ fill: ${e.textColor};
80
+ }
81
+ .kanban-label {
82
+ dy: 1em;
83
+ alignment-baseline: middle;
84
+ text-anchor: middle;
85
+ dominant-baseline: middle;
86
+ text-align: center;
87
+ }
88
+ ${h()}
89
+ `,`getStyles`)};export{j as diagram};
@@ -0,0 +1 @@
1
+ var e={};export{e as default};
@@ -0,0 +1,96 @@
1
+ import{$ as e,Ht as t,It as n,Lt as r,Rt as i,St as a,mt as o,ot as s,st as c,zt as l}from"./chunk-NSK5VX7P-CBCyTZMs.js";import{n as u,t as d}from"./index-Obj05Jex.js";import{n as f,t as p}from"./chunk-KBJHAD2P-DZOw7xU6.js";var m=[];for(let e=0;e<256;++e)m.push((e+256).toString(16).slice(1));function h(e,t=0){return(m[e[t+0]]+m[e[t+1]]+m[e[t+2]]+m[e[t+3]]+`-`+m[e[t+4]]+m[e[t+5]]+`-`+m[e[t+6]]+m[e[t+7]]+`-`+m[e[t+8]]+m[e[t+9]]+`-`+m[e[t+10]]+m[e[t+11]]+m[e[t+12]]+m[e[t+13]]+m[e[t+14]]+m[e[t+15]]).toLowerCase()}var g=new Uint8Array(16);function _(){return crypto.getRandomValues(g)}function v(e,t,n){return!t&&!e&&crypto.randomUUID?crypto.randomUUID():y(e,t,n)}function y(e,t,n){e||={};let r=e.random??e.rng?.()??_();if(r.length<16)throw Error(`Random bytes length must be >= 16`);if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){if(n||=0,n<0||n+16>t.length)throw RangeError(`UUID byte range ${n}:${n+15} is out of buffer bounds`);for(let e=0;e<16;++e)t[n+e]=r[e];return t}return h(r)}var b=(function(){var e=t(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),n=[1,4],r=[1,13],i=[1,12],a=[1,15],o=[1,16],s=[1,20],c=[1,19],l=[6,7,8],u=[1,26],d=[1,24],f=[1,25],p=[6,7,11],m=[1,6,13,15,16,19,22],h=[1,33],g=[1,34],_=[1,6,7,11,13,15,16,19,22],v={trace:t(function(){},`trace`),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,MINDMAP:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,ICON:15,CLASS:16,nodeWithId:17,nodeWithoutId:18,NODE_DSTART:19,NODE_DESCR:20,NODE_DEND:21,NODE_ID:22,$accept:0,$end:1},terminals_:{2:`error`,6:`SPACELINE`,7:`NL`,8:`MINDMAP`,11:`EOF`,13:`SPACELIST`,15:`ICON`,16:`CLASS`,19:`NODE_DSTART`,20:`NODE_DESCR`,21:`NODE_DEND`,22:`NODE_ID`},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[18,3],[17,1],[17,4]],performAction:t(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 6:case 7:return r;case 8:r.getLogger().trace(`Stop NL `);break;case 9:r.getLogger().trace(`Stop EOF `);break;case 11:r.getLogger().trace(`Stop NL2 `);break;case 12:r.getLogger().trace(`Stop EOF2 `);break;case 15:r.getLogger().info(`Node: `,a[s].id),r.addNode(a[s-1].length,a[s].id,a[s].descr,a[s].type);break;case 16:r.getLogger().trace(`Icon: `,a[s]),r.decorateNode({icon:a[s]});break;case 17:case 21:r.decorateNode({class:a[s]});break;case 18:r.getLogger().trace(`SPACELIST`);break;case 19:r.getLogger().trace(`Node: `,a[s].id),r.addNode(0,a[s].id,a[s].descr,a[s].type);break;case 20:r.decorateNode({icon:a[s]});break;case 25:r.getLogger().trace(`node found ..`,a[s-2]),this.$={id:a[s-1],descr:a[s-1],type:r.getType(a[s-2],a[s])};break;case 26:this.$={id:a[s],descr:a[s],type:r.nodeType.DEFAULT};break;case 27:r.getLogger().trace(`node found ..`,a[s-3]),this.$={id:a[s-3],descr:a[s-1],type:r.getType(a[s-2],a[s])}}},`anonymous`),table:[{3:1,4:2,5:3,6:[1,5],8:n},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:n},{6:r,7:[1,10],9:9,12:11,13:i,14:14,15:a,16:o,17:17,18:18,19:s,22:c},e(l,[2,3]),{1:[2,2]},e(l,[2,4]),e(l,[2,5]),{1:[2,6],6:r,12:21,13:i,14:14,15:a,16:o,17:17,18:18,19:s,22:c},{6:r,9:22,12:11,13:i,14:14,15:a,16:o,17:17,18:18,19:s,22:c},{6:u,7:d,10:23,11:f},e(p,[2,22],{17:17,18:18,14:27,15:[1,28],16:[1,29],19:s,22:c}),e(p,[2,18]),e(p,[2,19]),e(p,[2,20]),e(p,[2,21]),e(p,[2,23]),e(p,[2,24]),e(p,[2,26],{19:[1,30]}),{20:[1,31]},{6:u,7:d,10:32,11:f},{1:[2,7],6:r,12:21,13:i,14:14,15:a,16:o,17:17,18:18,19:s,22:c},e(m,[2,14],{7:h,11:g}),e(_,[2,8]),e(_,[2,9]),e(_,[2,10]),e(p,[2,15]),e(p,[2,16]),e(p,[2,17]),{20:[1,35]},{21:[1,36]},e(m,[2,13],{7:h,11:g}),e(_,[2,11]),e(_,[2,12]),{21:[1,37]},e(p,[2,25]),e(p,[2,27])],defaultActions:{2:[2,1],6:[2,2]},parseError:t(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:t(function(e){var n=this,r=[0],i=[],a=[null],o=[],s=this.table,c=``,l=0,u=0,d=0,f=2,p=1,m=o.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(e,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;o.push(v);var y=h.options&&h.options.ranges;this.parseError=typeof g.yy.parseError==`function`?g.yy.parseError:Object.getPrototypeOf(this).parseError;function b(e){r.length-=2*e,a.length-=e,o.length-=e}t(b,`popStack`);function x(){var e=i.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(i=e,e=i.pop()),e=n.symbols_[e]||e),e}t(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=r[r.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=s[w]&&s[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],s[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`:
2
+ `+h.showPosition()+`
3
+ Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(l+1)+`: Unexpected `+(S==p?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(M,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:r.push(S),a.push(h.yytext),o.push(h.yylloc),r.push(T[1]),S=null,C?(S=C,C=null):(u=h.yyleng,c=h.yytext,l=h.yylineno,v=h.yylloc,d>0&&d--);break;case 2:if(k=this.productions_[T[1]][1],D.$=a[a.length-k],D._$={first_line:o[o.length-(k||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(k||1)].first_column,last_column:o[o.length-1].last_column},y&&(D._$.range=[o[o.length-(k||1)].range[0],o[o.length-1].range[1]]),E=this.performAction.apply(D,[c,u,l,g.yy,T[1],a,o].concat(m)),E!==void 0)return E;k&&(r=r.slice(0,-1*k*2),a=a.slice(0,-1*k),o=o.slice(0,-1*k)),r.push(this.productions_[T[1]][0]),a.push(D.$),o.push(D._$),A=s[r[r.length-2]][r[r.length-1]],r.push(A);break;case 3:return!0}}return!0},`parse`)};v.lexer=(function(){return{EOF:1,parseError:t(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:t(function(e,t){return this.yy=t||this.yy||{},this._input=e,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},`setInput`),input:t(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:t(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=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),n.length-1&&(this.yylineno-=n.length-1);var i=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:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:t(function(){return this._more=!0,this},`more`),reject:t(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).
4
+ `+this.showPosition(),{text:``,token:null,line:this.yylineno});return this},`reject`),less:t(function(e){this.unput(this.match.slice(e))},`less`),pastInput:t(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:t(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:t(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+`
5
+ `+t+`^`},`showPosition`),test_match:t(function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={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&&(i.yylloc.range=this.yylloc.range.slice(0))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,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(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},`test_match`),next:t(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r;this._more||(this.yytext=``,this.match=``);for(var i=this._currentRules(),a=0;a<i.length;a++)if(n=this._input.match(this.rules[i[a]]),n&&(!t||n[0].length>t[0].length)){if(t=n,r=a,this.options.backtrack_lexer){if(e=this.test_match(n,i[a]),e!==!1)return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?(e=this.test_match(t,i[r]),e!==!1&&e):this._input===``?this.EOF:this.parseError(`Lexical error on line `+(this.yylineno+1)+`. Unrecognized text.
6
+ `+this.showPosition(),{text:``,token:null,line:this.yylineno})},`next`),lex:t(function(){return this.next()||this.lex()},`lex`),begin:t(function(e){this.conditionStack.push(e)},`begin`),popState:t(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},`popState`),_currentRules:t(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},`_currentRules`),topState:t(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:`INITIAL`},`topState`),pushState:t(function(e){this.begin(e)},`pushState`),stateStackSize:t(function(){return this.conditionStack.length},`stateStackSize`),options:{"case-insensitive":!0},performAction:t(function(e,t,n,r){switch(n){case 0:return e.getLogger().trace(`Found comment`,t.yytext),6;case 1:return 8;case 2:this.begin(`CLASS`);break;case 3:return this.popState(),16;case 4:this.popState();break;case 5:e.getLogger().trace(`Begin icon`),this.begin(`ICON`);break;case 6:return e.getLogger().trace(`SPACELINE`),6;case 7:return 7;case 8:return 15;case 9:e.getLogger().trace(`end icon`),this.popState();break;case 10:return e.getLogger().trace(`Exploding node`),this.begin(`NODE`),19;case 11:return e.getLogger().trace(`Cloud`),this.begin(`NODE`),19;case 12:return e.getLogger().trace(`Explosion Bang`),this.begin(`NODE`),19;case 13:return e.getLogger().trace(`Cloud Bang`),this.begin(`NODE`),19;case 14:return this.begin(`NODE`),19;case 15:return this.begin(`NODE`),19;case 16:return this.begin(`NODE`),19;case 17:return this.begin(`NODE`),19;case 18:return 13;case 19:return 22;case 20:return 11;case 21:this.begin(`NSTR2`);break;case 22:return`NODE_DESCR`;case 23:this.popState();break;case 24:e.getLogger().trace(`Starting NSTR`),this.begin(`NSTR`);break;case 25:return e.getLogger().trace(`description:`,t.yytext),`NODE_DESCR`;case 26:this.popState();break;case 27:return this.popState(),e.getLogger().trace(`node end ))`),`NODE_DEND`;case 28:return this.popState(),e.getLogger().trace(`node end )`),`NODE_DEND`;case 29:return this.popState(),e.getLogger().trace(`node end ...`,t.yytext),`NODE_DEND`;case 30:return this.popState(),e.getLogger().trace(`node end ((`),`NODE_DEND`;case 31:return this.popState(),e.getLogger().trace(`node end (-`),`NODE_DEND`;case 32:return this.popState(),e.getLogger().trace(`node end (-`),`NODE_DEND`;case 33:return this.popState(),e.getLogger().trace(`node end ((`),`NODE_DEND`;case 34:return this.popState(),e.getLogger().trace(`node end ((`),`NODE_DEND`;case 35:return e.getLogger().trace(`Long description:`,t.yytext),20;case 36:return e.getLogger().trace(`Long description:`,t.yytext),20}},`anonymous`),rules:[/^(?:\s*%%.*)/i,/^(?:mindmap\b)/i,/^(?::::)/i,/^(?:.+)/i,/^(?:\n)/i,/^(?:::icon\()/i,/^(?:[\s]+[\n])/i,/^(?:[\n]+)/i,/^(?:[^\)]+)/i,/^(?:\))/i,/^(?:-\))/i,/^(?:\(-)/i,/^(?:\)\))/i,/^(?:\))/i,/^(?:\(\()/i,/^(?:\{\{)/i,/^(?:\()/i,/^(?:\[)/i,/^(?:[\s]+)/i,/^(?:[^\(\[\n\)\{\}]+)/i,/^(?:$)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:[^"]+)/i,/^(?:["])/i,/^(?:[\)]\))/i,/^(?:[\)])/i,/^(?:[\]])/i,/^(?:\}\})/i,/^(?:\(-)/i,/^(?:-\))/i,/^(?:\(\()/i,/^(?:\()/i,/^(?:[^\)\]\(\}]+)/i,/^(?:.+(?!\(\())/i],conditions:{CLASS:{rules:[3,4],inclusive:!1},ICON:{rules:[8,9],inclusive:!1},NSTR2:{rules:[22,23],inclusive:!1},NSTR:{rules:[25,26],inclusive:!1},NODE:{rules:[21,24,27,28,29,30,31,32,33,34,35,36],inclusive:!1},INITIAL:{rules:[0,1,2,5,6,7,10,11,12,13,14,15,16,17,18,19,20],inclusive:!0}}}})();function y(){this.yy={}}return t(y,`Parser`),y.prototype=v,v.Parser=y,new y})();b.parser=b;var x=b,S=12,C={DEFAULT:0,NO_BORDER:0,ROUNDED_RECT:1,RECT:2,CIRCLE:3,CLOUD:4,BANG:5,HEXAGON:6},w=class{constructor(){this.nodes=[],this.count=0,this.elements={},this.getLogger=this.getLogger.bind(this),this.nodeType=C,this.clear(),this.getType=this.getType.bind(this),this.getElementById=this.getElementById.bind(this),this.getParent=this.getParent.bind(this),this.getMindmap=this.getMindmap.bind(this),this.addNode=this.addNode.bind(this),this.decorateNode=this.decorateNode.bind(this)}static{t(this,`MindmapDB`)}clear(){this.nodes=[],this.count=0,this.elements={},this.baseLevel=void 0}getParent(e){for(let t=this.nodes.length-1;t>=0;t--)if(this.nodes[t].level<e)return this.nodes[t];return null}getMindmap(){return this.nodes.length>0?this.nodes[0]:null}addNode(t,n,r,i){l.info(`addNode`,t,n,r,i);let o=!1;this.nodes.length===0?(this.baseLevel=t,t=0,o=!0):this.baseLevel!==void 0&&(t-=this.baseLevel,o=!1);let s=c(),u=s.mindmap?.padding??e.mindmap.padding;switch(i){case this.nodeType.ROUNDED_RECT:case this.nodeType.RECT:case this.nodeType.HEXAGON:u*=2}let d={id:this.count++,nodeId:a(n,s),level:t,descr:a(r,s),type:i,children:[],width:s.mindmap?.maxNodeWidth??e.mindmap.maxNodeWidth,padding:u,isRoot:o},f=this.getParent(t);if(f)f.children.push(d),this.nodes.push(d);else if(o)this.nodes.push(d);else throw Error(`There can be only one root. No parent could be found for ("${d.descr}")`)}getType(e,t){switch(l.debug(`In get type`,e,t),e){case`[`:return this.nodeType.RECT;case`(`:return t===`)`?this.nodeType.ROUNDED_RECT:this.nodeType.CLOUD;case`((`:return this.nodeType.CIRCLE;case`)`:return this.nodeType.CLOUD;case`))`:return this.nodeType.BANG;case`{{`:return this.nodeType.HEXAGON;default:return this.nodeType.DEFAULT}}setElementForId(e,t){this.elements[e]=t}getElementById(e){return this.elements[e]}decorateNode(e){if(!e)return;let t=c(),n=this.nodes[this.nodes.length-1];e.icon&&(n.icon=a(e.icon,t)),e.class&&(n.class=a(e.class,t))}type2Str(e){switch(e){case this.nodeType.DEFAULT:return`no-border`;case this.nodeType.RECT:return`rect`;case this.nodeType.ROUNDED_RECT:return`rounded-rect`;case this.nodeType.CIRCLE:return`circle`;case this.nodeType.CLOUD:return`cloud`;case this.nodeType.BANG:return`bang`;case this.nodeType.HEXAGON:return`hexgon`;default:return`no-border`}}assignSections(e,t){if(e.section=e.level===0?void 0:t,e.children)for(let[n,r]of e.children.entries()){let i=e.level===0?n%(S-1):t;this.assignSections(r,i)}}flattenNodes(e,n){let r=c(),i=[`mindmap-node`];e.isRoot===!0?i.push(`section-root`,`section--1`):e.section!==void 0&&i.push(`section-${e.section}`),e.class&&i.push(e.class);let a=i.join(` `),o=t(e=>{let t=(r.theme?.toLowerCase()??``).includes(`redux`);switch(e){case C.CIRCLE:return`mindmapCircle`;case C.RECT:return`rect`;case C.ROUNDED_RECT:return`rounded`;case C.CLOUD:return`cloud`;case C.BANG:return`bang`;case C.HEXAGON:return`hexagon`;case C.DEFAULT:return t?`rounded`:`defaultMindmapNode`;case C.NO_BORDER:default:return`rect`}},`getShapeFromType`),s={id:e.id.toString(),domId:`node_`+e.id.toString(),label:e.descr,labelType:`markdown`,isGroup:!1,shape:o(e.type),width:e.width,height:e.height??0,padding:e.padding,cssClasses:a,cssStyles:[],look:r.look,icon:e.icon,x:e.x,y:e.y,level:e.level,nodeId:e.nodeId,type:e.type,section:e.section};if(n.push(s),e.children)for(let t of e.children)this.flattenNodes(t,n)}generateEdges(e,t){if(!e.children)return;let n=c();for(let r of e.children){let i=`edge`;r.section!==void 0&&(i+=` section-edge-${r.section}`);let a=e.level+1;i+=` edge-depth-${a}`;let o={id:`edge_${e.id}_${r.id}`,start:e.id.toString(),end:r.id.toString(),type:`normal`,curve:`basis`,thickness:`normal`,look:n.look,classes:i,depth:e.level,section:r.section};t.push(o),this.generateEdges(r,t)}}getData(){let e=this.getMindmap(),t=c(),n=o().layout!==void 0,r=t;if(n||(r.layout=`cose-bilkent`),!e)return{nodes:[],edges:[],config:r};l.debug(`getData: mindmapRoot`,e,t),this.assignSections(e);let i=[],a=[];this.flattenNodes(e,i),this.generateEdges(e,a),l.debug(`getData: processed ${i.length} nodes and ${a.length} edges`);let s=new Map;for(let e of i)s.set(e.id,{shape:e.shape,width:e.width,height:e.height,padding:e.padding});return{nodes:i,edges:a,config:r,rootNode:e,markers:[`point`],direction:`TB`,nodeSpacing:50,rankSpacing:50,shapes:Object.fromEntries(s),type:`mindmap`,diagramId:`mindmap-`+v()}}getLogger(){return l}},T={draw:t(async(t,n,r,i)=>{l.debug(`Rendering mindmap diagram
7
+ `+t);let a=i.db,o=a.getData(),c=f(n,o.config.securityLevel);if(o.type=i.type,o.layoutAlgorithm=d(o.config.layout,{fallback:`cose-bilkent`}),o.diagramId=n,!a.getMindmap())return;o.nodes.forEach(e=>{e.shape===`rounded`?(e.radius=15,e.taper=15,e.stroke=`none`,e.width=0,e.padding=15):e.shape===`circle`?e.padding=10:e.shape===`rect`?(e.width=0,e.padding=10):e.shape===`hexagon`&&(e.width=0,e.height=0)}),await u(o,c);let{themeVariables:m}=s(),{useGradient:h,gradientStart:g,gradientStop:_}=m;if(h&&g&&_){let e=c.attr(`id`),t=c.append(`defs`).append(`linearGradient`).attr(`id`,`${e}-gradient`).attr(`gradientUnits`,`objectBoundingBox`).attr(`x1`,`0%`).attr(`y1`,`0%`).attr(`x2`,`100%`).attr(`y2`,`0%`);t.append(`stop`).attr(`offset`,`0%`).attr(`stop-color`,g).attr(`stop-opacity`,1),t.append(`stop`).attr(`offset`,`100%`).attr(`stop-color`,_).attr(`stop-opacity`,1)}p(c,o.config.mindmap?.padding??e.mindmap.padding,`mindmapDiagram`,o.config.mindmap?.useMaxWidth??e.mindmap.useMaxWidth)},`draw`)},E=t(e=>{let{theme:t,look:a}=e,o=``;for(let t=0;t<e.THEME_COLOR_LIMIT;t++)e[`lineColor`+t]=e[`lineColor`+t]||e[`cScaleInv`+t],i(e[`lineColor`+t])?e[`lineColor`+t]=r(e[`lineColor`+t],20):e[`lineColor`+t]=n(e[`lineColor`+t],20);for(let n=0;n<e.THEME_COLOR_LIMIT;n++){let r=``+(a===`neo`?Math.max(10-(n-1)*2,2):17-3*n);o+=`
8
+ .section-${n-1} rect, .section-${n-1} path, .section-${n-1} circle, .section-${n-1} polygon, .section-${n-1} path {
9
+ fill: ${e[`cScale`+n]};
10
+ }
11
+ .section-${n-1} text {
12
+ fill: ${e[`cScaleLabel`+n]};
13
+ }
14
+ .section-${n-1} span {
15
+ color: ${e[`cScaleLabel`+n]};
16
+ }
17
+ .node-icon-${n-1} {
18
+ font-size: 40px;
19
+ color: ${e[`cScaleLabel`+n]};
20
+ }
21
+ .section-edge-${n-1}{
22
+ stroke: ${e[`cScale`+n]};
23
+ }
24
+ .edge-depth-${n-1}{
25
+ stroke-width: ${r};
26
+ }
27
+ .section-${n-1} line {
28
+ stroke: ${e[`cScaleInv`+n]} ;
29
+ stroke-width: 3;
30
+ }
31
+
32
+ .disabled, .disabled circle, .disabled text {
33
+ fill: lightgray;
34
+ }
35
+ .disabled text {
36
+ fill: #efefef;
37
+ }
38
+ [data-look="neo"].mindmap-node.section-${n-1} rect, [data-look="neo"].mindmap-node.section-${n-1} path, [data-look="neo"].mindmap-node.section-${n-1} circle, [data-look="neo"].mindmap-node.section-${n-1} polygon {
39
+ fill: ${t===`redux`||t===`redux-dark`||t===`neutral`?e.mainBkg:e[`cScale`+n]};
40
+ stroke: ${t===`redux`||t===`redux-dark`?e.nodeBorder:e[`cScale`+n]};
41
+ stroke-width: ${e.strokeWidth??2}px;
42
+ }
43
+ [data-look="neo"].section-edge-${n-1}{
44
+ stroke: ${t?.includes(`redux`)||t===`neo-dark`?e.nodeBorder:e[`cScale`+n]};
45
+ }
46
+ [data-look="neo"].mindmap-node.section-${n-1} text {
47
+ fill: ${t===`redux`||t===`redux-dark`?e.nodeBorder:e[`cScaleLabel`+(t===`neutral`?1:n)]};
48
+ }
49
+ `}return o},`genSections`),D=t((e,t,n)=>{let r=``;for(let i=0;i<e;i++)r+=`
50
+ [data-look="neo"].mindmap-node.section-${i-1} rect, [data-look="neo"].mindmap-node.section-${i-1} path, [data-look="neo"].mindmap-node.section-${i-1} circle, [data-look="neo"].mindmap-node.section-${i-1} polygon {
51
+ stroke: url(${t}-gradient);
52
+ fill: ${n};
53
+ }
54
+ .section-${i-1} line {
55
+ stroke-width: 0;
56
+ }`;return r},`genGradient`),O={get db(){return new w},renderer:T,parser:x,styles:t(e=>{let{theme:t}=e,n=e.svgId,r=e.dropShadow?e.dropShadow.replace(`url(#drop-shadow)`,`url(${n}-drop-shadow)`):`none`;return`
57
+ .edge {
58
+ stroke-width: 3;
59
+ }
60
+ ${E(e)}
61
+ .section-root rect, .section-root path, .section-root circle, .section-root polygon {
62
+ fill: ${e.git0};
63
+ }
64
+ .section-root text {
65
+ fill: ${e.gitBranchLabel0};
66
+ }
67
+ .section-root span {
68
+ color: ${t?.includes(`redux`)?e.nodeBorder:e.gitBranchLabel0};
69
+ }
70
+ .icon-container {
71
+ height:100%;
72
+ display: flex;
73
+ justify-content: center;
74
+ align-items: center;
75
+ }
76
+ .edge {
77
+ fill: none;
78
+ }
79
+ .mindmap-node-label {
80
+ dy: 1em;
81
+ alignment-baseline: middle;
82
+ text-anchor: middle;
83
+ dominant-baseline: middle;
84
+ text-align: center;
85
+ }
86
+ [data-look="neo"].mindmap-node {
87
+ filter: ${r};
88
+ }
89
+ [data-look="neo"].mindmap-node.section-root rect, [data-look="neo"].mindmap-node.section-root path, [data-look="neo"].mindmap-node.section-root circle, [data-look="neo"].mindmap-node.section-root polygon {
90
+ fill: ${t?.includes(`redux`)?e.mainBkg:e.git0};
91
+ }
92
+ [data-look="neo"].mindmap-node.section-root .text-inner-tspan {
93
+ fill: ${t?.includes(`redux`)?e.nodeBorder:e[`cScaleLabel`+ +(t===`neutral`)]};
94
+ }
95
+ ${e.useGradient&&n&&e.mainBkg?D(e.THEME_COLOR_LIMIT,n,e.mainBkg):``}
96
+ `},`getStyles`)};export{O as diagram};
@@ -0,0 +1 @@
1
+ var e=Math.PI,t=2*e,n=1e-6,r=t-n;function i(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function a(e){let t=Math.floor(e);if(!(t>=0))throw Error(`invalid digits: ${e}`);if(t>15)return i;let n=10**t;return function(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=Math.round(arguments[t]*n)/n+e[t]}}var o=class{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._=``,this._append=e==null?i:a(e)}moveTo(e,t){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,t){this._append`L${this._x1=+e},${this._y1=+t}`}quadraticCurveTo(e,t,n,r){this._append`Q${+e},${+t},${this._x1=+n},${this._y1=+r}`}bezierCurveTo(e,t,n,r,i,a){this._append`C${+e},${+t},${+n},${+r},${this._x1=+i},${this._y1=+a}`}arcTo(t,r,i,a,o){if(t=+t,r=+r,i=+i,a=+a,o=+o,o<0)throw Error(`negative radius: ${o}`);let s=this._x1,c=this._y1,l=i-t,u=a-r,d=s-t,f=c-r,p=d*d+f*f;if(this._x1===null)this._append`M${this._x1=t},${this._y1=r}`;else if(p>n){if(!(Math.abs(f*l-u*d)>n)||!o)this._append`L${this._x1=t},${this._y1=r}`;else{let m=i-s,h=a-c,g=l*l+u*u,_=m*m+h*h,v=Math.sqrt(g),y=Math.sqrt(p),b=o*Math.tan((e-Math.acos((g+p-_)/(2*v*y)))/2),x=b/y,S=b/v;Math.abs(x-1)>n&&this._append`L${t+x*d},${r+x*f}`,this._append`A${o},${o},0,0,${+(f*m>d*h)},${this._x1=t+S*l},${this._y1=r+S*u}`}}}arc(i,a,o,s,c,l){if(i=+i,a=+a,o=+o,l=!!l,o<0)throw Error(`negative radius: ${o}`);let u=o*Math.cos(s),d=o*Math.sin(s),f=i+u,p=a+d,m=1^l,h=l?s-c:c-s;this._x1===null?this._append`M${f},${p}`:(Math.abs(this._x1-f)>n||Math.abs(this._y1-p)>n)&&this._append`L${f},${p}`,o&&(h<0&&(h=h%t+t),h>r?this._append`A${o},${o},0,1,${m},${i-u},${a-d}A${o},${o},0,1,${m},${this._x1=f},${this._y1=p}`:h>n&&this._append`A${o},${o},0,${+(h>=e)},${m},${this._x1=i+o*Math.cos(c)},${this._y1=a+o*Math.sin(c)}`)}rect(e,t,n,r){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${n=+n}v${+r}h${-n}Z`}toString(){return this._}};o.prototype;function s(e){return function(){return e}}function c(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{let e=Math.floor(n);if(!(e>=0))throw RangeError(`invalid digits: ${n}`);t=e}return e},()=>new o(t)}export{s as n,c as t};
@@ -0,0 +1 @@
1
+ var e={};export{e as diagram};
@@ -0,0 +1 @@
1
+ var e={};export{e as diagram};
@@ -0,0 +1 @@
1
+ var e={};export{e as diagram};
@@ -0,0 +1 @@
1
+ var e={};export{e as diagram};
@@ -0,0 +1 @@
1
+ var e={};export{e as diagram};
@@ -0,0 +1 @@
1
+ var e={};export{e as diagram};
@@ -0,0 +1 @@
1
+ var e={};export{e as diagram};
@@ -0,0 +1 @@
1
+ import{E as e,Ht as t,U as n,X as r,Y as i,f as a,pt as o,st as s,zt as c}from"./chunk-NSK5VX7P-CBCyTZMs.js";import{y as l}from"./index-Obj05Jex.js";import"./chunk-KBJHAD2P-DZOw7xU6.js";import"./chunk-2GRJ4B5K-HdDf8SI3.js";import{n as u,t as d}from"./dagre-K_PewWfS.js";import{i as f,n as p,t as m}from"./chunk-5RXB4S5H-IPzIfiJ6.js";var h=t(e=>e.append(`circle`).attr(`class`,`start-state`).attr(`r`,s().state.sizeUnit).attr(`cx`,s().state.padding+s().state.sizeUnit).attr(`cy`,s().state.padding+s().state.sizeUnit),`drawStartState`),g=t(e=>e.append(`line`).style(`stroke`,`grey`).style(`stroke-dasharray`,`3`).attr(`x1`,s().state.textHeight).attr(`class`,`divider`).attr(`x2`,s().state.textHeight*2).attr(`y1`,0).attr(`y2`,0),`drawDivider`),_=t((e,t)=>{let n=e.append(`text`).attr(`x`,2*s().state.padding).attr(`y`,s().state.textHeight+2*s().state.padding).attr(`font-size`,s().state.fontSize).attr(`class`,`state-title`).text(t.id),r=n.node().getBBox();return e.insert(`rect`,`:first-child`).attr(`x`,s().state.padding).attr(`y`,s().state.padding).attr(`width`,r.width+2*s().state.padding).attr(`height`,r.height+2*s().state.padding).attr(`rx`,s().state.radius),n},`drawSimpleState`),v=t((e,n)=>{let r=t(function(e,t,n){let r=e.append(`tspan`).attr(`x`,2*s().state.padding).text(t);n||r.attr(`dy`,s().state.textHeight)},`addTspan`),i=e.append(`text`).attr(`x`,2*s().state.padding).attr(`y`,s().state.textHeight+1.3*s().state.padding).attr(`font-size`,s().state.fontSize).attr(`class`,`state-title`).text(n.descriptions[0]).node().getBBox(),a=i.height,o=e.append(`text`).attr(`x`,s().state.padding).attr(`y`,a+s().state.padding*.4+s().state.dividerMargin+s().state.textHeight).attr(`class`,`state-description`),c=!0,l=!0;n.descriptions.forEach(function(e){c||(r(o,e,l),l=!1),c=!1});let u=e.append(`line`).attr(`x1`,s().state.padding).attr(`y1`,s().state.padding+a+s().state.dividerMargin/2).attr(`y2`,s().state.padding+a+s().state.dividerMargin/2).attr(`class`,`descr-divider`),d=o.node().getBBox(),f=Math.max(d.width,i.width);return u.attr(`x2`,f+3*s().state.padding),e.insert(`rect`,`:first-child`).attr(`x`,s().state.padding).attr(`y`,s().state.padding).attr(`width`,f+2*s().state.padding).attr(`height`,d.height+a+2*s().state.padding).attr(`rx`,s().state.radius),e},`drawDescrState`),y=t((e,t,n)=>{let r=s().state.padding,i=2*s().state.padding,a=e.node().getBBox(),o=a.width,c=a.x,l=e.append(`text`).attr(`x`,0).attr(`y`,s().state.titleShift).attr(`font-size`,s().state.fontSize).attr(`class`,`state-title`).text(t.id),u=l.node().getBBox().width+i,d=Math.max(u,o);d===o&&(d+=i);let f,p=e.node().getBBox();t.doc,f=c-r,u>o&&(f=(o-d)/2+r),Math.abs(c-p.x)<r&&u>o&&(f=c-(u-o)/2);let m=1-s().state.textHeight;return e.insert(`rect`,`:first-child`).attr(`x`,f).attr(`y`,m).attr(`class`,n?`alt-composit`:`composit`).attr(`width`,d).attr(`height`,p.height+s().state.textHeight+s().state.titleShift+1).attr(`rx`,`0`),l.attr(`x`,f+r),u<=o&&l.attr(`x`,c+(d-i)/2-u/2+r),e.insert(`rect`,`:first-child`).attr(`x`,f).attr(`y`,s().state.titleShift-s().state.textHeight-s().state.padding).attr(`width`,d).attr(`height`,s().state.textHeight*3).attr(`rx`,s().state.radius),e.insert(`rect`,`:first-child`).attr(`x`,f).attr(`y`,s().state.titleShift-s().state.textHeight-s().state.padding).attr(`width`,d).attr(`height`,p.height+3+2*s().state.textHeight).attr(`rx`,s().state.radius),e},`addTitleAndBox`),b=t(e=>(e.append(`circle`).attr(`class`,`end-state-outer`).attr(`r`,s().state.sizeUnit+s().state.miniPadding).attr(`cx`,s().state.padding+s().state.sizeUnit+s().state.miniPadding).attr(`cy`,s().state.padding+s().state.sizeUnit+s().state.miniPadding),e.append(`circle`).attr(`class`,`end-state-inner`).attr(`r`,s().state.sizeUnit).attr(`cx`,s().state.padding+s().state.sizeUnit+2).attr(`cy`,s().state.padding+s().state.sizeUnit+2)),`drawEndState`),x=t((e,t)=>{let n=s().state.forkWidth,r=s().state.forkHeight;if(t.parentId){let e=n;n=r,r=e}return e.append(`rect`).style(`stroke`,`black`).style(`fill`,`black`).attr(`width`,n).attr(`height`,r).attr(`x`,s().state.padding).attr(`y`,s().state.padding)},`drawForkJoinState`),S=t((e,t,n,r)=>{let a=0,o=r.append(`text`);o.style(`text-anchor`,`start`),o.attr(`class`,`noteText`);let c=e.replace(/\r\n/g,`<br/>`);c=c.replace(/\n/g,`<br/>`);let l=c.split(i.lineBreakRegex),u=1.25*s().state.noteMargin;for(let e of l){let r=e.trim();if(r.length>0){let e=o.append(`tspan`);if(e.text(r),u===0){let t=e.node().getBBox();u+=t.height}a+=u,e.attr(`x`,t+s().state.noteMargin),e.attr(`y`,n+a+1.25*s().state.noteMargin)}}return{textWidth:o.node().getBBox().width,textHeight:a}},`_drawLongText`),C=t((e,t)=>{t.attr(`class`,`state-note`);let n=t.append(`rect`).attr(`x`,0).attr(`y`,s().state.padding),{textWidth:r,textHeight:i}=S(e,0,0,t.append(`g`));return n.attr(`height`,i+2*s().state.noteMargin),n.attr(`width`,r+s().state.noteMargin*2),n},`drawNote`),w=t(function(e,t){let n=t.id,r={id:n,label:t.id,width:0,height:0},i=e.append(`g`).attr(`id`,n).attr(`class`,`stateGroup`);t.type===`start`&&h(i),t.type===`end`&&b(i),(t.type===`fork`||t.type===`join`)&&x(i,t),t.type===`note`&&C(t.note.text,i),t.type===`divider`&&g(i),t.type==="default"&&t.descriptions.length===0&&_(i,t),t.type==="default"&&t.descriptions.length>0&&v(i,t);let a=i.node().getBBox();return r.width=a.width+2*s().state.padding,r.height=a.height+2*s().state.padding,r},`drawState`),T=0,E=t(function(n,r,u){let d=t(function(e){switch(e){case m.relationType.AGGREGATION:return`aggregation`;case m.relationType.EXTENSION:return`extension`;case m.relationType.COMPOSITION:return`composition`;case m.relationType.DEPENDENCY:return`dependency`}},`getRelationType`);r.points=r.points.filter(e=>!Number.isNaN(e.y));let f=r.points,p=l().x(function(e){return e.x}).y(function(e){return e.y}).curve(e),h=n.append(`path`).attr(`d`,p(f)).attr(`id`,`edge`+T).attr(`class`,`transition`),g=``;if(s().state.arrowMarkerAbsolute&&(g=o(!0)),h.attr(`marker-end`,`url(`+g+`#`+d(m.relationType.DEPENDENCY)+`End)`),u.title!==void 0){let e=n.append(`g`).attr(`class`,`stateLabel`),{x:t,y:o}=a.calcLabelPosition(r.points),l=i.getRows(u.title),d=0,f=[],p=0,m=0;for(let n=0;n<=l.length;n++){let r=e.append(`text`).attr(`text-anchor`,`middle`).text(l[n]).attr(`x`,t).attr(`y`,o+d),i=r.node().getBBox();p=Math.max(p,i.width),m=Math.min(m,i.x),c.info(i.x,t,o+d),d===0&&(d=r.node().getBBox().height,c.info(`Title height`,d,o)),f.push(r)}let h=d*l.length;if(l.length>1){let e=(l.length-1)*d*.5;f.forEach((t,n)=>t.attr(`y`,o+n*d-e)),h=d*l.length}let g=e.node().getBBox();e.insert(`rect`,`:first-child`).attr(`class`,`box`).attr(`x`,t-p/2-s().state.padding/2).attr(`y`,o-h/2-s().state.padding/2-3.5).attr(`width`,p+s().state.padding).attr(`height`,h+s().state.padding),c.info(g)}T++},`drawEdge`),D,O={},k=t(function(){},`setConf`),A=t(function(e){e.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`),j=t(function(e,t,i,a){D=s().state;let o=s().securityLevel,l;o===`sandbox`&&(l=n(`#i`+t));let u=n(o===`sandbox`?l.nodes()[0].contentDocument.body:`body`),d=o===`sandbox`?l.nodes()[0].contentDocument:document;c.debug(`Rendering diagram `+e);let f=u.select(`[id='${t}']`);A(f),N(a.db.getRootDoc(),f.append(`g`).attr(`id`,t+`-root`),void 0,!1,u,d,a);let p=D.padding,m=f.node().getBBox(),h=m.width+p*2,g=m.height+p*2,_=h*1.75;r(f,g,_,D.useMaxWidth),f.attr(`viewBox`,`${m.x-D.padding} ${m.y-D.padding} `+h+` `+g)},`draw`),M=t(e=>e?e.length*D.fontSizeFactor:1,`getLabelWidth`),N=t((e,t,n,r,a,o,s)=>{let l=new u({compound:!0,multigraph:!0}),f,p=!0;for(f=0;f<e.length;f++)if(e[f].stmt===`relation`){p=!1;break}n?l.setGraph({rankdir:`LR`,multigraph:!0,compound:!0,ranker:`tight-tree`,ranksep:p?1:D.edgeLengthFactor,nodeSep:p?1:50,isMultiGraph:!0}):l.setGraph({rankdir:`TB`,multigraph:!0,compound:!0,ranksep:p?1:D.edgeLengthFactor,nodeSep:p?1:50,ranker:`tight-tree`,isMultiGraph:!0}),l.setDefaultEdgeLabel(function(){return{}});let m=s.db.getStates(),h=s.db.getRelations(),g=Object.keys(m);for(let e of g){let i=m[e];n&&(i.parentId=n);let c;if(i.doc){let e=t.append(`g`).attr(`id`,i.id).attr(`class`,`stateGroup`);c=N(i.doc,e,i.id,!r,a,o,s);{e=y(e,i,r);let t=e.node().getBBox();c.width=t.width,c.height=t.height+D.padding/2,O[i.id]={y:D.compositTitleSize}}}else c=w(t,i,l);if(i.note){let e=w(t,{descriptions:[],id:i.id+`-note`,note:i.note,type:`note`},l);i.note.position===`left of`?(l.setNode(c.id+`-note`,e),l.setNode(c.id,c)):(l.setNode(c.id,c),l.setNode(c.id+`-note`,e)),l.setParent(c.id,c.id+`-group`),l.setParent(c.id+`-note`,c.id+`-group`)}else l.setNode(c.id,c)}c.debug(`Count=`,l.nodeCount(),l);let _=0;h.forEach(function(e){_++,c.debug(`Setting edge`,e),l.setEdge(e.id1,e.id2,{relation:e,width:M(e.title),height:D.labelHeight*i.getRows(e.title).length,labelpos:`c`},`id`+_)}),d(l),c.debug(`Graph after layout`,l.nodes());let v=t.node();l.nodes().forEach(function(e){e!==void 0&&l.node(e)!==void 0?(c.warn(`Node `+e+`: `+JSON.stringify(l.node(e))),a.select(`#`+v.id+` #`+e).attr(`transform`,`translate(`+(l.node(e).x-l.node(e).width/2)+`,`+(l.node(e).y+(O[e]?O[e].y:0)-l.node(e).height/2)+` )`),a.select(`#`+v.id+` #`+e).attr(`data-x-shift`,l.node(e).x-l.node(e).width/2),o.querySelectorAll(`#`+v.id+` #`+e+` .divider`).forEach(e=>{let t=e.parentElement,n=0,r=0;t&&(t.parentElement&&(n=t.parentElement.getBBox().width),r=parseInt(t.getAttribute(`data-x-shift`),10),Number.isNaN(r)&&(r=0)),e.setAttribute(`x1`,0-r+8),e.setAttribute(`x2`,n-r-8)})):c.debug(`No Node `+e+`: `+JSON.stringify(l.node(e)))});let b=v.getBBox();l.edges().forEach(function(e){e!==void 0&&l.edge(e)!==void 0&&(c.debug(`Edge `+e.v+` -> `+e.w+`: `+JSON.stringify(l.edge(e))),E(t,l.edge(e),l.edge(e).relation))}),b=v.getBBox();let x={id:n||`root`,label:n||`root`,width:0,height:0};return x.width=b.width+2*D.padding,x.height=b.height+2*D.padding,c.debug(`Doc rendered`,x,l),x},`renderDoc`),P={parser:p,get db(){return new m(1)},renderer:{setConf:k,draw:j},styles:f,init:t(e=>{e.state||={},e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute},`init`)};export{P as diagram};
@@ -0,0 +1 @@
1
+ import{Ht as e}from"./chunk-NSK5VX7P-CBCyTZMs.js";import"./index-Obj05Jex.js";import"./chunk-KBJHAD2P-DZOw7xU6.js";import"./chunk-2GRJ4B5K-HdDf8SI3.js";import{i as t,n,r,t as i}from"./chunk-5RXB4S5H-IPzIfiJ6.js";var a={parser:n,get db(){return new i(2)},renderer:r,styles:t,init:e(e=>{e.state||={},e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute},`init`)};export{a as diagram};
@@ -0,0 +1 @@
1
+ var e={},t={diagram:e};export{t as default,e as diagram};
@@ -0,0 +1 @@
1
+ var e={};export{e as diagram};
@@ -0,0 +1,120 @@
1
+ import{A as e,At as t,B as n,H as r,Ht as i,I as a,It as o,J as s,L as c,Lt as l,M as u,N as d,P as f,R as p,Rt as m,U as h,V as g,Vt as _,j as v,ot as y,q as b,st as x,u as S,z as C,zt as w}from"./chunk-NSK5VX7P-CBCyTZMs.js";import{n as T,t as E}from"./path-fybaL0A-.js";import{v as D}from"./index-Obj05Jex.js";function O(e){return e.innerRadius}function k(e){return e.outerRadius}function A(e){return e.startAngle}function j(e){return e.endAngle}function M(e){return e&&e.padAngle}function ee(e,t,n,r,i,a,o,s){var c=n-e,l=r-t,u=o-i,d=s-a,f=d*c-u*l;if(!(f*f<1e-12))return f=(u*(t-a)-d*(e-i))/f,[e+f*c,t+f*l]}function N(e,t,n,r,i,a,o){var s=e-n,l=t-r,u=(o?a:-a)/g(s*s+l*l),d=u*l,f=-u*s,p=e+d,m=t+f,h=n+d,_=r+f,v=(p+h)/2,y=(m+_)/2,b=h-p,x=_-m,S=b*b+x*x,C=i-a,w=p*_-h*m,T=(x<0?-1:1)*g(c(0,C*C*S-w*w)),E=(w*x-b*T)/S,D=(-w*b-x*T)/S,O=(w*x+b*T)/S,k=(-w*b+x*T)/S,A=E-v,j=D-y,M=O-v,ee=k-y;return A*A+j*j>M*M+ee*ee&&(E=O,D=k),{cx:E,cy:D,x01:-d,y01:-f,x11:E*(i/C-1),y11:D*(i/C-1)}}function te(){var t=O,i=k,o=T(0),s=null,c=A,l=j,m=M,h=null,_=E(y);function y(){var y,b,x=+t.apply(this,arguments),S=+i.apply(this,arguments),w=c.apply(this,arguments)-a,T=l.apply(this,arguments)-a,E=e(T-w),D=T>w;if(h||=y=_(),S<x&&(b=S,S=x,x=b),!(S>1e-12))h.moveTo(0,0);else if(E>r-1e-12)h.moveTo(S*f(w),S*n(w)),h.arc(0,0,S,w,T,!D),x>1e-12&&(h.moveTo(x*f(T),x*n(T)),h.arc(0,0,x,T,w,D));else{var O=w,k=T,A=w,j=T,M=E,te=E,P=m.apply(this,arguments)/2,ne=P>1e-12&&(s?+s.apply(this,arguments):g(x*x+S*S)),F=p(e(S-x)/2,+o.apply(this,arguments)),I=F,L=F,R,z;if(ne>1e-12){var B=u(ne/x*n(P)),V=u(ne/S*n(P));(M-=B*2)>1e-12?(B*=D?1:-1,A+=B,j-=B):(M=0,A=j=(w+T)/2),(te-=V*2)>1e-12?(V*=D?1:-1,O+=V,k-=V):(te=0,O=k=(w+T)/2)}var H=S*f(O),U=S*n(O),W=x*f(j),G=x*n(j);if(F>1e-12){var K=S*f(k),q=S*n(k),re=x*f(A),ie=x*n(A),J;if(E<C){if(J=ee(H,U,re,ie,K,q,W,G)){var Y=H-J[0],X=U-J[1],ae=K-J[0],oe=q-J[1],Z=1/n(v((Y*ae+X*oe)/(g(Y*Y+X*X)*g(ae*ae+oe*oe)))/2),se=g(J[0]*J[0]+J[1]*J[1]);I=p(F,(x-se)/(Z-1)),L=p(F,(S-se)/(Z+1))}else I=L=0}}te>1e-12?L>1e-12?(R=N(re,ie,H,U,S,L,D),z=N(K,q,W,G,S,L,D),h.moveTo(R.cx+R.x01,R.cy+R.y01),L<F?h.arc(R.cx,R.cy,L,d(R.y01,R.x01),d(z.y01,z.x01),!D):(h.arc(R.cx,R.cy,L,d(R.y01,R.x01),d(R.y11,R.x11),!D),h.arc(0,0,S,d(R.cy+R.y11,R.cx+R.x11),d(z.cy+z.y11,z.cx+z.x11),!D),h.arc(z.cx,z.cy,L,d(z.y11,z.x11),d(z.y01,z.x01),!D))):(h.moveTo(H,U),h.arc(0,0,S,O,k,!D)):h.moveTo(H,U),!(x>1e-12)||!(M>1e-12)?h.lineTo(W,G):I>1e-12?(R=N(W,G,K,q,x,-I,D),z=N(H,U,re,ie,x,-I,D),h.lineTo(R.cx+R.x01,R.cy+R.y01),I<F?h.arc(R.cx,R.cy,I,d(R.y01,R.x01),d(z.y01,z.x01),!D):(h.arc(R.cx,R.cy,I,d(R.y01,R.x01),d(R.y11,R.x11),!D),h.arc(0,0,x,d(R.cy+R.y11,R.cx+R.x11),d(z.cy+z.y11,z.cx+z.x11),D),h.arc(z.cx,z.cy,I,d(z.y11,z.x11),d(z.y01,z.x01),!D))):h.arc(0,0,x,j,A,D)}if(h.closePath(),y)return h=null,y+``||null}return y.centroid=function(){var e=(+t.apply(this,arguments)+ +i.apply(this,arguments))/2,r=(+c.apply(this,arguments)+ +l.apply(this,arguments))/2-C/2;return[f(r)*e,n(r)*e]},y.innerRadius=function(e){return arguments.length?(t=typeof e==`function`?e:T(+e),y):t},y.outerRadius=function(e){return arguments.length?(i=typeof e==`function`?e:T(+e),y):i},y.cornerRadius=function(e){return arguments.length?(o=typeof e==`function`?e:T(+e),y):o},y.padRadius=function(e){return arguments.length?(s=e==null?null:typeof e==`function`?e:T(+e),y):s},y.startAngle=function(e){return arguments.length?(c=typeof e==`function`?e:T(+e),y):c},y.endAngle=function(e){return arguments.length?(l=typeof e==`function`?e:T(+e),y):l},y.padAngle=function(e){return arguments.length?(m=typeof e==`function`?e:T(+e),y):m},y.context=function(e){return arguments.length?(h=e??null,y):h},y}var P=(function(){var e=i(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),t=[6,11,13,14,15,17,19,20,23,24],n=[1,12],r=[1,13],a=[1,14],o=[1,15],s=[1,16],c=[1,19],l=[1,20],u={trace:i(function(){},`trace`),yy:{},symbols_:{error:2,start:3,timeline_header:4,document:5,EOF:6,timeline:7,timeline_lr:8,timeline_td:9,line:10,SPACE:11,statement:12,NEWLINE:13,title:14,acc_title:15,acc_title_value:16,acc_descr:17,acc_descr_value:18,acc_descr_multiline_value:19,section:20,period_statement:21,event_statement:22,period:23,event:24,$accept:0,$end:1},terminals_:{2:`error`,6:`EOF`,7:`timeline`,8:`timeline_lr`,9:`timeline_td`,11:`SPACE`,13:`NEWLINE`,14:`title`,15:`acc_title`,16:`acc_title_value`,17:`acc_descr`,18:`acc_descr_value`,19:`acc_descr_multiline_value`,20:`section`,23:`period`,24:`event`},productions_:[0,[3,3],[4,1],[4,1],[4,1],[5,0],[5,2],[10,2],[10,1],[10,1],[10,1],[12,1],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[21,1],[22,1]],performAction:i(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 1:return a[s-1];case 3:r.setDirection(`LR`);break;case 4:r.setDirection(`TD`);break;case 5:this.$=[];break;case 6:a[s-1].push(a[s]),this.$=a[s-1];break;case 7:case 8:this.$=a[s];break;case 9:case 10:this.$=[];break;case 11:r.getCommonDb().setDiagramTitle(a[s].substr(6)),this.$=a[s].substr(6);break;case 12:this.$=a[s].trim(),r.getCommonDb().setAccTitle(this.$);break;case 13:case 14:this.$=a[s].trim(),r.getCommonDb().setAccDescription(this.$);break;case 15:r.addSection(a[s].substr(8)),this.$=a[s].substr(8);break;case 18:r.addTask(a[s],0,``),this.$=a[s];break;case 19:r.addEvent(a[s].substr(2)),this.$=a[s]}},`anonymous`),table:[{3:1,4:2,7:[1,3],8:[1,4],9:[1,5]},{1:[3]},e(t,[2,5],{5:6}),e(t,[2,2]),e(t,[2,3]),e(t,[2,4]),{6:[1,7],10:8,11:[1,9],12:10,13:[1,11],14:n,15:r,17:a,19:o,20:s,21:17,22:18,23:c,24:l},e(t,[2,10],{1:[2,1]}),e(t,[2,6]),{12:21,14:n,15:r,17:a,19:o,20:s,21:17,22:18,23:c,24:l},e(t,[2,8]),e(t,[2,9]),e(t,[2,11]),{16:[1,22]},{18:[1,23]},e(t,[2,14]),e(t,[2,15]),e(t,[2,16]),e(t,[2,17]),e(t,[2,18]),e(t,[2,19]),e(t,[2,7]),e(t,[2,12]),e(t,[2,13])],defaultActions:{},parseError:i(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:i(function(e){var t=this,n=[0],r=[],a=[null],o=[],s=this.table,c=``,l=0,u=0,d=0,f=2,p=1,m=o.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(e,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;o.push(v);var y=h.options&&h.options.ranges;this.parseError=typeof g.yy.parseError==`function`?g.yy.parseError:Object.getPrototypeOf(this).parseError;function b(e){n.length-=2*e,a.length-=e,o.length-=e}i(b,`popStack`);function x(){var e=r.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(r=e,e=r.pop()),e=t.symbols_[e]||e),e}i(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=n[n.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=s[w]&&s[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],s[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`:
2
+ `+h.showPosition()+`
3
+ Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(l+1)+`: Unexpected `+(S==p?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(M,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:n.push(S),a.push(h.yytext),o.push(h.yylloc),n.push(T[1]),S=null,C?(S=C,C=null):(u=h.yyleng,c=h.yytext,l=h.yylineno,v=h.yylloc,d>0&&d--);break;case 2:if(k=this.productions_[T[1]][1],D.$=a[a.length-k],D._$={first_line:o[o.length-(k||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(k||1)].first_column,last_column:o[o.length-1].last_column},y&&(D._$.range=[o[o.length-(k||1)].range[0],o[o.length-1].range[1]]),E=this.performAction.apply(D,[c,u,l,g.yy,T[1],a,o].concat(m)),E!==void 0)return E;k&&(n=n.slice(0,-1*k*2),a=a.slice(0,-1*k),o=o.slice(0,-1*k)),n.push(this.productions_[T[1]][0]),a.push(D.$),o.push(D._$),A=s[n[n.length-2]][n[n.length-1]],n.push(A);break;case 3:return!0}}return!0},`parse`)};u.lexer=(function(){return{EOF:1,parseError:i(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:i(function(e,t){return this.yy=t||this.yy||{},this._input=e,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},`setInput`),input:i(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:i(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=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),n.length-1&&(this.yylineno-=n.length-1);var i=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:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:i(function(){return this._more=!0,this},`more`),reject:i(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).
4
+ `+this.showPosition(),{text:``,token:null,line:this.yylineno});return this},`reject`),less:i(function(e){this.unput(this.match.slice(e))},`less`),pastInput:i(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:i(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:i(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+`
5
+ `+t+`^`},`showPosition`),test_match:i(function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={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&&(i.yylloc.range=this.yylloc.range.slice(0))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,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(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},`test_match`),next:i(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r;this._more||(this.yytext=``,this.match=``);for(var i=this._currentRules(),a=0;a<i.length;a++)if(n=this._input.match(this.rules[i[a]]),n&&(!t||n[0].length>t[0].length)){if(t=n,r=a,this.options.backtrack_lexer){if(e=this.test_match(n,i[a]),e!==!1)return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?(e=this.test_match(t,i[r]),e!==!1&&e):this._input===``?this.EOF:this.parseError(`Lexical error on line `+(this.yylineno+1)+`. Unrecognized text.
6
+ `+this.showPosition(),{text:``,token:null,line:this.yylineno})},`next`),lex:i(function(){return this.next()||this.lex()},`lex`),begin:i(function(e){this.conditionStack.push(e)},`begin`),popState:i(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},`popState`),_currentRules:i(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},`_currentRules`),topState:i(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:`INITIAL`},`topState`),pushState:i(function(e){this.begin(e)},`pushState`),stateStackSize:i(function(){return this.conditionStack.length},`stateStackSize`),options:{"case-insensitive":!0},performAction:i(function(e,t,n,r){switch(n){case 0:break;case 1:break;case 2:return 13;case 3:break;case 4:break;case 5:return 8;case 6:return 9;case 7:return 7;case 8:return 14;case 9:return this.begin(`acc_title`),15;case 10:return this.popState(),`acc_title_value`;case 11:return this.begin(`acc_descr`),17;case 12:return this.popState(),`acc_descr_value`;case 13:this.begin(`acc_descr_multiline`);break;case 14:this.popState();break;case 15:return`acc_descr_multiline_value`;case 16:return 20;case 17:return 24;case 18:return 23;case 19:return 6;case 20:return`INVALID`}},`anonymous`),rules:[/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:timeline[ \t]+LR\b)/i,/^(?:timeline[ \t]+TD\b)/i,/^(?:timeline\b)/i,/^(?:title\s[^\n]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:section\s[^:\n]+)/i,/^(?::\s(?:[^:\n]|:(?!\s))+)/i,/^(?:[^#:\n]+)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[14,15],inclusive:!1},acc_descr:{rules:[12],inclusive:!1},acc_title:{rules:[10],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,11,13,16,17,18,19,20],inclusive:!0}}}})();function d(){this.yy={}}return i(d,`Parser`),d.prototype=u,u.Parser=d,new d})();P.parser=P;var ne=P,F={};_(F,{addEvent:()=>J,addSection:()=>K,addTask:()=>ie,addTaskOrg:()=>Y,clear:()=>U,default:()=>ae,getCommonDb:()=>H,getDirection:()=>G,getSections:()=>q,getTasks:()=>re,setDirection:()=>W});var I=``,L=0,R=`LR`,z=[],B=[],V=[],H=i(()=>s,`getCommonDb`),U=i(function(){z.length=0,B.length=0,I=``,V.length=0,R=`LR`,b()},`clear`),W=i(function(e){R=e},`setDirection`),G=i(function(){return R},`getDirection`),K=i(function(e){I=e,z.push(e)},`addSection`),q=i(function(){return z},`getSections`),re=i(function(){let e=X(),t=0;for(;!e&&t<100;)e=X(),t++;return B.push(...V),B},`getTasks`),ie=i(function(e,t,n){let r={id:L++,section:I,type:I,task:e,score:t||0,events:n?[n]:[]};V.push(r)},`addTask`),J=i(function(e){V.find(e=>e.id===L-1).events.push(e)},`addEvent`),Y=i(function(e){let t={section:I,type:I,description:e,task:e,classes:[]};B.push(t)},`addTaskOrg`),X=i(function(){let e=i(function(e){return V[e].processed},`compileTask`),t=!0;for(let[n,r]of V.entries())e(n),t&&=r.processed;return t},`compileTasks`),ae={clear:U,getCommonDb:H,getDirection:G,setDirection:W,addSection:K,getSections:q,getTasks:re,addTask:ie,addTaskOrg:Y,addEvent:J},oe=0,Z=i(function(e,t){let n=e.append(`rect`);return n.attr(`x`,t.x),n.attr(`y`,t.y),n.attr(`fill`,t.fill),n.attr(`stroke`,t.stroke),n.attr(`width`,t.width),n.attr(`height`,t.height),n.attr(`rx`,t.rx),n.attr(`ry`,t.ry),t.class!==void 0&&n.attr(`class`,t.class),n},`drawRect`),se=i(function(e,t){let n=e.append(`circle`).attr(`cx`,t.cx).attr(`cy`,t.cy).attr(`class`,`face`).attr(`r`,15).attr(`stroke-width`,2).attr(`overflow`,`visible`),r=e.append(`g`);r.append(`circle`).attr(`cx`,t.cx-5).attr(`cy`,t.cy-5).attr(`r`,1.5).attr(`stroke-width`,2).attr(`fill`,`#666`).attr(`stroke`,`#666`),r.append(`circle`).attr(`cx`,t.cx+5).attr(`cy`,t.cy-5).attr(`r`,1.5).attr(`stroke-width`,2).attr(`fill`,`#666`).attr(`stroke`,`#666`);function a(e){let n=te().startAngle(Math.PI/2).endAngle(Math.PI/2*3).innerRadius(15/2).outerRadius(15/2.2);e.append(`path`).attr(`class`,`mouth`).attr(`d`,n).attr(`transform`,`translate(`+t.cx+`,`+(t.cy+2)+`)`)}i(a,`smile`);function o(e){let n=te().startAngle(3*Math.PI/2).endAngle(Math.PI/2*5).innerRadius(15/2).outerRadius(15/2.2);e.append(`path`).attr(`class`,`mouth`).attr(`d`,n).attr(`transform`,`translate(`+t.cx+`,`+(t.cy+7)+`)`)}i(o,`sad`);function s(e){e.append(`line`).attr(`class`,`mouth`).attr(`stroke`,2).attr(`x1`,t.cx-5).attr(`y1`,t.cy+7).attr(`x2`,t.cx+5).attr(`y2`,t.cy+7).attr(`class`,`mouth`).attr(`stroke-width`,`1px`).attr(`stroke`,`#666`)}return i(s,`ambivalent`),t.score>3?a(r):t.score<3?o(r):s(r),n},`drawFace`),ce=i(function(e,t){let n=e.append(`circle`);return n.attr(`cx`,t.cx),n.attr(`cy`,t.cy),n.attr(`class`,`actor-`+t.pos),n.attr(`fill`,t.fill),n.attr(`stroke`,t.stroke),n.attr(`r`,t.r),n.class!==void 0&&n.attr(`class`,n.class),t.title!==void 0&&n.append(`title`).text(t.title),n},`drawCircle`),le=i(function(e,t){let n=t.text.replace(/<br\s*\/?>/gi,` `),r=e.append(`text`);r.attr(`x`,t.x),r.attr(`y`,t.y),r.attr(`class`,`legend`),r.style(`text-anchor`,t.anchor),t.class!==void 0&&r.attr(`class`,t.class);let i=r.append(`tspan`);return i.attr(`x`,t.x+t.textMargin*2),i.text(n),r},`drawText`),ue=i(function(e,t){function n(e,t,n,r,i){return e+`,`+t+` `+(e+n)+`,`+t+` `+(e+n)+`,`+(t+r-i)+` `+(e+n-i*1.2)+`,`+(t+r)+` `+e+`,`+(t+r)}i(n,`genPoints`);let r=e.append(`polygon`);r.attr(`points`,n(t.x,t.y,50,20,7)),r.attr(`class`,`labelBox`),t.y+=t.labelMargin,t.x+=.5*t.labelMargin,le(e,t)},`drawLabel`),de=i(function(e,t,n){let r=e.append(`g`),i=ge();i.x=t.x,i.y=t.y,i.fill=t.fill,i.width=n.width,i.height=n.height,i.class=`journey-section section-type-`+t.num,i.rx=3,i.ry=3,Z(r,i),_e(n)(t.text,r,i.x,i.y,i.width,i.height,{class:`journey-section section-type-`+t.num},n,t.colour)},`drawSection`),fe=-1,pe=i(function(e,t,n,r){let i=t.x+n.width/2,a=e.append(`g`);fe++,a.append(`line`).attr(`id`,r+`-task`+fe).attr(`x1`,i).attr(`y1`,t.y).attr(`x2`,i).attr(`y2`,450).attr(`class`,`task-line`).attr(`stroke-width`,`1px`).attr(`stroke-dasharray`,`4 2`).attr(`stroke`,`#666`),se(a,{cx:i,cy:300+(5-t.score)*30,score:t.score});let o=ge();o.x=t.x,o.y=t.y,o.fill=t.fill,o.width=n.width,o.height=n.height,o.class=`task task-type-`+t.num,o.rx=3,o.ry=3,Z(a,o),_e(n)(t.task,a,o.x,o.y,o.width,o.height,{class:`task`},n,t.colour)},`drawTask`),me=i(function(e,t){Z(e,{x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,class:`rect`}).lower()},`drawBackgroundRect`),he=i(function(){return{x:0,y:0,fill:void 0,"text-anchor":`start`,width:100,height:100,textMargin:0,rx:0,ry:0}},`getTextObj`),ge=i(function(){return{x:0,y:0,width:100,anchor:`start`,height:100,rx:0,ry:0}},`getNoteRect`),_e=(function(){function e(e,t,n,i,a,o,s,c){r(t.append(`text`).attr(`x`,n+a/2).attr(`y`,i+o/2+5).style(`font-color`,c).style(`text-anchor`,`middle`).text(e),s)}i(e,`byText`);function t(e,t,n,i,a,o,s,c,l){let{taskFontSize:u,taskFontFamily:d}=c,f=e.split(/<br\s*\/?>/gi);for(let e=0;e<f.length;e++){let c=e*u-u*(f.length-1)/2,p=t.append(`text`).attr(`x`,n+a/2).attr(`y`,i).attr(`fill`,l).style(`text-anchor`,`middle`).style(`font-size`,u).style(`font-family`,d);p.append(`tspan`).attr(`x`,n+a/2).attr(`dy`,c).text(f[e]),p.attr(`y`,i+o/2).attr(`dominant-baseline`,`central`).attr(`alignment-baseline`,`central`),r(p,s)}}i(t,`byTspan`);function n(e,n,i,a,o,s,c,l){let u=n.append(`switch`),d=u.append(`foreignObject`).attr(`x`,i).attr(`y`,a).attr(`width`,o).attr(`height`,s).attr(`position`,`fixed`).append(`xhtml:div`).style(`display`,`table`).style(`height`,`100%`).style(`width`,`100%`);d.append(`div`).attr(`class`,`label`).style(`display`,`table-cell`).style(`text-align`,`center`).style(`vertical-align`,`middle`).text(e),t(e,u,i,a,o,s,c,l),r(d,c)}i(n,`byFo`);function r(e,t){for(let n in t)n in t&&e.attr(n,t[n])}return i(r,`_setTextAttrs`),function(r){return r.textPlacement===`fo`?n:r.textPlacement===`old`?e:t}})(),ve=i(function(e,t){oe=0,fe=-1,e.append(`defs`).append(`marker`).attr(`id`,t+`-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 ye(e,t){e.each(function(){var e=h(this),n=e.text().split(/(\s+|<br>)/).reverse(),r,i=[],a=1.1,o=e.attr(`y`),s=parseFloat(e.attr(`dy`)),c=e.text(null).append(`tspan`).attr(`x`,0).attr(`y`,o).attr(`dy`,s+`em`);for(let s=0;s<n.length;s++)r=n[n.length-1-s],i.push(r),c.text(i.join(` `).trim()),(c.node().getComputedTextLength()>t||r===`<br>`)&&(i.pop(),c.text(i.join(` `).trim()),i=r===`<br>`?[``]:[r],c=e.append(`tspan`).attr(`x`,0).attr(`y`,o).attr(`dy`,a+`em`).text(r))})}i(ye,`wrap`);var be=i(function(e,t,n,r,i,a=!1){let{theme:o,look:s}=r,c=o?.includes(`redux`),l=n%(r?.themeVariables?.THEME_COLOR_LIMIT??12)-1,u=e.append(`g`);t.section=l,u.attr(`class`,(t.class?t.class+` `:``)+`timeline-node `+(`section-`+l));let d=u.append(`g`),f=u.append(`g`),p=f.append(`text`).text(t.descr).attr(`dy`,`1em`).attr(`alignment-baseline`,`middle`).attr(`dominant-baseline`,`middle`).attr(`text-anchor`,`middle`).call(ye,t.width).node().getBBox(),m=r.fontSize?.replace?r.fontSize.replace(`px`,``):r.fontSize;if(t.height=p.height+m*1.1*.5+t.padding,t.height=Math.max(t.height,t.maxHeight),t.width+=2*t.padding,f.attr(`transform`,`translate(`+t.width/2+`, `+t.padding/2+`)`),c&&f.attr(`transform`,`translate(${t.width/2}, ${a?t.padding/2+3:t.padding})`),Se(d,t,l,i,r),s===`neo`&&(u.attr(`data-look`,`neo`),c)){let t=o.includes(`dark`),n=e.node()?.ownerSVGElement??e.node(),r=h(n),i=r.attr(`id`)??``,a=i?`${i}-drop-shadow`:`drop-shadow`;if(r.select(`#${a}`).empty()){let e=r.select(`defs`);(e.empty()?r.append(`defs`):e).append(`filter`).attr(`id`,a).attr(`height`,`130%`).attr(`width`,`130%`).append(`feDropShadow`).attr(`dx`,`4`).attr(`dy`,`4`).attr(`stdDeviation`,0).attr(`flood-opacity`,t?`0.2`:`0.06`).attr(`flood-color`,t?`#FFFFFF`:`#000000`)}}return t},`drawNode`),xe=i(function(e,t,n){let r=e.append(`g`),i=r.append(`text`).text(t.descr).attr(`dy`,`1em`).attr(`alignment-baseline`,`middle`).attr(`dominant-baseline`,`middle`).attr(`text-anchor`,`middle`).call(ye,t.width).node().getBBox(),a=n.fontSize?.replace?n.fontSize.replace(`px`,``):n.fontSize;return r.remove(),i.height+a*1.1*.5+t.padding},`getVirtualNodeHeight`),Se=i(function(e,t,n,r,i){let{theme:a}=i,o=a?.includes(`redux`)?0:5,s=o>0?`M0 ${t.height-5} v${-t.height+10} q0,-${o},${o},-${o} h${t.width-10} q${o},0,${o},${o} v${t.height-5} H0 Z`:`M0 ${t.height-5} v${-(t.height-5)} h${t.width} v${t.height} H0 Z`;e.append(`path`).attr(`id`,r+`-node-`+oe++).attr(`class`,`node-bkg node-`+t.type).attr(`d`,s),a?.includes(`redux`)||e.append(`line`).attr(`class`,`node-line-`+n).attr(`x1`,0).attr(`y1`,t.height).attr(`x2`,t.width).attr(`y2`,t.height)},`defaultBkg`),Q={drawRect:Z,drawCircle:ce,drawSection:de,drawText:le,drawLabel:ue,drawTask:pe,drawBackgroundRect:me,getTextObj:he,getNoteRect:ge,initGraphics:ve,drawNode:be,getVirtualNodeHeight:xe},Ce=i(function(e,n,r,i){let a=x(),{look:o,theme:s,themeVariables:c}=a,{useGradient:l,gradientStart:u,gradientStop:d}=c,f=a.timeline?.leftMargin??50;w.debug(`timeline`,i.db);let p=a.securityLevel,m;p===`sandbox`&&(m=h(`#i`+n));let g=h(p===`sandbox`?m.nodes()[0].contentDocument.body:`body`).select(`#`+n);g.append(`g`);let _=i.db.getTasks(),v=i.db.getCommonDb().getDiagramTitle();w.debug(`task`,_),Q.initGraphics(g,n);let y=i.db.getSections();w.debug(`sections`,y);let b=0,S=0,C=0,T=0,E=50+f,D=50;T=50;let O=0,k=!0;y.forEach(function(e){let t={number:O,descr:e,section:O,width:150,padding:20,maxHeight:b},n=Q.getVirtualNodeHeight(g,t,a);w.debug(`sectionHeight before draw`,n),b=Math.max(b,n+20)});let A=0,j=0;w.debug(`tasks.length`,_.length);for(let[e,t]of _.entries()){let n={number:e,descr:t,section:t.section,width:150,padding:20,maxHeight:S},r=Q.getVirtualNodeHeight(g,n,a);w.debug(`taskHeight before draw`,r),S=Math.max(S,r+20),A=Math.max(A,t.events.length);let i=0;for(let e of t.events){let n={descr:e,section:t.section,number:t.section,width:150,padding:20,maxHeight:50};i+=Q.getVirtualNodeHeight(g,n,a)}t.events.length>0&&(i+=(t.events.length-1)*10),j=Math.max(j,i)}w.debug(`maxSectionHeight before draw`,b),w.debug(`maxTaskHeight before draw`,S),y&&y.length>0?y.forEach(e=>{let t=_.filter(t=>t.section===e),r={number:O,descr:e,section:O,width:200*Math.max(t.length,1)-50,padding:20,maxHeight:b};w.debug(`sectionNode`,r);let i=g.append(`g`),o=Q.drawNode(i,r,O,a,n);w.debug(`sectionNode output`,o),i.attr(`transform`,`translate(${E}, ${T})`),D+=b+50,t.length>0&&we(g,t,O,E,D,S,a,A,j,b,!1,n),E+=200*Math.max(t.length,1),D=T,O++}):(k=!1,we(g,_,O,E,D,S,a,A,j,b,!0,n));let M=g.node().getBBox();if(w.debug(`bounds`,M),v&&g.append(`text`).text(v).attr(`x`,o===`neo`?M.x*2+f:M.width/2-f).attr(`font-size`,`4ex`).attr(`font-weight`,`bold`).attr(`y`,20),C=k?b+S+150:S+100,g.append(`g`).attr(`class`,`lineWrapper`).append(`line`).attr(`x1`,f).attr(`y1`,C).attr(`x2`,M.width+3*f).attr(`y2`,C).attr(`stroke-width`,4).attr(`stroke`,`black`).attr(`marker-end`,`url(#${n}-arrowhead)`),o===`neo`&&l&&s!==`neutral`){let e=g.select(`defs`),t=(e.empty()?g.append(`defs`):e).append(`linearGradient`).attr(`id`,g.attr(`id`)+`-gradient`).attr(`gradientUnits`,`objectBoundingBox`).attr(`x1`,`0%`).attr(`y1`,`0%`).attr(`x2`,`100%`).attr(`y2`,`0%`);t.append(`stop`).attr(`offset`,`0%`).attr(`stop-color`,u).attr(`stop-opacity`,1),t.append(`stop`).attr(`offset`,`100%`).attr(`stop-color`,d).attr(`stop-opacity`,1)}t(void 0,g,a.timeline?.padding??50,a.timeline?.useMaxWidth??!1)},`draw`),we=i(function(e,t,n,r,i,a,o,s,c,l,u,d){for(let s of t){let t={descr:s.task,section:n,number:n,width:150,padding:20,maxHeight:a};w.debug(`taskNode`,t);let l=e.append(`g`).attr(`class`,`taskWrapper`),f=Q.drawNode(l,t,n,o,d).height;if(w.debug(`taskHeight after draw`,f),l.attr(`transform`,`translate(${r}, ${i})`),a=Math.max(a,f),s.events){let t=e.append(`g`).attr(`class`,`lineWrapper`),l=a;i+=100,l+=Te(e,s.events,n,r,i,o,d),i-=100,t.append(`line`).attr(`x1`,r+95).attr(`y1`,i+a).attr(`x2`,r+95).attr(`y2`,i+a+100+c+100).attr(`stroke-width`,2).attr(`stroke`,`black`).attr(`marker-end`,`url(#${d}-arrowhead)`).attr(`stroke-dasharray`,`5,5`)}r+=200,u&&!o.timeline?.disableMulticolor&&n++}i-=10},`drawTasks`),Te=i(function(e,t,n,r,i,a,o){let s=0,c=i;i+=100;for(let c of t){let t={descr:c,section:n,number:n,width:150,padding:20,maxHeight:50};w.debug(`eventNode`,t);let l=e.append(`g`).attr(`class`,`eventWrapper`),u=Q.drawNode(l,t,n,a,o,!0).height;s+=u,l.attr(`transform`,`translate(${r}, ${i})`),i=i+10+u}return i=c,s},`drawEvents`),Ee={setConf:i(()=>{},`setConf`),draw:Ce},De=200,$=5,Oe=De+$*2,ke=De+100,Ae=ke+$*2,je=10,Me=0,Ne=20,Pe=20,Fe=30,Ie=50,Le=i(function(e,n,r,i){let a=x(),o=a.timeline?.leftMargin??50;w.debug(`timeline`,i.db);let s=D(n);s.append(`g`);let c=i.db.getTasks(),l=i.db.getCommonDb().getDiagramTitle();w.debug(`task`,c),Q.initGraphics(s);let u=i.db.getSections();w.debug(`sections`,u);let d=0,f=0,p=50+o,m=50,h=m,g=p,_=Oe+Pe,v=Ae+Ie,y=g+_,b=0,C=u&&u.length>0,T=C?y:p+_,E=Math.max(50,_+v-$*2);u.forEach(function(e){let t={number:b,descr:e,section:b,width:E,padding:$,maxHeight:d},n=Q.getVirtualNodeHeight(s,t,a);w.debug(`sectionHeight before draw`,n),d=Math.max(d,n)});let O=0;w.debug(`tasks.length`,c.length);for(let[e,t]of c.entries()){let n={number:e,descr:t,section:t.section,width:De,padding:$,maxHeight:f},r=Q.getVirtualNodeHeight(s,n,a);w.debug(`taskHeight before draw`,r),f=Math.max(f,r);let i=0;for(let e of t.events){let n={descr:e,section:t.section,number:t.section,width:ke,padding:$,maxHeight:50};i+=Q.getVirtualNodeHeight(s,n,a)}t.events.length>0&&(i+=(t.events.length-1)*je),O=Math.max(O,i)+Me}w.debug(`maxSectionHeight before draw`,d),w.debug(`maxTaskHeight before draw`,f);let k=Math.max(f,O)+Fe;C?u.forEach(e=>{let t=c.filter(t=>t.section===e),n={number:b,descr:e,section:b,width:E,padding:$,maxHeight:d};w.debug(`sectionNode`,n);let r=s.append(`g`),i=Q.drawNode(r,n,b,a);w.debug(`sectionNode output`,i);let o=T-_;r.attr(`transform`,`translate(${o}, ${m})`);let l=m+i.height+Ne;t.length>0&&Re(s,t,b,T,l,f,a,k,!1);let u=t.length,p=i.height+Ne+k*Math.max(u,1)-(u>0?Fe*2:0);m+=p,b++}):Re(s,c,b,T,m,f,a,k,!0);let A=s.node()?.getBBox();if(!A)throw Error(`bbox not found`);if(w.debug(`bounds`,A),l){if(s.append(`text`).text(l).attr(`x`,A.width/2-o).attr(`font-size`,`4ex`).attr(`font-weight`,`bold`).attr(`y`,20),A=s.node()?.getBBox(),!A)throw Error(`bbox not found`);w.debug(`bounds after title`,A)}let[j]=S(a.fontSize),M=(j??16)*2,ee=(j??16)*.5+20,N=s.append(`g`).attr(`class`,`lineWrapper`);N.append(`line`).attr(`x1`,T).attr(`y1`,h-M).attr(`x2`,T).attr(`y2`,A.y+A.height+ee).attr(`stroke-width`,4).attr(`stroke`,`black`).attr(`marker-end`,`url(#arrowhead)`),N.lower(),t(void 0,s,a.timeline?.padding??50,a.timeline?.useMaxWidth??!1)},`draw`),Re=i(function(e,t,n,r,i,a,o,s,c){for(let l of t){let t={descr:l.task,section:n,number:n,width:De,padding:$,maxHeight:a};w.debug(`taskNode`,t);let u=e.append(`g`).attr(`class`,`taskWrapper`),d=Q.drawNode(u,t,n,o),f=d.height;w.debug(`taskHeight after draw`,f);let p=r-Pe-d.width;if(u.attr(`transform`,`translate(${p}, ${i})`),a=Math.max(a,f),l.events&&l.events.length>0){let t=i,a=r+Ie;ze(e,l.events,n,r,a,t,o)}i+=s,c&&!o.timeline?.disableMulticolor&&n++}},`drawTasks`),ze=i(function(e,t,n,r,i,a,o){let s=a;for(let a of t){let t={descr:a,section:n,number:n,width:ke,padding:$,maxHeight:0};w.debug(`eventNode`,t);let c=e.append(`g`).attr(`class`,`eventWrapper`),l=Q.drawNode(c,t,n,o).height;c.attr(`transform`,`translate(${i}, ${s})`);let u=e.append(`g`).attr(`class`,`lineWrapper`),d=s+l/2;u.append(`line`).attr(`x1`,r).attr(`y1`,d).attr(`x2`,i).attr(`y2`,d).attr(`stroke-width`,2).attr(`stroke`,`black`).attr(`marker-end`,`url(#arrowhead)`).attr(`stroke-dasharray`,`5,5`),s=s+l+je}return s-a},`drawEvents`),Be={setConf:i(()=>{},`setConf`),draw:Le},Ve=i(e=>{let{theme:t}=y(),n=t?.includes(`dark`),r=t?.includes(`color`),i=e.svgId?.replace(/^#/,``)??``,a=i?`url(#${i}-drop-shadow)`:e.dropShadow??`none`,o=``;for(let t=0;t<e.THEME_COLOR_LIMIT;t++){let i=`${17-3*t}`,s=r?e.borderColorArray[t]:e.mainBkg,c=r?e.borderColorArray[t]:e.nodeBorder;o+=`
7
+ .section-${t-1} rect,
8
+ .section-${t-1} path,
9
+ .section-${t-1} circle {
10
+ fill: ${n&&r?e.mainBkg:s};
11
+ stroke: ${c};
12
+ stroke-width: ${e.strokeWidth};
13
+ filter: ${a};
14
+ }
15
+
16
+ .section-${t-1} text {
17
+ fill: ${e.nodeBorder};
18
+ font-weight: ${e.fontWeight}
19
+ }
20
+
21
+ .node-icon-${t-1} {
22
+ font-size: 40px;
23
+ color: ${e[`cScaleLabel`+t]};
24
+ }
25
+
26
+ .section-edge-${t-1} {
27
+ stroke: ${e[`cScale`+t]};
28
+ }
29
+
30
+ .edge-depth-${t-1} {
31
+ stroke-width: ${i};
32
+ }
33
+
34
+ .section-${t-1} line {
35
+ stroke: ${e[`cScaleInv`+t]};
36
+ stroke-width: 3;
37
+ }
38
+
39
+ .lineWrapper line {
40
+ stroke: ${e.nodeBorder};
41
+ stroke-width:${e.strokeWidth}
42
+ }
43
+
44
+ .disabled,
45
+ .disabled circle,
46
+ .disabled text {
47
+ fill: ${e.tertiaryColor??`lightgray`};
48
+ }
49
+
50
+ .disabled text {
51
+ fill: ${e.clusterBorder??`#efefef`};
52
+ }
53
+ `}return o},`genReduxSections`),He=i(e=>{let t=``;for(let t=0;t<e.THEME_COLOR_LIMIT;t++)e[`lineColor`+t]=e[`lineColor`+t]||e[`cScaleInv`+t],m(e[`lineColor`+t])?e[`lineColor`+t]=l(e[`lineColor`+t],20):e[`lineColor`+t]=o(e[`lineColor`+t],20);for(let n=0;n<e.THEME_COLOR_LIMIT;n++){let r=``+(17-3*n);t+=`
54
+ .section-${n-1} rect, .section-${n-1} path, .section-${n-1} circle, .section-${n-1} path {
55
+ fill: ${e[`cScale`+n]};
56
+ }
57
+ .section-${n-1} text {
58
+ fill: ${e[`cScaleLabel`+n]};
59
+ }
60
+ .node-icon-${n-1} {
61
+ font-size: 40px;
62
+ color: ${e[`cScaleLabel`+n]};
63
+ }
64
+ .section-edge-${n-1}{
65
+ stroke: ${e[`cScale`+n]};
66
+ }
67
+ .edge-depth-${n-1}{
68
+ stroke-width: ${r};
69
+ }
70
+ .section-${n-1} line {
71
+ stroke: ${e[`cScaleInv`+n]} ;
72
+ stroke-width: 3;
73
+ }
74
+
75
+ .lineWrapper line{
76
+ stroke: ${e[`cScaleLabel`+n]} ;
77
+ }
78
+
79
+ .disabled, .disabled circle, .disabled text {
80
+ fill: ${e.tertiaryColor??`lightgray`};
81
+ }
82
+ .disabled text {
83
+ fill: ${e.clusterBorder??`#efefef`};
84
+ }
85
+ `}return t},`genSections`),Ue={db:F,renderer:{setConf:i(()=>{},`setConf`),draw:i((e,t,n,r)=>(r?.db?.getDirection?.()??`LR`)===`TD`?Be.draw(e,t,n,r):Ee.draw(e,t,n,r),`draw`)},parser:ne,styles:i(e=>{let{theme:t}=y(),n=t?.includes(`redux`),r=t===`neutral`,i=e.svgId?.replace(/^#/,``)??``,a=``;if(e.useGradient&&i&&e.THEME_COLOR_LIMIT&&!r)for(let t=0;t<e.THEME_COLOR_LIMIT;t++)a+=`
86
+ .section-${t-1}[data-look="neo"] rect,
87
+ .section-${t-1}[data-look="neo"] path,
88
+ .section-${t-1}[data-look="neo"] circle {
89
+ fill: ${e.mainBkg};
90
+ stroke: url(#${i}-gradient);
91
+ stroke-width: 2;
92
+ }
93
+ .section-${t-1}[data-look="neo"] line {
94
+ stroke: url(#${i}-gradient);
95
+ stroke-width: 2;
96
+ }`;return`
97
+ .edge {
98
+ stroke-width: 3;
99
+ }
100
+ ${n?Ve(e):He(e)}
101
+ ${a}
102
+ .section-root rect, .section-root path, .section-root circle {
103
+ fill: ${e.git0};
104
+ }
105
+ .section-root text {
106
+ fill: ${e.gitBranchLabel0};
107
+ }
108
+ .icon-container {
109
+ height:100%;
110
+ display: flex;
111
+ justify-content: center;
112
+ align-items: center;
113
+ }
114
+ .edge {
115
+ fill: none;
116
+ }
117
+ .eventWrapper {
118
+ filter: brightness(120%);
119
+ }
120
+ `},`getStyles`)};export{Ue as diagram};
@@ -0,0 +1 @@
1
+ var e={};export{e as diagram};
@@ -0,0 +1 @@
1
+ var e={};export{e as diagram};
@@ -0,0 +1 @@
1
+ var e={};export{e as diagram};
@@ -0,0 +1,15 @@
1
+ <!doctype html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8" />
5
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
6
+ <title>fabrika lanes</title>
7
+ <script type="module" crossorigin src="/assets/index-Obj05Jex.js"></script>
8
+ <link rel="modulepreload" crossorigin href="/assets/chunk-NSK5VX7P-CBCyTZMs.js">
9
+ <link rel="modulepreload" crossorigin href="/assets/path-fybaL0A-.js">
10
+ <link rel="stylesheet" crossorigin href="/assets/index-sP-6AD57.css">
11
+ </head>
12
+ <body>
13
+ <div id="root"></div>
14
+ </body>
15
+ </html>