@codingame/monaco-vscode-markdown-language-features-default-extension 36.2.7 → 37.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +237 -23
- package/package.json +2 -2
- package/resources/abnfDiagram-VCTEODGH-MFZBS7QV.js +1 -0
- package/resources/architecture-7GRP2DOG-KMESPJ5A.js +1 -0
- package/resources/architectureDiagram-5GKGNRK7-MTTZPDNG.js +36 -0
- package/resources/blockDiagram-NRAW4CY4-UDRMVB5I.js +129 -0
- package/resources/c4Diagram-UCG6FXSJ-CNUYFC6N.js +38 -0
- package/resources/chunk-2KBWIZHB.js +14 -0
- package/resources/chunk-3CEAP2V5.js +1 -0
- package/resources/chunk-43RBMH4Y.js +1 -0
- package/resources/chunk-4AUIAGYT.js +1 -0
- package/resources/chunk-4PRM3W7S.js +88 -0
- package/resources/chunk-5DJUZA4F.js +1 -0
- package/resources/chunk-6LQNQPBM.js +1 -0
- package/resources/chunk-A3DHMJKP.js +1 -0
- package/resources/chunk-ATDVZUJ2.js +231 -0
- package/resources/chunk-CBQW2LLN.js +1 -0
- package/resources/chunk-CCQNES6G.js +1 -0
- package/resources/chunk-CD5RYVNW.js +1 -0
- package/resources/chunk-CQFFNO72.js +1 -0
- package/resources/chunk-EWILYK3H.js +1 -0
- package/resources/chunk-EWVD6AUZ.js +15 -0
- package/resources/chunk-EXFMYL6U.js +1 -0
- package/resources/chunk-FH3BATM5.js +1 -0
- package/resources/chunk-FK4OKHO7.js +178 -0
- package/resources/chunk-FZLE27CN.js +1 -0
- package/resources/chunk-HRJ5UBVC.js +1 -0
- package/resources/chunk-IEMKBRIG.js +339 -0
- package/resources/chunk-IRNO36C3.js +1 -0
- package/resources/chunk-J4SQIVOP.js +1 -0
- package/resources/chunk-JAORNH2M.js +2 -0
- package/resources/chunk-JBQZ5UCE.js +1 -0
- package/resources/chunk-JFI5BOLY.js +1 -0
- package/resources/chunk-JXCTOEX6.js +1 -0
- package/resources/chunk-K2JFJOPP.js +1 -0
- package/resources/chunk-LK6KML2S.js +10 -0
- package/resources/chunk-MNHOAW4R.js +3 -0
- package/resources/chunk-NLCJ5AKJ.js +132 -0
- package/resources/chunk-OOJM4CTU.js +1 -0
- package/resources/chunk-R7CM4BQN.js +2 -0
- package/resources/chunk-RBL2QVA3.js +1 -0
- package/resources/chunk-SNGMH3JW.js +2 -0
- package/resources/chunk-TGD3YKTU.js +32 -0
- package/resources/chunk-TGYBLZFN.js +1 -0
- package/resources/chunk-U3E5RSXE.js +62 -0
- package/resources/chunk-U7TCJVVP.js +1 -0
- package/resources/chunk-WSHCWW4Q.js +2 -0
- package/resources/chunk-WVYKIHVG.js +1 -0
- package/resources/chunk-XCMS6RVA.js +1 -0
- package/resources/chunk-XM54GAH3.js +206 -0
- package/resources/chunk-YICKNY6Y.js +1 -0
- package/resources/chunk-YNKYB66X.js +257 -0
- package/resources/chunk-ZMBQGVIF.js +1 -0
- package/resources/chunk-ZNREFWKG.js +1 -0
- package/resources/chunk-ZU7JKVUR.js +168 -0
- package/resources/chunk-ZYRITDEB.js +72 -0
- package/resources/classDiagram-DTDB5LWJ-TBJLBGTZ.js +1 -0
- package/resources/codicon-R6HEZFPR.ttf +0 -0
- package/resources/cose-bilkent-JH36ORCC-7TCRTQWC.js +1 -0
- package/resources/cynefin-OW5HDTMX-QMEUXFXO.js +1 -0
- package/resources/cynefinDiagram-5FMLGOSQ-J745EYTI.js +62 -0
- package/resources/dagre-3AP2YEHR-CUFPL4A5.js +4 -0
- package/resources/diagram-S7CK7UJ4-SC5AFKXH.js +30 -0
- package/resources/diagram-UQ7AKVKN-3O7WQJXE.js +41 -0
- package/resources/diagram-VSXAHHWV-SN3VCCS5.js +3 -0
- package/resources/diagram-VX7I27RA-7PQJWMN5.js +24 -0
- package/resources/diagram-Z3DM3KII-QZ45TJFK.js +24 -0
- package/resources/ebnfDiagram-PWID7BFC-CBJPGG56.js +1 -0
- package/resources/editor.css.txt +1 -1
- package/resources/editor.js +137 -3431
- package/resources/editor.ts +587 -46
- package/resources/erDiagram-SSCWMZ5O-TUKYG42P.js +99 -0
- package/resources/eventmodeling-NTZA5JFV-MGOPW7BD.js +1 -0
- package/resources/extension.js +179 -172
- package/resources/extension.js.map +4 -4
- package/resources/flowDiagram-A5DVABFB-M6K5X26V.js +1 -0
- package/resources/ganttDiagram-EL5Y4UJY-JCSKUU2V.js +292 -0
- package/resources/gitGraph-4MIJSDKK-ITDCTFJT.js +1 -0
- package/resources/gitGraphDiagram-WWUBYQGX-RXRB5JA2.js +106 -0
- package/resources/index.js +3 -3
- package/resources/index2.js +17 -17
- package/resources/info-A6RAGUB7-VXIEHQAI.js +1 -0
- package/resources/infoDiagram-RXCK75RN-2T6V4JS2.js +2 -0
- package/resources/ishikawaDiagram-5VMMS53U-6WC4IGXZ.js +70 -0
- package/resources/journeyDiagram-EYS64GPL-PZQYT6UF.js +139 -0
- package/resources/kanban-definition-3QL26DDD-VYBV345J.js +89 -0
- package/resources/katex-QJ7O5CJ5.js +1 -0
- package/resources/linkPresentationProvider.ts +179 -0
- package/resources/markdown.css.txt +39 -0
- package/resources/markdownEditor.css.txt +13 -0
- package/resources/mermaid.core-S5KCHHL2.js +18 -0
- package/resources/mindmap-definition-FBJOCRG2-H3I5F4WB.js +96 -0
- package/resources/package.json +1 -1
- package/resources/package.nls.json +1 -1
- package/resources/package.schema.json +1 -1
- package/resources/packet-AYTQ26CC-WLFKOXIZ.js +1 -0
- package/resources/pegDiagram-XKGWAZYB-HUV4U5RU.js +1 -0
- package/resources/pie-WAS4IAKB-GZIMD664.js +1 -0
- package/resources/pieDiagram-E7YTZNPT-XOJEVCEO.js +39 -0
- package/resources/pre.js +1 -1
- package/resources/preview-dark.svg +1 -1
- package/resources/preview-light.svg +1 -1
- package/resources/quadrantDiagram-AXDQQJYC-YPPZYAGP.js +7 -0
- package/resources/radar-RG4KPBEZ-URG5LVGS.js +1 -0
- package/resources/railroad-74A4TZTK-3ZMXCKLP.js +1 -0
- package/resources/railroad-abnf-HS5TGJTU-LBR5MV33.js +1 -0
- package/resources/railroad-ebnf-LZEXJU2U-YEVF3EJR.js +1 -0
- package/resources/railroad-peg-WCYAUIDC-CV774YSK.js +1 -0
- package/resources/railroadDiagram-O6MQD6OU-YZF7JNDT.js +1 -0
- package/resources/requirementDiagram-EFPCY7ZU-PZ7BYTDZ.js +84 -0
- package/resources/sankeyDiagram-P5KCCOFB-3P5DWREA.js +40 -0
- package/resources/sequenceDiagram-WJ2MYXX4-O52K5NPU.js +162 -0
- package/resources/sizeCapture-X5ZJPWSS-PRFE7SKK.js +1 -0
- package/resources/stateDiagram-HBIQ2CUA-KDPYCQOT.js +1 -0
- package/resources/stateDiagram-v2-4QOOHH4V-QBQE56JB.js +1 -0
- package/resources/swimlanes-XN3QIQJK-YCLJ3KIH.js +1 -0
- package/resources/swimlanesDiagram-VK2B7HYN-RS7VRH6T.js +8 -0
- package/resources/syntaxHighlighter.ts +2 -2
- package/resources/timeline-definition-24CTP7MA-GQ3MCHCF.js +120 -0
- package/resources/treeView-Q6P3EWNA-UEXUSAGC.js +1 -0
- package/resources/treemap-WGGIJYW6-NFXJPDAT.js +1 -0
- package/resources/tsconfig.json +1 -1
- package/resources/vennDiagram-4TSXK5OY-PNMXQJF6.js +34 -0
- package/resources/wardley-WFR3VGLG-MQ6DEZYA.js +1 -0
- package/resources/wardleyDiagram-VM6X3IG4-46KJTB57.js +78 -0
- package/resources/xychartDiagram-S5SC5T6Z-NSN5W7VL.js +7 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as e,b as i,c as a,d as n,e as o,g as u,i as d,x as l,y as s}from"./chunk-FK4OKHO7.js";var C=class extends s{static{e(this,"CynefinTokenBuilder")}constructor(){super(["cynefin-beta"])}},f={parser:{TokenBuilder:e(()=>new C,"TokenBuilder"),ValueConverter:e(()=>new l,"ValueConverter")}};function m(c=o){let r=n(a(c),u),t=n(i({shared:r}),d,f);return r.ServiceRegistry.register(t),{shared:r,Cynefin:t}}e(m,"createCynefinServices");export{f as a,m as b};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as o,b as n,c as s,d as i,e as l,g as d,t as m,w as c,y as p}from"./chunk-FK4OKHO7.js";var f=class extends p{static{o(this,"TreemapTokenBuilder")}constructor(){super(["treemap"])}},u=/classDef\s+([A-Z_a-z]\w+)(?:\s+([^\n\r;]*))?;?/,v=class extends c{static{o(this,"TreemapValueConverter")}runCustomConverter(r,e,t){if(r.name==="NUMBER2")return parseFloat(e.replace(/,/g,""));if(r.name==="SEPARATOR")return e.substring(1,e.length-1);if(r.name==="STRING2")return e.substring(1,e.length-1);if(r.name==="INDENTATION")return e.length;if(r.name==="ClassDef"){if(typeof e!="string")return e;let a=u.exec(e);if(a)return{$type:"ClassDefStatement",className:a[1],styleText:a[2]||void 0}}}};function T(r){let e=r.validation.TreemapValidator,t=r.validation.ValidationRegistry;if(t){let a={Treemap:e.checkSingleRoot.bind(e)};t.register(a,e)}}o(T,"registerValidationChecks");var g=class{static{o(this,"TreemapValidator")}checkSingleRoot(r,e){let t;for(let a of r.TreemapRows)a.item&&(t===void 0&&a.indent===void 0?t=0:a.indent===void 0?e("error","Multiple root nodes are not allowed in a treemap.",{node:a,property:"item"}):t!==void 0&&t>=parseInt(a.indent,10)&&e("error","Multiple root nodes are not allowed in a treemap.",{node:a,property:"item"}))}},h={parser:{TokenBuilder:o(()=>new f,"TokenBuilder"),ValueConverter:o(()=>new v,"ValueConverter")},validation:{TreemapValidator:o(()=>new g,"TreemapValidator")}};function C(r=l){let e=i(s(r),d),t=i(n({shared:e}),m,h);return e.ServiceRegistry.register(t),T(t),{shared:e,Treemap:t}}o(C,"createTreemapServices");export{h as a,C as b};
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
import{a as s1,b as i1}from"./chunk-TGD3YKTU.js";import{a as u1}from"./chunk-EWVD6AUZ.js";import{a as o1}from"./chunk-FH3BATM5.js";import{b as r1,c as a1}from"./chunk-CQFFNO72.js";import{a as l1}from"./chunk-TGYBLZFN.js";import{h as n1}from"./chunk-U7TCJVVP.js";import{g as t1}from"./chunk-U3E5RSXE.js";import{p as Qe,s as Je}from"./chunk-JAORNH2M.js";import{$ as at,N as Yt,T as Ht,U as qt,V as Xt,W as Qt,X as Jt,Y as Zt,Z as $t,_ as de,a as zt,aa as e1,b as Wt,g as jt,x as Kt}from"./chunk-NLCJ5AKJ.js";import{b as Z,h as Xe}from"./chunk-3CEAP2V5.js";import{a as A}from"./chunk-6LQNQPBM.js";var g1="flowchart-",A1=class{constructor(){this.vertexCounter=0,this.config=de(),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=qt,this.setAccDescription=Qt,this.setDiagramTitle=Zt,this.getAccTitle=Xt,this.getAccDescription=Jt,this.getDiagramTitle=$t,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 Yt.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(let 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,u,f,l={},k){if(!e||e.trim().length===0)return;let h;if(k!==void 0){let o;k.includes(`
|
|
2
|
+
`)?o=k+`
|
|
3
|
+
`:o=`{
|
|
4
|
+
`+k+`
|
|
5
|
+
}`,h=i1(o,{schema:s1})}let _=this.subGraphLookup.get(e);if(_&&h){_.metadata={..._.metadata,...h};return}let y=this.edges.find(o=>o.id===e);if(y){let o=h;o?.animate!==void 0&&(y.animate=o.animate),o?.animation!==void 0&&(y.animation=o.animation),o?.curve!==void 0&&(y.interpolate=o.curve);return}let L,g=this.vertices.get(e);if(g===void 0&&(i===void 0&&r===void 0&&a!==void 0&&a!==null&&Z.warn(`Style applied to unknown node "${e}". This may indicate a typo. The node will be created automatically.`),g={id:e,labelType:"text",domId:g1+e+"-"+this.vertexCounter,styles:[],classes:[]},this.vertices.set(e,g)),this.vertexCounter++,i!==void 0?(this.config=de(),L=this.sanitizeText(i.text.trim()),g.labelType=i.type,L.startsWith('"')&&L.endsWith('"')&&(L=L.substring(1,L.length-1)),g.text=L):g.text===void 0&&(g.text=e),r!==void 0&&(g.type=r),a?.forEach(o=>{g.styles.push(o)}),u?.forEach(o=>{g.classes.push(o)}),f!==void 0&&(g.dir=f),g.props===void 0?g.props=l:l!==void 0&&Object.assign(g.props,l),h!==void 0){if(h.shape){if(h.shape!==h.shape.toLowerCase()||h.shape.includes("_"))throw new Error(`No such shape: ${h.shape}. Shape names should be lowercase.`);if(!t1(h.shape))throw new Error(`No such shape: ${h.shape}.`);g.type=h?.shape}h?.label&&(g.text=h?.label,g.labelType=this.sanitizeNodeLabelType(h?.labelType)),h?.icon&&(g.icon=h?.icon,!h.label?.trim()&&g.text===e&&(g.text="")),h?.form&&(g.form=h?.form),h?.pos&&(g.pos=h?.pos),h?.img&&(g.img=h?.img,!h.label?.trim()&&g.text===e&&(g.text="")),h?.constraint&&(g.constraint=h.constraint),h.w&&(g.assetWidth=Number(h.w)),h.h&&(g.assetHeight=Number(h.h))}}addSingleLink(e,i,r,a){let l={start:e,end:i,type:void 0,text:"",labelType:"text",classes:[],isUserDefinedId:!1,interpolate:this.edges.defaultInterpolate};Z.info("abc78 Got edge...",l);let k=r.text;if(k!==void 0&&(l.text=this.sanitizeText(k.text.trim()),l.text.startsWith('"')&&l.text.endsWith('"')&&(l.text=l.text.substring(1,l.text.length-1)),l.labelType=this.sanitizeNodeLabelType(k.type)),r!==void 0&&(l.type=r.type,l.stroke=r.stroke,l.length=r.length>10?10:r.length),a&&!this.edges.some(h=>h.id===a))l.id=a,l.isUserDefinedId=!0;else{let h=this.edges.filter(_=>_.start===l.start&&_.end===l.end);h.length===0?l.id=Je(l.start,l.end,{counter:0,prefix:"L"}):l.id=Je(l.start,l.end,{counter:h.length+1,prefix:"L"})}if(this.edges.length<(this.config.maxEdges??500))Z.info("Pushing edge..."),this.edges.push(l);else throw new Error(`Edge limit exceeded. ${this.edges.length} edges found, but the limit is ${this.config.maxEdges}.
|
|
6
|
+
|
|
7
|
+
Initialize mermaid with maxEdges set to a higher number to allow more edges.
|
|
8
|
+
You cannot set this config via configuration inside the diagram as it is a secure config.
|
|
9
|
+
You have to call mermaid.initialize.`)}isLinkData(e){return e!==null&&typeof e=="object"&&"id"in e&&typeof e.id=="string"}addLink(e,i,r){let a=this.isLinkData(r)?r.id.replace("@",""):void 0;Z.info("addLink",e,i,a);for(let u of e)for(let f of i){let l=u===e[e.length-1],k=f===i[0];l&&k?this.addSingleLink(u,f,r,a):this.addSingleLink(u,f,r,void 0)}}updateLinkInterpolate(e,i){e.forEach(r=>{r==="default"?this.edges.defaultInterpolate=i:this.edges[r].interpolate=i})}updateLink(e,i){e.forEach(r=>{if(typeof r=="number"&&r>=this.edges.length)throw new Error(`The index ${r} for linkStyle is out of bounds. Valid indices for linkStyle are between 0 and ${this.edges.length-1}. (Help: Ensure that the index is within the range of existing edges.)`);r==="default"?this.edges.defaultStyle=i:(this.edges[r].style=i,(this.edges[r]?.style?.length??0)>0&&!this.edges[r]?.style?.some(a=>a?.startsWith("fill"))&&this.edges[r]?.style?.push("fill:none"))})}addClass(e,i){let r=i.join().replace(/\\,/g,"\xA7\xA7\xA7").replace(/,/g,";").replace(/§§§/g,",").split(";");e.split(",").forEach(a=>{let u=this.classes.get(a);u===void 0&&(u={id:a,styles:[],textStyles:[]},this.classes.set(a,u)),r?.forEach(f=>{if(/color/.exec(f)){let l=f.replace("fill","bgFill");u.textStyles.push(l)}u.styles.push(f)})})}setDirection(e){this.direction=e.trim(),/.*</.exec(this.direction)&&(this.direction="RL"),/.*\^/.exec(this.direction)&&(this.direction="BT"),/.*>/.exec(this.direction)&&(this.direction="LR"),/.*v/.exec(this.direction)&&(this.direction="TB"),this.direction==="TD"&&(this.direction="TB")}setClass(e,i){for(let r of e.split(",")){let a=this.vertices.get(r);a&&a.classes.push(i);let u=this.edges.find(l=>l.id===r);u&&u.classes.push(i);let f=this.subGraphLookup.get(r);f&&f.classes.push(i)}}setTooltip(e,i){if(i!==void 0){i=this.sanitizeText(i);for(let r of e.split(","))this.tooltips.set(this.version==="gen-1"?this.lookUpDomId(r):r,i)}}setClickFun(e,i,r){if(de().securityLevel!=="loose"||i===void 0)return;let a=[];if(typeof r=="string"){a=r.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let f=0;f<a.length;f++){let l=a[f].trim();l.startsWith('"')&&l.endsWith('"')&&(l=l.substr(1,l.length-2)),a[f]=l}}a.length===0&&a.push(e);let u=this.vertices.get(e);u&&(u.haveCallback=!0,this.funs.push(()=>{let f=this.lookUpDomId(e),l=document.querySelector(`[id="${f}"]`);l!==null&&l.addEventListener("click",()=>{Qe.runFunc(i,...a)},!1)}))}setLink(e,i,r){e.split(",").forEach(a=>{let u=this.vertices.get(a);u!==void 0&&(u.link=Qe.formatUrl(i,this.config),u.linkTarget=r)}),this.setClass(e,"clickable")}getTooltip(e){return this.tooltips.get(e)}setClickEvent(e,i,r){e.split(",").forEach(a=>{this.setClickFun(a,i,r)}),this.setClass(e,"clickable")}bindFunctions(e){this.funs.forEach(i=>{i(e)})}getDirection(){return this.direction?.trim()}getVertices(){return this.vertices}getEdges(){return this.edges}getClasses(){return this.classes}setupToolTips(e){let i=n1();Xe(e).select("svg").selectAll("g.node").on("mouseover",u=>{let f=Xe(u.currentTarget),l=f.attr("title");if(l===null)return;let k=u.currentTarget?.getBoundingClientRect();i.transition().duration(200).style("opacity",".9"),i.text(f.attr("title")).style("left",window.scrollX+k.left+(k.right-k.left)/2+"px").style("top",window.scrollY+k.bottom+"px"),i.html(jt.sanitize(l)),f.classed("hover",!0)}).on("mouseout",u=>{i.transition().duration(500).style("opacity",0),Xe(u.currentTarget).classed("hover",!1)})}clear(e="gen-2"){this.vertices=new Map,this.classes=new Map,this.edges=[],this.funs=[this.setupToolTips.bind(this)],this.diagramId="",this.subGraphs=[],this.subGraphLookup=new Map,this.subCount=0,this.tooltips=new Map,this.firstGraphFlag=!0,this.version=e,this.config=de(),Ht()}setGen(e){this.version=e||"gen-2"}defaultStyle(){return"fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;"}addSubGraph(e,i,r){let a=e.text.trim(),u=r.text;e===r&&/\s/.exec(r.text)&&(a=void 0);let l=A(L=>{let g={boolean:{},number:{},string:{}},o=[],c;return{nodeList:L.filter(function(B){let Q=typeof B;return B.stmt&&B.stmt==="dir"?(c=B.value,!1):B.trim()===""?!1:Q in g?g[Q].hasOwnProperty(B)?!1:g[Q][B]=!0:o.includes(B)?!1:o.push(B)}),dir:c}},"uniq")(i.flat()),k=l.nodeList,h=l.dir,_=de().flowchart??{};if(h=h??(_.inheritDir?this.getDirection()??de().direction??void 0:void 0),this.version==="gen-1")for(let L=0;L<k.length;L++)k[L]=this.lookUpDomId(k[L]);a=a??"subGraph"+this.subCount,u=u||"",u=this.sanitizeText(u),this.subCount=this.subCount+1;let y={id:a,nodes:k,title:u.trim(),classes:[],dir:h,labelType:this.sanitizeNodeLabelType(r?.type)};return Z.info("Adding",y.id,y.nodes,y.dir),y.nodes=this.makeUniq(y,this.subGraphs).nodes,this.subGraphs.push(y),this.subGraphLookup.set(a,y),a}getPosForId(e){for(let[i,r]of this.subGraphs.entries())if(r.id===e)return i;return-1}indexNodes2(e,i){let r=this.subGraphs[i].nodes;if(this.secCount=this.secCount+1,this.secCount>2e3)return{result:!1,count:0};if(this.posCrossRef[this.secCount]=i,this.subGraphs[i].id===e)return{result:!0,count:0};let a=0,u=1;for(;a<r.length;){let f=this.getPosForId(r[a]);if(f>=0){let l=this.indexNodes2(e,f);if(l.result)return{result:!0,count:u+l.count};u=u+l.count}a=a+1}return{result:!1,count:u}}getDepthFirstPos(e){return this.posCrossRef[e]}indexNodes(){this.secCount=-1,this.subGraphs.length>0&&this.indexNodes2("none",this.subGraphs.length-1)}getSubGraphs(){return this.subGraphs}firstGraph(){return this.firstGraphFlag?(this.firstGraphFlag=!1,!0):!1}destructStartLink(e){let i=e.trim(),r="arrow_open";switch(i[0]){case"<":r="arrow_point",i=i.slice(1);break;case"x":r="arrow_cross",i=i.slice(1);break;case"o":r="arrow_circle",i=i.slice(1);break}let a="normal";return i.includes("=")&&(a="thick"),i.includes(".")&&(a="dotted"),{type:r,stroke:a}}countChar(e,i){let r=i.length,a=0;for(let u=0;u<r;++u)i[u]===e&&++a;return a}destructEndLink(e){let i=e.trim(),r=i.slice(0,-1),a="arrow_open";switch(i.slice(-1)){case"x":a="arrow_cross",i.startsWith("x")&&(a="double_"+a,r=r.slice(1));break;case">":a="arrow_point",i.startsWith("<")&&(a="double_"+a,r=r.slice(1));break;case"o":a="arrow_circle",i.startsWith("o")&&(a="double_"+a,r=r.slice(1));break}let u="normal",f=r.length-1;r.startsWith("=")&&(u="thick"),r.startsWith("~")&&(u="invisible");let l=this.countChar(".",r);return l&&(u="dotted",f=l),{type:a,stroke:u,length:f}}destructLink(e,i){let r=this.destructEndLink(e),a;if(i){if(a=this.destructStartLink(i),a.stroke!==r.stroke)return{type:"INVALID",stroke:"INVALID"};if(a.type==="arrow_open")a.type=r.type;else{if(a.type!==r.type)return{type:"INVALID",stroke:"INVALID"};a.type="double_"+a.type}return a.type==="double_arrow"&&(a.type="double_arrow_point"),a.length=r.length,a}return r}exists(e,i){for(let r of e)if(r.nodes.includes(i))return!0;return!1}makeUniq(e,i){let r=[];return e.nodes.forEach((a,u)=>{this.exists(i,a)||r.push(e.nodes[u])}),{nodes:r}}getTypeFromVertex(e){if(e.img)return"imageSquare";if(e.icon)return e.form==="circle"?"iconCircle":e.form==="square"?"iconSquare":e.form==="rounded"?"iconRounded":"icon";switch(e.type){case"square":case void 0:return"squareRect";case"round":return"roundedRect";case"ellipse":return"ellipse";default:return e.type}}findNode(e,i){return e.find(r=>r.id===i)}destructEdgeType(e){let i="none",r="arrow_point";switch(e){case"arrow_point":case"arrow_circle":case"arrow_cross":r=e;break;case"double_arrow_point":case"double_arrow_circle":case"double_arrow_cross":i=e.replace("double_",""),r=i;break}return{arrowTypeStart:i,arrowTypeEnd:r}}addNodeFromVertex(e,i,r,a,u,f){let l=r.get(e.id),k=a.get(e.id)??!1,h=this.findNode(i,e.id);if(h)h.cssStyles=e.styles,h.cssCompiledStyles=this.getCompiledStyles(e.classes),h.cssClasses=e.classes.join(" ");else{let _={id:e.id,label:e.text,labelType:e.labelType,labelStyle:"",parentId:l,padding:u.flowchart?.padding||8,cssStyles:e.styles,cssCompiledStyles:this.getCompiledStyles(["default","node",...e.classes]),cssClasses:"default "+e.classes.join(" "),dir:e.dir,domId:e.domId,look:f,link:e.link,linkTarget:e.linkTarget,tooltip:this.getTooltip(e.id),icon:e.icon,pos:e.pos,img:e.img,assetWidth:e.assetWidth,assetHeight:e.assetHeight,constraint:e.constraint};k?i.push({..._,isGroup:!0,shape:"rect"}):i.push({..._,isGroup:!1,shape:this.getTypeFromVertex(e)})}}getCompiledStyles(e){let i=[];for(let r of e){let a=this.classes.get(r);a?.styles&&(i=[...i,...a.styles??[]].map(u=>u.trim())),a?.textStyles&&(i=[...i,...a.textStyles??[]].map(u=>u.trim()))}return i}getData(){let e=de(),i=[],r=[],a=this.getSubGraphs(),u=new Map,f=new Map,l=new Map;for(let o of a)for(let c of o.nodes)this.subGraphLookup.has(c)&&l.set(c,o.id);let k=A(o=>this.subGraphLookup.get(o)?.metadata?.view==="collapsed","isCollapsed"),h=A(o=>{let c,E=new Set,B=o;for(;B!==void 0&&!E.has(B);)E.add(B),k(B)&&(c=B),B=l.get(B);return c},"outermostCollapsed"),_=new Set,y=new Map;for(let o of a){let c=h(o.id);if(c!==void 0){o.id!==c&&(_.add(o.id),y.set(o.id,c));for(let E of o.nodes)E!==c&&(_.add(E),y.set(E,c))}}for(let o=a.length-1;o>=0;o--){let c=a[o];if(!_.has(c.id)){c.nodes.length>0&&f.set(c.id,!0);for(let E of c.nodes)u.set(E,c.id)}}for(let o=a.length-1;o>=0;o--){let c=a[o];_.has(c.id)||(c.metadata?.view==="collapsed"?i.push({id:c.id,label:c.title,labelStyle:"",labelType:c.labelType,parentId:u.get(c.id),padding:8,cssCompiledStyles:this.getCompiledStyles(c.classes),cssClasses:c.classes.join(" "),shape:"collapsedGroup",dir:c.dir,isGroup:!1,look:e.look}):i.push({id:c.id,label:c.title,labelStyle:"",labelType:c.labelType,parentId:u.get(c.id),padding:8,cssCompiledStyles:this.getCompiledStyles(c.classes),cssClasses:c.classes.join(" "),shape:"rect",dir:c.dir,isGroup:!0,look:e.look}))}this.getVertices().forEach(o=>{_.has(o.id)||this.addNodeFromVertex(o,i,u,f,e,e.look||"classic")});let g=this.getEdges();return g.forEach((o,c)=>{let{arrowTypeStart:E,arrowTypeEnd:B}=this.destructEdgeType(o.type),Q=[...g.defaultStyle??[]],pe=y.get(o.start)??o.start,fe=y.get(o.end)??o.end;if(pe===fe&&(y.has(o.start)||y.has(o.end)))return;o.style&&Q.push(...o.style);let Te={id:Je(pe,fe,{counter:c,prefix:"L"},o.id),isUserDefinedId:o.isUserDefinedId,start:pe,end:fe,type:o.type??"normal",label:o.text,labelType:o.labelType,labelpos:"c",thickness:o.stroke,minlen:o.length,classes:o?.stroke==="invisible"?"":"edge-thickness-normal edge-pattern-solid flowchart-link",arrowTypeStart:o?.stroke==="invisible"||o?.type==="arrow_open"?"none":E,arrowTypeEnd:o?.stroke==="invisible"||o?.type==="arrow_open"?"none":B,arrowheadStyle:"fill: #333",cssCompiledStyles:this.getCompiledStyles(o.classes),labelStyle:Q,style:Q,pattern:o.stroke,look:e.look,animate:o.animate,animation:o.animation,curve:o.interpolate||this.edges.defaultInterpolate||e.flowchart?.curve};r.push(Te)}),{nodes:i,edges:r,other:{},config:e}}defaultConfig(){return e1.flowchart}},m1=A(function(e,i){return i.db.getClasses()},"getClasses"),C1=A(async function(e,i,r,a){Z.info("REF0:"),Z.info("Drawing state diagram (v2)",i);let{securityLevel:u,flowchart:f,layout:l}=de();a.db.setDiagramId(i),Z.debug("Before getData: ");let k=a.db.getData();Z.debug("Data: ",k);let h=o1(i,u),_=a.db.getDirection();k.type=a.type,k.layoutAlgorithm=a1(l),k.layoutAlgorithm==="dagre"&&l==="elk"&&Z.warn("flowchart-elk was moved to an external package in Mermaid v11. Please refer [release notes](https://github.com/mermaid-js/mermaid/releases/tag/v11.0.0) for more details. This diagram will be rendered using `dagre` layout as a fallback."),k.direction=_,k.nodeSpacing=f?.nodeSpacing||50,k.rankSpacing=f?.rankSpacing||50,k.markers=["point","circle","cross"],k.diagramId=i,Z.debug("REF1:",k),await r1(k,h);let y=k.config.flowchart?.diagramPadding??8;Qe.insertTitle(h,"flowchartTitleText",f?.titleTopMargin||0,a.db.getDiagramTitle()),l1(h,y,"flowchart",f?.useMaxWidth||!1)},"draw"),D1={getClasses:m1,draw:C1},nt=(function(){var e=A(function(ge,d,p,b){for(p=p||{},b=ge.length;b--;p[ge[b]]=d);return p},"o"),i=[1,4],r=[1,3],a=[1,5],u=[1,8,9,10,11,27,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124,125],f=[2,2],l=[1,13],k=[1,14],h=[1,15],_=[1,16],y=[1,23],L=[1,25],g=[1,26],o=[1,27],c=[1,50],E=[1,49],B=[1,29],Q=[1,30],pe=[1,31],fe=[1,32],Te=[1,33],I=[1,45],w=[1,47],R=[1,43],N=[1,48],G=[1,44],P=[1,51],O=[1,46],M=[1,52],U=[1,53],Oe=[1,34],Me=[1,35],Ue=[1,36],ze=[1,37],We=[1,38],be=[1,58],S=[1,8,9,10,11,27,32,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124,125],ee=[1,62],te=[1,61],se=[1,63],Ee=[8,9,11,75,77,78],ut=[1,79],Se=[1,92],ye=[1,97],xe=[1,96],Fe=[1,93],_e=[1,89],Be=[1,95],ve=[1,91],Le=[1,98],Ve=[1,94],Ie=[1,99],we=[1,90],Ae=[8,9,10,11,40,75,77,78],W=[8,9,10,11,40,46,75,77,78],H=[8,9,10,11,29,40,44,46,48,50,52,54,56,58,60,63,65,67,68,70,75,77,78,89,102,105,106,109,111,114,115,116],ot=[8,9,11,44,60,75,77,78,89,102,105,106,109,111,114,115,116],Re=[44,60,89,102,105,106,109,111,114,115,116],lt=[1,122],ct=[1,123],je=[1,125],Ke=[1,124],ht=[44,60,62,74,89,102,105,106,109,111,114,115,116],dt=[1,134],pt=[1,148],ft=[1,149],bt=[1,150],kt=[1,151],gt=[1,136],At=[1,138],mt=[1,142],Ct=[1,143],Dt=[1,144],Tt=[1,145],Et=[1,146],St=[1,147],yt=[1,152],xt=[1,153],Ft=[1,132],_t=[1,133],Bt=[1,140],vt=[1,135],Lt=[1,139],Vt=[1,137],Ze=[8,9,10,11,27,32,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124,125],It=[1,155],wt=[1,157],v=[8,9,11],q=[8,9,10,11,14,44,60,89,105,106,109,111,114,115,116],m=[1,177],j=[1,173],K=[1,174],C=[1,178],D=[1,175],T=[1,176],Ne=[77,116,119],x=[8,9,10,11,12,14,27,29,32,44,60,75,84,85,86,87,88,89,90,105,109,111,114,115,116],Rt=[10,106],ke=[31,49,51,53,55,57,62,64,66,67,69,71,116,117,118],ie=[1,248],re=[1,246],ae=[1,250],ne=[1,244],ue=[1,245],oe=[1,247],le=[1,249],ce=[1,251],Ge=[1,269],Nt=[8,9,11,106],$=[8,9,10,11,60,84,105,106,109,110,111,112],$e={trace:A(function(){},"trace"),yy:{},symbols_:{error:2,start:3,graphConfig:4,document:5,line:6,statement:7,SEMI:8,NEWLINE:9,SPACE:10,EOF:11,GRAPH:12,NODIR:13,DIR:14,FirstStmtSeparator:15,ending:16,endToken:17,spaceList:18,spaceListNewline:19,vertexStatement:20,separator:21,styleStatement:22,linkStyleStatement:23,classDefStatement:24,classStatement:25,clickStatement:26,subgraph:27,textNoTags:28,SQS:29,text:30,SQE:31,end:32,direction:33,acc_title:34,acc_title_value:35,acc_descr:36,acc_descr_value:37,acc_descr_multiline_value:38,shapeData:39,SHAPE_DATA:40,link:41,node:42,styledVertex:43,AMP:44,vertex:45,STYLE_SEPARATOR:46,idString:47,DOUBLECIRCLESTART:48,DOUBLECIRCLEEND:49,PS:50,PE:51,"(-":52,"-)":53,STADIUMSTART:54,STADIUMEND:55,SUBROUTINESTART:56,SUBROUTINEEND:57,VERTEX_WITH_PROPS_START:58,"NODE_STRING[field]":59,COLON:60,"NODE_STRING[value]":61,PIPE:62,CYLINDERSTART:63,CYLINDEREND:64,DIAMOND_START:65,DIAMOND_STOP:66,TAGEND:67,TRAPSTART:68,TRAPEND:69,INVTRAPSTART:70,INVTRAPEND:71,linkStatement:72,arrowText:73,TESTSTR:74,START_LINK:75,edgeText:76,LINK:77,LINK_ID:78,edgeTextToken:79,STR:80,MD_STR:81,textToken:82,keywords:83,STYLE:84,LINKSTYLE:85,CLASSDEF:86,CLASS:87,CLICK:88,DOWN:89,UP:90,textNoTagsToken:91,stylesOpt:92,"idString[vertex]":93,"idString[class]":94,CALLBACKNAME:95,CALLBACKARGS:96,HREF:97,LINK_TARGET:98,"STR[link]":99,"STR[tooltip]":100,alphaNum:101,DEFAULT:102,numList:103,INTERPOLATE:104,NUM:105,COMMA:106,style:107,styleComponent:108,NODE_STRING:109,UNIT:110,BRKT:111,PCT:112,idStringToken:113,MINUS:114,MULT:115,UNICODE_TEXT:116,TEXT:117,TAGSTART:118,EDGE_TEXT:119,alphaNumToken:120,direction_tb:121,direction_bt:122,direction_rl:123,direction_lr:124,direction_td:125,$accept:0,$end:1},terminals_:{2:"error",8:"SEMI",9:"NEWLINE",10:"SPACE",11:"EOF",12:"GRAPH",13:"NODIR",14:"DIR",27:"subgraph",29:"SQS",31:"SQE",32:"end",34:"acc_title",35:"acc_title_value",36:"acc_descr",37:"acc_descr_value",38:"acc_descr_multiline_value",40:"SHAPE_DATA",44:"AMP",46:"STYLE_SEPARATOR",48:"DOUBLECIRCLESTART",49:"DOUBLECIRCLEEND",50:"PS",51:"PE",52:"(-",53:"-)",54:"STADIUMSTART",55:"STADIUMEND",56:"SUBROUTINESTART",57:"SUBROUTINEEND",58:"VERTEX_WITH_PROPS_START",59:"NODE_STRING[field]",60:"COLON",61:"NODE_STRING[value]",62:"PIPE",63:"CYLINDERSTART",64:"CYLINDEREND",65:"DIAMOND_START",66:"DIAMOND_STOP",67:"TAGEND",68:"TRAPSTART",69:"TRAPEND",70:"INVTRAPSTART",71:"INVTRAPEND",74:"TESTSTR",75:"START_LINK",77:"LINK",78:"LINK_ID",80:"STR",81:"MD_STR",84:"STYLE",85:"LINKSTYLE",86:"CLASSDEF",87:"CLASS",88:"CLICK",89:"DOWN",90:"UP",93:"idString[vertex]",94:"idString[class]",95:"CALLBACKNAME",96:"CALLBACKARGS",97:"HREF",98:"LINK_TARGET",99:"STR[link]",100:"STR[tooltip]",102:"DEFAULT",104:"INTERPOLATE",105:"NUM",106:"COMMA",109:"NODE_STRING",110:"UNIT",111:"BRKT",112:"PCT",114:"MINUS",115:"MULT",116:"UNICODE_TEXT",117:"TEXT",118:"TAGSTART",119:"EDGE_TEXT",121:"direction_tb",122:"direction_bt",123:"direction_rl",124:"direction_lr",125:"direction_td"},productions_:[0,[3,2],[5,0],[5,2],[6,1],[6,1],[6,1],[6,1],[6,1],[4,2],[4,2],[4,2],[4,3],[16,2],[16,1],[17,1],[17,1],[17,1],[15,1],[15,1],[15,2],[19,2],[19,2],[19,1],[19,1],[18,2],[18,1],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,9],[7,6],[7,4],[7,1],[7,2],[7,2],[7,1],[21,1],[21,1],[21,1],[39,2],[39,1],[20,4],[20,3],[20,4],[20,2],[20,2],[20,1],[42,1],[42,6],[42,5],[43,1],[43,3],[45,4],[45,4],[45,6],[45,4],[45,4],[45,4],[45,8],[45,4],[45,4],[45,4],[45,6],[45,4],[45,4],[45,4],[45,4],[45,4],[45,1],[41,2],[41,3],[41,3],[41,1],[41,3],[41,4],[76,1],[76,2],[76,1],[76,1],[72,1],[72,2],[73,3],[30,1],[30,2],[30,1],[30,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[28,1],[28,2],[28,1],[28,1],[24,5],[25,5],[26,2],[26,4],[26,3],[26,5],[26,3],[26,5],[26,5],[26,7],[26,2],[26,4],[26,2],[26,4],[26,4],[26,6],[22,5],[23,5],[23,5],[23,9],[23,9],[23,7],[23,7],[103,1],[103,3],[92,1],[92,3],[107,1],[107,2],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[82,1],[82,1],[82,1],[82,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[79,1],[79,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[47,1],[47,2],[101,1],[101,2],[33,1],[33,1],[33,1],[33,1],[33,1]],performAction:A(function(d,p,b,n,F,t,me){var s=t.length-1;switch(F){case 2:this.$=[];break;case 3:(!Array.isArray(t[s])||t[s].length>0)&&t[s-1].push(t[s]),this.$=t[s-1];break;case 4:case 183:this.$=t[s];break;case 11:n.setDirection("TB"),this.$="TB";break;case 12:n.setDirection(t[s-1]),this.$=t[s-1];break;case 27:this.$=t[s-1].nodes;break;case 28:case 29:case 30:case 31:case 32:this.$=[];break;case 33:this.$=n.addSubGraph(t[s-6],t[s-1],t[s-4]);break;case 34:this.$=n.addSubGraph(t[s-3],t[s-1],t[s-3]);break;case 35:this.$=n.addSubGraph(void 0,t[s-1],void 0);break;case 37:this.$=t[s].trim(),n.setAccTitle(this.$);break;case 38:case 39:this.$=t[s].trim(),n.setAccDescription(this.$);break;case 43:this.$=t[s-1]+t[s];break;case 44:this.$=t[s];break;case 45:n.addVertex(t[s-1][t[s-1].length-1],void 0,void 0,void 0,void 0,void 0,void 0,t[s]),n.addLink(t[s-3].stmt,t[s-1],t[s-2]),this.$={stmt:t[s-1],nodes:t[s-1].concat(t[s-3].nodes)};break;case 46:n.addLink(t[s-2].stmt,t[s],t[s-1]),this.$={stmt:t[s],nodes:t[s].concat(t[s-2].nodes)};break;case 47:n.addLink(t[s-3].stmt,t[s-1],t[s-2]),this.$={stmt:t[s-1],nodes:t[s-1].concat(t[s-3].nodes)};break;case 48:this.$={stmt:t[s-1],nodes:t[s-1]};break;case 49:n.addVertex(t[s-1][t[s-1].length-1],void 0,void 0,void 0,void 0,void 0,void 0,t[s]),this.$={stmt:t[s-1],nodes:t[s-1],shapeData:t[s]};break;case 50:this.$={stmt:t[s],nodes:t[s]};break;case 51:this.$=[t[s]];break;case 52:n.addVertex(t[s-5][t[s-5].length-1],void 0,void 0,void 0,void 0,void 0,void 0,t[s-4]),this.$=t[s-5].concat(t[s]);break;case 53:this.$=t[s-4].concat(t[s]);break;case 54:this.$=t[s];break;case 55:this.$=t[s-2],n.setClass(t[s-2],t[s]);break;case 56:this.$=t[s-3],n.addVertex(t[s-3],t[s-1],"square");break;case 57:this.$=t[s-3],n.addVertex(t[s-3],t[s-1],"doublecircle");break;case 58:this.$=t[s-5],n.addVertex(t[s-5],t[s-2],"circle");break;case 59:this.$=t[s-3],n.addVertex(t[s-3],t[s-1],"ellipse");break;case 60:this.$=t[s-3],n.addVertex(t[s-3],t[s-1],"stadium");break;case 61:this.$=t[s-3],n.addVertex(t[s-3],t[s-1],"subroutine");break;case 62:this.$=t[s-7],n.addVertex(t[s-7],t[s-1],"rect",void 0,void 0,void 0,Object.fromEntries([[t[s-5],t[s-3]]]));break;case 63:this.$=t[s-3],n.addVertex(t[s-3],t[s-1],"cylinder");break;case 64:this.$=t[s-3],n.addVertex(t[s-3],t[s-1],"round");break;case 65:this.$=t[s-3],n.addVertex(t[s-3],t[s-1],"diamond");break;case 66:this.$=t[s-5],n.addVertex(t[s-5],t[s-2],"hexagon");break;case 67:this.$=t[s-3],n.addVertex(t[s-3],t[s-1],"odd");break;case 68:this.$=t[s-3],n.addVertex(t[s-3],t[s-1],"trapezoid");break;case 69:this.$=t[s-3],n.addVertex(t[s-3],t[s-1],"inv_trapezoid");break;case 70:this.$=t[s-3],n.addVertex(t[s-3],t[s-1],"lean_right");break;case 71:this.$=t[s-3],n.addVertex(t[s-3],t[s-1],"lean_left");break;case 72:this.$=t[s],n.addVertex(t[s]);break;case 73:t[s-1].text=t[s],this.$=t[s-1];break;case 74:case 75:t[s-2].text=t[s-1],this.$=t[s-2];break;case 76:this.$=t[s];break;case 77:var V=n.destructLink(t[s],t[s-2]);this.$={type:V.type,stroke:V.stroke,length:V.length,text:t[s-1]};break;case 78:var V=n.destructLink(t[s],t[s-2]);this.$={type:V.type,stroke:V.stroke,length:V.length,text:t[s-1],id:t[s-3]};break;case 79:this.$={text:t[s],type:"text"};break;case 80:this.$={text:t[s-1].text+""+t[s],type:t[s-1].type};break;case 81:this.$={text:t[s],type:"string"};break;case 82:this.$={text:t[s],type:"markdown"};break;case 83:var V=n.destructLink(t[s]);this.$={type:V.type,stroke:V.stroke,length:V.length};break;case 84:var V=n.destructLink(t[s]);this.$={type:V.type,stroke:V.stroke,length:V.length,id:t[s-1]};break;case 85:this.$=t[s-1];break;case 86:this.$={text:t[s],type:"text"};break;case 87:this.$={text:t[s-1].text+""+t[s],type:t[s-1].type};break;case 88:this.$={text:t[s],type:"string"};break;case 89:case 104:this.$={text:t[s],type:"markdown"};break;case 101:this.$={text:t[s],type:"text"};break;case 102:this.$={text:t[s-1].text+""+t[s],type:t[s-1].type};break;case 103:this.$={text:t[s],type:"text"};break;case 105:this.$=t[s-4],n.addClass(t[s-2],t[s]);break;case 106:this.$=t[s-4],n.setClass(t[s-2],t[s]);break;case 107:case 115:this.$=t[s-1],n.setClickEvent(t[s-1],t[s]);break;case 108:case 116:this.$=t[s-3],n.setClickEvent(t[s-3],t[s-2]),n.setTooltip(t[s-3],t[s]);break;case 109:this.$=t[s-2],n.setClickEvent(t[s-2],t[s-1],t[s]);break;case 110:this.$=t[s-4],n.setClickEvent(t[s-4],t[s-3],t[s-2]),n.setTooltip(t[s-4],t[s]);break;case 111:this.$=t[s-2],n.setLink(t[s-2],t[s]);break;case 112:this.$=t[s-4],n.setLink(t[s-4],t[s-2]),n.setTooltip(t[s-4],t[s]);break;case 113:this.$=t[s-4],n.setLink(t[s-4],t[s-2],t[s]);break;case 114:this.$=t[s-6],n.setLink(t[s-6],t[s-4],t[s]),n.setTooltip(t[s-6],t[s-2]);break;case 117:this.$=t[s-1],n.setLink(t[s-1],t[s]);break;case 118:this.$=t[s-3],n.setLink(t[s-3],t[s-2]),n.setTooltip(t[s-3],t[s]);break;case 119:this.$=t[s-3],n.setLink(t[s-3],t[s-2],t[s]);break;case 120:this.$=t[s-5],n.setLink(t[s-5],t[s-4],t[s]),n.setTooltip(t[s-5],t[s-2]);break;case 121:this.$=t[s-4],n.addVertex(t[s-2],void 0,void 0,t[s]);break;case 122:this.$=t[s-4],n.updateLink([t[s-2]],t[s]);break;case 123:this.$=t[s-4],n.updateLink(t[s-2],t[s]);break;case 124:this.$=t[s-8],n.updateLinkInterpolate([t[s-6]],t[s-2]),n.updateLink([t[s-6]],t[s]);break;case 125:this.$=t[s-8],n.updateLinkInterpolate(t[s-6],t[s-2]),n.updateLink(t[s-6],t[s]);break;case 126:this.$=t[s-6],n.updateLinkInterpolate([t[s-4]],t[s]);break;case 127:this.$=t[s-6],n.updateLinkInterpolate(t[s-4],t[s]);break;case 128:case 130:this.$=[t[s]];break;case 129:case 131:t[s-2].push(t[s]),this.$=t[s-2];break;case 133:this.$=t[s-1]+t[s];break;case 181:this.$=t[s];break;case 182:this.$=t[s-1]+""+t[s];break;case 184:this.$=t[s-1]+""+t[s];break;case 185:this.$={stmt:"dir",value:"TB"};break;case 186:this.$={stmt:"dir",value:"BT"};break;case 187:this.$={stmt:"dir",value:"RL"};break;case 188:this.$={stmt:"dir",value:"LR"};break;case 189:this.$={stmt:"dir",value:"TD"};break}},"anonymous"),table:[{3:1,4:2,9:i,10:r,12:a},{1:[3]},e(u,f,{5:6}),{4:7,9:i,10:r,12:a},{4:8,9:i,10:r,12:a},{13:[1,9],14:[1,10]},{1:[2,1],6:11,7:12,8:l,9:k,10:h,11:_,20:17,22:18,23:19,24:20,25:21,26:22,27:y,33:24,34:L,36:g,38:o,42:28,43:39,44:c,45:40,47:41,60:E,84:B,85:Q,86:pe,87:fe,88:Te,89:I,102:w,105:R,106:N,109:G,111:P,113:42,114:O,115:M,116:U,121:Oe,122:Me,123:Ue,124:ze,125:We},e(u,[2,9]),e(u,[2,10]),e(u,[2,11]),{8:[1,55],9:[1,56],10:be,15:54,18:57},e(S,[2,3]),e(S,[2,4]),e(S,[2,5]),e(S,[2,6]),e(S,[2,7]),e(S,[2,8]),{8:ee,9:te,11:se,21:59,41:60,72:64,75:[1,65],77:[1,67],78:[1,66]},{8:ee,9:te,11:se,21:68},{8:ee,9:te,11:se,21:69},{8:ee,9:te,11:se,21:70},{8:ee,9:te,11:se,21:71},{8:ee,9:te,11:se,21:72},{8:ee,9:te,10:[1,73],11:se,21:74},e(S,[2,36]),{35:[1,75]},{37:[1,76]},e(S,[2,39]),e(Ee,[2,50],{18:77,39:78,10:be,40:ut}),{10:[1,80]},{10:[1,81]},{10:[1,82]},{10:[1,83]},{14:Se,44:ye,60:xe,80:[1,87],89:Fe,95:[1,84],97:[1,85],101:86,105:_e,106:Be,109:ve,111:Le,114:Ve,115:Ie,116:we,120:88},e(S,[2,185]),e(S,[2,186]),e(S,[2,187]),e(S,[2,188]),e(S,[2,189]),e(Ae,[2,51]),e(Ae,[2,54],{46:[1,100]}),e(W,[2,72],{113:113,29:[1,101],44:c,48:[1,102],50:[1,103],52:[1,104],54:[1,105],56:[1,106],58:[1,107],60:E,63:[1,108],65:[1,109],67:[1,110],68:[1,111],70:[1,112],89:I,102:w,105:R,106:N,109:G,111:P,114:O,115:M,116:U}),e(H,[2,181]),e(H,[2,142]),e(H,[2,143]),e(H,[2,144]),e(H,[2,145]),e(H,[2,146]),e(H,[2,147]),e(H,[2,148]),e(H,[2,149]),e(H,[2,150]),e(H,[2,151]),e(H,[2,152]),e(u,[2,12]),e(u,[2,18]),e(u,[2,19]),{9:[1,114]},e(ot,[2,26],{18:115,10:be}),e(S,[2,27]),{42:116,43:39,44:c,45:40,47:41,60:E,89:I,102:w,105:R,106:N,109:G,111:P,113:42,114:O,115:M,116:U},e(S,[2,40]),e(S,[2,41]),e(S,[2,42]),e(Re,[2,76],{73:117,62:[1,119],74:[1,118]}),{76:120,79:121,80:lt,81:ct,116:je,119:Ke},{75:[1,126],77:[1,127]},e(ht,[2,83]),e(S,[2,28]),e(S,[2,29]),e(S,[2,30]),e(S,[2,31]),e(S,[2,32]),{10:dt,12:pt,14:ft,27:bt,28:128,32:kt,44:gt,60:At,75:mt,80:[1,130],81:[1,131],83:141,84:Ct,85:Dt,86:Tt,87:Et,88:St,89:yt,90:xt,91:129,105:Ft,109:_t,111:Bt,114:vt,115:Lt,116:Vt},e(Ze,f,{5:154}),e(S,[2,37]),e(S,[2,38]),e(Ee,[2,48],{44:It}),e(Ee,[2,49],{18:156,10:be,40:wt}),e(Ae,[2,44]),{44:c,47:158,60:E,89:I,102:w,105:R,106:N,109:G,111:P,113:42,114:O,115:M,116:U},{102:[1,159],103:160,105:[1,161]},{44:c,47:162,60:E,89:I,102:w,105:R,106:N,109:G,111:P,113:42,114:O,115:M,116:U},{44:c,47:163,60:E,89:I,102:w,105:R,106:N,109:G,111:P,113:42,114:O,115:M,116:U},e(v,[2,107],{10:[1,164],96:[1,165]}),{80:[1,166]},e(v,[2,115],{120:168,10:[1,167],14:Se,44:ye,60:xe,89:Fe,105:_e,106:Be,109:ve,111:Le,114:Ve,115:Ie,116:we}),e(v,[2,117],{10:[1,169]}),e(q,[2,183]),e(q,[2,170]),e(q,[2,171]),e(q,[2,172]),e(q,[2,173]),e(q,[2,174]),e(q,[2,175]),e(q,[2,176]),e(q,[2,177]),e(q,[2,178]),e(q,[2,179]),e(q,[2,180]),{44:c,47:170,60:E,89:I,102:w,105:R,106:N,109:G,111:P,113:42,114:O,115:M,116:U},{30:171,67:m,80:j,81:K,82:172,116:C,117:D,118:T},{30:179,67:m,80:j,81:K,82:172,116:C,117:D,118:T},{30:181,50:[1,180],67:m,80:j,81:K,82:172,116:C,117:D,118:T},{30:182,67:m,80:j,81:K,82:172,116:C,117:D,118:T},{30:183,67:m,80:j,81:K,82:172,116:C,117:D,118:T},{30:184,67:m,80:j,81:K,82:172,116:C,117:D,118:T},{109:[1,185]},{30:186,67:m,80:j,81:K,82:172,116:C,117:D,118:T},{30:187,65:[1,188],67:m,80:j,81:K,82:172,116:C,117:D,118:T},{30:189,67:m,80:j,81:K,82:172,116:C,117:D,118:T},{30:190,67:m,80:j,81:K,82:172,116:C,117:D,118:T},{30:191,67:m,80:j,81:K,82:172,116:C,117:D,118:T},e(H,[2,182]),e(u,[2,20]),e(ot,[2,25]),e(Ee,[2,46],{39:192,18:193,10:be,40:ut}),e(Re,[2,73],{10:[1,194]}),{10:[1,195]},{30:196,67:m,80:j,81:K,82:172,116:C,117:D,118:T},{77:[1,197],79:198,116:je,119:Ke},e(Ne,[2,79]),e(Ne,[2,81]),e(Ne,[2,82]),e(Ne,[2,168]),e(Ne,[2,169]),{76:199,79:121,80:lt,81:ct,116:je,119:Ke},e(ht,[2,84]),{8:ee,9:te,10:dt,11:se,12:pt,14:ft,21:201,27:bt,29:[1,200],32:kt,44:gt,60:At,75:mt,83:141,84:Ct,85:Dt,86:Tt,87:Et,88:St,89:yt,90:xt,91:202,105:Ft,109:_t,111:Bt,114:vt,115:Lt,116:Vt},e(x,[2,101]),e(x,[2,103]),e(x,[2,104]),e(x,[2,157]),e(x,[2,158]),e(x,[2,159]),e(x,[2,160]),e(x,[2,161]),e(x,[2,162]),e(x,[2,163]),e(x,[2,164]),e(x,[2,165]),e(x,[2,166]),e(x,[2,167]),e(x,[2,90]),e(x,[2,91]),e(x,[2,92]),e(x,[2,93]),e(x,[2,94]),e(x,[2,95]),e(x,[2,96]),e(x,[2,97]),e(x,[2,98]),e(x,[2,99]),e(x,[2,100]),{6:11,7:12,8:l,9:k,10:h,11:_,20:17,22:18,23:19,24:20,25:21,26:22,27:y,32:[1,203],33:24,34:L,36:g,38:o,42:28,43:39,44:c,45:40,47:41,60:E,84:B,85:Q,86:pe,87:fe,88:Te,89:I,102:w,105:R,106:N,109:G,111:P,113:42,114:O,115:M,116:U,121:Oe,122:Me,123:Ue,124:ze,125:We},{10:be,18:204},{44:[1,205]},e(Ae,[2,43]),{10:[1,206],44:c,60:E,89:I,102:w,105:R,106:N,109:G,111:P,113:113,114:O,115:M,116:U},{10:[1,207]},{10:[1,208],106:[1,209]},e(Rt,[2,128]),{10:[1,210],44:c,60:E,89:I,102:w,105:R,106:N,109:G,111:P,113:113,114:O,115:M,116:U},{10:[1,211],44:c,60:E,89:I,102:w,105:R,106:N,109:G,111:P,113:113,114:O,115:M,116:U},{80:[1,212]},e(v,[2,109],{10:[1,213]}),e(v,[2,111],{10:[1,214]}),{80:[1,215]},e(q,[2,184]),{80:[1,216],98:[1,217]},e(Ae,[2,55],{113:113,44:c,60:E,89:I,102:w,105:R,106:N,109:G,111:P,114:O,115:M,116:U}),{31:[1,218],67:m,82:219,116:C,117:D,118:T},e(ke,[2,86]),e(ke,[2,88]),e(ke,[2,89]),e(ke,[2,153]),e(ke,[2,154]),e(ke,[2,155]),e(ke,[2,156]),{49:[1,220],67:m,82:219,116:C,117:D,118:T},{30:221,67:m,80:j,81:K,82:172,116:C,117:D,118:T},{51:[1,222],67:m,82:219,116:C,117:D,118:T},{53:[1,223],67:m,82:219,116:C,117:D,118:T},{55:[1,224],67:m,82:219,116:C,117:D,118:T},{57:[1,225],67:m,82:219,116:C,117:D,118:T},{60:[1,226]},{64:[1,227],67:m,82:219,116:C,117:D,118:T},{66:[1,228],67:m,82:219,116:C,117:D,118:T},{30:229,67:m,80:j,81:K,82:172,116:C,117:D,118:T},{31:[1,230],67:m,82:219,116:C,117:D,118:T},{67:m,69:[1,231],71:[1,232],82:219,116:C,117:D,118:T},{67:m,69:[1,234],71:[1,233],82:219,116:C,117:D,118:T},e(Ee,[2,45],{18:156,10:be,40:wt}),e(Ee,[2,47],{44:It}),e(Re,[2,75]),e(Re,[2,74]),{62:[1,235],67:m,82:219,116:C,117:D,118:T},e(Re,[2,77]),e(Ne,[2,80]),{77:[1,236],79:198,116:je,119:Ke},{30:237,67:m,80:j,81:K,82:172,116:C,117:D,118:T},e(Ze,f,{5:238}),e(x,[2,102]),e(S,[2,35]),{43:239,44:c,45:40,47:41,60:E,89:I,102:w,105:R,106:N,109:G,111:P,113:42,114:O,115:M,116:U},{10:be,18:240},{10:ie,60:re,84:ae,92:241,105:ne,107:242,108:243,109:ue,110:oe,111:le,112:ce},{10:ie,60:re,84:ae,92:252,104:[1,253],105:ne,107:242,108:243,109:ue,110:oe,111:le,112:ce},{10:ie,60:re,84:ae,92:254,104:[1,255],105:ne,107:242,108:243,109:ue,110:oe,111:le,112:ce},{105:[1,256]},{10:ie,60:re,84:ae,92:257,105:ne,107:242,108:243,109:ue,110:oe,111:le,112:ce},{44:c,47:258,60:E,89:I,102:w,105:R,106:N,109:G,111:P,113:42,114:O,115:M,116:U},e(v,[2,108]),{80:[1,259]},{80:[1,260],98:[1,261]},e(v,[2,116]),e(v,[2,118],{10:[1,262]}),e(v,[2,119]),e(W,[2,56]),e(ke,[2,87]),e(W,[2,57]),{51:[1,263],67:m,82:219,116:C,117:D,118:T},e(W,[2,64]),e(W,[2,59]),e(W,[2,60]),e(W,[2,61]),{109:[1,264]},e(W,[2,63]),e(W,[2,65]),{66:[1,265],67:m,82:219,116:C,117:D,118:T},e(W,[2,67]),e(W,[2,68]),e(W,[2,70]),e(W,[2,69]),e(W,[2,71]),e([10,44,60,89,102,105,106,109,111,114,115,116],[2,85]),e(Re,[2,78]),{31:[1,266],67:m,82:219,116:C,117:D,118:T},{6:11,7:12,8:l,9:k,10:h,11:_,20:17,22:18,23:19,24:20,25:21,26:22,27:y,32:[1,267],33:24,34:L,36:g,38:o,42:28,43:39,44:c,45:40,47:41,60:E,84:B,85:Q,86:pe,87:fe,88:Te,89:I,102:w,105:R,106:N,109:G,111:P,113:42,114:O,115:M,116:U,121:Oe,122:Me,123:Ue,124:ze,125:We},e(Ae,[2,53]),{43:268,44:c,45:40,47:41,60:E,89:I,102:w,105:R,106:N,109:G,111:P,113:42,114:O,115:M,116:U},e(v,[2,121],{106:Ge}),e(Nt,[2,130],{108:270,10:ie,60:re,84:ae,105:ne,109:ue,110:oe,111:le,112:ce}),e($,[2,132]),e($,[2,134]),e($,[2,135]),e($,[2,136]),e($,[2,137]),e($,[2,138]),e($,[2,139]),e($,[2,140]),e($,[2,141]),e(v,[2,122],{106:Ge}),{10:[1,271]},e(v,[2,123],{106:Ge}),{10:[1,272]},e(Rt,[2,129]),e(v,[2,105],{106:Ge}),e(v,[2,106],{113:113,44:c,60:E,89:I,102:w,105:R,106:N,109:G,111:P,114:O,115:M,116:U}),e(v,[2,110]),e(v,[2,112],{10:[1,273]}),e(v,[2,113]),{98:[1,274]},{51:[1,275]},{62:[1,276]},{66:[1,277]},{8:ee,9:te,11:se,21:278},e(S,[2,34]),e(Ae,[2,52]),{10:ie,60:re,84:ae,105:ne,107:279,108:243,109:ue,110:oe,111:le,112:ce},e($,[2,133]),{14:Se,44:ye,60:xe,89:Fe,101:280,105:_e,106:Be,109:ve,111:Le,114:Ve,115:Ie,116:we,120:88},{14:Se,44:ye,60:xe,89:Fe,101:281,105:_e,106:Be,109:ve,111:Le,114:Ve,115:Ie,116:we,120:88},{98:[1,282]},e(v,[2,120]),e(W,[2,58]),{30:283,67:m,80:j,81:K,82:172,116:C,117:D,118:T},e(W,[2,66]),e(Ze,f,{5:284}),e(Nt,[2,131],{108:270,10:ie,60:re,84:ae,105:ne,109:ue,110:oe,111:le,112:ce}),e(v,[2,126],{120:168,10:[1,285],14:Se,44:ye,60:xe,89:Fe,105:_e,106:Be,109:ve,111:Le,114:Ve,115:Ie,116:we}),e(v,[2,127],{120:168,10:[1,286],14:Se,44:ye,60:xe,89:Fe,105:_e,106:Be,109:ve,111:Le,114:Ve,115:Ie,116:we}),e(v,[2,114]),{31:[1,287],67:m,82:219,116:C,117:D,118:T},{6:11,7:12,8:l,9:k,10:h,11:_,20:17,22:18,23:19,24:20,25:21,26:22,27:y,32:[1,288],33:24,34:L,36:g,38:o,42:28,43:39,44:c,45:40,47:41,60:E,84:B,85:Q,86:pe,87:fe,88:Te,89:I,102:w,105:R,106:N,109:G,111:P,113:42,114:O,115:M,116:U,121:Oe,122:Me,123:Ue,124:ze,125:We},{10:ie,60:re,84:ae,92:289,105:ne,107:242,108:243,109:ue,110:oe,111:le,112:ce},{10:ie,60:re,84:ae,92:290,105:ne,107:242,108:243,109:ue,110:oe,111:le,112:ce},e(W,[2,62]),e(S,[2,33]),e(v,[2,124],{106:Ge}),e(v,[2,125],{106:Ge})],defaultActions:{},parseError:A(function(d,p){if(p.recoverable)this.trace(d);else{var b=new Error(d);throw b.hash=p,b}},"parseError"),parse:A(function(d){var p=this,b=[0],n=[],F=[null],t=[],me=this.table,s="",V=0,Gt=0,Pt=0,p1=2,Ot=1,f1=t.slice.call(arguments,1),z=Object.create(this.lexer),Ce={yy:{}};for(var et in this.yy)Object.prototype.hasOwnProperty.call(this.yy,et)&&(Ce.yy[et]=this.yy[et]);z.setInput(d,Ce.yy),Ce.yy.lexer=z,Ce.yy.parser=this,typeof z.yylloc>"u"&&(z.yylloc={});var tt=z.yylloc;t.push(tt);var b1=z.options&&z.options.ranges;typeof Ce.yy.parseError=="function"?this.parseError=Ce.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function k1(X){b.length=b.length-2*X,F.length=F.length-X,t.length=t.length-X}A(k1,"popStack");function Mt(){var X;return X=n.pop()||z.lex()||Ot,typeof X!="number"&&(X instanceof Array&&(n=X,X=n.pop()),X=p.symbols_[X]||X),X}A(Mt,"lex");for(var Y,st,De,J,F1,it,Pe={},He,he,Ut,qe;;){if(De=b[b.length-1],this.defaultActions[De]?J=this.defaultActions[De]:((Y===null||typeof Y>"u")&&(Y=Mt()),J=me[De]&&me[De][Y]),typeof J>"u"||!J.length||!J[0]){var rt="";qe=[];for(He in me[De])this.terminals_[He]&&He>p1&&qe.push("'"+this.terminals_[He]+"'");z.showPosition?rt="Parse error on line "+(V+1)+`:
|
|
10
|
+
`+z.showPosition()+`
|
|
11
|
+
Expecting `+qe.join(", ")+", got '"+(this.terminals_[Y]||Y)+"'":rt="Parse error on line "+(V+1)+": Unexpected "+(Y==Ot?"end of input":"'"+(this.terminals_[Y]||Y)+"'"),this.parseError(rt,{text:z.match,token:this.terminals_[Y]||Y,line:z.yylineno,loc:tt,expected:qe})}if(J[0]instanceof Array&&J.length>1)throw new Error("Parse Error: multiple actions possible at state: "+De+", token: "+Y);switch(J[0]){case 1:b.push(Y),F.push(z.yytext),t.push(z.yylloc),b.push(J[1]),Y=null,st?(Y=st,st=null):(Gt=z.yyleng,s=z.yytext,V=z.yylineno,tt=z.yylloc,Pt>0&&Pt--);break;case 2:if(he=this.productions_[J[1]][1],Pe.$=F[F.length-he],Pe._$={first_line:t[t.length-(he||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(he||1)].first_column,last_column:t[t.length-1].last_column},b1&&(Pe._$.range=[t[t.length-(he||1)].range[0],t[t.length-1].range[1]]),it=this.performAction.apply(Pe,[s,Gt,V,Ce.yy,J[1],F,t].concat(f1)),typeof it<"u")return it;he&&(b=b.slice(0,-1*he*2),F=F.slice(0,-1*he),t=t.slice(0,-1*he)),b.push(this.productions_[J[1]][0]),F.push(Pe.$),t.push(Pe._$),Ut=me[b[b.length-2]][b[b.length-1]],b.push(Ut);break;case 3:return!0}}return!0},"parse")},d1=(function(){var ge={EOF:1,parseError:A(function(p,b){if(this.yy.parser)this.yy.parser.parseError(p,b);else throw new Error(p)},"parseError"),setInput:A(function(d,p){return this.yy=p||this.yy||{},this._input=d,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:A(function(){var d=this._input[0];this.yytext+=d,this.yyleng++,this.offset++,this.match+=d,this.matched+=d;var p=d.match(/(?:\r\n?|\n).*/g);return p?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),d},"input"),unput:A(function(d){var p=d.length,b=d.split(/(?:\r\n?|\n)/g);this._input=d+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-p),this.offset-=p;var n=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),b.length-1&&(this.yylineno-=b.length-1);var F=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:b?(b.length===n.length?this.yylloc.first_column:0)+n[n.length-b.length].length-b[0].length:this.yylloc.first_column-p},this.options.ranges&&(this.yylloc.range=[F[0],F[0]+this.yyleng-p]),this.yyleng=this.yytext.length,this},"unput"),more:A(function(){return this._more=!0,this},"more"),reject:A(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).
|
|
12
|
+
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:A(function(d){this.unput(this.match.slice(d))},"less"),pastInput:A(function(){var d=this.matched.substr(0,this.matched.length-this.match.length);return(d.length>20?"...":"")+d.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:A(function(){var d=this.match;return d.length<20&&(d+=this._input.substr(0,20-d.length)),(d.substr(0,20)+(d.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:A(function(){var d=this.pastInput(),p=new Array(d.length+1).join("-");return d+this.upcomingInput()+`
|
|
13
|
+
`+p+"^"},"showPosition"),test_match:A(function(d,p){var b,n,F;if(this.options.backtrack_lexer&&(F={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(F.yylloc.range=this.yylloc.range.slice(0))),n=d[0].match(/(?:\r\n?|\n).*/g),n&&(this.yylineno+=n.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:n?n[n.length-1].length-n[n.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+d[0].length},this.yytext+=d[0],this.match+=d[0],this.matches=d,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(d[0].length),this.matched+=d[0],b=this.performAction.call(this,this.yy,this,p,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),b)return b;if(this._backtrack){for(var t in F)this[t]=F[t];return!1}return!1},"test_match"),next:A(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var d,p,b,n;this._more||(this.yytext="",this.match="");for(var F=this._currentRules(),t=0;t<F.length;t++)if(b=this._input.match(this.rules[F[t]]),b&&(!p||b[0].length>p[0].length)){if(p=b,n=t,this.options.backtrack_lexer){if(d=this.test_match(b,F[t]),d!==!1)return d;if(this._backtrack){p=!1;continue}else return!1}else if(!this.options.flex)break}return p?(d=this.test_match(p,F[n]),d!==!1?d:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
14
|
+
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:A(function(){var p=this.next();return p||this.lex()},"lex"),begin:A(function(p){this.conditionStack.push(p)},"begin"),popState:A(function(){var p=this.conditionStack.length-1;return p>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:A(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:A(function(p){return p=this.conditionStack.length-1-Math.abs(p||0),p>=0?this.conditionStack[p]:"INITIAL"},"topState"),pushState:A(function(p){this.begin(p)},"pushState"),stateStackSize:A(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:A(function(p,b,n,F){var t=F;switch(n){case 0:return this.begin("acc_title"),34;break;case 1:return this.popState(),"acc_title_value";break;case 2:return this.begin("acc_descr"),36;break;case 3:return this.popState(),"acc_descr_value";break;case 4:this.begin("acc_descr_multiline");break;case 5:this.popState();break;case 6:return"acc_descr_multiline_value";case 7:return this.pushState("shapeData"),b.yytext="",40;break;case 8:return this.pushState("shapeDataStr"),40;break;case 9:return this.popState(),40;break;case 10:let me=/\n\s*/g;return b.yytext=b.yytext.replace(me,"<br/>"),40;break;case 11:return 40;case 12:this.popState();break;case 13:this.begin("callbackname");break;case 14:this.popState();break;case 15:this.popState(),this.begin("callbackargs");break;case 16:return 95;case 17:this.popState();break;case 18:return 96;case 19:return"MD_STR";case 20:this.popState();break;case 21:this.begin("md_string");break;case 22:return"STR";case 23:this.popState();break;case 24:this.pushState("string");break;case 25:return 84;case 26:return 102;case 27:return 85;case 28:return 104;case 29:return 86;case 30:return 87;case 31:return 97;case 32:this.begin("click");break;case 33:this.popState();break;case 34:return 88;case 35:return p.lex.firstGraph()&&this.begin("dir"),12;break;case 36:return p.lex.firstGraph()&&this.begin("dir"),12;break;case 37:return p.lex.firstGraph()&&this.begin("dir"),12;break;case 38:return p.lex.firstGraph()&&this.begin("dir"),12;break;case 39:return 27;case 40:return 32;case 41:return 98;case 42:return 98;case 43:return 98;case 44:return 98;case 45:return this.popState(),13;break;case 46:return this.popState(),14;break;case 47:return this.popState(),14;break;case 48:return this.popState(),14;break;case 49:return this.popState(),14;break;case 50:return this.popState(),14;break;case 51:return this.popState(),14;break;case 52:return this.popState(),14;break;case 53:return this.popState(),14;break;case 54:return this.popState(),14;break;case 55:return this.popState(),14;break;case 56:return 121;case 57:return 122;case 58:return 123;case 59:return 124;case 60:return 125;case 61:return 78;case 62:return 105;case 63:return 111;case 64:return 46;case 65:return 60;case 66:return 44;case 67:return 8;case 68:return 106;case 69:return 115;case 70:return this.popState(),77;break;case 71:return this.pushState("edgeText"),75;break;case 72:return 119;case 73:return this.popState(),77;break;case 74:return this.pushState("thickEdgeText"),75;break;case 75:return 119;case 76:return this.popState(),77;break;case 77:return this.pushState("dottedEdgeText"),75;break;case 78:return 119;case 79:return 77;case 80:return this.popState(),53;break;case 81:return"TEXT";case 82:return this.pushState("ellipseText"),52;break;case 83:return this.popState(),55;break;case 84:return this.pushState("text"),54;break;case 85:return this.popState(),57;break;case 86:return this.pushState("text"),56;break;case 87:return 58;case 88:return this.pushState("text"),67;break;case 89:return this.popState(),64;break;case 90:return this.pushState("text"),63;break;case 91:return this.popState(),49;break;case 92:return this.pushState("text"),48;break;case 93:return this.popState(),69;break;case 94:return this.popState(),71;break;case 95:return 117;case 96:return this.pushState("trapText"),68;break;case 97:return this.pushState("trapText"),70;break;case 98:return 118;case 99:return 67;case 100:return 90;case 101:return"SEP";case 102:return 89;case 103:return 115;case 104:return 111;case 105:return 44;case 106:return 109;case 107:return 114;case 108:return 116;case 109:return this.popState(),62;break;case 110:return this.pushState("text"),62;break;case 111:return this.popState(),51;break;case 112:return this.pushState("text"),50;break;case 113:return this.popState(),31;break;case 114:return this.pushState("text"),29;break;case 115:return this.popState(),66;break;case 116:return this.pushState("text"),65;break;case 117:return"TEXT";case 118:return"QUOTE";case 119:return 9;case 120:return 10;case 121:return 11}},"anonymous"),rules:[/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:@\{)/,/^(?:["])/,/^(?:["])/,/^(?:[^\"]+)/,/^(?:[^}^"]+)/,/^(?:\})/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["][`])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:["])/,/^(?:style\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\b)/,/^(?:class\b)/,/^(?:href[\s])/,/^(?:click[\s]+)/,/^(?:[\s\n])/,/^(?:[^\s\n]*)/,/^(?:flowchart-elk\b)/,/^(?:swimlane-beta\b)/,/^(?:graph\b)/,/^(?:flowchart\b)/,/^(?:subgraph\b)/,/^(?:end\b\s*)/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:(\r?\n)*\s*\n)/,/^(?:\s*LR\b)/,/^(?:\s*RL\b)/,/^(?:\s*TB\b)/,/^(?:\s*BT\b)/,/^(?:\s*TD\b)/,/^(?:\s*BR\b)/,/^(?:\s*<)/,/^(?:\s*>)/,/^(?:\s*\^)/,/^(?:\s*v\b)/,/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:.*direction\s+TD[^\n]*)/,/^(?:[^\s\"]+@(?=[^\{\"]))/,/^(?:[0-9]+)/,/^(?:#)/,/^(?::::)/,/^(?::)/,/^(?:&)/,/^(?:;)/,/^(?:,)/,/^(?:\*)/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?--\s*)/,/^(?:[^-]|-(?!-)+)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?==\s*)/,/^(?:[^=]|=(?!))/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?:\s*[xo<]?-\.\s*)/,/^(?:[^\.]|\.(?!))/,/^(?:\s*~~[\~]+\s*)/,/^(?:[-/\)][\)])/,/^(?:[^\(\)\[\]\{\}]|!\)+)/,/^(?:\(-)/,/^(?:\]\))/,/^(?:\(\[)/,/^(?:\]\])/,/^(?:\[\[)/,/^(?:\[\|)/,/^(?:>)/,/^(?:\)\])/,/^(?:\[\()/,/^(?:\)\)\))/,/^(?:\(\(\()/,/^(?:[\\(?=\])][\]])/,/^(?:\/(?=\])\])/,/^(?:\/(?!\])|\\(?!\])|[^\\\[\]\(\)\{\}\/]+)/,/^(?:\[\/)/,/^(?:\[\\)/,/^(?:<)/,/^(?:>)/,/^(?:\^)/,/^(?:\\\|)/,/^(?:v\b)/,/^(?:\*)/,/^(?:#)/,/^(?:&)/,/^(?:([A-Za-z0-9!"\#$%&'*+\.`?\\_\/]|-(?=[^\>\-\.])|(?!))+)/,/^(?:-)/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\|)/,/^(?:\|)/,/^(?:\))/,/^(?:\()/,/^(?:\])/,/^(?:\[)/,/^(?:(\}))/,/^(?:\{)/,/^(?:[^\[\]\(\)\{\}\|\"]+)/,/^(?:")/,/^(?:(\r?\n)+)/,/^(?:\s)/,/^(?:$)/],conditions:{shapeDataEndBracket:{rules:[21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},shapeDataStr:{rules:[9,10,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},shapeData:{rules:[8,11,12,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},callbackargs:{rules:[17,18,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},callbackname:{rules:[14,15,16,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},href:{rules:[21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},click:{rules:[21,24,33,34,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},dottedEdgeText:{rules:[21,24,76,78,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},thickEdgeText:{rules:[21,24,73,75,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},edgeText:{rules:[21,24,70,72,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},trapText:{rules:[21,24,79,82,84,86,90,92,93,94,95,96,97,110,112,114,116],inclusive:!1},ellipseText:{rules:[21,24,79,80,81,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},text:{rules:[21,24,79,82,83,84,85,86,89,90,91,92,96,97,109,110,111,112,113,114,115,116,117],inclusive:!1},vertex:{rules:[21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},dir:{rules:[21,24,45,46,47,48,49,50,51,52,53,54,55,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},acc_descr_multiline:{rules:[5,6,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},acc_descr:{rules:[3,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},acc_title:{rules:[1,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},md_string:{rules:[19,20,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},string:{rules:[21,22,23,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},INITIAL:{rules:[0,2,4,7,13,21,24,25,26,27,28,29,30,31,32,35,36,37,38,39,40,41,42,43,44,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,73,74,76,77,79,82,84,86,87,88,90,92,96,97,98,99,100,101,102,103,104,105,106,107,108,110,112,114,116,118,119,120,121],inclusive:!0}}};return ge})();$e.lexer=d1;function Ye(){this.yy={}}return A(Ye,"Parser"),Ye.prototype=$e,$e.Parser=Ye,new Ye})();nt.parser=nt;var c1=nt,h1=Object.assign({},c1);h1.parse=e=>{let i=e.replace(/}\s*\n/g,`}
|
|
15
|
+
`);return c1.parse(i)};var T1=h1,E1=A((e,i)=>{let r=Wt,a=r(e,"r"),u=r(e,"g"),f=r(e,"b");return zt(a,u,f,i)},"fade"),S1=A(e=>`.label {
|
|
16
|
+
font-family: ${e.fontFamily};
|
|
17
|
+
color: ${e.nodeTextColor||e.textColor};
|
|
18
|
+
}
|
|
19
|
+
.cluster-label text {
|
|
20
|
+
fill: ${e.titleColor};
|
|
21
|
+
}
|
|
22
|
+
.cluster-label span {
|
|
23
|
+
color: ${e.titleColor};
|
|
24
|
+
}
|
|
25
|
+
.cluster-label span p {
|
|
26
|
+
background-color: transparent;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.label text,span {
|
|
30
|
+
fill: ${e.nodeTextColor||e.textColor};
|
|
31
|
+
color: ${e.nodeTextColor||e.textColor};
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.node rect,
|
|
35
|
+
.node circle,
|
|
36
|
+
.node ellipse,
|
|
37
|
+
.node polygon,
|
|
38
|
+
.node path {
|
|
39
|
+
fill: ${e.mainBkg};
|
|
40
|
+
stroke: ${e.nodeBorder};
|
|
41
|
+
stroke-width: ${e.strokeWidth??1}px;
|
|
42
|
+
}
|
|
43
|
+
.rough-node .label text , .node .label text, .image-shape .label, .icon-shape .label {
|
|
44
|
+
text-anchor: middle;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.node .katex path {
|
|
48
|
+
fill: #000;
|
|
49
|
+
stroke: #000;
|
|
50
|
+
stroke-width: 1px;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.rough-node .label,.node .label, .image-shape .label, .icon-shape .label {
|
|
54
|
+
text-align: center;
|
|
55
|
+
}
|
|
56
|
+
.node.clickable {
|
|
57
|
+
cursor: pointer;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
.root .anchor path {
|
|
62
|
+
fill: ${e.lineColor} !important;
|
|
63
|
+
stroke-width: 0;
|
|
64
|
+
stroke: ${e.lineColor};
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.arrowheadPath {
|
|
68
|
+
fill: ${e.arrowheadColor};
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.edgePath .path {
|
|
72
|
+
stroke: ${e.lineColor};
|
|
73
|
+
stroke-width: ${e.strokeWidth??2}px;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.flowchart-link {
|
|
77
|
+
stroke: ${e.lineColor};
|
|
78
|
+
fill: none;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.edgeLabel {
|
|
82
|
+
background-color: ${e.edgeLabelBackground};
|
|
83
|
+
p {
|
|
84
|
+
background-color: ${e.edgeLabelBackground};
|
|
85
|
+
}
|
|
86
|
+
rect {
|
|
87
|
+
opacity: 0.5;
|
|
88
|
+
background-color: ${e.edgeLabelBackground};
|
|
89
|
+
fill: ${e.edgeLabelBackground};
|
|
90
|
+
}
|
|
91
|
+
text-align: center;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
/* For html labels only */
|
|
95
|
+
.labelBkg {
|
|
96
|
+
background-color: ${E1(e.edgeLabelBackground,.5)};
|
|
97
|
+
// background-color:
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.cluster rect {
|
|
101
|
+
fill: ${e.clusterBkg};
|
|
102
|
+
stroke: ${e.clusterBorder};
|
|
103
|
+
stroke-width: 1px;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.cluster text {
|
|
107
|
+
fill: ${e.titleColor};
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.cluster span {
|
|
111
|
+
color: ${e.titleColor};
|
|
112
|
+
}
|
|
113
|
+
/* .cluster div {
|
|
114
|
+
color: ${e.titleColor};
|
|
115
|
+
} */
|
|
116
|
+
|
|
117
|
+
/* Collapsed subgraph node (@{ view: collapsed }) */
|
|
118
|
+
.node .collapsed-indicator {
|
|
119
|
+
fill: ${e.clusterBorder};
|
|
120
|
+
stroke: none;
|
|
121
|
+
opacity: 0.6;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.node .collapsed-separator {
|
|
125
|
+
stroke: ${e.clusterBorder};
|
|
126
|
+
stroke-width: 0.75px;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
div.mermaidTooltip {
|
|
130
|
+
position: absolute;
|
|
131
|
+
text-align: center;
|
|
132
|
+
max-width: 200px;
|
|
133
|
+
padding: 2px;
|
|
134
|
+
font-family: ${e.fontFamily};
|
|
135
|
+
font-size: 12px;
|
|
136
|
+
background: ${e.tertiaryColor};
|
|
137
|
+
border: 1px solid ${e.border2};
|
|
138
|
+
border-radius: 2px;
|
|
139
|
+
pointer-events: none;
|
|
140
|
+
z-index: 100;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
.flowchartTitleText {
|
|
144
|
+
text-anchor: middle;
|
|
145
|
+
font-size: 18px;
|
|
146
|
+
fill: ${e.textColor};
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
rect.text {
|
|
150
|
+
fill: none;
|
|
151
|
+
stroke-width: 0;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.icon-shape, .image-shape {
|
|
155
|
+
background-color: ${e.edgeLabelBackground};
|
|
156
|
+
p {
|
|
157
|
+
background-color: ${e.edgeLabelBackground};
|
|
158
|
+
padding: 2px;
|
|
159
|
+
}
|
|
160
|
+
.label rect {
|
|
161
|
+
opacity: 0.5;
|
|
162
|
+
background-color: ${e.edgeLabelBackground};
|
|
163
|
+
fill: ${e.edgeLabelBackground};
|
|
164
|
+
}
|
|
165
|
+
text-align: center;
|
|
166
|
+
}
|
|
167
|
+
${u1()}
|
|
168
|
+
`,"getStyles"),y1=S1,x1=A(({defaultLayout:e,styles:i=y1}={})=>({parser:T1,get db(){return new A1},renderer:D1,styles:i,init:A(r=>{r.flowchart||(r.flowchart={});let a=Kt().layout??e??r.layout;a&&at({layout:a}),r.flowchart.arrowMarkerAbsolute=r.arrowMarkerAbsolute,at({flowchart:{arrowMarkerAbsolute:r.arrowMarkerAbsolute}})},"init")}),"createFlowDiagram"),z1=x1();export{y1 as a,x1 as b,z1 as c};
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import{c as $e,d as Se}from"./chunk-4AUIAGYT.js";import{r as Q}from"./chunk-JAORNH2M.js";import{H as N,K as G,M as ye,N as Te,u as we}from"./chunk-NLCJ5AKJ.js";import{b as H,h as R}from"./chunk-3CEAP2V5.js";import{a as x}from"./chunk-6LQNQPBM.js";import{a as me,c as be}from"./chunk-OOJM4CTU.js";var ve=me((U,K)=>{(function(r){"use strict";var e=function(){},n=r.requestAnimationFrame||r.webkitRequestAnimationFrame||r.mozRequestAnimationFrame||r.msRequestAnimationFrame||function(c){return setTimeout(c,16)};function s(){var c=this;c.reads=[],c.writes=[],c.raf=n.bind(r),e("initialized",c)}s.prototype={constructor:s,runTasks:function(c){e("run tasks");for(var p;p=c.shift();)p()},measure:function(c,p){e("measure");var h=p?c.bind(p):c;return this.reads.push(h),t(this),h},mutate:function(c,p){e("mutate");var h=p?c.bind(p):c;return this.writes.push(h),t(this),h},clear:function(c){return e("clear",c),i(this.reads,c)||i(this.writes,c)},extend:function(c){if(e("extend",c),typeof c!="object")throw new Error("expected object");var p=Object.create(this);return a(p,c),p.fastdom=this,p.initialize&&p.initialize(),p},catch:null};function t(c){c.scheduled||(c.scheduled=!0,c.raf(l.bind(null,c)),e("flush scheduled"))}function l(c){e("flush");var p=c.writes,h=c.reads,u;try{e("flushing reads",h.length),c.runTasks(h),e("flushing writes",p.length),c.runTasks(p)}catch(f){u=f}if(c.scheduled=!1,(h.length||p.length)&&t(c),u)if(e("task errored",u.message),c.catch)c.catch(u);else throw u}function i(c,p){var h=c.indexOf(p);return!!~h&&!!c.splice(h,1)}function a(c,p){for(var h in p)p.hasOwnProperty(h)&&(c[h]=p[h])}var o=r.fastdom=r.fastdom||new s;typeof define=="function"?define(function(){return o}):typeof K=="object"&&(K.exports=o)})(typeof window<"u"?window:typeof U<"u"?U:globalThis)});var ze=me((Vt,X)=>{(function(){var r={initialize:function(){this._tasks=new Map},mutate:function(n,s){return e(this,"mutate",n,s)},measure:function(n,s){return e(this,"measure",n,s)},clear:function(n){var s=this._tasks,t=s.get(n);this.fastdom.clear(t),s.delete(n)}};function e(n,s,t,l){var i=n._tasks,a=n.fastdom,o,c=new Promise(function(p,h){o=a[s](function(){i.delete(c);try{p(l?t.call(l):t())}catch(u){h(u)}},l)});return i.set(c,o),c}(typeof define)[0]=="f"?define(function(){return r}):(typeof X)[0]=="o"?X.exports=r:window.fastdomPromised=r})()});function Re(r){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var s=Array.from(typeof r=="string"?[r]:r);s[s.length-1]=s[s.length-1].replace(/\r?\n([\t ]*)$/,"");var t=s.reduce(function(a,o){var c=o.match(/\n([\t ]+|(?!\s).)/g);return c?a.concat(c.map(function(p){var h,u;return(u=(h=p.match(/[\t ]/g))===null||h===void 0?void 0:h.length)!==null&&u!==void 0?u:0})):a},[]);if(t.length){var l=new RegExp(`
|
|
2
|
+
[ ]{`+Math.min.apply(Math,t)+"}","g");s=s.map(function(a){return a.replace(l,`
|
|
3
|
+
`)})}s[0]=s[0].replace(/^\r?\n/,"");var i=s[0];return e.forEach(function(a,o){var c=i.match(/(?:^|\n)( *)$/),p=c?c[1]:"",h=a;typeof a=="string"&&a.includes(`
|
|
4
|
+
`)&&(h=String(a).split(`
|
|
5
|
+
`).map(function(u,f){return f===0?u:""+p+u}).join(`
|
|
6
|
+
`)),i+=h+s[o+1]}),i}var Ge=be(ve(),1),Qe=be(ze(),1);function ee(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var S=ee();function Be(r){S=r}var P={exec:()=>null};function d(r,e=""){let n=typeof r=="string"?r:r.source,s={replace:(t,l)=>{let i=typeof l=="string"?l:l.source;return i=i.replace(b.caret,"$1"),n=n.replace(t,i),s},getRegex:()=>new RegExp(n,e)};return s}var at=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}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+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:r=>new RegExp(`^( {0,3}${r})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:r=>new RegExp(`^ {0,${Math.min(3,r-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:r=>new RegExp(`^ {0,${Math.min(3,r-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:r=>new RegExp(`^ {0,${Math.min(3,r-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:r=>new RegExp(`^ {0,${Math.min(3,r-1)}}#`),htmlBeginRegex:r=>new RegExp(`^ {0,${Math.min(3,r-1)}}<(?:[a-z].*>|!--)`,"i")},ot=/^(?:[ \t]*(?:\n|$))+/,ct=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,pt=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,E=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,ht=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,te=/(?:[*+-]|\d{1,9}[.)])/,Ce=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Me=d(Ce).replace(/bull/g,te).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(),ut=d(Ce).replace(/bull/g,te).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(),re=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,ft=/^[^\n]+/,ne=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,gt=d(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",ne).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),dt=d(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,te).getRegex(),q="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",se=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,kt=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",se).replace("tag",q).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),qe=d(re).replace("hr",E).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",q).getRegex(),xt=d(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",qe).getRegex(),ie={blockquote:xt,code:ct,def:gt,fences:pt,heading:ht,hr:E,html:kt,lheading:Me,list:dt,newline:ot,paragraph:qe,table:P,text:ft},Ae=d("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",E).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",q).getRegex(),mt={...ie,lheading:ut,table:Ae,paragraph:d(re).replace("hr",E).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Ae).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",q).getRegex()},bt={...ie,html:d(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",se).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(re).replace("hr",E).replace("heading",` *#{1,6} *[^
|
|
7
|
+
]`).replace("lheading",Me).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},wt=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,yt=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Oe=/^( {2,}|\\)\n(?!\s*$)/,Tt=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,O=/[\p{P}\p{S}]/u,le=/[\s\p{P}\p{S}]/u,je=/[^\s\p{P}\p{S}]/u,$t=d(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,le).getRegex(),Fe=/(?!~)[\p{P}\p{S}]/u,St=/(?!~)[\s\p{P}\p{S}]/u,Rt=/(?:[^\s\p{P}\p{S}]|~)/u,vt=d(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",at?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),We=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,zt=d(We,"u").replace(/punct/g,O).getRegex(),At=d(We,"u").replace(/punct/g,Fe).getRegex(),Ze="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",Lt=d(Ze,"gu").replace(/notPunctSpace/g,je).replace(/punctSpace/g,le).replace(/punct/g,O).getRegex(),_t=d(Ze,"gu").replace(/notPunctSpace/g,Rt).replace(/punctSpace/g,St).replace(/punct/g,Fe).getRegex(),Pt=d("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,je).replace(/punctSpace/g,le).replace(/punct/g,O).getRegex(),Et=d(/\\(punct)/,"gu").replace(/punct/g,O).getRegex(),It=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(),Bt=d(se).replace("(?:-->|$)","-->").getRegex(),Ct=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",Bt).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),B=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,Mt=d(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",B).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),De=d(/^!?\[(label)\]\[(ref)\]/).replace("label",B).replace("ref",ne).getRegex(),He=d(/^!?\[(ref)\](?:\[\])?/).replace("ref",ne).getRegex(),qt=d("reflink|nolink(?!\\()","g").replace("reflink",De).replace("nolink",He).getRegex(),Le=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,ae={_backpedal:P,anyPunctuation:Et,autolink:It,blockSkip:vt,br:Oe,code:yt,del:P,emStrongLDelim:zt,emStrongRDelimAst:Lt,emStrongRDelimUnd:Pt,escape:wt,link:Mt,nolink:He,punctuation:$t,reflink:De,reflinkSearch:qt,tag:Ct,text:Tt,url:P},Ot={...ae,link:d(/^!?\[(label)\]\((.*?)\)/).replace("label",B).getRegex(),reflink:d(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",B).getRegex()},V={...ae,emStrongRDelimAst:_t,emStrongLDelim:At,url:d(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",Le).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",Le).getRegex()},jt={...V,br:d(Oe).replace("{2,}","*").getRegex(),text:d(V.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},I={normal:ie,gfm:mt,pedantic:bt},A={normal:ae,gfm:V,breaks:jt,pedantic:Ot},Ft={"&":"&","<":"<",">":">",'"':""","'":"'"},_e=r=>Ft[r];function T(r,e){if(e){if(b.escapeTest.test(r))return r.replace(b.escapeReplace,_e)}else if(b.escapeTestNoEncode.test(r))return r.replace(b.escapeReplaceNoEncode,_e);return r}function Pe(r){try{r=encodeURI(r).replace(b.percentDecode,"%")}catch{return null}return r}function Ee(r,e){let n=r.replace(b.findPipe,(l,i,a)=>{let o=!1,c=i;for(;--c>=0&&a[c]==="\\";)o=!o;return o?"|":" |"}),s=n.split(b.splitPipe),t=0;if(s[0].trim()||s.shift(),s.length>0&&!s.at(-1)?.trim()&&s.pop(),e)if(s.length>e)s.splice(e);else for(;s.length<e;)s.push("");for(;t<s.length;t++)s[t]=s[t].trim().replace(b.slashPipe,"|");return s}function L(r,e,n){let s=r.length;if(s===0)return"";let t=0;for(;t<s;){let l=r.charAt(s-t-1);if(l===e&&!n)t++;else if(l!==e&&n)t++;else break}return r.slice(0,s-t)}function Wt(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}function Ie(r,e,n,s,t){let l=e.href,i=e.title||null,a=r[1].replace(t.other.outputLinkReplace,"$1");s.state.inLink=!0;let o={type:r[0].charAt(0)==="!"?"image":"link",raw:n,href:l,title:i,text:a,tokens:s.inlineTokens(a)};return s.state.inLink=!1,o}function Zt(r,e,n){let s=r.match(n.other.indentCodeCompensation);if(s===null)return e;let t=s[1];return e.split(`
|
|
8
|
+
`).map(l=>{let i=l.match(n.other.beginningSpace);if(i===null)return l;let[a]=i;return a.length>=t.length?l.slice(t.length):l}).join(`
|
|
9
|
+
`)}var C=class{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,`
|
|
10
|
+
`)}}}fences(r){let e=this.rules.block.fences.exec(r);if(e){let n=e[0],s=Zt(n,e[3]||"",this.rules);return{type:"code",raw:n,lang:e[2]?e[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):e[2],text:s}}}heading(r){let e=this.rules.block.heading.exec(r);if(e){let n=e[2].trim();if(this.rules.other.endingHash.test(n)){let s=L(n,"#");(this.options.pedantic||!s||this.rules.other.endingSpaceChar.test(s))&&(n=s.trim())}return{type:"heading",raw:e[0],depth:e[1].length,text:n,tokens:this.lexer.inline(n)}}}hr(r){let e=this.rules.block.hr.exec(r);if(e)return{type:"hr",raw:L(e[0],`
|
|
11
|
+
`)}}blockquote(r){let e=this.rules.block.blockquote.exec(r);if(e){let n=L(e[0],`
|
|
12
|
+
`).split(`
|
|
13
|
+
`),s="",t="",l=[];for(;n.length>0;){let i=!1,a=[],o;for(o=0;o<n.length;o++)if(this.rules.other.blockquoteStart.test(n[o]))a.push(n[o]),i=!0;else if(!i)a.push(n[o]);else break;n=n.slice(o);let c=a.join(`
|
|
14
|
+
`),p=c.replace(this.rules.other.blockquoteSetextReplace,`
|
|
15
|
+
$1`).replace(this.rules.other.blockquoteSetextReplace2,"");s=s?`${s}
|
|
16
|
+
${c}`:c,t=t?`${t}
|
|
17
|
+
${p}`:p;let h=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(p,l,!0),this.lexer.state.top=h,n.length===0)break;let u=l.at(-1);if(u?.type==="code")break;if(u?.type==="blockquote"){let f=u,g=f.raw+`
|
|
18
|
+
`+n.join(`
|
|
19
|
+
`),m=this.blockquote(g);l[l.length-1]=m,s=s.substring(0,s.length-f.raw.length)+m.raw,t=t.substring(0,t.length-f.text.length)+m.text;break}else if(u?.type==="list"){let f=u,g=f.raw+`
|
|
20
|
+
`+n.join(`
|
|
21
|
+
`),m=this.list(g);l[l.length-1]=m,s=s.substring(0,s.length-u.raw.length)+m.raw,t=t.substring(0,t.length-f.raw.length)+m.raw,n=g.substring(l.at(-1).raw.length).split(`
|
|
22
|
+
`);continue}}return{type:"blockquote",raw:s,tokens:l,text:t}}}list(r){let e=this.rules.block.list.exec(r);if(e){let n=e[1].trim(),s=n.length>1,t={type:"list",raw:"",ordered:s,start:s?+n.slice(0,-1):"",loose:!1,items:[]};n=s?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=s?n:"[*+-]");let l=this.rules.other.listItemRegex(n),i=!1;for(;r;){let o=!1,c="",p="";if(!(e=l.exec(r))||this.rules.block.hr.test(r))break;c=e[0],r=r.substring(c.length);let h=e[2].split(`
|
|
23
|
+
`,1)[0].replace(this.rules.other.listReplaceTabs,Z=>" ".repeat(3*Z.length)),u=r.split(`
|
|
24
|
+
`,1)[0],f=!h.trim(),g=0;if(this.options.pedantic?(g=2,p=h.trimStart()):f?g=e[1].length+1:(g=e[2].search(this.rules.other.nonSpaceChar),g=g>4?1:g,p=h.slice(g),g+=e[1].length),f&&this.rules.other.blankLine.test(u)&&(c+=u+`
|
|
25
|
+
`,r=r.substring(u.length+1),o=!0),!o){let Z=this.rules.other.nextBulletRegex(g),de=this.rules.other.hrRegex(g),ke=this.rules.other.fencesBeginRegex(g),xe=this.rules.other.headingBeginRegex(g),lt=this.rules.other.htmlBeginRegex(g);for(;r;){let D=r.split(`
|
|
26
|
+
`,1)[0],z;if(u=D,this.options.pedantic?(u=u.replace(this.rules.other.listReplaceNesting," "),z=u):z=u.replace(this.rules.other.tabCharGlobal," "),ke.test(u)||xe.test(u)||lt.test(u)||Z.test(u)||de.test(u))break;if(z.search(this.rules.other.nonSpaceChar)>=g||!u.trim())p+=`
|
|
27
|
+
`+z.slice(g);else{if(f||h.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||ke.test(h)||xe.test(h)||de.test(h))break;p+=`
|
|
28
|
+
`+u}!f&&!u.trim()&&(f=!0),c+=D+`
|
|
29
|
+
`,r=r.substring(D.length+1),h=z.slice(g)}}t.loose||(i?t.loose=!0:this.rules.other.doubleBlankLine.test(c)&&(i=!0));let m=null,ge;this.options.gfm&&(m=this.rules.other.listIsTask.exec(p),m&&(ge=m[0]!=="[ ] ",p=p.replace(this.rules.other.listReplaceTask,""))),t.items.push({type:"list_item",raw:c,task:!!m,checked:ge,loose:!1,text:p,tokens:[]}),t.raw+=c}let a=t.items.at(-1);if(a)a.raw=a.raw.trimEnd(),a.text=a.text.trimEnd();else return;t.raw=t.raw.trimEnd();for(let o=0;o<t.items.length;o++)if(this.lexer.state.top=!1,t.items[o].tokens=this.lexer.blockTokens(t.items[o].text,[]),!t.loose){let c=t.items[o].tokens.filter(h=>h.type==="space"),p=c.length>0&&c.some(h=>this.rules.other.anyLine.test(h.raw));t.loose=p}if(t.loose)for(let o=0;o<t.items.length;o++)t.items[o].loose=!0;return t}}html(r){let e=this.rules.block.html.exec(r);if(e)return{type:"html",block:!0,raw:e[0],pre:e[1]==="pre"||e[1]==="script"||e[1]==="style",text:e[0]}}def(r){let e=this.rules.block.def.exec(r);if(e){let n=e[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),s=e[2]?e[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",t=e[3]?e[3].substring(1,e[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):e[3];return{type:"def",tag:n,raw:e[0],href:s,title:t}}}table(r){let e=this.rules.block.table.exec(r);if(!e||!this.rules.other.tableDelimiter.test(e[2]))return;let n=Ee(e[1]),s=e[2].replace(this.rules.other.tableAlignChars,"").split("|"),t=e[3]?.trim()?e[3].replace(this.rules.other.tableRowBlankLine,"").split(`
|
|
30
|
+
`):[],l={type:"table",raw:e[0],header:[],align:[],rows:[]};if(n.length===s.length){for(let i of s)this.rules.other.tableAlignRight.test(i)?l.align.push("right"):this.rules.other.tableAlignCenter.test(i)?l.align.push("center"):this.rules.other.tableAlignLeft.test(i)?l.align.push("left"):l.align.push(null);for(let i=0;i<n.length;i++)l.header.push({text:n[i],tokens:this.lexer.inline(n[i]),header:!0,align:l.align[i]});for(let i of t)l.rows.push(Ee(i,l.header.length).map((a,o)=>({text:a,tokens:this.lexer.inline(a),header:!1,align:l.align[o]})));return l}}lheading(r){let e=this.rules.block.lheading.exec(r);if(e)return{type:"heading",raw:e[0],depth:e[2].charAt(0)==="="?1:2,text:e[1],tokens:this.lexer.inline(e[1])}}paragraph(r){let e=this.rules.block.paragraph.exec(r);if(e){let n=e[1].charAt(e[1].length-1)===`
|
|
31
|
+
`?e[1].slice(0,-1):e[1];return{type:"paragraph",raw:e[0],text:n,tokens:this.lexer.inline(n)}}}text(r){let e=this.rules.block.text.exec(r);if(e)return{type:"text",raw:e[0],text:e[0],tokens:this.lexer.inline(e[0])}}escape(r){let e=this.rules.inline.escape.exec(r);if(e)return{type:"escape",raw:e[0],text:e[1]}}tag(r){let e=this.rules.inline.tag.exec(r);if(e)return!this.lexer.state.inLink&&this.rules.other.startATag.test(e[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(e[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(e[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(e[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:e[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:e[0]}}link(r){let e=this.rules.inline.link.exec(r);if(e){let n=e[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(n)){if(!this.rules.other.endAngleBracket.test(n))return;let l=L(n.slice(0,-1),"\\");if((n.length-l.length)%2===0)return}else{let l=Wt(e[2],"()");if(l===-2)return;if(l>-1){let i=(e[0].indexOf("!")===0?5:4)+e[1].length+l;e[2]=e[2].substring(0,l),e[0]=e[0].substring(0,i).trim(),e[3]=""}}let s=e[2],t="";if(this.options.pedantic){let l=this.rules.other.pedanticHrefTitle.exec(s);l&&(s=l[1],t=l[3])}else t=e[3]?e[3].slice(1,-1):"";return s=s.trim(),this.rules.other.startAngleBracket.test(s)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(n)?s=s.slice(1):s=s.slice(1,-1)),Ie(e,{href:s&&s.replace(this.rules.inline.anyPunctuation,"$1"),title:t&&t.replace(this.rules.inline.anyPunctuation,"$1")},e[0],this.lexer,this.rules)}}reflink(r,e){let n;if((n=this.rules.inline.reflink.exec(r))||(n=this.rules.inline.nolink.exec(r))){let s=(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," "),t=e[s.toLowerCase()];if(!t){let l=n[0].charAt(0);return{type:"text",raw:l,text:l}}return Ie(n,t,n[0],this.lexer,this.rules)}}emStrong(r,e,n=""){let s=this.rules.inline.emStrongLDelim.exec(r);if(!(!s||s[3]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!(s[1]||s[2])||!n||this.rules.inline.punctuation.exec(n))){let t=[...s[0]].length-1,l,i,a=t,o=0,c=s[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(c.lastIndex=0,e=e.slice(-1*r.length+t);(s=c.exec(e))!=null;){if(l=s[1]||s[2]||s[3]||s[4]||s[5]||s[6],!l)continue;if(i=[...l].length,s[3]||s[4]){a+=i;continue}else if((s[5]||s[6])&&t%3&&!((t+i)%3)){o+=i;continue}if(a-=i,a>0)continue;i=Math.min(i,i+a+o);let p=[...s[0]][0].length,h=r.slice(0,t+s.index+p+i);if(Math.min(t,i)%2){let f=h.slice(1,-1);return{type:"em",raw:h,text:f,tokens:this.lexer.inlineTokens(f)}}let u=h.slice(2,-2);return{type:"strong",raw:h,text:u,tokens:this.lexer.inlineTokens(u)}}}}codespan(r){let e=this.rules.inline.code.exec(r);if(e){let n=e[2].replace(this.rules.other.newLineCharGlobal," "),s=this.rules.other.nonSpaceChar.test(n),t=this.rules.other.startingSpaceChar.test(n)&&this.rules.other.endingSpaceChar.test(n);return s&&t&&(n=n.substring(1,n.length-1)),{type:"codespan",raw:e[0],text:n}}}br(r){let e=this.rules.inline.br.exec(r);if(e)return{type:"br",raw:e[0]}}del(r){let e=this.rules.inline.del.exec(r);if(e)return{type:"del",raw:e[0],text:e[2],tokens:this.lexer.inlineTokens(e[2])}}autolink(r){let e=this.rules.inline.autolink.exec(r);if(e){let n,s;return e[2]==="@"?(n=e[1],s="mailto:"+n):(n=e[1],s=n),{type:"link",raw:e[0],text:n,href:s,tokens:[{type:"text",raw:n,text:n}]}}}url(r){let e;if(e=this.rules.inline.url.exec(r)){let n,s;if(e[2]==="@")n=e[0],s="mailto:"+n;else{let t;do t=e[0],e[0]=this.rules.inline._backpedal.exec(e[0])?.[0]??"";while(t!==e[0]);n=e[0],e[1]==="www."?s="http://"+e[0]:s=e[0]}return{type:"link",raw:e[0],text:n,href:s,tokens:[{type:"text",raw:n,text:n}]}}}inlineText(r){let e=this.rules.inline.text.exec(r);if(e){let n=this.lexer.state.inRawBlock;return{type:"text",raw:e[0],text:e[0],escaped:n}}}},w=class Y{tokens;options;state;tokenizer;inlineQueue;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||S,this.options.tokenizer=this.options.tokenizer||new C,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let n={other:b,block:I.normal,inline:A.normal};this.options.pedantic?(n.block=I.pedantic,n.inline=A.pedantic):this.options.gfm&&(n.block=I.gfm,this.options.breaks?n.inline=A.breaks:n.inline=A.gfm),this.tokenizer.rules=n}static get rules(){return{block:I,inline:A}}static lex(e,n){return new Y(n).lex(e)}static lexInline(e,n){return new Y(n).inlineTokens(e)}lex(e){e=e.replace(b.carriageReturn,`
|
|
32
|
+
`),this.blockTokens(e,this.tokens);for(let n=0;n<this.inlineQueue.length;n++){let s=this.inlineQueue[n];this.inlineTokens(s.src,s.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,n=[],s=!1){for(this.options.pedantic&&(e=e.replace(b.tabCharGlobal," ").replace(b.spaceLine,""));e;){let t;if(this.options.extensions?.block?.some(i=>(t=i.call({lexer:this},e,n))?(e=e.substring(t.raw.length),n.push(t),!0):!1))continue;if(t=this.tokenizer.space(e)){e=e.substring(t.raw.length);let i=n.at(-1);t.raw.length===1&&i!==void 0?i.raw+=`
|
|
33
|
+
`:n.push(t);continue}if(t=this.tokenizer.code(e)){e=e.substring(t.raw.length);let i=n.at(-1);i?.type==="paragraph"||i?.type==="text"?(i.raw+=(i.raw.endsWith(`
|
|
34
|
+
`)?"":`
|
|
35
|
+
`)+t.raw,i.text+=`
|
|
36
|
+
`+t.text,this.inlineQueue.at(-1).src=i.text):n.push(t);continue}if(t=this.tokenizer.fences(e)){e=e.substring(t.raw.length),n.push(t);continue}if(t=this.tokenizer.heading(e)){e=e.substring(t.raw.length),n.push(t);continue}if(t=this.tokenizer.hr(e)){e=e.substring(t.raw.length),n.push(t);continue}if(t=this.tokenizer.blockquote(e)){e=e.substring(t.raw.length),n.push(t);continue}if(t=this.tokenizer.list(e)){e=e.substring(t.raw.length),n.push(t);continue}if(t=this.tokenizer.html(e)){e=e.substring(t.raw.length),n.push(t);continue}if(t=this.tokenizer.def(e)){e=e.substring(t.raw.length);let i=n.at(-1);i?.type==="paragraph"||i?.type==="text"?(i.raw+=(i.raw.endsWith(`
|
|
37
|
+
`)?"":`
|
|
38
|
+
`)+t.raw,i.text+=`
|
|
39
|
+
`+t.raw,this.inlineQueue.at(-1).src=i.text):this.tokens.links[t.tag]||(this.tokens.links[t.tag]={href:t.href,title:t.title},n.push(t));continue}if(t=this.tokenizer.table(e)){e=e.substring(t.raw.length),n.push(t);continue}if(t=this.tokenizer.lheading(e)){e=e.substring(t.raw.length),n.push(t);continue}let l=e;if(this.options.extensions?.startBlock){let i=1/0,a=e.slice(1),o;this.options.extensions.startBlock.forEach(c=>{o=c.call({lexer:this},a),typeof o=="number"&&o>=0&&(i=Math.min(i,o))}),i<1/0&&i>=0&&(l=e.substring(0,i+1))}if(this.state.top&&(t=this.tokenizer.paragraph(l))){let i=n.at(-1);s&&i?.type==="paragraph"?(i.raw+=(i.raw.endsWith(`
|
|
40
|
+
`)?"":`
|
|
41
|
+
`)+t.raw,i.text+=`
|
|
42
|
+
`+t.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=i.text):n.push(t),s=l.length!==e.length,e=e.substring(t.raw.length);continue}if(t=this.tokenizer.text(e)){e=e.substring(t.raw.length);let i=n.at(-1);i?.type==="text"?(i.raw+=(i.raw.endsWith(`
|
|
43
|
+
`)?"":`
|
|
44
|
+
`)+t.raw,i.text+=`
|
|
45
|
+
`+t.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=i.text):n.push(t);continue}if(e){let i="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(i);break}else throw new Error(i)}}return this.state.top=!0,n}inline(e,n=[]){return this.inlineQueue.push({src:e,tokens:n}),n}inlineTokens(e,n=[]){let s=e,t=null;if(this.tokens.links){let o=Object.keys(this.tokens.links);if(o.length>0)for(;(t=this.tokenizer.rules.inline.reflinkSearch.exec(s))!=null;)o.includes(t[0].slice(t[0].lastIndexOf("[")+1,-1))&&(s=s.slice(0,t.index)+"["+"a".repeat(t[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(t=this.tokenizer.rules.inline.anyPunctuation.exec(s))!=null;)s=s.slice(0,t.index)+"++"+s.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let l;for(;(t=this.tokenizer.rules.inline.blockSkip.exec(s))!=null;)l=t[2]?t[2].length:0,s=s.slice(0,t.index+l)+"["+"a".repeat(t[0].length-l-2)+"]"+s.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);s=this.options.hooks?.emStrongMask?.call({lexer:this},s)??s;let i=!1,a="";for(;e;){i||(a=""),i=!1;let o;if(this.options.extensions?.inline?.some(p=>(o=p.call({lexer:this},e,n))?(e=e.substring(o.raw.length),n.push(o),!0):!1))continue;if(o=this.tokenizer.escape(e)){e=e.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.tag(e)){e=e.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.link(e)){e=e.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(o.raw.length);let p=n.at(-1);o.type==="text"&&p?.type==="text"?(p.raw+=o.raw,p.text+=o.text):n.push(o);continue}if(o=this.tokenizer.emStrong(e,s,a)){e=e.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.codespan(e)){e=e.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.br(e)){e=e.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.del(e)){e=e.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.autolink(e)){e=e.substring(o.raw.length),n.push(o);continue}if(!this.state.inLink&&(o=this.tokenizer.url(e))){e=e.substring(o.raw.length),n.push(o);continue}let c=e;if(this.options.extensions?.startInline){let p=1/0,h=e.slice(1),u;this.options.extensions.startInline.forEach(f=>{u=f.call({lexer:this},h),typeof u=="number"&&u>=0&&(p=Math.min(p,u))}),p<1/0&&p>=0&&(c=e.substring(0,p+1))}if(o=this.tokenizer.inlineText(c)){e=e.substring(o.raw.length),o.raw.slice(-1)!=="_"&&(a=o.raw.slice(-1)),i=!0;let p=n.at(-1);p?.type==="text"?(p.raw+=o.raw,p.text+=o.text):n.push(o);continue}if(e){let p="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(p);break}else throw new Error(p)}}return n}},M=class{options;parser;constructor(r){this.options=r||S}space(r){return""}code({text:r,lang:e,escaped:n}){let s=(e||"").match(b.notSpaceStart)?.[0],t=r.replace(b.endingNewline,"")+`
|
|
46
|
+
`;return s?'<pre><code class="language-'+T(s)+'">'+(n?t:T(t,!0))+`</code></pre>
|
|
47
|
+
`:"<pre><code>"+(n?t:T(t,!0))+`</code></pre>
|
|
48
|
+
`}blockquote({tokens:r}){return`<blockquote>
|
|
49
|
+
${this.parser.parse(r)}</blockquote>
|
|
50
|
+
`}html({text:r}){return r}def(r){return""}heading({tokens:r,depth:e}){return`<h${e}>${this.parser.parseInline(r)}</h${e}>
|
|
51
|
+
`}hr(r){return`<hr>
|
|
52
|
+
`}list(r){let e=r.ordered,n=r.start,s="";for(let i=0;i<r.items.length;i++){let a=r.items[i];s+=this.listitem(a)}let t=e?"ol":"ul",l=e&&n!==1?' start="'+n+'"':"";return"<"+t+l+`>
|
|
53
|
+
`+s+"</"+t+`>
|
|
54
|
+
`}listitem(r){let e="";if(r.task){let n=this.checkbox({checked:!!r.checked});r.loose?r.tokens[0]?.type==="paragraph"?(r.tokens[0].text=n+" "+r.tokens[0].text,r.tokens[0].tokens&&r.tokens[0].tokens.length>0&&r.tokens[0].tokens[0].type==="text"&&(r.tokens[0].tokens[0].text=n+" "+T(r.tokens[0].tokens[0].text),r.tokens[0].tokens[0].escaped=!0)):r.tokens.unshift({type:"text",raw:n+" ",text:n+" ",escaped:!0}):e+=n+" "}return e+=this.parser.parse(r.tokens,!!r.loose),`<li>${e}</li>
|
|
55
|
+
`}checkbox({checked:r}){return"<input "+(r?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:r}){return`<p>${this.parser.parseInline(r)}</p>
|
|
56
|
+
`}table(r){let e="",n="";for(let t=0;t<r.header.length;t++)n+=this.tablecell(r.header[t]);e+=this.tablerow({text:n});let s="";for(let t=0;t<r.rows.length;t++){let l=r.rows[t];n="";for(let i=0;i<l.length;i++)n+=this.tablecell(l[i]);s+=this.tablerow({text:n})}return s&&(s=`<tbody>${s}</tbody>`),`<table>
|
|
57
|
+
<thead>
|
|
58
|
+
`+e+`</thead>
|
|
59
|
+
`+s+`</table>
|
|
60
|
+
`}tablerow({text:r}){return`<tr>
|
|
61
|
+
${r}</tr>
|
|
62
|
+
`}tablecell(r){let e=this.parser.parseInline(r.tokens),n=r.header?"th":"td";return(r.align?`<${n} align="${r.align}">`:`<${n}>`)+e+`</${n}>
|
|
63
|
+
`}strong({tokens:r}){return`<strong>${this.parser.parseInline(r)}</strong>`}em({tokens:r}){return`<em>${this.parser.parseInline(r)}</em>`}codespan({text:r}){return`<code>${T(r,!0)}</code>`}br(r){return"<br>"}del({tokens:r}){return`<del>${this.parser.parseInline(r)}</del>`}link({href:r,title:e,tokens:n}){let s=this.parser.parseInline(n),t=Pe(r);if(t===null)return s;r=t;let l='<a href="'+r+'"';return e&&(l+=' title="'+T(e)+'"'),l+=">"+s+"</a>",l}image({href:r,title:e,text:n,tokens:s}){s&&(n=this.parser.parseInline(s,this.parser.textRenderer));let t=Pe(r);if(t===null)return T(n);r=t;let l=`<img src="${r}" alt="${n}"`;return e&&(l+=` title="${T(e)}"`),l+=">",l}text(r){return"tokens"in r&&r.tokens?this.parser.parseInline(r.tokens):"escaped"in r&&r.escaped?r.text:T(r.text)}},oe=class{strong({text:r}){return r}em({text:r}){return r}codespan({text:r}){return r}del({text:r}){return r}html({text:r}){return r}text({text:r}){return r}link({text:r}){return""+r}image({text:r}){return""+r}br(){return""}},y=class J{options;renderer;textRenderer;constructor(e){this.options=e||S,this.options.renderer=this.options.renderer||new M,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new oe}static parse(e,n){return new J(n).parse(e)}static parseInline(e,n){return new J(n).parseInline(e)}parse(e,n=!0){let s="";for(let t=0;t<e.length;t++){let l=e[t];if(this.options.extensions?.renderers?.[l.type]){let a=l,o=this.options.extensions.renderers[a.type].call({parser:this},a);if(o!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(a.type)){s+=o||"";continue}}let i=l;switch(i.type){case"space":{s+=this.renderer.space(i);continue}case"hr":{s+=this.renderer.hr(i);continue}case"heading":{s+=this.renderer.heading(i);continue}case"code":{s+=this.renderer.code(i);continue}case"table":{s+=this.renderer.table(i);continue}case"blockquote":{s+=this.renderer.blockquote(i);continue}case"list":{s+=this.renderer.list(i);continue}case"html":{s+=this.renderer.html(i);continue}case"def":{s+=this.renderer.def(i);continue}case"paragraph":{s+=this.renderer.paragraph(i);continue}case"text":{let a=i,o=this.renderer.text(a);for(;t+1<e.length&&e[t+1].type==="text";)a=e[++t],o+=`
|
|
64
|
+
`+this.renderer.text(a);n?s+=this.renderer.paragraph({type:"paragraph",raw:o,text:o,tokens:[{type:"text",raw:o,text:o,escaped:!0}]}):s+=o;continue}default:{let a='Token with "'+i.type+'" type was not found.';if(this.options.silent)return console.error(a),"";throw new Error(a)}}}return s}parseInline(e,n=this.renderer){let s="";for(let t=0;t<e.length;t++){let l=e[t];if(this.options.extensions?.renderers?.[l.type]){let a=this.options.extensions.renderers[l.type].call({parser:this},l);if(a!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(l.type)){s+=a||"";continue}}let i=l;switch(i.type){case"escape":{s+=n.text(i);break}case"html":{s+=n.html(i);break}case"link":{s+=n.link(i);break}case"image":{s+=n.image(i);break}case"strong":{s+=n.strong(i);break}case"em":{s+=n.em(i);break}case"codespan":{s+=n.codespan(i);break}case"br":{s+=n.br(i);break}case"del":{s+=n.del(i);break}case"text":{s+=n.text(i);break}default:{let a='Token with "'+i.type+'" type was not found.';if(this.options.silent)return console.error(a),"";throw new Error(a)}}}return s}},_=class{options;block;constructor(r){this.options=r||S}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(r){return r}postprocess(r){return r}processAllTokens(r){return r}emStrongMask(r){return r}provideLexer(){return this.block?w.lex:w.lexInline}provideParser(){return this.block?y.parse:y.parseInline}},Dt=class{defaults=ee();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=y;Renderer=M;TextRenderer=oe;Lexer=w;Tokenizer=C;Hooks=_;constructor(...r){this.use(...r)}walkTokens(r,e){let n=[];for(let s of r)switch(n=n.concat(e.call(this,s)),s.type){case"table":{let t=s;for(let l of t.header)n=n.concat(this.walkTokens(l.tokens,e));for(let l of t.rows)for(let i of l)n=n.concat(this.walkTokens(i.tokens,e));break}case"list":{let t=s;n=n.concat(this.walkTokens(t.items,e));break}default:{let t=s;this.defaults.extensions?.childTokens?.[t.type]?this.defaults.extensions.childTokens[t.type].forEach(l=>{let i=t[l].flat(1/0);n=n.concat(this.walkTokens(i,e))}):t.tokens&&(n=n.concat(this.walkTokens(t.tokens,e)))}}return n}use(...r){let e=this.defaults.extensions||{renderers:{},childTokens:{}};return r.forEach(n=>{let s={...n};if(s.async=this.defaults.async||s.async||!1,n.extensions&&(n.extensions.forEach(t=>{if(!t.name)throw new Error("extension name required");if("renderer"in t){let l=e.renderers[t.name];l?e.renderers[t.name]=function(...i){let a=t.renderer.apply(this,i);return a===!1&&(a=l.apply(this,i)),a}:e.renderers[t.name]=t.renderer}if("tokenizer"in t){if(!t.level||t.level!=="block"&&t.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let l=e[t.level];l?l.unshift(t.tokenizer):e[t.level]=[t.tokenizer],t.start&&(t.level==="block"?e.startBlock?e.startBlock.push(t.start):e.startBlock=[t.start]:t.level==="inline"&&(e.startInline?e.startInline.push(t.start):e.startInline=[t.start]))}"childTokens"in t&&t.childTokens&&(e.childTokens[t.name]=t.childTokens)}),s.extensions=e),n.renderer){let t=this.defaults.renderer||new M(this.defaults);for(let l in n.renderer){if(!(l in t))throw new Error(`renderer '${l}' does not exist`);if(["options","parser"].includes(l))continue;let i=l,a=n.renderer[i],o=t[i];t[i]=(...c)=>{let p=a.apply(t,c);return p===!1&&(p=o.apply(t,c)),p||""}}s.renderer=t}if(n.tokenizer){let t=this.defaults.tokenizer||new C(this.defaults);for(let l in n.tokenizer){if(!(l in t))throw new Error(`tokenizer '${l}' does not exist`);if(["options","rules","lexer"].includes(l))continue;let i=l,a=n.tokenizer[i],o=t[i];t[i]=(...c)=>{let p=a.apply(t,c);return p===!1&&(p=o.apply(t,c)),p}}s.tokenizer=t}if(n.hooks){let t=this.defaults.hooks||new _;for(let l in n.hooks){if(!(l in t))throw new Error(`hook '${l}' does not exist`);if(["options","block"].includes(l))continue;let i=l,a=n.hooks[i],o=t[i];_.passThroughHooks.has(l)?t[i]=c=>{if(this.defaults.async&&_.passThroughHooksRespectAsync.has(l))return(async()=>{let h=await a.call(t,c);return o.call(t,h)})();let p=a.call(t,c);return o.call(t,p)}:t[i]=(...c)=>{if(this.defaults.async)return(async()=>{let h=await a.apply(t,c);return h===!1&&(h=await o.apply(t,c)),h})();let p=a.apply(t,c);return p===!1&&(p=o.apply(t,c)),p}}s.hooks=t}if(n.walkTokens){let t=this.defaults.walkTokens,l=n.walkTokens;s.walkTokens=function(i){let a=[];return a.push(l.call(this,i)),t&&(a=a.concat(t.call(this,i))),a}}this.defaults={...this.defaults,...s}}),this}setOptions(r){return this.defaults={...this.defaults,...r},this}lexer(r,e){return w.lex(r,e??this.defaults)}parser(r,e){return y.parse(r,e??this.defaults)}parseMarkdown(r){return(e,n)=>{let s={...n},t={...this.defaults,...s},l=this.onError(!!t.silent,!!t.async);if(this.defaults.async===!0&&s.async===!1)return l(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof e>"u"||e===null)return l(new Error("marked(): input parameter is undefined or null"));if(typeof e!="string")return l(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected"));if(t.hooks&&(t.hooks.options=t,t.hooks.block=r),t.async)return(async()=>{let i=t.hooks?await t.hooks.preprocess(e):e,a=await(t.hooks?await t.hooks.provideLexer():r?w.lex:w.lexInline)(i,t),o=t.hooks?await t.hooks.processAllTokens(a):a;t.walkTokens&&await Promise.all(this.walkTokens(o,t.walkTokens));let c=await(t.hooks?await t.hooks.provideParser():r?y.parse:y.parseInline)(o,t);return t.hooks?await t.hooks.postprocess(c):c})().catch(l);try{t.hooks&&(e=t.hooks.preprocess(e));let i=(t.hooks?t.hooks.provideLexer():r?w.lex:w.lexInline)(e,t);t.hooks&&(i=t.hooks.processAllTokens(i)),t.walkTokens&&this.walkTokens(i,t.walkTokens);let a=(t.hooks?t.hooks.provideParser():r?y.parse:y.parseInline)(i,t);return t.hooks&&(a=t.hooks.postprocess(a)),a}catch(i){return l(i)}}}onError(r,e){return n=>{if(n.message+=`
|
|
65
|
+
Please report this to https://github.com/markedjs/marked.`,r){let s="<p>An error occurred:</p><pre>"+T(n.message+"",!0)+"</pre>";return e?Promise.resolve(s):s}if(e)return Promise.reject(n);throw n}}},$=new Dt;function k(r,e){return $.parse(r,e)}k.options=k.setOptions=function(r){return $.setOptions(r),k.defaults=$.defaults,Be(k.defaults),k};k.getDefaults=ee;k.defaults=S;k.use=function(...r){return $.use(...r),k.defaults=$.defaults,Be(k.defaults),k};k.walkTokens=function(r,e){return $.walkTokens(r,e)};k.parseInline=$.parseInline;k.Parser=y;k.parser=y.parse;k.Renderer=M;k.TextRenderer=oe;k.Lexer=w;k.lexer=w.lex;k.Tokenizer=C;k.Hooks=_;k.parse=k;var Yt=k.options,Jt=k.setOptions,er=k.use,tr=k.walkTokens,rr=k.parseInline;var nr=y.parse,sr=w.lex;var pe=typeof performance<"u"&&typeof performance.now=="function",v=x(()=>pe?performance.now():0,"now"),ce="\u{1F9DC} ",Ht="Mermaid render",Nt="Mermaid",Gt={parse:"tertiary",prepare:"secondary",measure:"primary",layout:"primary-dark",layoutCore:"error",draw:"primary-light",paint:"secondary-dark",serialize:"tertiary-dark",render:"primary-light"},kr=class{constructor(){this.enabled=!1,this.autoPrint=!0,this.records=[],this.maxRecords=200,this.roots=[],this.stack=[],this.buckets={}}static{x(this,"Profiler")}enable(){return this.enabled=!0,this}disable(){return this.enabled=!1,this}start(r){this.enabled&&(this.roots=[],this.stack=[],this.buckets={},this.begin(r))}tickSync(r,e){if(!this.enabled)return e();let n=v();try{return e()}finally{this.buckets[r]=(this.buckets[r]??0)+(v()-n)}}async tick(r,e){if(!this.enabled)return e();let n=v();try{return await e()}finally{this.buckets[r]=(this.buckets[r]??0)+(v()-n)}}stop(){if(!this.enabled)return;for(;this.stack.length>0;)this.end();let r=this.roots.at(-1),e=this.runLabel??r?.name;return r&&(this.records.push({label:e??r.name,tree:r,buckets:{...this.buckets}}),this.records.length>this.maxRecords&&this.records.splice(0,this.records.length-this.maxRecords),this.autoPrint&&this.printSummary(r,e)),this.runLabel=void 0,r}begin(r){if(!this.enabled)return;let e={name:r,start:v(),duration:-1,children:[]},n=this.stack.at(-1);if(n?n.children.push(e):this.roots.push(e),this.stack.push(e),pe&&typeof performance.mark=="function")try{performance.mark(`${ce}${r} \u25B6`)}catch{}}end(){if(!this.enabled)return;let r=this.stack.pop();if(!r)return;let e=v();if(r.duration=e-r.start,pe&&typeof performance.measure=="function")try{performance.measure(`${ce}${r.name}`,{start:r.start,end:e,detail:{devtools:{dataType:"track-entry",track:Ht,trackGroup:Nt,color:Gt[r.name]??"primary",tooltipText:`${r.name} \u2014 ${r.duration.toFixed(1)} ms`}}})}catch{}}async span(r,e){if(!this.enabled)return e();this.begin(r);try{return await e()}finally{this.end()}}report(){return this.records.at(-1)?.tree??this.roots.at(-1)}clear(){this.records.length=0,this.roots=[],this.stack=[],this.runLabel=void 0}reset(){this.roots=[],this.stack=[]}printSummary(r=this.report(),e){if(!r)return;let n=r.duration,s=e&&e!==r.name?`${r.name} [${e}]`:r.name,t=["ms % phase"],l=x((a,o)=>{let c=" ".repeat(o),p=a.duration.toFixed(1).padStart(8),h=n>0?`${(a.duration/n*100).toFixed(0).padStart(3)}%`:" -";t.push(`${p} ${h} ${c}${a.name}`);for(let u of a.children)l(u,o+1);if(a.children.length>0){let u=a.children.reduce((g,m)=>g+m.duration,0),f=a.duration-u;if(f>.5){let g=f.toFixed(1).padStart(8);t.push(`${g} ${c} (self)`)}}},"walk");l(r,0);let i=Object.keys(this.buckets);if(i.length>0){t.push("\u2014\u2014 buckets (summed) \u2014\u2014");for(let a of i)t.push(`${this.buckets[a].toFixed(1).padStart(8)} ${a}`)}console.log(`${ce}mermaid render profile \xB7 ${s}
|
|
66
|
+
${t.join(`
|
|
67
|
+
`)}`)}};globalThis.injected??={includeLargeFeatures:!0,profiling:!1,version:"0.0.0"};var Qt=Ge.default.extend({raf(r){typeof queueMicrotask=="function"?queueMicrotask(r):setTimeout(r,0)}}).extend(Qe.default),Ut=Qt;function Ue(r,{markdownAutoWrap:e}){let s=r.replace(/<br\/>/g,`
|
|
68
|
+
`).replace(/\n{2,}/g,`
|
|
69
|
+
`);return Re(s)}x(Ue,"preprocessMarkdown");function Ke(r){return r.split(/\\n|\n|<br\s*\/?>/gi).map(e=>e.trim().match(/<[^>]+>|[^\s<>]+/g)?.map(n=>({content:n,type:"normal"}))??[])}x(Ke,"nonMarkdownToLines");function Xe(r,e={}){let n=Ue(r,e),s=k.lexer(n),t=[[]],l=0;function i(a,o="normal"){a.type==="text"?a.text.split(`
|
|
70
|
+
`).forEach((p,h)=>{h!==0&&(l++,t.push([])),p.split(" ").forEach(u=>{u=u.replace(/'/g,"'"),u&&t[l].push({content:u,type:o})})}):a.type==="strong"||a.type==="em"?a.tokens.forEach(c=>{i(c,a.type)}):a.type==="html"&&t[l].push({content:a.text,type:"normal"})}return x(i,"processNode"),s.forEach(a=>{a.type==="paragraph"?a.tokens?.forEach(o=>{i(o)}):a.type==="html"?t[l].push({content:a.text,type:"normal"}):t[l].push({content:a.raw,type:"normal"})}),t}x(Xe,"markdownToLines");function Ve(r){return r?`<p>${r.replace(/\\n|\n/g,"<br />")}</p>`:""}x(Ve,"nonMarkdownToHTML");function Ye(r,{markdownAutoWrap:e}={}){let n=k.lexer(r);function s(t){return t.type==="text"?e===!1?t.text.replace(/\n */g,"<br/>").replace(/ /g," "):t.text.replace(/\n */g,"<br/>"):t.type==="strong"?`<strong>${t.tokens?.map(s).join("")}</strong>`:t.type==="em"?`<em>${t.tokens?.map(s).join("")}</em>`:t.type==="paragraph"?`<p>${t.tokens?.map(s).join("")}</p>`:t.type==="space"?"":t.type==="html"?`${t.text}`:t.type==="escape"?t.text:(H.warn(`Unsupported markdown: ${t.type}`),t.raw)}return x(s,"output"),n.map(s).join("")}x(Ye,"markdownToHTML");function Je(r){return Intl.Segmenter?[...new Intl.Segmenter().segment(r)].map(e=>e.segment):[...r]}x(Je,"splitTextToChars");function et(r,e){let n=Je(e.content);return fe(r,[],n,e.type)}x(et,"splitWordToFitWidth");function fe(r,e,n,s){if(n.length===0)return[{content:e.join(""),type:s},{content:"",type:s}];let[t,...l]=n,i=[...e,t];return r([{content:i.join(""),type:s}])?fe(r,i,l,s):(e.length===0&&t&&(e.push(t),n.shift()),[{content:e.join(""),type:s},{content:n.join(""),type:s}])}x(fe,"splitWordToFitWidthRecursion");function tt(r,e){if(r.some(({content:n})=>n.includes(`
|
|
71
|
+
`)))throw new Error("splitLineToFitWidth does not support newlines in the line");return j(r,e)}x(tt,"splitLineToFitWidth");function j(r,e,n=[],s=[]){if(r.length===0)return s.length>0&&n.push(s),n.length>0?n:[];let t="";r[0].content===" "&&(t=" ",r.shift());let l=r.shift()??{content:" ",type:"normal"},i=[...s];if(t!==""&&i.push({content:t,type:"normal"}),i.push(l),e(i))return j(r,e,n,i);if(s.length>0)n.push(s),r.unshift(l);else if(l.content){let[a,o]=et(e,l);n.push([a]),o.content&&r.unshift(o)}return j(r,e,n)}x(j,"splitLineToFitWidthRecursion");function he(r,e){e&&r.attr("style",e)}x(he,"applyStyle");var Ne=16384;async function rt(r,e,n,s,t=!1,l=we()){let i=r.append("foreignObject");i.attr("width",`${Math.min(10*n,Ne)}px`),i.attr("height",`${Math.min(10*n,Ne)}px`);let a=i.append("xhtml:div"),o=G(e.label)?await ye(e.label.replace(Te.lineBreakRegex,`
|
|
72
|
+
`),l):N(e.label,l),c=e.isNode?"nodeLabel":"edgeLabel",p=a.append("span");return p.html(o),he(p,e.labelStyle),p.attr("class",`${c} ${s}`),he(a,e.labelStyle),a.style("display","table-cell"),a.style("white-space","nowrap"),a.style("line-height","1.5"),n!==Number.POSITIVE_INFINITY&&(a.style("max-width",n+"px"),a.style("text-align","center")),a.attr("xmlns","http://www.w3.org/1999/xhtml"),t&&a.attr("class","labelBkg"),(await Ut.measure(()=>a.node().getBoundingClientRect())).width===n&&(a.style("display","table"),a.style("white-space","break-spaces"),a.style("width",n+"px")),i.node()}x(rt,"addHtmlSpan");function F(r,e,n,s=!1){let t=r.append("tspan").attr("class","text-outer-tspan").attr("x",0).attr("y",e*n-.1+"em").attr("dy",n+"em");return s&&t.attr("text-anchor","middle"),t}x(F,"createTspan");function nt(r,e,n){let s=r.append("text"),t=F(s,1,e);W(t,n);let l=t.node().getComputedTextLength();return s.remove(),l}x(nt,"computeWidthOfText");function Kt(r,e,n){let s=r.append("text"),t=F(s,1,e);W(t,[{content:n,type:"normal"}]);let l=t.node()?.getBoundingClientRect();return l&&s.remove(),l}x(Kt,"computeDimensionOfText");function st(r,e,n,s=!1,t=!1){let i=e.append("g"),a=i.insert("rect").attr("class","background").attr("style","stroke: none"),o=i.append("text").attr("y","-10.1");t&&o.attr("text-anchor","middle");let c=0;for(let p of n){let h=x(f=>nt(i,1.1,f)<=r,"checkWidth"),u=h(p)?[p]:tt(p,h);for(let f of u){let g=F(o,c,1.1,t);W(g,f),c++}}if(s){let p=o.node().getBBox(),h=2;return a.attr("x",p.x-h).attr("y",p.y-h).attr("width",p.width+2*h).attr("height",p.height+2*h),i.node()}else return o.node()}x(st,"createFormattedText");function ue(r){let e=/&(amp|lt|gt);/g;return r.replace(e,(n,s)=>{switch(s){case"amp":return"&";case"lt":return"<";case"gt":return">";default:return n}})}x(ue,"decodeHTMLEntities");function W(r,e){r.text(""),e.forEach((n,s)=>{let t=r.append("tspan").attr("font-style",n.type==="em"?"italic":"normal").attr("class","text-inner-tspan").attr("font-weight",n.type==="strong"?"bold":"normal");s===0?t.text(ue(n.content)):t.text(" "+ue(n.content))})}x(W,"updateTextContentAndStyles");async function it(r,e={}){let n=[];r.replace(/(fa[bklrs]?):fa-([\w-]+)/g,(t,l,i)=>(n.push((async()=>{let a=`${l}:${i}`;return await $e(a)?await Se(a,void 0,{class:"label-icon"}):`<i class='${N(t,e).replace(":"," ")}'></i>`})()),t));let s=await Promise.all(n);return r.replace(/(fa[bklrs]?):fa-([\w-]+)/g,()=>s.shift()??"")}x(it,"replaceIconSubstring");var wr=x(async(r,e="",{style:n="",isTitle:s=!1,classes:t="",useHtmlLabels:l=!0,markdown:i=!0,isNode:a=!0,width:o=200,addSvgBackground:c=!1}={},p)=>{if(H.debug("XYZ createText",e,n,s,t,l,a,"addSvgBackground: ",c),l){let h=i?Ye(e,p):Ve(e),u=await it(Q(h),p),f=e.replace(/\\\\/g,"\\"),g={isNode:a,label:G(e)?f:u,labelStyle:n.replace("fill:","color:")};return await rt(r,g,o,t,c,p)}else{let h=Q(e.replace(/<br\s*\/?>/g,"<br/>")),u=i?Xe(h.replace("<br>","<br/>"),p):Ke(h),f=st(o,r,u,e?c:!1,!a);if(a){/stroke:/.exec(n)&&(n=n.replace("stroke:","lineColor:"));let g=n.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");R(f).attr("style",g)}else{let g=n.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/background:/g,"fill:");R(f).select("rect").attr("style",g.replace(/background:/g,"fill:"));let m=n.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");R(f).select("text").attr("style",m)}return s?R(f).selectAll("tspan.text-outer-tspan").classed("title-row",!0):R(f).selectAll("tspan.text-outer-tspan").classed("row",!0),f}},"createText");export{Re as a,Ut as b,Kt as c,wr as d};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as i,b as o,c as e,d as m}from"./chunk-XM54GAH3.js";import"./chunk-EWVD6AUZ.js";import"./chunk-FH3BATM5.js";import"./chunk-CQFFNO72.js";import"./chunk-TGYBLZFN.js";import"./chunk-RBL2QVA3.js";import"./chunk-LK6KML2S.js";import"./chunk-CBQW2LLN.js";import"./chunk-U7TCJVVP.js";import"./chunk-U3E5RSXE.js";import"./chunk-EWILYK3H.js";import"./chunk-XCMS6RVA.js";import"./chunk-ZYRITDEB.js";import"./chunk-4AUIAGYT.js";import"./chunk-JAORNH2M.js";import"./chunk-JBQZ5UCE.js";import"./chunk-NLCJ5AKJ.js";import"./chunk-3CEAP2V5.js";import{a as t}from"./chunk-6LQNQPBM.js";import"./chunk-OOJM4CTU.js";var D={parser:i,get db(){return new o},renderer:m,styles:e,init:t(r=>{r.class||(r.class={}),r.class.arrowMarkerAbsolute=r.arrowMarkerAbsolute},"init")};export{D as diagram};
|
|
Binary file
|