@tickernelz/paperclip-pro-ui 2026.1006.0 → 2026.1006.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/{AgentAvatar-D6FB0fuO.js → AgentAvatar-lnkDMHMh.js} +1 -1
- package/dist/assets/AgentIdentity-Cpb2VddX.js +1 -0
- package/dist/assets/Agents.production-pGUwDC7r.js +2 -0
- package/dist/assets/CompanyActivity.production-ZGgxxisV.js +1 -0
- package/dist/assets/{CompanyExport-BX6imgeR.js → CompanyExport-GeY3_TXI.js} +4 -4
- package/dist/assets/CompanySkills.production-BN9MKK7o.js +10 -0
- package/dist/assets/{Costs.production-CfN-y0WT.js → Costs.production-B4oABBSg.js} +1 -1
- package/dist/assets/EmptyState-CqqJOoXs.js +1 -0
- package/dist/assets/MarkdownBody-CEnh9lVM.js +16 -0
- package/dist/assets/{MarkdownEditor-BGjNjqa2.js → MarkdownEditor-seU_oAfy.js} +38 -38
- package/dist/assets/{OrgChart.production-BQUvMu4Q.js → OrgChart.production-JOfw43w3.js} +1 -1
- package/dist/assets/{PageSkeleton-CgAHzFTc.js → PageSkeleton-C9WV_Qyq.js} +1 -1
- package/dist/assets/RoutineDetail.production-A472lDXj.js +1 -0
- package/dist/assets/RoutineRunVariablesDialog-yR5DLc68.js +5 -0
- package/dist/assets/Routines.production-LvomJjv8.js +1 -0
- package/dist/assets/{SidebarContext-C7OpDbXX.js → SidebarContext-Dpto7Kf2.js} +1 -1
- package/dist/assets/StatusIcon-BtBa0xK_.js +1 -0
- package/dist/assets/{abnfDiagram-VCTEODGH-wiE_K2ku.js → abnfDiagram-VCTEODGH-CElI5h6o.js} +1 -1
- package/dist/assets/agent-avatar-url-270oGkoO.js +92 -0
- package/dist/assets/agents-BlxRXAz3.js +1 -0
- package/dist/assets/{architectureDiagram-5GKGNRK7-BkhBoP5_.js → architectureDiagram-5GKGNRK7-DUBpjYei.js} +1 -1
- package/dist/assets/{badge-dhlY-PQY.js → badge-D0Ti-OuU.js} +1 -1
- package/dist/assets/{blockDiagram-I7D4REHJ-fyVn7r-9.js → blockDiagram-I7D4REHJ-CD5_3VhC.js} +1 -1
- package/dist/assets/bot-CGOpwPIZ.js +1 -0
- package/dist/assets/boxes-xBZV8xLw.js +41 -0
- package/dist/assets/button-DLWREze0.js +1 -0
- package/dist/assets/{c4Diagram-7LVT6UL2-BqC3qTZS.js → c4Diagram-7LVT6UL2-CSASNZeo.js} +1 -1
- package/dist/assets/{card-DmOCHnV1.js → card-Qk8smcrQ.js} +1 -1
- package/dist/assets/channel-CtmRoUn0.js +1 -0
- package/dist/assets/check-5Tuqm2aI.js +1 -0
- package/dist/assets/checkbox-SNvdBfci.js +1 -0
- package/dist/assets/chevron-down-ZMnYk9j3.js +1 -0
- package/dist/assets/chevron-right-Dv6dHZgu.js +1 -0
- package/dist/assets/{chunk-4HAMMTFA-CGGd_Pxz.js → chunk-4HAMMTFA-Duh1dbZg.js} +1 -1
- package/dist/assets/{chunk-75Z2AOVW-BaPl5WA6.js → chunk-75Z2AOVW-CTyOxDW3.js} +1 -1
- package/dist/assets/{chunk-DU6HZSFF-2P5iNHqg.js → chunk-DU6HZSFF-mLZ_DAj9.js} +17 -17
- package/dist/assets/{chunk-F27PBJKO-Ci7GmRgM.js → chunk-F27PBJKO-BI6MjXNA.js} +1 -1
- package/dist/assets/{chunk-GMAD6QVW-BfvaaEBW.js → chunk-GMAD6QVW-Vk29EsOn.js} +1 -1
- package/dist/assets/{chunk-GVQU2GXP-Cwp_Wpj2.js → chunk-GVQU2GXP-D5bNpR4K.js} +1 -1
- package/dist/assets/{chunk-IMKFNOWR-BjXu-u1C.js → chunk-IMKFNOWR-DlfITCc_.js} +1 -1
- package/dist/assets/{chunk-L3NEJ4N5-JUd1UqX1.js → chunk-L3NEJ4N5-GADujcju.js} +1 -1
- package/dist/assets/{chunk-OSK3NFVY-DlrxddG-.js → chunk-OSK3NFVY-BfvIkdmA.js} +1 -1
- package/dist/assets/{chunk-P2QGCYS3-CjqEi3mx.js → chunk-P2QGCYS3-DD1uZyrA.js} +1 -1
- package/dist/assets/{chunk-POPQ4Y6H-BytmIqFc.js → chunk-POPQ4Y6H-B0MtQqlF.js} +1 -1
- package/dist/assets/{chunk-PWAF6VOD-CR3rNBNB.js → chunk-PWAF6VOD-DHqPPKbd.js} +1 -1
- package/dist/assets/{chunk-SHT3W25Y-B1Klag0Z.js → chunk-SHT3W25Y-CorllSkN.js} +1 -1
- package/dist/assets/{chunk-SVP7TREG-A4BO1_5v.js → chunk-SVP7TREG-BNLl-Ok9.js} +1 -1
- package/dist/assets/{chunk-TICWLB2K-B4lRXha0.js → chunk-TICWLB2K-BWKPkn9E.js} +1 -1
- package/dist/assets/classDiagram-ZZMXUADV-DDCCAOna.js +1 -0
- package/dist/assets/classDiagram-v2-VYDZK3BY-DDCCAOna.js +1 -0
- package/dist/assets/clipboard-BPoFQAy2.js +1 -0
- package/dist/assets/{company-members-BCWB1iQ_.js → company-members-BKdmkDTe.js} +1 -1
- package/dist/assets/{cynefinDiagram-5FMLGOSQ-Qp2NNXUx.js → cynefinDiagram-5FMLGOSQ-CGZNoppH.js} +1 -1
- package/dist/assets/{dagre-GXQ25YYZ-C1bu-Sbk.js → dagre-GXQ25YYZ-D0kXJo1b.js} +1 -1
- package/dist/assets/{definition-B0A7Y2Kz.js → definition-DTQCzcR3.js} +1 -1
- package/dist/assets/{diagram-S7CK7UJ4-D0cqRe3j.js → diagram-S7CK7UJ4-BMOu70sn.js} +1 -1
- package/dist/assets/{diagram-UQ7AKVKN-DdEgR6LR.js → diagram-UQ7AKVKN-dAmEsEgr.js} +1 -1
- package/dist/assets/{diagram-VSXAHHWV-B_APewr5.js → diagram-VSXAHHWV-zD92DhH2.js} +1 -1
- package/dist/assets/{diagram-VX7I27RA-B2quR8-z.js → diagram-VX7I27RA-C6F4NzHd.js} +1 -1
- package/dist/assets/{diagram-Z3DM3KII-BpQRCt5N.js → diagram-Z3DM3KII-BxGljaP6.js} +1 -1
- package/dist/assets/{dist-CJ2IjArq.js → dist-BzPgY729.js} +1 -1
- package/dist/assets/{dist-C0aY0Z9q.js → dist-DvMfIbJ9.js} +1 -1
- package/dist/assets/{ebnfDiagram-PWID7BFC-C9x73jSZ.js → ebnfDiagram-PWID7BFC-DFhVsGcz.js} +1 -1
- package/dist/assets/{environments-DgYKMH7B.js → environments-BNSxsEsE.js} +1 -1
- package/dist/assets/{erDiagram-RLTQ6QDP-Dkp7z94L.js → erDiagram-RLTQ6QDP-CExzemcW.js} +1 -1
- package/dist/assets/external-link-rfTzFbSd.js +1 -0
- package/dist/assets/file-text-dks7zWRZ.js +1 -0
- package/dist/assets/flowDiagram-HODETNUW-DEjrdPyS.js +1 -0
- package/dist/assets/{ganttDiagram-EL5Y4UJY-CJs7mNJX.js → ganttDiagram-EL5Y4UJY-DStsnXzo.js} +1 -1
- package/dist/assets/{gitGraphDiagram-WWUBYQGX-ByeD7NPE.js → gitGraphDiagram-WWUBYQGX-BejeRC3-.js} +1 -1
- package/dist/assets/health-DsHGAxc8.js +1 -0
- package/dist/assets/heartbeats-DWUL5tSL.js +1 -0
- package/dist/assets/index-Cx882YTU.css +1 -0
- package/dist/assets/index-DTMtHDxt.js +779 -0
- package/dist/assets/{infoDiagram-27XIBGKW-B6sR9qVK.js → infoDiagram-27XIBGKW-Cch-IRh-.js} +1 -1
- package/dist/assets/{input-BYys7uph.js → input-BWYuMr4z.js} +1 -1
- package/dist/assets/{ishikawaDiagram-5VMMS53U-HFQ3gYGN.js → ishikawaDiagram-5VMMS53U-DDvnGaeJ.js} +1 -1
- package/dist/assets/{journeyDiagram-3NMN7TZE-BtoNErTz.js → journeyDiagram-3NMN7TZE-rmjbLNr7.js} +1 -1
- package/dist/assets/{kanban-definition-UXKFOSKX-Y55yoRj4.js → kanban-definition-UXKFOSKX-hvO2tDhG.js} +1 -1
- package/dist/assets/label-TkPoSJhK.js +5 -0
- package/dist/assets/{line-CJEZO7lL.js → line-Dk_ouzM8.js} +1 -1
- package/dist/assets/loader-circle-DiqjntTX.js +1 -0
- package/dist/assets/mention-chips-B_zVTnHY.js +17 -0
- package/dist/assets/{mermaid.core-G_BSi0G0.js → mermaid.core-Be3XJK9z.js} +4 -4
- package/dist/assets/{mindmap-definition-YA3MSWOX-BnlANYwV.js → mindmap-definition-YA3MSWOX-Dislw6JU.js} +1 -1
- package/dist/assets/octagon-alert-HfSAYnSC.js +1 -0
- package/dist/assets/{pegDiagram-XKGWAZYB-CHhCzuLt.js → pegDiagram-XKGWAZYB-CizC38c5.js} +1 -1
- package/dist/assets/{pieDiagram-E7YTZNPT-CEGI1j0Q.js → pieDiagram-E7YTZNPT-DvHDuZK1.js} +1 -1
- package/dist/assets/{quadrantDiagram-AXDQQJYC-BfVC-A1t.js → quadrantDiagram-AXDQQJYC-DTAvsUNT.js} +1 -1
- package/dist/assets/{railroadDiagram-O6MQD6OU-Bwh6snZb.js → railroadDiagram-O6MQD6OU-DGlhxzAn.js} +1 -1
- package/dist/assets/{requirementDiagram-BXWQKSXE-NEvTOdsw.js → requirementDiagram-BXWQKSXE-BzY8WPIy.js} +1 -1
- package/dist/assets/rotate-ccw-C9ZF1aqD.js +1 -0
- package/dist/assets/router-BC2Duaf5.js +15 -0
- package/dist/assets/{sankeyDiagram-P5KCCOFB-AvKb1lr-.js → sankeyDiagram-P5KCCOFB-Be3A08ra.js} +1 -1
- package/dist/assets/save-yPNdO-t7.js +1 -0
- package/dist/assets/select-DsMS_Sad.js +1 -0
- package/dist/assets/{sequenceDiagram-WJ2MYXX4-BP0QZnHN.js → sequenceDiagram-WJ2MYXX4-BJuFaGQ8.js} +1 -1
- package/dist/assets/sheet-CFbmpBhA.js +1 -0
- package/dist/assets/skeleton-DtakB_VA.js +1 -0
- package/dist/assets/{stateDiagram-D77RDMKH-Ce0Wj7yz.js → stateDiagram-D77RDMKH-BWwUdBob.js} +1 -1
- package/dist/assets/stateDiagram-v2-MP3YSRHH-P6gPsRNv.js +1 -0
- package/dist/assets/{swimlanes-42K2YHIH-CX7zPtNU.js → swimlanes-42K2YHIH-CMos3UkM.js} +1 -1
- package/dist/assets/swimlanesDiagram-VR7AAH4N-BjRksHrL.js +8 -0
- package/dist/assets/{tabs-BTWtgE_e.js → tabs-DCzsHrwQ.js} +1 -1
- package/dist/assets/{timeline-definition-24CTP7MA-Bw21rjHm.js → timeline-definition-24CTP7MA-5RQLEOvu.js} +1 -1
- package/dist/assets/triangle-alert-CrLKyTUa.js +1 -0
- package/dist/assets/use-adapter-capabilities-CVwppNII.js +1 -0
- package/dist/assets/useHiddenSettings-COOnS4sa.js +1 -0
- package/dist/assets/{vennDiagram-4TSXK5OY-BuncstTm.js → vennDiagram-4TSXK5OY-BZm-uDwq.js} +1 -1
- package/dist/assets/{wardleyDiagram-VM6X3IG4-DOHY7xcd.js → wardleyDiagram-VM6X3IG4-Y317P_uV.js} +1 -1
- package/dist/assets/{xychartDiagram-S5SC5T6Z-qOWxoNte.js → xychartDiagram-S5SC5T6Z-DIOiLKNy.js} +1 -1
- package/dist/brands/apps/browser-use.svg +6 -0
- package/dist/brands/apps/cognee.png +0 -0
- package/dist/brands/apps/connection-pool.svg +1 -0
- package/dist/brands/apps/honcho.svg +33 -0
- package/dist/brands/apps/manifest.json +45 -0
- package/dist/brands/apps/neon.png +0 -0
- package/dist/brands/apps/supermemory.png +0 -0
- package/dist/brands/apps/zep.png +0 -0
- package/dist/index.html +108 -46
- package/dist/sw.js +17 -3
- package/package.json +1 -1
- package/dist/assets/AgentIdentity-DjRFrNXO.js +0 -1
- package/dist/assets/Agents.production-BRdUzpF6.js +0 -2
- package/dist/assets/CompanyActivity.production-dD0_52Wu.js +0 -1
- package/dist/assets/CompanySkills.production-DGbZb0AI.js +0 -10
- package/dist/assets/EmptyState-C4lXde64.js +0 -1
- package/dist/assets/MarkdownBody--RIJLCMA.js +0 -16
- package/dist/assets/RoutineDetail.production-Bsf338vO.js +0 -1
- package/dist/assets/RoutineRunVariablesDialog-DP1tcp7X.js +0 -5
- package/dist/assets/Routines.production-BGR6_EI9.js +0 -1
- package/dist/assets/StatusIcon-VpulllGv.js +0 -1
- package/dist/assets/agents-BP_X6XtR.js +0 -1
- package/dist/assets/bot-LA1HiarN.js +0 -1
- package/dist/assets/button-C4DIaoFo.js +0 -1
- package/dist/assets/channel-0B5iAV5A.js +0 -1
- package/dist/assets/check-CYgpX7OA.js +0 -1
- package/dist/assets/checkbox-CKFq766c.js +0 -1
- package/dist/assets/chevron-down-BU9R1R4F.js +0 -1
- package/dist/assets/chevron-right-BmxFehfD.js +0 -1
- package/dist/assets/classDiagram-ZZMXUADV-icHQAbF4.js +0 -1
- package/dist/assets/classDiagram-v2-VYDZK3BY-icHQAbF4.js +0 -1
- package/dist/assets/clipboard-DMxSLEQ6.js +0 -1
- package/dist/assets/createLucideIcon-B54j0Sae.js +0 -92
- package/dist/assets/external-link-Bi7tqIF1.js +0 -1
- package/dist/assets/file-text-MN4vnW0c.js +0 -1
- package/dist/assets/flowDiagram-HODETNUW-CDvpIOlT.js +0 -1
- package/dist/assets/health-Cu3NB6y9.js +0 -1
- package/dist/assets/heartbeats-Bjbu1IYj.js +0 -1
- package/dist/assets/index-DRWrweZf.js +0 -737
- package/dist/assets/index-L45mDhY7.css +0 -1
- package/dist/assets/label-_X3u-iq9.js +0 -5
- package/dist/assets/loader-circle-D6KkdGol.js +0 -1
- package/dist/assets/mention-chips-B6d93utO.js +0 -17
- package/dist/assets/octagon-alert-BgFrORnN.js +0 -1
- package/dist/assets/rotate-ccw-DP6ACo04.js +0 -1
- package/dist/assets/router-D63KhMWd.js +0 -15
- package/dist/assets/save-C2ttL8uR.js +0 -1
- package/dist/assets/select-DrSnWvLC.js +0 -1
- package/dist/assets/sheet-CdR6tW8E.js +0 -1
- package/dist/assets/skeleton-C0oo8l5C.js +0 -1
- package/dist/assets/stateDiagram-v2-MP3YSRHH-CREL-f_f.js +0 -1
- package/dist/assets/swimlanesDiagram-VR7AAH4N-B22pD4D6.js +0 -8
- package/dist/assets/triangle-alert-BhrZ1ChK.js +0 -1
- package/dist/assets/use-adapter-capabilities-DHgLdZ1V.js +0 -1
- package/dist/assets/useHiddenSettings-C5RuvqCg.js +0 -1
- package/dist/assets/zap-md9c-4bv.js +0 -41
|
@@ -1 +1 @@
|
|
|
1
|
-
import{n as i}from"./chunk-Y2CYZVJY-OvsAdhaO.js";import{p as n}from"./src-Bssc388C.js";import{j as d}from"./chunk-DU6HZSFF-
|
|
1
|
+
import{n as i}from"./chunk-Y2CYZVJY-OvsAdhaO.js";import{p as n}from"./src-Bssc388C.js";import{j as d}from"./chunk-DU6HZSFF-mLZ_DAj9.js";import{t as p}from"./dist-Cj4C2HPs.js";var o=p(),x=i((s,t)=>{const e=s.append("rect");if(e.attr("x",t.x),e.attr("y",t.y),e.attr("fill",t.fill),e.attr("stroke",t.stroke),e.attr("width",t.width),e.attr("height",t.height),t.name&&e.attr("name",t.name),t.rx&&e.attr("rx",t.rx),t.ry&&e.attr("ry",t.ry),t.attrs!==void 0)for(const r in t.attrs)e.attr(r,t.attrs[r]);return t.class&&e.attr("class",t.class),e},"drawRect"),g=i((s,t)=>{x(s,{x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,stroke:t.stroke,class:"rect"}).lower()},"drawBackgroundRect"),h=i((s,t)=>{const e=t.text.replace(d," "),r=s.append("text");r.attr("x",t.x),r.attr("y",t.y),r.attr("class","legend"),r.style("text-anchor",t.anchor),t.class&&r.attr("class",t.class);const a=r.append("tspan");return a.attr("x",t.x+t.textMargin*2),a.text(e),r},"drawText"),w=i((s,t,e,r)=>{const a=s.append("image");a.attr("x",t),a.attr("y",e);const l=(0,o.sanitizeUrl)(r);a.attr("xlink:href",l)},"drawImage"),k=i((s,t,e,r)=>{const a=s.append("use");a.attr("x",t),a.attr("y",e);const l=(0,o.sanitizeUrl)(r);a.attr("xlink:href",`#${l}`)},"drawEmbeddedImage"),v=i(()=>({x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}),"getNoteRect"),E=i(()=>({x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0}),"getTextObj"),T=i(()=>{let s=n(".mermaidTooltip");return s.empty()&&(s=n("body").append("div").attr("class","mermaidTooltip").style("opacity",0).style("position","absolute").style("text-align","center").style("max-width","200px").style("padding","2px").style("font-size","12px").style("background","#ffffde").style("border","1px solid #333").style("border-radius","2px").style("pointer-events","none").style("z-index","100")),s},"createTooltip");export{x as a,E as c,w as i,g as n,h as o,k as r,v as s,T as t};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var Xe=Object.defineProperty;var u=(r,e)=>Xe(r,"name",{value:e,configurable:!0});import{i as ye,t as ve}from"./rolldown-runtime-ZpX3ckPj.js";import{n as m}from"./chunk-Y2CYZVJY-OvsAdhaO.js";import{m as $e,p as A}from"./src-Bssc388C.js";import{A as Te,F as Ke,b as Ve,s as Ye,z as Se}from"./chunk-DU6HZSFF-
|
|
1
|
+
var Xe=Object.defineProperty;var u=(r,e)=>Xe(r,"name",{value:e,configurable:!0});import{i as ye,t as ve}from"./rolldown-runtime-ZpX3ckPj.js";import{n as m}from"./chunk-Y2CYZVJY-OvsAdhaO.js";import{m as $e,p as A}from"./src-Bssc388C.js";import{A as Te,F as Ke,b as Ve,s as Ye,z as Se}from"./chunk-DU6HZSFF-mLZ_DAj9.js";import{a as he}from"./chunk-75Z2AOVW-CTyOxDW3.js";import{n as Je,t as et}from"./chunk-PWAF6VOD-DHqPPKbd.js";var tt=ve(((r,e)=>{(function(n){"use strict";var s=n.requestAnimationFrame||n.webkitRequestAnimationFrame||n.mozRequestAnimationFrame||n.msRequestAnimationFrame||function(c){return setTimeout(c,16)};function t(){var c=this;c.reads=[],c.writes=[],c.raf=s.bind(n)}u(t,"FastDom"),t.prototype={constructor:t,runTasks:u(function(c){for(var p;p=c.shift();)p()},"runTasks"),measure:u(function(c,p){var h=p?c.bind(p):c;return this.reads.push(h),a(this),h},"measure"),mutate:u(function(c,p){var h=p?c.bind(p):c;return this.writes.push(h),a(this),h},"mutate"),clear:u(function(c){return l(this.reads,c)||l(this.writes,c)},"clear"),extend:u(function(c){if(typeof c!="object")throw new Error("expected object");var p=Object.create(this);return o(p,c),p.fastdom=this,p.initialize&&p.initialize(),p},"extend"),catch:null};function a(c){c.scheduled||(c.scheduled=!0,c.raf(i.bind(null,c)))}u(a,"scheduleFlush");function i(c){var p=c.writes,h=c.reads,f;try{h.length,c.runTasks(h),p.length,c.runTasks(p)}catch(k){f=k}if(c.scheduled=!1,(h.length||p.length)&&a(c),f)if(f.message,c.catch)c.catch(f);else throw f}u(i,"flush");function l(c,p){var h=c.indexOf(p);return!!~h&&!!c.splice(h,1)}u(l,"remove");function o(c,p){for(var h in p)p.hasOwnProperty(h)&&(c[h]=p[h])}u(o,"mixin");var g=n.fastdom=n.fastdom||new t;typeof define=="function"?define(function(){return g}):typeof e=="object"&&(e.exports=g)})(typeof window<"u"?window:typeof r<"u"?r:globalThis)})),rt=ve(((r,e)=>{(function(){var n={initialize:u(function(){this._tasks=new Map},"initialize"),mutate:u(function(t,a){return s(this,"mutate",t,a)},"mutate"),measure:u(function(t,a){return s(this,"measure",t,a)},"measure"),clear:u(function(t){var a=this._tasks,i=a.get(t);this.fastdom.clear(i),a.delete(t)},"clear")};function s(t,a,i,l){var o=t._tasks,g=t.fastdom,c,p=new Promise(function(h,f){c=g[a](function(){o.delete(p);try{h(l?i.call(l):i())}catch(k){f(k)}},l)});return o.set(p,c),p}u(s,"create"),(typeof define)[0]=="f"?define(function(){return n}):(typeof e)[0]=="o"?e.exports=n:window.fastdomPromised=n})()})),nt=ye(tt(),1),st=ye(rt(),1);function V(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}u(V,"L");var S=V();function Re(r){S=r}u(Re,"G");var P={exec:u(()=>null,"exec")};function d(r,e=""){let n=typeof r=="string"?r:r.source,s={replace:u((t,a)=>{let i=typeof a=="string"?a:a.source;return i=i.replace(b.caret,"$1"),n=n.replace(t,i),s},"replace"),getRegex:u(()=>new RegExp(n,e),"getRegex")};return s}u(d,"d");var it=(()=>{try{return!0}catch{return!1}})(),b={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:u(r=>new RegExp(`^( {0,3}${r})((?:[ ][^\\n]*)?(?:\\n|$))`),"listItemRegex"),nextBulletRegex:u(r=>new RegExp(`^ {0,${Math.min(3,r-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),"nextBulletRegex"),hrRegex:u(r=>new RegExp(`^ {0,${Math.min(3,r-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),"hrRegex"),fencesBeginRegex:u(r=>new RegExp(`^ {0,${Math.min(3,r-1)}}(?:\`\`\`|~~~)`),"fencesBeginRegex"),headingBeginRegex:u(r=>new RegExp(`^ {0,${Math.min(3,r-1)}}#`),"headingBeginRegex"),htmlBeginRegex:u(r=>new RegExp(`^ {0,${Math.min(3,r-1)}}<(?:[a-z].*>|!--)`,"i"),"htmlBeginRegex")},at=/^(?:[ \t]*(?:\n|$))+/,lt=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,ot=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,I=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,ct=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Y=/(?:[*+-]|\d{1,9}[.)])/,ze=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Ae=d(ze).replace(/bull/g,Y).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),pt=d(ze).replace(/bull/g,Y).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),J=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,ht=/^[^\n]+/,ee=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,ut=d(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",ee).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),gt=d(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Y).getRegex(),j="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",te=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,ft=d("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",te).replace("tag",j).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),ue=d(J).replace("hr",I).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",j).getRegex(),re={blockquote:d(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",ue).getRegex(),code:lt,def:ut,fences:ot,heading:ct,hr:I,html:ft,lheading:Ae,list:gt,newline:at,paragraph:ue,table:P,text:ht},ge=d("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",I).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",j).getRegex(),dt={...re,lheading:pt,table:ge,paragraph:d(J).replace("hr",I).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",ge).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",j).getRegex()},kt={...re,html:d(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",te).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:P,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:d(J).replace("hr",I).replace("heading",` *#{1,6} *[^
|
|
2
2
|
]`).replace("lheading",Ae).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},xt=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,mt=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,_e=/^( {2,}|\\)\n(?!\s*$)/,bt=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,F=/[\p{P}\p{S}]/u,ne=/[\s\p{P}\p{S}]/u,Le=/[^\s\p{P}\p{S}]/u,wt=d(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,ne).getRegex(),Ee=/(?!~)[\p{P}\p{S}]/u,yt=/(?!~)[\s\p{P}\p{S}]/u,vt=/(?:[^\s\p{P}\p{S}]|~)/u,$t=d(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",it?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),Pe=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,Tt=d(Pe,"u").replace(/punct/g,F).getRegex(),St=d(Pe,"u").replace(/punct/g,Ee).getRegex(),Ie="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",Rt=d(Ie,"gu").replace(/notPunctSpace/g,Le).replace(/punctSpace/g,ne).replace(/punct/g,F).getRegex(),zt=d(Ie,"gu").replace(/notPunctSpace/g,vt).replace(/punctSpace/g,yt).replace(/punct/g,Ee).getRegex(),At=d("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Le).replace(/punctSpace/g,ne).replace(/punct/g,F).getRegex(),_t=d(/\\(punct)/,"gu").replace(/punct/g,F).getRegex(),Lt=d(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),Et=d(te).replace("(?:-->|$)","-->").getRegex(),Pt=d("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",Et).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),C=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,It=d(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",C).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Be=d(/^!?\[(label)\]\[(ref)\]/).replace("label",C).replace("ref",ee).getRegex(),Ce=d(/^!?\[(ref)\](?:\[\])?/).replace("ref",ee).getRegex(),Bt=d("reflink|nolink(?!\\()","g").replace("reflink",Be).replace("nolink",Ce).getRegex(),fe=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,se={_backpedal:P,anyPunctuation:_t,autolink:Lt,blockSkip:$t,br:_e,code:mt,del:P,emStrongLDelim:Tt,emStrongRDelimAst:Rt,emStrongRDelimUnd:At,escape:xt,link:It,nolink:Ce,punctuation:wt,reflink:Be,reflinkSearch:Bt,tag:Pt,text:bt,url:P},Ct={...se,link:d(/^!?\[(label)\]\((.*?)\)/).replace("label",C).getRegex(),reflink:d(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",C).getRegex()},N={...se,emStrongRDelimAst:zt,emStrongLDelim:St,url:d(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",fe).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:d(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",fe).getRegex()},Mt={...N,br:d(_e).replace("{2,}","*").getRegex(),text:d(N.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},B={normal:re,gfm:dt,pedantic:kt},_={normal:se,gfm:N,breaks:Mt,pedantic:Ct},qt={"&":"&","<":"<",">":">",'"':""","'":"'"},de=u(r=>qt[r],"ge");function $(r,e){if(e){if(b.escapeTest.test(r))return r.replace(b.escapeReplace,de)}else if(b.escapeTestNoEncode.test(r))return r.replace(b.escapeReplaceNoEncode,de);return r}u($,"w");function ke(r){try{r=encodeURI(r).replace(b.percentDecode,"%")}catch{return null}return r}u(ke,"J");function xe(r,e){let n=r.replace(b.findPipe,(t,a,i)=>{let l=!1,o=a;for(;--o>=0&&i[o]==="\\";)l=!l;return l?"|":" |"}).split(b.splitPipe),s=0;if(n[0].trim()||n.shift(),n.length>0&&!n.at(-1)?.trim()&&n.pop(),e)if(n.length>e)n.splice(e);else for(;n.length<e;)n.push("");for(;s<n.length;s++)n[s]=n[s].trim().replace(b.slashPipe,"|");return n}u(xe,"V");function L(r,e,n){let s=r.length;if(s===0)return"";let t=0;for(;t<s;){let a=r.charAt(s-t-1);if(a===e&&!n)t++;else if(a!==e&&n)t++;else break}return r.slice(0,s-t)}u(L,"z");function Ot(r,e){if(r.indexOf(e[1])===-1)return-1;let n=0;for(let s=0;s<r.length;s++)if(r[s]==="\\")s++;else if(r[s]===e[0])n++;else if(r[s]===e[1]&&(n--,n<0))return s;return n>0?-2:-1}u(Ot,"fe");function me(r,e,n,s,t){let a=e.href,i=e.title||null,l=r[1].replace(t.other.outputLinkReplace,"$1");s.state.inLink=!0;let o={type:r[0].charAt(0)==="!"?"image":"link",raw:n,href:a,title:i,text:l,tokens:s.inlineTokens(l)};return s.state.inLink=!1,o}u(me,"me");function jt(r,e,n){let s=r.match(n.other.indentCodeCompensation);if(s===null)return e;let t=s[1];return e.split(`
|
|
3
3
|
`).map(a=>{let i=a.match(n.other.beginningSpace);if(i===null)return a;let[l]=i;return l.length>=t.length?a.slice(t.length):a}).join(`
|
|
4
4
|
`)}u(jt,"Ye");var M=class{static{u(this,"y")}options;rules;lexer;constructor(r){this.options=r||S}space(r){let e=this.rules.block.newline.exec(r);if(e&&e[0].length>0)return{type:"space",raw:e[0]}}code(r){let e=this.rules.block.code.exec(r);if(e){let n=e[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:e[0],codeBlockStyle:"indented",text:this.options.pedantic?n:L(n,`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var f=Object.defineProperty;var c=(a,t)=>f(a,"name",{value:t,configurable:!0});import{n as i}from"./chunk-Y2CYZVJY-OvsAdhaO.js";import{m as o}from"./src-Bssc388C.js";import{u as g}from"./chunk-75Z2AOVW-
|
|
1
|
+
var f=Object.defineProperty;var c=(a,t)=>f(a,"name",{value:t,configurable:!0});import{n as i}from"./chunk-Y2CYZVJY-OvsAdhaO.js";import{m as o}from"./src-Bssc388C.js";import{u as g}from"./chunk-75Z2AOVW-CTyOxDW3.js";import{o as n}from"./chunk-4HAMMTFA-Duh1dbZg.js";var w=i(({flowchart:a})=>{const t=a?.subGraphTitleMargin?.top??0,s=a?.subGraphTitleMargin?.bottom??0;return{subGraphTitleTopMargin:t,subGraphTitleBottomMargin:s,subGraphTitleTotalMargin:t+s}},"getSubGraphTitleMargins"),l=new Map;async function u(a,t,s){let r,e;t.shape==="rect"&&(t.rx&&t.ry?t.shape="roundedRect":t.shape="squareRect");const p=t.shape?n[t.shape]:void 0;if(!p)throw new Error(`No such shape: ${t.shape}. Please check your syntax.`);if(t.link){let h;s.config.securityLevel==="sandbox"?h="_top":t.linkTarget&&(h=t.linkTarget||"_blank"),r=a.insert("svg:a").attr("xlink:href",t.link).attr("target",h??null),e=await p(r,t,s)}else e=await p(a,t,s),r=e;return r.attr("data-look",g(t.look)),t.tooltip&&e.attr("title",t.tooltip),l.set(t.id,r),t.haveCallback&&r.attr("class",r.attr("class")+" clickable"),r}c(u,"insertNode");i(u,"insertNode");var x=i((a,t)=>{l.set(t.id,a)},"setNodeElem"),M=i(()=>{l.clear()},"clear"),N=i(a=>{const t=l.get(a.id);o.trace("Transforming node",a.diff,a,"translate("+(a.x-a.width/2-5)+", "+a.width/2+")");const s=8,r=a.diff||0;return a.clusterNode?t.attr("transform","translate("+(a.x+r-a.width/2)+", "+(a.y-a.height/2-s)+")"):t.attr("transform","translate("+a.x+", "+a.y+")"),r},"positionNode");export{x as a,N as i,w as n,u as r,M as t};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var se=Object.defineProperty;var _=(t,e)=>se(t,"name",{value:e,configurable:!0});import{n as u}from"./chunk-Y2CYZVJY-OvsAdhaO.js";import{m as b,p as kt}from"./src-Bssc388C.js";import{$ as ie,H as re,K as ae,U as ne,a as oe,s as j,v as le,w as ce,x as P,y as he}from"./chunk-DU6HZSFF-
|
|
1
|
+
var se=Object.defineProperty;var _=(t,e)=>se(t,"name",{value:e,configurable:!0});import{n as u}from"./chunk-Y2CYZVJY-OvsAdhaO.js";import{m as b,p as kt}from"./src-Bssc388C.js";import{$ as ie,H as re,K as ae,U as ne,a as oe,s as j,v as le,w as ce,x as P,y as he}from"./chunk-DU6HZSFF-mLZ_DAj9.js";import{g as ue,s as de}from"./chunk-75Z2AOVW-CTyOxDW3.js";import{t as fe}from"./chunk-F27PBJKO-BI6MjXNA.js";import{t as pe}from"./chunk-XXDRQBXY-BhrH-9FX.js";import{t as Se}from"./chunk-POPQ4Y6H-B0MtQqlF.js";import{d as ye}from"./mermaid.core-Be3XJK9z.js";var At=(function(){var t=u(function(a,f,l,p){for(l=l||{},p=a.length;p--;l[a[p]]=f);return l},"o"),e=[1,2],r=[1,3],s=[1,4],h=[2,4],c=[1,9],y=[1,11],T=[1,16],n=[1,17],g=[1,18],C=[1,19],A=[1,33],x=[1,20],$=[1,21],d=[1,22],D=[1,23],N=[1,24],w=[1,26],Y=[1,27],v=[1,28],B=[1,29],st=[1,30],it=[1,31],rt=[1,32],at=[1,35],nt=[1,36],ot=[1,37],lt=[1,38],H=[1,34],S=[1,4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],ct=[1,4,5,14,15,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,39,40,41,45,48,51,52,53,54,57],It=[4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],Tt={trace:u(_(function(){},"trace"),"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,SD:6,document:7,line:8,statement:9,classDefStatement:10,styleStatement:11,cssClassStatement:12,idStatement:13,DESCR:14,"-->":15,HIDE_EMPTY:16,scale:17,WIDTH:18,COMPOSIT_STATE:19,STRUCT_START:20,STRUCT_STOP:21,STATE_DESCR:22,AS:23,ID:24,FORK:25,JOIN:26,CHOICE:27,CONCURRENT:28,note:29,notePosition:30,NOTE_TEXT:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,CLICK:38,STRING:39,HREF:40,classDef:41,CLASSDEF_ID:42,CLASSDEF_STYLEOPTS:43,DEFAULT:44,style:45,STYLE_IDS:46,STYLEDEF_STYLEOPTS:47,class:48,CLASSENTITY_IDS:49,STYLECLASS:50,direction_tb:51,direction_bt:52,direction_rl:53,direction_lr:54,eol:55,";":56,EDGE_STATE:57,STYLE_SEPARATOR:58,left_of:59,right_of:60,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",6:"SD",14:"DESCR",15:"-->",16:"HIDE_EMPTY",17:"scale",18:"WIDTH",19:"COMPOSIT_STATE",20:"STRUCT_START",21:"STRUCT_STOP",22:"STATE_DESCR",23:"AS",24:"ID",25:"FORK",26:"JOIN",27:"CHOICE",28:"CONCURRENT",29:"note",31:"NOTE_TEXT",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",38:"CLICK",39:"STRING",40:"HREF",41:"classDef",42:"CLASSDEF_ID",43:"CLASSDEF_STYLEOPTS",44:"DEFAULT",45:"style",46:"STYLE_IDS",47:"STYLEDEF_STYLEOPTS",48:"class",49:"CLASSENTITY_IDS",50:"STYLECLASS",51:"direction_tb",52:"direction_bt",53:"direction_rl",54:"direction_lr",56:";",57:"EDGE_STATE",58:"STYLE_SEPARATOR",59:"left_of",60:"right_of"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,3],[9,4],[9,1],[9,2],[9,1],[9,4],[9,3],[9,6],[9,1],[9,1],[9,1],[9,1],[9,4],[9,4],[9,1],[9,2],[9,2],[9,1],[9,5],[9,5],[10,3],[10,3],[11,3],[12,3],[32,1],[32,1],[32,1],[32,1],[55,1],[55,1],[13,1],[13,1],[13,3],[13,3],[30,1],[30,1]],performAction:u(_(function(f,l,p,m,E,i,V){var o=i.length-1;switch(E){case 3:return m.setRootDoc(i[o]),i[o];case 4:this.$=[];break;case 5:i[o]!="nl"&&(i[o-1].push(i[o]),this.$=i[o-1]);break;case 6:case 7:this.$=i[o];break;case 8:this.$="nl";break;case 12:this.$=i[o];break;case 13:const ut=i[o-1];ut.description=m.trimColon(i[o]),this.$=ut;break;case 14:this.$={stmt:"relation",state1:i[o-2],state2:i[o]};break;case 15:const dt=m.trimColon(i[o]);this.$={stmt:"relation",state1:i[o-3],state2:i[o-1],description:dt};break;case 19:this.$={stmt:"state",id:i[o-3],type:"default",description:"",doc:i[o-1]};break;case 20:var M=i[o],z=i[o-2].trim();if(i[o].match(":")){var q=i[o].split(":");M=q[0],z=[z,q[1]]}this.$={stmt:"state",id:M,type:"default",description:z};break;case 21:this.$={stmt:"state",id:i[o-3],type:"default",description:i[o-5],doc:i[o-1]};break;case 22:this.$={stmt:"state",id:i[o],type:"fork"};break;case 23:this.$={stmt:"state",id:i[o],type:"join"};break;case 24:this.$={stmt:"state",id:i[o],type:"choice"};break;case 25:this.$={stmt:"state",id:m.getDividerId(),type:"divider"};break;case 26:this.$={stmt:"state",id:i[o-1].trim(),note:{position:i[o-2].trim(),text:i[o].trim()}};break;case 29:this.$=i[o].trim(),m.setAccTitle(this.$);break;case 30:case 31:this.$=i[o].trim(),m.setAccDescription(this.$);break;case 32:this.$={stmt:"click",id:i[o-3],url:i[o-2],tooltip:i[o-1]};break;case 33:this.$={stmt:"click",id:i[o-3],url:i[o-1],tooltip:""};break;case 34:case 35:this.$={stmt:"classDef",id:i[o-1].trim(),classes:i[o].trim()};break;case 36:this.$={stmt:"style",id:i[o-1].trim(),styleClass:i[o].trim()};break;case 37:this.$={stmt:"applyClass",id:i[o-1].trim(),styleClass:i[o].trim()};break;case 38:m.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 39:m.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 40:m.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 41:m.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 44:case 45:this.$={stmt:"state",id:i[o].trim(),type:"default",description:""};break;case 46:this.$={stmt:"state",id:i[o-2].trim(),classes:[i[o].trim()],type:"default",description:""};break;case 47:this.$={stmt:"state",id:i[o-2].trim(),classes:[i[o].trim()],type:"default",description:""}}},"anonymous"),"anonymous"),table:[{3:1,4:e,5:r,6:s},{1:[3]},{3:5,4:e,5:r,6:s},{3:6,4:e,5:r,6:s},t([1,4,5,16,17,19,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],h,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:c,5:y,8:8,9:10,10:12,11:13,12:14,13:15,16:T,17:n,19:g,22:C,24:A,25:x,26:$,27:d,28:D,29:N,32:25,33:w,35:Y,37:v,38:B,41:st,45:it,48:rt,51:at,52:nt,53:ot,54:lt,57:H},t(S,[2,5]),{9:39,10:12,11:13,12:14,13:15,16:T,17:n,19:g,22:C,24:A,25:x,26:$,27:d,28:D,29:N,32:25,33:w,35:Y,37:v,38:B,41:st,45:it,48:rt,51:at,52:nt,53:ot,54:lt,57:H},t(S,[2,7]),t(S,[2,8]),t(S,[2,9]),t(S,[2,10]),t(S,[2,11]),t(S,[2,12],{14:[1,40],15:[1,41]}),t(S,[2,16]),{18:[1,42]},t(S,[2,18],{20:[1,43]}),{23:[1,44]},t(S,[2,22]),t(S,[2,23]),t(S,[2,24]),t(S,[2,25]),{30:45,31:[1,46],59:[1,47],60:[1,48]},t(S,[2,28]),{34:[1,49]},{36:[1,50]},t(S,[2,31]),{13:51,24:A,57:H},{42:[1,52],44:[1,53]},{46:[1,54]},{49:[1,55]},t(ct,[2,44],{58:[1,56]}),t(ct,[2,45],{58:[1,57]}),t(S,[2,38]),t(S,[2,39]),t(S,[2,40]),t(S,[2,41]),t(S,[2,6]),t(S,[2,13]),{13:58,24:A,57:H},t(S,[2,17]),t(It,h,{7:59}),{24:[1,60]},{24:[1,61]},{23:[1,62]},{24:[2,48]},{24:[2,49]},t(S,[2,29]),t(S,[2,30]),{39:[1,63],40:[1,64]},{43:[1,65]},{43:[1,66]},{47:[1,67]},{50:[1,68]},{24:[1,69]},{24:[1,70]},t(S,[2,14],{14:[1,71]}),{4:c,5:y,8:8,9:10,10:12,11:13,12:14,13:15,16:T,17:n,19:g,21:[1,72],22:C,24:A,25:x,26:$,27:d,28:D,29:N,32:25,33:w,35:Y,37:v,38:B,41:st,45:it,48:rt,51:at,52:nt,53:ot,54:lt,57:H},t(S,[2,20],{20:[1,73]}),{31:[1,74]},{24:[1,75]},{39:[1,76]},{39:[1,77]},t(S,[2,34]),t(S,[2,35]),t(S,[2,36]),t(S,[2,37]),t(ct,[2,46]),t(ct,[2,47]),t(S,[2,15]),t(S,[2,19]),t(It,h,{7:78}),t(S,[2,26]),t(S,[2,27]),{5:[1,79]},{5:[1,80]},{4:c,5:y,8:8,9:10,10:12,11:13,12:14,13:15,16:T,17:n,19:g,21:[1,81],22:C,24:A,25:x,26:$,27:d,28:D,29:N,32:25,33:w,35:Y,37:v,38:B,41:st,45:it,48:rt,51:at,52:nt,53:ot,54:lt,57:H},t(S,[2,32]),t(S,[2,33]),t(S,[2,21])],defaultActions:{5:[2,1],6:[2,2],47:[2,48],48:[2,49]},parseError:u(_(function(f,l){if(l.recoverable)this.trace(f);else{var p=new Error(f);throw p.hash=l,p}},"parseError"),"parseError"),parse:u(_(function(f){var l=this,p=[0],m=[],E=[null],i=[],V=this.table,o="",M=0,z=0,q=0,ut=2,dt=1,Zt=i.slice.call(arguments,1),k=Object.create(this.lexer),W={yy:{}};for(var mt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,mt)&&(W.yy[mt]=this.yy[mt]);k.setInput(f,W.yy),W.yy.lexer=k,W.yy.parser=this,typeof k.yylloc>"u"&&(k.yylloc={});var Et=k.yylloc;i.push(Et);var te=k.options&&k.options.ranges;typeof W.yy.parseError=="function"?this.parseError=W.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ee(R){p.length=p.length-2*R,E.length=E.length-R,i.length=i.length-R}_(ee,"popStack"),u(ee,"popStack");function wt(){var R=m.pop()||k.lex()||dt;return typeof R!="number"&&(R instanceof Array&&(m=R,R=m.pop()),R=l.symbols_[R]||R),R}_(wt,"lex"),u(wt,"lex");for(var L,_t,U,O,bt,K={},ft,F,Nt,pt;;){if(U=p[p.length-1],this.defaultActions[U]?O=this.defaultActions[U]:((L===null||typeof L>"u")&&(L=wt()),O=V[U]&&V[U][L]),typeof O>"u"||!O.length||!O[0]){var Dt="";pt=[];for(ft in V[U])this.terminals_[ft]&&ft>ut&&pt.push("'"+this.terminals_[ft]+"'");k.showPosition?Dt="Parse error on line "+(M+1)+`:
|
|
2
2
|
`+k.showPosition()+`
|
|
3
3
|
Expecting `+pt.join(", ")+", got '"+(this.terminals_[L]||L)+"'":Dt="Parse error on line "+(M+1)+": Unexpected "+(L==dt?"end of input":"'"+(this.terminals_[L]||L)+"'"),this.parseError(Dt,{text:k.match,token:this.terminals_[L]||L,line:k.yylineno,loc:Et,expected:pt})}if(O[0]instanceof Array&&O.length>1)throw new Error("Parse Error: multiple actions possible at state: "+U+", token: "+L);switch(O[0]){case 1:p.push(L),E.push(k.yytext),i.push(k.yylloc),p.push(O[1]),L=null,_t?(L=_t,_t=null):(z=k.yyleng,o=k.yytext,M=k.yylineno,Et=k.yylloc,q>0&&q--);break;case 2:if(F=this.productions_[O[1]][1],K.$=E[E.length-F],K._$={first_line:i[i.length-(F||1)].first_line,last_line:i[i.length-1].last_line,first_column:i[i.length-(F||1)].first_column,last_column:i[i.length-1].last_column},te&&(K._$.range=[i[i.length-(F||1)].range[0],i[i.length-1].range[1]]),bt=this.performAction.apply(K,[o,z,M,W.yy,O[1],E,i].concat(Zt)),typeof bt<"u")return bt;F&&(p=p.slice(0,-1*F*2),E=E.slice(0,-1*F),i=i.slice(0,-1*F)),p.push(this.productions_[O[1]][0]),E.push(K.$),i.push(K._$),Nt=V[p[p.length-2]][p[p.length-1]],p.push(Nt);break;case 3:return!0}}return!0},"parse"),"parse")};Tt.lexer=(function(){return{EOF:1,parseError:u(_(function(f,l){if(this.yy.parser)this.yy.parser.parseError(f,l);else throw new Error(f)},"parseError"),"parseError"),setInput:u(function(a,f){return this.yy=f||this.yy||{},this._input=a,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:u(function(){var a=this._input[0];return this.yytext+=a,this.yyleng++,this.offset++,this.match+=a,this.matched+=a,a.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),a},"input"),unput:u(function(a){var f=a.length,l=a.split(/(?:\r\n?|\n)/g);this._input=a+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-f),this.offset-=f;var p=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),l.length-1&&(this.yylineno-=l.length-1);var m=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:l?(l.length===p.length?this.yylloc.first_column:0)+p[p.length-l.length].length-l[0].length:this.yylloc.first_column-f},this.options.ranges&&(this.yylloc.range=[m[0],m[0]+this.yyleng-f]),this.yyleng=this.yytext.length,this},"unput"),more:u(function(){return this._more=!0,this},"more"),reject:u(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
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:u(function(a){this.unput(this.match.slice(a))},"less"),pastInput:u(function(){var a=this.matched.substr(0,this.matched.length-this.match.length);return(a.length>20?"...":"")+a.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:u(function(){var a=this.match;return a.length<20&&(a+=this._input.substr(0,20-a.length)),(a.substr(0,20)+(a.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:u(function(){var a=this.pastInput(),f=new Array(a.length+1).join("-");return a+this.upcomingInput()+`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{n as N}from"./chunk-Y2CYZVJY-OvsAdhaO.js";import{m as $,p as V}from"./src-Bssc388C.js";import{T as X,g as rt,x as G}from"./chunk-DU6HZSFF-
|
|
1
|
+
import{n as N}from"./chunk-Y2CYZVJY-OvsAdhaO.js";import{m as $,p as V}from"./src-Bssc388C.js";import{T as X,g as rt,x as G}from"./chunk-DU6HZSFF-mLZ_DAj9.js";import{n as A}from"./chunk-GMAD6QVW-Vk29EsOn.js";import{a as Y,i as F}from"./chunk-P2QGCYS3-DD1uZyrA.js";import{t as H}from"./rough.esm-DnC5Tr1g.js";import{n as z,r as j,t as Q}from"./chunk-4HAMMTFA-Duh1dbZg.js";import{n as U}from"./chunk-GVQU2GXP-D5bNpR4K.js";var it=N(async(k,t)=>{const l=G(),{themeVariables:S,handDrawnSeed:d}=l,{clusterBkg:u,clusterBorder:v}=S,n=v,{labelStyles:m,nodeStyles:o,borderStyles:T,backgroundStyles:g}=F(t),h=k.insert("g").attr("class","cluster swimlane "+(t.cssClasses||"")).attr("id",t.id).attr("data-id",t.id).attr("data-et","cluster").attr("data-look",t.look),c=rt(l.flowchart.htmlLabels),a=t.direction==="LR",r=h.insert("g").attr("class","cluster-label swimlane-label"),b=await A(r,t.label,{style:t.labelStyle,useHtmlLabels:c,isNode:!0,width:t.width});let s=b.getBBox();if(c){const B=b.children[0],D=V(b);s=B.getBoundingClientRect(),D.attr("width",s.width),D.attr("height",s.height)}const y=t.padding??0,w=t.width<=s.width+y?s.width+y:t.width;t.width<=s.width+y?t.diff=(w-t.width)/2-y:t.diff=-y;const i=t.height,f=t.y-i/2,R=t.y+i/2,e=t.x-w/2,p=t.swimlaneContentTop!==void 0?t.swimlaneContentTop:f+i/3,x=a?4:0,W=s.height+2*x;let C,M;if(a){const B=Math.max(W,s.height+2*x),D=e+B,L=Math.max(0,w-B);if(t.look==="handDrawn"){const _=H.svg(h),P=Y(t,{roughness:.7,fill:u,stroke:n,fillWeight:3,seed:d}),E=Y(t,{roughness:.7,fill:"none",stroke:n,seed:d}),J=_.rectangle(e,f,B,i,P);C=h.insert(()=>J,":first-child");const q=_.rectangle(D,f,L,i,E);M=h.insert(()=>q,":first-child"),C.select("path:nth-child(2)").attr("style",T.join(";")),C.select("path").attr("style",g.join(";").replace("fill","stroke"))}else C=h.insert("rect",":first-child"),M=h.insert("rect",":first-child"),C.attr("class","swimlane-title").attr("style",o).attr("x",e).attr("y",f).attr("width",B).attr("height",i).attr("fill",u).attr("stroke",n),M.attr("class","swimlane-body").attr("style",o).attr("x",D).attr("y",f).attr("width",L).attr("height",i).attr("fill","none").attr("stroke",n);const I=e+B/2,O=t.y;r.attr("transform",`translate(${I}, ${O}) rotate(-90) translate(${-s.width/2}, ${-s.height/2})`)}else{const B=Math.max(0,p-f),D=Math.min(W,B),L=f+D,I=Math.max(0,R-L),O=t.x-w/2;if(t.look==="handDrawn"){const E=H.svg(h),J=Y(t,{roughness:.7,fill:u,stroke:n,fillWeight:3,seed:d}),q=Y(t,{roughness:.7,fill:"none",stroke:n,seed:d}),tt=E.rectangle(O,f,w,D,J);C=h.insert(()=>tt,":first-child");const st=E.rectangle(O,L,w,I,q);M=h.insert(()=>st,":first-child"),C.select("path:nth-child(2)").attr("style",T.join(";")),C.select("path").attr("style",g.join(";").replace("fill","stroke"))}else C=h.insert("rect",":first-child"),M=h.insert("rect",":first-child"),C.attr("class","swimlane-title").attr("style",o).attr("x",O).attr("y",f).attr("width",w).attr("height",D).attr("fill",u).attr("stroke",n),M.attr("class","swimlane-body").attr("style",o).attr("x",O).attr("y",L).attr("width",w).attr("height",I).attr("fill","none").attr("stroke",n);const _=t.x-s.width/2,P=f+(D-s.height)/2;r.attr("transform",`translate(${_}, ${P})`)}if($.trace("Swimlane data ",t,JSON.stringify(t)),m){const B=r.select("span");B&&B.attr("style",m)}return t.offsetX=0,t.width=w,t.height=i,t.offsetY=s.height-y/2,t.intersect=function(B){return j(t,B)},{cluster:h,labelBBox:s}},"swimlane"),K=N(async(k,t)=>{$.info("Creating subgraph rect for ",t.id,t);const l=G(),{themeVariables:S,handDrawnSeed:d}=l,{clusterBkg:u,clusterBorder:v}=S,{labelStyles:n,nodeStyles:m,borderStyles:o,backgroundStyles:T}=F(t),g=k.insert("g").attr("class","cluster "+t.cssClasses).attr("id",t.domId).attr("data-look",t.look),h=X(l),c=g.insert("g").attr("class","cluster-label ");let a;t.labelType==="markdown"?a=await A(c,t.label,{style:t.labelStyle,useHtmlLabels:h,isNode:!0,width:t.width}):a=await Q(c,t.label,t.labelStyle||"",!1,!0);let r=a.getBBox();if(X(l)){const e=a.children[0],p=V(a);r=e.getBoundingClientRect(),p.attr("width",r.width),p.attr("height",r.height)}const b=t.width<=r.width+t.padding?r.width+t.padding:t.width;t.width<=r.width+t.padding?t.diff=(b-t.width)/2-t.padding:t.diff=-t.padding;const s=t.height,y=t.x-b/2,w=t.y-s/2;$.trace("Data ",t,JSON.stringify(t));let i;if(t.look==="handDrawn"){const e=H.svg(g),p=Y(t,{roughness:.7,fill:u,stroke:v,fillWeight:3,seed:d}),x=e.path(z(y,w,b,s,0),p);i=g.insert(()=>($.debug("Rough node insert CXC",x),x),":first-child"),i.select("path:nth-child(2)").attr("style",o.join(";")),i.select("path").attr("style",T.join(";").replace("fill","stroke"))}else i=g.insert("rect",":first-child"),i.attr("style",m).attr("rx",t.rx).attr("ry",t.ry).attr("x",y).attr("y",w).attr("width",b).attr("height",s);const{subGraphTitleTopMargin:f}=U(l);if(c.attr("transform",`translate(${t.x-r.width/2}, ${t.y-t.height/2+f})`),n){const e=c.select("span");e&&e.attr("style",n)}const R=i.node().getBBox();return t.offsetX=0,t.width=R.width,t.height=R.height,t.offsetY=r.height-t.padding/2,t.intersect=function(e){return j(t,e)},{cluster:g,labelBBox:r}},"rect"),et={rect:K,squareRect:K,roundedWithTitle:N(async(k,t)=>{const l=G(),{themeVariables:S,handDrawnSeed:d}=l,{altBackground:u,compositeBackground:v,compositeTitleBackground:n,nodeBorder:m}=S,o=k.insert("g").attr("class",t.cssClasses).attr("id",t.domId).attr("data-id",t.id).attr("data-look",t.look),T=o.insert("g",":first-child"),g=o.insert("g").attr("class","cluster-label");let h=o.append("rect");const c=await Q(g,t.label,t.labelStyle,void 0,!0);let a=c.getBBox();if(X(l)){const p=c.children[0],x=V(c);a=p.getBoundingClientRect(),x.attr("width",a.width),x.attr("height",a.height)}const r=0*t.padding,b=r/2,s=(t.width<=a.width+t.padding?a.width+t.padding:t.width)+r;t.width<=a.width+t.padding?t.diff=(s-t.width)/2-t.padding:t.diff=-t.padding;const y=t.height+r,w=t.height+r-a.height-6,i=t.x-s/2,f=t.y-y/2;t.width=s;const R=t.y-t.height/2-b+a.height+2;let e;if(t.look==="handDrawn"){const p=t.cssClasses.includes("statediagram-cluster-alt"),x=H.svg(o),W=t.rx||t.ry?x.path(z(i,f,s,y,10),{roughness:.7,fill:n,fillStyle:"solid",stroke:m,seed:d}):x.rectangle(i,f,s,y,{seed:d});e=o.insert(()=>W,":first-child");const C=x.rectangle(i,R,s,w,{fill:p?u:v,fillStyle:p?"hachure":"solid",stroke:m,seed:d});e=o.insert(()=>W,":first-child"),h=o.insert(()=>C)}else e=T.insert("rect",":first-child"),e.attr("class","outer").attr("x",i).attr("y",f).attr("width",s).attr("height",y).attr("data-look",t.look),h.attr("class","inner").attr("x",i).attr("y",R).attr("width",s).attr("height",w);return g.attr("transform",`translate(${t.x-a.width/2}, ${f+1-(X(l)?0:3)})`),t.height=e.node().getBBox().height,t.offsetX=0,t.offsetY=a.height-t.padding/2,t.labelBBox=a,t.intersect=function(p){return j(t,p)},{cluster:o,labelBBox:a}},"roundedWithTitle"),noteGroup:N((k,t)=>{const l=k.insert("g").attr("class","note-cluster").attr("id",t.domId),S=l.insert("rect",":first-child"),d=0*t.padding,u=d/2;S.attr("rx",t.rx).attr("ry",t.ry).attr("x",t.x-t.width/2-u).attr("y",t.y-t.height/2-u).attr("width",t.width+d).attr("height",t.height+d).attr("fill","none");const v=S.node().getBBox();return t.width=v.width,t.height=v.height,t.intersect=function(n){return j(t,n)},{cluster:l,labelBBox:{width:0,height:0}}},"noteGroup"),divider:N((k,t)=>{const{themeVariables:l,handDrawnSeed:S}=G(),{nodeBorder:d}=l,u=k.insert("g").attr("class",t.cssClasses).attr("id",t.domId).attr("data-look",t.look),v=u.insert("g",":first-child"),n=0*t.padding,m=t.width+n;t.diff=-t.padding;const o=t.height+n,T=t.x-m/2,g=t.y-o/2;t.width=m;let h;if(t.look==="handDrawn"){const c=H.svg(u).rectangle(T,g,m,o,{fill:"lightgrey",roughness:.5,strokeLineDash:[5],stroke:d,seed:S});h=u.insert(()=>c,":first-child")}else{h=v.insert("rect",":first-child");let c="outer";t.look,c="divider",h.attr("class",c).attr("x",T).attr("y",g).attr("width",m).attr("height",o).attr("data-look",t.look)}return t.height=h.node().getBBox().height,t.offsetX=0,t.offsetY=0,t.intersect=function(c){return j(t,c)},{cluster:u,labelBBox:{}}},"divider"),kanbanSection:N(async(k,t)=>{$.info("Creating subgraph rect for ",t.id,t);const l=G(),{themeVariables:S,handDrawnSeed:d}=l,{clusterBkg:u,clusterBorder:v}=S,{labelStyles:n,nodeStyles:m,borderStyles:o,backgroundStyles:T}=F(t),g=k.insert("g").attr("class","cluster "+t.cssClasses).attr("id",t.domId).attr("data-look",t.look),h=X(l),c=g.insert("g").attr("class","cluster-label "),a=await A(c,t.label,{style:t.labelStyle,useHtmlLabels:h,isNode:!0,width:t.width});let r=a.getBBox();if(X(l)){const e=a.children[0],p=V(a);r=e.getBoundingClientRect(),p.attr("width",r.width),p.attr("height",r.height)}const b=t.width<=r.width+t.padding?r.width+t.padding:t.width;t.width<=r.width+t.padding?t.diff=(b-t.width)/2-t.padding:t.diff=-t.padding;const s=t.height,y=t.x-b/2,w=t.y-s/2;$.trace("Data ",t,JSON.stringify(t));let i;if(t.look==="handDrawn"){const e=H.svg(g),p=Y(t,{roughness:.7,fill:u,stroke:v,fillWeight:4,seed:d}),x=e.path(z(y,w,b,s,t.rx),p);i=g.insert(()=>($.debug("Rough node insert CXC",x),x),":first-child"),i.select("path:nth-child(2)").attr("style",o.join(";")),i.select("path").attr("style",T.join(";").replace("fill","stroke"))}else i=g.insert("rect",":first-child"),i.attr("style",m).attr("rx",t.rx).attr("ry",t.ry).attr("x",y).attr("y",w).attr("width",b).attr("height",s);const{subGraphTitleTopMargin:f}=U(l);if(c.attr("transform",`translate(${t.x-r.width/2}, ${t.y-t.height/2+f})`),n){const e=c.select("span");e&&e.attr("style",n)}const R=i.node().getBBox();return t.offsetX=0,t.width=R.width,t.height=R.height,t.offsetY=r.height-t.padding/2,t.intersect=function(e){return j(t,e)},{cluster:g,labelBBox:r}},"kanbanSection"),swimlane:it},Z=new Map,dt=N(async(k,t)=>{const l=await et[t.shape||"rect"](k,t);return Z.set(t.id,l),l},"insertCluster"),ut=N(()=>{Z=new Map},"clear");export{dt as n,ut as t};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var gt=Object.defineProperty;var T=(r,t)=>gt(r,"name",{value:t,configurable:!0});import{n as h}from"./chunk-Y2CYZVJY-OvsAdhaO.js";import{m as g,p as B}from"./src-Bssc388C.js";import{T as dt,b as H,x as C}from"./chunk-DU6HZSFF-
|
|
1
|
+
var gt=Object.defineProperty;var T=(r,t)=>gt(r,"name",{value:t,configurable:!0});import{n as h}from"./chunk-Y2CYZVJY-OvsAdhaO.js";import{m as g,p as B}from"./src-Bssc388C.js";import{T as dt,b as H,x as C}from"./chunk-DU6HZSFF-mLZ_DAj9.js";import{$ as xt,J as bt,K as wt,Q as Mt,X as Lt,Y as _t,Z as St,et as nt,g as q,nt as Ot,q as Ut,rt,tt as Et,u as $t}from"./chunk-75Z2AOVW-CTyOxDW3.js";import{t as vt}from"./line-Dk_ouzM8.js";import{n as Xt,r as st}from"./chunk-GMAD6QVW-Vk29EsOn.js";import{i as Yt,n as Wt}from"./chunk-P2QGCYS3-DD1uZyrA.js";import{t as Tt}from"./rough.esm-DnC5Tr1g.js";import{t as F}from"./chunk-4HAMMTFA-Duh1dbZg.js";import{n as Ht}from"./chunk-GVQU2GXP-D5bNpR4K.js";var Q=h((r,t)=>{if(t)return"translate("+-r.width/2+", "+-r.height/2+")";const a=r.x??0,e=r.y??0;return"translate("+-(a+r.width/2)+", "+-(e+r.height/2)+")"},"computeLabelTransform"),S={aggregation:17.25,extension:17.25,composition:17.25,dependency:6,lollipop:13.5,arrow_point:4,arrow_barb:0,arrow_barb_neo:5.5},ot={arrow_point:4,arrow_cross:12.5,arrow_circle:12.5};function Z(r,t){if(r===void 0||t===void 0)return{angle:0,deltaX:0,deltaY:0};r=y(r),t=y(t);const[a,e]=[r.x,r.y],[n,o]=[t.x,t.y],s=n-a,i=o-e;return{angle:Math.atan(i/s),deltaX:s,deltaY:i}}T(Z,"calculateDeltaAndAngle");h(Z,"calculateDeltaAndAngle");var y=h(r=>Array.isArray(r)?{x:r[0],y:r[1]}:r,"pointTransformer"),Bt=h(r=>({x:h(function(t,a,e){let n=0;const o=y(e[0]).x<y(e[e.length-1]).x?"left":"right";if(a===0&&Object.hasOwn(S,r.arrowTypeStart)){const{angle:d,deltaX:m}=Z(e[0],e[1]);n=S[r.arrowTypeStart]*Math.cos(d)*(m>=0?1:-1)}else if(a===e.length-1&&Object.hasOwn(S,r.arrowTypeEnd)){const{angle:d,deltaX:m}=Z(e[e.length-1],e[e.length-2]);n=S[r.arrowTypeEnd]*Math.cos(d)*(m>=0?1:-1)}const s=Math.abs(y(t).x-y(e[e.length-1]).x),i=Math.abs(y(t).y-y(e[e.length-1]).y),c=Math.abs(y(t).x-y(e[0]).x),k=Math.abs(y(t).y-y(e[0]).y),l=S[r.arrowTypeStart],f=S[r.arrowTypeEnd],p=1;if(s<f&&s>0&&i<f){let d=f+p-s;d*=o==="right"?-1:1,n-=d}if(c<l&&c>0&&k<l){let d=l+p-c;d*=o==="right"?-1:1,n+=d}return y(t).x+n},"x"),y:h(function(t,a,e){let n=0;const o=y(e[0]).y<y(e[e.length-1]).y?"down":"up";if(a===0&&Object.hasOwn(S,r.arrowTypeStart)){const{angle:d,deltaY:m}=Z(e[0],e[1]);n=S[r.arrowTypeStart]*Math.abs(Math.sin(d))*(m>=0?1:-1)}else if(a===e.length-1&&Object.hasOwn(S,r.arrowTypeEnd)){const{angle:d,deltaY:m}=Z(e[e.length-1],e[e.length-2]);n=S[r.arrowTypeEnd]*Math.abs(Math.sin(d))*(m>=0?1:-1)}const s=Math.abs(y(t).y-y(e[e.length-1]).y),i=Math.abs(y(t).x-y(e[e.length-1]).x),c=Math.abs(y(t).y-y(e[0]).y),k=Math.abs(y(t).x-y(e[0]).x),l=S[r.arrowTypeStart],f=S[r.arrowTypeEnd],p=1;if(s<f&&s>0&&i<f){let d=f+p-s;d*=o==="up"?-1:1,n-=d}if(c<l&&c>0&&k<l){let d=l+p-c;d*=o==="up"?-1:1,n+=d}return y(t).y+n},"y")}),"getLineFunctionsWithOffset"),Ct=h((r,t,a,e,n,o=!1,s)=>{t.arrowTypeStart&&it(r,"start",t.arrowTypeStart,a,e,n,o,s),t.arrowTypeEnd&&it(r,"end",t.arrowTypeEnd,a,e,n,o,s)},"addEdgeMarkers"),zt={arrow_cross:{type:"cross",fill:!1},arrow_point:{type:"point",fill:!0},arrow_barb:{type:"barb",fill:!0},arrow_barb_neo:{type:"barb",fill:!0},arrow_circle:{type:"circle",fill:!1},aggregation:{type:"aggregation",fill:!1},extension:{type:"extension",fill:!1},composition:{type:"composition",fill:!0},dependency:{type:"dependency",fill:!0},lollipop:{type:"lollipop",fill:!1},only_one:{type:"onlyOne",fill:!1},zero_or_one:{type:"zeroOrOne",fill:!1},one_or_more:{type:"oneOrMore",fill:!1},zero_or_more:{type:"zeroOrMore",fill:!1},requirement_arrow:{type:"requirement_arrow",fill:!1},requirement_contains:{type:"requirement_contains",fill:!1}},Rt=["cross","point","circle","lollipop","aggregation","extension","composition","dependency","barb"],it=h((r,t,a,e,n,o,s=!1,i)=>{if(!a||a==="none")return;const c=zt[a],k=c&&Rt.includes(c.type);if(!c){g.warn(`Unknown arrow type: ${a}`);return}const l=`${n}_${o}-${c.type}${t==="start"?"Start":"End"}${s&&k?"-margin":""}`;if(i&&i.trim()!==""){const f=`${l}_${i.replace(/[^\dA-Za-z]/g,"_")}`;if(!document.getElementById(f)){const p=document.getElementById(l);if(p){const d=p.cloneNode(!0);d.id=f,d.querySelectorAll("path, circle, line").forEach(m=>{m.setAttribute("stroke",i),c.fill&&m.setAttribute("fill",i)}),p.parentNode?.appendChild(d)}}r.attr(`marker-${t}`,`url(${e}#${f})`)}else r.attr(`marker-${t}`,`url(${e}#${l})`)},"addEdgeMarker"),At=h(r=>typeof r=="string"?r:C()?.flowchart?.curve,"resolveEdgeCurveType"),J=new Map,_=new Map,sr=h(()=>{J.clear(),_.clear()},"clear"),or=h(r=>!!(r.label||r.startLabelLeft||r.startLabelRight||r.endLabelLeft||r.endLabelRight),"hasEdgeLabel"),N=h(r=>r?typeof r=="string"?r:r.reduce((t,a)=>t+";"+a,""):"","getLabelStyles"),ir=h(async(r,t)=>{const a=C();let e=dt(a);const{labelStyles:n}=Yt(t);t.labelStyle=n;const o=r.insert("g").attr("class","edgeLabel"),s=o.insert("g").attr("class","label").attr("data-id",t.id),i=t.labelType==="markdown",c=await Xt(r,t.label,{style:N(t.labelStyle),useHtmlLabels:e,addSvgBackground:!0,isNode:!1,markdown:i,width:void 0},a);s.node().appendChild(c),g.info("abc82",t,t.labelType);let k,l;if(e){const p=c.children[0],d=B(c);k=await st.measure(()=>p.getBoundingClientRect()),l=k,d.attr("width",k.width),d.attr("height",k.height)}else{const p=B(c).select("text").node();await st.measure(()=>{k=c.getBBox(),p&&typeof p.getBBox=="function"?l=p.getBBox():l=k})}s.attr("transform",Q(l,e)),J.set(t.id,o),t.width=k.width,t.height=k.height;let f;if(t.startLabelLeft){const p=r.insert("g").attr("class","edgeTerminals"),d=p.insert("g").attr("class","inner"),m=await F(d,t.startLabelLeft,N(t.labelStyle)||"",!1,!1);f=m;let u=m.getBBox();if(e){const M=m.children[0],b=B(m);u=M.getBoundingClientRect(),b.attr("width",u.width),b.attr("height",u.height)}d.attr("transform",Q(u,e)),_.get(t.id)||_.set(t.id,{}),_.get(t.id).startLeft=p,j(f,t.startLabelLeft)}if(t.startLabelRight){const p=r.insert("g").attr("class","edgeTerminals"),d=p.insert("g").attr("class","inner"),m=await F(d,t.startLabelRight,N(t.labelStyle)||"",!1,!1);f=m;let u=m.getBBox();if(e){const M=m.children[0],b=B(m);u=M.getBoundingClientRect(),b.attr("width",u.width),b.attr("height",u.height)}d.attr("transform",Q(u,e)),_.get(t.id)||_.set(t.id,{}),_.get(t.id).startRight=p,j(f,t.startLabelRight)}if(t.endLabelLeft){const p=r.insert("g").attr("class","edgeTerminals"),d=p.insert("g").attr("class","inner"),m=await F(p,t.endLabelLeft,N(t.labelStyle)||"",!1,!1);f=m;let u=m.getBBox();if(e){const M=m.children[0],b=B(m);u=M.getBoundingClientRect(),b.attr("width",u.width),b.attr("height",u.height)}d.attr("transform",Q(u,e)),_.get(t.id)||_.set(t.id,{}),_.get(t.id).endLeft=p,j(f,t.endLabelLeft)}if(t.endLabelRight){const p=r.insert("g").attr("class","edgeTerminals"),d=p.insert("g").attr("class","inner"),m=await F(p,t.endLabelRight,N(t.labelStyle)||"",!1,!1);f=m;let u=m.getBBox();if(e){const M=m.children[0],b=B(m);u=M.getBoundingClientRect(),b.attr("width",u.width),b.attr("height",u.height)}d.attr("transform",Q(u,e)),_.get(t.id)||_.set(t.id,{}),_.get(t.id).endRight=p,j(f,t.endLabelRight)}return c},"insertEdgeLabel");function j(r,t){dt(C())&&r&&(r.style.width=t.length*9+"px",r.style.height="12px")}T(j,"setTerminalWidth");h(j,"setTerminalWidth");var lr=h((r,t)=>{g.debug("Moving label abc88 ",r.id,r.label,J.get(r.id),t);let a=t.updatedPath?t.updatedPath:t.originalPath;const e=C(),{subGraphTitleTotalMargin:n}=Ht(e);if(r.label){const o=J.get(r.id);let s=r.x,i=r.y;if(a){const c=q.calcLabelPosition(a);g.debug("Moving label "+r.label+" from (",s,",",i,") to (",c.x,",",c.y,") abc88"),t.updatedPath&&(s=c.x,i=c.y)}o.attr("transform",`translate(${s}, ${i+n/2})`)}if(r.startLabelLeft){const o=_.get(r.id).startLeft;let s=r.x,i=r.y;if(a){const c=q.calcTerminalLabelPosition(r.arrowTypeStart?10:0,"start_left",a);s=c.x,i=c.y}o.attr("transform",`translate(${s}, ${i})`)}if(r.startLabelRight){const o=_.get(r.id).startRight;let s=r.x,i=r.y;if(a){const c=q.calcTerminalLabelPosition(r.arrowTypeStart?10:0,"start_right",a);s=c.x,i=c.y}o.attr("transform",`translate(${s}, ${i})`)}if(r.endLabelLeft){const o=_.get(r.id).endLeft;let s=r.x,i=r.y;if(a){const c=q.calcTerminalLabelPosition(r.arrowTypeEnd?10:0,"end_left",a);s=c.x,i=c.y}o.attr("transform",`translate(${s}, ${i})`)}if(r.endLabelRight){const o=_.get(r.id).endRight;let s=r.x,i=r.y;if(a){const c=q.calcTerminalLabelPosition(r.arrowTypeEnd?10:0,"end_right",a);s=c.x,i=c.y}o.attr("transform",`translate(${s}, ${i})`)}},"positionEdgeLabel"),qt=h((r,t)=>{if(!r?.isLabelEdge||!r?.id?.endsWith("-to-label")||!Array.isArray(t)||t.length!==2)return t;const[a,e]=t,n=Math.abs(e.x-a.x),o=Math.abs(e.y-a.y);return n<.001||o<.001?t:o>=n?[a,{x:a.x,y:e.y},e]:[a,{x:e.x,y:a.y},e]},"orthogonalizeToLabelClippedPoints"),Pt=h((r,t)=>{const a=r.x,e=r.y,n=Math.abs(t.x-a),o=Math.abs(t.y-e),s=r.width/2,i=r.height/2;return n>=s||o>=i},"outsideNode"),It=h((r,t,a)=>{g.debug(`intersection calc abc89:
|
|
2
2
|
outsidePoint: ${JSON.stringify(t)}
|
|
3
3
|
insidePoint : ${JSON.stringify(a)}
|
|
4
4
|
node : x:${r.x} y:${r.y} w:${r.width} h:${r.height}`);const e=r.x,n=r.y,o=Math.abs(e-a.x),s=r.width/2;let i=a.x<t.x?s-o:s+o;const c=r.height/2,k=Math.abs(t.y-a.y),l=Math.abs(t.x-a.x);if(Math.abs(n-t.y)*s>Math.abs(e-t.x)*c){let f=a.y<t.y?t.y-c-n:n-c-t.y;i=l*f/k;const p={x:a.x<t.x?a.x+i:a.x-l+i,y:a.y<t.y?a.y+k-f:a.y-k+f};return i===0&&(p.x=t.x,p.y=t.y),l===0&&(p.x=t.x),k===0&&(p.y=t.y),g.debug(`abc89 top/bottom calc, Q ${k}, q ${f}, R ${l}, r ${i}`,p),p}else{a.x<t.x?i=t.x-s-e:i=e-s-t.x;let f=k*i/l,p=a.x<t.x?a.x+l-i:a.x-l+i,d=a.y<t.y?a.y+f:a.y-f;return g.debug(`sides calc abc89, Q ${k}, q ${f}, R ${l}, r ${i}`,{_x:p,_y:d}),i===0&&(p=t.x,d=t.y),l===0&&(p=t.x),k===0&&(d=t.y),{x:p,y:d}}},"intersection"),lt=h((r,t)=>{g.warn("abc88 cutPathAtIntersect",r,t);let a=[],e=r[0],n=!1;return r.forEach(o=>{if(g.info("abc88 checking point",o,t),!Pt(t,o)&&!n){const s=It(t,e,o);g.debug("abc88 inside",o,e,s),g.debug("abc88 intersection",s,t);let i=!1;a.forEach(c=>{i=i||c.x===s.x&&c.y===s.y}),a.some(c=>c.x===s.x&&c.y===s.y)?g.warn("abc88 no intersect",s,a):a.push(s),n=!0}else g.warn("abc88 outside",o,e),e=o,n||a.push(o)}),g.debug("returning points",a),a},"cutPathAtIntersect");function pt(r){const t=[],a=[];for(let e=1;e<r.length-1;e++){const n=r[e-1],o=r[e],s=r[e+1];(n.x===o.x&&o.y===s.y&&Math.abs(o.x-s.x)>5&&Math.abs(o.y-n.y)>5||n.y===o.y&&o.x===s.x&&Math.abs(o.x-n.x)>5&&Math.abs(o.y-s.y)>5)&&(t.push(o),a.push(e))}return{cornerPoints:t,cornerPointPositions:a}}T(pt,"extractCornerPoints");h(pt,"extractCornerPoints");var ct=h(function(r,t,a){const e=t.x-r.x,n=t.y-r.y,o=a/Math.sqrt(e*e+n*n);return{x:t.x-o*e,y:t.y-o*n}},"findAdjacentPoint"),Qt=h(function(r){const{cornerPointPositions:t}=pt(r),a=[];for(let e=0;e<r.length;e++)if(t.includes(e)){const n=r[e-1],o=r[e+1],s=r[e],i=ct(n,s,5),c=ct(o,s,5),k=c.x-i.x,l=c.y-i.y;a.push(i);const f=Math.sqrt(2)*2;let p={x:s.x,y:s.y};if(Math.abs(o.x-n.x)>10&&Math.abs(o.y-n.y)>=10){g.debug("Corner point fixing",Math.abs(o.x-n.x),Math.abs(o.y-n.y));const d=5;s.x===i.x?p={x:k<0?i.x-d+f:i.x+d-f,y:l<0?i.y-f:i.y+f}:p={x:k<0?i.x-f:i.x+f,y:l<0?i.y-d+f:i.y+d-f}}else g.debug("Corner point skipping fixing",Math.abs(o.x-n.x),Math.abs(o.y-n.y));a.push(p,c)}else a.push(r[e]);return a},"fixCorners"),Nt=h((r,t,a)=>{const e=r-t-a,n=2,o=2,s=Math.floor(e/4);return`0 ${t} ${Array(Number.isFinite(s)?Math.max(0,s):0).fill(`${n} ${o}`).join(" ")} ${a}`},"generateDashArray"),cr=h(function(r,t,a,e,n,o,s,i=!1){if(!s)throw new Error(`insertEdge: missing diagramId for edge "${t.id}" — edge IDs require a diagram prefix for uniqueness`);const{handDrawnSeed:c,layout:k}=C();let l=t.points,f=!1;const p=n;var d=o;const m=[];for(const x in t.cssCompiledStyles)Wt(x)||m.push(t.cssCompiledStyles[x]);if(k==="swimlane"){if(d.intersect&&p.intersect&&Array.isArray(l)&&l.length>=2)if(l.length===2)l=[p.intersect(l[0]),d.intersect(l[1])];else{const x=l.slice(1,-1),v=x[0],U=x[x.length-1],E=.5,A=Math.abs(l[l.length-1].x-U.x)<E&&Math.abs(l[l.length-1].y-U.y)<E,X=p.intersect(v),Y=A?U:d.intersect(U),W=Math.abs(Y.x-U.x)<E&&Math.abs(Y.y-U.y)<E,I=Math.abs(X.x-v.x)<E&&Math.abs(X.y-v.y)<E?[]:[X],yt=W?[]:[Y];l=[...I,...x,...yt]}l=qt(t,l)}else d.intersect&&p.intersect&&!i&&(l=l.slice(1,t.points.length-1),l.unshift(p.intersect(l[0])),l.push(d.intersect(l[l.length-1])));const u=btoa(JSON.stringify(l));t.toCluster&&(g.info("to cluster abc88",a.get(t.toCluster)),l=lt(t.points,a.get(t.toCluster).node),f=!0),t.fromCluster&&(g.debug("from cluster abc88",a.get(t.fromCluster),JSON.stringify(l,null,2)),l=lt(l.reverse(),a.get(t.fromCluster).node).reverse(),f=!0);let M=l.filter(x=>!Number.isNaN(x.y));const b=At(t.curve);b!=="rounded"&&(M=Qt(M));let w=rt;switch(b){case"linear":w=rt;break;case"basis":w=nt;break;case"cardinal":w=xt;break;case"bumpX":w=Et;break;case"bumpY":w=Ot;break;case"catmullRom":w=Mt;break;case"monotoneX":w=Lt;break;case"monotoneY":w=St;break;case"natural":w=_t;break;case"step":w=bt;break;case"stepAfter":w=wt;break;case"stepBefore":w=Ut;break;case"rounded":w=rt;break;default:w=nt}const{x:G,y:P}=Bt(t),z=vt().x(G).y(P).curve(w);let O;switch(t.thickness){case"normal":O="edge-thickness-normal";break;case"thick":O="edge-thickness-thick";break;case"invisible":O="edge-thickness-invisible";break;default:O="edge-thickness-normal"}switch(t.pattern){case"solid":O+=" edge-pattern-solid";break;case"dotted":O+=" edge-pattern-dotted";break;case"dashed":O+=" edge-pattern-dashed";break;default:O+=" edge-pattern-solid"}let L,V=b==="rounded"?ht(ft(M,t),5):z(M);const $=Array.isArray(t.style)?t.style:[t.style];let et=$.find(x=>x?.startsWith("stroke:")),R="";t.animate&&(R="edge-animation-fast"),t.animation&&(R="edge-animation-"+t.animation);let K=!1;if(t.look==="handDrawn"){const x=Tt.svg(r);Object.assign([],M);const v=x.path(V,{roughness:.3,seed:c});O+=" transition",L=B(v).select("path").attr("id",`${s}-${t.id}`).attr("class"," "+O+(t.classes?" "+t.classes:"")+(R?" "+R:"")).attr("style",$?$.reduce((E,A)=>E+";"+A,""):"");let U=L.attr("d");L.attr("d",U),r.node().appendChild(L.node())}else{const x=m.join(";"),v=$?$.reduce((W,I)=>W+I+";",""):"",U=(x?x+";"+v+";":v)+";"+($?$.reduce((W,I)=>W+";"+I,""):"");L=r.append("path").attr("d",V).attr("id",`${s}-${t.id}`).attr("class"," "+O+(t.classes?" "+t.classes:"")+(R?" "+R:"")).attr("style",U),et=U.match(/stroke:([^;]+)/)?.[1],K=t.animate===!0||!!t.animation||x.includes("animation");const E=L.node(),A=typeof E.getTotalLength=="function"?E.getTotalLength():0,X=ot[t.arrowTypeStart]||0,Y=ot[t.arrowTypeEnd]||0;if(t.look==="neo"&&!K){const W=`stroke-dasharray: ${t.pattern==="dotted"||t.pattern==="dashed"?Nt(A,X,Y):`0 ${X} ${A-X-Y} ${Y}`}; stroke-dashoffset: 0;`;L.attr("style",W+L.attr("style"))}}L.attr("data-edge",!0),L.attr("data-et","edge"),L.attr("data-id",t.id),L.attr("data-points",u),L.attr("data-look",$t(t.look)),t.showPoints&&M.forEach(x=>{r.append("circle").style("stroke","red").style("fill","red").attr("r",1).attr("cx",x.x).attr("cy",x.y)});let D="";(C().flowchart.arrowMarkerAbsolute||C().state.arrowMarkerAbsolute)&&(D=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,D=D.replace(/\(/g,"\\(").replace(/\)/g,"\\)")),g.info("arrowTypeStart",t.arrowTypeStart),g.info("arrowTypeEnd",t.arrowTypeEnd);const mt=!K&&t?.look==="neo";Ct(L,t,D,s,e,mt,et);const kt=Math.floor(l.length/2),ut=l[kt];q.isLabelCoordinateInPath(ut,L.attr("d"))||(f=!0);let tt={};return f&&(tt.updatedPath=l),tt.originalPath=t.points,tt},"insertEdge");function ht(r,t){if(r.length<2)return"";let a="";const e=r.length,n=1e-5;for(let o=0;o<e;o++){const s=r[o],i=r[o-1],c=r[o+1];if(o===0)a+=`M${s.x},${s.y}`;else if(o===e-1)a+=`L${s.x},${s.y}`;else{const k=s.x-i.x,l=s.y-i.y,f=c.x-s.x,p=c.y-s.y,d=Math.hypot(k,l),m=Math.hypot(f,p);if(d<n||m<n){a+=`L${s.x},${s.y}`;continue}const u=k/d,M=l/d,b=f/m,w=p/m,G=u*b+M*w,P=Math.acos(Math.max(-1,Math.min(1,G)));if(P<n||Math.abs(Math.PI-P)<n){a+=`L${s.x},${s.y}`;continue}const z=Math.min(t/Math.sin(P/2),d/2,m/2),O=s.x-u*z,L=s.y-M*z,V=s.x+b*z,$=s.y+w*z;a+=`L${O},${L}`,a+=`Q${s.x},${s.y} ${V},${$}`}}return a}T(ht,"generateRoundedPath");h(ht,"generateRoundedPath");function at(r,t){if(!r||!t)return{angle:0,deltaX:0,deltaY:0};const a=t.x-r.x,e=t.y-r.y;return{angle:Math.atan2(e,a),deltaX:a,deltaY:e}}T(at,"calculateDeltaAndAngle2");h(at,"calculateDeltaAndAngle");function ft(r,t){const a=r.map(n=>({...n}));if(r.length>=2&&S[t.arrowTypeStart]){const n=S[t.arrowTypeStart],o=r[0],s=r[1],{angle:i}=at(o,s),c=n*Math.cos(i),k=n*Math.sin(i);a[0].x=o.x+c,a[0].y=o.y+k}const e=r.length;if(e>=2&&S[t.arrowTypeEnd]){const n=S[t.arrowTypeEnd],o=r[e-1],s=r[e-2],{angle:i}=at(s,o),c=n*Math.cos(i),k=n*Math.sin(i);a[e-1].x=o.x-c,a[e-1].y=o.y-k}return a}T(ft,"applyMarkerOffsetsToPoints");h(ft,"applyMarkerOffsetsToPoints");var Zt=h((r,t,a,e)=>{t.forEach(n=>{jt[n](r,a,e)})},"insertMarkers"),jt={extension:h((r,t,a)=>{g.trace("Making markers for ",a),r.append("defs").append("marker").attr("id",a+"_"+t+"-extensionStart").attr("class","marker extension "+t).attr("refX",18).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 1,7 L18,13 V 1 Z"),r.append("defs").append("marker").attr("id",a+"_"+t+"-extensionEnd").attr("class","marker extension "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 1,1 V 13 L18,7 Z"),r.append("marker").attr("id",a+"_"+t+"-extensionStart-margin").attr("class","marker extension "+t).attr("refX",18).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").attr("viewBox","0 0 20 14").append("polygon").attr("points","10,7 18,13 18,1").style("stroke-width",2).style("stroke-dasharray","0"),r.append("defs").append("marker").attr("id",a+"_"+t+"-extensionEnd-margin").attr("class","marker extension "+t).attr("refX",9).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").attr("viewBox","0 0 20 14").append("polygon").attr("points","10,1 10,13 18,7").style("stroke-width",2).style("stroke-dasharray","0")},"extension"),composition:h((r,t,a)=>{r.append("defs").append("marker").attr("id",a+"_"+t+"-compositionStart").attr("class","marker composition "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",a+"_"+t+"-compositionEnd").attr("class","marker composition "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",a+"_"+t+"-compositionStart-margin").attr("class","marker composition "+t).attr("refX",15).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("viewBox","0 0 15 15").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",a+"_"+t+"-compositionEnd-margin").attr("class","marker composition "+t).attr("refX",3.5).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"composition"),aggregation:h((r,t,a)=>{r.append("defs").append("marker").attr("id",a+"_"+t+"-aggregationStart").attr("class","marker aggregation "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",a+"_"+t+"-aggregationEnd").attr("class","marker aggregation "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",a+"_"+t+"-aggregationStart-margin").attr("class","marker aggregation "+t).attr("refX",15).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",2).attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",a+"_"+t+"-aggregationEnd-margin").attr("class","marker aggregation "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",2).attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"aggregation"),dependency:h((r,t,a)=>{r.append("defs").append("marker").attr("id",a+"_"+t+"-dependencyStart").attr("class","marker dependency "+t).attr("refX",6).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",a+"_"+t+"-dependencyEnd").attr("class","marker dependency "+t).attr("refX",13).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z"),r.append("defs").append("marker").attr("id",a+"_"+t+"-dependencyStart-margin").attr("class","marker dependency "+t).attr("refX",4).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",a+"_"+t+"-dependencyEnd-margin").attr("class","marker dependency "+t).attr("refX",16).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},"dependency"),lollipop:h((r,t,a)=>{r.append("defs").append("marker").attr("id",a+"_"+t+"-lollipopStart").attr("class","marker lollipop "+t).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),r.append("defs").append("marker").attr("id",a+"_"+t+"-lollipopEnd").attr("class","marker lollipop "+t).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),r.append("defs").append("marker").attr("id",a+"_"+t+"-lollipopStart-margin").attr("class","marker lollipop "+t).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6).attr("stroke-width",2),r.append("defs").append("marker").attr("id",a+"_"+t+"-lollipopEnd-margin").attr("class","marker lollipop "+t).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6).attr("stroke-width",2)},"lollipop"),point:h((r,t,a)=>{r.append("marker").attr("id",a+"_"+t+"-pointEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),r.append("marker").attr("id",a+"_"+t+"-pointStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",4.5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).attr("orient","auto").append("path").attr("d","M 0 5 L 10 10 L 10 0 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),r.append("marker").attr("id",a+"_"+t+"-pointEnd-margin").attr("class","marker "+t).attr("viewBox","0 0 11.5 14").attr("refX",11.5).attr("refY",7).attr("markerUnits","userSpaceOnUse").attr("markerWidth",10.5).attr("markerHeight",14).attr("orient","auto").append("path").attr("d","M 0 0 L 11.5 7 L 0 14 z").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0"),r.append("marker").attr("id",a+"_"+t+"-pointStart-margin").attr("class","marker "+t).attr("viewBox","0 0 11.5 14").attr("refX",1).attr("refY",7).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11.5).attr("markerHeight",14).attr("orient","auto").append("polygon").attr("points","0,7 11.5,14 11.5,0").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0")},"point"),circle:h((r,t,a)=>{r.append("marker").attr("id",a+"_"+t+"-circleEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",11).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),r.append("marker").attr("id",a+"_"+t+"-circleStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",-1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),r.append("marker").attr("id",a+"_"+t+"-circleEnd-margin").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refY",5).attr("refX",12.25).attr("markerUnits","userSpaceOnUse").attr("markerWidth",14).attr("markerHeight",14).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0"),r.append("marker").attr("id",a+"_"+t+"-circleStart-margin").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",-2).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",14).attr("markerHeight",14).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0")},"circle"),cross:h((r,t,a)=>{r.append("marker").attr("id",a+"_"+t+"-crossEnd").attr("class","marker cross "+t).attr("viewBox","0 0 11 11").attr("refX",12).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),r.append("marker").attr("id",a+"_"+t+"-crossStart").attr("class","marker cross "+t).attr("viewBox","0 0 11 11").attr("refX",-1).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),r.append("marker").attr("id",a+"_"+t+"-crossEnd-margin").attr("class","marker cross "+t).attr("viewBox","0 0 15 15").attr("refX",17.7).attr("refY",7.5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 1,1 L 14,14 M 1,14 L 14,1").attr("class","arrowMarkerPath").style("stroke-width",2.5),r.append("marker").attr("id",a+"_"+t+"-crossStart-margin").attr("class","marker cross "+t).attr("viewBox","0 0 15 15").attr("refX",-3.5).attr("refY",7.5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 1,1 L 14,14 M 1,14 L 14,1").attr("class","arrowMarkerPath").style("stroke-width",2.5).style("stroke-dasharray","1,0")},"cross"),barb:h((r,t,a)=>{r.append("defs").append("marker").attr("id",a+"_"+t+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},"barb"),barbNeo:h((r,t,a)=>{const{themeVariables:e}=H(),{transitionColor:n}=e;r.append("defs").append("marker").attr("id",a+"_"+t+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","strokeWidth").attr("orient","auto").append("path").attr("d","M 19,7 L11,14 L13,7 L11,0 Z"),r.append("defs").append("marker").attr("id",a+"_"+t+"-barbEnd-margin").attr("refX",17).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M 19,7 L11,14 L13,7 L11,0 Z").attr("fill",`${n}`)},"barbNeo"),only_one:h((r,t,a)=>{r.append("defs").append("marker").attr("id",a+"_"+t+"-onlyOneStart").attr("class","marker onlyOne "+t).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("d","M9,0 L9,18 M15,0 L15,18"),r.append("defs").append("marker").attr("id",a+"_"+t+"-onlyOneEnd").attr("class","marker onlyOne "+t).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("d","M3,0 L3,18 M9,0 L9,18")},"only_one"),zero_or_one:h((r,t,a)=>{const e=r.append("defs").append("marker").attr("id",a+"_"+t+"-zeroOrOneStart").attr("class","marker zeroOrOne "+t).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");e.append("circle").attr("fill","white").attr("cx",21).attr("cy",9).attr("r",6),e.append("path").attr("d","M9,0 L9,18");const n=r.append("defs").append("marker").attr("id",a+"_"+t+"-zeroOrOneEnd").attr("class","marker zeroOrOne "+t).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");n.append("circle").attr("fill","white").attr("cx",9).attr("cy",9).attr("r",6),n.append("path").attr("d","M21,0 L21,18")},"zero_or_one"),one_or_more:h((r,t,a)=>{r.append("defs").append("marker").attr("id",a+"_"+t+"-oneOrMoreStart").attr("class","marker oneOrMore "+t).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27"),r.append("defs").append("marker").attr("id",a+"_"+t+"-oneOrMoreEnd").attr("class","marker oneOrMore "+t).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18")},"one_or_more"),zero_or_more:h((r,t,a)=>{const e=r.append("defs").append("marker").attr("id",a+"_"+t+"-zeroOrMoreStart").attr("class","marker zeroOrMore "+t).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");e.append("circle").attr("fill","white").attr("cx",48).attr("cy",18).attr("r",6),e.append("path").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18");const n=r.append("defs").append("marker").attr("id",a+"_"+t+"-zeroOrMoreEnd").attr("class","marker zeroOrMore "+t).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");n.append("circle").attr("fill","white").attr("cx",9).attr("cy",18).attr("r",6),n.append("path").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18")},"zero_or_more"),only_one_neo:h((r,t,a)=>{const{themeVariables:e}=H(),{strokeWidth:n}=e;r.append("defs").append("marker").attr("id",a+"_"+t+"-onlyOneStart").attr("class","marker onlyOne "+t).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M9,0 L9,18 M15,0 L15,18").attr("stroke-width",`${n}`),r.append("defs").append("marker").attr("id",a+"_"+t+"-onlyOneEnd").attr("class","marker onlyOne "+t).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M3,0 L3,18 M9,0 L9,18").attr("stroke-width",`${n}`)},"only_one_neo"),zero_or_one_neo:h((r,t,a)=>{const{themeVariables:e}=H(),{strokeWidth:n,mainBkg:o}=e,s=r.append("defs").append("marker").attr("id",a+"_"+t+"-zeroOrOneStart").attr("class","marker zeroOrOne "+t).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto").attr("markerUnits","userSpaceOnUse");s.append("circle").attr("fill",o??"white").attr("cx",21).attr("cy",9).attr("stroke-width",`${n}`).attr("r",6),s.append("path").attr("d","M9,0 L9,18").attr("stroke-width",`${n}`);const i=r.append("defs").append("marker").attr("id",a+"_"+t+"-zeroOrOneEnd").attr("class","marker zeroOrOne "+t).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("markerUnits","userSpaceOnUse").attr("orient","auto");i.append("circle").attr("fill",o??"white").attr("cx",9).attr("cy",9).attr("stroke-width",`${n}`).attr("r",6),i.append("path").attr("d","M21,0 L21,18").attr("stroke-width",`${n}`)},"zero_or_one_neo"),one_or_more_neo:h((r,t,a)=>{const{themeVariables:e}=H(),{strokeWidth:n}=e;r.append("defs").append("marker").attr("id",a+"_"+t+"-oneOrMoreStart").attr("class","marker oneOrMore "+t).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27").attr("stroke-width",`${n}`),r.append("defs").append("marker").attr("id",a+"_"+t+"-oneOrMoreEnd").attr("class","marker oneOrMore "+t).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18").attr("stroke-width",`${n}`)},"one_or_more_neo"),zero_or_more_neo:h((r,t,a)=>{const{themeVariables:e}=H(),{strokeWidth:n,mainBkg:o}=e,s=r.append("defs").append("marker").attr("id",a+"_"+t+"-zeroOrMoreStart").attr("class","marker zeroOrMore "+t).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("markerUnits","userSpaceOnUse").attr("orient","auto");s.append("circle").attr("fill",o??"white").attr("cx",45.5).attr("cy",18).attr("r",6).attr("stroke-width",`${n}`),s.append("path").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18").attr("stroke-width",`${n}`);const i=r.append("defs").append("marker").attr("id",a+"_"+t+"-zeroOrMoreEnd").attr("class","marker zeroOrMore "+t).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto").attr("markerUnits","userSpaceOnUse");i.append("circle").attr("fill",o??"white").attr("cx",11).attr("cy",18).attr("r",6).attr("stroke-width",`${n}`),i.append("path").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18").attr("stroke-width",`${n}`)},"zero_or_more_neo"),requirement_arrow:h((r,t,a)=>{r.append("defs").append("marker").attr("id",a+"_"+t+"-requirement_arrowEnd").attr("refX",20).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("path").attr("d",`M0,0
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{n as a}from"./chunk-Y2CYZVJY-OvsAdhaO.js";import{x as h}from"./chunk-DU6HZSFF-
|
|
1
|
+
import{n as a}from"./chunk-Y2CYZVJY-OvsAdhaO.js";import{x as h}from"./chunk-DU6HZSFF-mLZ_DAj9.js";var S=a(t=>{const{handDrawnSeed:r}=h();return{fill:t,hachureAngle:120,hachureGap:4,fillWeight:2,roughness:.7,stroke:t,seed:r}},"solidStateFill"),c=a(t=>Array.isArray(t)?t:t?t.split(";").map(r=>r.trim()).filter(Boolean):[],"normalizeStyleList"),p=a(t=>{const r=f([...t.cssCompiledStyles||[],...t.cssStyles||[],...c(t.labelStyle)]);return{stylesMap:r,stylesArray:[...r]}},"compileStyles"),f=a(t=>{const r=new Map;return t.forEach(s=>{const[i,o]=s.split(":");r.set(i.trim(),o?.trim())}),r},"styles2Map"),u=a(t=>t==="color"||t==="font-size"||t==="font-family"||t==="font-weight"||t==="font-style"||t==="text-decoration"||t==="text-align"||t==="text-transform"||t==="line-height"||t==="letter-spacing"||t==="word-spacing"||t==="text-shadow"||t==="text-overflow"||t==="white-space"||t==="word-wrap"||t==="word-break"||t==="overflow-wrap"||t==="hyphens","isLabelStyle"),v=a(t=>{const{stylesArray:r}=p(t),s=[],i=[],o=[],n=[];return r.forEach(e=>{const l=e[0];u(l)?s.push(e.join(":")+" !important"):(i.push(e.join(":")+" !important"),l.includes("stroke")&&o.push(e.join(":")+" !important"),l==="fill"&&n.push(e.join(":")+" !important"))}),{labelStyles:s.join(";"),nodeStyles:i.join(";"),stylesArray:r,borderStyles:o,backgroundStyles:n}},"styles2String"),w=a((t,r)=>{const{themeVariables:s,handDrawnSeed:i}=h(),{nodeBorder:o,mainBkg:n}=s,{stylesMap:e}=p(t);return Object.assign({roughness:.7,fill:e.get("fill")||n,fillStyle:"hachure",fillWeight:4,hachureGap:5.2,stroke:e.get("stroke")||o,seed:i,strokeWidth:e.get("stroke-width")?.replace("px","")||1.3,fillLineDash:[0,0],strokeLineDash:d(e.get("stroke-dasharray"))},r)},"userNodeOverrides"),d=a(t=>{if(!t)return[0,0];const r=t.trim().split(/\s+/).map(Number);if(r.length===1){const s=isNaN(r[0])?0:r[0];return[s,s]}return[isNaN(r[0])?0:r[0],isNaN(r[1])?0:r[1]]},"getStrokeDashArray");export{w as a,v as i,u as n,S as r,p as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{n as a}from"./chunk-Y2CYZVJY-OvsAdhaO.js";import{m as w}from"./src-Bssc388C.js";import{c as x}from"./chunk-DU6HZSFF-
|
|
1
|
+
import{n as a}from"./chunk-Y2CYZVJY-OvsAdhaO.js";import{m as w}from"./src-Bssc388C.js";import{c as x}from"./chunk-DU6HZSFF-mLZ_DAj9.js";var l=a((t,e,i,r)=>{t.attr("class",i);const{width:o,height:h,x:c,y:s}=m(t,e);x(t,h,o,r);const n=u(c,s,o,h,e);t.attr("viewBox",n),w.debug(`viewBox configured: ${n} with padding: ${e}`)},"setupViewPortForSVG"),m=a((t,e)=>{const i=t.node()?.getBBox()||{width:0,height:0,x:0,y:0};return{width:i.width+e*2,height:i.height+e*2,x:i.x,y:i.y}},"calculateDimensionsWithPadding"),u=a((t,e,i,r,o)=>`${t-o} ${e-o} ${i} ${r}`,"createViewBox");export{l as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var P=Object.defineProperty;var a=(t,n)=>P(t,"name",{value:n,configurable:!0});import{n as I}from"./chunk-Y2CYZVJY-OvsAdhaO.js";import{m as x}from"./src-Bssc388C.js";import{b as z,z as C}from"./chunk-DU6HZSFF-
|
|
1
|
+
var P=Object.defineProperty;var a=(t,n)=>P(t,"name",{value:n,configurable:!0});import{n as I}from"./chunk-Y2CYZVJY-OvsAdhaO.js";import{m as x}from"./src-Bssc388C.js";import{b as z,z as C}from"./chunk-DU6HZSFF-mLZ_DAj9.js";var G=Object.freeze({left:0,top:0,width:16,height:16}),v=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),M=Object.freeze({...G,...v}),V=Object.freeze({...M,body:"",hidden:!1}),R=Object.freeze({width:null,height:null}),H=Object.freeze({...R,...v}),L=a((t,n,o,r="")=>{const e=t.split(":");if(t.slice(0,1)==="@"){if(e.length<2||e.length>3)return null;r=e.shift().slice(1)}if(e.length>3||!e.length)return null;if(e.length>1){const l=e.pop(),u=e.pop(),h={provider:e.length>0?e[0]:r,prefix:u,name:l};return n&&!S(h)?null:h}const s=e[0],i=s.split("-");if(i.length>1){const l={provider:r,prefix:i.shift(),name:i.join("-")};return n&&!S(l)?null:l}if(o&&r===""){const l={provider:r,prefix:"",name:s};return n&&!S(l,o)?null:l}return null},"stringToIcon"),S=a((t,n)=>t?!!((n&&t.prefix===""||t.prefix)&&t.name):!1,"validateIconName");function B(t,n){const o={};!t.hFlip!=!n.hFlip&&(o.hFlip=!0),!t.vFlip!=!n.vFlip&&(o.vFlip=!0);const r=((t.rotate||0)+(n.rotate||0))%4;return r&&(o.rotate=r),o}a(B,"mergeIconTransformations");function k(t,n){const o=B(t,n);for(const r in V)r in v?r in t&&!(r in o)&&(o[r]=v[r]):r in n?o[r]=n[r]:r in t&&(o[r]=t[r]);return o}a(k,"mergeIconData");function W(t,n){const o=t.icons,r=t.aliases||Object.create(null),e=Object.create(null);function s(i){if(o[i])return e[i]=[];if(!(i in e)){e[i]=null;const l=r[i]&&r[i].parent,u=l&&s(l);u&&(e[i]=[l].concat(u))}return e[i]}return a(s,"resolve"),(n||Object.keys(o).concat(Object.keys(r))).forEach(s),e}a(W,"getIconsTree");function E(t,n,o){const r=t.icons,e=t.aliases||Object.create(null);let s={};function i(l){s=k(r[l]||e[l],s)}return a(i,"parse"),i(n),o.forEach(i),k(t,s)}a(E,"internalGetIconData");function _(t,n){if(t.icons[n])return E(t,n,[]);const o=W(t,[n])[n];return o?E(t,n,o):null}a(_,"getIconData");var K=/(-?[0-9.]*[0-9]+[0-9.]*)/g,U=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function F(t,n,o){if(n===1)return t;if(o=o||100,typeof t=="number")return Math.ceil(t*n*o)/o;if(typeof t!="string")return t;const r=t.split(K);if(r===null||!r.length)return t;const e=[];let s=r.shift(),i=U.test(s);for(;;){if(i){const l=parseFloat(s);isNaN(l)?e.push(s):e.push(Math.ceil(l*n*o)/o)}else e.push(s);if(s=r.shift(),s===void 0)return e.join("");i=!i}}a(F,"calculateSize");function q(t,n="defs"){let o="";const r=t.indexOf("<"+n);for(;r>=0;){const e=t.indexOf(">",r),s=t.indexOf("</"+n);if(e===-1||s===-1)break;const i=t.indexOf(">",s);if(i===-1)break;o+=t.slice(e+1,s).trim(),t=t.slice(0,r).trim()+t.slice(i+1)}return{defs:o,content:t}}a(q,"splitSVGDefs");function J(t,n){return t?"<defs>"+t+"</defs>"+n:n}a(J,"mergeDefsAndContent");function N(t,n,o){const r=q(t);return J(r.defs,n+r.content+o)}a(N,"wrapSVGContent");var Q=a(t=>t==="unset"||t==="undefined"||t==="none","isUnsetKeyword");function X(t,n){const o={...M,...t},r={...H,...n},e={left:o.left,top:o.top,width:o.width,height:o.height};let s=o.body;[o,r].forEach(p=>{const c=[],A=p.hFlip,O=p.vFlip;let g=p.rotate;A?O?g+=2:(c.push("translate("+(e.width+e.left).toString()+" "+(0-e.top).toString()+")"),c.push("scale(-1 1)"),e.top=e.left=0):O&&(c.push("translate("+(0-e.left).toString()+" "+(e.height+e.top).toString()+")"),c.push("scale(1 -1)"),e.top=e.left=0);let f;switch(g<0&&(g-=Math.floor(g/4)*4),g=g%4,g){case 1:f=e.height/2+e.top,c.unshift("rotate(90 "+f.toString()+" "+f.toString()+")");break;case 2:c.unshift("rotate(180 "+(e.width/2+e.left).toString()+" "+(e.height/2+e.top).toString()+")");break;case 3:f=e.width/2+e.left,c.unshift("rotate(-90 "+f.toString()+" "+f.toString()+")")}g%2===1&&(e.left!==e.top&&(f=e.left,e.left=e.top,e.top=f),e.width!==e.height&&(f=e.width,e.width=e.height,e.height=f)),c.length&&(s=N(s,'<g transform="'+c.join(" ")+'">',"</g>"))});const i=r.width,l=r.height,u=e.width,h=e.height;let d,w;i===null?(w=l===null?"1em":l==="auto"?h:l,d=F(w,u/h)):(d=i==="auto"?u:i,w=l===null?F(d,h/u):l==="auto"?h:l);const m={},y=a((p,c)=>{Q(c)||(m[p]=c.toString())},"setAttr");y("width",d),y("height",w);const D=[e.left,e.top,u,h];return m.viewBox=D.join(" "),{attributes:m,viewBox:D,body:s}}a(X,"iconToSVG");var Y=/\sid="(\S+)"/g,$=new Map;function Z(t){t=t.replace(/[0-9]+$/,"")||"a";const n=$.get(t)||0;return $.set(t,n+1),n?`${t}${n}`:t}a(Z,"nextID");function tt(t){const n=[];let o;for(;o=Y.exec(t);)n.push(o[1]);if(!n.length)return t;const r="suffix"+(Math.random()*16777216|Date.now()).toString(16);return n.forEach(e=>{const s=Z(e),i=e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");t=t.replace(new RegExp('([#;"])('+i+')([")]|\\.[a-z])',"g"),"$1"+s+r+"$3")}),t=t.replace(new RegExp(r,"g"),""),t}a(tt,"replaceIDs");function et(t,n){let o=t.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const r in n)o+=" "+r+'="'+n[r]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+o+">"+t+"</svg>"}a(et,"iconToHTML");var nt={body:'<g><rect width="80" height="80" style="fill: #087ebf; stroke-width: 0px;"/><text transform="translate(21.16 64.67)" style="fill: #fff; font-family: ArialMT, Arial; font-size: 67.75px;"><tspan x="0" y="0">?</tspan></text></g>',height:80,width:80},b=new Map,j=new Map,lt=I(t=>{for(const n of t){if(!n.name)throw new Error('Invalid icon loader. Must have a "name" property with non-empty string value.');if(x.debug("Registering icon pack:",n.name),"loader"in n)j.set(n.name,n.loader);else if("icons"in n)b.set(n.name,n.icons);else throw x.error("Invalid icon loader:",n),new Error('Invalid icon loader. Must have either "icons" or "loader" property.')}},"registerIconPacks"),T=I(async(t,n)=>{const o=L(t,!0,n!==void 0);if(!o)throw new Error(`Invalid icon name: ${t}`);const r=o.prefix||n;if(!r)throw new Error(`Icon name must contain a prefix: ${t}`);let e=b.get(r);if(!e){const i=j.get(r);if(!i)throw new Error(`Icon set not found: ${o.prefix}`);try{e={...await i(),prefix:r},b.set(r,e)}catch(l){throw x.error(l),new Error(`Failed to load icon set: ${o.prefix}`)}}const s=_(e,o.name);if(!s)throw new Error(`Icon not found: ${t}`);return s},"getRegisteredIconData"),at=I(async t=>{try{return await T(t),!0}catch{return!1}},"isIconAvailable"),ct=I(async(t,n,o)=>{let r;try{r=await T(t,n?.fallbackPrefix)}catch(i){x.error(i),r=nt}const e=X(r,n),s=et(tt(e.body),{...e.attributes,...o});return C(s,z())},"getIconSVG");export{nt as i,at as n,lt as r,ct as t};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var qt=Object.defineProperty;var W=(e,i)=>qt(e,"name",{value:i,configurable:!0});import{n as A}from"./chunk-Y2CYZVJY-OvsAdhaO.js";import{m as Z,p as it}from"./src-Bssc388C.js";import{$ as Qt,G as zt,H as Jt,K as Zt,U as $t,a as e1,d as t1,it as s1,k as i1,s as r1,v as a1,w as n1,x as Ae,y as u1}from"./chunk-DU6HZSFF-
|
|
1
|
+
var qt=Object.defineProperty;var W=(e,i)=>qt(e,"name",{value:i,configurable:!0});import{n as A}from"./chunk-Y2CYZVJY-OvsAdhaO.js";import{m as Z,p as it}from"./src-Bssc388C.js";import{$ as Qt,G as zt,H as Jt,K as Zt,U as $t,a as e1,d as t1,it as s1,k as i1,s as r1,v as a1,w as n1,x as Ae,y as u1}from"./chunk-DU6HZSFF-mLZ_DAj9.js";import{t as o1}from"./channel-CtmRoUn0.js";import{c as rt,g as at}from"./chunk-75Z2AOVW-CTyOxDW3.js";import{t as l1}from"./chunk-5VM5RSS4-2H3r6wq0.js";import{i as c1}from"./chunk-4HAMMTFA-Duh1dbZg.js";import{t as h1}from"./chunk-F27PBJKO-BI6MjXNA.js";import{t as d1}from"./chunk-XXDRQBXY-BhrH-9FX.js";import{t as p1}from"./chunk-POPQ4Y6H-B0MtQqlF.js";import{d as f1,n as g1,t as b1,u as A1}from"./mermaid.core-Be3XJK9z.js";var k1="flowchart-",m1=class{static{W(this,"FlowDB")}constructor(){this.vertexCounter=0,this.config=Ae(),this.diagramId="",this.vertices=new Map,this.edges=[],this.classes=new Map,this.subGraphs=[],this.subGraphLookup=new Map,this.tooltips=new Map,this.subCount=0,this.firstGraphFlag=!0,this.secCount=-1,this.posCrossRef=[],this.funs=[],this.setAccTitle=$t,this.setAccDescription=Jt,this.setDiagramTitle=Zt,this.getAccTitle=u1,this.getAccDescription=a1,this.getDiagramTitle=n1,this.funs.push(this.setupToolTips.bind(this)),this.addVertex=this.addVertex.bind(this),this.firstGraph=this.firstGraph.bind(this),this.setDirection=this.setDirection.bind(this),this.addSubGraph=this.addSubGraph.bind(this),this.addLink=this.addLink.bind(this),this.setLink=this.setLink.bind(this),this.updateLink=this.updateLink.bind(this),this.addClass=this.addClass.bind(this),this.setClass=this.setClass.bind(this),this.destructLink=this.destructLink.bind(this),this.setClickEvent=this.setClickEvent.bind(this),this.setTooltip=this.setTooltip.bind(this),this.updateLinkInterpolate=this.updateLinkInterpolate.bind(this),this.setClickFun=this.setClickFun.bind(this),this.bindFunctions=this.bindFunctions.bind(this),this.lex={firstGraph:this.firstGraph.bind(this)},this.clear(),this.setGen("gen-2")}static{A(this,"FlowDB")}sanitizeText(e){return r1.sanitizeText(e,this.config)}sanitizeNodeLabelType(e){switch(e){case"markdown":case"string":case"text":return e;default:return"markdown"}}setDiagramId(e){this.diagramId=e}lookUpDomId(e){for(const i of this.vertices.values())if(i.id===e)return this.diagramId?`${this.diagramId}-${i.domId}`:i.domId;return this.diagramId?`${this.diagramId}-${e}`:e}addVertex(e,i,r,a,n,h,p={},k){if(!e||e.trim().length===0)return;let d;if(k!==void 0){let l;k.includes(`
|
|
2
2
|
`)?l=k+`
|
|
3
3
|
`:l=`{
|
|
4
4
|
`+k+`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var L=Object.defineProperty;var $=(e,n)=>L(e,"name",{value:n,configurable:!0});import{n as c}from"./chunk-Y2CYZVJY-OvsAdhaO.js";import{m as x}from"./src-Bssc388C.js";import{D as I,a as X,b as _,c as H,x as q,z as U}from"./chunk-DU6HZSFF-
|
|
1
|
+
var L=Object.defineProperty;var $=(e,n)=>L(e,"name",{value:n,configurable:!0});import{n as c}from"./chunk-Y2CYZVJY-OvsAdhaO.js";import{m as x}from"./src-Bssc388C.js";import{D as I,a as X,b as _,c as H,x as q,z as U}from"./chunk-DU6HZSFF-mLZ_DAj9.js";import{f as G}from"./mermaid.core-Be3XJK9z.js";var A="",z="",b="",N=[],R=new Map,S=c(e=>U(e,q()),"sanitizeText"),v=c(e=>{switch(e.type){case"terminal":return{...e,value:S(e.value)};case"nonterminal":return{...e,name:S(e.name)};case"sequence":return{...e,elements:e.elements.map(v)};case"choice":return{...e,alternatives:e.alternatives.map(v)};case"optional":return{...e,element:v(e.element)};case"repetition":return{...e,element:v(e.element),separator:e.separator?v(e.separator):void 0};case"special":return{...e,text:S(e.text)}}},"sanitizeAstNode"),j=c(()=>{A="",z="",b="",N.length=0,R.clear(),X(),x.debug("[Railroad] Database cleared")},"clear"),D=c(e=>{A=S(e),x.debug("[Railroad] Title set:",e)},"setTitle"),E=c(()=>A,"getTitle"),K={clear:j,setTitle:D,getTitle:E,addRule:c(e=>{const n={...e,name:S(e.name),definition:v(e.definition),comment:e.comment?S(e.comment):void 0};x.debug("[Railroad] Adding rule:",n.name),R.has(n.name)&&x.warn(`[Railroad] Rule '${n.name}' is already defined. Overwriting.`),N.push(n),R.set(n.name,n)},"addRule"),getRules:c(()=>N,"getRules"),getRule:c(e=>R.get(e),"getRule"),setAccTitle:c(e=>{z=S(e).replace(/^\s+/g,""),x.debug("[Railroad] Accessibility title set:",e)},"setAccTitle"),getAccTitle:c(()=>z,"getAccTitle"),setAccDescription:c(e=>{b=S(e).replace(/\n\s+/g,`
|
|
2
2
|
`),x.debug("[Railroad] Accessibility description set:",e)},"setAccDescription"),getAccDescription:c(()=>b,"getAccDescription"),setDiagramTitle:D,getDiagramTitle:E},f={compactMode:!1,padding:10,verticalSeparation:8,horizontalSeparation:10,arcRadius:10,fontSize:14,fontFamily:"monospace",terminalFill:"#FFFFC0",terminalStroke:"#000000",terminalTextColor:"#000000",nonTerminalFill:"#FFFFFF",nonTerminalStroke:"#000000",nonTerminalTextColor:"#000000",lineColor:"#000000",strokeWidth:2,markerFill:"#000000",commentFill:"#E8E8E8",commentStroke:"#888888",commentTextColor:"#666666",specialFill:"#F0E0FF",specialStroke:"#8800CC",ruleNameColor:"#000066",showMarkers:!0,markerRadius:5},J=/^#(?:[\da-f]{3,4}|[\da-f]{6}|[\da-f]{8})$|^(?:rgb|rgba|hsl|hsla|hwb|lab|lch|oklab|oklch)\([\d\s%+,./-]+\)$|^[a-z]+$/i,Q=/^[\w "',.-]+$/,Z=new Set(["compactMode","padding","verticalSeparation","horizontalSeparation","arcRadius","fontSize","fontFamily","terminalFill","terminalStroke","terminalTextColor","nonTerminalFill","nonTerminalStroke","nonTerminalTextColor","lineColor","strokeWidth","markerFill","commentFill","commentStroke","commentTextColor","specialFill","specialStroke","ruleNameColor","showMarkers","markerRadius"]),B=c(e=>e?Object.keys(e).every(n=>n==="railroad"||Z.has(n)):!1,"isRailroadStyleOptions"),V=c(e=>e?"railroad"in e&&e.railroad?e.railroad:B(e)?e:{}:{},"extractRailroadOverrides"),ee=c(e=>{if(!e||B(e))return{};const{railroad:n,svgId:r,theme:t,look:i,...a}=e;return a},"extractThemeOverrides"),d=c((e,n)=>{if(typeof e!="string")return n;const r=e.trim();return J.test(r)?r:n},"sanitizeColorValue"),Y=c((e,n)=>{if(typeof e!="string")return n;const r=e.trim();return Q.test(r)?r:n},"sanitizeFontFamilyValue"),F=c((e,n)=>{const r=typeof e=="number"?e:typeof e=="string"?Number.parseFloat(e):NaN;return Number.isFinite(r)&&r>=0?r:n},"sanitizeNumberValue"),te=c(e=>{const n=typeof e=="number"?e:typeof e=="string"?Number.parseFloat(e):NaN;return Number.isFinite(n)&&n>0?n:void 0},"parseThemeFontSize"),re=c(e=>{const n=Y(e.fontFamily,f.fontFamily),r=te(e.fontSize)??f.fontSize;return{...f,fontFamily:n,fontSize:r,terminalFill:d(e.secondBkg??e.secondaryColor,f.terminalFill),terminalStroke:d(e.secondaryBorderColor??e.lineColor,f.terminalStroke),terminalTextColor:d(e.secondaryTextColor??e.textColor,f.terminalTextColor),nonTerminalFill:d(e.mainBkg??e.background,f.nonTerminalFill),nonTerminalStroke:d(e.primaryBorderColor??e.lineColor,f.nonTerminalStroke),nonTerminalTextColor:d(e.primaryTextColor??e.textColor,f.nonTerminalTextColor),lineColor:d(e.lineColor,f.lineColor),markerFill:d(e.lineColor,f.markerFill),commentFill:d(e.labelBackground??e.tertiaryColor,f.commentFill),commentStroke:d(e.tertiaryBorderColor??e.lineColor,f.commentStroke),commentTextColor:d(e.tertiaryTextColor??e.textColor,f.commentTextColor),specialFill:d(e.tertiaryColor??e.secondaryColor,f.specialFill),specialStroke:d(e.tertiaryBorderColor??e.secondaryBorderColor,f.specialStroke),ruleNameColor:d(e.titleColor??e.textColor,f.ruleNameColor)}},"buildThemeDefaults"),M=c(e=>{const n=_(),r=re({...I(),...n.themeVariables??{},...ee(e)}),t={...n.railroad??{},...V(e)};return{compactMode:t.compactMode??r.compactMode,padding:F(t.padding,r.padding),verticalSeparation:F(t.verticalSeparation,r.verticalSeparation),horizontalSeparation:F(t.horizontalSeparation,r.horizontalSeparation),arcRadius:F(t.arcRadius,r.arcRadius),fontSize:F(t.fontSize,r.fontSize),fontFamily:Y(t.fontFamily,r.fontFamily),terminalFill:d(t.terminalFill,r.terminalFill),terminalStroke:d(t.terminalStroke,r.terminalStroke),terminalTextColor:d(t.terminalTextColor,r.terminalTextColor),nonTerminalFill:d(t.nonTerminalFill,r.nonTerminalFill),nonTerminalStroke:d(t.nonTerminalStroke,r.nonTerminalStroke),nonTerminalTextColor:d(t.nonTerminalTextColor,r.nonTerminalTextColor),lineColor:d(t.lineColor,r.lineColor),strokeWidth:F(t.strokeWidth,r.strokeWidth),markerFill:d(t.markerFill,r.markerFill),commentFill:d(t.commentFill,r.commentFill),commentStroke:d(t.commentStroke,r.commentStroke),commentTextColor:d(t.commentTextColor,r.commentTextColor),specialFill:d(t.specialFill,r.specialFill),specialStroke:d(t.specialStroke,r.specialStroke),ruleNameColor:d(t.ruleNameColor,r.ruleNameColor),showMarkers:t.showMarkers??r.showMarkers,markerRadius:F(t.markerRadius,r.markerRadius)}},"buildRailroadStyleOptions"),de=c(e=>{const{fontFamily:n,fontSize:r,terminalFill:t,terminalStroke:i,terminalTextColor:a,nonTerminalFill:p,nonTerminalStroke:s,nonTerminalTextColor:l,lineColor:u,strokeWidth:o,markerFill:g,commentFill:m,commentStroke:h,commentTextColor:C,specialFill:k,specialStroke:w,ruleNameColor:y}=M(e);return`
|
|
3
3
|
.railroad-diagram {
|
|
4
4
|
font-family: ${n};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var it=Object.defineProperty;var y=(t,i)=>it(t,"name",{value:i,configurable:!0});import{n as f}from"./chunk-Y2CYZVJY-OvsAdhaO.js";import{m as we,p as pe}from"./src-Bssc388C.js";import{$ as at,H as rt,K as nt,M as U,U as ut,a as lt,s as w,v as ct,w as ot,x as S,y as ht,z as dt}from"./chunk-DU6HZSFF-2P5iNHqg.js";import{c as pt,g as Ve}from"./chunk-75Z2AOVW-BaPl5WA6.js";import{t as At}from"./chunk-5VM5RSS4-2H3r6wq0.js";import{t as ft}from"./chunk-F27PBJKO-Ci7GmRgM.js";import{t as mt}from"./chunk-XXDRQBXY-BhrH-9FX.js";import{t as gt}from"./chunk-POPQ4Y6H-BytmIqFc.js";import{d as Ct,u as bt}from"./mermaid.core-G_BSi0G0.js";var Pe=(function(){var t=f(function(o,d,m,A){for(m=m||{},A=o.length;A--;m[o[A]]=d);return m},"o"),i=[1,18],r=[1,19],a=[1,20],n=[1,41],c=[1,26],u=[1,42],p=[1,24],g=[1,25],B=[1,32],L=[1,33],fe=[1,34],C=[1,45],me=[1,35],ge=[1,36],Ce=[1,37],be=[1,38],ke=[1,27],Ee=[1,28],Te=[1,29],ye=[1,30],De=[1,31],b=[1,44],k=[1,46],E=[1,43],D=[1,47],Fe=[1,9],h=[1,8,9],$=[1,58],ee=[1,59],te=[1,60],se=[1,61],ie=[1,62],Be=[1,63],_e=[1,64],N=[1,8,9,41],Re=[1,77],R=[1,8,9,12,13,22,39,41,44,46,68,69,70,71,72,73,74,79,81],ae=[1,8,9,12,13,18,20,22,39,41,44,46,47,60,68,69,70,71,72,73,74,79,81,86,100,102,103],re=[13,60,86,100,102,103],z=[13,60,73,74,86,100,102,103],Ge=[13,60,68,69,70,71,72,86,100,102,103],ne=[1,103],K=[1,121],Y=[1,117],W=[1,113],Q=[1,119],j=[1,114],X=[1,115],H=[1,116],q=[1,118],J=[1,120],Ue=[22,50,60,61,82,86,87,88,89,90],ze=[1,128],ue=[12,39],Se=[1,8,9,39,41,44,46],le=[1,8,9,22],Ke=[1,153],Ye=[1,8,9,61],v=[1,8,9,22,50,60,61,82,86,87,88,89,90],Ne={trace:f(y(function(){},"trace"),"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,statements:5,graphConfig:6,CLASS_DIAGRAM:7,NEWLINE:8,EOF:9,statement:10,classLabel:11,SQS:12,STR:13,SQE:14,namespaceName:15,alphaNumToken:16,classLiteralName:17,DOT:18,className:19,GENERICTYPE:20,relationStatement:21,LABEL:22,namespaceStatement:23,classStatement:24,memberStatement:25,annotationStatement:26,clickStatement:27,styleStatement:28,cssClassStatement:29,noteStatement:30,classDefStatement:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,namespaceIdentifier:38,STRUCT_START:39,classStatements:40,STRUCT_STOP:41,NAMESPACE:42,classIdentifier:43,STYLE_SEPARATOR:44,members:45,ANNOTATION_START:46,ANNOTATION_END:47,CLASS:48,emptyBody:49,SPACE:50,MEMBER:51,SEPARATOR:52,relation:53,NOTE_FOR:54,noteText:55,NOTE:56,CLASSDEF:57,classList:58,stylesOpt:59,ALPHA:60,COMMA:61,direction_tb:62,direction_bt:63,direction_rl:64,direction_lr:65,relationType:66,lineType:67,AGGREGATION:68,EXTENSION:69,COMPOSITION:70,DEPENDENCY:71,LOLLIPOP:72,LINE:73,DOTTED_LINE:74,CALLBACK:75,LINK:76,LINK_TARGET:77,CLICK:78,CALLBACK_NAME:79,CALLBACK_ARGS:80,HREF:81,STYLE:82,CSSCLASS:83,style:84,styleComponent:85,NUM:86,COLON:87,UNIT:88,BRKT:89,PCT:90,commentToken:91,textToken:92,graphCodeTokens:93,textNoTagsToken:94,TAGSTART:95,TAGEND:96,"==":97,"--":98,DEFAULT:99,MINUS:100,keywords:101,UNICODE_TEXT:102,BQUOTE_STR:103,$accept:0,$end:1},terminals_:{2:"error",7:"CLASS_DIAGRAM",8:"NEWLINE",9:"EOF",12:"SQS",13:"STR",14:"SQE",18:"DOT",20:"GENERICTYPE",22:"LABEL",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",39:"STRUCT_START",41:"STRUCT_STOP",42:"NAMESPACE",44:"STYLE_SEPARATOR",46:"ANNOTATION_START",47:"ANNOTATION_END",48:"CLASS",50:"SPACE",51:"MEMBER",52:"SEPARATOR",54:"NOTE_FOR",56:"NOTE",57:"CLASSDEF",60:"ALPHA",61:"COMMA",62:"direction_tb",63:"direction_bt",64:"direction_rl",65:"direction_lr",68:"AGGREGATION",69:"EXTENSION",70:"COMPOSITION",71:"DEPENDENCY",72:"LOLLIPOP",73:"LINE",74:"DOTTED_LINE",75:"CALLBACK",76:"LINK",77:"LINK_TARGET",78:"CLICK",79:"CALLBACK_NAME",80:"CALLBACK_ARGS",81:"HREF",82:"STYLE",83:"CSSCLASS",86:"NUM",87:"COLON",88:"UNIT",89:"BRKT",90:"PCT",93:"graphCodeTokens",95:"TAGSTART",96:"TAGEND",97:"==",98:"--",99:"DEFAULT",100:"MINUS",101:"keywords",102:"UNICODE_TEXT",103:"BQUOTE_STR"},productions_:[0,[3,1],[3,1],[4,1],[6,4],[5,1],[5,2],[5,3],[11,3],[15,1],[15,1],[15,3],[15,2],[19,1],[19,3],[19,1],[19,2],[19,2],[19,2],[10,1],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[23,4],[23,5],[38,2],[38,3],[40,1],[40,2],[40,3],[40,1],[40,2],[40,3],[40,1],[40,2],[40,3],[24,1],[24,3],[24,4],[24,3],[24,6],[24,4],[24,7],[24,6],[43,2],[43,3],[49,0],[49,2],[49,2],[26,4],[45,1],[45,2],[25,1],[25,2],[25,1],[25,1],[21,3],[21,4],[21,4],[21,5],[30,3],[30,2],[31,3],[58,1],[58,3],[32,1],[32,1],[32,1],[32,1],[53,3],[53,2],[53,2],[53,1],[66,1],[66,1],[66,1],[66,1],[66,1],[67,1],[67,1],[27,3],[27,4],[27,3],[27,4],[27,4],[27,5],[27,3],[27,4],[27,4],[27,5],[27,4],[27,5],[27,5],[27,6],[28,3],[29,3],[59,1],[59,3],[84,1],[84,2],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[91,1],[91,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[94,1],[94,1],[94,1],[94,1],[16,1],[16,1],[16,1],[16,1],[17,1],[55,1]],performAction:f(y(function(d,m,A,l,T,e,Z){var s=e.length-1;switch(T){case 8:this.$=e[s-1];break;case 9:case 10:case 13:case 15:this.$=e[s];break;case 11:case 14:this.$=e[s-2]+"."+e[s];break;case 12:case 16:this.$=e[s-1]+e[s];break;case 17:case 18:this.$=e[s-1]+"~"+e[s]+"~";break;case 19:l.addRelation(e[s]);break;case 20:e[s-1].title=l.cleanupLabel(e[s]),l.addRelation(e[s-1]);break;case 31:this.$=e[s].trim(),l.setAccTitle(this.$);break;case 32:case 33:this.$=e[s].trim(),l.setAccDescription(this.$);break;case 34:l.addClassesToNamespace(e[s-3],e[s-1][0],e[s-1][1]),l.popNamespace();break;case 35:l.addClassesToNamespace(e[s-4],e[s-1][0],e[s-1][1]),l.popNamespace();break;case 36:this.$=l.addNamespace(e[s]);break;case 37:this.$=l.addNamespace(e[s-1],e[s]);break;case 38:this.$=[[e[s]],[]];break;case 39:this.$=[[e[s-1]],[]];break;case 40:e[s][0].unshift(e[s-2]),this.$=e[s];break;case 41:this.$=[[],[e[s]]];break;case 42:this.$=[[],[e[s-1]]];break;case 43:e[s][1].unshift(e[s-2]),this.$=e[s];break;case 44:case 45:this.$=[[],[]];break;case 46:this.$=e[s];break;case 48:l.setCssClass(e[s-2],e[s]);break;case 49:l.addMembers(e[s-3],e[s-1]);break;case 51:l.setCssClass(e[s-5],e[s-3]),l.addMembers(e[s-5],e[s-1]);break;case 52:l.addAnnotation(e[s-3],e[s-1]);break;case 53:l.addAnnotation(e[s-6],e[s-4]),l.addMembers(e[s-6],e[s-1]);break;case 54:l.addAnnotation(e[s-5],e[s-3]);break;case 55:this.$=e[s],l.addClass(e[s]);break;case 56:this.$=e[s-1],l.addClass(e[s-1]),l.setClassLabel(e[s-1],e[s]);break;case 60:l.addAnnotation(e[s],e[s-2]);break;case 61:case 74:this.$=[e[s]];break;case 62:e[s].push(e[s-1]),this.$=e[s];break;case 63:break;case 64:l.addMember(e[s-1],l.cleanupLabel(e[s]));break;case 65:break;case 66:break;case 67:this.$={id1:e[s-2],id2:e[s],relation:e[s-1],relationTitle1:"none",relationTitle2:"none"};break;case 68:this.$={id1:e[s-3],id2:e[s],relation:e[s-1],relationTitle1:e[s-2],relationTitle2:"none"};break;case 69:this.$={id1:e[s-3],id2:e[s],relation:e[s-2],relationTitle1:"none",relationTitle2:e[s-1]};break;case 70:this.$={id1:e[s-4],id2:e[s],relation:e[s-2],relationTitle1:e[s-3],relationTitle2:e[s-1]};break;case 71:this.$=l.addNote(e[s],e[s-1]);break;case 72:this.$=l.addNote(e[s]);break;case 73:this.$=e[s-2],l.defineClass(e[s-1],e[s]);break;case 75:this.$=e[s-2].concat([e[s]]);break;case 76:l.setDirection("TB");break;case 77:l.setDirection("BT");break;case 78:l.setDirection("RL");break;case 79:l.setDirection("LR");break;case 80:this.$={type1:e[s-2],type2:e[s],lineType:e[s-1]};break;case 81:this.$={type1:"none",type2:e[s],lineType:e[s-1]};break;case 82:this.$={type1:e[s-1],type2:"none",lineType:e[s]};break;case 83:this.$={type1:"none",type2:"none",lineType:e[s]};break;case 84:this.$=l.relationType.AGGREGATION;break;case 85:this.$=l.relationType.EXTENSION;break;case 86:this.$=l.relationType.COMPOSITION;break;case 87:this.$=l.relationType.DEPENDENCY;break;case 88:this.$=l.relationType.LOLLIPOP;break;case 89:this.$=l.lineType.LINE;break;case 90:this.$=l.lineType.DOTTED_LINE;break;case 91:case 97:this.$=e[s-2],l.setClickEvent(e[s-1],e[s]);break;case 92:case 98:this.$=e[s-3],l.setClickEvent(e[s-2],e[s-1]),l.setTooltip(e[s-2],e[s]);break;case 93:this.$=e[s-2],l.setLink(e[s-1],e[s]);break;case 94:this.$=e[s-3],l.setLink(e[s-2],e[s-1],e[s]);break;case 95:this.$=e[s-3],l.setLink(e[s-2],e[s-1]),l.setTooltip(e[s-2],e[s]);break;case 96:this.$=e[s-4],l.setLink(e[s-3],e[s-2],e[s]),l.setTooltip(e[s-3],e[s-1]);break;case 99:this.$=e[s-3],l.setClickEvent(e[s-2],e[s-1],e[s]);break;case 100:this.$=e[s-4],l.setClickEvent(e[s-3],e[s-2],e[s-1]),l.setTooltip(e[s-3],e[s]);break;case 101:this.$=e[s-3],l.setLink(e[s-2],e[s]);break;case 102:this.$=e[s-4],l.setLink(e[s-3],e[s-1],e[s]);break;case 103:this.$=e[s-4],l.setLink(e[s-3],e[s-1]),l.setTooltip(e[s-3],e[s]);break;case 104:this.$=e[s-5],l.setLink(e[s-4],e[s-2],e[s]),l.setTooltip(e[s-4],e[s-1]);break;case 105:this.$=e[s-2],l.setCssStyle(e[s-1],e[s]);break;case 106:l.setCssClass(e[s-1],e[s]);break;case 107:this.$=[e[s]];break;case 108:e[s-2].push(e[s]),this.$=e[s-2];break;case 110:this.$=e[s-1]+e[s]}},"anonymous"),"anonymous"),table:[{3:1,4:2,5:3,6:4,7:[1,6],10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:i,35:r,37:a,38:22,42:n,43:23,46:c,48:u,51:p,52:g,54:B,56:L,57:fe,60:C,62:me,63:ge,64:Ce,65:be,75:ke,76:Ee,78:Te,82:ye,83:De,86:b,100:k,102:E,103:D},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},t(Fe,[2,5],{8:[1,48]}),{8:[1,49]},t(h,[2,19],{22:[1,50]}),t(h,[2,21]),t(h,[2,22]),t(h,[2,23]),t(h,[2,24]),t(h,[2,25]),t(h,[2,26]),t(h,[2,27]),t(h,[2,28]),t(h,[2,29]),t(h,[2,30]),{34:[1,51]},{36:[1,52]},t(h,[2,33]),t(h,[2,63],{53:53,66:56,67:57,13:[1,54],22:[1,55],68:$,69:ee,70:te,71:se,72:ie,73:Be,74:_e}),{39:[1,65]},t(N,[2,47],{39:[1,67],44:[1,66],46:[1,68]}),t(h,[2,65]),t(h,[2,66]),{16:69,60:C,86:b,100:k,102:E},{16:39,17:40,19:70,60:C,86:b,100:k,102:E,103:D},{16:39,17:40,19:71,60:C,86:b,100:k,102:E,103:D},{16:39,17:40,19:72,60:C,86:b,100:k,102:E,103:D},{60:[1,73]},{13:[1,74]},{16:39,17:40,19:75,60:C,86:b,100:k,102:E,103:D},{13:Re,55:76},{58:78,60:[1,79]},t(h,[2,76]),t(h,[2,77]),t(h,[2,78]),t(h,[2,79]),t(R,[2,13],{16:39,17:40,19:81,18:[1,80],20:[1,82],60:C,86:b,100:k,102:E,103:D}),t(R,[2,15],{20:[1,83]}),{15:84,16:85,17:86,60:C,86:b,100:k,102:E,103:D},{16:39,17:40,19:87,60:C,86:b,100:k,102:E,103:D},t(ae,[2,133]),t(ae,[2,134]),t(ae,[2,135]),t(ae,[2,136]),t([1,8,9,12,13,20,22,39,41,44,46,68,69,70,71,72,73,74,79,81],[2,137]),t(Fe,[2,6],{10:5,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,19:21,38:22,43:23,16:39,17:40,5:88,33:i,35:r,37:a,42:n,46:c,48:u,51:p,52:g,54:B,56:L,57:fe,60:C,62:me,63:ge,64:Ce,65:be,75:ke,76:Ee,78:Te,82:ye,83:De,86:b,100:k,102:E,103:D}),{5:89,10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:i,35:r,37:a,38:22,42:n,43:23,46:c,48:u,51:p,52:g,54:B,56:L,57:fe,60:C,62:me,63:ge,64:Ce,65:be,75:ke,76:Ee,78:Te,82:ye,83:De,86:b,100:k,102:E,103:D},t(h,[2,20]),t(h,[2,31]),t(h,[2,32]),{13:[1,91],16:39,17:40,19:90,60:C,86:b,100:k,102:E,103:D},{53:92,66:56,67:57,68:$,69:ee,70:te,71:se,72:ie,73:Be,74:_e},t(h,[2,64]),{67:93,73:Be,74:_e},t(re,[2,83],{66:94,68:$,69:ee,70:te,71:se,72:ie}),t(z,[2,84]),t(z,[2,85]),t(z,[2,86]),t(z,[2,87]),t(z,[2,88]),t(Ge,[2,89]),t(Ge,[2,90]),{8:[1,96],23:99,24:97,30:98,38:22,40:95,42:n,43:23,48:u,54:B,56:L},{16:100,60:C,86:b,100:k,102:E},{41:[1,102],45:101,51:ne},{16:104,60:C,86:b,100:k,102:E},{47:[1,105]},{13:[1,106]},{13:[1,107]},{79:[1,108],81:[1,109]},{22:K,50:Y,59:110,60:W,82:Q,84:111,85:112,86:j,87:X,88:H,89:q,90:J},{60:[1,122]},{13:Re,55:123},t(N,[2,72]),t(N,[2,138]),{22:K,50:Y,59:124,60:W,61:[1,125],82:Q,84:111,85:112,86:j,87:X,88:H,89:q,90:J},t(Ue,[2,74]),{16:39,17:40,19:126,60:C,86:b,100:k,102:E,103:D},t(R,[2,16]),t(R,[2,17]),t(R,[2,18]),{11:127,12:ze,39:[2,36]},t(ue,[2,9],{16:85,17:86,15:130,18:[1,129],60:C,86:b,100:k,102:E,103:D}),t(ue,[2,10]),t(Se,[2,55],{11:131,12:ze}),t(Fe,[2,7]),{9:[1,132]},t(le,[2,67]),{16:39,17:40,19:133,60:C,86:b,100:k,102:E,103:D},{13:[1,135],16:39,17:40,19:134,60:C,86:b,100:k,102:E,103:D},t(re,[2,82],{66:136,68:$,69:ee,70:te,71:se,72:ie}),t(re,[2,81]),{41:[1,137]},{23:99,24:97,30:98,38:22,40:138,42:n,43:23,48:u,54:B,56:L},{8:[1,139],41:[2,38]},{8:[1,140],41:[2,41]},{8:[1,141],41:[2,44]},t(N,[2,48],{39:[1,142]}),{41:[1,143]},t(N,[2,50]),{41:[2,61],45:144,51:ne},{47:[1,145]},{16:39,17:40,19:146,60:C,86:b,100:k,102:E,103:D},t(h,[2,91],{13:[1,147]}),t(h,[2,93],{13:[1,149],77:[1,148]}),t(h,[2,97],{13:[1,150],80:[1,151]}),{13:[1,152]},t(h,[2,105],{61:Ke}),t(Ye,[2,107],{85:154,22:K,50:Y,60:W,82:Q,86:j,87:X,88:H,89:q,90:J}),t(v,[2,109]),t(v,[2,111]),t(v,[2,112]),t(v,[2,113]),t(v,[2,114]),t(v,[2,115]),t(v,[2,116]),t(v,[2,117]),t(v,[2,118]),t(v,[2,119]),t(h,[2,106]),t(N,[2,71]),t(h,[2,73],{61:Ke}),{60:[1,155]},t(R,[2,14]),{39:[2,37]},{13:[1,156]},{15:157,16:85,17:86,60:C,86:b,100:k,102:E,103:D},t(ue,[2,12]),t(Se,[2,56]),{1:[2,4]},t(le,[2,69]),t(le,[2,68]),{16:39,17:40,19:158,60:C,86:b,100:k,102:E,103:D},t(re,[2,80]),t(N,[2,34]),{41:[1,159]},{23:99,24:97,30:98,38:22,40:160,41:[2,39],42:n,43:23,48:u,54:B,56:L},{23:99,24:97,30:98,38:22,40:161,41:[2,42],42:n,43:23,48:u,54:B,56:L},{23:99,24:97,30:98,38:22,40:162,41:[2,45],42:n,43:23,48:u,54:B,56:L},{45:163,51:ne},t(N,[2,49]),{41:[2,62]},t(N,[2,52],{39:[1,164]}),t(h,[2,60]),t(h,[2,92]),t(h,[2,94]),t(h,[2,95],{77:[1,165]}),t(h,[2,98]),t(h,[2,99],{13:[1,166]}),t(h,[2,101],{13:[1,168],77:[1,167]}),{22:K,50:Y,60:W,82:Q,84:169,85:112,86:j,87:X,88:H,89:q,90:J},t(v,[2,110]),t(Ue,[2,75]),{14:[1,170]},t(ue,[2,11]),t(le,[2,70]),t(N,[2,35]),{41:[2,40]},{41:[2,43]},{41:[2,46]},{41:[1,171]},{41:[1,173],45:172,51:ne},t(h,[2,96]),t(h,[2,100]),t(h,[2,102]),t(h,[2,103],{77:[1,174]}),t(Ye,[2,108],{85:154,22:K,50:Y,60:W,82:Q,86:j,87:X,88:H,89:q,90:J}),t(Se,[2,8]),t(N,[2,51]),{41:[1,175]},t(N,[2,54]),t(h,[2,104]),t(N,[2,53])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],127:[2,37],132:[2,4],144:[2,62],160:[2,40],161:[2,43],162:[2,46]},parseError:f(y(function(d,m){if(m.recoverable)this.trace(d);else{var A=new Error(d);throw A.hash=m,A}},"parseError"),"parseError"),parse:f(y(function(d){var m=this,A=[0],l=[],T=[null],e=[],Z=this.table,s="",oe=0,We=0,Qe=0,$e=2,je=1,et=e.slice.call(arguments,1),F=Object.create(this.lexer),V={yy:{}};for(var Le in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Le)&&(V.yy[Le]=this.yy[Le]);F.setInput(d,V.yy),V.yy.lexer=F,V.yy.parser=this,typeof F.yylloc>"u"&&(F.yylloc={});var xe=F.yylloc;e.push(xe);var tt=F.options&&F.options.ranges;typeof V.yy.parseError=="function"?this.parseError=V.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function st(I){A.length=A.length-2*I,T.length=T.length-I,e.length=e.length-I}y(st,"popStack"),f(st,"popStack");function Xe(){var I=l.pop()||F.lex()||je;return typeof I!="number"&&(I instanceof Array&&(l=I,I=l.pop()),I=m.symbols_[I]||I),I}y(Xe,"lex"),f(Xe,"lex");for(var _,Ie,P,x,ve,G={},he,O,He,de;;){if(P=A[A.length-1],this.defaultActions[P]?x=this.defaultActions[P]:((_===null||typeof _>"u")&&(_=Xe()),x=Z[P]&&Z[P][_]),typeof x>"u"||!x.length||!x[0]){var Oe="";de=[];for(he in Z[P])this.terminals_[he]&&he>$e&&de.push("'"+this.terminals_[he]+"'");F.showPosition?Oe="Parse error on line "+(oe+1)+`:
|
|
1
|
+
var it=Object.defineProperty;var y=(t,i)=>it(t,"name",{value:i,configurable:!0});import{n as f}from"./chunk-Y2CYZVJY-OvsAdhaO.js";import{m as we,p as pe}from"./src-Bssc388C.js";import{$ as at,H as rt,K as nt,M as U,U as ut,a as lt,s as w,v as ct,w as ot,x as S,y as ht,z as dt}from"./chunk-DU6HZSFF-mLZ_DAj9.js";import{c as pt,g as Ve}from"./chunk-75Z2AOVW-CTyOxDW3.js";import{t as At}from"./chunk-5VM5RSS4-2H3r6wq0.js";import{t as ft}from"./chunk-F27PBJKO-BI6MjXNA.js";import{t as mt}from"./chunk-XXDRQBXY-BhrH-9FX.js";import{t as gt}from"./chunk-POPQ4Y6H-B0MtQqlF.js";import{d as Ct,u as bt}from"./mermaid.core-Be3XJK9z.js";var Pe=(function(){var t=f(function(o,d,m,A){for(m=m||{},A=o.length;A--;m[o[A]]=d);return m},"o"),i=[1,18],r=[1,19],a=[1,20],n=[1,41],c=[1,26],u=[1,42],p=[1,24],g=[1,25],B=[1,32],L=[1,33],fe=[1,34],C=[1,45],me=[1,35],ge=[1,36],Ce=[1,37],be=[1,38],ke=[1,27],Ee=[1,28],Te=[1,29],ye=[1,30],De=[1,31],b=[1,44],k=[1,46],E=[1,43],D=[1,47],Fe=[1,9],h=[1,8,9],$=[1,58],ee=[1,59],te=[1,60],se=[1,61],ie=[1,62],Be=[1,63],_e=[1,64],N=[1,8,9,41],Re=[1,77],R=[1,8,9,12,13,22,39,41,44,46,68,69,70,71,72,73,74,79,81],ae=[1,8,9,12,13,18,20,22,39,41,44,46,47,60,68,69,70,71,72,73,74,79,81,86,100,102,103],re=[13,60,86,100,102,103],z=[13,60,73,74,86,100,102,103],Ge=[13,60,68,69,70,71,72,86,100,102,103],ne=[1,103],K=[1,121],Y=[1,117],W=[1,113],Q=[1,119],j=[1,114],X=[1,115],H=[1,116],q=[1,118],J=[1,120],Ue=[22,50,60,61,82,86,87,88,89,90],ze=[1,128],ue=[12,39],Se=[1,8,9,39,41,44,46],le=[1,8,9,22],Ke=[1,153],Ye=[1,8,9,61],v=[1,8,9,22,50,60,61,82,86,87,88,89,90],Ne={trace:f(y(function(){},"trace"),"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,statements:5,graphConfig:6,CLASS_DIAGRAM:7,NEWLINE:8,EOF:9,statement:10,classLabel:11,SQS:12,STR:13,SQE:14,namespaceName:15,alphaNumToken:16,classLiteralName:17,DOT:18,className:19,GENERICTYPE:20,relationStatement:21,LABEL:22,namespaceStatement:23,classStatement:24,memberStatement:25,annotationStatement:26,clickStatement:27,styleStatement:28,cssClassStatement:29,noteStatement:30,classDefStatement:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,namespaceIdentifier:38,STRUCT_START:39,classStatements:40,STRUCT_STOP:41,NAMESPACE:42,classIdentifier:43,STYLE_SEPARATOR:44,members:45,ANNOTATION_START:46,ANNOTATION_END:47,CLASS:48,emptyBody:49,SPACE:50,MEMBER:51,SEPARATOR:52,relation:53,NOTE_FOR:54,noteText:55,NOTE:56,CLASSDEF:57,classList:58,stylesOpt:59,ALPHA:60,COMMA:61,direction_tb:62,direction_bt:63,direction_rl:64,direction_lr:65,relationType:66,lineType:67,AGGREGATION:68,EXTENSION:69,COMPOSITION:70,DEPENDENCY:71,LOLLIPOP:72,LINE:73,DOTTED_LINE:74,CALLBACK:75,LINK:76,LINK_TARGET:77,CLICK:78,CALLBACK_NAME:79,CALLBACK_ARGS:80,HREF:81,STYLE:82,CSSCLASS:83,style:84,styleComponent:85,NUM:86,COLON:87,UNIT:88,BRKT:89,PCT:90,commentToken:91,textToken:92,graphCodeTokens:93,textNoTagsToken:94,TAGSTART:95,TAGEND:96,"==":97,"--":98,DEFAULT:99,MINUS:100,keywords:101,UNICODE_TEXT:102,BQUOTE_STR:103,$accept:0,$end:1},terminals_:{2:"error",7:"CLASS_DIAGRAM",8:"NEWLINE",9:"EOF",12:"SQS",13:"STR",14:"SQE",18:"DOT",20:"GENERICTYPE",22:"LABEL",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",39:"STRUCT_START",41:"STRUCT_STOP",42:"NAMESPACE",44:"STYLE_SEPARATOR",46:"ANNOTATION_START",47:"ANNOTATION_END",48:"CLASS",50:"SPACE",51:"MEMBER",52:"SEPARATOR",54:"NOTE_FOR",56:"NOTE",57:"CLASSDEF",60:"ALPHA",61:"COMMA",62:"direction_tb",63:"direction_bt",64:"direction_rl",65:"direction_lr",68:"AGGREGATION",69:"EXTENSION",70:"COMPOSITION",71:"DEPENDENCY",72:"LOLLIPOP",73:"LINE",74:"DOTTED_LINE",75:"CALLBACK",76:"LINK",77:"LINK_TARGET",78:"CLICK",79:"CALLBACK_NAME",80:"CALLBACK_ARGS",81:"HREF",82:"STYLE",83:"CSSCLASS",86:"NUM",87:"COLON",88:"UNIT",89:"BRKT",90:"PCT",93:"graphCodeTokens",95:"TAGSTART",96:"TAGEND",97:"==",98:"--",99:"DEFAULT",100:"MINUS",101:"keywords",102:"UNICODE_TEXT",103:"BQUOTE_STR"},productions_:[0,[3,1],[3,1],[4,1],[6,4],[5,1],[5,2],[5,3],[11,3],[15,1],[15,1],[15,3],[15,2],[19,1],[19,3],[19,1],[19,2],[19,2],[19,2],[10,1],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[23,4],[23,5],[38,2],[38,3],[40,1],[40,2],[40,3],[40,1],[40,2],[40,3],[40,1],[40,2],[40,3],[24,1],[24,3],[24,4],[24,3],[24,6],[24,4],[24,7],[24,6],[43,2],[43,3],[49,0],[49,2],[49,2],[26,4],[45,1],[45,2],[25,1],[25,2],[25,1],[25,1],[21,3],[21,4],[21,4],[21,5],[30,3],[30,2],[31,3],[58,1],[58,3],[32,1],[32,1],[32,1],[32,1],[53,3],[53,2],[53,2],[53,1],[66,1],[66,1],[66,1],[66,1],[66,1],[67,1],[67,1],[27,3],[27,4],[27,3],[27,4],[27,4],[27,5],[27,3],[27,4],[27,4],[27,5],[27,4],[27,5],[27,5],[27,6],[28,3],[29,3],[59,1],[59,3],[84,1],[84,2],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[91,1],[91,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[94,1],[94,1],[94,1],[94,1],[16,1],[16,1],[16,1],[16,1],[17,1],[55,1]],performAction:f(y(function(d,m,A,l,T,e,Z){var s=e.length-1;switch(T){case 8:this.$=e[s-1];break;case 9:case 10:case 13:case 15:this.$=e[s];break;case 11:case 14:this.$=e[s-2]+"."+e[s];break;case 12:case 16:this.$=e[s-1]+e[s];break;case 17:case 18:this.$=e[s-1]+"~"+e[s]+"~";break;case 19:l.addRelation(e[s]);break;case 20:e[s-1].title=l.cleanupLabel(e[s]),l.addRelation(e[s-1]);break;case 31:this.$=e[s].trim(),l.setAccTitle(this.$);break;case 32:case 33:this.$=e[s].trim(),l.setAccDescription(this.$);break;case 34:l.addClassesToNamespace(e[s-3],e[s-1][0],e[s-1][1]),l.popNamespace();break;case 35:l.addClassesToNamespace(e[s-4],e[s-1][0],e[s-1][1]),l.popNamespace();break;case 36:this.$=l.addNamespace(e[s]);break;case 37:this.$=l.addNamespace(e[s-1],e[s]);break;case 38:this.$=[[e[s]],[]];break;case 39:this.$=[[e[s-1]],[]];break;case 40:e[s][0].unshift(e[s-2]),this.$=e[s];break;case 41:this.$=[[],[e[s]]];break;case 42:this.$=[[],[e[s-1]]];break;case 43:e[s][1].unshift(e[s-2]),this.$=e[s];break;case 44:case 45:this.$=[[],[]];break;case 46:this.$=e[s];break;case 48:l.setCssClass(e[s-2],e[s]);break;case 49:l.addMembers(e[s-3],e[s-1]);break;case 51:l.setCssClass(e[s-5],e[s-3]),l.addMembers(e[s-5],e[s-1]);break;case 52:l.addAnnotation(e[s-3],e[s-1]);break;case 53:l.addAnnotation(e[s-6],e[s-4]),l.addMembers(e[s-6],e[s-1]);break;case 54:l.addAnnotation(e[s-5],e[s-3]);break;case 55:this.$=e[s],l.addClass(e[s]);break;case 56:this.$=e[s-1],l.addClass(e[s-1]),l.setClassLabel(e[s-1],e[s]);break;case 60:l.addAnnotation(e[s],e[s-2]);break;case 61:case 74:this.$=[e[s]];break;case 62:e[s].push(e[s-1]),this.$=e[s];break;case 63:break;case 64:l.addMember(e[s-1],l.cleanupLabel(e[s]));break;case 65:break;case 66:break;case 67:this.$={id1:e[s-2],id2:e[s],relation:e[s-1],relationTitle1:"none",relationTitle2:"none"};break;case 68:this.$={id1:e[s-3],id2:e[s],relation:e[s-1],relationTitle1:e[s-2],relationTitle2:"none"};break;case 69:this.$={id1:e[s-3],id2:e[s],relation:e[s-2],relationTitle1:"none",relationTitle2:e[s-1]};break;case 70:this.$={id1:e[s-4],id2:e[s],relation:e[s-2],relationTitle1:e[s-3],relationTitle2:e[s-1]};break;case 71:this.$=l.addNote(e[s],e[s-1]);break;case 72:this.$=l.addNote(e[s]);break;case 73:this.$=e[s-2],l.defineClass(e[s-1],e[s]);break;case 75:this.$=e[s-2].concat([e[s]]);break;case 76:l.setDirection("TB");break;case 77:l.setDirection("BT");break;case 78:l.setDirection("RL");break;case 79:l.setDirection("LR");break;case 80:this.$={type1:e[s-2],type2:e[s],lineType:e[s-1]};break;case 81:this.$={type1:"none",type2:e[s],lineType:e[s-1]};break;case 82:this.$={type1:e[s-1],type2:"none",lineType:e[s]};break;case 83:this.$={type1:"none",type2:"none",lineType:e[s]};break;case 84:this.$=l.relationType.AGGREGATION;break;case 85:this.$=l.relationType.EXTENSION;break;case 86:this.$=l.relationType.COMPOSITION;break;case 87:this.$=l.relationType.DEPENDENCY;break;case 88:this.$=l.relationType.LOLLIPOP;break;case 89:this.$=l.lineType.LINE;break;case 90:this.$=l.lineType.DOTTED_LINE;break;case 91:case 97:this.$=e[s-2],l.setClickEvent(e[s-1],e[s]);break;case 92:case 98:this.$=e[s-3],l.setClickEvent(e[s-2],e[s-1]),l.setTooltip(e[s-2],e[s]);break;case 93:this.$=e[s-2],l.setLink(e[s-1],e[s]);break;case 94:this.$=e[s-3],l.setLink(e[s-2],e[s-1],e[s]);break;case 95:this.$=e[s-3],l.setLink(e[s-2],e[s-1]),l.setTooltip(e[s-2],e[s]);break;case 96:this.$=e[s-4],l.setLink(e[s-3],e[s-2],e[s]),l.setTooltip(e[s-3],e[s-1]);break;case 99:this.$=e[s-3],l.setClickEvent(e[s-2],e[s-1],e[s]);break;case 100:this.$=e[s-4],l.setClickEvent(e[s-3],e[s-2],e[s-1]),l.setTooltip(e[s-3],e[s]);break;case 101:this.$=e[s-3],l.setLink(e[s-2],e[s]);break;case 102:this.$=e[s-4],l.setLink(e[s-3],e[s-1],e[s]);break;case 103:this.$=e[s-4],l.setLink(e[s-3],e[s-1]),l.setTooltip(e[s-3],e[s]);break;case 104:this.$=e[s-5],l.setLink(e[s-4],e[s-2],e[s]),l.setTooltip(e[s-4],e[s-1]);break;case 105:this.$=e[s-2],l.setCssStyle(e[s-1],e[s]);break;case 106:l.setCssClass(e[s-1],e[s]);break;case 107:this.$=[e[s]];break;case 108:e[s-2].push(e[s]),this.$=e[s-2];break;case 110:this.$=e[s-1]+e[s]}},"anonymous"),"anonymous"),table:[{3:1,4:2,5:3,6:4,7:[1,6],10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:i,35:r,37:a,38:22,42:n,43:23,46:c,48:u,51:p,52:g,54:B,56:L,57:fe,60:C,62:me,63:ge,64:Ce,65:be,75:ke,76:Ee,78:Te,82:ye,83:De,86:b,100:k,102:E,103:D},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},t(Fe,[2,5],{8:[1,48]}),{8:[1,49]},t(h,[2,19],{22:[1,50]}),t(h,[2,21]),t(h,[2,22]),t(h,[2,23]),t(h,[2,24]),t(h,[2,25]),t(h,[2,26]),t(h,[2,27]),t(h,[2,28]),t(h,[2,29]),t(h,[2,30]),{34:[1,51]},{36:[1,52]},t(h,[2,33]),t(h,[2,63],{53:53,66:56,67:57,13:[1,54],22:[1,55],68:$,69:ee,70:te,71:se,72:ie,73:Be,74:_e}),{39:[1,65]},t(N,[2,47],{39:[1,67],44:[1,66],46:[1,68]}),t(h,[2,65]),t(h,[2,66]),{16:69,60:C,86:b,100:k,102:E},{16:39,17:40,19:70,60:C,86:b,100:k,102:E,103:D},{16:39,17:40,19:71,60:C,86:b,100:k,102:E,103:D},{16:39,17:40,19:72,60:C,86:b,100:k,102:E,103:D},{60:[1,73]},{13:[1,74]},{16:39,17:40,19:75,60:C,86:b,100:k,102:E,103:D},{13:Re,55:76},{58:78,60:[1,79]},t(h,[2,76]),t(h,[2,77]),t(h,[2,78]),t(h,[2,79]),t(R,[2,13],{16:39,17:40,19:81,18:[1,80],20:[1,82],60:C,86:b,100:k,102:E,103:D}),t(R,[2,15],{20:[1,83]}),{15:84,16:85,17:86,60:C,86:b,100:k,102:E,103:D},{16:39,17:40,19:87,60:C,86:b,100:k,102:E,103:D},t(ae,[2,133]),t(ae,[2,134]),t(ae,[2,135]),t(ae,[2,136]),t([1,8,9,12,13,20,22,39,41,44,46,68,69,70,71,72,73,74,79,81],[2,137]),t(Fe,[2,6],{10:5,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,19:21,38:22,43:23,16:39,17:40,5:88,33:i,35:r,37:a,42:n,46:c,48:u,51:p,52:g,54:B,56:L,57:fe,60:C,62:me,63:ge,64:Ce,65:be,75:ke,76:Ee,78:Te,82:ye,83:De,86:b,100:k,102:E,103:D}),{5:89,10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:i,35:r,37:a,38:22,42:n,43:23,46:c,48:u,51:p,52:g,54:B,56:L,57:fe,60:C,62:me,63:ge,64:Ce,65:be,75:ke,76:Ee,78:Te,82:ye,83:De,86:b,100:k,102:E,103:D},t(h,[2,20]),t(h,[2,31]),t(h,[2,32]),{13:[1,91],16:39,17:40,19:90,60:C,86:b,100:k,102:E,103:D},{53:92,66:56,67:57,68:$,69:ee,70:te,71:se,72:ie,73:Be,74:_e},t(h,[2,64]),{67:93,73:Be,74:_e},t(re,[2,83],{66:94,68:$,69:ee,70:te,71:se,72:ie}),t(z,[2,84]),t(z,[2,85]),t(z,[2,86]),t(z,[2,87]),t(z,[2,88]),t(Ge,[2,89]),t(Ge,[2,90]),{8:[1,96],23:99,24:97,30:98,38:22,40:95,42:n,43:23,48:u,54:B,56:L},{16:100,60:C,86:b,100:k,102:E},{41:[1,102],45:101,51:ne},{16:104,60:C,86:b,100:k,102:E},{47:[1,105]},{13:[1,106]},{13:[1,107]},{79:[1,108],81:[1,109]},{22:K,50:Y,59:110,60:W,82:Q,84:111,85:112,86:j,87:X,88:H,89:q,90:J},{60:[1,122]},{13:Re,55:123},t(N,[2,72]),t(N,[2,138]),{22:K,50:Y,59:124,60:W,61:[1,125],82:Q,84:111,85:112,86:j,87:X,88:H,89:q,90:J},t(Ue,[2,74]),{16:39,17:40,19:126,60:C,86:b,100:k,102:E,103:D},t(R,[2,16]),t(R,[2,17]),t(R,[2,18]),{11:127,12:ze,39:[2,36]},t(ue,[2,9],{16:85,17:86,15:130,18:[1,129],60:C,86:b,100:k,102:E,103:D}),t(ue,[2,10]),t(Se,[2,55],{11:131,12:ze}),t(Fe,[2,7]),{9:[1,132]},t(le,[2,67]),{16:39,17:40,19:133,60:C,86:b,100:k,102:E,103:D},{13:[1,135],16:39,17:40,19:134,60:C,86:b,100:k,102:E,103:D},t(re,[2,82],{66:136,68:$,69:ee,70:te,71:se,72:ie}),t(re,[2,81]),{41:[1,137]},{23:99,24:97,30:98,38:22,40:138,42:n,43:23,48:u,54:B,56:L},{8:[1,139],41:[2,38]},{8:[1,140],41:[2,41]},{8:[1,141],41:[2,44]},t(N,[2,48],{39:[1,142]}),{41:[1,143]},t(N,[2,50]),{41:[2,61],45:144,51:ne},{47:[1,145]},{16:39,17:40,19:146,60:C,86:b,100:k,102:E,103:D},t(h,[2,91],{13:[1,147]}),t(h,[2,93],{13:[1,149],77:[1,148]}),t(h,[2,97],{13:[1,150],80:[1,151]}),{13:[1,152]},t(h,[2,105],{61:Ke}),t(Ye,[2,107],{85:154,22:K,50:Y,60:W,82:Q,86:j,87:X,88:H,89:q,90:J}),t(v,[2,109]),t(v,[2,111]),t(v,[2,112]),t(v,[2,113]),t(v,[2,114]),t(v,[2,115]),t(v,[2,116]),t(v,[2,117]),t(v,[2,118]),t(v,[2,119]),t(h,[2,106]),t(N,[2,71]),t(h,[2,73],{61:Ke}),{60:[1,155]},t(R,[2,14]),{39:[2,37]},{13:[1,156]},{15:157,16:85,17:86,60:C,86:b,100:k,102:E,103:D},t(ue,[2,12]),t(Se,[2,56]),{1:[2,4]},t(le,[2,69]),t(le,[2,68]),{16:39,17:40,19:158,60:C,86:b,100:k,102:E,103:D},t(re,[2,80]),t(N,[2,34]),{41:[1,159]},{23:99,24:97,30:98,38:22,40:160,41:[2,39],42:n,43:23,48:u,54:B,56:L},{23:99,24:97,30:98,38:22,40:161,41:[2,42],42:n,43:23,48:u,54:B,56:L},{23:99,24:97,30:98,38:22,40:162,41:[2,45],42:n,43:23,48:u,54:B,56:L},{45:163,51:ne},t(N,[2,49]),{41:[2,62]},t(N,[2,52],{39:[1,164]}),t(h,[2,60]),t(h,[2,92]),t(h,[2,94]),t(h,[2,95],{77:[1,165]}),t(h,[2,98]),t(h,[2,99],{13:[1,166]}),t(h,[2,101],{13:[1,168],77:[1,167]}),{22:K,50:Y,60:W,82:Q,84:169,85:112,86:j,87:X,88:H,89:q,90:J},t(v,[2,110]),t(Ue,[2,75]),{14:[1,170]},t(ue,[2,11]),t(le,[2,70]),t(N,[2,35]),{41:[2,40]},{41:[2,43]},{41:[2,46]},{41:[1,171]},{41:[1,173],45:172,51:ne},t(h,[2,96]),t(h,[2,100]),t(h,[2,102]),t(h,[2,103],{77:[1,174]}),t(Ye,[2,108],{85:154,22:K,50:Y,60:W,82:Q,86:j,87:X,88:H,89:q,90:J}),t(Se,[2,8]),t(N,[2,51]),{41:[1,175]},t(N,[2,54]),t(h,[2,104]),t(N,[2,53])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],127:[2,37],132:[2,4],144:[2,62],160:[2,40],161:[2,43],162:[2,46]},parseError:f(y(function(d,m){if(m.recoverable)this.trace(d);else{var A=new Error(d);throw A.hash=m,A}},"parseError"),"parseError"),parse:f(y(function(d){var m=this,A=[0],l=[],T=[null],e=[],Z=this.table,s="",oe=0,We=0,Qe=0,$e=2,je=1,et=e.slice.call(arguments,1),F=Object.create(this.lexer),V={yy:{}};for(var Le in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Le)&&(V.yy[Le]=this.yy[Le]);F.setInput(d,V.yy),V.yy.lexer=F,V.yy.parser=this,typeof F.yylloc>"u"&&(F.yylloc={});var xe=F.yylloc;e.push(xe);var tt=F.options&&F.options.ranges;typeof V.yy.parseError=="function"?this.parseError=V.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function st(I){A.length=A.length-2*I,T.length=T.length-I,e.length=e.length-I}y(st,"popStack"),f(st,"popStack");function Xe(){var I=l.pop()||F.lex()||je;return typeof I!="number"&&(I instanceof Array&&(l=I,I=l.pop()),I=m.symbols_[I]||I),I}y(Xe,"lex"),f(Xe,"lex");for(var _,Ie,P,x,ve,G={},he,O,He,de;;){if(P=A[A.length-1],this.defaultActions[P]?x=this.defaultActions[P]:((_===null||typeof _>"u")&&(_=Xe()),x=Z[P]&&Z[P][_]),typeof x>"u"||!x.length||!x[0]){var Oe="";de=[];for(he in Z[P])this.terminals_[he]&&he>$e&&de.push("'"+this.terminals_[he]+"'");F.showPosition?Oe="Parse error on line "+(oe+1)+`:
|
|
2
2
|
`+F.showPosition()+`
|
|
3
3
|
Expecting `+de.join(", ")+", got '"+(this.terminals_[_]||_)+"'":Oe="Parse error on line "+(oe+1)+": Unexpected "+(_==je?"end of input":"'"+(this.terminals_[_]||_)+"'"),this.parseError(Oe,{text:F.match,token:this.terminals_[_]||_,line:F.yylineno,loc:xe,expected:de})}if(x[0]instanceof Array&&x.length>1)throw new Error("Parse Error: multiple actions possible at state: "+P+", token: "+_);switch(x[0]){case 1:A.push(_),T.push(F.yytext),e.push(F.yylloc),A.push(x[1]),_=null,Ie?(_=Ie,Ie=null):(We=F.yyleng,s=F.yytext,oe=F.yylineno,xe=F.yylloc,Qe>0&&Qe--);break;case 2:if(O=this.productions_[x[1]][1],G.$=T[T.length-O],G._$={first_line:e[e.length-(O||1)].first_line,last_line:e[e.length-1].last_line,first_column:e[e.length-(O||1)].first_column,last_column:e[e.length-1].last_column},tt&&(G._$.range=[e[e.length-(O||1)].range[0],e[e.length-1].range[1]]),ve=this.performAction.apply(G,[s,We,oe,V.yy,x[1],T,e].concat(et)),typeof ve<"u")return ve;O&&(A=A.slice(0,-1*O*2),T=T.slice(0,-1*O),e=e.slice(0,-1*O)),A.push(this.productions_[x[1]][0]),T.push(G.$),e.push(G._$),He=Z[A[A.length-2]][A[A.length-1]],A.push(He);break;case 3:return!0}}return!0},"parse"),"parse")};Ne.lexer=(function(){return{EOF:1,parseError:f(y(function(d,m){if(this.yy.parser)this.yy.parser.parseError(d,m);else throw new Error(d)},"parseError"),"parseError"),setInput:f(function(o,d){return this.yy=d||this.yy||{},this._input=o,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:f(function(){var o=this._input[0];return this.yytext+=o,this.yyleng++,this.offset++,this.match+=o,this.matched+=o,o.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),o},"input"),unput:f(function(o){var d=o.length,m=o.split(/(?:\r\n?|\n)/g);this._input=o+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-d),this.offset-=d;var A=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),m.length-1&&(this.yylineno-=m.length-1);var l=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:m?(m.length===A.length?this.yylloc.first_column:0)+A[A.length-m.length].length-m[0].length:this.yylloc.first_column-d},this.options.ranges&&(this.yylloc.range=[l[0],l[0]+this.yyleng-d]),this.yyleng=this.yytext.length,this},"unput"),more:f(function(){return this._more=!0,this},"more"),reject:f(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
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:f(function(o){this.unput(this.match.slice(o))},"less"),pastInput:f(function(){var o=this.matched.substr(0,this.matched.length-this.match.length);return(o.length>20?"...":"")+o.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:f(function(){var o=this.match;return o.length<20&&(o+=this._input.substr(0,20-o.length)),(o.substr(0,20)+(o.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:f(function(){var o=this.pastInput(),d=new Array(o.length+1).join("-");return o+this.upcomingInput()+`
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{n as t}from"./chunk-Y2CYZVJY-OvsAdhaO.js";import"./src-Bssc388C.js";import"./chunk-DU6HZSFF-mLZ_DAj9.js";import"./chunk-75Z2AOVW-CTyOxDW3.js";import"./chunk-PWAF6VOD-DHqPPKbd.js";import"./chunk-GMAD6QVW-Vk29EsOn.js";import"./chunk-P2QGCYS3-DD1uZyrA.js";import"./chunk-4HAMMTFA-Duh1dbZg.js";import"./chunk-GVQU2GXP-D5bNpR4K.js";import"./chunk-OSK3NFVY-BfvIkdmA.js";import"./chunk-F27PBJKO-BI6MjXNA.js";import"./chunk-XXDRQBXY-BhrH-9FX.js";import"./chunk-POPQ4Y6H-B0MtQqlF.js";import"./chunk-L3NEJ4N5-GADujcju.js";import{i,n as a,r as s,t as o}from"./chunk-TICWLB2K-BWKPkn9E.js";import"./mermaid.core-Be3XJK9z.js";var A={parser:a,get db(){return new o},renderer:s,styles:i,init:t(r=>{r.class||(r.class={}),r.class.arrowMarkerAbsolute=r.arrowMarkerAbsolute},"init")};export{A as diagram};
|