⬆️ chore(deps): upgrade mermaid to v11.12.2 and KaTeX to v0.16.27

This commit is contained in:
zloy_linux committed 2025-12-13 19:08:13 +07:00
1 parent 86d3dedb85
commit b4c06c6cd3
2 files changed
+162 -162

No files matched your search

+1 -1
View File
@@ -1 +1 @@
((e,t)=>{"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.katex=t():e.katex=t()})("undefined"!=typeof self?self:this,function(){{var Jt={d:function(e,t){for(var r in t)Jt.o(t,r)&&!Jt.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},o:function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}},Qt={};Jt.d(Qt,{default:function(){return gr}});class fr{constructor(e,t){this.name=void 0,this.position=void 0,this.length=void 0,this.rawMessage=void 0;let r,n,a="KaTeX parse error: "+e;var i,o,s=t&&t.loc;return s&&s.start<=s.end&&(o=s.lexer.input,r=s.start,n=s.end,r===o.length?a+=" at end of input: ":a+=" at position "+(r+1)+": ",i=o.slice(r,n).replace(/[^]/g,"$&̲"),s=15<r?"…"+o.slice(r-15,r):o.slice(0,r),o=n+15<o.length?o.slice(n,n+15)+"…":o.slice(n),a+=s+i+o),(t=new Error(a)).name="ParseError",t.__proto__=fr.prototype,null!=(t.position=r)&&null!=n&&(t.length=n-r),t.rawMessage=e,t}}fr.prototype.__proto__=Error.prototype;var ft=fr;function e0(e){return"ordgroup"===e.type||"color"===e.type?1===e.body.length?e0(e.body[0]):e:"font"===e.type?e0(e.body):e}let H=/([A-Z])/g,O={"&":"&amp;",">":"&gt;","<":"&lt;",'"':"&quot;","'":"&#x27;"},E=/[&><"']/g;var bt={deflt:function(e,t){return void 0===e?t:e},escape:function(e){return String(e).replace(E,e=>O[e])},hyphenate:function(e){return e.replace(H,"-$1").toLowerCase()},getBaseElem:e0,isCharacterBox:function(e){return"mathord"===(e=e0(e)).type||"textord"===e.type||"atom"===e.type},protocolFromUrl:function(e){return(e=/^[\x00-\x20]*([^\\/#?]*?)(:|&#0*58|&#x0*3a|&colon)/i.exec(e))?":"===e[2]&&/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(e[1])?e[1].toLowerCase():null:"_relative"}};let n={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format <type>"},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color <color>",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:e=>"#"+e},macros:{type:"object",cli:"-m, --macro <def>",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:(e,t)=>(t.push(e),t)},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:e=>Math.max(0,e),cli:"--min-rule-thickness <size>",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",processor:e=>Math.max(0,e),cli:"-s, --max-size <n>",cliProcessor:parseInt},maxExpand:{type:"number",default:1e3,description:"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",processor:e=>Math.max(0,e),cli:"-e, --max-expand <n>",cliProcessor:e=>"Infinity"===e?1/0:parseInt(e)},globalGroup:{type:"boolean",cli:!1}};class br{constructor(e){for(var t in this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,e=e||{},n){var r;n.hasOwnProperty(t)&&(r=n[t],this[t]=void 0!==e[t]?r.processor?r.processor(e[t]):e[t]:(e=>{if(e.default)return e.default;Line truncated ((e,t)=>{"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.katex=t():e.katex=t()})("undefined"!=typeof self?self:this,function(){{var Jt={d:function(e,t){for(var r in t)Jt.o(t,r)&&!Jt.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},o:function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}},Qt={};Jt.d(Qt,{default:function(){return gr}});class fr{constructor(e,t){this.name=void 0,this.position=void 0,this.length=void 0,this.rawMessage=void 0;let r,n,a="KaTeX parse error: "+e;var i,o,s=t&&t.loc;return s&&s.start<=s.end&&(o=s.lexer.input,r=s.start,n=s.end,r===o.length?a+=" at end of input: ":a+=" at position "+(r+1)+": ",i=o.slice(r,n).replace(/[^]/g,"$&̲"),s=15<r?"…"+o.slice(r-15,r):o.slice(0,r),o=n+15<o.length?o.slice(n,n+15)+"…":o.slice(n),a+=s+i+o),(t=new Error(a)).name="ParseError",t.__proto__=fr.prototype,null!=(t.position=r)&&null!=n&&(t.length=n-r),t.rawMessage=e,t}}fr.prototype.__proto__=Error.prototype;var ft=fr;function e0(e){return"ordgroup"===e.type||"color"===e.type?1===e.body.length?e0(e.body[0]):e:"font"===e.type?e0(e.body):e}let H=/([A-Z])/g,O={"&":"&amp;",">":"&gt;","<":"&lt;",'"':"&quot;","'":"&#x27;"},E=/[&><"']/g;var bt={deflt:function(e,t){return void 0===e?t:e},escape:function(e){return String(e).replace(E,e=>O[e])},hyphenate:function(e){return e.replace(H,"-$1").toLowerCase()},getBaseElem:e0,isCharacterBox:function(e){return"mathord"===(e=e0(e)).type||"textord"===e.type||"atom"===e.type},protocolFromUrl:function(e){return(e=/^[\x00-\x20]*([^\\/#?]*?)(:|&#0*58|&#x0*3a|&colon)/i.exec(e))?":"===e[2]&&/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(e[1])?e[1].toLowerCase():null:"_relative"}};let n={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format <type>"},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color <color>",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:e=>"#"+e},macros:{type:"object",cli:"-m, --macro <def>",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:(e,t)=>(t.push(e),t)},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:e=>Math.max(0,e),cli:"--min-rule-thickness <size>",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",processor:e=>Math.max(0,e),cli:"-s, --max-size <n>",cliProcessor:parseInt},maxExpand:{type:"number",default:1e3,description:"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",processor:e=>Math.max(0,e),cli:"-e, --max-expand <n>",cliProcessor:e=>"Infinity"===e?1/0:parseInt(e)},globalGroup:{type:"boolean",cli:!1}};class br{constructor(e){for(var t in this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,e=e||{},n){var r;n.hasOwnProperty(t)&&(r=n[t],this[t]=void 0!==e[t]?r.processor?r.processor(e[t]):e[t]:(e=>{if(e.default)return e.default;Line truncated
+161 -161
View File
@@ -1,5 +1,5 @@
var __esbuild_esm_mermaid_nm;(__esbuild_esm_mermaid_nm||={}).mermaid=(()=>{var w,k,T,C,_,S,A,N,I=Object.create,R=Object.defineProperty,M=Object.getOwnPropertyDescriptor,$=Object.getOwnPropertyNames,F=Object.getPrototypeOf,z=Object.prototype.hasOwnProperty,mt=(e,t)=>R(e,"name",{value:t,configurable:!0}),G=(t,r,n,i)=>{if(r&&"object"==typeof r||"function"==typeof r)for(let e of $(r))z.call(t,e)||e===n||R(t,e,{get:()=>r[e],enumerable:!(i=M(r,e))||i.enumerable});return t},U=(e,t,r)=>(G(e,t,"default"),r&&G(r,t,"default")),q=(e,t,r)=>(r=null!=e?I(F(e)):{},G(!t&&e&&e.__esModule?r:R(r,"default",{value:e,enumerable:!0}),e)),j=(b=(e,t)=>()=>t=e?e(e=0):t)(()=>{w=Object.freeze({left:0,top:0,width:16,height:16}),k=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),T=Object.freeze({...w,...k}),C=Object.freeze({...T,body:"",hidden:!1})}),Y=b(()=>{j(),_=Object.freeze({width:null,height:null}),S=Object.freeze({..._,...k})}),W=b(()=>{A=mt((e,t,r,n="")=>{var i,a=e.split(":");if("@"===e.slice(0,1)){if(a.length<2||3<a.length)return null;n=a.shift().slice(1)}return 3<a.length||!a.length?null:1<a.length?(e=a.pop(),i=a.pop(),i={provider:0<a.length?a[0]:n,prefix:i,name:e},t&&!N(i)?null:i):1<(i=(e=a[0]).split("-")).length?(a={provider:n,prefix:i.shift(),name:i.join("-")},t&&!N(a)?null:a):r&&""===n&&(i={provider:n,prefix:"",name:e},!t||N(i,r))?i:null},"stringToIcon"),N=mt((e,t)=>!!e&&!(!(t&&""===e.prefix||e.prefix)||!e.name),"validateIconName")});function ee(e,t){var r={};return!e.hFlip!=!t.hFlip&&(r.hFlip=!0),!e.vFlip!=!t.vFlip&&(r.vFlip=!0),(e=((e.rotate||0)+(t.rotate||0))%4)&&(r.rotate=e),r}var te=b(()=>{mt(ee,"mergeIconTransformations")});function re(e,t){var r,n=ee(e,t);for(r in C)r in k?r in e&&!(r in n)&&(n[r]=k[r]):r in t?n[r]=t[r]:r in e&&(n[r]=e[r]);return n}var ne=b(()=>{j(),te(),mt(re,"mergeIconData")});function ie(e,t){let n=e.icons,i=e.aliases||Object.create(null),a=Object.create(null);function s(e){var t,r;return n[e]?a[e]=[]:(e in a||(a[e]=null,(r=(t=i[e]&&i[e].parent)&&s(t))&&(a[e]=[t].concat(r))),a[e])}return mt(s,"resolve"),(t||Object.keys(n).concat(Object.keys(i))).forEach(s),a}var ae=b(()=>{mt(ie,"getIconsTree")});function se(e,t,r){let n=e.icons,i=e.aliases||Object.create(null),a={};function s(e){a=re(n[e]||i[e],a)}return mt(s,"parse"),s(t),r.forEach(s),re(e,a)}function oe(e,t){var r;return e.icons[t]?se(e,t,[]):(r=ie(e,[t])[t])?se(e,t,r):null}var le=b(()=>{ne(),ae(),mt(se,"internalGetIconData"),mt(oe,"getIconData")});function ce(e,t,r){if(1===t)return e;if(r=r||100,"number"==typeof e)return Math.ceil(e*t*r)/r;if("string"!=typeof e)return e;var n,i=e.split(ue);if(null===i||!i.length)return e;let a=[],s=i.shift(),o=de.test(s);for(;;){if(!o||(n=parseFloat(s),isNaN(n))?a.push(s):a.push(Math.ceil(n*t*r)/r),void 0===(s=i.shift()))return a.join("");o=!o}}var ue,de,pe=b(()=>{ue=/(-?[0-9.]*[0-9]+[0-9.]*)/g,de=/^-?[0-9.]*[0-9]+[0-9.]*$/g,mt(ce,"calculateSize")});function ge(e,t="defs"){let r="",n=e.indexOf("<"+t);for(;0<=n;){var i=e.indexOf(">",n),a=e.indexOf("</"+t);if(-1===i||-1===a)break;var s=e.indexOf(">",a);if(-1===s)break;r+=e.slice(i+1,a).trim(),e=e.slice(0,n).trim()+e.slice(s+1)}return{defs:r,content:e}}function fe(e,t){return e?"<defs>"+e+"</defs>"+t:t}function me(e,t,r){return fe((e=ge(e)).defs,t+e.content+r)}var ye=b(()=>{mt(ge,"splitSVGDefs"),mt(fe,"mergeDefsAndContent"),mt(me,"wrapSVGContent")});function ve(e,t){let r={...T,...e},n={...S,...t},s={left:r.left,top:r.top,width:r.width,height:r.height},o=r.body,i=([r,n].forEach(e=>{let t=[],r=e.hFlip,n=e.vFlip,i=e.rotate;r?n?i+=2:(t.push("translate("+(s.width+s.left).toString()+" "+(0-s.top).toString()+")"),t.push("scale(-1 1)"),s.top=s.left=0):n&&(t.push("translate("+(0-s.left).toString()+" "+(s.height+s.top).toString()+")"),t.push("scale(1 -1)"),s.top=s.left=0);let a;switch(i<0&&(i-=4*Math.floor(i/4)),i%=4){case 1:a=s.height/2+s.top,t.unshift("rotate(90 "+a.toString()+" "+a.toString()+")");break;case 2:t.unshift("rotate(180 "+(s.width/2+s.left).toString()+" "+(s.height/2+s.top).toString()+")");break;case 3:a=s.width/2+s.left,t.unshift("rotate(-90 "+a.toString()+" "+a.toString()+")")}i%2==1&&(s.left!==s.top&&(a=s.left,s.left=s.top,s.top=a),s.width!==s.height)&&(a=s.width,s.width=s.height,s.height=a),t.length&&(o=me(o,'<g transform="'+t.join(" ")+'">',"</g>"))}),n.width),a=n.height,l=s.width,c=s.height,h,u,d=(null===i?(u=null===a?"1em":"auto"===a?c:a,h=ce(u,l/c)):(h="auto"===i?l:i,u=null===a?ce(h,c/l):"auto"===a?c:a),{}),p=mt((e,t)=>{xe(t)||(d[e]=t.toString())},"setAttr");return p("width",h),p("height",u),e=[s.left,s.top,l,c],d.viewBox=e.join(" "),{attributes:d,viewBox:e,body:o}}var xe,be=b(()=>{j(),Y(),pe(),ye(),xe=mt(e=>"unset"===e||"undefined"===e||"none"===e,"isUnsetKeyword"),mt(ve,"iconToSVG")});function we(n,i=Te){for(var e,t=[];e=ke.exec(n);)t.push(e[1]);if(t.length){let r="suffix"+(16777216*Math.random()|Date.now()).toString(16);t.forEach(e=>{var t="function"==typeof i?i(e):i+(Ee++).toString(),e=e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");n=n.replace(new RegExp('(Line truncated var __esbuild_esm_mermaid_nm;(__esbuild_esm_mermaid_nm||={}).mermaid=(()=>{var w,k,T,C,S,_,A,L,I=Object.create,R=Object.defineProperty,M=Object.getOwnPropertyDescriptor,$=Object.getOwnPropertyNames,F=Object.getPrototypeOf,z=Object.prototype.hasOwnProperty,mt=(e,t)=>R(e,"name",{value:t,configurable:!0}),G=(t,r,n,i)=>{if(r&&"object"==typeof r||"function"==typeof r)for(let e of $(r))z.call(t,e)||e===n||R(t,e,{get:()=>r[e],enumerable:!(i=M(r,e))||i.enumerable});return t},U=(e,t,r)=>(G(e,t,"default"),r&&G(r,t,"default")),q=(e,t,r)=>(r=null!=e?I(F(e)):{},G(!t&&e&&e.__esModule?r:R(r,"default",{value:e,enumerable:!0}),e)),j=(b=(e,t)=>()=>t=e?e(e=0):t)(()=>{w=Object.freeze({left:0,top:0,width:16,height:16}),k=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),T=Object.freeze({...w,...k}),C=Object.freeze({...T,body:"",hidden:!1})}),Y=b(()=>{j(),S=Object.freeze({width:null,height:null}),_=Object.freeze({...S,...k})}),W=b(()=>{A=mt((e,t,r,n="")=>{var i,a=e.split(":");if("@"===e.slice(0,1)){if(a.length<2||3<a.length)return null;n=a.shift().slice(1)}return 3<a.length||!a.length?null:1<a.length?(e=a.pop(),i=a.pop(),i={provider:0<a.length?a[0]:n,prefix:i,name:e},t&&!L(i)?null:i):1<(i=(e=a[0]).split("-")).length?(a={provider:n,prefix:i.shift(),name:i.join("-")},t&&!L(a)?null:a):r&&""===n&&(i={provider:n,prefix:"",name:e},!t||L(i,r))?i:null},"stringToIcon"),L=mt((e,t)=>!!e&&!(!(t&&""===e.prefix||e.prefix)||!e.name),"validateIconName")});function ee(e,t){var r={};return!e.hFlip!=!t.hFlip&&(r.hFlip=!0),!e.vFlip!=!t.vFlip&&(r.vFlip=!0),(e=((e.rotate||0)+(t.rotate||0))%4)&&(r.rotate=e),r}var te=b(()=>{mt(ee,"mergeIconTransformations")});function re(e,t){var r,n=ee(e,t);for(r in C)r in k?r in e&&!(r in n)&&(n[r]=k[r]):r in t?n[r]=t[r]:r in e&&(n[r]=e[r]);return n}var ne=b(()=>{j(),te(),mt(re,"mergeIconData")});function ie(e,t){let n=e.icons,i=e.aliases||Object.create(null),a=Object.create(null);function s(e){var t,r;return n[e]?a[e]=[]:(e in a||(a[e]=null,(r=(t=i[e]&&i[e].parent)&&s(t))&&(a[e]=[t].concat(r))),a[e])}return mt(s,"resolve"),(t||Object.keys(n).concat(Object.keys(i))).forEach(s),a}var ae=b(()=>{mt(ie,"getIconsTree")});function se(e,t,r){let n=e.icons,i=e.aliases||Object.create(null),a={};function s(e){a=re(n[e]||i[e],a)}return mt(s,"parse"),s(t),r.forEach(s),re(e,a)}function oe(e,t){var r;return e.icons[t]?se(e,t,[]):(r=ie(e,[t])[t])?se(e,t,r):null}var le=b(()=>{ne(),ae(),mt(se,"internalGetIconData"),mt(oe,"getIconData")});function ce(e,t,r){if(1===t)return e;if(r=r||100,"number"==typeof e)return Math.ceil(e*t*r)/r;if("string"!=typeof e)return e;var n,i=e.split(ue);if(null===i||!i.length)return e;let a=[],s=i.shift(),o=de.test(s);for(;;){if(!o||(n=parseFloat(s),isNaN(n))?a.push(s):a.push(Math.ceil(n*t*r)/r),void 0===(s=i.shift()))return a.join("");o=!o}}var ue,de,pe=b(()=>{ue=/(-?[0-9.]*[0-9]+[0-9.]*)/g,de=/^-?[0-9.]*[0-9]+[0-9.]*$/g,mt(ce,"calculateSize")});function ge(e,t="defs"){let r="",n=e.indexOf("<"+t);for(;0<=n;){var i=e.indexOf(">",n),a=e.indexOf("</"+t);if(-1===i||-1===a)break;var s=e.indexOf(">",a);if(-1===s)break;r+=e.slice(i+1,a).trim(),e=e.slice(0,n).trim()+e.slice(s+1)}return{defs:r,content:e}}function fe(e,t){return e?"<defs>"+e+"</defs>"+t:t}function me(e,t,r){return fe((e=ge(e)).defs,t+e.content+r)}var ye=b(()=>{mt(ge,"splitSVGDefs"),mt(fe,"mergeDefsAndContent"),mt(me,"wrapSVGContent")});function ve(e,t){let r={...T,...e},n={..._,...t},s={left:r.left,top:r.top,width:r.width,height:r.height},o=r.body,i=([r,n].forEach(e=>{let t=[],r=e.hFlip,n=e.vFlip,i=e.rotate;r?n?i+=2:(t.push("translate("+(s.width+s.left).toString()+" "+(0-s.top).toString()+")"),t.push("scale(-1 1)"),s.top=s.left=0):n&&(t.push("translate("+(0-s.left).toString()+" "+(s.height+s.top).toString()+")"),t.push("scale(1 -1)"),s.top=s.left=0);let a;switch(i<0&&(i-=4*Math.floor(i/4)),i%=4){case 1:a=s.height/2+s.top,t.unshift("rotate(90 "+a.toString()+" "+a.toString()+")");break;case 2:t.unshift("rotate(180 "+(s.width/2+s.left).toString()+" "+(s.height/2+s.top).toString()+")");break;case 3:a=s.width/2+s.left,t.unshift("rotate(-90 "+a.toString()+" "+a.toString()+")")}i%2==1&&(s.left!==s.top&&(a=s.left,s.left=s.top,s.top=a),s.width!==s.height)&&(a=s.width,s.width=s.height,s.height=a),t.length&&(o=me(o,'<g transform="'+t.join(" ")+'">',"</g>"))}),n.width),a=n.height,l=s.width,c=s.height,h,u,d=(null===i?(u=null===a?"1em":"auto"===a?c:a,h=ce(u,l/c)):(h="auto"===i?l:i,u=null===a?ce(h,c/l):"auto"===a?c:a),{}),p=mt((e,t)=>{xe(t)||(d[e]=t.toString())},"setAttr");return p("width",h),p("height",u),e=[s.left,s.top,l,c],d.viewBox=e.join(" "),{attributes:d,viewBox:e,body:o}}var xe,be=b(()=>{j(),Y(),pe(),ye(),xe=mt(e=>"unset"===e||"undefined"===e||"none"===e,"isUnsetKeyword"),mt(ve,"iconToSVG")});function we(n,i=Te){for(var e,t=[];e=ke.exec(n);)t.push(e[1]);if(t.length){let r="suffix"+(16777216*Math.random()|Date.now()).toString(16);t.forEach(e=>{var t="function"==typeof i?i(e):i+(Ee++).toString(),e=e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");n=n.replace(new RegExp('(Line truncated
`+l),y&&bn([ee,te,re],e=>{l=An(l,e," ")}),g&&k?g.createHTML(l):l},d.setConfig=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};Me(e),me=!0},d.clearConfig=function(){I=null,me=!1},d.isValidAttribute=function(e,t,r){return I||Me({}),e=N(e),t=N(t),Ue(e,t,r)},d.addHook=function(e,t){"function"==typeof t&&Tn(f[e],t)},d.removeHook=function(e,t){return void 0!==t?-1===(t=wn(f[e],t))?void 0:En(f[e],t,1)[0]:kn(f[e])},d.removeHooks=function(e){f[e]=[]},d.removeAllHooks=function(){f=ai()},d}var un,dn,pn,gn,fn,mn,yn,vn,xn,bn,wn,kn,Tn,En,Cn,_n,Sn,An,Ln,Nn,In,Rn,Mn,Dn,On,Pn,Bn,$n,Fn,zn,Gn,Un,qn,jn,Yn,Wn,Hn,Vn,Xn,Kn,Zn,Qn,Jn,ei,ti,ri,ni,ii,ai,si,oi=b(()=>{({entries:un,setPrototypeOf:dn,isFrozen:pn,getPrototypeOf:gn,getOwnPropertyDescriptor:fn}=Object),{freeze:mn,seal:ei,create:yn}=Object,{apply:vn,construct:xn}=typeof Reflect<"u"&&Reflect,mn=mn||mt(function(e){return e},"freeze"),ei=ei||mt(function(e){return e},"seal"),vn=vn||mt(function(e,t,r){return e.apply(t,r)},"apply"),xn=xn||mt(function(e,t){return new e(...t)},"construct"),bn=nn(Array.prototype.forEach),wn=nn(Array.prototype.lastIndexOf),kn=nn(Array.prototype.pop),Tn=nn(Array.prototype.push),En=nn(Array.prototype.splice),Cn=nn(String.prototype.toLowerCase),_n=nn(String.prototype.toString),Sn=nn(String.prototype.match),An=nn(String.prototype.replace),Ln=nn(String.prototype.indexOf),Nn=nn(String.prototype.trim),In=nn(Object.prototype.hasOwnProperty),Rn=nn(RegExp.prototype.test),Mn=an(TypeError),mt(nn,"unapply"),mt(an,"unconstruct"),mt(sn,"addToSet"),mt(on,"cleanArray"),mt(ln,"clone"),mt(cn,"lookupGetter"),Dn=mn(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),On=mn(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Pn=mn(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Bn=mn(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),$n=mn(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),Fn=mn(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),zn=mn(["#text"]),Gn=mn(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src", Line truncated `+l),y&&bn([ee,te,re],e=>{l=An(l,e," ")}),g&&k?g.createHTML(l):l},d.setConfig=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};Me(e),me=!0},d.clearConfig=function(){I=null,me=!1},d.isValidAttribute=function(e,t,r){return I||Me({}),e=N(e),t=N(t),Ue(e,t,r)},d.addHook=function(e,t){"function"==typeof t&&Tn(f[e],t)},d.removeHook=function(e,t){return void 0!==t?-1===(t=wn(f[e],t))?void 0:En(f[e],t,1)[0]:kn(f[e])},d.removeHooks=function(e){f[e]=[]},d.removeAllHooks=function(){f=ai()},d}var un,dn,pn,gn,fn,mn,yn,vn,xn,bn,wn,kn,Tn,En,Cn,Sn,_n,An,Ln,Nn,In,Rn,Mn,Dn,On,Pn,Bn,$n,Fn,zn,Gn,Un,qn,jn,Yn,Wn,Hn,Vn,Xn,Kn,Zn,Qn,Jn,ei,ti,ri,ni,ii,ai,si,oi=b(()=>{({entries:un,setPrototypeOf:dn,isFrozen:pn,getPrototypeOf:gn,getOwnPropertyDescriptor:fn}=Object),{freeze:mn,seal:ei,create:yn}=Object,{apply:vn,construct:xn}=typeof Reflect<"u"&&Reflect,mn=mn||mt(function(e){return e},"freeze"),ei=ei||mt(function(e){return e},"seal"),vn=vn||mt(function(e,t,r){return e.apply(t,r)},"apply"),xn=xn||mt(function(e,t){return new e(...t)},"construct"),bn=nn(Array.prototype.forEach),wn=nn(Array.prototype.lastIndexOf),kn=nn(Array.prototype.pop),Tn=nn(Array.prototype.push),En=nn(Array.prototype.splice),Cn=nn(String.prototype.toLowerCase),Sn=nn(String.prototype.toString),_n=nn(String.prototype.match),An=nn(String.prototype.replace),Ln=nn(String.prototype.indexOf),Nn=nn(String.prototype.trim),In=nn(Object.prototype.hasOwnProperty),Rn=nn(RegExp.prototype.test),Mn=an(TypeError),mt(nn,"unapply"),mt(an,"unconstruct"),mt(sn,"addToSet"),mt(on,"cleanArray"),mt(ln,"clone"),mt(cn,"lookupGetter"),Dn=mn(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),On=mn(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Pn=mn(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Bn=mn(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),$n=mn(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),Fn=mn(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),zn=mn(["#text"]),Gn=mn(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src", Line truncated
c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14 c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14
c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54 c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54
c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10 c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10
@@ -253,18 +253,18 @@ c-55.7,194.7,-131.8,370.3,-228.5,527c-20.7,34.7,-41.7,66.3,-63,95c-2,3.3,-4,7,-6
c0,7.3,5.7,11,17,11c0,0,11,0,11,0c9.3,0,14.3,-0.3,15,-1c5.3,-5.3,10.3,-11,15,-17 c0,7.3,5.7,11,17,11c0,0,11,0,11,0c9.3,0,14.3,-0.3,15,-1c5.3,-5.3,10.3,-11,15,-17
c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558 c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558
l0,-`+(t+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7, l0,-`+(t+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
-470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z`;default:throw new Error("Unknown stretchy delimiter.")}},"tallDelim"),ma=class{static{mt(this,"DocumentFragment")}constructor(e){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=e,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(e){return Wi.contains(this.classes,e)}toNode(){for(var e=document.createDocumentFragment(),t=0;t<this.children.length;t++)e.appendChild(this.children[t].toNode());return e}toMarkup(){for(var e="",t=0;t<this.children.length;t++)e+=this.children[t].toMarkup();return e}toText(){var e=mt(e=>e.toText(),"toText");return this.children.map(e).join("")}},ya={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872: Line truncated -470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z`;default:throw new Error("Unknown stretchy delimiter.")}},"tallDelim"),ma=class{static{mt(this,"DocumentFragment")}constructor(e){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=e,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(e){return Wi.contains(this.classes,e)}toNode(){for(var e=document.createDocumentFragment(),t=0;t<this.children.length;t++)e.appendChild(this.children[t].toNode());return e}toMarkup(){for(var e="",t=0;t<this.children.length;t++)e+=this.children[t].toMarkup();return e}toText(){var e=mt(e=>e.toText(),"toText");return this.children.map(e).join("")}},ya={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872: Line truncated
`+h+" children.");u=["brace-left","brace-center","brace-right"],d=["xMinYMin","xMidYMin","xMaxYMin"]}for(var p=0;p<h;p++){var g=new za(s[p]),g=new Fa([g],{width:"400em",height:K(c),viewBox:"0 0 "+r+" "+l,preserveAspectRatio:d[p]+" slice"}),g=Z.makeSvgSpan([u[p]],[g],m);if(1===h)return{span:g,minWidth:o,height:c};g.style.height=K(c),i.push(g)}return{span:Z.makeSpan(["stretchy"],i,m),minWidth:o,height:c}}mt(e,"buildSvgSpan_");var{span:t,minWidth:r,height:n}=e();return t.height=n,t.style.height=K(n),0<r&&(t.style.minWidth=K(r)),t},"svgSpan"),pl=mt(function(e,t,r,n,i){var a,e=e.height+e.depth+r+n;return/fbox|color|angl/.test(t)?(a=Z.makeSpan(["stretchy",t],[],i),"fbox"===t&&(r=i.color&&i.getColor())&&(a.style.borderColor=r)):(n=[],/^[bx]cancel$/.test(t)&&n.push(new Ga({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(t)&&n.push(new Ga({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"})),r=new Fa(n,{width:"100%",height:K(e)}),a=Z.makeSvgSpan([],[r],i)),a.height=e,a.style.height=K(e),a},"encloseSpan"),ao={encloseSpan:pl,mathMLnode:m,svgSpan:Pl},mt(Ei,"assertNodeType"),mt(Ci,"assertSymbolNodeType"),mt(_i,"checkSymbolNodeType"),so=mt((e,t)=>{e&&"supsub"===e.type?(o=(r=Ei(e.base,"accent")).base,e.base=o,n=yi(qs(e,t)),e.base=r):o=(r=Ei(e,"accent")).base;var r,n,i,a,e=qs(o,t.havingCrampedStyle()),s=0,o=(r.isShifty&&Wi.isCharacterBox(o)&&(o=Wi.getBaseElem(o),s=mi(qs(o,t.havingCrampedStyle())).skew),"\\c"===r.label),l=o?e.height+e.depth:Math.min(e.height,t.fontMetrics().xHeight),c=r.isStretchy?(c=ao.svgSpan(r,t),Z.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:e},{type:"elem",elem:c,wrapperClasses:["svg-align"],wrapperStyle:0<s?{width:"calc(100% - "+K(2*s)+")",marginLeft:K(2*s)}:void 0}]},t)):("\\vec"===r.label?(a=Z.staticSvg("vec",t),i=Z.svgData.vec[1]):((a=mi(a=Z.makeOrd({mode:r.mode,text:r.label},t,"textord"))).italic=0,i=a.width,o&&(l+=a.depth)),c=Z.makeSpan(["accent-body"],[a]),(o="\\textcircled"===r.label)&&(c.classes.push("accent-full"),l=e.height),a=s,o||(a-=i/2),c.style.left=K(a),"\\textcircled"===r.label&&(c.style.top=".2em"),Z.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:e},{type:"kern",size:-l},{type:"elem",elem:c}]},t)),s=Z.makeSpan(["mord","accent"],[c],t);return n?(n.children[0]=s,n.height=Math.max(s.height,n.height),n.classes[0]="mord",n):s},"htmlBuilder$a"),fl=mt((e,t)=>{var r=e.isStretchy?ao.mathMLnode(e.label):new E.MathNode("mo",[Ws(e.label,e.mode)]);return(e=new E.MathNode("mover",[Zs(e.base,t),r])).setAttribute("accent","true"),e},"mathmlBuilder$9"),oo=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(e=>"\\"+e).join("|")),o({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:mt((e,t)=>{var t=Ns(t[0]),r=!oo.test(e.funcName),n=!r||"\\widehat"===e.funcName||"\\widetilde"===e.funcName||"\\widecheck"===e.funcName;return{type:"accent",mode:e.parser.mode,label:e.funcName,isStretchy:r,isShifty:n,base:t}},"handler"),htmlBuilder:so,mathmlBuilder:fl}),o({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:mt((e,t)=>{var t=t[0],r=e.parser.mode;return"math"===r&&(e.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+e.funcName+" works only in text mode"),r="text"),{type:"accent",mode:r,label:e.funcName,isStretchy:!1,isShifty:!0,base:t}},"handler"),htmlBuilder:so,mathmlBuilder:fl}),o({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:mt((e,t)=>{var{parser:e,funcName:r}=e,t=t[0];return{type:"accentUnder",mode:e.mode,label:r,base:t}},"handler"),htmlBuilder:mt((e,t)=>{var r=qs(e.base,t),n=ao.svgSpan(e,t),e="\\utilde"===e.label?.12:0,n=Z.makeVList({positionType:"top",positionData:r.height,children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:e},{type:"elem",elem:r}]},t);return Z.makeSpan(["mord","accentunder"],[n],t)},"htmlBuilder"),mathmlBuilder:mt((e,t)=>{var r=ao.mathMLnode(e.label);return(e=new E.MathNode("munder",[Zs(e.base,t),r])).setAttribute("accentunder","true"),e},"mathmlBuilder")}),lo=mt(e=>((e=new E.MathNode("mpadded",e?[e]:[])).setAttribute("width","+0.6em"),e.setAttribute("lspace","0.3em"),e),"paddedNode"),o({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleLine truncated `+h+" children.");u=["brace-left","brace-center","brace-right"],d=["xMinYMin","xMidYMin","xMaxYMin"]}for(var p=0;p<h;p++){var g=new za(s[p]),g=new Fa([g],{width:"400em",height:K(c),viewBox:"0 0 "+r+" "+l,preserveAspectRatio:d[p]+" slice"}),g=Z.makeSvgSpan([u[p]],[g],m);if(1===h)return{span:g,minWidth:o,height:c};g.style.height=K(c),i.push(g)}return{span:Z.makeSpan(["stretchy"],i,m),minWidth:o,height:c}}mt(e,"buildSvgSpan_");var{span:t,minWidth:r,height:n}=e();return t.height=n,t.style.height=K(n),0<r&&(t.style.minWidth=K(r)),t},"svgSpan"),pl=mt(function(e,t,r,n,i){var a,e=e.height+e.depth+r+n;return/fbox|color|angl/.test(t)?(a=Z.makeSpan(["stretchy",t],[],i),"fbox"===t&&(r=i.color&&i.getColor())&&(a.style.borderColor=r)):(n=[],/^[bx]cancel$/.test(t)&&n.push(new Ga({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(t)&&n.push(new Ga({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"})),r=new Fa(n,{width:"100%",height:K(e)}),a=Z.makeSvgSpan([],[r],i)),a.height=e,a.style.height=K(e),a},"encloseSpan"),ao={encloseSpan:pl,mathMLnode:m,svgSpan:Pl},mt(Ei,"assertNodeType"),mt(Ci,"assertSymbolNodeType"),mt(Si,"checkSymbolNodeType"),so=mt((e,t)=>{e&&"supsub"===e.type?(o=(r=Ei(e.base,"accent")).base,e.base=o,n=yi(qs(e,t)),e.base=r):o=(r=Ei(e,"accent")).base;var r,n,i,a,e=qs(o,t.havingCrampedStyle()),s=0,o=(r.isShifty&&Wi.isCharacterBox(o)&&(o=Wi.getBaseElem(o),s=mi(qs(o,t.havingCrampedStyle())).skew),"\\c"===r.label),l=o?e.height+e.depth:Math.min(e.height,t.fontMetrics().xHeight),c=r.isStretchy?(c=ao.svgSpan(r,t),Z.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:e},{type:"elem",elem:c,wrapperClasses:["svg-align"],wrapperStyle:0<s?{width:"calc(100% - "+K(2*s)+")",marginLeft:K(2*s)}:void 0}]},t)):("\\vec"===r.label?(a=Z.staticSvg("vec",t),i=Z.svgData.vec[1]):((a=mi(a=Z.makeOrd({mode:r.mode,text:r.label},t,"textord"))).italic=0,i=a.width,o&&(l+=a.depth)),c=Z.makeSpan(["accent-body"],[a]),(o="\\textcircled"===r.label)&&(c.classes.push("accent-full"),l=e.height),a=s,o||(a-=i/2),c.style.left=K(a),"\\textcircled"===r.label&&(c.style.top=".2em"),Z.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:e},{type:"kern",size:-l},{type:"elem",elem:c}]},t)),s=Z.makeSpan(["mord","accent"],[c],t);return n?(n.children[0]=s,n.height=Math.max(s.height,n.height),n.classes[0]="mord",n):s},"htmlBuilder$a"),fl=mt((e,t)=>{var r=e.isStretchy?ao.mathMLnode(e.label):new E.MathNode("mo",[Ws(e.label,e.mode)]);return(e=new E.MathNode("mover",[Zs(e.base,t),r])).setAttribute("accent","true"),e},"mathmlBuilder$9"),oo=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(e=>"\\"+e).join("|")),o({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:mt((e,t)=>{var t=Ns(t[0]),r=!oo.test(e.funcName),n=!r||"\\widehat"===e.funcName||"\\widetilde"===e.funcName||"\\widecheck"===e.funcName;return{type:"accent",mode:e.parser.mode,label:e.funcName,isStretchy:r,isShifty:n,base:t}},"handler"),htmlBuilder:so,mathmlBuilder:fl}),o({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:mt((e,t)=>{var t=t[0],r=e.parser.mode;return"math"===r&&(e.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+e.funcName+" works only in text mode"),r="text"),{type:"accent",mode:r,label:e.funcName,isStretchy:!1,isShifty:!0,base:t}},"handler"),htmlBuilder:so,mathmlBuilder:fl}),o({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:mt((e,t)=>{var{parser:e,funcName:r}=e,t=t[0];return{type:"accentUnder",mode:e.mode,label:r,base:t}},"handler"),htmlBuilder:mt((e,t)=>{var r=qs(e.base,t),n=ao.svgSpan(e,t),e="\\utilde"===e.label?.12:0,n=Z.makeVList({positionType:"top",positionData:r.height,children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:e},{type:"elem",elem:r}]},t);return Z.makeSpan(["mord","accentunder"],[n],t)},"htmlBuilder"),mathmlBuilder:mt((e,t)=>{var r=ao.mathMLnode(e.label);return(e=new E.MathNode("munder",[Zs(e.base,t),r])).setAttribute("accentunder","true"),e},"mathmlBuilder")}),lo=mt(e=>((e=new E.MathNode("mpadded",e?[e]:[])).setAttribute("width","+0.6em"),e.setAttribute("lspace","0.3em"),e),"paddedNode"),o({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleLine truncated
`,this.tokenRegex.lastIndex))?(this.tokenRegex.lastIndex=e.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=r+1,this.lex()):new zi(n,new Fi(this,t,this.tokenRegex.lastIndex))}},Nl=class{static{mt(this,"Namespace")}constructor(e,t){void 0===e&&(e={}),void 0===t&&(t={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=t,this.builtins=e,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(0===this.undefStack.length)throw new X("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var e,t=this.undefStack.pop();for(e in t)t.hasOwnProperty(e)&&(null==t[e]?delete this.current[e]:this.current[e]=t[e])}endGroups(){for(;0<this.undefStack.length;)this.endGroup()}has(e){return this.current.hasOwnProperty(e)||this.builtins.hasOwnProperty(e)}get(e){return(this.current.hasOwnProperty(e)?this.current:this.builtins)[e]}set(e,t,r){if(r=void 0!==r&&r){for(var n=0;n<this.undefStack.length;n++)delete this.undefStack[n][e];0<this.undefStack.length&&(this.undefStack[this.undefStack.length-1][e]=t)}else(r=this.undefStack[this.undefStack.length-1])&&!r.hasOwnProperty(e)&&(r[e]=this.current[e]);null==t?delete this.current[e]:this.current[e]=t}},Il=Ho,l("\\noexpand",function(e){var t=e.popToken();return e.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}}),l("\\expandafter",function(e){var t=e.popToken();return e.expandOnce(!0),{tokens:[t],numArgs:0}}),l("\\@firstoftwo",function(e){return{tokens:e.consumeArgs(2)[0],numArgs:0}}),l("\\@secondoftwo",function(e){return{tokens:e.consumeArgs(2)[1],numArgs:0}}),l("\\@ifnextchar",function(e){var t=e.consumeArgs(3),e=(e.consumeSpaces(),e.future());return 1===t[0].length&&t[0][0].text===e.text?{tokens:t[1],numArgs:0}:{tokens:t[2],numArgs:0}}),l("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}"),l("\\TextOrMath",function(e){var t=e.consumeArgs(2);return"text"===e.mode?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}}),Rl={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15},l("\\char",function(e){var t,r,n=e.popToken(),i="";if("'"===n.text)t=8,n=e.popToken();else if('"'===n.text)t=16,n=e.popToken();else if("`"===n.text)if("\\"===(n=e.popToken()).text[0])i=n.text.charCodeAt(1);else{if("EOF"===n.text)throw new X("\\char` missing argument");i=n.text.charCodeAt(0)}else t=10;if(t){if(null==(i=Rl[n.text])||t<=i)throw new X("Invalid base-"+t+" digit "+n.text);for(;null!=(r=Rl[e.future().text])&&r<t;)i=i*t+r,e.popToken()}return"\\@char{"+i+"}"}),Ml=mt((e,t,r,n)=>{var i=e.consumeArg().tokens;if(1!==i.length)throw new X("\\newcommand's first argument must be a macro name");var a=i[0].text,s=e.isDefined(a);if(s&&!t)throw new X("\\newcommand{"+a+"} attempting to redefine "+a+"; use \\renewcommand");if(!s&&!r)throw new X("\\renewcommand{"+a+"} when command "+a+" does not yet exist; use \\newcommand");if(t=0,1===(i=e.consumeArg().tokens).length&&"["===i[0].text){for(var o="",l=e.expandNextToken();"]"!==l.text&&"EOF"!==l.text;)o+=l.text,l=e.expandNextToken();if(!o.match(/^\s*[0-9]+\s*$/))throw new X("Invalid number of arguments: "+o);t=parseInt(o),i=e.consumeArg().tokens}return s&&n||e.macros.set(a,{tokens:i,numArgs:t}),""},"newcommand"),l("\\newcommand",e=>Ml(e,!1,!0,!1)),l("\\renewcommand",e=>Ml(e,!0,!1,!1)),l("\\providecommand",e=>Ml(e,!0,!0,!0)),l("\\message",e=>(e=e.consumeArgs(1)[0],console.log(e.reverse().map(e=>e.text).join("")),"")),l("\\errmessage",e=>(e=e.consumeArgs(1)[0],console.error(e.reverse().map(e=>e.text).join("")),"")),l("\\show",e=>{var t=e.popToken(),r=t.text;return console.log(t,e.macros.get(r),Sl[r],ja.math[r],ja.text[r]),""}),l("\\bgroup","{"),l("\\egroup","}"),l("~","\\nobreakspace"),l("\\lq","`"),l("\\rq","'"),l("\\aa","\\r a"),l("\\AA","\\r A"),l("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}"),l("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}"),l("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}"),l("ℬ","\\mathscr{B}"),l("ℰ","\\mathscr{E}"),l("ℱ","\\mathscr{F}"),l("ℋ","\\mathscr{H}"),l("ℐ","\\mathscr{I}"),l("ℒ","\\mathscr{L}"),l("ℳ","\\mathscr{M}"),l("ℛ","\\mathscr{R}"),l("ℭ","\\mathfrak{C}"),l("ℌ","\\mathfrak{H}"),l("ℨ","\\mathfrak{Z}"),l("\\Bbbk","\\Bbb{k}"),l("·","\\cdotp"),l("\\llap","\\mathllap{\\textrm{#1}}"),l("\\rlap","\\mathrlap{\\textrm{#1}}"),l("\\clap","\\mathclap{\\textrm{#1}}"),l("\\mathstrut","\\vphantom{(}"),l("\\underbar","\\underline{\\text{#1}}"),l("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}'),l("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}"),l("\\ne","\\neq"),l("≠","\\neq"),l("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}"),l("∉","\\notin"),l("≘","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisLine truncated `,this.tokenRegex.lastIndex))?(this.tokenRegex.lastIndex=e.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=r+1,this.lex()):new zi(n,new Fi(this,t,this.tokenRegex.lastIndex))}},Nl=class{static{mt(this,"Namespace")}constructor(e,t){void 0===e&&(e={}),void 0===t&&(t={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=t,this.builtins=e,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(0===this.undefStack.length)throw new X("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var e,t=this.undefStack.pop();for(e in t)t.hasOwnProperty(e)&&(null==t[e]?delete this.current[e]:this.current[e]=t[e])}endGroups(){for(;0<this.undefStack.length;)this.endGroup()}has(e){return this.current.hasOwnProperty(e)||this.builtins.hasOwnProperty(e)}get(e){return(this.current.hasOwnProperty(e)?this.current:this.builtins)[e]}set(e,t,r){if(r=void 0!==r&&r){for(var n=0;n<this.undefStack.length;n++)delete this.undefStack[n][e];0<this.undefStack.length&&(this.undefStack[this.undefStack.length-1][e]=t)}else(r=this.undefStack[this.undefStack.length-1])&&!r.hasOwnProperty(e)&&(r[e]=this.current[e]);null==t?delete this.current[e]:this.current[e]=t}},Il=Ho,l("\\noexpand",function(e){var t=e.popToken();return e.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}}),l("\\expandafter",function(e){var t=e.popToken();return e.expandOnce(!0),{tokens:[t],numArgs:0}}),l("\\@firstoftwo",function(e){return{tokens:e.consumeArgs(2)[0],numArgs:0}}),l("\\@secondoftwo",function(e){return{tokens:e.consumeArgs(2)[1],numArgs:0}}),l("\\@ifnextchar",function(e){var t=e.consumeArgs(3),e=(e.consumeSpaces(),e.future());return 1===t[0].length&&t[0][0].text===e.text?{tokens:t[1],numArgs:0}:{tokens:t[2],numArgs:0}}),l("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}"),l("\\TextOrMath",function(e){var t=e.consumeArgs(2);return"text"===e.mode?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}}),Rl={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15},l("\\char",function(e){var t,r,n=e.popToken(),i="";if("'"===n.text)t=8,n=e.popToken();else if('"'===n.text)t=16,n=e.popToken();else if("`"===n.text)if("\\"===(n=e.popToken()).text[0])i=n.text.charCodeAt(1);else{if("EOF"===n.text)throw new X("\\char` missing argument");i=n.text.charCodeAt(0)}else t=10;if(t){if(null==(i=Rl[n.text])||t<=i)throw new X("Invalid base-"+t+" digit "+n.text);for(;null!=(r=Rl[e.future().text])&&r<t;)i=i*t+r,e.popToken()}return"\\@char{"+i+"}"}),Ml=mt((e,t,r,n)=>{var i=e.consumeArg().tokens;if(1!==i.length)throw new X("\\newcommand's first argument must be a macro name");var a=i[0].text,s=e.isDefined(a);if(s&&!t)throw new X("\\newcommand{"+a+"} attempting to redefine "+a+"; use \\renewcommand");if(!s&&!r)throw new X("\\renewcommand{"+a+"} when command "+a+" does not yet exist; use \\newcommand");if(t=0,1===(i=e.consumeArg().tokens).length&&"["===i[0].text){for(var o="",l=e.expandNextToken();"]"!==l.text&&"EOF"!==l.text;)o+=l.text,l=e.expandNextToken();if(!o.match(/^\s*[0-9]+\s*$/))throw new X("Invalid number of arguments: "+o);t=parseInt(o),i=e.consumeArg().tokens}return s&&n||e.macros.set(a,{tokens:i,numArgs:t}),""},"newcommand"),l("\\newcommand",e=>Ml(e,!1,!0,!1)),l("\\renewcommand",e=>Ml(e,!0,!1,!1)),l("\\providecommand",e=>Ml(e,!0,!0,!0)),l("\\message",e=>(e=e.consumeArgs(1)[0],console.log(e.reverse().map(e=>e.text).join("")),"")),l("\\errmessage",e=>(e=e.consumeArgs(1)[0],console.error(e.reverse().map(e=>e.text).join("")),"")),l("\\show",e=>{var t=e.popToken(),r=t.text;return console.log(t,e.macros.get(r),_l[r],ja.math[r],ja.text[r]),""}),l("\\bgroup","{"),l("\\egroup","}"),l("~","\\nobreakspace"),l("\\lq","`"),l("\\rq","'"),l("\\aa","\\r a"),l("\\AA","\\r A"),l("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}"),l("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}"),l("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}"),l("ℬ","\\mathscr{B}"),l("ℰ","\\mathscr{E}"),l("ℱ","\\mathscr{F}"),l("ℋ","\\mathscr{H}"),l("ℐ","\\mathscr{I}"),l("ℒ","\\mathscr{L}"),l("ℳ","\\mathscr{M}"),l("ℛ","\\mathscr{R}"),l("ℭ","\\mathfrak{C}"),l("ℌ","\\mathfrak{H}"),l("ℨ","\\mathfrak{Z}"),l("\\Bbbk","\\Bbb{k}"),l("·","\\cdotp"),l("\\llap","\\mathllap{\\textrm{#1}}"),l("\\rlap","\\mathrlap{\\textrm{#1}}"),l("\\clap","\\mathclap{\\textrm{#1}}"),l("\\mathstrut","\\vphantom{(}"),l("\\underbar","\\underline{\\text{#1}}"),l("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}'),l("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}"),l("\\ne","\\neq"),l("≠","\\neq"),l("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}"),l("∉","\\notin"),l("≘","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisLine truncated
please report what input caused this bug`);return{type:"verb",mode:"text",body:n=n.slice(1,-1),star:i}}ql.hasOwnProperty(t[0])&&!ja[this.mode][t[0]]&&(this.settings.strict&&"math"===this.mode&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+t[0]+'" used in math mode',e),t=ql[t[0]]+t.slice(1));var r=Al.exec(t);if(r&&("i"===(t=t.substring(0,r.index))?t="ı":"j"===t&&(t="ȷ")),ja[this.mode][t]){this.settings.strict&&"math"===this.mode&&0<=os.indexOf(t)&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+t[0]+'" used in math mode',e);var n=ja[this.mode][t].group,i=Fi.range(e),a=Ua.hasOwnProperty(n)?{type:"atom",mode:this.mode,family:n,loc:i,text:t}:{type:n,mode:this.mode,loc:i,text:t}}else{if(!(128<=t.charCodeAt(0)))return null;this.settings.strict&&(di(t.charCodeAt(0))?"math"===this.mode&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+t[0]+'" used in math mode',e):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+t[0]+'" ('+t.charCodeAt(0)+")",e)),a={type:"textord",mode:"text",loc:Fi.range(e),text:t}}if(this.consume(),r)for(var s=0;s<r[0].length;s++){var o=r[0][s];if(!Ul[o])throw new X("Unknown accent ' "+o+"'",e);var l=Ul[o][this.mode]||Ul[o].text;if(!l)throw new X("Accent "+o+" unsupported in "+this.mode+" mode",e);a={type:"accent",mode:this.mode,loc:Fi.range(e),label:l,isStretchy:!1,isShifty:!0,base:a}}return a}}).endOfExpression=["}","\\endgroup","\\end","\\right","&"],Yl=mt(function(e,t){if(!("string"==typeof e||e instanceof String))throw new TypeError("KaTeX can only parse string typed expression");delete(e=new jl(e,t)).gullet.macros.current["\\df@tag"];var r=e.parse();if(delete e.gullet.macros.current["\\current@color"],delete e.gullet.macros.current["\\color"],e.gullet.macros.get("\\df@tag")){if(!t.displayMode)throw new X("\\tag works only in display equations");r=[{type:"tag",mode:"text",body:r,tag:e.subparse([new zi("\\df@tag")])}]}return r},"parseTree"),Wl=mt(function(e,t,r){t.textContent="",e=Kl(e,r).toNode(),t.appendChild(e)},"render"),typeof document<"u"&&"CSS1Compat"!==document.compatMode&&(typeof console<"u"&&console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype."),Wl=mt(function(){throw new X("KaTeX doesn't work in quirks mode.")},"render")),Hl=mt(function(e,t){return Kl(e,t).toMarkup()},"renderToString"),Vl=mt(function(e,t){return t=new Vi(t),Yl(e,t)},"generateParseTree"),Xl=mt(function(e,t,r){if(!r.throwOnError&&e instanceof X)return(t=Z.makeSpan(["katex-error"],[new $a(t)])).setAttribute("title",e.toString()),t.setAttribute("style","color:"+r.errorColor),t;throw e},"renderError"),Kl=mt(function(e,t){t=new Vi(t);try{var r=Yl(e,t);return eo(r,e,t)}catch(r){return Xl(r,e,t)}},"renderToDomTree"),Zl=mt(function(e,t){t=new Vi(t);try{var r=Yl(e,t);return to(r,e,t)}catch(r){return Xl(r,e,t)}},"renderToHTMLTree"),ec={version:Ql="0.16.22",render:Wl,renderToString:Hl,ParseError:X,SETTINGS_SCHEMA:Hi,__parse:Vl,__renderToDomTree:Kl,__renderToHTMLTree:Zl,__setFontMetrics:pi,__defineSymbol:t,__defineFunction:o,__defineMacro:l,__domTree:Jl={Span:Da,Anchor:Oa,SymbolNode:$a,SvgNode:Fa,PathNode:za,LineNode:Ga}}});function rc(){let t="data-temp-href-target";si.addHook("beforeSanitizeAttributes",e=>{"A"===e.tagName&&e.hasAttribute("target")&&e.setAttribute(t,e.getAttribute("target")??"")}),si.addHook("afterSanitizeAttributes",e=>{"A"===e.tagName&&e.hasAttribute(t)&&(e.setAttribute("target",e.getAttribute(t)??""),e.removeAttribute(t),"_blank"===e.getAttribute("target"))&&e.setAttribute("rel","noopener")})}var nc,ic,ac,sc,oc,lc,cc,hc,uc,dc,pc,gc,fc,mc,yc,vc,xc,bc,wc,kc,Tc,Ec,Cc,_c,Sc,L,Ac,Lc,Nc,Ic,Rc,Mc,Dc,Oc=b(()=>{oi(),nc=/<br\s*\/?>/gi,ic=mt(e=>e?pc(e).replace(/\\n/g,"#br#").split("#br#"):[""],"getRows"),ac=(()=>{let e=!1;return()=>{e||(rc(),e=!0)}})(),mt(rc,"setupDompurifyHooks"),sc=mt(e=>(ac(),si.sanitize(e)),"removeScript"),oc=mt((e,t)=>(!1!==t.flowchart?.htmlLabels&&("antiscript"===(t=t.securityLevel)||"strict"===t?e=sc(e):"loose"!==t&&(e=(e=(e=pc(e)).replace(/</g,"&lt;").replace(/>/g,"&gt;")).replace(/=/g,"&equals;"),e=dc(e))),e),"sanitizeMore"),lc=mt((e,t)=>e&&(t.dompurifyConfig?si.sanitize(oc(e,t),t.dompurifyConfig):si.sanitize(oc(e,t),{FORBID_TAGS:["style"]})).toString(),"sanitizeText"),cc=mt((e,t)=>"string"==typeof e?lc(e,t):e.flat().map(e=>lc(e,t)),"sanitizeTextOrArray"),hc=mt(e=>nc.test(e),"hasBreaks"),uc=mt(e=>e.split(nc),"splitBreaks"),dc=mt(e=>e.replace(/#br#/g,"<br/>"),"placeholderToBreak"),pc=mt(e=>e.replace(nc,"#br#"),"breakToPlaceholder"),gc=mt(e=>{let t="";return e&&(t=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,t=CSS.escape(t)),t},"getUrl"),fc=mt(e=>!(!1===e||["false","null","0"].includes(String(e).trim().toLowerCase())),"evaluate"),mc=mt(function(...e){return e=e.filter(e=>!isNaN(e)),Math.max(...e)},"getMax"),yc=mt(function Line truncated please report what input caused this bug`);return{type:"verb",mode:"text",body:n=n.slice(1,-1),star:i}}ql.hasOwnProperty(t[0])&&!ja[this.mode][t[0]]&&(this.settings.strict&&"math"===this.mode&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+t[0]+'" used in math mode',e),t=ql[t[0]]+t.slice(1));var r=Al.exec(t);if(r&&("i"===(t=t.substring(0,r.index))?t="ı":"j"===t&&(t="ȷ")),ja[this.mode][t]){this.settings.strict&&"math"===this.mode&&0<=os.indexOf(t)&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+t[0]+'" used in math mode',e);var n=ja[this.mode][t].group,i=Fi.range(e),a=Ua.hasOwnProperty(n)?{type:"atom",mode:this.mode,family:n,loc:i,text:t}:{type:n,mode:this.mode,loc:i,text:t}}else{if(!(128<=t.charCodeAt(0)))return null;this.settings.strict&&(di(t.charCodeAt(0))?"math"===this.mode&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+t[0]+'" used in math mode',e):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+t[0]+'" ('+t.charCodeAt(0)+")",e)),a={type:"textord",mode:"text",loc:Fi.range(e),text:t}}if(this.consume(),r)for(var s=0;s<r[0].length;s++){var o=r[0][s];if(!Ul[o])throw new X("Unknown accent ' "+o+"'",e);var l=Ul[o][this.mode]||Ul[o].text;if(!l)throw new X("Accent "+o+" unsupported in "+this.mode+" mode",e);a={type:"accent",mode:this.mode,loc:Fi.range(e),label:l,isStretchy:!1,isShifty:!0,base:a}}return a}}).endOfExpression=["}","\\endgroup","\\end","\\right","&"],Yl=mt(function(e,t){if(!("string"==typeof e||e instanceof String))throw new TypeError("KaTeX can only parse string typed expression");delete(e=new jl(e,t)).gullet.macros.current["\\df@tag"];var r=e.parse();if(delete e.gullet.macros.current["\\current@color"],delete e.gullet.macros.current["\\color"],e.gullet.macros.get("\\df@tag")){if(!t.displayMode)throw new X("\\tag works only in display equations");r=[{type:"tag",mode:"text",body:r,tag:e.subparse([new zi("\\df@tag")])}]}return r},"parseTree"),Wl=mt(function(e,t,r){t.textContent="",e=Kl(e,r).toNode(),t.appendChild(e)},"render"),typeof document<"u"&&"CSS1Compat"!==document.compatMode&&(typeof console<"u"&&console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype."),Wl=mt(function(){throw new X("KaTeX doesn't work in quirks mode.")},"render")),Hl=mt(function(e,t){return Kl(e,t).toMarkup()},"renderToString"),Vl=mt(function(e,t){return t=new Vi(t),Yl(e,t)},"generateParseTree"),Xl=mt(function(e,t,r){if(!r.throwOnError&&e instanceof X)return(t=Z.makeSpan(["katex-error"],[new $a(t)])).setAttribute("title",e.toString()),t.setAttribute("style","color:"+r.errorColor),t;throw e},"renderError"),Kl=mt(function(e,t){t=new Vi(t);try{var r=Yl(e,t);return eo(r,e,t)}catch(r){return Xl(r,e,t)}},"renderToDomTree"),Zl=mt(function(e,t){t=new Vi(t);try{var r=Yl(e,t);return to(r,e,t)}catch(r){return Xl(r,e,t)}},"renderToHTMLTree"),ec={version:Ql="0.16.22",render:Wl,renderToString:Hl,ParseError:X,SETTINGS_SCHEMA:Hi,__parse:Vl,__renderToDomTree:Kl,__renderToHTMLTree:Zl,__setFontMetrics:pi,__defineSymbol:t,__defineFunction:o,__defineMacro:l,__domTree:Jl={Span:Da,Anchor:Oa,SymbolNode:$a,SvgNode:Fa,PathNode:za,LineNode:Ga}}});function rc(){let t="data-temp-href-target";si.addHook("beforeSanitizeAttributes",e=>{"A"===e.tagName&&e.hasAttribute("target")&&e.setAttribute(t,e.getAttribute("target")??"")}),si.addHook("afterSanitizeAttributes",e=>{"A"===e.tagName&&e.hasAttribute(t)&&(e.setAttribute("target",e.getAttribute(t)??""),e.removeAttribute(t),"_blank"===e.getAttribute("target"))&&e.setAttribute("rel","noopener")})}var nc,ic,ac,sc,oc,lc,cc,hc,uc,dc,pc,gc,fc,mc,yc,vc,xc,bc,wc,kc,Tc,Ec,Cc,Sc,_c,N,Ac,Lc,Nc,Ic,Rc,Mc,Dc,Oc=b(()=>{oi(),nc=/<br\s*\/?>/gi,ic=mt(e=>e?pc(e).replace(/\\n/g,"#br#").split("#br#"):[""],"getRows"),ac=(()=>{let e=!1;return()=>{e||(rc(),e=!0)}})(),mt(rc,"setupDompurifyHooks"),sc=mt(e=>(ac(),si.sanitize(e)),"removeScript"),oc=mt((e,t)=>(!1!==t.flowchart?.htmlLabels&&("antiscript"===(t=t.securityLevel)||"strict"===t?e=sc(e):"loose"!==t&&(e=(e=(e=pc(e)).replace(/</g,"&lt;").replace(/>/g,"&gt;")).replace(/=/g,"&equals;"),e=dc(e))),e),"sanitizeMore"),lc=mt((e,t)=>e&&(t.dompurifyConfig?si.sanitize(oc(e,t),t.dompurifyConfig):si.sanitize(oc(e,t),{FORBID_TAGS:["style"]})).toString(),"sanitizeText"),cc=mt((e,t)=>"string"==typeof e?lc(e,t):e.flat().map(e=>lc(e,t)),"sanitizeTextOrArray"),hc=mt(e=>nc.test(e),"hasBreaks"),uc=mt(e=>e.split(nc),"splitBreaks"),dc=mt(e=>e.replace(/#br#/g,"<br/>"),"placeholderToBreak"),pc=mt(e=>e.replace(nc,"#br#"),"breakToPlaceholder"),gc=mt(e=>{let t="";return e&&(t=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,t=CSS.escape(t)),t},"getUrl"),fc=mt(e=>!(!1===e||["false","null","0"].includes(String(e).trim().toLowerCase())),"evaluate"),mc=mt(function(...e){return e=e.filter(e=>!isNaN(e)),Math.max(...e)},"getMax"),yc=mt(function Line truncated
[ ]{`+Math.min.apply(Math,e)+"}","g"),i=i.map(function(e){return e.replace(n,` [ ]{`+Math.min.apply(Math,e)+"}","g"),i=i.map(function(e){return e.replace(n,`
`)})),i[0]=i[0].replace(/^\r?\n/,""),i[0]);return t.forEach(function(e,t){var r=(n=a.match(/(?:^|\n)( *)$/))?n[1]:"",n=e;"string"==typeof e&&e.includes(` `)})),i[0]=i[0].replace(/^\r?\n/,""),i[0]);return t.forEach(function(e,t){var r=(n=a.match(/(?:^|\n)( *)$/))?n[1]:"",n=e;"string"==typeof e&&e.includes(`
`)&&(n=String(e).split(` `)&&(n=String(e).split(`
`).map(function(e,t){return 0===t?e:""+r+e}).join(` `).map(function(e,t){return 0===t?e:""+r+e}).join(`
`)),a+=n+i[t+1]}),a}var $c,Fc,zc,Gc,Uc,qc,jc,Yc,Wc,Hc,Vc,Xc,Kc,Zc,Qc,Jc,eh,th,rh,nh=b(()=>{mt(Bc,"dedent")}),ih=b(()=>{$c=/^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s,Fc=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,zc=/\s*%%.*\n/gm}),ah=b(()=>{Gc=class extends Error{static{mt(this,"UnknownDiagramError")}constructor(e){super(e),this.name="UnknownDiagramError"}}}),sh=b(()=>{e(),ih(),ah(),Uc={},qc=mt(function(e,t){e=e.replace($c,"").replace(Fc,"").replace(zc,` `)),a+=n+i[t+1]}),a}var $c,Fc,zc,Gc,Uc,qc,jc,Yc,Wc,Hc,Vc,Xc,Kc,Zc,Qc,Jc,eh,th,rh,nh=b(()=>{mt(Bc,"dedent")}),ih=b(()=>{$c=/^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s,Fc=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,zc=/\s*%%.*\n/gm}),ah=b(()=>{Gc=class extends Error{static{mt(this,"UnknownDiagramError")}constructor(e){super(e),this.name="UnknownDiagramError"}}}),sh=b(()=>{e(),ih(),ah(),Uc={},qc=mt(function(e,t){e=e.replace($c,"").replace(Fc,"").replace(zc,`
`);for(var[r,{detector:n}]of Object.entries(Uc))if(n(e,t))return r;throw new Gc("No diagram type detected matching given configuration for text: "+e)},"detectType"),jc=mt((...e)=>{for(var{id:t,detector:r,loader:n}of e)Yc(t,r,n)},"registerLazyLoadedDiagrams"),Yc=mt((e,t,r)=>{Uc[e]&&D.warn(`Detector with key ${e} already exists. Overwriting.`),Uc[e]={detector:t,loader:r},D.debug(`Detector with key ${e} added`+(r?" with loader":""))},"addDetector"),Wc=mt(e=>Uc[e].loader,"getDiagramLoader")}),oh=b(()=>{function B(){this.yy={}}var e=mt(function(e,t,r,n){for(r=r||{},n=e.length;n--;r[e[n]]=t);return r},"o"),t=[1,24],r=[1,25],$=[1,26],F=[1,27],z=[1,28],n=[1,63],i=[1,64],a=[1,65],s=[1,66],o=[1,67],l=[1,68],h=[1,69],u=[1,29],d=[1,30],p=[1,31],g=[1,32],f=[1,33],m=[1,34],y=[1,35],v=[1,36],x=[1,37],b=[1,38],w=[1,39],k=[1,40],T=[1,41],E=[1,42],C=[1,43],_=[1,44],S=[1,45],A=[1,46],L=[1,47],N=[1,48],I=[1,50],G=[1,51],U=[1,52],q=[1,53],j=[1,54],Y=[1,55],W=[1,56],H=[1,57],V=[1,58],X=[1,59],K=[1,60],Z=[14,42],Q=[14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],J=[12,14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],R=[1,82],M=[1,83],D=[1,84],O=[1,85],P=[12,14,42],ee=[12,14,33,42],te=[12,14,33,42,76,77,79,80],re=[12,33],ne=[34,36,37,38,39,40,41,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],t={trace:mt(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,direction:5,direction_tb:6,direction_bt:7,direction_rl:8,direction_lr:9,graphConfig:10,C4_CONTEXT:11,NEWLINE:12,statements:13,EOF:14,C4_CONTAINER:15,C4_COMPONENT:16,C4_DYNAMIC:17,C4_DEPLOYMENT:18,otherStatements:19,diagramStatements:20,otherStatement:21,title:22,accDescription:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,boundaryStatement:29,boundaryStartStatement:30,boundaryStopStatement:31,boundaryStart:32,LBRACE:33,ENTERPRISE_BOUNDARY:34,attributes:35,SYSTEM_BOUNDARY:36,BOUNDARY:37,CONTAINER_BOUNDARY:38,NODE:39,NODE_L:40,NODE_R:41,RBRACE:42,diagramStatement:43,PERSON:44,PERSON_EXT:45,SYSTEM:46,SYSTEM_DB:47,SYSTEM_QUEUE:48,SYSTEM_EXT:49,SYSTEM_EXT_DB:50,SYSTEM_EXT_QUEUE:51,CONTAINER:52,CONTAINER_DB:53,CONTAINER_QUEUE:54,CONTAINER_EXT:55,CONTAINER_EXT_DB:56,CONTAINER_EXT_QUEUE:57,COMPONENT:58,COMPONENT_DB:59,COMPONENT_QUEUE:60,COMPONENT_EXT:61,COMPONENT_EXT_DB:62,COMPONENT_EXT_QUEUE:63,REL:64,BIREL:65,REL_U:66,REL_D:67,REL_L:68,REL_R:69,REL_B:70,REL_INDEX:71,UPDATE_EL_STYLE:72,UPDATE_REL_STYLE:73,UPDATE_LAYOUT_CONFIG:74,attribute:75,STR:76,STR_KEY:77,STR_VALUE:78,ATTRIBUTE:79,ATTRIBUTE_EMPTY:80,$accept:0,$end:1},terminals_:{2:"error",6:"direction_tb",7:"direction_bt",8:"direction_rl",9:"direction_lr",11:"C4_CONTEXT",12:"NEWLINE",14:"EOF",15:"C4_CONTAINER",16:"C4_COMPONENT",17:"C4_DYNAMIC",18:"C4_DEPLOYMENT",22:"title",23:"accDescription",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"LBRACE",34:"ENTERPRISE_BOUNDARY",36:"SYSTEM_BOUNDARY",37:"BOUNDARY",38:"CONTAINER_BOUNDARY",39:"NODE",40:"NODE_L",41:"NODE_R",42:"RBRACE",44:"PERSON",45:"PERSON_EXT",46:"SYSTEM",47:"SYSTEM_DB",48:"SYSTEM_QUEUE",49:"SYSTEM_EXT",50:"SYSTEM_EXT_DB",51:"SYSTEM_EXT_QUEUE",52:"CONTAINER",53:"CONTAINER_DB",54:"CONTAINER_QUEUE",55:"CONTAINER_EXT",56:"CONTAINER_EXT_DB",57:"CONTAINER_EXT_QUEUE",58:"COMPONENT",59:"COMPONENT_DB",60:"COMPONENT_QUEUE",61:"COMPONENT_EXT",62:"COMPONENT_EXT_DB",63:"COMPONENT_EXT_QUEUE",64:"REL",65:"BIREL",66:"REL_U",67:"REL_D",68:"REL_L",69:"REL_R",70:"REL_B",71:"REL_INDEX",72:"UPDATE_EL_STYLE",73:"UPDATE_REL_STYLE",74:"UPDATE_LAYOUT_CONFIG",76:"STR",77:"STR_KEY",78:"STR_VALUE",79:"ATTRIBUTE",80:"ATTRIBUTE_EMPTY"},productions_:[0,[3,1],[3,1],[5,1],[5,1],[5,1],[5,1],[4,1],[10,4],[10,4],[10,4],[10,4],[10,4],[13,1],[13,1],[13,2],[19,1],[19,2],[19,3],[21,1],[21,1],[21,2],[21,2],[21,1],[29,3],[30,3],[30,3],[30,4],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[31,1],[20,1],[20,2],[20,3],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,1],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[35,1],[35,2],[75,1],[75,2],[75,1],[75,1]],performAction:mt(function(e,t,r,n,i,a,s){var o=a.length-1;switch(i){case 3:n.setDirection("TB");break;case 4:n.setDirection("BT");break;case 5:n.setDirection("RL");break;case 6:n.setDirection("LR");break;case 8:case 9:case 10:case 11:case 12:n.setC4Type(a[o-3]);break;case 19:n.setTitle(a[o].substring(6)),this.$=a[o].substring(6);break;case 20:n.setAccDescription(a[o].substring(15)),this.$=a[o].substring(15);break;case 21:this.$=a[o].trim(),n.setTitle(this.$);break;case 22:case 23:this.$=a[o].trim(),n.setAccDescription(this.$);break;case 28:a[o].splice(2,0,"ENTERPRISE"),n.addPersonOrSystemBoundary(...a[o]),this.$=a[o];break;case 2 Line truncated `);for(var[r,{detector:n}]of Object.entries(Uc))if(n(e,t))return r;throw new Gc("No diagram type detected matching given configuration for text: "+e)},"detectType"),jc=mt((...e)=>{for(var{id:t,detector:r,loader:n}of e)Yc(t,r,n)},"registerLazyLoadedDiagrams"),Yc=mt((e,t,r)=>{Uc[e]&&D.warn(`Detector with key ${e} already exists. Overwriting.`),Uc[e]={detector:t,loader:r},D.debug(`Detector with key ${e} added`+(r?" with loader":""))},"addDetector"),Wc=mt(e=>Uc[e].loader,"getDiagramLoader")}),oh=b(()=>{function B(){this.yy={}}var e=mt(function(e,t,r,n){for(r=r||{},n=e.length;n--;r[e[n]]=t);return r},"o"),t=[1,24],r=[1,25],$=[1,26],F=[1,27],z=[1,28],n=[1,63],i=[1,64],a=[1,65],s=[1,66],o=[1,67],l=[1,68],h=[1,69],u=[1,29],d=[1,30],p=[1,31],g=[1,32],f=[1,33],m=[1,34],y=[1,35],v=[1,36],x=[1,37],b=[1,38],w=[1,39],k=[1,40],T=[1,41],E=[1,42],C=[1,43],S=[1,44],_=[1,45],A=[1,46],L=[1,47],N=[1,48],I=[1,50],G=[1,51],U=[1,52],q=[1,53],j=[1,54],Y=[1,55],W=[1,56],H=[1,57],V=[1,58],X=[1,59],K=[1,60],Z=[14,42],Q=[14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],J=[12,14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],R=[1,82],M=[1,83],D=[1,84],O=[1,85],P=[12,14,42],ee=[12,14,33,42],te=[12,14,33,42,76,77,79,80],re=[12,33],ne=[34,36,37,38,39,40,41,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],t={trace:mt(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,direction:5,direction_tb:6,direction_bt:7,direction_rl:8,direction_lr:9,graphConfig:10,C4_CONTEXT:11,NEWLINE:12,statements:13,EOF:14,C4_CONTAINER:15,C4_COMPONENT:16,C4_DYNAMIC:17,C4_DEPLOYMENT:18,otherStatements:19,diagramStatements:20,otherStatement:21,title:22,accDescription:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,boundaryStatement:29,boundaryStartStatement:30,boundaryStopStatement:31,boundaryStart:32,LBRACE:33,ENTERPRISE_BOUNDARY:34,attributes:35,SYSTEM_BOUNDARY:36,BOUNDARY:37,CONTAINER_BOUNDARY:38,NODE:39,NODE_L:40,NODE_R:41,RBRACE:42,diagramStatement:43,PERSON:44,PERSON_EXT:45,SYSTEM:46,SYSTEM_DB:47,SYSTEM_QUEUE:48,SYSTEM_EXT:49,SYSTEM_EXT_DB:50,SYSTEM_EXT_QUEUE:51,CONTAINER:52,CONTAINER_DB:53,CONTAINER_QUEUE:54,CONTAINER_EXT:55,CONTAINER_EXT_DB:56,CONTAINER_EXT_QUEUE:57,COMPONENT:58,COMPONENT_DB:59,COMPONENT_QUEUE:60,COMPONENT_EXT:61,COMPONENT_EXT_DB:62,COMPONENT_EXT_QUEUE:63,REL:64,BIREL:65,REL_U:66,REL_D:67,REL_L:68,REL_R:69,REL_B:70,REL_INDEX:71,UPDATE_EL_STYLE:72,UPDATE_REL_STYLE:73,UPDATE_LAYOUT_CONFIG:74,attribute:75,STR:76,STR_KEY:77,STR_VALUE:78,ATTRIBUTE:79,ATTRIBUTE_EMPTY:80,$accept:0,$end:1},terminals_:{2:"error",6:"direction_tb",7:"direction_bt",8:"direction_rl",9:"direction_lr",11:"C4_CONTEXT",12:"NEWLINE",14:"EOF",15:"C4_CONTAINER",16:"C4_COMPONENT",17:"C4_DYNAMIC",18:"C4_DEPLOYMENT",22:"title",23:"accDescription",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"LBRACE",34:"ENTERPRISE_BOUNDARY",36:"SYSTEM_BOUNDARY",37:"BOUNDARY",38:"CONTAINER_BOUNDARY",39:"NODE",40:"NODE_L",41:"NODE_R",42:"RBRACE",44:"PERSON",45:"PERSON_EXT",46:"SYSTEM",47:"SYSTEM_DB",48:"SYSTEM_QUEUE",49:"SYSTEM_EXT",50:"SYSTEM_EXT_DB",51:"SYSTEM_EXT_QUEUE",52:"CONTAINER",53:"CONTAINER_DB",54:"CONTAINER_QUEUE",55:"CONTAINER_EXT",56:"CONTAINER_EXT_DB",57:"CONTAINER_EXT_QUEUE",58:"COMPONENT",59:"COMPONENT_DB",60:"COMPONENT_QUEUE",61:"COMPONENT_EXT",62:"COMPONENT_EXT_DB",63:"COMPONENT_EXT_QUEUE",64:"REL",65:"BIREL",66:"REL_U",67:"REL_D",68:"REL_L",69:"REL_R",70:"REL_B",71:"REL_INDEX",72:"UPDATE_EL_STYLE",73:"UPDATE_REL_STYLE",74:"UPDATE_LAYOUT_CONFIG",76:"STR",77:"STR_KEY",78:"STR_VALUE",79:"ATTRIBUTE",80:"ATTRIBUTE_EMPTY"},productions_:[0,[3,1],[3,1],[5,1],[5,1],[5,1],[5,1],[4,1],[10,4],[10,4],[10,4],[10,4],[10,4],[13,1],[13,1],[13,2],[19,1],[19,2],[19,3],[21,1],[21,1],[21,2],[21,2],[21,1],[29,3],[30,3],[30,3],[30,4],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[31,1],[20,1],[20,2],[20,3],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,1],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[35,1],[35,2],[75,1],[75,2],[75,1],[75,1]],performAction:mt(function(e,t,r,n,i,a,s){var o=a.length-1;switch(i){case 3:n.setDirection("TB");break;case 4:n.setDirection("BT");break;case 5:n.setDirection("RL");break;case 6:n.setDirection("LR");break;case 8:case 9:case 10:case 11:case 12:n.setC4Type(a[o-3]);break;case 19:n.setTitle(a[o].substring(6)),this.$=a[o].substring(6);break;case 20:n.setAccDescription(a[o].substring(15)),this.$=a[o].substring(15);break;case 21:this.$=a[o].trim(),n.setTitle(this.$);break;case 22:case 23:this.$=a[o].trim(),n.setAccDescription(this.$);break;case 28:a[o].splice(2,0,"ENTERPRISE"),n.addPersonOrSystemBoundary(...a[o]),this.$=a[o];break;case 2 Line truncated
`+g.showPosition()+` `+g.showPosition()+`
Expecting `+A.join(", ")+", got '"+(this.terminals_[x]||x)+"'":"Parse error on line "+(c+1)+": Unexpected "+(x==d?"end of input":"'"+(this.terminals_[x]||x)+"'"),this.parseError(S,{text:g.match,token:this.terminals_[x]||x,line:g.yylineno,loc:m,expected:A})}if(k[0]instanceof Array&&1<k.length)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+x);switch(k[0]){case 1:n.push(x),a.push(g.yytext),s.push(g.yylloc),n.push(k[1]),x=null,b?(x=b,b=null):(h=g.yyleng,l=g.yytext,c=g.yylineno,m=g.yylloc,0<u&&u--);break;case 2:if(E=this.productions_[k[1]][1],_.$=a[a.length-E],_._$={first_line:s[s.length-(E||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(E||1)].first_column,last_column:s[s.length-1].last_column},y&&(_._$.range=[s[s.length-(E||1)].range[0],s[s.length-1].range[1]]),typeof(C=this.performAction.apply(_,[l,h,c,f.yy,k[1],a,s].concat(p)))<"u")return C;E&&(n=n.slice(0,-1*E*2),a=a.slice(0,-1*E),s=s.slice(0,-1*E)),n.push(this.productions_[k[1]][0]),a.push(_.$),s.push(_._$),C=o[n[n.length-2]][n[n.length-1]],n.push(C);break;case 3:return!0}}return!0},"parse")},r={EOF:1,parseError:mt(function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},"parseError"),setInput:mt(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:mt(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},"input"),unput:mt(function(e){var t=e.length,r=e.split(/(?:\r\n?|\n)/g),e=(this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t,this.match.split(/(?:\r\n?|\n)/g)),n=(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),r.length-1&&(this.yylineno-=r.length-1),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:r?(r.length===e.length?this.yylloc.first_column:0)+e[e.length-r.length].length-r[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[n[0],n[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},"unput"),more:mt(function(){return this._more=!0,this},"more"),reject:mt(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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). Expecting `+A.join(", ")+", got '"+(this.terminals_[x]||x)+"'":"Parse error on line "+(c+1)+": Unexpected "+(x==d?"end of input":"'"+(this.terminals_[x]||x)+"'"),this.parseError(_,{text:g.match,token:this.terminals_[x]||x,line:g.yylineno,loc:m,expected:A})}if(k[0]instanceof Array&&1<k.length)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+x);switch(k[0]){case 1:n.push(x),a.push(g.yytext),s.push(g.yylloc),n.push(k[1]),x=null,b?(x=b,b=null):(h=g.yyleng,l=g.yytext,c=g.yylineno,m=g.yylloc,0<u&&u--);break;case 2:if(E=this.productions_[k[1]][1],S.$=a[a.length-E],S._$={first_line:s[s.length-(E||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(E||1)].first_column,last_column:s[s.length-1].last_column},y&&(S._$.range=[s[s.length-(E||1)].range[0],s[s.length-1].range[1]]),typeof(C=this.performAction.apply(S,[l,h,c,f.yy,k[1],a,s].concat(p)))<"u")return C;E&&(n=n.slice(0,-1*E*2),a=a.slice(0,-1*E),s=s.slice(0,-1*E)),n.push(this.productions_[k[1]][0]),a.push(S.$),s.push(S._$),C=o[n[n.length-2]][n[n.length-1]],n.push(C);break;case 3:return!0}}return!0},"parse")},r={EOF:1,parseError:mt(function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},"parseError"),setInput:mt(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:mt(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},"input"),unput:mt(function(e){var t=e.length,r=e.split(/(?:\r\n?|\n)/g),e=(this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t,this.match.split(/(?:\r\n?|\n)/g)),n=(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),r.length-1&&(this.yylineno-=r.length-1),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:r?(r.length===e.length?this.yylloc.first_column:0)+e[e.length-r.length].length-r[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[n[0],n[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},"unput"),more:mt(function(){return this._more=!0,this},"more"),reject:mt(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:mt(function(e){this.unput(this.match.slice(e))},"less"),pastInput:mt(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(20<e.length?"...":"")+e.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:mt(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(20<e.length?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:mt(function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+` `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:mt(function(e){this.unput(this.match.slice(e))},"less"),pastInput:mt(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(20<e.length?"...":"")+e.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:mt(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(20<e.length?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:mt(function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+`
`+t+"^"},"showPosition"),test_match:mt(function(e,t){var r,n;if(this.options.backtrack_lexer&&(n={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)&&(n.yylloc.range=this.yylloc.range.slice(0)),(r=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],r=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),r)return r;if(this._backtrack)for(var i in n)this[i]=n[i];return!1},"test_match"),next:mt(function(){if(this.done)return this.EOF;var e,t,r,n;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;a<i.length;a++)if((r=this._input.match(this.rules[i[a]]))&&(!t||r[0].length>t[0].length)){if(t=r,n=a,this.options.backtrack_lexer){if(!1!==(e=this.test_match(r,i[a])))return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,i[n]))&&e:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. `+t+"^"},"showPosition"),test_match:mt(function(e,t){var r,n;if(this.options.backtrack_lexer&&(n={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)&&(n.yylloc.range=this.yylloc.range.slice(0)),(r=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],r=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),r)return r;if(this._backtrack)for(var i in n)this[i]=n[i];return!1},"test_match"),next:mt(function(){if(this.done)return this.EOF;var e,t,r,n;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;a<i.length;a++)if((r=this._input.match(this.rules[i[a]]))&&(!t||r[0].length>t[0].length)){if(t=r,n=a,this.options.backtrack_lexer){if(!1!==(e=this.test_match(r,i[a])))return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,i[n]))&&e:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:mt(function(){return this.next()||this.lex()},"lex"),begin:mt(function(e){this.conditionStack.push(e)},"begin"),popState:mt(function(){return 0<this.conditionStack.length-1?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:mt(function(){return(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]]:this.conditions.INITIAL).rules},"_currentRules"),topState:mt(function(e){return 0<=(e=this.conditionStack.length-1-Math.abs(e||0))?this.conditionStack[e]:"INITIAL"},"topState"),pushState:mt(function(e){this.begin(e)},"pushState"),stateStackSize:mt(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:mt(function(e,t,r,n){switch(r){case 0:return 6;case 1:return 7;case 2:return 8;case 3:return 9;case 4:return 22;case 5:return 23;case 6:return this.begin("acc_title"),24;case 7:return this.popState(),"acc_title_value";case 8:return this.begin("acc_descr"),26;case 9:return this.popState(),"acc_descr_value";case 10:this.begin("acc_descr_multiline");break;case 11:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:break;case 14:c;break;case 15:return 12;case 16:break;case 17:return 11;case 18:return 15;case 19:return 16;case 20:return 17;case 21:return 18;case 22:return this.begin("person_ext"),45;case 23:return this.begin("person"),44;case 24:return this.begin("system_ext_queue"),51;case 25:return this.begin("system_ext_db"),50;case 26:return this.begin("system_ext"),49;case 27:return this.begin("system_queue"),48;case 28:return this.begin("system_db"),47;case 29:return this.begin("system"),46;case 30:return this.begin("boundary"),37;case 31:return this.begin("enterprise_boundary"),34;case 32:return this.begin("system_boundary"),36;case 33:return this.begin("container_ext_queue"),57;case 34:return this.begin("container_ext_db"),56;case 35:return this.begin("container_ext"),55;case 36:return this.begin("container_queue"),54;case 37:return this.begin("container_db"),53;case 38:return this.begin("container"),52;case 39:return this.begin("container_boundary"),38;case 40:return this.begin("component_ext_queue"),63;case 41:return this.begin("component_ext_db"),62;case 42:return this.begin("component_ext"),61;case 43:return this.begin("component_queue"),60;case 44:return this.begin("component_db"),59;case 45:return this.begin("component"),58;case 46:case 47:return this.begin("node"),39;case 48:return this.begin("node_l"),40;case 49:return this.begin("node_r"),41;case 50:return this.begin("rel"),64;case 51:return this.begin("birel"),65;case 52:case 53:return this.begin("rel_u"),66;case 54:case 55:return this.begin("rel_d"),67;case 56:case 57:return this.begin("rel_l"),68;case 58:case 59:return this.begin("rel_r"),69;case 60:return this.begin("rel_b"),70;case 61:return this.begin("rel_index"),71;case 62:return this.begin("update_el_style"),72;case 63:return this.begin("update_rel_style"),73;case 64:return this.begin("update_layout_config"),74;case 65:return"EOF_IN_STRUCT";case 66:return this.begin("attribute"),"ATTRIBUTE_EMPTY";case 67:this.begin("attribute");break;case 68:this.popState(),this.popState();break;case 69:return 80;case 70:break;case 71:return 80;case 72:this.begin("string");break;case 73:this.popState();break;case 74:return"STR";case 75:this.begin("string_kv");break;case 76:return this.begin("string_kv_key"),"STR_KEY";case 77:this.popState(),this.begin("string_kv_value");break;case 78:return"STR_VALUE";case 79:this.popState(),this.popState();break;case 80:return"STR";case 81:return"LBRACE";case 82:return"RBRACE";case 83:return"SPACE";case 84:return"EOL";case 85:return 14}},"anonymous"),rules:[/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:title\s[^#\n;]+)/,/^(?:accDescription\s[^#\n;]+)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/,/^(?:%%[^\n]*(\r?\n)*)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:C4Context\b)/,/^(?:C4Container\b)/,/^(?:C4Component\b)/,/^(?:C4Dynamic\b)/,/^(?:C4Deployment\b)/,/^(?:Person_Ext\b)/,/^(?:Person\b)/,/^(?:SystemQueue_Ext\b)/,/^(?:SystemDb_Ext\b)/,/^(?:System_Ext\b)/,/^(?:SystemQueue\b)/,/^(?:SystemDb\b)/,/^(?:System\b)/,/^(?:Boundary\b)/,/^(?:Enterprise_Boundary\b)/,/^(?:System_Boundary\b)/,/^(?:ContainerQueue_Ext\b)/,/^(?:ContainerDb_Ext\b)/,/^(?:Container_Ext\b)/,/^(?:ContainerQueue\b)/,/^(?:ContainerDb\b)/,/^(?:Container\b)/,/^(?:Container_Boundary\b)/,/^(?:ComponentQueue_Ext\b)/,/^(?:ComponentDb_Ext\b)/,/^(?:Component_Ext\b)/,/^(?:ComponentQueue\b)/,/^(?:ComponentDb\b)/,/^(?:Component\b)/,/^(?:Deployment_Node\b)/,/^(?:Node\b)/,/^(?:Node_L\b)/,/^(?:Node_R\b)/,/^(?:Rel\b)/,/^(?:BiRel\b)/,/^(?:Rel_Up\b)/,/^(?:Rel_U\b)/,/^(?:Rel_Down\b)/,/^(?:Rel_D\ Line truncated `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:mt(function(){return this.next()||this.lex()},"lex"),begin:mt(function(e){this.conditionStack.push(e)},"begin"),popState:mt(function(){return 0<this.conditionStack.length-1?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:mt(function(){return(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]]:this.conditions.INITIAL).rules},"_currentRules"),topState:mt(function(e){return 0<=(e=this.conditionStack.length-1-Math.abs(e||0))?this.conditionStack[e]:"INITIAL"},"topState"),pushState:mt(function(e){this.begin(e)},"pushState"),stateStackSize:mt(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:mt(function(e,t,r,n){switch(r){case 0:return 6;case 1:return 7;case 2:return 8;case 3:return 9;case 4:return 22;case 5:return 23;case 6:return this.begin("acc_title"),24;case 7:return this.popState(),"acc_title_value";case 8:return this.begin("acc_descr"),26;case 9:return this.popState(),"acc_descr_value";case 10:this.begin("acc_descr_multiline");break;case 11:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:break;case 14:c;break;case 15:return 12;case 16:break;case 17:return 11;case 18:return 15;case 19:return 16;case 20:return 17;case 21:return 18;case 22:return this.begin("person_ext"),45;case 23:return this.begin("person"),44;case 24:return this.begin("system_ext_queue"),51;case 25:return this.begin("system_ext_db"),50;case 26:return this.begin("system_ext"),49;case 27:return this.begin("system_queue"),48;case 28:return this.begin("system_db"),47;case 29:return this.begin("system"),46;case 30:return this.begin("boundary"),37;case 31:return this.begin("enterprise_boundary"),34;case 32:return this.begin("system_boundary"),36;case 33:return this.begin("container_ext_queue"),57;case 34:return this.begin("container_ext_db"),56;case 35:return this.begin("container_ext"),55;case 36:return this.begin("container_queue"),54;case 37:return this.begin("container_db"),53;case 38:return this.begin("container"),52;case 39:return this.begin("container_boundary"),38;case 40:return this.begin("component_ext_queue"),63;case 41:return this.begin("component_ext_db"),62;case 42:return this.begin("component_ext"),61;case 43:return this.begin("component_queue"),60;case 44:return this.begin("component_db"),59;case 45:return this.begin("component"),58;case 46:case 47:return this.begin("node"),39;case 48:return this.begin("node_l"),40;case 49:return this.begin("node_r"),41;case 50:return this.begin("rel"),64;case 51:return this.begin("birel"),65;case 52:case 53:return this.begin("rel_u"),66;case 54:case 55:return this.begin("rel_d"),67;case 56:case 57:return this.begin("rel_l"),68;case 58:case 59:return this.begin("rel_r"),69;case 60:return this.begin("rel_b"),70;case 61:return this.begin("rel_index"),71;case 62:return this.begin("update_el_style"),72;case 63:return this.begin("update_rel_style"),73;case 64:return this.begin("update_layout_config"),74;case 65:return"EOF_IN_STRUCT";case 66:return this.begin("attribute"),"ATTRIBUTE_EMPTY";case 67:this.begin("attribute");break;case 68:this.popState(),this.popState();break;case 69:return 80;case 70:break;case 71:return 80;case 72:this.begin("string");break;case 73:this.popState();break;case 74:return"STR";case 75:this.begin("string_kv");break;case 76:return this.begin("string_kv_key"),"STR_KEY";case 77:this.popState(),this.begin("string_kv_value");break;case 78:return"STR_VALUE";case 79:this.popState(),this.popState();break;case 80:return"STR";case 81:return"LBRACE";case 82:return"RBRACE";case 83:return"SPACE";case 84:return"EOL";case 85:return 14}},"anonymous"),rules:[/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:title\s[^#\n;]+)/,/^(?:accDescription\s[^#\n;]+)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/,/^(?:%%[^\n]*(\r?\n)*)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:C4Context\b)/,/^(?:C4Container\b)/,/^(?:C4Component\b)/,/^(?:C4Dynamic\b)/,/^(?:C4Deployment\b)/,/^(?:Person_Ext\b)/,/^(?:Person\b)/,/^(?:SystemQueue_Ext\b)/,/^(?:SystemDb_Ext\b)/,/^(?:System_Ext\b)/,/^(?:SystemQueue\b)/,/^(?:SystemDb\b)/,/^(?:System\b)/,/^(?:Boundary\b)/,/^(?:Enterprise_Boundary\b)/,/^(?:System_Boundary\b)/,/^(?:ContainerQueue_Ext\b)/,/^(?:ContainerDb_Ext\b)/,/^(?:Container_Ext\b)/,/^(?:ContainerQueue\b)/,/^(?:ContainerDb\b)/,/^(?:Container\b)/,/^(?:Container_Boundary\b)/,/^(?:ComponentQueue_Ext\b)/,/^(?:ComponentDb_Ext\b)/,/^(?:Component_Ext\b)/,/^(?:ComponentQueue\b)/,/^(?:ComponentDb\b)/,/^(?:Component\b)/,/^(?:Deployment_Node\b)/,/^(?:Node\b)/,/^(?:Node_L\b)/,/^(?:Node_R\b)/,/^(?:Rel\b)/,/^(?:BiRel\b)/,/^(?:Rel_Up\b)/,/^(?:Rel_U\b)/,/^(?:Rel_Down\b)/,/^(?:Rel_D\ Line truncated
@@ -343,31 +343,31 @@ Expecting `+A.join(", ")+", got '"+(this.terminals_[x]||x)+"'":"Parse error on l
${n} ${n}
${t} ${t}
`},"getStyles"),th=mt((e,t)=>{void 0!==t&&(Jc[e]=t)},"addStylesForDiagram"),rh=eh}),hh={};OFe(hh,{clear:()=>fh,getAccDescription:()=>xh,getAccTitle:()=>yh,getDiagramTitle:()=>wh,setAccDescription:()=>vh,setAccTitle:()=>mh,setDiagramTitle:()=>bh});var uh,dh,ph,gh,fh,mh,yh,vh,xh,bh,wh,kh,Th,O,Eh,Ch,_h,Sh,Ah,Lh,Nh,Ih,Rh,Mh,Dh,Oh,Ph,Bh,$h,Fh,zh,Gh,Uh,qh,jh,Yh,Wh,Hh,Vh,Xh,Kh,Zh,Qh,Jh,eu,tu,ru,nu,iu,au,su,ou,lu,cu,hu,uu,du,pu,gu,fu,mu,yu,vu,xu,bu,wu,ku=b(()=>{Oc(),rn(),ph=dh=uh="",gh=mt(e=>lc(e,ar()),"sanitizeText"),fh=mt(()=>{dh=ph=uh=""},"clear"),mh=mt(e=>{uh=gh(e).replace(/^\s+/g,"")},"setAccTitle"),yh=mt(()=>uh,"getAccTitle"),vh=mt(e=>{ph=gh(e).replace(/\n\s+/g,` `},"getStyles"),th=mt((e,t)=>{void 0!==t&&(Jc[e]=t)},"addStylesForDiagram"),rh=eh}),hh={};PFe(hh,{clear:()=>fh,getAccDescription:()=>xh,getAccTitle:()=>yh,getDiagramTitle:()=>wh,setAccDescription:()=>vh,setAccTitle:()=>mh,setDiagramTitle:()=>bh});var uh,dh,ph,gh,fh,mh,yh,vh,xh,bh,wh,kh,Th,O,Eh,Ch,Sh,_h,Ah,Lh,Nh,Ih,Rh,Mh,Dh,Oh,Ph,Bh,$h,Fh,zh,Gh,Uh,qh,jh,Yh,Wh,Hh,Vh,Xh,Kh,Zh,Qh,Jh,eu,tu,ru,nu,iu,au,su,ou,lu,cu,hu,uu,du,pu,gu,fu,mu,yu,vu,xu,bu,wu,ku=b(()=>{Oc(),rn(),ph=dh=uh="",gh=mt(e=>lc(e,ar()),"sanitizeText"),fh=mt(()=>{dh=ph=uh=""},"clear"),mh=mt(e=>{uh=gh(e).replace(/^\s+/g,"")},"setAccTitle"),yh=mt(()=>uh,"getAccTitle"),vh=mt(e=>{ph=gh(e).replace(/\n\s+/g,`
`)},"setAccDescription"),xh=mt(()=>ph,"getAccDescription"),bh=mt(e=>{dh=gh(e)},"setDiagramTitle"),wh=mt(()=>dh,"getDiagramTitle")}),Tu=b(()=>{sh(),e(),rn(),Oc(),lh(),ch(),ku(),kh=D,Th=Ie,O=ar,Eh=ir,Ch=Vt,_h=mt(e=>lc(e,O()),"sanitizeText"),Sh=Qc,Ah=mt(()=>hh,"getCommonDb"),Lh={},Nh=mt((e,t,r)=>{Lh[e]&&kh.warn(`Diagram with id ${e} already registered. Overwriting.`),Lh[e]=t,r&&Yc(e,r),th(e,t.styles),t.injectUtils?.(kh,Th,O,_h,Sh,Ah(),()=>{})},"registerDiagram"),Ih=mt(e=>{if(e in Lh)return Lh[e];throw new Rh(e)},"getDiagram"),Rh=class extends Error{static{mt(this,"DiagramNotFoundError")}constructor(e){super(`Diagram ${e} not found.`)}}}),Eu=b(()=>{Tu(),Oc(),ku(),Mh=[],Dh=[""],Bh=[{alias:Oh="global",label:{text:"global"},type:{text:"global"},tags:null,link:null,parentBoundary:Ph=""}],Fh="",zh=!($h=[]),Gh=4,Uh=2,jh=mt(function(){return qh},"getC4Type"),Yh=mt(function(e){qh=lc(e,O())},"setC4Type"),Wh=mt(function(r,n,i,a,s,o,l,c,h){if(null!=r&&null!=n&&null!=i&&null!=a){let e={},t=$h.find(e=>e.from===n&&e.to===i);t?e=t:$h.push(e),e.type=r,e.from=n,e.to=i,e.label={text:a},null==s?e.techn={text:""}:"object"==typeof s?([r,a]=Object.entries(s)[0],e[r]={text:a}):e.techn={text:s},null==o?e.descr={text:""}:"object"==typeof o?([r,a]=Object.entries(o)[0],e[r]={text:a}):e.descr={text:o},"object"==typeof l?([s,r]=Object.entries(l)[0],e[s]=r):e.sprite=l,"object"==typeof c?([a,o]=Object.entries(c)[0],e[a]=o):e.tags=c,"object"==typeof h?([s,r]=Object.entries(h)[0],e[s]=r):e.link=h,e.wrap=fu()}},"addRel"),Hh=mt(function(r,n,i,a,s,o,l){if(null!==n&&null!==i){let e={},t=Mh.find(e=>e.alias===n);var c;t&&n===t.alias?e=t:(e.alias=n,Mh.push(e)),e.label=null==i?{text:""}:{text:i},null==a?e.descr={text:""}:"object"==typeof a?([i,c]=Object.entries(a)[0],e[i]={text:c}):e.descr={text:a},"object"==typeof s?([i,c]=Object.entries(s)[0],e[i]=c):e.sprite=s,"object"==typeof o?([a,i]=Object.entries(o)[0],e[a]=i):e.tags=o,"object"==typeof l?([c,s]=Object.entries(l)[0],e[c]=s):e.link=l,e.typeC4Shape={text:r},e.parentBoundary=Oh,e.wrap=fu()}},"addPersonOrSystem"),Vh=mt(function(r,n,i,a,s,o,l,c){if(null!==n&&null!==i){let e={},t=Mh.find(e=>e.alias===n);var h;t&&n===t.alias?e=t:(e.alias=n,Mh.push(e)),e.label=null==i?{text:""}:{text:i},null==a?e.techn={text:""}:"object"==typeof a?([i,h]=Object.entries(a)[0],e[i]={text:h}):e.techn={text:a},null==s?e.descr={text:""}:"object"==typeof s?([i,h]=Object.entries(s)[0],e[i]={text:h}):e.descr={text:s},"object"==typeof o?([a,i]=Object.entries(o)[0],e[a]=i):e.sprite=o,"object"==typeof l?([h,s]=Object.entries(l)[0],e[h]=s):e.tags=l,"object"==typeof c?([a,i]=Object.entries(c)[0],e[a]=i):e.link=c,e.wrap=fu(),e.typeC4Shape={text:r},e.parentBoundary=Oh}},"addContainer"),Xh=mt(function(r,n,i,a,s,o,l,c){if(null!==n&&null!==i){let e={},t=Mh.find(e=>e.alias===n);var h;t&&n===t.alias?e=t:(e.alias=n,Mh.push(e)),e.label=null==i?{text:""}:{text:i},null==a?e.techn={text:""}:"object"==typeof a?([i,h]=Object.entries(a)[0],e[i]={text:h}):e.techn={text:a},null==s?e.descr={text:""}:"object"==typeof s?([i,h]=Object.entries(s)[0],e[i]={text:h}):e.descr={text:s},"object"==typeof o?([a,i]=Object.entries(o)[0],e[a]=i):e.sprite=o,"object"==typeof l?([h,s]=Object.entries(l)[0],e[h]=s):e.tags=l,"object"==typeof c?([a,i]=Object.entries(c)[0],e[a]=i):e.link=c,e.wrap=fu(),e.typeC4Shape={text:r},e.parentBoundary=Oh}},"addComponent"),Kh=mt(function(r,n,i,a,s){if(null!==r&&null!==n){let e={},t=Bh.find(e=>e.alias===r);var o;t&&r===t.alias?e=t:(e.alias=r,Bh.push(e)),e.label=null==n?{text:""}:{text:n},null==i?e.type={text:"system"}:"object"==typeof i?([n,o]=Object.entries(i)[0],e[n]={text:o}):e.type={text:i},"object"==typeof a?([n,o]=Object.entries(a)[0],e[n]=o):e.tags=a,"object"==typeof s?([i,n]=Object.entries(s)[0],e[i]=n):e.link=s,e.parentBoundary=Oh,e.wrap=fu(),Ph=Oh,Oh=r,Dh.push(Ph)}},"addPersonOrSystemBoundary"),Zh=mt(function(r,n,i,a,s){if(null!==r&&null!==n){let e={},t=Bh.find(e=>e.alias===r);var o;t&&r===t.alias?e=t:(e.alias=r,Bh.push(e)),e.label=null==n?{text:""}:{text:n},null==i?e.type={text:"container"}:"object"==typeof i?([n,o]=Object.entries(i)[0],e[n]={text:o}):e.type={text:i},"object"==typeof a?([n,o]=Object.entries(a)[0],e[n]=o):e.tags=a,"object"==typeof s?([i,n]=Object.entries(s)[0],e[i]=n):e.link=s,e.parentBoundary=Oh,e.wrap=fu(),Ph=Oh,Oh=r,Dh.push(Ph)}},"addContainerBoundary"),Qh=mt(function(r,n,i,a,s,e,o,l){if(null!==n&&null!==i){let e={},t=Bh.find(e=>e.alias===n);var c;t&&n===t.alias?e=t:(e.alias=n,Bh.push(e)),e.label=null==i?{text:""}:{text:i},null==a?e.type={text:"node"}:"object"==typeof a?([i,c]=Object.entries(a)[0],e[i]={text:c}):e.type={text:a},null==s?e.descr={text:""}:"object"==typeof s?([i,c]=Object.entries(s)[0],e[i]={text:c}):e.descr={text:s},"object"==typeof o?([a,i]=Object.entries(o)[0],e[a]=i):e.tags=o,"object"==typeof l?([c,s]=Object.entries(l)[0],e[c]=s):e.link=l,e.nodeType=r,e.parentBoundary=Oh,e.wrap=fu(),Ph=Oh,Oh=n,Dh.push(Ph)}},"addDeploymentNode"),Jh=mt(function(){Oh=Ph,Dh.pop(),Ph=Dh.pop(),Dh.push(Ph)},"po Line truncated `)},"setAccDescription"),xh=mt(()=>ph,"getAccDescription"),bh=mt(e=>{dh=gh(e)},"setDiagramTitle"),wh=mt(()=>dh,"getDiagramTitle")}),Tu=b(()=>{sh(),e(),rn(),Oc(),lh(),ch(),ku(),kh=D,Th=Ie,O=ar,Eh=ir,Ch=Vt,Sh=mt(e=>lc(e,O()),"sanitizeText"),_h=Qc,Ah=mt(()=>hh,"getCommonDb"),Lh={},Nh=mt((e,t,r)=>{Lh[e]&&kh.warn(`Diagram with id ${e} already registered. Overwriting.`),Lh[e]=t,r&&Yc(e,r),th(e,t.styles),t.injectUtils?.(kh,Th,O,Sh,_h,Ah(),()=>{})},"registerDiagram"),Ih=mt(e=>{if(e in Lh)return Lh[e];throw new Rh(e)},"getDiagram"),Rh=class extends Error{static{mt(this,"DiagramNotFoundError")}constructor(e){super(`Diagram ${e} not found.`)}}}),Eu=b(()=>{Tu(),Oc(),ku(),Mh=[],Dh=[""],Bh=[{alias:Oh="global",label:{text:"global"},type:{text:"global"},tags:null,link:null,parentBoundary:Ph=""}],Fh="",zh=!($h=[]),Gh=4,Uh=2,jh=mt(function(){return qh},"getC4Type"),Yh=mt(function(e){qh=lc(e,O())},"setC4Type"),Wh=mt(function(r,n,i,a,s,o,l,c,h){if(null!=r&&null!=n&&null!=i&&null!=a){let e={},t=$h.find(e=>e.from===n&&e.to===i);t?e=t:$h.push(e),e.type=r,e.from=n,e.to=i,e.label={text:a},null==s?e.techn={text:""}:"object"==typeof s?([r,a]=Object.entries(s)[0],e[r]={text:a}):e.techn={text:s},null==o?e.descr={text:""}:"object"==typeof o?([r,a]=Object.entries(o)[0],e[r]={text:a}):e.descr={text:o},"object"==typeof l?([s,r]=Object.entries(l)[0],e[s]=r):e.sprite=l,"object"==typeof c?([a,o]=Object.entries(c)[0],e[a]=o):e.tags=c,"object"==typeof h?([s,r]=Object.entries(h)[0],e[s]=r):e.link=h,e.wrap=fu()}},"addRel"),Hh=mt(function(r,n,i,a,s,o,l){if(null!==n&&null!==i){let e={},t=Mh.find(e=>e.alias===n);var c;t&&n===t.alias?e=t:(e.alias=n,Mh.push(e)),e.label=null==i?{text:""}:{text:i},null==a?e.descr={text:""}:"object"==typeof a?([i,c]=Object.entries(a)[0],e[i]={text:c}):e.descr={text:a},"object"==typeof s?([i,c]=Object.entries(s)[0],e[i]=c):e.sprite=s,"object"==typeof o?([a,i]=Object.entries(o)[0],e[a]=i):e.tags=o,"object"==typeof l?([c,s]=Object.entries(l)[0],e[c]=s):e.link=l,e.typeC4Shape={text:r},e.parentBoundary=Oh,e.wrap=fu()}},"addPersonOrSystem"),Vh=mt(function(r,n,i,a,s,o,l,c){if(null!==n&&null!==i){let e={},t=Mh.find(e=>e.alias===n);var h;t&&n===t.alias?e=t:(e.alias=n,Mh.push(e)),e.label=null==i?{text:""}:{text:i},null==a?e.techn={text:""}:"object"==typeof a?([i,h]=Object.entries(a)[0],e[i]={text:h}):e.techn={text:a},null==s?e.descr={text:""}:"object"==typeof s?([i,h]=Object.entries(s)[0],e[i]={text:h}):e.descr={text:s},"object"==typeof o?([a,i]=Object.entries(o)[0],e[a]=i):e.sprite=o,"object"==typeof l?([h,s]=Object.entries(l)[0],e[h]=s):e.tags=l,"object"==typeof c?([a,i]=Object.entries(c)[0],e[a]=i):e.link=c,e.wrap=fu(),e.typeC4Shape={text:r},e.parentBoundary=Oh}},"addContainer"),Xh=mt(function(r,n,i,a,s,o,l,c){if(null!==n&&null!==i){let e={},t=Mh.find(e=>e.alias===n);var h;t&&n===t.alias?e=t:(e.alias=n,Mh.push(e)),e.label=null==i?{text:""}:{text:i},null==a?e.techn={text:""}:"object"==typeof a?([i,h]=Object.entries(a)[0],e[i]={text:h}):e.techn={text:a},null==s?e.descr={text:""}:"object"==typeof s?([i,h]=Object.entries(s)[0],e[i]={text:h}):e.descr={text:s},"object"==typeof o?([a,i]=Object.entries(o)[0],e[a]=i):e.sprite=o,"object"==typeof l?([h,s]=Object.entries(l)[0],e[h]=s):e.tags=l,"object"==typeof c?([a,i]=Object.entries(c)[0],e[a]=i):e.link=c,e.wrap=fu(),e.typeC4Shape={text:r},e.parentBoundary=Oh}},"addComponent"),Kh=mt(function(r,n,i,a,s){if(null!==r&&null!==n){let e={},t=Bh.find(e=>e.alias===r);var o;t&&r===t.alias?e=t:(e.alias=r,Bh.push(e)),e.label=null==n?{text:""}:{text:n},null==i?e.type={text:"system"}:"object"==typeof i?([n,o]=Object.entries(i)[0],e[n]={text:o}):e.type={text:i},"object"==typeof a?([n,o]=Object.entries(a)[0],e[n]=o):e.tags=a,"object"==typeof s?([i,n]=Object.entries(s)[0],e[i]=n):e.link=s,e.parentBoundary=Oh,e.wrap=fu(),Ph=Oh,Oh=r,Dh.push(Ph)}},"addPersonOrSystemBoundary"),Zh=mt(function(r,n,i,a,s){if(null!==r&&null!==n){let e={},t=Bh.find(e=>e.alias===r);var o;t&&r===t.alias?e=t:(e.alias=r,Bh.push(e)),e.label=null==n?{text:""}:{text:n},null==i?e.type={text:"container"}:"object"==typeof i?([n,o]=Object.entries(i)[0],e[n]={text:o}):e.type={text:i},"object"==typeof a?([n,o]=Object.entries(a)[0],e[n]=o):e.tags=a,"object"==typeof s?([i,n]=Object.entries(s)[0],e[i]=n):e.link=s,e.parentBoundary=Oh,e.wrap=fu(),Ph=Oh,Oh=r,Dh.push(Ph)}},"addContainerBoundary"),Qh=mt(function(r,n,i,a,s,e,o,l){if(null!==n&&null!==i){let e={},t=Bh.find(e=>e.alias===n);var c;t&&n===t.alias?e=t:(e.alias=n,Bh.push(e)),e.label=null==i?{text:""}:{text:i},null==a?e.type={text:"node"}:"object"==typeof a?([i,c]=Object.entries(a)[0],e[i]={text:c}):e.type={text:a},null==s?e.descr={text:""}:"object"==typeof s?([i,c]=Object.entries(s)[0],e[i]={text:c}):e.descr={text:s},"object"==typeof o?([a,i]=Object.entries(o)[0],e[a]=i):e.tags=o,"object"==typeof l?([c,s]=Object.entries(l)[0],e[c]=s):e.link=l,e.nodeType=r,e.parentBoundary=Oh,e.wrap=fu(),Ph=Oh,Oh=n,Dh.push(Ph)}},"addDeploymentNode"),Jh=mt(function(){Oh=Ph,Dh.pop(),Ph=Dh.pop(),Dh.push(Ph)},"po Line truncated
`,"ig");e=e.trim().replace(r,"").replace(/'/gm,'"'),D.debug(`Detecting diagram directive${null!==t?" type:"+t:""} based on the text:`+e);for(var n,i,a,s=[];null!==(n=Fc.exec(e));)n.index===Fc.lastIndex&&Fc.lastIndex++,(n&&!t||t&&n[1]?.match(t)||t&&n[2]?.match(t))&&(i=n[1]||n[2],a=n[3]?n[3].trim():n[4]?JSON.parse(n[4].trim()):null,s.push({type:i,args:a}));return 0===s.length?{type:e,args:null}:1===s.length?s[0]:s}catch(r){return D.error(`ERROR: ${r.message} - Unable to parse directive type: '${t}' based on the text: '${e}'`),{type:void 0,args:null}}},"detectDirective"),OC=mt(function(e){return e.replace(Fc,"")},"removeDirectives"),PC=mt(function(e,t){for(var[r,n]of t.entries())if(n.match(e))return r;return-1},"isSubstringInArray"),mt(fC,"interpolateToCurve"),mt(mC,"formatUrl"),BC=mt((t,...e)=>{let r=t.split("."),n=r.length-1,i=r[n],a=window;for(let e=0;e<n;e++)if(!(a=a[r[e]]))return void D.error(`Function name: ${t} not found in window`);a[i](...e)},"runFunc"),mt(yC,"distance"),mt(vC,"traverseEdge"),mt(xC,"calcLabelPosition"),$C=mt((e,t=2)=>(t=Math.pow(10,t),Math.round(e*t)/t),"roundNumber"),FC=mt((e,t)=>{let r,n=t;for(var i of e){if(r){var a=yC(i,r);if(0===a)return r;if(a<n)n-=a;else{if((a=n/a)<=0)return r;if(1<=a)return{x:i.x,y:i.y};if(0<a&&a<1)return{x:$C((1-a)*r.x+a*i.x,5),y:$C((1-a)*r.y+a*i.y,5)}}}r=i}throw new Error("Could not find a suitable point for the given distance")},"calculatePoint"),zC=mt((e,t,r)=>{D.info("our points "+JSON.stringify(t)),t[0]!==r&&(t=t.reverse());var r=FC(t,25),e=e?10:5,n=Math.atan2(t[0].y-r.y,t[0].x-r.x),i={x:0,y:0};return i.x=Math.sin(n)*e+(t[0].x+r.x)/2,i.y=-Math.cos(n)*e+(t[0].y+r.y)/2,i},"calcCardinalityPosition"),mt(bC,"calcTerminalLabelPosition"),mt(wC,"getStylesFromArray"),GC=0,UC=mt(()=>(GC++,"id-"+Math.random().toString(36).substr(2,12)+"-"+GC),"generateId"),mt(kC,"makeRandomHex"),qC=mt(e=>kC(e.length),"random"),jC=mt(function(){return{x:0,y:0,fill:void 0,anchor:"start",style:"#666",width:100,height:100,textMargin:0,rx:0,ry:0,valign:void 0,text:""}},"getTextObj"),YC=mt(function(e,t){var r=t.text.replace(L.lineBreakRegex," "),[,n]=JC(t.fontSize);return(e=e.append("text")).attr("x",t.x),e.attr("y",t.y),e.style("text-anchor",t.anchor),e.style("font-family",t.fontFamily),e.style("font-size",n),e.style("font-weight",t.fontWeight),e.attr("fill",t.fill),void 0!==t.class&&e.attr("class",t.class),(n=e.append("tspan")).attr("x",t.x+2*t.textMargin),n.attr("fill",t.fill),n.text(r),e},"drawSimpleText"),WC=RT((e,s,o)=>{if(!e||(o=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},o),L.lineBreakRegex.test(e)))return e;let l=e.split(" ").filter(Boolean),c=[],h="";return l.forEach((e,t)=>{var r,n,i=EC(e+" ",o),a=EC(h,o);h=s<i?({hyphenatedStrings:r,remainingWord:n}=HC(e,s,"-",o),c.push(h,...r),n):s<=a+i?(c.push(h),e):[h,e].filter(Boolean).join(" "),t+1===l.length&&c.push(h)}),c.filter(e=>""!==e).join(o.joinWith)},(e,t,r)=>""+e+t+r.fontSize+r.fontWeight+r.fontFamily+r.joinWith),HC=RT((e,n,i="-",a)=>{a=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},a);let s=[...e],o=[],l="";return s.forEach((e,t)=>{var r,e=""+l+e;l=EC(e,a)>=n?(t+=1,t=s.length===t,r=e+i,o.push(t?e:r),""):e}),{hyphenatedStrings:o,remainingWord:l}},(e,t,r="-",n)=>""+e+t+r+n.fontSize+n.fontWeight+n.fontFamily),mt(TC,"calculateTextHeight"),mt(EC,"calculateTextWidth"),VC=RT((e,t)=>{var{fontSize:t=12,fontFamily:r="Arial",fontWeight:n=400}=t;if(!e)return{width:0,height:0};var[,i]=JC(t),t=["sans-serif",r],a=e.split(L.lineBreakRegex),s=[];if(!(r=H("body")).remove)return{width:0,height:0,lineHeight:0};var o,l=r.append("svg");for(o of t){var c,h={width:0,height:0,lineHeight:0};for(c of a){var u=jC();if(u.text=c||NC,0===(u=((u=YC(l,u).style("font-size",i).style("font-weight",n).style("font-family",o))._groups||u)[0][0].getBBox()).width&&0===u.height)throw new Error("svg element not in render tree");h.width=Math.round(Math.max(h.width,u.width)),u=Math.round(u.height),h.height+=u,h.lineHeight=Math.round(Math.max(h.lineHeight,u))}s.push(h)}return l.remove(),s[isNaN(s[1].height)||isNaN(s[1].width)||isNaN(s[1].lineHeight)||s[0].height>s[1].height&&s[0].width>s[1].width&&s[0].lineHeight>s[1].lineHeight?0:1]},(e,t)=>""+e+t.fontSize+t.fontWeight+t.fontFamily),XC=class{constructor(e=!1,t){this.count=0,this.count=t?t.length:0,this.next=e?()=>this.count++:()=>Date.now()}static{mt(this,"InitIDGenerator")}},ZC=mt(function(e){return KC=KC||document.createElement("div"),e=escape(e).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),KC.innerHTML=e,unescape(KC.textContent)},"entityDecode"),mt(CC,"isDetailedError"),QC=mt((e,t,r,n)=>{var i;n&&(i=e.node()?.getBBox())&&e.append("text").text(n).attr("text-anchor","middle").attr("x",i.x+i.width/2).attr("y",-r).attr("class",t)},"insertTitle"),JC=mt(e=>{var t;return"number"==typeof e?[e,e+"px"]:(t=parseInt(e??"",10),Number.isNaN(t)?[void 0,void 0]:e===String(t)?[t,e+"px"]:[t,e])},"parseFontSize"),mt(_C,"cleanAndMerge"),e_={assignWithDepth:Ae,wrapL Line truncated `,"ig");e=e.trim().replace(r,"").replace(/'/gm,'"'),D.debug(`Detecting diagram directive${null!==t?" type:"+t:""} based on the text:`+e);for(var n,i,a,s=[];null!==(n=Fc.exec(e));)n.index===Fc.lastIndex&&Fc.lastIndex++,(n&&!t||t&&n[1]?.match(t)||t&&n[2]?.match(t))&&(i=n[1]||n[2],a=n[3]?n[3].trim():n[4]?JSON.parse(n[4].trim()):null,s.push({type:i,args:a}));return 0===s.length?{type:e,args:null}:1===s.length?s[0]:s}catch(r){return D.error(`ERROR: ${r.message} - Unable to parse directive type: '${t}' based on the text: '${e}'`),{type:void 0,args:null}}},"detectDirective"),OC=mt(function(e){return e.replace(Fc,"")},"removeDirectives"),PC=mt(function(e,t){for(var[r,n]of t.entries())if(n.match(e))return r;return-1},"isSubstringInArray"),mt(fC,"interpolateToCurve"),mt(mC,"formatUrl"),BC=mt((t,...e)=>{let r=t.split("."),n=r.length-1,i=r[n],a=window;for(let e=0;e<n;e++)if(!(a=a[r[e]]))return void D.error(`Function name: ${t} not found in window`);a[i](...e)},"runFunc"),mt(yC,"distance"),mt(vC,"traverseEdge"),mt(xC,"calcLabelPosition"),$C=mt((e,t=2)=>(t=Math.pow(10,t),Math.round(e*t)/t),"roundNumber"),FC=mt((e,t)=>{let r,n=t;for(var i of e){if(r){var a=yC(i,r);if(0===a)return r;if(a<n)n-=a;else{if((a=n/a)<=0)return r;if(1<=a)return{x:i.x,y:i.y};if(0<a&&a<1)return{x:$C((1-a)*r.x+a*i.x,5),y:$C((1-a)*r.y+a*i.y,5)}}}r=i}throw new Error("Could not find a suitable point for the given distance")},"calculatePoint"),zC=mt((e,t,r)=>{D.info("our points "+JSON.stringify(t)),t[0]!==r&&(t=t.reverse());var r=FC(t,25),e=e?10:5,n=Math.atan2(t[0].y-r.y,t[0].x-r.x),i={x:0,y:0};return i.x=Math.sin(n)*e+(t[0].x+r.x)/2,i.y=-Math.cos(n)*e+(t[0].y+r.y)/2,i},"calcCardinalityPosition"),mt(bC,"calcTerminalLabelPosition"),mt(wC,"getStylesFromArray"),GC=0,UC=mt(()=>(GC++,"id-"+Math.random().toString(36).substr(2,12)+"-"+GC),"generateId"),mt(kC,"makeRandomHex"),qC=mt(e=>kC(e.length),"random"),jC=mt(function(){return{x:0,y:0,fill:void 0,anchor:"start",style:"#666",width:100,height:100,textMargin:0,rx:0,ry:0,valign:void 0,text:""}},"getTextObj"),YC=mt(function(e,t){var r=t.text.replace(N.lineBreakRegex," "),[,n]=JC(t.fontSize);return(e=e.append("text")).attr("x",t.x),e.attr("y",t.y),e.style("text-anchor",t.anchor),e.style("font-family",t.fontFamily),e.style("font-size",n),e.style("font-weight",t.fontWeight),e.attr("fill",t.fill),void 0!==t.class&&e.attr("class",t.class),(n=e.append("tspan")).attr("x",t.x+2*t.textMargin),n.attr("fill",t.fill),n.text(r),e},"drawSimpleText"),WC=RT((e,s,o)=>{if(!e||(o=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},o),N.lineBreakRegex.test(e)))return e;let l=e.split(" ").filter(Boolean),c=[],h="";return l.forEach((e,t)=>{var r,n,i=EC(e+" ",o),a=EC(h,o);h=s<i?({hyphenatedStrings:r,remainingWord:n}=HC(e,s,"-",o),c.push(h,...r),n):s<=a+i?(c.push(h),e):[h,e].filter(Boolean).join(" "),t+1===l.length&&c.push(h)}),c.filter(e=>""!==e).join(o.joinWith)},(e,t,r)=>""+e+t+r.fontSize+r.fontWeight+r.fontFamily+r.joinWith),HC=RT((e,n,i="-",a)=>{a=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},a);let s=[...e],o=[],l="";return s.forEach((e,t)=>{var r,e=""+l+e;l=EC(e,a)>=n?(t+=1,t=s.length===t,r=e+i,o.push(t?e:r),""):e}),{hyphenatedStrings:o,remainingWord:l}},(e,t,r="-",n)=>""+e+t+r+n.fontSize+n.fontWeight+n.fontFamily),mt(TC,"calculateTextHeight"),mt(EC,"calculateTextWidth"),VC=RT((e,t)=>{var{fontSize:t=12,fontFamily:r="Arial",fontWeight:n=400}=t;if(!e)return{width:0,height:0};var[,i]=JC(t),t=["sans-serif",r],a=e.split(N.lineBreakRegex),s=[];if(!(r=H("body")).remove)return{width:0,height:0,lineHeight:0};var o,l=r.append("svg");for(o of t){var c,h={width:0,height:0,lineHeight:0};for(c of a){var u=jC();if(u.text=c||NC,0===(u=((u=YC(l,u).style("font-size",i).style("font-weight",n).style("font-family",o))._groups||u)[0][0].getBBox()).width&&0===u.height)throw new Error("svg element not in render tree");h.width=Math.round(Math.max(h.width,u.width)),u=Math.round(u.height),h.height+=u,h.lineHeight=Math.round(Math.max(h.lineHeight,u))}s.push(h)}return l.remove(),s[isNaN(s[1].height)||isNaN(s[1].width)||isNaN(s[1].lineHeight)||s[0].height>s[1].height&&s[0].width>s[1].width&&s[0].lineHeight>s[1].lineHeight?0:1]},(e,t)=>""+e+t.fontSize+t.fontWeight+t.fontFamily),XC=class{constructor(e=!1,t){this.count=0,this.count=t?t.length:0,this.next=e?()=>this.count++:()=>Date.now()}static{mt(this,"InitIDGenerator")}},ZC=mt(function(e){return KC=KC||document.createElement("div"),e=escape(e).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),KC.innerHTML=e,unescape(KC.textContent)},"entityDecode"),mt(CC,"isDetailedError"),QC=mt((e,t,r,n)=>{var i;n&&(i=e.node()?.getBBox())&&e.append("text").text(n).attr("text-anchor","middle").attr("x",i.x+i.width/2).attr("y",-r).attr("class",t)},"insertTitle"),JC=mt(e=>{var t;return"number"==typeof e?[e,e+"px"]:(t=parseInt(e??"",10),Number.isNaN(t)?[void 0,void 0]:e===String(t)?[t,e+"px"]:[t,e])},"parseFontSize"),mt(SC,"cleanAndMerge"),eS={assignWithDepth:Ae,wrapL Line truncated
stroke: ${e.personBorder}; stroke: ${e.personBorder};
fill: ${e.personBkg}; fill: ${e.personBkg};
} }
`,"getStyles"),__=C_}),L_={};OFe(L_,{diagram:()=>N_});var N_,I_=b(()=>{oh(),Eu(),S_(),A_(),N_={parser:Vc,db:wu,renderer:E_,styles:__,init:mt(({c4:e,wrap:t})=>{E_.setConf(e),wu.setWrap(t)},"init")}});function R_(e){return"u"<typeof e||null===e}function M_(e){return"object"==typeof e&&null!==e}function D_(e){return Array.isArray(e)?e:R_(e)?[]:[e]}function O_(e,t){var r,n,i,a;if(t)for(r=0,n=(a=Object.keys(t)).length;r<n;r+=1)e[i=a[r]]=t[i];return e}function P_(e,t){for(var r="",n=0;n<t;n+=1)r+=e;return r}function B_(e){return 0===e&&Number.NEGATIVE_INFINITY===1/e}function $_(e,t){var r="",n=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(r+='in "'+e.mark.name+'" '),r+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(r+=` `,"getStyles"),SS=CS}),LS={};PFe(LS,{diagram:()=>NS});var NS,IS=b(()=>{oh(),Eu(),_S(),AS(),NS={parser:Vc,db:wu,renderer:ES,styles:SS,init:mt(({c4:e,wrap:t})=>{ES.setConf(e),wu.setWrap(t)},"init")}});function RS(e){return"u"<typeof e||null===e}function MS(e){return"object"==typeof e&&null!==e}function DS(e){return Array.isArray(e)?e:RS(e)?[]:[e]}function OS(e,t){var r,n,i,a;if(t)for(r=0,n=(a=Object.keys(t)).length;r<n;r+=1)e[i=a[r]]=t[i];return e}function PS(e,t){for(var r="",n=0;n<t;n+=1)r+=e;return r}function BS(e){return 0===e&&Number.NEGATIVE_INFINITY===1/e}function $S(e,t){var r="",n=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(r+='in "'+e.mark.name+'" '),r+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(r+=`
`+e.mark.snippet),n+" "+r):n}function F_(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=$_(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack||""}function z_(e,t,r,n,i){var a="",s="";return(i=Math.floor(i/2)-1)<n-t&&(t=n-i+(a=" ... ").length),i<r-n&&(r=n+i-(s=" ...").length),{str:a+e.slice(t,r).replace(/\t/g,"→")+s,pos:n-t+a.length}}function G_(e,t){return BA.repeat(" ",t-e.length)+e}function U_(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),"number"!=typeof t.indent&&(t.indent=1),"number"!=typeof t.linesBefore&&(t.linesBefore=3),"number"!=typeof t.linesAfter&&(t.linesAfter=2);for(var r,n=/\r?\n|\r|\0/g,i=[0],a=[],s=-1;r=n.exec(e.buffer);)a.push(r.index),i.push(r.index+r[0].length),e.position<=r.index&&s<0&&(s=i.length-2);s<0&&(s=i.length-1);for(var o,l="",c=Math.min(e.line+t.linesAfter,a.length).toString().length,h=t.maxLength-(t.indent+c+3),u=1;u<=t.linesBefore&&!(s-u<0);u++)o=z_(e.buffer,i[s-u],a[s-u],e.position-(i[s]-i[s-u]),h),l=BA.repeat(" ",t.indent)+G_((e.line-u+1).toString(),c)+" | "+o.str+` `+e.mark.snippet),n+" "+r):n}function FS(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=$S(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack||""}function zS(e,t,r,n,i){var a="",s="";return(i=Math.floor(i/2)-1)<n-t&&(t=n-i+(a=" ... ").length),i<r-n&&(r=n+i-(s=" ...").length),{str:a+e.slice(t,r).replace(/\t/g,"→")+s,pos:n-t+a.length}}function GS(e,t){return BA.repeat(" ",t-e.length)+e}function US(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),"number"!=typeof t.indent&&(t.indent=1),"number"!=typeof t.linesBefore&&(t.linesBefore=3),"number"!=typeof t.linesAfter&&(t.linesAfter=2);for(var r,n=/\r?\n|\r|\0/g,i=[0],a=[],s=-1;r=n.exec(e.buffer);)a.push(r.index),i.push(r.index+r[0].length),e.position<=r.index&&s<0&&(s=i.length-2);s<0&&(s=i.length-1);for(var o,l="",c=Math.min(e.line+t.linesAfter,a.length).toString().length,h=t.maxLength-(t.indent+c+3),u=1;u<=t.linesBefore&&!(s-u<0);u++)o=zS(e.buffer,i[s-u],a[s-u],e.position-(i[s]-i[s-u]),h),l=BA.repeat(" ",t.indent)+GS((e.line-u+1).toString(),c)+" | "+o.str+`
`+l;for(o=z_(e.buffer,i[s],a[s],e.position,h),l=(l+=BA.repeat(" ",t.indent)+G_((e.line+1).toString(),c)+" | "+o.str+` `+l;for(o=zS(e.buffer,i[s],a[s],e.position,h),l=(l+=BA.repeat(" ",t.indent)+GS((e.line+1).toString(),c)+" | "+o.str+`
`)+BA.repeat("-",t.indent+c+3+o.pos)+`^ `)+BA.repeat("-",t.indent+c+3+o.pos)+`^
`,u=1;u<=t.linesAfter&&!(a.length<=s+u);u++)o=z_(e.buffer,i[s+u],a[s+u],e.position-(i[s]-i[s+u]),h),l+=BA.repeat(" ",t.indent)+G_((e.line+u+1).toString(),c)+" | "+o.str+` `,u=1;u<=t.linesAfter&&!(a.length<=s+u);u++)o=zS(e.buffer,i[s+u],a[s+u],e.position-(i[s]-i[s+u]),h),l+=BA.repeat(" ",t.indent)+GS((e.line+u+1).toString(),c)+" | "+o.str+`
`;return l.replace(/\n$/,"")}function q_(e){var r={};return null!==e&&Object.keys(e).forEach(function(t){e[t].forEach(function(e){r[String(e)]=t})}),r}function j_(t,e){if(e=e||{},Object.keys(e).forEach(function(e){if(-1===zA.indexOf(e))throw new $A('Unknown option "'+e+'" is met in definition of "'+t+'" YAML type.')}),this.options=e,this.tag=t,this.kind=e.kind||null,this.resolve=e.resolve||function(){return!0},this.construct=e.construct||function(e){return e},this.instanceOf=e.instanceOf||null,this.predicate=e.predicate||null,this.represent=e.represent||null,this.representName=e.representName||null,this.defaultStyle=e.defaultStyle||null,this.multi=e.multi||!1,this.styleAliases=q_(e.styleAliases||null),-1===GA.indexOf(this.kind))throw new $A('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}function Y_(e,t){var i=[];return e[t].forEach(function(r){var n=i.length;i.forEach(function(e,t){e.tag===r.tag&&e.kind===r.kind&&e.multi===r.multi&&(n=t)}),i[n]=r}),i}function W_(){var e,t,r={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function n(e){e.multi?(r.multi[e.kind].push(e),r.multi.fallback.push(e)):r[e.kind][e.tag]=r.fallback[e.tag]=e}for(mt(n,"collectType"),e=0,t=arguments.length;e<t;e+=1)arguments[e].forEach(n);return r}function H_(e){return this.extend(e)}function V_(e){var t;return null===e||1===(t=e.length)&&"~"===e||4===t&&("null"===e||"Null"===e||"NULL"===e)}function X_(){return null}function K_(e){return null===e}function Z_(e){var t;return null!==e&&(4===(t=e.length)&&("true"===e||"True"===e||"TRUE"===e)||5===t&&("false"===e||"False"===e||"FALSE"===e))}function Q_(e){return"true"===e||"True"===e||"TRUE"===e}function J_(e){return"[object Boolean]"===Object.prototype.toString.call(e)}function eS(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function tS(e){return 48<=e&&e<=55}function rS(e){return 48<=e&&e<=57}function nS(e){if(null===e)return!1;var t,r=e.length,n=0,i=!1;if(!r)return!1;if("0"===(t="-"!==(t=e[n])&&"+"!==t?t:e[++n])){if(n+1===r)return!0;if("b"===(t=e[++n])){for(n++;n<r;n++)if("_"!==(t=e[n])){if("0"!==t&&"1"!==t)return!1;i=!0}return i&&"_"!==t}if("x"===t){for(n++;n<r;n++)if("_"!==(t=e[n])){if(!eS(e.charCodeAt(n)))return!1;i=!0}return i&&"_"!==t}if("o"===t){for(n++;n<r;n++)if("_"!==(t=e[n])){if(!tS(e.charCodeAt(n)))return!1;i=!0}return i&&"_"!==t}}if("_"===t)return!1;for(;n<r;n++)if("_"!==(t=e[n])){if(!rS(e.charCodeAt(n)))return!1;i=!0}return!(!i||"_"===t)}function iS(e){var t,r=1;if("-"!==(t=(e=-1!==e.indexOf("_")?e.replace(/_/g,""):e)[0])&&"+"!==t||("-"===t&&(r=-1),t=(e=e.slice(1))[0]),"0"===e)return 0;if("0"===t){if("b"===e[1])return r*parseInt(e.slice(2),2);if("x"===e[1])return r*parseInt(e.slice(2),16);if("o"===e[1])return r*parseInt(e.slice(2),8)}return r*parseInt(e,10)}function aS(e){return"[object Number]"===Object.prototype.toString.call(e)&&e%1==0&&!BA.isNegativeZero(e)}function sS(e){return!(null===e||!qA.test(e)||"_"===e[e.length-1])}function oS(e){var t="-"===(e=e.replace(/_/g,"").toLowerCase())[0]?-1:1;return".inf"===(e=0<="+-".indexOf(e[0])?e.slice(1):e)?1==t?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:".nan"===e?NaN:t*parseFloat(e,10)}function lS(e,t){if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(BA.isNegativeZero(e))return"-0.0";return t=e.toString(10),jA.test(t)?t.replace("e",".e"):t}function cS(e){return"[object Number]"===Object.prototype.toString.call(e)&&(e%1!=0||BA.isNegativeZero(e))}function hS(e){return null!==e&&(null!==WA.exec(e)||null!==HA.exec(e))}function uS(e){var t,r,n,i,a,s=0,o=null,l=WA.exec(e);if(null===(l=null===l?HA.exec(e):l))throw new Error("Date resolve error");if(e=+l[1],t=+l[2]-1,r=+l[3],!l[4])return new Date(Date.UTC(e,t,r));if(n=+l[4],i=+l[5],a=+l[6],l[7]){for(s=l[7].slice(0,3);s.length<3;)s+="0";s=+s}return l[9]&&(o=6e4*(60*+l[10]+ +(l[11]||0)),"-"===l[9])&&(o=-o),l=new Date(Date.UTC(e,t,r,n,i,a,s)),o&&l.setTime(l.getTime()-o),l}function dS(e){return e.toISOString()}function pS(e){return"<<"===e||null===e}function gS(e){if(null===e)return!1;for(var t,r=0,n=e.length,i=KA,a=0;a<n;a++)if(!(64<(t=i.indexOf(e.charAt(a))))){if(t<0)return!1;r+=6}return r%8==0}function fS(e){for(var t=e.replace(/[\r\n=]/g,""),r=t.length,n=KA,i=0,a=[],s=0;s<r;s++)s%4==0&&s&&(a.push(i>>16&255),a.push(i>>8&255),a.push(255&i)),i=i<<6|n.indexOf(t.charAt(s));return 0==(e=r%4*6)?(a.push(i>>16&255),a.push(i>>8&255),a.push(255&i)):18==e?(a.push(i>>10&255),a.push(i>>2&255)):12==e&&a.push(i>>4&255),new Uint8Array(a)}function mS(e){for(var t,r="",n=0,i=e.length,a=KA,s=0;s<i;s++)s%3==0&&s&&(r=(r=(r=(r+=a[n>>18&63])+a[n>>12&63])+a[n>>6&63])+a[63&n]),n=(n<<8)+e[s];retur Line truncated `;return l.replace(/\n$/,"")}function qS(e){var r={};return null!==e&&Object.keys(e).forEach(function(t){e[t].forEach(function(e){r[String(e)]=t})}),r}function jS(t,e){if(e=e||{},Object.keys(e).forEach(function(e){if(-1===zA.indexOf(e))throw new $A('Unknown option "'+e+'" is met in definition of "'+t+'" YAML type.')}),this.options=e,this.tag=t,this.kind=e.kind||null,this.resolve=e.resolve||function(){return!0},this.construct=e.construct||function(e){return e},this.instanceOf=e.instanceOf||null,this.predicate=e.predicate||null,this.represent=e.represent||null,this.representName=e.representName||null,this.defaultStyle=e.defaultStyle||null,this.multi=e.multi||!1,this.styleAliases=qS(e.styleAliases||null),-1===GA.indexOf(this.kind))throw new $A('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}function YS(e,t){var i=[];return e[t].forEach(function(r){var n=i.length;i.forEach(function(e,t){e.tag===r.tag&&e.kind===r.kind&&e.multi===r.multi&&(n=t)}),i[n]=r}),i}function WS(){var e,t,r={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function n(e){e.multi?(r.multi[e.kind].push(e),r.multi.fallback.push(e)):r[e.kind][e.tag]=r.fallback[e.tag]=e}for(mt(n,"collectType"),e=0,t=arguments.length;e<t;e+=1)arguments[e].forEach(n);return r}function HS(e){return this.extend(e)}function VS(e){var t;return null===e||1===(t=e.length)&&"~"===e||4===t&&("null"===e||"Null"===e||"NULL"===e)}function XS(){return null}function KS(e){return null===e}function ZS(e){var t;return null!==e&&(4===(t=e.length)&&("true"===e||"True"===e||"TRUE"===e)||5===t&&("false"===e||"False"===e||"FALSE"===e))}function QS(e){return"true"===e||"True"===e||"TRUE"===e}function JS(e){return"[object Boolean]"===Object.prototype.toString.call(e)}function e_(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function t_(e){return 48<=e&&e<=55}function r_(e){return 48<=e&&e<=57}function n_(e){if(null===e)return!1;var t,r=e.length,n=0,i=!1;if(!r)return!1;if("0"===(t="-"!==(t=e[n])&&"+"!==t?t:e[++n])){if(n+1===r)return!0;if("b"===(t=e[++n])){for(n++;n<r;n++)if("_"!==(t=e[n])){if("0"!==t&&"1"!==t)return!1;i=!0}return i&&"_"!==t}if("x"===t){for(n++;n<r;n++)if("_"!==(t=e[n])){if(!e_(e.charCodeAt(n)))return!1;i=!0}return i&&"_"!==t}if("o"===t){for(n++;n<r;n++)if("_"!==(t=e[n])){if(!t_(e.charCodeAt(n)))return!1;i=!0}return i&&"_"!==t}}if("_"===t)return!1;for(;n<r;n++)if("_"!==(t=e[n])){if(!r_(e.charCodeAt(n)))return!1;i=!0}return!(!i||"_"===t)}function i_(e){var t,r=1;if("-"!==(t=(e=-1!==e.indexOf("_")?e.replace(/_/g,""):e)[0])&&"+"!==t||("-"===t&&(r=-1),t=(e=e.slice(1))[0]),"0"===e)return 0;if("0"===t){if("b"===e[1])return r*parseInt(e.slice(2),2);if("x"===e[1])return r*parseInt(e.slice(2),16);if("o"===e[1])return r*parseInt(e.slice(2),8)}return r*parseInt(e,10)}function a_(e){return"[object Number]"===Object.prototype.toString.call(e)&&e%1==0&&!BA.isNegativeZero(e)}function s_(e){return!(null===e||!qA.test(e)||"_"===e[e.length-1])}function o_(e){var t="-"===(e=e.replace(/_/g,"").toLowerCase())[0]?-1:1;return".inf"===(e=0<="+-".indexOf(e[0])?e.slice(1):e)?1==t?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:".nan"===e?NaN:t*parseFloat(e,10)}function l_(e,t){if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(BA.isNegativeZero(e))return"-0.0";return t=e.toString(10),jA.test(t)?t.replace("e",".e"):t}function c_(e){return"[object Number]"===Object.prototype.toString.call(e)&&(e%1!=0||BA.isNegativeZero(e))}function h_(e){return null!==e&&(null!==WA.exec(e)||null!==HA.exec(e))}function u_(e){var t,r,n,i,a,s=0,o=null,l=WA.exec(e);if(null===(l=null===l?HA.exec(e):l))throw new Error("Date resolve error");if(e=+l[1],t=+l[2]-1,r=+l[3],!l[4])return new Date(Date.UTC(e,t,r));if(n=+l[4],i=+l[5],a=+l[6],l[7]){for(s=l[7].slice(0,3);s.length<3;)s+="0";s=+s}return l[9]&&(o=6e4*(60*+l[10]+ +(l[11]||0)),"-"===l[9])&&(o=-o),l=new Date(Date.UTC(e,t,r,n,i,a,s)),o&&l.setTime(l.getTime()-o),l}function d_(e){return e.toISOString()}function p_(e){return"<<"===e||null===e}function g_(e){if(null===e)return!1;for(var t,r=0,n=e.length,i=KA,a=0;a<n;a++)if(!(64<(t=i.indexOf(e.charAt(a))))){if(t<0)return!1;r+=6}return r%8==0}function f_(e){for(var t=e.replace(/[\r\n=]/g,""),r=t.length,n=KA,i=0,a=[],s=0;s<r;s++)s%4==0&&s&&(a.push(i>>16&255),a.push(i>>8&255),a.push(255&i)),i=i<<6|n.indexOf(t.charAt(s));return 0==(e=r%4*6)?(a.push(i>>16&255),a.push(i>>8&255),a.push(255&i)):18==e?(a.push(i>>10&255),a.push(i>>2&255)):12==e&&a.push(i>>4&255),new Uint8Array(a)}function m_(e){for(var t,r="",n=0,i=e.length,a=KA,s=0;s<i;s++)s%3==0&&s&&(r=(r=(r=(r+=a[n>>18&63])+a[n>>12&63])+a[n>>6&63])+a[63&n]),n=(n<<8)+e[s];retur Line truncated
`:118===e?"\v":102===e?"\f":114===e?"\r":101===e?"":32===e?" ":34===e?'"':47===e?"/":92===e?"\\":78===e?"…":95===e?" ":76===e?"\u2028":80===e?"\u2029":""}function MS(e){return e<=65535?String.fromCharCode(e):String.fromCharCode(55296+(e-65536>>10),56320+(e-65536&1023))}function DS(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||a9,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function OS(e,t){return(e={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart}).snippet=FA(e),new $A(t,e)}function PS(e,t){throw OS(e,t)}function BS(e,t){e.onWarning&&e.onWarning.call(null,OS(e,t))}function $S(e,t,r,n){var i,a,s,o;if(t<r){if(o=e.input.slice(t,r),n)for(i=0,a=o.length;i<a;i+=1)9===(s=o.charCodeAt(i))||32<=s&&s<=1114111||PS(e,"expected valid JSON character");else g9.test(o)&&PS(e,"the stream contains non-printable characters");e.result+=o}}function FS(e,t,r,n){var i,a,s,o;for(BA.isObject(r)||PS(e,"cannot merge mappings; the provided source object is unacceptable"),s=0,o=(i=Object.keys(r)).length;s<o;s+=1)a=i[s],s9.call(t,a)||(t[a]=r[a],n[a]=!0)}function zS(e,t,r,n,i,a,s,o,l){var c,h;if(Array.isArray(i))for(c=0,h=(i=Array.prototype.slice.call(i)).length;c<h;c+=1)Array.isArray(i[c])&&PS(e,"nested arrays are not supported inside keys"),"object"==typeof i&&"[object Object]"===ES(i[c])&&(i[c]="[object Object]");if("object"==typeof i&&"[object Object]"===ES(i)&&(i="[object Object]"),i=String(i),null===t&&(t={}),"tag:yaml.org,2002:merge"===n)if(Array.isArray(a))for(c=0,h=a.length;c<h;c+=1)FS(e,t,a[c],r);else FS(e,t,a,r);else e.json||s9.call(r,i)||!s9.call(t,i)||(e.line=s||e.line,e.lineStart=o||e.lineStart,e.position=l||e.position,PS(e,"duplicated mapping key")),"__proto__"===i?Object.defineProperty(t,i,{configurable:!0,enumerable:!0,writable:!0,value:a}):t[i]=a,delete r[i];return t}function GS(e){var t=e.input.charCodeAt(e.position);10===t?e.position++:13===t?(e.position++,10===e.input.charCodeAt(e.position)&&e.position++):PS(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function US(e,t,r){for(var n=0,i=e.input.charCodeAt(e.position);0!==i;){for(;_S(i);)9===i&&-1===e.firstTabInLine&&(e.firstTabInLine=e.position),i=e.input.charCodeAt(++e.position);if(t&&35===i)for(;10!==(i=e.input.charCodeAt(++e.position))&&13!==i&&0!==i;);if(!CS(i))break;for(GS(e),i=e.input.charCodeAt(e.position),n++,e.lineIndent=0;32===i;)e.lineIndent++,i=e.input.charCodeAt(++e.position)}return-1!==r&&0!==n&&e.lineIndent<r&&BS(e,"deficient indentation"),n}function qS(e){var t=e.position,r=e.input.charCodeAt(t);return!(45!==r&&46!==r||r!==e.input.charCodeAt(t+1)||r!==e.input.charCodeAt(t+2)||0!==(r=e.input.charCodeAt(t+=3))&&!SS(r))}function jS(e,t){1===t?e.result+=" ":1<t&&(e.result+=BA.repeat(` `:118===e?"\v":102===e?"\f":114===e?"\r":101===e?"":32===e?" ":34===e?'"':47===e?"/":92===e?"\\":78===e?"…":95===e?" ":76===e?"\u2028":80===e?"\u2029":""}function M_(e){return e<=65535?String.fromCharCode(e):String.fromCharCode(55296+(e-65536>>10),56320+(e-65536&1023))}function D_(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||a9,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function O_(e,t){return(e={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart}).snippet=FA(e),new $A(t,e)}function P_(e,t){throw O_(e,t)}function B_(e,t){e.onWarning&&e.onWarning.call(null,O_(e,t))}function $_(e,t,r,n){var i,a,s,o;if(t<r){if(o=e.input.slice(t,r),n)for(i=0,a=o.length;i<a;i+=1)9===(s=o.charCodeAt(i))||32<=s&&s<=1114111||P_(e,"expected valid JSON character");else g9.test(o)&&P_(e,"the stream contains non-printable characters");e.result+=o}}function F_(e,t,r,n){var i,a,s,o;for(BA.isObject(r)||P_(e,"cannot merge mappings; the provided source object is unacceptable"),s=0,o=(i=Object.keys(r)).length;s<o;s+=1)a=i[s],s9.call(t,a)||(t[a]=r[a],n[a]=!0)}function z_(e,t,r,n,i,a,s,o,l){var c,h;if(Array.isArray(i))for(c=0,h=(i=Array.prototype.slice.call(i)).length;c<h;c+=1)Array.isArray(i[c])&&P_(e,"nested arrays are not supported inside keys"),"object"==typeof i&&"[object Object]"===E_(i[c])&&(i[c]="[object Object]");if("object"==typeof i&&"[object Object]"===E_(i)&&(i="[object Object]"),i=String(i),null===t&&(t={}),"tag:yaml.org,2002:merge"===n)if(Array.isArray(a))for(c=0,h=a.length;c<h;c+=1)F_(e,t,a[c],r);else F_(e,t,a,r);else e.json||s9.call(r,i)||!s9.call(t,i)||(e.line=s||e.line,e.lineStart=o||e.lineStart,e.position=l||e.position,P_(e,"duplicated mapping key")),"__proto__"===i?Object.defineProperty(t,i,{configurable:!0,enumerable:!0,writable:!0,value:a}):t[i]=a,delete r[i];return t}function G_(e){var t=e.input.charCodeAt(e.position);10===t?e.position++:13===t?(e.position++,10===e.input.charCodeAt(e.position)&&e.position++):P_(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function U_(e,t,r){for(var n=0,i=e.input.charCodeAt(e.position);0!==i;){for(;S_(i);)9===i&&-1===e.firstTabInLine&&(e.firstTabInLine=e.position),i=e.input.charCodeAt(++e.position);if(t&&35===i)for(;10!==(i=e.input.charCodeAt(++e.position))&&13!==i&&0!==i;);if(!C_(i))break;for(G_(e),i=e.input.charCodeAt(e.position),n++,e.lineIndent=0;32===i;)e.lineIndent++,i=e.input.charCodeAt(++e.position)}return-1!==r&&0!==n&&e.lineIndent<r&&B_(e,"deficient indentation"),n}function q_(e){var t=e.position,r=e.input.charCodeAt(t);return!(45!==r&&46!==r||r!==e.input.charCodeAt(t+1)||r!==e.input.charCodeAt(t+2)||0!==(r=e.input.charCodeAt(t+=3))&&!__(r))}function j_(e,t){1===t?e.result+=" ":1<t&&(e.result+=BA.repeat(`
`,t-1))}function YS(e,t,r){var n,i,a,s,o,l,c,h=e.kind,u=e.result,d=e.input.charCodeAt(e.position);if(SS(d)||AS(d)||35===d||38===d||42===d||33===d||124===d||62===d||39===d||34===d||37===d||64===d||96===d||(63===d||45===d)&&(SS(n=e.input.charCodeAt(e.position+1))||r&&AS(n)))return!1;for(e.kind="scalar",e.result="",i=a=e.position,s=!1;0!==d;){if(58===d){if(SS(n=e.input.charCodeAt(e.position+1))||r&&AS(n))break}else if(35===d){if(SS(e.input.charCodeAt(e.position-1)))break}else{if(e.position===e.lineStart&&qS(e)||r&&AS(d))break;if(CS(d)){if(o=e.line,l=e.lineStart,c=e.lineIndent,US(e,!1,-1),t<=e.lineIndent){s=!0,d=e.input.charCodeAt(e.position);continue}e.position=a,e.line=o,e.lineStart=l,e.lineIndent=c;break}}s&&($S(e,i,a,!1),jS(e,e.line-o),i=a=e.position,s=!1),_S(d)||(a=e.position+1),d=e.input.charCodeAt(++e.position)}return $S(e,i,a,!1),!!e.result||(e.kind=h,e.result=u,!1)}function WS(e,t){var r,n,i=e.input.charCodeAt(e.position);if(39!==i)return!1;for(e.kind="scalar",e.result="",e.position++,r=n=e.position;0!==(i=e.input.charCodeAt(e.position));)if(39===i){if($S(e,r,e.position,!0),39!==(i=e.input.charCodeAt(++e.position)))return!0;r=e.position,e.position++,n=e.position}else CS(i)?($S(e,r,n,!0),jS(e,US(e,!1,t)),r=n=e.position):e.position===e.lineStart&&qS(e)?PS(e,"unexpected end of the document within a single quoted scalar"):(e.position++,n=e.position);PS(e,"unexpected end of the stream within a single quoted scalar")}function HS(e,t){var r,n,i,a,s,o=e.input.charCodeAt(e.position);if(34!==o)return!1;for(e.kind="scalar",e.result="",e.position++,r=n=e.position;0!==(o=e.input.charCodeAt(e.position));){if(34===o)return $S(e,r,e.position,!0),e.position++,!0;if(92===o){if($S(e,r,e.position,!0),CS(o=e.input.charCodeAt(++e.position)))US(e,!1,t);else if(o<256&&x9[o])e.result+=b9[o],e.position++;else if(0<(s=NS(o))){for(i=s,a=0;0<i;i--)0<=(s=LS(o=e.input.charCodeAt(++e.position)))?a=(a<<4)+s:PS(e,"expected hexadecimal character");e.result+=MS(a),e.position++}else PS(e,"unknown escape sequence");r=n=e.position}else CS(o)?($S(e,r,n,!0),jS(e,US(e,!1,t)),r=n=e.position):e.position===e.lineStart&&qS(e)?PS(e,"unexpected end of the document within a double quoted scalar"):(e.position++,n=e.position)}PS(e,"unexpected end of the stream within a double quoted scalar")}function VS(e,t){var r,n,i,a,s,o,l,c,h,u,d,p=!0,g=e.tag,f=e.anchor,m=Object.create(null),y=e.input.charCodeAt(e.position);if(91===y)c=!(s=93),a=[];else{if(123!==y)return!1;s=125,c=!0,a={}}for(null!==e.anchor&&(e.anchorMap[e.anchor]=a),y=e.input.charCodeAt(++e.position);0!==y;){if(US(e,!0,t),(y=e.input.charCodeAt(e.position))===s)return e.position++,e.tag=g,e.anchor=f,e.kind=c?"mapping":"sequence",e.result=a,!0;p?44===y&&PS(e,"expected the node content, but found ','"):PS(e,"missed comma between flow collection entries"),d=null,o=l=!1,63===y&&SS(e.input.charCodeAt(e.position+1))&&(o=l=!0,e.position++,US(e,!0,t)),r=e.line,n=e.lineStart,i=e.position,tA(e,t,o9,!1,!0),u=e.tag,h=e.result,US(e,!0,t),y=e.input.charCodeAt(e.position),!l&&e.line!==r||58!==y||(o=!0,y=e.input.charCodeAt(++e.position),US(e,!0,t),tA(e,t,o9,!1,!0),d=e.result),c?zS(e,a,m,u,h,d,r,n,i):o?a.push(zS(e,null,m,u,h,d,r,n,i)):a.push(h),US(e,!0,t),44===(y=e.input.charCodeAt(e.position))?(p=!0,y=e.input.charCodeAt(++e.position)):p=!1}PS(e,"unexpected end of the stream within a flow collection")}function XS(e,t){var r,n,i,a=u9,s=!1,o=!1,l=t,c=0,h=!1,u=e.input.charCodeAt(e.position);if(124===u)n=!1;else{if(62!==u)return!1;n=!0}for(e.kind="scalar",e.result="";0!==u;)if(43===(u=e.input.charCodeAt(++e.position))||45===u)u9===a?a=43===u?p9:d9:PS(e,"repeat of a chomping mode identifier");else{if(!(0<=(i=IS(u))))break;0===i?PS(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):o?PS(e,"repeat of an indentation width identifier"):(l=t+i-1,o=!0)}if(_S(u)){for(;_S(u=e.input.charCodeAt(++e.position)););if(35===u)for(;!CS(u=e.input.charCodeAt(++e.position))&&0!==u;);}for(;0!==u;){for(GS(e),e.lineIndent=0,u=e.input.charCodeAt(e.position);(!o||e.lineIndent<l)&&32===u;)e.lineIndent++,u=e.input.charCodeAt(++e.position);if(!o&&e.lineIndent>l&&(l=e.lineIndent),CS(u))c++;else{if(e.lineIndent<l){a===p9?e.result+=BA.repeat(` `,t-1))}function Y_(e,t,r){var n,i,a,s,o,l,c,h=e.kind,u=e.result,d=e.input.charCodeAt(e.position);if(__(d)||A_(d)||35===d||38===d||42===d||33===d||124===d||62===d||39===d||34===d||37===d||64===d||96===d||(63===d||45===d)&&(__(n=e.input.charCodeAt(e.position+1))||r&&A_(n)))return!1;for(e.kind="scalar",e.result="",i=a=e.position,s=!1;0!==d;){if(58===d){if(__(n=e.input.charCodeAt(e.position+1))||r&&A_(n))break}else if(35===d){if(__(e.input.charCodeAt(e.position-1)))break}else{if(e.position===e.lineStart&&q_(e)||r&&A_(d))break;if(C_(d)){if(o=e.line,l=e.lineStart,c=e.lineIndent,U_(e,!1,-1),t<=e.lineIndent){s=!0,d=e.input.charCodeAt(e.position);continue}e.position=a,e.line=o,e.lineStart=l,e.lineIndent=c;break}}s&&($_(e,i,a,!1),j_(e,e.line-o),i=a=e.position,s=!1),S_(d)||(a=e.position+1),d=e.input.charCodeAt(++e.position)}return $_(e,i,a,!1),!!e.result||(e.kind=h,e.result=u,!1)}function W_(e,t){var r,n,i=e.input.charCodeAt(e.position);if(39!==i)return!1;for(e.kind="scalar",e.result="",e.position++,r=n=e.position;0!==(i=e.input.charCodeAt(e.position));)if(39===i){if($_(e,r,e.position,!0),39!==(i=e.input.charCodeAt(++e.position)))return!0;r=e.position,e.position++,n=e.position}else C_(i)?($_(e,r,n,!0),j_(e,U_(e,!1,t)),r=n=e.position):e.position===e.lineStart&&q_(e)?P_(e,"unexpected end of the document within a single quoted scalar"):(e.position++,n=e.position);P_(e,"unexpected end of the stream within a single quoted scalar")}function H_(e,t){var r,n,i,a,s,o=e.input.charCodeAt(e.position);if(34!==o)return!1;for(e.kind="scalar",e.result="",e.position++,r=n=e.position;0!==(o=e.input.charCodeAt(e.position));){if(34===o)return $_(e,r,e.position,!0),e.position++,!0;if(92===o){if($_(e,r,e.position,!0),C_(o=e.input.charCodeAt(++e.position)))U_(e,!1,t);else if(o<256&&x9[o])e.result+=b9[o],e.position++;else if(0<(s=N_(o))){for(i=s,a=0;0<i;i--)0<=(s=L_(o=e.input.charCodeAt(++e.position)))?a=(a<<4)+s:P_(e,"expected hexadecimal character");e.result+=M_(a),e.position++}else P_(e,"unknown escape sequence");r=n=e.position}else C_(o)?($_(e,r,n,!0),j_(e,U_(e,!1,t)),r=n=e.position):e.position===e.lineStart&&q_(e)?P_(e,"unexpected end of the document within a double quoted scalar"):(e.position++,n=e.position)}P_(e,"unexpected end of the stream within a double quoted scalar")}function V_(e,t){var r,n,i,a,s,o,l,c,h,u,d,p=!0,g=e.tag,f=e.anchor,m=Object.create(null),y=e.input.charCodeAt(e.position);if(91===y)c=!(s=93),a=[];else{if(123!==y)return!1;s=125,c=!0,a={}}for(null!==e.anchor&&(e.anchorMap[e.anchor]=a),y=e.input.charCodeAt(++e.position);0!==y;){if(U_(e,!0,t),(y=e.input.charCodeAt(e.position))===s)return e.position++,e.tag=g,e.anchor=f,e.kind=c?"mapping":"sequence",e.result=a,!0;p?44===y&&P_(e,"expected the node content, but found ','"):P_(e,"missed comma between flow collection entries"),d=null,o=l=!1,63===y&&__(e.input.charCodeAt(e.position+1))&&(o=l=!0,e.position++,U_(e,!0,t)),r=e.line,n=e.lineStart,i=e.position,tA(e,t,o9,!1,!0),u=e.tag,h=e.result,U_(e,!0,t),y=e.input.charCodeAt(e.position),!l&&e.line!==r||58!==y||(o=!0,y=e.input.charCodeAt(++e.position),U_(e,!0,t),tA(e,t,o9,!1,!0),d=e.result),c?z_(e,a,m,u,h,d,r,n,i):o?a.push(z_(e,null,m,u,h,d,r,n,i)):a.push(h),U_(e,!0,t),44===(y=e.input.charCodeAt(e.position))?(p=!0,y=e.input.charCodeAt(++e.position)):p=!1}P_(e,"unexpected end of the stream within a flow collection")}function X_(e,t){var r,n,i,a=u9,s=!1,o=!1,l=t,c=0,h=!1,u=e.input.charCodeAt(e.position);if(124===u)n=!1;else{if(62!==u)return!1;n=!0}for(e.kind="scalar",e.result="";0!==u;)if(43===(u=e.input.charCodeAt(++e.position))||45===u)u9===a?a=43===u?p9:d9:P_(e,"repeat of a chomping mode identifier");else{if(!(0<=(i=I_(u))))break;0===i?P_(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):o?P_(e,"repeat of an indentation width identifier"):(l=t+i-1,o=!0)}if(S_(u)){for(;S_(u=e.input.charCodeAt(++e.position)););if(35===u)for(;!C_(u=e.input.charCodeAt(++e.position))&&0!==u;);}for(;0!==u;){for(G_(e),e.lineIndent=0,u=e.input.charCodeAt(e.position);(!o||e.lineIndent<l)&&32===u;)e.lineIndent++,u=e.input.charCodeAt(++e.position);if(!o&&e.lineIndent>l&&(l=e.lineIndent),C_(u))c++;else{if(e.lineIndent<l){a===p9?e.result+=BA.repeat(`
`,s?1+c:c):a===u9&&s&&(e.result+=` `,s?1+c:c):a===u9&&s&&(e.result+=`
`);break}for(n?_S(u)?(h=!0,e.result+=BA.repeat(` `);break}for(n?S_(u)?(h=!0,e.result+=BA.repeat(`
`,s?1+c:c)):h?(h=!1,e.result+=BA.repeat(` `,s?1+c:c)):h?(h=!1,e.result+=BA.repeat(`
`,c+1)):0===c?s&&(e.result+=" "):e.result+=BA.repeat(` `,c+1)):0===c?s&&(e.result+=" "):e.result+=BA.repeat(`
`,c):e.result+=BA.repeat(` `,c):e.result+=BA.repeat(`
`,s?1+c:c),o=s=!0,c=0,r=e.position;!CS(u)&&0!==u;)u=e.input.charCodeAt(++e.position);$S(e,r,e.position,!1)}}return!0}function KS(e,t){var r,n,i=e.tag,a=e.anchor,s=[],o=!1;if(-1!==e.firstTabInLine)return!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=s),n=e.input.charCodeAt(e.position);0!==n&&(-1!==e.firstTabInLine&&(e.position=e.firstTabInLine,PS(e,"tab characters must not be used in indentation")),45===n)&&SS(e.input.charCodeAt(e.position+1));)if(o=!0,e.position++,US(e,!0,-1)&&e.lineIndent<=t)s.push(null),n=e.input.charCodeAt(e.position);else if(r=e.line,tA(e,t,c9,!1,!0),s.push(e.result),US(e,!0,-1),n=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&0!==n)PS(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break;return!!o&&(e.tag=i,e.anchor=a,e.kind="sequence",e.result=s,!0)}function ZS(e,t,r){var n,i,a,s,o,l,c,h=e.tag,u=e.anchor,d={},p=Object.create(null),g=null,f=null,m=null,y=!1,v=!1;if(-1!==e.firstTabInLine)return!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=d),c=e.input.charCodeAt(e.position);0!==c;){if(y||-1===e.firstTabInLine||(e.position=e.firstTabInLine,PS(e,"tab characters must not be used in indentation")),n=e.input.charCodeAt(e.position+1),a=e.line,63!==c&&58!==c||!SS(n)){if(s=e.line,o=e.lineStart,l=e.position,!tA(e,r,l9,!1,!0))break;if(e.line===a){for(c=e.input.charCodeAt(e.position);_S(c);)c=e.input.charCodeAt(++e.position);if(58===c)SS(c=e.input.charCodeAt(++e.position))||PS(e,"a whitespace character is expected after the key-value separator within a block mapping"),y&&(zS(e,d,p,g,f,null,s,o,l),g=f=m=null),i=y=!(v=!0),g=e.tag,f=e.result;else{if(!v)return e.tag=h,e.anchor=u,!0;PS(e,"can not read an implicit mapping pair; a colon is missed")}}else{if(!v)return e.tag=h,e.anchor=u,!0;PS(e,"can not read a block mapping entry; a multiline key may not be an implicit key")}}else 63===c?(y&&(zS(e,d,p,g,f,null,s,o,l),g=f=m=null),i=y=v=!0):y?i=!(y=!1):PS(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,c=n;if((e.line===a||e.lineIndent>t)&&(y&&(s=e.line,o=e.lineStart,l=e.position),tA(e,t,h9,!0,i)&&(y?f=e.result:m=e.result),y||(zS(e,d,p,g,f,m,s,o,l),g=f=m=null),US(e,!0,-1),c=e.input.charCodeAt(e.position)),(e.line===a||e.lineIndent>t)&&0!==c)PS(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return y&&zS(e,d,p,g,f,null,s,o,l),v&&(e.tag=h,e.anchor=u,e.kind="mapping",e.result=d),v}function QS(e){var t,r,n,i=!1,a=!1,s=e.input.charCodeAt(e.position);if(33!==s)return!1;if(null!==e.tag&&PS(e,"duplication of a tag property"),60===(s=e.input.charCodeAt(++e.position))?(i=!0,s=e.input.charCodeAt(++e.position)):33===s?(a=!0,r="!!",s=e.input.charCodeAt(++e.position)):r="!",t=e.position,i){for(;0!==(s=e.input.charCodeAt(++e.position))&&62!==s;);e.position<e.length?(n=e.input.slice(t,e.position),s=e.input.charCodeAt(++e.position)):PS(e,"unexpected end of the stream within a verbatim tag")}else{for(;0!==s&&!SS(s);)33===s&&(a?PS(e,"tag suffix cannot contain exclamation marks"):(r=e.input.slice(t-1,e.position+1),y9.test(r)||PS(e,"named tag handle cannot contain such characters"),a=!0,t=e.position+1)),s=e.input.charCodeAt(++e.position);n=e.input.slice(t,e.position),m9.test(n)&&PS(e,"tag suffix cannot contain flow indicator characters")}n&&!v9.test(n)&&PS(e,"tag name cannot contain such characters: "+n);try{n=decodeURIComponent(n)}catch{PS(e,"tag name is malformed: "+n)}return i?e.tag=n:s9.call(e.tagMap,r)?e.tag=e.tagMap[r]+n:"!"===r?e.tag="!"+n:"!!"===r?e.tag="tag:yaml.org,2002:"+n:PS(e,'undeclared tag handle "'+r+'"'),!0}function JS(e){var t,r=e.input.charCodeAt(e.position);if(38!==r)return!1;for(null!==e.anchor&&PS(e,"duplication of an anchor property"),r=e.input.charCodeAt(++e.position),t=e.position;0!==r&&!SS(r)&&!AS(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&PS(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function eA(e){var t,r=e.input.charCodeAt(e.position);if(42!==r)return!1;for(r=e.input.charCodeAt(++e.position),t=e.position;0!==r&&!SS(r)&&!AS(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&PS(e,"name of an alias node must contain at least one character"),t=e.input.slice(t,e.position),s9.call(e.anchorMap,t)||PS(e,'unidentified alias "'+t+'"'),e.result=e.anchorMap[t],US(e,!0,-1),!0}function tA(e,t,r,n,i){var a,s,o,l,c,h,u,d=1,p=!1,g=!1;if(null!==e.listener&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,a=s=o=h9===r||c9===r,n&&US(e,!0,-1)&&(p=!0,e.lineIndent>t?d=1:e.lineIndent===t?d=0:e.lineIndent<t&&(d=-1)),1===d)for(;QS(e)||JS(e);)US(e,!0,-1)?(p=!0,o=a,e.lineIndent>t?d=1:e.lineIndent===t?d=0:e.lineIndent<t&&(d=-1)):o=!1;if(o=o&&(p||i),1!==d&&h9!==r||(n=o9===r||l9===r?t:t+1,i=e.position-e.lineStart,1===d?o&&(KS(e,i)||ZS(e,i,n))||VS(e,n)?g=!0:(s&&XS(e,n)||WS(e,n)||HS(e,n)?g=!0:eA(e)?(g=!0,null===e.tag&&null===e.anchor||PS(e,"alias node should not have any properties")):YS(e,n,o9===r)&& Line truncated `,s?1+c:c),o=s=!0,c=0,r=e.position;!C_(u)&&0!==u;)u=e.input.charCodeAt(++e.position);$_(e,r,e.position,!1)}}return!0}function K_(e,t){var r,n,i=e.tag,a=e.anchor,s=[],o=!1;if(-1!==e.firstTabInLine)return!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=s),n=e.input.charCodeAt(e.position);0!==n&&(-1!==e.firstTabInLine&&(e.position=e.firstTabInLine,P_(e,"tab characters must not be used in indentation")),45===n)&&__(e.input.charCodeAt(e.position+1));)if(o=!0,e.position++,U_(e,!0,-1)&&e.lineIndent<=t)s.push(null),n=e.input.charCodeAt(e.position);else if(r=e.line,tA(e,t,c9,!1,!0),s.push(e.result),U_(e,!0,-1),n=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&0!==n)P_(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break;return!!o&&(e.tag=i,e.anchor=a,e.kind="sequence",e.result=s,!0)}function Z_(e,t,r){var n,i,a,s,o,l,c,h=e.tag,u=e.anchor,d={},p=Object.create(null),g=null,f=null,m=null,y=!1,v=!1;if(-1!==e.firstTabInLine)return!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=d),c=e.input.charCodeAt(e.position);0!==c;){if(y||-1===e.firstTabInLine||(e.position=e.firstTabInLine,P_(e,"tab characters must not be used in indentation")),n=e.input.charCodeAt(e.position+1),a=e.line,63!==c&&58!==c||!__(n)){if(s=e.line,o=e.lineStart,l=e.position,!tA(e,r,l9,!1,!0))break;if(e.line===a){for(c=e.input.charCodeAt(e.position);S_(c);)c=e.input.charCodeAt(++e.position);if(58===c)__(c=e.input.charCodeAt(++e.position))||P_(e,"a whitespace character is expected after the key-value separator within a block mapping"),y&&(z_(e,d,p,g,f,null,s,o,l),g=f=m=null),i=y=!(v=!0),g=e.tag,f=e.result;else{if(!v)return e.tag=h,e.anchor=u,!0;P_(e,"can not read an implicit mapping pair; a colon is missed")}}else{if(!v)return e.tag=h,e.anchor=u,!0;P_(e,"can not read a block mapping entry; a multiline key may not be an implicit key")}}else 63===c?(y&&(z_(e,d,p,g,f,null,s,o,l),g=f=m=null),i=y=v=!0):y?i=!(y=!1):P_(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,c=n;if((e.line===a||e.lineIndent>t)&&(y&&(s=e.line,o=e.lineStart,l=e.position),tA(e,t,h9,!0,i)&&(y?f=e.result:m=e.result),y||(z_(e,d,p,g,f,m,s,o,l),g=f=m=null),U_(e,!0,-1),c=e.input.charCodeAt(e.position)),(e.line===a||e.lineIndent>t)&&0!==c)P_(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return y&&z_(e,d,p,g,f,null,s,o,l),v&&(e.tag=h,e.anchor=u,e.kind="mapping",e.result=d),v}function Q_(e){var t,r,n,i=!1,a=!1,s=e.input.charCodeAt(e.position);if(33!==s)return!1;if(null!==e.tag&&P_(e,"duplication of a tag property"),60===(s=e.input.charCodeAt(++e.position))?(i=!0,s=e.input.charCodeAt(++e.position)):33===s?(a=!0,r="!!",s=e.input.charCodeAt(++e.position)):r="!",t=e.position,i){for(;0!==(s=e.input.charCodeAt(++e.position))&&62!==s;);e.position<e.length?(n=e.input.slice(t,e.position),s=e.input.charCodeAt(++e.position)):P_(e,"unexpected end of the stream within a verbatim tag")}else{for(;0!==s&&!__(s);)33===s&&(a?P_(e,"tag suffix cannot contain exclamation marks"):(r=e.input.slice(t-1,e.position+1),y9.test(r)||P_(e,"named tag handle cannot contain such characters"),a=!0,t=e.position+1)),s=e.input.charCodeAt(++e.position);n=e.input.slice(t,e.position),m9.test(n)&&P_(e,"tag suffix cannot contain flow indicator characters")}n&&!v9.test(n)&&P_(e,"tag name cannot contain such characters: "+n);try{n=decodeURIComponent(n)}catch{P_(e,"tag name is malformed: "+n)}return i?e.tag=n:s9.call(e.tagMap,r)?e.tag=e.tagMap[r]+n:"!"===r?e.tag="!"+n:"!!"===r?e.tag="tag:yaml.org,2002:"+n:P_(e,'undeclared tag handle "'+r+'"'),!0}function J_(e){var t,r=e.input.charCodeAt(e.position);if(38!==r)return!1;for(null!==e.anchor&&P_(e,"duplication of an anchor property"),r=e.input.charCodeAt(++e.position),t=e.position;0!==r&&!__(r)&&!A_(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&P_(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function eA(e){var t,r=e.input.charCodeAt(e.position);if(42!==r)return!1;for(r=e.input.charCodeAt(++e.position),t=e.position;0!==r&&!__(r)&&!A_(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&P_(e,"name of an alias node must contain at least one character"),t=e.input.slice(t,e.position),s9.call(e.anchorMap,t)||P_(e,'unidentified alias "'+t+'"'),e.result=e.anchorMap[t],U_(e,!0,-1),!0}function tA(e,t,r,n,i){var a,s,o,l,c,h,u,d=1,p=!1,g=!1;if(null!==e.listener&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,a=s=o=h9===r||c9===r,n&&U_(e,!0,-1)&&(p=!0,e.lineIndent>t?d=1:e.lineIndent===t?d=0:e.lineIndent<t&&(d=-1)),1===d)for(;Q_(e)||J_(e);)U_(e,!0,-1)?(p=!0,o=a,e.lineIndent>t?d=1:e.lineIndent===t?d=0:e.lineIndent<t&&(d=-1)):o=!1;if(o=o&&(p||i),1!==d&&h9!==r||(n=o9===r||l9===r?t:t+1,i=e.position-e.lineStart,1===d?o&&(K_(e,i)||Z_(e,i,n))||V_(e,n)?g=!0:(s&&X_(e,n)||W_(e,n)||H_(e,n)?g=!0:eA(e)?(g=!0,null===e.tag&&null===e.anchor||P_(e,"alias node should not have any properties")):Y_(e,n,o9===r)&& Line truncated
`),65279===e.charCodeAt(0))?e.slice(1):e,t);for(-1!==(t=e.indexOf("\0"))&&(r.position=t,PS(r,"null byte is not allowed in input")),r.input+="\0";32===r.input.charCodeAt(r.position);)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)rA(r);return r.documents}function iA(e,t,r){null!==t&&"object"==typeof t&&"u"<typeof r&&(r=t,t=null);var n=nA(e,r);if("function"!=typeof t)return n;for(var i=0,a=n.length;i<a;i+=1)t(n[i])}function aA(e,t){if(0!==(e=nA(e,t)).length){if(1===e.length)return e[0];throw new $A("expected a single document in the stream, but found more")}}function sA(e,t){var r,n,i,a,s,o,l;if(null===t)return{};for(r={},i=0,a=(n=Object.keys(t)).length;i<a;i+=1)s=n[i],o=String(t[s]),"!!"===s.slice(0,2)&&(s="tag:yaml.org,2002:"+s.slice(2)),(l=e.compiledTypeMap.fallback[s])&&C9.call(l.styleAliases,o)&&(o=l.styleAliases[o]),r[s]=o;return r}function oA(e){var t,r,n=e.toString(16).toUpperCase();if(e<=255)t="x",r=2;else if(e<=65535)t="u",r=4;else{if(!(e<=4294967295))throw new $A("code point within a string may not be greater than 0xFFFFFFFF");t="U",r=8}return"\\"+t+BA.repeat("0",r-n.length)+n}function lA(e){this.schema=e.schema||a9,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=BA.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=sA(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.quotingType='"'===e.quotingType?I9:1,this.forceQuotes=e.forceQuotes||!1,this.replacer="function"==typeof e.replacer?e.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function cA(e,t){for(var r,n,i=BA.repeat(" ",t),a=0,s="",o=e.length;a<o;)a=-1===(r=e.indexOf(` `),65279===e.charCodeAt(0))?e.slice(1):e,t);for(-1!==(t=e.indexOf("\0"))&&(r.position=t,P_(r,"null byte is not allowed in input")),r.input+="\0";32===r.input.charCodeAt(r.position);)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)rA(r);return r.documents}function iA(e,t,r){null!==t&&"object"==typeof t&&"u"<typeof r&&(r=t,t=null);var n=nA(e,r);if("function"!=typeof t)return n;for(var i=0,a=n.length;i<a;i+=1)t(n[i])}function aA(e,t){if(0!==(e=nA(e,t)).length){if(1===e.length)return e[0];throw new $A("expected a single document in the stream, but found more")}}function sA(e,t){var r,n,i,a,s,o,l;if(null===t)return{};for(r={},i=0,a=(n=Object.keys(t)).length;i<a;i+=1)s=n[i],o=String(t[s]),"!!"===s.slice(0,2)&&(s="tag:yaml.org,2002:"+s.slice(2)),(l=e.compiledTypeMap.fallback[s])&&C9.call(l.styleAliases,o)&&(o=l.styleAliases[o]),r[s]=o;return r}function oA(e){var t,r,n=e.toString(16).toUpperCase();if(e<=255)t="x",r=2;else if(e<=65535)t="u",r=4;else{if(!(e<=4294967295))throw new $A("code point within a string may not be greater than 0xFFFFFFFF");t="U",r=8}return"\\"+t+BA.repeat("0",r-n.length)+n}function lA(e){this.schema=e.schema||a9,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=BA.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=sA(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.quotingType='"'===e.quotingType?I9:1,this.forceQuotes=e.forceQuotes||!1,this.replacer="function"==typeof e.replacer?e.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function cA(e,t){for(var r,n,i=BA.repeat(" ",t),a=0,s="",o=e.length;a<o;)a=-1===(r=e.indexOf(`
`,a))?(n=e.slice(a),o):(n=e.slice(a,r+1),r+1),n.length&&n!==` `,a))?(n=e.slice(a),o):(n=e.slice(a,r+1),r+1),n.length&&n!==`
`&&(s+=i),s+=n;return s}function hA(e,t){return` `&&(s+=i),s+=n;return s}function hA(e,t){return`
`+BA.repeat(" ",e.indent*t)}function uA(e,t){for(var r=0,n=e.implicitTypes.length;r<n;r+=1)if(e.implicitTypes[r].resolve(t))return!0;return!1}function dA(e){return 32===e||9===e}function pA(e){return 32<=e&&e<=126||161<=e&&e<=55295&&8232!==e&&8233!==e||57344<=e&&e<=65533&&e!==_9||65536<=e&&e<=1114111}function gA(e){return pA(e)&&e!==_9&&13!==e&&e!==S9}function fA(e,t,r){var n=gA(e),i=n&&!dA(e);return(r?n:n&&44!==e&&91!==e&&93!==e&&123!==e&&125!==e)&&35!==e&&!(58===t&&!i)||gA(t)&&!dA(t)&&35===e||58===t&&i}function mA(e){return pA(e)&&e!==_9&&!dA(e)&&45!==e&&63!==e&&58!==e&&44!==e&&91!==e&&93!==e&&123!==e&&125!==e&&35!==e&&38!==e&&42!==e&&33!==e&&124!==e&&61!==e&&62!==e&&39!==e&&34!==e&&37!==e&&64!==e&&96!==e}function yA(e){return!dA(e)&&58!==e}function vA(e,t){var r=e.charCodeAt(t);return 55296<=r&&r<=56319&&t+1<e.length&&56320<=(e=e.charCodeAt(t+1))&&e<=57343?1024*(r-55296)+e-56320+65536:r}function xA(e){return/^\n* /.test(e)}function bA(e,t,r,n,i,a,s,o){var l,c=0,h=null,u=!1,d=!1,p=-1!==n,g=-1,f=mA(vA(e,0))&&yA(vA(e,e.length-1));if(t||s)for(l=0;l<e.length;65536<=c?l+=2:l++){if(!pA(c=vA(e,l)))return P9;f=f&&fA(c,h,o),h=c}else{for(l=0;l<e.length;65536<=c?l+=2:l++){if((c=vA(e,l))===S9)u=!0,p&&(d=d||n<l-g-1&&" "!==e[g+1],g=l);else if(!pA(c))return P9;f=f&&fA(c,h,o),h=c}d=d||p&&n<l-g-1&&" "!==e[g+1]}return u||d?9<r&&xA(e)?P9:s?a===I9?P9:M9:d?O9:D9:!f||s||i(e)?a===I9?P9:M9:R9}function wA(i,a,s,o,l){i.dump=(()=>{if(0===a.length)return i.quotingType===I9?'""':"''";if(!i.noCompatMode&&(-1!==L9.indexOf(a)||N9.test(a)))return i.quotingType===I9?'"'+a+'"':"'"+a+"'";var e=i.indent*Math.max(1,s),t=-1===i.lineWidth?-1:Math.max(Math.min(i.lineWidth,40),i.lineWidth-e),r=o||-1<i.flowLevel&&s>=i.flowLevel;function n(e){return uA(i,e)}switch(mt(n,"testAmbiguity"),bA(a,r,i.indent,t,n,i.quotingType,i.forceQuotes&&!o,l)){case R9:return a;case M9:return"'"+a.replace(/'/g,"''")+"'";case D9:return"|"+kA(a,i.indent)+TA(cA(a,e));case O9:return">"+kA(a,i.indent)+TA(cA(EA(a,t),e));case P9:return'"'+_A(a)+'"';default:throw new $A("impossible error: invalid scalar style")}})()}function kA(e,t){var t=xA(e)?String(t):"",r=e[e.length-1]===` `+BA.repeat(" ",e.indent*t)}function uA(e,t){for(var r=0,n=e.implicitTypes.length;r<n;r+=1)if(e.implicitTypes[r].resolve(t))return!0;return!1}function dA(e){return 32===e||9===e}function pA(e){return 32<=e&&e<=126||161<=e&&e<=55295&&8232!==e&&8233!==e||57344<=e&&e<=65533&&e!==S9||65536<=e&&e<=1114111}function gA(e){return pA(e)&&e!==S9&&13!==e&&e!==_9}function fA(e,t,r){var n=gA(e),i=n&&!dA(e);return(r?n:n&&44!==e&&91!==e&&93!==e&&123!==e&&125!==e)&&35!==e&&!(58===t&&!i)||gA(t)&&!dA(t)&&35===e||58===t&&i}function mA(e){return pA(e)&&e!==S9&&!dA(e)&&45!==e&&63!==e&&58!==e&&44!==e&&91!==e&&93!==e&&123!==e&&125!==e&&35!==e&&38!==e&&42!==e&&33!==e&&124!==e&&61!==e&&62!==e&&39!==e&&34!==e&&37!==e&&64!==e&&96!==e}function yA(e){return!dA(e)&&58!==e}function vA(e,t){var r=e.charCodeAt(t);return 55296<=r&&r<=56319&&t+1<e.length&&56320<=(e=e.charCodeAt(t+1))&&e<=57343?1024*(r-55296)+e-56320+65536:r}function xA(e){return/^\n* /.test(e)}function bA(e,t,r,n,i,a,s,o){var l,c=0,h=null,u=!1,d=!1,p=-1!==n,g=-1,f=mA(vA(e,0))&&yA(vA(e,e.length-1));if(t||s)for(l=0;l<e.length;65536<=c?l+=2:l++){if(!pA(c=vA(e,l)))return P9;f=f&&fA(c,h,o),h=c}else{for(l=0;l<e.length;65536<=c?l+=2:l++){if((c=vA(e,l))===_9)u=!0,p&&(d=d||n<l-g-1&&" "!==e[g+1],g=l);else if(!pA(c))return P9;f=f&&fA(c,h,o),h=c}d=d||p&&n<l-g-1&&" "!==e[g+1]}return u||d?9<r&&xA(e)?P9:s?a===I9?P9:M9:d?O9:D9:!f||s||i(e)?a===I9?P9:M9:R9}function wA(i,a,s,o,l){i.dump=(()=>{if(0===a.length)return i.quotingType===I9?'""':"''";if(!i.noCompatMode&&(-1!==L9.indexOf(a)||N9.test(a)))return i.quotingType===I9?'"'+a+'"':"'"+a+"'";var e=i.indent*Math.max(1,s),t=-1===i.lineWidth?-1:Math.max(Math.min(i.lineWidth,40),i.lineWidth-e),r=o||-1<i.flowLevel&&s>=i.flowLevel;function n(e){return uA(i,e)}switch(mt(n,"testAmbiguity"),bA(a,r,i.indent,t,n,i.quotingType,i.forceQuotes&&!o,l)){case R9:return a;case M9:return"'"+a.replace(/'/g,"''")+"'";case D9:return"|"+kA(a,i.indent)+TA(cA(a,e));case O9:return">"+kA(a,i.indent)+TA(cA(EA(a,t),e));case P9:return'"'+SA(a)+'"';default:throw new $A("impossible error: invalid scalar style")}})()}function kA(e,t){var t=xA(e)?String(t):"",r=e[e.length-1]===`
`;return t+(!r||e[e.length-2]!==` `;return t+(!r||e[e.length-2]!==`
`&&e!==` `&&e!==`
`?r?"":"-":"+")+` `?r?"":"-":"+")+`
@@ -378,11 +378,11 @@ Expecting `+A.join(", ")+", got '"+(this.terminals_[x]||x)+"'":"Parse error on l
`)+CA(o,t),a=l}return i}function CA(e,t){if(""===e||" "===e[0])return e;for(var r,n,i=/ [^ ]/g,a=0,s=0,o="";n=i.exec(e);)t<(n=n.index)-a&&(o+=` `)+CA(o,t),a=l}return i}function CA(e,t){if(""===e||" "===e[0])return e;for(var r,n,i=/ [^ ]/g,a=0,s=0,o="";n=i.exec(e);)t<(n=n.index)-a&&(o+=`
`+e.slice(a,r=a<s?s:n),a=r+1),s=n;return o+=` `+e.slice(a,r=a<s?s:n),a=r+1),s=n;return o+=`
`,e.length-a>t&&a<s?o+=e.slice(a,s)+` `,e.length-a>t&&a<s?o+=e.slice(a,s)+`
`+e.slice(s+1):o+=e.slice(a),o.slice(1)}function _A(e){for(var t,r,n="",i=0;i<e.length;65536<=t?i+=2:i++)t=vA(e,i),!(r=A9[t])&&pA(t)?(n+=e[i],65536<=t&&(n+=e[i+1])):n+=r||oA(t);return n}function SA(e,t,r){for(var n,i="",a=e.tag,s=0,o=r.length;s<o;s+=1)n=r[s],e.replacer&&(n=e.replacer.call(r,String(s),n)),(RA(e,t,n,!1,!1)||"u"<typeof n&&RA(e,t,null,!1,!1))&&(""!==i&&(i+=","+(e.condenseFlow?"":" ")),i+=e.dump);e.tag=a,e.dump="["+i+"]"}function AA(e,t,r,n){for(var i,a="",s=e.tag,o=0,l=r.length;o<l;o+=1)i=r[o],e.replacer&&(i=e.replacer.call(r,String(o),i)),(RA(e,t+1,i,!0,!0,!1,!0)||"u"<typeof i&&RA(e,t+1,null,!0,!0,!1,!0))&&(n&&""===a||(a+=hA(e,t)),e.dump&&S9===e.dump.charCodeAt(0)?a+="-":a+="- ",a+=e.dump);e.tag=s,e.dump=a||"[]"}function LA(e,t,r){for(var n,i,a,s="",o=e.tag,l=Object.keys(r),c=0,h=l.length;c<h;c+=1)(a="")!==s&&(a+=", "),e.condenseFlow&&(a+='"'),i=r[n=l[c]],e.replacer&&(i=e.replacer.call(r,n,i)),RA(e,t,n,!1,!1)&&(1024<e.dump.length&&(a+="? "),a+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),RA(e,t,i,!1,!1))&&(s+=a+=e.dump);e.tag=o,e.dump="{"+s+"}"}function NA(e,t,r,n){var i,a,s,o,l,c="",h=e.tag,u=Object.keys(r);if(!0===e.sortKeys)u.sort();else if("function"==typeof e.sortKeys)u.sort(e.sortKeys);else if(e.sortKeys)throw new $A("sortKeys must be a boolean or a function");for(i=0,a=u.length;i<a;i+=1)l="",n&&""===c||(l+=hA(e,t)),s=r[o=u[i]],e.replacer&&(s=e.replacer.call(r,o,s)),RA(e,t+1,o,!0,!0,!0)&&((o=null!==e.tag&&"?"!==e.tag||e.dump&&1024<e.dump.length)&&(e.dump&&S9===e.dump.charCodeAt(0)?l+="?":l+="? "),l+=e.dump,o&&(l+=hA(e,t)),RA(e,t+1,s,!0,o))&&(e.dump&&S9===e.dump.charCodeAt(0)?l+=":":l+=": ",c+=l+=e.dump);e.tag=h,e.dump=c||"{}"}function IA(e,t,r){for(var n,i,a,s=r?e.explicitTypes:e.implicitTypes,o=0,l=s.length;o<l;o+=1)if(((i=s[o]).instanceOf||i.predicate)&&(!i.instanceOf||"object"==typeof t&&t instanceof i.instanceOf)&&(!i.predicate||i.predicate(t))){if(r?i.multi&&i.representName?e.tag=i.representName(t):e.tag=i.tag:e.tag="?",i.represent){if(a=e.styleMap[i.tag]||i.defaultStyle,"[object Function]"===E9.call(i.represent))n=i.represent(t,a);else{if(!C9.call(i.represent,a))throw new $A("!<"+i.tag+'> tag resolver accepts not "'+a+'" style');n=i.represent[a](t,a)}e.dump=n}return!0}return!1}function RA(e,t,r,n,i,a,s){e.tag=null,e.dump=r,IA(e,r,!1)||IA(e,r,!0);var o,l,c=E9.call(e.dump),h=n,u=(n=n&&(e.flowLevel<0||e.flowLevel>t),"[object Object]"===c||"[object Array]"===c);if(u&&(l=-1!==(o=e.duplicates.indexOf(r))),(null!==e.tag&&"?"!==e.tag||l||2!==e.indent&&0<t)&&(i=!1),l&&e.usedDuplicates[o])e.dump="*ref_"+o;else{if(u&&l&&!e.usedDuplicates[o]&&(e.usedDuplicates[o]=!0),"[object Object]"===c)n&&0!==Object.keys(e.dump).length?(NA(e,t,e.dump,i),l&&(e.dump="&ref_"+o+e.dump)):(LA(e,t,e.dump),l&&(e.dump="&ref_"+o+" "+e.dump));else if("[object Array]"===c)n&&0!==e.dump.length?(e.noArrayIndent&&!s&&0<t?AA(e,t-1,e.dump,i):AA(e,t,e.dump,i),l&&(e.dump="&ref_"+o+e.dump)):(SA(e,t,e.dump),l&&(e.dump="&ref_"+o+" "+e.dump));else{if("[object String]"!==c){if("[object Undefined]"===c)return!1;if(e.skipInvalid)return!1;throw new $A("unacceptable kind of an object to dump "+c)}"?"!==e.tag&&wA(e,e.dump,t,a,h)}null!==e.tag&&"?"!==e.tag&&(r=encodeURI("!"===e.tag[0]?e.tag.slice(1):e.tag).replace(/!/g,"%21"),r="!"===e.tag[0]?"!"+r:"tag:yaml.org,2002:"===r.slice(0,18)?"!!"+r.slice(18):"!<"+r+">",e.dump=r+" "+e.dump)}return!0}function MA(e,t){var r,n,i=[],a=[];for(DA(e,i,a),r=0,n=a.length;r<n;r+=1)t.duplicates.push(i[a[r]]);t.usedDuplicates=new Array(n)}function DA(e,t,r){var n,i,a;if(null!==e&&"object"==typeof e)if(-1!==(i=t.indexOf(e)))-1===r.indexOf(i)&&r.push(i);else if(t.push(e),Array.isArray(e))for(i=0,a=e.length;i<a;i+=1)DA(e[i],t,r);else for(i=0,a=(n=Object.keys(e)).length;i<a;i+=1)DA(e[n[i]],t,r)}function OA(e,t){return(t=new lA(t=t||{})).noRefs||MA(e,t),t.replacer&&(e=t.replacer.call({"":e},"",e)),RA(t,0,e,!0,!0)?t.dump+` `+e.slice(s+1):o+=e.slice(a),o.slice(1)}function SA(e){for(var t,r,n="",i=0;i<e.length;65536<=t?i+=2:i++)t=vA(e,i),!(r=A9[t])&&pA(t)?(n+=e[i],65536<=t&&(n+=e[i+1])):n+=r||oA(t);return n}function _A(e,t,r){for(var n,i="",a=e.tag,s=0,o=r.length;s<o;s+=1)n=r[s],e.replacer&&(n=e.replacer.call(r,String(s),n)),(RA(e,t,n,!1,!1)||"u"<typeof n&&RA(e,t,null,!1,!1))&&(""!==i&&(i+=","+(e.condenseFlow?"":" ")),i+=e.dump);e.tag=a,e.dump="["+i+"]"}function AA(e,t,r,n){for(var i,a="",s=e.tag,o=0,l=r.length;o<l;o+=1)i=r[o],e.replacer&&(i=e.replacer.call(r,String(o),i)),(RA(e,t+1,i,!0,!0,!1,!0)||"u"<typeof i&&RA(e,t+1,null,!0,!0,!1,!0))&&(n&&""===a||(a+=hA(e,t)),e.dump&&_9===e.dump.charCodeAt(0)?a+="-":a+="- ",a+=e.dump);e.tag=s,e.dump=a||"[]"}function LA(e,t,r){for(var n,i,a,s="",o=e.tag,l=Object.keys(r),c=0,h=l.length;c<h;c+=1)(a="")!==s&&(a+=", "),e.condenseFlow&&(a+='"'),i=r[n=l[c]],e.replacer&&(i=e.replacer.call(r,n,i)),RA(e,t,n,!1,!1)&&(1024<e.dump.length&&(a+="? "),a+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),RA(e,t,i,!1,!1))&&(s+=a+=e.dump);e.tag=o,e.dump="{"+s+"}"}function NA(e,t,r,n){var i,a,s,o,l,c="",h=e.tag,u=Object.keys(r);if(!0===e.sortKeys)u.sort();else if("function"==typeof e.sortKeys)u.sort(e.sortKeys);else if(e.sortKeys)throw new $A("sortKeys must be a boolean or a function");for(i=0,a=u.length;i<a;i+=1)l="",n&&""===c||(l+=hA(e,t)),s=r[o=u[i]],e.replacer&&(s=e.replacer.call(r,o,s)),RA(e,t+1,o,!0,!0,!0)&&((o=null!==e.tag&&"?"!==e.tag||e.dump&&1024<e.dump.length)&&(e.dump&&_9===e.dump.charCodeAt(0)?l+="?":l+="? "),l+=e.dump,o&&(l+=hA(e,t)),RA(e,t+1,s,!0,o))&&(e.dump&&_9===e.dump.charCodeAt(0)?l+=":":l+=": ",c+=l+=e.dump);e.tag=h,e.dump=c||"{}"}function IA(e,t,r){for(var n,i,a,s=r?e.explicitTypes:e.implicitTypes,o=0,l=s.length;o<l;o+=1)if(((i=s[o]).instanceOf||i.predicate)&&(!i.instanceOf||"object"==typeof t&&t instanceof i.instanceOf)&&(!i.predicate||i.predicate(t))){if(r?i.multi&&i.representName?e.tag=i.representName(t):e.tag=i.tag:e.tag="?",i.represent){if(a=e.styleMap[i.tag]||i.defaultStyle,"[object Function]"===E9.call(i.represent))n=i.represent(t,a);else{if(!C9.call(i.represent,a))throw new $A("!<"+i.tag+'> tag resolver accepts not "'+a+'" style');n=i.represent[a](t,a)}e.dump=n}return!0}return!1}function RA(e,t,r,n,i,a,s){e.tag=null,e.dump=r,IA(e,r,!1)||IA(e,r,!0);var o,l,c=E9.call(e.dump),h=n,u=(n=n&&(e.flowLevel<0||e.flowLevel>t),"[object Object]"===c||"[object Array]"===c);if(u&&(l=-1!==(o=e.duplicates.indexOf(r))),(null!==e.tag&&"?"!==e.tag||l||2!==e.indent&&0<t)&&(i=!1),l&&e.usedDuplicates[o])e.dump="*ref_"+o;else{if(u&&l&&!e.usedDuplicates[o]&&(e.usedDuplicates[o]=!0),"[object Object]"===c)n&&0!==Object.keys(e.dump).length?(NA(e,t,e.dump,i),l&&(e.dump="&ref_"+o+e.dump)):(LA(e,t,e.dump),l&&(e.dump="&ref_"+o+" "+e.dump));else if("[object Array]"===c)n&&0!==e.dump.length?(e.noArrayIndent&&!s&&0<t?AA(e,t-1,e.dump,i):AA(e,t,e.dump,i),l&&(e.dump="&ref_"+o+e.dump)):(_A(e,t,e.dump),l&&(e.dump="&ref_"+o+" "+e.dump));else{if("[object String]"!==c){if("[object Undefined]"===c)return!1;if(e.skipInvalid)return!1;throw new $A("unacceptable kind of an object to dump "+c)}"?"!==e.tag&&wA(e,e.dump,t,a,h)}null!==e.tag&&"?"!==e.tag&&(r=encodeURI("!"===e.tag[0]?e.tag.slice(1):e.tag).replace(/!/g,"%21"),r="!"===e.tag[0]?"!"+r:"tag:yaml.org,2002:"===r.slice(0,18)?"!!"+r.slice(18):"!<"+r+">",e.dump=r+" "+e.dump)}return!0}function MA(e,t){var r,n,i=[],a=[];for(DA(e,i,a),r=0,n=a.length;r<n;r+=1)t.duplicates.push(i[a[r]]);t.usedDuplicates=new Array(n)}function DA(e,t,r){var n,i,a;if(null!==e&&"object"==typeof e)if(-1!==(i=t.indexOf(e)))-1===r.indexOf(i)&&r.push(i);else if(t.push(e),Array.isArray(e))for(i=0,a=e.length;i<a;i+=1)DA(e[i],t,r);else for(i=0,a=(n=Object.keys(e)).length;i<a;i+=1)DA(e[n[i]],t,r)}function OA(e,t){return(t=new lA(t=t||{})).noRefs||MA(e,t),t.replacer&&(e=t.replacer.call({"":e},"",e)),RA(t,0,e,!0,!0)?t.dump+`
`:""}function PA(e,t){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+t+" instead, which is now safe by default.")}}var BA,$A,FA,zA,GA,UA,qA,jA,YA,WA,HA,VA,XA,KA,ZA,QA,JA,e9,t9,r9,n9,i9,a9,s9,o9,l9,c9,h9,u9,d9,p9,g9,f9,m9,y9,v9,x9,b9,w9,k9,T9,E9,C9,_9,S9,A9,L9,N9,I9,R9,M9,D9,O9,P9,B9,$9,F9=b(()=>{for(mt(R_,"isNothing"),mt(M_,"isObject"),mt(D_,"toArray"),mt(O_,"extend"),mt(P_,"repeat"),mt(B_,"isNegativeZero"),BA={isNothing:R_,isObject:M_,toArray:D_,repeat:P_,isNegativeZero:B_,extend:O_},mt($_,"formatError"),mt(F_,"YAMLException$1"),((F_.prototype=Object.create(Error.prototype)).constructor=F_).prototype.toString=mt(function(e){return this.name+": "+$_(this,e)},"toString"),$A=F_,mt(z_,"getLine"),mt(G_,"padStart"),mt(U_,"makeSnippet"),FA=U_,zA=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],GA=["scalar","sequence","mapping"],mt(q_,"compileStyleAliases"),mt(j_,"Type$1"),UA=j_,mt(Y_,"compileList"),mt(W_,"compileMap"),mt(H_,"Schema$1"),H_.prototype.extend=mt(function(e){var t=[],r=[];if(e instanceof UA)r.push(e);else if(Array.isArray(e))r=r.concat(e);else{if(!e||!Array.isArray(e.implicit)&&!Array.isArray(e.explicit))throw new $A("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");e.implicit&&(t=t.concat(e.implicit)),e.explicit&&(r=r.concat(e.explicit))}return t.forEach(function(e){if(!(e instanceof UA))throw new $A("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(e.loadKind&&"scalar"!==e.loadKind)throw new $A("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(e.multi)throw new $A("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),r.forEach(function(e){if(!(e instanceof UA))throw new $A("Specified list of YAML types (or a single Type object) contains a non-Type object.")}),(e=Object.create(H_.prototype)).implicit=(this.implicit||[]).concat(t),e.explicit=(this.explicit||[]).concat(r),e.compiledImplicit=Y_(e,"implicit"),e.compiledExplicit=Y_(e,"explicit"),e.compiledTypeMap=W_(e.compiledImplicit,e.compiledExplicit),e},"extend"),YA=H_,T9=new UA("tag:yaml.org,2002:str",{kind:"scalar",construct:mt(function(e){return null!==e?e:""},"construct")}),VA=new UA("tag:yaml.org,2002:seq",{kind:"sequence",construct:mt(function(e){return null!==e?e:[]},"construct")}),XA=new UA("tag:yaml.org,2002:map",{kind:"mapping",construct:mt(function(e){return null!==e?e:{}},"construct")}),YA=new YA({explicit:[T9,VA,XA]}),mt(V_,"resolveYamlNull"),mt(X_,"constructYamlNull"),mt(K_,"isNull"),T9=new UA("tag:yaml.org,2002:null",{kind:"scalar",resolve:V_,construct:X_,predicate:K_,represent:{canonical:mt(function(){return"~"},"canonical"),lowercase:mt(function(){return"null"},"lowercase"),uppercase:mt(function(){return"NULL"},"uppercase"),camelcase:mt(function(){return"Null"},"camelcase"),empty:mt(function(){return""},"empty")},defaultStyle:"lowercase"}),mt(Z_,"resolveYamlBoolean"),mt(Q_,"constructYamlBoolean"),mt(J_,"isBoolean"),VA=new UA("tag:yaml.org,2002:bool",{kind:"scalar",resolve:Z_,construct:Q_,predicate:J_,represent:{lowercase:mt(function(e){return e?"true":"false"},"lowercase"),uppercase:mt(function(e){return e?"TRUE":"FALSE"},"uppercase"),camelcase:mt(function(e){return e?"True":"False"},"camelcase")},defaultStyle:"lowercase"}),mt(eS,"isHexCode"),mt(tS,"isOctCode"),mt(rS,"isDecCode"),mt(nS,"resolveYamlInteger"),mt(iS,"constructYamlInteger"),mt(aS,"isInteger"),XA=new UA("tag:yaml.org,2002:int",{kind:"scalar",resolve:nS,construct:iS,predicate:aS,represent:{binary:mt(function(e){return 0<=e?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},"binary"),octal:mt(function(e){return 0<=e?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},"octal"),decimal:mt(function(e){return e.toString(10)},"decimal"),hexadecimal:mt(function(e){return 0<=e?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)},"hexadecimal")},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),qA=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),mt(sS,"resolveYamlFloat"),mt(oS,"constructYamlFloat"),jA=/^[-+]?[0-9]+e/,mt(lS,"representYamlFloat"),mt(cS,"isFloat"),ZA=new UA("tag:yaml.org,2002:float",{kind:"scalar",resolve:sS,construct:oS,predicate:cS,represent:lS,defaultStyle:"lowercase"}),YA=YA.extend({implicit:[T9,VA,XA,ZA]}),T9=YA,WA=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),HA=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$"),mt(hS,"resolveYamlTimestamp"),mt(uS,"constructYamlTimestamp"),mt(dS,"represen Line truncated `:""}function PA(e,t){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+t+" instead, which is now safe by default.")}}var BA,$A,FA,zA,GA,UA,qA,jA,YA,WA,HA,VA,XA,KA,ZA,QA,JA,e9,t9,r9,n9,i9,a9,s9,o9,l9,c9,h9,u9,d9,p9,g9,f9,m9,y9,v9,x9,b9,w9,k9,T9,E9,C9,S9,_9,A9,L9,N9,I9,R9,M9,D9,O9,P9,B9,$9,F9=b(()=>{for(mt(RS,"isNothing"),mt(MS,"isObject"),mt(DS,"toArray"),mt(OS,"extend"),mt(PS,"repeat"),mt(BS,"isNegativeZero"),BA={isNothing:RS,isObject:MS,toArray:DS,repeat:PS,isNegativeZero:BS,extend:OS},mt($S,"formatError"),mt(FS,"YAMLException$1"),((FS.prototype=Object.create(Error.prototype)).constructor=FS).prototype.toString=mt(function(e){return this.name+": "+$S(this,e)},"toString"),$A=FS,mt(zS,"getLine"),mt(GS,"padStart"),mt(US,"makeSnippet"),FA=US,zA=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],GA=["scalar","sequence","mapping"],mt(qS,"compileStyleAliases"),mt(jS,"Type$1"),UA=jS,mt(YS,"compileList"),mt(WS,"compileMap"),mt(HS,"Schema$1"),HS.prototype.extend=mt(function(e){var t=[],r=[];if(e instanceof UA)r.push(e);else if(Array.isArray(e))r=r.concat(e);else{if(!e||!Array.isArray(e.implicit)&&!Array.isArray(e.explicit))throw new $A("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");e.implicit&&(t=t.concat(e.implicit)),e.explicit&&(r=r.concat(e.explicit))}return t.forEach(function(e){if(!(e instanceof UA))throw new $A("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(e.loadKind&&"scalar"!==e.loadKind)throw new $A("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(e.multi)throw new $A("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),r.forEach(function(e){if(!(e instanceof UA))throw new $A("Specified list of YAML types (or a single Type object) contains a non-Type object.")}),(e=Object.create(HS.prototype)).implicit=(this.implicit||[]).concat(t),e.explicit=(this.explicit||[]).concat(r),e.compiledImplicit=YS(e,"implicit"),e.compiledExplicit=YS(e,"explicit"),e.compiledTypeMap=WS(e.compiledImplicit,e.compiledExplicit),e},"extend"),YA=HS,T9=new UA("tag:yaml.org,2002:str",{kind:"scalar",construct:mt(function(e){return null!==e?e:""},"construct")}),VA=new UA("tag:yaml.org,2002:seq",{kind:"sequence",construct:mt(function(e){return null!==e?e:[]},"construct")}),XA=new UA("tag:yaml.org,2002:map",{kind:"mapping",construct:mt(function(e){return null!==e?e:{}},"construct")}),YA=new YA({explicit:[T9,VA,XA]}),mt(VS,"resolveYamlNull"),mt(XS,"constructYamlNull"),mt(KS,"isNull"),T9=new UA("tag:yaml.org,2002:null",{kind:"scalar",resolve:VS,construct:XS,predicate:KS,represent:{canonical:mt(function(){return"~"},"canonical"),lowercase:mt(function(){return"null"},"lowercase"),uppercase:mt(function(){return"NULL"},"uppercase"),camelcase:mt(function(){return"Null"},"camelcase"),empty:mt(function(){return""},"empty")},defaultStyle:"lowercase"}),mt(ZS,"resolveYamlBoolean"),mt(QS,"constructYamlBoolean"),mt(JS,"isBoolean"),VA=new UA("tag:yaml.org,2002:bool",{kind:"scalar",resolve:ZS,construct:QS,predicate:JS,represent:{lowercase:mt(function(e){return e?"true":"false"},"lowercase"),uppercase:mt(function(e){return e?"TRUE":"FALSE"},"uppercase"),camelcase:mt(function(e){return e?"True":"False"},"camelcase")},defaultStyle:"lowercase"}),mt(e_,"isHexCode"),mt(t_,"isOctCode"),mt(r_,"isDecCode"),mt(n_,"resolveYamlInteger"),mt(i_,"constructYamlInteger"),mt(a_,"isInteger"),XA=new UA("tag:yaml.org,2002:int",{kind:"scalar",resolve:n_,construct:i_,predicate:a_,represent:{binary:mt(function(e){return 0<=e?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},"binary"),octal:mt(function(e){return 0<=e?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},"octal"),decimal:mt(function(e){return e.toString(10)},"decimal"),hexadecimal:mt(function(e){return 0<=e?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)},"hexadecimal")},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),qA=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),mt(s_,"resolveYamlFloat"),mt(o_,"constructYamlFloat"),jA=/^[-+]?[0-9]+e/,mt(l_,"representYamlFloat"),mt(c_,"isFloat"),ZA=new UA("tag:yaml.org,2002:float",{kind:"scalar",resolve:s_,construct:o_,predicate:c_,represent:l_,defaultStyle:"lowercase"}),YA=YA.extend({implicit:[T9,VA,XA,ZA]}),T9=YA,WA=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),HA=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$"),mt(h_,"resolveYamlTimestamp"),mt(u_,"constructYamlTimestamp"),mt(d_,"represen Line truncated
\r`,mt(gS,"resolveYamlBinary"),mt(fS,"constructYamlBinary"),mt(mS,"representYamlBinary"),mt(yS,"isBinary"),ZA=new UA("tag:yaml.org,2002:binary",{kind:"scalar",resolve:gS,construct:fS,predicate:yS,represent:mS}),QA=Object.prototype.hasOwnProperty,JA=Object.prototype.toString,mt(vS,"resolveYamlOmap"),mt(xS,"constructYamlOmap"),e9=new UA("tag:yaml.org,2002:omap",{kind:"sequence",resolve:vS,construct:xS}),t9=Object.prototype.toString,mt(bS,"resolveYamlPairs"),mt(wS,"constructYamlPairs"),r9=new UA("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:bS,construct:wS}),n9=Object.prototype.hasOwnProperty,mt(kS,"resolveYamlSet"),mt(TS,"constructYamlSet"),i9=new UA("tag:yaml.org,2002:set",{kind:"mapping",resolve:kS,construct:TS}),a9=T9.extend({implicit:[VA,XA],explicit:[ZA,e9,r9,i9]}),s9=Object.prototype.hasOwnProperty,h9=4,u9=o9=1,d9=l9=2,p9=c9=3,g9=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,f9=/[\x85\u2028\u2029]/,m9=/[,\[\]\{\}]/,y9=/^(?:!|!!|![a-z\-]+!)$/i,v9=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i,mt(ES,"_class"),mt(CS,"is_EOL"),mt(_S,"is_WHITE_SPACE"),mt(SS,"is_WS_OR_EOL"),mt(AS,"is_FLOW_INDICATOR"),mt(LS,"fromHexCode"),mt(NS,"escapedHexLen"),mt(IS,"fromDecimalCode"),mt(RS,"simpleEscapeSequence"),mt(MS,"charFromCodepoint"),x9=new Array(256),b9=new Array(256),w9=0;w9<256;w9++)x9[w9]=RS(w9)?1:0,b9[w9]=RS(w9);mt(DS,"State$1"),mt(OS,"generateError"),mt(PS,"throwError"),mt(BS,"throwWarning"),k9={YAML:mt(function(e,t,r){var n,i;null!==e.version&&PS(e,"duplication of %YAML directive"),1!==r.length&&PS(e,"YAML directive accepts exactly one argument"),null===(i=/^([0-9]+)\.([0-9]+)$/.exec(r[0]))&&PS(e,"ill-formed argument of the YAML directive"),n=parseInt(i[1],10),i=parseInt(i[2],10),1!==n&&PS(e,"unacceptable YAML version of the document"),e.version=r[0],e.checkLineBreaks=i<2,1!==i&&2!==i&&BS(e,"unsupported YAML version of the document")},"handleYamlDirective"),TAG:mt(function(e,t,r){var n;2!==r.length&&PS(e,"TAG directive accepts exactly two arguments"),n=r[1],y9.test(r=r[0])||PS(e,"ill-formed tag handle (first argument) of the TAG directive"),s9.call(e.tagMap,r)&&PS(e,'there is a previously declared suffix for "'+r+'" tag handle'),v9.test(n)||PS(e,"ill-formed tag prefix (second argument) of the TAG directive");try{n=decodeURIComponent(n)}catch{PS(e,"tag prefix is malformed: "+n)}e.tagMap[r]=n},"handleTagDirective")},mt($S,"captureSegment"),mt(FS,"mergeMappings"),mt(zS,"storeMappingPair"),mt(GS,"readLineBreak"),mt(US,"skipSeparationSpace"),mt(qS,"testDocumentSeparator"),mt(jS,"writeFoldedLines"),mt(YS,"readPlainScalar"),mt(WS,"readSingleQuotedScalar"),mt(HS,"readDoubleQuotedScalar"),mt(VS,"readFlowCollection"),mt(XS,"readBlockScalar"),mt(KS,"readBlockSequence"),mt(ZS,"readBlockMapping"),mt(QS,"readTagProperty"),mt(JS,"readAnchorProperty"),mt(eA,"readAlias"),mt(tA,"composeNode"),mt(rA,"readDocument"),mt(nA,"loadDocuments"),mt(iA,"loadAll$1"),mt(aA,"load$1"),T9={loadAll:iA,load:aA},E9=Object.prototype.toString,C9=Object.prototype.hasOwnProperty,_9=65279,S9=10,A9={0:"\\0",7:"\\a",8:"\\b",9:"\\t",10:"\\n",11:"\\v",12:"\\f",13:"\\r",27:"\\e",34:'\\"',92:"\\\\",133:"\\N",160:"\\_",8232:"\\L",8233:"\\P"},L9=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],N9=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/,mt(sA,"compileStyleMap"),mt(oA,"encodeHex"),I9=2,mt(lA,"State"),mt(cA,"indentString"),mt(hA,"generateNextLine"),mt(uA,"testImplicitResolving"),mt(dA,"isWhitespace"),mt(pA,"isPrintable"),mt(gA,"isNsCharOrWhitespace"),mt(fA,"isPlainSafe"),mt(mA,"isPlainSafeFirst"),mt(yA,"isPlainSafeLast"),mt(vA,"codePointAt"),mt(xA,"needIndentIndicator"),R9=1,M9=2,D9=3,O9=4,P9=5,mt(bA,"chooseScalarStyle"),mt(wA,"writeScalar"),mt(kA,"blockHeader"),mt(TA,"dropEndingNewline"),mt(EA,"foldString"),mt(CA,"foldLine"),mt(_A,"escapeString"),mt(SA,"writeFlowSequence"),mt(AA,"writeBlockSequence"),mt(LA,"writeFlowMapping"),mt(NA,"writeBlockMapping"),mt(IA,"detectType"),mt(RA,"writeNode"),mt(MA,"getDuplicateReferences"),mt(DA,"inspectNode"),mt(OA,"dump$1"),mt(PA,"renamed"),B9=YA,$9=T9.load,PA("safeLoad","load"),PA("safeLoadAll","loadAll"),PA("safeDump","dump")});function z9(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}function G9(e){Z9=e}function U9(e,t=""){let n="string"==typeof e?e:e.source,i={replace:mt((e,t)=>{let r="string"==typeof t?t:t.source;return r=r.replace(J9.caret,"$1"),n=n.replace(e,r),i},"replace"),getRegex:mt(()=>new RegExp(n,t),"getRegex")};return i}function q9(e,t){if(t){if(J9.escapeTest.test(e))return e.replace(J9.escapeReplace,EL)}else if(J9.escapeTestNoEncode.test(e))return e.replace(J9.escapeReplaceNoEncode,EL);return e}function j9(e){try{e=encodeURI(e).replace(J9.percentDecode,"%")}catch{return null}return e}function Y9(e,t){let r=e.replace(J9.findPipe,(e,t,r)=>{let n=!1,i=t;for(;0<=--i&& Line truncated \r`,mt(g_,"resolveYamlBinary"),mt(f_,"constructYamlBinary"),mt(m_,"representYamlBinary"),mt(y_,"isBinary"),ZA=new UA("tag:yaml.org,2002:binary",{kind:"scalar",resolve:g_,construct:f_,predicate:y_,represent:m_}),QA=Object.prototype.hasOwnProperty,JA=Object.prototype.toString,mt(v_,"resolveYamlOmap"),mt(x_,"constructYamlOmap"),e9=new UA("tag:yaml.org,2002:omap",{kind:"sequence",resolve:v_,construct:x_}),t9=Object.prototype.toString,mt(b_,"resolveYamlPairs"),mt(w_,"constructYamlPairs"),r9=new UA("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:b_,construct:w_}),n9=Object.prototype.hasOwnProperty,mt(k_,"resolveYamlSet"),mt(T_,"constructYamlSet"),i9=new UA("tag:yaml.org,2002:set",{kind:"mapping",resolve:k_,construct:T_}),a9=T9.extend({implicit:[VA,XA],explicit:[ZA,e9,r9,i9]}),s9=Object.prototype.hasOwnProperty,h9=4,u9=o9=1,d9=l9=2,p9=c9=3,g9=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,f9=/[\x85\u2028\u2029]/,m9=/[,\[\]\{\}]/,y9=/^(?:!|!!|![a-z\-]+!)$/i,v9=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i,mt(E_,"_class"),mt(C_,"is_EOL"),mt(S_,"is_WHITE_SPACE"),mt(__,"is_WS_OR_EOL"),mt(A_,"is_FLOW_INDICATOR"),mt(L_,"fromHexCode"),mt(N_,"escapedHexLen"),mt(I_,"fromDecimalCode"),mt(R_,"simpleEscapeSequence"),mt(M_,"charFromCodepoint"),x9=new Array(256),b9=new Array(256),w9=0;w9<256;w9++)x9[w9]=R_(w9)?1:0,b9[w9]=R_(w9);mt(D_,"State$1"),mt(O_,"generateError"),mt(P_,"throwError"),mt(B_,"throwWarning"),k9={YAML:mt(function(e,t,r){var n,i;null!==e.version&&P_(e,"duplication of %YAML directive"),1!==r.length&&P_(e,"YAML directive accepts exactly one argument"),null===(i=/^([0-9]+)\.([0-9]+)$/.exec(r[0]))&&P_(e,"ill-formed argument of the YAML directive"),n=parseInt(i[1],10),i=parseInt(i[2],10),1!==n&&P_(e,"unacceptable YAML version of the document"),e.version=r[0],e.checkLineBreaks=i<2,1!==i&&2!==i&&B_(e,"unsupported YAML version of the document")},"handleYamlDirective"),TAG:mt(function(e,t,r){var n;2!==r.length&&P_(e,"TAG directive accepts exactly two arguments"),n=r[1],y9.test(r=r[0])||P_(e,"ill-formed tag handle (first argument) of the TAG directive"),s9.call(e.tagMap,r)&&P_(e,'there is a previously declared suffix for "'+r+'" tag handle'),v9.test(n)||P_(e,"ill-formed tag prefix (second argument) of the TAG directive");try{n=decodeURIComponent(n)}catch{P_(e,"tag prefix is malformed: "+n)}e.tagMap[r]=n},"handleTagDirective")},mt($_,"captureSegment"),mt(F_,"mergeMappings"),mt(z_,"storeMappingPair"),mt(G_,"readLineBreak"),mt(U_,"skipSeparationSpace"),mt(q_,"testDocumentSeparator"),mt(j_,"writeFoldedLines"),mt(Y_,"readPlainScalar"),mt(W_,"readSingleQuotedScalar"),mt(H_,"readDoubleQuotedScalar"),mt(V_,"readFlowCollection"),mt(X_,"readBlockScalar"),mt(K_,"readBlockSequence"),mt(Z_,"readBlockMapping"),mt(Q_,"readTagProperty"),mt(J_,"readAnchorProperty"),mt(eA,"readAlias"),mt(tA,"composeNode"),mt(rA,"readDocument"),mt(nA,"loadDocuments"),mt(iA,"loadAll$1"),mt(aA,"load$1"),T9={loadAll:iA,load:aA},E9=Object.prototype.toString,C9=Object.prototype.hasOwnProperty,S9=65279,_9=10,A9={0:"\\0",7:"\\a",8:"\\b",9:"\\t",10:"\\n",11:"\\v",12:"\\f",13:"\\r",27:"\\e",34:'\\"',92:"\\\\",133:"\\N",160:"\\_",8232:"\\L",8233:"\\P"},L9=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],N9=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/,mt(sA,"compileStyleMap"),mt(oA,"encodeHex"),I9=2,mt(lA,"State"),mt(cA,"indentString"),mt(hA,"generateNextLine"),mt(uA,"testImplicitResolving"),mt(dA,"isWhitespace"),mt(pA,"isPrintable"),mt(gA,"isNsCharOrWhitespace"),mt(fA,"isPlainSafe"),mt(mA,"isPlainSafeFirst"),mt(yA,"isPlainSafeLast"),mt(vA,"codePointAt"),mt(xA,"needIndentIndicator"),R9=1,M9=2,D9=3,O9=4,P9=5,mt(bA,"chooseScalarStyle"),mt(wA,"writeScalar"),mt(kA,"blockHeader"),mt(TA,"dropEndingNewline"),mt(EA,"foldString"),mt(CA,"foldLine"),mt(SA,"escapeString"),mt(_A,"writeFlowSequence"),mt(AA,"writeBlockSequence"),mt(LA,"writeFlowMapping"),mt(NA,"writeBlockMapping"),mt(IA,"detectType"),mt(RA,"writeNode"),mt(MA,"getDuplicateReferences"),mt(DA,"inspectNode"),mt(OA,"dump$1"),mt(PA,"renamed"),B9=YA,$9=T9.load,PA("safeLoad","load"),PA("safeLoadAll","loadAll"),PA("safeDump","dump")});function z9(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}function G9(e){Z9=e}function U9(e,t=""){let n="string"==typeof e?e:e.source,i={replace:mt((e,t)=>{let r="string"==typeof t?t:t.source;return r=r.replace(J9.caret,"$1"),n=n.replace(e,r),i},"replace"),getRegex:mt(()=>new RegExp(n,t),"getRegex")};return i}function q9(e,t){if(t){if(J9.escapeTest.test(e))return e.replace(J9.escapeReplace,EL)}else if(J9.escapeTestNoEncode.test(e))return e.replace(J9.escapeReplaceNoEncode,EL);return e}function j9(e){try{e=encodeURI(e).replace(J9.percentDecode,"%")}catch{return null}return e}function Y9(e,t){let r=e.replace(J9.findPipe,(e,t,r)=>{let n=!1,i=t;for(;0<=--i&& Line truncated
`).map(e=>{var t=e.match(r.other.beginningSpace);return null!==t&&([t]=t,t.length>=n.length)?e.slice(n.length):e}).join(` `).map(e=>{var t=e.match(r.other.beginningSpace);return null!==t&&([t]=t,t.length>=n.length)?e.slice(n.length):e}).join(`
`)}function K9(e,t){return RL.parse(e,t)}var Z9,Q9,J9,eL,tL,rL,nL,iL,aL,sL,oL,lL,cL,hL,uL,dL,pL,gL,fL,mL,yL,vL,xL,bL,wL,kL,TL,EL,CL,_L,SL,AL,LL,NL,IL,RL,ML=b(()=>{mt(z9,"L"),Z9=z9(),mt(G9,"G"),Q9={exec:mt(()=>null,"exec")},mt(U9,"h"),J9={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:mt(e=>new RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),"listItemRegex"),nextBulletRegex:mt(e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),"nextBulletRegex"),hrRegex:mt(e=>new RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),"hrRegex"),fencesBeginRegex:mt(e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),"fencesBeginRegex"),headingBeginRegex:mt(e=>new RegExp(`^ {0,${Math.min(3,e-1)}}#`),"headingBeginRegex"),htmlBeginRegex:mt(e=>new RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i"),"htmlBeginRegex")},aL=/^(?:[ \t]*(?:\n|$))+/,sL=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,rL=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hL=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,nL=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,iL=/(?:[*+-]|\d{1,9}[.)])/,xL=U9(gL=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g,iL).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(),gL=U9(gL).replace(/bull/g,iL).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(),yL=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,uL=/^[^\n]+/,fL=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,tL=U9(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",fL).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),iL=U9(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,iL).getRegex(),vL="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",pL=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,bL=U9("^ {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[ \t]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$))","i").replace("comment",pL).replace("tag",vL).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),dL=U9(yL).replace("hr",hL).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote","Line truncated `)}function K9(e,t){return RL.parse(e,t)}var Z9,Q9,J9,eL,tL,rL,nL,iL,aL,sL,oL,lL,cL,hL,uL,dL,pL,gL,fL,mL,yL,vL,xL,bL,wL,kL,TL,EL,CL,SL,_L,AL,LL,NL,IL,RL,ML=b(()=>{mt(z9,"L"),Z9=z9(),mt(G9,"G"),Q9={exec:mt(()=>null,"exec")},mt(U9,"h"),J9={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:mt(e=>new RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),"listItemRegex"),nextBulletRegex:mt(e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),"nextBulletRegex"),hrRegex:mt(e=>new RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),"hrRegex"),fencesBeginRegex:mt(e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),"fencesBeginRegex"),headingBeginRegex:mt(e=>new RegExp(`^ {0,${Math.min(3,e-1)}}#`),"headingBeginRegex"),htmlBeginRegex:mt(e=>new RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i"),"htmlBeginRegex")},aL=/^(?:[ \t]*(?:\n|$))+/,sL=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,rL=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hL=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,nL=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,iL=/(?:[*+-]|\d{1,9}[.)])/,xL=U9(gL=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g,iL).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(),gL=U9(gL).replace(/bull/g,iL).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(),yL=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,uL=/^[^\n]+/,fL=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,tL=U9(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",fL).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),iL=U9(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,iL).getRegex(),vL="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",pL=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,bL=U9("^ {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[ \t]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$))","i").replace("comment",pL).replace("tag",vL).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),dL=U9(yL).replace("hr",hL).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote","Line truncated
]`).replace("lheading",xL).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},nL=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,bL=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,iL=/^( {2,}|\\)\n(?!\s*$)/,aL=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,dL=/[\p{P}\p{S}]/u,uL=/[\s\p{P}\p{S}]/u,gL=/[^\s\p{P}\p{S}]/u,sL=U9(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,uL).getRegex(),vL=/(?!~)[\p{P}\p{S}]/u,yL=/(?!~)[\s\p{P}\p{S}]/u,hL=/(?:[^\s\p{P}\p{S}]|~)/u,xL=/\[[^\[\]]*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)|`[^`]*?`|<(?! )[^<>]*?>/g,IL=U9(oL=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,"u").replace(/punct/g,dL).getRegex(),oL=U9(oL,"u").replace(/punct/g,vL).getRegex(),lL=U9(cL="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)","gu").replace(/notPunctSpace/g,gL).replace(/punctSpace/g,uL).replace(/punct/g,dL).getRegex(),cL=U9(cL,"gu").replace(/notPunctSpace/g,hL).replace(/punctSpace/g,yL).replace(/punct/g,vL).getRegex(),hL=U9("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,gL).replace(/punctSpace/g,uL).replace(/punct/g,dL).getRegex(),yL=U9(/\\(punct)/,"gu").replace(/punct/g,dL).getRegex(),vL=U9(/^<(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(),gL=U9(pL).replace("(?:--\x3e|$)","--\x3e").getRegex(),uL=U9("^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",gL).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),dL=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`[^`]*`|[^\[\]\\`])*?/,pL=U9(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",dL).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),gL=U9(/^!?\[(label)\]\[(ref)\]/).replace("label",dL).replace("ref",fL).getRegex(),fL=U9(/^!?\[(ref)\](?:\[\])?/).replace("ref",fL).getRegex(),mL=U9("reflink|nolink(?!\\()","g").replace("reflink",gL).replace("nolink",fL).getRegex(),vL={...yL={_backpedal:Q9,anyPunctuation:yL,autolink:vL,blockSkip:xL,br:iL,code:bL,del:Q9,emStrongLDelim:IL,emStrongRDelimAst:lL,emStrongRDelimUnd:hL,escape:nL,link:pL,nolink:fL,punctuation:sL,reflink:gL,reflinkSearch:mL,tag:uL,text:aL,url:Q9},link:U9(/^!?\[(label)\]\((.*?)\)/).replace("label",dL).getRegex(),reflink:U9(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",dL).getRegex()},xL={...yL,emStrongRDelimAst:cL,emStrongLDelim:oL,url:U9(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").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:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},bL={...xL,br:U9(iL).replace("{2,}","*").getRegex(),text:U9(xL.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},wL={normal:eL,gfm:tL,pedantic:rL},kL={normal:yL,gfm:xL,breaks:bL,pedantic:vL},TL={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},EL=mt(e=>TL[e],"ke"),mt(q9,"w"),mt(j9,"J"),mt(Y9,"V"),mt(W9,"z"),mt(H9,"ge"),mt(V9,"fe"),mt(X9,"Je"),CL=class{static{mt(this,"y")}options;rules;lexer;constructor(e){this.options=e||Z9}space(e){if((e=this.rules.block.newline.exec(e))&&0<e[0].length)return{type:"space",raw:e[0]}}code(e){var t;if(e=this.rules.block.code.exec(e))return t=e[0].replace(this.rules.other.codeRemoveIndent,""),{type:"code",raw:e[0],codeBlockStyle:"indented",text:this.options.pedantic?t:W9(t,` ]`).replace("lheading",xL).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},nL=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,bL=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,iL=/^( {2,}|\\)\n(?!\s*$)/,aL=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,dL=/[\p{P}\p{S}]/u,uL=/[\s\p{P}\p{S}]/u,gL=/[^\s\p{P}\p{S}]/u,sL=U9(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,uL).getRegex(),vL=/(?!~)[\p{P}\p{S}]/u,yL=/(?!~)[\s\p{P}\p{S}]/u,hL=/(?:[^\s\p{P}\p{S}]|~)/u,xL=/\[[^\[\]]*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)|`[^`]*?`|<(?! )[^<>]*?>/g,IL=U9(oL=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,"u").replace(/punct/g,dL).getRegex(),oL=U9(oL,"u").replace(/punct/g,vL).getRegex(),lL=U9(cL="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)","gu").replace(/notPunctSpace/g,gL).replace(/punctSpace/g,uL).replace(/punct/g,dL).getRegex(),cL=U9(cL,"gu").replace(/notPunctSpace/g,hL).replace(/punctSpace/g,yL).replace(/punct/g,vL).getRegex(),hL=U9("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,gL).replace(/punctSpace/g,uL).replace(/punct/g,dL).getRegex(),yL=U9(/\\(punct)/,"gu").replace(/punct/g,dL).getRegex(),vL=U9(/^<(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(),gL=U9(pL).replace("(?:--\x3e|$)","--\x3e").getRegex(),uL=U9("^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",gL).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),dL=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`[^`]*`|[^\[\]\\`])*?/,pL=U9(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",dL).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),gL=U9(/^!?\[(label)\]\[(ref)\]/).replace("label",dL).replace("ref",fL).getRegex(),fL=U9(/^!?\[(ref)\](?:\[\])?/).replace("ref",fL).getRegex(),mL=U9("reflink|nolink(?!\\()","g").replace("reflink",gL).replace("nolink",fL).getRegex(),vL={...yL={_backpedal:Q9,anyPunctuation:yL,autolink:vL,blockSkip:xL,br:iL,code:bL,del:Q9,emStrongLDelim:IL,emStrongRDelimAst:lL,emStrongRDelimUnd:hL,escape:nL,link:pL,nolink:fL,punctuation:sL,reflink:gL,reflinkSearch:mL,tag:uL,text:aL,url:Q9},link:U9(/^!?\[(label)\]\((.*?)\)/).replace("label",dL).getRegex(),reflink:U9(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",dL).getRegex()},xL={...yL,emStrongRDelimAst:cL,emStrongLDelim:oL,url:U9(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").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:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},bL={...xL,br:U9(iL).replace("{2,}","*").getRegex(),text:U9(xL.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},wL={normal:eL,gfm:tL,pedantic:rL},kL={normal:yL,gfm:xL,breaks:bL,pedantic:vL},TL={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},EL=mt(e=>TL[e],"ke"),mt(q9,"w"),mt(j9,"J"),mt(Y9,"V"),mt(W9,"z"),mt(H9,"ge"),mt(V9,"fe"),mt(X9,"Je"),CL=class{static{mt(this,"y")}options;rules;lexer;constructor(e){this.options=e||Z9}space(e){if((e=this.rules.block.newline.exec(e))&&0<e[0].length)return{type:"space",raw:e[0]}}code(e){var t;if(e=this.rules.block.code.exec(e))return t=e[0].replace(this.rules.other.codeRemoveIndent,""),{type:"code",raw:e[0],codeBlockStyle:"indented",text:this.options.pedantic?t:W9(t,`
`)}}fences(e){var t,r;if(e=this.rules.block.fences.exec(e))return r=X9(t=e[0],e[3]||"",this.rules),{type:"code",raw:t,lang:e[2]&&e[2].trim().replace(this.rules.inline.anyPunctuation,"$1"),text:r}}heading(t){var r;if(t=this.rules.block.heading.exec(t)){let e=t[2].trim();return this.rules.other.endingHash.test(e)&&(r=W9(e,"#"),!this.options.pedantic&&r&&!this.rules.other.endingSpaceChar.test(r)||(e=r.trim())),{type:"heading",raw:t[0],depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){if(e=this.rules.block.hr.exec(e))return{type:"hr",raw:W9(e[0],` `)}}fences(e){var t,r;if(e=this.rules.block.fences.exec(e))return r=X9(t=e[0],e[3]||"",this.rules),{type:"code",raw:t,lang:e[2]&&e[2].trim().replace(this.rules.inline.anyPunctuation,"$1"),text:r}}heading(t){var r;if(t=this.rules.block.heading.exec(t)){let e=t[2].trim();return this.rules.other.endingHash.test(e)&&(r=W9(e,"#"),!this.options.pedantic&&r&&!this.rules.other.endingSpaceChar.test(r)||(e=r.trim())),{type:"heading",raw:t[0],depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){if(e=this.rules.block.hr.exec(e))return{type:"hr",raw:W9(e[0],`
`)}}blockquote(e){if(e=this.rules.block.blockquote.exec(e)){let n=W9(e[0],` `)}}blockquote(e){if(e=this.rules.block.blockquote.exec(e)){let n=W9(e[0],`
@@ -405,7 +405,7 @@ Expecting `+A.join(", ")+", got '"+(this.terminals_[x]||x)+"'":"Parse error on l
`+i}a||i.trim()||(a=!0),t+=b+` `+i}a||i.trim()||(a=!0),t+=b+`
`,d=d.substring(b.length+1),n=x.slice(s)}c.loose||(u?c.loose=!0:this.rules.other.doubleBlankLine.test(t)&&(u=!0));let o=null,l;this.options.gfm&&(o=this.rules.other.listIsTask.exec(r))&&(l="[ ] "!==o[0],r=r.replace(this.rules.other.listReplaceTask,"")),c.items.push({type:"list_item",raw:t,task:!!o,checked:l,loose:!1,text:r,tokens:[]}),c.raw+=t}var r,n=c.items.at(-1);if(n){n.raw=n.raw.trimEnd(),n.text=n.text.trimEnd(),c.raw=c.raw.trimEnd();for(let e=0;e<c.items.length;e++)this.lexer.state.top=!1,c.items[e].tokens=this.lexer.blockTokens(c.items[e].text,[]),c.loose||(r=0<(r=c.items[e].tokens.filter(e=>"space"===e.type)).length&&r.some(e=>this.rules.other.anyLine.test(e.raw)),c.loose=r);if(c.loose)for(let e=0;e<c.items.length;e++)c.items[e].loose=!0;return c}}}html(e){if(e=this.rules.block.html.exec(e))return{type:"html",block:!0,raw:e[0],pre:"pre"===e[1]||"script"===e[1]||"style"===e[1],text:e[0]}}def(e){var t,r,n;if(e=this.rules.block.def.exec(e))return t=e[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),r=e[2]?e[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",n=e[3]&&e[3].substring(1,e[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"),{type:"def",tag:t,raw:e[0],href:r,title:n}}table(i){if((i=this.rules.block.table.exec(i))&&this.rules.other.tableDelimiter.test(i[2])){let t=Y9(i[1]),e=i[2].replace(this.rules.other.tableAlignChars,"").split("|"),r=i[3]?.trim()?i[3].replace(this.rules.other.tableRowBlankLine,"").split(` `,d=d.substring(b.length+1),n=x.slice(s)}c.loose||(u?c.loose=!0:this.rules.other.doubleBlankLine.test(t)&&(u=!0));let o=null,l;this.options.gfm&&(o=this.rules.other.listIsTask.exec(r))&&(l="[ ] "!==o[0],r=r.replace(this.rules.other.listReplaceTask,"")),c.items.push({type:"list_item",raw:t,task:!!o,checked:l,loose:!1,text:r,tokens:[]}),c.raw+=t}var r,n=c.items.at(-1);if(n){n.raw=n.raw.trimEnd(),n.text=n.text.trimEnd(),c.raw=c.raw.trimEnd();for(let e=0;e<c.items.length;e++)this.lexer.state.top=!1,c.items[e].tokens=this.lexer.blockTokens(c.items[e].text,[]),c.loose||(r=0<(r=c.items[e].tokens.filter(e=>"space"===e.type)).length&&r.some(e=>this.rules.other.anyLine.test(e.raw)),c.loose=r);if(c.loose)for(let e=0;e<c.items.length;e++)c.items[e].loose=!0;return c}}}html(e){if(e=this.rules.block.html.exec(e))return{type:"html",block:!0,raw:e[0],pre:"pre"===e[1]||"script"===e[1]||"style"===e[1],text:e[0]}}def(e){var t,r,n;if(e=this.rules.block.def.exec(e))return t=e[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),r=e[2]?e[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",n=e[3]&&e[3].substring(1,e[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"),{type:"def",tag:t,raw:e[0],href:r,title:n}}table(i){if((i=this.rules.block.table.exec(i))&&this.rules.other.tableDelimiter.test(i[2])){let t=Y9(i[1]),e=i[2].replace(this.rules.other.tableAlignChars,"").split("|"),r=i[3]?.trim()?i[3].replace(this.rules.other.tableRowBlankLine,"").split(`
`):[],n={type:"table",raw:i[0],header:[],align:[],rows:[]};if(t.length===e.length){for(var a of e)this.rules.other.tableAlignRight.test(a)?n.align.push("right"):this.rules.other.tableAlignCenter.test(a)?n.align.push("center"):this.rules.other.tableAlignLeft.test(a)?n.align.push("left"):n.align.push(null);for(let e=0;e<t.length;e++)n.header.push({text:t[e],tokens:this.lexer.inline(t[e]),header:!0,align:n.align[e]});for(var s of r)n.rows.push(Y9(s,n.header.length).map((e,t)=>({text:e,tokens:this.lexer.inline(e),header:!1,align:n.align[t]})));return n}}}lheading(e){if(e=this.rules.block.lheading.exec(e))return{type:"heading",raw:e[0],depth:"="===e[2].charAt(0)?1:2,text:e[1],tokens:this.lexer.inline(e[1])}}paragraph(e){var t;if(e=this.rules.block.paragraph.exec(e))return t=e[1].charAt(e[1].length-1)===` `):[],n={type:"table",raw:i[0],header:[],align:[],rows:[]};if(t.length===e.length){for(var a of e)this.rules.other.tableAlignRight.test(a)?n.align.push("right"):this.rules.other.tableAlignCenter.test(a)?n.align.push("center"):this.rules.other.tableAlignLeft.test(a)?n.align.push("left"):n.align.push(null);for(let e=0;e<t.length;e++)n.header.push({text:t[e],tokens:this.lexer.inline(t[e]),header:!0,align:n.align[e]});for(var s of r)n.rows.push(Y9(s,n.header.length).map((e,t)=>({text:e,tokens:this.lexer.inline(e),header:!1,align:n.align[t]})));return n}}}lheading(e){if(e=this.rules.block.lheading.exec(e))return{type:"heading",raw:e[0],depth:"="===e[2].charAt(0)?1:2,text:e[1],tokens:this.lexer.inline(e[1])}}paragraph(e){var t;if(e=this.rules.block.paragraph.exec(e))return t=e[1].charAt(e[1].length-1)===`
`?e[1].slice(0,-1):e[1],{type:"paragraph",raw:e[0],text:t,tokens:this.lexer.inline(t)}}text(e){if(e=this.rules.block.text.exec(e))return{type:"text",raw:e[0],text:e[0],tokens:this.lexer.inline(e[0])}}escape(e){if(e=this.rules.inline.escape.exec(e))return{type:"escape",raw:e[0],text:e[1]}}tag(e){if(e=this.rules.inline.tag.exec(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){if(r=this.rules.inline.link.exec(r)){var n,i=r[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(i)){if(!this.rules.other.endAngleBracket.test(i))return;var a=W9(i.slice(0,-1),"\\");if((i.length-a.length)%2==0)return}else{if(-2===(a=H9(r[2],"()")))return;-1<a&&(n=(0===r[0].indexOf("!")?5:4)+r[1].length+a,r[2]=r[2].substring(0,a),r[0]=r[0].substring(0,n).trim(),r[3]="")}let e=r[2],t="";return this.options.pedantic?(a=this.rules.other.pedanticHrefTitle.exec(e))&&(e=a[1],t=a[3]):t=r[3]?r[3].slice(1,-1):"",e=e.trim(),V9(r,{href:(e=this.rules.other.startAngleBracket.test(e)?this.options.pedantic&&!this.rules.other.endAngleBracket.test(i)?e.slice(1):e.slice(1,-1):e)&&e.replace(this.rules.inline.anyPunctuation,"$1"),title:t&&t.replace(this.rules.inline.anyPunctuation,"$1")},r[0],this.lexer,this.rules)}}reflink(e,t){var r;if(r=(r=this.rules.inline.reflink.exec(e))||this.rules.inline.nolink.exec(e))return(e=t[(r[2]||r[1]).replace(this.rules.other.multipleSpaceGlobal," ").toLowerCase()])?V9(r,e,r[0],this.lexer,this.rules):{type:"text",raw:t=r[0].charAt(0),text:t}}emStrong(s,o,e=""){let l=this.rules.inline.emStrongLDelim.exec(s);if(!(!l||l[3]&&e.match(this.rules.other.unicodeAlphaNumeric))&&(!l[1]&&!l[2]||!e||this.rules.inline.punctuation.exec(e))){let e=[...l[0]].length-1,t,r,n=e,i=0,a="*"===l[0][0]?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(a.lastIndex=0,o=o.slice(-1*s.length+e);null!=(l=a.exec(o));){var c,h;if(t=l[1]||l[2]||l[3]||l[4]||l[5]||l[6])if(r=[...t].length,l[3]||l[4])n+=r;else if((l[5]||l[6])&&e%3&&!((e+r)%3))i+=r;else if(!(0<(n-=r)))return r=Math.min(r,r+n+i),c=[...l[0]][0].length,c=s.slice(0,e+l.index+c+r),Math.min(e,r)%2?(h=c.slice(1,-1),{type:"em",raw:c,text:h,tokens:this.lexer.inlineTokens(h)}):(h=c.slice(2,-2),{type:"strong",raw:c,text:h,tokens:this.lexer.inlineTokens(h)})}}}codespan(n){if(n=this.rules.inline.code.exec(n)){let e=n[2].replace(this.rules.other.newLineCharGlobal," "),t=this.rules.other.nonSpaceChar.test(e),r=this.rules.other.startingSpaceChar.test(e)&&this.rules.other.endingSpaceChar.test(e);return t&&r&&(e=e.substring(1,e.length-1)),{type:"codespan",raw:n[0],text:e}}}br(e){if(e=this.rules.inline.br.exec(e))return{type:"br",raw:e[0]}}del(e){if(e=this.rules.inline.del.exec(e))return{type:"del",raw:e[0],text:e[2],tokens:this.lexer.inlineTokens(e[2])}}autolink(r){if(r=this.rules.inline.autolink.exec(r)){let e,t;return t="@"===r[2]?"mailto:"+(e=r[1]):e=r[1],{type:"link",raw:r[0],text:e,href:t,tokens:[{type:"text",raw:e,text:e}]}}}url(e){var r,n;if(r=this.rules.inline.url.exec(e)){let e,t;if("@"===r[2])e=r[0],t="mailto:"+e;else{for(;n=r[0],r[0]=this.rules.inline._backpedal.exec(r[0])?.[0]??"",n!==r[0];);e=r[0],t="www."===r[1]?"http://"+r[0]:r[0]}return{type:"link",raw:r[0],text:e,href:t,tokens:[{type:"text",raw:e,text:e}]}}}inlineText(e){var t;if(e=this.rules.inline.text.exec(e))return t=this.lexer.state.inRawBlock,{type:"text",raw:e[0],text:e[0],escaped:t}}},_L=class r{static{mt(this,"l")}tokens;options;state;tokenizer;inlineQueue;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||Z9,this.options.tokenizer=this.options.tokenizer||new CL,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,(this.tokenizer.lexer=this).inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0},e={other:J9,block:wL.normal,inline:kL.normal},this.options.pedantic?(e.block=wL.pedantic,e.inline=kL.pedantic):this.options.gfm&&(e.block=wL.gfm,this.options.breaks?e.inline=kL.breaks:e.inline=kL.gfm),this.tokenizer.rules=e}static get rules(){return{block:wL,inline:kL}}static lex(e,t){return new r(t).lex(e)}static lexInline(e,t){return new r(t).inlineTokens(e)}lex(e){e=e.replace(J9.carriageReturn,` `?e[1].slice(0,-1):e[1],{type:"paragraph",raw:e[0],text:t,tokens:this.lexer.inline(t)}}text(e){if(e=this.rules.block.text.exec(e))return{type:"text",raw:e[0],text:e[0],tokens:this.lexer.inline(e[0])}}escape(e){if(e=this.rules.inline.escape.exec(e))return{type:"escape",raw:e[0],text:e[1]}}tag(e){if(e=this.rules.inline.tag.exec(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){if(r=this.rules.inline.link.exec(r)){var n,i=r[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(i)){if(!this.rules.other.endAngleBracket.test(i))return;var a=W9(i.slice(0,-1),"\\");if((i.length-a.length)%2==0)return}else{if(-2===(a=H9(r[2],"()")))return;-1<a&&(n=(0===r[0].indexOf("!")?5:4)+r[1].length+a,r[2]=r[2].substring(0,a),r[0]=r[0].substring(0,n).trim(),r[3]="")}let e=r[2],t="";return this.options.pedantic?(a=this.rules.other.pedanticHrefTitle.exec(e))&&(e=a[1],t=a[3]):t=r[3]?r[3].slice(1,-1):"",e=e.trim(),V9(r,{href:(e=this.rules.other.startAngleBracket.test(e)?this.options.pedantic&&!this.rules.other.endAngleBracket.test(i)?e.slice(1):e.slice(1,-1):e)&&e.replace(this.rules.inline.anyPunctuation,"$1"),title:t&&t.replace(this.rules.inline.anyPunctuation,"$1")},r[0],this.lexer,this.rules)}}reflink(e,t){var r;if(r=(r=this.rules.inline.reflink.exec(e))||this.rules.inline.nolink.exec(e))return(e=t[(r[2]||r[1]).replace(this.rules.other.multipleSpaceGlobal," ").toLowerCase()])?V9(r,e,r[0],this.lexer,this.rules):{type:"text",raw:t=r[0].charAt(0),text:t}}emStrong(s,o,e=""){let l=this.rules.inline.emStrongLDelim.exec(s);if(!(!l||l[3]&&e.match(this.rules.other.unicodeAlphaNumeric))&&(!l[1]&&!l[2]||!e||this.rules.inline.punctuation.exec(e))){let e=[...l[0]].length-1,t,r,n=e,i=0,a="*"===l[0][0]?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(a.lastIndex=0,o=o.slice(-1*s.length+e);null!=(l=a.exec(o));){var c,h;if(t=l[1]||l[2]||l[3]||l[4]||l[5]||l[6])if(r=[...t].length,l[3]||l[4])n+=r;else if((l[5]||l[6])&&e%3&&!((e+r)%3))i+=r;else if(!(0<(n-=r)))return r=Math.min(r,r+n+i),c=[...l[0]][0].length,c=s.slice(0,e+l.index+c+r),Math.min(e,r)%2?(h=c.slice(1,-1),{type:"em",raw:c,text:h,tokens:this.lexer.inlineTokens(h)}):(h=c.slice(2,-2),{type:"strong",raw:c,text:h,tokens:this.lexer.inlineTokens(h)})}}}codespan(n){if(n=this.rules.inline.code.exec(n)){let e=n[2].replace(this.rules.other.newLineCharGlobal," "),t=this.rules.other.nonSpaceChar.test(e),r=this.rules.other.startingSpaceChar.test(e)&&this.rules.other.endingSpaceChar.test(e);return t&&r&&(e=e.substring(1,e.length-1)),{type:"codespan",raw:n[0],text:e}}}br(e){if(e=this.rules.inline.br.exec(e))return{type:"br",raw:e[0]}}del(e){if(e=this.rules.inline.del.exec(e))return{type:"del",raw:e[0],text:e[2],tokens:this.lexer.inlineTokens(e[2])}}autolink(r){if(r=this.rules.inline.autolink.exec(r)){let e,t;return t="@"===r[2]?"mailto:"+(e=r[1]):e=r[1],{type:"link",raw:r[0],text:e,href:t,tokens:[{type:"text",raw:e,text:e}]}}}url(e){var r,n;if(r=this.rules.inline.url.exec(e)){let e,t;if("@"===r[2])e=r[0],t="mailto:"+e;else{for(;n=r[0],r[0]=this.rules.inline._backpedal.exec(r[0])?.[0]??"",n!==r[0];);e=r[0],t="www."===r[1]?"http://"+r[0]:r[0]}return{type:"link",raw:r[0],text:e,href:t,tokens:[{type:"text",raw:e,text:e}]}}}inlineText(e){var t;if(e=this.rules.inline.text.exec(e))return t=this.lexer.state.inRawBlock,{type:"text",raw:e[0],text:e[0],escaped:t}}},SL=class r{static{mt(this,"l")}tokens;options;state;tokenizer;inlineQueue;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||Z9,this.options.tokenizer=this.options.tokenizer||new CL,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,(this.tokenizer.lexer=this).inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0},e={other:J9,block:wL.normal,inline:kL.normal},this.options.pedantic?(e.block=wL.pedantic,e.inline=kL.pedantic):this.options.gfm&&(e.block=wL.gfm,this.options.breaks?e.inline=kL.breaks:e.inline=kL.gfm),this.tokenizer.rules=e}static get rules(){return{block:wL,inline:kL}}static lex(e,t){return new r(t).lex(e)}static lexInline(e,t){return new r(t).inlineTokens(e)}lex(e){e=e.replace(J9.carriageReturn,`
`),this.blockTokens(e,this.tokens);for(let e=0;e<this.inlineQueue.length;e++){var t=this.inlineQueue[e];this.inlineTokens(t.src,t.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(i,r=[],n=!1){for(this.options.pedantic&&(i=i.replace(J9.tabCharGlobal," ").replace(J9.spaceLine,""));i;){let t;if(!this.options.extensions?.block?.some(e=>!!(t=e.call({lexer:this},i,r))&&(i=i.substring(t.raw.length),r.push(t),!0)))if(t=this.tokenizer.space(i)){i=i.substring(t.raw.length);var e=r.at(-1);1===t.raw.length&&void 0!==e?e.raw+=` `),this.blockTokens(e,this.tokens);for(let e=0;e<this.inlineQueue.length;e++){var t=this.inlineQueue[e];this.inlineTokens(t.src,t.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(i,r=[],n=!1){for(this.options.pedantic&&(i=i.replace(J9.tabCharGlobal," ").replace(J9.spaceLine,""));i;){let t;if(!this.options.extensions?.block?.some(e=>!!(t=e.call({lexer:this},i,r))&&(i=i.substring(t.raw.length),r.push(t),!0)))if(t=this.tokenizer.space(i)){i=i.substring(t.raw.length);var e=r.at(-1);1===t.raw.length&&void 0!==e?e.raw+=`
`:r.push(t)}else if(t=this.tokenizer.code(i))i=i.substring(t.raw.length),"paragraph"===(e=r.at(-1))?.type||"text"===e?.type?(e.raw+=(e.raw.endsWith(` `:r.push(t)}else if(t=this.tokenizer.code(i))i=i.substring(t.raw.length),"paragraph"===(e=r.at(-1))?.type||"text"===e?.type?(e.raw+=(e.raw.endsWith(`
`)?"":` `)?"":`
@@ -419,7 +419,7 @@ Expecting `+A.join(", ")+", got '"+(this.terminals_[x]||x)+"'":"Parse error on l
`+t.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=a.text):r.push(t),n=e.length!==i.length,i=i.substring(t.raw.length);else if(t=this.tokenizer.text(i)){i=i.substring(t.raw.length);var s=r.at(-1);"text"===s?.type?(s.raw+=(s.raw.endsWith(` `+t.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=a.text):r.push(t),n=e.length!==i.length,i=i.substring(t.raw.length);else if(t=this.tokenizer.text(i)){i=i.substring(t.raw.length);var s=r.at(-1);"text"===s?.type?(s.raw+=(s.raw.endsWith(`
`)?"":` `)?"":`
`)+t.raw,s.text+=` `)+t.raw,s.text+=`
`+t.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=s.text):r.push(t)}else if(i){if(s="Infinite loop on byte: "+i.charCodeAt(0),this.options.silent){console.error(s);break}throw new Error(s)}}}return this.state.top=!0,r}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(i,r=[]){let e=i,t=null;if(this.tokens.links){var n=Object.keys(this.tokens.links);if(0<n.length)for(;null!=(t=this.tokenizer.rules.inline.reflinkSearch.exec(e));)n.includes(t[0].slice(t[0].lastIndexOf("[")+1,-1))&&(e=e.slice(0,t.index)+"["+"a".repeat(t[0].length-2)+"]"+e.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(t=this.tokenizer.rules.inline.anyPunctuation.exec(e));)e=e.slice(0,t.index)+"++"+e.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;null!=(t=this.tokenizer.rules.inline.blockSkip.exec(e));)e=e.slice(0,t.index)+"["+"a".repeat(t[0].length-2)+"]"+e.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);e=this.options.hooks?.emStrongMask?.call({lexer:this},e)??e;let a=!1,s="";for(;i;){a||(s=""),a=!1;let t;if(!this.options.extensions?.inline?.some(e=>!!(t=e.call({lexer:this},i,r))&&(i=i.substring(t.raw.length),r.push(t),!0)))if(t=this.tokenizer.escape(i))i=i.substring(t.raw.length),r.push(t);else if(t=this.tokenizer.tag(i))i=i.substring(t.raw.length),r.push(t);else if(t=this.tokenizer.link(i))i=i.substring(t.raw.length),r.push(t);else if(t=this.tokenizer.reflink(i,this.tokens.links)){i=i.substring(t.raw.length);var o=r.at(-1);"text"===t.type&&"text"===o?.type?(o.raw+=t.raw,o.text+=t.text):r.push(t)}else if(t=this.tokenizer.emStrong(i,e,s))i=i.substring(t.raw.length),r.push(t);else if(t=this.tokenizer.codespan(i))i=i.substring(t.raw.length),r.push(t);else if(t=this.tokenizer.br(i))i=i.substring(t.raw.length),r.push(t);else if(t=this.tokenizer.del(i))i=i.substring(t.raw.length),r.push(t);else if(t=this.tokenizer.autolink(i))i=i.substring(t.raw.length),r.push(t);else if(!this.state.inLink&&(t=this.tokenizer.url(i)))i=i.substring(t.raw.length),r.push(t);else{let e=i;if(this.options.extensions?.startInline){let t=1/0,r=i.slice(1),n;this.options.extensions.startInline.forEach(e=>{"number"==typeof(n=e.call({lexer:this},r))&&0<=n&&(t=Math.min(t,n))}),t<1/0&&0<=t&&(e=i.substring(0,t+1))}if(t=this.tokenizer.inlineText(e))i=i.substring(t.raw.length),"_"!==t.raw.slice(-1)&&(s=t.raw.slice(-1)),a=!0,"text"===(o=r.at(-1))?.type?(o.raw+=t.raw,o.text+=t.text):r.push(t);else if(i){var l="Infinite loop on byte: "+i.charCodeAt(0);if(this.options.silent){console.error(l);break}throw new Error(l)}}}return r}},SL=class{static{mt(this,"P")}options;parser;constructor(e){this.options=e||Z9}space(e){return""}code({text:e,lang:t,escaped:r}){return t=(t||"").match(J9.notSpaceStart)?.[0],e=e.replace(J9.endingNewline,"")+` `+t.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=s.text):r.push(t)}else if(i){if(s="Infinite loop on byte: "+i.charCodeAt(0),this.options.silent){console.error(s);break}throw new Error(s)}}}return this.state.top=!0,r}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(i,r=[]){let e=i,t=null;if(this.tokens.links){var n=Object.keys(this.tokens.links);if(0<n.length)for(;null!=(t=this.tokenizer.rules.inline.reflinkSearch.exec(e));)n.includes(t[0].slice(t[0].lastIndexOf("[")+1,-1))&&(e=e.slice(0,t.index)+"["+"a".repeat(t[0].length-2)+"]"+e.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(t=this.tokenizer.rules.inline.anyPunctuation.exec(e));)e=e.slice(0,t.index)+"++"+e.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;null!=(t=this.tokenizer.rules.inline.blockSkip.exec(e));)e=e.slice(0,t.index)+"["+"a".repeat(t[0].length-2)+"]"+e.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);e=this.options.hooks?.emStrongMask?.call({lexer:this},e)??e;let a=!1,s="";for(;i;){a||(s=""),a=!1;let t;if(!this.options.extensions?.inline?.some(e=>!!(t=e.call({lexer:this},i,r))&&(i=i.substring(t.raw.length),r.push(t),!0)))if(t=this.tokenizer.escape(i))i=i.substring(t.raw.length),r.push(t);else if(t=this.tokenizer.tag(i))i=i.substring(t.raw.length),r.push(t);else if(t=this.tokenizer.link(i))i=i.substring(t.raw.length),r.push(t);else if(t=this.tokenizer.reflink(i,this.tokens.links)){i=i.substring(t.raw.length);var o=r.at(-1);"text"===t.type&&"text"===o?.type?(o.raw+=t.raw,o.text+=t.text):r.push(t)}else if(t=this.tokenizer.emStrong(i,e,s))i=i.substring(t.raw.length),r.push(t);else if(t=this.tokenizer.codespan(i))i=i.substring(t.raw.length),r.push(t);else if(t=this.tokenizer.br(i))i=i.substring(t.raw.length),r.push(t);else if(t=this.tokenizer.del(i))i=i.substring(t.raw.length),r.push(t);else if(t=this.tokenizer.autolink(i))i=i.substring(t.raw.length),r.push(t);else if(!this.state.inLink&&(t=this.tokenizer.url(i)))i=i.substring(t.raw.length),r.push(t);else{let e=i;if(this.options.extensions?.startInline){let t=1/0,r=i.slice(1),n;this.options.extensions.startInline.forEach(e=>{"number"==typeof(n=e.call({lexer:this},r))&&0<=n&&(t=Math.min(t,n))}),t<1/0&&0<=t&&(e=i.substring(0,t+1))}if(t=this.tokenizer.inlineText(e))i=i.substring(t.raw.length),"_"!==t.raw.slice(-1)&&(s=t.raw.slice(-1)),a=!0,"text"===(o=r.at(-1))?.type?(o.raw+=t.raw,o.text+=t.text):r.push(t);else if(i){var l="Infinite loop on byte: "+i.charCodeAt(0);if(this.options.silent){console.error(l);break}throw new Error(l)}}}return r}},_L=class{static{mt(this,"P")}options;parser;constructor(e){this.options=e||Z9}space(e){return""}code({text:e,lang:t,escaped:r}){return t=(t||"").match(J9.notSpaceStart)?.[0],e=e.replace(J9.endingNewline,"")+`
`,t?'<pre><code class="language-'+q9(t)+'">'+(r?e:q9(e,!0))+`</code></pre> `,t?'<pre><code class="language-'+q9(t)+'">'+(r?e:q9(e,!0))+`</code></pre>
`:"<pre><code>"+(r?e:q9(e,!0))+`</code></pre> `:"<pre><code>"+(r?e:q9(e,!0))+`</code></pre>
`}blockquote({tokens:e}){return`<blockquote> `}blockquote({tokens:e}){return`<blockquote>
@@ -437,16 +437,16 @@ ${this.parser.parse(e)}</blockquote>
`}tablerow({text:e}){return`<tr> `}tablerow({text:e}){return`<tr>
${e}</tr> ${e}</tr>
`}tablecell(e){var t=this.parser.parseInline(e.tokens),r=e.header?"th":"td";return(e.align?`<${r} align="${e.align}">`:`<${r}>`)+t+`</${r}> `}tablecell(e){var t=this.parser.parseInline(e.tokens),r=e.header?"th":"td";return(e.align?`<${r} align="${e.align}">`:`<${r}>`)+t+`</${r}>
`}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${q9(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:r}){var r=this.parser.parseInline(r),n=j9(e);if(null===n)return r;let i='<a href="'+(e=n)+'"';return t&&(i+=' title="'+q9(t)+'"'),i+=">"+r+"</a>"}image({href:e,title:t,text:r,tokens:n}){if(n&&(r=this.parser.parseInline(n,this.parser.textRenderer)),null===(n=j9(e)))return q9(r);let i=`<img src="${e=n}" alt="${r}"`;return t&&(i+=` title="${q9(t)}"`),i+=">"}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:q9(e.text)}},AL=class{static{mt(this,"$")}strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}},LL=class n{static{mt(this,"l")}options;renderer;textRenderer;constructor(e){this.options=e||Z9,this.options.renderer=this.options.renderer||new SL,this.renderer=this.options.renderer,this.renderer.options=this.options,(this.renderer.parser=this).textRenderer=new AL}static parse(e,t){return new n(t).parse(e)}static parseInline(e,t){return new n(t).parseInline(e)}parse(n,i=!0){let a="";for(let r=0;r<n.length;r++){var e=n[r];if(this.options.extensions?.renderers?.[e.type]){var t=e,s=this.options.extensions.renderers[t.type].call({parser:this},t);if(!1!==s||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(t.type)){a+=s||"";continue}}var o=e;switch(o.type){case"space":a+=this.renderer.space(o);continue;case"hr":a+=this.renderer.hr(o);continue;case"heading":a+=this.renderer.heading(o);continue;case"code":a+=this.renderer.code(o);continue;case"table":a+=this.renderer.table(o);continue;case"blockquote":a+=this.renderer.blockquote(o);continue;case"list":a+=this.renderer.list(o);continue;case"html":a+=this.renderer.html(o);continue;case"def":a+=this.renderer.def(o);continue;case"paragraph":a+=this.renderer.paragraph(o);continue;case"text":{let e=o,t=this.renderer.text(e);for(;r+1<n.length&&"text"===n[r+1].type;)e=n[++r],t+=` `}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${q9(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:r}){var r=this.parser.parseInline(r),n=j9(e);if(null===n)return r;let i='<a href="'+(e=n)+'"';return t&&(i+=' title="'+q9(t)+'"'),i+=">"+r+"</a>"}image({href:e,title:t,text:r,tokens:n}){if(n&&(r=this.parser.parseInline(n,this.parser.textRenderer)),null===(n=j9(e)))return q9(r);let i=`<img src="${e=n}" alt="${r}"`;return t&&(i+=` title="${q9(t)}"`),i+=">"}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:q9(e.text)}},AL=class{static{mt(this,"$")}strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}},LL=class n{static{mt(this,"l")}options;renderer;textRenderer;constructor(e){this.options=e||Z9,this.options.renderer=this.options.renderer||new _L,this.renderer=this.options.renderer,this.renderer.options=this.options,(this.renderer.parser=this).textRenderer=new AL}static parse(e,t){return new n(t).parse(e)}static parseInline(e,t){return new n(t).parseInline(e)}parse(n,i=!0){let a="";for(let r=0;r<n.length;r++){var e=n[r];if(this.options.extensions?.renderers?.[e.type]){var t=e,s=this.options.extensions.renderers[t.type].call({parser:this},t);if(!1!==s||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(t.type)){a+=s||"";continue}}var o=e;switch(o.type){case"space":a+=this.renderer.space(o);continue;case"hr":a+=this.renderer.hr(o);continue;case"heading":a+=this.renderer.heading(o);continue;case"code":a+=this.renderer.code(o);continue;case"table":a+=this.renderer.table(o);continue;case"blockquote":a+=this.renderer.blockquote(o);continue;case"list":a+=this.renderer.list(o);continue;case"html":a+=this.renderer.html(o);continue;case"def":a+=this.renderer.def(o);continue;case"paragraph":a+=this.renderer.paragraph(o);continue;case"text":{let e=o,t=this.renderer.text(e);for(;r+1<n.length&&"text"===n[r+1].type;)e=n[++r],t+=`
`+this.renderer.text(e);a+=i?this.renderer.paragraph({type:"paragraph",raw:t,text:t,tokens:[{type:"text",raw:t,text:t,escaped:!0}]}):t;continue}default:var l='Token with "'+o.type+'" type was not found.';if(this.options.silent)return console.error(l),"";throw new Error(l)}}return a}parseInline(t,r=this.renderer){let n="";for(let e=0;e<t.length;e++){var i=t[e];if(this.options.extensions?.renderers?.[i.type]){var a=this.options.extensions.renderers[i.type].call({parser:this},i);if(!1!==a||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(i.type)){n+=a||"";continue}}var s=i;switch(s.type){case"escape":n+=r.text(s);break;case"html":n+=r.html(s);break;case"link":n+=r.link(s);break;case"image":n+=r.image(s);break;case"strong":n+=r.strong(s);break;case"em":n+=r.em(s);break;case"codespan":n+=r.codespan(s);break;case"br":n+=r.br(s);break;case"del":n+=r.del(s);break;case"text":n+=r.text(s);break;default:var o='Token with "'+s.type+'" type was not found.';if(this.options.silent)return console.error(o),"";throw new Error(o)}}return n}},NL=class{static{mt(this,"S")}options;block;constructor(e){this.options=e||Z9}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(){return this.block?_L.lex:_L.lexInline}provideParser(){return this.block?LL.parse:LL.parseInline}},IL=class{static{mt(this,"B")}defaults=z9();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=LL;Renderer=SL;TextRenderer=AL;Lexer=_L;Tokenizer=CL;Hooks=NL;constructor(...e){this.use(...e)}walkTokens(e,r){let n=[];for(var i of e)switch(n=n.concat(r.call(this,i)),i.type){case"table":var t,a,s=i;for(t of s.header)n=n.concat(this.walkTokens(t.tokens,r));for(a of s.rows)for(var o of a)n=n.concat(this.walkTokens(o.tokens,r));break;case"list":s=i,n=n.concat(this.walkTokens(s.items,r));break;default:{let t=i;this.defaults.extensions?.childTokens?.[t.type]?this.defaults.extensions.childTokens[t.type].forEach(e=>{e=t[e].flat(1/0),n=n.concat(this.walkTokens(e,r))}):t.tokens&&(n=n.concat(this.walkTokens(t.tokens,r)))}}return n}use(...e){let i=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(a=>{var e={...a};if(e.async=this.defaults.async||e.async||!1,a.extensions&&(a.extensions.forEach(n=>{if(!n.name)throw new Error("extension name required");if("renderer"in n){let r=i.renderers[n.name];r?i.renderers[n.name]=function(...e){var t=n.renderer.apply(this,e);return!1===t?r.apply(this,e):t}:i.renderers[n.name]=n.renderer}if("tokenizer"in n){if(!n.level||"block"!==n.level&&"inline"!==n.level)throw new Error("extension level must be 'block' or 'inline'");var e=i[n.level];e?e.unshift(n.tokenizer):i[n.level]=[n.tokenizer],n.start&&("block"===n.level?i.startBlock?i.startBlock.push(n.start):i.startBlock=[n.start]:"inline"===n.level&&(i.startInline?i.startInline.push(n.start):i.startInline=[n.start]))}"childTokens"in n&&n.childTokens&&(i.childTokens[n.name]=n.childTokens)}),e.extensions=i),a.renderer){let i=this.defaults.renderer||new SL(this.defaults);for(var t in a.renderer){if(!(t in i))throw new Error(`renderer '${t}' does not exist`);if(!["options","parser"].includes(t)){let e=t,r=a.renderer[e],n=i[e];i[e]=(...e)=>{var t=r.apply(i,e);return(!1===t?n.apply(i,e):t)||""}}}e.renderer=i}if(a.tokenizer){let i=this.defaults.tokenizer||new CL(this.defaults);for(var s in a.tokenizer){if(!(s in i))throw new Error(`tokenizer '${s}' does not exist`);if(!["options","rules","lexer"].includes(s)){let e=s,r=a.tokenizer[e],n=i[e];i[e]=(...e)=>{var t=r.apply(i,e);return!1===t?n.apply(i,e):t}}}e.tokenizer=i}if(a.hooks){let i=this.defaults.hooks||new NL;for(let t in a.hooks){if(!(t in i))throw new Error(`hook '${t}' does not exist`);if(!["options","block"].includes(t)){let e=t,r=a.hooks[e],n=i[e];NL.passThroughHooks.has(t)?i[e]=e=>this.defaults.async&&NL.passThroughHooksRespectAsync.has(t)?Promise.resolve(r.call(i,e)).then(e=>n.call(i,e)):(e=r.call(i,e),n.call(i,e)):i[e]=(...e)=>{var t=r.apply(i,e);return!1===t?n.apply(i,e):t}}}e.hooks=i}if(a.walkTokens){let r=this.defaults.walkTokens,n=a.walkTokens;e.walkTokens=function(e){let t=[];return t.push(n.call(this,e)),t=r?t.concat(r.call(this,e)):t}}this.defaults={...this.defaults,...e}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return _L.lex(e,t??this.defaults)}parser(e,t){return LL.parse(e,t??this.defaults)}parseMarkdown(o){return(r,e)=>{let t={...e},n={...this.defaults,...t},i=this.onError(!!n.silent,!!n.async);if(!0===this.defaults.async&&!1===t.async)return i(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("u"<typeof r||null===r)return i(new Error("marked(): input pa Line truncated `+this.renderer.text(e);a+=i?this.renderer.paragraph({type:"paragraph",raw:t,text:t,tokens:[{type:"text",raw:t,text:t,escaped:!0}]}):t;continue}default:var l='Token with "'+o.type+'" type was not found.';if(this.options.silent)return console.error(l),"";throw new Error(l)}}return a}parseInline(t,r=this.renderer){let n="";for(let e=0;e<t.length;e++){var i=t[e];if(this.options.extensions?.renderers?.[i.type]){var a=this.options.extensions.renderers[i.type].call({parser:this},i);if(!1!==a||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(i.type)){n+=a||"";continue}}var s=i;switch(s.type){case"escape":n+=r.text(s);break;case"html":n+=r.html(s);break;case"link":n+=r.link(s);break;case"image":n+=r.image(s);break;case"strong":n+=r.strong(s);break;case"em":n+=r.em(s);break;case"codespan":n+=r.codespan(s);break;case"br":n+=r.br(s);break;case"del":n+=r.del(s);break;case"text":n+=r.text(s);break;default:var o='Token with "'+s.type+'" type was not found.';if(this.options.silent)return console.error(o),"";throw new Error(o)}}return n}},NL=class{static{mt(this,"S")}options;block;constructor(e){this.options=e||Z9}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(){return this.block?SL.lex:SL.lexInline}provideParser(){return this.block?LL.parse:LL.parseInline}},IL=class{static{mt(this,"B")}defaults=z9();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=LL;Renderer=_L;TextRenderer=AL;Lexer=SL;Tokenizer=CL;Hooks=NL;constructor(...e){this.use(...e)}walkTokens(e,r){let n=[];for(var i of e)switch(n=n.concat(r.call(this,i)),i.type){case"table":var t,a,s=i;for(t of s.header)n=n.concat(this.walkTokens(t.tokens,r));for(a of s.rows)for(var o of a)n=n.concat(this.walkTokens(o.tokens,r));break;case"list":s=i,n=n.concat(this.walkTokens(s.items,r));break;default:{let t=i;this.defaults.extensions?.childTokens?.[t.type]?this.defaults.extensions.childTokens[t.type].forEach(e=>{e=t[e].flat(1/0),n=n.concat(this.walkTokens(e,r))}):t.tokens&&(n=n.concat(this.walkTokens(t.tokens,r)))}}return n}use(...e){let i=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(a=>{var e={...a};if(e.async=this.defaults.async||e.async||!1,a.extensions&&(a.extensions.forEach(n=>{if(!n.name)throw new Error("extension name required");if("renderer"in n){let r=i.renderers[n.name];r?i.renderers[n.name]=function(...e){var t=n.renderer.apply(this,e);return!1===t?r.apply(this,e):t}:i.renderers[n.name]=n.renderer}if("tokenizer"in n){if(!n.level||"block"!==n.level&&"inline"!==n.level)throw new Error("extension level must be 'block' or 'inline'");var e=i[n.level];e?e.unshift(n.tokenizer):i[n.level]=[n.tokenizer],n.start&&("block"===n.level?i.startBlock?i.startBlock.push(n.start):i.startBlock=[n.start]:"inline"===n.level&&(i.startInline?i.startInline.push(n.start):i.startInline=[n.start]))}"childTokens"in n&&n.childTokens&&(i.childTokens[n.name]=n.childTokens)}),e.extensions=i),a.renderer){let i=this.defaults.renderer||new _L(this.defaults);for(var t in a.renderer){if(!(t in i))throw new Error(`renderer '${t}' does not exist`);if(!["options","parser"].includes(t)){let e=t,r=a.renderer[e],n=i[e];i[e]=(...e)=>{var t=r.apply(i,e);return(!1===t?n.apply(i,e):t)||""}}}e.renderer=i}if(a.tokenizer){let i=this.defaults.tokenizer||new CL(this.defaults);for(var s in a.tokenizer){if(!(s in i))throw new Error(`tokenizer '${s}' does not exist`);if(!["options","rules","lexer"].includes(s)){let e=s,r=a.tokenizer[e],n=i[e];i[e]=(...e)=>{var t=r.apply(i,e);return!1===t?n.apply(i,e):t}}}e.tokenizer=i}if(a.hooks){let i=this.defaults.hooks||new NL;for(let t in a.hooks){if(!(t in i))throw new Error(`hook '${t}' does not exist`);if(!["options","block"].includes(t)){let e=t,r=a.hooks[e],n=i[e];NL.passThroughHooks.has(t)?i[e]=e=>this.defaults.async&&NL.passThroughHooksRespectAsync.has(t)?Promise.resolve(r.call(i,e)).then(e=>n.call(i,e)):(e=r.call(i,e),n.call(i,e)):i[e]=(...e)=>{var t=r.apply(i,e);return!1===t?n.apply(i,e):t}}}e.hooks=i}if(a.walkTokens){let r=this.defaults.walkTokens,n=a.walkTokens;e.walkTokens=function(e){let t=[];return t.push(n.call(this,e)),t=r?t.concat(r.call(this,e)):t}}this.defaults={...this.defaults,...e}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return SL.lex(e,t??this.defaults)}parser(e,t){return LL.parse(e,t??this.defaults)}parseMarkdown(o){return(r,e)=>{let t={...e},n={...this.defaults,...t},i=this.onError(!!n.silent,!!n.async);if(!0===this.defaults.async&&!1===t.async)return i(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("u"<typeof r||null===r)return i(new Error("marked(): input pa Line truncated
Please report this to https://github.com/markedjs/marked.`,r)return t="<p>An error occurred:</p><pre>"+q9(e.message+"",!0)+"</pre>",n?Promise.resolve(t):t;if(n)return Promise.reject(e);throw e}}},RL=new IL,mt(K9,"d"),K9.options=K9.setOptions=function(e){return RL.setOptions(e),G9(K9.defaults=RL.defaults),K9},K9.getDefaults=z9,K9.defaults=Z9,K9.use=function(...e){return RL.use(...e),G9(K9.defaults=RL.defaults),K9},K9.walkTokens=function(e,t){return RL.walkTokens(e,t)},K9.parseInline=RL.parseInline,K9.Parser=LL,K9.parser=LL.parse,K9.Renderer=SL,K9.TextRenderer=AL,K9.Lexer=_L,K9.lexer=_L.lex,K9.Tokenizer=CL,K9.Hooks=NL,K9.parse=K9,_L.lex});function DL(e,{markdownAutoWrap:t}){return e=Bc(e.replace(/<br\/>/g,` Please report this to https://github.com/markedjs/marked.`,r)return t="<p>An error occurred:</p><pre>"+q9(e.message+"",!0)+"</pre>",n?Promise.resolve(t):t;if(n)return Promise.reject(e);throw e}}},RL=new IL,mt(K9,"d"),K9.options=K9.setOptions=function(e){return RL.setOptions(e),G9(K9.defaults=RL.defaults),K9},K9.getDefaults=z9,K9.defaults=Z9,K9.use=function(...e){return RL.use(...e),G9(K9.defaults=RL.defaults),K9},K9.walkTokens=function(e,t){return RL.walkTokens(e,t)},K9.parseInline=RL.parseInline,K9.Parser=LL,K9.parser=LL.parse,K9.Renderer=_L,K9.TextRenderer=AL,K9.Lexer=SL,K9.lexer=SL.lex,K9.Tokenizer=CL,K9.Hooks=NL,K9.parse=K9,SL.lex});function DL(e,{markdownAutoWrap:t}){return e=Bc(e.replace(/<br\/>/g,`
`).replace(/\n{2,}/g,` `).replace(/\n{2,}/g,`
`)),!1===t?e.replace(/ /g,"&nbsp;"):e}function OL(e,t={}){let r=DL(e,t),n=K9.lexer(r),i=[[]],a=0;function s(t,r="normal"){"text"===t.type?t.text.split(` `)),!1===t?e.replace(/ /g,"&nbsp;"):e}function OL(e,t={}){let r=DL(e,t),n=K9.lexer(r),i=[[]],a=0;function s(t,r="normal"){"text"===t.type?t.text.split(`
`).forEach((e,t)=>{0!==t&&(a++,i.push([])),e.split(" ").forEach(e=>{(e=e.replace(/&#39;/g,"'"))&&i[a].push({content:e,type:r})})}):"strong"===t.type||"em"===t.type?t.tokens.forEach(e=>{s(e,t.type)}):"html"===t.type&&i[a].push({content:t.text,type:"normal"})}return mt(s,"processNode"),n.forEach(e=>{"paragraph"===e.type?e.tokens?.forEach(e=>{s(e)}):"html"===e.type?i[a].push({content:e.text,type:"normal"}):i[a].push({content:e.raw,type:"normal"})}),i}function PL(e,{markdownAutoWrap:t}={}){function r(e){return"text"===e.type?!1===t?e.text.replace(/\n */g,"<br/>").replace(/ /g,"&nbsp;"):e.text.replace(/\n */g,"<br/>"):"strong"===e.type?`<strong>${e.tokens?.map(r).join("")}</strong>`:"em"===e.type?`<em>${e.tokens?.map(r).join("")}</em>`:"paragraph"===e.type?`<p>${e.tokens?.map(r).join("")}</p>`:"space"===e.type?"":"html"===e.type?""+e.text:"escape"===e.type?e.text:(D.warn("Unsupported markdown: "+e.type),e.raw)}return e=K9.lexer(e),mt(r,"output"),e.map(r).join("")}var BL=b(()=>{ML(),nh(),e(),mt(DL,"preprocessMarkdown"),mt(OL,"markdownToLines"),mt(PL,"markdownToHTML")});function $L(e){return Intl.Segmenter?[...(new Intl.Segmenter).segment(e)].map(e=>e.segment):[...e]}function FL(e,t){return zL(e,[],$L(t.content),t.type)}function zL(e,t,r,n){var i,a,s;return 0===r.length?[{content:t.join(""),type:n},{content:"",type:n}]:([i,...a]=r,e([{content:(s=[...t,i]).join(""),type:n}])?zL(e,s,a,n):(0===t.length&&i&&(t.push(i),r.shift()),[{content:t.join(""),type:n},{content:r.join(""),type:n}]))}function GL(e,t){if(e.some(({content:e})=>e.includes(` `).forEach((e,t)=>{0!==t&&(a++,i.push([])),e.split(" ").forEach(e=>{(e=e.replace(/&#39;/g,"'"))&&i[a].push({content:e,type:r})})}):"strong"===t.type||"em"===t.type?t.tokens.forEach(e=>{s(e,t.type)}):"html"===t.type&&i[a].push({content:t.text,type:"normal"})}return mt(s,"processNode"),n.forEach(e=>{"paragraph"===e.type?e.tokens?.forEach(e=>{s(e)}):"html"===e.type?i[a].push({content:e.text,type:"normal"}):i[a].push({content:e.raw,type:"normal"})}),i}function PL(e,{markdownAutoWrap:t}={}){function r(e){return"text"===e.type?!1===t?e.text.replace(/\n */g,"<br/>").replace(/ /g,"&nbsp;"):e.text.replace(/\n */g,"<br/>"):"strong"===e.type?`<strong>${e.tokens?.map(r).join("")}</strong>`:"em"===e.type?`<em>${e.tokens?.map(r).join("")}</em>`:"paragraph"===e.type?`<p>${e.tokens?.map(r).join("")}</p>`:"space"===e.type?"":"html"===e.type?""+e.text:"escape"===e.type?e.text:(D.warn("Unsupported markdown: "+e.type),e.raw)}return e=K9.lexer(e),mt(r,"output"),e.map(r).join("")}var BL=b(()=>{ML(),nh(),e(),mt(DL,"preprocessMarkdown"),mt(OL,"markdownToLines"),mt(PL,"markdownToHTML")});function $L(e){return Intl.Segmenter?[...(new Intl.Segmenter).segment(e)].map(e=>e.segment):[...e]}function FL(e,t){return zL(e,[],$L(t.content),t.type)}function zL(e,t,r,n){var i,a,s;return 0===r.length?[{content:t.join(""),type:n},{content:"",type:n}]:([i,...a]=r,e([{content:(s=[...t,i]).join(""),type:n}])?zL(e,s,a,n):(0===t.length&&i&&(t.push(i),r.shift()),[{content:t.join(""),type:n},{content:r.join(""),type:n}]))}function GL(e,t){if(e.some(({content:e})=>e.includes(`
`)))throw new Error("splitLineToFitWidth does not support newlines in the line");return UL(e,t)}function UL(e,t,r=[],n=[]){if(0===e.length)return 0<n.length&&r.push(n),0<r.length?r:[];let i="";" "===e[0].content&&(i=" ",e.shift());var a=e.shift()??{content:" ",type:"normal"},s=[...n];return""!==i&&s.push({content:i,type:"normal"}),s.push(a),t(s)?UL(e,t,r,s):(0<n.length?(r.push(n),e.unshift(a)):a.content&&([s,n]=FL(t,a),r.push([s]),n.content)&&e.unshift(n),UL(e,t,r))}var qL=b(()=>{mt($L,"splitTextToChars"),mt(FL,"splitWordToFitWidth"),mt(zL,"splitWordToFitWidthRecursion"),mt(GL,"splitLineToFitWidth"),mt(UL,"splitLineToFitWidthRecursion")});function jL(e,t){t&&e.attr("style",t)}async function YL(e,t,r,n,i=!1,a=ar()){(e=e.append("foreignObject")).attr("width",10*r+"px"),e.attr("height",10*r+"px");var s=e.append("xhtml:div"),a=Ec(t.label)?await Sc(t.label.replace(L.lineBreakRegex,` `)))throw new Error("splitLineToFitWidth does not support newlines in the line");return UL(e,t)}function UL(e,t,r=[],n=[]){if(0===e.length)return 0<n.length&&r.push(n),0<r.length?r:[];let i="";" "===e[0].content&&(i=" ",e.shift());var a=e.shift()??{content:" ",type:"normal"},s=[...n];return""!==i&&s.push({content:i,type:"normal"}),s.push(a),t(s)?UL(e,t,r,s):(0<n.length?(r.push(n),e.unshift(a)):a.content&&([s,n]=FL(t,a),r.push([s]),n.content)&&e.unshift(n),UL(e,t,r))}var qL=b(()=>{mt($L,"splitTextToChars"),mt(FL,"splitWordToFitWidth"),mt(zL,"splitWordToFitWidthRecursion"),mt(GL,"splitLineToFitWidth"),mt(UL,"splitLineToFitWidthRecursion")});function jL(e,t){t&&e.attr("style",t)}async function YL(e,t,r,n,i=!1,a=ar()){(e=e.append("foreignObject")).attr("width",10*r+"px"),e.attr("height",10*r+"px");var s=e.append("xhtml:div"),a=Ec(t.label)?await _c(t.label.replace(N.lineBreakRegex,`
`),a):lc(t.label,a),o=t.isNode?"nodeLabel":"edgeLabel",l=s.append("span");return l.html(a),jL(l,t.labelStyle),l.attr("class",o+" "+n),jL(s,t.labelStyle),s.style("display","table-cell"),s.style("white-space","nowrap"),s.style("line-height","1.5"),s.style("max-width",r+"px"),s.style("text-align","center"),s.attr("xmlns","http://www.w3.org/1999/xhtml"),i&&s.attr("class","labelBkg"),(a=s.node().getBoundingClientRect()).width===r&&(s.style("display","table"),s.style("white-space","break-spaces"),s.style("width",r+"px"),a=s.node().getBoundingClientRect()),e.node()}function WL(e,t,r){return e.append("tspan").attr("class","text-outer-tspan").attr("x",0).attr("y",t*r-.1+"em").attr("dy",r+"em")}function HL(e,t,r){return KL(t=WL(e=e.append("text"),1,t),r),r=t.node().getComputedTextLength(),e.remove(),r}function VL(e,t,r){return KL(t=WL(e=e.append("text"),1,t),[{content:r,type:"normal"}]),(r=t.node()?.getBoundingClientRect())&&e.remove(),r}function XL(t,e,r,n=!1){let i=e.append("g"),a=i.insert("rect").attr("class","background").attr("style","stroke: none"),s=i.append("text").attr("y","-10.1"),o=0;for(var l of r){var c,h=mt(e=>HL(i,1.1,e)<=t,"checkWidth");for(c of h(l)?[l]:GL(l,h))KL(WL(s,o,1.1),c),o++}return(n?(e=s.node().getBBox(),a.attr("x",e.x-2).attr("y",e.y-2).attr("width",e.width+4).attr("height",e.height+4),i):s).node()}function KL(n,e){n.text(""),e.forEach((e,t)=>{var r=n.append("tspan").attr("font-style","em"===e.type?"italic":"normal").attr("class","text-inner-tspan").attr("font-weight","strong"===e.type?"bold":"normal");0===t?r.text(e.content):r.text(" "+e.content)})}async function ZL(e,i={}){let a=[],t=(e.replace(/(fa[bklrs]?):fa-([\w-]+)/g,(t,r,n)=>(a.push((async()=>{var e=r+":"+n;return await Mc(e)?await Dc(e,void 0,{class:"label-icon"}):`<i class='${lc(t,i).replace(":"," ")}'></i>`})()),t)),await Promise.all(a));return e.replace(/(fa[bklrs]?):fa-([\w-]+)/g,()=>t.shift()??"")}var QL,JL=b(()=>{i6(),Oc(),e(),BL(),i_(),Pc(),qL(),rn(),mt(jL,"applyStyle"),mt(YL,"addHtmlSpan"),mt(WL,"createTspan"),mt(HL,"computeWidthOfText"),mt(VL,"computeDimensionOfText"),mt(XL,"createFormattedText"),mt(KL,"updateTextContentAndStyles"),mt(ZL,"replaceIconSubstring"),QL=mt(async(e,t="",{style:r="",isTitle:n=!1,classes:i="",useHtmlLabels:a=!0,isNode:s=!0,width:o=200,addSvgBackground:l=!1}={},c)=>(D.debug("XYZ createText",t,r,n,i,a,s,"addSvgBackground: ",l),a?(n=PL(t,c),a=await ZL(r_(n),c),n=t.replace(/\\\\/g,"\\"),YL(e,{isNode:s,label:Ec(t)?n:a,labelStyle:r.replace("fill:","color:")},o,i,l,c)):(n=XL(o,e,OL(t.replace(/<br\s*\/?>/g,"<br/>").replace("<br>","<br/>"),c),!!t&&l),s?(a=(r=/stroke:/.exec(r)?r.replace("stroke:","lineColor:"):r).replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:"),H(n).attr("style",a)):(i=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/background:/g,"fill:"),H(n).select("rect").attr("style",i.replace(/background:/g,"fill:")),o=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:"),H(n).select("text").attr("style",o)),n)),"createText")});function eN(e){return(e=e.map((e,t)=>(0===t?"M":"L")+e.x+","+e.y)).push("Z"),e.join(" ")}function tN(t,e,r,n,i,a){var s=[],o=r-t,l=2*Math.PI/(o/a),c=e+(n-e)/2;for(let e=0;e<=50;e++){var h=t+e/50*o,u=c+i*Math.sin(l*(h-t));s.push({x:h,y:u})}return s}function rN(t,r,n,i,e,a){var s=[],o=e*Math.PI/180,l=(a*Math.PI/180-o)/(i-1);for(let e=0;e<i;e++){var c=o+e*l,h=t+n*Math.cos(c),c=r+n*Math.sin(c);s.push({x:-h,y:-c})}return s}var nN,iN,aN,sN,i=b(()=>{JL(),Tu(),i6(),en(),Oc(),i_(),nN=mt(async(e,t,r)=>{let n,i=t.useHtmlLabels||fc(O()?.htmlLabels),a=(n=r||"node default",e.insert("g").attr("class",n).attr("id",t.domId||t.id)),s=a.insert("g").attr("class","label").attr("style",SC(t.labelStyle)),o,l=(o=void 0===t.label?"":"string"==typeof t.label?t.label:t.label[0],await QL(s,lc(r_(o),O()),{useHtmlLabels:i,width:t.width||O().flowchart?.wrappingWidth,cssClasses:"markdown-node-label",style:t.labelStyle,addSvgBackground:!!t.icon||!!t.img})),c=l.getBBox(),h=(t?.padding??0)/2;if(i){var r=l.children[0],e=H(l),u=r.getElementsByTagName("img");if(u){let n=""===o.replace(/<img[^>]*>/g,"").trim();await Promise.all([...u].map(r=>new Promise(t=>{function e(){var e;r.style.display="flex",r.style.flexDirection="column",n?(e=(O().fontSize?O():window.getComputedStyle(document.body)).fontSize,[e=Yt.fontSize]=JC(e),r.style.minWidth=e=5*e+"px",r.style.maxWidth=e):r.style.width="100%",t(r)}mt(e,"setupImage"),setTimeout(()=>{r.complete&&e()}),r.addEventListener("error",e),r.addEventListener("load",e)})))}c=r.getBoundingClientRect(),e.attr("width",c.width),e.attr("height",c.height)}return i?s.attr("transform","translate("+-c.width/2+", "+-c.height/2+")"):s.attr("transform","translate(0, "+-c.height/2+")"),t.centerLabel&&s.attr("transform","translate("+-c.width/2+", "+-c.height/2+")"),s.insert("rect",":first-child"),{shapLine truncated `),a):lc(t.label,a),o=t.isNode?"nodeLabel":"edgeLabel",l=s.append("span");return l.html(a),jL(l,t.labelStyle),l.attr("class",o+" "+n),jL(s,t.labelStyle),s.style("display","table-cell"),s.style("white-space","nowrap"),s.style("line-height","1.5"),s.style("max-width",r+"px"),s.style("text-align","center"),s.attr("xmlns","http://www.w3.org/1999/xhtml"),i&&s.attr("class","labelBkg"),(a=s.node().getBoundingClientRect()).width===r&&(s.style("display","table"),s.style("white-space","break-spaces"),s.style("width",r+"px"),a=s.node().getBoundingClientRect()),e.node()}function WL(e,t,r){return e.append("tspan").attr("class","text-outer-tspan").attr("x",0).attr("y",t*r-.1+"em").attr("dy",r+"em")}function HL(e,t,r){return KL(t=WL(e=e.append("text"),1,t),r),r=t.node().getComputedTextLength(),e.remove(),r}function VL(e,t,r){return KL(t=WL(e=e.append("text"),1,t),[{content:r,type:"normal"}]),(r=t.node()?.getBoundingClientRect())&&e.remove(),r}function XL(t,e,r,n=!1){let i=e.append("g"),a=i.insert("rect").attr("class","background").attr("style","stroke: none"),s=i.append("text").attr("y","-10.1"),o=0;for(var l of r){var c,h=mt(e=>HL(i,1.1,e)<=t,"checkWidth");for(c of h(l)?[l]:GL(l,h))KL(WL(s,o,1.1),c),o++}return(n?(e=s.node().getBBox(),a.attr("x",e.x-2).attr("y",e.y-2).attr("width",e.width+4).attr("height",e.height+4),i):s).node()}function KL(n,e){n.text(""),e.forEach((e,t)=>{var r=n.append("tspan").attr("font-style","em"===e.type?"italic":"normal").attr("class","text-inner-tspan").attr("font-weight","strong"===e.type?"bold":"normal");0===t?r.text(e.content):r.text(" "+e.content)})}async function ZL(e,i={}){let a=[],t=(e.replace(/(fa[bklrs]?):fa-([\w-]+)/g,(t,r,n)=>(a.push((async()=>{var e=r+":"+n;return await Mc(e)?await Dc(e,void 0,{class:"label-icon"}):`<i class='${lc(t,i).replace(":"," ")}'></i>`})()),t)),await Promise.all(a));return e.replace(/(fa[bklrs]?):fa-([\w-]+)/g,()=>t.shift()??"")}var QL,JL=b(()=>{i6(),Oc(),e(),BL(),iS(),Pc(),qL(),rn(),mt(jL,"applyStyle"),mt(YL,"addHtmlSpan"),mt(WL,"createTspan"),mt(HL,"computeWidthOfText"),mt(VL,"computeDimensionOfText"),mt(XL,"createFormattedText"),mt(KL,"updateTextContentAndStyles"),mt(ZL,"replaceIconSubstring"),QL=mt(async(e,t="",{style:r="",isTitle:n=!1,classes:i="",useHtmlLabels:a=!0,isNode:s=!0,width:o=200,addSvgBackground:l=!1}={},c)=>(D.debug("XYZ createText",t,r,n,i,a,s,"addSvgBackground: ",l),a?(n=PL(t,c),a=await ZL(rS(n),c),n=t.replace(/\\\\/g,"\\"),YL(e,{isNode:s,label:Ec(t)?n:a,labelStyle:r.replace("fill:","color:")},o,i,l,c)):(n=XL(o,e,OL(t.replace(/<br\s*\/?>/g,"<br/>").replace("<br>","<br/>"),c),!!t&&l),s?(a=(r=/stroke:/.exec(r)?r.replace("stroke:","lineColor:"):r).replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:"),H(n).attr("style",a)):(i=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/background:/g,"fill:"),H(n).select("rect").attr("style",i.replace(/background:/g,"fill:")),o=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:"),H(n).select("text").attr("style",o)),n)),"createText")});function eN(e){return(e=e.map((e,t)=>(0===t?"M":"L")+e.x+","+e.y)).push("Z"),e.join(" ")}function tN(t,e,r,n,i,a){var s=[],o=r-t,l=2*Math.PI/(o/a),c=e+(n-e)/2;for(let e=0;e<=50;e++){var h=t+e/50*o,u=c+i*Math.sin(l*(h-t));s.push({x:h,y:u})}return s}function rN(t,r,n,i,e,a){var s=[],o=e*Math.PI/180,l=(a*Math.PI/180-o)/(i-1);for(let e=0;e<i;e++){var c=o+e*l,h=t+n*Math.cos(c),c=r+n*Math.sin(c);s.push({x:-h,y:-c})}return s}var nN,iN,aN,sN,i=b(()=>{JL(),Tu(),i6(),en(),Oc(),iS(),nN=mt(async(e,t,r)=>{let n,i=t.useHtmlLabels||fc(O()?.htmlLabels),a=(n=r||"node default",e.insert("g").attr("class",n).attr("id",t.domId||t.id)),s=a.insert("g").attr("class","label").attr("style",_C(t.labelStyle)),o,l=(o=void 0===t.label?"":"string"==typeof t.label?t.label:t.label[0],await QL(s,lc(rS(o),O()),{useHtmlLabels:i,width:t.width||O().flowchart?.wrappingWidth,cssClasses:"markdown-node-label",style:t.labelStyle,addSvgBackground:!!t.icon||!!t.img})),c=l.getBBox(),h=(t?.padding??0)/2;if(i){var r=l.children[0],e=H(l),u=r.getElementsByTagName("img");if(u){let n=""===o.replace(/<img[^>]*>/g,"").trim();await Promise.all([...u].map(r=>new Promise(t=>{function e(){var e;r.style.display="flex",r.style.flexDirection="column",n?(e=(O().fontSize?O():window.getComputedStyle(document.body)).fontSize,[e=Yt.fontSize]=JC(e),r.style.minWidth=e=5*e+"px",r.style.maxWidth=e):r.style.width="100%",t(r)}mt(e,"setupImage"),setTimeout(()=>{r.complete&&e()}),r.addEventListener("error",e),r.addEventListener("load",e)})))}c=r.getBoundingClientRect(),e.attr("width",c.width),e.attr("height",c.height)}return i?s.attr("transform","translate("+-c.width/2+", "+-c.height/2+")"):s.attr("transform","translate(0, "+-c.height/2+")"),t.centerLabel&&s.attr("transform","translate("+-c.width/2+", "+-c.height/2+")"),s.insert("rect",":first-child"),{shapLine truncated
M ${e/2*t},${e/2*r} L ${-e/2*t},`+-e/2*r}function tR(e,t){var{labelStyles:r,nodeStyles:n}=Q(t);t.labelStyle=r,t.label="";let i=e.insert("g").attr("class",sN(t)).attr("id",t.domId??t.id),a=Math.max(30,t?.width??0),s=t.cssStyles,o=FI.svg(i),l=AN(t,{}),c=("handDrawn"!==t.look&&(l.roughness=0,l.fillStyle="solid"),o.circle(0,0,2*a,l)),h=eR(a),u=o.path(h,l),d=i.insert(()=>c,":first-child");return d.insert(()=>u),s&&"handDrawn"!==t.look&&d.selectAll("path").attr("style",s),n&&"handDrawn"!==t.look&&d.selectAll("path").attr("style",n),aN(t,d),t.intersect=function(e){return D.info("crossedCircle intersect",t,{radius:a,point:e}),V.circle(t,a,e)},i}var rR=b(()=>{e(),i(),MN(),zI(),RN(),mt(eR,"createLine"),mt(tR,"crossedCircle")});function nR(t,r,n,i=100,e=0,a=180){var s=[],o=e*Math.PI/180,l=(a*Math.PI/180-o)/(i-1);for(let e=0;e<i;e++){var c=o+e*l,h=t+n*Math.cos(c),c=r+n*Math.sin(c);s.push({x:-h,y:-c})}return s}async function iR(e,t){var{labelStyles:r,nodeStyles:n}=Q(t);t.labelStyle=r;let{shapeSvg:i,bbox:a,label:s}=await nN(e,t,sN(t)),o=a.width+(t.padding??0),l=a.height+(t.padding??0),c=Math.max(5,.1*l),h=t.cssStyles,u=[...nR(o/2,-l/2,c,30,-90,0),{x:-o/2-c,y:c},...nR(o/2+2*c,-c,c,20,-180,-270),...nR(o/2+2*c,c,c,20,-90,-180),{x:-o/2-c,y:-l/2},...nR(o/2,l/2,c,20,0,90)],d=[{x:o/2,y:-l/2-c},{x:-o/2,y:-l/2-c},...nR(o/2,-l/2,c,20,-90,0),{x:-o/2-c,y:-c},...nR(o/2+.1*o,-c,c,20,-180,-270),...nR(o/2+.1*o,c,c,20,-90,-180),{x:-o/2-c,y:l/2},...nR(o/2,l/2,c,20,0,90),{x:-o/2,y:l/2+c},{x:o/2,y:l/2+c}],p=FI.svg(i),g=AN(t,{fill:"none"}),f=("handDrawn"!==t.look&&(g.roughness=0,g.fillStyle="solid"),eN(u).replace("Z","")),m=p.path(f,g),y=eN(d),v=p.path(y,{...g}),x=i.insert("g",":first-child");return x.insert(()=>v,":first-child").attr("stroke-opacity",0),x.insert(()=>m,":first-child"),x.attr("class","text"),h&&"handDrawn"!==t.look&&x.selectAll("path").attr("style",h),n&&"handDrawn"!==t.look&&x.selectAll("path").attr("style",n),x.attr("transform",`translate(${c}, 0)`),s.attr("transform",`translate(${-o/2+c-(a.x-(a.left??0))},${-l/2+(t.padding??0)/2-(a.y-(a.top??0))})`),aN(t,x),t.intersect=function(e){return V.polygon(t,d,e)},i}var aR=b(()=>{i(),RN(),MN(),zI(),mt(nR,"generateCirclePoints"),mt(iR,"curlyBraceLeft")});function sR(t,r,n,i=100,e=0,a=180){var s=[],o=e*Math.PI/180,l=(a*Math.PI/180-o)/(i-1);for(let e=0;e<i;e++){var c=o+e*l,h=t+n*Math.cos(c),c=r+n*Math.sin(c);s.push({x:h,y:c})}return s}async function oR(e,t){var{labelStyles:r,nodeStyles:n}=Q(t);t.labelStyle=r;let{shapeSvg:i,bbox:a,label:s}=await nN(e,t,sN(t)),o=a.width+(t.padding??0),l=a.height+(t.padding??0),c=Math.max(5,.1*l),h=t.cssStyles,u=[...sR(o/2,-l/2,c,20,-90,0),{x:o/2+c,y:-c},...sR(o/2+2*c,-c,c,20,-180,-270),...sR(o/2+2*c,c,c,20,-90,-180),{x:o/2+c,y:l/2},...sR(o/2,l/2,c,20,0,90)],d=[{x:-o/2,y:-l/2-c},{x:o/2,y:-l/2-c},...sR(o/2,-l/2,c,20,-90,0),{x:o/2+c,y:-c},...sR(o/2+2*c,-c,c,20,-180,-270),...sR(o/2+2*c,c,c,20,-90,-180),{x:o/2+c,y:l/2},...sR(o/2,l/2,c,20,0,90),{x:o/2,y:l/2+c},{x:-o/2,y:l/2+c}],p=FI.svg(i),g=AN(t,{fill:"none"}),f=("handDrawn"!==t.look&&(g.roughness=0,g.fillStyle="solid"),eN(u).replace("Z","")),m=p.path(f,g),y=eN(d),v=p.path(y,{...g}),x=i.insert("g",":first-child");return x.insert(()=>v,":first-child").attr("stroke-opacity",0),x.insert(()=>m,":first-child"),x.attr("class","text"),h&&"handDrawn"!==t.look&&x.selectAll("path").attr("style",h),n&&"handDrawn"!==t.look&&x.selectAll("path").attr("style",n),x.attr("transform",`translate(${-c}, 0)`),s.attr("transform",`translate(${-o/2+(t.padding??0)/2-(a.x-(a.left??0))},${-l/2+(t.padding??0)/2-(a.y-(a.top??0))})`),aN(t,x),t.intersect=function(e){return V.polygon(t,d,e)},i}var lR=b(()=>{i(),RN(),MN(),zI(),mt(sR,"generateCirclePoints"),mt(oR,"curlyBraceRight")});function cR(t,r,n,i=100,e=0,a=180){var s=[],o=e*Math.PI/180,l=(a*Math.PI/180-o)/(i-1);for(let e=0;e<i;e++){var c=o+e*l,h=t+n*Math.cos(c),c=r+n*Math.sin(c);s.push({x:-h,y:-c})}return s}async function hR(e,t){var{labelStyles:r,nodeStyles:n}=Q(t);t.labelStyle=r;let{shapeSvg:i,bbox:a,label:s}=await nN(e,t,sN(t)),o=a.width+(t.padding??0),l=a.height+(t.padding??0),c=Math.max(5,.1*l),h=t.cssStyles,u=[...cR(o/2,-l/2,c,30,-90,0),{x:-o/2-c,y:c},...cR(o/2+2*c,-c,c,20,-180,-270),...cR(o/2+2*c,c,c,20,-90,-180),{x:-o/2-c,y:-l/2},...cR(o/2,l/2,c,20,0,90)],d=[...cR(-o/2+c+c/2,-l/2,c,20,-90,-180),{x:o/2-c/2,y:c},...cR(-o/2-c/2,-c,c,20,0,90),...cR(-o/2-c/2,c,c,20,-90,0),{x:o/2-c/2,y:-c},...cR(-o/2+c+c/2,l/2,c,30,-180,-270)],p=[{x:o/2,y:-l/2-c},{x:-o/2,y:-l/2-c},...cR(o/2,-l/2,c,20,-90,0),{x:-o/2-c,y:-c},...cR(o/2+2*c,-c,c,20,-180,-270),...cR(o/2+2*c,c,c,20,-90,-180),{x:-o/2-c,y:l/2},...cR(o/2,l/2,c,20,0,90),{x:-o/2,y:l/2+c},{x:o/2-c-c/2,y:l/2+c},...cR(-o/2+c+c/2,-l/2,c,20,-90,-180),{x:o/2-c/2,y:c},...cR(-o/2-c/2,-c,c,20,0,90),...cR(-o/2-c/2,c,c,20,-90,0),{x:o/2-c/2,y:-c},...cR(-o/2+c+c/2,l/2,c,30,-180,-270)],g=FI.svg(i),f=AN(t,{fill:"none"}),m=("handDrawn"!==t.look&&(f.roughness=0,f.fillStyle="solid"),eN(u).replace("Z","")),y=g.path(m,f),v=eN(d).replace("Z","" Line truncated M ${e/2*t},${e/2*r} L ${-e/2*t},`+-e/2*r}function tR(e,t){var{labelStyles:r,nodeStyles:n}=Q(t);t.labelStyle=r,t.label="";let i=e.insert("g").attr("class",sN(t)).attr("id",t.domId??t.id),a=Math.max(30,t?.width??0),s=t.cssStyles,o=FI.svg(i),l=AN(t,{}),c=("handDrawn"!==t.look&&(l.roughness=0,l.fillStyle="solid"),o.circle(0,0,2*a,l)),h=eR(a),u=o.path(h,l),d=i.insert(()=>c,":first-child");return d.insert(()=>u),s&&"handDrawn"!==t.look&&d.selectAll("path").attr("style",s),n&&"handDrawn"!==t.look&&d.selectAll("path").attr("style",n),aN(t,d),t.intersect=function(e){return D.info("crossedCircle intersect",t,{radius:a,point:e}),V.circle(t,a,e)},i}var rR=b(()=>{e(),i(),MN(),zI(),RN(),mt(eR,"createLine"),mt(tR,"crossedCircle")});function nR(t,r,n,i=100,e=0,a=180){var s=[],o=e*Math.PI/180,l=(a*Math.PI/180-o)/(i-1);for(let e=0;e<i;e++){var c=o+e*l,h=t+n*Math.cos(c),c=r+n*Math.sin(c);s.push({x:-h,y:-c})}return s}async function iR(e,t){var{labelStyles:r,nodeStyles:n}=Q(t);t.labelStyle=r;let{shapeSvg:i,bbox:a,label:s}=await nN(e,t,sN(t)),o=a.width+(t.padding??0),l=a.height+(t.padding??0),c=Math.max(5,.1*l),h=t.cssStyles,u=[...nR(o/2,-l/2,c,30,-90,0),{x:-o/2-c,y:c},...nR(o/2+2*c,-c,c,20,-180,-270),...nR(o/2+2*c,c,c,20,-90,-180),{x:-o/2-c,y:-l/2},...nR(o/2,l/2,c,20,0,90)],d=[{x:o/2,y:-l/2-c},{x:-o/2,y:-l/2-c},...nR(o/2,-l/2,c,20,-90,0),{x:-o/2-c,y:-c},...nR(o/2+.1*o,-c,c,20,-180,-270),...nR(o/2+.1*o,c,c,20,-90,-180),{x:-o/2-c,y:l/2},...nR(o/2,l/2,c,20,0,90),{x:-o/2,y:l/2+c},{x:o/2,y:l/2+c}],p=FI.svg(i),g=AN(t,{fill:"none"}),f=("handDrawn"!==t.look&&(g.roughness=0,g.fillStyle="solid"),eN(u).replace("Z","")),m=p.path(f,g),y=eN(d),v=p.path(y,{...g}),x=i.insert("g",":first-child");return x.insert(()=>v,":first-child").attr("stroke-opacity",0),x.insert(()=>m,":first-child"),x.attr("class","text"),h&&"handDrawn"!==t.look&&x.selectAll("path").attr("style",h),n&&"handDrawn"!==t.look&&x.selectAll("path").attr("style",n),x.attr("transform",`translate(${c}, 0)`),s.attr("transform",`translate(${-o/2+c-(a.x-(a.left??0))},${-l/2+(t.padding??0)/2-(a.y-(a.top??0))})`),aN(t,x),t.intersect=function(e){return V.polygon(t,d,e)},i}var aR=b(()=>{i(),RN(),MN(),zI(),mt(nR,"generateCirclePoints"),mt(iR,"curlyBraceLeft")});function sR(t,r,n,i=100,e=0,a=180){var s=[],o=e*Math.PI/180,l=(a*Math.PI/180-o)/(i-1);for(let e=0;e<i;e++){var c=o+e*l,h=t+n*Math.cos(c),c=r+n*Math.sin(c);s.push({x:h,y:c})}return s}async function oR(e,t){var{labelStyles:r,nodeStyles:n}=Q(t);t.labelStyle=r;let{shapeSvg:i,bbox:a,label:s}=await nN(e,t,sN(t)),o=a.width+(t.padding??0),l=a.height+(t.padding??0),c=Math.max(5,.1*l),h=t.cssStyles,u=[...sR(o/2,-l/2,c,20,-90,0),{x:o/2+c,y:-c},...sR(o/2+2*c,-c,c,20,-180,-270),...sR(o/2+2*c,c,c,20,-90,-180),{x:o/2+c,y:l/2},...sR(o/2,l/2,c,20,0,90)],d=[{x:-o/2,y:-l/2-c},{x:o/2,y:-l/2-c},...sR(o/2,-l/2,c,20,-90,0),{x:o/2+c,y:-c},...sR(o/2+2*c,-c,c,20,-180,-270),...sR(o/2+2*c,c,c,20,-90,-180),{x:o/2+c,y:l/2},...sR(o/2,l/2,c,20,0,90),{x:o/2,y:l/2+c},{x:-o/2,y:l/2+c}],p=FI.svg(i),g=AN(t,{fill:"none"}),f=("handDrawn"!==t.look&&(g.roughness=0,g.fillStyle="solid"),eN(u).replace("Z","")),m=p.path(f,g),y=eN(d),v=p.path(y,{...g}),x=i.insert("g",":first-child");return x.insert(()=>v,":first-child").attr("stroke-opacity",0),x.insert(()=>m,":first-child"),x.attr("class","text"),h&&"handDrawn"!==t.look&&x.selectAll("path").attr("style",h),n&&"handDrawn"!==t.look&&x.selectAll("path").attr("style",n),x.attr("transform",`translate(${-c}, 0)`),s.attr("transform",`translate(${-o/2+(t.padding??0)/2-(a.x-(a.left??0))},${-l/2+(t.padding??0)/2-(a.y-(a.top??0))})`),aN(t,x),t.intersect=function(e){return V.polygon(t,d,e)},i}var lR=b(()=>{i(),RN(),MN(),zI(),mt(sR,"generateCirclePoints"),mt(oR,"curlyBraceRight")});function cR(t,r,n,i=100,e=0,a=180){var s=[],o=e*Math.PI/180,l=(a*Math.PI/180-o)/(i-1);for(let e=0;e<i;e++){var c=o+e*l,h=t+n*Math.cos(c),c=r+n*Math.sin(c);s.push({x:-h,y:-c})}return s}async function hR(e,t){var{labelStyles:r,nodeStyles:n}=Q(t);t.labelStyle=r;let{shapeSvg:i,bbox:a,label:s}=await nN(e,t,sN(t)),o=a.width+(t.padding??0),l=a.height+(t.padding??0),c=Math.max(5,.1*l),h=t.cssStyles,u=[...cR(o/2,-l/2,c,30,-90,0),{x:-o/2-c,y:c},...cR(o/2+2*c,-c,c,20,-180,-270),...cR(o/2+2*c,c,c,20,-90,-180),{x:-o/2-c,y:-l/2},...cR(o/2,l/2,c,20,0,90)],d=[...cR(-o/2+c+c/2,-l/2,c,20,-90,-180),{x:o/2-c/2,y:c},...cR(-o/2-c/2,-c,c,20,0,90),...cR(-o/2-c/2,c,c,20,-90,0),{x:o/2-c/2,y:-c},...cR(-o/2+c+c/2,l/2,c,30,-180,-270)],p=[{x:o/2,y:-l/2-c},{x:-o/2,y:-l/2-c},...cR(o/2,-l/2,c,20,-90,0),{x:-o/2-c,y:-c},...cR(o/2+2*c,-c,c,20,-180,-270),...cR(o/2+2*c,c,c,20,-90,-180),{x:-o/2-c,y:l/2},...cR(o/2,l/2,c,20,0,90),{x:-o/2,y:l/2+c},{x:o/2-c-c/2,y:l/2+c},...cR(-o/2+c+c/2,-l/2,c,20,-90,-180),{x:o/2-c/2,y:c},...cR(-o/2-c/2,-c,c,20,0,90),...cR(-o/2-c/2,c,c,20,-90,0),{x:o/2-c/2,y:-c},...cR(-o/2+c+c/2,l/2,c,30,-180,-270)],g=FI.svg(i),f=AN(t,{fill:"none"}),m=("handDrawn"!==t.look&&(f.roughness=0,f.fillStyle="solid"),eN(u).replace("Z","")),y=g.path(m,f),v=eN(d).replace("Z","" Line truncated
`),n));var a='<span class="'+(e.isNode?"nodeLabel":"edgeLabel")+'" '+(e.labelStyle?'style="'+e.labelStyle+'"':"")+">"+i+"</span>";return r.html(lc(a,n)),TM(r,e.labelStyle),r.style("display","inline-block"),r.style("padding-right","1px"),r.style("white-space","nowrap"),r.attr("xmlns","http://www.w3.org/1999/xhtml"),t.node()}var CM,_M,SM=b(()=>{i6(),Tu(),Oc(),e(),i_(),mt(TM,"applyStyle"),mt(EM,"addHtmlLabel"),CM=mt(async(e,t,r,n)=>{let i=e||"";if("object"==typeof i&&(i=i[0]),fc(O().flowchart.htmlLabels))return i=i.replace(/\\n|\n/g,"<br />"),D.info("vertexText"+i),EM({isNode:n,label:r_(i).replace(/fa[blrs]?:fa-[\w-]+/g,e=>`<i class='${e.replace(":"," ")}'></i>`),labelStyle:t&&t.replace("fill:","color:")});var a,s=document.createElementNS("http://www.w3.org/2000/svg","text");s.setAttribute("style",t.replace("color:","fill:"));for(a of"string"==typeof i?i.split(/\\n|\n|<br\s*\/?>/gi):Array.isArray(i)?i:[]){var o=document.createElementNS("http://www.w3.org/2000/svg","tspan");o.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),o.setAttribute("dy","1em"),o.setAttribute("x","0"),r?o.setAttribute("class","title-row"):o.setAttribute("class","row"),o.textContent=a.trim(),s.appendChild(o)}return s},"createLabel"),_M=CM});async function AM(i,a){var{labelStyles:e,nodeStyles:t}=Q(a);a.labelStyle=e;let r,s=(r=a.cssClasses?"node "+a.cssClasses:"node default",i.insert("g").attr("class",r).attr("id",a.domId||a.id)),n=s.insert("g"),o=s.insert("g").attr("class","label").attr("style",t),l=a.description,c=a.label,h=o.node().appendChild(await _M(c,a.labelStyle,!0,!0)),u={width:0,height:0};fc(O()?.flowchart?.htmlLabels)&&(e=h.children[0],i=H(h),u=e.getBoundingClientRect(),i.attr("width",u.width),i.attr("height",u.height)),D.info("Text 2",l);var e=l||[],i=h.getBBox(),d=(e=o.node().appendChild(await _M(e.join?e.join("<br/>"):e,a.labelStyle,!0,!0))).children[0],p=H(e),d=(u=d.getBoundingClientRect(),p.attr("width",u.width),p.attr("height",u.height),(a.padding||0)/2);H(e).attr("transform","translate( "+(u.width>i.width?0:(i.width-u.width)/2)+", "+(i.height+d+5)+")"),H(h).attr("transform","translate( "+(u.width<i.width?0:-(i.width-u.width)/2)+", 0)"),u=o.node().getBBox(),o.attr("transform","translate("+-u.width/2+", "+(-u.height/2-d+3)+")");let g=u.width+(a.padding||0),f=u.height+(a.padding||0),m=-u.width/2-d,y=-u.height/2-d,v,x;if("handDrawn"===a.look){let e=FI.svg(s),t=AN(a,{}),r=e.path($R(m,y,g,f,a.rx||0),t),n=e.line(-u.width/2-d,-u.height/2-d+i.height+d,u.width/2+d,-u.height/2-d+i.height+d,t);x=s.insert(()=>(D.debug("Rough node insert CXC",r),n),":first-child"),v=s.insert(()=>(D.debug("Rough node insert CXC",r),r),":first-child")}else v=n.insert("rect",":first-child"),x=n.insert("line"),v.attr("class","outer title-state").attr("style",t).attr("x",-u.width/2-d).attr("y",-u.height/2-d).attr("width",u.width+(a.padding||0)).attr("height",u.height+(a.padding||0)),x.attr("class","divider").attr("x1",-u.width/2-d).attr("x2",u.width/2+d).attr("y1",-u.height/2-d+i.height+d).attr("y2",-u.height/2-d+i.height+d);return aN(a,v),a.intersect=function(e){return V.rect(a,e)},s}var LM=b(()=>{i6(),Oc(),i(),SM(),RN(),MN(),zI(),Tu(),zR(),e(),mt(AM,"rectWithTitle")});function NM(e,t,r,n,i,a,s){var o=(e+r)/2,l=(t+n)/2,c=Math.atan2(n-t,r-e),h=Math.sqrt(((r-e)/2/i)**2+((n-t)/2/a)**2);if(1<h)throw new Error("The given radii are too small to create an arc between the points.");let u=Math.sqrt(1-h**2),d=o+u*a*Math.sin(c)*(s?-1:1),p=l-u*i*Math.cos(c)*(s?-1:1),g=Math.atan2((t-p)/a,(e-d)/i),f=Math.atan2((n-p)/a,(r-d)/i)-g;s&&f<0&&(f+=2*Math.PI),!s&&0<f&&(f-=2*Math.PI);var m=[];for(let e=0;e<20;e++){var y=g+e/19*f,v=d+i*Math.cos(y),y=p+a*Math.sin(y);m.push({x:v,y:y})}return m}async function IM(e,t){var{labelStyles:r,nodeStyles:n}=Q(t),{shapeSvg:r,bbox:e}=(t.labelStyle=r,await nN(e,t,sN(t))),i=t?.padding??0,a=t?.padding??0,i=(t?.width||e.width)+2*i,e=(t?.height||e.height)+2*a,a=t.radius||5,s=t.taper||5,o=t.cssStyles,l=FI.svg(r),c=AN(t,{});t.stroke&&(c.stroke=t.stroke),"handDrawn"!==t.look&&(c.roughness=0,c.fillStyle="solid");let h=[{x:-i/2+s,y:-e/2},{x:i/2-s,y:-e/2},...NM(i/2-s,-e/2,i/2,-e/2+s,a,a,!0),{x:i/2,y:-e/2+s},{x:i/2,y:e/2-s},...NM(i/2,e/2-s,i/2-s,e/2,a,a,!0),{x:i/2-s,y:e/2},{x:-i/2+s,y:e/2},...NM(-i/2+s,e/2,-i/2,e/2-s,a,a,!0),{x:-i/2,y:e/2-s},{x:-i/2,y:-e/2+s},...NM(-i/2,-e/2+s,-i/2+s,-e/2,a,a,!0)],u=eN(h),d=l.path(u,c),p=r.insert(()=>d,":first-child");return p.attr("class","basic label-container outer-path"),o&&"handDrawn"!==t.look&&p.selectChildren("path").attr("style",o),n&&"handDrawn"!==t.look&&p.selectChildren("path").attr("style",n),aN(t,p),t.intersect=function(e){return V.polygon(t,h,e)},r}var RM=b(()=>{i(),RN(),MN(),zI(),mt(NM,"generateArcPoints"),mt(IM,"roundedRect")});async function MM(e,t){var{labelStyles:r,nodeStyles:n}=Q(t),{shapeSvg:r,bbox:e,label:i}=(t.labelStyle=r,await nN(e,t,sN(t))),a=t?.padding??0,s=Math.max(e.width+2*(t.padding??0),t?.width??0),o=Math.max(e.height+2*(t.padding??0),t?.height??0),l=-e.width/2-a Line truncated `),n));var a='<span class="'+(e.isNode?"nodeLabel":"edgeLabel")+'" '+(e.labelStyle?'style="'+e.labelStyle+'"':"")+">"+i+"</span>";return r.html(lc(a,n)),TM(r,e.labelStyle),r.style("display","inline-block"),r.style("padding-right","1px"),r.style("white-space","nowrap"),r.attr("xmlns","http://www.w3.org/1999/xhtml"),t.node()}var CM,SM,_M=b(()=>{i6(),Tu(),Oc(),e(),iS(),mt(TM,"applyStyle"),mt(EM,"addHtmlLabel"),CM=mt(async(e,t,r,n)=>{let i=e||"";if("object"==typeof i&&(i=i[0]),fc(O().flowchart.htmlLabels))return i=i.replace(/\\n|\n/g,"<br />"),D.info("vertexText"+i),EM({isNode:n,label:rS(i).replace(/fa[blrs]?:fa-[\w-]+/g,e=>`<i class='${e.replace(":"," ")}'></i>`),labelStyle:t&&t.replace("fill:","color:")});var a,s=document.createElementNS("http://www.w3.org/2000/svg","text");s.setAttribute("style",t.replace("color:","fill:"));for(a of"string"==typeof i?i.split(/\\n|\n|<br\s*\/?>/gi):Array.isArray(i)?i:[]){var o=document.createElementNS("http://www.w3.org/2000/svg","tspan");o.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),o.setAttribute("dy","1em"),o.setAttribute("x","0"),r?o.setAttribute("class","title-row"):o.setAttribute("class","row"),o.textContent=a.trim(),s.appendChild(o)}return s},"createLabel"),SM=CM});async function AM(i,a){var{labelStyles:e,nodeStyles:t}=Q(a);a.labelStyle=e;let r,s=(r=a.cssClasses?"node "+a.cssClasses:"node default",i.insert("g").attr("class",r).attr("id",a.domId||a.id)),n=s.insert("g"),o=s.insert("g").attr("class","label").attr("style",t),l=a.description,c=a.label,h=o.node().appendChild(await SM(c,a.labelStyle,!0,!0)),u={width:0,height:0};fc(O()?.flowchart?.htmlLabels)&&(e=h.children[0],i=H(h),u=e.getBoundingClientRect(),i.attr("width",u.width),i.attr("height",u.height)),D.info("Text 2",l);var e=l||[],i=h.getBBox(),d=(e=o.node().appendChild(await SM(e.join?e.join("<br/>"):e,a.labelStyle,!0,!0))).children[0],p=H(e),d=(u=d.getBoundingClientRect(),p.attr("width",u.width),p.attr("height",u.height),(a.padding||0)/2);H(e).attr("transform","translate( "+(u.width>i.width?0:(i.width-u.width)/2)+", "+(i.height+d+5)+")"),H(h).attr("transform","translate( "+(u.width<i.width?0:-(i.width-u.width)/2)+", 0)"),u=o.node().getBBox(),o.attr("transform","translate("+-u.width/2+", "+(-u.height/2-d+3)+")");let g=u.width+(a.padding||0),f=u.height+(a.padding||0),m=-u.width/2-d,y=-u.height/2-d,v,x;if("handDrawn"===a.look){let e=FI.svg(s),t=AN(a,{}),r=e.path($R(m,y,g,f,a.rx||0),t),n=e.line(-u.width/2-d,-u.height/2-d+i.height+d,u.width/2+d,-u.height/2-d+i.height+d,t);x=s.insert(()=>(D.debug("Rough node insert CXC",r),n),":first-child"),v=s.insert(()=>(D.debug("Rough node insert CXC",r),r),":first-child")}else v=n.insert("rect",":first-child"),x=n.insert("line"),v.attr("class","outer title-state").attr("style",t).attr("x",-u.width/2-d).attr("y",-u.height/2-d).attr("width",u.width+(a.padding||0)).attr("height",u.height+(a.padding||0)),x.attr("class","divider").attr("x1",-u.width/2-d).attr("x2",u.width/2+d).attr("y1",-u.height/2-d+i.height+d).attr("y2",-u.height/2-d+i.height+d);return aN(a,v),a.intersect=function(e){return V.rect(a,e)},s}var LM=b(()=>{i6(),Oc(),i(),_M(),RN(),MN(),zI(),Tu(),zR(),e(),mt(AM,"rectWithTitle")});function NM(e,t,r,n,i,a,s){var o=(e+r)/2,l=(t+n)/2,c=Math.atan2(n-t,r-e),h=Math.sqrt(((r-e)/2/i)**2+((n-t)/2/a)**2);if(1<h)throw new Error("The given radii are too small to create an arc between the points.");let u=Math.sqrt(1-h**2),d=o+u*a*Math.sin(c)*(s?-1:1),p=l-u*i*Math.cos(c)*(s?-1:1),g=Math.atan2((t-p)/a,(e-d)/i),f=Math.atan2((n-p)/a,(r-d)/i)-g;s&&f<0&&(f+=2*Math.PI),!s&&0<f&&(f-=2*Math.PI);var m=[];for(let e=0;e<20;e++){var y=g+e/19*f,v=d+i*Math.cos(y),y=p+a*Math.sin(y);m.push({x:v,y:y})}return m}async function IM(e,t){var{labelStyles:r,nodeStyles:n}=Q(t),{shapeSvg:r,bbox:e}=(t.labelStyle=r,await nN(e,t,sN(t))),i=t?.padding??0,a=t?.padding??0,i=(t?.width||e.width)+2*i,e=(t?.height||e.height)+2*a,a=t.radius||5,s=t.taper||5,o=t.cssStyles,l=FI.svg(r),c=AN(t,{});t.stroke&&(c.stroke=t.stroke),"handDrawn"!==t.look&&(c.roughness=0,c.fillStyle="solid");let h=[{x:-i/2+s,y:-e/2},{x:i/2-s,y:-e/2},...NM(i/2-s,-e/2,i/2,-e/2+s,a,a,!0),{x:i/2,y:-e/2+s},{x:i/2,y:e/2-s},...NM(i/2,e/2-s,i/2-s,e/2,a,a,!0),{x:i/2-s,y:e/2},{x:-i/2+s,y:e/2},...NM(-i/2+s,e/2,-i/2,e/2-s,a,a,!0),{x:-i/2,y:e/2-s},{x:-i/2,y:-e/2+s},...NM(-i/2,-e/2+s,-i/2+s,-e/2,a,a,!0)],u=eN(h),d=l.path(u,c),p=r.insert(()=>d,":first-child");return p.attr("class","basic label-container outer-path"),o&&"handDrawn"!==t.look&&p.selectChildren("path").attr("style",o),n&&"handDrawn"!==t.look&&p.selectChildren("path").attr("style",n),aN(t,p),t.intersect=function(e){return V.polygon(t,h,e)},r}var RM=b(()=>{i(),RN(),MN(),zI(),mt(NM,"generateArcPoints"),mt(IM,"roundedRect")});async function MM(e,t){var{labelStyles:r,nodeStyles:n}=Q(t),{shapeSvg:r,bbox:e,label:i}=(t.labelStyle=r,await nN(e,t,sN(t))),a=t?.padding??0,s=Math.max(e.width+2*(t.padding??0),t?.width??0),o=Math.max(e.height+2*(t.padding??0),t?.height??0),l=-e.width/2-a Line truncated
a${i},${a} 0,0,1 0,${-n} a${i},${a} 0,0,1 0,${-n}
l${r},0 l${r},0
a${i},${a} 0,0,1 0,${n} a${i},${a} 0,0,1 0,${n}
@@ -454,7 +454,7 @@ Please report this to https://github.com/markedjs/marked.`,r)return t="<p>An err
a${i},${a} 0,0,0 0,${n} a${i},${a} 0,0,0 0,${n}
l${-r},0`,"createCylinderPathD"),nD=mt((e,t,r,n,i,a)=>[`M${e},`+t,`M${e+r},`+t,`a${i},${a} 0,0,0 0,`+-n,`l${-r},0`,`a${i},${a} 0,0,0 0,`+n,`l${r},0`].join(" "),"createOuterCylinderPathD"),iD=mt((e,t,r,n,i,a)=>[`M${e+r/2},`+-n/2,`a${i},${a} 0,0,0 0,`+n].join(" "),"createInnerCylinderPathD"),mt(tD,"tiltedCylinder")});async function sD(e,i){var{labelStyles:t,nodeStyles:r}=Q(i);i.labelStyle=t;let{shapeSvg:a,bbox:n}=await nN(e,i,sN(i)),s=n.width+i.padding,o=n.height+i.padding,l=[{x:-3*o/6,y:0},{x:s+3*o/6,y:0},{x:s,y:-o},{x:0,y:-o}],c,h=i.cssStyles;if("handDrawn"===i.look){let e=FI.svg(a),t=AN(i,{}),r=eN(l),n=e.path(r,t);c=a.insert(()=>n,":first-child").attr("transform",`translate(${-s/2}, ${o/2})`),h&&c.attr("style",h)}else c=WI(a,s,o,l);return r&&c.attr("style",r),i.width=s,i.height=o,aN(i,c),i.intersect=function(e){return V.polygon(i,l,e)},a}var oD=b(()=>{i(),RN(),MN(),zI(),HI(),mt(sD,"trapezoid")});async function lD(e,t){var{labelStyles:r,nodeStyles:n}=Q(t),{shapeSvg:r,bbox:e}=(t.labelStyle=r,await nN(e,t,sN(t))),i=Math.max(60,e.width+2*(t.padding??0),t?.width??0),e=Math.max(20,e.height+2*(t.padding??0),t?.height??0),a=t.cssStyles,s=FI.svg(r),o=AN(t,{});"handDrawn"!==t.look&&(o.roughness=0,o.fillStyle="solid");let l=[{x:-i/2*.8,y:-e/2},{x:i/2*.8,y:-e/2},{x:i/2,y:-e/2*.6},{x:i/2,y:e/2},{x:-i/2,y:e/2},{x:-i/2,y:-e/2*.6}],c=eN(l),h=s.path(c,o),u=r.insert(()=>h,":first-child");return u.attr("class","basic label-container"),a&&"handDrawn"!==t.look&&u.selectChildren("path").attr("style",a),n&&"handDrawn"!==t.look&&u.selectChildren("path").attr("style",n),aN(t,u),t.intersect=function(e){return V.polygon(t,l,e)},r}var cD=b(()=>{i(),RN(),MN(),zI(),mt(lD,"trapezoidalPentagon")});async function hD(e,t){var{labelStyles:r,nodeStyles:n}=Q(t);t.labelStyle=r;let{shapeSvg:i,bbox:a,label:s}=await nN(e,t,sN(t)),o=fc(O().flowchart?.htmlLabels),l=a.width+(t.padding??0),c=l+a.height,h=l+a.height,u=[{x:0,y:0},{x:h,y:0},{x:h/2,y:-c}],d=t.cssStyles,p=FI.svg(i),g=AN(t,{}),f=("handDrawn"!==t.look&&(g.roughness=0,g.fillStyle="solid"),eN(u)),m=p.path(f,g),y=i.insert(()=>m,":first-child").attr("transform",`translate(${-c/2}, ${c/2})`);return d&&"handDrawn"!==t.look&&y.selectChildren("path").attr("style",d),n&&"handDrawn"!==t.look&&y.selectChildren("path").attr("style",n),t.width=l,t.height=c,aN(t,y),s.attr("transform",`translate(${-a.width/2-(a.x-(a.left??0))}, ${c/2-(a.height+(t.padding??0)/(o?2:1)-(a.y-(a.top??0)))})`),t.intersect=function(e){return D.info("Triangle intersect",t,u,e),V.polygon(t,u,e)},i}var uD=b(()=>{e(),i(),RN(),MN(),zI(),i(),Oc(),Tu(),mt(hD,"triangle")});async function dD(e,t){var{labelStyles:r,nodeStyles:n}=Q(t),{shapeSvg:r,bbox:e,label:i}=(t.labelStyle=r,await nN(e,t,sN(t))),a=Math.max(e.width+2*(t.padding??0),t?.width??0),s=Math.max(e.height+2*(t.padding??0),t?.height??0),o=s/8,l=s+o,c=t.cssStyles,h=0<(h=70-a)?h/2:0,u=FI.svg(r),d=AN(t,{});"handDrawn"!==t.look&&(d.roughness=0,d.fillStyle="solid");let p=[{x:-a/2-h,y:l/2},...tN(-a/2-h,l/2,a/2+h,l/2,o,.8),{x:a/2+h,y:-l/2},{x:-a/2-h,y:-l/2}],g=eN(p),f=u.path(g,d),m=r.insert(()=>f,":first-child");return m.attr("class","basic label-container"),c&&"handDrawn"!==t.look&&m.selectAll("path").attr("style",c),n&&"handDrawn"!==t.look&&m.selectAll("path").attr("style",n),m.attr("transform",`translate(0,${-o/2})`),i.attr("transform",`translate(${-a/2+(t.padding??0)-(e.x-(e.left??0))},${-s/2+(t.padding??0)-o-(e.y-(e.top??0))})`),aN(t,m),t.intersect=function(e){return V.polygon(t,p,e)},r}var pD=b(()=>{i(),RN(),zI(),MN(),mt(dD,"waveEdgedRectangle")});async function gD(e,t){var{labelStyles:r,nodeStyles:n}=Q(t);t.labelStyle=r;let{shapeSvg:i,bbox:a}=await nN(e,t,sN(t)),s=Math.max(a.width+2*(t.padding??0),t?.width??0),o=Math.max(a.height+2*(t.padding??0),t?.height??0),l=s/o,c=s,h=o;c>h*l?h=c/l:c=h*l,c=Math.max(c,100),h=Math.max(h,50);var r=Math.min(.2*h,h/4),e=h+2*r,u=t.cssStyles,d=FI.svg(i),p=AN(t,{});"handDrawn"!==t.look&&(p.roughness=0,p.fillStyle="solid");let g=[{x:-c/2,y:e/2},...tN(-c/2,e/2,c/2,e/2,r,1),{x:c/2,y:-e/2},...tN(c/2,-e/2,-c/2,-e/2,r,-1)],f=eN(g),m=d.path(f,p),y=i.insert(()=>m,":first-child");return y.attr("class","basic label-container"),u&&"handDrawn"!==t.look&&y.selectAll("path").attr("style",u),n&&"handDrawn"!==t.look&&y.selectAll("path").attr("style",n),aN(t,y),t.intersect=function(e){return V.polygon(t,g,e)},i}var fD=b(()=>{i(),RN(),MN(),zI(),mt(gD,"waveRectangle")});async function mD(e,t){var{labelStyles:r,nodeStyles:n}=Q(t);t.labelStyle=r;let{shapeSvg:i,bbox:a,label:s}=await nN(e,t,sN(t)),o=Math.max(a.width+2*(t.padding??0),t?.width??0),l=Math.max(a.height+2*(t.padding??0),t?.height??0),c=-o/2,h=-l/2,u=t.cssStyles,d=FI.svg(i),p=AN(t,{}),g=[{x:c-5,y:h-5},{x:c-5,y:h+l},{x:c+o,y:h+l},{x:c+o,y:h-5}],f=`M${c-5},${h-5} L${c+o},${h-5} L${c+o},${h+l} L${c-5},${h+l} L${c-5},${h-5} l${-r},0`,"createCylinderPathD"),nD=mt((e,t,r,n,i,a)=>[`M${e},`+t,`M${e+r},`+t,`a${i},${a} 0,0,0 0,`+-n,`l${-r},0`,`a${i},${a} 0,0,0 0,`+n,`l${r},0`].join(" "),"createOuterCylinderPathD"),iD=mt((e,t,r,n,i,a)=>[`M${e+r/2},`+-n/2,`a${i},${a} 0,0,0 0,`+n].join(" "),"createInnerCylinderPathD"),mt(tD,"tiltedCylinder")});async function sD(e,i){var{labelStyles:t,nodeStyles:r}=Q(i);i.labelStyle=t;let{shapeSvg:a,bbox:n}=await nN(e,i,sN(i)),s=n.width+i.padding,o=n.height+i.padding,l=[{x:-3*o/6,y:0},{x:s+3*o/6,y:0},{x:s,y:-o},{x:0,y:-o}],c,h=i.cssStyles;if("handDrawn"===i.look){let e=FI.svg(a),t=AN(i,{}),r=eN(l),n=e.path(r,t);c=a.insert(()=>n,":first-child").attr("transform",`translate(${-s/2}, ${o/2})`),h&&c.attr("style",h)}else c=WI(a,s,o,l);return r&&c.attr("style",r),i.width=s,i.height=o,aN(i,c),i.intersect=function(e){return V.polygon(i,l,e)},a}var oD=b(()=>{i(),RN(),MN(),zI(),HI(),mt(sD,"trapezoid")});async function lD(e,t){var{labelStyles:r,nodeStyles:n}=Q(t),{shapeSvg:r,bbox:e}=(t.labelStyle=r,await nN(e,t,sN(t))),i=Math.max(60,e.width+2*(t.padding??0),t?.width??0),e=Math.max(20,e.height+2*(t.padding??0),t?.height??0),a=t.cssStyles,s=FI.svg(r),o=AN(t,{});"handDrawn"!==t.look&&(o.roughness=0,o.fillStyle="solid");let l=[{x:-i/2*.8,y:-e/2},{x:i/2*.8,y:-e/2},{x:i/2,y:-e/2*.6},{x:i/2,y:e/2},{x:-i/2,y:e/2},{x:-i/2,y:-e/2*.6}],c=eN(l),h=s.path(c,o),u=r.insert(()=>h,":first-child");return u.attr("class","basic label-container"),a&&"handDrawn"!==t.look&&u.selectChildren("path").attr("style",a),n&&"handDrawn"!==t.look&&u.selectChildren("path").attr("style",n),aN(t,u),t.intersect=function(e){return V.polygon(t,l,e)},r}var cD=b(()=>{i(),RN(),MN(),zI(),mt(lD,"trapezoidalPentagon")});async function hD(e,t){var{labelStyles:r,nodeStyles:n}=Q(t);t.labelStyle=r;let{shapeSvg:i,bbox:a,label:s}=await nN(e,t,sN(t)),o=fc(O().flowchart?.htmlLabels),l=a.width+(t.padding??0),c=l+a.height,h=l+a.height,u=[{x:0,y:0},{x:h,y:0},{x:h/2,y:-c}],d=t.cssStyles,p=FI.svg(i),g=AN(t,{}),f=("handDrawn"!==t.look&&(g.roughness=0,g.fillStyle="solid"),eN(u)),m=p.path(f,g),y=i.insert(()=>m,":first-child").attr("transform",`translate(${-c/2}, ${c/2})`);return d&&"handDrawn"!==t.look&&y.selectChildren("path").attr("style",d),n&&"handDrawn"!==t.look&&y.selectChildren("path").attr("style",n),t.width=l,t.height=c,aN(t,y),s.attr("transform",`translate(${-a.width/2-(a.x-(a.left??0))}, ${c/2-(a.height+(t.padding??0)/(o?2:1)-(a.y-(a.top??0)))})`),t.intersect=function(e){return D.info("Triangle intersect",t,u,e),V.polygon(t,u,e)},i}var uD=b(()=>{e(),i(),RN(),MN(),zI(),i(),Oc(),Tu(),mt(hD,"triangle")});async function dD(e,t){var{labelStyles:r,nodeStyles:n}=Q(t),{shapeSvg:r,bbox:e,label:i}=(t.labelStyle=r,await nN(e,t,sN(t))),a=Math.max(e.width+2*(t.padding??0),t?.width??0),s=Math.max(e.height+2*(t.padding??0),t?.height??0),o=s/8,l=s+o,c=t.cssStyles,h=0<(h=70-a)?h/2:0,u=FI.svg(r),d=AN(t,{});"handDrawn"!==t.look&&(d.roughness=0,d.fillStyle="solid");let p=[{x:-a/2-h,y:l/2},...tN(-a/2-h,l/2,a/2+h,l/2,o,.8),{x:a/2+h,y:-l/2},{x:-a/2-h,y:-l/2}],g=eN(p),f=u.path(g,d),m=r.insert(()=>f,":first-child");return m.attr("class","basic label-container"),c&&"handDrawn"!==t.look&&m.selectAll("path").attr("style",c),n&&"handDrawn"!==t.look&&m.selectAll("path").attr("style",n),m.attr("transform",`translate(0,${-o/2})`),i.attr("transform",`translate(${-a/2+(t.padding??0)-(e.x-(e.left??0))},${-s/2+(t.padding??0)-o-(e.y-(e.top??0))})`),aN(t,m),t.intersect=function(e){return V.polygon(t,p,e)},r}var pD=b(()=>{i(),RN(),zI(),MN(),mt(dD,"waveEdgedRectangle")});async function gD(e,t){var{labelStyles:r,nodeStyles:n}=Q(t);t.labelStyle=r;let{shapeSvg:i,bbox:a}=await nN(e,t,sN(t)),s=Math.max(a.width+2*(t.padding??0),t?.width??0),o=Math.max(a.height+2*(t.padding??0),t?.height??0),l=s/o,c=s,h=o;c>h*l?h=c/l:c=h*l,c=Math.max(c,100),h=Math.max(h,50);var r=Math.min(.2*h,h/4),e=h+2*r,u=t.cssStyles,d=FI.svg(i),p=AN(t,{});"handDrawn"!==t.look&&(p.roughness=0,p.fillStyle="solid");let g=[{x:-c/2,y:e/2},...tN(-c/2,e/2,c/2,e/2,r,1),{x:c/2,y:-e/2},...tN(c/2,-e/2,-c/2,-e/2,r,-1)],f=eN(g),m=d.path(f,p),y=i.insert(()=>m,":first-child");return y.attr("class","basic label-container"),u&&"handDrawn"!==t.look&&y.selectAll("path").attr("style",u),n&&"handDrawn"!==t.look&&y.selectAll("path").attr("style",n),aN(t,y),t.intersect=function(e){return V.polygon(t,g,e)},i}var fD=b(()=>{i(),RN(),MN(),zI(),mt(gD,"waveRectangle")});async function mD(e,t){var{labelStyles:r,nodeStyles:n}=Q(t);t.labelStyle=r;let{shapeSvg:i,bbox:a,label:s}=await nN(e,t,sN(t)),o=Math.max(a.width+2*(t.padding??0),t?.width??0),l=Math.max(a.height+2*(t.padding??0),t?.height??0),c=-o/2,h=-l/2,u=t.cssStyles,d=FI.svg(i),p=AN(t,{}),g=[{x:c-5,y:h-5},{x:c-5,y:h+l},{x:c+o,y:h+l},{x:c+o,y:h-5}],f=`M${c-5},${h-5} L${c+o},${h-5} L${c+o},${h+l} L${c-5},${h+l} L${c-5},${h-5}
M${c-5},${h} L${c+o},${h} M${c-5},${h} L${c+o},${h}
M${c},${h-5} L${c},`+(h+l),m=("handDrawn"!==t.look&&(p.roughness=0,p.fillStyle="solid"),d.path(f,p)),y=i.insert(()=>m,":first-child");return y.attr("transform","translate(2.5, 2.5)"),y.attr("class","basic label-container"),u&&"handDrawn"!==t.look&&y.selectAll("path").attr("style",u),n&&"handDrawn"!==t.look&&y.selectAll("path").attr("style",n),s.attr("transform",`translate(${-a.width/2+2.5-(a.x-(a.left??0))}, ${-a.height/2+2.5-(a.y-(a.top??0))})`),aN(t,y),t.intersect=function(e){return V.polygon(t,g,e)},i}var yD=b(()=>{i(),MN(),zI(),RN(),mt(mD,"windowPane")});async function vD(e,t){var r,n=t,i=(n.alias&&(t.label=n.alias),"handDrawn"===t.look&&(A=(A=ar().themeVariables).background,await vD(e,{...t,id:t.id+"-background",look:"default",cssStyles:["stroke: none","fill: "+A]})),ar());t.useHtmlLabels=i.htmlLabels;let o=i.er?.diagramPadding??10,l=i.er?.entityPadding??6,a=t.cssStyles,{labelStyles:s,nodeStyles:c}=Q(t);if(0===n.attributes.length&&t.label)return A={rx:0,ry:0,labelPaddingX:o,labelPaddingY:1.5*o,classes:""},EC(t.label,i)+2*A.labelPaddingX<i.er.minEntityWidth&&(t.width=i.er.minEntityWidth),A=await XR(e,t,A),fc(i.htmlLabels)||(E=(S=A.select("text")).node()?.getBBox(),S.attr("transform",`translate(${-E.width/2}, 0)`)),A;i.htmlLabels||(o*=1.25,l*=1.25);let h=sN(t),u=(h=h||"node default",e.insert("g").attr("class",h).attr("id",t.domId||t.id)),d=await xD(u,t.label??"",i,0,0,["name"],s),p=(d.height+=l,0),g=[],f=[],m=0,y=0,v=0,x=0,b=!0,w=!0;for(r of n.attributes){var k=await xD(u,r.type,i,0,p,["attribute-type"],s),P=(m=Math.max(m,k.width+o),await xD(u,r.name,i,0,p,["attribute-name"],s)),B=(y=Math.max(y,P.width+o),await xD(u,r.keys.join(),i,0,p,["attribute-keys"],s)),$=(v=Math.max(v,B.width+o),await xD(u,r.comment,i,0,p,["attribute-comment"],s)),k=(x=Math.max(x,$.width+o),Math.max(k.height,P.height,B.height,$.height)+l);f.push({yOffset:p,rowHeight:k}),p+=k}let T=4;v<=o&&(b=!1,v=0,T--),x<=o&&(w=!1,x=0,T--);var E,F,C,_,S=u.node().getBBox(),A=(0<d.width+2*o-(m+y+v+x)&&(E=d.width+2*o-(m+y+v+x),m+=E/T,y+=E/T,0<v&&(v+=E/T),0<x)&&(x+=E/T),m+y+v+x),L=FI.svg(u),N=AN(t,{});"handDrawn"!==t.look&&(N.roughness=0,N.fillStyle="solid");let z=0,I=(0<f.length&&(z=f.reduce((e,t)=>e+(t?.rowHeight??0),0)),Math.max(S.width+2*o,t?.width||0,A)),R=Math.max((z??0)+d.height,t?.height||0),M=-I/2,D=-R/2,G=(u.selectAll("g:not(:first-child)").each((e,t,r)=>{let n=H(r[t]),i=n.attr("transform"),a=0,s=0;i&&(r=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(i))&&(a=parseFloat(r[1]),s=parseFloat(r[2]),n.attr("class").includes("attribute-name")?a+=m:n.attr("class").includes("attribute-keys")?a+=m+y:n.attr("class").includes("attribute-comment")&&(a+=m+y+v)),n.attr("transform",`translate(${M+o/2+a}, ${s+D+d.height+l/2})`)}),u.select(".name").attr("transform","translate("+-d.width/2+", "+(D+l/2)+")"),L.rectangle(M,D,I,R,N)),U=u.insert(()=>G,":first-child").attr("style",a.join("")),q=ar().themeVariables,{rowEven:j,rowOdd:Y,nodeBorder:W}=q;g.push(0);for([F,C]of f.entries()){let e=(F+1)%2==0&&0!==C.yOffset,t=L.rectangle(M,d.height+D+C?.yOffset,I,C?.rowHeight,{...N,fill:e?j:Y,stroke:W});u.insert(()=>t,"g.label").attr("style",a.join("")).attr("class","row-rect-"+(e?"even":"odd"))}let O=L.line(M,d.height+D,I+M,d.height+D,N);u.insert(()=>O).attr("class","divider"),O=L.line(m+M,d.height+D,m+M,R+D,N),u.insert(()=>O).attr("class","divider"),b&&(O=L.line(m+y+M,d.height+D,m+y+M,R+D,N),u.insert(()=>O).attr("class","divider")),w&&(O=L.line(m+y+v+M,d.height+D,m+y+v+M,R+D,N),u.insert(()=>O).attr("class","divider"));for(_ of g)O=L.line(M,d.height+D+_,I+M,d.height+D+_,N),u.insert(()=>O).attr("class","divider");return aN(t,U),c&&"handDrawn"!==t.look&&(e=c.split(";")?.filter(e=>e.includes("stroke"))?.map(e=>""+e).join("; "),u.selectAll("path").attr("style",e??""),u.selectAll(".row-rect-even path").attr("style",c)),t.intersect=function(e){return V.rect(t,e)},u}async function xD(e,t,r,n=0,i=0,a=[],s=""){if(e=e.insert("g").attr("class","label "+a.join(" ")).attr("transform",`translate(${n}, ${i})`).attr("style",s),t!==vc(t)&&(t=(t=vc(t)).replaceAll("<","&lt;").replaceAll(">","&gt;")),a=e.node().appendChild(await QL(e,t,{width:EC(t,r)+100,style:s,useHtmlLabels:r.htmlLabels},r)),t.includes("&lt;")||t.includes("&gt;")){let e=a.children[0];for(e.textContent=e.textContent.replaceAll("&lt;","<").replaceAll("&gt;",">");e.childNodes[0];)(e=e.childNodes[0]).textContent=e.textContent.replaceAll("&lt;","<").replaceAll("&gt;",">")}let o=a.getBBox();return fc(r.htmlLabels)&&((n=a.children[0]).style.textAlign="start",i=H(a),o=n.getBoundingClientRect(),i.attr("width",o.width),i.attr("height",o.height)),o}var bD=b(()=>{i(),RN(),MN(),zI(),KR(),rn(),JL(),Oc(),i6(),i_(),mt(vD,"erBox"),mt(xD,"addText")});async function wD(e,t,r,n,i=r.class.padding??12){let a=n?0:3,s=e.insert("g").attr("class",sN(t)).attr("id",t.domId||t.id),o=null,l=null,c=null,h=null,u=0,d,p=0;var g,f;o=s.insert("g").attr("class","annotation-group text"),0<t.annotations.length&&(n=t.annotations[0],await kD(o,{text Line truncated M${c},${h-5} L${c},`+(h+l),m=("handDrawn"!==t.look&&(p.roughness=0,p.fillStyle="solid"),d.path(f,p)),y=i.insert(()=>m,":first-child");return y.attr("transform","translate(2.5, 2.5)"),y.attr("class","basic label-container"),u&&"handDrawn"!==t.look&&y.selectAll("path").attr("style",u),n&&"handDrawn"!==t.look&&y.selectAll("path").attr("style",n),s.attr("transform",`translate(${-a.width/2+2.5-(a.x-(a.left??0))}, ${-a.height/2+2.5-(a.y-(a.top??0))})`),aN(t,y),t.intersect=function(e){return V.polygon(t,g,e)},i}var yD=b(()=>{i(),MN(),zI(),RN(),mt(mD,"windowPane")});async function vD(e,t){var r,n=t,i=(n.alias&&(t.label=n.alias),"handDrawn"===t.look&&(A=(A=ar().themeVariables).background,await vD(e,{...t,id:t.id+"-background",look:"default",cssStyles:["stroke: none","fill: "+A]})),ar());t.useHtmlLabels=i.htmlLabels;let o=i.er?.diagramPadding??10,l=i.er?.entityPadding??6,a=t.cssStyles,{labelStyles:s,nodeStyles:c}=Q(t);if(0===n.attributes.length&&t.label)return A={rx:0,ry:0,labelPaddingX:o,labelPaddingY:1.5*o,classes:""},EC(t.label,i)+2*A.labelPaddingX<i.er.minEntityWidth&&(t.width=i.er.minEntityWidth),A=await XR(e,t,A),fc(i.htmlLabels)||(E=(_=A.select("text")).node()?.getBBox(),_.attr("transform",`translate(${-E.width/2}, 0)`)),A;i.htmlLabels||(o*=1.25,l*=1.25);let h=sN(t),u=(h=h||"node default",e.insert("g").attr("class",h).attr("id",t.domId||t.id)),d=await xD(u,t.label??"",i,0,0,["name"],s),p=(d.height+=l,0),g=[],f=[],m=0,y=0,v=0,x=0,b=!0,w=!0;for(r of n.attributes){var k=await xD(u,r.type,i,0,p,["attribute-type"],s),P=(m=Math.max(m,k.width+o),await xD(u,r.name,i,0,p,["attribute-name"],s)),B=(y=Math.max(y,P.width+o),await xD(u,r.keys.join(),i,0,p,["attribute-keys"],s)),$=(v=Math.max(v,B.width+o),await xD(u,r.comment,i,0,p,["attribute-comment"],s)),k=(x=Math.max(x,$.width+o),Math.max(k.height,P.height,B.height,$.height)+l);f.push({yOffset:p,rowHeight:k}),p+=k}let T=4;v<=o&&(b=!1,v=0,T--),x<=o&&(w=!1,x=0,T--);var E,F,C,S,_=u.node().getBBox(),A=(0<d.width+2*o-(m+y+v+x)&&(E=d.width+2*o-(m+y+v+x),m+=E/T,y+=E/T,0<v&&(v+=E/T),0<x)&&(x+=E/T),m+y+v+x),L=FI.svg(u),N=AN(t,{});"handDrawn"!==t.look&&(N.roughness=0,N.fillStyle="solid");let z=0,I=(0<f.length&&(z=f.reduce((e,t)=>e+(t?.rowHeight??0),0)),Math.max(_.width+2*o,t?.width||0,A)),R=Math.max((z??0)+d.height,t?.height||0),M=-I/2,D=-R/2,G=(u.selectAll("g:not(:first-child)").each((e,t,r)=>{let n=H(r[t]),i=n.attr("transform"),a=0,s=0;i&&(r=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(i))&&(a=parseFloat(r[1]),s=parseFloat(r[2]),n.attr("class").includes("attribute-name")?a+=m:n.attr("class").includes("attribute-keys")?a+=m+y:n.attr("class").includes("attribute-comment")&&(a+=m+y+v)),n.attr("transform",`translate(${M+o/2+a}, ${s+D+d.height+l/2})`)}),u.select(".name").attr("transform","translate("+-d.width/2+", "+(D+l/2)+")"),L.rectangle(M,D,I,R,N)),U=u.insert(()=>G,":first-child").attr("style",a.join("")),q=ar().themeVariables,{rowEven:j,rowOdd:Y,nodeBorder:W}=q;g.push(0);for([F,C]of f.entries()){let e=(F+1)%2==0&&0!==C.yOffset,t=L.rectangle(M,d.height+D+C?.yOffset,I,C?.rowHeight,{...N,fill:e?j:Y,stroke:W});u.insert(()=>t,"g.label").attr("style",a.join("")).attr("class","row-rect-"+(e?"even":"odd"))}let O=L.line(M,d.height+D,I+M,d.height+D,N);u.insert(()=>O).attr("class","divider"),O=L.line(m+M,d.height+D,m+M,R+D,N),u.insert(()=>O).attr("class","divider"),b&&(O=L.line(m+y+M,d.height+D,m+y+M,R+D,N),u.insert(()=>O).attr("class","divider")),w&&(O=L.line(m+y+v+M,d.height+D,m+y+v+M,R+D,N),u.insert(()=>O).attr("class","divider"));for(S of g)O=L.line(M,d.height+D+S,I+M,d.height+D+S,N),u.insert(()=>O).attr("class","divider");return aN(t,U),c&&"handDrawn"!==t.look&&(e=c.split(";")?.filter(e=>e.includes("stroke"))?.map(e=>""+e).join("; "),u.selectAll("path").attr("style",e??""),u.selectAll(".row-rect-even path").attr("style",c)),t.intersect=function(e){return V.rect(t,e)},u}async function xD(e,t,r,n=0,i=0,a=[],s=""){if(e=e.insert("g").attr("class","label "+a.join(" ")).attr("transform",`translate(${n}, ${i})`).attr("style",s),t!==vc(t)&&(t=(t=vc(t)).replaceAll("<","&lt;").replaceAll(">","&gt;")),a=e.node().appendChild(await QL(e,t,{width:EC(t,r)+100,style:s,useHtmlLabels:r.htmlLabels},r)),t.includes("&lt;")||t.includes("&gt;")){let e=a.children[0];for(e.textContent=e.textContent.replaceAll("&lt;","<").replaceAll("&gt;",">");e.childNodes[0];)(e=e.childNodes[0]).textContent=e.textContent.replaceAll("&lt;","<").replaceAll("&gt;",">")}let o=a.getBBox();return fc(r.htmlLabels)&&((n=a.children[0]).style.textAlign="start",i=H(a),o=n.getBoundingClientRect(),i.attr("width",o.width),i.attr("height",o.height)),o}var bD=b(()=>{i(),RN(),MN(),zI(),KR(),rn(),JL(),Oc(),i6(),iS(),mt(vD,"erBox"),mt(xD,"addText")});async function wD(e,t,r,n,i=r.class.padding??12){let a=n?0:3,s=e.insert("g").attr("class",sN(t)).attr("id",t.domId||t.id),o=null,l=null,c=null,h=null,u=0,d,p=0;var g,f;o=s.insert("g").attr("class","annotation-group text"),0<t.annotations.length&&(n=t.annotations[0],await kD(o,{text Line truncated
a${o},${o} 1 0,0 ${.25*s},${-1*r*.1} a${o},${o} 1 0,0 ${.25*s},${-1*r*.1}
a${o},${o} 1 0,0 ${.25*s},0 a${o},${o} 1 0,0 ${.25*s},0
a${o},${o} 1 0,0 ${.25*s},0 a${o},${o} 1 0,0 ${.25*s},0
@@ -472,7 +472,7 @@ Please report this to https://github.com/markedjs/marked.`,r)return t="<p>An err
a${o},${o} 1 0,0 ${-1*s*.1},${-1*r*.33} a${o},${o} 1 0,0 ${-1*s*.1},${-1*r*.33}
a${.8*o},${.8*o} 1 0,0 0,${-1*r*.34} a${.8*o},${.8*o} 1 0,0 0,${-1*r*.34}
a${o},${o} 1 0,0 ${.1*s},${-1*r*.33} a${o},${o} 1 0,0 ${.1*s},${-1*r*.33}
H0 V0 Z`;if("handDrawn"===n.look){let e=FI.svg(i),t=AN(n,{}),r=e.path(u,t);(h=i.insert(()=>r,":first-child")).attr("class","basic label-container").attr("style",SC(l))}else h=i.insert("path",":first-child").attr("class","basic label-container").attr("style",t).attr("d",u);return h.attr("transform",`translate(${-s/2}, ${-r/2})`),aN(n,h),n.calcIntersect=function(e,t){return V.rect(e,t)},n.intersect=function(e){return D.info("Bang intersect",n,e),V.rect(n,e)},i}var MD=b(()=>{e(),i(),RN(),MN(),zI(),i_(),mt(RD,"bang")});async function DD(e,n){var{labelStyles:t,nodeStyles:r}=Q(n);n.labelStyle=t;let{shapeSvg:i,bbox:a,halfPadding:s,label:o}=await nN(e,n,sN(n)),l=a.width+2*s,c=a.height+2*s,h=.15*l,u=.25*l,d=.35*l,p=.2*l,g=n.cssStyles,f,m=`M0 0 H0 V0 Z`;if("handDrawn"===n.look){let e=FI.svg(i),t=AN(n,{}),r=e.path(u,t);(h=i.insert(()=>r,":first-child")).attr("class","basic label-container").attr("style",_C(l))}else h=i.insert("path",":first-child").attr("class","basic label-container").attr("style",t).attr("d",u);return h.attr("transform",`translate(${-s/2}, ${-r/2})`),aN(n,h),n.calcIntersect=function(e,t){return V.rect(e,t)},n.intersect=function(e){return D.info("Bang intersect",n,e),V.rect(n,e)},i}var MD=b(()=>{e(),i(),RN(),MN(),zI(),iS(),mt(RD,"bang")});async function DD(e,n){var{labelStyles:t,nodeStyles:r}=Q(n);n.labelStyle=t;let{shapeSvg:i,bbox:a,halfPadding:s,label:o}=await nN(e,n,sN(n)),l=a.width+2*s,c=a.height+2*s,h=.15*l,u=.25*l,d=.35*l,p=.2*l,g=n.cssStyles,f,m=`M0 0
a${h},${h} 0 0,1 ${.25*l},${-1*l*.1} a${h},${h} 0 0,1 ${.25*l},${-1*l*.1}
a${d},${d} 1 0,1 ${.4*l},${-1*l*.1} a${d},${d} 1 0,1 ${.4*l},${-1*l*.1}
a${u},${u} 1 0,1 ${.35*l},${.2*l} a${u},${u} 1 0,1 ${.35*l},${.2*l}
@@ -486,7 +486,7 @@ Please report this to https://github.com/markedjs/marked.`,r)return t="<p>An err
a${h},${h} 1 0,1 ${-1*l*.1},${-1*c*.35} a${h},${h} 1 0,1 ${-1*l*.1},${-1*c*.35}
a${p},${p} 1 0,1 ${.1*l},${-1*c*.65} a${p},${p} 1 0,1 ${.1*l},${-1*c*.65}
H0 V0 Z`;if("handDrawn"===n.look){let e=FI.svg(i),t=AN(n,{}),r=e.path(m,t);(f=i.insert(()=>r,":first-child")).attr("class","basic label-container").attr("style",SC(g))}else f=i.insert("path",":first-child").attr("class","basic label-container").attr("style",r).attr("d",m);return o.attr("transform",`translate(${-a.width/2}, ${-a.height/2})`),f.attr("transform",`translate(${-l/2}, ${-c/2})`),aN(n,f),n.calcIntersect=function(e,t){return V.rect(e,t)},n.intersect=function(e){return D.info("Cloud intersect",n,e),V.rect(n,e)},i}var OD=b(()=>{zI(),e(),i_(),RN(),MN(),i(),mt(DD,"cloud")});async function PD(e,t){var{labelStyles:r,nodeStyles:n}=Q(t);t.labelStyle=r;let{shapeSvg:i,bbox:a,halfPadding:s,label:o}=await nN(e,t,sN(t)),l=a.width+8*s,c=a.height+2*s,h=` H0 V0 Z`;if("handDrawn"===n.look){let e=FI.svg(i),t=AN(n,{}),r=e.path(m,t);(f=i.insert(()=>r,":first-child")).attr("class","basic label-container").attr("style",_C(g))}else f=i.insert("path",":first-child").attr("class","basic label-container").attr("style",r).attr("d",m);return o.attr("transform",`translate(${-a.width/2}, ${-a.height/2})`),f.attr("transform",`translate(${-l/2}, ${-c/2})`),aN(n,f),n.calcIntersect=function(e,t){return V.rect(e,t)},n.intersect=function(e){return D.info("Cloud intersect",n,e),V.rect(n,e)},i}var OD=b(()=>{zI(),e(),iS(),RN(),MN(),i(),mt(DD,"cloud")});async function PD(e,t){var{labelStyles:r,nodeStyles:n}=Q(t);t.labelStyle=r;let{shapeSvg:i,bbox:a,halfPadding:s,label:o}=await nN(e,t,sN(t)),l=a.width+8*s,c=a.height+2*s,h=`
M${-l/2} ${c/2-5} M${-l/2} ${c/2-5}
v${10-c} v${10-c}
q0,-5 5,-5 q0,-5 5,-5
@@ -497,30 +497,30 @@ Please report this to https://github.com/markedjs/marked.`,r)return t="<p>An err
h${10-l} h${10-l}
q-5,0 -5,-5 q-5,0 -5,-5
Z Z
`,u=i.append("path").attr("id","node-"+t.id).attr("class","node-bkg node-"+t.type).attr("style",n).attr("d",h);return i.append("line").attr("class","node-line-").attr("x1",-l/2).attr("y1",c/2).attr("x2",l/2).attr("y2",c/2),o.attr("transform",`translate(${-a.width/2}, ${-a.height/2})`),i.append(()=>o.node()),aN(t,u),t.calcIntersect=function(e,t){return V.rect(e,t)},t.intersect=function(e){return V.rect(t,e)},i}var BD=b(()=>{RN(),MN(),i(),mt(PD,"defaultMindmapNode")});async function $D(e,t){return QI(e,t,{padding:t.padding??0})}var FD=b(()=>{JI(),mt($D,"mindmapCircle")});function zD(e){return e in qD}var GD,UD,qD,jD,YD,WD,HD,VD,XD,KD,ZD,QD,JD,eO,tO,rO=b(()=>{UI(),YI(),XI(),ZI(),JI(),rR(),aR(),lR(),uR(),pR(),vR(),bR(),kR(),ER(),_R(),AR(),NR(),RR(),DR(),PR(),FR(),UR(),jR(),WR(),VR(),QR(),eM(),rM(),iM(),cM(),uM(),pM(),fM(),yM(),bM(),kM(),LM(),RM(),DM(),PM(),$M(),zM(),UM(),jM(),WM(),VM(),KM(),QM(),eD(),aD(),oD(),cD(),uD(),pD(),fD(),yD(),bD(),CD(),AD(),ID(),MD(),OD(),BD(),FD(),GD=[{semanticName:"Process",name:"Rectangle",shortName:"rect",description:"Standard process shape",aliases:["proc","process","rectangle"],internalAliases:["squareRect"],handler:BM},{semanticName:"Event",name:"Rounded Rectangle",shortName:"rounded",description:"Represents an event",aliases:["event"],internalAliases:["roundedRect"],handler:IM},{semanticName:"Terminal Point",name:"Stadium",shortName:"stadium",description:"Terminal point",aliases:["terminal","pill"],handler:FM},{semanticName:"Subprocess",name:"Framed Rectangle",shortName:"fr-rect",description:"Subprocess",aliases:["subprocess","subproc","framed-rectangle","subroutine"],handler:HM},{semanticName:"Database",name:"Cylinder",shortName:"cyl",description:"Database storage",aliases:["db","database","cylinder"],handler:gR},{semanticName:"Start",name:"Circle",shortName:"circle",description:"Starting point",aliases:["circ"],handler:QI},{semanticName:"Bang",name:"Bang",shortName:"bang",description:"Bang",aliases:["bang"],handler:RD},{semanticName:"Cloud",name:"Cloud",shortName:"cloud",description:"cloud",aliases:["cloud"],handler:DD},{semanticName:"Decision",name:"Diamond",shortName:"diam",description:"Decision-making step",aliases:["decision","diamond","question"],handler:vM},{semanticName:"Prepare Conditional",name:"Hexagon",shortName:"hex",description:"Preparation or condition step",aliases:["hexagon","prepare"],handler:IR},{semanticName:"Data Input/Output",name:"Lean Right",shortName:"lean-r",description:"Represents input or output",aliases:["lean-right","in-out"],internalAliases:["lean_right"],handler:tM},{semanticName:"Data Input/Output",name:"Lean Left",shortName:"lean-l",description:"Represents output or input",aliases:["lean-left","out-in"],internalAliases:["lean_left"],handler:JR},{semanticName:"Priority Action",name:"Trapezoid Base Bottom",shortName:"trap-b",description:"Priority action",aliases:["priority","trapezoid-bottom","trapezoid"],handler:sD},{semanticName:"Manual Operation",name:"Trapezoid Base Top",shortName:"trap-t",description:"Represents a manual task",aliases:["manual","trapezoid-top","inv-trapezoid"],internalAliases:["inv_trapezoid"],handler:HR},{semanticName:"Stop",name:"Double Circle",shortName:"dbl-circ",description:"Represents a stop point",aliases:["double-circle"],internalAliases:["doublecircle"],handler:wR},{semanticName:"Text Block",name:"Text Block",shortName:"text",description:"Text block",handler:JM},{semanticName:"Card",name:"Notched Rectangle",shortName:"notch-rect",description:"Represents a card",aliases:["card","notched-rectangle"],handler:VI},{semanticName:"Lined/Shaded Process",name:"Lined Rectangle",shortName:"lin-rect",description:"Lined process shape",aliases:["lined-rectangle","lined-process","lin-proc","shaded-process"],handler:MM},{semanticName:"Start",name:"Small Circle",shortName:"sm-circ",description:"Small starting point",aliases:["start","small-circle"],internalAliases:["stateStart"],handler:YM},{semanticName:"Stop",name:"Framed Circle",shortName:"fr-circ",description:"Stop point",aliases:["stop","framed-circle"],internalAliases:["stateEnd"],handler:qM},{semanticName:"Fork/Join",name:"Filled Rectangle",shortName:"fork",description:"Fork or join in process flow",aliases:["join"],internalAliases:["forkJoin"],handler:SR},{semanticName:"Collate",name:"Hourglass",shortName:"hourglass",description:"Represents a collate operation",aliases:["hourglass","collate"],handler:MR},{semanticName:"Comment",name:"Curly Brace",shortName:"brace",description:"Adds a comment",aliases:["comment","brace-l"],handler:iR},{semanticName:"Comment Right",name:"Curly Brace",shortName:"brace-r",description:"Adds a comment",handler:oR},{semanticName:"Comment with braces on both sides",name:"Curly Braces",shortName:"braces",description:"Adds a comment",handler:hR},{semanticName:"Com Link",name:"Lightning Bolt",shortName:"bolt",description:"Communication link",aliases:["com-link","lightning-bolt"],handler:nM},{semanticName:"Document",name:"Document",shortName:"doc",d Line truncated `,u=i.append("path").attr("id","node-"+t.id).attr("class","node-bkg node-"+t.type).attr("style",n).attr("d",h);return i.append("line").attr("class","node-line-").attr("x1",-l/2).attr("y1",c/2).attr("x2",l/2).attr("y2",c/2),o.attr("transform",`translate(${-a.width/2}, ${-a.height/2})`),i.append(()=>o.node()),aN(t,u),t.calcIntersect=function(e,t){return V.rect(e,t)},t.intersect=function(e){return V.rect(t,e)},i}var BD=b(()=>{RN(),MN(),i(),mt(PD,"defaultMindmapNode")});async function $D(e,t){return QI(e,t,{padding:t.padding??0})}var FD=b(()=>{JI(),mt($D,"mindmapCircle")});function zD(e){return e in qD}var GD,UD,qD,jD,YD,WD,HD,VD,XD,KD,ZD,QD,JD,eO,tO,rO=b(()=>{UI(),YI(),XI(),ZI(),JI(),rR(),aR(),lR(),uR(),pR(),vR(),bR(),kR(),ER(),SR(),AR(),NR(),RR(),DR(),PR(),FR(),UR(),jR(),WR(),VR(),QR(),eM(),rM(),iM(),cM(),uM(),pM(),fM(),yM(),bM(),kM(),LM(),RM(),DM(),PM(),$M(),zM(),UM(),jM(),WM(),VM(),KM(),QM(),eD(),aD(),oD(),cD(),uD(),pD(),fD(),yD(),bD(),CD(),AD(),ID(),MD(),OD(),BD(),FD(),GD=[{semanticName:"Process",name:"Rectangle",shortName:"rect",description:"Standard process shape",aliases:["proc","process","rectangle"],internalAliases:["squareRect"],handler:BM},{semanticName:"Event",name:"Rounded Rectangle",shortName:"rounded",description:"Represents an event",aliases:["event"],internalAliases:["roundedRect"],handler:IM},{semanticName:"Terminal Point",name:"Stadium",shortName:"stadium",description:"Terminal point",aliases:["terminal","pill"],handler:FM},{semanticName:"Subprocess",name:"Framed Rectangle",shortName:"fr-rect",description:"Subprocess",aliases:["subprocess","subproc","framed-rectangle","subroutine"],handler:HM},{semanticName:"Database",name:"Cylinder",shortName:"cyl",description:"Database storage",aliases:["db","database","cylinder"],handler:gR},{semanticName:"Start",name:"Circle",shortName:"circle",description:"Starting point",aliases:["circ"],handler:QI},{semanticName:"Bang",name:"Bang",shortName:"bang",description:"Bang",aliases:["bang"],handler:RD},{semanticName:"Cloud",name:"Cloud",shortName:"cloud",description:"cloud",aliases:["cloud"],handler:DD},{semanticName:"Decision",name:"Diamond",shortName:"diam",description:"Decision-making step",aliases:["decision","diamond","question"],handler:vM},{semanticName:"Prepare Conditional",name:"Hexagon",shortName:"hex",description:"Preparation or condition step",aliases:["hexagon","prepare"],handler:IR},{semanticName:"Data Input/Output",name:"Lean Right",shortName:"lean-r",description:"Represents input or output",aliases:["lean-right","in-out"],internalAliases:["lean_right"],handler:tM},{semanticName:"Data Input/Output",name:"Lean Left",shortName:"lean-l",description:"Represents output or input",aliases:["lean-left","out-in"],internalAliases:["lean_left"],handler:JR},{semanticName:"Priority Action",name:"Trapezoid Base Bottom",shortName:"trap-b",description:"Priority action",aliases:["priority","trapezoid-bottom","trapezoid"],handler:sD},{semanticName:"Manual Operation",name:"Trapezoid Base Top",shortName:"trap-t",description:"Represents a manual task",aliases:["manual","trapezoid-top","inv-trapezoid"],internalAliases:["inv_trapezoid"],handler:HR},{semanticName:"Stop",name:"Double Circle",shortName:"dbl-circ",description:"Represents a stop point",aliases:["double-circle"],internalAliases:["doublecircle"],handler:wR},{semanticName:"Text Block",name:"Text Block",shortName:"text",description:"Text block",handler:JM},{semanticName:"Card",name:"Notched Rectangle",shortName:"notch-rect",description:"Represents a card",aliases:["card","notched-rectangle"],handler:VI},{semanticName:"Lined/Shaded Process",name:"Lined Rectangle",shortName:"lin-rect",description:"Lined process shape",aliases:["lined-rectangle","lined-process","lin-proc","shaded-process"],handler:MM},{semanticName:"Start",name:"Small Circle",shortName:"sm-circ",description:"Small starting point",aliases:["start","small-circle"],internalAliases:["stateStart"],handler:YM},{semanticName:"Stop",name:"Framed Circle",shortName:"fr-circ",description:"Stop point",aliases:["stop","framed-circle"],internalAliases:["stateEnd"],handler:qM},{semanticName:"Fork/Join",name:"Filled Rectangle",shortName:"fork",description:"Fork or join in process flow",aliases:["join"],internalAliases:["forkJoin"],handler:_R},{semanticName:"Collate",name:"Hourglass",shortName:"hourglass",description:"Represents a collate operation",aliases:["hourglass","collate"],handler:MR},{semanticName:"Comment",name:"Curly Brace",shortName:"brace",description:"Adds a comment",aliases:["comment","brace-l"],handler:iR},{semanticName:"Comment Right",name:"Curly Brace",shortName:"brace-r",description:"Adds a comment",handler:oR},{semanticName:"Comment with braces on both sides",name:"Curly Braces",shortName:"braces",description:"Adds a comment",handler:hR},{semanticName:"Com Link",name:"Lightning Bolt",shortName:"bolt",description:"Communication link",aliases:["com-link","lightning-bolt"],handler:nM},{semanticName:"Document",name:"Document",shortName:"doc",d Line truncated
`)?e+` `)?e+`
`:`{ `:`{
`+e+` `+e+`
}`,r=$9(t,{schema:B9})),e=this.edges.find(e=>e.id===n))void 0!==(t=r)?.animate&&(e.animate=t.animate),void 0!==t?.animation&&(e.animation=t.animation),void 0!==t?.curve&&(e.interpolate=t.curve);else{let e,t=this.vertices.get(n);if(void 0===t&&(t={id:n,labelType:"text",domId:"flowchart-"+n+"-"+this.vertexCounter,styles:[],classes:[]},this.vertices.set(n,t)),this.vertexCounter++,void 0!==i?(this.config=O(),e=this.sanitizeText(i.text.trim()),t.labelType=i.type,e.startsWith('"')&&e.endsWith('"')&&(e=e.substring(1,e.length-1)),t.text=e):void 0===t.text&&(t.text=n),void 0!==a&&(t.type=a),s?.forEach(e=>{t.styles.push(e)}),o?.forEach(e=>{t.classes.push(e)}),void 0!==l&&(t.dir=l),void 0===t.props?t.props=c:void 0!==c&&Object.assign(t.props,c),void 0!==r){if(r.shape){if(r.shape!==r.shape.toLowerCase()||r.shape.includes("_"))throw new Error(`No such shape: ${r.shape}. Shape names should be lowercase.`);if(!zD(r.shape))throw new Error(`No such shape: ${r.shape}.`);t.type=r?.shape}r?.label&&(t.text=r?.label),r?.icon&&(t.icon=r?.icon,!r.label?.trim())&&t.text===n&&(t.text=""),r?.form&&(t.form=r?.form),r?.pos&&(t.pos=r?.pos),r?.img&&(t.img=r?.img,!r.label?.trim())&&t.text===n&&(t.text=""),r?.constraint&&(t.constraint=r.constraint),r.w&&(t.assetWidth=Number(r.w)),r.h&&(t.assetHeight=Number(r.h))}}}}addSingleLink(e,t,r,n){let i={start:e,end:t,type:void 0,text:"",labelType:"text",classes:[],isUserDefinedId:!1,interpolate:this.edges.defaultInterpolate};if(D.info("abc78 Got edge...",i),void 0!==(e=r.text)&&(i.text=this.sanitizeText(e.text.trim()),i.text.startsWith('"')&&i.text.endsWith('"')&&(i.text=i.text.substring(1,i.text.length-1)),i.labelType=e.type),void 0!==r&&(i.type=r.type,i.stroke=r.stroke,i.length=10<r.length?10:r.length),n&&!this.edges.some(e=>e.id===n)?(i.id=n,i.isUserDefinedId=!0):0===(t=this.edges.filter(e=>e.start===i.start&&e.end===i.end)).length?i.id=n_(i.start,i.end,{counter:0,prefix:"L"}):i.id=n_(i.start,i.end,{counter:t.length+1,prefix:"L"}),!(this.edges.length<(this.config.maxEdges??500)))throw new Error(`Edge limit exceeded. ${this.edges.length} edges found, but the limit is ${this.config.maxEdges}. }`,r=$9(t,{schema:B9})),e=this.edges.find(e=>e.id===n))void 0!==(t=r)?.animate&&(e.animate=t.animate),void 0!==t?.animation&&(e.animation=t.animation),void 0!==t?.curve&&(e.interpolate=t.curve);else{let e,t=this.vertices.get(n);if(void 0===t&&(t={id:n,labelType:"text",domId:"flowchart-"+n+"-"+this.vertexCounter,styles:[],classes:[]},this.vertices.set(n,t)),this.vertexCounter++,void 0!==i?(this.config=O(),e=this.sanitizeText(i.text.trim()),t.labelType=i.type,e.startsWith('"')&&e.endsWith('"')&&(e=e.substring(1,e.length-1)),t.text=e):void 0===t.text&&(t.text=n),void 0!==a&&(t.type=a),s?.forEach(e=>{t.styles.push(e)}),o?.forEach(e=>{t.classes.push(e)}),void 0!==l&&(t.dir=l),void 0===t.props?t.props=c:void 0!==c&&Object.assign(t.props,c),void 0!==r){if(r.shape){if(r.shape!==r.shape.toLowerCase()||r.shape.includes("_"))throw new Error(`No such shape: ${r.shape}. Shape names should be lowercase.`);if(!zD(r.shape))throw new Error(`No such shape: ${r.shape}.`);t.type=r?.shape}r?.label&&(t.text=r?.label),r?.icon&&(t.icon=r?.icon,!r.label?.trim())&&t.text===n&&(t.text=""),r?.form&&(t.form=r?.form),r?.pos&&(t.pos=r?.pos),r?.img&&(t.img=r?.img,!r.label?.trim())&&t.text===n&&(t.text=""),r?.constraint&&(t.constraint=r.constraint),r.w&&(t.assetWidth=Number(r.w)),r.h&&(t.assetHeight=Number(r.h))}}}}addSingleLink(e,t,r,n){let i={start:e,end:t,type:void 0,text:"",labelType:"text",classes:[],isUserDefinedId:!1,interpolate:this.edges.defaultInterpolate};if(D.info("abc78 Got edge...",i),void 0!==(e=r.text)&&(i.text=this.sanitizeText(e.text.trim()),i.text.startsWith('"')&&i.text.endsWith('"')&&(i.text=i.text.substring(1,i.text.length-1)),i.labelType=e.type),void 0!==r&&(i.type=r.type,i.stroke=r.stroke,i.length=10<r.length?10:r.length),n&&!this.edges.some(e=>e.id===n)?(i.id=n,i.isUserDefinedId=!0):0===(t=this.edges.filter(e=>e.start===i.start&&e.end===i.end)).length?i.id=nS(i.start,i.end,{counter:0,prefix:"L"}):i.id=nS(i.start,i.end,{counter:t.length+1,prefix:"L"}),!(this.edges.length<(this.config.maxEdges??500)))throw new Error(`Edge limit exceeded. ${this.edges.length} edges found, but the limit is ${this.config.maxEdges}.
Initialize mermaid with maxEdges set to a higher number to allow more edges. Initialize mermaid with maxEdges set to a higher number to allow more edges.
You cannot set this config via configuration inside the diagram as it is a secure config. You cannot set this config via configuration inside the diagram as it is a secure config.
You have to call mermaid.initialize.`);D.info("Pushing edge..."),this.edges.push(i)}isLinkData(e){return null!==e&&"object"==typeof e&&"id"in e&&"string"==typeof e.id}addLink(e,t,r){var n,i=this.isLinkData(r)?r.id.replace("@",""):void 0;D.info("addLink",e,t,i);for(n of e)for(var a of t){var s=n===e[e.length-1],o=a===t[0];s&&o?this.addSingleLink(n,a,r,i):this.addSingleLink(n,a,r,void 0)}}updateLinkInterpolate(e,t){e.forEach(e=>{"default"===e?this.edges.defaultInterpolate=t:this.edges[e].interpolate=t})}updateLink(e,t){e.forEach(e=>{if("number"==typeof e&&e>=this.edges.length)throw new Error(`The index ${e} 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.)`);"default"===e?this.edges.defaultStyle=t:(this.edges[e].style=t,0<(this.edges[e]?.style?.length??0)&&!this.edges[e]?.style?.some(e=>e?.startsWith("fill"))&&this.edges[e]?.style?.push("fill:none"))})}addClass(e,t){let n=t.join().replace(/\\,/g,"§§§").replace(/,/g,";").replace(/§§§/g,",").split(";");e.split(",").forEach(e=>{let r=this.classes.get(e);void 0===r&&(r={id:e,styles:[],textStyles:[]},this.classes.set(e,r)),n?.forEach(e=>{var t;/color/.exec(e)&&(t=e.replace("fill","bgFill"),r.textStyles.push(t)),r.styles.push(e)})})}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"),"TD"===this.direction&&(this.direction="TB")}setClass(e,r){for(let t of e.split(",")){var n=this.vertices.get(t);n&&n.classes.push(r),(n=this.edges.find(e=>e.id===t))&&n.classes.push(r),(n=this.subGraphLookup.get(t))&&n.classes.push(r)}}setTooltip(e,t){if(void 0!==t){t=this.sanitizeText(t);for(var r of e.split(","))this.tooltips.set("gen-1"===this.version?this.lookUpDomId(r):r,t)}}setClickFun(e,t,n){let i=this.lookUpDomId(e);if("loose"===O().securityLevel&&void 0!==t){let r=[];if("string"==typeof n){r=n.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let t=0;t<r.length;t++){let e=r[t].trim();e.startsWith('"')&&e.endsWith('"')&&(e=e.substr(1,e.length-2)),r[t]=e}}0===r.length&&r.push(e),(n=this.vertices.get(e))&&(n.haveCallback=!0,this.funs.push(()=>{var e=document.querySelector(`[id="${i}"]`);null!==e&&e.addEventListener("click",()=>{e_.runFunc(t,...r)},!1)}))}}setLink(e,t,r){e.split(",").forEach(e=>{void 0!==(e=this.vertices.get(e))&&(e.link=e_.formatUrl(t,this.config),e.linkTarget=r)}),this.setClass(e,"clickable")}getTooltip(e){return this.tooltips.get(e)}setClickEvent(e,t,r){e.split(",").forEach(e=>{this.setClickFun(e,t,r)}),this.setClass(e,"clickable")}bindFunctions(t){this.funs.forEach(e=>{e(t)})}getDirection(){return this.direction?.trim()}getVertices(){return this.vertices}getEdges(){return this.edges}getClasses(){return this.classes}setupToolTips(e){let r=H(".mermaidTooltip");null===(r._groups||r)[0][0]&&(r=H("body").append("div").attr("class","mermaidTooltip").style("opacity",0)),H(e).select("svg").selectAll("g.node").on("mouseover",e=>{var t=H(e.currentTarget);null!==t.attr("title")&&(e=e.currentTarget?.getBoundingClientRect(),r.transition().duration(200).style("opacity",".9"),r.text(t.attr("title")).style("left",window.scrollX+e.left+(e.right-e.left)/2+"px").style("top",window.scrollY+e.bottom+"px"),r.html(r.html().replace(/&lt;br\/&gt;/g,"<br/>")),t.classed("hover",!0))}).on("mouseout",e=>{r.transition().duration(500).style("opacity",0),H(e.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.subGraphs=[],this.subGraphLookup=new Map,this.subCount=0,this.tooltips=new Map,this.firstGraphFlag=!0,this.version=e,this.config=O(),fh()}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,t,r){let n=e.text.trim(),i=r.text;e===r&&/\s/.exec(r.text)&&(n=void 0);var a=(e=mt(e=>{let r={boolean:{},number:{},string:{}},n=[],i;return{nodeList:e.filter(function(e){var t=typeof e;return e.stmt&&"dir"===e.stmt?(i=e.value,!1):""!==e.trim()&&(t in r?!r[t].hasOwnProperty(e)&&(r[t][e]=!0):!n.includes(e)&&n.push(e))}),dir:i}},"uniq")(t.flat())).nodeList,t=e.dir,e=O().flowchart??{},t=t??(e.inheritDir?this.getDirection()??O().direction??void 0:void 0);if("gen-1"===this.version)for(let e=0;e<a.length;e++)a[e]=this.lookUpDomId(a[e]);return n=n??"subGraph"+this.subCount,i=this.sanitizeText(i=i||""),this.subCount=this.subCount+1,e={id:n,nodes:a,title:i.trim(),classes:[],dir:t,labelType:r.type},D.info("Adding",e.id,e.nodes,e.dir),e.nodes=this.makeUniq(e,this.subGraphs).nodes,this.subGraphs.push(e),this.subGraphLookup.set(n,e),n}getPosForId(e){for(var[t,r]of this.subGraphs.entries())if(r.id===e)return t;return-1}indexNodes2(e,t){var r=this.subGraphs[t].nodes;if(this.secCount=this.secCount+1,2 Line truncated You have to call mermaid.initialize.`);D.info("Pushing edge..."),this.edges.push(i)}isLinkData(e){return null!==e&&"object"==typeof e&&"id"in e&&"string"==typeof e.id}addLink(e,t,r){var n,i=this.isLinkData(r)?r.id.replace("@",""):void 0;D.info("addLink",e,t,i);for(n of e)for(var a of t){var s=n===e[e.length-1],o=a===t[0];s&&o?this.addSingleLink(n,a,r,i):this.addSingleLink(n,a,r,void 0)}}updateLinkInterpolate(e,t){e.forEach(e=>{"default"===e?this.edges.defaultInterpolate=t:this.edges[e].interpolate=t})}updateLink(e,t){e.forEach(e=>{if("number"==typeof e&&e>=this.edges.length)throw new Error(`The index ${e} 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.)`);"default"===e?this.edges.defaultStyle=t:(this.edges[e].style=t,0<(this.edges[e]?.style?.length??0)&&!this.edges[e]?.style?.some(e=>e?.startsWith("fill"))&&this.edges[e]?.style?.push("fill:none"))})}addClass(e,t){let n=t.join().replace(/\\,/g,"§§§").replace(/,/g,";").replace(/§§§/g,",").split(";");e.split(",").forEach(e=>{let r=this.classes.get(e);void 0===r&&(r={id:e,styles:[],textStyles:[]},this.classes.set(e,r)),n?.forEach(e=>{var t;/color/.exec(e)&&(t=e.replace("fill","bgFill"),r.textStyles.push(t)),r.styles.push(e)})})}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"),"TD"===this.direction&&(this.direction="TB")}setClass(e,r){for(let t of e.split(",")){var n=this.vertices.get(t);n&&n.classes.push(r),(n=this.edges.find(e=>e.id===t))&&n.classes.push(r),(n=this.subGraphLookup.get(t))&&n.classes.push(r)}}setTooltip(e,t){if(void 0!==t){t=this.sanitizeText(t);for(var r of e.split(","))this.tooltips.set("gen-1"===this.version?this.lookUpDomId(r):r,t)}}setClickFun(e,t,n){let i=this.lookUpDomId(e);if("loose"===O().securityLevel&&void 0!==t){let r=[];if("string"==typeof n){r=n.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let t=0;t<r.length;t++){let e=r[t].trim();e.startsWith('"')&&e.endsWith('"')&&(e=e.substr(1,e.length-2)),r[t]=e}}0===r.length&&r.push(e),(n=this.vertices.get(e))&&(n.haveCallback=!0,this.funs.push(()=>{var e=document.querySelector(`[id="${i}"]`);null!==e&&e.addEventListener("click",()=>{eS.runFunc(t,...r)},!1)}))}}setLink(e,t,r){e.split(",").forEach(e=>{void 0!==(e=this.vertices.get(e))&&(e.link=eS.formatUrl(t,this.config),e.linkTarget=r)}),this.setClass(e,"clickable")}getTooltip(e){return this.tooltips.get(e)}setClickEvent(e,t,r){e.split(",").forEach(e=>{this.setClickFun(e,t,r)}),this.setClass(e,"clickable")}bindFunctions(t){this.funs.forEach(e=>{e(t)})}getDirection(){return this.direction?.trim()}getVertices(){return this.vertices}getEdges(){return this.edges}getClasses(){return this.classes}setupToolTips(e){let r=H(".mermaidTooltip");null===(r._groups||r)[0][0]&&(r=H("body").append("div").attr("class","mermaidTooltip").style("opacity",0)),H(e).select("svg").selectAll("g.node").on("mouseover",e=>{var t=H(e.currentTarget);null!==t.attr("title")&&(e=e.currentTarget?.getBoundingClientRect(),r.transition().duration(200).style("opacity",".9"),r.text(t.attr("title")).style("left",window.scrollX+e.left+(e.right-e.left)/2+"px").style("top",window.scrollY+e.bottom+"px"),r.html(r.html().replace(/&lt;br\/&gt;/g,"<br/>")),t.classed("hover",!0))}).on("mouseout",e=>{r.transition().duration(500).style("opacity",0),H(e.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.subGraphs=[],this.subGraphLookup=new Map,this.subCount=0,this.tooltips=new Map,this.firstGraphFlag=!0,this.version=e,this.config=O(),fh()}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,t,r){let n=e.text.trim(),i=r.text;e===r&&/\s/.exec(r.text)&&(n=void 0);var a=(e=mt(e=>{let r={boolean:{},number:{},string:{}},n=[],i;return{nodeList:e.filter(function(e){var t=typeof e;return e.stmt&&"dir"===e.stmt?(i=e.value,!1):""!==e.trim()&&(t in r?!r[t].hasOwnProperty(e)&&(r[t][e]=!0):!n.includes(e)&&n.push(e))}),dir:i}},"uniq")(t.flat())).nodeList,t=e.dir,e=O().flowchart??{},t=t??(e.inheritDir?this.getDirection()??O().direction??void 0:void 0);if("gen-1"===this.version)for(let e=0;e<a.length;e++)a[e]=this.lookUpDomId(a[e]);return n=n??"subGraph"+this.subCount,i=this.sanitizeText(i=i||""),this.subCount=this.subCount+1,e={id:n,nodes:a,title:i.trim(),classes:[],dir:t,labelType:r.type},D.info("Adding",e.id,e.nodes,e.dir),e.nodes=this.makeUniq(e,this.subGraphs).nodes,this.subGraphs.push(e),this.subGraphLookup.set(n,e),n}getPosForId(e){for(var[t,r]of this.subGraphs.entries())if(r.id===e)return t;return-1}indexNodes2(e,t){var r=this.subGraphs[t].nodes;if(this.secCount=this.secCount+1,2 Line truncated
outsidePoint: ${JSON.stringify(n)} outsidePoint: ${JSON.stringify(n)}
insidePoint : ${JSON.stringify(i)} insidePoint : ${JSON.stringify(i)}
node : x:${e.x} y:${e.y} w:${e.width} h:`+e.height);let a=e.x,t=e.y,r=Math.abs(a-i.x),s=e.width/2,o=i.x<n.x?s-r:s+r,l=e.height/2,c=Math.abs(n.y-i.y),h=Math.abs(n.x-i.x),u;if(Math.abs(t-n.y)*s>Math.abs(a-n.x)*l)return e=i.y<n.y?n.y-l-t:t-l-n.y,o=h*e/c,u={x:i.x<n.x?i.x+o:i.x-h+o,y:i.y<n.y?i.y+c-e:i.y-c+e},0===o&&(u.x=n.x,u.y=n.y),0===h&&(u.x=n.x),0===c&&(u.y=n.y),D.debug(`abc89 top/bottom calc, Q ${c}, q ${e}, R ${h}, r `+o,u),u;{let e=c*(o=i.x<n.x?n.x-s-a:a-s-n.x)/h,t=i.x<n.x?i.x+h-o:i.x-h+o,r=i.y<n.y?i.y+e:i.y-e;return D.debug(`sides calc abc89, Q ${c}, q ${e}, R ${h}, r `+o,{_x:t,_y:r}),0===o&&(t=n.x,r=n.y),0===h&&(t=n.x),0===c&&(r=n.y),{x:t,y:r}}},"intersection"),NO=mt((e,n)=>{D.warn("abc88 cutPathAtIntersect",e,n);let i=[],a=e[0],s=!1;return e.forEach(e=>{if(D.info("abc88 checking point",e,n),AO(n,e)||s)D.warn("abc88 outside",e,a),a=e,s||i.push(e);else{let t=LO(n,a,e),r=(D.debug("abc88 inside",e,a,t),D.debug("abc88 intersection",t,n),!1);i.forEach(e=>{r=r||e.x===t.x&&e.y===t.y}),i.some(e=>e.x===t.x&&e.y===t.y)?D.warn("abc88 no intersect",t,i):i.push(t),s=!0}}),D.debug("returning points",i),i},"cutPathAtIntersect"),mt(vO,"extractCornerPoints"),IO=mt(function(e,t,r){var n=t.x-e.x,e=t.y-e.y,r=r/Math.sqrt(n*n+e*e);return{x:t.x-r*n,y:t.y-r*e}},"findAdjacentPoint"),RO=mt(function(n){var e=vO(n).cornerPointPositions,i=[];for(let r=0;r<n.length;r++)if(e.includes(r)){var a=n[r-1],s=n[r+1],o=n[r],l=IO(a,o,5),c=IO(s,o,5),h=c.x-l.x,u=c.y-l.y;i.push(l);let e=2*Math.sqrt(2),t={x:o.x,y:o.y};10<Math.abs(s.x-a.x)&&10<=Math.abs(s.y-a.y)?(D.debug("Corner point fixing",Math.abs(s.x-a.x),Math.abs(s.y-a.y)),t=o.x===l.x?{x:h<0?l.x-5+e:l.x+5-e,y:u<0?l.y-e:l.y+e}:{x:h<0?l.x-e:l.x+e,y:u<0?l.y-5+e:l.y+5-e}):D.debug("Corner point skipping fixing",Math.abs(s.x-a.x),Math.abs(s.y-a.y)),i.push(t,c)}else i.push(n[r]);return i},"fixCorners"),MO=mt((e,t,r)=>(e=Math.floor((e-t-r)/4),`0 ${t} ${Array(e).fill("2 2").join(" ")} `+r),"generateDashArray"),DO=mt(function(n,i,a,e,t,r,s,o=!1){let l=O().handDrawnSeed,c=i.points,h=!1,u=t,d=r;var p,g=[];for(p in i.cssCompiledStyles)SN(p)||g.push(i.cssCompiledStyles[p]);D.debug("UIO intersect check",i.points,d.x,u.x),d.intersect&&u.intersect&&!o&&((c=c.slice(1,i.points.length-1)).unshift(u.intersect(c[0])),D.debug("Last point UIO",i.start,"--\x3e",i.end,c[c.length-1],d,d.intersect(c[c.length-1])),c.push(d.intersect(c[c.length-1]))),t=btoa(JSON.stringify(c)),i.toCluster&&(D.info("to cluster abc88",a.get(i.toCluster)),c=NO(i.points,a.get(i.toCluster).node),h=!0),i.fromCluster&&(D.debug("from cluster abc88",a.get(i.fromCluster),JSON.stringify(c,null,2)),c=NO(c.reverse(),a.get(i.fromCluster).node).reverse(),h=!0),r=c.filter(e=>!Number.isNaN(e.y)),r=RO(r);let f=v3;switch(f=Z5,i.curve){case"linear":f=Z5;break;case"basis":f=v3;break;case"cardinal":f=I3;break;case"bumpX":f=h3;break;case"bumpY":f=u3;break;case"catmullRom":f=G3;break;case"monotoneX":f=aw;break;case"monotoneY":f=sw;break;case"natural":f=hw;break;case"step":f=pw;break;case"stepAfter":f=fw;break;case"stepBefore":f=gw;break;default:f=v3}let{x:m,y}=uO(i),v=r3().x(m).y(y).curve(f),x;switch(i.thickness){case"normal":x="edge-thickness-normal";break;case"thick":x="edge-thickness-thick";break;case"invisible":x="edge-thickness-invisible";break;default:x="edge-thickness-normal"}switch(i.pattern){case"solid":x+=" edge-pattern-solid";break;case"dotted":x+=" edge-pattern-dotted";break;case"dashed":x+=" edge-pattern-dashed";break;default:x+=" edge-pattern-solid"}let b,w="rounded"===i.curve?xO(wO(r,i),5):v(r),k=Array.isArray(i.style)?i.style:[i.style],T=k.find(e=>e?.startsWith("stroke:")),E;if("handDrawn"===i.look)o=FI.svg(n),Object.assign([],r),a=o.path(w,{roughness:.3,seed:l}),x+=" transition",o=(b=H(a).select("path").attr("id",i.id).attr("class"," "+x+(i.classes?" "+i.classes:"")).attr("style",k?k.reduce((e,t)=>e+";"+t,""):"")).attr("d"),b.attr("d",o),n.node().appendChild(b.node());else{let e=g.join(";"),t=k?k.reduce((e,t)=>e+t+";",""):"",r="";i.animate&&(r=" edge-animation-fast"),i.animation&&(r=" edge-animation-"+i.animation),a=(e?e+";"+t+";":t)+";"+(k?k.reduce((e,t)=>e+";"+t,""):""),b=n.append("path").attr("d",w).attr("id",i.id).attr("class"," "+x+(i.classes?" "+i.classes:"")+(r??"")).attr("style",a),T=a.match(/stroke:([^;]+)/)?.[1],E=!0===i.animate||!!i.animation||e.includes("animation");var a="function"==typeof(o=b.node()).getTotalLength?o.getTotalLength():0,o=cO[i.arrowTypeStart]||0,C=cO[i.arrowTypeEnd]||0;"neo"!==i.look||E||(a=`stroke-dasharray: ${"dotted"===i.pattern||"dashed"===i.pattern?MO(a,o,C):`0 ${o} ${a-o-C} `+C}; stroke-dashoffset: 0;`,b.attr("style",a+b.attr("style")))}b.attr("data-edge",!0),b.attr("data-et","edge"),b.attr("data-id",i.id),b.attr("data-points",t),i.showPoints&&r.forEach(e=>{n.append("circle").style("stroke","red").style("fill","red").attr("r",1).attr("cx",e.x).attr("cy",e.y)});let _="";return(O().flowchart.arrowMarkerAbsolute||O().state.arrowMarkerAbsolute)&&(_=(_=window.location.protocol+"//"+window.location.host+wi Line truncated node : x:${e.x} y:${e.y} w:${e.width} h:`+e.height);let a=e.x,t=e.y,r=Math.abs(a-i.x),s=e.width/2,o=i.x<n.x?s-r:s+r,l=e.height/2,c=Math.abs(n.y-i.y),h=Math.abs(n.x-i.x),u;if(Math.abs(t-n.y)*s>Math.abs(a-n.x)*l)return e=i.y<n.y?n.y-l-t:t-l-n.y,o=h*e/c,u={x:i.x<n.x?i.x+o:i.x-h+o,y:i.y<n.y?i.y+c-e:i.y-c+e},0===o&&(u.x=n.x,u.y=n.y),0===h&&(u.x=n.x),0===c&&(u.y=n.y),D.debug(`abc89 top/bottom calc, Q ${c}, q ${e}, R ${h}, r `+o,u),u;{let e=c*(o=i.x<n.x?n.x-s-a:a-s-n.x)/h,t=i.x<n.x?i.x+h-o:i.x-h+o,r=i.y<n.y?i.y+e:i.y-e;return D.debug(`sides calc abc89, Q ${c}, q ${e}, R ${h}, r `+o,{_x:t,_y:r}),0===o&&(t=n.x,r=n.y),0===h&&(t=n.x),0===c&&(r=n.y),{x:t,y:r}}},"intersection"),NO=mt((e,n)=>{D.warn("abc88 cutPathAtIntersect",e,n);let i=[],a=e[0],s=!1;return e.forEach(e=>{if(D.info("abc88 checking point",e,n),AO(n,e)||s)D.warn("abc88 outside",e,a),a=e,s||i.push(e);else{let t=LO(n,a,e),r=(D.debug("abc88 inside",e,a,t),D.debug("abc88 intersection",t,n),!1);i.forEach(e=>{r=r||e.x===t.x&&e.y===t.y}),i.some(e=>e.x===t.x&&e.y===t.y)?D.warn("abc88 no intersect",t,i):i.push(t),s=!0}}),D.debug("returning points",i),i},"cutPathAtIntersect"),mt(vO,"extractCornerPoints"),IO=mt(function(e,t,r){var n=t.x-e.x,e=t.y-e.y,r=r/Math.sqrt(n*n+e*e);return{x:t.x-r*n,y:t.y-r*e}},"findAdjacentPoint"),RO=mt(function(n){var e=vO(n).cornerPointPositions,i=[];for(let r=0;r<n.length;r++)if(e.includes(r)){var a=n[r-1],s=n[r+1],o=n[r],l=IO(a,o,5),c=IO(s,o,5),h=c.x-l.x,u=c.y-l.y;i.push(l);let e=2*Math.sqrt(2),t={x:o.x,y:o.y};10<Math.abs(s.x-a.x)&&10<=Math.abs(s.y-a.y)?(D.debug("Corner point fixing",Math.abs(s.x-a.x),Math.abs(s.y-a.y)),t=o.x===l.x?{x:h<0?l.x-5+e:l.x+5-e,y:u<0?l.y-e:l.y+e}:{x:h<0?l.x-e:l.x+e,y:u<0?l.y-5+e:l.y+5-e}):D.debug("Corner point skipping fixing",Math.abs(s.x-a.x),Math.abs(s.y-a.y)),i.push(t,c)}else i.push(n[r]);return i},"fixCorners"),MO=mt((e,t,r)=>(e=Math.floor((e-t-r)/4),`0 ${t} ${Array(e).fill("2 2").join(" ")} `+r),"generateDashArray"),DO=mt(function(n,i,a,e,t,r,s,o=!1){let l=O().handDrawnSeed,c=i.points,h=!1,u=t,d=r;var p,g=[];for(p in i.cssCompiledStyles)_N(p)||g.push(i.cssCompiledStyles[p]);D.debug("UIO intersect check",i.points,d.x,u.x),d.intersect&&u.intersect&&!o&&((c=c.slice(1,i.points.length-1)).unshift(u.intersect(c[0])),D.debug("Last point UIO",i.start,"--\x3e",i.end,c[c.length-1],d,d.intersect(c[c.length-1])),c.push(d.intersect(c[c.length-1]))),t=btoa(JSON.stringify(c)),i.toCluster&&(D.info("to cluster abc88",a.get(i.toCluster)),c=NO(i.points,a.get(i.toCluster).node),h=!0),i.fromCluster&&(D.debug("from cluster abc88",a.get(i.fromCluster),JSON.stringify(c,null,2)),c=NO(c.reverse(),a.get(i.fromCluster).node).reverse(),h=!0),r=c.filter(e=>!Number.isNaN(e.y)),r=RO(r);let f=v3;switch(f=Z5,i.curve){case"linear":f=Z5;break;case"basis":f=v3;break;case"cardinal":f=I3;break;case"bumpX":f=h3;break;case"bumpY":f=u3;break;case"catmullRom":f=G3;break;case"monotoneX":f=aw;break;case"monotoneY":f=sw;break;case"natural":f=hw;break;case"step":f=pw;break;case"stepAfter":f=fw;break;case"stepBefore":f=gw;break;default:f=v3}let{x:m,y}=uO(i),v=r3().x(m).y(y).curve(f),x;switch(i.thickness){case"normal":x="edge-thickness-normal";break;case"thick":x="edge-thickness-thick";break;case"invisible":x="edge-thickness-invisible";break;default:x="edge-thickness-normal"}switch(i.pattern){case"solid":x+=" edge-pattern-solid";break;case"dotted":x+=" edge-pattern-dotted";break;case"dashed":x+=" edge-pattern-dashed";break;default:x+=" edge-pattern-solid"}let b,w="rounded"===i.curve?xO(wO(r,i),5):v(r),k=Array.isArray(i.style)?i.style:[i.style],T=k.find(e=>e?.startsWith("stroke:")),E;if("handDrawn"===i.look)o=FI.svg(n),Object.assign([],r),a=o.path(w,{roughness:.3,seed:l}),x+=" transition",o=(b=H(a).select("path").attr("id",i.id).attr("class"," "+x+(i.classes?" "+i.classes:"")).attr("style",k?k.reduce((e,t)=>e+";"+t,""):"")).attr("d"),b.attr("d",o),n.node().appendChild(b.node());else{let e=g.join(";"),t=k?k.reduce((e,t)=>e+t+";",""):"",r="";i.animate&&(r=" edge-animation-fast"),i.animation&&(r=" edge-animation-"+i.animation),a=(e?e+";"+t+";":t)+";"+(k?k.reduce((e,t)=>e+";"+t,""):""),b=n.append("path").attr("d",w).attr("id",i.id).attr("class"," "+x+(i.classes?" "+i.classes:"")+(r??"")).attr("style",a),T=a.match(/stroke:([^;]+)/)?.[1],E=!0===i.animate||!!i.animation||e.includes("animation");var a="function"==typeof(o=b.node()).getTotalLength?o.getTotalLength():0,o=cO[i.arrowTypeStart]||0,C=cO[i.arrowTypeEnd]||0;"neo"!==i.look||E||(a=`stroke-dasharray: ${"dotted"===i.pattern||"dashed"===i.pattern?MO(a,o,C):`0 ${o} ${a-o-C} `+C}; stroke-dashoffset: 0;`,b.attr("style",a+b.attr("style")))}b.attr("data-edge",!0),b.attr("data-et","edge"),b.attr("data-id",i.id),b.attr("data-points",t),i.showPoints&&r.forEach(e=>{n.append("circle").style("stroke","red").style("fill","red").attr("r",1).attr("cx",e.x).attr("cy",e.y)});let S="";return(O().flowchart.arrowMarkerAbsolute||O().state.arrowMarkerAbsolute)&&(S=(S=window.location.protocol+"//"+window.location.host+wi Line truncated
L20,10 L20,10
M20,10 M20,10
L0,20`)},"requirement_arrow"),KO=mt((e,t,r)=>{(e=e.append("defs").append("marker").attr("id",r+"_"+t+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("g")).append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),e.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),e.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10)},"requirement_contains"),ZO={extension:PO,composition:BO,aggregation:$O,dependency:FO,lollipop:zO,point:GO,circle:UO,cross:qO,barb:jO,only_one:YO,zero_or_one:WO,one_or_more:HO,zero_or_more:VO,requirement_arrow:XO,requirement_contains:KO},QO=OO});async function tP(t,r,n){let i,a;"rect"===r.shape&&(r.rx&&r.ry?r.shape="roundedRect":r.shape="squareRect");var s=r.shape?qD[r.shape]:void 0;if(!s)throw new Error(`No such shape: ${r.shape}. Please check your syntax.`);if(r.link){let e;"sandbox"===n.config.securityLevel?e="_top":r.linkTarget&&(e=r.linkTarget||"_blank"),i=t.insert("svg:a").attr("xlink:href",r.link).attr("target",e??null),a=await s(i,r,n)}else a=await s(t,r,n),i=a;return r.tooltip&&a.attr("title",r.tooltip),rP.set(r.id,i),r.haveCallback&&i.attr("class",i.attr("class")+" clickable"),i}var rP,nP,iP,aP,sP,oP=b(()=>{e(),rO(),rP=new Map,mt(tP,"insertNode"),nP=mt((e,t)=>{rP.set(t.id,e)},"setNodeElem"),iP=mt(()=>{rP.clear()},"clear"),aP=mt(e=>{var t=rP.get(e.id),r=(D.trace("Transforming node",e.diff,e,"translate("+(e.x-e.width/2-5)+", "+e.width/2+")"),e.diff||0);return e.clusterNode?t.attr("transform","translate("+(e.x+r-e.width/2)+", "+(e.y-e.height/2-8)+")"):t.attr("transform","translate("+e.x+", "+e.y+")"),r},"positionNode")}),lP=b(()=>{rn(),Oc(),e(),sO(),JO(),eP(),oP(),i(),i_(),sP={common:L,getConfig:ar,insertCluster:eO,insertEdge:DO,insertEdgeLabel:_O,insertMarkers:QO,insertNode:tP,interpolateToCurve:fC,labelHelper:nN,log:D,positionEdgeLabel:SO}});function cP(e){return"symbol"==typeof e||V7(e)&&"[object Symbol]"==_6(e)}var hP,uP=b(()=>{S6(),X7(),mt(cP,"isSymbol"),hP=cP});function dP(e,t){for(var r=-1,n=null==e?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}var pP,gP=b(()=>{mt(dP,"arrayMap"),pP=dP});function fP(e){var t;return"string"==typeof e?e:n8(e)?pP(e,fP)+"":hP(e)?vP?vP.call(e):"":"0"==(t=e+"")&&1/e==-mP?"-0":t}var mP,yP,vP,xP,bP=b(()=>{u6(),gP(),s8(),uP(),mP=1/0,yP=Jw?Jw.prototype:void 0,vP=yP?yP.toString:void 0,mt(fP,"baseToString"),xP=fP});function wP(e){for(var t=e.length;t--&&kP.test(e.charAt(t)););return t}var kP,TP,EP=b(()=>{kP=/\s/,mt(wP,"trimmedEndIndex"),TP=wP});function CP(e){return e&&e.slice(0,TP(e)+1).replace(_P,"")}var _P,SP,AP=b(()=>{EP(),_P=/^\s+/,mt(CP,"baseTrim"),SP=CP});function LP(e){if("number"==typeof e)return e;if(hP(e))return NP;if(L6(e)&&(t="function"==typeof e.valueOf?e.valueOf():e,e=L6(t)?t+"":t),"string"!=typeof e)return 0===e?e:+e;e=SP(e);var t=RP.test(e);return t||MP.test(e)?DP(e.slice(2),t?2:8):IP.test(e)?NP:+e}var NP,IP,RP,MP,DP,OP,PP=b(()=>{AP(),N6(),uP(),NP=NaN,IP=/^[-+]0x[0-9a-f]+$/i,RP=/^0b[01]+$/i,MP=/^0o[0-7]+$/i,DP=parseInt,mt(LP,"toNumber"),OP=LP});function BP(e){return e?(e=OP(e))===1/0||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}var $P,FP=b(()=>{PP(),mt(BP,"toFinite"),$P=BP});function zP(e){var t=(e=$P(e))%1;return e==e?t?e-t:e:0}var GP,UP,qP,jP=b(()=>{FP(),mt(zP,"toInteger"),GP=zP}),YP=b(()=>{ok(),h6(),UP=ik(Zw,"WeakMap"),qP=UP});function WP(){}var HP,VP=b(()=>{mt(WP,"noop"),HP=WP});function XP(e,t){for(var r=-1,n=null==e?0:e.length;++r<n&&!1!==t(e[r],r,e););return e}var KP,ZP=b(()=>{mt(XP,"arrayEach"),KP=XP});function QP(e,t,r,n){for(var i=e.length,a=r+(n?1:-1);n?a--:++a<i;)if(t(e[a],a,e))return a;return-1}var JP,eB=b(()=>{mt(QP,"baseFindIndex"),JP=QP});function tB(e){return e!=e}var rB,nB=b(()=>{mt(tB,"baseIsNaN"),rB=tB});function iB(e,t,r){for(var n=r-1,i=e.length;++n<i;)if(e[n]===t)return n;return-1}var aB,sB=b(()=>{mt(iB,"strictIndexOf"),aB=iB});function oB(e,t,r){return t==t?aB(e,t,r):JP(e,rB,r)}var lB,cB=b(()=>{eB(),nB(),sB(),mt(oB,"baseIndexOf"),lB=oB});function hB(e,t){return!(null==e||!e.length)&&-1<lB(e,t,0)}var uB,dB,pB,gB=b(()=>{cB(),mt(hB,"arrayIncludes"),uB=hB}),fB=b(()=>{$7(),dB=O7(Object.keys,Object),pB=dB});function mB(e){if(!U7(e))return pB(e);var t,r=[];for(t in Object(e))vB.call(e,t)&&"constructor"!=t&&r.push(t);return r}var yB,vB,xB,bB=b(()=>{q7(),fB(),yB=Object.prototype,vB=yB.hasOwnProperty,mt(mB,"baseKeys"),xB=mB});function wB(e){return(u8(e)?pE:xB)(e)}var kB,TB,EB,CB,_B=b(()=>{gE(),bB(),d8(),mt(wB,"keys"),kB=wB}),SB=b(()=>{J8(),rE(),pC(),d8(),q7(),_B(),EB=Object.prototype,TB=EB.hasOwnProperty,EB=hC(function(e,t){if(U7(t)||u8(t))tE(t,kB(t),e);else for(var r in t)TB.call(t,r)&&Q8(e,r,t[r])}),CB=EB});function AB(e,t){var r;return!n8(e)&&(!("number"!=(r=typeof e)&&"symbol"!=r&&"boolean"!=r&&null!=e&&!hP(e))||NB.test(e)||!LB.test(e)||null!=t&&e in Object(t))}var LB,NB,IB,RB=b(()=>{s8(),uP(),LB=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,NB= Line truncated L0,20`)},"requirement_arrow"),KO=mt((e,t,r)=>{(e=e.append("defs").append("marker").attr("id",r+"_"+t+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("g")).append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),e.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),e.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10)},"requirement_contains"),ZO={extension:PO,composition:BO,aggregation:$O,dependency:FO,lollipop:zO,point:GO,circle:UO,cross:qO,barb:jO,only_one:YO,zero_or_one:WO,one_or_more:HO,zero_or_more:VO,requirement_arrow:XO,requirement_contains:KO},QO=OO});async function tP(t,r,n){let i,a;"rect"===r.shape&&(r.rx&&r.ry?r.shape="roundedRect":r.shape="squareRect");var s=r.shape?qD[r.shape]:void 0;if(!s)throw new Error(`No such shape: ${r.shape}. Please check your syntax.`);if(r.link){let e;"sandbox"===n.config.securityLevel?e="_top":r.linkTarget&&(e=r.linkTarget||"_blank"),i=t.insert("svg:a").attr("xlink:href",r.link).attr("target",e??null),a=await s(i,r,n)}else a=await s(t,r,n),i=a;return r.tooltip&&a.attr("title",r.tooltip),rP.set(r.id,i),r.haveCallback&&i.attr("class",i.attr("class")+" clickable"),i}var rP,nP,iP,aP,sP,oP=b(()=>{e(),rO(),rP=new Map,mt(tP,"insertNode"),nP=mt((e,t)=>{rP.set(t.id,e)},"setNodeElem"),iP=mt(()=>{rP.clear()},"clear"),aP=mt(e=>{var t=rP.get(e.id),r=(D.trace("Transforming node",e.diff,e,"translate("+(e.x-e.width/2-5)+", "+e.width/2+")"),e.diff||0);return e.clusterNode?t.attr("transform","translate("+(e.x+r-e.width/2)+", "+(e.y-e.height/2-8)+")"):t.attr("transform","translate("+e.x+", "+e.y+")"),r},"positionNode")}),lP=b(()=>{rn(),Oc(),e(),sO(),JO(),eP(),oP(),i(),iS(),sP={common:N,getConfig:ar,insertCluster:eO,insertEdge:DO,insertEdgeLabel:SO,insertMarkers:QO,insertNode:tP,interpolateToCurve:fC,labelHelper:nN,log:D,positionEdgeLabel:_O}});function cP(e){return"symbol"==typeof e||V7(e)&&"[object Symbol]"==S6(e)}var hP,uP=b(()=>{_6(),X7(),mt(cP,"isSymbol"),hP=cP});function dP(e,t){for(var r=-1,n=null==e?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}var pP,gP=b(()=>{mt(dP,"arrayMap"),pP=dP});function fP(e){var t;return"string"==typeof e?e:n8(e)?pP(e,fP)+"":hP(e)?vP?vP.call(e):"":"0"==(t=e+"")&&1/e==-mP?"-0":t}var mP,yP,vP,xP,bP=b(()=>{u6(),gP(),s8(),uP(),mP=1/0,yP=Jw?Jw.prototype:void 0,vP=yP?yP.toString:void 0,mt(fP,"baseToString"),xP=fP});function wP(e){for(var t=e.length;t--&&kP.test(e.charAt(t)););return t}var kP,TP,EP=b(()=>{kP=/\s/,mt(wP,"trimmedEndIndex"),TP=wP});function CP(e){return e&&e.slice(0,TP(e)+1).replace(SP,"")}var SP,_P,AP=b(()=>{EP(),SP=/^\s+/,mt(CP,"baseTrim"),_P=CP});function LP(e){if("number"==typeof e)return e;if(hP(e))return NP;if(L6(e)&&(t="function"==typeof e.valueOf?e.valueOf():e,e=L6(t)?t+"":t),"string"!=typeof e)return 0===e?e:+e;e=_P(e);var t=RP.test(e);return t||MP.test(e)?DP(e.slice(2),t?2:8):IP.test(e)?NP:+e}var NP,IP,RP,MP,DP,OP,PP=b(()=>{AP(),N6(),uP(),NP=NaN,IP=/^[-+]0x[0-9a-f]+$/i,RP=/^0b[01]+$/i,MP=/^0o[0-7]+$/i,DP=parseInt,mt(LP,"toNumber"),OP=LP});function BP(e){return e?(e=OP(e))===1/0||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}var $P,FP=b(()=>{PP(),mt(BP,"toFinite"),$P=BP});function zP(e){var t=(e=$P(e))%1;return e==e?t?e-t:e:0}var GP,UP,qP,jP=b(()=>{FP(),mt(zP,"toInteger"),GP=zP}),YP=b(()=>{ok(),h6(),UP=ik(Zw,"WeakMap"),qP=UP});function WP(){}var HP,VP=b(()=>{mt(WP,"noop"),HP=WP});function XP(e,t){for(var r=-1,n=null==e?0:e.length;++r<n&&!1!==t(e[r],r,e););return e}var KP,ZP=b(()=>{mt(XP,"arrayEach"),KP=XP});function QP(e,t,r,n){for(var i=e.length,a=r+(n?1:-1);n?a--:++a<i;)if(t(e[a],a,e))return a;return-1}var JP,eB=b(()=>{mt(QP,"baseFindIndex"),JP=QP});function tB(e){return e!=e}var rB,nB=b(()=>{mt(tB,"baseIsNaN"),rB=tB});function iB(e,t,r){for(var n=r-1,i=e.length;++n<i;)if(e[n]===t)return n;return-1}var aB,sB=b(()=>{mt(iB,"strictIndexOf"),aB=iB});function oB(e,t,r){return t==t?aB(e,t,r):JP(e,rB,r)}var lB,cB=b(()=>{eB(),nB(),sB(),mt(oB,"baseIndexOf"),lB=oB});function hB(e,t){return!(null==e||!e.length)&&-1<lB(e,t,0)}var uB,dB,pB,gB=b(()=>{cB(),mt(hB,"arrayIncludes"),uB=hB}),fB=b(()=>{$7(),dB=O7(Object.keys,Object),pB=dB});function mB(e){if(!U7(e))return pB(e);var t,r=[];for(t in Object(e))vB.call(e,t)&&"constructor"!=t&&r.push(t);return r}var yB,vB,xB,bB=b(()=>{q7(),fB(),yB=Object.prototype,vB=yB.hasOwnProperty,mt(mB,"baseKeys"),xB=mB});function wB(e){return(u8(e)?pE:xB)(e)}var kB,TB,EB,CB,SB=b(()=>{gE(),bB(),d8(),mt(wB,"keys"),kB=wB}),_B=b(()=>{J8(),rE(),pC(),d8(),q7(),SB(),EB=Object.prototype,TB=EB.hasOwnProperty,EB=hC(function(e,t){if(U7(t)||u8(t))tE(t,kB(t),e);else for(var r in t)TB.call(t,r)&&Q8(e,r,t[r])}),CB=EB});function AB(e,t){var r;return!n8(e)&&(!("number"!=(r=typeof e)&&"symbol"!=r&&"boolean"!=r&&null!=e&&!hP(e))||NB.test(e)||!LB.test(e)||null!=t&&e in Object(t))}var LB,NB,IB,RB=b(()=>{s8(),uP(),LB=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,NB= Line truncated
Node.id = `,e,` Node.id = `,e,`
data=`,t.height,` data=`,t.height,`
Parent cluster`,o.height),i.setNode(o.id,t),i.parent(e)||(D.trace("Setting parent",e,o.id),i.setParent(e,o.id,t))),D.info("(Insert) Node XXX"+e+": "+JSON.stringify(i.node(e))),n?.clusterNode?(D.info("Cluster identified XBX",e,n.width,i.node(e)),{ranksep:t,nodesep:r}=i.graph(),n.graph.setGraph({...n.graph.graph(),ranksep:t+25,nodesep:r}),r=(t=await zK(u,n.graph,a,s,i.node(e),l)).elem,aN(n,r),n.diff=t.diff||0,D.info("New compound node after recursive render XAX",e,"width",n.width,"height",n.height),nP(r,n)):0<i.children(e).length?(D.trace("Cluster - the non recursive path XBX",e,n.id,n,n.width,"Graph:",i),D.trace(IK(n.id,i)),kK.set(n.id,{id:IK(n.id,i),node:n})):(D.trace("Node - the non recursive path XAX",e,u,i.node(e),c),await tP(u,i.node(e),{config:l,dir:c}))})),await mt(async()=>{var e=i.edges().map(async function(e){var t=i.edge(e.v,e.w,e.name);D.info("Edge "+e.v+" -> "+e.w+": "+JSON.stringify(e)),D.info("Edge "+e.v+" -> "+e.w+": ",e," ",JSON.stringify(i.edge(e))),D.info("Fix",kK,"ids:",e.v,e.w,"Translating: ",kK.get(e.v),kK.get(e.w)),await _O(r,t)});await Promise.all(e)},"processEdges")(),D.info("Graph before layout:",JSON.stringify(xK(i))),D.info("############################################# XXX"),D.info("### Layout ### XXX"),D.info("############################################# XXX"),YX(i),D.info("Graph after layout:",JSON.stringify(xK(i))),0),p=WD(l).subGraphTitleTotalMargin;return await Promise.all(PK(i).map(async function(e){var t,r=i.node(e);D.info("Position XBX => "+e+": ("+r.x,","+r.y,") width: ",r.width," height: ",r.height),r?.clusterNode?(r.y+=p,D.info("A tainted cluster node XBX1",e,r.id,r.width,r.height,r.x,r.y,i.parent(e)),kK.get(r.id).node=r,aP(r)):0<i.children(e).length?(D.info("A pure cluster node XBX1",e,r.id,r.x,r.y,r.width,r.height,i.parent(e)),r.height+=p,i.node(r.parentId),e=r?.padding/2||0,t=r?.labelBBox?.height||0,D.debug("OffsetY",t-e||0,"labelHeight",t,"halfPadding",e),await eO(n,r),kK.get(r.id).node=r):(t=i.node(r.parentId),r.y+=p/2,D.info("A regular node XBX1 - using the padding",r.id,"parent",r.parentId,r.width,r.height,r.x,r.y,"offsetY",r.offsetY,"parent",t,t?.offsetY,r),aP(r))})),i.edges().forEach(function(e){var t=i.edge(e),r=(D.info("Edge "+e.v+" -> "+e.w+": "+JSON.stringify(t),t),t.points.forEach(e=>e.y+=p/2),i.node(e.v)),e=i.node(e.w),r=DO(h,t,kK,a,r,e,s);SO(t,r)}),i.nodes().forEach(function(e){var t=i.node(e);D.info(e,t.type,t.diff),t.isGroup&&(d=t.diff)}),D.warn("Returning from recursive render XAX",e,d),{elem:e,diff:d}},"recursiveRender"),GK=mt(async(e,t)=>{let l=new nH({multigraph:!0,compound:!0}).setGraph({rankdir:e.direction,nodesep:e.config?.nodeSpacing||e.config?.flowchart?.nodeSpacing||e.nodeSpacing,ranksep:e.config?.rankSpacing||e.config?.flowchart?.rankSpacing||e.rankSpacing,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}}),r=t.select("g");QO(r,e.markers,e.type,e.diagramId),iP(),EO(),tO(),CK(),e.nodes.forEach(e=>{l.setNode(e.id,{...e}),e.parentId&&l.setParent(e.id,e.parentId)}),D.debug("Edges:",e.edges),e.edges.forEach(e=>{var t,r,n,i,a,s,o;e.start===e.end?(r=(t=e.start)+"---"+t+"---1",n=t+"---"+t+"---2",i=l.node(t),l.setNode(r,{domId:r,id:r,parentId:i.parentId,labelStyle:"",label:"",padding:0,shape:"labelRect",style:"",width:10,height:10}),l.setParent(r,i.parentId),l.setNode(n,{domId:n,id:n,parentId:i.parentId,labelStyle:"",padding:0,shape:"labelRect",label:"",style:"",width:10,height:10}),l.setParent(n,i.parentId),a=structuredClone(e),s=structuredClone(e),o=structuredClone(e),a.label="",a.arrowTypeEnd="none",a.id=t+"-cyclic-special-1",s.arrowTypeStart="none",s.arrowTypeEnd="none",s.id=t+"-cyclic-special-mid",o.label="",i.isGroup&&(a.fromCluster=t,o.toCluster=t),o.id=t+"-cyclic-special-2",o.arrowTypeStart="none",l.setEdge(t,r,a,t+"-cyclic-special-0"),l.setEdge(r,n,s,t+"-cyclic-special-1"),l.setEdge(n,t,o,t+"-cyc<lic-special-2")):l.setEdge(e.start,e.end,{...e},e.id)}),D.warn("Graph at first:",JSON.stringify(xK(l))),MK(l),D.warn("Graph after XAX:",JSON.stringify(xK(l))),t=O(),await zK(r,l,e.type,e.diagramId,void 0,t)},"render")});function qK(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function jK(e){if(Array.isArray(e))return e}function YK(e){if(Array.isArray(e))return qK(e)}function WK(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function HK(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,iZ(n.key),n)}}function VK(e,t,r){return t&&HK(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function XK(e,t){var r,n,i,a,s=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(s)return i=!(n=!0),{s:mt(function(){s=s.call(e)},"s"),n:mt(function(){var e=s.next();return n=e.done,e},"n"),e:mt(function(e){i=!0,r=e},"e"),f:mt(function(){try{n||null==s.return||s.return()}finally{if(i)throw r}},"f")};if(Array.isArray(e)||(s=sZ(e))| Line truncated Parent cluster`,o.height),i.setNode(o.id,t),i.parent(e)||(D.trace("Setting parent",e,o.id),i.setParent(e,o.id,t))),D.info("(Insert) Node XXX"+e+": "+JSON.stringify(i.node(e))),n?.clusterNode?(D.info("Cluster identified XBX",e,n.width,i.node(e)),{ranksep:t,nodesep:r}=i.graph(),n.graph.setGraph({...n.graph.graph(),ranksep:t+25,nodesep:r}),r=(t=await zK(u,n.graph,a,s,i.node(e),l)).elem,aN(n,r),n.diff=t.diff||0,D.info("New compound node after recursive render XAX",e,"width",n.width,"height",n.height),nP(r,n)):0<i.children(e).length?(D.trace("Cluster - the non recursive path XBX",e,n.id,n,n.width,"Graph:",i),D.trace(IK(n.id,i)),kK.set(n.id,{id:IK(n.id,i),node:n})):(D.trace("Node - the non recursive path XAX",e,u,i.node(e),c),await tP(u,i.node(e),{config:l,dir:c}))})),await mt(async()=>{var e=i.edges().map(async function(e){var t=i.edge(e.v,e.w,e.name);D.info("Edge "+e.v+" -> "+e.w+": "+JSON.stringify(e)),D.info("Edge "+e.v+" -> "+e.w+": ",e," ",JSON.stringify(i.edge(e))),D.info("Fix",kK,"ids:",e.v,e.w,"Translating: ",kK.get(e.v),kK.get(e.w)),await SO(r,t)});await Promise.all(e)},"processEdges")(),D.info("Graph before layout:",JSON.stringify(xK(i))),D.info("############################################# XXX"),D.info("### Layout ### XXX"),D.info("############################################# XXX"),YX(i),D.info("Graph after layout:",JSON.stringify(xK(i))),0),p=WD(l).subGraphTitleTotalMargin;return await Promise.all(PK(i).map(async function(e){var t,r=i.node(e);D.info("Position XBX => "+e+": ("+r.x,","+r.y,") width: ",r.width," height: ",r.height),r?.clusterNode?(r.y+=p,D.info("A tainted cluster node XBX1",e,r.id,r.width,r.height,r.x,r.y,i.parent(e)),kK.get(r.id).node=r,aP(r)):0<i.children(e).length?(D.info("A pure cluster node XBX1",e,r.id,r.x,r.y,r.width,r.height,i.parent(e)),r.height+=p,i.node(r.parentId),e=r?.padding/2||0,t=r?.labelBBox?.height||0,D.debug("OffsetY",t-e||0,"labelHeight",t,"halfPadding",e),await eO(n,r),kK.get(r.id).node=r):(t=i.node(r.parentId),r.y+=p/2,D.info("A regular node XBX1 - using the padding",r.id,"parent",r.parentId,r.width,r.height,r.x,r.y,"offsetY",r.offsetY,"parent",t,t?.offsetY,r),aP(r))})),i.edges().forEach(function(e){var t=i.edge(e),r=(D.info("Edge "+e.v+" -> "+e.w+": "+JSON.stringify(t),t),t.points.forEach(e=>e.y+=p/2),i.node(e.v)),e=i.node(e.w),r=DO(h,t,kK,a,r,e,s);_O(t,r)}),i.nodes().forEach(function(e){var t=i.node(e);D.info(e,t.type,t.diff),t.isGroup&&(d=t.diff)}),D.warn("Returning from recursive render XAX",e,d),{elem:e,diff:d}},"recursiveRender"),GK=mt(async(e,t)=>{let l=new nH({multigraph:!0,compound:!0}).setGraph({rankdir:e.direction,nodesep:e.config?.nodeSpacing||e.config?.flowchart?.nodeSpacing||e.nodeSpacing,ranksep:e.config?.rankSpacing||e.config?.flowchart?.rankSpacing||e.rankSpacing,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}}),r=t.select("g");QO(r,e.markers,e.type,e.diagramId),iP(),EO(),tO(),CK(),e.nodes.forEach(e=>{l.setNode(e.id,{...e}),e.parentId&&l.setParent(e.id,e.parentId)}),D.debug("Edges:",e.edges),e.edges.forEach(e=>{var t,r,n,i,a,s,o;e.start===e.end?(r=(t=e.start)+"---"+t+"---1",n=t+"---"+t+"---2",i=l.node(t),l.setNode(r,{domId:r,id:r,parentId:i.parentId,labelStyle:"",label:"",padding:0,shape:"labelRect",style:"",width:10,height:10}),l.setParent(r,i.parentId),l.setNode(n,{domId:n,id:n,parentId:i.parentId,labelStyle:"",padding:0,shape:"labelRect",label:"",style:"",width:10,height:10}),l.setParent(n,i.parentId),a=structuredClone(e),s=structuredClone(e),o=structuredClone(e),a.label="",a.arrowTypeEnd="none",a.id=t+"-cyclic-special-1",s.arrowTypeStart="none",s.arrowTypeEnd="none",s.id=t+"-cyclic-special-mid",o.label="",i.isGroup&&(a.fromCluster=t,o.toCluster=t),o.id=t+"-cyclic-special-2",o.arrowTypeStart="none",l.setEdge(t,r,a,t+"-cyclic-special-0"),l.setEdge(r,n,s,t+"-cyclic-special-1"),l.setEdge(n,t,o,t+"-cyc<lic-special-2")):l.setEdge(e.start,e.end,{...e},e.id)}),D.warn("Graph at first:",JSON.stringify(xK(l))),MK(l),D.warn("Graph after XAX:",JSON.stringify(xK(l))),t=O(),await zK(r,l,e.type,e.diagramId,void 0,t)},"render")});function qK(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function jK(e){if(Array.isArray(e))return e}function YK(e){if(Array.isArray(e))return qK(e)}function WK(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function HK(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,iZ(n.key),n)}}function VK(e,t,r){return t&&HK(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function XK(e,t){var r,n,i,a,s=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(s)return i=!(n=!0),{s:mt(function(){s=s.call(e)},"s"),n:mt(function(){var e=s.next();return n=e.done,e},"n"),e:mt(function(e){i=!0,r=e},"e"),f:mt(function(){try{n||null==s.return||s.return()}finally{if(i)throw r}},"f")};if(Array.isArray(e)||(s=sZ(e))| Line truncated
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function KK(e,t,r){return(t=iZ(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ZK(e){if(typeof Symbol<"u"&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function QK(e,t){var r=null==e?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,a,s,o=[],l=!0,c=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(o.push(n.value),o.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=r.return&&(s=r.return(),Object(s)!==s))return}finally{if(c)throw i}}return o}}function JK(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function KK(e,t,r){return(t=iZ(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ZK(e){if(typeof Symbol<"u"&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function QK(e,t){var r=null==e?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,a,s,o=[],l=!0,c=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(o.push(n.value),o.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=r.return&&(s=r.return(),Object(s)!==s))return}finally{if(c)throw i}}return o}}function JK(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function eZ(){throw new TypeError(`Invalid attempt to spread non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function eZ(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function tZ(e,t){return jK(e)||QK(e,t)||sZ(e,t)||JK()}function rZ(e){return YK(e)||ZK(e)||sZ(e)||eZ()}function nZ(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return String(e);if("object"!=typeof(r=r.call(e,t)))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}function iZ(e){return"symbol"==typeof(e=nZ(e,"string"))?e:e+""}function aZ(e){return(aZ="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function sZ(e,t){var r;if(e)return"string"==typeof e?qK(e,t):"Map"===(r="Object"===(r={}.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:r)||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?qK(e,t):void 0}function oZ(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function lZ(){return ste||(ste=1,mt(e,"isObject"),ate=e),ate;function e(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}}function cZ(){var e;return lte||(lte=1,e="object"==typeof ite&&ite&&ite.Object===Object&&ite,ote=e),ote}function hZ(){var e,t;return hte||(hte=1,t=cZ(),e="object"==typeof self&&self&&self.Object===Object&&self,t=t||e||Function("return this")(),cte=t),cte}function uZ(){var e,t;return dte||(dte=1,e=hZ(),t=mt(function(){return e.Date.now()},"now"),ute=t),ute}function dZ(){var r;return gte||(gte=1,r=/\s/,mt(e,"trimmedEndIndex"),pte=e),pte;function e(e){for(var t=e.length;t--&&r.test(e.charAt(t)););return t}}function pZ(){var t,r;return mte||(mte=1,t=dZ(),r=/^\s+/,mt(e,"baseTrim"),fte=e),fte;function e(e){return e&&e.slice(0,t(e)+1).replace(r,"")}}function gZ(){var e;return vte||(vte=1,e=hZ().Symbol,yte=e),yte}function fZ(){var e,t,a,s,o;return bte||(bte=1,e=gZ(),t=Object.prototype,a=t.hasOwnProperty,s=t.toString,o=e?e.toStringTag:void 0,mt(r,"getRawTag"),xte=r),xte;function r(e){var t=a.call(e,o),r=e[o];try{var n=!(e[o]=void 0)}catch{}var i=s.call(e);return n&&(t?e[o]=r:delete e[o]),i}}function mZ(){var t;return kte||(kte=1,t=Object.prototype.toString,mt(e,"objectToString"),wte=e),wte;function e(e){return t.call(e)}}function yZ(){var e,t,r,n;return Ete||(Ete=1,e=gZ(),t=fZ(),r=mZ(),n=e?e.toStringTag:void 0,mt(i,"baseGetTag"),Tte=i),Tte;function i(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":(n&&n in Object(e)?t:r)(e)}}function vZ(){return _te||(_te=1,mt(e,"isObjectLike"),Cte=e),Cte;function e(e){return null!=e&&"object"==typeof e}}function xZ(){var t,r;return Ate||(Ate=1,t=yZ(),r=vZ(),mt(e,"isSymbol"),Ste=e),Ste;function e(e){return"symbol"==typeof e||r(e)&&"[object Symbol]"==t(e)}}function bZ(){var r,n,i,a,s,o,l;return Nte||(Nte=1,r=pZ(),n=lZ(),i=xZ(),a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,o=/^0o[0-7]+$/i,l=parseInt,mt(e,"toNumber"),Lte=e),Lte;function e(e){if("number"==typeof e)return e;if(i(e))return NaN;if(n(e)&&(t="function"==typeof e.valueOf?e.valueOf():e,e=n(t)?t+"":t),"string"!=typeof e)return 0===e?e:+e;e=r(e);var t=s.test(e);return t||o.test(e)?l(e.slice(2),t?2:8):a.test(e)?NaN:+e}}function wZ(){var k,T,E,C,_;return Rte||(Rte=1,k=lZ(),T=uZ(),E=bZ(),C=Math.max,_=Math.min,mt(e,"debounce"),Ite=e),Ite;function e(n,r,e){var i,a,s,o,l,c,h=0,t=!1,u=!1,d=!0;if("function"!=typeof n)throw new TypeError("Expected a function");function p(e){var t=i,r=a;return i=a=void 0,h=e,o=n.apply(r,t)}function g(e){return h=e,l=setTimeout(y,r),t?p(e):o}function f(e){var t=r-(e-c);return u?_(t,s-(e-h)):t}function m(e){var t=e-c;return void 0===c||r<=t||t<0||u&&s<=e-h}function y(){var e=T();if(m(e))return v(e);l=setTimeout(y,f(e))}function v(e){return l=void 0,d&&i?p(e):(i=a=void 0,o)}function x(){void 0!==l&&clearTimeout(l),i=c=a=l=void(h=0)}function b(){return void 0===l?o:v(T())}function w(){var e=T(),t=m(e);if(i=arguments,a=this,c=e,t){if(void 0===l)return g(c);if(u)return clearTimeout(l),l=setTimeout(y,r),p(c)}return void 0===l&&(l=setTimeout(y,r)),o}return r=E(r)||0,k(e)&&(t=!!e.leading,u="maxWait"in e,s=u?C(E(e.maxWait)||0,r):s,d="trailing"in e?!!e.trailing:d),mt(p,"invokeFunc"),mt(g,"leadingEdge"),mt(f,"remainingWait"),mt(m,"shouldInvoke"),mt(y,"timerExpired"),mt(v,"trailingEdge"),mt(x,"cancel"),mt(b,"flush"),mt(w,"debounced"),w.cancel=x,w.flush=b,w}}function kZ(e,t,r,n,i){return i=i*Math.PI/180,{x:Math.cos(i)*(e-r)-Math.sin(i)*(t-n)+r,y:Math.sin(i)*(e-r)+Math.cos(i)*(t-n)+n}}function TZ(e,t,r){var n,i,a;return 0===r?e:(n=(t.x1+t.x2)/2,a=1/(i=t.w/t.h),t=kZ(e.x,e.y,n,e=(t.y1+t.y2)/2,r),{x:(r=Xte(t.x,t.y,n,e,i,a)).x,y:r.y})}function EZ(){return Tre||(Tre=1,s=wre,function(){var d,l,p,g,t,c,r,f,m,e,n,i,h,u;function a(e){this.cmp=e??d,this.nodes=[]}l=Math.floor,m=Math.min,d=mt(function(e,t){return e<t?-1:t<e?1:0},"defaultCmp"),f=mt(function(e,t,r,n,i){var a;if(null==i&&(i=d),(r=null==r?0:r)<0)throw new Error("lo must be non Line truncated In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function tZ(e,t){return jK(e)||QK(e,t)||sZ(e,t)||JK()}function rZ(e){return YK(e)||ZK(e)||sZ(e)||eZ()}function nZ(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return String(e);if("object"!=typeof(r=r.call(e,t)))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}function iZ(e){return"symbol"==typeof(e=nZ(e,"string"))?e:e+""}function aZ(e){return(aZ="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function sZ(e,t){var r;if(e)return"string"==typeof e?qK(e,t):"Map"===(r="Object"===(r={}.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:r)||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?qK(e,t):void 0}function oZ(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function lZ(){return ste||(ste=1,mt(e,"isObject"),ate=e),ate;function e(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}}function cZ(){var e;return lte||(lte=1,e="object"==typeof ite&&ite&&ite.Object===Object&&ite,ote=e),ote}function hZ(){var e,t;return hte||(hte=1,t=cZ(),e="object"==typeof self&&self&&self.Object===Object&&self,t=t||e||Function("return this")(),cte=t),cte}function uZ(){var e,t;return dte||(dte=1,e=hZ(),t=mt(function(){return e.Date.now()},"now"),ute=t),ute}function dZ(){var r;return gte||(gte=1,r=/\s/,mt(e,"trimmedEndIndex"),pte=e),pte;function e(e){for(var t=e.length;t--&&r.test(e.charAt(t)););return t}}function pZ(){var t,r;return mte||(mte=1,t=dZ(),r=/^\s+/,mt(e,"baseTrim"),fte=e),fte;function e(e){return e&&e.slice(0,t(e)+1).replace(r,"")}}function gZ(){var e;return vte||(vte=1,e=hZ().Symbol,yte=e),yte}function fZ(){var e,t,a,s,o;return bte||(bte=1,e=gZ(),t=Object.prototype,a=t.hasOwnProperty,s=t.toString,o=e?e.toStringTag:void 0,mt(r,"getRawTag"),xte=r),xte;function r(e){var t=a.call(e,o),r=e[o];try{var n=!(e[o]=void 0)}catch{}var i=s.call(e);return n&&(t?e[o]=r:delete e[o]),i}}function mZ(){var t;return kte||(kte=1,t=Object.prototype.toString,mt(e,"objectToString"),wte=e),wte;function e(e){return t.call(e)}}function yZ(){var e,t,r,n;return Ete||(Ete=1,e=gZ(),t=fZ(),r=mZ(),n=e?e.toStringTag:void 0,mt(i,"baseGetTag"),Tte=i),Tte;function i(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":(n&&n in Object(e)?t:r)(e)}}function vZ(){return Ste||(Ste=1,mt(e,"isObjectLike"),Cte=e),Cte;function e(e){return null!=e&&"object"==typeof e}}function xZ(){var t,r;return Ate||(Ate=1,t=yZ(),r=vZ(),mt(e,"isSymbol"),_te=e),_te;function e(e){return"symbol"==typeof e||r(e)&&"[object Symbol]"==t(e)}}function bZ(){var r,n,i,a,s,o,l;return Nte||(Nte=1,r=pZ(),n=lZ(),i=xZ(),a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,o=/^0o[0-7]+$/i,l=parseInt,mt(e,"toNumber"),Lte=e),Lte;function e(e){if("number"==typeof e)return e;if(i(e))return NaN;if(n(e)&&(t="function"==typeof e.valueOf?e.valueOf():e,e=n(t)?t+"":t),"string"!=typeof e)return 0===e?e:+e;e=r(e);var t=s.test(e);return t||o.test(e)?l(e.slice(2),t?2:8):a.test(e)?NaN:+e}}function wZ(){var k,T,E,C,S;return Rte||(Rte=1,k=lZ(),T=uZ(),E=bZ(),C=Math.max,S=Math.min,mt(e,"debounce"),Ite=e),Ite;function e(n,r,e){var i,a,s,o,l,c,h=0,t=!1,u=!1,d=!0;if("function"!=typeof n)throw new TypeError("Expected a function");function p(e){var t=i,r=a;return i=a=void 0,h=e,o=n.apply(r,t)}function g(e){return h=e,l=setTimeout(y,r),t?p(e):o}function f(e){var t=r-(e-c);return u?S(t,s-(e-h)):t}function m(e){var t=e-c;return void 0===c||r<=t||t<0||u&&s<=e-h}function y(){var e=T();if(m(e))return v(e);l=setTimeout(y,f(e))}function v(e){return l=void 0,d&&i?p(e):(i=a=void 0,o)}function x(){void 0!==l&&clearTimeout(l),i=c=a=l=void(h=0)}function b(){return void 0===l?o:v(T())}function w(){var e=T(),t=m(e);if(i=arguments,a=this,c=e,t){if(void 0===l)return g(c);if(u)return clearTimeout(l),l=setTimeout(y,r),p(c)}return void 0===l&&(l=setTimeout(y,r)),o}return r=E(r)||0,k(e)&&(t=!!e.leading,u="maxWait"in e,s=u?C(E(e.maxWait)||0,r):s,d="trailing"in e?!!e.trailing:d),mt(p,"invokeFunc"),mt(g,"leadingEdge"),mt(f,"remainingWait"),mt(m,"shouldInvoke"),mt(y,"timerExpired"),mt(v,"trailingEdge"),mt(x,"cancel"),mt(b,"flush"),mt(w,"debounced"),w.cancel=x,w.flush=b,w}}function kZ(e,t,r,n,i){return i=i*Math.PI/180,{x:Math.cos(i)*(e-r)-Math.sin(i)*(t-n)+r,y:Math.sin(i)*(e-r)+Math.cos(i)*(t-n)+n}}function TZ(e,t,r){var n,i,a;return 0===r?e:(n=(t.x1+t.x2)/2,a=1/(i=t.w/t.h),t=kZ(e.x,e.y,n,e=(t.y1+t.y2)/2,r),{x:(r=Xte(t.x,t.y,n,e,i,a)).x,y:r.y})}function EZ(){return Tre||(Tre=1,s=wre,function(){var d,l,p,g,t,c,r,f,m,e,n,i,h,u;function a(e){this.cmp=e??d,this.nodes=[]}l=Math.floor,m=Math.min,d=mt(function(e,t){return e<t?-1:t<e?1:0},"defaultCmp"),f=mt(function(e,t,r,n,i){var a;if(null==i&&(i=d),(r=null==r?0:r)<0)throw new Error("lo must be non Line truncated
`),l=e.pstyle("text-max-width").pfValue,c="anywhere"===e.pstyle("text-overflow-wrap").value,h=[],u=/[\s\u200b]+|$/g,d=0;d<o.length;d++){var p=o[d],g=this.calculateLabelDimensions(e,p).width;if(c&&(p=p.split("").join("​")),l<g){var f,m="",y=0,v=XK(p.matchAll(u));try{for(v.s();!(f=v.n()).done;){var x=f.value,b=x[0],w=p.substring(y,x.index),y=x.index+b.length,k=0===m.length?w:m+w+b;this.calculateLabelDimensions(e,k).width<=l?m+=w+b:(m&&h.push(m),m=w+b)}}catch(e){v.e(e)}finally{v.f()}m.match(/^[\s\u200b]+$/)||h.push(m)}else h.push(p)}a("labelWrapCachedLines",h),t=a("labelWrapCachedText",h.join(` `),l=e.pstyle("text-max-width").pfValue,c="anywhere"===e.pstyle("text-overflow-wrap").value,h=[],u=/[\s\u200b]+|$/g,d=0;d<o.length;d++){var p=o[d],g=this.calculateLabelDimensions(e,p).width;if(c&&(p=p.split("").join("​")),l<g){var f,m="",y=0,v=XK(p.matchAll(u));try{for(v.s();!(f=v.n()).done;){var x=f.value,b=x[0],w=p.substring(y,x.index),y=x.index+b.length,k=0===m.length?w:m+w+b;this.calculateLabelDimensions(e,k).width<=l?m+=w+b:(m&&h.push(m),m=w+b)}}catch(e){v.e(e)}finally{v.f()}m.match(/^[\s\u200b]+$/)||h.push(m)}else h.push(p)}a("labelWrapCachedLines",h),t=a("labelWrapCachedText",h.join(`
`)),a("labelWrapKey",s)}else if("ellipsis"===i){var T=e.pstyle("text-max-width").pfValue,E="",C=!1;if(this.calculateLabelDimensions(e,t).width<T)return t;for(var _=0;_<t.length&&!(T<this.calculateLabelDimensions(e,E+t[_]+"…").width);_++)E+=t[_],_===t.length-1&&(C=!0);return C||(E+="…"),E}return t},Oce.getLabelJustification=function(e){var t=e.pstyle("text-justification").strValue,r=e.pstyle("text-halign").strValue;if("auto"!==t)return t;if(!e.isNode())return"center";switch(r){case"left":return"right";case"right":return"left";default:return"center"}},Oce.calculateLabelDimensions=function(e,t){var r=this.cy.window().document,n=e.pstyle("font-style").strValue,i=e.pstyle("font-size").pfValue,a=e.pstyle("font-family").strValue,e=e.pstyle("font-weight").strValue,s=this.labelCalcCanvas,o=this.labelCalcCanvasContext;s||(s=this.labelCalcCanvas=r.createElement("canvas"),o=this.labelCalcCanvasContext=s.getContext("2d"),(r=s.style).position="absolute",r.left="-9999px",r.top="-9999px",r.zIndex="-1",r.visibility="hidden",r.pointerEvents="none"),o.font="".concat(n," ").concat(e," ").concat(i,"px ").concat(a);for(var l=0,c=0,h=t.split(` `)),a("labelWrapKey",s)}else if("ellipsis"===i){var T=e.pstyle("text-max-width").pfValue,E="",C=!1;if(this.calculateLabelDimensions(e,t).width<T)return t;for(var S=0;S<t.length&&!(T<this.calculateLabelDimensions(e,E+t[S]+"…").width);S++)E+=t[S],S===t.length-1&&(C=!0);return C||(E+="…"),E}return t},Oce.getLabelJustification=function(e){var t=e.pstyle("text-justification").strValue,r=e.pstyle("text-halign").strValue;if("auto"!==t)return t;if(!e.isNode())return"center";switch(r){case"left":return"right";case"right":return"left";default:return"center"}},Oce.calculateLabelDimensions=function(e,t){var r=this.cy.window().document,n=e.pstyle("font-style").strValue,i=e.pstyle("font-size").pfValue,a=e.pstyle("font-family").strValue,e=e.pstyle("font-weight").strValue,s=this.labelCalcCanvas,o=this.labelCalcCanvasContext;s||(s=this.labelCalcCanvas=r.createElement("canvas"),o=this.labelCalcCanvasContext=s.getContext("2d"),(r=s.style).position="absolute",r.left="-9999px",r.top="-9999px",r.zIndex="-1",r.visibility="hidden",r.pointerEvents="none"),o.font="".concat(n," ").concat(e," ").concat(i,"px ").concat(a);for(var l=0,c=0,h=t.split(`
`),u=0;u<h.length;u++){var d=h[u],d=o.measureText(d),d=Math.ceil(d.width),p=i,l=Math.max(d,l);c+=p}return{width:l+=0,height:c+=0}},Oce.calculateLabelAngle=function(e,t){var r=e._private.rscratch,n=e.isEdge();return"none"===(t=(e=e.pstyle((t?t+"-":"")+"text-rotation")).strValue)?0:n&&"autorotate"===t?r.labelAutoAngle:"autorotate"===t?0:e.pfValue},hce=!(Oce.calculateLabelAngles=function(e){var t=e.isEdge(),r=e._private.rscratch;r.labelAngle=this.calculateLabelAngle(e),t&&(r.sourceLabelAngle=this.calculateLabelAngle(e,"source"),r.targetLabelAngle=this.calculateLabelAngle(e,"target"))}),uce={},[Ece,Ice,Rce,Mce,Dce,Oce,{getNodeShape:function(e){var t=e.pstyle("shape").value;return"cutrectangle"===t&&(e.width()<28||e.height()<28)?(hce||(sre("The `cutrectangle` node shape can not be used at small sizes so `rectangle` is used instead"),hce=!0),"rectangle"):e.isParent()?"rectangle"===t||"roundrectangle"===t||"round-rectangle"===t||"cutrectangle"===t||"cut-rectangle"===t||"barrel"===t?t:"rectangle":"polygon"===t?(e=e.pstyle("shape-polygon-points").value,this.nodeShapes.makePolygon(e).name):t}},{registerCalculationListeners:function(){var s=this.cy,o=s.collection(),l=this,c=mt(function(e){var t=!(1<arguments.length&&void 0!==arguments[1])||arguments[1];if(o.merge(e),t)for(var r=0;r<e.length;r++){var n=e[r]._private.rstyle;n.clean=!1,n.cleanConnected=!1}},"enqueue"),e=(l.binder(s).on("bounds.* dirty.*",mt(function(e){e=e.target,c(e)},"onDirtyBounds")).on("style.* background.*",mt(function(e){e=e.target,c(e,!1)},"onDirtyStyle")),mt(function(e){if(e){var t=l.onUpdateEleCalcsFns;o.cleanStyle();for(var r=0;r<o.length;r++){var n=o[r],i=n._private.rstyle;n.isNode()&&!i.cleanConnected&&(c(n.connectedEdges()),i.cleanConnected=!0)}if(t)for(var a=0;a<t.length;a++)(0,t[a])(e,o);l.recalculateRenderedStyle(o),o=s.collection()}},"updateEleCalcs"));l.flushRenderedStyleQueue=function(){e(!0)},l.beforeRender(e,l.beforeRenderPriorities.eleCalcs)},onUpdateEleCalcs:function(e){(this.onUpdateEleCalcsFns=this.onUpdateEleCalcsFns||[]).push(e)},recalculateRenderedStyle:function(e,t){var r=mt(function(e){return e._private.rstyle.cleanConnected},"isCleanConnected");if(0!==e.length){var n=[],i=[];if(!this.destroyed){void 0===t&&(t=!0);for(var a=0;a<e.length;a++){var s=e[a],o=s._private,l=o.rstyle;!s.isEdge()||r(s.source())&&r(s.target())||(l.clean=!1),s.isEdge()&&s.isBundledBezier()&&s.parallelEdges().some(function(e){return!e._private.rstyle.clean&&e.isBundledBezier()})&&(l.clean=!1),t&&l.clean||s.removed()||"none"===s.pstyle("display").value||(("nodes"===o.group?i:n).push(s),l.clean=!0)}for(var c=0;c<i.length;c++){var h=i[c],u=h._private.rstyle,d=h.position();this.recalculateNodeLabelProjection(h),u.nodeX=d.x,u.nodeY=d.y,u.nodeW=h.pstyle("width").pfValue,u.nodeH=h.pstyle("height").pfValue}this.recalculateEdgeProjections(n);for(var p=0;p<n.length;p++){var g=n[p]._private,f=g.rstyle;f.srcX=(g=g.rscratch).arrowStartX,f.srcY=g.arrowStartY,f.tgtX=g.arrowEndX,f.tgtY=g.arrowEndY,f.midX=g.midX,f.midY=g.midY,f.labelAngle=g.labelAngle,f.sourceLabelAngle=g.sourceLabelAngle,f.targetLabelAngle=g.targetLabelAngle}}}}},{updateCachedGrabbedEles:function(){var e=this.cachedZSortedEles;if(e){e.drag=[],e.nondrag=[];for(var t=[],r=0;r<e.length;r++){var n=(i=e[r])._private.rscratch;(i.grabbed()&&!i.isParent()?t:n.inDragLayer?e.drag:e.nondrag).push(i)}for(r=0;r<t.length;r++){var i=t[r];e.drag.push(i)}}},invalidateCachedZSortedEles:function(){this.cachedZSortedEles=null},getCachedZSortedEles:function(e){var t;return e||!this.cachedZSortedEles?((t=this.cy.mutableElements().toArray()).sort(Woe),t.interactive=t.filter(function(e){return e.interactive()}),this.cachedZSortedEles=t,this.updateCachedGrabbedEles()):t=this.cachedZSortedEles,t}}].forEach(function(e){Xee(uce,e)}),Hce={getCachedImage:function(e,t,r){var n,i=this.imageCache=this.imageCache||{},a=i[e];return a?(a.image.complete||a.image.addEventListener("load",r),a.image):((n=(a=i[e]=i[e]||{}).image=new Image).addEventListener("load",r),n.addEventListener("error",function(){n.error=!0}),"data:"!==e.substring(0,"data:".length).toLowerCase()&&(n.crossOrigin=t="null"===t?null:t),n.src=e,n)}},Kce={registerBinding:function(e,t,r,n){var i=Array.prototype.slice.apply(arguments,[1]);if(Array.isArray(e)){for(var a=[],s=0;s<e.length;s++){var o,l=e[s];void 0!==l&&(o=this.binder(l),a.push(o.on.apply(o,i)))}return a}return(o=this.binder(e)).on.apply(o,i)},binder:function(i){var a=this,e=a.cy.window(),s=i===e||i===e.document||i===e.document.body||Pee(i);if(null==a.supportsPassiveEvents){var t=!1;try{var r=Object.defineProperty({},"passive",{get:mt(function(){return t=!0},"get")});e.addEventListener("test",null,r)}catch{}a.supportsPassiveEvents=t}return{on:e=mt(function(e,t,r){var n=Array.prototype.slice.call(arguments);return s&&a.supportsPassiveEvents&&(n[2]={capture:r??!1,passive:!1,once:!1}),a.bindings.push({target:i,args:n}),(i.addEventListener||i.on).apply(i,n),this},"on"),addEventListener:e,addListener:e,bind:e}},nodeIs Line truncated `),u=0;u<h.length;u++){var d=h[u],d=o.measureText(d),d=Math.ceil(d.width),p=i,l=Math.max(d,l);c+=p}return{width:l+=0,height:c+=0}},Oce.calculateLabelAngle=function(e,t){var r=e._private.rscratch,n=e.isEdge();return"none"===(t=(e=e.pstyle((t?t+"-":"")+"text-rotation")).strValue)?0:n&&"autorotate"===t?r.labelAutoAngle:"autorotate"===t?0:e.pfValue},hce=!(Oce.calculateLabelAngles=function(e){var t=e.isEdge(),r=e._private.rscratch;r.labelAngle=this.calculateLabelAngle(e),t&&(r.sourceLabelAngle=this.calculateLabelAngle(e,"source"),r.targetLabelAngle=this.calculateLabelAngle(e,"target"))}),uce={},[Ece,Ice,Rce,Mce,Dce,Oce,{getNodeShape:function(e){var t=e.pstyle("shape").value;return"cutrectangle"===t&&(e.width()<28||e.height()<28)?(hce||(sre("The `cutrectangle` node shape can not be used at small sizes so `rectangle` is used instead"),hce=!0),"rectangle"):e.isParent()?"rectangle"===t||"roundrectangle"===t||"round-rectangle"===t||"cutrectangle"===t||"cut-rectangle"===t||"barrel"===t?t:"rectangle":"polygon"===t?(e=e.pstyle("shape-polygon-points").value,this.nodeShapes.makePolygon(e).name):t}},{registerCalculationListeners:function(){var s=this.cy,o=s.collection(),l=this,c=mt(function(e){var t=!(1<arguments.length&&void 0!==arguments[1])||arguments[1];if(o.merge(e),t)for(var r=0;r<e.length;r++){var n=e[r]._private.rstyle;n.clean=!1,n.cleanConnected=!1}},"enqueue"),e=(l.binder(s).on("bounds.* dirty.*",mt(function(e){e=e.target,c(e)},"onDirtyBounds")).on("style.* background.*",mt(function(e){e=e.target,c(e,!1)},"onDirtyStyle")),mt(function(e){if(e){var t=l.onUpdateEleCalcsFns;o.cleanStyle();for(var r=0;r<o.length;r++){var n=o[r],i=n._private.rstyle;n.isNode()&&!i.cleanConnected&&(c(n.connectedEdges()),i.cleanConnected=!0)}if(t)for(var a=0;a<t.length;a++)(0,t[a])(e,o);l.recalculateRenderedStyle(o),o=s.collection()}},"updateEleCalcs"));l.flushRenderedStyleQueue=function(){e(!0)},l.beforeRender(e,l.beforeRenderPriorities.eleCalcs)},onUpdateEleCalcs:function(e){(this.onUpdateEleCalcsFns=this.onUpdateEleCalcsFns||[]).push(e)},recalculateRenderedStyle:function(e,t){var r=mt(function(e){return e._private.rstyle.cleanConnected},"isCleanConnected");if(0!==e.length){var n=[],i=[];if(!this.destroyed){void 0===t&&(t=!0);for(var a=0;a<e.length;a++){var s=e[a],o=s._private,l=o.rstyle;!s.isEdge()||r(s.source())&&r(s.target())||(l.clean=!1),s.isEdge()&&s.isBundledBezier()&&s.parallelEdges().some(function(e){return!e._private.rstyle.clean&&e.isBundledBezier()})&&(l.clean=!1),t&&l.clean||s.removed()||"none"===s.pstyle("display").value||(("nodes"===o.group?i:n).push(s),l.clean=!0)}for(var c=0;c<i.length;c++){var h=i[c],u=h._private.rstyle,d=h.position();this.recalculateNodeLabelProjection(h),u.nodeX=d.x,u.nodeY=d.y,u.nodeW=h.pstyle("width").pfValue,u.nodeH=h.pstyle("height").pfValue}this.recalculateEdgeProjections(n);for(var p=0;p<n.length;p++){var g=n[p]._private,f=g.rstyle;f.srcX=(g=g.rscratch).arrowStartX,f.srcY=g.arrowStartY,f.tgtX=g.arrowEndX,f.tgtY=g.arrowEndY,f.midX=g.midX,f.midY=g.midY,f.labelAngle=g.labelAngle,f.sourceLabelAngle=g.sourceLabelAngle,f.targetLabelAngle=g.targetLabelAngle}}}}},{updateCachedGrabbedEles:function(){var e=this.cachedZSortedEles;if(e){e.drag=[],e.nondrag=[];for(var t=[],r=0;r<e.length;r++){var n=(i=e[r])._private.rscratch;(i.grabbed()&&!i.isParent()?t:n.inDragLayer?e.drag:e.nondrag).push(i)}for(r=0;r<t.length;r++){var i=t[r];e.drag.push(i)}}},invalidateCachedZSortedEles:function(){this.cachedZSortedEles=null},getCachedZSortedEles:function(e){var t;return e||!this.cachedZSortedEles?((t=this.cy.mutableElements().toArray()).sort(Woe),t.interactive=t.filter(function(e){return e.interactive()}),this.cachedZSortedEles=t,this.updateCachedGrabbedEles()):t=this.cachedZSortedEles,t}}].forEach(function(e){Xee(uce,e)}),Hce={getCachedImage:function(e,t,r){var n,i=this.imageCache=this.imageCache||{},a=i[e];return a?(a.image.complete||a.image.addEventListener("load",r),a.image):((n=(a=i[e]=i[e]||{}).image=new Image).addEventListener("load",r),n.addEventListener("error",function(){n.error=!0}),"data:"!==e.substring(0,"data:".length).toLowerCase()&&(n.crossOrigin=t="null"===t?null:t),n.src=e,n)}},Kce={registerBinding:function(e,t,r,n){var i=Array.prototype.slice.apply(arguments,[1]);if(Array.isArray(e)){for(var a=[],s=0;s<e.length;s++){var o,l=e[s];void 0!==l&&(o=this.binder(l),a.push(o.on.apply(o,i)))}return a}return(o=this.binder(e)).on.apply(o,i)},binder:function(i){var a=this,e=a.cy.window(),s=i===e||i===e.document||i===e.document.body||Pee(i);if(null==a.supportsPassiveEvents){var t=!1;try{var r=Object.defineProperty({},"passive",{get:mt(function(){return t=!0},"get")});e.addEventListener("test",null,r)}catch{}a.supportsPassiveEvents=t}return{on:e=mt(function(e,t,r){var n=Array.prototype.slice.call(arguments);return s&&a.supportsPassiveEvents&&(n[2]={capture:r??!1,passive:!1,once:!1}),a.bindings.push({target:i,args:n}),(i.addEventListener||i.on).apply(i,n),this},"on"),addEventListener:e,addListener:e,bind:e}},nodeIs Line truncated
precision highp float; precision highp float;
uniform mat3 uPanZoomMatrix; uniform mat3 uPanZoomMatrix;
@@ -834,9 +834,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
`).concat(e.picking?`if(outColor.a == 0.0) discard; `).concat(e.picking?`if(outColor.a == 0.0) discard;
else outColor = vIndex;`:"",` else outColor = vIndex;`:"",`
} }
`));i.aPosition=t.getAttribLocation(i,"aPosition"),i.aIndex=t.getAttribLocation(i,"aIndex"),i.aVertType=t.getAttribLocation(i,"aVertType"),i.aTransform=t.getAttribLocation(i,"aTransform"),i.aAtlasId=t.getAttribLocation(i,"aAtlasId"),i.aTex=t.getAttribLocation(i,"aTex"),i.aPointAPointB=t.getAttribLocation(i,"aPointAPointB"),i.aPointCPointD=t.getAttribLocation(i,"aPointCPointD"),i.aLineWidth=t.getAttribLocation(i,"aLineWidth"),i.aColor=t.getAttribLocation(i,"aColor"),i.aCornerRadius=t.getAttribLocation(i,"aCornerRadius"),i.aBorderColor=t.getAttribLocation(i,"aBorderColor"),i.uPanZoomMatrix=t.getUniformLocation(i,"uPanZoomMatrix"),i.uAtlasSize=t.getUniformLocation(i,"uAtlasSize"),i.uBGColor=t.getUniformLocation(i,"uBGColor"),i.uZoom=t.getUniformLocation(i,"uZoom"),i.uTextures=[];for(var a=0;a<this.batchManager.getMaxAtlasesPerBatch();a++)i.uTextures.push(t.getUniformLocation(i,"uTexture".concat(a)));return i},"_createShaderProgram")},{key:"_createVAO",value:mt(function(){var e=[0,0,1,0,1,1,0,0,1,1,0,1],t=(this.vertexCount=e.length/2,this.maxInstances),r=this.gl,n=this.program,i=r.createVertexArray();return r.bindVertexArray(i),OJ(r,"vec2",n.aPosition,e),this.transformBuffer=BJ(r,t,n.aTransform),this.indexBuffer=PJ(r,t,"vec4",n.aIndex),this.vertTypeBuffer=PJ(r,t,"int",n.aVertType),this.atlasIdBuffer=PJ(r,t,"int",n.aAtlasId),this.texBuffer=PJ(r,t,"vec4",n.aTex),this.pointAPointBBuffer=PJ(r,t,"vec4",n.aPointAPointB),this.pointCPointDBuffer=PJ(r,t,"vec4",n.aPointCPointD),this.lineWidthBuffer=PJ(r,t,"vec2",n.aLineWidth),this.colorBuffer=PJ(r,t,"vec4",n.aColor),this.cornerRadiusBuffer=PJ(r,t,"vec4",n.aCornerRadius),this.borderColorBuffer=PJ(r,t,"vec4",n.aBorderColor),r.bindVertexArray(null),i},"_createVAO")},{key:"buffers",get:mt(function(){var t=this;return this._buffers||(this._buffers=Object.keys(this).filter(function(e){return Yee(e,"Buffer")}).map(function(e){return t[e]})),this._buffers},"get")},{key:"startFrame",value:mt(function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:jce.SCREEN;this.panZoomMatrix=e,this.renderTarget=t,this.batchDebugInfo=[],this.wrappedCount=0,this.simpleCount=0,this.startBatch()},"startFrame")},{key:"startBatch",value:mt(function(){this.instanceCount=0,this.batchManager.startBatch()},"startBatch")},{key:"endFrame",value:mt(function(){this.endBatch()},"endFrame")},{key:"_isVisible",value:mt(function(e,t){return!!e.visible()&&(!t||!t.isVisible||t.isVisible(e))},"_isVisible")},{key:"drawTexture",value:mt(function(e,t,r){var n=this.atlasManager,i=this.batchManager,a=n.getRenderTypeOpts(r);if(this._isVisible(e,a)&&(!e.isEdge()||this._isValidEdge(e))){if(this.renderTarget.picking&&a.getTexPickingMode){var s=a.getTexPickingMode(e);if(s===Yce.IGNORE)return;if(s==Yce.USE_BB)return void this.drawPickingRectangle(e,t,r)}var o,l=XK(n.getAtlasInfo(e,r));try{for(l.s();!(o=l.n()).done;){var c=o.value,h=c.atlas,u=c.tex1,d=c.tex2;i.canAddToCurrentBatch(h)||this.endBatch();for(var p=i.getAtlasIndexForBatch(h),g=0,f=[[u,!0],[d,!1]];g<f.length;g++){var m,y,v,x=tZ(f[g],2),b=x[0],w=x[1];0!=b.w&&(m=this.instanceCount,this.vertTypeBuffer.getView(m)[0]=0,LJ(t,this.indexBuffer.getView(m)),this.atlasIdBuffer.getView(m)[0]=p,(y=this.texBuffer.getView(m))[0]=b.x,y[1]=b.y,y[2]=b.w,y[3]=b.h,v=this.transformBuffer.getMatrixView(m),this.setTransformMatrix(e,v,a,c,w),this.instanceCount++,w||this.wrappedCount++,this.instanceCount>=this.maxInstances)&&this.endBatch()}}}catch(e){l.e(e)}finally{l.f()}}},"drawTexture")},{key:"setTransformMatrix",value:mt(function(e,t,r,n){var i,a,s=!(4<arguments.length&&void 0!==arguments[4])||arguments[4],o=0;r.shapeProps&&r.shapeProps.padding&&(o=e.pstyle(r.shapeProps.padding).pfValue),n?(a=n.bb,i=(i=n.tex1).w/(i.w+n.tex2.w),n=this._getAdjustedBB(a,o,s,s?i:1-i),this._applyTransformMatrix(t,n,r,e)):(a=r.getBoundingBox(e),s=this._getAdjustedBB(a,o,!0,1),this._applyTransformMatrix(t,s,r,e))},"setTransformMatrix")},{key:"_applyTransformMatrix",value:mt(function(e,t,r,n){zJ(e);var i,a,s=0!==(s=r.getRotation?r.getRotation(n):0)?(UJ(e,e,[(i=r.getRotationPoint(n)).x,i.y]),qJ(e,e,s),a=(i=r.getRotationOffset(n)).x+(t.xOffset||0),i.y+(t.yOffset||0)):(a=t.x1,t.y1);UJ(e,e,[a,s]),jJ(e,e,[t.w,t.h])},"_applyTransformMatrix")},{key:"_getAdjustedBB",value:mt(function(e,t,r,n){var i=e.x1,a=e.y1,s=e.w,o=e.h,t=(t&&(i-=t,a-=t,s+=2*t,o+=2*t),0),l=s*n;return r&&n<1?s=l:!r&&n<1&&(i+=t=s-l,s=l),{x1:i,y1:a,w:s,h:o,xOffset:t,yOffset:e.yOffset}},"_getAdjustedBB")},{key:"drawPickingRectangle",value:mt(function(e,t,r){var r=this.atlasManager.getRenderTypeOpts(r),n=this.instanceCount;this.vertTypeBuffer.getView(n)[0]=4,LJ(t,this.indexBuffer.getView(n)),AJ([0,0,0],1,this.colorBuffer.getView(n)),t=this.transformBuffer.getMatrixView(n),this.setTransformMatrix(e,t,r),this.simpleCount++,this.instanceCount++,this.instanceCount>=this.maxInstances&&this.endBatch()},"drawPickingRectangle")},{key:"drawNode",value:mt(function(e,t,r){var n,i,a,s,o=this.simpleShapeOptions.get(r);this._isVisible(e,o)&&(s=o.sh Line truncated `));i.aPosition=t.getAttribLocation(i,"aPosition"),i.aIndex=t.getAttribLocation(i,"aIndex"),i.aVertType=t.getAttribLocation(i,"aVertType"),i.aTransform=t.getAttribLocation(i,"aTransform"),i.aAtlasId=t.getAttribLocation(i,"aAtlasId"),i.aTex=t.getAttribLocation(i,"aTex"),i.aPointAPointB=t.getAttribLocation(i,"aPointAPointB"),i.aPointCPointD=t.getAttribLocation(i,"aPointCPointD"),i.aLineWidth=t.getAttribLocation(i,"aLineWidth"),i.aColor=t.getAttribLocation(i,"aColor"),i.aCornerRadius=t.getAttribLocation(i,"aCornerRadius"),i.aBorderColor=t.getAttribLocation(i,"aBorderColor"),i.uPanZoomMatrix=t.getUniformLocation(i,"uPanZoomMatrix"),i.uAtlasSize=t.getUniformLocation(i,"uAtlasSize"),i.uBGColor=t.getUniformLocation(i,"uBGColor"),i.uZoom=t.getUniformLocation(i,"uZoom"),i.uTextures=[];for(var a=0;a<this.batchManager.getMaxAtlasesPerBatch();a++)i.uTextures.push(t.getUniformLocation(i,"uTexture".concat(a)));return i},"_createShaderProgram")},{key:"_createVAO",value:mt(function(){var e=[0,0,1,0,1,1,0,0,1,1,0,1],t=(this.vertexCount=e.length/2,this.maxInstances),r=this.gl,n=this.program,i=r.createVertexArray();return r.bindVertexArray(i),OJ(r,"vec2",n.aPosition,e),this.transformBuffer=BJ(r,t,n.aTransform),this.indexBuffer=PJ(r,t,"vec4",n.aIndex),this.vertTypeBuffer=PJ(r,t,"int",n.aVertType),this.atlasIdBuffer=PJ(r,t,"int",n.aAtlasId),this.texBuffer=PJ(r,t,"vec4",n.aTex),this.pointAPointBBuffer=PJ(r,t,"vec4",n.aPointAPointB),this.pointCPointDBuffer=PJ(r,t,"vec4",n.aPointCPointD),this.lineWidthBuffer=PJ(r,t,"vec2",n.aLineWidth),this.colorBuffer=PJ(r,t,"vec4",n.aColor),this.cornerRadiusBuffer=PJ(r,t,"vec4",n.aCornerRadius),this.borderColorBuffer=PJ(r,t,"vec4",n.aBorderColor),r.bindVertexArray(null),i},"_createVAO")},{key:"buffers",get:mt(function(){var t=this;return this._buffers||(this._buffers=Object.keys(this).filter(function(e){return Yee(e,"Buffer")}).map(function(e){return t[e]})),this._buffers},"get")},{key:"startFrame",value:mt(function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:jce.SCREEN;this.panZoomMatrix=e,this.renderTarget=t,this.batchDebugInfo=[],this.wrappedCount=0,this.simpleCount=0,this.startBatch()},"startFrame")},{key:"startBatch",value:mt(function(){this.instanceCount=0,this.batchManager.startBatch()},"startBatch")},{key:"endFrame",value:mt(function(){this.endBatch()},"endFrame")},{key:"_isVisible",value:mt(function(e,t){return!!e.visible()&&(!t||!t.isVisible||t.isVisible(e))},"_isVisible")},{key:"drawTexture",value:mt(function(e,t,r){var n=this.atlasManager,i=this.batchManager,a=n.getRenderTypeOpts(r);if(this._isVisible(e,a)&&(!e.isEdge()||this._isValidEdge(e))){if(this.renderTarget.picking&&a.getTexPickingMode){var s=a.getTexPickingMode(e);if(s===Yce.IGNORE)return;if(s==Yce.USE_BB)return void this.drawPickingRectangle(e,t,r)}var o,l=XK(n.getAtlasInfo(e,r));try{for(l.s();!(o=l.n()).done;){var c=o.value,h=c.atlas,u=c.tex1,d=c.tex2;i.canAddToCurrentBatch(h)||this.endBatch();for(var p=i.getAtlasIndexForBatch(h),g=0,f=[[u,!0],[d,!1]];g<f.length;g++){var m,y,v,x=tZ(f[g],2),b=x[0],w=x[1];0!=b.w&&(m=this.instanceCount,this.vertTypeBuffer.getView(m)[0]=0,LJ(t,this.indexBuffer.getView(m)),this.atlasIdBuffer.getView(m)[0]=p,(y=this.texBuffer.getView(m))[0]=b.x,y[1]=b.y,y[2]=b.w,y[3]=b.h,v=this.transformBuffer.getMatrixView(m),this.setTransformMatrix(e,v,a,c,w),this.instanceCount++,w||this.wrappedCount++,this.instanceCount>=this.maxInstances)&&this.endBatch()}}}catch(e){l.e(e)}finally{l.f()}}},"drawTexture")},{key:"setTransformMatrix",value:mt(function(e,t,r,n){var i,a,s=!(4<arguments.length&&void 0!==arguments[4])||arguments[4],o=0;r.shapeProps&&r.shapeProps.padding&&(o=e.pstyle(r.shapeProps.padding).pfValue),n?(a=n.bb,i=(i=n.tex1).w/(i.w+n.tex2.w),n=this._getAdjustedBB(a,o,s,s?i:1-i),this._applyTransformMatrix(t,n,r,e)):(a=r.getBoundingBox(e),s=this._getAdjustedBB(a,o,!0,1),this._applyTransformMatrix(t,s,r,e))},"setTransformMatrix")},{key:"_applyTransformMatrix",value:mt(function(e,t,r,n){zJ(e);var i,a,s=0!==(s=r.getRotation?r.getRotation(n):0)?(UJ(e,e,[(i=r.getRotationPoint(n)).x,i.y]),qJ(e,e,s),a=(i=r.getRotationOffset(n)).x+(t.xOffset||0),i.y+(t.yOffset||0)):(a=t.x1,t.y1);UJ(e,e,[a,s]),jJ(e,e,[t.w,t.h])},"_applyTransformMatrix")},{key:"_getAdjustedBB",value:mt(function(e,t,r,n){var i=e.x1,a=e.y1,s=e.w,o=e.h,t=(t&&(i-=t,a-=t,s+=2*t,o+=2*t),0),l=s*n;return r&&n<1?s=l:!r&&n<1&&(i+=t=s-l,s=l),{x1:i,y1:a,w:s,h:o,xOffset:t,yOffset:e.yOffset}},"_getAdjustedBB")},{key:"drawPickingRectangle",value:mt(function(e,t,r){var r=this.atlasManager.getRenderTypeOpts(r),n=this.instanceCount;this.vertTypeBuffer.getView(n)[0]=4,LJ(t,this.indexBuffer.getView(n)),AJ([0,0,0],1,this.colorBuffer.getView(n)),t=this.transformBuffer.getMatrixView(n),this.setTransformMatrix(e,t,r),this.simpleCount++,this.instanceCount++,this.instanceCount>=this.maxInstances&&this.endBatch()},"drawPickingRectangle")},{key:"drawNode",value:mt(function(e,t,r){var n,i,a,s,o=this.simpleShapeOptions.get(r);this._isVisible(e,o)&&(s=o.sh Line truncated
`+g.showPosition()+` `+g.showPosition()+`
Expecting `+A.join(", ")+", got '"+(this.terminals_[x]||x)+"'":"Parse error on line "+(c+1)+": Unexpected "+(x==d?"end of input":"'"+(this.terminals_[x]||x)+"'"),this.parseError(S,{text:g.match,token:this.terminals_[x]||x,line:g.yylineno,loc:m,expected:A})}if(k[0]instanceof Array&&1<k.length)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+x);switch(k[0]){case 1:n.push(x),a.push(g.yytext),s.push(g.yylloc),n.push(k[1]),x=null,b?(x=b,b=null):(h=g.yyleng,l=g.yytext,c=g.yylineno,m=g.yylloc,0<u&&u--);break;case 2:if(E=this.productions_[k[1]][1],_.$=a[a.length-E],_._$={first_line:s[s.length-(E||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(E||1)].first_column,last_column:s[s.length-1].last_column},y&&(_._$.range=[s[s.length-(E||1)].range[0],s[s.length-1].range[1]]),typeof(C=this.performAction.apply(_,[l,h,c,f.yy,k[1],a,s].concat(p)))<"u")return C;E&&(n=n.slice(0,-1*E*2),a=a.slice(0,-1*E),s=s.slice(0,-1*E)),n.push(this.productions_[k[1]][0]),a.push(_.$),s.push(_._$),C=o[n[n.length-2]][n[n.length-1]],n.push(C);break;case 3:return!0}}return!0},"parse")},$={EOF:1,parseError:mt(function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},"parseError"),setInput:mt(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:mt(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},"input"),unput:mt(function(e){var t=e.length,r=e.split(/(?:\r\n?|\n)/g),e=(this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t,this.match.split(/(?:\r\n?|\n)/g)),n=(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),r.length-1&&(this.yylineno-=r.length-1),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:r?(r.length===e.length?this.yylloc.first_column:0)+e[e.length-r.length].length-r[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[n[0],n[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},"unput"),more:mt(function(){return this._more=!0,this},"more"),reject:mt(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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). Expecting `+A.join(", ")+", got '"+(this.terminals_[x]||x)+"'":"Parse error on line "+(c+1)+": Unexpected "+(x==d?"end of input":"'"+(this.terminals_[x]||x)+"'"),this.parseError(_,{text:g.match,token:this.terminals_[x]||x,line:g.yylineno,loc:m,expected:A})}if(k[0]instanceof Array&&1<k.length)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+x);switch(k[0]){case 1:n.push(x),a.push(g.yytext),s.push(g.yylloc),n.push(k[1]),x=null,b?(x=b,b=null):(h=g.yyleng,l=g.yytext,c=g.yylineno,m=g.yylloc,0<u&&u--);break;case 2:if(E=this.productions_[k[1]][1],S.$=a[a.length-E],S._$={first_line:s[s.length-(E||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(E||1)].first_column,last_column:s[s.length-1].last_column},y&&(S._$.range=[s[s.length-(E||1)].range[0],s[s.length-1].range[1]]),typeof(C=this.performAction.apply(S,[l,h,c,f.yy,k[1],a,s].concat(p)))<"u")return C;E&&(n=n.slice(0,-1*E*2),a=a.slice(0,-1*E),s=s.slice(0,-1*E)),n.push(this.productions_[k[1]][0]),a.push(S.$),s.push(S._$),C=o[n[n.length-2]][n[n.length-1]],n.push(C);break;case 3:return!0}}return!0},"parse")},$={EOF:1,parseError:mt(function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},"parseError"),setInput:mt(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:mt(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},"input"),unput:mt(function(e){var t=e.length,r=e.split(/(?:\r\n?|\n)/g),e=(this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t,this.match.split(/(?:\r\n?|\n)/g)),n=(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),r.length-1&&(this.yylineno-=r.length-1),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:r?(r.length===e.length?this.yylloc.first_column:0)+e[e.length-r.length].length-r[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[n[0],n[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},"unput"),more:mt(function(){return this._more=!0,this},"more"),reject:mt(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:mt(function(e){this.unput(this.match.slice(e))},"less"),pastInput:mt(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(20<e.length?"...":"")+e.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:mt(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(20<e.length?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:mt(function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+` `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:mt(function(e){this.unput(this.match.slice(e))},"less"),pastInput:mt(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(20<e.length?"...":"")+e.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:mt(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(20<e.length?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:mt(function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+`
`+t+"^"},"showPosition"),test_match:mt(function(e,t){var r,n;if(this.options.backtrack_lexer&&(n={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)&&(n.yylloc.range=this.yylloc.range.slice(0)),(r=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],r=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),r)return r;if(this._backtrack)for(var i in n)this[i]=n[i];return!1},"test_match"),next:mt(function(){if(this.done)return this.EOF;var e,t,r,n;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;a<i.length;a++)if((r=this._input.match(this.rules[i[a]]))&&(!t||r[0].length>t[0].length)){if(t=r,n=a,this.options.backtrack_lexer){if(!1!==(e=this.test_match(r,i[a])))return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,i[n]))&&e:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. `+t+"^"},"showPosition"),test_match:mt(function(e,t){var r,n;if(this.options.backtrack_lexer&&(n={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)&&(n.yylloc.range=this.yylloc.range.slice(0)),(r=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],r=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),r)return r;if(this._backtrack)for(var i in n)this[i]=n[i];return!1},"test_match"),next:mt(function(){if(this.done)return this.EOF;var e,t,r,n;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;a<i.length;a++)if((r=this._input.match(this.rules[i[a]]))&&(!t||r[0].length>t[0].length)){if(t=r,n=a,this.options.backtrack_lexer){if(!1!==(e=this.test_match(r,i[a])))return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,i[n]))&&e:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:mt(function(){return this.next()||this.lex()},"lex"),begin:mt(function(e){this.conditionStack.push(e)},"begin"),popState:mt(function(){return 0<this.conditionStack.length-1?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:mt(function(){return(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]]:this.conditions.INITIAL).rules},"_currentRules"),topState:mt(function(e){return 0<=(e=this.conditionStack.length-1-Math.abs(e||0))?this.conditionStack[e]:"INITIAL"},"topState"),pushState:mt(function(e){this.begin(e)},"pushState"),stateStackSize:mt(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:mt(function(e,t,r,n){switch(r){case 0:return this.begin("acc_title"),34;case 1:return this.popState(),"acc_title_value";case 2:return this.begin("acc_descr"),36;case 3:return this.popState(),"acc_descr_value";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"),t.yytext="",40;case 8:return this.pushState("shapeDataStr"),40;case 9:return this.popState(),40;case 10:return t.yytext=t.yytext.replace(/\n\s*/g,"<br/>"),40;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:case 36:case 37:return e.lex.firstGraph()&&this.begin("dir"),12;case 38:return 27;case 39:return 32;case 40:case 41:case 42:case 43:return 98;case 44:return this.popState(),13;case 45:case 46:case 47:case 48:case 49:case 50:case 51:case 52:case 53:case 54:return this.popState(),14;case 55:return 121;case 56:return 122;case 57:return 123;case 58:return 124;case 59:return 78;case 60:return 105;case 61:return 111;case 62:return 46;case 63:return 60;case 64:return 44;case 65:return 8;case 66:return 106;case 67:return 115;case 68:return this.popState(),77;case 69:return this.pushState("edgeText"),75;case 70:return 119;case 71:return this.popState(),77;case 72:return this.pushState("thickEdgeText"),75;case 73:return 119;case 74:return this.popState(),77;case 75:return this.pushState("dottedEdgeText"),75;case 76:return 119;case 77:return 77;case 78:return this.popState(),53;case 79:return"TEXT";case 80:return this.pushState("ellipseText"),52;case 81:return this.popState(),55;case 82:return this.pushState("text"),54;case 83:return this.popState(),57;case 84:return this.pushState("text"),56;case 85:return 58;case 86:return this.pushState("text"),67;case 87:return this.popState(),64;case 88:return this.pushState("text"),63;case 89:return this.popState(),49;case 90:return this.pushState("text"),48;case 91:return this.popState(),69;case 92:return this.popState(),71;case 93:return 117;case 94:return this.pushState("trapText"),68;case 95:return this.pushState("trapText"),70;case 96:return 118;case 97:return 67;case 98:return 90;case 99:return"SEP";case 100:return 89;case 101:return 115;case 102:return 111;case 103:return 44;case 104:return 109;case 105:return 114;case 106:return 116;case 107:return this.popState(),62;case 108:return this.pushState("text"),62;case 109:return this.popState(),51;case 110:return this.pushState("text"),50;case 111:return this.popState(),31;case 112:return this.pushState("text"),29;case 113:return this.popState(),66;case 114:return this.pushState("text"),65;case 115:return"TEXT";case 116:return"QUOTE";case 117:return 9;case 118:return 10;case 119: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)/,/^(?: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+TBLine truncated `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:mt(function(){return this.next()||this.lex()},"lex"),begin:mt(function(e){this.conditionStack.push(e)},"begin"),popState:mt(function(){return 0<this.conditionStack.length-1?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:mt(function(){return(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]]:this.conditions.INITIAL).rules},"_currentRules"),topState:mt(function(e){return 0<=(e=this.conditionStack.length-1-Math.abs(e||0))?this.conditionStack[e]:"INITIAL"},"topState"),pushState:mt(function(e){this.begin(e)},"pushState"),stateStackSize:mt(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:mt(function(e,t,r,n){switch(r){case 0:return this.begin("acc_title"),34;case 1:return this.popState(),"acc_title_value";case 2:return this.begin("acc_descr"),36;case 3:return this.popState(),"acc_descr_value";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"),t.yytext="",40;case 8:return this.pushState("shapeDataStr"),40;case 9:return this.popState(),40;case 10:return t.yytext=t.yytext.replace(/\n\s*/g,"<br/>"),40;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:case 36:case 37:return e.lex.firstGraph()&&this.begin("dir"),12;case 38:return 27;case 39:return 32;case 40:case 41:case 42:case 43:return 98;case 44:return this.popState(),13;case 45:case 46:case 47:case 48:case 49:case 50:case 51:case 52:case 53:case 54:return this.popState(),14;case 55:return 121;case 56:return 122;case 57:return 123;case 58:return 124;case 59:return 78;case 60:return 105;case 61:return 111;case 62:return 46;case 63:return 60;case 64:return 44;case 65:return 8;case 66:return 106;case 67:return 115;case 68:return this.popState(),77;case 69:return this.pushState("edgeText"),75;case 70:return 119;case 71:return this.popState(),77;case 72:return this.pushState("thickEdgeText"),75;case 73:return 119;case 74:return this.popState(),77;case 75:return this.pushState("dottedEdgeText"),75;case 76:return 119;case 77:return 77;case 78:return this.popState(),53;case 79:return"TEXT";case 80:return this.pushState("ellipseText"),52;case 81:return this.popState(),55;case 82:return this.pushState("text"),54;case 83:return this.popState(),57;case 84:return this.pushState("text"),56;case 85:return 58;case 86:return this.pushState("text"),67;case 87:return this.popState(),64;case 88:return this.pushState("text"),63;case 89:return this.popState(),49;case 90:return this.pushState("text"),48;case 91:return this.popState(),69;case 92:return this.popState(),71;case 93:return 117;case 94:return this.pushState("trapText"),68;case 95:return this.pushState("trapText"),70;case 96:return 118;case 97:return 67;case 98:return 90;case 99:return"SEP";case 100:return 89;case 101:return 115;case 102:return 111;case 103:return 44;case 104:return 109;case 105:return 114;case 106:return 116;case 107:return this.popState(),62;case 108:return this.pushState("text"),62;case 109:return this.popState(),51;case 110:return this.pushState("text"),50;case 111:return this.popState(),31;case 112:return this.pushState("text"),29;case 113:return this.popState(),66;case 114:return this.pushState("text"),65;case 115:return"TEXT";case 116:return"QUOTE";case 117:return 9;case 118:return 10;case 119: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)/,/^(?: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+TBLine truncated
@@ -1001,12 +1001,12 @@ Expecting `+A.join(", ")+", got '"+(this.terminals_[x]||x)+"'":"Parse error on l
text-align: center; text-align: center;
} }
${Hhe()} ${Hhe()}
`,"getStyles"),Khe=Xhe}),aue={};OFe(aue,{diagram:()=>sue});var sue,oue,lue,cue,hue=b(()=>{Tu(),nO(),eue(),rue(),iue(),sue={parser:Whe,get db(){return new jD},renderer:Uhe,styles:Khe,init:mt(e=>{e.flowchart||(e.flowchart={}),e.layout&&Eh({layout:e.layout}),e.flowchart.arrowMarkerAbsolute=e.arrowMarkerAbsolute,Eh({flowchart:{arrowMarkerAbsolute:e.arrowMarkerAbsolute}})},"init")}}),uue=b(()=>{function e(){this.yy={}}var t=mt(function(e,t,r,n){for(r=r||{},n=e.length;n--;r[e[n]]=t);return r},"o"),r=[6,8,10,22,24,26,28,33,34,35,36,37,40,43,44,50],n=[1,10],i=[1,11],a=[1,12],s=[1,13],o=[1,20],l=[1,21],c=[1,22],h=[1,23],u=[1,24],d=[1,19],p=[1,25],P=[1,26],g=[1,18],f=[1,33],m=[1,34],y=[1,35],v=[1,36],x=[1,37],B=[6,8,10,13,15,17,20,21,22,24,26,28,33,34,35,36,37,40,43,44,50,63,64,65,66,67],b=[1,42],w=[1,43],k=[1,52],T=[40,50,68,69],E=[1,63],C=[1,61],_=[1,58],S=[1,62],A=[1,64],L=[6,8,10,13,17,22,24,26,28,33,34,35,36,37,40,41,42,43,44,48,49,50,63,64,65,66,67],$=[63,64,65,66,67],F=[1,81],z=[1,80],G=[1,78],U=[1,79],q=[6,10,42,47],N=[6,10,13,41,42,47,48,49],I=[1,89],R=[1,88],M=[1,87],D=[19,56],j=[1,98],Y=[1,97],O=[19,56,58,60],n={trace:mt(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,entityName:11,relSpec:12,COLON:13,role:14,STYLE_SEPARATOR:15,idList:16,BLOCK_START:17,attributes:18,BLOCK_STOP:19,SQS:20,SQE:21,title:22,title_value:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,direction:29,classDefStatement:30,classStatement:31,styleStatement:32,direction_tb:33,direction_bt:34,direction_rl:35,direction_lr:36,CLASSDEF:37,stylesOpt:38,separator:39,UNICODE_TEXT:40,STYLE_TEXT:41,COMMA:42,CLASS:43,STYLE:44,style:45,styleComponent:46,SEMI:47,NUM:48,BRKT:49,ENTITY_NAME:50,attribute:51,attributeType:52,attributeName:53,attributeKeyTypeList:54,attributeComment:55,ATTRIBUTE_WORD:56,attributeKeyType:57,",":58,ATTRIBUTE_KEY:59,COMMENT:60,cardinality:61,relType:62,ZERO_OR_ONE:63,ZERO_OR_MORE:64,ONE_OR_MORE:65,ONLY_ONE:66,MD_PARENT:67,NON_IDENTIFYING:68,IDENTIFYING:69,WORD:70,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",8:"SPACE",10:"NEWLINE",13:"COLON",15:"STYLE_SEPARATOR",17:"BLOCK_START",19:"BLOCK_STOP",20:"SQS",21:"SQE",22:"title",23:"title_value",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"direction_tb",34:"direction_bt",35:"direction_rl",36:"direction_lr",37:"CLASSDEF",40:"UNICODE_TEXT",41:"STYLE_TEXT",42:"COMMA",43:"CLASS",44:"STYLE",47:"SEMI",48:"NUM",49:"BRKT",50:"ENTITY_NAME",56:"ATTRIBUTE_WORD",58:",",59:"ATTRIBUTE_KEY",60:"COMMENT",63:"ZERO_OR_ONE",64:"ZERO_OR_MORE",65:"ONE_OR_MORE",66:"ONLY_ONE",67:"MD_PARENT",68:"NON_IDENTIFYING",69:"IDENTIFYING",70:"WORD"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,5],[9,9],[9,7],[9,7],[9,4],[9,6],[9,3],[9,5],[9,1],[9,3],[9,7],[9,9],[9,6],[9,8],[9,4],[9,6],[9,2],[9,2],[9,2],[9,1],[9,1],[9,1],[9,1],[9,1],[29,1],[29,1],[29,1],[29,1],[30,4],[16,1],[16,1],[16,3],[16,3],[31,3],[32,4],[38,1],[38,3],[45,1],[45,2],[39,1],[39,1],[39,1],[46,1],[46,1],[46,1],[46,1],[11,1],[11,1],[18,1],[18,2],[51,2],[51,3],[51,3],[51,4],[52,1],[53,1],[54,1],[54,3],[57,1],[55,1],[12,3],[61,1],[61,1],[61,1],[61,1],[61,1],[62,1],[62,1],[14,1],[14,1],[14,1]],performAction:mt(function(e,t,r,n,i,a,s){var o=a.length-1;switch(i){case 1:break;case 2:this.$=[];break;case 3:a[o-1].push(a[o]),this.$=a[o-1];break;case 4:case 5:this.$=a[o];break;case 6:case 7:this.$=[];break;case 8:n.addEntity(a[o-4]),n.addEntity(a[o-2]),n.addRelationship(a[o-4],a[o],a[o-2],a[o-3]);break;case 9:n.addEntity(a[o-8]),n.addEntity(a[o-4]),n.addRelationship(a[o-8],a[o],a[o-4],a[o-5]),n.setClass([a[o-8]],a[o-6]),n.setClass([a[o-4]],a[o-2]);break;case 10:n.addEntity(a[o-6]),n.addEntity(a[o-2]),n.addRelationship(a[o-6],a[o],a[o-2],a[o-3]),n.setClass([a[o-6]],a[o-4]);break;case 11:n.addEntity(a[o-6]),n.addEntity(a[o-4]),n.addRelationship(a[o-6],a[o],a[o-4],a[o-5]),n.setClass([a[o-4]],a[o-2]);break;case 12:n.addEntity(a[o-3]),n.addAttributes(a[o-3],a[o-1]);break;case 13:n.addEntity(a[o-5]),n.addAttributes(a[o-5],a[o-1]),n.setClass([a[o-5]],a[o-3]);break;case 14:n.addEntity(a[o-2]);break;case 15:n.addEntity(a[o-4]),n.setClass([a[o-4]],a[o-2]);break;case 16:n.addEntity(a[o]);break;case 17:n.addEntity(a[o-2]),n.setClass([a[o-2]],a[o]);break;case 18:n.addEntity(a[o-6],a[o-4]),n.addAttributes(a[o-6],a[o-1]);break;case 19:n.addEntity(a[o-8],a[o-6]),n.addAttributes(a[o-8],a[o-1]),n.setClass([a[o-8]],a[o-3]);break;case 20:n.addEntity(a[o-5],a[o-3]);break;case 21:n.addEntity(a[o-7],a[o-5]),n.setClass([a[o-7]],a[o-2]);break;case 22:n.addEntity(a[o-3],a[o-1]);break;case 23:n.addEntity(a[o-5],a[o-3]),n.setClass([a[o-5]],a[o]);break;case 24:case 25:this.$=a[o].trim(),n.setAccTitle(this.$);break;case 26:case 27:this.$=a[o].trim(),n.setAccDescription(this.$);break;case 32:n.setDirection("TB");break;case 33:n.setDirection("BT");break;case 34:n.setDirecti Line truncated `,"getStyles"),Khe=Xhe}),aue={};PFe(aue,{diagram:()=>sue});var sue,oue,lue,cue,hue=b(()=>{Tu(),nO(),eue(),rue(),iue(),sue={parser:Whe,get db(){return new jD},renderer:Uhe,styles:Khe,init:mt(e=>{e.flowchart||(e.flowchart={}),e.layout&&Eh({layout:e.layout}),e.flowchart.arrowMarkerAbsolute=e.arrowMarkerAbsolute,Eh({flowchart:{arrowMarkerAbsolute:e.arrowMarkerAbsolute}})},"init")}}),uue=b(()=>{function e(){this.yy={}}var t=mt(function(e,t,r,n){for(r=r||{},n=e.length;n--;r[e[n]]=t);return r},"o"),r=[6,8,10,22,24,26,28,33,34,35,36,37,40,43,44,50],n=[1,10],i=[1,11],a=[1,12],s=[1,13],o=[1,20],l=[1,21],c=[1,22],h=[1,23],u=[1,24],d=[1,19],p=[1,25],P=[1,26],g=[1,18],f=[1,33],m=[1,34],y=[1,35],v=[1,36],x=[1,37],B=[6,8,10,13,15,17,20,21,22,24,26,28,33,34,35,36,37,40,43,44,50,63,64,65,66,67],b=[1,42],w=[1,43],k=[1,52],T=[40,50,68,69],E=[1,63],C=[1,61],S=[1,58],_=[1,62],A=[1,64],L=[6,8,10,13,17,22,24,26,28,33,34,35,36,37,40,41,42,43,44,48,49,50,63,64,65,66,67],$=[63,64,65,66,67],F=[1,81],z=[1,80],G=[1,78],U=[1,79],q=[6,10,42,47],N=[6,10,13,41,42,47,48,49],I=[1,89],R=[1,88],M=[1,87],D=[19,56],j=[1,98],Y=[1,97],O=[19,56,58,60],n={trace:mt(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,entityName:11,relSpec:12,COLON:13,role:14,STYLE_SEPARATOR:15,idList:16,BLOCK_START:17,attributes:18,BLOCK_STOP:19,SQS:20,SQE:21,title:22,title_value:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,direction:29,classDefStatement:30,classStatement:31,styleStatement:32,direction_tb:33,direction_bt:34,direction_rl:35,direction_lr:36,CLASSDEF:37,stylesOpt:38,separator:39,UNICODE_TEXT:40,STYLE_TEXT:41,COMMA:42,CLASS:43,STYLE:44,style:45,styleComponent:46,SEMI:47,NUM:48,BRKT:49,ENTITY_NAME:50,attribute:51,attributeType:52,attributeName:53,attributeKeyTypeList:54,attributeComment:55,ATTRIBUTE_WORD:56,attributeKeyType:57,",":58,ATTRIBUTE_KEY:59,COMMENT:60,cardinality:61,relType:62,ZERO_OR_ONE:63,ZERO_OR_MORE:64,ONE_OR_MORE:65,ONLY_ONE:66,MD_PARENT:67,NON_IDENTIFYING:68,IDENTIFYING:69,WORD:70,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",8:"SPACE",10:"NEWLINE",13:"COLON",15:"STYLE_SEPARATOR",17:"BLOCK_START",19:"BLOCK_STOP",20:"SQS",21:"SQE",22:"title",23:"title_value",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"direction_tb",34:"direction_bt",35:"direction_rl",36:"direction_lr",37:"CLASSDEF",40:"UNICODE_TEXT",41:"STYLE_TEXT",42:"COMMA",43:"CLASS",44:"STYLE",47:"SEMI",48:"NUM",49:"BRKT",50:"ENTITY_NAME",56:"ATTRIBUTE_WORD",58:",",59:"ATTRIBUTE_KEY",60:"COMMENT",63:"ZERO_OR_ONE",64:"ZERO_OR_MORE",65:"ONE_OR_MORE",66:"ONLY_ONE",67:"MD_PARENT",68:"NON_IDENTIFYING",69:"IDENTIFYING",70:"WORD"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,5],[9,9],[9,7],[9,7],[9,4],[9,6],[9,3],[9,5],[9,1],[9,3],[9,7],[9,9],[9,6],[9,8],[9,4],[9,6],[9,2],[9,2],[9,2],[9,1],[9,1],[9,1],[9,1],[9,1],[29,1],[29,1],[29,1],[29,1],[30,4],[16,1],[16,1],[16,3],[16,3],[31,3],[32,4],[38,1],[38,3],[45,1],[45,2],[39,1],[39,1],[39,1],[46,1],[46,1],[46,1],[46,1],[11,1],[11,1],[18,1],[18,2],[51,2],[51,3],[51,3],[51,4],[52,1],[53,1],[54,1],[54,3],[57,1],[55,1],[12,3],[61,1],[61,1],[61,1],[61,1],[61,1],[62,1],[62,1],[14,1],[14,1],[14,1]],performAction:mt(function(e,t,r,n,i,a,s){var o=a.length-1;switch(i){case 1:break;case 2:this.$=[];break;case 3:a[o-1].push(a[o]),this.$=a[o-1];break;case 4:case 5:this.$=a[o];break;case 6:case 7:this.$=[];break;case 8:n.addEntity(a[o-4]),n.addEntity(a[o-2]),n.addRelationship(a[o-4],a[o],a[o-2],a[o-3]);break;case 9:n.addEntity(a[o-8]),n.addEntity(a[o-4]),n.addRelationship(a[o-8],a[o],a[o-4],a[o-5]),n.setClass([a[o-8]],a[o-6]),n.setClass([a[o-4]],a[o-2]);break;case 10:n.addEntity(a[o-6]),n.addEntity(a[o-2]),n.addRelationship(a[o-6],a[o],a[o-2],a[o-3]),n.setClass([a[o-6]],a[o-4]);break;case 11:n.addEntity(a[o-6]),n.addEntity(a[o-4]),n.addRelationship(a[o-6],a[o],a[o-4],a[o-5]),n.setClass([a[o-4]],a[o-2]);break;case 12:n.addEntity(a[o-3]),n.addAttributes(a[o-3],a[o-1]);break;case 13:n.addEntity(a[o-5]),n.addAttributes(a[o-5],a[o-1]),n.setClass([a[o-5]],a[o-3]);break;case 14:n.addEntity(a[o-2]);break;case 15:n.addEntity(a[o-4]),n.setClass([a[o-4]],a[o-2]);break;case 16:n.addEntity(a[o]);break;case 17:n.addEntity(a[o-2]),n.setClass([a[o-2]],a[o]);break;case 18:n.addEntity(a[o-6],a[o-4]),n.addAttributes(a[o-6],a[o-1]);break;case 19:n.addEntity(a[o-8],a[o-6]),n.addAttributes(a[o-8],a[o-1]),n.setClass([a[o-8]],a[o-3]);break;case 20:n.addEntity(a[o-5],a[o-3]);break;case 21:n.addEntity(a[o-7],a[o-5]),n.setClass([a[o-7]],a[o-2]);break;case 22:n.addEntity(a[o-3],a[o-1]);break;case 23:n.addEntity(a[o-5],a[o-3]),n.setClass([a[o-5]],a[o]);break;case 24:case 25:this.$=a[o].trim(),n.setAccTitle(this.$);break;case 26:case 27:this.$=a[o].trim(),n.setAccDescription(this.$);break;case 32:n.setDirection("TB");break;case 33:n.setDirection("BT");break;case 34:n.setDirecti Line truncated
`+g.showPosition()+` `+g.showPosition()+`
Expecting `+A.join(", ")+", got '"+(this.terminals_[x]||x)+"'":"Parse error on line "+(c+1)+": Unexpected "+(x==d?"end of input":"'"+(this.terminals_[x]||x)+"'"),this.parseError(S,{text:g.match,token:this.terminals_[x]||x,line:g.yylineno,loc:m,expected:A})}if(k[0]instanceof Array&&1<k.length)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+x);switch(k[0]){case 1:n.push(x),a.push(g.yytext),s.push(g.yylloc),n.push(k[1]),x=null,b?(x=b,b=null):(h=g.yyleng,l=g.yytext,c=g.yylineno,m=g.yylloc,0<u&&u--);break;case 2:if(E=this.productions_[k[1]][1],_.$=a[a.length-E],_._$={first_line:s[s.length-(E||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(E||1)].first_column,last_column:s[s.length-1].last_column},y&&(_._$.range=[s[s.length-(E||1)].range[0],s[s.length-1].range[1]]),typeof(C=this.performAction.apply(_,[l,h,c,f.yy,k[1],a,s].concat(p)))<"u")return C;E&&(n=n.slice(0,-1*E*2),a=a.slice(0,-1*E),s=s.slice(0,-1*E)),n.push(this.productions_[k[1]][0]),a.push(_.$),s.push(_._$),C=o[n[n.length-2]][n[n.length-1]],n.push(C);break;case 3:return!0}}return!0},"parse")},i={EOF:1,parseError:mt(function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},"parseError"),setInput:mt(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:mt(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},"input"),unput:mt(function(e){var t=e.length,r=e.split(/(?:\r\n?|\n)/g),e=(this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t,this.match.split(/(?:\r\n?|\n)/g)),n=(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),r.length-1&&(this.yylineno-=r.length-1),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:r?(r.length===e.length?this.yylloc.first_column:0)+e[e.length-r.length].length-r[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[n[0],n[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},"unput"),more:mt(function(){return this._more=!0,this},"more"),reject:mt(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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). Expecting `+A.join(", ")+", got '"+(this.terminals_[x]||x)+"'":"Parse error on line "+(c+1)+": Unexpected "+(x==d?"end of input":"'"+(this.terminals_[x]||x)+"'"),this.parseError(_,{text:g.match,token:this.terminals_[x]||x,line:g.yylineno,loc:m,expected:A})}if(k[0]instanceof Array&&1<k.length)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+x);switch(k[0]){case 1:n.push(x),a.push(g.yytext),s.push(g.yylloc),n.push(k[1]),x=null,b?(x=b,b=null):(h=g.yyleng,l=g.yytext,c=g.yylineno,m=g.yylloc,0<u&&u--);break;case 2:if(E=this.productions_[k[1]][1],S.$=a[a.length-E],S._$={first_line:s[s.length-(E||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(E||1)].first_column,last_column:s[s.length-1].last_column},y&&(S._$.range=[s[s.length-(E||1)].range[0],s[s.length-1].range[1]]),typeof(C=this.performAction.apply(S,[l,h,c,f.yy,k[1],a,s].concat(p)))<"u")return C;E&&(n=n.slice(0,-1*E*2),a=a.slice(0,-1*E),s=s.slice(0,-1*E)),n.push(this.productions_[k[1]][0]),a.push(S.$),s.push(S._$),C=o[n[n.length-2]][n[n.length-1]],n.push(C);break;case 3:return!0}}return!0},"parse")},i={EOF:1,parseError:mt(function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},"parseError"),setInput:mt(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:mt(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},"input"),unput:mt(function(e){var t=e.length,r=e.split(/(?:\r\n?|\n)/g),e=(this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t,this.match.split(/(?:\r\n?|\n)/g)),n=(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),r.length-1&&(this.yylineno-=r.length-1),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:r?(r.length===e.length?this.yylloc.first_column:0)+e[e.length-r.length].length-r[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[n[0],n[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},"unput"),more:mt(function(){return this._more=!0,this},"more"),reject:mt(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:mt(function(e){this.unput(this.match.slice(e))},"less"),pastInput:mt(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(20<e.length?"...":"")+e.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:mt(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(20<e.length?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:mt(function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+` `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:mt(function(e){this.unput(this.match.slice(e))},"less"),pastInput:mt(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(20<e.length?"...":"")+e.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:mt(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(20<e.length?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:mt(function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+`
`+t+"^"},"showPosition"),test_match:mt(function(e,t){var r,n;if(this.options.backtrack_lexer&&(n={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)&&(n.yylloc.range=this.yylloc.range.slice(0)),(r=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],r=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),r)return r;if(this._backtrack)for(var i in n)this[i]=n[i];return!1},"test_match"),next:mt(function(){if(this.done)return this.EOF;var e,t,r,n;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;a<i.length;a++)if((r=this._input.match(this.rules[i[a]]))&&(!t||r[0].length>t[0].length)){if(t=r,n=a,this.options.backtrack_lexer){if(!1!==(e=this.test_match(r,i[a])))return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,i[n]))&&e:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. `+t+"^"},"showPosition"),test_match:mt(function(e,t){var r,n;if(this.options.backtrack_lexer&&(n={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)&&(n.yylloc.range=this.yylloc.range.slice(0)),(r=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],r=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),r)return r;if(this._backtrack)for(var i in n)this[i]=n[i];return!1},"test_match"),next:mt(function(){if(this.done)return this.EOF;var e,t,r,n;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;a<i.length;a++)if((r=this._input.match(this.rules[i[a]]))&&(!t||r[0].length>t[0].length)){if(t=r,n=a,this.options.backtrack_lexer){if(!1!==(e=this.test_match(r,i[a])))return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,i[n]))&&e:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:mt(function(){return this.next()||this.lex()},"lex"),begin:mt(function(e){this.conditionStack.push(e)},"begin"),popState:mt(function(){return 0<this.conditionStack.length-1?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:mt(function(){return(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]]:this.conditions.INITIAL).rules},"_currentRules"),topState:mt(function(e){return 0<=(e=this.conditionStack.length-1-Math.abs(e||0))?this.conditionStack[e]:"INITIAL"},"topState"),pushState:mt(function(e){this.begin(e)},"pushState"),stateStackSize:mt(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:mt(function(e,t,r,n){switch(r){case 0:return this.begin("acc_title"),24;case 1:return this.popState(),"acc_title_value";case 2:return this.begin("acc_descr"),26;case 3:return this.popState(),"acc_descr_value";case 4:this.begin("acc_descr_multiline");break;case 5:this.popState();break;case 6:return"acc_descr_multiline_value";case 7:return 33;case 8:return 34;case 9:return 35;case 10:return 36;case 11:return 10;case 12:break;case 13:return 8;case 14:return 50;case 15:return 70;case 16:return 4;case 17:return this.begin("block"),17;case 18:case 19:return 49;case 20:return 42;case 21:return 15;case 22:return 13;case 23:break;case 24:return 59;case 25:case 26:return 56;case 27:return 60;case 28:break;case 29:return this.popState(),19;case 30:return t.yytext[0];case 31:return 20;case 32:return 21;case 33:return this.begin("style"),44;case 34:return this.popState(),10;case 35:break;case 36:return 13;case 37:return 42;case 38:return 49;case 39:return this.begin("style"),37;case 40:return 43;case 41:return 63;case 42:case 43:case 44:return 65;case 45:case 46:return 63;case 47:case 48:case 49:case 50:case 51:return 64;case 52:return 65;case 53:return 64;case 54:return 65;case 55:case 56:case 57:case 58:return 66;case 59:return 63;case 60:return 64;case 61:return 65;case 62:return 67;case 63:return 68;case 64:case 65:return 69;case 66:case 67:case 68:return 68;case 69:return 41;case 70:return 47;case 71:return 40;case 72:return 48;case 73:return t.yytext[0];case 74:return 6}},"anonymous"),rules:[/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:[\s]+)/i,/^(?:"[^"%\r\n\v\b\\]+")/i,/^(?:"[^"]*")/i,/^(?:erDiagram\b)/i,/^(?:\{)/i,/^(?:#)/i,/^(?:#)/i,/^(?:,)/i,/^(?::::)/i,/^(?::)/i,/^(?:\s+)/i,/^(?:\b((?:PK)|(?:FK)|(?:UK))\b)/i,/^(?:([^\s]*)[~].*[~]([^\s]*))/i,/^(?:([\*A-Za-z_\u00C0-\uFFFF][A-Za-z0-9\-\_\[\]\(\)\u00C0-\uFFFF\*]*))/i,/^(?:"[^"]*")/i,/^(?:[\n]+)/i,/^(?:\})/i,/^(?:.)/i,/^(?:\[)/i,/^(?:\])/i,/^(?:style\b)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?::)/i,/^(?:,)/i,/^(?:#)/i,/^(?:classDef\b)/i,/^(?:class\b)/i,/^(?:one or zero\b)/i,/^(?:one or more\b)/i,/^(?:one or many\b)/i,/^(?:1\+)/i,/^(?:\|o\b)/i,/^(?:zero or one\b)/i,/^(?:zero or more\b)/i,/^(?:zero or many\b)/i,/^(?:0\+)/i,/^(?:\}o\b)/i,/^(?:many\(0\))/i,/^(?:many\(1\))/i,/^(?:many\b)/i,/^(?:\}\|)/i,/^(?:one\b)/i,/^(?:only one\b)/i,/^(?:1\b)/i,/^(?:\|\|)/i,/^(?:o\|)/i,/^(?:o\{)/i,/^(?:\|\{)/i,/^(?:\s*u\b)/i,/^(?:\.\.)/i,/^(?:--)/i,/^(?:to\b)/i,/^(?:optionally to\b)/i,/^(?:\.-)/i,/^(?:-\.)/i,/^(?:([^\x00-\x7F]|\w|-|\*)+)/i,/^(?:;)/i,/^(?:([^\x00-\x7F]|\w|-|\*)+)/i,/^(?:[0-9])/i,/^(?:.)/i,/^(?:$)/i],conditions:{style:{rules:[34,35,36,37,38,69,70],inclusive:!1},acc_descr_multiline:{rules:[5,6],inclusive:!1},acc_descr:{rules:[3],inclusive:!1},acc_title:{rules:[1],inclusive:!1},block:{rules:[23,24,25,26,27,28,29,30],inclusive:!1},INITIAL:{rules:[0,2,4,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,31,32,33,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,71,72,73,74],inclusive:!0}}};n.lexer=i,mt(e,"Parser"),(oue=new((e.prototype=n).Parser=e)).parser=oue,lue=oue}),due=b(()=>{e(),Tu(),ku(),i_(),cue=class{constructor(){this.entities=new Map,this.relationships=[],this.classes=new Map,this.direction="TB",this.Cardinality={ZERO_OR_ONE:"ZERO_OR_ONE",ZERO_OR_MORE:"ZERO_OR_MORE",ONE_OR_MORE:"ONE_OR_MORE",ONLY_ONE:"ONLY_ONE",MD_PARENT:"MD_PARENT"},this.Identification={NON_IDENTIFYING:"NON_IDENTIFYING",IDENTIFYING:"IDENTIFYING"},this.setAccTitle=mh,this.getAccTitle=yh,this.setAccDescription=vh,this.getAccDescription=xh,this.setDiagramTitle=bh,this.getDiagramTitle=wh,this.getConfig=mt(()=>O().er,"getConfig"),this.clear(),this.addEntity=this.addEntity.bind(this),this.addAttributes=this.addAttributes.bind(this),this.addRelationship=this.addRelationship.bind(this),this.setDirection=this.setDirection.bind(this),this.addCssStyles=this.addCssStyles.bind(this),this.addCl Line truncated `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:mt(function(){return this.next()||this.lex()},"lex"),begin:mt(function(e){this.conditionStack.push(e)},"begin"),popState:mt(function(){return 0<this.conditionStack.length-1?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:mt(function(){return(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]]:this.conditions.INITIAL).rules},"_currentRules"),topState:mt(function(e){return 0<=(e=this.conditionStack.length-1-Math.abs(e||0))?this.conditionStack[e]:"INITIAL"},"topState"),pushState:mt(function(e){this.begin(e)},"pushState"),stateStackSize:mt(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:mt(function(e,t,r,n){switch(r){case 0:return this.begin("acc_title"),24;case 1:return this.popState(),"acc_title_value";case 2:return this.begin("acc_descr"),26;case 3:return this.popState(),"acc_descr_value";case 4:this.begin("acc_descr_multiline");break;case 5:this.popState();break;case 6:return"acc_descr_multiline_value";case 7:return 33;case 8:return 34;case 9:return 35;case 10:return 36;case 11:return 10;case 12:break;case 13:return 8;case 14:return 50;case 15:return 70;case 16:return 4;case 17:return this.begin("block"),17;case 18:case 19:return 49;case 20:return 42;case 21:return 15;case 22:return 13;case 23:break;case 24:return 59;case 25:case 26:return 56;case 27:return 60;case 28:break;case 29:return this.popState(),19;case 30:return t.yytext[0];case 31:return 20;case 32:return 21;case 33:return this.begin("style"),44;case 34:return this.popState(),10;case 35:break;case 36:return 13;case 37:return 42;case 38:return 49;case 39:return this.begin("style"),37;case 40:return 43;case 41:return 63;case 42:case 43:case 44:return 65;case 45:case 46:return 63;case 47:case 48:case 49:case 50:case 51:return 64;case 52:return 65;case 53:return 64;case 54:return 65;case 55:case 56:case 57:case 58:return 66;case 59:return 63;case 60:return 64;case 61:return 65;case 62:return 67;case 63:return 68;case 64:case 65:return 69;case 66:case 67:case 68:return 68;case 69:return 41;case 70:return 47;case 71:return 40;case 72:return 48;case 73:return t.yytext[0];case 74:return 6}},"anonymous"),rules:[/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:[\s]+)/i,/^(?:"[^"%\r\n\v\b\\]+")/i,/^(?:"[^"]*")/i,/^(?:erDiagram\b)/i,/^(?:\{)/i,/^(?:#)/i,/^(?:#)/i,/^(?:,)/i,/^(?::::)/i,/^(?::)/i,/^(?:\s+)/i,/^(?:\b((?:PK)|(?:FK)|(?:UK))\b)/i,/^(?:([^\s]*)[~].*[~]([^\s]*))/i,/^(?:([\*A-Za-z_\u00C0-\uFFFF][A-Za-z0-9\-\_\[\]\(\)\u00C0-\uFFFF\*]*))/i,/^(?:"[^"]*")/i,/^(?:[\n]+)/i,/^(?:\})/i,/^(?:.)/i,/^(?:\[)/i,/^(?:\])/i,/^(?:style\b)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?::)/i,/^(?:,)/i,/^(?:#)/i,/^(?:classDef\b)/i,/^(?:class\b)/i,/^(?:one or zero\b)/i,/^(?:one or more\b)/i,/^(?:one or many\b)/i,/^(?:1\+)/i,/^(?:\|o\b)/i,/^(?:zero or one\b)/i,/^(?:zero or more\b)/i,/^(?:zero or many\b)/i,/^(?:0\+)/i,/^(?:\}o\b)/i,/^(?:many\(0\))/i,/^(?:many\(1\))/i,/^(?:many\b)/i,/^(?:\}\|)/i,/^(?:one\b)/i,/^(?:only one\b)/i,/^(?:1\b)/i,/^(?:\|\|)/i,/^(?:o\|)/i,/^(?:o\{)/i,/^(?:\|\{)/i,/^(?:\s*u\b)/i,/^(?:\.\.)/i,/^(?:--)/i,/^(?:to\b)/i,/^(?:optionally to\b)/i,/^(?:\.-)/i,/^(?:-\.)/i,/^(?:([^\x00-\x7F]|\w|-|\*)+)/i,/^(?:;)/i,/^(?:([^\x00-\x7F]|\w|-|\*)+)/i,/^(?:[0-9])/i,/^(?:.)/i,/^(?:$)/i],conditions:{style:{rules:[34,35,36,37,38,69,70],inclusive:!1},acc_descr_multiline:{rules:[5,6],inclusive:!1},acc_descr:{rules:[3],inclusive:!1},acc_title:{rules:[1],inclusive:!1},block:{rules:[23,24,25,26,27,28,29,30],inclusive:!1},INITIAL:{rules:[0,2,4,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,31,32,33,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,71,72,73,74],inclusive:!0}}};n.lexer=i,mt(e,"Parser"),(oue=new((e.prototype=n).Parser=e)).parser=oue,lue=oue}),due=b(()=>{e(),Tu(),ku(),iS(),cue=class{constructor(){this.entities=new Map,this.relationships=[],this.classes=new Map,this.direction="TB",this.Cardinality={ZERO_OR_ONE:"ZERO_OR_ONE",ZERO_OR_MORE:"ZERO_OR_MORE",ONE_OR_MORE:"ONE_OR_MORE",ONLY_ONE:"ONLY_ONE",MD_PARENT:"MD_PARENT"},this.Identification={NON_IDENTIFYING:"NON_IDENTIFYING",IDENTIFYING:"IDENTIFYING"},this.setAccTitle=mh,this.getAccTitle=yh,this.setAccDescription=vh,this.getAccDescription=xh,this.setDiagramTitle=bh,this.getDiagramTitle=wh,this.getConfig=mt(()=>O().er,"getConfig"),this.clear(),this.addEntity=this.addEntity.bind(this),this.addAttributes=this.addAttributes.bind(this),this.addRelationship=this.addRelationship.bind(this),this.setDirection=this.setDirection.bind(this),this.addCssStyles=this.addCssStyles.bind(this),this.addCl Line truncated
.entityBox { .entityBox {
fill: ${e.mainBkg}; fill: ${e.mainBkg};
stroke: ${e.nodeBorder}; stroke: ${e.nodeBorder};
@@ -1060,18 +1060,18 @@ Expecting `+A.join(", ")+", got '"+(this.terminals_[x]||x)+"'":"Parse error on l
stroke: ${e.lineColor} !important; stroke: ${e.lineColor} !important;
stroke-width: 1; stroke-width: 1;
} }
`,"getStyles"),yue=mue}),bue={};OFe(bue,{diagram:()=>wue});var wue,kue=b(()=>{uue(),due(),vue(),xue(),wue={parser:lue,get db(){return new cue},renderer:pue,styles:yue}});function Tue(e){return"object"==typeof e&&null!==e&&"string"==typeof e.$type}function Eue(e){return"object"==typeof e&&null!==e&&"string"==typeof e.$refText}function Cue(e){return"object"==typeof e&&null!==e&&"string"==typeof e.name&&"string"==typeof e.type&&"string"==typeof e.path}function _ue(e){return"object"==typeof e&&null!==e&&Tue(e.container)&&Eue(e.reference)&&"string"==typeof e.message}function Sue(e){return"object"==typeof e&&null!==e&&Array.isArray(e.content)}function Aue(e){return"object"==typeof e&&null!==e&&"object"==typeof e.tokenType}function Lue(e){return Sue(e)&&"string"==typeof e.fullText}var Nue,Iue=b(()=>{mt(Tue,"isAstNode"),mt(Eue,"isReference"),mt(Cue,"isAstNodeDescription"),mt(_ue,"isLinkingError"),Nue=class{static{mt(this,"AbstractAstReflection")}constructor(){this.subtypes={},this.allSubtypes={}}isInstance(e,t){return Tue(e)&&this.isSubtype(e.$type,t)}isSubtype(e,t){var r,n;return e===t||(void 0!==(n=(r=(r=this.subtypes[e])||(this.subtypes[e]={}))[t])?n:(n=this.computeIsSubtype(e,t),r[t]=n))}getAllSubTypes(e){var t=this.allSubtypes[e];if(t)return t;var r,n=[];for(r of this.getAllTypes())this.isSubtype(r,e)&&n.push(r);return this.allSubtypes[e]=n}},mt(Sue,"isCompositeCstNode"),mt(Aue,"isLeafCstNode"),mt(Lue,"isRootCstNode")});function Rue(e){return"string"==typeof e?e:"u"<typeof e?"undefined":"function"==typeof e.toString?e.toString():Object.prototype.toString.call(e)}function Mue(e){return!!e&&"function"==typeof e[Symbol.iterator]}function Due(...r){if(1===r.length){let t=r[0];if(t instanceof Oue)return t;if(Mue(t))return new Oue(()=>t[Symbol.iterator](),e=>e.next());if("number"==typeof t.length)return new Oue(()=>({index:0}),e=>e.index<t.length?{done:!1,value:t[e.index++]}:Bue)}return 1<r.length?new Oue(()=>({collIndex:0,arrIndex:0}),e=>{do{if(e.iterator){var t=e.iterator.next();if(!t.done)return t;e.iterator=void 0}if(e.array){if(e.arrIndex<e.array.length)return{done:!1,value:e.array[e.arrIndex++]};e.array=void 0,e.arrIndex=0}}while(e.collIndex<r.length&&(Mue(t=r[e.collIndex++])?e.iterator=t[Symbol.iterator]():t&&"number"==typeof t.length&&(e.array=t)),e.iterator||e.array||e.collIndex<r.length);return Bue}):Pue}var Oue,Pue,Bue,$ue,Fue,zue=b(()=>{function e(e){return e.reduce((e,t)=>e+t,0)}function t(e){return e.reduce((e,t)=>e*t,0)}function r(e){return e.reduce((e,t)=>Math.min(e,t))}function n(e){return e.reduce((e,t)=>Math.max(e,t))}var i;Oue=class a{static{mt(this,"StreamImpl")}constructor(e,t){this.startFn=e,this.nextFn=t}iterator(){let e={state:this.startFn(),next:mt(()=>this.nextFn(e.state),"next"),[Symbol.iterator]:()=>e};return e}[Symbol.iterator](){return this.iterator()}isEmpty(){return!!this.iterator().next().done}count(){let e=this.iterator(),t=0,r=e.next();for(;!r.done;)t++,r=e.next();return t}toArray(){for(var e,t=[],r=this.iterator();void 0!==(e=r.next()).value&&t.push(e.value),!e.done;);return t}toSet(){return new Set(this)}toMap(t,r){var e=this.map(e=>[t?t(e):e,r?r(e):e]);return new Map(e)}toString(){return this.join()}concat(e){return new a(()=>({first:this.startFn(),firstDone:!1,iterator:e[Symbol.iterator]()}),e=>{let t;if(!e.firstDone){do{if(!(t=this.nextFn(e.first)).done)return t}while(!t.done);e.firstDone=!0}do{if(!(t=e.iterator.next()).done)return t}while(!t.done);return Bue})}join(e=","){let t=this.iterator(),r="",n,i=!1;for(;(n=t.next()).done||(i&&(r+=e),r+=Rue(n.value)),i=!0,!n.done;);return r}indexOf(e,t=0){let r=this.iterator(),n=0,i=r.next();for(;!i.done;){if(n>=t&&i.value===e)return n;i=r.next(),n++}return-1}every(e){let t=this.iterator(),r=t.next();for(;!r.done;){if(!e(r.value))return!1;r=t.next()}return!0}some(e){let t=this.iterator(),r=t.next();for(;!r.done;){if(e(r.value))return!0;r=t.next()}return!1}forEach(e){let t=this.iterator(),r=0,n=t.next();for(;!n.done;)e(n.value,r),n=t.next(),r++}map(r){return new a(this.startFn,e=>{var{done:e,value:t}=this.nextFn(e);return e?Bue:{done:!1,value:r(t)}})}filter(r){return new a(this.startFn,e=>{var t;do{if(!(t=this.nextFn(e)).done&&r(t.value))return t}while(!t.done);return Bue})}nonNullable(){return this.filter(e=>null!=e)}reduce(e,t){let r=this.iterator(),n=t,i=r.next();for(;!i.done;)n=void 0===n?i.value:e(n,i.value),i=r.next();return n}reduceRight(e,t){return this.recursiveReduce(this.iterator(),e,t)}recursiveReduce(e,t,r){var n=e.next();return n.done?r:void 0===(e=this.recursiveReduce(e,t,r))?n.value:t(e,n.value)}find(e){let t=this.iterator(),r=t.next();for(;!r.done;){if(e(r.value))return r.value;r=t.next()}}findIndex(e){let t=this.iterator(),r=0,n=t.next();for(;!n.done;){if(e(n.value))return r;n=t.next(),r++}return-1}includes(e){let t=this.iterator(),r=t.next();for(;!r.done;){if(r.value===e)return!0;r=t.next()}return!1}flatMap(n){return new a(()=>({this:this.startFn()}),e=>{do{if(e.iterator){if(!(t=e.iterator.next()).done)return t;e.ite Line truncated `,"getStyles"),yue=mue}),bue={};PFe(bue,{diagram:()=>wue});var wue,kue=b(()=>{uue(),due(),vue(),xue(),wue={parser:lue,get db(){return new cue},renderer:pue,styles:yue}});function Tue(e){return"object"==typeof e&&null!==e&&"string"==typeof e.$type}function Eue(e){return"object"==typeof e&&null!==e&&"string"==typeof e.$refText}function Cue(e){return"object"==typeof e&&null!==e&&"string"==typeof e.name&&"string"==typeof e.type&&"string"==typeof e.path}function Sue(e){return"object"==typeof e&&null!==e&&Tue(e.container)&&Eue(e.reference)&&"string"==typeof e.message}function _ue(e){return"object"==typeof e&&null!==e&&Array.isArray(e.content)}function Aue(e){return"object"==typeof e&&null!==e&&"object"==typeof e.tokenType}function Lue(e){return _ue(e)&&"string"==typeof e.fullText}var Nue,Iue=b(()=>{mt(Tue,"isAstNode"),mt(Eue,"isReference"),mt(Cue,"isAstNodeDescription"),mt(Sue,"isLinkingError"),Nue=class{static{mt(this,"AbstractAstReflection")}constructor(){this.subtypes={},this.allSubtypes={}}isInstance(e,t){return Tue(e)&&this.isSubtype(e.$type,t)}isSubtype(e,t){var r,n;return e===t||(void 0!==(n=(r=(r=this.subtypes[e])||(this.subtypes[e]={}))[t])?n:(n=this.computeIsSubtype(e,t),r[t]=n))}getAllSubTypes(e){var t=this.allSubtypes[e];if(t)return t;var r,n=[];for(r of this.getAllTypes())this.isSubtype(r,e)&&n.push(r);return this.allSubtypes[e]=n}},mt(_ue,"isCompositeCstNode"),mt(Aue,"isLeafCstNode"),mt(Lue,"isRootCstNode")});function Rue(e){return"string"==typeof e?e:"u"<typeof e?"undefined":"function"==typeof e.toString?e.toString():Object.prototype.toString.call(e)}function Mue(e){return!!e&&"function"==typeof e[Symbol.iterator]}function Due(...r){if(1===r.length){let t=r[0];if(t instanceof Oue)return t;if(Mue(t))return new Oue(()=>t[Symbol.iterator](),e=>e.next());if("number"==typeof t.length)return new Oue(()=>({index:0}),e=>e.index<t.length?{done:!1,value:t[e.index++]}:Bue)}return 1<r.length?new Oue(()=>({collIndex:0,arrIndex:0}),e=>{do{if(e.iterator){var t=e.iterator.next();if(!t.done)return t;e.iterator=void 0}if(e.array){if(e.arrIndex<e.array.length)return{done:!1,value:e.array[e.arrIndex++]};e.array=void 0,e.arrIndex=0}}while(e.collIndex<r.length&&(Mue(t=r[e.collIndex++])?e.iterator=t[Symbol.iterator]():t&&"number"==typeof t.length&&(e.array=t)),e.iterator||e.array||e.collIndex<r.length);return Bue}):Pue}var Oue,Pue,Bue,$ue,Fue,zue=b(()=>{function e(e){return e.reduce((e,t)=>e+t,0)}function t(e){return e.reduce((e,t)=>e*t,0)}function r(e){return e.reduce((e,t)=>Math.min(e,t))}function n(e){return e.reduce((e,t)=>Math.max(e,t))}var i;Oue=class a{static{mt(this,"StreamImpl")}constructor(e,t){this.startFn=e,this.nextFn=t}iterator(){let e={state:this.startFn(),next:mt(()=>this.nextFn(e.state),"next"),[Symbol.iterator]:()=>e};return e}[Symbol.iterator](){return this.iterator()}isEmpty(){return!!this.iterator().next().done}count(){let e=this.iterator(),t=0,r=e.next();for(;!r.done;)t++,r=e.next();return t}toArray(){for(var e,t=[],r=this.iterator();void 0!==(e=r.next()).value&&t.push(e.value),!e.done;);return t}toSet(){return new Set(this)}toMap(t,r){var e=this.map(e=>[t?t(e):e,r?r(e):e]);return new Map(e)}toString(){return this.join()}concat(e){return new a(()=>({first:this.startFn(),firstDone:!1,iterator:e[Symbol.iterator]()}),e=>{let t;if(!e.firstDone){do{if(!(t=this.nextFn(e.first)).done)return t}while(!t.done);e.firstDone=!0}do{if(!(t=e.iterator.next()).done)return t}while(!t.done);return Bue})}join(e=","){let t=this.iterator(),r="",n,i=!1;for(;(n=t.next()).done||(i&&(r+=e),r+=Rue(n.value)),i=!0,!n.done;);return r}indexOf(e,t=0){let r=this.iterator(),n=0,i=r.next();for(;!i.done;){if(n>=t&&i.value===e)return n;i=r.next(),n++}return-1}every(e){let t=this.iterator(),r=t.next();for(;!r.done;){if(!e(r.value))return!1;r=t.next()}return!0}some(e){let t=this.iterator(),r=t.next();for(;!r.done;){if(e(r.value))return!0;r=t.next()}return!1}forEach(e){let t=this.iterator(),r=0,n=t.next();for(;!n.done;)e(n.value,r),n=t.next(),r++}map(r){return new a(this.startFn,e=>{var{done:e,value:t}=this.nextFn(e);return e?Bue:{done:!1,value:r(t)}})}filter(r){return new a(this.startFn,e=>{var t;do{if(!(t=this.nextFn(e)).done&&r(t.value))return t}while(!t.done);return Bue})}nonNullable(){return this.filter(e=>null!=e)}reduce(e,t){let r=this.iterator(),n=t,i=r.next();for(;!i.done;)n=void 0===n?i.value:e(n,i.value),i=r.next();return n}reduceRight(e,t){return this.recursiveReduce(this.iterator(),e,t)}recursiveReduce(e,t,r){var n=e.next();return n.done?r:void 0===(e=this.recursiveReduce(e,t,r))?n.value:t(e,n.value)}find(e){let t=this.iterator(),r=t.next();for(;!r.done;){if(e(r.value))return r.value;r=t.next()}}findIndex(e){let t=this.iterator(),r=0,n=t.next();for(;!n.done;){if(e(n.value))return r;n=t.next(),r++}return-1}includes(e){let t=this.iterator(),r=t.next();for(;!r.done;){if(r.value===e)return!0;r=t.next()}return!1}flatMap(n){return new a(()=>({this:this.startFn()}),e=>{do{if(e.iterator){if(!(t=e.iterator.next()).done)return t;e.ite Line truncated
`),b0e("\r"),b0e("\t"),b0e("\v"),b0e("\t"),b0e(" "),b0e(" "),b0e(" "),b0e(" "),b0e(" "),b0e(" "),b0e(" "),b0e(" "),b0e(" "),b0e(" "),b0e(" "),b0e(" "),b0e(" "),b0e("\u2028"),b0e("\u2029"),b0e(" "),b0e(" "),b0e(" "),b0e("\ufeff")]}),P0e=b(()=>{D0e(),O0e(),L0e=/[0-9a-fA-F]/,N0e=/[0-9]/,I0e=/[1-9]/,R0e=class{static{mt(this,"RegExpParser")}constructor(){this.idx=0,this.input="",this.groupIdx=0}saveState(){return{idx:this.idx,input:this.input,groupIdx:this.groupIdx}}restoreState(e){this.idx=e.idx,this.input=e.input,this.groupIdx=e.groupIdx}pattern(e){this.idx=0,this.input=e,this.groupIdx=0,this.consumeChar("/");for(var t=this.disjunction(),r=(this.consumeChar("/"),{type:"Flags",loc:{begin:this.idx,end:e.length},global:!1,ignoreCase:!1,multiLine:!1,unicode:!1,sticky:!1});this.isRegExpFlag();)switch(this.popChar()){case"g":k0e(r,"global");break;case"i":k0e(r,"ignoreCase");break;case"m":k0e(r,"multiLine");break;case"u":k0e(r,"unicode");break;case"y":k0e(r,"sticky")}if(this.idx!==this.input.length)throw Error("Redundant input: "+this.input.substring(this.idx));return{type:"Pattern",flags:r,value:t,loc:this.loc(0)}}disjunction(){var e=[],t=this.idx;for(e.push(this.alternative());"|"===this.peekChar();)this.consumeChar("|"),e.push(this.alternative());return{type:"Disjunction",value:e,loc:this.loc(t)}}alternative(){for(var e=[],t=this.idx;this.isTerm();)e.push(this.term());return{type:"Alternative",value:e,loc:this.loc(t)}}term(){return this.isAssertion()?this.assertion():this.atom()}assertion(){var t=this.idx;switch(this.popChar()){case"^":return{type:"StartAnchor",loc:this.loc(t)};case"$":return{type:"EndAnchor",loc:this.loc(t)};case"\\":switch(this.popChar()){case"b":return{type:"WordBoundary",loc:this.loc(t)};case"B":return{type:"NonWordBoundary",loc:this.loc(t)}}throw Error("Invalid Assertion Escape");case"(":this.consumeChar("?");let e;switch(this.popChar()){case"=":e="Lookahead";break;case"!":e="NegativeLookahead"}T0e(e);var r=this.disjunction();return this.consumeChar(")"),{type:e,value:r,loc:this.loc(t)}}return E0e()}quantifier(e=!1){let t,r=this.idx;switch(this.popChar()){case"*":t={atLeast:0,atMost:1/0};break;case"+":t={atLeast:1,atMost:1/0};break;case"?":t={atLeast:0,atMost:1};break;case"{":var n=this.integerIncludingZero();switch(this.popChar()){case"}":t={atLeast:n,atMost:n};break;case",":t=this.isDigit()?{atLeast:n,atMost:this.integerIncludingZero()}:{atLeast:n,atMost:1/0},this.consumeChar("}")}if(!0===e&&void 0===t)return;T0e(t)}if((!0!==e||void 0!==t)&&T0e(t))return"?"===this.peekChar(0)?(this.consumeChar("?"),t.greedy=!1):t.greedy=!0,t.type="Quantifier",t.loc=this.loc(r),t}atom(){let e,t=this.idx;switch(this.peekChar()){case".":e=this.dotAll();break;case"\\":e=this.atomEscape();break;case"[":e=this.characterClass();break;case"(":e=this.group()}return T0e(e=void 0===e&&this.isPatternCharacter()?this.patternCharacter():e)?(e.loc=this.loc(t),this.isQuantifier()&&(e.quantifier=this.quantifier()),e):E0e()}dotAll(){return this.consumeChar("."),{type:"Set",complement:!0,value:[b0e(` `),b0e("\r"),b0e("\t"),b0e("\v"),b0e("\t"),b0e(" "),b0e(" "),b0e(" "),b0e(" "),b0e(" "),b0e(" "),b0e(" "),b0e(" "),b0e(" "),b0e(" "),b0e(" "),b0e(" "),b0e(" "),b0e("\u2028"),b0e("\u2029"),b0e(" "),b0e(" "),b0e(" "),b0e("\ufeff")]}),P0e=b(()=>{D0e(),O0e(),L0e=/[0-9a-fA-F]/,N0e=/[0-9]/,I0e=/[1-9]/,R0e=class{static{mt(this,"RegExpParser")}constructor(){this.idx=0,this.input="",this.groupIdx=0}saveState(){return{idx:this.idx,input:this.input,groupIdx:this.groupIdx}}restoreState(e){this.idx=e.idx,this.input=e.input,this.groupIdx=e.groupIdx}pattern(e){this.idx=0,this.input=e,this.groupIdx=0,this.consumeChar("/");for(var t=this.disjunction(),r=(this.consumeChar("/"),{type:"Flags",loc:{begin:this.idx,end:e.length},global:!1,ignoreCase:!1,multiLine:!1,unicode:!1,sticky:!1});this.isRegExpFlag();)switch(this.popChar()){case"g":k0e(r,"global");break;case"i":k0e(r,"ignoreCase");break;case"m":k0e(r,"multiLine");break;case"u":k0e(r,"unicode");break;case"y":k0e(r,"sticky")}if(this.idx!==this.input.length)throw Error("Redundant input: "+this.input.substring(this.idx));return{type:"Pattern",flags:r,value:t,loc:this.loc(0)}}disjunction(){var e=[],t=this.idx;for(e.push(this.alternative());"|"===this.peekChar();)this.consumeChar("|"),e.push(this.alternative());return{type:"Disjunction",value:e,loc:this.loc(t)}}alternative(){for(var e=[],t=this.idx;this.isTerm();)e.push(this.term());return{type:"Alternative",value:e,loc:this.loc(t)}}term(){return this.isAssertion()?this.assertion():this.atom()}assertion(){var t=this.idx;switch(this.popChar()){case"^":return{type:"StartAnchor",loc:this.loc(t)};case"$":return{type:"EndAnchor",loc:this.loc(t)};case"\\":switch(this.popChar()){case"b":return{type:"WordBoundary",loc:this.loc(t)};case"B":return{type:"NonWordBoundary",loc:this.loc(t)}}throw Error("Invalid Assertion Escape");case"(":this.consumeChar("?");let e;switch(this.popChar()){case"=":e="Lookahead";break;case"!":e="NegativeLookahead"}T0e(e);var r=this.disjunction();return this.consumeChar(")"),{type:e,value:r,loc:this.loc(t)}}return E0e()}quantifier(e=!1){let t,r=this.idx;switch(this.popChar()){case"*":t={atLeast:0,atMost:1/0};break;case"+":t={atLeast:1,atMost:1/0};break;case"?":t={atLeast:0,atMost:1};break;case"{":var n=this.integerIncludingZero();switch(this.popChar()){case"}":t={atLeast:n,atMost:n};break;case",":t=this.isDigit()?{atLeast:n,atMost:this.integerIncludingZero()}:{atLeast:n,atMost:1/0},this.consumeChar("}")}if(!0===e&&void 0===t)return;T0e(t)}if((!0!==e||void 0!==t)&&T0e(t))return"?"===this.peekChar(0)?(this.consumeChar("?"),t.greedy=!1):t.greedy=!0,t.type="Quantifier",t.loc=this.loc(r),t}atom(){let e,t=this.idx;switch(this.peekChar()){case".":e=this.dotAll();break;case"\\":e=this.atomEscape();break;case"[":e=this.characterClass();break;case"(":e=this.group()}return T0e(e=void 0===e&&this.isPatternCharacter()?this.patternCharacter():e)?(e.loc=this.loc(t),this.isQuantifier()&&(e.quantifier=this.quantifier()),e):E0e()}dotAll(){return this.consumeChar("."),{type:"Set",complement:!0,value:[b0e(`
`),b0e("\r"),b0e("\u2028"),b0e("\u2029")]}}atomEscape(){switch(this.consumeChar("\\"),this.peekChar()){case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":return this.decimalEscapeAtom();case"d":case"D":case"s":case"S":case"w":case"W":return this.characterClassEscape();case"f":case"n":case"r":case"t":case"v":return this.controlEscapeAtom();case"c":return this.controlLetterEscapeAtom();case"0":return this.nulCharacterAtom();case"x":return this.hexEscapeSequenceAtom();case"u":return this.regExpUnicodeEscapeSequenceAtom();default:return this.identityEscapeAtom()}}decimalEscapeAtom(){return{type:"GroupBackReference",value:this.positiveInteger()}}characterClassEscape(){let e,t=!1;switch(this.popChar()){case"d":e=_0e;break;case"D":e=_0e,t=!0;break;case"s":e=A0e;break;case"S":e=A0e,t=!0;break;case"w":e=S0e;break;case"W":e=S0e,t=!0}return T0e(e)?{type:"Set",value:e,complement:t}:E0e()}controlEscapeAtom(){let e;switch(this.popChar()){case"f":e=b0e("\f");break;case"n":e=b0e(` `),b0e("\r"),b0e("\u2028"),b0e("\u2029")]}}atomEscape(){switch(this.consumeChar("\\"),this.peekChar()){case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":return this.decimalEscapeAtom();case"d":case"D":case"s":case"S":case"w":case"W":return this.characterClassEscape();case"f":case"n":case"r":case"t":case"v":return this.controlEscapeAtom();case"c":return this.controlLetterEscapeAtom();case"0":return this.nulCharacterAtom();case"x":return this.hexEscapeSequenceAtom();case"u":return this.regExpUnicodeEscapeSequenceAtom();default:return this.identityEscapeAtom()}}decimalEscapeAtom(){return{type:"GroupBackReference",value:this.positiveInteger()}}characterClassEscape(){let e,t=!1;switch(this.popChar()){case"d":e=S0e;break;case"D":e=S0e,t=!0;break;case"s":e=A0e;break;case"S":e=A0e,t=!0;break;case"w":e=_0e;break;case"W":e=_0e,t=!0}return T0e(e)?{type:"Set",value:e,complement:t}:E0e()}controlEscapeAtom(){let e;switch(this.popChar()){case"f":e=b0e("\f");break;case"n":e=b0e(`
`);break;case"r":e=b0e("\r");break;case"t":e=b0e("\t");break;case"v":e=b0e("\v")}return T0e(e)?{type:"Character",value:e}:E0e()}controlLetterEscapeAtom(){this.consumeChar("c");var e=this.popChar();if(!1===/[a-zA-Z]/.test(e))throw Error("Invalid ");return{type:"Character",value:e.toUpperCase().charCodeAt(0)-64}}nulCharacterAtom(){return this.consumeChar("0"),{type:"Character",value:b0e("\0")}}hexEscapeSequenceAtom(){return this.consumeChar("x"),this.parseHexDigits(2)}regExpUnicodeEscapeSequenceAtom(){return this.consumeChar("u"),this.parseHexDigits(4)}identityEscapeAtom(){return{type:"Character",value:b0e(this.popChar())}}classPatternCharacterAtom(){switch(this.peekChar()){case` `);break;case"r":e=b0e("\r");break;case"t":e=b0e("\t");break;case"v":e=b0e("\v")}return T0e(e)?{type:"Character",value:e}:E0e()}controlLetterEscapeAtom(){this.consumeChar("c");var e=this.popChar();if(!1===/[a-zA-Z]/.test(e))throw Error("Invalid ");return{type:"Character",value:e.toUpperCase().charCodeAt(0)-64}}nulCharacterAtom(){return this.consumeChar("0"),{type:"Character",value:b0e("\0")}}hexEscapeSequenceAtom(){return this.consumeChar("x"),this.parseHexDigits(2)}regExpUnicodeEscapeSequenceAtom(){return this.consumeChar("u"),this.parseHexDigits(4)}identityEscapeAtom(){return{type:"Character",value:b0e(this.popChar())}}classPatternCharacterAtom(){switch(this.peekChar()){case`
`:case"\r":case"\u2028":case"\u2029":case"\\":case"]":throw Error("TBD");default:return{type:"Character",value:b0e(this.popChar())}}}characterClass(){let e=[],t=!1;for(this.consumeChar("["),"^"===this.peekChar(0)&&(this.consumeChar("^"),t=!0);this.isClassAtom();){var r=this.classAtom();if(r.type,C0e(r)&&this.isRangeDash()){this.consumeChar("-");var n=this.classAtom();if(n.type,C0e(n)){if(n.value<r.value)throw Error("Range out of order in character class");e.push({from:r.value,to:n.value})}else w0e(r.value,e),e.push(b0e("-")),w0e(n.value,e)}else w0e(r.value,e)}return this.consumeChar("]"),{type:"Set",complement:t,value:e}}classAtom(){switch(this.peekChar()){case"]":case` `:case"\r":case"\u2028":case"\u2029":case"\\":case"]":throw Error("TBD");default:return{type:"Character",value:b0e(this.popChar())}}}characterClass(){let e=[],t=!1;for(this.consumeChar("["),"^"===this.peekChar(0)&&(this.consumeChar("^"),t=!0);this.isClassAtom();){var r=this.classAtom();if(r.type,C0e(r)&&this.isRangeDash()){this.consumeChar("-");var n=this.classAtom();if(n.type,C0e(n)){if(n.value<r.value)throw Error("Range out of order in character class");e.push({from:r.value,to:n.value})}else w0e(r.value,e),e.push(b0e("-")),w0e(n.value,e)}else w0e(r.value,e)}return this.consumeChar("]"),{type:"Set",complement:t,value:e}}classAtom(){switch(this.peekChar()){case"]":case`
`:case"\r":case"\u2028":case"\u2029":throw Error("TBD");case"\\":return this.classEscape();default:return this.classPatternCharacterAtom()}}classEscape(){switch(this.consumeChar("\\"),this.peekChar()){case"b":return this.consumeChar("b"),{type:"Character",value:b0e("\b")};case"d":case"D":case"s":case"S":case"w":case"W":return this.characterClassEscape();case"f":case"n":case"r":case"t":case"v":return this.controlEscapeAtom();case"c":return this.controlLetterEscapeAtom();case"0":return this.nulCharacterAtom();case"x":return this.hexEscapeSequenceAtom();case"u":return this.regExpUnicodeEscapeSequenceAtom();default:return this.identityEscapeAtom()}}group(){let e=!0;"?"===(this.consumeChar("("),this.peekChar(0))?(this.consumeChar("?"),this.consumeChar(":"),e=!1):this.groupIdx++;var t=this.disjunction(),t=(this.consumeChar(")"),{type:"Group",capturing:e,value:t});return e&&(t.idx=this.groupIdx),t}positiveInteger(){let e=this.popChar();if(!1===I0e.test(e))throw Error("Expecting a positive integer");for(;N0e.test(this.peekChar(0));)e+=this.popChar();return parseInt(e,10)}integerIncludingZero(){let e=this.popChar();if(!1===N0e.test(e))throw Error("Expecting an integer");for(;N0e.test(this.peekChar(0));)e+=this.popChar();return parseInt(e,10)}patternCharacter(){var e=this.popChar();switch(e){case` `:case"\r":case"\u2028":case"\u2029":throw Error("TBD");case"\\":return this.classEscape();default:return this.classPatternCharacterAtom()}}classEscape(){switch(this.consumeChar("\\"),this.peekChar()){case"b":return this.consumeChar("b"),{type:"Character",value:b0e("\b")};case"d":case"D":case"s":case"S":case"w":case"W":return this.characterClassEscape();case"f":case"n":case"r":case"t":case"v":return this.controlEscapeAtom();case"c":return this.controlLetterEscapeAtom();case"0":return this.nulCharacterAtom();case"x":return this.hexEscapeSequenceAtom();case"u":return this.regExpUnicodeEscapeSequenceAtom();default:return this.identityEscapeAtom()}}group(){let e=!0;"?"===(this.consumeChar("("),this.peekChar(0))?(this.consumeChar("?"),this.consumeChar(":"),e=!1):this.groupIdx++;var t=this.disjunction(),t=(this.consumeChar(")"),{type:"Group",capturing:e,value:t});return e&&(t.idx=this.groupIdx),t}positiveInteger(){let e=this.popChar();if(!1===I0e.test(e))throw Error("Expecting a positive integer");for(;N0e.test(this.peekChar(0));)e+=this.popChar();return parseInt(e,10)}integerIncludingZero(){let e=this.popChar();if(!1===N0e.test(e))throw Error("Expecting an integer");for(;N0e.test(this.peekChar(0));)e+=this.popChar();return parseInt(e,10)}patternCharacter(){var e=this.popChar();switch(e){case`
`:case"\r":case"\u2028":case"\u2029":case"^":case"$":case"\\":case".":case"*":case"+":case"?":case"(":case")":case"[":case"|":throw Error("TBD");default:return{type:"Character",value:b0e(e)}}}isRegExpFlag(){switch(this.peekChar(0)){case"g":case"i":case"m":case"u":case"y":return!0;default:return!1}}isRangeDash(){return"-"===this.peekChar()&&this.isClassAtom(1)}isDigit(){return N0e.test(this.peekChar(0))}isClassAtom(e=0){switch(this.peekChar(e)){case"]":case` `:case"\r":case"\u2028":case"\u2029":case"^":case"$":case"\\":case".":case"*":case"+":case"?":case"(":case")":case"[":case"|":throw Error("TBD");default:return{type:"Character",value:b0e(e)}}}isRegExpFlag(){switch(this.peekChar(0)){case"g":case"i":case"m":case"u":case"y":return!0;default:return!1}}isRangeDash(){return"-"===this.peekChar()&&this.isClassAtom(1)}isDigit(){return N0e.test(this.peekChar(0))}isClassAtom(e=0){switch(this.peekChar(e)){case"]":case`
`:case"\r":case"\u2028":case"\u2029":return!1;default:return!0}}isTerm(){return this.isAtom()||this.isAssertion()}isAtom(){if(this.isPatternCharacter())return!0;switch(this.peekChar(0)){case".":case"\\":case"[":case"(":return!0;default:return!1}}isAssertion(){switch(this.peekChar(0)){case"^":case"$":return!0;case"\\":switch(this.peekChar(1)){case"b":case"B":return!0;default:return!1}case"(":return"?"===this.peekChar(1)&&("="===this.peekChar(2)||"!"===this.peekChar(2));default:return!1}}isQuantifier(){var e=this.saveState();try{return void 0!==this.quantifier(!0)}catch{return!1}finally{this.restoreState(e)}}isPatternCharacter(){switch(this.peekChar()){case"^":case"$":case"\\":case".":case"*":case"+":case"?":case"(":case")":case"[":case"|":case"/":case` `:case"\r":case"\u2028":case"\u2029":return!1;default:return!0}}isTerm(){return this.isAtom()||this.isAssertion()}isAtom(){if(this.isPatternCharacter())return!0;switch(this.peekChar(0)){case".":case"\\":case"[":case"(":return!0;default:return!1}}isAssertion(){switch(this.peekChar(0)){case"^":case"$":return!0;case"\\":switch(this.peekChar(1)){case"b":case"B":return!0;default:return!1}case"(":return"?"===this.peekChar(1)&&("="===this.peekChar(2)||"!"===this.peekChar(2));default:return!1}}isQuantifier(){var e=this.saveState();try{return void 0!==this.quantifier(!0)}catch{return!1}finally{this.restoreState(e)}}isPatternCharacter(){switch(this.peekChar()){case"^":case"$":case"\\":case".":case"*":case"+":case"?":case"(":case")":case"[":case"|":case"/":case`
`:case"\r":case"\u2028":case"\u2029":return!1;default:return!0}}parseHexDigits(t){let r="";for(let e=0;e<t;e++){var n=this.popChar();if(!1===L0e.test(n))throw Error("Expecting a HexDecimal digits");r+=n}return{type:"Character",value:parseInt(r,16)}}peekChar(e=0){return this.input[this.idx+e]}popChar(){var e=this.peekChar(0);return this.consumeChar(void 0),e}consumeChar(e){if(void 0!==e&&this.input[this.idx]!==e)throw Error("Expected: '"+e+"' but found: '"+this.input[this.idx]+"' at offset: "+this.idx);if(this.idx>=this.input.length)throw Error("Unexpected end of input");this.idx++}loc(e){return{begin:e,end:this.idx}}}}),B0e=b(()=>{M0e=class{static{mt(this,"BaseRegExpVisitor")}visitChildren(e){for(var t in e){var r=e[t];e.hasOwnProperty(t)&&(void 0!==r.type?this.visit(r):Array.isArray(r)&&r.forEach(e=>{this.visit(e)},this))}}visit(e){switch(e.type){case"Pattern":this.visitPattern(e);break;case"Flags":this.visitFlags(e);break;case"Disjunction":this.visitDisjunction(e);break;case"Alternative":this.visitAlternative(e);break;case"StartAnchor":this.visitStartAnchor(e);break;case"EndAnchor":this.visitEndAnchor(e);break;case"WordBoundary":this.visitWordBoundary(e);break;case"NonWordBoundary":this.visitNonWordBoundary(e);break;case"Lookahead":this.visitLookahead(e);break;case"NegativeLookahead":this.visitNegativeLookahead(e);break;case"Character":this.visitCharacter(e);break;case"Set":this.visitSet(e);break;case"Group":this.visitGroup(e);break;case"GroupBackReference":this.visitGroupBackReference(e);break;case"Quantifier":this.visitQuantifier(e)}this.visitChildren(e)}visitPattern(e){}visitFlags(e){}visitDisjunction(e){}visitAlternative(e){}visitStartAnchor(e){}visitEndAnchor(e){}visitWordBoundary(e){}visitNonWordBoundary(e){}visitLookahead(e){}visitNegativeLookahead(e){}visitCharacter(e){}visitSet(e){}visitGroup(e){}visitGroupBackReference(e){}visitQuantifier(e){}}}),$0e=b(()=>{P0e(),B0e()}),F0e={};function z0e(e){try{e=`/${e="string"!=typeof e?e.source:e}/`;var t,r=V0e.pattern(e),n=[];for(t of r.value.value)K0e.reset(e),K0e.visit(t),n.push({start:K0e.startRegexp,end:K0e.endRegex});return n}catch{return[]}}function G0e(e){try{return e=(e="string"==typeof e?new RegExp(e):e).toString(),K0e.reset(e),K0e.visit(V0e.pattern(e)),K0e.multiline}catch{return!1}}function U0e(e){let t="string"==typeof e?new RegExp(e):e;return Z0e.some(e=>t.test(e))}function q0e(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function j0e(e){return Array.prototype.map.call(e,e=>/\w/.test(e)?`[${e.toLowerCase()}${e.toUpperCase()}]`:q0e(e)).join("")}function Y0e(e,t){return e=W0e(e),!!(t=t.match(e))&&0<t[0].length}function W0e(e){let i=e="string"==typeof e?new RegExp(e):e,a=e.source,s=0;function o(){let t="",e;function r(e){t+=a.substr(s,e),s+=e}function n(e){t+="(?:"+a.substr(s,e)+"|$)",s+=e}for(mt(r,"appendRaw"),mt(n,"appendOptional");s<a.length;)switch(a[s]){case"\\":switch(a[s+1]){case"c":n(3);break;case"x":n(4);break;case"u":i.unicode?"{"===a[s+2]?n(a.indexOf("}",s)-s+1):n(6):n(2);break;case"p":case"P":i.unicode?n(a.indexOf("}",s)-s+1):n(2);break;case"k":n(a.indexOf(">",s)-s+1);break;default:n(2)}break;case"[":(e=/\[(?:\\.|.)*?\]/g).lastIndex=s,n((e=e.exec(a)||[])[0].length);break;case"|":case"^":case"$":case"*":case"+":case"?":r(1);break;case"{":(e=/\{\d+,?\d*\}/g).lastIndex=s,(e=e.exec(a))?r(e[0].length):n(1);break;case"(":if("?"===a[s+1])switch(a[s+2]){case":":t+="(?:",s+=3,t+=o()+"|$)";break;case"=":t+="(?=",s+=3,t+=o()+")";break;case"!":e=s,s+=3,o(),t+=a.substr(e,s-e);break;case"<":switch(a[s+3]){case"=":case"!":e=s,s+=4,o(),t+=a.substr(e,s-e);break;default:r(a.indexOf(">",s)-s+1),t+=o()+"|$)"}}else r(1),t+=o()+"|$)";break;case")":return++s,t;default:n(1)}return t}return mt(o,"process"),new RegExp(o(),e.flags)}OFe(F0e,{NEWLINE_REGEXP:()=>H0e,escapeRegExp:()=>q0e,getCaseInsensitivePattern:()=>j0e,getTerminalParts:()=>z0e,isMultilineComment:()=>G0e,isWhitespace:()=>U0e,partialMatches:()=>Y0e,partialRegExp:()=>W0e,whitespaceCharacters:()=>Z0e});var H0e,V0e,X0e,K0e,Z0e,Q0e=b(()=>{$0e(),H0e=/\r?\n/gm,V0e=new R0e,X0e=class extends M0e{static{mt(this,"TerminalRegExpVisitor")}constructor(){super(...arguments),this.isStarting=!0,this.endRegexpStack=[],this.multiline=!1}get endRegex(){return this.endRegexpStack.join("")}reset(e){this.multiline=!1,this.regex=e,this.startRegexp="",this.isStarting=!0,this.endRegexpStack=[]}visitGroup(e){e.quantifier&&(this.isStarting=!1,this.endRegexpStack=[])}visitCharacter(e){var t=String.fromCharCode(e.value);this.multiline||t!==` `:case"\r":case"\u2028":case"\u2029":return!1;default:return!0}}parseHexDigits(t){let r="";for(let e=0;e<t;e++){var n=this.popChar();if(!1===L0e.test(n))throw Error("Expecting a HexDecimal digits");r+=n}return{type:"Character",value:parseInt(r,16)}}peekChar(e=0){return this.input[this.idx+e]}popChar(){var e=this.peekChar(0);return this.consumeChar(void 0),e}consumeChar(e){if(void 0!==e&&this.input[this.idx]!==e)throw Error("Expected: '"+e+"' but found: '"+this.input[this.idx]+"' at offset: "+this.idx);if(this.idx>=this.input.length)throw Error("Unexpected end of input");this.idx++}loc(e){return{begin:e,end:this.idx}}}}),B0e=b(()=>{M0e=class{static{mt(this,"BaseRegExpVisitor")}visitChildren(e){for(var t in e){var r=e[t];e.hasOwnProperty(t)&&(void 0!==r.type?this.visit(r):Array.isArray(r)&&r.forEach(e=>{this.visit(e)},this))}}visit(e){switch(e.type){case"Pattern":this.visitPattern(e);break;case"Flags":this.visitFlags(e);break;case"Disjunction":this.visitDisjunction(e);break;case"Alternative":this.visitAlternative(e);break;case"StartAnchor":this.visitStartAnchor(e);break;case"EndAnchor":this.visitEndAnchor(e);break;case"WordBoundary":this.visitWordBoundary(e);break;case"NonWordBoundary":this.visitNonWordBoundary(e);break;case"Lookahead":this.visitLookahead(e);break;case"NegativeLookahead":this.visitNegativeLookahead(e);break;case"Character":this.visitCharacter(e);break;case"Set":this.visitSet(e);break;case"Group":this.visitGroup(e);break;case"GroupBackReference":this.visitGroupBackReference(e);break;case"Quantifier":this.visitQuantifier(e)}this.visitChildren(e)}visitPattern(e){}visitFlags(e){}visitDisjunction(e){}visitAlternative(e){}visitStartAnchor(e){}visitEndAnchor(e){}visitWordBoundary(e){}visitNonWordBoundary(e){}visitLookahead(e){}visitNegativeLookahead(e){}visitCharacter(e){}visitSet(e){}visitGroup(e){}visitGroupBackReference(e){}visitQuantifier(e){}}}),$0e=b(()=>{P0e(),B0e()}),F0e={};function z0e(e){try{e=`/${e="string"!=typeof e?e.source:e}/`;var t,r=V0e.pattern(e),n=[];for(t of r.value.value)K0e.reset(e),K0e.visit(t),n.push({start:K0e.startRegexp,end:K0e.endRegex});return n}catch{return[]}}function G0e(e){try{return e=(e="string"==typeof e?new RegExp(e):e).toString(),K0e.reset(e),K0e.visit(V0e.pattern(e)),K0e.multiline}catch{return!1}}function U0e(e){let t="string"==typeof e?new RegExp(e):e;return Z0e.some(e=>t.test(e))}function q0e(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function j0e(e){return Array.prototype.map.call(e,e=>/\w/.test(e)?`[${e.toLowerCase()}${e.toUpperCase()}]`:q0e(e)).join("")}function Y0e(e,t){return e=W0e(e),!!(t=t.match(e))&&0<t[0].length}function W0e(e){let i=e="string"==typeof e?new RegExp(e):e,a=e.source,s=0;function o(){let t="",e;function r(e){t+=a.substr(s,e),s+=e}function n(e){t+="(?:"+a.substr(s,e)+"|$)",s+=e}for(mt(r,"appendRaw"),mt(n,"appendOptional");s<a.length;)switch(a[s]){case"\\":switch(a[s+1]){case"c":n(3);break;case"x":n(4);break;case"u":i.unicode?"{"===a[s+2]?n(a.indexOf("}",s)-s+1):n(6):n(2);break;case"p":case"P":i.unicode?n(a.indexOf("}",s)-s+1):n(2);break;case"k":n(a.indexOf(">",s)-s+1);break;default:n(2)}break;case"[":(e=/\[(?:\\.|.)*?\]/g).lastIndex=s,n((e=e.exec(a)||[])[0].length);break;case"|":case"^":case"$":case"*":case"+":case"?":r(1);break;case"{":(e=/\{\d+,?\d*\}/g).lastIndex=s,(e=e.exec(a))?r(e[0].length):n(1);break;case"(":if("?"===a[s+1])switch(a[s+2]){case":":t+="(?:",s+=3,t+=o()+"|$)";break;case"=":t+="(?=",s+=3,t+=o()+")";break;case"!":e=s,s+=3,o(),t+=a.substr(e,s-e);break;case"<":switch(a[s+3]){case"=":case"!":e=s,s+=4,o(),t+=a.substr(e,s-e);break;default:r(a.indexOf(">",s)-s+1),t+=o()+"|$)"}}else r(1),t+=o()+"|$)";break;case")":return++s,t;default:n(1)}return t}return mt(o,"process"),new RegExp(o(),e.flags)}PFe(F0e,{NEWLINE_REGEXP:()=>H0e,escapeRegExp:()=>q0e,getCaseInsensitivePattern:()=>j0e,getTerminalParts:()=>z0e,isMultilineComment:()=>G0e,isWhitespace:()=>U0e,partialMatches:()=>Y0e,partialRegExp:()=>W0e,whitespaceCharacters:()=>Z0e});var H0e,V0e,X0e,K0e,Z0e,Q0e=b(()=>{$0e(),H0e=/\r?\n/gm,V0e=new R0e,X0e=class extends M0e{static{mt(this,"TerminalRegExpVisitor")}constructor(){super(...arguments),this.isStarting=!0,this.endRegexpStack=[],this.multiline=!1}get endRegex(){return this.endRegexpStack.join("")}reset(e){this.multiline=!1,this.regex=e,this.startRegexp="",this.isStarting=!0,this.endRegexpStack=[]}visitGroup(e){e.quantifier&&(this.isStarting=!1,this.endRegexpStack=[])}visitCharacter(e){var t=String.fromCharCode(e.value);this.multiline||t!==`
`||(this.multiline=!0),e.quantifier?(this.isStarting=!1,this.endRegexpStack=[]):(e=q0e(t),this.endRegexpStack.push(e),this.isStarting&&(this.startRegexp+=e))}visitSet(e){var t;this.multiline||(t=this.regex.substring(e.loc.begin,e.loc.end),t=new RegExp(t),this.multiline=!!` `||(this.multiline=!0),e.quantifier?(this.isStarting=!1,this.endRegexpStack=[]):(e=q0e(t),this.endRegexpStack.push(e),this.isStarting&&(this.startRegexp+=e))}visitSet(e){var t;this.multiline||(t=this.regex.substring(e.loc.begin,e.loc.end),t=new RegExp(t),this.multiline=!!`
`.match(t)),e.quantifier?(this.isStarting=!1,this.endRegexpStack=[]):(t=this.regex.substring(e.loc.begin,e.loc.end),this.endRegexpStack.push(t),this.isStarting&&(this.startRegexp+=t))}visitChildren(e){"Group"===e.type&&e.quantifier||super.visitChildren(e)}},K0e=new X0e,mt(z0e,"getTerminalParts"),mt(G0e,"isMultilineComment"),Z0e=` `.match(t)),e.quantifier?(this.isStarting=!1,this.endRegexpStack=[]):(t=this.regex.substring(e.loc.begin,e.loc.end),this.endRegexpStack.push(t),this.isStarting&&(this.startRegexp+=t))}visitChildren(e){"Group"===e.type&&e.quantifier||super.visitChildren(e)}},K0e=new X0e,mt(z0e,"getTerminalParts"),mt(G0e,"isMultilineComment"),Z0e=`
\r              

   `.split(""),mt(U0e,"isWhitespace"),mt(q0e,"escapeRegExp"),mt(j0e,"getCaseInsensitivePattern"),mt(Y0e,"partialMatches"),mt(W0e,"partialRegExp")}),J0e={};function ege(e){return e.rules.find(e=>Pde(e)&&e.entry)}function tge(e){return e.rules.filter(e=>Gde(e)&&e.hidden)}function rge(e,t){var r,n=new Set,i=ege(e);if(!i)return new Set(e.rules);for(r of[i].concat(tge(e)))nge(r,n,t);var a,s=new Set;for(a of e.rules)(n.has(a.name)||Gde(a)&&a.hidden)&&s.add(a);return s}function nge(e,t,r){t.add(e.name),u0e(e).forEach(e=>{(tpe(e)||r&&ipe(e))&&(e=e.rule.ref)&&!t.has(e.name)&&nge(e,t,r)})}function ige(e){return e.terminal||(e.type.ref?pge(e.type.ref)?.terminal:void 0)}function age(e){return e.hidden&&!U0e(Age(e))}function sge(e,t){return e&&t?lge(e,t,e.astNode,!0):[]}function oge(e,t,r){return e&&t&&0!==(t=lge(e,t,e.astNode,!0)).length?t[r=void 0!==r?Math.max(0,Math.min(r,t.length-1)):0]:void 0}function lge(e,t,r,n){return!n&&(n=s0e(e.grammarSource,Hde))&&n.feature===t?[e]:Sue(e)&&e.astNode===r?e.content.flatMap(e=>lge(e,t,r,!1)):[]}function cge(e,t){return e?uge(e,t,e?.astNode):[]}function hge(e,t,r){return e&&0!==(t=uge(e,t,e?.astNode)).length?t[r=void 0!==r?Math.max(0,Math.min(r,t.length-1)):0]:void 0}function uge(e,t,r){if(e.astNode!==r)return[];if(Qde(e.grammarSource)&&e.grammarSource.value===t)return[e];for(var n,i,a=Uue(e).iterator(),s=[];(i=a.next()).done||((n=i.value).astNode===r?Qde(n.grammarSource)&&n.grammarSource.value===t&&s.push(n):a.prune()),!i.done;);return s}function dge(e){for(var t=e.astNode;t===(null==(r=e.container)?void 0:r.astNode);){var r=s0e(e.grammarSource,Hde);if(r)return r;e=e.container}}function pge(e){let t=e;return Lde(t)&&(Yde(t.$container)?t=t.$container.$container:Pde(t.$container)?t=t.$container:hde(t.$container)),gge(e,t,new Map)}function gge(n,e,i){var t,r;function a(e,t){let r;return s0e(e,Hde)||(r=gge(t,t,i)),i.set(n,r),r}if(mt(a,"go"),i.has(n))return i.get(n);i.set(n,void 0);for(r of u0e(e)){if(Hde(r)&&"name"===r.feature.toLowerCase())return i.set(n,r),r;if(tpe(r)&&Pde(r.rule.ref))return a(r,r.rule.ref);if(Fde(r)&&null!=(t=r.typeRef)&&t.ref)return a(r,r.typeRef.ref)}}function fge(t){var e=t.$container;if(Zde(e)){var r=e.elements;for(let e=r.indexOf(t)-1;0<=e;e--){var n=r[e];if(Yde(n))return n;if(n=u0e(r[e]).find(Yde))return n}}if(wde(e))return fge(e)}function mge(e,t){return"?"===e||"*"===e||Zde(t)&&!!t.guardCondition}function yge(e){return"*"===e||"+"===e}function vge(e){return"+="===e}function xge(e){return bge(e,new Set)}function bge(e,t){if(t.has(e))return!0;t.add(e);for(var r of u0e(e))if(tpe(r)){if(!r.rule.ref||Pde(r.rule.ref)&&!bge(r.rule.ref,t))return!1}else{if(Hde(r))return!1;if(Yde(r))return!1}return!!e.definition}function wge(e){return kge(e.type,new Set)}function kge(e,t){return!!t.has(e)||(t.add(e),!Tde(e)&&!Bde(e)&&(jde(e)?e.types.every(e=>kge(e,t)):!!Fde(e)&&(void 0!==e.primitiveType||void 0!==e.stringType||void 0!==e.typeRef&&!!Ude(e=e.typeRef.ref)&&kge(e.type,t))))}function Tge(e){return e.inferredType?e.inferredType.name:e.dataType||(e.returnType&&(e=e.returnType.ref)&&(Pde(e)||Nde(e)||Ude(e))?e.name:void 0)}function Ege(e){if(Pde(e))return xge(e)||null==(t=Tge(e))?e.name:t;if(Nde(e)||Ude(e)||$de(e))return e.name;if(Yde(e)){var t=Cge(e);if(t)return t}else if(Lde(e))return e.name;throw new Error("Cannot get name of Unknown Type")}function Cge(e){var t;return e.inferredType?e.inferredType.name:null!=(t=e.type)&&t.ref?Ege(e.type.ref):void 0}function _ge(e){var t;return Gde(e)?null!=(t=null==(t=e.type)?void 0:t.name)?t:"string":xge(e)||null==(t=Tge(e))?e.name:t}function Sge(e){var t;return Gde(e)?null!=(t=null==(t=e.type)?void 0:t.name)?t:"string":null!=(t=Tge(e))?t:e.name}function Age(e){var e=Lge(e.definition,t={s:!1,i:!1,u:!1}),t=Object.entries(t).filter(([,e])=>e).map(([e])=>e).join("");return new RegExp(e,t)}function Lge(e,t){if(rpe(e))return Nge(e);if(npe(e))return Ige(e);if(Vde(e))return Dge(e);if(ipe(e)){var r=e.rule.ref;if(r)return Pge(Lge(r.definition),{cardinality:e.cardinality,lookahead:e.lookahead});throw new Error("Missing rule reference.")}if(Jde(e))return Mge(e);if(spe(e))return Rge(e);var n;if(epe(e))return r=e.regex.lastIndexOf("/"),n=e.regex.substring(1,r),r=e.regex.substring(r+1),t&&(t.i=r.includes("i"),t.s=r.includes("s"),t.u=r.includes("u")),Pge(n,{cardinality:e.cardinality,lookahead:e.lookahead,wrap:!1});if(ope(e))return Pge(Bge,{cardinality:e.cardinality,lookahead:e.lookahead});throw new Error("Invalid terminal element: "+e?.$type)}function Nge(e){return Pge(e.elements.map(e=>Lge(e)).join("|"),{cardinality:e.cardinality,lookahead:e.lookahead})}function Ige(e){return Pge(e.elements.map(e=>Lge(e)).join(""),{cardinality:e.cardinality,lookahead:e.lookahead})}function Rge(e){return Pge(Bge+"*?"+Lge(e.terminal),{cardinality:e.cardinality,lookahead:e.lookahead})}function Mge(e){return Pge(`(?!${Lge(e.terminal)})${Bge}*?`,{cardinality:e.cardinality,lookahead:e.lookahead})}function Dge(e){r Line truncated \r              

   `.split(""),mt(U0e,"isWhitespace"),mt(q0e,"escapeRegExp"),mt(j0e,"getCaseInsensitivePattern"),mt(Y0e,"partialMatches"),mt(W0e,"partialRegExp")}),J0e={};function ege(e){return e.rules.find(e=>Pde(e)&&e.entry)}function tge(e){return e.rules.filter(e=>Gde(e)&&e.hidden)}function rge(e,t){var r,n=new Set,i=ege(e);if(!i)return new Set(e.rules);for(r of[i].concat(tge(e)))nge(r,n,t);var a,s=new Set;for(a of e.rules)(n.has(a.name)||Gde(a)&&a.hidden)&&s.add(a);return s}function nge(e,t,r){t.add(e.name),u0e(e).forEach(e=>{(tpe(e)||r&&ipe(e))&&(e=e.rule.ref)&&!t.has(e.name)&&nge(e,t,r)})}function ige(e){return e.terminal||(e.type.ref?pge(e.type.ref)?.terminal:void 0)}function age(e){return e.hidden&&!U0e(Age(e))}function sge(e,t){return e&&t?lge(e,t,e.astNode,!0):[]}function oge(e,t,r){return e&&t&&0!==(t=lge(e,t,e.astNode,!0)).length?t[r=void 0!==r?Math.max(0,Math.min(r,t.length-1)):0]:void 0}function lge(e,t,r,n){return!n&&(n=s0e(e.grammarSource,Hde))&&n.feature===t?[e]:_ue(e)&&e.astNode===r?e.content.flatMap(e=>lge(e,t,r,!1)):[]}function cge(e,t){return e?uge(e,t,e?.astNode):[]}function hge(e,t,r){return e&&0!==(t=uge(e,t,e?.astNode)).length?t[r=void 0!==r?Math.max(0,Math.min(r,t.length-1)):0]:void 0}function uge(e,t,r){if(e.astNode!==r)return[];if(Qde(e.grammarSource)&&e.grammarSource.value===t)return[e];for(var n,i,a=Uue(e).iterator(),s=[];(i=a.next()).done||((n=i.value).astNode===r?Qde(n.grammarSource)&&n.grammarSource.value===t&&s.push(n):a.prune()),!i.done;);return s}function dge(e){for(var t=e.astNode;t===(null==(r=e.container)?void 0:r.astNode);){var r=s0e(e.grammarSource,Hde);if(r)return r;e=e.container}}function pge(e){let t=e;return Lde(t)&&(Yde(t.$container)?t=t.$container.$container:Pde(t.$container)?t=t.$container:hde(t.$container)),gge(e,t,new Map)}function gge(n,e,i){var t,r;function a(e,t){let r;return s0e(e,Hde)||(r=gge(t,t,i)),i.set(n,r),r}if(mt(a,"go"),i.has(n))return i.get(n);i.set(n,void 0);for(r of u0e(e)){if(Hde(r)&&"name"===r.feature.toLowerCase())return i.set(n,r),r;if(tpe(r)&&Pde(r.rule.ref))return a(r,r.rule.ref);if(Fde(r)&&null!=(t=r.typeRef)&&t.ref)return a(r,r.typeRef.ref)}}function fge(t){var e=t.$container;if(Zde(e)){var r=e.elements;for(let e=r.indexOf(t)-1;0<=e;e--){var n=r[e];if(Yde(n))return n;if(n=u0e(r[e]).find(Yde))return n}}if(wde(e))return fge(e)}function mge(e,t){return"?"===e||"*"===e||Zde(t)&&!!t.guardCondition}function yge(e){return"*"===e||"+"===e}function vge(e){return"+="===e}function xge(e){return bge(e,new Set)}function bge(e,t){if(t.has(e))return!0;t.add(e);for(var r of u0e(e))if(tpe(r)){if(!r.rule.ref||Pde(r.rule.ref)&&!bge(r.rule.ref,t))return!1}else{if(Hde(r))return!1;if(Yde(r))return!1}return!!e.definition}function wge(e){return kge(e.type,new Set)}function kge(e,t){return!!t.has(e)||(t.add(e),!Tde(e)&&!Bde(e)&&(jde(e)?e.types.every(e=>kge(e,t)):!!Fde(e)&&(void 0!==e.primitiveType||void 0!==e.stringType||void 0!==e.typeRef&&!!Ude(e=e.typeRef.ref)&&kge(e.type,t))))}function Tge(e){return e.inferredType?e.inferredType.name:e.dataType||(e.returnType&&(e=e.returnType.ref)&&(Pde(e)||Nde(e)||Ude(e))?e.name:void 0)}function Ege(e){if(Pde(e))return xge(e)||null==(t=Tge(e))?e.name:t;if(Nde(e)||Ude(e)||$de(e))return e.name;if(Yde(e)){var t=Cge(e);if(t)return t}else if(Lde(e))return e.name;throw new Error("Cannot get name of Unknown Type")}function Cge(e){var t;return e.inferredType?e.inferredType.name:null!=(t=e.type)&&t.ref?Ege(e.type.ref):void 0}function Sge(e){var t;return Gde(e)?null!=(t=null==(t=e.type)?void 0:t.name)?t:"string":xge(e)||null==(t=Tge(e))?e.name:t}function _ge(e){var t;return Gde(e)?null!=(t=null==(t=e.type)?void 0:t.name)?t:"string":null!=(t=Tge(e))?t:e.name}function Age(e){var e=Lge(e.definition,t={s:!1,i:!1,u:!1}),t=Object.entries(t).filter(([,e])=>e).map(([e])=>e).join("");return new RegExp(e,t)}function Lge(e,t){if(rpe(e))return Nge(e);if(npe(e))return Ige(e);if(Vde(e))return Dge(e);if(ipe(e)){var r=e.rule.ref;if(r)return Pge(Lge(r.definition),{cardinality:e.cardinality,lookahead:e.lookahead});throw new Error("Missing rule reference.")}if(Jde(e))return Mge(e);if(spe(e))return Rge(e);var n;if(epe(e))return r=e.regex.lastIndexOf("/"),n=e.regex.substring(1,r),r=e.regex.substring(r+1),t&&(t.i=r.includes("i"),t.s=r.includes("s"),t.u=r.includes("u")),Pge(n,{cardinality:e.cardinality,lookahead:e.lookahead,wrap:!1});if(ope(e))return Pge(Bge,{cardinality:e.cardinality,lookahead:e.lookahead});throw new Error("Invalid terminal element: "+e?.$type)}function Nge(e){return Pge(e.elements.map(e=>Lge(e)).join("|"),{cardinality:e.cardinality,lookahead:e.lookahead})}function Ige(e){return Pge(e.elements.map(e=>Lge(e)).join(""),{cardinality:e.cardinality,lookahead:e.lookahead})}function Rge(e){return Pge(Bge+"*?"+Lge(e.terminal),{cardinality:e.cardinality,lookahead:e.lookahead})}function Mge(e){return Pge(`(?!${Lge(e.terminal)})${Bge}*?`,{cardinality:e.cardinality,lookahead:e.lookahead})}function Dge(e){r Line truncated
Complement Sets cannot be automatically optimized. Complement Sets cannot be automatically optimized.
This will disable the lexer's first char optimizations. This will disable the lexer's first char optimizations.
See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#COMPLEMENT for details.`):(t=t?` See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#COMPLEMENT for details.`):(t=t?`
@@ -1080,7 +1080,7 @@ Expecting `+A.join(", ")+", got '"+(this.terminals_[x]||x)+"'":"Parse error on l
Failed parsing: < ${e.toString()} > Failed parsing: < ${e.toString()} >
Using the @chevrotain/regexp-to-ast library Using the @chevrotain/regexp-to-ast library
Please open an issue at: https://github.com/chevrotain/chevrotain/issues`+t))}return[]}function z1e(t,i,a){switch(t.type){case"Disjunction":for(let e=0;e<t.value.length;e++)z1e(t.value[e],i,a);break;case"Alternative":var r=t.value;for(let e=0;e<r.length;e++){var n=r[e];switch(n.type){case"EndAnchor":case"GroupBackReference":case"Lookahead":case"NegativeLookahead":case"StartAnchor":case"WordBoundary":case"NonWordBoundary":continue}var s=n;switch(s.type){case"Character":G1e(s.value,i,a);break;case"Set":if(!0===s.complement)throw Error(W1e);v(s.value,t=>{if("number"==typeof t)G1e(t,i,a);else{var r=t;if(!0===a)for(let e=r.from;e<=r.to;e++)G1e(e,i,a);else{for(let e=r.from;e<=r.to&&e<Ife;e++)G1e(e,i,a);if(r.to>=Ife){var t=r.from>=Ife?r.from:Ife,e=r.to,t=kfe(t),n=kfe(e);for(let e=t;e<=n;e++)i[e]=e}}}});break;case"Group":z1e(s.value,i,a);break;default:throw Error("Non Exhaustive Match")}if(n=void 0!==s.quantifier&&0===s.quantifier.atLeast,"Group"===s.type&&!1===j1e(s)||"Group"!==s.type&&0==n)break}break;default:throw Error("non exhaustive match!")}return dj(i)}function G1e(e,t,r){var n=kfe(e);t[n]=n,!0===r&&U1e(e,t)}function U1e(e,t){var r=(e=String.fromCharCode(e)).toUpperCase();r!==e?t[r=kfe(r.charCodeAt(0))]=r:(r=e.toLowerCase())!==e&&(t[e=kfe(r.charCodeAt(0))]=e)}function q1e(e,r){return Tq(e.value,e=>{if("number"==typeof e)return mj(r,e);{let t=e;return void 0!==Tq(r,e=>t.from<=e&&e<=t.to)}})}function j1e(e){var t=e.quantifier;return!(!t||0!==t.atLeast)||!!e.value&&(n8(e.value)?lq(e.value,j1e):j1e(e.value))}function Y1e(t,e){var r,n;return e instanceof RegExp?(r=D1e(e),(n=new V1e(t)).visit(r),n.found):void 0!==Tq(e,e=>mj(t,e.charCodeAt(0)))}var W1e,H1e,V1e,X1e=b(()=>{$0e(),KW(),Xge(),$1e(),Mfe(),W1e="Complement Sets are not supported for first char optimization",H1e=`Unable to use "first char" lexer optimizations: Please open an issue at: https://github.com/chevrotain/chevrotain/issues`+t))}return[]}function z1e(t,i,a){switch(t.type){case"Disjunction":for(let e=0;e<t.value.length;e++)z1e(t.value[e],i,a);break;case"Alternative":var r=t.value;for(let e=0;e<r.length;e++){var n=r[e];switch(n.type){case"EndAnchor":case"GroupBackReference":case"Lookahead":case"NegativeLookahead":case"StartAnchor":case"WordBoundary":case"NonWordBoundary":continue}var s=n;switch(s.type){case"Character":G1e(s.value,i,a);break;case"Set":if(!0===s.complement)throw Error(W1e);v(s.value,t=>{if("number"==typeof t)G1e(t,i,a);else{var r=t;if(!0===a)for(let e=r.from;e<=r.to;e++)G1e(e,i,a);else{for(let e=r.from;e<=r.to&&e<Ife;e++)G1e(e,i,a);if(r.to>=Ife){var t=r.from>=Ife?r.from:Ife,e=r.to,t=kfe(t),n=kfe(e);for(let e=t;e<=n;e++)i[e]=e}}}});break;case"Group":z1e(s.value,i,a);break;default:throw Error("Non Exhaustive Match")}if(n=void 0!==s.quantifier&&0===s.quantifier.atLeast,"Group"===s.type&&!1===j1e(s)||"Group"!==s.type&&0==n)break}break;default:throw Error("non exhaustive match!")}return dj(i)}function G1e(e,t,r){var n=kfe(e);t[n]=n,!0===r&&U1e(e,t)}function U1e(e,t){var r=(e=String.fromCharCode(e)).toUpperCase();r!==e?t[r=kfe(r.charCodeAt(0))]=r:(r=e.toLowerCase())!==e&&(t[e=kfe(r.charCodeAt(0))]=e)}function q1e(e,r){return Tq(e.value,e=>{if("number"==typeof e)return mj(r,e);{let t=e;return void 0!==Tq(r,e=>t.from<=e&&e<=t.to)}})}function j1e(e){var t=e.quantifier;return!(!t||0!==t.atLeast)||!!e.value&&(n8(e.value)?lq(e.value,j1e):j1e(e.value))}function Y1e(t,e){var r,n;return e instanceof RegExp?(r=D1e(e),(n=new V1e(t)).visit(r),n.found):void 0!==Tq(e,e=>mj(t,e.charCodeAt(0)))}var W1e,H1e,V1e,X1e=b(()=>{$0e(),KW(),Xge(),$1e(),Mfe(),W1e="Complement Sets are not supported for first char optimization",H1e=`Unable to use "first char" lexer optimizations:
`,mt(F1e,"getOptimizedStartCodesIndices"),mt(z1e,"firstCharOptimizedIndices"),mt(G1e,"addOptimizedIdxToResult"),mt(U1e,"handleIgnoreCase"),mt(q1e,"findCode"),mt(j1e,"isWholeOptional"),V1e=class extends M0e{static{mt(this,"CharCodeFinder")}constructor(e){super(),this.targetCharCodes=e,this.found=!1}visitChildren(e){if(!0!==this.found){switch(e.type){case"Lookahead":return void this.visitLookahead(e);case"NegativeLookahead":return void this.visitNegativeLookahead(e)}super.visitChildren(e)}}visitCharacter(e){mj(this.targetCharCodes,e.value)&&(this.found=!0)}visitSet(e){e.complement?void 0===q1e(e,this.targetCharCodes)&&(this.found=!0):void 0!==q1e(e,this.targetCharCodes)&&(this.found=!0)}},mt(Y1e,"canMatchCharCode")});function K1e(e,i){var t=(i=SU(i,{useSticky:Sfe,debug:!1,safeMode:!1,positionTracking:"full",lineTerminatorCharacters:["\r",` `,mt(F1e,"getOptimizedStartCodesIndices"),mt(z1e,"firstCharOptimizedIndices"),mt(G1e,"addOptimizedIdxToResult"),mt(U1e,"handleIgnoreCase"),mt(q1e,"findCode"),mt(j1e,"isWholeOptional"),V1e=class extends M0e{static{mt(this,"CharCodeFinder")}constructor(e){super(),this.targetCharCodes=e,this.found=!1}visitChildren(e){if(!0!==this.found){switch(e.type){case"Lookahead":return void this.visitLookahead(e);case"NegativeLookahead":return void this.visitNegativeLookahead(e)}super.visitChildren(e)}}visitCharacter(e){mj(this.targetCharCodes,e.value)&&(this.found=!0)}visitSet(e){e.complement?void 0===q1e(e,this.targetCharCodes)&&(this.found=!0):void 0!==q1e(e,this.targetCharCodes)&&(this.found=!0)}},mt(Y1e,"canMatchCharCode")});function K1e(e,i){var t=(i=_U(i,{useSticky:_fe,debug:!1,safeMode:!1,positionTracking:"full",lineTerminatorCharacters:["\r",`
`],tracer:mt((e,t)=>t(),"tracer")})).tracer;t("initCharCodeToOptimizedIndexMap",()=>{Tfe()});let r,n=(t("Reject Lexer.NA",()=>{r=uW(e,e=>e[Efe]===Qfe.NA)}),!1),a;t("Transform Patterns",()=>{n=!1,a=x(r,e=>{var t,e=e[Efe];if(Nj(e))return 1!==(t=e.source).length||"^"===t||"$"===t||"."===t||e.ignoreCase?2!==t.length||"\\"!==t[0]||mj(["d","D","s","S","t","r","n","t","0","c","b","B","f","v","w","W"],t[1])?(i.useSticky?dfe:ufe)(e):t[1]:t;if(R6(e))return n=!0,{exec:e};if("object"==typeof e)return n=!0,e;if("string"==typeof e)return 1===e.length?e:(t=e.replace(/[\\^$.*+?()[\]{}|]/g,"\\$&"),e=new RegExp(t),(i.useSticky?dfe:ufe)(e));throw Error("non exhaustive match")})});let s,o,l,c,h;t("misc mapping",()=>{s=x(r,e=>e.tokenTypeIdx),o=x(r,e=>{if((e=e.GROUP)!==Qfe.SKIPPED){if(sj(e))return e;if(Dj(e))return!1;throw Error("non exhaustive match")}}),l=x(r,e=>{if(e=e.LONGER_ALT)return n8(e)?x(e,e=>bj(r,e)):[bj(r,e)]}),c=x(r,e=>e.PUSH_MODE),h=x(r,e=>nj(e,"POP_MODE"))});let u;t("Line Terminator Handling",()=>{let t=bfe(i.lineTerminatorCharacters);u=x(r,e=>!1),"onlyOffset"!==i.positionTracking&&(u=x(r,e=>nj(e,"LINE_BREAKS")?!!e.LINE_BREAKS:!1===vfe(e,t)&&Y1e(t,e.PATTERN)))});let d,p,g,f,m=(t("Misc Mapping #2",()=>{d=x(r,mfe),p=x(a,yfe),g=lW(r,(e,t)=>(t=t.GROUP,sj(t)&&t!==Qfe.SKIPPED&&(e[t]=[]),e),{}),f=x(a,(e,t)=>({pattern:a[t],longerAlt:l[t],canLineTerminator:u[t],isCustom:d[t],short:p[t],group:o[t],push:c[t],pop:h[t],tokenTypeIdx:s[t],tokenType:r[t]}))}),!0),y=[];return i.safeMode||t("First Char Optimization",()=>{y=lW(r,(r,e,n)=>{if("string"==typeof e.PATTERN){var t=kfe(e.PATTERN.charCodeAt(0));wfe(r,t,f[n])}else if(n8(e.START_CHARS_HINT)){let t;v(e.START_CHARS_HINT,e=>{e=kfe("string"==typeof e?e.charCodeAt(0):e),t!==e&&(t=e,wfe(r,e,f[n]))})}else Nj(e.PATTERN)?e.PATTERN.unicode?(m=!1,i.ensureOptimizations&&Uge(`${H1e} Unable to analyze < ${e.PATTERN.toString()} > pattern. `],tracer:mt((e,t)=>t(),"tracer")})).tracer;t("initCharCodeToOptimizedIndexMap",()=>{Tfe()});let r,n=(t("Reject Lexer.NA",()=>{r=uW(e,e=>e[Efe]===Qfe.NA)}),!1),a;t("Transform Patterns",()=>{n=!1,a=x(r,e=>{var t,e=e[Efe];if(Nj(e))return 1!==(t=e.source).length||"^"===t||"$"===t||"."===t||e.ignoreCase?2!==t.length||"\\"!==t[0]||mj(["d","D","s","S","t","r","n","t","0","c","b","B","f","v","w","W"],t[1])?(i.useSticky?dfe:ufe)(e):t[1]:t;if(R6(e))return n=!0,{exec:e};if("object"==typeof e)return n=!0,e;if("string"==typeof e)return 1===e.length?e:(t=e.replace(/[\\^$.*+?()[\]{}|]/g,"\\$&"),e=new RegExp(t),(i.useSticky?dfe:ufe)(e));throw Error("non exhaustive match")})});let s,o,l,c,h;t("misc mapping",()=>{s=x(r,e=>e.tokenTypeIdx),o=x(r,e=>{if((e=e.GROUP)!==Qfe.SKIPPED){if(sj(e))return e;if(Dj(e))return!1;throw Error("non exhaustive match")}}),l=x(r,e=>{if(e=e.LONGER_ALT)return n8(e)?x(e,e=>bj(r,e)):[bj(r,e)]}),c=x(r,e=>e.PUSH_MODE),h=x(r,e=>nj(e,"POP_MODE"))});let u;t("Line Terminator Handling",()=>{let t=bfe(i.lineTerminatorCharacters);u=x(r,e=>!1),"onlyOffset"!==i.positionTracking&&(u=x(r,e=>nj(e,"LINE_BREAKS")?!!e.LINE_BREAKS:!1===vfe(e,t)&&Y1e(t,e.PATTERN)))});let d,p,g,f,m=(t("Misc Mapping #2",()=>{d=x(r,mfe),p=x(a,yfe),g=lW(r,(e,t)=>(t=t.GROUP,sj(t)&&t!==Qfe.SKIPPED&&(e[t]=[]),e),{}),f=x(a,(e,t)=>({pattern:a[t],longerAlt:l[t],canLineTerminator:u[t],isCustom:d[t],short:p[t],group:o[t],push:c[t],pop:h[t],tokenTypeIdx:s[t],tokenType:r[t]}))}),!0),y=[];return i.safeMode||t("First Char Optimization",()=>{y=lW(r,(r,e,n)=>{if("string"==typeof e.PATTERN){var t=kfe(e.PATTERN.charCodeAt(0));wfe(r,t,f[n])}else if(n8(e.START_CHARS_HINT)){let t;v(e.START_CHARS_HINT,e=>{e=kfe("string"==typeof e?e.charCodeAt(0):e),t!==e&&(t=e,wfe(r,e,f[n]))})}else Nj(e.PATTERN)?e.PATTERN.unicode?(m=!1,i.ensureOptimizations&&Uge(`${H1e} Unable to analyze < ${e.PATTERN.toString()} > pattern.
The regexp unicode flag is not currently supported by the regexp-to-ast library. The regexp unicode flag is not currently supported by the regexp-to-ast library.
This will disable the lexer's first char optimizations. This will disable the lexer's first char optimizations.
@@ -1090,14 +1090,14 @@ Expecting `+A.join(", ")+", got '"+(this.terminals_[x]||x)+"'":"Parse error on l
Token Type: ->`+e.name+`<- static 'PATTERN' cannot contain end of input anchor '$' Token Type: ->`+e.name+`<- static 'PATTERN' cannot contain end of input anchor '$'
See chevrotain.io/docs/guide/resolving_lexer_errors.html#ANCHORS for details.`,type:Kfe.EOI_ANCHOR_FOUND,tokenTypes:[e]}))}function rfe(e){return e=gq(e,e=>e.PATTERN.test("")),x(e,e=>({message:"Token Type: ->"+e.name+"<- static 'PATTERN' must not match an empty string",type:Kfe.EMPTY_MATCH_PATTERN,tokenTypes:[e]}))}function nfe(e){class n extends M0e{static{mt(this,"StartAnchorFinder")}constructor(){super(...arguments),this.found=!1}visitStartAnchor(e){this.found=!0}}return e=gq(e,e=>{e=e.PATTERN;try{var t=D1e(e),r=new n;return r.visit(t),r.found}catch{return Lfe.test(e.source)}}),x(e,e=>({message:`Unexpected RegExp Anchor Error: See chevrotain.io/docs/guide/resolving_lexer_errors.html#ANCHORS for details.`,type:Kfe.EOI_ANCHOR_FOUND,tokenTypes:[e]}))}function rfe(e){return e=gq(e,e=>e.PATTERN.test("")),x(e,e=>({message:"Token Type: ->"+e.name+"<- static 'PATTERN' must not match an empty string",type:Kfe.EMPTY_MATCH_PATTERN,tokenTypes:[e]}))}function nfe(e){class n extends M0e{static{mt(this,"StartAnchorFinder")}constructor(){super(...arguments),this.found=!1}visitStartAnchor(e){this.found=!0}}return e=gq(e,e=>{e=e.PATTERN;try{var t=D1e(e),r=new n;return r.visit(t),r.found}catch{return Lfe.test(e.source)}}),x(e,e=>({message:`Unexpected RegExp Anchor Error:
Token Type: ->`+e.name+`<- static 'PATTERN' cannot contain start of input anchor '^' Token Type: ->`+e.name+`<- static 'PATTERN' cannot contain start of input anchor '^'
See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#ANCHORS for details.`,type:Kfe.SOI_ANCHOR_FOUND,tokenTypes:[e]}))}function ife(e){return e=gq(e,e=>(e=e[Efe])instanceof RegExp&&(e.multiline||e.global)),x(e,e=>({message:"Token Type: ->"+e.name+"<- static 'PATTERN' may NOT contain global('g') or multiline('m')",type:Kfe.UNSUPPORTED_FLAGS_FOUND,tokenTypes:[e]}))}function afe(e){let n=[],t=x(e,r=>lW(e,(e,t)=>(r.PATTERN.source!==t.PATTERN.source||mj(n,t)||t.PATTERN===Qfe.NA||(n.push(t),e.push(t)),e),[]));t=Sz(t);var r=gq(t,e=>1<e.length);return x(r,e=>{var t=x(e,e=>e.name);return{message:`The same RegExp pattern ->${Sq(e).PATTERN}<-has been used in all of the following Token Types: ${t.join(", ")} <-`,type:Kfe.DUPLICATE_PATTERNS_FOUND,tokenTypes:e}})}function sfe(e){return e=gq(e,e=>!!nj(e,"GROUP")&&(e=e.GROUP)!==Qfe.SKIPPED&&e!==Qfe.NA&&!sj(e)),x(e,e=>({message:"Token Type: ->"+e.name+"<- static 'GROUP' can only be Lexer.SKIPPED/Lexer.NA/A String",type:Kfe.INVALID_GROUP_TYPE_FOUND,tokenTypes:[e]}))}function ofe(e,t){return e=gq(e,e=>void 0!==e.PUSH_MODE&&!mj(t,e.PUSH_MODE)),x(e,e=>({message:`Token Type: ->${e.name}<- static 'PUSH_MODE' value cannot refer to a Lexer Mode ->${e.PUSH_MODE}<-which does not exist`,type:Kfe.PUSH_MODE_DOES_NOT_EXIST,tokenTypes:[e]}))}function lfe(e){let a=[],t=lW(e,(e,t,r)=>{var n=t.PATTERN;return n!==Qfe.NA&&(sj(n)?e.push({str:n,idx:r,tokenType:t}):Nj(n)&&hfe(n)&&e.push({str:n.source,idx:r,tokenType:t})),e},[]);return v(e,(n,i)=>{v(t,({str:e,idx:t,tokenType:r})=>{i<t&&cfe(e,n.PATTERN)&&(t=`Token: ->${r.name}<- can never be matched. See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#ANCHORS for details.`,type:Kfe.SOI_ANCHOR_FOUND,tokenTypes:[e]}))}function ife(e){return e=gq(e,e=>(e=e[Efe])instanceof RegExp&&(e.multiline||e.global)),x(e,e=>({message:"Token Type: ->"+e.name+"<- static 'PATTERN' may NOT contain global('g') or multiline('m')",type:Kfe.UNSUPPORTED_FLAGS_FOUND,tokenTypes:[e]}))}function afe(e){let n=[],t=x(e,r=>lW(e,(e,t)=>(r.PATTERN.source!==t.PATTERN.source||mj(n,t)||t.PATTERN===Qfe.NA||(n.push(t),e.push(t)),e),[]));t=_z(t);var r=gq(t,e=>1<e.length);return x(r,e=>{var t=x(e,e=>e.name);return{message:`The same RegExp pattern ->${_q(e).PATTERN}<-has been used in all of the following Token Types: ${t.join(", ")} <-`,type:Kfe.DUPLICATE_PATTERNS_FOUND,tokenTypes:e}})}function sfe(e){return e=gq(e,e=>!!nj(e,"GROUP")&&(e=e.GROUP)!==Qfe.SKIPPED&&e!==Qfe.NA&&!sj(e)),x(e,e=>({message:"Token Type: ->"+e.name+"<- static 'GROUP' can only be Lexer.SKIPPED/Lexer.NA/A String",type:Kfe.INVALID_GROUP_TYPE_FOUND,tokenTypes:[e]}))}function ofe(e,t){return e=gq(e,e=>void 0!==e.PUSH_MODE&&!mj(t,e.PUSH_MODE)),x(e,e=>({message:`Token Type: ->${e.name}<- static 'PUSH_MODE' value cannot refer to a Lexer Mode ->${e.PUSH_MODE}<-which does not exist`,type:Kfe.PUSH_MODE_DOES_NOT_EXIST,tokenTypes:[e]}))}function lfe(e){let a=[],t=lW(e,(e,t,r)=>{var n=t.PATTERN;return n!==Qfe.NA&&(sj(n)?e.push({str:n,idx:r,tokenType:t}):Nj(n)&&hfe(n)&&e.push({str:n.source,idx:r,tokenType:t})),e},[]);return v(e,(n,i)=>{v(t,({str:e,idx:t,tokenType:r})=>{i<t&&cfe(e,n.PATTERN)&&(t=`Token: ->${r.name}<- can never be matched.
Because it appears AFTER the Token Type ->${n.name}<-in the lexer's definition. Because it appears AFTER the Token Type ->${n.name}<-in the lexer's definition.
See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNREACHABLE`,a.push({message:t,type:Kfe.UNREACHABLE_PATTERN,tokenTypes:[n,r]}))})}),a}function cfe(e,t){var r;if(Nj(t))return null!==(r=t.exec(e))&&0===r.index;if(R6(t))return t(e,0,[],{});if(nj(t,"exec"))return t.exec(e,0,[],{});if("string"==typeof t)return t===e;throw Error("non exhaustive match")}function hfe(t){return void 0===Tq([".","\\","[","]","|","^","$","(",")","?","*","+","{"],e=>-1!==t.source.indexOf(e))}function ufe(e){var t=e.ignoreCase?"i":"";return new RegExp(`^(?:${e.source})`,t)}function dfe(e){var t=e.ignoreCase?"iy":"y";return new RegExp(""+e.source,t)}function pfe(e,t,r){let i=[];return nj(e,Cfe)||i.push({message:"A MultiMode Lexer cannot be initialized without a <"+Cfe+`> property in its definition See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNREACHABLE`,a.push({message:t,type:Kfe.UNREACHABLE_PATTERN,tokenTypes:[n,r]}))})}),a}function cfe(e,t){var r;if(Nj(t))return null!==(r=t.exec(e))&&0===r.index;if(R6(t))return t(e,0,[],{});if(nj(t,"exec"))return t.exec(e,0,[],{});if("string"==typeof t)return t===e;throw Error("non exhaustive match")}function hfe(t){return void 0===Tq([".","\\","[","]","|","^","$","(",")","?","*","+","{"],e=>-1!==t.source.indexOf(e))}function ufe(e){var t=e.ignoreCase?"i":"";return new RegExp(`^(?:${e.source})`,t)}function dfe(e){var t=e.ignoreCase?"iy":"y";return new RegExp(""+e.source,t)}function pfe(e,t,r){let i=[];return nj(e,Cfe)||i.push({message:"A MultiMode Lexer cannot be initialized without a <"+Cfe+`> property in its definition
`,type:Kfe.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE}),nj(e,_fe)||i.push({message:"A MultiMode Lexer cannot be initialized without a <"+_fe+`> property in its definition `,type:Kfe.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE}),nj(e,Sfe)||i.push({message:"A MultiMode Lexer cannot be initialized without a <"+Sfe+`> property in its definition
`,type:Kfe.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY}),nj(e,_fe)&&nj(e,Cfe)&&!nj(e.modes,e.defaultMode)&&i.push({message:`A MultiMode Lexer cannot be initialized with a ${Cfe}: <${e.defaultMode}>which does not exist `,type:Kfe.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY}),nj(e,Sfe)&&nj(e,Cfe)&&!nj(e.modes,e.defaultMode)&&i.push({message:`A MultiMode Lexer cannot be initialized with a ${Cfe}: <${e.defaultMode}>which does not exist
`,type:Kfe.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST}),nj(e,_fe)&&v(e.modes,(r,n)=>{v(r,(t,e)=>{Dj(t)?i.push({message:`A Lexer cannot be initialized using an undefined Token Type. Mode:<${n}> at index: <${e}> `,type:Kfe.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST}),nj(e,Sfe)&&v(e.modes,(r,n)=>{v(r,(t,e)=>{Dj(t)?i.push({message:`A Lexer cannot be initialized using an undefined Token Type. Mode:<${n}> at index: <${e}>
`,type:Kfe.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED}):nj(t,"LONGER_ALT")&&(e=n8(t.LONGER_ALT)?t.LONGER_ALT:[t.LONGER_ALT],v(e,e=>{Dj(e)||mj(r,e)||i.push({message:`A MultiMode Lexer cannot be initialized with a longer_alt <${e.name}> on token <${t.name}> outside of mode <${n}> `,type:Kfe.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED}):nj(t,"LONGER_ALT")&&(e=n8(t.LONGER_ALT)?t.LONGER_ALT:[t.LONGER_ALT],v(e,e=>{Dj(e)||mj(r,e)||i.push({message:`A MultiMode Lexer cannot be initialized with a longer_alt <${e.name}> on token <${t.name}> outside of mode <${n}>
`,type:Kfe.MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE})}))})}),i}function gfe(e,t,r){let n=[],i=!1,a=Sz(p$(dj(e.modes))),s=uW(a,e=>e[Efe]===Qfe.NA),o=bfe(r);return t&&v(s,e=>{var t=vfe(e,o);!1!==t?(t={message:xfe(e,t),type:t.issue,tokenType:e},n.push(t)):nj(e,"LINE_BREAKS")?!0===e.LINE_BREAKS&&(i=!0):Y1e(o,e.PATTERN)&&(i=!0)}),t&&!i&&n.push({message:`Warning: No LINE_BREAKS Found. `,type:Kfe.MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE})}))})}),i}function gfe(e,t,r){let n=[],i=!1,a=_z(p$(dj(e.modes))),s=uW(a,e=>e[Efe]===Qfe.NA),o=bfe(r);return t&&v(s,e=>{var t=vfe(e,o);!1!==t?(t={message:xfe(e,t),type:t.issue,tokenType:e},n.push(t)):nj(e,"LINE_BREAKS")?!0===e.LINE_BREAKS&&(i=!0):Y1e(o,e.PATTERN)&&(i=!0)}),t&&!i&&n.push({message:`Warning: No LINE_BREAKS Found.
This Lexer has been defined to track line and column information, This Lexer has been defined to track line and column information,
But none of the Token Types can be identified as matching a line terminator. But none of the Token Types can be identified as matching a line terminator.
See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#LINE_BREAKS See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#LINE_BREAKS
@@ -1106,23 +1106,23 @@ See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNREACHABLE`,a.
Root cause: ${t.errMsg}. Root cause: ${t.errMsg}.
For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#IDENTIFY_TERMINATOR`;if(t.issue===Kfe.CUSTOM_LINE_BREAK)return`Warning: A Custom Token Pattern should specify the <line_breaks> option. For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#IDENTIFY_TERMINATOR`;if(t.issue===Kfe.CUSTOM_LINE_BREAK)return`Warning: A Custom Token Pattern should specify the <line_breaks> option.
The problem is in the <${e.name}> Token Type The problem is in the <${e.name}> Token Type
For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#CUSTOM_LINE_BREAK`;throw Error("non exhaustive match")}function bfe(e){return x(e,e=>sj(e)?e.charCodeAt(0):e)}function wfe(e,t,r){void 0===e[t]?e[t]=[r]:e[t].push(r)}function kfe(e){return e<Ife?e:Rfe[e]}function Tfe(){if(Cj(Rfe)){Rfe=new Array(65536);for(let e=0;e<65536;e++)Rfe[e]=255<e?255+~~(e/255):e}}var Efe,Cfe,_fe,Sfe,Afe,Lfe,Nfe,Ife,Rfe,Mfe=b(()=>{$0e(),tme(),KW(),Xge(),X1e(),$1e(),Efe="PATTERN",Cfe="defaultMode",_fe="modes",Sfe="boolean"==typeof new RegExp("(?:)").sticky,mt(K1e,"analyzeTokenTypes"),mt(Z1e,"validatePatterns"),mt(Q1e,"validateRegExpPattern"),mt(J1e,"findMissingPatterns"),mt(efe,"findInvalidPatterns"),Afe=/[^\\][$]/,mt(tfe,"findEndOfInputAnchor"),mt(rfe,"findEmptyMatchRegExps"),Lfe=/[^\\[][\^]|^\^/,mt(nfe,"findStartOfInputAnchor"),mt(ife,"findUnsupportedFlags"),mt(afe,"findDuplicatePatterns"),mt(sfe,"findInvalidGroupType"),mt(ofe,"findModesThatDoNotExist"),mt(lfe,"findUnreachablePatterns"),mt(cfe,"testTokenType"),mt(hfe,"noMetaChar"),mt(ufe,"addStartOfInput"),mt(dfe,"addStickyFlag"),mt(pfe,"performRuntimeChecks"),mt(gfe,"performWarningRuntimeChecks"),mt(ffe,"cloneEmptyGroups"),mt(mfe,"isCustomPattern"),mt(yfe,"isShortPattern"),Nfe={test:mt(function(t){var r=t.length;for(let e=this.lastIndex;e<r;e++){var n=t.charCodeAt(e);if(10===n)return this.lastIndex=e+1,!0;if(13===n)return 10===t.charCodeAt(e+1)?this.lastIndex=e+2:this.lastIndex=e+1,!0}return!1},"test"),lastIndex:0},mt(vfe,"checkLineBreaksIssues"),mt(xfe,"buildLineBreakIssueMessage"),mt(bfe,"getCharCodes"),mt(wfe,"addToMapOfArrays"),Ife=256,Rfe=[],mt(kfe,"charCodeToOptimizedIndex"),mt(Tfe,"initCharCodeToOptimizedIndexMap")});function Dfe(e,t){return(e=e.tokenTypeIdx)===t.tokenTypeIdx||!0===t.isParent&&!0===t.categoryMatchesMap[e]}function Ofe(e,t){return e.tokenTypeIdx===t.tokenTypeIdx}function Pfe(e){$fe(e=Bfe(e)),zfe(e),Ffe(e),v(e,e=>{e.isParent=0<e.categoryMatches.length})}function Bfe(e){let t=wz(e),r=e,n=!0;for(;n;){r=Sz(p$(x(r,e=>e.CATEGORIES)));var i=BU(r,t);t=t.concat(i),Cj(i)?n=!1:r=i}return t}function $fe(e){v(e,e=>{Ufe(e)||((Vfe[Hfe]=e).tokenTypeIdx=Hfe++),qfe(e)&&!n8(e.CATEGORIES)&&(e.CATEGORIES=[e.CATEGORIES]),qfe(e)||(e.CATEGORIES=[]),jfe(e)||(e.categoryMatches=[]),Yfe(e)||(e.categoryMatchesMap={})})}function Ffe(e){v(e,r=>{r.categoryMatches=[],v(r.categoryMatchesMap,(e,t)=>{r.categoryMatches.push(Vfe[t].tokenTypeIdx)})})}function zfe(e){v(e,e=>{Gfe([],e)})}function Gfe(r,n){v(r,e=>{n.categoryMatchesMap[e.tokenTypeIdx]=!0}),v(n.CATEGORIES,e=>{var t=r.concat(n);mj(t,e)||Gfe(t,e)})}function Ufe(e){return nj(e,"tokenTypeIdx")}function qfe(e){return nj(e,"CATEGORIES")}function jfe(e){return nj(e,"categoryMatches")}function Yfe(e){return nj(e,"categoryMatchesMap")}function Wfe(e){return nj(e,"tokenTypeIdx")}var Hfe,Vfe,Xfe,Kfe,Zfe,Qfe,Jfe=b(()=>{KW(),mt(Dfe,"tokenStructuredMatcher"),mt(Ofe,"tokenStructuredMatcherNoCategories"),Hfe=1,Vfe={},mt(Pfe,"augmentTokenTypes"),mt(Bfe,"expandCategories"),mt($fe,"assignTokenDefaultProps"),mt(Ffe,"assignCategoriesTokensProp"),mt(zfe,"assignCategoriesMapProp"),mt(Gfe,"singleAssignCategoriesToksMap"),mt(Ufe,"hasShortKeyProperty"),mt(qfe,"hasCategoriesProperty"),mt(jfe,"hasExtendingTokensTypesProperty"),mt(Yfe,"hasExtendingTokensTypesMapProperty"),mt(Wfe,"isTokenType")}),eme=b(()=>{Xfe={buildUnableToPopLexerModeMessage(e){return`Unable to pop Lexer Mode after encountering Token ->${e.image}<- The Mode Stack is empty`},buildUnexpectedCharactersMessage(e,t,r,n,i){return`unexpected character: ->${e.charAt(t)}<- at offset: ${t}, skipped ${r} characters.`}}}),tme=b(()=>{var e;Mfe(),KW(),Xge(),Jfe(),eme(),$1e(),(e=Kfe=Kfe||{})[e.MISSING_PATTERN=0]="MISSING_PATTERN",e[e.INVALID_PATTERN=1]="INVALID_PATTERN",e[e.EOI_ANCHOR_FOUND=2]="EOI_ANCHOR_FOUND",e[e.UNSUPPORTED_FLAGS_FOUND=3]="UNSUPPORTED_FLAGS_FOUND",e[e.DUPLICATE_PATTERNS_FOUND=4]="DUPLICATE_PATTERNS_FOUND",e[e.INVALID_GROUP_TYPE_FOUND=5]="INVALID_GROUP_TYPE_FOUND",e[e.PUSH_MODE_DOES_NOT_EXIST=6]="PUSH_MODE_DOES_NOT_EXIST",e[e.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE=7]="MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE",e[e.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY=8]="MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY",e[e.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST=9]="MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST",e[e.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED=10]="LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED",e[e.SOI_ANCHOR_FOUND=11]="SOI_ANCHOR_FOUND",e[e.EMPTY_MATCH_PATTERN=12]="EMPTY_MATCH_PATTERN",e[e.NO_LINE_BREAKS_FLAGS=13]="NO_LINE_BREAKS_FLAGS",e[e.UNREACHABLE_PATTERN=14]="UNREACHABLE_PATTERN",e[e.IDENTIFY_TERMINATOR=15]="IDENTIFY_TERMINATOR",e[e.CUSTOM_LINE_BREAK=16]="CUSTOM_LINE_BREAK",e[e.MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE=17]="MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE",Zfe={deferDefinitionErrorsHandling:!1,positionTracking:"full",lineTerminatorsPattern:/\n|\r\n?/g,lineTerminatorCharacters:[` For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#CUSTOM_LINE_BREAK`;throw Error("non exhaustive match")}function bfe(e){return x(e,e=>sj(e)?e.charCodeAt(0):e)}function wfe(e,t,r){void 0===e[t]?e[t]=[r]:e[t].push(r)}function kfe(e){return e<Ife?e:Rfe[e]}function Tfe(){if(Cj(Rfe)){Rfe=new Array(65536);for(let e=0;e<65536;e++)Rfe[e]=255<e?255+~~(e/255):e}}var Efe,Cfe,Sfe,_fe,Afe,Lfe,Nfe,Ife,Rfe,Mfe=b(()=>{$0e(),tme(),KW(),Xge(),X1e(),$1e(),Efe="PATTERN",Cfe="defaultMode",Sfe="modes",_fe="boolean"==typeof new RegExp("(?:)").sticky,mt(K1e,"analyzeTokenTypes"),mt(Z1e,"validatePatterns"),mt(Q1e,"validateRegExpPattern"),mt(J1e,"findMissingPatterns"),mt(efe,"findInvalidPatterns"),Afe=/[^\\][$]/,mt(tfe,"findEndOfInputAnchor"),mt(rfe,"findEmptyMatchRegExps"),Lfe=/[^\\[][\^]|^\^/,mt(nfe,"findStartOfInputAnchor"),mt(ife,"findUnsupportedFlags"),mt(afe,"findDuplicatePatterns"),mt(sfe,"findInvalidGroupType"),mt(ofe,"findModesThatDoNotExist"),mt(lfe,"findUnreachablePatterns"),mt(cfe,"testTokenType"),mt(hfe,"noMetaChar"),mt(ufe,"addStartOfInput"),mt(dfe,"addStickyFlag"),mt(pfe,"performRuntimeChecks"),mt(gfe,"performWarningRuntimeChecks"),mt(ffe,"cloneEmptyGroups"),mt(mfe,"isCustomPattern"),mt(yfe,"isShortPattern"),Nfe={test:mt(function(t){var r=t.length;for(let e=this.lastIndex;e<r;e++){var n=t.charCodeAt(e);if(10===n)return this.lastIndex=e+1,!0;if(13===n)return 10===t.charCodeAt(e+1)?this.lastIndex=e+2:this.lastIndex=e+1,!0}return!1},"test"),lastIndex:0},mt(vfe,"checkLineBreaksIssues"),mt(xfe,"buildLineBreakIssueMessage"),mt(bfe,"getCharCodes"),mt(wfe,"addToMapOfArrays"),Ife=256,Rfe=[],mt(kfe,"charCodeToOptimizedIndex"),mt(Tfe,"initCharCodeToOptimizedIndexMap")});function Dfe(e,t){return(e=e.tokenTypeIdx)===t.tokenTypeIdx||!0===t.isParent&&!0===t.categoryMatchesMap[e]}function Ofe(e,t){return e.tokenTypeIdx===t.tokenTypeIdx}function Pfe(e){$fe(e=Bfe(e)),zfe(e),Ffe(e),v(e,e=>{e.isParent=0<e.categoryMatches.length})}function Bfe(e){let t=wz(e),r=e,n=!0;for(;n;){r=_z(p$(x(r,e=>e.CATEGORIES)));var i=BU(r,t);t=t.concat(i),Cj(i)?n=!1:r=i}return t}function $fe(e){v(e,e=>{Ufe(e)||((Vfe[Hfe]=e).tokenTypeIdx=Hfe++),qfe(e)&&!n8(e.CATEGORIES)&&(e.CATEGORIES=[e.CATEGORIES]),qfe(e)||(e.CATEGORIES=[]),jfe(e)||(e.categoryMatches=[]),Yfe(e)||(e.categoryMatchesMap={})})}function Ffe(e){v(e,r=>{r.categoryMatches=[],v(r.categoryMatchesMap,(e,t)=>{r.categoryMatches.push(Vfe[t].tokenTypeIdx)})})}function zfe(e){v(e,e=>{Gfe([],e)})}function Gfe(r,n){v(r,e=>{n.categoryMatchesMap[e.tokenTypeIdx]=!0}),v(n.CATEGORIES,e=>{var t=r.concat(n);mj(t,e)||Gfe(t,e)})}function Ufe(e){return nj(e,"tokenTypeIdx")}function qfe(e){return nj(e,"CATEGORIES")}function jfe(e){return nj(e,"categoryMatches")}function Yfe(e){return nj(e,"categoryMatchesMap")}function Wfe(e){return nj(e,"tokenTypeIdx")}var Hfe,Vfe,Xfe,Kfe,Zfe,Qfe,Jfe=b(()=>{KW(),mt(Dfe,"tokenStructuredMatcher"),mt(Ofe,"tokenStructuredMatcherNoCategories"),Hfe=1,Vfe={},mt(Pfe,"augmentTokenTypes"),mt(Bfe,"expandCategories"),mt($fe,"assignTokenDefaultProps"),mt(Ffe,"assignCategoriesTokensProp"),mt(zfe,"assignCategoriesMapProp"),mt(Gfe,"singleAssignCategoriesToksMap"),mt(Ufe,"hasShortKeyProperty"),mt(qfe,"hasCategoriesProperty"),mt(jfe,"hasExtendingTokensTypesProperty"),mt(Yfe,"hasExtendingTokensTypesMapProperty"),mt(Wfe,"isTokenType")}),eme=b(()=>{Xfe={buildUnableToPopLexerModeMessage(e){return`Unable to pop Lexer Mode after encountering Token ->${e.image}<- The Mode Stack is empty`},buildUnexpectedCharactersMessage(e,t,r,n,i){return`unexpected character: ->${e.charAt(t)}<- at offset: ${t}, skipped ${r} characters.`}}}),tme=b(()=>{var e;Mfe(),KW(),Xge(),Jfe(),eme(),$1e(),(e=Kfe=Kfe||{})[e.MISSING_PATTERN=0]="MISSING_PATTERN",e[e.INVALID_PATTERN=1]="INVALID_PATTERN",e[e.EOI_ANCHOR_FOUND=2]="EOI_ANCHOR_FOUND",e[e.UNSUPPORTED_FLAGS_FOUND=3]="UNSUPPORTED_FLAGS_FOUND",e[e.DUPLICATE_PATTERNS_FOUND=4]="DUPLICATE_PATTERNS_FOUND",e[e.INVALID_GROUP_TYPE_FOUND=5]="INVALID_GROUP_TYPE_FOUND",e[e.PUSH_MODE_DOES_NOT_EXIST=6]="PUSH_MODE_DOES_NOT_EXIST",e[e.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE=7]="MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE",e[e.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY=8]="MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY",e[e.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST=9]="MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST",e[e.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED=10]="LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED",e[e.SOI_ANCHOR_FOUND=11]="SOI_ANCHOR_FOUND",e[e.EMPTY_MATCH_PATTERN=12]="EMPTY_MATCH_PATTERN",e[e.NO_LINE_BREAKS_FLAGS=13]="NO_LINE_BREAKS_FLAGS",e[e.UNREACHABLE_PATTERN=14]="UNREACHABLE_PATTERN",e[e.IDENTIFY_TERMINATOR=15]="IDENTIFY_TERMINATOR",e[e.CUSTOM_LINE_BREAK=16]="CUSTOM_LINE_BREAK",e[e.MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE=17]="MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE",Zfe={deferDefinitionErrorsHandling:!1,positionTracking:"full",lineTerminatorsPattern:/\n|\r\n?/g,lineTerminatorCharacters:[`
`,"\r"],ensureOptimizations:!1,safeMode:!1,errorMessageProvider:Xfe,traceInitPerf:!1,skipValidations:!1,recoveryEnabled:!0},Object.freeze(Zfe),(Qfe=class{static{mt(this,"Lexer")}constructor(i,a=Zfe){if(this.lexerDefinition=i,this.lexerDefinitionErrors=[],this.lexerDefinitionWarning=[],this.patternIdxToConfig={},this.charCodeToPatternIdxToConfig={},this.modes=[],this.emptyGroups={},this.trackStartLines=!0,this.trackEndLines=!0,this.hasCustom=!1,this.canModeBeOptimized={},this.TRACE_INIT=(e,t)=>{var r,n,i,a;return!0===this.traceInitPerf?(this.traceInitIndent++,r=new Array(this.traceInitIndent+1).join("\t"),{time:n,value:i}=(this.traceInitIndent<this.traceInitMaxIdent&&console.log(r+`--> <${e}>`),Yge(t)),a=10<n?console.warn:console.log,this.traceInitIndent<this.traceInitMaxIdent&&a(r+`<-- <${e}> time: ${n}ms`),this.traceInitIndent--,i):t()},"boolean"==typeof a)throw Error(`The second argument to the Lexer constructor is now an ILexerConfig Object. `,"\r"],ensureOptimizations:!1,safeMode:!1,errorMessageProvider:Xfe,traceInitPerf:!1,skipValidations:!1,recoveryEnabled:!0},Object.freeze(Zfe),(Qfe=class{static{mt(this,"Lexer")}constructor(i,a=Zfe){if(this.lexerDefinition=i,this.lexerDefinitionErrors=[],this.lexerDefinitionWarning=[],this.patternIdxToConfig={},this.charCodeToPatternIdxToConfig={},this.modes=[],this.emptyGroups={},this.trackStartLines=!0,this.trackEndLines=!0,this.hasCustom=!1,this.canModeBeOptimized={},this.TRACE_INIT=(e,t)=>{var r,n,i,a;return!0===this.traceInitPerf?(this.traceInitIndent++,r=new Array(this.traceInitIndent+1).join("\t"),{time:n,value:i}=(this.traceInitIndent<this.traceInitMaxIdent&&console.log(r+`--> <${e}>`),Yge(t)),a=10<n?console.warn:console.log,this.traceInitIndent<this.traceInitMaxIdent&&a(r+`<-- <${e}> time: ${n}ms`),this.traceInitIndent--,i):t()},"boolean"==typeof a)throw Error(`The second argument to the Lexer constructor is now an ILexerConfig Object.
a boolean 2nd argument is no longer supported`);this.config=CB({},Zfe,a);var e=this.config.traceInitPerf;!0===e?(this.traceInitMaxIdent=1/0,this.traceInitPerf=!0):"number"==typeof e&&(this.traceInitMaxIdent=e,this.traceInitPerf=!0),this.traceInitIndent=-1,this.TRACE_INIT("Lexer Constructor",()=>{let r,e=!0,n=(this.TRACE_INIT("Lexer Config handling",()=>{if(this.config.lineTerminatorsPattern===Zfe.lineTerminatorsPattern)this.config.lineTerminatorsPattern=Nfe;else if(this.config.lineTerminatorCharacters===Zfe.lineTerminatorCharacters)throw Error(`Error: Missing <lineTerminatorCharacters> property on the Lexer config. a boolean 2nd argument is no longer supported`);this.config=CB({},Zfe,a);var e=this.config.traceInitPerf;!0===e?(this.traceInitMaxIdent=1/0,this.traceInitPerf=!0):"number"==typeof e&&(this.traceInitMaxIdent=e,this.traceInitPerf=!0),this.traceInitIndent=-1,this.TRACE_INIT("Lexer Constructor",()=>{let r,e=!0,n=(this.TRACE_INIT("Lexer Config handling",()=>{if(this.config.lineTerminatorsPattern===Zfe.lineTerminatorsPattern)this.config.lineTerminatorsPattern=Nfe;else if(this.config.lineTerminatorCharacters===Zfe.lineTerminatorCharacters)throw Error(`Error: Missing <lineTerminatorCharacters> property on the Lexer config.
For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#MISSING_LINE_TERM_CHARS`);if(a.safeMode&&a.ensureOptimizations)throw Error('"safeMode" and "ensureOptimizations" flags are mutually exclusive.');this.trackStartLines=/full|onlyStart/i.test(this.config.positionTracking),this.trackEndLines=/full/i.test(this.config.positionTracking),r=n8(i)?{modes:{defaultMode:wz(i)},defaultMode:Cfe}:(e=!1,wz(i))}),!1===this.config.skipValidations&&(this.TRACE_INIT("performRuntimeChecks",()=>{this.lexerDefinitionErrors=this.lexerDefinitionErrors.concat(pfe(r,this.trackStartLines,this.config.lineTerminatorCharacters))}),this.TRACE_INIT("performWarningRuntimeChecks",()=>{this.lexerDefinitionWarning=this.lexerDefinitionWarning.concat(gfe(r,this.trackStartLines,this.config.lineTerminatorCharacters))})),r.modes=r.modes||{},v(r.modes,(e,t)=>{r.modes[t]=uW(e,e=>Dj(e))}),kB(r.modes)),t;if(v(r.modes,(t,r)=>{this.TRACE_INIT(`Mode: <${r}> processing`,()=>{if(this.modes.push(r),!1===this.config.skipValidations&&this.TRACE_INIT("validatePatterns",()=>{this.lexerDefinitionErrors=this.lexerDefinitionErrors.concat(Z1e(t,n))}),Cj(this.lexerDefinitionErrors)){Pfe(t);let e;this.TRACE_INIT("analyzeTokenTypes",()=>{e=K1e(t,{lineTerminatorCharacters:this.config.lineTerminatorCharacters,positionTracking:a.positionTracking,ensureOptimizations:a.ensureOptimizations,safeMode:a.safeMode,tracer:this.TRACE_INIT})}),this.patternIdxToConfig[r]=e.patternIdxToConfig,this.charCodeToPatternIdxToConfig[r]=e.charCodeToPatternIdxToConfig,this.emptyGroups=CB({},this.emptyGroups,e.emptyGroups),this.hasCustom=e.hasCustom||this.hasCustom,this.canModeBeOptimized[r]=e.canBeOptimized}})}),this.defaultMode=r.defaultMode,!Cj(this.lexerDefinitionErrors)&&!this.config.deferDefinitionErrorsHandling)throw t=x(this.lexerDefinitionErrors,e=>e.message).join(`----------------------- For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#MISSING_LINE_TERM_CHARS`);if(a.safeMode&&a.ensureOptimizations)throw Error('"safeMode" and "ensureOptimizations" flags are mutually exclusive.');this.trackStartLines=/full|onlyStart/i.test(this.config.positionTracking),this.trackEndLines=/full/i.test(this.config.positionTracking),r=n8(i)?{modes:{defaultMode:wz(i)},defaultMode:Cfe}:(e=!1,wz(i))}),!1===this.config.skipValidations&&(this.TRACE_INIT("performRuntimeChecks",()=>{this.lexerDefinitionErrors=this.lexerDefinitionErrors.concat(pfe(r,this.trackStartLines,this.config.lineTerminatorCharacters))}),this.TRACE_INIT("performWarningRuntimeChecks",()=>{this.lexerDefinitionWarning=this.lexerDefinitionWarning.concat(gfe(r,this.trackStartLines,this.config.lineTerminatorCharacters))})),r.modes=r.modes||{},v(r.modes,(e,t)=>{r.modes[t]=uW(e,e=>Dj(e))}),kB(r.modes)),t;if(v(r.modes,(t,r)=>{this.TRACE_INIT(`Mode: <${r}> processing`,()=>{if(this.modes.push(r),!1===this.config.skipValidations&&this.TRACE_INIT("validatePatterns",()=>{this.lexerDefinitionErrors=this.lexerDefinitionErrors.concat(Z1e(t,n))}),Cj(this.lexerDefinitionErrors)){Pfe(t);let e;this.TRACE_INIT("analyzeTokenTypes",()=>{e=K1e(t,{lineTerminatorCharacters:this.config.lineTerminatorCharacters,positionTracking:a.positionTracking,ensureOptimizations:a.ensureOptimizations,safeMode:a.safeMode,tracer:this.TRACE_INIT})}),this.patternIdxToConfig[r]=e.patternIdxToConfig,this.charCodeToPatternIdxToConfig[r]=e.charCodeToPatternIdxToConfig,this.emptyGroups=CB({},this.emptyGroups,e.emptyGroups),this.hasCustom=e.hasCustom||this.hasCustom,this.canModeBeOptimized[r]=e.canBeOptimized}})}),this.defaultMode=r.defaultMode,!Cj(this.lexerDefinitionErrors)&&!this.config.deferDefinitionErrorsHandling)throw t=x(this.lexerDefinitionErrors,e=>e.message).join(`-----------------------
`),new Error(`Errors detected in definition of Lexer: `),new Error(`Errors detected in definition of Lexer:
`+t);v(this.lexerDefinitionWarning,e=>{qge(e.message)}),this.TRACE_INIT("Choosing sub-methods implementations",()=>{if(Sfe?(this.chopInput=PE,this.match=this.matchWithTest):(this.updateLastIndex=HP,this.match=this.matchWithExec),e&&(this.handleModes=HP),!1===this.trackStartLines&&(this.computeNewColumn=PE),!1===this.trackEndLines&&(this.updateTokenEndLineColumnLocation=HP),/full/i.test(this.config.positionTracking))this.createTokenInstance=this.createFullToken;else if(/onlyStart/i.test(this.config.positionTracking))this.createTokenInstance=this.createStartOnlyToken;else{if(!/onlyOffset/i.test(this.config.positionTracking))throw Error(`Invalid <positionTracking> config option: "${this.config.positionTracking}"`);this.createTokenInstance=this.createOffsetOnlyToken}this.hasCustom?(this.addToken=this.addTokenUsingPush,this.handlePayload=this.handlePayloadWithCustom):(this.addToken=this.addTokenUsingMemberAccess,this.handlePayload=this.handlePayloadNoCustom)}),this.TRACE_INIT("Failed Optimization Warnings",()=>{var e=lW(this.canModeBeOptimized,(e,t,r)=>(!1===t&&e.push(r),e),[]);if(a.ensureOptimizations&&!Cj(e))throw Error(`Lexer Modes: < ${e.join(", ")} > cannot be optimized. `+t);v(this.lexerDefinitionWarning,e=>{qge(e.message)}),this.TRACE_INIT("Choosing sub-methods implementations",()=>{if(_fe?(this.chopInput=PE,this.match=this.matchWithTest):(this.updateLastIndex=HP,this.match=this.matchWithExec),e&&(this.handleModes=HP),!1===this.trackStartLines&&(this.computeNewColumn=PE),!1===this.trackEndLines&&(this.updateTokenEndLineColumnLocation=HP),/full/i.test(this.config.positionTracking))this.createTokenInstance=this.createFullToken;else if(/onlyStart/i.test(this.config.positionTracking))this.createTokenInstance=this.createStartOnlyToken;else{if(!/onlyOffset/i.test(this.config.positionTracking))throw Error(`Invalid <positionTracking> config option: "${this.config.positionTracking}"`);this.createTokenInstance=this.createOffsetOnlyToken}this.hasCustom?(this.addToken=this.addTokenUsingPush,this.handlePayload=this.handlePayloadWithCustom):(this.addToken=this.addTokenUsingMemberAccess,this.handlePayload=this.handlePayloadNoCustom)}),this.TRACE_INIT("Failed Optimization Warnings",()=>{var e=lW(this.canModeBeOptimized,(e,t,r)=>(!1===t&&e.push(r),e),[]);if(a.ensureOptimizations&&!Cj(e))throw Error(`Lexer Modes: < ${e.join(", ")} > cannot be optimized.
Disable the "ensureOptimizations" lexer config flag to silently ignore this and run the lexer in an un-optimized mode. Disable the "ensureOptimizations" lexer config flag to silently ignore this and run the lexer in an un-optimized mode.
Or inspect the console log for details on how to resolve these issues.`)}),this.TRACE_INIT("clearRegExpParserCache",()=>{O1e()}),this.TRACE_INIT("toFastProperties",()=>{Hge(this)})})}tokenize(e,t=this.defaultMode){if(Cj(this.lexerDefinitionErrors))return this.tokenizeInternal(e,t);throw e=x(this.lexerDefinitionErrors,e=>e.message).join(`----------------------- Or inspect the console log for details on how to resolve these issues.`)}),this.TRACE_INIT("clearRegExpParserCache",()=>{O1e()}),this.TRACE_INIT("toFastProperties",()=>{Hge(this)})})}tokenize(e,t=this.defaultMode){if(Cj(this.lexerDefinitionErrors))return this.tokenizeInternal(e,t);throw e=x(this.lexerDefinitionErrors,e=>e.message).join(`-----------------------
`),new Error(`Unable to Tokenize because Errors detected in definition of Lexer: `),new Error(`Unable to Tokenize because Errors detected in definition of Lexer:
`+e)}tokenizeInternal(i,P){let e,a,t,r,n,s,o,l,c,h,B,u,d,$,p,g=i,F=g.length,f=0,m=0,z=this.hasCustom?0:Math.floor(i.length/10),y=new Array(z),v=[],x=this.trackStartLines?1:void 0,b=this.trackStartLines?1:void 0,w=ffe(this.emptyGroups),G=this.trackStartLines,k=this.config.lineTerminatorsPattern,T=0,E=[],C=[],_=[],U=[];Object.freeze(U);let S;function A(){return E}function L(e){return e=kfe(e),void 0===(e=C[e])?U:e}mt(A,"getPossiblePatternsSlow"),mt(L,"getPossiblePatternsOptimized");var q=mt(e=>{var t;1===_.length&&void 0===e.tokenType.PUSH_MODE?(t=this.config.errorMessageProvider.buildUnableToPopLexerModeMessage(e),v.push({offset:e.startOffset,line:e.startLine,column:e.startColumn,length:e.image.length,message:t})):(_.pop(),e=GU(_),E=this.patternIdxToConfig[e],C=this.charCodeToPatternIdxToConfig[e],T=E.length,t=this.canModeBeOptimized[e]&&!1===this.config.safeMode,S=C&&t?L:A)},"pop_mode");function N(e){_.push(e),C=this.charCodeToPatternIdxToConfig[e],E=this.patternIdxToConfig[e],T=E.length,T=E.length,e=this.canModeBeOptimized[e]&&!1===this.config.safeMode,S=C&&e?L:A}mt(N,"push_mode"),N.call(this,P);let I,j=this.config.recoveryEnabled;for(;f<F;){s=null;var Y=g.charCodeAt(f),W=S(Y),H=W.length;for(e=0;e<H;e++){var R=(I=W[e]).pattern,V=(o=null,I.short);if(!1!==V?Y===V&&(s=R):!0===I.isCustom?null!==(p=R.exec(g,f,y,w))?(s=p[0],void 0!==p.payload&&(o=p.payload)):s=null:(this.updateLastIndex(R,f),s=this.match(R,i,f)),null!==s){if(void 0!==(n=I.longerAlt)){var X=n.length;for(t=0;t<X;t++){var M=E[n[t]],D=M.pattern;if(!(l=null)===M.isCustom?null!==(p=D.exec(g,f,y,w))?(r=p[0],void 0!==p.payload&&(l=p.payload)):r=null:(this.updateLastIndex(D,f),r=this.match(D,i,f)),r&&r.length>s.length){s=r,o=l,I=M;break}}}break}}if(null!==s){if(c=s.length,void 0!==(h=I.group)&&(B=I.tokenTypeIdx,u=this.createTokenInstance(s,f,B,I.tokenType,x,b,c),this.handlePayload(u,o),!1===h?m=this.addToken(y,m,u):w[h].push(u)),i=this.chopInput(i,c),f+=c,b=this.computeNewColumn(b,c),!0===G&&!0===I.canLineTerminator){let e=0,t,r;for(k.lastIndex=0;!0===(t=k.test(s))&&(r=k.lastIndex-1,e++),!0===t;);0!==e&&(x+=e,b=c-r,this.updateTokenEndLineColumnLocation(u,h,r,e,x,b,c))}this.handleModes(I,q,N,u)}else{let e=f,t=x,r=b,n=!1===j;for(;!1===n&&f<F;)for(i=this.chopInput(i,1),f++,a=0;a<T;a++){var O=E[a],K=O.pattern,Z=O.short;if(!1!==Z?g.charCodeAt(f)===Z&&(n=!0):n=!0===O.isCustom?null!==K.exec(g,f,y,w):(this.updateLastIndex(K,f),null!==K.exec(i)),!0===n)break}if(d=f-e,b=this.computeNewColumn(b,d),$=this.config.errorMessageProvider.buildUnexpectedCharactersMessage(g,e,d,t,r),v.push({offset:e,line:t,column:r,length:d,message:$}),!1===j)break}}return this.hasCustom||(y.length=m),{tokens:y,groups:w,errors:v}}handleModes(e,t,r,n){var i;!0===e.pop?(i=e.push,t(n),void 0!==i&&r.call(this,i)):void 0!==e.push&&r.call(this,e.push)}chopInput(e,t){return e.substring(t)}updateLastIndex(e,t){e.lastIndex=t}updateTokenEndLineColumnLocation(e,t,r,n,i,a,s){void 0!==t&&(r=(t=r===s-1)?-1:0,1===n&&1==t||(e.endLine=i+r,e.endColumn=a-1-r))}computeNewColumn(e,t){return e+t}createOffsetOnlyToken(e,t,r,n){return{image:e,startOffset:t,tokenTypeIdx:r,tokenType:n}}createStartOnlyToken(e,t,r,n,i,a){return{image:e,startOffset:t,startLine:i,startColumn:a,tokenTypeIdx:r,tokenType:n}}createFullToken(e,t,r,n,i,a,s){return{image:e,startOffset:t,endOffset:t+s-1,startLine:i,endLine:i,startColumn:a,endColumn:a+s-1,tokenTypeIdx:r,tokenType:n}}addTokenUsingPush(e,t,r){return e.push(r),t}addTokenUsingMemberAccess(e,t,r){return e[t]=r,++t}handlePayloadNoCustom(e,t){}handlePayloadWithCustom(e,t){null!==t&&(e.payload=t)}matchWithTest(e,t,r){return!0===e.test(t)?t.substring(r,e.lastIndex):null}matchWithExec(e,t){return null!==(e=e.exec(t))?e[0]:null}}).SKIPPED="This marks a skipped Token pattern, this means each token identified by it willbe consumed and then thrown into oblivion, this can be used to for example to completely ignore whitespace.",Qfe.NA=/NOT_APPLICABLE/});function rme(e){return nme(e)?e.LABEL:e.name}function nme(e){return sj(e.LABEL)&&""!==e.LABEL}function ime(e){return ame(e)}function ame(e){var t=e.pattern,r={};if(r.name=e.name,Dj(t)||(r.PATTERN=t),nj(e,lme))throw`The parent property is no longer supported. `+e)}tokenizeInternal(i,P){let e,a,t,r,n,s,o,l,c,h,B,u,d,$,p,g=i,F=g.length,f=0,m=0,z=this.hasCustom?0:Math.floor(i.length/10),y=new Array(z),v=[],x=this.trackStartLines?1:void 0,b=this.trackStartLines?1:void 0,w=ffe(this.emptyGroups),G=this.trackStartLines,k=this.config.lineTerminatorsPattern,T=0,E=[],C=[],S=[],U=[];Object.freeze(U);let _;function A(){return E}function L(e){return e=kfe(e),void 0===(e=C[e])?U:e}mt(A,"getPossiblePatternsSlow"),mt(L,"getPossiblePatternsOptimized");var q=mt(e=>{var t;1===S.length&&void 0===e.tokenType.PUSH_MODE?(t=this.config.errorMessageProvider.buildUnableToPopLexerModeMessage(e),v.push({offset:e.startOffset,line:e.startLine,column:e.startColumn,length:e.image.length,message:t})):(S.pop(),e=GU(S),E=this.patternIdxToConfig[e],C=this.charCodeToPatternIdxToConfig[e],T=E.length,t=this.canModeBeOptimized[e]&&!1===this.config.safeMode,_=C&&t?L:A)},"pop_mode");function N(e){S.push(e),C=this.charCodeToPatternIdxToConfig[e],E=this.patternIdxToConfig[e],T=E.length,T=E.length,e=this.canModeBeOptimized[e]&&!1===this.config.safeMode,_=C&&e?L:A}mt(N,"push_mode"),N.call(this,P);let I,j=this.config.recoveryEnabled;for(;f<F;){s=null;var Y=g.charCodeAt(f),W=_(Y),H=W.length;for(e=0;e<H;e++){var R=(I=W[e]).pattern,V=(o=null,I.short);if(!1!==V?Y===V&&(s=R):!0===I.isCustom?null!==(p=R.exec(g,f,y,w))?(s=p[0],void 0!==p.payload&&(o=p.payload)):s=null:(this.updateLastIndex(R,f),s=this.match(R,i,f)),null!==s){if(void 0!==(n=I.longerAlt)){var X=n.length;for(t=0;t<X;t++){var M=E[n[t]],D=M.pattern;if(!(l=null)===M.isCustom?null!==(p=D.exec(g,f,y,w))?(r=p[0],void 0!==p.payload&&(l=p.payload)):r=null:(this.updateLastIndex(D,f),r=this.match(D,i,f)),r&&r.length>s.length){s=r,o=l,I=M;break}}}break}}if(null!==s){if(c=s.length,void 0!==(h=I.group)&&(B=I.tokenTypeIdx,u=this.createTokenInstance(s,f,B,I.tokenType,x,b,c),this.handlePayload(u,o),!1===h?m=this.addToken(y,m,u):w[h].push(u)),i=this.chopInput(i,c),f+=c,b=this.computeNewColumn(b,c),!0===G&&!0===I.canLineTerminator){let e=0,t,r;for(k.lastIndex=0;!0===(t=k.test(s))&&(r=k.lastIndex-1,e++),!0===t;);0!==e&&(x+=e,b=c-r,this.updateTokenEndLineColumnLocation(u,h,r,e,x,b,c))}this.handleModes(I,q,N,u)}else{let e=f,t=x,r=b,n=!1===j;for(;!1===n&&f<F;)for(i=this.chopInput(i,1),f++,a=0;a<T;a++){var O=E[a],K=O.pattern,Z=O.short;if(!1!==Z?g.charCodeAt(f)===Z&&(n=!0):n=!0===O.isCustom?null!==K.exec(g,f,y,w):(this.updateLastIndex(K,f),null!==K.exec(i)),!0===n)break}if(d=f-e,b=this.computeNewColumn(b,d),$=this.config.errorMessageProvider.buildUnexpectedCharactersMessage(g,e,d,t,r),v.push({offset:e,line:t,column:r,length:d,message:$}),!1===j)break}}return this.hasCustom||(y.length=m),{tokens:y,groups:w,errors:v}}handleModes(e,t,r,n){var i;!0===e.pop?(i=e.push,t(n),void 0!==i&&r.call(this,i)):void 0!==e.push&&r.call(this,e.push)}chopInput(e,t){return e.substring(t)}updateLastIndex(e,t){e.lastIndex=t}updateTokenEndLineColumnLocation(e,t,r,n,i,a,s){void 0!==t&&(r=(t=r===s-1)?-1:0,1===n&&1==t||(e.endLine=i+r,e.endColumn=a-1-r))}computeNewColumn(e,t){return e+t}createOffsetOnlyToken(e,t,r,n){return{image:e,startOffset:t,tokenTypeIdx:r,tokenType:n}}createStartOnlyToken(e,t,r,n,i,a){return{image:e,startOffset:t,startLine:i,startColumn:a,tokenTypeIdx:r,tokenType:n}}createFullToken(e,t,r,n,i,a,s){return{image:e,startOffset:t,endOffset:t+s-1,startLine:i,endLine:i,startColumn:a,endColumn:a+s-1,tokenTypeIdx:r,tokenType:n}}addTokenUsingPush(e,t,r){return e.push(r),t}addTokenUsingMemberAccess(e,t,r){return e[t]=r,++t}handlePayloadNoCustom(e,t){}handlePayloadWithCustom(e,t){null!==t&&(e.payload=t)}matchWithTest(e,t,r){return!0===e.test(t)?t.substring(r,e.lastIndex):null}matchWithExec(e,t){return null!==(e=e.exec(t))?e[0]:null}}).SKIPPED="This marks a skipped Token pattern, this means each token identified by it willbe consumed and then thrown into oblivion, this can be used to for example to completely ignore whitespace.",Qfe.NA=/NOT_APPLICABLE/});function rme(e){return nme(e)?e.LABEL:e.name}function nme(e){return sj(e.LABEL)&&""!==e.LABEL}function ime(e){return ame(e)}function ame(e){var t=e.pattern,r={};if(r.name=e.name,Dj(t)||(r.PATTERN=t),nj(e,lme))throw`The parent property is no longer supported.
See: https://github.com/chevrotain/chevrotain/issues/564#issuecomment-349062346 for details.`;return nj(e,cme)&&(r.CATEGORIES=e[cme]),Pfe([r]),nj(e,hme)&&(r.LABEL=e[hme]),nj(e,ume)&&(r.GROUP=e[ume]),nj(e,pme)&&(r.POP_MODE=e[pme]),nj(e,dme)&&(r.PUSH_MODE=e[dme]),nj(e,gme)&&(r.LONGER_ALT=e[gme]),nj(e,fme)&&(r.LINE_BREAKS=e[fme]),nj(e,mme)&&(r.START_CHARS_HINT=e[mme]),r}function sme(e,t,r,n,i,a,s,o){return{image:t,startOffset:r,endOffset:n,startLine:i,endLine:a,startColumn:s,endColumn:o,tokenTypeIdx:e.tokenTypeIdx,tokenType:e}}function ome(e,t){return Dfe(e,t)}var lme,cme,hme,ume,dme,pme,gme,fme,mme,yme,vme,xme,bme,wme=b(()=>{KW(),tme(),Jfe(),mt(rme,"tokenLabel"),mt(nme,"hasTokenLabel"),lme="parent",cme="categories",hme="label",ume="group",dme="push_mode",pme="pop_mode",gme="longer_alt",fme="line_breaks",mme="start_chars_hint",mt(ime,"createToken"),mt(ame,"createTokenInternal"),Pfe([yme=ime({name:"EOF",pattern:Qfe.NA})]),mt(sme,"createTokenInstance"),mt(ome,"tokenMatcher")}),kme=b(()=>{wme(),KW(),x1e(),vme={buildMismatchTokenMessage({expected:e,actual:t}){return`Expecting ${nme(e)?`--> ${rme(e)} <--`:`token of type --> ${e.name} <--`} but found --> '${t.image}' <--`},buildNotAllInputParsedMessage({firstRedundant:e}){return"Redundant input, expecting EOF but found: "+e.image},buildNoViableAltMessage({expectedPathsPerAlt:e,actual:t,customUserDescription:r}){var n="Expecting: ",t=` See: https://github.com/chevrotain/chevrotain/issues/564#issuecomment-349062346 for details.`;return nj(e,cme)&&(r.CATEGORIES=e[cme]),Pfe([r]),nj(e,hme)&&(r.LABEL=e[hme]),nj(e,ume)&&(r.GROUP=e[ume]),nj(e,pme)&&(r.POP_MODE=e[pme]),nj(e,dme)&&(r.PUSH_MODE=e[dme]),nj(e,gme)&&(r.LONGER_ALT=e[gme]),nj(e,fme)&&(r.LINE_BREAKS=e[fme]),nj(e,mme)&&(r.START_CHARS_HINT=e[mme]),r}function sme(e,t,r,n,i,a,s,o){return{image:t,startOffset:r,endOffset:n,startLine:i,endLine:a,startColumn:s,endColumn:o,tokenTypeIdx:e.tokenTypeIdx,tokenType:e}}function ome(e,t){return Dfe(e,t)}var lme,cme,hme,ume,dme,pme,gme,fme,mme,yme,vme,xme,bme,wme=b(()=>{KW(),tme(),Jfe(),mt(rme,"tokenLabel"),mt(nme,"hasTokenLabel"),lme="parent",cme="categories",hme="label",ume="group",dme="push_mode",pme="pop_mode",gme="longer_alt",fme="line_breaks",mme="start_chars_hint",mt(ime,"createToken"),mt(ame,"createTokenInternal"),Pfe([yme=ime({name:"EOF",pattern:Qfe.NA})]),mt(sme,"createTokenInstance"),mt(ome,"tokenMatcher")}),kme=b(()=>{wme(),KW(),x1e(),vme={buildMismatchTokenMessage({expected:e,actual:t}){return`Expecting ${nme(e)?`--> ${rme(e)} <--`:`token of type --> ${e.name} <--`} but found --> '${t.image}' <--`},buildNotAllInputParsedMessage({firstRedundant:e}){return"Redundant input, expecting EOF but found: "+e.image},buildNoViableAltMessage({expectedPathsPerAlt:e,actual:t,customUserDescription:r}){var n="Expecting: ",t=`
but found: '`+Sq(t).image+"'";return r?n+r+t:(r=lW(e,(e,t)=>e.concat(t),[]),e=x(r,e=>`[${x(e,e=>rme(e)).join(", ")}]`),n+`one of these possible Token sequences: but found: '`+_q(t).image+"'";return r?n+r+t:(r=lW(e,(e,t)=>e.concat(t),[]),e=x(r,e=>`[${x(e,e=>rme(e)).join(", ")}]`),n+`one of these possible Token sequences:
`+x(e,(e,t)=>` ${t+1}. `+e).join(` `+x(e,(e,t)=>` ${t+1}. `+e).join(`
`)+t)},buildEarlyExitMessage({expectedIterationPaths:e,actual:t,customUserDescription:r}){var n="Expecting: ",t=` `)+t)},buildEarlyExitMessage({expectedIterationPaths:e,actual:t,customUserDescription:r}){var n="Expecting: ",t=`
but found: '`+Sq(t).image+"'";return r?n+r+t:n+`expecting at least one iteration which starts with one of these possible Token sequences:: but found: '`+_q(t).image+"'";return r?n+r+t:n+`expecting at least one iteration which starts with one of these possible Token sequences::
<${x(e,e=>`[${x(e,e=>rme(e)).join(",")}]`).join(" ,")}>`+t}},Object.freeze(vme),xme={buildRuleNotFoundError(e,t){return"Invalid grammar, reference to a rule which is not defined: ->"+t.nonTerminalName+`<- <${x(e,e=>`[${x(e,e=>rme(e)).join(",")}]`).join(" ,")}>`+t}},Object.freeze(vme),xme={buildRuleNotFoundError(e,t){return"Invalid grammar, reference to a rule which is not defined: ->"+t.nonTerminalName+`<-
inside top level rule: ->`+e.name+"<-"}},bme={buildDuplicateFoundError(e,t){function r(e){return e instanceof h1e?e.terminalType.name:e instanceof t1e?e.nonTerminalName:""}mt(r,"getExtraProductionArgument");let n=e.name,i=Sq(t),a=i.idx,s=y1e(i),o=r(i),l=0<a,c=`->${s}${l?a:""}<- ${o?`with argument: ->${o}<-`:""} inside top level rule: ->`+e.name+"<-"}},bme={buildDuplicateFoundError(e,t){function r(e){return e instanceof h1e?e.terminalType.name:e instanceof t1e?e.nonTerminalName:""}mt(r,"getExtraProductionArgument");let n=e.name,i=_q(t),a=i.idx,s=y1e(i),o=r(i),l=0<a,c=`->${s}${l?a:""}<- ${o?`with argument: ->${o}<-`:""}
appears more than once (${t.length} times) in the top level rule: ->${n}<-. appears more than once (${t.length} times) in the top level rule: ->${n}<-.
For further details see: https://chevrotain.io/docs/FAQ.html#NUMERICAL_SUFFIXES For further details see: https://chevrotain.io/docs/FAQ.html#NUMERICAL_SUFFIXES
`;return c=(c=c.replace(/[ \t]+/g," ")).replace(/\s\s+/g,` `;return c=(c=c.replace(/[ \t]+/g," ")).replace(/\s\s+/g,`
@@ -1146,49 +1146,49 @@ rule: <${t}> can be invoked from itself (directly or indirectly)
without consuming any Tokens. The grammar path that causes this is: without consuming any Tokens. The grammar path that causes this is:
${t+" --\x3e "+x(e.leftRecursionPath,e=>e.name).concat([t]).join(" --\x3e ")} ${t+" --\x3e "+x(e.leftRecursionPath,e=>e.name).concat([t]).join(" --\x3e ")}
To fix this refactor your grammar to remove the left recursion. To fix this refactor your grammar to remove the left recursion.
see: https://en.wikipedia.org/wiki/LL_parser#Left_factoring.`},buildInvalidRuleNameError(e){return"deprecated"},buildDuplicateRuleNameError(e){return`Duplicate definition, rule: ->${e.topLevelRule instanceof r1e?e.topLevelRule.name:e.topLevelRule}<- is already defined in the grammar: ->${e.grammarName}<-`}}});function Tme(e,t){return(e=new Eme(e,t)).resolveRefs(),e.errors}var Eme,Cme=b(()=>{U2e(),KW(),x1e(),mt(Tme,"resolveGrammar"),Eme=class extends u1e{static{mt(this,"GastRefResolverVisitor")}constructor(e,t){super(),this.nameToTopRule=e,this.errMsgProvider=t,this.errors=[]}resolveRefs(){v(dj(this.nameToTopRule),e=>{(this.currTopLevel=e).accept(this)})}visitNonTerminal(e){var t=this.nameToTopRule[e.nonTerminalName];t?e.referencedRule=t:(t=this.errMsgProvider.buildRuleNotFoundError(this.currTopLevel,e),this.errors.push({message:t,type:F2e.UNRESOLVED_SUBRULE_REF,ruleName:this.currTopLevel.name,unresolvedRefName:e.nonTerminalName}))}}});function _me(t,r,n=[]){n=wz(n);let i=[],a=0;function s(e){return e.concat(jU(t,a+1))}function o(e){return e=_me(s(e),r,n),i.concat(e)}for(mt(s,"remainingPathWith"),mt(o,"getAlternativesForProd");n.length<r&&a<t.length;){var e=t[a];if(e instanceof n1e)return o(e.definition);if(e instanceof t1e)return o(e.definition);if(e instanceof i1e)i=o(e.definition);else{if(e instanceof a1e)return o(e.definition.concat([new o1e({definition:e.definition})]));if(e instanceof s1e)return o([new n1e({definition:e.definition}),new o1e({definition:[new h1e({terminalType:e.separator})].concat(e.definition)})]);if(e instanceof l1e){var l=e.definition.concat([new o1e({definition:[new h1e({terminalType:e.separator})].concat(e.definition)})]);i=o(l)}else if(e instanceof o1e)l=e.definition.concat([new o1e({definition:e.definition})]),i=o(l);else{if(e instanceof c1e)return v(e.definition,e=>{!1===Cj(e.definition)&&(i=o(e.definition))}),i;if(!(e instanceof h1e))throw Error("non exhaustive match");n.push(e.terminalType)}}a++}return i.push({partialPath:n,suffixDef:jU(t,a)}),i}function Sme(e,t,r,n){let i="EXIT_NONE_TERMINAL",a=[i],s="EXIT_ALTERNATIVE",o=!1,l=t.length,c=l-n-1,h=[],u=[];for(u.push({idx:-1,def:e,ruleStack:[],occurrenceStack:[]});!Cj(u);)if((v=u.pop())===s)o&&GU(u).idx<=c&&u.pop();else{var d=v.def,p=v.idx,g=v.ruleStack,f=v.occurrenceStack;if(!Cj(d)){var m=d[0];if(m===i)v={idx:p,def:jU(d),ruleStack:HU(g),occurrenceStack:HU(f)},u.push(v);else if(m instanceof h1e)if(p<l-1)r(t[v=p+1],m.terminalType)&&(v={idx:v,def:jU(d),ruleStack:g,occurrenceStack:f},u.push(v));else{if(p!==l-1)throw Error("non exhaustive match");h.push({nextTokenType:m.terminalType,nextTokenOccurrence:m.idx,ruleStack:g,occurrenceStack:f}),o=!0}else if(m instanceof t1e){(v=wz(g)).push(m.nonTerminalName);var y=wz(f),v=(y.push(m.idx),{idx:p,def:m.definition.concat(a,jU(d)),ruleStack:v,occurrenceStack:y});u.push(v)}else if(m instanceof i1e)y={idx:p,def:jU(d),ruleStack:g,occurrenceStack:f},u.push(y),u.push(s),v={idx:p,def:m.definition.concat(jU(d)),ruleStack:g,occurrenceStack:f},u.push(v);else if(m instanceof a1e)v=new o1e({definition:m.definition,idx:m.idx}),v=m.definition.concat([v],jU(d)),u.push({idx:p,def:v,ruleStack:g,occurrenceStack:f});else if(m instanceof s1e)v=new h1e({terminalType:m.separator}),v=new o1e({definition:[v].concat(m.definition),idx:m.idx}),v=m.definition.concat([v],jU(d)),u.push({idx:p,def:v,ruleStack:g,occurrenceStack:f});else if(m instanceof l1e)v={idx:p,def:jU(d),ruleStack:g,occurrenceStack:f},u.push(v),u.push(s),v=new h1e({terminalType:m.separator}),v=new o1e({definition:[v].concat(m.definition),idx:m.idx}),v=m.definition.concat([v],jU(d)),u.push({idx:p,def:v,ruleStack:g,occurrenceStack:f});else if(m instanceof o1e)v={idx:p,def:jU(d),ruleStack:g,occurrenceStack:f},u.push(v),u.push(s),v=new o1e({definition:m.definition,idx:m.idx}),v=m.definition.concat([v],jU(d)),u.push({idx:p,def:v,ruleStack:g,occurrenceStack:f});else if(m instanceof c1e)for(let e=m.definition.length-1;0<=e;e--){var x={idx:p,def:m.definition[e].definition.concat(jU(d)),ruleStack:g,occurrenceStack:f};u.push(x),u.push(s)}else if(m instanceof n1e)u.push({idx:p,def:m.definition.concat(jU(d)),ruleStack:g,occurrenceStack:f});else{if(!(m instanceof r1e))throw Error("non exhaustive match");u.push(Ame(m,p,g,f))}}}return h}function Ame(e,t,r,n){return(r=wz(r)).push(e.name),(n=wz(n)).push(1),{idx:t,def:e.definition,ruleStack:r,occurrenceStack:n}}var Lme,Nme,Ime,Rme,Mme,Dme,Ome=b(()=>{KW(),A1e(),k1e(),x1e(),Nme=class extends w1e{static{mt(this,"AbstractNextPossibleTokensWalker")}constructor(e,t){super(),this.topProd=e,this.path=t,this.possibleTokTypes=[],this.nextProductionName="",this.nextProductionOccurrence=0,this.found=!1,this.isAtEndOfPath=!1}startWalking(){if(this.found=!1,this.path.ruleStack[0]!==this.topProd.name)throw Error("The path does not start with the walker's top Rule!");return this.ruleStack=wz(this.path.ruleStack).reverse(),this.occurrenceStack=wz(this.path.occurrenceStack).reverse(),this.ruleStack.pop(),this.occurrenceStack.pop(),this.u Line truncated see: https://en.wikipedia.org/wiki/LL_parser#Left_factoring.`},buildInvalidRuleNameError(e){return"deprecated"},buildDuplicateRuleNameError(e){return`Duplicate definition, rule: ->${e.topLevelRule instanceof r1e?e.topLevelRule.name:e.topLevelRule}<- is already defined in the grammar: ->${e.grammarName}<-`}}});function Tme(e,t){return(e=new Eme(e,t)).resolveRefs(),e.errors}var Eme,Cme=b(()=>{U2e(),KW(),x1e(),mt(Tme,"resolveGrammar"),Eme=class extends u1e{static{mt(this,"GastRefResolverVisitor")}constructor(e,t){super(),this.nameToTopRule=e,this.errMsgProvider=t,this.errors=[]}resolveRefs(){v(dj(this.nameToTopRule),e=>{(this.currTopLevel=e).accept(this)})}visitNonTerminal(e){var t=this.nameToTopRule[e.nonTerminalName];t?e.referencedRule=t:(t=this.errMsgProvider.buildRuleNotFoundError(this.currTopLevel,e),this.errors.push({message:t,type:F2e.UNRESOLVED_SUBRULE_REF,ruleName:this.currTopLevel.name,unresolvedRefName:e.nonTerminalName}))}}});function Sme(t,r,n=[]){n=wz(n);let i=[],a=0;function s(e){return e.concat(jU(t,a+1))}function o(e){return e=Sme(s(e),r,n),i.concat(e)}for(mt(s,"remainingPathWith"),mt(o,"getAlternativesForProd");n.length<r&&a<t.length;){var e=t[a];if(e instanceof n1e)return o(e.definition);if(e instanceof t1e)return o(e.definition);if(e instanceof i1e)i=o(e.definition);else{if(e instanceof a1e)return o(e.definition.concat([new o1e({definition:e.definition})]));if(e instanceof s1e)return o([new n1e({definition:e.definition}),new o1e({definition:[new h1e({terminalType:e.separator})].concat(e.definition)})]);if(e instanceof l1e){var l=e.definition.concat([new o1e({definition:[new h1e({terminalType:e.separator})].concat(e.definition)})]);i=o(l)}else if(e instanceof o1e)l=e.definition.concat([new o1e({definition:e.definition})]),i=o(l);else{if(e instanceof c1e)return v(e.definition,e=>{!1===Cj(e.definition)&&(i=o(e.definition))}),i;if(!(e instanceof h1e))throw Error("non exhaustive match");n.push(e.terminalType)}}a++}return i.push({partialPath:n,suffixDef:jU(t,a)}),i}function _me(e,t,r,n){let i="EXIT_NONE_TERMINAL",a=[i],s="EXIT_ALTERNATIVE",o=!1,l=t.length,c=l-n-1,h=[],u=[];for(u.push({idx:-1,def:e,ruleStack:[],occurrenceStack:[]});!Cj(u);)if((v=u.pop())===s)o&&GU(u).idx<=c&&u.pop();else{var d=v.def,p=v.idx,g=v.ruleStack,f=v.occurrenceStack;if(!Cj(d)){var m=d[0];if(m===i)v={idx:p,def:jU(d),ruleStack:HU(g),occurrenceStack:HU(f)},u.push(v);else if(m instanceof h1e)if(p<l-1)r(t[v=p+1],m.terminalType)&&(v={idx:v,def:jU(d),ruleStack:g,occurrenceStack:f},u.push(v));else{if(p!==l-1)throw Error("non exhaustive match");h.push({nextTokenType:m.terminalType,nextTokenOccurrence:m.idx,ruleStack:g,occurrenceStack:f}),o=!0}else if(m instanceof t1e){(v=wz(g)).push(m.nonTerminalName);var y=wz(f),v=(y.push(m.idx),{idx:p,def:m.definition.concat(a,jU(d)),ruleStack:v,occurrenceStack:y});u.push(v)}else if(m instanceof i1e)y={idx:p,def:jU(d),ruleStack:g,occurrenceStack:f},u.push(y),u.push(s),v={idx:p,def:m.definition.concat(jU(d)),ruleStack:g,occurrenceStack:f},u.push(v);else if(m instanceof a1e)v=new o1e({definition:m.definition,idx:m.idx}),v=m.definition.concat([v],jU(d)),u.push({idx:p,def:v,ruleStack:g,occurrenceStack:f});else if(m instanceof s1e)v=new h1e({terminalType:m.separator}),v=new o1e({definition:[v].concat(m.definition),idx:m.idx}),v=m.definition.concat([v],jU(d)),u.push({idx:p,def:v,ruleStack:g,occurrenceStack:f});else if(m instanceof l1e)v={idx:p,def:jU(d),ruleStack:g,occurrenceStack:f},u.push(v),u.push(s),v=new h1e({terminalType:m.separator}),v=new o1e({definition:[v].concat(m.definition),idx:m.idx}),v=m.definition.concat([v],jU(d)),u.push({idx:p,def:v,ruleStack:g,occurrenceStack:f});else if(m instanceof o1e)v={idx:p,def:jU(d),ruleStack:g,occurrenceStack:f},u.push(v),u.push(s),v=new o1e({definition:m.definition,idx:m.idx}),v=m.definition.concat([v],jU(d)),u.push({idx:p,def:v,ruleStack:g,occurrenceStack:f});else if(m instanceof c1e)for(let e=m.definition.length-1;0<=e;e--){var x={idx:p,def:m.definition[e].definition.concat(jU(d)),ruleStack:g,occurrenceStack:f};u.push(x),u.push(s)}else if(m instanceof n1e)u.push({idx:p,def:m.definition.concat(jU(d)),ruleStack:g,occurrenceStack:f});else{if(!(m instanceof r1e))throw Error("non exhaustive match");u.push(Ame(m,p,g,f))}}}return h}function Ame(e,t,r,n){return(r=wz(r)).push(e.name),(n=wz(n)).push(1),{idx:t,def:e.definition,ruleStack:r,occurrenceStack:n}}var Lme,Nme,Ime,Rme,Mme,Dme,Ome=b(()=>{KW(),A1e(),k1e(),x1e(),Nme=class extends w1e{static{mt(this,"AbstractNextPossibleTokensWalker")}constructor(e,t){super(),this.topProd=e,this.path=t,this.possibleTokTypes=[],this.nextProductionName="",this.nextProductionOccurrence=0,this.found=!1,this.isAtEndOfPath=!1}startWalking(){if(this.found=!1,this.path.ruleStack[0]!==this.topProd.name)throw Error("The path does not start with the walker's top Rule!");return this.ruleStack=wz(this.path.ruleStack).reverse(),this.occurrenceStack=wz(this.path.occurrenceStack).reverse(),this.ruleStack.pop(),this.occurrenceStack.pop(),this.u Line truncated
`+e.join(` `+e.join(`
`).replace(/\n/g,` `).replace(/\n/g,`
`))},"validateVisitor")});return r.prototype=e,(r.prototype.constructor=r)._RULE_NAMES=t,r}function n2e(e,t,r){var n=mt(function(){},"derivedConstructor");Qye(n,e+"BaseSemanticsWithDefaults");let i=Object.create(r.prototype);return v(t,e=>{i[e]=t2e}),n.prototype=i,n.prototype.constructor=n}function i2e(e,t){return a2e(e,t)}function a2e(t,e){return e=gq(e,e=>!1===R6(t[e])),e=x(e,e=>({msg:`Missing visitor method: <${e}> on ${t.constructor.name} CST Visitor.`,type:s2e.MISSING_METHOD,methodName:e})),Sz(e)}var s2e,o2e,l2e,c2e,h2e,u2e,d2e,p2e=b(()=>{var e;KW(),e2e(),mt(t2e,"defaultVisit"),mt(r2e,"createBaseSemanticVisitorConstructor"),mt(n2e,"createBaseVisitorConstructorWithDefaults"),(e=s2e=s2e||{})[e.REDUNDANT_METHOD=0]="REDUNDANT_METHOD",e[e.MISSING_METHOD=1]="MISSING_METHOD",mt(i2e,"validateVisitor"),mt(a2e,"validateMissingCstMethods")}),g2e=b(()=>{Zye(),KW(),p2e(),U2e(),o2e=class{static{mt(this,"TreeBuilder")}initTreeBuilder(e){if(this.CST_STACK=[],this.outputCst=e.outputCst,this.nodeLocationTracking=(nj(e,"nodeLocationTracking")?e:B2e).nodeLocationTracking,this.outputCst)if(/full/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=Vye,this.setNodeLocationFromNode=Vye,this.cstPostRule=HP,this.setInitialNodeLocation=this.setInitialNodeLocationFullRecovery):(this.setNodeLocationFromToken=HP,this.setNodeLocationFromNode=HP,this.cstPostRule=this.cstPostRuleFull,this.setInitialNodeLocation=this.setInitialNodeLocationFullRegular);else if(/onlyOffset/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=Hye,this.setNodeLocationFromNode=Hye,this.cstPostRule=HP,this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRecovery):(this.setNodeLocationFromToken=HP,this.setNodeLocationFromNode=HP,this.cstPostRule=this.cstPostRuleOnlyOffset,this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRegular);else{if(!/none/i.test(this.nodeLocationTracking))throw Error(`Invalid <nodeLocationTracking> config option: "${e.nodeLocationTracking}"`);this.setNodeLocationFromToken=HP,this.setNodeLocationFromNode=HP,this.cstPostRule=HP,this.setInitialNodeLocation=HP}else this.cstInvocationStateUpdate=HP,this.cstFinallyStateUpdate=HP,this.cstPostTerminal=HP,this.cstPostNonTerminal=HP,this.cstPostRule=HP}setInitialNodeLocationOnlyOffsetRecovery(e){e.location={startOffset:NaN,endOffset:NaN}}setInitialNodeLocationOnlyOffsetRegular(e){e.location={startOffset:this.LA(1).startOffset,endOffset:NaN}}setInitialNodeLocationFullRecovery(e){e.location={startOffset:NaN,startLine:NaN,startColumn:NaN,endOffset:NaN,endLine:NaN,endColumn:NaN}}setInitialNodeLocationFullRegular(e){var t=this.LA(1);e.location={startOffset:t.startOffset,startLine:t.startLine,startColumn:t.startColumn,endOffset:NaN,endLine:NaN,endColumn:NaN}}cstInvocationStateUpdate(e){e={name:e,children:Object.create(null)},this.setInitialNodeLocation(e),this.CST_STACK.push(e)}cstFinallyStateUpdate(){this.CST_STACK.pop()}cstPostRuleFull(e){var t=this.LA(0);(e=e.location).startOffset<=t.startOffset?(e.endOffset=t.endOffset,e.endLine=t.endLine,e.endColumn=t.endColumn):(e.startOffset=NaN,e.startLine=NaN,e.startColumn=NaN)}cstPostRuleOnlyOffset(e){var t=this.LA(0);(e=e.location).startOffset<=t.startOffset?e.endOffset=t.endOffset:e.startOffset=NaN}cstPostTerminal(e,t){var r=this.CST_STACK[this.CST_STACK.length-1];Xye(r,t,e),this.setNodeLocationFromToken(r.location,t)}cstPostNonTerminal(e,t){var r=this.CST_STACK[this.CST_STACK.length-1];Kye(r,t,e),this.setNodeLocationFromNode(r.location,e.location)}getBaseCstVisitorConstructor(){var e;return Dj(this.baseCstVisitorConstructor)?(e=r2e(this.className,kB(this.gastProductionsCache)),this.baseCstVisitorConstructor=e):this.baseCstVisitorConstructor}getBaseCstVisitorConstructorWithDefaults(){var e;return Dj(this.baseCstVisitorWithDefaultsConstructor)?(e=n2e(this.className,kB(this.gastProductionsCache),this.getBaseCstVisitorConstructor()),this.baseCstVisitorWithDefaultsConstructor=e):this.baseCstVisitorWithDefaultsConstructor}getLastExplicitRuleShortName(){var e=this.RULE_STACK;return e[e.length-1]}getPreviousExplicitRuleShortName(){var e=this.RULE_STACK;return e[e.length-2]}getLastExplicitRuleOccurrenceIndex(){var e=this.RULE_OCCURRENCE_STACK;return e[e.length-1]}}}),f2e=b(()=>{U2e(),l2e=class{static{mt(this,"LexerAdapter")}initLexerAdapter(){this.tokVector=[],this.tokVectorLength=0,this.currIdx=-1}set input(e){if(!0!==this.selfAnalysisDone)throw Error("Missing <performSelfAnalysis> invocation at the end of the Parser's constructor.");this.reset(),this.tokVector=e,this.tokVectorLength=e.length}get input(){return this.tokVector}SKIP_TOKEN(){return this.currIdx<=this.tokVector.length-2?(this.consumeToken(),this.LA(1)):P2e}LA(e){return(e=this.currIdx+e)<0||this.tokVectorLength<=e?P2e:this.tokVector[e]}consumeToken(){this.currIdx++}exportLexerState(){return this.currIdx}importLexerState(e){this.currIdx=e}resetLexerState(){this.currIdx=-1}moveToTerminatedState(){this.currIdx= Line truncated `))},"validateVisitor")});return r.prototype=e,(r.prototype.constructor=r)._RULE_NAMES=t,r}function n2e(e,t,r){var n=mt(function(){},"derivedConstructor");Qye(n,e+"BaseSemanticsWithDefaults");let i=Object.create(r.prototype);return v(t,e=>{i[e]=t2e}),n.prototype=i,n.prototype.constructor=n}function i2e(e,t){return a2e(e,t)}function a2e(t,e){return e=gq(e,e=>!1===R6(t[e])),e=x(e,e=>({msg:`Missing visitor method: <${e}> on ${t.constructor.name} CST Visitor.`,type:s2e.MISSING_METHOD,methodName:e})),_z(e)}var s2e,o2e,l2e,c2e,h2e,u2e,d2e,p2e=b(()=>{var e;KW(),e2e(),mt(t2e,"defaultVisit"),mt(r2e,"createBaseSemanticVisitorConstructor"),mt(n2e,"createBaseVisitorConstructorWithDefaults"),(e=s2e=s2e||{})[e.REDUNDANT_METHOD=0]="REDUNDANT_METHOD",e[e.MISSING_METHOD=1]="MISSING_METHOD",mt(i2e,"validateVisitor"),mt(a2e,"validateMissingCstMethods")}),g2e=b(()=>{Zye(),KW(),p2e(),U2e(),o2e=class{static{mt(this,"TreeBuilder")}initTreeBuilder(e){if(this.CST_STACK=[],this.outputCst=e.outputCst,this.nodeLocationTracking=(nj(e,"nodeLocationTracking")?e:B2e).nodeLocationTracking,this.outputCst)if(/full/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=Vye,this.setNodeLocationFromNode=Vye,this.cstPostRule=HP,this.setInitialNodeLocation=this.setInitialNodeLocationFullRecovery):(this.setNodeLocationFromToken=HP,this.setNodeLocationFromNode=HP,this.cstPostRule=this.cstPostRuleFull,this.setInitialNodeLocation=this.setInitialNodeLocationFullRegular);else if(/onlyOffset/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=Hye,this.setNodeLocationFromNode=Hye,this.cstPostRule=HP,this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRecovery):(this.setNodeLocationFromToken=HP,this.setNodeLocationFromNode=HP,this.cstPostRule=this.cstPostRuleOnlyOffset,this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRegular);else{if(!/none/i.test(this.nodeLocationTracking))throw Error(`Invalid <nodeLocationTracking> config option: "${e.nodeLocationTracking}"`);this.setNodeLocationFromToken=HP,this.setNodeLocationFromNode=HP,this.cstPostRule=HP,this.setInitialNodeLocation=HP}else this.cstInvocationStateUpdate=HP,this.cstFinallyStateUpdate=HP,this.cstPostTerminal=HP,this.cstPostNonTerminal=HP,this.cstPostRule=HP}setInitialNodeLocationOnlyOffsetRecovery(e){e.location={startOffset:NaN,endOffset:NaN}}setInitialNodeLocationOnlyOffsetRegular(e){e.location={startOffset:this.LA(1).startOffset,endOffset:NaN}}setInitialNodeLocationFullRecovery(e){e.location={startOffset:NaN,startLine:NaN,startColumn:NaN,endOffset:NaN,endLine:NaN,endColumn:NaN}}setInitialNodeLocationFullRegular(e){var t=this.LA(1);e.location={startOffset:t.startOffset,startLine:t.startLine,startColumn:t.startColumn,endOffset:NaN,endLine:NaN,endColumn:NaN}}cstInvocationStateUpdate(e){e={name:e,children:Object.create(null)},this.setInitialNodeLocation(e),this.CST_STACK.push(e)}cstFinallyStateUpdate(){this.CST_STACK.pop()}cstPostRuleFull(e){var t=this.LA(0);(e=e.location).startOffset<=t.startOffset?(e.endOffset=t.endOffset,e.endLine=t.endLine,e.endColumn=t.endColumn):(e.startOffset=NaN,e.startLine=NaN,e.startColumn=NaN)}cstPostRuleOnlyOffset(e){var t=this.LA(0);(e=e.location).startOffset<=t.startOffset?e.endOffset=t.endOffset:e.startOffset=NaN}cstPostTerminal(e,t){var r=this.CST_STACK[this.CST_STACK.length-1];Xye(r,t,e),this.setNodeLocationFromToken(r.location,t)}cstPostNonTerminal(e,t){var r=this.CST_STACK[this.CST_STACK.length-1];Kye(r,t,e),this.setNodeLocationFromNode(r.location,e.location)}getBaseCstVisitorConstructor(){var e;return Dj(this.baseCstVisitorConstructor)?(e=r2e(this.className,kB(this.gastProductionsCache)),this.baseCstVisitorConstructor=e):this.baseCstVisitorConstructor}getBaseCstVisitorConstructorWithDefaults(){var e;return Dj(this.baseCstVisitorWithDefaultsConstructor)?(e=n2e(this.className,kB(this.gastProductionsCache),this.getBaseCstVisitorConstructor()),this.baseCstVisitorWithDefaultsConstructor=e):this.baseCstVisitorWithDefaultsConstructor}getLastExplicitRuleShortName(){var e=this.RULE_STACK;return e[e.length-1]}getPreviousExplicitRuleShortName(){var e=this.RULE_STACK;return e[e.length-2]}getLastExplicitRuleOccurrenceIndex(){var e=this.RULE_OCCURRENCE_STACK;return e[e.length-1]}}}),f2e=b(()=>{U2e(),l2e=class{static{mt(this,"LexerAdapter")}initLexerAdapter(){this.tokVector=[],this.tokVectorLength=0,this.currIdx=-1}set input(e){if(!0!==this.selfAnalysisDone)throw Error("Missing <performSelfAnalysis> invocation at the end of the Parser's constructor.");this.reset(),this.tokVector=e,this.tokVectorLength=e.length}get input(){return this.tokVector}SKIP_TOKEN(){return this.currIdx<=this.tokVector.length-2?(this.consumeToken(),this.LA(1)):P2e}LA(e){return(e=this.currIdx+e)<0||this.tokVectorLength<=e?P2e:this.tokVector[e]}consumeToken(){this.currIdx++}exportLexerState(){return this.currIdx}importLexerState(e){this.currIdx=e}resetLexerState(){this.currIdx=-1}moveToTerminatedState(){this.currIdx= Line truncated
See: https://chevrotain.io/docs/changes/BREAKING_CHANGES.html#_6-0-0 See: https://chevrotain.io/docs/changes/BREAKING_CHANGES.html#_6-0-0
For Further details.`);if(n8(e)){if(Cj(e))throw Error(`A Token Vocabulary cannot be empty. For Further details.`);if(n8(e)){if(Cj(e))throw Error(`A Token Vocabulary cannot be empty.
Note that the first argument for the parser constructor Note that the first argument for the parser constructor
is no longer a Token vector (since v4.0).`);if("number"==typeof e[0].startOffset)throw Error(`The Parser constructor no longer accepts a token vector as the first argument. is no longer a Token vector (since v4.0).`);if("number"==typeof e[0].startOffset)throw Error(`The Parser constructor no longer accepts a token vector as the first argument.
See: https://chevrotain.io/docs/changes/BREAKING_CHANGES.html#_4-0-0 See: https://chevrotain.io/docs/changes/BREAKING_CHANGES.html#_4-0-0
For Further details.`)}if(n8(e))this.tokensMap=lW(e,(e,t)=>(e[t.name]=t,e),{});else if(nj(e,"modes")&&lq(p$(dj(e.modes)),Wfe))t=p$(dj(e.modes)),t=OW(t),this.tokensMap=lW(t,(e,t)=>(e[t.name]=t,e),{});else{if(!L6(e))throw new Error("<tokensDictionary> argument must be An Array of Token constructors, A dictionary of Token constructors or an IMultiModeLexerDefinition");this.tokensMap=wz(e)}this.tokensMap.EOF=yme,t=nj(e,"modes")?p$(dj(e.modes)):dj(e),e=lq(t,e=>Cj(e.categoryMatches)),this.tokenMatcher=e?Ofe:Dfe,Pfe(dj(this.tokensMap))}defineRule(r,n,e){if(this.selfAnalysisDone)throw Error(`Grammar rule <${r}> may not be defined after the 'performSelfAnalysis' method has been called' For Further details.`)}if(n8(e))this.tokensMap=lW(e,(e,t)=>(e[t.name]=t,e),{});else if(nj(e,"modes")&&lq(p$(dj(e.modes)),Wfe))t=p$(dj(e.modes)),t=OW(t),this.tokensMap=lW(t,(e,t)=>(e[t.name]=t,e),{});else{if(!L6(e))throw new Error("<tokensDictionary> argument must be An Array of Token constructors, A dictionary of Token constructors or an IMultiModeLexerDefinition");this.tokensMap=wz(e)}this.tokensMap.EOF=yme,t=nj(e,"modes")?p$(dj(e.modes)):dj(e),e=lq(t,e=>Cj(e.categoryMatches)),this.tokenMatcher=e?Ofe:Dfe,Pfe(dj(this.tokensMap))}defineRule(r,n,e){if(this.selfAnalysisDone)throw Error(`Grammar rule <${r}> may not be defined after the 'performSelfAnalysis' method has been called'
Make sure that all grammar rule definitions are done before 'performSelfAnalysis' is called.`);let i=(nj(e,"resyncEnabled")?e:$2e).resyncEnabled,a=(nj(e,"recoveryValueFunc")?e:$2e).recoveryValueFunc,s=this.ruleShortNameIdx<<12;return this.ruleShortNameIdx++,this.shortRuleNameToFull[s]=r,this.fullRuleNameToShort[r]=s,e=!0===this.outputCst?mt(function(...e){try{this.ruleInvocationStateUpdate(s,r,this.subruleIdx),n.apply(this,e);var t=this.CST_STACK[this.CST_STACK.length-1];return this.cstPostRule(t),t}catch(e){return this.invokeRuleCatch(e,i,a)}finally{this.ruleFinallyStateUpdate()}},"invokeRuleWithTry"):mt(function(...e){try{return this.ruleInvocationStateUpdate(s,r,this.subruleIdx),n.apply(this,e)}catch(e){return this.invokeRuleCatch(e,i,a)}finally{this.ruleFinallyStateUpdate()}},"invokeRuleWithTryCst"),Object.assign(e,{ruleName:r,originalGrammarAction:n})}invokeRuleCatch(e,t,r){var n=1===this.RULE_STACK.length,t=t&&!this.isBackTracking()&&this.recoveryEnabled;if(Eye(e)){var i=e;if(t){if(t=this.findReSyncTokenType(),this.isInCurrentRuleReSyncSet(t))return i.resyncedTokens=this.reSyncTo(t),this.outputCst?((t=this.CST_STACK[this.CST_STACK.length-1]).recoveredNode=!0,t):r(e);this.outputCst&&((t=this.CST_STACK[this.CST_STACK.length-1]).recoveredNode=!0,i.partialCstResult=t)}else if(n)return this.moveToTerminatedState(),r(e);throw i}throw e}optionInternal(e,t){var r=this.getKeyForAutomaticLookahead(512,t);return this.optionInternalLogic(e,t,r)}optionInternalLogic(e,t,r){let n=this.getLaFuncFromCache(r),i;if("function"!=typeof e){i=e.DEF;let t=e.GATE;if(void 0!==t){let e=n;n=mt(()=>t.call(this)&&e.call(this),"lookAheadFunc")}}else i=e;if(!0===n.call(this))return i.call(this)}atLeastOneInternal(e,t){var r=this.getKeyForAutomaticLookahead(1024,e);return this.atLeastOneInternalLogic(e,t,r)}atLeastOneInternalLogic(e,r,t){let n=this.getLaFuncFromCache(t),i;if("function"!=typeof r){i=r.DEF;let t=r.GATE;if(void 0!==t){let e=n;n=mt(()=>t.call(this)&&e.call(this),"lookAheadFunc")}}else i=r;if(!0!==n.call(this))throw this.raiseEarlyExitException(e,Zme.REPETITION_MANDATORY,r.ERR_MSG);{let e=this.doSingleRepetition(i);for(;!0===n.call(this)&&!0===e;)e=this.doSingleRepetition(i)}this.attemptInRepetitionRecovery(this.atLeastOneInternal,[e,r],n,1024,e,Mme)}atLeastOneSepFirstInternal(e,t){var r=this.getKeyForAutomaticLookahead(1536,e);this.atLeastOneSepFirstInternalLogic(e,t,r)}atLeastOneSepFirstInternalLogic(e,t,r){let n=t.DEF,i=t.SEP;if(!0!==this.getLaFuncFromCache(r).call(this))throw this.raiseEarlyExitException(e,Zme.REPETITION_MANDATORY_WITH_SEPARATOR,t.ERR_MSG);for(n.call(this),r=mt(()=>this.tokenMatcher(this.LA(1),i),"separatorLookAheadFunc");!0===this.tokenMatcher(this.LA(1),i);)this.CONSUME(i),n.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[e,i,r,n,Dme],r,1536,e,Dme)}manyInternal(e,t){var r=this.getKeyForAutomaticLookahead(768,e);return this.manyInternalLogic(e,t,r)}manyInternalLogic(e,r,t){let n=this.getLaFuncFromCache(t),i;if("function"!=typeof r){i=r.DEF;let t=r.GATE;if(void 0!==t){let e=n;n=mt(()=>t.call(this)&&e.call(this),"lookaheadFunction")}}else i=r;let a=!0;for(;!0===n.call(this)&&!0===a;)a=this.doSingleRepetition(i);this.attemptInRepetitionRecovery(this.manyInternal,[e,r],n,768,e,Ime,a)}manySepFirstInternal(e,t){var r=this.getKeyForAutomaticLookahead(1280,e);this.manySepFirstInternalLogic(e,t,r)}manySepFirstInternalLogic(e,t,r){let n=t.DEF,i=t.SEP;if(!0===this.getLaFuncFromCache(r).call(this)){for(n.call(this),t=mt(()=>this.tokenMatcher(this.LA(1),i),"separatorLookAheadFunc");!0===this.tokenMatcher(this.LA(1),i);)this.CONSUME(i),n.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[e,i,t,n,Rme],t,1280,e,Rme)}}repetitionSepSecondInternal(e,t,r,n,i){for(;r();)this.CONSUME(t),n.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[e,t,r,n,i],r,1536,e,i)}doSingleRepetition(e){var t=this.getLexerPosition();return e.call(this),this.getLexerPosition()>t}orInternal(e,t){var r=this.getKeyForAutomaticLookahead(256,t),n=n8(e)?e:e.DEF;if(void 0!==(r=this.getLaFuncFromCache(r).call(this,n)))return n[r].ALT.call(this);this.raiseNoAltException(t,e.ERR_MSG)}ruleFinallyStateUpdate(){var e,t;this.RULE_STACK.pop(),this.RULE_OCCURRENCE_STACK.pop(),this.cstFinallyStateUpdate(),0===this.RULE_STACK.length&&!1===this.isAtEndOfInput()&&(e=this.LA(1),t=this.errorMessageProvider.buildNotAllInputParsedMessage({firstRedundant:e,ruleName:this.getCurrRuleFullName()}),this.SAVE_ERROR(new Lye(t,e)))}subruleInternal(e,t,r){var n;try{var i=void 0!==r?r.ARGS:void 0;return this.subruleIdx=t,n=e.apply(this,i),this.cstPostNonTerminal(n,void 0!==r&&void 0!==r.LABEL?r.LABEL:e.ruleName),n}catch(t){throw this.subruleInternalError(t,r,e.ruleName)}}subruleInternalError(e,t,r){throw Eye(e)&&void 0!==e.partialCstResult&&(this.cstPostNonTerminal(e.partialCstResult,void 0!==t&&void 0!==t.LABEL?t.LABEL:r),delete e.partialCstResult),e}consumeInternal(e,t,r){let n;try{var i=this Line truncated Make sure that all grammar rule definitions are done before 'performSelfAnalysis' is called.`);let i=(nj(e,"resyncEnabled")?e:$2e).resyncEnabled,a=(nj(e,"recoveryValueFunc")?e:$2e).recoveryValueFunc,s=this.ruleShortNameIdx<<12;return this.ruleShortNameIdx++,this.shortRuleNameToFull[s]=r,this.fullRuleNameToShort[r]=s,e=!0===this.outputCst?mt(function(...e){try{this.ruleInvocationStateUpdate(s,r,this.subruleIdx),n.apply(this,e);var t=this.CST_STACK[this.CST_STACK.length-1];return this.cstPostRule(t),t}catch(e){return this.invokeRuleCatch(e,i,a)}finally{this.ruleFinallyStateUpdate()}},"invokeRuleWithTry"):mt(function(...e){try{return this.ruleInvocationStateUpdate(s,r,this.subruleIdx),n.apply(this,e)}catch(e){return this.invokeRuleCatch(e,i,a)}finally{this.ruleFinallyStateUpdate()}},"invokeRuleWithTryCst"),Object.assign(e,{ruleName:r,originalGrammarAction:n})}invokeRuleCatch(e,t,r){var n=1===this.RULE_STACK.length,t=t&&!this.isBackTracking()&&this.recoveryEnabled;if(Eye(e)){var i=e;if(t){if(t=this.findReSyncTokenType(),this.isInCurrentRuleReSyncSet(t))return i.resyncedTokens=this.reSyncTo(t),this.outputCst?((t=this.CST_STACK[this.CST_STACK.length-1]).recoveredNode=!0,t):r(e);this.outputCst&&((t=this.CST_STACK[this.CST_STACK.length-1]).recoveredNode=!0,i.partialCstResult=t)}else if(n)return this.moveToTerminatedState(),r(e);throw i}throw e}optionInternal(e,t){var r=this.getKeyForAutomaticLookahead(512,t);return this.optionInternalLogic(e,t,r)}optionInternalLogic(e,t,r){let n=this.getLaFuncFromCache(r),i;if("function"!=typeof e){i=e.DEF;let t=e.GATE;if(void 0!==t){let e=n;n=mt(()=>t.call(this)&&e.call(this),"lookAheadFunc")}}else i=e;if(!0===n.call(this))return i.call(this)}atLeastOneInternal(e,t){var r=this.getKeyForAutomaticLookahead(1024,e);return this.atLeastOneInternalLogic(e,t,r)}atLeastOneInternalLogic(e,r,t){let n=this.getLaFuncFromCache(t),i;if("function"!=typeof r){i=r.DEF;let t=r.GATE;if(void 0!==t){let e=n;n=mt(()=>t.call(this)&&e.call(this),"lookAheadFunc")}}else i=r;if(!0!==n.call(this))throw this.raiseEarlyExitException(e,Zme.REPETITION_MANDATORY,r.ERR_MSG);{let e=this.doSingleRepetition(i);for(;!0===n.call(this)&&!0===e;)e=this.doSingleRepetition(i)}this.attemptInRepetitionRecovery(this.atLeastOneInternal,[e,r],n,1024,e,Mme)}atLeastOneSepFirstInternal(e,t){var r=this.getKeyForAutomaticLookahead(1536,e);this.atLeastOneSepFirstInternalLogic(e,t,r)}atLeastOneSepFirstInternalLogic(e,t,r){let n=t.DEF,i=t.SEP;if(!0!==this.getLaFuncFromCache(r).call(this))throw this.raiseEarlyExitException(e,Zme.REPETITION_MANDATORY_WITH_SEPARATOR,t.ERR_MSG);for(n.call(this),r=mt(()=>this.tokenMatcher(this.LA(1),i),"separatorLookAheadFunc");!0===this.tokenMatcher(this.LA(1),i);)this.CONSUME(i),n.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[e,i,r,n,Dme],r,1536,e,Dme)}manyInternal(e,t){var r=this.getKeyForAutomaticLookahead(768,e);return this.manyInternalLogic(e,t,r)}manyInternalLogic(e,r,t){let n=this.getLaFuncFromCache(t),i;if("function"!=typeof r){i=r.DEF;let t=r.GATE;if(void 0!==t){let e=n;n=mt(()=>t.call(this)&&e.call(this),"lookaheadFunction")}}else i=r;let a=!0;for(;!0===n.call(this)&&!0===a;)a=this.doSingleRepetition(i);this.attemptInRepetitionRecovery(this.manyInternal,[e,r],n,768,e,Ime,a)}manySepFirstInternal(e,t){var r=this.getKeyForAutomaticLookahead(1280,e);this.manySepFirstInternalLogic(e,t,r)}manySepFirstInternalLogic(e,t,r){let n=t.DEF,i=t.SEP;if(!0===this.getLaFuncFromCache(r).call(this)){for(n.call(this),t=mt(()=>this.tokenMatcher(this.LA(1),i),"separatorLookAheadFunc");!0===this.tokenMatcher(this.LA(1),i);)this.CONSUME(i),n.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[e,i,t,n,Rme],t,1280,e,Rme)}}repetitionSepSecondInternal(e,t,r,n,i){for(;r();)this.CONSUME(t),n.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[e,t,r,n,i],r,1536,e,i)}doSingleRepetition(e){var t=this.getLexerPosition();return e.call(this),this.getLexerPosition()>t}orInternal(e,t){var r=this.getKeyForAutomaticLookahead(256,t),n=n8(e)?e:e.DEF;if(void 0!==(r=this.getLaFuncFromCache(r).call(this,n)))return n[r].ALT.call(this);this.raiseNoAltException(t,e.ERR_MSG)}ruleFinallyStateUpdate(){var e,t;this.RULE_STACK.pop(),this.RULE_OCCURRENCE_STACK.pop(),this.cstFinallyStateUpdate(),0===this.RULE_STACK.length&&!1===this.isAtEndOfInput()&&(e=this.LA(1),t=this.errorMessageProvider.buildNotAllInputParsedMessage({firstRedundant:e,ruleName:this.getCurrRuleFullName()}),this.SAVE_ERROR(new Lye(t,e)))}subruleInternal(e,t,r){var n;try{var i=void 0!==r?r.ARGS:void 0;return this.subruleIdx=t,n=e.apply(this,i),this.cstPostNonTerminal(n,void 0!==r&&void 0!==r.LABEL?r.LABEL:e.ruleName),n}catch(t){throw this.subruleInternalError(t,r,e.ruleName)}}subruleInternalError(e,t,r){throw Eye(e)&&void 0!==e.partialCstResult&&(this.cstPostNonTerminal(e.partialCstResult,void 0!==t&&void 0!==t.LABEL?t.LABEL:r),delete e.partialCstResult),e}consumeInternal(e,t,r){let n;try{var i=this Line truncated
Idx value must be a none negative value smaller than `+(C2e+1))).KNOWN_RECORDER_ERROR=!0,e}var E2e,C2e,_2e,S2e,A2e,L2e,N2e,I2e=b(()=>{KW(),x1e(),tme(),Jfe(),wme(),U2e(),zye(),E2e={description:"This Object indicates the Parser is during Recording Phase"},Object.freeze(E2e),C2e=Math.pow(2,8)-1,Pfe([_2e=ime({name:"RECORDING_PHASE_TOKEN",pattern:Qfe.NA})]),S2e=sme(_2e,`This IToken indicates the Parser is in Recording Phase Idx value must be a none negative value smaller than `+(C2e+1))).KNOWN_RECORDER_ERROR=!0,e}var E2e,C2e,S2e,_2e,A2e,L2e,N2e,I2e=b(()=>{KW(),x1e(),tme(),Jfe(),wme(),U2e(),zye(),E2e={description:"This Object indicates the Parser is during Recording Phase"},Object.freeze(E2e),C2e=Math.pow(2,8)-1,Pfe([S2e=ime({name:"RECORDING_PHASE_TOKEN",pattern:Qfe.NA})]),_2e=sme(S2e,`This IToken indicates the Parser is in Recording Phase
See: https://chevrotain.io/docs/guide/internals.html#grammar-recording for details`,-1,-1,-1,-1,-1,-1),Object.freeze(S2e),A2e={name:`This CSTNode indicates the Parser is in Recording Phase See: https://chevrotain.io/docs/guide/internals.html#grammar-recording for details`,-1,-1,-1,-1,-1,-1),Object.freeze(_2e),A2e={name:`This CSTNode indicates the Parser is in Recording Phase
See: https://chevrotain.io/docs/guide/internals.html#grammar-recording for details`,children:{}},L2e=class{static{mt(this,"GastRecorder")}initGastRecorder(e){this.recordingProdStack=[],this.RECORDING_PHASE=!1}enableRecording(){this.RECORDING_PHASE=!0,this.TRACE_INIT("Enable Recording",()=>{for(let r=0;r<10;r++){var e=0<r?r:"";this["CONSUME"+e]=function(e,t){return this.consumeInternalRecord(e,r,t)},this["SUBRULE"+e]=function(e,t){return this.subruleInternalRecord(e,r,t)},this["OPTION"+e]=function(e){return this.optionInternalRecord(e,r)},this["OR"+e]=function(e){return this.orInternalRecord(e,r)},this["MANY"+e]=function(e){this.manyInternalRecord(r,e)},this["MANY_SEP"+e]=function(e){this.manySepFirstInternalRecord(r,e)},this["AT_LEAST_ONE"+e]=function(e){this.atLeastOneInternalRecord(r,e)},this["AT_LEAST_ONE_SEP"+e]=function(e){this.atLeastOneSepFirstInternalRecord(r,e)}}this.consume=function(e,t,r){return this.consumeInternalRecord(t,e,r)},this.subrule=function(e,t,r){return this.subruleInternalRecord(t,e,r)},this.option=function(e,t){return this.optionInternalRecord(t,e)},this.or=function(e,t){return this.orInternalRecord(t,e)},this.many=function(e,t){this.manyInternalRecord(e,t)},this.atLeastOne=function(e,t){this.atLeastOneInternalRecord(e,t)},this.ACTION=this.ACTION_RECORD,this.BACKTRACK=this.BACKTRACK_RECORD,this.LA=this.LA_RECORD})}disableRecording(){this.RECORDING_PHASE=!1,this.TRACE_INIT("Deleting Recording methods",()=>{var t=this;for(let e=0;e<10;e++){var r=0<e?e:"";delete t["CONSUME"+r],delete t["SUBRULE"+r],delete t["OPTION"+r],delete t["OR"+r],delete t["MANY"+r],delete t["MANY_SEP"+r],delete t["AT_LEAST_ONE"+r],delete t["AT_LEAST_ONE_SEP"+r]}delete t.consume,delete t.subrule,delete t.option,delete t.or,delete t.many,delete t.atLeastOne,delete t.ACTION,delete t.BACKTRACK,delete t.LA})}ACTION_RECORD(e){}BACKTRACK_RECORD(e,t){return()=>!0}LA_RECORD(e){return P2e}topLevelRuleRecord(e,t){try{var r=new r1e({definition:[],name:e});return r.name=e,this.recordingProdStack.push(r),t.call(this),this.recordingProdStack.pop(),r}catch(e){if(!0!==e.KNOWN_RECORDER_ERROR)try{e.message=e.message+` See: https://chevrotain.io/docs/guide/internals.html#grammar-recording for details`,children:{}},L2e=class{static{mt(this,"GastRecorder")}initGastRecorder(e){this.recordingProdStack=[],this.RECORDING_PHASE=!1}enableRecording(){this.RECORDING_PHASE=!0,this.TRACE_INIT("Enable Recording",()=>{for(let r=0;r<10;r++){var e=0<r?r:"";this["CONSUME"+e]=function(e,t){return this.consumeInternalRecord(e,r,t)},this["SUBRULE"+e]=function(e,t){return this.subruleInternalRecord(e,r,t)},this["OPTION"+e]=function(e){return this.optionInternalRecord(e,r)},this["OR"+e]=function(e){return this.orInternalRecord(e,r)},this["MANY"+e]=function(e){this.manyInternalRecord(r,e)},this["MANY_SEP"+e]=function(e){this.manySepFirstInternalRecord(r,e)},this["AT_LEAST_ONE"+e]=function(e){this.atLeastOneInternalRecord(r,e)},this["AT_LEAST_ONE_SEP"+e]=function(e){this.atLeastOneSepFirstInternalRecord(r,e)}}this.consume=function(e,t,r){return this.consumeInternalRecord(t,e,r)},this.subrule=function(e,t,r){return this.subruleInternalRecord(t,e,r)},this.option=function(e,t){return this.optionInternalRecord(t,e)},this.or=function(e,t){return this.orInternalRecord(t,e)},this.many=function(e,t){this.manyInternalRecord(e,t)},this.atLeastOne=function(e,t){this.atLeastOneInternalRecord(e,t)},this.ACTION=this.ACTION_RECORD,this.BACKTRACK=this.BACKTRACK_RECORD,this.LA=this.LA_RECORD})}disableRecording(){this.RECORDING_PHASE=!1,this.TRACE_INIT("Deleting Recording methods",()=>{var t=this;for(let e=0;e<10;e++){var r=0<e?e:"";delete t["CONSUME"+r],delete t["SUBRULE"+r],delete t["OPTION"+r],delete t["OR"+r],delete t["MANY"+r],delete t["MANY_SEP"+r],delete t["AT_LEAST_ONE"+r],delete t["AT_LEAST_ONE_SEP"+r]}delete t.consume,delete t.subrule,delete t.option,delete t.or,delete t.many,delete t.atLeastOne,delete t.ACTION,delete t.BACKTRACK,delete t.LA})}ACTION_RECORD(e){}BACKTRACK_RECORD(e,t){return()=>!0}LA_RECORD(e){return P2e}topLevelRuleRecord(e,t){try{var r=new r1e({definition:[],name:e});return r.name=e,this.recordingProdStack.push(r),t.call(this),this.recordingProdStack.pop(),r}catch(e){if(!0!==e.KNOWN_RECORDER_ERROR)try{e.message=e.message+`
This error was thrown during the "grammar recording phase" For more info see: This error was thrown during the "grammar recording phase" For more info see:
https://chevrotain.io/docs/guide/internals.html#grammar-recording`}catch{}throw e}}optionInternalRecord(e,t){return b2e.call(this,i1e,e,t)}atLeastOneInternalRecord(e,t){b2e.call(this,a1e,t,e)}atLeastOneSepFirstInternalRecord(e,t){b2e.call(this,s1e,t,e,!0)}manyInternalRecord(e,t){b2e.call(this,o1e,t,e)}manySepFirstInternalRecord(e,t){b2e.call(this,l1e,t,e,!0)}orInternalRecord(e,t){return w2e.call(this,e,t)}subruleInternalRecord(e,t,r){var n,i;if(T2e(t),e&&!1!==nj(e,"ruleName"))return n=GU(this.recordingProdStack),i=e.ruleName,i=new t1e({idx:t,nonTerminalName:i,label:r?.LABEL,referencedRule:void 0}),n.definition.push(i),this.outputCst?A2e:E2e;throw(r=new Error(`<SUBRULE${k2e(t)}> argument is invalid expecting a Parser method reference but got: <${JSON.stringify(e)}> https://chevrotain.io/docs/guide/internals.html#grammar-recording`}catch{}throw e}}optionInternalRecord(e,t){return b2e.call(this,i1e,e,t)}atLeastOneInternalRecord(e,t){b2e.call(this,a1e,t,e)}atLeastOneSepFirstInternalRecord(e,t){b2e.call(this,s1e,t,e,!0)}manyInternalRecord(e,t){b2e.call(this,o1e,t,e)}manySepFirstInternalRecord(e,t){b2e.call(this,l1e,t,e,!0)}orInternalRecord(e,t){return w2e.call(this,e,t)}subruleInternalRecord(e,t,r){var n,i;if(T2e(t),e&&!1!==nj(e,"ruleName"))return n=GU(this.recordingProdStack),i=e.ruleName,i=new t1e({idx:t,nonTerminalName:i,label:r?.LABEL,referencedRule:void 0}),n.definition.push(i),this.outputCst?A2e:E2e;throw(r=new Error(`<SUBRULE${k2e(t)}> argument is invalid expecting a Parser method reference but got: <${JSON.stringify(e)}>
inside top level rule: <${this.recordingProdStack[0].name}>`)).KNOWN_RECORDER_ERROR=!0,r}consumeInternalRecord(e,t,r){var n;if(T2e(t),Ufe(e))return n=GU(this.recordingProdStack),r=new h1e({idx:t,terminalType:e,label:r?.LABEL}),n.definition.push(r),S2e;throw(n=new Error(`<CONSUME${k2e(t)}> argument is invalid expecting a TokenType reference but got: <${JSON.stringify(e)}> inside top level rule: <${this.recordingProdStack[0].name}>`)).KNOWN_RECORDER_ERROR=!0,r}consumeInternalRecord(e,t,r){var n;if(T2e(t),Ufe(e))return n=GU(this.recordingProdStack),r=new h1e({idx:t,terminalType:e,label:r?.LABEL}),n.definition.push(r),_2e;throw(n=new Error(`<CONSUME${k2e(t)}> argument is invalid expecting a TokenType reference but got: <${JSON.stringify(e)}>
inside top level rule: <${this.recordingProdStack[0].name}>`)).KNOWN_RECORDER_ERROR=!0,n}},mt(b2e,"recordProd"),mt(w2e,"recordOrProd"),mt(k2e,"getIdxSuffix"),mt(T2e,"assertMethodIdxIsValid")}),R2e=b(()=>{KW(),Xge(),U2e(),N2e=class{static{mt(this,"PerformanceTracer")}initPerformanceTracer(e){var t;nj(e,"traceInitPerf")?(e=e.traceInitPerf,this.traceInitMaxIdent=(t="number"==typeof e)?e:1/0,this.traceInitPerf=t?0<e:e):(this.traceInitMaxIdent=0,this.traceInitPerf=B2e.traceInitPerf),this.traceInitIndent=-1}TRACE_INIT(e,t){var r,n,i,a;return!0===this.traceInitPerf?(this.traceInitIndent++,r=new Array(this.traceInitIndent+1).join("\t"),{time:n,value:i}=(this.traceInitIndent<this.traceInitMaxIdent&&console.log(r+`--> <${e}>`),Yge(t)),a=10<n?console.warn:console.log,this.traceInitIndent<this.traceInitMaxIdent&&a(r+`<-- <${e}> time: ${n}ms`),this.traceInitIndent--,i):t()}}});function M2e(i,e){e.forEach(r=>{let n=r.prototype;Object.getOwnPropertyNames(n).forEach(e=>{var t;"constructor"!==e&&((t=Object.getOwnPropertyDescriptor(n,e))&&(t.get||t.set)?Object.defineProperty(i.prototype,e,t):i.prototype[e]=r.prototype[e])})})}var D2e=b(()=>{mt(M2e,"applyMixins")});function O2e(e=void 0){return function(){return e}}var P2e,B2e,$2e,F2e,z2e,G2e,U2e=b(()=>{var e;KW(),Xge(),M1e(),wme(),kme(),Tye(),Bye(),Wye(),g2e(),f2e(),m2e(),y2e(),v2e(),x2e(),I2e(),R2e(),D2e(),bye(),P2e=sme(yme,"",NaN,NaN,NaN,NaN,NaN,NaN),Object.freeze(P2e),B2e=Object.freeze({recoveryEnabled:!1,maxLookahead:3,dynamicTokensEnabled:!1,outputCst:!0,errorMessageProvider:vme,nodeLocationTracking:"none",traceInitPerf:!1,skipValidations:!1}),$2e=Object.freeze({recoveryValueFunc:mt(()=>{},"recoveryValueFunc"),resyncEnabled:!0}),(e=F2e=F2e||{})[e.INVALID_RULE_NAME=0]="INVALID_RULE_NAME",e[e.DUPLICATE_RULE_NAME=1]="DUPLICATE_RULE_NAME",e[e.INVALID_RULE_OVERRIDE=2]="INVALID_RULE_OVERRIDE",e[e.DUPLICATE_PRODUCTIONS=3]="DUPLICATE_PRODUCTIONS",e[e.UNRESOLVED_SUBRULE_REF=4]="UNRESOLVED_SUBRULE_REF",e[e.LEFT_RECURSION=5]="LEFT_RECURSION",e[e.NONE_LAST_EMPTY_ALT=6]="NONE_LAST_EMPTY_ALT",e[e.AMBIGUOUS_ALTS=7]="AMBIGUOUS_ALTS",e[e.CONFLICT_TOKENS_RULES_NAMESPACE=8]="CONFLICT_TOKENS_RULES_NAMESPACE",e[e.INVALID_TOKEN_NAME=9]="INVALID_TOKEN_NAME",e[e.NO_NON_EMPTY_LOOKAHEAD=10]="NO_NON_EMPTY_LOOKAHEAD",e[e.AMBIGUOUS_PREFIX_ALTS=11]="AMBIGUOUS_PREFIX_ALTS",e[e.TOO_MANY_ALTS=12]="TOO_MANY_ALTS",e[e.CUSTOM_LOOKAHEAD_VALIDATION=13]="CUSTOM_LOOKAHEAD_VALIDATION",mt(O2e,"EMPTY_ALT"),(z2e=class t{static{mt(this,"Parser")}static performSelfAnalysis(e){throw Error("The **static** `performSelfAnalysis` method has been deprecated.\t\nUse the **instance** method with the same name instead.")}performSelfAnalysis(){this.TRACE_INIT("performSelfAnalysis",()=>{var e;this.selfAnalysisDone=!0;let r=this.className,n=(this.TRACE_INIT("toFastProps",()=>{Hge(this)}),this.TRACE_INIT("Grammar Recording",()=>{try{this.enableRecording(),v(this.definedRulesNames,e=>{let t=this[e].originalGrammarAction,r;this.TRACE_INIT(e+" Rule",()=>{r=this.topLevelRuleRecord(e,t)}),this.gastProductionsCache[e]=r})}finally{this.disableRecording()}}),[]);if(this.TRACE_INIT("Grammar Resolving",()=>{n=wye({rules:dj(this.gastProductionsCache)}),this.definitionErrors=this.definitionErrors.concat(n)}),this.TRACE_INIT("Grammar Validations",()=>{var e,t;Cj(n)&&!1===this.skipValidations&&(e=kye({rules:dj(this.gastProductionsCache),tokenTypes:dj(this.tokensMap),errMsgProvider:bme,grammarName:r}),t=tye({lookaheadStrategy:this.lookaheadStrategy,rules:dj(this.gastProductionsCache),tokenTypes:dj(this.tokensMap),grammarName:r}),this.definitionErrors=this.definitionErrors.concat(e,t))}),Cj(this.definitionErrors)&&(this.recoveryEnabled&&this.TRACE_INIT("computeAllProdsFollows",()=>{var e=N1e(dj(this.gastProductionsCache));this.resyncFollows=e}),this.TRACE_INIT("ComputeLookaheadFunctions",()=>{var e,t;null!=(t=(e=this.lookaheadStrategy).initialize)&&t.call(e,{rules:dj(this.gastProductionsCache)}),this.preComputeLookaheadFunctions(dj(this.gastProductionsCache))})),!t.DEFER_DEFINITION_ERRORS_HANDLING&&!Cj(this.definitionErrors))throw e=x(this.definitionErrors,e=>e.message),new Error(`Parser Definition Errors detected: inside top level rule: <${this.recordingProdStack[0].name}>`)).KNOWN_RECORDER_ERROR=!0,n}},mt(b2e,"recordProd"),mt(w2e,"recordOrProd"),mt(k2e,"getIdxSuffix"),mt(T2e,"assertMethodIdxIsValid")}),R2e=b(()=>{KW(),Xge(),U2e(),N2e=class{static{mt(this,"PerformanceTracer")}initPerformanceTracer(e){var t;nj(e,"traceInitPerf")?(e=e.traceInitPerf,this.traceInitMaxIdent=(t="number"==typeof e)?e:1/0,this.traceInitPerf=t?0<e:e):(this.traceInitMaxIdent=0,this.traceInitPerf=B2e.traceInitPerf),this.traceInitIndent=-1}TRACE_INIT(e,t){var r,n,i,a;return!0===this.traceInitPerf?(this.traceInitIndent++,r=new Array(this.traceInitIndent+1).join("\t"),{time:n,value:i}=(this.traceInitIndent<this.traceInitMaxIdent&&console.log(r+`--> <${e}>`),Yge(t)),a=10<n?console.warn:console.log,this.traceInitIndent<this.traceInitMaxIdent&&a(r+`<-- <${e}> time: ${n}ms`),this.traceInitIndent--,i):t()}}});function M2e(i,e){e.forEach(r=>{let n=r.prototype;Object.getOwnPropertyNames(n).forEach(e=>{var t;"constructor"!==e&&((t=Object.getOwnPropertyDescriptor(n,e))&&(t.get||t.set)?Object.defineProperty(i.prototype,e,t):i.prototype[e]=r.prototype[e])})})}var D2e=b(()=>{mt(M2e,"applyMixins")});function O2e(e=void 0){return function(){return e}}var P2e,B2e,$2e,F2e,z2e,G2e,U2e=b(()=>{var e;KW(),Xge(),M1e(),wme(),kme(),Tye(),Bye(),Wye(),g2e(),f2e(),m2e(),y2e(),v2e(),x2e(),I2e(),R2e(),D2e(),bye(),P2e=sme(yme,"",NaN,NaN,NaN,NaN,NaN,NaN),Object.freeze(P2e),B2e=Object.freeze({recoveryEnabled:!1,maxLookahead:3,dynamicTokensEnabled:!1,outputCst:!0,errorMessageProvider:vme,nodeLocationTracking:"none",traceInitPerf:!1,skipValidations:!1}),$2e=Object.freeze({recoveryValueFunc:mt(()=>{},"recoveryValueFunc"),resyncEnabled:!0}),(e=F2e=F2e||{})[e.INVALID_RULE_NAME=0]="INVALID_RULE_NAME",e[e.DUPLICATE_RULE_NAME=1]="DUPLICATE_RULE_NAME",e[e.INVALID_RULE_OVERRIDE=2]="INVALID_RULE_OVERRIDE",e[e.DUPLICATE_PRODUCTIONS=3]="DUPLICATE_PRODUCTIONS",e[e.UNRESOLVED_SUBRULE_REF=4]="UNRESOLVED_SUBRULE_REF",e[e.LEFT_RECURSION=5]="LEFT_RECURSION",e[e.NONE_LAST_EMPTY_ALT=6]="NONE_LAST_EMPTY_ALT",e[e.AMBIGUOUS_ALTS=7]="AMBIGUOUS_ALTS",e[e.CONFLICT_TOKENS_RULES_NAMESPACE=8]="CONFLICT_TOKENS_RULES_NAMESPACE",e[e.INVALID_TOKEN_NAME=9]="INVALID_TOKEN_NAME",e[e.NO_NON_EMPTY_LOOKAHEAD=10]="NO_NON_EMPTY_LOOKAHEAD",e[e.AMBIGUOUS_PREFIX_ALTS=11]="AMBIGUOUS_PREFIX_ALTS",e[e.TOO_MANY_ALTS=12]="TOO_MANY_ALTS",e[e.CUSTOM_LOOKAHEAD_VALIDATION=13]="CUSTOM_LOOKAHEAD_VALIDATION",mt(O2e,"EMPTY_ALT"),(z2e=class t{static{mt(this,"Parser")}static performSelfAnalysis(e){throw Error("The **static** `performSelfAnalysis` method has been deprecated.\t\nUse the **instance** method with the same name instead.")}performSelfAnalysis(){this.TRACE_INIT("performSelfAnalysis",()=>{var e;this.selfAnalysisDone=!0;let r=this.className,n=(this.TRACE_INIT("toFastProps",()=>{Hge(this)}),this.TRACE_INIT("Grammar Recording",()=>{try{this.enableRecording(),v(this.definedRulesNames,e=>{let t=this[e].originalGrammarAction,r;this.TRACE_INIT(e+" Rule",()=>{r=this.topLevelRuleRecord(e,t)}),this.gastProductionsCache[e]=r})}finally{this.disableRecording()}}),[]);if(this.TRACE_INIT("Grammar Resolving",()=>{n=wye({rules:dj(this.gastProductionsCache)}),this.definitionErrors=this.definitionErrors.concat(n)}),this.TRACE_INIT("Grammar Validations",()=>{var e,t;Cj(n)&&!1===this.skipValidations&&(e=kye({rules:dj(this.gastProductionsCache),tokenTypes:dj(this.tokensMap),errMsgProvider:bme,grammarName:r}),t=tye({lookaheadStrategy:this.lookaheadStrategy,rules:dj(this.gastProductionsCache),tokenTypes:dj(this.tokensMap),grammarName:r}),this.definitionErrors=this.definitionErrors.concat(e,t))}),Cj(this.definitionErrors)&&(this.recoveryEnabled&&this.TRACE_INIT("computeAllProdsFollows",()=>{var e=N1e(dj(this.gastProductionsCache));this.resyncFollows=e}),this.TRACE_INIT("ComputeLookaheadFunctions",()=>{var e,t;null!=(t=(e=this.lookaheadStrategy).initialize)&&t.call(e,{rules:dj(this.gastProductionsCache)}),this.preComputeLookaheadFunctions(dj(this.gastProductionsCache))})),!t.DEFER_DEFINITION_ERRORS_HANDLING&&!Cj(this.definitionErrors))throw e=x(this.definitionErrors,e=>e.message),new Error(`Parser Definition Errors detected:
`+e.join(` `+e.join(`
------------------------------- -------------------------------
`))})}constructor(e,t){if(this.definitionErrors=[],this.selfAnalysisDone=!1,this.initErrorHandler(t),this.initLexerAdapter(),this.initLooksAhead(t),this.initRecognizerEngine(e,t),this.initRecoverable(t),this.initTreeBuilder(t),this.initContentAssist(),this.initGastRecorder(t),this.initPerformanceTracer(t),nj(t,"ignoredIssues"))throw new Error(`The <ignoredIssues> IParserConfig property has been deprecated. `))})}constructor(e,t){if(this.definitionErrors=[],this.selfAnalysisDone=!1,this.initErrorHandler(t),this.initLexerAdapter(),this.initLooksAhead(t),this.initRecognizerEngine(e,t),this.initRecoverable(t),this.initTreeBuilder(t),this.initContentAssist(),this.initGastRecorder(t),this.initPerformanceTracer(t),nj(t,"ignoredIssues"))throw new Error(`The <ignoredIssues> IParserConfig property has been deprecated.
Please use the <IGNORE_AMBIGUITIES> flag on the relevant DSL method instead. Please use the <IGNORE_AMBIGUITIES> flag on the relevant DSL method instead.
See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#IGNORING_AMBIGUITIES See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#IGNORING_AMBIGUITIES
For further details.`);this.skipValidations=(nj(t,"skipValidations")?t:B2e).skipValidations}}).DEFER_DEFINITION_ERRORS_HANDLING=!1,M2e(z2e,[Pye,qye,o2e,l2e,h2e,c2e,u2e,d2e,L2e,N2e]),G2e=class extends z2e{static{mt(this,"EmbeddedActionsParser")}constructor(e,t=B2e){(t=wz(t)).outputCst=!1,super(e,t)}}}),q2e=b(()=>{x1e()}),j2e=b(()=>{}),Y2e=b(()=>{q2e(),j2e()}),W2e=b(()=>{Gge()}),H2e=b(()=>{Gge(),U2e(),tme(),wme(),eye(),Gye(),kme(),Iye(),eme(),x1e(),x1e(),Y2e(),W2e()});function V2e(e,t,r){return e.name+`_${t}_`+r}function X2e(t){var r={decisionMap:{},decisionStates:[],ruleToStartState:new Map,ruleToStopState:new Map,states:[]},n=(K2e(r,t),t.length);for(let e=0;e<n;e++){var i=t[e],a=ive(r,i,i);void 0!==a&&gve(r,i,a)}return r}function K2e(t,r){var n=r.length;for(let e=0;e<n;e++){var i=r[e],a=mve(t,i,void 0,{type:bve}),s=mve(t,i,void 0,{type:Tve});a.stop=s,t.ruleToStartState.set(i,a),t.ruleToStopState.set(i,s)}}function Z2e(e,t,r){return r instanceof h1e?dve(e,t,r.terminalType,r):(r instanceof t1e?pve:r instanceof c1e?rve:r instanceof i1e?nve:r instanceof o1e?Q2e:r instanceof l1e?J2e:r instanceof a1e?eve:r instanceof s1e?tve:ive)(e,t,r)}function Q2e(e,t,r){var n=mve(e,t,r,{type:kve});return lve(e,n),sve(e,t,r,cve(e,t,n,r,ive(e,t,r)))}function J2e(e,t,r){var n=mve(e,t,r,{type:kve});return lve(e,n),sve(e,t,r,cve(e,t,n,r,ive(e,t,r)),dve(e,t,r.separator,r))}function eve(e,t,r){var n=mve(e,t,r,{type:wve});return lve(e,n),ave(e,t,r,cve(e,t,n,r,ive(e,t,r)))}function tve(e,t,r){var n=mve(e,t,r,{type:wve});return lve(e,n),ave(e,t,r,cve(e,t,n,r,ive(e,t,r)),dve(e,t,r.separator,r))}function rve(t,r,e){var n=mve(t,r,e,{type:xve}),i=(lve(t,n),x(e.definition,e=>Z2e(t,r,e)));return cve(t,r,n,e,...i)}function nve(e,t,r){var n=mve(e,t,r,{type:xve});return lve(e,n),ove(e,t,r,cve(e,t,n,r,ive(e,t,r)))}function ive(t,r,e){return 1===(e=gq(x(e.definition,e=>Z2e(t,r,e)),e=>void 0!==e)).length?e[0]:0===e.length?void 0:uve(t,e)}function ave(e,t,r,n,i){var a=n.left,n=n.right,s=mve(e,t,r,{type:Sve}),o=(lve(e,s),mve(e,t,r,{type:Ave}));return a.loopback=s,o.loopback=s,fve(n,e.decisionMap[V2e(t,i?"RepetitionMandatoryWithSeparator":"RepetitionMandatory",r.idx)]=s),void 0===i?(fve(s,a),fve(s,o)):(fve(s,o),fve(s,i.left),fve(i.right,a)),{left:a,right:o}}function sve(e,t,r,n,i){var a=n.left,n=n.right,s=mve(e,t,r,{type:_ve}),o=(lve(e,s),mve(e,t,r,{type:Ave})),l=mve(e,t,r,{type:Cve});return s.loopback=l,o.loopback=l,fve(s,a),fve(s,o),fve(n,l),void 0!==i?(fve(l,o),fve(l,i.left),fve(i.right,a)):fve(l,s),{left:e.decisionMap[V2e(t,i?"RepetitionWithSeparator":"Repetition",r.idx)]=s,right:o}}function ove(e,t,r,n){var i=n.left;return fve(i,n.right),e.decisionMap[V2e(t,"Option",r.idx)]=i,n}function lve(e,t){return e.decisionStates.push(t),t.decision=e.decisionStates.length-1,t.decision}function cve(e,t,r,n,...i){var a,s=mve(e,t,n,{type:Eve,start:r});r.end=s;for(a of i)void 0!==a?(fve(r,a.left),fve(a.right,s)):fve(r,s);return i={left:r,right:s},e.decisionMap[V2e(t,hve(n),n.idx)]=r,i}function hve(e){if(e instanceof c1e)return"Alternation";if(e instanceof i1e)return"Option";if(e instanceof o1e)return"Repetition";if(e instanceof l1e)return"RepetitionWithSeparator";if(e instanceof a1e)return"RepetitionMandatory";if(e instanceof s1e)return"RepetitionMandatoryWithSeparator";throw new Error("Invalid production type encountered")}function uve(t,r){var n=r.length;for(let e=0;e<n-1;e++){var i,a=r[e],s=(i=1===a.left.transitions.length?a.left.transitions[0]:void 0)instanceof Rve,o=i,l=r[e+1].left;a.left.type===xve&&a.right.type===xve&&void 0!==i&&(s&&o.followState===a.right||i.target===a.right)?(s?o.followState=l:i.target=l,vve(t,a.right)):fve(a.right,l)}return{left:r[0].left,right:r[n-1].right}}function dve(e,t,r,n){var i=mve(e,t,n,{type:xve}),e=mve(e,t,n,{type:xve});return yve(i,new Nve(e,r)),{left:i,right:e}}function pve(e,t,r){var n=r.referencedRule,i=e.ruleToStartState.get(n),a=mve(e,t,r,{type:xve}),e=mve(e,t,r,{type:xve});return yve(a,new Rve(i,n,e)),{left:a,right:e}}function gve(e,t,r){var n=e.ruleToStartState.get(t),e=(fve(n,r.left),e.ruleToStopState.get(t));return fve(r.right,e),{left:n,right:e}}function fve(e,t){yve(e,new Ive(t))}function mve(e,t,r,n){return r=Object.assign({atn:e,production:r,epsilonOnlyTransitions:!1,rule:t,transitions:[],nextTokenWithinRule:[],stateNumber:e.states.length},n),e.states.push(r),r}function yve(e,t){0===e.transitions.length&&(e.epsilonOnlyTransitions=t.isEpsilon()),e.transitions.push(t)}function vve(e,t){e.states.splice(e.states.indexOf(t),1)}var xve,bve,wve,kve,Tve,Eve,Cve,_ve,Sve,Ave,Lve,Nve,Ive,Rve,Mve=b(()=>{Dq(),fq(),H2e(),mt(V2e,"buildATNKey"),xve=1,bve=2,wve=4,kve=5,Tve=7,Eve=8,Cve=9,_ve=10,Sve=11,Ave=12,Lve=class{static{mt(this,"AbstractTransition")}constructor(e){this.target=e}isEpsilon(){return!1}},Nve=class extends Lve{static{mt(this,"AtomTransition")}constructor(e,t){super(e),this.tokenType=t}},Ive=class extends Lve{static{mt(this,"EpsilonTransition")}constructor(e){super(e)}isEpsilon(){return!0}},Rve=class extends Line truncated For further details.`);this.skipValidations=(nj(t,"skipValidations")?t:B2e).skipValidations}}).DEFER_DEFINITION_ERRORS_HANDLING=!1,M2e(z2e,[Pye,qye,o2e,l2e,h2e,c2e,u2e,d2e,L2e,N2e]),G2e=class extends z2e{static{mt(this,"EmbeddedActionsParser")}constructor(e,t=B2e){(t=wz(t)).outputCst=!1,super(e,t)}}}),q2e=b(()=>{x1e()}),j2e=b(()=>{}),Y2e=b(()=>{q2e(),j2e()}),W2e=b(()=>{Gge()}),H2e=b(()=>{Gge(),U2e(),tme(),wme(),eye(),Gye(),kme(),Iye(),eme(),x1e(),x1e(),Y2e(),W2e()});function V2e(e,t,r){return e.name+`_${t}_`+r}function X2e(t){var r={decisionMap:{},decisionStates:[],ruleToStartState:new Map,ruleToStopState:new Map,states:[]},n=(K2e(r,t),t.length);for(let e=0;e<n;e++){var i=t[e],a=ive(r,i,i);void 0!==a&&gve(r,i,a)}return r}function K2e(t,r){var n=r.length;for(let e=0;e<n;e++){var i=r[e],a=mve(t,i,void 0,{type:bve}),s=mve(t,i,void 0,{type:Tve});a.stop=s,t.ruleToStartState.set(i,a),t.ruleToStopState.set(i,s)}}function Z2e(e,t,r){return r instanceof h1e?dve(e,t,r.terminalType,r):(r instanceof t1e?pve:r instanceof c1e?rve:r instanceof i1e?nve:r instanceof o1e?Q2e:r instanceof l1e?J2e:r instanceof a1e?eve:r instanceof s1e?tve:ive)(e,t,r)}function Q2e(e,t,r){var n=mve(e,t,r,{type:kve});return lve(e,n),sve(e,t,r,cve(e,t,n,r,ive(e,t,r)))}function J2e(e,t,r){var n=mve(e,t,r,{type:kve});return lve(e,n),sve(e,t,r,cve(e,t,n,r,ive(e,t,r)),dve(e,t,r.separator,r))}function eve(e,t,r){var n=mve(e,t,r,{type:wve});return lve(e,n),ave(e,t,r,cve(e,t,n,r,ive(e,t,r)))}function tve(e,t,r){var n=mve(e,t,r,{type:wve});return lve(e,n),ave(e,t,r,cve(e,t,n,r,ive(e,t,r)),dve(e,t,r.separator,r))}function rve(t,r,e){var n=mve(t,r,e,{type:xve}),i=(lve(t,n),x(e.definition,e=>Z2e(t,r,e)));return cve(t,r,n,e,...i)}function nve(e,t,r){var n=mve(e,t,r,{type:xve});return lve(e,n),ove(e,t,r,cve(e,t,n,r,ive(e,t,r)))}function ive(t,r,e){return 1===(e=gq(x(e.definition,e=>Z2e(t,r,e)),e=>void 0!==e)).length?e[0]:0===e.length?void 0:uve(t,e)}function ave(e,t,r,n,i){var a=n.left,n=n.right,s=mve(e,t,r,{type:_ve}),o=(lve(e,s),mve(e,t,r,{type:Ave}));return a.loopback=s,o.loopback=s,fve(n,e.decisionMap[V2e(t,i?"RepetitionMandatoryWithSeparator":"RepetitionMandatory",r.idx)]=s),void 0===i?(fve(s,a),fve(s,o)):(fve(s,o),fve(s,i.left),fve(i.right,a)),{left:a,right:o}}function sve(e,t,r,n,i){var a=n.left,n=n.right,s=mve(e,t,r,{type:Sve}),o=(lve(e,s),mve(e,t,r,{type:Ave})),l=mve(e,t,r,{type:Cve});return s.loopback=l,o.loopback=l,fve(s,a),fve(s,o),fve(n,l),void 0!==i?(fve(l,o),fve(l,i.left),fve(i.right,a)):fve(l,s),{left:e.decisionMap[V2e(t,i?"RepetitionWithSeparator":"Repetition",r.idx)]=s,right:o}}function ove(e,t,r,n){var i=n.left;return fve(i,n.right),e.decisionMap[V2e(t,"Option",r.idx)]=i,n}function lve(e,t){return e.decisionStates.push(t),t.decision=e.decisionStates.length-1,t.decision}function cve(e,t,r,n,...i){var a,s=mve(e,t,n,{type:Eve,start:r});r.end=s;for(a of i)void 0!==a?(fve(r,a.left),fve(a.right,s)):fve(r,s);return i={left:r,right:s},e.decisionMap[V2e(t,hve(n),n.idx)]=r,i}function hve(e){if(e instanceof c1e)return"Alternation";if(e instanceof i1e)return"Option";if(e instanceof o1e)return"Repetition";if(e instanceof l1e)return"RepetitionWithSeparator";if(e instanceof a1e)return"RepetitionMandatory";if(e instanceof s1e)return"RepetitionMandatoryWithSeparator";throw new Error("Invalid production type encountered")}function uve(t,r){var n=r.length;for(let e=0;e<n-1;e++){var i,a=r[e],s=(i=1===a.left.transitions.length?a.left.transitions[0]:void 0)instanceof Rve,o=i,l=r[e+1].left;a.left.type===xve&&a.right.type===xve&&void 0!==i&&(s&&o.followState===a.right||i.target===a.right)?(s?o.followState=l:i.target=l,vve(t,a.right)):fve(a.right,l)}return{left:r[0].left,right:r[n-1].right}}function dve(e,t,r,n){var i=mve(e,t,n,{type:xve}),e=mve(e,t,n,{type:xve});return yve(i,new Nve(e,r)),{left:i,right:e}}function pve(e,t,r){var n=r.referencedRule,i=e.ruleToStartState.get(n),a=mve(e,t,r,{type:xve}),e=mve(e,t,r,{type:xve});return yve(a,new Rve(i,n,e)),{left:a,right:e}}function gve(e,t,r){var n=e.ruleToStartState.get(t),e=(fve(n,r.left),e.ruleToStopState.get(t));return fve(r.right,e),{left:n,right:e}}function fve(e,t){yve(e,new Ive(t))}function mve(e,t,r,n){return r=Object.assign({atn:e,production:r,epsilonOnlyTransitions:!1,rule:t,transitions:[],nextTokenWithinRule:[],stateNumber:e.states.length},n),e.states.push(r),r}function yve(e,t){0===e.transitions.length&&(e.epsilonOnlyTransitions=t.isEpsilon()),e.transitions.push(t)}function vve(e,t){e.states.splice(e.states.indexOf(t),1)}var xve,bve,wve,kve,Tve,Eve,Cve,Sve,_ve,Ave,Lve,Nve,Ive,Rve,Mve=b(()=>{Dq(),fq(),H2e(),mt(V2e,"buildATNKey"),xve=1,bve=2,wve=4,kve=5,Tve=7,Eve=8,Cve=9,Sve=10,_ve=11,Ave=12,Lve=class{static{mt(this,"AbstractTransition")}constructor(e){this.target=e}isEpsilon(){return!1}},Nve=class extends Lve{static{mt(this,"AtomTransition")}constructor(e,t){super(e),this.tokenType=t}},Ive=class extends Lve{static{mt(this,"EpsilonTransition")}constructor(e){super(e)}isEpsilon(){return!0}},Rve=class extends Line truncated
<${t}> may appears as a prefix path in all these alternatives. <${t}> may appears as a prefix path in all these alternatives.
`+`See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#AMBIGUOUS_ALTERNATIVES `+`See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#AMBIGUOUS_ALTERNATIVES
For Further details.`}function Wve(e){if(e instanceof t1e)return"SUBRULE";if(e instanceof i1e)return"OPTION";if(e instanceof c1e)return"OR";if(e instanceof a1e)return"AT_LEAST_ONE";if(e instanceof s1e)return"AT_LEAST_ONE_SEP";if(e instanceof l1e)return"MANY_SEP";if(e instanceof o1e)return"MANY";if(e instanceof h1e)return"CONSUME";throw Error("non exhaustive match")}function Hve(e,t,r){return t=Pq(t.configs.elements,e=>e.state.transitions),{actualToken:r,possibleTokenTypes:$W(t.filter(e=>e instanceof Nve).map(e=>e.tokenType),e=>e.tokenTypeIdx),tokenPath:e}}function Vve(e,t){return e.edges[t.tokenTypeIdx]}function Xve(e,t,r){var n,i=new Pve,a=[];for(n of e.elements)if(!1!==r.is(n.alt))if(n.state.type===Tve)a.push(n);else{var s=n.state.transitions.length;for(let e=0;e<s;e++){var o=Kve(n.state.transitions[e],t);void 0!==o&&i.add({state:o,alt:n.alt,stack:n.stack})}}let l;if(void 0===(l=0===a.length&&1===i.size?i:l)){l=new Pve;for(var c of i.elements)rxe(c,l)}if(0<a.length&&!ixe(l))for(var h of a)l.add(h);return l}function Kve(e,t){if(e instanceof Nve&&ome(t,e.tokenType))return e.target}function Zve(e,t){let r;for(var n of e.elements)if(!0===t.is(n.alt))if(void 0===r)r=n.alt;else if(r!==n.alt)return;return r}function Qve(e){return{configs:e,edges:{},isAcceptState:!1,prediction:-1}}function Jve(e,t,r,n){return n=exe(e,n),t.edges[r.tokenTypeIdx]=n}function exe(e,t){var r,n;return t===Ove?t:(r=t.configs.key,void 0!==(n=e.states[r])?n:(t.configs.finalize(),e.states[r]=t))}function txe(t){var r=new Pve,n=t.transitions.length;for(let e=0;e<n;e++)rxe({state:t.transitions[e].target,alt:e,stack:[]},r);return r}function rxe(t,r){var e,n=t.state;if(n.type===Tve)0<t.stack.length?rxe({state:(e=[...t.stack]).pop(),alt:t.alt,stack:e},r):r.add(t);else{n.epsilonOnlyTransitions||r.add(t);var i=n.transitions.length;for(let e=0;e<i;e++){var a=nxe(t,n.transitions[e]);void 0!==a&&rxe(a,r)}}}function nxe(e,t){var r;return t instanceof Ive?{state:t.target,alt:e.alt,stack:e.stack}:t instanceof Rve?(r=[...e.stack,t.followState],{state:t.target,alt:e.alt,stack:r}):void 0}function ixe(e){for(var t of e.elements)if(t.state.type===Tve)return!0;return!1}function axe(e){for(var t of e.elements)if(t.state.type!==Tve)return!1;return!0}function sxe(e){return!!axe(e)||lxe(e=oxe(e.elements))&&!cxe(e)}function oxe(e){var r,n=new Map;for(r of e){let e=Dve(r,!1),t=n.get(e);void 0===t&&(t={},n.set(e,t)),t[r.alt]=!0}return n}function lxe(e){for(var t of Array.from(e.values()))if(1<Object.keys(t).length)return!0;return!1}function cxe(e){for(var t of Array.from(e.values()))if(1===Object.keys(t).length)return!0;return!1}var hxe,uxe,dxe,pxe,gxe,fxe,mxe,yxe,vxe,xxe,bxe,wxe,kxe,Txe,Exe,Cxe,_xe,Sxe,Axe,Lxe,Nxe,Ixe,Rxe,Mxe,Dxe,Oxe,Pxe,Bxe,$xe,Fxe,zxe,Gxe,Uxe,qxe,jxe,Yxe,Wxe,Hxe,Vxe,Xxe,Kxe,Zxe,Qxe,Jxe,ebe,tbe,rbe,nbe,ibe,abe,sbe,obe,lbe,cbe,hbe,ube,dbe,pbe,gbe,fbe,mbe,ybe,vbe,xbe,bbe,wbe,kbe,Tbe,Ebe,Cbe,_be,Sbe,Abe,Lbe,Nbe,Ibe,Rbe,Mbe,Dbe,Obe,Pbe,yt,Bbe,$be,Fbe,zbe,Gbe,Ube,qbe=b(()=>{H2e(),Mve(),Bve(),Kj(),Bq(),FW(),Dq(),g$(),JU(),_j(),cW(),mt($ve,"createDFACache"),hxe=class{static{mt(this,"PredicateSet")}constructor(){this.predicates=[]}is(e){return e>=this.predicates.length||this.predicates[e]}set(e,t){this.predicates[e]=t}toString(){let t="",r=this.predicates.length;for(let e=0;e<r;e++)t+=!0===this.predicates[e]?"1":"0";return t}},uxe=new hxe,dxe=class extends Fye{static{mt(this,"LLStarLookaheadStrategy")}constructor(e){super(),this.logging=null!=(e=e?.logging)?e:e=>console.log(e)}initialize(e){this.atn=X2e(e.rules),this.dfas=zve(this.atn)}validateAmbiguousAlternationAlternatives(){return[]}validateEmptyOrAlternatives(){return[]}buildLookaheadForAlternation(e){let{prodOccurrence:t,rule:r,hasPredicates:n,dynamicTokensEnabled:i}=e,a=this.dfas,s=this.logging,o=V2e(r,"Alternation",t),l=this.atn.decisionMap[o].decision,c=x(Bme({maxLookahead:1,occurrence:t,prodType:"Alternation",rule:r}),e=>x(e,e=>e[0]));if(!Fve(c,!1)||i)return n?function(t){var r=new hxe,n=void 0===t?0:t.length;for(let e=0;e<n;e++){var i=t?.[e].GATE;r.set(e,void 0===i||i.call(this))}var e=Gve.call(this,a,l,r,s);return"number"==typeof e?e:void 0}:function(){var e=Gve.call(this,a,l,uxe,s);return"number"==typeof e?e:void 0};{let r=lW(c,(t,e,r)=>(v(e,e=>{e&&(t[e.tokenTypeIdx]=r,v(e.categoryMatches,e=>{t[e]=r}))}),t),{});return n?function(e){var t=this.LA(1),t=r[t.tokenTypeIdx];if(void 0===e||void 0===t||void 0===(e=null==(e=e[t])?void 0:e.GATE)||!1!==e.call(this))return t}:function(){var e=this.LA(1);return r[e.tokenTypeIdx]}}}buildLookaheadForOptional(r){let{prodOccurrence:e,rule:t,prodType:n,dynamicTokensEnabled:i}=r,a=this.dfas,s=this.logging,o=V2e(t,n,e),l=this.atn.decisionMap[o].decision,c=x(Bme({maxLookahead:1,occurrence:e,prodType:n,rule:t}),e=>x(e,e=>e[0]));if(Fve(c)&&c[0][0]&&!i){if(r=c[0],1===(r=p$(r)).length&&Cj(r[0].categoryMatches)){let e=r[0].tokenTypeIdx;return function(){return this.LA(1).tokenTypeIdx===e}}{let t=lW(r,(t,e)=>(void 0!==e&&(t[e.tokenTypeIdx]=!0,v(e.categoryMatches,e=>{t Line truncated For Further details.`}function Wve(e){if(e instanceof t1e)return"SUBRULE";if(e instanceof i1e)return"OPTION";if(e instanceof c1e)return"OR";if(e instanceof a1e)return"AT_LEAST_ONE";if(e instanceof s1e)return"AT_LEAST_ONE_SEP";if(e instanceof l1e)return"MANY_SEP";if(e instanceof o1e)return"MANY";if(e instanceof h1e)return"CONSUME";throw Error("non exhaustive match")}function Hve(e,t,r){return t=Pq(t.configs.elements,e=>e.state.transitions),{actualToken:r,possibleTokenTypes:$W(t.filter(e=>e instanceof Nve).map(e=>e.tokenType),e=>e.tokenTypeIdx),tokenPath:e}}function Vve(e,t){return e.edges[t.tokenTypeIdx]}function Xve(e,t,r){var n,i=new Pve,a=[];for(n of e.elements)if(!1!==r.is(n.alt))if(n.state.type===Tve)a.push(n);else{var s=n.state.transitions.length;for(let e=0;e<s;e++){var o=Kve(n.state.transitions[e],t);void 0!==o&&i.add({state:o,alt:n.alt,stack:n.stack})}}let l;if(void 0===(l=0===a.length&&1===i.size?i:l)){l=new Pve;for(var c of i.elements)rxe(c,l)}if(0<a.length&&!ixe(l))for(var h of a)l.add(h);return l}function Kve(e,t){if(e instanceof Nve&&ome(t,e.tokenType))return e.target}function Zve(e,t){let r;for(var n of e.elements)if(!0===t.is(n.alt))if(void 0===r)r=n.alt;else if(r!==n.alt)return;return r}function Qve(e){return{configs:e,edges:{},isAcceptState:!1,prediction:-1}}function Jve(e,t,r,n){return n=exe(e,n),t.edges[r.tokenTypeIdx]=n}function exe(e,t){var r,n;return t===Ove?t:(r=t.configs.key,void 0!==(n=e.states[r])?n:(t.configs.finalize(),e.states[r]=t))}function txe(t){var r=new Pve,n=t.transitions.length;for(let e=0;e<n;e++)rxe({state:t.transitions[e].target,alt:e,stack:[]},r);return r}function rxe(t,r){var e,n=t.state;if(n.type===Tve)0<t.stack.length?rxe({state:(e=[...t.stack]).pop(),alt:t.alt,stack:e},r):r.add(t);else{n.epsilonOnlyTransitions||r.add(t);var i=n.transitions.length;for(let e=0;e<i;e++){var a=nxe(t,n.transitions[e]);void 0!==a&&rxe(a,r)}}}function nxe(e,t){var r;return t instanceof Ive?{state:t.target,alt:e.alt,stack:e.stack}:t instanceof Rve?(r=[...e.stack,t.followState],{state:t.target,alt:e.alt,stack:r}):void 0}function ixe(e){for(var t of e.elements)if(t.state.type===Tve)return!0;return!1}function axe(e){for(var t of e.elements)if(t.state.type!==Tve)return!1;return!0}function sxe(e){return!!axe(e)||lxe(e=oxe(e.elements))&&!cxe(e)}function oxe(e){var r,n=new Map;for(r of e){let e=Dve(r,!1),t=n.get(e);void 0===t&&(t={},n.set(e,t)),t[r.alt]=!0}return n}function lxe(e){for(var t of Array.from(e.values()))if(1<Object.keys(t).length)return!0;return!1}function cxe(e){for(var t of Array.from(e.values()))if(1===Object.keys(t).length)return!0;return!1}var hxe,uxe,dxe,pxe,gxe,fxe,mxe,yxe,vxe,xxe,bxe,wxe,kxe,Txe,Exe,Cxe,Sxe,_xe,Axe,Lxe,Nxe,Ixe,Rxe,Mxe,Dxe,Oxe,Pxe,Bxe,$xe,Fxe,zxe,Gxe,Uxe,qxe,jxe,Yxe,Wxe,Hxe,Vxe,Xxe,Kxe,Zxe,Qxe,Jxe,ebe,tbe,rbe,nbe,ibe,abe,sbe,obe,lbe,cbe,hbe,ube,dbe,pbe,gbe,fbe,mbe,ybe,vbe,xbe,bbe,wbe,kbe,Tbe,Ebe,Cbe,Sbe,_be,Abe,Lbe,Nbe,Ibe,Rbe,Mbe,Dbe,Obe,Pbe,yt,Bbe,$be,Fbe,zbe,Gbe,Ube,qbe=b(()=>{H2e(),Mve(),Bve(),Kj(),Bq(),FW(),Dq(),g$(),JU(),Sj(),cW(),mt($ve,"createDFACache"),hxe=class{static{mt(this,"PredicateSet")}constructor(){this.predicates=[]}is(e){return e>=this.predicates.length||this.predicates[e]}set(e,t){this.predicates[e]=t}toString(){let t="",r=this.predicates.length;for(let e=0;e<r;e++)t+=!0===this.predicates[e]?"1":"0";return t}},uxe=new hxe,dxe=class extends Fye{static{mt(this,"LLStarLookaheadStrategy")}constructor(e){super(),this.logging=null!=(e=e?.logging)?e:e=>console.log(e)}initialize(e){this.atn=X2e(e.rules),this.dfas=zve(this.atn)}validateAmbiguousAlternationAlternatives(){return[]}validateEmptyOrAlternatives(){return[]}buildLookaheadForAlternation(e){let{prodOccurrence:t,rule:r,hasPredicates:n,dynamicTokensEnabled:i}=e,a=this.dfas,s=this.logging,o=V2e(r,"Alternation",t),l=this.atn.decisionMap[o].decision,c=x(Bme({maxLookahead:1,occurrence:t,prodType:"Alternation",rule:r}),e=>x(e,e=>e[0]));if(!Fve(c,!1)||i)return n?function(t){var r=new hxe,n=void 0===t?0:t.length;for(let e=0;e<n;e++){var i=t?.[e].GATE;r.set(e,void 0===i||i.call(this))}var e=Gve.call(this,a,l,r,s);return"number"==typeof e?e:void 0}:function(){var e=Gve.call(this,a,l,uxe,s);return"number"==typeof e?e:void 0};{let r=lW(c,(t,e,r)=>(v(e,e=>{e&&(t[e.tokenTypeIdx]=r,v(e.categoryMatches,e=>{t[e]=r}))}),t),{});return n?function(e){var t=this.LA(1),t=r[t.tokenTypeIdx];if(void 0===e||void 0===t||void 0===(e=null==(e=e[t])?void 0:e.GATE)||!1!==e.call(this))return t}:function(){var e=this.LA(1);return r[e.tokenTypeIdx]}}}buildLookaheadForOptional(r){let{prodOccurrence:e,rule:t,prodType:n,dynamicTokensEnabled:i}=r,a=this.dfas,s=this.logging,o=V2e(t,n,e),l=this.atn.decisionMap[o].decision,c=x(Bme({maxLookahead:1,occurrence:e,prodType:n,rule:t}),e=>x(e,e=>e[0]));if(Fve(c)&&c[0][0]&&!i){if(r=c[0],1===(r=p$(r)).length&&Cj(r[0].categoryMatches)){let e=r[0].tokenTypeIdx;return function(){return this.LA(1).tokenTypeIdx===e}}{let t=lW(r,(t,e)=>(void 0!==e&&(t[e.tokenTypeIdx]=!0,v(e.categoryMatches,e=>{t Line truncated
`,"\r"===i&&e+1<r.length&&r.charAt(e+1)===` `,"\r"===i&&e+1<r.length&&r.charAt(e+1)===`
`&&e++}n&&0<r.length&&t.push(r.length),this._lineOffsets=t}return this._lineOffsets}positionAt(e){e=Math.max(Math.min(e,this._content.length),0);let t=this.getLineOffsets(),r=0,n=t.length;if(0===n)return yxe.create(0,e);for(;r<n;){var i=Math.floor((r+n)/2);t[i]>e?n=i:r=i+1}var a=r-1;return yxe.create(a,e-t[a])}offsetAt(e){var t,r=this.getLineOffsets();return e.line>=r.length?this._content.length:e.line<0?0:(t=r[e.line],r=e.line+1<r.length?r[e.line+1]:this._content.length,Math.max(Math.min(t+e.character,r),t))}get lineCount(){return this.getLineOffsets().length}};{var O=yt=yt||{};let n=Object.prototype.toString;function at(e){return typeof e<"u"}function st(e){return"u"<typeof e}function ot(e){return!0===e||!1===e}function lt(e){return"[object String]"===n.call(e)}function ct(e){return"[object Number]"===n.call(e)}function ht(e,t,r){return"[object Number]"===n.call(e)&&t<=e&&e<=r}function ut(e){return"[object Number]"===n.call(e)&&-2147483648<=e&&e<=2147483647}function dt(e){return"[object Number]"===n.call(e)&&0<=e&&e<=2147483647}function pt(e){return"[object Function]"===n.call(e)}function gt(e){return null!==e&&"object"==typeof e}function ft(e,t){return Array.isArray(e)&&e.every(t)}mt(at,"defined"),O.defined=at,mt(st,"undefined"),O.undefined=st,mt(ot,"boolean"),O.boolean=ot,mt(lt,"string"),O.string=lt,mt(ct,"number"),O.number=ct,mt(ht,"numberRange"),O.numberRange=ht,mt(ut,"integer"),O.integer=ut,mt(dt,"uinteger"),O.uinteger=dt,mt(pt,"func"),O.func=pt,mt(gt,"objectLiteral"),O.objectLiteral=gt,mt(ft,"typedArray"),O.typedArray=ft}}),Wbe=b(()=>{Ybe(),cde(),Bbe=class{static{mt(this,"CstNodeBuilder")}constructor(){this.nodeStack=[]}get current(){var e;return null!=(e=this.nodeStack[this.nodeStack.length-1])?e:this.rootNode}buildRootNode(e){return this.rootNode=new Ube(e),this.rootNode.root=this.rootNode,this.nodeStack=[this.rootNode],this.rootNode}buildCompositeNode(e){var t=new zbe;return t.grammarSource=e,t.root=this.rootNode,this.current.content.push(t),this.nodeStack.push(t),t}buildLeafNode(e,t){return(e=new Fbe(e.startOffset,e.image.length,Yue(e),e.tokenType,!t)).grammarSource=t,e.root=this.rootNode,this.current.content.push(e),e}removeNode(e){var t=e.container;t&&0<=(e=t.content.indexOf(e))&&t.content.splice(e,1)}addHiddenNodes(e){var t,r=[];for(t of e){var n=new Fbe(t.startOffset,t.image.length,Yue(t),t.tokenType,!0);n.root=this.rootNode,r.push(n)}let i=this.current,a=!1;if(0<i.content.length)i.content.push(...r);else{for(;i.container;){var s=i.container.content.indexOf(i);if(0<s){i.container.content.splice(s,0,...r),a=!0;break}i=i.container}a||this.rootNode.content.unshift(...r)}}construct(e){var t=this.current;"string"==typeof e.$type&&(this.current.astNode=e),e.$cstNode=t,0===(e=this.nodeStack.pop())?.content.length&&this.removeNode(e)}},$be=class{static{mt(this,"AbstractCstNode")}get parent(){return this.container}get feature(){return this.grammarSource}get hidden(){return!1}get astNode(){var e="string"==typeof(null==(e=this._astNode)?void 0:e.$type)?this._astNode:null==(e=this.container)?void 0:e.astNode;if(e)return e;throw new Error("This node has no associated AST element")}set astNode(e){this._astNode=e}get element(){return this.astNode}get text(){return this.root.fullText.substring(this.offset,this.end)}},Fbe=class extends $be{static{mt(this,"LeafCstNodeImpl")}get offset(){return this._offset}get length(){return this._length}get end(){return this._offset+this._length}get hidden(){return this._hidden}get tokenType(){return this._tokenType}get range(){return this._range}constructor(e,t,r,n,i=!1){super(),this._hidden=i,this._offset=e,this._tokenType=n,this._length=t,this._range=r}},zbe=class extends $be{static{mt(this,"CompositeCstNodeImpl")}constructor(){super(...arguments),this.content=new Gbe(this)}get children(){return this.content}get offset(){var e;return null!=(e=null==(e=this.firstNonHiddenNode)?void 0:e.offset)?e:0}get length(){return this.end-this.offset}get end(){var e;return null!=(e=null==(e=this.lastNonHiddenNode)?void 0:e.end)?e:0}get range(){var e=this.firstNonHiddenNode,t=this.lastNonHiddenNode;return e&&t?(void 0===this._rangeCache&&(e=e.range,t=t.range,this._rangeCache={start:e.start,end:t.end.line<e.start.line?e.start:t.end}),this._rangeCache):{start:yxe.create(0,0),end:yxe.create(0,0)}}get firstNonHiddenNode(){for(var e of this.content)if(!e.hidden)return e;return this.content[0]}get lastNonHiddenNode(){for(let e=this.content.length-1;0<=e;e--){var t=this.content[e];if(!t.hidden)return t}return this.content[this.content.length-1]}},Gbe=class t extends Array{static{mt(this,"CstNodeContainer")}constructor(e){super(),this.parent=e,Object.setPrototypeOf(this,t.prototype)}push(...e){return this.addParents(e),super.push(...e)}unshift(...e){return this.addParents(e),super.unshift(...e)}splice(e,t,...r){return this.addParents(r),super.splice(e,t,...r)}addParents(e){for(var t of e)t.container=this.parent}},Ube=class extends zbe{static{mt(this,"RootCstNodeImpl")}get text(){return this._ Line truncated `&&e++}n&&0<r.length&&t.push(r.length),this._lineOffsets=t}return this._lineOffsets}positionAt(e){e=Math.max(Math.min(e,this._content.length),0);let t=this.getLineOffsets(),r=0,n=t.length;if(0===n)return yxe.create(0,e);for(;r<n;){var i=Math.floor((r+n)/2);t[i]>e?n=i:r=i+1}var a=r-1;return yxe.create(a,e-t[a])}offsetAt(e){var t,r=this.getLineOffsets();return e.line>=r.length?this._content.length:e.line<0?0:(t=r[e.line],r=e.line+1<r.length?r[e.line+1]:this._content.length,Math.max(Math.min(t+e.character,r),t))}get lineCount(){return this.getLineOffsets().length}};{var O=yt=yt||{};let n=Object.prototype.toString;function at(e){return typeof e<"u"}function st(e){return"u"<typeof e}function ot(e){return!0===e||!1===e}function lt(e){return"[object String]"===n.call(e)}function ct(e){return"[object Number]"===n.call(e)}function ht(e,t,r){return"[object Number]"===n.call(e)&&t<=e&&e<=r}function ut(e){return"[object Number]"===n.call(e)&&-2147483648<=e&&e<=2147483647}function dt(e){return"[object Number]"===n.call(e)&&0<=e&&e<=2147483647}function pt(e){return"[object Function]"===n.call(e)}function gt(e){return null!==e&&"object"==typeof e}function ft(e,t){return Array.isArray(e)&&e.every(t)}mt(at,"defined"),O.defined=at,mt(st,"undefined"),O.undefined=st,mt(ot,"boolean"),O.boolean=ot,mt(lt,"string"),O.string=lt,mt(ct,"number"),O.number=ct,mt(ht,"numberRange"),O.numberRange=ht,mt(ut,"integer"),O.integer=ut,mt(dt,"uinteger"),O.uinteger=dt,mt(pt,"func"),O.func=pt,mt(gt,"objectLiteral"),O.objectLiteral=gt,mt(ft,"typedArray"),O.typedArray=ft}}),Wbe=b(()=>{Ybe(),cde(),Bbe=class{static{mt(this,"CstNodeBuilder")}constructor(){this.nodeStack=[]}get current(){var e;return null!=(e=this.nodeStack[this.nodeStack.length-1])?e:this.rootNode}buildRootNode(e){return this.rootNode=new Ube(e),this.rootNode.root=this.rootNode,this.nodeStack=[this.rootNode],this.rootNode}buildCompositeNode(e){var t=new zbe;return t.grammarSource=e,t.root=this.rootNode,this.current.content.push(t),this.nodeStack.push(t),t}buildLeafNode(e,t){return(e=new Fbe(e.startOffset,e.image.length,Yue(e),e.tokenType,!t)).grammarSource=t,e.root=this.rootNode,this.current.content.push(e),e}removeNode(e){var t=e.container;t&&0<=(e=t.content.indexOf(e))&&t.content.splice(e,1)}addHiddenNodes(e){var t,r=[];for(t of e){var n=new Fbe(t.startOffset,t.image.length,Yue(t),t.tokenType,!0);n.root=this.rootNode,r.push(n)}let i=this.current,a=!1;if(0<i.content.length)i.content.push(...r);else{for(;i.container;){var s=i.container.content.indexOf(i);if(0<s){i.container.content.splice(s,0,...r),a=!0;break}i=i.container}a||this.rootNode.content.unshift(...r)}}construct(e){var t=this.current;"string"==typeof e.$type&&(this.current.astNode=e),e.$cstNode=t,0===(e=this.nodeStack.pop())?.content.length&&this.removeNode(e)}},$be=class{static{mt(this,"AbstractCstNode")}get parent(){return this.container}get feature(){return this.grammarSource}get hidden(){return!1}get astNode(){var e="string"==typeof(null==(e=this._astNode)?void 0:e.$type)?this._astNode:null==(e=this.container)?void 0:e.astNode;if(e)return e;throw new Error("This node has no associated AST element")}set astNode(e){this._astNode=e}get element(){return this.astNode}get text(){return this.root.fullText.substring(this.offset,this.end)}},Fbe=class extends $be{static{mt(this,"LeafCstNodeImpl")}get offset(){return this._offset}get length(){return this._length}get end(){return this._offset+this._length}get hidden(){return this._hidden}get tokenType(){return this._tokenType}get range(){return this._range}constructor(e,t,r,n,i=!1){super(),this._hidden=i,this._offset=e,this._tokenType=n,this._length=t,this._range=r}},zbe=class extends $be{static{mt(this,"CompositeCstNodeImpl")}constructor(){super(...arguments),this.content=new Gbe(this)}get children(){return this.content}get offset(){var e;return null!=(e=null==(e=this.firstNonHiddenNode)?void 0:e.offset)?e:0}get length(){return this.end-this.offset}get end(){var e;return null!=(e=null==(e=this.lastNonHiddenNode)?void 0:e.end)?e:0}get range(){var e=this.firstNonHiddenNode,t=this.lastNonHiddenNode;return e&&t?(void 0===this._rangeCache&&(e=e.range,t=t.range,this._rangeCache={start:e.start,end:t.end.line<e.start.line?e.start:t.end}),this._rangeCache):{start:yxe.create(0,0),end:yxe.create(0,0)}}get firstNonHiddenNode(){for(var e of this.content)if(!e.hidden)return e;return this.content[0]}get lastNonHiddenNode(){for(let e=this.content.length-1;0<=e;e--){var t=this.content[e];if(!t.hidden)return t}return this.content[this.content.length-1]}},Gbe=class t extends Array{static{mt(this,"CstNodeContainer")}constructor(e){super(),this.parent=e,Object.setPrototypeOf(this,t.prototype)}push(...e){return this.addParents(e),super.push(...e)}unshift(...e){return this.addParents(e),super.unshift(...e)}splice(e,t,...r){return this.addParents(r),super.splice(e,t,...r)}addParents(e){for(var t of e)t.container=this.parent}},Ube=class extends zbe{static{mt(this,"RootCstNodeImpl")}get text(){return this._ Line truncated
`;case"r":return"\r";case"t":return"\t";case"v":return"\v";case"0":return"\0";default:return e}}function t(e){return"^"===e.charAt(0)?e.substring(1):e}function r(e){return parseInt(e)}function n(e){return BigInt(e)}function i(e){return new Date(e)}function s(e){return Number(e)}function o(e){return"true"===e.toLowerCase()}var l;n0e(),$ge(),S4e=class{static{mt(this,"DefaultValueConverter")}convert(e,t){var r=t.grammarSource;if(tpe(r=Xde(r)?ige(r):r)){if(r=r.rule.ref)return this.runConverter(r,e,t);throw new Error("This cst node was not parsed by a rule.")}return e}runConverter(e,t,r){switch(e.name.toUpperCase()){case"INT":return A4e.convertInt(t);case"STRING":return A4e.convertString(t);case"ID":return A4e.convertID(t)}switch(null==(e=Sge(e))?void 0:e.toLowerCase()){case"number":return A4e.convertNumber(t);case"boolean":return A4e.convertBoolean(t);case"bigint":return A4e.convertBigint(t);case"date":return A4e.convertDate(t);default:return t}}},l=A4e=A4e||{},mt(e,"convertString"),l.convertString=e,mt(a,"convertEscapeCharacter"),mt(t,"convertID"),l.convertID=t,mt(r,"convertInt"),l.convertInt=r,mt(n,"convertBigint"),l.convertBigint=n,mt(i,"convertDate"),l.convertDate=i,mt(s,"convertNumber"),l.convertNumber=s,mt(o,"convertBoolean"),l.convertBoolean=o}),R4e=NFe(e=>{var t,r;function n(){if(void 0===t)throw new Error("No runtime abstraction layer installed");return t}function i(e){if(void 0===e)throw new Error("No runtime abstraction layer provided");t=e}Object.defineProperty(e,"__esModule",{value:!0}),mt(n,"RAL"),r=n,mt(i,"install"),r.install=i,e.default=n}),M4e=NFe(e=>{function t(e){return!0===e||!1===e}function r(e){return"string"==typeof e||e instanceof String}function n(e){return"number"==typeof e||e instanceof Number}function i(e){return e instanceof Error}function a(e){return"function"==typeof e}function s(e){return Array.isArray(e)}function o(e){return s(e)&&e.every(e=>r(e))}Object.defineProperty(e,"__esModule",{value:!0}),e.stringArray=e.array=e.func=e.error=e.number=e.string=e.boolean=void 0,mt(t,"boolean"),e.boolean=t,mt(r,"string"),e.string=r,mt(n,"number"),e.number=n,mt(i,"error"),e.error=i,mt(a,"func"),e.func=a,mt(s,"array"),e.array=s,mt(o,"stringArray"),e.stringArray=o}),D4e=NFe(t=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Emitter=t.Event=void 0;var s=R4e();{var r=t.Event={};let e={dispose(){}};r.None=function(){return e}}var i=class{static{mt(this,"CallbackList")}add(e,t=null,r){this._callbacks||(this._callbacks=[],this._contexts=[]),this._callbacks.push(e),this._contexts.push(t),Array.isArray(r)&&r.push({dispose:mt(()=>this.remove(e,t),"dispose")})}remove(n,i=null){if(this._callbacks){let r=!1;for(let e=0,t=this._callbacks.length;e<t;e++)if(this._callbacks[e]===n){if(this._contexts[e]===i)return this._callbacks.splice(e,1),void this._contexts.splice(e,1);r=!0}if(r)throw new Error("When adding a listener with a context, you should remove it with the same context")}}invoke(...r){if(!this._callbacks)return[];var n=[],i=this._callbacks.slice(0),a=this._contexts.slice(0);for(let e=0,t=i.length;e<t;e++)try{n.push(i[e].apply(a[e],r))}catch(e){(0,s.default)().console.error(e)}return n}isEmpty(){return!this._callbacks||0===this._callbacks.length}dispose(){this._callbacks=void 0,this._contexts=void 0}},r=class a{static{mt(this,"Emitter")}constructor(e){this._options=e}get event(){return this._event||(this._event=(e,t,r)=>{this._callbacks||(this._callbacks=new i),this._options&&this._options.onFirstListenerAdd&&this._callbacks.isEmpty()&&this._options.onFirstListenerAdd(this),this._callbacks.add(e,t);let n={dispose:mt(()=>{this._callbacks&&(this._callbacks.remove(e,t),n.dispose=a._noop,this._options)&&this._options.onLastListenerRemove&&this._callbacks.isEmpty()&&this._options.onLastListenerRemove(this)},"dispose")};return Array.isArray(r)&&r.push(n),n}),this._event}fire(e){this._callbacks&&this._callbacks.invoke.call(this._callbacks,e)}dispose(){this._callbacks&&(this._callbacks.dispose(),this._callbacks=void 0)}};(t.Emitter=r)._noop=function(){}}),O4e=NFe(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.CancellationTokenSource=e.CancellationToken=void 0;var t,r,n=R4e(),i=M4e(),a=D4e();function s(e){return e&&(e===r.None||e===r.Cancelled||i.boolean(e.isCancellationRequested)&&!!e.onCancellationRequested)}(r=t||(e.CancellationToken=t={})).None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:a.Event.None}),r.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:a.Event.None}),mt(s,"is"),r.is=s;var o=Object.freeze(function(e,t){let r=(0,n.default)().timer.setTimeout(e.bind(t),0);return{dispose(){r.dispose()}}}),l=class{static{mt(this,"MutableToken")}constructor(){this._isCancelled=!1}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?o:(this._emitter||(this._emitter=new a.Emitter),this._e Line truncated `;case"r":return"\r";case"t":return"\t";case"v":return"\v";case"0":return"\0";default:return e}}function t(e){return"^"===e.charAt(0)?e.substring(1):e}function r(e){return parseInt(e)}function n(e){return BigInt(e)}function i(e){return new Date(e)}function s(e){return Number(e)}function o(e){return"true"===e.toLowerCase()}var l;n0e(),$ge(),_4e=class{static{mt(this,"DefaultValueConverter")}convert(e,t){var r=t.grammarSource;if(tpe(r=Xde(r)?ige(r):r)){if(r=r.rule.ref)return this.runConverter(r,e,t);throw new Error("This cst node was not parsed by a rule.")}return e}runConverter(e,t,r){switch(e.name.toUpperCase()){case"INT":return A4e.convertInt(t);case"STRING":return A4e.convertString(t);case"ID":return A4e.convertID(t)}switch(null==(e=_ge(e))?void 0:e.toLowerCase()){case"number":return A4e.convertNumber(t);case"boolean":return A4e.convertBoolean(t);case"bigint":return A4e.convertBigint(t);case"date":return A4e.convertDate(t);default:return t}}},l=A4e=A4e||{},mt(e,"convertString"),l.convertString=e,mt(a,"convertEscapeCharacter"),mt(t,"convertID"),l.convertID=t,mt(r,"convertInt"),l.convertInt=r,mt(n,"convertBigint"),l.convertBigint=n,mt(i,"convertDate"),l.convertDate=i,mt(s,"convertNumber"),l.convertNumber=s,mt(o,"convertBoolean"),l.convertBoolean=o}),R4e=IFe(e=>{var t,r;function n(){if(void 0===t)throw new Error("No runtime abstraction layer installed");return t}function i(e){if(void 0===e)throw new Error("No runtime abstraction layer provided");t=e}Object.defineProperty(e,"__esModule",{value:!0}),mt(n,"RAL"),r=n,mt(i,"install"),r.install=i,e.default=n}),M4e=IFe(e=>{function t(e){return!0===e||!1===e}function r(e){return"string"==typeof e||e instanceof String}function n(e){return"number"==typeof e||e instanceof Number}function i(e){return e instanceof Error}function a(e){return"function"==typeof e}function s(e){return Array.isArray(e)}function o(e){return s(e)&&e.every(e=>r(e))}Object.defineProperty(e,"__esModule",{value:!0}),e.stringArray=e.array=e.func=e.error=e.number=e.string=e.boolean=void 0,mt(t,"boolean"),e.boolean=t,mt(r,"string"),e.string=r,mt(n,"number"),e.number=n,mt(i,"error"),e.error=i,mt(a,"func"),e.func=a,mt(s,"array"),e.array=s,mt(o,"stringArray"),e.stringArray=o}),D4e=IFe(t=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Emitter=t.Event=void 0;var s=R4e();{var r=t.Event={};let e={dispose(){}};r.None=function(){return e}}var i=class{static{mt(this,"CallbackList")}add(e,t=null,r){this._callbacks||(this._callbacks=[],this._contexts=[]),this._callbacks.push(e),this._contexts.push(t),Array.isArray(r)&&r.push({dispose:mt(()=>this.remove(e,t),"dispose")})}remove(n,i=null){if(this._callbacks){let r=!1;for(let e=0,t=this._callbacks.length;e<t;e++)if(this._callbacks[e]===n){if(this._contexts[e]===i)return this._callbacks.splice(e,1),void this._contexts.splice(e,1);r=!0}if(r)throw new Error("When adding a listener with a context, you should remove it with the same context")}}invoke(...r){if(!this._callbacks)return[];var n=[],i=this._callbacks.slice(0),a=this._contexts.slice(0);for(let e=0,t=i.length;e<t;e++)try{n.push(i[e].apply(a[e],r))}catch(e){(0,s.default)().console.error(e)}return n}isEmpty(){return!this._callbacks||0===this._callbacks.length}dispose(){this._callbacks=void 0,this._contexts=void 0}},r=class a{static{mt(this,"Emitter")}constructor(e){this._options=e}get event(){return this._event||(this._event=(e,t,r)=>{this._callbacks||(this._callbacks=new i),this._options&&this._options.onFirstListenerAdd&&this._callbacks.isEmpty()&&this._options.onFirstListenerAdd(this),this._callbacks.add(e,t);let n={dispose:mt(()=>{this._callbacks&&(this._callbacks.remove(e,t),n.dispose=a._noop,this._options)&&this._options.onLastListenerRemove&&this._callbacks.isEmpty()&&this._options.onLastListenerRemove(this)},"dispose")};return Array.isArray(r)&&r.push(n),n}),this._event}fire(e){this._callbacks&&this._callbacks.invoke.call(this._callbacks,e)}dispose(){this._callbacks&&(this._callbacks.dispose(),this._callbacks=void 0)}};(t.Emitter=r)._noop=function(){}}),O4e=IFe(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.CancellationTokenSource=e.CancellationToken=void 0;var t,r,n=R4e(),i=M4e(),a=D4e();function s(e){return e&&(e===r.None||e===r.Cancelled||i.boolean(e.isCancellationRequested)&&!!e.onCancellationRequested)}(r=t||(e.CancellationToken=t={})).None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:a.Event.None}),r.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:a.Event.None}),mt(s,"is"),r.is=s;var o=Object.freeze(function(e,t){let r=(0,n.default)().timer.setTimeout(e.bind(t),0);return{dispose(){r.dispose()}}}),l=class{static{mt(this,"MutableToken")}constructor(){this._isCancelled=!1}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?o:(this._emitter||(this._emitter=new a.Emitter),this._e Line truncated
`)?` `)?`
`:` `:`
`}var G3e,U3e,q3e,j3e,Y3e,W3e,H3e,V3e,X3e,K3e,Z3e,Q3e,J3e,ewe,twe,rwe=b(()=>{Ybe(),Q0e(),u5e(),mt(k3e,"parseJSDoc"),mt(T3e,"isJSDoc"),mt(E3e,"getLines"),G3e=/\s*(@([\p{L}][\p{L}\p{N}]*)?)/uy,U3e=/\{(@[\p{L}][\p{L}\p{N}]*)(\s*)([^\r\n}]+)?\}/gu,mt(C3e,"tokenize"),mt(_3e,"buildInlineTokens"),q3e=/\S/,j3e=/\s*$/,mt(S3e,"skipWhitespace"),mt(A3e,"lastCharacter"),mt(L3e,"parseJSDocComment"),mt(N3e,"parseJSDocElement"),mt(I3e,"appendEmptyLine"),mt(R3e,"parseJSDocText"),mt(M3e,"parseJSDocInline"),mt(D3e,"parseJSDocTag"),mt(O3e,"parseJSDocLine"),mt(P3e,"normalizeOptions"),mt(B3e,"normalizeOption"),Y3e=class{static{mt(this,"JSDocCommentImpl")}constructor(e,t){this.elements=e,this.range=t}getTag(t){return this.getAllTags().find(e=>e.name===t)}getTags(t){return this.getAllTags().filter(e=>e.name===t)}getAllTags(){return this.elements.filter(e=>"name"in e)}toString(){let e="";for(var t of this.elements)0===e.length?e=t.toString():(t=t.toString(),e+=z3e(e)+t);return e.trim()}toMarkdown(e){let t="";for(var r of this.elements)0===t.length?t=r.toMarkdown(e):(r=r.toMarkdown(e),t+=z3e(t)+r);return t.trim()}},W3e=class{static{mt(this,"JSDocTagImpl")}constructor(e,t,r,n){this.name=e,this.content=t,this.inline=r,this.range=n}toString(){let e="@"+this.name,t=this.content.toString();return 1===this.content.inlines.length?e=e+" "+t:1<this.content.inlines.length&&(e=e+` `}var G3e,U3e,q3e,j3e,Y3e,W3e,H3e,V3e,X3e,K3e,Z3e,Q3e,J3e,ewe,twe,rwe=b(()=>{Ybe(),Q0e(),u5e(),mt(k3e,"parseJSDoc"),mt(T3e,"isJSDoc"),mt(E3e,"getLines"),G3e=/\s*(@([\p{L}][\p{L}\p{N}]*)?)/uy,U3e=/\{(@[\p{L}][\p{L}\p{N}]*)(\s*)([^\r\n}]+)?\}/gu,mt(C3e,"tokenize"),mt(S3e,"buildInlineTokens"),q3e=/\S/,j3e=/\s*$/,mt(_3e,"skipWhitespace"),mt(A3e,"lastCharacter"),mt(L3e,"parseJSDocComment"),mt(N3e,"parseJSDocElement"),mt(I3e,"appendEmptyLine"),mt(R3e,"parseJSDocText"),mt(M3e,"parseJSDocInline"),mt(D3e,"parseJSDocTag"),mt(O3e,"parseJSDocLine"),mt(P3e,"normalizeOptions"),mt(B3e,"normalizeOption"),Y3e=class{static{mt(this,"JSDocCommentImpl")}constructor(e,t){this.elements=e,this.range=t}getTag(t){return this.getAllTags().find(e=>e.name===t)}getTags(t){return this.getAllTags().filter(e=>e.name===t)}getAllTags(){return this.elements.filter(e=>"name"in e)}toString(){let e="";for(var t of this.elements)0===e.length?e=t.toString():(t=t.toString(),e+=z3e(e)+t);return e.trim()}toMarkdown(e){let t="";for(var r of this.elements)0===t.length?t=r.toMarkdown(e):(r=r.toMarkdown(e),t+=z3e(t)+r);return t.trim()}},W3e=class{static{mt(this,"JSDocTagImpl")}constructor(e,t,r,n){this.name=e,this.content=t,this.inline=r,this.range=n}toString(){let e="@"+this.name,t=this.content.toString();return 1===this.content.inlines.length?e=e+" "+t:1<this.content.inlines.length&&(e=e+`
`+t),this.inline?`{${e}}`:e}toMarkdown(e){var t;return null!=(t=null==(t=e?.renderTag)?void 0:t.call(e,this))?t:this.toMarkdownDefault(e)}toMarkdownDefault(e){var t=this.content.toMarkdown(e);if(this.inline){var r=$3e(this.name,t,e??{});if("string"==typeof r)return r}let n="",i=("italic"===e?.tag||void 0===e?.tag?n="*":"bold"===e?.tag?n="**":"bold-italic"===e?.tag&&(n="***"),n+"@"+this.name+n);return 1===this.content.inlines.length?i=i+" — "+t:1<this.content.inlines.length&&(i=i+` `+t),this.inline?`{${e}}`:e}toMarkdown(e){var t;return null!=(t=null==(t=e?.renderTag)?void 0:t.call(e,this))?t:this.toMarkdownDefault(e)}toMarkdownDefault(e){var t=this.content.toMarkdown(e);if(this.inline){var r=$3e(this.name,t,e??{});if("string"==typeof r)return r}let n="",i=("italic"===e?.tag||void 0===e?.tag?n="*":"bold"===e?.tag?n="**":"bold-italic"===e?.tag&&(n="***"),n+"@"+this.name+n);return 1===this.content.inlines.length?i=i+" — "+t:1<this.content.inlines.length&&(i=i+`
`+t),this.inline?`{${i}}`:i}},mt($3e,"renderInlineTag"),mt(F3e,"renderLinkDefault"),H3e=class{static{mt(this,"JSDocTextImpl")}constructor(e,t){this.inlines=e,this.range=t}toString(){let t="";for(let e=0;e<this.inlines.length;e++){var r=this.inlines[e],n=this.inlines[e+1];t+=r.toString(),n&&n.range.start.line>r.range.start.line&&(t+=` `+t),this.inline?`{${i}}`:i}},mt($3e,"renderInlineTag"),mt(F3e,"renderLinkDefault"),H3e=class{static{mt(this,"JSDocTextImpl")}constructor(e,t){this.inlines=e,this.range=t}toString(){let t="";for(let e=0;e<this.inlines.length;e++){var r=this.inlines[e],n=this.inlines[e+1];t+=r.toString(),n&&n.range.start.line>r.range.start.line&&(t+=`
`)}return t}toMarkdown(t){let r="";for(let e=0;e<this.inlines.length;e++){var n=this.inlines[e],i=this.inlines[e+1];r+=n.toMarkdown(t),i&&i.range.start.line>n.range.start.line&&(r+=` `)}return t}toMarkdown(t){let r="";for(let e=0;e<this.inlines.length;e++){var n=this.inlines[e],i=this.inlines[e+1];r+=n.toMarkdown(t),i&&i.range.start.line>n.range.start.line&&(r+=`
`)}return r}},V3e=class{static{mt(this,"JSDocLineImpl")}constructor(e,t){this.text=e,this.range=t}toString(){return this.text}toMarkdown(){return this.text}},mt(z3e,"fillNewlines")}),nwe=b(()=>{x0e(),rwe(),X3e=class{static{mt(this,"JSDocDocumentationProvider")}constructor(e){this.indexManager=e.shared.workspace.IndexManager,this.commentProvider=e.documentation.CommentProvider}getDocumentation(r){var e=this.commentProvider.getComment(r);if(e&&T3e(e))return k3e(e).toMarkdown({renderLink:mt((e,t)=>this.documentationLinkRenderer(r,e,t),"renderLink"),renderTag:mt(e=>this.documentationTagRenderer(r,e),"renderTag")})}documentationLinkRenderer(e,t,r){var n=null!=(n=this.findNameInPrecomputedScopes(e,t))?n:this.findNameInGlobalScope(e,t);return n&&n.nameSegment?(e=n.nameSegment.range.start.line+1,t=n.nameSegment.range.start.character+1,`[${r}](${n.documentUri.with({fragment:`L${e},`+t}).toString()})`):void 0}documentationTagRenderer(e,t){}findNameInPrecomputedScopes(t,r){var n=l0e(t).precomputedScopes;if(n){let e=t;do{var i=n.get(e).find(e=>e.name===r);if(i)return i}while(e=e.$container)}}findNameInGlobalScope(e,t){return this.indexManager.allElements().find(e=>e.name===t)}}}),iwe=b(()=>{z5e(),cde(),K3e=class{static{mt(this,"DefaultCommentProvider")}constructor(e){this.grammarConfig=()=>e.parser.GrammarConfig}getComment(e){return P5e(e)?e.$comment:null==(e=Kue(e.$cstNode,this.grammarConfig().multilineCommentRules))?void 0:e.text}}}),awe=b(()=>{H4e(),c3e(),Z3e=class{static{mt(this,"DefaultAsyncParser")}constructor(e){this.syncParser=e.parser.LangiumParser}parse(e,t){return Promise.resolve(this.syncParser.parse(e))}},Q3e=class{static{mt(this,"AbstractThreadedAsyncParser")}constructor(e){this.threadCount=8,this.terminationDelay=200,this.workerPool=[],this.queue=[],this.hydrator=e.serializer.Hydrator}initializeWorkers(){for(;this.workerPool.length<this.threadCount;){let t=this.createWorker();t.onReady(()=>{var e;0<this.queue.length&&(e=this.queue.shift())&&(t.lock(),e.resolve(t))}),this.workerPool.push(t)}}async parse(e,t){let r=await this.acquireParserWorker(t),n=new W4e,i,a=t.onCancellationRequested(()=>{i=setTimeout(()=>{this.terminateWorker(r)},this.terminationDelay)});return r.parse(e).then(e=>{e=this.hydrator.hydrate(e),n.resolve(e)}).catch(e=>{n.reject(e)}).finally(()=>{a.dispose(),clearTimeout(i)}),n.promise}terminateWorker(e){e.terminate(),0<=(e=this.workerPool.indexOf(e))&&this.workerPool.splice(e,1)}async acquireParserWorker(e){this.initializeWorkers();for(var t of this.workerPool)if(t.ready)return t.lock(),t;let r=new W4e;return e.onCancellationRequested(()=>{var e=this.queue.indexOf(r);0<=e&&this.queue.splice(e,1),r.reject(Y4e)}),this.queue.push(r),r.promise}},J3e=class{static{mt(this,"ParserWorker")}get ready(){return this._ready}get onReady(){return this.onReadyEmitter.event}constructor(e,t,r,n){this.onReadyEmitter=new l3e.Emitter,this.deferred=new W4e,this._ready=!0,this._parsing=!1,this.sendMessage=e,this._terminate=n,t(e=>{this.deferred.resolve(e),this.unlock()}),r(e=>{this.deferred.reject(e),this.unlock()})}terminate(){this.deferred.reject(Y4e),this._terminate()}lock(){this._ready=!1}unlock(){this._parsing=!1,this._ready=!0,this.onReadyEmitter.fire()}parse(e){if(this._parsing)throw new Error("Parser worker is busy");return this._parsing=!0,this.deferred=new W4e,this.sendMessage(e),this.deferred.promise}}}),swe=b(()=>{B4e(),H4e(),ewe=class{static{mt(this,"DefaultWorkspaceLock")}constructor(){this.previousTokenSource=new P4e.CancellationTokenSource,this.writeQueue=[],this.readQueue=[],this.done=!0}write(e){this.cancelWrite();var t=F4e();return this.previousTokenSource=t,this.enqueue(this.writeQueue,e,t.token)}read(e){return this.enqueue(this.readQueue,e)}enqueue(e,t,r=P4e.CancellationToken.None){var n=new W4e;return e.push({action:t,deferred:n,cancellationToken:r}),this.performNextOperation(),n.promise}async performNextOperation(){if(this.done){var e=[];if(0<this.writeQueue.length)e.push(this.writeQueue.shift());else{if(!(0<this.readQueue.length))return;e.push(...this.readQueue.splice(0,this.readQueue.length))}this.done=!1,await Promise.all(e.map(async({action:e,deferred:t,cancellationToken:r})=>{try{var n=await Promise.resolve().then(()=>e(r));t.resolve(n)}catch(e){G4e(e)?t.resolve(void 0):t.reject(e)}})),this.done=!0,this.performNextOperation()}}cancelWrite(){this.previousTokenSource.cancel()}}}),owe=b(()=>{Wbe(),n0e(),Iue(),x0e(),I5e(),cde(),twe=class{static{mt(this,"DefaultHydrator")}constructor(e){this.grammarElementIdMap=new v5e,this.tokenTypeIdMap=new v5e,this.grammar=e.Grammar,this.lexer=e.parser.Lexer,this.linker=e.references.Linker}dehydrate(e){return{lexerErrors:e.lexerErrors,lexerReport:e.lexerReport?this.dehydrateLexerReport(e.lexerReport):void 0,parserErrors:e.parserErrors.map(e=>Object.assign(Object.assign({},e),{message:e.message})),value:this.dehydrateAstNode(e.value,this.createDehyrationContext(e.value))}}dehydrateLexerReport(e){return e}createDehyrationContext(e){var t,r=new Map,n=ne Line truncated `)}return r}},V3e=class{static{mt(this,"JSDocLineImpl")}constructor(e,t){this.text=e,this.range=t}toString(){return this.text}toMarkdown(){return this.text}},mt(z3e,"fillNewlines")}),nwe=b(()=>{x0e(),rwe(),X3e=class{static{mt(this,"JSDocDocumentationProvider")}constructor(e){this.indexManager=e.shared.workspace.IndexManager,this.commentProvider=e.documentation.CommentProvider}getDocumentation(r){var e=this.commentProvider.getComment(r);if(e&&T3e(e))return k3e(e).toMarkdown({renderLink:mt((e,t)=>this.documentationLinkRenderer(r,e,t),"renderLink"),renderTag:mt(e=>this.documentationTagRenderer(r,e),"renderTag")})}documentationLinkRenderer(e,t,r){var n=null!=(n=this.findNameInPrecomputedScopes(e,t))?n:this.findNameInGlobalScope(e,t);return n&&n.nameSegment?(e=n.nameSegment.range.start.line+1,t=n.nameSegment.range.start.character+1,`[${r}](${n.documentUri.with({fragment:`L${e},`+t}).toString()})`):void 0}documentationTagRenderer(e,t){}findNameInPrecomputedScopes(t,r){var n=l0e(t).precomputedScopes;if(n){let e=t;do{var i=n.get(e).find(e=>e.name===r);if(i)return i}while(e=e.$container)}}findNameInGlobalScope(e,t){return this.indexManager.allElements().find(e=>e.name===t)}}}),iwe=b(()=>{z5e(),cde(),K3e=class{static{mt(this,"DefaultCommentProvider")}constructor(e){this.grammarConfig=()=>e.parser.GrammarConfig}getComment(e){return P5e(e)?e.$comment:null==(e=Kue(e.$cstNode,this.grammarConfig().multilineCommentRules))?void 0:e.text}}}),awe=b(()=>{H4e(),c3e(),Z3e=class{static{mt(this,"DefaultAsyncParser")}constructor(e){this.syncParser=e.parser.LangiumParser}parse(e,t){return Promise.resolve(this.syncParser.parse(e))}},Q3e=class{static{mt(this,"AbstractThreadedAsyncParser")}constructor(e){this.threadCount=8,this.terminationDelay=200,this.workerPool=[],this.queue=[],this.hydrator=e.serializer.Hydrator}initializeWorkers(){for(;this.workerPool.length<this.threadCount;){let t=this.createWorker();t.onReady(()=>{var e;0<this.queue.length&&(e=this.queue.shift())&&(t.lock(),e.resolve(t))}),this.workerPool.push(t)}}async parse(e,t){let r=await this.acquireParserWorker(t),n=new W4e,i,a=t.onCancellationRequested(()=>{i=setTimeout(()=>{this.terminateWorker(r)},this.terminationDelay)});return r.parse(e).then(e=>{e=this.hydrator.hydrate(e),n.resolve(e)}).catch(e=>{n.reject(e)}).finally(()=>{a.dispose(),clearTimeout(i)}),n.promise}terminateWorker(e){e.terminate(),0<=(e=this.workerPool.indexOf(e))&&this.workerPool.splice(e,1)}async acquireParserWorker(e){this.initializeWorkers();for(var t of this.workerPool)if(t.ready)return t.lock(),t;let r=new W4e;return e.onCancellationRequested(()=>{var e=this.queue.indexOf(r);0<=e&&this.queue.splice(e,1),r.reject(Y4e)}),this.queue.push(r),r.promise}},J3e=class{static{mt(this,"ParserWorker")}get ready(){return this._ready}get onReady(){return this.onReadyEmitter.event}constructor(e,t,r,n){this.onReadyEmitter=new l3e.Emitter,this.deferred=new W4e,this._ready=!0,this._parsing=!1,this.sendMessage=e,this._terminate=n,t(e=>{this.deferred.resolve(e),this.unlock()}),r(e=>{this.deferred.reject(e),this.unlock()})}terminate(){this.deferred.reject(Y4e),this._terminate()}lock(){this._ready=!1}unlock(){this._parsing=!1,this._ready=!0,this.onReadyEmitter.fire()}parse(e){if(this._parsing)throw new Error("Parser worker is busy");return this._parsing=!0,this.deferred=new W4e,this.sendMessage(e),this.deferred.promise}}}),swe=b(()=>{B4e(),H4e(),ewe=class{static{mt(this,"DefaultWorkspaceLock")}constructor(){this.previousTokenSource=new P4e.CancellationTokenSource,this.writeQueue=[],this.readQueue=[],this.done=!0}write(e){this.cancelWrite();var t=F4e();return this.previousTokenSource=t,this.enqueue(this.writeQueue,e,t.token)}read(e){return this.enqueue(this.readQueue,e)}enqueue(e,t,r=P4e.CancellationToken.None){var n=new W4e;return e.push({action:t,deferred:n,cancellationToken:r}),this.performNextOperation(),n.promise}async performNextOperation(){if(this.done){var e=[];if(0<this.writeQueue.length)e.push(this.writeQueue.shift());else{if(!(0<this.readQueue.length))return;e.push(...this.readQueue.splice(0,this.readQueue.length))}this.done=!1,await Promise.all(e.map(async({action:e,deferred:t,cancellationToken:r})=>{try{var n=await Promise.resolve().then(()=>e(r));t.resolve(n)}catch(e){G4e(e)?t.resolve(void 0):t.reject(e)}})),this.done=!0,this.performNextOperation()}}cancelWrite(){this.previousTokenSource.cancel()}}}),owe=b(()=>{Wbe(),n0e(),Iue(),x0e(),I5e(),cde(),twe=class{static{mt(this,"DefaultHydrator")}constructor(e){this.grammarElementIdMap=new v5e,this.tokenTypeIdMap=new v5e,this.grammar=e.Grammar,this.lexer=e.parser.Lexer,this.linker=e.references.Linker}dehydrate(e){return{lexerErrors:e.lexerErrors,lexerReport:e.lexerReport?this.dehydrateLexerReport(e.lexerReport):void 0,parserErrors:e.parserErrors.map(e=>Object.assign(Object.assign({},e),{message:e.message})),value:this.dehydrateAstNode(e.value,this.createDehyrationContext(e.value))}}dehydrateLexerReport(e){return e}createDehyrationContext(e){var t,r=new Map,n=ne Line truncated
`.includes(e[t-1])}matchWhitespace(e,t,r,n){return this.whitespaceRegExp.lastIndex=t,{currIndentLevel:null!=(e=(t=this.whitespaceRegExp.exec(e))?.[0].length)?e:0,prevIndentLevel:this.indentationStack.at(-1),match:t}}createIndentationTokenInstance(e,t,r,n){return t=this.getLineNumber(t,n),sme(e,r,n,n+r.length,t,t,1,r.length)}getLineNumber(e,t){return e.substring(0,t).split(/\r\n|\r|\n/).length}indentMatcher(e,t,r,n){return!this.isStartOfLine(e,t)||({currIndentLevel:e,prevIndentLevel:t,match:r}=this.matchWhitespace(e,t,r,n),e<=t)?null:(this.indentationStack.push(e),r)}dedentMatcher(t,r,n,e){if(this.isStartOfLine(t,r)){var{currIndentLevel:e,prevIndentLevel:i,match:a}=this.matchWhitespace(t,r,n,e);if(!(i<=e))if(-1===(i=this.indentationStack.lastIndexOf(e)))this.diagnostics.push({severity:"error",message:`Invalid dedent level ${e} at offset: ${r}. Current indentation stack: `+this.indentationStack,offset:r,length:null!=(a=null==(e=a?.[0])?void 0:e.length)?a:0,line:this.getLineNumber(t,r),column:1});else{var s=this.indentationStack.length-i-1,o=null!=(a=null==(e=t.substring(0,r).match(/[\r\n]+$/))?void 0:e[0].length)?a:1;for(let e=0;e<s;e++){var l=this.createIndentationTokenInstance(this.dedentTokenType,t,"",r-(o-1));n.push(l),this.indentationStack.pop()}}}return null}buildTerminalToken(e){var e=super.buildTerminalToken(e),{indentTokenName:t,dedentTokenName:r,whitespaceTokenName:n}=this.options;return e.name===t?this.indentTokenType:e.name===r?this.dedentTokenType:e.name===n?ime({name:n,pattern:this.whitespaceRegExp,group:Qfe.SKIPPED}):e}flushRemainingDedents(e){for(var t=[];1<this.indentationStack.length;)t.push(this.createIndentationTokenInstance(this.dedentTokenType,e,"",e.length)),this.indentationStack.pop();return this.indentationStack=[0],t}},kwe=class extends b3e{static{mt(this,"IndentationAwareLexer")}constructor(e){if(super(e),!(e.parser.TokenBuilder instanceof wwe))throw new Error("IndentationAwareLexer requires an accompanying IndentationAwareTokenBuilder");this.indentationTokenBuilder=e.parser.TokenBuilder}tokenize(e,t=x3e){var r=super.tokenize(e),e=r.report,{indentTokenType:t,dedentTokenType:e}=("full"===t?.mode&&r.tokens.push(...e.remainingDedents),e.remainingDedents=[],this.indentationTokenBuilder),n=t.tokenTypeIdx,i=e.tokenTypeIdx,a=[],s=r.tokens.length-1;for(let e=0;e<s;e++){var o=r.tokens[e],l=r.tokens[e+1];o.tokenTypeIdx===n&&l.tokenTypeIdx===i?e++:a.push(o)}return 0<=s&&a.push(r.tokens[s]),r.tokens=a,r}}}),Iwe=b(()=>{}),Rwe=b(()=>{awe(),T4e(),Wbe(),Nwe(),L4e(),n4e(),w3e(),w4e(),Iwe(),N4e(),I4e()}),Mwe=b(()=>{p5e(),L5e(),N5e(),M5e(),R5e(),O5e()}),Dwe=b(()=>{owe(),z5e()}),Owe=b(()=>{Twe=class{static{mt(this,"EmptyFileSystemProvider")}readFile(){throw new Error("No file system is available.")}async readDirectory(){return[]}},Ewe={fileSystemProvider:mt(()=>new Twe,"fileSystemProvider")}});function Pwe(){var e=uwe(cwe(Ewe),Fwe),t=uwe(lwe({shared:e}),$we);return e.ServiceRegistry.register(t),t}function Bwe(e){var t=Pwe(),e=t.serializer.JsonSerializer.deserialize(e);return t.shared.workspace.LangiumDocumentFactory.fromModel(e,t5e.parse(`memory://${null!=(t=e.name)?t:"grammar"}.langium`)),e}var $we,Fwe,zwe=b(()=>{hwe(),Cwe(),n0e(),Owe(),u5e(),$we={Grammar:mt(()=>{},"Grammar"),LanguageMetaData:mt(()=>({caseInsensitive:!1,fileExtensions:[".langium"],languageId:"langium"}),"LanguageMetaData")},Fwe={AstReflection:mt(()=>new t0e,"AstReflection")},mt(Pwe,"createMinimalGrammarServices"),mt(Bwe,"loadGrammarFromJson")}),Gwe={},Uwe=(OFe(Gwe,{AstUtils:()=>i0e,BiMap:()=>v5e,Cancellation:()=>P4e,ContextCache:()=>C5e,CstUtils:()=>Gue,DONE_RESULT:()=>Bue,Deferred:()=>W4e,Disposable:()=>t3e,DisposableCache:()=>T5e,DocumentCache:()=>_5e,EMPTY_STREAM:()=>Pue,ErrorWithLocation:()=>ude,GrammarUtils:()=>J0e,MultiMap:()=>y5e,OperationCancelled:()=>Y4e,Reduction:()=>Fue,RegExpUtils:()=>F0e,SimpleCache:()=>E5e,StreamImpl:()=>Oue,TreeStreamImpl:()=>$ue,URI:()=>t5e,UriUtils:()=>n5e,WorkspaceCache:()=>S5e,assertUnreachable:()=>hde,delayNextTick:()=>$4e,interruptAndCheck:()=>U4e,isOperationCancelled:()=>G4e,loadGrammarFromJson:()=>Bwe,setInterruptionPeriod:()=>z4e,startCancelableOperation:()=>F4e,stream:()=>Due}),b(()=>{D5e(),c3e(),U(Gwe,l3e),I5e(),u3e(),dde(),zwe(),H4e(),zue(),u5e(),x0e(),B4e(),cde(),$ge(),Q0e()})),qwe=b(()=>{a3e(),Y5e()}),jwe=b(()=>{s3e(),o3e(),h3e(),d3e(),d5e(),Owe(),p3e(),swe(),g3e()}),Ywe={},Wwe=(OFe(Ywe,{AbstractAstReflection:()=>Nue,AbstractCstNode:()=>$be,AbstractLangiumParser:()=>Kbe,AbstractParserErrorMessageProvider:()=>Qbe,AbstractThreadedAsyncParser:()=>Q3e,AstUtils:()=>i0e,BiMap:()=>v5e,Cancellation:()=>P4e,CompositeCstNodeImpl:()=>zbe,ContextCache:()=>C5e,CstNodeBuilder:()=>Bbe,CstUtils:()=>Gue,DEFAULT_TOKENIZE_OPTIONS:()=>x3e,DONE_RESULT:()=>Bue,DatatypeSymbol:()=>Vbe,DefaultAstNodeDescriptionProvider:()=>Z5e,DefaultAstNodeLocator:()=>J5e,DefaultAsyncParser:()=>Z3e,DefaultCommentProvider:()=>K3e,DefaultConfigurationProvider:()=>e3e,DefaultDocumentBuilder:()=>r3e,DefaultDocumentValidator:()=>X5e, Line truncated `.includes(e[t-1])}matchWhitespace(e,t,r,n){return this.whitespaceRegExp.lastIndex=t,{currIndentLevel:null!=(e=(t=this.whitespaceRegExp.exec(e))?.[0].length)?e:0,prevIndentLevel:this.indentationStack.at(-1),match:t}}createIndentationTokenInstance(e,t,r,n){return t=this.getLineNumber(t,n),sme(e,r,n,n+r.length,t,t,1,r.length)}getLineNumber(e,t){return e.substring(0,t).split(/\r\n|\r|\n/).length}indentMatcher(e,t,r,n){return!this.isStartOfLine(e,t)||({currIndentLevel:e,prevIndentLevel:t,match:r}=this.matchWhitespace(e,t,r,n),e<=t)?null:(this.indentationStack.push(e),r)}dedentMatcher(t,r,n,e){if(this.isStartOfLine(t,r)){var{currIndentLevel:e,prevIndentLevel:i,match:a}=this.matchWhitespace(t,r,n,e);if(!(i<=e))if(-1===(i=this.indentationStack.lastIndexOf(e)))this.diagnostics.push({severity:"error",message:`Invalid dedent level ${e} at offset: ${r}. Current indentation stack: `+this.indentationStack,offset:r,length:null!=(a=null==(e=a?.[0])?void 0:e.length)?a:0,line:this.getLineNumber(t,r),column:1});else{var s=this.indentationStack.length-i-1,o=null!=(a=null==(e=t.substring(0,r).match(/[\r\n]+$/))?void 0:e[0].length)?a:1;for(let e=0;e<s;e++){var l=this.createIndentationTokenInstance(this.dedentTokenType,t,"",r-(o-1));n.push(l),this.indentationStack.pop()}}}return null}buildTerminalToken(e){var e=super.buildTerminalToken(e),{indentTokenName:t,dedentTokenName:r,whitespaceTokenName:n}=this.options;return e.name===t?this.indentTokenType:e.name===r?this.dedentTokenType:e.name===n?ime({name:n,pattern:this.whitespaceRegExp,group:Qfe.SKIPPED}):e}flushRemainingDedents(e){for(var t=[];1<this.indentationStack.length;)t.push(this.createIndentationTokenInstance(this.dedentTokenType,e,"",e.length)),this.indentationStack.pop();return this.indentationStack=[0],t}},kwe=class extends b3e{static{mt(this,"IndentationAwareLexer")}constructor(e){if(super(e),!(e.parser.TokenBuilder instanceof wwe))throw new Error("IndentationAwareLexer requires an accompanying IndentationAwareTokenBuilder");this.indentationTokenBuilder=e.parser.TokenBuilder}tokenize(e,t=x3e){var r=super.tokenize(e),e=r.report,{indentTokenType:t,dedentTokenType:e}=("full"===t?.mode&&r.tokens.push(...e.remainingDedents),e.remainingDedents=[],this.indentationTokenBuilder),n=t.tokenTypeIdx,i=e.tokenTypeIdx,a=[],s=r.tokens.length-1;for(let e=0;e<s;e++){var o=r.tokens[e],l=r.tokens[e+1];o.tokenTypeIdx===n&&l.tokenTypeIdx===i?e++:a.push(o)}return 0<=s&&a.push(r.tokens[s]),r.tokens=a,r}}}),Iwe=b(()=>{}),Rwe=b(()=>{awe(),T4e(),Wbe(),Nwe(),L4e(),n4e(),w3e(),w4e(),Iwe(),N4e(),I4e()}),Mwe=b(()=>{p5e(),L5e(),N5e(),M5e(),R5e(),O5e()}),Dwe=b(()=>{owe(),z5e()}),Owe=b(()=>{Twe=class{static{mt(this,"EmptyFileSystemProvider")}readFile(){throw new Error("No file system is available.")}async readDirectory(){return[]}},Ewe={fileSystemProvider:mt(()=>new Twe,"fileSystemProvider")}});function Pwe(){var e=uwe(cwe(Ewe),Fwe),t=uwe(lwe({shared:e}),$we);return e.ServiceRegistry.register(t),t}function Bwe(e){var t=Pwe(),e=t.serializer.JsonSerializer.deserialize(e);return t.shared.workspace.LangiumDocumentFactory.fromModel(e,t5e.parse(`memory://${null!=(t=e.name)?t:"grammar"}.langium`)),e}var $we,Fwe,zwe=b(()=>{hwe(),Cwe(),n0e(),Owe(),u5e(),$we={Grammar:mt(()=>{},"Grammar"),LanguageMetaData:mt(()=>({caseInsensitive:!1,fileExtensions:[".langium"],languageId:"langium"}),"LanguageMetaData")},Fwe={AstReflection:mt(()=>new t0e,"AstReflection")},mt(Pwe,"createMinimalGrammarServices"),mt(Bwe,"loadGrammarFromJson")}),Gwe={},Uwe=(PFe(Gwe,{AstUtils:()=>i0e,BiMap:()=>v5e,Cancellation:()=>P4e,ContextCache:()=>C5e,CstUtils:()=>Gue,DONE_RESULT:()=>Bue,Deferred:()=>W4e,Disposable:()=>t3e,DisposableCache:()=>T5e,DocumentCache:()=>S5e,EMPTY_STREAM:()=>Pue,ErrorWithLocation:()=>ude,GrammarUtils:()=>J0e,MultiMap:()=>y5e,OperationCancelled:()=>Y4e,Reduction:()=>Fue,RegExpUtils:()=>F0e,SimpleCache:()=>E5e,StreamImpl:()=>Oue,TreeStreamImpl:()=>$ue,URI:()=>t5e,UriUtils:()=>n5e,WorkspaceCache:()=>_5e,assertUnreachable:()=>hde,delayNextTick:()=>$4e,interruptAndCheck:()=>U4e,isOperationCancelled:()=>G4e,loadGrammarFromJson:()=>Bwe,setInterruptionPeriod:()=>z4e,startCancelableOperation:()=>F4e,stream:()=>Due}),b(()=>{D5e(),c3e(),U(Gwe,l3e),I5e(),u3e(),dde(),zwe(),H4e(),zue(),u5e(),x0e(),B4e(),cde(),$ge(),Q0e()})),qwe=b(()=>{a3e(),Y5e()}),jwe=b(()=>{s3e(),o3e(),h3e(),d3e(),d5e(),Owe(),p3e(),swe(),g3e()}),Ywe={},Wwe=(PFe(Ywe,{AbstractAstReflection:()=>Nue,AbstractCstNode:()=>$be,AbstractLangiumParser:()=>Kbe,AbstractParserErrorMessageProvider:()=>Qbe,AbstractThreadedAsyncParser:()=>Q3e,AstUtils:()=>i0e,BiMap:()=>v5e,Cancellation:()=>P4e,CompositeCstNodeImpl:()=>zbe,ContextCache:()=>C5e,CstNodeBuilder:()=>Bbe,CstUtils:()=>Gue,DEFAULT_TOKENIZE_OPTIONS:()=>x3e,DONE_RESULT:()=>Bue,DatatypeSymbol:()=>Vbe,DefaultAstNodeDescriptionProvider:()=>Z5e,DefaultAstNodeLocator:()=>J5e,DefaultAsyncParser:()=>Z3e,DefaultCommentProvider:()=>K3e,DefaultConfigurationProvider:()=>e3e,DefaultDocumentBuilder:()=>r3e,DefaultDocumentValidator:()=>X5e, Line truncated
`):void 0:void 0}},ske=class extends ake{static{mt(this,"CommonValueConverter")}static{s(this,"CommonValueConverter")}runCustomConverter(e,t,r){}},oke=class extends _4e{static{mt(this,"AbstractMermaidTokenBuilder")}static{s(this,"AbstractMermaidTokenBuilder")}constructor(e){super(),this.keywords=new Set(e)}buildKeywordTokens(e,t,r){return(e=super.buildKeywordTokens(e,t,r)).forEach(e=>{this.keywords.has(e.name)&&void 0!==e.PATTERN&&(e.PATTERN=new RegExp(e.PATTERN.toString()+"(?:(?=%%)|(?!\\S))"))}),e}},class extends oke{static{mt(this,"CommonTokenBuilder")}static{s(this,"CommonTokenBuilder")}}});function cke(e=Ewe){var e=uwe(cwe(e),K6e),t=uwe(lwe({shared:e}),tke,uke);return e.ServiceRegistry.register(t),{shared:e,GitGraph:t}}var hke,uke,dke=b(()=>{lke(),Wwe(),hke=class extends oke{static{mt(this,"GitGraphTokenBuilder")}static{s(this,"GitGraphTokenBuilder")}constructor(){super(["gitGraph"])}},uke={parser:{TokenBuilder:s(()=>new hke,"TokenBuilder"),ValueConverter:s(()=>new ske,"ValueConverter")}},mt(cke,"createGitGraphServices"),s(cke,"createGitGraphServices")});function pke(e=Ewe){var e=uwe(cwe(e),K6e),t=uwe(lwe({shared:e}),Z6e,fke);return e.ServiceRegistry.register(t),{shared:e,Info:t}}var gke,fke,mke=b(()=>{lke(),Wwe(),gke=class extends oke{static{mt(this,"InfoTokenBuilder")}static{s(this,"InfoTokenBuilder")}constructor(){super(["info","showInfo"])}},fke={parser:{TokenBuilder:s(()=>new gke,"TokenBuilder"),ValueConverter:s(()=>new ske,"ValueConverter")}},mt(pke,"createInfoServices"),s(pke,"createInfoServices")});function yke(e=Ewe){var e=uwe(cwe(e),K6e),t=uwe(lwe({shared:e}),Q6e,xke);return e.ServiceRegistry.register(t),{shared:e,Packet:t}}var vke,xke,bke=b(()=>{lke(),Wwe(),vke=class extends oke{static{mt(this,"PacketTokenBuilder")}static{s(this,"PacketTokenBuilder")}constructor(){super(["packet"])}},xke={parser:{TokenBuilder:s(()=>new vke,"TokenBuilder"),ValueConverter:s(()=>new ske,"ValueConverter")}},mt(yke,"createPacketServices"),s(yke,"createPacketServices")});function wke(e=Ewe){var e=uwe(cwe(e),K6e),t=uwe(lwe({shared:e}),J6e,Eke);return e.ServiceRegistry.register(t),{shared:e,Pie:t}}var kke,Tke,Eke,Cke=b(()=>{lke(),Wwe(),kke=class extends oke{static{mt(this,"PieTokenBuilder")}static{s(this,"PieTokenBuilder")}constructor(){super(["pie","showData"])}},Tke=class extends ake{static{mt(this,"PieValueConverter")}static{s(this,"PieValueConverter")}runCustomConverter(e,t,r){if("PIE_SECTION_LABEL"===e.name)return t.replace(/"/g,"").trim()}},Eke={parser:{TokenBuilder:s(()=>new kke,"TokenBuilder"),ValueConverter:s(()=>new Tke,"ValueConverter")}},mt(wke,"createPieServices"),s(wke,"createPieServices")});function _ke(e=Ewe){var e=uwe(cwe(e),K6e),t=uwe(lwe({shared:e}),eke,Lke);return e.ServiceRegistry.register(t),{shared:e,Architecture:t}}var Ske,Ake,Lke,Nke=b(()=>{lke(),Wwe(),Ske=class extends oke{static{mt(this,"ArchitectureTokenBuilder")}static{s(this,"ArchitectureTokenBuilder")}constructor(){super(["architecture"])}},Ake=class extends ake{static{mt(this,"ArchitectureValueConverter")}static{s(this,"ArchitectureValueConverter")}runCustomConverter(e,t,r){return"ARCH_ICON"===e.name?t.replace(/[()]/g,"").trim():"ARCH_TEXT_ICON"===e.name?t.replace(/["()]/g,""):"ARCH_TITLE"===e.name?t.replace(/[[\]]/g,"").trim():void 0}},Lke={parser:{TokenBuilder:s(()=>new Ske,"TokenBuilder"),ValueConverter:s(()=>new Ake,"ValueConverter")}},mt(_ke,"createArchitectureServices"),s(_ke,"createArchitectureServices")});function Ike(e=Ewe){var e=uwe(cwe(e),K6e),t=uwe(lwe({shared:e}),rke,Mke);return e.ServiceRegistry.register(t),{shared:e,Radar:t}}var Rke,Mke,Dke=b(()=>{lke(),Wwe(),Rke=class extends oke{static{mt(this,"RadarTokenBuilder")}static{s(this,"RadarTokenBuilder")}constructor(){super(["radar-beta"])}},Mke={parser:{TokenBuilder:s(()=>new Rke,"TokenBuilder"),ValueConverter:s(()=>new ske,"ValueConverter")}},mt(Ike,"createRadarServices"),s(Ike,"createRadarServices")});function Oke(e){var t,r=e.validation.TreemapValidator;(e=e.validation.ValidationRegistry)&&(t={Treemap:r.checkSingleRoot.bind(r)},e.register(t,r))}function Pke(e=Ewe){var e=uwe(cwe(e),K6e),t=uwe(lwe({shared:e}),nke,Gke);return e.ServiceRegistry.register(t),Oke(t),{shared:e,Treemap:t}}var Bke,$ke,Fke,zke,Gke,Uke=b(()=>{lke(),Wwe(),Bke=class extends oke{static{mt(this,"TreemapTokenBuilder")}static{s(this,"TreemapTokenBuilder")}constructor(){super(["treemap"])}},$ke=/classDef\s+([A-Z_a-z]\w+)(?:\s+([^\n\r;]*))?;?/,Fke=class extends ake{static{mt(this,"TreemapValueConverter")}static{s(this,"TreemapValueConverter")}runCustomConverter(e,t,r){return"NUMBER2"===e.name?parseFloat(t.replace(/,/g,"")):"SEPARATOR"===e.name||"STRING2"===e.name?t.substring(1,t.length-1):"INDENTATION"===e.name?t.length:"ClassDef"===e.name?"string"!=typeof t?t:(e=$ke.exec(t))?{$type:"ClassDefStatement",className:e[1],styleText:e[2]||void 0}:void 0:void 0}},mt(Oke,"registerValidationChecks"),s(Oke,"registerValidationChecks"),zke=class{static{mt(this,"TreemapValidator")}static{s(this,"TreemapValidator")}che Line truncated `):void 0:void 0}},ske=class extends ake{static{mt(this,"CommonValueConverter")}static{s(this,"CommonValueConverter")}runCustomConverter(e,t,r){}},oke=class extends S4e{static{mt(this,"AbstractMermaidTokenBuilder")}static{s(this,"AbstractMermaidTokenBuilder")}constructor(e){super(),this.keywords=new Set(e)}buildKeywordTokens(e,t,r){return(e=super.buildKeywordTokens(e,t,r)).forEach(e=>{this.keywords.has(e.name)&&void 0!==e.PATTERN&&(e.PATTERN=new RegExp(e.PATTERN.toString()+"(?:(?=%%)|(?!\\S))"))}),e}},class extends oke{static{mt(this,"CommonTokenBuilder")}static{s(this,"CommonTokenBuilder")}}});function cke(e=Ewe){var e=uwe(cwe(e),K6e),t=uwe(lwe({shared:e}),tke,uke);return e.ServiceRegistry.register(t),{shared:e,GitGraph:t}}var hke,uke,dke=b(()=>{lke(),Wwe(),hke=class extends oke{static{mt(this,"GitGraphTokenBuilder")}static{s(this,"GitGraphTokenBuilder")}constructor(){super(["gitGraph"])}},uke={parser:{TokenBuilder:s(()=>new hke,"TokenBuilder"),ValueConverter:s(()=>new ske,"ValueConverter")}},mt(cke,"createGitGraphServices"),s(cke,"createGitGraphServices")});function pke(e=Ewe){var e=uwe(cwe(e),K6e),t=uwe(lwe({shared:e}),Z6e,fke);return e.ServiceRegistry.register(t),{shared:e,Info:t}}var gke,fke,mke=b(()=>{lke(),Wwe(),gke=class extends oke{static{mt(this,"InfoTokenBuilder")}static{s(this,"InfoTokenBuilder")}constructor(){super(["info","showInfo"])}},fke={parser:{TokenBuilder:s(()=>new gke,"TokenBuilder"),ValueConverter:s(()=>new ske,"ValueConverter")}},mt(pke,"createInfoServices"),s(pke,"createInfoServices")});function yke(e=Ewe){var e=uwe(cwe(e),K6e),t=uwe(lwe({shared:e}),Q6e,xke);return e.ServiceRegistry.register(t),{shared:e,Packet:t}}var vke,xke,bke=b(()=>{lke(),Wwe(),vke=class extends oke{static{mt(this,"PacketTokenBuilder")}static{s(this,"PacketTokenBuilder")}constructor(){super(["packet"])}},xke={parser:{TokenBuilder:s(()=>new vke,"TokenBuilder"),ValueConverter:s(()=>new ske,"ValueConverter")}},mt(yke,"createPacketServices"),s(yke,"createPacketServices")});function wke(e=Ewe){var e=uwe(cwe(e),K6e),t=uwe(lwe({shared:e}),J6e,Eke);return e.ServiceRegistry.register(t),{shared:e,Pie:t}}var kke,Tke,Eke,Cke=b(()=>{lke(),Wwe(),kke=class extends oke{static{mt(this,"PieTokenBuilder")}static{s(this,"PieTokenBuilder")}constructor(){super(["pie","showData"])}},Tke=class extends ake{static{mt(this,"PieValueConverter")}static{s(this,"PieValueConverter")}runCustomConverter(e,t,r){if("PIE_SECTION_LABEL"===e.name)return t.replace(/"/g,"").trim()}},Eke={parser:{TokenBuilder:s(()=>new kke,"TokenBuilder"),ValueConverter:s(()=>new Tke,"ValueConverter")}},mt(wke,"createPieServices"),s(wke,"createPieServices")});function Ske(e=Ewe){var e=uwe(cwe(e),K6e),t=uwe(lwe({shared:e}),eke,Lke);return e.ServiceRegistry.register(t),{shared:e,Architecture:t}}var _ke,Ake,Lke,Nke=b(()=>{lke(),Wwe(),_ke=class extends oke{static{mt(this,"ArchitectureTokenBuilder")}static{s(this,"ArchitectureTokenBuilder")}constructor(){super(["architecture"])}},Ake=class extends ake{static{mt(this,"ArchitectureValueConverter")}static{s(this,"ArchitectureValueConverter")}runCustomConverter(e,t,r){return"ARCH_ICON"===e.name?t.replace(/[()]/g,"").trim():"ARCH_TEXT_ICON"===e.name?t.replace(/["()]/g,""):"ARCH_TITLE"===e.name?t.replace(/[[\]]/g,"").trim():void 0}},Lke={parser:{TokenBuilder:s(()=>new _ke,"TokenBuilder"),ValueConverter:s(()=>new Ake,"ValueConverter")}},mt(Ske,"createArchitectureServices"),s(Ske,"createArchitectureServices")});function Ike(e=Ewe){var e=uwe(cwe(e),K6e),t=uwe(lwe({shared:e}),rke,Mke);return e.ServiceRegistry.register(t),{shared:e,Radar:t}}var Rke,Mke,Dke=b(()=>{lke(),Wwe(),Rke=class extends oke{static{mt(this,"RadarTokenBuilder")}static{s(this,"RadarTokenBuilder")}constructor(){super(["radar-beta"])}},Mke={parser:{TokenBuilder:s(()=>new Rke,"TokenBuilder"),ValueConverter:s(()=>new ske,"ValueConverter")}},mt(Ike,"createRadarServices"),s(Ike,"createRadarServices")});function Oke(e){var t,r=e.validation.TreemapValidator;(e=e.validation.ValidationRegistry)&&(t={Treemap:r.checkSingleRoot.bind(r)},e.register(t,r))}function Pke(e=Ewe){var e=uwe(cwe(e),K6e),t=uwe(lwe({shared:e}),nke,Gke);return e.ServiceRegistry.register(t),Oke(t),{shared:e,Treemap:t}}var Bke,$ke,Fke,zke,Gke,Uke=b(()=>{lke(),Wwe(),Bke=class extends oke{static{mt(this,"TreemapTokenBuilder")}static{s(this,"TreemapTokenBuilder")}constructor(){super(["treemap"])}},$ke=/classDef\s+([A-Z_a-z]\w+)(?:\s+([^\n\r;]*))?;?/,Fke=class extends ake{static{mt(this,"TreemapValueConverter")}static{s(this,"TreemapValueConverter")}runCustomConverter(e,t,r){return"NUMBER2"===e.name?parseFloat(t.replace(/,/g,"")):"SEPARATOR"===e.name||"STRING2"===e.name?t.substring(1,t.length-1):"INDENTATION"===e.name?t.length:"ClassDef"===e.name?"string"!=typeof t?t:(e=$ke.exec(t))?{$type:"ClassDefStatement",className:e[1],styleText:e[2]||void 0}:void 0:void 0}},mt(Oke,"registerValidationChecks"),s(Oke,"registerValidationChecks"),zke=class{static{mt(this,"TreemapValidator")}static{s(this,"TreemapValidator")}che Line truncated
`)} `+e.parserErrors.map(e=>e.message).join(` `)} `+e.parserErrors.map(e=>e.message).join(`
`)),this.result=e}static{s(this,"MermaidParseError")}}});function lTe(e,t){e.accDescr&&t.setAccDescription?.(e.accDescr),e.accTitle&&t.setAccTitle?.(e.accTitle),e.title&&t.setDiagramTitle?.(e.title)}var cTe,hTe,uTe=b(()=>{mt(lTe,"populateCommonDb")}),dTe=b(()=>{cTe={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4}}),pTe=b(()=>{hTe=class{constructor(e){this.init=e,this.records=this.init()}static{mt(this,"ImperativeState")}reset(){this.records=this.init()}}});function gTe(){return qC({length:7})}function fTe(e,n){let i=Object.create(null);return e.reduce((e,t)=>{var r=n(t);return i[r]||(i[r]=!0,e.push(t)),e},[])}function mTe(e,t,r){-1===(t=e.indexOf(t))?e.push(r):e.splice(t,1,r)}function yTe(e){let t=e.reduce((e,t)=>e.seq>t.seq?e:t,e[0]),r="";e.forEach(function(e){e===t?r+="\t*":r+="\t|"});var n,i=[r,t.id,t.seq];for(n in y.records.branches)y.records.branches.get(n)===t.id&&i.push(n);if(D.debug(i.join(" ")),t.parents&&2==t.parents.length&&t.parents[0]&&t.parents[1]){var a=y.records.commits.get(t.parents[0]);mTe(e,t,a),t.parents[1]&&e.push(y.records.commits.get(t.parents[1]))}else{if(0==t.parents.length)return;t.parents[0]&&(a=y.records.commits.get(t.parents[0]),mTe(e,t,a))}yTe(e=fTe(e,e=>e.id))}var vTe,xTe,y,bTe,wTe,kTe,TTe,ETe,CTe,_Te,STe,ATe,LTe,NTe,ITe,RTe,MTe,DTe,OTe,PTe,BTe,$Te,FTe,zTe,GTe,UTe,qTe,jTe,YTe,WTe,HTe,VTe,XTe,KTe,ZTe,QTe,JTe,e7e,t7e,r7e,n7e,i7e,a7e,s7e,o7e,l7e,c7e,h7e,u7e,d7e,p7e,g7e,f7e,m7e,y7e,v7e,x7e,b7e,w7e,k7e,T7e,E7e,C7e=b(()=>{e(),i_(),rn(),Oc(),ku(),dTe(),pTe(),en(),vTe=Yt.gitGraph,xTe=mt(()=>_C({...vTe,...ar().gitGraph}),"getConfig"),y=new hTe(()=>{var e=(t=xTe()).mainBranchName,t=t.mainBranchOrder;return{mainBranchName:e,commits:new Map,head:null,branchConfig:new Map([[e,{name:e,order:t}]]),branches:new Map([[e,null]]),currBranch:e,direction:"LR",seq:0,options:{}}}),mt(gTe,"getID"),mt(fTe,"uniqBy"),bTe=mt(function(e){y.records.direction=e},"setDirection"),wTe=mt(function(e){D.debug("options str",e),e=e?.trim()||"{}";try{y.records.options=JSON.parse(e)}catch(e){D.error("error while parsing gitGraph options",e.message)}},"setOptions"),kTe=mt(function(){return y.records.options},"getOptions"),TTe=mt(function(e){let t=e.msg,r=e.id,n=e.type,i=e.tags,a=(D.info("commit",t,r,n,i),D.debug("Entering commit:",t,r,n,i),xTe());r=L.sanitizeText(r,a),t=L.sanitizeText(t,a),i=i?.map(e=>L.sanitizeText(e,a)),e={id:r||y.records.seq+"-"+gTe(),message:t,seq:y.records.seq++,type:n??cTe.NORMAL,tags:i??[],parents:null==y.records.head?[]:[y.records.head.id],branch:y.records.currBranch},y.records.head=e,D.info("main branch",a.mainBranchName),y.records.commits.has(e.id)&&D.warn(`Commit ID ${e.id} already exists`),y.records.commits.set(e.id,e),y.records.branches.set(y.records.currBranch,e.id),D.debug("in pushCommit "+e.id)},"commit"),ETe=mt(function(e){var t=e.name,e=e.order,t=L.sanitizeText(t,xTe());if(y.records.branches.has(t))throw new Error(`Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout ${t}")`);y.records.branches.set(t,null!=y.records.head?y.records.head.id:null),y.records.branchConfig.set(t,{name:t,order:e}),STe(t),D.debug("in createBranch")},"branch"),CTe=mt(e=>{var t=e.branch,r=e.id,n=e.type,i=e.tags,a=xTe(),t=L.sanitizeText(t,a),r=r&&L.sanitizeText(r,a),e=y.records.branches.get(y.records.currBranch),a=y.records.branches.get(t),e=e?y.records.commits.get(e):void 0,s=a?y.records.commits.get(a):void 0;if(e&&s&&e.branch===t)throw new Error(`Cannot merge branch '${t}' into itself.`);if(y.records.currBranch===t)throw(o=new Error('Incorrect usage of "merge". Cannot merge a branch to itself')).hash={text:"merge "+t,token:"merge "+t,expected:["branch abc"]},o;if(void 0===e||!e)throw(o=new Error(`Incorrect usage of "merge". Current branch (${y.records.currBranch})has no commits`)).hash={text:"merge "+t,token:"merge "+t,expected:["commit"]},o;if(!y.records.branches.has(t))throw(o=new Error('Incorrect usage of "merge". Branch to be merged ('+t+") does not exist")).hash={text:"merge "+t,token:"merge "+t,expected:["branch "+t]},o;if(void 0===s||!s)throw(o=new Error('Incorrect usage of "merge". Branch to be merged ('+t+") has no commits")).hash={text:"merge "+t,token:"merge "+t,expected:['"commit"']},o;if(e===s)throw(o=new Error('Incorrect usage of "merge". Both branches have same head')).hash={text:"merge "+t,token:"merge "+t,expected:["branch abc"]},o;if(r&&y.records.commits.has(r))throw(e=new Error('Incorrect usage of "merge". Commit with id:'+r+" already exists, use different custom id")).hash={text:`merge ${t} ${r} ${n} `+i?.join(" "),token:`merge ${t} ${r} ${n} `+i?.join(" "),expected:[`merge ${t} ${r}_UNIQUE ${n} `+i?.join(" ")]},e;var s=a||"",o={id:r||y.records.seq+"-"+gTe(),message:`merged branch ${t} into `+y.records.currBranch,seq:y.records.seq++,parents:null==y.records.head?[]:[y.records.head.id,s],branch:y.records.currBranch,type:cTe.MERGE,customType:n,customId:!!r,tags:i??[]};y.records.head=o,y.records.commits.set(o.id,o),y.r Line truncated `)),this.result=e}static{s(this,"MermaidParseError")}}});function lTe(e,t){e.accDescr&&t.setAccDescription?.(e.accDescr),e.accTitle&&t.setAccTitle?.(e.accTitle),e.title&&t.setDiagramTitle?.(e.title)}var cTe,hTe,uTe=b(()=>{mt(lTe,"populateCommonDb")}),dTe=b(()=>{cTe={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4}}),pTe=b(()=>{hTe=class{constructor(e){this.init=e,this.records=this.init()}static{mt(this,"ImperativeState")}reset(){this.records=this.init()}}});function gTe(){return qC({length:7})}function fTe(e,n){let i=Object.create(null);return e.reduce((e,t)=>{var r=n(t);return i[r]||(i[r]=!0,e.push(t)),e},[])}function mTe(e,t,r){-1===(t=e.indexOf(t))?e.push(r):e.splice(t,1,r)}function yTe(e){let t=e.reduce((e,t)=>e.seq>t.seq?e:t,e[0]),r="";e.forEach(function(e){e===t?r+="\t*":r+="\t|"});var n,i=[r,t.id,t.seq];for(n in y.records.branches)y.records.branches.get(n)===t.id&&i.push(n);if(D.debug(i.join(" ")),t.parents&&2==t.parents.length&&t.parents[0]&&t.parents[1]){var a=y.records.commits.get(t.parents[0]);mTe(e,t,a),t.parents[1]&&e.push(y.records.commits.get(t.parents[1]))}else{if(0==t.parents.length)return;t.parents[0]&&(a=y.records.commits.get(t.parents[0]),mTe(e,t,a))}yTe(e=fTe(e,e=>e.id))}var vTe,xTe,y,bTe,wTe,kTe,TTe,ETe,CTe,STe,_Te,ATe,LTe,NTe,ITe,RTe,MTe,DTe,OTe,PTe,BTe,$Te,FTe,zTe,GTe,UTe,qTe,jTe,YTe,WTe,HTe,VTe,XTe,KTe,ZTe,QTe,JTe,e7e,t7e,r7e,n7e,i7e,a7e,s7e,o7e,l7e,c7e,h7e,u7e,d7e,p7e,g7e,f7e,m7e,y7e,v7e,x7e,b7e,w7e,k7e,T7e,E7e,C7e=b(()=>{e(),iS(),rn(),Oc(),ku(),dTe(),pTe(),en(),vTe=Yt.gitGraph,xTe=mt(()=>SC({...vTe,...ar().gitGraph}),"getConfig"),y=new hTe(()=>{var e=(t=xTe()).mainBranchName,t=t.mainBranchOrder;return{mainBranchName:e,commits:new Map,head:null,branchConfig:new Map([[e,{name:e,order:t}]]),branches:new Map([[e,null]]),currBranch:e,direction:"LR",seq:0,options:{}}}),mt(gTe,"getID"),mt(fTe,"uniqBy"),bTe=mt(function(e){y.records.direction=e},"setDirection"),wTe=mt(function(e){D.debug("options str",e),e=e?.trim()||"{}";try{y.records.options=JSON.parse(e)}catch(e){D.error("error while parsing gitGraph options",e.message)}},"setOptions"),kTe=mt(function(){return y.records.options},"getOptions"),TTe=mt(function(e){let t=e.msg,r=e.id,n=e.type,i=e.tags,a=(D.info("commit",t,r,n,i),D.debug("Entering commit:",t,r,n,i),xTe());r=N.sanitizeText(r,a),t=N.sanitizeText(t,a),i=i?.map(e=>N.sanitizeText(e,a)),e={id:r||y.records.seq+"-"+gTe(),message:t,seq:y.records.seq++,type:n??cTe.NORMAL,tags:i??[],parents:null==y.records.head?[]:[y.records.head.id],branch:y.records.currBranch},y.records.head=e,D.info("main branch",a.mainBranchName),y.records.commits.has(e.id)&&D.warn(`Commit ID ${e.id} already exists`),y.records.commits.set(e.id,e),y.records.branches.set(y.records.currBranch,e.id),D.debug("in pushCommit "+e.id)},"commit"),ETe=mt(function(e){var t=e.name,e=e.order,t=N.sanitizeText(t,xTe());if(y.records.branches.has(t))throw new Error(`Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout ${t}")`);y.records.branches.set(t,null!=y.records.head?y.records.head.id:null),y.records.branchConfig.set(t,{name:t,order:e}),_Te(t),D.debug("in createBranch")},"branch"),CTe=mt(e=>{var t=e.branch,r=e.id,n=e.type,i=e.tags,a=xTe(),t=N.sanitizeText(t,a),r=r&&N.sanitizeText(r,a),e=y.records.branches.get(y.records.currBranch),a=y.records.branches.get(t),e=e?y.records.commits.get(e):void 0,s=a?y.records.commits.get(a):void 0;if(e&&s&&e.branch===t)throw new Error(`Cannot merge branch '${t}' into itself.`);if(y.records.currBranch===t)throw(o=new Error('Incorrect usage of "merge". Cannot merge a branch to itself')).hash={text:"merge "+t,token:"merge "+t,expected:["branch abc"]},o;if(void 0===e||!e)throw(o=new Error(`Incorrect usage of "merge". Current branch (${y.records.currBranch})has no commits`)).hash={text:"merge "+t,token:"merge "+t,expected:["commit"]},o;if(!y.records.branches.has(t))throw(o=new Error('Incorrect usage of "merge". Branch to be merged ('+t+") does not exist")).hash={text:"merge "+t,token:"merge "+t,expected:["branch "+t]},o;if(void 0===s||!s)throw(o=new Error('Incorrect usage of "merge". Branch to be merged ('+t+") has no commits")).hash={text:"merge "+t,token:"merge "+t,expected:['"commit"']},o;if(e===s)throw(o=new Error('Incorrect usage of "merge". Both branches have same head')).hash={text:"merge "+t,token:"merge "+t,expected:["branch abc"]},o;if(r&&y.records.commits.has(r))throw(e=new Error('Incorrect usage of "merge". Commit with id:'+r+" already exists, use different custom id")).hash={text:`merge ${t} ${r} ${n} `+i?.join(" "),token:`merge ${t} ${r} ${n} `+i?.join(" "),expected:[`merge ${t} ${r}_UNIQUE ${n} `+i?.join(" ")]},e;var s=a||"",o={id:r||y.records.seq+"-"+gTe(),message:`merged branch ${t} into `+y.records.currBranch,seq:y.records.seq++,parents:null==y.records.head?[]:[y.records.head.id,s],branch:y.records.currBranch,type:cTe.MERGE,customType:n,customId:!!r,tags:i??[]};y.records.head=o,y.records.commits.set(o.id,o),y.r Line truncated
${o-t/2-2},${2+y} ${o-t/2-2},${2+y}
${o-t/2-2},${y-2} ${o-t/2-2},${y-2}
${s.posWithOffset-t/2-4},${y-m-2} ${s.posWithOffset-t/2-4},${y-m-2}
@@ -1201,7 +1201,7 @@ For Further details.`}function Wve(e){if(e instanceof t1e)return"SUBRULE";if(e i
${s.x+10+t+4},${y-m-2} ${s.x+10+t+4},${y-m-2}
${s.x+10+t+4},${y+m+2} ${s.x+10+t+4},${y+m+2}
${s.x+10},`+(y+m+2)).attr("transform","translate(12,12) rotate(45, "+s.x+","+o+")"),p.attr("cx",s.x+2).attr("cy",y).attr("transform","translate(12,12) rotate(45, "+s.x+","+o+")"),d.attr("x",s.x+5).attr("y",y+3).attr("transform","translate(14,14) rotate(45, "+s.x+","+o+")"))}}},"drawCommitTags"),u7e=mt(e=>{switch(e.customType??e.type){case cTe.NORMAL:return"commit-normal";case cTe.REVERSE:return"commit-reverse";case cTe.HIGHLIGHT:return"commit-highlight";case cTe.MERGE:return"commit-merge";case cTe.CHERRY_PICK:return"commit-cherry-pick";default:return"commit-normal"}},"getCommitClassType"),d7e=mt((e,t,r,n)=>{var i,a={x:0,y:0};return 0<e.parents.length?(i=t7e(e.parents))?(i=n.get(i)??a,"TB"===t?i.y+40:"BT"===t?(n.get(e.id)??a).y-40:i.x+40):0:"TB"===t?30:"BT"===t?(n.get(e.id)??a).y-40:0},"calculatePosition"),p7e=mt((e,t,r)=>{var r="BT"===QTe&&r?t:t+10,t="TB"===QTe||"BT"===QTe?r:HTe.get(e.branch)?.pos,n="TB"===QTe||"BT"===QTe?HTe.get(e.branch)?.pos:r;if(void 0===n||void 0===t)throw new Error("Position were undefined for commit "+e.id);return{x:n,y:t,posWithOffset:r}},"getCommitPosition"),g7e=mt((e,a,s)=>{if(!WTe)throw new Error("GitGraph config not found");let o=e.append("g").attr("class","commit-bullets"),l=e.append("g").attr("class","commit-labels"),c="TB"===QTe||"BT"===QTe?30:0,t=[...a.keys()],h=WTe?.parallelCommits??!1,r=mt((e,t)=>(e=a.get(e)?.seq,t=a.get(t)?.seq,void 0!==e&&void 0!==t?e-t:0),"sortKeys"),n=t.sort(r);"BT"===QTe&&(h&&n7e(n,a,c),n=n.reverse()),n.forEach(e=>{var t=a.get(e);if(!t)throw new Error("Commit not found for key "+e);h&&(c=d7e(t,QTe,c,VTe));var r,n,i,e=p7e(t,c,h);s&&(r=u7e(t),n=t.customType??t.type,i=HTe.get(t.branch)?.index??0,l7e(o,t,e,r,i,n),c7e(l,t,e,c),h7e(l,t,e,c)),"TB"===QTe||"BT"===QTe?VTe.set(t.id,{x:e.x,y:e.posWithOffset}):VTe.set(t.id,{x:e.posWithOffset,y:e.y}),(c="BT"===QTe&&h?c+40:c+40+10)>ZTe&&(ZTe=c)})},"drawCommits"),f7e=mt((t,r,e,n,i)=>{let a=(("TB"===QTe||"BT"===QTe?e.x<n.x:e.y<n.y)?r:t).branch,s=mt(e=>e.branch===a,"isOnBranchToGetCurve"),o=mt(e=>e.seq>t.seq&&e.seq<r.seq,"isBetweenCommits");return[...i.values()].some(e=>o(e)&&s(e))},"shouldRerouteArrow"),m7e=mt((e,t,r=0)=>{let n=e+Math.abs(e-t)/2,i;return 5<r?n:KTe.every(e=>10<=Math.abs(e-n))?(KTe.push(n),n):(i=Math.abs(e-t),m7e(e,t-i/5,r+1))},"findLane"),y7e=mt((e,t,r,n)=>{var i,a=VTe.get(t.id),s=VTe.get(r.id);if(void 0===a||void 0===s)throw new Error(`Commit positions not found for commits ${t.id} and `+r.id);let o=f7e(t,r,a,s,n),l="",c="",h=0,u=0,d=HTe.get(r.branch)?.index;r.type===cTe.MERGE&&t.id!==r.parents[0]&&(d=HTe.get(t.branch)?.index);let p;if(o?(l="A 10 10, 0, 0, 0,",c="A 10 10, 0, 0, 1,",h=10,u=10,n=a.y<s.y?m7e(a.y,s.y):m7e(s.y,a.y),i=a.x<s.x?m7e(a.x,s.x):m7e(s.x,a.x),p="TB"===QTe?a.x<s.x?`M ${a.x} ${a.y} L ${i-h} ${a.y} ${c} ${i} ${a.y+u} L ${i} ${s.y-h} ${l} ${i+u} ${s.y} L ${s.x} `+s.y:(d=HTe.get(t.branch)?.index,`M ${a.x} ${a.y} L ${i+h} ${a.y} ${l} ${i} ${a.y+u} L ${i} ${s.y-h} ${c} ${i-u} ${s.y} L ${s.x} `+s.y):"BT"===QTe?a.x<s.x?`M ${a.x} ${a.y} L ${i-h} ${a.y} ${l} ${i} ${a.y-u} L ${i} ${s.y+h} ${c} ${i+u} ${s.y} L ${s.x} `+s.y:(d=HTe.get(t.branch)?.index,`M ${a.x} ${a.y} L ${i+h} ${a.y} ${c} ${i} ${a.y-u} L ${i} ${s.y+h} ${l} ${i-u} ${s.y} L ${s.x} `+s.y):a.y<s.y?`M ${a.x} ${a.y} L ${a.x} ${n-h} ${l} ${a.x+u} ${n} L ${s.x-h} ${n} ${c} ${s.x} ${n+u} L ${s.x} `+s.y:(d=HTe.get(t.branch)?.index,`M ${a.x} ${a.y} L ${a.x} ${n+h} ${c} ${a.x+u} ${n} L ${s.x-h} ${n} ${l} ${s.x} ${n-u} L ${s.x} `+s.y)):(l="A 20 20, 0, 0, 0,",c="A 20 20, 0, 0, 1,",h=20,u=20,"TB"===QTe?(a.x<s.x&&(p=r.type===cTe.MERGE&&t.id!==r.parents[0]?`M ${a.x} ${a.y} L ${a.x} ${s.y-h} ${l} ${a.x+u} ${s.y} L ${s.x} `+s.y:`M ${a.x} ${a.y} L ${s.x-h} ${a.y} ${c} ${s.x} ${a.y+u} L ${s.x} `+s.y),a.x>s.x&&(l="A 20 20, 0, 0, 0,",c="A 20 20, 0, 0, 1,",h=20,u=20,p=r.type===cTe.MERGE&&t.id!==r.parents[0]?`M ${a.x} ${a.y} L ${a.x} ${s.y-h} ${c} ${a.x-u} ${s.y} L ${s.x} `+s.y:`M ${a.x} ${a.y} L ${s.x+h} ${a.y} ${l} ${s.x} ${a.y+u} L ${s.x} `+s.y),a.x===s.x&&(p=`M ${a.x} ${a.y} L ${s.x} `+s.y)):"BT"===QTe?(a.x<s.x&&(p=r.type===cTe.MERGE&&t.id!==r.parents[0]?`M ${a.x} ${a.y} L ${a.x} ${s.y+h} ${c} ${a.x+u} ${s.y} L ${s.x} `+s.y:`M ${a.x} ${a.y} L ${s.x-h} ${a.y} ${l} ${s.x} ${a.y-u} L ${s.x} `+s.y),a.x>s.x&&(l="A 20 20, 0, 0, 0,",c="A 20 20, 0, 0, 1,",h=20,u=20,p=r.type===cTe.MERGE&&t.id!==r.parents[0]?`M ${a.x} ${a.y} L ${a.x} ${s.y+h} ${l} ${a.x-u} ${s.y} L ${s.x} `+s.y:`M ${a.x} ${a.y} L ${s.x-h} ${a.y} ${l} ${s.x} ${a.y-u} L ${s.x} `+s.y),a.x===s.x&&(p=`M ${a.x} ${a.y} L ${s.x} `+s.y)):(a.y<s.y&&(p=r.type===cTe.MERGE&&t.id!==r.parents[0]?`M ${a.x} ${a.y} L ${s.x-h} ${a.y} ${c} ${s.x} ${a.y+u} L ${s.x} `+s.y:`M ${a.x} ${a.y} L ${a.x} ${s.y-h} ${l} ${a.x+u} ${s.y} L ${s.x} `+s.y),a.y>s.y&&(p=r.type===cTe.MERGE&&t.id!==r.parents[0]?`M ${a.x} ${a.y} L ${s.x-h} ${a.y} ${l} ${s.x} ${a.y-u} L ${s.x} `+s.y:`M ${a.x} ${a.y} L ${a.x} ${s.y+h} ${c} ${a.x+u} ${s.y} L ${s.x} `+s.y),a.y===s.y&&(p=`M ${a.x} ${a.y} L ${s.x} `+s.y))),void 0===p)throw new Er Line truncated ${s.x+10},`+(y+m+2)).attr("transform","translate(12,12) rotate(45, "+s.x+","+o+")"),p.attr("cx",s.x+2).attr("cy",y).attr("transform","translate(12,12) rotate(45, "+s.x+","+o+")"),d.attr("x",s.x+5).attr("y",y+3).attr("transform","translate(14,14) rotate(45, "+s.x+","+o+")"))}}},"drawCommitTags"),u7e=mt(e=>{switch(e.customType??e.type){case cTe.NORMAL:return"commit-normal";case cTe.REVERSE:return"commit-reverse";case cTe.HIGHLIGHT:return"commit-highlight";case cTe.MERGE:return"commit-merge";case cTe.CHERRY_PICK:return"commit-cherry-pick";default:return"commit-normal"}},"getCommitClassType"),d7e=mt((e,t,r,n)=>{var i,a={x:0,y:0};return 0<e.parents.length?(i=t7e(e.parents))?(i=n.get(i)??a,"TB"===t?i.y+40:"BT"===t?(n.get(e.id)??a).y-40:i.x+40):0:"TB"===t?30:"BT"===t?(n.get(e.id)??a).y-40:0},"calculatePosition"),p7e=mt((e,t,r)=>{var r="BT"===QTe&&r?t:t+10,t="TB"===QTe||"BT"===QTe?r:HTe.get(e.branch)?.pos,n="TB"===QTe||"BT"===QTe?HTe.get(e.branch)?.pos:r;if(void 0===n||void 0===t)throw new Error("Position were undefined for commit "+e.id);return{x:n,y:t,posWithOffset:r}},"getCommitPosition"),g7e=mt((e,a,s)=>{if(!WTe)throw new Error("GitGraph config not found");let o=e.append("g").attr("class","commit-bullets"),l=e.append("g").attr("class","commit-labels"),c="TB"===QTe||"BT"===QTe?30:0,t=[...a.keys()],h=WTe?.parallelCommits??!1,r=mt((e,t)=>(e=a.get(e)?.seq,t=a.get(t)?.seq,void 0!==e&&void 0!==t?e-t:0),"sortKeys"),n=t.sort(r);"BT"===QTe&&(h&&n7e(n,a,c),n=n.reverse()),n.forEach(e=>{var t=a.get(e);if(!t)throw new Error("Commit not found for key "+e);h&&(c=d7e(t,QTe,c,VTe));var r,n,i,e=p7e(t,c,h);s&&(r=u7e(t),n=t.customType??t.type,i=HTe.get(t.branch)?.index??0,l7e(o,t,e,r,i,n),c7e(l,t,e,c),h7e(l,t,e,c)),"TB"===QTe||"BT"===QTe?VTe.set(t.id,{x:e.x,y:e.posWithOffset}):VTe.set(t.id,{x:e.posWithOffset,y:e.y}),(c="BT"===QTe&&h?c+40:c+40+10)>ZTe&&(ZTe=c)})},"drawCommits"),f7e=mt((t,r,e,n,i)=>{let a=(("TB"===QTe||"BT"===QTe?e.x<n.x:e.y<n.y)?r:t).branch,s=mt(e=>e.branch===a,"isOnBranchToGetCurve"),o=mt(e=>e.seq>t.seq&&e.seq<r.seq,"isBetweenCommits");return[...i.values()].some(e=>o(e)&&s(e))},"shouldRerouteArrow"),m7e=mt((e,t,r=0)=>{let n=e+Math.abs(e-t)/2,i;return 5<r?n:KTe.every(e=>10<=Math.abs(e-n))?(KTe.push(n),n):(i=Math.abs(e-t),m7e(e,t-i/5,r+1))},"findLane"),y7e=mt((e,t,r,n)=>{var i,a=VTe.get(t.id),s=VTe.get(r.id);if(void 0===a||void 0===s)throw new Error(`Commit positions not found for commits ${t.id} and `+r.id);let o=f7e(t,r,a,s,n),l="",c="",h=0,u=0,d=HTe.get(r.branch)?.index;r.type===cTe.MERGE&&t.id!==r.parents[0]&&(d=HTe.get(t.branch)?.index);let p;if(o?(l="A 10 10, 0, 0, 0,",c="A 10 10, 0, 0, 1,",h=10,u=10,n=a.y<s.y?m7e(a.y,s.y):m7e(s.y,a.y),i=a.x<s.x?m7e(a.x,s.x):m7e(s.x,a.x),p="TB"===QTe?a.x<s.x?`M ${a.x} ${a.y} L ${i-h} ${a.y} ${c} ${i} ${a.y+u} L ${i} ${s.y-h} ${l} ${i+u} ${s.y} L ${s.x} `+s.y:(d=HTe.get(t.branch)?.index,`M ${a.x} ${a.y} L ${i+h} ${a.y} ${l} ${i} ${a.y+u} L ${i} ${s.y-h} ${c} ${i-u} ${s.y} L ${s.x} `+s.y):"BT"===QTe?a.x<s.x?`M ${a.x} ${a.y} L ${i-h} ${a.y} ${l} ${i} ${a.y-u} L ${i} ${s.y+h} ${c} ${i+u} ${s.y} L ${s.x} `+s.y:(d=HTe.get(t.branch)?.index,`M ${a.x} ${a.y} L ${i+h} ${a.y} ${c} ${i} ${a.y-u} L ${i} ${s.y+h} ${l} ${i-u} ${s.y} L ${s.x} `+s.y):a.y<s.y?`M ${a.x} ${a.y} L ${a.x} ${n-h} ${l} ${a.x+u} ${n} L ${s.x-h} ${n} ${c} ${s.x} ${n+u} L ${s.x} `+s.y:(d=HTe.get(t.branch)?.index,`M ${a.x} ${a.y} L ${a.x} ${n+h} ${c} ${a.x+u} ${n} L ${s.x-h} ${n} ${l} ${s.x} ${n-u} L ${s.x} `+s.y)):(l="A 20 20, 0, 0, 0,",c="A 20 20, 0, 0, 1,",h=20,u=20,"TB"===QTe?(a.x<s.x&&(p=r.type===cTe.MERGE&&t.id!==r.parents[0]?`M ${a.x} ${a.y} L ${a.x} ${s.y-h} ${l} ${a.x+u} ${s.y} L ${s.x} `+s.y:`M ${a.x} ${a.y} L ${s.x-h} ${a.y} ${c} ${s.x} ${a.y+u} L ${s.x} `+s.y),a.x>s.x&&(l="A 20 20, 0, 0, 0,",c="A 20 20, 0, 0, 1,",h=20,u=20,p=r.type===cTe.MERGE&&t.id!==r.parents[0]?`M ${a.x} ${a.y} L ${a.x} ${s.y-h} ${c} ${a.x-u} ${s.y} L ${s.x} `+s.y:`M ${a.x} ${a.y} L ${s.x+h} ${a.y} ${l} ${s.x} ${a.y+u} L ${s.x} `+s.y),a.x===s.x&&(p=`M ${a.x} ${a.y} L ${s.x} `+s.y)):"BT"===QTe?(a.x<s.x&&(p=r.type===cTe.MERGE&&t.id!==r.parents[0]?`M ${a.x} ${a.y} L ${a.x} ${s.y+h} ${c} ${a.x+u} ${s.y} L ${s.x} `+s.y:`M ${a.x} ${a.y} L ${s.x-h} ${a.y} ${l} ${s.x} ${a.y-u} L ${s.x} `+s.y),a.x>s.x&&(l="A 20 20, 0, 0, 0,",c="A 20 20, 0, 0, 1,",h=20,u=20,p=r.type===cTe.MERGE&&t.id!==r.parents[0]?`M ${a.x} ${a.y} L ${a.x} ${s.y+h} ${l} ${a.x-u} ${s.y} L ${s.x} `+s.y:`M ${a.x} ${a.y} L ${s.x-h} ${a.y} ${l} ${s.x} ${a.y-u} L ${s.x} `+s.y),a.x===s.x&&(p=`M ${a.x} ${a.y} L ${s.x} `+s.y)):(a.y<s.y&&(p=r.type===cTe.MERGE&&t.id!==r.parents[0]?`M ${a.x} ${a.y} L ${s.x-h} ${a.y} ${c} ${s.x} ${a.y+u} L ${s.x} `+s.y:`M ${a.x} ${a.y} L ${a.x} ${s.y-h} ${l} ${a.x+u} ${s.y} L ${s.x} `+s.y),a.y>s.y&&(p=r.type===cTe.MERGE&&t.id!==r.parents[0]?`M ${a.x} ${a.y} L ${s.x-h} ${a.y} ${l} ${s.x} ${a.y-u} L ${s.x} `+s.y:`M ${a.x} ${a.y} L ${a.x} ${s.y+h} ${c} ${a.x+u} ${s.y} L ${s.x} `+s.y),a.y===s.y&&(p=`M ${a.x} ${a.y} L ${s.x} `+s.y))),void 0===p)throw new Er Line truncated
`,"id:",t,r),!WTe)throw new Error("GitGraph config not found");let s=WTe.rotateCommitLabel??!1,i=n.db,o=(XTe=i.getCommits(),e=i.getBranchesAsObjArray(),QTe=i.getDirection(),H(`[id="${t}"]`)),l=0;e.forEach((e,t)=>{var r=e7e(e.name),n=o.append("g"),i=n.insert("g").attr("class","branchLabel"),a=i.insert("g").attr("class","label branch-label"),r=(a.node()?.appendChild(r),r.getBBox());l=b7e(e.name,l,t,r,s),a.remove(),i.remove(),n.remove()}),g7e(o,XTe,!1),WTe.showBranches&&x7e(o,e),v7e(o,XTe),g7e(o,XTe,!0),e_.insertTitle(o,"gitTitleText",WTe.titleTopMargin??0,i.getDiagramTitle()),Sh(void 0,o,WTe.diagramPadding,WTe.useMaxWidth)},"draw"),k7e={draw:w7e}}),A7e=b(()=>{T7e=mt(t=>` `,"id:",t,r),!WTe)throw new Error("GitGraph config not found");let s=WTe.rotateCommitLabel??!1,i=n.db,o=(XTe=i.getCommits(),e=i.getBranchesAsObjArray(),QTe=i.getDirection(),H(`[id="${t}"]`)),l=0;e.forEach((e,t)=>{var r=e7e(e.name),n=o.append("g"),i=n.insert("g").attr("class","branchLabel"),a=i.insert("g").attr("class","label branch-label"),r=(a.node()?.appendChild(r),r.getBBox());l=b7e(e.name,l,t,r,s),a.remove(),i.remove(),n.remove()}),g7e(o,XTe,!1),WTe.showBranches&&x7e(o,e),v7e(o,XTe),g7e(o,XTe,!0),eS.insertTitle(o,"gitTitleText",WTe.titleTopMargin??0,i.getDiagramTitle()),_h(void 0,o,WTe.diagramPadding,WTe.useMaxWidth)},"draw"),k7e={draw:w7e}}),A7e=b(()=>{T7e=mt(t=>`
.commit-id, .commit-id,
.commit-msg, .commit-msg,
.branch-label { .branch-label {
@@ -1252,12 +1252,12 @@ For Further details.`}function Wve(e){if(e instanceof t1e)return"SUBRULE";if(e i
font-size: 18px; font-size: 18px;
fill: ${t.textColor}; fill: ${t.textColor};
} }
`,"getStyles"),E7e=T7e}),L7e={};OFe(L7e,{diagram:()=>N7e});var N7e,I7e,R7e,M7e=b(()=>{_7e(),C7e(),S7e(),A7e(),N7e={parser:YTe,db:BTe,renderer:k7e,styles:E7e}}),D7e=b(()=>{function e(){this.yy={}}var t=mt(function(e,t,r,n){for(r=r||{},n=e.length;n--;r[e[n]]=t);return r},"o"),r=[6,8,10,12,13,14,15,16,17,18,20,21,22,23,24,25,26,27,28,29,30,31,33,35,36,38,40],n=[1,26],i=[1,27],a=[1,28],s=[1,29],o=[1,30],l=[1,31],c=[1,32],h=[1,33],u=[1,34],d=[1,9],p=[1,10],g=[1,11],f=[1,12],m=[1,13],y=[1,14],v=[1,15],x=[1,16],b=[1,19],w=[1,20],k=[1,21],T=[1,22],E=[1,23],C=[1,25],_=[1,35],n={trace:mt(function(){},"trace"),yy:{},symbols_:{error:2,start:3,gantt:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NL:10,weekday:11,weekday_monday:12,weekday_tuesday:13,weekday_wednesday:14,weekday_thursday:15,weekday_friday:16,weekday_saturday:17,weekday_sunday:18,weekend:19,weekend_friday:20,weekend_saturday:21,dateFormat:22,inclusiveEndDates:23,topAxis:24,axisFormat:25,tickInterval:26,excludes:27,includes:28,todayMarker:29,title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,section:36,clickStatement:37,taskTxt:38,taskData:39,click:40,callbackname:41,callbackargs:42,href:43,clickStatementDebug:44,$accept:0,$end:1},terminals_:{2:"error",4:"gantt",6:"EOF",8:"SPACE",10:"NL",12:"weekday_monday",13:"weekday_tuesday",14:"weekday_wednesday",15:"weekday_thursday",16:"weekday_friday",17:"weekday_saturday",18:"weekday_sunday",20:"weekend_friday",21:"weekend_saturday",22:"dateFormat",23:"inclusiveEndDates",24:"topAxis",25:"axisFormat",26:"tickInterval",27:"excludes",28:"includes",29:"todayMarker",30:"title",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",36:"section",38:"taskTxt",39:"taskData",40:"click",41:"callbackname",42:"callbackargs",43:"href"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[19,1],[19,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,2],[37,2],[37,3],[37,3],[37,4],[37,3],[37,4],[37,2],[44,2],[44,3],[44,3],[44,4],[44,3],[44,4],[44,2]],performAction:mt(function(e,t,r,n,i,a,s){var o=a.length-1;switch(i){case 1:return a[o-1];case 2:this.$=[];break;case 3:a[o-1].push(a[o]),this.$=a[o-1];break;case 4:case 5:this.$=a[o];break;case 6:case 7:this.$=[];break;case 8:n.setWeekday("monday");break;case 9:n.setWeekday("tuesday");break;case 10:n.setWeekday("wednesday");break;case 11:n.setWeekday("thursday");break;case 12:n.setWeekday("friday");break;case 13:n.setWeekday("saturday");break;case 14:n.setWeekday("sunday");break;case 15:n.setWeekend("friday");break;case 16:n.setWeekend("saturday");break;case 17:n.setDateFormat(a[o].substr(11)),this.$=a[o].substr(11);break;case 18:n.enableInclusiveEndDates(),this.$=a[o].substr(18);break;case 19:n.TopAxis(),this.$=a[o].substr(8);break;case 20:n.setAxisFormat(a[o].substr(11)),this.$=a[o].substr(11);break;case 21:n.setTickInterval(a[o].substr(13)),this.$=a[o].substr(13);break;case 22:n.setExcludes(a[o].substr(9)),this.$=a[o].substr(9);break;case 23:n.setIncludes(a[o].substr(9)),this.$=a[o].substr(9);break;case 24:n.setTodayMarker(a[o].substr(12)),this.$=a[o].substr(12);break;case 27:n.setDiagramTitle(a[o].substr(6)),this.$=a[o].substr(6);break;case 28:this.$=a[o].trim(),n.setAccTitle(this.$);break;case 29:case 30:this.$=a[o].trim(),n.setAccDescription(this.$);break;case 31:n.addSection(a[o].substr(8)),this.$=a[o].substr(8);break;case 33:n.addTask(a[o-1],a[o]),this.$="task";break;case 34:this.$=a[o-1],n.setClickEvent(a[o-1],a[o],null);break;case 35:this.$=a[o-2],n.setClickEvent(a[o-2],a[o-1],a[o]);break;case 36:this.$=a[o-2],n.setClickEvent(a[o-2],a[o-1],null),n.setLink(a[o-2],a[o]);break;case 37:this.$=a[o-3],n.setClickEvent(a[o-3],a[o-2],a[o-1]),n.setLink(a[o-3],a[o]);break;case 38:this.$=a[o-2],n.setClickEvent(a[o-2],a[o],null),n.setLink(a[o-2],a[o-1]);break;case 39:this.$=a[o-3],n.setClickEvent(a[o-3],a[o-1],a[o]),n.setLink(a[o-3],a[o-2]);break;case 40:this.$=a[o-1],n.setLink(a[o-1],a[o]);break;case 41:case 47:this.$=a[o-1]+" "+a[o];break;case 42:case 43:case 45:this.$=a[o-2]+" "+a[o-1]+" "+a[o];break;case 44:case 46:this.$=a[o-3]+" "+a[o-2]+" "+a[o-1]+" "+a[o]}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(r,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:17,12:n,13:i,14:a,15:s,16:o,17:l,18:c,19:18,20:h,21:u,22:d,23:p,24:g,25:f,26:m,27:y,28:v,29:x,30:b,31:w,33:k,35:T,36:E,37:24,38:C,40:_},t(r,[2,7],{1:[2,1]}),t(r,[2,3]),{9:36,11:17,12:n,13:i,14:a,15:s,16:o,17:l,18:c,19:18,20:h,21:u,22:d,23:p,24:g,25:f,26:m,27:y,28:v,29:x,30:b,31:w,33:k,35:T,36:E,37:24,38:C,40:_},t(r,[2,5]),t(r,[2,6]),t(r,[2,17]),t(r,[2,18]),t(r,[2,19]),t(r,[2,20]),t(r,[2,21]),t(r,[2,22]),t(r,[2,23]),t(r,[2,24]),t(r,[2,25]),t(r,[2,26]),t(r,[2,27]),{32:[1,37]},{34:[1,38]},t(r,[2,30]),t(r,[2,31]),t(r,[2,32]),{39:[1,39]},t(r,[2,8]),t(r,[2,9]),t(r,[2,10]),t(r,[2,11]),t(r,[2,12]),t(r,[2,13]),t(r,[2,14]),t(r,[2,15]),t(r,[2,1 Line truncated `,"getStyles"),E7e=T7e}),L7e={};PFe(L7e,{diagram:()=>N7e});var N7e,I7e,R7e,M7e=b(()=>{S7e(),C7e(),_7e(),A7e(),N7e={parser:YTe,db:BTe,renderer:k7e,styles:E7e}}),D7e=b(()=>{function e(){this.yy={}}var t=mt(function(e,t,r,n){for(r=r||{},n=e.length;n--;r[e[n]]=t);return r},"o"),r=[6,8,10,12,13,14,15,16,17,18,20,21,22,23,24,25,26,27,28,29,30,31,33,35,36,38,40],n=[1,26],i=[1,27],a=[1,28],s=[1,29],o=[1,30],l=[1,31],c=[1,32],h=[1,33],u=[1,34],d=[1,9],p=[1,10],g=[1,11],f=[1,12],m=[1,13],y=[1,14],v=[1,15],x=[1,16],b=[1,19],w=[1,20],k=[1,21],T=[1,22],E=[1,23],C=[1,25],S=[1,35],n={trace:mt(function(){},"trace"),yy:{},symbols_:{error:2,start:3,gantt:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NL:10,weekday:11,weekday_monday:12,weekday_tuesday:13,weekday_wednesday:14,weekday_thursday:15,weekday_friday:16,weekday_saturday:17,weekday_sunday:18,weekend:19,weekend_friday:20,weekend_saturday:21,dateFormat:22,inclusiveEndDates:23,topAxis:24,axisFormat:25,tickInterval:26,excludes:27,includes:28,todayMarker:29,title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,section:36,clickStatement:37,taskTxt:38,taskData:39,click:40,callbackname:41,callbackargs:42,href:43,clickStatementDebug:44,$accept:0,$end:1},terminals_:{2:"error",4:"gantt",6:"EOF",8:"SPACE",10:"NL",12:"weekday_monday",13:"weekday_tuesday",14:"weekday_wednesday",15:"weekday_thursday",16:"weekday_friday",17:"weekday_saturday",18:"weekday_sunday",20:"weekend_friday",21:"weekend_saturday",22:"dateFormat",23:"inclusiveEndDates",24:"topAxis",25:"axisFormat",26:"tickInterval",27:"excludes",28:"includes",29:"todayMarker",30:"title",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",36:"section",38:"taskTxt",39:"taskData",40:"click",41:"callbackname",42:"callbackargs",43:"href"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[19,1],[19,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,2],[37,2],[37,3],[37,3],[37,4],[37,3],[37,4],[37,2],[44,2],[44,3],[44,3],[44,4],[44,3],[44,4],[44,2]],performAction:mt(function(e,t,r,n,i,a,s){var o=a.length-1;switch(i){case 1:return a[o-1];case 2:this.$=[];break;case 3:a[o-1].push(a[o]),this.$=a[o-1];break;case 4:case 5:this.$=a[o];break;case 6:case 7:this.$=[];break;case 8:n.setWeekday("monday");break;case 9:n.setWeekday("tuesday");break;case 10:n.setWeekday("wednesday");break;case 11:n.setWeekday("thursday");break;case 12:n.setWeekday("friday");break;case 13:n.setWeekday("saturday");break;case 14:n.setWeekday("sunday");break;case 15:n.setWeekend("friday");break;case 16:n.setWeekend("saturday");break;case 17:n.setDateFormat(a[o].substr(11)),this.$=a[o].substr(11);break;case 18:n.enableInclusiveEndDates(),this.$=a[o].substr(18);break;case 19:n.TopAxis(),this.$=a[o].substr(8);break;case 20:n.setAxisFormat(a[o].substr(11)),this.$=a[o].substr(11);break;case 21:n.setTickInterval(a[o].substr(13)),this.$=a[o].substr(13);break;case 22:n.setExcludes(a[o].substr(9)),this.$=a[o].substr(9);break;case 23:n.setIncludes(a[o].substr(9)),this.$=a[o].substr(9);break;case 24:n.setTodayMarker(a[o].substr(12)),this.$=a[o].substr(12);break;case 27:n.setDiagramTitle(a[o].substr(6)),this.$=a[o].substr(6);break;case 28:this.$=a[o].trim(),n.setAccTitle(this.$);break;case 29:case 30:this.$=a[o].trim(),n.setAccDescription(this.$);break;case 31:n.addSection(a[o].substr(8)),this.$=a[o].substr(8);break;case 33:n.addTask(a[o-1],a[o]),this.$="task";break;case 34:this.$=a[o-1],n.setClickEvent(a[o-1],a[o],null);break;case 35:this.$=a[o-2],n.setClickEvent(a[o-2],a[o-1],a[o]);break;case 36:this.$=a[o-2],n.setClickEvent(a[o-2],a[o-1],null),n.setLink(a[o-2],a[o]);break;case 37:this.$=a[o-3],n.setClickEvent(a[o-3],a[o-2],a[o-1]),n.setLink(a[o-3],a[o]);break;case 38:this.$=a[o-2],n.setClickEvent(a[o-2],a[o],null),n.setLink(a[o-2],a[o-1]);break;case 39:this.$=a[o-3],n.setClickEvent(a[o-3],a[o-1],a[o]),n.setLink(a[o-3],a[o-2]);break;case 40:this.$=a[o-1],n.setLink(a[o-1],a[o]);break;case 41:case 47:this.$=a[o-1]+" "+a[o];break;case 42:case 43:case 45:this.$=a[o-2]+" "+a[o-1]+" "+a[o];break;case 44:case 46:this.$=a[o-3]+" "+a[o-2]+" "+a[o-1]+" "+a[o]}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(r,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:17,12:n,13:i,14:a,15:s,16:o,17:l,18:c,19:18,20:h,21:u,22:d,23:p,24:g,25:f,26:m,27:y,28:v,29:x,30:b,31:w,33:k,35:T,36:E,37:24,38:C,40:S},t(r,[2,7],{1:[2,1]}),t(r,[2,3]),{9:36,11:17,12:n,13:i,14:a,15:s,16:o,17:l,18:c,19:18,20:h,21:u,22:d,23:p,24:g,25:f,26:m,27:y,28:v,29:x,30:b,31:w,33:k,35:T,36:E,37:24,38:C,40:S},t(r,[2,5]),t(r,[2,6]),t(r,[2,17]),t(r,[2,18]),t(r,[2,19]),t(r,[2,20]),t(r,[2,21]),t(r,[2,22]),t(r,[2,23]),t(r,[2,24]),t(r,[2,25]),t(r,[2,26]),t(r,[2,27]),{32:[1,37]},{34:[1,38]},t(r,[2,30]),t(r,[2,31]),t(r,[2,32]),{39:[1,39]},t(r,[2,8]),t(r,[2,9]),t(r,[2,10]),t(r,[2,11]),t(r,[2,12]),t(r,[2,13]),t(r,[2,14]),t(r,[2,15]),t(r,[2,1 Line truncated
`+g.showPosition()+` `+g.showPosition()+`
Expecting `+A.join(", ")+", got '"+(this.terminals_[x]||x)+"'":"Parse error on line "+(c+1)+": Unexpected "+(x==d?"end of input":"'"+(this.terminals_[x]||x)+"'"),this.parseError(S,{text:g.match,token:this.terminals_[x]||x,line:g.yylineno,loc:m,expected:A})}if(k[0]instanceof Array&&1<k.length)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+x);switch(k[0]){case 1:n.push(x),a.push(g.yytext),s.push(g.yylloc),n.push(k[1]),x=null,b?(x=b,b=null):(h=g.yyleng,l=g.yytext,c=g.yylineno,m=g.yylloc,0<u&&u--);break;case 2:if(E=this.productions_[k[1]][1],_.$=a[a.length-E],_._$={first_line:s[s.length-(E||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(E||1)].first_column,last_column:s[s.length-1].last_column},y&&(_._$.range=[s[s.length-(E||1)].range[0],s[s.length-1].range[1]]),typeof(C=this.performAction.apply(_,[l,h,c,f.yy,k[1],a,s].concat(p)))<"u")return C;E&&(n=n.slice(0,-1*E*2),a=a.slice(0,-1*E),s=s.slice(0,-1*E)),n.push(this.productions_[k[1]][0]),a.push(_.$),s.push(_._$),C=o[n[n.length-2]][n[n.length-1]],n.push(C);break;case 3:return!0}}return!0},"parse")},i={EOF:1,parseError:mt(function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},"parseError"),setInput:mt(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:mt(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},"input"),unput:mt(function(e){var t=e.length,r=e.split(/(?:\r\n?|\n)/g),e=(this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t,this.match.split(/(?:\r\n?|\n)/g)),n=(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),r.length-1&&(this.yylineno-=r.length-1),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:r?(r.length===e.length?this.yylloc.first_column:0)+e[e.length-r.length].length-r[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[n[0],n[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},"unput"),more:mt(function(){return this._more=!0,this},"more"),reject:mt(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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). Expecting `+A.join(", ")+", got '"+(this.terminals_[x]||x)+"'":"Parse error on line "+(c+1)+": Unexpected "+(x==d?"end of input":"'"+(this.terminals_[x]||x)+"'"),this.parseError(_,{text:g.match,token:this.terminals_[x]||x,line:g.yylineno,loc:m,expected:A})}if(k[0]instanceof Array&&1<k.length)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+x);switch(k[0]){case 1:n.push(x),a.push(g.yytext),s.push(g.yylloc),n.push(k[1]),x=null,b?(x=b,b=null):(h=g.yyleng,l=g.yytext,c=g.yylineno,m=g.yylloc,0<u&&u--);break;case 2:if(E=this.productions_[k[1]][1],S.$=a[a.length-E],S._$={first_line:s[s.length-(E||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(E||1)].first_column,last_column:s[s.length-1].last_column},y&&(S._$.range=[s[s.length-(E||1)].range[0],s[s.length-1].range[1]]),typeof(C=this.performAction.apply(S,[l,h,c,f.yy,k[1],a,s].concat(p)))<"u")return C;E&&(n=n.slice(0,-1*E*2),a=a.slice(0,-1*E),s=s.slice(0,-1*E)),n.push(this.productions_[k[1]][0]),a.push(S.$),s.push(S._$),C=o[n[n.length-2]][n[n.length-1]],n.push(C);break;case 3:return!0}}return!0},"parse")},i={EOF:1,parseError:mt(function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},"parseError"),setInput:mt(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:mt(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},"input"),unput:mt(function(e){var t=e.length,r=e.split(/(?:\r\n?|\n)/g),e=(this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t,this.match.split(/(?:\r\n?|\n)/g)),n=(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),r.length-1&&(this.yylineno-=r.length-1),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:r?(r.length===e.length?this.yylloc.first_column:0)+e[e.length-r.length].length-r[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[n[0],n[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},"unput"),more:mt(function(){return this._more=!0,this},"more"),reject:mt(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:mt(function(e){this.unput(this.match.slice(e))},"less"),pastInput:mt(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(20<e.length?"...":"")+e.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:mt(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(20<e.length?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:mt(function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+` `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:mt(function(e){this.unput(this.match.slice(e))},"less"),pastInput:mt(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(20<e.length?"...":"")+e.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:mt(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(20<e.length?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:mt(function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+`
`+t+"^"},"showPosition"),test_match:mt(function(e,t){var r,n;if(this.options.backtrack_lexer&&(n={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)&&(n.yylloc.range=this.yylloc.range.slice(0)),(r=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],r=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),r)return r;if(this._backtrack)for(var i in n)this[i]=n[i];return!1},"test_match"),next:mt(function(){if(this.done)return this.EOF;var e,t,r,n;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;a<i.length;a++)if((r=this._input.match(this.rules[i[a]]))&&(!t||r[0].length>t[0].length)){if(t=r,n=a,this.options.backtrack_lexer){if(!1!==(e=this.test_match(r,i[a])))return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,i[n]))&&e:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. `+t+"^"},"showPosition"),test_match:mt(function(e,t){var r,n;if(this.options.backtrack_lexer&&(n={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)&&(n.yylloc.range=this.yylloc.range.slice(0)),(r=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],r=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),r)return r;if(this._backtrack)for(var i in n)this[i]=n[i];return!1},"test_match"),next:mt(function(){if(this.done)return this.EOF;var e,t,r,n;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;a<i.length;a++)if((r=this._input.match(this.rules[i[a]]))&&(!t||r[0].length>t[0].length)){if(t=r,n=a,this.options.backtrack_lexer){if(!1!==(e=this.test_match(r,i[a])))return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,i[n]))&&e:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:mt(function(){return this.next()||this.lex()},"lex"),begin:mt(function(e){this.conditionStack.push(e)},"begin"),popState:mt(function(){return 0<this.conditionStack.length-1?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:mt(function(){return(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]]:this.conditions.INITIAL).rules},"_currentRules"),topState:mt(function(e){return 0<=(e=this.conditionStack.length-1-Math.abs(e||0))?this.conditionStack[e]:"INITIAL"},"topState"),pushState:mt(function(e){this.begin(e)},"pushState"),stateStackSize:mt(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:mt(function(e,t,r,n){switch(r){case 0:return this.begin("open_directive"),"open_directive";case 1:return this.begin("acc_title"),31;case 2:return this.popState(),"acc_title_value";case 3:return this.begin("acc_descr"),33;case 4:return this.popState(),"acc_descr_value";case 5:this.begin("acc_descr_multiline");break;case 6:this.popState();break;case 7:return"acc_descr_multiline_value";case 8:case 9:case 10:break;case 11:return 10;case 12:case 13:break;case 14:this.begin("href");break;case 15:this.popState();break;case 16:return 43;case 17:this.begin("callbackname");break;case 18:this.popState();break;case 19:this.popState(),this.begin("callbackargs");break;case 20:return 41;case 21:this.popState();break;case 22:return 42;case 23:this.begin("click");break;case 24:this.popState();break;case 25:return 40;case 26:return 4;case 27:return 22;case 28:return 23;case 29:return 24;case 30:return 25;case 31:return 26;case 32:return 28;case 33:return 27;case 34:return 29;case 35:return 12;case 36:return 13;case 37:return 14;case 38:return 15;case 39:return 16;case 40:return 17;case 41:return 18;case 42:return 20;case 43:return 21;case 44:return"date";case 45:return 30;case 46:return"accDescription";case 47:return 36;case 48:return 38;case 49:return 39;case 50:return":";case 51:return 6;case 52:return"INVALID"}},"anonymous"),rules:[/^(?:%%\{)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:%%(?!\{)*[^\n]*)/i,/^(?:[^\}]%%*[^\n]*)/i,/^(?:%%*[^\n]*[\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:%[^\n]*)/i,/^(?:href[\s]+["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:call[\s]+)/i,/^(?:\([\s]*\))/i,/^(?:\()/i,/^(?:[^(]*)/i,/^(?:\))/i,/^(?:[^)]*)/i,/^(?:click[\s]+)/i,/^(?:[\s\n])/i,/^(?:[^\s\n]*)/i,/^(?:gantt\b)/i,/^(?:dateFormat\s[^#\n;]+)/i,/^(?:inclusiveEndDates\b)/i,/^(?:topAxis\b)/i,/^(?:axisFormat\s[^#\n;]+)/i,/^(?:tickInterval\s[^#\n;]+)/i,/^(?:includes\s[^#\n;]+)/i,/^(?:excludes\s[^#\n;]+)/i,/^(?:todayMarker\s[^\n;]+)/i,/^(?:weekday\s+monday\b)/i,/^(?:weekday\s+tuesday\b)/i,/^(?:weekday\s+wednesday\b)/i,/^(?:weekday\s+thursday\b)/i,/^(?:weekday\s+friday\b)/i,/^(?:weekday\s+saturday\b)/i,/^(?:weekday\s+sunday\b)/i,/^(?:weekend\s+friday\b)/i,/^(?:weekend\s+saturday\b)/i,/^(?:\d\d\d\d-\d\d-\d\d\b)/i,/^(?:title\s[^\n]+)/i,/^(?:accDescription\s[^#\n;]+)/i,/^(?:section\s[^\n]+)/i,/^(?:[^:\n]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[6,7],inclusive:!1},acc_descr:{rules:[4],inclusive:!1},acc_title:{rules:[2],inclusive:!1},callbackargs:{rules:[21,22],inclusive:!1},callbackname:{rules:[18,19,20],inclusive:!1},href:{rules:[15,16],inclusive:!1},click:{rules:[24,25],inclusive:!1},INITIAL:{rules:[0,1,3,5,8,9,10,11,12,13,14,17,23,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52],inclusive:!0}}};n.lexer=i,mt(e,"Parser"),(I7e=new((e.prototype=n).Parser=e)).parser=I7e,R7e=I7e}),O7e=NFe((e,t)=>{function r(){return function(e,t,i){var a=mt(function(e){return e.add(4-e.isoWeekday(),"day")},"a"),s=((t=t.prototype).isoWeekYear=function(){return a(this).year()},t.isoWeek=function(e){var t,r,n;return this.$utils().u(e)?(r=a(this),n=this.isoWeekYear(),t=4-(n=(this.$u?i.utc:i)().year(n).startOf("year")).isoWeekday(),4<n.isoWeekday()&&(t+=7),n=n.add(t,"day"),r.diff(n,"week")+1):this.add(7*(e-this.isoWeek()),"day")},t.isoWeekday=function(e){return this.$utils().u(e)?this.day()||7:this.day(this.day()%7?e:e-7)},t.startOf);t.startOf=function(e,t){var r=this.$utils(),n=!!r.u(t)||t;return"isoweek"===r.p(e)?n?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):s.bind(this)(e,t)}}}"object"==typeof e&&typeof t<"u"?t.exports=r():"function"==typeof define&&define.amd?define(r):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_plugin_isoWeek=r()}),P7e=NFe((e,t)=>{function r(){var o={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},l=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1, Line truncated `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:mt(function(){return this.next()||this.lex()},"lex"),begin:mt(function(e){this.conditionStack.push(e)},"begin"),popState:mt(function(){return 0<this.conditionStack.length-1?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:mt(function(){return(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]]:this.conditions.INITIAL).rules},"_currentRules"),topState:mt(function(e){return 0<=(e=this.conditionStack.length-1-Math.abs(e||0))?this.conditionStack[e]:"INITIAL"},"topState"),pushState:mt(function(e){this.begin(e)},"pushState"),stateStackSize:mt(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:mt(function(e,t,r,n){switch(r){case 0:return this.begin("open_directive"),"open_directive";case 1:return this.begin("acc_title"),31;case 2:return this.popState(),"acc_title_value";case 3:return this.begin("acc_descr"),33;case 4:return this.popState(),"acc_descr_value";case 5:this.begin("acc_descr_multiline");break;case 6:this.popState();break;case 7:return"acc_descr_multiline_value";case 8:case 9:case 10:break;case 11:return 10;case 12:case 13:break;case 14:this.begin("href");break;case 15:this.popState();break;case 16:return 43;case 17:this.begin("callbackname");break;case 18:this.popState();break;case 19:this.popState(),this.begin("callbackargs");break;case 20:return 41;case 21:this.popState();break;case 22:return 42;case 23:this.begin("click");break;case 24:this.popState();break;case 25:return 40;case 26:return 4;case 27:return 22;case 28:return 23;case 29:return 24;case 30:return 25;case 31:return 26;case 32:return 28;case 33:return 27;case 34:return 29;case 35:return 12;case 36:return 13;case 37:return 14;case 38:return 15;case 39:return 16;case 40:return 17;case 41:return 18;case 42:return 20;case 43:return 21;case 44:return"date";case 45:return 30;case 46:return"accDescription";case 47:return 36;case 48:return 38;case 49:return 39;case 50:return":";case 51:return 6;case 52:return"INVALID"}},"anonymous"),rules:[/^(?:%%\{)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:%%(?!\{)*[^\n]*)/i,/^(?:[^\}]%%*[^\n]*)/i,/^(?:%%*[^\n]*[\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:%[^\n]*)/i,/^(?:href[\s]+["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:call[\s]+)/i,/^(?:\([\s]*\))/i,/^(?:\()/i,/^(?:[^(]*)/i,/^(?:\))/i,/^(?:[^)]*)/i,/^(?:click[\s]+)/i,/^(?:[\s\n])/i,/^(?:[^\s\n]*)/i,/^(?:gantt\b)/i,/^(?:dateFormat\s[^#\n;]+)/i,/^(?:inclusiveEndDates\b)/i,/^(?:topAxis\b)/i,/^(?:axisFormat\s[^#\n;]+)/i,/^(?:tickInterval\s[^#\n;]+)/i,/^(?:includes\s[^#\n;]+)/i,/^(?:excludes\s[^#\n;]+)/i,/^(?:todayMarker\s[^\n;]+)/i,/^(?:weekday\s+monday\b)/i,/^(?:weekday\s+tuesday\b)/i,/^(?:weekday\s+wednesday\b)/i,/^(?:weekday\s+thursday\b)/i,/^(?:weekday\s+friday\b)/i,/^(?:weekday\s+saturday\b)/i,/^(?:weekday\s+sunday\b)/i,/^(?:weekend\s+friday\b)/i,/^(?:weekend\s+saturday\b)/i,/^(?:\d\d\d\d-\d\d-\d\d\b)/i,/^(?:title\s[^\n]+)/i,/^(?:accDescription\s[^#\n;]+)/i,/^(?:section\s[^\n]+)/i,/^(?:[^:\n]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[6,7],inclusive:!1},acc_descr:{rules:[4],inclusive:!1},acc_title:{rules:[2],inclusive:!1},callbackargs:{rules:[21,22],inclusive:!1},callbackname:{rules:[18,19,20],inclusive:!1},href:{rules:[15,16],inclusive:!1},click:{rules:[24,25],inclusive:!1},INITIAL:{rules:[0,1,3,5,8,9,10,11,12,13,14,17,23,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52],inclusive:!0}}};n.lexer=i,mt(e,"Parser"),(I7e=new((e.prototype=n).Parser=e)).parser=I7e,R7e=I7e}),O7e=IFe((e,t)=>{function r(){return function(e,t,i){var a=mt(function(e){return e.add(4-e.isoWeekday(),"day")},"a"),s=((t=t.prototype).isoWeekYear=function(){return a(this).year()},t.isoWeek=function(e){var t,r,n;return this.$utils().u(e)?(r=a(this),n=this.isoWeekYear(),t=4-(n=(this.$u?i.utc:i)().year(n).startOf("year")).isoWeekday(),4<n.isoWeekday()&&(t+=7),n=n.add(t,"day"),r.diff(n,"week")+1):this.add(7*(e-this.isoWeek()),"day")},t.isoWeekday=function(e){return this.$utils().u(e)?this.day()||7:this.day(this.day()%7?e:e-7)},t.startOf);t.startOf=function(e,t){var r=this.$utils(),n=!!r.u(t)||t;return"isoweek"===r.p(e)?n?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):s.bind(this)(e,t)}}}"object"==typeof e&&typeof t<"u"?t.exports=r():"function"==typeof define&&define.amd?define(r):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_plugin_isoWeek=r()}),P7e=IFe((e,t)=>{function r(){var o={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},l=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1, Line truncated
.mermaid-main-font { .mermaid-main-font {
font-family: ${e.fontFamily}; font-family: ${e.fontFamily};
} }
@@ -1518,8 +1518,8 @@ Expecting `+A.join(", ")+", got '"+(this.terminals_[x]||x)+"'":"Parse error on l
fill: ${e.titleColor||e.textColor}; fill: ${e.titleColor||e.textColor};
font-family: ${e.fontFamily}; font-family: ${e.fontFamily};
} }
`,"getStyles"),uEe=hEe}),fEe={};OFe(fEe,{diagram:()=>mEe});var mEe,yEe,vEe,xEe,bEe,wEe,kEe,TEe,EEe,CEe=b(()=>{D7e(),dEe(),pEe(),gEe(),mEe={parser:R7e,db:rEe,renderer:cEe,styles:uEe}}),_Ee=b(()=>{oTe(),e(),yEe={parse:mt(async e=>{e=await nTe("info",e),D.debug(e)},"parse")}}),SEe=b(()=>{vEe={name:"mermaid",version:"11.12.1",description:"Markdown-ish syntax for generating flowcharts, mindmaps, sequence diagrams, class diagrams, gantt charts, git graphs and more.",type:"module",module:"./dist/mermaid.core.mjs",types:"./dist/mermaid.d.ts",exports:{".":{types:"./dist/mermaid.d.ts",import:"./dist/mermaid.core.mjs",default:"./dist/mermaid.core.mjs"},"./*":"./*"},keywords:["diagram","markdown","flowchart","sequence diagram","gantt","class diagram","git graph","mindmap","packet diagram","c4 diagram","er diagram","pie chart","pie diagram","quadrant chart","requirement diagram","graph"],scripts:{clean:"rimraf dist",dev:"pnpm -w dev","docs:code":"typedoc src/defaultConfig.ts src/config.ts src/mermaid.ts && prettier --write ./src/docs/config/setup","docs:build":"rimraf ../../docs && pnpm docs:code && pnpm docs:spellcheck && tsx scripts/docs.cli.mts","docs:verify":"pnpm docs:code && pnpm docs:spellcheck && tsx scripts/docs.cli.mts --verify","docs:pre:vitepress":"pnpm --filter ./src/docs prefetch && rimraf src/vitepress && pnpm docs:code && tsx scripts/docs.cli.mts --vitepress && pnpm --filter ./src/vitepress install --no-frozen-lockfile --ignore-scripts","docs:build:vitepress":"pnpm docs:pre:vitepress && (cd src/vitepress && pnpm run build) && cpy --flat src/docs/landing/ ./src/vitepress/.vitepress/dist/landing","docs:dev":'pnpm docs:pre:vitepress && concurrently "pnpm --filter ./src/vitepress dev" "tsx scripts/docs.cli.mts --watch --vitepress"',"docs:dev:docker":'pnpm docs:pre:vitepress && concurrently "pnpm --filter ./src/vitepress dev:docker" "tsx scripts/docs.cli.mts --watch --vitepress"',"docs:serve":"pnpm docs:build:vitepress && vitepress serve src/vitepress","docs:spellcheck":'cspell "src/docs/**/*.md"',"docs:release-version":"tsx scripts/update-release-version.mts","docs:verify-version":"tsx scripts/update-release-version.mts --verify","types:build-config":"tsx scripts/create-types-from-json-schema.mts","types:verify-config":"tsx scripts/create-types-from-json-schema.mts --verify",checkCircle:"npx madge --circular ./src",prepublishOnly:"pnpm docs:verify-version"},repository:{type:"git",url:"https://github.com/mermaid-js/mermaid"},author:"Knut Sveidqvist",license:"MIT",standard:{ignore:["**/parser/*.js","dist/**/*.js","cypress/**/*.js"],globals:["page"]},dependencies:{"@braintree/sanitize-url":"^7.1.1","@iconify/utils":"^3.0.1","@mermaid-js/parser":"workspace:^","@types/d3":"^7.4.3",cytoscape:"^3.29.3","cytoscape-cose-bilkent":"^4.1.0","cytoscape-fcose":"^2.2.0",d3:"^7.9.0","d3-sankey":"^0.12.3","dagre-d3-es":"7.0.13",dayjs:"^1.11.18",dompurify:"^3.2.5",katex:"^0.16.22",khroma:"^2.1.0","lodash-es":"^4.17.21",marked:"^16.2.1",roughjs:"^4.6.6",stylis:"^4.3.6","ts-dedent":"^2.2.0",uuid:"^11.1.0"},devDependencies:{"@adobe/jsonschema2md":"^8.0.5","@iconify/types":"^2.0.0","@types/cytoscape":"^3.21.9","@types/cytoscape-fcose":"^2.2.4","@types/d3-sankey":"^0.12.4","@types/d3-scale":"^4.0.9","@types/d3-scale-chromatic":"^3.1.0","@types/d3-selection":"^3.0.11","@types/d3-shape":"^3.1.7","@types/jsdom":"^21.1.7","@types/katex":"^0.16.7","@types/lodash-es":"^4.17.12","@types/micromatch":"^4.0.9","@types/stylis":"^4.2.7","@types/uuid":"^10.0.0",ajv:"^8.17.1",canvas:"^3.1.2",chokidar:"3.6.0",concurrently:"^9.1.2","csstree-validator":"^4.0.1",globby:"^14.1.0",jison:"^0.4.18","js-base64":"^3.7.8",jsdom:"^26.1.0","json-schema-to-typescript":"^15.0.4",micromatch:"^4.0.8","path-browserify":"^1.0.1",prettier:"^3.5.3",remark:"^15.0.1","remark-frontmatter":"^5.0.0","remark-gfm":"^4.0.1",rimraf:"^6.0.1","start-server-and-test":"^2.0.13","type-fest":"^4.35.0",typedoc:"^0.28.12","typedoc-plugin-markdown":"^4.8.1",typescript:"~5.7.3","unist-util-flatmap":"^1.0.0","unist-util-visit":"^5.0.0",vitepress:"^1.6.4","vitepress-plugin-search":"1.0.4-alpha.22"},files:["dist/","README.md"],publishConfig:{access:"public"}}}),AEe=b(()=>{SEe(),xEe={version:vEe.version+""},bEe=mt(()=>xEe.version,"getVersion"),wEe={getVersion:bEe}}),LEe=b(()=>{i6(),Tu(),kEe=mt(e=>{let t=O().securityLevel,r=H("body"),n;return"sandbox"===t&&(n=H("#i"+e).node()?.contentDocument??document,r=H(n.body)),r.select("#"+e)},"selectSvgElement")}),NEe=b(()=>{e(),LEe(),lh(),TEe=mt((e,t,r)=>{D.debug(`rendering info diagram `,"getStyles"),uEe=hEe}),mEe={};PFe(mEe,{diagram:()=>yEe});var yEe,vEe,xEe,bEe,wEe,kEe,TEe,EEe,CEe,SEe=b(()=>{D7e(),dEe(),gEe(),fEe(),yEe={parser:R7e,db:rEe,renderer:cEe,styles:uEe}}),_Ee=b(()=>{oTe(),e(),vEe={parse:mt(async e=>{e=await nTe("info",e),D.debug(e)},"parse")}}),AEe=b(()=>{xEe={name:"mermaid",version:"11.12.2",description:"Markdown-ish syntax for generating flowcharts, mindmaps, sequence diagrams, class diagrams, gantt charts, git graphs and more.",type:"module",module:"./dist/mermaid.core.mjs",types:"./dist/mermaid.d.ts",exports:{".":{types:"./dist/mermaid.d.ts",import:"./dist/mermaid.core.mjs",default:"./dist/mermaid.core.mjs"},"./*":"./*"},keywords:["diagram","markdown","flowchart","sequence diagram","gantt","class diagram","git graph","mindmap","packet diagram","c4 diagram","er diagram","pie chart","pie diagram","quadrant chart","requirement diagram","graph"],scripts:{clean:"rimraf dist",dev:"pnpm -w dev","docs:code":"typedoc src/defaultConfig.ts src/config.ts src/mermaid.ts && prettier --write ./src/docs/config/setup","docs:build":"rimraf ../../docs && pnpm docs:code && pnpm docs:spellcheck && tsx scripts/docs.cli.mts","docs:verify":"pnpm docs:code && pnpm docs:spellcheck && tsx scripts/docs.cli.mts --verify","docs:pre:vitepress":"pnpm --filter ./src/docs prefetch && rimraf src/vitepress && pnpm docs:code && tsx scripts/docs.cli.mts --vitepress && pnpm --filter ./src/vitepress install --no-frozen-lockfile --ignore-scripts","docs:build:vitepress":"pnpm docs:pre:vitepress && (cd src/vitepress && pnpm run build) && cpy --flat src/docs/landing/ ./src/vitepress/.vitepress/dist/landing","docs:dev":'pnpm docs:pre:vitepress && concurrently "pnpm --filter ./src/vitepress dev" "tsx scripts/docs.cli.mts --watch --vitepress"',"docs:dev:docker":'pnpm docs:pre:vitepress && concurrently "pnpm --filter ./src/vitepress dev:docker" "tsx scripts/docs.cli.mts --watch --vitepress"',"docs:serve":"pnpm docs:build:vitepress && vitepress serve src/vitepress","docs:spellcheck":'cspell "src/docs/**/*.md"',"docs:release-version":"tsx scripts/update-release-version.mts","docs:verify-version":"tsx scripts/update-release-version.mts --verify","types:build-config":"tsx scripts/create-types-from-json-schema.mts","types:verify-config":"tsx scripts/create-types-from-json-schema.mts --verify",checkCircle:"npx madge --circular ./src",prepublishOnly:"pnpm docs:verify-version"},repository:{type:"git",url:"https://github.com/mermaid-js/mermaid"},author:"Knut Sveidqvist",license:"MIT",standard:{ignore:["**/parser/*.js","dist/**/*.js","cypress/**/*.js"],globals:["page"]},dependencies:{"@braintree/sanitize-url":"^7.1.1","@iconify/utils":"^3.0.1","@mermaid-js/parser":"workspace:^","@types/d3":"^7.4.3",cytoscape:"^3.29.3","cytoscape-cose-bilkent":"^4.1.0","cytoscape-fcose":"^2.2.0",d3:"^7.9.0","d3-sankey":"^0.12.3","dagre-d3-es":"7.0.13",dayjs:"^1.11.18",dompurify:"^3.2.5",katex:"^0.16.22",khroma:"^2.1.0","lodash-es":"^4.17.21",marked:"^16.2.1",roughjs:"^4.6.6",stylis:"^4.3.6","ts-dedent":"^2.2.0",uuid:"^11.1.0"},devDependencies:{"@adobe/jsonschema2md":"^8.0.5","@iconify/types":"^2.0.0","@types/cytoscape":"^3.21.9","@types/cytoscape-fcose":"^2.2.4","@types/d3-sankey":"^0.12.4","@types/d3-scale":"^4.0.9","@types/d3-scale-chromatic":"^3.1.0","@types/d3-selection":"^3.0.11","@types/d3-shape":"^3.1.7","@types/jsdom":"^21.1.7","@types/katex":"^0.16.7","@types/lodash-es":"^4.17.12","@types/micromatch":"^4.0.9","@types/stylis":"^4.2.7","@types/uuid":"^10.0.0",ajv:"^8.17.1",canvas:"^3.1.2",chokidar:"3.6.0",concurrently:"^9.1.2","csstree-validator":"^4.0.1",globby:"^14.1.0",jison:"^0.4.18","js-base64":"^3.7.8",jsdom:"^26.1.0","json-schema-to-typescript":"^15.0.4",micromatch:"^4.0.8","path-browserify":"^1.0.1",prettier:"^3.5.3",remark:"^15.0.1","remark-frontmatter":"^5.0.0","remark-gfm":"^4.0.1",rimraf:"^6.0.1","start-server-and-test":"^2.0.13","type-fest":"^4.35.0",typedoc:"^0.28.12","typedoc-plugin-markdown":"^4.8.1",typescript:"~5.7.3","unist-util-flatmap":"^1.0.0","unist-util-visit":"^5.0.0",vitepress:"^1.6.4","vitepress-plugin-search":"1.0.4-alpha.22"},files:["dist/","README.md"],publishConfig:{access:"public"}}}),LEe=b(()=>{AEe(),bEe={version:xEe.version+""},wEe=mt(()=>bEe.version,"getVersion"),kEe={getVersion:wEe}}),NEe=b(()=>{i6(),Tu(),TEe=mt(e=>{let t=O().securityLevel,r=H("body"),n;return"sandbox"===t&&(n=H("#i"+e).node()?.contentDocument??document,r=H(n.body)),r.select("#"+e)},"selectSvgElement")}),IEe=b(()=>{e(),NEe(),lh(),EEe=mt((e,t,r)=>{D.debug(`rendering info diagram
`+e),e=kEe(t),Zc(e,100,400,!0),e.append("g").append("text").attr("x",100).attr("y",40).attr("class","version").attr("font-size",32).style("text-anchor","middle").text("v"+r)},"draw"),EEe={draw:TEe}}),IEe={};OFe(IEe,{diagram:()=>REe});var REe,MEe,DEe,OEe,PEe,BEe,$Ee,FEe,zEe,GEe,UEe,qEe,jEe,YEe,WEe,HEe,VEe,XEe,KEe,ZEe=b(()=>{_Ee(),AEe(),NEe(),REe={parser:yEe,db:wEe,renderer:EEe}}),QEe=b(()=>{e(),ku(),en(),BEe=Yt.pie,MEe={sections:new Map,showData:!1,config:BEe},DEe=MEe.sections,OEe=MEe.showData,PEe=structuredClone(BEe),BEe=mt(()=>structuredClone(PEe),"getConfig"),$Ee=mt(()=>{DEe=new Map,OEe=MEe.showData,fh()},"clear"),FEe=mt(({label:e,value:t})=>{if(t<0)throw new Error(`"${e}" has invalid value: ${t}. Negative values are not allowed in pie charts. All slice values must be >= 0.`);DEe.has(e)||(DEe.set(e,t),D.debug(`added new section: ${e}, with value: `+t))},"addSection"),zEe=mt(()=>DEe,"getSections"),GEe=mt(e=>{OEe=e},"setShowData"),UEe=mt(()=>OEe,"getShowData"),qEe={getConfig:BEe,clear:$Ee,setDiagramTitle:bh,getDiagramTitle:wh,setAccTitle:mh,getAccTitle:yh,setAccDescription:vh,getAccDescription:xh,addSection:FEe,getSections:zEe,setShowData:GEe,getShowData:UEe}}),JEe=b(()=>{oTe(),e(),uTe(),QEe(),jEe=mt((e,t)=>{lTe(e,t),t.setShowData(e.showData),e.sections.map(t.addSection)},"populateDb"),YEe={parse:mt(async e=>{e=await nTe("pie",e),D.debug(e),jEe(e,qEe)},"parse")}}),eCe=b(()=>{WEe=mt(e=>` `+e),e=TEe(t),Zc(e,100,400,!0),e.append("g").append("text").attr("x",100).attr("y",40).attr("class","version").attr("font-size",32).style("text-anchor","middle").text("v"+r)},"draw"),CEe={draw:EEe}}),REe={};PFe(REe,{diagram:()=>MEe});var MEe,DEe,OEe,PEe,BEe,$Ee,FEe,zEe,GEe,UEe,qEe,jEe,YEe,WEe,HEe,VEe,XEe,KEe,ZEe,QEe=b(()=>{_Ee(),LEe(),IEe(),MEe={parser:vEe,db:kEe,renderer:CEe}}),JEe=b(()=>{e(),ku(),en(),$Ee=Yt.pie,DEe={sections:new Map,showData:!1,config:$Ee},OEe=DEe.sections,PEe=DEe.showData,BEe=structuredClone($Ee),$Ee=mt(()=>structuredClone(BEe),"getConfig"),FEe=mt(()=>{OEe=new Map,PEe=DEe.showData,fh()},"clear"),zEe=mt(({label:e,value:t})=>{if(t<0)throw new Error(`"${e}" has invalid value: ${t}. Negative values are not allowed in pie charts. All slice values must be >= 0.`);OEe.has(e)||(OEe.set(e,t),D.debug(`added new section: ${e}, with value: `+t))},"addSection"),GEe=mt(()=>OEe,"getSections"),UEe=mt(e=>{PEe=e},"setShowData"),qEe=mt(()=>PEe,"getShowData"),jEe={getConfig:$Ee,clear:FEe,setDiagramTitle:bh,getDiagramTitle:wh,setAccTitle:mh,getAccTitle:yh,setAccDescription:vh,getAccDescription:xh,addSection:zEe,getSections:GEe,setShowData:UEe,getShowData:qEe}}),eCe=b(()=>{oTe(),e(),uTe(),JEe(),YEe=mt((e,t)=>{lTe(e,t),t.setShowData(e.showData),e.sections.map(t.addSection)},"populateDb"),WEe={parse:mt(async e=>{e=await nTe("pie",e),D.debug(e),YEe(e,jEe)},"parse")}}),tCe=b(()=>{HEe=mt(e=>`
.pieCircle{ .pieCircle{
stroke: ${e.pieStrokeColor}; stroke: ${e.pieStrokeColor};
stroke-width : ${e.pieStrokeWidth}; stroke-width : ${e.pieStrokeWidth};
@@ -1547,25 +1547,25 @@ Expecting `+A.join(", ")+", got '"+(this.terminals_[x]||x)+"'":"Parse error on l
font-family: ${e.fontFamily}; font-family: ${e.fontFamily};
font-size: ${e.pieLegendTextSize}; font-size: ${e.pieLegendTextSize};
} }
`,"getStyles"),HEe=WEe}),tCe=b(()=>{i6(),Tu(),e(),LEe(),lh(),i_(),VEe=mt(e=>{let t=[...e.values()].reduce((e,t)=>e+t,0),r=[...e.entries()].map(([e,t])=>({label:e,value:t})).filter(e=>1<=e.value/t*100).sort((e,t)=>t.value-e.value);return l3().value(e=>e.value)(r)},"createPieArcs"),XEe=mt((e,t,r,n)=>{D.debug(`rendering pie chart `,"getStyles"),VEe=HEe}),rCe=b(()=>{i6(),Tu(),e(),NEe(),lh(),iS(),XEe=mt(e=>{let t=[...e.values()].reduce((e,t)=>e+t,0),r=[...e.entries()].map(([e,t])=>({label:e,value:t})).filter(e=>1<=e.value/t*100).sort((e,t)=>t.value-e.value);return l3().value(e=>e.value)(r)},"createPieArcs"),KEe=mt((e,t,r,n)=>{D.debug(`rendering pie chart
`+e);let i=n.db,a=O(),s=_C(i.getConfig(),a.pie),o=kEe(t),l=o.append("g");l.attr("transform","translate(225,225)");var e=a.themeVariables,[n]=JC(e.pieOuterStrokeWidth);n??=2;let c=s.textPosition,h=Math.min(450,450)/2-40,u=W5().innerRadius(0).outerRadius(h),d=W5().innerRadius(h*c).outerRadius(h*c),p=(l.append("circle").attr("cx",0).attr("cy",0).attr("r",h+n/2).attr("class","pieOuterCircle"),i.getSections()),g=VEe(p),f=[e.pie1,e.pie2,e.pie3,e.pie4,e.pie5,e.pie6,e.pie7,e.pie8,e.pie9,e.pie10,e.pie11,e.pie12],m=0,y=(p.forEach(e=>{m+=e}),g.filter(e=>"0"!==(e.data.value/m*100).toFixed(0))),v=yx(f),x=(l.selectAll("mySlices").data(y).enter().append("path").attr("d",u).attr("fill",e=>v(e.data.label)).attr("class","pieCircle"),l.selectAll("mySlices").data(y).enter().append("text").text(e=>(e.data.value/m*100).toFixed(0)+"%").attr("transform",e=>"translate("+d.centroid(e)+")").style("text-anchor","middle").attr("class","slice"),l.append("text").text(i.getDiagramTitle()).attr("x",0).attr("y",-200).attr("class","pieTitleText"),[...p.entries()].map(([e,t])=>({label:e,value:t}))),b=l.selectAll(".legend").data(x).enter().append("g").attr("class","legend").attr("transform",(e,t)=>"translate(216,"+(22*t-22*x.length/2)+")");b.append("rect").attr("width",18).attr("height",18).style("fill",e=>v(e.label)).style("stroke",e=>v(e.label)),b.append("text").attr("x",22).attr("y",14).text(e=>i.getShowData()?e.label+` [${e.value}]`:e.label),t=512+Math.max(...b.selectAll("text").nodes().map(e=>e?.getBoundingClientRect().width??0)),o.attr("viewBox",`0 0 ${t} 450`),Zc(o,450,t,s.useMaxWidth)},"draw"),KEe={draw:XEe}}),rCe={};OFe(rCe,{diagram:()=>nCe});var nCe,iCe,aCe,sCe,oCe,lCe=b(()=>{JEe(),QEe(),eCe(),tCe(),nCe={parser:YEe,db:qEe,renderer:KEe,styles:HEe}}),cCe=b(()=>{function e(){this.yy={}}var t=mt(function(e,t,r,n){for(r=r||{},n=e.length;n--;r[e[n]]=t);return r},"o"),r=[1,3],n=[1,4],i=[1,5],a=[1,6],s=[1,7],P=[1,4,5,10,12,13,14,18,25,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],B=[1,4,5,10,12,13,14,18,25,28,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],o=[55,56,57],$=[2,36],l=[1,37],c=[1,36],h=[1,38],u=[1,35],d=[1,43],p=[1,41],F=[1,14],z=[1,23],G=[1,18],U=[1,19],q=[1,20],j=[1,21],Y=[1,22],W=[1,24],H=[1,25],V=[1,26],X=[1,27],K=[1,28],Z=[1,29],g=[1,32],f=[1,33],m=[1,34],y=[1,39],v=[1,40],x=[1,42],b=[1,44],w=[1,62],k=[1,61],T=[4,5,8,10,12,13,14,18,44,47,49,55,56,57,63,64,65,66,67],Q=[1,65],J=[1,66],ee=[1,67],te=[1,68],re=[1,69],ne=[1,70],ie=[1,71],ae=[1,72],se=[1,73],oe=[1,74],le=[1,75],ce=[1,76],E=[4,5,6,7,8,9,10,11,12,13,14,15,18],C=[1,90],_=[1,91],S=[1,92],A=[1,99],L=[1,93],N=[1,96],I=[1,94],R=[1,95],M=[1,97],D=[1,98],he=[1,102],ue=[10,55,56,57],O=[4,5,6,8,10,11,13,17,18,19,20,55,56,57],r={trace:mt(function(){},"trace"),yy:{},symbols_:{error:2,idStringToken:3,ALPHA:4,NUM:5,NODE_STRING:6,DOWN:7,MINUS:8,DEFAULT:9,COMMA:10,COLON:11,AMP:12,BRKT:13,MULT:14,UNICODE_TEXT:15,styleComponent:16,UNIT:17,SPACE:18,STYLE:19,PCT:20,idString:21,style:22,stylesOpt:23,classDefStatement:24,CLASSDEF:25,start:26,eol:27,QUADRANT:28,document:29,line:30,statement:31,axisDetails:32,quadrantDetails:33,points:34,title:35,title_value:36,acc_title:37,acc_title_value:38,acc_descr:39,acc_descr_value:40,acc_descr_multiline_value:41,section:42,text:43,point_start:44,point_x:45,point_y:46,class_name:47,"X-AXIS":48,"AXIS-TEXT-DELIMITER":49,"Y-AXIS":50,QUADRANT_1:51,QUADRANT_2:52,QUADRANT_3:53,QUADRANT_4:54,NEWLINE:55,SEMI:56,EOF:57,alphaNumToken:58,textNoTagsToken:59,STR:60,MD_STR:61,alphaNum:62,PUNCTUATION:63,PLUS:64,EQUALS:65,DOT:66,UNDERSCORE:67,$accept:0,$end:1},terminals_:{2:"error",4:"ALPHA",5:"NUM",6:"NODE_STRING",7:"DOWN",8:"MINUS",9:"DEFAULT",10:"COMMA",11:"COLON",12:"AMP",13:"BRKT",14:"MULT",15:"UNICODE_TEXT",17:"UNIT",18:"SPACE",19:"STYLE",20:"PCT",25:"CLASSDEF",28:"QUADRANT",35:"title",36:"title_value",37:"acc_title",38:"acc_title_value",39:"acc_descr",40:"acc_descr_value",41:"acc_descr_multiline_value",42:"section",44:"point_start",45:"point_x",46:"point_y",47:"class_name",48:"X-AXIS",49:"AXIS-TEXT-DELIMITER",50:"Y-AXIS",51:"QUADRANT_1",52:"QUADRANT_2",53:"QUADRANT_3",54:"QUADRANT_4",55:"NEWLINE",56:"SEMI",57:"EOF",60:"STR",61:"MD_STR",63:"PUNCTUATION",64:"PLUS",65:"EQUALS",66:"DOT",67:"UNDERSCORE"},productions_:[0,[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[21,1],[21,2],[22,1],[22,2],[23,1],[23,3],[24,5],[26,2],[26,2],[26,2],[29,0],[29,2],[30,2],[31,0],[31,1],[31,2],[31,1],[31,1],[31,1],[31,2],[31,2],[31,2],[31,1],[31,1],[34,4],[34,5],[34,5],[34,6],[32,4],[32,3],[32,2],[32,4],[32,3],[32,2],[33,2],[33,2],[33,2],[33,2],[27,1],[27,1],[27,1],[43,1],[43,2],[43,1],[43,1],[62,1],[62,2],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[59,1],[59,1],[59,1]],performAction:mt(function(e,t,r,n,i,a,s){var o=a.length-1;switch(i){case 23:this.$=a[o];break;case 24:this.$=a[o-1]+""+a[o];break;case 26:this.$=a[o-1]+a Line truncated `+e);let i=n.db,a=O(),s=SC(i.getConfig(),a.pie),o=TEe(t),l=o.append("g");l.attr("transform","translate(225,225)");var e=a.themeVariables,[n]=JC(e.pieOuterStrokeWidth);n??=2;let c=s.textPosition,h=Math.min(450,450)/2-40,u=W5().innerRadius(0).outerRadius(h),d=W5().innerRadius(h*c).outerRadius(h*c),p=(l.append("circle").attr("cx",0).attr("cy",0).attr("r",h+n/2).attr("class","pieOuterCircle"),i.getSections()),g=XEe(p),f=[e.pie1,e.pie2,e.pie3,e.pie4,e.pie5,e.pie6,e.pie7,e.pie8,e.pie9,e.pie10,e.pie11,e.pie12],m=0,y=(p.forEach(e=>{m+=e}),g.filter(e=>"0"!==(e.data.value/m*100).toFixed(0))),v=yx(f),x=(l.selectAll("mySlices").data(y).enter().append("path").attr("d",u).attr("fill",e=>v(e.data.label)).attr("class","pieCircle"),l.selectAll("mySlices").data(y).enter().append("text").text(e=>(e.data.value/m*100).toFixed(0)+"%").attr("transform",e=>"translate("+d.centroid(e)+")").style("text-anchor","middle").attr("class","slice"),l.append("text").text(i.getDiagramTitle()).attr("x",0).attr("y",-200).attr("class","pieTitleText"),[...p.entries()].map(([e,t])=>({label:e,value:t}))),b=l.selectAll(".legend").data(x).enter().append("g").attr("class","legend").attr("transform",(e,t)=>"translate(216,"+(22*t-22*x.length/2)+")");b.append("rect").attr("width",18).attr("height",18).style("fill",e=>v(e.label)).style("stroke",e=>v(e.label)),b.append("text").attr("x",22).attr("y",14).text(e=>i.getShowData()?e.label+` [${e.value}]`:e.label),t=512+Math.max(...b.selectAll("text").nodes().map(e=>e?.getBoundingClientRect().width??0)),o.attr("viewBox",`0 0 ${t} 450`),Zc(o,450,t,s.useMaxWidth)},"draw"),ZEe={draw:KEe}}),nCe={};PFe(nCe,{diagram:()=>iCe});var iCe,aCe,sCe,oCe,lCe,cCe=b(()=>{eCe(),JEe(),tCe(),rCe(),iCe={parser:WEe,db:jEe,renderer:ZEe,styles:VEe}}),hCe=b(()=>{function e(){this.yy={}}var t=mt(function(e,t,r,n){for(r=r||{},n=e.length;n--;r[e[n]]=t);return r},"o"),r=[1,3],n=[1,4],i=[1,5],a=[1,6],s=[1,7],P=[1,4,5,10,12,13,14,18,25,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],B=[1,4,5,10,12,13,14,18,25,28,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],o=[55,56,57],$=[2,36],l=[1,37],c=[1,36],h=[1,38],u=[1,35],d=[1,43],p=[1,41],F=[1,14],z=[1,23],G=[1,18],U=[1,19],q=[1,20],j=[1,21],Y=[1,22],W=[1,24],H=[1,25],V=[1,26],X=[1,27],K=[1,28],Z=[1,29],g=[1,32],f=[1,33],m=[1,34],y=[1,39],v=[1,40],x=[1,42],b=[1,44],w=[1,62],k=[1,61],T=[4,5,8,10,12,13,14,18,44,47,49,55,56,57,63,64,65,66,67],Q=[1,65],J=[1,66],ee=[1,67],te=[1,68],re=[1,69],ne=[1,70],ie=[1,71],ae=[1,72],se=[1,73],oe=[1,74],le=[1,75],ce=[1,76],E=[4,5,6,7,8,9,10,11,12,13,14,15,18],C=[1,90],S=[1,91],_=[1,92],A=[1,99],L=[1,93],N=[1,96],I=[1,94],R=[1,95],M=[1,97],D=[1,98],he=[1,102],ue=[10,55,56,57],O=[4,5,6,8,10,11,13,17,18,19,20,55,56,57],r={trace:mt(function(){},"trace"),yy:{},symbols_:{error:2,idStringToken:3,ALPHA:4,NUM:5,NODE_STRING:6,DOWN:7,MINUS:8,DEFAULT:9,COMMA:10,COLON:11,AMP:12,BRKT:13,MULT:14,UNICODE_TEXT:15,styleComponent:16,UNIT:17,SPACE:18,STYLE:19,PCT:20,idString:21,style:22,stylesOpt:23,classDefStatement:24,CLASSDEF:25,start:26,eol:27,QUADRANT:28,document:29,line:30,statement:31,axisDetails:32,quadrantDetails:33,points:34,title:35,title_value:36,acc_title:37,acc_title_value:38,acc_descr:39,acc_descr_value:40,acc_descr_multiline_value:41,section:42,text:43,point_start:44,point_x:45,point_y:46,class_name:47,"X-AXIS":48,"AXIS-TEXT-DELIMITER":49,"Y-AXIS":50,QUADRANT_1:51,QUADRANT_2:52,QUADRANT_3:53,QUADRANT_4:54,NEWLINE:55,SEMI:56,EOF:57,alphaNumToken:58,textNoTagsToken:59,STR:60,MD_STR:61,alphaNum:62,PUNCTUATION:63,PLUS:64,EQUALS:65,DOT:66,UNDERSCORE:67,$accept:0,$end:1},terminals_:{2:"error",4:"ALPHA",5:"NUM",6:"NODE_STRING",7:"DOWN",8:"MINUS",9:"DEFAULT",10:"COMMA",11:"COLON",12:"AMP",13:"BRKT",14:"MULT",15:"UNICODE_TEXT",17:"UNIT",18:"SPACE",19:"STYLE",20:"PCT",25:"CLASSDEF",28:"QUADRANT",35:"title",36:"title_value",37:"acc_title",38:"acc_title_value",39:"acc_descr",40:"acc_descr_value",41:"acc_descr_multiline_value",42:"section",44:"point_start",45:"point_x",46:"point_y",47:"class_name",48:"X-AXIS",49:"AXIS-TEXT-DELIMITER",50:"Y-AXIS",51:"QUADRANT_1",52:"QUADRANT_2",53:"QUADRANT_3",54:"QUADRANT_4",55:"NEWLINE",56:"SEMI",57:"EOF",60:"STR",61:"MD_STR",63:"PUNCTUATION",64:"PLUS",65:"EQUALS",66:"DOT",67:"UNDERSCORE"},productions_:[0,[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[21,1],[21,2],[22,1],[22,2],[23,1],[23,3],[24,5],[26,2],[26,2],[26,2],[29,0],[29,2],[30,2],[31,0],[31,1],[31,2],[31,1],[31,1],[31,1],[31,2],[31,2],[31,2],[31,1],[31,1],[34,4],[34,5],[34,5],[34,6],[32,4],[32,3],[32,2],[32,4],[32,3],[32,2],[33,2],[33,2],[33,2],[33,2],[27,1],[27,1],[27,1],[43,1],[43,2],[43,1],[43,1],[62,1],[62,2],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[59,1],[59,1],[59,1]],performAction:mt(function(e,t,r,n,i,a,s){var o=a.length-1;switch(i){case 23:this.$=a[o];break;case 24:this.$=a[o-1]+""+a[o];break;case 26:this.$=a[o-1]+a Line truncated
`+g.showPosition()+` `+g.showPosition()+`
Expecting `+A.join(", ")+", got '"+(this.terminals_[x]||x)+"'":"Parse error on line "+(c+1)+": Unexpected "+(x==d?"end of input":"'"+(this.terminals_[x]||x)+"'"),this.parseError(S,{text:g.match,token:this.terminals_[x]||x,line:g.yylineno,loc:m,expected:A})}if(k[0]instanceof Array&&1<k.length)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+x);switch(k[0]){case 1:n.push(x),a.push(g.yytext),s.push(g.yylloc),n.push(k[1]),x=null,b?(x=b,b=null):(h=g.yyleng,l=g.yytext,c=g.yylineno,m=g.yylloc,0<u&&u--);break;case 2:if(E=this.productions_[k[1]][1],_.$=a[a.length-E],_._$={first_line:s[s.length-(E||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(E||1)].first_column,last_column:s[s.length-1].last_column},y&&(_._$.range=[s[s.length-(E||1)].range[0],s[s.length-1].range[1]]),typeof(C=this.performAction.apply(_,[l,h,c,f.yy,k[1],a,s].concat(p)))<"u")return C;E&&(n=n.slice(0,-1*E*2),a=a.slice(0,-1*E),s=s.slice(0,-1*E)),n.push(this.productions_[k[1]][0]),a.push(_.$),s.push(_._$),C=o[n[n.length-2]][n[n.length-1]],n.push(C);break;case 3:return!0}}return!0},"parse")},n={EOF:1,parseError:mt(function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},"parseError"),setInput:mt(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:mt(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},"input"),unput:mt(function(e){var t=e.length,r=e.split(/(?:\r\n?|\n)/g),e=(this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t,this.match.split(/(?:\r\n?|\n)/g)),n=(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),r.length-1&&(this.yylineno-=r.length-1),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:r?(r.length===e.length?this.yylloc.first_column:0)+e[e.length-r.length].length-r[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[n[0],n[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},"unput"),more:mt(function(){return this._more=!0,this},"more"),reject:mt(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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). Expecting `+A.join(", ")+", got '"+(this.terminals_[x]||x)+"'":"Parse error on line "+(c+1)+": Unexpected "+(x==d?"end of input":"'"+(this.terminals_[x]||x)+"'"),this.parseError(_,{text:g.match,token:this.terminals_[x]||x,line:g.yylineno,loc:m,expected:A})}if(k[0]instanceof Array&&1<k.length)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+x);switch(k[0]){case 1:n.push(x),a.push(g.yytext),s.push(g.yylloc),n.push(k[1]),x=null,b?(x=b,b=null):(h=g.yyleng,l=g.yytext,c=g.yylineno,m=g.yylloc,0<u&&u--);break;case 2:if(E=this.productions_[k[1]][1],S.$=a[a.length-E],S._$={first_line:s[s.length-(E||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(E||1)].first_column,last_column:s[s.length-1].last_column},y&&(S._$.range=[s[s.length-(E||1)].range[0],s[s.length-1].range[1]]),typeof(C=this.performAction.apply(S,[l,h,c,f.yy,k[1],a,s].concat(p)))<"u")return C;E&&(n=n.slice(0,-1*E*2),a=a.slice(0,-1*E),s=s.slice(0,-1*E)),n.push(this.productions_[k[1]][0]),a.push(S.$),s.push(S._$),C=o[n[n.length-2]][n[n.length-1]],n.push(C);break;case 3:return!0}}return!0},"parse")},n={EOF:1,parseError:mt(function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},"parseError"),setInput:mt(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:mt(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},"input"),unput:mt(function(e){var t=e.length,r=e.split(/(?:\r\n?|\n)/g),e=(this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t,this.match.split(/(?:\r\n?|\n)/g)),n=(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),r.length-1&&(this.yylineno-=r.length-1),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:r?(r.length===e.length?this.yylloc.first_column:0)+e[e.length-r.length].length-r[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[n[0],n[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},"unput"),more:mt(function(){return this._more=!0,this},"more"),reject:mt(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:mt(function(e){this.unput(this.match.slice(e))},"less"),pastInput:mt(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(20<e.length?"...":"")+e.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:mt(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(20<e.length?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:mt(function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+` `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:mt(function(e){this.unput(this.match.slice(e))},"less"),pastInput:mt(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(20<e.length?"...":"")+e.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:mt(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(20<e.length?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:mt(function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+`
`+t+"^"},"showPosition"),test_match:mt(function(e,t){var r,n;if(this.options.backtrack_lexer&&(n={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)&&(n.yylloc.range=this.yylloc.range.slice(0)),(r=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],r=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),r)return r;if(this._backtrack)for(var i in n)this[i]=n[i];return!1},"test_match"),next:mt(function(){if(this.done)return this.EOF;var e,t,r,n;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;a<i.length;a++)if((r=this._input.match(this.rules[i[a]]))&&(!t||r[0].length>t[0].length)){if(t=r,n=a,this.options.backtrack_lexer){if(!1!==(e=this.test_match(r,i[a])))return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,i[n]))&&e:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. `+t+"^"},"showPosition"),test_match:mt(function(e,t){var r,n;if(this.options.backtrack_lexer&&(n={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)&&(n.yylloc.range=this.yylloc.range.slice(0)),(r=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],r=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),r)return r;if(this._backtrack)for(var i in n)this[i]=n[i];return!1},"test_match"),next:mt(function(){if(this.done)return this.EOF;var e,t,r,n;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;a<i.length;a++)if((r=this._input.match(this.rules[i[a]]))&&(!t||r[0].length>t[0].length)){if(t=r,n=a,this.options.backtrack_lexer){if(!1!==(e=this.test_match(r,i[a])))return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,i[n]))&&e:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:mt(function(){return this.next()||this.lex()},"lex"),begin:mt(function(e){this.conditionStack.push(e)},"begin"),popState:mt(function(){return 0<this.conditionStack.length-1?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:mt(function(){return(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]]:this.conditions.INITIAL).rules},"_currentRules"),topState:mt(function(e){return 0<=(e=this.conditionStack.length-1-Math.abs(e||0))?this.conditionStack[e]:"INITIAL"},"topState"),pushState:mt(function(e){this.begin(e)},"pushState"),stateStackSize:mt(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:mt(function(e,t,r,n){switch(r){case 0:case 1:break;case 2:return 55;case 3:break;case 4:return this.begin("title"),35;case 5:return this.popState(),"title_value";case 6:return this.begin("acc_title"),37;case 7:return this.popState(),"acc_title_value";case 8:return this.begin("acc_descr"),39;case 9:return this.popState(),"acc_descr_value";case 10:this.begin("acc_descr_multiline");break;case 11:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:return 48;case 14:return 50;case 15:return 49;case 16:return 51;case 17:return 52;case 18:return 53;case 19:return 54;case 20:return 25;case 21:this.begin("md_string");break;case 22:return"MD_STR";case 23:this.popState();break;case 24:this.begin("string");break;case 25:this.popState();break;case 26:return"STR";case 27:this.begin("class_name");break;case 28:return this.popState(),47;case 29:return this.begin("point_start"),44;case 30:return this.begin("point_x"),45;case 31:this.popState();break;case 32:this.popState(),this.begin("point_y");break;case 33:return this.popState(),46;case 34:return 28;case 35:return 4;case 36:return 11;case 37:return 64;case 38:return 10;case 39:case 40:return 65;case 41:return 14;case 42:return 13;case 43:return 67;case 44:return 66;case 45:return 12;case 46:return 8;case 47:return 5;case 48:return 18;case 49:return 56;case 50:return 63;case 51:return 57}},"anonymous"),rules:[/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:title\b)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?: *x-axis *)/i,/^(?: *y-axis *)/i,/^(?: *--+> *)/i,/^(?: *quadrant-1 *)/i,/^(?: *quadrant-2 *)/i,/^(?: *quadrant-3 *)/i,/^(?: *quadrant-4 *)/i,/^(?:classDef\b)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?::::)/i,/^(?:^\w+)/i,/^(?:\s*:\s*\[\s*)/i,/^(?:(1)|(0(.\d+)?))/i,/^(?:\s*\] *)/i,/^(?:\s*,\s*)/i,/^(?:(1)|(0(.\d+)?))/i,/^(?: *quadrantChart *)/i,/^(?:[A-Za-z]+)/i,/^(?::)/i,/^(?:\+)/i,/^(?:,)/i,/^(?:=)/i,/^(?:=)/i,/^(?:\*)/i,/^(?:#)/i,/^(?:[\_])/i,/^(?:\.)/i,/^(?:&)/i,/^(?:-)/i,/^(?:[0-9]+)/i,/^(?:\s)/i,/^(?:;)/i,/^(?:[!"#$%&'*+,-.`?\\_/])/i,/^(?:$)/i],conditions:{class_name:{rules:[28],inclusive:!1},point_y:{rules:[33],inclusive:!1},point_x:{rules:[32],inclusive:!1},point_start:{rules:[30,31],inclusive:!1},acc_descr_multiline:{rules:[11,12],inclusive:!1},acc_descr:{rules:[9],inclusive:!1},acc_title:{rules:[7],inclusive:!1},title:{rules:[5],inclusive:!1},md_string:{rules:[22,23],inclusive:!1},string:{rules:[25,26],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,6,8,10,13,14,15,16,17,18,19,20,21,24,27,29,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51],inclusive:!0}}};r.lexer=n,mt(e,"Parser"),(iCe=new((e.prototype=r).Parser=e)).parser=iCe,aCe=iCe}),hCe=b(()=>{i6(),en(),e(),Xr(),sCe=Ot(),oCe=class{constructor(){this.classes=new Map,this.config=this.getDefaultConfig(),this.themeConfig=this.getDefaultThemeConfig(),this.data=this.getDefaultData()}static{mt(this,"QuadrantBuilder")}getDefaultData(){return{titleText:"",quadrant1Text:"",quadrant2Text:"",quadrant3Text:"",quadrant4Text:"",xAxisLeftText:"",xAxisRightText:"",yAxisBottomText:"",yAxisTopText:"",points:[]}}getDefaultConfig(){return{showXAxis:!0,showYAxis:!0,showTitle:!0,chartHeight:Yt.quadrantChart?.chartWidth||500,chartWidth:Yt.quadrantChart?.chartHeight||500,titlePadding:Yt.quadrantChart?.titlePadding||10,titleFontSize:Yt.quadrantChart?.titleFontSize||20,quadrantPadding:Yt.quadrantChart?.quadrantPadding||5,xAxisLabelPadding:Yt.quadrantChart?.xAxisLabelPadding||5,yAxisLabelPadding:Yt.quadrantChart?.yAxisLabelPadding||5,xAxisLabelFontSize:Yt.quadrantChart?.xAxisLabelFontSize||16,yAxisLabelFontSize:Yt.quadrantChart?.yAxisLabelFontSize||16,quadrantLabelFontSize:Yt.quadrantChart?.quadrantLabelFontSize||16,quadrantTextTopPadding:Yt.quadrantChart?.quadrantTextTopPadding||5,pointTextPadding:Yt.quadrantChart?.pointTextPadding||5,pointLabelFontSize:Yt.quadrantChart?.pointLabelFontSize||12,pointRadius:Yt.quadrantChart?.pointRadius||5,xAxisPosition:Yt.quadrantChartLine truncated `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:mt(function(){return this.next()||this.lex()},"lex"),begin:mt(function(e){this.conditionStack.push(e)},"begin"),popState:mt(function(){return 0<this.conditionStack.length-1?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:mt(function(){return(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]]:this.conditions.INITIAL).rules},"_currentRules"),topState:mt(function(e){return 0<=(e=this.conditionStack.length-1-Math.abs(e||0))?this.conditionStack[e]:"INITIAL"},"topState"),pushState:mt(function(e){this.begin(e)},"pushState"),stateStackSize:mt(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:mt(function(e,t,r,n){switch(r){case 0:case 1:break;case 2:return 55;case 3:break;case 4:return this.begin("title"),35;case 5:return this.popState(),"title_value";case 6:return this.begin("acc_title"),37;case 7:return this.popState(),"acc_title_value";case 8:return this.begin("acc_descr"),39;case 9:return this.popState(),"acc_descr_value";case 10:this.begin("acc_descr_multiline");break;case 11:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:return 48;case 14:return 50;case 15:return 49;case 16:return 51;case 17:return 52;case 18:return 53;case 19:return 54;case 20:return 25;case 21:this.begin("md_string");break;case 22:return"MD_STR";case 23:this.popState();break;case 24:this.begin("string");break;case 25:this.popState();break;case 26:return"STR";case 27:this.begin("class_name");break;case 28:return this.popState(),47;case 29:return this.begin("point_start"),44;case 30:return this.begin("point_x"),45;case 31:this.popState();break;case 32:this.popState(),this.begin("point_y");break;case 33:return this.popState(),46;case 34:return 28;case 35:return 4;case 36:return 11;case 37:return 64;case 38:return 10;case 39:case 40:return 65;case 41:return 14;case 42:return 13;case 43:return 67;case 44:return 66;case 45:return 12;case 46:return 8;case 47:return 5;case 48:return 18;case 49:return 56;case 50:return 63;case 51:return 57}},"anonymous"),rules:[/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:title\b)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?: *x-axis *)/i,/^(?: *y-axis *)/i,/^(?: *--+> *)/i,/^(?: *quadrant-1 *)/i,/^(?: *quadrant-2 *)/i,/^(?: *quadrant-3 *)/i,/^(?: *quadrant-4 *)/i,/^(?:classDef\b)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?::::)/i,/^(?:^\w+)/i,/^(?:\s*:\s*\[\s*)/i,/^(?:(1)|(0(.\d+)?))/i,/^(?:\s*\] *)/i,/^(?:\s*,\s*)/i,/^(?:(1)|(0(.\d+)?))/i,/^(?: *quadrantChart *)/i,/^(?:[A-Za-z]+)/i,/^(?::)/i,/^(?:\+)/i,/^(?:,)/i,/^(?:=)/i,/^(?:=)/i,/^(?:\*)/i,/^(?:#)/i,/^(?:[\_])/i,/^(?:\.)/i,/^(?:&)/i,/^(?:-)/i,/^(?:[0-9]+)/i,/^(?:\s)/i,/^(?:;)/i,/^(?:[!"#$%&'*+,-.`?\\_/])/i,/^(?:$)/i],conditions:{class_name:{rules:[28],inclusive:!1},point_y:{rules:[33],inclusive:!1},point_x:{rules:[32],inclusive:!1},point_start:{rules:[30,31],inclusive:!1},acc_descr_multiline:{rules:[11,12],inclusive:!1},acc_descr:{rules:[9],inclusive:!1},acc_title:{rules:[7],inclusive:!1},title:{rules:[5],inclusive:!1},md_string:{rules:[22,23],inclusive:!1},string:{rules:[25,26],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,6,8,10,13,14,15,16,17,18,19,20,21,24,27,29,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51],inclusive:!0}}};r.lexer=n,mt(e,"Parser"),(aCe=new((e.prototype=r).Parser=e)).parser=aCe,sCe=aCe}),uCe=b(()=>{i6(),en(),e(),Xr(),oCe=Ot(),lCe=class{constructor(){this.classes=new Map,this.config=this.getDefaultConfig(),this.themeConfig=this.getDefaultThemeConfig(),this.data=this.getDefaultData()}static{mt(this,"QuadrantBuilder")}getDefaultData(){return{titleText:"",quadrant1Text:"",quadrant2Text:"",quadrant3Text:"",quadrant4Text:"",xAxisLeftText:"",xAxisRightText:"",yAxisBottomText:"",yAxisTopText:"",points:[]}}getDefaultConfig(){return{showXAxis:!0,showYAxis:!0,showTitle:!0,chartHeight:Yt.quadrantChart?.chartWidth||500,chartWidth:Yt.quadrantChart?.chartHeight||500,titlePadding:Yt.quadrantChart?.titlePadding||10,titleFontSize:Yt.quadrantChart?.titleFontSize||20,quadrantPadding:Yt.quadrantChart?.quadrantPadding||5,xAxisLabelPadding:Yt.quadrantChart?.xAxisLabelPadding||5,yAxisLabelPadding:Yt.quadrantChart?.yAxisLabelPadding||5,xAxisLabelFontSize:Yt.quadrantChart?.xAxisLabelFontSize||16,yAxisLabelFontSize:Yt.quadrantChart?.yAxisLabelFontSize||16,quadrantLabelFontSize:Yt.quadrantChart?.quadrantLabelFontSize||16,quadrantTextTopPadding:Yt.quadrantChart?.quadrantTextTopPadding||5,pointTextPadding:Yt.quadrantChart?.pointTextPadding||5,pointLabelFontSize:Yt.quadrantChart?.pointLabelFontSize||12,pointRadius:Yt.quadrantChart?.pointRadius||5,xAxisPosition:Yt.quadrantChartLine truncated
`+e);let l=o.securityLevel,c;"sandbox"===l&&(c=H("#i"+t));var t=(e=H("sandbox"===l?c.nodes()[0].contentDocument.body:"body").select(`[id="${t}"]`)).append("g").attr("class","main"),h=o.quadrantChart?.chartWidth??500,u=o.quadrantChart?.chartHeight??500,o=(Zc(e,u,h,o.quadrantChart?.useMaxWidth??!0),e.attr("viewBox","0 0 "+h+" "+u),n.db.setHeight(u),n.db.setWidth(h),n.db.getQuadrantData()),e=t.append("g").attr("class","quadrants"),u=t.append("g").attr("class","border"),h=t.append("g").attr("class","data-points"),n=t.append("g").attr("class","labels"),t=t.append("g").attr("class","title");o.title&&t.append("text").attr("x",0).attr("y",0).attr("fill",o.title.fill).attr("font-size",o.title.fontSize).attr("dominant-baseline",i(o.title.horizontalPos)).attr("text-anchor",a(o.title.verticalPos)).attr("transform",s(o.title)).text(o.title.text),o.borderLines&&u.selectAll("line").data(o.borderLines).enter().append("line").attr("x1",e=>e.x1).attr("y1",e=>e.y1).attr("x2",e=>e.x2).attr("y2",e=>e.y2).style("stroke",e=>e.strokeFill).style("stroke-width",e=>e.strokeWidth),(t=e.selectAll("g.quadrant").data(o.quadrants).enter().append("g").attr("class","quadrant")).append("rect").attr("x",e=>e.x).attr("y",e=>e.y).attr("width",e=>e.width).attr("height",e=>e.height).attr("fill",e=>e.fill),t.append("text").attr("x",0).attr("y",0).attr("fill",e=>e.text.fill).attr("font-size",e=>e.text.fontSize).attr("dominant-baseline",e=>i(e.text.horizontalPos)).attr("text-anchor",e=>a(e.text.verticalPos)).attr("transform",e=>s(e.text)).text(e=>e.text.text),n.selectAll("g.label").data(o.axisLabels).enter().append("g").attr("class","label").append("text").attr("x",0).attr("y",0).text(e=>e.text).attr("fill",e=>e.fill).attr("font-size",e=>e.fontSize).attr("dominant-baseline",e=>i(e.horizontalPos)).attr("text-anchor",e=>a(e.verticalPos)).attr("transform",e=>s(e)),(u=h.selectAll("g.data-point").data(o.points).enter().append("g").attr("class","data-point")).append("circle").attr("cx",e=>e.x).attr("cy",e=>e.y).attr("r",e=>e.radius).attr("fill",e=>e.fill).attr("stroke",e=>e.strokeColor).attr("stroke-width",e=>e.strokeWidth),u.append("text").attr("x",0).attr("y",0).text(e=>e.text.text).attr("fill",e=>e.text.fill).attr("font-size",e=>e.text.fontSize).attr("dominant-baseline",e=>i(e.text.horizontalPos)).attr("text-anchor",e=>a(e.text.verticalPos)).attr("transform",e=>s(e.text))},"draw"),PCe={draw:OCe}}),FCe={};OFe(FCe,{diagram:()=>zCe});var zCe,GCe,UCe,qCe=b(()=>{cCe(),BCe(),$Ce(),zCe={parser:aCe,db:DCe,renderer:PCe,styles:mt(()=>"","styles")}}),jCe=b(()=>{function e(){this.yy={}}var t=mt(function(e,t,r,n){for(r=r||{},n=e.length;n--;r[e[n]]=t);return r},"o"),r=[1,10,12,14,16,18,19,21,23],n=[2,6],i=[1,3],a=[1,5],s=[1,6],o=[1,7],l=[1,5,10,12,14,16,18,19,21,23,34,35,36],c=[1,25],h=[1,26],u=[1,28],d=[1,29],p=[1,30],g=[1,31],f=[1,32],m=[1,33],y=[1,34],v=[1,35],x=[1,36],b=[1,37],w=[1,43],k=[1,42],T=[1,47],E=[1,50],C=[1,10,12,14,16,18,19,21,23,34,35,36],_=[1,10,12,14,16,18,19,21,23,24,26,27,28,34,35,36],S=[1,10,12,14,16,18,19,21,23,24,26,27,28,34,35,36,41,42,43,44,45,46,47,48,49,50],A=[1,64],n={trace:mt(function(){},"trace"),yy:{},symbols_:{error:2,start:3,eol:4,XYCHART:5,chartConfig:6,document:7,CHART_ORIENTATION:8,statement:9,title:10,text:11,X_AXIS:12,parseXAxis:13,Y_AXIS:14,parseYAxis:15,LINE:16,plotData:17,BAR:18,acc_title:19,acc_title_value:20,acc_descr:21,acc_descr_value:22,acc_descr_multiline_value:23,SQUARE_BRACES_START:24,commaSeparatedNumbers:25,SQUARE_BRACES_END:26,NUMBER_WITH_DECIMAL:27,COMMA:28,xAxisData:29,bandData:30,ARROW_DELIMITER:31,commaSeparatedTexts:32,yAxisData:33,NEWLINE:34,SEMI:35,EOF:36,alphaNum:37,STR:38,MD_STR:39,alphaNumToken:40,AMP:41,NUM:42,ALPHA:43,PLUS:44,EQUALS:45,MULT:46,DOT:47,BRKT:48,MINUS:49,UNDERSCORE:50,$accept:0,$end:1},terminals_:{2:"error",5:"XYCHART",8:"CHART_ORIENTATION",10:"title",12:"X_AXIS",14:"Y_AXIS",16:"LINE",18:"BAR",19:"acc_title",20:"acc_title_value",21:"acc_descr",22:"acc_descr_value",23:"acc_descr_multiline_value",24:"SQUARE_BRACES_START",26:"SQUARE_BRACES_END",27:"NUMBER_WITH_DECIMAL",28:"COMMA",31:"ARROW_DELIMITER",34:"NEWLINE",35:"SEMI",36:"EOF",38:"STR",39:"MD_STR",41:"AMP",42:"NUM",43:"ALPHA",44:"PLUS",45:"EQUALS",46:"MULT",47:"DOT",48:"BRKT",49:"MINUS",50:"UNDERSCORE"},productions_:[0,[3,2],[3,3],[3,2],[3,1],[6,1],[7,0],[7,2],[9,2],[9,2],[9,2],[9,2],[9,2],[9,3],[9,2],[9,3],[9,2],[9,2],[9,1],[17,3],[25,3],[25,1],[13,1],[13,2],[13,1],[29,1],[29,3],[30,3],[32,3],[32,1],[15,1],[15,2],[15,1],[33,3],[4,1],[4,1],[4,1],[11,1],[11,1],[11,1],[37,1],[37,2],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1]],performAction:mt(function(e,t,r,n,i,a,s){var o=a.length-1;switch(i){case 5:n.setOrientation(a[o]);break;case 9:n.setDiagramTitle(a[o].text.trim());break;case 12:n.setLineData({text:"",type:"text"},a[o]);break;case 13:n.setLineData(a[o-1],a[o]);break;case 14:n.setBarData({text:"",type:"text"},a[o]);break;case 15:n.setBarData(a[o-1],a[o]);break;case 16:this.$=a[o].trim(),n.setAccTitle(this.$);b Line truncated `+e);let l=o.securityLevel,c;"sandbox"===l&&(c=H("#i"+t));var t=(e=H("sandbox"===l?c.nodes()[0].contentDocument.body:"body").select(`[id="${t}"]`)).append("g").attr("class","main"),h=o.quadrantChart?.chartWidth??500,u=o.quadrantChart?.chartHeight??500,o=(Zc(e,u,h,o.quadrantChart?.useMaxWidth??!0),e.attr("viewBox","0 0 "+h+" "+u),n.db.setHeight(u),n.db.setWidth(h),n.db.getQuadrantData()),e=t.append("g").attr("class","quadrants"),u=t.append("g").attr("class","border"),h=t.append("g").attr("class","data-points"),n=t.append("g").attr("class","labels"),t=t.append("g").attr("class","title");o.title&&t.append("text").attr("x",0).attr("y",0).attr("fill",o.title.fill).attr("font-size",o.title.fontSize).attr("dominant-baseline",i(o.title.horizontalPos)).attr("text-anchor",a(o.title.verticalPos)).attr("transform",s(o.title)).text(o.title.text),o.borderLines&&u.selectAll("line").data(o.borderLines).enter().append("line").attr("x1",e=>e.x1).attr("y1",e=>e.y1).attr("x2",e=>e.x2).attr("y2",e=>e.y2).style("stroke",e=>e.strokeFill).style("stroke-width",e=>e.strokeWidth),(t=e.selectAll("g.quadrant").data(o.quadrants).enter().append("g").attr("class","quadrant")).append("rect").attr("x",e=>e.x).attr("y",e=>e.y).attr("width",e=>e.width).attr("height",e=>e.height).attr("fill",e=>e.fill),t.append("text").attr("x",0).attr("y",0).attr("fill",e=>e.text.fill).attr("font-size",e=>e.text.fontSize).attr("dominant-baseline",e=>i(e.text.horizontalPos)).attr("text-anchor",e=>a(e.text.verticalPos)).attr("transform",e=>s(e.text)).text(e=>e.text.text),n.selectAll("g.label").data(o.axisLabels).enter().append("g").attr("class","label").append("text").attr("x",0).attr("y",0).text(e=>e.text).attr("fill",e=>e.fill).attr("font-size",e=>e.fontSize).attr("dominant-baseline",e=>i(e.horizontalPos)).attr("text-anchor",e=>a(e.verticalPos)).attr("transform",e=>s(e)),(u=h.selectAll("g.data-point").data(o.points).enter().append("g").attr("class","data-point")).append("circle").attr("cx",e=>e.x).attr("cy",e=>e.y).attr("r",e=>e.radius).attr("fill",e=>e.fill).attr("stroke",e=>e.strokeColor).attr("stroke-width",e=>e.strokeWidth),u.append("text").attr("x",0).attr("y",0).text(e=>e.text.text).attr("fill",e=>e.text.fill).attr("font-size",e=>e.text.fontSize).attr("dominant-baseline",e=>i(e.text.horizontalPos)).attr("text-anchor",e=>a(e.text.verticalPos)).attr("transform",e=>s(e.text))},"draw"),BCe={draw:PCe}}),zCe={};PFe(zCe,{diagram:()=>GCe});var GCe,UCe,qCe,jCe=b(()=>{hCe(),$Ce(),FCe(),GCe={parser:sCe,db:OCe,renderer:BCe,styles:mt(()=>"","styles")}}),YCe=b(()=>{function e(){this.yy={}}var t=mt(function(e,t,r,n){for(r=r||{},n=e.length;n--;r[e[n]]=t);return r},"o"),r=[1,10,12,14,16,18,19,21,23],n=[2,6],i=[1,3],a=[1,5],s=[1,6],o=[1,7],l=[1,5,10,12,14,16,18,19,21,23,34,35,36],c=[1,25],h=[1,26],u=[1,28],d=[1,29],p=[1,30],g=[1,31],f=[1,32],m=[1,33],y=[1,34],v=[1,35],x=[1,36],b=[1,37],w=[1,43],k=[1,42],T=[1,47],E=[1,50],C=[1,10,12,14,16,18,19,21,23,34,35,36],S=[1,10,12,14,16,18,19,21,23,24,26,27,28,34,35,36],_=[1,10,12,14,16,18,19,21,23,24,26,27,28,34,35,36,41,42,43,44,45,46,47,48,49,50],A=[1,64],n={trace:mt(function(){},"trace"),yy:{},symbols_:{error:2,start:3,eol:4,XYCHART:5,chartConfig:6,document:7,CHART_ORIENTATION:8,statement:9,title:10,text:11,X_AXIS:12,parseXAxis:13,Y_AXIS:14,parseYAxis:15,LINE:16,plotData:17,BAR:18,acc_title:19,acc_title_value:20,acc_descr:21,acc_descr_value:22,acc_descr_multiline_value:23,SQUARE_BRACES_START:24,commaSeparatedNumbers:25,SQUARE_BRACES_END:26,NUMBER_WITH_DECIMAL:27,COMMA:28,xAxisData:29,bandData:30,ARROW_DELIMITER:31,commaSeparatedTexts:32,yAxisData:33,NEWLINE:34,SEMI:35,EOF:36,alphaNum:37,STR:38,MD_STR:39,alphaNumToken:40,AMP:41,NUM:42,ALPHA:43,PLUS:44,EQUALS:45,MULT:46,DOT:47,BRKT:48,MINUS:49,UNDERSCORE:50,$accept:0,$end:1},terminals_:{2:"error",5:"XYCHART",8:"CHART_ORIENTATION",10:"title",12:"X_AXIS",14:"Y_AXIS",16:"LINE",18:"BAR",19:"acc_title",20:"acc_title_value",21:"acc_descr",22:"acc_descr_value",23:"acc_descr_multiline_value",24:"SQUARE_BRACES_START",26:"SQUARE_BRACES_END",27:"NUMBER_WITH_DECIMAL",28:"COMMA",31:"ARROW_DELIMITER",34:"NEWLINE",35:"SEMI",36:"EOF",38:"STR",39:"MD_STR",41:"AMP",42:"NUM",43:"ALPHA",44:"PLUS",45:"EQUALS",46:"MULT",47:"DOT",48:"BRKT",49:"MINUS",50:"UNDERSCORE"},productions_:[0,[3,2],[3,3],[3,2],[3,1],[6,1],[7,0],[7,2],[9,2],[9,2],[9,2],[9,2],[9,2],[9,3],[9,2],[9,3],[9,2],[9,2],[9,1],[17,3],[25,3],[25,1],[13,1],[13,2],[13,1],[29,1],[29,3],[30,3],[32,3],[32,1],[15,1],[15,2],[15,1],[33,3],[4,1],[4,1],[4,1],[11,1],[11,1],[11,1],[37,1],[37,2],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1]],performAction:mt(function(e,t,r,n,i,a,s){var o=a.length-1;switch(i){case 5:n.setOrientation(a[o]);break;case 9:n.setDiagramTitle(a[o].text.trim());break;case 12:n.setLineData({text:"",type:"text"},a[o]);break;case 13:n.setLineData(a[o-1],a[o]);break;case 14:n.setBarData({text:"",type:"text"},a[o]);break;case 15:n.setBarData(a[o-1],a[o]);break;case 16:this.$=a[o].trim(),n.setAccTitle(this.$);b Line truncated
`+g.showPosition()+` `+g.showPosition()+`
Expecting `+A.join(", ")+", got '"+(this.terminals_[x]||x)+"'":"Parse error on line "+(c+1)+": Unexpected "+(x==d?"end of input":"'"+(this.terminals_[x]||x)+"'"),this.parseError(S,{text:g.match,token:this.terminals_[x]||x,line:g.yylineno,loc:m,expected:A})}if(k[0]instanceof Array&&1<k.length)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+x);switch(k[0]){case 1:n.push(x),a.push(g.yytext),s.push(g.yylloc),n.push(k[1]),x=null,b?(x=b,b=null):(h=g.yyleng,l=g.yytext,c=g.yylineno,m=g.yylloc,0<u&&u--);break;case 2:if(E=this.productions_[k[1]][1],_.$=a[a.length-E],_._$={first_line:s[s.length-(E||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(E||1)].first_column,last_column:s[s.length-1].last_column},y&&(_._$.range=[s[s.length-(E||1)].range[0],s[s.length-1].range[1]]),typeof(C=this.performAction.apply(_,[l,h,c,f.yy,k[1],a,s].concat(p)))<"u")return C;E&&(n=n.slice(0,-1*E*2),a=a.slice(0,-1*E),s=s.slice(0,-1*E)),n.push(this.productions_[k[1]][0]),a.push(_.$),s.push(_._$),C=o[n[n.length-2]][n[n.length-1]],n.push(C);break;case 3:return!0}}return!0},"parse")},i={EOF:1,parseError:mt(function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},"parseError"),setInput:mt(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:mt(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},"input"),unput:mt(function(e){var t=e.length,r=e.split(/(?:\r\n?|\n)/g),e=(this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t,this.match.split(/(?:\r\n?|\n)/g)),n=(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),r.length-1&&(this.yylineno-=r.length-1),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:r?(r.length===e.length?this.yylloc.first_column:0)+e[e.length-r.length].length-r[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[n[0],n[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},"unput"),more:mt(function(){return this._more=!0,this},"more"),reject:mt(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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). Expecting `+A.join(", ")+", got '"+(this.terminals_[x]||x)+"'":"Parse error on line "+(c+1)+": Unexpected "+(x==d?"end of input":"'"+(this.terminals_[x]||x)+"'"),this.parseError(_,{text:g.match,token:this.terminals_[x]||x,line:g.yylineno,loc:m,expected:A})}if(k[0]instanceof Array&&1<k.length)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+x);switch(k[0]){case 1:n.push(x),a.push(g.yytext),s.push(g.yylloc),n.push(k[1]),x=null,b?(x=b,b=null):(h=g.yyleng,l=g.yytext,c=g.yylineno,m=g.yylloc,0<u&&u--);break;case 2:if(E=this.productions_[k[1]][1],S.$=a[a.length-E],S._$={first_line:s[s.length-(E||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(E||1)].first_column,last_column:s[s.length-1].last_column},y&&(S._$.range=[s[s.length-(E||1)].range[0],s[s.length-1].range[1]]),typeof(C=this.performAction.apply(S,[l,h,c,f.yy,k[1],a,s].concat(p)))<"u")return C;E&&(n=n.slice(0,-1*E*2),a=a.slice(0,-1*E),s=s.slice(0,-1*E)),n.push(this.productions_[k[1]][0]),a.push(S.$),s.push(S._$),C=o[n[n.length-2]][n[n.length-1]],n.push(C);break;case 3:return!0}}return!0},"parse")},i={EOF:1,parseError:mt(function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},"parseError"),setInput:mt(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:mt(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},"input"),unput:mt(function(e){var t=e.length,r=e.split(/(?:\r\n?|\n)/g),e=(this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t,this.match.split(/(?:\r\n?|\n)/g)),n=(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),r.length-1&&(this.yylineno-=r.length-1),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:r?(r.length===e.length?this.yylloc.first_column:0)+e[e.length-r.length].length-r[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[n[0],n[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},"unput"),more:mt(function(){return this._more=!0,this},"more"),reject:mt(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:mt(function(e){this.unput(this.match.slice(e))},"less"),pastInput:mt(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(20<e.length?"...":"")+e.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:mt(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(20<e.length?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:mt(function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+` `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:mt(function(e){this.unput(this.match.slice(e))},"less"),pastInput:mt(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(20<e.length?"...":"")+e.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:mt(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(20<e.length?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:mt(function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+`
`+t+"^"},"showPosition"),test_match:mt(function(e,t){var r,n;if(this.options.backtrack_lexer&&(n={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)&&(n.yylloc.range=this.yylloc.range.slice(0)),(r=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],r=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),r)return r;if(this._backtrack)for(var i in n)this[i]=n[i];return!1},"test_match"),next:mt(function(){if(this.done)return this.EOF;var e,t,r,n;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;a<i.length;a++)if((r=this._input.match(this.rules[i[a]]))&&(!t||r[0].length>t[0].length)){if(t=r,n=a,this.options.backtrack_lexer){if(!1!==(e=this.test_match(r,i[a])))return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,i[n]))&&e:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. `+t+"^"},"showPosition"),test_match:mt(function(e,t){var r,n;if(this.options.backtrack_lexer&&(n={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)&&(n.yylloc.range=this.yylloc.range.slice(0)),(r=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],r=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),r)return r;if(this._backtrack)for(var i in n)this[i]=n[i];return!1},"test_match"),next:mt(function(){if(this.done)return this.EOF;var e,t,r,n;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;a<i.length;a++)if((r=this._input.match(this.rules[i[a]]))&&(!t||r[0].length>t[0].length)){if(t=r,n=a,this.options.backtrack_lexer){if(!1!==(e=this.test_match(r,i[a])))return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,i[n]))&&e:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:mt(function(){return this.next()||this.lex()},"lex"),begin:mt(function(e){this.conditionStack.push(e)},"begin"),popState:mt(function(){return 0<this.conditionStack.length-1?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:mt(function(){return(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]]:this.conditions.INITIAL).rules},"_currentRules"),topState:mt(function(e){return 0<=(e=this.conditionStack.length-1-Math.abs(e||0))?this.conditionStack[e]:"INITIAL"},"topState"),pushState:mt(function(e){this.begin(e)},"pushState"),stateStackSize:mt(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:mt(function(e,t,r,n){switch(r){case 0:case 1:break;case 2:case 3:return this.popState(),34;case 4:return 34;case 5:break;case 6:return 10;case 7:return this.pushState("acc_title"),19;case 8:return this.popState(),"acc_title_value";case 9:return this.pushState("acc_descr"),21;case 10:return this.popState(),"acc_descr_value";case 11:this.pushState("acc_descr_multiline");break;case 12:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:case 15:return 5;case 16:return 8;case 17:return this.pushState("axis_data"),"X_AXIS";case 18:return this.pushState("axis_data"),"Y_AXIS";case 19:return this.pushState("axis_band_data"),24;case 20:return 31;case 21:return this.pushState("data"),16;case 22:return this.pushState("data"),18;case 23:return this.pushState("data_inner"),24;case 24:return 27;case 25:return this.popState(),26;case 26:this.popState();break;case 27:this.pushState("string");break;case 28:this.popState();break;case 29:return"STR";case 30:return 24;case 31:return 26;case 32:return 43;case 33:return"COLON";case 34:return 44;case 35:return 28;case 36:return 45;case 37:return 46;case 38:return 48;case 39:return 50;case 40:return 47;case 41:return 41;case 42:return 49;case 43:return 42;case 44:break;case 45:return 35;case 46:return 36}},"anonymous"),rules:[/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:(\r?\n))/i,/^(?:(\r?\n))/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:title\b)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:\{)/i,/^(?:[^\}]*)/i,/^(?:xychart-beta\b)/i,/^(?:xychart\b)/i,/^(?:(?:vertical|horizontal))/i,/^(?:x-axis\b)/i,/^(?:y-axis\b)/i,/^(?:\[)/i,/^(?:-->)/i,/^(?:line\b)/i,/^(?:bar\b)/i,/^(?:\[)/i,/^(?:[+-]?(?:\d+(?:\.\d+)?|\.\d+))/i,/^(?:\])/i,/^(?:(?:`\) \{ this\.pushState\(md_string\); \}\n<md_string>\(\?:\(\?!`"\)\.\)\+ \{ return MD_STR; \}\n<md_string>\(\?:`))/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:\[)/i,/^(?:\])/i,/^(?:[A-Za-z]+)/i,/^(?::)/i,/^(?:\+)/i,/^(?:,)/i,/^(?:=)/i,/^(?:\*)/i,/^(?:#)/i,/^(?:[\_])/i,/^(?:\.)/i,/^(?:&)/i,/^(?:-)/i,/^(?:[0-9]+)/i,/^(?:\s+)/i,/^(?:;)/i,/^(?:$)/i],conditions:{data_inner:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,18,21,22,24,25,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0},data:{rules:[0,1,3,4,5,6,7,9,11,14,15,16,17,18,21,22,23,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0},axis_band_data:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,18,21,22,25,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0},axis_data:{rules:[0,1,2,4,5,6,7,9,11,14,15,16,17,18,19,20,21,22,24,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0},acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},title:{rules:[],inclusive:!1},md_string:{rules:[],inclusive:!1},string:{rules:[28,29],inclusive:!1},INITIAL:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,18,21,22,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0}}};n.lexer=i,mt(e,"Parser"),(GCe=new((e.prototype=n).Parser=e)).parser=GCe,UCe=GCe});function YCe(e){return"bar"===e.type}function WCe(e){return"band"===e.type}function HCe(e){return"linear"===e.type}var VCe,XCe,KCe,ZCe,QCe=b(()=>{mt(YCe,"isBarPlot"),mt(WCe,"isBandAxisData"),mt(HCe,"isLinearAxisData")}),JCe=b(()=>{JL(),VCe=class{constructor(e){this.parentGroup=e}static{mt(this,"TextDimensionCalculatorWithFont")}getMaxDimension(e,t){if(!this.parentGroup)return{width:e.reduce((e,t)=>Math.max(t.length,e),0)*t,height:t};var r,n={width:0,height:0},i=this.parentGroup.append("g").attr("visibility","hidden").attr("font-size",t);for(r of e){var a=(s=VL(i,1,r))?s.width:r.length*t,s=s?s.height:t;n.width=Math.max(n.width,a),n.height=Math.max(n.height,s)}return i.remove(),n}}}),e_e=b(()=>{XCe=class{constructor(e,t,r,n){this.axisConfig=e,this.title=t,this.textDimensionCalculator=r,this.axisThemeConfig=n,this.boundingRect={x:0,y:0,width:0,height:0},this.axisPosition="left",this.showTitle=!1,this.showLabel=!1,this.showTick=!1,this.showAxisLine=!1,this.outerPaddinLine truncated `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:mt(function(){return this.next()||this.lex()},"lex"),begin:mt(function(e){this.conditionStack.push(e)},"begin"),popState:mt(function(){return 0<this.conditionStack.length-1?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:mt(function(){return(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]]:this.conditions.INITIAL).rules},"_currentRules"),topState:mt(function(e){return 0<=(e=this.conditionStack.length-1-Math.abs(e||0))?this.conditionStack[e]:"INITIAL"},"topState"),pushState:mt(function(e){this.begin(e)},"pushState"),stateStackSize:mt(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:mt(function(e,t,r,n){switch(r){case 0:case 1:break;case 2:case 3:return this.popState(),34;case 4:return 34;case 5:break;case 6:return 10;case 7:return this.pushState("acc_title"),19;case 8:return this.popState(),"acc_title_value";case 9:return this.pushState("acc_descr"),21;case 10:return this.popState(),"acc_descr_value";case 11:this.pushState("acc_descr_multiline");break;case 12:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:case 15:return 5;case 16:return 8;case 17:return this.pushState("axis_data"),"X_AXIS";case 18:return this.pushState("axis_data"),"Y_AXIS";case 19:return this.pushState("axis_band_data"),24;case 20:return 31;case 21:return this.pushState("data"),16;case 22:return this.pushState("data"),18;case 23:return this.pushState("data_inner"),24;case 24:return 27;case 25:return this.popState(),26;case 26:this.popState();break;case 27:this.pushState("string");break;case 28:this.popState();break;case 29:return"STR";case 30:return 24;case 31:return 26;case 32:return 43;case 33:return"COLON";case 34:return 44;case 35:return 28;case 36:return 45;case 37:return 46;case 38:return 48;case 39:return 50;case 40:return 47;case 41:return 41;case 42:return 49;case 43:return 42;case 44:break;case 45:return 35;case 46:return 36}},"anonymous"),rules:[/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:(\r?\n))/i,/^(?:(\r?\n))/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:title\b)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:\{)/i,/^(?:[^\}]*)/i,/^(?:xychart-beta\b)/i,/^(?:xychart\b)/i,/^(?:(?:vertical|horizontal))/i,/^(?:x-axis\b)/i,/^(?:y-axis\b)/i,/^(?:\[)/i,/^(?:-->)/i,/^(?:line\b)/i,/^(?:bar\b)/i,/^(?:\[)/i,/^(?:[+-]?(?:\d+(?:\.\d+)?|\.\d+))/i,/^(?:\])/i,/^(?:(?:`\) \{ this\.pushState\(md_string\); \}\n<md_string>\(\?:\(\?!`"\)\.\)\+ \{ return MD_STR; \}\n<md_string>\(\?:`))/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:\[)/i,/^(?:\])/i,/^(?:[A-Za-z]+)/i,/^(?::)/i,/^(?:\+)/i,/^(?:,)/i,/^(?:=)/i,/^(?:\*)/i,/^(?:#)/i,/^(?:[\_])/i,/^(?:\.)/i,/^(?:&)/i,/^(?:-)/i,/^(?:[0-9]+)/i,/^(?:\s+)/i,/^(?:;)/i,/^(?:$)/i],conditions:{data_inner:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,18,21,22,24,25,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0},data:{rules:[0,1,3,4,5,6,7,9,11,14,15,16,17,18,21,22,23,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0},axis_band_data:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,18,21,22,25,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0},axis_data:{rules:[0,1,2,4,5,6,7,9,11,14,15,16,17,18,19,20,21,22,24,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0},acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},title:{rules:[],inclusive:!1},md_string:{rules:[],inclusive:!1},string:{rules:[28,29],inclusive:!1},INITIAL:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,18,21,22,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0}}};n.lexer=i,mt(e,"Parser"),(UCe=new((e.prototype=n).Parser=e)).parser=UCe,qCe=UCe});function WCe(e){return"bar"===e.type}function HCe(e){return"band"===e.type}function VCe(e){return"linear"===e.type}var XCe,KCe,ZCe,QCe,JCe=b(()=>{mt(WCe,"isBarPlot"),mt(HCe,"isBandAxisData"),mt(VCe,"isLinearAxisData")}),eSe=b(()=>{JL(),XCe=class{constructor(e){this.parentGroup=e}static{mt(this,"TextDimensionCalculatorWithFont")}getMaxDimension(e,t){if(!this.parentGroup)return{width:e.reduce((e,t)=>Math.max(t.length,e),0)*t,height:t};var r,n={width:0,height:0},i=this.parentGroup.append("g").attr("visibility","hidden").attr("font-size",t);for(r of e){var a=(s=VL(i,1,r))?s.width:r.length*t,s=s?s.height:t;n.width=Math.max(n.width,a),n.height=Math.max(n.height,s)}return i.remove(),n}}}),tSe=b(()=>{KCe=class{constructor(e,t,r,n){this.axisConfig=e,this.title=t,this.textDimensionCalculator=r,this.axisThemeConfig=n,this.boundingRect={x:0,y:0,width:0,height:0},this.axisPosition="left",this.showTitle=!1,this.showLabel=!1,this.showTick=!1,this.showAxisLine=!1,this.outerPaddinLine truncated
`+e);let u=kEe(t),d=u.append("g").attr("class","main"),p=d.append("rect").attr("width",s.width).attr("height",s.height).attr("class","background"),g=(Zc(u,s.height,s.width,!0),u.attr("viewBox",`0 0 ${s.width} `+s.height),p.attr("fill",a.backgroundColor),i.setTmpSVGG(u.append("g").attr("class","mermaid-tmp-group")),i.getDrawableElem()),f={};function m(t){let r=d,n="";for(var[i]of t.entries()){let e=d;0<i&&f[n]&&(e=f[n]),n+=t[i],r=(r=f[n])||(f[n]=e.append("g").attr("class",t[i]))}return r}mt(m,"getGroup");for(var y of g)if(0!==y.data.length){var v=m(y.groupTexts);switch(y.type){case"rect":if(v.selectAll("rect").data(y.data).enter().append("rect").attr("x",e=>e.x).attr("y",e=>e.y).attr("width",e=>e.width).attr("height",e=>e.height).attr("fill",e=>e.fill).attr("stroke",e=>e.strokeFill).attr("stroke-width",e=>e.strokeWidth),s.showDataLabel)if("horizontal"===s.chartOrientation){let n=function(e,t){var{data:e,label:r}=e;return t*r.length*.7<=e.width-10};n,mt(n,"fitsHorizontally");var x=(b=y.data.map((e,t)=>({data:e,label:o[t].toString()})).filter(e=>0<e.data.width&&0<e.data.height)).map(e=>{let t=e.data,r=.7*t.height;for(;!n(e,r)&&0<r;)--r;return r}),x=Math.floor(Math.min(...x));v.selectAll("text").data(b).enter().append("text").attr("x",e=>e.data.x+e.data.width-10).attr("y",e=>e.data.y+e.data.height/2).attr("text-anchor","end").attr("dominant-baseline","middle").attr("fill","black").attr("font-size",x+"px").text(e=>e.label)}else{let i=function(e,t,r){var{data:e,label:n}=e,n=t*n.length*.7,i=e.x+e.width/2;return e.x<=i-n/2&&i+n/2<=e.x+e.width&&e.y+r+t<=e.y+e.height};i,mt(i,"fitsInBar");var b,x=(b=y.data.map((e,t)=>({data:e,label:o[t].toString()})).filter(e=>0<e.data.width&&0<e.data.height)).map(e=>{let{data:t,label:r}=e,n=t.width/(.7*r.length);for(;!i(e,n,10)&&0<n;)--n;return n}),w=Math.floor(Math.min(...x));v.selectAll("text").data(b).enter().append("text").attr("x",e=>e.data.x+e.data.width/2).attr("y",e=>e.data.y+10).attr("text-anchor","middle").attr("dominant-baseline","hanging").attr("fill","black").attr("font-size",w+"px").text(e=>e.label)}break;case"text":v.selectAll("text").data(y.data).enter().append("text").attr("x",0).attr("y",0).attr("fill",e=>e.fill).attr("font-size",e=>e.fontSize).attr("dominant-baseline",e=>l(e.verticalPos)).attr("text-anchor",e=>c(e.horizontalPos)).attr("transform",e=>h(e)).text(e=>e.text);break;case"path":v.selectAll("path").data(y.data).enter().append("path").attr("d",e=>e.path).attr("fill",e=>e.fill||"none").attr("stroke",e=>e.strokeFill).attr("stroke-width",e=>e.strokeWidth)}}},"draw"),K_e={draw:X_e}}),J_e={};OFe(J_e,{diagram:()=>eSe});var eSe,tSe,rSe,nSe,iSe,aSe,sSe=b(()=>{jCe(),Z_e(),Q_e(),eSe={parser:UCe,db:V_e,renderer:K_e}}),oSe=b(()=>{function P(){this.yy={}}var e=mt(function(e,t,r,n){for(r=r||{},n=e.length;n--;r[e[n]]=t);return r},"o"),t=[1,3],r=[1,4],n=[1,5],i=[1,6],B=[5,6,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],a=[1,22],s=[2,7],o=[1,26],l=[1,27],c=[1,28],h=[1,29],u=[1,33],d=[1,34],p=[1,35],g=[1,36],f=[1,37],m=[1,38],y=[1,24],v=[1,31],x=[1,32],b=[1,30],w=[1,39],k=[1,40],T=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],E=[1,61],C=[89,90],$=[5,8,9,11,13,21,22,23,24,27,29,41,42,43,44,45,46,54,61,63,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],F=[27,29],z=[1,70],G=[1,71],U=[1,72],q=[1,73],j=[1,74],Y=[1,75],W=[1,76],_=[1,83],S=[1,80],H=[1,84],V=[1,85],X=[1,86],K=[1,87],Z=[1,88],Q=[1,89],J=[1,90],ee=[1,91],te=[1,92],re=[5,8,9,11,13,21,22,23,24,27,41,42,43,44,45,46,54,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],A=[63,64],ne=[1,101],ie=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,76,77,89,90],L=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],N=[1,110],I=[1,106],R=[1,107],M=[1,108],D=[1,109],O=[1,111],ae=[1,116],se=[1,117],oe=[1,114],le=[1,115],t={trace:mt(function(){},"trace"),yy:{},symbols_:{error:2,start:3,directive:4,NEWLINE:5,RD:6,diagram:7,EOF:8,acc_title:9,acc_title_value:10,acc_descr:11,acc_descr_value:12,acc_descr_multiline_value:13,requirementDef:14,elementDef:15,relationshipDef:16,direction:17,styleStatement:18,classDefStatement:19,classStatement:20,direction_tb:21,direction_bt:22,direction_rl:23,direction_lr:24,requirementType:25,requirementName:26,STRUCT_START:27,requirementBody:28,STYLE_SEPARATOR:29,idList:30,ID:31,COLONSEP:32,id:33,TEXT:34,text:35,RISK:36,riskLevel:37,VERIFYMTHD:38,verifyType:39,STRUCT_STOP:40,REQUIREMENT:41,FUNCTIONAL_REQUIREMENT:42,INTERFACE_REQUIREMENT:43,PERFORMANCE_REQUIREMENT:44,PHYSICAL_REQUIREMENT:45,DESIGN_CONSTRAINT:46,LOW_RISK:47,MED_RISK:48,HIGH_RISK:49,VERIFY_ANALYSIS:50,VERIFY_DEMONSTRATION:51,VERIFY_INSPECTION:52,VERIFY_TEST:53,ELEMENT:54,elementName:55,elementBody:56,TYPE:57,type:58,DOCREF:59,ref:60,END_ARROW_L:61,relationship:62,LINE:63,END_ARROW_R:64,CONTAINS:65,COPIES:66,DERIVES:67,SATISFIES:68,VERIFIES:69,REFINES:70,TRACES:71,CLASSDEF:72,stylesOpt:73,CLASS:74,ALPHA:75,COMMA:76,STYLE:77,style:78,styleComponent:79,NUM:80,COLON:81,UNIT: Line truncated `+e);let u=TEe(t),d=u.append("g").attr("class","main"),p=d.append("rect").attr("width",s.width).attr("height",s.height).attr("class","background"),g=(Zc(u,s.height,s.width,!0),u.attr("viewBox",`0 0 ${s.width} `+s.height),p.attr("fill",a.backgroundColor),i.setTmpSVGG(u.append("g").attr("class","mermaid-tmp-group")),i.getDrawableElem()),f={};function m(t){let r=d,n="";for(var[i]of t.entries()){let e=d;0<i&&f[n]&&(e=f[n]),n+=t[i],r=(r=f[n])||(f[n]=e.append("g").attr("class",t[i]))}return r}mt(m,"getGroup");for(var y of g)if(0!==y.data.length){var v=m(y.groupTexts);switch(y.type){case"rect":if(v.selectAll("rect").data(y.data).enter().append("rect").attr("x",e=>e.x).attr("y",e=>e.y).attr("width",e=>e.width).attr("height",e=>e.height).attr("fill",e=>e.fill).attr("stroke",e=>e.strokeFill).attr("stroke-width",e=>e.strokeWidth),s.showDataLabel)if("horizontal"===s.chartOrientation){let n=function(e,t){var{data:e,label:r}=e;return t*r.length*.7<=e.width-10};n,mt(n,"fitsHorizontally");var x=(b=y.data.map((e,t)=>({data:e,label:o[t].toString()})).filter(e=>0<e.data.width&&0<e.data.height)).map(e=>{let t=e.data,r=.7*t.height;for(;!n(e,r)&&0<r;)--r;return r}),x=Math.floor(Math.min(...x));v.selectAll("text").data(b).enter().append("text").attr("x",e=>e.data.x+e.data.width-10).attr("y",e=>e.data.y+e.data.height/2).attr("text-anchor","end").attr("dominant-baseline","middle").attr("fill","black").attr("font-size",x+"px").text(e=>e.label)}else{let i=function(e,t,r){var{data:e,label:n}=e,n=t*n.length*.7,i=e.x+e.width/2;return e.x<=i-n/2&&i+n/2<=e.x+e.width&&e.y+r+t<=e.y+e.height};i,mt(i,"fitsInBar");var b,x=(b=y.data.map((e,t)=>({data:e,label:o[t].toString()})).filter(e=>0<e.data.width&&0<e.data.height)).map(e=>{let{data:t,label:r}=e,n=t.width/(.7*r.length);for(;!i(e,n,10)&&0<n;)--n;return n}),w=Math.floor(Math.min(...x));v.selectAll("text").data(b).enter().append("text").attr("x",e=>e.data.x+e.data.width/2).attr("y",e=>e.data.y+10).attr("text-anchor","middle").attr("dominant-baseline","hanging").attr("fill","black").attr("font-size",w+"px").text(e=>e.label)}break;case"text":v.selectAll("text").data(y.data).enter().append("text").attr("x",0).attr("y",0).attr("fill",e=>e.fill).attr("font-size",e=>e.fontSize).attr("dominant-baseline",e=>l(e.verticalPos)).attr("text-anchor",e=>c(e.horizontalPos)).attr("transform",e=>h(e)).text(e=>e.text);break;case"path":v.selectAll("path").data(y.data).enter().append("path").attr("d",e=>e.path).attr("fill",e=>e.fill||"none").attr("stroke",e=>e.strokeFill).attr("stroke-width",e=>e.strokeWidth)}}},"draw"),ZSe={draw:KSe}}),e_e={};PFe(e_e,{diagram:()=>t_e});var t_e,r_e,n_e,i_e,a_e,s_e,o_e=b(()=>{YCe(),QSe(),JSe(),t_e={parser:qCe,db:XSe,renderer:ZSe}}),l_e=b(()=>{function P(){this.yy={}}var e=mt(function(e,t,r,n){for(r=r||{},n=e.length;n--;r[e[n]]=t);return r},"o"),t=[1,3],r=[1,4],n=[1,5],i=[1,6],B=[5,6,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],a=[1,22],s=[2,7],o=[1,26],l=[1,27],c=[1,28],h=[1,29],u=[1,33],d=[1,34],p=[1,35],g=[1,36],f=[1,37],m=[1,38],y=[1,24],v=[1,31],x=[1,32],b=[1,30],w=[1,39],k=[1,40],T=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],E=[1,61],C=[89,90],$=[5,8,9,11,13,21,22,23,24,27,29,41,42,43,44,45,46,54,61,63,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],F=[27,29],z=[1,70],G=[1,71],U=[1,72],q=[1,73],j=[1,74],Y=[1,75],W=[1,76],S=[1,83],_=[1,80],H=[1,84],V=[1,85],X=[1,86],K=[1,87],Z=[1,88],Q=[1,89],J=[1,90],ee=[1,91],te=[1,92],re=[5,8,9,11,13,21,22,23,24,27,41,42,43,44,45,46,54,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],A=[63,64],ne=[1,101],ie=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,76,77,89,90],L=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],N=[1,110],I=[1,106],R=[1,107],M=[1,108],D=[1,109],O=[1,111],ae=[1,116],se=[1,117],oe=[1,114],le=[1,115],t={trace:mt(function(){},"trace"),yy:{},symbols_:{error:2,start:3,directive:4,NEWLINE:5,RD:6,diagram:7,EOF:8,acc_title:9,acc_title_value:10,acc_descr:11,acc_descr_value:12,acc_descr_multiline_value:13,requirementDef:14,elementDef:15,relationshipDef:16,direction:17,styleStatement:18,classDefStatement:19,classStatement:20,direction_tb:21,direction_bt:22,direction_rl:23,direction_lr:24,requirementType:25,requirementName:26,STRUCT_START:27,requirementBody:28,STYLE_SEPARATOR:29,idList:30,ID:31,COLONSEP:32,id:33,TEXT:34,text:35,RISK:36,riskLevel:37,VERIFYMTHD:38,verifyType:39,STRUCT_STOP:40,REQUIREMENT:41,FUNCTIONAL_REQUIREMENT:42,INTERFACE_REQUIREMENT:43,PERFORMANCE_REQUIREMENT:44,PHYSICAL_REQUIREMENT:45,DESIGN_CONSTRAINT:46,LOW_RISK:47,MED_RISK:48,HIGH_RISK:49,VERIFY_ANALYSIS:50,VERIFY_DEMONSTRATION:51,VERIFY_INSPECTION:52,VERIFY_TEST:53,ELEMENT:54,elementName:55,elementBody:56,TYPE:57,type:58,DOCREF:59,ref:60,END_ARROW_L:61,relationship:62,LINE:63,END_ARROW_R:64,CONTAINS:65,COPIES:66,DERIVES:67,SATISFIES:68,VERIFIES:69,REFINES:70,TRACES:71,CLASSDEF:72,stylesOpt:73,CLASS:74,ALPHA:75,COMMA:76,STYLE:77,style:78,styleComponent:79,NUM:80,COLON:81,UNIT: Line truncated
`+g.showPosition()+` `+g.showPosition()+`
Expecting `+A.join(", ")+", got '"+(this.terminals_[x]||x)+"'":"Parse error on line "+(c+1)+": Unexpected "+(x==d?"end of input":"'"+(this.terminals_[x]||x)+"'"),this.parseError(S,{text:g.match,token:this.terminals_[x]||x,line:g.yylineno,loc:m,expected:A})}if(k[0]instanceof Array&&1<k.length)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+x);switch(k[0]){case 1:n.push(x),a.push(g.yytext),s.push(g.yylloc),n.push(k[1]),x=null,b?(x=b,b=null):(h=g.yyleng,l=g.yytext,c=g.yylineno,m=g.yylloc,0<u&&u--);break;case 2:if(E=this.productions_[k[1]][1],_.$=a[a.length-E],_._$={first_line:s[s.length-(E||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(E||1)].first_column,last_column:s[s.length-1].last_column},y&&(_._$.range=[s[s.length-(E||1)].range[0],s[s.length-1].range[1]]),typeof(C=this.performAction.apply(_,[l,h,c,f.yy,k[1],a,s].concat(p)))<"u")return C;E&&(n=n.slice(0,-1*E*2),a=a.slice(0,-1*E),s=s.slice(0,-1*E)),n.push(this.productions_[k[1]][0]),a.push(_.$),s.push(_._$),C=o[n[n.length-2]][n[n.length-1]],n.push(C);break;case 3:return!0}}return!0},"parse")},B={EOF:1,parseError:mt(function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},"parseError"),setInput:mt(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:mt(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},"input"),unput:mt(function(e){var t=e.length,r=e.split(/(?:\r\n?|\n)/g),e=(this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t,this.match.split(/(?:\r\n?|\n)/g)),n=(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),r.length-1&&(this.yylineno-=r.length-1),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:r?(r.length===e.length?this.yylloc.first_column:0)+e[e.length-r.length].length-r[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[n[0],n[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},"unput"),more:mt(function(){return this._more=!0,this},"more"),reject:mt(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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). Expecting `+A.join(", ")+", got '"+(this.terminals_[x]||x)+"'":"Parse error on line "+(c+1)+": Unexpected "+(x==d?"end of input":"'"+(this.terminals_[x]||x)+"'"),this.parseError(_,{text:g.match,token:this.terminals_[x]||x,line:g.yylineno,loc:m,expected:A})}if(k[0]instanceof Array&&1<k.length)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+x);switch(k[0]){case 1:n.push(x),a.push(g.yytext),s.push(g.yylloc),n.push(k[1]),x=null,b?(x=b,b=null):(h=g.yyleng,l=g.yytext,c=g.yylineno,m=g.yylloc,0<u&&u--);break;case 2:if(E=this.productions_[k[1]][1],S.$=a[a.length-E],S._$={first_line:s[s.length-(E||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(E||1)].first_column,last_column:s[s.length-1].last_column},y&&(S._$.range=[s[s.length-(E||1)].range[0],s[s.length-1].range[1]]),typeof(C=this.performAction.apply(S,[l,h,c,f.yy,k[1],a,s].concat(p)))<"u")return C;E&&(n=n.slice(0,-1*E*2),a=a.slice(0,-1*E),s=s.slice(0,-1*E)),n.push(this.productions_[k[1]][0]),a.push(S.$),s.push(S._$),C=o[n[n.length-2]][n[n.length-1]],n.push(C);break;case 3:return!0}}return!0},"parse")},B={EOF:1,parseError:mt(function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},"parseError"),setInput:mt(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:mt(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},"input"),unput:mt(function(e){var t=e.length,r=e.split(/(?:\r\n?|\n)/g),e=(this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t,this.match.split(/(?:\r\n?|\n)/g)),n=(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),r.length-1&&(this.yylineno-=r.length-1),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:r?(r.length===e.length?this.yylloc.first_column:0)+e[e.length-r.length].length-r[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[n[0],n[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},"unput"),more:mt(function(){return this._more=!0,this},"more"),reject:mt(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:mt(function(e){this.unput(this.match.slice(e))},"less"),pastInput:mt(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(20<e.length?"...":"")+e.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:mt(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(20<e.length?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:mt(function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+` `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:mt(function(e){this.unput(this.match.slice(e))},"less"),pastInput:mt(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(20<e.length?"...":"")+e.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:mt(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(20<e.length?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:mt(function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+`
`+t+"^"},"showPosition"),test_match:mt(function(e,t){var r,n;if(this.options.backtrack_lexer&&(n={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)&&(n.yylloc.range=this.yylloc.range.slice(0)),(r=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],r=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),r)return r;if(this._backtrack)for(var i in n)this[i]=n[i];return!1},"test_match"),next:mt(function(){if(this.done)return this.EOF;var e,t,r,n;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;a<i.length;a++)if((r=this._input.match(this.rules[i[a]]))&&(!t||r[0].length>t[0].length)){if(t=r,n=a,this.options.backtrack_lexer){if(!1!==(e=this.test_match(r,i[a])))return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,i[n]))&&e:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. `+t+"^"},"showPosition"),test_match:mt(function(e,t){var r,n;if(this.options.backtrack_lexer&&(n={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)&&(n.yylloc.range=this.yylloc.range.slice(0)),(r=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],r=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),r)return r;if(this._backtrack)for(var i in n)this[i]=n[i];return!1},"test_match"),next:mt(function(){if(this.done)return this.EOF;var e,t,r,n;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;a<i.length;a++)if((r=this._input.match(this.rules[i[a]]))&&(!t||r[0].length>t[0].length)){if(t=r,n=a,this.options.backtrack_lexer){if(!1!==(e=this.test_match(r,i[a])))return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,i[n]))&&e:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:mt(function(){return this.next()||this.lex()},"lex"),begin:mt(function(e){this.conditionStack.push(e)},"begin"),popState:mt(function(){return 0<this.conditionStack.length-1?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:mt(function(){return(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]]:this.conditions.INITIAL).rules},"_currentRules"),topState:mt(function(e){return 0<=(e=this.conditionStack.length-1-Math.abs(e||0))?this.conditionStack[e]:"INITIAL"},"topState"),pushState:mt(function(e){this.begin(e)},"pushState"),stateStackSize:mt(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:mt(function(e,t,r,n){switch(r){case 0:return"title";case 1:return this.begin("acc_title"),9;case 2:return this.popState(),"acc_title_value";case 3:return this.begin("acc_descr"),11;case 4:return this.popState(),"acc_descr_value";case 5:this.begin("acc_descr_multiline");break;case 6:this.popState();break;case 7:return"acc_descr_multiline_value";case 8:return 21;case 9:return 22;case 10:return 23;case 11:return 24;case 12:return 5;case 13:case 14:case 15:break;case 16:return 8;case 17:return 6;case 18:return 27;case 19:return 40;case 20:return 29;case 21:return 32;case 22:return 31;case 23:return 34;case 24:return 36;case 25:return 38;case 26:return 41;case 27:return 42;case 28:return 43;case 29:return 44;case 30:return 45;case 31:return 46;case 32:return 47;case 33:return 48;case 34:return 49;case 35:return 50;case 36:return 51;case 37:return 52;case 38:return 53;case 39:return 54;case 40:return 65;case 41:return 66;case 42:return 67;case 43:return 68;case 44:return 69;case 45:return 70;case 46:return 71;case 47:return 57;case 48:return 59;case 49:return this.begin("style"),77;case 50:return 75;case 51:return 81;case 52:return 88;case 53:return"PERCENT";case 54:return 86;case 55:return 84;case 56:break;case 57:this.begin("string");break;case 58:this.popState();break;case 59:return this.begin("style"),72;case 60:return this.begin("style"),74;case 61:return 61;case 62:return 64;case 63:return 63;case 64:this.begin("string");break;case 65:this.popState();break;case 66:return"qString";case 67:return t.yytext=t.yytext.trim(),89;case 68:return 75;case 69:return 80;case 70:return 76}},"anonymous"),rules:[/^(?:title\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:(\r?\n)+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:$)/i,/^(?:requirementDiagram\b)/i,/^(?:\{)/i,/^(?:\})/i,/^(?::{3})/i,/^(?::)/i,/^(?:id\b)/i,/^(?:text\b)/i,/^(?:risk\b)/i,/^(?:verifyMethod\b)/i,/^(?:requirement\b)/i,/^(?:functionalRequirement\b)/i,/^(?:interfaceRequirement\b)/i,/^(?:performanceRequirement\b)/i,/^(?:physicalRequirement\b)/i,/^(?:designConstraint\b)/i,/^(?:low\b)/i,/^(?:medium\b)/i,/^(?:high\b)/i,/^(?:analysis\b)/i,/^(?:demonstration\b)/i,/^(?:inspection\b)/i,/^(?:test\b)/i,/^(?:element\b)/i,/^(?:contains\b)/i,/^(?:copies\b)/i,/^(?:derives\b)/i,/^(?:satisfies\b)/i,/^(?:verifies\b)/i,/^(?:refines\b)/i,/^(?:traces\b)/i,/^(?:type\b)/i,/^(?:docref\b)/i,/^(?:style\b)/i,/^(?:\w+)/i,/^(?::)/i,/^(?:;)/i,/^(?:%)/i,/^(?:-)/i,/^(?:#)/i,/^(?: )/i,/^(?:["])/i,/^(?:\n)/i,/^(?:classDef\b)/i,/^(?:class\b)/i,/^(?:<-)/i,/^(?:->)/i,/^(?:-)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[\w][^:,\r\n\{\<\>\-\=]*)/i,/^(?:\w+)/i,/^(?:[0-9]+)/i,/^(?:,)/i],conditions:{acc_descr_multiline:{rules:[6,7,68,69,70],inclusive:!1},acc_descr:{rules:[4,68,69,70],inclusive:!1},acc_title:{rules:[2,68,69,70],inclusive:!1},style:{rules:[50,51,52,53,54,55,56,57,58,68,69,70],inclusive:!1},unqString:{rules:[68,69,70],inclusive:!1},token:{rules:[68,69,70],inclusive:!1},string:{rules:[65,66,68,69,70],inclusive:!1},INITIAL:{rules:[0,1,3,5,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,59,60,61,62,63,64,67,68,69,70],inclusive:!0}}};t.lexer=B,mt(P,"Parser"),(tSe=new((P.prototype=t).Parser=P)).parser=tSe,rSe=tSe}),lSe=b(()=>{Tu(),e(),ku(),nSe=class{constructor(){this.relations=[],this.latestRequirement=this.getInitialRequirement(),this.requirements=new Map,this.latestElement=this.getInitialElement(),this.elements=new Map,this.classes=new Map,this.direction="TB",this.RequirementType={REQUIREMENT:"Requirement",FUNCTIONAL_REQUIREMENT:"Functional Requirement",INTERFACE_REQUIREMENT:"Interface Requirement",PERFORMANCE_REQUIREMENT:"Performance Requirement",PHYSICAL_REQUIREMENT:"Physical Requirement",DESIGN_CONSTRAINT:"Design Constraint"},this.RiskLevel={LOW_RISK:"Low",MED_RISK:"Medium",HIGH_RISK:"High"},this.VerifyType={VERIFY_ANALYSIS:"An Line truncated `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:mt(function(){return this.next()||this.lex()},"lex"),begin:mt(function(e){this.conditionStack.push(e)},"begin"),popState:mt(function(){return 0<this.conditionStack.length-1?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:mt(function(){return(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]]:this.conditions.INITIAL).rules},"_currentRules"),topState:mt(function(e){return 0<=(e=this.conditionStack.length-1-Math.abs(e||0))?this.conditionStack[e]:"INITIAL"},"topState"),pushState:mt(function(e){this.begin(e)},"pushState"),stateStackSize:mt(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:mt(function(e,t,r,n){switch(r){case 0:return"title";case 1:return this.begin("acc_title"),9;case 2:return this.popState(),"acc_title_value";case 3:return this.begin("acc_descr"),11;case 4:return this.popState(),"acc_descr_value";case 5:this.begin("acc_descr_multiline");break;case 6:this.popState();break;case 7:return"acc_descr_multiline_value";case 8:return 21;case 9:return 22;case 10:return 23;case 11:return 24;case 12:return 5;case 13:case 14:case 15:break;case 16:return 8;case 17:return 6;case 18:return 27;case 19:return 40;case 20:return 29;case 21:return 32;case 22:return 31;case 23:return 34;case 24:return 36;case 25:return 38;case 26:return 41;case 27:return 42;case 28:return 43;case 29:return 44;case 30:return 45;case 31:return 46;case 32:return 47;case 33:return 48;case 34:return 49;case 35:return 50;case 36:return 51;case 37:return 52;case 38:return 53;case 39:return 54;case 40:return 65;case 41:return 66;case 42:return 67;case 43:return 68;case 44:return 69;case 45:return 70;case 46:return 71;case 47:return 57;case 48:return 59;case 49:return this.begin("style"),77;case 50:return 75;case 51:return 81;case 52:return 88;case 53:return"PERCENT";case 54:return 86;case 55:return 84;case 56:break;case 57:this.begin("string");break;case 58:this.popState();break;case 59:return this.begin("style"),72;case 60:return this.begin("style"),74;case 61:return 61;case 62:return 64;case 63:return 63;case 64:this.begin("string");break;case 65:this.popState();break;case 66:return"qString";case 67:return t.yytext=t.yytext.trim(),89;case 68:return 75;case 69:return 80;case 70:return 76}},"anonymous"),rules:[/^(?:title\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:(\r?\n)+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:$)/i,/^(?:requirementDiagram\b)/i,/^(?:\{)/i,/^(?:\})/i,/^(?::{3})/i,/^(?::)/i,/^(?:id\b)/i,/^(?:text\b)/i,/^(?:risk\b)/i,/^(?:verifyMethod\b)/i,/^(?:requirement\b)/i,/^(?:functionalRequirement\b)/i,/^(?:interfaceRequirement\b)/i,/^(?:performanceRequirement\b)/i,/^(?:physicalRequirement\b)/i,/^(?:designConstraint\b)/i,/^(?:low\b)/i,/^(?:medium\b)/i,/^(?:high\b)/i,/^(?:analysis\b)/i,/^(?:demonstration\b)/i,/^(?:inspection\b)/i,/^(?:test\b)/i,/^(?:element\b)/i,/^(?:contains\b)/i,/^(?:copies\b)/i,/^(?:derives\b)/i,/^(?:satisfies\b)/i,/^(?:verifies\b)/i,/^(?:refines\b)/i,/^(?:traces\b)/i,/^(?:type\b)/i,/^(?:docref\b)/i,/^(?:style\b)/i,/^(?:\w+)/i,/^(?::)/i,/^(?:;)/i,/^(?:%)/i,/^(?:-)/i,/^(?:#)/i,/^(?: )/i,/^(?:["])/i,/^(?:\n)/i,/^(?:classDef\b)/i,/^(?:class\b)/i,/^(?:<-)/i,/^(?:->)/i,/^(?:-)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[\w][^:,\r\n\{\<\>\-\=]*)/i,/^(?:\w+)/i,/^(?:[0-9]+)/i,/^(?:,)/i],conditions:{acc_descr_multiline:{rules:[6,7,68,69,70],inclusive:!1},acc_descr:{rules:[4,68,69,70],inclusive:!1},acc_title:{rules:[2,68,69,70],inclusive:!1},style:{rules:[50,51,52,53,54,55,56,57,58,68,69,70],inclusive:!1},unqString:{rules:[68,69,70],inclusive:!1},token:{rules:[68,69,70],inclusive:!1},string:{rules:[65,66,68,69,70],inclusive:!1},INITIAL:{rules:[0,1,3,5,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,59,60,61,62,63,64,67,68,69,70],inclusive:!0}}};t.lexer=B,mt(P,"Parser"),(r_e=new((P.prototype=t).Parser=P)).parser=r_e,n_e=r_e}),c_e=b(()=>{Tu(),e(),ku(),i_e=class{constructor(){this.relations=[],this.latestRequirement=this.getInitialRequirement(),this.requirements=new Map,this.latestElement=this.getInitialElement(),this.elements=new Map,this.classes=new Map,this.direction="TB",this.RequirementType={REQUIREMENT:"Requirement",FUNCTIONAL_REQUIREMENT:"Functional Requirement",INTERFACE_REQUIREMENT:"Interface Requirement",PERFORMANCE_REQUIREMENT:"Performance Requirement",PHYSICAL_REQUIREMENT:"Physical Requirement",DESIGN_CONSTRAINT:"Design Constraint"},this.RiskLevel={LOW_RISK:"Low",MED_RISK:"Medium",HIGH_RISK:"High"},this.VerifyType={VERIFY_ANALYSIS:"An Line truncated
marker { marker {
fill: ${e.relationColor}; fill: ${e.relationColor};
@@ -1623,16 +1623,16 @@ Expecting `+A.join(", ")+", got '"+(this.terminals_[x]||x)+"'":"Parse error on l
background-color: ${e.edgeLabelBackground}; background-color: ${e.edgeLabelBackground};
} }
`,"getStyles"),aSe=iSe}),hSe={};OFe(hSe,{draw:()=>uSe});var uSe,dSe=b(()=>{Tu(),e(),iO(),Qhe(),Jhe(),i_(),uSe=mt(async function(e,t,r,n){D.info("REF0:"),D.info("Drawing requirement diagram (unified)",t);var{securityLevel:i,state:a,layout:s}=O(),o=n.db.getData(),i=YD(t,i);o.type=n.type,o.layoutAlgorithm=Phe(s),o.nodeSpacing=a?.nodeSpacing??50,o.rankSpacing=a?.rankSpacing??50,o.markers=["requirement_contains","requirement_arrow"],o.diagramId=t,await Ohe(o,i),e_.insertTitle(i,"requirementDiagramTitleText",a?.titleTopMargin??25,n.db.getDiagramTitle()),Bhe(i,8,"requirementDiagram",a?.useMaxWidth??!0)},"draw")}),pSe={};OFe(pSe,{diagram:()=>gSe});var gSe,fSe,mSe,ySe,vSe,xSe,bSe,wSe,kSe,TSe,ESe,CSe,_Se,SSe,ASe,LSe,NSe,ISe,RSe,MSe,DSe,OSe,PSe,BSe,$Se,FSe,zSe,GSe,USe,qSe,jSe,YSe,WSe,HSe,VSe,XSe,KSe,ZSe,QSe,JSe,eAe,tAe,rAe,nAe,iAe,aAe,sAe,oAe,lAe,cAe,hAe=b(()=>{oSe(),lSe(),cSe(),dSe(),gSe={parser:rSe,get db(){return new nSe},renderer:hSe,styles:aSe}}),uAe=b(()=>{function P(){this.yy={}}var e=mt(function(e,t,r,n){for(r=r||{},n=e.length;n--;r[e[n]]=t);return r},"o"),t=[1,2],B=[1,3],$=[1,4],r=[2,4],n=[1,9],i=[1,11],a=[1,13],s=[1,14],o=[1,16],l=[1,17],c=[1,18],h=[1,24],u=[1,25],d=[1,26],p=[1,27],g=[1,28],f=[1,29],m=[1,30],y=[1,31],v=[1,32],x=[1,33],b=[1,34],w=[1,35],k=[1,36],T=[1,37],E=[1,38],C=[1,39],_=[1,41],S=[1,42],A=[1,43],L=[1,44],N=[1,45],I=[1,46],R=[1,4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,47,48,49,50,52,53,55,60,61,62,63,71],F=[2,71],M=[4,5,16,50,52,53],z=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,50,52,53,55,60,61,62,63,71],G=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,49,50,52,53,55,60,61,62,63,71],U=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,48,50,52,53,55,60,61,62,63,71],q=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,47,50,52,53,55,60,61,62,63,71],D=[69,70,71],O=[1,127],t={trace:mt(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,SD:6,document:7,line:8,statement:9,box_section:10,box_line:11,participant_statement:12,create:13,box:14,restOfLine:15,end:16,signal:17,autonumber:18,NUM:19,off:20,activate:21,actor:22,deactivate:23,note_statement:24,links_statement:25,link_statement:26,properties_statement:27,details_statement:28,title:29,legacy_title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,loop:36,rect:37,opt:38,alt:39,else_sections:40,par:41,par_sections:42,par_over:43,critical:44,option_sections:45,break:46,option:47,and:48,else:49,participant:50,AS:51,participant_actor:52,destroy:53,actor_with_config:54,note:55,placement:56,text2:57,over:58,actor_pair:59,links:60,link:61,properties:62,details:63,spaceList:64,",":65,left_of:66,right_of:67,signaltype:68,"+":69,"-":70,ACTOR:71,config_object:72,CONFIG_START:73,CONFIG_CONTENT:74,CONFIG_END:75,SOLID_OPEN_ARROW:76,DOTTED_OPEN_ARROW:77,SOLID_ARROW:78,BIDIRECTIONAL_SOLID_ARROW:79,DOTTED_ARROW:80,BIDIRECTIONAL_DOTTED_ARROW:81,SOLID_CROSS:82,DOTTED_CROSS:83,SOLID_POINT:84,DOTTED_POINT:85,TXT:86,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NEWLINE",6:"SD",13:"create",14:"box",15:"restOfLine",16:"end",18:"autonumber",19:"NUM",20:"off",21:"activate",23:"deactivate",29:"title",30:"legacy_title",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",36:"loop",37:"rect",38:"opt",39:"alt",41:"par",43:"par_over",44:"critical",46:"break",47:"option",48:"and",49:"else",50:"participant",51:"AS",52:"participant_actor",53:"destroy",55:"note",58:"over",60:"links",61:"link",62:"properties",63:"details",65:",",66:"left_of",67:"right_of",69:"+",70:"-",71:"ACTOR",73:"CONFIG_START",74:"CONFIG_CONTENT",75:"CONFIG_END",76:"SOLID_OPEN_ARROW",77:"DOTTED_OPEN_ARROW",78:"SOLID_ARROW",79:"BIDIRECTIONAL_SOLID_ARROW",80:"DOTTED_ARROW",81:"BIDIRECTIONAL_DOTTED_ARROW",82:"SOLID_CROSS",83:"DOTTED_CROSS",84:"SOLID_POINT",85:"DOTTED_POINT",86:"TXT"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[10,0],[10,2],[11,2],[11,1],[11,1],[9,1],[9,2],[9,4],[9,2],[9,4],[9,3],[9,3],[9,2],[9,3],[9,3],[9,2],[9,2],[9,2],[9,2],[9,2],[9,1],[9,1],[9,2],[9,2],[9,1],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[45,1],[45,4],[42,1],[42,4],[40,1],[40,4],[12,5],[12,3],[12,5],[12,3],[12,3],[12,3],[24,4],[24,4],[25,3],[26,3],[27,3],[28,3],[64,2],[64,1],[59,3],[59,1],[56,1],[56,1],[17,5],[17,5],[17,4],[54,2],[72,3],[22,1],[68,1],[68,1],[68,1],[68,1],[68,1],[68,1],[68,1],[68,1],[68,1],[68,1],[57,1]],performAction:mt(function(e,t,r,n,i,a,s){var o=a.length-1;switch(i){case 3:return n.apply(a[o]),a[o];case 4:case 9:this.$=[];break;case 5:case 10:a[o-1].push(a[o]),this.$=a[o-1];break;case 6:case 7:case 11:case 12:this.$=a[o];break;case 8:case 13:this.$=[];break;case 15:a[o].type="createParticipant",this.$=a[o];break;case 16:a[o-1].unshift({type:"boxStart",boxData:n.parseBoxData(a[o-2])}),a[o-1].push({type:"boxEnd",boxText:a[o-2]}),this.$=a[o-1];break;case 18:this.$={type:"sequenceIndex",se Line truncated `,"getStyles"),s_e=a_e}),u_e={};PFe(u_e,{draw:()=>d_e});var d_e,p_e=b(()=>{Tu(),e(),iO(),Qhe(),Jhe(),iS(),d_e=mt(async function(e,t,r,n){D.info("REF0:"),D.info("Drawing requirement diagram (unified)",t);var{securityLevel:i,state:a,layout:s}=O(),o=n.db.getData(),i=YD(t,i);o.type=n.type,o.layoutAlgorithm=Phe(s),o.nodeSpacing=a?.nodeSpacing??50,o.rankSpacing=a?.rankSpacing??50,o.markers=["requirement_contains","requirement_arrow"],o.diagramId=t,await Ohe(o,i),eS.insertTitle(i,"requirementDiagramTitleText",a?.titleTopMargin??25,n.db.getDiagramTitle()),Bhe(i,8,"requirementDiagram",a?.useMaxWidth??!0)},"draw")}),g_e={};PFe(g_e,{diagram:()=>f_e});var f_e,m_e,y_e,v_e,x_e,b_e,w_e,k_e,T_e,E_e,C_e,S_e,__e,A_e,L_e,N_e,I_e,R_e,M_e,D_e,O_e,P_e,B_e,$_e,F_e,z_e,G_e,U_e,q_e,j_e,Y_e,W_e,H_e,V_e,X_e,K_e,Z_e,Q_e,J_e,eAe,tAe,rAe,nAe,iAe,aAe,sAe,oAe,lAe,cAe,hAe,uAe=b(()=>{l_e(),c_e(),h_e(),p_e(),f_e={parser:n_e,get db(){return new i_e},renderer:u_e,styles:s_e}}),dAe=b(()=>{function P(){this.yy={}}var e=mt(function(e,t,r,n){for(r=r||{},n=e.length;n--;r[e[n]]=t);return r},"o"),t=[1,2],B=[1,3],$=[1,4],r=[2,4],n=[1,9],i=[1,11],a=[1,13],s=[1,14],o=[1,16],l=[1,17],c=[1,18],h=[1,24],u=[1,25],d=[1,26],p=[1,27],g=[1,28],f=[1,29],m=[1,30],y=[1,31],v=[1,32],x=[1,33],b=[1,34],w=[1,35],k=[1,36],T=[1,37],E=[1,38],C=[1,39],S=[1,41],_=[1,42],A=[1,43],L=[1,44],N=[1,45],I=[1,46],R=[1,4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,47,48,49,50,52,53,55,60,61,62,63,71],F=[2,71],M=[4,5,16,50,52,53],z=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,50,52,53,55,60,61,62,63,71],G=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,49,50,52,53,55,60,61,62,63,71],U=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,48,50,52,53,55,60,61,62,63,71],q=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,47,50,52,53,55,60,61,62,63,71],D=[69,70,71],O=[1,127],t={trace:mt(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,SD:6,document:7,line:8,statement:9,box_section:10,box_line:11,participant_statement:12,create:13,box:14,restOfLine:15,end:16,signal:17,autonumber:18,NUM:19,off:20,activate:21,actor:22,deactivate:23,note_statement:24,links_statement:25,link_statement:26,properties_statement:27,details_statement:28,title:29,legacy_title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,loop:36,rect:37,opt:38,alt:39,else_sections:40,par:41,par_sections:42,par_over:43,critical:44,option_sections:45,break:46,option:47,and:48,else:49,participant:50,AS:51,participant_actor:52,destroy:53,actor_with_config:54,note:55,placement:56,text2:57,over:58,actor_pair:59,links:60,link:61,properties:62,details:63,spaceList:64,",":65,left_of:66,right_of:67,signaltype:68,"+":69,"-":70,ACTOR:71,config_object:72,CONFIG_START:73,CONFIG_CONTENT:74,CONFIG_END:75,SOLID_OPEN_ARROW:76,DOTTED_OPEN_ARROW:77,SOLID_ARROW:78,BIDIRECTIONAL_SOLID_ARROW:79,DOTTED_ARROW:80,BIDIRECTIONAL_DOTTED_ARROW:81,SOLID_CROSS:82,DOTTED_CROSS:83,SOLID_POINT:84,DOTTED_POINT:85,TXT:86,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NEWLINE",6:"SD",13:"create",14:"box",15:"restOfLine",16:"end",18:"autonumber",19:"NUM",20:"off",21:"activate",23:"deactivate",29:"title",30:"legacy_title",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",36:"loop",37:"rect",38:"opt",39:"alt",41:"par",43:"par_over",44:"critical",46:"break",47:"option",48:"and",49:"else",50:"participant",51:"AS",52:"participant_actor",53:"destroy",55:"note",58:"over",60:"links",61:"link",62:"properties",63:"details",65:",",66:"left_of",67:"right_of",69:"+",70:"-",71:"ACTOR",73:"CONFIG_START",74:"CONFIG_CONTENT",75:"CONFIG_END",76:"SOLID_OPEN_ARROW",77:"DOTTED_OPEN_ARROW",78:"SOLID_ARROW",79:"BIDIRECTIONAL_SOLID_ARROW",80:"DOTTED_ARROW",81:"BIDIRECTIONAL_DOTTED_ARROW",82:"SOLID_CROSS",83:"DOTTED_CROSS",84:"SOLID_POINT",85:"DOTTED_POINT",86:"TXT"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[10,0],[10,2],[11,2],[11,1],[11,1],[9,1],[9,2],[9,4],[9,2],[9,4],[9,3],[9,3],[9,2],[9,3],[9,3],[9,2],[9,2],[9,2],[9,2],[9,2],[9,1],[9,1],[9,2],[9,2],[9,1],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[45,1],[45,4],[42,1],[42,4],[40,1],[40,4],[12,5],[12,3],[12,5],[12,3],[12,3],[12,3],[24,4],[24,4],[25,3],[26,3],[27,3],[28,3],[64,2],[64,1],[59,3],[59,1],[56,1],[56,1],[17,5],[17,5],[17,4],[54,2],[72,3],[22,1],[68,1],[68,1],[68,1],[68,1],[68,1],[68,1],[68,1],[68,1],[68,1],[68,1],[57,1]],performAction:mt(function(e,t,r,n,i,a,s){var o=a.length-1;switch(i){case 3:return n.apply(a[o]),a[o];case 4:case 9:this.$=[];break;case 5:case 10:a[o-1].push(a[o]),this.$=a[o-1];break;case 6:case 7:case 11:case 12:this.$=a[o];break;case 8:case 13:this.$=[];break;case 15:a[o].type="createParticipant",this.$=a[o];break;case 16:a[o-1].unshift({type:"boxStart",boxData:n.parseBoxData(a[o-2])}),a[o-1].push({type:"boxEnd",boxText:a[o-2]}),this.$=a[o-1];break;case 18:this.$={type:"sequenceIndex",se Line truncated
`+g.showPosition()+` `+g.showPosition()+`
Expecting `+A.join(", ")+", got '"+(this.terminals_[x]||x)+"'":"Parse error on line "+(c+1)+": Unexpected "+(x==d?"end of input":"'"+(this.terminals_[x]||x)+"'"),this.parseError(S,{text:g.match,token:this.terminals_[x]||x,line:g.yylineno,loc:m,expected:A})}if(k[0]instanceof Array&&1<k.length)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+x);switch(k[0]){case 1:n.push(x),a.push(g.yytext),s.push(g.yylloc),n.push(k[1]),x=null,b?(x=b,b=null):(h=g.yyleng,l=g.yytext,c=g.yylineno,m=g.yylloc,0<u&&u--);break;case 2:if(E=this.productions_[k[1]][1],_.$=a[a.length-E],_._$={first_line:s[s.length-(E||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(E||1)].first_column,last_column:s[s.length-1].last_column},y&&(_._$.range=[s[s.length-(E||1)].range[0],s[s.length-1].range[1]]),typeof(C=this.performAction.apply(_,[l,h,c,f.yy,k[1],a,s].concat(p)))<"u")return C;E&&(n=n.slice(0,-1*E*2),a=a.slice(0,-1*E),s=s.slice(0,-1*E)),n.push(this.productions_[k[1]][0]),a.push(_.$),s.push(_._$),C=o[n[n.length-2]][n[n.length-1]],n.push(C);break;case 3:return!0}}return!0},"parse")},B={EOF:1,parseError:mt(function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},"parseError"),setInput:mt(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:mt(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},"input"),unput:mt(function(e){var t=e.length,r=e.split(/(?:\r\n?|\n)/g),e=(this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t,this.match.split(/(?:\r\n?|\n)/g)),n=(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),r.length-1&&(this.yylineno-=r.length-1),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:r?(r.length===e.length?this.yylloc.first_column:0)+e[e.length-r.length].length-r[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[n[0],n[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},"unput"),more:mt(function(){return this._more=!0,this},"more"),reject:mt(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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). Expecting `+A.join(", ")+", got '"+(this.terminals_[x]||x)+"'":"Parse error on line "+(c+1)+": Unexpected "+(x==d?"end of input":"'"+(this.terminals_[x]||x)+"'"),this.parseError(_,{text:g.match,token:this.terminals_[x]||x,line:g.yylineno,loc:m,expected:A})}if(k[0]instanceof Array&&1<k.length)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+x);switch(k[0]){case 1:n.push(x),a.push(g.yytext),s.push(g.yylloc),n.push(k[1]),x=null,b?(x=b,b=null):(h=g.yyleng,l=g.yytext,c=g.yylineno,m=g.yylloc,0<u&&u--);break;case 2:if(E=this.productions_[k[1]][1],S.$=a[a.length-E],S._$={first_line:s[s.length-(E||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(E||1)].first_column,last_column:s[s.length-1].last_column},y&&(S._$.range=[s[s.length-(E||1)].range[0],s[s.length-1].range[1]]),typeof(C=this.performAction.apply(S,[l,h,c,f.yy,k[1],a,s].concat(p)))<"u")return C;E&&(n=n.slice(0,-1*E*2),a=a.slice(0,-1*E),s=s.slice(0,-1*E)),n.push(this.productions_[k[1]][0]),a.push(S.$),s.push(S._$),C=o[n[n.length-2]][n[n.length-1]],n.push(C);break;case 3:return!0}}return!0},"parse")},B={EOF:1,parseError:mt(function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},"parseError"),setInput:mt(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:mt(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},"input"),unput:mt(function(e){var t=e.length,r=e.split(/(?:\r\n?|\n)/g),e=(this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t,this.match.split(/(?:\r\n?|\n)/g)),n=(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),r.length-1&&(this.yylineno-=r.length-1),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:r?(r.length===e.length?this.yylloc.first_column:0)+e[e.length-r.length].length-r[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[n[0],n[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},"unput"),more:mt(function(){return this._more=!0,this},"more"),reject:mt(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:mt(function(e){this.unput(this.match.slice(e))},"less"),pastInput:mt(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(20<e.length?"...":"")+e.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:mt(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(20<e.length?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:mt(function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+` `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:mt(function(e){this.unput(this.match.slice(e))},"less"),pastInput:mt(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(20<e.length?"...":"")+e.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:mt(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(20<e.length?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:mt(function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+`
`+t+"^"},"showPosition"),test_match:mt(function(e,t){var r,n;if(this.options.backtrack_lexer&&(n={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)&&(n.yylloc.range=this.yylloc.range.slice(0)),(r=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],r=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),r)return r;if(this._backtrack)for(var i in n)this[i]=n[i];return!1},"test_match"),next:mt(function(){if(this.done)return this.EOF;var e,t,r,n;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;a<i.length;a++)if((r=this._input.match(this.rules[i[a]]))&&(!t||r[0].length>t[0].length)){if(t=r,n=a,this.options.backtrack_lexer){if(!1!==(e=this.test_match(r,i[a])))return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,i[n]))&&e:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. `+t+"^"},"showPosition"),test_match:mt(function(e,t){var r,n;if(this.options.backtrack_lexer&&(n={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)&&(n.yylloc.range=this.yylloc.range.slice(0)),(r=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],r=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),r)return r;if(this._backtrack)for(var i in n)this[i]=n[i];return!1},"test_match"),next:mt(function(){if(this.done)return this.EOF;var e,t,r,n;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;a<i.length;a++)if((r=this._input.match(this.rules[i[a]]))&&(!t||r[0].length>t[0].length)){if(t=r,n=a,this.options.backtrack_lexer){if(!1!==(e=this.test_match(r,i[a])))return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,i[n]))&&e:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:mt(function(){return this.next()||this.lex()},"lex"),begin:mt(function(e){this.conditionStack.push(e)},"begin"),popState:mt(function(){return 0<this.conditionStack.length-1?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:mt(function(){return(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]]:this.conditions.INITIAL).rules},"_currentRules"),topState:mt(function(e){return 0<=(e=this.conditionStack.length-1-Math.abs(e||0))?this.conditionStack[e]:"INITIAL"},"topState"),pushState:mt(function(e){this.begin(e)},"pushState"),stateStackSize:mt(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:mt(function(e,t,r,n){switch(r){case 0:return 5;case 1:case 2:case 3:case 4:case 5:break;case 6:return 19;case 7:return this.begin("CONFIG"),73;case 8:return 74;case 9:return this.popState(),this.popState(),75;case 10:return t.yytext=t.yytext.trim(),71;case 11:return t.yytext=t.yytext.trim(),this.begin("ALIAS"),71;case 12:return this.begin("LINE"),14;case 13:return this.begin("ID"),50;case 14:return this.begin("ID"),52;case 15:return 13;case 16:return this.begin("ID"),53;case 17:return t.yytext=t.yytext.trim(),this.begin("ALIAS"),71;case 18:return this.popState(),this.popState(),this.begin("LINE"),51;case 19:return this.popState(),this.popState(),5;case 20:return this.begin("LINE"),36;case 21:return this.begin("LINE"),37;case 22:return this.begin("LINE"),38;case 23:return this.begin("LINE"),39;case 24:return this.begin("LINE"),49;case 25:return this.begin("LINE"),41;case 26:return this.begin("LINE"),43;case 27:return this.begin("LINE"),48;case 28:return this.begin("LINE"),44;case 29:return this.begin("LINE"),47;case 30:return this.begin("LINE"),46;case 31:return this.popState(),15;case 32:return 16;case 33:return 66;case 34:return 67;case 35:return 60;case 36:return 61;case 37:return 62;case 38:return 63;case 39:return 58;case 40:return 55;case 41:return this.begin("ID"),21;case 42:return this.begin("ID"),23;case 43:return 29;case 44:return 30;case 45:return this.begin("acc_title"),31;case 46:return this.popState(),"acc_title_value";case 47:return this.begin("acc_descr"),33;case 48:return this.popState(),"acc_descr_value";case 49:this.begin("acc_descr_multiline");break;case 50:this.popState();break;case 51:return"acc_descr_multiline_value";case 52:return 6;case 53:return 18;case 54:return 20;case 55:return 65;case 56:return 5;case 57:return t.yytext=t.yytext.trim(),71;case 58:return 78;case 59:return 79;case 60:return 80;case 61:return 81;case 62:return 76;case 63:return 77;case 64:return 82;case 65:return 83;case 66:return 84;case 67:return 85;case 68:case 69:return 86;case 70:return 69;case 71:return 70;case 72:return 5;case 73:return"INVALID"}},"anonymous"),rules:[/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[0-9]+(?=[ \n]+))/i,/^(?:@\{)/i,/^(?:[^\}]+)/i,/^(?:\})/i,/^(?:[^\<->\->:\n,;@\s]+(?=@\{))/i,/^(?:[^\<->\->:\n,;@]+?([\-]*[^\<->\->:\n,;@]+?)*?(?=((?!\n)\s)+as(?!\n)\s|[#\n;]|$))/i,/^(?:box\b)/i,/^(?:participant\b)/i,/^(?:actor\b)/i,/^(?:create\b)/i,/^(?:destroy\b)/i,/^(?:[^<\->\->:\n,;]+?([\-]*[^<\->\->:\n,;]+?)*?(?=((?!\n)\s)+as(?!\n)\s|[#\n;]|$))/i,/^(?:as\b)/i,/^(?:(?:))/i,/^(?:loop\b)/i,/^(?:rect\b)/i,/^(?:opt\b)/i,/^(?:alt\b)/i,/^(?:else\b)/i,/^(?:par\b)/i,/^(?:par_over\b)/i,/^(?:and\b)/i,/^(?:critical\b)/i,/^(?:option\b)/i,/^(?:break\b)/i,/^(?:(?:[:]?(?:no)?wrap)?[^#\n;]*)/i,/^(?:end\b)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:links\b)/i,/^(?:link\b)/i,/^(?:properties\b)/i,/^(?:details\b)/i,/^(?:over\b)/i,/^(?:note\b)/i,/^(?:activate\b)/i,/^(?:deactivate\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:title:\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:sequenceDiagram\b)/i,/^(?:autonumber\b)/i,/^(?:off\b)/i,/^(?:,)/i,/^(?:;)/i,/^(?:[^+<\->\->:\n,;]+((?!(-x|--x|-\)|--\)))[\-]*[^\+<\->\->:\n,;]+)*)/i,/^(?:->>)/i,/^(?:<<->>)/i,/^(?:-->>)/i,/^(?:<<-->>)/i,/^(?:->)/i,/^(?:-->)/i,/^(?:-[x])/i,/^(?:--[x])/i,/^(?:-[\)])/i,/^(?:--[\)])/i,/^(?::(?:(?:no)?wrap)?[^#\n;]*)/i,/^(?::)/i,/^(?:\+)/i,/^(?:-)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[50,51],inclusive:!1},acc_descr:{rules:[48],inclusive:!1},acc_title:{rules:[46],inclusive:!1},ID:{rules:[2,3,7,10,11,17],inclusive:!1},ALIAS:{rules:[2,3,18,19],inclusive:!1},LINE:{rules:[2,3,31],inclusive:!1},CONFIG:{rules:[8,9],inclusive:!1},CONFIG_DATA:{rules:[],inclusive:!1},INITIAL:{rules:[0,1,3,4,5,6,12,13,14,15,16,20,21,22,23,24,25,26,27,28,29,30,32,33,34,35,36,37,38,39,40,41,42,43,44,45,47,49,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73],inclusive:!0}}};t.lexer=B,mt(P,"Parser"),(fSe=new((P.prototype=t).Parser=P)) Line truncated `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:mt(function(){return this.next()||this.lex()},"lex"),begin:mt(function(e){this.conditionStack.push(e)},"begin"),popState:mt(function(){return 0<this.conditionStack.length-1?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:mt(function(){return(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]]:this.conditions.INITIAL).rules},"_currentRules"),topState:mt(function(e){return 0<=(e=this.conditionStack.length-1-Math.abs(e||0))?this.conditionStack[e]:"INITIAL"},"topState"),pushState:mt(function(e){this.begin(e)},"pushState"),stateStackSize:mt(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:mt(function(e,t,r,n){switch(r){case 0:return 5;case 1:case 2:case 3:case 4:case 5:break;case 6:return 19;case 7:return this.begin("CONFIG"),73;case 8:return 74;case 9:return this.popState(),this.popState(),75;case 10:return t.yytext=t.yytext.trim(),71;case 11:return t.yytext=t.yytext.trim(),this.begin("ALIAS"),71;case 12:return this.begin("LINE"),14;case 13:return this.begin("ID"),50;case 14:return this.begin("ID"),52;case 15:return 13;case 16:return this.begin("ID"),53;case 17:return t.yytext=t.yytext.trim(),this.begin("ALIAS"),71;case 18:return this.popState(),this.popState(),this.begin("LINE"),51;case 19:return this.popState(),this.popState(),5;case 20:return this.begin("LINE"),36;case 21:return this.begin("LINE"),37;case 22:return this.begin("LINE"),38;case 23:return this.begin("LINE"),39;case 24:return this.begin("LINE"),49;case 25:return this.begin("LINE"),41;case 26:return this.begin("LINE"),43;case 27:return this.begin("LINE"),48;case 28:return this.begin("LINE"),44;case 29:return this.begin("LINE"),47;case 30:return this.begin("LINE"),46;case 31:return this.popState(),15;case 32:return 16;case 33:return 66;case 34:return 67;case 35:return 60;case 36:return 61;case 37:return 62;case 38:return 63;case 39:return 58;case 40:return 55;case 41:return this.begin("ID"),21;case 42:return this.begin("ID"),23;case 43:return 29;case 44:return 30;case 45:return this.begin("acc_title"),31;case 46:return this.popState(),"acc_title_value";case 47:return this.begin("acc_descr"),33;case 48:return this.popState(),"acc_descr_value";case 49:this.begin("acc_descr_multiline");break;case 50:this.popState();break;case 51:return"acc_descr_multiline_value";case 52:return 6;case 53:return 18;case 54:return 20;case 55:return 65;case 56:return 5;case 57:return t.yytext=t.yytext.trim(),71;case 58:return 78;case 59:return 79;case 60:return 80;case 61:return 81;case 62:return 76;case 63:return 77;case 64:return 82;case 65:return 83;case 66:return 84;case 67:return 85;case 68:case 69:return 86;case 70:return 69;case 71:return 70;case 72:return 5;case 73:return"INVALID"}},"anonymous"),rules:[/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[0-9]+(?=[ \n]+))/i,/^(?:@\{)/i,/^(?:[^\}]+)/i,/^(?:\})/i,/^(?:[^\<->\->:\n,;@\s]+(?=@\{))/i,/^(?:[^\<->\->:\n,;@]+?([\-]*[^\<->\->:\n,;@]+?)*?(?=((?!\n)\s)+as(?!\n)\s|[#\n;]|$))/i,/^(?:box\b)/i,/^(?:participant\b)/i,/^(?:actor\b)/i,/^(?:create\b)/i,/^(?:destroy\b)/i,/^(?:[^<\->\->:\n,;]+?([\-]*[^<\->\->:\n,;]+?)*?(?=((?!\n)\s)+as(?!\n)\s|[#\n;]|$))/i,/^(?:as\b)/i,/^(?:(?:))/i,/^(?:loop\b)/i,/^(?:rect\b)/i,/^(?:opt\b)/i,/^(?:alt\b)/i,/^(?:else\b)/i,/^(?:par\b)/i,/^(?:par_over\b)/i,/^(?:and\b)/i,/^(?:critical\b)/i,/^(?:option\b)/i,/^(?:break\b)/i,/^(?:(?:[:]?(?:no)?wrap)?[^#\n;]*)/i,/^(?:end\b)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:links\b)/i,/^(?:link\b)/i,/^(?:properties\b)/i,/^(?:details\b)/i,/^(?:over\b)/i,/^(?:note\b)/i,/^(?:activate\b)/i,/^(?:deactivate\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:title:\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:sequenceDiagram\b)/i,/^(?:autonumber\b)/i,/^(?:off\b)/i,/^(?:,)/i,/^(?:;)/i,/^(?:[^+<\->\->:\n,;]+((?!(-x|--x|-\)|--\)))[\-]*[^\+<\->\->:\n,;]+)*)/i,/^(?:->>)/i,/^(?:<<->>)/i,/^(?:-->>)/i,/^(?:<<-->>)/i,/^(?:->)/i,/^(?:-->)/i,/^(?:-[x])/i,/^(?:--[x])/i,/^(?:-[\)])/i,/^(?:--[\)])/i,/^(?::(?:(?:no)?wrap)?[^#\n;]*)/i,/^(?::)/i,/^(?:\+)/i,/^(?:-)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[50,51],inclusive:!1},acc_descr:{rules:[48],inclusive:!1},acc_title:{rules:[46],inclusive:!1},ID:{rules:[2,3,7,10,11,17],inclusive:!1},ALIAS:{rules:[2,3,18,19],inclusive:!1},LINE:{rules:[2,3,31],inclusive:!1},CONFIG:{rules:[8,9],inclusive:!1},CONFIG_DATA:{rules:[],inclusive:!1},INITIAL:{rules:[0,1,3,4,5,6,12,13,14,15,16,20,21,22,23,24,25,26,27,28,29,30,32,33,34,35,36,37,38,39,40,41,42,43,44,45,47,49,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73],inclusive:!0}}};t.lexer=B,mt(P,"Parser"),(m_e=new((P.prototype=t).Parser=P)) Line truncated
`)?i+` `)?i+`
`:`{ `:`{
`+i+` `+i+`
}`,s=$9(o,{schema:B9})),n=s?.type??n,i=this.state.records.actors.get(e)){if(this.state.records.currentBox&&i.box&&this.state.records.currentBox!==i.box)throw new Error(`A same participant should only be defined in one Box: ${i.name} can't be in '${i.box.name}' and in '${this.state.records.currentBox.name}' at the same time.`);if(a=i.box||this.state.records.currentBox,i.box=a,i&&t===i.name&&null==r)return}null==r?.text&&(r={text:t,type:n}),null!=n&&null!=r.text||(r={text:t,type:n}),this.state.records.actors.set(e,{box:a,name:t,description:r.text,wrap:r.wrap??this.autoWrap(),prevActor:this.state.records.prevActor,links:{},properties:{},actorCnt:null,rectData:null,type:n??"participant"}),this.state.records.prevActor&&(i=this.state.records.actors.get(this.state.records.prevActor))&&(i.nextActor=e),this.state.records.currentBox&&this.state.records.currentBox.actorKeys.push(e),this.state.records.prevActor=e}activationCount(e){let t,r=0;if(!e)return 0;for(t=0;t<this.state.records.messages.length;t++)this.state.records.messages[t].type===this.LINETYPE.ACTIVE_START&&this.state.records.messages[t].from===e&&r++,this.state.records.messages[t].type===this.LINETYPE.ACTIVE_END&&this.state.records.messages[t].from===e&&r--;return r}addMessage(e,t,r,n){this.state.records.messages.push({id:this.state.records.messages.length.toString(),from:e,to:t,message:r.text,wrap:r.wrap??this.autoWrap(),answer:n})}addSignal(e,t,r,n,i=!1){var a;if(n===this.LINETYPE.ACTIVE_END&&this.activationCount(e??"")<1)throw(a=new Error("Trying to inactivate an inactive participant ("+e+")")).hash={text:"->>-",token:"->>-",line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["'ACTIVE_PARTICIPANT'"]},a;return this.state.records.messages.push({id:this.state.records.messages.length.toString(),from:e,to:t,message:r?.text??"",wrap:r?.wrap??this.autoWrap(),type:n,activate:i}),!0}hasAtLeastOneBox(){return 0<this.state.records.boxes.length}hasAtLeastOneBoxWithTitle(){return this.state.records.boxes.some(e=>e.name)}getMessages(){return this.state.records.messages}getBoxes(){return this.state.records.boxes}getActors(){return this.state.records.actors}getCreatedActors(){return this.state.records.createdActors}getDestroyedActors(){return this.state.records.destroyedActors}getActor(e){return this.state.records.actors.get(e)}getActorKeys(){return[...this.state.records.actors.keys()]}enableSequenceNumbers(){this.state.records.sequenceNumbersEnabled=!0}disableSequenceNumbers(){this.state.records.sequenceNumbersEnabled=!1}showSequenceNumbers(){return this.state.records.sequenceNumbersEnabled}setWrap(e){this.state.records.wrapEnabled=e}extractWrap(e){if(void 0===e)return{};e=e.trim();var t=null!==/^:?wrap:/.exec(e)||null===/^:?nowrap:/.exec(e)&&void 0;return{cleanedText:(void 0===t?e:e.replace(/^:?(?:no)?wrap:/,"")).trim(),wrap:t}}autoWrap(){return void 0!==this.state.records.wrapEnabled?this.state.records.wrapEnabled:O().sequence?.wrap??!1}clear(){this.state.reset(),fh()}parseMessage(e){var e=e.trim(),{wrap:e,cleanedText:t}=this.extractWrap(e),t={text:t,wrap:e};return D.debug("parseMessage: "+JSON.stringify(t)),t}parseBoxData(e){let t=/^((?:rgba?|hsla?)\s*\(.*\)|\w*)(.*)$/.exec(e),r=t?.[1]?t[1].trim():"transparent",n=t?.[2]?t[2].trim():void 0;window?.CSS?window.CSS.supports("color",r)||(r="transparent",n=e.trim()):((i=(new Option).style).color=r,i.color!==r&&(r="transparent",n=e.trim()));var{wrap:i,cleanedText:e}=this.extractWrap(n);return{text:e?lc(e,O()):void 0,color:r,wrap:i}}addNote(e,t,r){var n={actor:e,placement:t,message:r.text,wrap:r.wrap??this.autoWrap()},e=[].concat(e,e);this.state.records.notes.push(n),this.state.records.messages.push({id:this.state.records.messages.length.toString(),from:e[0],to:e[1],message:r.text,wrap:r.wrap??this.autoWrap(),type:this.LINETYPE.NOTE,placement:t})}addLinks(t,r){t=this.getActor(t);try{let e=lc(r.text,O());e=(e=e.replace(/&equals;/g,"=")).replace(/&amp;/g,"&");var n=JSON.parse(e);this.insertLinks(t,n)}catch(e){D.error("error while parsing actor link text",e)}}addALink(a,s){a=this.getActor(a);try{let e={},t=lc(s.text,O()),r=t.indexOf("@"),n=(t=(t=t.replace(/&equals;/g,"=")).replace(/&amp;/g,"&")).slice(0,r-1).trim(),i=t.slice(r+1).trim();e[n]=i,this.insertLinks(a,e)}catch(e){D.error("error while parsing actor link text",e)}}insertLinks(e,t){if(null==e.links)e.links=t;else for(var r in t)e.links[r]=t[r]}addProperties(e,t){e=this.getActor(e);try{var r=lc(t.text,O()),n=JSON.parse(r);this.insertProperties(e,n)}catch(e){D.error("error while parsing actor properties text",e)}}insertProperties(e,t){if(null==e.properties)e.properties=t;else for(var r in t)e.properties[r]=t[r]}boxEnd(){this.state.records.currentBox=void 0}addDetails(e,t){e=this.getActor(e),t=document.getElementById(t.text);try{var r=t.innerHTML,n=JSON.parse(r);n.properties&&this.insertProperties(e,n.properties),n.links&&this.insertLinks(e,n.links)}catch(e){D.error("error while parsing actor details text",e)}}getActorProperty(e,t){if(void 0!=Line truncated }`,s=$9(o,{schema:B9})),n=s?.type??n,i=this.state.records.actors.get(e)){if(this.state.records.currentBox&&i.box&&this.state.records.currentBox!==i.box)throw new Error(`A same participant should only be defined in one Box: ${i.name} can't be in '${i.box.name}' and in '${this.state.records.currentBox.name}' at the same time.`);if(a=i.box||this.state.records.currentBox,i.box=a,i&&t===i.name&&null==r)return}null==r?.text&&(r={text:t,type:n}),null!=n&&null!=r.text||(r={text:t,type:n}),this.state.records.actors.set(e,{box:a,name:t,description:r.text,wrap:r.wrap??this.autoWrap(),prevActor:this.state.records.prevActor,links:{},properties:{},actorCnt:null,rectData:null,type:n??"participant"}),this.state.records.prevActor&&(i=this.state.records.actors.get(this.state.records.prevActor))&&(i.nextActor=e),this.state.records.currentBox&&this.state.records.currentBox.actorKeys.push(e),this.state.records.prevActor=e}activationCount(e){let t,r=0;if(!e)return 0;for(t=0;t<this.state.records.messages.length;t++)this.state.records.messages[t].type===this.LINETYPE.ACTIVE_START&&this.state.records.messages[t].from===e&&r++,this.state.records.messages[t].type===this.LINETYPE.ACTIVE_END&&this.state.records.messages[t].from===e&&r--;return r}addMessage(e,t,r,n){this.state.records.messages.push({id:this.state.records.messages.length.toString(),from:e,to:t,message:r.text,wrap:r.wrap??this.autoWrap(),answer:n})}addSignal(e,t,r,n,i=!1){var a;if(n===this.LINETYPE.ACTIVE_END&&this.activationCount(e??"")<1)throw(a=new Error("Trying to inactivate an inactive participant ("+e+")")).hash={text:"->>-",token:"->>-",line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["'ACTIVE_PARTICIPANT'"]},a;return this.state.records.messages.push({id:this.state.records.messages.length.toString(),from:e,to:t,message:r?.text??"",wrap:r?.wrap??this.autoWrap(),type:n,activate:i}),!0}hasAtLeastOneBox(){return 0<this.state.records.boxes.length}hasAtLeastOneBoxWithTitle(){return this.state.records.boxes.some(e=>e.name)}getMessages(){return this.state.records.messages}getBoxes(){return this.state.records.boxes}getActors(){return this.state.records.actors}getCreatedActors(){return this.state.records.createdActors}getDestroyedActors(){return this.state.records.destroyedActors}getActor(e){return this.state.records.actors.get(e)}getActorKeys(){return[...this.state.records.actors.keys()]}enableSequenceNumbers(){this.state.records.sequenceNumbersEnabled=!0}disableSequenceNumbers(){this.state.records.sequenceNumbersEnabled=!1}showSequenceNumbers(){return this.state.records.sequenceNumbersEnabled}setWrap(e){this.state.records.wrapEnabled=e}extractWrap(e){if(void 0===e)return{};e=e.trim();var t=null!==/^:?wrap:/.exec(e)||null===/^:?nowrap:/.exec(e)&&void 0;return{cleanedText:(void 0===t?e:e.replace(/^:?(?:no)?wrap:/,"")).trim(),wrap:t}}autoWrap(){return void 0!==this.state.records.wrapEnabled?this.state.records.wrapEnabled:O().sequence?.wrap??!1}clear(){this.state.reset(),fh()}parseMessage(e){var e=e.trim(),{wrap:e,cleanedText:t}=this.extractWrap(e),t={text:t,wrap:e};return D.debug("parseMessage: "+JSON.stringify(t)),t}parseBoxData(e){let t=/^((?:rgba?|hsla?)\s*\(.*\)|\w*)(.*)$/.exec(e),r=t?.[1]?t[1].trim():"transparent",n=t?.[2]?t[2].trim():void 0;window?.CSS?window.CSS.supports("color",r)||(r="transparent",n=e.trim()):((i=(new Option).style).color=r,i.color!==r&&(r="transparent",n=e.trim()));var{wrap:i,cleanedText:e}=this.extractWrap(n);return{text:e?lc(e,O()):void 0,color:r,wrap:i}}addNote(e,t,r){var n={actor:e,placement:t,message:r.text,wrap:r.wrap??this.autoWrap()},e=[].concat(e,e);this.state.records.notes.push(n),this.state.records.messages.push({id:this.state.records.messages.length.toString(),from:e[0],to:e[1],message:r.text,wrap:r.wrap??this.autoWrap(),type:this.LINETYPE.NOTE,placement:t})}addLinks(t,r){t=this.getActor(t);try{let e=lc(r.text,O());e=(e=e.replace(/&equals;/g,"=")).replace(/&amp;/g,"&");var n=JSON.parse(e);this.insertLinks(t,n)}catch(e){D.error("error while parsing actor link text",e)}}addALink(a,s){a=this.getActor(a);try{let e={},t=lc(s.text,O()),r=t.indexOf("@"),n=(t=(t=t.replace(/&equals;/g,"=")).replace(/&amp;/g,"&")).slice(0,r-1).trim(),i=t.slice(r+1).trim();e[n]=i,this.insertLinks(a,e)}catch(e){D.error("error while parsing actor link text",e)}}insertLinks(e,t){if(null==e.links)e.links=t;else for(var r in t)e.links[r]=t[r]}addProperties(e,t){e=this.getActor(e);try{var r=lc(t.text,O()),n=JSON.parse(r);this.insertProperties(e,n)}catch(e){D.error("error while parsing actor properties text",e)}}insertProperties(e,t){if(null==e.properties)e.properties=t;else for(var r in t)e.properties[r]=t[r]}boxEnd(){this.state.records.currentBox=void 0}addDetails(e,t){e=this.getActor(e),t=document.getElementById(t.text);try{var r=t.innerHTML,n=JSON.parse(r);n.properties&&this.insertProperties(e,n.properties),n.links&&this.insertLinks(e,n.links)}catch(e){D.error("error while parsing actor details text",e)}}getActorProperty(e,t){if(void 0!=Line truncated
stroke: ${e.actorBorder}; stroke: ${e.actorBorder};
fill: ${e.actorBkg}; fill: ${e.actorBkg};
} }
@@ -1754,25 +1754,25 @@ Expecting `+A.join(", ")+", got '"+(this.terminals_[x]||x)+"'":"Parse error on l
stroke-width: 2px; stroke-width: 2px;
} }
`,"getStyles"),TSe=kSe}),gAe=b(()=>{function t(e,t,r,n,i,a,s){g(t.append("text").attr("x",r).attr("y",n).style("text-anchor","start").text(e),s)}function l(e,t,r,n,i,a,s,o){var{actorFontSize:l,actorFontFamily:c,actorFontWeight:h}=o,u=e.split(L.lineBreakRegex);for(let e=0;e<u.length;e++){var d=e*l-l*(u.length-1)/2,p=t.append("text").attr("x",r).attr("y",n).style("text-anchor","start").style("font-size",l).style("font-weight",h).style("font-family",c);p.append("tspan").attr("x",r).attr("dy",d).text(u[e]),p.attr("y",n+a/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),g(p,s)}}function r(e,t,r,n,i,a,s,o){(i=(t=t.append("switch")).append("foreignObject").attr("x",r).attr("y",n).attr("width",i).attr("height",a).append("xhtml:div").style("display","table").style("height","100%").style("width","100%")).append("div").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(e),l(e,t,r,n,0,a,s,o),g(i,s)}function g(e,t){for(var r in t)t.hasOwnProperty(r)&&e.attr(r,t[r])}function n(e,t,r,n,i,a,s){f(t.append("text").attr("x",r+i/2).attr("y",n+a/2+5).style("text-anchor","middle").text(e),s)}function c(e,t,r,n,i,a,s,o){var{actorFontSize:o,actorFontFamily:l,actorFontWeight:c}=o,[h,u]=JC(o),d=e.split(L.lineBreakRegex);for(let e=0;e<d.length;e++){var p=e*h-h*(d.length-1)/2,g=t.append("text").attr("x",r+i/2).attr("y",n).style("text-anchor","middle").style("font-size",u).style("font-weight",c).style("font-family",l);g.append("tspan").attr("x",r+i/2).attr("dy",p).text(d[e]),g.attr("y",n+a/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),f(g,s)}}function i(e,t,r,n,i,a,s,o){var l=(t=t.append("switch")).append("foreignObject").attr("x",r).attr("y",n).attr("width",i).attr("height",a).append("xhtml:div").style("display","table").style("height","100%").style("width","100%");l.append("div").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(e),c(e,t,r,n,i,a,s,o),f(l,s)}async function a(e,t,r,n,i,a,s,o){var l=await Cc(e,ar());(l=(t=t.append("switch")).append("foreignObject").attr("x",r+i/2-l.width/2).attr("y",n+a/2-l.height/2).attr("width",l.width).attr("height",l.height).append("xhtml:div").style("height","100%").style("width","100%")).append("div").style("text-align","center").style("vertical-align","middle").html(await Sc(e,ar())),c(e,t,r,n,i,a,s,o),f(l,s)}function f(e,t){for(var r in t)t.hasOwnProperty(r)&&e.attr(r,t[r])}ESe=q(s6(),1),rn(),i_(),Oc(),o6(),CSe=36,_Se="actor-top",SSe="actor-bottom",ASe="actor-box",LSe="actor-man",NSe=mt(function(e,t){return Ew(e,t)},"drawRect"),ISe=mt(function(e,t,r,n,i){if(null==t.links||0===Object.keys(t.links).length)return{height:0,width:0};var a=t.links,s=t.actorCnt,o=t.rectData,t="none",l=(i&&(t="block !important"),e.append("g")),i=(l.attr("id","actor"+s+"_popup"),l.attr("class","actorPopupMenu"),l.attr("display",t),""),c=(void 0!==o.class&&(i=" "+o.class),o.width>r?o.width:r);if((e=l.append("rect")).attr("class","actorPopupMenuPanel"+i),e.attr("x",o.x),e.attr("y",o.height),e.attr("fill",o.fill),e.attr("stroke",o.stroke),e.attr("width",c),e.attr("height",o.height),e.attr("rx",o.rx),e.attr("ry",o.ry),null!=a){var h,u=20;for(h in a){var d=l.append("a"),p=(0,ESe.sanitizeUrl)(a[h]);d.attr("xlink:href",p),d.attr("target","_blank"),lAe(n)(h,d,o.x+10,o.height+u,c,20,{class:"actor"},n),u+=30}}return e.attr("height",u),{height:o.height+u,width:c}},"drawPopup"),RSe=mt(function(e){return"var pu = document.getElementById('"+e+"'); if (pu != null) { pu.style.display = pu.style.display == 'block' ? 'none' : 'block'; }"},"popupMenuToggle"),MSe=mt(async function(n,i,a=null){var s=n.append("foreignObject"),o=await Sc(i.text,ar()),o=s.append("xhtml:div").attr("style","width: fit-content;").attr("xmlns","http://www.w3.org/1999/xhtml").html(o).node().getBoundingClientRect();if(s.attr("height",Math.round(o.height)).attr("width",Math.round(o.width)),"noteText"===i.class)(n=n.node().firstChild).setAttribute("height",o.height+2*i.textMargin),n=n.getBBox(),s.attr("x",Math.round(n.x+n.width/2-o.width/2)).attr("y",Math.round(n.y+n.height/2-o.height/2));else if(a){let{startx:e,stopx:t,starty:r}=a;e>t&&(n=e,e=t,t=n),s.attr("x",Math.round(e+Math.abs(e-t)/2-o.width/2)),"loopText"===i.class?s.attr("y",Math.round(r)):s.attr("y",Math.round(r-o.height))}return[s]},"drawKatex"),DSe=mt(function(e,t){let r=0,n=0,i=t.text.split(L.lineBreakRegex),[a,s]=JC(t.fontSize),o=[],l=0,c=mt(()=>t.y,"yfunc");if(void 0!==t.valign&&void 0!==t.textMargin&&0<t.textMargin)switch(t.valign){case"top":case"start":c=mt(()=>Math.round(t.y+t.textMargin),"yfunc");break;case"middle":case"center":c=mt(()=>Math.round(t.y+(r+n+t.textMargin)/2),"yfunc");break;case"bottom":case"end":c=mt(()=>Math.round(t.y+(r+n+2*t.textMargin)-t.textMargin),"yfunc")}if(void 0!==t.anchor&&void 0!==t.textMargin&&void 0!==t.width)switch(t.anchor){case"left":case"start":t.x=Math.round(t.x+t.textMargin),t.anchor="start",t.dominantBaseline="middle" Line truncated `,"getStyles"),E_e=T_e}),fAe=b(()=>{function t(e,t,r,n,i,a,s){g(t.append("text").attr("x",r).attr("y",n).style("text-anchor","start").text(e),s)}function l(e,t,r,n,i,a,s,o){var{actorFontSize:l,actorFontFamily:c,actorFontWeight:h}=o,u=e.split(N.lineBreakRegex);for(let e=0;e<u.length;e++){var d=e*l-l*(u.length-1)/2,p=t.append("text").attr("x",r).attr("y",n).style("text-anchor","start").style("font-size",l).style("font-weight",h).style("font-family",c);p.append("tspan").attr("x",r).attr("dy",d).text(u[e]),p.attr("y",n+a/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),g(p,s)}}function r(e,t,r,n,i,a,s,o){(i=(t=t.append("switch")).append("foreignObject").attr("x",r).attr("y",n).attr("width",i).attr("height",a).append("xhtml:div").style("display","table").style("height","100%").style("width","100%")).append("div").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(e),l(e,t,r,n,0,a,s,o),g(i,s)}function g(e,t){for(var r in t)t.hasOwnProperty(r)&&e.attr(r,t[r])}function n(e,t,r,n,i,a,s){f(t.append("text").attr("x",r+i/2).attr("y",n+a/2+5).style("text-anchor","middle").text(e),s)}function c(e,t,r,n,i,a,s,o){var{actorFontSize:o,actorFontFamily:l,actorFontWeight:c}=o,[h,u]=JC(o),d=e.split(N.lineBreakRegex);for(let e=0;e<d.length;e++){var p=e*h-h*(d.length-1)/2,g=t.append("text").attr("x",r+i/2).attr("y",n).style("text-anchor","middle").style("font-size",u).style("font-weight",c).style("font-family",l);g.append("tspan").attr("x",r+i/2).attr("dy",p).text(d[e]),g.attr("y",n+a/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),f(g,s)}}function i(e,t,r,n,i,a,s,o){var l=(t=t.append("switch")).append("foreignObject").attr("x",r).attr("y",n).attr("width",i).attr("height",a).append("xhtml:div").style("display","table").style("height","100%").style("width","100%");l.append("div").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(e),c(e,t,r,n,i,a,s,o),f(l,s)}async function a(e,t,r,n,i,a,s,o){var l=await Cc(e,ar());(l=(t=t.append("switch")).append("foreignObject").attr("x",r+i/2-l.width/2).attr("y",n+a/2-l.height/2).attr("width",l.width).attr("height",l.height).append("xhtml:div").style("height","100%").style("width","100%")).append("div").style("text-align","center").style("vertical-align","middle").html(await _c(e,ar())),c(e,t,r,n,i,a,s,o),f(l,s)}function f(e,t){for(var r in t)t.hasOwnProperty(r)&&e.attr(r,t[r])}C_e=q(s6(),1),rn(),iS(),Oc(),o6(),S_e=36,__e="actor-top",A_e="actor-bottom",L_e="actor-box",N_e="actor-man",I_e=mt(function(e,t){return Ew(e,t)},"drawRect"),R_e=mt(function(e,t,r,n,i){if(null==t.links||0===Object.keys(t.links).length)return{height:0,width:0};var a=t.links,s=t.actorCnt,o=t.rectData,t="none",l=(i&&(t="block !important"),e.append("g")),i=(l.attr("id","actor"+s+"_popup"),l.attr("class","actorPopupMenu"),l.attr("display",t),""),c=(void 0!==o.class&&(i=" "+o.class),o.width>r?o.width:r);if((e=l.append("rect")).attr("class","actorPopupMenuPanel"+i),e.attr("x",o.x),e.attr("y",o.height),e.attr("fill",o.fill),e.attr("stroke",o.stroke),e.attr("width",c),e.attr("height",o.height),e.attr("rx",o.rx),e.attr("ry",o.ry),null!=a){var h,u=20;for(h in a){var d=l.append("a"),p=(0,C_e.sanitizeUrl)(a[h]);d.attr("xlink:href",p),d.attr("target","_blank"),cAe(n)(h,d,o.x+10,o.height+u,c,20,{class:"actor"},n),u+=30}}return e.attr("height",u),{height:o.height+u,width:c}},"drawPopup"),M_e=mt(function(e){return"var pu = document.getElementById('"+e+"'); if (pu != null) { pu.style.display = pu.style.display == 'block' ? 'none' : 'block'; }"},"popupMenuToggle"),D_e=mt(async function(n,i,a=null){var s=n.append("foreignObject"),o=await _c(i.text,ar()),o=s.append("xhtml:div").attr("style","width: fit-content;").attr("xmlns","http://www.w3.org/1999/xhtml").html(o).node().getBoundingClientRect();if(s.attr("height",Math.round(o.height)).attr("width",Math.round(o.width)),"noteText"===i.class)(n=n.node().firstChild).setAttribute("height",o.height+2*i.textMargin),n=n.getBBox(),s.attr("x",Math.round(n.x+n.width/2-o.width/2)).attr("y",Math.round(n.y+n.height/2-o.height/2));else if(a){let{startx:e,stopx:t,starty:r}=a;e>t&&(n=e,e=t,t=n),s.attr("x",Math.round(e+Math.abs(e-t)/2-o.width/2)),"loopText"===i.class?s.attr("y",Math.round(r)):s.attr("y",Math.round(r-o.height))}return[s]},"drawKatex"),O_e=mt(function(e,t){let r=0,n=0,i=t.text.split(N.lineBreakRegex),[a,s]=JC(t.fontSize),o=[],l=0,c=mt(()=>t.y,"yfunc");if(void 0!==t.valign&&void 0!==t.textMargin&&0<t.textMargin)switch(t.valign){case"top":case"start":c=mt(()=>Math.round(t.y+t.textMargin),"yfunc");break;case"middle":case"center":c=mt(()=>Math.round(t.y+(r+n+t.textMargin)/2),"yfunc");break;case"bottom":case"end":c=mt(()=>Math.round(t.y+(r+n+2*t.textMargin)-t.textMargin),"yfunc")}if(void 0!==t.anchor&&void 0!==t.textMargin&&void 0!==t.width)switch(t.anchor){case"left":case"start":t.x=Math.round(t.x+t.textMargin),t.anchor="start",t.dominantBaseline="middle" Line truncated
a ${n},${e} 0 0 0 0,${c.height} a ${n},${e} 0 0 0 0,${c.height}
h ${c.width-2*n} h ${c.width-2*n}
a ${n},${e} 0 0 0 0,-${c.height} a ${n},${e} 0 0 0 0,-${c.height}
Z Z
`).attr("class",h),d.append("path").attr("d",`M ${c.x},${c.y+e} `).attr("class",h),d.append("path").attr("d",`M ${c.x},${c.y+e}
a ${n},${e} 0 0 0 0,`+c.height).attr("stroke","#666").attr("stroke-width","1px").attr("class",h),u.attr("transform",`translate(${n}, ${-c.height/2})`),d.attr("transform",`translate(${c.width-n}, ${-c.height/2})`),t.rectData=c,t.properties?.icon&&(e=t.properties.icon.trim(),d=c.x+c.width-20,n=c.y+10,"@"===e.charAt(0)?Aw(l,d,n,e.substr(1)):Sw(l,d,n,e)),oAe(r,Ec(t.description))(t.description,l,c.x,c.y,c.width,c.height,{class:"actor "+ASe},r);let p=t.height,g=u.select("path:last-child");return g.node()&&(d=g.node().getBBox(),t.height=d.height,p=d.height),p},"drawActorTypeQueue"),GSe=mt(function(e,t,r,n){var i=n?t.stopy:t.starty,a=t.x+t.width/2,s=i+75,o=e.append("g").lower(),l=(n||(PSe++,o.append("line").attr("id","actor"+PSe).attr("x1",a).attr("y1",s).attr("x2",a).attr("y2",2e3).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",t.name),t.actorCnt=PSe),e.append("g")),c=LSe;return l.attr("class",c+=n?" "+SSe:" "+_Se),l.attr("name",t.name),(o=Lw()).x=t.x,o.y=i,o.fill="#eaeaea",o.width=t.width,o.height=t.height,o.class="actor",s=t.x+t.width/2,a=i+30,l.append("defs").append("marker").attr("id","filled-head-control").attr("refX",11).attr("refY",5.8).attr("markerWidth",20).attr("markerHeight",28).attr("orient","172.5").append("path").attr("d","M 14.4 5.6 L 7.2 10.4 L 8.8 5.6 L 7.2 0.8 Z"),l.append("circle").attr("cx",s).attr("cy",a).attr("r",18).attr("fill","#eaeaf7").attr("stroke","#666").attr("stroke-width",1.2),l.append("line").attr("marker-end","url(#filled-head-control)").attr("transform",`translate(${s}, ${a-18})`),e=l.node().getBBox(),t.height=e.height+2*(r?.sequence?.labelBoxHeight??0),oAe(r,Ec(t.description))(t.description,l,o.x,o.y+18+(n?5:10),o.width,o.height,{class:"actor "+LSe},r),t.height},"drawActorTypeControl"),USe=mt(function(e,t,r,n){var i=n?t.stopy:t.starty,a=t.x+t.width/2,s=i+75,o=e.append("g").lower(),l=e.append("g"),c=LSe,c=(l.attr("class",c+=n?" "+SSe:" "+_Se),l.attr("name",t.name),(e=Lw()).x=t.x,e.y=i,e.fill="#eaeaea",e.width=t.width,e.height=t.height,e.class="actor",t.x+t.width/2),h=i+(n?10:25),c=(l.append("circle").attr("cx",c).attr("cy",h).attr("r",18).attr("width",t.width).attr("height",t.height),l.append("line").attr("x1",c-18).attr("x2",c+18).attr("y1",h+18).attr("y2",h+18).attr("stroke","#333").attr("stroke-width",2),l.node().getBBox());return t.height=c.height+(r?.sequence?.labelBoxHeight??0),n||(PSe++,o.append("line").attr("id","actor"+PSe).attr("x1",a).attr("y1",s).attr("x2",a).attr("y2",2e3).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",t.name),t.actorCnt=PSe),oAe(r,Ec(t.description))(t.description,l,e.x,e.y+(n?(h-i+18-5)/2:(h+18-i)/2),e.width,e.height,{class:"actor "+LSe},r),l.attr("transform","translate(0, 9)"),t.height},"drawActorTypeEntity"),qSe=mt(function(e,t,r,n){let i=n?t.stopy:t.starty,a=t.x+t.width/2,s=i+t.height+2*r.boxTextMargin,o=e.append("g").lower(),l=o,c=(n||(PSe++,Object.keys(t.links||{}).length&&!r.forceMenus&&l.attr("onclick",RSe(`actor${PSe}_popup`)).attr("cursor","pointer"),l.append("line").attr("id","actor"+PSe).attr("x1",a).attr("y1",s).attr("x2",a).attr("y2",2e3).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",t.name),l=o.append("g"),t.actorCnt=PSe,null!=t.links&&l.attr("id","root-"+PSe)),Lw()),h="actor";t.properties?.class?h=t.properties.class:c.fill="#eaeaea",h+=n?" "+SSe:" "+_Se,c.x=t.x,c.y=i,c.width=t.width,c.height=t.height,c.class=h,c.name=t.name,c.x=t.x,c.y=i;var e=c.width/4,u=c.width/4,d=(g=e/2)/(2.5+e/50),p=l.append("g"),g=` a ${n},${e} 0 0 0 0,`+c.height).attr("stroke","#666").attr("stroke-width","1px").attr("class",h),u.attr("transform",`translate(${n}, ${-c.height/2})`),d.attr("transform",`translate(${c.width-n}, ${-c.height/2})`),t.rectData=c,t.properties?.icon&&(e=t.properties.icon.trim(),d=c.x+c.width-20,n=c.y+10,"@"===e.charAt(0)?Aw(l,d,n,e.substr(1)):_w(l,d,n,e)),lAe(r,Ec(t.description))(t.description,l,c.x,c.y,c.width,c.height,{class:"actor "+L_e},r);let p=t.height,g=u.select("path:last-child");return g.node()&&(d=g.node().getBBox(),t.height=d.height,p=d.height),p},"drawActorTypeQueue"),U_e=mt(function(e,t,r,n){var i=n?t.stopy:t.starty,a=t.x+t.width/2,s=i+75,o=e.append("g").lower(),l=(n||(B_e++,o.append("line").attr("id","actor"+B_e).attr("x1",a).attr("y1",s).attr("x2",a).attr("y2",2e3).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",t.name),t.actorCnt=B_e),e.append("g")),c=N_e;return l.attr("class",c+=n?" "+A_e:" "+__e),l.attr("name",t.name),(o=Lw()).x=t.x,o.y=i,o.fill="#eaeaea",o.width=t.width,o.height=t.height,o.class="actor",s=t.x+t.width/2,a=i+30,l.append("defs").append("marker").attr("id","filled-head-control").attr("refX",11).attr("refY",5.8).attr("markerWidth",20).attr("markerHeight",28).attr("orient","172.5").append("path").attr("d","M 14.4 5.6 L 7.2 10.4 L 8.8 5.6 L 7.2 0.8 Z"),l.append("circle").attr("cx",s).attr("cy",a).attr("r",18).attr("fill","#eaeaf7").attr("stroke","#666").attr("stroke-width",1.2),l.append("line").attr("marker-end","url(#filled-head-control)").attr("transform",`translate(${s}, ${a-18})`),e=l.node().getBBox(),t.height=e.height+2*(r?.sequence?.labelBoxHeight??0),lAe(r,Ec(t.description))(t.description,l,o.x,o.y+18+(n?5:10),o.width,o.height,{class:"actor "+N_e},r),t.height},"drawActorTypeControl"),q_e=mt(function(e,t,r,n){var i=n?t.stopy:t.starty,a=t.x+t.width/2,s=i+75,o=e.append("g").lower(),l=e.append("g"),c=N_e,c=(l.attr("class",c+=n?" "+A_e:" "+__e),l.attr("name",t.name),(e=Lw()).x=t.x,e.y=i,e.fill="#eaeaea",e.width=t.width,e.height=t.height,e.class="actor",t.x+t.width/2),h=i+(n?10:25),c=(l.append("circle").attr("cx",c).attr("cy",h).attr("r",18).attr("width",t.width).attr("height",t.height),l.append("line").attr("x1",c-18).attr("x2",c+18).attr("y1",h+18).attr("y2",h+18).attr("stroke","#333").attr("stroke-width",2),l.node().getBBox());return t.height=c.height+(r?.sequence?.labelBoxHeight??0),n||(B_e++,o.append("line").attr("id","actor"+B_e).attr("x1",a).attr("y1",s).attr("x2",a).attr("y2",2e3).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",t.name),t.actorCnt=B_e),lAe(r,Ec(t.description))(t.description,l,e.x,e.y+(n?(h-i+18-5)/2:(h+18-i)/2),e.width,e.height,{class:"actor "+N_e},r),l.attr("transform","translate(0, 9)"),t.height},"drawActorTypeEntity"),j_e=mt(function(e,t,r,n){let i=n?t.stopy:t.starty,a=t.x+t.width/2,s=i+t.height+2*r.boxTextMargin,o=e.append("g").lower(),l=o,c=(n||(B_e++,Object.keys(t.links||{}).length&&!r.forceMenus&&l.attr("onclick",M_e(`actor${B_e}_popup`)).attr("cursor","pointer"),l.append("line").attr("id","actor"+B_e).attr("x1",a).attr("y1",s).attr("x2",a).attr("y2",2e3).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",t.name),l=o.append("g"),t.actorCnt=B_e,null!=t.links&&l.attr("id","root-"+B_e)),Lw()),h="actor";t.properties?.class?h=t.properties.class:c.fill="#eaeaea",h+=n?" "+A_e:" "+__e,c.x=t.x,c.y=i,c.width=t.width,c.height=t.height,c.class=h,c.name=t.name,c.x=t.x,c.y=i;var e=c.width/4,u=c.width/4,d=(g=e/2)/(2.5+e/50),p=l.append("g"),g=`
M ${c.x},${c.y+d} M ${c.x},${c.y+d}
a ${g},${d} 0 0 0 ${e},0 a ${g},${d} 0 0 0 ${e},0
a ${g},${d} 0 0 0 -${e},0 a ${g},${d} 0 0 0 -${e},0
l 0,${u-2*d} l 0,${u-2*d}
a ${g},${d} 0 0 0 ${e},0 a ${g},${d} 0 0 0 ${e},0
l 0,-${u-2*d} l 0,-${u-2*d}
`;return p.append("path").attr("d",g).attr("fill","#eaeaea").attr("stroke","#000").attr("stroke-width",1).attr("class",h),n?p.attr("transform",`translate(${1.5*e}, ${c.height/4-2*d})`):p.attr("transform",`translate(${1.5*e}, ${(c.height+d)/4})`),t.rectData=c,oAe(r,Ec(t.description))(t.description,l,c.x,c.y+(n?(c.height+u)/4:(c.height+d)/2),c.width,c.height,{class:"actor "+ASe},r),(g=p.select("path:last-child")).node()&&(e=g.node().getBBox(),t.height=e.height+(r.sequence.labelBoxHeight??0)),t.height},"drawActorTypeDatabase"),jSe=mt(function(e,t,r,n){var i=n?t.stopy:t.starty,a=t.x+t.width/2,s=i+80,o=e.append("g").lower(),a=(n||(PSe++,o.append("line").attr("id","actor"+PSe).attr("x1",a).attr("y1",s).attr("x2",a).attr("y2",2e3).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",t.name),t.actorCnt=PSe),e.append("g")),e=LSe;return a.attr("class",e+=n?" "+SSe:" "+_Se),a.attr("name",t.name),(o=Lw()).x=t.x,o.y=i,o.fill="#eaeaea",o.width=t.width,o.height=t.height,o.class="actor",a.append("line").attr("id","actor-man-torso"+PSe).attr("x1",t.x+t.width/2-75).attr("y1",i+10).attr("x2",t.x+t.width/2-15).attr("y2",i+10),a.append("line").attr("id","actor-man-arms"+PSe).attr("x1",t.x+t.width/2-75).attr("y1",i+0).attr("x2",t.x+t.width/2-75).attr("y2",i+20),a.append("circle").attr("cx",t.x+t.width/2).attr("cy",i+10).attr("r",30),s=a.node().getBBox(),t.height=s.height+(r.sequence.labelBoxHeight??0),oAe(r,Ec(t.description))(t.description,a,o.x,o.y+(n?11:18),o.width,o.height,{class:"actor "+LSe},r),a.attr("transform","translate(0,22)"),t.height},"drawActorTypeBoundary"),YSe=mt(function(e,t,r,n){var i=n?t.stopy:t.starty,a=t.x+t.width/2,s=i+80,o=e.append("g").lower(),l=(n||(PSe++,o.append("line").attr("id","actor"+PSe).attr("x1",a).attr("y1",s).attr("x2",a).attr("y2",2e3).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",t.name),t.actorCnt=PSe),e.append("g")),c=LSe;return l.attr("class",c+=n?" "+SSe:" "+_Se),l.attr("name",t.name),(o=Lw()).x=t.x,o.y=i,o.fill="#eaeaea",o.width=t.width,o.height=t.height,o.class="actor",o.rx=3,o.ry=3,l.append("line").attr("id","actor-man-torso"+PSe).attr("x1",a).attr("y1",i+25).attr("x2",a).attr("y2",i+45),l.append("line").attr("id","actor-man-arms"+PSe).attr("x1",a-CSe/2).attr("y1",i+33).attr("x2",a+CSe/2).attr("y2",i+33),l.append("line").attr("x1",a-CSe/2).attr("y1",i+60).attr("x2",a).attr("y2",i+45),l.append("line").attr("x1",a).attr("y1",i+45).attr("x2",a+CSe/2-2).attr("y2",i+60),(s=l.append("circle")).attr("cx",t.x+t.width/2),s.attr("cy",i+10),s.attr("r",15),s.attr("width",t.width),s.attr("height",t.height),e=l.node().getBBox(),t.height=e.height,oAe(r,Ec(t.description))(t.description,l,o.x,o.y+35,o.width,o.height,{class:"actor "+LSe},r),t.height},"drawActorTypeActor"),WSe=mt(async function(e,t,r,n){switch(t.type){case"actor":return YSe(e,t,r,n);case"participant":return $Se(e,t,r,n);case"boundary":return jSe(e,t,r,n);case"control":return GSe(e,t,r,n);case"entity":return USe(e,t,r,n);case"database":return qSe(e,t,r,n);case"collections":return FSe(e,t,r,n);case"queue":return zSe(e,t,r,n)}},"drawActor"),HSe=mt(function(e,t,r){e=e.append("g"),ZSe(e,t),t.name&&oAe(r)(t.name,e,t.x,t.y+r.boxTextMargin+(t.textMaxHeight||0)/2,t.width,0,{class:"text"},r),e.lower()},"drawBox"),VSe=mt(function(e){return e.append("g")},"anchorElement"),XSe=mt(function(e,t,r,n,i){var a=Lw(),s=t.anchored;a.x=t.startx,a.y=t.starty,a.class="activation"+i%3,a.width=t.stopx-t.startx,a.height=r-t.starty,NSe(s,a)},"drawActivation"),KSe=mt(async function(e,t,r,n){let{boxMargin:i,boxTextMargin:a,labelBoxHeight:s,labelBoxWidth:o,messageFontFamily:l,messageFontSize:c,messageFontWeight:h}=n,u=e.append("g"),d=mt(function(e,t,r,n){return u.append("line").attr("x1",e).attr("y1",t).attr("x2",r).attr("y2",n).attr("class","loopLine")},"drawLoopLine"),p=(d(t.startx,t.starty,t.stopx,t.starty),d(t.stopx,t.starty,t.stopx,t.stopy),d(t.startx,t.stopy,t.stopx,t.stopy),d(t.startx,t.starty,t.startx,t.stopy),void 0!==t.sections&&t.sections.forEach(function(e){d(t.startx,e.y,t.stopx,e.y).style("stroke-dasharray","3, 3")}),Nw());p.text=r,p.x=t.startx,p.y=t.starty,p.fontFamily=l,p.fontSize=c,p.fontWeight=h,p.anchor="middle",p.valign="middle",p.tspan=!1,p.width=o||50,p.height=s||20,p.textMargin=a,p.class="labelText",OSe(u,p),(p=aAe()).text=t.title,p.x=t.startx+o/2+(t.stopx-t.startx)/2,p.y=t.starty+i+a,p.anchor="middle",p.valign="middle",p.textMargin=a,p.class="loopText",p.fontFamily=l,p.fontSize=c,p.fontWeight=h,p.wrap=!0;var g=Ec(p.text)?await MSe(u,p,t):DSe(u,p);if(void 0!==t.sectionTitles)for(var[f,m]of Object.entries(t.sectionTitles))m.message&&(p.text=m.message,p.x=t.startx+(t.stopx-t.startx)/2,p.y=t.sections[f].y+i+a,p.class="loopText",p.anchor="middle",p.valign="middle",p.tspan=!1,p.fontFamily=l,p.fontSize=c,p.fontWeight=h,p.wrap=t.wrap,Ec(p.text)?(t.starty=t.sections[f].y,await MSe(u,p,t)):DSe(u,p),m=Math.round(g.map(e=>(e._groups||e)[0][0].getBBox().height).reduce( Line truncated `;return p.append("path").attr("d",g).attr("fill","#eaeaea").attr("stroke","#000").attr("stroke-width",1).attr("class",h),n?p.attr("transform",`translate(${1.5*e}, ${c.height/4-2*d})`):p.attr("transform",`translate(${1.5*e}, ${(c.height+d)/4})`),t.rectData=c,lAe(r,Ec(t.description))(t.description,l,c.x,c.y+(n?(c.height+u)/4:(c.height+d)/2),c.width,c.height,{class:"actor "+L_e},r),(g=p.select("path:last-child")).node()&&(e=g.node().getBBox(),t.height=e.height+(r.sequence.labelBoxHeight??0)),t.height},"drawActorTypeDatabase"),Y_e=mt(function(e,t,r,n){var i=n?t.stopy:t.starty,a=t.x+t.width/2,s=i+80,o=e.append("g").lower(),a=(n||(B_e++,o.append("line").attr("id","actor"+B_e).attr("x1",a).attr("y1",s).attr("x2",a).attr("y2",2e3).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",t.name),t.actorCnt=B_e),e.append("g")),e=N_e;return a.attr("class",e+=n?" "+A_e:" "+__e),a.attr("name",t.name),(o=Lw()).x=t.x,o.y=i,o.fill="#eaeaea",o.width=t.width,o.height=t.height,o.class="actor",a.append("line").attr("id","actor-man-torso"+B_e).attr("x1",t.x+t.width/2-75).attr("y1",i+10).attr("x2",t.x+t.width/2-15).attr("y2",i+10),a.append("line").attr("id","actor-man-arms"+B_e).attr("x1",t.x+t.width/2-75).attr("y1",i+0).attr("x2",t.x+t.width/2-75).attr("y2",i+20),a.append("circle").attr("cx",t.x+t.width/2).attr("cy",i+10).attr("r",30),s=a.node().getBBox(),t.height=s.height+(r.sequence.labelBoxHeight??0),lAe(r,Ec(t.description))(t.description,a,o.x,o.y+(n?11:18),o.width,o.height,{class:"actor "+N_e},r),a.attr("transform","translate(0,22)"),t.height},"drawActorTypeBoundary"),W_e=mt(function(e,t,r,n){var i=n?t.stopy:t.starty,a=t.x+t.width/2,s=i+80,o=e.append("g").lower(),l=(n||(B_e++,o.append("line").attr("id","actor"+B_e).attr("x1",a).attr("y1",s).attr("x2",a).attr("y2",2e3).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",t.name),t.actorCnt=B_e),e.append("g")),c=N_e;return l.attr("class",c+=n?" "+A_e:" "+__e),l.attr("name",t.name),(o=Lw()).x=t.x,o.y=i,o.fill="#eaeaea",o.width=t.width,o.height=t.height,o.class="actor",o.rx=3,o.ry=3,l.append("line").attr("id","actor-man-torso"+B_e).attr("x1",a).attr("y1",i+25).attr("x2",a).attr("y2",i+45),l.append("line").attr("id","actor-man-arms"+B_e).attr("x1",a-S_e/2).attr("y1",i+33).attr("x2",a+S_e/2).attr("y2",i+33),l.append("line").attr("x1",a-S_e/2).attr("y1",i+60).attr("x2",a).attr("y2",i+45),l.append("line").attr("x1",a).attr("y1",i+45).attr("x2",a+S_e/2-2).attr("y2",i+60),(s=l.append("circle")).attr("cx",t.x+t.width/2),s.attr("cy",i+10),s.attr("r",15),s.attr("width",t.width),s.attr("height",t.height),e=l.node().getBBox(),t.height=e.height,lAe(r,Ec(t.description))(t.description,l,o.x,o.y+35,o.width,o.height,{class:"actor "+N_e},r),t.height},"drawActorTypeActor"),H_e=mt(async function(e,t,r,n){switch(t.type){case"actor":return W_e(e,t,r,n);case"participant":return F_e(e,t,r,n);case"boundary":return Y_e(e,t,r,n);case"control":return U_e(e,t,r,n);case"entity":return q_e(e,t,r,n);case"database":return j_e(e,t,r,n);case"collections":return z_e(e,t,r,n);case"queue":return G_e(e,t,r,n)}},"drawActor"),V_e=mt(function(e,t,r){e=e.append("g"),Q_e(e,t),t.name&&lAe(r)(t.name,e,t.x,t.y+r.boxTextMargin+(t.textMaxHeight||0)/2,t.width,0,{class:"text"},r),e.lower()},"drawBox"),X_e=mt(function(e){return e.append("g")},"anchorElement"),K_e=mt(function(e,t,r,n,i){var a=Lw(),s=t.anchored;a.x=t.startx,a.y=t.starty,a.class="activation"+i%3,a.width=t.stopx-t.startx,a.height=r-t.starty,I_e(s,a)},"drawActivation"),Z_e=mt(async function(e,t,r,n){let{boxMargin:i,boxTextMargin:a,labelBoxHeight:s,labelBoxWidth:o,messageFontFamily:l,messageFontSize:c,messageFontWeight:h}=n,u=e.append("g"),d=mt(function(e,t,r,n){return u.append("line").attr("x1",e).attr("y1",t).attr("x2",r).attr("y2",n).attr("class","loopLine")},"drawLoopLine"),p=(d(t.startx,t.starty,t.stopx,t.starty),d(t.stopx,t.starty,t.stopx,t.stopy),d(t.startx,t.stopy,t.stopx,t.stopy),d(t.startx,t.starty,t.startx,t.stopy),void 0!==t.sections&&t.sections.forEach(function(e){d(t.startx,e.y,t.stopx,e.y).style("stroke-dasharray","3, 3")}),Nw());p.text=r,p.x=t.startx,p.y=t.starty,p.fontFamily=l,p.fontSize=c,p.fontWeight=h,p.anchor="middle",p.valign="middle",p.tspan=!1,p.width=o||50,p.height=s||20,p.textMargin=a,p.class="labelText",P_e(u,p),(p=sAe()).text=t.title,p.x=t.startx+o/2+(t.stopx-t.startx)/2,p.y=t.starty+i+a,p.anchor="middle",p.valign="middle",p.textMargin=a,p.class="loopText",p.fontFamily=l,p.fontSize=c,p.fontWeight=h,p.wrap=!0;var g=Ec(p.text)?await D_e(u,p,t):O_e(u,p);if(void 0!==t.sectionTitles)for(var[f,m]of Object.entries(t.sectionTitles))m.message&&(p.text=m.message,p.x=t.startx+(t.stopx-t.startx)/2,p.y=t.sections[f].y+i+a,p.class="loopText",p.anchor="middle",p.valign="middle",p.tspan=!1,p.fontFamily=l,p.fontSize=c,p.fontWeight=h,p.wrap=t.wrap,Ec(p.text)?(t.starty=t.sections[f].y,await D_e(u,p,t)):O_e(u,p),m=Math.round(g.map(e=>(e._groups||e)[0][0].getBBox().height).reduce( Line truncated
`+g.showPosition()+` `+g.showPosition()+`
Expecting `+A.join(", ")+", got '"+(this.terminals_[x]||x)+"'":"Parse error on line "+(c+1)+": Unexpected "+(x==d?"end of input":"'"+(this.terminals_[x]||x)+"'"),this.parseError(S,{text:g.match,token:this.terminals_[x]||x,line:g.yylineno,loc:m,expected:A})}if(k[0]instanceof Array&&1<k.length)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+x);switch(k[0]){case 1:n.push(x),a.push(g.yytext),s.push(g.yylloc),n.push(k[1]),x=null,b?(x=b,b=null):(h=g.yyleng,l=g.yytext,c=g.yylineno,m=g.yylloc,0<u&&u--);break;case 2:if(E=this.productions_[k[1]][1],_.$=a[a.length-E],_._$={first_line:s[s.length-(E||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(E||1)].first_column,last_column:s[s.length-1].last_column},y&&(_._$.range=[s[s.length-(E||1)].range[0],s[s.length-1].range[1]]),typeof(C=this.performAction.apply(_,[l,h,c,f.yy,k[1],a,s].concat(p)))<"u")return C;E&&(n=n.slice(0,-1*E*2),a=a.slice(0,-1*E),s=s.slice(0,-1*E)),n.push(this.productions_[k[1]][0]),a.push(_.$),s.push(_._$),C=o[n[n.length-2]][n[n.length-1]],n.push(C);break;case 3:return!0}}return!0},"parse")},r={EOF:1,parseError:mt(function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},"parseError"),setInput:mt(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:mt(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},"input"),unput:mt(function(e){var t=e.length,r=e.split(/(?:\r\n?|\n)/g),e=(this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t,this.match.split(/(?:\r\n?|\n)/g)),n=(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),r.length-1&&(this.yylineno-=r.length-1),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:r?(r.length===e.length?this.yylloc.first_column:0)+e[e.length-r.length].length-r[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[n[0],n[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},"unput"),more:mt(function(){return this._more=!0,this},"more"),reject:mt(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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). Expecting `+A.join(", ")+", got '"+(this.terminals_[x]||x)+"'":"Parse error on line "+(c+1)+": Unexpected "+(x==d?"end of input":"'"+(this.terminals_[x]||x)+"'"),this.parseError(_,{text:g.match,token:this.terminals_[x]||x,line:g.yylineno,loc:m,expected:A})}if(k[0]instanceof Array&&1<k.length)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+x);switch(k[0]){case 1:n.push(x),a.push(g.yytext),s.push(g.yylloc),n.push(k[1]),x=null,b?(x=b,b=null):(h=g.yyleng,l=g.yytext,c=g.yylineno,m=g.yylloc,0<u&&u--);break;case 2:if(E=this.productions_[k[1]][1],S.$=a[a.length-E],S._$={first_line:s[s.length-(E||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(E||1)].first_column,last_column:s[s.length-1].last_column},y&&(S._$.range=[s[s.length-(E||1)].range[0],s[s.length-1].range[1]]),typeof(C=this.performAction.apply(S,[l,h,c,f.yy,k[1],a,s].concat(p)))<"u")return C;E&&(n=n.slice(0,-1*E*2),a=a.slice(0,-1*E),s=s.slice(0,-1*E)),n.push(this.productions_[k[1]][0]),a.push(S.$),s.push(S._$),C=o[n[n.length-2]][n[n.length-1]],n.push(C);break;case 3:return!0}}return!0},"parse")},r={EOF:1,parseError:mt(function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},"parseError"),setInput:mt(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:mt(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},"input"),unput:mt(function(e){var t=e.length,r=e.split(/(?:\r\n?|\n)/g),e=(this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t,this.match.split(/(?:\r\n?|\n)/g)),n=(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),r.length-1&&(this.yylineno-=r.length-1),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:r?(r.length===e.length?this.yylloc.first_column:0)+e[e.length-r.length].length-r[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[n[0],n[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},"unput"),more:mt(function(){return this._more=!0,this},"more"),reject:mt(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:mt(function(e){this.unput(this.match.slice(e))},"less"),pastInput:mt(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(20<e.length?"...":"")+e.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:mt(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(20<e.length?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:mt(function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+` `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:mt(function(e){this.unput(this.match.slice(e))},"less"),pastInput:mt(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(20<e.length?"...":"")+e.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:mt(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(20<e.length?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:mt(function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+`
`+t+"^"},"showPosition"),test_match:mt(function(e,t){var r,n;if(this.options.backtrack_lexer&&(n={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)&&(n.yylloc.range=this.yylloc.range.slice(0)),(r=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],r=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),r)return r;if(this._backtrack)for(var i in n)this[i]=n[i];return!1},"test_match"),next:mt(function(){if(this.done)return this.EOF;var e,t,r,n;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;a<i.length;a++)if((r=this._input.match(this.rules[i[a]]))&&(!t||r[0].length>t[0].length)){if(t=r,n=a,this.options.backtrack_lexer){if(!1!==(e=this.test_match(r,i[a])))return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,i[n]))&&e:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. `+t+"^"},"showPosition"),test_match:mt(function(e,t){var r,n;if(this.options.backtrack_lexer&&(n={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)&&(n.yylloc.range=this.yylloc.range.slice(0)),(r=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],r=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),r)return r;if(this._backtrack)for(var i in n)this[i]=n[i];return!1},"test_match"),next:mt(function(){if(this.done)return this.EOF;var e,t,r,n;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;a<i.length;a++)if((r=this._input.match(this.rules[i[a]]))&&(!t||r[0].length>t[0].length)){if(t=r,n=a,this.options.backtrack_lexer){if(!1!==(e=this.test_match(r,i[a])))return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,i[n]))&&e:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:mt(function(){return this.next()||this.lex()},"lex"),begin:mt(function(e){this.conditionStack.push(e)},"begin"),popState:mt(function(){return 0<this.conditionStack.length-1?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:mt(function(){return(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]]:this.conditions.INITIAL).rules},"_currentRules"),topState:mt(function(e){return 0<=(e=this.conditionStack.length-1-Math.abs(e||0))?this.conditionStack[e]:"INITIAL"},"topState"),pushState:mt(function(e){this.begin(e)},"pushState"),stateStackSize:mt(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:mt(function(e,t,r,n){switch(r){case 0:return 62;case 1:return 63;case 2:return 64;case 3:return 65;case 4:case 5:break;case 6:return this.begin("acc_title"),33;case 7:return this.popState(),"acc_title_value";case 8:return this.begin("acc_descr"),35;case 9:return this.popState(),"acc_descr_value";case 10:this.begin("acc_descr_multiline");break;case 11:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:return 8;case 14:break;case 15:case 16:return 7;case 17:return"EDGE_STATE";case 18:this.begin("callback_name");break;case 19:this.popState();break;case 20:this.popState(),this.begin("callback_args");break;case 21:return 79;case 22:this.popState();break;case 23:return 80;case 24:this.popState();break;case 25:return"STR";case 26:this.begin("string");break;case 27:return 82;case 28:return 57;case 29:return this.begin("namespace"),42;case 30:return this.popState(),8;case 31:break;case 32:return this.begin("namespace-body"),39;case 33:return this.popState(),41;case 34:return"EOF_IN_STRUCT";case 35:return 8;case 36:break;case 37:return"EDGE_STATE";case 38:return this.begin("class"),46;case 39:return this.popState(),8;case 40:break;case 41:return this.popState(),this.popState(),41;case 42:return this.begin("class-body"),39;case 43:return this.popState(),41;case 44:return"EOF_IN_STRUCT";case 45:return"EDGE_STATE";case 46:return"OPEN_IN_STRUCT";case 47:break;case 48:return"MEMBER";case 49:return 83;case 50:return 75;case 51:return 76;case 52:return 78;case 53:return 54;case 54:return 56;case 55:return 49;case 56:return 50;case 57:return 81;case 58:this.popState();break;case 59:return"GENERICTYPE";case 60:this.begin("generic");break;case 61:this.popState();break;case 62:return"BQUOTE_STR";case 63:this.begin("bqstring");break;case 64:case 65:case 66:case 67:return 77;case 68:case 69:return 69;case 70:case 71:return 71;case 72:return 70;case 73:return 68;case 74:return 72;case 75:return 73;case 76:return 74;case 77:return 22;case 78:return 44;case 79:return 100;case 80:return 18;case 81:return"PLUS";case 82:return 87;case 83:return 61;case 84:case 85:return 89;case 86:return 90;case 87:case 88:return"EQUALS";case 89:return 60;case 90:return 12;case 91:return 14;case 92:return"PUNCTUATION";case 93:return 86;case 94:return 102;case 95:case 96:return 48;case 97:return 9}},"anonymous"),rules:[/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/,/^(?:%%[^\n]*(\r?\n)*)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:classDiagram-v2\b)/,/^(?:classDiagram\b)/,/^(?:\[\*\])/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:["])/,/^(?:[^"]*)/,/^(?:["])/,/^(?:style\b)/,/^(?:classDef\b)/,/^(?:namespace\b)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:[{])/,/^(?:[}])/,/^(?:$)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:\[\*\])/,/^(?:class\b)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:[}])/,/^(?:[{])/,/^(?:[}])/,/^(?:$)/,/^(?:\[\*\])/,/^(?:[{])/,/^(?:[\n])/,/^(?:[^{}\n]*)/,/^(?:cssClass\b)/,/^(?:callback\b)/,/^(?:link\b)/,/^(?:click\b)/,/^(?:note for\b)/,/^(?:note\b)/,/^(?:<<)/,/^(?:>>)/,/^(?:href\b)/,/^(?:[~])/,/^(?:[^~]*)/,/^(?:~)/,/^(?:[`])/,/^(?:[^`]+)/,/^(?:[`])/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:\s*<\|)/,/^(?:\s*\|>)/,/^(?:\s*>)/,/^(?:\s*<)/,/^(?:\s*\*)/,/^(?:\s*o\b)/,/^(?:\s*\(\))/,/^(?:--)/,/^(?:\.\.)/,/^(?::{1}[^:\n;]+)/,/^(?::{3})/,/^(?:-)/,/^(?:\.)/,/^(?:\+)/,/^(?::)/,/^(?:,)/,/^(?:#)/,/^(?:#)/,/^(?:%)/,/^(?:=)/,/^(?:=)/,/^(?:\w+)/,/^(?:\[)/,/^(?:\])/,/^(?:[!"#$%&'*+,-.`?\\/])/,/^(?:[0-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\u07F5Line truncated `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:mt(function(){return this.next()||this.lex()},"lex"),begin:mt(function(e){this.conditionStack.push(e)},"begin"),popState:mt(function(){return 0<this.conditionStack.length-1?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:mt(function(){return(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]]:this.conditions.INITIAL).rules},"_currentRules"),topState:mt(function(e){return 0<=(e=this.conditionStack.length-1-Math.abs(e||0))?this.conditionStack[e]:"INITIAL"},"topState"),pushState:mt(function(e){this.begin(e)},"pushState"),stateStackSize:mt(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:mt(function(e,t,r,n){switch(r){case 0:return 62;case 1:return 63;case 2:return 64;case 3:return 65;case 4:case 5:break;case 6:return this.begin("acc_title"),33;case 7:return this.popState(),"acc_title_value";case 8:return this.begin("acc_descr"),35;case 9:return this.popState(),"acc_descr_value";case 10:this.begin("acc_descr_multiline");break;case 11:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:return 8;case 14:break;case 15:case 16:return 7;case 17:return"EDGE_STATE";case 18:this.begin("callback_name");break;case 19:this.popState();break;case 20:this.popState(),this.begin("callback_args");break;case 21:return 79;case 22:this.popState();break;case 23:return 80;case 24:this.popState();break;case 25:return"STR";case 26:this.begin("string");break;case 27:return 82;case 28:return 57;case 29:return this.begin("namespace"),42;case 30:return this.popState(),8;case 31:break;case 32:return this.begin("namespace-body"),39;case 33:return this.popState(),41;case 34:return"EOF_IN_STRUCT";case 35:return 8;case 36:break;case 37:return"EDGE_STATE";case 38:return this.begin("class"),46;case 39:return this.popState(),8;case 40:break;case 41:return this.popState(),this.popState(),41;case 42:return this.begin("class-body"),39;case 43:return this.popState(),41;case 44:return"EOF_IN_STRUCT";case 45:return"EDGE_STATE";case 46:return"OPEN_IN_STRUCT";case 47:break;case 48:return"MEMBER";case 49:return 83;case 50:return 75;case 51:return 76;case 52:return 78;case 53:return 54;case 54:return 56;case 55:return 49;case 56:return 50;case 57:return 81;case 58:this.popState();break;case 59:return"GENERICTYPE";case 60:this.begin("generic");break;case 61:this.popState();break;case 62:return"BQUOTE_STR";case 63:this.begin("bqstring");break;case 64:case 65:case 66:case 67:return 77;case 68:case 69:return 69;case 70:case 71:return 71;case 72:return 70;case 73:return 68;case 74:return 72;case 75:return 73;case 76:return 74;case 77:return 22;case 78:return 44;case 79:return 100;case 80:return 18;case 81:return"PLUS";case 82:return 87;case 83:return 61;case 84:case 85:return 89;case 86:return 90;case 87:case 88:return"EQUALS";case 89:return 60;case 90:return 12;case 91:return 14;case 92:return"PUNCTUATION";case 93:return 86;case 94:return 102;case 95:case 96:return 48;case 97:return 9}},"anonymous"),rules:[/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/,/^(?:%%[^\n]*(\r?\n)*)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:classDiagram-v2\b)/,/^(?:classDiagram\b)/,/^(?:\[\*\])/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:["])/,/^(?:[^"]*)/,/^(?:["])/,/^(?:style\b)/,/^(?:classDef\b)/,/^(?:namespace\b)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:[{])/,/^(?:[}])/,/^(?:$)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:\[\*\])/,/^(?:class\b)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:[}])/,/^(?:[{])/,/^(?:[}])/,/^(?:$)/,/^(?:\[\*\])/,/^(?:[{])/,/^(?:[\n])/,/^(?:[^{}\n]*)/,/^(?:cssClass\b)/,/^(?:callback\b)/,/^(?:link\b)/,/^(?:click\b)/,/^(?:note for\b)/,/^(?:note\b)/,/^(?:<<)/,/^(?:>>)/,/^(?:href\b)/,/^(?:[~])/,/^(?:[^~]*)/,/^(?:~)/,/^(?:[`])/,/^(?:[^`]+)/,/^(?:[`])/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:\s*<\|)/,/^(?:\s*\|>)/,/^(?:\s*>)/,/^(?:\s*<)/,/^(?:\s*\*)/,/^(?:\s*o\b)/,/^(?:\s*\(\))/,/^(?:--)/,/^(?:\.\.)/,/^(?::{1}[^:\n;]+)/,/^(?::{3})/,/^(?:-)/,/^(?:\.)/,/^(?:\+)/,/^(?::)/,/^(?:,)/,/^(?:#)/,/^(?:#)/,/^(?:%)/,/^(?:=)/,/^(?:=)/,/^(?:\w+)/,/^(?:\[)/,/^(?:\])/,/^(?:[!"#$%&'*+,-.`?\\/])/,/^(?:[0-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\u07F5Line truncated
fill: ${e.nodeBorder||e.classText}; fill: ${e.nodeBorder||e.classText};
stroke: none; stroke: none;
font-family: ${e.fontFamily}; font-family: ${e.fontFamily};
@@ -1931,12 +1931,12 @@ g.classGroup line {
fill: ${e.textColor}; fill: ${e.textColor};
} }
${Hhe()} ${Hhe()}
`,"getStyles"),XAe=VAe}),a9e=b(()=>{Tu(),e(),iO(),Qhe(),Jhe(),i_(),KAe=mt((e,t="TB")=>{if(!e.doc)return t;let r=t;for(var n of e.doc)"dir"===n.stmt&&(r=n.value);return r},"getDir"),ZAe=mt(function(e,t){return t.db.getClasses()},"getClasses"),QAe=mt(async function(e,t,r,n){D.info("REF0:"),D.info("Drawing class diagram (v3)",t);var{securityLevel:i,state:a,layout:s}=O(),o=n.db.getData(),i=YD(t,i);o.type=n.type,o.layoutAlgorithm=Phe(s),o.nodeSpacing=a?.nodeSpacing||50,o.rankSpacing=a?.rankSpacing||50,o.markers=["aggregation","extension","composition","dependency","lollipop"],o.diagramId=t,await Ohe(o,i),e_.insertTitle(i,"classDiagramTitleText",a?.titleTopMargin??25,n.db.getDiagramTitle()),Bhe(i,8,"classDiagram",a?.useMaxWidth??!0)},"draw"),JAe={getClasses:ZAe,draw:QAe,getDir:KAe}}),s9e={};OFe(s9e,{diagram:()=>o9e});var o9e,l9e=b(()=>{t9e(),n9e(),i9e(),a9e(),o9e={parser:GAe,get db(){return new HAe},renderer:JAe,styles:XAe,init:mt(e=>{e.class||(e.class={}),e.class.arrowMarkerAbsolute=e.arrowMarkerAbsolute},"init")}}),c9e={};OFe(c9e,{diagram:()=>h9e});var h9e,u9e,d9e,p9e,g9e,f9e,m9e,y9e,v9e,x9e,b9e,w9e,k9e,T9e,E9e,C9e,_9e,S9e,A9e,L9e,N9e,I9e,R9e,M9e,D9e,O9e,P9e,B9e,$9e,F9e,z9e,G9e,U9e,q9e,j9e,Y9e,W9e=b(()=>{t9e(),n9e(),i9e(),a9e(),h9e={parser:GAe,get db(){return new HAe},renderer:JAe,styles:XAe,init:mt(e=>{e.class||(e.class={}),e.class.arrowMarkerAbsolute=e.arrowMarkerAbsolute},"init")}}),H9e=b(()=>{function e(){this.yy={}}var t=mt(function(e,t,r,n){for(r=r||{},n=e.length;n--;r[e[n]]=t);return r},"o"),r=[1,2],n=[1,3],i=[1,4],a=[2,4],s=[1,9],o=[1,11],l=[1,16],c=[1,17],h=[1,18],u=[1,19],d=[1,33],p=[1,20],g=[1,21],f=[1,22],m=[1,23],y=[1,24],v=[1,26],x=[1,27],b=[1,28],w=[1,29],k=[1,30],T=[1,31],E=[1,32],C=[1,35],_=[1,36],S=[1,37],A=[1,38],L=[1,34],N=[1,4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],I=[1,4,5,14,15,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,39,40,41,45,48,51,52,53,54,57],R=[4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],r={trace:mt(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,SD:6,document:7,line:8,statement:9,classDefStatement:10,styleStatement:11,cssClassStatement:12,idStatement:13,DESCR:14,"--\x3e":15,HIDE_EMPTY:16,scale:17,WIDTH:18,COMPOSIT_STATE:19,STRUCT_START:20,STRUCT_STOP:21,STATE_DESCR:22,AS:23,ID:24,FORK:25,JOIN:26,CHOICE:27,CONCURRENT:28,note:29,notePosition:30,NOTE_TEXT:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,CLICK:38,STRING:39,HREF:40,classDef:41,CLASSDEF_ID:42,CLASSDEF_STYLEOPTS:43,DEFAULT:44,style:45,STYLE_IDS:46,STYLEDEF_STYLEOPTS:47,class:48,CLASSENTITY_IDS:49,STYLECLASS:50,direction_tb:51,direction_bt:52,direction_rl:53,direction_lr:54,eol:55,";":56,EDGE_STATE:57,STYLE_SEPARATOR:58,left_of:59,right_of:60,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",6:"SD",14:"DESCR",15:"--\x3e",16:"HIDE_EMPTY",17:"scale",18:"WIDTH",19:"COMPOSIT_STATE",20:"STRUCT_START",21:"STRUCT_STOP",22:"STATE_DESCR",23:"AS",24:"ID",25:"FORK",26:"JOIN",27:"CHOICE",28:"CONCURRENT",29:"note",31:"NOTE_TEXT",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",38:"CLICK",39:"STRING",40:"HREF",41:"classDef",42:"CLASSDEF_ID",43:"CLASSDEF_STYLEOPTS",44:"DEFAULT",45:"style",46:"STYLE_IDS",47:"STYLEDEF_STYLEOPTS",48:"class",49:"CLASSENTITY_IDS",50:"STYLECLASS",51:"direction_tb",52:"direction_bt",53:"direction_rl",54:"direction_lr",56:";",57:"EDGE_STATE",58:"STYLE_SEPARATOR",59:"left_of",60:"right_of"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,3],[9,4],[9,1],[9,2],[9,1],[9,4],[9,3],[9,6],[9,1],[9,1],[9,1],[9,1],[9,4],[9,4],[9,1],[9,2],[9,2],[9,1],[9,5],[9,5],[10,3],[10,3],[11,3],[12,3],[32,1],[32,1],[32,1],[32,1],[55,1],[55,1],[13,1],[13,1],[13,3],[13,3],[30,1],[30,1]],performAction:mt(function(e,t,r,n,i,a,s){var o=a.length-1;switch(i){case 3:return n.setRootDoc(a[o]),a[o];case 4:this.$=[];break;case 5:"nl"!=a[o]&&(a[o-1].push(a[o]),this.$=a[o-1]);break;case 6:case 7:this.$=a[o];break;case 8:this.$="nl";break;case 12:this.$=a[o];break;case 13:(c=a[o-1]).description=n.trimColon(a[o]),this.$=c;break;case 14:this.$={stmt:"relation",state1:a[o-2],state2:a[o]};break;case 15:c=n.trimColon(a[o]),this.$={stmt:"relation",state1:a[o-3],state2:a[o-1],description:c};break;case 19:this.$={stmt:"state",id:a[o-3],type:"default",description:"",doc:a[o-1]};break;case 20:var l,c=a[o],h=a[o-2].trim();a[o].match(":")&&(c=(l=a[o].split(":"))[0],h=[h,l[1]]),this.$={stmt:"state",id:c,type:"default",description:h};break;case 21:this.$={stmt:"state",id:a[o-3],type:"default",description:a[o-5],doc:a[o-1]};break;case 22:this.$={stmt:"state",id:a[o],type:"fork"};break;case 23:this.$={stmt:"state",id:a[o],type:"join"};break;case 24:this.$={stmt:"state",id:a[o],type:"choice"};break;case 25:this.$={stmt:"state",id:n.getDividerId(),type:"divider"};break;case 26:this.$={stmt:"state",id:a[o-1].trim( Line truncated `,"getStyles"),KAe=XAe}),s9e=b(()=>{Tu(),e(),iO(),Qhe(),Jhe(),iS(),ZAe=mt((e,t="TB")=>{if(!e.doc)return t;let r=t;for(var n of e.doc)"dir"===n.stmt&&(r=n.value);return r},"getDir"),QAe=mt(function(e,t){return t.db.getClasses()},"getClasses"),JAe=mt(async function(e,t,r,n){D.info("REF0:"),D.info("Drawing class diagram (v3)",t);var{securityLevel:i,state:a,layout:s}=O(),o=n.db.getData(),i=YD(t,i);o.type=n.type,o.layoutAlgorithm=Phe(s),o.nodeSpacing=a?.nodeSpacing||50,o.rankSpacing=a?.rankSpacing||50,o.markers=["aggregation","extension","composition","dependency","lollipop"],o.diagramId=t,await Ohe(o,i),eS.insertTitle(i,"classDiagramTitleText",a?.titleTopMargin??25,n.db.getDiagramTitle()),Bhe(i,8,"classDiagram",a?.useMaxWidth??!0)},"draw"),e9e={getClasses:QAe,draw:JAe,getDir:ZAe}}),o9e={};PFe(o9e,{diagram:()=>l9e});var l9e,c9e=b(()=>{r9e(),i9e(),a9e(),s9e(),l9e={parser:UAe,get db(){return new VAe},renderer:e9e,styles:KAe,init:mt(e=>{e.class||(e.class={}),e.class.arrowMarkerAbsolute=e.arrowMarkerAbsolute},"init")}}),h9e={};PFe(h9e,{diagram:()=>u9e});var u9e,d9e,p9e,g9e,f9e,m9e,y9e,v9e,x9e,b9e,w9e,k9e,T9e,E9e,C9e,S9e,_9e,A9e,L9e,N9e,I9e,R9e,M9e,D9e,O9e,P9e,B9e,$9e,F9e,z9e,G9e,U9e,q9e,j9e,Y9e,W9e,H9e=b(()=>{r9e(),i9e(),a9e(),s9e(),u9e={parser:UAe,get db(){return new VAe},renderer:e9e,styles:KAe,init:mt(e=>{e.class||(e.class={}),e.class.arrowMarkerAbsolute=e.arrowMarkerAbsolute},"init")}}),V9e=b(()=>{function e(){this.yy={}}var t=mt(function(e,t,r,n){for(r=r||{},n=e.length;n--;r[e[n]]=t);return r},"o"),r=[1,2],n=[1,3],i=[1,4],a=[2,4],s=[1,9],o=[1,11],l=[1,16],c=[1,17],h=[1,18],u=[1,19],d=[1,33],p=[1,20],g=[1,21],f=[1,22],m=[1,23],y=[1,24],v=[1,26],x=[1,27],b=[1,28],w=[1,29],k=[1,30],T=[1,31],E=[1,32],C=[1,35],S=[1,36],_=[1,37],A=[1,38],L=[1,34],N=[1,4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],I=[1,4,5,14,15,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,39,40,41,45,48,51,52,53,54,57],R=[4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],r={trace:mt(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,SD:6,document:7,line:8,statement:9,classDefStatement:10,styleStatement:11,cssClassStatement:12,idStatement:13,DESCR:14,"--\x3e":15,HIDE_EMPTY:16,scale:17,WIDTH:18,COMPOSIT_STATE:19,STRUCT_START:20,STRUCT_STOP:21,STATE_DESCR:22,AS:23,ID:24,FORK:25,JOIN:26,CHOICE:27,CONCURRENT:28,note:29,notePosition:30,NOTE_TEXT:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,CLICK:38,STRING:39,HREF:40,classDef:41,CLASSDEF_ID:42,CLASSDEF_STYLEOPTS:43,DEFAULT:44,style:45,STYLE_IDS:46,STYLEDEF_STYLEOPTS:47,class:48,CLASSENTITY_IDS:49,STYLECLASS:50,direction_tb:51,direction_bt:52,direction_rl:53,direction_lr:54,eol:55,";":56,EDGE_STATE:57,STYLE_SEPARATOR:58,left_of:59,right_of:60,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",6:"SD",14:"DESCR",15:"--\x3e",16:"HIDE_EMPTY",17:"scale",18:"WIDTH",19:"COMPOSIT_STATE",20:"STRUCT_START",21:"STRUCT_STOP",22:"STATE_DESCR",23:"AS",24:"ID",25:"FORK",26:"JOIN",27:"CHOICE",28:"CONCURRENT",29:"note",31:"NOTE_TEXT",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",38:"CLICK",39:"STRING",40:"HREF",41:"classDef",42:"CLASSDEF_ID",43:"CLASSDEF_STYLEOPTS",44:"DEFAULT",45:"style",46:"STYLE_IDS",47:"STYLEDEF_STYLEOPTS",48:"class",49:"CLASSENTITY_IDS",50:"STYLECLASS",51:"direction_tb",52:"direction_bt",53:"direction_rl",54:"direction_lr",56:";",57:"EDGE_STATE",58:"STYLE_SEPARATOR",59:"left_of",60:"right_of"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,3],[9,4],[9,1],[9,2],[9,1],[9,4],[9,3],[9,6],[9,1],[9,1],[9,1],[9,1],[9,4],[9,4],[9,1],[9,2],[9,2],[9,1],[9,5],[9,5],[10,3],[10,3],[11,3],[12,3],[32,1],[32,1],[32,1],[32,1],[55,1],[55,1],[13,1],[13,1],[13,3],[13,3],[30,1],[30,1]],performAction:mt(function(e,t,r,n,i,a,s){var o=a.length-1;switch(i){case 3:return n.setRootDoc(a[o]),a[o];case 4:this.$=[];break;case 5:"nl"!=a[o]&&(a[o-1].push(a[o]),this.$=a[o-1]);break;case 6:case 7:this.$=a[o];break;case 8:this.$="nl";break;case 12:this.$=a[o];break;case 13:(c=a[o-1]).description=n.trimColon(a[o]),this.$=c;break;case 14:this.$={stmt:"relation",state1:a[o-2],state2:a[o]};break;case 15:c=n.trimColon(a[o]),this.$={stmt:"relation",state1:a[o-3],state2:a[o-1],description:c};break;case 19:this.$={stmt:"state",id:a[o-3],type:"default",description:"",doc:a[o-1]};break;case 20:var l,c=a[o],h=a[o-2].trim();a[o].match(":")&&(c=(l=a[o].split(":"))[0],h=[h,l[1]]),this.$={stmt:"state",id:c,type:"default",description:h};break;case 21:this.$={stmt:"state",id:a[o-3],type:"default",description:a[o-5],doc:a[o-1]};break;case 22:this.$={stmt:"state",id:a[o],type:"fork"};break;case 23:this.$={stmt:"state",id:a[o],type:"join"};break;case 24:this.$={stmt:"state",id:a[o],type:"choice"};break;case 25:this.$={stmt:"state",id:n.getDividerId(),type:"divider"};break;case 26:this.$={stmt:"state",id:a[o-1].trim( Line truncated
`+g.showPosition()+` `+g.showPosition()+`
Expecting `+A.join(", ")+", got '"+(this.terminals_[x]||x)+"'":"Parse error on line "+(c+1)+": Unexpected "+(x==d?"end of input":"'"+(this.terminals_[x]||x)+"'"),this.parseError(S,{text:g.match,token:this.terminals_[x]||x,line:g.yylineno,loc:m,expected:A})}if(k[0]instanceof Array&&1<k.length)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+x);switch(k[0]){case 1:n.push(x),a.push(g.yytext),s.push(g.yylloc),n.push(k[1]),x=null,b?(x=b,b=null):(h=g.yyleng,l=g.yytext,c=g.yylineno,m=g.yylloc,0<u&&u--);break;case 2:if(E=this.productions_[k[1]][1],_.$=a[a.length-E],_._$={first_line:s[s.length-(E||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(E||1)].first_column,last_column:s[s.length-1].last_column},y&&(_._$.range=[s[s.length-(E||1)].range[0],s[s.length-1].range[1]]),typeof(C=this.performAction.apply(_,[l,h,c,f.yy,k[1],a,s].concat(p)))<"u")return C;E&&(n=n.slice(0,-1*E*2),a=a.slice(0,-1*E),s=s.slice(0,-1*E)),n.push(this.productions_[k[1]][0]),a.push(_.$),s.push(_._$),C=o[n[n.length-2]][n[n.length-1]],n.push(C);break;case 3:return!0}}return!0},"parse")},n={EOF:1,parseError:mt(function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},"parseError"),setInput:mt(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:mt(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},"input"),unput:mt(function(e){var t=e.length,r=e.split(/(?:\r\n?|\n)/g),e=(this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t,this.match.split(/(?:\r\n?|\n)/g)),n=(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),r.length-1&&(this.yylineno-=r.length-1),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:r?(r.length===e.length?this.yylloc.first_column:0)+e[e.length-r.length].length-r[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[n[0],n[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},"unput"),more:mt(function(){return this._more=!0,this},"more"),reject:mt(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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). Expecting `+A.join(", ")+", got '"+(this.terminals_[x]||x)+"'":"Parse error on line "+(c+1)+": Unexpected "+(x==d?"end of input":"'"+(this.terminals_[x]||x)+"'"),this.parseError(_,{text:g.match,token:this.terminals_[x]||x,line:g.yylineno,loc:m,expected:A})}if(k[0]instanceof Array&&1<k.length)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+x);switch(k[0]){case 1:n.push(x),a.push(g.yytext),s.push(g.yylloc),n.push(k[1]),x=null,b?(x=b,b=null):(h=g.yyleng,l=g.yytext,c=g.yylineno,m=g.yylloc,0<u&&u--);break;case 2:if(E=this.productions_[k[1]][1],S.$=a[a.length-E],S._$={first_line:s[s.length-(E||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(E||1)].first_column,last_column:s[s.length-1].last_column},y&&(S._$.range=[s[s.length-(E||1)].range[0],s[s.length-1].range[1]]),typeof(C=this.performAction.apply(S,[l,h,c,f.yy,k[1],a,s].concat(p)))<"u")return C;E&&(n=n.slice(0,-1*E*2),a=a.slice(0,-1*E),s=s.slice(0,-1*E)),n.push(this.productions_[k[1]][0]),a.push(S.$),s.push(S._$),C=o[n[n.length-2]][n[n.length-1]],n.push(C);break;case 3:return!0}}return!0},"parse")},n={EOF:1,parseError:mt(function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},"parseError"),setInput:mt(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:mt(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},"input"),unput:mt(function(e){var t=e.length,r=e.split(/(?:\r\n?|\n)/g),e=(this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t,this.match.split(/(?:\r\n?|\n)/g)),n=(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),r.length-1&&(this.yylineno-=r.length-1),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:r?(r.length===e.length?this.yylloc.first_column:0)+e[e.length-r.length].length-r[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[n[0],n[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},"unput"),more:mt(function(){return this._more=!0,this},"more"),reject:mt(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:mt(function(e){this.unput(this.match.slice(e))},"less"),pastInput:mt(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(20<e.length?"...":"")+e.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:mt(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(20<e.length?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:mt(function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+` `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:mt(function(e){this.unput(this.match.slice(e))},"less"),pastInput:mt(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(20<e.length?"...":"")+e.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:mt(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(20<e.length?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:mt(function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+`
`+t+"^"},"showPosition"),test_match:mt(function(e,t){var r,n;if(this.options.backtrack_lexer&&(n={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)&&(n.yylloc.range=this.yylloc.range.slice(0)),(r=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],r=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),r)return r;if(this._backtrack)for(var i in n)this[i]=n[i];return!1},"test_match"),next:mt(function(){if(this.done)return this.EOF;var e,t,r,n;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;a<i.length;a++)if((r=this._input.match(this.rules[i[a]]))&&(!t||r[0].length>t[0].length)){if(t=r,n=a,this.options.backtrack_lexer){if(!1!==(e=this.test_match(r,i[a])))return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,i[n]))&&e:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. `+t+"^"},"showPosition"),test_match:mt(function(e,t){var r,n;if(this.options.backtrack_lexer&&(n={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)&&(n.yylloc.range=this.yylloc.range.slice(0)),(r=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],r=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),r)return r;if(this._backtrack)for(var i in n)this[i]=n[i];return!1},"test_match"),next:mt(function(){if(this.done)return this.EOF;var e,t,r,n;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;a<i.length;a++)if((r=this._input.match(this.rules[i[a]]))&&(!t||r[0].length>t[0].length)){if(t=r,n=a,this.options.backtrack_lexer){if(!1!==(e=this.test_match(r,i[a])))return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,i[n]))&&e:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:mt(function(){return this.next()||this.lex()},"lex"),begin:mt(function(e){this.conditionStack.push(e)},"begin"),popState:mt(function(){return 0<this.conditionStack.length-1?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:mt(function(){return(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]]:this.conditions.INITIAL).rules},"_currentRules"),topState:mt(function(e){return 0<=(e=this.conditionStack.length-1-Math.abs(e||0))?this.conditionStack[e]:"INITIAL"},"topState"),pushState:mt(function(e){this.begin(e)},"pushState"),stateStackSize:mt(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:mt(function(e,t,r,n){switch(r){case 0:return 38;case 1:return 40;case 2:return 39;case 3:return 44;case 4:return 51;case 5:return 52;case 6:return 53;case 7:return 54;case 8:case 9:break;case 10:return 5;case 11:case 12:case 13:case 14:break;case 15:return this.pushState("SCALE"),17;case 16:return 18;case 17:this.popState();break;case 18:return this.begin("acc_title"),33;case 19:return this.popState(),"acc_title_value";case 20:return this.begin("acc_descr"),35;case 21:return this.popState(),"acc_descr_value";case 22:this.begin("acc_descr_multiline");break;case 23:this.popState();break;case 24:return"acc_descr_multiline_value";case 25:return this.pushState("CLASSDEF"),41;case 26:return this.popState(),this.pushState("CLASSDEFID"),"DEFAULT_CLASSDEF_ID";case 27:return this.popState(),this.pushState("CLASSDEFID"),42;case 28:return this.popState(),43;case 29:return this.pushState("CLASS"),48;case 30:return this.popState(),this.pushState("CLASS_STYLE"),49;case 31:return this.popState(),50;case 32:return this.pushState("STYLE"),45;case 33:return this.popState(),this.pushState("STYLEDEF_STYLES"),46;case 34:return this.popState(),47;case 35:return this.pushState("SCALE"),17;case 36:return 18;case 37:this.popState();break;case 38:this.pushState("STATE");break;case 39:return this.popState(),t.yytext=t.yytext.slice(0,-8).trim(),25;case 40:return this.popState(),t.yytext=t.yytext.slice(0,-8).trim(),26;case 41:return this.popState(),t.yytext=t.yytext.slice(0,-10).trim(),27;case 42:return this.popState(),t.yytext=t.yytext.slice(0,-8).trim(),25;case 43:return this.popState(),t.yytext=t.yytext.slice(0,-8).trim(),26;case 44:return this.popState(),t.yytext=t.yytext.slice(0,-10).trim(),27;case 45:return 51;case 46:return 52;case 47:return 53;case 48:return 54;case 49:this.pushState("STATE_STRING");break;case 50:return this.pushState("STATE_ID"),"AS";case 51:return this.popState(),"ID";case 52:this.popState();break;case 53:return"STATE_DESCR";case 54:return 19;case 55:this.popState();break;case 56:return this.popState(),this.pushState("struct"),20;case 57:break;case 58:return this.popState(),21;case 59:break;case 60:return this.begin("NOTE"),29;case 61:return this.popState(),this.pushState("NOTE_ID"),59;case 62:return this.popState(),this.pushState("NOTE_ID"),60;case 63:this.popState(),this.pushState("FLOATING_NOTE");break;case 64:return this.popState(),this.pushState("FLOATING_NOTE_ID"),"AS";case 65:break;case 66:return"NOTE_TEXT";case 67:return this.popState(),"ID";case 68:return this.popState(),this.pushState("NOTE_TEXT"),24;case 69:return this.popState(),t.yytext=t.yytext.substr(2).trim(),31;case 70:return this.popState(),t.yytext=t.yytext.slice(0,-8).trim(),31;case 71:case 72:return 6;case 73:return 16;case 74:return 57;case 75:return 24;case 76:return t.yytext=t.yytext.trim(),14;case 77:return 15;case 78:return 28;case 79:return 58;case 80:return 5;case 81:return"INVALID"}},"anonymous"),rules:[/^(?:click\b)/i,/^(?:href\b)/i,/^(?:"[^"]*")/i,/^(?:default\b)/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:[\s]+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:classDef\s+)/i,/^(?:DEFAULT\s+)/i,/^(?:\w+\s+)/i,/^(?:[^\n]*)/i,/^(?:class\s+)/i,/^(?:(\w+)+((,\s*\w+)*))/i,/^(?:[^\n]*)/i,/^(?:style\s+)/i,/^(?:[\w,]+\s+)/i,/^(?:[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:state\s+)/i,/^(?:.*<<fork>>)/i,/^(?:.*<<join>>)/i,/^(?:.*<<choice>>)/i,/^(?:.*\[\[fork\]\])/i,/^(?:.*\[\[join\]\])/i,/^(?:.*\[\[choice\]\])/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:["])/i,/^(?:\s*as\s+)/i,/^(?:[^\n\{]*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n\s\{]+)/i,/^(?:\n)/i,/^(?:\{)/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:\})/i,/^(?:[\n])/i,/^(?:note\s+)/i,/^(?:left of\b)/i,/^(?:right of\b) Line truncated `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:mt(function(){return this.next()||this.lex()},"lex"),begin:mt(function(e){this.conditionStack.push(e)},"begin"),popState:mt(function(){return 0<this.conditionStack.length-1?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:mt(function(){return(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]]:this.conditions.INITIAL).rules},"_currentRules"),topState:mt(function(e){return 0<=(e=this.conditionStack.length-1-Math.abs(e||0))?this.conditionStack[e]:"INITIAL"},"topState"),pushState:mt(function(e){this.begin(e)},"pushState"),stateStackSize:mt(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:mt(function(e,t,r,n){switch(r){case 0:return 38;case 1:return 40;case 2:return 39;case 3:return 44;case 4:return 51;case 5:return 52;case 6:return 53;case 7:return 54;case 8:case 9:break;case 10:return 5;case 11:case 12:case 13:case 14:break;case 15:return this.pushState("SCALE"),17;case 16:return 18;case 17:this.popState();break;case 18:return this.begin("acc_title"),33;case 19:return this.popState(),"acc_title_value";case 20:return this.begin("acc_descr"),35;case 21:return this.popState(),"acc_descr_value";case 22:this.begin("acc_descr_multiline");break;case 23:this.popState();break;case 24:return"acc_descr_multiline_value";case 25:return this.pushState("CLASSDEF"),41;case 26:return this.popState(),this.pushState("CLASSDEFID"),"DEFAULT_CLASSDEF_ID";case 27:return this.popState(),this.pushState("CLASSDEFID"),42;case 28:return this.popState(),43;case 29:return this.pushState("CLASS"),48;case 30:return this.popState(),this.pushState("CLASS_STYLE"),49;case 31:return this.popState(),50;case 32:return this.pushState("STYLE"),45;case 33:return this.popState(),this.pushState("STYLEDEF_STYLES"),46;case 34:return this.popState(),47;case 35:return this.pushState("SCALE"),17;case 36:return 18;case 37:this.popState();break;case 38:this.pushState("STATE");break;case 39:return this.popState(),t.yytext=t.yytext.slice(0,-8).trim(),25;case 40:return this.popState(),t.yytext=t.yytext.slice(0,-8).trim(),26;case 41:return this.popState(),t.yytext=t.yytext.slice(0,-10).trim(),27;case 42:return this.popState(),t.yytext=t.yytext.slice(0,-8).trim(),25;case 43:return this.popState(),t.yytext=t.yytext.slice(0,-8).trim(),26;case 44:return this.popState(),t.yytext=t.yytext.slice(0,-10).trim(),27;case 45:return 51;case 46:return 52;case 47:return 53;case 48:return 54;case 49:this.pushState("STATE_STRING");break;case 50:return this.pushState("STATE_ID"),"AS";case 51:return this.popState(),"ID";case 52:this.popState();break;case 53:return"STATE_DESCR";case 54:return 19;case 55:this.popState();break;case 56:return this.popState(),this.pushState("struct"),20;case 57:break;case 58:return this.popState(),21;case 59:break;case 60:return this.begin("NOTE"),29;case 61:return this.popState(),this.pushState("NOTE_ID"),59;case 62:return this.popState(),this.pushState("NOTE_ID"),60;case 63:this.popState(),this.pushState("FLOATING_NOTE");break;case 64:return this.popState(),this.pushState("FLOATING_NOTE_ID"),"AS";case 65:break;case 66:return"NOTE_TEXT";case 67:return this.popState(),"ID";case 68:return this.popState(),this.pushState("NOTE_TEXT"),24;case 69:return this.popState(),t.yytext=t.yytext.substr(2).trim(),31;case 70:return this.popState(),t.yytext=t.yytext.slice(0,-8).trim(),31;case 71:case 72:return 6;case 73:return 16;case 74:return 57;case 75:return 24;case 76:return t.yytext=t.yytext.trim(),14;case 77:return 15;case 78:return 28;case 79:return 58;case 80:return 5;case 81:return"INVALID"}},"anonymous"),rules:[/^(?:click\b)/i,/^(?:href\b)/i,/^(?:"[^"]*")/i,/^(?:default\b)/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:[\s]+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:classDef\s+)/i,/^(?:DEFAULT\s+)/i,/^(?:\w+\s+)/i,/^(?:[^\n]*)/i,/^(?:class\s+)/i,/^(?:(\w+)+((,\s*\w+)*))/i,/^(?:[^\n]*)/i,/^(?:style\s+)/i,/^(?:[\w,]+\s+)/i,/^(?:[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:state\s+)/i,/^(?:.*<<fork>>)/i,/^(?:.*<<join>>)/i,/^(?:.*<<choice>>)/i,/^(?:.*\[\[fork\]\])/i,/^(?:.*\[\[join\]\])/i,/^(?:.*\[\[choice\]\])/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:["])/i,/^(?:\s*as\s+)/i,/^(?:[^\n\{]*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n\s\{]+)/i,/^(?:\n)/i,/^(?:\{)/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:\})/i,/^(?:[\n])/i,/^(?:note\s+)/i,/^(?:left of\b)/i,/^(?:right of\b) Line truncated
defs #statediagram-barbEnd { defs #statediagram-barbEnd {
fill: ${e.transitionColor}; fill: ${e.transitionColor};
stroke: ${e.transitionColor}; stroke: ${e.transitionColor};
@@ -2150,12 +2150,12 @@ g.stateGroup line {
font-size: 18px; font-size: 18px;
fill: ${e.textColor}; fill: ${e.textColor};
} }
`,"getStyles"),fLe=gLe}),zLe=b(()=>{i6(),$Le(),i_(),Oc(),Tu(),e(),mLe=mt(e=>e.append("circle").attr("class","start-state").attr("r",O().state.sizeUnit).attr("cx",O().state.padding+O().state.sizeUnit).attr("cy",O().state.padding+O().state.sizeUnit),"drawStartState"),yLe=mt(e=>e.append("line").style("stroke","grey").style("stroke-dasharray","3").attr("x1",O().state.textHeight).attr("class","divider").attr("x2",2*O().state.textHeight).attr("y1",0).attr("y2",0),"drawDivider"),vLe=mt((e,t)=>{var r=(t=e.append("text").attr("x",2*O().state.padding).attr("y",O().state.textHeight+2*O().state.padding).attr("font-size",O().state.fontSize).attr("class","state-title").text(t.id)).node().getBBox();return e.insert("rect",":first-child").attr("x",O().state.padding).attr("y",O().state.padding).attr("width",r.width+2*O().state.padding).attr("height",r.height+2*O().state.padding).attr("rx",O().state.radius),t},"drawSimpleState"),xLe=mt((e,t)=>{let r=mt(function(e,t,r){e=e.append("tspan").attr("x",2*O().state.padding).text(t),r||e.attr("dy",O().state.textHeight)},"addTspan"),n=e.append("text").attr("x",2*O().state.padding).attr("y",O().state.textHeight+1.3*O().state.padding).attr("font-size",O().state.fontSize).attr("class","state-title").text(t.descriptions[0]).node().getBBox(),i=n.height,a=e.append("text").attr("x",O().state.padding).attr("y",i+.4*O().state.padding+O().state.dividerMargin+O().state.textHeight).attr("class","state-description"),s=!0,o=!0;t.descriptions.forEach(function(e){s||(r(a,e,o),o=!1),s=!1});var t=e.append("line").attr("x1",O().state.padding).attr("y1",O().state.padding+i+O().state.dividerMargin/2).attr("y2",O().state.padding+i+O().state.dividerMargin/2).attr("class","descr-divider"),l=a.node().getBBox(),c=Math.max(l.width,n.width);return t.attr("x2",c+3*O().state.padding),e.insert("rect",":first-child").attr("x",O().state.padding).attr("y",O().state.padding).attr("width",c+2*O().state.padding).attr("height",l.height+i+2*O().state.padding).attr("rx",O().state.radius),e},"drawDescrState"),bLe=mt((e,t,r)=>{let n=O().state.padding,i=2*O().state.padding,a=e.node().getBBox(),s=a.width,o=a.x,l=e.append("text").attr("x",0).attr("y",O().state.titleShift).attr("font-size",O().state.fontSize).attr("class","state-title").text(t.id),c=l.node().getBBox().width+i,h=Math.max(c,s);h===s&&(h+=i);let u,d=e.node().getBBox();return t.doc,u=o-n,s<c&&(u=(s-h)/2+n),Math.abs(o-d.x)<n&&s<c&&(u=o-(c-s)/2),t=1-O().state.textHeight,e.insert("rect",":first-child").attr("x",u).attr("y",t).attr("class",r?"alt-composit":"composit").attr("width",h).attr("height",d.height+O().state.textHeight+O().state.titleShift+1).attr("rx","0"),l.attr("x",u+n),c<=s&&l.attr("x",o+(h-i)/2-c/2+n),e.insert("rect",":first-child").attr("x",u).attr("y",O().state.titleShift-O().state.textHeight-O().state.padding).attr("width",h).attr("height",3*O().state.textHeight).attr("rx",O().state.radius),e.insert("rect",":first-child").attr("x",u).attr("y",O().state.titleShift-O().state.textHeight-O().state.padding).attr("width",h).attr("height",d.height+3+2*O().state.textHeight).attr("rx",O().state.radius),e},"addTitleAndBox"),wLe=mt(e=>(e.append("circle").attr("class","end-state-outer").attr("r",O().state.sizeUnit+O().state.miniPadding).attr("cx",O().state.padding+O().state.sizeUnit+O().state.miniPadding).attr("cy",O().state.padding+O().state.sizeUnit+O().state.miniPadding),e.append("circle").attr("class","end-state-inner").attr("r",O().state.sizeUnit).attr("cx",O().state.padding+O().state.sizeUnit+2).attr("cy",O().state.padding+O().state.sizeUnit+2)),"drawEndState"),kLe=mt((e,t)=>{let r=O().state.forkWidth,n=O().state.forkHeight;return t.parentId&&(t=r,r=n,n=t),e.append("rect").style("stroke","black").style("fill","black").attr("width",r).attr("height",n).attr("x",O().state.padding).attr("y",O().state.padding)},"drawForkJoinState"),TLe=mt((e,t,r,n)=>{let i=0,a=n.append("text"),s=(a.style("text-anchor","start"),a.attr("class","noteText"),e.replace(/\r\n/g,"<br/>")),o=(s=s.replace(/\n/g,"<br/>")).split(L.lineBreakRegex),l=1.25*O().state.noteMargin;for(var c of o){var h;0<(c=c.trim()).length&&((h=a.append("tspan")).text(c),0===l&&(c=h.node().getBBox(),l+=c.height),i+=l,h.attr("x",t+O().state.noteMargin),h.attr("y",r+i+1.25*O().state.noteMargin))}return{textWidth:a.node().getBBox().width,textHeight:i}},"_drawLongText"),ELe=mt((e,t)=>{t.attr("class","state-note");var r=t.append("rect").attr("x",0).attr("y",O().state.padding),t=t.append("g"),{textWidth:e,textHeight:t}=TLe(e,0,0,t);return r.attr("height",t+2*O().state.noteMargin),r.attr("width",e+2*O().state.noteMargin),r},"drawNote"),CLe=mt(function(e,t){var r={id:n=t.id,label:t.id,width:0,height:0},e=e.append("g").attr("id",n).attr("class","stateGroup"),n=("start"===t.type&&mLe(e),"end"===t.type&&wLe(e),"fork"!==t.type&&"join"!==t.type||kLe(e,t),"note"===t.type&&ELe(t.note.text,e),"divider"===t.type&&yLe(e),"default"===t.type&&0===t.descriptions.length&&vLe(e,t),"default"===t.type&&0<t.descriptions.length&&xLe(e,t),e.no Line truncated `,"getStyles"),mLe=fLe}),GLe=b(()=>{i6(),FLe(),iS(),Oc(),Tu(),e(),yLe=mt(e=>e.append("circle").attr("class","start-state").attr("r",O().state.sizeUnit).attr("cx",O().state.padding+O().state.sizeUnit).attr("cy",O().state.padding+O().state.sizeUnit),"drawStartState"),vLe=mt(e=>e.append("line").style("stroke","grey").style("stroke-dasharray","3").attr("x1",O().state.textHeight).attr("class","divider").attr("x2",2*O().state.textHeight).attr("y1",0).attr("y2",0),"drawDivider"),xLe=mt((e,t)=>{var r=(t=e.append("text").attr("x",2*O().state.padding).attr("y",O().state.textHeight+2*O().state.padding).attr("font-size",O().state.fontSize).attr("class","state-title").text(t.id)).node().getBBox();return e.insert("rect",":first-child").attr("x",O().state.padding).attr("y",O().state.padding).attr("width",r.width+2*O().state.padding).attr("height",r.height+2*O().state.padding).attr("rx",O().state.radius),t},"drawSimpleState"),bLe=mt((e,t)=>{let r=mt(function(e,t,r){e=e.append("tspan").attr("x",2*O().state.padding).text(t),r||e.attr("dy",O().state.textHeight)},"addTspan"),n=e.append("text").attr("x",2*O().state.padding).attr("y",O().state.textHeight+1.3*O().state.padding).attr("font-size",O().state.fontSize).attr("class","state-title").text(t.descriptions[0]).node().getBBox(),i=n.height,a=e.append("text").attr("x",O().state.padding).attr("y",i+.4*O().state.padding+O().state.dividerMargin+O().state.textHeight).attr("class","state-description"),s=!0,o=!0;t.descriptions.forEach(function(e){s||(r(a,e,o),o=!1),s=!1});var t=e.append("line").attr("x1",O().state.padding).attr("y1",O().state.padding+i+O().state.dividerMargin/2).attr("y2",O().state.padding+i+O().state.dividerMargin/2).attr("class","descr-divider"),l=a.node().getBBox(),c=Math.max(l.width,n.width);return t.attr("x2",c+3*O().state.padding),e.insert("rect",":first-child").attr("x",O().state.padding).attr("y",O().state.padding).attr("width",c+2*O().state.padding).attr("height",l.height+i+2*O().state.padding).attr("rx",O().state.radius),e},"drawDescrState"),wLe=mt((e,t,r)=>{let n=O().state.padding,i=2*O().state.padding,a=e.node().getBBox(),s=a.width,o=a.x,l=e.append("text").attr("x",0).attr("y",O().state.titleShift).attr("font-size",O().state.fontSize).attr("class","state-title").text(t.id),c=l.node().getBBox().width+i,h=Math.max(c,s);h===s&&(h+=i);let u,d=e.node().getBBox();return t.doc,u=o-n,s<c&&(u=(s-h)/2+n),Math.abs(o-d.x)<n&&s<c&&(u=o-(c-s)/2),t=1-O().state.textHeight,e.insert("rect",":first-child").attr("x",u).attr("y",t).attr("class",r?"alt-composit":"composit").attr("width",h).attr("height",d.height+O().state.textHeight+O().state.titleShift+1).attr("rx","0"),l.attr("x",u+n),c<=s&&l.attr("x",o+(h-i)/2-c/2+n),e.insert("rect",":first-child").attr("x",u).attr("y",O().state.titleShift-O().state.textHeight-O().state.padding).attr("width",h).attr("height",3*O().state.textHeight).attr("rx",O().state.radius),e.insert("rect",":first-child").attr("x",u).attr("y",O().state.titleShift-O().state.textHeight-O().state.padding).attr("width",h).attr("height",d.height+3+2*O().state.textHeight).attr("rx",O().state.radius),e},"addTitleAndBox"),kLe=mt(e=>(e.append("circle").attr("class","end-state-outer").attr("r",O().state.sizeUnit+O().state.miniPadding).attr("cx",O().state.padding+O().state.sizeUnit+O().state.miniPadding).attr("cy",O().state.padding+O().state.sizeUnit+O().state.miniPadding),e.append("circle").attr("class","end-state-inner").attr("r",O().state.sizeUnit).attr("cx",O().state.padding+O().state.sizeUnit+2).attr("cy",O().state.padding+O().state.sizeUnit+2)),"drawEndState"),TLe=mt((e,t)=>{let r=O().state.forkWidth,n=O().state.forkHeight;return t.parentId&&(t=r,r=n,n=t),e.append("rect").style("stroke","black").style("fill","black").attr("width",r).attr("height",n).attr("x",O().state.padding).attr("y",O().state.padding)},"drawForkJoinState"),ELe=mt((e,t,r,n)=>{let i=0,a=n.append("text"),s=(a.style("text-anchor","start"),a.attr("class","noteText"),e.replace(/\r\n/g,"<br/>")),o=(s=s.replace(/\n/g,"<br/>")).split(N.lineBreakRegex),l=1.25*O().state.noteMargin;for(var c of o){var h;0<(c=c.trim()).length&&((h=a.append("tspan")).text(c),0===l&&(c=h.node().getBBox(),l+=c.height),i+=l,h.attr("x",t+O().state.noteMargin),h.attr("y",r+i+1.25*O().state.noteMargin))}return{textWidth:a.node().getBBox().width,textHeight:i}},"_drawLongText"),CLe=mt((e,t)=>{t.attr("class","state-note");var r=t.append("rect").attr("x",0).attr("y",O().state.padding),t=t.append("g"),{textWidth:e,textHeight:t}=ELe(e,0,0,t);return r.attr("height",t+2*O().state.noteMargin),r.attr("width",e+2*O().state.noteMargin),r},"drawNote"),SLe=mt(function(e,t){var r={id:n=t.id,label:t.id,width:0,height:0},e=e.append("g").attr("id",n).attr("class","stateGroup"),n=("start"===t.type&&yLe(e),"end"===t.type&&kLe(e),"fork"!==t.type&&"join"!==t.type||TLe(e,t),"note"===t.type&&CLe(t.note.text,e),"divider"===t.type&&vLe(e),"default"===t.type&&0===t.descriptions.length&&xLe(e,t),"default"===t.type&&0<t.descriptions.length&&bLe(e,t),e.no Line truncated
`+g.showPosition()+` `+g.showPosition()+`
Expecting `+A.join(", ")+", got '"+(this.terminals_[x]||x)+"'":"Parse error on line "+(c+1)+": Unexpected "+(x==d?"end of input":"'"+(this.terminals_[x]||x)+"'"),this.parseError(S,{text:g.match,token:this.terminals_[x]||x,line:g.yylineno,loc:m,expected:A})}if(k[0]instanceof Array&&1<k.length)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+x);switch(k[0]){case 1:n.push(x),a.push(g.yytext),s.push(g.yylloc),n.push(k[1]),x=null,b?(x=b,b=null):(h=g.yyleng,l=g.yytext,c=g.yylineno,m=g.yylloc,0<u&&u--);break;case 2:if(E=this.productions_[k[1]][1],_.$=a[a.length-E],_._$={first_line:s[s.length-(E||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(E||1)].first_column,last_column:s[s.length-1].last_column},y&&(_._$.range=[s[s.length-(E||1)].range[0],s[s.length-1].range[1]]),typeof(C=this.performAction.apply(_,[l,h,c,f.yy,k[1],a,s].concat(p)))<"u")return C;E&&(n=n.slice(0,-1*E*2),a=a.slice(0,-1*E),s=s.slice(0,-1*E)),n.push(this.productions_[k[1]][0]),a.push(_.$),s.push(_._$),C=o[n[n.length-2]][n[n.length-1]],n.push(C);break;case 3:return!0}}return!0},"parse")},i={EOF:1,parseError:mt(function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},"parseError"),setInput:mt(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:mt(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},"input"),unput:mt(function(e){var t=e.length,r=e.split(/(?:\r\n?|\n)/g),e=(this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t,this.match.split(/(?:\r\n?|\n)/g)),n=(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),r.length-1&&(this.yylineno-=r.length-1),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:r?(r.length===e.length?this.yylloc.first_column:0)+e[e.length-r.length].length-r[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[n[0],n[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},"unput"),more:mt(function(){return this._more=!0,this},"more"),reject:mt(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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). Expecting `+A.join(", ")+", got '"+(this.terminals_[x]||x)+"'":"Parse error on line "+(c+1)+": Unexpected "+(x==d?"end of input":"'"+(this.terminals_[x]||x)+"'"),this.parseError(_,{text:g.match,token:this.terminals_[x]||x,line:g.yylineno,loc:m,expected:A})}if(k[0]instanceof Array&&1<k.length)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+x);switch(k[0]){case 1:n.push(x),a.push(g.yytext),s.push(g.yylloc),n.push(k[1]),x=null,b?(x=b,b=null):(h=g.yyleng,l=g.yytext,c=g.yylineno,m=g.yylloc,0<u&&u--);break;case 2:if(E=this.productions_[k[1]][1],S.$=a[a.length-E],S._$={first_line:s[s.length-(E||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(E||1)].first_column,last_column:s[s.length-1].last_column},y&&(S._$.range=[s[s.length-(E||1)].range[0],s[s.length-1].range[1]]),typeof(C=this.performAction.apply(S,[l,h,c,f.yy,k[1],a,s].concat(p)))<"u")return C;E&&(n=n.slice(0,-1*E*2),a=a.slice(0,-1*E),s=s.slice(0,-1*E)),n.push(this.productions_[k[1]][0]),a.push(S.$),s.push(S._$),C=o[n[n.length-2]][n[n.length-1]],n.push(C);break;case 3:return!0}}return!0},"parse")},i={EOF:1,parseError:mt(function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},"parseError"),setInput:mt(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:mt(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},"input"),unput:mt(function(e){var t=e.length,r=e.split(/(?:\r\n?|\n)/g),e=(this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t,this.match.split(/(?:\r\n?|\n)/g)),n=(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),r.length-1&&(this.yylineno-=r.length-1),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:r?(r.length===e.length?this.yylloc.first_column:0)+e[e.length-r.length].length-r[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[n[0],n[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},"unput"),more:mt(function(){return this._more=!0,this},"more"),reject:mt(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:mt(function(e){this.unput(this.match.slice(e))},"less"),pastInput:mt(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(20<e.length?"...":"")+e.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:mt(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(20<e.length?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:mt(function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+` `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:mt(function(e){this.unput(this.match.slice(e))},"less"),pastInput:mt(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(20<e.length?"...":"")+e.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:mt(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(20<e.length?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:mt(function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+`
`+t+"^"},"showPosition"),test_match:mt(function(e,t){var r,n;if(this.options.backtrack_lexer&&(n={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)&&(n.yylloc.range=this.yylloc.range.slice(0)),(r=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],r=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),r)return r;if(this._backtrack)for(var i in n)this[i]=n[i];return!1},"test_match"),next:mt(function(){if(this.done)return this.EOF;var e,t,r,n;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;a<i.length;a++)if((r=this._input.match(this.rules[i[a]]))&&(!t||r[0].length>t[0].length)){if(t=r,n=a,this.options.backtrack_lexer){if(!1!==(e=this.test_match(r,i[a])))return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,i[n]))&&e:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. `+t+"^"},"showPosition"),test_match:mt(function(e,t){var r,n;if(this.options.backtrack_lexer&&(n={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)&&(n.yylloc.range=this.yylloc.range.slice(0)),(r=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],r=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),r)return r;if(this._backtrack)for(var i in n)this[i]=n[i];return!1},"test_match"),next:mt(function(){if(this.done)return this.EOF;var e,t,r,n;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;a<i.length;a++)if((r=this._input.match(this.rules[i[a]]))&&(!t||r[0].length>t[0].length)){if(t=r,n=a,this.options.backtrack_lexer){if(!1!==(e=this.test_match(r,i[a])))return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,i[n]))&&e:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:mt(function(){return this.next()||this.lex()},"lex"),begin:mt(function(e){this.conditionStack.push(e)},"begin"),popState:mt(function(){return 0<this.conditionStack.length-1?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:mt(function(){return(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]]:this.conditions.INITIAL).rules},"_currentRules"),topState:mt(function(e){return 0<=(e=this.conditionStack.length-1-Math.abs(e||0))?this.conditionStack[e]:"INITIAL"},"topState"),pushState:mt(function(e){this.begin(e)},"pushState"),stateStackSize:mt(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:mt(function(e,t,r,n){switch(r){case 0:case 1:break;case 2:return 10;case 3:case 4:break;case 5:return 4;case 6:return 11;case 7:return this.begin("acc_title"),12;case 8:return this.popState(),"acc_title_value";case 9:return this.begin("acc_descr"),14;case 10:return this.popState(),"acc_descr_value";case 11:this.begin("acc_descr_multiline");break;case 12:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:return 17;case 15:return 18;case 16:return 19;case 17:return":";case 18:return 6;case 19:return"INVALID"}},"anonymous"),rules:[/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:journey\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:section\s[^#:\n;]+)/i,/^(?:[^#:\n;]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,9,11,14,15,16,17,18,19],inclusive:!0}}};n.lexer=i,mt(e,"Parser"),(HLe=new((e.prototype=n).Parser=e)).parser=HLe,VLe=HLe}),CNe=b(()=>{Tu(),ku(),XLe="",KLe=[],ZLe=[],QLe=[],JLe=mt(function(){KLe.length=0,ZLe.length=0,XLe="",QLe.length=0,fh()},"clear"),eNe=mt(function(e){XLe=e,KLe.push(e)},"addSection"),tNe=mt(function(){return KLe},"getSections"),rNe=mt(function(){let e=sNe(),t=0;for(;!e&&t<100;)e=sNe(),t++;return ZLe.push(...QLe),ZLe},"getTasks"),nNe=mt(function(){let t=[];return ZLe.forEach(e=>{e.people&&t.push(...e.people)}),[...new Set(t)].sort()},"updateActors"),iNe=mt(function(e,t){let r=t.substr(1).split(":"),n=0;t=(1===r.length?(n=Number(r[0]),[]):(n=Number(r[0]),r[1].split(","))).map(e=>e.trim()),t={section:XLe,type:XLe,people:t,task:e,score:n},QLe.push(t)},"addTask"),aNe=mt(function(e){e={section:XLe,type:XLe,description:e,task:e,classes:[]},ZLe.push(e)},"addTaskOrg"),sNe=mt(function(){let e=mt(function(e){return QLe[e].processed},"compileTask"),t=!0;for(var[r,n]of QLe.entries())e(r),t=t&&n.processed;return t},"compileTasks"),oNe=mt(function(){return nNe()},"getActors"),lNe={getConfig:mt(()=>O().journey,"getConfig"),clear:JLe,setDiagramTitle:bh,getDiagramTitle:wh,setAccTitle:mh,getAccTitle:yh,setAccDescription:vh,getAccDescription:xh,addSection:eNe,getSections:tNe,getTasks:rNe,addTask:iNe,addTaskOrg:aNe,getActors:oNe}}),_Ne=b(()=>{nue(),cNe=mt(e=>`.label { `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:mt(function(){return this.next()||this.lex()},"lex"),begin:mt(function(e){this.conditionStack.push(e)},"begin"),popState:mt(function(){return 0<this.conditionStack.length-1?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:mt(function(){return(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]]:this.conditions.INITIAL).rules},"_currentRules"),topState:mt(function(e){return 0<=(e=this.conditionStack.length-1-Math.abs(e||0))?this.conditionStack[e]:"INITIAL"},"topState"),pushState:mt(function(e){this.begin(e)},"pushState"),stateStackSize:mt(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:mt(function(e,t,r,n){switch(r){case 0:case 1:break;case 2:return 10;case 3:case 4:break;case 5:return 4;case 6:return 11;case 7:return this.begin("acc_title"),12;case 8:return this.popState(),"acc_title_value";case 9:return this.begin("acc_descr"),14;case 10:return this.popState(),"acc_descr_value";case 11:this.begin("acc_descr_multiline");break;case 12:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:return 17;case 15:return 18;case 16:return 19;case 17:return":";case 18:return 6;case 19:return"INVALID"}},"anonymous"),rules:[/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:journey\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:section\s[^#:\n;]+)/i,/^(?:[^#:\n;]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,9,11,14,15,16,17,18,19],inclusive:!0}}};n.lexer=i,mt(e,"Parser"),(VLe=new((e.prototype=n).Parser=e)).parser=VLe,XLe=VLe}),SNe=b(()=>{Tu(),ku(),KLe="",ZLe=[],QLe=[],JLe=[],eNe=mt(function(){ZLe.length=0,QLe.length=0,KLe="",JLe.length=0,fh()},"clear"),tNe=mt(function(e){KLe=e,ZLe.push(e)},"addSection"),rNe=mt(function(){return ZLe},"getSections"),nNe=mt(function(){let e=oNe(),t=0;for(;!e&&t<100;)e=oNe(),t++;return QLe.push(...JLe),QLe},"getTasks"),iNe=mt(function(){let t=[];return QLe.forEach(e=>{e.people&&t.push(...e.people)}),[...new Set(t)].sort()},"updateActors"),aNe=mt(function(e,t){let r=t.substr(1).split(":"),n=0;t=(1===r.length?(n=Number(r[0]),[]):(n=Number(r[0]),r[1].split(","))).map(e=>e.trim()),t={section:KLe,type:KLe,people:t,task:e,score:n},JLe.push(t)},"addTask"),sNe=mt(function(e){e={section:KLe,type:KLe,description:e,task:e,classes:[]},QLe.push(e)},"addTaskOrg"),oNe=mt(function(){let e=mt(function(e){return JLe[e].processed},"compileTask"),t=!0;for(var[r,n]of JLe.entries())e(r),t=t&&n.processed;return t},"compileTasks"),lNe=mt(function(){return iNe()},"getActors"),cNe={getConfig:mt(()=>O().journey,"getConfig"),clear:eNe,setDiagramTitle:bh,getDiagramTitle:wh,setAccTitle:mh,getAccTitle:yh,setAccDescription:vh,getAccDescription:xh,addSection:tNe,getSections:rNe,getTasks:nNe,addTask:aNe,addTaskOrg:sNe,getActors:lNe}}),_Ne=b(()=>{nue(),hNe=mt(e=>`.label {
font-family: ${e.fontFamily}; font-family: ${e.fontFamily};
color: ${e.textColor}; color: ${e.textColor};
} }
@@ -2288,12 +2288,12 @@ Expecting `+A.join(", ")+", got '"+(this.terminals_[x]||x)+"'":"Parse error on l
${e.actor5?"fill: "+e.actor5:""}; ${e.actor5?"fill: "+e.actor5:""};
} }
${Hhe()} ${Hhe()}
`,"getStyles"),hNe=cNe}),SNe=b(()=>{function t(e,t,r,n,i,a,s,o){g(t.append("text").attr("x",r+i/2).attr("y",n+a/2+5).style("font-color",o).style("text-anchor","middle").text(e),s)}function c(e,t,r,n,i,a,s,o,l){var{taskFontSize:c,taskFontFamily:h}=o,u=e.split(/<br\s*\/?>/gi);for(let e=0;e<u.length;e++){var d=e*c-c*(u.length-1)/2,p=t.append("text").attr("x",r+i/2).attr("y",n).attr("fill",l).style("text-anchor","middle").style("font-size",c).style("font-family",h);p.append("tspan").attr("x",r+i/2).attr("dy",d).text(u[e]),p.attr("y",n+a/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),g(p,s)}}function r(e,t,r,n,i,a,s,o){var l=(t=t.append("switch")).append("foreignObject").attr("x",r).attr("y",n).attr("width",i).attr("height",a).attr("position","fixed").append("xhtml:div").style("display","table").style("height","100%").style("width","100%");l.append("div").attr("class","label").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(e),c(e,t,r,n,i,a,s,o),g(l,s)}function g(e,t){for(var r in t)r in t&&e.attr(r,t[r])}i6(),o6(),uNe=mt(function(e,t){return Ew(e,t)},"drawRect"),dNe=mt(function(e,r){var t=e.append("circle").attr("cx",r.cx).attr("cy",r.cy).attr("class","face").attr("r",15).attr("stroke-width",2).attr("overflow","visible");function n(e){var t=W5().startAngle(Math.PI/2).endAngle(Math.PI/2*3).innerRadius(7.5).outerRadius(6.8181818181818175);e.append("path").attr("class","mouth").attr("d",t).attr("transform","translate("+r.cx+","+(r.cy+2)+")")}function i(e){var t=W5().startAngle(3*Math.PI/2).endAngle(Math.PI/2*5).innerRadius(7.5).outerRadius(6.8181818181818175);e.append("path").attr("class","mouth").attr("d",t).attr("transform","translate("+r.cx+","+(r.cy+7)+")")}function a(e){e.append("line").attr("class","mouth").attr("stroke",2).attr("x1",r.cx-5).attr("y1",r.cy+7).attr("x2",r.cx+5).attr("y2",r.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}return(e=e.append("g")).append("circle").attr("cx",r.cx-5).attr("cy",r.cy-5).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),e.append("circle").attr("cx",r.cx+5).attr("cy",r.cy-5).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),mt(n,"smile"),mt(i,"sad"),mt(a,"ambivalent"),(3<r.score?n:r.score<3?i:a)(e),t},"drawFace"),pNe=mt(function(e,t){return(e=e.append("circle")).attr("cx",t.cx),e.attr("cy",t.cy),e.attr("class","actor-"+t.pos),e.attr("fill",t.fill),e.attr("stroke",t.stroke),e.attr("r",t.r),void 0!==e.class&&e.attr("class",e.class),void 0!==t.title&&e.append("title").text(t.title),e},"drawCircle"),gNe=mt(function(e,t){return _w(e,t)},"drawText"),fNe=mt(function(e,t){function r(e,t,r,n,i){return e+","+t+" "+(e+r)+","+t+" "+(e+r)+","+(t+n-i)+" "+(e+r-1.2*i)+","+(t+n)+" "+e+","+(t+n)}mt(r,"genPoints");var n=e.append("polygon");n.attr("points",r(t.x,t.y,50,20,7)),n.attr("class","labelBox"),t.y=t.y+t.labelMargin,t.x=t.x+.5*t.labelMargin,gNe(e,t)},"drawLabel"),mNe=mt(function(e,t,r){var e=e.append("g"),n=Lw();n.x=t.x,n.y=t.y,n.fill=t.fill,n.width=r.width*t.taskCount+r.diagramMarginX*(t.taskCount-1),n.height=r.height,n.class="journey-section section-type-"+t.num,n.rx=3,n.ry=3,uNe(e,n),bNe(r)(t.text,e,n.x,n.y,n.width,n.height,{class:"journey-section section-type-"+t.num},r,t.colour)},"drawSection"),yNe=-1,vNe=mt(function(e,r,t){let n=r.x+t.width/2,i=e.append("g"),a=(yNe++,i.append("line").attr("id","task"+yNe).attr("x1",n).attr("y1",r.y).attr("x2",n).attr("y2",450).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),dNe(i,{cx:n,cy:300+30*(5-r.score),score:r.score}),(e=Lw()).x=r.x,e.y=r.y,e.fill=r.fill,e.width=t.width,e.height=t.height,e.class="task task-type-"+r.num,e.rx=3,e.ry=3,uNe(i,e),r.x+14);r.people.forEach(e=>{var t=r.actors[e].color,t={cx:a,cy:r.y,r:7,fill:t,stroke:"#000",title:e,pos:r.actors[e].position};pNe(i,t),a+=10}),bNe(t)(r.task,i,e.x,e.y,e.width,e.height,{class:"task"},t,r.colour)},"drawTask"),xNe=mt(function(e,t){Cw(e,t)},"drawBackgroundRect"),mt(t,"byText"),mt(c,"byTspan"),mt(r,"byFo"),mt(g,"_setTextAttrs"),bNe=function(e){return"fo"===e.textPlacement?r:"old"===e.textPlacement?t:c},wNe=mt(function(e){e.append("defs").append("marker").attr("id","arrowhead").attr("refX",5).attr("refY",2).attr("markerWidth",6).attr("markerHeight",4).attr("orient","auto").append("path").attr("d","M 0,0 V 4 L6,2 Z")},"initGraphics"),kNe={drawRect:uNe,drawCircle:pNe,drawSection:mNe,drawText:gNe,drawLabel:fNe,drawTask:vNe,drawBackgroundRect:xNe,initGraphics:wNe}});function ANe(s){let n=O().journey,o=n.maxLabelWidth,l=(INe=0,60);Object.keys(NNe).forEach(t=>{var e=NNe[t].color,e={cx:20,cy:l,r:7,fill:e,stroke:"#000",pos:NNe[t].position};kNe.drawCircle(s,e);let i=s.append("text").attr("visibility","hidden").text(t),r=i.node().getBoundingClientRect().width,a=(i.remove(),[]);if(r<=o)a=[t];else{let e=t.split(" "),n="";i=s.append("text").attr("visibility","hidden"),e.forEach(t Line truncated `,"getStyles"),uNe=hNe}),ANe=b(()=>{function t(e,t,r,n,i,a,s,o){g(t.append("text").attr("x",r+i/2).attr("y",n+a/2+5).style("font-color",o).style("text-anchor","middle").text(e),s)}function c(e,t,r,n,i,a,s,o,l){var{taskFontSize:c,taskFontFamily:h}=o,u=e.split(/<br\s*\/?>/gi);for(let e=0;e<u.length;e++){var d=e*c-c*(u.length-1)/2,p=t.append("text").attr("x",r+i/2).attr("y",n).attr("fill",l).style("text-anchor","middle").style("font-size",c).style("font-family",h);p.append("tspan").attr("x",r+i/2).attr("dy",d).text(u[e]),p.attr("y",n+a/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),g(p,s)}}function r(e,t,r,n,i,a,s,o){var l=(t=t.append("switch")).append("foreignObject").attr("x",r).attr("y",n).attr("width",i).attr("height",a).attr("position","fixed").append("xhtml:div").style("display","table").style("height","100%").style("width","100%");l.append("div").attr("class","label").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(e),c(e,t,r,n,i,a,s,o),g(l,s)}function g(e,t){for(var r in t)r in t&&e.attr(r,t[r])}i6(),o6(),dNe=mt(function(e,t){return Ew(e,t)},"drawRect"),pNe=mt(function(e,r){var t=e.append("circle").attr("cx",r.cx).attr("cy",r.cy).attr("class","face").attr("r",15).attr("stroke-width",2).attr("overflow","visible");function n(e){var t=W5().startAngle(Math.PI/2).endAngle(Math.PI/2*3).innerRadius(7.5).outerRadius(6.8181818181818175);e.append("path").attr("class","mouth").attr("d",t).attr("transform","translate("+r.cx+","+(r.cy+2)+")")}function i(e){var t=W5().startAngle(3*Math.PI/2).endAngle(Math.PI/2*5).innerRadius(7.5).outerRadius(6.8181818181818175);e.append("path").attr("class","mouth").attr("d",t).attr("transform","translate("+r.cx+","+(r.cy+7)+")")}function a(e){e.append("line").attr("class","mouth").attr("stroke",2).attr("x1",r.cx-5).attr("y1",r.cy+7).attr("x2",r.cx+5).attr("y2",r.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}return(e=e.append("g")).append("circle").attr("cx",r.cx-5).attr("cy",r.cy-5).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),e.append("circle").attr("cx",r.cx+5).attr("cy",r.cy-5).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),mt(n,"smile"),mt(i,"sad"),mt(a,"ambivalent"),(3<r.score?n:r.score<3?i:a)(e),t},"drawFace"),gNe=mt(function(e,t){return(e=e.append("circle")).attr("cx",t.cx),e.attr("cy",t.cy),e.attr("class","actor-"+t.pos),e.attr("fill",t.fill),e.attr("stroke",t.stroke),e.attr("r",t.r),void 0!==e.class&&e.attr("class",e.class),void 0!==t.title&&e.append("title").text(t.title),e},"drawCircle"),fNe=mt(function(e,t){return Sw(e,t)},"drawText"),mNe=mt(function(e,t){function r(e,t,r,n,i){return e+","+t+" "+(e+r)+","+t+" "+(e+r)+","+(t+n-i)+" "+(e+r-1.2*i)+","+(t+n)+" "+e+","+(t+n)}mt(r,"genPoints");var n=e.append("polygon");n.attr("points",r(t.x,t.y,50,20,7)),n.attr("class","labelBox"),t.y=t.y+t.labelMargin,t.x=t.x+.5*t.labelMargin,fNe(e,t)},"drawLabel"),yNe=mt(function(e,t,r){var e=e.append("g"),n=Lw();n.x=t.x,n.y=t.y,n.fill=t.fill,n.width=r.width*t.taskCount+r.diagramMarginX*(t.taskCount-1),n.height=r.height,n.class="journey-section section-type-"+t.num,n.rx=3,n.ry=3,dNe(e,n),wNe(r)(t.text,e,n.x,n.y,n.width,n.height,{class:"journey-section section-type-"+t.num},r,t.colour)},"drawSection"),vNe=-1,xNe=mt(function(e,r,t){let n=r.x+t.width/2,i=e.append("g"),a=(vNe++,i.append("line").attr("id","task"+vNe).attr("x1",n).attr("y1",r.y).attr("x2",n).attr("y2",450).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),pNe(i,{cx:n,cy:300+30*(5-r.score),score:r.score}),(e=Lw()).x=r.x,e.y=r.y,e.fill=r.fill,e.width=t.width,e.height=t.height,e.class="task task-type-"+r.num,e.rx=3,e.ry=3,dNe(i,e),r.x+14);r.people.forEach(e=>{var t=r.actors[e].color,t={cx:a,cy:r.y,r:7,fill:t,stroke:"#000",title:e,pos:r.actors[e].position};gNe(i,t),a+=10}),wNe(t)(r.task,i,e.x,e.y,e.width,e.height,{class:"task"},t,r.colour)},"drawTask"),bNe=mt(function(e,t){Cw(e,t)},"drawBackgroundRect"),mt(t,"byText"),mt(c,"byTspan"),mt(r,"byFo"),mt(g,"_setTextAttrs"),wNe=function(e){return"fo"===e.textPlacement?r:"old"===e.textPlacement?t:c},kNe=mt(function(e){e.append("defs").append("marker").attr("id","arrowhead").attr("refX",5).attr("refY",2).attr("markerWidth",6).attr("markerHeight",4).attr("orient","auto").append("path").attr("d","M 0,0 V 4 L6,2 Z")},"initGraphics"),TNe={drawRect:dNe,drawCircle:gNe,drawSection:yNe,drawText:fNe,drawLabel:mNe,drawTask:xNe,drawBackgroundRect:bNe,initGraphics:kNe}});function LNe(s){let n=O().journey,o=n.maxLabelWidth,l=(RNe=0,60);Object.keys(INe).forEach(t=>{var e=INe[t].color,e={cx:20,cy:l,r:7,fill:e,stroke:"#000",pos:INe[t].position};TNe.drawCircle(s,e);let i=s.append("text").attr("visibility","hidden").text(t),r=i.node().getBoundingClientRect().width,a=(i.remove(),[]);if(r<=o)a=[t];else{let e=t.split(" "),n="";i=s.append("text").attr("visibility","hidden"),e.forEach(t Line truncated
`+g.showPosition()+` `+g.showPosition()+`
Expecting `+A.join(", ")+", got '"+(this.terminals_[x]||x)+"'":"Parse error on line "+(c+1)+": Unexpected "+(x==d?"end of input":"'"+(this.terminals_[x]||x)+"'"),this.parseError(S,{text:g.match,token:this.terminals_[x]||x,line:g.yylineno,loc:m,expected:A})}if(k[0]instanceof Array&&1<k.length)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+x);switch(k[0]){case 1:n.push(x),a.push(g.yytext),s.push(g.yylloc),n.push(k[1]),x=null,b?(x=b,b=null):(h=g.yyleng,l=g.yytext,c=g.yylineno,m=g.yylloc,0<u&&u--);break;case 2:if(E=this.productions_[k[1]][1],_.$=a[a.length-E],_._$={first_line:s[s.length-(E||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(E||1)].first_column,last_column:s[s.length-1].last_column},y&&(_._$.range=[s[s.length-(E||1)].range[0],s[s.length-1].range[1]]),typeof(C=this.performAction.apply(_,[l,h,c,f.yy,k[1],a,s].concat(p)))<"u")return C;E&&(n=n.slice(0,-1*E*2),a=a.slice(0,-1*E),s=s.slice(0,-1*E)),n.push(this.productions_[k[1]][0]),a.push(_.$),s.push(_._$),C=o[n[n.length-2]][n[n.length-1]],n.push(C);break;case 3:return!0}}return!0},"parse")},i={EOF:1,parseError:mt(function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},"parseError"),setInput:mt(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:mt(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},"input"),unput:mt(function(e){var t=e.length,r=e.split(/(?:\r\n?|\n)/g),e=(this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t,this.match.split(/(?:\r\n?|\n)/g)),n=(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),r.length-1&&(this.yylineno-=r.length-1),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:r?(r.length===e.length?this.yylloc.first_column:0)+e[e.length-r.length].length-r[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[n[0],n[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},"unput"),more:mt(function(){return this._more=!0,this},"more"),reject:mt(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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). Expecting `+A.join(", ")+", got '"+(this.terminals_[x]||x)+"'":"Parse error on line "+(c+1)+": Unexpected "+(x==d?"end of input":"'"+(this.terminals_[x]||x)+"'"),this.parseError(_,{text:g.match,token:this.terminals_[x]||x,line:g.yylineno,loc:m,expected:A})}if(k[0]instanceof Array&&1<k.length)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+x);switch(k[0]){case 1:n.push(x),a.push(g.yytext),s.push(g.yylloc),n.push(k[1]),x=null,b?(x=b,b=null):(h=g.yyleng,l=g.yytext,c=g.yylineno,m=g.yylloc,0<u&&u--);break;case 2:if(E=this.productions_[k[1]][1],S.$=a[a.length-E],S._$={first_line:s[s.length-(E||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(E||1)].first_column,last_column:s[s.length-1].last_column},y&&(S._$.range=[s[s.length-(E||1)].range[0],s[s.length-1].range[1]]),typeof(C=this.performAction.apply(S,[l,h,c,f.yy,k[1],a,s].concat(p)))<"u")return C;E&&(n=n.slice(0,-1*E*2),a=a.slice(0,-1*E),s=s.slice(0,-1*E)),n.push(this.productions_[k[1]][0]),a.push(S.$),s.push(S._$),C=o[n[n.length-2]][n[n.length-1]],n.push(C);break;case 3:return!0}}return!0},"parse")},i={EOF:1,parseError:mt(function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},"parseError"),setInput:mt(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:mt(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},"input"),unput:mt(function(e){var t=e.length,r=e.split(/(?:\r\n?|\n)/g),e=(this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t,this.match.split(/(?:\r\n?|\n)/g)),n=(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),r.length-1&&(this.yylineno-=r.length-1),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:r?(r.length===e.length?this.yylloc.first_column:0)+e[e.length-r.length].length-r[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[n[0],n[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},"unput"),more:mt(function(){return this._more=!0,this},"more"),reject:mt(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:mt(function(e){this.unput(this.match.slice(e))},"less"),pastInput:mt(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(20<e.length?"...":"")+e.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:mt(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(20<e.length?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:mt(function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+` `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:mt(function(e){this.unput(this.match.slice(e))},"less"),pastInput:mt(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(20<e.length?"...":"")+e.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:mt(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(20<e.length?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:mt(function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+`
`+t+"^"},"showPosition"),test_match:mt(function(e,t){var r,n;if(this.options.backtrack_lexer&&(n={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)&&(n.yylloc.range=this.yylloc.range.slice(0)),(r=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],r=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),r)return r;if(this._backtrack)for(var i in n)this[i]=n[i];return!1},"test_match"),next:mt(function(){if(this.done)return this.EOF;var e,t,r,n;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;a<i.length;a++)if((r=this._input.match(this.rules[i[a]]))&&(!t||r[0].length>t[0].length)){if(t=r,n=a,this.options.backtrack_lexer){if(!1!==(e=this.test_match(r,i[a])))return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,i[n]))&&e:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. `+t+"^"},"showPosition"),test_match:mt(function(e,t){var r,n;if(this.options.backtrack_lexer&&(n={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)&&(n.yylloc.range=this.yylloc.range.slice(0)),(r=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],r=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),r)return r;if(this._backtrack)for(var i in n)this[i]=n[i];return!1},"test_match"),next:mt(function(){if(this.done)return this.EOF;var e,t,r,n;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;a<i.length;a++)if((r=this._input.match(this.rules[i[a]]))&&(!t||r[0].length>t[0].length)){if(t=r,n=a,this.options.backtrack_lexer){if(!1!==(e=this.test_match(r,i[a])))return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,i[n]))&&e:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:mt(function(){return this.next()||this.lex()},"lex"),begin:mt(function(e){this.conditionStack.push(e)},"begin"),popState:mt(function(){return 0<this.conditionStack.length-1?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:mt(function(){return(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]]:this.conditions.INITIAL).rules},"_currentRules"),topState:mt(function(e){return 0<=(e=this.conditionStack.length-1-Math.abs(e||0))?this.conditionStack[e]:"INITIAL"},"topState"),pushState:mt(function(e){this.begin(e)},"pushState"),stateStackSize:mt(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:mt(function(e,t,r,n){switch(r){case 0:case 1:break;case 2:return 10;case 3:case 4:break;case 5:return 4;case 6:return 11;case 7:return this.begin("acc_title"),12;case 8:return this.popState(),"acc_title_value";case 9:return this.begin("acc_descr"),14;case 10:return this.popState(),"acc_descr_value";case 11:this.begin("acc_descr_multiline");break;case 12:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:return 17;case 15:return 21;case 16:return 20;case 17:return 6;case 18:return"INVALID"}},"anonymous"),rules:[/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:timeline\b)/i,/^(?:title\s[^\n]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:section\s[^:\n]+)/i,/^(?::\s(?:[^:\n]|:(?!\s))+)/i,/^(?:[^#:\n]+)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,9,11,14,15,16,17,18],inclusive:!0}}};n.lexer=i,mt(e,"Parser"),(qNe=new((e.prototype=n).Parser=e)).parser=qNe,jNe=qNe}),HNe={};OFe(HNe,{addEvent:()=>aIe,addSection:()=>tIe,addTask:()=>iIe,addTaskOrg:()=>sIe,clear:()=>eIe,default:()=>lIe,getCommonDb:()=>JNe,getSections:()=>rIe,getTasks:()=>nIe});var VNe,XNe,KNe,ZNe,QNe,JNe,eIe,tIe,rIe,nIe,iIe,aIe,sIe,oIe,lIe,cIe=b(()=>{ku(),VNe="",XNe=0,KNe=[],ZNe=[],QNe=[],JNe=mt(()=>hh,"getCommonDb"),eIe=mt(function(){KNe.length=0,ZNe.length=0,VNe="",QNe.length=0,fh()},"clear"),tIe=mt(function(e){VNe=e,KNe.push(e)},"addSection"),rIe=mt(function(){return KNe},"getSections"),nIe=mt(function(){let e=oIe(),t=0;for(;!e&&t<100;)e=oIe(),t++;return ZNe.push(...QNe),ZNe},"getTasks"),iIe=mt(function(e,t,r){e={id:XNe++,section:VNe,type:VNe,task:e,score:t||0,events:r?[r]:[]},QNe.push(e)},"addTask"),aIe=mt(function(e){QNe.find(e=>e.id===XNe-1).events.push(e)},"addEvent"),sIe=mt(function(e){e={section:VNe,type:VNe,description:e,task:e,classes:[]},ZNe.push(e)},"addTaskOrg"),oIe=mt(function(){let e=mt(function(e){return QNe[e].processed},"compileTask"),t=!0;for(var[r,n]of QNe.entries())e(r),t=t&&n.processed;return t},"compileTasks"),lIe={clear:eIe,getCommonDb:JNe,addSection:tIe,getSections:rIe,getTasks:nIe,addTask:iIe,addTaskOrg:sIe,addEvent:aIe}});function hIe(e,o){e.each(function(){var t,r=H(this),n=r.text().split(/(\s+|<br>)/).reverse(),i=[],a=r.attr("y"),e=parseFloat(r.attr("dy")),s=r.text(null).append("tspan").attr("x",0).attr("y",a).attr("dy",e+"em");for(let e=0;e<n.length;e++)t=n[n.length-1-e],i.push(t),s.text(i.join(" ").trim()),(s.node().getComputedTextLength()>o||"<br>"===t)&&(i.pop(),s.text(i.join(" ").trim()),i="<br>"===t?[""]:[t],s=r.append("tspan").attr("x",0).attr("y",a).attr("dy","1.1em").text(t))})}var uIe,dIe,pIe,gIe,fIe,mIe,yIe,vIe,xIe,bIe,wIe,kIe,TIe,EIe,CIe,_Ie,SIe,AIe,LIe,NIe,IIe,RIe,MIe,DIe,OIe=b(()=>{function t(e,t,r,n,i,a,s,o){g(t.append("text").attr("x",r+i/2).attr("y",n+a/2+5).style("font-color",o).style("text-anchor","middle").text(e),s)}function c(e,t,r,n,i,a,s,o,l){var{taskFontSize:c,taskFontFamily:h}=o,u=e.split(/<br\s*\/?>/gi);for(let e=0;e<u.length;e++){var d=e*c-c*(u.length-1)/2,p=t.append("text").attr("x",r+i/2).attr("y",n).attr("fill",l).style("text-anchor","middle").style("font-size",c).style("font-family",h);p.append("tspan").attr("x",r+i/2).attr("dy",d).text(u[e]),p.attr("y",n+a/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),g(p,s)}}function r(e,t,r,n,i,a,s,o){var l=(t=t.append("switch")).append("foreignObject").attr("x",r).attr("y",n).attr("width",i).attr("height",a).attr("position","fixed").append("xhtml:div").style("display","table").style("height","100%").style("width","100%");l.append("div").attr("class","label").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(e),c(e,t,r,n,i,a,s,o),g(l,s)}function g(e,t){for(var r in t)r in t&&e.attr(r,t[r])}i6(),uIe=mt(function(e,t){return(e=e.append("rect")).attr("x",t.x),e.attr("y",t.y),e.attr("fill",t.fill),e.attr("stroke",t.stroke),e.attr("width",t Line truncated `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:mt(function(){return this.next()||this.lex()},"lex"),begin:mt(function(e){this.conditionStack.push(e)},"begin"),popState:mt(function(){return 0<this.conditionStack.length-1?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:mt(function(){return(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]]:this.conditions.INITIAL).rules},"_currentRules"),topState:mt(function(e){return 0<=(e=this.conditionStack.length-1-Math.abs(e||0))?this.conditionStack[e]:"INITIAL"},"topState"),pushState:mt(function(e){this.begin(e)},"pushState"),stateStackSize:mt(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:mt(function(e,t,r,n){switch(r){case 0:case 1:break;case 2:return 10;case 3:case 4:break;case 5:return 4;case 6:return 11;case 7:return this.begin("acc_title"),12;case 8:return this.popState(),"acc_title_value";case 9:return this.begin("acc_descr"),14;case 10:return this.popState(),"acc_descr_value";case 11:this.begin("acc_descr_multiline");break;case 12:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:return 17;case 15:return 21;case 16:return 20;case 17:return 6;case 18:return"INVALID"}},"anonymous"),rules:[/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:timeline\b)/i,/^(?:title\s[^\n]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:section\s[^:\n]+)/i,/^(?::\s(?:[^:\n]|:(?!\s))+)/i,/^(?:[^#:\n]+)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,9,11,14,15,16,17,18],inclusive:!0}}};n.lexer=i,mt(e,"Parser"),(jNe=new((e.prototype=n).Parser=e)).parser=jNe,YNe=jNe}),VNe={};PFe(VNe,{addEvent:()=>sIe,addSection:()=>rIe,addTask:()=>aIe,addTaskOrg:()=>oIe,clear:()=>tIe,default:()=>cIe,getCommonDb:()=>eIe,getSections:()=>nIe,getTasks:()=>iIe});var XNe,KNe,ZNe,QNe,JNe,eIe,tIe,rIe,nIe,iIe,aIe,sIe,oIe,lIe,cIe,hIe=b(()=>{ku(),XNe="",KNe=0,ZNe=[],QNe=[],JNe=[],eIe=mt(()=>hh,"getCommonDb"),tIe=mt(function(){ZNe.length=0,QNe.length=0,XNe="",JNe.length=0,fh()},"clear"),rIe=mt(function(e){XNe=e,ZNe.push(e)},"addSection"),nIe=mt(function(){return ZNe},"getSections"),iIe=mt(function(){let e=lIe(),t=0;for(;!e&&t<100;)e=lIe(),t++;return QNe.push(...JNe),QNe},"getTasks"),aIe=mt(function(e,t,r){e={id:KNe++,section:XNe,type:XNe,task:e,score:t||0,events:r?[r]:[]},JNe.push(e)},"addTask"),sIe=mt(function(e){JNe.find(e=>e.id===KNe-1).events.push(e)},"addEvent"),oIe=mt(function(e){e={section:XNe,type:XNe,description:e,task:e,classes:[]},QNe.push(e)},"addTaskOrg"),lIe=mt(function(){let e=mt(function(e){return JNe[e].processed},"compileTask"),t=!0;for(var[r,n]of JNe.entries())e(r),t=t&&n.processed;return t},"compileTasks"),cIe={clear:tIe,getCommonDb:eIe,addSection:rIe,getSections:nIe,getTasks:iIe,addTask:aIe,addTaskOrg:oIe,addEvent:sIe}});function uIe(e,o){e.each(function(){var t,r=H(this),n=r.text().split(/(\s+|<br>)/).reverse(),i=[],a=r.attr("y"),e=parseFloat(r.attr("dy")),s=r.text(null).append("tspan").attr("x",0).attr("y",a).attr("dy",e+"em");for(let e=0;e<n.length;e++)t=n[n.length-1-e],i.push(t),s.text(i.join(" ").trim()),(s.node().getComputedTextLength()>o||"<br>"===t)&&(i.pop(),s.text(i.join(" ").trim()),i="<br>"===t?[""]:[t],s=r.append("tspan").attr("x",0).attr("y",a).attr("dy","1.1em").text(t))})}var dIe,pIe,gIe,fIe,mIe,yIe,vIe,xIe,bIe,wIe,kIe,TIe,EIe,CIe,SIe,_Ie,AIe,LIe,NIe,IIe,RIe,MIe,DIe,OIe,PIe=b(()=>{function t(e,t,r,n,i,a,s,o){g(t.append("text").attr("x",r+i/2).attr("y",n+a/2+5).style("font-color",o).style("text-anchor","middle").text(e),s)}function c(e,t,r,n,i,a,s,o,l){var{taskFontSize:c,taskFontFamily:h}=o,u=e.split(/<br\s*\/?>/gi);for(let e=0;e<u.length;e++){var d=e*c-c*(u.length-1)/2,p=t.append("text").attr("x",r+i/2).attr("y",n).attr("fill",l).style("text-anchor","middle").style("font-size",c).style("font-family",h);p.append("tspan").attr("x",r+i/2).attr("dy",d).text(u[e]),p.attr("y",n+a/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),g(p,s)}}function r(e,t,r,n,i,a,s,o){var l=(t=t.append("switch")).append("foreignObject").attr("x",r).attr("y",n).attr("width",i).attr("height",a).attr("position","fixed").append("xhtml:div").style("display","table").style("height","100%").style("width","100%");l.append("div").attr("class","label").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(e),c(e,t,r,n,i,a,s,o),g(l,s)}function g(e,t){for(var r in t)r in t&&e.attr(r,t[r])}i6(),dIe=mt(function(e,t){return(e=e.append("rect")).attr("x",t.x),e.attr("y",t.y),e.attr("fill",t.fill),e.attr("stroke",t.stroke),e.attr("width",t Line truncated
.section-${e-1} rect, .section-${e-1} path, .section-${e-1} circle, .section-${e-1} path { .section-${e-1} rect, .section-${e-1} path, .section-${e-1} circle, .section-${e-1} path {
fill: ${t["cScale"+e]}; fill: ${t["cScale"+e]};
} }
@@ -2325,11 +2325,11 @@ Expecting `+A.join(", ")+", got '"+(this.terminals_[x]||x)+"'":"Parse error on l
.disabled text { .disabled text {
fill: #efefef; fill: #efefef;
} }
`}return r},"genSections"),MIe=mt(e=>` `}return r},"genSections"),DIe=mt(e=>`
.edge { .edge {
stroke-width: 3; stroke-width: 3;
} }
${RIe(e)} ${MIe(e)}
.section-root rect, .section-root path, .section-root circle { .section-root rect, .section-root path, .section-root circle {
fill: ${e.git0}; fill: ${e.git0};
} }
@@ -2348,13 +2348,13 @@ Expecting `+A.join(", ")+", got '"+(this.terminals_[x]||x)+"'":"Parse error on l
.eventWrapper { .eventWrapper {
filter: brightness(120%); filter: brightness(120%);
} }
`,"getStyles"),DIe=MIe}),$Ie={};OFe($Ie,{diagram:()=>FIe});var FIe,zIe,GIe,UIe=b(()=>{WNe(),cIe(),PIe(),BIe(),FIe={db:HNe,renderer:IIe,parser:jNe,styles:DIe}}),qIe=b(()=>{function e(){this.yy={}}var t=mt(function(e,t,r,n){for(r=r||{},n=e.length;n--;r[e[n]]=t);return r},"o"),r=[1,4],n=[1,13],i=[1,12],a=[1,15],s=[1,16],o=[1,20],l=[1,19],c=[6,7,8],h=[1,26],u=[1,24],d=[1,25],p=[6,7,11],g=[1,6,13,15,16,19,22],f=[1,33],m=[1,34],y=[1,6,7,11,13,15,16,19,22],r={trace:mt(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,MINDMAP:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,ICON:15,CLASS:16,nodeWithId:17,nodeWithoutId:18,NODE_DSTART:19,NODE_DESCR:20,NODE_DEND:21,NODE_ID:22,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"MINDMAP",11:"EOF",13:"SPACELIST",15:"ICON",16:"CLASS",19:"NODE_DSTART",20:"NODE_DESCR",21:"NODE_DEND",22:"NODE_ID"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[18,3],[17,1],[17,4]],performAction:mt(function(e,t,r,n,i,a,s){var o=a.length-1;switch(i){case 6:case 7:return n;case 8:n.getLogger().trace("Stop NL ");break;case 9:n.getLogger().trace("Stop EOF ");break;case 11:n.getLogger().trace("Stop NL2 ");break;case 12:n.getLogger().trace("Stop EOF2 ");break;case 15:n.getLogger().info("Node: ",a[o].id),n.addNode(a[o-1].length,a[o].id,a[o].descr,a[o].type);break;case 16:n.getLogger().trace("Icon: ",a[o]),n.decorateNode({icon:a[o]});break;case 17:case 21:n.decorateNode({class:a[o]});break;case 18:n.getLogger().trace("SPACELIST");break;case 19:n.getLogger().trace("Node: ",a[o].id),n.addNode(0,a[o].id,a[o].descr,a[o].type);break;case 20:n.decorateNode({icon:a[o]});break;case 25:n.getLogger().trace("node found ..",a[o-2]),this.$={id:a[o-1],descr:a[o-1],type:n.getType(a[o-2],a[o])};break;case 26:this.$={id:a[o],descr:a[o],type:n.nodeType.DEFAULT};break;case 27:n.getLogger().trace("node found ..",a[o-3]),this.$={id:a[o-3],descr:a[o-1],type:n.getType(a[o-2],a[o])}}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:r},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:r},{6:n,7:[1,10],9:9,12:11,13:i,14:14,15:a,16:s,17:17,18:18,19:o,22:l},t(c,[2,3]),{1:[2,2]},t(c,[2,4]),t(c,[2,5]),{1:[2,6],6:n,12:21,13:i,14:14,15:a,16:s,17:17,18:18,19:o,22:l},{6:n,9:22,12:11,13:i,14:14,15:a,16:s,17:17,18:18,19:o,22:l},{6:h,7:u,10:23,11:d},t(p,[2,22],{17:17,18:18,14:27,15:[1,28],16:[1,29],19:o,22:l}),t(p,[2,18]),t(p,[2,19]),t(p,[2,20]),t(p,[2,21]),t(p,[2,23]),t(p,[2,24]),t(p,[2,26],{19:[1,30]}),{20:[1,31]},{6:h,7:u,10:32,11:d},{1:[2,7],6:n,12:21,13:i,14:14,15:a,16:s,17:17,18:18,19:o,22:l},t(g,[2,14],{7:f,11:m}),t(y,[2,8]),t(y,[2,9]),t(y,[2,10]),t(p,[2,15]),t(p,[2,16]),t(p,[2,17]),{20:[1,35]},{21:[1,36]},t(g,[2,13],{7:f,11:m}),t(y,[2,11]),t(y,[2,12]),{21:[1,37]},t(p,[2,25]),t(p,[2,27])],defaultActions:{2:[2,1],6:[2,2]},parseError:mt(function(e,t){var r;if(!t.recoverable)throw(r=new Error(e)).hash=t,r;this.trace(e)},"parseError"),parse:mt(function(e){var t,r=this,n=[0],i=[],a=[null],s=[],o=this.table,l="",c=0,h=0,u=0,d=1,p=s.slice.call(arguments,1),g=Object.create(this.lexer),f={yy:{}};for(t in this.yy)Object.prototype.hasOwnProperty.call(this.yy,t)&&(f.yy[t]=this.yy[t]);g.setInput(e,f.yy),f.yy.lexer=g,f.yy.parser=this,"u"<typeof g.yylloc&&(g.yylloc={});var m=g.yylloc,y=(s.push(m),g.options&&g.options.ranges);function v(){var e=i.pop()||g.lex()||d;return"number"!=typeof e&&(e instanceof Array&&(e=(i=e).pop()),e=r.symbols_[e]||e),e}"function"==typeof f.yy.parseError?this.parseError=f.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,mt(function(e){n.length=n.length-2*e,a.length=a.length-e,s.length=s.length-e},"popStack"),mt(v,"lex");for(var x,b,w,k,T,E,C,_={};;){if(w=n[n.length-1],"u"<typeof(k=this.defaultActions[w]||((null===x||"u"<typeof x)&&(x=v()),o[w]&&o[w][x]))||!k.length||!k[0]){var S,A=[];for(T in o[w])this.terminals_[T]&&2<T&&A.push("'"+this.terminals_[T]+"'");S=g.showPosition?"Parse error on line "+(c+1)+`: `,"getStyles"),OIe=DIe}),FIe={};PFe(FIe,{diagram:()=>zIe});var zIe,GIe,UIe,qIe=b(()=>{HNe(),hIe(),BIe(),$Ie(),zIe={db:VNe,renderer:RIe,parser:YNe,styles:OIe}}),jIe=b(()=>{function e(){this.yy={}}var t=mt(function(e,t,r,n){for(r=r||{},n=e.length;n--;r[e[n]]=t);return r},"o"),r=[1,4],n=[1,13],i=[1,12],a=[1,15],s=[1,16],o=[1,20],l=[1,19],c=[6,7,8],h=[1,26],u=[1,24],d=[1,25],p=[6,7,11],g=[1,6,13,15,16,19,22],f=[1,33],m=[1,34],y=[1,6,7,11,13,15,16,19,22],r={trace:mt(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,MINDMAP:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,ICON:15,CLASS:16,nodeWithId:17,nodeWithoutId:18,NODE_DSTART:19,NODE_DESCR:20,NODE_DEND:21,NODE_ID:22,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"MINDMAP",11:"EOF",13:"SPACELIST",15:"ICON",16:"CLASS",19:"NODE_DSTART",20:"NODE_DESCR",21:"NODE_DEND",22:"NODE_ID"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[18,3],[17,1],[17,4]],performAction:mt(function(e,t,r,n,i,a,s){var o=a.length-1;switch(i){case 6:case 7:return n;case 8:n.getLogger().trace("Stop NL ");break;case 9:n.getLogger().trace("Stop EOF ");break;case 11:n.getLogger().trace("Stop NL2 ");break;case 12:n.getLogger().trace("Stop EOF2 ");break;case 15:n.getLogger().info("Node: ",a[o].id),n.addNode(a[o-1].length,a[o].id,a[o].descr,a[o].type);break;case 16:n.getLogger().trace("Icon: ",a[o]),n.decorateNode({icon:a[o]});break;case 17:case 21:n.decorateNode({class:a[o]});break;case 18:n.getLogger().trace("SPACELIST");break;case 19:n.getLogger().trace("Node: ",a[o].id),n.addNode(0,a[o].id,a[o].descr,a[o].type);break;case 20:n.decorateNode({icon:a[o]});break;case 25:n.getLogger().trace("node found ..",a[o-2]),this.$={id:a[o-1],descr:a[o-1],type:n.getType(a[o-2],a[o])};break;case 26:this.$={id:a[o],descr:a[o],type:n.nodeType.DEFAULT};break;case 27:n.getLogger().trace("node found ..",a[o-3]),this.$={id:a[o-3],descr:a[o-1],type:n.getType(a[o-2],a[o])}}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:r},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:r},{6:n,7:[1,10],9:9,12:11,13:i,14:14,15:a,16:s,17:17,18:18,19:o,22:l},t(c,[2,3]),{1:[2,2]},t(c,[2,4]),t(c,[2,5]),{1:[2,6],6:n,12:21,13:i,14:14,15:a,16:s,17:17,18:18,19:o,22:l},{6:n,9:22,12:11,13:i,14:14,15:a,16:s,17:17,18:18,19:o,22:l},{6:h,7:u,10:23,11:d},t(p,[2,22],{17:17,18:18,14:27,15:[1,28],16:[1,29],19:o,22:l}),t(p,[2,18]),t(p,[2,19]),t(p,[2,20]),t(p,[2,21]),t(p,[2,23]),t(p,[2,24]),t(p,[2,26],{19:[1,30]}),{20:[1,31]},{6:h,7:u,10:32,11:d},{1:[2,7],6:n,12:21,13:i,14:14,15:a,16:s,17:17,18:18,19:o,22:l},t(g,[2,14],{7:f,11:m}),t(y,[2,8]),t(y,[2,9]),t(y,[2,10]),t(p,[2,15]),t(p,[2,16]),t(p,[2,17]),{20:[1,35]},{21:[1,36]},t(g,[2,13],{7:f,11:m}),t(y,[2,11]),t(y,[2,12]),{21:[1,37]},t(p,[2,25]),t(p,[2,27])],defaultActions:{2:[2,1],6:[2,2]},parseError:mt(function(e,t){var r;if(!t.recoverable)throw(r=new Error(e)).hash=t,r;this.trace(e)},"parseError"),parse:mt(function(e){var t,r=this,n=[0],i=[],a=[null],s=[],o=this.table,l="",c=0,h=0,u=0,d=1,p=s.slice.call(arguments,1),g=Object.create(this.lexer),f={yy:{}};for(t in this.yy)Object.prototype.hasOwnProperty.call(this.yy,t)&&(f.yy[t]=this.yy[t]);g.setInput(e,f.yy),f.yy.lexer=g,f.yy.parser=this,"u"<typeof g.yylloc&&(g.yylloc={});var m=g.yylloc,y=(s.push(m),g.options&&g.options.ranges);function v(){var e=i.pop()||g.lex()||d;return"number"!=typeof e&&(e instanceof Array&&(e=(i=e).pop()),e=r.symbols_[e]||e),e}"function"==typeof f.yy.parseError?this.parseError=f.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,mt(function(e){n.length=n.length-2*e,a.length=a.length-e,s.length=s.length-e},"popStack"),mt(v,"lex");for(var x,b,w,k,T,E,C,S={};;){if(w=n[n.length-1],"u"<typeof(k=this.defaultActions[w]||((null===x||"u"<typeof x)&&(x=v()),o[w]&&o[w][x]))||!k.length||!k[0]){var _,A=[];for(T in o[w])this.terminals_[T]&&2<T&&A.push("'"+this.terminals_[T]+"'");_=g.showPosition?"Parse error on line "+(c+1)+`:
`+g.showPosition()+` `+g.showPosition()+`
Expecting `+A.join(", ")+", got '"+(this.terminals_[x]||x)+"'":"Parse error on line "+(c+1)+": Unexpected "+(x==d?"end of input":"'"+(this.terminals_[x]||x)+"'"),this.parseError(S,{text:g.match,token:this.terminals_[x]||x,line:g.yylineno,loc:m,expected:A})}if(k[0]instanceof Array&&1<k.length)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+x);switch(k[0]){case 1:n.push(x),a.push(g.yytext),s.push(g.yylloc),n.push(k[1]),x=null,b?(x=b,b=null):(h=g.yyleng,l=g.yytext,c=g.yylineno,m=g.yylloc,0<u&&u--);break;case 2:if(E=this.productions_[k[1]][1],_.$=a[a.length-E],_._$={first_line:s[s.length-(E||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(E||1)].first_column,last_column:s[s.length-1].last_column},y&&(_._$.range=[s[s.length-(E||1)].range[0],s[s.length-1].range[1]]),typeof(C=this.performAction.apply(_,[l,h,c,f.yy,k[1],a,s].concat(p)))<"u")return C;E&&(n=n.slice(0,-1*E*2),a=a.slice(0,-1*E),s=s.slice(0,-1*E)),n.push(this.productions_[k[1]][0]),a.push(_.$),s.push(_._$),C=o[n[n.length-2]][n[n.length-1]],n.push(C);break;case 3:return!0}}return!0},"parse")},c={EOF:1,parseError:mt(function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},"parseError"),setInput:mt(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:mt(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},"input"),unput:mt(function(e){var t=e.length,r=e.split(/(?:\r\n?|\n)/g),e=(this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t,this.match.split(/(?:\r\n?|\n)/g)),n=(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),r.length-1&&(this.yylineno-=r.length-1),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:r?(r.length===e.length?this.yylloc.first_column:0)+e[e.length-r.length].length-r[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[n[0],n[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},"unput"),more:mt(function(){return this._more=!0,this},"more"),reject:mt(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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). Expecting `+A.join(", ")+", got '"+(this.terminals_[x]||x)+"'":"Parse error on line "+(c+1)+": Unexpected "+(x==d?"end of input":"'"+(this.terminals_[x]||x)+"'"),this.parseError(_,{text:g.match,token:this.terminals_[x]||x,line:g.yylineno,loc:m,expected:A})}if(k[0]instanceof Array&&1<k.length)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+x);switch(k[0]){case 1:n.push(x),a.push(g.yytext),s.push(g.yylloc),n.push(k[1]),x=null,b?(x=b,b=null):(h=g.yyleng,l=g.yytext,c=g.yylineno,m=g.yylloc,0<u&&u--);break;case 2:if(E=this.productions_[k[1]][1],S.$=a[a.length-E],S._$={first_line:s[s.length-(E||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(E||1)].first_column,last_column:s[s.length-1].last_column},y&&(S._$.range=[s[s.length-(E||1)].range[0],s[s.length-1].range[1]]),typeof(C=this.performAction.apply(S,[l,h,c,f.yy,k[1],a,s].concat(p)))<"u")return C;E&&(n=n.slice(0,-1*E*2),a=a.slice(0,-1*E),s=s.slice(0,-1*E)),n.push(this.productions_[k[1]][0]),a.push(S.$),s.push(S._$),C=o[n[n.length-2]][n[n.length-1]],n.push(C);break;case 3:return!0}}return!0},"parse")},c={EOF:1,parseError:mt(function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},"parseError"),setInput:mt(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:mt(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},"input"),unput:mt(function(e){var t=e.length,r=e.split(/(?:\r\n?|\n)/g),e=(this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t,this.match.split(/(?:\r\n?|\n)/g)),n=(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),r.length-1&&(this.yylineno-=r.length-1),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:r?(r.length===e.length?this.yylloc.first_column:0)+e[e.length-r.length].length-r[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[n[0],n[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},"unput"),more:mt(function(){return this._more=!0,this},"more"),reject:mt(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:mt(function(e){this.unput(this.match.slice(e))},"less"),pastInput:mt(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(20<e.length?"...":"")+e.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:mt(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(20<e.length?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:mt(function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+` `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:mt(function(e){this.unput(this.match.slice(e))},"less"),pastInput:mt(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(20<e.length?"...":"")+e.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:mt(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(20<e.length?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:mt(function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+`
`+t+"^"},"showPosition"),test_match:mt(function(e,t){var r,n;if(this.options.backtrack_lexer&&(n={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)&&(n.yylloc.range=this.yylloc.range.slice(0)),(r=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],r=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),r)return r;if(this._backtrack)for(var i in n)this[i]=n[i];return!1},"test_match"),next:mt(function(){if(this.done)return this.EOF;var e,t,r,n;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;a<i.length;a++)if((r=this._input.match(this.rules[i[a]]))&&(!t||r[0].length>t[0].length)){if(t=r,n=a,this.options.backtrack_lexer){if(!1!==(e=this.test_match(r,i[a])))return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,i[n]))&&e:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. `+t+"^"},"showPosition"),test_match:mt(function(e,t){var r,n;if(this.options.backtrack_lexer&&(n={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)&&(n.yylloc.range=this.yylloc.range.slice(0)),(r=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],r=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),r)return r;if(this._backtrack)for(var i in n)this[i]=n[i];return!1},"test_match"),next:mt(function(){if(this.done)return this.EOF;var e,t,r,n;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;a<i.length;a++)if((r=this._input.match(this.rules[i[a]]))&&(!t||r[0].length>t[0].length)){if(t=r,n=a,this.options.backtrack_lexer){if(!1!==(e=this.test_match(r,i[a])))return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,i[n]))&&e:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:mt(function(){return this.next()||this.lex()},"lex"),begin:mt(function(e){this.conditionStack.push(e)},"begin"),popState:mt(function(){return 0<this.conditionStack.length-1?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:mt(function(){return(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]]:this.conditions.INITIAL).rules},"_currentRules"),topState:mt(function(e){return 0<=(e=this.conditionStack.length-1-Math.abs(e||0))?this.conditionStack[e]:"INITIAL"},"topState"),pushState:mt(function(e){this.begin(e)},"pushState"),stateStackSize:mt(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:mt(function(e,t,r,n){switch(r){case 0:return e.getLogger().trace("Found comment",t.yytext),6;case 1:return 8;case 2:this.begin("CLASS");break;case 3:return this.popState(),16;case 4:this.popState();break;case 5:e.getLogger().trace("Begin icon"),this.begin("ICON");break;case 6:return e.getLogger().trace("SPACELINE"),6;case 7:return 7;case 8:return 15;case 9:e.getLogger().trace("end icon"),this.popState();break;case 10:return e.getLogger().trace("Exploding node"),this.begin("NODE"),19;case 11:return e.getLogger().trace("Cloud"),this.begin("NODE"),19;case 12:return e.getLogger().trace("Explosion Bang"),this.begin("NODE"),19;case 13:return e.getLogger().trace("Cloud Bang"),this.begin("NODE"),19;case 14:case 15:case 16:case 17:return this.begin("NODE"),19;case 18:return 13;case 19:return 22;case 20:return 11;case 21:this.begin("NSTR2");break;case 22:return"NODE_DESCR";case 23:this.popState();break;case 24:e.getLogger().trace("Starting NSTR"),this.begin("NSTR");break;case 25:return e.getLogger().trace("description:",t.yytext),"NODE_DESCR";case 26:this.popState();break;case 27:return this.popState(),e.getLogger().trace("node end ))"),"NODE_DEND";case 28:return this.popState(),e.getLogger().trace("node end )"),"NODE_DEND";case 29:return this.popState(),e.getLogger().trace("node end ...",t.yytext),"NODE_DEND";case 30:return this.popState(),e.getLogger().trace("node end (("),"NODE_DEND";case 31:case 32:return this.popState(),e.getLogger().trace("node end (-"),"NODE_DEND";case 33:case 34:return this.popState(),e.getLogger().trace("node end (("),"NODE_DEND";case 35:case 36:return e.getLogger().trace("Long description:",t.yytext),20}},"anonymous"),rules:[/^(?:\s*%%.*)/i,/^(?:mindmap\b)/i,/^(?::::)/i,/^(?:.+)/i,/^(?:\n)/i,/^(?:::icon\()/i,/^(?:[\s]+[\n])/i,/^(?:[\n]+)/i,/^(?:[^\)]+)/i,/^(?:\))/i,/^(?:-\))/i,/^(?:\(-)/i,/^(?:\)\))/i,/^(?:\))/i,/^(?:\(\()/i,/^(?:\{\{)/i,/^(?:\()/i,/^(?:\[)/i,/^(?:[\s]+)/i,/^(?:[^\(\[\n\)\{\}]+)/i,/^(?:$)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:[^"]+)/i,/^(?:["])/i,/^(?:[\)]\))/i,/^(?:[\)])/i,/^(?:[\]])/i,/^(?:\}\})/i,/^(?:\(-)/i,/^(?:-\))/i,/^(?:\(\()/i,/^(?:\()/i,/^(?:[^\)\]\(\}]+)/i,/^(?:.+(?!\(\())/i],conditions:{CLASS:{rules:[3,4],inclusive:!1},ICON:{rules:[8,9],inclusive:!1},NSTR2:{rules:[22,23],inclusive:!1},NSTR:{rules:[25,26],inclusive:!1},NODE:{rules:[21,24,27,28,29,30,31,32,33,34,35,36],inclusive:!1},INITIAL:{rules:[0,1,2,5,6,7,10,11,12,13,14,15,16,17,18,19,20],inclusive:!0}}};r.lexer=c,mt(e,"Parser"),(zIe=new((e.prototype=r).Parser=e)).parser=zIe,GIe=zIe});function jIe(e,t=0){return(YIe[e[t+0]]+YIe[e[t+1]]+YIe[e[t+2]]+YIe[e[t+3]]+"-"+YIe[e[t+4]]+YIe[e[t+5]]+"-"+YIe[e[t+6]]+YIe[e[t+7]]+"-"+YIe[e[t+8]]+YIe[e[t+9]]+"-"+YIe[e[t+10]]+YIe[e[t+11]]+YIe[e[t+12]]+YIe[e[t+13]]+YIe[e[t+14]]+YIe[e[t+15]]).toLowerCase()}var YIe,WIe=b(()=>{YIe=[];for(let e=0;e<256;++e)YIe.push((e+256).toString(16).slice(1));mt(jIe,"unsafeStringify")});function HIe(){if(!VIe){if("u"<typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");VIe=crypto.getRandomValues.bind(crypto)}return VIe(XIe)}var VIe,XIe,KIe,ZIe,QIe=b(()=>{XIe=new Uint8Array(16),mt(HIe,"rng")}),JIe=b(()=>{KIe=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),ZIe={randomUUID:KIe}});function eRe(e,t,r){if(ZIe.randomUUID&&!t&&!e)return ZIe.randomUUID();var n=(e=e||{}).random??e.rng?.()??HIe();if(n.length<16)throw new Error("Random bytes length must be >= 16");if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){if((r=r||0)<0||r+16>t.length)throw new RangeError(`UUID byte range ${r}:${r+15} is out of buffer bounds`);for(let e=0;e<16;++e)t[r+e]=n[e];return t}return jIe(n)}var tRe,rRe,nRe,iRe,aRe,sRe,oRe,lRe,cRe=b(()=>{JIe(),QIe(),WIe(),mt(eRe,"v4"),tRe=eRe}),hRe=b(()=>{cRe()}),uRe=b(()=>{Tu(),hRe(),Oc(),e(),en(),rn(),rRe={DEFAULT:0,NO_BORDER:0,ROUNDED_RECT:1,RECT:2,CIRCLE:3,CLOUD:4,BANG:5,HEXAGON:6},nRe=class{constructor(){this.nodes=[],this.count=0,this.elements={},this.getLogger=this.getLogger.bind(this),this.nodeType=rRe,this.clear(),this.getType=this.getType.bind(this),this.getLine truncated `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:mt(function(){return this.next()||this.lex()},"lex"),begin:mt(function(e){this.conditionStack.push(e)},"begin"),popState:mt(function(){return 0<this.conditionStack.length-1?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:mt(function(){return(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]]:this.conditions.INITIAL).rules},"_currentRules"),topState:mt(function(e){return 0<=(e=this.conditionStack.length-1-Math.abs(e||0))?this.conditionStack[e]:"INITIAL"},"topState"),pushState:mt(function(e){this.begin(e)},"pushState"),stateStackSize:mt(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:mt(function(e,t,r,n){switch(r){case 0:return e.getLogger().trace("Found comment",t.yytext),6;case 1:return 8;case 2:this.begin("CLASS");break;case 3:return this.popState(),16;case 4:this.popState();break;case 5:e.getLogger().trace("Begin icon"),this.begin("ICON");break;case 6:return e.getLogger().trace("SPACELINE"),6;case 7:return 7;case 8:return 15;case 9:e.getLogger().trace("end icon"),this.popState();break;case 10:return e.getLogger().trace("Exploding node"),this.begin("NODE"),19;case 11:return e.getLogger().trace("Cloud"),this.begin("NODE"),19;case 12:return e.getLogger().trace("Explosion Bang"),this.begin("NODE"),19;case 13:return e.getLogger().trace("Cloud Bang"),this.begin("NODE"),19;case 14:case 15:case 16:case 17:return this.begin("NODE"),19;case 18:return 13;case 19:return 22;case 20:return 11;case 21:this.begin("NSTR2");break;case 22:return"NODE_DESCR";case 23:this.popState();break;case 24:e.getLogger().trace("Starting NSTR"),this.begin("NSTR");break;case 25:return e.getLogger().trace("description:",t.yytext),"NODE_DESCR";case 26:this.popState();break;case 27:return this.popState(),e.getLogger().trace("node end ))"),"NODE_DEND";case 28:return this.popState(),e.getLogger().trace("node end )"),"NODE_DEND";case 29:return this.popState(),e.getLogger().trace("node end ...",t.yytext),"NODE_DEND";case 30:return this.popState(),e.getLogger().trace("node end (("),"NODE_DEND";case 31:case 32:return this.popState(),e.getLogger().trace("node end (-"),"NODE_DEND";case 33:case 34:return this.popState(),e.getLogger().trace("node end (("),"NODE_DEND";case 35:case 36:return e.getLogger().trace("Long description:",t.yytext),20}},"anonymous"),rules:[/^(?:\s*%%.*)/i,/^(?:mindmap\b)/i,/^(?::::)/i,/^(?:.+)/i,/^(?:\n)/i,/^(?:::icon\()/i,/^(?:[\s]+[\n])/i,/^(?:[\n]+)/i,/^(?:[^\)]+)/i,/^(?:\))/i,/^(?:-\))/i,/^(?:\(-)/i,/^(?:\)\))/i,/^(?:\))/i,/^(?:\(\()/i,/^(?:\{\{)/i,/^(?:\()/i,/^(?:\[)/i,/^(?:[\s]+)/i,/^(?:[^\(\[\n\)\{\}]+)/i,/^(?:$)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:[^"]+)/i,/^(?:["])/i,/^(?:[\)]\))/i,/^(?:[\)])/i,/^(?:[\]])/i,/^(?:\}\})/i,/^(?:\(-)/i,/^(?:-\))/i,/^(?:\(\()/i,/^(?:\()/i,/^(?:[^\)\]\(\}]+)/i,/^(?:.+(?!\(\())/i],conditions:{CLASS:{rules:[3,4],inclusive:!1},ICON:{rules:[8,9],inclusive:!1},NSTR2:{rules:[22,23],inclusive:!1},NSTR:{rules:[25,26],inclusive:!1},NODE:{rules:[21,24,27,28,29,30,31,32,33,34,35,36],inclusive:!1},INITIAL:{rules:[0,1,2,5,6,7,10,11,12,13,14,15,16,17,18,19,20],inclusive:!0}}};r.lexer=c,mt(e,"Parser"),(GIe=new((e.prototype=r).Parser=e)).parser=GIe,UIe=GIe});function YIe(e,t=0){return(WIe[e[t+0]]+WIe[e[t+1]]+WIe[e[t+2]]+WIe[e[t+3]]+"-"+WIe[e[t+4]]+WIe[e[t+5]]+"-"+WIe[e[t+6]]+WIe[e[t+7]]+"-"+WIe[e[t+8]]+WIe[e[t+9]]+"-"+WIe[e[t+10]]+WIe[e[t+11]]+WIe[e[t+12]]+WIe[e[t+13]]+WIe[e[t+14]]+WIe[e[t+15]]).toLowerCase()}var WIe,HIe=b(()=>{WIe=[];for(let e=0;e<256;++e)WIe.push((e+256).toString(16).slice(1));mt(YIe,"unsafeStringify")});function VIe(){if(!XIe){if("u"<typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");XIe=crypto.getRandomValues.bind(crypto)}return XIe(KIe)}var XIe,KIe,ZIe,QIe,JIe=b(()=>{KIe=new Uint8Array(16),mt(VIe,"rng")}),eRe=b(()=>{ZIe=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),QIe={randomUUID:ZIe}});function tRe(e,t,r){if(QIe.randomUUID&&!t&&!e)return QIe.randomUUID();var n=(e=e||{}).random??e.rng?.()??VIe();if(n.length<16)throw new Error("Random bytes length must be >= 16");if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){if((r=r||0)<0||r+16>t.length)throw new RangeError(`UUID byte range ${r}:${r+15} is out of buffer bounds`);for(let e=0;e<16;++e)t[r+e]=n[e];return t}return YIe(n)}var rRe,nRe,iRe,aRe,sRe,oRe,lRe,cRe,hRe=b(()=>{eRe(),JIe(),HIe(),mt(tRe,"v4"),rRe=tRe}),uRe=b(()=>{hRe()}),dRe=b(()=>{Tu(),uRe(),Oc(),e(),en(),rn(),nRe={DEFAULT:0,NO_BORDER:0,ROUNDED_RECT:1,RECT:2,CIRCLE:3,CLOUD:4,BANG:5,HEXAGON:6},iRe=class{constructor(){this.nodes=[],this.count=0,this.elements={},this.getLogger=this.getLogger.bind(this),this.nodeType=nRe,this.clear(),this.getType=this.getType.bind(this),this.getLine truncated
`+e);var i=(e=n.db).getData(),a=YD(t,i.config.securityLevel);i.type=n.type,i.layoutAlgorithm=Phe(i.config.layout,{fallback:"cose-bilkent"}),i.diagramId=t,e.getMindmap()&&(i.nodes.forEach(e=>{"rounded"===e.shape?(e.radius=15,e.taper=15,e.stroke="none",e.width=0,e.padding=15):"circle"===e.shape?e.padding=10:"rect"===e.shape&&(e.width=0,e.padding=10)}),await Ohe(i,a),Bhe(a,i.config.mindmap?.padding??Yt.mindmap.padding,"mindmapDiagram",i.config.mindmap?.useMaxWidth??Yt.mindmap.useMaxWidth))},"draw"),aRe={draw:iRe}}),pRe=b(()=>{jr(),sRe=mt(t=>{let r="";for(let e=0;e<t.THEME_COLOR_LIMIT;e++)t["lineColor"+e]=t["lineColor"+e]||t["cScaleInv"+e],ft(t["lineColor"+e])?t["lineColor"+e]=a(t["lineColor"+e],20):t["lineColor"+e]=kt(t["lineColor"+e],20);for(let e=0;e<t.THEME_COLOR_LIMIT;e++){var n=""+(17-3*e);r+=` `+e);var i=(e=n.db).getData(),a=YD(t,i.config.securityLevel);i.type=n.type,i.layoutAlgorithm=Phe(i.config.layout,{fallback:"cose-bilkent"}),i.diagramId=t,e.getMindmap()&&(i.nodes.forEach(e=>{"rounded"===e.shape?(e.radius=15,e.taper=15,e.stroke="none",e.width=0,e.padding=15):"circle"===e.shape?e.padding=10:"rect"===e.shape&&(e.width=0,e.padding=10)}),await Ohe(i,a),Bhe(a,i.config.mindmap?.padding??Yt.mindmap.padding,"mindmapDiagram",i.config.mindmap?.useMaxWidth??Yt.mindmap.useMaxWidth))},"draw"),sRe={draw:aRe}}),gRe=b(()=>{jr(),oRe=mt(t=>{let r="";for(let e=0;e<t.THEME_COLOR_LIMIT;e++)t["lineColor"+e]=t["lineColor"+e]||t["cScaleInv"+e],ft(t["lineColor"+e])?t["lineColor"+e]=a(t["lineColor"+e],20):t["lineColor"+e]=kt(t["lineColor"+e],20);for(let e=0;e<t.THEME_COLOR_LIMIT;e++){var n=""+(17-3*e);r+=`
.section-${e-1} rect, .section-${e-1} path, .section-${e-1} circle, .section-${e-1} polygon, .section-${e-1} path { .section-${e-1} rect, .section-${e-1} path, .section-${e-1} circle, .section-${e-1} polygon, .section-${e-1} path {
fill: ${t["cScale"+e]}; fill: ${t["cScale"+e]};
} }
@@ -2382,11 +2382,11 @@ Expecting `+A.join(", ")+", got '"+(this.terminals_[x]||x)+"'":"Parse error on l
.disabled text { .disabled text {
fill: #efefef; fill: #efefef;
} }
`}return r},"genSections"),oRe=mt(e=>` `}return r},"genSections"),lRe=mt(e=>`
.edge { .edge {
stroke-width: 3; stroke-width: 3;
} }
${sRe(e)} ${oRe(e)}
.section-root rect, .section-root path, .section-root circle, .section-root polygon { .section-root rect, .section-root path, .section-root circle, .section-root polygon {
fill: ${e.git0}; fill: ${e.git0};
} }
@@ -2415,17 +2415,17 @@ Expecting `+A.join(", ")+", got '"+(this.terminals_[x]||x)+"'":"Parse error on l
dominant-baseline: middle; dominant-baseline: middle;
text-align: center; text-align: center;
} }
`,"getStyles"),lRe=oRe}),gRe={};OFe(gRe,{diagram:()=>fRe});var fRe,mRe,yRe,vRe,xRe,bRe,wRe,kRe,TRe,ERe,CRe,_Re,SRe,ARe,LRe,NRe,IRe,RRe,MRe,DRe,ORe,PRe,BRe,$Re,FRe,zRe=b(()=>{qIe(),uRe(),dRe(),pRe(),fRe={get db(){return new nRe},renderer:aRe,parser:GIe,styles:lRe}}),GRe=b(()=>{function e(){this.yy={}}var t=mt(function(e,t,r,n){for(r=r||{},n=e.length;n--;r[e[n]]=t);return r},"o"),r=[1,4],n=[1,13],i=[1,12],a=[1,15],s=[1,16],o=[1,20],l=[1,19],c=[6,7,8],h=[1,26],u=[1,24],d=[1,25],p=[6,7,11],g=[1,31],f=[6,7,11,24],m=[1,6,13,16,17,20,23],y=[1,35],v=[1,36],x=[1,6,7,11,13,16,17,20,23],b=[1,38],r={trace:mt(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,KANBAN:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,shapeData:15,ICON:16,CLASS:17,nodeWithId:18,nodeWithoutId:19,NODE_DSTART:20,NODE_DESCR:21,NODE_DEND:22,NODE_ID:23,SHAPE_DATA:24,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"KANBAN",11:"EOF",13:"SPACELIST",16:"ICON",17:"CLASS",20:"NODE_DSTART",21:"NODE_DESCR",22:"NODE_DEND",23:"NODE_ID",24:"SHAPE_DATA"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,3],[12,2],[12,2],[12,2],[12,1],[12,2],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[19,3],[18,1],[18,4],[15,2],[15,1]],performAction:mt(function(e,t,r,n,i,a,s){var o=a.length-1;switch(i){case 6:case 7:return n;case 8:n.getLogger().trace("Stop NL ");break;case 9:n.getLogger().trace("Stop EOF ");break;case 11:n.getLogger().trace("Stop NL2 ");break;case 12:n.getLogger().trace("Stop EOF2 ");break;case 15:n.getLogger().info("Node: ",a[o-1].id),n.addNode(a[o-2].length,a[o-1].id,a[o-1].descr,a[o-1].type,a[o]);break;case 16:n.getLogger().info("Node: ",a[o].id),n.addNode(a[o-1].length,a[o].id,a[o].descr,a[o].type);break;case 17:n.getLogger().trace("Icon: ",a[o]),n.decorateNode({icon:a[o]});break;case 18:case 23:n.decorateNode({class:a[o]});break;case 19:n.getLogger().trace("SPACELIST");break;case 20:n.getLogger().trace("Node: ",a[o-1].id),n.addNode(0,a[o-1].id,a[o-1].descr,a[o-1].type,a[o]);break;case 21:n.getLogger().trace("Node: ",a[o].id),n.addNode(0,a[o].id,a[o].descr,a[o].type);break;case 22:n.decorateNode({icon:a[o]});break;case 27:n.getLogger().trace("node found ..",a[o-2]),this.$={id:a[o-1],descr:a[o-1],type:n.getType(a[o-2],a[o])};break;case 28:this.$={id:a[o],descr:a[o],type:0};break;case 29:n.getLogger().trace("node found ..",a[o-3]),this.$={id:a[o-3],descr:a[o-1],type:n.getType(a[o-2],a[o])};break;case 30:this.$=a[o-1]+a[o];break;case 31:this.$=a[o]}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:r},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:r},{6:n,7:[1,10],9:9,12:11,13:i,14:14,16:a,17:s,18:17,19:18,20:o,23:l},t(c,[2,3]),{1:[2,2]},t(c,[2,4]),t(c,[2,5]),{1:[2,6],6:n,12:21,13:i,14:14,16:a,17:s,18:17,19:18,20:o,23:l},{6:n,9:22,12:11,13:i,14:14,16:a,17:s,18:17,19:18,20:o,23:l},{6:h,7:u,10:23,11:d},t(p,[2,24],{18:17,19:18,14:27,16:[1,28],17:[1,29],20:o,23:l}),t(p,[2,19]),t(p,[2,21],{15:30,24:g}),t(p,[2,22]),t(p,[2,23]),t(f,[2,25]),t(f,[2,26]),t(f,[2,28],{20:[1,32]}),{21:[1,33]},{6:h,7:u,10:34,11:d},{1:[2,7],6:n,12:21,13:i,14:14,16:a,17:s,18:17,19:18,20:o,23:l},t(m,[2,14],{7:y,11:v}),t(x,[2,8]),t(x,[2,9]),t(x,[2,10]),t(p,[2,16],{15:37,24:g}),t(p,[2,17]),t(p,[2,18]),t(p,[2,20],{24:b}),t(f,[2,31]),{21:[1,39]},{22:[1,40]},t(m,[2,13],{7:y,11:v}),t(x,[2,11]),t(x,[2,12]),t(p,[2,15],{24:b}),t(f,[2,30]),{22:[1,41]},t(f,[2,27]),t(f,[2,29])],defaultActions:{2:[2,1],6:[2,2]},parseError:mt(function(e,t){var r;if(!t.recoverable)throw(r=new Error(e)).hash=t,r;this.trace(e)},"parseError"),parse:mt(function(e){var t,r=this,n=[0],i=[],a=[null],s=[],o=this.table,l="",c=0,h=0,u=0,d=1,p=s.slice.call(arguments,1),g=Object.create(this.lexer),f={yy:{}};for(t in this.yy)Object.prototype.hasOwnProperty.call(this.yy,t)&&(f.yy[t]=this.yy[t]);g.setInput(e,f.yy),f.yy.lexer=g,f.yy.parser=this,"u"<typeof g.yylloc&&(g.yylloc={});var m=g.yylloc,y=(s.push(m),g.options&&g.options.ranges);function v(){var e=i.pop()||g.lex()||d;return"number"!=typeof e&&(e instanceof Array&&(e=(i=e).pop()),e=r.symbols_[e]||e),e}"function"==typeof f.yy.parseError?this.parseError=f.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,mt(function(e){n.length=n.length-2*e,a.length=a.length-e,s.length=s.length-e},"popStack"),mt(v,"lex");for(var x,b,w,k,T,E,C,_={};;){if(w=n[n.length-1],"u"<typeof(k=this.defaultActions[w]||((null===x||"u"<typeof x)&&(x=v()),o[w]&&o[w][x]))||!k.length||!k[0]){var S,A=[];for(T in o[w])this.terminals_[T]&&2<T&&A.push("'"+this.terminals_[T]+"'");S=g.showPosition?"Parse error on line "+(c+1)+`: `,"getStyles"),cRe=lRe}),fRe={};PFe(fRe,{diagram:()=>mRe});var mRe,yRe,vRe,xRe,bRe,wRe,kRe,TRe,ERe,CRe,SRe,_Re,ARe,LRe,NRe,IRe,RRe,MRe,DRe,ORe,PRe,BRe,$Re,FRe,zRe,GRe=b(()=>{jIe(),dRe(),pRe(),gRe(),mRe={get db(){return new iRe},renderer:sRe,parser:UIe,styles:cRe}}),URe=b(()=>{function e(){this.yy={}}var t=mt(function(e,t,r,n){for(r=r||{},n=e.length;n--;r[e[n]]=t);return r},"o"),r=[1,4],n=[1,13],i=[1,12],a=[1,15],s=[1,16],o=[1,20],l=[1,19],c=[6,7,8],h=[1,26],u=[1,24],d=[1,25],p=[6,7,11],g=[1,31],f=[6,7,11,24],m=[1,6,13,16,17,20,23],y=[1,35],v=[1,36],x=[1,6,7,11,13,16,17,20,23],b=[1,38],r={trace:mt(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,KANBAN:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,shapeData:15,ICON:16,CLASS:17,nodeWithId:18,nodeWithoutId:19,NODE_DSTART:20,NODE_DESCR:21,NODE_DEND:22,NODE_ID:23,SHAPE_DATA:24,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"KANBAN",11:"EOF",13:"SPACELIST",16:"ICON",17:"CLASS",20:"NODE_DSTART",21:"NODE_DESCR",22:"NODE_DEND",23:"NODE_ID",24:"SHAPE_DATA"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,3],[12,2],[12,2],[12,2],[12,1],[12,2],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[19,3],[18,1],[18,4],[15,2],[15,1]],performAction:mt(function(e,t,r,n,i,a,s){var o=a.length-1;switch(i){case 6:case 7:return n;case 8:n.getLogger().trace("Stop NL ");break;case 9:n.getLogger().trace("Stop EOF ");break;case 11:n.getLogger().trace("Stop NL2 ");break;case 12:n.getLogger().trace("Stop EOF2 ");break;case 15:n.getLogger().info("Node: ",a[o-1].id),n.addNode(a[o-2].length,a[o-1].id,a[o-1].descr,a[o-1].type,a[o]);break;case 16:n.getLogger().info("Node: ",a[o].id),n.addNode(a[o-1].length,a[o].id,a[o].descr,a[o].type);break;case 17:n.getLogger().trace("Icon: ",a[o]),n.decorateNode({icon:a[o]});break;case 18:case 23:n.decorateNode({class:a[o]});break;case 19:n.getLogger().trace("SPACELIST");break;case 20:n.getLogger().trace("Node: ",a[o-1].id),n.addNode(0,a[o-1].id,a[o-1].descr,a[o-1].type,a[o]);break;case 21:n.getLogger().trace("Node: ",a[o].id),n.addNode(0,a[o].id,a[o].descr,a[o].type);break;case 22:n.decorateNode({icon:a[o]});break;case 27:n.getLogger().trace("node found ..",a[o-2]),this.$={id:a[o-1],descr:a[o-1],type:n.getType(a[o-2],a[o])};break;case 28:this.$={id:a[o],descr:a[o],type:0};break;case 29:n.getLogger().trace("node found ..",a[o-3]),this.$={id:a[o-3],descr:a[o-1],type:n.getType(a[o-2],a[o])};break;case 30:this.$=a[o-1]+a[o];break;case 31:this.$=a[o]}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:r},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:r},{6:n,7:[1,10],9:9,12:11,13:i,14:14,16:a,17:s,18:17,19:18,20:o,23:l},t(c,[2,3]),{1:[2,2]},t(c,[2,4]),t(c,[2,5]),{1:[2,6],6:n,12:21,13:i,14:14,16:a,17:s,18:17,19:18,20:o,23:l},{6:n,9:22,12:11,13:i,14:14,16:a,17:s,18:17,19:18,20:o,23:l},{6:h,7:u,10:23,11:d},t(p,[2,24],{18:17,19:18,14:27,16:[1,28],17:[1,29],20:o,23:l}),t(p,[2,19]),t(p,[2,21],{15:30,24:g}),t(p,[2,22]),t(p,[2,23]),t(f,[2,25]),t(f,[2,26]),t(f,[2,28],{20:[1,32]}),{21:[1,33]},{6:h,7:u,10:34,11:d},{1:[2,7],6:n,12:21,13:i,14:14,16:a,17:s,18:17,19:18,20:o,23:l},t(m,[2,14],{7:y,11:v}),t(x,[2,8]),t(x,[2,9]),t(x,[2,10]),t(p,[2,16],{15:37,24:g}),t(p,[2,17]),t(p,[2,18]),t(p,[2,20],{24:b}),t(f,[2,31]),{21:[1,39]},{22:[1,40]},t(m,[2,13],{7:y,11:v}),t(x,[2,11]),t(x,[2,12]),t(p,[2,15],{24:b}),t(f,[2,30]),{22:[1,41]},t(f,[2,27]),t(f,[2,29])],defaultActions:{2:[2,1],6:[2,2]},parseError:mt(function(e,t){var r;if(!t.recoverable)throw(r=new Error(e)).hash=t,r;this.trace(e)},"parseError"),parse:mt(function(e){var t,r=this,n=[0],i=[],a=[null],s=[],o=this.table,l="",c=0,h=0,u=0,d=1,p=s.slice.call(arguments,1),g=Object.create(this.lexer),f={yy:{}};for(t in this.yy)Object.prototype.hasOwnProperty.call(this.yy,t)&&(f.yy[t]=this.yy[t]);g.setInput(e,f.yy),f.yy.lexer=g,f.yy.parser=this,"u"<typeof g.yylloc&&(g.yylloc={});var m=g.yylloc,y=(s.push(m),g.options&&g.options.ranges);function v(){var e=i.pop()||g.lex()||d;return"number"!=typeof e&&(e instanceof Array&&(e=(i=e).pop()),e=r.symbols_[e]||e),e}"function"==typeof f.yy.parseError?this.parseError=f.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,mt(function(e){n.length=n.length-2*e,a.length=a.length-e,s.length=s.length-e},"popStack"),mt(v,"lex");for(var x,b,w,k,T,E,C,S={};;){if(w=n[n.length-1],"u"<typeof(k=this.defaultActions[w]||((null===x||"u"<typeof x)&&(x=v()),o[w]&&o[w][x]))||!k.length||!k[0]){var _,A=[];for(T in o[w])this.terminals_[T]&&2<T&&A.push("'"+this.terminals_[T]+"'");_=g.showPosition?"Parse error on line "+(c+1)+`:
`+g.showPosition()+` `+g.showPosition()+`
Expecting `+A.join(", ")+", got '"+(this.terminals_[x]||x)+"'":"Parse error on line "+(c+1)+": Unexpected "+(x==d?"end of input":"'"+(this.terminals_[x]||x)+"'"),this.parseError(S,{text:g.match,token:this.terminals_[x]||x,line:g.yylineno,loc:m,expected:A})}if(k[0]instanceof Array&&1<k.length)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+x);switch(k[0]){case 1:n.push(x),a.push(g.yytext),s.push(g.yylloc),n.push(k[1]),x=null,b?(x=b,b=null):(h=g.yyleng,l=g.yytext,c=g.yylineno,m=g.yylloc,0<u&&u--);break;case 2:if(E=this.productions_[k[1]][1],_.$=a[a.length-E],_._$={first_line:s[s.length-(E||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(E||1)].first_column,last_column:s[s.length-1].last_column},y&&(_._$.range=[s[s.length-(E||1)].range[0],s[s.length-1].range[1]]),typeof(C=this.performAction.apply(_,[l,h,c,f.yy,k[1],a,s].concat(p)))<"u")return C;E&&(n=n.slice(0,-1*E*2),a=a.slice(0,-1*E),s=s.slice(0,-1*E)),n.push(this.productions_[k[1]][0]),a.push(_.$),s.push(_._$),C=o[n[n.length-2]][n[n.length-1]],n.push(C);break;case 3:return!0}}return!0},"parse")},c={EOF:1,parseError:mt(function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},"parseError"),setInput:mt(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:mt(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},"input"),unput:mt(function(e){var t=e.length,r=e.split(/(?:\r\n?|\n)/g),e=(this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t,this.match.split(/(?:\r\n?|\n)/g)),n=(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),r.length-1&&(this.yylineno-=r.length-1),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:r?(r.length===e.length?this.yylloc.first_column:0)+e[e.length-r.length].length-r[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[n[0],n[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},"unput"),more:mt(function(){return this._more=!0,this},"more"),reject:mt(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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). Expecting `+A.join(", ")+", got '"+(this.terminals_[x]||x)+"'":"Parse error on line "+(c+1)+": Unexpected "+(x==d?"end of input":"'"+(this.terminals_[x]||x)+"'"),this.parseError(_,{text:g.match,token:this.terminals_[x]||x,line:g.yylineno,loc:m,expected:A})}if(k[0]instanceof Array&&1<k.length)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+x);switch(k[0]){case 1:n.push(x),a.push(g.yytext),s.push(g.yylloc),n.push(k[1]),x=null,b?(x=b,b=null):(h=g.yyleng,l=g.yytext,c=g.yylineno,m=g.yylloc,0<u&&u--);break;case 2:if(E=this.productions_[k[1]][1],S.$=a[a.length-E],S._$={first_line:s[s.length-(E||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(E||1)].first_column,last_column:s[s.length-1].last_column},y&&(S._$.range=[s[s.length-(E||1)].range[0],s[s.length-1].range[1]]),typeof(C=this.performAction.apply(S,[l,h,c,f.yy,k[1],a,s].concat(p)))<"u")return C;E&&(n=n.slice(0,-1*E*2),a=a.slice(0,-1*E),s=s.slice(0,-1*E)),n.push(this.productions_[k[1]][0]),a.push(S.$),s.push(S._$),C=o[n[n.length-2]][n[n.length-1]],n.push(C);break;case 3:return!0}}return!0},"parse")},c={EOF:1,parseError:mt(function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},"parseError"),setInput:mt(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:mt(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},"input"),unput:mt(function(e){var t=e.length,r=e.split(/(?:\r\n?|\n)/g),e=(this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t,this.match.split(/(?:\r\n?|\n)/g)),n=(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),r.length-1&&(this.yylineno-=r.length-1),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:r?(r.length===e.length?this.yylloc.first_column:0)+e[e.length-r.length].length-r[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[n[0],n[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},"unput"),more:mt(function(){return this._more=!0,this},"more"),reject:mt(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:mt(function(e){this.unput(this.match.slice(e))},"less"),pastInput:mt(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(20<e.length?"...":"")+e.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:mt(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(20<e.length?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:mt(function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+` `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:mt(function(e){this.unput(this.match.slice(e))},"less"),pastInput:mt(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(20<e.length?"...":"")+e.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:mt(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(20<e.length?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:mt(function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+`
`+t+"^"},"showPosition"),test_match:mt(function(e,t){var r,n;if(this.options.backtrack_lexer&&(n={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)&&(n.yylloc.range=this.yylloc.range.slice(0)),(r=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],r=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),r)return r;if(this._backtrack)for(var i in n)this[i]=n[i];return!1},"test_match"),next:mt(function(){if(this.done)return this.EOF;var e,t,r,n;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;a<i.length;a++)if((r=this._input.match(this.rules[i[a]]))&&(!t||r[0].length>t[0].length)){if(t=r,n=a,this.options.backtrack_lexer){if(!1!==(e=this.test_match(r,i[a])))return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,i[n]))&&e:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. `+t+"^"},"showPosition"),test_match:mt(function(e,t){var r,n;if(this.options.backtrack_lexer&&(n={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)&&(n.yylloc.range=this.yylloc.range.slice(0)),(r=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],r=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),r)return r;if(this._backtrack)for(var i in n)this[i]=n[i];return!1},"test_match"),next:mt(function(){if(this.done)return this.EOF;var e,t,r,n;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;a<i.length;a++)if((r=this._input.match(this.rules[i[a]]))&&(!t||r[0].length>t[0].length)){if(t=r,n=a,this.options.backtrack_lexer){if(!1!==(e=this.test_match(r,i[a])))return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,i[n]))&&e:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:mt(function(){return this.next()||this.lex()},"lex"),begin:mt(function(e){this.conditionStack.push(e)},"begin"),popState:mt(function(){return 0<this.conditionStack.length-1?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:mt(function(){return(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]]:this.conditions.INITIAL).rules},"_currentRules"),topState:mt(function(e){return 0<=(e=this.conditionStack.length-1-Math.abs(e||0))?this.conditionStack[e]:"INITIAL"},"topState"),pushState:mt(function(e){this.begin(e)},"pushState"),stateStackSize:mt(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:mt(function(e,t,r,n){switch(r){case 0:return this.pushState("shapeData"),t.yytext="",24;case 1:return this.pushState("shapeDataStr"),24;case 2:return this.popState(),24;case 3:return t.yytext=t.yytext.replace(/\n\s*/g,"<br/>"),24;case 4:return 24;case 5:this.popState();break;case 6:return e.getLogger().trace("Found comment",t.yytext),6;case 7:return 8;case 8:this.begin("CLASS");break;case 9:return this.popState(),17;case 10:this.popState();break;case 11:e.getLogger().trace("Begin icon"),this.begin("ICON");break;case 12:return e.getLogger().trace("SPACELINE"),6;case 13:return 7;case 14:return 16;case 15:e.getLogger().trace("end icon"),this.popState();break;case 16:return e.getLogger().trace("Exploding node"),this.begin("NODE"),20;case 17:return e.getLogger().trace("Cloud"),this.begin("NODE"),20;case 18:return e.getLogger().trace("Explosion Bang"),this.begin("NODE"),20;case 19:return e.getLogger().trace("Cloud Bang"),this.begin("NODE"),20;case 20:case 21:case 22:case 23:return this.begin("NODE"),20;case 24:return 13;case 25:return 23;case 26:return 11;case 27:this.begin("NSTR2");break;case 28:return"NODE_DESCR";case 29:this.popState();break;case 30:e.getLogger().trace("Starting NSTR"),this.begin("NSTR");break;case 31:return e.getLogger().trace("description:",t.yytext),"NODE_DESCR";case 32:this.popState();break;case 33:return this.popState(),e.getLogger().trace("node end ))"),"NODE_DEND";case 34:return this.popState(),e.getLogger().trace("node end )"),"NODE_DEND";case 35:return this.popState(),e.getLogger().trace("node end ...",t.yytext),"NODE_DEND";case 36:return this.popState(),e.getLogger().trace("node end (("),"NODE_DEND";case 37:case 38:return this.popState(),e.getLogger().trace("node end (-"),"NODE_DEND";case 39:case 40:return this.popState(),e.getLogger().trace("node end (("),"NODE_DEND";case 41:case 42:return e.getLogger().trace("Long description:",t.yytext),21}},"anonymous"),rules:[/^(?:@\{)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^\"]+)/i,/^(?:[^}^"]+)/i,/^(?:\})/i,/^(?:\s*%%.*)/i,/^(?:kanban\b)/i,/^(?::::)/i,/^(?:.+)/i,/^(?:\n)/i,/^(?:::icon\()/i,/^(?:[\s]+[\n])/i,/^(?:[\n]+)/i,/^(?:[^\)]+)/i,/^(?:\))/i,/^(?:-\))/i,/^(?:\(-)/i,/^(?:\)\))/i,/^(?:\))/i,/^(?:\(\()/i,/^(?:\{\{)/i,/^(?:\()/i,/^(?:\[)/i,/^(?:[\s]+)/i,/^(?:[^\(\[\n\)\{\}@]+)/i,/^(?:$)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:[^"]+)/i,/^(?:["])/i,/^(?:[\)]\))/i,/^(?:[\)])/i,/^(?:[\]])/i,/^(?:\}\})/i,/^(?:\(-)/i,/^(?:-\))/i,/^(?:\(\()/i,/^(?:\()/i,/^(?:[^\)\]\(\}]+)/i,/^(?:.+(?!\(\())/i],conditions:{shapeDataEndBracket:{rules:[],inclusive:!1},shapeDataStr:{rules:[2,3],inclusive:!1},shapeData:{rules:[1,4,5],inclusive:!1},CLASS:{rules:[9,10],inclusive:!1},ICON:{rules:[14,15],inclusive:!1},NSTR2:{rules:[28,29],inclusive:!1},NSTR:{rules:[31,32],inclusive:!1},NODE:{rules:[27,30,33,34,35,36,37,38,39,40,41,42],inclusive:!1},INITIAL:{rules:[0,6,7,8,11,12,13,16,17,18,19,20,21,22,23,24,25,26],inclusive:!0}}};r.lexer=c,mt(e,"Parser"),(mRe=new((e.prototype=r).Parser=e)).parser=mRe,yRe=mRe}),URe=b(()=>{Tu(),Oc(),e(),en(),F9(),vRe=[],xRe=[],bRe=0,wRe={},kRe=mt(()=>{vRe=[],xRe=[],bRe=0,wRe={}},"clear"),TRe=mt(e=>{if(0===vRe.length)return null;let t=vRe[0].level,r=null;for(let e=vRe.length-1;0<=e;e--)if(vRe[e].level===t&&(r=r||vRe[e]),vRe[e].level<t)throw new Error('Items without section detected, found section ("'+vRe[e].label+'")');return e===r?.level?null:r},"getSection"),ERe=mt(function(){return xRe},"getSections"),CRe=mt(function(){var e=[],r=ERe(),n=O();for(let t of r){var i,a={id:t.id,label:lc(t.label??"",n),isGroup:!0,ticket:t.ticket,shape:"kanbanSection",level:t.level,look:n.look};e.push(a);for(i of vRe.filter(e=>e.parentId===t.id)){var s={id:i.id,parentId:t.id,label:lc(i.label??"",n),isGroup:!1,ticket:i?.ticket,priority:i?.priority,assigned:i?.assigned,icon:i?.icon,shape:"kanbanItem",level:i.level,rx:5,ry:5,cssStyles:["text-align: left"]};e.push(s)}}return{nodes:e,edges:[],other:{},config:O()}},"getData"),_Re=mt((e,t,r,n,i)=>{let a=O(),s=a.mindmap?.padding??Yt.mindmap.padding;switch(n){case SRe.ROUNDED_RECT:case SRe.RECT:case SRe.HEXAGON:s*=2}if(n={id:lc(t,a)||"kbn"+bRe++,level:e,label:lc(r,a),widthLine truncated `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:mt(function(){return this.next()||this.lex()},"lex"),begin:mt(function(e){this.conditionStack.push(e)},"begin"),popState:mt(function(){return 0<this.conditionStack.length-1?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:mt(function(){return(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]]:this.conditions.INITIAL).rules},"_currentRules"),topState:mt(function(e){return 0<=(e=this.conditionStack.length-1-Math.abs(e||0))?this.conditionStack[e]:"INITIAL"},"topState"),pushState:mt(function(e){this.begin(e)},"pushState"),stateStackSize:mt(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:mt(function(e,t,r,n){switch(r){case 0:return this.pushState("shapeData"),t.yytext="",24;case 1:return this.pushState("shapeDataStr"),24;case 2:return this.popState(),24;case 3:return t.yytext=t.yytext.replace(/\n\s*/g,"<br/>"),24;case 4:return 24;case 5:this.popState();break;case 6:return e.getLogger().trace("Found comment",t.yytext),6;case 7:return 8;case 8:this.begin("CLASS");break;case 9:return this.popState(),17;case 10:this.popState();break;case 11:e.getLogger().trace("Begin icon"),this.begin("ICON");break;case 12:return e.getLogger().trace("SPACELINE"),6;case 13:return 7;case 14:return 16;case 15:e.getLogger().trace("end icon"),this.popState();break;case 16:return e.getLogger().trace("Exploding node"),this.begin("NODE"),20;case 17:return e.getLogger().trace("Cloud"),this.begin("NODE"),20;case 18:return e.getLogger().trace("Explosion Bang"),this.begin("NODE"),20;case 19:return e.getLogger().trace("Cloud Bang"),this.begin("NODE"),20;case 20:case 21:case 22:case 23:return this.begin("NODE"),20;case 24:return 13;case 25:return 23;case 26:return 11;case 27:this.begin("NSTR2");break;case 28:return"NODE_DESCR";case 29:this.popState();break;case 30:e.getLogger().trace("Starting NSTR"),this.begin("NSTR");break;case 31:return e.getLogger().trace("description:",t.yytext),"NODE_DESCR";case 32:this.popState();break;case 33:return this.popState(),e.getLogger().trace("node end ))"),"NODE_DEND";case 34:return this.popState(),e.getLogger().trace("node end )"),"NODE_DEND";case 35:return this.popState(),e.getLogger().trace("node end ...",t.yytext),"NODE_DEND";case 36:return this.popState(),e.getLogger().trace("node end (("),"NODE_DEND";case 37:case 38:return this.popState(),e.getLogger().trace("node end (-"),"NODE_DEND";case 39:case 40:return this.popState(),e.getLogger().trace("node end (("),"NODE_DEND";case 41:case 42:return e.getLogger().trace("Long description:",t.yytext),21}},"anonymous"),rules:[/^(?:@\{)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^\"]+)/i,/^(?:[^}^"]+)/i,/^(?:\})/i,/^(?:\s*%%.*)/i,/^(?:kanban\b)/i,/^(?::::)/i,/^(?:.+)/i,/^(?:\n)/i,/^(?:::icon\()/i,/^(?:[\s]+[\n])/i,/^(?:[\n]+)/i,/^(?:[^\)]+)/i,/^(?:\))/i,/^(?:-\))/i,/^(?:\(-)/i,/^(?:\)\))/i,/^(?:\))/i,/^(?:\(\()/i,/^(?:\{\{)/i,/^(?:\()/i,/^(?:\[)/i,/^(?:[\s]+)/i,/^(?:[^\(\[\n\)\{\}@]+)/i,/^(?:$)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:[^"]+)/i,/^(?:["])/i,/^(?:[\)]\))/i,/^(?:[\)])/i,/^(?:[\]])/i,/^(?:\}\})/i,/^(?:\(-)/i,/^(?:-\))/i,/^(?:\(\()/i,/^(?:\()/i,/^(?:[^\)\]\(\}]+)/i,/^(?:.+(?!\(\())/i],conditions:{shapeDataEndBracket:{rules:[],inclusive:!1},shapeDataStr:{rules:[2,3],inclusive:!1},shapeData:{rules:[1,4,5],inclusive:!1},CLASS:{rules:[9,10],inclusive:!1},ICON:{rules:[14,15],inclusive:!1},NSTR2:{rules:[28,29],inclusive:!1},NSTR:{rules:[31,32],inclusive:!1},NODE:{rules:[27,30,33,34,35,36,37,38,39,40,41,42],inclusive:!1},INITIAL:{rules:[0,6,7,8,11,12,13,16,17,18,19,20,21,22,23,24,25,26],inclusive:!0}}};r.lexer=c,mt(e,"Parser"),(yRe=new((e.prototype=r).Parser=e)).parser=yRe,vRe=yRe}),qRe=b(()=>{Tu(),Oc(),e(),en(),F9(),xRe=[],bRe=[],wRe=0,kRe={},TRe=mt(()=>{xRe=[],bRe=[],wRe=0,kRe={}},"clear"),ERe=mt(e=>{if(0===xRe.length)return null;let t=xRe[0].level,r=null;for(let e=xRe.length-1;0<=e;e--)if(xRe[e].level===t&&(r=r||xRe[e]),xRe[e].level<t)throw new Error('Items without section detected, found section ("'+xRe[e].label+'")');return e===r?.level?null:r},"getSection"),CRe=mt(function(){return bRe},"getSections"),SRe=mt(function(){var e=[],r=CRe(),n=O();for(let t of r){var i,a={id:t.id,label:lc(t.label??"",n),isGroup:!0,ticket:t.ticket,shape:"kanbanSection",level:t.level,look:n.look};e.push(a);for(i of xRe.filter(e=>e.parentId===t.id)){var s={id:i.id,parentId:t.id,label:lc(i.label??"",n),isGroup:!1,ticket:i?.ticket,priority:i?.priority,assigned:i?.assigned,icon:i?.icon,shape:"kanbanItem",level:i.level,rx:5,ry:5,cssStyles:["text-align: left"]};e.push(s)}}return{nodes:e,edges:[],other:{},config:O()}},"getData"),_Re=mt((e,t,r,n,i)=>{let a=O(),s=a.mindmap?.padding??Yt.mindmap.padding;switch(n){case ARe.ROUNDED_RECT:case ARe.RECT:case ARe.HEXAGON:s*=2}if(n={id:lc(t,a)||"kbn"+wRe++,level:e,label:lc(r,a),widthLine truncated
`)?i+` `)?i+`
`:`{ `:`{
`+i+` `+i+`
}`,(t=$9(i,{schema:B9})).shape&&(t.shape!==t.shape.toLowerCase()||t.shape.includes("_")))throw new Error(`No such shape: ${t.shape}. Shape names should be lowercase.`);t?.shape&&"kanbanItem"===t.shape&&(n.shape=t?.shape),t?.label&&(n.label=t?.label),t?.icon&&(n.icon=t?.icon.toString()),t?.assigned&&(n.assigned=t?.assigned.toString()),t?.ticket&&(n.ticket=t?.ticket.toString()),t?.priority&&(n.priority=t?.priority)}(r=TRe(e))?n.parentId=r.id||"kbn"+bRe++:xRe.push(n),vRe.push(n)},"addNode"),SRe={DEFAULT:0,NO_BORDER:0,ROUNDED_RECT:1,RECT:2,CIRCLE:3,CLOUD:4,BANG:5,HEXAGON:6},ARe=mt((e,t)=>{switch(D.debug("In get type",e,t),e){case"[":return SRe.RECT;case"(":return")"===t?SRe.ROUNDED_RECT:SRe.CLOUD;case"((":return SRe.CIRCLE;case")":return SRe.CLOUD;case"))":return SRe.BANG;case"{{":return SRe.HEXAGON;default:return SRe.DEFAULT}},"getType"),LRe=mt((e,t)=>{wRe[e]=t},"setElementForId"),NRe=mt(e=>{var t,r;e&&(t=O(),r=vRe[vRe.length-1],e.icon&&(r.icon=lc(e.icon,t)),e.class)&&(r.cssClasses=lc(e.class,t))},"decorateNode"),IRe=mt(e=>{switch(e){case SRe.DEFAULT:return"no-border";case SRe.RECT:return"rect";case SRe.ROUNDED_RECT:return"rounded-rect";case SRe.CIRCLE:return"circle";case SRe.CLOUD:return"cloud";case SRe.BANG:return"bang";case SRe.HEXAGON:return"hexgon";default:return"no-border"}},"type2Str"),RRe=mt(()=>D,"getLogger"),MRe=mt(e=>wRe[e],"getElementById"),DRe={clear:kRe,addNode:_Re,getSections:ERe,getData:CRe,nodeType:SRe,getType:ARe,setElementForId:LRe,decorateNode:NRe,type2Str:IRe,getLogger:RRe,getElementById:MRe}}),qRe=b(()=>{Tu(),e(),LEe(),lh(),en(),sO(),oP(),ORe=mt(async(e,t,r,n)=>{D.debug(`Rendering kanban diagram }`,(t=$9(i,{schema:B9})).shape&&(t.shape!==t.shape.toLowerCase()||t.shape.includes("_")))throw new Error(`No such shape: ${t.shape}. Shape names should be lowercase.`);t?.shape&&"kanbanItem"===t.shape&&(n.shape=t?.shape),t?.label&&(n.label=t?.label),t?.icon&&(n.icon=t?.icon.toString()),t?.assigned&&(n.assigned=t?.assigned.toString()),t?.ticket&&(n.ticket=t?.ticket.toString()),t?.priority&&(n.priority=t?.priority)}(r=ERe(e))?n.parentId=r.id||"kbn"+wRe++:bRe.push(n),xRe.push(n)},"addNode"),ARe={DEFAULT:0,NO_BORDER:0,ROUNDED_RECT:1,RECT:2,CIRCLE:3,CLOUD:4,BANG:5,HEXAGON:6},LRe=mt((e,t)=>{switch(D.debug("In get type",e,t),e){case"[":return ARe.RECT;case"(":return")"===t?ARe.ROUNDED_RECT:ARe.CLOUD;case"((":return ARe.CIRCLE;case")":return ARe.CLOUD;case"))":return ARe.BANG;case"{{":return ARe.HEXAGON;default:return ARe.DEFAULT}},"getType"),NRe=mt((e,t)=>{kRe[e]=t},"setElementForId"),IRe=mt(e=>{var t,r;e&&(t=O(),r=xRe[xRe.length-1],e.icon&&(r.icon=lc(e.icon,t)),e.class)&&(r.cssClasses=lc(e.class,t))},"decorateNode"),RRe=mt(e=>{switch(e){case ARe.DEFAULT:return"no-border";case ARe.RECT:return"rect";case ARe.ROUNDED_RECT:return"rounded-rect";case ARe.CIRCLE:return"circle";case ARe.CLOUD:return"cloud";case ARe.BANG:return"bang";case ARe.HEXAGON:return"hexgon";default:return"no-border"}},"type2Str"),MRe=mt(()=>D,"getLogger"),DRe=mt(e=>kRe[e],"getElementById"),ORe={clear:TRe,addNode:_Re,getSections:CRe,getData:SRe,nodeType:ARe,getType:LRe,setElementForId:NRe,decorateNode:IRe,type2Str:RRe,getLogger:MRe,getElementById:DRe}}),jRe=b(()=>{Tu(),e(),NEe(),lh(),en(),sO(),oP(),PRe=mt(async(e,t,r,n)=>{D.debug(`Rendering kanban diagram
`+e);var i,a=n.db.getData(),s=O(),o=(s.htmlLabels=!1,(e=kEe(t)).append("g")),l=(o.attr("class","sections"),e.append("g"));l.attr("class","items");let c=a.nodes.filter(e=>e.isGroup),h=0,u=[],d=25;for(i of c){var p=s?.kanban?.sectionWidth||200,p=(h+=1,i.x=p*h+10*(h-1)/2,i.width=p,i.y=0,i.height=3*p,i.rx=5,i.ry=5,i.cssClasses=i.cssClasses+" section-"+h,await eO(o,i));d=Math.max(d,p?.labelBBox?.height),u.push(p)}let g=0;for(let i of c){var f,m=u[g];g+=1;let e=s?.kanban?.sectionWidth||200,t=3*-e/2+d,r=t,n=a.nodes.filter(e=>e.parentId===i.id);for(f of n){if(f.isGroup)throw new Error("Groups within groups are not allowed in Kanban diagrams");f.x=i.x,f.width=e-15;var y=(await tP(l,f,{config:s})).node().getBBox();f.y=r+y.height/2,await aP(f),r=f.y+y.height/2+5}var m=m.cluster.select("rect"),v=Math.max(r-t+30,50)+(d-25);m.attr("height",v)}Qc(void 0,e,s.mindmap?.padding??Yt.kanban.padding,s.mindmap?.useMaxWidth??Yt.kanban.useMaxWidth)},"draw"),PRe={draw:ORe}}),jRe=b(()=>{jr(),nue(),BRe=mt(r=>{let t="";for(let e=0;e<r.THEME_COLOR_LIMIT;e++)r["lineColor"+e]=r["lineColor"+e]||r["cScaleInv"+e],ft(r["lineColor"+e])?r["lineColor"+e]=a(r["lineColor"+e],20):r["lineColor"+e]=kt(r["lineColor"+e],20);var n=mt((e,t)=>(r.darkMode?kt:a)(e,t),"adjuster");for(let e=0;e<r.THEME_COLOR_LIMIT;e++){var i=""+(17-3*e);t+=` `+e);var i,a=n.db.getData(),s=O(),o=(s.htmlLabels=!1,(e=TEe(t)).append("g")),l=(o.attr("class","sections"),e.append("g"));l.attr("class","items");let c=a.nodes.filter(e=>e.isGroup),h=0,u=[],d=25;for(i of c){var p=s?.kanban?.sectionWidth||200,p=(h+=1,i.x=p*h+10*(h-1)/2,i.width=p,i.y=0,i.height=3*p,i.rx=5,i.ry=5,i.cssClasses=i.cssClasses+" section-"+h,await eO(o,i));d=Math.max(d,p?.labelBBox?.height),u.push(p)}let g=0;for(let i of c){var f,m=u[g];g+=1;let e=s?.kanban?.sectionWidth||200,t=3*-e/2+d,r=t,n=a.nodes.filter(e=>e.parentId===i.id);for(f of n){if(f.isGroup)throw new Error("Groups within groups are not allowed in Kanban diagrams");f.x=i.x,f.width=e-15;var y=(await tP(l,f,{config:s})).node().getBBox();f.y=r+y.height/2,await aP(f),r=f.y+y.height/2+5}var m=m.cluster.select("rect"),v=Math.max(r-t+30,50)+(d-25);m.attr("height",v)}Qc(void 0,e,s.mindmap?.padding??Yt.kanban.padding,s.mindmap?.useMaxWidth??Yt.kanban.useMaxWidth)},"draw"),BRe={draw:PRe}}),YRe=b(()=>{jr(),nue(),$Re=mt(r=>{let t="";for(let e=0;e<r.THEME_COLOR_LIMIT;e++)r["lineColor"+e]=r["lineColor"+e]||r["cScaleInv"+e],ft(r["lineColor"+e])?r["lineColor"+e]=a(r["lineColor"+e],20):r["lineColor"+e]=kt(r["lineColor"+e],20);var n=mt((e,t)=>(r.darkMode?kt:a)(e,t),"adjuster");for(let e=0;e<r.THEME_COLOR_LIMIT;e++){var i=""+(17-3*e);t+=`
.section-${e-1} rect, .section-${e-1} path, .section-${e-1} circle, .section-${e-1} polygon, .section-${e-1} path { .section-${e-1} rect, .section-${e-1} path, .section-${e-1} circle, .section-${e-1} polygon, .section-${e-1} path {
fill: ${n(r["cScale"+e],10)}; fill: ${n(r["cScale"+e],10)};
stroke: ${n(r["cScale"+e],10)}; stroke: ${n(r["cScale"+e],10)};
@@ -2471,11 +2471,11 @@ Expecting `+A.join(", ")+", got '"+(this.terminals_[x]||x)+"'":"Parse error on l
stroke: ${r.nodeBorder}; stroke: ${r.nodeBorder};
text-decoration: underline; text-decoration: underline;
} }
`}return t},"genSections"),$Re=mt(e=>` `}return t},"genSections"),FRe=mt(e=>`
.edge { .edge {
stroke-width: 3; stroke-width: 3;
} }
${BRe(e)} ${$Re(e)}
.section-root rect, .section-root path, .section-root circle, .section-root polygon { .section-root rect, .section-root path, .section-root circle, .section-root polygon {
fill: ${e.git0}; fill: ${e.git0};
} }
@@ -2503,18 +2503,18 @@ Expecting `+A.join(", ")+", got '"+(this.terminals_[x]||x)+"'":"Parse error on l
text-align: center; text-align: center;
} }
${Hhe()} ${Hhe()}
`,"getStyles"),FRe=$Re}),YRe={};OFe(YRe,{diagram:()=>WRe});var WRe,HRe,VRe,XRe,KRe,ZRe,QRe,JRe,eMe,tMe,rMe,nMe,iMe,aMe,sMe,oMe=b(()=>{GRe(),URe(),qRe(),jRe(),WRe={db:DRe,renderer:PRe,parser:yRe,styles:FRe}}),lMe=b(()=>{function e(){this.yy={}}var t=mt(function(e,t,r,n){for(r=r||{},n=e.length;n--;r[e[n]]=t);return r},"o"),r=[1,9],n=[1,10],i=[1,5,10,12],i={trace:mt(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SANKEY:4,NEWLINE:5,csv:6,opt_eof:7,record:8,csv_tail:9,EOF:10,"field[source]":11,COMMA:12,"field[target]":13,"field[value]":14,field:15,escaped:16,non_escaped:17,DQUOTE:18,ESCAPED_TEXT:19,NON_ESCAPED_TEXT:20,$accept:0,$end:1},terminals_:{2:"error",4:"SANKEY",5:"NEWLINE",10:"EOF",11:"field[source]",12:"COMMA",13:"field[target]",14:"field[value]",18:"DQUOTE",19:"ESCAPED_TEXT",20:"NON_ESCAPED_TEXT"},productions_:[0,[3,4],[6,2],[9,2],[9,0],[7,1],[7,0],[8,5],[15,1],[15,1],[16,3],[17,1]],performAction:mt(function(e,t,r,n,i,a,s){var o=a.length-1;switch(i){case 7:var l=n.findOrCreateNode(a[o-4].trim().replaceAll('""','"')),c=n.findOrCreateNode(a[o-2].trim().replaceAll('""','"')),h=parseFloat(a[o].trim());n.addLink(l,c,h);break;case 8:case 9:case 11:this.$=a[o];break;case 10:this.$=a[o-1]}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},{5:[1,3]},{6:4,8:5,15:6,16:7,17:8,18:r,20:n},{1:[2,6],7:11,10:[1,12]},t(n,[2,4],{9:13,5:[1,14]}),{12:[1,15]},t(i,[2,8]),t(i,[2,9]),{19:[1,16]},t(i,[2,11]),{1:[2,1]},{1:[2,5]},t(n,[2,2]),{6:17,8:5,15:6,16:7,17:8,18:r,20:n},{15:18,16:7,17:8,18:r,20:n},{18:[1,19]},t(n,[2,3]),{12:[1,20]},t(i,[2,10]),{15:21,16:7,17:8,18:r,20:n},t([1,5,10],[2,7])],defaultActions:{11:[2,1],12:[2,5]},parseError:mt(function(e,t){var r;if(!t.recoverable)throw(r=new Error(e)).hash=t,r;this.trace(e)},"parseError"),parse:mt(function(e){var t,r=this,n=[0],i=[],a=[null],s=[],o=this.table,l="",c=0,h=0,u=0,d=1,p=s.slice.call(arguments,1),g=Object.create(this.lexer),f={yy:{}};for(t in this.yy)Object.prototype.hasOwnProperty.call(this.yy,t)&&(f.yy[t]=this.yy[t]);g.setInput(e,f.yy),f.yy.lexer=g,f.yy.parser=this,"u"<typeof g.yylloc&&(g.yylloc={});var m=g.yylloc,y=(s.push(m),g.options&&g.options.ranges);function v(){var e=i.pop()||g.lex()||d;return"number"!=typeof e&&(e instanceof Array&&(e=(i=e).pop()),e=r.symbols_[e]||e),e}"function"==typeof f.yy.parseError?this.parseError=f.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,mt(function(e){n.length=n.length-2*e,a.length=a.length-e,s.length=s.length-e},"popStack"),mt(v,"lex");for(var x,b,w,k,T,E,C,_={};;){if(w=n[n.length-1],"u"<typeof(k=this.defaultActions[w]||((null===x||"u"<typeof x)&&(x=v()),o[w]&&o[w][x]))||!k.length||!k[0]){var S,A=[];for(T in o[w])this.terminals_[T]&&2<T&&A.push("'"+this.terminals_[T]+"'");S=g.showPosition?"Parse error on line "+(c+1)+`: `,"getStyles"),zRe=FRe}),WRe={};PFe(WRe,{diagram:()=>HRe});var HRe,VRe,XRe,KRe,ZRe,QRe,JRe,eMe,tMe,rMe,nMe,iMe,aMe,sMe,oMe,lMe=b(()=>{URe(),qRe(),jRe(),YRe(),HRe={db:ORe,renderer:BRe,parser:vRe,styles:zRe}}),cMe=b(()=>{function e(){this.yy={}}var t=mt(function(e,t,r,n){for(r=r||{},n=e.length;n--;r[e[n]]=t);return r},"o"),r=[1,9],n=[1,10],i=[1,5,10,12],i={trace:mt(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SANKEY:4,NEWLINE:5,csv:6,opt_eof:7,record:8,csv_tail:9,EOF:10,"field[source]":11,COMMA:12,"field[target]":13,"field[value]":14,field:15,escaped:16,non_escaped:17,DQUOTE:18,ESCAPED_TEXT:19,NON_ESCAPED_TEXT:20,$accept:0,$end:1},terminals_:{2:"error",4:"SANKEY",5:"NEWLINE",10:"EOF",11:"field[source]",12:"COMMA",13:"field[target]",14:"field[value]",18:"DQUOTE",19:"ESCAPED_TEXT",20:"NON_ESCAPED_TEXT"},productions_:[0,[3,4],[6,2],[9,2],[9,0],[7,1],[7,0],[8,5],[15,1],[15,1],[16,3],[17,1]],performAction:mt(function(e,t,r,n,i,a,s){var o=a.length-1;switch(i){case 7:var l=n.findOrCreateNode(a[o-4].trim().replaceAll('""','"')),c=n.findOrCreateNode(a[o-2].trim().replaceAll('""','"')),h=parseFloat(a[o].trim());n.addLink(l,c,h);break;case 8:case 9:case 11:this.$=a[o];break;case 10:this.$=a[o-1]}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},{5:[1,3]},{6:4,8:5,15:6,16:7,17:8,18:r,20:n},{1:[2,6],7:11,10:[1,12]},t(n,[2,4],{9:13,5:[1,14]}),{12:[1,15]},t(i,[2,8]),t(i,[2,9]),{19:[1,16]},t(i,[2,11]),{1:[2,1]},{1:[2,5]},t(n,[2,2]),{6:17,8:5,15:6,16:7,17:8,18:r,20:n},{15:18,16:7,17:8,18:r,20:n},{18:[1,19]},t(n,[2,3]),{12:[1,20]},t(i,[2,10]),{15:21,16:7,17:8,18:r,20:n},t([1,5,10],[2,7])],defaultActions:{11:[2,1],12:[2,5]},parseError:mt(function(e,t){var r;if(!t.recoverable)throw(r=new Error(e)).hash=t,r;this.trace(e)},"parseError"),parse:mt(function(e){var t,r=this,n=[0],i=[],a=[null],s=[],o=this.table,l="",c=0,h=0,u=0,d=1,p=s.slice.call(arguments,1),g=Object.create(this.lexer),f={yy:{}};for(t in this.yy)Object.prototype.hasOwnProperty.call(this.yy,t)&&(f.yy[t]=this.yy[t]);g.setInput(e,f.yy),f.yy.lexer=g,f.yy.parser=this,"u"<typeof g.yylloc&&(g.yylloc={});var m=g.yylloc,y=(s.push(m),g.options&&g.options.ranges);function v(){var e=i.pop()||g.lex()||d;return"number"!=typeof e&&(e instanceof Array&&(e=(i=e).pop()),e=r.symbols_[e]||e),e}"function"==typeof f.yy.parseError?this.parseError=f.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,mt(function(e){n.length=n.length-2*e,a.length=a.length-e,s.length=s.length-e},"popStack"),mt(v,"lex");for(var x,b,w,k,T,E,C,S={};;){if(w=n[n.length-1],"u"<typeof(k=this.defaultActions[w]||((null===x||"u"<typeof x)&&(x=v()),o[w]&&o[w][x]))||!k.length||!k[0]){var _,A=[];for(T in o[w])this.terminals_[T]&&2<T&&A.push("'"+this.terminals_[T]+"'");_=g.showPosition?"Parse error on line "+(c+1)+`:
`+g.showPosition()+` `+g.showPosition()+`
Expecting `+A.join(", ")+", got '"+(this.terminals_[x]||x)+"'":"Parse error on line "+(c+1)+": Unexpected "+(x==d?"end of input":"'"+(this.terminals_[x]||x)+"'"),this.parseError(S,{text:g.match,token:this.terminals_[x]||x,line:g.yylineno,loc:m,expected:A})}if(k[0]instanceof Array&&1<k.length)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+x);switch(k[0]){case 1:n.push(x),a.push(g.yytext),s.push(g.yylloc),n.push(k[1]),x=null,b?(x=b,b=null):(h=g.yyleng,l=g.yytext,c=g.yylineno,m=g.yylloc,0<u&&u--);break;case 2:if(E=this.productions_[k[1]][1],_.$=a[a.length-E],_._$={first_line:s[s.length-(E||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(E||1)].first_column,last_column:s[s.length-1].last_column},y&&(_._$.range=[s[s.length-(E||1)].range[0],s[s.length-1].range[1]]),typeof(C=this.performAction.apply(_,[l,h,c,f.yy,k[1],a,s].concat(p)))<"u")return C;E&&(n=n.slice(0,-1*E*2),a=a.slice(0,-1*E),s=s.slice(0,-1*E)),n.push(this.productions_[k[1]][0]),a.push(_.$),s.push(_._$),C=o[n[n.length-2]][n[n.length-1]],n.push(C);break;case 3:return!0}}return!0},"parse")},r={EOF:1,parseError:mt(function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},"parseError"),setInput:mt(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:mt(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},"input"),unput:mt(function(e){var t=e.length,r=e.split(/(?:\r\n?|\n)/g),e=(this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t,this.match.split(/(?:\r\n?|\n)/g)),n=(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),r.length-1&&(this.yylineno-=r.length-1),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:r?(r.length===e.length?this.yylloc.first_column:0)+e[e.length-r.length].length-r[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[n[0],n[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},"unput"),more:mt(function(){return this._more=!0,this},"more"),reject:mt(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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). Expecting `+A.join(", ")+", got '"+(this.terminals_[x]||x)+"'":"Parse error on line "+(c+1)+": Unexpected "+(x==d?"end of input":"'"+(this.terminals_[x]||x)+"'"),this.parseError(_,{text:g.match,token:this.terminals_[x]||x,line:g.yylineno,loc:m,expected:A})}if(k[0]instanceof Array&&1<k.length)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+x);switch(k[0]){case 1:n.push(x),a.push(g.yytext),s.push(g.yylloc),n.push(k[1]),x=null,b?(x=b,b=null):(h=g.yyleng,l=g.yytext,c=g.yylineno,m=g.yylloc,0<u&&u--);break;case 2:if(E=this.productions_[k[1]][1],S.$=a[a.length-E],S._$={first_line:s[s.length-(E||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(E||1)].first_column,last_column:s[s.length-1].last_column},y&&(S._$.range=[s[s.length-(E||1)].range[0],s[s.length-1].range[1]]),typeof(C=this.performAction.apply(S,[l,h,c,f.yy,k[1],a,s].concat(p)))<"u")return C;E&&(n=n.slice(0,-1*E*2),a=a.slice(0,-1*E),s=s.slice(0,-1*E)),n.push(this.productions_[k[1]][0]),a.push(S.$),s.push(S._$),C=o[n[n.length-2]][n[n.length-1]],n.push(C);break;case 3:return!0}}return!0},"parse")},r={EOF:1,parseError:mt(function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},"parseError"),setInput:mt(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:mt(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},"input"),unput:mt(function(e){var t=e.length,r=e.split(/(?:\r\n?|\n)/g),e=(this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t,this.match.split(/(?:\r\n?|\n)/g)),n=(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),r.length-1&&(this.yylineno-=r.length-1),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:r?(r.length===e.length?this.yylloc.first_column:0)+e[e.length-r.length].length-r[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[n[0],n[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},"unput"),more:mt(function(){return this._more=!0,this},"more"),reject:mt(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:mt(function(e){this.unput(this.match.slice(e))},"less"),pastInput:mt(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(20<e.length?"...":"")+e.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:mt(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(20<e.length?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:mt(function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+` `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:mt(function(e){this.unput(this.match.slice(e))},"less"),pastInput:mt(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(20<e.length?"...":"")+e.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:mt(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(20<e.length?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:mt(function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+`
`+t+"^"},"showPosition"),test_match:mt(function(e,t){var r,n;if(this.options.backtrack_lexer&&(n={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)&&(n.yylloc.range=this.yylloc.range.slice(0)),(r=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],r=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),r)return r;if(this._backtrack)for(var i in n)this[i]=n[i];return!1},"test_match"),next:mt(function(){if(this.done)return this.EOF;var e,t,r,n;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;a<i.length;a++)if((r=this._input.match(this.rules[i[a]]))&&(!t||r[0].length>t[0].length)){if(t=r,n=a,this.options.backtrack_lexer){if(!1!==(e=this.test_match(r,i[a])))return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,i[n]))&&e:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. `+t+"^"},"showPosition"),test_match:mt(function(e,t){var r,n;if(this.options.backtrack_lexer&&(n={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)&&(n.yylloc.range=this.yylloc.range.slice(0)),(r=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],r=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),r)return r;if(this._backtrack)for(var i in n)this[i]=n[i];return!1},"test_match"),next:mt(function(){if(this.done)return this.EOF;var e,t,r,n;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;a<i.length;a++)if((r=this._input.match(this.rules[i[a]]))&&(!t||r[0].length>t[0].length)){if(t=r,n=a,this.options.backtrack_lexer){if(!1!==(e=this.test_match(r,i[a])))return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,i[n]))&&e:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:mt(function(){return this.next()||this.lex()},"lex"),begin:mt(function(e){this.conditionStack.push(e)},"begin"),popState:mt(function(){return 0<this.conditionStack.length-1?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:mt(function(){return(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]]:this.conditions.INITIAL).rules},"_currentRules"),topState:mt(function(e){return 0<=(e=this.conditionStack.length-1-Math.abs(e||0))?this.conditionStack[e]:"INITIAL"},"topState"),pushState:mt(function(e){this.begin(e)},"pushState"),stateStackSize:mt(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:mt(function(e,t,r,n){switch(r){case 0:case 1:return this.pushState("csv"),4;case 2:return 10;case 3:return 5;case 4:return 12;case 5:return this.pushState("escaped_text"),18;case 6:return 20;case 7:return this.popState("escaped_text"),18;case 8:return 19}},"anonymous"),rules:[/^(?:sankey-beta\b)/i,/^(?:sankey\b)/i,/^(?:$)/i,/^(?:((\u000D\u000A)|(\u000A)))/i,/^(?:(\u002C))/i,/^(?:(\u0022))/i,/^(?:([\u0020-\u0021\u0023-\u002B\u002D-\u007E])*)/i,/^(?:(\u0022)(?!(\u0022)))/i,/^(?:(([\u0020-\u0021\u0023-\u002B\u002D-\u007E])|(\u002C)|(\u000D)|(\u000A)|(\u0022)(\u0022))*)/i],conditions:{csv:{rules:[2,3,4,5,6,7,8],inclusive:!1},escaped_text:{rules:[7,8],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8],inclusive:!0}}};i.lexer=r,mt(e,"Parser"),(HRe=new((e.prototype=i).Parser=e)).parser=HRe,VRe=HRe}),cMe=b(()=>{Tu(),Oc(),ku(),XRe=[],KRe=[],ZRe=new Map,QRe=mt(()=>{XRe=[],KRe=[],ZRe=new Map,fh()},"clear"),JRe=class{constructor(e,t,r=0){this.source=e,this.target=t,this.value=r}static{mt(this,"SankeyLink")}},eMe=mt((e,t,r)=>{XRe.push(new JRe(e,t,r))},"addLink"),tMe=class{constructor(e){this.ID=e}static{mt(this,"SankeyNode")}},rMe=mt(e=>{e=L.sanitizeText(e,O());let t=ZRe.get(e);return void 0===t&&(t=new tMe(e),ZRe.set(e,t),KRe.push(t)),t},"findOrCreateNode"),nMe=mt(()=>KRe,"getNodes"),iMe=mt(()=>XRe,"getLinks"),aMe=mt(()=>({nodes:KRe.map(e=>({id:e.ID})),links:XRe.map(e=>({source:e.source.ID,target:e.target.ID,value:e.value}))}),"getGraph"),sMe={nodesMap:ZRe,getConfig:mt(()=>O().sankey,"getConfig"),getNodes:nMe,getLinks:iMe,getGraph:aMe,addLink:eMe,findOrCreateNode:rMe,getAccTitle:yh,setAccTitle:mh,getAccDescription:xh,setAccDescription:vh,getDiagramTitle:wh,setDiagramTitle:bh,clear:QRe}});function hMe(t,r){let n;if(void 0===r)for(var e of t)null!=e&&(n<e||void 0===n&&e<=e)&&(n=e);else{let e=-1;for(var i of t)null!=(i=r(i,++e,t))&&(n<i||void 0===n&&i<=i)&&(n=i)}return n}var uMe=b(()=>{mt(hMe,"max")});function dMe(t,r){let n;if(void 0===r)for(var e of t)null!=e&&(n>e||void 0===n&&e<=e)&&(n=e);else{let e=-1;for(var i of t)null!=(i=r(i,++e,t))&&(n>i||void 0===n&&i<=i)&&(n=i)}return n}var pMe=b(()=>{mt(dMe,"min")});function gMe(t,r){let n=0;if(void 0===r)for(var e of t)(e=+e)&&(n+=e);else{let e=-1;for(var i of t)(i=+r(i,++e,t))&&(n+=i)}return n}var fMe=b(()=>{mt(gMe,"sum")}),mMe=b(()=>{uMe(),pMe(),fMe()});function yMe(e){return e.target.depth}function vMe(e){return e.depth}function xMe(e,t){return t-1-e.height}function bMe(e,t){return e.sourceLinks.length?e.depth:t-1}function wMe(e){return e.targetLinks.length?e.depth:e.sourceLinks.length?dMe(e.sourceLinks,yMe)-1:0}var kMe=b(()=>{mMe(),mt(yMe,"targetDepth"),mt(vMe,"left"),mt(xMe,"right"),mt(bMe,"justify"),mt(wMe,"center")});function TMe(e){return function(){return e}}var EMe=b(()=>{mt(TMe,"constant")});function CMe(e,t){return SMe(e.source,t.source)||e.index-t.index}function _Me(e,t){return SMe(e.target,t.target)||e.index-t.index}function SMe(e,t){return e.y0-t.y0}function AMe(e){return e.value}function LMe(e){return e.index}function NMe(e){return e.nodes}function IMe(e){return e.links}function RMe(e,t){if(e=e.get(t))return e;throw new Error("missing: "+t)}function MMe({nodes:e}){for(var r of e){let e=r.y0,t=e;for(var n of r.sourceLinks)n.y0=e+n.width/2,e+=n.width;for(var i of r.targetLinks)i.y1=t+i.width/2,t+=i.width}}function DMe(){let o=0,l=0,c=1,h=1,u=24,i=8,d,p=LMe,g=bMe,f,m,t=NMe,r=IMe,a=6;function n(){var e={nodes:t.apply(null,arguments),links:r.apply(null,arguments)};return s(e),y(e),v(e),x(e),k(e),MMe(e),e}function s({nodes:r,links:e}){for(var[t,n]of r.entries())n.index=t,n.sourceLinks=[],n.targetLinks=[];var i,a,s=new Map(r.map((e,t)=>[p(e,t,r),e]));for([i,a]of e.entries()){a.index=i;let{source:e,target:t}=a;"object"!=typeof e&&(e=a.source=RMe(s,e)),"object"!=typeof t&&(t=a.target=RMe(s,t)),e.sourceLinks.push(a),t.targetLinks.push(a)}if(null!=m)for(var{sourceLinks:o,targetLinks:l}of r)o.sort(m),l.sort(m)}function y({nodes:e}){for(var t of e)t.value=void 0===t.fixedValue?Math.max(gMe(t.sourceLinks,AMe),gMe(t.targetLinks,AMe)):t.fixedValue}function v({nodes:e}){let t=e.length,r=new Set(e),n=new Set,i=0;for(;r.size;){for(var a of r){a.d Line truncated `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:mt(function(){return this.next()||this.lex()},"lex"),begin:mt(function(e){this.conditionStack.push(e)},"begin"),popState:mt(function(){return 0<this.conditionStack.length-1?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:mt(function(){return(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]]:this.conditions.INITIAL).rules},"_currentRules"),topState:mt(function(e){return 0<=(e=this.conditionStack.length-1-Math.abs(e||0))?this.conditionStack[e]:"INITIAL"},"topState"),pushState:mt(function(e){this.begin(e)},"pushState"),stateStackSize:mt(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:mt(function(e,t,r,n){switch(r){case 0:case 1:return this.pushState("csv"),4;case 2:return 10;case 3:return 5;case 4:return 12;case 5:return this.pushState("escaped_text"),18;case 6:return 20;case 7:return this.popState("escaped_text"),18;case 8:return 19}},"anonymous"),rules:[/^(?:sankey-beta\b)/i,/^(?:sankey\b)/i,/^(?:$)/i,/^(?:((\u000D\u000A)|(\u000A)))/i,/^(?:(\u002C))/i,/^(?:(\u0022))/i,/^(?:([\u0020-\u0021\u0023-\u002B\u002D-\u007E])*)/i,/^(?:(\u0022)(?!(\u0022)))/i,/^(?:(([\u0020-\u0021\u0023-\u002B\u002D-\u007E])|(\u002C)|(\u000D)|(\u000A)|(\u0022)(\u0022))*)/i],conditions:{csv:{rules:[2,3,4,5,6,7,8],inclusive:!1},escaped_text:{rules:[7,8],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8],inclusive:!0}}};i.lexer=r,mt(e,"Parser"),(VRe=new((e.prototype=i).Parser=e)).parser=VRe,XRe=VRe}),hMe=b(()=>{Tu(),Oc(),ku(),KRe=[],ZRe=[],QRe=new Map,JRe=mt(()=>{KRe=[],ZRe=[],QRe=new Map,fh()},"clear"),eMe=class{constructor(e,t,r=0){this.source=e,this.target=t,this.value=r}static{mt(this,"SankeyLink")}},tMe=mt((e,t,r)=>{KRe.push(new eMe(e,t,r))},"addLink"),rMe=class{constructor(e){this.ID=e}static{mt(this,"SankeyNode")}},nMe=mt(e=>{e=N.sanitizeText(e,O());let t=QRe.get(e);return void 0===t&&(t=new rMe(e),QRe.set(e,t),ZRe.push(t)),t},"findOrCreateNode"),iMe=mt(()=>ZRe,"getNodes"),aMe=mt(()=>KRe,"getLinks"),sMe=mt(()=>({nodes:ZRe.map(e=>({id:e.ID})),links:KRe.map(e=>({source:e.source.ID,target:e.target.ID,value:e.value}))}),"getGraph"),oMe={nodesMap:QRe,getConfig:mt(()=>O().sankey,"getConfig"),getNodes:iMe,getLinks:aMe,getGraph:sMe,addLink:tMe,findOrCreateNode:nMe,getAccTitle:yh,setAccTitle:mh,getAccDescription:xh,setAccDescription:vh,getDiagramTitle:wh,setDiagramTitle:bh,clear:JRe}});function uMe(t,r){let n;if(void 0===r)for(var e of t)null!=e&&(n<e||void 0===n&&e<=e)&&(n=e);else{let e=-1;for(var i of t)null!=(i=r(i,++e,t))&&(n<i||void 0===n&&i<=i)&&(n=i)}return n}var dMe=b(()=>{mt(uMe,"max")});function pMe(t,r){let n;if(void 0===r)for(var e of t)null!=e&&(n>e||void 0===n&&e<=e)&&(n=e);else{let e=-1;for(var i of t)null!=(i=r(i,++e,t))&&(n>i||void 0===n&&i<=i)&&(n=i)}return n}var gMe=b(()=>{mt(pMe,"min")});function fMe(t,r){let n=0;if(void 0===r)for(var e of t)(e=+e)&&(n+=e);else{let e=-1;for(var i of t)(i=+r(i,++e,t))&&(n+=i)}return n}var mMe=b(()=>{mt(fMe,"sum")}),yMe=b(()=>{dMe(),gMe(),mMe()});function vMe(e){return e.target.depth}function xMe(e){return e.depth}function bMe(e,t){return t-1-e.height}function wMe(e,t){return e.sourceLinks.length?e.depth:t-1}function kMe(e){return e.targetLinks.length?e.depth:e.sourceLinks.length?pMe(e.sourceLinks,vMe)-1:0}var TMe=b(()=>{yMe(),mt(vMe,"targetDepth"),mt(xMe,"left"),mt(bMe,"right"),mt(wMe,"justify"),mt(kMe,"center")});function EMe(e){return function(){return e}}var CMe=b(()=>{mt(EMe,"constant")});function SMe(e,t){return AMe(e.source,t.source)||e.index-t.index}function _Me(e,t){return AMe(e.target,t.target)||e.index-t.index}function AMe(e,t){return e.y0-t.y0}function LMe(e){return e.value}function NMe(e){return e.index}function IMe(e){return e.nodes}function RMe(e){return e.links}function MMe(e,t){if(e=e.get(t))return e;throw new Error("missing: "+t)}function DMe({nodes:e}){for(var r of e){let e=r.y0,t=e;for(var n of r.sourceLinks)n.y0=e+n.width/2,e+=n.width;for(var i of r.targetLinks)i.y1=t+i.width/2,t+=i.width}}function OMe(){let o=0,l=0,c=1,h=1,u=24,i=8,d,p=NMe,g=wMe,f,m,t=IMe,r=RMe,a=6;function n(){var e={nodes:t.apply(null,arguments),links:r.apply(null,arguments)};return s(e),y(e),v(e),x(e),k(e),DMe(e),e}function s({nodes:r,links:e}){for(var[t,n]of r.entries())n.index=t,n.sourceLinks=[],n.targetLinks=[];var i,a,s=new Map(r.map((e,t)=>[p(e,t,r),e]));for([i,a]of e.entries()){a.index=i;let{source:e,target:t}=a;"object"!=typeof e&&(e=a.source=MMe(s,e)),"object"!=typeof t&&(t=a.target=MMe(s,t)),e.sourceLinks.push(a),t.targetLinks.push(a)}if(null!=m)for(var{sourceLinks:o,targetLinks:l}of r)o.sort(m),l.sort(m)}function y({nodes:e}){for(var t of e)t.value=void 0===t.fixedValue?Math.max(fMe(t.sourceLinks,LMe),fMe(t.targetLinks,LMe)):t.fixedValue}function v({nodes:e}){let t=e.length,r=new Set(e),n=new Set,i=0;for(;r.size;){for(var a of r){a.d Line truncated
`+g+Math.round(100*t)/100+f:e,"getText"),n=(c.append("g").attr("class","node-labels").attr("font-size",14).selectAll("text").data(y.nodes).join("text").attr("x",e=>e.x0<h/2?e.x1+6:e.x0-6).attr("y",e=>(e.y1+e.y0)/2).attr("dy",`${m?"0":"0.35"}em`).attr("text-anchor",e=>e.x0<h/2?"start":"end").text(t),c.append("g").attr("class","links").attr("fill","none").attr("stroke-opacity",.5).selectAll(".link").data(y.links).join("g").attr("class","link").style("mix-blend-mode","multiply")),b=a?.linkColor??"gradient";"gradient"===b&&((t=n.append("linearGradient").attr("id",e=>(e.uid=oDe.next("linearGradient-")).id).attr("gradientUnits","userSpaceOnUse").attr("x1",e=>e.source.x1).attr("x2",e=>e.target.x0)).append("stop").attr("offset","0%").attr("stop-color",e=>x(e.source.id)),t.append("stop").attr("offset","100%").attr("stop-color",e=>x(e.target.id)));let w;switch(b){case"gradient":w=mt(e=>e.uid,"coloring");break;case"source":w=mt(e=>x(e.source.id),"coloring");break;case"target":w=mt(e=>x(e.target.id),"coloring");break;default:w=b}n.append("path").attr("d",sDe()).attr("stroke",w).attr("stroke-width",e=>Math.max(1,e.width)),Qc(void 0,c,0,d)},"draw"),hDe={draw:cDe}}),vDe=b(()=>{uDe=mt(e=>e.replaceAll(/^[^\S\n\r]+|[^\S\n\r]+$/g,"").replaceAll(/([\n\r])+/g,` `+g+Math.round(100*t)/100+f:e,"getText"),n=(c.append("g").attr("class","node-labels").attr("font-size",14).selectAll("text").data(y.nodes).join("text").attr("x",e=>e.x0<h/2?e.x1+6:e.x0-6).attr("y",e=>(e.y1+e.y0)/2).attr("dy",`${m?"0":"0.35"}em`).attr("text-anchor",e=>e.x0<h/2?"start":"end").text(t),c.append("g").attr("class","links").attr("fill","none").attr("stroke-opacity",.5).selectAll(".link").data(y.links).join("g").attr("class","link").style("mix-blend-mode","multiply")),b=a?.linkColor??"gradient";"gradient"===b&&((t=n.append("linearGradient").attr("id",e=>(e.uid=lDe.next("linearGradient-")).id).attr("gradientUnits","userSpaceOnUse").attr("x1",e=>e.source.x1).attr("x2",e=>e.target.x0)).append("stop").attr("offset","0%").attr("stop-color",e=>x(e.source.id)),t.append("stop").attr("offset","100%").attr("stop-color",e=>x(e.target.id)));let w;switch(b){case"gradient":w=mt(e=>e.uid,"coloring");break;case"source":w=mt(e=>x(e.source.id),"coloring");break;case"target":w=mt(e=>x(e.target.id),"coloring");break;default:w=b}n.append("path").attr("d",oDe()).attr("stroke",w).attr("stroke-width",e=>Math.max(1,e.width)),Qc(void 0,c,0,d)},"draw"),uDe={draw:hDe}}),xDe=b(()=>{dDe=mt(e=>e.replaceAll(/^[^\S\n\r]+|[^\S\n\r]+$/g,"").replaceAll(/([\n\r])+/g,`
`).trim(),"prepareTextForParsing")}),xDe=b(()=>{dDe=mt(e=>`.label { `).trim(),"prepareTextForParsing")}),bDe=b(()=>{pDe=mt(e=>`.label {
font-family: ${e.fontFamily}; font-family: ${e.fontFamily};
}`,"getStyles"),pDe=dDe}),bDe={};OFe(bDe,{diagram:()=>kDe});var wDe,kDe,TDe,EDe,CDe,_De,SDe,ADe,LDe,NDe,IDe,RDe,MDe=b(()=>{lMe(),cMe(),yDe(),vDe(),xDe(),wDe=VRe.parse.bind(VRe),VRe.parse=e=>wDe(uDe(e)),kDe={styles:pDe,parser:VRe,db:sMe,renderer:hDe}}),DDe=b(()=>{rn(),en(),i_(),ku(),TDe=Yt.packet,EDe=class{constructor(){this.packet=[],this.setAccTitle=mh,this.getAccTitle=yh,this.setDiagramTitle=bh,this.getDiagramTitle=wh,this.getAccDescription=xh,this.setAccDescription=vh}static{mt(this,"PacketDB")}getConfig(){var e=_C({...TDe,...ar().packet});return e.showBits&&(e.paddingY+=10),e}getPacket(){return this.packet}pushWord(e){0<e.length&&this.packet.push(e)}clear(){fh(),this.packet=[]}}}),ODe=b(()=>{oTe(),e(),uTe(),DDe(),CDe=mt((e,t)=>{lTe(e,t);let r=-1,n=[],i=1,a=t.getConfig().bitsPerRow;for(var{start:s,end:o,bits:l,label:c}of e.blocks){if(void 0!==s&&void 0!==o&&o<s)throw new Error(`Packet block ${s} - ${o} is invalid. End must be greater than start.`);if((s??=r+1)!==r+1)throw new Error(`Packet block ${s} - ${o??s} is not contiguous. It should start from ${r+1}.`);if(0===l)throw new Error(`Packet block ${s} is invalid. Cannot have a zero bit field.`);for(o??=s+(l??1)-1,l??=o-s+1,r=o,D.debug(`Packet block ${s} - ${r} with label `+c);n.length<=a+1&&t.getPacket().length<1e4;){var[h,u]=_De({start:s,end:o,bits:l,label:c},i,a);if(n.push(h),h.end+1===i*a&&(t.pushWord(n),n=[],i++),!u)break;({start:s,end:o,bits:l,label:c}=u)}}t.pushWord(n)},"populate"),_De=mt((e,t,r)=>{if(void 0===e.start)throw new Error("start should have been set during first phase");if(void 0===e.end)throw new Error("end should have been set during first phase");if(e.end<e.start)throw new Error(`Block start ${e.start} is greater than block end ${e.end}.`);var n;return e.end+1<=t*r?[e,void 0]:[{start:e.start,end:n=t*r-1,label:e.label,bits:n-e.start},{start:n=t*r,end:e.end,label:e.label,bits:e.end-n}]},"getNextFittingBlock"),SDe={parser:{yy:void 0},parse:mt(async e=>{var e=await nTe("packet",e),t=SDe.parser?.yy;if(!(t instanceof EDe))throw new Error("parser.parser?.yy was not a PacketDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");D.debug(e),CDe(e,t)},"parse")}}),PDe=b(()=>{LEe(),lh(),ADe=mt((e,t,r,n)=>{var i,a,s=(n=n.db).getConfig(),{rowHeight:o,paddingY:l,bitWidth:c,bitsPerRow:h}=s,u=n.getPacket(),n=n.getDiagramTitle(),o=(l=o+l)*(u.length+1)-(n?0:o),c=c*h+2,d=kEe(t);d.attr("viewbox",`0 0 ${c} `+o),Zc(d,o,c,s.useMaxWidth);for([i,a]of u.entries())LDe(d,a,i,s);d.append("text").text(n).attr("x",c/2).attr("y",o-l/2).attr("dominant-baseline","middle").attr("text-anchor","middle").attr("class","packetTitle")},"draw"),LDe=mt((e,t,r,{rowHeight:n,paddingX:i,paddingY:a,bitWidth:s,bitsPerRow:o,showBits:l})=>{var c,h=e.append("g"),u=r*(n+a)+a;for(c of t){var d,p,g=c.start%o*s+1,f=(c.end-c.start+1)*s-i;h.append("rect").attr("x",g).attr("y",u).attr("width",f).attr("height",n).attr("class","packetBlock"),h.append("text").attr("x",g+f/2).attr("y",u+n/2).attr("class","packetLabel").attr("dominant-baseline","middle").attr("text-anchor","middle").text(c.label),l&&(d=c.end===c.start,p=u-2,h.append("text").attr("x",g+(d?f/2:0)).attr("y",p).attr("class","packetByte start").attr("dominant-baseline","auto").attr("text-anchor",d?"middle":"start").text(c.start),d||h.append("text").attr("x",g+f).attr("y",p).attr("class","packetByte end").attr("dominant-baseline","auto").attr("text-anchor","end").text(c.end))}},"drawWord"),NDe={draw:ADe}}),BDe=b(()=>{i_(),IDe={byteFontSize:"10px",startByteColor:"black",endByteColor:"black",labelColor:"black",labelFontSize:"12px",titleColor:"black",titleFontSize:"14px",blockStrokeColor:"black",blockStrokeWidth:"1",blockFillColor:"#efefef"},RDe=mt(({packet:e}={})=>` }`,"getStyles"),gDe=pDe}),wDe={};PFe(wDe,{diagram:()=>TDe});var kDe,TDe,EDe,CDe,SDe,_De,ADe,LDe,NDe,IDe,RDe,MDe,DDe=b(()=>{cMe(),hMe(),vDe(),xDe(),bDe(),kDe=XRe.parse.bind(XRe),XRe.parse=e=>kDe(dDe(e)),TDe={styles:gDe,parser:XRe,db:oMe,renderer:uDe}}),ODe=b(()=>{rn(),en(),iS(),ku(),EDe=Yt.packet,CDe=class{constructor(){this.packet=[],this.setAccTitle=mh,this.getAccTitle=yh,this.setDiagramTitle=bh,this.getDiagramTitle=wh,this.getAccDescription=xh,this.setAccDescription=vh}static{mt(this,"PacketDB")}getConfig(){var e=SC({...EDe,...ar().packet});return e.showBits&&(e.paddingY+=10),e}getPacket(){return this.packet}pushWord(e){0<e.length&&this.packet.push(e)}clear(){fh(),this.packet=[]}}}),PDe=b(()=>{oTe(),e(),uTe(),ODe(),SDe=mt((e,t)=>{lTe(e,t);let r=-1,n=[],i=1,a=t.getConfig().bitsPerRow;for(var{start:s,end:o,bits:l,label:c}of e.blocks){if(void 0!==s&&void 0!==o&&o<s)throw new Error(`Packet block ${s} - ${o} is invalid. End must be greater than start.`);if((s??=r+1)!==r+1)throw new Error(`Packet block ${s} - ${o??s} is not contiguous. It should start from ${r+1}.`);if(0===l)throw new Error(`Packet block ${s} is invalid. Cannot have a zero bit field.`);for(o??=s+(l??1)-1,l??=o-s+1,r=o,D.debug(`Packet block ${s} - ${r} with label `+c);n.length<=a+1&&t.getPacket().length<1e4;){var[h,u]=_De({start:s,end:o,bits:l,label:c},i,a);if(n.push(h),h.end+1===i*a&&(t.pushWord(n),n=[],i++),!u)break;({start:s,end:o,bits:l,label:c}=u)}}t.pushWord(n)},"populate"),_De=mt((e,t,r)=>{if(void 0===e.start)throw new Error("start should have been set during first phase");if(void 0===e.end)throw new Error("end should have been set during first phase");if(e.end<e.start)throw new Error(`Block start ${e.start} is greater than block end ${e.end}.`);var n;return e.end+1<=t*r?[e,void 0]:[{start:e.start,end:n=t*r-1,label:e.label,bits:n-e.start},{start:n=t*r,end:e.end,label:e.label,bits:e.end-n}]},"getNextFittingBlock"),ADe={parser:{yy:void 0},parse:mt(async e=>{var e=await nTe("packet",e),t=ADe.parser?.yy;if(!(t instanceof CDe))throw new Error("parser.parser?.yy was not a PacketDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");D.debug(e),SDe(e,t)},"parse")}}),BDe=b(()=>{NEe(),lh(),LDe=mt((e,t,r,n)=>{var i,a,s=(n=n.db).getConfig(),{rowHeight:o,paddingY:l,bitWidth:c,bitsPerRow:h}=s,u=n.getPacket(),n=n.getDiagramTitle(),o=(l=o+l)*(u.length+1)-(n?0:o),c=c*h+2,d=TEe(t);d.attr("viewbox",`0 0 ${c} `+o),Zc(d,o,c,s.useMaxWidth);for([i,a]of u.entries())NDe(d,a,i,s);d.append("text").text(n).attr("x",c/2).attr("y",o-l/2).attr("dominant-baseline","middle").attr("text-anchor","middle").attr("class","packetTitle")},"draw"),NDe=mt((e,t,r,{rowHeight:n,paddingX:i,paddingY:a,bitWidth:s,bitsPerRow:o,showBits:l})=>{var c,h=e.append("g"),u=r*(n+a)+a;for(c of t){var d,p,g=c.start%o*s+1,f=(c.end-c.start+1)*s-i;h.append("rect").attr("x",g).attr("y",u).attr("width",f).attr("height",n).attr("class","packetBlock"),h.append("text").attr("x",g+f/2).attr("y",u+n/2).attr("class","packetLabel").attr("dominant-baseline","middle").attr("text-anchor","middle").text(c.label),l&&(d=c.end===c.start,p=u-2,h.append("text").attr("x",g+(d?f/2:0)).attr("y",p).attr("class","packetByte start").attr("dominant-baseline","auto").attr("text-anchor",d?"middle":"start").text(c.start),d||h.append("text").attr("x",g+f).attr("y",p).attr("class","packetByte end").attr("dominant-baseline","auto").attr("text-anchor","end").text(c.end))}},"drawWord"),IDe={draw:LDe}}),$De=b(()=>{iS(),RDe={byteFontSize:"10px",startByteColor:"black",endByteColor:"black",labelColor:"black",labelFontSize:"12px",titleColor:"black",titleFontSize:"14px",blockStrokeColor:"black",blockStrokeWidth:"1",blockFillColor:"#efefef"},MDe=mt(({packet:e}={})=>`
.packetByte { .packetByte {
font-size: ${(e=_C(IDe,e)).byteFontSize}; font-size: ${(e=SC(RDe,e)).byteFontSize};
} }
.packetByte.start { .packetByte.start {
fill: ${e.startByteColor}; fill: ${e.startByteColor};
@@ -2535,7 +2535,7 @@ Expecting `+A.join(", ")+", got '"+(this.terminals_[x]||x)+"'":"Parse error on l
stroke-width: ${e.blockStrokeWidth}; stroke-width: ${e.blockStrokeWidth};
fill: ${e.blockFillColor}; fill: ${e.blockFillColor};
} }
`,"styles")}),$De={};OFe($De,{diagram:()=>FDe});var FDe,zDe,GDe,UDe,qDe,jDe,YDe,WDe,HDe,VDe,XDe,KDe,ZDe,QDe,JDe,eOe,tOe,rOe=b(()=>{DDe(),ODe(),PDe(),BDe(),FDe={parser:SDe,get db(){return new EDe},renderer:NDe,styles:RDe}}),nOe=b(()=>{rn(),en(),i_(),ku(),GDe={axes:[],curves:[],options:zDe={showLegend:!0,ticks:5,max:null,min:0,graticule:"circle"}},UDe=structuredClone(GDe),qDe=Yt.radar,jDe=mt(()=>_C({...qDe,...ar().radar}),"getConfig"),YDe=mt(()=>UDe.axes,"getAxes"),WDe=mt(()=>UDe.curves,"getCurves"),HDe=mt(()=>UDe.options,"getOptions"),VDe=mt(e=>{UDe.axes=e.map(e=>({name:e.name,label:e.label??e.name}))},"setAxes"),XDe=mt(e=>{UDe.curves=e.map(e=>({name:e.name,label:e.label??e.name,entries:KDe(e.entries)}))},"setCurves"),KDe=mt(r=>{if(null==r[0].axis)return r.map(e=>e.value);var e=YDe();if(0===e.length)throw new Error("Axes must be populated before curves for reference entries");return e.map(t=>{var e=r.find(e=>e.axis?.$refText===t.name);if(void 0===e)throw new Error("Missing entry for axis "+t.label);return e.value})},"computeCurveEntries"),ZDe=mt(e=>{e=e.reduce((e,t)=>(e[t.name]=t,e),{}),UDe.options={showLegend:e.showLegend?.value??zDe.showLegend,ticks:e.ticks?.value??zDe.ticks,max:e.max?.value??zDe.max,min:e.min?.value??zDe.min,graticule:e.graticule?.value??zDe.graticule}},"setOptions"),QDe=mt(()=>{fh(),UDe=structuredClone(GDe)},"clear"),JDe={getAxes:YDe,getCurves:WDe,getOptions:HDe,setAxes:VDe,setCurves:XDe,setOptions:ZDe,getConfig:jDe,clear:QDe,setAccTitle:mh,getAccTitle:yh,setDiagramTitle:bh,getDiagramTitle:wh,getAccDescription:xh,setAccDescription:vh}}),iOe=b(()=>{oTe(),e(),uTe(),nOe(),eOe=mt(e=>{lTe(e,JDe);var{axes:e,curves:t,options:r}=e;JDe.setAxes(e),JDe.setCurves(t),JDe.setOptions(r)},"populate"),tOe={parse:mt(async e=>{e=await nTe("radar",e),D.debug(e),eOe(e)},"parse")}});function aOe(r,e,t,n,i,a,s){let o=e.length,l=Math.min(s.width,s.height)/2;t.forEach((e,t)=>{e.entries.length===o&&(e=e.entries.map((e,t)=>(t=2*Math.PI*t/o-Math.PI/2,{x:(e=sOe(e,n,i,l))*Math.cos(t),y:e*Math.sin(t)})),"circle"===a?r.append("path").attr("d",oOe(e,s.curveTension)).attr("class","radarCurve-"+t):"polygon"===a&&r.append("polygon").attr("points",e.map(e=>e.x+","+e.y).join(" ")).attr("class","radarCurve-"+t))})}function sOe(e,t,r,n){return n*(Math.min(Math.max(e,t),r)-t)/(r-t)}function oOe(t,r){let n=t.length,i=`M${t[0].x},`+t[0].y;for(let e=0;e<n;e++){var a=t[(e-1+n)%n],s=t[e],o=t[(e+1)%n],l=t[(e+2)%n],c=s.x+(o.x-a.x)*r,a=s.y+(o.y-a.y)*r,h=o.x-(l.x-s.x)*r;i+=` C${c},${a} ${h},${o.y-(l.y-s.y)*r} ${o.x},`+o.y}return i+" Z"}function lOe(a,e,t,r){if(t){let n=3*(r.width/2+r.marginRight)/4,i=3*-(r.height/2+r.marginTop)/4;e.forEach((e,t)=>{var r=a.append("g").attr("transform",`translate(${n}, ${i+20*t})`);r.append("rect").attr("width",12).attr("height",12).attr("class","radarLegendBox-"+t),r.append("text").attr("x",16).attr("y",0).attr("class","radarLegendText").text(e.label)})}}var cOe,hOe,uOe,dOe,pOe,gOe,fOe,mOe,yOe=b(()=>{LEe(),cOe=mt((e,t,r,n)=>{var i=(n=n.db).getAxes(),a=n.getCurves(),s=n.getOptions(),o=n.getConfig(),n=n.getDiagramTitle(),t=kEe(t),t=hOe(t,o),l=s.max??Math.max(...a.map(e=>Math.max(...e.entries))),c=s.min,h=Math.min(o.width,o.height)/2;uOe(t,i,h,s.ticks,s.graticule),dOe(t,i,h,o),aOe(t,i,a,c,l,s.graticule,o),lOe(t,a,s.showLegend,o),t.append("text").attr("class","radarTitle").text(n).attr("x",0).attr("y",-o.height/2-o.marginTop)},"draw"),hOe=mt((e,t)=>{var r=t.width+t.marginLeft+t.marginRight,n=t.height+t.marginTop+t.marginBottom,i=t.marginLeft+t.width/2,t=t.marginTop+t.height/2;return e.attr("viewbox",`0 0 ${r} `+n).attr("width",r).attr("height",n),e.append("g").attr("transform",`translate(${i}, ${t})`)},"drawFrame"),uOe=mt((i,a,s,o,e)=>{if("circle"===e)for(let e=0;e<o;e++){var t=s*(e+1)/o;i.append("circle").attr("r",t).attr("class","radarGraticule")}else if("polygon"===e){let n=a.length;for(let t=0;t<o;t++){let r=s*(t+1)/o,e=a.map((e,t)=>(t=2*t*Math.PI/n-Math.PI/2,r*Math.cos(t)+","+r*Math.sin(t))).join(" ");i.append("polygon").attr("points",e).attr("class","radarGraticule")}}},"drawGraticule"),dOe=mt((t,r,n,i)=>{var a=r.length;for(let e=0;e<a;e++){var s=r[e].label,o=2*e*Math.PI/a-Math.PI/2;t.append("line").attr("x1",0).attr("y1",0).attr("x2",n*i.axisScaleFactor*Math.cos(o)).attr("y2",n*i.axisScaleFactor*Math.sin(o)).attr("class","radarAxisLine"),t.append("text").text(s).attr("x",n*i.axisLabelFactor*Math.cos(o)).attr("y",n*i.axisLabelFactor*Math.sin(o)).attr("class","radarAxisLabel")}},"drawAxes"),mt(aOe,"drawCurves"),mt(sOe,"relativeRadius"),mt(oOe,"closedRoundCurve"),mt(lOe,"drawLegend"),pOe={draw:cOe}}),vOe=b(()=>{i_(),Xr(),rn(),gOe=mt((t,r)=>{let n="";for(let e=0;e<t.THEME_COLOR_LIMIT;e++){var i=t["cScale"+e];n+=` `,"styles")}),FDe={};PFe(FDe,{diagram:()=>zDe});var zDe,GDe,UDe,qDe,jDe,YDe,WDe,HDe,VDe,XDe,KDe,ZDe,QDe,JDe,eOe,tOe,rOe,nOe=b(()=>{ODe(),PDe(),BDe(),$De(),zDe={parser:ADe,get db(){return new CDe},renderer:IDe,styles:MDe}}),iOe=b(()=>{rn(),en(),iS(),ku(),UDe={axes:[],curves:[],options:GDe={showLegend:!0,ticks:5,max:null,min:0,graticule:"circle"}},qDe=structuredClone(UDe),jDe=Yt.radar,YDe=mt(()=>SC({...jDe,...ar().radar}),"getConfig"),WDe=mt(()=>qDe.axes,"getAxes"),HDe=mt(()=>qDe.curves,"getCurves"),VDe=mt(()=>qDe.options,"getOptions"),XDe=mt(e=>{qDe.axes=e.map(e=>({name:e.name,label:e.label??e.name}))},"setAxes"),KDe=mt(e=>{qDe.curves=e.map(e=>({name:e.name,label:e.label??e.name,entries:ZDe(e.entries)}))},"setCurves"),ZDe=mt(r=>{if(null==r[0].axis)return r.map(e=>e.value);var e=WDe();if(0===e.length)throw new Error("Axes must be populated before curves for reference entries");return e.map(t=>{var e=r.find(e=>e.axis?.$refText===t.name);if(void 0===e)throw new Error("Missing entry for axis "+t.label);return e.value})},"computeCurveEntries"),QDe=mt(e=>{e=e.reduce((e,t)=>(e[t.name]=t,e),{}),qDe.options={showLegend:e.showLegend?.value??GDe.showLegend,ticks:e.ticks?.value??GDe.ticks,max:e.max?.value??GDe.max,min:e.min?.value??GDe.min,graticule:e.graticule?.value??GDe.graticule}},"setOptions"),JDe=mt(()=>{fh(),qDe=structuredClone(UDe)},"clear"),eOe={getAxes:WDe,getCurves:HDe,getOptions:VDe,setAxes:XDe,setCurves:KDe,setOptions:QDe,getConfig:YDe,clear:JDe,setAccTitle:mh,getAccTitle:yh,setDiagramTitle:bh,getDiagramTitle:wh,getAccDescription:xh,setAccDescription:vh}}),aOe=b(()=>{oTe(),e(),uTe(),iOe(),tOe=mt(e=>{lTe(e,eOe);var{axes:e,curves:t,options:r}=e;eOe.setAxes(e),eOe.setCurves(t),eOe.setOptions(r)},"populate"),rOe={parse:mt(async e=>{e=await nTe("radar",e),D.debug(e),tOe(e)},"parse")}});function sOe(r,e,t,n,i,a,s){let o=e.length,l=Math.min(s.width,s.height)/2;t.forEach((e,t)=>{e.entries.length===o&&(e=e.entries.map((e,t)=>(t=2*Math.PI*t/o-Math.PI/2,{x:(e=oOe(e,n,i,l))*Math.cos(t),y:e*Math.sin(t)})),"circle"===a?r.append("path").attr("d",lOe(e,s.curveTension)).attr("class","radarCurve-"+t):"polygon"===a&&r.append("polygon").attr("points",e.map(e=>e.x+","+e.y).join(" ")).attr("class","radarCurve-"+t))})}function oOe(e,t,r,n){return n*(Math.min(Math.max(e,t),r)-t)/(r-t)}function lOe(t,r){let n=t.length,i=`M${t[0].x},`+t[0].y;for(let e=0;e<n;e++){var a=t[(e-1+n)%n],s=t[e],o=t[(e+1)%n],l=t[(e+2)%n],c=s.x+(o.x-a.x)*r,a=s.y+(o.y-a.y)*r,h=o.x-(l.x-s.x)*r;i+=` C${c},${a} ${h},${o.y-(l.y-s.y)*r} ${o.x},`+o.y}return i+" Z"}function cOe(a,e,t,r){if(t){let n=3*(r.width/2+r.marginRight)/4,i=3*-(r.height/2+r.marginTop)/4;e.forEach((e,t)=>{var r=a.append("g").attr("transform",`translate(${n}, ${i+20*t})`);r.append("rect").attr("width",12).attr("height",12).attr("class","radarLegendBox-"+t),r.append("text").attr("x",16).attr("y",0).attr("class","radarLegendText").text(e.label)})}}var hOe,uOe,dOe,pOe,gOe,fOe,mOe,yOe,vOe=b(()=>{NEe(),hOe=mt((e,t,r,n)=>{var i=(n=n.db).getAxes(),a=n.getCurves(),s=n.getOptions(),o=n.getConfig(),n=n.getDiagramTitle(),t=TEe(t),t=uOe(t,o),l=s.max??Math.max(...a.map(e=>Math.max(...e.entries))),c=s.min,h=Math.min(o.width,o.height)/2;dOe(t,i,h,s.ticks,s.graticule),pOe(t,i,h,o),sOe(t,i,a,c,l,s.graticule,o),cOe(t,a,s.showLegend,o),t.append("text").attr("class","radarTitle").text(n).attr("x",0).attr("y",-o.height/2-o.marginTop)},"draw"),uOe=mt((e,t)=>{var r=t.width+t.marginLeft+t.marginRight,n=t.height+t.marginTop+t.marginBottom,i=t.marginLeft+t.width/2,t=t.marginTop+t.height/2;return e.attr("viewbox",`0 0 ${r} `+n).attr("width",r).attr("height",n),e.append("g").attr("transform",`translate(${i}, ${t})`)},"drawFrame"),dOe=mt((i,a,s,o,e)=>{if("circle"===e)for(let e=0;e<o;e++){var t=s*(e+1)/o;i.append("circle").attr("r",t).attr("class","radarGraticule")}else if("polygon"===e){let n=a.length;for(let t=0;t<o;t++){let r=s*(t+1)/o,e=a.map((e,t)=>(t=2*t*Math.PI/n-Math.PI/2,r*Math.cos(t)+","+r*Math.sin(t))).join(" ");i.append("polygon").attr("points",e).attr("class","radarGraticule")}}},"drawGraticule"),pOe=mt((t,r,n,i)=>{var a=r.length;for(let e=0;e<a;e++){var s=r[e].label,o=2*e*Math.PI/a-Math.PI/2;t.append("line").attr("x1",0).attr("y1",0).attr("x2",n*i.axisScaleFactor*Math.cos(o)).attr("y2",n*i.axisScaleFactor*Math.sin(o)).attr("class","radarAxisLine"),t.append("text").text(s).attr("x",n*i.axisLabelFactor*Math.cos(o)).attr("y",n*i.axisLabelFactor*Math.sin(o)).attr("class","radarAxisLabel")}},"drawAxes"),mt(sOe,"drawCurves"),mt(oOe,"relativeRadius"),mt(lOe,"closedRoundCurve"),mt(cOe,"drawLegend"),gOe={draw:hOe}}),xOe=b(()=>{iS(),Xr(),rn(),fOe=mt((t,r)=>{let n="";for(let e=0;e<t.THEME_COLOR_LIMIT;e++){var i=t["cScale"+e];n+=`
.radarCurve-${e} { .radarCurve-${e} {
color: ${i}; color: ${i};
fill: ${i}; fill: ${i};
@@ -2548,7 +2548,7 @@ Expecting `+A.join(", ")+", got '"+(this.terminals_[x]||x)+"'":"Parse error on l
fill-opacity: ${r.curveOpacity}; fill-opacity: ${r.curveOpacity};
stroke: ${i}; stroke: ${i};
} }
`}return n},"genIndexStyles"),fOe=mt(e=>{var t=_C(Ot(),ar().themeVariables);return{themeVariables:t,radarOptions:_C(t.radar,e)}},"buildRadarStyleOptions"),mOe=mt(({radar:e}={})=>{var{themeVariables:e,radarOptions:t}=fOe(e);return` `}return n},"genIndexStyles"),mOe=mt(e=>{var t=SC(Ot(),ar().themeVariables);return{themeVariables:t,radarOptions:SC(t.radar,e)}},"buildRadarStyleOptions"),yOe=mt(({radar:e}={})=>{var{themeVariables:e,radarOptions:t}=mOe(e);return`
.radarTitle { .radarTitle {
font-size: ${e.fontSize}; font-size: ${e.fontSize};
color: ${e.titleColor}; color: ${e.titleColor};
@@ -2576,13 +2576,13 @@ Expecting `+A.join(", ")+", got '"+(this.terminals_[x]||x)+"'":"Parse error on l
font-size: ${t.legendFontSize}px; font-size: ${t.legendFontSize}px;
dominant-baseline: hanging; dominant-baseline: hanging;
} }
${gOe(e,t)} ${fOe(e,t)}
`},"styles")}),xOe={};OFe(xOe,{diagram:()=>bOe});var bOe,wOe,kOe,TOe=b(()=>{nOe(),iOe(),yOe(),vOe(),bOe={parser:tOe,db:JDe,renderer:pOe,styles:mOe}}),EOe=b(()=>{function e(){this.yy={}}var t=mt(function(e,t,r,n){for(r=r||{},n=e.length;n--;r[e[n]]=t);return r},"o"),r=[1,15],n=[1,7],i=[1,13],a=[1,14],s=[1,19],o=[1,16],l=[1,17],c=[1,18],h=[8,30],u=[8,10,21,28,29,30,31,39,43,46],d=[1,23],p=[1,24],g=[8,10,15,16,21,28,29,30,31,39,43,46],f=[8,10,15,16,21,27,28,29,30,31,39,43,46],m=[1,49],h={trace:mt(function(){},"trace"),yy:{},symbols_:{error:2,spaceLines:3,SPACELINE:4,NL:5,separator:6,SPACE:7,EOF:8,start:9,BLOCK_DIAGRAM_KEY:10,document:11,stop:12,statement:13,link:14,LINK:15,START_LINK:16,LINK_LABEL:17,STR:18,nodeStatement:19,columnsStatement:20,SPACE_BLOCK:21,blockStatement:22,classDefStatement:23,cssClassStatement:24,styleStatement:25,node:26,SIZE:27,COLUMNS:28,"id-block":29,end:30,NODE_ID:31,nodeShapeNLabel:32,dirList:33,DIR:34,NODE_DSTART:35,NODE_DEND:36,BLOCK_ARROW_START:37,BLOCK_ARROW_END:38,classDef:39,CLASSDEF_ID:40,CLASSDEF_STYLEOPTS:41,DEFAULT:42,class:43,CLASSENTITY_IDS:44,STYLECLASS:45,style:46,STYLE_ENTITY_IDS:47,STYLE_DEFINITION_DATA:48,$accept:0,$end:1},terminals_:{2:"error",4:"SPACELINE",5:"NL",7:"SPACE",8:"EOF",10:"BLOCK_DIAGRAM_KEY",15:"LINK",16:"START_LINK",17:"LINK_LABEL",18:"STR",21:"SPACE_BLOCK",27:"SIZE",28:"COLUMNS",29:"id-block",30:"end",31:"NODE_ID",34:"DIR",35:"NODE_DSTART",36:"NODE_DEND",37:"BLOCK_ARROW_START",38:"BLOCK_ARROW_END",39:"classDef",40:"CLASSDEF_ID",41:"CLASSDEF_STYLEOPTS",42:"DEFAULT",43:"class",44:"CLASSENTITY_IDS",45:"STYLECLASS",46:"style",47:"STYLE_ENTITY_IDS",48:"STYLE_DEFINITION_DATA"},productions_:[0,[3,1],[3,2],[3,2],[6,1],[6,1],[6,1],[9,3],[12,1],[12,1],[12,2],[12,2],[11,1],[11,2],[14,1],[14,4],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[19,3],[19,2],[19,1],[20,1],[22,4],[22,3],[26,1],[26,2],[33,1],[33,2],[32,3],[32,4],[23,3],[23,3],[24,3],[25,3]],performAction:mt(function(e,t,r,n,i,a,s){var o=a.length-1;switch(i){case 4:n.getLogger().debug("Rule: separator (NL) ");break;case 5:n.getLogger().debug("Rule: separator (Space) ");break;case 6:n.getLogger().debug("Rule: separator (EOF) ");break;case 7:n.getLogger().debug("Rule: hierarchy: ",a[o-1]),n.setHierarchy(a[o-1]);break;case 8:n.getLogger().debug("Stop NL ");break;case 9:n.getLogger().debug("Stop EOF ");break;case 10:n.getLogger().debug("Stop NL2 ");break;case 11:n.getLogger().debug("Stop EOF2 ");break;case 12:n.getLogger().debug("Rule: statement: ",a[o]),"number"==typeof a[o].length?this.$=a[o]:this.$=[a[o]];break;case 13:n.getLogger().debug("Rule: statement #2: ",a[o-1]),this.$=[a[o-1]].concat(a[o]);break;case 14:n.getLogger().debug("Rule: link: ",a[o],e),this.$={edgeTypeStr:a[o],label:""};break;case 15:n.getLogger().debug("Rule: LABEL link: ",a[o-3],a[o-1],a[o]),this.$={edgeTypeStr:a[o],label:a[o-1]};break;case 18:var l=parseInt(a[o]),c=n.generateId();this.$={id:c,type:"space",label:"",width:l,children:[]};break;case 23:n.getLogger().debug("Rule: (nodeStatement link node) ",a[o-2],a[o-1],a[o]," typestr: ",a[o-1].edgeTypeStr),c=n.edgeStrToEdgeData(a[o-1].edgeTypeStr),this.$=[{id:a[o-2].id,label:a[o-2].label,type:a[o-2].type,directions:a[o-2].directions},{id:a[o-2].id+"-"+a[o].id,start:a[o-2].id,end:a[o].id,label:a[o-1].label,type:"edge",directions:a[o].directions,arrowTypeEnd:c,arrowTypeStart:"arrow_open"},{id:a[o].id,label:a[o].label,type:n.typeStr2Type(a[o].typeStr),directions:a[o].directions}];break;case 24:n.getLogger().debug("Rule: nodeStatement (abc88 node size) ",a[o-1],a[o]),this.$={id:a[o-1].id,label:a[o-1].label,type:n.typeStr2Type(a[o-1].typeStr),directions:a[o-1].directions,widthInColumns:parseInt(a[o],10)};break;case 25:n.getLogger().debug("Rule: nodeStatement (node) ",a[o]),this.$={id:a[o].id,label:a[o].label,type:n.typeStr2Type(a[o].typeStr),directions:a[o].directions,widthInColumns:1};break;case 26:n.getLogger().debug("APA123",this||"na"),n.getLogger().debug("COLUMNS: ",a[o]),this.$={type:"column-setting",columns:"auto"===a[o]?-1:parseInt(a[o])};break;case 27:n.getLogger().debug("Rule: id-block statement : ",a[o-2],a[o-1]),n.generateId(),this.$={...a[o-2],type:"composite",children:a[o-1]};break;case 28:n.getLogger().debug("Rule: blockStatement : ",a[o-2],a[o-1],a[o]),l=n.generateId(),this.$={id:l,type:"composite",label:"",children:a[o-1]};break;case 29:n.getLogger().debug("Rule: node (NODE_ID separator): ",a[o]),this.$={id:a[o]};break;case 30:n.getLogger().debug("Rule: node (NODE_ID nodeShapeNLabel separator): ",a[o-1],a[o]),this.$={id:a[o-1],label:a[o].label,typeStr:a[o].typeStr,directions:a[o].directions};break;case 31:n.getLogger().debug("Rule: dirList: ",a[o]),this.$=[a[o]];break;case 32:n.getLogger().debug("Rule: dirList: ",a[o-1],a[o]),this.$=[a[o-1]].concat(a[o]);break;case 33:n.getLogger().debug("Rule: nodeShapeNLabel: ",a[o-2],a[o-1],a[o]),this.$={typeStr:a[o-2]+a[o],label:a[o-1]};break;case 34:n.getLogger().debug("Rule: BLOCK_ARROW nodeShapeNLabel: ",a[o-3],a[o-2]," #3:",a[o-1] Line truncated `},"styles")}),bOe={};PFe(bOe,{diagram:()=>wOe});var wOe,kOe,TOe,EOe=b(()=>{iOe(),aOe(),vOe(),xOe(),wOe={parser:rOe,db:eOe,renderer:gOe,styles:yOe}}),COe=b(()=>{function e(){this.yy={}}var t=mt(function(e,t,r,n){for(r=r||{},n=e.length;n--;r[e[n]]=t);return r},"o"),r=[1,15],n=[1,7],i=[1,13],a=[1,14],s=[1,19],o=[1,16],l=[1,17],c=[1,18],h=[8,30],u=[8,10,21,28,29,30,31,39,43,46],d=[1,23],p=[1,24],g=[8,10,15,16,21,28,29,30,31,39,43,46],f=[8,10,15,16,21,27,28,29,30,31,39,43,46],m=[1,49],h={trace:mt(function(){},"trace"),yy:{},symbols_:{error:2,spaceLines:3,SPACELINE:4,NL:5,separator:6,SPACE:7,EOF:8,start:9,BLOCK_DIAGRAM_KEY:10,document:11,stop:12,statement:13,link:14,LINK:15,START_LINK:16,LINK_LABEL:17,STR:18,nodeStatement:19,columnsStatement:20,SPACE_BLOCK:21,blockStatement:22,classDefStatement:23,cssClassStatement:24,styleStatement:25,node:26,SIZE:27,COLUMNS:28,"id-block":29,end:30,NODE_ID:31,nodeShapeNLabel:32,dirList:33,DIR:34,NODE_DSTART:35,NODE_DEND:36,BLOCK_ARROW_START:37,BLOCK_ARROW_END:38,classDef:39,CLASSDEF_ID:40,CLASSDEF_STYLEOPTS:41,DEFAULT:42,class:43,CLASSENTITY_IDS:44,STYLECLASS:45,style:46,STYLE_ENTITY_IDS:47,STYLE_DEFINITION_DATA:48,$accept:0,$end:1},terminals_:{2:"error",4:"SPACELINE",5:"NL",7:"SPACE",8:"EOF",10:"BLOCK_DIAGRAM_KEY",15:"LINK",16:"START_LINK",17:"LINK_LABEL",18:"STR",21:"SPACE_BLOCK",27:"SIZE",28:"COLUMNS",29:"id-block",30:"end",31:"NODE_ID",34:"DIR",35:"NODE_DSTART",36:"NODE_DEND",37:"BLOCK_ARROW_START",38:"BLOCK_ARROW_END",39:"classDef",40:"CLASSDEF_ID",41:"CLASSDEF_STYLEOPTS",42:"DEFAULT",43:"class",44:"CLASSENTITY_IDS",45:"STYLECLASS",46:"style",47:"STYLE_ENTITY_IDS",48:"STYLE_DEFINITION_DATA"},productions_:[0,[3,1],[3,2],[3,2],[6,1],[6,1],[6,1],[9,3],[12,1],[12,1],[12,2],[12,2],[11,1],[11,2],[14,1],[14,4],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[19,3],[19,2],[19,1],[20,1],[22,4],[22,3],[26,1],[26,2],[33,1],[33,2],[32,3],[32,4],[23,3],[23,3],[24,3],[25,3]],performAction:mt(function(e,t,r,n,i,a,s){var o=a.length-1;switch(i){case 4:n.getLogger().debug("Rule: separator (NL) ");break;case 5:n.getLogger().debug("Rule: separator (Space) ");break;case 6:n.getLogger().debug("Rule: separator (EOF) ");break;case 7:n.getLogger().debug("Rule: hierarchy: ",a[o-1]),n.setHierarchy(a[o-1]);break;case 8:n.getLogger().debug("Stop NL ");break;case 9:n.getLogger().debug("Stop EOF ");break;case 10:n.getLogger().debug("Stop NL2 ");break;case 11:n.getLogger().debug("Stop EOF2 ");break;case 12:n.getLogger().debug("Rule: statement: ",a[o]),"number"==typeof a[o].length?this.$=a[o]:this.$=[a[o]];break;case 13:n.getLogger().debug("Rule: statement #2: ",a[o-1]),this.$=[a[o-1]].concat(a[o]);break;case 14:n.getLogger().debug("Rule: link: ",a[o],e),this.$={edgeTypeStr:a[o],label:""};break;case 15:n.getLogger().debug("Rule: LABEL link: ",a[o-3],a[o-1],a[o]),this.$={edgeTypeStr:a[o],label:a[o-1]};break;case 18:var l=parseInt(a[o]),c=n.generateId();this.$={id:c,type:"space",label:"",width:l,children:[]};break;case 23:n.getLogger().debug("Rule: (nodeStatement link node) ",a[o-2],a[o-1],a[o]," typestr: ",a[o-1].edgeTypeStr),c=n.edgeStrToEdgeData(a[o-1].edgeTypeStr),this.$=[{id:a[o-2].id,label:a[o-2].label,type:a[o-2].type,directions:a[o-2].directions},{id:a[o-2].id+"-"+a[o].id,start:a[o-2].id,end:a[o].id,label:a[o-1].label,type:"edge",directions:a[o].directions,arrowTypeEnd:c,arrowTypeStart:"arrow_open"},{id:a[o].id,label:a[o].label,type:n.typeStr2Type(a[o].typeStr),directions:a[o].directions}];break;case 24:n.getLogger().debug("Rule: nodeStatement (abc88 node size) ",a[o-1],a[o]),this.$={id:a[o-1].id,label:a[o-1].label,type:n.typeStr2Type(a[o-1].typeStr),directions:a[o-1].directions,widthInColumns:parseInt(a[o],10)};break;case 25:n.getLogger().debug("Rule: nodeStatement (node) ",a[o]),this.$={id:a[o].id,label:a[o].label,type:n.typeStr2Type(a[o].typeStr),directions:a[o].directions,widthInColumns:1};break;case 26:n.getLogger().debug("APA123",this||"na"),n.getLogger().debug("COLUMNS: ",a[o]),this.$={type:"column-setting",columns:"auto"===a[o]?-1:parseInt(a[o])};break;case 27:n.getLogger().debug("Rule: id-block statement : ",a[o-2],a[o-1]),n.generateId(),this.$={...a[o-2],type:"composite",children:a[o-1]};break;case 28:n.getLogger().debug("Rule: blockStatement : ",a[o-2],a[o-1],a[o]),l=n.generateId(),this.$={id:l,type:"composite",label:"",children:a[o-1]};break;case 29:n.getLogger().debug("Rule: node (NODE_ID separator): ",a[o]),this.$={id:a[o]};break;case 30:n.getLogger().debug("Rule: node (NODE_ID nodeShapeNLabel separator): ",a[o-1],a[o]),this.$={id:a[o-1],label:a[o].label,typeStr:a[o].typeStr,directions:a[o].directions};break;case 31:n.getLogger().debug("Rule: dirList: ",a[o]),this.$=[a[o]];break;case 32:n.getLogger().debug("Rule: dirList: ",a[o-1],a[o]),this.$=[a[o-1]].concat(a[o]);break;case 33:n.getLogger().debug("Rule: nodeShapeNLabel: ",a[o-2],a[o-1],a[o]),this.$={typeStr:a[o-2]+a[o],label:a[o-1]};break;case 34:n.getLogger().debug("Rule: BLOCK_ARROW nodeShapeNLabel: ",a[o-3],a[o-2]," #3:",a[o-1] Line truncated
`+g.showPosition()+` `+g.showPosition()+`
Expecting `+A.join(", ")+", got '"+(this.terminals_[x]||x)+"'":"Parse error on line "+(c+1)+": Unexpected "+(x==d?"end of input":"'"+(this.terminals_[x]||x)+"'"),this.parseError(S,{text:g.match,token:this.terminals_[x]||x,line:g.yylineno,loc:m,expected:A})}if(k[0]instanceof Array&&1<k.length)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+x);switch(k[0]){case 1:n.push(x),a.push(g.yytext),s.push(g.yylloc),n.push(k[1]),x=null,b?(x=b,b=null):(h=g.yyleng,l=g.yytext,c=g.yylineno,m=g.yylloc,0<u&&u--);break;case 2:if(E=this.productions_[k[1]][1],_.$=a[a.length-E],_._$={first_line:s[s.length-(E||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(E||1)].first_column,last_column:s[s.length-1].last_column},y&&(_._$.range=[s[s.length-(E||1)].range[0],s[s.length-1].range[1]]),typeof(C=this.performAction.apply(_,[l,h,c,f.yy,k[1],a,s].concat(p)))<"u")return C;E&&(n=n.slice(0,-1*E*2),a=a.slice(0,-1*E),s=s.slice(0,-1*E)),n.push(this.productions_[k[1]][0]),a.push(_.$),s.push(_._$),C=o[n[n.length-2]][n[n.length-1]],n.push(C);break;case 3:return!0}}return!0},"parse")},r={EOF:1,parseError:mt(function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},"parseError"),setInput:mt(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:mt(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},"input"),unput:mt(function(e){var t=e.length,r=e.split(/(?:\r\n?|\n)/g),e=(this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t,this.match.split(/(?:\r\n?|\n)/g)),n=(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),r.length-1&&(this.yylineno-=r.length-1),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:r?(r.length===e.length?this.yylloc.first_column:0)+e[e.length-r.length].length-r[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[n[0],n[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},"unput"),more:mt(function(){return this._more=!0,this},"more"),reject:mt(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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). Expecting `+A.join(", ")+", got '"+(this.terminals_[x]||x)+"'":"Parse error on line "+(c+1)+": Unexpected "+(x==d?"end of input":"'"+(this.terminals_[x]||x)+"'"),this.parseError(_,{text:g.match,token:this.terminals_[x]||x,line:g.yylineno,loc:m,expected:A})}if(k[0]instanceof Array&&1<k.length)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+x);switch(k[0]){case 1:n.push(x),a.push(g.yytext),s.push(g.yylloc),n.push(k[1]),x=null,b?(x=b,b=null):(h=g.yyleng,l=g.yytext,c=g.yylineno,m=g.yylloc,0<u&&u--);break;case 2:if(E=this.productions_[k[1]][1],S.$=a[a.length-E],S._$={first_line:s[s.length-(E||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(E||1)].first_column,last_column:s[s.length-1].last_column},y&&(S._$.range=[s[s.length-(E||1)].range[0],s[s.length-1].range[1]]),typeof(C=this.performAction.apply(S,[l,h,c,f.yy,k[1],a,s].concat(p)))<"u")return C;E&&(n=n.slice(0,-1*E*2),a=a.slice(0,-1*E),s=s.slice(0,-1*E)),n.push(this.productions_[k[1]][0]),a.push(S.$),s.push(S._$),C=o[n[n.length-2]][n[n.length-1]],n.push(C);break;case 3:return!0}}return!0},"parse")},r={EOF:1,parseError:mt(function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},"parseError"),setInput:mt(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:mt(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},"input"),unput:mt(function(e){var t=e.length,r=e.split(/(?:\r\n?|\n)/g),e=(this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t,this.match.split(/(?:\r\n?|\n)/g)),n=(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),r.length-1&&(this.yylineno-=r.length-1),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:r?(r.length===e.length?this.yylloc.first_column:0)+e[e.length-r.length].length-r[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[n[0],n[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},"unput"),more:mt(function(){return this._more=!0,this},"more"),reject:mt(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:mt(function(e){this.unput(this.match.slice(e))},"less"),pastInput:mt(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(20<e.length?"...":"")+e.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:mt(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(20<e.length?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:mt(function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+` `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:mt(function(e){this.unput(this.match.slice(e))},"less"),pastInput:mt(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(20<e.length?"...":"")+e.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:mt(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(20<e.length?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:mt(function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+`
`+t+"^"},"showPosition"),test_match:mt(function(e,t){var r,n;if(this.options.backtrack_lexer&&(n={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)&&(n.yylloc.range=this.yylloc.range.slice(0)),(r=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],r=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),r)return r;if(this._backtrack)for(var i in n)this[i]=n[i];return!1},"test_match"),next:mt(function(){if(this.done)return this.EOF;var e,t,r,n;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;a<i.length;a++)if((r=this._input.match(this.rules[i[a]]))&&(!t||r[0].length>t[0].length)){if(t=r,n=a,this.options.backtrack_lexer){if(!1!==(e=this.test_match(r,i[a])))return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,i[n]))&&e:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. `+t+"^"},"showPosition"),test_match:mt(function(e,t){var r,n;if(this.options.backtrack_lexer&&(n={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)&&(n.yylloc.range=this.yylloc.range.slice(0)),(r=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],r=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),r)return r;if(this._backtrack)for(var i in n)this[i]=n[i];return!1},"test_match"),next:mt(function(){if(this.done)return this.EOF;var e,t,r,n;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;a<i.length;a++)if((r=this._input.match(this.rules[i[a]]))&&(!t||r[0].length>t[0].length)){if(t=r,n=a,this.options.backtrack_lexer){if(!1!==(e=this.test_match(r,i[a])))return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,i[n]))&&e:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:mt(function(){return this.next()||this.lex()},"lex"),begin:mt(function(e){this.conditionStack.push(e)},"begin"),popState:mt(function(){return 0<this.conditionStack.length-1?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:mt(function(){return(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]]:this.conditions.INITIAL).rules},"_currentRules"),topState:mt(function(e){return 0<=(e=this.conditionStack.length-1-Math.abs(e||0))?this.conditionStack[e]:"INITIAL"},"topState"),pushState:mt(function(e){this.begin(e)},"pushState"),stateStackSize:mt(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:mt(function(e,t,r,n){switch(r){case 0:return e.getLogger().debug("Found block-beta"),10;case 1:return e.getLogger().debug("Found id-block"),29;case 2:return e.getLogger().debug("Found block"),10;case 3:e.getLogger().debug(".",t.yytext);break;case 4:e.getLogger().debug("_",t.yytext);break;case 5:return 5;case 6:return t.yytext=-1,28;case 7:return t.yytext=t.yytext.replace(/columns\s+/,""),e.getLogger().debug("COLUMNS (LEX)",t.yytext),28;case 8:this.pushState("md_string");break;case 9:return"MD_STR";case 10:this.popState();break;case 11:this.pushState("string");break;case 12:e.getLogger().debug("LEX: POPPING STR:",t.yytext),this.popState();break;case 13:return e.getLogger().debug("LEX: STR end:",t.yytext),"STR";case 14:return t.yytext=t.yytext.replace(/space\:/,""),e.getLogger().debug("SPACE NUM (LEX)",t.yytext),21;case 15:return t.yytext="1",e.getLogger().debug("COLUMNS (LEX)",t.yytext),21;case 16:return 42;case 17:return"LINKSTYLE";case 18:return"INTERPOLATE";case 19:return this.pushState("CLASSDEF"),39;case 20:return this.popState(),this.pushState("CLASSDEFID"),"DEFAULT_CLASSDEF_ID";case 21:return this.popState(),this.pushState("CLASSDEFID"),40;case 22:return this.popState(),41;case 23:return this.pushState("CLASS"),43;case 24:return this.popState(),this.pushState("CLASS_STYLE"),44;case 25:return this.popState(),45;case 26:return this.pushState("STYLE_STMNT"),46;case 27:return this.popState(),this.pushState("STYLE_DEFINITION"),47;case 28:return this.popState(),48;case 29:return this.pushState("acc_title"),"acc_title";case 30:return this.popState(),"acc_title_value";case 31:return this.pushState("acc_descr"),"acc_descr";case 32:return this.popState(),"acc_descr_value";case 33:this.pushState("acc_descr_multiline");break;case 34:this.popState();break;case 35:return"acc_descr_multiline_value";case 36:return 30;case 37:case 38:return this.popState(),e.getLogger().debug("Lex: (("),"NODE_DEND";case 39:return this.popState(),e.getLogger().debug("Lex: ))"),"NODE_DEND";case 40:case 41:return this.popState(),e.getLogger().debug("Lex: (("),"NODE_DEND";case 42:return this.popState(),e.getLogger().debug("Lex: (-"),"NODE_DEND";case 43:return this.popState(),e.getLogger().debug("Lex: -)"),"NODE_DEND";case 44:return this.popState(),e.getLogger().debug("Lex: (("),"NODE_DEND";case 45:return this.popState(),e.getLogger().debug("Lex: ]]"),"NODE_DEND";case 46:return this.popState(),e.getLogger().debug("Lex: ("),"NODE_DEND";case 47:return this.popState(),e.getLogger().debug("Lex: ])"),"NODE_DEND";case 48:case 49:return this.popState(),e.getLogger().debug("Lex: /]"),"NODE_DEND";case 50:return this.popState(),e.getLogger().debug("Lex: )]"),"NODE_DEND";case 51:return this.popState(),e.getLogger().debug("Lex: )"),"NODE_DEND";case 52:return this.popState(),e.getLogger().debug("Lex: ]>"),"NODE_DEND";case 53:return this.popState(),e.getLogger().debug("Lex: ]"),"NODE_DEND";case 54:return e.getLogger().debug("Lexa: -)"),this.pushState("NODE"),35;case 55:return e.getLogger().debug("Lexa: (-"),this.pushState("NODE"),35;case 56:return e.getLogger().debug("Lexa: ))"),this.pushState("NODE"),35;case 57:return e.getLogger().debug("Lexa: )"),this.pushState("NODE"),35;case 58:return e.getLogger().debug("Lex: ((("),this.pushState("NODE"),35;case 59:case 60:case 61:return e.getLogger().debug("Lexa: )"),this.pushState("NODE"),35;case 62:return e.getLogger().debug("Lexc: >"),this.pushState("NODE"),35;case 63:return e.getLogger().debug("Lexa: (["),this.pushState("NODE"),35;case 64:return e.getLogger().debug("Lexa: )"),this.pushState("NODE"),35;case 65:case 66:case 67:case 68:case 69:case 70:case 71:return this.pushState("NODE"),35;case 72:return e.getLogger().debug("Lexa: ["),this.pushState("NODE"),35;case 73:return this.pushState("BLOCK_ARROW"),e.getLogger().debug("LEX ARR START"),37;case 74:return e.getLogger().debug("Lex: NODE_ID",t.yytext),31;case 75:return e.getLogger().debug("Lex: EOF",t.yytext),8;case 76:case 77:this.pushState("md_string");break;case 78:return"NODE_DESCR";case 79:this.popState();break;case 80:e.getLogger().debug("Lex: Starting string"),this.pushState("string");break;case 81:e.getLogger().debug("LEX ARR: Starting st Line truncated `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:mt(function(){return this.next()||this.lex()},"lex"),begin:mt(function(e){this.conditionStack.push(e)},"begin"),popState:mt(function(){return 0<this.conditionStack.length-1?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:mt(function(){return(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]]:this.conditions.INITIAL).rules},"_currentRules"),topState:mt(function(e){return 0<=(e=this.conditionStack.length-1-Math.abs(e||0))?this.conditionStack[e]:"INITIAL"},"topState"),pushState:mt(function(e){this.begin(e)},"pushState"),stateStackSize:mt(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:mt(function(e,t,r,n){switch(r){case 0:return e.getLogger().debug("Found block-beta"),10;case 1:return e.getLogger().debug("Found id-block"),29;case 2:return e.getLogger().debug("Found block"),10;case 3:e.getLogger().debug(".",t.yytext);break;case 4:e.getLogger().debug("_",t.yytext);break;case 5:return 5;case 6:return t.yytext=-1,28;case 7:return t.yytext=t.yytext.replace(/columns\s+/,""),e.getLogger().debug("COLUMNS (LEX)",t.yytext),28;case 8:this.pushState("md_string");break;case 9:return"MD_STR";case 10:this.popState();break;case 11:this.pushState("string");break;case 12:e.getLogger().debug("LEX: POPPING STR:",t.yytext),this.popState();break;case 13:return e.getLogger().debug("LEX: STR end:",t.yytext),"STR";case 14:return t.yytext=t.yytext.replace(/space\:/,""),e.getLogger().debug("SPACE NUM (LEX)",t.yytext),21;case 15:return t.yytext="1",e.getLogger().debug("COLUMNS (LEX)",t.yytext),21;case 16:return 42;case 17:return"LINKSTYLE";case 18:return"INTERPOLATE";case 19:return this.pushState("CLASSDEF"),39;case 20:return this.popState(),this.pushState("CLASSDEFID"),"DEFAULT_CLASSDEF_ID";case 21:return this.popState(),this.pushState("CLASSDEFID"),40;case 22:return this.popState(),41;case 23:return this.pushState("CLASS"),43;case 24:return this.popState(),this.pushState("CLASS_STYLE"),44;case 25:return this.popState(),45;case 26:return this.pushState("STYLE_STMNT"),46;case 27:return this.popState(),this.pushState("STYLE_DEFINITION"),47;case 28:return this.popState(),48;case 29:return this.pushState("acc_title"),"acc_title";case 30:return this.popState(),"acc_title_value";case 31:return this.pushState("acc_descr"),"acc_descr";case 32:return this.popState(),"acc_descr_value";case 33:this.pushState("acc_descr_multiline");break;case 34:this.popState();break;case 35:return"acc_descr_multiline_value";case 36:return 30;case 37:case 38:return this.popState(),e.getLogger().debug("Lex: (("),"NODE_DEND";case 39:return this.popState(),e.getLogger().debug("Lex: ))"),"NODE_DEND";case 40:case 41:return this.popState(),e.getLogger().debug("Lex: (("),"NODE_DEND";case 42:return this.popState(),e.getLogger().debug("Lex: (-"),"NODE_DEND";case 43:return this.popState(),e.getLogger().debug("Lex: -)"),"NODE_DEND";case 44:return this.popState(),e.getLogger().debug("Lex: (("),"NODE_DEND";case 45:return this.popState(),e.getLogger().debug("Lex: ]]"),"NODE_DEND";case 46:return this.popState(),e.getLogger().debug("Lex: ("),"NODE_DEND";case 47:return this.popState(),e.getLogger().debug("Lex: ])"),"NODE_DEND";case 48:case 49:return this.popState(),e.getLogger().debug("Lex: /]"),"NODE_DEND";case 50:return this.popState(),e.getLogger().debug("Lex: )]"),"NODE_DEND";case 51:return this.popState(),e.getLogger().debug("Lex: )"),"NODE_DEND";case 52:return this.popState(),e.getLogger().debug("Lex: ]>"),"NODE_DEND";case 53:return this.popState(),e.getLogger().debug("Lex: ]"),"NODE_DEND";case 54:return e.getLogger().debug("Lexa: -)"),this.pushState("NODE"),35;case 55:return e.getLogger().debug("Lexa: (-"),this.pushState("NODE"),35;case 56:return e.getLogger().debug("Lexa: ))"),this.pushState("NODE"),35;case 57:return e.getLogger().debug("Lexa: )"),this.pushState("NODE"),35;case 58:return e.getLogger().debug("Lex: ((("),this.pushState("NODE"),35;case 59:case 60:case 61:return e.getLogger().debug("Lexa: )"),this.pushState("NODE"),35;case 62:return e.getLogger().debug("Lexc: >"),this.pushState("NODE"),35;case 63:return e.getLogger().debug("Lexa: (["),this.pushState("NODE"),35;case 64:return e.getLogger().debug("Lexa: )"),this.pushState("NODE"),35;case 65:case 66:case 67:case 68:case 69:case 70:case 71:return this.pushState("NODE"),35;case 72:return e.getLogger().debug("Lexa: ["),this.pushState("NODE"),35;case 73:return this.pushState("BLOCK_ARROW"),e.getLogger().debug("LEX ARR START"),37;case 74:return e.getLogger().debug("Lex: NODE_ID",t.yytext),31;case 75:return e.getLogger().debug("Lex: EOF",t.yytext),8;case 76:case 77:this.pushState("md_string");break;case 78:return"NODE_DESCR";case 79:this.popState();break;case 80:e.getLogger().debug("Lex: Starting string"),this.pushState("string");break;case 81:e.getLogger().debug("LEX ARR: Starting st Line truncated
font-family: ${e.fontFamily}; font-family: ${e.fontFamily};
color: ${e.nodeTextColor||e.textColor}; color: ${e.nodeTextColor||e.textColor};
} }
@@ -2652,14 +2652,14 @@ Expecting `+A.join(", ")+", got '"+(this.terminals_[x]||x)+"'":"Parse error on l
/* For html labels only */ /* For html labels only */
.labelBkg { .labelBkg {
background-color: ${JOe(e.edgeLabelBackground,.5)}; background-color: ${ePe(e.edgeLabelBackground,.5)};
// background-color: // background-color:
} }
.node .cluster { .node .cluster {
// fill: ${JOe(e.mainBkg,.5)}; // fill: ${ePe(e.mainBkg,.5)};
fill: ${JOe(e.clusterBkg,.5)}; fill: ${ePe(e.clusterBkg,.5)};
stroke: ${JOe(e.clusterBorder,.2)}; stroke: ${ePe(e.clusterBorder,.2)};
box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px; box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;
stroke-width: 1px; stroke-width: 1px;
} }
@@ -2695,10 +2695,10 @@ Expecting `+A.join(", ")+", got '"+(this.terminals_[x]||x)+"'":"Parse error on l
fill: ${e.textColor}; fill: ${e.textColor};
} }
${Hhe()} ${Hhe()}
`,"getStyles"),tPe=ePe}),mPe=b(()=>{e(),rPe=mt((t,e,r,n)=>{e.forEach(e=>{dPe[e](t,r,n)})},"insertMarkers"),nPe=mt((e,t,r)=>{D.trace("Making markers for ",r),e.append("defs").append("marker").attr("id",r+"_"+t+"-extensionStart").attr("class","marker extension "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-extensionEnd").attr("class","marker extension "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z")},"extension"),iPe=mt((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-compositionStart").attr("class","marker composition "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-compositionEnd").attr("class","marker composition "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"composition"),aPe=mt((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-aggregationStart").attr("class","marker aggregation "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-aggregationEnd").attr("class","marker aggregation "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"aggregation"),sPe=mt((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-dependencyStart").attr("class","marker dependency "+t).attr("refX",6).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-dependencyEnd").attr("class","marker dependency "+t).attr("refX",13).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},"dependency"),oPe=mt((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-lollipopStart").attr("class","marker lollipop "+t).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),e.append("defs").append("marker").attr("id",r+"_"+t+"-lollipopEnd").attr("class","marker lollipop "+t).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6)},"lollipop"),lPe=mt((e,t,r)=>{e.append("marker").attr("id",r+"_"+t+"-pointEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",6).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),e.append("marker").attr("id",r+"_"+t+"-pointStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",4.5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 5 L 10 10 L 10 0 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},"point"),cPe=mt((e,t,r)=>{e.append("marker").attr("id",r+"_"+t+"-circleEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",11).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),e.append("marker").attr("id",r+"_"+t+"-circleStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",-1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},"circle"),hPe=mt((e,t,r)=>{e.append("marker").attr("id",r+"_"+t+"-crossEnd").attr("class","marker cross "+t).attr("viewBox","0 0 11 11").attr("refX",12).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0" Line truncated `,"getStyles"),rPe=tPe}),yPe=b(()=>{e(),nPe=mt((t,e,r,n)=>{e.forEach(e=>{pPe[e](t,r,n)})},"insertMarkers"),iPe=mt((e,t,r)=>{D.trace("Making markers for ",r),e.append("defs").append("marker").attr("id",r+"_"+t+"-extensionStart").attr("class","marker extension "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-extensionEnd").attr("class","marker extension "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z")},"extension"),aPe=mt((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-compositionStart").attr("class","marker composition "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-compositionEnd").attr("class","marker composition "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"composition"),sPe=mt((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-aggregationStart").attr("class","marker aggregation "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-aggregationEnd").attr("class","marker aggregation "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"aggregation"),oPe=mt((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-dependencyStart").attr("class","marker dependency "+t).attr("refX",6).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-dependencyEnd").attr("class","marker dependency "+t).attr("refX",13).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},"dependency"),lPe=mt((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-lollipopStart").attr("class","marker lollipop "+t).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),e.append("defs").append("marker").attr("id",r+"_"+t+"-lollipopEnd").attr("class","marker lollipop "+t).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6)},"lollipop"),cPe=mt((e,t,r)=>{e.append("marker").attr("id",r+"_"+t+"-pointEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",6).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),e.append("marker").attr("id",r+"_"+t+"-pointStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",4.5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 5 L 10 10 L 10 0 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},"point"),hPe=mt((e,t,r)=>{e.append("marker").attr("id",r+"_"+t+"-circleEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",11).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),e.append("marker").attr("id",r+"_"+t+"-circleStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",-1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},"circle"),uPe=mt((e,t,r)=>{e.append("marker").attr("id",r+"_"+t+"-crossEnd").attr("class","marker cross "+t).attr("viewBox","0 0 11 11").attr("refX",12).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0" Line truncated
outsidePoint: ${JSON.stringify(n)} outsidePoint: ${JSON.stringify(n)}
insidePoint : ${JSON.stringify(i)} insidePoint : ${JSON.stringify(i)}
node : x:${e.x} y:${e.y} w:${e.width} h:`+e.height);let a=e.x,t=e.y,r=Math.abs(a-i.x),s=e.width/2,o=i.x<n.x?s-r:s+r,l=e.height/2,c=Math.abs(n.y-i.y),h=Math.abs(n.x-i.x),u;if(Math.abs(t-n.y)*s>Math.abs(a-n.x)*l)return e=i.y<n.y?n.y-l-t:t-l-n.y,o=h*e/c,u={x:i.x<n.x?i.x+o:i.x-h+o,y:i.y<n.y?i.y+c-e:i.y-c+e},0===o&&(u.x=n.x,u.y=n.y),0===h&&(u.x=n.x),0===c&&(u.y=n.y),D.debug(`abc89 topp/bott calc, Q ${c}, q ${e}, R ${h}, r `+o,u),u;{let e=c*(o=i.x<n.x?n.x-s-a:a-s-n.x)/h,t=i.x<n.x?i.x+h-o:i.x-h+o,r=i.y<n.y?i.y+e:i.y-e;return D.debug(`sides calc abc89, Q ${c}, q ${e}, R ${h}, r `+o,{_x:t,_y:r}),0===o&&(t=n.x,r=n.y),0===h&&(t=n.x),0===c&&(r=n.y),{x:t,y:r}}},"intersection"),GPe=mt((e,n)=>{D.debug("abc88 cutPathAtIntersect",e,n);let i=[],a=e[0],s=!1;return e.forEach(e=>{if(FPe(n,e)||s)a=e,s||i.push(e);else{let t=zPe(n,a,e),r=!1;i.forEach(e=>{r=r||e.x===t.x&&e.y===t.y}),i.some(e=>e.x===t.x&&e.y===t.y)||i.push(t),s=!0}}),i},"cutPathAtIntersect"),UPe=mt(function(e,t,r,n,i,a,s){let o=r.points,l=(D.debug("abc88 InsertEdge: edge=",r,"e=",t),!1),c=a.node(t.v),h=a.node(t.w),u=(h?.intersect&&c?.intersect&&((o=o.slice(1,r.points.length-1)).unshift(c.intersect(o[0])),o.push(h.intersect(o[o.length-1]))),r.toCluster&&(D.debug("to cluster abc88",n[r.toCluster]),o=GPe(r.points,n[r.toCluster].node),l=!0),r.fromCluster&&(D.debug("from cluster abc88",n[r.fromCluster]),o=GPe(o.reverse(),n[r.fromCluster].node).reverse(),l=!0),o.filter(e=>!Number.isNaN(e.y))),d=v3,{x:p,y:g}=(!r.curve||"graph"!==i&&"flowchart"!==i||(d=r.curve),uO(r)),f=r3().x(p).y(g).curve(d),m;switch(r.thickness){case"normal":m="edge-thickness-normal";break;case"thick":case"invisible":m="edge-thickness-thick";break;default:m=""}switch(r.pattern){case"solid":m+=" edge-pattern-solid";break;case"dotted":m+=" edge-pattern-dotted";break;case"dashed":m+=" edge-pattern-dashed"}let y=e.append("path").attr("d",f(u)).attr("id",r.id).attr("class"," "+m+(r.classes?" "+r.classes:"")).attr("style",r.style),v="";return(O().flowchart.arrowMarkerAbsolute||O().state.arrowMarkerAbsolute)&&(v=gc(!0)),LPe(y,r,v,s,i),a={},l&&(a.updatedPath=o),a.originalPath=r.points,a},"insertEdge")}),WPe=b(()=>{qPe=mt(e=>{var t,r=new Set;for(t of e)switch(t){case"x":r.add("right"),r.add("left");break;case"y":r.add("up"),r.add("down");break;default:r.add(t)}return r},"expandAndDeduplicateDirections"),jPe=mt((e,t,r)=>{var e=qPe(e),n=t.height+2*r.padding,i=n/2,t=t.width+2*i+r.padding,r=r.padding/2;return e.has("right")&&e.has("left")&&e.has("up")&&e.has("down")?[{x:0,y:0},{x:i,y:0},{x:t/2,y:2*r},{x:t-i,y:0},{x:t,y:0},{x:t,y:-n/3},{x:t+2*r,y:-n/2},{x:t,y:-2*n/3},{x:t,y:-n},{x:t-i,y:-n},{x:t/2,y:-n-2*r},{x:i,y:-n},{x:0,y:-n},{x:0,y:-2*n/3},{x:-2*r,y:-n/2},{x:0,y:-n/3}]:e.has("right")&&e.has("left")&&e.has("up")?[{x:i,y:0},{x:t-i,y:0},{x:t,y:-n/2},{x:t-i,y:-n},{x:i,y:-n},{x:0,y:-n/2}]:e.has("right")&&e.has("left")&&e.has("down")?[{x:0,y:0},{x:i,y:-n},{x:t-i,y:-n},{x:t,y:0}]:e.has("right")&&e.has("up")&&e.has("down")?[{x:0,y:0},{x:t,y:-i},{x:t,y:i-n},{x:0,y:-n}]:e.has("left")&&e.has("up")&&e.has("down")?[{x:t,y:0},{x:0,y:-i},{x:0,y:i-n},{x:t,y:-n}]:e.has("right")&&e.has("left")?[{x:i,y:0},{x:i,y:-r},{x:t-i,y:-r},{x:t-i,y:0},{x:t,y:-n/2},{x:t-i,y:-n},{x:t-i,y:r-n},{x:i,y:r-n},{x:i,y:-n},{x:0,y:-n/2}]:e.has("up")&&e.has("down")?[{x:t/2,y:0},{x:0,y:-r},{x:i,y:-r},{x:i,y:r-n},{x:0,y:r-n},{x:t/2,y:-n},{x:t,y:r-n},{x:t-i,y:r-n},{x:t-i,y:-r},{x:t,y:-r}]:e.has("right")&&e.has("up")?[{x:0,y:0},{x:t,y:-i},{x:0,y:-n}]:e.has("right")&&e.has("down")?[{x:0,y:0},{x:t,y:0},{x:0,y:-n}]:e.has("left")&&e.has("up")?[{x:t,y:0},{x:0,y:-i},{x:t,y:-n}]:e.has("left")&&e.has("down")?[{x:t,y:0},{x:0,y:0},{x:t,y:-n}]:e.has("right")?[{x:i,y:-r},{x:i,y:-r},{x:t-i,y:-r},{x:t-i,y:0},{x:t,y:-n/2},{x:t-i,y:-n},{x:t-i,y:r-n},{x:i,y:r-n},{x:i,y:r-n}]:e.has("left")?[{x:i,y:0},{x:i,y:-r},{x:t-i,y:-r},{x:t-i,y:r-n},{x:i,y:r-n},{x:i,y:-n},{x:0,y:-n/2}]:e.has("up")?[{x:i,y:-r},{x:i,y:r-n},{x:0,y:r-n},{x:t/2,y:-n},{x:t,y:r-n},{x:t-i,y:r-n},{x:t-i,y:-r}]:e.has("down")?[{x:t/2,y:0},{x:0,y:-r},{x:i,y:-r},{x:i,y:r-n},{x:t-i,y:r-n},{x:t-i,y:-r},{x:t,y:-r}]:[{x:0,y:0}]},"getArrowPoints")});function HPe(e,t){return e.intersect(t)}var VPe,XPe=b(()=>{mt(HPe,"intersectNode"),VPe=HPe});function KPe(e,t,r,n){var i=e.x,e=e.y,a=i-n.x,s=e-n.y,o=Math.sqrt(t*t*s*s+r*r*a*a),a=Math.abs(t*r*a/o),t=(n.x<i&&(a=-a),Math.abs(t*r*s/o));return{x:i+a,y:e+(t=n.y<e?-t:t)}}var ZPe,QPe=b(()=>{mt(KPe,"intersectEllipse"),ZPe=KPe});function JPe(e,t,r){return ZPe(e,t,t,r)}var eBe,tBe=b(()=>{QPe(),mt(JPe,"intersectCircle"),eBe=JPe});function rBe(e,t,r,n){var i,a,s,o,l=t.y-e.y,c=e.x-t.x,h=t.x*e.y-e.x*t.y,u=l*r.x+c*r.y+h,d=l*n.x+c*n.y+h;if(!(0!=u&&0!=d&&0<u*d||(u=(i=n.y-r.y)*e.x+(a=r.x-n.x)*e.y+(s=n.x*r.y-r.x*n.y),d=i*t.x+a*t.y+s,0!=u&&0!==d&&0<u*d)||0==(o=l*a-i*c)))return e=Math.abs(o/2),{x:(r=c*s-a*h)<0?(r-e)/o:(r+e)/o,y:(r=i*h-l*s)<0?(r-e)/o:(r+e)/o}}function nBe(e,t){return 0<e*t}var iBe,aBe=b(()=>{mt(rBe,"intersectLine"),mt(nBe,"sameSign"),iBe=rBe});function sBe(e,t,n){var r=e.x, Line truncated node : x:${e.x} y:${e.y} w:${e.width} h:`+e.height);let a=e.x,t=e.y,r=Math.abs(a-i.x),s=e.width/2,o=i.x<n.x?s-r:s+r,l=e.height/2,c=Math.abs(n.y-i.y),h=Math.abs(n.x-i.x),u;if(Math.abs(t-n.y)*s>Math.abs(a-n.x)*l)return e=i.y<n.y?n.y-l-t:t-l-n.y,o=h*e/c,u={x:i.x<n.x?i.x+o:i.x-h+o,y:i.y<n.y?i.y+c-e:i.y-c+e},0===o&&(u.x=n.x,u.y=n.y),0===h&&(u.x=n.x),0===c&&(u.y=n.y),D.debug(`abc89 topp/bott calc, Q ${c}, q ${e}, R ${h}, r `+o,u),u;{let e=c*(o=i.x<n.x?n.x-s-a:a-s-n.x)/h,t=i.x<n.x?i.x+h-o:i.x-h+o,r=i.y<n.y?i.y+e:i.y-e;return D.debug(`sides calc abc89, Q ${c}, q ${e}, R ${h}, r `+o,{_x:t,_y:r}),0===o&&(t=n.x,r=n.y),0===h&&(t=n.x),0===c&&(r=n.y),{x:t,y:r}}},"intersection"),UPe=mt((e,n)=>{D.debug("abc88 cutPathAtIntersect",e,n);let i=[],a=e[0],s=!1;return e.forEach(e=>{if(zPe(n,e)||s)a=e,s||i.push(e);else{let t=GPe(n,a,e),r=!1;i.forEach(e=>{r=r||e.x===t.x&&e.y===t.y}),i.some(e=>e.x===t.x&&e.y===t.y)||i.push(t),s=!0}}),i},"cutPathAtIntersect"),qPe=mt(function(e,t,r,n,i,a,s){let o=r.points,l=(D.debug("abc88 InsertEdge: edge=",r,"e=",t),!1),c=a.node(t.v),h=a.node(t.w),u=(h?.intersect&&c?.intersect&&((o=o.slice(1,r.points.length-1)).unshift(c.intersect(o[0])),o.push(h.intersect(o[o.length-1]))),r.toCluster&&(D.debug("to cluster abc88",n[r.toCluster]),o=UPe(r.points,n[r.toCluster].node),l=!0),r.fromCluster&&(D.debug("from cluster abc88",n[r.fromCluster]),o=UPe(o.reverse(),n[r.fromCluster].node).reverse(),l=!0),o.filter(e=>!Number.isNaN(e.y))),d=v3,{x:p,y:g}=(!r.curve||"graph"!==i&&"flowchart"!==i||(d=r.curve),uO(r)),f=r3().x(p).y(g).curve(d),m;switch(r.thickness){case"normal":m="edge-thickness-normal";break;case"thick":case"invisible":m="edge-thickness-thick";break;default:m=""}switch(r.pattern){case"solid":m+=" edge-pattern-solid";break;case"dotted":m+=" edge-pattern-dotted";break;case"dashed":m+=" edge-pattern-dashed"}let y=e.append("path").attr("d",f(u)).attr("id",r.id).attr("class"," "+m+(r.classes?" "+r.classes:"")).attr("style",r.style),v="";return(O().flowchart.arrowMarkerAbsolute||O().state.arrowMarkerAbsolute)&&(v=gc(!0)),NPe(y,r,v,s,i),a={},l&&(a.updatedPath=o),a.originalPath=r.points,a},"insertEdge")}),HPe=b(()=>{jPe=mt(e=>{var t,r=new Set;for(t of e)switch(t){case"x":r.add("right"),r.add("left");break;case"y":r.add("up"),r.add("down");break;default:r.add(t)}return r},"expandAndDeduplicateDirections"),YPe=mt((e,t,r)=>{var e=jPe(e),n=t.height+2*r.padding,i=n/2,t=t.width+2*i+r.padding,r=r.padding/2;return e.has("right")&&e.has("left")&&e.has("up")&&e.has("down")?[{x:0,y:0},{x:i,y:0},{x:t/2,y:2*r},{x:t-i,y:0},{x:t,y:0},{x:t,y:-n/3},{x:t+2*r,y:-n/2},{x:t,y:-2*n/3},{x:t,y:-n},{x:t-i,y:-n},{x:t/2,y:-n-2*r},{x:i,y:-n},{x:0,y:-n},{x:0,y:-2*n/3},{x:-2*r,y:-n/2},{x:0,y:-n/3}]:e.has("right")&&e.has("left")&&e.has("up")?[{x:i,y:0},{x:t-i,y:0},{x:t,y:-n/2},{x:t-i,y:-n},{x:i,y:-n},{x:0,y:-n/2}]:e.has("right")&&e.has("left")&&e.has("down")?[{x:0,y:0},{x:i,y:-n},{x:t-i,y:-n},{x:t,y:0}]:e.has("right")&&e.has("up")&&e.has("down")?[{x:0,y:0},{x:t,y:-i},{x:t,y:i-n},{x:0,y:-n}]:e.has("left")&&e.has("up")&&e.has("down")?[{x:t,y:0},{x:0,y:-i},{x:0,y:i-n},{x:t,y:-n}]:e.has("right")&&e.has("left")?[{x:i,y:0},{x:i,y:-r},{x:t-i,y:-r},{x:t-i,y:0},{x:t,y:-n/2},{x:t-i,y:-n},{x:t-i,y:r-n},{x:i,y:r-n},{x:i,y:-n},{x:0,y:-n/2}]:e.has("up")&&e.has("down")?[{x:t/2,y:0},{x:0,y:-r},{x:i,y:-r},{x:i,y:r-n},{x:0,y:r-n},{x:t/2,y:-n},{x:t,y:r-n},{x:t-i,y:r-n},{x:t-i,y:-r},{x:t,y:-r}]:e.has("right")&&e.has("up")?[{x:0,y:0},{x:t,y:-i},{x:0,y:-n}]:e.has("right")&&e.has("down")?[{x:0,y:0},{x:t,y:0},{x:0,y:-n}]:e.has("left")&&e.has("up")?[{x:t,y:0},{x:0,y:-i},{x:t,y:-n}]:e.has("left")&&e.has("down")?[{x:t,y:0},{x:0,y:0},{x:t,y:-n}]:e.has("right")?[{x:i,y:-r},{x:i,y:-r},{x:t-i,y:-r},{x:t-i,y:0},{x:t,y:-n/2},{x:t-i,y:-n},{x:t-i,y:r-n},{x:i,y:r-n},{x:i,y:r-n}]:e.has("left")?[{x:i,y:0},{x:i,y:-r},{x:t-i,y:-r},{x:t-i,y:r-n},{x:i,y:r-n},{x:i,y:-n},{x:0,y:-n/2}]:e.has("up")?[{x:i,y:-r},{x:i,y:r-n},{x:0,y:r-n},{x:t/2,y:-n},{x:t,y:r-n},{x:t-i,y:r-n},{x:t-i,y:-r}]:e.has("down")?[{x:t/2,y:0},{x:0,y:-r},{x:i,y:-r},{x:i,y:r-n},{x:t-i,y:r-n},{x:t-i,y:-r},{x:t,y:-r}]:[{x:0,y:0}]},"getArrowPoints")});function VPe(e,t){return e.intersect(t)}var XPe,KPe=b(()=>{mt(VPe,"intersectNode"),XPe=VPe});function ZPe(e,t,r,n){var i=e.x,e=e.y,a=i-n.x,s=e-n.y,o=Math.sqrt(t*t*s*s+r*r*a*a),a=Math.abs(t*r*a/o),t=(n.x<i&&(a=-a),Math.abs(t*r*s/o));return{x:i+a,y:e+(t=n.y<e?-t:t)}}var QPe,JPe=b(()=>{mt(ZPe,"intersectEllipse"),QPe=ZPe});function eBe(e,t,r){return QPe(e,t,t,r)}var tBe,rBe=b(()=>{JPe(),mt(eBe,"intersectCircle"),tBe=eBe});function nBe(e,t,r,n){var i,a,s,o,l=t.y-e.y,c=e.x-t.x,h=t.x*e.y-e.x*t.y,u=l*r.x+c*r.y+h,d=l*n.x+c*n.y+h;if(!(0!=u&&0!=d&&0<u*d||(u=(i=n.y-r.y)*e.x+(a=r.x-n.x)*e.y+(s=n.x*r.y-r.x*n.y),d=i*t.x+a*t.y+s,0!=u&&0!==d&&0<u*d)||0==(o=l*a-i*c)))return e=Math.abs(o/2),{x:(r=c*s-a*h)<0?(r-e)/o:(r+e)/o,y:(r=i*h-l*s)<0?(r-e)/o:(r+e)/o}}function iBe(e,t){return 0<e*t}var aBe,sBe=b(()=>{mt(nBe,"intersectLine"),mt(iBe,"sameSign"),aBe=nBe});function oBe(e,t,n){var r=e.x, Line truncated
.edge { .edge {
stroke-width: ${e.archEdgeWidth}; stroke-width: ${e.archEdgeWidth};
stroke: ${e.archEdgeColor}; stroke: ${e.archEdgeColor};
@@ -2729,13 +2729,13 @@ Expecting `+A.join(", ")+", got '"+(this.terminals_[x]||x)+"'":"Parse error on l
display: -webkit-box; display: -webkit-box;
-webkit-box-orient: vertical; -webkit-box-orient: vertical;
} }
`,"getStyles"),O$e=D$e}),H$e=NFe((r,n)=>{mt(function(e,t){"object"==typeof r&&"object"==typeof n?n.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof r?r.layoutBase=t():e.layoutBase=t()},"webpackUniversalModuleDefinition")(r,function(){return r=[function(e,t,r){function n(){}mt(n,"LayoutConstants"),n.QUALITY=1,n.DEFAULT_CREATE_BENDS_AS_NEEDED=!1,n.DEFAULT_INCREMENTAL=!1,n.DEFAULT_ANIMATION_ON_LAYOUT=!0,n.DEFAULT_ANIMATION_DURING_LAYOUT=!1,n.DEFAULT_ANIMATION_PERIOD=50,n.DEFAULT_UNIFORM_LEAF_NODE_SIZES=!1,n.DEFAULT_GRAPH_MARGIN=15,n.NODE_DIMENSIONS_INCLUDE_LABELS=!1,n.SIMPLE_NODE_HALF_SIZE=(n.SIMPLE_NODE_SIZE=40)/2,n.EMPTY_COMPOUND_NODE_SIZE=40,n.MIN_EDGE_LENGTH=1,n.INITIAL_WORLD_BOUNDARY=(n.WORLD_BOUNDARY=1e6)/1e3,n.WORLD_CENTER_X=1200,n.WORLD_CENTER_Y=900,e.exports=n},function(e,t,r){var n,i=r(2),a=r(8),s=r(9);function o(e,t,r){i.call(this,r),this.isOverlapingSourceAndTarget=!1,this.vGraphObject=r,this.bendpoints=[],this.source=e,this.target=t}for(n in mt(o,"LEdge"),o.prototype=Object.create(i.prototype),i)o[n]=i[n];o.prototype.getSource=function(){return this.source},o.prototype.getTarget=function(){return this.target},o.prototype.isInterGraph=function(){return this.isInterGraph},o.prototype.getLength=function(){return this.length},o.prototype.isOverlapingSourceAndTarget=function(){return this.isOverlapingSourceAndTarget},o.prototype.getBendpoints=function(){return this.bendpoints},o.prototype.getLca=function(){return this.lca},o.prototype.getSourceInLca=function(){return this.sourceInLca},o.prototype.getTargetInLca=function(){return this.targetInLca},o.prototype.getOtherEnd=function(e){if(this.source===e)return this.target;if(this.target===e)return this.source;throw"Node is not incident with this edge"},o.prototype.getOtherEndInGraph=function(e,t){for(var r=this.getOtherEnd(e),n=t.getGraphManager().getRoot();;){if(r.getOwner()==t)return r;if(r.getOwner()==n)break;r=r.getOwner().getParent()}return null},o.prototype.updateLength=function(){var e=new Array(4);this.isOverlapingSourceAndTarget=a.getIntersection(this.target.getRect(),this.source.getRect(),e),this.isOverlapingSourceAndTarget||(this.lengthX=e[0]-e[2],this.lengthY=e[1]-e[3],Math.abs(this.lengthX)<1&&(this.lengthX=s.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=s.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY))},o.prototype.updateLengthSimple=function(){this.lengthX=this.target.getCenterX()-this.source.getCenterX(),this.lengthY=this.target.getCenterY()-this.source.getCenterY(),Math.abs(this.lengthX)<1&&(this.lengthX=s.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=s.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY)},e.exports=o},function(e,t,r){function n(e){this.vGraphObject=e}mt(n,"LGraphObject"),e.exports=n},function(e,t,r){var n,i=r(2),a=r(10),s=r(13),o=r(0),l=r(16),c=r(5);function h(e,t,r,n){i.call(this,n=null==r&&null==n?t:n),null!=e.graphManager&&(e=e.graphManager),this.estimatedSize=a.MIN_VALUE,this.inclusionTreeDepth=a.MAX_VALUE,this.vGraphObject=n,this.edges=[],this.graphManager=e,this.rect=null!=r&&null!=t?new s(t.x,t.y,r.width,r.height):new s}for(n in mt(h,"LNode"),h.prototype=Object.create(i.prototype),i)h[n]=i[n];h.prototype.getEdges=function(){return this.edges},h.prototype.getChild=function(){return this.child},h.prototype.getOwner=function(){return this.owner},h.prototype.getWidth=function(){return this.rect.width},h.prototype.setWidth=function(e){this.rect.width=e},h.prototype.getHeight=function(){return this.rect.height},h.prototype.setHeight=function(e){this.rect.height=e},h.prototype.getCenterX=function(){return this.rect.x+this.rect.width/2},h.prototype.getCenterY=function(){return this.rect.y+this.rect.height/2},h.prototype.getCenter=function(){return new c(this.rect.x+this.rect.width/2,this.rect.y+this.rect.height/2)},h.prototype.getLocation=function(){return new c(this.rect.x,this.rect.y)},h.prototype.getRect=function(){return this.rect},h.prototype.getDiagonal=function(){return Math.sqrt(this.rect.width*this.rect.width+this.rect.height*this.rect.height)},h.prototype.getHalfTheDiagonal=function(){return Math.sqrt(this.rect.height*this.rect.height+this.rect.width*this.rect.width)/2},h.prototype.setRect=function(e,t){this.rect.x=e.x,this.rect.y=e.y,this.rect.width=t.width,this.rect.height=t.height},h.prototype.setCenter=function(e,t){this.rect.x=e-this.rect.width/2,this.rect.y=t-this.rect.height/2},h.prototype.setLocation=function(e,t){this.rect.x=e,this.rect.y=t},h.prototype.moveBy=function(e,t){this.rect.x+=e,this.rect.y+=t},h.prototype.getEdgeListToNode=function(t){var r=[],n=this;return n.edges.forEach(function(e){if(e.target==t){if(e.source!=n)throw"Incorrect edge source!";r.push(e)}}),r},h.prototype.getEdgesBetween=function(t){var r=[],n=this;return n.edges.forEach(function(e){if(e.source!=n&&e.target!=n)throw"Incorrect edge source and/or target";e.target!=t&&e.source!=t|| Line truncated `,"getStyles"),P$e=O$e}),V$e=IFe((r,n)=>{mt(function(e,t){"object"==typeof r&&"object"==typeof n?n.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof r?r.layoutBase=t():e.layoutBase=t()},"webpackUniversalModuleDefinition")(r,function(){return r=[function(e,t,r){function n(){}mt(n,"LayoutConstants"),n.QUALITY=1,n.DEFAULT_CREATE_BENDS_AS_NEEDED=!1,n.DEFAULT_INCREMENTAL=!1,n.DEFAULT_ANIMATION_ON_LAYOUT=!0,n.DEFAULT_ANIMATION_DURING_LAYOUT=!1,n.DEFAULT_ANIMATION_PERIOD=50,n.DEFAULT_UNIFORM_LEAF_NODE_SIZES=!1,n.DEFAULT_GRAPH_MARGIN=15,n.NODE_DIMENSIONS_INCLUDE_LABELS=!1,n.SIMPLE_NODE_HALF_SIZE=(n.SIMPLE_NODE_SIZE=40)/2,n.EMPTY_COMPOUND_NODE_SIZE=40,n.MIN_EDGE_LENGTH=1,n.INITIAL_WORLD_BOUNDARY=(n.WORLD_BOUNDARY=1e6)/1e3,n.WORLD_CENTER_X=1200,n.WORLD_CENTER_Y=900,e.exports=n},function(e,t,r){var n,i=r(2),a=r(8),s=r(9);function o(e,t,r){i.call(this,r),this.isOverlapingSourceAndTarget=!1,this.vGraphObject=r,this.bendpoints=[],this.source=e,this.target=t}for(n in mt(o,"LEdge"),o.prototype=Object.create(i.prototype),i)o[n]=i[n];o.prototype.getSource=function(){return this.source},o.prototype.getTarget=function(){return this.target},o.prototype.isInterGraph=function(){return this.isInterGraph},o.prototype.getLength=function(){return this.length},o.prototype.isOverlapingSourceAndTarget=function(){return this.isOverlapingSourceAndTarget},o.prototype.getBendpoints=function(){return this.bendpoints},o.prototype.getLca=function(){return this.lca},o.prototype.getSourceInLca=function(){return this.sourceInLca},o.prototype.getTargetInLca=function(){return this.targetInLca},o.prototype.getOtherEnd=function(e){if(this.source===e)return this.target;if(this.target===e)return this.source;throw"Node is not incident with this edge"},o.prototype.getOtherEndInGraph=function(e,t){for(var r=this.getOtherEnd(e),n=t.getGraphManager().getRoot();;){if(r.getOwner()==t)return r;if(r.getOwner()==n)break;r=r.getOwner().getParent()}return null},o.prototype.updateLength=function(){var e=new Array(4);this.isOverlapingSourceAndTarget=a.getIntersection(this.target.getRect(),this.source.getRect(),e),this.isOverlapingSourceAndTarget||(this.lengthX=e[0]-e[2],this.lengthY=e[1]-e[3],Math.abs(this.lengthX)<1&&(this.lengthX=s.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=s.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY))},o.prototype.updateLengthSimple=function(){this.lengthX=this.target.getCenterX()-this.source.getCenterX(),this.lengthY=this.target.getCenterY()-this.source.getCenterY(),Math.abs(this.lengthX)<1&&(this.lengthX=s.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=s.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY)},e.exports=o},function(e,t,r){function n(e){this.vGraphObject=e}mt(n,"LGraphObject"),e.exports=n},function(e,t,r){var n,i=r(2),a=r(10),s=r(13),o=r(0),l=r(16),c=r(5);function h(e,t,r,n){i.call(this,n=null==r&&null==n?t:n),null!=e.graphManager&&(e=e.graphManager),this.estimatedSize=a.MIN_VALUE,this.inclusionTreeDepth=a.MAX_VALUE,this.vGraphObject=n,this.edges=[],this.graphManager=e,this.rect=null!=r&&null!=t?new s(t.x,t.y,r.width,r.height):new s}for(n in mt(h,"LNode"),h.prototype=Object.create(i.prototype),i)h[n]=i[n];h.prototype.getEdges=function(){return this.edges},h.prototype.getChild=function(){return this.child},h.prototype.getOwner=function(){return this.owner},h.prototype.getWidth=function(){return this.rect.width},h.prototype.setWidth=function(e){this.rect.width=e},h.prototype.getHeight=function(){return this.rect.height},h.prototype.setHeight=function(e){this.rect.height=e},h.prototype.getCenterX=function(){return this.rect.x+this.rect.width/2},h.prototype.getCenterY=function(){return this.rect.y+this.rect.height/2},h.prototype.getCenter=function(){return new c(this.rect.x+this.rect.width/2,this.rect.y+this.rect.height/2)},h.prototype.getLocation=function(){return new c(this.rect.x,this.rect.y)},h.prototype.getRect=function(){return this.rect},h.prototype.getDiagonal=function(){return Math.sqrt(this.rect.width*this.rect.width+this.rect.height*this.rect.height)},h.prototype.getHalfTheDiagonal=function(){return Math.sqrt(this.rect.height*this.rect.height+this.rect.width*this.rect.width)/2},h.prototype.setRect=function(e,t){this.rect.x=e.x,this.rect.y=e.y,this.rect.width=t.width,this.rect.height=t.height},h.prototype.setCenter=function(e,t){this.rect.x=e-this.rect.width/2,this.rect.y=t-this.rect.height/2},h.prototype.setLocation=function(e,t){this.rect.x=e,this.rect.y=t},h.prototype.moveBy=function(e,t){this.rect.x+=e,this.rect.y+=t},h.prototype.getEdgeListToNode=function(t){var r=[],n=this;return n.edges.forEach(function(e){if(e.target==t){if(e.source!=n)throw"Incorrect edge source!";r.push(e)}}),r},h.prototype.getEdgesBetween=function(t){var r=[],n=this;return n.edges.forEach(function(e){if(e.source!=n&&e.target!=n)throw"Incorrect edge source and/or target";e.target!=t&&e.source!=t|| Line truncated
translate(${d}, ${p-e.height/2}) translate(${d}, ${p-e.height/2})
translate(${y*x.width/2}, ${v*x.height/2}) translate(${y*x.width/2}, ${v*x.height/2})
rotate(${-1*y*v*45}, 0, ${e.height/2}) rotate(${-1*y*v*45}, 0, ${e.height/2})
`)))}))},"drawEdges"),F$e=mt(async function(c,e,h){let u=.75*h.getConfigField("padding"),d=h.getConfigField("fontSize"),p=h.getConfigField("iconSize")/2;await Promise.all(e.nodes().map(async n=>{var i=L$e(n);if("group"===i.type){var{h:n,w:a,x1:s,y1:o}=n.boundingBox(),l=c.append("rect");l.attr("id","group-"+i.id).attr("x",s+p).attr("y",o+p).attr("width",a).attr("height",n).attr("class","node-bkg");let e=c.append("g"),t=s,r=o;i.icon&&((n=e.append("g")).html(`<g>${await Dc(i.icon,{height:u,width:u,fallbackPrefix:B$e.prefix})}</g>`),n.attr("transform","translate("+(t+p+1)+", "+(r+p+1)+")"),t+=u,r+=d/2-1-2),i.label&&(s=e.append("g"),await QL(s,i.label,{useHtmlLabels:!1,width:a,classes:"architecture-service-label"},O()),s.attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","start").attr("text-anchor","start"),s.attr("transform","translate("+(t+p+4)+", "+(r+p+2)+")")),h.setElementForId(i.id,l)}}))},"drawGroups"),z$e=mt(async function(e,t,r){var n,i=O();for(n of r){var a=t.append("g"),s=e.getConfigField("iconSize"),o=(n.title&&(o=a.append("g"),await QL(o,n.title,{useHtmlLabels:!1,width:1.5*s,classes:"architecture-service-label"},i),o.attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle"),o.attr("transform","translate("+s/2+", "+s+")")),a.append("g")),{width:l,height:c}=(n.icon?o.html(`<g>${await Dc(n.icon,{height:s,width:s,fallbackPrefix:B$e.prefix})}</g>`):n.iconText?(o.html(`<g>${await Dc("blank",{height:s,width:s,fallbackPrefix:B$e.prefix})}</g>`),l=o.append("g").append("foreignObject").attr("width",s).attr("height",s).append("div").attr("class","node-icon-text").attr("style",`height: ${s}px;`).append("div").html(lc(n.iconText,i)),c=parseInt(window.getComputedStyle(l.node(),null).getPropertyValue("font-size").replace(/\D/g,""))??16,l.attr("style",`-webkit-line-clamp: ${Math.floor((s-2)/c)};`)):o.append("path").attr("class","node-bkg").attr("id","node-"+n.id).attr("d",`M0 ${s} v${-s} q0,-5 5,-5 h${s} q5,0 5,5 v${s} H0 Z`),a.attr("id","service-"+n.id).attr("class","architecture-service"),a.node().getBBox());n.width=l,n.height=c,e.setElementForId(n.id,a)}return 0},"drawServices"),G$e=mt(function(i,a,e){e.forEach(e=>{var t=a.append("g"),r=i.getConfigField("iconSize"),{width:r,height:n}=(t.append("g").append("rect").attr("id","node-"+e.id).attr("fill-opacity","0").attr("width",r).attr("height",r),t.attr("class","architecture-junction"),t._groups[0][0].getBBox());t.width=r,t.height=n,i.setElementForId(e.id,t)})},"drawJunctions")});function Q$e(e,t,r){e.forEach(e=>{t.add({group:"nodes",data:{type:"service",id:e.id,icon:e.icon,label:e.title,parent:e.in,width:r.getConfigField("iconSize"),height:r.getConfigField("iconSize")},classes:"node-service"})})}function J$e(e,t,r){e.forEach(e=>{t.add({group:"nodes",data:{type:"junction",id:e.id,parent:e.in,width:r.getConfigField("iconSize"),height:r.getConfigField("iconSize")},classes:"node-junction"})})}function eFe(r,e){e.nodes().map(e=>{var t=L$e(e);"group"!==t.type&&(t.x=e.position().x,t.y=e.position().y,r.getElementById(t.id).attr("transform","translate("+(t.x||0)+","+(t.y||0)+")"))})}function tFe(e,t){e.forEach(e=>{t.add({group:"nodes",data:{type:"group",id:e.id,icon:e.icon,label:e.title,parent:e.in},classes:"node-group"})})}function rFe(e,h){e.forEach(e=>{var{lhsId:t,rhsId:r,lhsInto:n,lhsGroup:i,rhsInto:a,lhsDir:s,rhsDir:o,rhsGroup:l,title:c}=e,e=x$e(e.lhsDir,e.rhsDir)?"segments":"straight";h.add({group:"edges",data:{id:t+"-"+r,label:c,source:t,sourceDir:s,sourceArrow:n,sourceGroup:i,sourceEndpoint:"L"===s?"0 50%":"R"===s?"100% 50%":"T"===s?"50% 0":"50% 100%",target:r,targetDir:o,targetArrow:a,targetGroup:l,targetEndpoint:"L"===o?"0 50%":"R"===o?"100% 50%":"T"===o?"50% 0":"50% 100%"},classes:e})})}function nFe(s,e,u){let t=mt((e,h)=>Object.entries(e).reduce((r,[n,e])=>{let i=0,a=Object.entries(e);if(1===a.length)r[n]=a[0][1];else for(let t=0;t<a.length-1;t++)for(let e=t+1;e<a.length;e++){var[s,o]=a[t],[l,c]=a[e];u[s]?.[l]===h||"default"===s||"default"===l?(r[n]??=[],r[n]=[...r[n],...o,...c]):(r[n+"-"+i++]=o,r[n+"-"+i++]=c)}return r},{}),"flattenAlignments"),r=e.map(e=>{let i={},a={};return Object.entries(e).forEach(([e,[t,r]])=>{var n=s.getNode(e)?.in??"default";i[r]??={},i[r][n]??=[],i[r][n].push(e),a[t]??={},a[t][n]??=[],a[t][n].push(e)}),{horiz:Object.values(t(i,"horizontal")).filter(e=>1<e.length),vert:Object.values(t(a,"vertical")).filter(e=>1<e.length)}}),[n,i]=r.reduce(([e,t],{horiz:r,vert:n})=>[[...e,...r],[...t,...n]],[[],[]]);return{horizontal:n,vertical:i}}function iFe(e,l){let c=[],h=mt(e=>e[0]+","+e[1],"posToStr"),u=mt(e=>e.split(",").map(e=>parseInt(e)),"strToPos");return e.forEach(e=>{let a=Object.fromEntries(Object.entries(e).map(([e,t])=>[h(t),e])),s=[h([0,0])],o={},t={L:[-1,0],R:[1,0],T:[0,1],B:[0,-1]};for(;0<s.length;){var r=s.shift();if(r){o[r]=1;let i=a[r];if(i){let n=u(r);Object.entries(t).forEach(([e,t])=>{var t=h([n[0]+t[0],n[1]+t[1]]),r=a[t];r&&!o[tLine truncated `)))}))},"drawEdges"),z$e=mt(async function(c,e,h){let u=.75*h.getConfigField("padding"),d=h.getConfigField("fontSize"),p=h.getConfigField("iconSize")/2;await Promise.all(e.nodes().map(async n=>{var i=N$e(n);if("group"===i.type){var{h:n,w:a,x1:s,y1:o}=n.boundingBox(),l=c.append("rect");l.attr("id","group-"+i.id).attr("x",s+p).attr("y",o+p).attr("width",a).attr("height",n).attr("class","node-bkg");let e=c.append("g"),t=s,r=o;i.icon&&((n=e.append("g")).html(`<g>${await Dc(i.icon,{height:u,width:u,fallbackPrefix:$$e.prefix})}</g>`),n.attr("transform","translate("+(t+p+1)+", "+(r+p+1)+")"),t+=u,r+=d/2-1-2),i.label&&(s=e.append("g"),await QL(s,i.label,{useHtmlLabels:!1,width:a,classes:"architecture-service-label"},O()),s.attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","start").attr("text-anchor","start"),s.attr("transform","translate("+(t+p+4)+", "+(r+p+2)+")")),h.setElementForId(i.id,l)}}))},"drawGroups"),G$e=mt(async function(e,t,r){var n,i=O();for(n of r){var a=t.append("g"),s=e.getConfigField("iconSize"),o=(n.title&&(o=a.append("g"),await QL(o,n.title,{useHtmlLabels:!1,width:1.5*s,classes:"architecture-service-label"},i),o.attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle"),o.attr("transform","translate("+s/2+", "+s+")")),a.append("g")),{width:l,height:c}=(n.icon?o.html(`<g>${await Dc(n.icon,{height:s,width:s,fallbackPrefix:$$e.prefix})}</g>`):n.iconText?(o.html(`<g>${await Dc("blank",{height:s,width:s,fallbackPrefix:$$e.prefix})}</g>`),l=o.append("g").append("foreignObject").attr("width",s).attr("height",s).append("div").attr("class","node-icon-text").attr("style",`height: ${s}px;`).append("div").html(lc(n.iconText,i)),c=parseInt(window.getComputedStyle(l.node(),null).getPropertyValue("font-size").replace(/\D/g,""))??16,l.attr("style",`-webkit-line-clamp: ${Math.floor((s-2)/c)};`)):o.append("path").attr("class","node-bkg").attr("id","node-"+n.id).attr("d",`M0 ${s} v${-s} q0,-5 5,-5 h${s} q5,0 5,5 v${s} H0 Z`),a.attr("id","service-"+n.id).attr("class","architecture-service"),a.node().getBBox());n.width=l,n.height=c,e.setElementForId(n.id,a)}return 0},"drawServices"),U$e=mt(function(i,a,e){e.forEach(e=>{var t=a.append("g"),r=i.getConfigField("iconSize"),{width:r,height:n}=(t.append("g").append("rect").attr("id","node-"+e.id).attr("fill-opacity","0").attr("width",r).attr("height",r),t.attr("class","architecture-junction"),t._groups[0][0].getBBox());t.width=r,t.height=n,i.setElementForId(e.id,t)})},"drawJunctions")});function J$e(e,t,r){e.forEach(e=>{t.add({group:"nodes",data:{type:"service",id:e.id,icon:e.icon,label:e.title,parent:e.in,width:r.getConfigField("iconSize"),height:r.getConfigField("iconSize")},classes:"node-service"})})}function eFe(e,t,r){e.forEach(e=>{t.add({group:"nodes",data:{type:"junction",id:e.id,parent:e.in,width:r.getConfigField("iconSize"),height:r.getConfigField("iconSize")},classes:"node-junction"})})}function tFe(r,e){e.nodes().map(e=>{var t=N$e(e);"group"!==t.type&&(t.x=e.position().x,t.y=e.position().y,r.getElementById(t.id).attr("transform","translate("+(t.x||0)+","+(t.y||0)+")"))})}function rFe(e,t){e.forEach(e=>{t.add({group:"nodes",data:{type:"group",id:e.id,icon:e.icon,label:e.title,parent:e.in},classes:"node-group"})})}function nFe(e,h){e.forEach(e=>{var{lhsId:t,rhsId:r,lhsInto:n,lhsGroup:i,rhsInto:a,lhsDir:s,rhsDir:o,rhsGroup:l,title:c}=e,e=b$e(e.lhsDir,e.rhsDir)?"segments":"straight";h.add({group:"edges",data:{id:t+"-"+r,label:c,source:t,sourceDir:s,sourceArrow:n,sourceGroup:i,sourceEndpoint:"L"===s?"0 50%":"R"===s?"100% 50%":"T"===s?"50% 0":"50% 100%",target:r,targetDir:o,targetArrow:a,targetGroup:l,targetEndpoint:"L"===o?"0 50%":"R"===o?"100% 50%":"T"===o?"50% 0":"50% 100%"},classes:e})})}function iFe(s,e,u){let t=mt((e,h)=>Object.entries(e).reduce((r,[n,e])=>{let i=0,a=Object.entries(e);if(1===a.length)r[n]=a[0][1];else for(let t=0;t<a.length-1;t++)for(let e=t+1;e<a.length;e++){var[s,o]=a[t],[l,c]=a[e];u[s]?.[l]===h||"default"===s||"default"===l?(r[n]??=[],r[n]=[...r[n],...o,...c]):(r[n+"-"+i++]=o,r[n+"-"+i++]=c)}return r},{}),"flattenAlignments"),r=e.map(e=>{let i={},a={};return Object.entries(e).forEach(([e,[t,r]])=>{var n=s.getNode(e)?.in??"default";i[r]??={},i[r][n]??=[],i[r][n].push(e),a[t]??={},a[t][n]??=[],a[t][n].push(e)}),{horiz:Object.values(t(i,"horizontal")).filter(e=>1<e.length),vert:Object.values(t(a,"vertical")).filter(e=>1<e.length)}}),[n,i]=r.reduce(([e,t],{horiz:r,vert:n})=>[[...e,...r],[...t,...n]],[[],[]]);return{horizontal:n,vertical:i}}function aFe(e,l){let c=[],h=mt(e=>e[0]+","+e[1],"posToStr"),u=mt(e=>e.split(",").map(e=>parseInt(e)),"strToPos");return e.forEach(e=>{let a=Object.fromEntries(Object.entries(e).map(([e,t])=>[h(t),e])),s=[h([0,0])],o={},t={L:[-1,0],R:[1,0],T:[0,1],B:[0,-1]};for(;0<s.length;){var r=s.shift();if(r){o[r]=1;let i=a[r];if(i){let n=u(r);Object.entries(t).forEach(([e,t])=>{var t=h([n[0]+t[0],n[1]+t[1]]),r=a[t];r&&!o[tLine truncated
.treemapNode.section { .treemapNode.section {
stroke: ${(e=_C(wFe,e)).sectionStrokeColor}; stroke: ${(e=SC(kFe,e)).sectionStrokeColor};
stroke-width: ${e.sectionStrokeWidth}; stroke-width: ${e.sectionStrokeWidth};
fill: ${e.sectionFillColor}; fill: ${e.sectionFillColor};
} }
@@ -2756,13 +2756,13 @@ Expecting `+A.join(", ")+", got '"+(this.terminals_[x]||x)+"'":"Parse error on l
fill: ${e.titleColor}; fill: ${e.titleColor};
font-size: ${e.titleFontSize}; font-size: ${e.titleFontSize};
} }
`,"getStyles"),TFe=kFe}),AFe={};OFe(AFe,{diagram:()=>LFe});var LFe,NFe,IFe=b(()=>{pFe(),CFe(),_Fe(),SFe(),LFe={parser:yFe,get db(){return new uFe},renderer:bFe,styles:TFe}}),RFe=(OFe(NFe={},{default:()=>YGe}),Pc(),nh(),sh(),{id:"c4",detector:mt(e=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(e),"detector"),loader:mt(async()=>({id:"c4",diagram:(await Promise.resolve().then(()=>(I_(),L_))).diagram}),"loader")}),MFe={id:"flowchart",detector:mt((e,t)=>"dagre-wrapper"!==t?.flowchart?.defaultRenderer&&"elk"!==t?.flowchart?.defaultRenderer&&/^\s*graph/.test(e),"detector"),loader:mt(async()=>({id:"flowchart",diagram:(await Promise.resolve().then(()=>(hue(),aue))).diagram}),"loader")},DFe="flowchart-v2",b=mt((e,t)=>"dagre-d3"!==t?.flowchart?.defaultRenderer&&("elk"===t?.flowchart?.defaultRenderer&&(t.layout="elk"),!(!/^\s*graph/.test(e)||"dagre-wrapper"!==t?.flowchart?.defaultRenderer)||/^\s*flowchart/.test(e)),"detector"),OFe=mt(async()=>{var e=(await Promise.resolve().then(()=>(hue(),aue))).diagram;return{id:DFe,diagram:e}},"loader"),PFe={id:DFe,detector:b,loader:OFe},BFe={id:"er",detector:mt(e=>/^\s*erDiagram/.test(e),"detector"),loader:mt(async()=>({id:"er",diagram:(await Promise.resolve().then(()=>(kue(),bue))).diagram}),"loader")},$Fe={id:"gitGraph",detector:mt(e=>/^\s*gitGraph/.test(e),"detector"),loader:mt(async()=>({id:"gitGraph",diagram:(await Promise.resolve().then(()=>(M7e(),L7e))).diagram}),"loader")},FFe={id:"gantt",detector:mt(e=>/^\s*gantt/.test(e),"detector"),loader:mt(async()=>({id:"gantt",diagram:(await Promise.resolve().then(()=>(CEe(),fEe))).diagram}),"loader")},zFe={id:"info",detector:mt(e=>/^\s*info/.test(e),"detector"),loader:mt(async()=>({id:"info",diagram:(await Promise.resolve().then(()=>(ZEe(),IEe))).diagram}),"loader")},GFe={id:"pie",detector:mt(e=>/^\s*pie/.test(e),"detector"),loader:mt(async()=>({id:"pie",diagram:(await Promise.resolve().then(()=>(lCe(),rCe))).diagram}),"loader")},UFe="quadrantChart",b=mt(e=>/^\s*quadrantChart/.test(e),"detector"),OFe=mt(async()=>{var e=(await Promise.resolve().then(()=>(qCe(),FCe))).diagram;return{id:UFe,diagram:e}},"loader"),qFe={id:UFe,detector:b,loader:OFe},jFe={id:"xychart",detector:mt(e=>/^\s*xychart(-beta)?/.test(e),"detector"),loader:mt(async()=>({id:"xychart",diagram:(await Promise.resolve().then(()=>(sSe(),J_e))).diagram}),"loader")},YFe="requirement",b=mt(e=>/^\s*requirement(Diagram)?/.test(e),"detector"),OFe=mt(async()=>{var e=(await Promise.resolve().then(()=>(hAe(),pSe))).diagram;return{id:YFe,diagram:e}},"loader"),WFe={id:YFe,detector:b,loader:OFe},HFe={id:"sequence",detector:mt(e=>/^\s*sequenceDiagram/.test(e),"detector"),loader:mt(async()=>({id:"sequence",diagram:(await Promise.resolve().then(()=>(e9e(),$Ae))).diagram}),"loader")},VFe={id:"class",detector:mt((e,t)=>"dagre-wrapper"!==t?.class?.defaultRenderer&&/^\s*classDiagram/.test(e),"detector"),loader:mt(async()=>({id:"class",diagram:(await Promise.resolve().then(()=>(l9e(),s9e))).diagram}),"loader")},XFe="classDiagram",b=mt((e,t)=>!(!/^\s*classDiagram/.test(e)||"dagre-wrapper"!==t?.class?.defaultRenderer)||/^\s*classDiagram-v2/.test(e),"detector"),OFe=mt(async()=>{var e=(await Promise.resolve().then(()=>(W9e(),c9e))).diagram;return{id:XFe,diagram:e}},"loader"),KFe={id:XFe,detector:b,loader:OFe},ZFe={id:"state",detector:mt((e,t)=>"dagre-wrapper"!==t?.state?.defaultRenderer&&/^\s*stateDiagram/.test(e),"detector"),loader:mt(async()=>({id:"state",diagram:(await Promise.resolve().then(()=>(jLe(),ULe))).diagram}),"loader")},QFe="stateDiagram",b=mt((e,t)=>!!(/^\s*stateDiagram-v2/.test(e)||/^\s*stateDiagram/.test(e)&&"dagre-wrapper"===t?.state?.defaultRenderer),"detector"),OFe=mt(async()=>{var e=(await Promise.resolve().then(()=>(TNe(),YLe))).diagram;return{id:QFe,diagram:e}},"loader"),JFe={id:QFe,detector:b,loader:OFe},eze={id:"journey",detector:mt(e=>/^\s*journey/.test(e),"detector"),loader:mt(async()=>({id:"journey",diagram:(await Promise.resolve().then(()=>(YNe(),GNe))).diagram}),"loader")},tze=(e(),LEe(),lh(),b={draw:mt((e,t,r)=>{D.debug(`rendering svg for syntax error `,"getStyles"),EFe=TFe}),LFe={};PFe(LFe,{diagram:()=>NFe});var NFe,IFe,RFe=b(()=>{gFe(),SFe(),_Fe(),AFe(),NFe={parser:vFe,get db(){return new dFe},renderer:wFe,styles:EFe}}),MFe=(PFe(IFe={},{default:()=>WGe}),Pc(),nh(),sh(),{id:"c4",detector:mt(e=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(e),"detector"),loader:mt(async()=>({id:"c4",diagram:(await Promise.resolve().then(()=>(IS(),LS))).diagram}),"loader")}),DFe={id:"flowchart",detector:mt((e,t)=>"dagre-wrapper"!==t?.flowchart?.defaultRenderer&&"elk"!==t?.flowchart?.defaultRenderer&&/^\s*graph/.test(e),"detector"),loader:mt(async()=>({id:"flowchart",diagram:(await Promise.resolve().then(()=>(hue(),aue))).diagram}),"loader")},OFe="flowchart-v2",b=mt((e,t)=>"dagre-d3"!==t?.flowchart?.defaultRenderer&&("elk"===t?.flowchart?.defaultRenderer&&(t.layout="elk"),!(!/^\s*graph/.test(e)||"dagre-wrapper"!==t?.flowchart?.defaultRenderer)||/^\s*flowchart/.test(e)),"detector"),PFe=mt(async()=>{var e=(await Promise.resolve().then(()=>(hue(),aue))).diagram;return{id:OFe,diagram:e}},"loader"),BFe={id:OFe,detector:b,loader:PFe},$Fe={id:"er",detector:mt(e=>/^\s*erDiagram/.test(e),"detector"),loader:mt(async()=>({id:"er",diagram:(await Promise.resolve().then(()=>(kue(),bue))).diagram}),"loader")},FFe={id:"gitGraph",detector:mt(e=>/^\s*gitGraph/.test(e),"detector"),loader:mt(async()=>({id:"gitGraph",diagram:(await Promise.resolve().then(()=>(M7e(),L7e))).diagram}),"loader")},zFe={id:"gantt",detector:mt(e=>/^\s*gantt/.test(e),"detector"),loader:mt(async()=>({id:"gantt",diagram:(await Promise.resolve().then(()=>(SEe(),mEe))).diagram}),"loader")},GFe={id:"info",detector:mt(e=>/^\s*info/.test(e),"detector"),loader:mt(async()=>({id:"info",diagram:(await Promise.resolve().then(()=>(QEe(),REe))).diagram}),"loader")},UFe={id:"pie",detector:mt(e=>/^\s*pie/.test(e),"detector"),loader:mt(async()=>({id:"pie",diagram:(await Promise.resolve().then(()=>(cCe(),nCe))).diagram}),"loader")},qFe="quadrantChart",b=mt(e=>/^\s*quadrantChart/.test(e),"detector"),PFe=mt(async()=>{var e=(await Promise.resolve().then(()=>(jCe(),zCe))).diagram;return{id:qFe,diagram:e}},"loader"),jFe={id:qFe,detector:b,loader:PFe},YFe={id:"xychart",detector:mt(e=>/^\s*xychart(-beta)?/.test(e),"detector"),loader:mt(async()=>({id:"xychart",diagram:(await Promise.resolve().then(()=>(o_e(),e_e))).diagram}),"loader")},WFe="requirement",b=mt(e=>/^\s*requirement(Diagram)?/.test(e),"detector"),PFe=mt(async()=>{var e=(await Promise.resolve().then(()=>(uAe(),g_e))).diagram;return{id:WFe,diagram:e}},"loader"),HFe={id:WFe,detector:b,loader:PFe},VFe={id:"sequence",detector:mt(e=>/^\s*sequenceDiagram/.test(e),"detector"),loader:mt(async()=>({id:"sequence",diagram:(await Promise.resolve().then(()=>(t9e(),FAe))).diagram}),"loader")},XFe={id:"class",detector:mt((e,t)=>"dagre-wrapper"!==t?.class?.defaultRenderer&&/^\s*classDiagram/.test(e),"detector"),loader:mt(async()=>({id:"class",diagram:(await Promise.resolve().then(()=>(c9e(),o9e))).diagram}),"loader")},KFe="classDiagram",b=mt((e,t)=>!(!/^\s*classDiagram/.test(e)||"dagre-wrapper"!==t?.class?.defaultRenderer)||/^\s*classDiagram-v2/.test(e),"detector"),PFe=mt(async()=>{var e=(await Promise.resolve().then(()=>(H9e(),h9e))).diagram;return{id:KFe,diagram:e}},"loader"),ZFe={id:KFe,detector:b,loader:PFe},QFe={id:"state",detector:mt((e,t)=>"dagre-wrapper"!==t?.state?.defaultRenderer&&/^\s*stateDiagram/.test(e),"detector"),loader:mt(async()=>({id:"state",diagram:(await Promise.resolve().then(()=>(YLe(),qLe))).diagram}),"loader")},JFe="stateDiagram",b=mt((e,t)=>!!(/^\s*stateDiagram-v2/.test(e)||/^\s*stateDiagram/.test(e)&&"dagre-wrapper"===t?.state?.defaultRenderer),"detector"),PFe=mt(async()=>{var e=(await Promise.resolve().then(()=>(ENe(),WLe))).diagram;return{id:JFe,diagram:e}},"loader"),eze={id:JFe,detector:b,loader:PFe},tze={id:"journey",detector:mt(e=>/^\s*journey/.test(e),"detector"),loader:mt(async()=>({id:"journey",diagram:(await Promise.resolve().then(()=>(WNe(),UNe))).diagram}),"loader")},rze=(e(),NEe(),lh(),b={draw:mt((e,t,r)=>{D.debug(`rendering svg for syntax error
`);var n=(t=kEe(t)).append("g");t.attr("viewBox","0 0 2412 512"),Zc(t,100,512,!0),n.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),n.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),n.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),n.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"),n.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),n.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),n.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in text"),n.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text("mermaid version "+r)},"draw")}),rze={db:{},renderer:b,parser:{parse:mt(()=>{},"parse")}},nze="flowchart-elk",OFe=mt((e,t={})=>!!(/^\s*flowchart-elk/.test(e)||/^\s*(flowchart|graph)/.test(e)&&"elk"===t?.flowchart?.defaultRenderer)&&(t.layout="elk",!0),"detector"),b=mt(async()=>{var e=(await Promise.resolve().then(()=>(hue(),aue))).diagram;return{id:nze,diagram:e}},"loader"),ize={id:nze,detector:OFe,loader:b},aze={id:"timeline",detector:mt(e=>/^\s*timeline/.test(e),"detector"),loader:mt(async()=>({id:"timeline",diagram:(await Promise.resolve().then(()=>(UIe(),$Ie))).diagram}),"loader")},sze={id:"mindmap",detector:mt(e=>/^\s*mindmap/.test(e),"detector"),loader:mt(async()=>({id:"mindmap",diagram:(await Promise.resolve().then(()=>(zRe(),gRe))).diagram}),"loader")},oze={id:"kanban",detector:mt(e=>/^\s*kanban/.test(e),"detector"),loader:mt(async()=>({id:"kanban",diagram:(await Promise.resolve().then(()=>(oMe(),YRe))).diagram}),"loader")},lze={id:"sankey",detector:mt(e=>/^\s*sankey(-beta)?/.test(e),"detector"),loader:mt(async()=>({id:"sankey",diagram:(await Promise.resolve().then(()=>(MDe(),bDe))).diagram}),"loader")},cze={id:"packet",detector:mt(e=>/^\s*packet(-beta)?/.test(e),"detector"),loader:mt(async()=>({id:"packet",diagram:(await Promise.resolve().then(()=>(rOe(),$De))).diagram}),"loader")},hze={id:"radar",detector:mt(e=>/^\s*radar-beta/.test(e),"detector"),loader:mt(async()=>({id:"radar",diagram:(await Promise.resolve().then(()=>(TOe(),xOe))).diagram}),"loader")},uze={id:"block",detector:mt(e=>/^\s*block(-beta)?/.test(e),"detector"),loader:mt(async()=>({id:"block",diagram:(await Promise.resolve().then(()=>(U$e(),h$e))).diagram}),"loader")},dze="architecture",OFe=mt(e=>/^\s*architecture/.test(e),"detector"),b=mt(async()=>{var e=(await Promise.resolve().then(()=>(dFe(),cFe))).diagram;return{id:dze,diagram:e}},"loader"),pze={id:dze,detector:OFe,loader:b},gze=(sh(),Tu(),{id:"treemap",detector:mt(e=>/^\s*treemap/.test(e),"detector"),loader:mt(async()=>({id:"treemap",diagram:(await Promise.resolve().then(()=>(IFe(),AFe))).diagram}),"loader")}),fze=!1,mze=mt(()=>{fze||(fze=!0,Nh("error",rze,e=>"error"===e.toLowerCase().trim()),Nh("---",{db:{clear:mt(()=>{},"clear")},styles:{},renderer:{draw:mt(()=>{},"draw")},parser:{parse:mt(()=>{throw new Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with un-indented `---` blocks")},"parse")},init:mt(()=>null,"init")},e=>e.toLowerCase().trimStart().startsWith("---")),jc(ize,sze,pze),jc(RFe,oze,KFe,VFe,BFe,FFe,zFe,GFe,WFe,HFe,PFe,MFe,aze,$Fe,JFe,ZFe,eze,qFe,lze,cze,jFe,uze,hze,gze))},"addDiagrams"),yze=(e(),sh(),Tu(),mt(async()=>{D.debug("Loading registered diagrams");var e=(await Promise.allSettled(Object.entries(Uc).map(async([e,{detector:t,loader:r}])=>{if(r)try{Ih(e)}catch{try{var{diagram:n,id:i}=await r( Line truncated `);var n=(t=TEe(t)).append("g");t.attr("viewBox","0 0 2412 512"),Zc(t,100,512,!0),n.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),n.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),n.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),n.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"),n.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),n.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),n.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in text"),n.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text("mermaid version "+r)},"draw")}),nze={db:{},renderer:b,parser:{parse:mt(()=>{},"parse")}},ize="flowchart-elk",PFe=mt((e,t={})=>!!(/^\s*flowchart-elk/.test(e)||/^\s*(flowchart|graph)/.test(e)&&"elk"===t?.flowchart?.defaultRenderer)&&(t.layout="elk",!0),"detector"),b=mt(async()=>{var e=(await Promise.resolve().then(()=>(hue(),aue))).diagram;return{id:ize,diagram:e}},"loader"),aze={id:ize,detector:PFe,loader:b},sze={id:"timeline",detector:mt(e=>/^\s*timeline/.test(e),"detector"),loader:mt(async()=>({id:"timeline",diagram:(await Promise.resolve().then(()=>(qIe(),FIe))).diagram}),"loader")},oze={id:"mindmap",detector:mt(e=>/^\s*mindmap/.test(e),"detector"),loader:mt(async()=>({id:"mindmap",diagram:(await Promise.resolve().then(()=>(GRe(),fRe))).diagram}),"loader")},lze={id:"kanban",detector:mt(e=>/^\s*kanban/.test(e),"detector"),loader:mt(async()=>({id:"kanban",diagram:(await Promise.resolve().then(()=>(lMe(),WRe))).diagram}),"loader")},cze={id:"sankey",detector:mt(e=>/^\s*sankey(-beta)?/.test(e),"detector"),loader:mt(async()=>({id:"sankey",diagram:(await Promise.resolve().then(()=>(DDe(),wDe))).diagram}),"loader")},hze={id:"packet",detector:mt(e=>/^\s*packet(-beta)?/.test(e),"detector"),loader:mt(async()=>({id:"packet",diagram:(await Promise.resolve().then(()=>(nOe(),FDe))).diagram}),"loader")},uze={id:"radar",detector:mt(e=>/^\s*radar-beta/.test(e),"detector"),loader:mt(async()=>({id:"radar",diagram:(await Promise.resolve().then(()=>(EOe(),bOe))).diagram}),"loader")},dze={id:"block",detector:mt(e=>/^\s*block(-beta)?/.test(e),"detector"),loader:mt(async()=>({id:"block",diagram:(await Promise.resolve().then(()=>(q$e(),u$e))).diagram}),"loader")},pze="architecture",PFe=mt(e=>/^\s*architecture/.test(e),"detector"),b=mt(async()=>{var e=(await Promise.resolve().then(()=>(pFe(),hFe))).diagram;return{id:pze,diagram:e}},"loader"),gze={id:pze,detector:PFe,loader:b},fze=(sh(),Tu(),{id:"treemap",detector:mt(e=>/^\s*treemap/.test(e),"detector"),loader:mt(async()=>({id:"treemap",diagram:(await Promise.resolve().then(()=>(RFe(),LFe))).diagram}),"loader")}),mze=!1,yze=mt(()=>{mze||(mze=!0,Nh("error",nze,e=>"error"===e.toLowerCase().trim()),Nh("---",{db:{clear:mt(()=>{},"clear")},styles:{},renderer:{draw:mt(()=>{},"draw")},parser:{parse:mt(()=>{throw new Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with un-indented `---` blocks")},"parse")},init:mt(()=>null,"init")},e=>e.toLowerCase().trimStart().startsWith("---")),jc(aze,oze,gze),jc(MFe,lze,ZFe,XFe,$Fe,zFe,GFe,UFe,HFe,VFe,BFe,DFe,sze,FFe,eze,QFe,tze,jFe,cze,hze,YFe,dze,uze,fze))},"addDiagrams"),vze=(e(),sh(),Tu(),mt(async()=>{D.debug("Loading registered diagrams");var e=(await Promise.allSettled(Object.entries(Uc).map(async([e,{detector:t,loader:r}])=>{if(r)try{Ih(e)}catch{try{var{diagram:n,id:i}=await r( Line truncated
`;try{Ih(n)}catch{if(!(i=Wc(n)))throw new Gc(`Diagram ${n} not found.`);var{id:i,diagram:a}=await i();Nh(i,a)}var{db:i,parser:a,renderer:s,init:o}=Ih(n);return a.parser&&(a.parser.yy=i),i.clear?.(),o?.(r),t.title&&i.setDiagramTitle?.(t.title),await a.parse(e),new WGe(n,e,i,a,s)}async render(e,t){await this.renderer.draw(this.text,e,t,this)}getParser(){return this.parser}getType(){return this.type}},oGe=(Oc(),[]),lGe=mt(()=>{oGe.forEach(e=>{e()}),oGe=[]},"attachFunctions"),cGe=(e(),mt(e=>e.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart(),"cleanupComments"));function hGe(e){var t,r,n=e.match($c);return n?(r={},(t="object"!=typeof(t=$9(n[1],{schema:B9})??{})||Array.isArray(t)?{}:t).displayMode&&(r.displayMode=t.displayMode.toString()),t.title&&(r.title=t.title.toString()),t.config&&(r.config=t.config),{text:e.slice(n[0].length),metadata:r}):{text:e,metadata:{}}}ih(),F9(),mt(hGe,"extractFrontMatter"),i_();var uGe=mt(e=>e.replace(/\r\n?/g,` `;try{Ih(n)}catch{if(!(i=Wc(n)))throw new Gc(`Diagram ${n} not found.`);var{id:i,diagram:a}=await i();Nh(i,a)}var{db:i,parser:a,renderer:s,init:o}=Ih(n);return a.parser&&(a.parser.yy=i),i.clear?.(),o?.(r),t.title&&i.setDiagramTitle?.(t.title),await a.parse(e),new HGe(n,e,i,a,s)}async render(e,t){await this.renderer.draw(this.text,e,t,this)}getParser(){return this.parser}getType(){return this.type}},lGe=(Oc(),[]),cGe=mt(()=>{lGe.forEach(e=>{e()}),lGe=[]},"attachFunctions"),hGe=(e(),mt(e=>e.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart(),"cleanupComments"));function uGe(e){var t,r,n=e.match($c);return n?(r={},(t="object"!=typeof(t=$9(n[1],{schema:B9})??{})||Array.isArray(t)?{}:t).displayMode&&(r.displayMode=t.displayMode.toString()),t.title&&(r.title=t.title.toString()),t.config&&(r.config=t.config),{text:e.slice(n[0].length),metadata:r}):{text:e,metadata:{}}}ih(),F9(),mt(uGe,"extractFrontMatter"),iS();var dGe=mt(e=>e.replace(/\r\n?/g,`
`).replace(/<(\w+)([^>]*)>/g,(e,t,r)=>"<"+t+r.replace(/="([^"]*)"/g,"='$1'")+">"),"cleanupText"),dGe=mt(e=>{var{text:e,metadata:t}=hGe(e),{displayMode:t,title:r,config:n={}}=t;return t&&(n.gantt||(n.gantt={}),n.gantt.displayMode=t),{title:r,config:n,text:e}},"processFrontmatter"),pGe=mt(e=>{var t=e_.detectInit(e)??{},r=e_.detectDirective(e,"wrap");return Array.isArray(r)?t.wrap=r.some(({type:e})=>"wrap"===e):"wrap"===r?.type&&(t.wrap=!0),{text:OC(e),directive:t}},"processDirectives");function gGe(e){var t=uGe(e),t=dGe(t),r=pGe(t.text),n=_C(t.config,r.directive);return{code:e=cGe(r.text),title:t.title,config:n}}function fGe(e){return e=(new TextEncoder).encode(e),e=Array.from(e,e=>String.fromCodePoint(e)).join(""),btoa(e)}mt(gGe,"preprocessDiagram"),ch(),Qr(),i_(),mt(fGe,"toBase64");var mGe=["foreignobject"],yGe=["dominant-baseline"];function vGe(e){return e=gGe(e),lr(),or(e.config??{}),e}async function xGe(e,t){mze();try{var{code:r,config:n}=vGe(e);return{diagramType:(await LGe(r)).type,config:n}}catch(e){if(t?.suppressErrors)return!1;throw e}}mt(vGe,"processAndSetConfigs"),mt(xGe,"parse");var bGe=mt((e,t,r=[])=>` `).replace(/<(\w+)([^>]*)>/g,(e,t,r)=>"<"+t+r.replace(/="([^"]*)"/g,"='$1'")+">"),"cleanupText"),pGe=mt(e=>{var{text:e,metadata:t}=uGe(e),{displayMode:t,title:r,config:n={}}=t;return t&&(n.gantt||(n.gantt={}),n.gantt.displayMode=t),{title:r,config:n,text:e}},"processFrontmatter"),gGe=mt(e=>{var t=eS.detectInit(e)??{},r=eS.detectDirective(e,"wrap");return Array.isArray(r)?t.wrap=r.some(({type:e})=>"wrap"===e):"wrap"===r?.type&&(t.wrap=!0),{text:OC(e),directive:t}},"processDirectives");function fGe(e){var t=dGe(e),t=pGe(t),r=gGe(t.text),n=SC(t.config,r.directive);return{code:e=hGe(r.text),title:t.title,config:n}}function mGe(e){return e=(new TextEncoder).encode(e),e=Array.from(e,e=>String.fromCodePoint(e)).join(""),btoa(e)}mt(fGe,"preprocessDiagram"),ch(),Qr(),iS(),mt(mGe,"toBase64");var yGe=["foreignobject"],vGe=["dominant-baseline"];function xGe(e){return e=fGe(e),lr(),or(e.config??{}),e}async function bGe(e,t){yze();try{var{code:r,config:n}=xGe(e);return{diagramType:(await NGe(r)).type,config:n}}catch(e){if(t?.suppressErrors)return!1;throw e}}mt(xGe,"processAndSetConfigs"),mt(bGe,"parse");var wGe=mt((e,t,r=[])=>`
.${e} ${t} { ${r.join(" !important; ")} !important; }`,"cssImportantStyles"),wGe=mt((t,r=new Map)=>{let n="";if(void 0!==t.themeCSS&&(n+=` .${e} ${t} { ${r.join(" !important; ")} !important; }`,"cssImportantStyles"),kGe=mt((t,r=new Map)=>{let n="";if(void 0!==t.themeCSS&&(n+=`
`+t.themeCSS),void 0!==t.fontFamily&&(n+=` `+t.themeCSS),void 0!==t.fontFamily&&(n+=`
:root { --mermaid-font-family: ${t.fontFamily}}`),void 0!==t.altFontFamily&&(n+=` :root { --mermaid-font-family: ${t.fontFamily}}`),void 0!==t.altFontFamily&&(n+=`
:root { --mermaid-alt-font-family: ${t.altFontFamily}}`),r instanceof Map){let e=t.htmlLabels??t.flowchart?.htmlLabels?["> *","span"]:["rect","polygon","ellipse","circle","path"];r.forEach(t=>{Cj(t.styles)||e.forEach(e=>{n+=bGe(t.id,e,t.styles)}),Cj(t.textStyles)||(n+=bGe(t.id,"tspan",(t?.textStyles||[]).map(e=>e.replace("color","fill"))))})}return n},"createCssStyles"),kGe=mt((e,t,r,n)=>(r=wGe(e,r),rGe(Zze(n+`{${rh(t,r,e.themeVariables)}}`),nGe)),"createUserStyles"),TGe=mt((e="",t,r)=>{let n=e;return r||t||(n=n.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,'marker-end="url(#')),n=(n=r_(n)).replace(/<br>/g,"<br/>")},"cleanUpSvgCode"),EGe=mt((e="",t)=>`<iframe style="width:100%;height:${t?.viewBox?.baseVal?.height?t.viewBox.baseVal.height+"px":"100%"};border:0;margin:0;" src="data:text/html;charset=UTF-8;base64,${fGe(`<body style="margin:0">${e}</body>`)}" sandbox="allow-top-navigation-by-user-activation allow-popups"> :root { --mermaid-alt-font-family: ${t.altFontFamily}}`),r instanceof Map){let e=t.htmlLabels??t.flowchart?.htmlLabels?["> *","span"]:["rect","polygon","ellipse","circle","path"];r.forEach(t=>{Cj(t.styles)||e.forEach(e=>{n+=wGe(t.id,e,t.styles)}),Cj(t.textStyles)||(n+=wGe(t.id,"tspan",(t?.textStyles||[]).map(e=>e.replace("color","fill"))))})}return n},"createCssStyles"),TGe=mt((e,t,r,n)=>(r=kGe(e,r),nGe(Qze(n+`{${rh(t,r,e.themeVariables)}}`),iGe)),"createUserStyles"),EGe=mt((e="",t,r)=>{let n=e;return r||t||(n=n.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,'marker-end="url(#')),n=(n=rS(n)).replace(/<br>/g,"<br/>")},"cleanUpSvgCode"),CGe=mt((e="",t)=>`<iframe style="width:100%;height:${t?.viewBox?.baseVal?.height?t.viewBox.baseVal.height+"px":"100%"};border:0;margin:0;" src="data:text/html;charset=UTF-8;base64,${mGe(`<body style="margin:0">${e}</body>`)}" sandbox="allow-top-navigation-by-user-activation allow-popups">
The "iframe" tag is not supported by your browser. The "iframe" tag is not supported by your browser.
</iframe>`,"putIntoIFrame"),CGe=mt((e,t,r,n,i)=>{var a=e.append("div"),r=(a.attr("id",r),n&&a.attr("style",n),a.append("svg").attr("id",t).attr("width","100%").attr("xmlns","http://www.w3.org/2000/svg"));return i&&r.attr("xmlns:xlink",i),r.append("g"),e},"appendDivSvgG");function _Ge(e,t){return e.append("iframe").attr("id",t).attr("style","width: 100%; height: 100%;").attr("sandbox","")}mt(_Ge,"sandboxedIframe");var SGe=mt((e,t,r,n)=>{e.getElementById(t)?.remove(),e.getElementById(r)?.remove(),e.getElementById(n)?.remove()},"removeExistingElements"),OFe=mt(async function(e,t,r){mze();var n=vGe(t),i=(t=n.code,ar());D.debug(i),t.length>(i?.maxTextSize??5e4)&&(t="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa");let a="#"+e,s="i"+e,o="#"+s,l="d"+e,c="#"+l,h=mt(()=>{var e=H(d?o:c).node();e&&"remove"in e&&e.remove()},"removeTempElements"),u=H("body"),d="sandbox"===i.securityLevel,p="loose"===i.securityLevel,g=i.fontFamily;void 0!==r?(r&&(r.innerHTML=""),d?(y=_Ge(H(r),s),(u=H(y.nodes()[0].contentDocument.body)).node().style.margin=0):u=H(r),CGe(u,e,l,"font-family: "+g,"http://www.w3.org/1999/xlink")):(SGe(document,e,l,s),d?(y=_Ge(H("body"),s),(u=H(y.nodes()[0].contentDocument.body)).node().style.margin=0):u=H("body"),CGe(u,e,l));let f,m;try{f=await sGe.fromText(t,{title:n.title})}catch(r){if(i.suppressErrorRendering)throw h(),r;f=await sGe.fromText("error"),m=r}var r=u.select(c).node(),y=f.type,r=(n=r.firstChild).firstChild,v=f.renderer.getClasses?.(t,f),v=kGe(i,y,v,a),x=document.createElement("style");x.innerHTML=v,n.insertBefore(x,r);try{await f.renderer.draw(t,e,vEe.version,f)}catch(r){throw i.suppressErrorRendering?h():tze.draw(t,e,vEe.version),r}NGe(y,u.select(c+" svg"),f.db.getAccTitle?.(),f.db.getAccDescription?.()),u.select(`[id="${e}"]`).selectAll("foreignobject > *").attr("xmlns","http://www.w3.org/1999/xhtml");let b=u.select(c).node().innerHTML;if(D.debug("config.arrowMarkerAbsolute",i.arrowMarkerAbsolute),b=TGe(b,d,fc(i.arrowMarkerAbsolute)),d?(v=u.select(c+" svg").node(),b=EGe(b,v)):p||(b=si.sanitize(b,{ADD_TAGS:mGe,ADD_ATTR:yGe,HTML_INTEGRATION_POINTS:{foreignobject:!0}})),lGe(),m)throw m;return h(),{diagramType:y,svg:b,bindFunctions:f.db.bindFunctions}},"render");function AGe(e={}){(e=Ae({},e))?.fontFamily&&!e.themeVariables?.fontFamily&&(e.themeVariables||(e.themeVariables={}),e.themeVariables.fontFamily=e.fontFamily),tr(e),e?.theme&&e.theme in zt?e.themeVariables=zt[e.theme].getThemeVariables(e.themeVariables):e&&(e.themeVariables=zt.default.getThemeVariables(e.themeVariables)),e="object"==typeof e?er(e):nr(),Ie(e.logLevel),mze()}mt(AGe,"initialize");var LGe=mt((e,t={})=>(e=gGe(e).code,sGe.fromText(e,t)),"getDiagramFromText");function NGe(e,t,r,n){iGe(t,e),aGe(t,r,n,t.attr("id"))}mt(NGe,"addA11yInfo");var IGe=Object.freeze({render:OFe,parse:xGe,getDiagramFromText:LGe,initialize:AGe,getConfig:ar,setConfig:ir,getSiteConfig:nr,updateSiteConfig:rr,reset:mt(()=>{lr()},"reset"),globalReset:mt(()=>{lr(Vt)},"globalReset"),defaultConfig:Vt}),RGe=(Ie(ar().logLevel),lr(ar()),Qhe(),i_(),mt((e,t,r)=>{D.warn(e),CC(e)?(r&&r(e.str,e.hash),t.push({...e,message:e.str,error:e})):(r&&r(e),e instanceof Error&&t.push({str:e.message,message:e.message,hash:e.name,error:e}))},"handleError")),MGe=mt(async function(t={querySelector:".mermaid"}){try{await DGe(t)}catch(e){if(CC(e)&&D.error(e.str),jGe.parseError&&jGe.parseError(e),!t.suppressErrors)throw D.error("Use the suppressErrors option to suppress these errors"),e}},"run"),DGe=mt(async function({postRenderCallback:e,querySelector:t,nodes:r}={querySelector:".mermaid"}){var n=IGe.getConfig();D.debug(`${e?"":"No "}Callback function found`);let i;if(r)i=r;else{if(!t)throw new Error("Nodes and querySelector are both undefined");i=document.querySelectorAll(t)}D.debug(`Found ${i.length} diagrams`),void 0!==n?.startOnLoad&&(D.debug("Start On Load: "+n?.startOnLoad),IGe.updateSiteConfig({startOnLoad:n?.startOnLoad}));var a,s=new e_.InitIDGenerator(n.deterministicIds,n.deterministicIDSeed),o=[];for(a of Array.from(i))if(D.info("Rendering diagram: "+a.id),!a.getAttribute("data-processed")){a.setAttribute("data-processed","true");var l="mermaid-"+s.next(),c=a.innerHTML,h=(c=Bc(e_.entityDecode(c)).trim().replace(/<br\s*\/?>/gi,"<br/>"),e_.detectInit(c));h&&D.debug("Detected early reinit: ",h);try{var{svg:u,bindFunctions:d}=await UGe(l,c,a);a.innerHTML=u,e&&await e(l),d&&d(a)}catch(e){RGe(e,o,jGe.parseError)}}if(0<o.length)throw o[0]},"runThrowsErrors"),OGe=mt(function(e){IGe.initialize(e)},"initialize"),b=mt(async function(e,t,r){D.warn("mermaid.init is deprecated. Please use run instead."),e&&OGe(e),e={postRenderCallback:r,querySelector:".mermaid"},"string"==typeof t?e.querySelector=t:t&&(t instanceof HTMLElement?e.nodes=[t]:e.nodes=t),await MGe(e)},"init"),OFe=mt(async(e,{lazyLoad:t=!0}={})=>{mze(),jc(...e),!1===t&&await yze()},"registerExternalDiagrams"),PGe=mt(function(){jGe.startOnLoad&&IGe.getConfig().startOnLoad&&jGe.run().catch(e=>D.error("Mermaid fail Line truncated </iframe>`,"putIntoIFrame"),SGe=mt((e,t,r,n,i)=>{var a=e.append("div"),r=(a.attr("id",r),n&&a.attr("style",n),a.append("svg").attr("id",t).attr("width","100%").attr("xmlns","http://www.w3.org/2000/svg"));return i&&r.attr("xmlns:xlink",i),r.append("g"),e},"appendDivSvgG");function _Ge(e,t){return e.append("iframe").attr("id",t).attr("style","width: 100%; height: 100%;").attr("sandbox","")}mt(_Ge,"sandboxedIframe");var AGe=mt((e,t,r,n)=>{e.getElementById(t)?.remove(),e.getElementById(r)?.remove(),e.getElementById(n)?.remove()},"removeExistingElements"),PFe=mt(async function(e,t,r){yze();var n=xGe(t),i=(t=n.code,ar());D.debug(i),t.length>(i?.maxTextSize??5e4)&&(t="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa");let a="#"+e,s="i"+e,o="#"+s,l="d"+e,c="#"+l,h=mt(()=>{var e=H(d?o:c).node();e&&"remove"in e&&e.remove()},"removeTempElements"),u=H("body"),d="sandbox"===i.securityLevel,p="loose"===i.securityLevel,g=i.fontFamily;void 0!==r?(r&&(r.innerHTML=""),d?(y=_Ge(H(r),s),(u=H(y.nodes()[0].contentDocument.body)).node().style.margin=0):u=H(r),SGe(u,e,l,"font-family: "+g,"http://www.w3.org/1999/xlink")):(AGe(document,e,l,s),d?(y=_Ge(H("body"),s),(u=H(y.nodes()[0].contentDocument.body)).node().style.margin=0):u=H("body"),SGe(u,e,l));let f,m;try{f=await oGe.fromText(t,{title:n.title})}catch(r){if(i.suppressErrorRendering)throw h(),r;f=await oGe.fromText("error"),m=r}var r=u.select(c).node(),y=f.type,r=(n=r.firstChild).firstChild,v=f.renderer.getClasses?.(t,f),v=TGe(i,y,v,a),x=document.createElement("style");x.innerHTML=v,n.insertBefore(x,r);try{await f.renderer.draw(t,e,xEe.version,f)}catch(r){throw i.suppressErrorRendering?h():rze.draw(t,e,xEe.version),r}IGe(y,u.select(c+" svg"),f.db.getAccTitle?.(),f.db.getAccDescription?.()),u.select(`[id="${e}"]`).selectAll("foreignobject > *").attr("xmlns","http://www.w3.org/1999/xhtml");let b=u.select(c).node().innerHTML;if(D.debug("config.arrowMarkerAbsolute",i.arrowMarkerAbsolute),b=EGe(b,d,fc(i.arrowMarkerAbsolute)),d?(v=u.select(c+" svg").node(),b=CGe(b,v)):p||(b=si.sanitize(b,{ADD_TAGS:yGe,ADD_ATTR:vGe,HTML_INTEGRATION_POINTS:{foreignobject:!0}})),cGe(),m)throw m;return h(),{diagramType:y,svg:b,bindFunctions:f.db.bindFunctions}},"render");function LGe(e={}){(e=Ae({},e))?.fontFamily&&!e.themeVariables?.fontFamily&&(e.themeVariables||(e.themeVariables={}),e.themeVariables.fontFamily=e.fontFamily),tr(e),e?.theme&&e.theme in zt?e.themeVariables=zt[e.theme].getThemeVariables(e.themeVariables):e&&(e.themeVariables=zt.default.getThemeVariables(e.themeVariables)),e="object"==typeof e?er(e):nr(),Ie(e.logLevel),yze()}mt(LGe,"initialize");var NGe=mt((e,t={})=>(e=fGe(e).code,oGe.fromText(e,t)),"getDiagramFromText");function IGe(e,t,r,n){aGe(t,e),sGe(t,r,n,t.attr("id"))}mt(IGe,"addA11yInfo");var RGe=Object.freeze({render:PFe,parse:bGe,getDiagramFromText:NGe,initialize:LGe,getConfig:ar,setConfig:ir,getSiteConfig:nr,updateSiteConfig:rr,reset:mt(()=>{lr()},"reset"),globalReset:mt(()=>{lr(Vt)},"globalReset"),defaultConfig:Vt}),MGe=(Ie(ar().logLevel),lr(ar()),Qhe(),iS(),mt((e,t,r)=>{D.warn(e),CC(e)?(r&&r(e.str,e.hash),t.push({...e,message:e.str,error:e})):(r&&r(e),e instanceof Error&&t.push({str:e.message,message:e.message,hash:e.name,error:e}))},"handleError")),DGe=mt(async function(t={querySelector:".mermaid"}){try{await OGe(t)}catch(e){if(CC(e)&&D.error(e.str),YGe.parseError&&YGe.parseError(e),!t.suppressErrors)throw D.error("Use the suppressErrors option to suppress these errors"),e}},"run"),OGe=mt(async function({postRenderCallback:e,querySelector:t,nodes:r}={querySelector:".mermaid"}){var n=RGe.getConfig();D.debug(`${e?"":"No "}Callback function found`);let i;if(r)i=r;else{if(!t)throw new Error("Nodes and querySelector are both undefined");i=document.querySelectorAll(t)}D.debug(`Found ${i.length} diagrams`),void 0!==n?.startOnLoad&&(D.debug("Start On Load: "+n?.startOnLoad),RGe.updateSiteConfig({startOnLoad:n?.startOnLoad}));var a,s=new eS.InitIDGenerator(n.deterministicIds,n.deterministicIDSeed),o=[];for(a of Array.from(i))if(D.info("Rendering diagram: "+a.id),!a.getAttribute("data-processed")){a.setAttribute("data-processed","true");var l="mermaid-"+s.next(),c=a.innerHTML,h=(c=Bc(eS.entityDecode(c)).trim().replace(/<br\s*\/?>/gi,"<br/>"),eS.detectInit(c));h&&D.debug("Detected early reinit: ",h);try{var{svg:u,bindFunctions:d}=await qGe(l,c,a);a.innerHTML=u,e&&await e(l),d&&d(a)}catch(e){MGe(e,o,YGe.parseError)}}if(0<o.length)throw o[0]},"runThrowsErrors"),PGe=mt(function(e){RGe.initialize(e)},"initialize"),b=mt(async function(e,t,r){D.warn("mermaid.init is deprecated. Please use run instead."),e&&PGe(e),e={postRenderCallback:r,querySelector:".mermaid"},"string"==typeof t?e.querySelector=t:t&&(t instanceof HTMLElement?e.nodes=[t]:e.nodes=t),await DGe(e)},"init"),PFe=mt(async(e,{lazyLoad:t=!0}={})=>{yze(),jc(...e),!1===t&&await vze()},"registerExternalDiagrams"),BGe=mt(function(){YGe.startOnLoad&&RGe.getConfig().startOnLoad&&YGe.run().catch(e=>D.error("Mermaid fail Line truncated