"use strict";var __esbuild_esm_mermaid_nm;(__esbuild_esm_mermaid_nm||={}).mermaid=(()=>{var hCe=Object.create;var dg=Object.defineProperty;var dCe=Object.getOwnPropertyDescriptor;var fCe=Object.getOwnPropertyNames;var pCe=Object.getPrototypeOf,mCe=Object.prototype.hasOwnProperty;var a=(e,t)=>dg(e,"name",{value:t,configurable:!0});var v=(e,t)=>()=>(e&&(t=e(e=0)),t);var ju=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),tr=(e,t)=>{for(var r in t)dg(e,r,{get:t[r],enumerable:!0})},D8=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of fCe(t))!mCe.call(e,n)&&n!==r&&dg(e,n,{get:()=>t[n],enumerable:!(i=dCe(t,n))||i.enumerable});return e};var Wa=(e,t,r)=>(r=e!=null?hCe(pCe(e)):{},D8(t||!e||!e.__esModule?dg(r,"default",{value:e,enumerable:!0}):r,e)),gCe=e=>D8(dg({},"__esModule",{value:!0}),e);var yCe,xf,Aw,I8,Ox=v(()=>{"use strict";yCe=Object.freeze({left:0,top:0,width:16,height:16}),xf=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),Aw=Object.freeze({...yCe,...xf}),I8=Object.freeze({...Aw,body:"",hidden:!1})});var xCe,N8,M8=v(()=>{"use strict";Ox();xCe=Object.freeze({width:null,height:null}),N8=Object.freeze({...xCe,...xf})});var Rw,Px,O8=v(()=>{"use strict";Rw=a((e,t,r,i="")=>{let n=e.split(":");if(e.slice(0,1)==="@"){if(n.length<2||n.length>3)return null;i=n.shift().slice(1)}if(n.length>3||!n.length)return null;if(n.length>1){let l=n.pop(),u=n.pop(),h={provider:n.length>0?n[0]:i,prefix:u,name:l};return t&&!Px(h)?null:h}let s=n[0],o=s.split("-");if(o.length>1){let l={provider:i,prefix:o.shift(),name:o.join("-")};return t&&!Px(l)?null:l}if(r&&i===""){let l={provider:i,prefix:"",name:s};return t&&!Px(l,r)?null:l}return null},"stringToIcon"),Px=a((e,t)=>e?!!((t&&e.prefix===""||e.prefix)&&e.name):!1,"validateIconName")});function P8(e,t){let r={};!e.hFlip!=!t.hFlip&&(r.hFlip=!0),!e.vFlip!=!t.vFlip&&(r.vFlip=!0);let i=((e.rotate||0)+(t.rotate||0))%4;return i&&(r.rotate=i),r}var B8=v(()=>{"use strict";a(P8,"mergeIconTransformations")});function Lw(e,t){let r=P8(e,t);for(let i in I8)i in xf?i in e&&!(i in r)&&(r[i]=xf[i]):i in t?r[i]=t[i]:i in e&&(r[i]=e[i]);return r}var $8=v(()=>{"use strict";Ox();B8();a(Lw,"mergeIconData")});function F8(e,t){let r=e.icons,i=e.aliases||Object.create(null),n=Object.create(null);function s(o){if(r[o])return n[o]=[];if(!(o in n)){n[o]=null;let l=i[o]&&i[o].parent,u=l&&s(l);u&&(n[o]=[l].concat(u))}return n[o]}return a(s,"resolve"),(t||Object.keys(r).concat(Object.keys(i))).forEach(s),n}var V8=v(()=>{"use strict";a(F8,"getIconsTree")});function G8(e,t,r){let i=e.icons,n=e.aliases||Object.create(null),s={};function o(l){s=Lw(i[l]||n[l],s)}return a(o,"parse"),o(t),r.forEach(o),Lw(e,s)}function Dw(e,t){if(e.icons[t])return G8(e,t,[]);let r=F8(e,[t])[t];return r?G8(e,t,r):null}var W8=v(()=>{"use strict";$8();V8();a(G8,"internalGetIconData");a(Dw,"getIconData")});function Iw(e,t,r){if(t===1)return e;if(r=r||100,typeof e=="number")return Math.ceil(e*t*r)/r;if(typeof e!="string")return e;let i=e.split(bCe);if(i===null||!i.length)return e;let n=[],s=i.shift(),o=TCe.test(s);for(;;){if(o){let l=parseFloat(s);isNaN(l)?n.push(s):n.push(Math.ceil(l*t*r)/r)}else n.push(s);if(s=i.shift(),s===void 0)return n.join("");o=!o}}var bCe,TCe,z8=v(()=>{"use strict";bCe=/(-?[0-9.]*[0-9]+[0-9.]*)/g,TCe=/^-?[0-9.]*[0-9]+[0-9.]*$/g;a(Iw,"calculateSize")});function kCe(e,t="defs"){let r="",i=e.indexOf("<"+t);for(;i>=0;){let n=e.indexOf(">",i),s=e.indexOf("</"+t);if(n===-1||s===-1)break;let o=e.indexOf(">",s);if(o===-1)break;r+=e.slice(n+1,s).trim(),e=e.slice(0,i).trim()+e.slice(o+1)}return{defs:r,content:e}}function CCe(e,t){return e?"<defs>"+e+"</defs>"+t:t}function q8(e,t,r){let i=kCe(e);return CCe(i.defs,t+i.content+r)}var j8=v(()=>{"use strict";a(kCe,"splitSVGDefs");a(CCe,"mergeDefsAndContent");a(q8,"wrapSVGContent")});function Nw(e,t){let r={...Aw,...e},i={...N8,...t},n={left:r.left,top:r.top,width:r.width,height:r.height},s=r.body;[r,i].forEach(x=>{let b=[],T=x.hFlip,k=x.vFlip,C=x.rotate;T?k?C+=2:(b.push("translate("+(n.width+n.left).toString()+" "+(0-n.top).toString()+")"),b.push("scale(-1 1)"),n.top=n.left=0):k&&(b.push("translate("+(0-n.left).toString()+" "+(n.height+n.top).toString()+")"),b.push("scale(1 -1)"),n.top=n.left=0);let S;switch(C<0&&(C-=Math.floor(C/4)*4),C=C%4,C){case 1:S=n.height/2+n.top,b.unshift("rotate(90 "+S.toString()+" "+S.toString()+")");break;case 2:b.unshift("rotate(180 "+(n.width/2+n.left).toString()+" "+(n.height/2+n.top).toString()+")");break;case 3:S=n.width/2+n.left,b.unshift("rotate(-90 "+S.toString()+" "+S.toString()+")");break}C%2===1&&(n.left!==n.top&&(S=n.left,n.left=n.top,n.top=S),n.width!==n.height&&(S=n.width,n.width=n.height,n.height=S)),b.length&&(s=q8(s,'<g transform="'+b.join(" ")+'">',"</g>"))});let o=i.width,l=i.height,u=n.width,h=n.height,d,f;o===null?(f=l===null?"1em":l==="auto"?h:l,d=Iw(f,u/h)):(d=o==="auto"?u:o,f=l===null?Iw(d,h/u):l==="auto"?h:l);let p={},m=a((x,b)=>{vCe(b)||(p[x]=b.toString())},"setAttr");m("width",d),m("height",f);let g=[n.left,n.top,u,h];return p.viewBox=g.join(" "),{attributes:p,viewBox:g,body:s}}var vCe,U8=v(()=>{"use strict";Ox();M8();z8();j8();vCe=a(e=>e==="unset"||e==="undefined"||e==="none","isUnsetKeyword");a(Nw,"iconToSVG")});function Mw(e,t=_Ce){let r=[],i;for(;i=SCe.exec(e);)r.push(i[1]);if(!r.length)return e;let n="suffix"+(Math.random()*16777216|Date.now()).toString(16);return r.forEach(s=>{let o=typeof t=="function"?t(s):t+(wCe++).toString(),l=s.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+l+')([")]|\\.[a-z])',"g"),"$1"+o+n+"$3")}),e=e.replace(new RegExp(n,"g"),""),e}var SCe,_Ce,wCe,H8=v(()=>{"use strict";SCe=/\sid="(\S+)"/g,_Ce="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16),wCe=0;a(Mw,"replaceIDs")});function Ow(e,t){let r=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(let i in t)r+=" "+i+'="'+t[i]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+r+">"+e+"</svg>"}var Y8=v(()=>{"use strict";a(Ow,"iconToHTML")});var K8=v(()=>{"use strict";O8();W8();U8();H8();Y8()});var Pw,ri,bf=v(()=>{"use strict";Pw=a((e,t,{depth:r=2,clobber:i=!1}={})=>{let n={depth:r,clobber:i};return Array.isArray(t)&&!Array.isArray(e)?(t.forEach(s=>Pw(e,s,n)),e):Array.isArray(t)&&Array.isArray(e)?(t.forEach(s=>{e.includes(s)||e.push(s)}),e):e===void 0||r<=0?e!=null&&typeof e=="object"&&typeof t=="object"?Object.assign(e,t):t:(t!==void 0&&typeof e=="object"&&typeof t=="object"&&Object.keys(t).forEach(s=>{typeof t[s]=="object"&&t[s]!==null&&(e[s]===void 0||typeof e[s]=="object")?(e[s]===void 0&&(e[s]=Array.isArray(t[s])?[]:{}),e[s]=Pw(e[s],t[s],{depth:r-1,clobber:i})):(i||typeof e[s]!="object"&&typeof t[s]!="object")&&(e[s]=t[s])}),e)},"assignWithDepth"),ri=Pw});var Bx=ju((Bw,$w)=>{"use strict";(function(e,t){typeof Bw=="object"&&typeof $w<"u"?$w.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self).dayjs=t()})(Bw,(function(){"use strict";var e=1e3,t=6e4,r=36e5,i="millisecond",n="second",s="minute",o="hour",l="day",u="week",h="month",d="quarter",f="year",p="date",m="Invalid Date",g=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,x=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,b={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:a(function(F){var A=["th","st","nd","rd"],D=F%100;return"["+F+(A[(D-20)%10]||A[D]||A[0])+"]"},"ordinal")},T=a(function(F,A,D){var R=String(F);return!R||R.length>=A?F:""+Array(A+1-R.length).join(D)+F},"m"),k={s:T,z:a(function(F){var A=-F.utcOffset(),D=Math.abs(A),R=Math.floor(D/60),N=D%60;return(A<=0?"+":"-")+T(R,2,"0")+":"+T(N,2,"0")},"z"),m:a(function F(A,D){if(A.date()<D.date())return-F(D,A);var R=12*(D.year()-A.year())+(D.month()-A.month()),N=A.clone().add(R,h),$=D-N<0,E=A.clone().add(R+($?-1:1),h);return+(-(R+(D-N)/($?N-E:E-N))||0)},"t"),a:a(function(F){return F<0?Math.ceil(F)||0:Math.floor(F)},"a"),p:a(function(F){return{M:h,y:f,w:u,d:l,D:p,h:o,m:s,s:n,ms:i,Q:d}[F]||String(F||"").toLowerCase().replace(/s$/,"")},"p"),u:a(function(F){return F===void 0},"u")},C="en",S={};S[C]=b;var w="$isDayjsObject",_=a(function(F){return F instanceof G||!(!F||!F[w])},"S"),L=a(function F(A,D,R){var N;if(!A)return C;if(typeof A=="string"){var $=A.toLowerCase();S[$]&&(N=$),D&&(S[$]=D,N=$);var E=A.split("-");if(!N&&E.length>1)return F(E[0])}else{var M=A.name;S[M]=A,N=M}return!R&&N&&(C=N),N||!R&&C},"t"),I=a(function(F,A){if(_(F))return F.clone();var D=typeof A=="object"?A:{};return D.date=F,D.args=arguments,new G(D)},"O"),B=k;B.l=L,B.i=_,B.w=function(F,A){return I(F,{locale:A.$L,utc:A.$u,x:A.$x,$offset:A.$offset})};var G=(function(){function F(D){this.$L=L(D.locale,null,!0),this.parse(D),this.$x=this.$x||D.x||{},this[w]=!0}a(F,"M");var A=F.prototype;return A.parse=function(D){this.$d=(function(R){var N=R.date,$=R.utc;if(N===null)return new Date(NaN);if(B.u(N))return new Date;if(N instanceof Date)return new Date(N);if(typeof N=="string"&&!/Z$/i.test(N)){var E=N.match(g);if(E){var M=E[2]-1||0,V=(E[7]||"0").substring(0,3);return $?new Date(Date.UTC(E[1],M,E[3]||1,E[4]||0,E[5]||0,E[6]||0,V)):new Date(E[1],M,E[3]||1,E[4]||0,E[5]||0,E[6]||0,V)}}return new Date(N)})(D),this.init()},A.init=function(){var D=this.$d;this.$y=D.getFullYear(),this.$M=D.getMonth(),this.$D=D.getDate(),this.$W=D.getDay(),this.$H=D.getHours(),this.$m=D.getMinutes(),this.$s=D.getSeconds(),this.$ms=D.getMilliseconds()},A.$utils=function(){return B},A.isValid=function(){return this.$d.toString()!==m},A.isSame=function(D,R){var N=I(D);return this.startOf(R)<=N&&N<=this.endOf(R)},A.isAfter=function(D,R){return I(D)<this.startOf(R)},A.isBefore=function(D,R){return this.endOf(R)<I(D)},A.$g=function(D,R,N){return B.u(D)?this[R]:this.set(N,D)},A.unix=function(){return Math.floor(this.valueOf()/1e3)},A.valueOf=function(){return this.$d.getTime()},A.startOf=function(D,R){var N=this,$=!!B.u(R)||R,E=B.p(D),M=a(function(X,de){var le=B.w(N.$u?Date.UTC(N.$y,de,X):new Date(N.$y,de,X),N);return $?le:le.endOf(l)},"l"),V=a(function(X,de){return B.w(N.toDate()[X].apply(N.toDate("s"),($?[0,0,0,0]:[23,59,59,999]).slice(de)),N)},"$"),O=this.$W,z=this.$M,U=this.$D,K="set"+(this.$u?"UTC":"");switch(E){case f:return $?M(1,0):M(31,11);case h:return $?M(1,z):M(0,z+1);case u:var j=this.$locale().weekStart||0,ae=(O<j?O+7:O)-j;return M($?U-ae:U+(6-ae),z);case l:case p:return V(K+"Hours",0);case o:return V(K+"Minutes",1);case s:return V(K+"Seconds",2);case n:return V(K+"Milliseconds",3);default:return this.clone()}},A.endOf=function(D){return this.startOf(D,!1)},A.$set=function(D,R){var N,$=B.p(D),E="set"+(this.$u?"UTC":""),M=(N={},N[l]=E+"Date",N[p]=E+"Date",N[h]=E+"Month",N[f]=E+"FullYear",N[o]=E+"Hours",N[s]=E+"Minutes",N[n]=E+"Seconds",N[i]=E+"Milliseconds",N)[$],V=$===l?this.$D+(R-this.$W):R;if($===h||$===f){var O=this.clone().set(p,1);O.$d[M](V),O.init(),this.$d=O.set(p,Math.min(this.$D,O.daysInMonth())).$d}else M&&this.$d[M](V);return this.init(),this},A.set=function(D,R){return this.clone().$set(D,R)},A.get=function(D){return this[B.p(D)]()},A.add=function(D,R){var N,$=this;D=Number(D);var E=B.p(R),M=a(function(z){var U=I($);return B.w(U.date(U.date()+Math.round(z*D)),$)},"y");if(E===h)return this.set(h,this.$M+D);if(E===f)return this.set(f,this.$y+D);if(E===l)return M(1);if(E===u)return M(7);var V=(N={},N[s]=t,N[o]=r,N[n]=e,N)[E]||1,O=this.$d.getTime()+D*V;return B.w(O,this)},A.subtract=function(D,R){return this.add(-1*D,R)},A.format=function(D){var R=this,N=this.$locale();if(!this.isValid())return N.invalidDate||m;var $=D||"YYYY-MM-DDTHH:mm:ssZ",E=B.z(this),M=this.$H,V=this.$m,O=this.$M,z=N.weekdays,U=N.months,K=N.meridiem,j=a(function(de,le,ge,he){return de&&(de[le]||de(R,$))||ge[le].slice(0,he)},"h"),ae=a(function(de){return B.s(M%12||12,de,"0")},"d"),X=K||function(de,le,ge){var he=de<12?"AM":"PM";return ge?he.toLowerCase():he};return $.replace(x,(function(de,le){return le||(function(ge){switch(ge){case"YY":return String(R.$y).slice(-2);case"YYYY":return B.s(R.$y,4,"0");case"M":return O+1;case"MM":return B.s(O+1,2,"0");case"MMM":return j(N.monthsShort,O,U,3);case"MMMM":return j(U,O);case"D":return R.$D;case"DD":return B.s(R.$D,2,"0");case"d":return String(R.$W);case"dd":return j(N.weekdaysMin,R.$W,z,2);case"ddd":return j(N.weekdaysShort,R.$W,z,3);case"dddd":return z[R.$W];case"H":return String(M);case"HH":return B.s(M,2,"0");case"h":return ae(1);case"hh":return ae(2);case"a":return X(M,V,!0);case"A":return X(M,V,!1);case"m":return String(V);case"mm":return B.s(V,2,"0");case"s":return String(R.$s);case"ss":return B.s(R.$s,2,"0");case"SSS":return B.s(R.$ms,3,"0");case"Z":return E}return null})(de)||E.replace(":","")}))},A.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},A.diff=function(D,R,N){var $,E=this,M=B.p(R),V=I(D),O=(V.utcOffset()-this.utcOffset())*t,z=this-V,U=a(function(){return B.m(E,V)},"D");switch(M){case f:$=U()/12;break;case h:$=U();break;case d:$=U()/3;break;case u:$=(z-O)/6048e5;break;case l:$=(z-O)/864e5;break;case o:$=z/r;break;case s:$=z/t;break;case n:$=z/e;break;default:$=z}return N?$:B.a($)},A.daysInMonth=function(){return this.endOf(h).$D},A.$locale=function(){return S[this.$L]},A.locale=function(D,R){if(!D)return this.$L;var N=this.clone(),$=L(D,R,!0);return $&&(N.$L=$),N},A.clone=function(){return B.w(this.$d,this)},A.toDate=function(){return new Date(this.valueOf())},A.toJSON=function(){return this.isValid()?this.toISOString():null},A.toISOString=function(){return this.$d.toISOString()},A.toString=function(){return this.$d.toUTCString()},F})(),P=G.prototype;return I.prototype=P,[["$ms",i],["$s",n],["$m",s],["$H",o],["$W",l],["$M",h],["$y",f],["$D",p]].forEach((function(F){P[F[1]]=function(A){return this.$g(A,F[0],F[1])}})),I.extend=function(F,A){return F.$i||(F(A,G,I),F.$i=!0),I},I.locale=L,I.isDayjs=_,I.unix=function(F){return I(1e3*F)},I.en=S[C],I.Ls=S,I.p={},I}))});var X8,nl,W,fg,za,nt=v(()=>{"use strict";X8=Wa(Bx(),1),nl={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},W={trace:a((...e)=>{},"trace"),debug:a((...e)=>{},"debug"),info:a((...e)=>{},"info"),warn:a((...e)=>{},"warn"),error:a((...e)=>{},"error"),fatal:a((...e)=>{},"fatal")},fg=a(function(e="fatal"){let t=nl.fatal;typeof e=="string"?e.toLowerCase()in nl&&(t=nl[e]):typeof e=="number"&&(t=e),W.trace=()=>{},W.debug=()=>{},W.info=()=>{},W.warn=()=>{},W.error=()=>{},W.fatal=()=>{},t<=nl.fatal&&(W.fatal=console.error?console.error.bind(console,za("FATAL"),"color: orange"):console.log.bind(console,"\x1B[35m",za("FATAL"))),t<=nl.error&&(W.error=console.error?console.error.bind(console,za("ERROR"),"color: orange"):console.log.bind(console,"\x1B[31m",za("ERROR"))),t<=nl.warn&&(W.warn=console.warn?console.warn.bind(console,za("WARN"),"color: orange"):console.log.bind(console,"\x1B[33m",za("WARN"))),t<=nl.info&&(W.info=console.info?console.info.bind(console,za("INFO"),"color: lightblue"):console.log.bind(console,"\x1B[34m",za("INFO"))),t<=nl.debug&&(W.debug=console.debug?console.debug.bind(console,za("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",za("DEBUG"))),t<=nl.trace&&(W.trace=console.debug?console.debug.bind(console,za("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",za("TRACE")))},"setLogLevel"),za=a(e=>`%c${(0,X8.default)().format("ss.SSS")} : ${e} : `,"format")});var $x,Q8,Z8=v(()=>{"use strict";$x={min:{r:0,g:0,b:0,s:0,l:0,a:0},max:{r:255,g:255,b:255,h:360,s:100,l:100,a:1},clamp:{r:a(e=>e>=255?255:e<0?0:e,"r"),g:a(e=>e>=255?255:e<0?0:e,"g"),b:a(e=>e>=255?255:e<0?0:e,"b"),h:a(e=>e%360,"h"),s:a(e=>e>=100?100:e<0?0:e,"s"),l:a(e=>e>=100?100:e<0?0:e,"l"),a:a(e=>e>=1?1:e<0?0:e,"a")},toLinear:a(e=>{let t=e/255;return e>.03928?Math.pow((t+.055)/1.055,2.4):t/12.92},"toLinear"),hue2rgb:a((e,t,r)=>(r<0&&(r+=1),r>1&&(r-=1),r<.16666666666666666?e+(t-e)*6*r:r<.5?t:r<.6666666666666666?e+(t-e)*(.6666666666666666-r)*6:e),"hue2rgb"),hsl2rgb:a(({h:e,s:t,l:r},i)=>{if(!t)return r*2.55;e/=360,t/=100,r/=100;let n=r<.5?r*(1+t):r+t-r*t,s=2*r-n;switch(i){case"r":return $x.hue2rgb(s,n,e+.3333333333333333)*255;case"g":return $x.hue2rgb(s,n,e)*255;case"b":return $x.hue2rgb(s,n,e-.3333333333333333)*255}},"hsl2rgb"),rgb2hsl:a(({r:e,g:t,b:r},i)=>{e/=255,t/=255,r/=255;let n=Math.max(e,t,r),s=Math.min(e,t,r),o=(n+s)/2;if(i==="l")return o*100;if(n===s)return 0;let l=n-s,u=o>.5?l/(2-n-s):l/(n+s);if(i==="s")return u*100;switch(n){case e:return((t-r)/l+(t<r?6:0))*60;case t:return((r-e)/l+2)*60;case r:return((e-t)/l+4)*60;default:return-1}},"rgb2hsl")},Q8=$x});var ECe,J8,e7=v(()=>{"use strict";ECe={clamp:a((e,t,r)=>t>r?Math.min(t,Math.max(r,e)):Math.min(r,Math.max(t,e)),"clamp"),round:a(e=>Math.round(e*1e10)/1e10,"round")},J8=ECe});var ACe,t7,r7=v(()=>{"use strict";ACe={dec2hex:a(e=>{let t=Math.round(e).toString(16);return t.length>1?t:`0${t}`},"dec2hex")},t7=ACe});var RCe,Dt,so=v(()=>{"use strict";Z8();e7();r7();RCe={channel:Q8,lang:J8,unit:t7},Dt=RCe});var al,Oi,pg=v(()=>{"use strict";so();al={};for(let e=0;e<=255;e++)al[e]=Dt.unit.dec2hex(e);Oi={ALL:0,RGB:1,HSL:2}});var Fw,i7,n7=v(()=>{"use strict";pg();Fw=class{static{a(this,"Type")}constructor(){this.type=Oi.ALL}get(){return this.type}set(t){if(this.type&&this.type!==t)throw new Error("Cannot change both RGB and HSL channels at the same time");this.type=t}reset(){this.type=Oi.ALL}is(t){return this.type===t}},i7=Fw});var Vw,a7,s7=v(()=>{"use strict";so();n7();pg();Vw=class{static{a(this,"Channels")}constructor(t,r){this.color=r,this.changed=!1,this.data=t,this.type=new i7}set(t,r){return this.color=r,this.changed=!1,this.data=t,this.type.type=Oi.ALL,this}_ensureHSL(){let t=this.data,{h:r,s:i,l:n}=t;r===void 0&&(t.h=Dt.channel.rgb2hsl(t,"h")),i===void 0&&(t.s=Dt.channel.rgb2hsl(t,"s")),n===void 0&&(t.l=Dt.channel.rgb2hsl(t,"l"))}_ensureRGB(){let t=this.data,{r,g:i,b:n}=t;r===void 0&&(t.r=Dt.channel.hsl2rgb(t,"r")),i===void 0&&(t.g=Dt.channel.hsl2rgb(t,"g")),n===void 0&&(t.b=Dt.channel.hsl2rgb(t,"b"))}get r(){let t=this.data,r=t.r;return!this.type.is(Oi.HSL)&&r!==void 0?r:(this._ensureHSL(),Dt.channel.hsl2rgb(t,"r"))}get g(){let t=this.data,r=t.g;return!this.type.is(Oi.HSL)&&r!==void 0?r:(this._ensureHSL(),Dt.channel.hsl2rgb(t,"g"))}get b(){let t=this.data,r=t.b;return!this.type.is(Oi.HSL)&&r!==void 0?r:(this._ensureHSL(),Dt.channel.hsl2rgb(t,"b"))}get h(){let t=this.data,r=t.h;return!this.type.is(Oi.RGB)&&r!==void 0?r:(this._ensureRGB(),Dt.channel.rgb2hsl(t,"h"))}get s(){let t=this.data,r=t.s;return!this.type.is(Oi.RGB)&&r!==void 0?r:(this._ensureRGB(),Dt.channel.rgb2hsl(t,"s"))}get l(){let t=this.data,r=t.l;return!this.type.is(Oi.RGB)&&r!==void 0?r:(this._ensureRGB(),Dt.channel.rgb2hsl(t,"l"))}get a(){return this.data.a}set r(t){this.type.set(Oi.RGB),this.changed=!0,this.data.r=t}set g(t){this.type.set(Oi.RGB),this.changed=!0,this.data.g=t}set b(t){this.type.set(Oi.RGB),this.changed=!0,this.data.b=t}set h(t){this.type.set(Oi.HSL),this.changed=!0,this.data.h=t}set s(t){this.type.set(Oi.HSL),this.changed=!0,this.data.s=t}set l(t){this.type.set(Oi.HSL),this.changed=!0,this.data.l=t}set a(t){this.changed=!0,this.data.a=t}},a7=Vw});var LCe,fc,mg=v(()=>{"use strict";s7();LCe=new a7({r:0,g:0,b:0,a:0},"transparent"),fc=LCe});var o7,Uu,Gw=v(()=>{"use strict";mg();pg();o7={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:a(e=>{if(e.charCodeAt(0)!==35)return;let t=e.match(o7.re);if(!t)return;let r=t[1],i=parseInt(r,16),n=r.length,s=n%4===0,o=n>4,l=o?1:17,u=o?8:4,h=s?0:-1,d=o?255:15;return fc.set({r:(i>>u*(h+3)&d)*l,g:(i>>u*(h+2)&d)*l,b:(i>>u*(h+1)&d)*l,a:s?(i&d)*l/255:1},e)},"parse"),stringify:a(e=>{let{r:t,g:r,b:i,a:n}=e;return n<1?`#${al[Math.round(t)]}${al[Math.round(r)]}${al[Math.round(i)]}${al[Math.round(n*255)]}`:`#${al[Math.round(t)]}${al[Math.round(r)]}${al[Math.round(i)]}`},"stringify")},Uu=o7});var Fx,gg,l7=v(()=>{"use strict";so();mg();Fx={re:/^hsla?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(?:deg|grad|rad|turn)?)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(%)?))?\s*?\)$/i,hueRe:/^(.+?)(deg|grad|rad|turn)$/i,_hue2deg:a(e=>{let t=e.match(Fx.hueRe);if(t){let[,r,i]=t;switch(i){case"grad":return Dt.channel.clamp.h(parseFloat(r)*.9);case"rad":return Dt.channel.clamp.h(parseFloat(r)*180/Math.PI);case"turn":return Dt.channel.clamp.h(parseFloat(r)*360)}}return Dt.channel.clamp.h(parseFloat(e))},"_hue2deg"),parse:a(e=>{let t=e.charCodeAt(0);if(t!==104&&t!==72)return;let r=e.match(Fx.re);if(!r)return;let[,i,n,s,o,l]=r;return fc.set({h:Fx._hue2deg(i),s:Dt.channel.clamp.s(parseFloat(n)),l:Dt.channel.clamp.l(parseFloat(s)),a:o?Dt.channel.clamp.a(l?parseFloat(o)/100:parseFloat(o)):1},e)},"parse"),stringify:a(e=>{let{h:t,s:r,l:i,a:n}=e;return n<1?`hsla(${Dt.lang.round(t)}, ${Dt.lang.round(r)}%, ${Dt.lang.round(i)}%, ${n})`:`hsl(${Dt.lang.round(t)}, ${Dt.lang.round(r)}%, ${Dt.lang.round(i)}%)`},"stringify")},gg=Fx});var Vx,Ww,c7=v(()=>{"use strict";Gw();Vx={colors:{aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyanaqua:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",transparent:"#00000000",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},parse:a(e=>{e=e.toLowerCase();let t=Vx.colors[e];if(t)return Uu.parse(t)},"parse"),stringify:a(e=>{let t=Uu.stringify(e);for(let r in Vx.colors)if(Vx.colors[r]===t)return r},"stringify")},Ww=Vx});var u7,yg,h7=v(()=>{"use strict";so();mg();u7={re:/^rgba?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?)))?\s*?\)$/i,parse:a(e=>{let t=e.charCodeAt(0);if(t!==114&&t!==82)return;let r=e.match(u7.re);if(!r)return;let[,i,n,s,o,l,u,h,d]=r;return fc.set({r:Dt.channel.clamp.r(n?parseFloat(i)*2.55:parseFloat(i)),g:Dt.channel.clamp.g(o?parseFloat(s)*2.55:parseFloat(s)),b:Dt.channel.clamp.b(u?parseFloat(l)*2.55:parseFloat(l)),a:h?Dt.channel.clamp.a(d?parseFloat(h)/100:parseFloat(h)):1},e)},"parse"),stringify:a(e=>{let{r:t,g:r,b:i,a:n}=e;return n<1?`rgba(${Dt.lang.round(t)}, ${Dt.lang.round(r)}, ${Dt.lang.round(i)}, ${Dt.lang.round(n)})`:`rgb(${Dt.lang.round(t)}, ${Dt.lang.round(r)}, ${Dt.lang.round(i)})`},"stringify")},yg=u7});var DCe,Pi,sl=v(()=>{"use strict";Gw();l7();c7();h7();pg();DCe={format:{keyword:Ww,hex:Uu,rgb:yg,rgba:yg,hsl:gg,hsla:gg},parse:a(e=>{if(typeof e!="string")return e;let t=Uu.parse(e)||yg.parse(e)||gg.parse(e)||Ww.parse(e);if(t)return t;throw new Error(`Unsupported color format: "${e}"`)},"parse"),stringify:a(e=>!e.changed&&e.color?e.color:e.type.is(Oi.HSL)||e.data.r===void 0?gg.stringify(e):e.a<1||!Number.isInteger(e.r)||!Number.isInteger(e.g)||!Number.isInteger(e.b)?yg.stringify(e):Uu.stringify(e),"stringify")},Pi=DCe});var ICe,Gx,zw=v(()=>{"use strict";so();sl();ICe=a((e,t)=>{let r=Pi.parse(e);for(let i in t)r[i]=Dt.channel.clamp[i](t[i]);return Pi.stringify(r)},"change"),Gx=ICe});var NCe,Ti,qw=v(()=>{"use strict";so();mg();sl();zw();NCe=a((e,t,r=0,i=1)=>{if(typeof e!="number")return Gx(e,{a:t});let n=fc.set({r:Dt.channel.clamp.r(e),g:Dt.channel.clamp.g(t),b:Dt.channel.clamp.b(r),a:Dt.channel.clamp.a(i)});return Pi.stringify(n)},"rgba"),Ti=NCe});var MCe,Hu,d7=v(()=>{"use strict";so();sl();MCe=a((e,t)=>Dt.lang.round(Pi.parse(e)[t]),"channel"),Hu=MCe});var OCe,f7,p7=v(()=>{"use strict";so();sl();OCe=a(e=>{let{r:t,g:r,b:i}=Pi.parse(e),n=.2126*Dt.channel.toLinear(t)+.7152*Dt.channel.toLinear(r)+.0722*Dt.channel.toLinear(i);return Dt.lang.round(n)},"luminance"),f7=OCe});var PCe,m7,g7=v(()=>{"use strict";p7();PCe=a(e=>f7(e)>=.5,"isLight"),m7=PCe});var BCe,Or,y7=v(()=>{"use strict";g7();BCe=a(e=>!m7(e),"isDark"),Or=BCe});var $Ce,Tf,Wx=v(()=>{"use strict";so();sl();$Ce=a((e,t,r)=>{let i=Pi.parse(e),n=i[t],s=Dt.channel.clamp[t](n+r);return n!==s&&(i[t]=s),Pi.stringify(i)},"adjustChannel"),Tf=$Ce});var FCe,Te,x7=v(()=>{"use strict";Wx();FCe=a((e,t)=>Tf(e,"l",t),"lighten"),Te=FCe});var VCe,ke,b7=v(()=>{"use strict";Wx();VCe=a((e,t)=>Tf(e,"l",-t),"darken"),ke=VCe});var GCe,zx,T7=v(()=>{"use strict";Wx();GCe=a((e,t)=>Tf(e,"a",-t),"transparentize"),zx=GCe});var WCe,q,k7=v(()=>{"use strict";sl();zw();WCe=a((e,t)=>{let r=Pi.parse(e),i={};for(let n in t)t[n]&&(i[n]=r[n]+t[n]);return Gx(e,i)},"adjust"),q=WCe});var zCe,C7,v7=v(()=>{"use strict";sl();qw();zCe=a((e,t,r=50)=>{let{r:i,g:n,b:s,a:o}=Pi.parse(e),{r:l,g:u,b:h,a:d}=Pi.parse(t),f=r/100,p=f*2-1,m=o-d,x=((p*m===-1?p:(p+m)/(1+p*m))+1)/2,b=1-x,T=i*x+l*b,k=n*x+u*b,C=s*x+h*b,S=o*f+d*(1-f);return Ti(T,k,C,S)},"mix"),C7=zCe});var qCe,pe,S7=v(()=>{"use strict";sl();v7();qCe=a((e,t=100)=>{let r=Pi.parse(e);return r.r=255-r.r,r.g=255-r.g,r.b=255-r.b,C7(r,e,t)},"invert"),pe=qCe});var _7=v(()=>{"use strict";qw();d7();y7();x7();b7();T7();k7();S7()});var Bi=v(()=>{"use strict";_7()});var Ei,Ai,ks=v(()=>{"use strict";Ei="#ffffff",Ai="#f2f2f2"});var wt,qa=v(()=>{"use strict";Bi();wt=a((e,t)=>t?q(e,{s:-40,l:10}):q(e,{s:-40,l:-10}),"mkBorder")});var Uw,w7,E7=v(()=>{"use strict";Bi();ks();qa();Uw=class{static{a(this,"Theme")}constructor(){this.background="#f4f4f4",this.primaryColor="#fff4dd",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.useGradient=!0,this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,1))"}updateColors(){if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||q(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||q(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||wt(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||wt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||wt(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||wt(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||pe(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||pe(this.tertiaryColor),this.lineColor=this.lineColor||pe(this.background),this.arrowheadColor=this.arrowheadColor||pe(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?ke(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||ke(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||pe(this.lineColor),this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||Te(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.vertLineColor=this.vertLineColor||"navy",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.noteFontWeight=this.noteFontWeight||"normal",this.fontWeight=this.fontWeight||"normal",this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.darkMode?(this.rowOdd=this.rowOdd||ke(this.mainBkg,5)||"#ffffff",this.rowEven=this.rowEven||ke(this.mainBkg,10)):(this.rowOdd=this.rowOdd||Te(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||Te(this.mainBkg,5)),this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||this.tertiaryColor,this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||q(this.primaryColor,{h:30}),this.cScale4=this.cScale4||q(this.primaryColor,{h:60}),this.cScale5=this.cScale5||q(this.primaryColor,{h:90}),this.cScale6=this.cScale6||q(this.primaryColor,{h:120}),this.cScale7=this.cScale7||q(this.primaryColor,{h:150}),this.cScale8=this.cScale8||q(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||q(this.primaryColor,{h:270}),this.cScale10=this.cScale10||q(this.primaryColor,{h:300}),this.cScale11=this.cScale11||q(this.primaryColor,{h:330}),this.darkMode)for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this["cScale"+r]=ke(this["cScale"+r],75);else for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this["cScale"+r]=ke(this["cScale"+r],25);for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this["cScaleInv"+r]=this["cScaleInv"+r]||pe(this["cScale"+r]);for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this.darkMode?this["cScalePeer"+r]=this["cScalePeer"+r]||Te(this["cScale"+r],10):this["cScalePeer"+r]=this["cScalePeer"+r]||ke(this["cScale"+r],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this["cScaleLabel"+r]=this["cScaleLabel"+r]||this.scaleLabelColor;let t=this.darkMode?-4:-1;for(let r=0;r<5;r++)this["surface"+r]=this["surface"+r]||q(this.mainBkg,{h:180,s:-15,l:t*(5+r*3)}),this["surfacePeer"+r]=this["surfacePeer"+r]||q(this.mainBkg,{h:180,s:-15,l:t*(8+r*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||q(this.primaryColor,{h:64}),this.fillType3=this.fillType3||q(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||q(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||q(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||q(this.primaryColor,{h:128}),this.fillType7=this.fillType7||q(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||q(this.primaryColor,{l:-10}),this.pie5=this.pie5||q(this.secondaryColor,{l:-10}),this.pie6=this.pie6||q(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||q(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||q(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||q(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||q(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||q(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||q(this.primaryColor,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.venn1=this.venn1??q(this.primaryColor,{l:-30}),this.venn2=this.venn2??q(this.secondaryColor,{l:-30}),this.venn3=this.venn3??q(this.tertiaryColor,{l:-30}),this.venn4=this.venn4??q(this.primaryColor,{h:60,l:-30}),this.venn5=this.venn5??q(this.primaryColor,{h:-60,l:-30}),this.venn6=this.venn6??q(this.secondaryColor,{h:60,l:-30}),this.venn7=this.venn7??q(this.primaryColor,{h:120,l:-30}),this.venn8=this.venn8??q(this.secondaryColor,{h:120,l:-30}),this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.radar={axisColor:this.radar?.axisColor||this.lineColor,axisStrokeWidth:this.radar?.axisStrokeWidth||2,axisLabelFontSize:this.radar?.axisLabelFontSize||12,curveOpacity:this.radar?.curveOpacity||.5,curveStrokeWidth:this.radar?.curveStrokeWidth||2,graticuleColor:this.radar?.graticuleColor||"#DEDEDE",graticuleStrokeWidth:this.radar?.graticuleStrokeWidth||1,graticuleOpacity:this.radar?.graticuleOpacity||.3,legendBoxSize:this.radar?.legendBoxSize||12,legendFontSize:this.radar?.legendFontSize||12},this.wardleyEvolutionColor=this.wardleyEvolutionColor||"#dc3545",this.wardley={backgroundColor:this.wardley?.backgroundColor||this.background,axisColor:this.wardley?.axisColor||this.lineColor,axisTextColor:this.wardley?.axisTextColor||this.primaryTextColor,gridColor:this.wardley?.gridColor||this.gridColor,componentFill:this.wardley?.componentFill||this.background,componentStroke:this.wardley?.componentStroke||this.lineColor,componentLabelColor:this.wardley?.componentLabelColor||this.primaryTextColor,linkStroke:this.wardley?.linkStroke||this.lineColor,evolutionStroke:this.wardley?.evolutionStroke||this.wardleyEvolutionColor,annotationStroke:this.wardley?.annotationStroke||this.lineColor,annotationTextColor:this.wardley?.annotationTextColor||this.primaryTextColor,annotationFill:this.wardley?.annotationFill||this.background},this.archEdgeColor=this.archEdgeColor||"#777",this.archEdgeArrowColor=this.archEdgeArrowColor||"#777",this.archEdgeWidth=this.archEdgeWidth||"3",this.archGroupBorderColor=this.archGroupBorderColor||"#000",this.archGroupBorderWidth=this.archGroupBorderWidth||"2px",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||q(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||q(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||q(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||q(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||q(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||q(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Or(this.quadrant1Fill)?Te(this.quadrant1Fill):ke(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,dataLabelColor:this.xyChart?.dataLabelColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?ke(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||q(this.primaryColor,{h:-30}),this.git4=this.git4||q(this.primaryColor,{h:-60}),this.git5=this.git5||q(this.primaryColor,{h:-90}),this.git6=this.git6||q(this.primaryColor,{h:60}),this.git7=this.git7||q(this.primaryColor,{h:120}),this.darkMode?(this.git0=Te(this.git0,25),this.git1=Te(this.git1,25),this.git2=Te(this.git2,25),this.git3=Te(this.git3,25),this.git4=Te(this.git4,25),this.git5=Te(this.git5,25),this.git6=Te(this.git6,25),this.git7=Te(this.git7,25)):(this.git0=ke(this.git0,25),this.git1=ke(this.git1,25),this.git2=ke(this.git2,25),this.git3=ke(this.git3,25),this.git4=ke(this.git4,25),this.git5=ke(this.git5,25),this.git6=ke(this.git6,25),this.git7=ke(this.git7,25)),this.gitInv0=this.gitInv0||pe(this.git0),this.gitInv1=this.gitInv1||pe(this.git1),this.gitInv2=this.gitInv2||pe(this.git2),this.gitInv3=this.gitInv3||pe(this.git3),this.gitInv4=this.gitInv4||pe(this.git4),this.gitInv5=this.gitInv5||pe(this.git5),this.gitInv6=this.gitInv6||pe(this.git6),this.gitInv7=this.gitInv7||pe(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.emUiFill=this.emUiFill||"white",this.emUiStroke=this.emUiStroke||"#dbdada",this.emProcessorFill=this.emProcessorFill||"#edb3f6",this.emProcessorStroke=this.emProcessorStroke||"#b88cbf",this.emReadModelFill=this.emReadModelFill||"#d3f1a2",this.emReadModelStroke=this.emReadModelStroke||"#a3b732",this.emCommandFill=this.emCommandFill||"#bcd6fe",this.emCommandStroke=this.emCommandStroke||"#679ac3",this.emEventFill=this.emEventFill||"#ffb778",this.emEventStroke=this.emEventStroke||"#c19a0f",this.emSwimlaneBackgroundOdd=this.emSwimlaneBackgroundOdd||"rgb(250,250,250)",this.emSwimlaneBackgroundStroke=this.emSwimlaneBackgroundStroke||"rgb(240,240,240)",this.emArrowhead=this.emArrowhead||this.lineColor,this.emRelationStroke=this.emRelationStroke||this.lineColor,this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Ei,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Ai,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor}calculate(t){if(typeof t!="object"){this.updateColors();return}let r=Object.keys(t);r.forEach(i=>{this[i]=t[i]}),this.updateColors(),r.forEach(i=>{this[i]=t[i]})}},w7=a(e=>{let t=new Uw;return t.calculate(e),t},"getThemeVariables")});var Hw,A7,R7=v(()=>{"use strict";Bi();qa();Hw=class{static{a(this,"Theme")}constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=Te(this.primaryColor,16),this.tertiaryColor=q(this.primaryColor,{h:-160}),this.primaryBorderColor=pe(this.background),this.secondaryBorderColor=wt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=wt(this.tertiaryColor,this.darkMode),this.primaryTextColor=pe(this.primaryColor),this.secondaryTextColor=pe(this.secondaryColor),this.tertiaryTextColor=pe(this.tertiaryColor),this.lineColor=pe(this.background),this.textColor=pe(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=Te(pe("#323D47"),10),this.lineColor="calculated",this.border1="#ccc",this.border2=Ti(255,255,255,.25),this.arrowheadColor="calculated",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#181818",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#F9FFFE",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="calculated",this.activationBkgColor="calculated",this.sequenceNumberColor="black",this.clusterBkg="#302F3D",this.sectionBkgColor=ke("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.excludeBkgColor=ke(this.sectionBkgColor,10),this.taskBorderColor=Ti(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=Ti(255,255,255,50),this.activeTaskBkgColor="#81B1DB",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="grey",this.critBorderColor="#E83737",this.critBkgColor="#E83737",this.taskTextDarkColor="calculated",this.todayLineColor="#DB5757",this.vertLineColor="#00BFFF",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.rowOdd=this.rowOdd||Te(this.mainBkg,5)||"#ffffff",this.rowEven=this.rowEven||ke(this.mainBkg,10),this.labelColor="calculated",this.errorBkgColor="#a44141",this.errorTextColor="#ddd",this.useGradient=!0,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor,this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,1))",this.noteFontWeight=this.noteFontWeight||"normal",this.fontWeight=this.fontWeight||"normal"}updateColors(){this.secondBkg=Te(this.mainBkg,16),this.lineColor=this.mainContrastColor,this.arrowheadColor=this.mainContrastColor,this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.edgeLabelBackground=Te(this.labelBackground,25),this.actorBorder=this.border1,this.actorBkg=this.mainBkg,this.actorTextColor=this.mainContrastColor,this.actorLineColor=this.actorBorder,this.signalColor=this.mainContrastColor,this.signalTextColor=this.mainContrastColor,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.mainContrastColor,this.loopTextColor=this.mainContrastColor,this.noteBorderColor=this.secondaryBorderColor,this.noteBkgColor=this.secondBkg,this.noteTextColor=this.secondaryTextColor,this.activationBorderColor=this.border1,this.activationBkgColor=this.secondBkg,this.altSectionBkgColor=this.background,this.taskBkgColor=Te(this.mainBkg,23),this.taskTextColor=this.darkTextColor,this.taskTextLightColor=this.mainContrastColor,this.taskTextOutsideColor=this.taskTextLightColor,this.gridColor=this.mainContrastColor,this.doneTaskBkgColor=this.mainContrastColor,this.taskTextDarkColor=pe(this.doneTaskBkgColor),this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#555",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#f4f4f4",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=q(this.primaryColor,{h:64}),this.fillType3=q(this.secondaryColor,{h:64}),this.fillType4=q(this.primaryColor,{h:-64}),this.fillType5=q(this.secondaryColor,{h:-64}),this.fillType6=q(this.primaryColor,{h:128}),this.fillType7=q(this.secondaryColor,{h:128}),this.cScale1=this.cScale1||"#0b0000",this.cScale2=this.cScale2||"#4d1037",this.cScale3=this.cScale3||"#3f5258",this.cScale4=this.cScale4||"#4f2f1b",this.cScale5=this.cScale5||"#6e0a0a",this.cScale6=this.cScale6||"#3b0048",this.cScale7=this.cScale7||"#995a01",this.cScale8=this.cScale8||"#154706",this.cScale9=this.cScale9||"#161722",this.cScale10=this.cScale10||"#00296f",this.cScale11=this.cScale11||"#01629c",this.cScale12=this.cScale12||"#010029",this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||q(this.primaryColor,{h:30}),this.cScale4=this.cScale4||q(this.primaryColor,{h:60}),this.cScale5=this.cScale5||q(this.primaryColor,{h:90}),this.cScale6=this.cScale6||q(this.primaryColor,{h:120}),this.cScale7=this.cScale7||q(this.primaryColor,{h:150}),this.cScale8=this.cScale8||q(this.primaryColor,{h:210}),this.cScale9=this.cScale9||q(this.primaryColor,{h:270}),this.cScale10=this.cScale10||q(this.primaryColor,{h:300}),this.cScale11=this.cScale11||q(this.primaryColor,{h:330});for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleInv"+t]=this["cScaleInv"+t]||pe(this["cScale"+t]);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScalePeer"+t]=this["cScalePeer"+t]||Te(this["cScale"+t],10);for(let t=0;t<5;t++)this["surface"+t]=this["surface"+t]||q(this.mainBkg,{h:30,s:-30,l:-(-10+t*4)}),this["surfacePeer"+t]=this["surfacePeer"+t]||q(this.mainBkg,{h:30,s:-30,l:-(-7+t*4)});this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleLabel"+t]=this["cScaleLabel"+t]||this.scaleLabelColor;for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["pie"+t]=this["cScale"+t];this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.mainContrastColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.mainContrastColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7";for(let t=0;t<8;t++)this["venn"+(t+1)]=this["venn"+(t+1)]??Te(this["cScale"+t],30);this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||q(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||q(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||q(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||q(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||q(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||q(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Or(this.quadrant1Fill)?Te(this.quadrant1Fill):ke(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,dataLabelColor:this.xyChart?.dataLabelColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#3498db,#2ecc71,#e74c3c,#f1c40f,#bdc3c7,#ffffff,#34495e,#9b59b6,#1abc9c,#e67e22"},this.packet={startByteColor:this.primaryTextColor,endByteColor:this.primaryTextColor,labelColor:this.primaryTextColor,titleColor:this.primaryTextColor,blockStrokeColor:this.primaryTextColor,blockFillColor:this.background},this.radar={axisColor:this.radar?.axisColor||this.lineColor,axisStrokeWidth:this.radar?.axisStrokeWidth||2,axisLabelFontSize:this.radar?.axisLabelFontSize||12,curveOpacity:this.radar?.curveOpacity||.5,curveStrokeWidth:this.radar?.curveStrokeWidth||2,graticuleColor:this.radar?.graticuleColor||"#DEDEDE",graticuleStrokeWidth:this.radar?.graticuleStrokeWidth||1,graticuleOpacity:this.radar?.graticuleOpacity||.3,legendBoxSize:this.radar?.legendBoxSize||12,legendFontSize:this.radar?.legendFontSize||12},this.wardleyEvolutionColor=this.wardleyEvolutionColor||"#ff6b6b",this.wardley={backgroundColor:this.wardley?.backgroundColor||this.background,axisColor:this.wardley?.axisColor||this.lineColor,axisTextColor:this.wardley?.axisTextColor||this.primaryTextColor,gridColor:this.wardley?.gridColor||this.gridColor,componentFill:this.wardley?.componentFill||this.mainBkg,componentStroke:this.wardley?.componentStroke||this.lineColor,componentLabelColor:this.wardley?.componentLabelColor||this.primaryTextColor,linkStroke:this.wardley?.linkStroke||this.lineColor,evolutionStroke:this.wardley?.evolutionStroke||this.wardleyEvolutionColor,annotationStroke:this.wardley?.annotationStroke||this.lineColor,annotationTextColor:this.wardley?.annotationTextColor||this.primaryTextColor,annotationFill:this.wardley?.annotationFill||this.mainBkg},this.classText=this.primaryTextColor,this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?ke(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=Te(this.secondaryColor,20),this.git1=Te(this.pie2||this.secondaryColor,20),this.git2=Te(this.pie3||this.tertiaryColor,20),this.git3=Te(this.pie4||q(this.primaryColor,{h:-30}),20),this.git4=Te(this.pie5||q(this.primaryColor,{h:-60}),20),this.git5=Te(this.pie6||q(this.primaryColor,{h:-90}),10),this.git6=Te(this.pie7||q(this.primaryColor,{h:60}),10),this.git7=Te(this.pie8||q(this.primaryColor,{h:120}),20),this.gitInv0=this.gitInv0||pe(this.git0),this.gitInv1=this.gitInv1||pe(this.git1),this.gitInv2=this.gitInv2||pe(this.git2),this.gitInv3=this.gitInv3||pe(this.git3),this.gitInv4=this.gitInv4||pe(this.git4),this.gitInv5=this.gitInv5||pe(this.git5),this.gitInv6=this.gitInv6||pe(this.git6),this.gitInv7=this.gitInv7||pe(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||pe(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||pe(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.emUiFill=this.emUiFill||"#2d2d2d",this.emUiStroke=this.emUiStroke||"#555",this.emProcessorFill=this.emProcessorFill||Te("#5a3d5c",10),this.emProcessorStroke=this.emProcessorStroke||"#8a6d8c",this.emReadModelFill=this.emReadModelFill||Te("#3d5a2d",10),this.emReadModelStroke=this.emReadModelStroke||"#6d8c5c",this.emCommandFill=this.emCommandFill||Te("#2d3d5a",10),this.emCommandStroke=this.emCommandStroke||"#5c6d8c",this.emEventFill=this.emEventFill||Te("#5a452d",10),this.emEventStroke=this.emEventStroke||"#8c755c",this.emSwimlaneBackgroundOdd=this.emSwimlaneBackgroundOdd||Te(this.background,5),this.emSwimlaneBackgroundStroke=this.emSwimlaneBackgroundStroke||Te(this.background,12),this.emArrowhead=this.emArrowhead||this.lineColor,this.emRelationStroke=this.emRelationStroke||this.lineColor,this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Te(this.background,12),this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Te(this.background,2),this.nodeBorder=this.nodeBorder||"#999"}calculate(t){if(typeof t!="object"){this.updateColors();return}let r=Object.keys(t);r.forEach(i=>{this[i]=t[i]}),this.updateColors(),r.forEach(i=>{this[i]=t[i]})}},A7=a(e=>{let t=new Hw;return t.calculate(e),t},"getThemeVariables")});var Yw,ja,Yu=v(()=>{"use strict";Bi();qa();ks();Yw=class{static{a(this,"Theme")}constructor(){this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=q(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=q(this.primaryColor,{h:-160}),this.primaryBorderColor=wt(this.primaryColor,this.darkMode),this.secondaryBorderColor=wt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=wt(this.tertiaryColor,this.darkMode),this.primaryTextColor=pe(this.primaryColor),this.secondaryTextColor=pe(this.secondaryColor),this.tertiaryTextColor=pe(this.tertiaryColor),this.lineColor=pe(this.background),this.textColor=pe(this.background),this.background="white",this.mainBkg="#ECECFF",this.secondBkg="#ffffde",this.lineColor="#333333",this.border1="#9370DB",this.primaryBorderColor=wt(this.primaryColor,this.darkMode),this.border2="#aaaa33",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="rgba(232,232,232, 0.8)",this.textColor="#333",this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.clusterBkg="#FBFBFF",this.sectionBkgColor="calculated",this.altSectionBkgColor="calculated",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="calculated",this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor="calculated",this.taskTextOutsideColor=this.taskTextDarkColor,this.taskTextClickableColor="calculated",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBorderColor="calculated",this.critBkgColor="calculated",this.todayLineColor="calculated",this.vertLineColor="calculated",this.sectionBkgColor=Ti(102,102,255,.49),this.altSectionBkgColor="white",this.sectionBkgColor2="#fff400",this.taskBorderColor="#534fbc",this.taskBkgColor="#8a90dd",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="#534fbc",this.activeTaskBkgColor="#bfc7ff",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.vertLineColor="navy",this.noteFontWeight=this.noteFontWeight||"normal",this.fontWeight=this.fontWeight||"normal",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.rowOdd="calculated",this.rowEven="calculated",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.useGradient=!1,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor,this.dropShadow="drop-shadow(1px 2px 2px rgba(185, 185, 185, 1))",this.updateColors()}updateColors(){this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||q(this.primaryColor,{h:30}),this.cScale4=this.cScale4||q(this.primaryColor,{h:60}),this.cScale5=this.cScale5||q(this.primaryColor,{h:90}),this.cScale6=this.cScale6||q(this.primaryColor,{h:120}),this.cScale7=this.cScale7||q(this.primaryColor,{h:150}),this.cScale8=this.cScale8||q(this.primaryColor,{h:210}),this.cScale9=this.cScale9||q(this.primaryColor,{h:270}),this.cScale10=this.cScale10||q(this.primaryColor,{h:300}),this.cScale11=this.cScale11||q(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||ke(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||ke(this.tertiaryColor,40);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScale"+t]=ke(this["cScale"+t],10),this["cScalePeer"+t]=this["cScalePeer"+t]||ke(this["cScale"+t],25);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleInv"+t]=this["cScaleInv"+t]||q(this["cScale"+t],{h:180});for(let t=0;t<5;t++)this["surface"+t]=this["surface"+t]||q(this.mainBkg,{h:30,l:-(5+t*5)}),this["surfacePeer"+t]=this["surfacePeer"+t]||q(this.mainBkg,{h:30,l:-(7+t*5)});if(this.scaleLabelColor=this.scaleLabelColor!=="calculated"&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor,this.labelTextColor!=="calculated"){this.cScaleLabel0=this.cScaleLabel0||pe(this.labelTextColor),this.cScaleLabel3=this.cScaleLabel3||pe(this.labelTextColor);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleLabel"+t]=this["cScaleLabel"+t]||this.labelTextColor}this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.textColor,this.edgeLabelBackground=this.labelBackground,this.actorBorder=this.border1,this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.signalColor=this.textColor,this.signalTextColor=this.textColor,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.actorLineColor=this.actorBorder,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.rowOdd=this.rowOdd||Te(this.primaryColor,75)||"#ffffff",this.rowEven=this.rowEven||Te(this.primaryColor,1),this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.specialStateColor=this.lineColor,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=q(this.primaryColor,{h:64}),this.fillType3=q(this.secondaryColor,{h:64}),this.fillType4=q(this.primaryColor,{h:-64}),this.fillType5=q(this.secondaryColor,{h:-64}),this.fillType6=q(this.primaryColor,{h:128}),this.fillType7=q(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||q(this.tertiaryColor,{l:-40}),this.pie4=this.pie4||q(this.primaryColor,{l:-10}),this.pie5=this.pie5||q(this.secondaryColor,{l:-30}),this.pie6=this.pie6||q(this.tertiaryColor,{l:-20}),this.pie7=this.pie7||q(this.primaryColor,{h:60,l:-20}),this.pie8=this.pie8||q(this.primaryColor,{h:-60,l:-40}),this.pie9=this.pie9||q(this.primaryColor,{h:120,l:-40}),this.pie10=this.pie10||q(this.primaryColor,{h:60,l:-40}),this.pie11=this.pie11||q(this.primaryColor,{h:-90,l:-40}),this.pie12=this.pie12||q(this.primaryColor,{h:120,l:-30}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.venn1=this.venn1??q(this.primaryColor,{l:-30}),this.venn2=this.venn2??q(this.secondaryColor,{l:-30}),this.venn3=this.venn3??q(this.tertiaryColor,{l:-40}),this.venn4=this.venn4??q(this.primaryColor,{h:60,l:-30}),this.venn5=this.venn5??q(this.primaryColor,{h:-60,l:-30}),this.venn6=this.venn6??q(this.secondaryColor,{h:60,l:-30}),this.venn7=this.venn7??q(this.primaryColor,{h:120,l:-30}),this.venn8=this.venn8??q(this.secondaryColor,{h:120,l:-30}),this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||q(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||q(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||q(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||q(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||q(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||q(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Or(this.quadrant1Fill)?Te(this.quadrant1Fill):ke(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.radar={axisColor:this.radar?.axisColor||this.lineColor,axisStrokeWidth:this.radar?.axisStrokeWidth||2,axisLabelFontSize:this.radar?.axisLabelFontSize||12,curveOpacity:this.radar?.curveOpacity||.5,curveStrokeWidth:this.radar?.curveStrokeWidth||2,graticuleColor:this.radar?.graticuleColor||"#DEDEDE",graticuleStrokeWidth:this.radar?.graticuleStrokeWidth||1,graticuleOpacity:this.radar?.graticuleOpacity||.3,legendBoxSize:this.radar?.legendBoxSize||12,legendFontSize:this.radar?.legendFontSize||12},this.wardleyEvolutionColor=this.wardleyEvolutionColor||"#dc3545",this.wardley={backgroundColor:this.wardley?.backgroundColor||this.background,axisColor:this.wardley?.axisColor||this.lineColor,axisTextColor:this.wardley?.axisTextColor||this.primaryTextColor,gridColor:this.wardley?.gridColor||this.gridColor,componentFill:this.wardley?.componentFill||this.background,componentStroke:this.wardley?.componentStroke||this.lineColor,componentLabelColor:this.wardley?.componentLabelColor||this.primaryTextColor,linkStroke:this.wardley?.linkStroke||this.lineColor,evolutionStroke:this.wardley?.evolutionStroke||this.wardleyEvolutionColor,annotationStroke:this.wardley?.annotationStroke||this.lineColor,annotationTextColor:this.wardley?.annotationTextColor||this.primaryTextColor,annotationFill:this.wardley?.annotationFill||this.background},this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,dataLabelColor:this.xyChart?.dataLabelColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#ECECFF,#8493A6,#FFC3A0,#DCDDE1,#B8E994,#D1A36F,#C3CDE6,#FFB6C1,#496078,#F8F3E3"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.labelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||q(this.primaryColor,{h:-30}),this.git4=this.git4||q(this.primaryColor,{h:-60}),this.git5=this.git5||q(this.primaryColor,{h:-90}),this.git6=this.git6||q(this.primaryColor,{h:60}),this.git7=this.git7||q(this.primaryColor,{h:120}),this.darkMode?(this.git0=Te(this.git0,25),this.git1=Te(this.git1,25),this.git2=Te(this.git2,25),this.git3=Te(this.git3,25),this.git4=Te(this.git4,25),this.git5=Te(this.git5,25),this.git6=Te(this.git6,25),this.git7=Te(this.git7,25)):(this.git0=ke(this.git0,25),this.git1=ke(this.git1,25),this.git2=ke(this.git2,25),this.git3=ke(this.git3,25),this.git4=ke(this.git4,25),this.git5=ke(this.git5,25),this.git6=ke(this.git6,25),this.git7=ke(this.git7,25)),this.gitInv0=this.gitInv0||ke(pe(this.git0),25),this.gitInv1=this.gitInv1||pe(this.git1),this.gitInv2=this.gitInv2||pe(this.git2),this.gitInv3=this.gitInv3||pe(this.git3),this.gitInv4=this.gitInv4||pe(this.git4),this.gitInv5=this.gitInv5||pe(this.git5),this.gitInv6=this.gitInv6||pe(this.git6),this.gitInv7=this.gitInv7||pe(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||pe(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||pe(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.emUiFill=this.emUiFill||"white",this.emUiStroke=this.emUiStroke||"#dbdada",this.emProcessorFill=this.emProcessorFill||"#edb3f6",this.emProcessorStroke=this.emProcessorStroke||"#b88cbf",this.emReadModelFill=this.emReadModelFill||"#d3f1a2",this.emReadModelStroke=this.emReadModelStroke||"#a3b732",this.emCommandFill=this.emCommandFill||"#bcd6fe",this.emCommandStroke=this.emCommandStroke||"#679ac3",this.emEventFill=this.emEventFill||"#ffb778",this.emEventStroke=this.emEventStroke||"#c19a0f",this.emSwimlaneBackgroundOdd=this.emSwimlaneBackgroundOdd||"rgb(250,250,250)",this.emSwimlaneBackgroundStroke=this.emSwimlaneBackgroundStroke||"rgb(240,240,240)",this.emArrowhead=this.emArrowhead||this.lineColor,this.emRelationStroke=this.emRelationStroke||this.lineColor,this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Ei,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Ai}calculate(t){if(Object.keys(this).forEach(i=>{this[i]==="calculated"&&(this[i]=void 0)}),typeof t!="object"){this.updateColors();return}let r=Object.keys(t);r.forEach(i=>{this[i]=t[i]}),this.updateColors(),r.forEach(i=>{this[i]=t[i]})}},ja=a(e=>{let t=new Yw;return t.calculate(e),t},"getThemeVariables")});var Kw,L7,D7=v(()=>{"use strict";Bi();ks();qa();Kw=class{static{a(this,"Theme")}constructor(){this.background="#f4f4f4",this.primaryColor="#cde498",this.secondaryColor="#cdffb2",this.background="white",this.mainBkg="#cde498",this.secondBkg="#cdffb2",this.lineColor="green",this.border1="#13540c",this.border2="#6eaa49",this.arrowheadColor="green",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.tertiaryColor=Te("#cde498",10),this.primaryBorderColor=wt(this.primaryColor,this.darkMode),this.secondaryBorderColor=wt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=wt(this.tertiaryColor,this.darkMode),this.primaryTextColor=pe(this.primaryColor),this.secondaryTextColor=pe(this.secondaryColor),this.tertiaryTextColor=pe(this.primaryColor),this.lineColor=pe(this.background),this.textColor=pe(this.background),this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#333",this.edgeLabelBackground="#e8e8e8",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="calculated",this.signalColor="#333",this.signalTextColor="#333",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="#326932",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="#6eaa49",this.altSectionBkgColor="white",this.sectionBkgColor2="#6eaa49",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="#487e3a",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.vertLineColor="#00BFFF",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.noteFontWeight="normal",this.fontWeight="normal",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.useGradient=!0,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor,this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,0.5))"}updateColors(){this.actorBorder=ke(this.mainBkg,20),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.actorLineColor=this.actorBorder,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||q(this.primaryColor,{h:30}),this.cScale4=this.cScale4||q(this.primaryColor,{h:60}),this.cScale5=this.cScale5||q(this.primaryColor,{h:90}),this.cScale6=this.cScale6||q(this.primaryColor,{h:120}),this.cScale7=this.cScale7||q(this.primaryColor,{h:150}),this.cScale8=this.cScale8||q(this.primaryColor,{h:210}),this.cScale9=this.cScale9||q(this.primaryColor,{h:270}),this.cScale10=this.cScale10||q(this.primaryColor,{h:300}),this.cScale11=this.cScale11||q(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||ke(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||ke(this.tertiaryColor,40);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScale"+t]=ke(this["cScale"+t],10),this["cScalePeer"+t]=this["cScalePeer"+t]||ke(this["cScale"+t],25);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleInv"+t]=this["cScaleInv"+t]||q(this["cScale"+t],{h:180});this.scaleLabelColor=this.scaleLabelColor!=="calculated"&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor;for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleLabel"+t]=this["cScaleLabel"+t]||this.scaleLabelColor;for(let t=0;t<5;t++)this["surface"+t]=this["surface"+t]||q(this.mainBkg,{h:30,s:-30,l:-(5+t*5)}),this["surfacePeer"+t]=this["surfacePeer"+t]||q(this.mainBkg,{h:30,s:-30,l:-(8+t*5)});this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.taskBorderColor=this.border1,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=this.mainBkg,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.rowOdd=this.rowOdd||Te(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||Te(this.mainBkg,20),this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor=this.lineColor,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=q(this.primaryColor,{h:64}),this.fillType3=q(this.secondaryColor,{h:64}),this.fillType4=q(this.primaryColor,{h:-64}),this.fillType5=q(this.secondaryColor,{h:-64}),this.fillType6=q(this.primaryColor,{h:128}),this.fillType7=q(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||q(this.primaryColor,{l:-30}),this.pie5=this.pie5||q(this.secondaryColor,{l:-30}),this.pie6=this.pie6||q(this.tertiaryColor,{h:40,l:-40}),this.pie7=this.pie7||q(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||q(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||q(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||q(this.primaryColor,{h:60,l:-50}),this.pie11=this.pie11||q(this.primaryColor,{h:-60,l:-50}),this.pie12=this.pie12||q(this.primaryColor,{h:120,l:-50}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.venn1=this.venn1??q(this.primaryColor,{l:-30}),this.venn2=this.venn2??q(this.secondaryColor,{l:-30}),this.venn3=this.venn3??q(this.tertiaryColor,{l:-30}),this.venn4=this.venn4??q(this.primaryColor,{h:60,l:-30}),this.venn5=this.venn5??q(this.primaryColor,{h:-60,l:-30}),this.venn6=this.venn6??q(this.secondaryColor,{h:60,l:-30}),this.venn7=this.venn7??q(this.primaryColor,{h:120,l:-30}),this.venn8=this.venn8??q(this.secondaryColor,{h:120,l:-30}),this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||q(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||q(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||q(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||q(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||q(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||q(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Or(this.quadrant1Fill)?Te(this.quadrant1Fill):ke(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.packet={startByteColor:this.primaryTextColor,endByteColor:this.primaryTextColor,labelColor:this.primaryTextColor,titleColor:this.primaryTextColor,blockStrokeColor:this.primaryTextColor,blockFillColor:this.mainBkg},this.radar={axisColor:this.radar?.axisColor||this.lineColor,axisStrokeWidth:this.radar?.axisStrokeWidth||2,axisLabelFontSize:this.radar?.axisLabelFontSize||12,curveOpacity:this.radar?.curveOpacity||.5,curveStrokeWidth:this.radar?.curveStrokeWidth||2,graticuleColor:this.radar?.graticuleColor||"#DEDEDE",graticuleStrokeWidth:this.radar?.graticuleStrokeWidth||1,graticuleOpacity:this.radar?.graticuleOpacity||.3,legendBoxSize:this.radar?.legendBoxSize||12,legendFontSize:this.radar?.legendFontSize||12},this.wardleyEvolutionColor=this.wardleyEvolutionColor||"#dc3545",this.wardley={backgroundColor:this.wardley?.backgroundColor||this.background,axisColor:this.wardley?.axisColor||this.lineColor,axisTextColor:this.wardley?.axisTextColor||this.primaryTextColor,gridColor:this.wardley?.gridColor||this.gridColor,componentFill:this.wardley?.componentFill||this.background,componentStroke:this.wardley?.componentStroke||this.lineColor,componentLabelColor:this.wardley?.componentLabelColor||this.primaryTextColor,linkStroke:this.wardley?.linkStroke||this.lineColor,evolutionStroke:this.wardley?.evolutionStroke||this.wardleyEvolutionColor,annotationStroke:this.wardley?.annotationStroke||this.lineColor,annotationTextColor:this.wardley?.annotationTextColor||this.primaryTextColor,annotationFill:this.wardley?.annotationFill||this.background},this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,dataLabelColor:this.xyChart?.dataLabelColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#CDE498,#FF6B6B,#A0D2DB,#D7BDE2,#F0F0F0,#FFC3A0,#7FD8BE,#FF9A8B,#FAF3E0,#FFF176"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.edgeLabelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||q(this.primaryColor,{h:-30}),this.git4=this.git4||q(this.primaryColor,{h:-60}),this.git5=this.git5||q(this.primaryColor,{h:-90}),this.git6=this.git6||q(this.primaryColor,{h:60}),this.git7=this.git7||q(this.primaryColor,{h:120}),this.darkMode?(this.git0=Te(this.git0,25),this.git1=Te(this.git1,25),this.git2=Te(this.git2,25),this.git3=Te(this.git3,25),this.git4=Te(this.git4,25),this.git5=Te(this.git5,25),this.git6=Te(this.git6,25),this.git7=Te(this.git7,25)):(this.git0=ke(this.git0,25),this.git1=ke(this.git1,25),this.git2=ke(this.git2,25),this.git3=ke(this.git3,25),this.git4=ke(this.git4,25),this.git5=ke(this.git5,25),this.git6=ke(this.git6,25),this.git7=ke(this.git7,25)),this.gitInv0=this.gitInv0||pe(this.git0),this.gitInv1=this.gitInv1||pe(this.git1),this.gitInv2=this.gitInv2||pe(this.git2),this.gitInv3=this.gitInv3||pe(this.git3),this.gitInv4=this.gitInv4||pe(this.git4),this.gitInv5=this.gitInv5||pe(this.git5),this.gitInv6=this.gitInv6||pe(this.git6),this.gitInv7=this.gitInv7||pe(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||pe(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||pe(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.emUiFill=this.emUiFill||"white",this.emUiStroke=this.emUiStroke||"#dbdada",this.emProcessorFill=this.emProcessorFill||"#edb3f6",this.emProcessorStroke=this.emProcessorStroke||"#b88cbf",this.emReadModelFill=this.emReadModelFill||"#d3f1a2",this.emReadModelStroke=this.emReadModelStroke||"#a3b732",this.emCommandFill=this.emCommandFill||"#bcd6fe",this.emCommandStroke=this.emCommandStroke||"#679ac3",this.emEventFill=this.emEventFill||"#ffb778",this.emEventStroke=this.emEventStroke||"#c19a0f",this.emSwimlaneBackgroundOdd=this.emSwimlaneBackgroundOdd||"rgb(250,250,250)",this.emSwimlaneBackgroundStroke=this.emSwimlaneBackgroundStroke||"rgb(240,240,240)",this.emArrowhead=this.emArrowhead||this.lineColor,this.emRelationStroke=this.emRelationStroke||this.lineColor,this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Ei,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Ai}calculate(t){if(typeof t!="object"){this.updateColors();return}let r=Object.keys(t);r.forEach(i=>{this[i]=t[i]}),this.updateColors(),r.forEach(i=>{this[i]=t[i]})}},L7=a(e=>{let t=new Kw;return t.calculate(e),t},"getThemeVariables")});var Xw,I7,N7=v(()=>{"use strict";Bi();qa();ks();Xw=class{static{a(this,"Theme")}constructor(){this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=Te(this.contrast,55),this.background="#ffffff",this.tertiaryColor=q(this.primaryColor,{h:-160}),this.primaryBorderColor=wt(this.primaryColor,this.darkMode),this.secondaryBorderColor=wt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=wt(this.tertiaryColor,this.darkMode),this.primaryTextColor=pe(this.primaryColor),this.secondaryTextColor=pe(this.secondaryColor),this.tertiaryTextColor=pe(this.tertiaryColor),this.lineColor=pe(this.background),this.textColor=pe(this.background),this.mainBkg="#eee",this.secondBkg="calculated",this.lineColor="#666",this.border1="#999",this.border2="calculated",this.note="#ffa",this.text="#333",this.critical="#d42",this.done="#bbb",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="white",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor=this.actorBorder,this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="calculated",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="white",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBkgColor="calculated",this.critBorderColor="calculated",this.todayLineColor="calculated",this.vertLineColor="calculated",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.noteFontWeight="normal",this.fontWeight="normal",this.rowOdd=this.rowOdd||Te(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||"#f4f4f4",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.useGradient=!0,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor,this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,1))"}updateColors(){this.secondBkg=Te(this.contrast,55),this.border2=this.contrast,this.actorBorder=Te(this.border1,23),this.actorBkg=this.mainBkg,this.actorTextColor=this.text,this.actorLineColor=this.actorBorder,this.signalColor=this.text,this.signalTextColor=this.text,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.text,this.loopTextColor=this.text,this.noteBorderColor="#999",this.noteBkgColor="#666",this.noteTextColor="#fff",this.cScale0=this.cScale0||"#555",this.cScale1=this.cScale1||"#F4F4F4",this.cScale2=this.cScale2||"#555",this.cScale3=this.cScale3||"#BBB",this.cScale4=this.cScale4||"#777",this.cScale5=this.cScale5||"#999",this.cScale6=this.cScale6||"#DDD",this.cScale7=this.cScale7||"#FFF",this.cScale8=this.cScale8||"#DDD",this.cScale9=this.cScale9||"#BBB",this.cScale10=this.cScale10||"#999",this.cScale11=this.cScale11||"#777";for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleInv"+t]=this["cScaleInv"+t]||pe(this["cScale"+t]);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this.darkMode?this["cScalePeer"+t]=this["cScalePeer"+t]||Te(this["cScale"+t],10):this["cScalePeer"+t]=this["cScalePeer"+t]||ke(this["cScale"+t],10);this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor),this.cScaleLabel0=this.cScaleLabel0||this.cScale1,this.cScaleLabel2=this.cScaleLabel2||this.cScale1;for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleLabel"+t]=this["cScaleLabel"+t]||this.scaleLabelColor;for(let t=0;t<5;t++)this["surface"+t]=this["surface"+t]||q(this.mainBkg,{l:-(5+t*5)}),this["surfacePeer"+t]=this["surfacePeer"+t]||q(this.mainBkg,{l:-(8+t*5)});this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.text,this.sectionBkgColor=Te(this.contrast,30),this.sectionBkgColor2=Te(this.contrast,30),this.taskBorderColor=ke(this.contrast,10),this.taskBkgColor=this.contrast,this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor=this.text,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=this.mainBkg,this.gridColor=Te(this.border1,30),this.doneTaskBkgColor=this.done,this.doneTaskBorderColor=this.lineColor,this.critBkgColor=this.critical,this.critBorderColor=ke(this.critBkgColor,10),this.todayLineColor=this.critBkgColor,this.vertLineColor=this.critBkgColor,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.transitionColor=this.transitionColor||"#000",this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f4f4f4",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.stateBorder=this.stateBorder||"#000",this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#222",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=q(this.primaryColor,{h:64}),this.fillType3=q(this.secondaryColor,{h:64}),this.fillType4=q(this.primaryColor,{h:-64}),this.fillType5=q(this.secondaryColor,{h:-64}),this.fillType6=q(this.primaryColor,{h:128}),this.fillType7=q(this.secondaryColor,{h:128});for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["pie"+t]=this["cScale"+t];this.pie12=this.pie0,this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7";for(let t=0;t<8;t++)this["venn"+(t+1)]=this["venn"+(t+1)]??this["cScale"+t];this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||q(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||q(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||q(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||q(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||q(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||q(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Or(this.quadrant1Fill)?Te(this.quadrant1Fill):ke(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,dataLabelColor:this.xyChart?.dataLabelColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#EEE,#6BB8E4,#8ACB88,#C7ACD6,#E8DCC2,#FFB2A8,#FFF380,#7E8D91,#FFD8B1,#FAF3E0"},this.radar={axisColor:this.radar?.axisColor||this.lineColor,axisStrokeWidth:this.radar?.axisStrokeWidth||2,axisLabelFontSize:this.radar?.axisLabelFontSize||12,curveOpacity:this.radar?.curveOpacity||.5,curveStrokeWidth:this.radar?.curveStrokeWidth||2,graticuleColor:this.radar?.graticuleColor||"#DEDEDE",graticuleStrokeWidth:this.radar?.graticuleStrokeWidth||1,graticuleOpacity:this.radar?.graticuleOpacity||.3,legendBoxSize:this.radar?.legendBoxSize||12,legendFontSize:this.radar?.legendFontSize||12},this.wardleyEvolutionColor=this.wardleyEvolutionColor||"#dc3545",this.wardley={backgroundColor:this.wardley?.backgroundColor||this.background,axisColor:this.wardley?.axisColor||this.lineColor,axisTextColor:this.wardley?.axisTextColor||this.primaryTextColor,gridColor:this.wardley?.gridColor||this.gridColor,componentFill:this.wardley?.componentFill||this.background,componentStroke:this.wardley?.componentStroke||this.lineColor,componentLabelColor:this.wardley?.componentLabelColor||this.primaryTextColor,linkStroke:this.wardley?.linkStroke||this.lineColor,evolutionStroke:this.wardley?.evolutionStroke||this.wardleyEvolutionColor,annotationStroke:this.wardley?.annotationStroke||this.lineColor,annotationTextColor:this.wardley?.annotationTextColor||this.primaryTextColor,annotationFill:this.wardley?.annotationFill||this.background},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.edgeLabelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=ke(this.pie1,25)||this.primaryColor,this.git1=this.pie2||this.secondaryColor,this.git2=this.pie3||this.tertiaryColor,this.git3=this.pie4||q(this.primaryColor,{h:-30}),this.git4=this.pie5||q(this.primaryColor,{h:-60}),this.git5=this.pie6||q(this.primaryColor,{h:-90}),this.git6=this.pie7||q(this.primaryColor,{h:60}),this.git7=this.pie8||q(this.primaryColor,{h:120}),this.gitInv0=this.gitInv0||pe(this.git0),this.gitInv1=this.gitInv1||pe(this.git1),this.gitInv2=this.gitInv2||pe(this.git2),this.gitInv3=this.gitInv3||pe(this.git3),this.gitInv4=this.gitInv4||pe(this.git4),this.gitInv5=this.gitInv5||pe(this.git5),this.gitInv6=this.gitInv6||pe(this.git6),this.gitInv7=this.gitInv7||pe(this.git7),this.branchLabelColor=this.branchLabelColor||this.labelTextColor,this.gitBranchLabel0=this.branchLabelColor,this.gitBranchLabel1="white",this.gitBranchLabel2=this.branchLabelColor,this.gitBranchLabel3="white",this.gitBranchLabel4=this.branchLabelColor,this.gitBranchLabel5=this.branchLabelColor,this.gitBranchLabel6=this.branchLabelColor,this.gitBranchLabel7=this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.emUiFill=this.emUiFill||"white",this.emUiStroke=this.emUiStroke||"#dbdada",this.emProcessorFill=this.emProcessorFill||"#edb3f6",this.emProcessorStroke=this.emProcessorStroke||"#b88cbf",this.emReadModelFill=this.emReadModelFill||"#d3f1a2",this.emReadModelStroke=this.emReadModelStroke||"#a3b732",this.emCommandFill=this.emCommandFill||"#bcd6fe",this.emCommandStroke=this.emCommandStroke||"#679ac3",this.emEventFill=this.emEventFill||"#ffb778",this.emEventStroke=this.emEventStroke||"#c19a0f",this.emSwimlaneBackgroundOdd=this.emSwimlaneBackgroundOdd||"rgb(250,250,250)",this.emSwimlaneBackgroundStroke=this.emSwimlaneBackgroundStroke||"rgb(240,240,240)",this.emArrowhead=this.emArrowhead||this.lineColor,this.emRelationStroke=this.emRelationStroke||this.lineColor,this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Ei,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Ai}calculate(t){if(typeof t!="object"){this.updateColors();return}let r=Object.keys(t);r.forEach(i=>{this[i]=t[i]}),this.updateColors(),r.forEach(i=>{this[i]=t[i]})}},I7=a(e=>{let t=new Xw;return t.calculate(e),t},"getThemeVariables")});var Qw,M7,O7=v(()=>{"use strict";Bi();qa();ks();Qw=class{static{a(this,"Theme")}constructor(){this.background="#ffffff",this.primaryColor="#cccccc",this.mainBkg="#ffffff",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.radius=3,this.strokeWidth=2,this.primaryBorderColor=wt(this.primaryColor,this.darkMode),this.fontFamily="arial, sans-serif",this.fontSize="14px",this.nodeBorder="#000000",this.stateBorder="#000000",this.useGradient=!0,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="drop-shadow( 0px 1px 2px rgba(0, 0, 0, 0.25));",this.tertiaryColor="#ffffff",this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.noteFontWeight="normal",this.fontWeight="normal"}updateColors(){this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||q(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||q(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||wt(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||wt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||wt(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||wt(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||pe(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||pe(this.tertiaryColor),this.lineColor=this.lineColor||pe(this.background),this.arrowheadColor=this.arrowheadColor||pe(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?ke(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||ke(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||pe(this.lineColor);let t="#ECECFE",r="#E9E9F1",i=q(t,{h:180,l:5});if(this.sectionBkgColor=this.sectionBkgColor||i,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||r,this.sectionBkgColor2=this.sectionBkgColor2||t,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||t,this.activeTaskBorderColor=this.activeTaskBorderColor||t,this.activeTaskBkgColor=this.activeTaskBkgColor||Te(t,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||t,this.cScale1=this.cScale1||r,this.cScale2=this.cScale2||i,this.cScale3=this.cScale3||q(t,{h:30}),this.cScale4=this.cScale4||q(t,{h:60}),this.cScale5=this.cScale5||q(t,{h:90}),this.cScale6=this.cScale6||q(t,{h:120}),this.cScale7=this.cScale7||q(t,{h:150}),this.cScale8=this.cScale8||q(t,{h:210,l:150}),this.cScale9=this.cScale9||q(t,{h:270}),this.cScale10=this.cScale10||q(t,{h:300}),this.cScale11=this.cScale11||q(t,{h:330}),this.darkMode)for(let s=0;s<this.THEME_COLOR_LIMIT;s++)this["cScale"+s]=ke(this["cScale"+s],75);else for(let s=0;s<this.THEME_COLOR_LIMIT;s++)this["cScale"+s]=ke(this["cScale"+s],25);for(let s=0;s<this.THEME_COLOR_LIMIT;s++)this["cScaleInv"+s]=this["cScaleInv"+s]||pe(this["cScale"+s]);for(let s=0;s<this.THEME_COLOR_LIMIT;s++)this.darkMode?this["cScalePeer"+s]=this["cScalePeer"+s]||Te(this["cScale"+s],10):this["cScalePeer"+s]=this["cScalePeer"+s]||ke(this["cScale"+s],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let s=0;s<this.THEME_COLOR_LIMIT;s++)this["cScaleLabel"+s]=this["cScaleLabel"+s]||this.scaleLabelColor;let n=this.darkMode?-4:-1;for(let s=0;s<5;s++)this["surface"+s]=this["surface"+s]||q(this.mainBkg,{h:180,s:-15,l:n*(5+s*3)}),this["surfacePeer"+s]=this["surfacePeer"+s]||q(this.mainBkg,{h:180,s:-15,l:n*(8+s*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||t,this.fillType1=this.fillType1||r,this.fillType2=this.fillType2||q(t,{h:64}),this.fillType3=this.fillType3||q(r,{h:64}),this.fillType4=this.fillType4||q(t,{h:-64}),this.fillType5=this.fillType5||q(r,{h:-64}),this.fillType6=this.fillType6||q(t,{h:128}),this.fillType7=this.fillType7||q(r,{h:128}),this.pie1=this.pie1||t,this.pie2=this.pie2||r,this.pie3=this.pie3||i,this.pie4=this.pie4||q(t,{l:-10}),this.pie5=this.pie5||q(r,{l:-10}),this.pie6=this.pie6||q(i,{l:-10}),this.pie7=this.pie7||q(t,{h:60,l:-10}),this.pie8=this.pie8||q(t,{h:-60,l:-10}),this.pie9=this.pie9||q(t,{h:120,l:0}),this.pie10=this.pie10||q(t,{h:60,l:-20}),this.pie11=this.pie11||q(t,{h:-60,l:-20}),this.pie12=this.pie12||q(t,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||t,this.quadrant2Fill=this.quadrant2Fill||q(t,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||q(t,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||q(t,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||q(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||q(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||q(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Or(this.quadrant1Fill)?Te(this.quadrant1Fill):ke(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||t,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?ke(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||t,this.git1=this.git1||r,this.git2=this.git2||i,this.git3=this.git3||q(t,{h:-30}),this.git4=this.git4||q(t,{h:-60}),this.git5=this.git5||q(t,{h:-90}),this.git6=this.git6||q(t,{h:60}),this.git7=this.git7||q(t,{h:120}),this.darkMode?(this.git0=Te(this.git0,25),this.git1=Te(this.git1,25),this.git2=Te(this.git2,25),this.git3=Te(this.git3,25),this.git4=Te(this.git4,25),this.git5=Te(this.git5,25),this.git6=Te(this.git6,25),this.git7=Te(this.git7,25)):(this.git0=ke(this.git0,25),this.git1=ke(this.git1,25),this.git2=ke(this.git2,25),this.git3=ke(this.git3,25),this.git4=ke(this.git4,25),this.git5=ke(this.git5,25),this.git6=ke(this.git6,25),this.git7=ke(this.git7,25)),this.gitInv0=this.gitInv0||pe(this.git0),this.gitInv1=this.gitInv1||pe(this.git1),this.gitInv2=this.gitInv2||pe(this.git2),this.gitInv3=this.gitInv3||pe(this.git3),this.gitInv4=this.gitInv4||pe(this.git4),this.gitInv5=this.gitInv5||pe(this.git5),this.gitInv6=this.gitInv6||pe(this.git6),this.gitInv7=this.gitInv7||pe(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Ei,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Ai}calculate(t){if(typeof t!="object"){this.updateColors();return}let r=Object.keys(t);r.forEach(i=>{this[i]=t[i]}),this.updateColors(),r.forEach(i=>{this[i]=t[i]})}},M7=a(e=>{let t=new Qw;return t.calculate(e),t},"getThemeVariables")});var Zw,P7,B7=v(()=>{"use strict";Bi();qa();ks();Zw=class{static{a(this,"Theme")}constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=Te(this.primaryColor,16),this.tertiaryColor=q(this.primaryColor,{h:-160}),this.primaryBorderColor=pe(this.background),this.secondaryBorderColor=wt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=wt(this.tertiaryColor,this.darkMode),this.primaryTextColor=pe(this.primaryColor),this.secondaryTextColor=pe(this.secondaryColor),this.tertiaryTextColor=pe(this.tertiaryColor),this.mainBkg="#2a2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=Te(pe("#323D47"),10),this.border1="#ccc",this.border2=Ti(255,255,255,.25),this.arrowheadColor=pe(this.background),this.fontFamily="arial, sans-serif",this.fontSize="14px",this.labelBackground="#181818",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.radius=3,this.strokeWidth=1,this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.fontFamily="arial, sans-serif",this.fontSize="14px",this.useGradient=!0,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,0.2))",this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.noteFontWeight="normal",this.fontWeight="normal"}updateColors(){if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||q(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||q(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||wt(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||wt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||wt(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||wt(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||pe(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||pe(this.tertiaryColor),this.lineColor=this.lineColor||pe(this.background),this.arrowheadColor=this.arrowheadColor||pe(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.border1,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?ke(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||ke(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||pe(this.lineColor),this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||Te(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||q(this.primaryColor,{h:30}),this.cScale4=this.cScale4||q(this.primaryColor,{h:60}),this.cScale5=this.cScale5||q(this.primaryColor,{h:90}),this.cScale6=this.cScale6||q(this.primaryColor,{h:120}),this.cScale7=this.cScale7||q(this.primaryColor,{h:150}),this.cScale8=this.cScale8||q(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||q(this.primaryColor,{h:270}),this.cScale10=this.cScale10||q(this.primaryColor,{h:300}),this.cScale11=this.cScale11||q(this.primaryColor,{h:330}),this.darkMode)for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this["cScale"+r]=ke(this["cScale"+r],75);else for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this["cScale"+r]=ke(this["cScale"+r],25);for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this["cScaleInv"+r]=this["cScaleInv"+r]||pe(this["cScale"+r]);for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this.darkMode?this["cScalePeer"+r]=this["cScalePeer"+r]||Te(this["cScale"+r],10):this["cScalePeer"+r]=this["cScalePeer"+r]||ke(this["cScale"+r],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this["cScaleLabel"+r]=this["cScaleLabel"+r]||this.scaleLabelColor;let t=this.darkMode?-4:-1;for(let r=0;r<5;r++)this["surface"+r]=this["surface"+r]||q(this.mainBkg,{h:180,s:-15,l:t*(5+r*3)}),this["surfacePeer"+r]=this["surfacePeer"+r]||q(this.mainBkg,{h:180,s:-15,l:t*(8+r*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||q(this.primaryColor,{h:64}),this.fillType3=this.fillType3||q(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||q(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||q(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||q(this.primaryColor,{h:128}),this.fillType7=this.fillType7||q(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||q(this.primaryColor,{l:-10}),this.pie5=this.pie5||q(this.secondaryColor,{l:-10}),this.pie6=this.pie6||q(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||q(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||q(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||q(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||q(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||q(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||q(this.primaryColor,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||q(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||q(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||q(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||q(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||q(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||q(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Or(this.quadrant1Fill)?Te(this.quadrant1Fill):ke(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?ke(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||"#0b0000",this.git1=this.git1||"#4d1037",this.git2=this.git2||"#3f5258",this.git3=this.git3||"#4f2f1b",this.git4=this.git4||"#6e0a0a",this.git5=this.git5||"#3b0048",this.git6=this.git6||"#995a01",this.git7=this.git7||"#154706",this.gitDarkMode=!0,this.gitDarkMode?(this.git0=Te(this.git0,25),this.git1=Te(this.git1,25),this.git2=Te(this.git2,25),this.git3=Te(this.git3,25),this.git4=Te(this.git4,25),this.git5=Te(this.git5,25),this.git6=Te(this.git6,25),this.git7=Te(this.git7,25)):(this.git0=ke(this.git0,25),this.git1=ke(this.git1,25),this.git2=ke(this.git2,25),this.git3=ke(this.git3,25),this.git4=ke(this.git4,25),this.git5=ke(this.git5,25),this.git6=ke(this.git6,25),this.git7=ke(this.git7,25)),this.gitInv0=this.gitInv0||pe(this.git0),this.gitInv1=this.gitInv1||pe(this.git1),this.gitInv2=this.gitInv2||pe(this.git2),this.gitInv3=this.gitInv3||pe(this.git3),this.gitInv4=this.gitInv4||pe(this.git4),this.gitInv5=this.gitInv5||pe(this.git5),this.gitInv6=this.gitInv6||pe(this.git6),this.gitInv7=this.gitInv7||pe(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Ei,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Ai}calculate(t){if(typeof t!="object"){this.updateColors();return}let r=Object.keys(t);r.forEach(i=>{this[i]=t[i]}),this.updateColors(),r.forEach(i=>{this[i]=t[i]})}},P7=a(e=>{let t=new Zw;return t.calculate(e),t},"getThemeVariables")});var Jw,$7,F7=v(()=>{"use strict";Bi();qa();ks();Jw=class{static{a(this,"Theme")}constructor(){this.background="#ffffff",this.primaryColor="#cccccc",this.mainBkg="#ffffff",this.noteBkgColor="#fff5ad",this.noteTextColor="#28253D",this.THEME_COLOR_LIMIT=12,this.radius=12,this.strokeWidth=2,this.primaryBorderColor=wt("#28253D",this.darkMode),this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.nodeBorder="#28253D",this.stateBorder="#28253D",this.useGradient=!1,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="url(#drop-shadow)",this.nodeShadow=!0,this.tertiaryColor="#ffffff",this.clusterBkg="#F9F9FB",this.clusterBorder="#BDBCCC",this.noteBorderColor="#FACC15",this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.actorBorder="#28253D",this.filterColor="#000000"}updateColors(){this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#28253D"),this.secondaryColor=this.secondaryColor||q(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||q(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||wt(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||wt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||wt(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||wt(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#FEF9C3",this.noteTextColor=this.noteTextColor||"#28253D",this.secondaryTextColor=this.secondaryTextColor||pe(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||pe(this.tertiaryColor),this.lineColor=this.lineColor||pe(this.background),this.arrowheadColor=this.arrowheadColor||pe(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?ke(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.noteFontWeight=600,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||ke(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||pe(this.lineColor);let t="#ECECFE",r="#E9E9F1",i=q(t,{h:180,l:5});this.sectionBkgColor=this.sectionBkgColor||i,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||r,this.sectionBkgColor2=this.sectionBkgColor2||t,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||t,this.activeTaskBorderColor=this.activeTaskBorderColor||t,this.activeTaskBkgColor=this.activeTaskBkgColor||Te(t,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.compositeTitleBackground="#F9F9FB",this.altBackground="#F9F9FB",this.stateEdgeLabelBackground="#FFFFFF",this.fontWeight=600,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor;for(let s=0;s<this.THEME_COLOR_LIMIT;s++)this["cScale"+s]=this.mainBkg;if(this.darkMode)for(let s=0;s<this.THEME_COLOR_LIMIT;s++)this["cScale"+s]=ke(this["cScale"+s],75);else for(let s=0;s<this.THEME_COLOR_LIMIT;s++)this["cScale"+s]=ke(this["cScale"+s],25);for(let s=0;s<this.THEME_COLOR_LIMIT;s++)this["cScaleInv"+s]=this["cScaleInv"+s]||pe(this["cScale"+s]);for(let s=0;s<this.THEME_COLOR_LIMIT;s++)this.darkMode?this["cScalePeer"+s]=this["cScalePeer"+s]||Te(this["cScale"+s],10):this["cScalePeer"+s]=this["cScalePeer"+s]||ke(this["cScale"+s],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let s=0;s<this.THEME_COLOR_LIMIT;s++)this["cScaleLabel"+s]=this["cScaleLabel"+s]||this.scaleLabelColor;let n=this.darkMode?-4:-1;for(let s=0;s<5;s++)this["surface"+s]=this["surface"+s]||q(this.mainBkg,{h:180,s:-15,l:n*(5+s*3)}),this["surfacePeer"+s]=this["surfacePeer"+s]||q(this.mainBkg,{h:180,s:-15,l:n*(8+s*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||t,this.fillType1=this.fillType1||r,this.fillType2=this.fillType2||q(t,{h:64}),this.fillType3=this.fillType3||q(r,{h:64}),this.fillType4=this.fillType4||q(t,{h:-64}),this.fillType5=this.fillType5||q(r,{h:-64}),this.fillType6=this.fillType6||q(t,{h:128}),this.fillType7=this.fillType7||q(r,{h:128}),this.pie1=this.pie1||t,this.pie2=this.pie2||r,this.pie3=this.pie3||i,this.pie4=this.pie4||q(t,{l:-10}),this.pie5=this.pie5||q(r,{l:-10}),this.pie6=this.pie6||q(i,{l:-10}),this.pie7=this.pie7||q(t,{h:60,l:-10}),this.pie8=this.pie8||q(t,{h:-60,l:-10}),this.pie9=this.pie9||q(t,{h:120,l:0}),this.pie10=this.pie10||q(t,{h:60,l:-20}),this.pie11=this.pie11||q(t,{h:-60,l:-20}),this.pie12=this.pie12||q(t,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||t,this.quadrant2Fill=this.quadrant2Fill||q(t,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||q(t,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||q(t,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||q(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||q(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||q(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Or(this.quadrant1Fill)?Te(this.quadrant1Fill):ke(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||t,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?ke(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.requirementEdgeLabelBackground="#FFFFFF",this.git0=this.git0||t,this.git1=this.git1||r,this.git2=this.git2||i,this.git3=this.git3||q(t,{h:-30}),this.git4=this.git4||q(t,{h:-60}),this.git5=this.git5||q(t,{h:-90}),this.git6=this.git6||q(t,{h:60}),this.git7=this.git7||q(t,{h:120}),this.darkMode?(this.git0=Te(this.git0,25),this.git1=Te(this.git1,25),this.git2=Te(this.git2,25),this.git3=Te(this.git3,25),this.git4=Te(this.git4,25),this.git5=Te(this.git5,25),this.git6=Te(this.git6,25),this.git7=Te(this.git7,25)):(this.git0=ke(this.git0,25),this.git1=ke(this.git1,25),this.git2=ke(this.git2,25),this.git3=ke(this.git3,25),this.git4=ke(this.git4,25),this.git5=ke(this.git5,25),this.git6=ke(this.git6,25),this.git7=ke(this.git7,25)),this.gitInv0=this.gitInv0||pe(this.git0),this.gitInv1=this.gitInv1||pe(this.git1),this.gitInv2=this.gitInv2||pe(this.git2),this.gitInv3=this.gitInv3||pe(this.git3),this.gitInv4=this.gitInv4||pe(this.git4),this.gitInv5=this.gitInv5||pe(this.git5),this.gitInv6=this.gitInv6||pe(this.git6),this.gitInv7=this.gitInv7||pe(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.commitLineColor=this.commitLineColor??"#BDBCCC",this.erEdgeLabelBackground="#FFFFFF",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Ei,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Ai}calculate(t){if(typeof t!="object"){this.updateColors();return}let r=Object.keys(t);r.forEach(i=>{this[i]=t[i]}),this.updateColors(),r.forEach(i=>{this[i]=t[i]})}},$7=a(e=>{let t=new Jw;return t.calculate(e),t},"getThemeVariables")});var eE,V7,G7=v(()=>{"use strict";Bi();qa();ks();eE=class{static{a(this,"Theme")}constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=Te(this.primaryColor,16),this.tertiaryColor=q(this.primaryColor,{h:-160}),this.primaryBorderColor=pe(this.background),this.secondaryBorderColor=wt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=wt(this.tertiaryColor,this.darkMode),this.primaryTextColor=pe(this.primaryColor),this.secondaryTextColor=pe(this.secondaryColor),this.tertiaryTextColor=pe(this.tertiaryColor),this.mainBkg="#111113",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=Te(pe("#323D47"),10),this.border1="#ccc",this.border2=Ti(255,255,255,.25),this.arrowheadColor=pe(this.background),this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.labelBackground="#111113",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.radius=12,this.strokeWidth=2,this.noteBkgColor=this.noteBkgColor??"#FEF9C3",this.noteTextColor=this.noteTextColor??"#28253D",this.THEME_COLOR_LIMIT=12,this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.nodeBorder="#FFFFFF",this.stateBorder="#FFFFFF",this.useGradient=!1,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="url(#drop-shadow)",this.nodeShadow=!0,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.clusterBkg="#1E1A2E",this.clusterBorder="#BDBCCC",this.noteBorderColor="#FACC15",this.noteFontWeight=600,this.filterColor="#FFFFFF"}updateColors(){if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#FFFFFF"),this.secondaryColor=this.secondaryColor||q(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||q(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||wt(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||wt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||wt(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||wt(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#FFFFFF",this.secondaryTextColor=this.secondaryTextColor||pe(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||pe(this.tertiaryColor),this.lineColor=this.lineColor||pe(this.background),this.arrowheadColor=this.arrowheadColor||pe(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.border1,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?ke(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder="#FFFFFF",this.signalColor="#FFFFFF",this.labelBoxBorderColor="#BDBCCC",this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||ke(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||pe(this.lineColor),this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||Te(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.compositeBackground="#16141F",this.altBackground="#16141F",this.compositeTitleBackground="#16141F",this.stateEdgeLabelBackground="#16141F",this.fontWeight=600,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||q(this.primaryColor,{h:30}),this.cScale4=this.cScale4||q(this.primaryColor,{h:60}),this.cScale5=this.cScale5||q(this.primaryColor,{h:90}),this.cScale6=this.cScale6||q(this.primaryColor,{h:120}),this.cScale7=this.cScale7||q(this.primaryColor,{h:150}),this.cScale8=this.cScale8||q(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||q(this.primaryColor,{h:270}),this.cScale10=this.cScale10||q(this.primaryColor,{h:300}),this.cScale11=this.cScale11||q(this.primaryColor,{h:330}),this.darkMode)for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this["cScale"+r]=ke(this["cScale"+r],75);else for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this["cScale"+r]=ke(this["cScale"+r],25);for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this["cScaleInv"+r]=this["cScaleInv"+r]||pe(this["cScale"+r]);for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this.darkMode?this["cScalePeer"+r]=this["cScalePeer"+r]||Te(this["cScale"+r],10):this["cScalePeer"+r]=this["cScalePeer"+r]||ke(this["cScale"+r],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this["cScaleLabel"+r]=this["cScaleLabel"+r]||this.scaleLabelColor;let t=this.darkMode?-4:-1;for(let r=0;r<5;r++)this["surface"+r]=this["surface"+r]||q(this.mainBkg,{h:180,s:-15,l:t*(5+r*3)}),this["surfacePeer"+r]=this["surfacePeer"+r]||q(this.mainBkg,{h:180,s:-15,l:t*(8+r*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||q(this.primaryColor,{h:64}),this.fillType3=this.fillType3||q(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||q(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||q(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||q(this.primaryColor,{h:128}),this.fillType7=this.fillType7||q(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||q(this.primaryColor,{l:-10}),this.pie5=this.pie5||q(this.secondaryColor,{l:-10}),this.pie6=this.pie6||q(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||q(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||q(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||q(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||q(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||q(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||q(this.primaryColor,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||q(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||q(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||q(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||q(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||q(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||q(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Or(this.quadrant1Fill)?Te(this.quadrant1Fill):ke(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?ke(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.requirementEdgeLabelBackground="#16141F",this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||q(this.primaryColor,{h:-30}),this.git4=this.git4||q(this.primaryColor,{h:-60}),this.git5=this.git5||q(this.primaryColor,{h:-90}),this.git6=this.git6||q(this.primaryColor,{h:60}),this.git7=this.git7||q(this.primaryColor,{h:120}),this.darkMode?(this.git0=Te(this.git0,25),this.git1=Te(this.git1,25),this.git2=Te(this.git2,25),this.git3=Te(this.git3,25),this.git4=Te(this.git4,25),this.git5=Te(this.git5,25),this.git6=Te(this.git6,25),this.git7=Te(this.git7,25)):(this.git0=ke(this.git0,25),this.git1=ke(this.git1,25),this.git2=ke(this.git2,25),this.git3=ke(this.git3,25),this.git4=ke(this.git4,25),this.git5=ke(this.git5,25),this.git6=ke(this.git6,25),this.git7=ke(this.git7,25)),this.gitInv0=this.gitInv0||pe(this.git0),this.gitInv1=this.gitInv1||pe(this.git1),this.gitInv2=this.gitInv2||pe(this.git2),this.gitInv3=this.gitInv3||pe(this.git3),this.gitInv4=this.gitInv4||pe(this.git4),this.gitInv5=this.gitInv5||pe(this.git5),this.gitInv6=this.gitInv6||pe(this.git6),this.gitInv7=this.gitInv7||pe(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.commitLineColor=this.commitLineColor??"#BDBCCC",this.erEdgeLabelBackground="#16141F",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Ei,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Ai}calculate(t){if(typeof t!="object"){this.updateColors();return}let r=Object.keys(t);r.forEach(i=>{this[i]=t[i]}),this.updateColors(),r.forEach(i=>{this[i]=t[i]})}},V7=a(e=>{let t=new eE;return t.calculate(e),t},"getThemeVariables")});var tE,W7,z7=v(()=>{"use strict";Bi();qa();ks();tE=class{static{a(this,"Theme")}constructor(){this.background="#ffffff",this.primaryColor="#cccccc",this.mainBkg="#ffffff",this.noteBkgColor="#fff5ad",this.noteTextColor="#28253D",this.THEME_COLOR_LIMIT=12,this.radius=12,this.strokeWidth=2,this.primaryBorderColor=wt(this.primaryColor,this.darkMode),this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.nodeBorder="#28253D",this.stateBorder="#28253D",this.useGradient=!1,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="url(#drop-shadow)",this.nodeShadow=!0,this.tertiaryColor="#ffffff",this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.actorBorder="#28253D",this.noteBorderColor="#FACC15",this.noteFontWeight=600,this.borderColorArray=["#E879F9","#2DD4BF","#FB923C","#22D3EE","#4ADE80","#A78BFA","#F87171","#FACC15","#818CF8","#A3E635 ","#38BDF8","#FB7185"],this.bkgColorArray=["#FDF4FF","#F0FDFA","#FFF7ED","#ECFEFF","#F0FDF4","#F5F3FF","#FEF2F2","#FEFCE8","#EEF2FF","#F7FEE7","#F0F9FF","#FFF1F2"],this.filterColor="#000000"}updateColors(){this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#28253D"),this.secondaryColor=this.secondaryColor||q(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||q(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||wt(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||wt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||wt(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||wt(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#28253D",this.secondaryTextColor=this.secondaryTextColor||pe(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||pe(this.tertiaryColor),this.lineColor=this.lineColor||pe(this.background),this.arrowheadColor=this.arrowheadColor||pe(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?ke(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||ke(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||pe(this.lineColor);let t="#ECECFE",r="#E9E9F1",i=q(t,{h:180,l:5});this.sectionBkgColor=this.sectionBkgColor||i,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||r,this.sectionBkgColor2=this.sectionBkgColor2||t,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||t,this.activeTaskBorderColor=this.activeTaskBorderColor||t,this.activeTaskBkgColor=this.activeTaskBkgColor||Te(t,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||"#f4a8ff",this.cScale1=this.cScale1||"#46ecd5",this.cScale2=this.cScale2||"#ffb86a",this.cScale3=this.cScale3||"#dab2ff",this.cScale4=this.cScale4||"#7bf1a8",this.cScale5=this.cScale5||"#c4b4ff",this.cScale6=this.cScale6||"#ffa2a2",this.cScale7=this.cScale7||"#ffdf20",this.cScale8=this.cScale8||"#a3b3ff",this.cScale9=this.cScale9||"#bbf451",this.cScale10=this.cScale10||"#74d4ff",this.cScale11=this.cScale11||"#ffa1ad";for(let s=0;s<this.THEME_COLOR_LIMIT;s++)this["cScaleInv"+s]=this["cScaleInv"+s]||pe(this["cScale"+s]);for(let s=0;s<this.THEME_COLOR_LIMIT;s++)this.darkMode?this["cScalePeer"+s]=this["cScalePeer"+s]||Te(this["cScale"+s],10):this["cScalePeer"+s]=this["cScalePeer"+s]||ke(this["cScale"+s],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let s=0;s<this.THEME_COLOR_LIMIT;s++)this["cScaleLabel"+s]=this["cScaleLabel"+s]||this.scaleLabelColor;let n=this.darkMode?-4:-1;for(let s=0;s<5;s++)this["surface"+s]=this["surface"+s]||q(this.mainBkg,{h:180,s:-15,l:n*(5+s*3)}),this["surfacePeer"+s]=this["surfacePeer"+s]||q(this.mainBkg,{h:180,s:-15,l:n*(8+s*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||t,this.fillType1=this.fillType1||r,this.fillType2=this.fillType2||q(t,{h:64}),this.fillType3=this.fillType3||q(r,{h:64}),this.fillType4=this.fillType4||q(t,{h:-64}),this.fillType5=this.fillType5||q(r,{h:-64}),this.fillType6=this.fillType6||q(t,{h:128}),this.fillType7=this.fillType7||q(r,{h:128}),this.pie1=this.pie1||t,this.pie2=this.pie2||r,this.pie3=this.pie3||i,this.pie4=this.pie4||q(t,{l:-10}),this.pie5=this.pie5||q(r,{l:-10}),this.pie6=this.pie6||q(i,{l:-10}),this.pie7=this.pie7||q(t,{h:60,l:-10}),this.pie8=this.pie8||q(t,{h:-60,l:-10}),this.pie9=this.pie9||q(t,{h:120,l:0}),this.pie10=this.pie10||q(t,{h:60,l:-20}),this.pie11=this.pie11||q(t,{h:-60,l:-20}),this.pie12=this.pie12||q(t,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||t,this.quadrant2Fill=this.quadrant2Fill||q(t,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||q(t,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||q(t,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||q(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||q(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||q(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Or(this.quadrant1Fill)?Te(this.quadrant1Fill):ke(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||t,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?ke(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||t,this.git1=this.git1||r,this.git2=this.git2||i,this.git3=this.git3||q(t,{h:-30}),this.git4=this.git4||q(t,{h:-60}),this.git5=this.git5||q(t,{h:-90}),this.git6=this.git6||q(t,{h:60}),this.git7=this.git7||q(t,{h:120}),this.darkMode?(this.git0=Te(this.git0,25),this.git1=Te(this.git1,25),this.git2=Te(this.git2,25),this.git3=Te(this.git3,25),this.git4=Te(this.git4,25),this.git5=Te(this.git5,25),this.git6=Te(this.git6,25),this.git7=Te(this.git7,25)):(this.git0=ke(this.git0,25),this.git1=ke(this.git1,25),this.git2=ke(this.git2,25),this.git3=ke(this.git3,25),this.git4=ke(this.git4,25),this.git5=ke(this.git5,25),this.git6=ke(this.git6,25),this.git7=ke(this.git7,25)),this.gitInv0=this.gitInv0||pe(this.git0),this.gitInv1=this.gitInv1||pe(this.git1),this.gitInv2=this.gitInv2||pe(this.git2),this.gitInv3=this.gitInv3||pe(this.git3),this.gitInv4=this.gitInv4||pe(this.git4),this.gitInv5=this.gitInv5||pe(this.git5),this.gitInv6=this.gitInv6||pe(this.git6),this.gitInv7=this.gitInv7||pe(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLineColor=this.commitLineColor??"#BDBCCC",this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.fontWeight=600,this.erEdgeLabelBackground="#FFFFFF",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Ei,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Ai}calculate(t){if(typeof t!="object"){this.updateColors();return}let r=Object.keys(t);r.forEach(i=>{this[i]=t[i]}),this.updateColors(),r.forEach(i=>{this[i]=t[i]})}},W7=a(e=>{let t=new tE;return t.calculate(e),t},"getThemeVariables")});var rE,q7,j7=v(()=>{"use strict";Bi();qa();ks();rE=class{static{a(this,"Theme")}constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=Te(this.primaryColor,16),this.tertiaryColor=q(this.primaryColor,{h:-160}),this.primaryBorderColor=pe(this.background),this.secondaryBorderColor=wt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=wt(this.tertiaryColor,this.darkMode),this.primaryTextColor=pe(this.primaryColor),this.secondaryTextColor=pe(this.secondaryColor),this.tertiaryTextColor=pe(this.tertiaryColor),this.mainBkg="#111113",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=Te(pe("#323D47"),10),this.border1="#ccc",this.border2=Ti(255,255,255,.25),this.arrowheadColor=pe(this.background),this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.labelBackground="#111113",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.radius=12,this.strokeWidth=2,this.noteBkgColor=this.noteBkgColor??"#FEF9C3",this.noteTextColor=this.noteTextColor??"#28253D",this.THEME_COLOR_LIMIT=12,this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.nodeBorder="#FFFFFF",this.stateBorder="#FFFFFF",this.useGradient=!1,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="url(#drop-shadow)",this.nodeShadow=!0,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.clusterBkg="#1E1A2E",this.clusterBorder="#BDBCCC",this.noteBorderColor="#FACC15",this.noteFontWeight=600,this.borderColorArray=["#E879F9","#2DD4BF","#FB923C","#22D3EE","#4ADE80","#A78BFA","#F87171","#FACC15","#818CF8","#A3E635 ","#38BDF8","#FB7185"],this.bkgColorArray=[],this.filterColor="#FFFFFF"}updateColors(){this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#FFFFFF"),this.secondaryColor=this.secondaryColor||q(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||q(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||wt(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||wt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||wt(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||wt(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#FFFFFF",this.secondaryTextColor=this.secondaryTextColor||pe(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||pe(this.tertiaryColor),this.lineColor=this.lineColor||pe(this.background),this.arrowheadColor=this.arrowheadColor||pe(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.border1,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?ke(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder="#FFFFFF",this.signalColor="#FFFFFF",this.labelBoxBorderColor="#BDBCCC",this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||ke(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||pe(this.lineColor),this.rootLabelColor="#FFFFFF",this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||Te(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||"#f4a8ff",this.cScale1=this.cScale1||"#46ecd5",this.cScale2=this.cScale2||"#ffb86a",this.cScale3=this.cScale3||"#dab2ff",this.cScale4=this.cScale4||"#7bf1a8",this.cScale5=this.cScale5||"#c4b4ff",this.cScale6=this.cScale6||"#ffa2a2",this.cScale7=this.cScale7||"#ffdf20",this.cScale8=this.cScale8||"#a3b3ff",this.cScale9=this.cScale9||"#bbf451",this.cScale10=this.cScale10||"#74d4ff",this.cScale11=this.cScale11||"#ffa1ad";for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this["cScaleInv"+r]=this["cScaleInv"+r]||pe(this["cScale"+r]);for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this.darkMode?this["cScalePeer"+r]=this["cScalePeer"+r]||Te(this["cScale"+r],10):this["cScalePeer"+r]=this["cScalePeer"+r]||ke(this["cScale"+r],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this["cScaleLabel"+r]=ke(this["cScale"+r],75);let t=this.darkMode?-4:-1;for(let r=0;r<5;r++)this["surface"+r]=this["surface"+r]||q(this.mainBkg,{h:180,s:-15,l:t*(5+r*3)}),this["surfacePeer"+r]=this["surfacePeer"+r]||q(this.mainBkg,{h:180,s:-15,l:t*(8+r*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||q(this.primaryColor,{h:64}),this.fillType3=this.fillType3||q(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||q(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||q(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||q(this.primaryColor,{h:128}),this.fillType7=this.fillType7||q(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||q(this.primaryColor,{l:-10}),this.pie5=this.pie5||q(this.secondaryColor,{l:-10}),this.pie6=this.pie6||q(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||q(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||q(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||q(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||q(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||q(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||q(this.primaryColor,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||q(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||q(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||q(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||q(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||q(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||q(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Or(this.quadrant1Fill)?Te(this.quadrant1Fill):ke(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?ke(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||q(this.primaryColor,{h:-30}),this.git4=this.git4||q(this.primaryColor,{h:-60}),this.git5=this.git5||q(this.primaryColor,{h:-90}),this.git6=this.git6||q(this.primaryColor,{h:60}),this.git7=this.git7||q(this.primaryColor,{h:120}),this.darkMode?(this.git0=Te(this.git0,25),this.git1=Te(this.git1,25),this.git2=Te(this.git2,25),this.git3=Te(this.git3,25),this.git4=Te(this.git4,25),this.git5=Te(this.git5,25),this.git6=Te(this.git6,25),this.git7=Te(this.git7,25)):(this.git0=ke(this.git0,25),this.git1=ke(this.git1,25),this.git2=ke(this.git2,25),this.git3=ke(this.git3,25),this.git4=ke(this.git4,25),this.git5=ke(this.git5,25),this.git6=ke(this.git6,25),this.git7=ke(this.git7,25)),this.gitInv0=this.gitInv0||pe(this.git0),this.gitInv1=this.gitInv1||pe(this.git1),this.gitInv2=this.gitInv2||pe(this.git2),this.gitInv3=this.gitInv3||pe(this.git3),this.gitInv4=this.gitInv4||pe(this.git4),this.gitInv5=this.gitInv5||pe(this.git5),this.gitInv6=this.gitInv6||pe(this.git6),this.gitInv7=this.gitInv7||pe(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.commitLineColor=this.commitLineColor??"#BDBCCC",this.fontWeight=600,this.erEdgeLabelBackground="#16141F",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Ei,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Ai}calculate(t){if(typeof t!="object"){this.updateColors();return}let r=Object.keys(t);r.forEach(i=>{this[i]=t[i]}),this.updateColors(),r.forEach(i=>{this[i]=t[i]})}},q7=a(e=>{let t=new rE;return t.calculate(e),t},"getThemeVariables")});var Ua,qx=v(()=>{"use strict";E7();R7();Yu();D7();N7();O7();B7();F7();G7();z7();j7();Ua={base:{getThemeVariables:w7},dark:{getThemeVariables:A7},default:{getThemeVariables:ja},forest:{getThemeVariables:L7},neutral:{getThemeVariables:I7},neo:{getThemeVariables:M7},"neo-dark":{getThemeVariables:P7},redux:{getThemeVariables:$7},"redux-dark":{getThemeVariables:V7},"redux-color":{getThemeVariables:W7},"redux-dark-color":{getThemeVariables:q7}}});var mn,U7=v(()=>{"use strict";mn={flowchart:{useMaxWidth:!0,titleTopMargin:25,subGraphTitleMargin:{top:0,bottom:0},diagramPadding:8,htmlLabels:null,nodeSpacing:50,rankSpacing:50,curve:"basis",padding:15,defaultRenderer:"dagre-wrapper",wrappingWidth:200,inheritDir:!1},sequence:{useMaxWidth:!0,hideUnusedParticipants:!1,activationWidth:10,diagramMarginX:50,diagramMarginY:10,actorMargin:50,width:150,height:65,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",mirrorActors:!0,forceMenus:!1,bottomMarginAdj:1,rightAngles:!1,showSequenceNumbers:!1,actorFontSize:14,actorFontFamily:'"Open Sans", sans-serif',actorFontWeight:400,noteFontSize:14,noteFontFamily:'"trebuchet ms", verdana, arial, sans-serif',noteFontWeight:400,noteAlign:"center",messageFontSize:16,messageFontFamily:'"trebuchet ms", verdana, arial, sans-serif',messageFontWeight:400,wrap:!1,wrapPadding:10,labelBoxWidth:50,labelBoxHeight:20},gantt:{useMaxWidth:!0,titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,rightPadding:75,leftPadding:75,gridLineStartPadding:35,fontSize:11,sectionFontSize:11,numberSectionStyles:4,axisFormat:"%Y-%m-%d",topAxis:!1,displayMode:"",weekday:"sunday"},journey:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,maxLabelWidth:360,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"],titleColor:"",titleFontFamily:'"trebuchet ms", verdana, arial, sans-serif',titleFontSize:"4ex"},class:{useMaxWidth:!0,titleTopMargin:25,arrowMarkerAbsolute:!1,dividerMargin:10,padding:5,textHeight:10,defaultRenderer:"dagre-wrapper",htmlLabels:!1,hideEmptyMembersBox:!1,hierarchicalNamespaces:!0},state:{useMaxWidth:!0,titleTopMargin:25,dividerMargin:10,sizeUnit:5,padding:8,textHeight:10,titleShift:-15,noteMargin:10,forkWidth:70,forkHeight:7,miniPadding:2,fontSizeFactor:5.02,fontSize:24,labelHeight:16,edgeLengthFactor:"20",compositTitleSize:35,radius:5,defaultRenderer:"dagre-wrapper"},er:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:20,layoutDirection:"TB",minEntityWidth:100,minEntityHeight:75,entityPadding:15,nodeSpacing:140,rankSpacing:80,stroke:"gray",fill:"honeydew",fontSize:12},pie:{useMaxWidth:!0,textPosition:.75},quadrantChart:{useMaxWidth:!0,chartWidth:500,chartHeight:500,titleFontSize:20,titlePadding:10,quadrantPadding:5,xAxisLabelPadding:5,yAxisLabelPadding:5,xAxisLabelFontSize:16,yAxisLabelFontSize:16,quadrantLabelFontSize:16,quadrantTextTopPadding:5,pointTextPadding:5,pointLabelFontSize:12,pointRadius:5,xAxisPosition:"top",yAxisPosition:"left",quadrantInternalBorderStrokeWidth:1,quadrantExternalBorderStrokeWidth:2},xyChart:{useMaxWidth:!0,width:700,height:500,titleFontSize:20,titlePadding:10,showDataLabel:!1,showDataLabelOutsideBar:!1,showTitle:!0,xAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2},yAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2},chartOrientation:"vertical",plotReservedSpacePercent:50},requirement:{useMaxWidth:!0,rect_fill:"#f9f9f9",text_color:"#333",rect_border_size:"0.5px",rect_border_color:"#bbb",rect_min_width:200,rect_min_height:200,fontSize:14,rect_padding:10,line_height:20},mindmap:{useMaxWidth:!0,padding:10,maxNodeWidth:200,layoutAlgorithm:"cose-bilkent"},ishikawa:{useMaxWidth:!0,diagramPadding:20},kanban:{useMaxWidth:!0,padding:8,sectionWidth:200,ticketBaseUrl:""},timeline:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"],disableMulticolor:!1},gitGraph:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:8,nodeLabel:{width:75,height:100,x:-25,y:0},mainBranchName:"main",mainBranchOrder:0,showCommitLabel:!0,showBranches:!0,rotateCommitLabel:!0,parallelCommits:!1,arrowMarkerAbsolute:!1},c4:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,c4ShapeMargin:50,c4ShapePadding:20,width:216,height:60,boxMargin:10,c4ShapeInRow:4,nextLinePaddingX:0,c4BoundaryInRow:2,personFontSize:14,personFontFamily:'"Open Sans", sans-serif',personFontWeight:"normal",external_personFontSize:14,external_personFontFamily:'"Open Sans", sans-serif',external_personFontWeight:"normal",systemFontSize:14,systemFontFamily:'"Open Sans", sans-serif',systemFontWeight:"normal",external_systemFontSize:14,external_systemFontFamily:'"Open Sans", sans-serif',external_systemFontWeight:"normal",system_dbFontSize:14,system_dbFontFamily:'"Open Sans", sans-serif',system_dbFontWeight:"normal",external_system_dbFontSize:14,external_system_dbFontFamily:'"Open Sans", sans-serif',external_system_dbFontWeight:"normal",system_queueFontSize:14,system_queueFontFamily:'"Open Sans", sans-serif',system_queueFontWeight:"normal",external_system_queueFontSize:14,external_system_queueFontFamily:'"Open Sans", sans-serif',external_system_queueFontWeight:"normal",boundaryFontSize:14,boundaryFontFamily:'"Open Sans", sans-serif',boundaryFontWeight:"normal",messageFontSize:12,messageFontFamily:'"Open Sans", sans-serif',messageFontWeight:"normal",containerFontSize:14,containerFontFamily:'"Open Sans", sans-serif',containerFontWeight:"normal",external_containerFontSize:14,external_containerFontFamily:'"Open Sans", sans-serif',external_containerFontWeight:"normal",container_dbFontSize:14,container_dbFontFamily:'"Open Sans", sans-serif',container_dbFontWeight:"normal",external_container_dbFontSize:14,external_container_dbFontFamily:'"Open Sans", sans-serif',external_container_dbFontWeight:"normal",container_queueFontSize:14,container_queueFontFamily:'"Open Sans", sans-serif',container_queueFontWeight:"normal",external_container_queueFontSize:14,external_container_queueFontFamily:'"Open Sans", sans-serif',external_container_queueFontWeight:"normal",componentFontSize:14,componentFontFamily:'"Open Sans", sans-serif',componentFontWeight:"normal",external_componentFontSize:14,external_componentFontFamily:'"Open Sans", sans-serif',external_componentFontWeight:"normal",component_dbFontSize:14,component_dbFontFamily:'"Open Sans", sans-serif',component_dbFontWeight:"normal",external_component_dbFontSize:14,external_component_dbFontFamily:'"Open Sans", sans-serif',external_component_dbFontWeight:"normal",component_queueFontSize:14,component_queueFontFamily:'"Open Sans", sans-serif',component_queueFontWeight:"normal",external_component_queueFontSize:14,external_component_queueFontFamily:'"Open Sans", sans-serif',external_component_queueFontWeight:"normal",wrap:!0,wrapPadding:10,person_bg_color:"#08427B",person_border_color:"#073B6F",external_person_bg_color:"#686868",external_person_border_color:"#8A8A8A",system_bg_color:"#1168BD",system_border_color:"#3C7FC0",system_db_bg_color:"#1168BD",system_db_border_color:"#3C7FC0",system_queue_bg_color:"#1168BD",system_queue_border_color:"#3C7FC0",external_system_bg_color:"#999999",external_system_border_color:"#8A8A8A",external_system_db_bg_color:"#999999",external_system_db_border_color:"#8A8A8A",external_system_queue_bg_color:"#999999",external_system_queue_border_color:"#8A8A8A",container_bg_color:"#438DD5",container_border_color:"#3C7FC0",container_db_bg_color:"#438DD5",container_db_border_color:"#3C7FC0",container_queue_bg_color:"#438DD5",container_queue_border_color:"#3C7FC0",external_container_bg_color:"#B3B3B3",external_container_border_color:"#A6A6A6",external_container_db_bg_color:"#B3B3B3",external_container_db_border_color:"#A6A6A6",external_container_queue_bg_color:"#B3B3B3",external_container_queue_border_color:"#A6A6A6",component_bg_color:"#85BBF0",component_border_color:"#78A8D8",component_db_bg_color:"#85BBF0",component_db_border_color:"#78A8D8",component_queue_bg_color:"#85BBF0",component_queue_border_color:"#78A8D8",external_component_bg_color:"#CCCCCC",external_component_border_color:"#BFBFBF",external_component_db_bg_color:"#CCCCCC",external_component_db_border_color:"#BFBFBF",external_component_queue_bg_color:"#CCCCCC",external_component_queue_border_color:"#BFBFBF"},sankey:{useMaxWidth:!0,width:600,height:400,linkColor:"gradient",nodeAlignment:"justify",showValues:!0,prefix:"",suffix:"",nodeWidth:10,nodePadding:12,labelStyle:"legacy"},block:{useMaxWidth:!0,padding:8},packet:{useMaxWidth:!0,rowHeight:32,bitWidth:32,bitsPerRow:32,showBits:!0,paddingX:5,paddingY:5},treeView:{useMaxWidth:!0,rowIndent:10,paddingX:5,paddingY:5,lineThickness:1},architecture:{useMaxWidth:!0,padding:40,iconSize:80,fontSize:16,randomize:!1,nodeSeparation:75,idealEdgeLengthMultiplier:1.5,edgeElasticity:.45,numIter:2500},eventmodeling:{useMaxWidth:!0,padding:30,rowHeight:32},radar:{useMaxWidth:!0,width:600,height:600,marginTop:50,marginRight:50,marginBottom:50,marginLeft:50,axisScaleFactor:1,axisLabelFactor:1.05,curveTension:.17},venn:{useMaxWidth:!0,width:800,height:450,padding:8,useDebugLayout:!1},theme:"default",look:"classic",handDrawnSeed:0,layout:"dagre",maxTextSize:5e4,maxEdges:500,darkMode:!1,fontFamily:'"trebuchet ms", verdana, arial, sans-serif;',logLevel:5,securityLevel:"strict",startOnLoad:!0,arrowMarkerAbsolute:!1,secure:["secure","securityLevel","startOnLoad","maxTextSize","suppressErrorRendering","maxEdges"],legacyMathML:!1,forceLegacyMathML:!1,deterministicIds:!1,fontSize:16,markdownAutoWrap:!0,suppressErrorRendering:!1}});var H7,Y7,K7,Ut,gn=v(()=>{"use strict";qx();U7();H7={...mn,deterministicIDSeed:void 0,elk:{mergeEdges:!1,nodePlacementStrategy:"BRANDES_KOEPF",forceNodeModelOrder:!1,considerModelOrder:"NODES_AND_EDGES"},themeCSS:void 0,themeVariables:Ua.default.getThemeVariables(),sequence:{...mn.sequence,messageFont:a(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},"messageFont"),noteFont:a(function(){return{fontFamily:this.noteFontFamily,fontSize:this.noteFontSize,fontWeight:this.noteFontWeight}},"noteFont"),actorFont:a(function(){return{fontFamily:this.actorFontFamily,fontSize:this.actorFontSize,fontWeight:this.actorFontWeight}},"actorFont")},class:{hideEmptyMembersBox:!1,hierarchicalNamespaces:!0},gantt:{...mn.gantt,tickInterval:void 0,useWidth:void 0},c4:{...mn.c4,useWidth:void 0,personFont:a(function(){return{fontFamily:this.personFontFamily,fontSize:this.personFontSize,fontWeight:this.personFontWeight}},"personFont"),flowchart:{...mn.flowchart,inheritDir:!1},external_personFont:a(function(){return{fontFamily:this.external_personFontFamily,fontSize:this.external_personFontSize,fontWeight:this.external_personFontWeight}},"external_personFont"),systemFont:a(function(){return{fontFamily:this.systemFontFamily,fontSize:this.systemFontSize,fontWeight:this.systemFontWeight}},"systemFont"),external_systemFont:a(function(){return{fontFamily:this.external_systemFontFamily,fontSize:this.external_systemFontSize,fontWeight:this.external_systemFontWeight}},"external_systemFont"),system_dbFont:a(function(){return{fontFamily:this.system_dbFontFamily,fontSize:this.system_dbFontSize,fontWeight:this.system_dbFontWeight}},"system_dbFont"),external_system_dbFont:a(function(){return{fontFamily:this.external_system_dbFontFamily,fontSize:this.external_system_dbFontSize,fontWeight:this.external_system_dbFontWeight}},"external_system_dbFont"),system_queueFont:a(function(){return{fontFamily:this.system_queueFontFamily,fontSize:this.system_queueFontSize,fontWeight:this.system_queueFontWeight}},"system_queueFont"),external_system_queueFont:a(function(){return{fontFamily:this.external_system_queueFontFamily,fontSize:this.external_system_queueFontSize,fontWeight:this.external_system_queueFontWeight}},"external_system_queueFont"),containerFont:a(function(){return{fontFamily:this.containerFontFamily,fontSize:this.containerFontSize,fontWeight:this.containerFontWeight}},"containerFont"),external_containerFont:a(function(){return{fontFamily:this.external_containerFontFamily,fontSize:this.external_containerFontSize,fontWeight:this.external_containerFontWeight}},"external_containerFont"),container_dbFont:a(function(){return{fontFamily:this.container_dbFontFamily,fontSize:this.container_dbFontSize,fontWeight:this.container_dbFontWeight}},"container_dbFont"),external_container_dbFont:a(function(){return{fontFamily:this.external_container_dbFontFamily,fontSize:this.external_container_dbFontSize,fontWeight:this.external_container_dbFontWeight}},"external_container_dbFont"),container_queueFont:a(function(){return{fontFamily:this.container_queueFontFamily,fontSize:this.container_queueFontSize,fontWeight:this.container_queueFontWeight}},"container_queueFont"),external_container_queueFont:a(function(){return{fontFamily:this.external_container_queueFontFamily,fontSize:this.external_container_queueFontSize,fontWeight:this.external_container_queueFontWeight}},"external_container_queueFont"),componentFont:a(function(){return{fontFamily:this.componentFontFamily,fontSize:this.componentFontSize,fontWeight:this.componentFontWeight}},"componentFont"),external_componentFont:a(function(){return{fontFamily:this.external_componentFontFamily,fontSize:this.external_componentFontSize,fontWeight:this.external_componentFontWeight}},"external_componentFont"),component_dbFont:a(function(){return{fontFamily:this.component_dbFontFamily,fontSize:this.component_dbFontSize,fontWeight:this.component_dbFontWeight}},"component_dbFont"),external_component_dbFont:a(function(){return{fontFamily:this.external_component_dbFontFamily,fontSize:this.external_component_dbFontSize,fontWeight:this.external_component_dbFontWeight}},"external_component_dbFont"),component_queueFont:a(function(){return{fontFamily:this.component_queueFontFamily,fontSize:this.component_queueFontSize,fontWeight:this.component_queueFontWeight}},"component_queueFont"),external_component_queueFont:a(function(){return{fontFamily:this.external_component_queueFontFamily,fontSize:this.external_component_queueFontSize,fontWeight:this.external_component_queueFontWeight}},"external_component_queueFont"),boundaryFont:a(function(){return{fontFamily:this.boundaryFontFamily,fontSize:this.boundaryFontSize,fontWeight:this.boundaryFontWeight}},"boundaryFont"),messageFont:a(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},"messageFont")},pie:{...mn.pie,useWidth:984},xyChart:{...mn.xyChart,useWidth:void 0},requirement:{...mn.requirement,useWidth:void 0},packet:{...mn.packet},eventmodeling:{...mn.eventmodeling},treeView:{...mn.treeView,useWidth:void 0},radar:{...mn.radar},ishikawa:{...mn.ishikawa},sankey:{...mn.sankey,nodeColors:void 0},treemap:{useMaxWidth:!0,padding:10,diagramPadding:8,showValues:!0,nodeWidth:100,nodeHeight:40,borderWidth:1,valueFontSize:12,labelFontSize:14,valueFormat:","},venn:{...mn.venn}},Y7=a((e,t="")=>Object.keys(e).reduce((r,i)=>Array.isArray(e[i])?r:typeof e[i]=="object"&&e[i]!==null?[...r,t+i,...Y7(e[i],"")]:[...r,t+i],[]),"keyify"),K7=new Set(Y7(H7,"")),Ut=H7});var kf,iE,jx=v(()=>{"use strict";gn();nt();kf=a(e=>{if(W.debug("sanitizeDirective called with",e),!(typeof e!="object"||e==null)){if(Array.isArray(e)){e.forEach(t=>kf(t));return}for(let t of Object.keys(e)){if(W.debug("Checking key",t),t.startsWith("__")||t.includes("proto")||t.includes("constr")||!K7.has(t)||e[t]==null){W.debug("sanitize deleting key: ",t),delete e[t];continue}if(typeof e[t]=="object"){if(t==="nodeColors"){let i=/^#[\da-f]{3,8}$|^rgb\([\d\s%,.]+\)$|^hsl\([\d\s%,.]+\)$|^[a-z]+$/i;for(let n of Object.keys(e[t]))(typeof e[t][n]!="string"||!i.test(e[t][n]))&&(W.debug("sanitize deleting invalid color:",n,e[t][n]),delete e[t][n])}else W.debug("sanitizing object",t),kf(e[t]);continue}let r=["themeCSS","fontFamily","altFontFamily"];for(let i of r)t.includes(i)&&(W.debug("sanitizing css option",t),e[t]=iE(e[t]))}if(e.themeVariables)for(let t of Object.keys(e.themeVariables)){let r=e.themeVariables[t];r?.match&&!r.match(/^[\d "#%(),.;A-Za-z]+$/)&&(e.themeVariables[t]="")}W.debug("After sanitization",e)}},"sanitizeDirective"),iE=a(e=>{let t=0,r=0;for(let i of e){if(t<r)return"{ /* ERROR: Unbalanced CSS */ }";i==="{"?t++:i==="}"&&r++}return t!==r?"{ /* ERROR: Unbalanced CSS */ }":e},"sanitizeCss")});var pc,yn,Kn,Q7,Cf,xg,Ux,nE,Z7,J7,aE,Hx,ct,e$,t$,bg,jCe,X7,r$,i$,ar,Xt=v(()=>{"use strict";bf();nt();qx();gn();jx();pc=Object.freeze(Ut),yn=a(e=>!(e===!1||["false","null","0"].includes(String(e).trim().toLowerCase())),"evaluate"),Kn=ri({},pc),Cf=[],xg=ri({},pc),Ux=a((e,t)=>{let r=ri({},e),i={};for(let n of t)e$(n),i=ri(i,n);if(r=ri(r,i),i.theme&&i.theme in Ua){let n=ri({},Q7),s=ri(n.themeVariables||{},i.themeVariables);r.theme&&r.theme in Ua&&(r.themeVariables=Ua[r.theme].getThemeVariables(s))}return xg=r,i$(xg),xg},"updateCurrentConfig"),nE=a(e=>(Kn=ri({},pc),Kn=ri(Kn,e),e.theme&&Ua[e.theme]&&(Kn.themeVariables=Ua[e.theme].getThemeVariables(e.themeVariables)),Ux(Kn,Cf),Kn),"setSiteConfig"),Z7=a(e=>{Q7=ri({},e)},"saveConfigFromInitialize"),J7=a(e=>(Kn=ri(Kn,e),Ux(Kn,Cf),Kn),"updateSiteConfig"),aE=a(()=>ri({},Kn),"getSiteConfig"),Hx=a(e=>(i$(e),ri(xg,e),ct()),"setConfig"),ct=a(()=>ri({},xg),"getConfig"),e$=a(e=>{e&&(["secure",...Kn.secure??[]].forEach(t=>{Object.hasOwn(e,t)&&(W.debug(`Denied attempt to modify a secure key ${t}`,e[t]),delete e[t])}),Object.keys(e).forEach(t=>{t.startsWith("__")&&delete e[t]}),Object.keys(e).forEach(t=>{typeof e[t]=="string"&&(e[t].includes("<")||e[t].includes(">")||e[t].includes("url(data:"))&&delete e[t],typeof e[t]=="object"&&e$(e[t])}))},"sanitize"),t$=a(e=>{kf(e),e.fontFamily&&!e.themeVariables?.fontFamily&&(e.themeVariables={...e.themeVariables,fontFamily:e.fontFamily}),Cf.push(e),Ux(Kn,Cf)},"addDirective"),bg=a((e=Kn)=>{Cf=[],Ux(e,Cf)},"reset"),jCe={LAZY_LOAD_DEPRECATED:"The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead.",FLOWCHART_HTML_LABELS_DEPRECATED:"flowchart.htmlLabels is deprecated. Please use global htmlLabels instead."},X7={},r$=a(e=>{X7[e]||(W.warn(jCe[e]),X7[e]=!0)},"issueWarning"),i$=a(e=>{e&&(e.lazyLoadedDiagrams||e.loadExternalDiagramsAtStartup)&&r$("LAZY_LOAD_DEPRECATED")},"checkConfig"),ar=a(e=>(e.flowchart?.htmlLabels!=null&&r$("FLOWCHART_HTML_LABELS_DEPRECATED"),yn(e.htmlLabels??e.flowchart?.htmlLabels??!0)),"getEffectiveHtmlLabels")});function Dn(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var r=arguments.length,i=new Array(r>1?r-1:0),n=1;n<r;n++)i[n-1]=arguments[n];return dE(e,t,i)}}function JCe(e){return function(){for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return fE(e,r)}}function pr(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Kx;n$&&n$(e,null);let i=t.length;for(;i--;){let n=t[i];if(typeof n=="string"){let s=r(n);s!==n&&(UCe(t)||(t[i]=s),n=s)}e[n]=!0}return e}function eve(e){for(let t=0;t<e.length;t++)Cs(e,t)||(e[t]=null);return e}function oo(e){let t=_g(null);for(let[r,i]of d$(e))Cs(e,r)&&(Array.isArray(i)?t[r]=eve(i):i&&typeof i=="object"&&i.constructor===Object?t[r]=oo(i):t[r]=i);return t}function vg(e,t){for(;e!==null;){let i=YCe(e,t);if(i){if(i.get)return Dn(i.get);if(typeof i.value=="function")return Dn(i.value)}e=HCe(e)}function r(){return null}return a(r,"fallbackValue"),r}function m$(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:hve(),t=a(Xe=>m$(Xe),"DOMPurify");if(t.version="3.4.0",t.removed=[],!e||!e.document||e.document.nodeType!==Sg.document||!e.Element)return t.isSupported=!1,t;let{document:r}=e,i=r,n=i.currentScript,{DocumentFragment:s,HTMLTemplateElement:o,Node:l,Element:u,NodeFilter:h,NamedNodeMap:d=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:f,DOMParser:p,trustedTypes:m}=e,g=u.prototype,x=vg(g,"cloneNode"),b=vg(g,"remove"),T=vg(g,"nextSibling"),k=vg(g,"childNodes"),C=vg(g,"parentNode");if(typeof o=="function"){let Xe=r.createElement("template");Xe.content&&Xe.content.ownerDocument&&(r=Xe.content.ownerDocument)}let S,w="",{implementation:_,createNodeIterator:L,createDocumentFragment:I,getElementsByTagName:B}=r,{importNode:G}=i,P=h$();t.isSupported=typeof d$=="function"&&typeof C=="function"&&_&&_.createHTMLDocument!==void 0;let{MUSTACHE_EXPR:F,ERB_EXPR:A,TMPLIT_EXPR:D,DATA_ATTR:R,ARIA_ATTR:N,IS_SCRIPT_OR_DATA:$,ATTR_WHITESPACE:E,CUSTOM_ELEMENT:M}=u$,{IS_ALLOWED_URI:V}=u$,O=null,z=pr({},[...s$,...lE,...cE,...uE,...o$]),U=null,K=pr({},[...l$,...hE,...c$,...Yx]),j=Object.seal(_g(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),ae=null,X=null,de=Object.seal(_g(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),le=!0,ge=!0,he=!1,te=!0,Le=!1,xe=!0,ye=!1,be=!1,Ce=!1,Oe=!1,Ae=!1,st=!1,ce=!0,Mt=!1,fe="user-content-",Ue=!0,Je=!1,ot={},Ne=null,ze=pr({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),oe=null,_e=pr({},["audio","video","img","source","image","track"]),re=null,Ke=pr({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Q="http://www.w3.org/1998/Math/MathML",Me="http://www.w3.org/2000/svg",Y="http://www.w3.org/1999/xhtml",dt=Y,Ge=!1,ft=null,Be=pr({},[Q,Me,Y],sE),tt=pr({},["mi","mo","mn","ms","mtext"]),Ie=pr({},["annotation-xml"]),it=pr({},["title","style","font","a","script"]),Ee=null,pt=["application/xhtml+xml","text/html"],ie="text/html",$t=null,ue=null,vt=r.createElement("form"),Lt=a(function(ne){return ne instanceof RegExp||ne instanceof Function},"isRegexOrFunction"),Nr=a(function(){let ne=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(ue&&ue===ne)){if((!ne||typeof ne!="object")&&(ne={}),ne=oo(ne),Ee=pt.indexOf(ne.PARSER_MEDIA_TYPE)===-1?ie:ne.PARSER_MEDIA_TYPE,$t=Ee==="application/xhtml+xml"?sE:Kx,O=Cs(ne,"ALLOWED_TAGS")?pr({},ne.ALLOWED_TAGS,$t):z,U=Cs(ne,"ALLOWED_ATTR")?pr({},ne.ALLOWED_ATTR,$t):K,ft=Cs(ne,"ALLOWED_NAMESPACES")?pr({},ne.ALLOWED_NAMESPACES,sE):Be,re=Cs(ne,"ADD_URI_SAFE_ATTR")?pr(oo(Ke),ne.ADD_URI_SAFE_ATTR,$t):Ke,oe=Cs(ne,"ADD_DATA_URI_TAGS")?pr(oo(_e),ne.ADD_DATA_URI_TAGS,$t):_e,Ne=Cs(ne,"FORBID_CONTENTS")?pr({},ne.FORBID_CONTENTS,$t):ze,ae=Cs(ne,"FORBID_TAGS")?pr({},ne.FORBID_TAGS,$t):oo({}),X=Cs(ne,"FORBID_ATTR")?pr({},ne.FORBID_ATTR,$t):oo({}),ot=Cs(ne,"USE_PROFILES")?ne.USE_PROFILES:!1,le=ne.ALLOW_ARIA_ATTR!==!1,ge=ne.ALLOW_DATA_ATTR!==!1,he=ne.ALLOW_UNKNOWN_PROTOCOLS||!1,te=ne.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Le=ne.SAFE_FOR_TEMPLATES||!1,xe=ne.SAFE_FOR_XML!==!1,ye=ne.WHOLE_DOCUMENT||!1,Oe=ne.RETURN_DOM||!1,Ae=ne.RETURN_DOM_FRAGMENT||!1,st=ne.RETURN_TRUSTED_TYPE||!1,Ce=ne.FORCE_BODY||!1,ce=ne.SANITIZE_DOM!==!1,Mt=ne.SANITIZE_NAMED_PROPS||!1,Ue=ne.KEEP_CONTENT!==!1,Je=ne.IN_PLACE||!1,V=ne.ALLOWED_URI_REGEXP||f$,dt=ne.NAMESPACE||Y,tt=ne.MATHML_TEXT_INTEGRATION_POINTS||tt,Ie=ne.HTML_INTEGRATION_POINTS||Ie,j=ne.CUSTOM_ELEMENT_HANDLING||_g(null),ne.CUSTOM_ELEMENT_HANDLING&&Lt(ne.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(j.tagNameCheck=ne.CUSTOM_ELEMENT_HANDLING.tagNameCheck),ne.CUSTOM_ELEMENT_HANDLING&&Lt(ne.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(j.attributeNameCheck=ne.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),ne.CUSTOM_ELEMENT_HANDLING&&typeof ne.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(j.allowCustomizedBuiltInElements=ne.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Le&&(ge=!1),Ae&&(Oe=!0),ot&&(O=pr({},o$),U=_g(null),ot.html===!0&&(pr(O,s$),pr(U,l$)),ot.svg===!0&&(pr(O,lE),pr(U,hE),pr(U,Yx)),ot.svgFilters===!0&&(pr(O,cE),pr(U,hE),pr(U,Yx)),ot.mathMl===!0&&(pr(O,uE),pr(U,c$),pr(U,Yx))),de.tagCheck=null,de.attributeCheck=null,ne.ADD_TAGS&&(typeof ne.ADD_TAGS=="function"?de.tagCheck=ne.ADD_TAGS:(O===z&&(O=oo(O)),pr(O,ne.ADD_TAGS,$t))),ne.ADD_ATTR&&(typeof ne.ADD_ATTR=="function"?de.attributeCheck=ne.ADD_ATTR:(U===K&&(U=oo(U)),pr(U,ne.ADD_ATTR,$t))),ne.ADD_URI_SAFE_ATTR&&pr(re,ne.ADD_URI_SAFE_ATTR,$t),ne.FORBID_CONTENTS&&(Ne===ze&&(Ne=oo(Ne)),pr(Ne,ne.FORBID_CONTENTS,$t)),ne.ADD_FORBID_CONTENTS&&(Ne===ze&&(Ne=oo(Ne)),pr(Ne,ne.ADD_FORBID_CONTENTS,$t)),Ue&&(O["#text"]=!0),ye&&pr(O,["html","head","body"]),O.table&&(pr(O,["tbody"]),delete ae.tbody),ne.TRUSTED_TYPES_POLICY){if(typeof ne.TRUSTED_TYPES_POLICY.createHTML!="function")throw Cg('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof ne.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Cg('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');S=ne.TRUSTED_TYPES_POLICY,w=S.createHTML("")}else S===void 0&&(S=dve(m,n)),S!==null&&typeof w=="string"&&(w=S.createHTML(""));Ln&&Ln(ne),ue=ne}},"_parseConfig"),gt=pr({},[...lE,...cE,...tve]),Pt=pr({},[...uE,...rve]),kt=a(function(ne){let De=C(ne);(!De||!De.tagName)&&(De={namespaceURI:dt,tagName:"template"});let et=Kx(ne.tagName),Bt=Kx(De.tagName);return ft[ne.namespaceURI]?ne.namespaceURI===Me?De.namespaceURI===Y?et==="svg":De.namespaceURI===Q?et==="svg"&&(Bt==="annotation-xml"||tt[Bt]):!!gt[et]:ne.namespaceURI===Q?De.namespaceURI===Y?et==="math":De.namespaceURI===Me?et==="math"&&Ie[Bt]:!!Pt[et]:ne.namespaceURI===Y?De.namespaceURI===Me&&!Ie[Bt]||De.namespaceURI===Q&&!tt[Bt]?!1:!Pt[et]&&(it[et]||!gt[et]):!!(Ee==="application/xhtml+xml"&&ft[ne.namespaceURI]):!1},"_checkValidNamespace"),H=a(function(ne){kg(t.removed,{element:ne});try{C(ne).removeChild(ne)}catch{b(ne)}},"_forceRemove"),at=a(function(ne,De){try{kg(t.removed,{attribute:De.getAttributeNode(ne),from:De})}catch{kg(t.removed,{attribute:null,from:De})}if(De.removeAttribute(ne),ne==="is")if(Oe||Ae)try{H(De)}catch{}else try{De.setAttribute(ne,"")}catch{}},"_removeAttribute"),ut=a(function(ne){let De=null,et=null;if(Ce)ne="<remove></remove>"+ne;else{let Mr=oE(ne,/^[\r\n\t ]+/);et=Mr&&Mr[0]}Ee==="application/xhtml+xml"&&dt===Y&&(ne='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+ne+"</body></html>");let Bt=S?S.createHTML(ne):ne;if(dt===Y)try{De=new p().parseFromString(Bt,Ee)}catch{}if(!De||!De.documentElement){De=_.createDocument(dt,"template",null);try{De.documentElement.innerHTML=Ge?w:Bt}catch{}}let ur=De.body||De.documentElement;return ne&&et&&ur.insertBefore(r.createTextNode(et),ur.childNodes[0]||null),dt===Y?B.call(De,ye?"html":"body")[0]:ye?De.documentElement:ur},"_initDocument"),We=a(function(ne){return L.call(ne.ownerDocument||ne,ne,h.SHOW_ELEMENT|h.SHOW_COMMENT|h.SHOW_TEXT|h.SHOW_PROCESSING_INSTRUCTION|h.SHOW_CDATA_SECTION,null)},"_createNodeIterator"),Z=a(function(ne){return ne instanceof f&&(typeof ne.nodeName!="string"||typeof ne.textContent!="string"||typeof ne.removeChild!="function"||!(ne.attributes instanceof d)||typeof ne.removeAttribute!="function"||typeof ne.setAttribute!="function"||typeof ne.namespaceURI!="string"||typeof ne.insertBefore!="function"||typeof ne.hasChildNodes!="function")},"_isClobbered"),Re=a(function(ne){return typeof l=="function"&&ne instanceof l},"_isNode");function Fe(Xe,ne,De){Tg(Xe,et=>{et.call(t,ne,De,ue)})}a(Fe,"_executeHooks");let Ye=a(function(ne){let De=null;if(Fe(P.beforeSanitizeElements,ne,null),Z(ne))return H(ne),!0;let et=$t(ne.nodeName);if(Fe(P.uponSanitizeElement,ne,{tagName:et,allowedTags:O}),xe&&ne.hasChildNodes()&&!Re(ne.firstElementChild)&&Rn(/<[/\w!]/g,ne.innerHTML)&&Rn(/<[/\w!]/g,ne.textContent)||xe&&ne.namespaceURI===Y&&et==="style"&&Re(ne.firstElementChild)||ne.nodeType===Sg.progressingInstruction||xe&&ne.nodeType===Sg.comment&&Rn(/<[/\w]/g,ne.data))return H(ne),!0;if(ae[et]||!(de.tagCheck instanceof Function&&de.tagCheck(et))&&!O[et]){if(!ae[et]&&mt(et)&&(j.tagNameCheck instanceof RegExp&&Rn(j.tagNameCheck,et)||j.tagNameCheck instanceof Function&&j.tagNameCheck(et)))return!1;if(Ue&&!Ne[et]){let Bt=C(ne)||ne.parentNode,ur=k(ne)||ne.childNodes;if(ur&&Bt){let Mr=ur.length;for(let hr=Mr-1;hr>=0;--hr){let rn=x(ur[hr],!0);rn.__removalCount=(ne.__removalCount||0)+1,Bt.insertBefore(rn,T(ne))}}}return H(ne),!0}return ne instanceof u&&!kt(ne)||(et==="noscript"||et==="noembed"||et==="noframes")&&Rn(/<\/no(script|embed|frames)/i,ne.innerHTML)?(H(ne),!0):(Le&&ne.nodeType===Sg.text&&(De=ne.textContent,Tg([F,A,D],Bt=>{De=vf(De,Bt," ")}),ne.textContent!==De&&(kg(t.removed,{element:ne.cloneNode()}),ne.textContent=De)),Fe(P.afterSanitizeElements,ne,null),!1)},"_sanitizeElements"),zt=a(function(ne,De,et){if(X[De]||ce&&(De==="id"||De==="name")&&(et in r||et in vt))return!1;if(!(ge&&!X[De]&&Rn(R,De))){if(!(le&&Rn(N,De))){if(!(de.attributeCheck instanceof Function&&de.attributeCheck(De,ne))){if(!U[De]||X[De]){if(!(mt(ne)&&(j.tagNameCheck instanceof RegExp&&Rn(j.tagNameCheck,ne)||j.tagNameCheck instanceof Function&&j.tagNameCheck(ne))&&(j.attributeNameCheck instanceof RegExp&&Rn(j.attributeNameCheck,De)||j.attributeNameCheck instanceof Function&&j.attributeNameCheck(De,ne))||De==="is"&&j.allowCustomizedBuiltInElements&&(j.tagNameCheck instanceof RegExp&&Rn(j.tagNameCheck,et)||j.tagNameCheck instanceof Function&&j.tagNameCheck(et))))return!1}else if(!re[De]){if(!Rn(V,vf(et,E,""))){if(!((De==="src"||De==="xlink:href"||De==="href")&&ne!=="script"&&QCe(et,"data:")===0&&oe[ne])){if(!(he&&!Rn($,vf(et,E,"")))){if(et)return!1}}}}}}}return!0},"_isValidAttribute"),mt=a(function(ne){return ne!=="annotation-xml"&&oE(ne,M)},"_isBasicCustomElement"),Vt=a(function(ne){Fe(P.beforeSanitizeAttributes,ne,null);let{attributes:De}=ne;if(!De||Z(ne))return;let et={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:U,forceKeepAttr:void 0},Bt=De.length;for(;Bt--;){let ur=De[Bt],{name:Mr,namespaceURI:hr,value:rn}=ur,ao=$t(Mr),Gu=rn,Gr=Mr==="value"?Gu:ZCe(Gu);if(et.attrName=ao,et.attrValue=Gr,et.keepAttr=!0,et.forceKeepAttr=void 0,Fe(P.uponSanitizeAttribute,ne,et),Gr=et.attrValue,Mt&&(ao==="id"||ao==="name")&&(at(Mr,ne),Gr=fe+Gr),xe&&Rn(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,Gr)){at(Mr,ne);continue}if(ao==="attributename"&&oE(Gr,"href")){at(Mr,ne);continue}if(et.forceKeepAttr)continue;if(!et.keepAttr){at(Mr,ne);continue}if(!te&&Rn(/\/>/i,Gr)){at(Mr,ne);continue}Le&&Tg([F,A,D],Ot=>{Gr=vf(Gr,Ot," ")});let _t=$t(ne.nodeName);if(!zt(_t,ao,Gr)){at(Mr,ne);continue}if(S&&typeof m=="object"&&typeof m.getAttributeType=="function"&&!hr)switch(m.getAttributeType(_t,ao)){case"TrustedHTML":{Gr=S.createHTML(Gr);break}case"TrustedScriptURL":{Gr=S.createScriptURL(Gr);break}}if(Gr!==Gu)try{hr?ne.setAttributeNS(hr,Mr,Gr):ne.setAttribute(Mr,Gr),Z(ne)?H(ne):a$(t.removed)}catch{at(Mr,ne)}}Fe(P.afterSanitizeAttributes,ne,null)},"_sanitizeAttributes"),lr=a(function(ne){let De=null,et=We(ne);for(Fe(P.beforeSanitizeShadowDOM,ne,null);De=et.nextNode();)Fe(P.uponSanitizeShadowNode,De,null),Ye(De),Vt(De),De.content instanceof s&&lr(De.content);Fe(P.afterSanitizeShadowDOM,ne,null)},"_sanitizeShadowDOM");return t.sanitize=function(Xe){let ne=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},De=null,et=null,Bt=null,ur=null;if(Ge=!Xe,Ge&&(Xe="<!-->"),typeof Xe!="string"&&!Re(Xe))if(typeof Xe.toString=="function"){if(Xe=Xe.toString(),typeof Xe!="string")throw Cg("dirty is not a string, aborting")}else throw Cg("toString is not a function");if(!t.isSupported)return Xe;if(be||Nr(ne),t.removed=[],typeof Xe=="string"&&(Je=!1),Je){if(Xe.nodeName){let rn=$t(Xe.nodeName);if(!O[rn]||ae[rn])throw Cg("root node is forbidden and cannot be sanitized in-place")}}else if(Xe instanceof l)De=ut("<!---->"),et=De.ownerDocument.importNode(Xe,!0),et.nodeType===Sg.element&&et.nodeName==="BODY"||et.nodeName==="HTML"?De=et:De.appendChild(et);else{if(!Oe&&!Le&&!ye&&Xe.indexOf("<")===-1)return S&&st?S.createHTML(Xe):Xe;if(De=ut(Xe),!De)return Oe?null:st?w:""}De&&Ce&&H(De.firstChild);let Mr=We(Je?Xe:De);for(;Bt=Mr.nextNode();)Ye(Bt),Vt(Bt),Bt.content instanceof s&&lr(Bt.content);if(Je)return Xe;if(Oe){if(Le){De.normalize();let rn=De.innerHTML;Tg([F,A,D],ao=>{rn=vf(rn,ao," ")}),De.innerHTML=rn}if(Ae)for(ur=I.call(De.ownerDocument);De.firstChild;)ur.appendChild(De.firstChild);else ur=De;return(U.shadowroot||U.shadowrootmode)&&(ur=G.call(i,ur,!0)),ur}let hr=ye?De.outerHTML:De.innerHTML;return ye&&O["!doctype"]&&De.ownerDocument&&De.ownerDocument.doctype&&De.ownerDocument.doctype.name&&Rn(p$,De.ownerDocument.doctype.name)&&(hr="<!DOCTYPE "+De.ownerDocument.doctype.name+`>
`+hr),Le&&Tg([F,A,D],rn=>{hr=vf(hr,rn," ")}),S&&st?S.createHTML(hr):hr},t.setConfig=function(){let Xe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Nr(Xe),be=!0},t.clearConfig=function(){ue=null,be=!1},t.isValidAttribute=function(Xe,ne,De){ue||Nr({});let et=$t(Xe),Bt=$t(ne);return zt(et,Bt,De)},t.addHook=function(Xe,ne){typeof ne=="function"&&kg(P[Xe],ne)},t.removeHook=function(Xe,ne){if(ne!==void 0){let De=KCe(P[Xe],ne);return De===-1?void 0:XCe(P[Xe],De,1)[0]}return a$(P[Xe])},t.removeHooks=function(Xe){P[Xe]=[]},t.removeAllHooks=function(){P=h$()},t}var d$,n$,UCe,HCe,YCe,Ln,Ha,_g,dE,fE,Tg,KCe,a$,kg,XCe,Kx,sE,oE,vf,QCe,ZCe,Cs,Rn,Cg,s$,lE,cE,tve,uE,rve,o$,l$,hE,c$,Yx,ive,nve,ave,sve,ove,f$,lve,cve,p$,uve,u$,Sg,hve,dve,h$,Ya,wg=v(()=>{"use strict";({entries:d$,setPrototypeOf:n$,isFrozen:UCe,getPrototypeOf:HCe,getOwnPropertyDescriptor:YCe}=Object),{freeze:Ln,seal:Ha,create:_g}=Object,{apply:dE,construct:fE}=typeof Reflect<"u"&&Reflect;Ln||(Ln=a(function(t){return t},"freeze"));Ha||(Ha=a(function(t){return t},"seal"));dE||(dE=a(function(t,r){for(var i=arguments.length,n=new Array(i>2?i-2:0),s=2;s<i;s++)n[s-2]=arguments[s];return t.apply(r,n)},"apply"));fE||(fE=a(function(t){for(var r=arguments.length,i=new Array(r>1?r-1:0),n=1;n<r;n++)i[n-1]=arguments[n];return new t(...i)},"construct"));Tg=Dn(Array.prototype.forEach),KCe=Dn(Array.prototype.lastIndexOf),a$=Dn(Array.prototype.pop),kg=Dn(Array.prototype.push),XCe=Dn(Array.prototype.splice),Kx=Dn(String.prototype.toLowerCase),sE=Dn(String.prototype.toString),oE=Dn(String.prototype.match),vf=Dn(String.prototype.replace),QCe=Dn(String.prototype.indexOf),ZCe=Dn(String.prototype.trim),Cs=Dn(Object.prototype.hasOwnProperty),Rn=Dn(RegExp.prototype.test),Cg=JCe(TypeError);a(Dn,"unapply");a(JCe,"unconstruct");a(pr,"addToSet");a(eve,"cleanArray");a(oo,"clone");a(vg,"lookupGetter");s$=Ln(["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","search","section","select","shadow","slot","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"]),lE=Ln(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),cE=Ln(["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"]),tve=Ln(["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"]),uE=Ln(["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"]),rve=Ln(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),o$=Ln(["#text"]),l$=Ln(["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","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","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","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),hE=Ln(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),c$=Ln(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Yx=Ln(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),ive=Ha(/\{\{[\w\W]*|[\w\W]*\}\}/gm),nve=Ha(/<%[\w\W]*|[\w\W]*%>/gm),ave=Ha(/\$\{[\w\W]*/gm),sve=Ha(/^data-[\-\w.\u00B7-\uFFFF]+$/),ove=Ha(/^aria-[\-\w]+$/),f$=Ha(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),lve=Ha(/^(?:\w+script|data):/i),cve=Ha(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),p$=Ha(/^html$/i),uve=Ha(/^[a-z][.\w]*(-[.\w]+)+$/i),u$=Object.freeze({__proto__:null,ARIA_ATTR:ove,ATTR_WHITESPACE:cve,CUSTOM_ELEMENT:uve,DATA_ATTR:sve,DOCTYPE_NAME:p$,ERB_EXPR:nve,IS_ALLOWED_URI:f$,IS_SCRIPT_OR_DATA:lve,MUSTACHE_EXPR:ive,TMPLIT_EXPR:ave}),Sg={element:1,text:3,progressingInstruction:7,comment:8,document:9},hve=a(function(){return typeof window>"u"?null:window},"getGlobal"),dve=a(function(t,r){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let i=null,n="data-tt-policy-suffix";r&&r.hasAttribute(n)&&(i=r.getAttribute(n));let s="dompurify"+(i?"#"+i:"");try{return t.createPolicy(s,{createHTML(o){return o},createScriptURL(o){return o}})}catch{return console.warn("TrustedTypes policy "+s+" could not be created."),null}},"_createTrustedTypesPolicy"),h$=a(function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},"_createHooksMap");a(m$,"createDOMPurify");Ya=m$()});function mve(){let e="data-temp-href-target";Ya.addHook("beforeSanitizeAttributes",t=>{t.tagName==="A"&&t.hasAttribute("target")&&t.setAttribute(e,t.getAttribute("target")??"")}),Ya.addHook("afterSanitizeAttributes",t=>{t.tagName==="A"&&t.hasAttribute(e)&&(t.setAttribute("target",t.getAttribute(e)??""),t.removeAttribute(e),t.getAttribute("target")==="_blank"&&t.setAttribute("rel","noopener"))})}var Sf,fve,pve,y$,g$,rr,gve,yve,xve,bve,x$,Ku,Tve,kve,lo,pE,Cve,vve,Sve,mE,ii,Xu,_ve,_f,He,dr=v(()=>{"use strict";wg();Xt();Sf=/<br\s*\/?>/gi,fve=a(e=>e?x$(e).replace(/\\n/g,"#br#").split("#br#"):[""],"getRows"),pve=(()=>{let e=!1;return()=>{e||(mve(),e=!0)}})();a(mve,"setupDompurifyHooks");y$=a(e=>(pve(),Ya.sanitize(e)),"removeScript"),g$=a((e,t)=>{if(ar(t)){let r=t.securityLevel;r==="antiscript"||r==="strict"||r==="sandbox"?e=y$(e):r!=="loose"&&(e=x$(e),e=e.replace(/</g,"<").replace(/>/g,">"),e=e.replace(/=/g,"="),e=bve(e))}return e},"sanitizeMore"),rr=a((e,t)=>e&&(t.dompurifyConfig?e=Ya.sanitize(g$(e,t),t.dompurifyConfig).toString():e=Ya.sanitize(g$(e,t),{FORBID_TAGS:["style"]}).toString(),e),"sanitizeText"),gve=a((e,t)=>typeof e=="string"?rr(e,t):e.flat().map(r=>rr(r,t)),"sanitizeTextOrArray"),yve=a(e=>Sf.test(e),"hasBreaks"),xve=a(e=>e.split(Sf),"splitBreaks"),bve=a(e=>e.replace(/#br#/g,"<br/>"),"placeholderToBreak"),x$=a(e=>e.replace(Sf,"#br#"),"breakToPlaceholder"),Ku=a(e=>{let t="";return e&&(t=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,t=CSS.escape(t)),t},"getUrl"),Tve=a(function(...e){let t=e.filter(r=>!isNaN(r));return Math.max(...t)},"getMax"),kve=a(function(...e){let t=e.filter(r=>!isNaN(r));return Math.min(...t)},"getMin"),lo=a(function(e){let t=e.split(/(,)/),r=[];for(let i=0;i<t.length;i++){let n=t[i];if(n===","&&i>0&&i+1<t.length){let s=t[i-1],o=t[i+1];Cve(s,o)&&(n=s+","+o,i++,r.pop())}r.push(vve(n))}return r.join("")},"parseGenericTypes"),pE=a((e,t)=>Math.max(0,e.split(t).length-1),"countOccurrence"),Cve=a((e,t)=>{let r=pE(e,"~"),i=pE(t,"~");return r===1&&i===1},"shouldCombineSets"),vve=a(e=>{let t=pE(e,"~"),r=!1;if(t<=1)return e;t%2!==0&&e.startsWith("~")&&(e=e.substring(1),r=!0);let i=[...e],n=i.indexOf("~"),s=i.lastIndexOf("~");for(;n!==-1&&s!==-1&&n!==s;)i[n]="<",i[s]=">",n=i.indexOf("~"),s=i.lastIndexOf("~");return r&&i.unshift("~"),i.join("")},"processSet"),Sve=a(()=>window.MathMLElement!==void 0,"isMathMLSupported"),mE=/\$\$(.*)\$\$/g,ii=a(e=>(e.match(mE)?.length??0)>0,"hasKatex"),Xu=a(async(e,t)=>{let r=document.createElement("div");r.innerHTML=await _f(e,t),r.id="katex-temp",r.style.visibility="hidden",r.style.position="absolute",r.style.top="0",document.querySelector("body")?.insertAdjacentElement("beforeend",r);let n={width:r.clientWidth,height:r.clientHeight};return r.remove(),n},"calculateMathMLDimensions"),_ve=a(async(e,t)=>ii(e)?Sve()||t.legacyMathML||t.forceLegacyMathML?e.replace(mE,"Katex is not supported in @mermaid-js/tiny. Please use the full mermaid library."):e.replace(mE,"MathML is unsupported in this environment."):e,"renderKatexUnsanitized"),_f=a(async(e,t)=>rr(await _ve(e,t),t),"renderKatexSanitized"),He={getRows:fve,sanitizeText:rr,sanitizeTextOrArray:gve,hasBreaks:yve,splitBreaks:xve,lineBreakRegex:Sf,removeScript:y$,getUrl:Ku,evaluate:yn,getMax:Tve,getMin:kve}});var wve,gE,b$,T$,k$,C$,co,Qu=v(()=>{"use strict";K8();Xt();dr();nt();wve={body:'<g><rect width="80" height="80" style="fill: #087ebf; stroke-width: 0px;"/><text transform="translate(21.16 64.67)" style="fill: #fff; font-family: ArialMT, Arial; font-size: 67.75px;"><tspan x="0" y="0">?</tspan></text></g>',height:80,width:80},gE=new Map,b$=new Map,T$=a(e=>{for(let t of e){if(!t.name)throw new Error('Invalid icon loader. Must have a "name" property with non-empty string value.');if(W.debug("Registering icon pack:",t.name),"loader"in t)b$.set(t.name,t.loader);else if("icons"in t)gE.set(t.name,t.icons);else throw W.error("Invalid icon loader:",t),new Error('Invalid icon loader. Must have either "icons" or "loader" property.')}},"registerIconPacks"),k$=a(async(e,t)=>{let r=Rw(e,!0,t!==void 0);if(!r)throw new Error(`Invalid icon name: ${e}`);let i=r.prefix||t;if(!i)throw new Error(`Icon name must contain a prefix: ${e}`);let n=gE.get(i);if(!n){let o=b$.get(i);if(!o)throw new Error(`Icon set not found: ${r.prefix}`);try{n={...await o(),prefix:i},gE.set(i,n)}catch(l){throw W.error(l),new Error(`Failed to load icon set: ${r.prefix}`)}}let s=Dw(n,r.name);if(!s)throw new Error(`Icon not found: ${e}`);return s},"getRegisteredIconData"),C$=a(async e=>{try{return await k$(e),!0}catch{return!1}},"isIconAvailable"),co=a(async(e,t,r)=>{let i;try{i=await k$(e,t?.fallbackPrefix)}catch(o){W.error(o),i=wve}let n=Nw(i,t),s=Ow(Mw(n.body),{...n.attributes,...r});return rr(s,ct())},"getIconSVG")});function Xx(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var i=Array.from(typeof e=="string"?[e]:e);i[i.length-1]=i[i.length-1].replace(/\r?\n([\t ]*)$/,"");var n=i.reduce(function(l,u){var h=u.match(/\n([\t ]+|(?!\s).)/g);return h?l.concat(h.map(function(d){var f,p;return(p=(f=d.match(/[\t ]/g))===null||f===void 0?void 0:f.length)!==null&&p!==void 0?p:0})):l},[]);if(n.length){var s=new RegExp(`
[ ]{`+Math.min.apply(Math,n)+"}","g");i=i.map(function(l){return l.replace(s,`
`)})}i[0]=i[0].replace(/^\r?\n/,"");var o=i[0];return t.forEach(function(l,u){var h=o.match(/(?:^|\n)( *)$/),d=h?h[1]:"",f=l;typeof l=="string"&&l.includes(`
`)&&(f=String(l).split(`
`).map(function(p,m){return m===0?p:""+d+p}).join(`
`)),o+=f+i[u+1]}),o}var yE=v(()=>{"use strict";a(Xx,"dedent")});var Qx,Zu,v$,Zx=v(()=>{"use strict";Qx=/^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s,Zu=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,v$=/\s*%%.*\n/gm});var wf,xE=v(()=>{"use strict";wf=class extends Error{static{a(this,"UnknownDiagramError")}constructor(t){super(t),this.name="UnknownDiagramError"}}});var ll,Ef,Jx,bE,S$,Ju=v(()=>{"use strict";nt();Zx();xE();ll={},Ef=a(function(e,t){e=e.replace(Qx,"").replace(Zu,"").replace(v$,`
`);for(let[r,{detector:i}]of Object.entries(ll))if(i(e,t))return r;throw new wf(`No diagram type detected matching given configuration for text: ${e}`)},"detectType"),Jx=a((...e)=>{for(let{id:t,detector:r,loader:i}of e)bE(t,r,i)},"registerLazyLoadedDiagrams"),bE=a((e,t,r)=>{ll[e]&&W.warn(`Detector with key ${e} already exists. Overwriting.`),ll[e]={detector:t,loader:r},W.debug(`Detector with key ${e} added${r?" with loader":""}`)},"addDetector"),S$=a(e=>ll[e].loader,"getDiagramLoader")});var Eg,_$,TE=v(()=>{"use strict";Eg=(function(){var e=a(function(fe,Ue,Je,ot){for(Je=Je||{},ot=fe.length;ot--;Je[fe[ot]]=Ue);return Je},"o"),t=[1,24],r=[1,25],i=[1,26],n=[1,27],s=[1,28],o=[1,63],l=[1,64],u=[1,65],h=[1,66],d=[1,67],f=[1,68],p=[1,69],m=[1,29],g=[1,30],x=[1,31],b=[1,32],T=[1,33],k=[1,34],C=[1,35],S=[1,36],w=[1,37],_=[1,38],L=[1,39],I=[1,40],B=[1,41],G=[1,42],P=[1,43],F=[1,44],A=[1,45],D=[1,46],R=[1,47],N=[1,48],$=[1,50],E=[1,51],M=[1,52],V=[1,53],O=[1,54],z=[1,55],U=[1,56],K=[1,57],j=[1,58],ae=[1,59],X=[1,60],de=[14,42],le=[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],ge=[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],he=[1,82],te=[1,83],Le=[1,84],xe=[1,85],ye=[12,14,42],be=[12,14,33,42],Ce=[12,14,33,42,76,77,79,80],Oe=[12,33],Ae=[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],st={trace:a(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:a(function(Ue,Je,ot,Ne,ze,oe,_e){var re=oe.length-1;switch(ze){case 3:Ne.setDirection("TB");break;case 4:Ne.setDirection("BT");break;case 5:Ne.setDirection("RL");break;case 6:Ne.setDirection("LR");break;case 8:case 9:case 10:case 11:case 12:Ne.setC4Type(oe[re-3]);break;case 19:Ne.setTitle(oe[re].substring(6)),this.$=oe[re].substring(6);break;case 20:Ne.setAccDescription(oe[re].substring(15)),this.$=oe[re].substring(15);break;case 21:this.$=oe[re].trim(),Ne.setTitle(this.$);break;case 22:case 23:this.$=oe[re].trim(),Ne.setAccDescription(this.$);break;case 28:oe[re].splice(2,0,"ENTERPRISE"),Ne.addPersonOrSystemBoundary(...oe[re]),this.$=oe[re];break;case 29:oe[re].splice(2,0,"SYSTEM"),Ne.addPersonOrSystemBoundary(...oe[re]),this.$=oe[re];break;case 30:Ne.addPersonOrSystemBoundary(...oe[re]),this.$=oe[re];break;case 31:oe[re].splice(2,0,"CONTAINER"),Ne.addContainerBoundary(...oe[re]),this.$=oe[re];break;case 32:Ne.addDeploymentNode("node",...oe[re]),this.$=oe[re];break;case 33:Ne.addDeploymentNode("nodeL",...oe[re]),this.$=oe[re];break;case 34:Ne.addDeploymentNode("nodeR",...oe[re]),this.$=oe[re];break;case 35:Ne.popBoundaryParseStack();break;case 39:Ne.addPersonOrSystem("person",...oe[re]),this.$=oe[re];break;case 40:Ne.addPersonOrSystem("external_person",...oe[re]),this.$=oe[re];break;case 41:Ne.addPersonOrSystem("system",...oe[re]),this.$=oe[re];break;case 42:Ne.addPersonOrSystem("system_db",...oe[re]),this.$=oe[re];break;case 43:Ne.addPersonOrSystem("system_queue",...oe[re]),this.$=oe[re];break;case 44:Ne.addPersonOrSystem("external_system",...oe[re]),this.$=oe[re];break;case 45:Ne.addPersonOrSystem("external_system_db",...oe[re]),this.$=oe[re];break;case 46:Ne.addPersonOrSystem("external_system_queue",...oe[re]),this.$=oe[re];break;case 47:Ne.addContainer("container",...oe[re]),this.$=oe[re];break;case 48:Ne.addContainer("container_db",...oe[re]),this.$=oe[re];break;case 49:Ne.addContainer("container_queue",...oe[re]),this.$=oe[re];break;case 50:Ne.addContainer("external_container",...oe[re]),this.$=oe[re];break;case 51:Ne.addContainer("external_container_db",...oe[re]),this.$=oe[re];break;case 52:Ne.addContainer("external_container_queue",...oe[re]),this.$=oe[re];break;case 53:Ne.addComponent("component",...oe[re]),this.$=oe[re];break;case 54:Ne.addComponent("component_db",...oe[re]),this.$=oe[re];break;case 55:Ne.addComponent("component_queue",...oe[re]),this.$=oe[re];break;case 56:Ne.addComponent("external_component",...oe[re]),this.$=oe[re];break;case 57:Ne.addComponent("external_component_db",...oe[re]),this.$=oe[re];break;case 58:Ne.addComponent("external_component_queue",...oe[re]),this.$=oe[re];break;case 60:Ne.addRel("rel",...oe[re]),this.$=oe[re];break;case 61:Ne.addRel("birel",...oe[re]),this.$=oe[re];break;case 62:Ne.addRel("rel_u",...oe[re]),this.$=oe[re];break;case 63:Ne.addRel("rel_d",...oe[re]),this.$=oe[re];break;case 64:Ne.addRel("rel_l",...oe[re]),this.$=oe[re];break;case 65:Ne.addRel("rel_r",...oe[re]),this.$=oe[re];break;case 66:Ne.addRel("rel_b",...oe[re]),this.$=oe[re];break;case 67:oe[re].splice(0,1),Ne.addRel("rel",...oe[re]),this.$=oe[re];break;case 68:Ne.updateElStyle("update_el_style",...oe[re]),this.$=oe[re];break;case 69:Ne.updateRelStyle("update_rel_style",...oe[re]),this.$=oe[re];break;case 70:Ne.updateLayoutConfig("update_layout_config",...oe[re]),this.$=oe[re];break;case 71:this.$=[oe[re]];break;case 72:oe[re].unshift(oe[re-1]),this.$=oe[re];break;case 73:case 75:this.$=oe[re].trim();break;case 74:let Ke={};Ke[oe[re-1].trim()]=oe[re].trim(),this.$=Ke;break;case 76:this.$="";break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],7:[1,6],8:[1,7],9:[1,8],10:4,11:[1,9],15:[1,10],16:[1,11],17:[1,12],18:[1,13]},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,7]},{1:[2,3]},{1:[2,4]},{1:[2,5]},{1:[2,6]},{12:[1,14]},{12:[1,15]},{12:[1,16]},{12:[1,17]},{12:[1,18]},{13:19,19:20,20:21,21:22,22:t,23:r,24:i,26:n,28:s,29:49,30:61,32:62,34:o,36:l,37:u,38:h,39:d,40:f,41:p,43:23,44:m,45:g,46:x,47:b,48:T,49:k,50:C,51:S,52:w,53:_,54:L,55:I,56:B,57:G,58:P,59:F,60:A,61:D,62:R,63:N,64:$,65:E,66:M,67:V,68:O,69:z,70:U,71:K,72:j,73:ae,74:X},{13:70,19:20,20:21,21:22,22:t,23:r,24:i,26:n,28:s,29:49,30:61,32:62,34:o,36:l,37:u,38:h,39:d,40:f,41:p,43:23,44:m,45:g,46:x,47:b,48:T,49:k,50:C,51:S,52:w,53:_,54:L,55:I,56:B,57:G,58:P,59:F,60:A,61:D,62:R,63:N,64:$,65:E,66:M,67:V,68:O,69:z,70:U,71:K,72:j,73:ae,74:X},{13:71,19:20,20:21,21:22,22:t,23:r,24:i,26:n,28:s,29:49,30:61,32:62,34:o,36:l,37:u,38:h,39:d,40:f,41:p,43:23,44:m,45:g,46:x,47:b,48:T,49:k,50:C,51:S,52:w,53:_,54:L,55:I,56:B,57:G,58:P,59:F,60:A,61:D,62:R,63:N,64:$,65:E,66:M,67:V,68:O,69:z,70:U,71:K,72:j,73:ae,74:X},{13:72,19:20,20:21,21:22,22:t,23:r,24:i,26:n,28:s,29:49,30:61,32:62,34:o,36:l,37:u,38:h,39:d,40:f,41:p,43:23,44:m,45:g,46:x,47:b,48:T,49:k,50:C,51:S,52:w,53:_,54:L,55:I,56:B,57:G,58:P,59:F,60:A,61:D,62:R,63:N,64:$,65:E,66:M,67:V,68:O,69:z,70:U,71:K,72:j,73:ae,74:X},{13:73,19:20,20:21,21:22,22:t,23:r,24:i,26:n,28:s,29:49,30:61,32:62,34:o,36:l,37:u,38:h,39:d,40:f,41:p,43:23,44:m,45:g,46:x,47:b,48:T,49:k,50:C,51:S,52:w,53:_,54:L,55:I,56:B,57:G,58:P,59:F,60:A,61:D,62:R,63:N,64:$,65:E,66:M,67:V,68:O,69:z,70:U,71:K,72:j,73:ae,74:X},{14:[1,74]},e(de,[2,13],{43:23,29:49,30:61,32:62,20:75,34:o,36:l,37:u,38:h,39:d,40:f,41:p,44:m,45:g,46:x,47:b,48:T,49:k,50:C,51:S,52:w,53:_,54:L,55:I,56:B,57:G,58:P,59:F,60:A,61:D,62:R,63:N,64:$,65:E,66:M,67:V,68:O,69:z,70:U,71:K,72:j,73:ae,74:X}),e(de,[2,14]),e(le,[2,16],{12:[1,76]}),e(de,[2,36],{12:[1,77]}),e(ge,[2,19]),e(ge,[2,20]),{25:[1,78]},{27:[1,79]},e(ge,[2,23]),{35:80,75:81,76:he,77:te,79:Le,80:xe},{35:86,75:81,76:he,77:te,79:Le,80:xe},{35:87,75:81,76:he,77:te,79:Le,80:xe},{35:88,75:81,76:he,77:te,79:Le,80:xe},{35:89,75:81,76:he,77:te,79:Le,80:xe},{35:90,75:81,76:he,77:te,79:Le,80:xe},{35:91,75:81,76:he,77:te,79:Le,80:xe},{35:92,75:81,76:he,77:te,79:Le,80:xe},{35:93,75:81,76:he,77:te,79:Le,80:xe},{35:94,75:81,76:he,77:te,79:Le,80:xe},{35:95,75:81,76:he,77:te,79:Le,80:xe},{35:96,75:81,76:he,77:te,79:Le,80:xe},{35:97,75:81,76:he,77:te,79:Le,80:xe},{35:98,75:81,76:he,77:te,79:Le,80:xe},{35:99,75:81,76:he,77:te,79:Le,80:xe},{35:100,75:81,76:he,77:te,79:Le,80:xe},{35:101,75:81,76:he,77:te,79:Le,80:xe},{35:102,75:81,76:he,77:te,79:Le,80:xe},{35:103,75:81,76:he,77:te,79:Le,80:xe},{35:104,75:81,76:he,77:te,79:Le,80:xe},e(ye,[2,59]),{35:105,75:81,76:he,77:te,79:Le,80:xe},{35:106,75:81,76:he,77:te,79:Le,80:xe},{35:107,75:81,76:he,77:te,79:Le,80:xe},{35:108,75:81,76:he,77:te,79:Le,80:xe},{35:109,75:81,76:he,77:te,79:Le,80:xe},{35:110,75:81,76:he,77:te,79:Le,80:xe},{35:111,75:81,76:he,77:te,79:Le,80:xe},{35:112,75:81,76:he,77:te,79:Le,80:xe},{35:113,75:81,76:he,77:te,79:Le,80:xe},{35:114,75:81,76:he,77:te,79:Le,80:xe},{35:115,75:81,76:he,77:te,79:Le,80:xe},{20:116,29:49,30:61,32:62,34:o,36:l,37:u,38:h,39:d,40:f,41:p,43:23,44:m,45:g,46:x,47:b,48:T,49:k,50:C,51:S,52:w,53:_,54:L,55:I,56:B,57:G,58:P,59:F,60:A,61:D,62:R,63:N,64:$,65:E,66:M,67:V,68:O,69:z,70:U,71:K,72:j,73:ae,74:X},{12:[1,118],33:[1,117]},{35:119,75:81,76:he,77:te,79:Le,80:xe},{35:120,75:81,76:he,77:te,79:Le,80:xe},{35:121,75:81,76:he,77:te,79:Le,80:xe},{35:122,75:81,76:he,77:te,79:Le,80:xe},{35:123,75:81,76:he,77:te,79:Le,80:xe},{35:124,75:81,76:he,77:te,79:Le,80:xe},{35:125,75:81,76:he,77:te,79:Le,80:xe},{14:[1,126]},{14:[1,127]},{14:[1,128]},{14:[1,129]},{1:[2,8]},e(de,[2,15]),e(le,[2,17],{21:22,19:130,22:t,23:r,24:i,26:n,28:s}),e(de,[2,37],{19:20,20:21,21:22,43:23,29:49,30:61,32:62,13:131,22:t,23:r,24:i,26:n,28:s,34:o,36:l,37:u,38:h,39:d,40:f,41:p,44:m,45:g,46:x,47:b,48:T,49:k,50:C,51:S,52:w,53:_,54:L,55:I,56:B,57:G,58:P,59:F,60:A,61:D,62:R,63:N,64:$,65:E,66:M,67:V,68:O,69:z,70:U,71:K,72:j,73:ae,74:X}),e(ge,[2,21]),e(ge,[2,22]),e(ye,[2,39]),e(be,[2,71],{75:81,35:132,76:he,77:te,79:Le,80:xe}),e(Ce,[2,73]),{78:[1,133]},e(Ce,[2,75]),e(Ce,[2,76]),e(ye,[2,40]),e(ye,[2,41]),e(ye,[2,42]),e(ye,[2,43]),e(ye,[2,44]),e(ye,[2,45]),e(ye,[2,46]),e(ye,[2,47]),e(ye,[2,48]),e(ye,[2,49]),e(ye,[2,50]),e(ye,[2,51]),e(ye,[2,52]),e(ye,[2,53]),e(ye,[2,54]),e(ye,[2,55]),e(ye,[2,56]),e(ye,[2,57]),e(ye,[2,58]),e(ye,[2,60]),e(ye,[2,61]),e(ye,[2,62]),e(ye,[2,63]),e(ye,[2,64]),e(ye,[2,65]),e(ye,[2,66]),e(ye,[2,67]),e(ye,[2,68]),e(ye,[2,69]),e(ye,[2,70]),{31:134,42:[1,135]},{12:[1,136]},{33:[1,137]},e(Oe,[2,28]),e(Oe,[2,29]),e(Oe,[2,30]),e(Oe,[2,31]),e(Oe,[2,32]),e(Oe,[2,33]),e(Oe,[2,34]),{1:[2,9]},{1:[2,10]},{1:[2,11]},{1:[2,12]},e(le,[2,18]),e(de,[2,38]),e(be,[2,72]),e(Ce,[2,74]),e(ye,[2,24]),e(ye,[2,35]),e(Ae,[2,25]),e(Ae,[2,26],{12:[1,138]}),e(Ae,[2,27])],defaultActions:{2:[2,1],3:[2,2],4:[2,7],5:[2,3],6:[2,4],7:[2,5],8:[2,6],74:[2,8],126:[2,9],127:[2,10],128:[2,11],129:[2,12]},parseError:a(function(Ue,Je){if(Je.recoverable)this.trace(Ue);else{var ot=new Error(Ue);throw ot.hash=Je,ot}},"parseError"),parse:a(function(Ue){var Je=this,ot=[0],Ne=[],ze=[null],oe=[],_e=this.table,re="",Ke=0,Q=0,Me=0,Y=2,dt=1,Ge=oe.slice.call(arguments,1),ft=Object.create(this.lexer),Be={yy:{}};for(var tt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,tt)&&(Be.yy[tt]=this.yy[tt]);ft.setInput(Ue,Be.yy),Be.yy.lexer=ft,Be.yy.parser=this,typeof ft.yylloc>"u"&&(ft.yylloc={});var Ie=ft.yylloc;oe.push(Ie);var it=ft.options&&ft.options.ranges;typeof Be.yy.parseError=="function"?this.parseError=Be.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Ee(We){ot.length=ot.length-2*We,ze.length=ze.length-We,oe.length=oe.length-We}a(Ee,"popStack");function pt(){var We;return We=Ne.pop()||ft.lex()||dt,typeof We!="number"&&(We instanceof Array&&(Ne=We,We=Ne.pop()),We=Je.symbols_[We]||We),We}a(pt,"lex");for(var ie,$t,ue,vt,Lt,Nr,gt={},Pt,kt,H,at;;){if(ue=ot[ot.length-1],this.defaultActions[ue]?vt=this.defaultActions[ue]:((ie===null||typeof ie>"u")&&(ie=pt()),vt=_e[ue]&&_e[ue][ie]),typeof vt>"u"||!vt.length||!vt[0]){var ut="";at=[];for(Pt in _e[ue])this.terminals_[Pt]&&Pt>Y&&at.push("'"+this.terminals_[Pt]+"'");ft.showPosition?ut="Parse error on line "+(Ke+1)+`:
`+ft.showPosition()+`
Expecting `+at.join(", ")+", got '"+(this.terminals_[ie]||ie)+"'":ut="Parse error on line "+(Ke+1)+": Unexpected "+(ie==dt?"end of input":"'"+(this.terminals_[ie]||ie)+"'"),this.parseError(ut,{text:ft.match,token:this.terminals_[ie]||ie,line:ft.yylineno,loc:Ie,expected:at})}if(vt[0]instanceof Array&&vt.length>1)throw new Error("Parse Error: multiple actions possible at state: "+ue+", token: "+ie);switch(vt[0]){case 1:ot.push(ie),ze.push(ft.yytext),oe.push(ft.yylloc),ot.push(vt[1]),ie=null,$t?(ie=$t,$t=null):(Q=ft.yyleng,re=ft.yytext,Ke=ft.yylineno,Ie=ft.yylloc,Me>0&&Me--);break;case 2:if(kt=this.productions_[vt[1]][1],gt.$=ze[ze.length-kt],gt._$={first_line:oe[oe.length-(kt||1)].first_line,last_line:oe[oe.length-1].last_line,first_column:oe[oe.length-(kt||1)].first_column,last_column:oe[oe.length-1].last_column},it&&(gt._$.range=[oe[oe.length-(kt||1)].range[0],oe[oe.length-1].range[1]]),Nr=this.performAction.apply(gt,[re,Q,Ke,Be.yy,vt[1],ze,oe].concat(Ge)),typeof Nr<"u")return Nr;kt&&(ot=ot.slice(0,-1*kt*2),ze=ze.slice(0,-1*kt),oe=oe.slice(0,-1*kt)),ot.push(this.productions_[vt[1]][0]),ze.push(gt.$),oe.push(gt._$),H=_e[ot[ot.length-2]][ot[ot.length-1]],ot.push(H);break;case 3:return!0}}return!0},"parse")},ce=(function(){var fe={EOF:1,parseError:a(function(Je,ot){if(this.yy.parser)this.yy.parser.parseError(Je,ot);else throw new Error(Je)},"parseError"),setInput:a(function(Ue,Je){return this.yy=Je||this.yy||{},this._input=Ue,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:a(function(){var Ue=this._input[0];this.yytext+=Ue,this.yyleng++,this.offset++,this.match+=Ue,this.matched+=Ue;var Je=Ue.match(/(?:\r\n?|\n).*/g);return Je?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),Ue},"input"),unput:a(function(Ue){var Je=Ue.length,ot=Ue.split(/(?:\r\n?|\n)/g);this._input=Ue+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-Je),this.offset-=Je;var Ne=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),ot.length-1&&(this.yylineno-=ot.length-1);var ze=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:ot?(ot.length===Ne.length?this.yylloc.first_column:0)+Ne[Ne.length-ot.length].length-ot[0].length:this.yylloc.first_column-Je},this.options.ranges&&(this.yylloc.range=[ze[0],ze[0]+this.yyleng-Je]),this.yyleng=this.yytext.length,this},"unput"),more:a(function(){return this._more=!0,this},"more"),reject:a(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:a(function(Ue){this.unput(this.match.slice(Ue))},"less"),pastInput:a(function(){var Ue=this.matched.substr(0,this.matched.length-this.match.length);return(Ue.length>20?"...":"")+Ue.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:a(function(){var Ue=this.match;return Ue.length<20&&(Ue+=this._input.substr(0,20-Ue.length)),(Ue.substr(0,20)+(Ue.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:a(function(){var Ue=this.pastInput(),Je=new Array(Ue.length+1).join("-");return Ue+this.upcomingInput()+`
`+Je+"^"},"showPosition"),test_match:a(function(Ue,Je){var ot,Ne,ze;if(this.options.backtrack_lexer&&(ze={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&&(ze.yylloc.range=this.yylloc.range.slice(0))),Ne=Ue[0].match(/(?:\r\n?|\n).*/g),Ne&&(this.yylineno+=Ne.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Ne?Ne[Ne.length-1].length-Ne[Ne.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+Ue[0].length},this.yytext+=Ue[0],this.match+=Ue[0],this.matches=Ue,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(Ue[0].length),this.matched+=Ue[0],ot=this.performAction.call(this,this.yy,this,Je,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),ot)return ot;if(this._backtrack){for(var oe in ze)this[oe]=ze[oe];return!1}return!1},"test_match"),next:a(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var Ue,Je,ot,Ne;this._more||(this.yytext="",this.match="");for(var ze=this._currentRules(),oe=0;oe<ze.length;oe++)if(ot=this._input.match(this.rules[ze[oe]]),ot&&(!Je||ot[0].length>Je[0].length)){if(Je=ot,Ne=oe,this.options.backtrack_lexer){if(Ue=this.test_match(ot,ze[oe]),Ue!==!1)return Ue;if(this._backtrack){Je=!1;continue}else return!1}else if(!this.options.flex)break}return Je?(Ue=this.test_match(Je,ze[Ne]),Ue!==!1?Ue:!1):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:a(function(){var Je=this.next();return Je||this.lex()},"lex"),begin:a(function(Je){this.conditionStack.push(Je)},"begin"),popState:a(function(){var Je=this.conditionStack.length-1;return Je>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:a(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:a(function(Je){return Je=this.conditionStack.length-1-Math.abs(Je||0),Je>=0?this.conditionStack[Je]:"INITIAL"},"topState"),pushState:a(function(Je){this.begin(Je)},"pushState"),stateStackSize:a(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:a(function(Je,ot,Ne,ze){var oe=ze;switch(Ne){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;break;case 7:return this.popState(),"acc_title_value";break;case 8:return this.begin("acc_descr"),26;break;case 9:return this.popState(),"acc_descr_value";break;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;break;case 23:return this.begin("person"),44;break;case 24:return this.begin("system_ext_queue"),51;break;case 25:return this.begin("system_ext_db"),50;break;case 26:return this.begin("system_ext"),49;break;case 27:return this.begin("system_queue"),48;break;case 28:return this.begin("system_db"),47;break;case 29:return this.begin("system"),46;break;case 30:return this.begin("boundary"),37;break;case 31:return this.begin("enterprise_boundary"),34;break;case 32:return this.begin("system_boundary"),36;break;case 33:return this.begin("container_ext_queue"),57;break;case 34:return this.begin("container_ext_db"),56;break;case 35:return this.begin("container_ext"),55;break;case 36:return this.begin("container_queue"),54;break;case 37:return this.begin("container_db"),53;break;case 38:return this.begin("container"),52;break;case 39:return this.begin("container_boundary"),38;break;case 40:return this.begin("component_ext_queue"),63;break;case 41:return this.begin("component_ext_db"),62;break;case 42:return this.begin("component_ext"),61;break;case 43:return this.begin("component_queue"),60;break;case 44:return this.begin("component_db"),59;break;case 45:return this.begin("component"),58;break;case 46:return this.begin("node"),39;break;case 47:return this.begin("node"),39;break;case 48:return this.begin("node_l"),40;break;case 49:return this.begin("node_r"),41;break;case 50:return this.begin("rel"),64;break;case 51:return this.begin("birel"),65;break;case 52:return this.begin("rel_u"),66;break;case 53:return this.begin("rel_u"),66;break;case 54:return this.begin("rel_d"),67;break;case 55:return this.begin("rel_d"),67;break;case 56:return this.begin("rel_l"),68;break;case 57:return this.begin("rel_l"),68;break;case 58:return this.begin("rel_r"),69;break;case 59:return this.begin("rel_r"),69;break;case 60:return this.begin("rel_b"),70;break;case 61:return this.begin("rel_index"),71;break;case 62:return this.begin("update_el_style"),72;break;case 63:return this.begin("update_rel_style"),73;break;case 64:return this.begin("update_layout_config"),74;break;case 65:return"EOF_IN_STRUCT";case 66:return this.begin("attribute"),"ATTRIBUTE_EMPTY";break;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";break;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\b)/,/^(?:Rel_Left\b)/,/^(?:Rel_L\b)/,/^(?:Rel_Right\b)/,/^(?:Rel_R\b)/,/^(?:Rel_Back\b)/,/^(?:RelIndex\b)/,/^(?:UpdateElementStyle\b)/,/^(?:UpdateRelStyle\b)/,/^(?:UpdateLayoutConfig\b)/,/^(?:$)/,/^(?:[(][ ]*[,])/,/^(?:[(])/,/^(?:[)])/,/^(?:,,)/,/^(?:,)/,/^(?:[ ]*["]["])/,/^(?:[ ]*["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:[ ]*[\$])/,/^(?:[^=]*)/,/^(?:[=][ ]*["])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:[^,]+)/,/^(?:\{)/,/^(?:\})/,/^(?:[\s]+)/,/^(?:[\n\r]+)/,/^(?:$)/],conditions:{acc_descr_multiline:{rules:[11,12],inclusive:!1},acc_descr:{rules:[9],inclusive:!1},acc_title:{rules:[7],inclusive:!1},string_kv_value:{rules:[78,79],inclusive:!1},string_kv_key:{rules:[77],inclusive:!1},string_kv:{rules:[76],inclusive:!1},string:{rules:[73,74],inclusive:!1},attribute:{rules:[68,69,70,71,72,75,80],inclusive:!1},update_layout_config:{rules:[65,66,67,68],inclusive:!1},update_rel_style:{rules:[65,66,67,68],inclusive:!1},update_el_style:{rules:[65,66,67,68],inclusive:!1},rel_b:{rules:[65,66,67,68],inclusive:!1},rel_r:{rules:[65,66,67,68],inclusive:!1},rel_l:{rules:[65,66,67,68],inclusive:!1},rel_d:{rules:[65,66,67,68],inclusive:!1},rel_u:{rules:[65,66,67,68],inclusive:!1},rel_bi:{rules:[],inclusive:!1},rel:{rules:[65,66,67,68],inclusive:!1},node_r:{rules:[65,66,67,68],inclusive:!1},node_l:{rules:[65,66,67,68],inclusive:!1},node:{rules:[65,66,67,68],inclusive:!1},index:{rules:[],inclusive:!1},rel_index:{rules:[65,66,67,68],inclusive:!1},component_ext_queue:{rules:[65,66,67,68],inclusive:!1},component_ext_db:{rules:[65,66,67,68],inclusive:!1},component_ext:{rules:[65,66,67,68],inclusive:!1},component_queue:{rules:[65,66,67,68],inclusive:!1},component_db:{rules:[65,66,67,68],inclusive:!1},component:{rules:[65,66,67,68],inclusive:!1},container_boundary:{rules:[65,66,67,68],inclusive:!1},container_ext_queue:{rules:[65,66,67,68],inclusive:!1},container_ext_db:{rules:[65,66,67,68],inclusive:!1},container_ext:{rules:[65,66,67,68],inclusive:!1},container_queue:{rules:[65,66,67,68],inclusive:!1},container_db:{rules:[65,66,67,68],inclusive:!1},container:{rules:[65,66,67,68],inclusive:!1},birel:{rules:[65,66,67,68],inclusive:!1},system_boundary:{rules:[65,66,67,68],inclusive:!1},enterprise_boundary:{rules:[65,66,67,68],inclusive:!1},boundary:{rules:[65,66,67,68],inclusive:!1},system_ext_queue:{rules:[65,66,67,68],inclusive:!1},system_ext_db:{rules:[65,66,67,68],inclusive:!1},system_ext:{rules:[65,66,67,68],inclusive:!1},system_queue:{rules:[65,66,67,68],inclusive:!1},system_db:{rules:[65,66,67,68],inclusive:!1},system:{rules:[65,66,67,68],inclusive:!1},person_ext:{rules:[65,66,67,68],inclusive:!1},person:{rules:[65,66,67,68],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,8,10,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,81,82,83,84,85],inclusive:!0}}};return fe})();st.lexer=ce;function Mt(){this.yy={}}return a(Mt,"Parser"),Mt.prototype=st,st.Parser=Mt,new Mt})();Eg.parser=Eg;_$=Eg});var Eve,Ave,fr,uo,Xr=v(()=>{"use strict";nt();Eve=a(function(e,t){for(let r of t)e.attr(r[0],r[1])},"d3Attrs"),Ave=a(function(e,t,r){let i=new Map;return r?(i.set("width","100%"),i.set("style",`max-width: ${t}px;`)):(i.set("height",e),i.set("width",t)),i},"calculateSvgSizeAttrs"),fr=a(function(e,t,r,i){let n=Ave(t,r,i);Eve(e,n)},"configureSvgSize"),uo=a(function(e,t,r,i){let n=t.node().getBBox(),s=n.width,o=n.height;W.info(`SVG bounds: ${s}x${o}`,n);let l=0,u=0;W.info(`Graph bounds: ${l}x${u}`,e),l=s+r*2,u=o+r*2,W.info(`Calculated bounds: ${l}x${u}`),fr(t,u,l,i);let h=`${n.x-r} ${n.y-r} ${n.width+2*r} ${n.height+2*r}`;t.attr("viewBox",h)},"setupGraphViewbox")});function kE(e){return[...e.cssRules].map(t=>t.cssText).join(`
`)}var eb,Rve,w$,E$,CE=v(()=>{"use strict";nt();eb={};a(kE,"cssStyleSheetToString");Rve=a((e,t,r,i)=>{let n="";return e in eb&&eb[e]?n=eb[e]({...r,svgId:i}):W.warn(`No theme found for ${e}`),` & {
font-family: ${r.fontFamily};
font-size: ${r.fontSize};
fill: ${r.textColor}
}
@keyframes edge-animation-frame {
from {
stroke-dashoffset: 0;
}
}
@keyframes dash {
to {
stroke-dashoffset: 0;
}
}
& .edge-animation-slow {
stroke-dasharray: 9,5 !important;
stroke-dashoffset: 900;
animation: dash 50s linear infinite;
stroke-linecap: round;
}
& .edge-animation-fast {
stroke-dasharray: 9,5 !important;
stroke-dashoffset: 900;
animation: dash 20s linear infinite;
stroke-linecap: round;
}
/* Classes common for multiple diagrams */
& .error-icon {
fill: ${r.errorBkgColor};
}
& .error-text {
fill: ${r.errorTextColor};
stroke: ${r.errorTextColor};
}
& .edge-thickness-normal {
stroke-width: ${r.strokeWidth??1}px;
}
& .edge-thickness-thick {
stroke-width: 3.5px
}
& .edge-pattern-solid {
stroke-dasharray: 0;
}
& .edge-thickness-invisible {
stroke-width: 0;
fill: none;
}
& .edge-pattern-dashed{
stroke-dasharray: 3;
}
.edge-pattern-dotted {
stroke-dasharray: 2;
}
& .marker {
fill: ${r.lineColor};
stroke: ${r.lineColor};
}
& .marker.cross {
stroke: ${r.lineColor};
}
& svg {
font-family: ${r.fontFamily};
font-size: ${r.fontSize};
}
& p {
margin: 0
}
${n}
.node .neo-node {
stroke: ${r.nodeBorder};
}
[data-look="neo"].node rect, [data-look="neo"].cluster rect, [data-look="neo"].node polygon {
stroke: ${r.useGradient?"url("+i+"-gradient)":r.nodeBorder};
filter: ${r.dropShadow?r.dropShadow.replace("url(#drop-shadow)",`url(${i}-drop-shadow)`):"none"};
}
[data-look="neo"].node path {
stroke: ${r.useGradient?"url("+i+"-gradient)":r.nodeBorder};
stroke-width: ${r.strokeWidth??1}px;
}
[data-look="neo"].node .outer-path {
filter: ${r.dropShadow?r.dropShadow.replace("url(#drop-shadow)",`url(${i}-drop-shadow)`):"none"};
}
[data-look="neo"].node .neo-line path {
stroke: ${r.nodeBorder};
filter: none;
}
[data-look="neo"].node circle{
stroke: ${r.useGradient?"url("+i+"-gradient)":r.nodeBorder};
filter: ${r.dropShadow?r.dropShadow.replace("url(#drop-shadow)",`url(${i}-drop-shadow)`):"none"};
}
[data-look="neo"].node circle .state-start{
fill: #000000;
}
[data-look="neo"].icon-shape .icon {
fill: ${r.useGradient?"url("+i+"-gradient)":r.nodeBorder};
filter: ${r.dropShadow?r.dropShadow.replace("url(#drop-shadow)",`url(${i}-drop-shadow)`):"none"};
}
[data-look="neo"].icon-shape .icon-neo path {
stroke: ${r.useGradient?"url("+i+"-gradient)":r.nodeBorder};
filter: ${r.dropShadow?r.dropShadow.replace("url(#drop-shadow)",`url(${i}-drop-shadow)`):"none"};
}
${t}
`},"getStyles"),w$=a((e,t)=>{t!==void 0&&(eb[e]=t)},"addStylesForDiagram"),E$=Rve});var Ag={};tr(Ag,{clear:()=>Ht,getAccDescription:()=>Jt,getAccTitle:()=>Qt,getDiagramTitle:()=>er,setAccDescription:()=>Zt,setAccTitle:()=>Yt,setDiagramTitle:()=>ir});var vE,SE,_E,wE,Ht,Yt,Qt,Zt,Jt,ir,er,zr=v(()=>{"use strict";dr();Xt();vE="",SE="",_E="",wE=a(e=>rr(e,ct()),"sanitizeText"),Ht=a(()=>{vE="",_E="",SE=""},"clear"),Yt=a(e=>{vE=wE(e).replace(/^\s+/g,"")},"setAccTitle"),Qt=a(()=>vE,"getAccTitle"),Zt=a(e=>{_E=wE(e).replace(/\n\s+/g,`
`)},"setAccDescription"),Jt=a(()=>_E,"getAccDescription"),ir=a(e=>{SE=wE(e)},"setDiagramTitle"),er=a(()=>SE,"getDiagramTitle")});var A$,Lve,J,Rg,rb,Lg,Dg,Dve,tb,eh,Ig,EE,bt=v(()=>{"use strict";Ju();nt();Xt();dr();Xr();CE();zr();A$=W,Lve=fg,J=ct,Rg=Hx,rb=pc,Lg=a(e=>rr(e,J()),"sanitizeText"),Dg=uo,Dve=a(()=>Ag,"getCommonDb"),tb={},eh=a((e,t,r)=>{tb[e]&&A$.warn(`Diagram with id ${e} already registered. Overwriting.`),tb[e]=t,r&&bE(e,r),w$(e,t.styles),t.injectUtils?.(A$,Lve,J,Lg,Dg,Dve(),()=>{})},"registerDiagram"),Ig=a(e=>{if(e in tb)return tb[e];throw new EE(e)},"getDiagram"),EE=class extends Error{static{a(this,"DiagramNotFoundError")}constructor(t){super(`Diagram ${t} not found.`)}}});var Ss,mc,In,vs,ho,Ng,AE,RE,ib,nb,R$,Ive,Nve,Mve,Ove,Pve,Bve,$ve,Fve,Vve,Gve,Wve,zve,qve,jve,Uve,Hve,Yve,L$,Kve,Xve,D$,Qve,Zve,Jve,eSe,gc,tSe,rSe,iSe,nSe,aSe,Mg,LE=v(()=>{"use strict";bt();dr();zr();Ss=[],mc=[""],In="global",vs="",ho=[{alias:"global",label:{text:"global"},type:{text:"global"},tags:null,link:null,parentBoundary:""}],Ng=[],AE="",RE=!1,ib=4,nb=2,Ive=a(function(){return R$},"getC4Type"),Nve=a(function(e){R$=rr(e,J())},"setC4Type"),Mve=a(function(e,t,r,i,n,s,o,l,u){if(e==null||t===void 0||t===null||r===void 0||r===null||i===void 0||i===null)return;let h={},d=Ng.find(f=>f.from===t&&f.to===r);if(d?h=d:Ng.push(h),h.type=e,h.from=t,h.to=r,h.label={text:i},n==null)h.techn={text:""};else if(typeof n=="object"){let[f,p]=Object.entries(n)[0];h[f]={text:p}}else h.techn={text:n};if(s==null)h.descr={text:""};else if(typeof s=="object"){let[f,p]=Object.entries(s)[0];h[f]={text:p}}else h.descr={text:s};if(typeof o=="object"){let[f,p]=Object.entries(o)[0];h[f]=p}else h.sprite=o;if(typeof l=="object"){let[f,p]=Object.entries(l)[0];h[f]=p}else h.tags=l;if(typeof u=="object"){let[f,p]=Object.entries(u)[0];h[f]=p}else h.link=u;h.wrap=gc()},"addRel"),Ove=a(function(e,t,r,i,n,s,o){if(t===null||r===null)return;let l={},u=Ss.find(h=>h.alias===t);if(u&&t===u.alias?l=u:(l.alias=t,Ss.push(l)),r==null?l.label={text:""}:l.label={text:r},i==null)l.descr={text:""};else if(typeof i=="object"){let[h,d]=Object.entries(i)[0];l[h]={text:d}}else l.descr={text:i};if(typeof n=="object"){let[h,d]=Object.entries(n)[0];l[h]=d}else l.sprite=n;if(typeof s=="object"){let[h,d]=Object.entries(s)[0];l[h]=d}else l.tags=s;if(typeof o=="object"){let[h,d]=Object.entries(o)[0];l[h]=d}else l.link=o;l.typeC4Shape={text:e},l.parentBoundary=In,l.wrap=gc()},"addPersonOrSystem"),Pve=a(function(e,t,r,i,n,s,o,l){if(t===null||r===null)return;let u={},h=Ss.find(d=>d.alias===t);if(h&&t===h.alias?u=h:(u.alias=t,Ss.push(u)),r==null?u.label={text:""}:u.label={text:r},i==null)u.techn={text:""};else if(typeof i=="object"){let[d,f]=Object.entries(i)[0];u[d]={text:f}}else u.techn={text:i};if(n==null)u.descr={text:""};else if(typeof n=="object"){let[d,f]=Object.entries(n)[0];u[d]={text:f}}else u.descr={text:n};if(typeof s=="object"){let[d,f]=Object.entries(s)[0];u[d]=f}else u.sprite=s;if(typeof o=="object"){let[d,f]=Object.entries(o)[0];u[d]=f}else u.tags=o;if(typeof l=="object"){let[d,f]=Object.entries(l)[0];u[d]=f}else u.link=l;u.wrap=gc(),u.typeC4Shape={text:e},u.parentBoundary=In},"addContainer"),Bve=a(function(e,t,r,i,n,s,o,l){if(t===null||r===null)return;let u={},h=Ss.find(d=>d.alias===t);if(h&&t===h.alias?u=h:(u.alias=t,Ss.push(u)),r==null?u.label={text:""}:u.label={text:r},i==null)u.techn={text:""};else if(typeof i=="object"){let[d,f]=Object.entries(i)[0];u[d]={text:f}}else u.techn={text:i};if(n==null)u.descr={text:""};else if(typeof n=="object"){let[d,f]=Object.entries(n)[0];u[d]={text:f}}else u.descr={text:n};if(typeof s=="object"){let[d,f]=Object.entries(s)[0];u[d]=f}else u.sprite=s;if(typeof o=="object"){let[d,f]=Object.entries(o)[0];u[d]=f}else u.tags=o;if(typeof l=="object"){let[d,f]=Object.entries(l)[0];u[d]=f}else u.link=l;u.wrap=gc(),u.typeC4Shape={text:e},u.parentBoundary=In},"addComponent"),$ve=a(function(e,t,r,i,n){if(e===null||t===null)return;let s={},o=ho.find(l=>l.alias===e);if(o&&e===o.alias?s=o:(s.alias=e,ho.push(s)),t==null?s.label={text:""}:s.label={text:t},r==null)s.type={text:"system"};else if(typeof r=="object"){let[l,u]=Object.entries(r)[0];s[l]={text:u}}else s.type={text:r};if(typeof i=="object"){let[l,u]=Object.entries(i)[0];s[l]=u}else s.tags=i;if(typeof n=="object"){let[l,u]=Object.entries(n)[0];s[l]=u}else s.link=n;s.parentBoundary=In,s.wrap=gc(),vs=In,In=e,mc.push(vs)},"addPersonOrSystemBoundary"),Fve=a(function(e,t,r,i,n){if(e===null||t===null)return;let s={},o=ho.find(l=>l.alias===e);if(o&&e===o.alias?s=o:(s.alias=e,ho.push(s)),t==null?s.label={text:""}:s.label={text:t},r==null)s.type={text:"container"};else if(typeof r=="object"){let[l,u]=Object.entries(r)[0];s[l]={text:u}}else s.type={text:r};if(typeof i=="object"){let[l,u]=Object.entries(i)[0];s[l]=u}else s.tags=i;if(typeof n=="object"){let[l,u]=Object.entries(n)[0];s[l]=u}else s.link=n;s.parentBoundary=In,s.wrap=gc(),vs=In,In=e,mc.push(vs)},"addContainerBoundary"),Vve=a(function(e,t,r,i,n,s,o,l){if(t===null||r===null)return;let u={},h=ho.find(d=>d.alias===t);if(h&&t===h.alias?u=h:(u.alias=t,ho.push(u)),r==null?u.label={text:""}:u.label={text:r},i==null)u.type={text:"node"};else if(typeof i=="object"){let[d,f]=Object.entries(i)[0];u[d]={text:f}}else u.type={text:i};if(n==null)u.descr={text:""};else if(typeof n=="object"){let[d,f]=Object.entries(n)[0];u[d]={text:f}}else u.descr={text:n};if(typeof o=="object"){let[d,f]=Object.entries(o)[0];u[d]=f}else u.tags=o;if(typeof l=="object"){let[d,f]=Object.entries(l)[0];u[d]=f}else u.link=l;u.nodeType=e,u.parentBoundary=In,u.wrap=gc(),vs=In,In=t,mc.push(vs)},"addDeploymentNode"),Gve=a(function(){In=vs,mc.pop(),vs=mc.pop(),mc.push(vs)},"popBoundaryParseStack"),Wve=a(function(e,t,r,i,n,s,o,l,u,h,d){let f=Ss.find(p=>p.alias===t);if(!(f===void 0&&(f=ho.find(p=>p.alias===t),f===void 0))){if(r!=null)if(typeof r=="object"){let[p,m]=Object.entries(r)[0];f[p]=m}else f.bgColor=r;if(i!=null)if(typeof i=="object"){let[p,m]=Object.entries(i)[0];f[p]=m}else f.fontColor=i;if(n!=null)if(typeof n=="object"){let[p,m]=Object.entries(n)[0];f[p]=m}else f.borderColor=n;if(s!=null)if(typeof s=="object"){let[p,m]=Object.entries(s)[0];f[p]=m}else f.shadowing=s;if(o!=null)if(typeof o=="object"){let[p,m]=Object.entries(o)[0];f[p]=m}else f.shape=o;if(l!=null)if(typeof l=="object"){let[p,m]=Object.entries(l)[0];f[p]=m}else f.sprite=l;if(u!=null)if(typeof u=="object"){let[p,m]=Object.entries(u)[0];f[p]=m}else f.techn=u;if(h!=null)if(typeof h=="object"){let[p,m]=Object.entries(h)[0];f[p]=m}else f.legendText=h;if(d!=null)if(typeof d=="object"){let[p,m]=Object.entries(d)[0];f[p]=m}else f.legendSprite=d}},"updateElStyle"),zve=a(function(e,t,r,i,n,s,o){let l=Ng.find(u=>u.from===t&&u.to===r);if(l!==void 0){if(i!=null)if(typeof i=="object"){let[u,h]=Object.entries(i)[0];l[u]=h}else l.textColor=i;if(n!=null)if(typeof n=="object"){let[u,h]=Object.entries(n)[0];l[u]=h}else l.lineColor=n;if(s!=null)if(typeof s=="object"){let[u,h]=Object.entries(s)[0];l[u]=parseInt(h)}else l.offsetX=parseInt(s);if(o!=null)if(typeof o=="object"){let[u,h]=Object.entries(o)[0];l[u]=parseInt(h)}else l.offsetY=parseInt(o)}},"updateRelStyle"),qve=a(function(e,t,r){let i=ib,n=nb;if(typeof t=="object"){let s=Object.values(t)[0];i=parseInt(s)}else i=parseInt(t);if(typeof r=="object"){let s=Object.values(r)[0];n=parseInt(s)}else n=parseInt(r);i>=1&&(ib=i),n>=1&&(nb=n)},"updateLayoutConfig"),jve=a(function(){return ib},"getC4ShapeInRow"),Uve=a(function(){return nb},"getC4BoundaryInRow"),Hve=a(function(){return In},"getCurrentBoundaryParse"),Yve=a(function(){return vs},"getParentBoundaryParse"),L$=a(function(e){return e==null?Ss:Ss.filter(t=>t.parentBoundary===e)},"getC4ShapeArray"),Kve=a(function(e){return Ss.find(t=>t.alias===e)},"getC4Shape"),Xve=a(function(e){return Object.keys(L$(e))},"getC4ShapeKeys"),D$=a(function(e){return e==null?ho:ho.filter(t=>t.parentBoundary===e)},"getBoundaries"),Qve=D$,Zve=a(function(){return Ng},"getRels"),Jve=a(function(){return AE},"getTitle"),eSe=a(function(e){RE=e},"setWrap"),gc=a(function(){return RE},"autoWrap"),tSe=a(function(){Ss=[],ho=[{alias:"global",label:{text:"global"},type:{text:"global"},tags:null,link:null,parentBoundary:""}],vs="",In="global",mc=[""],Ng=[],mc=[""],AE="",RE=!1,ib=4,nb=2},"clear"),rSe={SOLID:0,DOTTED:1,NOTE:2,SOLID_CROSS:3,DOTTED_CROSS:4,SOLID_OPEN:5,DOTTED_OPEN:6,LOOP_START:10,LOOP_END:11,ALT_START:12,ALT_ELSE:13,ALT_END:14,OPT_START:15,OPT_END:16,ACTIVE_START:17,ACTIVE_END:18,PAR_START:19,PAR_AND:20,PAR_END:21,RECT_START:22,RECT_END:23,SOLID_POINT:24,DOTTED_POINT:25},iSe={FILLED:0,OPEN:1},nSe={LEFTOF:0,RIGHTOF:1,OVER:2},aSe=a(function(e){AE=rr(e,J())},"setTitle"),Mg={addPersonOrSystem:Ove,addPersonOrSystemBoundary:$ve,addContainer:Pve,addContainerBoundary:Fve,addComponent:Bve,addDeploymentNode:Vve,popBoundaryParseStack:Gve,addRel:Mve,updateElStyle:Wve,updateRelStyle:zve,updateLayoutConfig:qve,autoWrap:gc,setWrap:eSe,getC4ShapeArray:L$,getC4Shape:Kve,getC4ShapeKeys:Xve,getBoundaries:D$,getBoundarys:Qve,getCurrentBoundaryParse:Hve,getParentBoundaryParse:Yve,getRels:Zve,getTitle:Jve,getC4Type:Ive,getC4ShapeInRow:jve,getC4BoundaryInRow:Uve,setAccTitle:Yt,getAccTitle:Qt,getAccDescription:Jt,setAccDescription:Zt,getConfig:a(()=>J().c4,"getConfig"),clear:tSe,LINETYPE:rSe,ARROWTYPE:iSe,PLACEMENT:nSe,setTitle:aSe,setC4Type:Nve}});function th(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}var DE=v(()=>{"use strict";a(th,"ascending")});function IE(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}var I$=v(()=>{"use strict";a(IE,"descending")});function rh(e){let t,r,i;e.length!==2?(t=th,r=a((l,u)=>th(e(l),u),"compare2"),i=a((l,u)=>e(l)-u,"delta")):(t=e===th||e===IE?e:sSe,r=e,i=e);function n(l,u,h=0,d=l.length){if(h<d){if(t(u,u)!==0)return d;do{let f=h+d>>>1;r(l[f],u)<0?h=f+1:d=f}while(h<d)}return h}a(n,"left");function s(l,u,h=0,d=l.length){if(h<d){if(t(u,u)!==0)return d;do{let f=h+d>>>1;r(l[f],u)<=0?h=f+1:d=f}while(h<d)}return h}a(s,"right");function o(l,u,h=0,d=l.length){let f=n(l,u,h,d-1);return f>h&&i(l[f-1],u)>-i(l[f],u)?f-1:f}return a(o,"center"),{left:n,center:o,right:s}}function sSe(){return 0}var NE=v(()=>{"use strict";DE();I$();a(rh,"bisector");a(sSe,"zero")});function ME(e){return e===null?NaN:+e}var N$=v(()=>{"use strict";a(ME,"number")});var M$,O$,oSe,lSe,OE,P$=v(()=>{"use strict";DE();NE();N$();M$=rh(th),O$=M$.right,oSe=M$.left,lSe=rh(ME).center,OE=O$});function B$({_intern:e,_key:t},r){let i=t(r);return e.has(i)?e.get(i):r}function cSe({_intern:e,_key:t},r){let i=t(r);return e.has(i)?e.get(i):(e.set(i,r),r)}function uSe({_intern:e,_key:t},r){let i=t(r);return e.has(i)&&(r=e.get(i),e.delete(i)),r}function hSe(e){return e!==null&&typeof e=="object"?e.valueOf():e}var Af,$$=v(()=>{"use strict";Af=class extends Map{static{a(this,"InternMap")}constructor(t,r=hSe){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),t!=null)for(let[i,n]of t)this.set(i,n)}get(t){return super.get(B$(this,t))}has(t){return super.has(B$(this,t))}set(t,r){return super.set(cSe(this,t),r)}delete(t){return super.delete(uSe(this,t))}};a(B$,"intern_get");a(cSe,"intern_set");a(uSe,"intern_delete");a(hSe,"keyof")});function ab(e,t,r){let i=(t-e)/Math.max(0,r),n=Math.floor(Math.log10(i)),s=i/Math.pow(10,n),o=s>=dSe?10:s>=fSe?5:s>=pSe?2:1,l,u,h;return n<0?(h=Math.pow(10,-n)/o,l=Math.round(e*h),u=Math.round(t*h),l/h<e&&++l,u/h>t&&--u,h=-h):(h=Math.pow(10,n)*o,l=Math.round(e/h),u=Math.round(t/h),l*h<e&&++l,u*h>t&&--u),u<l&&.5<=r&&r<2?ab(e,t,r*2):[l,u,h]}function sb(e,t,r){if(t=+t,e=+e,r=+r,!(r>0))return[];if(e===t)return[e];let i=t<e,[n,s,o]=i?ab(t,e,r):ab(e,t,r);if(!(s>=n))return[];let l=s-n+1,u=new Array(l);if(i)if(o<0)for(let h=0;h<l;++h)u[h]=(s-h)/-o;else for(let h=0;h<l;++h)u[h]=(s-h)*o;else if(o<0)for(let h=0;h<l;++h)u[h]=(n+h)/-o;else for(let h=0;h<l;++h)u[h]=(n+h)*o;return u}function Og(e,t,r){return t=+t,e=+e,r=+r,ab(e,t,r)[2]}function Rf(e,t,r){t=+t,e=+e,r=+r;let i=t<e,n=i?Og(t,e,r):Og(e,t,r);return(i?-1:1)*(n<0?1/-n:n)}var dSe,fSe,pSe,F$=v(()=>{"use strict";dSe=Math.sqrt(50),fSe=Math.sqrt(10),pSe=Math.sqrt(2);a(ab,"tickSpec");a(sb,"ticks");a(Og,"tickIncrement");a(Rf,"tickStep")});function ob(e,t){let r;if(t===void 0)for(let i of e)i!=null&&(r<i||r===void 0&&i>=i)&&(r=i);else{let i=-1;for(let n of e)(n=t(n,++i,e))!=null&&(r<n||r===void 0&&n>=n)&&(r=n)}return r}var V$=v(()=>{"use strict";a(ob,"max")});function lb(e,t){let r;if(t===void 0)for(let i of e)i!=null&&(r>i||r===void 0&&i>=i)&&(r=i);else{let i=-1;for(let n of e)(n=t(n,++i,e))!=null&&(r>n||r===void 0&&n>=n)&&(r=n)}return r}var G$=v(()=>{"use strict";a(lb,"min")});function cb(e,t,r){e=+e,t=+t,r=(n=arguments.length)<2?(t=e,e=0,1):n<3?1:+r;for(var i=-1,n=Math.max(0,Math.ceil((t-e)/r))|0,s=new Array(n);++i<n;)s[i]=e+i*r;return s}var W$=v(()=>{"use strict";a(cb,"range")});var yc=v(()=>{"use strict";P$();NE();V$();G$();W$();F$();$$()});function PE(e){return e}var z$=v(()=>{"use strict";a(PE,"default")});function mSe(e){return"translate("+e+",0)"}function gSe(e){return"translate(0,"+e+")"}function ySe(e){return t=>+e(t)}function xSe(e,t){return t=Math.max(0,e.bandwidth()-t*2)/2,e.round()&&(t=Math.round(t)),r=>+e(r)+t}function bSe(){return!this.__axis}function j$(e,t){var r=[],i=null,n=null,s=6,o=6,l=3,u=typeof window<"u"&&window.devicePixelRatio>1?0:.5,h=e===hb||e===ub?-1:1,d=e===ub||e===BE?"x":"y",f=e===hb||e===$E?mSe:gSe;function p(m){var g=i??(t.ticks?t.ticks.apply(t,r):t.domain()),x=n??(t.tickFormat?t.tickFormat.apply(t,r):PE),b=Math.max(s,0)+l,T=t.range(),k=+T[0]+u,C=+T[T.length-1]+u,S=(t.bandwidth?xSe:ySe)(t.copy(),u),w=m.selection?m.selection():m,_=w.selectAll(".domain").data([null]),L=w.selectAll(".tick").data(g,t).order(),I=L.exit(),B=L.enter().append("g").attr("class","tick"),G=L.select("line"),P=L.select("text");_=_.merge(_.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),L=L.merge(B),G=G.merge(B.append("line").attr("stroke","currentColor").attr(d+"2",h*s)),P=P.merge(B.append("text").attr("fill","currentColor").attr(d,h*b).attr("dy",e===hb?"0em":e===$E?"0.71em":"0.32em")),m!==w&&(_=_.transition(m),L=L.transition(m),G=G.transition(m),P=P.transition(m),I=I.transition(m).attr("opacity",q$).attr("transform",function(F){return isFinite(F=S(F))?f(F+u):this.getAttribute("transform")}),B.attr("opacity",q$).attr("transform",function(F){var A=this.parentNode.__axis;return f((A&&isFinite(A=A(F))?A:S(F))+u)})),I.remove(),_.attr("d",e===ub||e===BE?o?"M"+h*o+","+k+"H"+u+"V"+C+"H"+h*o:"M"+u+","+k+"V"+C:o?"M"+k+","+h*o+"V"+u+"H"+C+"V"+h*o:"M"+k+","+u+"H"+C),L.attr("opacity",1).attr("transform",function(F){return f(S(F)+u)}),G.attr(d+"2",h*s),P.attr(d,h*b).text(x),w.filter(bSe).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",e===BE?"start":e===ub?"end":"middle"),w.each(function(){this.__axis=S})}return a(p,"axis"),p.scale=function(m){return arguments.length?(t=m,p):t},p.ticks=function(){return r=Array.from(arguments),p},p.tickArguments=function(m){return arguments.length?(r=m==null?[]:Array.from(m),p):r.slice()},p.tickValues=function(m){return arguments.length?(i=m==null?null:Array.from(m),p):i&&i.slice()},p.tickFormat=function(m){return arguments.length?(n=m,p):n},p.tickSize=function(m){return arguments.length?(s=o=+m,p):s},p.tickSizeInner=function(m){return arguments.length?(s=+m,p):s},p.tickSizeOuter=function(m){return arguments.length?(o=+m,p):o},p.tickPadding=function(m){return arguments.length?(l=+m,p):l},p.offset=function(m){return arguments.length?(u=+m,p):u},p}function FE(e){return j$(hb,e)}function VE(e){return j$($E,e)}var hb,BE,$E,ub,q$,U$=v(()=>{"use strict";z$();hb=1,BE=2,$E=3,ub=4,q$=1e-6;a(mSe,"translateX");a(gSe,"translateY");a(ySe,"number");a(xSe,"center");a(bSe,"entering");a(j$,"axis");a(FE,"axisTop");a(VE,"axisBottom")});var H$=v(()=>{"use strict";U$()});function K$(){for(var e=0,t=arguments.length,r={},i;e<t;++e){if(!(i=arguments[e]+"")||i in r||/[\s.]/.test(i))throw new Error("illegal type: "+i);r[i]=[]}return new db(r)}function db(e){this._=e}function kSe(e,t){return e.trim().split(/^|\s+/).map(function(r){var i="",n=r.indexOf(".");if(n>=0&&(i=r.slice(n+1),r=r.slice(0,n)),r&&!t.hasOwnProperty(r))throw new Error("unknown type: "+r);return{type:r,name:i}})}function CSe(e,t){for(var r=0,i=e.length,n;r<i;++r)if((n=e[r]).name===t)return n.value}function Y$(e,t,r){for(var i=0,n=e.length;i<n;++i)if(e[i].name===t){e[i]=TSe,e=e.slice(0,i).concat(e.slice(i+1));break}return r!=null&&e.push({name:t,value:r}),e}var TSe,GE,X$=v(()=>{"use strict";TSe={value:a(()=>{},"value")};a(K$,"dispatch");a(db,"Dispatch");a(kSe,"parseTypenames");db.prototype=K$.prototype={constructor:db,on:a(function(e,t){var r=this._,i=kSe(e+"",r),n,s=-1,o=i.length;if(arguments.length<2){for(;++s<o;)if((n=(e=i[s]).type)&&(n=CSe(r[n],e.name)))return n;return}if(t!=null&&typeof t!="function")throw new Error("invalid callback: "+t);for(;++s<o;)if(n=(e=i[s]).type)r[n]=Y$(r[n],e.name,t);else if(t==null)for(n in r)r[n]=Y$(r[n],e.name,null);return this},"on"),copy:a(function(){var e={},t=this._;for(var r in t)e[r]=t[r].slice();return new db(e)},"copy"),call:a(function(e,t){if((n=arguments.length-2)>0)for(var r=new Array(n),i=0,n,s;i<n;++i)r[i]=arguments[i+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(s=this._[e],i=0,n=s.length;i<n;++i)s[i].value.apply(t,r)},"call"),apply:a(function(e,t,r){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var i=this._[e],n=0,s=i.length;n<s;++n)i[n].value.apply(t,r)},"apply")};a(CSe,"get");a(Y$,"set");GE=K$});var WE=v(()=>{"use strict";X$()});var fb,zE,qE=v(()=>{"use strict";fb="http://www.w3.org/1999/xhtml",zE={svg:"http://www.w3.org/2000/svg",xhtml:fb,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"}});function fo(e){var t=e+="",r=t.indexOf(":");return r>=0&&(t=e.slice(0,r))!=="xmlns"&&(e=e.slice(r+1)),zE.hasOwnProperty(t)?{space:zE[t],local:e}:e}var pb=v(()=>{"use strict";qE();a(fo,"default")});function vSe(e){return function(){var t=this.ownerDocument,r=this.namespaceURI;return r===fb&&t.documentElement.namespaceURI===fb?t.createElement(e):t.createElementNS(r,e)}}function SSe(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function Pg(e){var t=fo(e);return(t.local?SSe:vSe)(t)}var jE=v(()=>{"use strict";pb();qE();a(vSe,"creatorInherit");a(SSe,"creatorFixed");a(Pg,"default")});function _Se(){}function xc(e){return e==null?_Se:function(){return this.querySelector(e)}}var mb=v(()=>{"use strict";a(_Se,"none");a(xc,"default")});function UE(e){typeof e!="function"&&(e=xc(e));for(var t=this._groups,r=t.length,i=new Array(r),n=0;n<r;++n)for(var s=t[n],o=s.length,l=i[n]=new Array(o),u,h,d=0;d<o;++d)(u=s[d])&&(h=e.call(u,u.__data__,d,s))&&("__data__"in u&&(h.__data__=u.__data__),l[d]=h);return new hi(i,this._parents)}var Q$=v(()=>{"use strict";_s();mb();a(UE,"default")});function HE(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}var Z$=v(()=>{"use strict";a(HE,"array")});function wSe(){return[]}function Lf(e){return e==null?wSe:function(){return this.querySelectorAll(e)}}var YE=v(()=>{"use strict";a(wSe,"empty");a(Lf,"default")});function ESe(e){return function(){return HE(e.apply(this,arguments))}}function KE(e){typeof e=="function"?e=ESe(e):e=Lf(e);for(var t=this._groups,r=t.length,i=[],n=[],s=0;s<r;++s)for(var o=t[s],l=o.length,u,h=0;h<l;++h)(u=o[h])&&(i.push(e.call(u,u.__data__,h,o)),n.push(u));return new hi(i,n)}var J$=v(()=>{"use strict";_s();Z$();YE();a(ESe,"arrayAll");a(KE,"default")});function Df(e){return function(){return this.matches(e)}}function gb(e){return function(t){return t.matches(e)}}var Bg=v(()=>{"use strict";a(Df,"default");a(gb,"childMatcher")});function RSe(e){return function(){return ASe.call(this.children,e)}}function LSe(){return this.firstElementChild}function XE(e){return this.select(e==null?LSe:RSe(typeof e=="function"?e:gb(e)))}var ASe,eF=v(()=>{"use strict";Bg();ASe=Array.prototype.find;a(RSe,"childFind");a(LSe,"childFirst");a(XE,"default")});function ISe(){return Array.from(this.children)}function NSe(e){return function(){return DSe.call(this.children,e)}}function QE(e){return this.selectAll(e==null?ISe:NSe(typeof e=="function"?e:gb(e)))}var DSe,tF=v(()=>{"use strict";Bg();DSe=Array.prototype.filter;a(ISe,"children");a(NSe,"childrenFilter");a(QE,"default")});function ZE(e){typeof e!="function"&&(e=Df(e));for(var t=this._groups,r=t.length,i=new Array(r),n=0;n<r;++n)for(var s=t[n],o=s.length,l=i[n]=[],u,h=0;h<o;++h)(u=s[h])&&e.call(u,u.__data__,h,s)&&l.push(u);return new hi(i,this._parents)}var rF=v(()=>{"use strict";_s();Bg();a(ZE,"default")});function $g(e){return new Array(e.length)}var JE=v(()=>{"use strict";a($g,"default")});function eA(){return new hi(this._enter||this._groups.map($g),this._parents)}function Fg(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}var tA=v(()=>{"use strict";JE();_s();a(eA,"default");a(Fg,"EnterNode");Fg.prototype={constructor:Fg,appendChild:a(function(e){return this._parent.insertBefore(e,this._next)},"appendChild"),insertBefore:a(function(e,t){return this._parent.insertBefore(e,t)},"insertBefore"),querySelector:a(function(e){return this._parent.querySelector(e)},"querySelector"),querySelectorAll:a(function(e){return this._parent.querySelectorAll(e)},"querySelectorAll")}});function rA(e){return function(){return e}}var iF=v(()=>{"use strict";a(rA,"default")});function MSe(e,t,r,i,n,s){for(var o=0,l,u=t.length,h=s.length;o<h;++o)(l=t[o])?(l.__data__=s[o],i[o]=l):r[o]=new Fg(e,s[o]);for(;o<u;++o)(l=t[o])&&(n[o]=l)}function OSe(e,t,r,i,n,s,o){var l,u,h=new Map,d=t.length,f=s.length,p=new Array(d),m;for(l=0;l<d;++l)(u=t[l])&&(p[l]=m=o.call(u,u.__data__,l,t)+"",h.has(m)?n[l]=u:h.set(m,u));for(l=0;l<f;++l)m=o.call(e,s[l],l,s)+"",(u=h.get(m))?(i[l]=u,u.__data__=s[l],h.delete(m)):r[l]=new Fg(e,s[l]);for(l=0;l<d;++l)(u=t[l])&&h.get(p[l])===u&&(n[l]=u)}function PSe(e){return e.__data__}function iA(e,t){if(!arguments.length)return Array.from(this,PSe);var r=t?OSe:MSe,i=this._parents,n=this._groups;typeof e!="function"&&(e=rA(e));for(var s=n.length,o=new Array(s),l=new Array(s),u=new Array(s),h=0;h<s;++h){var d=i[h],f=n[h],p=f.length,m=BSe(e.call(d,d&&d.__data__,h,i)),g=m.length,x=l[h]=new Array(g),b=o[h]=new Array(g),T=u[h]=new Array(p);r(d,f,x,b,T,m,t);for(var k=0,C=0,S,w;k<g;++k)if(S=x[k]){for(k>=C&&(C=k+1);!(w=b[C])&&++C<g;);S._next=w||null}}return o=new hi(o,i),o._enter=l,o._exit=u,o}function BSe(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}var nF=v(()=>{"use strict";_s();tA();iF();a(MSe,"bindIndex");a(OSe,"bindKey");a(PSe,"datum");a(iA,"default");a(BSe,"arraylike")});function nA(){return new hi(this._exit||this._groups.map($g),this._parents)}var aF=v(()=>{"use strict";JE();_s();a(nA,"default")});function aA(e,t,r){var i=this.enter(),n=this,s=this.exit();return typeof e=="function"?(i=e(i),i&&(i=i.selection())):i=i.append(e+""),t!=null&&(n=t(n),n&&(n=n.selection())),r==null?s.remove():r(s),i&&n?i.merge(n).order():n}var sF=v(()=>{"use strict";a(aA,"default")});function sA(e){for(var t=e.selection?e.selection():e,r=this._groups,i=t._groups,n=r.length,s=i.length,o=Math.min(n,s),l=new Array(n),u=0;u<o;++u)for(var h=r[u],d=i[u],f=h.length,p=l[u]=new Array(f),m,g=0;g<f;++g)(m=h[g]||d[g])&&(p[g]=m);for(;u<n;++u)l[u]=r[u];return new hi(l,this._parents)}var oF=v(()=>{"use strict";_s();a(sA,"default")});function oA(){for(var e=this._groups,t=-1,r=e.length;++t<r;)for(var i=e[t],n=i.length-1,s=i[n],o;--n>=0;)(o=i[n])&&(s&&o.compareDocumentPosition(s)^4&&s.parentNode.insertBefore(o,s),s=o);return this}var lF=v(()=>{"use strict";a(oA,"default")});function lA(e){e||(e=$Se);function t(f,p){return f&&p?e(f.__data__,p.__data__):!f-!p}a(t,"compareNode");for(var r=this._groups,i=r.length,n=new Array(i),s=0;s<i;++s){for(var o=r[s],l=o.length,u=n[s]=new Array(l),h,d=0;d<l;++d)(h=o[d])&&(u[d]=h);u.sort(t)}return new hi(n,this._parents).order()}function $Se(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}var cF=v(()=>{"use strict";_s();a(lA,"default");a($Se,"ascending")});function cA(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}var uF=v(()=>{"use strict";a(cA,"default")});function uA(){return Array.from(this)}var hF=v(()=>{"use strict";a(uA,"default")});function hA(){for(var e=this._groups,t=0,r=e.length;t<r;++t)for(var i=e[t],n=0,s=i.length;n<s;++n){var o=i[n];if(o)return o}return null}var dF=v(()=>{"use strict";a(hA,"default")});function dA(){let e=0;for(let t of this)++e;return e}var fF=v(()=>{"use strict";a(dA,"default")});function fA(){return!this.node()}var pF=v(()=>{"use strict";a(fA,"default")});function pA(e){for(var t=this._groups,r=0,i=t.length;r<i;++r)for(var n=t[r],s=0,o=n.length,l;s<o;++s)(l=n[s])&&e.call(l,l.__data__,s,n);return this}var mF=v(()=>{"use strict";a(pA,"default")});function FSe(e){return function(){this.removeAttribute(e)}}function VSe(e){return function(){this.removeAttributeNS(e.space,e.local)}}function GSe(e,t){return function(){this.setAttribute(e,t)}}function WSe(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function zSe(e,t){return function(){var r=t.apply(this,arguments);r==null?this.removeAttribute(e):this.setAttribute(e,r)}}function qSe(e,t){return function(){var r=t.apply(this,arguments);r==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,r)}}function mA(e,t){var r=fo(e);if(arguments.length<2){var i=this.node();return r.local?i.getAttributeNS(r.space,r.local):i.getAttribute(r)}return this.each((t==null?r.local?VSe:FSe:typeof t=="function"?r.local?qSe:zSe:r.local?WSe:GSe)(r,t))}var gF=v(()=>{"use strict";pb();a(FSe,"attrRemove");a(VSe,"attrRemoveNS");a(GSe,"attrConstant");a(WSe,"attrConstantNS");a(zSe,"attrFunction");a(qSe,"attrFunctionNS");a(mA,"default")});function Vg(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}var gA=v(()=>{"use strict";a(Vg,"default")});function jSe(e){return function(){this.style.removeProperty(e)}}function USe(e,t,r){return function(){this.style.setProperty(e,t,r)}}function HSe(e,t,r){return function(){var i=t.apply(this,arguments);i==null?this.style.removeProperty(e):this.style.setProperty(e,i,r)}}function yA(e,t,r){return arguments.length>1?this.each((t==null?jSe:typeof t=="function"?HSe:USe)(e,t,r??"")):bc(this.node(),e)}function bc(e,t){return e.style.getPropertyValue(t)||Vg(e).getComputedStyle(e,null).getPropertyValue(t)}var xA=v(()=>{"use strict";gA();a(jSe,"styleRemove");a(USe,"styleConstant");a(HSe,"styleFunction");a(yA,"default");a(bc,"styleValue")});function YSe(e){return function(){delete this[e]}}function KSe(e,t){return function(){this[e]=t}}function XSe(e,t){return function(){var r=t.apply(this,arguments);r==null?delete this[e]:this[e]=r}}function bA(e,t){return arguments.length>1?this.each((t==null?YSe:typeof t=="function"?XSe:KSe)(e,t)):this.node()[e]}var yF=v(()=>{"use strict";a(YSe,"propertyRemove");a(KSe,"propertyConstant");a(XSe,"propertyFunction");a(bA,"default")});function xF(e){return e.trim().split(/^|\s+/)}function TA(e){return e.classList||new bF(e)}function bF(e){this._node=e,this._names=xF(e.getAttribute("class")||"")}function TF(e,t){for(var r=TA(e),i=-1,n=t.length;++i<n;)r.add(t[i])}function kF(e,t){for(var r=TA(e),i=-1,n=t.length;++i<n;)r.remove(t[i])}function QSe(e){return function(){TF(this,e)}}function ZSe(e){return function(){kF(this,e)}}function JSe(e,t){return function(){(t.apply(this,arguments)?TF:kF)(this,e)}}function kA(e,t){var r=xF(e+"");if(arguments.length<2){for(var i=TA(this.node()),n=-1,s=r.length;++n<s;)if(!i.contains(r[n]))return!1;return!0}return this.each((typeof t=="function"?JSe:t?QSe:ZSe)(r,t))}var CF=v(()=>{"use strict";a(xF,"classArray");a(TA,"classList");a(bF,"ClassList");bF.prototype={add:a(function(e){var t=this._names.indexOf(e);t<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},"add"),remove:a(function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},"remove"),contains:a(function(e){return this._names.indexOf(e)>=0},"contains")};a(TF,"classedAdd");a(kF,"classedRemove");a(QSe,"classedTrue");a(ZSe,"classedFalse");a(JSe,"classedFunction");a(kA,"default")});function e_e(){this.textContent=""}function t_e(e){return function(){this.textContent=e}}function r_e(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function CA(e){return arguments.length?this.each(e==null?e_e:(typeof e=="function"?r_e:t_e)(e)):this.node().textContent}var vF=v(()=>{"use strict";a(e_e,"textRemove");a(t_e,"textConstant");a(r_e,"textFunction");a(CA,"default")});function i_e(){this.innerHTML=""}function n_e(e){return function(){this.innerHTML=e}}function a_e(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function vA(e){return arguments.length?this.each(e==null?i_e:(typeof e=="function"?a_e:n_e)(e)):this.node().innerHTML}var SF=v(()=>{"use strict";a(i_e,"htmlRemove");a(n_e,"htmlConstant");a(a_e,"htmlFunction");a(vA,"default")});function s_e(){this.nextSibling&&this.parentNode.appendChild(this)}function SA(){return this.each(s_e)}var _F=v(()=>{"use strict";a(s_e,"raise");a(SA,"default")});function o_e(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function _A(){return this.each(o_e)}var wF=v(()=>{"use strict";a(o_e,"lower");a(_A,"default")});function wA(e){var t=typeof e=="function"?e:Pg(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}var EF=v(()=>{"use strict";jE();a(wA,"default")});function l_e(){return null}function EA(e,t){var r=typeof e=="function"?e:Pg(e),i=t==null?l_e:typeof t=="function"?t:xc(t);return this.select(function(){return this.insertBefore(r.apply(this,arguments),i.apply(this,arguments)||null)})}var AF=v(()=>{"use strict";jE();mb();a(l_e,"constantNull");a(EA,"default")});function c_e(){var e=this.parentNode;e&&e.removeChild(this)}function AA(){return this.each(c_e)}var RF=v(()=>{"use strict";a(c_e,"remove");a(AA,"default")});function u_e(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function h_e(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function RA(e){return this.select(e?h_e:u_e)}var LF=v(()=>{"use strict";a(u_e,"selection_cloneShallow");a(h_e,"selection_cloneDeep");a(RA,"default")});function LA(e){return arguments.length?this.property("__data__",e):this.node().__data__}var DF=v(()=>{"use strict";a(LA,"default")});function d_e(e){return function(t){e.call(this,t,this.__data__)}}function f_e(e){return e.trim().split(/^|\s+/).map(function(t){var r="",i=t.indexOf(".");return i>=0&&(r=t.slice(i+1),t=t.slice(0,i)),{type:t,name:r}})}function p_e(e){return function(){var t=this.__on;if(t){for(var r=0,i=-1,n=t.length,s;r<n;++r)s=t[r],(!e.type||s.type===e.type)&&s.name===e.name?this.removeEventListener(s.type,s.listener,s.options):t[++i]=s;++i?t.length=i:delete this.__on}}}function m_e(e,t,r){return function(){var i=this.__on,n,s=d_e(t);if(i){for(var o=0,l=i.length;o<l;++o)if((n=i[o]).type===e.type&&n.name===e.name){this.removeEventListener(n.type,n.listener,n.options),this.addEventListener(n.type,n.listener=s,n.options=r),n.value=t;return}}this.addEventListener(e.type,s,r),n={type:e.type,name:e.name,value:t,listener:s,options:r},i?i.push(n):this.__on=[n]}}function DA(e,t,r){var i=f_e(e+""),n,s=i.length,o;if(arguments.length<2){var l=this.node().__on;if(l){for(var u=0,h=l.length,d;u<h;++u)for(n=0,d=l[u];n<s;++n)if((o=i[n]).type===d.type&&o.name===d.name)return d.value}return}for(l=t?m_e:p_e,n=0;n<s;++n)this.each(l(i[n],t,r));return this}var IF=v(()=>{"use strict";a(d_e,"contextListener");a(f_e,"parseTypenames");a(p_e,"onRemove");a(m_e,"onAdd");a(DA,"default")});function NF(e,t,r){var i=Vg(e),n=i.CustomEvent;typeof n=="function"?n=new n(t,r):(n=i.document.createEvent("Event"),r?(n.initEvent(t,r.bubbles,r.cancelable),n.detail=r.detail):n.initEvent(t,!1,!1)),e.dispatchEvent(n)}function g_e(e,t){return function(){return NF(this,e,t)}}function y_e(e,t){return function(){return NF(this,e,t.apply(this,arguments))}}function IA(e,t){return this.each((typeof t=="function"?y_e:g_e)(e,t))}var MF=v(()=>{"use strict";gA();a(NF,"dispatchEvent");a(g_e,"dispatchConstant");a(y_e,"dispatchFunction");a(IA,"default")});function*NA(){for(var e=this._groups,t=0,r=e.length;t<r;++t)for(var i=e[t],n=0,s=i.length,o;n<s;++n)(o=i[n])&&(yield o)}var OF=v(()=>{"use strict";a(NA,"default")});function hi(e,t){this._groups=e,this._parents=t}function PF(){return new hi([[document.documentElement]],MA)}function x_e(){return this}var MA,cl,_s=v(()=>{"use strict";Q$();J$();eF();tF();rF();nF();tA();aF();sF();oF();lF();cF();uF();hF();dF();fF();pF();mF();gF();xA();yF();CF();vF();SF();_F();wF();EF();AF();RF();LF();DF();IF();MF();OF();MA=[null];a(hi,"Selection");a(PF,"selection");a(x_e,"selection_selection");hi.prototype=PF.prototype={constructor:hi,select:UE,selectAll:KE,selectChild:XE,selectChildren:QE,filter:ZE,data:iA,enter:eA,exit:nA,join:aA,merge:sA,selection:x_e,order:oA,sort:lA,call:cA,nodes:uA,node:hA,size:dA,empty:fA,each:pA,attr:mA,style:yA,property:bA,classed:kA,text:CA,html:vA,raise:SA,lower:_A,append:wA,insert:EA,remove:AA,clone:RA,datum:LA,on:DA,dispatch:IA,[Symbol.iterator]:NA};cl=PF});function Se(e){return typeof e=="string"?new hi([[document.querySelector(e)]],[document.documentElement]):new hi([[e]],MA)}var BF=v(()=>{"use strict";_s();a(Se,"default")});var ws=v(()=>{"use strict";Bg();pb();BF();_s();mb();YE();xA()});var $F=v(()=>{"use strict"});function Tc(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function If(e,t){var r=Object.create(e.prototype);for(var i in t)r[i]=t[i];return r}var OA=v(()=>{"use strict";a(Tc,"default");a(If,"extend")});function kc(){}function VF(){return this.rgb().formatHex()}function w_e(){return this.rgb().formatHex8()}function E_e(){return HF(this).formatHsl()}function GF(){return this.rgb().formatRgb()}function As(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=b_e.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?WF(t):r===3?new nn(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?yb(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?yb(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=T_e.exec(e))?new nn(t[1],t[2],t[3],1):(t=k_e.exec(e))?new nn(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=C_e.exec(e))?yb(t[1],t[2],t[3],t[4]):(t=v_e.exec(e))?yb(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=S_e.exec(e))?jF(t[1],t[2]/100,t[3]/100,1):(t=__e.exec(e))?jF(t[1],t[2]/100,t[3]/100,t[4]):FF.hasOwnProperty(e)?WF(FF[e]):e==="transparent"?new nn(NaN,NaN,NaN,0):null}function WF(e){return new nn(e>>16&255,e>>8&255,e&255,1)}function yb(e,t,r,i){return i<=0&&(e=t=r=NaN),new nn(e,t,r,i)}function BA(e){return e instanceof kc||(e=As(e)),e?(e=e.rgb(),new nn(e.r,e.g,e.b,e.opacity)):new nn}function Mf(e,t,r,i){return arguments.length===1?BA(e):new nn(e,t,r,i??1)}function nn(e,t,r,i){this.r=+e,this.g=+t,this.b=+r,this.opacity=+i}function zF(){return`#${ih(this.r)}${ih(this.g)}${ih(this.b)}`}function A_e(){return`#${ih(this.r)}${ih(this.g)}${ih(this.b)}${ih((isNaN(this.opacity)?1:this.opacity)*255)}`}function qF(){let e=Tb(this.opacity);return`${e===1?"rgb(":"rgba("}${nh(this.r)}, ${nh(this.g)}, ${nh(this.b)}${e===1?")":`, ${e})`}`}function Tb(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function nh(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function ih(e){return e=nh(e),(e<16?"0":"")+e.toString(16)}function jF(e,t,r,i){return i<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Es(e,t,r,i)}function HF(e){if(e instanceof Es)return new Es(e.h,e.s,e.l,e.opacity);if(e instanceof kc||(e=As(e)),!e)return new Es;if(e instanceof Es)return e;e=e.rgb();var t=e.r/255,r=e.g/255,i=e.b/255,n=Math.min(t,r,i),s=Math.max(t,r,i),o=NaN,l=s-n,u=(s+n)/2;return l?(t===s?o=(r-i)/l+(r<i)*6:r===s?o=(i-t)/l+2:o=(t-r)/l+4,l/=u<.5?s+n:2-s-n,o*=60):l=u>0&&u<1?0:o,new Es(o,l,u,e.opacity)}function YF(e,t,r,i){return arguments.length===1?HF(e):new Es(e,t,r,i??1)}function Es(e,t,r,i){this.h=+e,this.s=+t,this.l=+r,this.opacity=+i}function UF(e){return e=(e||0)%360,e<0?e+360:e}function xb(e){return Math.max(0,Math.min(1,e||0))}function PA(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}var Gg,bb,Nf,Wg,po,b_e,T_e,k_e,C_e,v_e,S_e,__e,FF,$A=v(()=>{"use strict";OA();a(kc,"Color");Gg=.7,bb=1/Gg,Nf="\\s*([+-]?\\d+)\\s*",Wg="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",po="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",b_e=/^#([0-9a-f]{3,8})$/,T_e=new RegExp(`^rgb\\(${Nf},${Nf},${Nf}\\)$`),k_e=new RegExp(`^rgb\\(${po},${po},${po}\\)$`),C_e=new RegExp(`^rgba\\(${Nf},${Nf},${Nf},${Wg}\\)$`),v_e=new RegExp(`^rgba\\(${po},${po},${po},${Wg}\\)$`),S_e=new RegExp(`^hsl\\(${Wg},${po},${po}\\)$`),__e=new RegExp(`^hsla\\(${Wg},${po},${po},${Wg}\\)$`),FF={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Tc(kc,As,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:VF,formatHex:VF,formatHex8:w_e,formatHsl:E_e,formatRgb:GF,toString:GF});a(VF,"color_formatHex");a(w_e,"color_formatHex8");a(E_e,"color_formatHsl");a(GF,"color_formatRgb");a(As,"color");a(WF,"rgbn");a(yb,"rgba");a(BA,"rgbConvert");a(Mf,"rgb");a(nn,"Rgb");Tc(nn,Mf,If(kc,{brighter(e){return e=e==null?bb:Math.pow(bb,e),new nn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Gg:Math.pow(Gg,e),new nn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new nn(nh(this.r),nh(this.g),nh(this.b),Tb(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:zF,formatHex:zF,formatHex8:A_e,formatRgb:qF,toString:qF}));a(zF,"rgb_formatHex");a(A_e,"rgb_formatHex8");a(qF,"rgb_formatRgb");a(Tb,"clampa");a(nh,"clampi");a(ih,"hex");a(jF,"hsla");a(HF,"hslConvert");a(YF,"hsl");a(Es,"Hsl");Tc(Es,YF,If(kc,{brighter(e){return e=e==null?bb:Math.pow(bb,e),new Es(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Gg:Math.pow(Gg,e),new Es(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,i=r+(r<.5?r:1-r)*t,n=2*r-i;return new nn(PA(e>=240?e-240:e+120,n,i),PA(e,n,i),PA(e<120?e+240:e-120,n,i),this.opacity)},clamp(){return new Es(UF(this.h),xb(this.s),xb(this.l),Tb(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let e=Tb(this.opacity);return`${e===1?"hsl(":"hsla("}${UF(this.h)}, ${xb(this.s)*100}%, ${xb(this.l)*100}%${e===1?")":`, ${e})`}`}}));a(UF,"clamph");a(xb,"clampt");a(PA,"hsl2rgb")});var KF,XF,QF=v(()=>{"use strict";KF=Math.PI/180,XF=180/Math.PI});function i9(e){if(e instanceof mo)return new mo(e.l,e.a,e.b,e.opacity);if(e instanceof ul)return n9(e);e instanceof nn||(e=BA(e));var t=WA(e.r),r=WA(e.g),i=WA(e.b),n=FA((.2225045*t+.7168786*r+.0606169*i)/JF),s,o;return t===r&&r===i?s=o=n:(s=FA((.4360747*t+.3850649*r+.1430804*i)/ZF),o=FA((.0139322*t+.0971045*r+.7141733*i)/e9)),new mo(116*n-16,500*(s-n),200*(n-o),e.opacity)}function zA(e,t,r,i){return arguments.length===1?i9(e):new mo(e,t,r,i??1)}function mo(e,t,r,i){this.l=+e,this.a=+t,this.b=+r,this.opacity=+i}function FA(e){return e>R_e?Math.pow(e,1/3):e/r9+t9}function VA(e){return e>Of?e*e*e:r9*(e-t9)}function GA(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function WA(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function L_e(e){if(e instanceof ul)return new ul(e.h,e.c,e.l,e.opacity);if(e instanceof mo||(e=i9(e)),e.a===0&&e.b===0)return new ul(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*XF;return new ul(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}function zg(e,t,r,i){return arguments.length===1?L_e(e):new ul(e,t,r,i??1)}function ul(e,t,r,i){this.h=+e,this.c=+t,this.l=+r,this.opacity=+i}function n9(e){if(isNaN(e.h))return new mo(e.l,0,0,e.opacity);var t=e.h*KF;return new mo(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}var kb,ZF,JF,e9,t9,Of,r9,R_e,a9=v(()=>{"use strict";OA();$A();QF();kb=18,ZF=.96422,JF=1,e9=.82521,t9=4/29,Of=6/29,r9=3*Of*Of,R_e=Of*Of*Of;a(i9,"labConvert");a(zA,"lab");a(mo,"Lab");Tc(mo,zA,If(kc,{brighter(e){return new mo(this.l+kb*(e??1),this.a,this.b,this.opacity)},darker(e){return new mo(this.l-kb*(e??1),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,r=isNaN(this.b)?e:e-this.b/200;return t=ZF*VA(t),e=JF*VA(e),r=e9*VA(r),new nn(GA(3.1338561*t-1.6168667*e-.4906146*r),GA(-.9787684*t+1.9161415*e+.033454*r),GA(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}}));a(FA,"xyz2lab");a(VA,"lab2xyz");a(GA,"lrgb2rgb");a(WA,"rgb2lrgb");a(L_e,"hclConvert");a(zg,"hcl");a(ul,"Hcl");a(n9,"hcl2lab");Tc(ul,zg,If(kc,{brighter(e){return new ul(this.h,this.c,this.l+kb*(e??1),this.opacity)},darker(e){return new ul(this.h,this.c,this.l-kb*(e??1),this.opacity)},rgb(){return n9(this).rgb()}}))});var Pf=v(()=>{"use strict";$A();a9()});function qA(e,t,r,i,n){var s=e*e,o=s*e;return((1-3*e+3*s-o)*t+(4-6*s+3*o)*r+(1+3*e+3*s-3*o)*i+o*n)/6}function jA(e){var t=e.length-1;return function(r){var i=r<=0?r=0:r>=1?(r=1,t-1):Math.floor(r*t),n=e[i],s=e[i+1],o=i>0?e[i-1]:2*n-s,l=i<t-1?e[i+2]:2*s-n;return qA((r-i/t)*t,o,n,s,l)}}var UA=v(()=>{"use strict";a(qA,"basis");a(jA,"default")});function HA(e){var t=e.length;return function(r){var i=Math.floor(((r%=1)<0?++r:r)*t),n=e[(i+t-1)%t],s=e[i%t],o=e[(i+1)%t],l=e[(i+2)%t];return qA((r-i/t)*t,n,s,o,l)}}var s9=v(()=>{"use strict";UA();a(HA,"default")});var Bf,YA=v(()=>{"use strict";Bf=a(e=>()=>e,"default")});function o9(e,t){return function(r){return e+r*t}}function D_e(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(i){return Math.pow(e+i*t,r)}}function l9(e,t){var r=t-e;return r?o9(e,r>180||r<-180?r-360*Math.round(r/360):r):Bf(isNaN(e)?t:e)}function c9(e){return(e=+e)==1?hl:function(t,r){return r-t?D_e(t,r,e):Bf(isNaN(t)?r:t)}}function hl(e,t){var r=t-e;return r?o9(e,r):Bf(isNaN(e)?t:e)}var KA=v(()=>{"use strict";YA();a(o9,"linear");a(D_e,"exponential");a(l9,"hue");a(c9,"gamma");a(hl,"nogamma")});function u9(e){return function(t){var r=t.length,i=new Array(r),n=new Array(r),s=new Array(r),o,l;for(o=0;o<r;++o)l=Mf(t[o]),i[o]=l.r||0,n[o]=l.g||0,s[o]=l.b||0;return i=e(i),n=e(n),s=e(s),l.opacity=1,function(u){return l.r=i(u),l.g=n(u),l.b=s(u),l+""}}}var ah,I_e,N_e,XA=v(()=>{"use strict";Pf();UA();s9();KA();ah=a((function e(t){var r=c9(t);function i(n,s){var o=r((n=Mf(n)).r,(s=Mf(s)).r),l=r(n.g,s.g),u=r(n.b,s.b),h=hl(n.opacity,s.opacity);return function(d){return n.r=o(d),n.g=l(d),n.b=u(d),n.opacity=h(d),n+""}}return a(i,"rgb"),i.gamma=e,i}),"rgbGamma")(1);a(u9,"rgbSpline");I_e=u9(jA),N_e=u9(HA)});function QA(e,t){t||(t=[]);var r=e?Math.min(t.length,e.length):0,i=t.slice(),n;return function(s){for(n=0;n<r;++n)i[n]=e[n]*(1-s)+t[n]*s;return i}}function h9(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}var d9=v(()=>{"use strict";a(QA,"default");a(h9,"isNumberArray")});function f9(e,t){var r=t?t.length:0,i=e?Math.min(r,e.length):0,n=new Array(i),s=new Array(r),o;for(o=0;o<i;++o)n[o]=Cc(e[o],t[o]);for(;o<r;++o)s[o]=t[o];return function(l){for(o=0;o<i;++o)s[o]=n[o](l);return s}}var p9=v(()=>{"use strict";Cb();a(f9,"genericArray")});function ZA(e,t){var r=new Date;return e=+e,t=+t,function(i){return r.setTime(e*(1-i)+t*i),r}}var m9=v(()=>{"use strict";a(ZA,"default")});function Hi(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}var qg=v(()=>{"use strict";a(Hi,"default")});function JA(e,t){var r={},i={},n;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(n in t)n in e?r[n]=Cc(e[n],t[n]):i[n]=t[n];return function(s){for(n in r)i[n]=r[n](s);return i}}var g9=v(()=>{"use strict";Cb();a(JA,"default")});function M_e(e){return function(){return e}}function O_e(e){return function(t){return e(t)+""}}function $f(e,t){var r=t3.lastIndex=e3.lastIndex=0,i,n,s,o=-1,l=[],u=[];for(e=e+"",t=t+"";(i=t3.exec(e))&&(n=e3.exec(t));)(s=n.index)>r&&(s=t.slice(r,s),l[o]?l[o]+=s:l[++o]=s),(i=i[0])===(n=n[0])?l[o]?l[o]+=n:l[++o]=n:(l[++o]=null,u.push({i:o,x:Hi(i,n)})),r=e3.lastIndex;return r<t.length&&(s=t.slice(r),l[o]?l[o]+=s:l[++o]=s),l.length<2?u[0]?O_e(u[0].x):M_e(t):(t=u.length,function(h){for(var d=0,f;d<t;++d)l[(f=u[d]).i]=f.x(h);return l.join("")})}var t3,e3,r3=v(()=>{"use strict";qg();t3=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,e3=new RegExp(t3.source,"g");a(M_e,"zero");a(O_e,"one");a($f,"default")});function Cc(e,t){var r=typeof t,i;return t==null||r==="boolean"?Bf(t):(r==="number"?Hi:r==="string"?(i=As(t))?(t=i,ah):$f:t instanceof As?ah:t instanceof Date?ZA:h9(t)?QA:Array.isArray(t)?f9:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?JA:Hi)(e,t)}var Cb=v(()=>{"use strict";Pf();XA();p9();m9();qg();g9();r3();YA();d9();a(Cc,"default")});function vb(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}var y9=v(()=>{"use strict";a(vb,"default")});function _b(e,t,r,i,n,s){var o,l,u;return(o=Math.sqrt(e*e+t*t))&&(e/=o,t/=o),(u=e*r+t*i)&&(r-=e*u,i-=t*u),(l=Math.sqrt(r*r+i*i))&&(r/=l,i/=l,u/=l),e*i<t*r&&(e=-e,t=-t,u=-u,o=-o),{translateX:n,translateY:s,rotate:Math.atan2(t,e)*x9,skewX:Math.atan(u)*x9,scaleX:o,scaleY:l}}var x9,Sb,b9=v(()=>{"use strict";x9=180/Math.PI,Sb={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};a(_b,"default")});function T9(e){let t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?Sb:_b(t.a,t.b,t.c,t.d,t.e,t.f)}function k9(e){return e==null?Sb:(wb||(wb=document.createElementNS("http://www.w3.org/2000/svg","g")),wb.setAttribute("transform",e),(e=wb.transform.baseVal.consolidate())?(e=e.matrix,_b(e.a,e.b,e.c,e.d,e.e,e.f)):Sb)}var wb,C9=v(()=>{"use strict";b9();a(T9,"parseCss");a(k9,"parseSvg")});function v9(e,t,r,i){function n(h){return h.length?h.pop()+" ":""}a(n,"pop");function s(h,d,f,p,m,g){if(h!==f||d!==p){var x=m.push("translate(",null,t,null,r);g.push({i:x-4,x:Hi(h,f)},{i:x-2,x:Hi(d,p)})}else(f||p)&&m.push("translate("+f+t+p+r)}a(s,"translate");function o(h,d,f,p){h!==d?(h-d>180?d+=360:d-h>180&&(h+=360),p.push({i:f.push(n(f)+"rotate(",null,i)-2,x:Hi(h,d)})):d&&f.push(n(f)+"rotate("+d+i)}a(o,"rotate");function l(h,d,f,p){h!==d?p.push({i:f.push(n(f)+"skewX(",null,i)-2,x:Hi(h,d)}):d&&f.push(n(f)+"skewX("+d+i)}a(l,"skewX");function u(h,d,f,p,m,g){if(h!==f||d!==p){var x=m.push(n(m)+"scale(",null,",",null,")");g.push({i:x-4,x:Hi(h,f)},{i:x-2,x:Hi(d,p)})}else(f!==1||p!==1)&&m.push(n(m)+"scale("+f+","+p+")")}return a(u,"scale"),function(h,d){var f=[],p=[];return h=e(h),d=e(d),s(h.translateX,h.translateY,d.translateX,d.translateY,f,p),o(h.rotate,d.rotate,f,p),l(h.skewX,d.skewX,f,p),u(h.scaleX,h.scaleY,d.scaleX,d.scaleY,f,p),h=d=null,function(m){for(var g=-1,x=p.length,b;++g<x;)f[(b=p[g]).i]=b.x(m);return f.join("")}}}var i3,n3,S9=v(()=>{"use strict";qg();C9();a(v9,"interpolateTransform");i3=v9(T9,"px, ","px)","deg)"),n3=v9(k9,", ",")",")")});function _9(e){return function(t,r){var i=e((t=zg(t)).h,(r=zg(r)).h),n=hl(t.c,r.c),s=hl(t.l,r.l),o=hl(t.opacity,r.opacity);return function(l){return t.h=i(l),t.c=n(l),t.l=s(l),t.opacity=o(l),t+""}}}var a3,P_e,w9=v(()=>{"use strict";Pf();KA();a(_9,"hcl");a3=_9(l9),P_e=_9(hl)});var Ff=v(()=>{"use strict";Cb();qg();y9();r3();S9();XA();w9()});function Xg(){return sh||(R9(B_e),sh=Yg.now()+Rb)}function B_e(){sh=0}function Kg(){this._call=this._time=this._next=null}function Lb(e,t,r){var i=new Kg;return i.restart(e,t,r),i}function L9(){Xg(),++Vf;for(var e=Eb,t;e;)(t=sh-e._time)>=0&&e._call.call(void 0,t),e=e._next;--Vf}function E9(){sh=(Ab=Yg.now())+Rb,Vf=Ug=0;try{L9()}finally{Vf=0,F_e(),sh=0}}function $_e(){var e=Yg.now(),t=e-Ab;t>A9&&(Rb-=t,Ab=e)}function F_e(){for(var e,t=Eb,r,i=1/0;t;)t._call?(i>t._time&&(i=t._time),e=t,t=t._next):(r=t._next,t._next=null,t=e?e._next=r:Eb=r);Hg=e,s3(i)}function s3(e){if(!Vf){Ug&&(Ug=clearTimeout(Ug));var t=e-sh;t>24?(e<1/0&&(Ug=setTimeout(E9,e-Yg.now()-Rb)),jg&&(jg=clearInterval(jg))):(jg||(Ab=Yg.now(),jg=setInterval($_e,A9)),Vf=1,R9(E9))}}var Vf,Ug,jg,A9,Eb,Hg,Ab,sh,Rb,Yg,R9,o3=v(()=>{"use strict";Vf=0,Ug=0,jg=0,A9=1e3,Ab=0,sh=0,Rb=0,Yg=typeof performance=="object"&&performance.now?performance:Date,R9=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};a(Xg,"now");a(B_e,"clearNow");a(Kg,"Timer");Kg.prototype=Lb.prototype={constructor:Kg,restart:a(function(e,t,r){if(typeof e!="function")throw new TypeError("callback is not a function");r=(r==null?Xg():+r)+(t==null?0:+t),!this._next&&Hg!==this&&(Hg?Hg._next=this:Eb=this,Hg=this),this._call=e,this._time=r,s3()},"restart"),stop:a(function(){this._call&&(this._call=null,this._time=1/0,s3())},"stop")};a(Lb,"timer");a(L9,"timerFlush");a(E9,"wake");a($_e,"poke");a(F_e,"nap");a(s3,"sleep")});function Qg(e,t,r){var i=new Kg;return t=t==null?0:+t,i.restart(n=>{i.stop(),e(n+t)},t,r),i}var D9=v(()=>{"use strict";o3();a(Qg,"default")});var Db=v(()=>{"use strict";o3();D9()});function dl(e,t,r,i,n,s){var o=e.__transition;if(!o)e.__transition={};else if(r in o)return;W_e(e,r,{name:t,index:i,group:n,on:V_e,tween:G_e,time:s.time,delay:s.delay,duration:s.duration,ease:s.ease,timer:null,state:M9})}function Jg(e,t){var r=$i(e,t);if(r.state>M9)throw new Error("too late; already scheduled");return r}function an(e,t){var r=$i(e,t);if(r.state>Ib)throw new Error("too late; already running");return r}function $i(e,t){var r=e.__transition;if(!r||!(r=r[t]))throw new Error("transition not found");return r}function W_e(e,t,r){var i=e.__transition,n;i[t]=r,r.timer=Lb(s,0,r.time);function s(h){r.state=I9,r.timer.restart(o,r.delay,r.time),r.delay<=h&&o(h-r.delay)}a(s,"schedule");function o(h){var d,f,p,m;if(r.state!==I9)return u();for(d in i)if(m=i[d],m.name===r.name){if(m.state===Ib)return Qg(o);m.state===N9?(m.state=Zg,m.timer.stop(),m.on.call("interrupt",e,e.__data__,m.index,m.group),delete i[d]):+d<t&&(m.state=Zg,m.timer.stop(),m.on.call("cancel",e,e.__data__,m.index,m.group),delete i[d])}if(Qg(function(){r.state===Ib&&(r.state=N9,r.timer.restart(l,r.delay,r.time),l(h))}),r.state=Nb,r.on.call("start",e,e.__data__,r.index,r.group),r.state===Nb){for(r.state=Ib,n=new Array(p=r.tween.length),d=0,f=-1;d<p;++d)(m=r.tween[d].value.call(e,e.__data__,r.index,r.group))&&(n[++f]=m);n.length=f+1}}a(o,"start");function l(h){for(var d=h<r.duration?r.ease.call(null,h/r.duration):(r.timer.restart(u),r.state=Mb,1),f=-1,p=n.length;++f<p;)n[f].call(e,d);r.state===Mb&&(r.on.call("end",e,e.__data__,r.index,r.group),u())}a(l,"tick");function u(){r.state=Zg,r.timer.stop(),delete i[t];for(var h in i)return;delete e.__transition}a(u,"stop")}var V_e,G_e,M9,I9,Nb,Ib,N9,Mb,Zg,Xn=v(()=>{"use strict";WE();Db();V_e=GE("start","end","cancel","interrupt"),G_e=[],M9=0,I9=1,Nb=2,Ib=3,N9=4,Mb=5,Zg=6;a(dl,"default");a(Jg,"init");a(an,"set");a($i,"get");a(W_e,"create")});function ey(e,t){var r=e.__transition,i,n,s=!0,o;if(r){t=t==null?null:t+"";for(o in r){if((i=r[o]).name!==t){s=!1;continue}n=i.state>Nb&&i.state<Mb,i.state=Zg,i.timer.stop(),i.on.call(n?"interrupt":"cancel",e,e.__data__,i.index,i.group),delete r[o]}s&&delete e.__transition}}var O9=v(()=>{"use strict";Xn();a(ey,"default")});function l3(e){return this.each(function(){ey(this,e)})}var P9=v(()=>{"use strict";O9();a(l3,"default")});function z_e(e,t){var r,i;return function(){var n=an(this,e),s=n.tween;if(s!==r){i=r=s;for(var o=0,l=i.length;o<l;++o)if(i[o].name===t){i=i.slice(),i.splice(o,1);break}}n.tween=i}}function q_e(e,t,r){var i,n;if(typeof r!="function")throw new Error;return function(){var s=an(this,e),o=s.tween;if(o!==i){n=(i=o).slice();for(var l={name:t,value:r},u=0,h=n.length;u<h;++u)if(n[u].name===t){n[u]=l;break}u===h&&n.push(l)}s.tween=n}}function c3(e,t){var r=this._id;if(e+="",arguments.length<2){for(var i=$i(this.node(),r).tween,n=0,s=i.length,o;n<s;++n)if((o=i[n]).name===e)return o.value;return null}return this.each((t==null?z_e:q_e)(r,e,t))}function Gf(e,t,r){var i=e._id;return e.each(function(){var n=an(this,i);(n.value||(n.value={}))[t]=r.apply(this,arguments)}),function(n){return $i(n,i).value[t]}}var ty=v(()=>{"use strict";Xn();a(z_e,"tweenRemove");a(q_e,"tweenFunction");a(c3,"default");a(Gf,"tweenValue")});function ry(e,t){var r;return(typeof t=="number"?Hi:t instanceof As?ah:(r=As(t))?(t=r,ah):$f)(e,t)}var u3=v(()=>{"use strict";Pf();Ff();a(ry,"default")});function j_e(e){return function(){this.removeAttribute(e)}}function U_e(e){return function(){this.removeAttributeNS(e.space,e.local)}}function H_e(e,t,r){var i,n=r+"",s;return function(){var o=this.getAttribute(e);return o===n?null:o===i?s:s=t(i=o,r)}}function Y_e(e,t,r){var i,n=r+"",s;return function(){var o=this.getAttributeNS(e.space,e.local);return o===n?null:o===i?s:s=t(i=o,r)}}function K_e(e,t,r){var i,n,s;return function(){var o,l=r(this),u;return l==null?void this.removeAttribute(e):(o=this.getAttribute(e),u=l+"",o===u?null:o===i&&u===n?s:(n=u,s=t(i=o,l)))}}function X_e(e,t,r){var i,n,s;return function(){var o,l=r(this),u;return l==null?void this.removeAttributeNS(e.space,e.local):(o=this.getAttributeNS(e.space,e.local),u=l+"",o===u?null:o===i&&u===n?s:(n=u,s=t(i=o,l)))}}function h3(e,t){var r=fo(e),i=r==="transform"?n3:ry;return this.attrTween(e,typeof t=="function"?(r.local?X_e:K_e)(r,i,Gf(this,"attr."+e,t)):t==null?(r.local?U_e:j_e)(r):(r.local?Y_e:H_e)(r,i,t))}var B9=v(()=>{"use strict";Ff();ws();ty();u3();a(j_e,"attrRemove");a(U_e,"attrRemoveNS");a(H_e,"attrConstant");a(Y_e,"attrConstantNS");a(K_e,"attrFunction");a(X_e,"attrFunctionNS");a(h3,"default")});function Q_e(e,t){return function(r){this.setAttribute(e,t.call(this,r))}}function Z_e(e,t){return function(r){this.setAttributeNS(e.space,e.local,t.call(this,r))}}function J_e(e,t){var r,i;function n(){var s=t.apply(this,arguments);return s!==i&&(r=(i=s)&&Z_e(e,s)),r}return a(n,"tween"),n._value=t,n}function ewe(e,t){var r,i;function n(){var s=t.apply(this,arguments);return s!==i&&(r=(i=s)&&Q_e(e,s)),r}return a(n,"tween"),n._value=t,n}function d3(e,t){var r="attr."+e;if(arguments.length<2)return(r=this.tween(r))&&r._value;if(t==null)return this.tween(r,null);if(typeof t!="function")throw new Error;var i=fo(e);return this.tween(r,(i.local?J_e:ewe)(i,t))}var $9=v(()=>{"use strict";ws();a(Q_e,"attrInterpolate");a(Z_e,"attrInterpolateNS");a(J_e,"attrTweenNS");a(ewe,"attrTween");a(d3,"default")});function twe(e,t){return function(){Jg(this,e).delay=+t.apply(this,arguments)}}function rwe(e,t){return t=+t,function(){Jg(this,e).delay=t}}function f3(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?twe:rwe)(t,e)):$i(this.node(),t).delay}var F9=v(()=>{"use strict";Xn();a(twe,"delayFunction");a(rwe,"delayConstant");a(f3,"default")});function iwe(e,t){return function(){an(this,e).duration=+t.apply(this,arguments)}}function nwe(e,t){return t=+t,function(){an(this,e).duration=t}}function p3(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?iwe:nwe)(t,e)):$i(this.node(),t).duration}var V9=v(()=>{"use strict";Xn();a(iwe,"durationFunction");a(nwe,"durationConstant");a(p3,"default")});function awe(e,t){if(typeof t!="function")throw new Error;return function(){an(this,e).ease=t}}function m3(e){var t=this._id;return arguments.length?this.each(awe(t,e)):$i(this.node(),t).ease}var G9=v(()=>{"use strict";Xn();a(awe,"easeConstant");a(m3,"default")});function swe(e,t){return function(){var r=t.apply(this,arguments);if(typeof r!="function")throw new Error;an(this,e).ease=r}}function g3(e){if(typeof e!="function")throw new Error;return this.each(swe(this._id,e))}var W9=v(()=>{"use strict";Xn();a(swe,"easeVarying");a(g3,"default")});function y3(e){typeof e!="function"&&(e=Df(e));for(var t=this._groups,r=t.length,i=new Array(r),n=0;n<r;++n)for(var s=t[n],o=s.length,l=i[n]=[],u,h=0;h<o;++h)(u=s[h])&&e.call(u,u.__data__,h,s)&&l.push(u);return new Nn(i,this._parents,this._name,this._id)}var z9=v(()=>{"use strict";ws();oh();a(y3,"default")});function x3(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,r=e._groups,i=t.length,n=r.length,s=Math.min(i,n),o=new Array(i),l=0;l<s;++l)for(var u=t[l],h=r[l],d=u.length,f=o[l]=new Array(d),p,m=0;m<d;++m)(p=u[m]||h[m])&&(f[m]=p);for(;l<i;++l)o[l]=t[l];return new Nn(o,this._parents,this._name,this._id)}var q9=v(()=>{"use strict";oh();a(x3,"default")});function owe(e){return(e+"").trim().split(/^|\s+/).every(function(t){var r=t.indexOf(".");return r>=0&&(t=t.slice(0,r)),!t||t==="start"})}function lwe(e,t,r){var i,n,s=owe(t)?Jg:an;return function(){var o=s(this,e),l=o.on;l!==i&&(n=(i=l).copy()).on(t,r),o.on=n}}function b3(e,t){var r=this._id;return arguments.length<2?$i(this.node(),r).on.on(e):this.each(lwe(r,e,t))}var j9=v(()=>{"use strict";Xn();a(owe,"start");a(lwe,"onFunction");a(b3,"default")});function cwe(e){return function(){var t=this.parentNode;for(var r in this.__transition)if(+r!==e)return;t&&t.removeChild(this)}}function T3(){return this.on("end.remove",cwe(this._id))}var U9=v(()=>{"use strict";a(cwe,"removeFunction");a(T3,"default")});function k3(e){var t=this._name,r=this._id;typeof e!="function"&&(e=xc(e));for(var i=this._groups,n=i.length,s=new Array(n),o=0;o<n;++o)for(var l=i[o],u=l.length,h=s[o]=new Array(u),d,f,p=0;p<u;++p)(d=l[p])&&(f=e.call(d,d.__data__,p,l))&&("__data__"in d&&(f.__data__=d.__data__),h[p]=f,dl(h[p],t,r,p,h,$i(d,r)));return new Nn(s,this._parents,t,r)}var H9=v(()=>{"use strict";ws();oh();Xn();a(k3,"default")});function C3(e){var t=this._name,r=this._id;typeof e!="function"&&(e=Lf(e));for(var i=this._groups,n=i.length,s=[],o=[],l=0;l<n;++l)for(var u=i[l],h=u.length,d,f=0;f<h;++f)if(d=u[f]){for(var p=e.call(d,d.__data__,f,u),m,g=$i(d,r),x=0,b=p.length;x<b;++x)(m=p[x])&&dl(m,t,r,x,p,g);s.push(p),o.push(d)}return new Nn(s,o,t,r)}var Y9=v(()=>{"use strict";ws();oh();Xn();a(C3,"default")});function v3(){return new uwe(this._groups,this._parents)}var uwe,K9=v(()=>{"use strict";ws();uwe=cl.prototype.constructor;a(v3,"default")});function hwe(e,t){var r,i,n;return function(){var s=bc(this,e),o=(this.style.removeProperty(e),bc(this,e));return s===o?null:s===r&&o===i?n:n=t(r=s,i=o)}}function X9(e){return function(){this.style.removeProperty(e)}}function dwe(e,t,r){var i,n=r+"",s;return function(){var o=bc(this,e);return o===n?null:o===i?s:s=t(i=o,r)}}function fwe(e,t,r){var i,n,s;return function(){var o=bc(this,e),l=r(this),u=l+"";return l==null&&(u=l=(this.style.removeProperty(e),bc(this,e))),o===u?null:o===i&&u===n?s:(n=u,s=t(i=o,l))}}function pwe(e,t){var r,i,n,s="style."+t,o="end."+s,l;return function(){var u=an(this,e),h=u.on,d=u.value[s]==null?l||(l=X9(t)):void 0;(h!==r||n!==d)&&(i=(r=h).copy()).on(o,n=d),u.on=i}}function S3(e,t,r){var i=(e+="")=="transform"?i3:ry;return t==null?this.styleTween(e,hwe(e,i)).on("end.style."+e,X9(e)):typeof t=="function"?this.styleTween(e,fwe(e,i,Gf(this,"style."+e,t))).each(pwe(this._id,e)):this.styleTween(e,dwe(e,i,t),r).on("end.style."+e,null)}var Q9=v(()=>{"use strict";Ff();ws();Xn();ty();u3();a(hwe,"styleNull");a(X9,"styleRemove");a(dwe,"styleConstant");a(fwe,"styleFunction");a(pwe,"styleMaybeRemove");a(S3,"default")});function mwe(e,t,r){return function(i){this.style.setProperty(e,t.call(this,i),r)}}function gwe(e,t,r){var i,n;function s(){var o=t.apply(this,arguments);return o!==n&&(i=(n=o)&&mwe(e,o,r)),i}return a(s,"tween"),s._value=t,s}function _3(e,t,r){var i="style."+(e+="");if(arguments.length<2)return(i=this.tween(i))&&i._value;if(t==null)return this.tween(i,null);if(typeof t!="function")throw new Error;return this.tween(i,gwe(e,t,r??""))}var Z9=v(()=>{"use strict";a(mwe,"styleInterpolate");a(gwe,"styleTween");a(_3,"default")});function ywe(e){return function(){this.textContent=e}}function xwe(e){return function(){var t=e(this);this.textContent=t??""}}function w3(e){return this.tween("text",typeof e=="function"?xwe(Gf(this,"text",e)):ywe(e==null?"":e+""))}var J9=v(()=>{"use strict";ty();a(ywe,"textConstant");a(xwe,"textFunction");a(w3,"default")});function bwe(e){return function(t){this.textContent=e.call(this,t)}}function Twe(e){var t,r;function i(){var n=e.apply(this,arguments);return n!==r&&(t=(r=n)&&bwe(n)),t}return a(i,"tween"),i._value=e,i}function E3(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!="function")throw new Error;return this.tween(t,Twe(e))}var eV=v(()=>{"use strict";a(bwe,"textInterpolate");a(Twe,"textTween");a(E3,"default")});function A3(){for(var e=this._name,t=this._id,r=Ob(),i=this._groups,n=i.length,s=0;s<n;++s)for(var o=i[s],l=o.length,u,h=0;h<l;++h)if(u=o[h]){var d=$i(u,t);dl(u,e,r,h,o,{time:d.time+d.delay+d.duration,delay:0,duration:d.duration,ease:d.ease})}return new Nn(i,this._parents,e,r)}var tV=v(()=>{"use strict";oh();Xn();a(A3,"default")});function R3(){var e,t,r=this,i=r._id,n=r.size();return new Promise(function(s,o){var l={value:o},u={value:a(function(){--n===0&&s()},"value")};r.each(function(){var h=an(this,i),d=h.on;d!==e&&(t=(e=d).copy(),t._.cancel.push(l),t._.interrupt.push(l),t._.end.push(u)),h.on=t}),n===0&&s()})}var rV=v(()=>{"use strict";Xn();a(R3,"default")});function Nn(e,t,r,i){this._groups=e,this._parents=t,this._name=r,this._id=i}function iV(e){return cl().transition(e)}function Ob(){return++kwe}var kwe,fl,oh=v(()=>{"use strict";ws();B9();$9();F9();V9();G9();W9();z9();q9();j9();U9();H9();Y9();K9();Q9();Z9();J9();eV();tV();ty();rV();kwe=0;a(Nn,"Transition");a(iV,"transition");a(Ob,"newId");fl=cl.prototype;Nn.prototype=iV.prototype={constructor:Nn,select:k3,selectAll:C3,selectChild:fl.selectChild,selectChildren:fl.selectChildren,filter:y3,merge:x3,selection:v3,transition:A3,call:fl.call,nodes:fl.nodes,node:fl.node,size:fl.size,empty:fl.empty,each:fl.each,on:b3,attr:h3,attrTween:d3,style:S3,styleTween:_3,text:w3,textTween:E3,remove:T3,tween:c3,delay:f3,duration:p3,ease:m3,easeVarying:g3,end:R3,[Symbol.iterator]:fl[Symbol.iterator]}});function Pb(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var nV=v(()=>{"use strict";a(Pb,"cubicInOut")});var L3=v(()=>{"use strict";nV()});function vwe(e,t){for(var r;!(r=e.__transition)||!(r=r[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`);return r}function D3(e){var t,r;e instanceof Nn?(t=e._id,e=e._name):(t=Ob(),(r=Cwe).time=Xg(),e=e==null?null:e+"");for(var i=this._groups,n=i.length,s=0;s<n;++s)for(var o=i[s],l=o.length,u,h=0;h<l;++h)(u=o[h])&&dl(u,e,t,h,o,r||vwe(u,t));return new Nn(i,this._parents,e,t)}var Cwe,aV=v(()=>{"use strict";oh();Xn();L3();Db();Cwe={time:null,delay:0,duration:250,ease:Pb};a(vwe,"inherit");a(D3,"default")});var sV=v(()=>{"use strict";ws();P9();aV();cl.prototype.interrupt=l3;cl.prototype.transition=D3});var Bb=v(()=>{"use strict";sV()});var oV=v(()=>{"use strict"});var lV=v(()=>{"use strict"});var cV=v(()=>{"use strict"});function uV(e){return[+e[0],+e[1]]}function Swe(e){return[uV(e[0]),uV(e[1])]}function I3(e){return{type:e}}var wbt,Ebt,Abt,Rbt,Lbt,Dbt,hV=v(()=>{"use strict";Bb();oV();lV();cV();({abs:wbt,max:Ebt,min:Abt}=Math);a(uV,"number1");a(Swe,"number2");Rbt={name:"x",handles:["w","e"].map(I3),input:a(function(e,t){return e==null?null:[[+e[0],t[0][1]],[+e[1],t[1][1]]]},"input"),output:a(function(e){return e&&[e[0][0],e[1][0]]},"output")},Lbt={name:"y",handles:["n","s"].map(I3),input:a(function(e,t){return e==null?null:[[t[0][0],+e[0]],[t[1][0],+e[1]]]},"input"),output:a(function(e){return e&&[e[0][1],e[1][1]]},"output")},Dbt={name:"xy",handles:["n","w","e","s","nw","ne","sw","se"].map(I3),input:a(function(e){return e==null?null:Swe(e)},"input"),output:a(function(e){return e},"output")};a(I3,"type")});var dV=v(()=>{"use strict";hV()});function fV(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}function wwe(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return fV;let r=10**t;return function(i){this._+=i[0];for(let n=1,s=i.length;n<s;++n)this._+=Math.round(arguments[n]*r)/r+i[n]}}function pV(){return new ch}var N3,M3,lh,_we,ch,mV=v(()=>{"use strict";N3=Math.PI,M3=2*N3,lh=1e-6,_we=M3-lh;a(fV,"append");a(wwe,"appendRound");ch=class{static{a(this,"Path")}constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?fV:wwe(t)}moveTo(t,r){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,r){this._append`L${this._x1=+t},${this._y1=+r}`}quadraticCurveTo(t,r,i,n){this._append`Q${+t},${+r},${this._x1=+i},${this._y1=+n}`}bezierCurveTo(t,r,i,n,s,o){this._append`C${+t},${+r},${+i},${+n},${this._x1=+s},${this._y1=+o}`}arcTo(t,r,i,n,s){if(t=+t,r=+r,i=+i,n=+n,s=+s,s<0)throw new Error(`negative radius: ${s}`);let o=this._x1,l=this._y1,u=i-t,h=n-r,d=o-t,f=l-r,p=d*d+f*f;if(this._x1===null)this._append`M${this._x1=t},${this._y1=r}`;else if(p>lh)if(!(Math.abs(f*u-h*d)>lh)||!s)this._append`L${this._x1=t},${this._y1=r}`;else{let m=i-o,g=n-l,x=u*u+h*h,b=m*m+g*g,T=Math.sqrt(x),k=Math.sqrt(p),C=s*Math.tan((N3-Math.acos((x+p-b)/(2*T*k)))/2),S=C/k,w=C/T;Math.abs(S-1)>lh&&this._append`L${t+S*d},${r+S*f}`,this._append`A${s},${s},0,0,${+(f*m>d*g)},${this._x1=t+w*u},${this._y1=r+w*h}`}}arc(t,r,i,n,s,o){if(t=+t,r=+r,i=+i,o=!!o,i<0)throw new Error(`negative radius: ${i}`);let l=i*Math.cos(n),u=i*Math.sin(n),h=t+l,d=r+u,f=1^o,p=o?n-s:s-n;this._x1===null?this._append`M${h},${d}`:(Math.abs(this._x1-h)>lh||Math.abs(this._y1-d)>lh)&&this._append`L${h},${d}`,i&&(p<0&&(p=p%M3+M3),p>_we?this._append`A${i},${i},0,1,${f},${t-l},${r-u}A${i},${i},0,1,${f},${this._x1=h},${this._y1=d}`:p>lh&&this._append`A${i},${i},0,${+(p>=N3)},${f},${this._x1=t+i*Math.cos(s)},${this._y1=r+i*Math.sin(s)}`)}rect(t,r,i,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}h${i=+i}v${+n}h${-i}Z`}toString(){return this._}};a(pV,"path");pV.prototype=ch.prototype});var O3=v(()=>{"use strict";mV()});var gV=v(()=>{"use strict"});var yV=v(()=>{"use strict"});var xV=v(()=>{"use strict"});var bV=v(()=>{"use strict"});var TV=v(()=>{"use strict"});var kV=v(()=>{"use strict"});var CV=v(()=>{"use strict"});function P3(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function uh(e,t){if((r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var r,i=e.slice(0,r);return[i.length>1?i[0]+i.slice(2):i,+e.slice(r+1)]}var iy=v(()=>{"use strict";a(P3,"default");a(uh,"formatDecimalParts")});function Rs(e){return e=uh(Math.abs(e)),e?e[1]:NaN}var ny=v(()=>{"use strict";iy();a(Rs,"default")});function B3(e,t){return function(r,i){for(var n=r.length,s=[],o=0,l=e[0],u=0;n>0&&l>0&&(u+l+1>i&&(l=Math.max(1,i-u)),s.push(r.substring(n-=l,n+l)),!((u+=l+1)>i));)l=e[o=(o+1)%e.length];return s.reverse().join(t)}}var vV=v(()=>{"use strict";a(B3,"default")});function $3(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var SV=v(()=>{"use strict";a($3,"default")});function vc(e){if(!(t=Ewe.exec(e)))throw new Error("invalid format: "+e);var t;return new $b({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function $b(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}var Ewe,F3=v(()=>{"use strict";Ewe=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;a(vc,"formatSpecifier");vc.prototype=$b.prototype;a($b,"FormatSpecifier");$b.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type}});function V3(e){e:for(var t=e.length,r=1,i=-1,n;r<t;++r)switch(e[r]){case".":i=n=r;break;case"0":i===0&&(i=r),n=r;break;default:if(!+e[r])break e;i>0&&(i=0);break}return i>0?e.slice(0,i)+e.slice(n+1):e}var _V=v(()=>{"use strict";a(V3,"default")});function W3(e,t){var r=uh(e,t);if(!r)return e+"";var i=r[0],n=r[1],s=n-(G3=Math.max(-8,Math.min(8,Math.floor(n/3)))*3)+1,o=i.length;return s===o?i:s>o?i+new Array(s-o+1).join("0"):s>0?i.slice(0,s)+"."+i.slice(s):"0."+new Array(1-s).join("0")+uh(e,Math.max(0,t+s-1))[0]}var G3,z3=v(()=>{"use strict";iy();a(W3,"default")});function Fb(e,t){var r=uh(e,t);if(!r)return e+"";var i=r[0],n=r[1];return n<0?"0."+new Array(-n).join("0")+i:i.length>n+1?i.slice(0,n+1)+"."+i.slice(n+1):i+new Array(n-i.length+2).join("0")}var wV=v(()=>{"use strict";iy();a(Fb,"default")});var q3,EV=v(()=>{"use strict";iy();z3();wV();q3={"%":a((e,t)=>(e*100).toFixed(t),"%"),b:a(e=>Math.round(e).toString(2),"b"),c:a(e=>e+"","c"),d:P3,e:a((e,t)=>e.toExponential(t),"e"),f:a((e,t)=>e.toFixed(t),"f"),g:a((e,t)=>e.toPrecision(t),"g"),o:a(e=>Math.round(e).toString(8),"o"),p:a((e,t)=>Fb(e*100,t),"p"),r:Fb,s:W3,X:a(e=>Math.round(e).toString(16).toUpperCase(),"X"),x:a(e=>Math.round(e).toString(16),"x")}});function Vb(e){return e}var AV=v(()=>{"use strict";a(Vb,"default")});function j3(e){var t=e.grouping===void 0||e.thousands===void 0?Vb:B3(RV.call(e.grouping,Number),e.thousands+""),r=e.currency===void 0?"":e.currency[0]+"",i=e.currency===void 0?"":e.currency[1]+"",n=e.decimal===void 0?".":e.decimal+"",s=e.numerals===void 0?Vb:$3(RV.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",l=e.minus===void 0?"\u2212":e.minus+"",u=e.nan===void 0?"NaN":e.nan+"";function h(f){f=vc(f);var p=f.fill,m=f.align,g=f.sign,x=f.symbol,b=f.zero,T=f.width,k=f.comma,C=f.precision,S=f.trim,w=f.type;w==="n"?(k=!0,w="g"):q3[w]||(C===void 0&&(C=12),S=!0,w="g"),(b||p==="0"&&m==="=")&&(b=!0,p="0",m="=");var _=x==="$"?r:x==="#"&&/[boxX]/.test(w)?"0"+w.toLowerCase():"",L=x==="$"?i:/[%p]/.test(w)?o:"",I=q3[w],B=/[defgprs%]/.test(w);C=C===void 0?6:/[gprs]/.test(w)?Math.max(1,Math.min(21,C)):Math.max(0,Math.min(20,C));function G(P){var F=_,A=L,D,R,N;if(w==="c")A=I(P)+A,P="";else{P=+P;var $=P<0||1/P<0;if(P=isNaN(P)?u:I(Math.abs(P),C),S&&(P=V3(P)),$&&+P==0&&g!=="+"&&($=!1),F=($?g==="("?g:l:g==="-"||g==="("?"":g)+F,A=(w==="s"?LV[8+G3/3]:"")+A+($&&g==="("?")":""),B){for(D=-1,R=P.length;++D<R;)if(N=P.charCodeAt(D),48>N||N>57){A=(N===46?n+P.slice(D+1):P.slice(D))+A,P=P.slice(0,D);break}}}k&&!b&&(P=t(P,1/0));var E=F.length+P.length+A.length,M=E<T?new Array(T-E+1).join(p):"";switch(k&&b&&(P=t(M+P,M.length?T-A.length:1/0),M=""),m){case"<":P=F+P+A+M;break;case"=":P=F+M+P+A;break;case"^":P=M.slice(0,E=M.length>>1)+F+P+A+M.slice(E);break;default:P=M+F+P+A;break}return s(P)}return a(G,"format"),G.toString=function(){return f+""},G}a(h,"newFormat");function d(f,p){var m=h((f=vc(f),f.type="f",f)),g=Math.max(-8,Math.min(8,Math.floor(Rs(p)/3)))*3,x=Math.pow(10,-g),b=LV[8+g/3];return function(T){return m(x*T)+b}}return a(d,"formatPrefix"),{format:h,formatPrefix:d}}var RV,LV,DV=v(()=>{"use strict";ny();vV();SV();F3();_V();EV();z3();AV();RV=Array.prototype.map,LV=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];a(j3,"default")});function U3(e){return Gb=j3(e),go=Gb.format,Wb=Gb.formatPrefix,Gb}var Gb,go,Wb,IV=v(()=>{"use strict";DV();U3({thousands:",",grouping:[3],currency:["$",""]});a(U3,"defaultLocale")});function zb(e){return Math.max(0,-Rs(Math.abs(e)))}var NV=v(()=>{"use strict";ny();a(zb,"default")});function qb(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Rs(t)/3)))*3-Rs(Math.abs(e)))}var MV=v(()=>{"use strict";ny();a(qb,"default")});function jb(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Rs(t)-Rs(e))+1}var OV=v(()=>{"use strict";ny();a(jb,"default")});var H3=v(()=>{"use strict";IV();F3();NV();MV();OV()});var PV=v(()=>{"use strict"});function Awe(e){var t=0,r=e.children,i=r&&r.length;if(!i)t=1;else for(;--i>=0;)t+=r[i].value;e.value=t}function Y3(){return this.eachAfter(Awe)}var BV=v(()=>{"use strict";a(Awe,"count");a(Y3,"default")});function K3(e,t){let r=-1;for(let i of this)e.call(t,i,++r,this);return this}var $V=v(()=>{"use strict";a(K3,"default")});function X3(e,t){for(var r=this,i=[r],n,s,o=-1;r=i.pop();)if(e.call(t,r,++o,this),n=r.children)for(s=n.length-1;s>=0;--s)i.push(n[s]);return this}var FV=v(()=>{"use strict";a(X3,"default")});function Q3(e,t){for(var r=this,i=[r],n=[],s,o,l,u=-1;r=i.pop();)if(n.push(r),s=r.children)for(o=0,l=s.length;o<l;++o)i.push(s[o]);for(;r=n.pop();)e.call(t,r,++u,this);return this}var VV=v(()=>{"use strict";a(Q3,"default")});function Z3(e,t){let r=-1;for(let i of this)if(e.call(t,i,++r,this))return i}var GV=v(()=>{"use strict";a(Z3,"default")});function J3(e){return this.eachAfter(function(t){for(var r=+e(t.data)||0,i=t.children,n=i&&i.length;--n>=0;)r+=i[n].value;t.value=r})}var WV=v(()=>{"use strict";a(J3,"default")});function e4(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})}var zV=v(()=>{"use strict";a(e4,"default")});function t4(e){for(var t=this,r=Rwe(t,e),i=[t];t!==r;)t=t.parent,i.push(t);for(var n=i.length;e!==r;)i.splice(n,0,e),e=e.parent;return i}function Rwe(e,t){if(e===t)return e;var r=e.ancestors(),i=t.ancestors(),n=null;for(e=r.pop(),t=i.pop();e===t;)n=e,e=r.pop(),t=i.pop();return n}var qV=v(()=>{"use strict";a(t4,"default");a(Rwe,"leastCommonAncestor")});function r4(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t}var jV=v(()=>{"use strict";a(r4,"default")});function i4(){return Array.from(this)}var UV=v(()=>{"use strict";a(i4,"default")});function n4(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e}var HV=v(()=>{"use strict";a(n4,"default")});function a4(){var e=this,t=[];return e.each(function(r){r!==e&&t.push({source:r.parent,target:r})}),t}var YV=v(()=>{"use strict";a(a4,"default")});function*s4(){var e=this,t,r=[e],i,n,s;do for(t=r.reverse(),r=[];e=t.pop();)if(yield e,i=e.children)for(n=0,s=i.length;n<s;++n)r.push(i[n]);while(r.length)}var KV=v(()=>{"use strict";a(s4,"default")});function Wf(e,t){e instanceof Map?(e=[void 0,e],t===void 0&&(t=Iwe)):t===void 0&&(t=Dwe);for(var r=new ay(e),i,n=[r],s,o,l,u;i=n.pop();)if((o=t(i.data))&&(u=(o=Array.from(o)).length))for(i.children=o,l=u-1;l>=0;--l)n.push(s=o[l]=new ay(o[l])),s.parent=i,s.depth=i.depth+1;return r.eachBefore(Mwe)}function Lwe(){return Wf(this).eachBefore(Nwe)}function Dwe(e){return e.children}function Iwe(e){return Array.isArray(e)?e[1]:null}function Nwe(e){e.data.value!==void 0&&(e.value=e.data.value),e.data=e.data.data}function Mwe(e){var t=0;do e.height=t;while((e=e.parent)&&e.height<++t)}function ay(e){this.data=e,this.depth=this.height=0,this.parent=null}var XV=v(()=>{"use strict";BV();$V();FV();VV();GV();WV();zV();qV();jV();UV();HV();YV();KV();a(Wf,"hierarchy");a(Lwe,"node_copy");a(Dwe,"objectChildren");a(Iwe,"mapChildren");a(Nwe,"copyData");a(Mwe,"computeHeight");a(ay,"Node");ay.prototype=Wf.prototype={constructor:ay,count:Y3,each:K3,eachAfter:Q3,eachBefore:X3,find:Z3,sum:J3,sort:e4,path:t4,ancestors:r4,descendants:i4,leaves:n4,links:a4,copy:Lwe,[Symbol.iterator]:s4}});function QV(e){if(typeof e!="function")throw new Error;return e}var ZV=v(()=>{"use strict";a(QV,"required")});function zf(){return 0}function hh(e){return function(){return e}}var JV=v(()=>{"use strict";a(zf,"constantZero");a(hh,"default")});function o4(e){e.x0=Math.round(e.x0),e.y0=Math.round(e.y0),e.x1=Math.round(e.x1),e.y1=Math.round(e.y1)}var eG=v(()=>{"use strict";a(o4,"default")});function l4(e,t,r,i,n){for(var s=e.children,o,l=-1,u=s.length,h=e.value&&(i-t)/e.value;++l<u;)o=s[l],o.y0=r,o.y1=n,o.x0=t,o.x1=t+=o.value*h}var tG=v(()=>{"use strict";a(l4,"default")});function c4(e,t,r,i,n){for(var s=e.children,o,l=-1,u=s.length,h=e.value&&(n-r)/e.value;++l<u;)o=s[l],o.x0=t,o.x1=i,o.y0=r,o.y1=r+=o.value*h}var rG=v(()=>{"use strict";a(c4,"default")});function Pwe(e,t,r,i,n,s){for(var o=[],l=t.children,u,h,d=0,f=0,p=l.length,m,g,x=t.value,b,T,k,C,S,w,_;d<p;){m=n-r,g=s-i;do b=l[f++].value;while(!b&&f<p);for(T=k=b,w=Math.max(g/m,m/g)/(x*e),_=b*b*w,S=Math.max(k/_,_/T);f<p;++f){if(b+=h=l[f].value,h<T&&(T=h),h>k&&(k=h),_=b*b*w,C=Math.max(k/_,_/T),C>S){b-=h;break}S=C}o.push(u={value:b,dice:m<g,children:l.slice(d,f)}),u.dice?l4(u,r,i,n,x?i+=g*b/x:s):c4(u,r,i,x?r+=m*b/x:n,s),x-=b,d=f}return o}var Owe,iG,nG=v(()=>{"use strict";tG();rG();Owe=(1+Math.sqrt(5))/2;a(Pwe,"squarifyRatio");iG=a((function e(t){function r(i,n,s,o,l){Pwe(t,i,n,s,o,l)}return a(r,"squarify"),r.ratio=function(i){return e((i=+i)>1?i:1)},r}),"custom")(Owe)});function Ub(){var e=iG,t=!1,r=1,i=1,n=[0],s=zf,o=zf,l=zf,u=zf,h=zf;function d(p){return p.x0=p.y0=0,p.x1=r,p.y1=i,p.eachBefore(f),n=[0],t&&p.eachBefore(o4),p}a(d,"treemap");function f(p){var m=n[p.depth],g=p.x0+m,x=p.y0+m,b=p.x1-m,T=p.y1-m;b<g&&(g=b=(g+b)/2),T<x&&(x=T=(x+T)/2),p.x0=g,p.y0=x,p.x1=b,p.y1=T,p.children&&(m=n[p.depth+1]=s(p)/2,g+=h(p)-m,x+=o(p)-m,b-=l(p)-m,T-=u(p)-m,b<g&&(g=b=(g+b)/2),T<x&&(x=T=(x+T)/2),e(p,g,x,b,T))}return a(f,"positionNode"),d.round=function(p){return arguments.length?(t=!!p,d):t},d.size=function(p){return arguments.length?(r=+p[0],i=+p[1],d):[r,i]},d.tile=function(p){return arguments.length?(e=QV(p),d):e},d.padding=function(p){return arguments.length?d.paddingInner(p).paddingOuter(p):d.paddingInner()},d.paddingInner=function(p){return arguments.length?(s=typeof p=="function"?p:hh(+p),d):s},d.paddingOuter=function(p){return arguments.length?d.paddingTop(p).paddingRight(p).paddingBottom(p).paddingLeft(p):d.paddingTop()},d.paddingTop=function(p){return arguments.length?(o=typeof p=="function"?p:hh(+p),d):o},d.paddingRight=function(p){return arguments.length?(l=typeof p=="function"?p:hh(+p),d):l},d.paddingBottom=function(p){return arguments.length?(u=typeof p=="function"?p:hh(+p),d):u},d.paddingLeft=function(p){return arguments.length?(h=typeof p=="function"?p:hh(+p),d):h},d}var aG=v(()=>{"use strict";eG();nG();ZV();JV();a(Ub,"default")});var sG=v(()=>{"use strict";XV();aG()});var oG=v(()=>{"use strict"});var lG=v(()=>{"use strict"});function Sc(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}var sy=v(()=>{"use strict";a(Sc,"initRange")});function ka(){var e=new Af,t=[],r=[],i=u4;function n(s){let o=e.get(s);if(o===void 0){if(i!==u4)return i;e.set(s,o=t.push(s)-1)}return r[o%r.length]}return a(n,"scale"),n.domain=function(s){if(!arguments.length)return t.slice();t=[],e=new Af;for(let o of s)e.has(o)||e.set(o,t.push(o)-1);return n},n.range=function(s){return arguments.length?(r=Array.from(s),n):r.slice()},n.unknown=function(s){return arguments.length?(i=s,n):i},n.copy=function(){return ka(t,r).unknown(i)},Sc.apply(n,arguments),n}var u4,h4=v(()=>{"use strict";yc();sy();u4=Symbol("implicit");a(ka,"ordinal")});function qf(){var e=ka().unknown(void 0),t=e.domain,r=e.range,i=0,n=1,s,o,l=!1,u=0,h=0,d=.5;delete e.unknown;function f(){var p=t().length,m=n<i,g=m?n:i,x=m?i:n;s=(x-g)/Math.max(1,p-u+h*2),l&&(s=Math.floor(s)),g+=(x-g-s*(p-u))*d,o=s*(1-u),l&&(g=Math.round(g),o=Math.round(o));var b=cb(p).map(function(T){return g+s*T});return r(m?b.reverse():b)}return a(f,"rescale"),e.domain=function(p){return arguments.length?(t(p),f()):t()},e.range=function(p){return arguments.length?([i,n]=p,i=+i,n=+n,f()):[i,n]},e.rangeRound=function(p){return[i,n]=p,i=+i,n=+n,l=!0,f()},e.bandwidth=function(){return o},e.step=function(){return s},e.round=function(p){return arguments.length?(l=!!p,f()):l},e.padding=function(p){return arguments.length?(u=Math.min(1,h=+p),f()):u},e.paddingInner=function(p){return arguments.length?(u=Math.min(1,p),f()):u},e.paddingOuter=function(p){return arguments.length?(h=+p,f()):h},e.align=function(p){return arguments.length?(d=Math.max(0,Math.min(1,p)),f()):d},e.copy=function(){return qf(t(),[i,n]).round(l).paddingInner(u).paddingOuter(h).align(d)},Sc.apply(f(),arguments)}var cG=v(()=>{"use strict";yc();sy();h4();a(qf,"band")});function d4(e){return function(){return e}}var uG=v(()=>{"use strict";a(d4,"constants")});function f4(e){return+e}var hG=v(()=>{"use strict";a(f4,"number")});function jf(e){return e}function p4(e,t){return(t-=e=+e)?function(r){return(r-e)/t}:d4(isNaN(t)?NaN:.5)}function Bwe(e,t){var r;return e>t&&(r=e,e=t,t=r),function(i){return Math.max(e,Math.min(t,i))}}function $we(e,t,r){var i=e[0],n=e[1],s=t[0],o=t[1];return n<i?(i=p4(n,i),s=r(o,s)):(i=p4(i,n),s=r(s,o)),function(l){return s(i(l))}}function Fwe(e,t,r){var i=Math.min(e.length,t.length)-1,n=new Array(i),s=new Array(i),o=-1;for(e[i]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<i;)n[o]=p4(e[o],e[o+1]),s[o]=r(t[o],t[o+1]);return function(l){var u=OE(e,l,1,i)-1;return s[u](n[u](l))}}function Hb(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Vwe(){var e=dG,t=dG,r=Cc,i,n,s,o=jf,l,u,h;function d(){var p=Math.min(e.length,t.length);return o!==jf&&(o=Bwe(e[0],e[p-1])),l=p>2?Fwe:$we,u=h=null,f}a(d,"rescale");function f(p){return p==null||isNaN(p=+p)?s:(u||(u=l(e.map(i),t,r)))(i(o(p)))}return a(f,"scale"),f.invert=function(p){return o(n((h||(h=l(t,e.map(i),Hi)))(p)))},f.domain=function(p){return arguments.length?(e=Array.from(p,f4),d()):e.slice()},f.range=function(p){return arguments.length?(t=Array.from(p),d()):t.slice()},f.rangeRound=function(p){return t=Array.from(p),r=vb,d()},f.clamp=function(p){return arguments.length?(o=p?!0:jf,d()):o!==jf},f.interpolate=function(p){return arguments.length?(r=p,d()):r},f.unknown=function(p){return arguments.length?(s=p,f):s},function(p,m){return i=p,n=m,d()}}function oy(){return Vwe()(jf,jf)}var dG,m4=v(()=>{"use strict";yc();Ff();uG();hG();dG=[0,1];a(jf,"identity");a(p4,"normalize");a(Bwe,"clamper");a($we,"bimap");a(Fwe,"polymap");a(Hb,"copy");a(Vwe,"transformer");a(oy,"continuous")});function g4(e,t,r,i){var n=Rf(e,t,r),s;switch(i=vc(i??",f"),i.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return i.precision==null&&!isNaN(s=qb(n,o))&&(i.precision=s),Wb(i,o)}case"":case"e":case"g":case"p":case"r":{i.precision==null&&!isNaN(s=jb(n,Math.max(Math.abs(e),Math.abs(t))))&&(i.precision=s-(i.type==="e"));break}case"f":case"%":{i.precision==null&&!isNaN(s=zb(n))&&(i.precision=s-(i.type==="%")*2);break}}return go(i)}var fG=v(()=>{"use strict";yc();H3();a(g4,"tickFormat")});function Gwe(e){var t=e.domain;return e.ticks=function(r){var i=t();return sb(i[0],i[i.length-1],r??10)},e.tickFormat=function(r,i){var n=t();return g4(n[0],n[n.length-1],r??10,i)},e.nice=function(r){r==null&&(r=10);var i=t(),n=0,s=i.length-1,o=i[n],l=i[s],u,h,d=10;for(l<o&&(h=o,o=l,l=h,h=n,n=s,s=h);d-- >0;){if(h=Og(o,l,r),h===u)return i[n]=o,i[s]=l,t(i);if(h>0)o=Math.floor(o/h)*h,l=Math.ceil(l/h)*h;else if(h<0)o=Math.ceil(o*h)/h,l=Math.floor(l*h)/h;else break;u=h}return e},e}function Ls(){var e=oy();return e.copy=function(){return Hb(e,Ls())},Sc.apply(e,arguments),Gwe(e)}var pG=v(()=>{"use strict";yc();m4();sy();fG();a(Gwe,"linearish");a(Ls,"linear")});function y4(e,t){e=e.slice();var r=0,i=e.length-1,n=e[r],s=e[i],o;return s<n&&(o=r,r=i,i=o,o=n,n=s,s=o),e[r]=t.floor(n),e[i]=t.ceil(s),e}var mG=v(()=>{"use strict";a(y4,"nice")});function Fr(e,t,r,i){function n(s){return e(s=arguments.length===0?new Date:new Date(+s)),s}return a(n,"interval"),n.floor=s=>(e(s=new Date(+s)),s),n.ceil=s=>(e(s=new Date(s-1)),t(s,1),e(s),s),n.round=s=>{let o=n(s),l=n.ceil(s);return s-o<l-s?o:l},n.offset=(s,o)=>(t(s=new Date(+s),o==null?1:Math.floor(o)),s),n.range=(s,o,l)=>{let u=[];if(s=n.ceil(s),l=l==null?1:Math.floor(l),!(s<o)||!(l>0))return u;let h;do u.push(h=new Date(+s)),t(s,l),e(s);while(h<s&&s<o);return u},n.filter=s=>Fr(o=>{if(o>=o)for(;e(o),!s(o);)o.setTime(o-1)},(o,l)=>{if(o>=o)if(l<0)for(;++l<=0;)for(;t(o,-1),!s(o););else for(;--l>=0;)for(;t(o,1),!s(o););}),r&&(n.count=(s,o)=>(x4.setTime(+s),b4.setTime(+o),e(x4),e(b4),Math.floor(r(x4,b4))),n.every=s=>(s=Math.floor(s),!isFinite(s)||!(s>0)?null:s>1?n.filter(i?o=>i(o)%s===0:o=>n.count(0,o)%s===0):n)),n}var x4,b4,pl=v(()=>{"use strict";x4=new Date,b4=new Date;a(Fr,"timeInterval")});var yo,gG,T4=v(()=>{"use strict";pl();yo=Fr(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);yo.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Fr(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):yo);gG=yo.range});var Ca,yG,k4=v(()=>{"use strict";pl();Ca=Fr(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*1e3)},(e,t)=>(t-e)/1e3,e=>e.getUTCSeconds()),yG=Ca.range});var ml,Wwe,Yb,zwe,C4=v(()=>{"use strict";pl();ml=Fr(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*1e3)},(e,t)=>{e.setTime(+e+t*6e4)},(e,t)=>(t-e)/6e4,e=>e.getMinutes()),Wwe=ml.range,Yb=Fr(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*6e4)},(e,t)=>(t-e)/6e4,e=>e.getUTCMinutes()),zwe=Yb.range});var gl,qwe,Kb,jwe,v4=v(()=>{"use strict";pl();gl=Fr(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*1e3-e.getMinutes()*6e4)},(e,t)=>{e.setTime(+e+t*36e5)},(e,t)=>(t-e)/36e5,e=>e.getHours()),qwe=gl.range,Kb=Fr(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*36e5)},(e,t)=>(t-e)/36e5,e=>e.getUTCHours()),jwe=Kb.range});var Ka,Uwe,cy,Hwe,Xb,Ywe,S4=v(()=>{"use strict";pl();Ka=Fr(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*6e4)/864e5,e=>e.getDate()-1),Uwe=Ka.range,cy=Fr(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/864e5,e=>e.getUTCDate()-1),Hwe=cy.range,Xb=Fr(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/864e5,e=>Math.floor(e/864e5)),Ywe=Xb.range});function ph(e){return Fr(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,r)=>{t.setDate(t.getDate()+r*7)},(t,r)=>(r-t-(r.getTimezoneOffset()-t.getTimezoneOffset())*6e4)/6048e5)}function mh(e){return Fr(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCDate(t.getUTCDate()+r*7)},(t,r)=>(r-t)/6048e5)}var Ds,_c,Qb,Zb,bo,Jb,e2,bG,Kwe,Xwe,Qwe,Zwe,Jwe,eEe,gh,Uf,TG,kG,wc,CG,vG,SG,tEe,rEe,iEe,nEe,aEe,sEe,_4=v(()=>{"use strict";pl();a(ph,"timeWeekday");Ds=ph(0),_c=ph(1),Qb=ph(2),Zb=ph(3),bo=ph(4),Jb=ph(5),e2=ph(6),bG=Ds.range,Kwe=_c.range,Xwe=Qb.range,Qwe=Zb.range,Zwe=bo.range,Jwe=Jb.range,eEe=e2.range;a(mh,"utcWeekday");gh=mh(0),Uf=mh(1),TG=mh(2),kG=mh(3),wc=mh(4),CG=mh(5),vG=mh(6),SG=gh.range,tEe=Uf.range,rEe=TG.range,iEe=kG.range,nEe=wc.range,aEe=CG.range,sEe=vG.range});var yl,oEe,t2,lEe,w4=v(()=>{"use strict";pl();yl=Fr(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth()),oEe=yl.range,t2=Fr(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth()),lEe=t2.range});var va,cEe,Is,uEe,E4=v(()=>{"use strict";pl();va=Fr(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());va.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Fr(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,r)=>{t.setFullYear(t.getFullYear()+r*e)});cEe=va.range,Is=Fr(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());Is.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Fr(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCFullYear(t.getUTCFullYear()+r*e)});uEe=Is.range});function wG(e,t,r,i,n,s){let o=[[Ca,1,1e3],[Ca,5,5*1e3],[Ca,15,15*1e3],[Ca,30,30*1e3],[s,1,6e4],[s,5,5*6e4],[s,15,15*6e4],[s,30,30*6e4],[n,1,36e5],[n,3,3*36e5],[n,6,6*36e5],[n,12,12*36e5],[i,1,864e5],[i,2,2*864e5],[r,1,6048e5],[t,1,2592e6],[t,3,3*2592e6],[e,1,31536e6]];function l(h,d,f){let p=d<h;p&&([h,d]=[d,h]);let m=f&&typeof f.range=="function"?f:u(h,d,f),g=m?m.range(h,+d+1):[];return p?g.reverse():g}a(l,"ticks");function u(h,d,f){let p=Math.abs(d-h)/f,m=rh(([,,b])=>b).right(o,p);if(m===o.length)return e.every(Rf(h/31536e6,d/31536e6,f));if(m===0)return yo.every(Math.max(Rf(h,d,f),1));let[g,x]=o[p/o[m-1][2]<o[m][2]/p?m-1:m];return g.every(x)}return a(u,"tickInterval"),[l,u]}var dEe,fEe,A4,R4,EG=v(()=>{"use strict";yc();T4();k4();C4();v4();S4();_4();w4();E4();a(wG,"ticker");[dEe,fEe]=wG(Is,t2,gh,Xb,Kb,Yb),[A4,R4]=wG(va,yl,Ds,Ka,gl,ml)});var r2=v(()=>{"use strict";T4();k4();C4();v4();S4();_4();w4();E4();EG()});function L4(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function D4(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function uy(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function I4(e){var t=e.dateTime,r=e.date,i=e.time,n=e.periods,s=e.days,o=e.shortDays,l=e.months,u=e.shortMonths,h=hy(n),d=dy(n),f=hy(s),p=dy(s),m=hy(o),g=dy(o),x=hy(l),b=dy(l),T=hy(u),k=dy(u),C={a:$,A:E,b:M,B:V,c:null,d:NG,e:NG,f:PEe,g:UEe,G:YEe,H:NEe,I:MEe,j:OEe,L:$G,m:BEe,M:$Ee,p:O,q:z,Q:PG,s:BG,S:FEe,u:VEe,U:GEe,V:WEe,w:zEe,W:qEe,x:null,X:null,y:jEe,Y:HEe,Z:KEe,"%":OG},S={a:U,A:K,b:j,B:ae,c:null,d:MG,e:MG,f:JEe,g:cAe,G:hAe,H:XEe,I:QEe,j:ZEe,L:VG,m:eAe,M:tAe,p:X,q:de,Q:PG,s:BG,S:rAe,u:iAe,U:nAe,V:aAe,w:sAe,W:oAe,x:null,X:null,y:lAe,Y:uAe,Z:dAe,"%":OG},w={a:G,A:P,b:F,B:A,c:D,d:DG,e:DG,f:REe,g:LG,G:RG,H:IG,I:IG,j:_Ee,L:AEe,m:SEe,M:wEe,p:B,q:vEe,Q:DEe,s:IEe,S:EEe,u:xEe,U:bEe,V:TEe,w:yEe,W:kEe,x:R,X:N,y:LG,Y:RG,Z:CEe,"%":LEe};C.x=_(r,C),C.X=_(i,C),C.c=_(t,C),S.x=_(r,S),S.X=_(i,S),S.c=_(t,S);function _(le,ge){return function(he){var te=[],Le=-1,xe=0,ye=le.length,be,Ce,Oe;for(he instanceof Date||(he=new Date(+he));++Le<ye;)le.charCodeAt(Le)===37&&(te.push(le.slice(xe,Le)),(Ce=AG[be=le.charAt(++Le)])!=null?be=le.charAt(++Le):Ce=be==="e"?" ":"0",(Oe=ge[be])&&(be=Oe(he,Ce)),te.push(be),xe=Le+1);return te.push(le.slice(xe,Le)),te.join("")}}a(_,"newFormat");function L(le,ge){return function(he){var te=uy(1900,void 0,1),Le=I(te,le,he+="",0),xe,ye;if(Le!=he.length)return null;if("Q"in te)return new Date(te.Q);if("s"in te)return new Date(te.s*1e3+("L"in te?te.L:0));if(ge&&!("Z"in te)&&(te.Z=0),"p"in te&&(te.H=te.H%12+te.p*12),te.m===void 0&&(te.m="q"in te?te.q:0),"V"in te){if(te.V<1||te.V>53)return null;"w"in te||(te.w=1),"Z"in te?(xe=D4(uy(te.y,0,1)),ye=xe.getUTCDay(),xe=ye>4||ye===0?Uf.ceil(xe):Uf(xe),xe=cy.offset(xe,(te.V-1)*7),te.y=xe.getUTCFullYear(),te.m=xe.getUTCMonth(),te.d=xe.getUTCDate()+(te.w+6)%7):(xe=L4(uy(te.y,0,1)),ye=xe.getDay(),xe=ye>4||ye===0?_c.ceil(xe):_c(xe),xe=Ka.offset(xe,(te.V-1)*7),te.y=xe.getFullYear(),te.m=xe.getMonth(),te.d=xe.getDate()+(te.w+6)%7)}else("W"in te||"U"in te)&&("w"in te||(te.w="u"in te?te.u%7:"W"in te?1:0),ye="Z"in te?D4(uy(te.y,0,1)).getUTCDay():L4(uy(te.y,0,1)).getDay(),te.m=0,te.d="W"in te?(te.w+6)%7+te.W*7-(ye+5)%7:te.w+te.U*7-(ye+6)%7);return"Z"in te?(te.H+=te.Z/100|0,te.M+=te.Z%100,D4(te)):L4(te)}}a(L,"newParse");function I(le,ge,he,te){for(var Le=0,xe=ge.length,ye=he.length,be,Ce;Le<xe;){if(te>=ye)return-1;if(be=ge.charCodeAt(Le++),be===37){if(be=ge.charAt(Le++),Ce=w[be in AG?ge.charAt(Le++):be],!Ce||(te=Ce(le,he,te))<0)return-1}else if(be!=he.charCodeAt(te++))return-1}return te}a(I,"parseSpecifier");function B(le,ge,he){var te=h.exec(ge.slice(he));return te?(le.p=d.get(te[0].toLowerCase()),he+te[0].length):-1}a(B,"parsePeriod");function G(le,ge,he){var te=m.exec(ge.slice(he));return te?(le.w=g.get(te[0].toLowerCase()),he+te[0].length):-1}a(G,"parseShortWeekday");function P(le,ge,he){var te=f.exec(ge.slice(he));return te?(le.w=p.get(te[0].toLowerCase()),he+te[0].length):-1}a(P,"parseWeekday");function F(le,ge,he){var te=T.exec(ge.slice(he));return te?(le.m=k.get(te[0].toLowerCase()),he+te[0].length):-1}a(F,"parseShortMonth");function A(le,ge,he){var te=x.exec(ge.slice(he));return te?(le.m=b.get(te[0].toLowerCase()),he+te[0].length):-1}a(A,"parseMonth");function D(le,ge,he){return I(le,t,ge,he)}a(D,"parseLocaleDateTime");function R(le,ge,he){return I(le,r,ge,he)}a(R,"parseLocaleDate");function N(le,ge,he){return I(le,i,ge,he)}a(N,"parseLocaleTime");function $(le){return o[le.getDay()]}a($,"formatShortWeekday");function E(le){return s[le.getDay()]}a(E,"formatWeekday");function M(le){return u[le.getMonth()]}a(M,"formatShortMonth");function V(le){return l[le.getMonth()]}a(V,"formatMonth");function O(le){return n[+(le.getHours()>=12)]}a(O,"formatPeriod");function z(le){return 1+~~(le.getMonth()/3)}a(z,"formatQuarter");function U(le){return o[le.getUTCDay()]}a(U,"formatUTCShortWeekday");function K(le){return s[le.getUTCDay()]}a(K,"formatUTCWeekday");function j(le){return u[le.getUTCMonth()]}a(j,"formatUTCShortMonth");function ae(le){return l[le.getUTCMonth()]}a(ae,"formatUTCMonth");function X(le){return n[+(le.getUTCHours()>=12)]}a(X,"formatUTCPeriod");function de(le){return 1+~~(le.getUTCMonth()/3)}return a(de,"formatUTCQuarter"),{format:a(function(le){var ge=_(le+="",C);return ge.toString=function(){return le},ge},"format"),parse:a(function(le){var ge=L(le+="",!1);return ge.toString=function(){return le},ge},"parse"),utcFormat:a(function(le){var ge=_(le+="",S);return ge.toString=function(){return le},ge},"utcFormat"),utcParse:a(function(le){var ge=L(le+="",!0);return ge.toString=function(){return le},ge},"utcParse")}}function Cr(e,t,r){var i=e<0?"-":"",n=(i?-e:e)+"",s=n.length;return i+(s<r?new Array(r-s+1).join(t)+n:n)}function gEe(e){return e.replace(mEe,"\\$&")}function hy(e){return new RegExp("^(?:"+e.map(gEe).join("|")+")","i")}function dy(e){return new Map(e.map((t,r)=>[t.toLowerCase(),r]))}function yEe(e,t,r){var i=Yi.exec(t.slice(r,r+1));return i?(e.w=+i[0],r+i[0].length):-1}function xEe(e,t,r){var i=Yi.exec(t.slice(r,r+1));return i?(e.u=+i[0],r+i[0].length):-1}function bEe(e,t,r){var i=Yi.exec(t.slice(r,r+2));return i?(e.U=+i[0],r+i[0].length):-1}function TEe(e,t,r){var i=Yi.exec(t.slice(r,r+2));return i?(e.V=+i[0],r+i[0].length):-1}function kEe(e,t,r){var i=Yi.exec(t.slice(r,r+2));return i?(e.W=+i[0],r+i[0].length):-1}function RG(e,t,r){var i=Yi.exec(t.slice(r,r+4));return i?(e.y=+i[0],r+i[0].length):-1}function LG(e,t,r){var i=Yi.exec(t.slice(r,r+2));return i?(e.y=+i[0]+(+i[0]>68?1900:2e3),r+i[0].length):-1}function CEe(e,t,r){var i=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return i?(e.Z=i[1]?0:-(i[2]+(i[3]||"00")),r+i[0].length):-1}function vEe(e,t,r){var i=Yi.exec(t.slice(r,r+1));return i?(e.q=i[0]*3-3,r+i[0].length):-1}function SEe(e,t,r){var i=Yi.exec(t.slice(r,r+2));return i?(e.m=i[0]-1,r+i[0].length):-1}function DG(e,t,r){var i=Yi.exec(t.slice(r,r+2));return i?(e.d=+i[0],r+i[0].length):-1}function _Ee(e,t,r){var i=Yi.exec(t.slice(r,r+3));return i?(e.m=0,e.d=+i[0],r+i[0].length):-1}function IG(e,t,r){var i=Yi.exec(t.slice(r,r+2));return i?(e.H=+i[0],r+i[0].length):-1}function wEe(e,t,r){var i=Yi.exec(t.slice(r,r+2));return i?(e.M=+i[0],r+i[0].length):-1}function EEe(e,t,r){var i=Yi.exec(t.slice(r,r+2));return i?(e.S=+i[0],r+i[0].length):-1}function AEe(e,t,r){var i=Yi.exec(t.slice(r,r+3));return i?(e.L=+i[0],r+i[0].length):-1}function REe(e,t,r){var i=Yi.exec(t.slice(r,r+6));return i?(e.L=Math.floor(i[0]/1e3),r+i[0].length):-1}function LEe(e,t,r){var i=pEe.exec(t.slice(r,r+1));return i?r+i[0].length:-1}function DEe(e,t,r){var i=Yi.exec(t.slice(r));return i?(e.Q=+i[0],r+i[0].length):-1}function IEe(e,t,r){var i=Yi.exec(t.slice(r));return i?(e.s=+i[0],r+i[0].length):-1}function NG(e,t){return Cr(e.getDate(),t,2)}function NEe(e,t){return Cr(e.getHours(),t,2)}function MEe(e,t){return Cr(e.getHours()%12||12,t,2)}function OEe(e,t){return Cr(1+Ka.count(va(e),e),t,3)}function $G(e,t){return Cr(e.getMilliseconds(),t,3)}function PEe(e,t){return $G(e,t)+"000"}function BEe(e,t){return Cr(e.getMonth()+1,t,2)}function $Ee(e,t){return Cr(e.getMinutes(),t,2)}function FEe(e,t){return Cr(e.getSeconds(),t,2)}function VEe(e){var t=e.getDay();return t===0?7:t}function GEe(e,t){return Cr(Ds.count(va(e)-1,e),t,2)}function FG(e){var t=e.getDay();return t>=4||t===0?bo(e):bo.ceil(e)}function WEe(e,t){return e=FG(e),Cr(bo.count(va(e),e)+(va(e).getDay()===4),t,2)}function zEe(e){return e.getDay()}function qEe(e,t){return Cr(_c.count(va(e)-1,e),t,2)}function jEe(e,t){return Cr(e.getFullYear()%100,t,2)}function UEe(e,t){return e=FG(e),Cr(e.getFullYear()%100,t,2)}function HEe(e,t){return Cr(e.getFullYear()%1e4,t,4)}function YEe(e,t){var r=e.getDay();return e=r>=4||r===0?bo(e):bo.ceil(e),Cr(e.getFullYear()%1e4,t,4)}function KEe(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Cr(t/60|0,"0",2)+Cr(t%60,"0",2)}function MG(e,t){return Cr(e.getUTCDate(),t,2)}function XEe(e,t){return Cr(e.getUTCHours(),t,2)}function QEe(e,t){return Cr(e.getUTCHours()%12||12,t,2)}function ZEe(e,t){return Cr(1+cy.count(Is(e),e),t,3)}function VG(e,t){return Cr(e.getUTCMilliseconds(),t,3)}function JEe(e,t){return VG(e,t)+"000"}function eAe(e,t){return Cr(e.getUTCMonth()+1,t,2)}function tAe(e,t){return Cr(e.getUTCMinutes(),t,2)}function rAe(e,t){return Cr(e.getUTCSeconds(),t,2)}function iAe(e){var t=e.getUTCDay();return t===0?7:t}function nAe(e,t){return Cr(gh.count(Is(e)-1,e),t,2)}function GG(e){var t=e.getUTCDay();return t>=4||t===0?wc(e):wc.ceil(e)}function aAe(e,t){return e=GG(e),Cr(wc.count(Is(e),e)+(Is(e).getUTCDay()===4),t,2)}function sAe(e){return e.getUTCDay()}function oAe(e,t){return Cr(Uf.count(Is(e)-1,e),t,2)}function lAe(e,t){return Cr(e.getUTCFullYear()%100,t,2)}function cAe(e,t){return e=GG(e),Cr(e.getUTCFullYear()%100,t,2)}function uAe(e,t){return Cr(e.getUTCFullYear()%1e4,t,4)}function hAe(e,t){var r=e.getUTCDay();return e=r>=4||r===0?wc(e):wc.ceil(e),Cr(e.getUTCFullYear()%1e4,t,4)}function dAe(){return"+0000"}function OG(){return"%"}function PG(e){return+e}function BG(e){return Math.floor(+e/1e3)}var AG,Yi,pEe,mEe,WG=v(()=>{"use strict";r2();a(L4,"localDate");a(D4,"utcDate");a(uy,"newDate");a(I4,"formatLocale");AG={"-":"",_:" ",0:"0"},Yi=/^\s*\d+/,pEe=/^%/,mEe=/[\\^$*+?|[\]().{}]/g;a(Cr,"pad");a(gEe,"requote");a(hy,"formatRe");a(dy,"formatLookup");a(yEe,"parseWeekdayNumberSunday");a(xEe,"parseWeekdayNumberMonday");a(bEe,"parseWeekNumberSunday");a(TEe,"parseWeekNumberISO");a(kEe,"parseWeekNumberMonday");a(RG,"parseFullYear");a(LG,"parseYear");a(CEe,"parseZone");a(vEe,"parseQuarter");a(SEe,"parseMonthNumber");a(DG,"parseDayOfMonth");a(_Ee,"parseDayOfYear");a(IG,"parseHour24");a(wEe,"parseMinutes");a(EEe,"parseSeconds");a(AEe,"parseMilliseconds");a(REe,"parseMicroseconds");a(LEe,"parseLiteralPercent");a(DEe,"parseUnixTimestamp");a(IEe,"parseUnixTimestampSeconds");a(NG,"formatDayOfMonth");a(NEe,"formatHour24");a(MEe,"formatHour12");a(OEe,"formatDayOfYear");a($G,"formatMilliseconds");a(PEe,"formatMicroseconds");a(BEe,"formatMonthNumber");a($Ee,"formatMinutes");a(FEe,"formatSeconds");a(VEe,"formatWeekdayNumberMonday");a(GEe,"formatWeekNumberSunday");a(FG,"dISO");a(WEe,"formatWeekNumberISO");a(zEe,"formatWeekdayNumberSunday");a(qEe,"formatWeekNumberMonday");a(jEe,"formatYear");a(UEe,"formatYearISO");a(HEe,"formatFullYear");a(YEe,"formatFullYearISO");a(KEe,"formatZone");a(MG,"formatUTCDayOfMonth");a(XEe,"formatUTCHour24");a(QEe,"formatUTCHour12");a(ZEe,"formatUTCDayOfYear");a(VG,"formatUTCMilliseconds");a(JEe,"formatUTCMicroseconds");a(eAe,"formatUTCMonthNumber");a(tAe,"formatUTCMinutes");a(rAe,"formatUTCSeconds");a(iAe,"formatUTCWeekdayNumberMonday");a(nAe,"formatUTCWeekNumberSunday");a(GG,"UTCdISO");a(aAe,"formatUTCWeekNumberISO");a(sAe,"formatUTCWeekdayNumberSunday");a(oAe,"formatUTCWeekNumberMonday");a(lAe,"formatUTCYear");a(cAe,"formatUTCYearISO");a(uAe,"formatUTCFullYear");a(hAe,"formatUTCFullYearISO");a(dAe,"formatUTCZone");a(OG,"formatLiteralPercent");a(PG,"formatUnixTimestamp");a(BG,"formatUnixTimestampSeconds")});function N4(e){return Hf=I4(e),yh=Hf.format,zG=Hf.parse,qG=Hf.utcFormat,jG=Hf.utcParse,Hf}var Hf,yh,zG,qG,jG,UG=v(()=>{"use strict";WG();N4({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});a(N4,"defaultLocale")});var M4=v(()=>{"use strict";UG()});function fAe(e){return new Date(e)}function pAe(e){return e instanceof Date?+e:+new Date(+e)}function HG(e,t,r,i,n,s,o,l,u,h){var d=oy(),f=d.invert,p=d.domain,m=h(".%L"),g=h(":%S"),x=h("%I:%M"),b=h("%I %p"),T=h("%a %d"),k=h("%b %d"),C=h("%B"),S=h("%Y");function w(_){return(u(_)<_?m:l(_)<_?g:o(_)<_?x:s(_)<_?b:i(_)<_?n(_)<_?T:k:r(_)<_?C:S)(_)}return a(w,"tickFormat"),d.invert=function(_){return new Date(f(_))},d.domain=function(_){return arguments.length?p(Array.from(_,pAe)):p().map(fAe)},d.ticks=function(_){var L=p();return e(L[0],L[L.length-1],_??10)},d.tickFormat=function(_,L){return L==null?w:h(L)},d.nice=function(_){var L=p();return(!_||typeof _.range!="function")&&(_=t(L[0],L[L.length-1],_??10)),_?p(y4(L,_)):d},d.copy=function(){return Hb(d,HG(e,t,r,i,n,s,o,l,u,h))},d}function i2(){return Sc.apply(HG(A4,R4,va,yl,Ds,Ka,gl,ml,Ca,yh).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}var YG=v(()=>{"use strict";r2();M4();m4();sy();mG();a(fAe,"date");a(pAe,"number");a(HG,"calendar");a(i2,"time")});var KG=v(()=>{"use strict";cG();pG();h4();YG()});function O4(e){for(var t=e.length/6|0,r=new Array(t),i=0;i<t;)r[i]="#"+e.slice(i*6,++i*6);return r}var XG=v(()=>{"use strict";a(O4,"default")});var P4,QG=v(()=>{"use strict";XG();P4=O4("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab")});var ZG=v(()=>{"use strict";QG()});function Qr(e){return a(function(){return e},"constant")}var n2=v(()=>{"use strict";a(Qr,"default")});function eW(e){return e>1?0:e<-1?Yf:Math.acos(e)}function $4(e){return e>=1?fy:e<=-1?-fy:Math.asin(e)}var B4,sn,Ec,JG,a2,Ns,xh,Ki,Yf,fy,Kf,s2=v(()=>{"use strict";B4=Math.abs,sn=Math.atan2,Ec=Math.cos,JG=Math.max,a2=Math.min,Ns=Math.sin,xh=Math.sqrt,Ki=1e-12,Yf=Math.PI,fy=Yf/2,Kf=2*Yf;a(eW,"acos");a($4,"asin")});function o2(e){let t=3;return e.digits=function(r){if(!arguments.length)return t;if(r==null)t=null;else{let i=Math.floor(r);if(!(i>=0))throw new RangeError(`invalid digits: ${r}`);t=i}return e},()=>new ch(t)}var F4=v(()=>{"use strict";O3();a(o2,"withPath")});function mAe(e){return e.innerRadius}function gAe(e){return e.outerRadius}function yAe(e){return e.startAngle}function xAe(e){return e.endAngle}function bAe(e){return e&&e.padAngle}function TAe(e,t,r,i,n,s,o,l){var u=r-e,h=i-t,d=o-n,f=l-s,p=f*u-d*h;if(!(p*p<Ki))return p=(d*(t-s)-f*(e-n))/p,[e+p*u,t+p*h]}function l2(e,t,r,i,n,s,o){var l=e-r,u=t-i,h=(o?s:-s)/xh(l*l+u*u),d=h*u,f=-h*l,p=e+d,m=t+f,g=r+d,x=i+f,b=(p+g)/2,T=(m+x)/2,k=g-p,C=x-m,S=k*k+C*C,w=n-s,_=p*x-g*m,L=(C<0?-1:1)*xh(JG(0,w*w*S-_*_)),I=(_*C-k*L)/S,B=(-_*k-C*L)/S,G=(_*C+k*L)/S,P=(-_*k+C*L)/S,F=I-b,A=B-T,D=G-b,R=P-T;return F*F+A*A>D*D+R*R&&(I=G,B=P),{cx:I,cy:B,x01:-d,y01:-f,x11:I*(n/w-1),y11:B*(n/w-1)}}function Ms(){var e=mAe,t=gAe,r=Qr(0),i=null,n=yAe,s=xAe,o=bAe,l=null,u=o2(h);function h(){var d,f,p=+e.apply(this,arguments),m=+t.apply(this,arguments),g=n.apply(this,arguments)-fy,x=s.apply(this,arguments)-fy,b=B4(x-g),T=x>g;if(l||(l=d=u()),m<p&&(f=m,m=p,p=f),!(m>Ki))l.moveTo(0,0);else if(b>Kf-Ki)l.moveTo(m*Ec(g),m*Ns(g)),l.arc(0,0,m,g,x,!T),p>Ki&&(l.moveTo(p*Ec(x),p*Ns(x)),l.arc(0,0,p,x,g,T));else{var k=g,C=x,S=g,w=x,_=b,L=b,I=o.apply(this,arguments)/2,B=I>Ki&&(i?+i.apply(this,arguments):xh(p*p+m*m)),G=a2(B4(m-p)/2,+r.apply(this,arguments)),P=G,F=G,A,D;if(B>Ki){var R=$4(B/p*Ns(I)),N=$4(B/m*Ns(I));(_-=R*2)>Ki?(R*=T?1:-1,S+=R,w-=R):(_=0,S=w=(g+x)/2),(L-=N*2)>Ki?(N*=T?1:-1,k+=N,C-=N):(L=0,k=C=(g+x)/2)}var $=m*Ec(k),E=m*Ns(k),M=p*Ec(w),V=p*Ns(w);if(G>Ki){var O=m*Ec(C),z=m*Ns(C),U=p*Ec(S),K=p*Ns(S),j;if(b<Yf)if(j=TAe($,E,U,K,O,z,M,V)){var ae=$-j[0],X=E-j[1],de=O-j[0],le=z-j[1],ge=1/Ns(eW((ae*de+X*le)/(xh(ae*ae+X*X)*xh(de*de+le*le)))/2),he=xh(j[0]*j[0]+j[1]*j[1]);P=a2(G,(p-he)/(ge-1)),F=a2(G,(m-he)/(ge+1))}else P=F=0}L>Ki?F>Ki?(A=l2(U,K,$,E,m,F,T),D=l2(O,z,M,V,m,F,T),l.moveTo(A.cx+A.x01,A.cy+A.y01),F<G?l.arc(A.cx,A.cy,F,sn(A.y01,A.x01),sn(D.y01,D.x01),!T):(l.arc(A.cx,A.cy,F,sn(A.y01,A.x01),sn(A.y11,A.x11),!T),l.arc(0,0,m,sn(A.cy+A.y11,A.cx+A.x11),sn(D.cy+D.y11,D.cx+D.x11),!T),l.arc(D.cx,D.cy,F,sn(D.y11,D.x11),sn(D.y01,D.x01),!T))):(l.moveTo($,E),l.arc(0,0,m,k,C,!T)):l.moveTo($,E),!(p>Ki)||!(_>Ki)?l.lineTo(M,V):P>Ki?(A=l2(M,V,O,z,p,-P,T),D=l2($,E,U,K,p,-P,T),l.lineTo(A.cx+A.x01,A.cy+A.y01),P<G?l.arc(A.cx,A.cy,P,sn(A.y01,A.x01),sn(D.y01,D.x01),!T):(l.arc(A.cx,A.cy,P,sn(A.y01,A.x01),sn(A.y11,A.x11),!T),l.arc(0,0,p,sn(A.cy+A.y11,A.cx+A.x11),sn(D.cy+D.y11,D.cx+D.x11),T),l.arc(D.cx,D.cy,P,sn(D.y11,D.x11),sn(D.y01,D.x01),!T))):l.arc(0,0,p,w,S,T)}if(l.closePath(),d)return l=null,d+""||null}return a(h,"arc"),h.centroid=function(){var d=(+e.apply(this,arguments)+ +t.apply(this,arguments))/2,f=(+n.apply(this,arguments)+ +s.apply(this,arguments))/2-Yf/2;return[Ec(f)*d,Ns(f)*d]},h.innerRadius=function(d){return arguments.length?(e=typeof d=="function"?d:Qr(+d),h):e},h.outerRadius=function(d){return arguments.length?(t=typeof d=="function"?d:Qr(+d),h):t},h.cornerRadius=function(d){return arguments.length?(r=typeof d=="function"?d:Qr(+d),h):r},h.padRadius=function(d){return arguments.length?(i=d==null?null:typeof d=="function"?d:Qr(+d),h):i},h.startAngle=function(d){return arguments.length?(n=typeof d=="function"?d:Qr(+d),h):n},h.endAngle=function(d){return arguments.length?(s=typeof d=="function"?d:Qr(+d),h):s},h.padAngle=function(d){return arguments.length?(o=typeof d=="function"?d:Qr(+d),h):o},h.context=function(d){return arguments.length?(l=d??null,h):l},h}var tW=v(()=>{"use strict";n2();s2();F4();a(mAe,"arcInnerRadius");a(gAe,"arcOuterRadius");a(yAe,"arcStartAngle");a(xAe,"arcEndAngle");a(bAe,"arcPadAngle");a(TAe,"intersect");a(l2,"cornerTangents");a(Ms,"default")});function py(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}var mvt,V4=v(()=>{"use strict";mvt=Array.prototype.slice;a(py,"default")});function rW(e){this._context=e}function To(e){return new rW(e)}var G4=v(()=>{"use strict";a(rW,"Linear");rW.prototype={areaStart:a(function(){this._line=0},"areaStart"),areaEnd:a(function(){this._line=NaN},"areaEnd"),lineStart:a(function(){this._point=0},"lineStart"),lineEnd:a(function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},"lineEnd"),point:a(function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}},"point")};a(To,"default")});function iW(e){return e[0]}function nW(e){return e[1]}var aW=v(()=>{"use strict";a(iW,"x");a(nW,"y")});function Os(e,t){var r=Qr(!0),i=null,n=To,s=null,o=o2(l);e=typeof e=="function"?e:e===void 0?iW:Qr(e),t=typeof t=="function"?t:t===void 0?nW:Qr(t);function l(u){var h,d=(u=py(u)).length,f,p=!1,m;for(i==null&&(s=n(m=o())),h=0;h<=d;++h)!(h<d&&r(f=u[h],h,u))===p&&((p=!p)?s.lineStart():s.lineEnd()),p&&s.point(+e(f,h,u),+t(f,h,u));if(m)return s=null,m+""||null}return a(l,"line"),l.x=function(u){return arguments.length?(e=typeof u=="function"?u:Qr(+u),l):e},l.y=function(u){return arguments.length?(t=typeof u=="function"?u:Qr(+u),l):t},l.defined=function(u){return arguments.length?(r=typeof u=="function"?u:Qr(!!u),l):r},l.curve=function(u){return arguments.length?(n=u,i!=null&&(s=n(i)),l):n},l.context=function(u){return arguments.length?(u==null?i=s=null:s=n(i=u),l):i},l}var sW=v(()=>{"use strict";V4();n2();G4();F4();aW();a(Os,"default")});function W4(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}var oW=v(()=>{"use strict";a(W4,"default")});function z4(e){return e}var lW=v(()=>{"use strict";a(z4,"default")});function c2(){var e=z4,t=W4,r=null,i=Qr(0),n=Qr(Kf),s=Qr(0);function o(l){var u,h=(l=py(l)).length,d,f,p=0,m=new Array(h),g=new Array(h),x=+i.apply(this,arguments),b=Math.min(Kf,Math.max(-Kf,n.apply(this,arguments)-x)),T,k=Math.min(Math.abs(b)/h,s.apply(this,arguments)),C=k*(b<0?-1:1),S;for(u=0;u<h;++u)(S=g[m[u]=u]=+e(l[u],u,l))>0&&(p+=S);for(t!=null?m.sort(function(w,_){return t(g[w],g[_])}):r!=null&&m.sort(function(w,_){return r(l[w],l[_])}),u=0,f=p?(b-h*C)/p:0;u<h;++u,x=T)d=m[u],S=g[d],T=x+(S>0?S*f:0)+C,g[d]={data:l[d],index:u,value:S,startAngle:x,endAngle:T,padAngle:k};return g}return a(o,"pie"),o.value=function(l){return arguments.length?(e=typeof l=="function"?l:Qr(+l),o):e},o.sortValues=function(l){return arguments.length?(t=l,r=null,o):t},o.sort=function(l){return arguments.length?(r=l,t=null,o):r},o.startAngle=function(l){return arguments.length?(i=typeof l=="function"?l:Qr(+l),o):i},o.endAngle=function(l){return arguments.length?(n=typeof l=="function"?l:Qr(+l),o):n},o.padAngle=function(l){return arguments.length?(s=typeof l=="function"?l:Qr(+l),o):s},o}var cW=v(()=>{"use strict";V4();n2();oW();lW();s2();a(c2,"default")});function my(e){return new u2(e,!0)}function gy(e){return new u2(e,!1)}var u2,uW=v(()=>{"use strict";u2=class{static{a(this,"Bump")}constructor(t,r){this._context=t,this._x=r}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,r){switch(t=+t,r=+r,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,r):this._context.moveTo(t,r);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,r,t,r):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+r)/2,t,this._y0,t,r);break}}this._x0=t,this._y0=r}};a(my,"bumpX");a(gy,"bumpY")});function Sa(){}var yy=v(()=>{"use strict";a(Sa,"default")});function Xf(e,t,r){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+r)/6)}function xy(e){this._context=e}function Ps(e){return new xy(e)}var by=v(()=>{"use strict";a(Xf,"point");a(xy,"Basis");xy.prototype={areaStart:a(function(){this._line=0},"areaStart"),areaEnd:a(function(){this._line=NaN},"areaEnd"),lineStart:a(function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},"lineStart"),lineEnd:a(function(){switch(this._point){case 3:Xf(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},"lineEnd"),point:a(function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Xf(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t},"point")};a(Ps,"default")});function hW(e){this._context=e}function h2(e){return new hW(e)}var dW=v(()=>{"use strict";yy();by();a(hW,"BasisClosed");hW.prototype={areaStart:Sa,areaEnd:Sa,lineStart:a(function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},"lineStart"),lineEnd:a(function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},"lineEnd"),point:a(function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:Xf(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t},"point")};a(h2,"default")});function fW(e){this._context=e}function d2(e){return new fW(e)}var pW=v(()=>{"use strict";by();a(fW,"BasisOpen");fW.prototype={areaStart:a(function(){this._line=0},"areaStart"),areaEnd:a(function(){this._line=NaN},"areaEnd"),lineStart:a(function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},"lineStart"),lineEnd:a(function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},"lineEnd"),point:a(function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+e)/6,i=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,i):this._context.moveTo(r,i);break;case 3:this._point=4;default:Xf(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t},"point")};a(d2,"default")});function mW(e,t){this._basis=new xy(e),this._beta=t}var q4,gW=v(()=>{"use strict";by();a(mW,"Bundle");mW.prototype={lineStart:a(function(){this._x=[],this._y=[],this._basis.lineStart()},"lineStart"),lineEnd:a(function(){var e=this._x,t=this._y,r=e.length-1;if(r>0)for(var i=e[0],n=t[0],s=e[r]-i,o=t[r]-n,l=-1,u;++l<=r;)u=l/r,this._basis.point(this._beta*e[l]+(1-this._beta)*(i+u*s),this._beta*t[l]+(1-this._beta)*(n+u*o));this._x=this._y=null,this._basis.lineEnd()},"lineEnd"),point:a(function(e,t){this._x.push(+e),this._y.push(+t)},"point")};q4=a((function e(t){function r(i){return t===1?new xy(i):new mW(i,t)}return a(r,"bundle"),r.beta=function(i){return e(+i)},r}),"custom")(.85)});function Qf(e,t,r){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-r),e._x2,e._y2)}function f2(e,t){this._context=e,this._k=(1-t)/6}var Ty,ky=v(()=>{"use strict";a(Qf,"point");a(f2,"Cardinal");f2.prototype={areaStart:a(function(){this._line=0},"areaStart"),areaEnd:a(function(){this._line=NaN},"areaEnd"),lineStart:a(function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},"lineStart"),lineEnd:a(function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:Qf(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},"lineEnd"),point:a(function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:Qf(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t},"point")};Ty=a((function e(t){function r(i){return new f2(i,t)}return a(r,"cardinal"),r.tension=function(i){return e(+i)},r}),"custom")(0)});function p2(e,t){this._context=e,this._k=(1-t)/6}var j4,U4=v(()=>{"use strict";yy();ky();a(p2,"CardinalClosed");p2.prototype={areaStart:Sa,areaEnd:Sa,lineStart:a(function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},"lineStart"),lineEnd:a(function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},"lineEnd"),point:a(function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:Qf(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t},"point")};j4=a((function e(t){function r(i){return new p2(i,t)}return a(r,"cardinal"),r.tension=function(i){return e(+i)},r}),"custom")(0)});function m2(e,t){this._context=e,this._k=(1-t)/6}var H4,Y4=v(()=>{"use strict";ky();a(m2,"CardinalOpen");m2.prototype={areaStart:a(function(){this._line=0},"areaStart"),areaEnd:a(function(){this._line=NaN},"areaEnd"),lineStart:a(function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},"lineStart"),lineEnd:a(function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},"lineEnd"),point:a(function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Qf(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t},"point")};H4=a((function e(t){function r(i){return new m2(i,t)}return a(r,"cardinal"),r.tension=function(i){return e(+i)},r}),"custom")(0)});function Cy(e,t,r){var i=e._x1,n=e._y1,s=e._x2,o=e._y2;if(e._l01_a>Ki){var l=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,u=3*e._l01_a*(e._l01_a+e._l12_a);i=(i*l-e._x0*e._l12_2a+e._x2*e._l01_2a)/u,n=(n*l-e._y0*e._l12_2a+e._y2*e._l01_2a)/u}if(e._l23_a>Ki){var h=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,d=3*e._l23_a*(e._l23_a+e._l12_a);s=(s*h+e._x1*e._l23_2a-t*e._l12_2a)/d,o=(o*h+e._y1*e._l23_2a-r*e._l12_2a)/d}e._context.bezierCurveTo(i,n,s,o,e._x2,e._y2)}function yW(e,t){this._context=e,this._alpha=t}var vy,g2=v(()=>{"use strict";s2();ky();a(Cy,"point");a(yW,"CatmullRom");yW.prototype={areaStart:a(function(){this._line=0},"areaStart"),areaEnd:a(function(){this._line=NaN},"areaEnd"),lineStart:a(function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},"lineStart"),lineEnd:a(function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},"lineEnd"),point:a(function(e,t){if(e=+e,t=+t,this._point){var r=this._x2-e,i=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+i*i,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:Cy(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t},"point")};vy=a((function e(t){function r(i){return t?new yW(i,t):new f2(i,0)}return a(r,"catmullRom"),r.alpha=function(i){return e(+i)},r}),"custom")(.5)});function xW(e,t){this._context=e,this._alpha=t}var K4,bW=v(()=>{"use strict";U4();yy();g2();a(xW,"CatmullRomClosed");xW.prototype={areaStart:Sa,areaEnd:Sa,lineStart:a(function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},"lineStart"),lineEnd:a(function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},"lineEnd"),point:a(function(e,t){if(e=+e,t=+t,this._point){var r=this._x2-e,i=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+i*i,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:Cy(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t},"point")};K4=a((function e(t){function r(i){return t?new xW(i,t):new p2(i,0)}return a(r,"catmullRom"),r.alpha=function(i){return e(+i)},r}),"custom")(.5)});function TW(e,t){this._context=e,this._alpha=t}var X4,kW=v(()=>{"use strict";Y4();g2();a(TW,"CatmullRomOpen");TW.prototype={areaStart:a(function(){this._line=0},"areaStart"),areaEnd:a(function(){this._line=NaN},"areaEnd"),lineStart:a(function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},"lineStart"),lineEnd:a(function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},"lineEnd"),point:a(function(e,t){if(e=+e,t=+t,this._point){var r=this._x2-e,i=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+i*i,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Cy(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t},"point")};X4=a((function e(t){function r(i){return t?new TW(i,t):new m2(i,0)}return a(r,"catmullRom"),r.alpha=function(i){return e(+i)},r}),"custom")(.5)});function CW(e){this._context=e}function y2(e){return new CW(e)}var vW=v(()=>{"use strict";yy();a(CW,"LinearClosed");CW.prototype={areaStart:Sa,areaEnd:Sa,lineStart:a(function(){this._point=0},"lineStart"),lineEnd:a(function(){this._point&&this._context.closePath()},"lineEnd"),point:a(function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))},"point")};a(y2,"default")});function SW(e){return e<0?-1:1}function _W(e,t,r){var i=e._x1-e._x0,n=t-e._x1,s=(e._y1-e._y0)/(i||n<0&&-0),o=(r-e._y1)/(n||i<0&&-0),l=(s*n+o*i)/(i+n);return(SW(s)+SW(o))*Math.min(Math.abs(s),Math.abs(o),.5*Math.abs(l))||0}function wW(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function Q4(e,t,r){var i=e._x0,n=e._y0,s=e._x1,o=e._y1,l=(s-i)/3;e._context.bezierCurveTo(i+l,n+l*t,s-l,o-l*r,s,o)}function x2(e){this._context=e}function EW(e){this._context=new AW(e)}function AW(e){this._context=e}function Sy(e){return new x2(e)}function _y(e){return new EW(e)}var RW=v(()=>{"use strict";a(SW,"sign");a(_W,"slope3");a(wW,"slope2");a(Q4,"point");a(x2,"MonotoneX");x2.prototype={areaStart:a(function(){this._line=0},"areaStart"),areaEnd:a(function(){this._line=NaN},"areaEnd"),lineStart:a(function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},"lineStart"),lineEnd:a(function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Q4(this,this._t0,wW(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},"lineEnd"),point:a(function(e,t){var r=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,Q4(this,wW(this,r=_W(this,e,t)),r);break;default:Q4(this,this._t0,r=_W(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}},"point")};a(EW,"MonotoneY");(EW.prototype=Object.create(x2.prototype)).point=function(e,t){x2.prototype.point.call(this,t,e)};a(AW,"ReflectContext");AW.prototype={moveTo:a(function(e,t){this._context.moveTo(t,e)},"moveTo"),closePath:a(function(){this._context.closePath()},"closePath"),lineTo:a(function(e,t){this._context.lineTo(t,e)},"lineTo"),bezierCurveTo:a(function(e,t,r,i,n,s){this._context.bezierCurveTo(t,e,i,r,s,n)},"bezierCurveTo")};a(Sy,"monotoneX");a(_y,"monotoneY")});function DW(e){this._context=e}function LW(e){var t,r=e.length-1,i,n=new Array(r),s=new Array(r),o=new Array(r);for(n[0]=0,s[0]=2,o[0]=e[0]+2*e[1],t=1;t<r-1;++t)n[t]=1,s[t]=4,o[t]=4*e[t]+2*e[t+1];for(n[r-1]=2,s[r-1]=7,o[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)i=n[t]/s[t-1],s[t]-=i,o[t]-=i*o[t-1];for(n[r-1]=o[r-1]/s[r-1],t=r-2;t>=0;--t)n[t]=(o[t]-n[t+1])/s[t];for(s[r-1]=(e[r]+n[r-1])/2,t=0;t<r-1;++t)s[t]=2*e[t+1]-n[t+1];return[n,s]}function Zf(e){return new DW(e)}var IW=v(()=>{"use strict";a(DW,"Natural");DW.prototype={areaStart:a(function(){this._line=0},"areaStart"),areaEnd:a(function(){this._line=NaN},"areaEnd"),lineStart:a(function(){this._x=[],this._y=[]},"lineStart"),lineEnd:a(function(){var e=this._x,t=this._y,r=e.length;if(r)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),r===2)this._context.lineTo(e[1],t[1]);else for(var i=LW(e),n=LW(t),s=0,o=1;o<r;++s,++o)this._context.bezierCurveTo(i[0][s],n[0][s],i[1][s],n[1][s],e[o],t[o]);(this._line||this._line!==0&&r===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},"lineEnd"),point:a(function(e,t){this._x.push(+e),this._y.push(+t)},"point")};a(LW,"controlPoints");a(Zf,"default")});function b2(e,t){this._context=e,this._t=t}function Jf(e){return new b2(e,.5)}function wy(e){return new b2(e,0)}function Ey(e){return new b2(e,1)}var NW=v(()=>{"use strict";a(b2,"Step");b2.prototype={areaStart:a(function(){this._line=0},"areaStart"),areaEnd:a(function(){this._line=NaN},"areaEnd"),lineStart:a(function(){this._x=this._y=NaN,this._point=0},"lineStart"),lineEnd:a(function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},"lineEnd"),point:a(function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}break}}this._x=e,this._y=t},"point")};a(Jf,"default");a(wy,"stepBefore");a(Ey,"stepAfter")});var MW=v(()=>{"use strict";tW();sW();cW();dW();pW();by();uW();gW();U4();Y4();ky();bW();kW();g2();vW();G4();RW();IW();NW()});var OW=v(()=>{"use strict"});var PW=v(()=>{"use strict"});function Ac(e,t,r){this.k=e,this.x=t,this.y=r}function J4(e){for(;!e.__zoom;)if(!(e=e.parentNode))return Z4;return e.__zoom}var Z4,e5=v(()=>{"use strict";a(Ac,"Transform");Ac.prototype={constructor:Ac,scale:a(function(e){return e===1?this:new Ac(this.k*e,this.x,this.y)},"scale"),translate:a(function(e,t){return e===0&t===0?this:new Ac(this.k,this.x+this.k*e,this.y+this.k*t)},"translate"),apply:a(function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},"apply"),applyX:a(function(e){return e*this.k+this.x},"applyX"),applyY:a(function(e){return e*this.k+this.y},"applyY"),invert:a(function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},"invert"),invertX:a(function(e){return(e-this.x)/this.k},"invertX"),invertY:a(function(e){return(e-this.y)/this.k},"invertY"),rescaleX:a(function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},"rescaleX"),rescaleY:a(function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},"rescaleY"),toString:a(function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"},"toString")};Z4=new Ac(1,0,0);J4.prototype=Ac.prototype;a(J4,"transform")});var BW=v(()=>{"use strict"});var $W=v(()=>{"use strict";Bb();OW();PW();e5();BW()});var FW=v(()=>{"use strict";$W();e5()});var sr=v(()=>{"use strict";yc();H$();dV();gV();Pf();yV();xV();WE();$F();bV();L3();TV();CV();H3();PV();sG();Ff();O3();oG();kV();lG();KG();ZG();ws();MW();r2();M4();Db();Bb();FW()});var VW=ju(Xi=>{"use strict";Object.defineProperty(Xi,"__esModule",{value:!0});Xi.BLANK_URL=Xi.relativeFirstCharacters=Xi.whitespaceEscapeCharsRegex=Xi.urlSchemeRegex=Xi.ctrlCharactersRegex=Xi.htmlCtrlEntityRegex=Xi.htmlEntitiesRegex=Xi.invalidProtocolRegex=void 0;Xi.invalidProtocolRegex=/^([^\w]*)(javascript|data|vbscript)/im;Xi.htmlEntitiesRegex=/&#(\w+)(^\w|;)?/g;Xi.htmlCtrlEntityRegex=/&(newline|tab);/gi;Xi.ctrlCharactersRegex=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim;Xi.urlSchemeRegex=/^.+(:|:)/gim;Xi.whitespaceEscapeCharsRegex=/(\\|%5[cC])((%(6[eE]|72|74))|[nrt])/g;Xi.relativeFirstCharacters=[".","/"];Xi.BLANK_URL="about:blank"});var ep=ju(T2=>{"use strict";Object.defineProperty(T2,"__esModule",{value:!0});T2.sanitizeUrl=void 0;var xn=VW();function kAe(e){return xn.relativeFirstCharacters.indexOf(e[0])>-1}a(kAe,"isRelativeUrlWithoutProtocol");function CAe(e){var t=e.replace(xn.ctrlCharactersRegex,"");return t.replace(xn.htmlEntitiesRegex,function(r,i){return String.fromCharCode(i)})}a(CAe,"decodeHtmlCharacters");function vAe(e){return URL.canParse(e)}a(vAe,"isValidUrl");function GW(e){try{return decodeURIComponent(e)}catch{return e}}a(GW,"decodeURI");function SAe(e){if(!e)return xn.BLANK_URL;var t,r=GW(e.trim());do r=CAe(r).replace(xn.htmlCtrlEntityRegex,"").replace(xn.ctrlCharactersRegex,"").replace(xn.whitespaceEscapeCharsRegex,"").trim(),r=GW(r),t=r.match(xn.ctrlCharactersRegex)||r.match(xn.htmlEntitiesRegex)||r.match(xn.htmlCtrlEntityRegex)||r.match(xn.whitespaceEscapeCharsRegex);while(t&&t.length>0);var i=r;if(!i)return xn.BLANK_URL;if(kAe(i))return i;var n=i.trimStart(),s=n.match(xn.urlSchemeRegex);if(!s)return i;var o=s[0].toLowerCase().trim();if(xn.invalidProtocolRegex.test(o))return xn.BLANK_URL;var l=n.replace(/\\/g,"/");if(o==="mailto:"||o.includes("://"))return l;if(o==="http:"||o==="https:"){if(!vAe(l))return xn.BLANK_URL;var u=new URL(l);return u.protocol=u.protocol.toLowerCase(),u.hostname=u.hostname.toLowerCase(),u.toString()}return l}a(SAe,"sanitizeUrl");T2.sanitizeUrl=SAe});var t5,bh,k2,WW,C2,v2,on,Ay,S2,Th=v(()=>{"use strict";t5=Wa(ep(),1);sr();dr();bh=a((e,t)=>{let r=e.append("rect");if(r.attr("x",t.x),r.attr("y",t.y),r.attr("fill",t.fill),r.attr("stroke",t.stroke),r.attr("width",t.width),r.attr("height",t.height),t.name&&r.attr("name",t.name),t.rx&&r.attr("rx",t.rx),t.ry&&r.attr("ry",t.ry),t.attrs!==void 0)for(let i in t.attrs)r.attr(i,t.attrs[i]);return t.class&&r.attr("class",t.class),r},"drawRect"),k2=a((e,t)=>{let r={x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,stroke:t.stroke,class:"rect"};bh(e,r).lower()},"drawBackgroundRect"),WW=a((e,t)=>{let r=t.text.replace(Sf," "),i=e.append("text");i.attr("x",t.x),i.attr("y",t.y),i.attr("class","legend"),i.style("text-anchor",t.anchor),t.class&&i.attr("class",t.class);let n=i.append("tspan");return n.attr("x",t.x+t.textMargin*2),n.text(r),i},"drawText"),C2=a((e,t,r,i)=>{let n=e.append("image");n.attr("x",t),n.attr("y",r);let s=(0,t5.sanitizeUrl)(i);n.attr("xlink:href",s)},"drawImage"),v2=a((e,t,r,i)=>{let n=e.append("use");n.attr("x",t),n.attr("y",r);let s=(0,t5.sanitizeUrl)(i);n.attr("xlink:href",`#${s}`)},"drawEmbeddedImage"),on=a(()=>({x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}),"getNoteRect"),Ay=a(()=>({x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0}),"getTextObj"),S2=a(()=>{let e=Se(".mermaidTooltip");return e.empty()&&(e=Se("body").append("div").attr("class","mermaidTooltip").style("opacity",0).style("position","absolute").style("text-align","center").style("max-width","200px").style("padding","2px").style("font-size","12px").style("background","#ffffde").style("border","1px solid #333").style("border-radius","2px").style("pointer-events","none").style("z-index","100")),e},"createTooltip")});var zW,r5,qW,_Ae,wAe,EAe,AAe,RAe,LAe,DAe,IAe,NAe,MAe,OAe,xl,Bs,jW=v(()=>{"use strict";dr();Th();zW=Wa(ep(),1),r5=a(function(e,t){return bh(e,t)},"drawRect"),qW=a(function(e,t,r,i,n,s){let o=e.append("image");o.attr("width",t),o.attr("height",r),o.attr("x",i),o.attr("y",n);let l=s.startsWith("data:image/png;base64")?s:(0,zW.sanitizeUrl)(s);o.attr("xlink:href",l)},"drawImage"),_Ae=a((e,t,r,i)=>{let n=e.append("g"),s=0;for(let o of t){let l=o.textColor?o.textColor:"#444444",u=o.lineColor?o.lineColor:"#444444",h=o.offsetX?parseInt(o.offsetX):0,d=o.offsetY?parseInt(o.offsetY):0,f="";if(s===0){let m=n.append("line");m.attr("x1",o.startPoint.x),m.attr("y1",o.startPoint.y),m.attr("x2",o.endPoint.x),m.attr("y2",o.endPoint.y),m.attr("stroke-width","1"),m.attr("stroke",u),m.style("fill","none"),o.type!=="rel_b"&&m.attr("marker-end","url("+f+"#"+i+"-arrowhead)"),(o.type==="birel"||o.type==="rel_b")&&m.attr("marker-start","url("+f+"#"+i+"-arrowend)"),s=-1}else{let m=n.append("path");m.attr("fill","none").attr("stroke-width","1").attr("stroke",u).attr("d","Mstartx,starty Qcontrolx,controly stopx,stopy ".replaceAll("startx",o.startPoint.x).replaceAll("starty",o.startPoint.y).replaceAll("controlx",o.startPoint.x+(o.endPoint.x-o.startPoint.x)/2-(o.endPoint.x-o.startPoint.x)/4).replaceAll("controly",o.startPoint.y+(o.endPoint.y-o.startPoint.y)/2).replaceAll("stopx",o.endPoint.x).replaceAll("stopy",o.endPoint.y)),o.type!=="rel_b"&&m.attr("marker-end","url("+f+"#"+i+"-arrowhead)"),(o.type==="birel"||o.type==="rel_b")&&m.attr("marker-start","url("+f+"#"+i+"-arrowend)")}let p=r.messageFont();xl(r)(o.label.text,n,Math.min(o.startPoint.x,o.endPoint.x)+Math.abs(o.endPoint.x-o.startPoint.x)/2+h,Math.min(o.startPoint.y,o.endPoint.y)+Math.abs(o.endPoint.y-o.startPoint.y)/2+d,o.label.width,o.label.height,{fill:l},p),o.techn&&o.techn.text!==""&&(p=r.messageFont(),xl(r)("["+o.techn.text+"]",n,Math.min(o.startPoint.x,o.endPoint.x)+Math.abs(o.endPoint.x-o.startPoint.x)/2+h,Math.min(o.startPoint.y,o.endPoint.y)+Math.abs(o.endPoint.y-o.startPoint.y)/2+r.messageFontSize+5+d,Math.max(o.label.width,o.techn.width),o.techn.height,{fill:l,"font-style":"italic"},p))}},"drawRels"),wAe=a(function(e,t,r){let i=e.append("g"),n=t.bgColor?t.bgColor:"none",s=t.borderColor?t.borderColor:"#444444",o=t.fontColor?t.fontColor:"black",l={"stroke-width":1,"stroke-dasharray":"7.0,7.0"};t.nodeType&&(l={"stroke-width":1});let u={x:t.x,y:t.y,fill:n,stroke:s,width:t.width,height:t.height,rx:2.5,ry:2.5,attrs:l};r5(i,u);let h=r.boundaryFont();h.fontWeight="bold",h.fontSize=h.fontSize+2,h.fontColor=o,xl(r)(t.label.text,i,t.x,t.y+t.label.Y,t.width,t.height,{fill:"#444444"},h),t.type&&t.type.text!==""&&(h=r.boundaryFont(),h.fontColor=o,xl(r)(t.type.text,i,t.x,t.y+t.type.Y,t.width,t.height,{fill:"#444444"},h)),t.descr&&t.descr.text!==""&&(h=r.boundaryFont(),h.fontSize=h.fontSize-2,h.fontColor=o,xl(r)(t.descr.text,i,t.x,t.y+t.descr.Y,t.width,t.height,{fill:"#444444"},h))},"drawBoundary"),EAe=a(function(e,t,r){let i=t.bgColor?t.bgColor:r[t.typeC4Shape.text+"_bg_color"],n=t.borderColor?t.borderColor:r[t.typeC4Shape.text+"_border_color"],s=t.fontColor?t.fontColor:"#FFFFFF",o="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAACD0lEQVR4Xu2YoU4EMRCGT+4j8Ai8AhaH4QHgAUjQuFMECUgMIUgwJAgMhgQsAYUiJCiQIBBY+EITsjfTdme6V24v4c8vyGbb+ZjOtN0bNcvjQXmkH83WvYBWto6PLm6v7p7uH1/w2fXD+PBycX1Pv2l3IdDm/vn7x+dXQiAubRzoURa7gRZWd0iGRIiJbOnhnfYBQZNJjNbuyY2eJG8fkDE3bbG4ep6MHUAsgYxmE3nVs6VsBWJSGccsOlFPmLIViMzLOB7pCVO2AtHJMohH7Fh6zqitQK7m0rJvAVYgGcEpe//PLdDz65sM4pF9N7ICcXDKIB5Nv6j7tD0NoSdM2QrU9Gg0ewE1LqBhHR3BBdvj2vapnidjHxD/q6vd7Pvhr31AwcY8eXMTXAKECZZJFXuEq27aLgQK5uLMohCenGGuGewOxSjBvYBqeG6B+Nqiblggdjnc+ZXDy+FNFpFzw76O3UBAROuXh6FoiAcf5g9eTvUgzy0nWg6I8cXHRUpg5bOVBCo+KDpFajOf23GgPme7RSQ+lacIENUgJ6gg1k6HjgOlqnLqip4tEuhv0hNEMXUD0clyXE3p6pZA0S2nnvTlXwLJEZWlb7cTQH1+USgTN4VhAenm/wea1OCAOmqo6fE1WCb9WSKBah+rbUWPWAmE2Rvk0ApiB45eOyNAzU8xcTvj8KvkKEoOaIYeHNA3ZuygAvFMUO0AAAAASUVORK5CYII=";switch(t.typeC4Shape.text){case"person":o="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAACD0lEQVR4Xu2YoU4EMRCGT+4j8Ai8AhaH4QHgAUjQuFMECUgMIUgwJAgMhgQsAYUiJCiQIBBY+EITsjfTdme6V24v4c8vyGbb+ZjOtN0bNcvjQXmkH83WvYBWto6PLm6v7p7uH1/w2fXD+PBycX1Pv2l3IdDm/vn7x+dXQiAubRzoURa7gRZWd0iGRIiJbOnhnfYBQZNJjNbuyY2eJG8fkDE3bbG4ep6MHUAsgYxmE3nVs6VsBWJSGccsOlFPmLIViMzLOB7pCVO2AtHJMohH7Fh6zqitQK7m0rJvAVYgGcEpe//PLdDz65sM4pF9N7ICcXDKIB5Nv6j7tD0NoSdM2QrU9Gg0ewE1LqBhHR3BBdvj2vapnidjHxD/q6vd7Pvhr31AwcY8eXMTXAKECZZJFXuEq27aLgQK5uLMohCenGGuGewOxSjBvYBqeG6B+Nqiblggdjnc+ZXDy+FNFpFzw76O3UBAROuXh6FoiAcf5g9eTvUgzy0nWg6I8cXHRUpg5bOVBCo+KDpFajOf23GgPme7RSQ+lacIENUgJ6gg1k6HjgOlqnLqip4tEuhv0hNEMXUD0clyXE3p6pZA0S2nnvTlXwLJEZWlb7cTQH1+USgTN4VhAenm/wea1OCAOmqo6fE1WCb9WSKBah+rbUWPWAmE2Rvk0ApiB45eOyNAzU8xcTvj8KvkKEoOaIYeHNA3ZuygAvFMUO0AAAAASUVORK5CYII=";break;case"external_person":o="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAAB6ElEQVR4Xu2YLY+EMBCG9+dWr0aj0Wg0Go1Go0+j8Xdv2uTCvv1gpt0ebHKPuhDaeW4605Z9mJvx4AdXUyTUdd08z+u6flmWZRnHsWkafk9DptAwDPu+f0eAYtu2PEaGWuj5fCIZrBAC2eLBAnRCsEkkxmeaJp7iDJ2QMDdHsLg8SxKFEJaAo8lAXnmuOFIhTMpxxKATebo4UiFknuNo4OniSIXQyRxEA3YsnjGCVEjVXD7yLUAqxBGUyPv/Y4W2beMgGuS7kVQIBycH0fD+oi5pezQETxdHKmQKGk1eQEYldK+jw5GxPfZ9z7Mk0Qnhf1W1m3w//EUn5BDmSZsbR44QQLBEqrBHqOrmSKaQAxdnLArCrxZcM7A7ZKs4ioRq8LFC+NpC3WCBJsvpVw5edm9iEXFuyNfxXAgSwfrFQ1c0iNda8AdejvUgnktOtJQQxmcfFzGglc5WVCj7oDgFqU18boeFSs52CUh8LE8BIVQDT1ABrB0HtgSEYlX5doJnCwv9TXocKCaKbnwhdDKPq4lf3SwU3HLq4V/+WYhHVMa/3b4IlfyikAduCkcBc7mQ3/z/Qq/cTuikhkzB12Ae/mcJC9U+Vo8Ej1gWAtgbeGgFsAMHr50BIWOLCbezvhpBFUdY6EJuJ/QDW0XoMX60zZ0AAAAASUVORK5CYII=";break}let l=e.append("g");l.attr("class","person-man");let u=on();switch(t.typeC4Shape.text){case"person":case"external_person":case"system":case"external_system":case"container":case"external_container":case"component":case"external_component":u.x=t.x,u.y=t.y,u.fill=i,u.width=t.width,u.height=t.height,u.stroke=n,u.rx=2.5,u.ry=2.5,u.attrs={"stroke-width":.5},r5(l,u);break;case"system_db":case"external_system_db":case"container_db":case"external_container_db":case"component_db":case"external_component_db":l.append("path").attr("fill",i).attr("stroke-width","0.5").attr("stroke",n).attr("d","Mstartx,startyc0,-10 half,-10 half,-10c0,0 half,0 half,10l0,heightc0,10 -half,10 -half,10c0,0 -half,0 -half,-10l0,-height".replaceAll("startx",t.x).replaceAll("starty",t.y).replaceAll("half",t.width/2).replaceAll("height",t.height)),l.append("path").attr("fill","none").attr("stroke-width","0.5").attr("stroke",n).attr("d","Mstartx,startyc0,10 half,10 half,10c0,0 half,0 half,-10".replaceAll("startx",t.x).replaceAll("starty",t.y).replaceAll("half",t.width/2));break;case"system_queue":case"external_system_queue":case"container_queue":case"external_container_queue":case"component_queue":case"external_component_queue":l.append("path").attr("fill",i).attr("stroke-width","0.5").attr("stroke",n).attr("d","Mstartx,startylwidth,0c5,0 5,half 5,halfc0,0 0,half -5,halfl-width,0c-5,0 -5,-half -5,-halfc0,0 0,-half 5,-half".replaceAll("startx",t.x).replaceAll("starty",t.y).replaceAll("width",t.width).replaceAll("half",t.height/2)),l.append("path").attr("fill","none").attr("stroke-width","0.5").attr("stroke",n).attr("d","Mstartx,startyc-5,0 -5,half -5,halfc0,half 5,half 5,half".replaceAll("startx",t.x+t.width).replaceAll("starty",t.y).replaceAll("half",t.height/2));break}let h=OAe(r,t.typeC4Shape.text);switch(l.append("text").attr("fill",s).attr("font-family",h.fontFamily).attr("font-size",h.fontSize-2).attr("font-style","italic").attr("lengthAdjust","spacing").attr("textLength",t.typeC4Shape.width).attr("x",t.x+t.width/2-t.typeC4Shape.width/2).attr("y",t.y+t.typeC4Shape.Y).text("<<"+t.typeC4Shape.text+">>"),t.typeC4Shape.text){case"person":case"external_person":qW(l,48,48,t.x+t.width/2-24,t.y+t.image.Y,o);break}let d=r[t.typeC4Shape.text+"Font"]();return d.fontWeight="bold",d.fontSize=d.fontSize+2,d.fontColor=s,xl(r)(t.label.text,l,t.x,t.y+t.label.Y,t.width,t.height,{fill:s},d),d=r[t.typeC4Shape.text+"Font"](),d.fontColor=s,t.techn&&t.techn?.text!==""?xl(r)(t.techn.text,l,t.x,t.y+t.techn.Y,t.width,t.height,{fill:s,"font-style":"italic"},d):t.type&&t.type.text!==""&&xl(r)(t.type.text,l,t.x,t.y+t.type.Y,t.width,t.height,{fill:s,"font-style":"italic"},d),t.descr&&t.descr.text!==""&&(d=r.personFont(),d.fontColor=s,xl(r)(t.descr.text,l,t.x,t.y+t.descr.Y,t.width,t.height,{fill:s},d)),t.height},"drawC4Shape"),AAe=a(function(e,t){e.append("defs").append("symbol").attr("id",t+"-database").attr("fill-rule","evenodd").attr("clip-rule","evenodd").append("path").attr("transform","scale(.5)").attr("d","M12.258.001l.256.004.255.005.253.008.251.01.249.012.247.015.246.016.242.019.241.02.239.023.236.024.233.027.231.028.229.031.225.032.223.034.22.036.217.038.214.04.211.041.208.043.205.045.201.046.198.048.194.05.191.051.187.053.183.054.18.056.175.057.172.059.168.06.163.061.16.063.155.064.15.066.074.033.073.033.071.034.07.034.069.035.068.035.067.035.066.035.064.036.064.036.062.036.06.036.06.037.058.037.058.037.055.038.055.038.053.038.052.038.051.039.05.039.048.039.047.039.045.04.044.04.043.04.041.04.04.041.039.041.037.041.036.041.034.041.033.042.032.042.03.042.029.042.027.042.026.043.024.043.023.043.021.043.02.043.018.044.017.043.015.044.013.044.012.044.011.045.009.044.007.045.006.045.004.045.002.045.001.045v17l-.001.045-.002.045-.004.045-.006.045-.007.045-.009.044-.011.045-.012.044-.013.044-.015.044-.017.043-.018.044-.02.043-.021.043-.023.043-.024.043-.026.043-.027.042-.029.042-.03.042-.032.042-.033.042-.034.041-.036.041-.037.041-.039.041-.04.041-.041.04-.043.04-.044.04-.045.04-.047.039-.048.039-.05.039-.051.039-.052.038-.053.038-.055.038-.055.038-.058.037-.058.037-.06.037-.06.036-.062.036-.064.036-.064.036-.066.035-.067.035-.068.035-.069.035-.07.034-.071.034-.073.033-.074.033-.15.066-.155.064-.16.063-.163.061-.168.06-.172.059-.175.057-.18.056-.183.054-.187.053-.191.051-.194.05-.198.048-.201.046-.205.045-.208.043-.211.041-.214.04-.217.038-.22.036-.223.034-.225.032-.229.031-.231.028-.233.027-.236.024-.239.023-.241.02-.242.019-.246.016-.247.015-.249.012-.251.01-.253.008-.255.005-.256.004-.258.001-.258-.001-.256-.004-.255-.005-.253-.008-.251-.01-.249-.012-.247-.015-.245-.016-.243-.019-.241-.02-.238-.023-.236-.024-.234-.027-.231-.028-.228-.031-.226-.032-.223-.034-.22-.036-.217-.038-.214-.04-.211-.041-.208-.043-.204-.045-.201-.046-.198-.048-.195-.05-.19-.051-.187-.053-.184-.054-.179-.056-.176-.057-.172-.059-.167-.06-.164-.061-.159-.063-.155-.064-.151-.066-.074-.033-.072-.033-.072-.034-.07-.034-.069-.035-.068-.035-.067-.035-.066-.035-.064-.036-.063-.036-.062-.036-.061-.036-.06-.037-.058-.037-.057-.037-.056-.038-.055-.038-.053-.038-.052-.038-.051-.039-.049-.039-.049-.039-.046-.039-.046-.04-.044-.04-.043-.04-.041-.04-.04-.041-.039-.041-.037-.041-.036-.041-.034-.041-.033-.042-.032-.042-.03-.042-.029-.042-.027-.042-.026-.043-.024-.043-.023-.043-.021-.043-.02-.043-.018-.044-.017-.043-.015-.044-.013-.044-.012-.044-.011-.045-.009-.044-.007-.045-.006-.045-.004-.045-.002-.045-.001-.045v-17l.001-.045.002-.045.004-.045.006-.045.007-.045.009-.044.011-.045.012-.044.013-.044.015-.044.017-.043.018-.044.02-.043.021-.043.023-.043.024-.043.026-.043.027-.042.029-.042.03-.042.032-.042.033-.042.034-.041.036-.041.037-.041.039-.041.04-.041.041-.04.043-.04.044-.04.046-.04.046-.039.049-.039.049-.039.051-.039.052-.038.053-.038.055-.038.056-.038.057-.037.058-.037.06-.037.061-.036.062-.036.063-.036.064-.036.066-.035.067-.035.068-.035.069-.035.07-.034.072-.034.072-.033.074-.033.151-.066.155-.064.159-.063.164-.061.167-.06.172-.059.176-.057.179-.056.184-.054.187-.053.19-.051.195-.05.198-.048.201-.046.204-.045.208-.043.211-.041.214-.04.217-.038.22-.036.223-.034.226-.032.228-.031.231-.028.234-.027.236-.024.238-.023.241-.02.243-.019.245-.016.247-.015.249-.012.251-.01.253-.008.255-.005.256-.004.258-.001.258.001zm-9.258 20.499v.01l.001.021.003.021.004.022.005.021.006.022.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.023.018.024.019.024.021.024.022.025.023.024.024.025.052.049.056.05.061.051.066.051.07.051.075.051.079.052.084.052.088.052.092.052.097.052.102.051.105.052.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.048.144.049.147.047.152.047.155.047.16.045.163.045.167.043.171.043.176.041.178.041.183.039.187.039.19.037.194.035.197.035.202.033.204.031.209.03.212.029.216.027.219.025.222.024.226.021.23.02.233.018.236.016.24.015.243.012.246.01.249.008.253.005.256.004.259.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.021.224-.024.22-.026.216-.027.212-.028.21-.031.205-.031.202-.034.198-.034.194-.036.191-.037.187-.039.183-.04.179-.04.175-.042.172-.043.168-.044.163-.045.16-.046.155-.046.152-.047.148-.048.143-.049.139-.049.136-.05.131-.05.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.053.083-.051.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.05.023-.024.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.023.01-.022.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.127l-.077.055-.08.053-.083.054-.085.053-.087.052-.09.052-.093.051-.095.05-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.045-.118.044-.12.043-.122.042-.124.042-.126.041-.128.04-.13.04-.132.038-.134.038-.135.037-.138.037-.139.035-.142.035-.143.034-.144.033-.147.032-.148.031-.15.03-.151.03-.153.029-.154.027-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.01-.179.008-.179.008-.181.006-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.006-.179-.008-.179-.008-.178-.01-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.027-.153-.029-.151-.03-.15-.03-.148-.031-.146-.032-.145-.033-.143-.034-.141-.035-.14-.035-.137-.037-.136-.037-.134-.038-.132-.038-.13-.04-.128-.04-.126-.041-.124-.042-.122-.042-.12-.044-.117-.043-.116-.045-.113-.045-.112-.046-.109-.047-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.05-.093-.052-.09-.051-.087-.052-.085-.053-.083-.054-.08-.054-.077-.054v4.127zm0-5.654v.011l.001.021.003.021.004.021.005.022.006.022.007.022.009.022.01.022.011.023.012.023.013.023.015.024.016.023.017.024.018.024.019.024.021.024.022.024.023.025.024.024.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.052.11.051.114.051.119.052.123.05.127.051.131.05.135.049.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.044.171.042.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.022.23.02.233.018.236.016.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.012.241-.015.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.048.139-.05.136-.049.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.051.051-.049.023-.025.023-.024.021-.025.02-.024.019-.024.018-.024.017-.024.015-.023.014-.023.013-.024.012-.022.01-.023.01-.023.008-.022.006-.022.006-.022.004-.021.004-.022.001-.021.001-.021v-4.139l-.077.054-.08.054-.083.054-.085.052-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.044-.118.044-.12.044-.122.042-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.035-.143.033-.144.033-.147.033-.148.031-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.009-.179.009-.179.007-.181.007-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.007-.179-.007-.179-.009-.178-.009-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.031-.146-.033-.145-.033-.143-.033-.141-.035-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.04-.126-.041-.124-.042-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.051-.093-.051-.09-.051-.087-.053-.085-.052-.083-.054-.08-.054-.077-.054v4.139zm0-5.666v.011l.001.02.003.022.004.021.005.022.006.021.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.024.018.023.019.024.021.025.022.024.023.024.024.025.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.051.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.043.171.043.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.021.23.02.233.018.236.017.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.013.241-.014.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.049.139-.049.136-.049.131-.051.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.049.023-.025.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.022.01-.023.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.153l-.077.054-.08.054-.083.053-.085.053-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.048-.105.048-.106.048-.109.046-.111.046-.114.046-.115.044-.118.044-.12.043-.122.043-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.034-.143.034-.144.033-.147.032-.148.032-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.024-.161.024-.162.023-.163.023-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.01-.178.01-.179.009-.179.007-.181.006-.182.006-.182.004-.184.003-.184.001-.185.001-.185-.001-.184-.001-.184-.003-.182-.004-.182-.006-.181-.006-.179-.007-.179-.009-.178-.01-.176-.01-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.023-.162-.023-.161-.024-.159-.024-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.032-.146-.032-.145-.033-.143-.034-.141-.034-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.041-.126-.041-.124-.041-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.048-.105-.048-.102-.048-.1-.05-.097-.049-.095-.051-.093-.051-.09-.052-.087-.052-.085-.053-.083-.053-.08-.054-.077-.054v4.153zm8.74-8.179l-.257.004-.254.005-.25.008-.247.011-.244.012-.241.014-.237.016-.233.018-.231.021-.226.022-.224.023-.22.026-.216.027-.212.028-.21.031-.205.032-.202.033-.198.034-.194.036-.191.038-.187.038-.183.04-.179.041-.175.042-.172.043-.168.043-.163.045-.16.046-.155.046-.152.048-.148.048-.143.048-.139.049-.136.05-.131.05-.126.051-.123.051-.118.051-.114.052-.11.052-.106.052-.101.052-.096.052-.092.052-.088.052-.083.052-.079.052-.074.051-.07.052-.065.051-.06.05-.056.05-.051.05-.023.025-.023.024-.021.024-.02.025-.019.024-.018.024-.017.023-.015.024-.014.023-.013.023-.012.023-.01.023-.01.022-.008.022-.006.023-.006.021-.004.022-.004.021-.001.021-.001.021.001.021.001.021.004.021.004.022.006.021.006.023.008.022.01.022.01.023.012.023.013.023.014.023.015.024.017.023.018.024.019.024.02.025.021.024.023.024.023.025.051.05.056.05.06.05.065.051.07.052.074.051.079.052.083.052.088.052.092.052.096.052.101.052.106.052.11.052.114.052.118.051.123.051.126.051.131.05.136.05.139.049.143.048.148.048.152.048.155.046.16.046.163.045.168.043.172.043.175.042.179.041.183.04.187.038.191.038.194.036.198.034.202.033.205.032.21.031.212.028.216.027.22.026.224.023.226.022.231.021.233.018.237.016.241.014.244.012.247.011.25.008.254.005.257.004.26.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.022.224-.023.22-.026.216-.027.212-.028.21-.031.205-.032.202-.033.198-.034.194-.036.191-.038.187-.038.183-.04.179-.041.175-.042.172-.043.168-.043.163-.045.16-.046.155-.046.152-.048.148-.048.143-.048.139-.049.136-.05.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.05.051-.05.023-.025.023-.024.021-.024.02-.025.019-.024.018-.024.017-.023.015-.024.014-.023.013-.023.012-.023.01-.023.01-.022.008-.022.006-.023.006-.021.004-.022.004-.021.001-.021.001-.021-.001-.021-.001-.021-.004-.021-.004-.022-.006-.021-.006-.023-.008-.022-.01-.022-.01-.023-.012-.023-.013-.023-.014-.023-.015-.024-.017-.023-.018-.024-.019-.024-.02-.025-.021-.024-.023-.024-.023-.025-.051-.05-.056-.05-.06-.05-.065-.051-.07-.052-.074-.051-.079-.052-.083-.052-.088-.052-.092-.052-.096-.052-.101-.052-.106-.052-.11-.052-.114-.052-.118-.051-.123-.051-.126-.051-.131-.05-.136-.05-.139-.049-.143-.048-.148-.048-.152-.048-.155-.046-.16-.046-.163-.045-.168-.043-.172-.043-.175-.042-.179-.041-.183-.04-.187-.038-.191-.038-.194-.036-.198-.034-.202-.033-.205-.032-.21-.031-.212-.028-.216-.027-.22-.026-.224-.023-.226-.022-.231-.021-.233-.018-.237-.016-.241-.014-.244-.012-.247-.011-.25-.008-.254-.005-.257-.004-.26-.001-.26.001z")},"insertDatabaseIcon"),RAe=a(function(e,t){e.append("defs").append("symbol").attr("id",t+"-computer").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M2 2v13h20v-13h-20zm18 11h-16v-9h16v9zm-10.228 6l.466-1h3.524l.467 1h-4.457zm14.228 3h-24l2-6h2.104l-1.33 4h18.45l-1.297-4h2.073l2 6zm-5-10h-14v-7h14v7z")},"insertComputerIcon"),LAe=a(function(e,t){e.append("defs").append("symbol").attr("id",t+"-clock").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm5.848 12.459c.202.038.202.333.001.372-1.907.361-6.045 1.111-6.547 1.111-.719 0-1.301-.582-1.301-1.301 0-.512.77-5.447 1.125-7.445.034-.192.312-.181.343.014l.985 6.238 5.394 1.011z")},"insertClockIcon"),DAe=a(function(e,t){e.append("defs").append("marker").attr("id",t+"-arrowhead").attr("refX",9).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")},"insertArrowHead"),IAe=a(function(e,t){e.append("defs").append("marker").attr("id",t+"-arrowend").attr("refX",1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 10 0 L 0 5 L 10 10 z")},"insertArrowEnd"),NAe=a(function(e,t){e.append("defs").append("marker").attr("id",t+"-filled-head").attr("refX",18).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")},"insertArrowFilledHead"),MAe=a(function(e,t){let i=e.append("defs").append("marker").attr("id",t+"-crosshead").attr("markerWidth",15).attr("markerHeight",8).attr("orient","auto").attr("refX",16).attr("refY",4);i.append("path").attr("fill","black").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1px").attr("d","M 9,2 V 6 L16,4 Z"),i.append("path").attr("fill","none").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1px").attr("d","M 0,1 L 6,7 M 6,1 L 0,7")},"insertArrowCrossHead"),OAe=a((e,t)=>({fontFamily:e[t+"FontFamily"],fontSize:e[t+"FontSize"],fontWeight:e[t+"FontWeight"]}),"getC4ShapeFont"),xl=(function(){function e(n,s,o,l,u,h,d){let f=s.append("text").attr("x",o+u/2).attr("y",l+h/2+5).style("text-anchor","middle").text(n);i(f,d)}a(e,"byText");function t(n,s,o,l,u,h,d,f){let{fontSize:p,fontFamily:m,fontWeight:g}=f,x=n.split(He.lineBreakRegex);for(let b=0;b<x.length;b++){let T=b*p-p*(x.length-1)/2,k=s.append("text").attr("x",o+u/2).attr("y",l).style("text-anchor","middle").attr("dominant-baseline","middle").style("font-size",p).style("font-weight",g).style("font-family",m);k.append("tspan").attr("dy",T).text(x[b]).attr("alignment-baseline","mathematical"),i(k,d)}}a(t,"byTspan");function r(n,s,o,l,u,h,d,f){let p=s.append("switch"),g=p.append("foreignObject").attr("x",o).attr("y",l).attr("width",u).attr("height",h).append("xhtml:div").style("display","table").style("height","100%").style("width","100%");g.append("div").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(n),t(n,p,o,l,u,h,d,f),i(g,d)}a(r,"byFo");function i(n,s){for(let o in s)s.hasOwnProperty(o)&&n.attr(o,s[o])}return a(i,"_setTextAttrs"),function(n){return n.textPlacement==="fo"?r:n.textPlacement==="old"?e:t}})(),Bs={drawRect:r5,drawBoundary:wAe,drawC4Shape:EAe,drawRels:_Ae,drawImage:qW,insertArrowHead:DAe,insertArrowEnd:IAe,insertArrowFilledHead:NAe,insertArrowCrossHead:MAe,insertDatabaseIcon:AAe,insertComputerIcon:RAe,insertClockIcon:LAe}});function UW(e){return Number.isSafeInteger(e)&&e>=0}var HW=v(()=>{"use strict";a(UW,"isLength")});function w2(e){return e!=null&&typeof e!="function"&&UW(e.length)}var i5=v(()=>{"use strict";HW();a(w2,"isArrayLike")});function YW(e){return e==="__proto__"}var KW=v(()=>{"use strict";a(YW,"isUnsafeProperty")});function Rc(e){return e==null||typeof e!="object"&&typeof e!="function"}var Ry=v(()=>{"use strict";a(Rc,"isPrimitive")});function E2(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}var n5=v(()=>{"use strict";a(E2,"getSymbols")});function bl(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}var Ly=v(()=>{"use strict";a(bl,"getTag")});var Dy,Lc,kh,Ch,vh,Iy,Ny,My,Oy,A2,Py,tp,By,R2,L2,D2,I2,N2,M2,O2,P2,B2,$2=v(()=>{"use strict";Dy="[object RegExp]",Lc="[object String]",kh="[object Number]",Ch="[object Boolean]",vh="[object Arguments]",Iy="[object Symbol]",Ny="[object Date]",My="[object Map]",Oy="[object Set]",A2="[object Array]",Py="[object ArrayBuffer]",tp="[object Object]",By="[object DataView]",R2="[object Uint8Array]",L2="[object Uint8ClampedArray]",D2="[object Uint16Array]",I2="[object Uint32Array]",N2="[object Int8Array]",M2="[object Int16Array]",O2="[object Int32Array]",P2="[object Float32Array]",B2="[object Float64Array]"});function rp(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}var F2=v(()=>{"use strict";a(rp,"isTypedArray")});function XW(e,t){return ip(e,void 0,e,new Map,t)}function ip(e,t,r,i=new Map,n=void 0){let s=n?.(e,t,r,i);if(s!==void 0)return s;if(Rc(e))return e;if(i.has(e))return i.get(e);if(Array.isArray(e)){let o=new Array(e.length);i.set(e,o);for(let l=0;l<e.length;l++)o[l]=ip(e[l],l,r,i,n);return Object.hasOwn(e,"index")&&(o.index=e.index),Object.hasOwn(e,"input")&&(o.input=e.input),o}if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp){let o=new RegExp(e.source,e.flags);return o.lastIndex=e.lastIndex,o}if(e instanceof Map){let o=new Map;i.set(e,o);for(let[l,u]of e)o.set(l,ip(u,l,r,i,n));return o}if(e instanceof Set){let o=new Set;i.set(e,o);for(let l of e)o.add(ip(l,void 0,r,i,n));return o}if(typeof Buffer<"u"&&Buffer.isBuffer(e))return e.subarray();if(rp(e)){let o=new(Object.getPrototypeOf(e)).constructor(e.length);i.set(e,o);for(let l=0;l<e.length;l++)o[l]=ip(e[l],l,r,i,n);return o}if(e instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&e instanceof SharedArrayBuffer)return e.slice(0);if(e instanceof DataView){let o=new DataView(e.buffer.slice(0),e.byteOffset,e.byteLength);return i.set(e,o),Xa(o,e,r,i,n),o}if(typeof File<"u"&&e instanceof File){let o=new File([e],e.name,{type:e.type});return i.set(e,o),Xa(o,e,r,i,n),o}if(typeof Blob<"u"&&e instanceof Blob){let o=new Blob([e],{type:e.type});return i.set(e,o),Xa(o,e,r,i,n),o}if(e instanceof Error){let o=structuredClone(e);return i.set(e,o),o.message=e.message,o.name=e.name,o.stack=e.stack,o.cause=e.cause,o.constructor=e.constructor,Xa(o,e,r,i,n),o}if(e instanceof Boolean){let o=new Boolean(e.valueOf());return i.set(e,o),Xa(o,e,r,i,n),o}if(e instanceof Number){let o=new Number(e.valueOf());return i.set(e,o),Xa(o,e,r,i,n),o}if(e instanceof String){let o=new String(e.valueOf());return i.set(e,o),Xa(o,e,r,i,n),o}if(typeof e=="object"&&PAe(e)){let o=Object.create(Object.getPrototypeOf(e));return i.set(e,o),Xa(o,e,r,i,n),o}return e}function Xa(e,t,r=e,i,n){let s=[...Object.keys(t),...E2(t)];for(let o=0;o<s.length;o++){let l=s[o],u=Object.getOwnPropertyDescriptor(e,l);(u==null||u.writable)&&(e[l]=ip(t[l],l,r,i,n))}}function PAe(e){switch(bl(e)){case vh:case A2:case Py:case By:case Ch:case Ny:case P2:case B2:case N2:case M2:case O2:case My:case kh:case tp:case Dy:case Oy:case Lc:case Iy:case R2:case L2:case D2:case I2:return!0;default:return!1}}var QW=v(()=>{"use strict";n5();Ly();$2();Ry();F2();a(XW,"cloneDeepWith");a(ip,"cloneDeepWithImpl");a(Xa,"copyProperties");a(PAe,"isCloneableObject")});function ZW(e,t){return XW(e,(r,i,n,s)=>{let o=t?.(r,i,n,s);if(o!==void 0)return o;if(typeof e=="object"){if(bl(e)===tp&&typeof e.constructor!="function"){let l={};return s.set(e,l),Xa(l,e,n,s),l}switch(Object.prototype.toString.call(e)){case kh:case Lc:case Ch:{let l=new e.constructor(e?.valueOf());return Xa(l,e),l}case vh:{let l={};return Xa(l,e),l.length=e.length,l[Symbol.iterator]=e[Symbol.iterator],l}default:return}}})}var JW=v(()=>{"use strict";QW();Ly();$2();a(ZW,"cloneDeepWith")});function a5(e){return ZW(e)}var ez=v(()=>{"use strict";JW();a(a5,"cloneDeep")});function $y(e){return e!==null&&typeof e=="object"&&bl(e)==="[object Arguments]"}var s5=v(()=>{"use strict";Ly();a($y,"isArguments")});function Fy(e){return typeof e=="object"&&e!==null}var o5=v(()=>{"use strict";a(Fy,"isObjectLike")});function tz(e){return Fy(e)&&w2(e)}var rz=v(()=>{"use strict";i5();o5();a(tz,"isArrayLikeObject")});function iz(e){return Array.isArray(e)}var nz=v(()=>{"use strict";a(iz,"isArray")});function Sh(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError("Expected a function");let r=a(function(...n){let s=t?t.apply(this,n):n[0],o=r.cache;if(o.has(s))return o.get(s);let l=e.apply(this,n);return r.cache=o.set(s,l)||o,l},"memoized"),i=Sh.Cache||Map;return r.cache=new i,r}var az=v(()=>{"use strict";a(Sh,"memoize");Sh.Cache=Map});function sz(){}var oz=v(()=>{"use strict";a(sz,"noop")});function lz(e){let t=e?.constructor,r=typeof t=="function"?t.prototype:Object.prototype;return e===r}var cz=v(()=>{"use strict";a(lz,"isPrototype")});function Dc(e){return rp(e)}var V2=v(()=>{"use strict";F2();a(Dc,"isTypedArray")});function c5(e){if(Rc(e))return e;let t=bl(e);if(!BAe(e))return{};if(iz(e)){let i=Array.from(e);return e.length>0&&typeof e[0]=="string"&&Object.hasOwn(e,"index")&&(i.index=e.index,i.input=e.input),i}if(Dc(e)){let i=e,n=i.constructor;return new n(i.buffer,i.byteOffset,i.length)}if(t===Py)return new ArrayBuffer(e.byteLength);if(t===By){let i=e,n=i.buffer,s=i.byteOffset,o=i.byteLength,l=new ArrayBuffer(o),u=new Uint8Array(n,s,o);return new Uint8Array(l).set(u),new DataView(l)}if(t===Ch||t===kh||t===Lc){let i=e.constructor,n=new i(e.valueOf());return t===Lc?FAe(n,e):l5(n,e),n}if(t===Ny)return new Date(Number(e));if(t===Dy){let i=e,n=new RegExp(i.source,i.flags);return n.lastIndex=i.lastIndex,n}if(t===Iy)return Object(Symbol.prototype.valueOf.call(e));if(t===My){let i=e,n=new Map;return i.forEach((s,o)=>{n.set(o,s)}),n}if(t===Oy){let i=e,n=new Set;return i.forEach(s=>{n.add(s)}),n}if(t===vh){let i=e,n={};return l5(n,i),n.length=i.length,n[Symbol.iterator]=i[Symbol.iterator],n}let r={};return VAe(r,e),l5(r,e),$Ae(r,e),r}function BAe(e){switch(bl(e)){case vh:case A2:case Py:case By:case Ch:case Ny:case P2:case B2:case N2:case M2:case O2:case My:case kh:case tp:case Dy:case Oy:case Lc:case Iy:case R2:case L2:case D2:case I2:return!0;default:return!1}}function l5(e,t){for(let r in t)Object.hasOwn(t,r)&&(e[r]=t[r])}function $Ae(e,t){let r=Object.getOwnPropertySymbols(t);for(let i=0;i<r.length;i++){let n=r[i];Object.prototype.propertyIsEnumerable.call(t,n)&&(e[n]=t[n])}}function FAe(e,t){let r=t.valueOf().length;for(let i in t)Object.hasOwn(t,i)&&(Number.isNaN(Number(i))||Number(i)>=r)&&(e[i]=t[i])}function VAe(e,t){let r=Object.getPrototypeOf(t);r!==null&&typeof t.constructor=="function"&&Object.setPrototypeOf(e,r)}var uz=v(()=>{"use strict";Ry();Ly();$2();nz();V2();a(c5,"clone");a(BAe,"isCloneableObject");a(l5,"copyOwnProperties");a($Ae,"copySymbolProperties");a(FAe,"cloneStringObjectProperties");a(VAe,"copyPrototype")});function G2(e){if(typeof e!="object"||e==null)return!1;if(Object.getPrototypeOf(e)===null)return!0;if(Object.prototype.toString.call(e)!=="[object Object]"){let r=e[Symbol.toStringTag];return r==null||!Object.getOwnPropertyDescriptor(e,Symbol.toStringTag)?.writable?!1:e.toString()===`[object ${r}]`}let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}var hz=v(()=>{"use strict";a(G2,"isPlainObject")});function dz(e){if(Rc(e))return e;if(Array.isArray(e)||rp(e)||e instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&e instanceof SharedArrayBuffer)return e.slice(0);let t=Object.getPrototypeOf(e);if(t==null)return Object.assign(Object.create(t),e);let r=t.constructor;if(e instanceof Date||e instanceof Map||e instanceof Set)return new r(e);if(e instanceof RegExp){let i=new r(e);return i.lastIndex=e.lastIndex,i}if(e instanceof DataView)return new r(e.buffer.slice(0));if(e instanceof Error){let i;return e instanceof AggregateError?i=new r(e.errors,e.message,{cause:e.cause}):i=new r(e.message,{cause:e.cause}),i.stack=e.stack,Object.assign(i,e),i}if(typeof File<"u"&&e instanceof File)return new r([e],e.name,{type:e.type,lastModified:e.lastModified});if(typeof e=="object"){let i=Object.create(t);return Object.assign(i,e)}return e}var fz=v(()=>{"use strict";Ry();F2();a(dz,"clone")});function pz(e,...t){let r=t.slice(0,-1),i=t[t.length-1],n=e;for(let s=0;s<r.length;s++){let o=r[s];n=W2(n,o,i,new Map)}return n}function W2(e,t,r,i){if(Rc(e)&&(e=Object(e)),t==null||typeof t!="object")return e;if(i.has(t))return dz(i.get(t));if(i.set(t,e),Array.isArray(t)){t=t.slice();for(let s=0;s<t.length;s++)t[s]=t[s]??void 0}let n=[...Object.keys(t),...E2(t)];for(let s=0;s<n.length;s++){let o=n[s];if(YW(o))continue;let l=t[o],u=e[o];if($y(l)&&(l={...l}),$y(u)&&(u={...u}),typeof Buffer<"u"&&Buffer.isBuffer(l)&&(l=a5(l)),Array.isArray(l))if(Array.isArray(u)){let d=[],f=Reflect.ownKeys(u);for(let p=0;p<f.length;p++){let m=f[p];d[m]=u[m]}u=d}else if(tz(u)){let d=[];for(let f=0;f<u.length;f++)d[f]=u[f];u=d}else u=[];let h=r(u,l,o,e,t,i);h!==void 0?e[o]=h:Array.isArray(l)||Fy(u)&&Fy(l)&&(G2(u)||G2(l)||Dc(u)||Dc(l))?e[o]=W2(u,l,r,i):u==null&&G2(l)?e[o]=W2({},l,r,i):u==null&&Dc(l)?e[o]=a5(l):(u===void 0||l!==void 0)&&(e[o]=l)}return e}var mz=v(()=>{"use strict";ez();KW();fz();Ry();n5();s5();rz();o5();hz();V2();a(pz,"mergeWith");a(W2,"mergeWithDeep")});function u5(e,...t){return pz(e,...t,sz)}var gz=v(()=>{"use strict";mz();oz();a(u5,"merge")});function z2(e){if(e==null)return!0;if(w2(e))return typeof e.splice!="function"&&typeof e!="string"&&(typeof Buffer>"u"||!Buffer.isBuffer(e))&&!Dc(e)&&!$y(e)?!1:e.length===0;if(typeof e=="object"){if(e instanceof Map||e instanceof Set)return e.size===0;let t=Object.keys(e);return lz(e)?t.filter(r=>r!=="constructor").length===0:t.length===0}return!0}var yz=v(()=>{"use strict";s5();i5();V2();cz();a(z2,"isEmpty")});var q2=v(()=>{"use strict";az();uz();gz();yz()});function f5(e,t){if(!e)return t;let r=`curve${e.charAt(0).toUpperCase()+e.slice(1)}`;return GAe[r]??t}function jAe(e,t){let r=e.trim();if(r)return t.securityLevel!=="loose"?(0,Tz.sanitizeUrl)(r):r}function vz(e,t){return!e||!t?0:Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function HAe(e){let t,r=0;e.forEach(n=>{r+=vz(n,t),t=n});let i=r/2;return p5(e,i)}function YAe(e){return e.length===1?e[0]:HAe(e)}function XAe(e,t,r){let i=structuredClone(r);W.info("our points",i),t!=="start_left"&&t!=="start_right"&&i.reverse();let n=25+e,s=p5(i,n),o=10+e*.5,l=Math.atan2(i[0].y-s.y,i[0].x-s.x),u={x:0,y:0};return t==="start_left"?(u.x=Math.sin(l+Math.PI)*o+(i[0].x+s.x)/2,u.y=-Math.cos(l+Math.PI)*o+(i[0].y+s.y)/2):t==="end_right"?(u.x=Math.sin(l-Math.PI)*o+(i[0].x+s.x)/2-5,u.y=-Math.cos(l-Math.PI)*o+(i[0].y+s.y)/2-5):t==="end_left"?(u.x=Math.sin(l)*o+(i[0].x+s.x)/2-5,u.y=-Math.cos(l)*o+(i[0].y+s.y)/2-5):(u.x=Math.sin(l)*o+(i[0].x+s.x)/2,u.y=-Math.cos(l)*o+(i[0].y+s.y)/2),u}function m5(e){let t="",r="";for(let i of e)i!==void 0&&(i.startsWith("color:")||i.startsWith("text-align:")?r=r+i+";":t=t+i+";");return{style:t,labelStyle:r}}function QAe(e){let t="",r="0123456789abcdef",i=r.length;for(let n=0;n<e;n++)t+=r.charAt(Math.floor(Math.random()*i));return t}function U2(e,t){return Vy(e,t).height}function Qi(e,t){return Vy(e,t).width}function x5(e){return"str"in e}function xr(e,t){return u5({},e,t)}function _r(e){return e??null}function i3e(e,t){let r=Math.round(e.x),i=Math.round(e.y),n=t.replace(/(\d+\.\d+)/g,s=>Math.round(parseFloat(s)).toString());return n.includes(r.toString())||n.includes(i.toString())}var Tz,d5,GAe,WAe,zAe,kz,Cz,qAe,UAe,xz,p5,KAe,bz,g5,y5,ZAe,JAe,_h,e3e,Vy,h5,j2,t3e,r3e,Qn,St,Sz,Mn,Ic,Et=v(()=>{"use strict";Tz=Wa(ep(),1);sr();dr();jx();nt();Ju();bf();q2();Zx();d5="\u200B",GAe={curveBasis:Ps,curveBasisClosed:h2,curveBasisOpen:d2,curveBumpX:my,curveBumpY:gy,curveBundle:q4,curveCardinalClosed:j4,curveCardinalOpen:H4,curveCardinal:Ty,curveCatmullRomClosed:K4,curveCatmullRomOpen:X4,curveCatmullRom:vy,curveLinear:To,curveLinearClosed:y2,curveMonotoneX:Sy,curveMonotoneY:_y,curveNatural:Zf,curveStep:Jf,curveStepAfter:Ey,curveStepBefore:wy},WAe=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,zAe=a(function(e,t){let r=kz(e,/(?:init\b)|(?:initialize\b)/),i={};if(Array.isArray(r)){let o=r.map(l=>l.args);kf(o),i=ri(i,[...o])}else i=r.args;if(!i)return;let n=Ef(e,t),s="config";return i[s]!==void 0&&(n==="flowchart-v2"&&(n="flowchart"),i[n]=i[s],delete i[s]),i},"detectInit"),kz=a(function(e,t=null){try{let r=new RegExp(`[%]{2}(?![{]${WAe.source})(?=[}][%]{2}).*
`,"ig");e=e.trim().replace(r,"").replace(/'/gm,'"'),W.debug(`Detecting diagram directive${t!==null?" type:"+t:""} based on the text:${e}`);let i,n=[];for(;(i=Zu.exec(e))!==null;)if(i.index===Zu.lastIndex&&Zu.lastIndex++,i&&!t||t&&i[1]?.match(t)||t&&i[2]?.match(t)){let s=i[1]?i[1]:i[2],o=i[3]?i[3].trim():i[4]?JSON.parse(i[4].trim()):null;n.push({type:s,args:o})}return n.length===0?{type:e,args:null}:n.length===1?n[0]:n}catch(r){return W.error(`ERROR: ${r.message} - Unable to parse directive type: '${t}' based on the text: '${e}'`),{type:void 0,args:null}}},"detectDirective"),Cz=a(function(e){return e.replace(Zu,"")},"removeDirectives"),qAe=a(function(e,t){for(let[r,i]of t.entries())if(i.match(e))return r;return-1},"isSubstringInArray");a(f5,"interpolateToCurve");a(jAe,"formatUrl");UAe=a((e,...t)=>{let r=e.split("."),i=r.length-1,n=r[i],s=window;for(let o=0;o<i;o++)if(s=s[r[o]],!s){W.error(`Function name: ${e} not found in window`);return}s[n](...t)},"runFunc");a(vz,"distance");a(HAe,"traverseEdge");a(YAe,"calcLabelPosition");xz=a((e,t=2)=>{let r=Math.pow(10,t);return Math.round(e*r)/r},"roundNumber"),p5=a((e,t)=>{let r,i=t;for(let n of e){if(r){let s=vz(n,r);if(s===0)return r;if(s<i)i-=s;else{let o=i/s;if(o<=0)return r;if(o>=1)return{x:n.x,y:n.y};if(o>0&&o<1)return{x:xz((1-o)*r.x+o*n.x,5),y:xz((1-o)*r.y+o*n.y,5)}}}r=n}throw new Error("Could not find a suitable point for the given distance")},"calculatePoint"),KAe=a((e,t,r)=>{W.info(`our points ${JSON.stringify(t)}`),t[0]!==r&&(t=t.reverse());let n=p5(t,25),s=e?10:5,o=Math.atan2(t[0].y-n.y,t[0].x-n.x),l={x:0,y:0};return l.x=Math.sin(o)*s+(t[0].x+n.x)/2,l.y=-Math.cos(o)*s+(t[0].y+n.y)/2,l},"calcCardinalityPosition");a(XAe,"calcTerminalLabelPosition");a(m5,"getStylesFromArray");bz=0,g5=a(()=>(bz++,"id-"+Math.random().toString(36).substr(2,12)+"-"+bz),"generateId");a(QAe,"makeRandomHex");y5=a(e=>QAe(e.length),"random"),ZAe=a(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"),JAe=a(function(e,t){let r=t.text.replace(He.lineBreakRegex," "),[,i]=Qn(t.fontSize),n=e.append("text");n.attr("x",t.x),n.attr("y",t.y),n.style("text-anchor",t.anchor),n.style("font-family",t.fontFamily),n.style("font-size",i),n.style("font-weight",t.fontWeight),n.attr("fill",t.fill),t.class!==void 0&&n.attr("class",t.class);let s=n.append("tspan");return s.attr("x",t.x+t.textMargin*2),s.attr("fill",t.fill),s.text(r),n},"drawSimpleText"),_h=Sh((e,t,r)=>{if(!e||(r=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},r),He.lineBreakRegex.test(e)))return e;let i=e.split(" ").filter(Boolean),n=[],s="";return i.forEach((o,l)=>{let u=Qi(`${o} `,r),h=Qi(s,r);if(u>t){let{hyphenatedStrings:p,remainingWord:m}=e3e(o,t,"-",r);n.push(s,...p),s=m}else h+u>=t?(n.push(s),s=o):s=[s,o].filter(Boolean).join(" ");l+1===i.length&&n.push(s)}),n.filter(o=>o!=="").join(r.joinWith)},(e,t,r)=>`${e}${t}${r.fontSize}${r.fontWeight}${r.fontFamily}${r.joinWith}`),e3e=Sh((e,t,r="-",i)=>{i=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},i);let n=[...e],s=[],o="";return n.forEach((l,u)=>{let h=`${o}${l}`;if(Qi(h,i)>=t){let f=u+1,p=n.length===f,m=`${h}${r}`;s.push(p?h:m),o=""}else o=h}),{hyphenatedStrings:s,remainingWord:o}},(e,t,r="-",i)=>`${e}${t}${r}${i.fontSize}${i.fontWeight}${i.fontFamily}`);a(U2,"calculateTextHeight");a(Qi,"calculateTextWidth");Vy=Sh((e,t)=>{let{fontSize:r=12,fontFamily:i="Arial",fontWeight:n=400}=t;if(!e)return{width:0,height:0};let[,s]=Qn(r),o=["sans-serif",i],l=e.split(He.lineBreakRegex),u=[],h=Se("body");if(!h.remove)return{width:0,height:0,lineHeight:0};let d=h.append("svg");for(let p of o){let m=0,g={width:0,height:0,lineHeight:0};for(let x of l){let b=ZAe();b.text=x||d5;let T=JAe(d,b).style("font-size",s).style("font-weight",n).style("font-family",p),k=(T._groups||T)[0][0].getBBox();if(k.width===0&&k.height===0)throw new Error("svg element not in render tree");g.width=Math.round(Math.max(g.width,k.width)),m=Math.round(k.height),g.height+=m,g.lineHeight=Math.round(Math.max(g.lineHeight,m))}u.push(g)}d.remove();let f=isNaN(u[1].height)||isNaN(u[1].width)||isNaN(u[1].lineHeight)||u[0].height>u[1].height&&u[0].width>u[1].width&&u[0].lineHeight>u[1].lineHeight?0:1;return u[f]},(e,t)=>`${e}${t.fontSize}${t.fontWeight}${t.fontFamily}`),h5=class{constructor(t=!1,r){this.count=0;this.count=r?r.length:0,this.next=t?()=>this.count++:()=>Date.now()}static{a(this,"InitIDGenerator")}},t3e=a(function(e){return j2=j2||document.createElement("div"),e=escape(e).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),j2.innerHTML=e,unescape(j2.textContent)},"entityDecode");a(x5,"isDetailedError");r3e=a((e,t,r,i)=>{if(!i)return;let n=e.node()?.getBBox();n&&e.append("text").text(i).attr("text-anchor","middle").attr("x",n.x+n.width/2).attr("y",-r).attr("class",t)},"insertTitle"),Qn=a(e=>{if(typeof e=="number")return[e,e+"px"];let t=parseInt(e??"",10);return Number.isNaN(t)?[void 0,void 0]:e===String(t)?[t,e+"px"]:[t,e]},"parseFontSize");a(xr,"cleanAndMerge");St={assignWithDepth:ri,wrapLabel:_h,calculateTextHeight:U2,calculateTextWidth:Qi,calculateTextDimensions:Vy,cleanAndMerge:xr,detectInit:zAe,detectDirective:kz,isSubstringInArray:qAe,interpolateToCurve:f5,calcLabelPosition:YAe,calcCardinalityPosition:KAe,calcTerminalLabelPosition:XAe,formatUrl:jAe,getStylesFromArray:m5,generateId:g5,random:y5,runFunc:UAe,entityDecode:t3e,insertTitle:r3e,isLabelCoordinateInPath:i3e,parseFontSize:Qn,InitIDGenerator:h5},Sz=a(function(e){let t=e;return t=t.replace(/style.*:\S*#.*;/g,function(r){return r.substring(0,r.length-1)}),t=t.replace(/classDef.*:\S*#.*;/g,function(r){return r.substring(0,r.length-1)}),t=t.replace(/#\w+;/g,function(r){let i=r.substring(1,r.length-1);return/^\+?\d+$/.test(i)?"\uFB02\xB0\xB0"+i+"\xB6\xDF":"\uFB02\xB0"+i+"\xB6\xDF"}),t},"encodeEntities"),Mn=a(function(e){return e.replace(/fl°°/g,"&#").replace(/fl°/g,"&").replace(/¶ß/g,";")},"decodeEntities"),Ic=a((e,t,{counter:r=0,prefix:i,suffix:n},s)=>s||`${i?`${i}_`:""}${e}_${t}_${r}${n?`_${n}`:""}`,"getEdgeId");a(_r,"handleUndefinedAttr");a(i3e,"isLabelCoordinateInPath")});function $s(e,t,r,i,n){if(!t[e].width)if(r)t[e].text=_h(t[e].text,n,i),t[e].textLines=t[e].text.split(He.lineBreakRegex).length,t[e].width=n,t[e].height=U2(t[e].text,i);else{let s=t[e].text.split(He.lineBreakRegex);t[e].textLines=s.length;let o=0;t[e].height=0,t[e].width=0;for(let l of s)t[e].width=Math.max(Qi(l,i),t[e].width),o=U2(l,i),t[e].height=t[e].height+o}}function Rz(e,t,r,i,n){let s=new X2(n);s.data.widthLimit=r.data.widthLimit/Math.min(b5,i.length);for(let[o,l]of i.entries()){let u=0;l.image={width:0,height:0,Y:0},l.sprite&&(l.image.width=48,l.image.height=48,l.image.Y=u,u=l.image.Y+l.image.height);let h=l.wrap&&At.wrap,d=H2(At);if(d.fontSize=d.fontSize+2,d.fontWeight="bold",$s("label",l,h,d,s.data.widthLimit),l.label.Y=u+8,u=l.label.Y+l.label.height,l.type&&l.type.text!==""){l.type.text="["+l.type.text+"]";let g=H2(At);$s("type",l,h,g,s.data.widthLimit),l.type.Y=u+5,u=l.type.Y+l.type.height}if(l.descr&&l.descr.text!==""){let g=H2(At);g.fontSize=g.fontSize-2,$s("descr",l,h,g,s.data.widthLimit),l.descr.Y=u+20,u=l.descr.Y+l.descr.height}if(o==0||o%b5===0){let g=r.data.startx+At.diagramMarginX,x=r.data.stopy+At.diagramMarginY+u;s.setData(g,g,x,x)}else{let g=s.data.stopx!==s.data.startx?s.data.stopx+At.diagramMarginX:s.data.startx,x=s.data.starty;s.setData(g,g,x,x)}s.name=l.alias;let f=n.db.getC4ShapeArray(l.alias),p=n.db.getC4ShapeKeys(l.alias);p.length>0&&Az(s,e,f,p),t=l.alias;let m=n.db.getBoundaries(t);m.length>0&&Rz(e,t,s,m,n),l.alias!=="global"&&Ez(e,l,s),r.data.stopy=Math.max(s.data.stopy+At.c4ShapeMargin,r.data.stopy),r.data.stopx=Math.max(s.data.stopx+At.c4ShapeMargin,r.data.stopx),Y2=Math.max(Y2,r.data.stopx),K2=Math.max(K2,r.data.stopy)}}var Y2,K2,wz,b5,At,X2,T5,Gy,H2,n3e,Ez,Az,Zn,_z,a3e,s3e,o3e,k5,Lz=v(()=>{"use strict";sr();jW();nt();TE();dr();LE();bt();bf();Et();Xr();Y2=0,K2=0,wz=4,b5=2;Eg.yy=Mg;At={},X2=class{static{a(this,"Bounds")}constructor(t){this.name="",this.data={},this.data.startx=void 0,this.data.stopx=void 0,this.data.starty=void 0,this.data.stopy=void 0,this.data.widthLimit=void 0,this.nextData={},this.nextData.startx=void 0,this.nextData.stopx=void 0,this.nextData.starty=void 0,this.nextData.stopy=void 0,this.nextData.cnt=0,T5(t.db.getConfig())}setData(t,r,i,n){this.nextData.startx=this.data.startx=t,this.nextData.stopx=this.data.stopx=r,this.nextData.starty=this.data.starty=i,this.nextData.stopy=this.data.stopy=n}updateVal(t,r,i,n){t[r]===void 0?t[r]=i:t[r]=n(i,t[r])}insert(t){this.nextData.cnt=this.nextData.cnt+1;let r=this.nextData.startx===this.nextData.stopx?this.nextData.stopx+t.margin:this.nextData.stopx+t.margin*2,i=r+t.width,n=this.nextData.starty+t.margin*2,s=n+t.height;(r>=this.data.widthLimit||i>=this.data.widthLimit||this.nextData.cnt>wz)&&(r=this.nextData.startx+t.margin+At.nextLinePaddingX,n=this.nextData.stopy+t.margin*2,this.nextData.stopx=i=r+t.width,this.nextData.starty=this.nextData.stopy,this.nextData.stopy=s=n+t.height,this.nextData.cnt=1),t.x=r,t.y=n,this.updateVal(this.data,"startx",r,Math.min),this.updateVal(this.data,"starty",n,Math.min),this.updateVal(this.data,"stopx",i,Math.max),this.updateVal(this.data,"stopy",s,Math.max),this.updateVal(this.nextData,"startx",r,Math.min),this.updateVal(this.nextData,"starty",n,Math.min),this.updateVal(this.nextData,"stopx",i,Math.max),this.updateVal(this.nextData,"stopy",s,Math.max)}init(t){this.name="",this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0,widthLimit:void 0},this.nextData={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0,cnt:0},T5(t.db.getConfig())}bumpLastMargin(t){this.data.stopx+=t,this.data.stopy+=t}},T5=a(function(e){ri(At,e),e.fontFamily&&(At.personFontFamily=At.systemFontFamily=At.messageFontFamily=e.fontFamily),e.fontSize&&(At.personFontSize=At.systemFontSize=At.messageFontSize=e.fontSize),e.fontWeight&&(At.personFontWeight=At.systemFontWeight=At.messageFontWeight=e.fontWeight)},"setConf"),Gy=a((e,t)=>({fontFamily:e[t+"FontFamily"],fontSize:e[t+"FontSize"],fontWeight:e[t+"FontWeight"]}),"c4ShapeFont"),H2=a(e=>({fontFamily:e.boundaryFontFamily,fontSize:e.boundaryFontSize,fontWeight:e.boundaryFontWeight}),"boundaryFont"),n3e=a(e=>({fontFamily:e.messageFontFamily,fontSize:e.messageFontSize,fontWeight:e.messageFontWeight}),"messageFont");a($s,"calcC4ShapeTextWH");Ez=a(function(e,t,r){t.x=r.data.startx,t.y=r.data.starty,t.width=r.data.stopx-r.data.startx,t.height=r.data.stopy-r.data.starty,t.label.y=At.c4ShapeMargin-35;let i=t.wrap&&At.wrap,n=H2(At);n.fontSize=n.fontSize+2,n.fontWeight="bold";let s=Qi(t.label.text,n);$s("label",t,i,n,s),Bs.drawBoundary(e,t,At)},"drawBoundary"),Az=a(function(e,t,r,i){let n=0;for(let s of i){n=0;let o=r[s],l=Gy(At,o.typeC4Shape.text);switch(l.fontSize=l.fontSize-2,o.typeC4Shape.width=Qi("\xAB"+o.typeC4Shape.text+"\xBB",l),o.typeC4Shape.height=l.fontSize+2,o.typeC4Shape.Y=At.c4ShapePadding,n=o.typeC4Shape.Y+o.typeC4Shape.height-4,o.image={width:0,height:0,Y:0},o.typeC4Shape.text){case"person":case"external_person":o.image.width=48,o.image.height=48,o.image.Y=n,n=o.image.Y+o.image.height;break}o.sprite&&(o.image.width=48,o.image.height=48,o.image.Y=n,n=o.image.Y+o.image.height);let u=o.wrap&&At.wrap,h=At.width-At.c4ShapePadding*2,d=Gy(At,o.typeC4Shape.text);if(d.fontSize=d.fontSize+2,d.fontWeight="bold",$s("label",o,u,d,h),o.label.Y=n+8,n=o.label.Y+o.label.height,o.type&&o.type.text!==""){o.type.text="["+o.type.text+"]";let m=Gy(At,o.typeC4Shape.text);$s("type",o,u,m,h),o.type.Y=n+5,n=o.type.Y+o.type.height}else if(o.techn&&o.techn.text!==""){o.techn.text="["+o.techn.text+"]";let m=Gy(At,o.techn.text);$s("techn",o,u,m,h),o.techn.Y=n+5,n=o.techn.Y+o.techn.height}let f=n,p=o.label.width;if(o.descr&&o.descr.text!==""){let m=Gy(At,o.typeC4Shape.text);$s("descr",o,u,m,h),o.descr.Y=n+20,n=o.descr.Y+o.descr.height,p=Math.max(o.label.width,o.descr.width),f=n-o.descr.textLines*5}p=p+At.c4ShapePadding,o.width=Math.max(o.width||At.width,p,At.width),o.height=Math.max(o.height||At.height,f,At.height),o.margin=o.margin||At.c4ShapeMargin,e.insert(o),Bs.drawC4Shape(t,o,At)}e.bumpLastMargin(At.c4ShapeMargin)},"drawC4ShapeArray"),Zn=class{static{a(this,"Point")}constructor(t,r){this.x=t,this.y=r}},_z=a(function(e,t){let r=e.x,i=e.y,n=t.x,s=t.y,o=r+e.width/2,l=i+e.height/2,u=Math.abs(r-n),h=Math.abs(i-s),d=h/u,f=e.height/e.width,p=null;return i==s&&r<n?p=new Zn(r+e.width,l):i==s&&r>n?p=new Zn(r,l):r==n&&i<s?p=new Zn(o,i+e.height):r==n&&i>s&&(p=new Zn(o,i)),r>n&&i<s?f>=d?p=new Zn(r,l+d*e.width/2):p=new Zn(o-u/h*e.height/2,i+e.height):r<n&&i<s?f>=d?p=new Zn(r+e.width,l+d*e.width/2):p=new Zn(o+u/h*e.height/2,i+e.height):r<n&&i>s?f>=d?p=new Zn(r+e.width,l-d*e.width/2):p=new Zn(o+e.height/2*u/h,i):r>n&&i>s&&(f>=d?p=new Zn(r,l-e.width/2*d):p=new Zn(o-e.height/2*u/h,i)),p},"getIntersectPoint"),a3e=a(function(e,t){let r={x:0,y:0};r.x=t.x+t.width/2,r.y=t.y+t.height/2;let i=_z(e,r);r.x=e.x+e.width/2,r.y=e.y+e.height/2;let n=_z(t,r);return{startPoint:i,endPoint:n}},"getIntersectPoints"),s3e=a(function(e,t,r,i,n){let s=0;for(let o of t){s=s+1;let l=o.wrap&&At.wrap,u=n3e(At);i.db.getC4Type()==="C4Dynamic"&&(o.label.text=s+": "+o.label.text);let d=Qi(o.label.text,u);$s("label",o,l,u,d),o.techn&&o.techn.text!==""&&(d=Qi(o.techn.text,u),$s("techn",o,l,u,d)),o.descr&&o.descr.text!==""&&(d=Qi(o.descr.text,u),$s("descr",o,l,u,d));let f=r(o.from),p=r(o.to),m=a3e(f,p);o.startPoint=m.startPoint,o.endPoint=m.endPoint}Bs.drawRels(e,t,At,n)},"drawRels");a(Rz,"drawInsideBoundary");o3e=a(function(e,t,r,i){At=J().c4;let n=J().securityLevel,s;n==="sandbox"&&(s=Se("#i"+t));let o=n==="sandbox"?Se(s.nodes()[0].contentDocument.body):Se("body"),l=i.db;i.db.setWrap(At.wrap),wz=l.getC4ShapeInRow(),b5=l.getC4BoundaryInRow(),W.debug(`C:${JSON.stringify(At,null,2)}`);let u=n==="sandbox"?o.select(`[id="${t}"]`):Se(`[id="${t}"]`);Bs.insertComputerIcon(u,t),Bs.insertDatabaseIcon(u,t),Bs.insertClockIcon(u,t);let h=new X2(i);h.setData(At.diagramMarginX,At.diagramMarginX,At.diagramMarginY,At.diagramMarginY),h.data.widthLimit=screen.availWidth,Y2=At.diagramMarginX,K2=At.diagramMarginY;let d=i.db.getTitle(),f=i.db.getBoundaries("");Rz(u,"",h,f,i),Bs.insertArrowHead(u,t),Bs.insertArrowEnd(u,t),Bs.insertArrowCrossHead(u,t),Bs.insertArrowFilledHead(u,t),s3e(u,i.db.getRels(),i.db.getC4Shape,i,t),h.data.stopx=Y2,h.data.stopy=K2;let p=h.data,g=p.stopy-p.starty+2*At.diagramMarginY,b=p.stopx-p.startx+2*At.diagramMarginX;d&&u.append("text").text(d).attr("x",(p.stopx-p.startx)/2-4*At.diagramMarginX).attr("y",p.starty+At.diagramMarginY),fr(u,g,b,At.useMaxWidth);let T=d?60:0;u.attr("viewBox",p.startx-At.diagramMarginX+" -"+(At.diagramMarginY+T)+" "+b+" "+(g+T)),W.debug("models:",p)},"draw"),k5={drawPersonOrSystemArray:Az,drawBoundary:Ez,setConf:T5,draw:o3e}});var l3e,Dz,Iz=v(()=>{"use strict";l3e=a(e=>`.person {
stroke: ${e.personBorder};
fill: ${e.personBkg};
}
`,"getStyles"),Dz=l3e});var Nz={};tr(Nz,{diagram:()=>c3e});var c3e,Mz=v(()=>{"use strict";TE();LE();Lz();Iz();c3e={parser:_$,db:Mg,renderer:k5,styles:Dz,init:a(({c4:e,wrap:t})=>{k5.setConf(e),Mg.setWrap(t)},"init")}});function Qz(e){return typeof e>"u"||e===null}function f3e(e){return typeof e=="object"&&e!==null}function p3e(e){return Array.isArray(e)?e:Qz(e)?[]:[e]}function m3e(e,t){var r,i,n,s;if(t)for(s=Object.keys(t),r=0,i=s.length;r<i;r+=1)n=s[r],e[n]=t[n];return e}function g3e(e,t){var r="",i;for(i=0;i<t;i+=1)r+=e;return r}function y3e(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}function Zz(e,t){var r="",i=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),i+" "+r):i}function zy(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=Zz(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}function C5(e,t,r,i,n){var s="",o="",l=Math.floor(n/2)-1;return i-t>l&&(s=" ... ",t=i-l+s.length),r-i>l&&(o=" ...",r=i+l-o.length),{str:s+e.slice(t,r).replace(/\t/g,"\u2192")+o,pos:i-t+s.length}}function v5(e,t){return Fi.repeat(" ",t-e.length)+e}function S3e(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),typeof t.indent!="number"&&(t.indent=1),typeof t.linesBefore!="number"&&(t.linesBefore=3),typeof t.linesAfter!="number"&&(t.linesAfter=2);for(var r=/\r?\n|\r|\0/g,i=[0],n=[],s,o=-1;s=r.exec(e.buffer);)n.push(s.index),i.push(s.index+s[0].length),e.position<=s.index&&o<0&&(o=i.length-2);o<0&&(o=i.length-1);var l="",u,h,d=Math.min(e.line+t.linesAfter,n.length).toString().length,f=t.maxLength-(t.indent+d+3);for(u=1;u<=t.linesBefore&&!(o-u<0);u++)h=C5(e.buffer,i[o-u],n[o-u],e.position-(i[o]-i[o-u]),f),l=Fi.repeat(" ",t.indent)+v5((e.line-u+1).toString(),d)+" | "+h.str+`
`+l;for(h=C5(e.buffer,i[o],n[o],e.position,f),l+=Fi.repeat(" ",t.indent)+v5((e.line+1).toString(),d)+" | "+h.str+`
`,l+=Fi.repeat("-",t.indent+d+3+h.pos)+`^
`,u=1;u<=t.linesAfter&&!(o+u>=n.length);u++)h=C5(e.buffer,i[o+u],n[o+u],e.position-(i[o]-i[o+u]),f),l+=Fi.repeat(" ",t.indent)+v5((e.line+u+1).toString(),d)+" | "+h.str+`
`;return l.replace(/\n$/,"")}function A3e(e){var t={};return e!==null&&Object.keys(e).forEach(function(r){e[r].forEach(function(i){t[String(i)]=r})}),t}function R3e(e,t){if(t=t||{},Object.keys(t).forEach(function(r){if(w3e.indexOf(r)===-1)throw new Jn('Unknown option "'+r+'" is met in definition of "'+e+'" YAML type.')}),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(r){return r},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=A3e(t.styleAliases||null),E3e.indexOf(this.kind)===-1)throw new Jn('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}function Pz(e,t){var r=[];return e[t].forEach(function(i){var n=r.length;r.forEach(function(s,o){s.tag===i.tag&&s.kind===i.kind&&s.multi===i.multi&&(n=o)}),r[n]=i}),r}function L3e(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},t,r;function i(n){n.multi?(e.multi[n.kind].push(n),e.multi.fallback.push(n)):e[n.kind][n.tag]=e.fallback[n.tag]=n}for(a(i,"collectType"),t=0,r=arguments.length;t<r;t+=1)arguments[t].forEach(i);return e}function _5(e){return this.extend(e)}function P3e(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}function B3e(){return null}function $3e(e){return e===null}function V3e(e){if(e===null)return!1;var t=e.length;return t===4&&(e==="true"||e==="True"||e==="TRUE")||t===5&&(e==="false"||e==="False"||e==="FALSE")}function G3e(e){return e==="true"||e==="True"||e==="TRUE"}function W3e(e){return Object.prototype.toString.call(e)==="[object Boolean]"}function q3e(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function j3e(e){return 48<=e&&e<=55}function U3e(e){return 48<=e&&e<=57}function H3e(e){if(e===null)return!1;var t=e.length,r=0,i=!1,n;if(!t)return!1;if(n=e[r],(n==="-"||n==="+")&&(n=e[++r]),n==="0"){if(r+1===t)return!0;if(n=e[++r],n==="b"){for(r++;r<t;r++)if(n=e[r],n!=="_"){if(n!=="0"&&n!=="1")return!1;i=!0}return i&&n!=="_"}if(n==="x"){for(r++;r<t;r++)if(n=e[r],n!=="_"){if(!q3e(e.charCodeAt(r)))return!1;i=!0}return i&&n!=="_"}if(n==="o"){for(r++;r<t;r++)if(n=e[r],n!=="_"){if(!j3e(e.charCodeAt(r)))return!1;i=!0}return i&&n!=="_"}}if(n==="_")return!1;for(;r<t;r++)if(n=e[r],n!=="_"){if(!U3e(e.charCodeAt(r)))return!1;i=!0}return!(!i||n==="_")}function Y3e(e){var t=e,r=1,i;if(t.indexOf("_")!==-1&&(t=t.replace(/_/g,"")),i=t[0],(i==="-"||i==="+")&&(i==="-"&&(r=-1),t=t.slice(1),i=t[0]),t==="0")return 0;if(i==="0"){if(t[1]==="b")return r*parseInt(t.slice(2),2);if(t[1]==="x")return r*parseInt(t.slice(2),16);if(t[1]==="o")return r*parseInt(t.slice(2),8)}return r*parseInt(t,10)}function K3e(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!Fi.isNegativeZero(e)}function Z3e(e){return!(e===null||!Q3e.test(e)||e[e.length-1]==="_")}function J3e(e){var t,r;return t=e.replace(/_/g,"").toLowerCase(),r=t[0]==="-"?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),t===".inf"?r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:r*parseFloat(t,10)}function t4e(e,t){var r;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(Fi.isNegativeZero(e))return"-0.0";return r=e.toString(10),e4e.test(r)?r.replace("e",".e"):r}function r4e(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||Fi.isNegativeZero(e))}function a4e(e){return e===null?!1:eq.exec(e)!==null||tq.exec(e)!==null}function s4e(e){var t,r,i,n,s,o,l,u=0,h=null,d,f,p;if(t=eq.exec(e),t===null&&(t=tq.exec(e)),t===null)throw new Error("Date resolve error");if(r=+t[1],i=+t[2]-1,n=+t[3],!t[4])return new Date(Date.UTC(r,i,n));if(s=+t[4],o=+t[5],l=+t[6],t[7]){for(u=t[7].slice(0,3);u.length<3;)u+="0";u=+u}return t[9]&&(d=+t[10],f=+(t[11]||0),h=(d*60+f)*6e4,t[9]==="-"&&(h=-h)),p=new Date(Date.UTC(r,i,n,s,o,l,u)),h&&p.setTime(p.getTime()-h),p}function o4e(e){return e.toISOString()}function c4e(e){return e==="<<"||e===null}function h4e(e){if(e===null)return!1;var t,r,i=0,n=e.length,s=L5;for(r=0;r<n;r++)if(t=s.indexOf(e.charAt(r)),!(t>64)){if(t<0)return!1;i+=6}return i%8===0}function d4e(e){var t,r,i=e.replace(/[\r\n=]/g,""),n=i.length,s=L5,o=0,l=[];for(t=0;t<n;t++)t%4===0&&t&&(l.push(o>>16&255),l.push(o>>8&255),l.push(o&255)),o=o<<6|s.indexOf(i.charAt(t));return r=n%4*6,r===0?(l.push(o>>16&255),l.push(o>>8&255),l.push(o&255)):r===18?(l.push(o>>10&255),l.push(o>>2&255)):r===12&&l.push(o>>4&255),new Uint8Array(l)}function f4e(e){var t="",r=0,i,n,s=e.length,o=L5;for(i=0;i<s;i++)i%3===0&&i&&(t+=o[r>>18&63],t+=o[r>>12&63],t+=o[r>>6&63],t+=o[r&63]),r=(r<<8)+e[i];return n=s%3,n===0?(t+=o[r>>18&63],t+=o[r>>12&63],t+=o[r>>6&63],t+=o[r&63]):n===2?(t+=o[r>>10&63],t+=o[r>>4&63],t+=o[r<<2&63],t+=o[64]):n===1&&(t+=o[r>>2&63],t+=o[r<<4&63],t+=o[64],t+=o[64]),t}function p4e(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}function x4e(e){if(e===null)return!0;var t=[],r,i,n,s,o,l=e;for(r=0,i=l.length;r<i;r+=1){if(n=l[r],o=!1,y4e.call(n)!=="[object Object]")return!1;for(s in n)if(g4e.call(n,s))if(!o)o=!0;else return!1;if(!o)return!1;if(t.indexOf(s)===-1)t.push(s);else return!1}return!0}function b4e(e){return e!==null?e:[]}function C4e(e){if(e===null)return!0;var t,r,i,n,s,o=e;for(s=new Array(o.length),t=0,r=o.length;t<r;t+=1){if(i=o[t],k4e.call(i)!=="[object Object]"||(n=Object.keys(i),n.length!==1))return!1;s[t]=[n[0],i[n[0]]]}return!0}function v4e(e){if(e===null)return[];var t,r,i,n,s,o=e;for(s=new Array(o.length),t=0,r=o.length;t<r;t+=1)i=o[t],n=Object.keys(i),s[t]=[n[0],i[n[0]]];return s}function w4e(e){if(e===null)return!0;var t,r=e;for(t in r)if(_4e.call(r,t)&&r[t]!==null)return!1;return!0}function E4e(e){return e!==null?e:{}}function $z(e){return Object.prototype.toString.call(e)}function ko(e){return e===10||e===13}function Eh(e){return e===9||e===32}function ea(e){return e===9||e===32||e===10||e===13}function ap(e){return e===44||e===91||e===93||e===123||e===125}function N4e(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}function M4e(e){return e===120?2:e===117?4:e===85?8:0}function O4e(e){return 48<=e&&e<=57?e-48:-1}function Fz(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
`:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"\x85":e===95?"\xA0":e===76?"\u2028":e===80?"\u2029":""}function P4e(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}function oq(e,t,r){t==="__proto__"?Object.defineProperty(e,t,{configurable:!0,enumerable:!0,writable:!0,value:r}):e[t]=r}function B4e(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||rq,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 uq(e,t){var r={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return r.snippet=_3e(r),new Jn(t,r)}function Nt(e,t){throw uq(e,t)}function J2(e,t){e.onWarning&&e.onWarning.call(null,uq(e,t))}function Nc(e,t,r,i){var n,s,o,l;if(t<r){if(l=e.input.slice(t,r),i)for(n=0,s=l.length;n<s;n+=1)o=l.charCodeAt(n),o===9||32<=o&&o<=1114111||Nt(e,"expected valid JSON character");else L4e.test(l)&&Nt(e,"the stream contains non-printable characters");e.result+=l}}function Gz(e,t,r,i){var n,s,o,l;for(Fi.isObject(r)||Nt(e,"cannot merge mappings; the provided source object is unacceptable"),n=Object.keys(r),o=0,l=n.length;o<l;o+=1)s=n[o],Mc.call(t,s)||(oq(t,s,r[s]),i[s]=!0)}function sp(e,t,r,i,n,s,o,l,u){var h,d;if(Array.isArray(n))for(n=Array.prototype.slice.call(n),h=0,d=n.length;h<d;h+=1)Array.isArray(n[h])&&Nt(e,"nested arrays are not supported inside keys"),typeof n=="object"&&$z(n[h])==="[object Object]"&&(n[h]="[object Object]");if(typeof n=="object"&&$z(n)==="[object Object]"&&(n="[object Object]"),n=String(n),t===null&&(t={}),i==="tag:yaml.org,2002:merge")if(Array.isArray(s))for(h=0,d=s.length;h<d;h+=1)Gz(e,t,s[h],r);else Gz(e,t,s,r);else!e.json&&!Mc.call(r,n)&&Mc.call(t,n)&&(e.line=o||e.line,e.lineStart=l||e.lineStart,e.position=u||e.position,Nt(e,"duplicated mapping key")),oq(t,n,s),delete r[n];return t}function D5(e){var t;t=e.input.charCodeAt(e.position),t===10?e.position++:t===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):Nt(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function Ri(e,t,r){for(var i=0,n=e.input.charCodeAt(e.position);n!==0;){for(;Eh(n);)n===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),n=e.input.charCodeAt(++e.position);if(t&&n===35)do n=e.input.charCodeAt(++e.position);while(n!==10&&n!==13&&n!==0);if(ko(n))for(D5(e),n=e.input.charCodeAt(e.position),i++,e.lineIndent=0;n===32;)e.lineIndent++,n=e.input.charCodeAt(++e.position);else break}return r!==-1&&i!==0&&e.lineIndent<r&&J2(e,"deficient indentation"),i}function rT(e){var t=e.position,r;return r=e.input.charCodeAt(t),!!((r===45||r===46)&&r===e.input.charCodeAt(t+1)&&r===e.input.charCodeAt(t+2)&&(t+=3,r=e.input.charCodeAt(t),r===0||ea(r)))}function I5(e,t){t===1?e.result+=" ":t>1&&(e.result+=Fi.repeat(`
`,t-1))}function $4e(e,t,r){var i,n,s,o,l,u,h,d,f=e.kind,p=e.result,m;if(m=e.input.charCodeAt(e.position),ea(m)||ap(m)||m===35||m===38||m===42||m===33||m===124||m===62||m===39||m===34||m===37||m===64||m===96||(m===63||m===45)&&(n=e.input.charCodeAt(e.position+1),ea(n)||r&&ap(n)))return!1;for(e.kind="scalar",e.result="",s=o=e.position,l=!1;m!==0;){if(m===58){if(n=e.input.charCodeAt(e.position+1),ea(n)||r&&ap(n))break}else if(m===35){if(i=e.input.charCodeAt(e.position-1),ea(i))break}else{if(e.position===e.lineStart&&rT(e)||r&&ap(m))break;if(ko(m))if(u=e.line,h=e.lineStart,d=e.lineIndent,Ri(e,!1,-1),e.lineIndent>=t){l=!0,m=e.input.charCodeAt(e.position);continue}else{e.position=o,e.line=u,e.lineStart=h,e.lineIndent=d;break}}l&&(Nc(e,s,o,!1),I5(e,e.line-u),s=o=e.position,l=!1),Eh(m)||(o=e.position+1),m=e.input.charCodeAt(++e.position)}return Nc(e,s,o,!1),e.result?!0:(e.kind=f,e.result=p,!1)}function F4e(e,t){var r,i,n;if(r=e.input.charCodeAt(e.position),r!==39)return!1;for(e.kind="scalar",e.result="",e.position++,i=n=e.position;(r=e.input.charCodeAt(e.position))!==0;)if(r===39)if(Nc(e,i,e.position,!0),r=e.input.charCodeAt(++e.position),r===39)i=e.position,e.position++,n=e.position;else return!0;else ko(r)?(Nc(e,i,n,!0),I5(e,Ri(e,!1,t)),i=n=e.position):e.position===e.lineStart&&rT(e)?Nt(e,"unexpected end of the document within a single quoted scalar"):(e.position++,n=e.position);Nt(e,"unexpected end of the stream within a single quoted scalar")}function V4e(e,t){var r,i,n,s,o,l;if(l=e.input.charCodeAt(e.position),l!==34)return!1;for(e.kind="scalar",e.result="",e.position++,r=i=e.position;(l=e.input.charCodeAt(e.position))!==0;){if(l===34)return Nc(e,r,e.position,!0),e.position++,!0;if(l===92){if(Nc(e,r,e.position,!0),l=e.input.charCodeAt(++e.position),ko(l))Ri(e,!1,t);else if(l<256&&lq[l])e.result+=cq[l],e.position++;else if((o=M4e(l))>0){for(n=o,s=0;n>0;n--)l=e.input.charCodeAt(++e.position),(o=N4e(l))>=0?s=(s<<4)+o:Nt(e,"expected hexadecimal character");e.result+=P4e(s),e.position++}else Nt(e,"unknown escape sequence");r=i=e.position}else ko(l)?(Nc(e,r,i,!0),I5(e,Ri(e,!1,t)),r=i=e.position):e.position===e.lineStart&&rT(e)?Nt(e,"unexpected end of the document within a double quoted scalar"):(e.position++,i=e.position)}Nt(e,"unexpected end of the stream within a double quoted scalar")}function G4e(e,t){var r=!0,i,n,s,o=e.tag,l,u=e.anchor,h,d,f,p,m,g=Object.create(null),x,b,T,k;if(k=e.input.charCodeAt(e.position),k===91)d=93,m=!1,l=[];else if(k===123)d=125,m=!0,l={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=l),k=e.input.charCodeAt(++e.position);k!==0;){if(Ri(e,!0,t),k=e.input.charCodeAt(e.position),k===d)return e.position++,e.tag=o,e.anchor=u,e.kind=m?"mapping":"sequence",e.result=l,!0;r?k===44&&Nt(e,"expected the node content, but found ','"):Nt(e,"missed comma between flow collection entries"),b=x=T=null,f=p=!1,k===63&&(h=e.input.charCodeAt(e.position+1),ea(h)&&(f=p=!0,e.position++,Ri(e,!0,t))),i=e.line,n=e.lineStart,s=e.position,op(e,t,Q2,!1,!0),b=e.tag,x=e.result,Ri(e,!0,t),k=e.input.charCodeAt(e.position),(p||e.line===i)&&k===58&&(f=!0,k=e.input.charCodeAt(++e.position),Ri(e,!0,t),op(e,t,Q2,!1,!0),T=e.result),m?sp(e,l,g,b,x,T,i,n,s):f?l.push(sp(e,null,g,b,x,T,i,n,s)):l.push(x),Ri(e,!0,t),k=e.input.charCodeAt(e.position),k===44?(r=!0,k=e.input.charCodeAt(++e.position)):r=!1}Nt(e,"unexpected end of the stream within a flow collection")}function W4e(e,t){var r,i,n=S5,s=!1,o=!1,l=t,u=0,h=!1,d,f;if(f=e.input.charCodeAt(e.position),f===124)i=!1;else if(f===62)i=!0;else return!1;for(e.kind="scalar",e.result="";f!==0;)if(f=e.input.charCodeAt(++e.position),f===43||f===45)S5===n?n=f===43?Bz:R4e:Nt(e,"repeat of a chomping mode identifier");else if((d=O4e(f))>=0)d===0?Nt(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):o?Nt(e,"repeat of an indentation width identifier"):(l=t+d-1,o=!0);else break;if(Eh(f)){do f=e.input.charCodeAt(++e.position);while(Eh(f));if(f===35)do f=e.input.charCodeAt(++e.position);while(!ko(f)&&f!==0)}for(;f!==0;){for(D5(e),e.lineIndent=0,f=e.input.charCodeAt(e.position);(!o||e.lineIndent<l)&&f===32;)e.lineIndent++,f=e.input.charCodeAt(++e.position);if(!o&&e.lineIndent>l&&(l=e.lineIndent),ko(f)){u++;continue}if(e.lineIndent<l){n===Bz?e.result+=Fi.repeat(`
`,s?1+u:u):n===S5&&s&&(e.result+=`
`);break}for(i?Eh(f)?(h=!0,e.result+=Fi.repeat(`
`,s?1+u:u)):h?(h=!1,e.result+=Fi.repeat(`
`,u+1)):u===0?s&&(e.result+=" "):e.result+=Fi.repeat(`
`,u):e.result+=Fi.repeat(`
`,s?1+u:u),s=!0,o=!0,u=0,r=e.position;!ko(f)&&f!==0;)f=e.input.charCodeAt(++e.position);Nc(e,r,e.position,!1)}return!0}function Wz(e,t){var r,i=e.tag,n=e.anchor,s=[],o,l=!1,u;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=s),u=e.input.charCodeAt(e.position);u!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,Nt(e,"tab characters must not be used in indentation")),!(u!==45||(o=e.input.charCodeAt(e.position+1),!ea(o))));){if(l=!0,e.position++,Ri(e,!0,-1)&&e.lineIndent<=t){s.push(null),u=e.input.charCodeAt(e.position);continue}if(r=e.line,op(e,t,nq,!1,!0),s.push(e.result),Ri(e,!0,-1),u=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&u!==0)Nt(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return l?(e.tag=i,e.anchor=n,e.kind="sequence",e.result=s,!0):!1}function z4e(e,t,r){var i,n,s,o,l,u,h=e.tag,d=e.anchor,f={},p=Object.create(null),m=null,g=null,x=null,b=!1,T=!1,k;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=f),k=e.input.charCodeAt(e.position);k!==0;){if(!b&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,Nt(e,"tab characters must not be used in indentation")),i=e.input.charCodeAt(e.position+1),s=e.line,(k===63||k===58)&&ea(i))k===63?(b&&(sp(e,f,p,m,g,null,o,l,u),m=g=x=null),T=!0,b=!0,n=!0):b?(b=!1,n=!0):Nt(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,k=i;else{if(o=e.line,l=e.lineStart,u=e.position,!op(e,r,iq,!1,!0))break;if(e.line===s){for(k=e.input.charCodeAt(e.position);Eh(k);)k=e.input.charCodeAt(++e.position);if(k===58)k=e.input.charCodeAt(++e.position),ea(k)||Nt(e,"a whitespace character is expected after the key-value separator within a block mapping"),b&&(sp(e,f,p,m,g,null,o,l,u),m=g=x=null),T=!0,b=!1,n=!1,m=e.tag,g=e.result;else if(T)Nt(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=h,e.anchor=d,!0}else if(T)Nt(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=h,e.anchor=d,!0}if((e.line===s||e.lineIndent>t)&&(b&&(o=e.line,l=e.lineStart,u=e.position),op(e,t,Z2,!0,n)&&(b?g=e.result:x=e.result),b||(sp(e,f,p,m,g,x,o,l,u),m=g=x=null),Ri(e,!0,-1),k=e.input.charCodeAt(e.position)),(e.line===s||e.lineIndent>t)&&k!==0)Nt(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return b&&sp(e,f,p,m,g,null,o,l,u),T&&(e.tag=h,e.anchor=d,e.kind="mapping",e.result=f),T}function q4e(e){var t,r=!1,i=!1,n,s,o;if(o=e.input.charCodeAt(e.position),o!==33)return!1;if(e.tag!==null&&Nt(e,"duplication of a tag property"),o=e.input.charCodeAt(++e.position),o===60?(r=!0,o=e.input.charCodeAt(++e.position)):o===33?(i=!0,n="!!",o=e.input.charCodeAt(++e.position)):n="!",t=e.position,r){do o=e.input.charCodeAt(++e.position);while(o!==0&&o!==62);e.position<e.length?(s=e.input.slice(t,e.position),o=e.input.charCodeAt(++e.position)):Nt(e,"unexpected end of the stream within a verbatim tag")}else{for(;o!==0&&!ea(o);)o===33&&(i?Nt(e,"tag suffix cannot contain exclamation marks"):(n=e.input.slice(t-1,e.position+1),aq.test(n)||Nt(e,"named tag handle cannot contain such characters"),i=!0,t=e.position+1)),o=e.input.charCodeAt(++e.position);s=e.input.slice(t,e.position),I4e.test(s)&&Nt(e,"tag suffix cannot contain flow indicator characters")}s&&!sq.test(s)&&Nt(e,"tag name cannot contain such characters: "+s);try{s=decodeURIComponent(s)}catch{Nt(e,"tag name is malformed: "+s)}return r?e.tag=s:Mc.call(e.tagMap,n)?e.tag=e.tagMap[n]+s:n==="!"?e.tag="!"+s:n==="!!"?e.tag="tag:yaml.org,2002:"+s:Nt(e,'undeclared tag handle "'+n+'"'),!0}function j4e(e){var t,r;if(r=e.input.charCodeAt(e.position),r!==38)return!1;for(e.anchor!==null&&Nt(e,"duplication of an anchor property"),r=e.input.charCodeAt(++e.position),t=e.position;r!==0&&!ea(r)&&!ap(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&Nt(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function U4e(e){var t,r,i;if(i=e.input.charCodeAt(e.position),i!==42)return!1;for(i=e.input.charCodeAt(++e.position),t=e.position;i!==0&&!ea(i)&&!ap(i);)i=e.input.charCodeAt(++e.position);return e.position===t&&Nt(e,"name of an alias node must contain at least one character"),r=e.input.slice(t,e.position),Mc.call(e.anchorMap,r)||Nt(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],Ri(e,!0,-1),!0}function op(e,t,r,i,n){var s,o,l,u=1,h=!1,d=!1,f,p,m,g,x,b;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,s=o=l=Z2===r||nq===r,i&&Ri(e,!0,-1)&&(h=!0,e.lineIndent>t?u=1:e.lineIndent===t?u=0:e.lineIndent<t&&(u=-1)),u===1)for(;q4e(e)||j4e(e);)Ri(e,!0,-1)?(h=!0,l=s,e.lineIndent>t?u=1:e.lineIndent===t?u=0:e.lineIndent<t&&(u=-1)):l=!1;if(l&&(l=h||n),(u===1||Z2===r)&&(Q2===r||iq===r?x=t:x=t+1,b=e.position-e.lineStart,u===1?l&&(Wz(e,b)||z4e(e,b,x))||G4e(e,x)?d=!0:(o&&W4e(e,x)||F4e(e,x)||V4e(e,x)?d=!0:U4e(e)?(d=!0,(e.tag!==null||e.anchor!==null)&&Nt(e,"alias node should not have any properties")):$4e(e,x,Q2===r)&&(d=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):u===0&&(d=l&&Wz(e,b))),e.tag===null)e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);else if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&Nt(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),f=0,p=e.implicitTypes.length;f<p;f+=1)if(g=e.implicitTypes[f],g.resolve(e.result)){e.result=g.construct(e.result),e.tag=g.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else if(e.tag!=="!"){if(Mc.call(e.typeMap[e.kind||"fallback"],e.tag))g=e.typeMap[e.kind||"fallback"][e.tag];else for(g=null,m=e.typeMap.multi[e.kind||"fallback"],f=0,p=m.length;f<p;f+=1)if(e.tag.slice(0,m[f].tag.length)===m[f].tag){g=m[f];break}g||Nt(e,"unknown tag !<"+e.tag+">"),e.result!==null&&g.kind!==e.kind&&Nt(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+g.kind+'", not "'+e.kind+'"'),g.resolve(e.result,e.tag)?(e.result=g.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):Nt(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||d}function H4e(e){var t=e.position,r,i,n,s=!1,o;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(o=e.input.charCodeAt(e.position))!==0&&(Ri(e,!0,-1),o=e.input.charCodeAt(e.position),!(e.lineIndent>0||o!==37));){for(s=!0,o=e.input.charCodeAt(++e.position),r=e.position;o!==0&&!ea(o);)o=e.input.charCodeAt(++e.position);for(i=e.input.slice(r,e.position),n=[],i.length<1&&Nt(e,"directive name must not be less than one character in length");o!==0;){for(;Eh(o);)o=e.input.charCodeAt(++e.position);if(o===35){do o=e.input.charCodeAt(++e.position);while(o!==0&&!ko(o));break}if(ko(o))break;for(r=e.position;o!==0&&!ea(o);)o=e.input.charCodeAt(++e.position);n.push(e.input.slice(r,e.position))}o!==0&&D5(e),Mc.call(Vz,i)?Vz[i](e,i,n):J2(e,'unknown document directive "'+i+'"')}if(Ri(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,Ri(e,!0,-1)):s&&Nt(e,"directives end mark is expected"),op(e,e.lineIndent-1,Z2,!1,!0),Ri(e,!0,-1),e.checkLineBreaks&&D4e.test(e.input.slice(t,e.position))&&J2(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&rT(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,Ri(e,!0,-1));return}if(e.position<e.length-1)Nt(e,"end of the stream or a document separator is expected");else return}function hq(e,t){e=String(e),t=t||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
`),e.charCodeAt(0)===65279&&(e=e.slice(1)));var r=new B4e(e,t),i=e.indexOf("\0");for(i!==-1&&(r.position=i,Nt(r,"null byte is not allowed in input")),r.input+="\0";r.input.charCodeAt(r.position)===32;)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)H4e(r);return r.documents}function Y4e(e,t,r){t!==null&&typeof t=="object"&&typeof r>"u"&&(r=t,t=null);var i=hq(e,r);if(typeof t!="function")return i;for(var n=0,s=i.length;n<s;n+=1)t(i[n])}function K4e(e,t){var r=hq(e,t);if(r.length!==0){if(r.length===1)return r[0];throw new Jn("expected a single document in the stream, but found more")}}function g5e(e,t){var r,i,n,s,o,l,u;if(t===null)return{};for(r={},i=Object.keys(t),n=0,s=i.length;n<s;n+=1)o=i[n],l=String(t[o]),o.slice(0,2)==="!!"&&(o="tag:yaml.org,2002:"+o.slice(2)),u=e.compiledTypeMap.fallback[o],u&&pq.call(u.styleAliases,l)&&(l=u.styleAliases[l]),r[o]=l;return r}function y5e(e){var t,r,i;if(t=e.toString(16).toUpperCase(),e<=255)r="x",i=2;else if(e<=65535)r="u",i=4;else if(e<=4294967295)r="U",i=8;else throw new Jn("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+Fi.repeat("0",i-t.length)+t}function b5e(e){this.schema=e.schema||rq,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=Fi.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=g5e(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==='"'?jy:x5e,this.forceQuotes=e.forceQuotes||!1,this.replacer=typeof e.replacer=="function"?e.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function zz(e,t){for(var r=Fi.repeat(" ",t),i=0,n=-1,s="",o,l=e.length;i<l;)n=e.indexOf(`
`,i),n===-1?(o=e.slice(i),i=l):(o=e.slice(i,n+1),i=n+1),o.length&&o!==`
`&&(s+=r),s+=o;return s}function E5(e,t){return`
`+Fi.repeat(" ",e.indent*t)}function T5e(e,t){var r,i,n;for(r=0,i=e.implicitTypes.length;r<i;r+=1)if(n=e.implicitTypes[r],n.resolve(t))return!0;return!1}function tT(e){return e===e5e||e===Z4e}function Uy(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==N5||65536<=e&&e<=1114111}function qz(e){return Uy(e)&&e!==N5&&e!==J4e&&e!==qy}function jz(e,t,r){var i=qz(e),n=i&&!tT(e);return(r?i:i&&e!==mq&&e!==gq&&e!==yq&&e!==xq&&e!==bq)&&e!==w5&&!(t===eT&&!n)||qz(t)&&!tT(t)&&e===w5||t===eT&&n}function k5e(e){return Uy(e)&&e!==N5&&!tT(e)&&e!==o5e&&e!==u5e&&e!==eT&&e!==mq&&e!==gq&&e!==yq&&e!==xq&&e!==bq&&e!==w5&&e!==n5e&&e!==s5e&&e!==t5e&&e!==f5e&&e!==l5e&&e!==c5e&&e!==a5e&&e!==r5e&&e!==i5e&&e!==h5e&&e!==d5e}function C5e(e){return!tT(e)&&e!==eT}function Wy(e,t){var r=e.charCodeAt(t),i;return r>=55296&&r<=56319&&t+1<e.length&&(i=e.charCodeAt(t+1),i>=56320&&i<=57343)?(r-55296)*1024+i-56320+65536:r}function Tq(e){var t=/^\n* /;return t.test(e)}function v5e(e,t,r,i,n,s,o,l){var u,h=0,d=null,f=!1,p=!1,m=i!==-1,g=-1,x=k5e(Wy(e,0))&&C5e(Wy(e,e.length-1));if(t||o)for(u=0;u<e.length;h>=65536?u+=2:u++){if(h=Wy(e,u),!Uy(h))return np;x=x&&jz(h,d,l),d=h}else{for(u=0;u<e.length;h>=65536?u+=2:u++){if(h=Wy(e,u),h===qy)f=!0,m&&(p=p||u-g-1>i&&e[g+1]!==" ",g=u);else if(!Uy(h))return np;x=x&&jz(h,d,l),d=h}p=p||m&&u-g-1>i&&e[g+1]!==" "}return!f&&!p?x&&!o&&!n(e)?kq:s===jy?np:A5:r>9&&Tq(e)?np:o?s===jy?np:A5:p?vq:Cq}function S5e(e,t,r,i,n){e.dump=(function(){if(t.length===0)return e.quotingType===jy?'""':"''";if(!e.noCompatMode&&(p5e.indexOf(t)!==-1||m5e.test(t)))return e.quotingType===jy?'"'+t+'"':"'"+t+"'";var s=e.indent*Math.max(1,r),o=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-s),l=i||e.flowLevel>-1&&r>=e.flowLevel;function u(h){return T5e(e,h)}switch(a(u,"testAmbiguity"),v5e(t,l,e.indent,o,u,e.quotingType,e.forceQuotes&&!i,n)){case kq:return t;case A5:return"'"+t.replace(/'/g,"''")+"'";case Cq:return"|"+Uz(t,e.indent)+Hz(zz(t,s));case vq:return">"+Uz(t,e.indent)+Hz(zz(_5e(t,o),s));case np:return'"'+w5e(t)+'"';default:throw new Jn("impossible error: invalid scalar style")}})()}function Uz(e,t){var r=Tq(e)?String(t):"",i=e[e.length-1]===`
`,n=i&&(e[e.length-2]===`
`||e===`
`),s=n?"+":i?"":"-";return r+s+`
`}function Hz(e){return e[e.length-1]===`
`?e.slice(0,-1):e}function _5e(e,t){for(var r=/(\n+)([^\n]*)/g,i=(function(){var h=e.indexOf(`
`);return h=h!==-1?h:e.length,r.lastIndex=h,Yz(e.slice(0,h),t)})(),n=e[0]===`
`||e[0]===" ",s,o;o=r.exec(e);){var l=o[1],u=o[2];s=u[0]===" ",i+=l+(!n&&!s&&u!==""?`
`:"")+Yz(u,t),n=s}return i}function Yz(e,t){if(e===""||e[0]===" ")return e;for(var r=/ [^ ]/g,i,n=0,s,o=0,l=0,u="";i=r.exec(e);)l=i.index,l-n>t&&(s=o>n?o:l,u+=`
`+e.slice(n,s),n=s+1),o=l;return u+=`
`,e.length-n>t&&o>n?u+=e.slice(n,o)+`
`+e.slice(o+1):u+=e.slice(n),u.slice(1)}function w5e(e){for(var t="",r=0,i,n=0;n<e.length;r>=65536?n+=2:n++)r=Wy(e,n),i=Tn[r],!i&&Uy(r)?(t+=e[n],r>=65536&&(t+=e[n+1])):t+=i||y5e(r);return t}function E5e(e,t,r){var i="",n=e.tag,s,o,l;for(s=0,o=r.length;s<o;s+=1)l=r[s],e.replacer&&(l=e.replacer.call(r,String(s),l)),(Tl(e,t,l,!1,!1)||typeof l>"u"&&Tl(e,t,null,!1,!1))&&(i!==""&&(i+=","+(e.condenseFlow?"":" ")),i+=e.dump);e.tag=n,e.dump="["+i+"]"}function Kz(e,t,r,i){var n="",s=e.tag,o,l,u;for(o=0,l=r.length;o<l;o+=1)u=r[o],e.replacer&&(u=e.replacer.call(r,String(o),u)),(Tl(e,t+1,u,!0,!0,!1,!0)||typeof u>"u"&&Tl(e,t+1,null,!0,!0,!1,!0))&&((!i||n!=="")&&(n+=E5(e,t)),e.dump&&qy===e.dump.charCodeAt(0)?n+="-":n+="- ",n+=e.dump);e.tag=s,e.dump=n||"[]"}function A5e(e,t,r){var i="",n=e.tag,s=Object.keys(r),o,l,u,h,d;for(o=0,l=s.length;o<l;o+=1)d="",i!==""&&(d+=", "),e.condenseFlow&&(d+='"'),u=s[o],h=r[u],e.replacer&&(h=e.replacer.call(r,u,h)),Tl(e,t,u,!1,!1)&&(e.dump.length>1024&&(d+="? "),d+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),Tl(e,t,h,!1,!1)&&(d+=e.dump,i+=d));e.tag=n,e.dump="{"+i+"}"}function R5e(e,t,r,i){var n="",s=e.tag,o=Object.keys(r),l,u,h,d,f,p;if(e.sortKeys===!0)o.sort();else if(typeof e.sortKeys=="function")o.sort(e.sortKeys);else if(e.sortKeys)throw new Jn("sortKeys must be a boolean or a function");for(l=0,u=o.length;l<u;l+=1)p="",(!i||n!=="")&&(p+=E5(e,t)),h=o[l],d=r[h],e.replacer&&(d=e.replacer.call(r,h,d)),Tl(e,t+1,h,!0,!0,!0)&&(f=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,f&&(e.dump&&qy===e.dump.charCodeAt(0)?p+="?":p+="? "),p+=e.dump,f&&(p+=E5(e,t)),Tl(e,t+1,d,!0,f)&&(e.dump&&qy===e.dump.charCodeAt(0)?p+=":":p+=": ",p+=e.dump,n+=p));e.tag=s,e.dump=n||"{}"}function Xz(e,t,r){var i,n,s,o,l,u;for(n=r?e.explicitTypes:e.implicitTypes,s=0,o=n.length;s<o;s+=1)if(l=n[s],(l.instanceOf||l.predicate)&&(!l.instanceOf||typeof t=="object"&&t instanceof l.instanceOf)&&(!l.predicate||l.predicate(t))){if(r?l.multi&&l.representName?e.tag=l.representName(t):e.tag=l.tag:e.tag="?",l.represent){if(u=e.styleMap[l.tag]||l.defaultStyle,fq.call(l.represent)==="[object Function]")i=l.represent(t,u);else if(pq.call(l.represent,u))i=l.represent[u](t,u);else throw new Jn("!<"+l.tag+'> tag resolver accepts not "'+u+'" style');e.dump=i}return!0}return!1}function Tl(e,t,r,i,n,s,o){e.tag=null,e.dump=r,Xz(e,r,!1)||Xz(e,r,!0);var l=fq.call(e.dump),u=i,h;i&&(i=e.flowLevel<0||e.flowLevel>t);var d=l==="[object Object]"||l==="[object Array]",f,p;if(d&&(f=e.duplicates.indexOf(r),p=f!==-1),(e.tag!==null&&e.tag!=="?"||p||e.indent!==2&&t>0)&&(n=!1),p&&e.usedDuplicates[f])e.dump="*ref_"+f;else{if(d&&p&&!e.usedDuplicates[f]&&(e.usedDuplicates[f]=!0),l==="[object Object]")i&&Object.keys(e.dump).length!==0?(R5e(e,t,e.dump,n),p&&(e.dump="&ref_"+f+e.dump)):(A5e(e,t,e.dump),p&&(e.dump="&ref_"+f+" "+e.dump));else if(l==="[object Array]")i&&e.dump.length!==0?(e.noArrayIndent&&!o&&t>0?Kz(e,t-1,e.dump,n):Kz(e,t,e.dump,n),p&&(e.dump="&ref_"+f+e.dump)):(E5e(e,t,e.dump),p&&(e.dump="&ref_"+f+" "+e.dump));else if(l==="[object String]")e.tag!=="?"&&S5e(e,e.dump,t,s,u);else{if(l==="[object Undefined]")return!1;if(e.skipInvalid)return!1;throw new Jn("unacceptable kind of an object to dump "+l)}e.tag!==null&&e.tag!=="?"&&(h=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?h="!"+h:h.slice(0,18)==="tag:yaml.org,2002:"?h="!!"+h.slice(18):h="!<"+h+">",e.dump=h+" "+e.dump)}return!0}function L5e(e,t){var r=[],i=[],n,s;for(R5(e,r,i),n=0,s=i.length;n<s;n+=1)t.duplicates.push(r[i[n]]);t.usedDuplicates=new Array(s)}function R5(e,t,r){var i,n,s;if(e!==null&&typeof e=="object")if(n=t.indexOf(e),n!==-1)r.indexOf(n)===-1&&r.push(n);else if(t.push(e),Array.isArray(e))for(n=0,s=e.length;n<s;n+=1)R5(e[n],t,r);else for(i=Object.keys(e),n=0,s=i.length;n<s;n+=1)R5(e[i[n]],t,r)}function D5e(e,t){t=t||{};var r=new b5e(t);r.noRefs||L5e(e,r);var i=e;return r.replacer&&(i=r.replacer.call({"":i},"",i)),Tl(r,0,i,!0,!0)?r.dump+`
`:""}function M5(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 x3e,b3e,T3e,k3e,C3e,v3e,Fi,Jn,_3e,w3e,E3e,bn,D3e,I3e,N3e,M3e,O3e,F3e,z3e,X3e,Q3e,e4e,i4e,Jz,n4e,eq,tq,l4e,u4e,L5,m4e,g4e,y4e,T4e,k4e,S4e,_4e,A4e,rq,Mc,Q2,iq,nq,Z2,S5,R4e,Bz,L4e,D4e,I4e,aq,sq,lq,cq,wh,Vz,X4e,Q4e,dq,fq,pq,N5,Z4e,qy,J4e,e5e,t5e,r5e,w5,i5e,n5e,a5e,s5e,mq,o5e,eT,l5e,c5e,u5e,h5e,gq,yq,d5e,xq,f5e,bq,Tn,p5e,m5e,x5e,jy,kq,A5,Cq,vq,np,I5e,N5e,Oc,Pc,CAt,vAt,SAt,_At,wAt,Hy=v(()=>{"use strict";a(Qz,"isNothing");a(f3e,"isObject");a(p3e,"toArray");a(m3e,"extend");a(g3e,"repeat");a(y3e,"isNegativeZero");x3e=Qz,b3e=f3e,T3e=p3e,k3e=g3e,C3e=y3e,v3e=m3e,Fi={isNothing:x3e,isObject:b3e,toArray:T3e,repeat:k3e,isNegativeZero:C3e,extend:v3e};a(Zz,"formatError");a(zy,"YAMLException$1");zy.prototype=Object.create(Error.prototype);zy.prototype.constructor=zy;zy.prototype.toString=a(function(t){return this.name+": "+Zz(this,t)},"toString");Jn=zy;a(C5,"getLine");a(v5,"padStart");a(S3e,"makeSnippet");_3e=S3e,w3e=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],E3e=["scalar","sequence","mapping"];a(A3e,"compileStyleAliases");a(R3e,"Type$1");bn=R3e;a(Pz,"compileList");a(L3e,"compileMap");a(_5,"Schema$1");_5.prototype.extend=a(function(t){var r=[],i=[];if(t instanceof bn)i.push(t);else if(Array.isArray(t))i=i.concat(t);else if(t&&(Array.isArray(t.implicit)||Array.isArray(t.explicit)))t.implicit&&(r=r.concat(t.implicit)),t.explicit&&(i=i.concat(t.explicit));else throw new Jn("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");r.forEach(function(s){if(!(s instanceof bn))throw new Jn("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(s.loadKind&&s.loadKind!=="scalar")throw new Jn("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(s.multi)throw new Jn("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),i.forEach(function(s){if(!(s instanceof bn))throw new Jn("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var n=Object.create(_5.prototype);return n.implicit=(this.implicit||[]).concat(r),n.explicit=(this.explicit||[]).concat(i),n.compiledImplicit=Pz(n,"implicit"),n.compiledExplicit=Pz(n,"explicit"),n.compiledTypeMap=L3e(n.compiledImplicit,n.compiledExplicit),n},"extend");D3e=_5,I3e=new bn("tag:yaml.org,2002:str",{kind:"scalar",construct:a(function(e){return e!==null?e:""},"construct")}),N3e=new bn("tag:yaml.org,2002:seq",{kind:"sequence",construct:a(function(e){return e!==null?e:[]},"construct")}),M3e=new bn("tag:yaml.org,2002:map",{kind:"mapping",construct:a(function(e){return e!==null?e:{}},"construct")}),O3e=new D3e({explicit:[I3e,N3e,M3e]});a(P3e,"resolveYamlNull");a(B3e,"constructYamlNull");a($3e,"isNull");F3e=new bn("tag:yaml.org,2002:null",{kind:"scalar",resolve:P3e,construct:B3e,predicate:$3e,represent:{canonical:a(function(){return"~"},"canonical"),lowercase:a(function(){return"null"},"lowercase"),uppercase:a(function(){return"NULL"},"uppercase"),camelcase:a(function(){return"Null"},"camelcase"),empty:a(function(){return""},"empty")},defaultStyle:"lowercase"});a(V3e,"resolveYamlBoolean");a(G3e,"constructYamlBoolean");a(W3e,"isBoolean");z3e=new bn("tag:yaml.org,2002:bool",{kind:"scalar",resolve:V3e,construct:G3e,predicate:W3e,represent:{lowercase:a(function(e){return e?"true":"false"},"lowercase"),uppercase:a(function(e){return e?"TRUE":"FALSE"},"uppercase"),camelcase:a(function(e){return e?"True":"False"},"camelcase")},defaultStyle:"lowercase"});a(q3e,"isHexCode");a(j3e,"isOctCode");a(U3e,"isDecCode");a(H3e,"resolveYamlInteger");a(Y3e,"constructYamlInteger");a(K3e,"isInteger");X3e=new bn("tag:yaml.org,2002:int",{kind:"scalar",resolve:H3e,construct:Y3e,predicate:K3e,represent:{binary:a(function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},"binary"),octal:a(function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},"octal"),decimal:a(function(e){return e.toString(10)},"decimal"),hexadecimal:a(function(e){return e>=0?"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"]}}),Q3e=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");a(Z3e,"resolveYamlFloat");a(J3e,"constructYamlFloat");e4e=/^[-+]?[0-9]+e/;a(t4e,"representYamlFloat");a(r4e,"isFloat");i4e=new bn("tag:yaml.org,2002:float",{kind:"scalar",resolve:Z3e,construct:J3e,predicate:r4e,represent:t4e,defaultStyle:"lowercase"}),Jz=O3e.extend({implicit:[F3e,z3e,X3e,i4e]}),n4e=Jz,eq=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),tq=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]))?))?$");a(a4e,"resolveYamlTimestamp");a(s4e,"constructYamlTimestamp");a(o4e,"representYamlTimestamp");l4e=new bn("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:a4e,construct:s4e,instanceOf:Date,represent:o4e});a(c4e,"resolveYamlMerge");u4e=new bn("tag:yaml.org,2002:merge",{kind:"scalar",resolve:c4e}),L5=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
\r`;a(h4e,"resolveYamlBinary");a(d4e,"constructYamlBinary");a(f4e,"representYamlBinary");a(p4e,"isBinary");m4e=new bn("tag:yaml.org,2002:binary",{kind:"scalar",resolve:h4e,construct:d4e,predicate:p4e,represent:f4e}),g4e=Object.prototype.hasOwnProperty,y4e=Object.prototype.toString;a(x4e,"resolveYamlOmap");a(b4e,"constructYamlOmap");T4e=new bn("tag:yaml.org,2002:omap",{kind:"sequence",resolve:x4e,construct:b4e}),k4e=Object.prototype.toString;a(C4e,"resolveYamlPairs");a(v4e,"constructYamlPairs");S4e=new bn("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:C4e,construct:v4e}),_4e=Object.prototype.hasOwnProperty;a(w4e,"resolveYamlSet");a(E4e,"constructYamlSet");A4e=new bn("tag:yaml.org,2002:set",{kind:"mapping",resolve:w4e,construct:E4e}),rq=n4e.extend({implicit:[l4e,u4e],explicit:[m4e,T4e,S4e,A4e]}),Mc=Object.prototype.hasOwnProperty,Q2=1,iq=2,nq=3,Z2=4,S5=1,R4e=2,Bz=3,L4e=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,D4e=/[\x85\u2028\u2029]/,I4e=/[,\[\]\{\}]/,aq=/^(?:!|!!|![a-z\-]+!)$/i,sq=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;a($z,"_class");a(ko,"is_EOL");a(Eh,"is_WHITE_SPACE");a(ea,"is_WS_OR_EOL");a(ap,"is_FLOW_INDICATOR");a(N4e,"fromHexCode");a(M4e,"escapedHexLen");a(O4e,"fromDecimalCode");a(Fz,"simpleEscapeSequence");a(P4e,"charFromCodepoint");a(oq,"setProperty");lq=new Array(256),cq=new Array(256);for(wh=0;wh<256;wh++)lq[wh]=Fz(wh)?1:0,cq[wh]=Fz(wh);a(B4e,"State$1");a(uq,"generateError");a(Nt,"throwError");a(J2,"throwWarning");Vz={YAML:a(function(t,r,i){var n,s,o;t.version!==null&&Nt(t,"duplication of %YAML directive"),i.length!==1&&Nt(t,"YAML directive accepts exactly one argument"),n=/^([0-9]+)\.([0-9]+)$/.exec(i[0]),n===null&&Nt(t,"ill-formed argument of the YAML directive"),s=parseInt(n[1],10),o=parseInt(n[2],10),s!==1&&Nt(t,"unacceptable YAML version of the document"),t.version=i[0],t.checkLineBreaks=o<2,o!==1&&o!==2&&J2(t,"unsupported YAML version of the document")},"handleYamlDirective"),TAG:a(function(t,r,i){var n,s;i.length!==2&&Nt(t,"TAG directive accepts exactly two arguments"),n=i[0],s=i[1],aq.test(n)||Nt(t,"ill-formed tag handle (first argument) of the TAG directive"),Mc.call(t.tagMap,n)&&Nt(t,'there is a previously declared suffix for "'+n+'" tag handle'),sq.test(s)||Nt(t,"ill-formed tag prefix (second argument) of the TAG directive");try{s=decodeURIComponent(s)}catch{Nt(t,"tag prefix is malformed: "+s)}t.tagMap[n]=s},"handleTagDirective")};a(Nc,"captureSegment");a(Gz,"mergeMappings");a(sp,"storeMappingPair");a(D5,"readLineBreak");a(Ri,"skipSeparationSpace");a(rT,"testDocumentSeparator");a(I5,"writeFoldedLines");a($4e,"readPlainScalar");a(F4e,"readSingleQuotedScalar");a(V4e,"readDoubleQuotedScalar");a(G4e,"readFlowCollection");a(W4e,"readBlockScalar");a(Wz,"readBlockSequence");a(z4e,"readBlockMapping");a(q4e,"readTagProperty");a(j4e,"readAnchorProperty");a(U4e,"readAlias");a(op,"composeNode");a(H4e,"readDocument");a(hq,"loadDocuments");a(Y4e,"loadAll$1");a(K4e,"load$1");X4e=Y4e,Q4e=K4e,dq={loadAll:X4e,load:Q4e},fq=Object.prototype.toString,pq=Object.prototype.hasOwnProperty,N5=65279,Z4e=9,qy=10,J4e=13,e5e=32,t5e=33,r5e=34,w5=35,i5e=37,n5e=38,a5e=39,s5e=42,mq=44,o5e=45,eT=58,l5e=61,c5e=62,u5e=63,h5e=64,gq=91,yq=93,d5e=96,xq=123,f5e=124,bq=125,Tn={};Tn[0]="\\0";Tn[7]="\\a";Tn[8]="\\b";Tn[9]="\\t";Tn[10]="\\n";Tn[11]="\\v";Tn[12]="\\f";Tn[13]="\\r";Tn[27]="\\e";Tn[34]='\\"';Tn[92]="\\\\";Tn[133]="\\N";Tn[160]="\\_";Tn[8232]="\\L";Tn[8233]="\\P";p5e=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],m5e=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;a(g5e,"compileStyleMap");a(y5e,"encodeHex");x5e=1,jy=2;a(b5e,"State");a(zz,"indentString");a(E5,"generateNextLine");a(T5e,"testImplicitResolving");a(tT,"isWhitespace");a(Uy,"isPrintable");a(qz,"isNsCharOrWhitespace");a(jz,"isPlainSafe");a(k5e,"isPlainSafeFirst");a(C5e,"isPlainSafeLast");a(Wy,"codePointAt");a(Tq,"needIndentIndicator");kq=1,A5=2,Cq=3,vq=4,np=5;a(v5e,"chooseScalarStyle");a(S5e,"writeScalar");a(Uz,"blockHeader");a(Hz,"dropEndingNewline");a(_5e,"foldString");a(Yz,"foldLine");a(w5e,"escapeString");a(E5e,"writeFlowSequence");a(Kz,"writeBlockSequence");a(A5e,"writeFlowMapping");a(R5e,"writeBlockMapping");a(Xz,"detectType");a(Tl,"writeNode");a(L5e,"getDuplicateReferences");a(R5,"inspectNode");a(D5e,"dump$1");I5e=D5e,N5e={dump:I5e};a(M5,"renamed");Oc=Jz,Pc=dq.load,CAt=dq.loadAll,vAt=N5e.dump,SAt=M5("safeLoad","load"),_At=M5("safeLoadAll","loadAll"),wAt=M5("safeDump","dump")});function $5(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}function Rq(e){Rh=e}function Rr(e,t=""){let r=typeof e=="string"?e:e.source,i={replace:a((n,s)=>{let o=typeof s=="string"?s:s.source;return o=o.replace(On.caret,"$1"),r=r.replace(n,o),i},"replace"),getRegex:a(()=>new RegExp(r,t),"getRegex")};return i}function Co(e,t){if(t){if(On.escapeTest.test(e))return e.replace(On.escapeReplace,_q)}else if(On.escapeTestNoEncode.test(e))return e.replace(On.escapeReplaceNoEncode,_q);return e}function wq(e){try{e=encodeURI(e).replace(On.percentDecode,"%")}catch{return null}return e}function Eq(e,t){let r=e.replace(On.findPipe,(s,o,l)=>{let u=!1,h=o;for(;--h>=0&&l[h]==="\\";)u=!u;return u?"|":" |"}),i=r.split(On.splitPipe),n=0;if(i[0].trim()||i.shift(),i.length>0&&!i.at(-1)?.trim()&&i.pop(),t)if(i.length>t)i.splice(t);else for(;i.length<t;)i.push("");for(;n<i.length;n++)i[n]=i[n].trim().replace(On.slashPipe,"|");return i}function Ky(e,t,r){let i=e.length;if(i===0)return"";let n=0;for(;n<i;){let s=e.charAt(i-n-1);if(s===t&&!r)n++;else if(s!==t&&r)n++;else break}return e.slice(0,i-n)}function fRe(e,t){if(e.indexOf(t[1])===-1)return-1;let r=0;for(let i=0;i<e.length;i++)if(e[i]==="\\")i++;else if(e[i]===t[0])r++;else if(e[i]===t[1]&&(r--,r<0))return i;return r>0?-2:-1}function Aq(e,t,r,i,n){let s=t.href,o=t.title||null,l=e[1].replace(n.other.outputLinkReplace,"$1");i.state.inLink=!0;let u={type:e[0].charAt(0)==="!"?"image":"link",raw:r,href:s,title:o,text:l,tokens:i.inlineTokens(l)};return i.state.inLink=!1,u}function pRe(e,t,r){let i=e.match(r.other.indentCodeCompensation);if(i===null)return t;let n=i[1];return t.split(`
`).map(s=>{let o=s.match(r.other.beginningSpace);if(o===null)return s;let[l]=o;return l.length>=n.length?s.slice(n.length):s}).join(`
`)}function wr(e,t){return Ah.parse(e,t)}var Rh,Qy,On,M5e,O5e,P5e,Zy,B5e,F5,Lq,Dq,$5e,V5,F5e,G5,V5e,G5e,lT,W5,W5e,Iq,z5e,z5,Sq,q5e,j5e,U5e,H5e,Nq,Y5e,cT,q5,Mq,K5e,Oq,X5e,Q5e,Z5e,Pq,J5e,eRe,Bq,tRe,rRe,iRe,nRe,aRe,sRe,oRe,aT,lRe,$q,Fq,cRe,j5,uRe,O5,hRe,nT,Yy,dRe,_q,sT,kl,oT,U5,Cl,Xy,mRe,Ah,AAt,RAt,LAt,DAt,IAt,NAt,MAt,Vq=v(()=>{"use strict";a($5,"L");Rh=$5();a(Rq,"G");Qy={exec:a(()=>null,"exec")};a(Rr,"h");On={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:a(e=>new RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),"listItemRegex"),nextBulletRegex:a(e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),"nextBulletRegex"),hrRegex:a(e=>new RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),"hrRegex"),fencesBeginRegex:a(e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),"fencesBeginRegex"),headingBeginRegex:a(e=>new RegExp(`^ {0,${Math.min(3,e-1)}}#`),"headingBeginRegex"),htmlBeginRegex:a(e=>new RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i"),"htmlBeginRegex")},M5e=/^(?:[ \t]*(?:\n|$))+/,O5e=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,P5e=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Zy=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,B5e=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,F5=/(?:[*+-]|\d{1,9}[.)])/,Lq=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Dq=Rr(Lq).replace(/bull/g,F5).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(),$5e=Rr(Lq).replace(/bull/g,F5).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(),V5=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,F5e=/^[^\n]+/,G5=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,V5e=Rr(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",G5).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),G5e=Rr(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,F5).getRegex(),lT="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",W5=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,W5e=Rr("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",W5).replace("tag",lT).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Iq=Rr(V5).replace("hr",Zy).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",lT).getRegex(),z5e=Rr(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Iq).getRegex(),z5={blockquote:z5e,code:O5e,def:V5e,fences:P5e,heading:B5e,hr:Zy,html:W5e,lheading:Dq,list:G5e,newline:M5e,paragraph:Iq,table:Qy,text:F5e},Sq=Rr("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Zy).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",lT).getRegex(),q5e={...z5,lheading:$5e,table:Sq,paragraph:Rr(V5).replace("hr",Zy).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Sq).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",lT).getRegex()},j5e={...z5,html:Rr(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",W5).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Qy,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Rr(V5).replace("hr",Zy).replace("heading",` *#{1,6} *[^
]`).replace("lheading",Dq).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},U5e=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,H5e=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Nq=/^( {2,}|\\)\n(?!\s*$)/,Y5e=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,cT=/[\p{P}\p{S}]/u,q5=/[\s\p{P}\p{S}]/u,Mq=/[^\s\p{P}\p{S}]/u,K5e=Rr(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,q5).getRegex(),Oq=/(?!~)[\p{P}\p{S}]/u,X5e=/(?!~)[\s\p{P}\p{S}]/u,Q5e=/(?:[^\s\p{P}\p{S}]|~)/u,Z5e=/\[[^\[\]]*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)|`[^`]*?`|<(?! )[^<>]*?>/g,Pq=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,J5e=Rr(Pq,"u").replace(/punct/g,cT).getRegex(),eRe=Rr(Pq,"u").replace(/punct/g,Oq).getRegex(),Bq="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",tRe=Rr(Bq,"gu").replace(/notPunctSpace/g,Mq).replace(/punctSpace/g,q5).replace(/punct/g,cT).getRegex(),rRe=Rr(Bq,"gu").replace(/notPunctSpace/g,Q5e).replace(/punctSpace/g,X5e).replace(/punct/g,Oq).getRegex(),iRe=Rr("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Mq).replace(/punctSpace/g,q5).replace(/punct/g,cT).getRegex(),nRe=Rr(/\\(punct)/,"gu").replace(/punct/g,cT).getRegex(),aRe=Rr(/^<(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(),sRe=Rr(W5).replace("(?:-->|$)","-->").getRegex(),oRe=Rr("^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",sRe).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),aT=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`[^`]*`|[^\[\]\\`])*?/,lRe=Rr(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",aT).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),$q=Rr(/^!?\[(label)\]\[(ref)\]/).replace("label",aT).replace("ref",G5).getRegex(),Fq=Rr(/^!?\[(ref)\](?:\[\])?/).replace("ref",G5).getRegex(),cRe=Rr("reflink|nolink(?!\\()","g").replace("reflink",$q).replace("nolink",Fq).getRegex(),j5={_backpedal:Qy,anyPunctuation:nRe,autolink:aRe,blockSkip:Z5e,br:Nq,code:H5e,del:Qy,emStrongLDelim:J5e,emStrongRDelimAst:tRe,emStrongRDelimUnd:iRe,escape:U5e,link:lRe,nolink:Fq,punctuation:K5e,reflink:$q,reflinkSearch:cRe,tag:oRe,text:Y5e,url:Qy},uRe={...j5,link:Rr(/^!?\[(label)\]\((.*?)\)/).replace("label",aT).getRegex(),reflink:Rr(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",aT).getRegex()},O5={...j5,emStrongRDelimAst:rRe,emStrongLDelim:eRe,url:Rr(/^((?: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.!#$%&'*+\/=?_`{\|}~-]+@)))/},hRe={...O5,br:Rr(Nq).replace("{2,}","*").getRegex(),text:Rr(O5.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},nT={normal:z5,gfm:q5e,pedantic:j5e},Yy={normal:j5,gfm:O5,breaks:hRe,pedantic:uRe},dRe={"&":"&","<":"<",">":">",'"':""","'":"'"},_q=a(e=>dRe[e],"ke");a(Co,"w");a(wq,"J");a(Eq,"V");a(Ky,"z");a(fRe,"ge");a(Aq,"fe");a(pRe,"Je");sT=class{static{a(this,"y")}options;rules;lexer;constructor(e){this.options=e||Rh}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let r=t[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?r:Ky(r,`
`)}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let r=t[0],i=pRe(r,t[3]||"",this.rules);return{type:"code",raw:r,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:i}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let r=t[2].trim();if(this.rules.other.endingHash.test(r)){let i=Ky(r,"#");(this.options.pedantic||!i||this.rules.other.endingSpaceChar.test(i))&&(r=i.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:r,tokens:this.lexer.inline(r)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:Ky(t[0],`
`)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let r=Ky(t[0],`
`).split(`
`),i="",n="",s=[];for(;r.length>0;){let o=!1,l=[],u;for(u=0;u<r.length;u++)if(this.rules.other.blockquoteStart.test(r[u]))l.push(r[u]),o=!0;else if(!o)l.push(r[u]);else break;r=r.slice(u);let h=l.join(`
`),d=h.replace(this.rules.other.blockquoteSetextReplace,`
$1`).replace(this.rules.other.blockquoteSetextReplace2,"");i=i?`${i}
${h}`:h,n=n?`${n}
${d}`:d;let f=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(d,s,!0),this.lexer.state.top=f,r.length===0)break;let p=s.at(-1);if(p?.type==="code")break;if(p?.type==="blockquote"){let m=p,g=m.raw+`
`+r.join(`
`),x=this.blockquote(g);s[s.length-1]=x,i=i.substring(0,i.length-m.raw.length)+x.raw,n=n.substring(0,n.length-m.text.length)+x.text;break}else if(p?.type==="list"){let m=p,g=m.raw+`
`+r.join(`
`),x=this.list(g);s[s.length-1]=x,i=i.substring(0,i.length-p.raw.length)+x.raw,n=n.substring(0,n.length-m.raw.length)+x.raw,r=g.substring(s.at(-1).raw.length).split(`
`);continue}}return{type:"blockquote",raw:i,tokens:s,text:n}}}list(e){let t=this.rules.block.list.exec(e);if(t){let r=t[1].trim(),i=r.length>1,n={type:"list",raw:"",ordered:i,start:i?+r.slice(0,-1):"",loose:!1,items:[]};r=i?`\\d{1,9}\\${r.slice(-1)}`:`\\${r}`,this.options.pedantic&&(r=i?r:"[*+-]");let s=this.rules.other.listItemRegex(r),o=!1;for(;e;){let u=!1,h="",d="";if(!(t=s.exec(e))||this.rules.block.hr.test(e))break;h=t[0],e=e.substring(h.length);let f=t[2].split(`
`,1)[0].replace(this.rules.other.listReplaceTabs,T=>" ".repeat(3*T.length)),p=e.split(`
`,1)[0],m=!f.trim(),g=0;if(this.options.pedantic?(g=2,d=f.trimStart()):m?g=t[1].length+1:(g=t[2].search(this.rules.other.nonSpaceChar),g=g>4?1:g,d=f.slice(g),g+=t[1].length),m&&this.rules.other.blankLine.test(p)&&(h+=p+`
`,e=e.substring(p.length+1),u=!0),!u){let T=this.rules.other.nextBulletRegex(g),k=this.rules.other.hrRegex(g),C=this.rules.other.fencesBeginRegex(g),S=this.rules.other.headingBeginRegex(g),w=this.rules.other.htmlBeginRegex(g);for(;e;){let _=e.split(`
`,1)[0],L;if(p=_,this.options.pedantic?(p=p.replace(this.rules.other.listReplaceNesting," "),L=p):L=p.replace(this.rules.other.tabCharGlobal," "),C.test(p)||S.test(p)||w.test(p)||T.test(p)||k.test(p))break;if(L.search(this.rules.other.nonSpaceChar)>=g||!p.trim())d+=`
`+L.slice(g);else{if(m||f.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||C.test(f)||S.test(f)||k.test(f))break;d+=`
`+p}!m&&!p.trim()&&(m=!0),h+=_+`
`,e=e.substring(_.length+1),f=L.slice(g)}}n.loose||(o?n.loose=!0:this.rules.other.doubleBlankLine.test(h)&&(o=!0));let x=null,b;this.options.gfm&&(x=this.rules.other.listIsTask.exec(d),x&&(b=x[0]!=="[ ] ",d=d.replace(this.rules.other.listReplaceTask,""))),n.items.push({type:"list_item",raw:h,task:!!x,checked:b,loose:!1,text:d,tokens:[]}),n.raw+=h}let l=n.items.at(-1);if(l)l.raw=l.raw.trimEnd(),l.text=l.text.trimEnd();else return;n.raw=n.raw.trimEnd();for(let u=0;u<n.items.length;u++)if(this.lexer.state.top=!1,n.items[u].tokens=this.lexer.blockTokens(n.items[u].text,[]),!n.loose){let h=n.items[u].tokens.filter(f=>f.type==="space"),d=h.length>0&&h.some(f=>this.rules.other.anyLine.test(f.raw));n.loose=d}if(n.loose)for(let u=0;u<n.items.length;u++)n.items[u].loose=!0;return n}}html(e){let t=this.rules.block.html.exec(e);if(t)return{type:"html",block:!0,raw:t[0],pre:t[1]==="pre"||t[1]==="script"||t[1]==="style",text:t[0]}}def(e){let t=this.rules.block.def.exec(e);if(t){let r=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),i=t[2]?t[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",n=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:r,raw:t[0],href:i,title:n}}}table(e){let t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;let r=Eq(t[1]),i=t[2].replace(this.rules.other.tableAlignChars,"").split("|"),n=t[3]?.trim()?t[3].replace(this.rules.other.tableRowBlankLine,"").split(`
`):[],s={type:"table",raw:t[0],header:[],align:[],rows:[]};if(r.length===i.length){for(let o of i)this.rules.other.tableAlignRight.test(o)?s.align.push("right"):this.rules.other.tableAlignCenter.test(o)?s.align.push("center"):this.rules.other.tableAlignLeft.test(o)?s.align.push("left"):s.align.push(null);for(let o=0;o<r.length;o++)s.header.push({text:r[o],tokens:this.lexer.inline(r[o]),header:!0,align:s.align[o]});for(let o of n)s.rows.push(Eq(o,s.header.length).map((l,u)=>({text:l,tokens:this.lexer.inline(l),header:!1,align:s.align[u]})));return s}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:t[2].charAt(0)==="="?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let r=t[1].charAt(t[1].length-1)===`
`?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:r,tokens:this.lexer.inline(r)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let r=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(r)){if(!this.rules.other.endAngleBracket.test(r))return;let s=Ky(r.slice(0,-1),"\\");if((r.length-s.length)%2===0)return}else{let s=fRe(t[2],"()");if(s===-2)return;if(s>-1){let o=(t[0].indexOf("!")===0?5:4)+t[1].length+s;t[2]=t[2].substring(0,s),t[0]=t[0].substring(0,o).trim(),t[3]=""}}let i=t[2],n="";if(this.options.pedantic){let s=this.rules.other.pedanticHrefTitle.exec(i);s&&(i=s[1],n=s[3])}else n=t[3]?t[3].slice(1,-1):"";return i=i.trim(),this.rules.other.startAngleBracket.test(i)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(r)?i=i.slice(1):i=i.slice(1,-1)),Aq(t,{href:i&&i.replace(this.rules.inline.anyPunctuation,"$1"),title:n&&n.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer,this.rules)}}reflink(e,t){let r;if((r=this.rules.inline.reflink.exec(e))||(r=this.rules.inline.nolink.exec(e))){let i=(r[2]||r[1]).replace(this.rules.other.multipleSpaceGlobal," "),n=t[i.toLowerCase()];if(!n){let s=r[0].charAt(0);return{type:"text",raw:s,text:s}}return Aq(r,n,r[0],this.lexer,this.rules)}}emStrong(e,t,r=""){let i=this.rules.inline.emStrongLDelim.exec(e);if(!(!i||i[3]&&r.match(this.rules.other.unicodeAlphaNumeric))&&(!(i[1]||i[2])||!r||this.rules.inline.punctuation.exec(r))){let n=[...i[0]].length-1,s,o,l=n,u=0,h=i[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(h.lastIndex=0,t=t.slice(-1*e.length+n);(i=h.exec(t))!=null;){if(s=i[1]||i[2]||i[3]||i[4]||i[5]||i[6],!s)continue;if(o=[...s].length,i[3]||i[4]){l+=o;continue}else if((i[5]||i[6])&&n%3&&!((n+o)%3)){u+=o;continue}if(l-=o,l>0)continue;o=Math.min(o,o+l+u);let d=[...i[0]][0].length,f=e.slice(0,n+i.index+d+o);if(Math.min(n,o)%2){let m=f.slice(1,-1);return{type:"em",raw:f,text:m,tokens:this.lexer.inlineTokens(m)}}let p=f.slice(2,-2);return{type:"strong",raw:f,text:p,tokens:this.lexer.inlineTokens(p)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let r=t[2].replace(this.rules.other.newLineCharGlobal," "),i=this.rules.other.nonSpaceChar.test(r),n=this.rules.other.startingSpaceChar.test(r)&&this.rules.other.endingSpaceChar.test(r);return i&&n&&(r=r.substring(1,r.length-1)),{type:"codespan",raw:t[0],text:r}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){let t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let r,i;return t[2]==="@"?(r=t[1],i="mailto:"+r):(r=t[1],i=r),{type:"link",raw:t[0],text:r,href:i,tokens:[{type:"text",raw:r,text:r}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let r,i;if(t[2]==="@")r=t[0],i="mailto:"+r;else{let n;do n=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??"";while(n!==t[0]);r=t[0],t[1]==="www."?i="http://"+t[0]:i=t[0]}return{type:"link",raw:t[0],text:r,href:i,tokens:[{type:"text",raw:r,text:r}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let r=this.lexer.state.inRawBlock;return{type:"text",raw:t[0],text:t[0],escaped:r}}}},kl=class P5{static{a(this,"l")}tokens;options;state;tokenizer;inlineQueue;constructor(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||Rh,this.options.tokenizer=this.options.tokenizer||new sT,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let r={other:On,block:nT.normal,inline:Yy.normal};this.options.pedantic?(r.block=nT.pedantic,r.inline=Yy.pedantic):this.options.gfm&&(r.block=nT.gfm,this.options.breaks?r.inline=Yy.breaks:r.inline=Yy.gfm),this.tokenizer.rules=r}static get rules(){return{block:nT,inline:Yy}}static lex(t,r){return new P5(r).lex(t)}static lexInline(t,r){return new P5(r).inlineTokens(t)}lex(t){t=t.replace(On.carriageReturn,`
`),this.blockTokens(t,this.tokens);for(let r=0;r<this.inlineQueue.length;r++){let i=this.inlineQueue[r];this.inlineTokens(i.src,i.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,r=[],i=!1){for(this.options.pedantic&&(t=t.replace(On.tabCharGlobal," ").replace(On.spaceLine,""));t;){let n;if(this.options.extensions?.block?.some(o=>(n=o.call({lexer:this},t,r))?(t=t.substring(n.raw.length),r.push(n),!0):!1))continue;if(n=this.tokenizer.space(t)){t=t.substring(n.raw.length);let o=r.at(-1);n.raw.length===1&&o!==void 0?o.raw+=`
`:r.push(n);continue}if(n=this.tokenizer.code(t)){t=t.substring(n.raw.length);let o=r.at(-1);o?.type==="paragraph"||o?.type==="text"?(o.raw+=(o.raw.endsWith(`
`)?"":`
`)+n.raw,o.text+=`
`+n.text,this.inlineQueue.at(-1).src=o.text):r.push(n);continue}if(n=this.tokenizer.fences(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.heading(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.hr(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.blockquote(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.list(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.html(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.def(t)){t=t.substring(n.raw.length);let o=r.at(-1);o?.type==="paragraph"||o?.type==="text"?(o.raw+=(o.raw.endsWith(`
`)?"":`
`)+n.raw,o.text+=`
`+n.raw,this.inlineQueue.at(-1).src=o.text):this.tokens.links[n.tag]||(this.tokens.links[n.tag]={href:n.href,title:n.title},r.push(n));continue}if(n=this.tokenizer.table(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.lheading(t)){t=t.substring(n.raw.length),r.push(n);continue}let s=t;if(this.options.extensions?.startBlock){let o=1/0,l=t.slice(1),u;this.options.extensions.startBlock.forEach(h=>{u=h.call({lexer:this},l),typeof u=="number"&&u>=0&&(o=Math.min(o,u))}),o<1/0&&o>=0&&(s=t.substring(0,o+1))}if(this.state.top&&(n=this.tokenizer.paragraph(s))){let o=r.at(-1);i&&o?.type==="paragraph"?(o.raw+=(o.raw.endsWith(`
`)?"":`
`)+n.raw,o.text+=`
`+n.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=o.text):r.push(n),i=s.length!==t.length,t=t.substring(n.raw.length);continue}if(n=this.tokenizer.text(t)){t=t.substring(n.raw.length);let o=r.at(-1);o?.type==="text"?(o.raw+=(o.raw.endsWith(`
`)?"":`
`)+n.raw,o.text+=`
`+n.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=o.text):r.push(n);continue}if(t){let o="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(o);break}else throw new Error(o)}}return this.state.top=!0,r}inline(t,r=[]){return this.inlineQueue.push({src:t,tokens:r}),r}inlineTokens(t,r=[]){let i=t,n=null;if(this.tokens.links){let l=Object.keys(this.tokens.links);if(l.length>0)for(;(n=this.tokenizer.rules.inline.reflinkSearch.exec(i))!=null;)l.includes(n[0].slice(n[0].lastIndexOf("[")+1,-1))&&(i=i.slice(0,n.index)+"["+"a".repeat(n[0].length-2)+"]"+i.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(n=this.tokenizer.rules.inline.anyPunctuation.exec(i))!=null;)i=i.slice(0,n.index)+"++"+i.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;(n=this.tokenizer.rules.inline.blockSkip.exec(i))!=null;)i=i.slice(0,n.index)+"["+"a".repeat(n[0].length-2)+"]"+i.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);i=this.options.hooks?.emStrongMask?.call({lexer:this},i)??i;let s=!1,o="";for(;t;){s||(o=""),s=!1;let l;if(this.options.extensions?.inline?.some(h=>(l=h.call({lexer:this},t,r))?(t=t.substring(l.raw.length),r.push(l),!0):!1))continue;if(l=this.tokenizer.escape(t)){t=t.substring(l.raw.length),r.push(l);continue}if(l=this.tokenizer.tag(t)){t=t.substring(l.raw.length),r.push(l);continue}if(l=this.tokenizer.link(t)){t=t.substring(l.raw.length),r.push(l);continue}if(l=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(l.raw.length);let h=r.at(-1);l.type==="text"&&h?.type==="text"?(h.raw+=l.raw,h.text+=l.text):r.push(l);continue}if(l=this.tokenizer.emStrong(t,i,o)){t=t.substring(l.raw.length),r.push(l);continue}if(l=this.tokenizer.codespan(t)){t=t.substring(l.raw.length),r.push(l);continue}if(l=this.tokenizer.br(t)){t=t.substring(l.raw.length),r.push(l);continue}if(l=this.tokenizer.del(t)){t=t.substring(l.raw.length),r.push(l);continue}if(l=this.tokenizer.autolink(t)){t=t.substring(l.raw.length),r.push(l);continue}if(!this.state.inLink&&(l=this.tokenizer.url(t))){t=t.substring(l.raw.length),r.push(l);continue}let u=t;if(this.options.extensions?.startInline){let h=1/0,d=t.slice(1),f;this.options.extensions.startInline.forEach(p=>{f=p.call({lexer:this},d),typeof f=="number"&&f>=0&&(h=Math.min(h,f))}),h<1/0&&h>=0&&(u=t.substring(0,h+1))}if(l=this.tokenizer.inlineText(u)){t=t.substring(l.raw.length),l.raw.slice(-1)!=="_"&&(o=l.raw.slice(-1)),s=!0;let h=r.at(-1);h?.type==="text"?(h.raw+=l.raw,h.text+=l.text):r.push(l);continue}if(t){let h="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(h);break}else throw new Error(h)}}return r}},oT=class{static{a(this,"P")}options;parser;constructor(e){this.options=e||Rh}space(e){return""}code({text:e,lang:t,escaped:r}){let i=(t||"").match(On.notSpaceStart)?.[0],n=e.replace(On.endingNewline,"")+`
`;return i?'<pre><code class="language-'+Co(i)+'">'+(r?n:Co(n,!0))+`</code></pre>
`:"<pre><code>"+(r?n:Co(n,!0))+`</code></pre>
`}blockquote({tokens:e}){return`<blockquote>
${this.parser.parse(e)}</blockquote>
`}html({text:e}){return e}def(e){return""}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>
`}hr(e){return`<hr>
`}list(e){let t=e.ordered,r=e.start,i="";for(let o=0;o<e.items.length;o++){let l=e.items[o];i+=this.listitem(l)}let n=t?"ol":"ul",s=t&&r!==1?' start="'+r+'"':"";return"<"+n+s+`>
`+i+"</"+n+`>
`}listitem(e){let t="";if(e.task){let r=this.checkbox({checked:!!e.checked});e.loose?e.tokens[0]?.type==="paragraph"?(e.tokens[0].text=r+" "+e.tokens[0].text,e.tokens[0].tokens&&e.tokens[0].tokens.length>0&&e.tokens[0].tokens[0].type==="text"&&(e.tokens[0].tokens[0].text=r+" "+Co(e.tokens[0].tokens[0].text),e.tokens[0].tokens[0].escaped=!0)):e.tokens.unshift({type:"text",raw:r+" ",text:r+" ",escaped:!0}):t+=r+" "}return t+=this.parser.parse(e.tokens,!!e.loose),`<li>${t}</li>
`}checkbox({checked:e}){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>
`}table(e){let t="",r="";for(let n=0;n<e.header.length;n++)r+=this.tablecell(e.header[n]);t+=this.tablerow({text:r});let i="";for(let n=0;n<e.rows.length;n++){let s=e.rows[n];r="";for(let o=0;o<s.length;o++)r+=this.tablecell(s[o]);i+=this.tablerow({text:r})}return i&&(i=`<tbody>${i}</tbody>`),`<table>
<thead>
`+t+`</thead>
`+i+`</table>
`}tablerow({text:e}){return`<tr>
${e}</tr>
`}tablecell(e){let 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>${Co(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:r}){let i=this.parser.parseInline(r),n=wq(e);if(n===null)return i;e=n;let s='<a href="'+e+'"';return t&&(s+=' title="'+Co(t)+'"'),s+=">"+i+"</a>",s}image({href:e,title:t,text:r,tokens:i}){i&&(r=this.parser.parseInline(i,this.parser.textRenderer));let n=wq(e);if(n===null)return Co(r);e=n;let s=`<img src="${e}" alt="${r}"`;return t&&(s+=` title="${Co(t)}"`),s+=">",s}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:Co(e.text)}},U5=class{static{a(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""}},Cl=class B5{static{a(this,"l")}options;renderer;textRenderer;constructor(t){this.options=t||Rh,this.options.renderer=this.options.renderer||new oT,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new U5}static parse(t,r){return new B5(r).parse(t)}static parseInline(t,r){return new B5(r).parseInline(t)}parse(t,r=!0){let i="";for(let n=0;n<t.length;n++){let s=t[n];if(this.options.extensions?.renderers?.[s.type]){let l=s,u=this.options.extensions.renderers[l.type].call({parser:this},l);if(u!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(l.type)){i+=u||"";continue}}let o=s;switch(o.type){case"space":{i+=this.renderer.space(o);continue}case"hr":{i+=this.renderer.hr(o);continue}case"heading":{i+=this.renderer.heading(o);continue}case"code":{i+=this.renderer.code(o);continue}case"table":{i+=this.renderer.table(o);continue}case"blockquote":{i+=this.renderer.blockquote(o);continue}case"list":{i+=this.renderer.list(o);continue}case"html":{i+=this.renderer.html(o);continue}case"def":{i+=this.renderer.def(o);continue}case"paragraph":{i+=this.renderer.paragraph(o);continue}case"text":{let l=o,u=this.renderer.text(l);for(;n+1<t.length&&t[n+1].type==="text";)l=t[++n],u+=`
`+this.renderer.text(l);r?i+=this.renderer.paragraph({type:"paragraph",raw:u,text:u,tokens:[{type:"text",raw:u,text:u,escaped:!0}]}):i+=u;continue}default:{let l='Token with "'+o.type+'" type was not found.';if(this.options.silent)return console.error(l),"";throw new Error(l)}}}return i}parseInline(t,r=this.renderer){let i="";for(let n=0;n<t.length;n++){let s=t[n];if(this.options.extensions?.renderers?.[s.type]){let l=this.options.extensions.renderers[s.type].call({parser:this},s);if(l!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(s.type)){i+=l||"";continue}}let o=s;switch(o.type){case"escape":{i+=r.text(o);break}case"html":{i+=r.html(o);break}case"link":{i+=r.link(o);break}case"image":{i+=r.image(o);break}case"strong":{i+=r.strong(o);break}case"em":{i+=r.em(o);break}case"codespan":{i+=r.codespan(o);break}case"br":{i+=r.br(o);break}case"del":{i+=r.del(o);break}case"text":{i+=r.text(o);break}default:{let l='Token with "'+o.type+'" type was not found.';if(this.options.silent)return console.error(l),"";throw new Error(l)}}}return i}},Xy=class{static{a(this,"S")}options;block;constructor(e){this.options=e||Rh}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?kl.lex:kl.lexInline}provideParser(){return this.block?Cl.parse:Cl.parseInline}},mRe=class{static{a(this,"B")}defaults=$5();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=Cl;Renderer=oT;TextRenderer=U5;Lexer=kl;Tokenizer=sT;Hooks=Xy;constructor(...e){this.use(...e)}walkTokens(e,t){let r=[];for(let i of e)switch(r=r.concat(t.call(this,i)),i.type){case"table":{let n=i;for(let s of n.header)r=r.concat(this.walkTokens(s.tokens,t));for(let s of n.rows)for(let o of s)r=r.concat(this.walkTokens(o.tokens,t));break}case"list":{let n=i;r=r.concat(this.walkTokens(n.items,t));break}default:{let n=i;this.defaults.extensions?.childTokens?.[n.type]?this.defaults.extensions.childTokens[n.type].forEach(s=>{let o=n[s].flat(1/0);r=r.concat(this.walkTokens(o,t))}):n.tokens&&(r=r.concat(this.walkTokens(n.tokens,t)))}}return r}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(r=>{let i={...r};if(i.async=this.defaults.async||i.async||!1,r.extensions&&(r.extensions.forEach(n=>{if(!n.name)throw new Error("extension name required");if("renderer"in n){let s=t.renderers[n.name];s?t.renderers[n.name]=function(...o){let l=n.renderer.apply(this,o);return l===!1&&(l=s.apply(this,o)),l}:t.renderers[n.name]=n.renderer}if("tokenizer"in n){if(!n.level||n.level!=="block"&&n.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let s=t[n.level];s?s.unshift(n.tokenizer):t[n.level]=[n.tokenizer],n.start&&(n.level==="block"?t.startBlock?t.startBlock.push(n.start):t.startBlock=[n.start]:n.level==="inline"&&(t.startInline?t.startInline.push(n.start):t.startInline=[n.start]))}"childTokens"in n&&n.childTokens&&(t.childTokens[n.name]=n.childTokens)}),i.extensions=t),r.renderer){let n=this.defaults.renderer||new oT(this.defaults);for(let s in r.renderer){if(!(s in n))throw new Error(`renderer '${s}' does not exist`);if(["options","parser"].includes(s))continue;let o=s,l=r.renderer[o],u=n[o];n[o]=(...h)=>{let d=l.apply(n,h);return d===!1&&(d=u.apply(n,h)),d||""}}i.renderer=n}if(r.tokenizer){let n=this.defaults.tokenizer||new sT(this.defaults);for(let s in r.tokenizer){if(!(s in n))throw new Error(`tokenizer '${s}' does not exist`);if(["options","rules","lexer"].includes(s))continue;let o=s,l=r.tokenizer[o],u=n[o];n[o]=(...h)=>{let d=l.apply(n,h);return d===!1&&(d=u.apply(n,h)),d}}i.tokenizer=n}if(r.hooks){let n=this.defaults.hooks||new Xy;for(let s in r.hooks){if(!(s in n))throw new Error(`hook '${s}' does not exist`);if(["options","block"].includes(s))continue;let o=s,l=r.hooks[o],u=n[o];Xy.passThroughHooks.has(s)?n[o]=h=>{if(this.defaults.async&&Xy.passThroughHooksRespectAsync.has(s))return Promise.resolve(l.call(n,h)).then(f=>u.call(n,f));let d=l.call(n,h);return u.call(n,d)}:n[o]=(...h)=>{let d=l.apply(n,h);return d===!1&&(d=u.apply(n,h)),d}}i.hooks=n}if(r.walkTokens){let n=this.defaults.walkTokens,s=r.walkTokens;i.walkTokens=function(o){let l=[];return l.push(s.call(this,o)),n&&(l=l.concat(n.call(this,o))),l}}this.defaults={...this.defaults,...i}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return kl.lex(e,t??this.defaults)}parser(e,t){return Cl.parse(e,t??this.defaults)}parseMarkdown(e){return(t,r)=>{let i={...r},n={...this.defaults,...i},s=this.onError(!!n.silent,!!n.async);if(this.defaults.async===!0&&i.async===!1)return s(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof t>"u"||t===null)return s(new Error("marked(): input parameter is undefined or null"));if(typeof t!="string")return s(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected"));n.hooks&&(n.hooks.options=n,n.hooks.block=e);let o=n.hooks?n.hooks.provideLexer():e?kl.lex:kl.lexInline,l=n.hooks?n.hooks.provideParser():e?Cl.parse:Cl.parseInline;if(n.async)return Promise.resolve(n.hooks?n.hooks.preprocess(t):t).then(u=>o(u,n)).then(u=>n.hooks?n.hooks.processAllTokens(u):u).then(u=>n.walkTokens?Promise.all(this.walkTokens(u,n.walkTokens)).then(()=>u):u).then(u=>l(u,n)).then(u=>n.hooks?n.hooks.postprocess(u):u).catch(s);try{n.hooks&&(t=n.hooks.preprocess(t));let u=o(t,n);n.hooks&&(u=n.hooks.processAllTokens(u)),n.walkTokens&&this.walkTokens(u,n.walkTokens);let h=l(u,n);return n.hooks&&(h=n.hooks.postprocess(h)),h}catch(u){return s(u)}}}onError(e,t){return r=>{if(r.message+=`
Please report this to https://github.com/markedjs/marked.`,e){let i="<p>An error occurred:</p><pre>"+Co(r.message+"",!0)+"</pre>";return t?Promise.resolve(i):i}if(t)return Promise.reject(r);throw r}}},Ah=new mRe;a(wr,"d");wr.options=wr.setOptions=function(e){return Ah.setOptions(e),wr.defaults=Ah.defaults,Rq(wr.defaults),wr};wr.getDefaults=$5;wr.defaults=Rh;wr.use=function(...e){return Ah.use(...e),wr.defaults=Ah.defaults,Rq(wr.defaults),wr};wr.walkTokens=function(e,t){return Ah.walkTokens(e,t)};wr.parseInline=Ah.parseInline;wr.Parser=Cl;wr.parser=Cl.parse;wr.Renderer=oT;wr.TextRenderer=U5;wr.Lexer=kl;wr.lexer=kl.lex;wr.Tokenizer=sT;wr.Hooks=Xy;wr.parse=wr;AAt=wr.options,RAt=wr.setOptions,LAt=wr.use,DAt=wr.walkTokens,IAt=wr.parseInline,NAt=Cl.parse,MAt=kl.lex});function gRe(e,{markdownAutoWrap:t}){let i=e.replace(/<br\/>/g,`
`).replace(/\n{2,}/g,`
`);return Xx(i)}function Gq(e){return e.split(/\\n|\n|<br\s*\/?>/gi).map(t=>t.trim().match(/<[^>]+>|[^\s<>]+/g)?.map(r=>({content:r,type:"normal"}))??[])}function Wq(e,t={}){let r=gRe(e,t),i=wr.lexer(r),n=[[]],s=0;function o(l,u="normal"){l.type==="text"?l.text.split(`
`).forEach((d,f)=>{f!==0&&(s++,n.push([])),d.split(" ").forEach(p=>{p=p.replace(/'/g,"'"),p&&n[s].push({content:p,type:u})})}):l.type==="strong"||l.type==="em"?l.tokens.forEach(h=>{o(h,l.type)}):l.type==="html"&&n[s].push({content:l.text,type:"normal"})}return a(o,"processNode"),i.forEach(l=>{l.type==="paragraph"?l.tokens?.forEach(u=>{o(u)}):l.type==="html"?n[s].push({content:l.text,type:"normal"}):n[s].push({content:l.raw,type:"normal"})}),n}function zq(e){return e?`<p>${e.replace(/\\n|\n/g,"<br />")}</p>`:""}function qq(e,{markdownAutoWrap:t}={}){let r=wr.lexer(e);function i(n){return n.type==="text"?t===!1?n.text.replace(/\n */g,"<br/>").replace(/ /g," "):n.text.replace(/\n */g,"<br/>"):n.type==="strong"?`<strong>${n.tokens?.map(i).join("")}</strong>`:n.type==="em"?`<em>${n.tokens?.map(i).join("")}</em>`:n.type==="paragraph"?`<p>${n.tokens?.map(i).join("")}</p>`:n.type==="space"?"":n.type==="html"?`${n.text}`:n.type==="escape"?n.text:(W.warn(`Unsupported markdown: ${n.type}`),n.raw)}return a(i,"output"),r.map(i).join("")}var jq=v(()=>{"use strict";Vq();yE();nt();a(gRe,"preprocessMarkdown");a(Gq,"nonMarkdownToLines");a(Wq,"markdownToLines");a(zq,"nonMarkdownToHTML");a(qq,"markdownToHTML")});function yRe(e){return Intl.Segmenter?[...new Intl.Segmenter().segment(e)].map(t=>t.segment):[...e]}function xRe(e,t){let r=yRe(t.content);return Uq(e,[],r,t.type)}function Uq(e,t,r,i){if(r.length===0)return[{content:t.join(""),type:i},{content:"",type:i}];let[n,...s]=r,o=[...t,n];return e([{content:o.join(""),type:i}])?Uq(e,o,s,i):(t.length===0&&n&&(t.push(n),r.shift()),[{content:t.join(""),type:i},{content:r.join(""),type:i}])}function Hq(e,t){if(e.some(({content:r})=>r.includes(`
`)))throw new Error("splitLineToFitWidth does not support newlines in the line");return H5(e,t)}function H5(e,t,r=[],i=[]){if(e.length===0)return i.length>0&&r.push(i),r.length>0?r:[];let n="";e[0].content===" "&&(n=" ",e.shift());let s=e.shift()??{content:" ",type:"normal"},o=[...i];if(n!==""&&o.push({content:n,type:"normal"}),o.push(s),t(o))return H5(e,t,r,o);if(i.length>0)r.push(i),e.unshift(s);else if(s.content){let[l,u]=xRe(t,s);r.push([l]),u.content&&e.unshift(u)}return H5(e,t,r)}var Yq=v(()=>{"use strict";a(yRe,"splitTextToChars");a(xRe,"splitWordToFitWidth");a(Uq,"splitWordToFitWidthRecursion");a(Hq,"splitLineToFitWidth");a(H5,"splitLineToFitWidthRecursion")});function Kq(e,t){t&&e.attr("style",t)}async function bRe(e,t,r,i,n=!1,s=ct()){let o=e.append("foreignObject");o.attr("width",`${Math.min(10*r,Xq)}px`),o.attr("height",`${Math.min(10*r,Xq)}px`);let l=o.append("xhtml:div"),u=ii(t.label)?await _f(t.label.replace(He.lineBreakRegex,`
`),s):rr(t.label,s),h=t.isNode?"nodeLabel":"edgeLabel",d=l.append("span");d.html(u),Kq(d,t.labelStyle),d.attr("class",`${h} ${i}`),Kq(l,t.labelStyle),l.style("display","table-cell"),l.style("white-space","nowrap"),l.style("line-height","1.5"),r!==Number.POSITIVE_INFINITY&&(l.style("max-width",r+"px"),l.style("text-align","center")),l.attr("xmlns","http://www.w3.org/1999/xhtml"),n&&l.attr("class","labelBkg");let f=l.node().getBoundingClientRect();return f.width===r&&(l.style("display","table"),l.style("white-space","break-spaces"),l.style("width",r+"px"),f=l.node().getBoundingClientRect()),o.node()}function Y5(e,t,r,i=!1){let n=e.append("tspan").attr("class","text-outer-tspan").attr("x",0).attr("y",t*r-.1+"em").attr("dy",r+"em");return i&&n.attr("text-anchor","middle"),n}function TRe(e,t,r){let i=e.append("text"),n=Y5(i,1,t);K5(n,r);let s=n.node().getComputedTextLength();return i.remove(),s}function Zq(e,t,r){let i=e.append("text"),n=Y5(i,1,t);K5(n,[{content:r,type:"normal"}]);let s=n.node()?.getBoundingClientRect();return s&&i.remove(),s}function kRe(e,t,r,i=!1,n=!1){let o=t.append("g"),l=o.insert("rect").attr("class","background").attr("style","stroke: none"),u=o.append("text").attr("y","-10.1");n&&u.attr("text-anchor","middle");let h=0;for(let d of r){let f=a(m=>TRe(o,1.1,m)<=e,"checkWidth"),p=f(d)?[d]:Hq(d,f);for(let m of p){let g=Y5(u,h,1.1,n);K5(g,m),h++}}if(i){let d=u.node().getBBox(),f=2;return l.attr("x",d.x-f).attr("y",d.y-f).attr("width",d.width+2*f).attr("height",d.height+2*f),o.node()}else return u.node()}function Qq(e){let t=/&(amp|lt|gt);/g;return e.replace(t,(r,i)=>{switch(i){case"amp":return"&";case"lt":return"<";case"gt":return">";default:return r}})}function K5(e,t){e.text(""),t.forEach((r,i)=>{let n=e.append("tspan").attr("font-style",r.type==="em"?"italic":"normal").attr("class","text-inner-tspan").attr("font-weight",r.type==="strong"?"bold":"normal");i===0?n.text(Qq(r.content)):n.text(" "+Qq(r.content))})}async function CRe(e,t={}){let r=[];e.replace(/(fa[bklrs]?):fa-([\w-]+)/g,(n,s,o)=>(r.push((async()=>{let l=`${s}:${o}`;return await C$(l)?await co(l,void 0,{class:"label-icon"}):`<i class='${rr(n,t).replace(":"," ")}'></i>`})()),n));let i=await Promise.all(r);return e.replace(/(fa[bklrs]?):fa-([\w-]+)/g,()=>i.shift()??"")}var Xq,di,Qa=v(()=>{"use strict";sr();dr();nt();jq();Et();Qu();Yq();Xt();a(Kq,"applyStyle");Xq=16384;a(bRe,"addHtmlSpan");a(Y5,"createTspan");a(TRe,"computeWidthOfText");a(Zq,"computeDimensionOfText");a(kRe,"createFormattedText");a(Qq,"decodeHTMLEntities");a(K5,"updateTextContentAndStyles");a(CRe,"replaceIconSubstring");di=a(async(e,t="",{style:r="",isTitle:i=!1,classes:n="",useHtmlLabels:s=!0,markdown:o=!0,isNode:l=!0,width:u=200,addSvgBackground:h=!1}={},d)=>{if(W.debug("XYZ createText",t,r,i,n,s,l,"addSvgBackground: ",h),s){let f=o?qq(t,d):zq(t),p=await CRe(Mn(f),d),m=t.replace(/\\\\/g,"\\"),g={isNode:l,label:ii(t)?m:p,labelStyle:r.replace("fill:","color:")};return await bRe(e,g,u,n,h,d)}else{let f=Mn(t.replace(/<br\s*\/?>/g,"<br/>")),p=o?Wq(f.replace("<br>","<br/>"),d):Gq(f),m=kRe(u,e,p,t?h:!1,!l);if(l){/stroke:/.exec(r)&&(r=r.replace("stroke:","lineColor:"));let g=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");Se(m).attr("style",g)}else{let g=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/background:/g,"fill:");Se(m).select("rect").attr("style",g.replace(/background:/g,"fill:"));let x=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");Se(m).select("text").attr("style",x)}return i?Se(m).selectAll("tspan.text-outer-tspan").classed("title-row",!0):Se(m).selectAll("tspan.text-outer-tspan").classed("row",!0),m}},"createText")});async function uT(e,t){let r=e.getElementsByTagName("img");if(!r||r.length===0)return;let i=t.replace(/<img[^>]*>/g,"").trim()==="";await Promise.all([...r].map(n=>new Promise(s=>{function o(){if(n.style.display="flex",n.style.flexDirection="column",i){let l=J().fontSize?J().fontSize:window.getComputedStyle(document.body).fontSize,u=5,[h=Ut.fontSize]=Qn(l),d=h*u+"px";n.style.minWidth=d,n.style.maxWidth=d}else n.style.width="100%";s(n)}a(o,"setupImage"),setTimeout(()=>{n.complete&&o()}),n.addEventListener("error",o),n.addEventListener("load",o)})))}var X5=v(()=>{"use strict";bt();gn();Et();a(uT,"configureLabelImages")});function Rt(e){let t=e.map((r,i)=>`${i===0?"M":"L"}${r.x},${r.y}`);return t.push("Z"),t.join(" ")}function Za(e,t,r,i,n,s){let o=[],u=r-e,h=i-t,d=u/s,f=2*Math.PI/d,p=t+h/2;for(let m=0;m<=50;m++){let g=m/50,x=e+g*u,b=p+n*Math.sin(f*(x-e));o.push({x,y:b})}return o}function Lh(e,t,r,i,n,s){let o=[],l=n*Math.PI/180,d=(s*Math.PI/180-l)/(i-1);for(let f=0;f<i;f++){let p=l+f*d,m=e+r*Math.cos(p),g=t+r*Math.sin(p);o.push({x:-m,y:-g})}return o}function Q5(e){let t=Array.from(e.childNodes).filter(u=>u.tagName==="path"),r=document.createElementNS("http://www.w3.org/2000/svg","path"),i=t.map(u=>u.getAttribute("d")).filter(u=>u!==null).join(" ");r.setAttribute("d",i);let n=t.find(u=>u.getAttribute("fill")!=="none"),s=t.find(u=>u.getAttribute("stroke")!=="none"),o=a((u,h)=>u?.getAttribute(h)??void 0,"getAttr");if(n){let u={fill:o(n,"fill"),"fill-opacity":o(n,"fill-opacity")??"1"};Object.entries(u).forEach(([h,d])=>{d&&r.setAttribute(h,d)})}if(s){let u={stroke:o(s,"stroke"),"stroke-width":o(s,"stroke-width")??"1","stroke-opacity":o(s,"stroke-opacity")??"1"};Object.entries(u).forEach(([h,d])=>{d&&r.setAttribute(h,d)})}let l=document.createElementNS("http://www.w3.org/2000/svg","g");return l.appendChild(r),l}var rt,hT,qe,Ze,yt=v(()=>{"use strict";Qa();bt();Xt();sr();dr();Et();X5();rt=a(async(e,t,r)=>{let i,n=t.useHtmlLabels||yn(J()?.htmlLabels);r?i=r:i="node default";let s=e.insert("g").attr("class",i).attr("id",t.domId||t.id),o=s.insert("g").attr("class","label").attr("style",_r(t.labelStyle)),l;t.label===void 0?l="":l=typeof t.label=="string"?t.label:t.label[0];let u=!!t.icon||!!t.img,h=t.labelType==="markdown",d=await di(o,rr(Mn(l),J()),{useHtmlLabels:n,width:t.width||J().flowchart?.wrappingWidth,classes:h?"markdown-node-label":"",style:t.labelStyle,addSvgBackground:u,markdown:h},J()),f=d.getBBox(),p=(t?.padding??0)/2;if(n){let m=d.children[0],g=Se(d);await uT(m,l),f=m.getBoundingClientRect(),g.attr("width",f.width),g.attr("height",f.height)}return n?o.attr("transform","translate("+-f.width/2+", "+-f.height/2+")"):o.attr("transform","translate(0, "+-f.height/2+")"),t.centerLabel&&o.attr("transform","translate("+-f.width/2+", "+-f.height/2+")"),o.insert("rect",":first-child"),{shapeSvg:s,bbox:f,halfPadding:p,label:o}},"labelHelper"),hT=a(async(e,t,r)=>{let i=r.useHtmlLabels??ar(J()),n=e.insert("g").attr("class","label").attr("style",r.labelStyle||""),s=await di(n,rr(Mn(t),J()),{useHtmlLabels:i,width:r.width||J()?.flowchart?.wrappingWidth,style:r.labelStyle,addSvgBackground:!!r.icon||!!r.img}),o=s.getBBox(),l=r.padding/2;if(ar(J())){let u=s.children[0],h=Se(s);o=u.getBoundingClientRect(),h.attr("width",o.width),h.attr("height",o.height)}return i?n.attr("transform","translate("+-o.width/2+", "+-o.height/2+")"):n.attr("transform","translate(0, "+-o.height/2+")"),r.centerLabel&&n.attr("transform","translate("+-o.width/2+", "+-o.height/2+")"),n.insert("rect",":first-child"),{shapeSvg:e,bbox:o,halfPadding:l,label:n}},"insertLabel"),qe=a((e,t)=>{let r=t.node().getBBox();e.width=r.width,e.height=r.height},"updateNodeBounds"),Ze=a((e,t)=>(e.look==="handDrawn"?"rough-node":"node")+" "+e.cssClasses+" "+(t||""),"getNodeClasses");a(Rt,"createPathFromPoints");a(Za,"generateFullSineWavePoints");a(Lh,"generateCirclePoints");a(Q5,"mergePaths")});function vRe(e,t){return e.intersect(t)}var Jq,ej=v(()=>{"use strict";a(vRe,"intersectNode");Jq=vRe});function SRe(e,t,r,i){var n=e.x,s=e.y,o=n-i.x,l=s-i.y,u=Math.sqrt(t*t*l*l+r*r*o*o),h=Math.abs(t*r*o/u);i.x<n&&(h=-h);var d=Math.abs(t*r*l/u);return i.y<s&&(d=-d),{x:n+h,y:s+d}}var dT,Z5=v(()=>{"use strict";a(SRe,"intersectEllipse");dT=SRe});function _Re(e,t,r){return dT(e,t,t,r)}var tj,rj=v(()=>{"use strict";Z5();a(_Re,"intersectCircle");tj=_Re});function wRe(e,t,r,i){{let n=t.y-e.y,s=e.x-t.x,o=t.x*e.y-e.x*t.y,l=n*r.x+s*r.y+o,u=n*i.x+s*i.y+o,h=1e-6;if(l!==0&&u!==0&&ij(l,u))return;let d=i.y-r.y,f=r.x-i.x,p=i.x*r.y-r.x*i.y,m=d*e.x+f*e.y+p,g=d*t.x+f*t.y+p;if(Math.abs(m)<h&&Math.abs(g)<h&&ij(m,g))return;let x=n*f-d*s;if(x===0)return;let b=Math.abs(x/2),T=s*p-f*o,k=T<0?(T-b)/x:(T+b)/x;T=d*o-n*p;let C=T<0?(T-b)/x:(T+b)/x;return{x:k,y:C}}}function ij(e,t){return e*t>0}var nj,aj=v(()=>{"use strict";a(wRe,"intersectLine");a(ij,"sameSign");nj=wRe});function ERe(e,t,r){let i=e.x,n=e.y,s=[],o=Number.POSITIVE_INFINITY,l=Number.POSITIVE_INFINITY;typeof t.forEach=="function"?t.forEach(function(d){o=Math.min(o,d.x),l=Math.min(l,d.y)}):(o=Math.min(o,t.x),l=Math.min(l,t.y));let u=i-e.width/2-o,h=n-e.height/2-l;for(let d=0;d<t.length;d++){let f=t[d],p=t[d<t.length-1?d+1:0],m=nj(e,r,{x:u+f.x,y:h+f.y},{x:u+p.x,y:h+p.y});m&&s.push(m)}return s.length?(s.length>1&&s.sort(function(d,f){let p=d.x-r.x,m=d.y-r.y,g=Math.sqrt(p*p+m*m),x=f.x-r.x,b=f.y-r.y,T=Math.sqrt(x*x+b*b);return g<T?-1:g===T?0:1}),s[0]):e}var sj,oj=v(()=>{"use strict";aj();a(ERe,"intersectPolygon");sj=ERe});var ARe,Bc,J5=v(()=>{"use strict";ARe=a((e,t)=>{var r=e.x,i=e.y,n=t.x-r,s=t.y-i,o=e.width/2,l=e.height/2,u,h;return Math.abs(s)*o>Math.abs(n)*l?(s<0&&(l=-l),u=s===0?0:l*n/s,h=l):(n<0&&(o=-o),u=o,h=n===0?0:o*s/n),{x:r+u,y:i+h}},"intersectRect"),Bc=ARe});var Pe,Ct=v(()=>{"use strict";ej();rj();Z5();oj();J5();Pe={node:Jq,circle:tj,ellipse:dT,polygon:sj,rect:Bc}});var lj,vo,RRe,Jy,$e,je,LRe,xt=v(()=>{"use strict";bt();lj=a(e=>{let{handDrawnSeed:t}=J();return{fill:e,hachureAngle:120,hachureGap:4,fillWeight:2,roughness:.7,stroke:e,seed:t}},"solidStateFill"),vo=a(e=>{let t=RRe([...e.cssCompiledStyles||[],...e.cssStyles||[],...e.labelStyle||[]]);return{stylesMap:t,stylesArray:[...t]}},"compileStyles"),RRe=a(e=>{let t=new Map;return e.forEach(r=>{let[i,n]=r.split(":");t.set(i.trim(),n?.trim())}),t},"styles2Map"),Jy=a(e=>e==="color"||e==="font-size"||e==="font-family"||e==="font-weight"||e==="font-style"||e==="text-decoration"||e==="text-align"||e==="text-transform"||e==="line-height"||e==="letter-spacing"||e==="word-spacing"||e==="text-shadow"||e==="text-overflow"||e==="white-space"||e==="word-wrap"||e==="word-break"||e==="overflow-wrap"||e==="hyphens","isLabelStyle"),$e=a(e=>{let{stylesArray:t}=vo(e),r=[],i=[],n=[],s=[];return t.forEach(o=>{let l=o[0];Jy(l)?r.push(o.join(":")+" !important"):(i.push(o.join(":")+" !important"),l.includes("stroke")&&n.push(o.join(":")+" !important"),l==="fill"&&s.push(o.join(":")+" !important"))}),{labelStyles:r.join(";"),nodeStyles:i.join(";"),stylesArray:t,borderStyles:n,backgroundStyles:s}},"styles2String"),je=a((e,t)=>{let{themeVariables:r,handDrawnSeed:i}=J(),{nodeBorder:n,mainBkg:s}=r,{stylesMap:o}=vo(e);return Object.assign({roughness:.7,fill:o.get("fill")||s,fillStyle:"hachure",fillWeight:4,hachureGap:5.2,stroke:o.get("stroke")||n,seed:i,strokeWidth:o.get("stroke-width")?.replace("px","")||1.3,fillLineDash:[0,0],strokeLineDash:LRe(o.get("stroke-dasharray"))},t)},"userNodeOverrides"),LRe=a(e=>{if(!e)return[0,0];let t=e.trim().split(/\s+/).map(Number);if(t.length===1){let n=isNaN(t[0])?0:t[0];return[n,n]}let r=isNaN(t[0])?0:t[0],i=isNaN(t[1])?0:t[1];return[r,i]},"getStrokeDashArray")});function eR(e,t,r){if(e&&e.length){let[i,n]=t,s=Math.PI/180*r,o=Math.cos(s),l=Math.sin(s);for(let u of e){let[h,d]=u;u[0]=(h-i)*o-(d-n)*l+i,u[1]=(h-i)*l+(d-n)*o+n}}}function DRe(e,t){return e[0]===t[0]&&e[1]===t[1]}function IRe(e,t,r,i=1){let n=r,s=Math.max(t,.1),o=e[0]&&e[0][0]&&typeof e[0][0]=="number"?[e]:e,l=[0,0];if(n)for(let h of o)eR(h,l,n);let u=(function(h,d,f){let p=[];for(let k of h){let C=[...k];DRe(C[0],C[C.length-1])||C.push([C[0][0],C[0][1]]),C.length>2&&p.push(C)}let m=[];d=Math.max(d,.1);let g=[];for(let k of p)for(let C=0;C<k.length-1;C++){let S=k[C],w=k[C+1];if(S[1]!==w[1]){let _=Math.min(S[1],w[1]);g.push({ymin:_,ymax:Math.max(S[1],w[1]),x:_===S[1]?S[0]:w[0],islope:(w[0]-S[0])/(w[1]-S[1])})}}if(g.sort(((k,C)=>k.ymin<C.ymin?-1:k.ymin>C.ymin?1:k.x<C.x?-1:k.x>C.x?1:k.ymax===C.ymax?0:(k.ymax-C.ymax)/Math.abs(k.ymax-C.ymax))),!g.length)return m;let x=[],b=g[0].ymin,T=0;for(;x.length||g.length;){if(g.length){let k=-1;for(let C=0;C<g.length&&!(g[C].ymin>b);C++)k=C;g.splice(0,k+1).forEach((C=>{x.push({s:b,edge:C})}))}if(x=x.filter((k=>!(k.edge.ymax<=b))),x.sort(((k,C)=>k.edge.x===C.edge.x?0:(k.edge.x-C.edge.x)/Math.abs(k.edge.x-C.edge.x))),(f!==1||T%d==0)&&x.length>1)for(let k=0;k<x.length;k+=2){let C=k+1;if(C>=x.length)break;let S=x[k].edge,w=x[C].edge;m.push([[Math.round(S.x),b],[Math.round(w.x),b]])}b+=f,x.forEach((k=>{k.edge.x=k.edge.x+f*k.edge.islope})),T++}return m})(o,s,i);if(n){for(let h of o)eR(h,l,-n);(function(h,d,f){let p=[];h.forEach((m=>p.push(...m))),eR(p,d,f)})(u,l,-n)}return u}function i0(e,t){var r;let i=t.hachureAngle+90,n=t.hachureGap;n<0&&(n=4*t.strokeWidth),n=Math.round(Math.max(n,.1));let s=1;return t.roughness>=1&&(((r=t.randomizer)===null||r===void 0?void 0:r.next())||Math.random())>.7&&(s=n),IRe(e,n,i,s||1)}function kT(e){let t=e[0],r=e[1];return Math.sqrt(Math.pow(t[0]-r[0],2)+Math.pow(t[1]-r[1],2))}function rR(e,t){return e.type===t}function gR(e){let t=[],r=(function(o){let l=new Array;for(;o!=="";)if(o.match(/^([ \t\r\n,]+)/))o=o.substr(RegExp.$1.length);else if(o.match(/^([aAcChHlLmMqQsStTvVzZ])/))l[l.length]={type:NRe,text:RegExp.$1},o=o.substr(RegExp.$1.length);else{if(!o.match(/^(([-+]?[0-9]+(\.[0-9]*)?|[-+]?\.[0-9]+)([eE][-+]?[0-9]+)?)/))return[];l[l.length]={type:tR,text:`${parseFloat(RegExp.$1)}`},o=o.substr(RegExp.$1.length)}return l[l.length]={type:cj,text:""},l})(e),i="BOD",n=0,s=r[n];for(;!rR(s,cj);){let o=0,l=[];if(i==="BOD"){if(s.text!=="M"&&s.text!=="m")return gR("M0,0"+e);n++,o=fT[s.text],i=s.text}else rR(s,tR)?o=fT[i]:(n++,o=fT[s.text],i=s.text);if(!(n+o<r.length))throw new Error("Path data ended short");for(let u=n;u<n+o;u++){let h=r[u];if(!rR(h,tR))throw new Error("Param not a number: "+i+","+h.text);l[l.length]=+h.text}if(typeof fT[i]!="number")throw new Error("Bad segment: "+i);{let u={key:i,data:l};t.push(u),n+=o,s=r[n],i==="M"&&(i="L"),i==="m"&&(i="l")}}return t}function yj(e){let t=0,r=0,i=0,n=0,s=[];for(let{key:o,data:l}of e)switch(o){case"M":s.push({key:"M",data:[...l]}),[t,r]=l,[i,n]=l;break;case"m":t+=l[0],r+=l[1],s.push({key:"M",data:[t,r]}),i=t,n=r;break;case"L":s.push({key:"L",data:[...l]}),[t,r]=l;break;case"l":t+=l[0],r+=l[1],s.push({key:"L",data:[t,r]});break;case"C":s.push({key:"C",data:[...l]}),t=l[4],r=l[5];break;case"c":{let u=l.map(((h,d)=>d%2?h+r:h+t));s.push({key:"C",data:u}),t=u[4],r=u[5];break}case"Q":s.push({key:"Q",data:[...l]}),t=l[2],r=l[3];break;case"q":{let u=l.map(((h,d)=>d%2?h+r:h+t));s.push({key:"Q",data:u}),t=u[2],r=u[3];break}case"A":s.push({key:"A",data:[...l]}),t=l[5],r=l[6];break;case"a":t+=l[5],r+=l[6],s.push({key:"A",data:[l[0],l[1],l[2],l[3],l[4],t,r]});break;case"H":s.push({key:"H",data:[...l]}),t=l[0];break;case"h":t+=l[0],s.push({key:"H",data:[t]});break;case"V":s.push({key:"V",data:[...l]}),r=l[0];break;case"v":r+=l[0],s.push({key:"V",data:[r]});break;case"S":s.push({key:"S",data:[...l]}),t=l[2],r=l[3];break;case"s":{let u=l.map(((h,d)=>d%2?h+r:h+t));s.push({key:"S",data:u}),t=u[2],r=u[3];break}case"T":s.push({key:"T",data:[...l]}),t=l[0],r=l[1];break;case"t":t+=l[0],r+=l[1],s.push({key:"T",data:[t,r]});break;case"Z":case"z":s.push({key:"Z",data:[]}),t=i,r=n}return s}function xj(e){let t=[],r="",i=0,n=0,s=0,o=0,l=0,u=0;for(let{key:h,data:d}of e){switch(h){case"M":t.push({key:"M",data:[...d]}),[i,n]=d,[s,o]=d;break;case"C":t.push({key:"C",data:[...d]}),i=d[4],n=d[5],l=d[2],u=d[3];break;case"L":t.push({key:"L",data:[...d]}),[i,n]=d;break;case"H":i=d[0],t.push({key:"L",data:[i,n]});break;case"V":n=d[0],t.push({key:"L",data:[i,n]});break;case"S":{let f=0,p=0;r==="C"||r==="S"?(f=i+(i-l),p=n+(n-u)):(f=i,p=n),t.push({key:"C",data:[f,p,...d]}),l=d[0],u=d[1],i=d[2],n=d[3];break}case"T":{let[f,p]=d,m=0,g=0;r==="Q"||r==="T"?(m=i+(i-l),g=n+(n-u)):(m=i,g=n);let x=i+2*(m-i)/3,b=n+2*(g-n)/3,T=f+2*(m-f)/3,k=p+2*(g-p)/3;t.push({key:"C",data:[x,b,T,k,f,p]}),l=m,u=g,i=f,n=p;break}case"Q":{let[f,p,m,g]=d,x=i+2*(f-i)/3,b=n+2*(p-n)/3,T=m+2*(f-m)/3,k=g+2*(p-g)/3;t.push({key:"C",data:[x,b,T,k,m,g]}),l=f,u=p,i=m,n=g;break}case"A":{let f=Math.abs(d[0]),p=Math.abs(d[1]),m=d[2],g=d[3],x=d[4],b=d[5],T=d[6];f===0||p===0?(t.push({key:"C",data:[i,n,b,T,b,T]}),i=b,n=T):(i!==b||n!==T)&&(bj(i,n,b,T,f,p,m,g,x).forEach((function(k){t.push({key:"C",data:k})})),i=b,n=T);break}case"Z":t.push({key:"Z",data:[]}),i=s,n=o}r=h}return t}function e0(e,t,r){return[e*Math.cos(r)-t*Math.sin(r),e*Math.sin(r)+t*Math.cos(r)]}function bj(e,t,r,i,n,s,o,l,u,h){let d=(f=o,Math.PI*f/180);var f;let p=[],m=0,g=0,x=0,b=0;if(h)[m,g,x,b]=h;else{[e,t]=e0(e,t,-d),[r,i]=e0(r,i,-d);let A=(e-r)/2,D=(t-i)/2,R=A*A/(n*n)+D*D/(s*s);R>1&&(R=Math.sqrt(R),n*=R,s*=R);let N=n*n,$=s*s,E=N*$-N*D*D-$*A*A,M=N*D*D+$*A*A,V=(l===u?-1:1)*Math.sqrt(Math.abs(E/M));x=V*n*D/s+(e+r)/2,b=V*-s*A/n+(t+i)/2,m=Math.asin(parseFloat(((t-b)/s).toFixed(9))),g=Math.asin(parseFloat(((i-b)/s).toFixed(9))),e<x&&(m=Math.PI-m),r<x&&(g=Math.PI-g),m<0&&(m=2*Math.PI+m),g<0&&(g=2*Math.PI+g),u&&m>g&&(m-=2*Math.PI),!u&&g>m&&(g-=2*Math.PI)}let T=g-m;if(Math.abs(T)>120*Math.PI/180){let A=g,D=r,R=i;g=u&&g>m?m+120*Math.PI/180*1:m+120*Math.PI/180*-1,p=bj(r=x+n*Math.cos(g),i=b+s*Math.sin(g),D,R,n,s,o,0,u,[g,A,x,b])}T=g-m;let k=Math.cos(m),C=Math.sin(m),S=Math.cos(g),w=Math.sin(g),_=Math.tan(T/4),L=4/3*n*_,I=4/3*s*_,B=[e,t],G=[e+L*C,t-I*k],P=[r+L*w,i-I*S],F=[r,i];if(G[0]=2*B[0]-G[0],G[1]=2*B[1]-G[1],h)return[G,P,F].concat(p);{p=[G,P,F].concat(p);let A=[];for(let D=0;D<p.length;D+=3){let R=e0(p[D][0],p[D][1],d),N=e0(p[D+1][0],p[D+1][1],d),$=e0(p[D+2][0],p[D+2][1],d);A.push([R[0],R[1],N[0],N[1],$[0],$[1]])}return A}}function Tj(e,t,r,i,n){return{type:"path",ops:$c(e,t,r,i,n)}}function gT(e,t,r){let i=(e||[]).length;if(i>2){let n=[];for(let s=0;s<i-1;s++)n.push(...$c(e[s][0],e[s][1],e[s+1][0],e[s+1][1],r));return t&&n.push(...$c(e[i-1][0],e[i-1][1],e[0][0],e[0][1],r)),{type:"path",ops:n}}return i===2?Tj(e[0][0],e[0][1],e[1][0],e[1][1],r):{type:"path",ops:[]}}function ORe(e,t,r,i,n){return(function(s,o){return gT(s,!0,o)})([[e,t],[e+r,t],[e+r,t+i],[e,t+i]],n)}function uj(e,t){if(e.length){let r=typeof e[0][0]=="number"?[e]:e,i=pT(r[0],1*(1+.2*t.roughness),t),n=t.disableMultiStroke?[]:pT(r[0],1.5*(1+.22*t.roughness),fj(t));for(let s=1;s<r.length;s++){let o=r[s];if(o.length){let l=pT(o,1*(1+.2*t.roughness),t),u=t.disableMultiStroke?[]:pT(o,1.5*(1+.22*t.roughness),fj(t));for(let h of l)h.op!=="move"&&i.push(h);for(let h of u)h.op!=="move"&&n.push(h)}}return{type:"path",ops:i.concat(n)}}return{type:"path",ops:[]}}function kj(e,t,r){let i=Math.sqrt(2*Math.PI*Math.sqrt((Math.pow(e/2,2)+Math.pow(t/2,2))/2)),n=Math.ceil(Math.max(r.curveStepCount,r.curveStepCount/Math.sqrt(200)*i)),s=2*Math.PI/n,o=Math.abs(e/2),l=Math.abs(t/2),u=1-r.curveFitting;return o+=Gt(o*u,r),l+=Gt(l*u,r),{increment:s,rx:o,ry:l}}function hR(e,t,r,i){let[n,s]=pj(i.increment,e,t,i.rx,i.ry,1,i.increment*xT(.1,xT(.4,1,r),r),r),o=bT(n,null,r);if(!r.disableMultiStroke&&r.roughness!==0){let[l]=pj(i.increment,e,t,i.rx,i.ry,1.5,0,r),u=bT(l,null,r);o=o.concat(u)}return{estimatedPoints:s,opset:{type:"path",ops:o}}}function hj(e,t,r,i,n,s,o,l,u){let h=e,d=t,f=Math.abs(r/2),p=Math.abs(i/2);f+=Gt(.01*f,u),p+=Gt(.01*p,u);let m=n,g=s;for(;m<0;)m+=2*Math.PI,g+=2*Math.PI;g-m>2*Math.PI&&(m=0,g=2*Math.PI);let x=2*Math.PI/u.curveStepCount,b=Math.min(x/2,(g-m)/2),T=mj(b,h,d,f,p,m,g,1,u);if(!u.disableMultiStroke){let k=mj(b,h,d,f,p,m,g,1.5,u);T.push(...k)}return o&&(l?T.push(...$c(h,d,h+f*Math.cos(m),d+p*Math.sin(m),u),...$c(h,d,h+f*Math.cos(g),d+p*Math.sin(g),u)):T.push({op:"lineTo",data:[h,d]},{op:"lineTo",data:[h+f*Math.cos(m),d+p*Math.sin(m)]})),{type:"path",ops:T}}function dj(e,t){let r=xj(yj(gR(e))),i=[],n=[0,0],s=[0,0];for(let{key:o,data:l}of r)switch(o){case"M":s=[l[0],l[1]],n=[l[0],l[1]];break;case"L":i.push(...$c(s[0],s[1],l[0],l[1],t)),s=[l[0],l[1]];break;case"C":{let[u,h,d,f,p,m]=l;i.push(...PRe(u,h,d,f,p,m,s,t)),s=[p,m];break}case"Z":i.push(...$c(s[0],s[1],n[0],n[1],t)),s=[n[0],n[1]]}return{type:"path",ops:i}}function iR(e,t){let r=[];for(let i of e)if(i.length){let n=t.maxRandomnessOffset||0,s=i.length;if(s>2){r.push({op:"move",data:[i[0][0]+Gt(n,t),i[0][1]+Gt(n,t)]});for(let o=1;o<s;o++)r.push({op:"lineTo",data:[i[o][0]+Gt(n,t),i[o][1]+Gt(n,t)]})}}return{type:"fillPath",ops:r}}function lp(e,t){return(function(r,i){let n=r.fillStyle||"hachure";if(!ta[n])switch(n){case"zigzag":ta[n]||(ta[n]=new aR(i));break;case"cross-hatch":ta[n]||(ta[n]=new sR(i));break;case"dots":ta[n]||(ta[n]=new oR(i));break;case"dashed":ta[n]||(ta[n]=new lR(i));break;case"zigzag-line":ta[n]||(ta[n]=new cR(i));break;default:n="hachure",ta[n]||(ta[n]=new r0(i))}return ta[n]})(t,MRe).fillPolygons(e,t)}function fj(e){let t=Object.assign({},e);return t.randomizer=void 0,e.seed&&(t.seed=e.seed+1),t}function Cj(e){return e.randomizer||(e.randomizer=new uR(e.seed||0)),e.randomizer.next()}function xT(e,t,r,i=1){return r.roughness*i*(Cj(r)*(t-e)+e)}function Gt(e,t,r=1){return xT(-e,e,t,r)}function $c(e,t,r,i,n,s=!1){let o=s?n.disableMultiStrokeFill:n.disableMultiStroke,l=dR(e,t,r,i,n,!0,!1);if(o)return l;let u=dR(e,t,r,i,n,!0,!0);return l.concat(u)}function dR(e,t,r,i,n,s,o){let l=Math.pow(e-r,2)+Math.pow(t-i,2),u=Math.sqrt(l),h=1;h=u<200?1:u>500?.4:-.0016668*u+1.233334;let d=n.maxRandomnessOffset||0;d*d*100>l&&(d=u/10);let f=d/2,p=.2+.2*Cj(n),m=n.bowing*n.maxRandomnessOffset*(i-t)/200,g=n.bowing*n.maxRandomnessOffset*(e-r)/200;m=Gt(m,n,h),g=Gt(g,n,h);let x=[],b=a(()=>Gt(f,n,h),"M"),T=a(()=>Gt(d,n,h),"k"),k=n.preserveVertices;return s&&(o?x.push({op:"move",data:[e+(k?0:b()),t+(k?0:b())]}):x.push({op:"move",data:[e+(k?0:Gt(d,n,h)),t+(k?0:Gt(d,n,h))]})),o?x.push({op:"bcurveTo",data:[m+e+(r-e)*p+b(),g+t+(i-t)*p+b(),m+e+2*(r-e)*p+b(),g+t+2*(i-t)*p+b(),r+(k?0:b()),i+(k?0:b())]}):x.push({op:"bcurveTo",data:[m+e+(r-e)*p+T(),g+t+(i-t)*p+T(),m+e+2*(r-e)*p+T(),g+t+2*(i-t)*p+T(),r+(k?0:T()),i+(k?0:T())]}),x}function pT(e,t,r){if(!e.length)return[];let i=[];i.push([e[0][0]+Gt(t,r),e[0][1]+Gt(t,r)]),i.push([e[0][0]+Gt(t,r),e[0][1]+Gt(t,r)]);for(let n=1;n<e.length;n++)i.push([e[n][0]+Gt(t,r),e[n][1]+Gt(t,r)]),n===e.length-1&&i.push([e[n][0]+Gt(t,r),e[n][1]+Gt(t,r)]);return bT(i,null,r)}function bT(e,t,r){let i=e.length,n=[];if(i>3){let s=[],o=1-r.curveTightness;n.push({op:"move",data:[e[1][0],e[1][1]]});for(let l=1;l+2<i;l++){let u=e[l];s[0]=[u[0],u[1]],s[1]=[u[0]+(o*e[l+1][0]-o*e[l-1][0])/6,u[1]+(o*e[l+1][1]-o*e[l-1][1])/6],s[2]=[e[l+1][0]+(o*e[l][0]-o*e[l+2][0])/6,e[l+1][1]+(o*e[l][1]-o*e[l+2][1])/6],s[3]=[e[l+1][0],e[l+1][1]],n.push({op:"bcurveTo",data:[s[1][0],s[1][1],s[2][0],s[2][1],s[3][0],s[3][1]]})}if(t&&t.length===2){let l=r.maxRandomnessOffset;n.push({op:"lineTo",data:[t[0]+Gt(l,r),t[1]+Gt(l,r)]})}}else i===3?(n.push({op:"move",data:[e[1][0],e[1][1]]}),n.push({op:"bcurveTo",data:[e[1][0],e[1][1],e[2][0],e[2][1],e[2][0],e[2][1]]})):i===2&&n.push(...dR(e[0][0],e[0][1],e[1][0],e[1][1],r,!0,!0));return n}function pj(e,t,r,i,n,s,o,l){let u=[],h=[];if(l.roughness===0){e/=4,h.push([t+i*Math.cos(-e),r+n*Math.sin(-e)]);for(let d=0;d<=2*Math.PI;d+=e){let f=[t+i*Math.cos(d),r+n*Math.sin(d)];u.push(f),h.push(f)}h.push([t+i*Math.cos(0),r+n*Math.sin(0)]),h.push([t+i*Math.cos(e),r+n*Math.sin(e)])}else{let d=Gt(.5,l)-Math.PI/2;h.push([Gt(s,l)+t+.9*i*Math.cos(d-e),Gt(s,l)+r+.9*n*Math.sin(d-e)]);let f=2*Math.PI+d-.01;for(let p=d;p<f;p+=e){let m=[Gt(s,l)+t+i*Math.cos(p),Gt(s,l)+r+n*Math.sin(p)];u.push(m),h.push(m)}h.push([Gt(s,l)+t+i*Math.cos(d+2*Math.PI+.5*o),Gt(s,l)+r+n*Math.sin(d+2*Math.PI+.5*o)]),h.push([Gt(s,l)+t+.98*i*Math.cos(d+o),Gt(s,l)+r+.98*n*Math.sin(d+o)]),h.push([Gt(s,l)+t+.9*i*Math.cos(d+.5*o),Gt(s,l)+r+.9*n*Math.sin(d+.5*o)])}return[h,u]}function mj(e,t,r,i,n,s,o,l,u){let h=s+Gt(.1,u),d=[];d.push([Gt(l,u)+t+.9*i*Math.cos(h-e),Gt(l,u)+r+.9*n*Math.sin(h-e)]);for(let f=h;f<=o;f+=e)d.push([Gt(l,u)+t+i*Math.cos(f),Gt(l,u)+r+n*Math.sin(f)]);return d.push([t+i*Math.cos(o),r+n*Math.sin(o)]),d.push([t+i*Math.cos(o),r+n*Math.sin(o)]),bT(d,null,u)}function PRe(e,t,r,i,n,s,o,l){let u=[],h=[l.maxRandomnessOffset||1,(l.maxRandomnessOffset||1)+.3],d=[0,0],f=l.disableMultiStroke?1:2,p=l.preserveVertices;for(let m=0;m<f;m++)m===0?u.push({op:"move",data:[o[0],o[1]]}):u.push({op:"move",data:[o[0]+(p?0:Gt(h[0],l)),o[1]+(p?0:Gt(h[0],l))]}),d=p?[n,s]:[n+Gt(h[m],l),s+Gt(h[m],l)],u.push({op:"bcurveTo",data:[e+Gt(h[m],l),t+Gt(h[m],l),r+Gt(h[m],l),i+Gt(h[m],l),d[0],d[1]]});return u}function t0(e){return[...e]}function gj(e,t=0){let r=e.length;if(r<3)throw new Error("A curve must have at least three points.");let i=[];if(r===3)i.push(t0(e[0]),t0(e[1]),t0(e[2]),t0(e[2]));else{let n=[];n.push(e[0],e[0]);for(let l=1;l<e.length;l++)n.push(e[l]),l===e.length-1&&n.push(e[l]);let s=[],o=1-t;i.push(t0(n[0]));for(let l=1;l+2<n.length;l++){let u=n[l];s[0]=[u[0],u[1]],s[1]=[u[0]+(o*n[l+1][0]-o*n[l-1][0])/6,u[1]+(o*n[l+1][1]-o*n[l-1][1])/6],s[2]=[n[l+1][0]+(o*n[l][0]-o*n[l+2][0])/6,n[l+1][1]+(o*n[l][1]-o*n[l+2][1])/6],s[3]=[n[l+1][0],n[l+1][1]],i.push(s[1],s[2],s[3])}}return i}function yT(e,t){return Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2)}function BRe(e,t,r){let i=yT(t,r);if(i===0)return yT(e,t);let n=((e[0]-t[0])*(r[0]-t[0])+(e[1]-t[1])*(r[1]-t[1]))/i;return n=Math.max(0,Math.min(1,n)),yT(e,Dh(t,r,n))}function Dh(e,t,r){return[e[0]+(t[0]-e[0])*r,e[1]+(t[1]-e[1])*r]}function fR(e,t,r,i){let n=i||[];if((function(l,u){let h=l[u+0],d=l[u+1],f=l[u+2],p=l[u+3],m=3*d[0]-2*h[0]-p[0];m*=m;let g=3*d[1]-2*h[1]-p[1];g*=g;let x=3*f[0]-2*p[0]-h[0];x*=x;let b=3*f[1]-2*p[1]-h[1];return b*=b,m<x&&(m=x),g<b&&(g=b),m+g})(e,t)<r){let l=e[t+0];n.length?(s=n[n.length-1],o=l,Math.sqrt(yT(s,o))>1&&n.push(l)):n.push(l),n.push(e[t+3])}else{let u=e[t+0],h=e[t+1],d=e[t+2],f=e[t+3],p=Dh(u,h,.5),m=Dh(h,d,.5),g=Dh(d,f,.5),x=Dh(p,m,.5),b=Dh(m,g,.5),T=Dh(x,b,.5);fR([u,p,x,T],0,r,n),fR([T,b,g,f],0,r,n)}var s,o;return n}function $Re(e,t){return TT(e,0,e.length,t)}function TT(e,t,r,i,n){let s=n||[],o=e[t],l=e[r-1],u=0,h=1;for(let d=t+1;d<r-1;++d){let f=BRe(e[d],o,l);f>u&&(u=f,h=d)}return Math.sqrt(u)>i?(TT(e,t,h+1,i,s),TT(e,h,r,i,s)):(s.length||s.push(o),s.push(l)),s}function nR(e,t=.15,r){let i=[],n=(e.length-1)/3;for(let s=0;s<n;s++)fR(e,3*s,t,i);return r&&r>0?TT(i,0,i.length,r):i}var r0,aR,sR,oR,lR,cR,ta,uR,NRe,tR,cj,fT,MRe,_a,cp,pR,mT,mR,Ve,Tt=v(()=>{"use strict";a(eR,"t");a(DRe,"e");a(IRe,"s");a(i0,"n");r0=class{static{a(this,"o")}constructor(t){this.helper=t}fillPolygons(t,r){return this._fillPolygons(t,r)}_fillPolygons(t,r){let i=i0(t,r);return{type:"fillSketch",ops:this.renderLines(i,r)}}renderLines(t,r){let i=[];for(let n of t)i.push(...this.helper.doubleLineOps(n[0][0],n[0][1],n[1][0],n[1][1],r));return i}};a(kT,"a");aR=class extends r0{static{a(this,"h")}fillPolygons(t,r){let i=r.hachureGap;i<0&&(i=4*r.strokeWidth),i=Math.max(i,.1);let n=i0(t,Object.assign({},r,{hachureGap:i})),s=Math.PI/180*r.hachureAngle,o=[],l=.5*i*Math.cos(s),u=.5*i*Math.sin(s);for(let[h,d]of n)kT([h,d])&&o.push([[h[0]-l,h[1]+u],[...d]],[[h[0]+l,h[1]-u],[...d]]);return{type:"fillSketch",ops:this.renderLines(o,r)}}},sR=class extends r0{static{a(this,"r")}fillPolygons(t,r){let i=this._fillPolygons(t,r),n=Object.assign({},r,{hachureAngle:r.hachureAngle+90}),s=this._fillPolygons(t,n);return i.ops=i.ops.concat(s.ops),i}},oR=class{static{a(this,"i")}constructor(t){this.helper=t}fillPolygons(t,r){let i=i0(t,r=Object.assign({},r,{hachureAngle:0}));return this.dotsOnLines(i,r)}dotsOnLines(t,r){let i=[],n=r.hachureGap;n<0&&(n=4*r.strokeWidth),n=Math.max(n,.1);let s=r.fillWeight;s<0&&(s=r.strokeWidth/2);let o=n/4;for(let l of t){let u=kT(l),h=u/n,d=Math.ceil(h)-1,f=u-d*n,p=(l[0][0]+l[1][0])/2-n/4,m=Math.min(l[0][1],l[1][1]);for(let g=0;g<d;g++){let x=m+f+g*n,b=p-o+2*Math.random()*o,T=x-o+2*Math.random()*o,k=this.helper.ellipse(b,T,s,s,r);i.push(...k.ops)}}return{type:"fillSketch",ops:i}}},lR=class{static{a(this,"c")}constructor(t){this.helper=t}fillPolygons(t,r){let i=i0(t,r);return{type:"fillSketch",ops:this.dashedLine(i,r)}}dashedLine(t,r){let i=r.dashOffset<0?r.hachureGap<0?4*r.strokeWidth:r.hachureGap:r.dashOffset,n=r.dashGap<0?r.hachureGap<0?4*r.strokeWidth:r.hachureGap:r.dashGap,s=[];return t.forEach((o=>{let l=kT(o),u=Math.floor(l/(i+n)),h=(l+n-u*(i+n))/2,d=o[0],f=o[1];d[0]>f[0]&&(d=o[1],f=o[0]);let p=Math.atan((f[1]-d[1])/(f[0]-d[0]));for(let m=0;m<u;m++){let g=m*(i+n),x=g+i,b=[d[0]+g*Math.cos(p)+h*Math.cos(p),d[1]+g*Math.sin(p)+h*Math.sin(p)],T=[d[0]+x*Math.cos(p)+h*Math.cos(p),d[1]+x*Math.sin(p)+h*Math.sin(p)];s.push(...this.helper.doubleLineOps(b[0],b[1],T[0],T[1],r))}})),s}},cR=class{static{a(this,"l")}constructor(t){this.helper=t}fillPolygons(t,r){let i=r.hachureGap<0?4*r.strokeWidth:r.hachureGap,n=r.zigzagOffset<0?i:r.zigzagOffset,s=i0(t,r=Object.assign({},r,{hachureGap:i+n}));return{type:"fillSketch",ops:this.zigzagLines(s,n,r)}}zigzagLines(t,r,i){let n=[];return t.forEach((s=>{let o=kT(s),l=Math.round(o/(2*r)),u=s[0],h=s[1];u[0]>h[0]&&(u=s[1],h=s[0]);let d=Math.atan((h[1]-u[1])/(h[0]-u[0]));for(let f=0;f<l;f++){let p=2*f*r,m=2*(f+1)*r,g=Math.sqrt(2*Math.pow(r,2)),x=[u[0]+p*Math.cos(d),u[1]+p*Math.sin(d)],b=[u[0]+m*Math.cos(d),u[1]+m*Math.sin(d)],T=[x[0]+g*Math.cos(d+Math.PI/4),x[1]+g*Math.sin(d+Math.PI/4)];n.push(...this.helper.doubleLineOps(x[0],x[1],T[0],T[1],i),...this.helper.doubleLineOps(T[0],T[1],b[0],b[1],i))}})),n}},ta={},uR=class{static{a(this,"p")}constructor(t){this.seed=t}next(){return this.seed?(2**31-1&(this.seed=Math.imul(48271,this.seed)))/2**31:Math.random()}},NRe=0,tR=1,cj=2,fT={A:7,a:7,C:6,c:6,H:1,h:1,L:2,l:2,M:2,m:2,Q:4,q:4,S:4,s:4,T:2,t:2,V:1,v:1,Z:0,z:0};a(rR,"k");a(gR,"b");a(yj,"y");a(xj,"m");a(e0,"w");a(bj,"x");MRe={randOffset:a(function(e,t){return Gt(e,t)},"randOffset"),randOffsetWithRange:a(function(e,t,r){return xT(e,t,r)},"randOffsetWithRange"),ellipse:a(function(e,t,r,i,n){let s=kj(r,i,n);return hR(e,t,n,s).opset},"ellipse"),doubleLineOps:a(function(e,t,r,i,n){return $c(e,t,r,i,n,!0)},"doubleLineOps")};a(Tj,"v");a(gT,"S");a(ORe,"O");a(uj,"L");a(kj,"T");a(hR,"D");a(hj,"A");a(dj,"_");a(iR,"I");a(lp,"C");a(fj,"z");a(Cj,"W");a(xT,"E");a(Gt,"G");a($c,"$");a(dR,"R");a(pT,"j");a(bT,"q");a(pj,"F");a(mj,"V");a(PRe,"Z");a(t0,"Q");a(gj,"H");a(yT,"N");a(BRe,"B");a(Dh,"J");a(fR,"K");a($Re,"U");a(TT,"X");a(nR,"Y");_a="none",cp=class{static{a(this,"et")}constructor(t){this.defaultOptions={maxRandomnessOffset:2,roughness:1,bowing:1,stroke:"#000",strokeWidth:1,curveTightness:0,curveFitting:.95,curveStepCount:9,fillStyle:"hachure",fillWeight:-1,hachureAngle:-41,hachureGap:-1,dashOffset:-1,dashGap:-1,zigzagOffset:-1,seed:0,disableMultiStroke:!1,disableMultiStrokeFill:!1,preserveVertices:!1,fillShapeRoughnessGain:.8},this.config=t||{},this.config.options&&(this.defaultOptions=this._o(this.config.options))}static newSeed(){return Math.floor(Math.random()*2**31)}_o(t){return t?Object.assign({},this.defaultOptions,t):this.defaultOptions}_d(t,r,i){return{shape:t,sets:r||[],options:i||this.defaultOptions}}line(t,r,i,n,s){let o=this._o(s);return this._d("line",[Tj(t,r,i,n,o)],o)}rectangle(t,r,i,n,s){let o=this._o(s),l=[],u=ORe(t,r,i,n,o);if(o.fill){let h=[[t,r],[t+i,r],[t+i,r+n],[t,r+n]];o.fillStyle==="solid"?l.push(iR([h],o)):l.push(lp([h],o))}return o.stroke!==_a&&l.push(u),this._d("rectangle",l,o)}ellipse(t,r,i,n,s){let o=this._o(s),l=[],u=kj(i,n,o),h=hR(t,r,o,u);if(o.fill)if(o.fillStyle==="solid"){let d=hR(t,r,o,u).opset;d.type="fillPath",l.push(d)}else l.push(lp([h.estimatedPoints],o));return o.stroke!==_a&&l.push(h.opset),this._d("ellipse",l,o)}circle(t,r,i,n){let s=this.ellipse(t,r,i,i,n);return s.shape="circle",s}linearPath(t,r){let i=this._o(r);return this._d("linearPath",[gT(t,!1,i)],i)}arc(t,r,i,n,s,o,l=!1,u){let h=this._o(u),d=[],f=hj(t,r,i,n,s,o,l,!0,h);if(l&&h.fill)if(h.fillStyle==="solid"){let p=Object.assign({},h);p.disableMultiStroke=!0;let m=hj(t,r,i,n,s,o,!0,!1,p);m.type="fillPath",d.push(m)}else d.push((function(p,m,g,x,b,T,k){let C=p,S=m,w=Math.abs(g/2),_=Math.abs(x/2);w+=Gt(.01*w,k),_+=Gt(.01*_,k);let L=b,I=T;for(;L<0;)L+=2*Math.PI,I+=2*Math.PI;I-L>2*Math.PI&&(L=0,I=2*Math.PI);let B=(I-L)/k.curveStepCount,G=[];for(let P=L;P<=I;P+=B)G.push([C+w*Math.cos(P),S+_*Math.sin(P)]);return G.push([C+w*Math.cos(I),S+_*Math.sin(I)]),G.push([C,S]),lp([G],k)})(t,r,i,n,s,o,h));return h.stroke!==_a&&d.push(f),this._d("arc",d,h)}curve(t,r){let i=this._o(r),n=[],s=uj(t,i);if(i.fill&&i.fill!==_a)if(i.fillStyle==="solid"){let o=uj(t,Object.assign(Object.assign({},i),{disableMultiStroke:!0,roughness:i.roughness?i.roughness+i.fillShapeRoughnessGain:0}));n.push({type:"fillPath",ops:this._mergedShape(o.ops)})}else{let o=[],l=t;if(l.length){let u=typeof l[0][0]=="number"?[l]:l;for(let h of u)h.length<3?o.push(...h):h.length===3?o.push(...nR(gj([h[0],h[0],h[1],h[2]]),10,(1+i.roughness)/2)):o.push(...nR(gj(h),10,(1+i.roughness)/2))}o.length&&n.push(lp([o],i))}return i.stroke!==_a&&n.push(s),this._d("curve",n,i)}polygon(t,r){let i=this._o(r),n=[],s=gT(t,!0,i);return i.fill&&(i.fillStyle==="solid"?n.push(iR([t],i)):n.push(lp([t],i))),i.stroke!==_a&&n.push(s),this._d("polygon",n,i)}path(t,r){let i=this._o(r),n=[];if(!t)return this._d("path",n,i);t=(t||"").replace(/\n/g," ").replace(/(-\s)/g,"-").replace("/(ss)/g"," ");let s=i.fill&&i.fill!=="transparent"&&i.fill!==_a,o=i.stroke!==_a,l=!!(i.simplification&&i.simplification<1),u=(function(d,f,p){let m=xj(yj(gR(d))),g=[],x=[],b=[0,0],T=[],k=a(()=>{T.length>=4&&x.push(...nR(T,f)),T=[]},"i"),C=a(()=>{k(),x.length&&(g.push(x),x=[])},"c");for(let{key:w,data:_}of m)switch(w){case"M":C(),b=[_[0],_[1]],x.push(b);break;case"L":k(),x.push([_[0],_[1]]);break;case"C":if(!T.length){let L=x.length?x[x.length-1]:b;T.push([L[0],L[1]])}T.push([_[0],_[1]]),T.push([_[2],_[3]]),T.push([_[4],_[5]]);break;case"Z":k(),x.push([b[0],b[1]])}if(C(),!p)return g;let S=[];for(let w of g){let _=$Re(w,p);_.length&&S.push(_)}return S})(t,1,l?4-4*(i.simplification||1):(1+i.roughness)/2),h=dj(t,i);if(s)if(i.fillStyle==="solid")if(u.length===1){let d=dj(t,Object.assign(Object.assign({},i),{disableMultiStroke:!0,roughness:i.roughness?i.roughness+i.fillShapeRoughnessGain:0}));n.push({type:"fillPath",ops:this._mergedShape(d.ops)})}else n.push(iR(u,i));else n.push(lp(u,i));return o&&(l?u.forEach((d=>{n.push(gT(d,!1,i))})):n.push(h)),this._d("path",n,i)}opsToPath(t,r){let i="";for(let n of t.ops){let s=typeof r=="number"&&r>=0?n.data.map((o=>+o.toFixed(r))):n.data;switch(n.op){case"move":i+=`M${s[0]} ${s[1]} `;break;case"bcurveTo":i+=`C${s[0]} ${s[1]}, ${s[2]} ${s[3]}, ${s[4]} ${s[5]} `;break;case"lineTo":i+=`L${s[0]} ${s[1]} `}}return i.trim()}toPaths(t){let r=t.sets||[],i=t.options||this.defaultOptions,n=[];for(let s of r){let o=null;switch(s.type){case"path":o={d:this.opsToPath(s),stroke:i.stroke,strokeWidth:i.strokeWidth,fill:_a};break;case"fillPath":o={d:this.opsToPath(s),stroke:_a,strokeWidth:0,fill:i.fill||_a};break;case"fillSketch":o=this.fillSketch(s,i)}o&&n.push(o)}return n}fillSketch(t,r){let i=r.fillWeight;return i<0&&(i=r.strokeWidth/2),{d:this.opsToPath(t),stroke:r.fill||_a,strokeWidth:i,fill:_a}}_mergedShape(t){return t.filter(((r,i)=>i===0||r.op!=="move"))}},pR=class{static{a(this,"st")}constructor(t,r){this.canvas=t,this.ctx=this.canvas.getContext("2d"),this.gen=new cp(r)}draw(t){let r=t.sets||[],i=t.options||this.getDefaultOptions(),n=this.ctx,s=t.options.fixedDecimalPlaceDigits;for(let o of r)switch(o.type){case"path":n.save(),n.strokeStyle=i.stroke==="none"?"transparent":i.stroke,n.lineWidth=i.strokeWidth,i.strokeLineDash&&n.setLineDash(i.strokeLineDash),i.strokeLineDashOffset&&(n.lineDashOffset=i.strokeLineDashOffset),this._drawToContext(n,o,s),n.restore();break;case"fillPath":{n.save(),n.fillStyle=i.fill||"";let l=t.shape==="curve"||t.shape==="polygon"||t.shape==="path"?"evenodd":"nonzero";this._drawToContext(n,o,s,l),n.restore();break}case"fillSketch":this.fillSketch(n,o,i)}}fillSketch(t,r,i){let n=i.fillWeight;n<0&&(n=i.strokeWidth/2),t.save(),i.fillLineDash&&t.setLineDash(i.fillLineDash),i.fillLineDashOffset&&(t.lineDashOffset=i.fillLineDashOffset),t.strokeStyle=i.fill||"",t.lineWidth=n,this._drawToContext(t,r,i.fixedDecimalPlaceDigits),t.restore()}_drawToContext(t,r,i,n="nonzero"){t.beginPath();for(let s of r.ops){let o=typeof i=="number"&&i>=0?s.data.map((l=>+l.toFixed(i))):s.data;switch(s.op){case"move":t.moveTo(o[0],o[1]);break;case"bcurveTo":t.bezierCurveTo(o[0],o[1],o[2],o[3],o[4],o[5]);break;case"lineTo":t.lineTo(o[0],o[1])}}r.type==="fillPath"?t.fill(n):t.stroke()}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}line(t,r,i,n,s){let o=this.gen.line(t,r,i,n,s);return this.draw(o),o}rectangle(t,r,i,n,s){let o=this.gen.rectangle(t,r,i,n,s);return this.draw(o),o}ellipse(t,r,i,n,s){let o=this.gen.ellipse(t,r,i,n,s);return this.draw(o),o}circle(t,r,i,n){let s=this.gen.circle(t,r,i,n);return this.draw(s),s}linearPath(t,r){let i=this.gen.linearPath(t,r);return this.draw(i),i}polygon(t,r){let i=this.gen.polygon(t,r);return this.draw(i),i}arc(t,r,i,n,s,o,l=!1,u){let h=this.gen.arc(t,r,i,n,s,o,l,u);return this.draw(h),h}curve(t,r){let i=this.gen.curve(t,r);return this.draw(i),i}path(t,r){let i=this.gen.path(t,r);return this.draw(i),i}},mT="http://www.w3.org/2000/svg",mR=class{static{a(this,"ot")}constructor(t,r){this.svg=t,this.gen=new cp(r)}draw(t){let r=t.sets||[],i=t.options||this.getDefaultOptions(),n=this.svg.ownerDocument||window.document,s=n.createElementNS(mT,"g"),o=t.options.fixedDecimalPlaceDigits;for(let l of r){let u=null;switch(l.type){case"path":u=n.createElementNS(mT,"path"),u.setAttribute("d",this.opsToPath(l,o)),u.setAttribute("stroke",i.stroke),u.setAttribute("stroke-width",i.strokeWidth+""),u.setAttribute("fill","none"),i.strokeLineDash&&u.setAttribute("stroke-dasharray",i.strokeLineDash.join(" ").trim()),i.strokeLineDashOffset&&u.setAttribute("stroke-dashoffset",`${i.strokeLineDashOffset}`);break;case"fillPath":u=n.createElementNS(mT,"path"),u.setAttribute("d",this.opsToPath(l,o)),u.setAttribute("stroke","none"),u.setAttribute("stroke-width","0"),u.setAttribute("fill",i.fill||""),t.shape!=="curve"&&t.shape!=="polygon"||u.setAttribute("fill-rule","evenodd");break;case"fillSketch":u=this.fillSketch(n,l,i)}u&&s.appendChild(u)}return s}fillSketch(t,r,i){let n=i.fillWeight;n<0&&(n=i.strokeWidth/2);let s=t.createElementNS(mT,"path");return s.setAttribute("d",this.opsToPath(r,i.fixedDecimalPlaceDigits)),s.setAttribute("stroke",i.fill||""),s.setAttribute("stroke-width",n+""),s.setAttribute("fill","none"),i.fillLineDash&&s.setAttribute("stroke-dasharray",i.fillLineDash.join(" ").trim()),i.fillLineDashOffset&&s.setAttribute("stroke-dashoffset",`${i.fillLineDashOffset}`),s}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}opsToPath(t,r){return this.gen.opsToPath(t,r)}line(t,r,i,n,s){let o=this.gen.line(t,r,i,n,s);return this.draw(o)}rectangle(t,r,i,n,s){let o=this.gen.rectangle(t,r,i,n,s);return this.draw(o)}ellipse(t,r,i,n,s){let o=this.gen.ellipse(t,r,i,n,s);return this.draw(o)}circle(t,r,i,n){let s=this.gen.circle(t,r,i,n);return this.draw(s)}linearPath(t,r){let i=this.gen.linearPath(t,r);return this.draw(i)}polygon(t,r){let i=this.gen.polygon(t,r);return this.draw(i)}arc(t,r,i,n,s,o,l=!1,u){let h=this.gen.arc(t,r,i,n,s,o,l,u);return this.draw(h)}curve(t,r){let i=this.gen.curve(t,r);return this.draw(i)}path(t,r){let i=this.gen.path(t,r);return this.draw(i)}},Ve={canvas:a((e,t)=>new pR(e,t),"canvas"),svg:a((e,t)=>new mR(e,t),"svg"),generator:a(e=>new cp(e),"generator"),newSeed:a(()=>cp.newSeed(),"newSeed")}});function vj(e,t){let{labelStyles:r}=$e(t);t.labelStyle=r;let i=Ze(t),n=i;i||(n="anchor");let s=e.insert("g").attr("class",n).attr("id",t.domId||t.id),o=1,{cssStyles:l}=t,u=Ve.svg(s),h=je(t,{fill:"black",stroke:"none",fillStyle:"solid"});t.look!=="handDrawn"&&(h.roughness=0);let d=u.circle(0,0,o*2,h),f=s.insert(()=>d,":first-child");return f.attr("class","anchor").attr("style",_r(l)),qe(t,f),t.intersect=function(p){return W.info("Circle intersect",t,o,p),Pe.circle(t,o,p)},s}var Sj=v(()=>{"use strict";nt();yt();Ct();xt();Tt();Et();a(vj,"anchor")});function _j(e,t,r,i,n,s,o){let u=(e+r)/2,h=(t+i)/2,d=Math.atan2(i-t,r-e),f=(r-e)/2,p=(i-t)/2,m=f/n,g=p/s,x=Math.sqrt(m**2+g**2);if(x>1)throw new Error("The given radii are too small to create an arc between the points.");let b=Math.sqrt(1-x**2),T=u+b*s*Math.sin(d)*(o?-1:1),k=h-b*n*Math.cos(d)*(o?-1:1),C=Math.atan2((t-k)/s,(e-T)/n),w=Math.atan2((i-k)/s,(r-T)/n)-C;o&&w<0&&(w+=2*Math.PI),!o&&w>0&&(w-=2*Math.PI);let _=[];for(let L=0;L<20;L++){let I=L/19,B=C+I*w,G=T+n*Math.cos(B),P=k+s*Math.sin(B);_.push({x:G,y:P})}return _}function FRe(e,t,r){let[i,n]=[t,r].sort((s,o)=>o-s);return n*(1-Math.sqrt(1-(e/i/2)**2))}async function wj(e,t){let{labelStyles:r,nodeStyles:i}=$e(t);t.labelStyle=r;let n=t.padding??0,s=t.look==="neo"?16:n,o=t.look==="neo"?12:n,l=a(B=>B+o,"calcTotalHeight"),u=a(B=>{let G=B/2;return[G/(2.5+B/50),G]},"calcEllipseRadius"),{shapeSvg:h,bbox:d}=await rt(e,t,Ze(t)),f=l(t?.height?t?.height:d.height),[p,m]=u(f),g=FRe(f,p,m),b=(t?.width?t?.width:d.width)+s*2+g-g,T=f,{cssStyles:k}=t,C=[{x:b/2,y:-T/2},{x:-b/2,y:-T/2},..._j(-b/2,-T/2,-b/2,T/2,p,m,!1),{x:b/2,y:T/2},..._j(b/2,T/2,b/2,-T/2,p,m,!0)],S=Ve.svg(h),w=je(t,{});t.look!=="handDrawn"&&(w.roughness=0,w.fillStyle="solid");let _=Rt(C),L=S.path(_,w),I=h.insert(()=>L,":first-child");return I.attr("class","basic label-container outer-path"),k&&t.look!=="handDrawn"&&I.selectAll("path").attr("style",k),i&&t.look!=="handDrawn"&&I.selectAll("path").attr("style",i),I.attr("transform",`translate(${p/2}, 0)`),qe(t,I),t.intersect=function(B){return Pe.polygon(t,C,B)},h}var Ej=v(()=>{"use strict";yt();Ct();xt();Tt();a(_j,"generateArcPoints");a(FRe,"calculateArcSagitta");a(wj,"bowTieRect")});function kn(e,t,r,i){return e.insert("polygon",":first-child").attr("points",i.map(function(n){return n.x+","+n.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-t/2+","+r/2+")")}var vl=v(()=>{"use strict";a(kn,"insertPolygonShape")});async function Aj(e,t){let{labelStyles:r,nodeStyles:i}=$e(t);t.labelStyle=r;let n=t.padding??0,s=t.look==="neo"?28:n,o=t.look==="neo"?24:n,{shapeSvg:l,bbox:u}=await rt(e,t,Ze(t)),h=(t?.width??u.width)+(t.look==="neo"?s*2:s+CT),d=(t?.height??u.height)+(t.look==="neo"?o*2:o),f=0,p=h,m=-d,g=0,x=[{x:f+CT,y:m},{x:p,y:m},{x:p,y:g},{x:f,y:g},{x:f,y:m+CT},{x:f+CT,y:m}],b,{cssStyles:T}=t;if(t.look==="handDrawn"){let k=Ve.svg(l),C=je(t,{}),S=Rt(x),w=k.path(S,C);b=l.insert(()=>w,":first-child").attr("transform",`translate(${-h/2}, ${d/2})`),T&&b.attr("style",T)}else b=kn(l,h,d,x);return i&&b.attr("style",i),qe(t,b),t.intersect=function(k){return Pe.polygon(t,x,k)},l}var CT,Rj=v(()=>{"use strict";yt();Ct();xt();Tt();vl();yt();CT=12;a(Aj,"card")});function Lj(e,t){let{nodeStyles:r}=$e(t);t.label="";let i=e.insert("g").attr("class",Ze(t)).attr("id",t.domId??t.id),{cssStyles:n}=t,s=Math.max(28,t.width??0),o=[{x:0,y:s/2},{x:s/2,y:0},{x:0,y:-s/2},{x:-s/2,y:0}],l=Ve.svg(i),u=je(t,{});t.look!=="handDrawn"&&(u.roughness=0,u.fillStyle="solid");let h=Rt(o),d=l.path(h,u),f=i.insert(()=>d,":first-child");return n&&t.look!=="handDrawn"&&f.selectAll("path").attr("style",n),r&&t.look!=="handDrawn"&&f.selectAll("path").attr("style",r),t.width=28,t.height=28,t.intersect=function(p){return Pe.polygon(t,o,p)},i}var Dj=v(()=>{"use strict";Ct();Tt();xt();yt();a(Lj,"choice")});async function vT(e,t,r){let{labelStyles:i,nodeStyles:n}=$e(t);t.labelStyle=i;let{shapeSvg:s,bbox:o,halfPadding:l}=await rt(e,t,Ze(t)),u=16,h=r?.padding??l,d=t.look==="neo"?o.width/2+u*2:o.width/2+h,f,{cssStyles:p}=t;if(t.look==="handDrawn"){let m=Ve.svg(s),g=je(t,{}),x=m.circle(0,0,d*2,g);f=s.insert(()=>x,":first-child"),f.attr("class","basic label-container").attr("style",_r(p))}else f=s.insert("circle",":first-child").attr("class","basic label-container").attr("style",n).attr("r",d).attr("cx",0).attr("cy",0);return qe(t,f),t.calcIntersect=function(m,g){let x=m.width/2;return Pe.circle(m,x,g)},t.intersect=function(m){return W.info("Circle intersect",t,d,m),Pe.circle(t,d,m)},s}var yR=v(()=>{"use strict";Tt();nt();Et();Ct();xt();yt();a(vT,"circle")});function VRe(e){let t=Math.cos(Math.PI/4),r=Math.sin(Math.PI/4),i=e*2,n={x:i/2*t,y:i/2*r},s={x:-(i/2)*t,y:i/2*r},o={x:-(i/2)*t,y:-(i/2)*r},l={x:i/2*t,y:-(i/2)*r};return`M ${s.x},${s.y} L ${l.x},${l.y}
M ${n.x},${n.y} L ${o.x},${o.y}`}function Ij(e,t){let{labelStyles:r,nodeStyles:i}=$e(t);t.labelStyle=r,t.label="";let n=e.insert("g").attr("class",Ze(t)).attr("id",t.domId??t.id),s=Math.max(30,t?.width??0),{cssStyles:o}=t,l=Ve.svg(n),u=je(t,{});t.look!=="handDrawn"&&(u.roughness=0,u.fillStyle="solid");let h=l.circle(0,0,s*2,u),d=VRe(s),f=l.path(d,u),p=n.insert(()=>h,":first-child");return p.insert(()=>f),p.attr("class","outer-path"),o&&t.look!=="handDrawn"&&p.selectAll("path").attr("style",o),i&&t.look!=="handDrawn"&&p.selectAll("path").attr("style",i),qe(t,p),t.intersect=function(m){return W.info("crossedCircle intersect",t,{radius:s,point:m}),Pe.circle(t,s,m)},n}var Nj=v(()=>{"use strict";nt();yt();xt();Tt();Ct();a(VRe,"createLine");a(Ij,"crossedCircle")});function Fc(e,t,r,i=100,n=0,s=180){let o=[],l=n*Math.PI/180,d=(s*Math.PI/180-l)/(i-1);for(let f=0;f<i;f++){let p=l+f*d,m=e+r*Math.cos(p),g=t+r*Math.sin(p);o.push({x:-m,y:-g})}return o}async function Mj(e,t){let{labelStyles:r,nodeStyles:i}=$e(t);t.labelStyle=r;let{shapeSvg:n,bbox:s,label:o}=await rt(e,t,Ze(t)),l=t.look==="neo"?18:t.padding??0,u=t.look==="neo"?12:t.padding??0,h=s.width+l,d=s.height+u,f=Math.max(5,d*.1),{cssStyles:p}=t,m=[...Fc(h/2,-d/2,f,30,-90,0),{x:-h/2-f,y:f},...Fc(h/2+f*2,-f,f,20,-180,-270),...Fc(h/2+f*2,f,f,20,-90,-180),{x:-h/2-f,y:-d/2},...Fc(h/2,d/2,f,20,0,90)],g=[{x:h/2,y:-d/2-f},{x:-h/2,y:-d/2-f},...Fc(h/2,-d/2,f,20,-90,0),{x:-h/2-f,y:-f},...Fc(h/2+h*.1,-f,f,20,-180,-270),...Fc(h/2+h*.1,f,f,20,-90,-180),{x:-h/2-f,y:d/2},...Fc(h/2,d/2,f,20,0,90),{x:-h/2,y:d/2+f},{x:h/2,y:d/2+f}],x=Ve.svg(n),b=je(t,{fill:"none"});t.look!=="handDrawn"&&(b.roughness=0,b.fillStyle="solid");let k=Rt(m).replace("Z",""),C=x.path(k,b),S=Rt(g),w=x.path(S,{...b}),_=n.insert("g",":first-child");return _.insert(()=>w,":first-child").attr("stroke-opacity",0),_.insert(()=>C,":first-child"),_.attr("class","text"),p&&t.look!=="handDrawn"&&_.selectAll("path").attr("style",p),i&&t.look!=="handDrawn"&&_.selectAll("path").attr("style",i),_.attr("transform",`translate(${f}, 0)`),o.attr("transform",`translate(${-h/2+f-(s.x-(s.left??0))},${-d/2+(t.padding??0)/2-(s.y-(s.top??0))})`),qe(t,_),t.intersect=function(L){return Pe.polygon(t,g,L)},n}var Oj=v(()=>{"use strict";yt();Ct();xt();Tt();a(Fc,"generateCirclePoints");a(Mj,"curlyBraceLeft")});function Vc(e,t,r,i=100,n=0,s=180){let o=[],l=n*Math.PI/180,d=(s*Math.PI/180-l)/(i-1);for(let f=0;f<i;f++){let p=l+f*d,m=e+r*Math.cos(p),g=t+r*Math.sin(p);o.push({x:m,y:g})}return o}async function Pj(e,t){let{labelStyles:r,nodeStyles:i}=$e(t);t.labelStyle=r;let{shapeSvg:n,bbox:s,label:o}=await rt(e,t,Ze(t)),l=t.look==="neo"?18:t.padding??0,u=t.look==="neo"?12:t.padding??0,h=s.width+(t.look==="neo"?l*2:l),d=s.height+(t.look==="neo"?u*2:u),f=Math.max(5,d*.1),{cssStyles:p}=t,m=[...Vc(h/2,-d/2,f,20,-90,0),{x:h/2+f,y:-f},...Vc(h/2+f*2,-f,f,20,-180,-270),...Vc(h/2+f*2,f,f,20,-90,-180),{x:h/2+f,y:d/2},...Vc(h/2,d/2,f,20,0,90)],g=[{x:-h/2,y:-d/2-f},{x:h/2,y:-d/2-f},...Vc(h/2,-d/2,f,20,-90,0),{x:h/2+f,y:-f},...Vc(h/2+f*2,-f,f,20,-180,-270),...Vc(h/2+f*2,f,f,20,-90,-180),{x:h/2+f,y:d/2},...Vc(h/2,d/2,f,20,0,90),{x:h/2,y:d/2+f},{x:-h/2,y:d/2+f}],x=Ve.svg(n),b=je(t,{fill:"none"});t.look!=="handDrawn"&&(b.roughness=0,b.fillStyle="solid");let k=Rt(m).replace("Z",""),C=x.path(k,b),S=Rt(g),w=x.path(S,{...b}),_=n.insert("g",":first-child");return _.insert(()=>w,":first-child").attr("stroke-opacity",0),_.insert(()=>C,":first-child"),_.attr("class","text"),p&&t.look!=="handDrawn"&&_.selectAll("path").attr("style",p),i&&t.look!=="handDrawn"&&_.selectAll("path").attr("style",i),_.attr("transform",`translate(${-f}, 0)`),o.attr("transform",`translate(${-h/2+(t.padding??0)/2-(s.x-(s.left??0))},${-d/2+(t.padding??0)/2-(s.y-(s.top??0))})`),qe(t,_),t.intersect=function(L){return Pe.polygon(t,g,L)},n}var Bj=v(()=>{"use strict";yt();Ct();xt();Tt();a(Vc,"generateCirclePoints");a(Pj,"curlyBraceRight")});function Cn(e,t,r,i=100,n=0,s=180){let o=[],l=n*Math.PI/180,d=(s*Math.PI/180-l)/(i-1);for(let f=0;f<i;f++){let p=l+f*d,m=e+r*Math.cos(p),g=t+r*Math.sin(p);o.push({x:-m,y:-g})}return o}async function $j(e,t){let{labelStyles:r,nodeStyles:i}=$e(t);t.labelStyle=r;let{shapeSvg:n,bbox:s,label:o}=await rt(e,t,Ze(t)),l=t.look==="neo"?18:t.padding??0,u=t.look==="neo"?12:t.padding??0,h=s.width+(t.look==="neo"?l*2:l),d=s.height+(t.look==="neo"?u*2:u),f=Math.max(5,d*.1),{cssStyles:p}=t,m=[...Cn(h/2,-d/2,f,30,-90,0),{x:-h/2-f,y:f},...Cn(h/2+f*2,-f,f,20,-180,-270),...Cn(h/2+f*2,f,f,20,-90,-180),{x:-h/2-f,y:-d/2},...Cn(h/2,d/2,f,20,0,90)],g=[...Cn(-h/2+f+f/2,-d/2,f,20,-90,-180),{x:h/2-f/2,y:f},...Cn(-h/2-f/2,-f,f,20,0,90),...Cn(-h/2-f/2,f,f,20,-90,0),{x:h/2-f/2,y:-f},...Cn(-h/2+f+f/2,d/2,f,30,-180,-270)],x=[{x:h/2,y:-d/2-f},{x:-h/2,y:-d/2-f},...Cn(h/2,-d/2,f,20,-90,0),{x:-h/2-f,y:-f},...Cn(h/2+f*2,-f,f,20,-180,-270),...Cn(h/2+f*2,f,f,20,-90,-180),{x:-h/2-f,y:d/2},...Cn(h/2,d/2,f,20,0,90),{x:-h/2,y:d/2+f},{x:h/2-f-f/2,y:d/2+f},...Cn(-h/2+f+f/2,-d/2,f,20,-90,-180),{x:h/2-f/2,y:f},...Cn(-h/2-f/2,-f,f,20,0,90),...Cn(-h/2-f/2,f,f,20,-90,0),{x:h/2-f/2,y:-f},...Cn(-h/2+f+f/2,d/2,f,30,-180,-270)],b=Ve.svg(n),T=je(t,{fill:"none"});t.look!=="handDrawn"&&(T.roughness=0,T.fillStyle="solid");let C=Rt(m).replace("Z",""),S=b.path(C,T),_=Rt(g).replace("Z",""),L=b.path(_,T),I=Rt(x),B=b.path(I,{...T}),G=n.insert("g",":first-child");return G.insert(()=>B,":first-child").attr("stroke-opacity",0),G.insert(()=>S,":first-child"),G.insert(()=>L,":first-child"),G.attr("class","text"),p&&t.look!=="handDrawn"&&G.selectAll("path").attr("style",p),i&&t.look!=="handDrawn"&&G.selectAll("path").attr("style",i),G.attr("transform",`translate(${f-f/4}, 0)`),o.attr("transform",`translate(${-h/2+(t.padding??0)/2-(s.x-(s.left??0))},${-d/2+(t.padding??0)/2-(s.y-(s.top??0))})`),qe(t,G),t.intersect=function(P){return Pe.polygon(t,x,P)},n}var Fj=v(()=>{"use strict";yt();Ct();xt();Tt();a(Cn,"generateCirclePoints");a($j,"curlyBraces")});async function Vj(e,t){let{labelStyles:r,nodeStyles:i}=$e(t);t.labelStyle=r;let n=t.padding??0,s=t.look==="neo"?16:n,o=t.look==="neo"?12:n,l=20,u=5,{shapeSvg:h,bbox:d}=await rt(e,t,Ze(t)),f=Math.max(l,(d.width+s*2)*1.25,t?.width??0),p=Math.max(u,d.height+o*2,t?.height??0),m=p/2,{cssStyles:g}=t,x=Ve.svg(h),b=je(t,{});t.look!=="handDrawn"&&(b.roughness=0,b.fillStyle="solid");let T=f,k=p,C=T-m,S=k/4,w=[{x:C,y:0},{x:S,y:0},{x:0,y:k/2},{x:S,y:k},{x:C,y:k},...Lh(-C,-k/2,m,50,270,90)],_=Rt(w),L=x.path(_,b),I=h.insert(()=>L,":first-child");return I.attr("class","basic label-container outer-path"),g&&t.look!=="handDrawn"&&I.selectChildren("path").attr("style",g),i&&t.look!=="handDrawn"&&I.selectChildren("path").attr("style",i),I.attr("transform",`translate(${-f/2}, ${-p/2})`),qe(t,I),t.intersect=function(B){return Pe.polygon(t,w,B)},h}var Gj=v(()=>{"use strict";yt();Ct();xt();Tt();a(Vj,"curvedTrapezoid")});async function qj(e,t){let{labelStyles:r,nodeStyles:i}=$e(t);t.labelStyle=r;let n=t.padding??0,s=t.look==="neo"?24:n,o=t.look==="neo"?24:n;if(t.width||t.height){let b=t.width??0;t.width=(t.width??0)-o,t.width<zj&&(t.width=zj);let k=b/2/(2.5+b/50);t.height=(t.height??0)-s-k*3,t.height<Wj&&(t.height=Wj)}let{shapeSvg:l,bbox:u,label:h}=await rt(e,t,Ze(t)),d=(t.width?t.width:u.width)+o,f=d/2,p=f/(2.5+d/50),m=(t.height?t.height:u.height)+s+p,g,{cssStyles:x}=t;if(t.look==="handDrawn"){let b=Ve.svg(l),T=WRe(0,0,d,m,f,p),k=zRe(0,p,d,m,f,p),C=je(t,{}),S=b.path(T,C),w=b.path(k,je(t,{fill:"none"}));g=l.insert(()=>w,":first-child"),g=l.insert(()=>S,":first-child"),g.attr("class","basic label-container"),x&&g.attr("style",x)}else{let b=GRe(0,0,d,m,f,p);g=l.insert("path",":first-child").attr("d",b).attr("class","basic label-container outer-path").attr("style",_r(x)).attr("style",i)}return g.attr("label-offset-y",p),g.attr("transform",`translate(${-d/2}, ${-(m/2+p)})`),qe(t,g),h.attr("transform",`translate(${-(u.width/2)-(u.x-(u.left??0))}, ${-(u.height/2)+(t.padding??0)/1.5-(u.y-(u.top??0))})`),t.intersect=function(b){let T=Pe.rect(t,b),k=T.x-(t.x??0);if(f!=0&&(Math.abs(k)<(t.width??0)/2||Math.abs(k)==(t.width??0)/2&&Math.abs(T.y-(t.y??0))>(t.height??0)/2-p)){let C=p*p*(1-k*k/(f*f));C>0&&(C=Math.sqrt(C)),C=p-C,b.y-(t.y??0)>0&&(C=-C),T.y+=C}return T},l}var GRe,WRe,zRe,Wj,zj,jj=v(()=>{"use strict";yt();Ct();xt();Tt();Et();GRe=a((e,t,r,i,n,s)=>[`M${e},${t+s}`,`a${n},${s} 0,0,0 ${r},0`,`a${n},${s} 0,0,0 ${-r},0`,`l0,${i}`,`a${n},${s} 0,0,0 ${r},0`,`l0,${-i}`].join(" "),"createCylinderPathD"),WRe=a((e,t,r,i,n,s)=>[`M${e},${t+s}`,`M${e+r},${t+s}`,`a${n},${s} 0,0,0 ${-r},0`,`l0,${i}`,`a${n},${s} 0,0,0 ${r},0`,`l0,${-i}`].join(" "),"createOuterCylinderPathD"),zRe=a((e,t,r,i,n,s)=>[`M${e-r/2},${-i/2}`,`a${n},${s} 0,0,0 ${r},0`].join(" "),"createInnerCylinderPathD"),Wj=8,zj=8;a(qj,"cylinder")});var ra,Ih=v(()=>{"use strict";ra=a((e,t,r,i,n)=>["M",e+n,t,"H",e+r-n,"A",n,n,0,0,1,e+r,t+n,"V",t+i-n,"A",n,n,0,0,1,e+r-n,t+i,"H",e+n,"A",n,n,0,0,1,e,t+i-n,"V",t+n,"A",n,n,0,0,1,e+n,t,"Z"].join(" "),"createRoundedRectPathD")});async function Fs(e,t,r){let{labelStyles:i,nodeStyles:n}=$e(t);t.labelStyle=i;let{shapeSvg:s,bbox:o}=await rt(e,t,Ze(t)),l=Math.max(o.width+r.labelPaddingX*2,t?.width||0),u=Math.max(o.height+r.labelPaddingY*2,t?.height||0),h=-l/2,d=-u/2,f,{rx:p,ry:m}=t,{cssStyles:g}=t;if(r?.rx&&r.ry&&(p=r.rx,m=r.ry),t.look==="handDrawn"){let x=Ve.svg(s),b=je(t,{}),T=p||m?x.path(ra(h,d,l,u,p||0),b):x.rectangle(h,d,l,u,b);f=s.insert(()=>T,":first-child"),f.attr("class","basic label-container").attr("style",_r(g))}else f=s.insert("rect",":first-child"),f.attr("class","basic label-container").attr("style",n).attr("rx",_r(p)).attr("ry",_r(m)).attr("x",h).attr("y",d).attr("width",l).attr("height",u);return qe(t,f),t.calcIntersect=function(x,b){return Pe.rect(x,b)},t.intersect=function(x){return Pe.rect(t,x)},s}var Nh=v(()=>{"use strict";yt();Ct();Ih();xt();Tt();Et();a(Fs,"drawRect")});async function Uj(e,t){let{cssClasses:r,labelPaddingX:i,labelPaddingY:n,padding:s,width:o,height:l}=t,u={rx:0,ry:0,classes:r??"",labelPaddingX:i??(s??0)*2,labelPaddingY:n??s??0},h=await Fs(e,t,u);if(t.look==="handDrawn"){let m=Ve.svg(h),g=je(t,{}),x=h.select(".basic.label-container > path:nth-child(2)"),b=x.node();if(!b)return h;let T=null;if(b instanceof SVGGraphicsElement)T=b.getBBox();else return h;return h.insert(()=>m.line(T.x,T.y,T.x+T.width,T.y,g),".basic.label-container g.label"),h.insert(()=>m.line(T.x,T.y+T.height,T.x+T.width,T.y+T.height,g),".basic.label-container g.label"),x.remove(),h}let d=h.select(".basic.label-container"),f=(Number(d.attr("width"))||o)??0,p=(Number(d.attr("height"))||l)??0;return f>0&&p>0&&d.attr("stroke-dasharray",`${f} ${p}`),h}var Hj=v(()=>{"use strict";Nh();xt();Tt();a(Uj,"datastore")});async function Yj(e,t){let{labelStyles:r,nodeStyles:i}=$e(t);t.labelStyle=r;let n=t.look==="neo"?16:t.padding??0,s=t.look==="neo"?16:t.padding??0,{shapeSvg:o,bbox:l,label:u}=await rt(e,t,Ze(t)),h=l.width+n,d=l.height+s,f=d*.2,p=-h/2,m=-d/2-f/2,{cssStyles:g}=t,x=Ve.svg(o),b=je(t,{});t.look!=="handDrawn"&&(b.roughness=0,b.fillStyle="solid");let T=[{x:p,y:m+f},{x:-p,y:m+f},{x:-p,y:-m},{x:p,y:-m},{x:p,y:m},{x:-p,y:m},{x:-p,y:m+f}],k=x.polygon(T.map(S=>[S.x,S.y]),b),C=o.insert(()=>k,":first-child");return C.attr("class","basic label-container outer-path"),g&&t.look!=="handDrawn"&&C.selectAll("path").attr("style",g),i&&t.look!=="handDrawn"&&C.selectAll("path").attr("style",i),u.attr("transform",`translate(${p+(t.padding??0)/2-(l.x-(l.left??0))}, ${m+f+(t.padding??0)/2-(l.y-(l.top??0))})`),qe(t,C),t.intersect=function(S){return Pe.rect(t,S)},o}var Kj=v(()=>{"use strict";yt();Ct();xt();Tt();a(Yj,"dividedRectangle")});async function Xj(e,t){let{labelStyles:r,nodeStyles:i}=$e(t),n=t.look==="neo"?12:5;t.labelStyle=r;let s=t.padding??0,o=t.look==="neo"?16:s,{shapeSvg:l,bbox:u}=await rt(e,t,Ze(t)),h=(t?.width?t?.width/2:u.width/2)+(o??0),d=h-n,f,{cssStyles:p}=t;if(t.look==="handDrawn"){let m=Ve.svg(l),g=je(t,{roughness:.2,strokeWidth:2.5}),x=je(t,{roughness:.2,strokeWidth:1.5}),b=m.circle(0,0,h*2,g),T=m.circle(0,0,d*2,x);f=l.insert("g",":first-child"),f.attr("class",_r(t.cssClasses)).attr("style",_r(p)),f.node()?.appendChild(b),f.node()?.appendChild(T)}else{f=l.insert("g",":first-child");let m=f.insert("circle",":first-child"),g=f.insert("circle");f.attr("class","basic label-container").attr("style",i),m.attr("class","outer-circle").attr("style",i).attr("r",h).attr("cx",0).attr("cy",0),g.attr("class","inner-circle").attr("style",i).attr("r",d).attr("cx",0).attr("cy",0)}return qe(t,f),t.intersect=function(m){return W.info("DoubleCircle intersect",t,h,m),Pe.circle(t,h,m)},l}var Qj=v(()=>{"use strict";nt();yt();Ct();xt();Tt();Et();a(Xj,"doublecircle")});function Zj(e,t,{config:{themeVariables:r}}){let{labelStyles:i,nodeStyles:n}=$e(t);t.label="",t.labelStyle=i;let s=e.insert("g").attr("class",Ze(t)).attr("id",t.domId??t.id),o=7,{cssStyles:l}=t,u=Ve.svg(s),{nodeBorder:h}=r,d=je(t,{fillStyle:"solid"});t.look!=="handDrawn"&&(d.roughness=0);let f=u.circle(0,0,o*2,d),p=s.insert(()=>f,":first-child");return p.selectAll("path").attr("style",`fill: ${h} !important;`),l&&l.length>0&&t.look!=="handDrawn"&&p.selectAll("path").attr("style",l),n&&t.look!=="handDrawn"&&p.selectAll("path").attr("style",n),qe(t,p),t.intersect=function(m){return W.info("filledCircle intersect",t,{radius:o,point:m}),Pe.circle(t,o,m)},s}var Jj=v(()=>{"use strict";Tt();nt();Ct();xt();yt();a(Zj,"filledCircle")});async function rU(e,t){let{labelStyles:r,nodeStyles:i}=$e(t);t.labelStyle=r;let n=t.padding??0,s=t.look==="neo"?n*2:n;(t.width||t.height)&&(t.height=t?.height??0,t.height<eU&&(t.height=eU),t.width=(t?.width??0)-s-s/2,t.width<tU&&(t.width=tU));let{shapeSvg:o,bbox:l,label:u}=await rt(e,t,Ze(t)),h=(t?.width?t?.width:l.width)+(s??0),d=t?.height?t?.height:h+l.height,f=d,p=[{x:0,y:-d},{x:f,y:-d},{x:f/2,y:0}],{cssStyles:m}=t,g=Ve.svg(o),x=je(t,{});t.look!=="handDrawn"&&(x.roughness=0,x.fillStyle="solid");let b=Rt(p),T=g.path(b,x),k=o.insert(()=>T,":first-child").attr("transform",`translate(${-d/2}, ${d/2})`).attr("class","outer-path");return m&&t.look!=="handDrawn"&&k.selectChildren("path").attr("style",m),i&&t.look!=="handDrawn"&&k.selectChildren("path").attr("style",i),t.width=h,t.height=d,qe(t,k),u.attr("transform",`translate(${-l.width/2-(l.x-(l.left??0))}, ${-d/2+(t.padding??0)/2+(l.y-(l.top??0))})`),t.intersect=function(C){return W.info("Triangle intersect",t,p,C),Pe.polygon(t,p,C)},o}var eU,tU,iU=v(()=>{"use strict";nt();yt();Ct();xt();Tt();yt();eU=10,tU=10;a(rU,"flippedTriangle")});function nU(e,t,{dir:r,config:{state:i,themeVariables:n}}){let{nodeStyles:s}=$e(t);t.label="";let o=e.insert("g").attr("class",Ze(t)).attr("id",t.domId??t.id),{cssStyles:l}=t,u=Math.max(70,t?.width??0),h=Math.max(10,t?.height??0);r==="LR"&&(u=Math.max(10,t?.width??0),h=Math.max(70,t?.height??0));let d=-1*u/2,f=-1*h/2,p=Ve.svg(o),m=je(t,{stroke:n.lineColor,fill:n.lineColor});t.look!=="handDrawn"&&(m.roughness=0,m.fillStyle="solid");let g=p.rectangle(d,f,u,h,m),x=o.insert(()=>g,":first-child");l&&t.look!=="handDrawn"&&x.selectAll("path").attr("style",l),s&&t.look!=="handDrawn"&&x.selectAll("path").attr("style",s),qe(t,x);let b=i?.padding??0;return t.width&&t.height&&(t.width+=b/2||0,t.height+=b/2||0),t.intersect=function(T){return Pe.rect(t,T)},o}var aU=v(()=>{"use strict";Tt();Ct();xt();yt();a(nU,"forkJoin")});async function sU(e,t){let{labelStyles:r,nodeStyles:i}=$e(t);t.labelStyle=r;let n=15,s=10,o=t.look==="neo"?16:t.padding??0,l=t.look==="neo"?12:t.padding??0;(t.width||t.height)&&(t.height=(t?.height??0)-l*2,t.height<s&&(t.height=s),t.width=(t?.width??0)-o*2,t.width<n&&(t.width=n));let{shapeSvg:u,bbox:h}=await rt(e,t,Ze(t)),d=(t?.width?t?.width:Math.max(n,h.width))+o*2,f=(t?.height?t?.height:Math.max(s,h.height))+l*2,p=f/2,{cssStyles:m}=t,g=Ve.svg(u),x=je(t,{});t.look!=="handDrawn"&&(x.roughness=0,x.fillStyle="solid");let b=[{x:-d/2,y:-f/2},{x:d/2-p,y:-f/2},...Lh(-d/2+p,0,p,50,90,270),{x:d/2-p,y:f/2},{x:-d/2,y:f/2}],T=Rt(b),k=g.path(T,x),C=u.insert(()=>k,":first-child");return C.attr("class","basic label-container outer-path"),m&&t.look!=="handDrawn"&&C.selectChildren("path").attr("style",m),i&&t.look!=="handDrawn"&&C.selectChildren("path").attr("style",i),qe(t,C),t.intersect=function(S){return W.info("Pill intersect",t,{radius:p,point:S}),Pe.polygon(t,b,S)},u}var oU=v(()=>{"use strict";nt();yt();Ct();xt();Tt();a(sU,"halfRoundedRectangle")});async function lU(e,t){let{labelStyles:r,nodeStyles:i}=$e(t),n=t.look==="neo"?3.5:4;t.labelStyle=r;let s=t.padding??0,o=70,l=32,u=t.look==="neo"?o:s,h=t.look==="neo"?l:s;if(t.width||t.height){let C=(t.height??0)/n;t.width=(t?.width??0)-2*C-h,t.height=(t.height??0)-u}let{shapeSvg:d,bbox:f}=await rt(e,t,Ze(t)),p=(t?.height?t?.height:f.height)+u,m=p/n,g=(t?.width?t?.width:f.width)+2*m+h,x=[{x:m,y:0},{x:g-m,y:0},{x:g,y:-p/2},{x:g-m,y:-p},{x:m,y:-p},{x:0,y:-p/2}],b,{cssStyles:T}=t;if(t.look==="handDrawn"){let k=Ve.svg(d),C=je(t,{}),S=qRe(0,0,g,p,m),w=k.path(S,C);b=d.insert(()=>w,":first-child").attr("transform",`translate(${-g/2}, ${p/2})`),T&&b.attr("style",T)}else b=kn(d,g,p,x);return i&&b.attr("style",i),t.width=g,t.height=p,qe(t,b),t.intersect=function(k){return Pe.polygon(t,x,k)},d}var qRe,cU=v(()=>{"use strict";yt();Ct();xt();Tt();vl();qRe=a((e,t,r,i,n)=>[`M${e+n},${t}`,`L${e+r-n},${t}`,`L${e+r},${t-i/2}`,`L${e+r-n},${t-i}`,`L${e+n},${t-i}`,`L${e},${t-i/2}`,"Z"].join(" "),"createHexagonPathD");a(lU,"hexagon")});async function uU(e,t){let{labelStyles:r,nodeStyles:i}=$e(t);t.label="",t.labelStyle=r;let{shapeSvg:n}=await rt(e,t,Ze(t)),s=Math.max(30,t?.width??0),o=Math.max(30,t?.height??0),{cssStyles:l}=t,u=Ve.svg(n),h=je(t,{});t.look!=="handDrawn"&&(h.roughness=0,h.fillStyle="solid");let d=[{x:0,y:0},{x:s,y:0},{x:0,y:o},{x:s,y:o}],f=Rt(d),p=u.path(f,h),m=n.insert(()=>p,":first-child");return m.attr("class","basic label-container outer-path"),l&&t.look!=="handDrawn"&&m.selectChildren("path").attr("style",l),i&&t.look!=="handDrawn"&&m.selectChildren("path").attr("style",i),m.attr("transform",`translate(${-s/2}, ${-o/2})`),qe(t,m),t.intersect=function(g){return W.info("Pill intersect",t,{points:d}),Pe.polygon(t,d,g)},n}var hU=v(()=>{"use strict";nt();yt();Ct();xt();Tt();a(uU,"hourglass")});async function dU(e,t,{config:{themeVariables:r,flowchart:i}}){let{labelStyles:n}=$e(t);t.labelStyle=n;let s=t.assetHeight??48,o=t.assetWidth??48,l=Math.max(s,o),u=i?.wrappingWidth;t.width=Math.max(l,u??0);let{shapeSvg:h,bbox:d,label:f}=await rt(e,t,"icon-shape default"),p=t.pos==="t",m=l,g=l,{nodeBorder:x}=r,{stylesMap:b}=vo(t),T=-g/2,k=-m/2,C=t.label?8:0,S=Ve.svg(h),w=je(t,{stroke:"none",fill:"none"});t.look!=="handDrawn"&&(w.roughness=0,w.fillStyle="solid");let _=S.rectangle(T,k,g,m,w),L=Math.max(g,d.width),I=m+d.height+C,B=S.rectangle(-L/2,-I/2,L,I,{...w,fill:"transparent",stroke:"none"}),G=h.insert(()=>_,":first-child"),P=h.insert(()=>B);if(t.icon){let F=h.append("g");F.html(`<g>${await co(t.icon,{height:l,width:l,fallbackPrefix:""})}</g>`);let A=F.node().getBBox(),D=A.width,R=A.height,N=A.x,$=A.y;F.attr("transform",`translate(${-D/2-N},${p?d.height/2+C/2-R/2-$:-d.height/2-C/2-R/2-$})`),F.attr("style",`color: ${b.get("stroke")??x};`)}return f.attr("transform",`translate(${-d.width/2-(d.x-(d.left??0))},${p?-I/2:I/2-d.height})`),G.attr("transform",`translate(0,${p?d.height/2+C/2:-d.height/2-C/2})`),qe(t,P),t.intersect=function(F){if(W.info("iconSquare intersect",t,F),!t.label)return Pe.rect(t,F);let A=t.x??0,D=t.y??0,R=t.height??0,N=[];return p?N=[{x:A-d.width/2,y:D-R/2},{x:A+d.width/2,y:D-R/2},{x:A+d.width/2,y:D-R/2+d.height+C},{x:A+g/2,y:D-R/2+d.height+C},{x:A+g/2,y:D+R/2},{x:A-g/2,y:D+R/2},{x:A-g/2,y:D-R/2+d.height+C},{x:A-d.width/2,y:D-R/2+d.height+C}]:N=[{x:A-g/2,y:D-R/2},{x:A+g/2,y:D-R/2},{x:A+g/2,y:D-R/2+m},{x:A+d.width/2,y:D-R/2+m},{x:A+d.width/2/2,y:D+R/2},{x:A-d.width/2,y:D+R/2},{x:A-d.width/2,y:D-R/2+m},{x:A-g/2,y:D-R/2+m}],Pe.polygon(t,N,F)},h}var fU=v(()=>{"use strict";Tt();nt();Qu();Ct();xt();yt();a(dU,"icon")});async function pU(e,t,{config:{themeVariables:r,flowchart:i}}){let{labelStyles:n}=$e(t);t.labelStyle=n;let s=t.assetHeight??48,o=t.assetWidth??48,l=Math.max(s,o),u=i?.wrappingWidth;t.width=Math.max(l,u??0);let{shapeSvg:h,bbox:d,label:f}=await rt(e,t,"icon-shape default"),p=20,m=t.label?8:0,g=t.pos==="t",{nodeBorder:x,mainBkg:b}=r,{stylesMap:T}=vo(t),k=Ve.svg(h),C=je(t,{});t.look!=="handDrawn"&&(C.roughness=0,C.fillStyle="solid");let S=T.get("fill");C.stroke=S??b;let w=h.append("g");t.icon&&w.html(`<g>${await co(t.icon,{height:l,width:l,fallbackPrefix:""})}</g>`);let _=w.node().getBBox(),L=_.width,I=_.height,B=_.x,G=_.y,P=Math.max(L,I)*Math.SQRT2+p*2,F=k.circle(0,0,P,C),A=Math.max(P,d.width),D=P+d.height+m,R=k.rectangle(-A/2,-D/2,A,D,{...C,fill:"transparent",stroke:"none"}),N=h.insert(()=>F,":first-child"),$=h.insert(()=>R);return w.attr("transform",`translate(${-L/2-B},${g?d.height/2+m/2-I/2-G:-d.height/2-m/2-I/2-G})`),w.attr("style",`color: ${T.get("stroke")??x};`),f.attr("transform",`translate(${-d.width/2-(d.x-(d.left??0))},${g?-D/2:D/2-d.height})`),N.attr("transform",`translate(0,${g?d.height/2+m/2:-d.height/2-m/2})`),qe(t,$),t.intersect=function(E){return W.info("iconSquare intersect",t,E),Pe.rect(t,E)},h}var mU=v(()=>{"use strict";Tt();nt();Qu();Ct();xt();yt();a(pU,"iconCircle")});async function gU(e,t,{config:{themeVariables:r,flowchart:i}}){let{labelStyles:n}=$e(t);t.labelStyle=n;let s=t.assetHeight??48,o=t.assetWidth??48,l=Math.max(s,o),u=i?.wrappingWidth;t.width=Math.max(l,u??0);let{shapeSvg:h,bbox:d,halfPadding:f,label:p}=await rt(e,t,"icon-shape default"),m=t.pos==="t",g=l+f*2,x=l+f*2,{nodeBorder:b,mainBkg:T}=r,{stylesMap:k}=vo(t),C=-x/2,S=-g/2,w=t.label?8:0,_=Ve.svg(h),L=je(t,{});t.look!=="handDrawn"&&(L.roughness=0,L.fillStyle="solid");let I=k.get("fill");L.stroke=I??T;let B=_.path(ra(C,S,x,g,5),L),G=Math.max(x,d.width),P=g+d.height+w,F=_.rectangle(-G/2,-P/2,G,P,{...L,fill:"transparent",stroke:"none"}),A=h.insert(()=>B,":first-child").attr("class","icon-shape2"),D=h.insert(()=>F);if(t.icon){let R=h.append("g");R.html(`<g>${await co(t.icon,{height:l,width:l,fallbackPrefix:""})}</g>`);let N=R.node().getBBox(),$=N.width,E=N.height,M=N.x,V=N.y;R.attr("transform",`translate(${-$/2-M},${m?d.height/2+w/2-E/2-V:-d.height/2-w/2-E/2-V})`),R.attr("style",`color: ${k.get("stroke")??b};`)}return p.attr("transform",`translate(${-d.width/2-(d.x-(d.left??0))},${m?-P/2:P/2-d.height})`),A.attr("transform",`translate(0,${m?d.height/2+w/2:-d.height/2-w/2})`),qe(t,D),t.intersect=function(R){if(W.info("iconSquare intersect",t,R),!t.label)return Pe.rect(t,R);let N=t.x??0,$=t.y??0,E=t.height??0,M=[];return m?M=[{x:N-d.width/2,y:$-E/2},{x:N+d.width/2,y:$-E/2},{x:N+d.width/2,y:$-E/2+d.height+w},{x:N+x/2,y:$-E/2+d.height+w},{x:N+x/2,y:$+E/2},{x:N-x/2,y:$+E/2},{x:N-x/2,y:$-E/2+d.height+w},{x:N-d.width/2,y:$-E/2+d.height+w}]:M=[{x:N-x/2,y:$-E/2},{x:N+x/2,y:$-E/2},{x:N+x/2,y:$-E/2+g},{x:N+d.width/2,y:$-E/2+g},{x:N+d.width/2/2,y:$+E/2},{x:N-d.width/2,y:$+E/2},{x:N-d.width/2,y:$-E/2+g},{x:N-x/2,y:$-E/2+g}],Pe.polygon(t,M,R)},h}var yU=v(()=>{"use strict";Tt();nt();Qu();Ct();xt();Ih();yt();a(gU,"iconRounded")});async function xU(e,t,{config:{themeVariables:r,flowchart:i}}){let{labelStyles:n}=$e(t);t.labelStyle=n;let s=t.assetHeight??48,o=t.assetWidth??48,l=Math.max(s,o),u=i?.wrappingWidth;t.width=Math.max(l,u??0);let{shapeSvg:h,bbox:d,halfPadding:f,label:p}=await rt(e,t,"icon-shape default"),m=t.pos==="t",g=l+f*2,x=l+f*2,{nodeBorder:b,mainBkg:T}=r,{stylesMap:k}=vo(t),C=-x/2,S=-g/2,w=t.label?8:0,_=Ve.svg(h),L=je(t,{});t.look!=="handDrawn"&&(L.roughness=0,L.fillStyle="solid");let I=k.get("fill");L.stroke=I??T;let B=_.path(ra(C,S,x,g,.1),L),G=Math.max(x,d.width),P=g+d.height+w,F=_.rectangle(-G/2,-P/2,G,P,{...L,fill:"transparent",stroke:"none"}),A=h.insert(()=>B,":first-child"),D=h.insert(()=>F);if(t.icon){let R=h.append("g");R.html(`<g>${await co(t.icon,{height:l,width:l,fallbackPrefix:""})}</g>`);let N=R.node().getBBox(),$=N.width,E=N.height,M=N.x,V=N.y;R.attr("transform",`translate(${-$/2-M},${m?d.height/2+w/2-E/2-V:-d.height/2-w/2-E/2-V})`),R.attr("style",`color: ${k.get("stroke")??b};`)}return p.attr("transform",`translate(${-d.width/2-(d.x-(d.left??0))},${m?-P/2:P/2-d.height})`),A.attr("transform",`translate(0,${m?d.height/2+w/2:-d.height/2-w/2})`),qe(t,D),t.intersect=function(R){if(W.info("iconSquare intersect",t,R),!t.label)return Pe.rect(t,R);let N=t.x??0,$=t.y??0,E=t.height??0,M=[];return m?M=[{x:N-d.width/2,y:$-E/2},{x:N+d.width/2,y:$-E/2},{x:N+d.width/2,y:$-E/2+d.height+w},{x:N+x/2,y:$-E/2+d.height+w},{x:N+x/2,y:$+E/2},{x:N-x/2,y:$+E/2},{x:N-x/2,y:$-E/2+d.height+w},{x:N-d.width/2,y:$-E/2+d.height+w}]:M=[{x:N-x/2,y:$-E/2},{x:N+x/2,y:$-E/2},{x:N+x/2,y:$-E/2+g},{x:N+d.width/2,y:$-E/2+g},{x:N+d.width/2/2,y:$+E/2},{x:N-d.width/2,y:$+E/2},{x:N-d.width/2,y:$-E/2+g},{x:N-x/2,y:$-E/2+g}],Pe.polygon(t,M,R)},h}var bU=v(()=>{"use strict";Tt();nt();Qu();Ct();Ih();xt();yt();a(xU,"iconSquare")});async function TU(e,t,{config:{flowchart:r}}){let i=new Image;i.src=t?.img??"",await i.decode();let n=Number(i.naturalWidth.toString().replace("px","")),s=Number(i.naturalHeight.toString().replace("px",""));t.imageAspectRatio=n/s;let{labelStyles:o}=$e(t);t.labelStyle=o;let l=r?.wrappingWidth;t.defaultWidth=r?.wrappingWidth;let u=Math.max(t.label?l??0:0,t?.assetWidth??n),h=t.constraint==="on"&&t?.assetHeight?t.assetHeight*t.imageAspectRatio:u,d=t.constraint==="on"?h/t.imageAspectRatio:t?.assetHeight??s;t.width=Math.max(h,l??0);let{shapeSvg:f,bbox:p,label:m}=await rt(e,t,"image-shape default"),g=t.pos==="t",x=-h/2,b=-d/2,T=t.label?8:0,k=Ve.svg(f),C=je(t,{});t.look!=="handDrawn"&&(C.roughness=0,C.fillStyle="solid");let S=k.rectangle(x,b,h,d,C),w=Math.max(h,p.width),_=d+p.height+T,L=k.rectangle(-w/2,-_/2,w,_,{...C,fill:"none",stroke:"none"}),I=f.insert(()=>S,":first-child"),B=f.insert(()=>L);if(t.img){let G=f.append("image");G.attr("href",t.img),G.attr("width",h),G.attr("height",d),G.attr("preserveAspectRatio","none"),G.attr("transform",`translate(${-h/2},${g?_/2-d:-_/2})`)}return m.attr("transform",`translate(${-p.width/2-(p.x-(p.left??0))},${g?-d/2-p.height/2-T/2:d/2-p.height/2+T/2})`),I.attr("transform",`translate(0,${g?p.height/2+T/2:-p.height/2-T/2})`),qe(t,B),t.intersect=function(G){if(W.info("iconSquare intersect",t,G),!t.label)return Pe.rect(t,G);let P=t.x??0,F=t.y??0,A=t.height??0,D=[];return g?D=[{x:P-p.width/2,y:F-A/2},{x:P+p.width/2,y:F-A/2},{x:P+p.width/2,y:F-A/2+p.height+T},{x:P+h/2,y:F-A/2+p.height+T},{x:P+h/2,y:F+A/2},{x:P-h/2,y:F+A/2},{x:P-h/2,y:F-A/2+p.height+T},{x:P-p.width/2,y:F-A/2+p.height+T}]:D=[{x:P-h/2,y:F-A/2},{x:P+h/2,y:F-A/2},{x:P+h/2,y:F-A/2+d},{x:P+p.width/2,y:F-A/2+d},{x:P+p.width/2/2,y:F+A/2},{x:P-p.width/2,y:F+A/2},{x:P-p.width/2,y:F-A/2+d},{x:P-h/2,y:F-A/2+d}],Pe.polygon(t,D,G)},f}var kU=v(()=>{"use strict";Tt();nt();Ct();xt();yt();a(TU,"imageSquare")});async function CU(e,t){let{labelStyles:r,nodeStyles:i}=$e(t);t.labelStyle=r;let n=t.padding??0,s=n,o=t.look==="neo"?n*2:n,{shapeSvg:l,bbox:u}=await rt(e,t,Ze(t)),h=Math.max(u.width+(o??0)*2,t?.width??0),d=Math.max(u.height+(s??0)*2,t?.height??0),f=[{x:0,y:0},{x:h,y:0},{x:h+3*d/6,y:-d},{x:-3*d/6,y:-d}],p,{cssStyles:m}=t;if(t.look==="handDrawn"){let g=Ve.svg(l),x=je(t,{}),b=Rt(f),T=g.path(b,x);p=l.insert(()=>T,":first-child").attr("transform",`translate(${-h/2}, ${d/2})`),m&&p.attr("style",m)}else p=kn(l,h,d,f);return i&&p.attr("style",i),t.width=h,t.height=d,qe(t,p),t.intersect=function(g){return Pe.polygon(t,f,g)},l}var vU=v(()=>{"use strict";yt();Ct();xt();Tt();vl();a(CU,"inv_trapezoid")});async function SU(e,t){let{shapeSvg:r,bbox:i,label:n}=await rt(e,t,"label"),s=r.insert("rect",":first-child");return s.attr("width",.1).attr("height",.1),r.attr("class","label edgeLabel"),n.attr("transform",`translate(${-(i.width/2)-(i.x-(i.left??0))}, ${-(i.height/2)-(i.y-(i.top??0))})`),qe(t,s),t.intersect=function(u){return Pe.rect(t,u)},r}var _U=v(()=>{"use strict";Nh();yt();Ct();a(SU,"labelRect")});async function wU(e,t){let{labelStyles:r,nodeStyles:i}=$e(t);t.labelStyle=r;let n=t.padding??0,s=n,o=t.look==="neo"?n*2:n,{shapeSvg:l,bbox:u}=await rt(e,t,Ze(t)),h=(t?.height??u.height)+s,d=(t?.width??u.width)+o,f=[{x:0,y:0},{x:d+3*h/6,y:0},{x:d,y:-h},{x:-(3*h)/6,y:-h}],p,{cssStyles:m}=t;if(t.look==="handDrawn"){let g=Ve.svg(l),x=je(t,{}),b=Rt(f),T=g.path(b,x);p=l.insert(()=>T,":first-child").attr("transform",`translate(${-d/2}, ${h/2})`),m&&p.attr("style",m)}else p=kn(l,d,h,f);return i&&p.attr("style",i),t.width=d,t.height=h,qe(t,p),t.intersect=function(g){return Pe.polygon(t,f,g)},l}var EU=v(()=>{"use strict";yt();Ct();xt();Tt();vl();a(wU,"lean_left")});async function AU(e,t){let{labelStyles:r,nodeStyles:i}=$e(t);t.labelStyle=r;let n=t.padding??0,s=n,o=t.look==="neo"?n*2:n,{shapeSvg:l,bbox:u}=await rt(e,t,Ze(t)),h=(t?.height??u.height)+s,d=(t?.width??u.width)+o,f=[{x:-3*h/6,y:0},{x:d,y:0},{x:d+3*h/6,y:-h},{x:0,y:-h}],p,{cssStyles:m}=t;if(t.look==="handDrawn"){let g=Ve.svg(l),x=je(t,{}),b=Rt(f),T=g.path(b,x);p=l.insert(()=>T,":first-child").attr("transform",`translate(${-d/2}, ${h/2})`),m&&p.attr("style",m)}else p=kn(l,d,h,f);return i&&p.attr("style",i),t.width=d,t.height=h,qe(t,p),t.intersect=function(g){return Pe.polygon(t,f,g)},l}var RU=v(()=>{"use strict";yt();Ct();xt();Tt();vl();a(AU,"lean_right")});function LU(e,t){let{labelStyles:r,nodeStyles:i}=$e(t);t.label="",t.labelStyle=r;let n=e.insert("g").attr("class",Ze(t)).attr("id",t.domId??t.id),{cssStyles:s}=t,o=Math.max(35,t?.width??0),l=Math.max(35,t?.height??0),u=7,h=[{x:o,y:0},{x:0,y:l+u/2},{x:o-2*u,y:l+u/2},{x:0,y:2*l},{x:o,y:l-u/2},{x:2*u,y:l-u/2}],d=Ve.svg(n),f=je(t,{});t.look!=="handDrawn"&&(f.roughness=0,f.fillStyle="solid");let p=Rt(h),m=d.path(p,f),g=n.insert(()=>m,":first-child");return g.attr("class","outer-path"),s&&t.look!=="handDrawn"&&g.selectAll("path").attr("style",s),i&&t.look!=="handDrawn"&&g.selectAll("path").attr("style",i),g.attr("transform",`translate(-${o/2},${-l})`),qe(t,g),t.intersect=function(x){return W.info("lightningBolt intersect",t,x),Pe.polygon(t,h,x)},n}var DU=v(()=>{"use strict";nt();yt();xt();Tt();Ct();yt();a(LU,"lightningBolt")});async function MU(e,t){let{labelStyles:r,nodeStyles:i}=$e(t);t.labelStyle=r;let n=t.padding??0,s=t.look==="neo"?16:n,o=t.look==="neo"?24:n;if(t.width||t.height){let T=t.width??0;t.width=(t.width??0)-s,t.width<NU&&(t.width=NU);let C=T/2/(2.5+T/50);t.height=(t.height??0)-o-C*3,t.height<IU&&(t.height=IU)}let{shapeSvg:l,bbox:u,label:h}=await rt(e,t,Ze(t)),d=(t?.width?t?.width:u.width)+s*2,f=d/2,p=f/(2.5+d/50),m=(t?.height?t?.height:u.height)+p+o*2,g=m*.1,x,{cssStyles:b}=t;if(t.look==="handDrawn"){let T=Ve.svg(l),k=URe(0,0,d,m,f,p,g),C=HRe(0,p,d,m,f,p),S=je(t,{}),w=T.path(k,S),_=T.path(C,S);l.insert(()=>_,":first-child").attr("class","line"),x=l.insert(()=>w,":first-child"),x.attr("class","basic label-container"),b&&x.attr("style",b)}else{let T=jRe(0,0,d,m,f,p,g);x=l.insert("path",":first-child").attr("d",T).attr("class","basic label-container outer-path").attr("style",_r(b)).attr("style",i)}return x.attr("label-offset-y",p),x.attr("transform",`translate(${-d/2}, ${-(m/2+p)})`),qe(t,x),h.attr("transform",`translate(${-(u.width/2)-(u.x-(u.left??0))}, ${-(u.height/2)+p-(u.y-(u.top??0))})`),t.intersect=function(T){let k=Pe.rect(t,T),C=k.x-(t.x??0);if(f!=0&&(Math.abs(C)<(t.width??0)/2||Math.abs(C)==(t.width??0)/2&&Math.abs(k.y-(t.y??0))>(t.height??0)/2-p)){let S=p*p*(1-C*C/(f*f));S>0&&(S=Math.sqrt(S)),S=p-S,T.y-(t.y??0)>0&&(S=-S),k.y+=S}return k},l}var jRe,URe,HRe,IU,NU,OU=v(()=>{"use strict";yt();Ct();xt();Tt();Et();jRe=a((e,t,r,i,n,s,o)=>[`M${e},${t+s}`,`a${n},${s} 0,0,0 ${r},0`,`a${n},${s} 0,0,0 ${-r},0`,`l0,${i}`,`a${n},${s} 0,0,0 ${r},0`,`l0,${-i}`,`M${e},${t+s+o}`,`a${n},${s} 0,0,0 ${r},0`].join(" "),"createCylinderPathD"),URe=a((e,t,r,i,n,s,o)=>[`M${e},${t+s}`,`M${e+r},${t+s}`,`a${n},${s} 0,0,0 ${-r},0`,`l0,${i}`,`a${n},${s} 0,0,0 ${r},0`,`l0,${-i}`,`M${e},${t+s+o}`,`a${n},${s} 0,0,0 ${r},0`].join(" "),"createOuterCylinderPathD"),HRe=a((e,t,r,i,n,s)=>[`M${e-r/2},${-i/2}`,`a${n},${s} 0,0,0 ${r},0`].join(" "),"createInnerCylinderPathD"),IU=10,NU=10;a(MU,"linedCylinder")});async function PU(e,t){let{labelStyles:r,nodeStyles:i}=$e(t);t.labelStyle=r;let n=t.padding??0,s=t.look==="neo"?16:n,o=t.look==="neo"?12:n;if(t.width||t.height){let S=t.width;t.width=(S??0)*10/11-s*2,t.width<10&&(t.width=10),t.height=(t?.height??0)-o*2,t.height<10&&(t.height=10)}let{shapeSvg:l,bbox:u,label:h}=await rt(e,t,Ze(t)),d=(t?.width?t?.width:u.width)+(s??0)*2,f=(t?.height?t?.height:u.height)+(o??0)*2,p=t.look==="neo"?f/4:f/8,m=f+p,{cssStyles:g}=t,x=Ve.svg(l),b=je(t,{});t.look!=="handDrawn"&&(b.roughness=0,b.fillStyle="solid");let T=[{x:-d/2-d/2*.1,y:-m/2},{x:-d/2-d/2*.1,y:m/2},...Za(-d/2-d/2*.1,m/2,d/2+d/2*.1,m/2,p,.8),{x:d/2+d/2*.1,y:-m/2},{x:-d/2-d/2*.1,y:-m/2},{x:-d/2,y:-m/2},{x:-d/2,y:m/2*1.1},{x:-d/2,y:-m/2}],k=x.polygon(T.map(S=>[S.x,S.y]),b),C=l.insert(()=>k,":first-child");return C.attr("class","basic label-container outer-path"),g&&t.look!=="handDrawn"&&C.selectAll("path").attr("style",g),i&&t.look!=="handDrawn"&&C.selectAll("path").attr("style",i),C.attr("transform",`translate(0,${-p/2})`),h.attr("transform",`translate(${-d/2+(t.padding??0)+d/2*.1/2-(u.x-(u.left??0))},${-f/2+(t.padding??0)-p/2-(u.y-(u.top??0))})`),qe(t,C),t.intersect=function(S){return Pe.polygon(t,T,S)},l}var BU=v(()=>{"use strict";yt();Ct();Tt();xt();a(PU,"linedWaveEdgedRect")});async function $U(e,t){let{labelStyles:r,nodeStyles:i}=$e(t);t.labelStyle=r;let n=t.padding??0,s=t.look==="neo"?16:n,o=t.look==="neo"?12:n,l=t.look==="neo"?10:5;(t.width||t.height)&&(t.width=Math.max((t?.width??0)-s*2-2*l,10),t.height=Math.max((t?.height??0)-o*2-2*l,10));let{shapeSvg:u,bbox:h,label:d}=await rt(e,t,Ze(t)),f=(t?.width?t?.width:h.width)+s*2+2*l,p=(t?.height?t?.height:h.height)+o*2+2*l,m=f-2*l,g=p-2*l,x=-m/2,b=-g/2,{cssStyles:T}=t,k=Ve.svg(u),C=je(t,{}),S=[{x:x-l,y:b+l},{x:x-l,y:b+g+l},{x:x+m-l,y:b+g+l},{x:x+m-l,y:b+g},{x:x+m,y:b+g},{x:x+m,y:b+g-l},{x:x+m+l,y:b+g-l},{x:x+m+l,y:b-l},{x:x+l,y:b-l},{x:x+l,y:b},{x,y:b},{x,y:b+l}],w=[{x,y:b+l},{x:x+m-l,y:b+l},{x:x+m-l,y:b+g},{x:x+m,y:b+g},{x:x+m,y:b},{x,y:b}];t.look!=="handDrawn"&&(C.roughness=0,C.fillStyle="solid");let _=Rt(S),L=k.path(_,C),I=Rt(w),B=k.path(I,C);t.look!=="handDrawn"&&(L=Q5(L),B=Q5(B));let G=u.insert("g",":first-child");return G.insert(()=>L),G.insert(()=>B),G.attr("class","basic label-container outer-path"),T&&t.look!=="handDrawn"&&G.selectAll("path").attr("style",T),i&&t.look!=="handDrawn"&&G.selectAll("path").attr("style",i),d.attr("transform",`translate(${-(h.width/2)-l-(h.x-(h.left??0))}, ${-(h.height/2)+l-(h.y-(h.top??0))})`),qe(t,G),t.intersect=function(P){return Pe.polygon(t,S,P)},u}var FU=v(()=>{"use strict";yt();xt();Tt();Ct();a($U,"multiRect")});async function VU(e,t){let{labelStyles:r,nodeStyles:i}=$e(t);t.labelStyle=r;let{shapeSvg:n,bbox:s,label:o}=await rt(e,t,Ze(t)),l=t.padding??0,u=t.look==="neo"?16:l,h=t.look==="neo"?12:l,d=!0;(t.width||t.height)&&(d=!1,t.width=(t?.width??0)-u*2,t.height=(t?.height??0)-h*3);let f=Math.max(s.width,t?.width??0)+u*2,p=Math.max(s.height,t?.height??0)+h*3,m=t.look==="neo"?p/4:p/8,g=p+(d?m/2:-m/2),x=-f/2,b=-g/2,T=10,{cssStyles:k}=t,C=Za(x-T,b+g+T,x+f-T,b+g+T,m,.8),S=C?.[C.length-1],w=[{x:x-T,y:b+T},{x:x-T,y:b+g+T},...C,{x:x+f-T,y:S.y-T},{x:x+f,y:S.y-T},{x:x+f,y:S.y-2*T},{x:x+f+T,y:S.y-2*T},{x:x+f+T,y:b-T},{x:x+T,y:b-T},{x:x+T,y:b},{x,y:b},{x,y:b+T}],_=[{x,y:b+T},{x:x+f-T,y:b+T},{x:x+f-T,y:S.y-T},{x:x+f,y:S.y-T},{x:x+f,y:b},{x,y:b}],L=Ve.svg(n),I=je(t,{});t.look!=="handDrawn"&&(I.roughness=0,I.fillStyle="solid");let B=Rt(w),G=L.path(B,I),P=Rt(_),F=L.path(P,I),A=n.insert(()=>G,":first-child");return A.insert(()=>F),A.attr("class","basic label-container outer-path"),k&&t.look!=="handDrawn"&&A.selectAll("path").attr("style",k),i&&t.look!=="handDrawn"&&A.selectAll("path").attr("style",i),A.attr("transform",`translate(0,${-m/2})`),o.attr("transform",`translate(${-(s.width/2)-T-(s.x-(s.left??0))}, ${-(s.height/2)+T-m/2-(s.y-(s.top??0))})`),qe(t,A),t.intersect=function(D){return Pe.polygon(t,w,D)},n}var GU=v(()=>{"use strict";yt();Ct();Tt();xt();a(VU,"multiWaveEdgedRectangle")});async function WU(e,t,{config:{themeVariables:r}}){let{labelStyles:i,nodeStyles:n}=$e(t);t.labelStyle=i,t.useHtmlLabels||ar(ct())||(t.centerLabel=!0);let{shapeSvg:o,bbox:l,label:u}=await rt(e,t,Ze(t)),h=Math.max(l.width+(t.padding??0)*2,t?.width??0),d=Math.max(l.height+(t.padding??0)*2,t?.height??0),f=-h/2,p=-d/2,{cssStyles:m}=t,g=Ve.svg(o),x=je(t,{fill:r.noteBkgColor,stroke:r.noteBorderColor});t.look!=="handDrawn"&&(x.roughness=0,x.fillStyle="solid");let b=g.rectangle(f,p,h,d,x),T=o.insert(()=>b,":first-child");return T.attr("class","basic label-container outer-path"),u.attr("class","label noteLabel"),m&&t.look!=="handDrawn"&&T.selectAll("path").attr("style",m),n&&t.look!=="handDrawn"&&T.selectAll("path").attr("style",n),u.attr("transform",`translate(${-l.width/2-(l.x-(l.left??0))}, ${-(l.height/2)-(l.y-(l.top??0))})`),qe(t,T),t.intersect=function(k){return Pe.rect(t,k)},o}var zU=v(()=>{"use strict";Tt();Ct();xt();yt();Xt();Xt();a(WU,"note")});async function qU(e,t){let{labelStyles:r,nodeStyles:i}=$e(t);t.labelStyle=r;let{shapeSvg:n,bbox:s}=await rt(e,t,Ze(t)),o=s.width+(t.padding??0),l=s.height+(t.padding??0),u=o+l,h=.5,d=[{x:u/2,y:0},{x:u,y:-u/2},{x:u/2,y:-u},{x:0,y:-u/2}],f,{cssStyles:p}=t;if(t.look==="handDrawn"){let m=Ve.svg(n),g=je(t,{}),x=YRe(0,0,u),b=m.path(x,g);f=n.insert(()=>b,":first-child").attr("transform",`translate(${-u/2+h}, ${u/2})`),p&&f.attr("style",p)}else f=kn(n,u,u,d),f.attr("transform",`translate(${-u/2+h}, ${u/2})`);return i&&f.attr("style",i),qe(t,f),t.calcIntersect=function(m,g){let x=m.width,b=[{x:x/2,y:0},{x,y:-x/2},{x:x/2,y:-x},{x:0,y:-x/2}],T=Pe.polygon(m,b,g);return{x:T.x-.5,y:T.y-.5}},t.intersect=function(m){return this.calcIntersect(t,m)},n}var YRe,jU=v(()=>{"use strict";yt();Ct();xt();Tt();vl();YRe=a((e,t,r)=>[`M${e+r/2},${t}`,`L${e+r},${t-r/2}`,`L${e+r/2},${t-r}`,`L${e},${t-r/2}`,"Z"].join(" "),"createDecisionBoxPathD");a(qU,"question")});async function UU(e,t){let{labelStyles:r,nodeStyles:i}=$e(t);t.labelStyle=r;let n=t.padding??0,s=t.look==="neo"?21:n??0,o=t.look==="neo"?12:n??0,{shapeSvg:l,bbox:u,label:h}=await rt(e,t,Ze(t)),d=(t?.width??u.width)+(t.look==="neo"?s*2:s),f=(t?.height??u.height)+(t.look==="neo"?o*2:o),p=-d/2,m=-f/2,g=m/2,x=[{x:p+g,y:m},{x:p,y:0},{x:p+g,y:-m},{x:-p,y:-m},{x:-p,y:m}],{cssStyles:b}=t,T=Ve.svg(l),k=je(t,{});t.look!=="handDrawn"&&(k.roughness=0,k.fillStyle="solid");let C=Rt(x),S=T.path(C,k),w=l.insert(()=>S,":first-child");return w.attr("class","basic label-container outer-path"),b&&t.look!=="handDrawn"&&w.selectAll("path").attr("style",b),i&&t.look!=="handDrawn"&&w.selectAll("path").attr("style",i),w.attr("transform",`translate(${-g/2},0)`),h.attr("transform",`translate(${-g/2-u.width/2-(u.x-(u.left??0))}, ${-(u.height/2)-(u.y-(u.top??0))})`),qe(t,w),t.intersect=function(_){return Pe.polygon(t,x,_)},l}var HU=v(()=>{"use strict";yt();Ct();xt();Tt();a(UU,"rect_left_inv_arrow")});var KRe,Vs,ST=v(()=>{"use strict";Xt();bt();Qa();KRe=a(async(e,t,r,i=!1,n=!1)=>{let s=t||"";typeof s=="object"&&(s=s[0]);let o=J(),l=ar(o);return await di(e,s,{style:r,isTitle:i,useHtmlLabels:l,markdown:!1,isNode:n,width:Number.POSITIVE_INFINITY},o)},"createLabel"),Vs=KRe});async function YU(e,t){let{labelStyles:r,nodeStyles:i}=$e(t);t.labelStyle=r;let n;t.cssClasses?n="node "+t.cssClasses:n="node default";let s=e.insert("g").attr("class",n).attr("id",t.domId||t.id),o=s.insert("g"),l=s.insert("g").attr("class","label").attr("style",i),u=t.description,h=t.label,d=await Vs(l,h,t.labelStyle,!0,!0),f={width:0,height:0};if(ar(J())){let I=d.children[0],B=Se(d);f=I.getBoundingClientRect(),B.attr("width",f.width),B.attr("height",f.height)}W.info("Text 2",u);let p=u||[],m=d.getBBox(),g=await Vs(l,Array.isArray(p)?p.join("<br/>"):p,t.labelStyle,!0,!0),x=g.children[0],b=Se(g);f=x.getBoundingClientRect(),b.attr("width",f.width),b.attr("height",f.height);let T=(t.padding||0)/2;Se(g).attr("transform","translate( "+(f.width>m.width?0:(m.width-f.width)/2)+", "+(m.height+T+5)+")"),Se(d).attr("transform","translate( "+(f.width<m.width?0:-(m.width-f.width)/2)+", 0)"),f=l.node().getBBox(),l.attr("transform","translate("+-f.width/2+", "+(-f.height/2-T+3)+")");let k=f.width+(t.padding||0),C=f.height+(t.padding||0),S=-f.width/2-T,w=-f.height/2-T,_,L;if(t.look==="handDrawn"){let I=Ve.svg(s),B=je(t,{}),G=I.path(ra(S,w,k,C,t.rx||0),B),P=I.line(-f.width/2-T,-f.height/2-T+m.height+T,f.width/2+T,-f.height/2-T+m.height+T,B);L=s.insert(()=>(W.debug("Rough node insert CXC",G),P),":first-child"),_=s.insert(()=>(W.debug("Rough node insert CXC",G),G),":first-child")}else _=o.insert("rect",":first-child"),L=o.insert("line"),_.attr("class","outer title-state").attr("style",i).attr("x",-f.width/2-T).attr("y",-f.height/2-T).attr("width",f.width+(t.padding||0)).attr("height",f.height+(t.padding||0)),L.attr("class","divider").attr("x1",-f.width/2-T).attr("x2",f.width/2+T).attr("y1",-f.height/2-T+m.height+T).attr("y2",-f.height/2-T+m.height+T);return qe(t,_),t.intersect=function(I){return Pe.rect(t,I)},s}var KU=v(()=>{"use strict";sr();yt();ST();Ct();xt();Tt();bt();Ih();nt();Xt();a(YU,"rectWithTitle")});async function XU(e,t,{config:{themeVariables:r}}){let i=r?.radius??5,n={rx:i,ry:i,classes:"",labelPaddingX:(t?.padding??0)*1,labelPaddingY:(t?.padding??0)*1};return Fs(e,t,n)}var QU=v(()=>{"use strict";Nh();a(XU,"roundedRect")});async function ZU(e,t){let{labelStyles:r,nodeStyles:i}=$e(t);t.labelStyle=r;let n=t.look==="neo"?16:t.padding??0,s=t.look==="neo"?12:t.padding??0,{shapeSvg:o,bbox:l,label:u}=await rt(e,t,Ze(t)),h=(t?.width??l.width)+n*2+(t.look==="neo"?Mh:Mh*2),d=(t?.height??l.height)+s*2,f=h-Mh,p=d,m=Mh-h/2,g=-d/2,{cssStyles:x}=t,b=Ve.svg(o),T=je(t,{});t.look!=="handDrawn"&&(T.roughness=0,T.fillStyle="solid");let k=[{x:m,y:g},{x:m+f,y:g},{x:m+f,y:g+p},{x:m-Mh,y:g+p},{x:m-Mh,y:g},{x:m,y:g},{x:m,y:g+p}],C=b.polygon(k.map(w=>[w.x,w.y]),T),S=o.insert(()=>C,":first-child");return S.attr("class","basic label-container outer-path").attr("style",_r(x)),i&&t.look!=="handDrawn"&&S.selectAll("path").attr("style",i),x&&t.look!=="handDrawn"&&S.selectAll("path").attr("style",i),u.attr("transform",`translate(${Mh/2-l.width/2-(l.x-(l.left??0))}, ${-(l.height/2)-(l.y-(l.top??0))})`),qe(t,S),t.intersect=function(w){return Pe.rect(t,w)},o}var Mh,JU=v(()=>{"use strict";yt();Ct();xt();Tt();Et();Mh=8;a(ZU,"shadedProcess")});async function eH(e,t){let{labelStyles:r,nodeStyles:i}=$e(t);t.labelStyle=r;let n=t.padding??0,s=t.look==="neo"?16:n,o=t.look==="neo"?12:n;(t.width||t.height)&&(t.width=Math.max((t?.width??0)-s*2,10),t.height=Math.max((t?.height??0)/1.5-o*2,10));let{shapeSvg:l,bbox:u,label:h}=await rt(e,t,Ze(t)),d=(t?.width?t?.width:u.width)+s*2,f=((t?.height?t?.height:u.height)+o*2)*1.5,p=d,m=f/1.5,g=-p/2,x=-m/2,{cssStyles:b}=t,T=Ve.svg(l),k=je(t,{});t.look!=="handDrawn"&&(k.roughness=0,k.fillStyle="solid");let C=[{x:g,y:x},{x:g,y:x+m},{x:g+p,y:x+m},{x:g+p,y:x-m/2}],S=Rt(C),w=T.path(S,k),_=l.insert(()=>w,":first-child");return _.attr("class","basic label-container outer-path"),b&&t.look!=="handDrawn"&&_.selectChildren("path").attr("style",b),i&&t.look!=="handDrawn"&&_.selectChildren("path").attr("style",i),_.attr("transform",`translate(0, ${m/4})`),h.attr("transform",`translate(${-p/2+(t.padding??0)-(u.x-(u.left??0))}, ${-m/4+(t.padding??0)-(u.y-(u.top??0))})`),qe(t,_),t.intersect=function(L){return Pe.polygon(t,C,L)},l}var tH=v(()=>{"use strict";yt();Ct();xt();Tt();a(eH,"slopedRect")});async function rH(e,t){let r=t.padding??0,i=t.look==="neo"?16:r*2,n=t.look==="neo"?12:r,s={rx:0,ry:0,classes:"",labelPaddingX:t.labelPaddingX??i,labelPaddingY:n};return Fs(e,t,s)}var iH=v(()=>{"use strict";Nh();a(rH,"squareRect")});async function nH(e,t){let{labelStyles:r,nodeStyles:i}=$e(t);t.labelStyle=r;let n=t.padding??0,s=t.look==="neo"?20:n,o=t.look==="neo"?12:n,{shapeSvg:l,bbox:u}=await rt(e,t,Ze(t)),h=u.height+(t.look==="neo"?o*2:o),d=u.width+h/4+(t.look==="neo"?s*2:s),f=h/2,{cssStyles:p}=t,m=Ve.svg(l),g=je(t,{});t.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");let x=[{x:-d/2+f,y:-h/2},{x:d/2-f,y:-h/2},...Lh(-d/2+f,0,f,50,90,270),{x:d/2-f,y:h/2},...Lh(d/2-f,0,f,50,270,450)],b=Rt(x),T=m.path(b,g),k=l.insert(()=>T,":first-child");return k.attr("class","basic label-container outer-path"),p&&t.look!=="handDrawn"&&k.selectChildren("path").attr("style",p),i&&t.look!=="handDrawn"&&k.selectChildren("path").attr("style",i),qe(t,k),t.intersect=function(C){return Pe.polygon(t,x,C)},l}var aH=v(()=>{"use strict";yt();Ct();xt();Tt();a(nH,"stadium")});async function sH(e,t){let r={rx:t.look==="neo"?3:5,ry:t.look==="neo"?3:5,classes:"flowchart-node"};return Fs(e,t,r)}var oH=v(()=>{"use strict";Nh();a(sH,"state")});function lH(e,t,{config:{themeVariables:r}}){let{labelStyles:i,nodeStyles:n}=$e(t);t.labelStyle=i;let{cssStyles:s}=t,{lineColor:o,stateBorder:l,nodeBorder:u,nodeShadow:h}=r;(t.width||t.height)&&((t.width??0)<14&&(t.width=14),(t.height??0)<14&&(t.height=14)),t.width||(t.width=14),t.height||(t.height=14);let d=e.insert("g").attr("class","node default").attr("id",t.domId??t.id),f=Ve.svg(d),p=je(t,{});t.look!=="handDrawn"&&(p.roughness=0,p.fillStyle="solid");let m=f.circle(0,0,t.width,{...p,stroke:o,strokeWidth:2}),g=l??u,x=(t.width??0)*5/14,b=f.circle(0,0,x,{...p,fill:g,stroke:g,strokeWidth:2,fillStyle:"solid"}),T=d.insert(()=>m,":first-child");if(T.insert(()=>b),t.look!=="handDrawn"&&T.attr("class","outer-path"),s&&T.selectAll("path").attr("style",s),n&&T.selectAll("path").attr("style",n),t.width<25&&h&&t.look!=="handDrawn"){let k=e.node()?.ownerSVGElement?.id??"",C=k?`${k}-drop-shadow-small`:"drop-shadow-small";T.attr("style",`filter:url(#${C})`)}return qe(t,T),t.intersect=function(k){return Pe.circle(t,(t.width??0)/2,k)},d}var cH=v(()=>{"use strict";Tt();Ct();xt();yt();a(lH,"stateEnd")});function uH(e,t,{config:{themeVariables:r}}){let{lineColor:i,nodeShadow:n}=r;(t.width||t.height)&&((t.width??0)<14&&(t.width=14),(t.height??0)<14&&(t.height=14)),t.width||(t.width=14),t.height||(t.height=14);let s=e.insert("g").attr("class","node default").attr("id",t.domId||t.id),o;if(t.look==="handDrawn"){let u=Ve.svg(s).circle(0,0,t.width,lj(i));o=s.insert(()=>u),o.attr("class","state-start").attr("r",(t.width??7)/2).attr("width",t.width??14).attr("height",t.height??14)}else o=s.insert("circle",":first-child"),o.attr("class","state-start").attr("r",(t.width??7)/2).attr("width",t.width??14).attr("height",t.height??14);if(t.width<25&&n&&t.look!=="handDrawn"){let l=e.node()?.ownerSVGElement?.id??"",u=l?`${l}-drop-shadow-small`:"drop-shadow-small";o.attr("style",`filter:url(#${u})`)}return qe(t,o),t.intersect=function(l){return Pe.circle(t,(t.width??7)/2,l)},s}var hH=v(()=>{"use strict";Tt();Ct();xt();yt();a(uH,"stateStart")});async function dH(e,t){let{labelStyles:r,nodeStyles:i}=$e(t);t.labelStyle=r;let n=t?.padding??8,s=t.look==="neo"?28:n,o=t.look==="neo"?12:n,{shapeSvg:l,bbox:u}=await rt(e,t,Ze(t)),h=(t?.width??u.width)+2*up+s,d=(t?.height??u.height)+o,f=h-2*up,p=d,m=-h/2,g=-d/2,x=[{x:0,y:0},{x:f,y:0},{x:f,y:-p},{x:0,y:-p},{x:0,y:0},{x:-8,y:0},{x:f+8,y:0},{x:f+8,y:-p},{x:-8,y:-p},{x:-8,y:0}];if(t.look==="handDrawn"){let b=Ve.svg(l),T=je(t,{}),k=b.rectangle(m,g,f+16,p,T),C=b.line(m+up,g,m+up,g+p,T),S=b.line(m+up+f,g,m+up+f,g+p,T);l.insert(()=>C,":first-child"),l.insert(()=>S,":first-child");let w=l.insert(()=>k,":first-child"),{cssStyles:_}=t;w.attr("class","basic label-container").attr("style",_r(_)),qe(t,w)}else{let b=kn(l,f,p,x);i&&b.attr("style",i),qe(t,b)}return t.intersect=function(b){return Pe.polygon(t,x,b)},l}var up,fH=v(()=>{"use strict";yt();Ct();xt();Tt();vl();Et();up=8;a(dH,"subroutine")});async function pH(e,t){let{labelStyles:r,nodeStyles:i}=$e(t);t.labelStyle=r;let n=t.padding??0,s=t.look==="neo"?16:n,o=t.look==="neo"?12:n;(t.width||t.height)&&(t.height=Math.max((t?.height??0)-o*2,10),t.width=Math.max((t?.width??0)-s*2-xR*(t.height+o*2),10));let{shapeSvg:l,bbox:u}=await rt(e,t,Ze(t)),h=(t?.height?t?.height:u.height)+o*2,d=xR*h,f=xR*h,m=(t?.width?t?.width:u.width)+s*2+d-d,g=h,x=-m/2,b=-g/2,{cssStyles:T}=t,k=Ve.svg(l),C=je(t,{}),S=[{x:x-d/2,y:b},{x:x+m+d/2,y:b},{x:x+m+d/2,y:b+g},{x:x-d/2,y:b+g}],w=[{x:x+m-d/2,y:b+g},{x:x+m+d/2,y:b+g},{x:x+m+d/2,y:b+g-f}];t.look!=="handDrawn"&&(C.roughness=0,C.fillStyle="solid");let _=Rt(S),L=k.path(_,C),I=Rt(w),B=k.path(I,{...C,fillStyle:"solid"}),G=l.insert(()=>B,":first-child");return G.insert(()=>L,":first-child"),G.attr("class","basic label-container outer-path"),T&&t.look!=="handDrawn"&&G.selectAll("path").attr("style",T),i&&t.look!=="handDrawn"&&G.selectAll("path").attr("style",i),qe(t,G),t.intersect=function(P){return Pe.polygon(t,S,P)},l}var xR,mH=v(()=>{"use strict";yt();xt();Tt();Ct();xR=.2;a(pH,"taggedRect")});async function gH(e,t){let{labelStyles:r,nodeStyles:i}=$e(t);t.labelStyle=r;let{shapeSvg:n,bbox:s,label:o}=await rt(e,t,Ze(t)),l=Math.max(s.width+(t.padding??0)*2,t?.width??0),u=Math.max(s.height+(t.padding??0)*2,t?.height??0),h=u/8,d=.2*l,f=.2*u,p=u+h,{cssStyles:m}=t,g=Ve.svg(n),x=je(t,{});t.look!=="handDrawn"&&(x.roughness=0,x.fillStyle="solid");let b=[{x:-l/2-l/2*.1,y:p/2},...Za(-l/2-l/2*.1,p/2,l/2+l/2*.1,p/2,h,.8),{x:l/2+l/2*.1,y:-p/2},{x:-l/2-l/2*.1,y:-p/2}],T=-l/2+l/2*.1,k=-p/2-f*.4,C=[{x:T+l-d,y:(k+u)*1.3},{x:T+l,y:k+u-f},{x:T+l,y:(k+u)*.9},...Za(T+l,(k+u)*1.25,T+l-d,(k+u)*1.3,-u*.02,.5)],S=Rt(b),w=g.path(S,x),_=Rt(C),L=g.path(_,{...x,fillStyle:"solid"}),I=n.insert(()=>L,":first-child");return I.insert(()=>w,":first-child"),I.attr("class","basic label-container outer-path"),m&&t.look!=="handDrawn"&&I.selectAll("path").attr("style",m),i&&t.look!=="handDrawn"&&I.selectAll("path").attr("style",i),I.attr("transform",`translate(0,${-h/2})`),o.attr("transform",`translate(${-l/2+(t.padding??0)-(s.x-(s.left??0))},${-u/2+(t.padding??0)-h/2-(s.y-(s.top??0))})`),qe(t,I),t.intersect=function(B){return Pe.polygon(t,b,B)},n}var yH=v(()=>{"use strict";yt();Ct();Tt();xt();a(gH,"taggedWaveEdgedRectangle")});async function xH(e,t){let{labelStyles:r,nodeStyles:i}=$e(t);t.labelStyle=r;let{shapeSvg:n,bbox:s}=await rt(e,t,Ze(t)),o=Math.max(s.width+(t.padding??0),t?.width||0),l=Math.max(s.height+(t.padding??0),t?.height||0),u=-o/2,h=-l/2,d=n.insert("rect",":first-child");return d.attr("class","text").attr("style",i).attr("rx",0).attr("ry",0).attr("x",u).attr("y",h).attr("width",o).attr("height",l),qe(t,d),t.intersect=function(f){return Pe.rect(t,f)},n}var bH=v(()=>{"use strict";yt();Ct();xt();a(xH,"text")});async function CH(e,t){let{labelStyles:r,nodeStyles:i}=$e(t);t.labelStyle=r;let n=t.padding??0,s=t.look==="neo"?12:n/2;if(t.width||t.height){let x=t.height??0;t.height=(t.height??0)-s,t.height<TH&&(t.height=TH);let T=x/2/(2.5+x/50);t.width=(t.width??0)-s-T*3,t.width<kH&&(t.width=kH)}let{shapeSvg:o,bbox:l,label:u}=await rt(e,t,Ze(t)),h=(t.height?t.height:l.height)+s,d=h/2,f=d/(2.5+h/50),p=(t.width?t.width:l.width)+f+s,{cssStyles:m}=t,g;if(t.look==="handDrawn"){let x=Ve.svg(o),b=QRe(0,0,p,h,f,d),T=ZRe(0,0,p,h,f,d),k=x.path(b,je(t,{})),C=x.path(T,je(t,{fill:"none"}));g=o.insert(()=>C,":first-child"),g=o.insert(()=>k,":first-child"),g.attr("class","basic label-container"),m&&g.attr("style",m)}else{let x=XRe(0,0,p,h,f,d);g=o.insert("path",":first-child").attr("d",x).attr("class","basic label-container").attr("style",_r(m)).attr("style",i),g.attr("class","basic label-container outer-path"),m&&g.selectAll("path").attr("style",m),i&&g.selectAll("path").attr("style",i)}return g.attr("label-offset-x",f),g.attr("transform",`translate(${-p/2}, ${h/2} )`),u.attr("transform",`translate(${-(l.width/2)-f-(l.x-(l.left??0))}, ${-(l.height/2)-(l.y-(l.top??0))})`),qe(t,g),t.intersect=function(x){let b=Pe.rect(t,x),T=b.y-(t.y??0);if(d!=0&&(Math.abs(T)<(t.height??0)/2||Math.abs(T)==(t.height??0)/2&&Math.abs(b.x-(t.x??0))>(t.width??0)/2-f)){let k=f*f*(1-T*T/(d*d));k!=0&&(k=Math.sqrt(Math.abs(k))),k=f-k,x.x-(t.x??0)>0&&(k=-k),b.x+=k}return b},o}var XRe,QRe,ZRe,TH,kH,vH=v(()=>{"use strict";yt();xt();Tt();Ct();Et();XRe=a((e,t,r,i,n,s)=>`M${e},${t}
a${n},${s} 0,0,1 0,${-i}
l${r},0
a${n},${s} 0,0,1 0,${i}
M${r},${-i}
a${n},${s} 0,0,0 0,${i}
l${-r},0`,"createCylinderPathD"),QRe=a((e,t,r,i,n,s)=>[`M${e},${t}`,`M${e+r},${t}`,`a${n},${s} 0,0,0 0,${-i}`,`l${-r},0`,`a${n},${s} 0,0,0 0,${i}`,`l${r},0`].join(" "),"createOuterCylinderPathD"),ZRe=a((e,t,r,i,n,s)=>[`M${e+r/2},${-i/2}`,`a${n},${s} 0,0,0 0,${i}`].join(" "),"createInnerCylinderPathD"),TH=5,kH=10;a(CH,"tiltedCylinder")});async function SH(e,t){let{labelStyles:r,nodeStyles:i}=$e(t);t.labelStyle=r;let n=t.padding??0,s=(t.look==="neo",n),o=t.look==="neo"?n*2:n,{shapeSvg:l,bbox:u}=await rt(e,t,Ze(t)),h=(t?.height??u.height)+s,d=(t?.width??u.width)+o,f=[{x:-3*h/6,y:0},{x:d+3*h/6,y:0},{x:d,y:-h},{x:0,y:-h}],p,{cssStyles:m}=t;if(t.look==="handDrawn"){let g=Ve.svg(l),x=je(t,{}),b=Rt(f),T=g.path(b,x);p=l.insert(()=>T,":first-child").attr("transform",`translate(${-d/2}, ${h/2})`),m&&p.attr("style",m)}else p=kn(l,d,h,f);return i&&p.attr("style",i),t.width=d,t.height=h,qe(t,p),t.intersect=function(g){return Pe.polygon(t,f,g)},l}var _H=v(()=>{"use strict";yt();Ct();xt();Tt();vl();a(SH,"trapezoid")});async function wH(e,t){let{labelStyles:r,nodeStyles:i}=$e(t);t.labelStyle=r;let n=t.padding??0,s=t.look==="neo"?16:n,o=t.look==="neo"?12:n,l=15,u=5;(t.width||t.height)&&(t.height=(t.height??0)-o*2,t.height<u&&(t.height=u),t.width=(t.width??0)-s*2,t.width<l&&(t.width=l));let{shapeSvg:h,bbox:d}=await rt(e,t,Ze(t)),f=(t?.width?t?.width:d.width)+s*2,p=(t?.height?t?.height:d.height)+o*2,{cssStyles:m}=t,g=Ve.svg(h),x=je(t,{});t.look!=="handDrawn"&&(x.roughness=0,x.fillStyle="solid");let b=[{x:-f/2*.8,y:-p/2},{x:f/2*.8,y:-p/2},{x:f/2,y:-p/2*.6},{x:f/2,y:p/2},{x:-f/2,y:p/2},{x:-f/2,y:-p/2*.6}],T=Rt(b),k=g.path(T,x),C=h.insert(()=>k,":first-child");return C.attr("class","basic label-container outer-path"),m&&t.look!=="handDrawn"&&C.selectChildren("path").attr("style",m),i&&t.look!=="handDrawn"&&C.selectChildren("path").attr("style",i),qe(t,C),t.intersect=function(S){return Pe.polygon(t,b,S)},h}var EH=v(()=>{"use strict";yt();Ct();xt();Tt();a(wH,"trapezoidalPentagon")});async function LH(e,t){let{labelStyles:r,nodeStyles:i}=$e(t);t.labelStyle=r;let n=t.padding??0,s=t.look==="neo"?n*2:n;(t.width||t.height)&&(t.width=((t?.width??0)-s)/2,t.width<RH&&(t.width=RH),t.height=t?.height??0,t.height<AH&&(t.height=AH));let{shapeSvg:o,bbox:l,label:u}=await rt(e,t,Ze(t)),h=yn(J().flowchart?.htmlLabels),d=(t?.width?t?.width:l.width)+s,f=t?.height?t?.height:d+l.height,p=f,m=[{x:0,y:0},{x:p,y:0},{x:p/2,y:-f}],{cssStyles:g}=t,x=Ve.svg(o),b=je(t,{});t.look!=="handDrawn"&&(b.roughness=0,b.fillStyle="solid");let T=Rt(m),k=x.path(T,b),C=o.insert(()=>k,":first-child").attr("transform",`translate(${-f/2}, ${f/2})`).attr("class","outer-path");return g&&t.look!=="handDrawn"&&C.selectChildren("path").attr("style",g),i&&t.look!=="handDrawn"&&C.selectChildren("path").attr("style",i),t.width=d,t.height=f,qe(t,C),u.attr("transform",`translate(${-l.width/2-(l.x-(l.left??0))}, ${f/2-(l.height+(t.padding??0)/(h?2:1)-(l.y-(l.top??0)))})`),t.intersect=function(S){return W.info("Triangle intersect",t,m,S),Pe.polygon(t,m,S)},o}var AH,RH,DH=v(()=>{"use strict";nt();yt();Ct();xt();Tt();yt();dr();bt();AH=10,RH=10;a(LH,"triangle")});async function IH(e,t){let{labelStyles:r,nodeStyles:i}=$e(t);t.labelStyle=r;let n=t.padding??0,s=t.look==="neo"?16:n,o=t.look==="neo"?12:n,l=!0;(t.width||t.height)&&(l=!1,t.width=(t?.width??0)-s*2,t.width<10&&(t.width=10),t.height=(t?.height??0)-o*2,t.height<10&&(t.height=10));let{shapeSvg:u,bbox:h,label:d}=await rt(e,t,Ze(t)),f=(t?.width?t?.width:h.width)+(s??0)*2,p=(t?.height?t?.height:h.height)+(o??0)*2,m=t.look==="neo"?p/4:p/8,g=p+(l?m:-m),{cssStyles:x}=t,T=14-f,k=T>0?T/2:0,C=Ve.svg(u),S=je(t,{});t.look!=="handDrawn"&&(S.roughness=0,S.fillStyle="solid");let w=[{x:-f/2-k,y:g/2},...Za(-f/2-k,g/2,f/2+k,g/2,m,.8),{x:f/2+k,y:-g/2},{x:-f/2-k,y:-g/2}],_=Rt(w),L=C.path(_,S),I=u.insert(()=>L,":first-child");return I.attr("class","basic label-container outer-path"),x&&t.look!=="handDrawn"&&I.selectAll("path").attr("style",x),i&&t.look!=="handDrawn"&&I.selectAll("path").attr("style",i),I.attr("transform",`translate(0,${-m/2})`),d.attr("transform",`translate(${-f/2+(t.padding??0)-(h.x-(h.left??0))},${-p/2+(t.padding??0)-m-(h.y-(h.top??0))})`),qe(t,I),t.intersect=function(B){return Pe.polygon(t,w,B)},u}var NH=v(()=>{"use strict";yt();Ct();Tt();xt();a(IH,"waveEdgedRectangle")});async function MH(e,t){let{labelStyles:r,nodeStyles:i}=$e(t);t.labelStyle=r;let n=t.padding??0,s=t.look==="neo"?16:n,o=t.look==="neo"?20:n;if(t.width||t.height){t.width=t?.width??0,t.width<20&&(t.width=20),t.height=t?.height??0,t.height<10&&(t.height=10);let S=Math.min(t.height*.2,t.height/4);t.height=Math.ceil(t.height-o-S*(20/9)),t.width=t.width-s*2}let{shapeSvg:l,bbox:u}=await rt(e,t,Ze(t)),h=(t?.width?t?.width:u.width)+s*2,d=(t?.height?t?.height:u.height)+o,f=d/8,p=d+f*2,{cssStyles:m}=t,g=Ve.svg(l),x=je(t,{});t.look!=="handDrawn"&&(x.roughness=0,x.fillStyle="solid");let b=[{x:-h/2,y:p/2},...Za(-h/2,p/2,h/2,p/2,f,1),{x:h/2,y:-p/2},...Za(h/2,-p/2,-h/2,-p/2,f,-1)],T=Rt(b),k=g.path(T,x),C=l.insert(()=>k,":first-child");return C.attr("class","basic label-container"),m&&t.look!=="handDrawn"&&C.selectAll("path").attr("style",m),i&&t.look!=="handDrawn"&&C.selectAll("path").attr("style",i),qe(t,C),t.intersect=function(S){return Pe.polygon(t,b,S)},l}var OH=v(()=>{"use strict";yt();Ct();xt();Tt();a(MH,"waveRectangle")});async function PH(e,t){let{labelStyles:r,nodeStyles:i}=$e(t);t.labelStyle=r;let n=t.look==="neo"?16:t.padding??0,s=t.look==="neo"?12:t.padding??0;(t.width||t.height)&&(t.width=Math.max((t?.width??0)-n*2-fi,10),t.height=Math.max((t?.height??0)-s*2-fi,10));let{shapeSvg:o,bbox:l,label:u}=await rt(e,t,Ze(t)),h=(t?.width?t?.width:l.width)+n*2+fi,d=(t?.height?t?.height:l.height)+s*2+fi,f=h-fi,p=d-fi,m=-f/2,g=-p/2,{cssStyles:x}=t,b=Ve.svg(o),T=je(t,{}),k=[{x:m-fi,y:g-fi},{x:m-fi,y:g+p},{x:m+f,y:g+p},{x:m+f,y:g-fi}],C=`M${m-fi},${g-fi} L${m+f},${g-fi} L${m+f},${g+p} L${m-fi},${g+p} L${m-fi},${g-fi}
M${m-fi},${g} L${m+f},${g}
M${m},${g-fi} L${m},${g+p}`;t.look!=="handDrawn"&&(T.roughness=0,T.fillStyle="solid");let S=b.path(C,T),w=o.insert(()=>S,":first-child");return w.attr("transform",`translate(${fi/2}, ${fi/2})`),w.attr("class","basic label-container outer-path"),x&&t.look!=="handDrawn"&&w.selectAll("path").attr("style",x),i&&t.look!=="handDrawn"&&w.selectAll("path").attr("style",i),u.attr("transform",`translate(${-(l.width/2)+fi/2-(l.x-(l.left??0))}, ${-(l.height/2)+fi/2-(l.y-(l.top??0))})`),qe(t,w),t.intersect=function(_){return Pe.polygon(t,k,_)},o}var fi,BH=v(()=>{"use strict";yt();xt();Tt();Ct();fi=10;a(PH,"windowPane")});async function bR(e,t){let r=t;r.alias&&(t.label=r.alias);let{theme:i,themeVariables:n}=ct(),{rowEven:s,rowOdd:o,nodeBorder:l,borderColorArray:u}=n;if(t.look==="handDrawn"){let{themeVariables:ae}=ct(),{background:X}=ae,de={...t,id:t.id+"-background",domId:(t.domId||t.id)+"-background",look:"default",cssStyles:["stroke: none",`fill: ${X}`]};await bR(e,de)}let h=ct();t.useHtmlLabels=h.htmlLabels;let d=h.er?.diagramPadding??10,f=h.er?.entityPadding??6,{cssStyles:p}=t,{labelStyles:m,nodeStyles:g}=$e(t);if(r.attributes.length===0&&t.label){let ae={rx:0,ry:0,labelPaddingX:d,labelPaddingY:d*1.5,classes:""};Qi(t.label,h)+ae.labelPaddingX*2<h.er.minEntityWidth&&(t.width=h.er.minEntityWidth);let X=await Fs(e,t,ae);if(i!=null&&$H.has(i)){let de=r.colorIndex??0;X.attr("data-color-id",`color-${de%u.length}`)}if(!yn(h.htmlLabels)){let de=X.select("text"),le=de.node()?.getBBox();de.attr("transform",`translate(${-le.width/2}, 0)`)}return X}h.htmlLabels||(d*=1.25,f*=1.25);let x=Ze(t);x||(x="node default");let b=e.insert("g").attr("class",x).attr("id",t.domId||t.id),T=await n0(b,t.label??"",h,0,0,["name"],m);T.height+=f;let k=0,C=[],S=[],w=0,_=0,L=0,I=0,B=!0,G=!0;for(let ae of r.attributes){let X=await n0(b,ae.type,h,0,k,["attribute-type"],m);w=Math.max(w,X.width+d);let de=await n0(b,ae.name,h,0,k,["attribute-name"],m);_=Math.max(_,de.width+d);let le=await n0(b,ae.keys.join(),h,0,k,["attribute-keys"],m);L=Math.max(L,le.width+d);let ge=await n0(b,ae.comment,h,0,k,["attribute-comment"],m);I=Math.max(I,ge.width+d);let he=Math.max(X.height,de.height,le.height,ge.height)+f;S.push({yOffset:k,rowHeight:he}),k+=he}let P=4;L<=d&&(B=!1,L=0,P--),I<=d&&(G=!1,I=0,P--);let F=b.node().getBBox();if(T.width+d*2-(w+_+L+I)>0){let ae=T.width+d*2-(w+_+L+I);w+=ae/P,_+=ae/P,L>0&&(L+=ae/P),I>0&&(I+=ae/P)}let A=w+_+L+I,D=Ve.svg(b),R=je(t,{});t.look!=="handDrawn"&&(R.roughness=0,R.fillStyle="solid");let N=0;S.length>0&&(N=S.reduce((ae,X)=>ae+(X?.rowHeight??0),0));let $=Math.max(F.width+d*2,t?.width||0,A),E=Math.max((N??0)+T.height,t?.height||0),M=-$/2,V=-E/2;if(b.selectAll("g:not(:first-child)").each((ae,X,de)=>{let le=Se(de[X]),ge=le.attr("transform"),he=0,te=0;if(ge){let xe=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(ge);xe&&(he=parseFloat(xe[1]),te=parseFloat(xe[2]),le.attr("class").includes("attribute-name")?he+=w:le.attr("class").includes("attribute-keys")?he+=w+_:le.attr("class").includes("attribute-comment")&&(he+=w+_+L))}le.attr("transform",`translate(${M+d/2+he}, ${te+V+T.height+f/2})`)}),b.select(".name").attr("transform","translate("+-T.width/2+", "+(V+f/2)+")"),i!=null&&$H.has(i)){let ae=r.colorIndex??0;b.attr("data-color-id",`color-${ae%u.length}`)}let O=D.rectangle(M,V,$,E,R),z=b.insert(()=>O,":first-child").attr("class","outer-path").attr("style",p.join(""));C.push(0);for(let[ae,X]of S.entries()){let le=(ae+1)%2===0&&X.yOffset!==0,ge=D.rectangle(M,T.height+V+X?.yOffset,$,X?.rowHeight,{...R,fill:le?s:o,stroke:l});b.insert(()=>ge,"g.label").attr("style",p.join("")).attr("class",`row-rect-${le?"even":"odd"}`)}let U=1e-4,K=a0(M,T.height+V,$+M,T.height+V,U),j=D.polygon(K.map(ae=>[ae.x,ae.y]),R);if(b.insert(()=>j).attr("class","divider"),K=a0(w+M,T.height+V,w+M,E+V,U),j=D.polygon(K.map(ae=>[ae.x,ae.y]),R),b.insert(()=>j).attr("class","divider"),B){let ae=w+_+M;K=a0(ae,T.height+V,ae,E+V,U),j=D.polygon(K.map(X=>[X.x,X.y]),R),b.insert(()=>j).attr("class","divider")}if(G){let ae=w+_+L+M;K=a0(ae,T.height+V,ae,E+V,U),j=D.polygon(K.map(X=>[X.x,X.y]),R),b.insert(()=>j).attr("class","divider")}for(let ae of C){let X=T.height+V+ae;K=a0(M,X,$+M,X,U),j=D.polygon(K.map(de=>[de.x,de.y]),R),b.insert(()=>j).attr("class","divider")}if(qe(t,z),g&&t.look!=="handDrawn")if(i!=null&&JRe.has(i))b.selectAll("path").attr("style",g);else{let X=g.split(";")?.filter(de=>de.includes("stroke"))?.map(de=>`${de}`).join("; ");b.selectAll("path").attr("style",X??""),b.selectAll(".row-rect-even path").attr("style",g)}return t.intersect=function(ae){return Pe.rect(t,ae)},b}async function n0(e,t,r,i=0,n=0,s=[],o=""){let l=e.insert("g").attr("class",`label ${s.join(" ")}`).attr("transform",`translate(${i}, ${n})`).attr("style",o);t!==lo(t)&&(t=lo(t),t=t.replaceAll("<","<").replaceAll(">",">"));let u=l.node().appendChild(await di(l,t,{width:Qi(t,r)+100,style:o,useHtmlLabels:r.htmlLabels},r));if(t.includes("<")||t.includes(">")){let d=u.children[0];for(d.textContent=d.textContent.replaceAll("<","<").replaceAll(">",">");d.childNodes[0];)d=d.childNodes[0],d.textContent=d.textContent.replaceAll("<","<").replaceAll(">",">")}let h=u.getBBox();if(yn(r.htmlLabels)){let d=u.children[0];d.style.textAlign="start";let f=Se(u);h=d.getBoundingClientRect(),f.attr("width",h.width),f.attr("height",h.height)}return h}function a0(e,t,r,i,n){return e===r?[{x:e-n/2,y:t},{x:e+n/2,y:t},{x:r+n/2,y:i},{x:r-n/2,y:i}]:[{x:e,y:t-n/2},{x:e,y:t+n/2},{x:r,y:i+n/2},{x:r,y:i-n/2}]}var $H,JRe,FH=v(()=>{"use strict";yt();Ct();xt();Tt();Nh();Xt();Qa();dr();sr();Et();$H=new Set(["redux-color","redux-dark-color"]),JRe=new Set(["redux","redux-dark","redux-color","redux-dark-color"]);a(bR,"erBox");a(n0,"addText");a(a0,"lineToPolygon")});async function VH(e,t,r,i,n=r.class.padding??12){let s=i?0:3,o=e.insert("g").attr("class",Ze(t)).attr("id",t.domId||t.id),l=null,u=null,h=null,d=null,f=0,p=0,m=0;if(l=o.insert("g").attr("class","annotation-group text"),t.annotations.length>0){let k=t.annotations[0];await _T(l,{text:`\xAB${k}\xBB`},0),f=l.node().getBBox().height}u=o.insert("g").attr("class","label-group text"),await _T(u,t,0,["font-weight: bolder"]);let g=u.node().getBBox();p=g.height,h=o.insert("g").attr("class","members-group text");let x=0;for(let k of t.members){let C=await _T(h,k,x,[k.parseClassifier()]);x+=C+s}m=h.node().getBBox().height,m<=0&&(m=n/2),d=o.insert("g").attr("class","methods-group text");let b=0;for(let k of t.methods){let C=await _T(d,k,b,[k.parseClassifier()]);b+=C+s}let T=o.node().getBBox();if(l!==null){let k=l.node().getBBox();l.attr("transform",`translate(${-k.width/2})`)}return u.attr("transform",`translate(${-g.width/2}, ${f})`),T=o.node().getBBox(),h.attr("transform",`translate(0, ${f+p+n*2})`),T=o.node().getBBox(),d.attr("transform",`translate(0, ${f+p+(m?m+n*4:n*2)})`),T=o.node().getBBox(),{shapeSvg:o,bbox:T}}async function _T(e,t,r,i=[]){let n=e.insert("g").attr("class","label").attr("style",i.join("; ")),s=ct(),o="useHtmlLabels"in t?t.useHtmlLabels:yn(s.htmlLabels)??!0,l="";"text"in t?l=t.text:l=t.label,!o&&l.startsWith("\\")&&(l=l.substring(1)),ii(l)&&(o=!0);let u=await di(n,Lg(Mn(l)),{width:Qi(l,s)+50,classes:"markdown-node-label",useHtmlLabels:o},s),h,d=1;if(o){let f=u.children[0],p=Se(u);d=f.innerHTML.split("<br>").length,f.innerHTML.includes("</math>")&&(d+=f.innerHTML.split("<mrow>").length-1);let m=f.getElementsByTagName("img");if(m){let g=l.replace(/<img[^>]*>/g,"").trim()==="";await Promise.all([...m].map(x=>new Promise(b=>{function T(){if(x.style.display="flex",x.style.flexDirection="column",g){let k=s.fontSize?.toString()??window.getComputedStyle(document.body).fontSize,S=parseInt(k,10)*5+"px";x.style.minWidth=S,x.style.maxWidth=S}else x.style.width="100%";b(x)}a(T,"setupImage"),setTimeout(()=>{x.complete&&T()}),x.addEventListener("error",T),x.addEventListener("load",T)})))}h=f.getBoundingClientRect(),p.attr("width",h.width),p.attr("height",h.height)}else{i.includes("font-weight: bolder")&&Se(u).selectAll("tspan").attr("font-weight",""),d=u.children.length;let f=u.children[0];(u.textContent===""||u.textContent.includes(">"))&&(f.textContent=l[0]+l.substring(1).replaceAll(">",">").replaceAll("<","<").trim(),l[1]===" "&&(f.textContent=f.textContent[0]+" "+f.textContent.substring(1))),f.textContent==="undefined"&&(f.textContent=""),h=u.getBBox()}return n.attr("transform","translate(0,"+(-h.height/(2*d)+r)+")"),h.height}var GH=v(()=>{"use strict";sr();Xt();yt();Et();bt();Qa();dr();a(VH,"textHelper");a(_T,"addText")});async function WH(e,t){let r=J(),{themeVariables:i}=r,{useGradient:n}=i,s=r.class.padding??12,o=s,l=t.useHtmlLabels??yn(r.htmlLabels)??!0,u=t;u.annotations=u.annotations??[],u.members=u.members??[],u.methods=u.methods??[];let{shapeSvg:h,bbox:d}=await VH(e,t,r,l,o),{labelStyles:f,nodeStyles:p}=$e(t);t.labelStyle=f,t.cssStyles=u.styles||"";let m=u.styles?.join(";")||p||"";t.cssStyles||(t.cssStyles=m.replaceAll("!important","").split(";"));let g=u.members.length===0&&u.methods.length===0&&!r.class?.hideEmptyMembersBox,x=Ve.svg(h),b=je(t,{});t.look!=="handDrawn"&&(b.roughness=0,b.fillStyle="solid");let T=Math.max(t.width??0,d.width),k=Math.max(t.height??0,d.height),C=(t.height??0)>d.height;u.members.length===0&&u.methods.length===0?k+=o:u.members.length>0&&u.methods.length===0&&(k+=o*2);let S=-T/2,w=-k/2,_=g?s*2:u.members.length===0&&u.methods.length===0?-s:0;C&&(_=s*2);let L=x.rectangle(S-s,w-s-(g?s:u.members.length===0&&u.methods.length===0?-s/2:0),T+2*s,k+2*s+_,b),I=h.insert(()=>L,":first-child");I.attr("class","basic label-container outer-path");let B=I.node().getBBox(),G=h.select(".annotation-group").node().getBBox().height-(g?s/2:0)||0,P=h.select(".label-group").node().getBBox().height-(g?s/2:0)||0,F=h.select(".members-group").node().getBBox().height-(g?s/2:0)||0,A=(G+P+w+s-(w-s-(g?s:u.members.length===0&&u.methods.length===0?-s/2:0)))/2;if(h.selectAll(".text").each((D,R,N)=>{let $=Se(N[R]),E=$.attr("transform"),M=0;if(E){let U=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(E);U&&(M=parseFloat(U[2]))}let V=M+w+s-(g?s:u.members.length===0&&u.methods.length===0?-s/2:0);if($.attr("class").includes("methods-group")){let z=Math.max(F,o/2);C?V=Math.max(A,G+P+z+w+o*2+s)+o*2:V=G+P+z+w+o*4+s}u.members.length===0&&u.methods.length===0&&r.class?.hideEmptyMembersBox&&(u.annotations.length>0?V=M-o:V=M),l||(V-=4);let O=S;($.attr("class").includes("label-group")||$.attr("class").includes("annotation-group"))&&(O=-$.node()?.getBBox().width/2||0,h.selectAll("text").each(function(z,U,K){window.getComputedStyle(K[U]).textAnchor==="middle"&&(O=0)})),$.attr("transform",`translate(${O}, ${V})`)}),u.members.length>0||u.methods.length>0||g){let D=G+P+w+s,R=x.line(B.x,D,B.x+B.width,D+.001,b);h.insert(()=>R).attr("class",`divider${t.look==="neo"&&!n?" neo-line":""}`).attr("style",m)}if(g||u.members.length>0||u.methods.length>0){let D=G+P+F+w+o*2+s,R=x.line(B.x,C?Math.max(A,D):D,B.x+B.width,(C?Math.max(A,D):D)+.001,b);h.insert(()=>R).attr("class",`divider${t.look==="neo"&&!n?" neo-line":""}`).attr("style",m)}if(u.look!=="handDrawn"&&h.selectAll("path").attr("style",m),I.select(":nth-child(2)").attr("style",m),h.selectAll(".divider").select("path").attr("style",m),t.labelStyle?h.selectAll("span").attr("style",t.labelStyle):h.selectAll("span").attr("style",m),!l){let D=RegExp(/color\s*:\s*([^;]*)/),R=D.exec(m);if(R){let N=R[0].replace("color","fill");h.selectAll("tspan").attr("style",N)}else if(f){let N=D.exec(f);if(N){let $=N[0].replace("color","fill");h.selectAll("tspan").attr("style",$)}}}return qe(t,I),t.intersect=function(D){return Pe.rect(t,D)},h}var zH=v(()=>{"use strict";yt();bt();sr();Tt();xt();Ct();GH();dr();a(WH,"classBox")});async function qH(e,t){let{labelStyles:r,nodeStyles:i}=$e(t);t.labelStyle=r;let n=t,s=t,o=20,l=20,u="verifyMethod"in t,h=Ze(t),{themeVariables:d}=J(),{borderColorArray:f,requirementEdgeLabelBackground:p}=d,m=e.insert("g").attr("class",h).attr("id",t.domId??t.id),g;u?g=await Sl(m,`<<${n.type}>>`,0,t.labelStyle):g=await Sl(m,"<<Element>>",0,t.labelStyle);let x=g,b=await Sl(m,n.name,x,t.labelStyle+"; font-weight: bold;");if(x+=b+l,u){let B=await Sl(m,`${n.requirementId?`ID: ${n.requirementId}`:""}`,x,t.labelStyle);x+=B;let G=await Sl(m,`${n.text?`Text: ${n.text}`:""}`,x,t.labelStyle);x+=G;let P=await Sl(m,`${n.risk?`Risk: ${n.risk}`:""}`,x,t.labelStyle);x+=P,await Sl(m,`${n.verifyMethod?`Verification: ${n.verifyMethod}`:""}`,x,t.labelStyle)}else{let B=await Sl(m,`${s.type?`Type: ${s.type}`:""}`,x,t.labelStyle);x+=B,await Sl(m,`${s.docRef?`Doc Ref: ${s.docRef}`:""}`,x,t.labelStyle)}let T=(m.node()?.getBBox().width??200)+o,k=(m.node()?.getBBox().height??200)+o,C=-T/2,S=-k/2,w=Ve.svg(m),_=je(t,{});t.look!=="handDrawn"&&(_.roughness=0,_.fillStyle="solid");let L=w.rectangle(C,S,T,k,_),I=m.insert(()=>L,":first-child");if(I.attr("class","basic label-container outer-path").attr("style",i),f?.length){let B=t.colorIndex??0;m.attr("data-color-id",`color-${B%f.length}`)}if(m.selectAll(".label").each((B,G,P)=>{let F=Se(P[G]),A=F.attr("transform"),D=0,R=0;if(A){let M=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(A);M&&(D=parseFloat(M[1]),R=parseFloat(M[2]))}let N=R-k/2,$=C+o/2;(G===0||G===1)&&($=D),F.attr("transform",`translate(${$}, ${N+o})`)}),x>g+b+l){let B=S+g+b+l,G;if(t.look==="neo"){let A=[[C,B],[C+T,B],[C+T,B+.001],[C,B+.001]];G=w.polygon(A,_)}else G=w.line(C,B,C+T,B,_);m.insert(()=>G).attr("class","divider")}return qe(t,I),t.intersect=function(B){return Pe.rect(t,B)},i&&t.look!=="handDrawn"&&(p||f?.length)&&m.selectAll("path").attr("style",i),m}async function Sl(e,t,r,i=""){if(t==="")return 0;let n=e.insert("g").attr("class","label").attr("style",i),s=J(),o=s.htmlLabels??!0,l=await di(n,Lg(Mn(t)),{width:Qi(t,s)+50,classes:"markdown-node-label",useHtmlLabels:o,style:i},s),u;if(o){let h=l.children[0],d=Se(l);u=h.getBoundingClientRect(),d.attr("width",u.width),d.attr("height",u.height)}else{let h=l.children[0];for(let d of h.children)i&&d.setAttribute("style",i);u=l.getBBox(),u.height+=6}return n.attr("transform",`translate(${-u.width/2},${-u.height/2+r})`),u.height}var jH=v(()=>{"use strict";yt();Ct();xt();Tt();Et();bt();Qa();sr();a(qH,"requirementBox");a(Sl,"addText")});async function UH(e,t,{config:r}){let{labelStyles:i,nodeStyles:n}=$e(t);t.labelStyle=i||"";let s=10,o=t.width;t.width=(t.width??200)-10;let{shapeSvg:l,bbox:u,label:h}=await rt(e,t,Ze(t)),d=t.padding||10,f="",p;"ticket"in t&&t.ticket&&r?.kanban?.ticketBaseUrl&&(f=r?.kanban?.ticketBaseUrl.replace("#TICKET#",t.ticket),p=l.insert("svg:a",":first-child").attr("class","kanban-ticket-link").attr("xlink:href",f).attr("target","_blank"));let m={useHtmlLabels:t.useHtmlLabels,labelStyle:t.labelStyle||"",width:t.width,img:t.img,padding:t.padding||8,centerLabel:!1},g,x;p?{label:g,bbox:x}=await hT(p,"ticket"in t&&t.ticket||"",m):{label:g,bbox:x}=await hT(l,"ticket"in t&&t.ticket||"",m);let{label:b,bbox:T}=await hT(l,"assigned"in t&&t.assigned||"",m);t.width=o;let k=10,C=t?.width||0,S=Math.max(x.height,T.height)/2,w=Math.max(u.height+k*2,t?.height||0)+S,_=-C/2,L=-w/2;h.attr("transform","translate("+(d-C/2)+", "+(-S-u.height/2)+")"),g.attr("transform","translate("+(d-C/2)+", "+(-S+u.height/2)+")"),b.attr("transform","translate("+(d+C/2-T.width-2*s)+", "+(-S+u.height/2)+")");let I,{rx:B,ry:G}=t,{cssStyles:P}=t;if(t.look==="handDrawn"){let F=Ve.svg(l),A=je(t,{}),D=B||G?F.path(ra(_,L,C,w,B||0),A):F.rectangle(_,L,C,w,A);I=l.insert(()=>D,":first-child"),I.attr("class","basic label-container").attr("style",P||null)}else{I=l.insert("rect",":first-child"),I.attr("class","basic label-container __APA__").attr("style",n).attr("rx",B??5).attr("ry",G??5).attr("x",_).attr("y",L).attr("width",C).attr("height",w);let F="priority"in t&&t.priority;if(F){let A=l.append("line"),D=_+2,R=L+Math.floor((B??0)/2),N=L+w-Math.floor((B??0)/2);A.attr("x1",D).attr("y1",R).attr("x2",D).attr("y2",N).attr("stroke-width","4").attr("stroke",eLe(F))}}return qe(t,I),t.height=w,t.intersect=function(F){return Pe.rect(t,F)},l}var eLe,HH=v(()=>{"use strict";yt();Ct();Ih();xt();Tt();eLe=a(e=>{switch(e){case"Very High":return"red";case"High":return"orange";case"Medium":return null;case"Low":return"blue";case"Very Low":return"lightblue"}},"colorFromPriority");a(UH,"kanbanItem")});async function YH(e,t){let{labelStyles:r,nodeStyles:i}=$e(t);t.labelStyle=r;let{shapeSvg:n,bbox:s,halfPadding:o,label:l}=await rt(e,t,Ze(t)),u=s.width+10*o,h=s.height+8*o,d=.15*u,{cssStyles:f}=t,p=s.width+20,m=s.height+20,g=Math.max(u,p),x=Math.max(h,m);l.attr("transform",`translate(${-s.width/2}, ${-s.height/2})`);let b,T=`M0 0
a${d},${d} 1 0,0 ${g*.25},${-1*x*.1}
a${d},${d} 1 0,0 ${g*.25},0
a${d},${d} 1 0,0 ${g*.25},0
a${d},${d} 1 0,0 ${g*.25},${x*.1}
a${d},${d} 1 0,0 ${g*.15},${x*.33}
a${d*.8},${d*.8} 1 0,0 0,${x*.34}
a${d},${d} 1 0,0 ${-1*g*.15},${x*.33}
a${d},${d} 1 0,0 ${-1*g*.25},${x*.15}
a${d},${d} 1 0,0 ${-1*g*.25},0
a${d},${d} 1 0,0 ${-1*g*.25},0
a${d},${d} 1 0,0 ${-1*g*.25},${-1*x*.15}
a${d},${d} 1 0,0 ${-1*g*.1},${-1*x*.33}
a${d*.8},${d*.8} 1 0,0 0,${-1*x*.34}
a${d},${d} 1 0,0 ${g*.1},${-1*x*.33}
H0 V0 Z`;if(t.look==="handDrawn"){let k=Ve.svg(n),C=je(t,{}),S=k.path(T,C);b=n.insert(()=>S,":first-child"),b.attr("class","basic label-container").attr("style",_r(f))}else b=n.insert("path",":first-child").attr("class","basic label-container").attr("style",i).attr("d",T);return b.attr("transform",`translate(${-g/2}, ${-x/2})`),qe(t,b),t.calcIntersect=function(k,C){return Pe.rect(k,C)},t.intersect=function(k){return W.info("Bang intersect",t,k),Pe.rect(t,k)},n}var KH=v(()=>{"use strict";nt();yt();Ct();xt();Tt();Et();a(YH,"bang")});async function XH(e,t){let{labelStyles:r,nodeStyles:i}=$e(t);t.labelStyle=r;let{shapeSvg:n,bbox:s,halfPadding:o,label:l}=await rt(e,t,Ze(t)),u=s.width+2*o,h=s.height+2*o,d=.15*u,f=.25*u,p=.35*u,m=.2*u,{cssStyles:g}=t,x,b=`M0 0
a${d},${d} 0 0,1 ${u*.25},${-1*u*.1}
a${p},${p} 1 0,1 ${u*.4},${-1*u*.1}
a${f},${f} 1 0,1 ${u*.35},${u*.2}
a${d},${d} 1 0,1 ${u*.15},${h*.35}
a${m},${m} 1 0,1 ${-1*u*.15},${h*.65}
a${f},${d} 1 0,1 ${-1*u*.25},${u*.15}
a${p},${p} 1 0,1 ${-1*u*.5},0
a${d},${d} 1 0,1 ${-1*u*.25},${-1*u*.15}
a${d},${d} 1 0,1 ${-1*u*.1},${-1*h*.35}
a${m},${m} 1 0,1 ${u*.1},${-1*h*.65}
H0 V0 Z`;if(t.look==="handDrawn"){let T=Ve.svg(n),k=je(t,{}),C=T.path(b,k);x=n.insert(()=>C,":first-child"),x.attr("class","basic label-container").attr("style",_r(g))}else x=n.insert("path",":first-child").attr("class","basic label-container").attr("style",i).attr("d",b);return l.attr("transform",`translate(${-s.width/2}, ${-s.height/2})`),x.attr("transform",`translate(${-u/2}, ${-h/2})`),qe(t,x),t.calcIntersect=function(T,k){return Pe.rect(T,k)},t.intersect=function(T){return W.info("Cloud intersect",t,T),Pe.rect(t,T)},n}var QH=v(()=>{"use strict";Tt();nt();Et();Ct();xt();yt();a(XH,"cloud")});async function ZH(e,t){let{labelStyles:r,nodeStyles:i}=$e(t);t.labelStyle=r;let{shapeSvg:n,bbox:s,halfPadding:o,label:l}=await rt(e,t,Ze(t)),u=s.width+8*o,h=s.height+2*o,d=5,f=t.look==="neo"?`
M${-u/2} ${h/2-d}
v${-h+2*d}
q0,-${d} ${d},-${d}
h${u-2*d}
q${d},0 ${d},${d}
v${h-d}
H${-u/2}
Z
`:`
M${-u/2} ${h/2-d}
v${-h+2*d}
q0,-${d} ${d},-${d}
h${u-2*d}
q${d},0 ${d},${d}
v${h-2*d}
q0,${d} ${-d},${d}
h${-(u-2*d)}
q${-d},0 ${-d},${-d}
Z
`;if(!t.domId)throw new Error(`defaultMindmapNode: node "${t.id}" is missing a domId \u2014 was render.ts domId prefixing skipped?`);let p=n.append("path").attr("id",t.domId).attr("class","node-bkg node-"+t.type).attr("style",i).attr("d",f);return n.append("line").attr("class","node-line-").attr("x1",-u/2).attr("y1",h/2).attr("x2",u/2).attr("y2",h/2),l.attr("transform",`translate(${-s.width/2}, ${-s.height/2})`),n.append(()=>l.node()),qe(t,p),t.calcIntersect=function(m,g){return Pe.rect(m,g)},t.intersect=function(m){return Pe.rect(t,m)},n}var JH=v(()=>{"use strict";Ct();xt();yt();a(ZH,"defaultMindmapNode")});async function eY(e,t){let r={padding:t.padding??0};return vT(e,t,r)}var tY=v(()=>{"use strict";yR();a(eY,"mindmapCircle")});function rY(e){return e in TR}var tLe,rLe,TR,kR=v(()=>{"use strict";Sj();Ej();Rj();Dj();yR();Nj();Oj();Bj();Fj();Gj();jj();Hj();Kj();Qj();Jj();iU();aU();oU();cU();hU();fU();mU();yU();bU();kU();vU();_U();EU();RU();DU();OU();BU();FU();GU();zU();jU();HU();KU();QU();JU();tH();iH();aH();oH();cH();hH();fH();mH();yH();bH();vH();_H();EH();DH();NH();OH();BH();FH();zH();jH();HH();KH();QH();JH();tY();tLe=[{semanticName:"Process",name:"Rectangle",shortName:"rect",description:"Standard process shape",aliases:["proc","process","rectangle"],internalAliases:["squareRect"],handler:rH},{semanticName:"Event",name:"Rounded Rectangle",shortName:"rounded",description:"Represents an event",aliases:["event"],internalAliases:["roundedRect"],handler:XU},{semanticName:"Terminal Point",name:"Stadium",shortName:"stadium",description:"Terminal point",aliases:["terminal","pill"],handler:nH},{semanticName:"Subprocess",name:"Framed Rectangle",shortName:"fr-rect",description:"Subprocess",aliases:["subprocess","subproc","framed-rectangle","subroutine"],handler:dH},{semanticName:"Database",name:"Cylinder",shortName:"cyl",description:"Database storage",aliases:["db","database","cylinder"],handler:qj},{semanticName:"Data Store",name:"Data Store",shortName:"datastore",description:"Data flow diagram data store",aliases:["data-store"],handler:Uj},{semanticName:"Start",name:"Circle",shortName:"circle",description:"Starting point",aliases:["circ"],handler:vT},{semanticName:"Bang",name:"Bang",shortName:"bang",description:"Bang",aliases:["bang"],handler:YH},{semanticName:"Cloud",name:"Cloud",shortName:"cloud",description:"cloud",aliases:["cloud"],handler:XH},{semanticName:"Decision",name:"Diamond",shortName:"diam",description:"Decision-making step",aliases:["decision","diamond","question"],handler:qU},{semanticName:"Prepare Conditional",name:"Hexagon",shortName:"hex",description:"Preparation or condition step",aliases:["hexagon","prepare"],handler:lU},{semanticName:"Data Input/Output",name:"Lean Right",shortName:"lean-r",description:"Represents input or output",aliases:["lean-right","in-out"],internalAliases:["lean_right"],handler:AU},{semanticName:"Data Input/Output",name:"Lean Left",shortName:"lean-l",description:"Represents output or input",aliases:["lean-left","out-in"],internalAliases:["lean_left"],handler:wU},{semanticName:"Priority Action",name:"Trapezoid Base Bottom",shortName:"trap-b",description:"Priority action",aliases:["priority","trapezoid-bottom","trapezoid"],handler:SH},{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:CU},{semanticName:"Stop",name:"Double Circle",shortName:"dbl-circ",description:"Represents a stop point",aliases:["double-circle"],internalAliases:["doublecircle"],handler:Xj},{semanticName:"Text Block",name:"Text Block",shortName:"text",description:"Text block",handler:xH},{semanticName:"Card",name:"Notched Rectangle",shortName:"notch-rect",description:"Represents a card",aliases:["card","notched-rectangle"],handler:Aj},{semanticName:"Lined/Shaded Process",name:"Lined Rectangle",shortName:"lin-rect",description:"Lined process shape",aliases:["lined-rectangle","lined-process","lin-proc","shaded-process"],handler:ZU},{semanticName:"Start",name:"Small Circle",shortName:"sm-circ",description:"Small starting point",aliases:["start","small-circle"],internalAliases:["stateStart"],handler:uH},{semanticName:"Stop",name:"Framed Circle",shortName:"fr-circ",description:"Stop point",aliases:["stop","framed-circle"],internalAliases:["stateEnd"],handler:lH},{semanticName:"Fork/Join",name:"Filled Rectangle",shortName:"fork",description:"Fork or join in process flow",aliases:["join"],internalAliases:["forkJoin"],handler:nU},{semanticName:"Collate",name:"Hourglass",shortName:"hourglass",description:"Represents a collate operation",aliases:["hourglass","collate"],handler:uU},{semanticName:"Comment",name:"Curly Brace",shortName:"brace",description:"Adds a comment",aliases:["comment","brace-l"],handler:Mj},{semanticName:"Comment Right",name:"Curly Brace",shortName:"brace-r",description:"Adds a comment",handler:Pj},{semanticName:"Comment with braces on both sides",name:"Curly Braces",shortName:"braces",description:"Adds a comment",handler:$j},{semanticName:"Com Link",name:"Lightning Bolt",shortName:"bolt",description:"Communication link",aliases:["com-link","lightning-bolt"],handler:LU},{semanticName:"Document",name:"Document",shortName:"doc",description:"Represents a document",aliases:["doc","document"],handler:IH},{semanticName:"Delay",name:"Half-Rounded Rectangle",shortName:"delay",description:"Represents a delay",aliases:["half-rounded-rectangle"],handler:sU},{semanticName:"Direct Access Storage",name:"Horizontal Cylinder",shortName:"h-cyl",description:"Direct access storage",aliases:["das","horizontal-cylinder"],handler:CH},{semanticName:"Disk Storage",name:"Lined Cylinder",shortName:"lin-cyl",description:"Disk storage",aliases:["disk","lined-cylinder"],handler:MU},{semanticName:"Display",name:"Curved Trapezoid",shortName:"curv-trap",description:"Represents a display",aliases:["curved-trapezoid","display"],handler:Vj},{semanticName:"Divided Process",name:"Divided Rectangle",shortName:"div-rect",description:"Divided process shape",aliases:["div-proc","divided-rectangle","divided-process"],handler:Yj},{semanticName:"Extract",name:"Triangle",shortName:"tri",description:"Extraction process",aliases:["extract","triangle"],handler:LH},{semanticName:"Internal Storage",name:"Window Pane",shortName:"win-pane",description:"Internal storage",aliases:["internal-storage","window-pane"],handler:PH},{semanticName:"Junction",name:"Filled Circle",shortName:"f-circ",description:"Junction point",aliases:["junction","filled-circle"],handler:Zj},{semanticName:"Loop Limit",name:"Trapezoidal Pentagon",shortName:"notch-pent",description:"Loop limit step",aliases:["loop-limit","notched-pentagon"],handler:wH},{semanticName:"Manual File",name:"Flipped Triangle",shortName:"flip-tri",description:"Manual file operation",aliases:["manual-file","flipped-triangle"],handler:rU},{semanticName:"Manual Input",name:"Sloped Rectangle",shortName:"sl-rect",description:"Manual input step",aliases:["manual-input","sloped-rectangle"],handler:eH},{semanticName:"Multi-Document",name:"Stacked Document",shortName:"docs",description:"Multiple documents",aliases:["documents","st-doc","stacked-document"],handler:VU},{semanticName:"Multi-Process",name:"Stacked Rectangle",shortName:"st-rect",description:"Multiple processes",aliases:["procs","processes","stacked-rectangle"],handler:$U},{semanticName:"Stored Data",name:"Bow Tie Rectangle",shortName:"bow-rect",description:"Stored data",aliases:["stored-data","bow-tie-rectangle"],handler:wj},{semanticName:"Summary",name:"Crossed Circle",shortName:"cross-circ",description:"Summary",aliases:["summary","crossed-circle"],handler:Ij},{semanticName:"Tagged Document",name:"Tagged Document",shortName:"tag-doc",description:"Tagged document",aliases:["tag-doc","tagged-document"],handler:gH},{semanticName:"Tagged Process",name:"Tagged Rectangle",shortName:"tag-rect",description:"Tagged process",aliases:["tagged-rectangle","tag-proc","tagged-process"],handler:pH},{semanticName:"Paper Tape",name:"Flag",shortName:"flag",description:"Paper tape",aliases:["paper-tape"],handler:MH},{semanticName:"Odd",name:"Odd",shortName:"odd",description:"Odd shape",internalAliases:["rect_left_inv_arrow"],handler:UU},{semanticName:"Lined Document",name:"Lined Document",shortName:"lin-doc",description:"Lined document",aliases:["lined-document"],handler:PU}],rLe=a(()=>{let t=[...Object.entries({state:sH,choice:Lj,note:WU,rectWithTitle:YU,labelRect:SU,iconSquare:xU,iconCircle:pU,icon:dU,iconRounded:gU,imageSquare:TU,anchor:vj,kanbanItem:UH,mindmapCircle:eY,defaultMindmapNode:ZH,classBox:WH,erBox:bR,requirementBox:qH}),...tLe.flatMap(r=>[r.shortName,..."aliases"in r?r.aliases:[],..."internalAliases"in r?r.internalAliases:[]].map(n=>[n,r.handler]))];return Object.fromEntries(t)},"generateShapeMap"),TR=rLe();a(rY,"isValidShape")});var iLe,wT,iY=v(()=>{"use strict";sr();Hy();bt();nt();kR();Et();dr();zr();Th();wg();iLe="flowchart-",wT=class{constructor(){this.vertexCounter=0;this.config=J();this.diagramId="";this.vertices=new Map;this.edges=[];this.classes=new Map;this.subGraphs=[];this.subGraphLookup=new Map;this.tooltips=new Map;this.subCount=0;this.firstGraphFlag=!0;this.secCount=-1;this.posCrossRef=[];this.funs=[];this.setAccTitle=Yt;this.setAccDescription=Zt;this.setDiagramTitle=ir;this.getAccTitle=Qt;this.getAccDescription=Jt;this.getDiagramTitle=er;this.funs.push(this.setupToolTips.bind(this)),this.addVertex=this.addVertex.bind(this),this.firstGraph=this.firstGraph.bind(this),this.setDirection=this.setDirection.bind(this),this.addSubGraph=this.addSubGraph.bind(this),this.addLink=this.addLink.bind(this),this.setLink=this.setLink.bind(this),this.updateLink=this.updateLink.bind(this),this.addClass=this.addClass.bind(this),this.setClass=this.setClass.bind(this),this.destructLink=this.destructLink.bind(this),this.setClickEvent=this.setClickEvent.bind(this),this.setTooltip=this.setTooltip.bind(this),this.updateLinkInterpolate=this.updateLinkInterpolate.bind(this),this.setClickFun=this.setClickFun.bind(this),this.bindFunctions=this.bindFunctions.bind(this),this.lex={firstGraph:this.firstGraph.bind(this)},this.clear(),this.setGen("gen-2")}static{a(this,"FlowDB")}sanitizeText(t){return He.sanitizeText(t,this.config)}sanitizeNodeLabelType(t){switch(t){case"markdown":case"string":case"text":return t;default:return"markdown"}}setDiagramId(t){this.diagramId=t}lookUpDomId(t){for(let r of this.vertices.values())if(r.id===t)return this.diagramId?`${this.diagramId}-${r.domId}`:r.domId;return this.diagramId?`${this.diagramId}-${t}`:t}addVertex(t,r,i,n,s,o,l={},u){if(!t||t.trim().length===0)return;let h;if(u!==void 0){let m;u.includes(`
`)?m=u+`
`:m=`{
`+u+`
}`,h=Pc(m,{schema:Oc})}let d=this.edges.find(m=>m.id===t);if(d){let m=h;m?.animate!==void 0&&(d.animate=m.animate),m?.animation!==void 0&&(d.animation=m.animation),m?.curve!==void 0&&(d.interpolate=m.curve);return}let f,p=this.vertices.get(t);if(p===void 0&&(r===void 0&&i===void 0&&n!==void 0&&n!==null&&W.warn(`Style applied to unknown node "${t}". This may indicate a typo. The node will be created automatically.`),p={id:t,labelType:"text",domId:iLe+t+"-"+this.vertexCounter,styles:[],classes:[]},this.vertices.set(t,p)),this.vertexCounter++,r!==void 0?(this.config=J(),f=this.sanitizeText(r.text.trim()),p.labelType=r.type,f.startsWith('"')&&f.endsWith('"')&&(f=f.substring(1,f.length-1)),p.text=f):p.text===void 0&&(p.text=t),i!==void 0&&(p.type=i),n?.forEach(m=>{p.styles.push(m)}),s?.forEach(m=>{p.classes.push(m)}),o!==void 0&&(p.dir=o),p.props===void 0?p.props=l:l!==void 0&&Object.assign(p.props,l),h!==void 0){if(h.shape){if(h.shape!==h.shape.toLowerCase()||h.shape.includes("_"))throw new Error(`No such shape: ${h.shape}. Shape names should be lowercase.`);if(!rY(h.shape))throw new Error(`No such shape: ${h.shape}.`);p.type=h?.shape}h?.label&&(p.text=h?.label,p.labelType=this.sanitizeNodeLabelType(h?.labelType)),h?.icon&&(p.icon=h?.icon,!h.label?.trim()&&p.text===t&&(p.text="")),h?.form&&(p.form=h?.form),h?.pos&&(p.pos=h?.pos),h?.img&&(p.img=h?.img,!h.label?.trim()&&p.text===t&&(p.text="")),h?.constraint&&(p.constraint=h.constraint),h.w&&(p.assetWidth=Number(h.w)),h.h&&(p.assetHeight=Number(h.h))}}addSingleLink(t,r,i,n){let l={start:t,end:r,type:void 0,text:"",labelType:"text",classes:[],isUserDefinedId:!1,interpolate:this.edges.defaultInterpolate};W.info("abc78 Got edge...",l);let u=i.text;if(u!==void 0&&(l.text=this.sanitizeText(u.text.trim()),l.text.startsWith('"')&&l.text.endsWith('"')&&(l.text=l.text.substring(1,l.text.length-1)),l.labelType=this.sanitizeNodeLabelType(u.type)),i!==void 0&&(l.type=i.type,l.stroke=i.stroke,l.length=i.length>10?10:i.length),n&&!this.edges.some(h=>h.id===n))l.id=n,l.isUserDefinedId=!0;else{let h=this.edges.filter(d=>d.start===l.start&&d.end===l.end);h.length===0?l.id=Ic(l.start,l.end,{counter:0,prefix:"L"}):l.id=Ic(l.start,l.end,{counter:h.length+1,prefix:"L"})}if(this.edges.length<(this.config.maxEdges??500))W.info("Pushing edge..."),this.edges.push(l);else throw new Error(`Edge limit exceeded. ${this.edges.length} edges found, but the limit is ${this.config.maxEdges}.
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 have to call mermaid.initialize.`)}isLinkData(t){return t!==null&&typeof t=="object"&&"id"in t&&typeof t.id=="string"}addLink(t,r,i){let n=this.isLinkData(i)?i.id.replace("@",""):void 0;W.info("addLink",t,r,n);for(let s of t)for(let o of r){let l=s===t[t.length-1],u=o===r[0];l&&u?this.addSingleLink(s,o,i,n):this.addSingleLink(s,o,i,void 0)}}updateLinkInterpolate(t,r){t.forEach(i=>{i==="default"?this.edges.defaultInterpolate=r:this.edges[i].interpolate=r})}updateLink(t,r){t.forEach(i=>{if(typeof i=="number"&&i>=this.edges.length)throw new Error(`The index ${i} 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.)`);i==="default"?this.edges.defaultStyle=r:(this.edges[i].style=r,(this.edges[i]?.style?.length??0)>0&&!this.edges[i]?.style?.some(n=>n?.startsWith("fill"))&&this.edges[i]?.style?.push("fill:none"))})}addClass(t,r){let i=r.join().replace(/\\,/g,"\xA7\xA7\xA7").replace(/,/g,";").replace(/§§§/g,",").split(";");t.split(",").forEach(n=>{let s=this.classes.get(n);s===void 0&&(s={id:n,styles:[],textStyles:[]},this.classes.set(n,s)),i?.forEach(o=>{if(/color/.exec(o)){let l=o.replace("fill","bgFill");s.textStyles.push(l)}s.styles.push(o)})})}setDirection(t){this.direction=t.trim(),/.*</.exec(this.direction)&&(this.direction="RL"),/.*\^/.exec(this.direction)&&(this.direction="BT"),/.*>/.exec(this.direction)&&(this.direction="LR"),/.*v/.exec(this.direction)&&(this.direction="TB"),this.direction==="TD"&&(this.direction="TB")}setClass(t,r){for(let i of t.split(",")){let n=this.vertices.get(i);n&&n.classes.push(r);let s=this.edges.find(l=>l.id===i);s&&s.classes.push(r);let o=this.subGraphLookup.get(i);o&&o.classes.push(r)}}setTooltip(t,r){if(r!==void 0){r=this.sanitizeText(r);for(let i of t.split(","))this.tooltips.set(this.version==="gen-1"?this.lookUpDomId(i):i,r)}}setClickFun(t,r,i){if(J().securityLevel!=="loose"||r===void 0)return;let n=[];if(typeof i=="string"){n=i.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let o=0;o<n.length;o++){let l=n[o].trim();l.startsWith('"')&&l.endsWith('"')&&(l=l.substr(1,l.length-2)),n[o]=l}}n.length===0&&n.push(t);let s=this.vertices.get(t);s&&(s.haveCallback=!0,this.funs.push(()=>{let o=this.lookUpDomId(t),l=document.querySelector(`[id="${o}"]`);l!==null&&l.addEventListener("click",()=>{St.runFunc(r,...n)},!1)}))}setLink(t,r,i){t.split(",").forEach(n=>{let s=this.vertices.get(n);s!==void 0&&(s.link=St.formatUrl(r,this.config),s.linkTarget=i)}),this.setClass(t,"clickable")}getTooltip(t){return this.tooltips.get(t)}setClickEvent(t,r,i){t.split(",").forEach(n=>{this.setClickFun(n,r,i)}),this.setClass(t,"clickable")}bindFunctions(t){this.funs.forEach(r=>{r(t)})}getDirection(){return this.direction?.trim()}getVertices(){return this.vertices}getEdges(){return this.edges}getClasses(){return this.classes}setupToolTips(t){let r=S2();Se(t).select("svg").selectAll("g.node").on("mouseover",s=>{let o=Se(s.currentTarget),l=o.attr("title");if(l===null)return;let u=s.currentTarget?.getBoundingClientRect();r.transition().duration(200).style("opacity",".9"),r.text(o.attr("title")).style("left",window.scrollX+u.left+(u.right-u.left)/2+"px").style("top",window.scrollY+u.bottom+"px"),r.html(Ya.sanitize(l)),o.classed("hover",!0)}).on("mouseout",s=>{r.transition().duration(500).style("opacity",0),Se(s.currentTarget).classed("hover",!1)})}clear(t="gen-2"){this.vertices=new Map,this.classes=new Map,this.edges=[],this.funs=[this.setupToolTips.bind(this)],this.diagramId="",this.subGraphs=[],this.subGraphLookup=new Map,this.subCount=0,this.tooltips=new Map,this.firstGraphFlag=!0,this.version=t,this.config=J(),Ht()}setGen(t){this.version=t||"gen-2"}defaultStyle(){return"fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;"}addSubGraph(t,r,i){let n=t.text.trim(),s=i.text;t===i&&/\s/.exec(i.text)&&(n=void 0);let l=a(p=>{let m={boolean:{},number:{},string:{}},g=[],x;return{nodeList:p.filter(function(T){let k=typeof T;return T.stmt&&T.stmt==="dir"?(x=T.value,!1):T.trim()===""?!1:k in m?m[k].hasOwnProperty(T)?!1:m[k][T]=!0:g.includes(T)?!1:g.push(T)}),dir:x}},"uniq")(r.flat()),u=l.nodeList,h=l.dir,d=J().flowchart??{};if(h=h??(d.inheritDir?this.getDirection()??J().direction??void 0:void 0),this.version==="gen-1")for(let p=0;p<u.length;p++)u[p]=this.lookUpDomId(u[p]);n=n??"subGraph"+this.subCount,s=s||"",s=this.sanitizeText(s),this.subCount=this.subCount+1;let f={id:n,nodes:u,title:s.trim(),classes:[],dir:h,labelType:this.sanitizeNodeLabelType(i?.type)};return W.info("Adding",f.id,f.nodes,f.dir),f.nodes=this.makeUniq(f,this.subGraphs).nodes,this.subGraphs.push(f),this.subGraphLookup.set(n,f),n}getPosForId(t){for(let[r,i]of this.subGraphs.entries())if(i.id===t)return r;return-1}indexNodes2(t,r){let i=this.subGraphs[r].nodes;if(this.secCount=this.secCount+1,this.secCount>2e3)return{result:!1,count:0};if(this.posCrossRef[this.secCount]=r,this.subGraphs[r].id===t)return{result:!0,count:0};let n=0,s=1;for(;n<i.length;){let o=this.getPosForId(i[n]);if(o>=0){let l=this.indexNodes2(t,o);if(l.result)return{result:!0,count:s+l.count};s=s+l.count}n=n+1}return{result:!1,count:s}}getDepthFirstPos(t){return this.posCrossRef[t]}indexNodes(){this.secCount=-1,this.subGraphs.length>0&&this.indexNodes2("none",this.subGraphs.length-1)}getSubGraphs(){return this.subGraphs}firstGraph(){return this.firstGraphFlag?(this.firstGraphFlag=!1,!0):!1}destructStartLink(t){let r=t.trim(),i="arrow_open";switch(r[0]){case"<":i="arrow_point",r=r.slice(1);break;case"x":i="arrow_cross",r=r.slice(1);break;case"o":i="arrow_circle",r=r.slice(1);break}let n="normal";return r.includes("=")&&(n="thick"),r.includes(".")&&(n="dotted"),{type:i,stroke:n}}countChar(t,r){let i=r.length,n=0;for(let s=0;s<i;++s)r[s]===t&&++n;return n}destructEndLink(t){let r=t.trim(),i=r.slice(0,-1),n="arrow_open";switch(r.slice(-1)){case"x":n="arrow_cross",r.startsWith("x")&&(n="double_"+n,i=i.slice(1));break;case">":n="arrow_point",r.startsWith("<")&&(n="double_"+n,i=i.slice(1));break;case"o":n="arrow_circle",r.startsWith("o")&&(n="double_"+n,i=i.slice(1));break}let s="normal",o=i.length-1;i.startsWith("=")&&(s="thick"),i.startsWith("~")&&(s="invisible");let l=this.countChar(".",i);return l&&(s="dotted",o=l),{type:n,stroke:s,length:o}}destructLink(t,r){let i=this.destructEndLink(t),n;if(r){if(n=this.destructStartLink(r),n.stroke!==i.stroke)return{type:"INVALID",stroke:"INVALID"};if(n.type==="arrow_open")n.type=i.type;else{if(n.type!==i.type)return{type:"INVALID",stroke:"INVALID"};n.type="double_"+n.type}return n.type==="double_arrow"&&(n.type="double_arrow_point"),n.length=i.length,n}return i}exists(t,r){for(let i of t)if(i.nodes.includes(r))return!0;return!1}makeUniq(t,r){let i=[];return t.nodes.forEach((n,s)=>{this.exists(r,n)||i.push(t.nodes[s])}),{nodes:i}}getTypeFromVertex(t){if(t.img)return"imageSquare";if(t.icon)return t.form==="circle"?"iconCircle":t.form==="square"?"iconSquare":t.form==="rounded"?"iconRounded":"icon";switch(t.type){case"square":case void 0:return"squareRect";case"round":return"roundedRect";case"ellipse":return"ellipse";default:return t.type}}findNode(t,r){return t.find(i=>i.id===r)}destructEdgeType(t){let r="none",i="arrow_point";switch(t){case"arrow_point":case"arrow_circle":case"arrow_cross":i=t;break;case"double_arrow_point":case"double_arrow_circle":case"double_arrow_cross":r=t.replace("double_",""),i=r;break}return{arrowTypeStart:r,arrowTypeEnd:i}}addNodeFromVertex(t,r,i,n,s,o){let l=i.get(t.id),u=n.get(t.id)??!1,h=this.findNode(r,t.id);if(h)h.cssStyles=t.styles,h.cssCompiledStyles=this.getCompiledStyles(t.classes),h.cssClasses=t.classes.join(" ");else{let d={id:t.id,label:t.text,labelType:t.labelType,labelStyle:"",parentId:l,padding:s.flowchart?.padding||8,cssStyles:t.styles,cssCompiledStyles:this.getCompiledStyles(["default","node",...t.classes]),cssClasses:"default "+t.classes.join(" "),dir:t.dir,domId:t.domId,look:o,link:t.link,linkTarget:t.linkTarget,tooltip:this.getTooltip(t.id),icon:t.icon,pos:t.pos,img:t.img,assetWidth:t.assetWidth,assetHeight:t.assetHeight,constraint:t.constraint};u?r.push({...d,isGroup:!0,shape:"rect"}):r.push({...d,isGroup:!1,shape:this.getTypeFromVertex(t)})}}getCompiledStyles(t){let r=[];for(let i of t){let n=this.classes.get(i);n?.styles&&(r=[...r,...n.styles??[]].map(s=>s.trim())),n?.textStyles&&(r=[...r,...n.textStyles??[]].map(s=>s.trim()))}return r}getData(){let t=J(),r=[],i=[],n=this.getSubGraphs(),s=new Map,o=new Map;for(let h=n.length-1;h>=0;h--){let d=n[h];d.nodes.length>0&&o.set(d.id,!0);for(let f of d.nodes)s.set(f,d.id)}for(let h=n.length-1;h>=0;h--){let d=n[h];r.push({id:d.id,label:d.title,labelStyle:"",labelType:d.labelType,parentId:s.get(d.id),padding:8,cssCompiledStyles:this.getCompiledStyles(d.classes),cssClasses:d.classes.join(" "),shape:"rect",dir:d.dir,isGroup:!0,look:t.look})}this.getVertices().forEach(h=>{this.addNodeFromVertex(h,r,s,o,t,t.look||"classic")});let u=this.getEdges();return u.forEach((h,d)=>{let{arrowTypeStart:f,arrowTypeEnd:p}=this.destructEdgeType(h.type),m=[...u.defaultStyle??[]];h.style&&m.push(...h.style);let g={id:Ic(h.start,h.end,{counter:d,prefix:"L"},h.id),isUserDefinedId:h.isUserDefinedId,start:h.start,end:h.end,type:h.type??"normal",label:h.text,labelType:h.labelType,labelpos:"c",thickness:h.stroke,minlen:h.length,classes:h?.stroke==="invisible"?"":"edge-thickness-normal edge-pattern-solid flowchart-link",arrowTypeStart:h?.stroke==="invisible"||h?.type==="arrow_open"?"none":f,arrowTypeEnd:h?.stroke==="invisible"||h?.type==="arrow_open"?"none":p,arrowheadStyle:"fill: #333",cssCompiledStyles:this.getCompiledStyles(h.classes),labelStyle:m,style:m,pattern:h.stroke,look:t.look,animate:h.animate,animation:h.animation,curve:h.interpolate||this.edges.defaultInterpolate||t.flowchart?.curve};i.push(g)}),{nodes:r,edges:i,other:{},config:t}}defaultConfig(){return rb.flowchart}}});var So,hp=v(()=>{"use strict";sr();So=a((e,t)=>{let r;return t==="sandbox"&&(r=Se("#i"+e)),(t==="sandbox"?Se(r.nodes()[0].contentDocument.body):Se("body")).select(`[id="${e}"]`)},"getDiagramElement")});var _l,s0=v(()=>{"use strict";_l=a(({flowchart:e})=>{let t=e?.subGraphTitleMargin?.top??0,r=e?.subGraphTitleMargin?.bottom??0,i=t+r;return{subGraphTitleTopMargin:t,subGraphTitleBottomMargin:r,subGraphTitleTotalMargin:i}},"getSubGraphTitleMargins")});var nY,nLe,aLe,sLe,oLe,lLe,cLe,aY,dp,sY,ET=v(()=>{"use strict";bt();Xt();nt();s0();sr();Tt();Qa();J5();ST();Ih();xt();nY=a(async(e,t)=>{W.info("Creating subgraph rect for ",t.id,t);let r=J(),{themeVariables:i,handDrawnSeed:n}=r,{clusterBkg:s,clusterBorder:o}=i,{labelStyles:l,nodeStyles:u,borderStyles:h,backgroundStyles:d}=$e(t),f=e.insert("g").attr("class","cluster "+t.cssClasses).attr("id",t.domId).attr("data-look",t.look),p=ar(r),m=f.insert("g").attr("class","cluster-label "),g;t.labelType==="markdown"?g=await di(m,t.label,{style:t.labelStyle,useHtmlLabels:p,isNode:!0,width:t.width}):g=await Vs(m,t.label,t.labelStyle||"",!1,!0);let x=g.getBBox();if(ar(r)){let L=g.children[0],I=Se(g);x=L.getBoundingClientRect(),I.attr("width",x.width),I.attr("height",x.height)}let b=t.width<=x.width+t.padding?x.width+t.padding:t.width;t.width<=x.width+t.padding?t.diff=(b-t.width)/2-t.padding:t.diff=-t.padding;let T=t.height,k=t.x-b/2,C=t.y-T/2;W.trace("Data ",t,JSON.stringify(t));let S;if(t.look==="handDrawn"){let L=Ve.svg(f),I=je(t,{roughness:.7,fill:s,stroke:o,fillWeight:3,seed:n}),B=L.path(ra(k,C,b,T,0),I);S=f.insert(()=>(W.debug("Rough node insert CXC",B),B),":first-child"),S.select("path:nth-child(2)").attr("style",h.join(";")),S.select("path").attr("style",d.join(";").replace("fill","stroke"))}else S=f.insert("rect",":first-child"),S.attr("style",u).attr("rx",t.rx).attr("ry",t.ry).attr("x",k).attr("y",C).attr("width",b).attr("height",T);let{subGraphTitleTopMargin:w}=_l(r);if(m.attr("transform",`translate(${t.x-x.width/2}, ${t.y-t.height/2+w})`),l){let L=m.select("span");L&&L.attr("style",l)}let _=S.node().getBBox();return t.offsetX=0,t.width=_.width,t.height=_.height,t.offsetY=x.height-t.padding/2,t.intersect=function(L){return Bc(t,L)},{cluster:f,labelBBox:x}},"rect"),nLe=a((e,t)=>{let r=e.insert("g").attr("class","note-cluster").attr("id",t.domId),i=r.insert("rect",":first-child"),n=0*t.padding,s=n/2;i.attr("rx",t.rx).attr("ry",t.ry).attr("x",t.x-t.width/2-s).attr("y",t.y-t.height/2-s).attr("width",t.width+n).attr("height",t.height+n).attr("fill","none");let o=i.node().getBBox();return t.width=o.width,t.height=o.height,t.intersect=function(l){return Bc(t,l)},{cluster:r,labelBBox:{width:0,height:0}}},"noteGroup"),aLe=a(async(e,t)=>{let r=J(),{themeVariables:i,handDrawnSeed:n}=r,{altBackground:s,compositeBackground:o,compositeTitleBackground:l,nodeBorder:u}=i,h=e.insert("g").attr("class",t.cssClasses).attr("id",t.domId).attr("data-id",t.id).attr("data-look",t.look),d=h.insert("g",":first-child"),f=h.insert("g").attr("class","cluster-label"),p=h.append("rect"),m=await Vs(f,t.label,t.labelStyle,void 0,!0),g=m.getBBox();if(ar(r)){let B=m.children[0],G=Se(m);g=B.getBoundingClientRect(),G.attr("width",g.width),G.attr("height",g.height)}let x=0*t.padding,b=x/2,T=(t.width<=g.width+t.padding?g.width+t.padding:t.width)+x;t.width<=g.width+t.padding?t.diff=(T-t.width)/2-t.padding:t.diff=-t.padding;let k=t.height+x,C=t.height+x-g.height-6,S=t.x-T/2,w=t.y-k/2;t.width=T;let _=t.y-t.height/2-b+g.height+2,L;if(t.look==="handDrawn"){let B=t.cssClasses.includes("statediagram-cluster-alt"),G=Ve.svg(h),P=t.rx||t.ry?G.path(ra(S,w,T,k,10),{roughness:.7,fill:l,fillStyle:"solid",stroke:u,seed:n}):G.rectangle(S,w,T,k,{seed:n});L=h.insert(()=>P,":first-child");let F=G.rectangle(S,_,T,C,{fill:B?s:o,fillStyle:B?"hachure":"solid",stroke:u,seed:n});L=h.insert(()=>P,":first-child"),p=h.insert(()=>F)}else L=d.insert("rect",":first-child"),L.attr("class","outer").attr("x",S).attr("y",w).attr("width",T).attr("height",k).attr("data-look",t.look),p.attr("class","inner").attr("x",S).attr("y",_).attr("width",T).attr("height",C);f.attr("transform",`translate(${t.x-g.width/2}, ${w+1-(ar(r)?0:3)})`);let I=L.node().getBBox();return t.height=I.height,t.offsetX=0,t.offsetY=g.height-t.padding/2,t.labelBBox=g,t.intersect=function(B){return Bc(t,B)},{cluster:h,labelBBox:g}},"roundedWithTitle"),sLe=a(async(e,t)=>{W.info("Creating subgraph rect for ",t.id,t);let r=J(),{themeVariables:i,handDrawnSeed:n}=r,{clusterBkg:s,clusterBorder:o}=i,{labelStyles:l,nodeStyles:u,borderStyles:h,backgroundStyles:d}=$e(t),f=e.insert("g").attr("class","cluster "+t.cssClasses).attr("id",t.domId).attr("data-look",t.look),p=ar(r),m=f.insert("g").attr("class","cluster-label "),g=await di(m,t.label,{style:t.labelStyle,useHtmlLabels:p,isNode:!0,width:t.width}),x=g.getBBox();if(ar(r)){let L=g.children[0],I=Se(g);x=L.getBoundingClientRect(),I.attr("width",x.width),I.attr("height",x.height)}let b=t.width<=x.width+t.padding?x.width+t.padding:t.width;t.width<=x.width+t.padding?t.diff=(b-t.width)/2-t.padding:t.diff=-t.padding;let T=t.height,k=t.x-b/2,C=t.y-T/2;W.trace("Data ",t,JSON.stringify(t));let S;if(t.look==="handDrawn"){let L=Ve.svg(f),I=je(t,{roughness:.7,fill:s,stroke:o,fillWeight:4,seed:n}),B=L.path(ra(k,C,b,T,t.rx),I);S=f.insert(()=>(W.debug("Rough node insert CXC",B),B),":first-child"),S.select("path:nth-child(2)").attr("style",h.join(";")),S.select("path").attr("style",d.join(";").replace("fill","stroke"))}else S=f.insert("rect",":first-child"),S.attr("style",u).attr("rx",t.rx).attr("ry",t.ry).attr("x",k).attr("y",C).attr("width",b).attr("height",T);let{subGraphTitleTopMargin:w}=_l(r);if(m.attr("transform",`translate(${t.x-x.width/2}, ${t.y-t.height/2+w})`),l){let L=m.select("span");L&&L.attr("style",l)}let _=S.node().getBBox();return t.offsetX=0,t.width=_.width,t.height=_.height,t.offsetY=x.height-t.padding/2,t.intersect=function(L){return Bc(t,L)},{cluster:f,labelBBox:x}},"kanbanSection"),oLe=a((e,t)=>{let r=J(),{themeVariables:i,handDrawnSeed:n}=r,{nodeBorder:s}=i,o=e.insert("g").attr("class",t.cssClasses).attr("id",t.domId).attr("data-look",t.look),l=o.insert("g",":first-child"),u=0*t.padding,h=t.width+u;t.diff=-t.padding;let d=t.height+u,f=t.x-h/2,p=t.y-d/2;t.width=h;let m;if(t.look==="handDrawn"){let b=Ve.svg(o).rectangle(f,p,h,d,{fill:"lightgrey",roughness:.5,strokeLineDash:[5],stroke:s,seed:n});m=o.insert(()=>b,":first-child")}else{m=l.insert("rect",":first-child");let x="outer";t.look,x="divider",m.attr("class",x).attr("x",f).attr("y",p).attr("width",h).attr("height",d).attr("data-look",t.look)}let g=m.node().getBBox();return t.height=g.height,t.offsetX=0,t.offsetY=0,t.intersect=function(x){return Bc(t,x)},{cluster:o,labelBBox:{}}},"divider"),lLe=nY,cLe={rect:nY,squareRect:lLe,roundedWithTitle:aLe,noteGroup:nLe,divider:oLe,kanbanSection:sLe},aY=new Map,dp=a(async(e,t)=>{let r=t.shape||"rect",i=await cLe[r](e,t);return aY.set(t.id,i),i},"insertCluster"),sY=a(()=>{aY=new Map},"clear")});var Ja,CR=v(()=>{"use strict";Ja=a((e,t)=>{if(t)return"translate("+-e.width/2+", "+-e.height/2+")";let r=e.x??0,i=e.y??0;return"translate("+-(r+e.width/2)+", "+-(i+e.height/2)+")"},"computeLabelTransform")});function AT(e,t){if(e===void 0||t===void 0)return{angle:0,deltaX:0,deltaY:0};e=ni(e),t=ni(t);let[r,i]=[e.x,e.y],[n,s]=[t.x,t.y],o=n-r,l=s-i;return{angle:Math.atan(l/o),deltaX:o,deltaY:l}}var ln,vR,ni,RT,SR=v(()=>{"use strict";ln={aggregation:17.25,extension:17.25,composition:17.25,dependency:6,lollipop:13.5,arrow_point:4,arrow_barb:0,arrow_barb_neo:5.5},vR={arrow_point:4,arrow_cross:12.5,arrow_circle:12.5};a(AT,"calculateDeltaAndAngle");ni=a(e=>Array.isArray(e)?{x:e[0],y:e[1]}:e,"pointTransformer"),RT=a(e=>({x:a(function(t,r,i){let n=0,s=ni(i[0]).x<ni(i[i.length-1]).x?"left":"right";if(r===0&&Object.hasOwn(ln,e.arrowTypeStart)){let{angle:m,deltaX:g}=AT(i[0],i[1]);n=ln[e.arrowTypeStart]*Math.cos(m)*(g>=0?1:-1)}else if(r===i.length-1&&Object.hasOwn(ln,e.arrowTypeEnd)){let{angle:m,deltaX:g}=AT(i[i.length-1],i[i.length-2]);n=ln[e.arrowTypeEnd]*Math.cos(m)*(g>=0?1:-1)}let o=Math.abs(ni(t).x-ni(i[i.length-1]).x),l=Math.abs(ni(t).y-ni(i[i.length-1]).y),u=Math.abs(ni(t).x-ni(i[0]).x),h=Math.abs(ni(t).y-ni(i[0]).y),d=ln[e.arrowTypeStart],f=ln[e.arrowTypeEnd],p=1;if(o<f&&o>0&&l<f){let m=f+p-o;m*=s==="right"?-1:1,n-=m}if(u<d&&u>0&&h<d){let m=d+p-u;m*=s==="right"?-1:1,n+=m}return ni(t).x+n},"x"),y:a(function(t,r,i){let n=0,s=ni(i[0]).y<ni(i[i.length-1]).y?"down":"up";if(r===0&&Object.hasOwn(ln,e.arrowTypeStart)){let{angle:m,deltaY:g}=AT(i[0],i[1]);n=ln[e.arrowTypeStart]*Math.abs(Math.sin(m))*(g>=0?1:-1)}else if(r===i.length-1&&Object.hasOwn(ln,e.arrowTypeEnd)){let{angle:m,deltaY:g}=AT(i[i.length-1],i[i.length-2]);n=ln[e.arrowTypeEnd]*Math.abs(Math.sin(m))*(g>=0?1:-1)}let o=Math.abs(ni(t).y-ni(i[i.length-1]).y),l=Math.abs(ni(t).x-ni(i[i.length-1]).x),u=Math.abs(ni(t).y-ni(i[0]).y),h=Math.abs(ni(t).x-ni(i[0]).x),d=ln[e.arrowTypeStart],f=ln[e.arrowTypeEnd],p=1;if(o<f&&o>0&&l<f){let m=f+p-o;m*=s==="up"?-1:1,n-=m}if(u<d&&u>0&&h<d){let m=d+p-u;m*=s==="up"?-1:1,n+=m}return ni(t).y+n},"y")}),"getLineFunctionsWithOffset")});var lY,uLe,hLe,oY,cY=v(()=>{"use strict";nt();lY=a((e,t,r,i,n,s=!1,o)=>{t.arrowTypeStart&&oY(e,"start",t.arrowTypeStart,r,i,n,s,o),t.arrowTypeEnd&&oY(e,"end",t.arrowTypeEnd,r,i,n,s,o)},"addEdgeMarkers"),uLe={arrow_cross:{type:"cross",fill:!1},arrow_point:{type:"point",fill:!0},arrow_barb:{type:"barb",fill:!0},arrow_barb_neo:{type:"barb",fill:!0},arrow_circle:{type:"circle",fill:!1},aggregation:{type:"aggregation",fill:!1},extension:{type:"extension",fill:!1},composition:{type:"composition",fill:!0},dependency:{type:"dependency",fill:!0},lollipop:{type:"lollipop",fill:!1},only_one:{type:"onlyOne",fill:!1},zero_or_one:{type:"zeroOrOne",fill:!1},one_or_more:{type:"oneOrMore",fill:!1},zero_or_more:{type:"zeroOrMore",fill:!1},requirement_arrow:{type:"requirement_arrow",fill:!1},requirement_contains:{type:"requirement_contains",fill:!1}},hLe=["cross","point","circle","lollipop","aggregation","extension","composition","dependency","barb"],oY=a((e,t,r,i,n,s,o=!1,l)=>{let u=uLe[r],h=u&&hLe.includes(u.type);if(!u){W.warn(`Unknown arrow type: ${r}`);return}let d=u.type,m=`${n}_${s}-${d}${t==="start"?"Start":"End"}${o&&h?"-margin":""}`;if(l&&l.trim()!==""){let g=l.replace(/[^\dA-Za-z]/g,"_"),x=`${m}_${g}`;if(!document.getElementById(x)){let b=document.getElementById(m);if(b){let T=b.cloneNode(!0);T.id=x,T.querySelectorAll("path, circle, line").forEach(C=>{C.setAttribute("stroke",l),u.fill&&C.setAttribute("fill",l)}),b.parentNode?.appendChild(T)}}e.attr(`marker-${t}`,`url(${i}#${x})`)}else e.attr(`marker-${t}`,`url(${i}#${m})`)},"addEdgeMarker")});function LT(e,t){ar(J())&&e&&(e.style.width=t.length*9+"px",e.style.height="12px")}function mLe(e){let t=[],r=[];for(let i=1;i<e.length-1;i++){let n=e[i-1],s=e[i],o=e[i+1];(n.x===s.x&&s.y===o.y&&Math.abs(s.x-o.x)>5&&Math.abs(s.y-n.y)>5||n.y===s.y&&s.x===o.x&&Math.abs(s.x-n.x)>5&&Math.abs(s.y-o.y)>5)&&(t.push(s),r.push(i))}return{cornerPoints:t,cornerPointPositions:r}}function xLe(e,t){if(e.length<2)return"";let r="",i=e.length,n=1e-5;for(let s=0;s<i;s++){let o=e[s],l=e[s-1],u=e[s+1];if(s===0)r+=`M${o.x},${o.y}`;else if(s===i-1)r+=`L${o.x},${o.y}`;else{let h=o.x-l.x,d=o.y-l.y,f=u.x-o.x,p=u.y-o.y,m=Math.hypot(h,d),g=Math.hypot(f,p);if(m<n||g<n){r+=`L${o.x},${o.y}`;continue}let x=h/m,b=d/m,T=f/g,k=p/g,C=x*T+b*k,S=Math.max(-1,Math.min(1,C)),w=Math.acos(S);if(w<n||Math.abs(Math.PI-w)<n){r+=`L${o.x},${o.y}`;continue}let _=Math.min(t/Math.sin(w/2),m/2,g/2),L=o.x-x*_,I=o.y-b*_,B=o.x+T*_,G=o.y+k*_;r+=`L${L},${I}`,r+=`Q${o.x},${o.y} ${B},${G}`}}return r}function dY(e,t){if(!e||!t)return{angle:0,deltaX:0,deltaY:0};let r=t.x-e.x,i=t.y-e.y;return{angle:Math.atan2(i,r),deltaX:r,deltaY:i}}function bLe(e,t){let r=e.map(n=>({...n}));if(e.length>=2&&ln[t.arrowTypeStart]){let n=ln[t.arrowTypeStart],s=e[0],o=e[1],{angle:l}=dY(s,o),u=n*Math.cos(l),h=n*Math.sin(l);r[0].x=s.x+u,r[0].y=s.y+h}let i=e.length;if(i>=2&&ln[t.arrowTypeEnd]){let n=ln[t.arrowTypeEnd],s=e[i-1],o=e[i-2],{angle:l}=dY(o,s),u=n*Math.cos(l),h=n*Math.sin(l);r[i-1].x=s.x-u,r[i-1].y=s.y-h}return r}var dLe,DT,cn,fY,o0,IT,NT,fLe,pLe,uY,hY,gLe,yLe,MT,_R=v(()=>{"use strict";bt();Xt();nt();Qa();CR();Et();SR();s0();sr();Tt();ST();cY();xt();dLe=a(e=>typeof e=="string"?e:J()?.flowchart?.curve,"resolveEdgeCurveType"),DT=new Map,cn=new Map,fY=a(()=>{DT.clear(),cn.clear()},"clear"),o0=a(e=>e?typeof e=="string"?e:e.reduce((t,r)=>t+";"+r,""):"","getLabelStyles"),IT=a(async(e,t)=>{let r=J(),i=ar(r),{labelStyles:n}=$e(t);t.labelStyle=n;let s=e.insert("g").attr("class","edgeLabel"),o=s.insert("g").attr("class","label").attr("data-id",t.id),l=t.labelType==="markdown",h=await di(e,t.label,{style:o0(t.labelStyle),useHtmlLabels:i,addSvgBackground:!0,isNode:!1,markdown:l,width:l?void 0:void 0},r);o.node().appendChild(h),W.info("abc82",t,t.labelType);let d=h.getBBox(),f=d;if(i){let m=h.children[0],g=Se(h);d=m.getBoundingClientRect(),f=d,g.attr("width",d.width),g.attr("height",d.height)}else{let m=Se(h).select("text").node();m&&typeof m.getBBox=="function"&&(f=m.getBBox())}o.attr("transform",Ja(f,i)),DT.set(t.id,s),t.width=d.width,t.height=d.height;let p;if(t.startLabelLeft){let m=e.insert("g").attr("class","edgeTerminals"),g=m.insert("g").attr("class","inner"),x=await Vs(g,t.startLabelLeft,o0(t.labelStyle)||"",!1,!1);p=x;let b=x.getBBox();if(i){let T=x.children[0],k=Se(x);b=T.getBoundingClientRect(),k.attr("width",b.width),k.attr("height",b.height)}g.attr("transform",Ja(b,i)),cn.get(t.id)||cn.set(t.id,{}),cn.get(t.id).startLeft=m,LT(p,t.startLabelLeft)}if(t.startLabelRight){let m=e.insert("g").attr("class","edgeTerminals"),g=m.insert("g").attr("class","inner"),x=await Vs(g,t.startLabelRight,o0(t.labelStyle)||"",!1,!1);p=x;let b=x.getBBox();if(i){let T=x.children[0],k=Se(x);b=T.getBoundingClientRect(),k.attr("width",b.width),k.attr("height",b.height)}g.attr("transform",Ja(b,i)),cn.get(t.id)||cn.set(t.id,{}),cn.get(t.id).startRight=m,LT(p,t.startLabelRight)}if(t.endLabelLeft){let m=e.insert("g").attr("class","edgeTerminals"),g=m.insert("g").attr("class","inner"),x=await Vs(m,t.endLabelLeft,o0(t.labelStyle)||"",!1,!1);p=x;let b=x.getBBox();if(i){let T=x.children[0],k=Se(x);b=T.getBoundingClientRect(),k.attr("width",b.width),k.attr("height",b.height)}g.attr("transform",Ja(b,i)),cn.get(t.id)||cn.set(t.id,{}),cn.get(t.id).endLeft=m,LT(p,t.endLabelLeft)}if(t.endLabelRight){let m=e.insert("g").attr("class","edgeTerminals"),g=m.insert("g").attr("class","inner"),x=await Vs(m,t.endLabelRight,o0(t.labelStyle)||"",!1,!1);p=x;let b=x.getBBox();if(i){let T=x.children[0],k=Se(x);b=T.getBoundingClientRect(),k.attr("width",b.width),k.attr("height",b.height)}g.attr("transform",Ja(b,i)),cn.get(t.id)||cn.set(t.id,{}),cn.get(t.id).endRight=m,LT(p,t.endLabelRight)}return h},"insertEdgeLabel");a(LT,"setTerminalWidth");NT=a((e,t)=>{W.debug("Moving label abc88 ",e.id,e.label,DT.get(e.id),t);let r=t.updatedPath?t.updatedPath:t.originalPath,i=J(),{subGraphTitleTotalMargin:n}=_l(i);if(e.label){let s=DT.get(e.id),o=e.x,l=e.y;if(r){let u=St.calcLabelPosition(r);W.debug("Moving label "+e.label+" from (",o,",",l,") to (",u.x,",",u.y,") abc88"),t.updatedPath&&(o=u.x,l=u.y)}s.attr("transform",`translate(${o}, ${l+n/2})`)}if(e.startLabelLeft){let s=cn.get(e.id).startLeft,o=e.x,l=e.y;if(r){let u=St.calcTerminalLabelPosition(e.arrowTypeStart?10:0,"start_left",r);o=u.x,l=u.y}s.attr("transform",`translate(${o}, ${l})`)}if(e.startLabelRight){let s=cn.get(e.id).startRight,o=e.x,l=e.y;if(r){let u=St.calcTerminalLabelPosition(e.arrowTypeStart?10:0,"start_right",r);o=u.x,l=u.y}s.attr("transform",`translate(${o}, ${l})`)}if(e.endLabelLeft){let s=cn.get(e.id).endLeft,o=e.x,l=e.y;if(r){let u=St.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,"end_left",r);o=u.x,l=u.y}s.attr("transform",`translate(${o}, ${l})`)}if(e.endLabelRight){let s=cn.get(e.id).endRight,o=e.x,l=e.y;if(r){let u=St.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,"end_right",r);o=u.x,l=u.y}s.attr("transform",`translate(${o}, ${l})`)}},"positionEdgeLabel"),fLe=a((e,t)=>{let r=e.x,i=e.y,n=Math.abs(t.x-r),s=Math.abs(t.y-i),o=e.width/2,l=e.height/2;return n>=o||s>=l},"outsideNode"),pLe=a((e,t,r)=>{W.debug(`intersection calc abc89:
outsidePoint: ${JSON.stringify(t)}
insidePoint : ${JSON.stringify(r)}
node : x:${e.x} y:${e.y} w:${e.width} h:${e.height}`);let i=e.x,n=e.y,s=Math.abs(i-r.x),o=e.width/2,l=r.x<t.x?o-s:o+s,u=e.height/2,h=Math.abs(t.y-r.y),d=Math.abs(t.x-r.x);if(Math.abs(n-t.y)*o>Math.abs(i-t.x)*u){let f=r.y<t.y?t.y-u-n:n-u-t.y;l=d*f/h;let p={x:r.x<t.x?r.x+l:r.x-d+l,y:r.y<t.y?r.y+h-f:r.y-h+f};return l===0&&(p.x=t.x,p.y=t.y),d===0&&(p.x=t.x),h===0&&(p.y=t.y),W.debug(`abc89 top/bottom calc, Q ${h}, q ${f}, R ${d}, r ${l}`,p),p}else{r.x<t.x?l=t.x-o-i:l=i-o-t.x;let f=h*l/d,p=r.x<t.x?r.x+d-l:r.x-d+l,m=r.y<t.y?r.y+f:r.y-f;return W.debug(`sides calc abc89, Q ${h}, q ${f}, R ${d}, r ${l}`,{_x:p,_y:m}),l===0&&(p=t.x,m=t.y),d===0&&(p=t.x),h===0&&(m=t.y),{x:p,y:m}}},"intersection"),uY=a((e,t)=>{W.warn("abc88 cutPathAtIntersect",e,t);let r=[],i=e[0],n=!1;return e.forEach(s=>{if(W.info("abc88 checking point",s,t),!fLe(t,s)&&!n){let o=pLe(t,i,s);W.debug("abc88 inside",s,i,o),W.debug("abc88 intersection",o,t);let l=!1;r.forEach(u=>{l=l||u.x===o.x&&u.y===o.y}),r.some(u=>u.x===o.x&&u.y===o.y)?W.warn("abc88 no intersect",o,r):r.push(o),n=!0}else W.warn("abc88 outside",s,i),i=s,n||r.push(s)}),W.debug("returning points",r),r},"cutPathAtIntersect");a(mLe,"extractCornerPoints");hY=a(function(e,t,r){let i=t.x-e.x,n=t.y-e.y,s=Math.sqrt(i*i+n*n),o=r/s;return{x:t.x-o*i,y:t.y-o*n}},"findAdjacentPoint"),gLe=a(function(e){let{cornerPointPositions:t}=mLe(e),r=[];for(let i=0;i<e.length;i++)if(t.includes(i)){let n=e[i-1],s=e[i+1],o=e[i],l=hY(n,o,5),u=hY(s,o,5),h=u.x-l.x,d=u.y-l.y;r.push(l);let f=Math.sqrt(2)*2,p={x:o.x,y:o.y};if(Math.abs(s.x-n.x)>10&&Math.abs(s.y-n.y)>=10){W.debug("Corner point fixing",Math.abs(s.x-n.x),Math.abs(s.y-n.y));let m=5;o.x===l.x?p={x:h<0?l.x-m+f:l.x+m-f,y:d<0?l.y-f:l.y+f}:p={x:h<0?l.x-f:l.x+f,y:d<0?l.y-m+f:l.y+m-f}}else W.debug("Corner point skipping fixing",Math.abs(s.x-n.x),Math.abs(s.y-n.y));r.push(p,u)}else r.push(e[i]);return r},"fixCorners"),yLe=a((e,t,r)=>{let i=e-t-r,n=2,s=2,o=n+s,l=Math.floor(i/o),u=Array(l).fill(`${n} ${s}`).join(" ");return`0 ${t} ${u} ${r}`},"generateDashArray"),MT=a(function(e,t,r,i,n,s,o,l=!1){if(!o)throw new Error(`insertEdge: missing diagramId for edge "${t.id}" \u2014 edge IDs require a diagram prefix for uniqueness`);let{handDrawnSeed:u}=J(),h=t.points,d=!1,f=n;var p=s;let m=[];for(let $ in t.cssCompiledStyles)Jy($)||m.push(t.cssCompiledStyles[$]);W.debug("UIO intersect check",t.points,p.x,f.x),p.intersect&&f.intersect&&!l&&(h=h.slice(1,t.points.length-1),h.unshift(f.intersect(h[0])),W.debug("Last point UIO",t.start,"-->",t.end,h[h.length-1],p,p.intersect(h[h.length-1])),h.push(p.intersect(h[h.length-1])));let g=btoa(JSON.stringify(h));t.toCluster&&(W.info("to cluster abc88",r.get(t.toCluster)),h=uY(t.points,r.get(t.toCluster).node),d=!0),t.fromCluster&&(W.debug("from cluster abc88",r.get(t.fromCluster),JSON.stringify(h,null,2)),h=uY(h.reverse(),r.get(t.fromCluster).node).reverse(),d=!0);let x=h.filter($=>!Number.isNaN($.y)),b=dLe(t.curve);b!=="rounded"&&(x=gLe(x));let T=To;switch(b){case"linear":T=To;break;case"basis":T=Ps;break;case"cardinal":T=Ty;break;case"bumpX":T=my;break;case"bumpY":T=gy;break;case"catmullRom":T=vy;break;case"monotoneX":T=Sy;break;case"monotoneY":T=_y;break;case"natural":T=Zf;break;case"step":T=Jf;break;case"stepAfter":T=Ey;break;case"stepBefore":T=wy;break;case"rounded":T=To;break;default:T=Ps}let{x:k,y:C}=RT(t),S=Os().x(k).y(C).curve(T),w;switch(t.thickness){case"normal":w="edge-thickness-normal";break;case"thick":w="edge-thickness-thick";break;case"invisible":w="edge-thickness-invisible";break;default:w="edge-thickness-normal"}switch(t.pattern){case"solid":w+=" edge-pattern-solid";break;case"dotted":w+=" edge-pattern-dotted";break;case"dashed":w+=" edge-pattern-dashed";break;default:w+=" edge-pattern-solid"}let _,L=b==="rounded"?xLe(bLe(x,t),5):S(x),I=Array.isArray(t.style)?t.style:[t.style],B=I.find($=>$?.startsWith("stroke:")),G="";t.animate&&(G="edge-animation-fast"),t.animation&&(G="edge-animation-"+t.animation);let P=!1;if(t.look==="handDrawn"){let $=Ve.svg(e);Object.assign([],x);let E=$.path(L,{roughness:.3,seed:u});w+=" transition",_=Se(E).select("path").attr("id",`${o}-${t.id}`).attr("class"," "+w+(t.classes?" "+t.classes:"")+(G?" "+G:"")).attr("style",I?I.reduce((V,O)=>V+";"+O,""):"");let M=_.attr("d");_.attr("d",M),e.node().appendChild(_.node())}else{let $=m.join(";"),E=I?I.reduce((K,j)=>K+j+";",""):"",M=($?$+";"+E+";":E)+";"+(I?I.reduce((K,j)=>K+";"+j,""):"");_=e.append("path").attr("d",L).attr("id",`${o}-${t.id}`).attr("class"," "+w+(t.classes?" "+t.classes:"")+(G?" "+G:"")).attr("style",M),B=M.match(/stroke:([^;]+)/)?.[1],P=t.animate===!0||!!t.animation||$.includes("animation");let V=_.node(),O=typeof V.getTotalLength=="function"?V.getTotalLength():0,z=vR[t.arrowTypeStart]||0,U=vR[t.arrowTypeEnd]||0;if(t.look==="neo"&&!P){let j=`stroke-dasharray: ${t.pattern==="dotted"||t.pattern==="dashed"?yLe(O,z,U):`0 ${z} ${O-z-U} ${U}`}; stroke-dashoffset: 0;`;_.attr("style",j+_.attr("style"))}}_.attr("data-edge",!0),_.attr("data-et","edge"),_.attr("data-id",t.id),_.attr("data-points",g),_.attr("data-look",_r(t.look)),t.showPoints&&x.forEach($=>{e.append("circle").style("stroke","red").style("fill","red").attr("r",1).attr("cx",$.x).attr("cy",$.y)});let F="";(J().flowchart.arrowMarkerAbsolute||J().state.arrowMarkerAbsolute)&&(F=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,F=F.replace(/\(/g,"\\(").replace(/\)/g,"\\)")),W.info("arrowTypeStart",t.arrowTypeStart),W.info("arrowTypeEnd",t.arrowTypeEnd);let A=!P&&t?.look==="neo";lY(_,t,F,o,i,A,B);let D=Math.floor(h.length/2),R=h[D];St.isLabelCoordinateInPath(R,_.attr("d"))||(d=!0);let N={};return d&&(N.updatedPath=h),N.originalPath=t.points,N},"insertEdge");a(xLe,"generateRoundedPath");a(dY,"calculateDeltaAndAngle");a(bLe,"applyMarkerOffsetsToPoints")});var TLe,kLe,CLe,vLe,SLe,_Le,wLe,ELe,ALe,RLe,LLe,DLe,ILe,NLe,MLe,OLe,PLe,BLe,$Le,FLe,VLe,GLe,WLe,zLe,OT,wR=v(()=>{"use strict";nt();Xt();TLe=a((e,t,r,i)=>{t.forEach(n=>{zLe[n](e,r,i)})},"insertMarkers"),kLe=a((e,t,r)=>{W.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",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").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"),e.append("marker").attr("id",r+"_"+t+"-extensionStart-margin").attr("class","marker extension "+t).attr("refX",18).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").attr("viewBox","0 0 20 14").append("polygon").attr("points","10,7 18,13 18,1").style("stroke-width",2).style("stroke-dasharray","0"),e.append("defs").append("marker").attr("id",r+"_"+t+"-extensionEnd-margin").attr("class","marker extension "+t).attr("refX",9).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").attr("viewBox","0 0 20 14").append("polygon").attr("points","10,1 10,13 18,7").style("stroke-width",2).style("stroke-dasharray","0")},"extension"),CLe=a((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"),e.append("defs").append("marker").attr("id",r+"_"+t+"-compositionStart-margin").attr("class","marker composition "+t).attr("refX",15).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("viewBox","0 0 15 15").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-compositionEnd-margin").attr("class","marker composition "+t).attr("refX",3.5).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"composition"),vLe=a((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"),e.append("defs").append("marker").attr("id",r+"_"+t+"-aggregationStart-margin").attr("class","marker aggregation "+t).attr("refX",15).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",2).attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-aggregationEnd-margin").attr("class","marker aggregation "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",2).attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"aggregation"),SLe=a((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"),e.append("defs").append("marker").attr("id",r+"_"+t+"-dependencyStart-margin").attr("class","marker dependency "+t).attr("refX",4).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-dependencyEnd-margin").attr("class","marker dependency "+t).attr("refX",16).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},"dependency"),_Le=a((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("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("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),e.append("defs").append("marker").attr("id",r+"_"+t+"-lollipopStart-margin").attr("class","marker lollipop "+t).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6).attr("stroke-width",2),e.append("defs").append("marker").attr("id",r+"_"+t+"-lollipopEnd-margin").attr("class","marker lollipop "+t).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6).attr("stroke-width",2)},"lollipop"),wLe=a((e,t,r)=>{e.append("marker").attr("id",r+"_"+t+"-pointEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),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",8).attr("markerHeight",8).attr("orient","auto").append("path").attr("d","M 0 5 L 10 10 L 10 0 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),e.append("marker").attr("id",r+"_"+t+"-pointEnd-margin").attr("class","marker "+t).attr("viewBox","0 0 11.5 14").attr("refX",11.5).attr("refY",7).attr("markerUnits","userSpaceOnUse").attr("markerWidth",10.5).attr("markerHeight",14).attr("orient","auto").append("path").attr("d","M 0 0 L 11.5 7 L 0 14 z").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0"),e.append("marker").attr("id",r+"_"+t+"-pointStart-margin").attr("class","marker "+t).attr("viewBox","0 0 11.5 14").attr("refX",1).attr("refY",7).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11.5).attr("markerHeight",14).attr("orient","auto").append("polygon").attr("points","0,7 11.5,14 11.5,0").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0")},"point"),ELe=a((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"),e.append("marker").attr("id",r+"_"+t+"-circleEnd-margin").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refY",5).attr("refX",12.25).attr("markerUnits","userSpaceOnUse").attr("markerWidth",14).attr("markerHeight",14).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0"),e.append("marker").attr("id",r+"_"+t+"-circleStart-margin").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",-2).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",14).attr("markerHeight",14).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0")},"circle"),ALe=a((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"),e.append("marker").attr("id",r+"_"+t+"-crossStart").attr("class","marker cross "+t).attr("viewBox","0 0 11 11").attr("refX",-1).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),e.append("marker").attr("id",r+"_"+t+"-crossEnd-margin").attr("class","marker cross "+t).attr("viewBox","0 0 15 15").attr("refX",17.7).attr("refY",7.5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 1,1 L 14,14 M 1,14 L 14,1").attr("class","arrowMarkerPath").style("stroke-width",2.5),e.append("marker").attr("id",r+"_"+t+"-crossStart-margin").attr("class","marker cross "+t).attr("viewBox","0 0 15 15").attr("refX",-3.5).attr("refY",7.5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 1,1 L 14,14 M 1,14 L 14,1").attr("class","arrowMarkerPath").style("stroke-width",2.5).style("stroke-dasharray","1,0")},"cross"),RLe=a((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},"barb"),LLe=a((e,t,r)=>{let i=ct(),{themeVariables:n}=i,{transitionColor:s}=n;e.append("defs").append("marker").attr("id",r+"_"+t+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","strokeWidth").attr("orient","auto").append("path").attr("d","M 19,7 L11,14 L13,7 L11,0 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-barbEnd-margin").attr("refX",17).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M 19,7 L11,14 L13,7 L11,0 Z").attr("fill",`${s}`)},"barbNeo"),DLe=a((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-onlyOneStart").attr("class","marker onlyOne "+t).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("d","M9,0 L9,18 M15,0 L15,18"),e.append("defs").append("marker").attr("id",r+"_"+t+"-onlyOneEnd").attr("class","marker onlyOne "+t).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("d","M3,0 L3,18 M9,0 L9,18")},"only_one"),ILe=a((e,t,r)=>{let i=e.append("defs").append("marker").attr("id",r+"_"+t+"-zeroOrOneStart").attr("class","marker zeroOrOne "+t).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");i.append("circle").attr("fill","white").attr("cx",21).attr("cy",9).attr("r",6),i.append("path").attr("d","M9,0 L9,18");let n=e.append("defs").append("marker").attr("id",r+"_"+t+"-zeroOrOneEnd").attr("class","marker zeroOrOne "+t).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");n.append("circle").attr("fill","white").attr("cx",9).attr("cy",9).attr("r",6),n.append("path").attr("d","M21,0 L21,18")},"zero_or_one"),NLe=a((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-oneOrMoreStart").attr("class","marker oneOrMore "+t).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27"),e.append("defs").append("marker").attr("id",r+"_"+t+"-oneOrMoreEnd").attr("class","marker oneOrMore "+t).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18")},"one_or_more"),MLe=a((e,t,r)=>{let i=e.append("defs").append("marker").attr("id",r+"_"+t+"-zeroOrMoreStart").attr("class","marker zeroOrMore "+t).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");i.append("circle").attr("fill","white").attr("cx",48).attr("cy",18).attr("r",6),i.append("path").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18");let n=e.append("defs").append("marker").attr("id",r+"_"+t+"-zeroOrMoreEnd").attr("class","marker zeroOrMore "+t).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");n.append("circle").attr("fill","white").attr("cx",9).attr("cy",18).attr("r",6),n.append("path").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18")},"zero_or_more"),OLe=a((e,t,r)=>{let i=ct(),{themeVariables:n}=i,{strokeWidth:s}=n;e.append("defs").append("marker").attr("id",r+"_"+t+"-onlyOneStart").attr("class","marker onlyOne "+t).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M9,0 L9,18 M15,0 L15,18").attr("stroke-width",`${s}`),e.append("defs").append("marker").attr("id",r+"_"+t+"-onlyOneEnd").attr("class","marker onlyOne "+t).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M3,0 L3,18 M9,0 L9,18").attr("stroke-width",`${s}`)},"only_one_neo"),PLe=a((e,t,r)=>{let i=ct(),{themeVariables:n}=i,{strokeWidth:s,mainBkg:o}=n,l=e.append("defs").append("marker").attr("id",r+"_"+t+"-zeroOrOneStart").attr("class","marker zeroOrOne "+t).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto").attr("markerUnits","userSpaceOnUse");l.append("circle").attr("fill",o??"white").attr("cx",21).attr("cy",9).attr("stroke-width",`${s}`).attr("r",6),l.append("path").attr("d","M9,0 L9,18").attr("stroke-width",`${s}`);let u=e.append("defs").append("marker").attr("id",r+"_"+t+"-zeroOrOneEnd").attr("class","marker zeroOrOne "+t).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("markerUnits","userSpaceOnUse").attr("orient","auto");u.append("circle").attr("fill",o??"white").attr("cx",9).attr("cy",9).attr("stroke-width",`${s}`).attr("r",6),u.append("path").attr("d","M21,0 L21,18").attr("stroke-width",`${s}`)},"zero_or_one_neo"),BLe=a((e,t,r)=>{let i=ct(),{themeVariables:n}=i,{strokeWidth:s}=n;e.append("defs").append("marker").attr("id",r+"_"+t+"-oneOrMoreStart").attr("class","marker oneOrMore "+t).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27").attr("stroke-width",`${s}`),e.append("defs").append("marker").attr("id",r+"_"+t+"-oneOrMoreEnd").attr("class","marker oneOrMore "+t).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18").attr("stroke-width",`${s}`)},"one_or_more_neo"),$Le=a((e,t,r)=>{let i=ct(),{themeVariables:n}=i,{strokeWidth:s,mainBkg:o}=n,l=e.append("defs").append("marker").attr("id",r+"_"+t+"-zeroOrMoreStart").attr("class","marker zeroOrMore "+t).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("markerUnits","userSpaceOnUse").attr("orient","auto");l.append("circle").attr("fill",o??"white").attr("cx",45.5).attr("cy",18).attr("r",6).attr("stroke-width",`${s}`),l.append("path").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18").attr("stroke-width",`${s}`);let u=e.append("defs").append("marker").attr("id",r+"_"+t+"-zeroOrMoreEnd").attr("class","marker zeroOrMore "+t).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto").attr("markerUnits","userSpaceOnUse");u.append("circle").attr("fill",o??"white").attr("cx",11).attr("cy",18).attr("r",6).attr("stroke-width",`${s}`),u.append("path").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18").attr("stroke-width",`${s}`)},"zero_or_more_neo"),FLe=a((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-requirement_arrowEnd").attr("refX",20).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("path").attr("d",`M0,0
L20,10
M20,10
L0,20`)},"requirement_arrow"),VLe=a((e,t,r)=>{let i=ct(),{themeVariables:n}=i,{strokeWidth:s}=n;e.append("defs").append("marker").attr("id",r+"_"+t+"-requirement_arrowEnd").attr("refX",20).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").attr("markerUnits","userSpaceOnUse").attr("stroke-width",`${s}`).attr("viewBox","0 0 25 20").append("path").attr("d",`M0,0
L20,10
M20,10
L0,20`).attr("stroke-linejoin","miter")},"requirement_arrow_neo"),GLe=a((e,t,r)=>{let i=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");i.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),i.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),i.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10)},"requirement_contains"),WLe=a((e,t,r)=>{let i=ct(),{themeVariables:n}=i,{strokeWidth:s}=n,o=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").attr("markerUnits","userSpaceOnUse").append("g");o.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),o.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),o.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10),o.selectAll("*").attr("stroke-width",`${s}`)},"requirement_contains_neo"),zLe={extension:kLe,composition:CLe,aggregation:vLe,dependency:SLe,lollipop:_Le,point:wLe,circle:ELe,cross:ALe,barb:RLe,barbNeo:LLe,only_one:DLe,zero_or_one:ILe,one_or_more:NLe,zero_or_more:MLe,only_one_neo:OLe,zero_or_one_neo:PLe,one_or_more_neo:BLe,zero_or_more_neo:$Le,requirement_arrow:FLe,requirement_contains:GLe,requirement_arrow_neo:VLe,requirement_contains_neo:WLe},OT=TLe});async function fp(e,t,r){let i,n;t.shape==="rect"&&(t.rx&&t.ry?t.shape="roundedRect":t.shape="squareRect");let s=t.shape?TR[t.shape]:void 0;if(!s)throw new Error(`No such shape: ${t.shape}. Please check your syntax.`);if(t.link){let o;r.config.securityLevel==="sandbox"?o="_top":t.linkTarget&&(o=t.linkTarget||"_blank"),i=e.insert("svg:a").attr("xlink:href",t.link).attr("target",o??null),n=await s(i,t,r)}else n=await s(e,t,r),i=n;return i.attr("data-look",_r(t.look)),t.tooltip&&n.attr("title",t.tooltip),PT.set(t.id,i),t.haveCallback&&i.attr("class",i.attr("class")+" clickable"),i}var PT,pY,mY,l0,BT=v(()=>{"use strict";nt();kR();Et();PT=new Map;a(fp,"insertNode");pY=a((e,t)=>{PT.set(t.id,e)},"setNodeElem"),mY=a(()=>{PT.clear()},"clear"),l0=a(e=>{let t=PT.get(e.id);W.trace("Transforming node",e.diff,e,"translate("+(e.x-e.width/2-5)+", "+e.width/2+")");let r=8,i=e.diff||0;return e.clusterNode?t.attr("transform","translate("+(e.x+i-e.width/2)+", "+(e.y-e.height/2-r)+")"):t.attr("transform","translate("+e.x+", "+e.y+")"),i},"positionNode")});var gY,yY=v(()=>{"use strict";Xt();dr();nt();ET();_R();wR();BT();yt();Et();gY={common:He,getConfig:ct,insertCluster:dp,insertEdge:MT,insertEdgeLabel:IT,insertMarkers:OT,insertNode:fp,interpolateToCurve:f5,labelHelper:rt,log:W,positionEdgeLabel:NT}});var qLe,$T,ER=v(()=>{"use strict";qLe=typeof global=="object"&&global&&global.Object===Object&&global,$T=qLe});var jLe,ULe,pi,es=v(()=>{"use strict";ER();jLe=typeof self=="object"&&self&&self.Object===Object&&self,ULe=$T||jLe||Function("return this")(),pi=ULe});var HLe,Zi,Oh=v(()=>{"use strict";es();HLe=pi.Symbol,Zi=HLe});function XLe(e){var t=YLe.call(e,c0),r=e[c0];try{e[c0]=void 0;var i=!0}catch{}var n=KLe.call(e);return i&&(t?e[c0]=r:delete e[c0]),n}var xY,YLe,KLe,c0,bY,TY=v(()=>{"use strict";Oh();xY=Object.prototype,YLe=xY.hasOwnProperty,KLe=xY.toString,c0=Zi?Zi.toStringTag:void 0;a(XLe,"getRawTag");bY=XLe});function JLe(e){return ZLe.call(e)}var QLe,ZLe,kY,CY=v(()=>{"use strict";QLe=Object.prototype,ZLe=QLe.toString;a(JLe,"objectToString");kY=JLe});function rDe(e){return e==null?e===void 0?tDe:eDe:vY&&vY in Object(e)?bY(e):kY(e)}var eDe,tDe,vY,Pn,Gc=v(()=>{"use strict";Oh();TY();CY();eDe="[object Null]",tDe="[object Undefined]",vY=Zi?Zi.toStringTag:void 0;a(rDe,"baseGetTag");Pn=rDe});function iDe(e){return e!=null&&typeof e=="object"}var ki,Gs=v(()=>{"use strict";a(iDe,"isObjectLike");ki=iDe});function aDe(e){return typeof e=="symbol"||ki(e)&&Pn(e)==nDe}var nDe,wa,Ph=v(()=>{"use strict";Gc();Gs();nDe="[object Symbol]";a(aDe,"isSymbol");wa=aDe});function sDe(e,t){for(var r=-1,i=e==null?0:e.length,n=Array(i);++r<i;)n[r]=t(e[r],r,e);return n}var _o,u0=v(()=>{"use strict";a(sDe,"arrayMap");_o=sDe});var oDe,or,Li=v(()=>{"use strict";oDe=Array.isArray,or=oDe});function wY(e){if(typeof e=="string")return e;if(or(e))return _o(e,wY)+"";if(wa(e))return _Y?_Y.call(e):"";var t=e+"";return t=="0"&&1/e==-lDe?"-0":t}var lDe,SY,_Y,EY,AY=v(()=>{"use strict";Oh();u0();Li();Ph();lDe=1/0,SY=Zi?Zi.prototype:void 0,_Y=SY?SY.toString:void 0;a(wY,"baseToString");EY=wY});function uDe(e){for(var t=e.length;t--&&cDe.test(e.charAt(t)););return t}var cDe,RY,LY=v(()=>{"use strict";cDe=/\s/;a(uDe,"trimmedEndIndex");RY=uDe});function dDe(e){return e&&e.slice(0,RY(e)+1).replace(hDe,"")}var hDe,DY,IY=v(()=>{"use strict";LY();hDe=/^\s+/;a(dDe,"baseTrim");DY=dDe});function fDe(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var ai,ts=v(()=>{"use strict";a(fDe,"isObject");ai=fDe});function xDe(e){if(typeof e=="number")return e;if(wa(e))return NY;if(ai(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=ai(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=DY(e);var r=mDe.test(e);return r||gDe.test(e)?yDe(e.slice(2),r?2:8):pDe.test(e)?NY:+e}var NY,pDe,mDe,gDe,yDe,MY,OY=v(()=>{"use strict";IY();ts();Ph();NY=NaN,pDe=/^[-+]0x[0-9a-f]+$/i,mDe=/^0b[01]+$/i,gDe=/^0o[0-7]+$/i,yDe=parseInt;a(xDe,"toNumber");MY=xDe});function TDe(e){if(!e)return e===0?e:0;if(e=MY(e),e===PY||e===-PY){var t=e<0?-1:1;return t*bDe}return e===e?e:0}var PY,bDe,pp,AR=v(()=>{"use strict";OY();PY=1/0,bDe=17976931348623157e292;a(TDe,"toFinite");pp=TDe});function kDe(e){var t=pp(e),r=t%1;return t===t?r?t-r:t:0}var BY,$Y=v(()=>{"use strict";AR();a(kDe,"toInteger");BY=kDe});function CDe(e){return e}var ia,Wc=v(()=>{"use strict";a(CDe,"identity");ia=CDe});function EDe(e){if(!ai(e))return!1;var t=Pn(e);return t==SDe||t==_De||t==vDe||t==wDe}var vDe,SDe,_De,wDe,wo,h0=v(()=>{"use strict";Gc();ts();vDe="[object AsyncFunction]",SDe="[object Function]",_De="[object GeneratorFunction]",wDe="[object Proxy]";a(EDe,"isFunction");wo=EDe});var ADe,FT,FY=v(()=>{"use strict";es();ADe=pi["__core-js_shared__"],FT=ADe});function RDe(e){return!!VY&&VY in e}var VY,GY,WY=v(()=>{"use strict";FY();VY=(function(){var e=/[^.]+$/.exec(FT&&FT.keys&&FT.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();a(RDe,"isMasked");GY=RDe});function IDe(e){if(e!=null){try{return DDe.call(e)}catch{}try{return e+""}catch{}}return""}var LDe,DDe,wl,RR=v(()=>{"use strict";LDe=Function.prototype,DDe=LDe.toString;a(IDe,"toSource");wl=IDe});function VDe(e){if(!ai(e)||GY(e))return!1;var t=wo(e)?FDe:MDe;return t.test(wl(e))}var NDe,MDe,ODe,PDe,BDe,$De,FDe,zY,qY=v(()=>{"use strict";h0();WY();ts();RR();NDe=/[\\^$.*+?()[\]{}|]/g,MDe=/^\[object .+?Constructor\]$/,ODe=Function.prototype,PDe=Object.prototype,BDe=ODe.toString,$De=PDe.hasOwnProperty,FDe=RegExp("^"+BDe.call($De).replace(NDe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");a(VDe,"baseIsNative");zY=VDe});function GDe(e,t){return e?.[t]}var jY,UY=v(()=>{"use strict";a(GDe,"getValue");jY=GDe});function WDe(e,t){var r=jY(e,t);return zY(r)?r:void 0}var na,zc=v(()=>{"use strict";qY();UY();a(WDe,"getNative");na=WDe});var zDe,VT,HY=v(()=>{"use strict";zc();es();zDe=na(pi,"WeakMap"),VT=zDe});var YY,qDe,KY,XY=v(()=>{"use strict";ts();YY=Object.create,qDe=(function(){function e(){}return a(e,"object"),function(t){if(!ai(t))return{};if(YY)return YY(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}})(),KY=qDe});function jDe(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}var QY,ZY=v(()=>{"use strict";a(jDe,"apply");QY=jDe});function UDe(){}var JY,eK=v(()=>{"use strict";a(UDe,"noop");JY=UDe});function HDe(e,t){var r=-1,i=e.length;for(t||(t=Array(i));++r<i;)t[r]=e[r];return t}var GT,LR=v(()=>{"use strict";a(HDe,"copyArray");GT=HDe});function QDe(e){var t=0,r=0;return function(){var i=XDe(),n=KDe-(i-r);if(r=i,n>0){if(++t>=YDe)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var YDe,KDe,XDe,tK,rK=v(()=>{"use strict";YDe=800,KDe=16,XDe=Date.now;a(QDe,"shortOut");tK=QDe});function ZDe(e){return function(){return e}}var aa,DR=v(()=>{"use strict";a(ZDe,"constant");aa=ZDe});var JDe,mp,IR=v(()=>{"use strict";zc();JDe=(function(){try{var e=na(Object,"defineProperty");return e({},"",{}),e}catch{}})(),mp=JDe});var eIe,iK,nK=v(()=>{"use strict";DR();IR();Wc();eIe=mp?function(e,t){return mp(e,"toString",{configurable:!0,enumerable:!1,value:aa(t),writable:!0})}:ia,iK=eIe});var tIe,WT,NR=v(()=>{"use strict";nK();rK();tIe=tK(iK),WT=tIe});function rIe(e,t){for(var r=-1,i=e==null?0:e.length;++r<i&&t(e[r],r,e)!==!1;);return e}var zT,MR=v(()=>{"use strict";a(rIe,"arrayEach");zT=rIe});function iIe(e,t,r,i){for(var n=e.length,s=r+(i?1:-1);i?s--:++s<n;)if(t(e[s],s,e))return s;return-1}var qT,OR=v(()=>{"use strict";a(iIe,"baseFindIndex");qT=iIe});function nIe(e){return e!==e}var aK,sK=v(()=>{"use strict";a(nIe,"baseIsNaN");aK=nIe});function aIe(e,t,r){for(var i=r-1,n=e.length;++i<n;)if(e[i]===t)return i;return-1}var oK,lK=v(()=>{"use strict";a(aIe,"strictIndexOf");oK=aIe});function sIe(e,t,r){return t===t?oK(e,t,r):qT(e,aK,r)}var cK,uK=v(()=>{"use strict";OR();sK();lK();a(sIe,"baseIndexOf");cK=sIe});function oIe(e,t){var r=e==null?0:e.length;return!!r&&cK(e,t,0)>-1}var hK,dK=v(()=>{"use strict";uK();a(oIe,"arrayIncludes");hK=oIe});function uIe(e,t){var r=typeof e;return t=t??lIe,!!t&&(r=="number"||r!="symbol"&&cIe.test(e))&&e>-1&&e%1==0&&e<t}var lIe,cIe,qc,d0=v(()=>{"use strict";lIe=9007199254740991,cIe=/^(?:0|[1-9]\d*)$/;a(uIe,"isIndex");qc=uIe});function hIe(e,t,r){t=="__proto__"&&mp?mp(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var jc,f0=v(()=>{"use strict";IR();a(hIe,"baseAssignValue");jc=hIe});function dIe(e,t){return e===t||e!==e&&t!==t}var rs,Bh=v(()=>{"use strict";a(dIe,"eq");rs=dIe});function mIe(e,t,r){var i=e[t];(!(pIe.call(e,t)&&rs(i,r))||r===void 0&&!(t in e))&&jc(e,t,r)}var fIe,pIe,Uc,p0=v(()=>{"use strict";f0();Bh();fIe=Object.prototype,pIe=fIe.hasOwnProperty;a(mIe,"assignValue");Uc=mIe});function gIe(e,t,r,i){var n=!r;r||(r={});for(var s=-1,o=t.length;++s<o;){var l=t[s],u=i?i(r[l],e[l],l,r,e):void 0;u===void 0&&(u=e[l]),n?jc(r,l,u):Uc(r,l,u)}return r}var Eo,gp=v(()=>{"use strict";p0();f0();a(gIe,"copyObject");Eo=gIe});function yIe(e,t,r){return t=fK(t===void 0?e.length-1:t,0),function(){for(var i=arguments,n=-1,s=fK(i.length-t,0),o=Array(s);++n<s;)o[n]=i[t+n];n=-1;for(var l=Array(t+1);++n<t;)l[n]=i[n];return l[t]=r(o),QY(e,this,l)}}var fK,jT,PR=v(()=>{"use strict";ZY();fK=Math.max;a(yIe,"overRest");jT=yIe});function xIe(e,t){return WT(jT(e,t,ia),e+"")}var Hc,m0=v(()=>{"use strict";Wc();PR();NR();a(xIe,"baseRest");Hc=xIe});function TIe(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=bIe}var bIe,yp,UT=v(()=>{"use strict";bIe=9007199254740991;a(TIe,"isLength");yp=TIe});function kIe(e){return e!=null&&yp(e.length)&&!wo(e)}var Ji,Ao=v(()=>{"use strict";h0();UT();a(kIe,"isArrayLike");Ji=kIe});function CIe(e,t,r){if(!ai(r))return!1;var i=typeof t;return(i=="number"?Ji(r)&&qc(t,r.length):i=="string"&&t in r)?rs(r[t],e):!1}var El,g0=v(()=>{"use strict";Bh();Ao();d0();ts();a(CIe,"isIterateeCall");El=CIe});function vIe(e){return Hc(function(t,r){var i=-1,n=r.length,s=n>1?r[n-1]:void 0,o=n>2?r[2]:void 0;for(s=e.length>3&&typeof s=="function"?(n--,s):void 0,o&&El(r[0],r[1],o)&&(s=n<3?void 0:s,n=1),t=Object(t);++i<n;){var l=r[i];l&&e(t,l,i,s)}return t})}var pK,mK=v(()=>{"use strict";m0();g0();a(vIe,"createAssigner");pK=vIe});function _Ie(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||SIe;return e===r}var SIe,Yc,y0=v(()=>{"use strict";SIe=Object.prototype;a(_Ie,"isPrototype");Yc=_Ie});function wIe(e,t){for(var r=-1,i=Array(e);++r<e;)i[r]=t(r);return i}var gK,yK=v(()=>{"use strict";a(wIe,"baseTimes");gK=wIe});function AIe(e){return ki(e)&&Pn(e)==EIe}var EIe,BR,xK=v(()=>{"use strict";Gc();Gs();EIe="[object Arguments]";a(AIe,"baseIsArguments");BR=AIe});var bK,RIe,LIe,DIe,Ws,xp=v(()=>{"use strict";xK();Gs();bK=Object.prototype,RIe=bK.hasOwnProperty,LIe=bK.propertyIsEnumerable,DIe=BR((function(){return arguments})())?BR:function(e){return ki(e)&&RIe.call(e,"callee")&&!LIe.call(e,"callee")},Ws=DIe});function IIe(){return!1}var TK,kK=v(()=>{"use strict";a(IIe,"stubFalse");TK=IIe});var SK,CK,NIe,vK,MIe,OIe,zs,bp=v(()=>{"use strict";es();kK();SK=typeof exports=="object"&&exports&&!exports.nodeType&&exports,CK=SK&&typeof module=="object"&&module&&!module.nodeType&&module,NIe=CK&&CK.exports===SK,vK=NIe?pi.Buffer:void 0,MIe=vK?vK.isBuffer:void 0,OIe=MIe||TK,zs=OIe});function s6e(e){return ki(e)&&yp(e.length)&&!!Zr[Pn(e)]}var PIe,BIe,$Ie,FIe,VIe,GIe,WIe,zIe,qIe,jIe,UIe,HIe,YIe,KIe,XIe,QIe,ZIe,JIe,e6e,t6e,r6e,i6e,n6e,a6e,Zr,_K,wK=v(()=>{"use strict";Gc();UT();Gs();PIe="[object Arguments]",BIe="[object Array]",$Ie="[object Boolean]",FIe="[object Date]",VIe="[object Error]",GIe="[object Function]",WIe="[object Map]",zIe="[object Number]",qIe="[object Object]",jIe="[object RegExp]",UIe="[object Set]",HIe="[object String]",YIe="[object WeakMap]",KIe="[object ArrayBuffer]",XIe="[object DataView]",QIe="[object Float32Array]",ZIe="[object Float64Array]",JIe="[object Int8Array]",e6e="[object Int16Array]",t6e="[object Int32Array]",r6e="[object Uint8Array]",i6e="[object Uint8ClampedArray]",n6e="[object Uint16Array]",a6e="[object Uint32Array]",Zr={};Zr[QIe]=Zr[ZIe]=Zr[JIe]=Zr[e6e]=Zr[t6e]=Zr[r6e]=Zr[i6e]=Zr[n6e]=Zr[a6e]=!0;Zr[PIe]=Zr[BIe]=Zr[KIe]=Zr[$Ie]=Zr[XIe]=Zr[FIe]=Zr[VIe]=Zr[GIe]=Zr[WIe]=Zr[zIe]=Zr[qIe]=Zr[jIe]=Zr[UIe]=Zr[HIe]=Zr[YIe]=!1;a(s6e,"baseIsTypedArray");_K=s6e});function o6e(e){return function(t){return e(t)}}var Kc,x0=v(()=>{"use strict";a(o6e,"baseUnary");Kc=o6e});var EK,b0,l6e,$R,c6e,Al,HT=v(()=>{"use strict";ER();EK=typeof exports=="object"&&exports&&!exports.nodeType&&exports,b0=EK&&typeof module=="object"&&module&&!module.nodeType&&module,l6e=b0&&b0.exports===EK,$R=l6e&&$T.process,c6e=(function(){try{var e=b0&&b0.require&&b0.require("util").types;return e||$R&&$R.binding&&$R.binding("util")}catch{}})(),Al=c6e});var AK,u6e,Xc,T0=v(()=>{"use strict";wK();x0();HT();AK=Al&&Al.isTypedArray,u6e=AK?Kc(AK):_K,Xc=u6e});function f6e(e,t){var r=or(e),i=!r&&Ws(e),n=!r&&!i&&zs(e),s=!r&&!i&&!n&&Xc(e),o=r||i||n||s,l=o?gK(e.length,String):[],u=l.length;for(var h in e)(t||d6e.call(e,h))&&!(o&&(h=="length"||n&&(h=="offset"||h=="parent")||s&&(h=="buffer"||h=="byteLength"||h=="byteOffset")||qc(h,u)))&&l.push(h);return l}var h6e,d6e,YT,FR=v(()=>{"use strict";yK();xp();Li();bp();d0();T0();h6e=Object.prototype,d6e=h6e.hasOwnProperty;a(f6e,"arrayLikeKeys");YT=f6e});function p6e(e,t){return function(r){return e(t(r))}}var KT,VR=v(()=>{"use strict";a(p6e,"overArg");KT=p6e});var m6e,RK,LK=v(()=>{"use strict";VR();m6e=KT(Object.keys,Object),RK=m6e});function x6e(e){if(!Yc(e))return RK(e);var t=[];for(var r in Object(e))y6e.call(e,r)&&r!="constructor"&&t.push(r);return t}var g6e,y6e,Tp,XT=v(()=>{"use strict";y0();LK();g6e=Object.prototype,y6e=g6e.hasOwnProperty;a(x6e,"baseKeys");Tp=x6e});function b6e(e){return Ji(e)?YT(e):Tp(e)}var mi,Rl=v(()=>{"use strict";FR();XT();Ao();a(b6e,"keys");mi=b6e});function T6e(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var DK,IK=v(()=>{"use strict";a(T6e,"nativeKeysIn");DK=T6e});function v6e(e){if(!ai(e))return DK(e);var t=Yc(e),r=[];for(var i in e)i=="constructor"&&(t||!C6e.call(e,i))||r.push(i);return r}var k6e,C6e,NK,MK=v(()=>{"use strict";ts();y0();IK();k6e=Object.prototype,C6e=k6e.hasOwnProperty;a(v6e,"baseKeysIn");NK=v6e});function S6e(e){return Ji(e)?YT(e,!0):NK(e)}var sa,Qc=v(()=>{"use strict";FR();MK();Ao();a(S6e,"keysIn");sa=S6e});function E6e(e,t){if(or(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||wa(e)?!0:w6e.test(e)||!_6e.test(e)||t!=null&&e in Object(t)}var _6e,w6e,kp,QT=v(()=>{"use strict";Li();Ph();_6e=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,w6e=/^\w*$/;a(E6e,"isKey");kp=E6e});var A6e,Ll,k0=v(()=>{"use strict";zc();A6e=na(Object,"create"),Ll=A6e});function R6e(){this.__data__=Ll?Ll(null):{},this.size=0}var OK,PK=v(()=>{"use strict";k0();a(R6e,"hashClear");OK=R6e});function L6e(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var BK,$K=v(()=>{"use strict";a(L6e,"hashDelete");BK=L6e});function M6e(e){var t=this.__data__;if(Ll){var r=t[e];return r===D6e?void 0:r}return N6e.call(t,e)?t[e]:void 0}var D6e,I6e,N6e,FK,VK=v(()=>{"use strict";k0();D6e="__lodash_hash_undefined__",I6e=Object.prototype,N6e=I6e.hasOwnProperty;a(M6e,"hashGet");FK=M6e});function B6e(e){var t=this.__data__;return Ll?t[e]!==void 0:P6e.call(t,e)}var O6e,P6e,GK,WK=v(()=>{"use strict";k0();O6e=Object.prototype,P6e=O6e.hasOwnProperty;a(B6e,"hashHas");GK=B6e});function F6e(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Ll&&t===void 0?$6e:t,this}var $6e,zK,qK=v(()=>{"use strict";k0();$6e="__lodash_hash_undefined__";a(F6e,"hashSet");zK=F6e});function Cp(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}var GR,jK=v(()=>{"use strict";PK();$K();VK();WK();qK();a(Cp,"Hash");Cp.prototype.clear=OK;Cp.prototype.delete=BK;Cp.prototype.get=FK;Cp.prototype.has=GK;Cp.prototype.set=zK;GR=Cp});function V6e(){this.__data__=[],this.size=0}var UK,HK=v(()=>{"use strict";a(V6e,"listCacheClear");UK=V6e});function G6e(e,t){for(var r=e.length;r--;)if(rs(e[r][0],t))return r;return-1}var Zc,C0=v(()=>{"use strict";Bh();a(G6e,"assocIndexOf");Zc=G6e});function q6e(e){var t=this.__data__,r=Zc(t,e);if(r<0)return!1;var i=t.length-1;return r==i?t.pop():z6e.call(t,r,1),--this.size,!0}var W6e,z6e,YK,KK=v(()=>{"use strict";C0();W6e=Array.prototype,z6e=W6e.splice;a(q6e,"listCacheDelete");YK=q6e});function j6e(e){var t=this.__data__,r=Zc(t,e);return r<0?void 0:t[r][1]}var XK,QK=v(()=>{"use strict";C0();a(j6e,"listCacheGet");XK=j6e});function U6e(e){return Zc(this.__data__,e)>-1}var ZK,JK=v(()=>{"use strict";C0();a(U6e,"listCacheHas");ZK=U6e});function H6e(e,t){var r=this.__data__,i=Zc(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this}var eX,tX=v(()=>{"use strict";C0();a(H6e,"listCacheSet");eX=H6e});function vp(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}var Jc,v0=v(()=>{"use strict";HK();KK();QK();JK();tX();a(vp,"ListCache");vp.prototype.clear=UK;vp.prototype.delete=YK;vp.prototype.get=XK;vp.prototype.has=ZK;vp.prototype.set=eX;Jc=vp});var Y6e,eu,ZT=v(()=>{"use strict";zc();es();Y6e=na(pi,"Map"),eu=Y6e});function K6e(){this.size=0,this.__data__={hash:new GR,map:new(eu||Jc),string:new GR}}var rX,iX=v(()=>{"use strict";jK();v0();ZT();a(K6e,"mapCacheClear");rX=K6e});function X6e(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var nX,aX=v(()=>{"use strict";a(X6e,"isKeyable");nX=X6e});function Q6e(e,t){var r=e.__data__;return nX(t)?r[typeof t=="string"?"string":"hash"]:r.map}var tu,S0=v(()=>{"use strict";aX();a(Q6e,"getMapData");tu=Q6e});function Z6e(e){var t=tu(this,e).delete(e);return this.size-=t?1:0,t}var sX,oX=v(()=>{"use strict";S0();a(Z6e,"mapCacheDelete");sX=Z6e});function J6e(e){return tu(this,e).get(e)}var lX,cX=v(()=>{"use strict";S0();a(J6e,"mapCacheGet");lX=J6e});function eNe(e){return tu(this,e).has(e)}var uX,hX=v(()=>{"use strict";S0();a(eNe,"mapCacheHas");uX=eNe});function tNe(e,t){var r=tu(this,e),i=r.size;return r.set(e,t),this.size+=r.size==i?0:1,this}var dX,fX=v(()=>{"use strict";S0();a(tNe,"mapCacheSet");dX=tNe});function Sp(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}var $h,JT=v(()=>{"use strict";iX();oX();cX();hX();fX();a(Sp,"MapCache");Sp.prototype.clear=rX;Sp.prototype.delete=sX;Sp.prototype.get=lX;Sp.prototype.has=uX;Sp.prototype.set=dX;$h=Sp});function WR(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(rNe);var r=a(function(){var i=arguments,n=t?t.apply(this,i):i[0],s=r.cache;if(s.has(n))return s.get(n);var o=e.apply(this,i);return r.cache=s.set(n,o)||s,o},"memoized");return r.cache=new(WR.Cache||$h),r}var rNe,pX,mX=v(()=>{"use strict";JT();rNe="Expected a function";a(WR,"memoize");WR.Cache=$h;pX=WR});function nNe(e){var t=pX(e,function(i){return r.size===iNe&&r.clear(),i}),r=t.cache;return t}var iNe,gX,yX=v(()=>{"use strict";mX();iNe=500;a(nNe,"memoizeCapped");gX=nNe});var aNe,sNe,oNe,xX,bX=v(()=>{"use strict";yX();aNe=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,sNe=/\\(\\)?/g,oNe=gX(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(aNe,function(r,i,n,s){t.push(n?s.replace(sNe,"$1"):i||r)}),t}),xX=oNe});function lNe(e){return e==null?"":EY(e)}var ek,zR=v(()=>{"use strict";AY();a(lNe,"toString");ek=lNe});function cNe(e,t){return or(e)?e:kp(e,t)?[e]:xX(ek(e))}var ru,_0=v(()=>{"use strict";Li();QT();bX();zR();a(cNe,"castPath");ru=cNe});function hNe(e){if(typeof e=="string"||wa(e))return e;var t=e+"";return t=="0"&&1/e==-uNe?"-0":t}var uNe,Ro,_p=v(()=>{"use strict";Ph();uNe=1/0;a(hNe,"toKey");Ro=hNe});function dNe(e,t){t=ru(t,e);for(var r=0,i=t.length;e!=null&&r<i;)e=e[Ro(t[r++])];return r&&r==i?e:void 0}var iu,w0=v(()=>{"use strict";_0();_p();a(dNe,"baseGet");iu=dNe});function fNe(e,t,r){var i=e==null?void 0:iu(e,t);return i===void 0?r:i}var TX,kX=v(()=>{"use strict";w0();a(fNe,"get");TX=fNe});function pNe(e,t){for(var r=-1,i=t.length,n=e.length;++r<i;)e[n+r]=t[r];return e}var wp,tk=v(()=>{"use strict";a(pNe,"arrayPush");wp=pNe});function mNe(e){return or(e)||Ws(e)||!!(CX&&e&&e[CX])}var CX,vX,SX=v(()=>{"use strict";Oh();xp();Li();CX=Zi?Zi.isConcatSpreadable:void 0;a(mNe,"isFlattenable");vX=mNe});function _X(e,t,r,i,n){var s=-1,o=e.length;for(r||(r=vX),n||(n=[]);++s<o;){var l=e[s];t>0&&r(l)?t>1?_X(l,t-1,r,i,n):wp(n,l):i||(n[n.length]=l)}return n}var Ep,rk=v(()=>{"use strict";tk();SX();a(_X,"baseFlatten");Ep=_X});function gNe(e){var t=e==null?0:e.length;return t?Ep(e,1):[]}var is,qR=v(()=>{"use strict";rk();a(gNe,"flatten");is=gNe});function yNe(e){return WT(jT(e,void 0,is),e+"")}var wX,EX=v(()=>{"use strict";qR();PR();NR();a(yNe,"flatRest");wX=yNe});var xNe,Ap,ik=v(()=>{"use strict";VR();xNe=KT(Object.getPrototypeOf,Object),Ap=xNe});function SNe(e){if(!ki(e)||Pn(e)!=bNe)return!1;var t=Ap(e);if(t===null)return!0;var r=CNe.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&AX.call(r)==vNe}var bNe,TNe,kNe,AX,CNe,vNe,RX,LX=v(()=>{"use strict";Gc();ik();Gs();bNe="[object Object]",TNe=Function.prototype,kNe=Object.prototype,AX=TNe.toString,CNe=kNe.hasOwnProperty,vNe=AX.call(Object);a(SNe,"isPlainObject");RX=SNe});function NNe(e){return INe.test(e)}var _Ne,wNe,ENe,ANe,RNe,LNe,DNe,INe,DX,IX=v(()=>{"use strict";_Ne="\\ud800-\\udfff",wNe="\\u0300-\\u036f",ENe="\\ufe20-\\ufe2f",ANe="\\u20d0-\\u20ff",RNe=wNe+ENe+ANe,LNe="\\ufe0e\\ufe0f",DNe="\\u200d",INe=RegExp("["+DNe+_Ne+RNe+LNe+"]");a(NNe,"hasUnicode");DX=NNe});function MNe(e,t,r,i){var n=-1,s=e==null?0:e.length;for(i&&s&&(r=e[++n]);++n<s;)r=t(r,e[n],n,e);return r}var NX,MX=v(()=>{"use strict";a(MNe,"arrayReduce");NX=MNe});function ONe(){this.__data__=new Jc,this.size=0}var OX,PX=v(()=>{"use strict";v0();a(ONe,"stackClear");OX=ONe});function PNe(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}var BX,$X=v(()=>{"use strict";a(PNe,"stackDelete");BX=PNe});function BNe(e){return this.__data__.get(e)}var FX,VX=v(()=>{"use strict";a(BNe,"stackGet");FX=BNe});function $Ne(e){return this.__data__.has(e)}var GX,WX=v(()=>{"use strict";a($Ne,"stackHas");GX=$Ne});function VNe(e,t){var r=this.__data__;if(r instanceof Jc){var i=r.__data__;if(!eu||i.length<FNe-1)return i.push([e,t]),this.size=++r.size,this;r=this.__data__=new $h(i)}return r.set(e,t),this.size=r.size,this}var FNe,zX,qX=v(()=>{"use strict";v0();ZT();JT();FNe=200;a(VNe,"stackSet");zX=VNe});function Rp(e){var t=this.__data__=new Jc(e);this.size=t.size}var Lo,E0=v(()=>{"use strict";v0();PX();$X();VX();WX();qX();a(Rp,"Stack");Rp.prototype.clear=OX;Rp.prototype.delete=BX;Rp.prototype.get=FX;Rp.prototype.has=GX;Rp.prototype.set=zX;Lo=Rp});function GNe(e,t){return e&&Eo(t,mi(t),e)}var jX,UX=v(()=>{"use strict";gp();Rl();a(GNe,"baseAssign");jX=GNe});function WNe(e,t){return e&&Eo(t,sa(t),e)}var HX,YX=v(()=>{"use strict";gp();Qc();a(WNe,"baseAssignIn");HX=WNe});function qNe(e,t){if(t)return e.slice();var r=e.length,i=QX?QX(r):new e.constructor(r);return e.copy(i),i}var ZX,KX,zNe,XX,QX,nk,jR=v(()=>{"use strict";es();ZX=typeof exports=="object"&&exports&&!exports.nodeType&&exports,KX=ZX&&typeof module=="object"&&module&&!module.nodeType&&module,zNe=KX&&KX.exports===ZX,XX=zNe?pi.Buffer:void 0,QX=XX?XX.allocUnsafe:void 0;a(qNe,"cloneBuffer");nk=qNe});function jNe(e,t){for(var r=-1,i=e==null?0:e.length,n=0,s=[];++r<i;){var o=e[r];t(o,r,e)&&(s[n++]=o)}return s}var ak,UR=v(()=>{"use strict";a(jNe,"arrayFilter");ak=jNe});function UNe(){return[]}var sk,HR=v(()=>{"use strict";a(UNe,"stubArray");sk=UNe});var HNe,YNe,JX,KNe,Lp,ok=v(()=>{"use strict";UR();HR();HNe=Object.prototype,YNe=HNe.propertyIsEnumerable,JX=Object.getOwnPropertySymbols,KNe=JX?function(e){return e==null?[]:(e=Object(e),ak(JX(e),function(t){return YNe.call(e,t)}))}:sk,Lp=KNe});function XNe(e,t){return Eo(e,Lp(e),t)}var eQ,tQ=v(()=>{"use strict";gp();ok();a(XNe,"copySymbols");eQ=XNe});var QNe,ZNe,lk,YR=v(()=>{"use strict";tk();ik();ok();HR();QNe=Object.getOwnPropertySymbols,ZNe=QNe?function(e){for(var t=[];e;)wp(t,Lp(e)),e=Ap(e);return t}:sk,lk=ZNe});function JNe(e,t){return Eo(e,lk(e),t)}var rQ,iQ=v(()=>{"use strict";gp();YR();a(JNe,"copySymbolsIn");rQ=JNe});function eMe(e,t,r){var i=t(e);return or(e)?i:wp(i,r(e))}var ck,KR=v(()=>{"use strict";tk();Li();a(eMe,"baseGetAllKeys");ck=eMe});function tMe(e){return ck(e,mi,Lp)}var A0,XR=v(()=>{"use strict";KR();ok();Rl();a(tMe,"getAllKeys");A0=tMe});function rMe(e){return ck(e,sa,lk)}var nQ,aQ=v(()=>{"use strict";KR();YR();Qc();a(rMe,"getAllKeysIn");nQ=rMe});var iMe,uk,sQ=v(()=>{"use strict";zc();es();iMe=na(pi,"DataView"),uk=iMe});var nMe,hk,oQ=v(()=>{"use strict";zc();es();nMe=na(pi,"Promise"),hk=nMe});var aMe,nu,QR=v(()=>{"use strict";zc();es();aMe=na(pi,"Set"),nu=aMe});var lQ,sMe,cQ,uQ,hQ,dQ,oMe,lMe,cMe,uMe,hMe,Fh,Ea,Vh=v(()=>{"use strict";sQ();ZT();oQ();QR();HY();Gc();RR();lQ="[object Map]",sMe="[object Object]",cQ="[object Promise]",uQ="[object Set]",hQ="[object WeakMap]",dQ="[object DataView]",oMe=wl(uk),lMe=wl(eu),cMe=wl(hk),uMe=wl(nu),hMe=wl(VT),Fh=Pn;(uk&&Fh(new uk(new ArrayBuffer(1)))!=dQ||eu&&Fh(new eu)!=lQ||hk&&Fh(hk.resolve())!=cQ||nu&&Fh(new nu)!=uQ||VT&&Fh(new VT)!=hQ)&&(Fh=a(function(e){var t=Pn(e),r=t==sMe?e.constructor:void 0,i=r?wl(r):"";if(i)switch(i){case oMe:return dQ;case lMe:return lQ;case cMe:return cQ;case uMe:return uQ;case hMe:return hQ}return t},"getTag"));Ea=Fh});function pMe(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&fMe.call(e,"index")&&(r.index=e.index,r.input=e.input),r}var dMe,fMe,fQ,pQ=v(()=>{"use strict";dMe=Object.prototype,fMe=dMe.hasOwnProperty;a(pMe,"initCloneArray");fQ=pMe});var mMe,Dp,ZR=v(()=>{"use strict";es();mMe=pi.Uint8Array,Dp=mMe});function gMe(e){var t=new e.constructor(e.byteLength);return new Dp(t).set(new Dp(e)),t}var Ip,dk=v(()=>{"use strict";ZR();a(gMe,"cloneArrayBuffer");Ip=gMe});function yMe(e,t){var r=t?Ip(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}var mQ,gQ=v(()=>{"use strict";dk();a(yMe,"cloneDataView");mQ=yMe});function bMe(e){var t=new e.constructor(e.source,xMe.exec(e));return t.lastIndex=e.lastIndex,t}var xMe,yQ,xQ=v(()=>{"use strict";xMe=/\w*$/;a(bMe,"cloneRegExp");yQ=bMe});function TMe(e){return TQ?Object(TQ.call(e)):{}}var bQ,TQ,kQ,CQ=v(()=>{"use strict";Oh();bQ=Zi?Zi.prototype:void 0,TQ=bQ?bQ.valueOf:void 0;a(TMe,"cloneSymbol");kQ=TMe});function kMe(e,t){var r=t?Ip(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var fk,JR=v(()=>{"use strict";dk();a(kMe,"cloneTypedArray");fk=kMe});function GMe(e,t,r){var i=e.constructor;switch(t){case LMe:return Ip(e);case CMe:case vMe:return new i(+e);case DMe:return mQ(e,r);case IMe:case NMe:case MMe:case OMe:case PMe:case BMe:case $Me:case FMe:case VMe:return fk(e,r);case SMe:return new i;case _Me:case AMe:return new i(e);case wMe:return yQ(e);case EMe:return new i;case RMe:return kQ(e)}}var CMe,vMe,SMe,_Me,wMe,EMe,AMe,RMe,LMe,DMe,IMe,NMe,MMe,OMe,PMe,BMe,$Me,FMe,VMe,vQ,SQ=v(()=>{"use strict";dk();gQ();xQ();CQ();JR();CMe="[object Boolean]",vMe="[object Date]",SMe="[object Map]",_Me="[object Number]",wMe="[object RegExp]",EMe="[object Set]",AMe="[object String]",RMe="[object Symbol]",LMe="[object ArrayBuffer]",DMe="[object DataView]",IMe="[object Float32Array]",NMe="[object Float64Array]",MMe="[object Int8Array]",OMe="[object Int16Array]",PMe="[object Int32Array]",BMe="[object Uint8Array]",$Me="[object Uint8ClampedArray]",FMe="[object Uint16Array]",VMe="[object Uint32Array]";a(GMe,"initCloneByTag");vQ=GMe});function WMe(e){return typeof e.constructor=="function"&&!Yc(e)?KY(Ap(e)):{}}var pk,eL=v(()=>{"use strict";XY();ik();y0();a(WMe,"initCloneObject");pk=WMe});function qMe(e){return ki(e)&&Ea(e)==zMe}var zMe,_Q,wQ=v(()=>{"use strict";Vh();Gs();zMe="[object Map]";a(qMe,"baseIsMap");_Q=qMe});var EQ,jMe,AQ,RQ=v(()=>{"use strict";wQ();x0();HT();EQ=Al&&Al.isMap,jMe=EQ?Kc(EQ):_Q,AQ=jMe});function HMe(e){return ki(e)&&Ea(e)==UMe}var UMe,LQ,DQ=v(()=>{"use strict";Vh();Gs();UMe="[object Set]";a(HMe,"baseIsSet");LQ=HMe});var IQ,YMe,NQ,MQ=v(()=>{"use strict";DQ();x0();HT();IQ=Al&&Al.isSet,YMe=IQ?Kc(IQ):LQ,NQ=YMe});function mk(e,t,r,i,n,s){var o,l=t&KMe,u=t&XMe,h=t&QMe;if(r&&(o=n?r(e,i,n,s):r(e)),o!==void 0)return o;if(!ai(e))return e;var d=or(e);if(d){if(o=fQ(e),!l)return GT(e,o)}else{var f=Ea(e),p=f==PQ||f==rOe;if(zs(e))return nk(e,l);if(f==BQ||f==OQ||p&&!n){if(o=u||p?{}:pk(e),!l)return u?rQ(e,HX(o,e)):eQ(e,jX(o,e))}else{if(!qr[f])return n?e:{};o=vQ(e,f,l)}}s||(s=new Lo);var m=s.get(e);if(m)return m;s.set(e,o),NQ(e)?e.forEach(function(b){o.add(mk(b,t,r,b,e,s))}):AQ(e)&&e.forEach(function(b,T){o.set(T,mk(b,t,r,T,e,s))});var g=h?u?nQ:A0:u?sa:mi,x=d?void 0:g(e);return zT(x||e,function(b,T){x&&(T=b,b=e[T]),Uc(o,T,mk(b,t,r,T,e,s))}),o}var KMe,XMe,QMe,OQ,ZMe,JMe,eOe,tOe,PQ,rOe,iOe,nOe,BQ,aOe,sOe,oOe,lOe,cOe,uOe,hOe,dOe,fOe,pOe,mOe,gOe,yOe,xOe,bOe,TOe,qr,gk,tL=v(()=>{"use strict";E0();MR();p0();UX();YX();jR();LR();tQ();iQ();XR();aQ();Vh();pQ();SQ();eL();Li();bp();RQ();ts();MQ();Rl();Qc();KMe=1,XMe=2,QMe=4,OQ="[object Arguments]",ZMe="[object Array]",JMe="[object Boolean]",eOe="[object Date]",tOe="[object Error]",PQ="[object Function]",rOe="[object GeneratorFunction]",iOe="[object Map]",nOe="[object Number]",BQ="[object Object]",aOe="[object RegExp]",sOe="[object Set]",oOe="[object String]",lOe="[object Symbol]",cOe="[object WeakMap]",uOe="[object ArrayBuffer]",hOe="[object DataView]",dOe="[object Float32Array]",fOe="[object Float64Array]",pOe="[object Int8Array]",mOe="[object Int16Array]",gOe="[object Int32Array]",yOe="[object Uint8Array]",xOe="[object Uint8ClampedArray]",bOe="[object Uint16Array]",TOe="[object Uint32Array]",qr={};qr[OQ]=qr[ZMe]=qr[uOe]=qr[hOe]=qr[JMe]=qr[eOe]=qr[dOe]=qr[fOe]=qr[pOe]=qr[mOe]=qr[gOe]=qr[iOe]=qr[nOe]=qr[BQ]=qr[aOe]=qr[sOe]=qr[oOe]=qr[lOe]=qr[yOe]=qr[xOe]=qr[bOe]=qr[TOe]=!0;qr[tOe]=qr[PQ]=qr[cOe]=!1;a(mk,"baseClone");gk=mk});function COe(e){return gk(e,kOe)}var kOe,rL,$Q=v(()=>{"use strict";tL();kOe=4;a(COe,"clone");rL=COe});function _Oe(e){return gk(e,vOe|SOe)}var vOe,SOe,iL,FQ=v(()=>{"use strict";tL();vOe=1,SOe=4;a(_Oe,"cloneDeep");iL=_Oe});function EOe(e){return this.__data__.set(e,wOe),this}var wOe,VQ,GQ=v(()=>{"use strict";wOe="__lodash_hash_undefined__";a(EOe,"setCacheAdd");VQ=EOe});function AOe(e){return this.__data__.has(e)}var WQ,zQ=v(()=>{"use strict";a(AOe,"setCacheHas");WQ=AOe});function yk(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new $h;++t<r;)this.add(e[t])}var xk,nL=v(()=>{"use strict";JT();GQ();zQ();a(yk,"SetCache");yk.prototype.add=yk.prototype.push=VQ;yk.prototype.has=WQ;xk=yk});function ROe(e,t){for(var r=-1,i=e==null?0:e.length;++r<i;)if(t(e[r],r,e))return!0;return!1}var qQ,jQ=v(()=>{"use strict";a(ROe,"arraySome");qQ=ROe});function LOe(e,t){return e.has(t)}var bk,aL=v(()=>{"use strict";a(LOe,"cacheHas");bk=LOe});function NOe(e,t,r,i,n,s){var o=r&DOe,l=e.length,u=t.length;if(l!=u&&!(o&&u>l))return!1;var h=s.get(e),d=s.get(t);if(h&&d)return h==t&&d==e;var f=-1,p=!0,m=r&IOe?new xk:void 0;for(s.set(e,t),s.set(t,e);++f<l;){var g=e[f],x=t[f];if(i)var b=o?i(x,g,f,t,e,s):i(g,x,f,e,t,s);if(b!==void 0){if(b)continue;p=!1;break}if(m){if(!qQ(t,function(T,k){if(!bk(m,k)&&(g===T||n(g,T,r,i,s)))return m.push(k)})){p=!1;break}}else if(!(g===x||n(g,x,r,i,s))){p=!1;break}}return s.delete(e),s.delete(t),p}var DOe,IOe,Tk,sL=v(()=>{"use strict";nL();jQ();aL();DOe=1,IOe=2;a(NOe,"equalArrays");Tk=NOe});function MOe(e){var t=-1,r=Array(e.size);return e.forEach(function(i,n){r[++t]=[n,i]}),r}var UQ,HQ=v(()=>{"use strict";a(MOe,"mapToArray");UQ=MOe});function OOe(e){var t=-1,r=Array(e.size);return e.forEach(function(i){r[++t]=i}),r}var Np,kk=v(()=>{"use strict";a(OOe,"setToArray");Np=OOe});function KOe(e,t,r,i,n,s,o){switch(r){case YOe:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case HOe:return!(e.byteLength!=t.byteLength||!s(new Dp(e),new Dp(t)));case $Oe:case FOe:case WOe:return rs(+e,+t);case VOe:return e.name==t.name&&e.message==t.message;case zOe:case jOe:return e==t+"";case GOe:var l=UQ;case qOe:var u=i&POe;if(l||(l=Np),e.size!=t.size&&!u)return!1;var h=o.get(e);if(h)return h==t;i|=BOe,o.set(e,t);var d=Tk(l(e),l(t),i,n,s,o);return o.delete(e),d;case UOe:if(oL)return oL.call(e)==oL.call(t)}return!1}var POe,BOe,$Oe,FOe,VOe,GOe,WOe,zOe,qOe,jOe,UOe,HOe,YOe,YQ,oL,KQ,XQ=v(()=>{"use strict";Oh();ZR();Bh();sL();HQ();kk();POe=1,BOe=2,$Oe="[object Boolean]",FOe="[object Date]",VOe="[object Error]",GOe="[object Map]",WOe="[object Number]",zOe="[object RegExp]",qOe="[object Set]",jOe="[object String]",UOe="[object Symbol]",HOe="[object ArrayBuffer]",YOe="[object DataView]",YQ=Zi?Zi.prototype:void 0,oL=YQ?YQ.valueOf:void 0;a(KOe,"equalByTag");KQ=KOe});function JOe(e,t,r,i,n,s){var o=r&XOe,l=A0(e),u=l.length,h=A0(t),d=h.length;if(u!=d&&!o)return!1;for(var f=u;f--;){var p=l[f];if(!(o?p in t:ZOe.call(t,p)))return!1}var m=s.get(e),g=s.get(t);if(m&&g)return m==t&&g==e;var x=!0;s.set(e,t),s.set(t,e);for(var b=o;++f<u;){p=l[f];var T=e[p],k=t[p];if(i)var C=o?i(k,T,p,t,e,s):i(T,k,p,e,t,s);if(!(C===void 0?T===k||n(T,k,r,i,s):C)){x=!1;break}b||(b=p=="constructor")}if(x&&!b){var S=e.constructor,w=t.constructor;S!=w&&"constructor"in e&&"constructor"in t&&!(typeof S=="function"&&S instanceof S&&typeof w=="function"&&w instanceof w)&&(x=!1)}return s.delete(e),s.delete(t),x}var XOe,QOe,ZOe,QQ,ZQ=v(()=>{"use strict";XR();XOe=1,QOe=Object.prototype,ZOe=QOe.hasOwnProperty;a(JOe,"equalObjects");QQ=JOe});function rPe(e,t,r,i,n,s){var o=or(e),l=or(t),u=o?eZ:Ea(e),h=l?eZ:Ea(t);u=u==JQ?Ck:u,h=h==JQ?Ck:h;var d=u==Ck,f=h==Ck,p=u==h;if(p&&zs(e)){if(!zs(t))return!1;o=!0,d=!1}if(p&&!d)return s||(s=new Lo),o||Xc(e)?Tk(e,t,r,i,n,s):KQ(e,t,u,r,i,n,s);if(!(r&ePe)){var m=d&&tZ.call(e,"__wrapped__"),g=f&&tZ.call(t,"__wrapped__");if(m||g){var x=m?e.value():e,b=g?t.value():t;return s||(s=new Lo),n(x,b,r,i,s)}}return p?(s||(s=new Lo),QQ(e,t,r,i,n,s)):!1}var ePe,JQ,eZ,Ck,tPe,tZ,rZ,iZ=v(()=>{"use strict";E0();sL();XQ();ZQ();Vh();Li();bp();T0();ePe=1,JQ="[object Arguments]",eZ="[object Array]",Ck="[object Object]",tPe=Object.prototype,tZ=tPe.hasOwnProperty;a(rPe,"baseIsEqualDeep");rZ=rPe});function nZ(e,t,r,i,n){return e===t?!0:e==null||t==null||!ki(e)&&!ki(t)?e!==e&&t!==t:rZ(e,t,r,i,nZ,n)}var vk,lL=v(()=>{"use strict";iZ();Gs();a(nZ,"baseIsEqual");vk=nZ});function aPe(e,t,r,i){var n=r.length,s=n,o=!i;if(e==null)return!s;for(e=Object(e);n--;){var l=r[n];if(o&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++n<s;){l=r[n];var u=l[0],h=e[u],d=l[1];if(o&&l[2]){if(h===void 0&&!(u in e))return!1}else{var f=new Lo;if(i)var p=i(h,d,u,e,t,f);if(!(p===void 0?vk(d,h,iPe|nPe,i,f):p))return!1}}return!0}var iPe,nPe,aZ,sZ=v(()=>{"use strict";E0();lL();iPe=1,nPe=2;a(aPe,"baseIsMatch");aZ=aPe});function sPe(e){return e===e&&!ai(e)}var Sk,cL=v(()=>{"use strict";ts();a(sPe,"isStrictComparable");Sk=sPe});function oPe(e){for(var t=mi(e),r=t.length;r--;){var i=t[r],n=e[i];t[r]=[i,n,Sk(n)]}return t}var oZ,lZ=v(()=>{"use strict";cL();Rl();a(oPe,"getMatchData");oZ=oPe});function lPe(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}var _k,uL=v(()=>{"use strict";a(lPe,"matchesStrictComparable");_k=lPe});function cPe(e){var t=oZ(e);return t.length==1&&t[0][2]?_k(t[0][0],t[0][1]):function(r){return r===e||aZ(r,e,t)}}var cZ,uZ=v(()=>{"use strict";sZ();lZ();uL();a(cPe,"baseMatches");cZ=cPe});function uPe(e,t){return e!=null&&t in Object(e)}var hZ,dZ=v(()=>{"use strict";a(uPe,"baseHasIn");hZ=uPe});function hPe(e,t,r){t=ru(t,e);for(var i=-1,n=t.length,s=!1;++i<n;){var o=Ro(t[i]);if(!(s=e!=null&&r(e,o)))break;e=e[o]}return s||++i!=n?s:(n=e==null?0:e.length,!!n&&yp(n)&&qc(o,n)&&(or(e)||Ws(e)))}var wk,hL=v(()=>{"use strict";_0();xp();Li();d0();UT();_p();a(hPe,"hasPath");wk=hPe});function dPe(e,t){return e!=null&&wk(e,t,hZ)}var Ek,dL=v(()=>{"use strict";dZ();hL();a(dPe,"hasIn");Ek=dPe});function mPe(e,t){return kp(e)&&Sk(t)?_k(Ro(e),t):function(r){var i=TX(r,e);return i===void 0&&i===t?Ek(r,e):vk(t,i,fPe|pPe)}}var fPe,pPe,fZ,pZ=v(()=>{"use strict";lL();kX();dL();QT();cL();uL();_p();fPe=1,pPe=2;a(mPe,"baseMatchesProperty");fZ=mPe});function gPe(e){return function(t){return t?.[e]}}var Ak,fL=v(()=>{"use strict";a(gPe,"baseProperty");Ak=gPe});function yPe(e){return function(t){return iu(t,e)}}var mZ,gZ=v(()=>{"use strict";w0();a(yPe,"basePropertyDeep");mZ=yPe});function xPe(e){return kp(e)?Ak(Ro(e)):mZ(e)}var yZ,xZ=v(()=>{"use strict";fL();gZ();QT();_p();a(xPe,"property");yZ=xPe});function bPe(e){return typeof e=="function"?e:e==null?ia:typeof e=="object"?or(e)?fZ(e[0],e[1]):cZ(e):yZ(e)}var vn,Dl=v(()=>{"use strict";uZ();pZ();Wc();Li();xZ();a(bPe,"baseIteratee");vn=bPe});function TPe(e){return function(t,r,i){for(var n=-1,s=Object(t),o=i(t),l=o.length;l--;){var u=o[e?l:++n];if(r(s[u],u,s)===!1)break}return t}}var bZ,TZ=v(()=>{"use strict";a(TPe,"createBaseFor");bZ=TPe});var kPe,Mp,Rk=v(()=>{"use strict";TZ();kPe=bZ(),Mp=kPe});function CPe(e,t){return e&&Mp(e,t,mi)}var Op,Lk=v(()=>{"use strict";Rk();Rl();a(CPe,"baseForOwn");Op=CPe});function vPe(e,t){return function(r,i){if(r==null)return r;if(!Ji(r))return e(r,i);for(var n=r.length,s=t?n:-1,o=Object(r);(t?s--:++s<n)&&i(o[s],s,o)!==!1;);return r}}var kZ,CZ=v(()=>{"use strict";Ao();a(vPe,"createBaseEach");kZ=vPe});var SPe,au,R0=v(()=>{"use strict";Lk();CZ();SPe=kZ(Op),au=SPe});var _Pe,Dk,vZ=v(()=>{"use strict";es();_Pe=a(function(){return pi.Date.now()},"now"),Dk=_Pe});var SZ,wPe,EPe,pL,_Z=v(()=>{"use strict";m0();Bh();g0();Qc();SZ=Object.prototype,wPe=SZ.hasOwnProperty,EPe=Hc(function(e,t){e=Object(e);var r=-1,i=t.length,n=i>2?t[2]:void 0;for(n&&El(t[0],t[1],n)&&(i=1);++r<i;)for(var s=t[r],o=sa(s),l=-1,u=o.length;++l<u;){var h=o[l],d=e[h];(d===void 0||rs(d,SZ[h])&&!wPe.call(e,h))&&(e[h]=s[h])}return e}),pL=EPe});function APe(e,t,r){(r!==void 0&&!rs(e[t],r)||r===void 0&&!(t in e))&&jc(e,t,r)}var L0,mL=v(()=>{"use strict";f0();Bh();a(APe,"assignMergeValue");L0=APe});function RPe(e){return ki(e)&&Ji(e)}var Ik,gL=v(()=>{"use strict";Ao();Gs();a(RPe,"isArrayLikeObject");Ik=RPe});function LPe(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var D0,yL=v(()=>{"use strict";a(LPe,"safeGet");D0=LPe});function DPe(e){return Eo(e,sa(e))}var wZ,EZ=v(()=>{"use strict";gp();Qc();a(DPe,"toPlainObject");wZ=DPe});function IPe(e,t,r,i,n,s,o){var l=D0(e,r),u=D0(t,r),h=o.get(u);if(h){L0(e,r,h);return}var d=s?s(l,u,r+"",e,t,o):void 0,f=d===void 0;if(f){var p=or(u),m=!p&&zs(u),g=!p&&!m&&Xc(u);d=u,p||m||g?or(l)?d=l:Ik(l)?d=GT(l):m?(f=!1,d=nk(u,!0)):g?(f=!1,d=fk(u,!0)):d=[]:RX(u)||Ws(u)?(d=l,Ws(l)?d=wZ(l):(!ai(l)||wo(l))&&(d=pk(u))):f=!1}f&&(o.set(u,d),n(d,u,i,s,o),o.delete(u)),L0(e,r,d)}var AZ,RZ=v(()=>{"use strict";mL();jR();JR();LR();eL();xp();Li();gL();bp();h0();ts();LX();T0();yL();EZ();a(IPe,"baseMergeDeep");AZ=IPe});function LZ(e,t,r,i,n){e!==t&&Mp(t,function(s,o){if(n||(n=new Lo),ai(s))AZ(e,t,o,r,LZ,i,n);else{var l=i?i(D0(e,o),s,o+"",e,t,n):void 0;l===void 0&&(l=s),L0(e,o,l)}},sa)}var DZ,IZ=v(()=>{"use strict";E0();mL();Rk();RZ();ts();Qc();yL();a(LZ,"baseMerge");DZ=LZ});function NPe(e,t,r){for(var i=-1,n=e==null?0:e.length;++i<n;)if(r(t,e[i]))return!0;return!1}var NZ,MZ=v(()=>{"use strict";a(NPe,"arrayIncludesWith");NZ=NPe});function MPe(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var su,OZ=v(()=>{"use strict";a(MPe,"last");su=MPe});function OPe(e){return typeof e=="function"?e:ia}var Pp,Nk=v(()=>{"use strict";Wc();a(OPe,"castFunction");Pp=OPe});function PPe(e,t){var r=or(e)?zT:au;return r(e,Pp(t))}var we,xL=v(()=>{"use strict";MR();R0();Nk();Li();a(PPe,"forEach");we=PPe});var PZ=v(()=>{"use strict";xL()});function BPe(e,t){var r=[];return au(e,function(i,n,s){t(i,n,s)&&r.push(i)}),r}var BZ,$Z=v(()=>{"use strict";R0();a(BPe,"baseFilter");BZ=BPe});function $Pe(e,t){var r=or(e)?ak:BZ;return r(e,vn(t,3))}var Bn,FZ=v(()=>{"use strict";UR();$Z();Dl();Li();a($Pe,"filter");Bn=$Pe});function FPe(e){return function(t,r,i){var n=Object(t);if(!Ji(t)){var s=vn(r,3);t=mi(t),r=a(function(l){return s(n[l],l,n)},"predicate")}var o=e(t,r,i);return o>-1?n[s?t[o]:o]:void 0}}var VZ,GZ=v(()=>{"use strict";Dl();Ao();Rl();a(FPe,"createFind");VZ=FPe});function GPe(e,t,r){var i=e==null?0:e.length;if(!i)return-1;var n=r==null?0:BY(r);return n<0&&(n=VPe(i+n,0)),qT(e,vn(t,3),n)}var VPe,WZ,zZ=v(()=>{"use strict";OR();Dl();$Y();VPe=Math.max;a(GPe,"findIndex");WZ=GPe});var WPe,Bp,qZ=v(()=>{"use strict";GZ();zZ();WPe=VZ(WZ),Bp=WPe});function zPe(e,t){var r=-1,i=Ji(e)?Array(e.length):[];return au(e,function(n,s,o){i[++r]=t(n,s,o)}),i}var Mk,bL=v(()=>{"use strict";R0();Ao();a(zPe,"baseMap");Mk=zPe});function qPe(e,t){var r=or(e)?_o:Mk;return r(e,vn(t,3))}var vr,jZ=v(()=>{"use strict";u0();Dl();bL();Li();a(qPe,"map");vr=qPe});function jPe(e,t){return e==null?e:Mp(e,Pp(t),sa)}var TL,UZ=v(()=>{"use strict";Rk();Nk();Qc();a(jPe,"forIn");TL=jPe});function UPe(e,t){return e&&Op(e,Pp(t))}var kL,HZ=v(()=>{"use strict";Lk();Nk();a(UPe,"forOwn");kL=UPe});function HPe(e,t){return e>t}var YZ,KZ=v(()=>{"use strict";a(HPe,"baseGt");YZ=HPe});function XPe(e,t){return e!=null&&KPe.call(e,t)}var YPe,KPe,XZ,QZ=v(()=>{"use strict";YPe=Object.prototype,KPe=YPe.hasOwnProperty;a(XPe,"baseHas");XZ=XPe});function QPe(e,t){return e!=null&&wk(e,t,XZ)}var I0,ZZ=v(()=>{"use strict";QZ();hL();a(QPe,"has");I0=QPe});function JPe(e){return typeof e=="string"||!or(e)&&ki(e)&&Pn(e)==ZPe}var ZPe,JZ,eJ=v(()=>{"use strict";Gc();Li();Gs();ZPe="[object String]";a(JPe,"isString");JZ=JPe});function eBe(e,t){return _o(t,function(r){return e[r]})}var tJ,rJ=v(()=>{"use strict";u0();a(eBe,"baseValues");tJ=eBe});function tBe(e){return e==null?[]:tJ(e,mi(e))}var Aa,iJ=v(()=>{"use strict";rJ();Rl();a(tBe,"values");Aa=tBe});function sBe(e){if(e==null)return!0;if(Ji(e)&&(or(e)||typeof e=="string"||typeof e.splice=="function"||zs(e)||Xc(e)||Ws(e)))return!e.length;var t=Ea(e);if(t==rBe||t==iBe)return!e.size;if(Yc(e))return!Tp(e).length;for(var r in e)if(aBe.call(e,r))return!1;return!0}var rBe,iBe,nBe,aBe,Ok,nJ=v(()=>{"use strict";XT();Vh();xp();Li();Ao();bp();y0();T0();rBe="[object Map]",iBe="[object Set]",nBe=Object.prototype,aBe=nBe.hasOwnProperty;a(sBe,"isEmpty");Ok=sBe});function oBe(e){return e===void 0}var $r,aJ=v(()=>{"use strict";a(oBe,"isUndefined");$r=oBe});function lBe(e,t){return e<t}var Pk,CL=v(()=>{"use strict";a(lBe,"baseLt");Pk=lBe});function cBe(e,t){var r={};return t=vn(t,3),Op(e,function(i,n,s){jc(r,n,t(i,n,s))}),r}var Gh,sJ=v(()=>{"use strict";f0();Lk();Dl();a(cBe,"mapValues");Gh=cBe});function uBe(e,t,r){for(var i=-1,n=e.length;++i<n;){var s=e[i],o=t(s);if(o!=null&&(l===void 0?o===o&&!wa(o):r(o,l)))var l=o,u=s}return u}var $p,Bk=v(()=>{"use strict";Ph();a(uBe,"baseExtremum");$p=uBe});function hBe(e){return e&&e.length?$p(e,ia,YZ):void 0}var oa,oJ=v(()=>{"use strict";Bk();KZ();Wc();a(hBe,"max");oa=hBe});var dBe,Fp,lJ=v(()=>{"use strict";IZ();mK();dBe=pK(function(e,t,r){DZ(e,t,r)}),Fp=dBe});function fBe(e){return e&&e.length?$p(e,ia,Pk):void 0}var Il,cJ=v(()=>{"use strict";Bk();CL();Wc();a(fBe,"min");Il=fBe});function pBe(e,t){return e&&e.length?$p(e,vn(t,2),Pk):void 0}var Wh,uJ=v(()=>{"use strict";Bk();Dl();CL();a(pBe,"minBy");Wh=pBe});function mBe(e,t,r,i){if(!ai(e))return e;t=ru(t,e);for(var n=-1,s=t.length,o=s-1,l=e;l!=null&&++n<s;){var u=Ro(t[n]),h=r;if(u==="__proto__"||u==="constructor"||u==="prototype")return e;if(n!=o){var d=l[u];h=i?i(d,u,l):void 0,h===void 0&&(h=ai(d)?d:qc(t[n+1])?[]:{})}Uc(l,u,h),l=l[u]}return e}var hJ,dJ=v(()=>{"use strict";p0();_0();d0();ts();_p();a(mBe,"baseSet");hJ=mBe});function gBe(e,t,r){for(var i=-1,n=t.length,s={};++i<n;){var o=t[i],l=iu(e,o);r(l,o)&&hJ(s,ru(o,e),l)}return s}var fJ,pJ=v(()=>{"use strict";w0();dJ();_0();a(gBe,"basePickBy");fJ=gBe});function yBe(e,t){var r=e.length;for(e.sort(t);r--;)e[r]=e[r].value;return e}var mJ,gJ=v(()=>{"use strict";a(yBe,"baseSortBy");mJ=yBe});function xBe(e,t){if(e!==t){var r=e!==void 0,i=e===null,n=e===e,s=wa(e),o=t!==void 0,l=t===null,u=t===t,h=wa(t);if(!l&&!h&&!s&&e>t||s&&o&&u&&!l&&!h||i&&o&&u||!r&&u||!n)return 1;if(!i&&!s&&!h&&e<t||h&&r&&n&&!i&&!s||l&&r&&n||!o&&n||!u)return-1}return 0}var yJ,xJ=v(()=>{"use strict";Ph();a(xBe,"compareAscending");yJ=xBe});function bBe(e,t,r){for(var i=-1,n=e.criteria,s=t.criteria,o=n.length,l=r.length;++i<o;){var u=yJ(n[i],s[i]);if(u){if(i>=l)return u;var h=r[i];return u*(h=="desc"?-1:1)}}return e.index-t.index}var bJ,TJ=v(()=>{"use strict";xJ();a(bBe,"compareMultiple");bJ=bBe});function TBe(e,t,r){t.length?t=_o(t,function(s){return or(s)?function(o){return iu(o,s.length===1?s[0]:s)}:s}):t=[ia];var i=-1;t=_o(t,Kc(vn));var n=Mk(e,function(s,o,l){var u=_o(t,function(h){return h(s)});return{criteria:u,index:++i,value:s}});return mJ(n,function(s,o){return bJ(s,o,r)})}var kJ,CJ=v(()=>{"use strict";u0();w0();Dl();bL();gJ();x0();TJ();Wc();Li();a(TBe,"baseOrderBy");kJ=TBe});var kBe,vJ,SJ=v(()=>{"use strict";fL();kBe=Ak("length"),vJ=kBe});function NBe(e){for(var t=_J.lastIndex=0;_J.test(e);)++t;return t}var wJ,CBe,vBe,SBe,_Be,wBe,EBe,vL,SL,ABe,EJ,AJ,RJ,RBe,LJ,DJ,LBe,DBe,IBe,_J,IJ,NJ=v(()=>{"use strict";wJ="\\ud800-\\udfff",CBe="\\u0300-\\u036f",vBe="\\ufe20-\\ufe2f",SBe="\\u20d0-\\u20ff",_Be=CBe+vBe+SBe,wBe="\\ufe0e\\ufe0f",EBe="["+wJ+"]",vL="["+_Be+"]",SL="\\ud83c[\\udffb-\\udfff]",ABe="(?:"+vL+"|"+SL+")",EJ="[^"+wJ+"]",AJ="(?:\\ud83c[\\udde6-\\uddff]){2}",RJ="[\\ud800-\\udbff][\\udc00-\\udfff]",RBe="\\u200d",LJ=ABe+"?",DJ="["+wBe+"]?",LBe="(?:"+RBe+"(?:"+[EJ,AJ,RJ].join("|")+")"+DJ+LJ+")*",DBe=DJ+LJ+LBe,IBe="(?:"+[EJ+vL+"?",vL,AJ,RJ,EBe].join("|")+")",_J=RegExp(SL+"(?="+SL+")|"+IBe+DBe,"g");a(NBe,"unicodeSize");IJ=NBe});function MBe(e){return DX(e)?IJ(e):vJ(e)}var MJ,OJ=v(()=>{"use strict";SJ();IX();NJ();a(MBe,"stringSize");MJ=MBe});function OBe(e,t){return fJ(e,t,function(r,i){return Ek(e,i)})}var PJ,BJ=v(()=>{"use strict";pJ();dL();a(OBe,"basePick");PJ=OBe});var PBe,zh,$J=v(()=>{"use strict";BJ();EX();PBe=wX(function(e,t){return e==null?{}:PJ(e,t)}),zh=PBe});function FBe(e,t,r,i){for(var n=-1,s=$Be(BBe((t-e)/(r||1)),0),o=Array(s);s--;)o[i?s:++n]=e,e+=r;return o}var BBe,$Be,FJ,VJ=v(()=>{"use strict";BBe=Math.ceil,$Be=Math.max;a(FBe,"baseRange");FJ=FBe});function VBe(e){return function(t,r,i){return i&&typeof i!="number"&&El(t,r,i)&&(r=i=void 0),t=pp(t),r===void 0?(r=t,t=0):r=pp(r),i=i===void 0?t<r?1:-1:pp(i),FJ(t,r,i,e)}}var GJ,WJ=v(()=>{"use strict";VJ();g0();AR();a(VBe,"createRange");GJ=VBe});var GBe,ns,zJ=v(()=>{"use strict";WJ();GBe=GJ(),ns=GBe});function WBe(e,t,r,i,n){return n(e,function(s,o,l){r=i?(i=!1,s):t(r,s,o,l)}),r}var qJ,jJ=v(()=>{"use strict";a(WBe,"baseReduce");qJ=WBe});function zBe(e,t,r){var i=or(e)?NX:qJ,n=arguments.length<3;return i(e,vn(t,4),r,n,au)}var Do,UJ=v(()=>{"use strict";MX();R0();Dl();jJ();Li();a(zBe,"reduce");Do=zBe});function UBe(e){if(e==null)return 0;if(Ji(e))return JZ(e)?MJ(e):e.length;var t=Ea(e);return t==qBe||t==jBe?e.size:Tp(e).length}var qBe,jBe,_L,HJ=v(()=>{"use strict";XT();Vh();Ao();eJ();OJ();qBe="[object Map]",jBe="[object Set]";a(UBe,"size");_L=UBe});var HBe,Io,YJ=v(()=>{"use strict";rk();CJ();m0();g0();HBe=Hc(function(e,t){if(e==null)return[];var r=t.length;return r>1&&El(e,t[0],t[1])?t=[]:r>2&&El(t[0],t[1],t[2])&&(t=[t[0]]),kJ(e,Ep(t,1),[])}),Io=HBe});var YBe,KBe,KJ,XJ=v(()=>{"use strict";QR();eK();kk();YBe=1/0,KBe=nu&&1/Np(new nu([,-0]))[1]==YBe?function(e){return new nu(e)}:JY,KJ=KBe});function QBe(e,t,r){var i=-1,n=hK,s=e.length,o=!0,l=[],u=l;if(r)o=!1,n=NZ;else if(s>=XBe){var h=t?null:KJ(e);if(h)return Np(h);o=!1,n=bk,u=new xk}else u=t?[]:l;e:for(;++i<s;){var d=e[i],f=t?t(d):d;if(d=r||d!==0?d:0,o&&f===f){for(var p=u.length;p--;)if(u[p]===f)continue e;t&&u.push(f),l.push(d)}else n(u,f,r)||(u!==l&&u.push(f),l.push(d))}return l}var XBe,QJ,ZJ=v(()=>{"use strict";nL();dK();MZ();aL();XJ();kk();XBe=200;a(QBe,"baseUniq");QJ=QBe});var ZBe,wL,JJ=v(()=>{"use strict";rk();m0();ZJ();gL();ZBe=Hc(function(e){return QJ(Ep(e,1,Ik,!0))}),wL=ZBe});function e8e(e){var t=++JBe;return ek(e)+t}var JBe,qh,eee=v(()=>{"use strict";zR();JBe=0;a(e8e,"uniqueId");qh=e8e});function t8e(e,t,r){for(var i=-1,n=e.length,s=t.length,o={};++i<n;){var l=i<s?t[i]:void 0;r(o,e[i],l)}return o}var tee,ree=v(()=>{"use strict";a(t8e,"baseZipObject");tee=t8e});function r8e(e,t){return tee(e||[],t||[],Uc)}var $k,iee=v(()=>{"use strict";p0();ree();a(r8e,"zipObject");$k=r8e});var Lr=v(()=>{"use strict";$Q();FQ();DR();_Z();PZ();FZ();qZ();qR();xL();UZ();HZ();ZZ();Li();nJ();h0();aJ();Rl();OZ();jZ();sJ();oJ();lJ();cJ();uJ();vZ();$J();zJ();UJ();HJ();YJ();JJ();eee();iJ();iee();});function aee(e,t){e[t]?e[t]++:e[t]=1}function see(e,t){--e[t]||delete e[t]}function N0(e,t,r,i){var n=""+t,s=""+r;if(!e&&n>s){var o=n;n=s,s=o}return n+nee+s+nee+($r(i)?i8e:i)}function n8e(e,t,r,i){var n=""+t,s=""+r;if(!e&&n>s){var o=n;n=s,s=o}var l={v:n,w:s};return i&&(l.name=i),l}function EL(e,t){return N0(e,t.v,t.w,t.name)}var i8e,jh,nee,Dr,Fk=v(()=>{"use strict";Lr();i8e="\0",jh="\0",nee="",Dr=class{static{a(this,"Graph")}constructor(t={}){this._isDirected=Object.prototype.hasOwnProperty.call(t,"directed")?t.directed:!0,this._isMultigraph=Object.prototype.hasOwnProperty.call(t,"multigraph")?t.multigraph:!1,this._isCompound=Object.prototype.hasOwnProperty.call(t,"compound")?t.compound:!1,this._label=void 0,this._defaultNodeLabelFn=aa(void 0),this._defaultEdgeLabelFn=aa(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[jh]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}isDirected(){return this._isDirected}isMultigraph(){return this._isMultigraph}isCompound(){return this._isCompound}setGraph(t){return this._label=t,this}graph(){return this._label}setDefaultNodeLabel(t){return wo(t)||(t=aa(t)),this._defaultNodeLabelFn=t,this}nodeCount(){return this._nodeCount}nodes(){return mi(this._nodes)}sources(){var t=this;return Bn(this.nodes(),function(r){return Ok(t._in[r])})}sinks(){var t=this;return Bn(this.nodes(),function(r){return Ok(t._out[r])})}setNodes(t,r){var i=arguments,n=this;return we(t,function(s){i.length>1?n.setNode(s,r):n.setNode(s)}),this}setNode(t,r){return Object.prototype.hasOwnProperty.call(this._nodes,t)?(arguments.length>1&&(this._nodes[t]=r),this):(this._nodes[t]=arguments.length>1?r:this._defaultNodeLabelFn(t),this._isCompound&&(this._parent[t]=jh,this._children[t]={},this._children[jh][t]=!0),this._in[t]={},this._preds[t]={},this._out[t]={},this._sucs[t]={},++this._nodeCount,this)}node(t){return this._nodes[t]}hasNode(t){return Object.prototype.hasOwnProperty.call(this._nodes,t)}removeNode(t){if(Object.prototype.hasOwnProperty.call(this._nodes,t)){var r=a(i=>this.removeEdge(this._edgeObjs[i]),"removeEdge");delete this._nodes[t],this._isCompound&&(this._removeFromParentsChildList(t),delete this._parent[t],we(this.children(t),i=>{this.setParent(i)}),delete this._children[t]),we(mi(this._in[t]),r),delete this._in[t],delete this._preds[t],we(mi(this._out[t]),r),delete this._out[t],delete this._sucs[t],--this._nodeCount}return this}setParent(t,r){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if($r(r))r=jh;else{r+="";for(var i=r;!$r(i);i=this.parent(i))if(i===t)throw new Error("Setting "+r+" as parent of "+t+" would create a cycle");this.setNode(r)}return this.setNode(t),this._removeFromParentsChildList(t),this._parent[t]=r,this._children[r][t]=!0,this}_removeFromParentsChildList(t){delete this._children[this._parent[t]][t]}parent(t){if(this._isCompound){var r=this._parent[t];if(r!==jh)return r}}children(t){if($r(t)&&(t=jh),this._isCompound){var r=this._children[t];if(r)return mi(r)}else{if(t===jh)return this.nodes();if(this.hasNode(t))return[]}}predecessors(t){var r=this._preds[t];if(r)return mi(r)}successors(t){var r=this._sucs[t];if(r)return mi(r)}neighbors(t){var r=this.predecessors(t);if(r)return wL(r,this.successors(t))}isLeaf(t){var r;return this.isDirected()?r=this.successors(t):r=this.neighbors(t),r.length===0}filterNodes(t){var r=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});r.setGraph(this.graph());var i=this;we(this._nodes,function(o,l){t(l)&&r.setNode(l,o)}),we(this._edgeObjs,function(o){r.hasNode(o.v)&&r.hasNode(o.w)&&r.setEdge(o,i.edge(o))});var n={};function s(o){var l=i.parent(o);return l===void 0||r.hasNode(l)?(n[o]=l,l):l in n?n[l]:s(l)}return a(s,"findParent"),this._isCompound&&we(r.nodes(),function(o){r.setParent(o,s(o))}),r}setDefaultEdgeLabel(t){return wo(t)||(t=aa(t)),this._defaultEdgeLabelFn=t,this}edgeCount(){return this._edgeCount}edges(){return Aa(this._edgeObjs)}setPath(t,r){var i=this,n=arguments;return Do(t,function(s,o){return n.length>1?i.setEdge(s,o,r):i.setEdge(s,o),o}),this}setEdge(){var t,r,i,n,s=!1,o=arguments[0];typeof o=="object"&&o!==null&&"v"in o?(t=o.v,r=o.w,i=o.name,arguments.length===2&&(n=arguments[1],s=!0)):(t=o,r=arguments[1],i=arguments[3],arguments.length>2&&(n=arguments[2],s=!0)),t=""+t,r=""+r,$r(i)||(i=""+i);var l=N0(this._isDirected,t,r,i);if(Object.prototype.hasOwnProperty.call(this._edgeLabels,l))return s&&(this._edgeLabels[l]=n),this;if(!$r(i)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(t),this.setNode(r),this._edgeLabels[l]=s?n:this._defaultEdgeLabelFn(t,r,i);var u=n8e(this._isDirected,t,r,i);return t=u.v,r=u.w,Object.freeze(u),this._edgeObjs[l]=u,aee(this._preds[r],t),aee(this._sucs[t],r),this._in[r][l]=u,this._out[t][l]=u,this._edgeCount++,this}edge(t,r,i){var n=arguments.length===1?EL(this._isDirected,arguments[0]):N0(this._isDirected,t,r,i);return this._edgeLabels[n]}hasEdge(t,r,i){var n=arguments.length===1?EL(this._isDirected,arguments[0]):N0(this._isDirected,t,r,i);return Object.prototype.hasOwnProperty.call(this._edgeLabels,n)}removeEdge(t,r,i){var n=arguments.length===1?EL(this._isDirected,arguments[0]):N0(this._isDirected,t,r,i),s=this._edgeObjs[n];return s&&(t=s.v,r=s.w,delete this._edgeLabels[n],delete this._edgeObjs[n],see(this._preds[r],t),see(this._sucs[t],r),delete this._in[r][n],delete this._out[t][n],this._edgeCount--),this}inEdges(t,r){var i=this._in[t];if(i){var n=Aa(i);return r?Bn(n,function(s){return s.v===r}):n}}outEdges(t,r){var i=this._out[t];if(i){var n=Aa(i);return r?Bn(n,function(s){return s.w===r}):n}}nodeEdges(t,r){var i=this.inEdges(t,r);if(i)return i.concat(this.outEdges(t,r))}};Dr.prototype._nodeCount=0;Dr.prototype._edgeCount=0;a(aee,"incrementOrInitEntry");a(see,"decrementOrRemoveEntry");a(N0,"edgeArgsToId");a(n8e,"edgeArgsToObj");a(EL,"edgeObjToId")});var as=v(()=>{"use strict";Fk()});function oee(e){e._prev._next=e._next,e._next._prev=e._prev,delete e._next,delete e._prev}function a8e(e,t){if(e!=="_next"&&e!=="_prev")return t}var Gk,lee=v(()=>{"use strict";Gk=class{static{a(this,"List")}constructor(){var t={};t._next=t._prev=t,this._sentinel=t}dequeue(){var t=this._sentinel,r=t._prev;if(r!==t)return oee(r),r}enqueue(t){var r=this._sentinel;t._prev&&t._next&&oee(t),t._next=r._next,r._next._prev=t,r._next=t,t._prev=r}toString(){for(var t=[],r=this._sentinel,i=r._prev;i!==r;)t.push(JSON.stringify(i,a8e)),i=i._prev;return"["+t.join(", ")+"]"}};a(oee,"unlink");a(a8e,"filterOutLinks")});function cee(e,t){if(e.nodeCount()<=1)return[];var r=l8e(e,t||s8e),i=o8e(r.graph,r.buckets,r.zeroIdx);return is(vr(i,function(n){return e.outEdges(n.v,n.w)}))}function o8e(e,t,r){for(var i=[],n=t[t.length-1],s=t[0],o;e.nodeCount();){for(;o=s.dequeue();)AL(e,t,r,o);for(;o=n.dequeue();)AL(e,t,r,o);if(e.nodeCount()){for(var l=t.length-2;l>0;--l)if(o=t[l].dequeue(),o){i=i.concat(AL(e,t,r,o,!0));break}}}return i}function AL(e,t,r,i,n){var s=n?[]:void 0;return we(e.inEdges(i.v),function(o){var l=e.edge(o),u=e.node(o.v);n&&s.push({v:o.v,w:o.w}),u.out-=l,RL(t,r,u)}),we(e.outEdges(i.v),function(o){var l=e.edge(o),u=o.w,h=e.node(u);h.in-=l,RL(t,r,h)}),e.removeNode(i.v),s}function l8e(e,t){var r=new Dr,i=0,n=0;we(e.nodes(),function(l){r.setNode(l,{v:l,in:0,out:0})}),we(e.edges(),function(l){var u=r.edge(l.v,l.w)||0,h=t(l),d=u+h;r.setEdge(l.v,l.w,d),n=Math.max(n,r.node(l.v).out+=h),i=Math.max(i,r.node(l.w).in+=h)});var s=ns(n+i+3).map(function(){return new Gk}),o=i+1;return we(r.nodes(),function(l){RL(s,o,r.node(l))}),{graph:r,buckets:s,zeroIdx:o}}function RL(e,t,r){r.out?r.in?e[r.out-r.in+t].enqueue(r):e[e.length-1].enqueue(r):e[0].enqueue(r)}var s8e,uee=v(()=>{"use strict";Lr();as();lee();s8e=aa(1);a(cee,"greedyFAS");a(o8e,"doGreedyFAS");a(AL,"removeNode");a(l8e,"buildState");a(RL,"assignBucket")});function hee(e){var t=e.graph().acyclicer==="greedy"?cee(e,r(e)):c8e(e);we(t,function(i){var n=e.edge(i);e.removeEdge(i),n.forwardName=i.name,n.reversed=!0,e.setEdge(i.w,i.v,n,qh("rev"))});function r(i){return function(n){return i.edge(n).weight}}a(r,"weightFn")}function c8e(e){var t=[],r={},i={};function n(s){Object.prototype.hasOwnProperty.call(i,s)||(i[s]=!0,r[s]=!0,we(e.outEdges(s),function(o){Object.prototype.hasOwnProperty.call(r,o.w)?t.push(o):n(o.w)}),delete r[s])}return a(n,"dfs"),we(e.nodes(),n),t}function dee(e){we(e.edges(),function(t){var r=e.edge(t);if(r.reversed){e.removeEdge(t);var i=r.forwardName;delete r.reversed,delete r.forwardName,e.setEdge(t.w,t.v,r,i)}})}var LL=v(()=>{"use strict";Lr();uee();a(hee,"run");a(c8e,"dfsFAS");a(dee,"undo")});function No(e,t,r,i){var n;do n=qh(i);while(e.hasNode(n));return r.dummy=t,e.setNode(n,r),n}function pee(e){var t=new Dr().setGraph(e.graph());return we(e.nodes(),function(r){t.setNode(r,e.node(r))}),we(e.edges(),function(r){var i=t.edge(r.v,r.w)||{weight:0,minlen:1},n=e.edge(r);t.setEdge(r.v,r.w,{weight:i.weight+n.weight,minlen:Math.max(i.minlen,n.minlen)})}),t}function Wk(e){var t=new Dr({multigraph:e.isMultigraph()}).setGraph(e.graph());return we(e.nodes(),function(r){e.children(r).length||t.setNode(r,e.node(r))}),we(e.edges(),function(r){t.setEdge(r,e.edge(r))}),t}function DL(e,t){var r=e.x,i=e.y,n=t.x-r,s=t.y-i,o=e.width/2,l=e.height/2;if(!n&&!s)throw new Error("Not possible to find intersection inside of the rectangle");var u,h;return Math.abs(s)*o>Math.abs(n)*l?(s<0&&(l=-l),u=l*n/s,h=l):(n<0&&(o=-o),u=o,h=o*s/n),{x:r+u,y:i+h}}function ou(e){var t=vr(ns(NL(e)+1),function(){return[]});return we(e.nodes(),function(r){var i=e.node(r),n=i.rank;$r(n)||(t[n][i.order]=r)}),t}function mee(e){var t=Il(vr(e.nodes(),function(r){return e.node(r).rank}));we(e.nodes(),function(r){var i=e.node(r);I0(i,"rank")&&(i.rank-=t)})}function gee(e){var t=Il(vr(e.nodes(),function(s){return e.node(s).rank})),r=[];we(e.nodes(),function(s){var o=e.node(s).rank-t;r[o]||(r[o]=[]),r[o].push(s)});var i=0,n=e.graph().nodeRankFactor;we(r,function(s,o){$r(s)&&o%n!==0?--i:i&&we(s,function(l){e.node(l).rank+=i})})}function IL(e,t,r,i){var n={width:0,height:0};return arguments.length>=4&&(n.rank=r,n.order=i),No(e,"border",n,t)}function NL(e){return oa(vr(e.nodes(),function(t){var r=e.node(t).rank;if(!$r(r))return r}))}function yee(e,t){var r={lhs:[],rhs:[]};return we(e,function(i){t(i)?r.lhs.push(i):r.rhs.push(i)}),r}function xee(e,t){var r=Dk();try{return t()}finally{console.log(e+" time: "+(Dk()-r)+"ms")}}function bee(e,t){return t()}var Mo=v(()=>{"use strict";Lr();as();a(No,"addDummyNode");a(pee,"simplify");a(Wk,"asNonCompoundGraph");a(DL,"intersectRect");a(ou,"buildLayerMatrix");a(mee,"normalizeRanks");a(gee,"removeEmptyRanks");a(IL,"addBorderNode");a(NL,"maxRank");a(yee,"partition");a(xee,"time");a(bee,"notime")});function kee(e){function t(r){var i=e.children(r),n=e.node(r);if(i.length&&we(i,t),Object.prototype.hasOwnProperty.call(n,"minRank")){n.borderLeft=[],n.borderRight=[];for(var s=n.minRank,o=n.maxRank+1;s<o;++s)Tee(e,"borderLeft","_bl",r,n,s),Tee(e,"borderRight","_br",r,n,s)}}a(t,"dfs"),we(e.children(),t)}function Tee(e,t,r,i,n,s){var o={width:0,height:0,rank:s,borderType:t},l=n[t][s-1],u=No(e,"border",o,r);n[t][s]=u,e.setParent(u,i),l&&e.setEdge(l,u,{weight:1})}var Cee=v(()=>{"use strict";Lr();Mo();a(kee,"addBorderSegments");a(Tee,"addBorderNode")});function See(e){var t=e.graph().rankdir.toLowerCase();(t==="lr"||t==="rl")&&wee(e)}function _ee(e){var t=e.graph().rankdir.toLowerCase();(t==="bt"||t==="rl")&&u8e(e),(t==="lr"||t==="rl")&&(h8e(e),wee(e))}function wee(e){we(e.nodes(),function(t){vee(e.node(t))}),we(e.edges(),function(t){vee(e.edge(t))})}function vee(e){var t=e.width;e.width=e.height,e.height=t}function u8e(e){we(e.nodes(),function(t){ML(e.node(t))}),we(e.edges(),function(t){var r=e.edge(t);we(r.points,ML),Object.prototype.hasOwnProperty.call(r,"y")&&ML(r)})}function ML(e){e.y=-e.y}function h8e(e){we(e.nodes(),function(t){OL(e.node(t))}),we(e.edges(),function(t){var r=e.edge(t);we(r.points,OL),Object.prototype.hasOwnProperty.call(r,"x")&&OL(r)})}function OL(e){var t=e.x;e.x=e.y,e.y=t}var Eee=v(()=>{"use strict";Lr();a(See,"adjust");a(_ee,"undo");a(wee,"swapWidthHeight");a(vee,"swapWidthHeightOne");a(u8e,"reverseY");a(ML,"reverseYOne");a(h8e,"swapXY");a(OL,"swapXYOne")});function Aee(e){e.graph().dummyChains=[],we(e.edges(),function(t){f8e(e,t)})}function f8e(e,t){var r=t.v,i=e.node(r).rank,n=t.w,s=e.node(n).rank,o=t.name,l=e.edge(t),u=l.labelRank;if(s!==i+1){e.removeEdge(t);var h=void 0,d,f;for(f=0,++i;i<s;++f,++i)l.points=[],h={width:0,height:0,edgeLabel:l,edgeObj:t,rank:i},d=No(e,"edge",h,"_d"),i===u&&(h.width=l.width,h.height=l.height,h.dummy="edge-label",h.labelpos=l.labelpos),e.setEdge(r,d,{weight:l.weight},o),f===0&&e.graph().dummyChains.push(d),r=d;e.setEdge(r,n,{weight:l.weight},o)}}function Ree(e){we(e.graph().dummyChains,function(t){var r=e.node(t),i=r.edgeLabel,n;for(e.setEdge(r.edgeObj,i);r.dummy;)n=e.successors(t)[0],e.removeNode(t),i.points.push({x:r.x,y:r.y}),r.dummy==="edge-label"&&(i.x=r.x,i.y=r.y,i.width=r.width,i.height=r.height),t=n,r=e.node(t)})}var PL=v(()=>{"use strict";Lr();Mo();a(Aee,"run");a(f8e,"normalizeEdge");a(Ree,"undo")});function M0(e){var t={};function r(i){var n=e.node(i);if(Object.prototype.hasOwnProperty.call(t,i))return n.rank;t[i]=!0;var s=Il(vr(e.outEdges(i),function(o){return r(o.w)-e.edge(o).minlen}));return(s===Number.POSITIVE_INFINITY||s===void 0||s===null)&&(s=0),n.rank=s}a(r,"dfs"),we(e.sources(),r)}function Uh(e,t){return e.node(t.w).rank-e.node(t.v).rank-e.edge(t).minlen}var zk=v(()=>{"use strict";Lr();a(M0,"longestPath");a(Uh,"slack")});function qk(e){var t=new Dr({directed:!1}),r=e.nodes()[0],i=e.nodeCount();t.setNode(r,{});for(var n,s;p8e(t,e)<i;)n=m8e(t,e),s=t.hasNode(n.v)?Uh(e,n):-Uh(e,n),g8e(t,e,s);return t}function p8e(e,t){function r(i){we(t.nodeEdges(i),function(n){var s=n.v,o=i===s?n.w:s;!e.hasNode(o)&&!Uh(t,n)&&(e.setNode(o,{}),e.setEdge(i,o,{}),r(o))})}return a(r,"dfs"),we(e.nodes(),r),e.nodeCount()}function m8e(e,t){return Wh(t.edges(),function(r){if(e.hasNode(r.v)!==e.hasNode(r.w))return Uh(t,r)})}function g8e(e,t,r){we(e.nodes(),function(i){t.node(i).rank+=r})}var BL=v(()=>{"use strict";Lr();as();zk();a(qk,"feasibleTree");a(p8e,"tightTree");a(m8e,"findMinSlackEdge");a(g8e,"shiftRanks")});var Dee=v(()=>{"use strict"});var $L=v(()=>{"use strict"});var KQt,FL=v(()=>{"use strict";Lr();$L();KQt=aa(1)});var Iee=v(()=>{"use strict";FL()});var VL=v(()=>{"use strict"});var Nee=v(()=>{"use strict";VL()});var sZt,Mee=v(()=>{"use strict";Lr();sZt=aa(1)});function GL(e){var t={},r={},i=[];function n(s){if(Object.prototype.hasOwnProperty.call(r,s))throw new O0;Object.prototype.hasOwnProperty.call(t,s)||(r[s]=!0,t[s]=!0,we(e.predecessors(s),n),delete r[s],i.push(s))}if(a(n,"visit"),we(e.sinks(),n),_L(t)!==e.nodeCount())throw new O0;return i}function O0(){}var WL=v(()=>{"use strict";Lr();GL.CycleException=O0;a(GL,"topsort");a(O0,"CycleException");O0.prototype=new Error});var Oee=v(()=>{"use strict";WL()});function jk(e,t,r){or(t)||(t=[t]);var i=(e.isDirected()?e.successors:e.neighbors).bind(e),n=[],s={};return we(t,function(o){if(!e.hasNode(o))throw new Error("Graph does not have node: "+o);Pee(e,o,r==="post",s,i,n)}),n}function Pee(e,t,r,i,n,s){Object.prototype.hasOwnProperty.call(i,t)||(i[t]=!0,r||s.push(t),we(n(t),function(o){Pee(e,o,r,i,n,s)}),r&&s.push(t))}var zL=v(()=>{"use strict";Lr();a(jk,"dfs");a(Pee,"doDfs")});function qL(e,t){return jk(e,t,"post")}var Bee=v(()=>{"use strict";zL();a(qL,"postorder")});function jL(e,t){return jk(e,t,"pre")}var $ee=v(()=>{"use strict";zL();a(jL,"preorder")});var Fee=v(()=>{"use strict";$L();Fk()});var Vee=v(()=>{"use strict";Dee();FL();Iee();Nee();Mee();Oee();Bee();$ee();Fee();VL();WL()});function cu(e){e=pee(e),M0(e);var t=qk(e);HL(t),UL(t,e);for(var r,i;r=qee(t);)i=jee(t,e,r),Uee(t,e,r,i)}function UL(e,t){var r=qL(e,e.nodes());r=r.slice(0,r.length-1),we(r,function(i){k8e(e,t,i)})}function k8e(e,t,r){var i=e.node(r),n=i.parent;e.edge(r,n).cutvalue=Wee(e,t,r)}function Wee(e,t,r){var i=e.node(r),n=i.parent,s=!0,o=t.edge(r,n),l=0;return o||(s=!1,o=t.edge(n,r)),l=o.weight,we(t.nodeEdges(r),function(u){var h=u.v===r,d=h?u.w:u.v;if(d!==n){var f=h===s,p=t.edge(u).weight;if(l+=f?p:-p,v8e(e,r,d)){var m=e.edge(r,d).cutvalue;l+=f?-m:m}}}),l}function HL(e,t){arguments.length<2&&(t=e.nodes()[0]),zee(e,{},1,t)}function zee(e,t,r,i,n){var s=r,o=e.node(i);return t[i]=!0,we(e.neighbors(i),function(l){Object.prototype.hasOwnProperty.call(t,l)||(r=zee(e,t,r,l,i))}),o.low=s,o.lim=r++,n?o.parent=n:delete o.parent,r}function qee(e){return Bp(e.edges(),function(t){return e.edge(t).cutvalue<0})}function jee(e,t,r){var i=r.v,n=r.w;t.hasEdge(i,n)||(i=r.w,n=r.v);var s=e.node(i),o=e.node(n),l=s,u=!1;s.lim>o.lim&&(l=o,u=!0);var h=Bn(t.edges(),function(d){return u===Gee(e,e.node(d.v),l)&&u!==Gee(e,e.node(d.w),l)});return Wh(h,function(d){return Uh(t,d)})}function Uee(e,t,r,i){var n=r.v,s=r.w;e.removeEdge(n,s),e.setEdge(i.v,i.w,{}),HL(e),UL(e,t),C8e(e,t)}function C8e(e,t){var r=Bp(e.nodes(),function(n){return!t.node(n).parent}),i=jL(e,r);i=i.slice(1),we(i,function(n){var s=e.node(n).parent,o=t.edge(n,s),l=!1;o||(o=t.edge(s,n),l=!0),t.node(n).rank=t.node(s).rank+(l?o.minlen:-o.minlen)})}function v8e(e,t,r){return e.hasEdge(t,r)}function Gee(e,t,r){return r.low<=t.lim&&t.lim<=r.lim}var Hee=v(()=>{"use strict";Lr();Vee();Mo();BL();zk();cu.initLowLimValues=HL;cu.initCutValues=UL;cu.calcCutValue=Wee;cu.leaveEdge=qee;cu.enterEdge=jee;cu.exchangeEdges=Uee;a(cu,"networkSimplex");a(UL,"initCutValues");a(k8e,"assignCutValue");a(Wee,"calcCutValue");a(HL,"initLowLimValues");a(zee,"dfsAssignLowLim");a(qee,"leaveEdge");a(jee,"enterEdge");a(Uee,"exchangeEdges");a(C8e,"updateRanks");a(v8e,"isTreeEdge");a(Gee,"isDescendant")});function YL(e){switch(e.graph().ranker){case"network-simplex":Yee(e);break;case"tight-tree":_8e(e);break;case"longest-path":S8e(e);break;default:Yee(e)}}function _8e(e){M0(e),qk(e)}function Yee(e){cu(e)}var S8e,KL=v(()=>{"use strict";BL();Hee();zk();a(YL,"rank");S8e=M0;a(_8e,"tightTreeRanker");a(Yee,"networkSimplexRanker")});function Kee(e){var t=No(e,"root",{},"_root"),r=w8e(e),i=oa(Aa(r))-1,n=2*i+1;e.graph().nestingRoot=t,we(e.edges(),function(o){e.edge(o).minlen*=n});var s=E8e(e)+1;we(e.children(),function(o){Xee(e,t,n,s,i,r,o)}),e.graph().nodeRankFactor=n}function Xee(e,t,r,i,n,s,o){var l=e.children(o);if(!l.length){o!==t&&e.setEdge(t,o,{weight:0,minlen:r});return}var u=IL(e,"_bt"),h=IL(e,"_bb"),d=e.node(o);e.setParent(u,o),d.borderTop=u,e.setParent(h,o),d.borderBottom=h,we(l,function(f){Xee(e,t,r,i,n,s,f);var p=e.node(f),m=p.borderTop?p.borderTop:f,g=p.borderBottom?p.borderBottom:f,x=p.borderTop?i:2*i,b=m!==g?1:n-s[o]+1;e.setEdge(u,m,{weight:x,minlen:b,nestingEdge:!0}),e.setEdge(g,h,{weight:x,minlen:b,nestingEdge:!0})}),e.parent(o)||e.setEdge(t,u,{weight:0,minlen:n+s[o]})}function w8e(e){var t={};function r(i,n){var s=e.children(i);s&&s.length&&we(s,function(o){r(o,n+1)}),t[i]=n}return a(r,"dfs"),we(e.children(),function(i){r(i,1)}),t}function E8e(e){return Do(e.edges(),function(t,r){return t+e.edge(r).weight},0)}function Qee(e){var t=e.graph();e.removeNode(t.nestingRoot),delete t.nestingRoot,we(e.edges(),function(r){var i=e.edge(r);i.nestingEdge&&e.removeEdge(r)})}var Zee=v(()=>{"use strict";Lr();Mo();a(Kee,"run");a(Xee,"dfs");a(w8e,"treeDepths");a(E8e,"sumWeights");a(Qee,"cleanup")});function Jee(e,t,r){var i={},n;we(r,function(s){for(var o=e.parent(s),l,u;o;){if(l=e.parent(o),l?(u=i[l],i[l]=o):(u=n,n=o),u&&u!==o){t.setEdge(u,o);return}o=l}})}var ete=v(()=>{"use strict";Lr();a(Jee,"addSubgraphConstraints")});function tte(e,t,r){var i=R8e(e),n=new Dr({compound:!0}).setGraph({root:i}).setDefaultNodeLabel(function(s){return e.node(s)});return we(e.nodes(),function(s){var o=e.node(s),l=e.parent(s);(o.rank===t||o.minRank<=t&&t<=o.maxRank)&&(n.setNode(s),n.setParent(s,l||i),we(e[r](s),function(u){var h=u.v===s?u.w:u.v,d=n.edge(h,s),f=$r(d)?0:d.weight;n.setEdge(h,s,{weight:e.edge(u).weight+f})}),Object.prototype.hasOwnProperty.call(o,"minRank")&&n.setNode(s,{borderLeft:o.borderLeft[t],borderRight:o.borderRight[t]}))}),n}function R8e(e){for(var t;e.hasNode(t=qh("_root")););return t}var rte=v(()=>{"use strict";Lr();as();a(tte,"buildLayerGraph");a(R8e,"createRootNode")});function ite(e,t){for(var r=0,i=1;i<t.length;++i)r+=L8e(e,t[i-1],t[i]);return r}function L8e(e,t,r){for(var i=$k(r,vr(r,function(h,d){return d})),n=is(vr(t,function(h){return Io(vr(e.outEdges(h),function(d){return{pos:i[d.w],weight:e.edge(d).weight}}),"pos")})),s=1;s<r.length;)s<<=1;var o=2*s-1;s-=1;var l=vr(new Array(o),function(){return 0}),u=0;return we(n.forEach(function(h){var d=h.pos+s;l[d]+=h.weight;for(var f=0;d>0;)d%2&&(f+=l[d+1]),d=d-1>>1,l[d]+=h.weight;u+=h.weight*f})),u}var nte=v(()=>{"use strict";Lr();a(ite,"crossCount");a(L8e,"twoLayerCrossCount")});function ate(e){var t={},r=Bn(e.nodes(),function(l){return!e.children(l).length}),i=oa(vr(r,function(l){return e.node(l).rank})),n=vr(ns(i+1),function(){return[]});function s(l){if(!I0(t,l)){t[l]=!0;var u=e.node(l);n[u.rank].push(l),we(e.successors(l),s)}}a(s,"dfs");var o=Io(r,function(l){return e.node(l).rank});return we(o,s),n}var ste=v(()=>{"use strict";Lr();a(ate,"initOrder")});function ote(e,t){return vr(t,function(r){var i=e.inEdges(r);if(i.length){var n=Do(i,function(s,o){var l=e.edge(o),u=e.node(o.v);return{sum:s.sum+l.weight*u.order,weight:s.weight+l.weight}},{sum:0,weight:0});return{v:r,barycenter:n.sum/n.weight,weight:n.weight}}else return{v:r}})}var lte=v(()=>{"use strict";Lr();a(ote,"barycenter")});function cte(e,t){var r={};we(e,function(n,s){var o=r[n.v]={indegree:0,in:[],out:[],vs:[n.v],i:s};$r(n.barycenter)||(o.barycenter=n.barycenter,o.weight=n.weight)}),we(t.edges(),function(n){var s=r[n.v],o=r[n.w];!$r(s)&&!$r(o)&&(o.indegree++,s.out.push(r[n.w]))});var i=Bn(r,function(n){return!n.indegree});return D8e(i)}function D8e(e){var t=[];function r(s){return function(o){o.merged||($r(o.barycenter)||$r(s.barycenter)||o.barycenter>=s.barycenter)&&I8e(s,o)}}a(r,"handleIn");function i(s){return function(o){o.in.push(s),--o.indegree===0&&e.push(o)}}for(a(i,"handleOut");e.length;){var n=e.pop();t.push(n),we(n.in.reverse(),r(n)),we(n.out,i(n))}return vr(Bn(t,function(s){return!s.merged}),function(s){return zh(s,["vs","i","barycenter","weight"])})}function I8e(e,t){var r=0,i=0;e.weight&&(r+=e.barycenter*e.weight,i+=e.weight),t.weight&&(r+=t.barycenter*t.weight,i+=t.weight),e.vs=t.vs.concat(e.vs),e.barycenter=r/i,e.weight=i,e.i=Math.min(t.i,e.i),t.merged=!0}var ute=v(()=>{"use strict";Lr();a(cte,"resolveConflicts");a(D8e,"doResolveConflicts");a(I8e,"mergeEntries")});function dte(e,t){var r=yee(e,function(d){return Object.prototype.hasOwnProperty.call(d,"barycenter")}),i=r.lhs,n=Io(r.rhs,function(d){return-d.i}),s=[],o=0,l=0,u=0;i.sort(N8e(!!t)),u=hte(s,n,u),we(i,function(d){u+=d.vs.length,s.push(d.vs),o+=d.barycenter*d.weight,l+=d.weight,u=hte(s,n,u)});var h={vs:is(s)};return l&&(h.barycenter=o/l,h.weight=l),h}function hte(e,t,r){for(var i;t.length&&(i=su(t)).i<=r;)t.pop(),e.push(i.vs),r++;return r}function N8e(e){return function(t,r){return t.barycenter<r.barycenter?-1:t.barycenter>r.barycenter?1:e?r.i-t.i:t.i-r.i}}var fte=v(()=>{"use strict";Lr();Mo();a(dte,"sort");a(hte,"consumeUnsortable");a(N8e,"compareWithBias")});function XL(e,t,r,i){var n=e.children(t),s=e.node(t),o=s?s.borderLeft:void 0,l=s?s.borderRight:void 0,u={};o&&(n=Bn(n,function(g){return g!==o&&g!==l}));var h=ote(e,n);we(h,function(g){if(e.children(g.v).length){var x=XL(e,g.v,r,i);u[g.v]=x,Object.prototype.hasOwnProperty.call(x,"barycenter")&&O8e(g,x)}});var d=cte(h,r);M8e(d,u);var f=dte(d,i);if(o&&(f.vs=is([o,f.vs,l]),e.predecessors(o).length)){var p=e.node(e.predecessors(o)[0]),m=e.node(e.predecessors(l)[0]);Object.prototype.hasOwnProperty.call(f,"barycenter")||(f.barycenter=0,f.weight=0),f.barycenter=(f.barycenter*f.weight+p.order+m.order)/(f.weight+2),f.weight+=2}return f}function M8e(e,t){we(e,function(r){r.vs=is(r.vs.map(function(i){return t[i]?t[i].vs:i}))})}function O8e(e,t){$r(e.barycenter)?(e.barycenter=t.barycenter,e.weight=t.weight):(e.barycenter=(e.barycenter*e.weight+t.barycenter*t.weight)/(e.weight+t.weight),e.weight+=t.weight)}var pte=v(()=>{"use strict";Lr();lte();ute();fte();a(XL,"sortSubgraph");a(M8e,"expandSubgraphs");a(O8e,"mergeBarycenters")});function yte(e){var t=NL(e),r=mte(e,ns(1,t+1),"inEdges"),i=mte(e,ns(t-1,-1,-1),"outEdges"),n=ate(e);gte(e,n);for(var s=Number.POSITIVE_INFINITY,o,l=0,u=0;u<4;++l,++u){P8e(l%2?r:i,l%4>=2),n=ou(e);var h=ite(e,n);h<s&&(u=0,o=iL(n),s=h)}gte(e,o)}function mte(e,t,r){return vr(t,function(i){return tte(e,i,r)})}function P8e(e,t){var r=new Dr;we(e,function(i){var n=i.graph().root,s=XL(i,n,r,t);we(s.vs,function(o,l){i.node(o).order=l}),Jee(i,r,s.vs)})}function gte(e,t){we(t,function(r){we(r,function(i,n){e.node(i).order=n})})}var xte=v(()=>{"use strict";Lr();as();Mo();ete();rte();nte();ste();pte();a(yte,"order");a(mte,"buildLayerGraphs");a(P8e,"sweepLayerGraphs");a(gte,"assignOrder")});function bte(e){var t=$8e(e);we(e.graph().dummyChains,function(r){for(var i=e.node(r),n=i.edgeObj,s=B8e(e,t,n.v,n.w),o=s.path,l=s.lca,u=0,h=o[u],d=!0;r!==n.w;){if(i=e.node(r),d){for(;(h=o[u])!==l&&e.node(h).maxRank<i.rank;)u++;h===l&&(d=!1)}if(!d){for(;u<o.length-1&&e.node(h=o[u+1]).minRank<=i.rank;)u++;h=o[u]}e.setParent(r,h),r=e.successors(r)[0]}})}function B8e(e,t,r,i){var n=[],s=[],o=Math.min(t[r].low,t[i].low),l=Math.max(t[r].lim,t[i].lim),u,h;u=r;do u=e.parent(u),n.push(u);while(u&&(t[u].low>o||l>t[u].lim));for(h=u,u=i;(u=e.parent(u))!==h;)s.push(u);return{path:n.concat(s.reverse()),lca:h}}function $8e(e){var t={},r=0;function i(n){var s=r;we(e.children(n),i),t[n]={low:s,lim:r++}}return a(i,"dfs"),we(e.children(),i),t}var Tte=v(()=>{"use strict";Lr();a(bte,"parentDummyChains");a(B8e,"findPath");a($8e,"postorder")});function F8e(e,t){var r={};function i(n,s){var o=0,l=0,u=n.length,h=su(s);return we(s,function(d,f){var p=G8e(e,d),m=p?e.node(p).order:u;(p||d===h)&&(we(s.slice(l,f+1),function(g){we(e.predecessors(g),function(x){var b=e.node(x),T=b.order;(T<o||m<T)&&!(b.dummy&&e.node(g).dummy)&&kte(r,x,g)})}),l=f+1,o=m)}),s}return a(i,"visitLayer"),Do(t,i),r}function V8e(e,t){var r={};function i(s,o,l,u,h){var d;we(ns(o,l),function(f){d=s[f],e.node(d).dummy&&we(e.predecessors(d),function(p){var m=e.node(p);m.dummy&&(m.order<u||m.order>h)&&kte(r,p,d)})})}a(i,"scan");function n(s,o){var l=-1,u,h=0;return we(o,function(d,f){if(e.node(d).dummy==="border"){var p=e.predecessors(d);p.length&&(u=e.node(p[0]).order,i(o,h,f,l,u),h=f,l=u)}i(o,h,o.length,u,s.length)}),o}return a(n,"visitLayer"),Do(t,n),r}function G8e(e,t){if(e.node(t).dummy)return Bp(e.predecessors(t),function(r){return e.node(r).dummy})}function kte(e,t,r){if(t>r){var i=t;t=r,r=i}Object.prototype.hasOwnProperty.call(e,t)||Object.defineProperty(e,t,{enumerable:!0,configurable:!0,value:{},writable:!0});var n=e[t];Object.defineProperty(n,r,{enumerable:!0,configurable:!0,value:!0,writable:!0})}function W8e(e,t,r){if(t>r){var i=t;t=r,r=i}return!!e[t]&&Object.prototype.hasOwnProperty.call(e[t],r)}function z8e(e,t,r,i){var n={},s={},o={};return we(t,function(l){we(l,function(u,h){n[u]=u,s[u]=u,o[u]=h})}),we(t,function(l){var u=-1;we(l,function(h){var d=i(h);if(d.length){d=Io(d,function(x){return o[x]});for(var f=(d.length-1)/2,p=Math.floor(f),m=Math.ceil(f);p<=m;++p){var g=d[p];s[h]===h&&u<o[g]&&!W8e(r,h,g)&&(s[g]=h,s[h]=n[h]=n[g],u=o[g])}}})}),{root:n,align:s}}function q8e(e,t,r,i,n){var s={},o=j8e(e,t,r,n),l=n?"borderLeft":"borderRight";function u(f,p){for(var m=o.nodes(),g=m.pop(),x={};g;)x[g]?f(g):(x[g]=!0,m.push(g),m=m.concat(p(g))),g=m.pop()}a(u,"iterate");function h(f){s[f]=o.inEdges(f).reduce(function(p,m){return Math.max(p,s[m.v]+o.edge(m))},0)}a(h,"pass1");function d(f){var p=o.outEdges(f).reduce(function(g,x){return Math.min(g,s[x.w]-o.edge(x))},Number.POSITIVE_INFINITY),m=e.node(f);p!==Number.POSITIVE_INFINITY&&m.borderType!==l&&(s[f]=Math.max(s[f],p))}return a(d,"pass2"),u(h,o.predecessors.bind(o)),u(d,o.successors.bind(o)),we(i,function(f){s[f]=s[r[f]]}),s}function j8e(e,t,r,i){var n=new Dr,s=e.graph(),o=K8e(s.nodesep,s.edgesep,i);return we(t,function(l){var u;we(l,function(h){var d=r[h];if(n.setNode(d),u){var f=r[u],p=n.edge(f,d);n.setEdge(f,d,Math.max(o(e,h,u),p||0))}u=h})}),n}function U8e(e,t){return Wh(Aa(t),function(r){var i=Number.NEGATIVE_INFINITY,n=Number.POSITIVE_INFINITY;return TL(r,function(s,o){var l=X8e(e,o)/2;i=Math.max(s+l,i),n=Math.min(s-l,n)}),i-n})}function H8e(e,t){var r=Aa(t),i=Il(r),n=oa(r);we(["u","d"],function(s){we(["l","r"],function(o){var l=s+o,u=e[l],h;if(u!==t){var d=Aa(u);h=o==="l"?i-Il(d):n-oa(d),h&&(e[l]=Gh(u,function(f){return f+h}))}})})}function Y8e(e,t){return Gh(e.ul,function(r,i){if(t)return e[t.toLowerCase()][i];var n=Io(vr(e,i));return(n[1]+n[2])/2})}function Cte(e){var t=ou(e),r=Fp(F8e(e,t),V8e(e,t)),i={},n;we(["u","d"],function(o){n=o==="u"?t:Aa(t).reverse(),we(["l","r"],function(l){l==="r"&&(n=vr(n,function(f){return Aa(f).reverse()}));var u=(o==="u"?e.predecessors:e.successors).bind(e),h=z8e(e,n,r,u),d=q8e(e,n,h.root,h.align,l==="r");l==="r"&&(d=Gh(d,function(f){return-f})),i[o+l]=d})});var s=U8e(e,i);return H8e(i,s),Y8e(i,e.graph().align)}function K8e(e,t,r){return function(i,n,s){var o=i.node(n),l=i.node(s),u=0,h;if(u+=o.width/2,Object.prototype.hasOwnProperty.call(o,"labelpos"))switch(o.labelpos.toLowerCase()){case"l":h=-o.width/2;break;case"r":h=o.width/2;break}if(h&&(u+=r?h:-h),h=0,u+=(o.dummy?t:e)/2,u+=(l.dummy?t:e)/2,u+=l.width/2,Object.prototype.hasOwnProperty.call(l,"labelpos"))switch(l.labelpos.toLowerCase()){case"l":h=l.width/2;break;case"r":h=-l.width/2;break}return h&&(u+=r?h:-h),h=0,u}}function X8e(e,t){return e.node(t).width}var vte=v(()=>{"use strict";Lr();as();Mo();a(F8e,"findType1Conflicts");a(V8e,"findType2Conflicts");a(G8e,"findOtherInnerSegmentNode");a(kte,"addConflict");a(W8e,"hasConflict");a(z8e,"verticalAlignment");a(q8e,"horizontalCompaction");a(j8e,"buildBlockGraph");a(U8e,"findSmallestWidthAlignment");a(H8e,"alignCoordinates");a(Y8e,"balance");a(Cte,"positionX");a(K8e,"sep");a(X8e,"width")});function Ste(e){e=Wk(e),Q8e(e),kL(Cte(e),function(t,r){e.node(r).x=t})}function Q8e(e){var t=ou(e),r=e.graph().ranksep,i=0;we(t,function(n){var s=oa(vr(n,function(o){return e.node(o).height}));we(n,function(o){e.node(o).y=i+s/2}),i+=s+r})}var _te=v(()=>{"use strict";Lr();Mo();vte();a(Ste,"position");a(Q8e,"positionY")});function P0(e,t){var r=t&&t.debugTiming?xee:bee;r("layout",()=>{var i=r(" buildLayoutGraph",()=>l7e(e));r(" runLayout",()=>Z8e(i,r)),r(" updateInputGraph",()=>J8e(e,i))})}function Z8e(e,t){t(" makeSpaceForEdgeLabels",()=>c7e(e)),t(" removeSelfEdges",()=>x7e(e)),t(" acyclic",()=>hee(e)),t(" nestingGraph.run",()=>Kee(e)),t(" rank",()=>YL(Wk(e))),t(" injectEdgeLabelProxies",()=>u7e(e)),t(" removeEmptyRanks",()=>gee(e)),t(" nestingGraph.cleanup",()=>Qee(e)),t(" normalizeRanks",()=>mee(e)),t(" assignRankMinMax",()=>h7e(e)),t(" removeEdgeLabelProxies",()=>d7e(e)),t(" normalize.run",()=>Aee(e)),t(" parentDummyChains",()=>bte(e)),t(" addBorderSegments",()=>kee(e)),t(" order",()=>yte(e)),t(" insertSelfEdges",()=>b7e(e)),t(" adjustCoordinateSystem",()=>See(e)),t(" position",()=>Ste(e)),t(" positionSelfEdges",()=>T7e(e)),t(" removeBorderNodes",()=>y7e(e)),t(" normalize.undo",()=>Ree(e)),t(" fixupEdgeLabelCoords",()=>m7e(e)),t(" undoCoordinateSystem",()=>_ee(e)),t(" translateGraph",()=>f7e(e)),t(" assignNodeIntersects",()=>p7e(e)),t(" reversePoints",()=>g7e(e)),t(" acyclic.undo",()=>dee(e))}function J8e(e,t){we(e.nodes(),function(r){var i=e.node(r),n=t.node(r);i&&(i.x=n.x,i.y=n.y,t.children(r).length&&(i.width=n.width,i.height=n.height))}),we(e.edges(),function(r){var i=e.edge(r),n=t.edge(r);i.points=n.points,Object.prototype.hasOwnProperty.call(n,"x")&&(i.x=n.x,i.y=n.y)}),e.graph().width=t.graph().width,e.graph().height=t.graph().height}function l7e(e){var t=new Dr({multigraph:!0,compound:!0}),r=ZL(e.graph());return t.setGraph(Fp({},t7e,QL(r,e7e),zh(r,r7e))),we(e.nodes(),function(i){var n=ZL(e.node(i));t.setNode(i,pL(QL(n,i7e),n7e)),t.setParent(i,e.parent(i))}),we(e.edges(),function(i){var n=ZL(e.edge(i));t.setEdge(i,Fp({},s7e,QL(n,a7e),zh(n,o7e)))}),t}function c7e(e){var t=e.graph();t.ranksep/=2,we(e.edges(),function(r){var i=e.edge(r);i.minlen*=2,i.labelpos.toLowerCase()!=="c"&&(t.rankdir==="TB"||t.rankdir==="BT"?i.width+=i.labeloffset:i.height+=i.labeloffset)})}function u7e(e){we(e.edges(),function(t){var r=e.edge(t);if(r.width&&r.height){var i=e.node(t.v),n=e.node(t.w),s={rank:(n.rank-i.rank)/2+i.rank,e:t};No(e,"edge-proxy",s,"_ep")}})}function h7e(e){var t=0;we(e.nodes(),function(r){var i=e.node(r);i.borderTop&&(i.minRank=e.node(i.borderTop).rank,i.maxRank=e.node(i.borderBottom).rank,t=oa(t,i.maxRank))}),e.graph().maxRank=t}function d7e(e){we(e.nodes(),function(t){var r=e.node(t);r.dummy==="edge-proxy"&&(e.edge(r.e).labelRank=r.rank,e.removeNode(t))})}function f7e(e){var t=Number.POSITIVE_INFINITY,r=0,i=Number.POSITIVE_INFINITY,n=0,s=e.graph(),o=s.marginx||0,l=s.marginy||0;function u(h){var d=h.x,f=h.y,p=h.width,m=h.height;t=Math.min(t,d-p/2),r=Math.max(r,d+p/2),i=Math.min(i,f-m/2),n=Math.max(n,f+m/2)}a(u,"getExtremes"),we(e.nodes(),function(h){u(e.node(h))}),we(e.edges(),function(h){var d=e.edge(h);Object.prototype.hasOwnProperty.call(d,"x")&&u(d)}),t-=o,i-=l,we(e.nodes(),function(h){var d=e.node(h);d.x-=t,d.y-=i}),we(e.edges(),function(h){var d=e.edge(h);we(d.points,function(f){f.x-=t,f.y-=i}),Object.prototype.hasOwnProperty.call(d,"x")&&(d.x-=t),Object.prototype.hasOwnProperty.call(d,"y")&&(d.y-=i)}),s.width=r-t+o,s.height=n-i+l}function p7e(e){we(e.edges(),function(t){var r=e.edge(t),i=e.node(t.v),n=e.node(t.w),s,o;r.points?(s=r.points[0],o=r.points[r.points.length-1]):(r.points=[],s=n,o=i),r.points.unshift(DL(i,s)),r.points.push(DL(n,o))})}function m7e(e){we(e.edges(),function(t){var r=e.edge(t);if(Object.prototype.hasOwnProperty.call(r,"x"))switch((r.labelpos==="l"||r.labelpos==="r")&&(r.width-=r.labeloffset),r.labelpos){case"l":r.x-=r.width/2+r.labeloffset;break;case"r":r.x+=r.width/2+r.labeloffset;break}})}function g7e(e){we(e.edges(),function(t){var r=e.edge(t);r.reversed&&r.points.reverse()})}function y7e(e){we(e.nodes(),function(t){if(e.children(t).length){var r=e.node(t),i=e.node(r.borderTop),n=e.node(r.borderBottom),s=e.node(su(r.borderLeft)),o=e.node(su(r.borderRight));r.width=Math.abs(o.x-s.x),r.height=Math.abs(n.y-i.y),r.x=s.x+r.width/2,r.y=i.y+r.height/2}}),we(e.nodes(),function(t){e.node(t).dummy==="border"&&e.removeNode(t)})}function x7e(e){we(e.edges(),function(t){if(t.v===t.w){var r=e.node(t.v);r.selfEdges||(r.selfEdges=[]),r.selfEdges.push({e:t,label:e.edge(t)}),e.removeEdge(t)}})}function b7e(e){var t=ou(e);we(t,function(r){var i=0;we(r,function(n,s){var o=e.node(n);o.order=s+i,we(o.selfEdges,function(l){No(e,"selfedge",{width:l.label.width,height:l.label.height,rank:o.rank,order:s+ ++i,e:l.e,label:l.label},"_se")}),delete o.selfEdges})})}function T7e(e){we(e.nodes(),function(t){var r=e.node(t);if(r.dummy==="selfedge"){var i=e.node(r.e.v),n=i.x+i.width/2,s=i.y,o=r.x-n,l=i.height/2;e.setEdge(r.e,r.label),e.removeNode(t),r.label.points=[{x:n+2*o/3,y:s-l},{x:n+5*o/6,y:s-l},{x:n+o,y:s},{x:n+5*o/6,y:s+l},{x:n+2*o/3,y:s+l}],r.label.x=r.x,r.label.y=r.y}})}function QL(e,t){return Gh(zh(e,t),Number)}function ZL(e){var t={};return we(e,function(r,i){t[i.toLowerCase()]=r}),t}var e7e,t7e,r7e,i7e,n7e,a7e,s7e,o7e,wte=v(()=>{"use strict";Lr();as();Cee();Eee();LL();PL();KL();Zee();xte();Tte();_te();Mo();a(P0,"layout");a(Z8e,"runLayout");a(J8e,"updateInputGraph");e7e=["nodesep","edgesep","ranksep","marginx","marginy"],t7e={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},r7e=["acyclicer","ranker","rankdir","align"],i7e=["width","height"],n7e={width:0,height:0},a7e=["minlen","weight","width","height","labeloffset"],s7e={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},o7e=["labelpos"];a(l7e,"buildLayoutGraph");a(c7e,"makeSpaceForEdgeLabels");a(u7e,"injectEdgeLabelProxies");a(h7e,"assignRankMinMax");a(d7e,"removeEdgeLabelProxies");a(f7e,"translateGraph");a(p7e,"assignNodeIntersects");a(m7e,"fixupEdgeLabelCoords");a(g7e,"reversePointsForReversedEdges");a(y7e,"removeBorderNodes");a(x7e,"removeSelfEdges");a(b7e,"insertSelfEdges");a(T7e,"positionSelfEdges");a(QL,"selectNumberAttrs");a(ZL,"canonicalize")});var JL=v(()=>{"use strict";LL();wte();PL();KL()});function ss(e){var t={options:{directed:e.isDirected(),multigraph:e.isMultigraph(),compound:e.isCompound()},nodes:k7e(e),edges:C7e(e)};return $r(e.graph())||(t.value=rL(e.graph())),t}function k7e(e){return vr(e.nodes(),function(t){var r=e.node(t),i=e.parent(t),n={v:t};return $r(r)||(n.value=r),$r(i)||(n.parent=i),n})}function C7e(e){return vr(e.edges(),function(t){var r=e.edge(t),i={v:t.v,w:t.w};return $r(t.name)||(i.name=t.name),$r(r)||(i.value=r),i})}var eD=v(()=>{"use strict";Lr();Fk();a(ss,"write");a(k7e,"writeNodes");a(C7e,"writeEdges")});var cr,Hh,Rte,Lte,Uk,v7e,Dte,Ite,S7e,Vp,Ate,Nte,Mte,Ote,Pte,Bte=v(()=>{"use strict";nt();as();eD();cr=new Map,Hh=new Map,Rte=new Map,Lte=a(()=>{Hh.clear(),Rte.clear(),cr.clear()},"clear"),Uk=a((e,t)=>{let r=Hh.get(t)||[];return W.trace("In isDescendant",t," ",e," = ",r.includes(e)),r.includes(e)},"isDescendant"),v7e=a((e,t)=>{let r=Hh.get(t)||[];return W.info("Descendants of ",t," is ",r),W.info("Edge is ",e),e.v===t||e.w===t?!1:r?r.includes(e.v)||Uk(e.v,t)||Uk(e.w,t)||r.includes(e.w):(W.debug("Tilt, ",t,",not in descendants"),!1)},"edgeInCluster"),Dte=a((e,t,r,i)=>{W.warn("Copying children of ",e,"root",i,"data",t.node(e),i);let n=t.children(e)||[];e!==i&&n.push(e),W.warn("Copying (nodes) clusterId",e,"nodes",n),n.forEach(s=>{if(t.children(s).length>0)Dte(s,t,r,i);else{let o=t.node(s);W.info("cp ",s," to ",i," with parent ",e),r.setNode(s,o),i!==t.parent(s)&&(W.warn("Setting parent",s,t.parent(s)),r.setParent(s,t.parent(s))),e!==i&&s!==e?(W.debug("Setting parent",s,e),r.setParent(s,e)):(W.info("In copy ",e,"root",i,"data",t.node(e),i),W.debug("Not Setting parent for node=",s,"cluster!==rootId",e!==i,"node!==clusterId",s!==e));let l=t.edges(s);W.debug("Copying Edges",l),l.forEach(u=>{W.info("Edge",u);let h=t.edge(u.v,u.w,u.name);W.info("Edge data",h,i);try{v7e(u,i)?(W.info("Copying as ",u.v,u.w,h,u.name),r.setEdge(u.v,u.w,h,u.name),W.info("newGraph edges ",r.edges(),r.edge(r.edges()[0]))):W.info("Skipping copy of edge ",u.v,"-->",u.w," rootId: ",i," clusterId:",e)}catch(d){W.error(d)}})}W.debug("Removing node",s),t.removeNode(s)})},"copy"),Ite=a((e,t)=>{let r=t.children(e),i=[...r];for(let n of r)Rte.set(n,e),i=[...i,...Ite(n,t)];return i},"extractDescendants"),S7e=a((e,t,r)=>{let i=e.edges().filter(u=>u.v===t||u.w===t),n=e.edges().filter(u=>u.v===r||u.w===r),s=i.map(u=>({v:u.v===t?r:u.v,w:u.w===t?t:u.w})),o=n.map(u=>({v:u.v,w:u.w}));return s.filter(u=>o.some(h=>u.v===h.v&&u.w===h.w))},"findCommonEdges"),Vp=a((e,t,r)=>{let i=t.children(e);if(W.trace("Searching children of id ",e,i),i.length<1)return e;let n;for(let s of i){let o=Vp(s,t,r),l=S7e(t,r,o);if(o)if(l.length>0)n=o;else return o}return n},"findNonClusterChild"),Ate=a(e=>!cr.has(e)||!cr.get(e).externalConnections?e:cr.has(e)?cr.get(e).id:e,"getAnchorId"),Nte=a((e,t)=>{if(!e||t>10){W.debug("Opting out, no graph ");return}else W.debug("Opting in, graph ");e.nodes().forEach(function(r){e.children(r).length>0&&(W.warn("Cluster identified",r," Replacement id in edges: ",Vp(r,e,r)),Hh.set(r,Ite(r,e)),cr.set(r,{id:Vp(r,e,r),clusterData:e.node(r)}))}),e.nodes().forEach(function(r){let i=e.children(r),n=e.edges();i.length>0?(W.debug("Cluster identified",r,Hh),n.forEach(s=>{let o=Uk(s.v,r),l=Uk(s.w,r);o^l&&(W.warn("Edge: ",s," leaves cluster ",r),W.warn("Descendants of XXX ",r,": ",Hh.get(r)),cr.get(r).externalConnections=!0)})):W.debug("Not a cluster ",r,Hh)});for(let r of cr.keys()){let i=cr.get(r).id,n=e.parent(i);n!==r&&cr.has(n)&&!cr.get(n).externalConnections&&(cr.get(r).id=n)}e.edges().forEach(function(r){let i=e.edge(r);W.warn("Edge "+r.v+" -> "+r.w+": "+JSON.stringify(r)),W.warn("Edge "+r.v+" -> "+r.w+": "+JSON.stringify(e.edge(r)));let n=r.v,s=r.w;if(W.warn("Fix XXX",cr,"ids:",r.v,r.w,"Translating: ",cr.get(r.v)," --- ",cr.get(r.w)),cr.get(r.v)||cr.get(r.w)){if(W.warn("Fixing and trying - removing XXX",r.v,r.w,r.name),n=Ate(r.v),s=Ate(r.w),e.removeEdge(r.v,r.w,r.name),n!==r.v){let o=e.parent(n);cr.get(o).externalConnections=!0,i.fromCluster=r.v}if(s!==r.w){let o=e.parent(s);cr.get(o).externalConnections=!0,i.toCluster=r.w}W.warn("Fix Replacing with XXX",n,s,r.name),e.setEdge(n,s,i,r.name)}}),W.warn("Adjusted Graph",ss(e)),Mte(e,0),W.trace(cr)},"adjustClustersAndEdges"),Mte=a((e,t)=>{if(W.warn("extractor - ",t,ss(e),e.children("D")),t>10){W.error("Bailing out");return}let r=e.nodes(),i=!1;for(let n of r){let s=e.children(n);i=i||s.length>0}if(!i){W.debug("Done, no node has children",e.nodes());return}W.debug("Nodes = ",r,t);for(let n of r)if(W.debug("Extracting node",n,cr,cr.has(n)&&!cr.get(n).externalConnections,!e.parent(n),e.node(n),e.children("D")," Depth ",t),!cr.has(n))W.debug("Not a cluster",n,t);else if(!cr.get(n).externalConnections&&e.children(n)&&e.children(n).length>0){W.warn("Cluster without external connections, without a parent and with children",n,t);let o=e.graph().rankdir==="TB"?"LR":"TB";cr.get(n)?.clusterData?.dir&&(o=cr.get(n).clusterData.dir,W.warn("Fixing dir",cr.get(n).clusterData.dir,o));let l=new Dr({multigraph:!0,compound:!0}).setGraph({rankdir:o,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});W.warn("Old graph before copy",ss(e)),Dte(n,e,l,n),e.setNode(n,{clusterNode:!0,id:n,clusterData:cr.get(n).clusterData,label:cr.get(n).label,graph:l}),W.warn("New graph after copy node: (",n,")",ss(l)),W.debug("Old graph after copy",ss(e))}else W.warn("Cluster ** ",n," **not meeting the criteria !externalConnections:",!cr.get(n).externalConnections," no parent: ",!e.parent(n)," children ",e.children(n)&&e.children(n).length>0,e.children("D"),t),W.debug(cr);r=e.nodes(),W.warn("New list of nodes",r);for(let n of r){let s=e.node(n);W.warn(" Now next level",n,s),s?.clusterNode&&Mte(s.graph,t+1)}},"extractor"),Ote=a((e,t)=>{if(t.length===0)return[];let r=Object.assign([],t);return t.forEach(i=>{let n=e.children(i),s=Ote(e,n);r=[...r,...s]}),r},"sorter"),Pte=a(e=>Ote(e,e.children()),"sortNodesByHierarchy")});var Fte={};tr(Fte,{render:()=>_7e});var $te,_7e,Vte=v(()=>{"use strict";JL();eD();as();wR();yt();Bte();BT();ET();_R();nt();s0();bt();$te=a(async(e,t,r,i,n,s)=>{W.warn("Graph in recursive render:XAX",ss(t),n);let o=t.graph().rankdir;W.trace("Dir in recursive render - dir:",o);let l=e.insert("g").attr("class","root");t.nodes()?W.info("Recursive render XXX",t.nodes()):W.info("No nodes found for",t),t.edges().length>0&&W.info("Recursive edges",t.edge(t.edges()[0]));let u=l.insert("g").attr("class","clusters"),h=l.insert("g").attr("class","edgePaths"),d=l.insert("g").attr("class","edgeLabels"),f=l.insert("g").attr("class","nodes");await Promise.all(t.nodes().map(async function(x){let b=t.node(x);if(n!==void 0){let T=JSON.parse(JSON.stringify(n.clusterData));W.trace(`Setting data for parent cluster XXX
Node.id = `,x,`
data=`,T.height,`
Parent cluster`,n.height),t.setNode(n.id,T),t.parent(x)||(W.trace("Setting parent",x,n.id),t.setParent(x,n.id,T))}if(W.info("(Insert) Node XXX"+x+": "+JSON.stringify(t.node(x))),b?.clusterNode){W.info("Cluster identified XBX",x,b.width,t.node(x));let{ranksep:T,nodesep:k}=t.graph();b.graph.setGraph({...b.graph.graph(),ranksep:T+25,nodesep:k});let C=await $te(f,b.graph,r,i,t.node(x),s),S=C.elem;qe(b,S),b.diff=C.diff||0,W.info("New compound node after recursive render XAX",x,"width",b.width,"height",b.height),pY(S,b)}else t.children(x).length>0?(W.trace("Cluster - the non recursive path XBX",x,b.id,b,b.width,"Graph:",t),W.trace(Vp(b.id,t)),cr.set(b.id,{id:Vp(b.id,t),node:b})):(W.trace("Node - the non recursive path XAX",x,f,t.node(x),o),await fp(f,t.node(x),{config:s,dir:o}))})),await a(async()=>{let x=t.edges().map(async function(b){let T=t.edge(b.v,b.w,b.name);W.info("Edge "+b.v+" -> "+b.w+": "+JSON.stringify(b)),W.info("Edge "+b.v+" -> "+b.w+": ",b," ",JSON.stringify(t.edge(b))),W.info("Fix",cr,"ids:",b.v,b.w,"Translating: ",cr.get(b.v),cr.get(b.w)),await IT(d,T)});await Promise.all(x)},"processEdges")(),W.info("Graph before layout:",JSON.stringify(ss(t))),W.info("############################################# XXX"),W.info("### Layout ### XXX"),W.info("############################################# XXX"),P0(t),W.info("Graph after layout:",JSON.stringify(ss(t)));let m=0,{subGraphTitleTotalMargin:g}=_l(s);return await Promise.all(Pte(t).map(async function(x){let b=t.node(x);if(W.info("Position XBX => "+x+": ("+b.x,","+b.y,") width: ",b.width," height: ",b.height),b?.clusterNode)b.y+=g,W.info("A tainted cluster node XBX1",x,b.id,b.width,b.height,b.x,b.y,t.parent(x)),cr.get(b.id).node=b,l0(b);else if(t.children(x).length>0){W.info("A pure cluster node XBX1",x,b.id,b.x,b.y,b.width,b.height,t.parent(x)),b.height+=g,t.node(b.parentId);let T=b?.padding/2||0,k=b?.labelBBox?.height||0,C=k-T||0;W.debug("OffsetY",C,"labelHeight",k,"halfPadding",T),await dp(u,b),cr.get(b.id).node=b}else{let T=t.node(b.parentId);b.y+=g/2,W.info("A regular node XBX1 - using the padding",b.id,"parent",b.parentId,b.width,b.height,b.x,b.y,"offsetY",b.offsetY,"parent",T,T?.offsetY,b),l0(b)}})),t.edges().forEach(function(x){let b=t.edge(x);W.info("Edge "+x.v+" -> "+x.w+": "+JSON.stringify(b),b),b.points.forEach(S=>S.y+=g/2);let T=t.node(x.v);var k=t.node(x.w);let C=MT(h,b,cr,r,T,k,i);NT(b,C)}),t.nodes().forEach(function(x){let b=t.node(x);W.info(x,b.type,b.diff),b.isGroup&&(m=b.diff)}),W.warn("Returning from recursive render XAX",l,m),{elem:l,diff:m}},"recursiveRender"),_7e=a(async(e,t)=>{let r=new Dr({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{}}),i=t.select("g");OT(i,e.markers,e.type,e.diagramId),mY(),fY(),sY(),Lte(),e.nodes.forEach(s=>{r.setNode(s.id,{...s}),s.parentId&&r.setParent(s.id,s.parentId)}),W.debug("Edges:",e.edges),e.edges.forEach(s=>{if(s.start===s.end){let o=s.start,l=o+"---"+o+"---1",u=o+"---"+o+"---2",h=r.node(o);r.setNode(l,{domId:l,id:l,parentId:h.parentId,labelStyle:"",label:"",padding:0,shape:"labelRect",style:"",width:10,height:10}),r.setParent(l,h.parentId),r.setNode(u,{domId:u,id:u,parentId:h.parentId,labelStyle:"",padding:0,shape:"labelRect",label:"",style:"",width:10,height:10}),r.setParent(u,h.parentId);let d=structuredClone(s),f=structuredClone(s),p=structuredClone(s);d.label="",d.arrowTypeEnd="none",d.endLabelLeft="",d.endLabelRight="",d.startLabelLeft="",d.id=o+"-cyclic-special-1",f.startLabelRight="",f.startLabelLeft="",f.endLabelLeft="",f.endLabelRight="",f.arrowTypeStart="none",f.arrowTypeEnd="none",f.id=o+"-cyclic-special-mid",p.label="",p.startLabelRight="",p.startLabelLeft="",p.arrowTypeStart="none",h.isGroup&&(d.fromCluster=o,p.toCluster=o),p.id=o+"-cyclic-special-2",p.arrowTypeStart="none",r.setEdge(o,l,d,o+"-cyclic-special-0"),r.setEdge(l,u,f,o+"-cyclic-special-1"),r.setEdge(u,o,p,o+"-cyc<lic-special-2")}else r.setEdge(s.start,s.end,{...s},s.id)}),W.warn("Graph at first:",JSON.stringify(ss(r))),Nte(r),W.warn("Graph after XAX:",JSON.stringify(ss(r)));let n=J();await $te(i,r,e.type,e.diagramId,void 0,n)},"render")});var B0,tD,w7e,Oo,uu,Yh=v(()=>{"use strict";yY();nt();B0={},tD=a(e=>{for(let t of e)B0[t.name]=t},"registerLayoutLoaders"),w7e=a(()=>{tD([{name:"dagre",loader:a(async()=>await Promise.resolve().then(()=>(Vte(),Fte)),"loader")}])},"registerDefaultLayoutLoaders");w7e();Oo=a(async(e,t)=>{if(!(e.layoutAlgorithm in B0))throw new Error(`Unknown layout algorithm: ${e.layoutAlgorithm}`);if(e.diagramId)for(let d of e.nodes){let f=d.domId||d.id;d.domId=`${e.diagramId}-${f}`}let r=B0[e.layoutAlgorithm],i=await r.loader(),{theme:n,themeVariables:s}=e.config,{useGradient:o,gradientStart:l,gradientStop:u}=s,h=t.attr("id");if(t.append("defs").append("filter").attr("id",`${h}-drop-shadow`).attr("height","130%").attr("width","130%").append("feDropShadow").attr("dx","4").attr("dy","4").attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",`${n?.includes("dark")?"#FFFFFF":"#000000"}`),t.append("defs").append("filter").attr("id",`${h}-drop-shadow-small`).attr("height","150%").attr("width","150%").append("feDropShadow").attr("dx","2").attr("dy","2").attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",`${n?.includes("dark")?"#FFFFFF":"#000000"}`),o){let d=t.append("linearGradient").attr("id",t.attr("id")+"-gradient").attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");d.append("svg:stop").attr("offset","0%").attr("stop-color",l).attr("stop-opacity",1),d.append("svg:stop").attr("offset","100%").attr("stop-color",u).attr("stop-opacity",1)}return i.render(e,t,gY,{algorithm:r.algorithm})},"render"),uu=a((e="",{fallback:t="dagre"}={})=>{if(e in B0)return e;if(t in B0)return W.warn(`Layout algorithm ${e} is not registered. Using ${t} as fallback.`),t;throw new Error(`Both layout algorithms ${e} and ${t} are not registered.`)},"getRegisteredLayoutAlgorithm")});var os,E7e,A7e,Kh=v(()=>{"use strict";Xr();nt();os=a((e,t,r,i)=>{e.attr("class",r);let{width:n,height:s,x:o,y:l}=E7e(e,t);fr(e,s,n,i);let u=A7e(o,l,n,s,t);e.attr("viewBox",u),W.debug(`viewBox configured: ${u} with padding: ${t}`)},"setupViewPortForSVG"),E7e=a((e,t)=>{let r=e.node()?.getBBox()||{width:0,height:0,x:0,y:0};return{width:r.width+t*2,height:r.height+t*2,x:r.x,y:r.y}},"calculateDimensionsWithPadding"),A7e=a((e,t,r,i,n)=>`${e-n} ${t-n} ${r} ${i}`,"createViewBox")});var R7e,L7e,Gte,Wte=v(()=>{"use strict";bt();nt();hp();Yh();Kh();Et();R7e=a(function(e,t){return t.db.getClasses()},"getClasses"),L7e=a(async function(e,t,r,i){W.info("REF0:"),W.info("Drawing state diagram (v2)",t);let{securityLevel:n,flowchart:s,layout:o}=J();i.db.setDiagramId(t),W.debug("Before getData: ");let l=i.db.getData();W.debug("Data: ",l);let u=So(t,n),h=i.db.getDirection();l.type=i.type,l.layoutAlgorithm=uu(o),l.layoutAlgorithm==="dagre"&&o==="elk"&&W.warn("flowchart-elk was moved to an external package in Mermaid v11. Please refer [release notes](https://github.com/mermaid-js/mermaid/releases/tag/v11.0.0) for more details. This diagram will be rendered using `dagre` layout as a fallback."),l.direction=h,l.nodeSpacing=s?.nodeSpacing||50,l.rankSpacing=s?.rankSpacing||50,l.markers=["point","circle","cross"],l.diagramId=t,W.debug("REF1:",l),await Oo(l,u);let d=l.config.flowchart?.diagramPadding??8;St.insertTitle(u,"flowchartTitleText",s?.titleTopMargin||0,i.db.getDiagramTitle()),os(u,d,"flowchart",s?.useMaxWidth||!1)},"draw"),Gte={getClasses:R7e,draw:L7e}});var rD,iD,zte=v(()=>{"use strict";rD=(function(){var e=a(function(Gr,_t,Ot,Kt){for(Ot=Ot||{},Kt=Gr.length;Kt--;Ot[Gr[Kt]]=_t);return Ot},"o"),t=[1,4],r=[1,3],i=[1,5],n=[1,8,9,10,11,27,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124,125],s=[2,2],o=[1,13],l=[1,14],u=[1,15],h=[1,16],d=[1,23],f=[1,25],p=[1,26],m=[1,27],g=[1,50],x=[1,49],b=[1,29],T=[1,30],k=[1,31],C=[1,32],S=[1,33],w=[1,45],_=[1,47],L=[1,43],I=[1,48],B=[1,44],G=[1,51],P=[1,46],F=[1,52],A=[1,53],D=[1,34],R=[1,35],N=[1,36],$=[1,37],E=[1,38],M=[1,58],V=[1,8,9,10,11,27,32,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124,125],O=[1,62],z=[1,61],U=[1,63],K=[8,9,11,75,77,78],j=[1,79],ae=[1,92],X=[1,97],de=[1,96],le=[1,93],ge=[1,89],he=[1,95],te=[1,91],Le=[1,98],xe=[1,94],ye=[1,99],be=[1,90],Ce=[8,9,10,11,40,75,77,78],Oe=[8,9,10,11,40,46,75,77,78],Ae=[8,9,10,11,29,40,44,46,48,50,52,54,56,58,60,63,65,67,68,70,75,77,78,89,102,105,106,109,111,114,115,116],st=[8,9,11,44,60,75,77,78,89,102,105,106,109,111,114,115,116],ce=[44,60,89,102,105,106,109,111,114,115,116],Mt=[1,122],fe=[1,123],Ue=[1,125],Je=[1,124],ot=[44,60,62,74,89,102,105,106,109,111,114,115,116],Ne=[1,134],ze=[1,148],oe=[1,149],_e=[1,150],re=[1,151],Ke=[1,136],Q=[1,138],Me=[1,142],Y=[1,143],dt=[1,144],Ge=[1,145],ft=[1,146],Be=[1,147],tt=[1,152],Ie=[1,153],it=[1,132],Ee=[1,133],pt=[1,140],ie=[1,135],$t=[1,139],ue=[1,137],vt=[8,9,10,11,27,32,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124,125],Lt=[1,155],Nr=[1,157],gt=[8,9,11],Pt=[8,9,10,11,14,44,60,89,105,106,109,111,114,115,116],kt=[1,177],H=[1,173],at=[1,174],ut=[1,178],We=[1,175],Z=[1,176],Re=[77,116,119],Fe=[8,9,10,11,12,14,27,29,32,44,60,75,84,85,86,87,88,89,90,105,109,111,114,115,116],Ye=[10,106],zt=[31,49,51,53,55,57,62,64,66,67,69,71,116,117,118],mt=[1,248],Vt=[1,246],lr=[1,250],Xe=[1,244],ne=[1,245],De=[1,247],et=[1,249],Bt=[1,251],ur=[1,269],Mr=[8,9,11,106],hr=[8,9,10,11,60,84,105,106,109,110,111,112],rn={trace:a(function(){},"trace"),yy:{},symbols_:{error:2,start:3,graphConfig:4,document:5,line:6,statement:7,SEMI:8,NEWLINE:9,SPACE:10,EOF:11,GRAPH:12,NODIR:13,DIR:14,FirstStmtSeparator:15,ending:16,endToken:17,spaceList:18,spaceListNewline:19,vertexStatement:20,separator:21,styleStatement:22,linkStyleStatement:23,classDefStatement:24,classStatement:25,clickStatement:26,subgraph:27,textNoTags:28,SQS:29,text:30,SQE:31,end:32,direction:33,acc_title:34,acc_title_value:35,acc_descr:36,acc_descr_value:37,acc_descr_multiline_value:38,shapeData:39,SHAPE_DATA:40,link:41,node:42,styledVertex:43,AMP:44,vertex:45,STYLE_SEPARATOR:46,idString:47,DOUBLECIRCLESTART:48,DOUBLECIRCLEEND:49,PS:50,PE:51,"(-":52,"-)":53,STADIUMSTART:54,STADIUMEND:55,SUBROUTINESTART:56,SUBROUTINEEND:57,VERTEX_WITH_PROPS_START:58,"NODE_STRING[field]":59,COLON:60,"NODE_STRING[value]":61,PIPE:62,CYLINDERSTART:63,CYLINDEREND:64,DIAMOND_START:65,DIAMOND_STOP:66,TAGEND:67,TRAPSTART:68,TRAPEND:69,INVTRAPSTART:70,INVTRAPEND:71,linkStatement:72,arrowText:73,TESTSTR:74,START_LINK:75,edgeText:76,LINK:77,LINK_ID:78,edgeTextToken:79,STR:80,MD_STR:81,textToken:82,keywords:83,STYLE:84,LINKSTYLE:85,CLASSDEF:86,CLASS:87,CLICK:88,DOWN:89,UP:90,textNoTagsToken:91,stylesOpt:92,"idString[vertex]":93,"idString[class]":94,CALLBACKNAME:95,CALLBACKARGS:96,HREF:97,LINK_TARGET:98,"STR[link]":99,"STR[tooltip]":100,alphaNum:101,DEFAULT:102,numList:103,INTERPOLATE:104,NUM:105,COMMA:106,style:107,styleComponent:108,NODE_STRING:109,UNIT:110,BRKT:111,PCT:112,idStringToken:113,MINUS:114,MULT:115,UNICODE_TEXT:116,TEXT:117,TAGSTART:118,EDGE_TEXT:119,alphaNumToken:120,direction_tb:121,direction_bt:122,direction_rl:123,direction_lr:124,direction_td:125,$accept:0,$end:1},terminals_:{2:"error",8:"SEMI",9:"NEWLINE",10:"SPACE",11:"EOF",12:"GRAPH",13:"NODIR",14:"DIR",27:"subgraph",29:"SQS",31:"SQE",32:"end",34:"acc_title",35:"acc_title_value",36:"acc_descr",37:"acc_descr_value",38:"acc_descr_multiline_value",40:"SHAPE_DATA",44:"AMP",46:"STYLE_SEPARATOR",48:"DOUBLECIRCLESTART",49:"DOUBLECIRCLEEND",50:"PS",51:"PE",52:"(-",53:"-)",54:"STADIUMSTART",55:"STADIUMEND",56:"SUBROUTINESTART",57:"SUBROUTINEEND",58:"VERTEX_WITH_PROPS_START",59:"NODE_STRING[field]",60:"COLON",61:"NODE_STRING[value]",62:"PIPE",63:"CYLINDERSTART",64:"CYLINDEREND",65:"DIAMOND_START",66:"DIAMOND_STOP",67:"TAGEND",68:"TRAPSTART",69:"TRAPEND",70:"INVTRAPSTART",71:"INVTRAPEND",74:"TESTSTR",75:"START_LINK",77:"LINK",78:"LINK_ID",80:"STR",81:"MD_STR",84:"STYLE",85:"LINKSTYLE",86:"CLASSDEF",87:"CLASS",88:"CLICK",89:"DOWN",90:"UP",93:"idString[vertex]",94:"idString[class]",95:"CALLBACKNAME",96:"CALLBACKARGS",97:"HREF",98:"LINK_TARGET",99:"STR[link]",100:"STR[tooltip]",102:"DEFAULT",104:"INTERPOLATE",105:"NUM",106:"COMMA",109:"NODE_STRING",110:"UNIT",111:"BRKT",112:"PCT",114:"MINUS",115:"MULT",116:"UNICODE_TEXT",117:"TEXT",118:"TAGSTART",119:"EDGE_TEXT",121:"direction_tb",122:"direction_bt",123:"direction_rl",124:"direction_lr",125:"direction_td"},productions_:[0,[3,2],[5,0],[5,2],[6,1],[6,1],[6,1],[6,1],[6,1],[4,2],[4,2],[4,2],[4,3],[16,2],[16,1],[17,1],[17,1],[17,1],[15,1],[15,1],[15,2],[19,2],[19,2],[19,1],[19,1],[18,2],[18,1],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,9],[7,6],[7,4],[7,1],[7,2],[7,2],[7,1],[21,1],[21,1],[21,1],[39,2],[39,1],[20,4],[20,3],[20,4],[20,2],[20,2],[20,1],[42,1],[42,6],[42,5],[43,1],[43,3],[45,4],[45,4],[45,6],[45,4],[45,4],[45,4],[45,8],[45,4],[45,4],[45,4],[45,6],[45,4],[45,4],[45,4],[45,4],[45,4],[45,1],[41,2],[41,3],[41,3],[41,1],[41,3],[41,4],[76,1],[76,2],[76,1],[76,1],[72,1],[72,2],[73,3],[30,1],[30,2],[30,1],[30,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[28,1],[28,2],[28,1],[28,1],[24,5],[25,5],[26,2],[26,4],[26,3],[26,5],[26,3],[26,5],[26,5],[26,7],[26,2],[26,4],[26,2],[26,4],[26,4],[26,6],[22,5],[23,5],[23,5],[23,9],[23,9],[23,7],[23,7],[103,1],[103,3],[92,1],[92,3],[107,1],[107,2],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[82,1],[82,1],[82,1],[82,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[79,1],[79,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[47,1],[47,2],[101,1],[101,2],[33,1],[33,1],[33,1],[33,1],[33,1]],performAction:a(function(_t,Ot,Kt,lt,Wr,ee,Wu){var se=ee.length-1;switch(Wr){case 2:this.$=[];break;case 3:(!Array.isArray(ee[se])||ee[se].length>0)&&ee[se-1].push(ee[se]),this.$=ee[se-1];break;case 4:case 183:this.$=ee[se];break;case 11:lt.setDirection("TB"),this.$="TB";break;case 12:lt.setDirection(ee[se-1]),this.$=ee[se-1];break;case 27:this.$=ee[se-1].nodes;break;case 28:case 29:case 30:case 31:case 32:this.$=[];break;case 33:this.$=lt.addSubGraph(ee[se-6],ee[se-1],ee[se-4]);break;case 34:this.$=lt.addSubGraph(ee[se-3],ee[se-1],ee[se-3]);break;case 35:this.$=lt.addSubGraph(void 0,ee[se-1],void 0);break;case 37:this.$=ee[se].trim(),lt.setAccTitle(this.$);break;case 38:case 39:this.$=ee[se].trim(),lt.setAccDescription(this.$);break;case 43:this.$=ee[se-1]+ee[se];break;case 44:this.$=ee[se];break;case 45:lt.addVertex(ee[se-1][ee[se-1].length-1],void 0,void 0,void 0,void 0,void 0,void 0,ee[se]),lt.addLink(ee[se-3].stmt,ee[se-1],ee[se-2]),this.$={stmt:ee[se-1],nodes:ee[se-1].concat(ee[se-3].nodes)};break;case 46:lt.addLink(ee[se-2].stmt,ee[se],ee[se-1]),this.$={stmt:ee[se],nodes:ee[se].concat(ee[se-2].nodes)};break;case 47:lt.addLink(ee[se-3].stmt,ee[se-1],ee[se-2]),this.$={stmt:ee[se-1],nodes:ee[se-1].concat(ee[se-3].nodes)};break;case 48:this.$={stmt:ee[se-1],nodes:ee[se-1]};break;case 49:lt.addVertex(ee[se-1][ee[se-1].length-1],void 0,void 0,void 0,void 0,void 0,void 0,ee[se]),this.$={stmt:ee[se-1],nodes:ee[se-1],shapeData:ee[se]};break;case 50:this.$={stmt:ee[se],nodes:ee[se]};break;case 51:this.$=[ee[se]];break;case 52:lt.addVertex(ee[se-5][ee[se-5].length-1],void 0,void 0,void 0,void 0,void 0,void 0,ee[se-4]),this.$=ee[se-5].concat(ee[se]);break;case 53:this.$=ee[se-4].concat(ee[se]);break;case 54:this.$=ee[se];break;case 55:this.$=ee[se-2],lt.setClass(ee[se-2],ee[se]);break;case 56:this.$=ee[se-3],lt.addVertex(ee[se-3],ee[se-1],"square");break;case 57:this.$=ee[se-3],lt.addVertex(ee[se-3],ee[se-1],"doublecircle");break;case 58:this.$=ee[se-5],lt.addVertex(ee[se-5],ee[se-2],"circle");break;case 59:this.$=ee[se-3],lt.addVertex(ee[se-3],ee[se-1],"ellipse");break;case 60:this.$=ee[se-3],lt.addVertex(ee[se-3],ee[se-1],"stadium");break;case 61:this.$=ee[se-3],lt.addVertex(ee[se-3],ee[se-1],"subroutine");break;case 62:this.$=ee[se-7],lt.addVertex(ee[se-7],ee[se-1],"rect",void 0,void 0,void 0,Object.fromEntries([[ee[se-5],ee[se-3]]]));break;case 63:this.$=ee[se-3],lt.addVertex(ee[se-3],ee[se-1],"cylinder");break;case 64:this.$=ee[se-3],lt.addVertex(ee[se-3],ee[se-1],"round");break;case 65:this.$=ee[se-3],lt.addVertex(ee[se-3],ee[se-1],"diamond");break;case 66:this.$=ee[se-5],lt.addVertex(ee[se-5],ee[se-2],"hexagon");break;case 67:this.$=ee[se-3],lt.addVertex(ee[se-3],ee[se-1],"odd");break;case 68:this.$=ee[se-3],lt.addVertex(ee[se-3],ee[se-1],"trapezoid");break;case 69:this.$=ee[se-3],lt.addVertex(ee[se-3],ee[se-1],"inv_trapezoid");break;case 70:this.$=ee[se-3],lt.addVertex(ee[se-3],ee[se-1],"lean_right");break;case 71:this.$=ee[se-3],lt.addVertex(ee[se-3],ee[se-1],"lean_left");break;case 72:this.$=ee[se],lt.addVertex(ee[se]);break;case 73:ee[se-1].text=ee[se],this.$=ee[se-1];break;case 74:case 75:ee[se-2].text=ee[se-1],this.$=ee[se-2];break;case 76:this.$=ee[se];break;case 77:var wi=lt.destructLink(ee[se],ee[se-2]);this.$={type:wi.type,stroke:wi.stroke,length:wi.length,text:ee[se-1]};break;case 78:var wi=lt.destructLink(ee[se],ee[se-2]);this.$={type:wi.type,stroke:wi.stroke,length:wi.length,text:ee[se-1],id:ee[se-3]};break;case 79:this.$={text:ee[se],type:"text"};break;case 80:this.$={text:ee[se-1].text+""+ee[se],type:ee[se-1].type};break;case 81:this.$={text:ee[se],type:"string"};break;case 82:this.$={text:ee[se],type:"markdown"};break;case 83:var wi=lt.destructLink(ee[se]);this.$={type:wi.type,stroke:wi.stroke,length:wi.length};break;case 84:var wi=lt.destructLink(ee[se]);this.$={type:wi.type,stroke:wi.stroke,length:wi.length,id:ee[se-1]};break;case 85:this.$=ee[se-1];break;case 86:this.$={text:ee[se],type:"text"};break;case 87:this.$={text:ee[se-1].text+""+ee[se],type:ee[se-1].type};break;case 88:this.$={text:ee[se],type:"string"};break;case 89:case 104:this.$={text:ee[se],type:"markdown"};break;case 101:this.$={text:ee[se],type:"text"};break;case 102:this.$={text:ee[se-1].text+""+ee[se],type:ee[se-1].type};break;case 103:this.$={text:ee[se],type:"text"};break;case 105:this.$=ee[se-4],lt.addClass(ee[se-2],ee[se]);break;case 106:this.$=ee[se-4],lt.setClass(ee[se-2],ee[se]);break;case 107:case 115:this.$=ee[se-1],lt.setClickEvent(ee[se-1],ee[se]);break;case 108:case 116:this.$=ee[se-3],lt.setClickEvent(ee[se-3],ee[se-2]),lt.setTooltip(ee[se-3],ee[se]);break;case 109:this.$=ee[se-2],lt.setClickEvent(ee[se-2],ee[se-1],ee[se]);break;case 110:this.$=ee[se-4],lt.setClickEvent(ee[se-4],ee[se-3],ee[se-2]),lt.setTooltip(ee[se-4],ee[se]);break;case 111:this.$=ee[se-2],lt.setLink(ee[se-2],ee[se]);break;case 112:this.$=ee[se-4],lt.setLink(ee[se-4],ee[se-2]),lt.setTooltip(ee[se-4],ee[se]);break;case 113:this.$=ee[se-4],lt.setLink(ee[se-4],ee[se-2],ee[se]);break;case 114:this.$=ee[se-6],lt.setLink(ee[se-6],ee[se-4],ee[se]),lt.setTooltip(ee[se-6],ee[se-2]);break;case 117:this.$=ee[se-1],lt.setLink(ee[se-1],ee[se]);break;case 118:this.$=ee[se-3],lt.setLink(ee[se-3],ee[se-2]),lt.setTooltip(ee[se-3],ee[se]);break;case 119:this.$=ee[se-3],lt.setLink(ee[se-3],ee[se-2],ee[se]);break;case 120:this.$=ee[se-5],lt.setLink(ee[se-5],ee[se-4],ee[se]),lt.setTooltip(ee[se-5],ee[se-2]);break;case 121:this.$=ee[se-4],lt.addVertex(ee[se-2],void 0,void 0,ee[se]);break;case 122:this.$=ee[se-4],lt.updateLink([ee[se-2]],ee[se]);break;case 123:this.$=ee[se-4],lt.updateLink(ee[se-2],ee[se]);break;case 124:this.$=ee[se-8],lt.updateLinkInterpolate([ee[se-6]],ee[se-2]),lt.updateLink([ee[se-6]],ee[se]);break;case 125:this.$=ee[se-8],lt.updateLinkInterpolate(ee[se-6],ee[se-2]),lt.updateLink(ee[se-6],ee[se]);break;case 126:this.$=ee[se-6],lt.updateLinkInterpolate([ee[se-4]],ee[se]);break;case 127:this.$=ee[se-6],lt.updateLinkInterpolate(ee[se-4],ee[se]);break;case 128:case 130:this.$=[ee[se]];break;case 129:case 131:ee[se-2].push(ee[se]),this.$=ee[se-2];break;case 133:this.$=ee[se-1]+ee[se];break;case 181:this.$=ee[se];break;case 182:this.$=ee[se-1]+""+ee[se];break;case 184:this.$=ee[se-1]+""+ee[se];break;case 185:this.$={stmt:"dir",value:"TB"};break;case 186:this.$={stmt:"dir",value:"BT"};break;case 187:this.$={stmt:"dir",value:"RL"};break;case 188:this.$={stmt:"dir",value:"LR"};break;case 189:this.$={stmt:"dir",value:"TD"};break}},"anonymous"),table:[{3:1,4:2,9:t,10:r,12:i},{1:[3]},e(n,s,{5:6}),{4:7,9:t,10:r,12:i},{4:8,9:t,10:r,12:i},{13:[1,9],14:[1,10]},{1:[2,1],6:11,7:12,8:o,9:l,10:u,11:h,20:17,22:18,23:19,24:20,25:21,26:22,27:d,33:24,34:f,36:p,38:m,42:28,43:39,44:g,45:40,47:41,60:x,84:b,85:T,86:k,87:C,88:S,89:w,102:_,105:L,106:I,109:B,111:G,113:42,114:P,115:F,116:A,121:D,122:R,123:N,124:$,125:E},e(n,[2,9]),e(n,[2,10]),e(n,[2,11]),{8:[1,55],9:[1,56],10:M,15:54,18:57},e(V,[2,3]),e(V,[2,4]),e(V,[2,5]),e(V,[2,6]),e(V,[2,7]),e(V,[2,8]),{8:O,9:z,11:U,21:59,41:60,72:64,75:[1,65],77:[1,67],78:[1,66]},{8:O,9:z,11:U,21:68},{8:O,9:z,11:U,21:69},{8:O,9:z,11:U,21:70},{8:O,9:z,11:U,21:71},{8:O,9:z,11:U,21:72},{8:O,9:z,10:[1,73],11:U,21:74},e(V,[2,36]),{35:[1,75]},{37:[1,76]},e(V,[2,39]),e(K,[2,50],{18:77,39:78,10:M,40:j}),{10:[1,80]},{10:[1,81]},{10:[1,82]},{10:[1,83]},{14:ae,44:X,60:de,80:[1,87],89:le,95:[1,84],97:[1,85],101:86,105:ge,106:he,109:te,111:Le,114:xe,115:ye,116:be,120:88},e(V,[2,185]),e(V,[2,186]),e(V,[2,187]),e(V,[2,188]),e(V,[2,189]),e(Ce,[2,51]),e(Ce,[2,54],{46:[1,100]}),e(Oe,[2,72],{113:113,29:[1,101],44:g,48:[1,102],50:[1,103],52:[1,104],54:[1,105],56:[1,106],58:[1,107],60:x,63:[1,108],65:[1,109],67:[1,110],68:[1,111],70:[1,112],89:w,102:_,105:L,106:I,109:B,111:G,114:P,115:F,116:A}),e(Ae,[2,181]),e(Ae,[2,142]),e(Ae,[2,143]),e(Ae,[2,144]),e(Ae,[2,145]),e(Ae,[2,146]),e(Ae,[2,147]),e(Ae,[2,148]),e(Ae,[2,149]),e(Ae,[2,150]),e(Ae,[2,151]),e(Ae,[2,152]),e(n,[2,12]),e(n,[2,18]),e(n,[2,19]),{9:[1,114]},e(st,[2,26],{18:115,10:M}),e(V,[2,27]),{42:116,43:39,44:g,45:40,47:41,60:x,89:w,102:_,105:L,106:I,109:B,111:G,113:42,114:P,115:F,116:A},e(V,[2,40]),e(V,[2,41]),e(V,[2,42]),e(ce,[2,76],{73:117,62:[1,119],74:[1,118]}),{76:120,79:121,80:Mt,81:fe,116:Ue,119:Je},{75:[1,126],77:[1,127]},e(ot,[2,83]),e(V,[2,28]),e(V,[2,29]),e(V,[2,30]),e(V,[2,31]),e(V,[2,32]),{10:Ne,12:ze,14:oe,27:_e,28:128,32:re,44:Ke,60:Q,75:Me,80:[1,130],81:[1,131],83:141,84:Y,85:dt,86:Ge,87:ft,88:Be,89:tt,90:Ie,91:129,105:it,109:Ee,111:pt,114:ie,115:$t,116:ue},e(vt,s,{5:154}),e(V,[2,37]),e(V,[2,38]),e(K,[2,48],{44:Lt}),e(K,[2,49],{18:156,10:M,40:Nr}),e(Ce,[2,44]),{44:g,47:158,60:x,89:w,102:_,105:L,106:I,109:B,111:G,113:42,114:P,115:F,116:A},{102:[1,159],103:160,105:[1,161]},{44:g,47:162,60:x,89:w,102:_,105:L,106:I,109:B,111:G,113:42,114:P,115:F,116:A},{44:g,47:163,60:x,89:w,102:_,105:L,106:I,109:B,111:G,113:42,114:P,115:F,116:A},e(gt,[2,107],{10:[1,164],96:[1,165]}),{80:[1,166]},e(gt,[2,115],{120:168,10:[1,167],14:ae,44:X,60:de,89:le,105:ge,106:he,109:te,111:Le,114:xe,115:ye,116:be}),e(gt,[2,117],{10:[1,169]}),e(Pt,[2,183]),e(Pt,[2,170]),e(Pt,[2,171]),e(Pt,[2,172]),e(Pt,[2,173]),e(Pt,[2,174]),e(Pt,[2,175]),e(Pt,[2,176]),e(Pt,[2,177]),e(Pt,[2,178]),e(Pt,[2,179]),e(Pt,[2,180]),{44:g,47:170,60:x,89:w,102:_,105:L,106:I,109:B,111:G,113:42,114:P,115:F,116:A},{30:171,67:kt,80:H,81:at,82:172,116:ut,117:We,118:Z},{30:179,67:kt,80:H,81:at,82:172,116:ut,117:We,118:Z},{30:181,50:[1,180],67:kt,80:H,81:at,82:172,116:ut,117:We,118:Z},{30:182,67:kt,80:H,81:at,82:172,116:ut,117:We,118:Z},{30:183,67:kt,80:H,81:at,82:172,116:ut,117:We,118:Z},{30:184,67:kt,80:H,81:at,82:172,116:ut,117:We,118:Z},{109:[1,185]},{30:186,67:kt,80:H,81:at,82:172,116:ut,117:We,118:Z},{30:187,65:[1,188],67:kt,80:H,81:at,82:172,116:ut,117:We,118:Z},{30:189,67:kt,80:H,81:at,82:172,116:ut,117:We,118:Z},{30:190,67:kt,80:H,81:at,82:172,116:ut,117:We,118:Z},{30:191,67:kt,80:H,81:at,82:172,116:ut,117:We,118:Z},e(Ae,[2,182]),e(n,[2,20]),e(st,[2,25]),e(K,[2,46],{39:192,18:193,10:M,40:j}),e(ce,[2,73],{10:[1,194]}),{10:[1,195]},{30:196,67:kt,80:H,81:at,82:172,116:ut,117:We,118:Z},{77:[1,197],79:198,116:Ue,119:Je},e(Re,[2,79]),e(Re,[2,81]),e(Re,[2,82]),e(Re,[2,168]),e(Re,[2,169]),{76:199,79:121,80:Mt,81:fe,116:Ue,119:Je},e(ot,[2,84]),{8:O,9:z,10:Ne,11:U,12:ze,14:oe,21:201,27:_e,29:[1,200],32:re,44:Ke,60:Q,75:Me,83:141,84:Y,85:dt,86:Ge,87:ft,88:Be,89:tt,90:Ie,91:202,105:it,109:Ee,111:pt,114:ie,115:$t,116:ue},e(Fe,[2,101]),e(Fe,[2,103]),e(Fe,[2,104]),e(Fe,[2,157]),e(Fe,[2,158]),e(Fe,[2,159]),e(Fe,[2,160]),e(Fe,[2,161]),e(Fe,[2,162]),e(Fe,[2,163]),e(Fe,[2,164]),e(Fe,[2,165]),e(Fe,[2,166]),e(Fe,[2,167]),e(Fe,[2,90]),e(Fe,[2,91]),e(Fe,[2,92]),e(Fe,[2,93]),e(Fe,[2,94]),e(Fe,[2,95]),e(Fe,[2,96]),e(Fe,[2,97]),e(Fe,[2,98]),e(Fe,[2,99]),e(Fe,[2,100]),{6:11,7:12,8:o,9:l,10:u,11:h,20:17,22:18,23:19,24:20,25:21,26:22,27:d,32:[1,203],33:24,34:f,36:p,38:m,42:28,43:39,44:g,45:40,47:41,60:x,84:b,85:T,86:k,87:C,88:S,89:w,102:_,105:L,106:I,109:B,111:G,113:42,114:P,115:F,116:A,121:D,122:R,123:N,124:$,125:E},{10:M,18:204},{44:[1,205]},e(Ce,[2,43]),{10:[1,206],44:g,60:x,89:w,102:_,105:L,106:I,109:B,111:G,113:113,114:P,115:F,116:A},{10:[1,207]},{10:[1,208],106:[1,209]},e(Ye,[2,128]),{10:[1,210],44:g,60:x,89:w,102:_,105:L,106:I,109:B,111:G,113:113,114:P,115:F,116:A},{10:[1,211],44:g,60:x,89:w,102:_,105:L,106:I,109:B,111:G,113:113,114:P,115:F,116:A},{80:[1,212]},e(gt,[2,109],{10:[1,213]}),e(gt,[2,111],{10:[1,214]}),{80:[1,215]},e(Pt,[2,184]),{80:[1,216],98:[1,217]},e(Ce,[2,55],{113:113,44:g,60:x,89:w,102:_,105:L,106:I,109:B,111:G,114:P,115:F,116:A}),{31:[1,218],67:kt,82:219,116:ut,117:We,118:Z},e(zt,[2,86]),e(zt,[2,88]),e(zt,[2,89]),e(zt,[2,153]),e(zt,[2,154]),e(zt,[2,155]),e(zt,[2,156]),{49:[1,220],67:kt,82:219,116:ut,117:We,118:Z},{30:221,67:kt,80:H,81:at,82:172,116:ut,117:We,118:Z},{51:[1,222],67:kt,82:219,116:ut,117:We,118:Z},{53:[1,223],67:kt,82:219,116:ut,117:We,118:Z},{55:[1,224],67:kt,82:219,116:ut,117:We,118:Z},{57:[1,225],67:kt,82:219,116:ut,117:We,118:Z},{60:[1,226]},{64:[1,227],67:kt,82:219,116:ut,117:We,118:Z},{66:[1,228],67:kt,82:219,116:ut,117:We,118:Z},{30:229,67:kt,80:H,81:at,82:172,116:ut,117:We,118:Z},{31:[1,230],67:kt,82:219,116:ut,117:We,118:Z},{67:kt,69:[1,231],71:[1,232],82:219,116:ut,117:We,118:Z},{67:kt,69:[1,234],71:[1,233],82:219,116:ut,117:We,118:Z},e(K,[2,45],{18:156,10:M,40:Nr}),e(K,[2,47],{44:Lt}),e(ce,[2,75]),e(ce,[2,74]),{62:[1,235],67:kt,82:219,116:ut,117:We,118:Z},e(ce,[2,77]),e(Re,[2,80]),{77:[1,236],79:198,116:Ue,119:Je},{30:237,67:kt,80:H,81:at,82:172,116:ut,117:We,118:Z},e(vt,s,{5:238}),e(Fe,[2,102]),e(V,[2,35]),{43:239,44:g,45:40,47:41,60:x,89:w,102:_,105:L,106:I,109:B,111:G,113:42,114:P,115:F,116:A},{10:M,18:240},{10:mt,60:Vt,84:lr,92:241,105:Xe,107:242,108:243,109:ne,110:De,111:et,112:Bt},{10:mt,60:Vt,84:lr,92:252,104:[1,253],105:Xe,107:242,108:243,109:ne,110:De,111:et,112:Bt},{10:mt,60:Vt,84:lr,92:254,104:[1,255],105:Xe,107:242,108:243,109:ne,110:De,111:et,112:Bt},{105:[1,256]},{10:mt,60:Vt,84:lr,92:257,105:Xe,107:242,108:243,109:ne,110:De,111:et,112:Bt},{44:g,47:258,60:x,89:w,102:_,105:L,106:I,109:B,111:G,113:42,114:P,115:F,116:A},e(gt,[2,108]),{80:[1,259]},{80:[1,260],98:[1,261]},e(gt,[2,116]),e(gt,[2,118],{10:[1,262]}),e(gt,[2,119]),e(Oe,[2,56]),e(zt,[2,87]),e(Oe,[2,57]),{51:[1,263],67:kt,82:219,116:ut,117:We,118:Z},e(Oe,[2,64]),e(Oe,[2,59]),e(Oe,[2,60]),e(Oe,[2,61]),{109:[1,264]},e(Oe,[2,63]),e(Oe,[2,65]),{66:[1,265],67:kt,82:219,116:ut,117:We,118:Z},e(Oe,[2,67]),e(Oe,[2,68]),e(Oe,[2,70]),e(Oe,[2,69]),e(Oe,[2,71]),e([10,44,60,89,102,105,106,109,111,114,115,116],[2,85]),e(ce,[2,78]),{31:[1,266],67:kt,82:219,116:ut,117:We,118:Z},{6:11,7:12,8:o,9:l,10:u,11:h,20:17,22:18,23:19,24:20,25:21,26:22,27:d,32:[1,267],33:24,34:f,36:p,38:m,42:28,43:39,44:g,45:40,47:41,60:x,84:b,85:T,86:k,87:C,88:S,89:w,102:_,105:L,106:I,109:B,111:G,113:42,114:P,115:F,116:A,121:D,122:R,123:N,124:$,125:E},e(Ce,[2,53]),{43:268,44:g,45:40,47:41,60:x,89:w,102:_,105:L,106:I,109:B,111:G,113:42,114:P,115:F,116:A},e(gt,[2,121],{106:ur}),e(Mr,[2,130],{108:270,10:mt,60:Vt,84:lr,105:Xe,109:ne,110:De,111:et,112:Bt}),e(hr,[2,132]),e(hr,[2,134]),e(hr,[2,135]),e(hr,[2,136]),e(hr,[2,137]),e(hr,[2,138]),e(hr,[2,139]),e(hr,[2,140]),e(hr,[2,141]),e(gt,[2,122],{106:ur}),{10:[1,271]},e(gt,[2,123],{106:ur}),{10:[1,272]},e(Ye,[2,129]),e(gt,[2,105],{106:ur}),e(gt,[2,106],{113:113,44:g,60:x,89:w,102:_,105:L,106:I,109:B,111:G,114:P,115:F,116:A}),e(gt,[2,110]),e(gt,[2,112],{10:[1,273]}),e(gt,[2,113]),{98:[1,274]},{51:[1,275]},{62:[1,276]},{66:[1,277]},{8:O,9:z,11:U,21:278},e(V,[2,34]),e(Ce,[2,52]),{10:mt,60:Vt,84:lr,105:Xe,107:279,108:243,109:ne,110:De,111:et,112:Bt},e(hr,[2,133]),{14:ae,44:X,60:de,89:le,101:280,105:ge,106:he,109:te,111:Le,114:xe,115:ye,116:be,120:88},{14:ae,44:X,60:de,89:le,101:281,105:ge,106:he,109:te,111:Le,114:xe,115:ye,116:be,120:88},{98:[1,282]},e(gt,[2,120]),e(Oe,[2,58]),{30:283,67:kt,80:H,81:at,82:172,116:ut,117:We,118:Z},e(Oe,[2,66]),e(vt,s,{5:284}),e(Mr,[2,131],{108:270,10:mt,60:Vt,84:lr,105:Xe,109:ne,110:De,111:et,112:Bt}),e(gt,[2,126],{120:168,10:[1,285],14:ae,44:X,60:de,89:le,105:ge,106:he,109:te,111:Le,114:xe,115:ye,116:be}),e(gt,[2,127],{120:168,10:[1,286],14:ae,44:X,60:de,89:le,105:ge,106:he,109:te,111:Le,114:xe,115:ye,116:be}),e(gt,[2,114]),{31:[1,287],67:kt,82:219,116:ut,117:We,118:Z},{6:11,7:12,8:o,9:l,10:u,11:h,20:17,22:18,23:19,24:20,25:21,26:22,27:d,32:[1,288],33:24,34:f,36:p,38:m,42:28,43:39,44:g,45:40,47:41,60:x,84:b,85:T,86:k,87:C,88:S,89:w,102:_,105:L,106:I,109:B,111:G,113:42,114:P,115:F,116:A,121:D,122:R,123:N,124:$,125:E},{10:mt,60:Vt,84:lr,92:289,105:Xe,107:242,108:243,109:ne,110:De,111:et,112:Bt},{10:mt,60:Vt,84:lr,92:290,105:Xe,107:242,108:243,109:ne,110:De,111:et,112:Bt},e(Oe,[2,62]),e(V,[2,33]),e(gt,[2,124],{106:ur}),e(gt,[2,125],{106:ur})],defaultActions:{},parseError:a(function(_t,Ot){if(Ot.recoverable)this.trace(_t);else{var Kt=new Error(_t);throw Kt.hash=Ot,Kt}},"parseError"),parse:a(function(_t){var Ot=this,Kt=[0],lt=[],Wr=[null],ee=[],Wu=this.table,se="",wi=0,E8=0,A8=0,oCe=2,R8=1,lCe=ee.slice.call(arguments,1),Ui=Object.create(this.lexer),zu={yy:{}};for(var vw in this.yy)Object.prototype.hasOwnProperty.call(this.yy,vw)&&(zu.yy[vw]=this.yy[vw]);Ui.setInput(_t,zu.yy),zu.yy.lexer=Ui,zu.yy.parser=this,typeof Ui.yylloc>"u"&&(Ui.yylloc={});var Sw=Ui.yylloc;ee.push(Sw);var cCe=Ui.options&&Ui.options.ranges;typeof zu.yy.parseError=="function"?this.parseError=zu.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function flt(Ta){Kt.length=Kt.length-2*Ta,Wr.length=Wr.length-Ta,ee.length=ee.length-Ta}a(flt,"popStack");function uCe(){var Ta;return Ta=lt.pop()||Ui.lex()||R8,typeof Ta!="number"&&(Ta instanceof Array&&(lt=Ta,Ta=lt.pop()),Ta=Ot.symbols_[Ta]||Ta),Ta}a(uCe,"lex");for(var An,_w,qu,Ga,plt,ww,yf={},Nx,il,L8,Mx;;){if(qu=Kt[Kt.length-1],this.defaultActions[qu]?Ga=this.defaultActions[qu]:((An===null||typeof An>"u")&&(An=uCe()),Ga=Wu[qu]&&Wu[qu][An]),typeof Ga>"u"||!Ga.length||!Ga[0]){var Ew="";Mx=[];for(Nx in Wu[qu])this.terminals_[Nx]&&Nx>oCe&&Mx.push("'"+this.terminals_[Nx]+"'");Ui.showPosition?Ew="Parse error on line "+(wi+1)+`:
`+Ui.showPosition()+`
Expecting `+Mx.join(", ")+", got '"+(this.terminals_[An]||An)+"'":Ew="Parse error on line "+(wi+1)+": Unexpected "+(An==R8?"end of input":"'"+(this.terminals_[An]||An)+"'"),this.parseError(Ew,{text:Ui.match,token:this.terminals_[An]||An,line:Ui.yylineno,loc:Sw,expected:Mx})}if(Ga[0]instanceof Array&&Ga.length>1)throw new Error("Parse Error: multiple actions possible at state: "+qu+", token: "+An);switch(Ga[0]){case 1:Kt.push(An),Wr.push(Ui.yytext),ee.push(Ui.yylloc),Kt.push(Ga[1]),An=null,_w?(An=_w,_w=null):(E8=Ui.yyleng,se=Ui.yytext,wi=Ui.yylineno,Sw=Ui.yylloc,A8>0&&A8--);break;case 2:if(il=this.productions_[Ga[1]][1],yf.$=Wr[Wr.length-il],yf._$={first_line:ee[ee.length-(il||1)].first_line,last_line:ee[ee.length-1].last_line,first_column:ee[ee.length-(il||1)].first_column,last_column:ee[ee.length-1].last_column},cCe&&(yf._$.range=[ee[ee.length-(il||1)].range[0],ee[ee.length-1].range[1]]),ww=this.performAction.apply(yf,[se,E8,wi,zu.yy,Ga[1],Wr,ee].concat(lCe)),typeof ww<"u")return ww;il&&(Kt=Kt.slice(0,-1*il*2),Wr=Wr.slice(0,-1*il),ee=ee.slice(0,-1*il)),Kt.push(this.productions_[Ga[1]][0]),Wr.push(yf.$),ee.push(yf._$),L8=Wu[Kt[Kt.length-2]][Kt[Kt.length-1]],Kt.push(L8);break;case 3:return!0}}return!0},"parse")},ao=(function(){var Gr={EOF:1,parseError:a(function(Ot,Kt){if(this.yy.parser)this.yy.parser.parseError(Ot,Kt);else throw new Error(Ot)},"parseError"),setInput:a(function(_t,Ot){return this.yy=Ot||this.yy||{},this._input=_t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:a(function(){var _t=this._input[0];this.yytext+=_t,this.yyleng++,this.offset++,this.match+=_t,this.matched+=_t;var Ot=_t.match(/(?:\r\n?|\n).*/g);return Ot?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),_t},"input"),unput:a(function(_t){var Ot=_t.length,Kt=_t.split(/(?:\r\n?|\n)/g);this._input=_t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-Ot),this.offset-=Ot;var lt=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),Kt.length-1&&(this.yylineno-=Kt.length-1);var Wr=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:Kt?(Kt.length===lt.length?this.yylloc.first_column:0)+lt[lt.length-Kt.length].length-Kt[0].length:this.yylloc.first_column-Ot},this.options.ranges&&(this.yylloc.range=[Wr[0],Wr[0]+this.yyleng-Ot]),this.yyleng=this.yytext.length,this},"unput"),more:a(function(){return this._more=!0,this},"more"),reject:a(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:a(function(_t){this.unput(this.match.slice(_t))},"less"),pastInput:a(function(){var _t=this.matched.substr(0,this.matched.length-this.match.length);return(_t.length>20?"...":"")+_t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:a(function(){var _t=this.match;return _t.length<20&&(_t+=this._input.substr(0,20-_t.length)),(_t.substr(0,20)+(_t.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:a(function(){var _t=this.pastInput(),Ot=new Array(_t.length+1).join("-");return _t+this.upcomingInput()+`
`+Ot+"^"},"showPosition"),test_match:a(function(_t,Ot){var Kt,lt,Wr;if(this.options.backtrack_lexer&&(Wr={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&&(Wr.yylloc.range=this.yylloc.range.slice(0))),lt=_t[0].match(/(?:\r\n?|\n).*/g),lt&&(this.yylineno+=lt.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:lt?lt[lt.length-1].length-lt[lt.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+_t[0].length},this.yytext+=_t[0],this.match+=_t[0],this.matches=_t,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(_t[0].length),this.matched+=_t[0],Kt=this.performAction.call(this,this.yy,this,Ot,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),Kt)return Kt;if(this._backtrack){for(var ee in Wr)this[ee]=Wr[ee];return!1}return!1},"test_match"),next:a(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var _t,Ot,Kt,lt;this._more||(this.yytext="",this.match="");for(var Wr=this._currentRules(),ee=0;ee<Wr.length;ee++)if(Kt=this._input.match(this.rules[Wr[ee]]),Kt&&(!Ot||Kt[0].length>Ot[0].length)){if(Ot=Kt,lt=ee,this.options.backtrack_lexer){if(_t=this.test_match(Kt,Wr[ee]),_t!==!1)return _t;if(this._backtrack){Ot=!1;continue}else return!1}else if(!this.options.flex)break}return Ot?(_t=this.test_match(Ot,Wr[lt]),_t!==!1?_t:!1):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:a(function(){var Ot=this.next();return Ot||this.lex()},"lex"),begin:a(function(Ot){this.conditionStack.push(Ot)},"begin"),popState:a(function(){var Ot=this.conditionStack.length-1;return Ot>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:a(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:a(function(Ot){return Ot=this.conditionStack.length-1-Math.abs(Ot||0),Ot>=0?this.conditionStack[Ot]:"INITIAL"},"topState"),pushState:a(function(Ot){this.begin(Ot)},"pushState"),stateStackSize:a(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:a(function(Ot,Kt,lt,Wr){var ee=Wr;switch(lt){case 0:return this.begin("acc_title"),34;break;case 1:return this.popState(),"acc_title_value";break;case 2:return this.begin("acc_descr"),36;break;case 3:return this.popState(),"acc_descr_value";break;case 4:this.begin("acc_descr_multiline");break;case 5:this.popState();break;case 6:return"acc_descr_multiline_value";case 7:return this.pushState("shapeData"),Kt.yytext="",40;break;case 8:return this.pushState("shapeDataStr"),40;break;case 9:return this.popState(),40;break;case 10:let Wu=/\n\s*/g;return Kt.yytext=Kt.yytext.replace(Wu,"<br/>"),40;break;case 11:return 40;case 12:this.popState();break;case 13:this.begin("callbackname");break;case 14:this.popState();break;case 15:this.popState(),this.begin("callbackargs");break;case 16:return 95;case 17:this.popState();break;case 18:return 96;case 19:return"MD_STR";case 20:this.popState();break;case 21:this.begin("md_string");break;case 22:return"STR";case 23:this.popState();break;case 24:this.pushState("string");break;case 25:return 84;case 26:return 102;case 27:return 85;case 28:return 104;case 29:return 86;case 30:return 87;case 31:return 97;case 32:this.begin("click");break;case 33:this.popState();break;case 34:return 88;case 35:return Ot.lex.firstGraph()&&this.begin("dir"),12;break;case 36:return Ot.lex.firstGraph()&&this.begin("dir"),12;break;case 37:return Ot.lex.firstGraph()&&this.begin("dir"),12;break;case 38:return 27;case 39:return 32;case 40:return 98;case 41:return 98;case 42:return 98;case 43:return 98;case 44:return this.popState(),13;break;case 45:return this.popState(),14;break;case 46:return this.popState(),14;break;case 47:return this.popState(),14;break;case 48:return this.popState(),14;break;case 49:return this.popState(),14;break;case 50:return this.popState(),14;break;case 51:return this.popState(),14;break;case 52:return this.popState(),14;break;case 53:return this.popState(),14;break;case 54:return this.popState(),14;break;case 55:return 121;case 56:return 122;case 57:return 123;case 58:return 124;case 59:return 125;case 60:return 78;case 61:return 105;case 62:return 111;case 63:return 46;case 64:return 60;case 65:return 44;case 66:return 8;case 67:return 106;case 68:return 115;case 69:return this.popState(),77;break;case 70:return this.pushState("edgeText"),75;break;case 71:return 119;case 72:return this.popState(),77;break;case 73:return this.pushState("thickEdgeText"),75;break;case 74:return 119;case 75:return this.popState(),77;break;case 76:return this.pushState("dottedEdgeText"),75;break;case 77:return 119;case 78:return 77;case 79:return this.popState(),53;break;case 80:return"TEXT";case 81:return this.pushState("ellipseText"),52;break;case 82:return this.popState(),55;break;case 83:return this.pushState("text"),54;break;case 84:return this.popState(),57;break;case 85:return this.pushState("text"),56;break;case 86:return 58;case 87:return this.pushState("text"),67;break;case 88:return this.popState(),64;break;case 89:return this.pushState("text"),63;break;case 90:return this.popState(),49;break;case 91:return this.pushState("text"),48;break;case 92:return this.popState(),69;break;case 93:return this.popState(),71;break;case 94:return 117;case 95:return this.pushState("trapText"),68;break;case 96:return this.pushState("trapText"),70;break;case 97:return 118;case 98:return 67;case 99:return 90;case 100:return"SEP";case 101:return 89;case 102:return 115;case 103:return 111;case 104:return 44;case 105:return 109;case 106:return 114;case 107:return 116;case 108:return this.popState(),62;break;case 109:return this.pushState("text"),62;break;case 110:return this.popState(),51;break;case 111:return this.pushState("text"),50;break;case 112:return this.popState(),31;break;case 113:return this.pushState("text"),29;break;case 114:return this.popState(),66;break;case 115:return this.pushState("text"),65;break;case 116:return"TEXT";case 117:return"QUOTE";case 118:return 9;case 119:return 10;case 120: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+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:.*direction\s+TD[^\n]*)/,/^(?:[^\s\"]+@(?=[^\{\"]))/,/^(?:[0-9]+)/,/^(?:#)/,/^(?::::)/,/^(?::)/,/^(?:&)/,/^(?:;)/,/^(?:,)/,/^(?:\*)/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?--\s*)/,/^(?:[^-]|-(?!-)+)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?==\s*)/,/^(?:[^=]|=(?!))/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?:\s*[xo<]?-\.\s*)/,/^(?:[^\.]|\.(?!))/,/^(?:\s*~~[\~]+\s*)/,/^(?:[-/\)][\)])/,/^(?:[^\(\)\[\]\{\}]|!\)+)/,/^(?:\(-)/,/^(?:\]\))/,/^(?:\(\[)/,/^(?:\]\])/,/^(?:\[\[)/,/^(?:\[\|)/,/^(?:>)/,/^(?:\)\])/,/^(?:\[\()/,/^(?:\)\)\))/,/^(?:\(\(\()/,/^(?:[\\(?=\])][\]])/,/^(?:\/(?=\])\])/,/^(?:\/(?!\])|\\(?!\])|[^\\\[\]\(\)\{\}\/]+)/,/^(?:\[\/)/,/^(?:\[\\)/,/^(?:<)/,/^(?:>)/,/^(?:\^)/,/^(?:\\\|)/,/^(?:v\b)/,/^(?:\*)/,/^(?:#)/,/^(?:&)/,/^(?:([A-Za-z0-9!"\#$%&'*+\.`?\\_\/]|-(?=[^\>\-\.])|(?!))+)/,/^(?:-)/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\|)/,/^(?:\|)/,/^(?:\))/,/^(?:\()/,/^(?:\])/,/^(?:\[)/,/^(?:(\}))/,/^(?:\{)/,/^(?:[^\[\]\(\)\{\}\|\"]+)/,/^(?:")/,/^(?:(\r?\n)+)/,/^(?:\s)/,/^(?:$)/],conditions:{shapeDataEndBracket:{rules:[21,24,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},shapeDataStr:{rules:[9,10,21,24,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},shapeData:{rules:[8,11,12,21,24,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},callbackargs:{rules:[17,18,21,24,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},callbackname:{rules:[14,15,16,21,24,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},href:{rules:[21,24,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},click:{rules:[21,24,33,34,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},dottedEdgeText:{rules:[21,24,75,77,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},thickEdgeText:{rules:[21,24,72,74,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},edgeText:{rules:[21,24,69,71,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},trapText:{rules:[21,24,78,81,83,85,89,91,92,93,94,95,96,109,111,113,115],inclusive:!1},ellipseText:{rules:[21,24,78,79,80,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},text:{rules:[21,24,78,81,82,83,84,85,88,89,90,91,95,96,108,109,110,111,112,113,114,115,116],inclusive:!1},vertex:{rules:[21,24,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},dir:{rules:[21,24,44,45,46,47,48,49,50,51,52,53,54,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},acc_descr_multiline:{rules:[5,6,21,24,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},acc_descr:{rules:[3,21,24,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},acc_title:{rules:[1,21,24,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},md_string:{rules:[19,20,21,24,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},string:{rules:[21,22,23,24,78,81,83,85,89,91,95,96,109,111,113,115],inclusive:!1},INITIAL:{rules:[0,2,4,7,13,21,24,25,26,27,28,29,30,31,32,35,36,37,38,39,40,41,42,43,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,72,73,75,76,78,81,83,85,86,87,89,91,95,96,97,98,99,100,101,102,103,104,105,106,107,109,111,113,115,117,118,119,120],inclusive:!0}}};return Gr})();rn.lexer=ao;function Gu(){this.yy={}}return a(Gu,"Parser"),Gu.prototype=rn,rn.Parser=Gu,new Gu})();rD.parser=rD;iD=rD});var qte,jte,Ute=v(()=>{"use strict";zte();qte=Object.assign({},iD);qte.parse=e=>{let t=e.replace(/}\s*\n/g,`}
`);return iD.parse(t)};jte=qte});var Po,Gp=v(()=>{"use strict";Po=a(()=>`
/* Font Awesome icon styling - consolidated */
.label-icon {
display: inline-block;
height: 1em;
overflow: visible;
vertical-align: -0.125em;
}
.node .label-icon path {
fill: currentColor;
stroke: revert;
stroke-width: revert;
}
`,"getIconStyles")});var D7e,I7e,Hte,Yte=v(()=>{"use strict";Bi();Gp();D7e=a((e,t)=>{let r=Hu,i=r(e,"r"),n=r(e,"g"),s=r(e,"b");return Ti(i,n,s,t)},"fade"),I7e=a(e=>`.label {
font-family: ${e.fontFamily};
color: ${e.nodeTextColor||e.textColor};
}
.cluster-label text {
fill: ${e.titleColor};
}
.cluster-label span {
color: ${e.titleColor};
}
.cluster-label span p {
background-color: transparent;
}
.label text,span {
fill: ${e.nodeTextColor||e.textColor};
color: ${e.nodeTextColor||e.textColor};
}
.node rect,
.node circle,
.node ellipse,
.node polygon,
.node path {
fill: ${e.mainBkg};
stroke: ${e.nodeBorder};
stroke-width: ${e.strokeWidth??1}px;
}
.rough-node .label text , .node .label text, .image-shape .label, .icon-shape .label {
text-anchor: middle;
}
// .flowchart-label .text-outer-tspan {
// text-anchor: middle;
// }
// .flowchart-label .text-inner-tspan {
// text-anchor: start;
// }
.node .katex path {
fill: #000;
stroke: #000;
stroke-width: 1px;
}
.rough-node .label,.node .label, .image-shape .label, .icon-shape .label {
text-align: center;
}
.node.clickable {
cursor: pointer;
}
.root .anchor path {
fill: ${e.lineColor} !important;
stroke-width: 0;
stroke: ${e.lineColor};
}
.arrowheadPath {
fill: ${e.arrowheadColor};
}
.edgePath .path {
stroke: ${e.lineColor};
stroke-width: ${e.strokeWidth??2}px;
}
.flowchart-link {
stroke: ${e.lineColor};
fill: none;
}
.edgeLabel {
background-color: ${e.edgeLabelBackground};
p {
background-color: ${e.edgeLabelBackground};
}
rect {
opacity: 0.5;
background-color: ${e.edgeLabelBackground};
fill: ${e.edgeLabelBackground};
}
text-align: center;
}
/* For html labels only */
.labelBkg {
background-color: ${D7e(e.edgeLabelBackground,.5)};
// background-color:
}
.cluster rect {
fill: ${e.clusterBkg};
stroke: ${e.clusterBorder};
stroke-width: 1px;
}
.cluster text {
fill: ${e.titleColor};
}
.cluster span {
color: ${e.titleColor};
}
/* .cluster div {
color: ${e.titleColor};
} */
div.mermaidTooltip {
position: absolute;
text-align: center;
max-width: 200px;
padding: 2px;
font-family: ${e.fontFamily};
font-size: 12px;
background: ${e.tertiaryColor};
border: 1px solid ${e.border2};
border-radius: 2px;
pointer-events: none;
z-index: 100;
}
.flowchartTitleText {
text-anchor: middle;
font-size: 18px;
fill: ${e.textColor};
}
rect.text {
fill: none;
stroke-width: 0;
}
.icon-shape, .image-shape {
background-color: ${e.edgeLabelBackground};
p {
background-color: ${e.edgeLabelBackground};
padding: 2px;
}
.label rect {
opacity: 0.5;
background-color: ${e.edgeLabelBackground};
fill: ${e.edgeLabelBackground};
}
text-align: center;
}
${Po()}
`,"getStyles"),Hte=I7e});var nD={};tr(nD,{diagram:()=>N7e});var N7e,aD=v(()=>{"use strict";bt();iY();Wte();Ute();Yte();N7e={parser:jte,get db(){return new wT},renderer:Gte,styles:Hte,init:a(e=>{e.flowchart||(e.flowchart={}),e.layout&&Rg({layout:e.layout}),e.flowchart.arrowMarkerAbsolute=e.arrowMarkerAbsolute,Rg({flowchart:{arrowMarkerAbsolute:e.arrowMarkerAbsolute}})},"init")}});var sD,Jte,ere=v(()=>{"use strict";sD=(function(){var e=a(function(ye,be,Ce,Oe){for(Ce=Ce||{},Oe=ye.length;Oe--;Ce[ye[Oe]]=be);return Ce},"o"),t=[6,8,10,22,24,26,28,33,34,35,36,37,40,43,44,48,50,51,52],r=[1,10],i=[1,11],n=[1,12],s=[1,13],o=[1,23],l=[1,24],u=[1,25],h=[1,26],d=[1,27],f=[1,19],p=[1,28],m=[1,29],g=[1,20],x=[1,18],b=[1,21],T=[1,22],k=[1,36],C=[1,37],S=[1,38],w=[1,39],_=[1,40],L=[6,8,10,13,15,17,20,21,22,24,26,28,33,34,35,36,37,40,43,44,48,50,51,52,65,66,67,68,69],I=[1,45],B=[1,46],G=[1,55],P=[40,48,50,51,52,70,71],F=[1,66],A=[1,64],D=[1,61],R=[1,65],N=[1,67],$=[6,8,10,13,17,22,24,26,28,33,34,35,36,37,40,41,42,43,44,48,49,50,51,52,65,66,67,68,69],E=[65,66,67,68,69],M=[1,84],V=[1,83],O=[1,81],z=[1,82],U=[6,10,42,47],K=[6,10,13,41,42,47,48,49],j=[1,92],ae=[1,91],X=[1,90],de=[19,58],le=[1,101],ge=[1,100],he=[19,58,60,62],te={trace:a(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,DECIMAL_NUM:51,ENTITY_ONE:52,attribute:53,attributeType:54,attributeName:55,attributeKeyTypeList:56,attributeComment:57,ATTRIBUTE_WORD:58,attributeKeyType:59,",":60,ATTRIBUTE_KEY:61,COMMENT:62,cardinality:63,relType:64,ZERO_OR_ONE:65,ZERO_OR_MORE:66,ONE_OR_MORE:67,ONLY_ONE:68,MD_PARENT:69,NON_IDENTIFYING:70,IDENTIFYING:71,WORD:72,$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",51:"DECIMAL_NUM",52:"ENTITY_ONE",58:"ATTRIBUTE_WORD",60:",",61:"ATTRIBUTE_KEY",62:"COMMENT",65:"ZERO_OR_ONE",66:"ZERO_OR_MORE",67:"ONE_OR_MORE",68:"ONLY_ONE",69:"MD_PARENT",70:"NON_IDENTIFYING",71:"IDENTIFYING",72:"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],[11,1],[11,1],[11,1],[18,1],[18,2],[53,2],[53,3],[53,3],[53,4],[54,1],[55,1],[56,1],[56,3],[59,1],[57,1],[12,3],[63,1],[63,1],[63,1],[63,1],[63,1],[64,1],[64,1],[14,1],[14,1],[14,1]],performAction:a(function(be,Ce,Oe,Ae,st,ce,Mt){var fe=ce.length-1;switch(st){case 1:break;case 2:this.$=[];break;case 3:ce[fe-1].push(ce[fe]),this.$=ce[fe-1];break;case 4:case 5:this.$=ce[fe];break;case 6:case 7:this.$=[];break;case 8:Ae.addEntity(ce[fe-4]),Ae.addEntity(ce[fe-2]),Ae.addRelationship(ce[fe-4],ce[fe],ce[fe-2],ce[fe-3]);break;case 9:Ae.addEntity(ce[fe-8]),Ae.addEntity(ce[fe-4]),Ae.addRelationship(ce[fe-8],ce[fe],ce[fe-4],ce[fe-5]),Ae.setClass([ce[fe-8]],ce[fe-6]),Ae.setClass([ce[fe-4]],ce[fe-2]);break;case 10:Ae.addEntity(ce[fe-6]),Ae.addEntity(ce[fe-2]),Ae.addRelationship(ce[fe-6],ce[fe],ce[fe-2],ce[fe-3]),Ae.setClass([ce[fe-6]],ce[fe-4]);break;case 11:Ae.addEntity(ce[fe-6]),Ae.addEntity(ce[fe-4]),Ae.addRelationship(ce[fe-6],ce[fe],ce[fe-4],ce[fe-5]),Ae.setClass([ce[fe-4]],ce[fe-2]);break;case 12:Ae.addEntity(ce[fe-3]),Ae.addAttributes(ce[fe-3],ce[fe-1]);break;case 13:Ae.addEntity(ce[fe-5]),Ae.addAttributes(ce[fe-5],ce[fe-1]),Ae.setClass([ce[fe-5]],ce[fe-3]);break;case 14:Ae.addEntity(ce[fe-2]);break;case 15:Ae.addEntity(ce[fe-4]),Ae.setClass([ce[fe-4]],ce[fe-2]);break;case 16:Ae.addEntity(ce[fe]);break;case 17:Ae.addEntity(ce[fe-2]),Ae.setClass([ce[fe-2]],ce[fe]);break;case 18:Ae.addEntity(ce[fe-6],ce[fe-4]),Ae.addAttributes(ce[fe-6],ce[fe-1]);break;case 19:Ae.addEntity(ce[fe-8],ce[fe-6]),Ae.addAttributes(ce[fe-8],ce[fe-1]),Ae.setClass([ce[fe-8]],ce[fe-3]);break;case 20:Ae.addEntity(ce[fe-5],ce[fe-3]);break;case 21:Ae.addEntity(ce[fe-7],ce[fe-5]),Ae.setClass([ce[fe-7]],ce[fe-2]);break;case 22:Ae.addEntity(ce[fe-3],ce[fe-1]);break;case 23:Ae.addEntity(ce[fe-5],ce[fe-3]),Ae.setClass([ce[fe-5]],ce[fe]);break;case 24:case 25:this.$=ce[fe].trim(),Ae.setAccTitle(this.$);break;case 26:case 27:this.$=ce[fe].trim(),Ae.setAccDescription(this.$);break;case 32:Ae.setDirection("TB");break;case 33:Ae.setDirection("BT");break;case 34:Ae.setDirection("RL");break;case 35:Ae.setDirection("LR");break;case 36:this.$=ce[fe-3],Ae.addClass(ce[fe-2],ce[fe-1]);break;case 37:case 38:case 59:case 67:this.$=[ce[fe]];break;case 39:case 40:this.$=ce[fe-2].concat([ce[fe]]);break;case 41:this.$=ce[fe-2],Ae.setClass(ce[fe-1],ce[fe]);break;case 42:this.$=ce[fe-3],Ae.addCssStyles(ce[fe-2],ce[fe-1]);break;case 43:this.$=[ce[fe]];break;case 44:ce[fe-2].push(ce[fe]),this.$=ce[fe-2];break;case 46:this.$=ce[fe-1]+ce[fe];break;case 54:case 79:case 80:this.$=ce[fe].replace(/"/g,"");break;case 55:case 56:case 57:case 58:case 81:this.$=ce[fe];break;case 60:ce[fe].push(ce[fe-1]),this.$=ce[fe];break;case 61:this.$={type:ce[fe-1],name:ce[fe]};break;case 62:this.$={type:ce[fe-2],name:ce[fe-1],keys:ce[fe]};break;case 63:this.$={type:ce[fe-2],name:ce[fe-1],comment:ce[fe]};break;case 64:this.$={type:ce[fe-3],name:ce[fe-2],keys:ce[fe-1],comment:ce[fe]};break;case 65:case 66:case 69:this.$=ce[fe];break;case 68:ce[fe-2].push(ce[fe]),this.$=ce[fe-2];break;case 70:this.$=ce[fe].replace(/"/g,"");break;case 71:this.$={cardA:ce[fe],relType:ce[fe-1],cardB:ce[fe-2]};break;case 72:this.$=Ae.Cardinality.ZERO_OR_ONE;break;case 73:this.$=Ae.Cardinality.ZERO_OR_MORE;break;case 74:this.$=Ae.Cardinality.ONE_OR_MORE;break;case 75:this.$=Ae.Cardinality.ONLY_ONE;break;case 76:this.$=Ae.Cardinality.MD_PARENT;break;case 77:this.$=Ae.Identification.NON_IDENTIFYING;break;case 78:this.$=Ae.Identification.IDENTIFYING;break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},e(t,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:9,22:r,24:i,26:n,28:s,29:14,30:15,31:16,32:17,33:o,34:l,35:u,36:h,37:d,40:f,43:p,44:m,48:g,50:x,51:b,52:T},e(t,[2,7],{1:[2,1]}),e(t,[2,3]),{9:30,11:9,22:r,24:i,26:n,28:s,29:14,30:15,31:16,32:17,33:o,34:l,35:u,36:h,37:d,40:f,43:p,44:m,48:g,50:x,51:b,52:T},e(t,[2,5]),e(t,[2,6]),e(t,[2,16],{12:31,63:35,15:[1,32],17:[1,33],20:[1,34],65:k,66:C,67:S,68:w,69:_}),{23:[1,41]},{25:[1,42]},{27:[1,43]},e(t,[2,27]),e(t,[2,28]),e(t,[2,29]),e(t,[2,30]),e(t,[2,31]),e(L,[2,54]),e(L,[2,55]),e(L,[2,56]),e(L,[2,57]),e(L,[2,58]),e(t,[2,32]),e(t,[2,33]),e(t,[2,34]),e(t,[2,35]),{16:44,40:I,41:B},{16:47,40:I,41:B},{16:48,40:I,41:B},e(t,[2,4]),{11:49,40:f,48:g,50:x,51:b,52:T},{16:50,40:I,41:B},{18:51,19:[1,52],53:53,54:54,58:G},{11:56,40:f,48:g,50:x,51:b,52:T},{64:57,70:[1,58],71:[1,59]},e(P,[2,72]),e(P,[2,73]),e(P,[2,74]),e(P,[2,75]),e(P,[2,76]),e(t,[2,24]),e(t,[2,25]),e(t,[2,26]),{13:F,38:60,41:A,42:D,45:62,46:63,48:R,49:N},e($,[2,37]),e($,[2,38]),{16:68,40:I,41:B,42:D},{13:F,38:69,41:A,42:D,45:62,46:63,48:R,49:N},{13:[1,70],15:[1,71]},e(t,[2,17],{63:35,12:72,17:[1,73],42:D,65:k,66:C,67:S,68:w,69:_}),{19:[1,74]},e(t,[2,14]),{18:75,19:[2,59],53:53,54:54,58:G},{55:76,58:[1,77]},{58:[2,65]},{21:[1,78]},{63:79,65:k,66:C,67:S,68:w,69:_},e(E,[2,77]),e(E,[2,78]),{6:M,10:V,39:80,42:O,47:z},{40:[1,85],41:[1,86]},e(U,[2,43],{46:87,13:F,41:A,48:R,49:N}),e(K,[2,45]),e(K,[2,50]),e(K,[2,51]),e(K,[2,52]),e(K,[2,53]),e(t,[2,41],{42:D}),{6:M,10:V,39:88,42:O,47:z},{14:89,40:j,50:ae,72:X},{16:93,40:I,41:B},{11:94,40:f,48:g,50:x,51:b,52:T},{18:95,19:[1,96],53:53,54:54,58:G},e(t,[2,12]),{19:[2,60]},e(de,[2,61],{56:97,57:98,59:99,61:le,62:ge}),e([19,58,61,62],[2,66]),e(t,[2,22],{15:[1,103],17:[1,102]}),e([40,48,50,51,52],[2,71]),e(t,[2,36]),{13:F,41:A,45:104,46:63,48:R,49:N},e(t,[2,47]),e(t,[2,48]),e(t,[2,49]),e($,[2,39]),e($,[2,40]),e(K,[2,46]),e(t,[2,42]),e(t,[2,8]),e(t,[2,79]),e(t,[2,80]),e(t,[2,81]),{13:[1,105],42:D},{13:[1,107],15:[1,106]},{19:[1,108]},e(t,[2,15]),e(de,[2,62],{57:109,60:[1,110],62:ge}),e(de,[2,63]),e(he,[2,67]),e(de,[2,70]),e(he,[2,69]),{18:111,19:[1,112],53:53,54:54,58:G},{16:113,40:I,41:B},e(U,[2,44],{46:87,13:F,41:A,48:R,49:N}),{14:114,40:j,50:ae,72:X},{16:115,40:I,41:B},{14:116,40:j,50:ae,72:X},e(t,[2,13]),e(de,[2,64]),{59:117,61:le},{19:[1,118]},e(t,[2,20]),e(t,[2,23],{17:[1,119],42:D}),e(t,[2,11]),{13:[1,120],42:D},e(t,[2,10]),e(he,[2,68]),e(t,[2,18]),{18:121,19:[1,122],53:53,54:54,58:G},{14:123,40:j,50:ae,72:X},{19:[1,124]},e(t,[2,21]),e(t,[2,9]),e(t,[2,19])],defaultActions:{55:[2,65],75:[2,60]},parseError:a(function(be,Ce){if(Ce.recoverable)this.trace(be);else{var Oe=new Error(be);throw Oe.hash=Ce,Oe}},"parseError"),parse:a(function(be){var Ce=this,Oe=[0],Ae=[],st=[null],ce=[],Mt=this.table,fe="",Ue=0,Je=0,ot=0,Ne=2,ze=1,oe=ce.slice.call(arguments,1),_e=Object.create(this.lexer),re={yy:{}};for(var Ke in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ke)&&(re.yy[Ke]=this.yy[Ke]);_e.setInput(be,re.yy),re.yy.lexer=_e,re.yy.parser=this,typeof _e.yylloc>"u"&&(_e.yylloc={});var Q=_e.yylloc;ce.push(Q);var Me=_e.options&&_e.options.ranges;typeof re.yy.parseError=="function"?this.parseError=re.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Y(Lt){Oe.length=Oe.length-2*Lt,st.length=st.length-Lt,ce.length=ce.length-Lt}a(Y,"popStack");function dt(){var Lt;return Lt=Ae.pop()||_e.lex()||ze,typeof Lt!="number"&&(Lt instanceof Array&&(Ae=Lt,Lt=Ae.pop()),Lt=Ce.symbols_[Lt]||Lt),Lt}a(dt,"lex");for(var Ge,ft,Be,tt,Ie,it,Ee={},pt,ie,$t,ue;;){if(Be=Oe[Oe.length-1],this.defaultActions[Be]?tt=this.defaultActions[Be]:((Ge===null||typeof Ge>"u")&&(Ge=dt()),tt=Mt[Be]&&Mt[Be][Ge]),typeof tt>"u"||!tt.length||!tt[0]){var vt="";ue=[];for(pt in Mt[Be])this.terminals_[pt]&&pt>Ne&&ue.push("'"+this.terminals_[pt]+"'");_e.showPosition?vt="Parse error on line "+(Ue+1)+`:
`+_e.showPosition()+`
Expecting `+ue.join(", ")+", got '"+(this.terminals_[Ge]||Ge)+"'":vt="Parse error on line "+(Ue+1)+": Unexpected "+(Ge==ze?"end of input":"'"+(this.terminals_[Ge]||Ge)+"'"),this.parseError(vt,{text:_e.match,token:this.terminals_[Ge]||Ge,line:_e.yylineno,loc:Q,expected:ue})}if(tt[0]instanceof Array&&tt.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Be+", token: "+Ge);switch(tt[0]){case 1:Oe.push(Ge),st.push(_e.yytext),ce.push(_e.yylloc),Oe.push(tt[1]),Ge=null,ft?(Ge=ft,ft=null):(Je=_e.yyleng,fe=_e.yytext,Ue=_e.yylineno,Q=_e.yylloc,ot>0&&ot--);break;case 2:if(ie=this.productions_[tt[1]][1],Ee.$=st[st.length-ie],Ee._$={first_line:ce[ce.length-(ie||1)].first_line,last_line:ce[ce.length-1].last_line,first_column:ce[ce.length-(ie||1)].first_column,last_column:ce[ce.length-1].last_column},Me&&(Ee._$.range=[ce[ce.length-(ie||1)].range[0],ce[ce.length-1].range[1]]),it=this.performAction.apply(Ee,[fe,Je,Ue,re.yy,tt[1],st,ce].concat(oe)),typeof it<"u")return it;ie&&(Oe=Oe.slice(0,-1*ie*2),st=st.slice(0,-1*ie),ce=ce.slice(0,-1*ie)),Oe.push(this.productions_[tt[1]][0]),st.push(Ee.$),ce.push(Ee._$),$t=Mt[Oe[Oe.length-2]][Oe[Oe.length-1]],Oe.push($t);break;case 3:return!0}}return!0},"parse")},Le=(function(){var ye={EOF:1,parseError:a(function(Ce,Oe){if(this.yy.parser)this.yy.parser.parseError(Ce,Oe);else throw new Error(Ce)},"parseError"),setInput:a(function(be,Ce){return this.yy=Ce||this.yy||{},this._input=be,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:a(function(){var be=this._input[0];this.yytext+=be,this.yyleng++,this.offset++,this.match+=be,this.matched+=be;var Ce=be.match(/(?:\r\n?|\n).*/g);return Ce?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),be},"input"),unput:a(function(be){var Ce=be.length,Oe=be.split(/(?:\r\n?|\n)/g);this._input=be+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-Ce),this.offset-=Ce;var Ae=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),Oe.length-1&&(this.yylineno-=Oe.length-1);var st=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:Oe?(Oe.length===Ae.length?this.yylloc.first_column:0)+Ae[Ae.length-Oe.length].length-Oe[0].length:this.yylloc.first_column-Ce},this.options.ranges&&(this.yylloc.range=[st[0],st[0]+this.yyleng-Ce]),this.yyleng=this.yytext.length,this},"unput"),more:a(function(){return this._more=!0,this},"more"),reject:a(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:a(function(be){this.unput(this.match.slice(be))},"less"),pastInput:a(function(){var be=this.matched.substr(0,this.matched.length-this.match.length);return(be.length>20?"...":"")+be.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:a(function(){var be=this.match;return be.length<20&&(be+=this._input.substr(0,20-be.length)),(be.substr(0,20)+(be.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:a(function(){var be=this.pastInput(),Ce=new Array(be.length+1).join("-");return be+this.upcomingInput()+`
`+Ce+"^"},"showPosition"),test_match:a(function(be,Ce){var Oe,Ae,st;if(this.options.backtrack_lexer&&(st={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&&(st.yylloc.range=this.yylloc.range.slice(0))),Ae=be[0].match(/(?:\r\n?|\n).*/g),Ae&&(this.yylineno+=Ae.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Ae?Ae[Ae.length-1].length-Ae[Ae.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+be[0].length},this.yytext+=be[0],this.match+=be[0],this.matches=be,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(be[0].length),this.matched+=be[0],Oe=this.performAction.call(this,this.yy,this,Ce,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),Oe)return Oe;if(this._backtrack){for(var ce in st)this[ce]=st[ce];return!1}return!1},"test_match"),next:a(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var be,Ce,Oe,Ae;this._more||(this.yytext="",this.match="");for(var st=this._currentRules(),ce=0;ce<st.length;ce++)if(Oe=this._input.match(this.rules[st[ce]]),Oe&&(!Ce||Oe[0].length>Ce[0].length)){if(Ce=Oe,Ae=ce,this.options.backtrack_lexer){if(be=this.test_match(Oe,st[ce]),be!==!1)return be;if(this._backtrack){Ce=!1;continue}else return!1}else if(!this.options.flex)break}return Ce?(be=this.test_match(Ce,st[Ae]),be!==!1?be:!1):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:a(function(){var Ce=this.next();return Ce||this.lex()},"lex"),begin:a(function(Ce){this.conditionStack.push(Ce)},"begin"),popState:a(function(){var Ce=this.conditionStack.length-1;return Ce>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:a(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:a(function(Ce){return Ce=this.conditionStack.length-1-Math.abs(Ce||0),Ce>=0?this.conditionStack[Ce]:"INITIAL"},"topState"),pushState:a(function(Ce){this.begin(Ce)},"pushState"),stateStackSize:a(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:a(function(Ce,Oe,Ae,st){var ce=st;switch(Ae){case 0:return this.begin("acc_title"),24;break;case 1:return this.popState(),"acc_title_value";break;case 2:return this.begin("acc_descr"),26;break;case 3:return this.popState(),"acc_descr_value";break;case 4:this.begin("acc_descr_multiline");break;case 5:this.popState();break;case 6:return"acc_descr_multiline_value";case 7:return 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 72;case 16:return 4;case 17:return this.begin("block"),17;break;case 18:return 49;case 19:return 49;case 20:return 42;case 21:return 15;case 22:return 13;case 23:break;case 24:return 61;case 25:return 58;case 26:return 58;case 27:return 62;case 28:break;case 29:return this.popState(),19;break;case 30:return Oe.yytext[0];case 31:return 20;case 32:return 21;case 33:return this.begin("style"),44;break;case 34:return this.popState(),10;break;case 35:break;case 36:return 13;case 37:return 42;case 38:return 49;case 39:return this.begin("style"),37;break;case 40:return 43;case 41:return 65;case 42:return 67;case 43:return 67;case 44:return 67;case 45:return 65;case 46:return 65;case 47:return 66;case 48:return 66;case 49:return 66;case 50:return 66;case 51:return 66;case 52:return 67;case 53:return 66;case 54:return 67;case 55:return 68;case 56:return 68;case 57:return 51;case 58:return 68;case 59:return 68;case 60:return 68;case 61:return 52;case 62:return 48;case 63:return 68;case 64:return 65;case 65:return 66;case 66:return 67;case 67:return 69;case 68:return 70;case 69:return 71;case 70:return 71;case 71:return 70;case 72:return 70;case 73:return 70;case 74:return 41;case 75:return 47;case 76:return 40;case 77:return Oe.yytext[0];case 78: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,/^(?:[0-9]+\.[0-9]+)/i,/^(?:1(?=\s+[A-Za-z_"']))/i,/^(?:1(?=\s+[0-9]))/i,/^(?:1(?=(--|\.\.|\.-|-\.)))/i,/^(?:1\b)/i,/^(?:[0-9]+)/i,/^(?:\|\|)/i,/^(?:o\|)/i,/^(?:o\{)/i,/^(?:\|\{)/i,/^(?:u(?=[\.\-\|]))/i,/^(?:\.\.)/i,/^(?:--)/i,/^(?:to\b)/i,/^(?:optionally to\b)/i,/^(?:\.-)/i,/^(?:-\.)/i,/^(?:([^\x00-\x7F]|\w|-|\*)+)/i,/^(?:;)/i,/^(?:([^\x00-\x7F]|\w|-|\*|\.)+)/i,/^(?:.)/i,/^(?:$)/i],conditions:{style:{rules:[34,35,36,37,38,74,75],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,69,70,71,72,73,76,77,78],inclusive:!0}}};return ye})();te.lexer=Le;function xe(){this.yy={}}return a(xe,"Parser"),xe.prototype=te,te.Parser=xe,new xe})();sD.parser=sD;Jte=sD});var Hk,tre=v(()=>{"use strict";nt();bt();zr();Et();Hk=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=Yt;this.getAccTitle=Qt;this.setAccDescription=Zt;this.getAccDescription=Jt;this.setDiagramTitle=ir;this.getDiagramTitle=er;this.getConfig=a(()=>J().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.addClass=this.addClass.bind(this),this.setClass=this.setClass.bind(this),this.setAccTitle=this.setAccTitle.bind(this),this.setAccDescription=this.setAccDescription.bind(this)}static{a(this,"ErDB")}addEntity(t,r=""){return this.entities.has(t)?!this.entities.get(t)?.alias&&r&&(this.entities.get(t).alias=r,W.info(`Add alias '${r}' to entity '${t}'`)):(this.entities.set(t,{id:`entity-${t}-${this.entities.size}`,label:t,attributes:[],alias:r,shape:"erBox",look:J().look??"default",cssClasses:"default",cssStyles:[],labelType:"markdown"}),W.info("Added new entity :",t)),this.entities.get(t)}getEntity(t){return this.entities.get(t)}getEntities(){return this.entities}getClasses(){return this.classes}addAttributes(t,r){let i=this.addEntity(t),n;for(n=r.length-1;n>=0;n--)r[n].keys||(r[n].keys=[]),r[n].comment||(r[n].comment=""),i.attributes.push(r[n]),W.debug("Added attribute ",r[n].name)}addRelationship(t,r,i,n){let s=this.entities.get(t),o=this.entities.get(i);if(!s||!o)return;let l={entityA:s.id,roleA:r,entityB:o.id,relSpec:n};this.relationships.push(l),W.debug("Added new relationship :",l)}getRelationships(){return this.relationships}getDirection(){return this.direction}setDirection(t){this.direction=t}getCompiledStyles(t){let r=[];for(let i of t){let n=this.classes.get(i);n?.styles&&(r=[...r,...n.styles??[]].map(s=>s.trim())),n?.textStyles&&(r=[...r,...n.textStyles??[]].map(s=>s.trim()))}return r}addCssStyles(t,r){for(let i of t){let n=this.entities.get(i);if(!r||!n)return;for(let s of r)n.cssStyles.push(s)}}addClass(t,r){t.forEach(i=>{let n=this.classes.get(i);n===void 0&&(n={id:i,styles:[],textStyles:[]},this.classes.set(i,n)),r&&r.forEach(function(s){if(/color/.exec(s)){let o=s.replace("fill","bgFill");n.textStyles.push(o)}n.styles.push(s)})})}setClass(t,r){for(let i of t){let n=this.entities.get(i);if(n)for(let s of r)n.cssClasses+=" "+s}}clear(){this.entities=new Map,this.classes=new Map,this.relationships=[],Ht()}getData(){let t=[],r=[],i=J(),n=0;for(let o of this.entities.keys()){let l=this.entities.get(o);l&&(l.cssCompiledStyles=this.getCompiledStyles(l.cssClasses.split(" ")),l.colorIndex=n++,t.push(l))}let s=0;for(let o of this.relationships){let l={id:Ic(o.entityA,o.entityB,{prefix:"id",counter:s++}),type:"normal",curve:"basis",start:o.entityA,end:o.entityB,label:o.roleA,labelpos:"c",thickness:"normal",classes:"relationshipLine",arrowTypeStart:o.relSpec.cardB.toLowerCase(),arrowTypeEnd:o.relSpec.cardA.toLowerCase(),pattern:o.relSpec.relType=="IDENTIFYING"?"solid":"dashed",look:i.look,labelType:"markdown"};r.push(l)}return{nodes:t,edges:r,other:{},config:i,direction:"TB"}}}});var oD={};tr(oD,{draw:()=>V7e});var V7e,rre=v(()=>{"use strict";bt();nt();hp();Yh();Kh();Et();sr();V7e=a(async function(e,t,r,i){W.info("REF0:"),W.info("Drawing er diagram (unified)",t);let{securityLevel:n,er:s,layout:o}=J(),l=i.db.getData(),u=So(t,n);l.type=i.type,l.layoutAlgorithm=uu(o),l.config.flowchart.nodeSpacing=s?.nodeSpacing||140,l.config.flowchart.rankSpacing=s?.rankSpacing||80,l.direction=i.db.getDirection();let{config:h}=l,{look:d}=h;d==="neo"?l.markers=["only_one_neo","zero_or_one_neo","one_or_more_neo","zero_or_more_neo"]:l.markers=["only_one","zero_or_one","one_or_more","zero_or_more"],l.diagramId=t,await Oo(l,u),l.layoutAlgorithm==="elk"&&u.select(".edges").lower();let f=u.selectAll('[id*="-background"]');Array.from(f).length>0&&f.each(function(){let m=Se(this),x=m.attr("id").replace("-background",""),b=u.select(`#${CSS.escape(x)}`);if(!b.empty()){let T=b.attr("transform");m.attr("transform",T)}});let p=8;St.insertTitle(u,"erDiagramTitleText",s?.titleTopMargin??25,i.db.getDiagramTitle()),os(u,p,"erDiagram",s?.useMaxWidth??!0)},"draw")});var ire,Yk,G7e,W7e,nre,are=v(()=>{"use strict";Bi();ire=a((e,t)=>{let r=Hu,i=r(e,"r"),n=r(e,"g"),s=r(e,"b");return Ti(i,n,s,t)},"fade"),Yk=new Set(["redux-color","redux-dark-color"]),G7e=a(e=>{let{theme:t,look:r,bkgColorArray:i,borderColorArray:n}=e;if(!Yk.has(t))return"";let s=i?.length>0,o="";for(let l=0;l<e.THEME_COLOR_LIMIT;l++)o+=`
[data-look="${r}"][data-color-id="color-${l}"].node path {
stroke: ${n[l]};
${s?`fill: ${i[l]};`:""}
}
[data-look="${r}"][data-color-id="color-${l}"].node rect {
stroke: ${n[l]};
${s?`fill: ${i[l]};`:""}
}
`;return o},"genColor"),W7e=a(e=>{let{look:t,theme:r,erEdgeLabelBackground:i,strokeWidth:n}=e;return`
${G7e(e)}
.entityBox {
fill: ${e.mainBkg};
stroke: ${e.nodeBorder};
}
.relationshipLabelBox {
fill: ${e.tertiaryColor};
opacity: 0.7;
background-color: ${e.tertiaryColor};
rect {
opacity: 0.5;
}
}
.labelBkg {
background-color: ${Yk.has(r)&&i?i:ire(e.tertiaryColor,.5)};
}
.edgeLabel {
background-color: ${Yk.has(r)&&i?i:e.edgeLabelBackground};
}
.edgeLabel .label rect {
fill: ${Yk.has(r)&&i?i:e.edgeLabelBackground};
}
.edgeLabel .label text {
fill: ${e.textColor};
}
.edgeLabel .label {
fill: ${e.nodeBorder};
font-size: 14px;
}
.label {
font-family: ${e.fontFamily};
color: ${e.nodeTextColor||e.textColor};
}
.edge-pattern-dashed {
stroke-dasharray: 8,8;
}
.node rect,
.node circle,
.node ellipse,
.node polygon
{
fill: ${e.mainBkg};
stroke: ${e.nodeBorder};
stroke-width: ${t==="neo"?n:"1px"};
}
.relationshipLine {
stroke: ${e.lineColor};
stroke-width: ${t==="neo"?n:"1px"};
fill: none;
}
.marker {
fill: none !important;
stroke: ${e.lineColor} !important;
stroke-width: 1;
}
[data-look=neo].labelBkg {
background-color: ${ire(e.tertiaryColor,.5)};
}
`},"getStyles"),nre=W7e});var sre={};tr(sre,{diagram:()=>z7e});var z7e,ore=v(()=>{"use strict";ere();tre();rre();are();z7e={parser:Jte,get db(){return new Hk},renderer:oD,styles:nre}});function Di(e){return typeof e=="object"&&e!==null&&typeof e.$type=="string"}function Fn(e){return typeof e=="object"&&e!==null&&typeof e.$refText=="string"&&"ref"in e}function Uo(e){return typeof e=="object"&&e!==null&&typeof e.$refText=="string"&&"items"in e}function R6(e){return typeof e=="object"&&e!==null&&typeof e.name=="string"&&typeof e.type=="string"&&typeof e.path=="string"}function sd(e){return typeof e=="object"&&e!==null&&typeof e.info=="object"&&typeof e.message=="string"}function Fl(e){return typeof e=="object"&&e!==null&&Array.isArray(e.content)}function Md(e){return typeof e=="object"&&e!==null&&typeof e.tokenType=="object"}function wv(e){return Fl(e)&&typeof e.fullText=="string"}function ane(e){return typeof e=="string"?e:typeof e>"u"?"undefined":typeof e.toString=="function"?e.toString():Object.prototype.toString.call(e)}function C1(e){return!!e&&typeof e[Symbol.iterator]=="function"}function Br(...e){if(e.length===1){let t=e[0];if(t instanceof qo)return t;if(C1(t))return new qo(()=>t[Symbol.iterator](),r=>r.next());if(typeof t.length=="number")return new qo(()=>({index:0}),r=>r.index<t.length?{done:!1,value:t[r.index++]}:$n)}return e.length>1?new qo(()=>({collIndex:0,arrIndex:0}),t=>{do{if(t.iterator){let r=t.iterator.next();if(!r.done)return r;t.iterator=void 0}if(t.array){if(t.arrIndex<t.array.length)return{done:!1,value:t.array[t.arrIndex++]};t.array=void 0,t.arrIndex=0}if(t.collIndex<e.length){let r=e[t.collIndex++];C1(r)?t.iterator=r[Symbol.iterator]():r&&typeof r.length=="number"&&(t.array=r)}}while(t.iterator||t.array||t.collIndex<e.length);return $n}):um}function dm(e,t={}){for(let[r,i]of Object.entries(e))r.startsWith("$")||(Array.isArray(i)?i.forEach((n,s)=>{Di(n)&&(n.$container=e,n.$containerProperty=r,n.$containerIndex=s,t.deep&&dm(n,t))}):Di(i)&&(i.$container=e,i.$containerProperty=r,t.deep&&dm(i,t)))}function Od(e,t){let r=e;for(;r;){if(t(r))return r;r=r.$container}}function sne(e,t){let r=e;for(;r;){if(t(r))return!0;r=r.$container}return!1}function Hs(e){let r=sm(e).$document;if(!r)throw new Error("AST node has no document.");return r}function sm(e){for(;e.$container;)e=e.$container;return e}function PC(e){return Fn(e)?e.ref?[e.ref]:[]:Uo(e)?e.items.map(t=>t.ref):[]}function W1(e,t){if(!e)throw new Error("Node must be an AstNode.");let r=t?.range;return new qo(()=>({keys:Object.keys(e),keyIndex:0,arrayIndex:0}),i=>{for(;i.keyIndex<i.keys.length;){let n=i.keys[i.keyIndex];if(!n.startsWith("$")){let s=e[n];if(Di(s)){if(i.keyIndex++,BC(s,r))return{done:!1,value:s}}else if(Array.isArray(s)){for(;i.arrayIndex<s.length;){let o=i.arrayIndex++,l=s[o];if(Di(l)&&BC(l,r))return{done:!1,value:l}}i.arrayIndex=0}}i.keyIndex++}return $n})}function Kl(e,t){if(!e)throw new Error("Root node must be an AstNode.");return new hm(e,r=>W1(r,t))}function Ys(e,t){if(e){if(t?.range&&!BC(e,t.range))return new hm(e,()=>[])}else throw new Error("Root node must be an AstNode.");return new hm(e,r=>W1(r,t),{includeRoot:!0})}function BC(e,t){if(!t)return!0;let r=e.$cstNode?.range;return r?tN(r,t):!1}function fm(e){return new qo(()=>({keys:Object.keys(e),keyIndex:0,arrayIndex:0}),t=>{for(;t.keyIndex<t.keys.length;){let r=t.keys[t.keyIndex];if(!r.startsWith("$")){let i=e[r];if(Fn(i)||Uo(i))return t.keyIndex++,{done:!1,value:{reference:i,container:e,property:r}};if(Array.isArray(i)){for(;t.arrayIndex<i.length;){let n=t.arrayIndex++,s=i[n];if(Fn(s)||Uo(i))return{done:!1,value:{reference:s,container:e,property:r,index:n}}}t.arrayIndex=0}}t.keyIndex++}return $n})}function I6(e,t){let r=e.getTypeMetaData(t.$type),i=t;for(let n of Object.values(r.properties))n.defaultValue!==void 0&&i[n.name]===void 0&&(i[n.name]=N6(n.defaultValue))}function N6(e){return Array.isArray(e)?[...e.map(N6)]:e}function $C(e,t,r){let i={$type:e.$type};r&&(r.set(e,i),r.set(i,e));for(let[n,s]of Object.entries(e))if(!n.startsWith("$"))if(Di(s))i[n]=$C(s,t,r);else if(Fn(s))i[n]=t(i,n,s.$refNode,s.$refText,s);else if(Array.isArray(s)){let o=[];for(let l of s)Di(l)?o.push($C(l,t,r)):Fn(l)?o.push(t(i,n,l.$refNode,l.$refText,l)):o.push(l);i[n]=o}else i[n]=s;return dm(i,{deep:!0}),i}function Ev(e){return Ft.isInstance(e,la.$type)}function Pd(e){return Ft.isInstance(e,a1.$type)}function lne(e){return Ft.isInstance(e,Qp.$type)}function cne(e){return Ft.isInstance(e,Ra.$type)}function ku(e){return Ft.isInstance(e,pu.$type)}function Av(e){return Ft.isInstance(e,s1.$type)}function une(e){return Ft.isInstance(e,FC.$type)}function M6(e){return Ft.isInstance(e,VC.$type)}function Vl(e){return Ft.isInstance(e,mu.$type)}function O6(e){return Ft.isInstance(e,GC.$type)}function P6(e){return Ft.isInstance(e,gu.$type)}function hne(e){return Ft.isInstance(e,yu.$type)}function B6(e){return Ft.isInstance(e,o1.$type)}function Bd(e){return Ft.isInstance(e,xu.$type)}function $6(e){return Ft.isInstance(e,l1.$type)}function F6(e){return Ft.isInstance(e,WC.$type)}function dne(e){return Ft.isInstance(e,Pl.$type)}function fne(e){return Ft.isInstance(e,zC.$type)}function $d(e){return Ft.isInstance(e,od.$type)}function z1(e){return Ft.isInstance(e,qC.$type)}function pm(e){return Ft.isInstance(e,Vo.$type)}function pne(e){return Ft.isInstance(e,c1.$type)}function mne(e){return Ft.isInstance(e,jC.$type)}function V6(e){return Ft.isInstance(e,Zp.$type)}function Gl(e){return Ft.isInstance(e,Jp.$type)}function gne(e){return Ft.isInstance(e,em.$type)}function G6(e){return Ft.isInstance(e,ld.$type)}function W6(e){return Ft.isInstance(e,UC.$type)}function yne(e){return Ft.isInstance(e,HC.$type)}function xne(e){return Ft.isInstance(e,tm.$type)}function z6(e){return Ft.isInstance(e,YC.$type)}function Wn(e){return Ft.isInstance(e,qs.$type)}function q6(e){return Ft.isInstance(e,u1.$type)}function j6(e){return Ft.isInstance(e,cd.$type)}function U6(e){return Ft.isInstance(e,KC.$type)}function Wl(e){return Ft.isInstance(e,ud.$type)}function Rv(e){return Ft.isInstance(e,rm.$type)}function bne(e){return Ft.isInstance(e,XC.$type)}function H6(e){return Ft.isInstance(e,hd.$type)}function Tne(e){return Ft.isInstance(e,ca.$type)}function Y6(e){return Ft.isInstance(e,dd.$type)}function ds(e){return Ft.isInstance(e,Bl.$type)}function Lv(e){return Ft.isInstance(e,fd.$type)}function Dv(e){return Ft.isInstance(e,h1.$type)}function kne(e){return Ft.isInstance(e,pd.$type)}function Cne(e){return Ft.isInstance(e,md.$type)}function K6(e){return Ft.isInstance(e,QC.$type)}function Iv(e){return Ft.isInstance(e,d1.$type)}function X6(e){return Ft.isInstance(e,gd.$type)}function vne(e){return Ft.isInstance(e,yd.$type)}function Q6(e){return Ft.isInstance(e,im.$type)}function Sne(e){let t=e,r=!1;for(;t;){let i=Od(t.grammarSource,Wn);if(i&&i.dataType)t=t.container,r=!0;else return r?t:void 0}}function mm(e){return new hm(e,t=>Fl(t)?t.content:[],{includeRoot:!0})}function _ne(e){return mm(e).filter(Md)}function J6(e,t){for(;e.container;)if(e=e.container,e===t)return!0;return!1}function S1(e){return{start:{character:e.startColumn-1,line:e.startLine-1},end:{character:e.endColumn,line:e.endLine-1}}}function gm(e){if(!e)return;let{offset:t,end:r,range:i}=e;return{range:i,offset:t,end:r,length:r-t}}function eN(e,t){if(e.end.line<t.start.line||e.end.line===t.start.line&&e.end.character<=t.start.character)return zo.Before;if(e.start.line>t.end.line||e.start.line===t.end.line&&e.start.character>=t.end.character)return zo.After;let r=e.start.line>t.start.line||e.start.line===t.start.line&&e.start.character>=t.start.character,i=e.end.line<t.end.line||e.end.line===t.end.line&&e.end.character<=t.end.character;return r&&i?zo.Inside:r?zo.OverlapBack:i?zo.OverlapFront:zo.Outside}function tN(e,t){return eN(e,t)>zo.After}function wne(e,t,r=rN){if(e){if(t>0){let i=t-e.offset,n=e.text.charAt(i);r.test(n)||t--}return Nv(e,t)}}function iN(e,t){if(e){let r=sN(e,!0);if(r&&ZC(r,t))return r;if(wv(e)){let i=e.content.findIndex(n=>!n.hidden);for(let n=i-1;n>=0;n--){let s=e.content[n];if(ZC(s,t))return s}}}}function ZC(e,t){return Md(e)&&t.includes(e.tokenType.name)}function Nv(e,t){if(Md(e))return e;if(Fl(e)){let r=aN(e,t,!1);if(r)return Nv(r,t)}}function nN(e,t){if(Md(e))return e;if(Fl(e)){let r=aN(e,t,!0);if(r)return nN(r,t)}}function aN(e,t,r){let i=0,n=e.content.length-1,s;for(;i<=n;){let o=Math.floor((i+n)/2),l=e.content[o];if(l.offset<=t&&l.end>t)return l;l.end<=t?(s=r?l:void 0,i=o+1):n=o-1}return s}function sN(e,t=!0){for(;e.container;){let r=e.container,i=r.content.indexOf(e);for(;i>0;){i--;let n=r.content[i];if(t||!n.hidden)return n}e=r}}function Ene(e,t=!0){for(;e.container;){let r=e.container,i=r.content.indexOf(e),n=r.content.length-1;for(;i<n;){i++;let s=r.content[i];if(t||!s.hidden)return s}e=r}}function Ane(e){if(e.range.start.character===0)return e;let t=e.range.start.line,r=e,i;for(;e.container;){let n=e.container,s=i??n.content.indexOf(e);if(s===0?(e=n,i=void 0):(i=s-1,e=n.content[i]),e.range.start.line!==t)break;r=e}return r}function Rne(e,t){let r=Lne(e,t);return r?r.parent.content.slice(r.a+1,r.b):[]}function Lne(e,t){let r=LI(e),i=LI(t),n;for(let s=0;s<r.length&&s<i.length;s++){let o=r[s],l=i[s];if(o.parent===l.parent)n={parent:o.parent,a:o.index,b:l.index};else break}return n}function LI(e){let t=[];for(;e.container;){let r=e.container,i=r.content.indexOf(e);t.push({parent:r,index:i}),e=r}return t.reverse()}function Eu(e,t="Error: Got unexpected value."){throw new Error(t)}function lN(e,t="Error: Condition is violated."){if(!e)throw new Error(t)}function qt(e){return e.charCodeAt(0)}function kC(e,t){Array.isArray(e)?e.forEach(function(r){t.push(r)}):t.push(e)}function Yp(e,t){if(e[t]===!0)throw"duplicate flag "+t;let r=e[t];e[t]=!0}function ed(e){if(e===void 0)throw Error("Internal Error - Should never get here!");return!0}function e1(){throw Error("Internal Error - Should never get here!")}function DI(e){return e.type==="Character"}function Mne(e){try{typeof e!="string"&&(e=e.source),e=`/${e}/`;let t=Nne.pattern(e),r=[];for(let i of t.value.value)vd.reset(e),vd.visit(i),r.push({start:vd.startRegexp,end:vd.endRegex});return r}catch{return[]}}function uN(e){try{return typeof e=="string"&&(e=new RegExp(e)),e=e.toString(),vd.reset(e),vd.visit(Nne.pattern(e)),vd.multiline}catch{return!1}}function Pv(e){let t=typeof e=="string"?new RegExp(e):e;return One.some(r=>t.test(r))}function Sm(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function hN(e,t){let r=dN(e),i=t.match(r);return!!i&&i[0].length>0}function dN(e){typeof e=="string"&&(e=new RegExp(e));let t=e,r=e.source,i=0;function n(){let s="",o;function l(h){s+=r.substr(i,h),i+=h}a(l,"appendRaw"),y(l,"appendRaw");function u(h){s+="(?:"+r.substr(i,h)+"|$)",i+=h}for(a(u,"appendOptional"),y(u,"appendOptional");i<r.length;)switch(r[i]){case"\\":switch(r[i+1]){case"c":u(3);break;case"x":u(4);break;case"u":t.unicode?r[i+2]==="{"?u(r.indexOf("}",i)-i+1):u(6):u(2);break;case"p":case"P":t.unicode?u(r.indexOf("}",i)-i+1):u(2);break;case"k":u(r.indexOf(">",i)-i+1);break;default:u(2);break}break;case"[":o=/\[(?:\\.|.)*?\]/g,o.lastIndex=i,o=o.exec(r)||[],u(o[0].length);break;case"|":case"^":case"$":case"*":case"+":case"?":l(1);break;case"{":o=/\{\d+,?\d*\}/g,o.lastIndex=i,o=o.exec(r),o?l(o[0].length):u(1);break;case"(":if(r[i+1]==="?")switch(r[i+2]){case":":s+="(?:",i+=3,s+=n()+"|$)";break;case"=":s+="(?=",i+=3,s+=n()+")";break;case"!":o=i,i+=3,n(),s+=r.substr(o,i-o);break;case"<":switch(r[i+3]){case"=":case"!":o=i,i+=4,n(),s+=r.substr(o,i-o);break;default:l(r.indexOf(">",i)-i+1),s+=n()+"|$)";break}break}else l(1),s+=n()+"|$)";break;case")":return++i,s;default:u(1);break}return s}return a(n,"process2"),y(n,"process"),new RegExp(n(),e.flags)}function fN(e){return e.rules.find(t=>Wn(t)&&t.entry)}function pN(e){return e.rules.filter(t=>ds(t)&&t.hidden)}function Bv(e,t){let r=new Set,i=fN(e);if(!i)return new Set(e.rules);let n=[i].concat(pN(e));for(let o of n)mN(o,r,t);let s=new Set;for(let o of e.rules)(r.has(o.name)||ds(o)&&o.hidden)&&s.add(o);return s}function mN(e,t,r){t.add(e.name),Kl(e).forEach(i=>{if(Wl(i)||r&&Lv(i)){let n=i.rule.ref;n&&!t.has(n.name)&&mN(n,t,r)}})}function Pne(e){let t=new Set;return Kl(e).forEach(r=>{Bd(r)&&(Wn(r.type.ref)&&t.add(r.type.ref),z1(r.type.ref)&&Wn(r.type.ref.$container)&&t.add(r.type.ref.$container))}),t}function gN(e){if(e.terminal)return e.terminal;if(e.type.ref)return Gv(e.type.ref)?.terminal}function yN(e){return e.hidden&&!Pv(U1(e))}function xN(e,t){return!e||!t?[]:Fv(e,t,e.astNode,!0)}function $v(e,t,r){if(!e||!t)return;let i=Fv(e,t,e.astNode,!0);if(i.length!==0)return r!==void 0?r=Math.max(0,Math.min(r,i.length-1)):r=0,i[r]}function Fv(e,t,r,i){if(!i){let n=Od(e.grammarSource,Vl);if(n&&n.feature===t)return[e]}return Fl(e)&&e.astNode===r?e.content.flatMap(n=>Fv(n,t,r,!1)):[]}function Bne(e,t){return e?Vv(e,t,e?.astNode):[]}function bN(e,t,r){if(!e)return;let i=Vv(e,t,e?.astNode);if(i.length!==0)return r!==void 0?r=Math.max(0,Math.min(r,i.length-1)):r=0,i[r]}function Vv(e,t,r){if(e.astNode!==r)return[];if(Gl(e.grammarSource)&&e.grammarSource.value===t)return[e];let i=mm(e).iterator(),n,s=[];do if(n=i.next(),!n.done){let o=n.value;o.astNode===r?Gl(o.grammarSource)&&o.grammarSource.value===t&&s.push(o):i.prune()}while(!n.done);return s}function TN(e){let t=e.astNode;for(;t===e.container?.astNode;){let r=Od(e.grammarSource,Vl);if(r)return r;e=e.container}}function Gv(e){let t=e;return z1(t)&&(ku(t.$container)?t=t.$container.$container:Pd(t.$container)?t=t.$container:Eu(t.$container)),kN(e,t,new Map)}function kN(e,t,r){function i(n,s){let o;return Od(n,Vl)||(o=kN(s,s,r)),r.set(e,o),o}if(a(i,"go"),y(i,"go"),r.has(e))return r.get(e);r.set(e,void 0);for(let n of Kl(t)){if(Vl(n)&&n.feature.toLowerCase()==="name")return r.set(e,n),n;if(Wl(n)&&Wn(n.rule.ref))return i(n,n.rule.ref);if(Rv(n)&&n.typeRef?.ref)return i(n,n.typeRef.ref)}}function CN(e){let t=e.$container;if($d(t)){let r=t.elements,i=r.indexOf(e);for(let n=i-1;n>=0;n--){let s=r[n];if(ku(s))return s;{let o=Kl(r[n]).find(ku);if(o)return o}}}if(Ev(t))return CN(t)}function $ne(e,t){return e==="?"||e==="*"||$d(t)&&!!t.guardCondition}function Fne(e){return e==="*"||e==="+"}function Vne(e){return e==="+="}function q1(e){return vN(e,new Set)}function vN(e,t){if(t.has(e))return!0;t.add(e);for(let r of Kl(e))if(Wl(r)){if(!r.rule.ref||Wn(r.rule.ref)&&!vN(r.rule.ref,t)||pm(r.rule.ref))return!1}else{if(Vl(r))return!1;if(ku(r))return!1}return!!e.definition}function Gne(e){return tv(e.type,new Set)}function tv(e,t){if(t.has(e))return!0;if(t.add(e),M6(e))return!1;if(q6(e))return!1;if(K6(e))return e.types.every(r=>tv(r,t));if(Rv(e)){if(e.primitiveType!==void 0)return!0;if(e.stringType!==void 0)return!0;if(e.typeRef!==void 0){let r=e.typeRef.ref;return Dv(r)?tv(r.type,t):!1}else return!1}else return!1}function j1(e){if(!ds(e)){if(e.inferredType)return e.inferredType.name;if(e.dataType)return e.dataType;if(e.returnType){let t=e.returnType.ref;if(t)return t.name}}}function Rd(e){if(Pd(e))return Wn(e)&&q1(e)?e.name:j1(e)??e.name;if(V6(e)||Dv(e)||U6(e))return e.name;if(ku(e)){let t=SN(e);if(t)return t}else if(z1(e))return e.name;throw new Error("Cannot get name of Unknown Type")}function SN(e){if(e.inferredType)return e.inferredType.name;if(e.type?.ref)return Rd(e.type.ref)}function Wne(e){return ds(e)?e.type?.name??"string":Wn(e)&&q1(e)?e.name:j1(e)??e.name}function _N(e){return ds(e)?e.type?.name??"string":j1(e)??e.name}function U1(e){let t={s:!1,i:!1,u:!1},r=Fd(e.definition,t),i=Object.entries(t).filter(([,n])=>n).map(([n])=>n).join("");return new RegExp(r,i)}function Fd(e,t){if(H6(e))return zne(e);if(Y6(e))return qne(e);if(P6(e))return Hne(e);if(Lv(e)){let r=e.rule.ref;if(!r)throw new Error("Missing rule reference.");return Ho(Fd(r.definition),{cardinality:e.cardinality,lookahead:e.lookahead,parenthesized:e.parenthesized})}else{if(G6(e))return Une(e);if(X6(e))return jne(e);if(j6(e)){let r=e.regex.lastIndexOf("/"),i=e.regex.substring(1,r),n=e.regex.substring(r+1);return t&&(t.i=n.includes("i"),t.s=n.includes("s"),t.u=n.includes("u")),Ho(i,{cardinality:e.cardinality,lookahead:e.lookahead,parenthesized:e.parenthesized,wrap:!1})}else{if(Q6(e))return Ho(wN,{cardinality:e.cardinality,lookahead:e.lookahead,parenthesized:e.parenthesized});throw new Error(`Invalid terminal element: ${e?.$type}, ${e?.$cstNode?.text}`)}}}function zne(e){return Ho(e.elements.map(t=>Fd(t)).join("|"),{cardinality:e.cardinality,lookahead:e.lookahead,parenthesized:e.parenthesized,wrap:!1})}function qne(e){return Ho(e.elements.map(t=>Fd(t)).join(""),{cardinality:e.cardinality,lookahead:e.lookahead,parenthesized:e.parenthesized,wrap:!1})}function jne(e){return Ho(`${wN}*?${Fd(e.terminal)}`,{cardinality:e.cardinality,lookahead:e.lookahead,parenthesized:e.parenthesized})}function Une(e){return Ho(`(?!${Fd(e.terminal)})${wN}*?`,{cardinality:e.cardinality,lookahead:e.lookahead,parenthesized:e.parenthesized})}function Hne(e){return e.right?Ho(`[${CC(e.left)}-${CC(e.right)}]`,{cardinality:e.cardinality,lookahead:e.lookahead,parenthesized:e.parenthesized,wrap:!1}):Ho(CC(e.left),{cardinality:e.cardinality,lookahead:e.lookahead,parenthesized:e.parenthesized,wrap:!1})}function CC(e){return Sm(e.value)}function Ho(e,t){return(t.parenthesized||t.lookahead||t.wrap!==!1)&&(e=`(${t.lookahead??(t.parenthesized?"":"?:")}${e})`),t.cardinality?`${e}${t.cardinality}`:e}function EN(e){let t=[],r=e.Grammar;for(let i of r.rules)ds(i)&&yN(i)&&uN(U1(i))&&t.push(i.name);return{multilineCommentRules:t,nameRegexp:rN}}function Xne(e){var t=$$e.call(e,F0),r=e[F0];try{e[F0]=void 0;var i=!0}catch{}var n=F$e.call(e);return i&&(t?e[F0]=r:delete e[F0]),n}function Qne(e){return W$e.call(e)}function Zne(e){return e==null?e===void 0?j$e:q$e:dre&&dre in Object(e)?V$e(e):z$e(e)}function Jne(e){return e!=null&&typeof e=="object"}function eae(e){return typeof e=="symbol"||Qs(e)&&Au(e)==U$e}function tae(e,t){for(var r=-1,i=e==null?0:e.length,n=Array(i);++r<i;)n[r]=t(e[r],r,e);return n}function AN(e){if(typeof e=="string")return e;if(kr(e))return H1(e,AN)+"";if(Wv(e))return pre?pre.call(e):"";var t=e+"";return t=="0"&&1/e==-Y$e?"-0":t}function rae(e){for(var t=e.length;t--&&X$e.test(e.charAt(t)););return t}function iae(e){return e&&e.slice(0,Q$e(e)+1).replace(Z$e,"")}function nae(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function aae(e){if(typeof e=="number")return e;if(Wv(e))return mre;if(hs(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=hs(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=J$e(e);var r=tFe.test(e);return r||rFe.test(e)?iFe(e.slice(2),r?2:8):eFe.test(e)?mre:+e}function sae(e){if(!e)return e===0?e:0;if(e=nFe(e),e===gre||e===-gre){var t=e<0?-1:1;return t*aFe}return e===e?e:0}function oae(e){var t=sFe(e),r=t%1;return t===t?r?t-r:t:0}function lae(e){return e}function cae(e){if(!hs(e))return!1;var t=Au(e);return t==lFe||t==cFe||t==oFe||t==uFe}function uae(e){return!!yre&&yre in e}function hae(e){if(e!=null){try{return pFe.call(e)}catch{}try{return e+""}catch{}}return""}function dae(e){if(!hs(e)||dFe(e))return!1;var t=Xl(e)?kFe:gFe;return t.test(Vd(e))}function fae(e,t){return e?.[t]}function pae(e,t){var r=vFe(e,t);return CFe(r)?r:void 0}function mae(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function gae(){}function yae(e,t){var r=-1,i=e.length;for(t||(t=Array(i));++r<i;)t[r]=e[r];return t}function xae(e){var t=0,r=0;return function(){var i=DFe(),n=LFe-(i-r);if(r=i,n>0){if(++t>=RFe)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function bae(e){return function(){return e}}function Tae(e,t){for(var r=-1,i=e==null?0:e.length;++r<i&&t(e[r],r,e)!==!1;);return e}function Cae(e,t,r,i){for(var n=e.length,s=r+(i?1:-1);i?s--:++s<n;)if(t(e[s],s,e))return s;return-1}function Sae(e){return e!==e}function _ae(e,t,r){for(var i=r-1,n=e.length;++i<n;)if(e[i]===t)return i;return-1}function wae(e,t,r){return t===t?VFe(e,t,r):vae(e,FFe,r)}function Eae(e,t){var r=e==null?0:e.length;return!!r&&RN(e,t,0)>-1}function Rae(e,t){var r=typeof e;return t=t??GFe,!!t&&(r=="number"||r!="symbol"&&WFe.test(e))&&e>-1&&e%1==0&&e<t}function Lae(e,t,r){t=="__proto__"&&rv?rv(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function Dae(e,t){return e===t||e!==e&&t!==t}function Iae(e,t,r){var i=e[t];(!(qFe.call(e,t)&&K1(i,r))||r===void 0&&!(t in e))&&LN(e,t,r)}function Nae(e,t,r,i){var n=!r;r||(r={});for(var s=-1,o=t.length;++s<o;){var l=t[s],u=i?i(r[l],e[l],l,r,e):void 0;u===void 0&&(u=e[l]),n?LN(r,l,u):qv(r,l,u)}return r}function Mae(e,t,r){return t=bre(t===void 0?e.length-1:t,0),function(){for(var i=arguments,n=-1,s=bre(i.length-t,0),o=Array(s);++n<s;)o[n]=i[t+n];n=-1;for(var l=Array(t+1);++n<t;)l[n]=i[n];return l[t]=r(o),EFe(e,this,l)}}function Oae(e,t){return $Fe(jFe(e,t,ym),e+"")}function Pae(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=UFe}function Bae(e){return e!=null&&IN(e.length)&&!Xl(e)}function $ae(e,t,r){if(!hs(r))return!1;var i=typeof t;return(i=="number"?Xo(r)&&zv(t,r.length):i=="string"&&t in r)?K1(r[t],e):!1}function Fae(e){return DN(function(t,r){var i=-1,n=r.length,s=n>1?r[n-1]:void 0,o=n>2?r[2]:void 0;for(s=e.length>3&&typeof s=="function"?(n--,s):void 0,o&&jv(r[0],r[1],o)&&(s=n<3?void 0:s,n=1),t=Object(t);++i<n;){var l=r[i];l&&e(t,l,i,s)}return t})}function Vae(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||YFe;return e===r}function Gae(e,t){for(var r=-1,i=Array(e);++r<e;)i[r]=t(r);return i}function Wae(e){return Qs(e)&&Au(e)==XFe}function qae(){return!1}function Uae(e){return Qs(e)&&IN(e.length)&&!!Jr[Au(e)]}function Hae(e){return function(t){return e(t)}}function Kae(e,t){var r=kr(e),i=!r&&Uv(e),n=!r&&!i&&_1(e),s=!r&&!i&&!n&&NN(e),o=r||i||n||s,l=o?KFe(e.length,String):[],u=l.length;for(var h in e)(t||N9e.call(e,h))&&!(o&&(h=="length"||n&&(h=="offset"||h=="parent")||s&&(h=="buffer"||h=="byteLength"||h=="byteOffset")||zv(h,u)))&&l.push(h);return l}function Qae(e,t){return function(r){return e(t(r))}}function Jae(e){if(!Q1(e))return O9e(e);var t=[];for(var r in Object(e))B9e.call(e,r)&&r!="constructor"&&t.push(r);return t}function tse(e){return Xo(e)?Xae(e):ese(e)}function rse(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}function ise(e){if(!hs(e))return G9e(e);var t=Q1(e),r=[];for(var i in e)i=="constructor"&&(t||!z9e.call(e,i))||r.push(i);return r}function nse(e){return Xo(e)?Xae(e,!0):q9e(e)}function ase(e,t){if(kr(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||Wv(e)?!0:U9e.test(e)||!j9e.test(e)||t!=null&&e in Object(t)}function sse(){this.__data__=w1?w1(null):{},this.size=0}function ose(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function lse(e){var t=this.__data__;if(w1){var r=t[e];return r===X9e?void 0:r}return Z9e.call(t,e)?t[e]:void 0}function cse(e){var t=this.__data__;return w1?t[e]!==void 0:tVe.call(t,e)}function use(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=w1&&t===void 0?iVe:t,this}function Wd(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}function hse(){this.__data__=[],this.size=0}function dse(e,t){for(var r=e.length;r--;)if(K1(e[r][0],t))return r;return-1}function fse(e){var t=this.__data__,r=Yv(t,e);if(r<0)return!1;var i=t.length-1;return r==i?t.pop():oVe.call(t,r,1),--this.size,!0}function pse(e){var t=this.__data__,r=Yv(t,e);return r<0?void 0:t[r][1]}function mse(e){return Yv(this.__data__,e)>-1}function gse(e,t){var r=this.__data__,i=Yv(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this}function zd(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}function yse(){this.size=0,this.__data__={hash:new Sre,map:new(E1||Kv),string:new Sre}}function xse(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function bse(e,t){var r=e.__data__;return pVe(t)?r[typeof t=="string"?"string":"hash"]:r.map}function Tse(e){var t=Xv(this,e).delete(e);return this.size-=t?1:0,t}function kse(e){return Xv(this,e).get(e)}function Cse(e){return Xv(this,e).has(e)}function vse(e,t){var r=Xv(this,e),i=r.size;return r.set(e,t),this.size+=r.size==i?0:1,this}function qd(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}function Zv(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(bVe);var r=y(function(){var i=arguments,n=t?t.apply(this,i):i[0],s=r.cache;if(s.has(n))return s.get(n);var o=e.apply(this,i);return r.cache=s.set(n,o)||s,o},"memoized");return r.cache=new(Zv.Cache||Qv),r}function Sse(e){var t=TVe(e,function(i){return r.size===kVe&&r.clear(),i}),r=t.cache;return t}function _se(e){return e==null?"":K$e(e)}function wse(e,t){return kr(e)?e:MN(e,t)?[e]:wVe(EVe(e))}function Ese(e){if(typeof e=="string"||Wv(e))return e;var t=e+"";return t=="0"&&1/e==-AVe?"-0":t}function Ase(e,t){t=Jv(t,e);for(var r=0,i=t.length;e!=null&&r<i;)e=e[J1(t[r++])];return r&&r==i?e:void 0}function Rse(e,t,r){var i=e==null?void 0:ON(e,t);return i===void 0?r:i}function Lse(e,t){for(var r=-1,i=t.length,n=e.length;++r<i;)e[n+r]=t[r];return e}function Dse(e){return kr(e)||Uv(e)||!!(_re&&e&&e[_re])}function BN(e,t,r,i,n){var s=-1,o=e.length;for(r||(r=LVe),n||(n=[]);++s<o;){var l=e[s];t>0&&r(l)?t>1?BN(l,t-1,r,i,n):PN(n,l):i||(n[n.length]=l)}return n}function Ise(e){var t=e==null?0:e.length;return t?$N(e,1):[]}function Mse(e,t,r){var i=-1,n=e.length;t<0&&(t=-t>n?0:n+t),r=r>n?n:r,r<0&&(r+=n),n=t>r?0:r-t>>>0,t>>>=0;for(var s=Array(n);++i<n;)s[i]=e[i+t];return s}function Pse(e,t,r,i){var n=-1,s=e==null?0:e.length;for(i&&s&&(r=e[++n]);++n<s;)r=t(r,e[n],n,e);return r}function Bse(){this.__data__=new Kv,this.size=0}function $se(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function Fse(e){return this.__data__.get(e)}function Vse(e){return this.__data__.has(e)}function Gse(e,t){var r=this.__data__;if(r instanceof Kv){var i=r.__data__;if(!E1||i.length<BVe-1)return i.push([e,t]),this.size=++r.size,this;r=this.__data__=new Qv(i)}return r.set(e,t),this.size=r.size,this}function jd(e){var t=this.__data__=new Kv(e);this.size=t.size}function Wse(e,t){return e&&X1(t,Da(t),e)}function zse(e,t){return e&&X1(t,Hv(t),e)}function jse(e,t){if(t)return e.slice();var r=e.length,i=Are?Are(r):new e.constructor(r);return e.copy(i),i}function Use(e,t){for(var r=-1,i=e==null?0:e.length,n=0,s=[];++r<i;){var o=e[r];t(o,r,e)&&(s[n++]=o)}return s}function Hse(){return[]}function Kse(e,t){return X1(e,VN(e),t)}function Qse(e,t){return X1(e,Xse(e),t)}function Zse(e,t,r){var i=t(e);return kr(e)?i:PN(i,r(e))}function eoe(e){return Jse(e,Da,VN)}function toe(e){return Jse(e,Hv,Xse)}function ioe(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&sGe.call(e,"index")&&(r.index=e.index,r.input=e.input),r}function noe(e){var t=new e.constructor(e.byteLength);return new iv(t).set(new iv(e)),t}function aoe(e,t){var r=t?GN(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}function soe(e){var t=new e.constructor(e.source,uGe.exec(e));return t.lastIndex=e.lastIndex,t}function ooe(e){return Pre?Object(Pre.call(e)):{}}function loe(e,t){var r=t?GN(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function coe(e,t,r){var i=e.constructor;switch(t){case CGe:return GN(e);case pGe:case mGe:return new i(+e);case vGe:return cGe(e,r);case SGe:case _Ge:case wGe:case EGe:case AGe:case RGe:case LGe:case DGe:case IGe:return fGe(e,r);case gGe:return new i;case yGe:case TGe:return new i(e);case xGe:return hGe(e);case bGe:return new i;case kGe:return dGe(e)}}function uoe(e){return typeof e.constructor=="function"&&!Q1(e)?wFe(Nse(e)):{}}function hoe(e){return Qs(e)&&xm(e)==OGe}function doe(e){return Qs(e)&&xm(e)==FGe}function m1(e,t,r,i,n,s){var o,l=t&zGe,u=t&qGe,h=t&jGe;if(r&&(o=n?r(e,i,n,s):r(e)),o!==void 0)return o;if(!hs(e))return e;var d=kr(e);if(d){if(o=oGe(e),!l)return AFe(e,o)}else{var f=xm(e),p=f==poe||f==XGe;if(_1(e))return WVe(e,l);if(f==moe||f==foe||p&&!n){if(o=u||p?{}:MGe(e),!l)return u?KVe(e,VVe(o,e)):UVe(e,FVe(o,e))}else{if(!jr[f])return n?e:{};o=NGe(e,f,l)}}s||(s=new p1);var m=s.get(e);if(m)return m;s.set(e,o),WGe(e)?e.forEach(function(b){o.add(m1(b,t,r,b,e,s))}):$Ge(e)&&e.forEach(function(b,T){o.set(T,m1(b,t,r,T,e,s))});var g=h?u?roe:NI:u?Hv:Da,x=d?void 0:g(e);return kae(x||e,function(b,T){x&&(T=b,b=e[T]),qv(o,T,m1(b,t,r,T,e,s))}),o}function goe(e){return mWe(e,gWe)}function yoe(e){for(var t=-1,r=e==null?0:e.length,i=0,n=[];++t<r;){var s=e[t];s&&(n[i++]=s)}return n}function xoe(e){return this.__data__.set(e,yWe),this}function boe(e){return this.__data__.has(e)}function A1(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new Qv;++t<r;)this.add(e[t])}function Toe(e,t){for(var r=-1,i=e==null?0:e.length;++r<i;)if(t(e[r],r,e))return!0;return!1}function Coe(e,t){return e.has(t)}function voe(e,t,r,i,n,s){var o=r&TWe,l=e.length,u=t.length;if(l!=u&&!(o&&u>l))return!1;var h=s.get(e),d=s.get(t);if(h&&d)return h==t&&d==e;var f=-1,p=!0,m=r&kWe?new WN:void 0;for(s.set(e,t),s.set(t,e);++f<l;){var g=e[f],x=t[f];if(i)var b=o?i(x,g,f,t,e,s):i(g,x,f,e,t,s);if(b!==void 0){if(b)continue;p=!1;break}if(m){if(!koe(t,function(T,k){if(!zN(m,k)&&(g===T||n(g,T,r,i,s)))return m.push(k)})){p=!1;break}}else if(!(g===x||n(g,x,r,i,s))){p=!1;break}}return s.delete(e),s.delete(t),p}function _oe(e){var t=-1,r=Array(e.size);return e.forEach(function(i,n){r[++t]=[n,i]}),r}function woe(e){var t=-1,r=Array(e.size);return e.forEach(function(i){r[++t]=i}),r}function Eoe(e,t,r,i,n,s,o){switch(r){case OWe:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case MWe:return!(e.byteLength!=t.byteLength||!s(new iv(e),new iv(t)));case _We:case wWe:case RWe:return K1(+e,+t);case EWe:return e.name==t.name&&e.message==t.message;case LWe:case IWe:return e==t+"";case AWe:var l=CWe;case DWe:var u=i&vWe;if(l||(l=qN),e.size!=t.size&&!u)return!1;var h=o.get(e);if(h)return h==t;i|=SWe,o.set(e,t);var d=Soe(l(e),l(t),i,n,s,o);return o.delete(e),d;case NWe:if(hD)return hD.call(e)==hD.call(t)}return!1}function Aoe(e,t,r,i,n,s){var o=r&BWe,l=NI(e),u=l.length,h=NI(t),d=h.length;if(u!=d&&!o)return!1;for(var f=u;f--;){var p=l[f];if(!(o?p in t:FWe.call(t,p)))return!1}var m=s.get(e),g=s.get(t);if(m&&g)return m==t&&g==e;var x=!0;s.set(e,t),s.set(t,e);for(var b=o;++f<u;){p=l[f];var T=e[p],k=t[p];if(i)var C=o?i(k,T,p,t,e,s):i(T,k,p,e,t,s);if(!(C===void 0?T===k||n(T,k,r,i,s):C)){x=!1;break}b||(b=p=="constructor")}if(x&&!b){var S=e.constructor,w=t.constructor;S!=w&&"constructor"in e&&"constructor"in t&&!(typeof S=="function"&&S instanceof S&&typeof w=="function"&&w instanceof w)&&(x=!1)}return s.delete(e),s.delete(t),x}function Roe(e,t,r,i,n,s){var o=kr(e),l=kr(t),u=o?Gre:xm(e),h=l?Gre:xm(t);u=u==Vre?Xk:u,h=h==Vre?Xk:h;var d=u==Xk,f=h==Xk,p=u==h;if(p&&_1(e)){if(!_1(t))return!1;o=!0,d=!1}if(p&&!d)return s||(s=new p1),o||NN(e)?Soe(e,t,r,i,n,s):PWe(e,t,u,r,i,n,s);if(!(r&GWe)){var m=d&&Wre.call(e,"__wrapped__"),g=f&&Wre.call(t,"__wrapped__");if(m||g){var x=m?e.value():e,b=g?t.value():t;return s||(s=new p1),n(x,b,r,i,s)}}return p?(s||(s=new p1),VWe(e,t,r,i,n,s)):!1}function jN(e,t,r,i,n){return e===t?!0:e==null||t==null||!Qs(e)&&!Qs(t)?e!==e&&t!==t:zWe(e,t,r,i,jN,n)}function Doe(e,t,r,i){var n=r.length,s=n,o=!i;if(e==null)return!s;for(e=Object(e);n--;){var l=r[n];if(o&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++n<s;){l=r[n];var u=l[0],h=e[u],d=l[1];if(o&&l[2]){if(h===void 0&&!(u in e))return!1}else{var f=new p1;if(i)var p=i(h,d,u,e,t,f);if(!(p===void 0?Loe(d,h,qWe|jWe,i,f):p))return!1}}return!0}function Ioe(e){return e===e&&!hs(e)}function Moe(e){for(var t=Da(e),r=t.length;r--;){var i=t[r],n=e[i];t[r]=[i,n,Noe(n)]}return t}function Ooe(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}function Boe(e){var t=HWe(e);return t.length==1&&t[0][2]?Poe(t[0][0],t[0][1]):function(r){return r===e||UWe(r,e,t)}}function $oe(e,t){return e!=null&&t in Object(e)}function Foe(e,t,r){t=Jv(t,e);for(var i=-1,n=t.length,s=!1;++i<n;){var o=J1(t[i]);if(!(s=e!=null&&r(e,o)))break;e=e[o]}return s||++i!=n?s:(n=e==null?0:e.length,!!n&&IN(n)&&zv(o,n)&&(kr(e)||Uv(e)))}function Goe(e,t){return e!=null&&Voe(e,t,KWe)}function Woe(e,t){return MN(e)&&Noe(t)?Poe(J1(e),t):function(r){var i=RVe(r,e);return i===void 0&&i===t?XWe(r,e):Loe(t,i,QWe|ZWe)}}function zoe(e){return function(t){return t?.[e]}}function qoe(e){return function(t){return ON(t,e)}}function joe(e){return MN(e)?eze(J1(e)):tze(e)}function Uoe(e){return typeof e=="function"?e:e==null?ym:typeof e=="object"?kr(e)?JWe(e[0],e[1]):YWe(e):rze(e)}function Hoe(e,t,r,i){for(var n=-1,s=e==null?0:e.length;++n<s;){var o=e[n];t(i,o,r(o),e)}return i}function Yoe(e){return function(t,r,i){for(var n=-1,s=Object(t),o=i(t),l=o.length;l--;){var u=o[e?l:++n];if(r(s[u],u,s)===!1)break}return t}}function Koe(e,t){return e&&sze(e,t,Da)}function Xoe(e,t){return function(r,i){if(r==null)return r;if(!Xo(r))return e(r,i);for(var n=r.length,s=t?n:-1,o=Object(r);(t?s--:++s<n)&&i(o[s],s,o)!==!1;);return r}}function Qoe(e,t,r,i){return Ud(e,function(n,s,o){t(i,n,r(n),o)}),i}function Zoe(e,t){return function(r,i){var n=kr(r)?ize:uze,s=t?t():{};return n(r,e,Qo(i,2),s)}}function ele(e){return Qs(e)&&Xo(e)}function tle(e,t,r){for(var i=-1,n=e==null?0:e.length;++i<n;)if(r(t,e[i]))return!0;return!1}function ile(e,t,r,i){var n=-1,s=Aae,o=!0,l=e.length,u=[],h=t.length;if(!l)return u;r&&(t=H1(t,Z1(r))),i?(s=rle,o=!1):t.length>=pze&&(s=zN,o=!1,t=new WN(t));e:for(;++n<l;){var d=e[n],f=r==null?d:r(d);if(d=i||d!==0?d:0,o&&f===f){for(var p=h;p--;)if(t[p]===f)continue e;u.push(d)}else s(t,f,i)||u.push(d)}return u}function nle(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}function ale(e,t,r){var i=e==null?0:e.length;return i?(t=r||t===void 0?1:Y1(t),Ose(e,t<0?0:t,i)):[]}function sle(e,t,r){var i=e==null?0:e.length;return i?(t=r||t===void 0?1:Y1(t),t=i-t,Ose(e,0,t<0?0:t)):[]}function ole(e){return typeof e=="function"?e:ym}function lle(e,t){var r=kr(e)?kae:Ud;return r(e,yze(t))}function cle(e,t){for(var r=-1,i=e==null?0:e.length;++r<i;)if(!t(e[r],r,e))return!1;return!0}function ule(e,t){var r=!0;return Ud(e,function(i,n,s){return r=!!t(i,n,s),r}),r}function hle(e,t,r){var i=kr(e)?xze:bze;return r&&jv(e,t,r)&&(t=void 0),i(e,Qo(t,3))}function dle(e,t){var r=[];return Ud(e,function(i,n,s){t(i,n,s)&&r.push(i)}),r}function ple(e,t){var r=kr(e)?FN:fle;return r(e,Qo(t,3))}function mle(e){return function(t,r,i){var n=Object(t);if(!Xo(t)){var s=Qo(r,3);t=Da(t),r=y(function(l){return s(n[l],l,n)},"predicate")}var o=e(t,r,i);return o>-1?n[s?t[o]:o]:void 0}}function gle(e,t,r){var i=e==null?0:e.length;if(!i)return-1;var n=r==null?0:Y1(r);return n<0&&(n=kze(i+n,0)),vae(e,Qo(t,3),n)}function yle(e){return e&&e.length?e[0]:void 0}function xle(e,t){var r=-1,i=Xo(e)?Array(e.length):[];return Ud(e,function(n,s,o){i[++r]=t(n,s,o)}),i}function ble(e,t){var r=kr(e)?H1:Sze;return r(e,Qo(t,3))}function Tle(e,t){return $N(It(e,t),1)}function kle(e,t){return e!=null&&Lze.call(e,t)}function Cle(e,t){return e!=null&&Voe(e,t,Dze)}function vle(e){return typeof e=="string"||!kr(e)&&Qs(e)&&Au(e)==Ize}function Sle(e,t){return H1(t,function(r){return e[r]})}function _le(e){return e==null?[]:Nze(e,Da(e))}function wle(e,t,r,i){e=Xo(e)?e:Gi(e),r=r&&!i?Y1(r):0;var n=e.length;return r<0&&(r=Mze(n+r,0)),ua(e)?r<=n&&e.indexOf(t,r)>-1:!!n&&RN(e,t,r)>-1}function Ele(e,t,r){var i=e==null?0:e.length;if(!i)return-1;var n=r==null?0:Y1(r);return n<0&&(n=Oze(i+n,0)),RN(e,t,n)}function Ale(e){if(e==null)return!0;if(Xo(e)&&(kr(e)||typeof e=="string"||typeof e.splice=="function"||_1(e)||NN(e)||Uv(e)))return!e.length;var t=xm(e);if(t==Pze||t==Bze)return!e.size;if(Q1(e))return!ese(e).length;for(var r in e)if(Fze.call(e,r))return!1;return!0}function Rle(e){return Qs(e)&&Au(e)==Vze}function Lle(e){return e===void 0}function Dle(e){if(typeof e!="function")throw new TypeError(zze);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function Ile(e,t,r,i){if(!hs(e))return e;t=Jv(t,e);for(var n=-1,s=t.length,o=s-1,l=e;l!=null&&++n<s;){var u=J1(t[n]),h=r;if(u==="__proto__"||u==="constructor"||u==="prototype")return e;if(n!=o){var d=l[u];h=i?i(d,u,l):void 0,h===void 0&&(h=hs(d)?d:zv(t[n+1])?[]:{})}qv(l,u,h),l=l[u]}return e}function Nle(e,t,r){for(var i=-1,n=t.length,s={};++i<n;){var o=t[i],l=ON(e,o);r(l,o)&&jze(s,Jv(o,e),l)}return s}function Mle(e,t){if(e==null)return{};var r=H1(roe(e),function(i){return[i]});return t=Qo(t),Uze(e,r,function(i,n){return t(i,n[0])})}function Ole(e,t,r,i,n){return n(e,function(s,o,l){r=i?(i=!1,s):t(r,s,o,l)}),r}function Ple(e,t,r){var i=kr(e)?IVe:Hze,n=arguments.length<3;return i(e,Qo(t,4),r,n,Ud)}function Ble(e,t){var r=kr(e)?FN:fle;return r(e,qze(Qo(t,3)))}function $le(e,t){var r;return Ud(e,function(i,n,s){return r=t(i,n,s),!r}),!!r}function Fle(e,t,r){var i=kr(e)?koe:Yze;return r&&jv(e,t,r)&&(t=void 0),i(e,Qo(t,3))}function Gle(e,t,r){var i=-1,n=Aae,s=e.length,o=!0,l=[],u=l;if(r)o=!1,n=rle;else if(s>=Zze){var h=t?null:Qze(e);if(h)return qN(h);o=!1,n=zN,u=new WN}else u=t?[]:l;e:for(;++i<s;){var d=e[i],f=t?t(d):d;if(d=r||d!==0?d:0,o&&f===f){for(var p=u.length;p--;)if(u[p]===f)continue e;t&&u.push(f),l.push(d)}else n(u,f,r)||(u!==l&&u.push(f),l.push(d))}return l}function Wle(e){return e&&e.length?Jze(e):[]}function nv(e){console&&console.error&&console.error(`Error: ${e}`)}function YN(e){console&&console.warn&&console.warn(`Warning: ${e}`)}function KN(e){let t=new Date().getTime(),r=e();return{time:new Date().getTime()-t,value:r}}function XN(e){function t(){}a(t,"FakeConstructor"),y(t,"FakeConstructor"),t.prototype=e;let r=new t;function i(){return typeof r.bar}return a(i,"fakeAccess"),y(i,"fakeAccess"),i(),i(),e;(0,eval)(e)}function zle(e){return qle(e)?e.LABEL:e.name}function qle(e){return ua(e.LABEL)&&e.LABEL!==""}function jle(e){return It(e,g1)}function g1(e){function t(r){return It(r,g1)}if(a(t,"convertDefinition"),y(t,"convertDefinition"),e instanceof zn){let r={type:"NonTerminal",name:e.nonTerminalName,idx:e.idx};return ua(e.label)&&(r.label=e.label),r}else{if(e instanceof ha)return{type:"Alternative",definition:t(e.definition)};if(e instanceof dn)return{type:"Option",idx:e.idx,definition:t(e.definition)};if(e instanceof Ma)return{type:"RepetitionMandatory",idx:e.idx,definition:t(e.definition)};if(e instanceof Oa)return{type:"RepetitionMandatoryWithSeparator",idx:e.idx,separator:g1(new ti({terminalType:e.separator})),definition:t(e.definition)};if(e instanceof da)return{type:"RepetitionWithSeparator",idx:e.idx,separator:g1(new ti({terminalType:e.separator})),definition:t(e.definition)};if(e instanceof gi)return{type:"Repetition",idx:e.idx,definition:t(e.definition)};if(e instanceof fa)return{type:"Alternation",idx:e.idx,definition:t(e.definition)};if(e instanceof ti){let r={type:"Terminal",name:e.terminalType.name,label:zle(e.terminalType),idx:e.idx};ua(e.label)&&(r.terminalLabel=e.label);let i=e.terminalType.PATTERN;return e.terminalType.PATTERN&&(r.pattern=zl(i)?i.source:i),r}else{if(e instanceof _m)return{type:"Rule",name:e.name,orgText:e.orgText,definition:t(e.definition)};throw Error("non exhaustive match")}}}function Ule(e){return e instanceof ha||e instanceof dn||e instanceof gi||e instanceof Ma||e instanceof Oa||e instanceof da||e instanceof ti||e instanceof _m}function L1(e,t=[]){return e instanceof dn||e instanceof gi||e instanceof da?!0:e instanceof fa?Vle(e.definition,i=>L1(i,t)):e instanceof zn&&Un(t,e)?!1:e instanceof Zo?(e instanceof zn&&t.push(e),Xs(e.definition,i=>L1(i,t))):!1}function Hle(e){return e instanceof fa}function js(e){if(e instanceof zn)return"SUBRULE";if(e instanceof dn)return"OPTION";if(e instanceof fa)return"OR";if(e instanceof Ma)return"AT_LEAST_ONE";if(e instanceof Oa)return"AT_LEAST_ONE_SEP";if(e instanceof da)return"MANY_SEP";if(e instanceof gi)return"MANY";if(e instanceof ti)return"CONSUME";throw Error("non exhaustive match")}function PI(e,t,r){return[new dn({definition:[new ti({terminalType:e.separator})].concat(e.definition)})].concat(t,r)}function Em(e){if(e instanceof zn)return Em(e.referencedRule);if(e instanceof ti)return Xle(e);if(Ule(e))return Yle(e);if(Hle(e))return Kle(e);throw Error("non exhaustive match")}function Yle(e){let t=[],r=e.definition,i=0,n=r.length>i,s,o=!0;for(;n&&o;)s=r[i],o=L1(s),t=t.concat(Em(s)),i=i+1,n=r.length>i;return HN(t)}function Kle(e){let t=It(e.definition,r=>Em(r));return HN(Ks(t))}function Xle(e){return[e.terminalType]}function Zle(e){let t={};return jt(e,r=>{let i=new eqe(r).startWalking();Ia(t,i)}),t}function Jle(e,t){return e.name+t+Qle}function tx(e){let t=e.toString();if(vC.hasOwnProperty(t))return vC[t];{let r=tqe.pattern(t);return vC[t]=r,r}}function ece(){vC={}}function rce(e,t=!1){try{let r=tx(e);return sv(r.value,{},r.flags.ignoreCase)}catch(r){if(r.message===tce)t&&YN(`${av} Unable to optimize: < ${e.toString()} >
Complement Sets cannot be automatically optimized.
This will disable the lexer's first char optimizations.
See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#COMPLEMENT for details.`);else{let i="";t&&(i=`
This will disable the lexer's first char optimizations.
See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#REGEXP_PARSING for details.`),nv(`${av}
Failed parsing: < ${e.toString()} >
Using the @chevrotain/regexp-to-ast library
Please open an issue at: https://github.com/chevrotain/chevrotain/issues`+i)}}return[]}function sv(e,t,r){switch(e.type){case"Disjunction":for(let n=0;n<e.value.length;n++)sv(e.value[n],t,r);break;case"Alternative":let i=e.value;for(let n=0;n<i.length;n++){let s=i[n];switch(s.type){case"EndAnchor":case"GroupBackReference":case"Lookahead":case"NegativeLookahead":case"Lookbehind":case"NegativeLookbehind":case"StartAnchor":case"WordBoundary":case"NonWordBoundary":continue}let o=s;switch(o.type){case"Character":t1(o.value,t,r);break;case"Set":if(o.complement===!0)throw Error(tce);jt(o.value,u=>{if(typeof u=="number")t1(u,t,r);else{let h=u;if(r===!0)for(let d=h.from;d<=h.to;d++)t1(d,t,r);else{for(let d=h.from;d<=h.to&&d<i1;d++)t1(d,t,r);if(h.to>=i1){let d=h.from>=i1?h.from:i1,f=h.to,p=jl(d),m=jl(f);for(let g=p;g<=m;g++)t[g]=g}}}});break;case"Group":sv(o.value,t,r);break;default:throw Error("Non Exhaustive Match")}let l=o.quantifier!==void 0&&o.quantifier.atLeast===0;if(o.type==="Group"&&ov(o)===!1||o.type!=="Group"&&l===!1)break}break;default:throw Error("non exhaustive match!")}return Gi(t)}function t1(e,t,r){let i=jl(e);t[i]=i,r===!0&&ice(e,t)}function ice(e,t){let r=String.fromCharCode(e),i=r.toUpperCase();if(i!==r){let n=jl(i.charCodeAt(0));t[n]=n}else{let n=r.toLowerCase();if(n!==r){let s=jl(n.charCodeAt(0));t[s]=s}}}function BI(e,t){return bm(e.value,r=>{if(typeof r=="number")return Un(t,r);{let i=r;return bm(t,n=>i.from<=n&&n<=i.to)!==void 0}})}function ov(e){let t=e.quantifier;return t&&t.atLeast===0?!0:e.value?kr(e.value)?Xs(e.value,ov):ov(e.value):!1}function iS(e,t){if(t instanceof RegExp){let r=tx(t),i=new rqe(e);return i.visit(r),i.found}else return bm(t,r=>Un(e,r.charCodeAt(0)))!==void 0}function ace(e,t){t=UN(t,{useSticky:nce,debug:!1,safeMode:!1,positionTracking:"full",lineTerminatorCharacters:["\r",`
`],tracer:y((k,C)=>C(),"tracer")});let r=t.tracer;r("initCharCodeToOptimizedIndexMap",()=>{wce()});let i;r("Reject Lexer.NA",()=>{i=tS(e,k=>k[Dd]===Gn.NA)});let n=!1,s;r("Transform Patterns",()=>{n=!1,s=It(i,k=>{let C=k[Dd];if(zl(C)){let S=C.source;return S.length===1&&S!=="^"&&S!=="$"&&S!=="."&&!C.ignoreCase?S:S.length===2&&S[0]==="\\"&&!Un(["d","D","s","S","t","r","n","t","0","c","b","B","f","v","w","W"],S[1])?S[1]:t.useSticky?FI(C):$I(C)}else{if(Xl(C))return n=!0,{exec:C};if(typeof C=="object")return n=!0,C;if(typeof C=="string"){if(C.length===1)return C;{let S=C.replace(/[\\^$.*+?()[\]{}|]/g,"\\$&"),w=new RegExp(S);return t.useSticky?FI(w):$I(w)}}else throw Error("non exhaustive match")}})});let o,l,u,h,d;r("misc mapping",()=>{o=It(i,k=>k.tokenTypeIdx),l=It(i,k=>{let C=k.GROUP;if(C!==Gn.SKIPPED){if(ua(C))return C;if(ql(C))return!1;throw Error("non exhaustive match")}}),u=It(i,k=>{let C=k.LONGER_ALT;if(C)return kr(C)?It(C,w=>qre(i,w)):[qre(i,C)]}),h=It(i,k=>k.PUSH_MODE),d=It(i,k=>Wt(k,"POP_MODE"))});let f;r("Line Terminator Handling",()=>{let k=JN(t.lineTerminatorCharacters);f=It(i,C=>!1),t.positionTracking!=="onlyOffset"&&(f=It(i,C=>Wt(C,"LINE_BREAKS")?!!C.LINE_BREAKS:ZN(C,k)===!1&&iS(k,C.PATTERN)))});let p,m,g,x;r("Misc Mapping #2",()=>{p=It(i,QN),m=It(s,Sce),g=Na(i,(k,C)=>{let S=C.GROUP;return ua(S)&&S!==Gn.SKIPPED&&(k[S]=[]),k},{}),x=It(s,(k,C)=>({pattern:s[C],longerAlt:u[C],canLineTerminator:f[C],isCustom:p[C],short:m[C],group:l[C],push:h[C],pop:d[C],tokenTypeIdx:o[C],tokenType:i[C]}))});let b=!0,T=[];return t.safeMode||r("First Char Optimization",()=>{T=Na(i,(k,C,S)=>{if(typeof C.PATTERN=="string"){let w=C.PATTERN.charCodeAt(0),_=jl(w);SC(k,_,x[S])}else if(kr(C.START_CHARS_HINT)){let w;jt(C.START_CHARS_HINT,_=>{let L=typeof _=="string"?_.charCodeAt(0):_,I=jl(L);w!==I&&(w=I,SC(k,I,x[S]))})}else if(zl(C.PATTERN))if(C.PATTERN.unicode)b=!1,t.ensureOptimizations&&nv(`${av} Unable to analyze < ${C.PATTERN.toString()} > pattern.
The regexp unicode flag is not currently supported by the regexp-to-ast library.
This will disable the lexer's first char optimizations.
For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNICODE_OPTIMIZE`);else{let w=rce(C.PATTERN,t.ensureOptimizations);Hr(w)&&(b=!1),jt(w,_=>{SC(k,_,x[S])})}else t.ensureOptimizations&&nv(`${av} TokenType: <${C.name}> is using a custom token pattern without providing <start_chars_hint> parameter.
This will disable the lexer's first char optimizations.
For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#CUSTOM_OPTIMIZE`),b=!1;return k},[])}),{emptyGroups:g,patternIdxToConfig:x,charCodeToPatternIdxToConfig:T,hasCustom:n,canBeOptimized:b}}function sce(e,t){let r=[],i=lce(e);r=r.concat(i.errors);let n=cce(i.valid),s=n.valid;return r=r.concat(n.errors),r=r.concat(oce(s)),r=r.concat(mce(s)),r=r.concat(gce(s,t)),r=r.concat(yce(s)),r}function oce(e){let t=[],r=fs(e,i=>zl(i[Dd]));return t=t.concat(uce(r)),t=t.concat(dce(r)),t=t.concat(fce(r)),t=t.concat(pce(r)),t=t.concat(hce(r)),t}function lce(e){let t=fs(e,n=>!Wt(n,Dd)),r=It(t,n=>({message:"Token Type: ->"+n.name+"<- missing static 'PATTERN' property",type:yi.MISSING_PATTERN,tokenTypes:[n]})),i=eS(e,t);return{errors:r,valid:i}}function cce(e){let t=fs(e,n=>{let s=n[Dd];return!zl(s)&&!Xl(s)&&!Wt(s,"exec")&&!ua(s)}),r=It(t,n=>({message:"Token Type: ->"+n.name+"<- static 'PATTERN' can only be a RegExp, a Function matching the {CustomPatternMatcherFunc} type or an Object matching the {ICustomPattern} interface.",type:yi.INVALID_PATTERN,tokenTypes:[n]})),i=eS(e,t);return{errors:r,valid:i}}function uce(e){class t extends Ov{static{a(this,"EndAnchorFinder")}static{y(this,"EndAnchorFinder")}constructor(){super(...arguments),this.found=!1}visitEndAnchor(s){this.found=!0}}let r=fs(e,n=>{let s=n.PATTERN;try{let o=tx(s),l=new t;return l.visit(o),l.found}catch{return iqe.test(s.source)}});return It(r,n=>({message:`Unexpected RegExp Anchor Error:
Token Type: ->`+n.name+`<- static 'PATTERN' cannot contain end of input anchor '$'
See chevrotain.io/docs/guide/resolving_lexer_errors.html#ANCHORS for details.`,type:yi.EOI_ANCHOR_FOUND,tokenTypes:[n]}))}function hce(e){let t=fs(e,i=>i.PATTERN.test(""));return It(t,i=>({message:"Token Type: ->"+i.name+"<- static 'PATTERN' must not match an empty string",type:yi.EMPTY_MATCH_PATTERN,tokenTypes:[i]}))}function dce(e){class t extends Ov{static{a(this,"StartAnchorFinder")}static{y(this,"StartAnchorFinder")}constructor(){super(...arguments),this.found=!1}visitStartAnchor(s){this.found=!0}}let r=fs(e,n=>{let s=n.PATTERN;try{let o=tx(s),l=new t;return l.visit(o),l.found}catch{return nqe.test(s.source)}});return It(r,n=>({message:`Unexpected RegExp Anchor Error:
Token Type: ->`+n.name+`<- static 'PATTERN' cannot contain start of input anchor '^'
See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#ANCHORS for details.`,type:yi.SOI_ANCHOR_FOUND,tokenTypes:[n]}))}function fce(e){let t=fs(e,i=>{let n=i[Dd];return n instanceof RegExp&&(n.multiline||n.global)});return It(t,i=>({message:"Token Type: ->"+i.name+"<- static 'PATTERN' may NOT contain global('g') or multiline('m')",type:yi.UNSUPPORTED_FLAGS_FOUND,tokenTypes:[i]}))}function pce(e){let t=[],r=It(e,s=>Na(e,(o,l)=>(s.PATTERN.source===l.PATTERN.source&&!Un(t,l)&&l.PATTERN!==Gn.NA&&(t.push(l),o.push(l)),o),[]));r=ex(r);let i=fs(r,s=>s.length>1);return It(i,s=>{let o=It(s,u=>u.name);return{message:`The same RegExp pattern ->${Zs(s).PATTERN}<-has been used in all of the following Token Types: ${o.join(", ")} <-`,type:yi.DUPLICATE_PATTERNS_FOUND,tokenTypes:s}})}function mce(e){let t=fs(e,i=>{if(!Wt(i,"GROUP"))return!1;let n=i.GROUP;return n!==Gn.SKIPPED&&n!==Gn.NA&&!ua(n)});return It(t,i=>({message:"Token Type: ->"+i.name+"<- static 'GROUP' can only be Lexer.SKIPPED/Lexer.NA/A String",type:yi.INVALID_GROUP_TYPE_FOUND,tokenTypes:[i]}))}function gce(e,t){let r=fs(e,n=>n.PUSH_MODE!==void 0&&!Un(t,n.PUSH_MODE));return It(r,n=>({message:`Token Type: ->${n.name}<- static 'PUSH_MODE' value cannot refer to a Lexer Mode ->${n.PUSH_MODE}<-which does not exist`,type:yi.PUSH_MODE_DOES_NOT_EXIST,tokenTypes:[n]}))}function yce(e){let t=[],r=Na(e,(i,n,s)=>{let o=n.PATTERN;return o===Gn.NA||(ua(o)?i.push({str:o,idx:s,tokenType:n}):zl(o)&&bce(o)&&i.push({str:o.source,idx:s,tokenType:n})),i},[]);return jt(e,(i,n)=>{jt(r,({str:s,idx:o,tokenType:l})=>{if(n<o&&xce(s,i.PATTERN)){let u=`Token: ->${l.name}<- can never be matched.
Because it appears AFTER the Token Type ->${i.name}<-in the lexer's definition.
See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNREACHABLE`;t.push({message:u,type:yi.UNREACHABLE_PATTERN,tokenTypes:[i,l]})}})}),t}function xce(e,t){if(zl(t)){if(Tce(t))return!1;let r=t.exec(e);return r!==null&&r.index===0}else{if(Xl(t))return t(e,0,[],{});if(Wt(t,"exec"))return t.exec(e,0,[],{});if(typeof t=="string")return t===e;throw Error("non exhaustive match")}}function bce(e){return bm([".","\\","[","]","|","^","$","(",")","?","*","+","{"],r=>e.source.indexOf(r)!==-1)===void 0}function Tce(e){return/(\(\?=)|(\(\?!)|(\(\?<=)|(\(\?<!)/.test(e.source)}function $I(e){let t=e.ignoreCase?"i":"";return new RegExp(`^(?:${e.source})`,t)}function FI(e){let t=e.ignoreCase?"iy":"y";return new RegExp(`${e.source}`,t)}function kce(e,t,r){let i=[];return Wt(e,r1)||i.push({message:"A MultiMode Lexer cannot be initialized without a <"+r1+`> property in its definition
`,type:yi.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE}),Wt(e,Qk)||i.push({message:"A MultiMode Lexer cannot be initialized without a <"+Qk+`> property in its definition
`,type:yi.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY}),Wt(e,Qk)&&Wt(e,r1)&&!Wt(e.modes,e.defaultMode)&&i.push({message:`A MultiMode Lexer cannot be initialized with a ${r1}: <${e.defaultMode}>which does not exist
`,type:yi.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST}),Wt(e,Qk)&&jt(e.modes,(n,s)=>{jt(n,(o,l)=>{if(ql(o))i.push({message:`A Lexer cannot be initialized using an undefined Token Type. Mode:<${s}> at index: <${l}>
`,type:yi.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED});else if(Wt(o,"LONGER_ALT")){let u=kr(o.LONGER_ALT)?o.LONGER_ALT:[o.LONGER_ALT];jt(u,h=>{!ql(h)&&!Un(n,h)&&i.push({message:`A MultiMode Lexer cannot be initialized with a longer_alt <${h.name}> on token <${o.name}> outside of mode <${s}>
`,type:yi.MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE})})}})}),i}function Cce(e,t,r){let i=[],n=!1,s=ex(Ks(Gi(e.modes))),o=tS(s,u=>u[Dd]===Gn.NA),l=JN(r);return t&&jt(o,u=>{let h=ZN(u,l);if(h!==!1){let f={message:_ce(u,h),type:h.issue,tokenType:u};i.push(f)}else Wt(u,"LINE_BREAKS")?u.LINE_BREAKS===!0&&(n=!0):iS(l,u.PATTERN)&&(n=!0)}),t&&!n&&i.push({message:`Warning: No LINE_BREAKS Found.
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.
See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#LINE_BREAKS
for details.`,type:yi.NO_LINE_BREAKS_FLAGS}),i}function vce(e){let t={},r=Da(e);return jt(r,i=>{let n=e[i];if(kr(n))t[i]=[];else throw Error("non exhaustive match")}),t}function QN(e){let t=e.PATTERN;if(zl(t))return!1;if(Xl(t))return!0;if(Wt(t,"exec"))return!0;if(ua(t))return!1;throw Error("non exhaustive match")}function Sce(e){return ua(e)&&e.length===1?e.charCodeAt(0):!1}function ZN(e,t){if(Wt(e,"LINE_BREAKS"))return!1;if(zl(e.PATTERN)){try{iS(t,e.PATTERN)}catch(r){return{issue:yi.IDENTIFY_TERMINATOR,errMsg:r.message}}return!1}else{if(ua(e.PATTERN))return!1;if(QN(e))return{issue:yi.CUSTOM_LINE_BREAK};throw Error("non exhaustive match")}}function _ce(e,t){if(t.issue===yi.IDENTIFY_TERMINATOR)return`Warning: unable to identify line terminator usage in pattern.
The problem is in the <${e.name}> Token Type
Root cause: ${t.errMsg}.
For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#IDENTIFY_TERMINATOR`;if(t.issue===yi.CUSTOM_LINE_BREAK)return`Warning: A Custom Token Pattern should specify the <line_breaks> option.
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 JN(e){return It(e,r=>ua(r)?r.charCodeAt(0):r)}function SC(e,t,r){e[t]===void 0?e[t]=[r]:e[t].push(r)}function jl(e){return e<i1?e:_C[e]}function wce(){if(Hr(_C)){_C=new Array(65536);for(let e=0;e<65536;e++)_C[e]=e>255?255+~~(e/255):e}}function Am(e,t){let r=e.tokenTypeIdx;return r===t.tokenTypeIdx?!0:t.isParent===!0&&t.categoryMatchesMap[r]===!0}function D1(e,t){return e.tokenTypeIdx===t.tokenTypeIdx}function Rm(e){let t=Ace(e);Rce(t),Dce(t),Lce(t),jt(t,r=>{r.isParent=r.categoryMatches.length>0})}function Ace(e){let t=fn(e),r=e,i=!0;for(;i;){r=ex(Ks(It(r,s=>s.CATEGORIES)));let n=eS(r,t);t=t.concat(n),Hr(n)?i=!1:r=n}return t}function Rce(e){jt(e,t=>{tM(t)||(Ece[Ure]=t,t.tokenTypeIdx=Ure++),VI(t)&&!kr(t.CATEGORIES)&&(t.CATEGORIES=[t.CATEGORIES]),VI(t)||(t.CATEGORIES=[]),Ice(t)||(t.categoryMatches=[]),Nce(t)||(t.categoryMatchesMap={})})}function Lce(e){jt(e,t=>{t.categoryMatches=[],jt(t.categoryMatchesMap,(r,i)=>{t.categoryMatches.push(Ece[i].tokenTypeIdx)})})}function Dce(e){jt(e,t=>{eM([],t)})}function eM(e,t){jt(e,r=>{t.categoryMatchesMap[r.tokenTypeIdx]=!0}),jt(t.CATEGORIES,r=>{let i=e.concat(t);Un(i,r)||eM(i,r)})}function tM(e){return Wt(e,"tokenTypeIdx")}function VI(e){return Wt(e,"CATEGORIES")}function Ice(e){return Wt(e,"categoryMatches")}function Nce(e){return Wt(e,"categoryMatchesMap")}function Mce(e){return Wt(e,"tokenTypeIdx")}function Ed(e){return rM(e)?e.LABEL:e.name}function rM(e){return ua(e.LABEL)&&e.LABEL!==""}function lm(e){return Oce(e)}function Oce(e){let t=e.pattern,r={};if(r.name=e.name,ql(t)||(r.PATTERN=t),Wt(e,sqe))throw`The parent property is no longer supported.
See: https://github.com/chevrotain/chevrotain/issues/564#issuecomment-349062346 for details.`;return Wt(e,Hre)&&(r.CATEGORIES=e[Hre]),Rm([r]),Wt(e,Yre)&&(r.LABEL=e[Yre]),Wt(e,Kre)&&(r.GROUP=e[Kre]),Wt(e,Qre)&&(r.POP_MODE=e[Qre]),Wt(e,Xre)&&(r.PUSH_MODE=e[Xre]),Wt(e,Zre)&&(r.LONGER_ALT=e[Zre]),Wt(e,Jre)&&(r.LINE_BREAKS=e[Jre]),Wt(e,eie)&&(r.START_CHARS_HINT=e[eie]),r}function rx(e,t,r,i,n,s,o,l){return{image:t,startOffset:r,endOffset:i,startLine:n,endLine:s,startColumn:o,endColumn:l,tokenTypeIdx:e.tokenTypeIdx,tokenType:e}}function iM(e,t){return Am(e,t)}function Pce(e,t){let r=new lqe(e,t);return r.resolveRefs(),r.errors}function lv(e,t,r=[]){r=fn(r);let i=[],n=0;function s(l){return l.concat(hn(e,n+1))}a(s,"remainingPathWith"),y(s,"remainingPathWith");function o(l){let u=lv(s(l),t,r);return i.concat(u)}for(a(o,"getAlternativesForProd"),y(o,"getAlternativesForProd");r.length<t&&n<e.length;){let l=e[n];if(l instanceof ha)return o(l.definition);if(l instanceof zn)return o(l.definition);if(l instanceof dn)i=o(l.definition);else if(l instanceof Ma){let u=l.definition.concat([new gi({definition:l.definition})]);return o(u)}else if(l instanceof Oa){let u=[new ha({definition:l.definition}),new gi({definition:[new ti({terminalType:l.separator})].concat(l.definition)})];return o(u)}else if(l instanceof da){let u=l.definition.concat([new gi({definition:[new ti({terminalType:l.separator})].concat(l.definition)})]);i=o(u)}else if(l instanceof gi){let u=l.definition.concat([new gi({definition:l.definition})]);i=o(u)}else{if(l instanceof fa)return jt(l.definition,u=>{Hr(u.definition)===!1&&(i=o(u.definition))}),i;if(l instanceof ti)r.push(l.terminalType);else throw Error("non exhaustive match")}n++}return i.push({partialPath:r,suffixDef:hn(e,n)}),i}function nM(e,t,r,i){let n="EXIT_NONE_TERMINAL",s=[n],o="EXIT_ALTERNATIVE",l=!1,u=t.length,h=u-i-1,d=[],f=[];for(f.push({idx:-1,def:e,ruleStack:[],occurrenceStack:[]});!Hr(f);){let p=f.pop();if(p===o){l&&Ld(f).idx<=h&&f.pop();continue}let m=p.def,g=p.idx,x=p.ruleStack,b=p.occurrenceStack;if(Hr(m))continue;let T=m[0];if(T===n){let k={idx:g,def:hn(m),ruleStack:R1(x),occurrenceStack:R1(b)};f.push(k)}else if(T instanceof ti)if(g<u-1){let k=g+1,C=t[k];if(r(C,T.terminalType)){let S={idx:k,def:hn(m),ruleStack:x,occurrenceStack:b};f.push(S)}}else if(g===u-1)d.push({nextTokenType:T.terminalType,nextTokenOccurrence:T.idx,ruleStack:x,occurrenceStack:b}),l=!0;else throw Error("non exhaustive match");else if(T instanceof zn){let k=fn(x);k.push(T.nonTerminalName);let C=fn(b);C.push(T.idx);let S={idx:g,def:T.definition.concat(s,hn(m)),ruleStack:k,occurrenceStack:C};f.push(S)}else if(T instanceof dn){let k={idx:g,def:hn(m),ruleStack:x,occurrenceStack:b};f.push(k),f.push(o);let C={idx:g,def:T.definition.concat(hn(m)),ruleStack:x,occurrenceStack:b};f.push(C)}else if(T instanceof Ma){let k=new gi({definition:T.definition,idx:T.idx}),C=T.definition.concat([k],hn(m)),S={idx:g,def:C,ruleStack:x,occurrenceStack:b};f.push(S)}else if(T instanceof Oa){let k=new ti({terminalType:T.separator}),C=new gi({definition:[k].concat(T.definition),idx:T.idx}),S=T.definition.concat([C],hn(m)),w={idx:g,def:S,ruleStack:x,occurrenceStack:b};f.push(w)}else if(T instanceof da){let k={idx:g,def:hn(m),ruleStack:x,occurrenceStack:b};f.push(k),f.push(o);let C=new ti({terminalType:T.separator}),S=new gi({definition:[C].concat(T.definition),idx:T.idx}),w=T.definition.concat([S],hn(m)),_={idx:g,def:w,ruleStack:x,occurrenceStack:b};f.push(_)}else if(T instanceof gi){let k={idx:g,def:hn(m),ruleStack:x,occurrenceStack:b};f.push(k),f.push(o);let C=new gi({definition:T.definition,idx:T.idx}),S=T.definition.concat([C],hn(m)),w={idx:g,def:S,ruleStack:x,occurrenceStack:b};f.push(w)}else if(T instanceof fa)for(let k=T.definition.length-1;k>=0;k--){let C=T.definition[k],S={idx:g,def:C.definition.concat(hn(m)),ruleStack:x,occurrenceStack:b};f.push(S),f.push(o)}else if(T instanceof ha)f.push({idx:g,def:T.definition.concat(hn(m)),ruleStack:x,occurrenceStack:b});else if(T instanceof _m)f.push(Bce(T,g,x,b));else throw Error("non exhaustive match")}return d}function Bce(e,t,r,i){let n=fn(r);n.push(e.name);let s=fn(i);return s.push(1),{idx:t,def:e.definition,ruleStack:n,occurrenceStack:s}}function aS(e){if(e instanceof dn||e==="Option")return oi.OPTION;if(e instanceof gi||e==="Repetition")return oi.REPETITION;if(e instanceof Ma||e==="RepetitionMandatory")return oi.REPETITION_MANDATORY;if(e instanceof Oa||e==="RepetitionMandatoryWithSeparator")return oi.REPETITION_MANDATORY_WITH_SEPARATOR;if(e instanceof da||e==="RepetitionWithSeparator")return oi.REPETITION_WITH_SEPARATOR;if(e instanceof fa||e==="Alternation")return oi.ALTERNATION;throw Error("non exhaustive match")}function WI(e){let{occurrence:t,rule:r,prodType:i,maxLookahead:n}=e,s=aS(i);return s===oi.ALTERNATION?ix(t,r,n):nx(t,r,s,n)}function $ce(e,t,r,i,n,s){let o=ix(e,t,r),l=sM(o)?D1:Am;return s(o,i,l,n)}function Fce(e,t,r,i,n,s){let o=nx(e,t,n,r),l=sM(o)?D1:Am;return s(o[0],l,i)}function Vce(e,t,r,i){let n=e.length,s=Xs(e,o=>Xs(o,l=>l.length===1));if(t)return function(o){let l=It(o,u=>u.GATE);for(let u=0;u<n;u++){let h=e[u],d=h.length,f=l[u];if(!(f!==void 0&&f.call(this)===!1))e:for(let p=0;p<d;p++){let m=h[p],g=m.length;for(let x=0;x<g;x++){let b=this.LA(x+1);if(r(b,m[x])===!1)continue e}return u}}};if(s&&!i){let o=It(e,u=>Ks(u)),l=Na(o,(u,h,d)=>(jt(h,f=>{Wt(u,f.tokenTypeIdx)||(u[f.tokenTypeIdx]=d),jt(f.categoryMatches,p=>{Wt(u,p)||(u[p]=d)})}),u),{});return function(){let u=this.LA(1);return l[u.tokenTypeIdx]}}else return function(){for(let o=0;o<n;o++){let l=e[o],u=l.length;e:for(let h=0;h<u;h++){let d=l[h],f=d.length;for(let p=0;p<f;p++){let m=this.LA(p+1);if(r(m,d[p])===!1)continue e}return o}}}}function Gce(e,t,r){let i=Xs(e,s=>s.length===1),n=e.length;if(i&&!r){let s=Ks(e);if(s.length===1&&Hr(s[0].categoryMatches)){let l=s[0].tokenTypeIdx;return function(){return this.LA(1).tokenTypeIdx===l}}else{let o=Na(s,(l,u,h)=>(l[u.tokenTypeIdx]=!0,jt(u.categoryMatches,d=>{l[d]=!0}),l),[]);return function(){let l=this.LA(1);return o[l.tokenTypeIdx]===!0}}}else return function(){e:for(let s=0;s<n;s++){let o=e[s],l=o.length;for(let u=0;u<l;u++){let h=this.LA(u+1);if(t(h,o[u])===!1)continue e}return!0}return!1}}function zI(e){let t=new Array(e);for(let r=0;r<e;r++)t[r]=[];return t}function wC(e){let t=[""];for(let r=0;r<e.length;r++){let i=e[r],n=[];for(let s=0;s<t.length;s++){let o=t[s];n.push(o+"_"+i.tokenTypeIdx);for(let l=0;l<i.categoryMatches.length;l++){let u="_"+i.categoryMatches[l];n.push(o+u)}}t=n}return t}function zce(e,t,r){for(let i=0;i<e.length;i++){if(i===r)continue;let n=e[i];for(let s=0;s<t.length;s++){let o=t[s];if(n[o]===!0)return!1}}return!0}function aM(e,t){let r=It(e,o=>lv([o],1)),i=zI(r.length),n=It(r,o=>{let l={};return jt(o,u=>{let h=wC(u.partialPath);jt(h,d=>{l[d]=!0})}),l}),s=r;for(let o=1;o<=t;o++){let l=s;s=zI(l.length);for(let u=0;u<l.length;u++){let h=l[u];for(let d=0;d<h.length;d++){let f=h[d].partialPath,p=h[d].suffixDef,m=wC(f);if(zce(n,m,u)||Hr(p)||f.length===t){let x=i[u];if(cv(x,f)===!1){x.push(f);for(let b=0;b<m.length;b++){let T=m[b];n[u][T]=!0}}}else{let x=lv(p,o+1,f);s[u]=s[u].concat(x),jt(x,b=>{let T=wC(b.partialPath);jt(T,k=>{n[u][k]=!0})})}}}}return i}function ix(e,t,r,i){let n=new Wce(e,oi.ALTERNATION,i);return t.accept(n),aM(n.result,r)}function nx(e,t,r,i){let n=new Wce(e,r);t.accept(n);let s=n.result,l=new fqe(t,e,r).startWalking(),u=new ha({definition:s}),h=new ha({definition:l});return aM([u,h],i)}function cv(e,t){e:for(let r=0;r<e.length;r++){let i=e[r];if(i.length===t.length){for(let n=0;n<i.length;n++){let s=t[n],o=i[n];if((s===o||o.categoryMatchesMap[s.tokenTypeIdx]!==void 0)===!1)continue e}return!0}}return!1}function qce(e,t){return e.length<t.length&&Xs(e,(r,i)=>{let n=t[i];return r===n||n.categoryMatchesMap[r.tokenTypeIdx]})}function sM(e){return Xs(e,t=>Xs(t,r=>Xs(r,i=>Hr(i.categoryMatches))))}function jce(e){let t=e.lookaheadStrategy.validate({rules:e.rules,tokenTypes:e.tokenTypes,grammarName:e.grammarName});return It(t,r=>Object.assign({type:qn.CUSTOM_LOOKAHEAD_VALIDATION},r))}function Uce(e,t,r,i){let n=cs(e,u=>Hce(u,r)),s=iue(e,t,r),o=cs(e,u=>Jce(u,r)),l=cs(e,u=>Kce(u,e,i,r));return n.concat(s,o,l)}function Hce(e,t){let r=new pqe;e.accept(r);let i=r.allProductions,n=Aze(i,Yce),s=Js(n,l=>l.length>1);return It(Gi(s),l=>{let u=Zs(l),h=t.buildDuplicateFoundError(e,l),d=js(u),f={message:h,type:qn.DUPLICATE_PRODUCTIONS,ruleName:e.name,dslName:d,occurrence:u.idx},p=oM(u);return p&&(f.parameter=p),f})}function Yce(e){return`${js(e)}_#_${e.idx}_#_${oM(e)}`}function oM(e){return e instanceof ti?e.terminalType.name:e instanceof zn?e.nonTerminalName:""}function Kce(e,t,r,i){let n=[];if(Na(t,(o,l)=>l.name===e.name?o+1:o,0)>1){let o=i.buildDuplicateRuleNameError({topLevelRule:e,grammarName:r});n.push({message:o,type:qn.DUPLICATE_RULE_NAME,ruleName:e.name})}return n}function Xce(e,t,r){let i=[],n;return Un(t,e)||(n=`Invalid rule override, rule: ->${e}<- cannot be overridden in the grammar: ->${r}<-as it is not defined in any of the super grammars `,i.push({message:n,type:qn.INVALID_RULE_OVERRIDE,ruleName:e})),i}function lM(e,t,r,i=[]){let n=[],s=y1(t.definition);if(Hr(s))return[];{let o=e.name;Un(s,e)&&n.push({message:r.buildLeftRecursionError({topLevelRule:e,leftRecursionPath:i}),type:qn.LEFT_RECURSION,ruleName:o});let u=eS(s,i.concat([e])),h=cs(u,d=>{let f=fn(i);return f.push(d),lM(e,d,r,f)});return n.concat(h)}}function y1(e){let t=[];if(Hr(e))return t;let r=Zs(e);if(r instanceof zn)t.push(r.referencedRule);else if(r instanceof ha||r instanceof dn||r instanceof Ma||r instanceof Oa||r instanceof da||r instanceof gi)t=t.concat(y1(r.definition));else if(r instanceof fa)t=Ks(It(r.definition,s=>y1(s.definition)));else if(!(r instanceof ti))throw Error("non exhaustive match");let i=L1(r),n=e.length>1;if(i&&n){let s=hn(e);return t.concat(y1(s))}else return t}function Qce(e,t){let r=new cM;e.accept(r);let i=r.alternations;return cs(i,s=>{let o=R1(s.definition);return cs(o,(l,u)=>{let h=nM([l],[],Am,1);return Hr(h)?[{message:t.buildEmptyAlternationError({topLevelRule:e,alternation:s,emptyChoiceIdx:u}),type:qn.NONE_LAST_EMPTY_ALT,ruleName:e.name,occurrence:s.idx,alternative:u+1}]:[]})})}function Zce(e,t,r){let i=new cM;e.accept(i);let n=i.alternations;return n=tS(n,o=>o.ignoreAmbiguities===!0),cs(n,o=>{let l=o.idx,u=o.maxLookahead||t,h=ix(l,e,u,o),d=tue(h,o,e,r),f=rue(h,o,e,r);return d.concat(f)})}function Jce(e,t){let r=new cM;e.accept(r);let i=r.alternations;return cs(i,s=>s.definition.length>255?[{message:t.buildTooManyAlternativesError({topLevelRule:e,alternation:s}),type:qn.TOO_MANY_ALTS,ruleName:e.name,occurrence:s.idx}]:[])}function eue(e,t,r){let i=[];return jt(e,n=>{let s=new mqe;n.accept(s);let o=s.allProductions;jt(o,l=>{let u=aS(l),h=l.maxLookahead||t,d=l.idx,p=nx(d,n,u,h)[0];if(Hr(Ks(p))){let m=r.buildEmptyRepetitionError({topLevelRule:n,repetition:l});i.push({message:m,type:qn.NO_NON_EMPTY_LOOKAHEAD,ruleName:n.name})}})}),i}function tue(e,t,r,i){let n=[],s=Na(e,(l,u,h)=>(t.definition[h].ignoreAmbiguities===!0||jt(u,d=>{let f=[h];jt(e,(p,m)=>{h!==m&&cv(p,d)&&t.definition[m].ignoreAmbiguities!==!0&&f.push(m)}),f.length>1&&!cv(n,d)&&(n.push(d),l.push({alts:f,path:d}))}),l),[]);return It(s,l=>{let u=It(l.alts,d=>d+1);return{message:i.buildAlternationAmbiguityError({topLevelRule:r,alternation:t,ambiguityIndices:u,prefixPath:l.path}),type:qn.AMBIGUOUS_ALTS,ruleName:r.name,occurrence:t.idx,alternatives:l.alts}})}function rue(e,t,r,i){let n=Na(e,(o,l,u)=>{let h=It(l,d=>({idx:u,path:d}));return o.concat(h)},[]);return ex(cs(n,o=>{if(t.definition[o.idx].ignoreAmbiguities===!0)return[];let u=o.idx,h=o.path,d=fs(n,p=>t.definition[p.idx].ignoreAmbiguities!==!0&&p.idx<u&&qce(p.path,h));return It(d,p=>{let m=[p.idx+1,u+1],g=t.idx===0?"":t.idx;return{message:i.buildAlternationPrefixAmbiguityError({topLevelRule:r,alternation:t,ambiguityIndices:m,prefixPath:p.path}),type:qn.AMBIGUOUS_PREFIX_ALTS,ruleName:r.name,occurrence:g,alternatives:m}})}))}function iue(e,t,r){let i=[],n=It(t,s=>s.name);return jt(e,s=>{let o=s.name;if(Un(n,o)){let l=r.buildNamespaceConflictError(s);i.push({message:l,type:qn.CONFLICT_TOKENS_RULES_NAMESPACE,ruleName:o})}}),i}function nue(e){let t=UN(e,{errMsgProvider:oqe}),r={};return jt(e.rules,i=>{r[i.name]=i}),Pce(r,t.errMsgProvider)}function aue(e){return e=UN(e,{errMsgProvider:Sd}),Uce(e.rules,e.tokenTypes,e.errMsgProvider,e.grammarName)}function I1(e){return Un(uue,e.name)}function fue(e,t,r,i,n,s,o){let l=this.getKeyForAutomaticLookahead(i,n),u=this.firstAfterRepMap[l];if(u===void 0){let p=this.getCurrRuleFullName(),m=this.getGAstProductions()[p];u=new s(m,n).startWalking(),this.firstAfterRepMap[l]=u}let h=u.token,d=u.occurrence,f=u.isEndOfRule;this.RULE_STACK.length===1&&f&&h===void 0&&(h=vu,d=1),!(h===void 0||d===void 0)&&this.shouldInRepetitionRecoveryBeTried(h,d,o)&&this.tryInRepetitionRecovery(e,t,r,h)}function AC(e,t,r){return r|t|e}function gue(e){Zk.reset(),e.accept(Zk);let t=Zk.dslMethods;return Zk.reset(),t}function HI(e,t){isNaN(e.startOffset)===!0?(e.startOffset=t.startOffset,e.endOffset=t.endOffset):e.endOffset<t.endOffset&&(e.endOffset=t.endOffset)}function YI(e,t){isNaN(e.startOffset)===!0?(e.startOffset=t.startOffset,e.startColumn=t.startColumn,e.startLine=t.startLine,e.endOffset=t.endOffset,e.endColumn=t.endColumn,e.endLine=t.endLine):e.endOffset<t.endOffset&&(e.endOffset=t.endOffset,e.endColumn=t.endColumn,e.endLine=t.endLine)}function yue(e,t,r){e.children[r]===void 0?e.children[r]=[t]:e.children[r].push(t)}function xue(e,t,r){e.children[t]===void 0?e.children[t]=[r]:e.children[t].push(r)}function hM(e,t){Object.defineProperty(e,_qe,{enumerable:!1,configurable:!0,writable:!1,value:t})}function bue(e,t){let r=Da(e),i=r.length;for(let n=0;n<i;n++){let s=r[n],o=e[s],l=o.length;for(let u=0;u<l;u++){let h=o[u];h.tokenTypeIdx===void 0&&this[h.name](h.children,t)}}}function Tue(e,t){let r=y(function(){},"derivedConstructor");hM(r,e+"BaseSemantics");let i={visit:y(function(n,s){if(kr(n)&&(n=n[0]),!ql(n))return this[n.name](n.children,s)},"visit"),validateVisitor:y(function(){let n=Cue(this,t);if(!Hr(n)){let s=It(n,o=>o.msg);throw Error(`Errors Detected in CST Visitor <${this.constructor.name}>:
${s.join(`
`).replace(/\n/g,`
`)}`)}},"validateVisitor")};return r.prototype=i,r.prototype.constructor=r,r._RULE_NAMES=t,r}function kue(e,t,r){let i=y(function(){},"derivedConstructor");hM(i,e+"BaseSemanticsWithDefaults");let n=Object.create(r.prototype);return jt(t,s=>{n[s]=bue}),i.prototype=n,i.prototype.constructor=i,i}function Cue(e,t){return vue(e,t)}function vue(e,t){let r=fs(t,n=>Xl(e[n])===!1),i=It(r,n=>({msg:`Missing visitor method: <${n}> on ${e.constructor.name} CST Visitor.`,type:KI.MISSING_METHOD,methodName:n}));return ex(i)}function Kp(e,t,r,i=!1){N1(r);let n=Ld(this.recordingProdStack),s=Xl(t)?t:t.DEF,o=new e({definition:[],idx:r});return i&&(o.separator=t.SEP),Wt(t,"MAX_LOOKAHEAD")&&(o.maxLookahead=t.MAX_LOOKAHEAD),this.recordingProdStack.push(o),s.call(this),n.definition.push(o),this.recordingProdStack.pop(),oS}function wue(e,t){N1(t);let r=Ld(this.recordingProdStack),i=kr(e)===!1,n=i===!1?e:e.DEF,s=new fa({definition:[],idx:t,ignoreAmbiguities:i&&e.IGNORE_AMBIGUITIES===!0});Wt(e,"MAX_LOOKAHEAD")&&(s.maxLookahead=e.MAX_LOOKAHEAD);let o=Vle(n,l=>Xl(l.GATE));return s.hasPredicates=o,r.definition.push(s),jt(n,l=>{let u=new ha({definition:[]});s.definition.push(u),Wt(l,"IGNORE_AMBIGUITIES")?u.ignoreAmbiguities=l.IGNORE_AMBIGUITIES:Wt(l,"GATE")&&(u.ignoreAmbiguities=!0),this.recordingProdStack.push(u),l.ALT.call(this),this.recordingProdStack.pop()}),oS}function XI(e){return e===0?"":`${e}`}function N1(e){if(e<0||e>nie){let t=new Error(`Invalid DSL Method idx value: <${e}>
Idx value must be a none negative value smaller than ${nie+1}`);throw t.KNOWN_RECORDER_ERROR=!0,t}}function Eue(e,t){t.forEach(r=>{let i=r.prototype;Object.getOwnPropertyNames(i).forEach(n=>{if(n==="constructor")return;let s=Object.getOwnPropertyDescriptor(i,n);s&&(s.get||s.set)?Object.defineProperty(e.prototype,n,s):e.prototype[n]=r.prototype[n]})})}function QI(e=void 0){return function(){return e}}function Rue(e,t){for(var r=-1,i=e==null?0:e.length,n=Array(i);++r<i;)n[r]=t(e[r],r,e);return n}function Due(){this.__data__=[],this.size=0}function Iue(e,t){return e===t||e!==e&&t!==t}function Mue(e,t){for(var r=e.length;r--;)if(Nue(e[r][0],t))return r;return-1}function Oue(e){var t=this.__data__,r=lS(t,e);if(r<0)return!1;var i=t.length-1;return r==i?t.pop():$qe.call(t,r,1),--this.size,!0}function Pue(e){var t=this.__data__,r=lS(t,e);return r<0?void 0:t[r][1]}function Bue(e){return lS(this.__data__,e)>-1}function $ue(e,t){var r=this.__data__,i=lS(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this}function Hd(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}function Fue(){this.__data__=new cS,this.size=0}function Vue(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function Gue(e){return this.__data__.get(e)}function Wue(e){return this.__data__.has(e)}function jue(e){var t=Qqe.call(e,V0),r=e[V0];try{e[V0]=void 0;var i=!0}catch{}var n=Zqe.call(e);return i&&(t?e[V0]=r:delete e[V0]),n}function Uue(e){return tje.call(e)}function Hue(e){return e==null?e===void 0?nje:ije:aie&&aie in Object(e)?Jqe(e):rje(e)}function Yue(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function Kue(e){if(!fM(e))return!1;var t=Lm(e);return t==sje||t==oje||t==aje||t==lje}function Que(e){return!!sie&&sie in e}function Zue(e){if(e!=null){try{return dje.call(e)}catch{}try{return e+""}catch{}}return""}function Jue(e){if(!fM(e)||uje(e))return!1;var t=Xue(e)?bje:pje;return t.test(Yd(e))}function ehe(e,t){return e?.[t]}function the(e,t){var r=kje(e,t);return Tje(r)?r:void 0}function rhe(){this.__data__=O1?O1(null):{},this.size=0}function ihe(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function nhe(e){var t=this.__data__;if(O1){var r=t[e];return r===wje?void 0:r}return Aje.call(t,e)?t[e]:void 0}function ahe(e){var t=this.__data__;return O1?t[e]!==void 0:Dje.call(t,e)}function she(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=O1&&t===void 0?Nje:t,this}function Kd(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}function ohe(){this.size=0,this.__data__={hash:new oie,map:new(M1||cS),string:new oie}}function lhe(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function che(e,t){var r=e.__data__;return Pje(t)?r[typeof t=="string"?"string":"hash"]:r.map}function uhe(e){var t=uS(this,e).delete(e);return this.size-=t?1:0,t}function hhe(e){return uS(this,e).get(e)}function dhe(e){return uS(this,e).has(e)}function fhe(e,t){var r=uS(this,e),i=r.size;return r.set(e,t),this.size+=r.size==i?0:1,this}function Xd(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}function phe(e,t){var r=this.__data__;if(r instanceof cS){var i=r.__data__;if(!M1||i.length<Gje-1)return i.push([e,t]),this.size=++r.size,this;r=this.__data__=new hS(i)}return r.set(e,t),this.size=r.size,this}function Qd(e){var t=this.__data__=new cS(e);this.size=t.size}function mhe(e){return this.__data__.set(e,zje),this}function ghe(e){return this.__data__.has(e)}function P1(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new hS;++t<r;)this.add(e[t])}function xhe(e,t){for(var r=-1,i=e==null?0:e.length;++r<i;)if(t(e[r],r,e))return!0;return!1}function bhe(e,t){return e.has(t)}function khe(e,t,r,i,n,s){var o=r&Hje,l=e.length,u=t.length;if(l!=u&&!(o&&u>l))return!1;var h=s.get(e),d=s.get(t);if(h&&d)return h==t&&d==e;var f=-1,p=!0,m=r&Yje?new yhe:void 0;for(s.set(e,t),s.set(t,e);++f<l;){var g=e[f],x=t[f];if(i)var b=o?i(x,g,f,t,e,s):i(g,x,f,e,t,s);if(b!==void 0){if(b)continue;p=!1;break}if(m){if(!Uje(t,function(T,k){if(!The(m,k)&&(g===T||n(g,T,r,i,s)))return m.push(k)})){p=!1;break}}else if(!(g===x||n(g,x,r,i,s))){p=!1;break}}return s.delete(e),s.delete(t),p}function vhe(e){var t=-1,r=Array(e.size);return e.forEach(function(i,n){r[++t]=[n,i]}),r}function She(e){var t=-1,r=Array(e.size);return e.forEach(function(i){r[++t]=i}),r}function _he(e,t,r,i,n,s,o){switch(r){case cUe:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case lUe:return!(e.byteLength!=t.byteLength||!s(new lie(e),new lie(t)));case Jje:case eUe:case iUe:return Nue(+e,+t);case tUe:return e.name==t.name&&e.message==t.message;case nUe:case sUe:return e==t+"";case rUe:var l=Xje;case aUe:var u=i&Qje;if(l||(l=pM),e.size!=t.size&&!u)return!1;var h=o.get(e);if(h)return h==t;i|=Zje,o.set(e,t);var d=Che(l(e),l(t),i,n,s,o);return o.delete(e),d;case oUe:if(pD)return pD.call(e)==pD.call(t)}return!1}function whe(e,t){for(var r=-1,i=t.length,n=e.length;++r<i;)e[n+r]=t[r];return e}function Ahe(e,t,r){var i=t(e);return jn(e)?i:Ehe(i,r(e))}function Rhe(e,t){for(var r=-1,i=e==null?0:e.length,n=0,s=[];++r<i;){var o=e[r];t(o,r,e)&&(s[n++]=o)}return s}function Dhe(){return[]}function Ihe(e,t){for(var r=-1,i=Array(e);++r<e;)i[r]=t(r);return i}function Nhe(e){return e!=null&&typeof e=="object"}function Mhe(e){return Tm(e)&&Lm(e)==bUe}function Phe(){return!1}function $he(e,t){var r=typeof e;return t=t??EUe,!!t&&(r=="number"||r!="symbol"&&AUe.test(e))&&e>-1&&e%1==0&&e<t}function Vhe(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=RUe}function Ghe(e){return Tm(e)&&mM(e.length)&&!!ei[Lm(e)]}function Whe(e){return function(t){return e(t)}}function qhe(e,t){var r=jn(e),i=!r&&dS(e),n=!r&&!i&&dv(e),s=!r&&!i&&!n&&gM(e),o=r||i||n||s,l=o?xUe(e.length,String):[],u=l.length;for(var h in e)(t||sHe.call(e,h))&&!(o&&(h=="length"||n&&(h=="offset"||h=="parent")||s&&(h=="buffer"||h=="byteLength"||h=="byteOffset")||Fhe(h,u)))&&l.push(h);return l}function jhe(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||lHe;return e===r}function Hhe(e,t){return function(r){return e(t(r))}}function Yhe(e){if(!Uhe(e))return hHe(e);var t=[];for(var r in Object(e))fHe.call(e,r)&&r!="constructor"&&t.push(r);return t}function Xhe(e){return e!=null&&mM(e.length)&&!Xue(e)}function Qhe(e){return fS(e)?oHe(e):Khe(e)}function Zhe(e){return dUe(e,yM,yUe)}function Jhe(e,t,r,i,n,s){var o=r&pHe,l=gie(e),u=l.length,h=gie(t),d=h.length;if(u!=d&&!o)return!1;for(var f=u;f--;){var p=l[f];if(!(o?p in t:gHe.call(t,p)))return!1}var m=s.get(e),g=s.get(t);if(m&&g)return m==t&&g==e;var x=!0;s.set(e,t),s.set(t,e);for(var b=o;++f<u;){p=l[f];var T=e[p],k=t[p];if(i)var C=o?i(k,T,p,t,e,s):i(T,k,p,e,t,s);if(!(C===void 0?T===k||n(T,k,r,i,s):C)){x=!1;break}b||(b=p=="constructor")}if(x&&!b){var S=e.constructor,w=t.constructor;S!=w&&"constructor"in e&&"constructor"in t&&!(typeof S=="function"&&S instanceof S&&typeof w=="function"&&w instanceof w)&&(x=!1)}return s.delete(e),s.delete(t),x}function ede(e,t,r,i,n,s){var o=jn(e),l=jn(t),u=o?vie:t6(e),h=l?vie:t6(t);u=u==Cie?Jk:u,h=h==Cie?Jk:h;var d=u==Jk,f=h==Jk,p=u==h;if(p&&dv(e)){if(!dv(t))return!1;o=!0,d=!1}if(p&&!d)return s||(s=new RC),o||gM(e)?Che(e,t,r,i,n,s):uUe(e,t,u,r,i,n,s);if(!(r&AHe)){var m=d&&Sie.call(e,"__wrapped__"),g=f&&Sie.call(t,"__wrapped__");if(m||g){var x=m?e.value():e,b=g?t.value():t;return s||(s=new RC),n(x,b,r,i,s)}}return p?(s||(s=new RC),yHe(e,t,r,i,n,s)):!1}function xM(e,t,r,i,n){return e===t?!0:e==null||t==null||!Tm(e)&&!Tm(t)?e!==e&&t!==t:LHe(e,t,r,i,xM,n)}function rde(e,t,r,i){var n=r.length,s=n,o=!i;if(e==null)return!s;for(e=Object(e);n--;){var l=r[n];if(o&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++n<s;){l=r[n];var u=l[0],h=e[u],d=l[1];if(o&&l[2]){if(h===void 0&&!(u in e))return!1}else{var f=new RC;if(i)var p=i(h,d,u,e,t,f);if(!(p===void 0?tde(d,h,DHe|IHe,i,f):p))return!1}}return!0}function ide(e){return e===e&&!fM(e)}function ade(e){for(var t=yM(e),r=t.length;r--;){var i=t[r],n=e[i];t[r]=[i,n,nde(n)]}return t}function sde(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}function lde(e){var t=MHe(e);return t.length==1&&t[0][2]?ode(t[0][0],t[0][1]):function(r){return r===e||NHe(r,e,t)}}function cde(e){return typeof e=="symbol"||Tm(e)&&Lm(e)==PHe}function ude(e,t){if(jn(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||pS(e)?!0:$He.test(e)||!BHe.test(e)||t!=null&&e in Object(t)}function mS(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(FHe);var r=y(function(){var i=arguments,n=t?t.apply(this,i):i[0],s=r.cache;if(s.has(n))return s.get(n);var o=e.apply(this,i);return r.cache=s.set(n,o)||s,o},"memoized");return r.cache=new(mS.Cache||hS),r}function hde(e){var t=VHe(e,function(i){return r.size===GHe&&r.clear(),i}),r=t.cache;return t}function TM(e){if(typeof e=="string")return e;if(jn(e))return Lue(e,TM)+"";if(pS(e))return wie?wie.call(e):"";var t=e+"";return t=="0"&&1/e==-HHe?"-0":t}function dde(e){return e==null?"":YHe(e)}function fde(e,t){return jn(e)?e:bM(e,t)?[e]:UHe(KHe(e))}function mde(e){if(typeof e=="string"||pS(e))return e;var t=e+"";return t=="0"&&1/e==-XHe?"-0":t}function gde(e,t){t=pde(t,e);for(var r=0,i=t.length;e!=null&&r<i;)e=e[gS(t[r++])];return r&&r==i?e:void 0}function xde(e,t,r){var i=e==null?void 0:yde(e,t);return i===void 0?r:i}function bde(e,t){return e!=null&&t in Object(e)}function Tde(e,t,r){t=pde(t,e);for(var i=-1,n=t.length,s=!1;++i<n;){var o=gS(t[i]);if(!(s=e!=null&&r(e,o)))break;e=e[o]}return s||++i!=n?s:(n=e==null?0:e.length,!!n&&mM(n)&&Fhe(o,n)&&(jn(e)||dS(e)))}function kde(e,t){return e!=null&&JHe(e,t,ZHe)}function Cde(e,t){return bM(e)&&nde(t)?ode(gS(e),t):function(r){var i=QHe(r,e);return i===void 0&&i===t?eYe(r,e):tde(t,i,tYe|rYe)}}function vde(e){return e}function Sde(e){return function(t){return t?.[e]}}function _de(e){return function(t){return yde(t,e)}}function wde(e){return bM(e)?nYe(gS(e)):aYe(e)}function Ede(e){return typeof e=="function"?e:e==null?kM:typeof e=="object"?jn(e)?iYe(e[0],e[1]):OHe(e):sYe(e)}function Ade(e){return function(t,r,i){for(var n=-1,s=Object(t),o=i(t),l=o.length;l--;){var u=o[e?l:++n];if(r(s[u],u,s)===!1)break}return t}}function Rde(e,t){return e&&cYe(e,t,yM)}function Lde(e,t){return function(r,i){if(r==null)return r;if(!fS(r))return e(r,i);for(var n=r.length,s=t?n:-1,o=Object(r);(t?s--:++s<n)&&i(o[s],s,o)!==!1;);return r}}function Dde(e,t){var r=-1,i=fS(e)?Array(e.length):[];return xS(e,function(n,s,o){i[++r]=t(n,s,o)}),i}function Ide(e,t){var r=jn(e)?Lue:fYe;return r(e,yS(t,3))}function Nde(e,t){var r=[];return xS(e,function(i,n,s){t(i,n,s)&&r.push(i)}),r}function Mde(e,t){var r=jn(e)?Lhe:pYe;return r(e,yS(t,3))}function Id(e,t,r){return`${e.name}_${t}_${r}`}function Fde(e){let t={decisionMap:{},decisionStates:[],ruleToStartState:new Map,ruleToStopState:new Map,states:[]};Vde(t,e);let r=e.length;for(let i=0;i<r;i++){let n=e[i],s=Lu(t,n,n);s!==void 0&&Qde(t,n,s)}return t}function Vde(e,t){let r=t.length;for(let i=0;i<r;i++){let n=t[i],s=Wi(e,n,void 0,{type:gYe}),o=Wi(e,n,void 0,{type:ax});s.stop=o,e.ruleToStartState.set(n,s),e.ruleToStopState.set(n,o)}}function _M(e,t,r){return r instanceof ti?bS(e,t,r.terminalType,r):r instanceof zn?Xde(e,t,r):r instanceof fa?jde(e,t,r):r instanceof dn?Ude(e,t,r):r instanceof gi?Gde(e,t,r):r instanceof da?Wde(e,t,r):r instanceof Ma?zde(e,t,r):r instanceof Oa?qde(e,t,r):Lu(e,t,r)}function Gde(e,t,r){let i=Wi(e,t,r,{type:Pde});Zl(e,i);let n=Zd(e,t,i,r,Lu(e,t,r));return EM(e,t,r,n)}function Wde(e,t,r){let i=Wi(e,t,r,{type:Pde});Zl(e,i);let n=Zd(e,t,i,r,Lu(e,t,r)),s=bS(e,t,r.separator,r);return EM(e,t,r,n,s)}function zde(e,t,r){let i=Wi(e,t,r,{type:Ode});Zl(e,i);let n=Zd(e,t,i,r,Lu(e,t,r));return wM(e,t,r,n)}function qde(e,t,r){let i=Wi(e,t,r,{type:Ode});Zl(e,i);let n=Zd(e,t,i,r,Lu(e,t,r)),s=bS(e,t,r.separator,r);return wM(e,t,r,n,s)}function jde(e,t,r){let i=Wi(e,t,r,{type:Su});Zl(e,i);let n=$l(r.definition,o=>_M(e,t,o));return Zd(e,t,i,r,...n)}function Ude(e,t,r){let i=Wi(e,t,r,{type:Su});Zl(e,i);let n=Zd(e,t,i,r,Lu(e,t,r));return Hde(e,t,r,n)}function Lu(e,t,r){let i=mYe($l(r.definition,n=>_M(e,t,n)),n=>n!==void 0);return i.length===1?i[0]:i.length===0?void 0:Kde(e,i)}function wM(e,t,r,i,n){let s=i.left,o=i.right,l=Wi(e,t,r,{type:TYe});Zl(e,l);let u=Wi(e,t,r,{type:Bde});return s.loopback=l,u.loopback=l,e.decisionMap[Id(t,n?"RepetitionMandatoryWithSeparator":"RepetitionMandatory",r.idx)]=l,Ci(o,l),n===void 0?(Ci(l,s),Ci(l,u)):(Ci(l,u),Ci(l,n.left),Ci(n.right,s)),{left:s,right:u}}function EM(e,t,r,i,n){let s=i.left,o=i.right,l=Wi(e,t,r,{type:bYe});Zl(e,l);let u=Wi(e,t,r,{type:Bde}),h=Wi(e,t,r,{type:xYe});return l.loopback=h,u.loopback=h,Ci(l,s),Ci(l,u),Ci(o,h),n!==void 0?(Ci(h,u),Ci(h,n.left),Ci(n.right,s)):Ci(h,l),e.decisionMap[Id(t,n?"RepetitionWithSeparator":"Repetition",r.idx)]=l,{left:l,right:u}}function Hde(e,t,r,i){let n=i.left,s=i.right;return Ci(n,s),e.decisionMap[Id(t,"Option",r.idx)]=n,i}function Zl(e,t){return e.decisionStates.push(t),t.decision=e.decisionStates.length-1,t.decision}function Zd(e,t,r,i,...n){let s=Wi(e,t,i,{type:yYe,start:r});r.end=s;for(let l of n)l!==void 0?(Ci(r,l.left),Ci(l.right,s)):Ci(r,s);let o={left:r,right:s};return e.decisionMap[Id(t,Yde(i),i.idx)]=r,o}function Yde(e){if(e instanceof fa)return"Alternation";if(e instanceof dn)return"Option";if(e instanceof gi)return"Repetition";if(e instanceof da)return"RepetitionWithSeparator";if(e instanceof Ma)return"RepetitionMandatory";if(e instanceof Oa)return"RepetitionMandatoryWithSeparator";throw new Error("Invalid production type encountered")}function Kde(e,t){let r=t.length;for(let s=0;s<r-1;s++){let o=t[s],l;o.left.transitions.length===1&&(l=o.left.transitions[0]);let u=l instanceof SM,h=l,d=t[s+1].left;o.left.type===Su&&o.right.type===Su&&l!==void 0&&(u&&h.followState===o.right||l.target===o.right)?(u?h.followState=d:l.target=d,Zde(e,o.right)):Ci(o.right,d)}let i=t[0],n=t[r-1];return{left:i.left,right:n.right}}function bS(e,t,r,i){let n=Wi(e,t,i,{type:Su}),s=Wi(e,t,i,{type:Su});return TS(n,new vM(s,r)),{left:n,right:s}}function Xde(e,t,r){let i=r.referencedRule,n=e.ruleToStartState.get(i),s=Wi(e,t,r,{type:Su}),o=Wi(e,t,r,{type:Su}),l=new SM(n,i,o);return TS(s,l),{left:s,right:o}}function Qde(e,t,r){let i=e.ruleToStartState.get(t);Ci(i,r.left);let n=e.ruleToStopState.get(t);return Ci(r.right,n),{left:i,right:n}}function Ci(e,t){let r=new $de(t);TS(e,r)}function Wi(e,t,r,i){let n=Object.assign({atn:e,production:r,epsilonOnlyTransitions:!1,rule:t,transitions:[],nextTokenWithinRule:[],stateNumber:e.states.length},i);return e.states.push(n),n}function TS(e,t){e.transitions.length===0&&(e.epsilonOnlyTransitions=t.isEpsilon()),e.transitions.push(t)}function Zde(e,t){e.states.splice(e.states.indexOf(t),1)}function AM(e,t=!0){return`${t?`a${e.alt}`:""}s${e.state.stateNumber}:${e.stack.map(r=>r.stateNumber.toString()).join("_")}`}function Jde(e,t,r){for(var i=-1,n=e.length;++i<n;){var s=e[i],o=t(s);if(o!=null&&(l===void 0?o===o&&!pS(o):r(o,l)))var l=o,u=s}return u}function efe(e,t){return e<t}function tfe(e){return e&&e.length?kYe(e,kM,CYe):void 0}function rfe(e){return jn(e)||dS(e)||!!(Eie&&e&&e[Eie])}function RM(e,t,r,i,n){var s=-1,o=e.length;for(r||(r=SYe),n||(n=[]);++s<o;){var l=e[s];t>0&&r(l)?t>1?RM(l,t-1,r,i,n):Ehe(n,l):i||(n[n.length]=l)}return n}function nfe(e,t){return ife($l(e,t),1)}function afe(e,t,r,i){for(var n=e.length,s=r+(i?1:-1);i?s--:++s<n;)if(t(e[s],s,e))return s;return-1}function sfe(e){return e!==e}function ofe(e,t,r){for(var i=r-1,n=e.length;++i<n;)if(e[i]===t)return i;return-1}function lfe(e,t,r){return t===t?AYe(e,t,r):wYe(e,EYe,r)}function cfe(e,t){var r=e==null?0:e.length;return!!r&&RYe(e,t,0)>-1}function ufe(e,t,r){for(var i=-1,n=e==null?0:e.length;++i<n;)if(r(t,e[i]))return!0;return!1}function hfe(){}function dfe(e,t,r){var i=-1,n=LYe,s=e.length,o=!0,l=[],u=l;if(r)o=!1,n=DYe;else if(s>=PYe){var h=t?null:OYe(e);if(h)return pM(h);o=!1,n=The,u=new yhe}else u=t?[]:l;e:for(;++i<s;){var d=e[i],f=t?t(d):d;if(d=r||d!==0?d:0,o&&f===f){for(var p=u.length;p--;)if(u[p]===f)continue e;t&&u.push(f),l.push(d)}else n(u,f,r)||(u!==l&&u.push(f),l.push(d))}return l}function ffe(e,t){return e&&e.length?BYe(e,yS(t,2)):[]}function pfe(e){var t=e==null?0:e.length;return t?ife(e,1):[]}function mfe(e,t){for(var r=-1,i=e==null?0:e.length;++r<i&&t(e[r],r,e)!==!1;);return e}function gfe(e){return typeof e=="function"?e:kM}function yfe(e,t){var r=jn(e)?VYe:xS;return r(e,GYe(t))}function xfe(e){if(e==null)return!0;if(fS(e)&&(jn(e)||typeof e=="string"||typeof e.splice=="function"||dv(e)||gM(e)||dS(e)))return!e.length;var t=t6(e);if(t==WYe||t==zYe)return!e.size;if(Uhe(e))return!Khe(e).length;for(var r in e)if(jYe.call(e,r))return!1;return!0}function bfe(e,t,r,i){var n=-1,s=e==null?0:e.length;for(i&&s&&(r=e[++n]);++n<s;)r=t(r,e[n],n,e);return r}function Tfe(e,t,r,i,n){return n(e,function(s,o,l){r=i?(i=!1,s):t(r,s,o,l)}),r}function kfe(e,t,r){var i=jn(e)?HYe:YYe,n=arguments.length<3;return i(e,yS(t,4),r,n,xS)}function Cfe(e,t){let r={};return i=>{let n=i.toString(),s=r[n];return s!==void 0||(s={atnStartState:e,decision:t,states:{}},r[n]=s),s}}function i6(e,t=!0){let r=new Set;for(let i of e){let n=new Set;for(let s of i){if(s===void 0){if(t)break;return!1}let o=[s.tokenTypeIdx].concat(s.categoryMatches);for(let l of o)if(r.has(l)){if(!n.has(l))return!1}else r.add(l),n.add(l)}}return!0}function Sfe(e){let t=e.decisionStates.length,r=Array(t);for(let i=0;i<t;i++)r[i]=Cfe(e.decisionStates[i],i);return r}function LC(e,t,r,i){let n=e[t](r),s=n.start;if(s===void 0){let l=Ofe(n.atnStartState);s=DM(n,LM(l)),n.start=s}return _fe.apply(this,[n,s,r,i])}function _fe(e,t,r,i){let n=t,s=1,o=[],l=this.LA(s++);for(;;){let u=Dfe(n,l);if(u===void 0&&(u=wfe.apply(this,[e,n,l,s,r,i])),u===fv)return Lfe(o,n,l);if(u.isAcceptState===!0)return u.prediction;n=u,o.push(l),l=this.LA(s++)}}function wfe(e,t,r,i,n,s){let o=Ife(t.configs,r,n);if(o.size===0)return n6(e,t,r,fv),fv;let l=LM(o),u=Mfe(o,n);if(u!==void 0)l.isAcceptState=!0,l.prediction=u,l.configs.uniqueAlt=u;else if(Ffe(o)){let h=vYe(o.alts);l.isAcceptState=!0,l.prediction=h,l.configs.uniqueAlt=h,Efe.apply(this,[e,i,o.alts,s])}return l=n6(e,t,r,l),l}function Efe(e,t,r,i){let n=[];for(let h=1;h<=t;h++)n.push(this.LA(h).tokenType);let s=e.atnStartState,o=s.rule,l=s.production,u=Afe({topLevelRule:o,ambiguityIndices:r,production:l,prefixPath:n});i(u)}function Afe(e){let t=$l(e.prefixPath,n=>Ed(n)).join(", "),r=e.production.idx===0?"":e.production.idx,i=`Ambiguous Alternatives Detected: <${e.ambiguityIndices.join(", ")}> in <${Rfe(e.production)}${r}> inside <${e.topLevelRule.name}> Rule,
<${t}> may appears as a prefix path in all these alternatives.
`;return i=i+`See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#AMBIGUOUS_ALTERNATIVES
For Further details.`,i}function Rfe(e){if(e instanceof zn)return"SUBRULE";if(e instanceof dn)return"OPTION";if(e instanceof fa)return"OR";if(e instanceof Ma)return"AT_LEAST_ONE";if(e instanceof Oa)return"AT_LEAST_ONE_SEP";if(e instanceof da)return"MANY_SEP";if(e instanceof gi)return"MANY";if(e instanceof ti)return"CONSUME";throw Error("non exhaustive match")}function Lfe(e,t,r){let i=_Ye(t.configs.elements,s=>s.state.transitions),n=$Ye(i.filter(s=>s instanceof vM).map(s=>s.tokenType),s=>s.tokenTypeIdx);return{actualToken:r,possibleTokenTypes:n,tokenPath:e}}function Dfe(e,t){return e.edges[t.tokenTypeIdx]}function Ife(e,t,r){let i=new r6,n=[];for(let o of e.elements){if(r.is(o.alt)===!1)continue;if(o.state.type===ax){n.push(o);continue}let l=o.state.transitions.length;for(let u=0;u<l;u++){let h=o.state.transitions[u],d=Nfe(h,t);d!==void 0&&i.add({state:d,alt:o.alt,stack:o.stack})}}let s;if(n.length===0&&i.size===1&&(s=i),s===void 0){s=new r6;for(let o of i.elements)B1(o,s)}if(n.length>0&&!Bfe(s))for(let o of n)s.add(o);return s}function Nfe(e,t){if(e instanceof vM&&iM(t,e.tokenType))return e.target}function Mfe(e,t){let r;for(let i of e.elements)if(t.is(i.alt)===!0){if(r===void 0)r=i.alt;else if(r!==i.alt)return}return r}function LM(e){return{configs:e,edges:{},isAcceptState:!1,prediction:-1}}function n6(e,t,r,i){return i=DM(e,i),t.edges[r.tokenTypeIdx]=i,i}function DM(e,t){if(t===fv)return t;let r=t.configs.key,i=e.states[r];return i!==void 0?i:(t.configs.finalize(),e.states[r]=t,t)}function Ofe(e){let t=new r6,r=e.transitions.length;for(let i=0;i<r;i++){let s={state:e.transitions[i].target,alt:i,stack:[]};B1(s,t)}return t}function B1(e,t){let r=e.state;if(r.type===ax){if(e.stack.length>0){let n=[...e.stack],o={state:n.pop(),alt:e.alt,stack:n};B1(o,t)}else t.add(e);return}r.epsilonOnlyTransitions||t.add(e);let i=r.transitions.length;for(let n=0;n<i;n++){let s=r.transitions[n],o=Pfe(e,s);o!==void 0&&B1(o,t)}}function Pfe(e,t){if(t instanceof $de)return{state:t.target,alt:e.alt,stack:e.stack};if(t instanceof SM){let r=[...e.stack,t.followState];return{state:t.target,alt:e.alt,stack:r}}}function Bfe(e){for(let t of e.elements)if(t.state.type===ax)return!0;return!1}function $fe(e){for(let t of e.elements)if(t.state.type!==ax)return!1;return!0}function Ffe(e){if($fe(e))return!0;let t=Vfe(e.elements);return Gfe(t)&&!Wfe(t)}function Vfe(e){let t=new Map;for(let r of e){let i=AM(r,!1),n=t.get(i);n===void 0&&(n={},t.set(i,n)),n[r.alt]=!0}return t}function Gfe(e){for(let t of Array.from(e.values()))if(Object.keys(t).length>1)return!0;return!1}function Wfe(e){for(let t of Array.from(e.values()))if(Object.keys(t).length===1)return!0;return!1}function DC(e){return e.$type===mv}function CS(e,t,r){return Xfe({parser:t,tokens:r,ruleNames:new Map},e),t}function Xfe(e,t){let r=Bv(t,!1),i=Br(t.rules).filter(Wn).filter(s=>r.has(s));for(let s of i){let o={...e,consume:1,optional:1,subrule:1,many:1,or:1};e.parser.rule(s,_u(o,s.definition))}let n=Br(t.rules).filter(pm).filter(s=>r.has(s));for(let s of n)e.parser.rule(s,Qfe(e,s))}function Qfe(e,t){let r=t.call.rule.ref;if(!r)throw new Error("Could not resolve reference to infix operator rule: "+t.call.rule.$refText);if(ds(r))throw new Error("Cannot use terminal rule in infix expression");let i=t.operators.precedences.flatMap(m=>m.operators),n={$type:"Group",elements:[]},s={$container:n,$type:"Assignment",feature:"parts",operator:"+=",terminal:t.call},o={$container:n,$type:"Group",elements:[],cardinality:"*"};n.elements.push(s,o);let u={$container:o,$type:"Assignment",feature:"operators",operator:"+=",terminal:{$type:"Alternatives",elements:i}},h={...s,$container:o};o.elements.push(u,h);let f=i.map(m=>e.tokens[m.value]).map((m,g)=>({ALT:y(()=>e.parser.consume(g,m,u),"ALT")})),p;return m=>{p??(p=vS(e,r)),e.parser.subrule(0,p,!1,s,m),e.parser.many(0,{DEF:y(()=>{e.parser.alternatives(0,f),e.parser.subrule(1,p,!1,h,m)},"DEF")})}}function _u(e,t,r=!1){let i;if(Gl(t))i=npe(e,t);else if(ku(t))i=Zfe(e,t);else if(Vl(t))i=_u(e,t.terminal);else if(Bd(t))i=PM(e,t);else if(Wl(t))i=Jfe(e,t);else if(Av(t))i=tpe(e,t);else if(Iv(t))i=rpe(e,t);else if($d(t))i=ipe(e,t);else if(F6(t)){let n=e.consume++;i=y(()=>e.parser.consume(n,vu,t),"method")}else throw new Mv(t.$cstNode,`Unexpected element type: ${t.$type}`);return BM(e,r?void 0:$1(t),i,t.cardinality)}function Zfe(e,t){let r=Rd(t);return()=>e.parser.action(r,t)}function Jfe(e,t){let r=t.rule.ref;if(Pd(r)){let i=e.subrule++,n=Wn(r)&&r.fragment,s=t.arguments.length>0?epe(r,t.arguments):()=>({}),o;return l=>{o??(o=vS(e,r)),e.parser.subrule(i,o,n,t,s(l))}}else if(ds(r)){let i=e.consume++,n=gv(e,r.name);return()=>e.parser.consume(i,n,t)}else if(r)Eu(r);else throw new Mv(t.$cstNode,`Undefined rule: ${t.rule.$refText}`)}function epe(e,t){if(t.some(i=>i.calledByName)){let i=t.map(n=>({parameterName:n.parameter?.ref?.name,predicate:Us(n.value)}));return n=>{let s={};for(let{parameterName:o,predicate:l}of i)o&&(s[o]=l(n));return s}}else{let i=t.map(n=>Us(n.value));return n=>{let s={};for(let o=0;o<i.length;o++)if(o<e.parameters.length){let l=e.parameters[o].name,u=i[o];s[l]=u(n)}return s}}}function Us(e){if($6(e)){let t=Us(e.left),r=Us(e.right);return i=>t(i)||r(i)}else if(B6(e)){let t=Us(e.left),r=Us(e.right);return i=>t(i)&&r(i)}else if(W6(e)){let t=Us(e.value);return r=>!t(r)}else if(z6(e)){let t=e.parameter.ref.name;return r=>r!==void 0&&r[t]===!0}else if(O6(e)){let t=!!e.true;return()=>t}Eu(e)}function tpe(e,t){if(t.elements.length===1)return _u(e,t.elements[0]);{let r=[];for(let n of t.elements){let s={ALT:_u(e,n,!0)},o=$1(n);o&&(s.GATE=Us(o)),r.push(s)}let i=e.or++;return n=>e.parser.alternatives(i,r.map(s=>{let o={ALT:y(()=>s.ALT(n),"ALT")},l=s.GATE;return l&&(o.GATE=()=>l(n)),o}))}}function rpe(e,t){if(t.elements.length===1)return _u(e,t.elements[0]);let r=[];for(let l of t.elements){let u={ALT:_u(e,l,!0)},h=$1(l);h&&(u.GATE=Us(h)),r.push(u)}let i=e.or++,n=y((l,u)=>{let h=u.getRuleStack().join("-");return`uGroup_${l}_${h}`},"idFunc"),s=y(l=>e.parser.alternatives(i,r.map((u,h)=>{let d={ALT:y(()=>!0,"ALT")},f=e.parser;d.ALT=()=>{if(u.ALT(l),!f.isRecording()){let m=n(i,f);f.unorderedGroups.get(m)||f.unorderedGroups.set(m,[]);let g=f.unorderedGroups.get(m);typeof g?.[h]>"u"&&(g[h]=!0)}};let p=u.GATE;return p?d.GATE=()=>p(l):d.GATE=()=>!f.unorderedGroups.get(n(i,f))?.[h],d})),"alternatives"),o=BM(e,$1(t),s,"*");return l=>{o(l),e.parser.isRecording()||e.parser.unorderedGroups.delete(n(i,e.parser))}}function ipe(e,t){let r=t.elements.map(i=>_u(e,i));return i=>r.forEach(n=>n(i))}function $1(e){if($d(e))return e.guardCondition}function PM(e,t,r=t.terminal){if(r)if(Wl(r)&&Wn(r.rule.ref)){let i=r.rule.ref,n=e.subrule++,s;return o=>{s??(s=vS(e,i)),e.parser.subrule(n,s,!1,t,o)}}else if(Wl(r)&&ds(r.rule.ref)){let i=e.consume++,n=gv(e,r.rule.ref.name);return()=>e.parser.consume(i,n,t)}else if(Gl(r)){let i=e.consume++,n=gv(e,r.value);return()=>e.parser.consume(i,n,t)}else throw new Error("Could not build cross reference parser");else{if(!t.type.ref)throw new Error("Could not resolve reference to type: "+t.type.$refText);let n=Gv(t.type.ref)?.terminal;if(!n)throw new Error("Could not find name assignment for type: "+Rd(t.type.ref));return PM(e,t,n)}}function npe(e,t){let r=e.consume++,i=e.tokens[t.value];if(!i)throw new Error("Could not find token for keyword: "+t.value);return()=>e.parser.consume(r,i,t)}function BM(e,t,r,i){let n=t&&Us(t);if(!i)if(n){let s=e.or++;return o=>e.parser.alternatives(s,[{ALT:y(()=>r(o),"ALT"),GATE:y(()=>n(o),"GATE")},{ALT:QI(),GATE:y(()=>!n(o),"GATE")}])}else return r;if(i==="*"){let s=e.many++;return o=>e.parser.many(s,{DEF:y(()=>r(o),"DEF"),GATE:n?()=>n(o):void 0})}else if(i==="+"){let s=e.many++;if(n){let o=e.or++;return l=>e.parser.alternatives(o,[{ALT:y(()=>e.parser.atLeastOne(s,{DEF:y(()=>r(l),"DEF")}),"ALT"),GATE:y(()=>n(l),"GATE")},{ALT:QI(),GATE:y(()=>!n(l),"GATE")}])}else return o=>e.parser.atLeastOne(s,{DEF:y(()=>r(o),"DEF")})}else if(i==="?"){let s=e.optional++;return o=>e.parser.optional(s,{DEF:y(()=>r(o),"DEF"),GATE:n?()=>n(o):void 0})}else Eu(i)}function vS(e,t){let r=ape(e,t),i=e.parser.getRule(r);if(!i)throw new Error(`Rule "${r}" not found."`);return i}function ape(e,t){if(Pd(t))return t.name;if(e.ruleNames.has(t))return e.ruleNames.get(t);{let r=t,i=r.$container,n=t.$type;for(;!Wn(i);)($d(i)||Av(i)||Iv(i))&&(n=i.elements.indexOf(r).toString()+":"+n),r=i,i=i.$container;return n=i.name+":"+n,e.ruleNames.set(t,n),n}}function gv(e,t){let r=e.tokens[t];if(!r)throw new Error(`Token "${t}" not found."`);return r}function $M(e){let t=e.Grammar,r=e.parser.Lexer,i=new Yfe(e);return CS(t,i,r.definition),i.finalize(),i}function FM(e){let t=VM(e);return t.finalize(),t}function VM(e){let t=e.Grammar,r=e.parser.Lexer,i=new Ufe(e);return CS(t,i,r.definition)}function _S(){return new Promise(e=>{typeof setImmediate>"u"?setTimeout(e,0):setImmediate(e)})}function wS(){return IC=performance.now(),new Ur.CancellationTokenSource}function WM(e){spe=e}function Jd(e){return e===jo}async function tn(e){if(e===Ur.CancellationToken.None)return;let t=performance.now();if(t-IC>=spe&&(IC=t,await _S(),IC=performance.now()),e.isCancellationRequested)throw jo}function xv(e,t){if(e.length<=1)return e;let r=e.length/2|0,i=e.slice(0,r),n=e.slice(r);xv(i,t),xv(n,t);let s=0,o=0,l=0;for(;s<i.length&&o<n.length;)t(i[s],n[o])<=0?e[l++]=i[s++]:e[l++]=n[o++];for(;s<i.length;)e[l++]=i[s++];for(;o<n.length;)e[l++]=n[o++];return e}function s6(e,t,r=0){let i=t?[r]:[];for(let n=0;n<e.length;n++){let s=e.charCodeAt(n);zM(s)&&(s===13&&n+1<e.length&&e.charCodeAt(n+1)===10&&n++,i.push(r+n+1))}return i}function zM(e){return e===13||e===10}function qM(e){let t=e.start,r=e.end;return t.line>r.line||t.line===r.line&&t.character>r.character?{start:r,end:t}:e}function ope(e){let t=qM(e.range);return t!==e.range?{newText:e.newText,range:t}:e}function UM(e){return typeof e.name=="string"}function KM(e){return typeof e.$comment=="string"}function l6(e){return typeof e=="object"&&!!e&&("$ref"in e||"$error"in e)}function _d(e){return{code:e}}function XM(e){if(e.range)return e.range;let t;return typeof e.property=="string"?t=$v(e.node.$cstNode,e.property,e.index):typeof e.keyword=="string"&&(t=bN(e.node.$cstNode,e.keyword,e.index)),t??(t=e.node.$cstNode),t?t.range:{start:{line:0,character:0},end:{line:0,character:0}}}function b1(e){switch(e){case"error":return 1;case"warning":return 2;case"info":return 3;case"hint":return 4;default:throw new Error("Invalid diagnostic severity: "+e)}}function QM(e){switch(e){case"error":return _d(ls.LexingError);case"warning":return _d(ls.LexingWarning);case"info":return _d(ls.LexingInfo);case"hint":return _d(ls.LexingHint);default:throw new Error("Invalid diagnostic severity: "+e)}}function LS(e){return Array.isArray(e)&&(e.length===0||"name"in e[0])}function DS(e){return e&&"modes"in e&&"defaultMode"in e}function kv(e){return!LS(e)&&!DS(e)}function eO(e,t,r){let i,n;typeof e=="string"?(n=t,i=r):(n=e.range.start,i=t),n||(n=Er.create(0,0));let s=rO(e),o=IS(i),l=Dpe({lines:s,position:n,options:o});return Mpe({index:0,tokens:l,position:n})}function tO(e,t){let r=IS(t),i=rO(e);if(i.length===0)return!1;let n=i[0],s=i[i.length-1],o=r.start,l=r.end;return!!o?.exec(n)&&!!l?.exec(s)}function rO(e){let t="";return typeof e=="string"?t=e:t=e.text,t.split(Ine)}function Dpe(e){let t=[],r=e.position.line,i=e.position.character;for(let n=0;n<e.lines.length;n++){let s=n===0,o=n===e.lines.length-1,l=e.lines[n],u=0;if(s&&e.options.start){let d=e.options.start?.exec(l);d&&(u=d.index+d[0].length)}else{let d=e.options.line?.exec(l);d&&(u=d.index+d[0].length)}if(o){let d=e.options.end?.exec(l);d&&(l=l.substring(0,d.index))}if(l=l.substring(0,Npe(l)),Cv(l,u)>=l.length){if(t.length>0){let d=Er.create(r,i);t.push({type:"break",content:"",range:br.create(d,d)})}}else{Iie.lastIndex=u;let d=Iie.exec(l);if(d){let f=d[0],p=d[1],m=Er.create(r,i+u),g=Er.create(r,i+u+f.length);t.push({type:"tag",content:p,range:br.create(m,g)}),u+=f.length,u=Cv(l,u)}if(u<l.length){let f=l.substring(u),p=Array.from(f.matchAll(tKe));t.push(...Ipe(p,f,r,i+u))}}r++,i=0}return t.length>0&&t[t.length-1].type==="break"?t.slice(0,-1):t}function Ipe(e,t,r,i){let n=[];if(e.length===0){let s=Er.create(r,i),o=Er.create(r,i+t.length);n.push({type:"text",content:t,range:br.create(s,o)})}else{let s=0;for(let l of e){let u=l.index,h=t.substring(s,u);h.length>0&&n.push({type:"text",content:t.substring(s,u),range:br.create(Er.create(r,s+i),Er.create(r,u+i))});let d=h.length+1,f=l[1];if(n.push({type:"inline-tag",content:f,range:br.create(Er.create(r,s+d+i),Er.create(r,s+d+f.length+i))}),d+=f.length,l.length===4){d+=l[2].length;let p=l[3];n.push({type:"text",content:p,range:br.create(Er.create(r,s+d+i),Er.create(r,s+d+p.length+i))})}else n.push({type:"text",content:"",range:br.create(Er.create(r,s+d+i),Er.create(r,s+d+i))});s=u+l[0].length}let o=t.substring(s);o.length>0&&n.push({type:"text",content:o,range:br.create(Er.create(r,s+i),Er.create(r,s+i+o.length))})}return n}function Cv(e,t){let r=e.substring(t).match(rKe);return r?t+r.index:e.length}function Npe(e){let t=e.match(iKe);if(t&&typeof t.index=="number")return t.index}function Mpe(e){let t=Er.create(e.position.line,e.position.character);if(e.tokens.length===0)return new Nie([],br.create(t,t));let r=[];for(;e.index<e.tokens.length;){let s=Ope(e,r[r.length-1]);s&&r.push(s)}let i=r[0]?.range.start??t,n=r[r.length-1]?.range.end??t;return new Nie(r,br.create(i,n))}function Ope(e,t){let r=e.tokens[e.index];if(r.type==="tag")return nO(e,!1);if(r.type==="text"||r.type==="inline-tag")return iO(e);Ppe(r,t),e.index++}function Ppe(e,t){if(t){let r=new Vpe("",e.range);"inlines"in t?t.inlines.push(r):t.content.inlines.push(r)}}function iO(e){let t=e.tokens[e.index],r=t,i=t,n=[];for(;t&&t.type!=="break"&&t.type!=="tag";)n.push(Bpe(e)),i=t,t=e.tokens[e.index];return new c6(n,br.create(r.range.start,i.range.end))}function Bpe(e){return e.tokens[e.index].type==="inline-tag"?nO(e,!0):aO(e)}function nO(e,t){let r=e.tokens[e.index++],i=r.content.substring(1);if(e.tokens[e.index]?.type==="text")if(t){let s=aO(e);return new yD(i,new c6([s],s.range),t,br.create(r.range.start,s.range.end))}else{let s=iO(e);return new yD(i,s,t,br.create(r.range.start,s.range.end))}else{let s=r.range;return new yD(i,new c6([],s),t,s)}}function aO(e){let t=e.tokens[e.index++];return new Vpe(t.content,t.range)}function IS(e){if(!e)return IS({start:"/**",end:"*/",line:"*"});let{start:t,end:r,line:i}=e;return{start:NC(t,!0),end:NC(r,!1),line:NC(i,!0)}}function NC(e,t){if(typeof e=="string"||typeof e=="object"){let r=typeof e=="string"?Sm(e):e.source;return t?new RegExp(`^\\s*${r}`):new RegExp(`\\s*${r}\\s*$`)}else return e}function $pe(e,t,r){if(e==="linkplain"||e==="linkcode"||e==="link"){let i=t.indexOf(" "),n=t;if(i>0){let o=Cv(t,i);n=t.substring(o),t=t.substring(0,i)}return(e==="linkcode"||e==="link"&&r.link==="code")&&(n=`\`${n}\``),r.renderLink?.(t,n)??Fpe(t,n)}}function Fpe(e,t){try{return La.parse(e,!0),`[${t}](${e})`}catch{return e}}function u6(e){return e.endsWith(`
`)?`
`:`
`}function ci(e){return{documentation:{CommentProvider:y(t=>new Wpe(t),"CommentProvider"),DocumentationProvider:y(t=>new Gpe(t),"DocumentationProvider")},parser:{AsyncParser:y(t=>new zpe(t),"AsyncParser"),GrammarConfig:y(t=>EN(t),"GrammarConfig"),LangiumParser:y(t=>FM(t),"LangiumParser"),CompletionParser:y(t=>$M(t),"CompletionParser"),ValueConverter:y(()=>new GM,"ValueConverter"),TokenBuilder:y(()=>new SS,"TokenBuilder"),Lexer:y(t=>new JM(t),"Lexer"),ParserErrorMessageProvider:y(()=>new OM,"ParserErrorMessageProvider"),LexerErrorMessageProvider:y(()=>new Lpe,"LexerErrorMessageProvider")},workspace:{AstNodeLocator:y(()=>new _pe,"AstNodeLocator"),AstNodeDescriptionProvider:y(t=>new vpe(t),"AstNodeDescriptionProvider"),ReferenceDescriptionProvider:y(t=>new Spe(t),"ReferenceDescriptionProvider")},references:{Linker:y(t=>new hpe(t),"Linker"),NameProvider:y(()=>new dpe,"NameProvider"),ScopeProvider:y(t=>new ype(t),"ScopeProvider"),ScopeComputation:y(t=>new ppe(t),"ScopeComputation"),References:y(t=>new fpe(t),"References")},serializer:{Hydrator:y(t=>new jpe(t),"Hydrator"),JsonSerializer:y(t=>new xpe(t),"JsonSerializer")},validation:{DocumentValidator:y(t=>new Cpe(t),"DocumentValidator"),ValidationRegistry:y(t=>new Tpe(t),"ValidationRegistry")},shared:y(()=>e.shared,"shared")}}function ui(e){return{ServiceRegistry:y(t=>new bpe(t),"ServiceRegistry"),workspace:{LangiumDocuments:y(t=>new upe(t),"LangiumDocuments"),LangiumDocumentFactory:y(t=>new cpe(t),"LangiumDocumentFactory"),DocumentBuilder:y(t=>new Epe(t),"DocumentBuilder"),IndexManager:y(t=>new Ape(t),"IndexManager"),WorkspaceManager:y(t=>new Rpe(t),"WorkspaceManager"),FileSystemProvider:y(t=>e.fileSystemProvider(t),"FileSystemProvider"),WorkspaceLock:y(()=>new qpe,"WorkspaceLock"),ConfigurationProvider:y(t=>new wpe(t),"ConfigurationProvider")},profilers:{}}}function Tr(e,t,r,i,n,s,o,l,u){let h=[e,t,r,i,n,s,o,l,u].reduce(km,{});return oO(h)}function sO(e){if(e&&e[Upe])for(let t of Object.values(e))sO(t);return e}function oO(e,t){let r=new Proxy({},{deleteProperty:y(()=>!1,"deleteProperty"),set:y(()=>{throw new Error("Cannot set property on injected service container")},"set"),get:y((i,n)=>n===Upe?!0:d6(i,n,e,t||r),"get"),getOwnPropertyDescriptor:y((i,n)=>(d6(i,n,e,t||r),Object.getOwnPropertyDescriptor(i,n)),"getOwnPropertyDescriptor"),has:y((i,n)=>n in e,"has"),ownKeys:y(()=>[...Object.getOwnPropertyNames(e)],"ownKeys")});return r}function d6(e,t,r,i){if(t in e){if(e[t]instanceof Error)throw new Error("Construction failure. Please make sure that your dependencies are constructable. Cause: "+e[t]);if(e[t]===Mie)throw new Error('Cycle detected. Please make "'+String(t)+'" lazy. Visit https://langium.org/docs/reference/configuration-services/#resolving-cyclic-dependencies');return e[t]}else if(t in r){let n=r[t];e[t]=Mie;try{e[t]=typeof n=="function"?n(i):oO(n,i)}catch(s){throw e[t]=s instanceof Error?s:void 0,s}return e[t]}else return}function km(e,t){if(t){for(let[r,i]of Object.entries(t))if(i!=null)if(typeof i=="object"){let n=e[r];typeof n=="object"&&n!==null?e[r]=km(n,i):e[r]=km({},i)}else e[r]=i}return e}function Kpe(){let e=Tr(ui(xi),lKe),t=Tr(ci({shared:e}),oKe);return e.ServiceRegistry.register(t),t}function Pa(e){let t=Kpe(),r=t.serializer.JsonSerializer.deserialize(e);return t.shared.workspace.LangiumDocumentFactory.fromModel(r,La.parse(`memory:/${r.name??"grammar"}.langium`)),r}function Qpe(e){return Ba.isInstance(e,Go.$type)}function Zpe(e){return Ba.isInstance(e,T1.$type)}function Jpe(e){return Ba.isInstance(e,xd.$type)}function eme(e){return e==="rmo"||e==="readmodel"||e==="ui"||e==="cmd"||e==="command"||e==="evt"||e==="event"||e==="pcr"||e==="processor"}function NS(e){return Ba.isInstance(e,Ol.$type)}function tme(e){return Ba.isInstance(e,bu.$type)}function rme(e){return Ba.isInstance(e,am.$type)}function ime(e){return Ba.isInstance(e,bd.$type)}function nme(e){return Ba.isInstance(e,Td.$type)}function ame(e){return Ba.isInstance(e,kd.$type)}function sme(e){return Ba.isInstance(e,Tu.$type)}function ome(e){return Ba.isInstance(e,k1.$type)}function lme(e){return Ba.isInstance(e,Cd.$type)}function cme(e){return Ba.isInstance(e,en.$type)}var H7e,F1,Y7e,S6,K7e,X7e,y,Q7e,nr,wu,OC,vv,_6,w6,Sv,RD,fC,LD,H0,Er,br,Y0,DD,pC,ID,ND,MD,OD,mC,PD,BD,$D,K0,Zh,$o,Jh,un,Nl,X0,qp,jp,Up,gC,$0,lD,Kie,FD,VD,Q0,GD,yC,Hp,WD,zD,qD,jD,UD,HD,YD,KD,Z0,XD,QD,ZD,JD,eI,tI,rI,iI,nI,aI,sI,J0,oI,lI,cI,uI,hI,dI,fI,pI,mI,gI,yI,xI,bI,xC,bC,TI,kI,CI,vI,SI,_I,wI,EI,Xie,AI,cre,ve,V1,Nd,G1,Cm,_v,Zie,ene,Z7e,J7e,tne,e$e,t$e,r$e,i$e,RI,n$e,vm,ure,li,E6,a$e,s$e,o$e,l$e,c$e,u$e,h$e,d$e,f$e,p$e,m$e,g$e,y$e,x$e,b$e,T$e,k$e,C$e,v$e,S$e,_$e,w$e,E$e,A$e,R$e,nne,A6,L6,qo,um,$n,hm,v1,D6,one,L$e,la,a1,Qp,Ra,pu,s1,FC,VC,mu,GC,gu,yu,o1,xu,l1,WC,Pl,zC,od,qC,Vo,c1,jC,Zp,Jp,em,ld,UC,HC,tm,YC,qs,u1,cd,KC,ud,rm,XC,hd,ca,dd,Bl,fd,h1,pd,md,QC,d1,gd,yd,im,Z6,Ft,zo,rN,oN,Mv,cN,JC,ev,hre,D$e,Kk,I$e,Dne,Ov,Ine,Nne,N$e,vd,One,wN,M$e,Yne,O$e,P$e,Ko,B$e,us,Kne,$$e,F$e,F0,V$e,G$e,W$e,z$e,q$e,j$e,dre,Au,Qs,U$e,Wv,H1,H$e,kr,Y$e,fre,pre,K$e,X$e,Q$e,Z$e,J$e,hs,mre,eFe,tFe,rFe,iFe,nFe,gre,aFe,sFe,Y1,ym,oFe,lFe,cFe,uFe,Xl,hFe,cD,yre,dFe,fFe,pFe,Vd,mFe,gFe,yFe,xFe,bFe,TFe,kFe,CFe,vFe,Gd,SFe,II,xre,_Fe,wFe,EFe,Vi,AFe,RFe,LFe,DFe,IFe,NFe,MFe,rv,OFe,PFe,BFe,$Fe,kae,vae,FFe,VFe,RN,Aae,GFe,WFe,zv,LN,K1,zFe,qFe,qv,X1,bre,jFe,DN,UFe,IN,Xo,jv,HFe,YFe,Q1,KFe,XFe,Tre,zae,QFe,ZFe,JFe,Uv,e9e,jae,kre,t9e,Cre,r9e,i9e,_1,n9e,a9e,s9e,o9e,l9e,c9e,u9e,h9e,d9e,f9e,p9e,m9e,g9e,y9e,x9e,b9e,T9e,k9e,C9e,v9e,S9e,_9e,w9e,E9e,Jr,A9e,Z1,Yae,f1,R9e,uD,L9e,Cu,vre,D9e,NN,I9e,N9e,Xae,Zae,M9e,O9e,P9e,B9e,ese,Da,$9e,F9e,V9e,Ia,G9e,W9e,z9e,q9e,Hv,j9e,U9e,MN,H9e,w1,Y9e,K9e,X9e,Q9e,Z9e,J9e,eVe,tVe,rVe,iVe,nVe,Sre,aVe,Yv,sVe,oVe,lVe,cVe,uVe,hVe,Kv,dVe,E1,fVe,pVe,Xv,mVe,gVe,yVe,xVe,Qv,bVe,TVe,kVe,CVe,vVe,SVe,_Ve,wVe,EVe,Jv,AVe,J1,ON,RVe,PN,_re,LVe,$N,Ks,DVe,Nse,Ose,IVe,NVe,MVe,OVe,PVe,BVe,$Ve,p1,FVe,VVe,qse,wre,GVe,Ere,Are,WVe,FN,Yse,zVe,qVe,Rre,jVe,VN,UVe,HVe,YVe,Xse,KVe,Jse,NI,roe,XVe,MI,QVe,OI,ZVe,om,Lre,JVe,Dre,Ire,Nre,Mre,eGe,tGe,rGe,iGe,nGe,td,xm,aGe,sGe,oGe,lGe,iv,GN,cGe,uGe,hGe,Ore,Pre,dGe,fGe,pGe,mGe,gGe,yGe,xGe,bGe,TGe,kGe,CGe,vGe,SGe,_Ge,wGe,EGe,AGe,RGe,LGe,DGe,IGe,NGe,MGe,OGe,PGe,Bre,BGe,$Ge,FGe,VGe,$re,GGe,WGe,zGe,qGe,jGe,foe,UGe,HGe,YGe,KGe,poe,XGe,QGe,ZGe,moe,JGe,eWe,tWe,rWe,iWe,nWe,aWe,sWe,oWe,lWe,cWe,uWe,hWe,dWe,fWe,pWe,jr,mWe,gWe,fn,ex,yWe,xWe,bWe,WN,koe,zN,TWe,kWe,Soe,CWe,qN,vWe,SWe,_We,wWe,EWe,AWe,RWe,LWe,DWe,IWe,NWe,MWe,OWe,Fre,hD,PWe,BWe,$We,FWe,VWe,GWe,Vre,Gre,Xk,WWe,Wre,zWe,Loe,qWe,jWe,UWe,Noe,HWe,Poe,YWe,KWe,Voe,XWe,QWe,ZWe,JWe,eze,tze,rze,Qo,ize,nze,aze,sze,oze,lze,cze,Ud,uze,hze,Joe,dze,fze,UN,zre,rle,pze,mze,gze,eS,Ld,hn,R1,yze,jt,xze,bze,Xs,fle,fs,Tze,kze,Cze,vze,bm,Zs,Sze,It,cs,_ze,wze,Eze,Aze,Rze,Lze,Dze,Wt,Ize,ua,Nze,Gi,Mze,Un,Oze,qre,Pze,Bze,$ze,Fze,Hr,Vze,Gze,jre,Wze,zl,ql,zze,qze,jze,Uze,Js,Hze,Na,tS,Yze,Vle,Kze,Xze,Qze,Zze,Jze,HN,Zo,zn,_m,ha,dn,Ma,Oa,gi,da,fa,ti,wm,rS,Qle,eqe,vC,tqe,tce,av,rqe,Dd,r1,Qk,nce,iqe,nqe,aqe,i1,_C,Ure,Ece,GI,yi,n1,Gn,sqe,Hre,Yre,Kre,Xre,Qre,Zre,Jre,eie,vu,nm,oqe,Sd,lqe,cqe,uqe,nS,hqe,tie,dqe,rie,oi,fqe,Wce,pqe,cM,mqe,sue,oue,lue,cue,uue,sS,hue,gqe,yqe,xqe,dD,due,bqe,Tqe,kqe,Ru,Cqe,pue,mue,qI,jI,UI,EC,ftr,uM,vqe,Sqe,Zk,_qe,KI,wqe,Eqe,Aqe,Rqe,Lqe,Dqe,oS,iie,nie,Sue,_ue,Iqe,Nqe,Mqe,uv,Ul,hv,qn,dM,Oqe,Lue,Pqe,Nue,lS,Bqe,$qe,Fqe,Vqe,Gqe,Wqe,cS,zqe,qqe,jqe,Uqe,Hqe,zue,Yqe,Kqe,Ql,Xqe,Yo,que,Qqe,Zqe,V0,Jqe,eje,tje,rje,ije,nje,aie,Lm,fM,aje,sje,oje,lje,Xue,cje,fD,sie,uje,hje,dje,Yd,fje,pje,mje,gje,yje,xje,bje,Tje,kje,Dm,Cje,M1,vje,O1,Sje,_je,wje,Eje,Aje,Rje,Lje,Dje,Ije,Nje,Mje,oie,Oje,Pje,uS,Bje,$je,Fje,Vje,hS,Gje,Wje,RC,zje,qje,jje,yhe,Uje,The,Hje,Yje,Che,Kje,lie,Xje,pM,Qje,Zje,Jje,eUe,tUe,rUe,iUe,nUe,aUe,sUe,oUe,lUe,cUe,cie,pD,uUe,Ehe,hUe,jn,dUe,Lhe,fUe,pUe,mUe,uie,gUe,yUe,xUe,Tm,bUe,hie,Ohe,TUe,kUe,CUe,dS,vUe,Bhe,die,SUe,fie,_Ue,wUe,dv,EUe,AUe,Fhe,RUe,mM,LUe,DUe,IUe,NUe,MUe,OUe,PUe,BUe,$Ue,FUe,VUe,GUe,WUe,zUe,qUe,jUe,UUe,HUe,YUe,KUe,XUe,QUe,ZUe,JUe,ei,eHe,tHe,zhe,x1,rHe,mD,iHe,pie,mie,nHe,gM,aHe,sHe,oHe,lHe,Uhe,cHe,uHe,hHe,dHe,fHe,Khe,fS,yM,gie,pHe,mHe,gHe,yHe,xHe,ZI,bHe,JI,THe,cm,kHe,e6,yie,CHe,xie,bie,Tie,kie,vHe,SHe,_He,wHe,EHe,rd,t6,AHe,Cie,vie,Jk,RHe,Sie,LHe,tde,DHe,IHe,NHe,nde,MHe,ode,OHe,PHe,pS,BHe,$He,bM,FHe,VHe,GHe,WHe,zHe,qHe,jHe,UHe,HHe,_ie,wie,YHe,KHe,pde,XHe,gS,yde,QHe,ZHe,JHe,eYe,tYe,rYe,iYe,kM,nYe,aYe,sYe,yS,oYe,lYe,cYe,uYe,hYe,dYe,xS,fYe,$l,pYe,mYe,Su,gYe,Ode,Pde,ax,yYe,xYe,bYe,TYe,Bde,CM,vM,$de,SM,fv,r6,kYe,CYe,vYe,Eie,SYe,ife,_Ye,wYe,EYe,AYe,RYe,LYe,DYe,IYe,NYe,MYe,OYe,PYe,BYe,$Ye,FYe,VYe,GYe,gD,WYe,zYe,qYe,jYe,UYe,HYe,YYe,Aie,vfe,Rie,KYe,zfe,IM,pv,kS,XYe,NM,mv,Lie,jfe,MM,Ufe,Hfe,OM,Yfe,QYe,Kfe,ZYe,SS,GM,Wo,Ur,IC,spe,jo,Hl,Die,yv,lpe,La,G0,Vn,jM,mr,cpe,upe,id,hpe,dpe,fpe,Yl,bv,ppe,o6,JYe,mpe,eKe,ES,HM,AS,gpe,YM,ype,xpe,bpe,Tv,Tpe,kpe,Cpe,ls,vpe,Spe,_pe,RS,wpe,eC,Ad,Epe,Ape,Rpe,Lpe,ZM,JM,Iie,tKe,rKe,iKe,Nie,yD,c6,Vpe,Gpe,Wpe,zpe,nKe,aKe,qpe,jpe,h6,Upe,Mie,f6,wd,Hpe,sKe,lO,Ype,xi,oKe,lKe,cKe,Xpe,p6,m6,g6,y6,x6,b6,T6,k6,C6,v6,ptr,tC,rC,W0,xD,Go,iC,T1,Oie,nC,bD,xd,aC,Xh,sC,oC,Pie,Wp,Bo,nd,du,z0,Bie,TD,lC,Ol,hu,kD,Fo,$ie,cC,CD,bu,q0,am,j0,vD,U0,uC,Qh,bd,hC,SD,Td,kd,Tu,k1,_D,dC,fu,wD,zp,ED,ad,Cd,AD,MC,Xp,en,ume,Ba,Fie,uKe,Vie,hKe,Gie,dKe,Wie,fKe,zie,pKe,qie,mKe,jie,gKe,Uie,yKe,Hie,xKe,Yie,bKe,TKe,kKe,CKe,vKe,SKe,_Ke,wKe,EKe,AKe,RKe,Si,cO,uO,hO,dO,fO,pO,mO,gO,yO,xO,LKe,DKe,IKe,NKe,ps,eo,Ii,MKe,bi=v(()=>{"use strict";H7e=Object.create,F1=Object.defineProperty,Y7e=Object.getOwnPropertyDescriptor,S6=Object.getOwnPropertyNames,K7e=Object.getPrototypeOf,X7e=Object.prototype.hasOwnProperty,y=a((e,t)=>F1(e,"name",{value:t,configurable:!0}),"__name"),Q7e=a((e,t)=>a(function(){return e&&(t=(0,e[S6(e)[0]])(e=0)),t},"__init"),"__esm"),nr=a((e,t)=>a(function(){return t||(0,e[S6(e)[0]])((t={exports:{}}).exports,t),t.exports},"__require"),"__commonJS"),wu=a((e,t)=>{for(var r in t)F1(e,r,{get:t[r],enumerable:!0})},"__export"),OC=a((e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of S6(t))!X7e.call(e,n)&&n!==r&&F1(e,n,{get:a(()=>t[n],"get"),enumerable:!(i=Y7e(t,n))||i.enumerable});return e},"__copyProps"),vv=a((e,t,r)=>(OC(e,t,"default"),r&&OC(r,t,"default")),"__reExport"),_6=a((e,t,r)=>(r=e!=null?H7e(K7e(e)):{},OC(t||!e||!e.__esModule?F1(r,"default",{value:e,enumerable:!0}):r,e)),"__toESM"),w6=a(e=>OC(F1({},"__esModule",{value:!0}),e),"__toCommonJS"),Sv={};wu(Sv,{AnnotatedTextEdit:a(()=>Nl,"AnnotatedTextEdit"),ChangeAnnotation:a(()=>Jh,"ChangeAnnotation"),ChangeAnnotationIdentifier:a(()=>un,"ChangeAnnotationIdentifier"),CodeAction:a(()=>lI,"CodeAction"),CodeActionContext:a(()=>oI,"CodeActionContext"),CodeActionKind:a(()=>sI,"CodeActionKind"),CodeActionTriggerKind:a(()=>J0,"CodeActionTriggerKind"),CodeDescription:a(()=>$D,"CodeDescription"),CodeLens:a(()=>cI,"CodeLens"),Color:a(()=>pC,"Color"),ColorInformation:a(()=>ID,"ColorInformation"),ColorPresentation:a(()=>ND,"ColorPresentation"),Command:a(()=>Zh,"Command"),CompletionItem:a(()=>YD,"CompletionItem"),CompletionItemKind:a(()=>WD,"CompletionItemKind"),CompletionItemLabelDetails:a(()=>HD,"CompletionItemLabelDetails"),CompletionItemTag:a(()=>qD,"CompletionItemTag"),CompletionList:a(()=>KD,"CompletionList"),CreateFile:a(()=>qp,"CreateFile"),DeleteFile:a(()=>Up,"DeleteFile"),Diagnostic:a(()=>K0,"Diagnostic"),DiagnosticRelatedInformation:a(()=>mC,"DiagnosticRelatedInformation"),DiagnosticSeverity:a(()=>PD,"DiagnosticSeverity"),DiagnosticTag:a(()=>BD,"DiagnosticTag"),DocumentHighlight:a(()=>eI,"DocumentHighlight"),DocumentHighlightKind:a(()=>JD,"DocumentHighlightKind"),DocumentLink:a(()=>hI,"DocumentLink"),DocumentSymbol:a(()=>aI,"DocumentSymbol"),DocumentUri:a(()=>RD,"DocumentUri"),EOL:a(()=>Xie,"EOL"),FoldingRange:a(()=>OD,"FoldingRange"),FoldingRangeKind:a(()=>MD,"FoldingRangeKind"),FormattingOptions:a(()=>uI,"FormattingOptions"),Hover:a(()=>XD,"Hover"),InlayHint:a(()=>TI,"InlayHint"),InlayHintKind:a(()=>xC,"InlayHintKind"),InlayHintLabelPart:a(()=>bC,"InlayHintLabelPart"),InlineCompletionContext:a(()=>wI,"InlineCompletionContext"),InlineCompletionItem:a(()=>CI,"InlineCompletionItem"),InlineCompletionList:a(()=>vI,"InlineCompletionList"),InlineCompletionTriggerKind:a(()=>SI,"InlineCompletionTriggerKind"),InlineValueContext:a(()=>bI,"InlineValueContext"),InlineValueEvaluatableExpression:a(()=>xI,"InlineValueEvaluatableExpression"),InlineValueText:a(()=>gI,"InlineValueText"),InlineValueVariableLookup:a(()=>yI,"InlineValueVariableLookup"),InsertReplaceEdit:a(()=>jD,"InsertReplaceEdit"),InsertTextFormat:a(()=>zD,"InsertTextFormat"),InsertTextMode:a(()=>UD,"InsertTextMode"),Location:a(()=>Y0,"Location"),LocationLink:a(()=>DD,"LocationLink"),MarkedString:a(()=>Z0,"MarkedString"),MarkupContent:a(()=>Hp,"MarkupContent"),MarkupKind:a(()=>yC,"MarkupKind"),OptionalVersionedTextDocumentIdentifier:a(()=>Q0,"OptionalVersionedTextDocumentIdentifier"),ParameterInformation:a(()=>QD,"ParameterInformation"),Position:a(()=>Er,"Position"),Range:a(()=>br,"Range"),RenameFile:a(()=>jp,"RenameFile"),SelectedCompletionInfo:a(()=>_I,"SelectedCompletionInfo"),SelectionRange:a(()=>dI,"SelectionRange"),SemanticTokenModifiers:a(()=>pI,"SemanticTokenModifiers"),SemanticTokenTypes:a(()=>fI,"SemanticTokenTypes"),SemanticTokens:a(()=>mI,"SemanticTokens"),SignatureInformation:a(()=>ZD,"SignatureInformation"),StringValue:a(()=>kI,"StringValue"),SymbolInformation:a(()=>iI,"SymbolInformation"),SymbolKind:a(()=>tI,"SymbolKind"),SymbolTag:a(()=>rI,"SymbolTag"),TextDocument:a(()=>AI,"TextDocument"),TextDocumentEdit:a(()=>X0,"TextDocumentEdit"),TextDocumentIdentifier:a(()=>FD,"TextDocumentIdentifier"),TextDocumentItem:a(()=>GD,"TextDocumentItem"),TextEdit:a(()=>$o,"TextEdit"),URI:a(()=>fC,"URI"),VersionedTextDocumentIdentifier:a(()=>VD,"VersionedTextDocumentIdentifier"),WorkspaceChange:a(()=>Kie,"WorkspaceChange"),WorkspaceEdit:a(()=>gC,"WorkspaceEdit"),WorkspaceFolder:a(()=>EI,"WorkspaceFolder"),WorkspaceSymbol:a(()=>nI,"WorkspaceSymbol"),integer:a(()=>LD,"integer"),uinteger:a(()=>H0,"uinteger")});V1=Q7e({"../../node_modules/.pnpm/vscode-languageserver-types@3.17.5/node_modules/vscode-languageserver-types/lib/esm/main.js"(){"use strict";(function(e){function t(r){return typeof r=="string"}a(t,"is"),y(t,"is"),e.is=t})(RD||(RD={})),(function(e){function t(r){return typeof r=="string"}a(t,"is"),y(t,"is"),e.is=t})(fC||(fC={})),(function(e){e.MIN_VALUE=-2147483648,e.MAX_VALUE=2147483647;function t(r){return typeof r=="number"&&e.MIN_VALUE<=r&&r<=e.MAX_VALUE}a(t,"is"),y(t,"is"),e.is=t})(LD||(LD={})),(function(e){e.MIN_VALUE=0,e.MAX_VALUE=2147483647;function t(r){return typeof r=="number"&&e.MIN_VALUE<=r&&r<=e.MAX_VALUE}a(t,"is"),y(t,"is"),e.is=t})(H0||(H0={})),(function(e){function t(i,n){return i===Number.MAX_VALUE&&(i=H0.MAX_VALUE),n===Number.MAX_VALUE&&(n=H0.MAX_VALUE),{line:i,character:n}}a(t,"create"),y(t,"create"),e.create=t;function r(i){let n=i;return ve.objectLiteral(n)&&ve.uinteger(n.line)&&ve.uinteger(n.character)}a(r,"is"),y(r,"is"),e.is=r})(Er||(Er={})),(function(e){function t(i,n,s,o){if(ve.uinteger(i)&&ve.uinteger(n)&&ve.uinteger(s)&&ve.uinteger(o))return{start:Er.create(i,n),end:Er.create(s,o)};if(Er.is(i)&&Er.is(n))return{start:i,end:n};throw new Error(`Range#create called with invalid arguments[${i}, ${n}, ${s}, ${o}]`)}a(t,"create"),y(t,"create"),e.create=t;function r(i){let n=i;return ve.objectLiteral(n)&&Er.is(n.start)&&Er.is(n.end)}a(r,"is"),y(r,"is"),e.is=r})(br||(br={})),(function(e){function t(i,n){return{uri:i,range:n}}a(t,"create"),y(t,"create"),e.create=t;function r(i){let n=i;return ve.objectLiteral(n)&&br.is(n.range)&&(ve.string(n.uri)||ve.undefined(n.uri))}a(r,"is"),y(r,"is"),e.is=r})(Y0||(Y0={})),(function(e){function t(i,n,s,o){return{targetUri:i,targetRange:n,targetSelectionRange:s,originSelectionRange:o}}a(t,"create"),y(t,"create"),e.create=t;function r(i){let n=i;return ve.objectLiteral(n)&&br.is(n.targetRange)&&ve.string(n.targetUri)&&br.is(n.targetSelectionRange)&&(br.is(n.originSelectionRange)||ve.undefined(n.originSelectionRange))}a(r,"is"),y(r,"is"),e.is=r})(DD||(DD={})),(function(e){function t(i,n,s,o){return{red:i,green:n,blue:s,alpha:o}}a(t,"create"),y(t,"create"),e.create=t;function r(i){let n=i;return ve.objectLiteral(n)&&ve.numberRange(n.red,0,1)&&ve.numberRange(n.green,0,1)&&ve.numberRange(n.blue,0,1)&&ve.numberRange(n.alpha,0,1)}a(r,"is"),y(r,"is"),e.is=r})(pC||(pC={})),(function(e){function t(i,n){return{range:i,color:n}}a(t,"create"),y(t,"create"),e.create=t;function r(i){let n=i;return ve.objectLiteral(n)&&br.is(n.range)&&pC.is(n.color)}a(r,"is"),y(r,"is"),e.is=r})(ID||(ID={})),(function(e){function t(i,n,s){return{label:i,textEdit:n,additionalTextEdits:s}}a(t,"create"),y(t,"create"),e.create=t;function r(i){let n=i;return ve.objectLiteral(n)&&ve.string(n.label)&&(ve.undefined(n.textEdit)||$o.is(n))&&(ve.undefined(n.additionalTextEdits)||ve.typedArray(n.additionalTextEdits,$o.is))}a(r,"is"),y(r,"is"),e.is=r})(ND||(ND={})),(function(e){e.Comment="comment",e.Imports="imports",e.Region="region"})(MD||(MD={})),(function(e){function t(i,n,s,o,l,u){let h={startLine:i,endLine:n};return ve.defined(s)&&(h.startCharacter=s),ve.defined(o)&&(h.endCharacter=o),ve.defined(l)&&(h.kind=l),ve.defined(u)&&(h.collapsedText=u),h}a(t,"create"),y(t,"create"),e.create=t;function r(i){let n=i;return ve.objectLiteral(n)&&ve.uinteger(n.startLine)&&ve.uinteger(n.startLine)&&(ve.undefined(n.startCharacter)||ve.uinteger(n.startCharacter))&&(ve.undefined(n.endCharacter)||ve.uinteger(n.endCharacter))&&(ve.undefined(n.kind)||ve.string(n.kind))}a(r,"is"),y(r,"is"),e.is=r})(OD||(OD={})),(function(e){function t(i,n){return{location:i,message:n}}a(t,"create"),y(t,"create"),e.create=t;function r(i){let n=i;return ve.defined(n)&&Y0.is(n.location)&&ve.string(n.message)}a(r,"is"),y(r,"is"),e.is=r})(mC||(mC={})),(function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4})(PD||(PD={})),(function(e){e.Unnecessary=1,e.Deprecated=2})(BD||(BD={})),(function(e){function t(r){let i=r;return ve.objectLiteral(i)&&ve.string(i.href)}a(t,"is"),y(t,"is"),e.is=t})($D||($D={})),(function(e){function t(i,n,s,o,l,u){let h={range:i,message:n};return ve.defined(s)&&(h.severity=s),ve.defined(o)&&(h.code=o),ve.defined(l)&&(h.source=l),ve.defined(u)&&(h.relatedInformation=u),h}a(t,"create"),y(t,"create"),e.create=t;function r(i){var n;let s=i;return ve.defined(s)&&br.is(s.range)&&ve.string(s.message)&&(ve.number(s.severity)||ve.undefined(s.severity))&&(ve.integer(s.code)||ve.string(s.code)||ve.undefined(s.code))&&(ve.undefined(s.codeDescription)||ve.string((n=s.codeDescription)===null||n===void 0?void 0:n.href))&&(ve.string(s.source)||ve.undefined(s.source))&&(ve.undefined(s.relatedInformation)||ve.typedArray(s.relatedInformation,mC.is))}a(r,"is"),y(r,"is"),e.is=r})(K0||(K0={})),(function(e){function t(i,n,...s){let o={title:i,command:n};return ve.defined(s)&&s.length>0&&(o.arguments=s),o}a(t,"create"),y(t,"create"),e.create=t;function r(i){let n=i;return ve.defined(n)&&ve.string(n.title)&&ve.string(n.command)}a(r,"is"),y(r,"is"),e.is=r})(Zh||(Zh={})),(function(e){function t(s,o){return{range:s,newText:o}}a(t,"replace"),y(t,"replace"),e.replace=t;function r(s,o){return{range:{start:s,end:s},newText:o}}a(r,"insert"),y(r,"insert"),e.insert=r;function i(s){return{range:s,newText:""}}a(i,"del"),y(i,"del"),e.del=i;function n(s){let o=s;return ve.objectLiteral(o)&&ve.string(o.newText)&&br.is(o.range)}a(n,"is"),y(n,"is"),e.is=n})($o||($o={})),(function(e){function t(i,n,s){let o={label:i};return n!==void 0&&(o.needsConfirmation=n),s!==void 0&&(o.description=s),o}a(t,"create"),y(t,"create"),e.create=t;function r(i){let n=i;return ve.objectLiteral(n)&&ve.string(n.label)&&(ve.boolean(n.needsConfirmation)||n.needsConfirmation===void 0)&&(ve.string(n.description)||n.description===void 0)}a(r,"is"),y(r,"is"),e.is=r})(Jh||(Jh={})),(function(e){function t(r){let i=r;return ve.string(i)}a(t,"is"),y(t,"is"),e.is=t})(un||(un={})),(function(e){function t(s,o,l){return{range:s,newText:o,annotationId:l}}a(t,"replace"),y(t,"replace"),e.replace=t;function r(s,o,l){return{range:{start:s,end:s},newText:o,annotationId:l}}a(r,"insert"),y(r,"insert"),e.insert=r;function i(s,o){return{range:s,newText:"",annotationId:o}}a(i,"del"),y(i,"del"),e.del=i;function n(s){let o=s;return $o.is(o)&&(Jh.is(o.annotationId)||un.is(o.annotationId))}a(n,"is"),y(n,"is"),e.is=n})(Nl||(Nl={})),(function(e){function t(i,n){return{textDocument:i,edits:n}}a(t,"create"),y(t,"create"),e.create=t;function r(i){let n=i;return ve.defined(n)&&Q0.is(n.textDocument)&&Array.isArray(n.edits)}a(r,"is"),y(r,"is"),e.is=r})(X0||(X0={})),(function(e){function t(i,n,s){let o={kind:"create",uri:i};return n!==void 0&&(n.overwrite!==void 0||n.ignoreIfExists!==void 0)&&(o.options=n),s!==void 0&&(o.annotationId=s),o}a(t,"create"),y(t,"create"),e.create=t;function r(i){let n=i;return n&&n.kind==="create"&&ve.string(n.uri)&&(n.options===void 0||(n.options.overwrite===void 0||ve.boolean(n.options.overwrite))&&(n.options.ignoreIfExists===void 0||ve.boolean(n.options.ignoreIfExists)))&&(n.annotationId===void 0||un.is(n.annotationId))}a(r,"is"),y(r,"is"),e.is=r})(qp||(qp={})),(function(e){function t(i,n,s,o){let l={kind:"rename",oldUri:i,newUri:n};return s!==void 0&&(s.overwrite!==void 0||s.ignoreIfExists!==void 0)&&(l.options=s),o!==void 0&&(l.annotationId=o),l}a(t,"create"),y(t,"create"),e.create=t;function r(i){let n=i;return n&&n.kind==="rename"&&ve.string(n.oldUri)&&ve.string(n.newUri)&&(n.options===void 0||(n.options.overwrite===void 0||ve.boolean(n.options.overwrite))&&(n.options.ignoreIfExists===void 0||ve.boolean(n.options.ignoreIfExists)))&&(n.annotationId===void 0||un.is(n.annotationId))}a(r,"is"),y(r,"is"),e.is=r})(jp||(jp={})),(function(e){function t(i,n,s){let o={kind:"delete",uri:i};return n!==void 0&&(n.recursive!==void 0||n.ignoreIfNotExists!==void 0)&&(o.options=n),s!==void 0&&(o.annotationId=s),o}a(t,"create"),y(t,"create"),e.create=t;function r(i){let n=i;return n&&n.kind==="delete"&&ve.string(n.uri)&&(n.options===void 0||(n.options.recursive===void 0||ve.boolean(n.options.recursive))&&(n.options.ignoreIfNotExists===void 0||ve.boolean(n.options.ignoreIfNotExists)))&&(n.annotationId===void 0||un.is(n.annotationId))}a(r,"is"),y(r,"is"),e.is=r})(Up||(Up={})),(function(e){function t(r){let i=r;return i&&(i.changes!==void 0||i.documentChanges!==void 0)&&(i.documentChanges===void 0||i.documentChanges.every(n=>ve.string(n.kind)?qp.is(n)||jp.is(n)||Up.is(n):X0.is(n)))}a(t,"is"),y(t,"is"),e.is=t})(gC||(gC={})),$0=class{static{a(this,"TextEditChangeImpl")}static{y(this,"TextEditChangeImpl")}constructor(e,t){this.edits=e,this.changeAnnotations=t}insert(e,t,r){let i,n;if(r===void 0?i=$o.insert(e,t):un.is(r)?(n=r,i=Nl.insert(e,t,r)):(this.assertChangeAnnotations(this.changeAnnotations),n=this.changeAnnotations.manage(r),i=Nl.insert(e,t,n)),this.edits.push(i),n!==void 0)return n}replace(e,t,r){let i,n;if(r===void 0?i=$o.replace(e,t):un.is(r)?(n=r,i=Nl.replace(e,t,r)):(this.assertChangeAnnotations(this.changeAnnotations),n=this.changeAnnotations.manage(r),i=Nl.replace(e,t,n)),this.edits.push(i),n!==void 0)return n}delete(e,t){let r,i;if(t===void 0?r=$o.del(e):un.is(t)?(i=t,r=Nl.del(e,t)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(t),r=Nl.del(e,i)),this.edits.push(r),i!==void 0)return i}add(e){this.edits.push(e)}all(){return this.edits}clear(){this.edits.splice(0,this.edits.length)}assertChangeAnnotations(e){if(e===void 0)throw new Error("Text edit change is not configured to manage change annotations.")}},lD=class{static{a(this,"ChangeAnnotations")}static{y(this,"ChangeAnnotations")}constructor(e){this._annotations=e===void 0?Object.create(null):e,this._counter=0,this._size=0}all(){return this._annotations}get size(){return this._size}manage(e,t){let r;if(un.is(e)?r=e:(r=this.nextId(),t=e),this._annotations[r]!==void 0)throw new Error(`Id ${r} is already in use.`);if(t===void 0)throw new Error(`No annotation provided for id ${r}`);return this._annotations[r]=t,this._size++,r}nextId(){return this._counter++,this._counter.toString()}},Kie=class{static{a(this,"WorkspaceChange")}static{y(this,"WorkspaceChange")}constructor(e){this._textEditChanges=Object.create(null),e!==void 0?(this._workspaceEdit=e,e.documentChanges?(this._changeAnnotations=new lD(e.changeAnnotations),e.changeAnnotations=this._changeAnnotations.all(),e.documentChanges.forEach(t=>{if(X0.is(t)){let r=new $0(t.edits,this._changeAnnotations);this._textEditChanges[t.textDocument.uri]=r}})):e.changes&&Object.keys(e.changes).forEach(t=>{let r=new $0(e.changes[t]);this._textEditChanges[t]=r})):this._workspaceEdit={}}get edit(){return this.initDocumentChanges(),this._changeAnnotations!==void 0&&(this._changeAnnotations.size===0?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit}getTextEditChange(e){if(Q0.is(e)){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");let t={uri:e.uri,version:e.version},r=this._textEditChanges[t.uri];if(!r){let i=[],n={textDocument:t,edits:i};this._workspaceEdit.documentChanges.push(n),r=new $0(i,this._changeAnnotations),this._textEditChanges[t.uri]=r}return r}else{if(this.initChanges(),this._workspaceEdit.changes===void 0)throw new Error("Workspace edit is not configured for normal text edit changes.");let t=this._textEditChanges[e];if(!t){let r=[];this._workspaceEdit.changes[e]=r,t=new $0(r),this._textEditChanges[e]=t}return t}}initDocumentChanges(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new lD,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())}initChanges(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._workspaceEdit.changes=Object.create(null))}createFile(e,t,r){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");let i;Jh.is(t)||un.is(t)?i=t:r=t;let n,s;if(i===void 0?n=qp.create(e,r):(s=un.is(i)?i:this._changeAnnotations.manage(i),n=qp.create(e,r,s)),this._workspaceEdit.documentChanges.push(n),s!==void 0)return s}renameFile(e,t,r,i){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");let n;Jh.is(r)||un.is(r)?n=r:i=r;let s,o;if(n===void 0?s=jp.create(e,t,i):(o=un.is(n)?n:this._changeAnnotations.manage(n),s=jp.create(e,t,i,o)),this._workspaceEdit.documentChanges.push(s),o!==void 0)return o}deleteFile(e,t,r){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");let i;Jh.is(t)||un.is(t)?i=t:r=t;let n,s;if(i===void 0?n=Up.create(e,r):(s=un.is(i)?i:this._changeAnnotations.manage(i),n=Up.create(e,r,s)),this._workspaceEdit.documentChanges.push(n),s!==void 0)return s}},(function(e){function t(i){return{uri:i}}a(t,"create"),y(t,"create"),e.create=t;function r(i){let n=i;return ve.defined(n)&&ve.string(n.uri)}a(r,"is"),y(r,"is"),e.is=r})(FD||(FD={})),(function(e){function t(i,n){return{uri:i,version:n}}a(t,"create"),y(t,"create"),e.create=t;function r(i){let n=i;return ve.defined(n)&&ve.string(n.uri)&&ve.integer(n.version)}a(r,"is"),y(r,"is"),e.is=r})(VD||(VD={})),(function(e){function t(i,n){return{uri:i,version:n}}a(t,"create"),y(t,"create"),e.create=t;function r(i){let n=i;return ve.defined(n)&&ve.string(n.uri)&&(n.version===null||ve.integer(n.version))}a(r,"is"),y(r,"is"),e.is=r})(Q0||(Q0={})),(function(e){function t(i,n,s,o){return{uri:i,languageId:n,version:s,text:o}}a(t,"create"),y(t,"create"),e.create=t;function r(i){let n=i;return ve.defined(n)&&ve.string(n.uri)&&ve.string(n.languageId)&&ve.integer(n.version)&&ve.string(n.text)}a(r,"is"),y(r,"is"),e.is=r})(GD||(GD={})),(function(e){e.PlainText="plaintext",e.Markdown="markdown";function t(r){let i=r;return i===e.PlainText||i===e.Markdown}a(t,"is"),y(t,"is"),e.is=t})(yC||(yC={})),(function(e){function t(r){let i=r;return ve.objectLiteral(r)&&yC.is(i.kind)&&ve.string(i.value)}a(t,"is"),y(t,"is"),e.is=t})(Hp||(Hp={})),(function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25})(WD||(WD={})),(function(e){e.PlainText=1,e.Snippet=2})(zD||(zD={})),(function(e){e.Deprecated=1})(qD||(qD={})),(function(e){function t(i,n,s){return{newText:i,insert:n,replace:s}}a(t,"create"),y(t,"create"),e.create=t;function r(i){let n=i;return n&&ve.string(n.newText)&&br.is(n.insert)&&br.is(n.replace)}a(r,"is"),y(r,"is"),e.is=r})(jD||(jD={})),(function(e){e.asIs=1,e.adjustIndentation=2})(UD||(UD={})),(function(e){function t(r){let i=r;return i&&(ve.string(i.detail)||i.detail===void 0)&&(ve.string(i.description)||i.description===void 0)}a(t,"is"),y(t,"is"),e.is=t})(HD||(HD={})),(function(e){function t(r){return{label:r}}a(t,"create"),y(t,"create"),e.create=t})(YD||(YD={})),(function(e){function t(r,i){return{items:r||[],isIncomplete:!!i}}a(t,"create"),y(t,"create"),e.create=t})(KD||(KD={})),(function(e){function t(i){return i.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}a(t,"fromPlainText"),y(t,"fromPlainText"),e.fromPlainText=t;function r(i){let n=i;return ve.string(n)||ve.objectLiteral(n)&&ve.string(n.language)&&ve.string(n.value)}a(r,"is"),y(r,"is"),e.is=r})(Z0||(Z0={})),(function(e){function t(r){let i=r;return!!i&&ve.objectLiteral(i)&&(Hp.is(i.contents)||Z0.is(i.contents)||ve.typedArray(i.contents,Z0.is))&&(r.range===void 0||br.is(r.range))}a(t,"is"),y(t,"is"),e.is=t})(XD||(XD={})),(function(e){function t(r,i){return i?{label:r,documentation:i}:{label:r}}a(t,"create"),y(t,"create"),e.create=t})(QD||(QD={})),(function(e){function t(r,i,...n){let s={label:r};return ve.defined(i)&&(s.documentation=i),ve.defined(n)?s.parameters=n:s.parameters=[],s}a(t,"create"),y(t,"create"),e.create=t})(ZD||(ZD={})),(function(e){e.Text=1,e.Read=2,e.Write=3})(JD||(JD={})),(function(e){function t(r,i){let n={range:r};return ve.number(i)&&(n.kind=i),n}a(t,"create"),y(t,"create"),e.create=t})(eI||(eI={})),(function(e){e.File=1,e.Module=2,e.Namespace=3,e.Package=4,e.Class=5,e.Method=6,e.Property=7,e.Field=8,e.Constructor=9,e.Enum=10,e.Interface=11,e.Function=12,e.Variable=13,e.Constant=14,e.String=15,e.Number=16,e.Boolean=17,e.Array=18,e.Object=19,e.Key=20,e.Null=21,e.EnumMember=22,e.Struct=23,e.Event=24,e.Operator=25,e.TypeParameter=26})(tI||(tI={})),(function(e){e.Deprecated=1})(rI||(rI={})),(function(e){function t(r,i,n,s,o){let l={name:r,kind:i,location:{uri:s,range:n}};return o&&(l.containerName=o),l}a(t,"create"),y(t,"create"),e.create=t})(iI||(iI={})),(function(e){function t(r,i,n,s){return s!==void 0?{name:r,kind:i,location:{uri:n,range:s}}:{name:r,kind:i,location:{uri:n}}}a(t,"create"),y(t,"create"),e.create=t})(nI||(nI={})),(function(e){function t(i,n,s,o,l,u){let h={name:i,detail:n,kind:s,range:o,selectionRange:l};return u!==void 0&&(h.children=u),h}a(t,"create"),y(t,"create"),e.create=t;function r(i){let n=i;return n&&ve.string(n.name)&&ve.number(n.kind)&&br.is(n.range)&&br.is(n.selectionRange)&&(n.detail===void 0||ve.string(n.detail))&&(n.deprecated===void 0||ve.boolean(n.deprecated))&&(n.children===void 0||Array.isArray(n.children))&&(n.tags===void 0||Array.isArray(n.tags))}a(r,"is"),y(r,"is"),e.is=r})(aI||(aI={})),(function(e){e.Empty="",e.QuickFix="quickfix",e.Refactor="refactor",e.RefactorExtract="refactor.extract",e.RefactorInline="refactor.inline",e.RefactorRewrite="refactor.rewrite",e.Source="source",e.SourceOrganizeImports="source.organizeImports",e.SourceFixAll="source.fixAll"})(sI||(sI={})),(function(e){e.Invoked=1,e.Automatic=2})(J0||(J0={})),(function(e){function t(i,n,s){let o={diagnostics:i};return n!=null&&(o.only=n),s!=null&&(o.triggerKind=s),o}a(t,"create"),y(t,"create"),e.create=t;function r(i){let n=i;return ve.defined(n)&&ve.typedArray(n.diagnostics,K0.is)&&(n.only===void 0||ve.typedArray(n.only,ve.string))&&(n.triggerKind===void 0||n.triggerKind===J0.Invoked||n.triggerKind===J0.Automatic)}a(r,"is"),y(r,"is"),e.is=r})(oI||(oI={})),(function(e){function t(i,n,s){let o={title:i},l=!0;return typeof n=="string"?(l=!1,o.kind=n):Zh.is(n)?o.command=n:o.edit=n,l&&s!==void 0&&(o.kind=s),o}a(t,"create"),y(t,"create"),e.create=t;function r(i){let n=i;return n&&ve.string(n.title)&&(n.diagnostics===void 0||ve.typedArray(n.diagnostics,K0.is))&&(n.kind===void 0||ve.string(n.kind))&&(n.edit!==void 0||n.command!==void 0)&&(n.command===void 0||Zh.is(n.command))&&(n.isPreferred===void 0||ve.boolean(n.isPreferred))&&(n.edit===void 0||gC.is(n.edit))}a(r,"is"),y(r,"is"),e.is=r})(lI||(lI={})),(function(e){function t(i,n){let s={range:i};return ve.defined(n)&&(s.data=n),s}a(t,"create"),y(t,"create"),e.create=t;function r(i){let n=i;return ve.defined(n)&&br.is(n.range)&&(ve.undefined(n.command)||Zh.is(n.command))}a(r,"is"),y(r,"is"),e.is=r})(cI||(cI={})),(function(e){function t(i,n){return{tabSize:i,insertSpaces:n}}a(t,"create"),y(t,"create"),e.create=t;function r(i){let n=i;return ve.defined(n)&&ve.uinteger(n.tabSize)&&ve.boolean(n.insertSpaces)}a(r,"is"),y(r,"is"),e.is=r})(uI||(uI={})),(function(e){function t(i,n,s){return{range:i,target:n,data:s}}a(t,"create"),y(t,"create"),e.create=t;function r(i){let n=i;return ve.defined(n)&&br.is(n.range)&&(ve.undefined(n.target)||ve.string(n.target))}a(r,"is"),y(r,"is"),e.is=r})(hI||(hI={})),(function(e){function t(i,n){return{range:i,parent:n}}a(t,"create"),y(t,"create"),e.create=t;function r(i){let n=i;return ve.objectLiteral(n)&&br.is(n.range)&&(n.parent===void 0||e.is(n.parent))}a(r,"is"),y(r,"is"),e.is=r})(dI||(dI={})),(function(e){e.namespace="namespace",e.type="type",e.class="class",e.enum="enum",e.interface="interface",e.struct="struct",e.typeParameter="typeParameter",e.parameter="parameter",e.variable="variable",e.property="property",e.enumMember="enumMember",e.event="event",e.function="function",e.method="method",e.macro="macro",e.keyword="keyword",e.modifier="modifier",e.comment="comment",e.string="string",e.number="number",e.regexp="regexp",e.operator="operator",e.decorator="decorator"})(fI||(fI={})),(function(e){e.declaration="declaration",e.definition="definition",e.readonly="readonly",e.static="static",e.deprecated="deprecated",e.abstract="abstract",e.async="async",e.modification="modification",e.documentation="documentation",e.defaultLibrary="defaultLibrary"})(pI||(pI={})),(function(e){function t(r){let i=r;return ve.objectLiteral(i)&&(i.resultId===void 0||typeof i.resultId=="string")&&Array.isArray(i.data)&&(i.data.length===0||typeof i.data[0]=="number")}a(t,"is"),y(t,"is"),e.is=t})(mI||(mI={})),(function(e){function t(i,n){return{range:i,text:n}}a(t,"create"),y(t,"create"),e.create=t;function r(i){let n=i;return n!=null&&br.is(n.range)&&ve.string(n.text)}a(r,"is"),y(r,"is"),e.is=r})(gI||(gI={})),(function(e){function t(i,n,s){return{range:i,variableName:n,caseSensitiveLookup:s}}a(t,"create"),y(t,"create"),e.create=t;function r(i){let n=i;return n!=null&&br.is(n.range)&&ve.boolean(n.caseSensitiveLookup)&&(ve.string(n.variableName)||n.variableName===void 0)}a(r,"is"),y(r,"is"),e.is=r})(yI||(yI={})),(function(e){function t(i,n){return{range:i,expression:n}}a(t,"create"),y(t,"create"),e.create=t;function r(i){let n=i;return n!=null&&br.is(n.range)&&(ve.string(n.expression)||n.expression===void 0)}a(r,"is"),y(r,"is"),e.is=r})(xI||(xI={})),(function(e){function t(i,n){return{frameId:i,stoppedLocation:n}}a(t,"create"),y(t,"create"),e.create=t;function r(i){let n=i;return ve.defined(n)&&br.is(i.stoppedLocation)}a(r,"is"),y(r,"is"),e.is=r})(bI||(bI={})),(function(e){e.Type=1,e.Parameter=2;function t(r){return r===1||r===2}a(t,"is"),y(t,"is"),e.is=t})(xC||(xC={})),(function(e){function t(i){return{value:i}}a(t,"create"),y(t,"create"),e.create=t;function r(i){let n=i;return ve.objectLiteral(n)&&(n.tooltip===void 0||ve.string(n.tooltip)||Hp.is(n.tooltip))&&(n.location===void 0||Y0.is(n.location))&&(n.command===void 0||Zh.is(n.command))}a(r,"is"),y(r,"is"),e.is=r})(bC||(bC={})),(function(e){function t(i,n,s){let o={position:i,label:n};return s!==void 0&&(o.kind=s),o}a(t,"create"),y(t,"create"),e.create=t;function r(i){let n=i;return ve.objectLiteral(n)&&Er.is(n.position)&&(ve.string(n.label)||ve.typedArray(n.label,bC.is))&&(n.kind===void 0||xC.is(n.kind))&&n.textEdits===void 0||ve.typedArray(n.textEdits,$o.is)&&(n.tooltip===void 0||ve.string(n.tooltip)||Hp.is(n.tooltip))&&(n.paddingLeft===void 0||ve.boolean(n.paddingLeft))&&(n.paddingRight===void 0||ve.boolean(n.paddingRight))}a(r,"is"),y(r,"is"),e.is=r})(TI||(TI={})),(function(e){function t(r){return{kind:"snippet",value:r}}a(t,"createSnippet"),y(t,"createSnippet"),e.createSnippet=t})(kI||(kI={})),(function(e){function t(r,i,n,s){return{insertText:r,filterText:i,range:n,command:s}}a(t,"create"),y(t,"create"),e.create=t})(CI||(CI={})),(function(e){function t(r){return{items:r}}a(t,"create"),y(t,"create"),e.create=t})(vI||(vI={})),(function(e){e.Invoked=0,e.Automatic=1})(SI||(SI={})),(function(e){function t(r,i){return{range:r,text:i}}a(t,"create"),y(t,"create"),e.create=t})(_I||(_I={})),(function(e){function t(r,i){return{triggerKind:r,selectedCompletionInfo:i}}a(t,"create"),y(t,"create"),e.create=t})(wI||(wI={})),(function(e){function t(r){let i=r;return ve.objectLiteral(i)&&fC.is(i.uri)&&ve.string(i.name)}a(t,"is"),y(t,"is"),e.is=t})(EI||(EI={})),Xie=[`
`,`\r
`,"\r"],(function(e){function t(s,o,l,u){return new cre(s,o,l,u)}a(t,"create"),y(t,"create"),e.create=t;function r(s){let o=s;return!!(ve.defined(o)&&ve.string(o.uri)&&(ve.undefined(o.languageId)||ve.string(o.languageId))&&ve.uinteger(o.lineCount)&&ve.func(o.getText)&&ve.func(o.positionAt)&&ve.func(o.offsetAt))}a(r,"is"),y(r,"is"),e.is=r;function i(s,o){let l=s.getText(),u=n(o,(d,f)=>{let p=d.range.start.line-f.range.start.line;return p===0?d.range.start.character-f.range.start.character:p}),h=l.length;for(let d=u.length-1;d>=0;d--){let f=u[d],p=s.offsetAt(f.range.start),m=s.offsetAt(f.range.end);if(m<=h)l=l.substring(0,p)+f.newText+l.substring(m,l.length);else throw new Error("Overlapping edit");h=p}return l}a(i,"applyEdits"),y(i,"applyEdits"),e.applyEdits=i;function n(s,o){if(s.length<=1)return s;let l=s.length/2|0,u=s.slice(0,l),h=s.slice(l);n(u,o),n(h,o);let d=0,f=0,p=0;for(;d<u.length&&f<h.length;)o(u[d],h[f])<=0?s[p++]=u[d++]:s[p++]=h[f++];for(;d<u.length;)s[p++]=u[d++];for(;f<h.length;)s[p++]=h[f++];return s}a(n,"mergeSort2"),y(n,"mergeSort")})(AI||(AI={})),cre=class{static{a(this,"FullTextDocument")}static{y(this,"FullTextDocument")}constructor(e,t,r,i){this._uri=e,this._languageId=t,this._version=r,this._content=i,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(e){if(e){let t=this.offsetAt(e.start),r=this.offsetAt(e.end);return this._content.substring(t,r)}return this._content}update(e,t){this._content=e.text,this._version=t,this._lineOffsets=void 0}getLineOffsets(){if(this._lineOffsets===void 0){let e=[],t=this._content,r=!0;for(let i=0;i<t.length;i++){r&&(e.push(i),r=!1);let n=t.charAt(i);r=n==="\r"||n===`
`,n==="\r"&&i+1<t.length&&t.charAt(i+1)===`
`&&i++}r&&t.length>0&&e.push(t.length),this._lineOffsets=e}return this._lineOffsets}positionAt(e){e=Math.max(Math.min(e,this._content.length),0);let t=this.getLineOffsets(),r=0,i=t.length;if(i===0)return Er.create(0,e);for(;r<i;){let s=Math.floor((r+i)/2);t[s]>e?i=s:r=s+1}let n=r-1;return Er.create(n,e-t[n])}offsetAt(e){let t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;let r=t[e.line],i=e.line+1<t.length?t[e.line+1]:this._content.length;return Math.max(Math.min(r+e.character,i),r)}get lineCount(){return this.getLineOffsets().length}},(function(e){let t=Object.prototype.toString;function r(m){return typeof m<"u"}a(r,"defined"),y(r,"defined"),e.defined=r;function i(m){return typeof m>"u"}a(i,"undefined2"),y(i,"undefined"),e.undefined=i;function n(m){return m===!0||m===!1}a(n,"boolean"),y(n,"boolean"),e.boolean=n;function s(m){return t.call(m)==="[object String]"}a(s,"string"),y(s,"string"),e.string=s;function o(m){return t.call(m)==="[object Number]"}a(o,"number"),y(o,"number"),e.number=o;function l(m,g,x){return t.call(m)==="[object Number]"&&g<=m&&m<=x}a(l,"numberRange"),y(l,"numberRange"),e.numberRange=l;function u(m){return t.call(m)==="[object Number]"&&-2147483648<=m&&m<=2147483647}a(u,"integer2"),y(u,"integer"),e.integer=u;function h(m){return t.call(m)==="[object Number]"&&0<=m&&m<=2147483647}a(h,"uinteger2"),y(h,"uinteger"),e.uinteger=h;function d(m){return t.call(m)==="[object Function]"}a(d,"func"),y(d,"func"),e.func=d;function f(m){return m!==null&&typeof m=="object"}a(f,"objectLiteral"),y(f,"objectLiteral"),e.objectLiteral=f;function p(m,g){return Array.isArray(m)&&m.every(g)}a(p,"typedArray"),y(p,"typedArray"),e.typedArray=p})(ve||(ve={}))}}),Nd=nr({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/ral.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t;function r(){if(t===void 0)throw new Error("No runtime abstraction layer installed");return t}a(r,"RAL"),y(r,"RAL"),(function(i){function n(s){if(s===void 0)throw new Error("No runtime abstraction layer provided");t=s}a(n,"install"),y(n,"install"),i.install=n})(r||(r={})),e.default=r}}),G1=nr({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/is.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.stringArray=e.array=e.func=e.error=e.number=e.string=e.boolean=void 0;function t(u){return u===!0||u===!1}a(t,"boolean"),y(t,"boolean"),e.boolean=t;function r(u){return typeof u=="string"||u instanceof String}a(r,"string"),y(r,"string"),e.string=r;function i(u){return typeof u=="number"||u instanceof Number}a(i,"number"),y(i,"number"),e.number=i;function n(u){return u instanceof Error}a(n,"error"),y(n,"error"),e.error=n;function s(u){return typeof u=="function"}a(s,"func"),y(s,"func"),e.func=s;function o(u){return Array.isArray(u)}a(o,"array"),y(o,"array"),e.array=o;function l(u){return o(u)&&u.every(h=>r(h))}a(l,"stringArray"),y(l,"stringArray"),e.stringArray=l}}),Cm=nr({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/events.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Emitter=e.Event=void 0;var t=Nd(),r;(function(s){let o={dispose(){}};s.None=function(){return o}})(r||(e.Event=r={}));var i=class{static{a(this,"CallbackList")}static{y(this,"CallbackList")}add(s,o=null,l){this._callbacks||(this._callbacks=[],this._contexts=[]),this._callbacks.push(s),this._contexts.push(o),Array.isArray(l)&&l.push({dispose:y(()=>this.remove(s,o),"dispose")})}remove(s,o=null){if(!this._callbacks)return;let l=!1;for(let u=0,h=this._callbacks.length;u<h;u++)if(this._callbacks[u]===s)if(this._contexts[u]===o){this._callbacks.splice(u,1),this._contexts.splice(u,1);return}else l=!0;if(l)throw new Error("When adding a listener with a context, you should remove it with the same context")}invoke(...s){if(!this._callbacks)return[];let o=[],l=this._callbacks.slice(0),u=this._contexts.slice(0);for(let h=0,d=l.length;h<d;h++)try{o.push(l[h].apply(u[h],s))}catch(f){(0,t.default)().console.error(f)}return o}isEmpty(){return!this._callbacks||this._callbacks.length===0}dispose(){this._callbacks=void 0,this._contexts=void 0}},n=class Qie{static{a(this,"_Emitter")}static{y(this,"Emitter")}constructor(o){this._options=o}get event(){return this._event||(this._event=(o,l,u)=>{this._callbacks||(this._callbacks=new i),this._options&&this._options.onFirstListenerAdd&&this._callbacks.isEmpty()&&this._options.onFirstListenerAdd(this),this._callbacks.add(o,l);let h={dispose:y(()=>{this._callbacks&&(this._callbacks.remove(o,l),h.dispose=Qie._noop,this._options&&this._options.onLastListenerRemove&&this._callbacks.isEmpty()&&this._options.onLastListenerRemove(this))},"dispose")};return Array.isArray(u)&&u.push(h),h}),this._event}fire(o){this._callbacks&&this._callbacks.invoke.call(this._callbacks,o)}dispose(){this._callbacks&&(this._callbacks.dispose(),this._callbacks=void 0)}};e.Emitter=n,n._noop=function(){}}}),_v=nr({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/cancellation.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CancellationTokenSource=e.CancellationToken=void 0;var t=Nd(),r=G1(),i=Cm(),n;(function(u){u.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:i.Event.None}),u.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:i.Event.None});function h(d){let f=d;return f&&(f===u.None||f===u.Cancelled||r.boolean(f.isCancellationRequested)&&!!f.onCancellationRequested)}a(h,"is"),y(h,"is"),u.is=h})(n||(e.CancellationToken=n={}));var s=Object.freeze(function(u,h){let d=(0,t.default)().timer.setTimeout(u.bind(h),0);return{dispose(){d.dispose()}}}),o=class{static{a(this,"MutableToken")}static{y(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?s:(this._emitter||(this._emitter=new i.Emitter),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=void 0)}},l=class{static{a(this,"CancellationTokenSource3")}static{y(this,"CancellationTokenSource")}get token(){return this._token||(this._token=new o),this._token}cancel(){this._token?this._token.cancel():this._token=n.Cancelled}dispose(){this._token?this._token instanceof o&&this._token.dispose():this._token=n.None}};e.CancellationTokenSource=l}}),Zie=nr({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/messages.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Message=e.NotificationType9=e.NotificationType8=e.NotificationType7=e.NotificationType6=e.NotificationType5=e.NotificationType4=e.NotificationType3=e.NotificationType2=e.NotificationType1=e.NotificationType0=e.NotificationType=e.RequestType9=e.RequestType8=e.RequestType7=e.RequestType6=e.RequestType5=e.RequestType4=e.RequestType3=e.RequestType2=e.RequestType1=e.RequestType=e.RequestType0=e.AbstractMessageSignature=e.ParameterStructures=e.ResponseError=e.ErrorCodes=void 0;var t=G1(),r;(function(A){A.ParseError=-32700,A.InvalidRequest=-32600,A.MethodNotFound=-32601,A.InvalidParams=-32602,A.InternalError=-32603,A.jsonrpcReservedErrorRangeStart=-32099,A.serverErrorStart=-32099,A.MessageWriteError=-32099,A.MessageReadError=-32098,A.PendingResponseRejected=-32097,A.ConnectionInactive=-32096,A.ServerNotInitialized=-32002,A.UnknownErrorCode=-32001,A.jsonrpcReservedErrorRangeEnd=-32e3,A.serverErrorEnd=-32e3})(r||(e.ErrorCodes=r={}));var i=class Jie extends Error{static{a(this,"_ResponseError")}static{y(this,"ResponseError")}constructor(D,R,N){super(R),this.code=t.number(D)?D:r.UnknownErrorCode,this.data=N,Object.setPrototypeOf(this,Jie.prototype)}toJson(){let D={code:this.code,message:this.message};return this.data!==void 0&&(D.data=this.data),D}};e.ResponseError=i;var n=class TC{static{a(this,"_ParameterStructures")}static{y(this,"ParameterStructures")}constructor(D){this.kind=D}static is(D){return D===TC.auto||D===TC.byName||D===TC.byPosition}toString(){return this.kind}};e.ParameterStructures=n,n.auto=new n("auto"),n.byPosition=new n("byPosition"),n.byName=new n("byName");var s=class{static{a(this,"AbstractMessageSignature")}static{y(this,"AbstractMessageSignature")}constructor(A,D){this.method=A,this.numberOfParams=D}get parameterStructures(){return n.auto}};e.AbstractMessageSignature=s;var o=class extends s{static{a(this,"RequestType0")}static{y(this,"RequestType0")}constructor(A){super(A,0)}};e.RequestType0=o;var l=class extends s{static{a(this,"RequestType")}static{y(this,"RequestType")}constructor(A,D=n.auto){super(A,1),this._parameterStructures=D}get parameterStructures(){return this._parameterStructures}};e.RequestType=l;var u=class extends s{static{a(this,"RequestType1")}static{y(this,"RequestType1")}constructor(A,D=n.auto){super(A,1),this._parameterStructures=D}get parameterStructures(){return this._parameterStructures}};e.RequestType1=u;var h=class extends s{static{a(this,"RequestType2")}static{y(this,"RequestType2")}constructor(A){super(A,2)}};e.RequestType2=h;var d=class extends s{static{a(this,"RequestType3")}static{y(this,"RequestType3")}constructor(A){super(A,3)}};e.RequestType3=d;var f=class extends s{static{a(this,"RequestType4")}static{y(this,"RequestType4")}constructor(A){super(A,4)}};e.RequestType4=f;var p=class extends s{static{a(this,"RequestType5")}static{y(this,"RequestType5")}constructor(A){super(A,5)}};e.RequestType5=p;var m=class extends s{static{a(this,"RequestType6")}static{y(this,"RequestType6")}constructor(A){super(A,6)}};e.RequestType6=m;var g=class extends s{static{a(this,"RequestType7")}static{y(this,"RequestType7")}constructor(A){super(A,7)}};e.RequestType7=g;var x=class extends s{static{a(this,"RequestType8")}static{y(this,"RequestType8")}constructor(A){super(A,8)}};e.RequestType8=x;var b=class extends s{static{a(this,"RequestType9")}static{y(this,"RequestType9")}constructor(A){super(A,9)}};e.RequestType9=b;var T=class extends s{static{a(this,"NotificationType")}static{y(this,"NotificationType")}constructor(A,D=n.auto){super(A,1),this._parameterStructures=D}get parameterStructures(){return this._parameterStructures}};e.NotificationType=T;var k=class extends s{static{a(this,"NotificationType0")}static{y(this,"NotificationType0")}constructor(A){super(A,0)}};e.NotificationType0=k;var C=class extends s{static{a(this,"NotificationType1")}static{y(this,"NotificationType1")}constructor(A,D=n.auto){super(A,1),this._parameterStructures=D}get parameterStructures(){return this._parameterStructures}};e.NotificationType1=C;var S=class extends s{static{a(this,"NotificationType2")}static{y(this,"NotificationType2")}constructor(A){super(A,2)}};e.NotificationType2=S;var w=class extends s{static{a(this,"NotificationType3")}static{y(this,"NotificationType3")}constructor(A){super(A,3)}};e.NotificationType3=w;var _=class extends s{static{a(this,"NotificationType4")}static{y(this,"NotificationType4")}constructor(A){super(A,4)}};e.NotificationType4=_;var L=class extends s{static{a(this,"NotificationType5")}static{y(this,"NotificationType5")}constructor(A){super(A,5)}};e.NotificationType5=L;var I=class extends s{static{a(this,"NotificationType6")}static{y(this,"NotificationType6")}constructor(A){super(A,6)}};e.NotificationType6=I;var B=class extends s{static{a(this,"NotificationType7")}static{y(this,"NotificationType7")}constructor(A){super(A,7)}};e.NotificationType7=B;var G=class extends s{static{a(this,"NotificationType8")}static{y(this,"NotificationType8")}constructor(A){super(A,8)}};e.NotificationType8=G;var P=class extends s{static{a(this,"NotificationType9")}static{y(this,"NotificationType9")}constructor(A){super(A,9)}};e.NotificationType9=P;var F;(function(A){function D($){let E=$;return E&&t.string(E.method)&&(t.string(E.id)||t.number(E.id))}a(D,"isRequest"),y(D,"isRequest"),A.isRequest=D;function R($){let E=$;return E&&t.string(E.method)&&$.id===void 0}a(R,"isNotification"),y(R,"isNotification"),A.isNotification=R;function N($){let E=$;return E&&(E.result!==void 0||!!E.error)&&(t.string(E.id)||t.number(E.id)||E.id===null)}a(N,"isResponse"),y(N,"isResponse"),A.isResponse=N})(F||(e.Message=F={}))}}),ene=nr({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/linkedMap.js"(e){"use strict";var t;Object.defineProperty(e,"__esModule",{value:!0}),e.LRUCache=e.LinkedMap=e.Touch=void 0;var r;(function(s){s.None=0,s.First=1,s.AsOld=s.First,s.Last=2,s.AsNew=s.Last})(r||(e.Touch=r={}));var i=class{static{a(this,"LinkedMap")}static{y(this,"LinkedMap")}constructor(){this[t]="LinkedMap",this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0,this._state=0}clear(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0,this._state++}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}get first(){return this._head?.value}get last(){return this._tail?.value}has(s){return this._map.has(s)}get(s,o=r.None){let l=this._map.get(s);if(l)return o!==r.None&&this.touch(l,o),l.value}set(s,o,l=r.None){let u=this._map.get(s);if(u)u.value=o,l!==r.None&&this.touch(u,l);else{switch(u={key:s,value:o,next:void 0,previous:void 0},l){case r.None:this.addItemLast(u);break;case r.First:this.addItemFirst(u);break;case r.Last:this.addItemLast(u);break;default:this.addItemLast(u);break}this._map.set(s,u),this._size++}return this}delete(s){return!!this.remove(s)}remove(s){let o=this._map.get(s);if(o)return this._map.delete(s),this.removeItem(o),this._size--,o.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");let s=this._head;return this._map.delete(s.key),this.removeItem(s),this._size--,s.value}forEach(s,o){let l=this._state,u=this._head;for(;u;){if(o?s.bind(o)(u.value,u.key,this):s(u.value,u.key,this),this._state!==l)throw new Error("LinkedMap got modified during iteration.");u=u.next}}keys(){let s=this._state,o=this._head,l={[Symbol.iterator]:()=>l,next:y(()=>{if(this._state!==s)throw new Error("LinkedMap got modified during iteration.");if(o){let u={value:o.key,done:!1};return o=o.next,u}else return{value:void 0,done:!0}},"next")};return l}values(){let s=this._state,o=this._head,l={[Symbol.iterator]:()=>l,next:y(()=>{if(this._state!==s)throw new Error("LinkedMap got modified during iteration.");if(o){let u={value:o.value,done:!1};return o=o.next,u}else return{value:void 0,done:!0}},"next")};return l}entries(){let s=this._state,o=this._head,l={[Symbol.iterator]:()=>l,next:y(()=>{if(this._state!==s)throw new Error("LinkedMap got modified during iteration.");if(o){let u={value:[o.key,o.value],done:!1};return o=o.next,u}else return{value:void 0,done:!0}},"next")};return l}[(t=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(s){if(s>=this.size)return;if(s===0){this.clear();return}let o=this._head,l=this.size;for(;o&&l>s;)this._map.delete(o.key),o=o.next,l--;this._head=o,this._size=l,o&&(o.previous=void 0),this._state++}addItemFirst(s){if(!this._head&&!this._tail)this._tail=s;else if(this._head)s.next=this._head,this._head.previous=s;else throw new Error("Invalid list");this._head=s,this._state++}addItemLast(s){if(!this._head&&!this._tail)this._head=s;else if(this._tail)s.previous=this._tail,this._tail.next=s;else throw new Error("Invalid list");this._tail=s,this._state++}removeItem(s){if(s===this._head&&s===this._tail)this._head=void 0,this._tail=void 0;else if(s===this._head){if(!s.next)throw new Error("Invalid list");s.next.previous=void 0,this._head=s.next}else if(s===this._tail){if(!s.previous)throw new Error("Invalid list");s.previous.next=void 0,this._tail=s.previous}else{let o=s.next,l=s.previous;if(!o||!l)throw new Error("Invalid list");o.previous=l,l.next=o}s.next=void 0,s.previous=void 0,this._state++}touch(s,o){if(!this._head||!this._tail)throw new Error("Invalid list");if(!(o!==r.First&&o!==r.Last)){if(o===r.First){if(s===this._head)return;let l=s.next,u=s.previous;s===this._tail?(u.next=void 0,this._tail=u):(l.previous=u,u.next=l),s.previous=void 0,s.next=this._head,this._head.previous=s,this._head=s,this._state++}else if(o===r.Last){if(s===this._tail)return;let l=s.next,u=s.previous;s===this._head?(l.previous=void 0,this._head=l):(l.previous=u,u.next=l),s.next=void 0,s.previous=this._tail,this._tail.next=s,this._tail=s,this._state++}}}toJSON(){let s=[];return this.forEach((o,l)=>{s.push([l,o])}),s}fromJSON(s){this.clear();for(let[o,l]of s)this.set(o,l)}};e.LinkedMap=i;var n=class extends i{static{a(this,"LRUCache")}static{y(this,"LRUCache")}constructor(s,o=1){super(),this._limit=s,this._ratio=Math.min(Math.max(0,o),1)}get limit(){return this._limit}set limit(s){this._limit=s,this.checkTrim()}get ratio(){return this._ratio}set ratio(s){this._ratio=Math.min(Math.max(0,s),1),this.checkTrim()}get(s,o=r.AsNew){return super.get(s,o)}peek(s){return super.get(s,r.None)}set(s,o){return super.set(s,o,r.Last),this.checkTrim(),this}checkTrim(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))}};e.LRUCache=n}}),Z7e=nr({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/disposable.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Disposable=void 0;var t;(function(r){function i(n){return{dispose:n}}a(i,"create"),y(i,"create"),r.create=i})(t||(e.Disposable=t={}))}}),J7e=nr({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/sharedArrayCancellation.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SharedArrayReceiverStrategy=e.SharedArraySenderStrategy=void 0;var t=_v(),r;(function(l){l.Continue=0,l.Cancelled=1})(r||(r={}));var i=class{static{a(this,"SharedArraySenderStrategy")}static{y(this,"SharedArraySenderStrategy")}constructor(){this.buffers=new Map}enableCancellation(l){if(l.id===null)return;let u=new SharedArrayBuffer(4),h=new Int32Array(u,0,1);h[0]=r.Continue,this.buffers.set(l.id,u),l.$cancellationData=u}async sendCancellation(l,u){let h=this.buffers.get(u);if(h===void 0)return;let d=new Int32Array(h,0,1);Atomics.store(d,0,r.Cancelled)}cleanup(l){this.buffers.delete(l)}dispose(){this.buffers.clear()}};e.SharedArraySenderStrategy=i;var n=class{static{a(this,"SharedArrayBufferCancellationToken")}static{y(this,"SharedArrayBufferCancellationToken")}constructor(l){this.data=new Int32Array(l,0,1)}get isCancellationRequested(){return Atomics.load(this.data,0)===r.Cancelled}get onCancellationRequested(){throw new Error("Cancellation over SharedArrayBuffer doesn't support cancellation events")}},s=class{static{a(this,"SharedArrayBufferCancellationTokenSource")}static{y(this,"SharedArrayBufferCancellationTokenSource")}constructor(l){this.token=new n(l)}cancel(){}dispose(){}},o=class{static{a(this,"SharedArrayReceiverStrategy")}static{y(this,"SharedArrayReceiverStrategy")}constructor(){this.kind="request"}createCancellationTokenSource(l){let u=l.$cancellationData;return u===void 0?new t.CancellationTokenSource:new s(u)}};e.SharedArrayReceiverStrategy=o}}),tne=nr({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/semaphore.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Semaphore=void 0;var t=Nd(),r=class{static{a(this,"Semaphore")}static{y(this,"Semaphore")}constructor(i=1){if(i<=0)throw new Error("Capacity must be greater than 0");this._capacity=i,this._active=0,this._waiting=[]}lock(i){return new Promise((n,s)=>{this._waiting.push({thunk:i,resolve:n,reject:s}),this.runNext()})}get active(){return this._active}runNext(){this._waiting.length===0||this._active===this._capacity||(0,t.default)().timer.setImmediate(()=>this.doRunNext())}doRunNext(){if(this._waiting.length===0||this._active===this._capacity)return;let i=this._waiting.shift();if(this._active++,this._active>this._capacity)throw new Error("To many thunks active");try{let n=i.thunk();n instanceof Promise?n.then(s=>{this._active--,i.resolve(s),this.runNext()},s=>{this._active--,i.reject(s),this.runNext()}):(this._active--,i.resolve(n),this.runNext())}catch(n){this._active--,i.reject(n),this.runNext()}}};e.Semaphore=r}}),e$e=nr({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/messageReader.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ReadableStreamMessageReader=e.AbstractMessageReader=e.MessageReader=void 0;var t=Nd(),r=G1(),i=Cm(),n=tne(),s;(function(h){function d(f){let p=f;return p&&r.func(p.listen)&&r.func(p.dispose)&&r.func(p.onError)&&r.func(p.onClose)&&r.func(p.onPartialMessage)}a(d,"is"),y(d,"is"),h.is=d})(s||(e.MessageReader=s={}));var o=class{static{a(this,"AbstractMessageReader")}static{y(this,"AbstractMessageReader")}constructor(){this.errorEmitter=new i.Emitter,this.closeEmitter=new i.Emitter,this.partialMessageEmitter=new i.Emitter}dispose(){this.errorEmitter.dispose(),this.closeEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(h){this.errorEmitter.fire(this.asError(h))}get onClose(){return this.closeEmitter.event}fireClose(){this.closeEmitter.fire(void 0)}get onPartialMessage(){return this.partialMessageEmitter.event}firePartialMessage(h){this.partialMessageEmitter.fire(h)}asError(h){return h instanceof Error?h:new Error(`Reader received error. Reason: ${r.string(h.message)?h.message:"unknown"}`)}};e.AbstractMessageReader=o;var l;(function(h){function d(f){let p,m,g,x=new Map,b,T=new Map;if(f===void 0||typeof f=="string")p=f??"utf-8";else{if(p=f.charset??"utf-8",f.contentDecoder!==void 0&&(g=f.contentDecoder,x.set(g.name,g)),f.contentDecoders!==void 0)for(let k of f.contentDecoders)x.set(k.name,k);if(f.contentTypeDecoder!==void 0&&(b=f.contentTypeDecoder,T.set(b.name,b)),f.contentTypeDecoders!==void 0)for(let k of f.contentTypeDecoders)T.set(k.name,k)}return b===void 0&&(b=(0,t.default)().applicationJson.decoder,T.set(b.name,b)),{charset:p,contentDecoder:g,contentDecoders:x,contentTypeDecoder:b,contentTypeDecoders:T}}a(d,"fromOptions"),y(d,"fromOptions"),h.fromOptions=d})(l||(l={}));var u=class extends o{static{a(this,"ReadableStreamMessageReader")}static{y(this,"ReadableStreamMessageReader")}constructor(h,d){super(),this.readable=h,this.options=l.fromOptions(d),this.buffer=(0,t.default)().messageBuffer.create(this.options.charset),this._partialMessageTimeout=1e4,this.nextMessageLength=-1,this.messageToken=0,this.readSemaphore=new n.Semaphore(1)}set partialMessageTimeout(h){this._partialMessageTimeout=h}get partialMessageTimeout(){return this._partialMessageTimeout}listen(h){this.nextMessageLength=-1,this.messageToken=0,this.partialMessageTimer=void 0,this.callback=h;let d=this.readable.onData(f=>{this.onData(f)});return this.readable.onError(f=>this.fireError(f)),this.readable.onClose(()=>this.fireClose()),d}onData(h){try{for(this.buffer.append(h);;){if(this.nextMessageLength===-1){let f=this.buffer.tryReadHeaders(!0);if(!f)return;let p=f.get("content-length");if(!p){this.fireError(new Error(`Header must provide a Content-Length property.
${JSON.stringify(Object.fromEntries(f))}`));return}let m=parseInt(p);if(isNaN(m)){this.fireError(new Error(`Content-Length value must be a number. Got ${p}`));return}this.nextMessageLength=m}let d=this.buffer.tryReadBody(this.nextMessageLength);if(d===void 0){this.setPartialMessageTimer();return}this.clearPartialMessageTimer(),this.nextMessageLength=-1,this.readSemaphore.lock(async()=>{let f=this.options.contentDecoder!==void 0?await this.options.contentDecoder.decode(d):d,p=await this.options.contentTypeDecoder.decode(f,this.options);this.callback(p)}).catch(f=>{this.fireError(f)})}}catch(d){this.fireError(d)}}clearPartialMessageTimer(){this.partialMessageTimer&&(this.partialMessageTimer.dispose(),this.partialMessageTimer=void 0)}setPartialMessageTimer(){this.clearPartialMessageTimer(),!(this._partialMessageTimeout<=0)&&(this.partialMessageTimer=(0,t.default)().timer.setTimeout((h,d)=>{this.partialMessageTimer=void 0,h===this.messageToken&&(this.firePartialMessage({messageToken:h,waitingTime:d}),this.setPartialMessageTimer())},this._partialMessageTimeout,this.messageToken,this._partialMessageTimeout))}};e.ReadableStreamMessageReader=u}}),t$e=nr({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/messageWriter.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.WriteableStreamMessageWriter=e.AbstractMessageWriter=e.MessageWriter=void 0;var t=Nd(),r=G1(),i=tne(),n=Cm(),s="Content-Length: ",o=`\r
`,l;(function(f){function p(m){let g=m;return g&&r.func(g.dispose)&&r.func(g.onClose)&&r.func(g.onError)&&r.func(g.write)}a(p,"is"),y(p,"is"),f.is=p})(l||(e.MessageWriter=l={}));var u=class{static{a(this,"AbstractMessageWriter")}static{y(this,"AbstractMessageWriter")}constructor(){this.errorEmitter=new n.Emitter,this.closeEmitter=new n.Emitter}dispose(){this.errorEmitter.dispose(),this.closeEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(f,p,m){this.errorEmitter.fire([this.asError(f),p,m])}get onClose(){return this.closeEmitter.event}fireClose(){this.closeEmitter.fire(void 0)}asError(f){return f instanceof Error?f:new Error(`Writer received error. Reason: ${r.string(f.message)?f.message:"unknown"}`)}};e.AbstractMessageWriter=u;var h;(function(f){function p(m){return m===void 0||typeof m=="string"?{charset:m??"utf-8",contentTypeEncoder:(0,t.default)().applicationJson.encoder}:{charset:m.charset??"utf-8",contentEncoder:m.contentEncoder,contentTypeEncoder:m.contentTypeEncoder??(0,t.default)().applicationJson.encoder}}a(p,"fromOptions"),y(p,"fromOptions"),f.fromOptions=p})(h||(h={}));var d=class extends u{static{a(this,"WriteableStreamMessageWriter")}static{y(this,"WriteableStreamMessageWriter")}constructor(f,p){super(),this.writable=f,this.options=h.fromOptions(p),this.errorCount=0,this.writeSemaphore=new i.Semaphore(1),this.writable.onError(m=>this.fireError(m)),this.writable.onClose(()=>this.fireClose())}async write(f){return this.writeSemaphore.lock(async()=>this.options.contentTypeEncoder.encode(f,this.options).then(m=>this.options.contentEncoder!==void 0?this.options.contentEncoder.encode(m):m).then(m=>{let g=[];return g.push(s,m.byteLength.toString(),o),g.push(o),this.doWrite(f,g,m)},m=>{throw this.fireError(m),m}))}async doWrite(f,p,m){try{return await this.writable.write(p.join(""),"ascii"),this.writable.write(m)}catch(g){return this.handleError(g,f),Promise.reject(g)}}handleError(f,p){this.errorCount++,this.fireError(f,p,this.errorCount)}end(){this.writable.end()}};e.WriteableStreamMessageWriter=d}}),r$e=nr({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/messageBuffer.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractMessageBuffer=void 0;var t=13,r=10,i=`\r
`,n=class{static{a(this,"AbstractMessageBuffer")}static{y(this,"AbstractMessageBuffer")}constructor(s="utf-8"){this._encoding=s,this._chunks=[],this._totalLength=0}get encoding(){return this._encoding}append(s){let o=typeof s=="string"?this.fromString(s,this._encoding):s;this._chunks.push(o),this._totalLength+=o.byteLength}tryReadHeaders(s=!1){if(this._chunks.length===0)return;let o=0,l=0,u=0,h=0;e:for(;l<this._chunks.length;){let m=this._chunks[l];for(u=0;u<m.length;){switch(m[u]){case t:switch(o){case 0:o=1;break;case 2:o=3;break;default:o=0}break;case r:switch(o){case 1:o=2;break;case 3:o=4,u++;break e;default:o=0}break;default:o=0}u++}h+=m.byteLength,l++}if(o!==4)return;let d=this._read(h+u),f=new Map,p=this.toString(d,"ascii").split(i);if(p.length<2)return f;for(let m=0;m<p.length-2;m++){let g=p[m],x=g.indexOf(":");if(x===-1)throw new Error(`Message header must separate key and value using ':'
${g}`);let b=g.substr(0,x),T=g.substr(x+1).trim();f.set(s?b.toLowerCase():b,T)}return f}tryReadBody(s){if(!(this._totalLength<s))return this._read(s)}get numberOfBytes(){return this._totalLength}_read(s){if(s===0)return this.emptyBuffer();if(s>this._totalLength)throw new Error("Cannot read so many bytes!");if(this._chunks[0].byteLength===s){let h=this._chunks[0];return this._chunks.shift(),this._totalLength-=s,this.asNative(h)}if(this._chunks[0].byteLength>s){let h=this._chunks[0],d=this.asNative(h,s);return this._chunks[0]=h.slice(s),this._totalLength-=s,d}let o=this.allocNative(s),l=0,u=0;for(;s>0;){let h=this._chunks[u];if(h.byteLength>s){let d=h.slice(0,s);o.set(d,l),l+=s,this._chunks[u]=h.slice(s),this._totalLength-=s,s-=s}else o.set(h,l),l+=h.byteLength,this._chunks.shift(),this._totalLength-=h.byteLength,s-=h.byteLength}return o}};e.AbstractMessageBuffer=n}}),i$e=nr({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/connection.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createMessageConnection=e.ConnectionOptions=e.MessageStrategy=e.CancellationStrategy=e.CancellationSenderStrategy=e.CancellationReceiverStrategy=e.RequestCancellationReceiverStrategy=e.IdCancellationReceiverStrategy=e.ConnectionStrategy=e.ConnectionError=e.ConnectionErrors=e.LogTraceNotification=e.SetTraceNotification=e.TraceFormat=e.TraceValues=e.Trace=e.NullLogger=e.ProgressType=e.ProgressToken=void 0;var t=Nd(),r=G1(),i=Zie(),n=ene(),s=Cm(),o=_v(),l;(function(A){A.type=new i.NotificationType("$/cancelRequest")})(l||(l={}));var u;(function(A){function D(R){return typeof R=="string"||typeof R=="number"}a(D,"is"),y(D,"is"),A.is=D})(u||(e.ProgressToken=u={}));var h;(function(A){A.type=new i.NotificationType("$/progress")})(h||(h={}));var d=class{static{a(this,"ProgressType")}static{y(this,"ProgressType")}constructor(){}};e.ProgressType=d;var f;(function(A){function D(R){return r.func(R)}a(D,"is"),y(D,"is"),A.is=D})(f||(f={})),e.NullLogger=Object.freeze({error:y(()=>{},"error"),warn:y(()=>{},"warn"),info:y(()=>{},"info"),log:y(()=>{},"log")});var p;(function(A){A[A.Off=0]="Off",A[A.Messages=1]="Messages",A[A.Compact=2]="Compact",A[A.Verbose=3]="Verbose"})(p||(e.Trace=p={}));var m;(function(A){A.Off="off",A.Messages="messages",A.Compact="compact",A.Verbose="verbose"})(m||(e.TraceValues=m={})),(function(A){function D(N){if(!r.string(N))return A.Off;switch(N=N.toLowerCase(),N){case"off":return A.Off;case"messages":return A.Messages;case"compact":return A.Compact;case"verbose":return A.Verbose;default:return A.Off}}a(D,"fromString"),y(D,"fromString"),A.fromString=D;function R(N){switch(N){case A.Off:return"off";case A.Messages:return"messages";case A.Compact:return"compact";case A.Verbose:return"verbose";default:return"off"}}a(R,"toString4"),y(R,"toString"),A.toString=R})(p||(e.Trace=p={}));var g;(function(A){A.Text="text",A.JSON="json"})(g||(e.TraceFormat=g={})),(function(A){function D(R){return r.string(R)?(R=R.toLowerCase(),R==="json"?A.JSON:A.Text):A.Text}a(D,"fromString"),y(D,"fromString"),A.fromString=D})(g||(e.TraceFormat=g={}));var x;(function(A){A.type=new i.NotificationType("$/setTrace")})(x||(e.SetTraceNotification=x={}));var b;(function(A){A.type=new i.NotificationType("$/logTrace")})(b||(e.LogTraceNotification=b={}));var T;(function(A){A[A.Closed=1]="Closed",A[A.Disposed=2]="Disposed",A[A.AlreadyListening=3]="AlreadyListening"})(T||(e.ConnectionErrors=T={}));var k=class rne extends Error{static{a(this,"_ConnectionError")}static{y(this,"ConnectionError")}constructor(D,R){super(R),this.code=D,Object.setPrototypeOf(this,rne.prototype)}};e.ConnectionError=k;var C;(function(A){function D(R){let N=R;return N&&r.func(N.cancelUndispatched)}a(D,"is"),y(D,"is"),A.is=D})(C||(e.ConnectionStrategy=C={}));var S;(function(A){function D(R){let N=R;return N&&(N.kind===void 0||N.kind==="id")&&r.func(N.createCancellationTokenSource)&&(N.dispose===void 0||r.func(N.dispose))}a(D,"is"),y(D,"is"),A.is=D})(S||(e.IdCancellationReceiverStrategy=S={}));var w;(function(A){function D(R){let N=R;return N&&N.kind==="request"&&r.func(N.createCancellationTokenSource)&&(N.dispose===void 0||r.func(N.dispose))}a(D,"is"),y(D,"is"),A.is=D})(w||(e.RequestCancellationReceiverStrategy=w={}));var _;(function(A){A.Message=Object.freeze({createCancellationTokenSource(R){return new o.CancellationTokenSource}});function D(R){return S.is(R)||w.is(R)}a(D,"is"),y(D,"is"),A.is=D})(_||(e.CancellationReceiverStrategy=_={}));var L;(function(A){A.Message=Object.freeze({sendCancellation(R,N){return R.sendNotification(l.type,{id:N})},cleanup(R){}});function D(R){let N=R;return N&&r.func(N.sendCancellation)&&r.func(N.cleanup)}a(D,"is"),y(D,"is"),A.is=D})(L||(e.CancellationSenderStrategy=L={}));var I;(function(A){A.Message=Object.freeze({receiver:_.Message,sender:L.Message});function D(R){let N=R;return N&&_.is(N.receiver)&&L.is(N.sender)}a(D,"is"),y(D,"is"),A.is=D})(I||(e.CancellationStrategy=I={}));var B;(function(A){function D(R){let N=R;return N&&r.func(N.handleMessage)}a(D,"is"),y(D,"is"),A.is=D})(B||(e.MessageStrategy=B={}));var G;(function(A){function D(R){let N=R;return N&&(I.is(N.cancellationStrategy)||C.is(N.connectionStrategy)||B.is(N.messageStrategy))}a(D,"is"),y(D,"is"),A.is=D})(G||(e.ConnectionOptions=G={}));var P;(function(A){A[A.New=1]="New",A[A.Listening=2]="Listening",A[A.Closed=3]="Closed",A[A.Disposed=4]="Disposed"})(P||(P={}));function F(A,D,R,N){let $=R!==void 0?R:e.NullLogger,E=0,M=0,V=0,O="2.0",z,U=new Map,K,j=new Map,ae=new Map,X,de=new n.LinkedMap,le=new Map,ge=new Set,he=new Map,te=p.Off,Le=g.Text,xe,ye=P.New,be=new s.Emitter,Ce=new s.Emitter,Oe=new s.Emitter,Ae=new s.Emitter,st=new s.Emitter,ce=N&&N.cancellationStrategy?N.cancellationStrategy:I.Message;function Mt(Z){if(Z===null)throw new Error("Can't send requests with id null since the response can't be correlated.");return"req-"+Z.toString()}a(Mt,"createRequestQueueKey"),y(Mt,"createRequestQueueKey");function fe(Z){return Z===null?"res-unknown-"+(++V).toString():"res-"+Z.toString()}a(fe,"createResponseQueueKey"),y(fe,"createResponseQueueKey");function Ue(){return"not-"+(++M).toString()}a(Ue,"createNotificationQueueKey"),y(Ue,"createNotificationQueueKey");function Je(Z,Re){i.Message.isRequest(Re)?Z.set(Mt(Re.id),Re):i.Message.isResponse(Re)?Z.set(fe(Re.id),Re):Z.set(Ue(),Re)}a(Je,"addMessageToQueue"),y(Je,"addMessageToQueue");function ot(Z){}a(ot,"cancelUndispatched"),y(ot,"cancelUndispatched");function Ne(){return ye===P.Listening}a(Ne,"isListening"),y(Ne,"isListening");function ze(){return ye===P.Closed}a(ze,"isClosed"),y(ze,"isClosed");function oe(){return ye===P.Disposed}a(oe,"isDisposed"),y(oe,"isDisposed");function _e(){(ye===P.New||ye===P.Listening)&&(ye=P.Closed,Ce.fire(void 0))}a(_e,"closeHandler"),y(_e,"closeHandler");function re(Z){be.fire([Z,void 0,void 0])}a(re,"readErrorHandler"),y(re,"readErrorHandler");function Ke(Z){be.fire(Z)}a(Ke,"writeErrorHandler"),y(Ke,"writeErrorHandler"),A.onClose(_e),A.onError(re),D.onClose(_e),D.onError(Ke);function Q(){X||de.size===0||(X=(0,t.default)().timer.setImmediate(()=>{X=void 0,Y()}))}a(Q,"triggerMessageQueue"),y(Q,"triggerMessageQueue");function Me(Z){i.Message.isRequest(Z)?Ge(Z):i.Message.isNotification(Z)?Be(Z):i.Message.isResponse(Z)?ft(Z):tt(Z)}a(Me,"handleMessage"),y(Me,"handleMessage");function Y(){if(de.size===0)return;let Z=de.shift();try{let Re=N?.messageStrategy;B.is(Re)?Re.handleMessage(Z,Me):Me(Z)}finally{Q()}}a(Y,"processMessageQueue"),y(Y,"processMessageQueue");let dt=y(Z=>{try{if(i.Message.isNotification(Z)&&Z.method===l.type.method){let Re=Z.params.id,Fe=Mt(Re),Ye=de.get(Fe);if(i.Message.isRequest(Ye)){let mt=N?.connectionStrategy,Vt=mt&&mt.cancelUndispatched?mt.cancelUndispatched(Ye,ot):void 0;if(Vt&&(Vt.error!==void 0||Vt.result!==void 0)){de.delete(Fe),he.delete(Re),Vt.id=Ye.id,pt(Vt,Z.method,Date.now()),D.write(Vt).catch(()=>$.error("Sending response for canceled message failed."));return}}let zt=he.get(Re);if(zt!==void 0){zt.cancel(),$t(Z);return}else ge.add(Re)}Je(de,Z)}finally{Q()}},"callback");function Ge(Z){if(oe())return;function Re(Xe,ne,De){let et={jsonrpc:O,id:Z.id};Xe instanceof i.ResponseError?et.error=Xe.toJson():et.result=Xe===void 0?null:Xe,pt(et,ne,De),D.write(et).catch(()=>$.error("Sending response failed."))}a(Re,"reply"),y(Re,"reply");function Fe(Xe,ne,De){let et={jsonrpc:O,id:Z.id,error:Xe.toJson()};pt(et,ne,De),D.write(et).catch(()=>$.error("Sending response failed."))}a(Fe,"replyError"),y(Fe,"replyError");function Ye(Xe,ne,De){Xe===void 0&&(Xe=null);let et={jsonrpc:O,id:Z.id,result:Xe};pt(et,ne,De),D.write(et).catch(()=>$.error("Sending response failed."))}a(Ye,"replySuccess"),y(Ye,"replySuccess"),ie(Z);let zt=U.get(Z.method),mt,Vt;zt&&(mt=zt.type,Vt=zt.handler);let lr=Date.now();if(Vt||z){let Xe=Z.id??String(Date.now()),ne=S.is(ce.receiver)?ce.receiver.createCancellationTokenSource(Xe):ce.receiver.createCancellationTokenSource(Z);Z.id!==null&&ge.has(Z.id)&&ne.cancel(),Z.id!==null&&he.set(Xe,ne);try{let De;if(Vt)if(Z.params===void 0){if(mt!==void 0&&mt.numberOfParams!==0){Fe(new i.ResponseError(i.ErrorCodes.InvalidParams,`Request ${Z.method} defines ${mt.numberOfParams} params but received none.`),Z.method,lr);return}De=Vt(ne.token)}else if(Array.isArray(Z.params)){if(mt!==void 0&&mt.parameterStructures===i.ParameterStructures.byName){Fe(new i.ResponseError(i.ErrorCodes.InvalidParams,`Request ${Z.method} defines parameters by name but received parameters by position`),Z.method,lr);return}De=Vt(...Z.params,ne.token)}else{if(mt!==void 0&&mt.parameterStructures===i.ParameterStructures.byPosition){Fe(new i.ResponseError(i.ErrorCodes.InvalidParams,`Request ${Z.method} defines parameters by position but received parameters by name`),Z.method,lr);return}De=Vt(Z.params,ne.token)}else z&&(De=z(Z.method,Z.params,ne.token));let et=De;De?et.then?et.then(Bt=>{he.delete(Xe),Re(Bt,Z.method,lr)},Bt=>{he.delete(Xe),Bt instanceof i.ResponseError?Fe(Bt,Z.method,lr):Bt&&r.string(Bt.message)?Fe(new i.ResponseError(i.ErrorCodes.InternalError,`Request ${Z.method} failed with message: ${Bt.message}`),Z.method,lr):Fe(new i.ResponseError(i.ErrorCodes.InternalError,`Request ${Z.method} failed unexpectedly without providing any details.`),Z.method,lr)}):(he.delete(Xe),Re(De,Z.method,lr)):(he.delete(Xe),Ye(De,Z.method,lr))}catch(De){he.delete(Xe),De instanceof i.ResponseError?Re(De,Z.method,lr):De&&r.string(De.message)?Fe(new i.ResponseError(i.ErrorCodes.InternalError,`Request ${Z.method} failed with message: ${De.message}`),Z.method,lr):Fe(new i.ResponseError(i.ErrorCodes.InternalError,`Request ${Z.method} failed unexpectedly without providing any details.`),Z.method,lr)}}else Fe(new i.ResponseError(i.ErrorCodes.MethodNotFound,`Unhandled method ${Z.method}`),Z.method,lr)}a(Ge,"handleRequest"),y(Ge,"handleRequest");function ft(Z){if(!oe())if(Z.id===null)Z.error?$.error(`Received response message without id: Error is:
${JSON.stringify(Z.error,void 0,4)}`):$.error("Received response message without id. No further error information provided.");else{let Re=Z.id,Fe=le.get(Re);if(ue(Z,Fe),Fe!==void 0){le.delete(Re);try{if(Z.error){let Ye=Z.error;Fe.reject(new i.ResponseError(Ye.code,Ye.message,Ye.data))}else if(Z.result!==void 0)Fe.resolve(Z.result);else throw new Error("Should never happen.")}catch(Ye){Ye.message?$.error(`Response handler '${Fe.method}' failed with message: ${Ye.message}`):$.error(`Response handler '${Fe.method}' failed unexpectedly.`)}}}}a(ft,"handleResponse"),y(ft,"handleResponse");function Be(Z){if(oe())return;let Re,Fe;if(Z.method===l.type.method){let Ye=Z.params.id;ge.delete(Ye),$t(Z);return}else{let Ye=j.get(Z.method);Ye&&(Fe=Ye.handler,Re=Ye.type)}if(Fe||K)try{if($t(Z),Fe)if(Z.params===void 0)Re!==void 0&&Re.numberOfParams!==0&&Re.parameterStructures!==i.ParameterStructures.byName&&$.error(`Notification ${Z.method} defines ${Re.numberOfParams} params but received none.`),Fe();else if(Array.isArray(Z.params)){let Ye=Z.params;Z.method===h.type.method&&Ye.length===2&&u.is(Ye[0])?Fe({token:Ye[0],value:Ye[1]}):(Re!==void 0&&(Re.parameterStructures===i.ParameterStructures.byName&&$.error(`Notification ${Z.method} defines parameters by name but received parameters by position`),Re.numberOfParams!==Z.params.length&&$.error(`Notification ${Z.method} defines ${Re.numberOfParams} params but received ${Ye.length} arguments`)),Fe(...Ye))}else Re!==void 0&&Re.parameterStructures===i.ParameterStructures.byPosition&&$.error(`Notification ${Z.method} defines parameters by position but received parameters by name`),Fe(Z.params);else K&&K(Z.method,Z.params)}catch(Ye){Ye.message?$.error(`Notification handler '${Z.method}' failed with message: ${Ye.message}`):$.error(`Notification handler '${Z.method}' failed unexpectedly.`)}else Oe.fire(Z)}a(Be,"handleNotification"),y(Be,"handleNotification");function tt(Z){if(!Z){$.error("Received empty message.");return}$.error(`Received message which is neither a response nor a notification message:
${JSON.stringify(Z,null,4)}`);let Re=Z;if(r.string(Re.id)||r.number(Re.id)){let Fe=Re.id,Ye=le.get(Fe);Ye&&Ye.reject(new Error("The received response has neither a result nor an error property."))}}a(tt,"handleInvalidMessage"),y(tt,"handleInvalidMessage");function Ie(Z){if(Z!=null)switch(te){case p.Verbose:return JSON.stringify(Z,null,4);case p.Compact:return JSON.stringify(Z);default:return}}a(Ie,"stringifyTrace"),y(Ie,"stringifyTrace");function it(Z){if(!(te===p.Off||!xe))if(Le===g.Text){let Re;(te===p.Verbose||te===p.Compact)&&Z.params&&(Re=`Params: ${Ie(Z.params)}
`),xe.log(`Sending request '${Z.method} - (${Z.id})'.`,Re)}else vt("send-request",Z)}a(it,"traceSendingRequest"),y(it,"traceSendingRequest");function Ee(Z){if(!(te===p.Off||!xe))if(Le===g.Text){let Re;(te===p.Verbose||te===p.Compact)&&(Z.params?Re=`Params: ${Ie(Z.params)}
`:Re=`No parameters provided.
`),xe.log(`Sending notification '${Z.method}'.`,Re)}else vt("send-notification",Z)}a(Ee,"traceSendingNotification"),y(Ee,"traceSendingNotification");function pt(Z,Re,Fe){if(!(te===p.Off||!xe))if(Le===g.Text){let Ye;(te===p.Verbose||te===p.Compact)&&(Z.error&&Z.error.data?Ye=`Error data: ${Ie(Z.error.data)}
`:Z.result?Ye=`Result: ${Ie(Z.result)}
`:Z.error===void 0&&(Ye=`No result returned.
`)),xe.log(`Sending response '${Re} - (${Z.id})'. Processing request took ${Date.now()-Fe}ms`,Ye)}else vt("send-response",Z)}a(pt,"traceSendingResponse"),y(pt,"traceSendingResponse");function ie(Z){if(!(te===p.Off||!xe))if(Le===g.Text){let Re;(te===p.Verbose||te===p.Compact)&&Z.params&&(Re=`Params: ${Ie(Z.params)}
`),xe.log(`Received request '${Z.method} - (${Z.id})'.`,Re)}else vt("receive-request",Z)}a(ie,"traceReceivedRequest"),y(ie,"traceReceivedRequest");function $t(Z){if(!(te===p.Off||!xe||Z.method===b.type.method))if(Le===g.Text){let Re;(te===p.Verbose||te===p.Compact)&&(Z.params?Re=`Params: ${Ie(Z.params)}
`:Re=`No parameters provided.
`),xe.log(`Received notification '${Z.method}'.`,Re)}else vt("receive-notification",Z)}a($t,"traceReceivedNotification"),y($t,"traceReceivedNotification");function ue(Z,Re){if(!(te===p.Off||!xe))if(Le===g.Text){let Fe;if((te===p.Verbose||te===p.Compact)&&(Z.error&&Z.error.data?Fe=`Error data: ${Ie(Z.error.data)}
`:Z.result?Fe=`Result: ${Ie(Z.result)}
`:Z.error===void 0&&(Fe=`No result returned.
`)),Re){let Ye=Z.error?` Request failed: ${Z.error.message} (${Z.error.code}).`:"";xe.log(`Received response '${Re.method} - (${Z.id})' in ${Date.now()-Re.timerStart}ms.${Ye}`,Fe)}else xe.log(`Received response ${Z.id} without active response promise.`,Fe)}else vt("receive-response",Z)}a(ue,"traceReceivedResponse"),y(ue,"traceReceivedResponse");function vt(Z,Re){if(!xe||te===p.Off)return;let Fe={isLSPMessage:!0,type:Z,message:Re,timestamp:Date.now()};xe.log(Fe)}a(vt,"logLSPMessage"),y(vt,"logLSPMessage");function Lt(){if(ze())throw new k(T.Closed,"Connection is closed.");if(oe())throw new k(T.Disposed,"Connection is disposed.")}a(Lt,"throwIfClosedOrDisposed"),y(Lt,"throwIfClosedOrDisposed");function Nr(){if(Ne())throw new k(T.AlreadyListening,"Connection is already listening")}a(Nr,"throwIfListening"),y(Nr,"throwIfListening");function gt(){if(!Ne())throw new Error("Call listen() first.")}a(gt,"throwIfNotListening"),y(gt,"throwIfNotListening");function Pt(Z){return Z===void 0?null:Z}a(Pt,"undefinedToNull"),y(Pt,"undefinedToNull");function kt(Z){if(Z!==null)return Z}a(kt,"nullToUndefined"),y(kt,"nullToUndefined");function H(Z){return Z!=null&&!Array.isArray(Z)&&typeof Z=="object"}a(H,"isNamedParam"),y(H,"isNamedParam");function at(Z,Re){switch(Z){case i.ParameterStructures.auto:return H(Re)?kt(Re):[Pt(Re)];case i.ParameterStructures.byName:if(!H(Re))throw new Error("Received parameters by name but param is not an object literal.");return kt(Re);case i.ParameterStructures.byPosition:return[Pt(Re)];default:throw new Error(`Unknown parameter structure ${Z.toString()}`)}}a(at,"computeSingleParam"),y(at,"computeSingleParam");function ut(Z,Re){let Fe,Ye=Z.numberOfParams;switch(Ye){case 0:Fe=void 0;break;case 1:Fe=at(Z.parameterStructures,Re[0]);break;default:Fe=[];for(let zt=0;zt<Re.length&&zt<Ye;zt++)Fe.push(Pt(Re[zt]));if(Re.length<Ye)for(let zt=Re.length;zt<Ye;zt++)Fe.push(null);break}return Fe}a(ut,"computeMessageParams"),y(ut,"computeMessageParams");let We={sendNotification:y((Z,...Re)=>{Lt();let Fe,Ye;if(r.string(Z)){Fe=Z;let mt=Re[0],Vt=0,lr=i.ParameterStructures.auto;i.ParameterStructures.is(mt)&&(Vt=1,lr=mt);let Xe=Re.length,ne=Xe-Vt;switch(ne){case 0:Ye=void 0;break;case 1:Ye=at(lr,Re[Vt]);break;default:if(lr===i.ParameterStructures.byName)throw new Error(`Received ${ne} parameters for 'by Name' notification parameter structure.`);Ye=Re.slice(Vt,Xe).map(De=>Pt(De));break}}else{let mt=Re;Fe=Z.method,Ye=ut(Z,mt)}let zt={jsonrpc:O,method:Fe,params:Ye};return Ee(zt),D.write(zt).catch(mt=>{throw $.error("Sending notification failed."),mt})},"sendNotification"),onNotification:y((Z,Re)=>{Lt();let Fe;return r.func(Z)?K=Z:Re&&(r.string(Z)?(Fe=Z,j.set(Z,{type:void 0,handler:Re})):(Fe=Z.method,j.set(Z.method,{type:Z,handler:Re}))),{dispose:y(()=>{Fe!==void 0?j.delete(Fe):K=void 0},"dispose")}},"onNotification"),onProgress:y((Z,Re,Fe)=>{if(ae.has(Re))throw new Error(`Progress handler for token ${Re} already registered`);return ae.set(Re,Fe),{dispose:y(()=>{ae.delete(Re)},"dispose")}},"onProgress"),sendProgress:y((Z,Re,Fe)=>We.sendNotification(h.type,{token:Re,value:Fe}),"sendProgress"),onUnhandledProgress:Ae.event,sendRequest:y((Z,...Re)=>{Lt(),gt();let Fe,Ye,zt;if(r.string(Z)){Fe=Z;let Xe=Re[0],ne=Re[Re.length-1],De=0,et=i.ParameterStructures.auto;i.ParameterStructures.is(Xe)&&(De=1,et=Xe);let Bt=Re.length;o.CancellationToken.is(ne)&&(Bt=Bt-1,zt=ne);let ur=Bt-De;switch(ur){case 0:Ye=void 0;break;case 1:Ye=at(et,Re[De]);break;default:if(et===i.ParameterStructures.byName)throw new Error(`Received ${ur} parameters for 'by Name' request parameter structure.`);Ye=Re.slice(De,Bt).map(Mr=>Pt(Mr));break}}else{let Xe=Re;Fe=Z.method,Ye=ut(Z,Xe);let ne=Z.numberOfParams;zt=o.CancellationToken.is(Xe[ne])?Xe[ne]:void 0}let mt=E++,Vt;zt&&(Vt=zt.onCancellationRequested(()=>{let Xe=ce.sender.sendCancellation(We,mt);return Xe===void 0?($.log(`Received no promise from cancellation strategy when cancelling id ${mt}`),Promise.resolve()):Xe.catch(()=>{$.log(`Sending cancellation messages for id ${mt} failed`)})}));let lr={jsonrpc:O,id:mt,method:Fe,params:Ye};return it(lr),typeof ce.sender.enableCancellation=="function"&&ce.sender.enableCancellation(lr),new Promise(async(Xe,ne)=>{let De=y(ur=>{Xe(ur),ce.sender.cleanup(mt),Vt?.dispose()},"resolveWithCleanup"),et=y(ur=>{ne(ur),ce.sender.cleanup(mt),Vt?.dispose()},"rejectWithCleanup"),Bt={method:Fe,timerStart:Date.now(),resolve:De,reject:et};try{await D.write(lr),le.set(mt,Bt)}catch(ur){throw $.error("Sending request failed."),Bt.reject(new i.ResponseError(i.ErrorCodes.MessageWriteError,ur.message?ur.message:"Unknown reason")),ur}})},"sendRequest"),onRequest:y((Z,Re)=>{Lt();let Fe=null;return f.is(Z)?(Fe=void 0,z=Z):r.string(Z)?(Fe=null,Re!==void 0&&(Fe=Z,U.set(Z,{handler:Re,type:void 0}))):Re!==void 0&&(Fe=Z.method,U.set(Z.method,{type:Z,handler:Re})),{dispose:y(()=>{Fe!==null&&(Fe!==void 0?U.delete(Fe):z=void 0)},"dispose")}},"onRequest"),hasPendingResponse:y(()=>le.size>0,"hasPendingResponse"),trace:y(async(Z,Re,Fe)=>{let Ye=!1,zt=g.Text;Fe!==void 0&&(r.boolean(Fe)?Ye=Fe:(Ye=Fe.sendNotification||!1,zt=Fe.traceFormat||g.Text)),te=Z,Le=zt,te===p.Off?xe=void 0:xe=Re,Ye&&!ze()&&!oe()&&await We.sendNotification(x.type,{value:p.toString(Z)})},"trace"),onError:be.event,onClose:Ce.event,onUnhandledNotification:Oe.event,onDispose:st.event,end:y(()=>{D.end()},"end"),dispose:y(()=>{if(oe())return;ye=P.Disposed,st.fire(void 0);let Z=new i.ResponseError(i.ErrorCodes.PendingResponseRejected,"Pending response rejected since connection got disposed");for(let Re of le.values())Re.reject(Z);le=new Map,he=new Map,ge=new Set,de=new n.LinkedMap,r.func(D.dispose)&&D.dispose(),r.func(A.dispose)&&A.dispose()},"dispose"),listen:y(()=>{Lt(),Nr(),ye=P.Listening,A.listen(dt)},"listen"),inspect:y(()=>{(0,t.default)().console.log("inspect")},"inspect")};return We.onNotification(b.type,Z=>{if(te===p.Off||!xe)return;let Re=te===p.Verbose||te===p.Compact;xe.log(Z.message,Re?Z.verbose:void 0)}),We.onNotification(h.type,Z=>{let Re=ae.get(Z.token);Re?Re(Z.value):Ae.fire(Z)}),We}a(F,"createMessageConnection"),y(F,"createMessageConnection"),e.createMessageConnection=F}}),RI=nr({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/api.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ProgressType=e.ProgressToken=e.createMessageConnection=e.NullLogger=e.ConnectionOptions=e.ConnectionStrategy=e.AbstractMessageBuffer=e.WriteableStreamMessageWriter=e.AbstractMessageWriter=e.MessageWriter=e.ReadableStreamMessageReader=e.AbstractMessageReader=e.MessageReader=e.SharedArrayReceiverStrategy=e.SharedArraySenderStrategy=e.CancellationToken=e.CancellationTokenSource=e.Emitter=e.Event=e.Disposable=e.LRUCache=e.Touch=e.LinkedMap=e.ParameterStructures=e.NotificationType9=e.NotificationType8=e.NotificationType7=e.NotificationType6=e.NotificationType5=e.NotificationType4=e.NotificationType3=e.NotificationType2=e.NotificationType1=e.NotificationType0=e.NotificationType=e.ErrorCodes=e.ResponseError=e.RequestType9=e.RequestType8=e.RequestType7=e.RequestType6=e.RequestType5=e.RequestType4=e.RequestType3=e.RequestType2=e.RequestType1=e.RequestType0=e.RequestType=e.Message=e.RAL=void 0,e.MessageStrategy=e.CancellationStrategy=e.CancellationSenderStrategy=e.CancellationReceiverStrategy=e.ConnectionError=e.ConnectionErrors=e.LogTraceNotification=e.SetTraceNotification=e.TraceFormat=e.TraceValues=e.Trace=void 0;var t=Zie();Object.defineProperty(e,"Message",{enumerable:!0,get:y(function(){return t.Message},"get")}),Object.defineProperty(e,"RequestType",{enumerable:!0,get:y(function(){return t.RequestType},"get")}),Object.defineProperty(e,"RequestType0",{enumerable:!0,get:y(function(){return t.RequestType0},"get")}),Object.defineProperty(e,"RequestType1",{enumerable:!0,get:y(function(){return t.RequestType1},"get")}),Object.defineProperty(e,"RequestType2",{enumerable:!0,get:y(function(){return t.RequestType2},"get")}),Object.defineProperty(e,"RequestType3",{enumerable:!0,get:y(function(){return t.RequestType3},"get")}),Object.defineProperty(e,"RequestType4",{enumerable:!0,get:y(function(){return t.RequestType4},"get")}),Object.defineProperty(e,"RequestType5",{enumerable:!0,get:y(function(){return t.RequestType5},"get")}),Object.defineProperty(e,"RequestType6",{enumerable:!0,get:y(function(){return t.RequestType6},"get")}),Object.defineProperty(e,"RequestType7",{enumerable:!0,get:y(function(){return t.RequestType7},"get")}),Object.defineProperty(e,"RequestType8",{enumerable:!0,get:y(function(){return t.RequestType8},"get")}),Object.defineProperty(e,"RequestType9",{enumerable:!0,get:y(function(){return t.RequestType9},"get")}),Object.defineProperty(e,"ResponseError",{enumerable:!0,get:y(function(){return t.ResponseError},"get")}),Object.defineProperty(e,"ErrorCodes",{enumerable:!0,get:y(function(){return t.ErrorCodes},"get")}),Object.defineProperty(e,"NotificationType",{enumerable:!0,get:y(function(){return t.NotificationType},"get")}),Object.defineProperty(e,"NotificationType0",{enumerable:!0,get:y(function(){return t.NotificationType0},"get")}),Object.defineProperty(e,"NotificationType1",{enumerable:!0,get:y(function(){return t.NotificationType1},"get")}),Object.defineProperty(e,"NotificationType2",{enumerable:!0,get:y(function(){return t.NotificationType2},"get")}),Object.defineProperty(e,"NotificationType3",{enumerable:!0,get:y(function(){return t.NotificationType3},"get")}),Object.defineProperty(e,"NotificationType4",{enumerable:!0,get:y(function(){return t.NotificationType4},"get")}),Object.defineProperty(e,"NotificationType5",{enumerable:!0,get:y(function(){return t.NotificationType5},"get")}),Object.defineProperty(e,"NotificationType6",{enumerable:!0,get:y(function(){return t.NotificationType6},"get")}),Object.defineProperty(e,"NotificationType7",{enumerable:!0,get:y(function(){return t.NotificationType7},"get")}),Object.defineProperty(e,"NotificationType8",{enumerable:!0,get:y(function(){return t.NotificationType8},"get")}),Object.defineProperty(e,"NotificationType9",{enumerable:!0,get:y(function(){return t.NotificationType9},"get")}),Object.defineProperty(e,"ParameterStructures",{enumerable:!0,get:y(function(){return t.ParameterStructures},"get")});var r=ene();Object.defineProperty(e,"LinkedMap",{enumerable:!0,get:y(function(){return r.LinkedMap},"get")}),Object.defineProperty(e,"LRUCache",{enumerable:!0,get:y(function(){return r.LRUCache},"get")}),Object.defineProperty(e,"Touch",{enumerable:!0,get:y(function(){return r.Touch},"get")});var i=Z7e();Object.defineProperty(e,"Disposable",{enumerable:!0,get:y(function(){return i.Disposable},"get")});var n=Cm();Object.defineProperty(e,"Event",{enumerable:!0,get:y(function(){return n.Event},"get")}),Object.defineProperty(e,"Emitter",{enumerable:!0,get:y(function(){return n.Emitter},"get")});var s=_v();Object.defineProperty(e,"CancellationTokenSource",{enumerable:!0,get:y(function(){return s.CancellationTokenSource},"get")}),Object.defineProperty(e,"CancellationToken",{enumerable:!0,get:y(function(){return s.CancellationToken},"get")});var o=J7e();Object.defineProperty(e,"SharedArraySenderStrategy",{enumerable:!0,get:y(function(){return o.SharedArraySenderStrategy},"get")}),Object.defineProperty(e,"SharedArrayReceiverStrategy",{enumerable:!0,get:y(function(){return o.SharedArrayReceiverStrategy},"get")});var l=e$e();Object.defineProperty(e,"MessageReader",{enumerable:!0,get:y(function(){return l.MessageReader},"get")}),Object.defineProperty(e,"AbstractMessageReader",{enumerable:!0,get:y(function(){return l.AbstractMessageReader},"get")}),Object.defineProperty(e,"ReadableStreamMessageReader",{enumerable:!0,get:y(function(){return l.ReadableStreamMessageReader},"get")});var u=t$e();Object.defineProperty(e,"MessageWriter",{enumerable:!0,get:y(function(){return u.MessageWriter},"get")}),Object.defineProperty(e,"AbstractMessageWriter",{enumerable:!0,get:y(function(){return u.AbstractMessageWriter},"get")}),Object.defineProperty(e,"WriteableStreamMessageWriter",{enumerable:!0,get:y(function(){return u.WriteableStreamMessageWriter},"get")});var h=r$e();Object.defineProperty(e,"AbstractMessageBuffer",{enumerable:!0,get:y(function(){return h.AbstractMessageBuffer},"get")});var d=i$e();Object.defineProperty(e,"ConnectionStrategy",{enumerable:!0,get:y(function(){return d.ConnectionStrategy},"get")}),Object.defineProperty(e,"ConnectionOptions",{enumerable:!0,get:y(function(){return d.ConnectionOptions},"get")}),Object.defineProperty(e,"NullLogger",{enumerable:!0,get:y(function(){return d.NullLogger},"get")}),Object.defineProperty(e,"createMessageConnection",{enumerable:!0,get:y(function(){return d.createMessageConnection},"get")}),Object.defineProperty(e,"ProgressToken",{enumerable:!0,get:y(function(){return d.ProgressToken},"get")}),Object.defineProperty(e,"ProgressType",{enumerable:!0,get:y(function(){return d.ProgressType},"get")}),Object.defineProperty(e,"Trace",{enumerable:!0,get:y(function(){return d.Trace},"get")}),Object.defineProperty(e,"TraceValues",{enumerable:!0,get:y(function(){return d.TraceValues},"get")}),Object.defineProperty(e,"TraceFormat",{enumerable:!0,get:y(function(){return d.TraceFormat},"get")}),Object.defineProperty(e,"SetTraceNotification",{enumerable:!0,get:y(function(){return d.SetTraceNotification},"get")}),Object.defineProperty(e,"LogTraceNotification",{enumerable:!0,get:y(function(){return d.LogTraceNotification},"get")}),Object.defineProperty(e,"ConnectionErrors",{enumerable:!0,get:y(function(){return d.ConnectionErrors},"get")}),Object.defineProperty(e,"ConnectionError",{enumerable:!0,get:y(function(){return d.ConnectionError},"get")}),Object.defineProperty(e,"CancellationReceiverStrategy",{enumerable:!0,get:y(function(){return d.CancellationReceiverStrategy},"get")}),Object.defineProperty(e,"CancellationSenderStrategy",{enumerable:!0,get:y(function(){return d.CancellationSenderStrategy},"get")}),Object.defineProperty(e,"CancellationStrategy",{enumerable:!0,get:y(function(){return d.CancellationStrategy},"get")}),Object.defineProperty(e,"MessageStrategy",{enumerable:!0,get:y(function(){return d.MessageStrategy},"get")});var f=Nd();e.RAL=f.default}}),n$e=nr({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/browser/ril.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=RI(),r=class ine extends t.AbstractMessageBuffer{static{a(this,"_MessageBuffer")}static{y(this,"MessageBuffer")}constructor(h="utf-8"){super(h),this.asciiDecoder=new TextDecoder("ascii")}emptyBuffer(){return ine.emptyBuffer}fromString(h,d){return new TextEncoder().encode(h)}toString(h,d){return d==="ascii"?this.asciiDecoder.decode(h):new TextDecoder(d).decode(h)}asNative(h,d){return d===void 0?h:h.slice(0,d)}allocNative(h){return new Uint8Array(h)}};r.emptyBuffer=new Uint8Array(0);var i=class{static{a(this,"ReadableStreamWrapper")}static{y(this,"ReadableStreamWrapper")}constructor(u){this.socket=u,this._onData=new t.Emitter,this._messageListener=h=>{h.data.arrayBuffer().then(f=>{this._onData.fire(new Uint8Array(f))},()=>{(0,t.RAL)().console.error("Converting blob to array buffer failed.")})},this.socket.addEventListener("message",this._messageListener)}onClose(u){return this.socket.addEventListener("close",u),t.Disposable.create(()=>this.socket.removeEventListener("close",u))}onError(u){return this.socket.addEventListener("error",u),t.Disposable.create(()=>this.socket.removeEventListener("error",u))}onEnd(u){return this.socket.addEventListener("end",u),t.Disposable.create(()=>this.socket.removeEventListener("end",u))}onData(u){return this._onData.event(u)}},n=class{static{a(this,"WritableStreamWrapper")}static{y(this,"WritableStreamWrapper")}constructor(u){this.socket=u}onClose(u){return this.socket.addEventListener("close",u),t.Disposable.create(()=>this.socket.removeEventListener("close",u))}onError(u){return this.socket.addEventListener("error",u),t.Disposable.create(()=>this.socket.removeEventListener("error",u))}onEnd(u){return this.socket.addEventListener("end",u),t.Disposable.create(()=>this.socket.removeEventListener("end",u))}write(u,h){if(typeof u=="string"){if(h!==void 0&&h!=="utf-8")throw new Error(`In a Browser environments only utf-8 text encoding is supported. But got encoding: ${h}`);this.socket.send(u)}else this.socket.send(u);return Promise.resolve()}end(){this.socket.close()}},s=new TextEncoder,o=Object.freeze({messageBuffer:Object.freeze({create:y(u=>new r(u),"create")}),applicationJson:Object.freeze({encoder:Object.freeze({name:"application/json",encode:y((u,h)=>{if(h.charset!=="utf-8")throw new Error(`In a Browser environments only utf-8 text encoding is supported. But got encoding: ${h.charset}`);return Promise.resolve(s.encode(JSON.stringify(u,void 0,0)))},"encode")}),decoder:Object.freeze({name:"application/json",decode:y((u,h)=>{if(!(u instanceof Uint8Array))throw new Error("In a Browser environments only Uint8Arrays are supported.");return Promise.resolve(JSON.parse(new TextDecoder(h.charset).decode(u)))},"decode")})}),stream:Object.freeze({asReadableStream:y(u=>new i(u),"asReadableStream"),asWritableStream:y(u=>new n(u),"asWritableStream")}),console,timer:Object.freeze({setTimeout(u,h,...d){let f=setTimeout(u,h,...d);return{dispose:y(()=>clearTimeout(f),"dispose")}},setImmediate(u,...h){let d=setTimeout(u,0,...h);return{dispose:y(()=>clearTimeout(d),"dispose")}},setInterval(u,h,...d){let f=setInterval(u,h,...d);return{dispose:y(()=>clearInterval(f),"dispose")}}})});function l(){return o}a(l,"RIL"),y(l,"RIL"),(function(u){function h(){t.RAL.install(o)}a(h,"install"),y(h,"install"),u.install=h})(l||(l={})),e.default=l}}),vm=nr({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/browser/main.js"(e){"use strict";var t=e&&e.__createBinding||(Object.create?(function(u,h,d,f){f===void 0&&(f=d);var p=Object.getOwnPropertyDescriptor(h,d);(!p||("get"in p?!h.__esModule:p.writable||p.configurable))&&(p={enumerable:!0,get:y(function(){return h[d]},"get")}),Object.defineProperty(u,f,p)}):(function(u,h,d,f){f===void 0&&(f=d),u[f]=h[d]})),r=e&&e.__exportStar||function(u,h){for(var d in u)d!=="default"&&!Object.prototype.hasOwnProperty.call(h,d)&&t(h,u,d)};Object.defineProperty(e,"__esModule",{value:!0}),e.createMessageConnection=e.BrowserMessageWriter=e.BrowserMessageReader=void 0;var i=n$e();i.default.install();var n=RI();r(RI(),e);var s=class extends n.AbstractMessageReader{static{a(this,"BrowserMessageReader")}static{y(this,"BrowserMessageReader")}constructor(u){super(),this._onData=new n.Emitter,this._messageListener=h=>{this._onData.fire(h.data)},u.addEventListener("error",h=>this.fireError(h)),u.onmessage=this._messageListener}listen(u){return this._onData.event(u)}};e.BrowserMessageReader=s;var o=class extends n.AbstractMessageWriter{static{a(this,"BrowserMessageWriter")}static{y(this,"BrowserMessageWriter")}constructor(u){super(),this.port=u,this.errorCount=0,u.addEventListener("error",h=>this.fireError(h))}write(u){try{return this.port.postMessage(u),Promise.resolve()}catch(h){return this.handleError(h,u),Promise.reject(h)}}handleError(u,h){this.errorCount++,this.fireError(u,h,this.errorCount)}end(){}};e.BrowserMessageWriter=o;function l(u,h,d,f){return d===void 0&&(d=n.NullLogger),n.ConnectionStrategy.is(f)&&(f={connectionStrategy:f}),(0,n.createMessageConnection)(u,h,d,f)}a(l,"createMessageConnection"),y(l,"createMessageConnection"),e.createMessageConnection=l}}),ure=nr({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/browser.js"(e,t){"use strict";t.exports=vm()}}),li=nr({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/messages.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ProtocolNotificationType=e.ProtocolNotificationType0=e.ProtocolRequestType=e.ProtocolRequestType0=e.RegistrationType=e.MessageDirection=void 0;var t=vm(),r;(function(u){u.clientToServer="clientToServer",u.serverToClient="serverToClient",u.both="both"})(r||(e.MessageDirection=r={}));var i=class{static{a(this,"RegistrationType")}static{y(this,"RegistrationType")}constructor(u){this.method=u}};e.RegistrationType=i;var n=class extends t.RequestType0{static{a(this,"ProtocolRequestType0")}static{y(this,"ProtocolRequestType0")}constructor(u){super(u)}};e.ProtocolRequestType0=n;var s=class extends t.RequestType{static{a(this,"ProtocolRequestType")}static{y(this,"ProtocolRequestType")}constructor(u){super(u,t.ParameterStructures.byName)}};e.ProtocolRequestType=s;var o=class extends t.NotificationType0{static{a(this,"ProtocolNotificationType0")}static{y(this,"ProtocolNotificationType0")}constructor(u){super(u)}};e.ProtocolNotificationType0=o;var l=class extends t.NotificationType{static{a(this,"ProtocolNotificationType")}static{y(this,"ProtocolNotificationType")}constructor(u){super(u,t.ParameterStructures.byName)}};e.ProtocolNotificationType=l}}),E6=nr({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/utils/is.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.objectLiteral=e.typedArray=e.stringArray=e.array=e.func=e.error=e.number=e.string=e.boolean=void 0;function t(d){return d===!0||d===!1}a(t,"boolean"),y(t,"boolean"),e.boolean=t;function r(d){return typeof d=="string"||d instanceof String}a(r,"string"),y(r,"string"),e.string=r;function i(d){return typeof d=="number"||d instanceof Number}a(i,"number"),y(i,"number"),e.number=i;function n(d){return d instanceof Error}a(n,"error"),y(n,"error"),e.error=n;function s(d){return typeof d=="function"}a(s,"func"),y(s,"func"),e.func=s;function o(d){return Array.isArray(d)}a(o,"array"),y(o,"array"),e.array=o;function l(d){return o(d)&&d.every(f=>r(f))}a(l,"stringArray"),y(l,"stringArray"),e.stringArray=l;function u(d,f){return Array.isArray(d)&&d.every(f)}a(u,"typedArray"),y(u,"typedArray"),e.typedArray=u;function h(d){return d!==null&&typeof d=="object"}a(h,"objectLiteral"),y(h,"objectLiteral"),e.objectLiteral=h}}),a$e=nr({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.implementation.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ImplementationRequest=void 0;var t=li(),r;(function(i){i.method="textDocument/implementation",i.messageDirection=t.MessageDirection.clientToServer,i.type=new t.ProtocolRequestType(i.method)})(r||(e.ImplementationRequest=r={}))}}),s$e=nr({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeDefinition.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TypeDefinitionRequest=void 0;var t=li(),r;(function(i){i.method="textDocument/typeDefinition",i.messageDirection=t.MessageDirection.clientToServer,i.type=new t.ProtocolRequestType(i.method)})(r||(e.TypeDefinitionRequest=r={}))}}),o$e=nr({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.workspaceFolder.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DidChangeWorkspaceFoldersNotification=e.WorkspaceFoldersRequest=void 0;var t=li(),r;(function(n){n.method="workspace/workspaceFolders",n.messageDirection=t.MessageDirection.serverToClient,n.type=new t.ProtocolRequestType0(n.method)})(r||(e.WorkspaceFoldersRequest=r={}));var i;(function(n){n.method="workspace/didChangeWorkspaceFolders",n.messageDirection=t.MessageDirection.clientToServer,n.type=new t.ProtocolNotificationType(n.method)})(i||(e.DidChangeWorkspaceFoldersNotification=i={}))}}),l$e=nr({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.configuration.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ConfigurationRequest=void 0;var t=li(),r;(function(i){i.method="workspace/configuration",i.messageDirection=t.MessageDirection.serverToClient,i.type=new t.ProtocolRequestType(i.method)})(r||(e.ConfigurationRequest=r={}))}}),c$e=nr({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.colorProvider.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ColorPresentationRequest=e.DocumentColorRequest=void 0;var t=li(),r;(function(n){n.method="textDocument/documentColor",n.messageDirection=t.MessageDirection.clientToServer,n.type=new t.ProtocolRequestType(n.method)})(r||(e.DocumentColorRequest=r={}));var i;(function(n){n.method="textDocument/colorPresentation",n.messageDirection=t.MessageDirection.clientToServer,n.type=new t.ProtocolRequestType(n.method)})(i||(e.ColorPresentationRequest=i={}))}}),u$e=nr({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.foldingRange.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.FoldingRangeRefreshRequest=e.FoldingRangeRequest=void 0;var t=li(),r;(function(n){n.method="textDocument/foldingRange",n.messageDirection=t.MessageDirection.clientToServer,n.type=new t.ProtocolRequestType(n.method)})(r||(e.FoldingRangeRequest=r={}));var i;(function(n){n.method="workspace/foldingRange/refresh",n.messageDirection=t.MessageDirection.serverToClient,n.type=new t.ProtocolRequestType0(n.method)})(i||(e.FoldingRangeRefreshRequest=i={}))}}),h$e=nr({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.declaration.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DeclarationRequest=void 0;var t=li(),r;(function(i){i.method="textDocument/declaration",i.messageDirection=t.MessageDirection.clientToServer,i.type=new t.ProtocolRequestType(i.method)})(r||(e.DeclarationRequest=r={}))}}),d$e=nr({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.selectionRange.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SelectionRangeRequest=void 0;var t=li(),r;(function(i){i.method="textDocument/selectionRange",i.messageDirection=t.MessageDirection.clientToServer,i.type=new t.ProtocolRequestType(i.method)})(r||(e.SelectionRangeRequest=r={}))}}),f$e=nr({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.progress.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.WorkDoneProgressCancelNotification=e.WorkDoneProgressCreateRequest=e.WorkDoneProgress=void 0;var t=vm(),r=li(),i;(function(o){o.type=new t.ProgressType;function l(u){return u===o.type}a(l,"is"),y(l,"is"),o.is=l})(i||(e.WorkDoneProgress=i={}));var n;(function(o){o.method="window/workDoneProgress/create",o.messageDirection=r.MessageDirection.serverToClient,o.type=new r.ProtocolRequestType(o.method)})(n||(e.WorkDoneProgressCreateRequest=n={}));var s;(function(o){o.method="window/workDoneProgress/cancel",o.messageDirection=r.MessageDirection.clientToServer,o.type=new r.ProtocolNotificationType(o.method)})(s||(e.WorkDoneProgressCancelNotification=s={}))}}),p$e=nr({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.callHierarchy.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CallHierarchyOutgoingCallsRequest=e.CallHierarchyIncomingCallsRequest=e.CallHierarchyPrepareRequest=void 0;var t=li(),r;(function(s){s.method="textDocument/prepareCallHierarchy",s.messageDirection=t.MessageDirection.clientToServer,s.type=new t.ProtocolRequestType(s.method)})(r||(e.CallHierarchyPrepareRequest=r={}));var i;(function(s){s.method="callHierarchy/incomingCalls",s.messageDirection=t.MessageDirection.clientToServer,s.type=new t.ProtocolRequestType(s.method)})(i||(e.CallHierarchyIncomingCallsRequest=i={}));var n;(function(s){s.method="callHierarchy/outgoingCalls",s.messageDirection=t.MessageDirection.clientToServer,s.type=new t.ProtocolRequestType(s.method)})(n||(e.CallHierarchyOutgoingCallsRequest=n={}))}}),m$e=nr({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.semanticTokens.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SemanticTokensRefreshRequest=e.SemanticTokensRangeRequest=e.SemanticTokensDeltaRequest=e.SemanticTokensRequest=e.SemanticTokensRegistrationType=e.TokenFormat=void 0;var t=li(),r;(function(u){u.Relative="relative"})(r||(e.TokenFormat=r={}));var i;(function(u){u.method="textDocument/semanticTokens",u.type=new t.RegistrationType(u.method)})(i||(e.SemanticTokensRegistrationType=i={}));var n;(function(u){u.method="textDocument/semanticTokens/full",u.messageDirection=t.MessageDirection.clientToServer,u.type=new t.ProtocolRequestType(u.method),u.registrationMethod=i.method})(n||(e.SemanticTokensRequest=n={}));var s;(function(u){u.method="textDocument/semanticTokens/full/delta",u.messageDirection=t.MessageDirection.clientToServer,u.type=new t.ProtocolRequestType(u.method),u.registrationMethod=i.method})(s||(e.SemanticTokensDeltaRequest=s={}));var o;(function(u){u.method="textDocument/semanticTokens/range",u.messageDirection=t.MessageDirection.clientToServer,u.type=new t.ProtocolRequestType(u.method),u.registrationMethod=i.method})(o||(e.SemanticTokensRangeRequest=o={}));var l;(function(u){u.method="workspace/semanticTokens/refresh",u.messageDirection=t.MessageDirection.serverToClient,u.type=new t.ProtocolRequestType0(u.method)})(l||(e.SemanticTokensRefreshRequest=l={}))}}),g$e=nr({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.showDocument.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ShowDocumentRequest=void 0;var t=li(),r;(function(i){i.method="window/showDocument",i.messageDirection=t.MessageDirection.serverToClient,i.type=new t.ProtocolRequestType(i.method)})(r||(e.ShowDocumentRequest=r={}))}}),y$e=nr({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.linkedEditingRange.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LinkedEditingRangeRequest=void 0;var t=li(),r;(function(i){i.method="textDocument/linkedEditingRange",i.messageDirection=t.MessageDirection.clientToServer,i.type=new t.ProtocolRequestType(i.method)})(r||(e.LinkedEditingRangeRequest=r={}))}}),x$e=nr({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.fileOperations.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.WillDeleteFilesRequest=e.DidDeleteFilesNotification=e.DidRenameFilesNotification=e.WillRenameFilesRequest=e.DidCreateFilesNotification=e.WillCreateFilesRequest=e.FileOperationPatternKind=void 0;var t=li(),r;(function(h){h.file="file",h.folder="folder"})(r||(e.FileOperationPatternKind=r={}));var i;(function(h){h.method="workspace/willCreateFiles",h.messageDirection=t.MessageDirection.clientToServer,h.type=new t.ProtocolRequestType(h.method)})(i||(e.WillCreateFilesRequest=i={}));var n;(function(h){h.method="workspace/didCreateFiles",h.messageDirection=t.MessageDirection.clientToServer,h.type=new t.ProtocolNotificationType(h.method)})(n||(e.DidCreateFilesNotification=n={}));var s;(function(h){h.method="workspace/willRenameFiles",h.messageDirection=t.MessageDirection.clientToServer,h.type=new t.ProtocolRequestType(h.method)})(s||(e.WillRenameFilesRequest=s={}));var o;(function(h){h.method="workspace/didRenameFiles",h.messageDirection=t.MessageDirection.clientToServer,h.type=new t.ProtocolNotificationType(h.method)})(o||(e.DidRenameFilesNotification=o={}));var l;(function(h){h.method="workspace/didDeleteFiles",h.messageDirection=t.MessageDirection.clientToServer,h.type=new t.ProtocolNotificationType(h.method)})(l||(e.DidDeleteFilesNotification=l={}));var u;(function(h){h.method="workspace/willDeleteFiles",h.messageDirection=t.MessageDirection.clientToServer,h.type=new t.ProtocolRequestType(h.method)})(u||(e.WillDeleteFilesRequest=u={}))}}),b$e=nr({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.moniker.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MonikerRequest=e.MonikerKind=e.UniquenessLevel=void 0;var t=li(),r;(function(s){s.document="document",s.project="project",s.group="group",s.scheme="scheme",s.global="global"})(r||(e.UniquenessLevel=r={}));var i;(function(s){s.$import="import",s.$export="export",s.local="local"})(i||(e.MonikerKind=i={}));var n;(function(s){s.method="textDocument/moniker",s.messageDirection=t.MessageDirection.clientToServer,s.type=new t.ProtocolRequestType(s.method)})(n||(e.MonikerRequest=n={}))}}),T$e=nr({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeHierarchy.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TypeHierarchySubtypesRequest=e.TypeHierarchySupertypesRequest=e.TypeHierarchyPrepareRequest=void 0;var t=li(),r;(function(s){s.method="textDocument/prepareTypeHierarchy",s.messageDirection=t.MessageDirection.clientToServer,s.type=new t.ProtocolRequestType(s.method)})(r||(e.TypeHierarchyPrepareRequest=r={}));var i;(function(s){s.method="typeHierarchy/supertypes",s.messageDirection=t.MessageDirection.clientToServer,s.type=new t.ProtocolRequestType(s.method)})(i||(e.TypeHierarchySupertypesRequest=i={}));var n;(function(s){s.method="typeHierarchy/subtypes",s.messageDirection=t.MessageDirection.clientToServer,s.type=new t.ProtocolRequestType(s.method)})(n||(e.TypeHierarchySubtypesRequest=n={}))}}),k$e=nr({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineValue.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.InlineValueRefreshRequest=e.InlineValueRequest=void 0;var t=li(),r;(function(n){n.method="textDocument/inlineValue",n.messageDirection=t.MessageDirection.clientToServer,n.type=new t.ProtocolRequestType(n.method)})(r||(e.InlineValueRequest=r={}));var i;(function(n){n.method="workspace/inlineValue/refresh",n.messageDirection=t.MessageDirection.serverToClient,n.type=new t.ProtocolRequestType0(n.method)})(i||(e.InlineValueRefreshRequest=i={}))}}),C$e=nr({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlayHint.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.InlayHintRefreshRequest=e.InlayHintResolveRequest=e.InlayHintRequest=void 0;var t=li(),r;(function(s){s.method="textDocument/inlayHint",s.messageDirection=t.MessageDirection.clientToServer,s.type=new t.ProtocolRequestType(s.method)})(r||(e.InlayHintRequest=r={}));var i;(function(s){s.method="inlayHint/resolve",s.messageDirection=t.MessageDirection.clientToServer,s.type=new t.ProtocolRequestType(s.method)})(i||(e.InlayHintResolveRequest=i={}));var n;(function(s){s.method="workspace/inlayHint/refresh",s.messageDirection=t.MessageDirection.serverToClient,s.type=new t.ProtocolRequestType0(s.method)})(n||(e.InlayHintRefreshRequest=n={}))}}),v$e=nr({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.diagnostic.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DiagnosticRefreshRequest=e.WorkspaceDiagnosticRequest=e.DocumentDiagnosticRequest=e.DocumentDiagnosticReportKind=e.DiagnosticServerCancellationData=void 0;var t=vm(),r=E6(),i=li(),n;(function(h){function d(f){let p=f;return p&&r.boolean(p.retriggerRequest)}a(d,"is"),y(d,"is"),h.is=d})(n||(e.DiagnosticServerCancellationData=n={}));var s;(function(h){h.Full="full",h.Unchanged="unchanged"})(s||(e.DocumentDiagnosticReportKind=s={}));var o;(function(h){h.method="textDocument/diagnostic",h.messageDirection=i.MessageDirection.clientToServer,h.type=new i.ProtocolRequestType(h.method),h.partialResult=new t.ProgressType})(o||(e.DocumentDiagnosticRequest=o={}));var l;(function(h){h.method="workspace/diagnostic",h.messageDirection=i.MessageDirection.clientToServer,h.type=new i.ProtocolRequestType(h.method),h.partialResult=new t.ProgressType})(l||(e.WorkspaceDiagnosticRequest=l={}));var u;(function(h){h.method="workspace/diagnostic/refresh",h.messageDirection=i.MessageDirection.serverToClient,h.type=new i.ProtocolRequestType0(h.method)})(u||(e.DiagnosticRefreshRequest=u={}))}}),S$e=nr({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.notebook.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DidCloseNotebookDocumentNotification=e.DidSaveNotebookDocumentNotification=e.DidChangeNotebookDocumentNotification=e.NotebookCellArrayChange=e.DidOpenNotebookDocumentNotification=e.NotebookDocumentSyncRegistrationType=e.NotebookDocument=e.NotebookCell=e.ExecutionSummary=e.NotebookCellKind=void 0;var t=(V1(),w6(Sv)),r=E6(),i=li(),n;(function(g){g.Markup=1,g.Code=2;function x(b){return b===1||b===2}a(x,"is"),y(x,"is"),g.is=x})(n||(e.NotebookCellKind=n={}));var s;(function(g){function x(k,C){let S={executionOrder:k};return(C===!0||C===!1)&&(S.success=C),S}a(x,"create"),y(x,"create"),g.create=x;function b(k){let C=k;return r.objectLiteral(C)&&t.uinteger.is(C.executionOrder)&&(C.success===void 0||r.boolean(C.success))}a(b,"is"),y(b,"is"),g.is=b;function T(k,C){return k===C?!0:k==null||C===null||C===void 0?!1:k.executionOrder===C.executionOrder&&k.success===C.success}a(T,"equals"),y(T,"equals"),g.equals=T})(s||(e.ExecutionSummary=s={}));var o;(function(g){function x(C,S){return{kind:C,document:S}}a(x,"create"),y(x,"create"),g.create=x;function b(C){let S=C;return r.objectLiteral(S)&&n.is(S.kind)&&t.DocumentUri.is(S.document)&&(S.metadata===void 0||r.objectLiteral(S.metadata))}a(b,"is"),y(b,"is"),g.is=b;function T(C,S){let w=new Set;return C.document!==S.document&&w.add("document"),C.kind!==S.kind&&w.add("kind"),C.executionSummary!==S.executionSummary&&w.add("executionSummary"),(C.metadata!==void 0||S.metadata!==void 0)&&!k(C.metadata,S.metadata)&&w.add("metadata"),(C.executionSummary!==void 0||S.executionSummary!==void 0)&&!s.equals(C.executionSummary,S.executionSummary)&&w.add("executionSummary"),w}a(T,"diff"),y(T,"diff"),g.diff=T;function k(C,S){if(C===S)return!0;if(C==null||S===null||S===void 0||typeof C!=typeof S||typeof C!="object")return!1;let w=Array.isArray(C),_=Array.isArray(S);if(w!==_)return!1;if(w&&_){if(C.length!==S.length)return!1;for(let L=0;L<C.length;L++)if(!k(C[L],S[L]))return!1}if(r.objectLiteral(C)&&r.objectLiteral(S)){let L=Object.keys(C),I=Object.keys(S);if(L.length!==I.length||(L.sort(),I.sort(),!k(L,I)))return!1;for(let B=0;B<L.length;B++){let G=L[B];if(!k(C[G],S[G]))return!1}}return!0}a(k,"equalsMetadata"),y(k,"equalsMetadata")})(o||(e.NotebookCell=o={}));var l;(function(g){function x(T,k,C,S){return{uri:T,notebookType:k,version:C,cells:S}}a(x,"create"),y(x,"create"),g.create=x;function b(T){let k=T;return r.objectLiteral(k)&&r.string(k.uri)&&t.integer.is(k.version)&&r.typedArray(k.cells,o.is)}a(b,"is"),y(b,"is"),g.is=b})(l||(e.NotebookDocument=l={}));var u;(function(g){g.method="notebookDocument/sync",g.messageDirection=i.MessageDirection.clientToServer,g.type=new i.RegistrationType(g.method)})(u||(e.NotebookDocumentSyncRegistrationType=u={}));var h;(function(g){g.method="notebookDocument/didOpen",g.messageDirection=i.MessageDirection.clientToServer,g.type=new i.ProtocolNotificationType(g.method),g.registrationMethod=u.method})(h||(e.DidOpenNotebookDocumentNotification=h={}));var d;(function(g){function x(T){let k=T;return r.objectLiteral(k)&&t.uinteger.is(k.start)&&t.uinteger.is(k.deleteCount)&&(k.cells===void 0||r.typedArray(k.cells,o.is))}a(x,"is"),y(x,"is"),g.is=x;function b(T,k,C){let S={start:T,deleteCount:k};return C!==void 0&&(S.cells=C),S}a(b,"create"),y(b,"create"),g.create=b})(d||(e.NotebookCellArrayChange=d={}));var f;(function(g){g.method="notebookDocument/didChange",g.messageDirection=i.MessageDirection.clientToServer,g.type=new i.ProtocolNotificationType(g.method),g.registrationMethod=u.method})(f||(e.DidChangeNotebookDocumentNotification=f={}));var p;(function(g){g.method="notebookDocument/didSave",g.messageDirection=i.MessageDirection.clientToServer,g.type=new i.ProtocolNotificationType(g.method),g.registrationMethod=u.method})(p||(e.DidSaveNotebookDocumentNotification=p={}));var m;(function(g){g.method="notebookDocument/didClose",g.messageDirection=i.MessageDirection.clientToServer,g.type=new i.ProtocolNotificationType(g.method),g.registrationMethod=u.method})(m||(e.DidCloseNotebookDocumentNotification=m={}))}}),_$e=nr({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineCompletion.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.InlineCompletionRequest=void 0;var t=li(),r;(function(i){i.method="textDocument/inlineCompletion",i.messageDirection=t.MessageDirection.clientToServer,i.type=new t.ProtocolRequestType(i.method)})(r||(e.InlineCompletionRequest=r={}))}}),w$e=nr({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.WorkspaceSymbolRequest=e.CodeActionResolveRequest=e.CodeActionRequest=e.DocumentSymbolRequest=e.DocumentHighlightRequest=e.ReferencesRequest=e.DefinitionRequest=e.SignatureHelpRequest=e.SignatureHelpTriggerKind=e.HoverRequest=e.CompletionResolveRequest=e.CompletionRequest=e.CompletionTriggerKind=e.PublishDiagnosticsNotification=e.WatchKind=e.RelativePattern=e.FileChangeType=e.DidChangeWatchedFilesNotification=e.WillSaveTextDocumentWaitUntilRequest=e.WillSaveTextDocumentNotification=e.TextDocumentSaveReason=e.DidSaveTextDocumentNotification=e.DidCloseTextDocumentNotification=e.DidChangeTextDocumentNotification=e.TextDocumentContentChangeEvent=e.DidOpenTextDocumentNotification=e.TextDocumentSyncKind=e.TelemetryEventNotification=e.LogMessageNotification=e.ShowMessageRequest=e.ShowMessageNotification=e.MessageType=e.DidChangeConfigurationNotification=e.ExitNotification=e.ShutdownRequest=e.InitializedNotification=e.InitializeErrorCodes=e.InitializeRequest=e.WorkDoneProgressOptions=e.TextDocumentRegistrationOptions=e.StaticRegistrationOptions=e.PositionEncodingKind=e.FailureHandlingKind=e.ResourceOperationKind=e.UnregistrationRequest=e.RegistrationRequest=e.DocumentSelector=e.NotebookCellTextDocumentFilter=e.NotebookDocumentFilter=e.TextDocumentFilter=void 0,e.MonikerRequest=e.MonikerKind=e.UniquenessLevel=e.WillDeleteFilesRequest=e.DidDeleteFilesNotification=e.WillRenameFilesRequest=e.DidRenameFilesNotification=e.WillCreateFilesRequest=e.DidCreateFilesNotification=e.FileOperationPatternKind=e.LinkedEditingRangeRequest=e.ShowDocumentRequest=e.SemanticTokensRegistrationType=e.SemanticTokensRefreshRequest=e.SemanticTokensRangeRequest=e.SemanticTokensDeltaRequest=e.SemanticTokensRequest=e.TokenFormat=e.CallHierarchyPrepareRequest=e.CallHierarchyOutgoingCallsRequest=e.CallHierarchyIncomingCallsRequest=e.WorkDoneProgressCancelNotification=e.WorkDoneProgressCreateRequest=e.WorkDoneProgress=e.SelectionRangeRequest=e.DeclarationRequest=e.FoldingRangeRefreshRequest=e.FoldingRangeRequest=e.ColorPresentationRequest=e.DocumentColorRequest=e.ConfigurationRequest=e.DidChangeWorkspaceFoldersNotification=e.WorkspaceFoldersRequest=e.TypeDefinitionRequest=e.ImplementationRequest=e.ApplyWorkspaceEditRequest=e.ExecuteCommandRequest=e.PrepareRenameRequest=e.RenameRequest=e.PrepareSupportDefaultBehavior=e.DocumentOnTypeFormattingRequest=e.DocumentRangesFormattingRequest=e.DocumentRangeFormattingRequest=e.DocumentFormattingRequest=e.DocumentLinkResolveRequest=e.DocumentLinkRequest=e.CodeLensRefreshRequest=e.CodeLensResolveRequest=e.CodeLensRequest=e.WorkspaceSymbolResolveRequest=void 0,e.InlineCompletionRequest=e.DidCloseNotebookDocumentNotification=e.DidSaveNotebookDocumentNotification=e.DidChangeNotebookDocumentNotification=e.NotebookCellArrayChange=e.DidOpenNotebookDocumentNotification=e.NotebookDocumentSyncRegistrationType=e.NotebookDocument=e.NotebookCell=e.ExecutionSummary=e.NotebookCellKind=e.DiagnosticRefreshRequest=e.WorkspaceDiagnosticRequest=e.DocumentDiagnosticRequest=e.DocumentDiagnosticReportKind=e.DiagnosticServerCancellationData=e.InlayHintRefreshRequest=e.InlayHintResolveRequest=e.InlayHintRequest=e.InlineValueRefreshRequest=e.InlineValueRequest=e.TypeHierarchySupertypesRequest=e.TypeHierarchySubtypesRequest=e.TypeHierarchyPrepareRequest=void 0;var t=li(),r=(V1(),w6(Sv)),i=E6(),n=a$e();Object.defineProperty(e,"ImplementationRequest",{enumerable:!0,get:y(function(){return n.ImplementationRequest},"get")});var s=s$e();Object.defineProperty(e,"TypeDefinitionRequest",{enumerable:!0,get:y(function(){return s.TypeDefinitionRequest},"get")});var o=o$e();Object.defineProperty(e,"WorkspaceFoldersRequest",{enumerable:!0,get:y(function(){return o.WorkspaceFoldersRequest},"get")}),Object.defineProperty(e,"DidChangeWorkspaceFoldersNotification",{enumerable:!0,get:y(function(){return o.DidChangeWorkspaceFoldersNotification},"get")});var l=l$e();Object.defineProperty(e,"ConfigurationRequest",{enumerable:!0,get:y(function(){return l.ConfigurationRequest},"get")});var u=c$e();Object.defineProperty(e,"DocumentColorRequest",{enumerable:!0,get:y(function(){return u.DocumentColorRequest},"get")}),Object.defineProperty(e,"ColorPresentationRequest",{enumerable:!0,get:y(function(){return u.ColorPresentationRequest},"get")});var h=u$e();Object.defineProperty(e,"FoldingRangeRequest",{enumerable:!0,get:y(function(){return h.FoldingRangeRequest},"get")}),Object.defineProperty(e,"FoldingRangeRefreshRequest",{enumerable:!0,get:y(function(){return h.FoldingRangeRefreshRequest},"get")});var d=h$e();Object.defineProperty(e,"DeclarationRequest",{enumerable:!0,get:y(function(){return d.DeclarationRequest},"get")});var f=d$e();Object.defineProperty(e,"SelectionRangeRequest",{enumerable:!0,get:y(function(){return f.SelectionRangeRequest},"get")});var p=f$e();Object.defineProperty(e,"WorkDoneProgress",{enumerable:!0,get:y(function(){return p.WorkDoneProgress},"get")}),Object.defineProperty(e,"WorkDoneProgressCreateRequest",{enumerable:!0,get:y(function(){return p.WorkDoneProgressCreateRequest},"get")}),Object.defineProperty(e,"WorkDoneProgressCancelNotification",{enumerable:!0,get:y(function(){return p.WorkDoneProgressCancelNotification},"get")});var m=p$e();Object.defineProperty(e,"CallHierarchyIncomingCallsRequest",{enumerable:!0,get:y(function(){return m.CallHierarchyIncomingCallsRequest},"get")}),Object.defineProperty(e,"CallHierarchyOutgoingCallsRequest",{enumerable:!0,get:y(function(){return m.CallHierarchyOutgoingCallsRequest},"get")}),Object.defineProperty(e,"CallHierarchyPrepareRequest",{enumerable:!0,get:y(function(){return m.CallHierarchyPrepareRequest},"get")});var g=m$e();Object.defineProperty(e,"TokenFormat",{enumerable:!0,get:y(function(){return g.TokenFormat},"get")}),Object.defineProperty(e,"SemanticTokensRequest",{enumerable:!0,get:y(function(){return g.SemanticTokensRequest},"get")}),Object.defineProperty(e,"SemanticTokensDeltaRequest",{enumerable:!0,get:y(function(){return g.SemanticTokensDeltaRequest},"get")}),Object.defineProperty(e,"SemanticTokensRangeRequest",{enumerable:!0,get:y(function(){return g.SemanticTokensRangeRequest},"get")}),Object.defineProperty(e,"SemanticTokensRefreshRequest",{enumerable:!0,get:y(function(){return g.SemanticTokensRefreshRequest},"get")}),Object.defineProperty(e,"SemanticTokensRegistrationType",{enumerable:!0,get:y(function(){return g.SemanticTokensRegistrationType},"get")});var x=g$e();Object.defineProperty(e,"ShowDocumentRequest",{enumerable:!0,get:y(function(){return x.ShowDocumentRequest},"get")});var b=y$e();Object.defineProperty(e,"LinkedEditingRangeRequest",{enumerable:!0,get:y(function(){return b.LinkedEditingRangeRequest},"get")});var T=x$e();Object.defineProperty(e,"FileOperationPatternKind",{enumerable:!0,get:y(function(){return T.FileOperationPatternKind},"get")}),Object.defineProperty(e,"DidCreateFilesNotification",{enumerable:!0,get:y(function(){return T.DidCreateFilesNotification},"get")}),Object.defineProperty(e,"WillCreateFilesRequest",{enumerable:!0,get:y(function(){return T.WillCreateFilesRequest},"get")}),Object.defineProperty(e,"DidRenameFilesNotification",{enumerable:!0,get:y(function(){return T.DidRenameFilesNotification},"get")}),Object.defineProperty(e,"WillRenameFilesRequest",{enumerable:!0,get:y(function(){return T.WillRenameFilesRequest},"get")}),Object.defineProperty(e,"DidDeleteFilesNotification",{enumerable:!0,get:y(function(){return T.DidDeleteFilesNotification},"get")}),Object.defineProperty(e,"WillDeleteFilesRequest",{enumerable:!0,get:y(function(){return T.WillDeleteFilesRequest},"get")});var k=b$e();Object.defineProperty(e,"UniquenessLevel",{enumerable:!0,get:y(function(){return k.UniquenessLevel},"get")}),Object.defineProperty(e,"MonikerKind",{enumerable:!0,get:y(function(){return k.MonikerKind},"get")}),Object.defineProperty(e,"MonikerRequest",{enumerable:!0,get:y(function(){return k.MonikerRequest},"get")});var C=T$e();Object.defineProperty(e,"TypeHierarchyPrepareRequest",{enumerable:!0,get:y(function(){return C.TypeHierarchyPrepareRequest},"get")}),Object.defineProperty(e,"TypeHierarchySubtypesRequest",{enumerable:!0,get:y(function(){return C.TypeHierarchySubtypesRequest},"get")}),Object.defineProperty(e,"TypeHierarchySupertypesRequest",{enumerable:!0,get:y(function(){return C.TypeHierarchySupertypesRequest},"get")});var S=k$e();Object.defineProperty(e,"InlineValueRequest",{enumerable:!0,get:y(function(){return S.InlineValueRequest},"get")}),Object.defineProperty(e,"InlineValueRefreshRequest",{enumerable:!0,get:y(function(){return S.InlineValueRefreshRequest},"get")});var w=C$e();Object.defineProperty(e,"InlayHintRequest",{enumerable:!0,get:y(function(){return w.InlayHintRequest},"get")}),Object.defineProperty(e,"InlayHintResolveRequest",{enumerable:!0,get:y(function(){return w.InlayHintResolveRequest},"get")}),Object.defineProperty(e,"InlayHintRefreshRequest",{enumerable:!0,get:y(function(){return w.InlayHintRefreshRequest},"get")});var _=v$e();Object.defineProperty(e,"DiagnosticServerCancellationData",{enumerable:!0,get:y(function(){return _.DiagnosticServerCancellationData},"get")}),Object.defineProperty(e,"DocumentDiagnosticReportKind",{enumerable:!0,get:y(function(){return _.DocumentDiagnosticReportKind},"get")}),Object.defineProperty(e,"DocumentDiagnosticRequest",{enumerable:!0,get:y(function(){return _.DocumentDiagnosticRequest},"get")}),Object.defineProperty(e,"WorkspaceDiagnosticRequest",{enumerable:!0,get:y(function(){return _.WorkspaceDiagnosticRequest},"get")}),Object.defineProperty(e,"DiagnosticRefreshRequest",{enumerable:!0,get:y(function(){return _.DiagnosticRefreshRequest},"get")});var L=S$e();Object.defineProperty(e,"NotebookCellKind",{enumerable:!0,get:y(function(){return L.NotebookCellKind},"get")}),Object.defineProperty(e,"ExecutionSummary",{enumerable:!0,get:y(function(){return L.ExecutionSummary},"get")}),Object.defineProperty(e,"NotebookCell",{enumerable:!0,get:y(function(){return L.NotebookCell},"get")}),Object.defineProperty(e,"NotebookDocument",{enumerable:!0,get:y(function(){return L.NotebookDocument},"get")}),Object.defineProperty(e,"NotebookDocumentSyncRegistrationType",{enumerable:!0,get:y(function(){return L.NotebookDocumentSyncRegistrationType},"get")}),Object.defineProperty(e,"DidOpenNotebookDocumentNotification",{enumerable:!0,get:y(function(){return L.DidOpenNotebookDocumentNotification},"get")}),Object.defineProperty(e,"NotebookCellArrayChange",{enumerable:!0,get:y(function(){return L.NotebookCellArrayChange},"get")}),Object.defineProperty(e,"DidChangeNotebookDocumentNotification",{enumerable:!0,get:y(function(){return L.DidChangeNotebookDocumentNotification},"get")}),Object.defineProperty(e,"DidSaveNotebookDocumentNotification",{enumerable:!0,get:y(function(){return L.DidSaveNotebookDocumentNotification},"get")}),Object.defineProperty(e,"DidCloseNotebookDocumentNotification",{enumerable:!0,get:y(function(){return L.DidCloseNotebookDocumentNotification},"get")});var I=_$e();Object.defineProperty(e,"InlineCompletionRequest",{enumerable:!0,get:y(function(){return I.InlineCompletionRequest},"get")});var B;(function(H){function at(ut){let We=ut;return i.string(We)||i.string(We.language)||i.string(We.scheme)||i.string(We.pattern)}a(at,"is"),y(at,"is"),H.is=at})(B||(e.TextDocumentFilter=B={}));var G;(function(H){function at(ut){let We=ut;return i.objectLiteral(We)&&(i.string(We.notebookType)||i.string(We.scheme)||i.string(We.pattern))}a(at,"is"),y(at,"is"),H.is=at})(G||(e.NotebookDocumentFilter=G={}));var P;(function(H){function at(ut){let We=ut;return i.objectLiteral(We)&&(i.string(We.notebook)||G.is(We.notebook))&&(We.language===void 0||i.string(We.language))}a(at,"is"),y(at,"is"),H.is=at})(P||(e.NotebookCellTextDocumentFilter=P={}));var F;(function(H){function at(ut){if(!Array.isArray(ut))return!1;for(let We of ut)if(!i.string(We)&&!B.is(We)&&!P.is(We))return!1;return!0}a(at,"is"),y(at,"is"),H.is=at})(F||(e.DocumentSelector=F={}));var A;(function(H){H.method="client/registerCapability",H.messageDirection=t.MessageDirection.serverToClient,H.type=new t.ProtocolRequestType(H.method)})(A||(e.RegistrationRequest=A={}));var D;(function(H){H.method="client/unregisterCapability",H.messageDirection=t.MessageDirection.serverToClient,H.type=new t.ProtocolRequestType(H.method)})(D||(e.UnregistrationRequest=D={}));var R;(function(H){H.Create="create",H.Rename="rename",H.Delete="delete"})(R||(e.ResourceOperationKind=R={}));var N;(function(H){H.Abort="abort",H.Transactional="transactional",H.TextOnlyTransactional="textOnlyTransactional",H.Undo="undo"})(N||(e.FailureHandlingKind=N={}));var $;(function(H){H.UTF8="utf-8",H.UTF16="utf-16",H.UTF32="utf-32"})($||(e.PositionEncodingKind=$={}));var E;(function(H){function at(ut){let We=ut;return We&&i.string(We.id)&&We.id.length>0}a(at,"hasId"),y(at,"hasId"),H.hasId=at})(E||(e.StaticRegistrationOptions=E={}));var M;(function(H){function at(ut){let We=ut;return We&&(We.documentSelector===null||F.is(We.documentSelector))}a(at,"is"),y(at,"is"),H.is=at})(M||(e.TextDocumentRegistrationOptions=M={}));var V;(function(H){function at(We){let Z=We;return i.objectLiteral(Z)&&(Z.workDoneProgress===void 0||i.boolean(Z.workDoneProgress))}a(at,"is"),y(at,"is"),H.is=at;function ut(We){let Z=We;return Z&&i.boolean(Z.workDoneProgress)}a(ut,"hasWorkDoneProgress"),y(ut,"hasWorkDoneProgress"),H.hasWorkDoneProgress=ut})(V||(e.WorkDoneProgressOptions=V={}));var O;(function(H){H.method="initialize",H.messageDirection=t.MessageDirection.clientToServer,H.type=new t.ProtocolRequestType(H.method)})(O||(e.InitializeRequest=O={}));var z;(function(H){H.unknownProtocolVersion=1})(z||(e.InitializeErrorCodes=z={}));var U;(function(H){H.method="initialized",H.messageDirection=t.MessageDirection.clientToServer,H.type=new t.ProtocolNotificationType(H.method)})(U||(e.InitializedNotification=U={}));var K;(function(H){H.method="shutdown",H.messageDirection=t.MessageDirection.clientToServer,H.type=new t.ProtocolRequestType0(H.method)})(K||(e.ShutdownRequest=K={}));var j;(function(H){H.method="exit",H.messageDirection=t.MessageDirection.clientToServer,H.type=new t.ProtocolNotificationType0(H.method)})(j||(e.ExitNotification=j={}));var ae;(function(H){H.method="workspace/didChangeConfiguration",H.messageDirection=t.MessageDirection.clientToServer,H.type=new t.ProtocolNotificationType(H.method)})(ae||(e.DidChangeConfigurationNotification=ae={}));var X;(function(H){H.Error=1,H.Warning=2,H.Info=3,H.Log=4,H.Debug=5})(X||(e.MessageType=X={}));var de;(function(H){H.method="window/showMessage",H.messageDirection=t.MessageDirection.serverToClient,H.type=new t.ProtocolNotificationType(H.method)})(de||(e.ShowMessageNotification=de={}));var le;(function(H){H.method="window/showMessageRequest",H.messageDirection=t.MessageDirection.serverToClient,H.type=new t.ProtocolRequestType(H.method)})(le||(e.ShowMessageRequest=le={}));var ge;(function(H){H.method="window/logMessage",H.messageDirection=t.MessageDirection.serverToClient,H.type=new t.ProtocolNotificationType(H.method)})(ge||(e.LogMessageNotification=ge={}));var he;(function(H){H.method="telemetry/event",H.messageDirection=t.MessageDirection.serverToClient,H.type=new t.ProtocolNotificationType(H.method)})(he||(e.TelemetryEventNotification=he={}));var te;(function(H){H.None=0,H.Full=1,H.Incremental=2})(te||(e.TextDocumentSyncKind=te={}));var Le;(function(H){H.method="textDocument/didOpen",H.messageDirection=t.MessageDirection.clientToServer,H.type=new t.ProtocolNotificationType(H.method)})(Le||(e.DidOpenTextDocumentNotification=Le={}));var xe;(function(H){function at(We){let Z=We;return Z!=null&&typeof Z.text=="string"&&Z.range!==void 0&&(Z.rangeLength===void 0||typeof Z.rangeLength=="number")}a(at,"isIncremental"),y(at,"isIncremental"),H.isIncremental=at;function ut(We){let Z=We;return Z!=null&&typeof Z.text=="string"&&Z.range===void 0&&Z.rangeLength===void 0}a(ut,"isFull"),y(ut,"isFull"),H.isFull=ut})(xe||(e.TextDocumentContentChangeEvent=xe={}));var ye;(function(H){H.method="textDocument/didChange",H.messageDirection=t.MessageDirection.clientToServer,H.type=new t.ProtocolNotificationType(H.method)})(ye||(e.DidChangeTextDocumentNotification=ye={}));var be;(function(H){H.method="textDocument/didClose",H.messageDirection=t.MessageDirection.clientToServer,H.type=new t.ProtocolNotificationType(H.method)})(be||(e.DidCloseTextDocumentNotification=be={}));var Ce;(function(H){H.method="textDocument/didSave",H.messageDirection=t.MessageDirection.clientToServer,H.type=new t.ProtocolNotificationType(H.method)})(Ce||(e.DidSaveTextDocumentNotification=Ce={}));var Oe;(function(H){H.Manual=1,H.AfterDelay=2,H.FocusOut=3})(Oe||(e.TextDocumentSaveReason=Oe={}));var Ae;(function(H){H.method="textDocument/willSave",H.messageDirection=t.MessageDirection.clientToServer,H.type=new t.ProtocolNotificationType(H.method)})(Ae||(e.WillSaveTextDocumentNotification=Ae={}));var st;(function(H){H.method="textDocument/willSaveWaitUntil",H.messageDirection=t.MessageDirection.clientToServer,H.type=new t.ProtocolRequestType(H.method)})(st||(e.WillSaveTextDocumentWaitUntilRequest=st={}));var ce;(function(H){H.method="workspace/didChangeWatchedFiles",H.messageDirection=t.MessageDirection.clientToServer,H.type=new t.ProtocolNotificationType(H.method)})(ce||(e.DidChangeWatchedFilesNotification=ce={}));var Mt;(function(H){H.Created=1,H.Changed=2,H.Deleted=3})(Mt||(e.FileChangeType=Mt={}));var fe;(function(H){function at(ut){let We=ut;return i.objectLiteral(We)&&(r.URI.is(We.baseUri)||r.WorkspaceFolder.is(We.baseUri))&&i.string(We.pattern)}a(at,"is"),y(at,"is"),H.is=at})(fe||(e.RelativePattern=fe={}));var Ue;(function(H){H.Create=1,H.Change=2,H.Delete=4})(Ue||(e.WatchKind=Ue={}));var Je;(function(H){H.method="textDocument/publishDiagnostics",H.messageDirection=t.MessageDirection.serverToClient,H.type=new t.ProtocolNotificationType(H.method)})(Je||(e.PublishDiagnosticsNotification=Je={}));var ot;(function(H){H.Invoked=1,H.TriggerCharacter=2,H.TriggerForIncompleteCompletions=3})(ot||(e.CompletionTriggerKind=ot={}));var Ne;(function(H){H.method="textDocument/completion",H.messageDirection=t.MessageDirection.clientToServer,H.type=new t.ProtocolRequestType(H.method)})(Ne||(e.CompletionRequest=Ne={}));var ze;(function(H){H.method="completionItem/resolve",H.messageDirection=t.MessageDirection.clientToServer,H.type=new t.ProtocolRequestType(H.method)})(ze||(e.CompletionResolveRequest=ze={}));var oe;(function(H){H.method="textDocument/hover",H.messageDirection=t.MessageDirection.clientToServer,H.type=new t.ProtocolRequestType(H.method)})(oe||(e.HoverRequest=oe={}));var _e;(function(H){H.Invoked=1,H.TriggerCharacter=2,H.ContentChange=3})(_e||(e.SignatureHelpTriggerKind=_e={}));var re;(function(H){H.method="textDocument/signatureHelp",H.messageDirection=t.MessageDirection.clientToServer,H.type=new t.ProtocolRequestType(H.method)})(re||(e.SignatureHelpRequest=re={}));var Ke;(function(H){H.method="textDocument/definition",H.messageDirection=t.MessageDirection.clientToServer,H.type=new t.ProtocolRequestType(H.method)})(Ke||(e.DefinitionRequest=Ke={}));var Q;(function(H){H.method="textDocument/references",H.messageDirection=t.MessageDirection.clientToServer,H.type=new t.ProtocolRequestType(H.method)})(Q||(e.ReferencesRequest=Q={}));var Me;(function(H){H.method="textDocument/documentHighlight",H.messageDirection=t.MessageDirection.clientToServer,H.type=new t.ProtocolRequestType(H.method)})(Me||(e.DocumentHighlightRequest=Me={}));var Y;(function(H){H.method="textDocument/documentSymbol",H.messageDirection=t.MessageDirection.clientToServer,H.type=new t.ProtocolRequestType(H.method)})(Y||(e.DocumentSymbolRequest=Y={}));var dt;(function(H){H.method="textDocument/codeAction",H.messageDirection=t.MessageDirection.clientToServer,H.type=new t.ProtocolRequestType(H.method)})(dt||(e.CodeActionRequest=dt={}));var Ge;(function(H){H.method="codeAction/resolve",H.messageDirection=t.MessageDirection.clientToServer,H.type=new t.ProtocolRequestType(H.method)})(Ge||(e.CodeActionResolveRequest=Ge={}));var ft;(function(H){H.method="workspace/symbol",H.messageDirection=t.MessageDirection.clientToServer,H.type=new t.ProtocolRequestType(H.method)})(ft||(e.WorkspaceSymbolRequest=ft={}));var Be;(function(H){H.method="workspaceSymbol/resolve",H.messageDirection=t.MessageDirection.clientToServer,H.type=new t.ProtocolRequestType(H.method)})(Be||(e.WorkspaceSymbolResolveRequest=Be={}));var tt;(function(H){H.method="textDocument/codeLens",H.messageDirection=t.MessageDirection.clientToServer,H.type=new t.ProtocolRequestType(H.method)})(tt||(e.CodeLensRequest=tt={}));var Ie;(function(H){H.method="codeLens/resolve",H.messageDirection=t.MessageDirection.clientToServer,H.type=new t.ProtocolRequestType(H.method)})(Ie||(e.CodeLensResolveRequest=Ie={}));var it;(function(H){H.method="workspace/codeLens/refresh",H.messageDirection=t.MessageDirection.serverToClient,H.type=new t.ProtocolRequestType0(H.method)})(it||(e.CodeLensRefreshRequest=it={}));var Ee;(function(H){H.method="textDocument/documentLink",H.messageDirection=t.MessageDirection.clientToServer,H.type=new t.ProtocolRequestType(H.method)})(Ee||(e.DocumentLinkRequest=Ee={}));var pt;(function(H){H.method="documentLink/resolve",H.messageDirection=t.MessageDirection.clientToServer,H.type=new t.ProtocolRequestType(H.method)})(pt||(e.DocumentLinkResolveRequest=pt={}));var ie;(function(H){H.method="textDocument/formatting",H.messageDirection=t.MessageDirection.clientToServer,H.type=new t.ProtocolRequestType(H.method)})(ie||(e.DocumentFormattingRequest=ie={}));var $t;(function(H){H.method="textDocument/rangeFormatting",H.messageDirection=t.MessageDirection.clientToServer,H.type=new t.ProtocolRequestType(H.method)})($t||(e.DocumentRangeFormattingRequest=$t={}));var ue;(function(H){H.method="textDocument/rangesFormatting",H.messageDirection=t.MessageDirection.clientToServer,H.type=new t.ProtocolRequestType(H.method)})(ue||(e.DocumentRangesFormattingRequest=ue={}));var vt;(function(H){H.method="textDocument/onTypeFormatting",H.messageDirection=t.MessageDirection.clientToServer,H.type=new t.ProtocolRequestType(H.method)})(vt||(e.DocumentOnTypeFormattingRequest=vt={}));var Lt;(function(H){H.Identifier=1})(Lt||(e.PrepareSupportDefaultBehavior=Lt={}));var Nr;(function(H){H.method="textDocument/rename",H.messageDirection=t.MessageDirection.clientToServer,H.type=new t.ProtocolRequestType(H.method)})(Nr||(e.RenameRequest=Nr={}));var gt;(function(H){H.method="textDocument/prepareRename",H.messageDirection=t.MessageDirection.clientToServer,H.type=new t.ProtocolRequestType(H.method)})(gt||(e.PrepareRenameRequest=gt={}));var Pt;(function(H){H.method="workspace/executeCommand",H.messageDirection=t.MessageDirection.clientToServer,H.type=new t.ProtocolRequestType(H.method)})(Pt||(e.ExecuteCommandRequest=Pt={}));var kt;(function(H){H.method="workspace/applyEdit",H.messageDirection=t.MessageDirection.serverToClient,H.type=new t.ProtocolRequestType("workspace/applyEdit")})(kt||(e.ApplyWorkspaceEditRequest=kt={}))}}),E$e=nr({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/connection.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createProtocolConnection=void 0;var t=vm();function r(i,n,s,o){return t.ConnectionStrategy.is(o)&&(o={connectionStrategy:o}),(0,t.createMessageConnection)(i,n,s,o)}a(r,"createProtocolConnection"),y(r,"createProtocolConnection"),e.createProtocolConnection=r}}),A$e=nr({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/api.js"(e){"use strict";var t=e&&e.__createBinding||(Object.create?(function(s,o,l,u){u===void 0&&(u=l);var h=Object.getOwnPropertyDescriptor(o,l);(!h||("get"in h?!o.__esModule:h.writable||h.configurable))&&(h={enumerable:!0,get:y(function(){return o[l]},"get")}),Object.defineProperty(s,u,h)}):(function(s,o,l,u){u===void 0&&(u=l),s[u]=o[l]})),r=e&&e.__exportStar||function(s,o){for(var l in s)l!=="default"&&!Object.prototype.hasOwnProperty.call(o,l)&&t(o,s,l)};Object.defineProperty(e,"__esModule",{value:!0}),e.LSPErrorCodes=e.createProtocolConnection=void 0,r(vm(),e),r((V1(),w6(Sv)),e),r(li(),e),r(w$e(),e);var i=E$e();Object.defineProperty(e,"createProtocolConnection",{enumerable:!0,get:y(function(){return i.createProtocolConnection},"get")});var n;(function(s){s.lspReservedErrorRangeStart=-32899,s.RequestFailed=-32803,s.ServerCancelled=-32802,s.ContentModified=-32801,s.RequestCancelled=-32800,s.lspReservedErrorRangeEnd=-32800})(n||(e.LSPErrorCodes=n={}))}}),R$e=nr({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/browser/main.js"(e){"use strict";var t=e&&e.__createBinding||(Object.create?(function(s,o,l,u){u===void 0&&(u=l);var h=Object.getOwnPropertyDescriptor(o,l);(!h||("get"in h?!o.__esModule:h.writable||h.configurable))&&(h={enumerable:!0,get:y(function(){return o[l]},"get")}),Object.defineProperty(s,u,h)}):(function(s,o,l,u){u===void 0&&(u=l),s[u]=o[l]})),r=e&&e.__exportStar||function(s,o){for(var l in s)l!=="default"&&!Object.prototype.hasOwnProperty.call(o,l)&&t(o,s,l)};Object.defineProperty(e,"__esModule",{value:!0}),e.createProtocolConnection=void 0;var i=ure();r(ure(),e),r(A$e(),e);function n(s,o,l,u){return(0,i.createMessageConnection)(s,o,l,u)}a(n,"createProtocolConnection"),y(n,"createProtocolConnection"),e.createProtocolConnection=n}}),nne={};wu(nne,{AbstractAstReflection:a(()=>L6,"AbstractAstReflection"),AbstractCstNode:a(()=>IM,"AbstractCstNode"),AbstractLangiumParser:a(()=>MM,"AbstractLangiumParser"),AbstractParserErrorMessageProvider:a(()=>Hfe,"AbstractParserErrorMessageProvider"),AbstractThreadedAsyncParser:a(()=>nKe,"AbstractThreadedAsyncParser"),AstUtils:a(()=>D6,"AstUtils"),BiMap:a(()=>bv,"BiMap"),Cancellation:a(()=>Ur,"Cancellation"),CompositeCstNodeImpl:a(()=>kS,"CompositeCstNodeImpl"),ContextCache:a(()=>AS,"ContextCache"),CstNodeBuilder:a(()=>zfe,"CstNodeBuilder"),CstUtils:a(()=>A6,"CstUtils"),DEFAULT_TOKENIZE_OPTIONS:a(()=>ZM,"DEFAULT_TOKENIZE_OPTIONS"),DONE_RESULT:a(()=>$n,"DONE_RESULT"),DatatypeSymbol:a(()=>mv,"DatatypeSymbol"),DefaultAstNodeDescriptionProvider:a(()=>vpe,"DefaultAstNodeDescriptionProvider"),DefaultAstNodeLocator:a(()=>_pe,"DefaultAstNodeLocator"),DefaultAsyncParser:a(()=>zpe,"DefaultAsyncParser"),DefaultCommentProvider:a(()=>Wpe,"DefaultCommentProvider"),DefaultConfigurationProvider:a(()=>wpe,"DefaultConfigurationProvider"),DefaultDocumentBuilder:a(()=>Epe,"DefaultDocumentBuilder"),DefaultDocumentValidator:a(()=>Cpe,"DefaultDocumentValidator"),DefaultHydrator:a(()=>jpe,"DefaultHydrator"),DefaultIndexManager:a(()=>Ape,"DefaultIndexManager"),DefaultJsonSerializer:a(()=>xpe,"DefaultJsonSerializer"),DefaultLangiumDocumentFactory:a(()=>cpe,"DefaultLangiumDocumentFactory"),DefaultLangiumDocuments:a(()=>upe,"DefaultLangiumDocuments"),DefaultLangiumProfiler:a(()=>cKe,"DefaultLangiumProfiler"),DefaultLexer:a(()=>JM,"DefaultLexer"),DefaultLexerErrorMessageProvider:a(()=>Lpe,"DefaultLexerErrorMessageProvider"),DefaultLinker:a(()=>hpe,"DefaultLinker"),DefaultNameProvider:a(()=>dpe,"DefaultNameProvider"),DefaultReferenceDescriptionProvider:a(()=>Spe,"DefaultReferenceDescriptionProvider"),DefaultReferences:a(()=>fpe,"DefaultReferences"),DefaultScopeComputation:a(()=>ppe,"DefaultScopeComputation"),DefaultScopeProvider:a(()=>ype,"DefaultScopeProvider"),DefaultServiceRegistry:a(()=>bpe,"DefaultServiceRegistry"),DefaultTokenBuilder:a(()=>SS,"DefaultTokenBuilder"),DefaultValueConverter:a(()=>GM,"DefaultValueConverter"),DefaultWorkspaceLock:a(()=>qpe,"DefaultWorkspaceLock"),DefaultWorkspaceManager:a(()=>Rpe,"DefaultWorkspaceManager"),Deferred:a(()=>Hl,"Deferred"),Disposable:a(()=>Ad,"Disposable"),DisposableCache:a(()=>ES,"DisposableCache"),DocumentCache:a(()=>gpe,"DocumentCache"),DocumentState:a(()=>mr,"DocumentState"),DocumentValidator:a(()=>ls,"DocumentValidator"),EMPTY_SCOPE:a(()=>eKe,"EMPTY_SCOPE"),EMPTY_STREAM:a(()=>um,"EMPTY_STREAM"),EmptyFileSystem:a(()=>xi,"EmptyFileSystem"),EmptyFileSystemProvider:a(()=>Ype,"EmptyFileSystemProvider"),ErrorWithLocation:a(()=>Mv,"ErrorWithLocation"),GrammarAST:a(()=>one,"GrammarAST"),GrammarUtils:a(()=>oN,"GrammarUtils"),IndentationAwareLexer:a(()=>sKe,"IndentationAwareLexer"),IndentationAwareTokenBuilder:a(()=>Hpe,"IndentationAwareTokenBuilder"),JSDocDocumentationProvider:a(()=>Gpe,"JSDocDocumentationProvider"),LangiumCompletionParser:a(()=>Yfe,"LangiumCompletionParser"),LangiumParser:a(()=>Ufe,"LangiumParser"),LangiumParserErrorMessageProvider:a(()=>OM,"LangiumParserErrorMessageProvider"),LeafCstNodeImpl:a(()=>pv,"LeafCstNodeImpl"),LexingMode:a(()=>wd,"LexingMode"),MapScope:a(()=>JYe,"MapScope"),Module:a(()=>h6,"Module"),MultiMap:a(()=>Yl,"MultiMap"),MultiMapScope:a(()=>mpe,"MultiMapScope"),OperationCancelled:a(()=>jo,"OperationCancelled"),ParserWorker:a(()=>aKe,"ParserWorker"),ProfilingTask:a(()=>Xpe,"ProfilingTask"),Reduction:a(()=>v1,"Reduction"),RefResolving:a(()=>id,"RefResolving"),RegExpUtils:a(()=>cN,"RegExpUtils"),RootCstNodeImpl:a(()=>NM,"RootCstNodeImpl"),SimpleCache:a(()=>HM,"SimpleCache"),StreamImpl:a(()=>qo,"StreamImpl"),StreamScope:a(()=>o6,"StreamScope"),TextDocument:a(()=>yv,"TextDocument"),TreeStreamImpl:a(()=>hm,"TreeStreamImpl"),URI:a(()=>La,"URI"),UriTrie:a(()=>jM,"UriTrie"),UriUtils:a(()=>Vn,"UriUtils"),VALIDATE_EACH_NODE:a(()=>kpe,"VALIDATE_EACH_NODE"),ValidationCategory:a(()=>Tv,"ValidationCategory"),ValidationRegistry:a(()=>Tpe,"ValidationRegistry"),ValueConverter:a(()=>Wo,"ValueConverter"),WorkspaceCache:a(()=>YM,"WorkspaceCache"),assertCondition:a(()=>lN,"assertCondition"),assertUnreachable:a(()=>Eu,"assertUnreachable"),createCompletionParser:a(()=>$M,"createCompletionParser"),createDefaultCoreModule:a(()=>ci,"createDefaultCoreModule"),createDefaultSharedCoreModule:a(()=>ui,"createDefaultSharedCoreModule"),createGrammarConfig:a(()=>EN,"createGrammarConfig"),createLangiumParser:a(()=>FM,"createLangiumParser"),createParser:a(()=>CS,"createParser"),delayNextTick:a(()=>_S,"delayNextTick"),diagnosticData:a(()=>_d,"diagnosticData"),eagerLoad:a(()=>sO,"eagerLoad"),getDiagnosticRange:a(()=>XM,"getDiagnosticRange"),indentationBuilderDefaultOptions:a(()=>f6,"indentationBuilderDefaultOptions"),inject:a(()=>Tr,"inject"),interruptAndCheck:a(()=>tn,"interruptAndCheck"),isAstNode:a(()=>Di,"isAstNode"),isAstNodeDescription:a(()=>R6,"isAstNodeDescription"),isAstNodeWithComment:a(()=>KM,"isAstNodeWithComment"),isCompositeCstNode:a(()=>Fl,"isCompositeCstNode"),isIMultiModeLexerDefinition:a(()=>DS,"isIMultiModeLexerDefinition"),isJSDoc:a(()=>tO,"isJSDoc"),isLeafCstNode:a(()=>Md,"isLeafCstNode"),isLinkingError:a(()=>sd,"isLinkingError"),isMultiReference:a(()=>Uo,"isMultiReference"),isNamed:a(()=>UM,"isNamed"),isOperationCancelled:a(()=>Jd,"isOperationCancelled"),isReference:a(()=>Fn,"isReference"),isRootCstNode:a(()=>wv,"isRootCstNode"),isTokenTypeArray:a(()=>LS,"isTokenTypeArray"),isTokenTypeDictionary:a(()=>kv,"isTokenTypeDictionary"),loadGrammarFromJson:a(()=>Pa,"loadGrammarFromJson"),parseJSDoc:a(()=>eO,"parseJSDoc"),prepareLangiumParser:a(()=>VM,"prepareLangiumParser"),setInterruptionPeriod:a(()=>WM,"setInterruptionPeriod"),startCancelableOperation:a(()=>wS,"startCancelableOperation"),stream:a(()=>Br,"stream"),toDiagnosticData:a(()=>QM,"toDiagnosticData"),toDiagnosticSeverity:a(()=>b1,"toDiagnosticSeverity")});A6={};wu(A6,{DefaultNameRegexp:a(()=>rN,"DefaultNameRegexp"),RangeComparison:a(()=>zo,"RangeComparison"),compareRange:a(()=>eN,"compareRange"),findCommentNode:a(()=>iN,"findCommentNode"),findDeclarationNodeAtOffset:a(()=>wne,"findDeclarationNodeAtOffset"),findLeafNodeAtOffset:a(()=>Nv,"findLeafNodeAtOffset"),findLeafNodeBeforeOffset:a(()=>nN,"findLeafNodeBeforeOffset"),flattenCst:a(()=>_ne,"flattenCst"),getDatatypeNode:a(()=>Sne,"getDatatypeNode"),getInteriorNodes:a(()=>Rne,"getInteriorNodes"),getNextNode:a(()=>Ene,"getNextNode"),getPreviousNode:a(()=>sN,"getPreviousNode"),getStartlineNode:a(()=>Ane,"getStartlineNode"),inRange:a(()=>tN,"inRange"),isChildNode:a(()=>J6,"isChildNode"),isCommentNode:a(()=>ZC,"isCommentNode"),streamCst:a(()=>mm,"streamCst"),toDocumentSegment:a(()=>gm,"toDocumentSegment"),tokenToRange:a(()=>S1,"tokenToRange")});a(Di,"isAstNode");y(Di,"isAstNode");a(Fn,"isReference");y(Fn,"isReference");a(Uo,"isMultiReference");y(Uo,"isMultiReference");a(R6,"isAstNodeDescription");y(R6,"isAstNodeDescription");a(sd,"isLinkingError");y(sd,"isLinkingError");L6=class{static{a(this,"AbstractAstReflection")}static{y(this,"AbstractAstReflection")}constructor(){this.subtypes={},this.allSubtypes={}}getAllTypes(){return Object.keys(this.types)}getReferenceType(e){let t=this.types[e.container.$type];if(!t)throw new Error(`Type ${e.container.$type||"undefined"} not found.`);let r=t.properties[e.property]?.referenceType;if(!r)throw new Error(`Property ${e.property||"undefined"} of type ${e.container.$type} is not a reference.`);return r}getTypeMetaData(e){let t=this.types[e];return t||{name:e,properties:{},superTypes:[]}}isInstance(e,t){return Di(e)&&this.isSubtype(e.$type,t)}isSubtype(e,t){if(e===t)return!0;let r=this.subtypes[e];r||(r=this.subtypes[e]={});let i=r[t];if(i!==void 0)return i;{let n=this.types[e],s=n?n.superTypes.some(o=>this.isSubtype(o,t)):!1;return r[t]=s,s}}getAllSubTypes(e){let t=this.allSubtypes[e];if(t)return t;{let r=this.getAllTypes(),i=[];for(let n of r)this.isSubtype(n,e)&&i.push(n);return this.allSubtypes[e]=i,i}}};a(Fl,"isCompositeCstNode");y(Fl,"isCompositeCstNode");a(Md,"isLeafCstNode");y(Md,"isLeafCstNode");a(wv,"isRootCstNode");y(wv,"isRootCstNode");qo=class Ml{static{a(this,"_StreamImpl")}static{y(this,"StreamImpl")}constructor(t,r){this.startFn=t,this.nextFn=r}iterator(){let t={state:this.startFn(),next:y(()=>this.nextFn(t.state),"next"),[Symbol.iterator]:()=>t};return t}[Symbol.iterator](){return this.iterator()}isEmpty(){return!!this.iterator().next().done}count(){let t=this.iterator(),r=0,i=t.next();for(;!i.done;)r++,i=t.next();return r}toArray(){let t=[],r=this.iterator(),i;do i=r.next(),i.value!==void 0&&t.push(i.value);while(!i.done);return t}toSet(){return new Set(this)}toMap(t,r){let i=this.map(n=>[t?t(n):n,r?r(n):n]);return new Map(i)}toString(){return this.join()}concat(t){return new Ml(()=>({first:this.startFn(),firstDone:!1,iterator:t[Symbol.iterator]()}),r=>{let i;if(!r.firstDone){do if(i=this.nextFn(r.first),!i.done)return i;while(!i.done);r.firstDone=!0}do if(i=r.iterator.next(),!i.done)return i;while(!i.done);return $n})}join(t=","){let r=this.iterator(),i="",n,s=!1;do n=r.next(),n.done||(s&&(i+=t),i+=ane(n.value)),s=!0;while(!n.done);return i}indexOf(t,r=0){let i=this.iterator(),n=0,s=i.next();for(;!s.done;){if(n>=r&&s.value===t)return n;s=i.next(),n++}return-1}every(t){let r=this.iterator(),i=r.next();for(;!i.done;){if(!t(i.value))return!1;i=r.next()}return!0}some(t){let r=this.iterator(),i=r.next();for(;!i.done;){if(t(i.value))return!0;i=r.next()}return!1}forEach(t){let r=this.iterator(),i=0,n=r.next();for(;!n.done;)t(n.value,i),n=r.next(),i++}map(t){return new Ml(this.startFn,r=>{let{done:i,value:n}=this.nextFn(r);return i?$n:{done:!1,value:t(n)}})}filter(t){return new Ml(this.startFn,r=>{let i;do if(i=this.nextFn(r),!i.done&&t(i.value))return i;while(!i.done);return $n})}nonNullable(){return this.filter(t=>t!=null)}reduce(t,r){let i=this.iterator(),n=r,s=i.next();for(;!s.done;)n===void 0?n=s.value:n=t(n,s.value),s=i.next();return n}reduceRight(t,r){return this.recursiveReduce(this.iterator(),t,r)}recursiveReduce(t,r,i){let n=t.next();if(n.done)return i;let s=this.recursiveReduce(t,r,i);return s===void 0?n.value:r(s,n.value)}find(t){let r=this.iterator(),i=r.next();for(;!i.done;){if(t(i.value))return i.value;i=r.next()}}findIndex(t){let r=this.iterator(),i=0,n=r.next();for(;!n.done;){if(t(n.value))return i;n=r.next(),i++}return-1}includes(t){let r=this.iterator(),i=r.next();for(;!i.done;){if(i.value===t)return!0;i=r.next()}return!1}flatMap(t){return new Ml(()=>({this:this.startFn()}),r=>{do{if(r.iterator){let s=r.iterator.next();if(s.done)r.iterator=void 0;else return s}let{done:i,value:n}=this.nextFn(r.this);if(!i){let s=t(n);if(C1(s))r.iterator=s[Symbol.iterator]();else return{done:!1,value:s}}}while(r.iterator);return $n})}flat(t){if(t===void 0&&(t=1),t<=0)return this;let r=t>1?this.flat(t-1):this;return new Ml(()=>({this:r.startFn()}),i=>{do{if(i.iterator){let o=i.iterator.next();if(o.done)i.iterator=void 0;else return o}let{done:n,value:s}=r.nextFn(i.this);if(!n)if(C1(s))i.iterator=s[Symbol.iterator]();else return{done:!1,value:s}}while(i.iterator);return $n})}head(){let r=this.iterator().next();if(!r.done)return r.value}tail(t=1){return new Ml(()=>{let r=this.startFn();for(let i=0;i<t;i++)if(this.nextFn(r).done)return r;return r},this.nextFn)}limit(t){return new Ml(()=>({size:0,state:this.startFn()}),r=>(r.size++,r.size>t?$n:this.nextFn(r.state)))}distinct(t){return new Ml(()=>({set:new Set,internalState:this.startFn()}),r=>{let i;do if(i=this.nextFn(r.internalState),!i.done){let n=t?t(i.value):i.value;if(!r.set.has(n))return r.set.add(n),i}while(!i.done);return $n})}exclude(t,r){let i=new Set;for(let n of t){let s=r?r(n):n;i.add(s)}return this.filter(n=>{let s=r?r(n):n;return!i.has(s)})}};a(ane,"toString");y(ane,"toString");a(C1,"isIterable");y(C1,"isIterable");um=new qo(()=>{},()=>$n),$n=Object.freeze({done:!0,value:void 0});a(Br,"stream");y(Br,"stream");hm=class extends qo{static{a(this,"TreeStreamImpl")}static{y(this,"TreeStreamImpl")}constructor(e,t,r){super(()=>({iterators:r?.includeRoot?[[e][Symbol.iterator]()]:[t(e)[Symbol.iterator]()],pruned:!1}),i=>{for(i.pruned&&(i.iterators.pop(),i.pruned=!1);i.iterators.length>0;){let s=i.iterators[i.iterators.length-1].next();if(s.done)i.iterators.pop();else return i.iterators.push(t(s.value)[Symbol.iterator]()),s}return $n})}iterator(){let e={state:this.startFn(),next:y(()=>this.nextFn(e.state),"next"),prune:y(()=>{e.state.pruned=!0},"prune"),[Symbol.iterator]:()=>e};return e}};(function(e){function t(s){return s.reduce((o,l)=>o+l,0)}a(t,"sum"),y(t,"sum"),e.sum=t;function r(s){return s.reduce((o,l)=>o*l,0)}a(r,"product"),y(r,"product"),e.product=r;function i(s){return s.reduce((o,l)=>Math.min(o,l))}a(i,"min2"),y(i,"min"),e.min=i;function n(s){return s.reduce((o,l)=>Math.max(o,l))}a(n,"max"),y(n,"max"),e.max=n})(v1||(v1={}));D6={};wu(D6,{assignMandatoryProperties:a(()=>I6,"assignMandatoryProperties"),copyAstNode:a(()=>$C,"copyAstNode"),findRootNode:a(()=>sm,"findRootNode"),getContainerOfType:a(()=>Od,"getContainerOfType"),getDocument:a(()=>Hs,"getDocument"),getReferenceNodes:a(()=>PC,"getReferenceNodes"),hasContainerOfType:a(()=>sne,"hasContainerOfType"),linkContentToContainer:a(()=>dm,"linkContentToContainer"),streamAllContents:a(()=>Kl,"streamAllContents"),streamAst:a(()=>Ys,"streamAst"),streamContents:a(()=>W1,"streamContents"),streamReferences:a(()=>fm,"streamReferences")});a(dm,"linkContentToContainer");y(dm,"linkContentToContainer");a(Od,"getContainerOfType");y(Od,"getContainerOfType");a(sne,"hasContainerOfType");y(sne,"hasContainerOfType");a(Hs,"getDocument");y(Hs,"getDocument");a(sm,"findRootNode");y(sm,"findRootNode");a(PC,"getReferenceNodes");y(PC,"getReferenceNodes");a(W1,"streamContents");y(W1,"streamContents");a(Kl,"streamAllContents");y(Kl,"streamAllContents");a(Ys,"streamAst");y(Ys,"streamAst");a(BC,"isAstNodeInRange");y(BC,"isAstNodeInRange");a(fm,"streamReferences");y(fm,"streamReferences");a(I6,"assignMandatoryProperties");y(I6,"assignMandatoryProperties");a(N6,"copyDefaultValue");y(N6,"copyDefaultValue");a($C,"copyAstNode");y($C,"copyAstNode");one={};wu(one,{AbstractElement:a(()=>la,"AbstractElement"),AbstractParserRule:a(()=>a1,"AbstractParserRule"),AbstractRule:a(()=>Qp,"AbstractRule"),AbstractType:a(()=>Ra,"AbstractType"),Action:a(()=>pu,"Action"),Alternatives:a(()=>s1,"Alternatives"),ArrayLiteral:a(()=>FC,"ArrayLiteral"),ArrayType:a(()=>VC,"ArrayType"),Assignment:a(()=>mu,"Assignment"),BooleanLiteral:a(()=>GC,"BooleanLiteral"),CharacterRange:a(()=>gu,"CharacterRange"),Condition:a(()=>yu,"Condition"),Conjunction:a(()=>o1,"Conjunction"),CrossReference:a(()=>xu,"CrossReference"),Disjunction:a(()=>l1,"Disjunction"),EndOfFile:a(()=>WC,"EndOfFile"),Grammar:a(()=>Pl,"Grammar"),GrammarImport:a(()=>zC,"GrammarImport"),Group:a(()=>od,"Group"),InferredType:a(()=>qC,"InferredType"),InfixRule:a(()=>Vo,"InfixRule"),InfixRuleOperatorList:a(()=>c1,"InfixRuleOperatorList"),InfixRuleOperators:a(()=>jC,"InfixRuleOperators"),Interface:a(()=>Zp,"Interface"),Keyword:a(()=>Jp,"Keyword"),LangiumGrammarAstReflection:a(()=>Z6,"LangiumGrammarAstReflection"),LangiumGrammarTerminals:a(()=>L$e,"LangiumGrammarTerminals"),NamedArgument:a(()=>em,"NamedArgument"),NegatedToken:a(()=>ld,"NegatedToken"),Negation:a(()=>UC,"Negation"),NumberLiteral:a(()=>HC,"NumberLiteral"),Parameter:a(()=>tm,"Parameter"),ParameterReference:a(()=>YC,"ParameterReference"),ParserRule:a(()=>qs,"ParserRule"),ReferenceType:a(()=>u1,"ReferenceType"),RegexToken:a(()=>cd,"RegexToken"),ReturnType:a(()=>KC,"ReturnType"),RuleCall:a(()=>ud,"RuleCall"),SimpleType:a(()=>rm,"SimpleType"),StringLiteral:a(()=>XC,"StringLiteral"),TerminalAlternatives:a(()=>hd,"TerminalAlternatives"),TerminalElement:a(()=>ca,"TerminalElement"),TerminalGroup:a(()=>dd,"TerminalGroup"),TerminalRule:a(()=>Bl,"TerminalRule"),TerminalRuleCall:a(()=>fd,"TerminalRuleCall"),Type:a(()=>h1,"Type"),TypeAttribute:a(()=>pd,"TypeAttribute"),TypeDefinition:a(()=>md,"TypeDefinition"),UnionType:a(()=>QC,"UnionType"),UnorderedGroup:a(()=>d1,"UnorderedGroup"),UntilToken:a(()=>gd,"UntilToken"),ValueLiteral:a(()=>yd,"ValueLiteral"),Wildcard:a(()=>im,"Wildcard"),isAbstractElement:a(()=>Ev,"isAbstractElement"),isAbstractParserRule:a(()=>Pd,"isAbstractParserRule"),isAbstractRule:a(()=>lne,"isAbstractRule"),isAbstractType:a(()=>cne,"isAbstractType"),isAction:a(()=>ku,"isAction"),isAlternatives:a(()=>Av,"isAlternatives"),isArrayLiteral:a(()=>une,"isArrayLiteral"),isArrayType:a(()=>M6,"isArrayType"),isAssignment:a(()=>Vl,"isAssignment"),isBooleanLiteral:a(()=>O6,"isBooleanLiteral"),isCharacterRange:a(()=>P6,"isCharacterRange"),isCondition:a(()=>hne,"isCondition"),isConjunction:a(()=>B6,"isConjunction"),isCrossReference:a(()=>Bd,"isCrossReference"),isDisjunction:a(()=>$6,"isDisjunction"),isEndOfFile:a(()=>F6,"isEndOfFile"),isGrammar:a(()=>dne,"isGrammar"),isGrammarImport:a(()=>fne,"isGrammarImport"),isGroup:a(()=>$d,"isGroup"),isInferredType:a(()=>z1,"isInferredType"),isInfixRule:a(()=>pm,"isInfixRule"),isInfixRuleOperatorList:a(()=>pne,"isInfixRuleOperatorList"),isInfixRuleOperators:a(()=>mne,"isInfixRuleOperators"),isInterface:a(()=>V6,"isInterface"),isKeyword:a(()=>Gl,"isKeyword"),isNamedArgument:a(()=>gne,"isNamedArgument"),isNegatedToken:a(()=>G6,"isNegatedToken"),isNegation:a(()=>W6,"isNegation"),isNumberLiteral:a(()=>yne,"isNumberLiteral"),isParameter:a(()=>xne,"isParameter"),isParameterReference:a(()=>z6,"isParameterReference"),isParserRule:a(()=>Wn,"isParserRule"),isReferenceType:a(()=>q6,"isReferenceType"),isRegexToken:a(()=>j6,"isRegexToken"),isReturnType:a(()=>U6,"isReturnType"),isRuleCall:a(()=>Wl,"isRuleCall"),isSimpleType:a(()=>Rv,"isSimpleType"),isStringLiteral:a(()=>bne,"isStringLiteral"),isTerminalAlternatives:a(()=>H6,"isTerminalAlternatives"),isTerminalElement:a(()=>Tne,"isTerminalElement"),isTerminalGroup:a(()=>Y6,"isTerminalGroup"),isTerminalRule:a(()=>ds,"isTerminalRule"),isTerminalRuleCall:a(()=>Lv,"isTerminalRuleCall"),isType:a(()=>Dv,"isType"),isTypeAttribute:a(()=>kne,"isTypeAttribute"),isTypeDefinition:a(()=>Cne,"isTypeDefinition"),isUnionType:a(()=>K6,"isUnionType"),isUnorderedGroup:a(()=>Iv,"isUnorderedGroup"),isUntilToken:a(()=>X6,"isUntilToken"),isValueLiteral:a(()=>vne,"isValueLiteral"),isWildcard:a(()=>Q6,"isWildcard"),reflection:a(()=>Ft,"reflection")});L$e={ID:/\^?[_a-zA-Z][\w_]*/,STRING:/"(\\.|[^"\\])*"|'(\\.|[^'\\])*'/,NUMBER:/NaN|-?((\d*\.\d+|\d+)([Ee][+-]?\d+)?|Infinity)/,RegexLiteral:/\/(?![*+?])(?:[^\r\n\[/\\]|\\.|\[(?:[^\r\n\]\\]|\\.)*\])+\/[a-z]*/,WS:/\s+/,ML_COMMENT:/\/\*[\s\S]*?\*\//,SL_COMMENT:/\/\/[^\n\r]*/},la={$type:"AbstractElement",cardinality:"cardinality"};a(Ev,"isAbstractElement");y(Ev,"isAbstractElement");a1={$type:"AbstractParserRule"};a(Pd,"isAbstractParserRule");y(Pd,"isAbstractParserRule");Qp={$type:"AbstractRule"};a(lne,"isAbstractRule");y(lne,"isAbstractRule");Ra={$type:"AbstractType"};a(cne,"isAbstractType");y(cne,"isAbstractType");pu={$type:"Action",cardinality:"cardinality",feature:"feature",inferredType:"inferredType",operator:"operator",type:"type"};a(ku,"isAction");y(ku,"isAction");s1={$type:"Alternatives",cardinality:"cardinality",elements:"elements"};a(Av,"isAlternatives");y(Av,"isAlternatives");FC={$type:"ArrayLiteral",elements:"elements"};a(une,"isArrayLiteral");y(une,"isArrayLiteral");VC={$type:"ArrayType",elementType:"elementType"};a(M6,"isArrayType");y(M6,"isArrayType");mu={$type:"Assignment",cardinality:"cardinality",feature:"feature",operator:"operator",predicate:"predicate",terminal:"terminal"};a(Vl,"isAssignment");y(Vl,"isAssignment");GC={$type:"BooleanLiteral",true:"true"};a(O6,"isBooleanLiteral");y(O6,"isBooleanLiteral");gu={$type:"CharacterRange",cardinality:"cardinality",left:"left",lookahead:"lookahead",parenthesized:"parenthesized",right:"right"};a(P6,"isCharacterRange");y(P6,"isCharacterRange");yu={$type:"Condition"};a(hne,"isCondition");y(hne,"isCondition");o1={$type:"Conjunction",left:"left",right:"right"};a(B6,"isConjunction");y(B6,"isConjunction");xu={$type:"CrossReference",cardinality:"cardinality",deprecatedSyntax:"deprecatedSyntax",isMulti:"isMulti",terminal:"terminal",type:"type"};a(Bd,"isCrossReference");y(Bd,"isCrossReference");l1={$type:"Disjunction",left:"left",right:"right"};a($6,"isDisjunction");y($6,"isDisjunction");WC={$type:"EndOfFile",cardinality:"cardinality"};a(F6,"isEndOfFile");y(F6,"isEndOfFile");Pl={$type:"Grammar",imports:"imports",interfaces:"interfaces",isDeclared:"isDeclared",name:"name",rules:"rules",types:"types"};a(dne,"isGrammar");y(dne,"isGrammar");zC={$type:"GrammarImport",path:"path"};a(fne,"isGrammarImport");y(fne,"isGrammarImport");od={$type:"Group",cardinality:"cardinality",elements:"elements",guardCondition:"guardCondition",predicate:"predicate"};a($d,"isGroup");y($d,"isGroup");qC={$type:"InferredType",name:"name"};a(z1,"isInferredType");y(z1,"isInferredType");Vo={$type:"InfixRule",call:"call",dataType:"dataType",inferredType:"inferredType",name:"name",operators:"operators",parameters:"parameters",returnType:"returnType"};a(pm,"isInfixRule");y(pm,"isInfixRule");c1={$type:"InfixRuleOperatorList",associativity:"associativity",operators:"operators"};a(pne,"isInfixRuleOperatorList");y(pne,"isInfixRuleOperatorList");jC={$type:"InfixRuleOperators",precedences:"precedences"};a(mne,"isInfixRuleOperators");y(mne,"isInfixRuleOperators");Zp={$type:"Interface",attributes:"attributes",name:"name",superTypes:"superTypes"};a(V6,"isInterface");y(V6,"isInterface");Jp={$type:"Keyword",cardinality:"cardinality",predicate:"predicate",value:"value"};a(Gl,"isKeyword");y(Gl,"isKeyword");em={$type:"NamedArgument",calledByName:"calledByName",parameter:"parameter",value:"value"};a(gne,"isNamedArgument");y(gne,"isNamedArgument");ld={$type:"NegatedToken",cardinality:"cardinality",lookahead:"lookahead",parenthesized:"parenthesized",terminal:"terminal"};a(G6,"isNegatedToken");y(G6,"isNegatedToken");UC={$type:"Negation",value:"value"};a(W6,"isNegation");y(W6,"isNegation");HC={$type:"NumberLiteral",value:"value"};a(yne,"isNumberLiteral");y(yne,"isNumberLiteral");tm={$type:"Parameter",name:"name"};a(xne,"isParameter");y(xne,"isParameter");YC={$type:"ParameterReference",parameter:"parameter"};a(z6,"isParameterReference");y(z6,"isParameterReference");qs={$type:"ParserRule",dataType:"dataType",definition:"definition",entry:"entry",fragment:"fragment",inferredType:"inferredType",name:"name",parameters:"parameters",returnType:"returnType"};a(Wn,"isParserRule");y(Wn,"isParserRule");u1={$type:"ReferenceType",isMulti:"isMulti",referenceType:"referenceType"};a(q6,"isReferenceType");y(q6,"isReferenceType");cd={$type:"RegexToken",cardinality:"cardinality",lookahead:"lookahead",parenthesized:"parenthesized",regex:"regex"};a(j6,"isRegexToken");y(j6,"isRegexToken");KC={$type:"ReturnType",name:"name"};a(U6,"isReturnType");y(U6,"isReturnType");ud={$type:"RuleCall",arguments:"arguments",cardinality:"cardinality",predicate:"predicate",rule:"rule"};a(Wl,"isRuleCall");y(Wl,"isRuleCall");rm={$type:"SimpleType",primitiveType:"primitiveType",stringType:"stringType",typeRef:"typeRef"};a(Rv,"isSimpleType");y(Rv,"isSimpleType");XC={$type:"StringLiteral",value:"value"};a(bne,"isStringLiteral");y(bne,"isStringLiteral");hd={$type:"TerminalAlternatives",cardinality:"cardinality",elements:"elements",lookahead:"lookahead",parenthesized:"parenthesized"};a(H6,"isTerminalAlternatives");y(H6,"isTerminalAlternatives");ca={$type:"TerminalElement",cardinality:"cardinality",lookahead:"lookahead",parenthesized:"parenthesized"};a(Tne,"isTerminalElement");y(Tne,"isTerminalElement");dd={$type:"TerminalGroup",cardinality:"cardinality",elements:"elements",lookahead:"lookahead",parenthesized:"parenthesized"};a(Y6,"isTerminalGroup");y(Y6,"isTerminalGroup");Bl={$type:"TerminalRule",definition:"definition",fragment:"fragment",hidden:"hidden",name:"name",type:"type"};a(ds,"isTerminalRule");y(ds,"isTerminalRule");fd={$type:"TerminalRuleCall",cardinality:"cardinality",lookahead:"lookahead",parenthesized:"parenthesized",rule:"rule"};a(Lv,"isTerminalRuleCall");y(Lv,"isTerminalRuleCall");h1={$type:"Type",name:"name",type:"type"};a(Dv,"isType");y(Dv,"isType");pd={$type:"TypeAttribute",defaultValue:"defaultValue",isOptional:"isOptional",name:"name",type:"type"};a(kne,"isTypeAttribute");y(kne,"isTypeAttribute");md={$type:"TypeDefinition"};a(Cne,"isTypeDefinition");y(Cne,"isTypeDefinition");QC={$type:"UnionType",types:"types"};a(K6,"isUnionType");y(K6,"isUnionType");d1={$type:"UnorderedGroup",cardinality:"cardinality",elements:"elements"};a(Iv,"isUnorderedGroup");y(Iv,"isUnorderedGroup");gd={$type:"UntilToken",cardinality:"cardinality",lookahead:"lookahead",parenthesized:"parenthesized",terminal:"terminal"};a(X6,"isUntilToken");y(X6,"isUntilToken");yd={$type:"ValueLiteral"};a(vne,"isValueLiteral");y(vne,"isValueLiteral");im={$type:"Wildcard",cardinality:"cardinality",lookahead:"lookahead",parenthesized:"parenthesized"};a(Q6,"isWildcard");y(Q6,"isWildcard");Z6=class extends L6{static{a(this,"LangiumGrammarAstReflection")}static{y(this,"LangiumGrammarAstReflection")}constructor(){super(...arguments),this.types={AbstractElement:{name:la.$type,properties:{cardinality:{name:la.cardinality}},superTypes:[]},AbstractParserRule:{name:a1.$type,properties:{},superTypes:[Qp.$type,Ra.$type]},AbstractRule:{name:Qp.$type,properties:{},superTypes:[]},AbstractType:{name:Ra.$type,properties:{},superTypes:[]},Action:{name:pu.$type,properties:{cardinality:{name:pu.cardinality},feature:{name:pu.feature},inferredType:{name:pu.inferredType},operator:{name:pu.operator},type:{name:pu.type,referenceType:Ra.$type}},superTypes:[la.$type]},Alternatives:{name:s1.$type,properties:{cardinality:{name:s1.cardinality},elements:{name:s1.elements,defaultValue:[]}},superTypes:[la.$type]},ArrayLiteral:{name:FC.$type,properties:{elements:{name:FC.elements,defaultValue:[]}},superTypes:[yd.$type]},ArrayType:{name:VC.$type,properties:{elementType:{name:VC.elementType}},superTypes:[md.$type]},Assignment:{name:mu.$type,properties:{cardinality:{name:mu.cardinality},feature:{name:mu.feature},operator:{name:mu.operator},predicate:{name:mu.predicate},terminal:{name:mu.terminal}},superTypes:[la.$type]},BooleanLiteral:{name:GC.$type,properties:{true:{name:GC.true,defaultValue:!1}},superTypes:[yu.$type,yd.$type]},CharacterRange:{name:gu.$type,properties:{cardinality:{name:gu.cardinality},left:{name:gu.left},lookahead:{name:gu.lookahead},parenthesized:{name:gu.parenthesized,defaultValue:!1},right:{name:gu.right}},superTypes:[ca.$type]},Condition:{name:yu.$type,properties:{},superTypes:[]},Conjunction:{name:o1.$type,properties:{left:{name:o1.left},right:{name:o1.right}},superTypes:[yu.$type]},CrossReference:{name:xu.$type,properties:{cardinality:{name:xu.cardinality},deprecatedSyntax:{name:xu.deprecatedSyntax,defaultValue:!1},isMulti:{name:xu.isMulti,defaultValue:!1},terminal:{name:xu.terminal},type:{name:xu.type,referenceType:Ra.$type}},superTypes:[la.$type]},Disjunction:{name:l1.$type,properties:{left:{name:l1.left},right:{name:l1.right}},superTypes:[yu.$type]},EndOfFile:{name:WC.$type,properties:{cardinality:{name:WC.cardinality}},superTypes:[la.$type]},Grammar:{name:Pl.$type,properties:{imports:{name:Pl.imports,defaultValue:[]},interfaces:{name:Pl.interfaces,defaultValue:[]},isDeclared:{name:Pl.isDeclared,defaultValue:!1},name:{name:Pl.name},rules:{name:Pl.rules,defaultValue:[]},types:{name:Pl.types,defaultValue:[]}},superTypes:[]},GrammarImport:{name:zC.$type,properties:{path:{name:zC.path}},superTypes:[]},Group:{name:od.$type,properties:{cardinality:{name:od.cardinality},elements:{name:od.elements,defaultValue:[]},guardCondition:{name:od.guardCondition},predicate:{name:od.predicate}},superTypes:[la.$type]},InferredType:{name:qC.$type,properties:{name:{name:qC.name}},superTypes:[Ra.$type]},InfixRule:{name:Vo.$type,properties:{call:{name:Vo.call},dataType:{name:Vo.dataType},inferredType:{name:Vo.inferredType},name:{name:Vo.name},operators:{name:Vo.operators},parameters:{name:Vo.parameters,defaultValue:[]},returnType:{name:Vo.returnType,referenceType:Ra.$type}},superTypes:[a1.$type]},InfixRuleOperatorList:{name:c1.$type,properties:{associativity:{name:c1.associativity},operators:{name:c1.operators,defaultValue:[]}},superTypes:[]},InfixRuleOperators:{name:jC.$type,properties:{precedences:{name:jC.precedences,defaultValue:[]}},superTypes:[]},Interface:{name:Zp.$type,properties:{attributes:{name:Zp.attributes,defaultValue:[]},name:{name:Zp.name},superTypes:{name:Zp.superTypes,defaultValue:[],referenceType:Ra.$type}},superTypes:[Ra.$type]},Keyword:{name:Jp.$type,properties:{cardinality:{name:Jp.cardinality},predicate:{name:Jp.predicate},value:{name:Jp.value}},superTypes:[la.$type]},NamedArgument:{name:em.$type,properties:{calledByName:{name:em.calledByName,defaultValue:!1},parameter:{name:em.parameter,referenceType:tm.$type},value:{name:em.value}},superTypes:[]},NegatedToken:{name:ld.$type,properties:{cardinality:{name:ld.cardinality},lookahead:{name:ld.lookahead},parenthesized:{name:ld.parenthesized,defaultValue:!1},terminal:{name:ld.terminal}},superTypes:[ca.$type]},Negation:{name:UC.$type,properties:{value:{name:UC.value}},superTypes:[yu.$type]},NumberLiteral:{name:HC.$type,properties:{value:{name:HC.value}},superTypes:[yd.$type]},Parameter:{name:tm.$type,properties:{name:{name:tm.name}},superTypes:[]},ParameterReference:{name:YC.$type,properties:{parameter:{name:YC.parameter,referenceType:tm.$type}},superTypes:[yu.$type]},ParserRule:{name:qs.$type,properties:{dataType:{name:qs.dataType},definition:{name:qs.definition},entry:{name:qs.entry,defaultValue:!1},fragment:{name:qs.fragment,defaultValue:!1},inferredType:{name:qs.inferredType},name:{name:qs.name},parameters:{name:qs.parameters,defaultValue:[]},returnType:{name:qs.returnType,referenceType:Ra.$type}},superTypes:[a1.$type]},ReferenceType:{name:u1.$type,properties:{isMulti:{name:u1.isMulti,defaultValue:!1},referenceType:{name:u1.referenceType}},superTypes:[md.$type]},RegexToken:{name:cd.$type,properties:{cardinality:{name:cd.cardinality},lookahead:{name:cd.lookahead},parenthesized:{name:cd.parenthesized,defaultValue:!1},regex:{name:cd.regex}},superTypes:[ca.$type]},ReturnType:{name:KC.$type,properties:{name:{name:KC.name}},superTypes:[]},RuleCall:{name:ud.$type,properties:{arguments:{name:ud.arguments,defaultValue:[]},cardinality:{name:ud.cardinality},predicate:{name:ud.predicate},rule:{name:ud.rule,referenceType:Qp.$type}},superTypes:[la.$type]},SimpleType:{name:rm.$type,properties:{primitiveType:{name:rm.primitiveType},stringType:{name:rm.stringType},typeRef:{name:rm.typeRef,referenceType:Ra.$type}},superTypes:[md.$type]},StringLiteral:{name:XC.$type,properties:{value:{name:XC.value}},superTypes:[yd.$type]},TerminalAlternatives:{name:hd.$type,properties:{cardinality:{name:hd.cardinality},elements:{name:hd.elements,defaultValue:[]},lookahead:{name:hd.lookahead},parenthesized:{name:hd.parenthesized,defaultValue:!1}},superTypes:[ca.$type]},TerminalElement:{name:ca.$type,properties:{cardinality:{name:ca.cardinality},lookahead:{name:ca.lookahead},parenthesized:{name:ca.parenthesized,defaultValue:!1}},superTypes:[la.$type]},TerminalGroup:{name:dd.$type,properties:{cardinality:{name:dd.cardinality},elements:{name:dd.elements,defaultValue:[]},lookahead:{name:dd.lookahead},parenthesized:{name:dd.parenthesized,defaultValue:!1}},superTypes:[ca.$type]},TerminalRule:{name:Bl.$type,properties:{definition:{name:Bl.definition},fragment:{name:Bl.fragment,defaultValue:!1},hidden:{name:Bl.hidden,defaultValue:!1},name:{name:Bl.name},type:{name:Bl.type}},superTypes:[Qp.$type]},TerminalRuleCall:{name:fd.$type,properties:{cardinality:{name:fd.cardinality},lookahead:{name:fd.lookahead},parenthesized:{name:fd.parenthesized,defaultValue:!1},rule:{name:fd.rule,referenceType:Bl.$type}},superTypes:[ca.$type]},Type:{name:h1.$type,properties:{name:{name:h1.name},type:{name:h1.type}},superTypes:[Ra.$type]},TypeAttribute:{name:pd.$type,properties:{defaultValue:{name:pd.defaultValue},isOptional:{name:pd.isOptional,defaultValue:!1},name:{name:pd.name},type:{name:pd.type}},superTypes:[]},TypeDefinition:{name:md.$type,properties:{},superTypes:[]},UnionType:{name:QC.$type,properties:{types:{name:QC.types,defaultValue:[]}},superTypes:[md.$type]},UnorderedGroup:{name:d1.$type,properties:{cardinality:{name:d1.cardinality},elements:{name:d1.elements,defaultValue:[]}},superTypes:[la.$type]},UntilToken:{name:gd.$type,properties:{cardinality:{name:gd.cardinality},lookahead:{name:gd.lookahead},parenthesized:{name:gd.parenthesized,defaultValue:!1},terminal:{name:gd.terminal}},superTypes:[ca.$type]},ValueLiteral:{name:yd.$type,properties:{},superTypes:[]},Wildcard:{name:im.$type,properties:{cardinality:{name:im.cardinality},lookahead:{name:im.lookahead},parenthesized:{name:im.parenthesized,defaultValue:!1}},superTypes:[ca.$type]}}}},Ft=new Z6;a(Sne,"getDatatypeNode");y(Sne,"getDatatypeNode");a(mm,"streamCst");y(mm,"streamCst");a(_ne,"flattenCst");y(_ne,"flattenCst");a(J6,"isChildNode");y(J6,"isChildNode");a(S1,"tokenToRange");y(S1,"tokenToRange");a(gm,"toDocumentSegment");y(gm,"toDocumentSegment");(function(e){e[e.Before=0]="Before",e[e.After=1]="After",e[e.OverlapFront=2]="OverlapFront",e[e.OverlapBack=3]="OverlapBack",e[e.Inside=4]="Inside",e[e.Outside=5]="Outside"})(zo||(zo={}));a(eN,"compareRange");y(eN,"compareRange");a(tN,"inRange");y(tN,"inRange");rN=/^[\w\p{L}]$/u;a(wne,"findDeclarationNodeAtOffset");y(wne,"findDeclarationNodeAtOffset");a(iN,"findCommentNode");y(iN,"findCommentNode");a(ZC,"isCommentNode");y(ZC,"isCommentNode");a(Nv,"findLeafNodeAtOffset");y(Nv,"findLeafNodeAtOffset");a(nN,"findLeafNodeBeforeOffset");y(nN,"findLeafNodeBeforeOffset");a(aN,"binarySearch");y(aN,"binarySearch");a(sN,"getPreviousNode");y(sN,"getPreviousNode");a(Ene,"getNextNode");y(Ene,"getNextNode");a(Ane,"getStartlineNode");y(Ane,"getStartlineNode");a(Rne,"getInteriorNodes");y(Rne,"getInteriorNodes");a(Lne,"getCommonParent");y(Lne,"getCommonParent");a(LI,"getParentChain");y(LI,"getParentChain");oN={};wu(oN,{findAssignment:a(()=>TN,"findAssignment"),findNameAssignment:a(()=>Gv,"findNameAssignment"),findNodeForKeyword:a(()=>bN,"findNodeForKeyword"),findNodeForProperty:a(()=>$v,"findNodeForProperty"),findNodesForKeyword:a(()=>Bne,"findNodesForKeyword"),findNodesForKeywordInternal:a(()=>Vv,"findNodesForKeywordInternal"),findNodesForProperty:a(()=>xN,"findNodesForProperty"),getActionAtElement:a(()=>CN,"getActionAtElement"),getActionType:a(()=>SN,"getActionType"),getAllReachableRules:a(()=>Bv,"getAllReachableRules"),getAllRulesUsedForCrossReferences:a(()=>Pne,"getAllRulesUsedForCrossReferences"),getCrossReferenceTerminal:a(()=>gN,"getCrossReferenceTerminal"),getEntryRule:a(()=>fN,"getEntryRule"),getExplicitRuleType:a(()=>j1,"getExplicitRuleType"),getHiddenRules:a(()=>pN,"getHiddenRules"),getRuleType:a(()=>_N,"getRuleType"),getRuleTypeName:a(()=>Wne,"getRuleTypeName"),getTypeName:a(()=>Rd,"getTypeName"),isArrayCardinality:a(()=>Fne,"isArrayCardinality"),isArrayOperator:a(()=>Vne,"isArrayOperator"),isCommentTerminal:a(()=>yN,"isCommentTerminal"),isDataType:a(()=>Gne,"isDataType"),isDataTypeRule:a(()=>q1,"isDataTypeRule"),isOptionalCardinality:a(()=>$ne,"isOptionalCardinality"),terminalRegex:a(()=>U1,"terminalRegex")});Mv=class extends Error{static{a(this,"ErrorWithLocation")}static{y(this,"ErrorWithLocation")}constructor(e,t){super(e?`${t} at ${e.range.start.line}:${e.range.start.character}`:t)}};a(Eu,"assertUnreachable");y(Eu,"assertUnreachable");a(lN,"assertCondition");y(lN,"assertCondition");cN={};wu(cN,{NEWLINE_REGEXP:a(()=>Ine,"NEWLINE_REGEXP"),escapeRegExp:a(()=>Sm,"escapeRegExp"),getTerminalParts:a(()=>Mne,"getTerminalParts"),isMultilineComment:a(()=>uN,"isMultilineComment"),isWhitespace:a(()=>Pv,"isWhitespace"),partialMatches:a(()=>hN,"partialMatches"),partialRegExp:a(()=>dN,"partialRegExp"),whitespaceCharacters:a(()=>One,"whitespaceCharacters")});a(qt,"cc");y(qt,"cc");a(kC,"insertToSet");y(kC,"insertToSet");a(Yp,"addFlag");y(Yp,"addFlag");a(ed,"ASSERT_EXISTS");y(ed,"ASSERT_EXISTS");a(e1,"ASSERT_NEVER_REACH_HERE");y(e1,"ASSERT_NEVER_REACH_HERE");a(DI,"isCharacter");y(DI,"isCharacter");JC=[];for(let e=qt("0");e<=qt("9");e++)JC.push(e);ev=[qt("_")].concat(JC);for(let e=qt("a");e<=qt("z");e++)ev.push(e);for(let e=qt("A");e<=qt("Z");e++)ev.push(e);hre=[qt(" "),qt("\f"),qt(`
`),qt("\r"),qt(" "),qt("\v"),qt(" "),qt("\xA0"),qt("\u1680"),qt("\u2000"),qt("\u2001"),qt("\u2002"),qt("\u2003"),qt("\u2004"),qt("\u2005"),qt("\u2006"),qt("\u2007"),qt("\u2008"),qt("\u2009"),qt("\u200A"),qt("\u2028"),qt("\u2029"),qt("\u202F"),qt("\u205F"),qt("\u3000"),qt("\uFEFF")],D$e=/[0-9a-fA-F]/,Kk=/[0-9]/,I$e=/[1-9]/,Dne=class{static{a(this,"RegExpParser")}static{y(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("/");let t=this.disjunction();this.consumeChar("/");let r={type:"Flags",loc:{begin:this.idx,end:e.length},global:!1,ignoreCase:!1,multiLine:!1,unicode:!1,sticky:!1};for(;this.isRegExpFlag();)switch(this.popChar()){case"g":Yp(r,"global");break;case"i":Yp(r,"ignoreCase");break;case"m":Yp(r,"multiLine");break;case"u":Yp(r,"unicode");break;case"y":Yp(r,"sticky");break}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(){let 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(){let e=[],t=this.idx;for(;this.isTerm();)e.push(this.term());return{type:"Alternative",value:e,loc:this.loc(t)}}term(){return this.isAssertion()?this.assertion():this.atom()}assertion(){let e=this.idx;switch(this.popChar()){case"^":return{type:"StartAnchor",loc:this.loc(e)};case"$":return{type:"EndAnchor",loc:this.loc(e)};case"\\":switch(this.popChar()){case"b":return{type:"WordBoundary",loc:this.loc(e)};case"B":return{type:"NonWordBoundary",loc:this.loc(e)}}throw Error("Invalid Assertion Escape");case"(":this.consumeChar("?");let t;switch(this.popChar()){case"=":t="Lookahead";break;case"!":t="NegativeLookahead";break;case"<":{switch(this.popChar()){case"=":t="Lookbehind";break;case"!":t="NegativeLookbehind"}break}}ed(t);let r=this.disjunction();return this.consumeChar(")"),{type:t,value:r,loc:this.loc(e)}}return e1()}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"{":let i=this.integerIncludingZero();switch(this.popChar()){case"}":t={atLeast:i,atMost:i};break;case",":let n;this.isDigit()?(n=this.integerIncludingZero(),t={atLeast:i,atMost:n}):t={atLeast:i,atMost:1/0},this.consumeChar("}");break}if(e===!0&&t===void 0)return;ed(t);break}if(!(e===!0&&t===void 0)&&ed(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();break}return e===void 0&&this.isPatternCharacter()&&(e=this.patternCharacter()),ed(e)?(e.loc=this.loc(t),this.isQuantifier()&&(e.quantifier=this.quantifier()),e):e1()}dotAll(){return this.consumeChar("."),{type:"Set",complement:!0,value:[qt(`
`),qt("\r"),qt("\u2028"),qt("\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=JC;break;case"D":e=JC,t=!0;break;case"s":e=hre;break;case"S":e=hre,t=!0;break;case"w":e=ev;break;case"W":e=ev,t=!0;break}return ed(e)?{type:"Set",value:e,complement:t}:e1()}controlEscapeAtom(){let e;switch(this.popChar()){case"f":e=qt("\f");break;case"n":e=qt(`
`);break;case"r":e=qt("\r");break;case"t":e=qt(" ");break;case"v":e=qt("\v");break}return ed(e)?{type:"Character",value:e}:e1()}controlLetterEscapeAtom(){this.consumeChar("c");let e=this.popChar();if(/[a-zA-Z]/.test(e)===!1)throw Error("Invalid ");return{type:"Character",value:e.toUpperCase().charCodeAt(0)-64}}nulCharacterAtom(){return this.consumeChar("0"),{type:"Character",value:qt("\0")}}hexEscapeSequenceAtom(){return this.consumeChar("x"),this.parseHexDigits(2)}regExpUnicodeEscapeSequenceAtom(){return this.consumeChar("u"),this.parseHexDigits(4)}identityEscapeAtom(){let e=this.popChar();return{type:"Character",value:qt(e)}}classPatternCharacterAtom(){switch(this.peekChar()){case`
`:case"\r":case"\u2028":case"\u2029":case"\\":case"]":throw Error("TBD");default:let e=this.popChar();return{type:"Character",value:qt(e)}}}characterClass(){let e=[],t=!1;for(this.consumeChar("["),this.peekChar(0)==="^"&&(this.consumeChar("^"),t=!0);this.isClassAtom();){let r=this.classAtom(),i=r.type==="Character";if(DI(r)&&this.isRangeDash()){this.consumeChar("-");let n=this.classAtom(),s=n.type==="Character";if(DI(n)){if(n.value<r.value)throw Error("Range out of order in character class");e.push({from:r.value,to:n.value})}else kC(r.value,e),e.push(qt("-")),kC(n.value,e)}else kC(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:qt("\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;switch(this.consumeChar("("),this.peekChar(0)){case"?":this.consumeChar("?"),this.consumeChar(":"),e=!1;break;default:this.groupIdx++;break}let t=this.disjunction();this.consumeChar(")");let r={type:"Group",capturing:e,value:t};return e&&(r.idx=this.groupIdx),r}positiveInteger(){let e=this.popChar();if(I$e.test(e)===!1)throw Error("Expecting a positive integer");for(;Kk.test(this.peekChar(0));)e+=this.popChar();return parseInt(e,10)}integerIncludingZero(){let e=this.popChar();if(Kk.test(e)===!1)throw Error("Expecting an integer");for(;Kk.test(this.peekChar(0));)e+=this.popChar();return parseInt(e,10)}patternCharacter(){let 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:qt(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 Kk.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)==="!"||this.peekChar(2)==="<"&&(this.peekChar(3)==="="||this.peekChar(3)==="!"));default:return!1}}isQuantifier(){let e=this.saveState();try{return this.quantifier(!0)!==void 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(e){let t="";for(let i=0;i<e;i++){let n=this.popChar();if(D$e.test(n)===!1)throw Error("Expecting a HexDecimal digits");t+=n}return{type:"Character",value:parseInt(t,16)}}peekChar(e=0){return this.input[this.idx+e]}popChar(){let e=this.peekChar(0);return this.consumeChar(void 0),e}consumeChar(e){if(e!==void 0&&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}}},Ov=class{static{a(this,"BaseRegExpVisitor")}static{y(this,"BaseRegExpVisitor")}visitChildren(e){for(let t in e){let r=e[t];e.hasOwnProperty(t)&&(r.type!==void 0?this.visit(r):Array.isArray(r)&&r.forEach(i=>{this.visit(i)},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"Lookbehind":this.visitLookbehind(e);break;case"NegativeLookbehind":this.visitNegativeLookbehind(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);break}this.visitChildren(e)}visitPattern(e){}visitFlags(e){}visitDisjunction(e){}visitAlternative(e){}visitStartAnchor(e){}visitEndAnchor(e){}visitWordBoundary(e){}visitNonWordBoundary(e){}visitLookahead(e){}visitNegativeLookahead(e){}visitLookbehind(e){}visitNegativeLookbehind(e){}visitCharacter(e){}visitSet(e){}visitGroup(e){}visitGroupBackReference(e){}visitQuantifier(e){}},Ine=/\r?\n/gm,Nne=new Dne,N$e=class extends Ov{static{a(this,"TerminalRegExpVisitor")}static{y(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){let t=String.fromCharCode(e.value);if(!this.multiline&&t===`
`&&(this.multiline=!0),e.quantifier)this.isStarting=!1,this.endRegexpStack=[];else{let r=Sm(t);this.endRegexpStack.push(r),this.isStarting&&(this.startRegexp+=r)}}visitSet(e){if(!this.multiline){let t=this.regex.substring(e.loc.begin,e.loc.end),r=new RegExp(t);this.multiline=!!`
`.match(r)}if(e.quantifier)this.isStarting=!1,this.endRegexpStack=[];else{let t=this.regex.substring(e.loc.begin,e.loc.end);this.endRegexpStack.push(t),this.isStarting&&(this.startRegexp+=t)}}visitChildren(e){e.type==="Group"&&e.quantifier||super.visitChildren(e)}},vd=new N$e;a(Mne,"getTerminalParts");y(Mne,"getTerminalParts");a(uN,"isMultilineComment");y(uN,"isMultilineComment");One=`\f
\r \v \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF`.split("");a(Pv,"isWhitespace");y(Pv,"isWhitespace");a(Sm,"escapeRegExp");y(Sm,"escapeRegExp");a(hN,"partialMatches");y(hN,"partialMatches");a(dN,"partialRegExp");y(dN,"partialRegExp");a(fN,"getEntryRule");y(fN,"getEntryRule");a(pN,"getHiddenRules");y(pN,"getHiddenRules");a(Bv,"getAllReachableRules");y(Bv,"getAllReachableRules");a(mN,"ruleDfs");y(mN,"ruleDfs");a(Pne,"getAllRulesUsedForCrossReferences");y(Pne,"getAllRulesUsedForCrossReferences");a(gN,"getCrossReferenceTerminal");y(gN,"getCrossReferenceTerminal");a(yN,"isCommentTerminal");y(yN,"isCommentTerminal");a(xN,"findNodesForProperty");y(xN,"findNodesForProperty");a($v,"findNodeForProperty");y($v,"findNodeForProperty");a(Fv,"findNodesForPropertyInternal");y(Fv,"findNodesForPropertyInternal");a(Bne,"findNodesForKeyword");y(Bne,"findNodesForKeyword");a(bN,"findNodeForKeyword");y(bN,"findNodeForKeyword");a(Vv,"findNodesForKeywordInternal");y(Vv,"findNodesForKeywordInternal");a(TN,"findAssignment");y(TN,"findAssignment");a(Gv,"findNameAssignment");y(Gv,"findNameAssignment");a(kN,"findNameAssignmentInternal");y(kN,"findNameAssignmentInternal");a(CN,"getActionAtElement");y(CN,"getActionAtElement");a($ne,"isOptionalCardinality");y($ne,"isOptionalCardinality");a(Fne,"isArrayCardinality");y(Fne,"isArrayCardinality");a(Vne,"isArrayOperator");y(Vne,"isArrayOperator");a(q1,"isDataTypeRule");y(q1,"isDataTypeRule");a(vN,"isDataTypeRuleInternal");y(vN,"isDataTypeRuleInternal");a(Gne,"isDataType");y(Gne,"isDataType");a(tv,"isDataTypeInternal");y(tv,"isDataTypeInternal");a(j1,"getExplicitRuleType");y(j1,"getExplicitRuleType");a(Rd,"getTypeName");y(Rd,"getTypeName");a(SN,"getActionType");y(SN,"getActionType");a(Wne,"getRuleTypeName");y(Wne,"getRuleTypeName");a(_N,"getRuleType");y(_N,"getRuleType");a(U1,"terminalRegex");y(U1,"terminalRegex");wN=/[\s\S]/.source;a(Fd,"abstractElementToRegex");y(Fd,"abstractElementToRegex");a(zne,"terminalAlternativesToRegex");y(zne,"terminalAlternativesToRegex");a(qne,"terminalGroupToRegex");y(qne,"terminalGroupToRegex");a(jne,"untilTokenToRegex");y(jne,"untilTokenToRegex");a(Une,"negateTokenToRegex");y(Une,"negateTokenToRegex");a(Hne,"characterRangeToRegex");y(Hne,"characterRangeToRegex");a(CC,"keywordToRegex");y(CC,"keywordToRegex");a(Ho,"withCardinality");y(Ho,"withCardinality");a(EN,"createGrammarConfig");y(EN,"createGrammarConfig");M$e=typeof global=="object"&&global&&global.Object===Object&&global,Yne=M$e,O$e=typeof self=="object"&&self&&self.Object===Object&&self,P$e=Yne||O$e||Function("return this")(),Ko=P$e,B$e=Ko.Symbol,us=B$e,Kne=Object.prototype,$$e=Kne.hasOwnProperty,F$e=Kne.toString,F0=us?us.toStringTag:void 0;a(Xne,"getRawTag");y(Xne,"getRawTag");V$e=Xne,G$e=Object.prototype,W$e=G$e.toString;a(Qne,"objectToString");y(Qne,"objectToString");z$e=Qne,q$e="[object Null]",j$e="[object Undefined]",dre=us?us.toStringTag:void 0;a(Zne,"baseGetTag");y(Zne,"baseGetTag");Au=Zne;a(Jne,"isObjectLike");y(Jne,"isObjectLike");Qs=Jne,U$e="[object Symbol]";a(eae,"isSymbol");y(eae,"isSymbol");Wv=eae;a(tae,"arrayMap");y(tae,"arrayMap");H1=tae,H$e=Array.isArray,kr=H$e,Y$e=1/0,fre=us?us.prototype:void 0,pre=fre?fre.toString:void 0;a(AN,"baseToString");y(AN,"baseToString");K$e=AN,X$e=/\s/;a(rae,"trimmedEndIndex");y(rae,"trimmedEndIndex");Q$e=rae,Z$e=/^\s+/;a(iae,"baseTrim");y(iae,"baseTrim");J$e=iae;a(nae,"isObject");y(nae,"isObject");hs=nae,mre=NaN,eFe=/^[-+]0x[0-9a-f]+$/i,tFe=/^0b[01]+$/i,rFe=/^0o[0-7]+$/i,iFe=parseInt;a(aae,"toNumber");y(aae,"toNumber");nFe=aae,gre=1/0,aFe=17976931348623157e292;a(sae,"toFinite");y(sae,"toFinite");sFe=sae;a(oae,"toInteger");y(oae,"toInteger");Y1=oae;a(lae,"identity");y(lae,"identity");ym=lae,oFe="[object AsyncFunction]",lFe="[object Function]",cFe="[object GeneratorFunction]",uFe="[object Proxy]";a(cae,"isFunction");y(cae,"isFunction");Xl=cae,hFe=Ko["__core-js_shared__"],cD=hFe,yre=(function(){var e=/[^.]+$/.exec(cD&&cD.keys&&cD.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();a(uae,"isMasked");y(uae,"isMasked");dFe=uae,fFe=Function.prototype,pFe=fFe.toString;a(hae,"toSource");y(hae,"toSource");Vd=hae,mFe=/[\\^$.*+?()[\]{}|]/g,gFe=/^\[object .+?Constructor\]$/,yFe=Function.prototype,xFe=Object.prototype,bFe=yFe.toString,TFe=xFe.hasOwnProperty,kFe=RegExp("^"+bFe.call(TFe).replace(mFe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");a(dae,"baseIsNative");y(dae,"baseIsNative");CFe=dae;a(fae,"getValue");y(fae,"getValue");vFe=fae;a(pae,"getNative");y(pae,"getNative");Gd=pae,SFe=Gd(Ko,"WeakMap"),II=SFe,xre=Object.create,_Fe=(function(){function e(){}return a(e,"object"),y(e,"object"),function(t){if(!hs(t))return{};if(xre)return xre(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}})(),wFe=_Fe;a(mae,"apply");y(mae,"apply");EFe=mae;a(gae,"noop");y(gae,"noop");Vi=gae;a(yae,"copyArray");y(yae,"copyArray");AFe=yae,RFe=800,LFe=16,DFe=Date.now;a(xae,"shortOut");y(xae,"shortOut");IFe=xae;a(bae,"constant");y(bae,"constant");NFe=bae,MFe=(function(){try{var e=Gd(Object,"defineProperty");return e({},"",{}),e}catch{}})(),rv=MFe,OFe=rv?function(e,t){return rv(e,"toString",{configurable:!0,enumerable:!1,value:NFe(t),writable:!0})}:ym,PFe=OFe,BFe=IFe(PFe),$Fe=BFe;a(Tae,"arrayEach");y(Tae,"arrayEach");kae=Tae;a(Cae,"baseFindIndex");y(Cae,"baseFindIndex");vae=Cae;a(Sae,"baseIsNaN");y(Sae,"baseIsNaN");FFe=Sae;a(_ae,"strictIndexOf");y(_ae,"strictIndexOf");VFe=_ae;a(wae,"baseIndexOf");y(wae,"baseIndexOf");RN=wae;a(Eae,"arrayIncludes");y(Eae,"arrayIncludes");Aae=Eae,GFe=9007199254740991,WFe=/^(?:0|[1-9]\d*)$/;a(Rae,"isIndex");y(Rae,"isIndex");zv=Rae;a(Lae,"baseAssignValue");y(Lae,"baseAssignValue");LN=Lae;a(Dae,"eq");y(Dae,"eq");K1=Dae,zFe=Object.prototype,qFe=zFe.hasOwnProperty;a(Iae,"assignValue");y(Iae,"assignValue");qv=Iae;a(Nae,"copyObject");y(Nae,"copyObject");X1=Nae,bre=Math.max;a(Mae,"overRest");y(Mae,"overRest");jFe=Mae;a(Oae,"baseRest");y(Oae,"baseRest");DN=Oae,UFe=9007199254740991;a(Pae,"isLength");y(Pae,"isLength");IN=Pae;a(Bae,"isArrayLike");y(Bae,"isArrayLike");Xo=Bae;a($ae,"isIterateeCall");y($ae,"isIterateeCall");jv=$ae;a(Fae,"createAssigner");y(Fae,"createAssigner");HFe=Fae,YFe=Object.prototype;a(Vae,"isPrototype");y(Vae,"isPrototype");Q1=Vae;a(Gae,"baseTimes");y(Gae,"baseTimes");KFe=Gae,XFe="[object Arguments]";a(Wae,"baseIsArguments");y(Wae,"baseIsArguments");Tre=Wae,zae=Object.prototype,QFe=zae.hasOwnProperty,ZFe=zae.propertyIsEnumerable,JFe=Tre((function(){return arguments})())?Tre:function(e){return Qs(e)&&QFe.call(e,"callee")&&!ZFe.call(e,"callee")},Uv=JFe;a(qae,"stubFalse");y(qae,"stubFalse");e9e=qae,jae=typeof exports=="object"&&exports&&!exports.nodeType&&exports,kre=jae&&typeof module=="object"&&module&&!module.nodeType&&module,t9e=kre&&kre.exports===jae,Cre=t9e?Ko.Buffer:void 0,r9e=Cre?Cre.isBuffer:void 0,i9e=r9e||e9e,_1=i9e,n9e="[object Arguments]",a9e="[object Array]",s9e="[object Boolean]",o9e="[object Date]",l9e="[object Error]",c9e="[object Function]",u9e="[object Map]",h9e="[object Number]",d9e="[object Object]",f9e="[object RegExp]",p9e="[object Set]",m9e="[object String]",g9e="[object WeakMap]",y9e="[object ArrayBuffer]",x9e="[object DataView]",b9e="[object Float32Array]",T9e="[object Float64Array]",k9e="[object Int8Array]",C9e="[object Int16Array]",v9e="[object Int32Array]",S9e="[object Uint8Array]",_9e="[object Uint8ClampedArray]",w9e="[object Uint16Array]",E9e="[object Uint32Array]",Jr={};Jr[b9e]=Jr[T9e]=Jr[k9e]=Jr[C9e]=Jr[v9e]=Jr[S9e]=Jr[_9e]=Jr[w9e]=Jr[E9e]=!0;Jr[n9e]=Jr[a9e]=Jr[y9e]=Jr[s9e]=Jr[x9e]=Jr[o9e]=Jr[l9e]=Jr[c9e]=Jr[u9e]=Jr[h9e]=Jr[d9e]=Jr[f9e]=Jr[p9e]=Jr[m9e]=Jr[g9e]=!1;a(Uae,"baseIsTypedArray");y(Uae,"baseIsTypedArray");A9e=Uae;a(Hae,"baseUnary");y(Hae,"baseUnary");Z1=Hae,Yae=typeof exports=="object"&&exports&&!exports.nodeType&&exports,f1=Yae&&typeof module=="object"&&module&&!module.nodeType&&module,R9e=f1&&f1.exports===Yae,uD=R9e&&Yne.process,L9e=(function(){try{var e=f1&&f1.require&&f1.require("util").types;return e||uD&&uD.binding&&uD.binding("util")}catch{}})(),Cu=L9e,vre=Cu&&Cu.isTypedArray,D9e=vre?Z1(vre):A9e,NN=D9e,I9e=Object.prototype,N9e=I9e.hasOwnProperty;a(Kae,"arrayLikeKeys");y(Kae,"arrayLikeKeys");Xae=Kae;a(Qae,"overArg");y(Qae,"overArg");Zae=Qae,M9e=Zae(Object.keys,Object),O9e=M9e,P9e=Object.prototype,B9e=P9e.hasOwnProperty;a(Jae,"baseKeys");y(Jae,"baseKeys");ese=Jae;a(tse,"keys");y(tse,"keys");Da=tse,$9e=Object.prototype,F9e=$9e.hasOwnProperty,V9e=HFe(function(e,t){if(Q1(t)||Xo(t)){X1(t,Da(t),e);return}for(var r in t)F9e.call(t,r)&&qv(e,r,t[r])}),Ia=V9e;a(rse,"nativeKeysIn");y(rse,"nativeKeysIn");G9e=rse,W9e=Object.prototype,z9e=W9e.hasOwnProperty;a(ise,"baseKeysIn");y(ise,"baseKeysIn");q9e=ise;a(nse,"keysIn");y(nse,"keysIn");Hv=nse,j9e=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,U9e=/^\w*$/;a(ase,"isKey");y(ase,"isKey");MN=ase,H9e=Gd(Object,"create"),w1=H9e;a(sse,"hashClear");y(sse,"hashClear");Y9e=sse;a(ose,"hashDelete");y(ose,"hashDelete");K9e=ose,X9e="__lodash_hash_undefined__",Q9e=Object.prototype,Z9e=Q9e.hasOwnProperty;a(lse,"hashGet");y(lse,"hashGet");J9e=lse,eVe=Object.prototype,tVe=eVe.hasOwnProperty;a(cse,"hashHas");y(cse,"hashHas");rVe=cse,iVe="__lodash_hash_undefined__";a(use,"hashSet");y(use,"hashSet");nVe=use;a(Wd,"Hash");y(Wd,"Hash");Wd.prototype.clear=Y9e;Wd.prototype.delete=K9e;Wd.prototype.get=J9e;Wd.prototype.has=rVe;Wd.prototype.set=nVe;Sre=Wd;a(hse,"listCacheClear");y(hse,"listCacheClear");aVe=hse;a(dse,"assocIndexOf");y(dse,"assocIndexOf");Yv=dse,sVe=Array.prototype,oVe=sVe.splice;a(fse,"listCacheDelete");y(fse,"listCacheDelete");lVe=fse;a(pse,"listCacheGet");y(pse,"listCacheGet");cVe=pse;a(mse,"listCacheHas");y(mse,"listCacheHas");uVe=mse;a(gse,"listCacheSet");y(gse,"listCacheSet");hVe=gse;a(zd,"ListCache");y(zd,"ListCache");zd.prototype.clear=aVe;zd.prototype.delete=lVe;zd.prototype.get=cVe;zd.prototype.has=uVe;zd.prototype.set=hVe;Kv=zd,dVe=Gd(Ko,"Map"),E1=dVe;a(yse,"mapCacheClear");y(yse,"mapCacheClear");fVe=yse;a(xse,"isKeyable");y(xse,"isKeyable");pVe=xse;a(bse,"getMapData");y(bse,"getMapData");Xv=bse;a(Tse,"mapCacheDelete");y(Tse,"mapCacheDelete");mVe=Tse;a(kse,"mapCacheGet");y(kse,"mapCacheGet");gVe=kse;a(Cse,"mapCacheHas");y(Cse,"mapCacheHas");yVe=Cse;a(vse,"mapCacheSet");y(vse,"mapCacheSet");xVe=vse;a(qd,"MapCache");y(qd,"MapCache");qd.prototype.clear=fVe;qd.prototype.delete=mVe;qd.prototype.get=gVe;qd.prototype.has=yVe;qd.prototype.set=xVe;Qv=qd,bVe="Expected a function";a(Zv,"memoize");y(Zv,"memoize");Zv.Cache=Qv;TVe=Zv,kVe=500;a(Sse,"memoizeCapped");y(Sse,"memoizeCapped");CVe=Sse,vVe=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,SVe=/\\(\\)?/g,_Ve=CVe(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(vVe,function(r,i,n,s){t.push(n?s.replace(SVe,"$1"):i||r)}),t}),wVe=_Ve;a(_se,"toString2");y(_se,"toString");EVe=_se;a(wse,"castPath");y(wse,"castPath");Jv=wse,AVe=1/0;a(Ese,"toKey");y(Ese,"toKey");J1=Ese;a(Ase,"baseGet");y(Ase,"baseGet");ON=Ase;a(Rse,"get");y(Rse,"get");RVe=Rse;a(Lse,"arrayPush");y(Lse,"arrayPush");PN=Lse,_re=us?us.isConcatSpreadable:void 0;a(Dse,"isFlattenable");y(Dse,"isFlattenable");LVe=Dse;a(BN,"baseFlatten");y(BN,"baseFlatten");$N=BN;a(Ise,"flatten");y(Ise,"flatten");Ks=Ise,DVe=Zae(Object.getPrototypeOf,Object),Nse=DVe;a(Mse,"baseSlice");y(Mse,"baseSlice");Ose=Mse;a(Pse,"arrayReduce");y(Pse,"arrayReduce");IVe=Pse;a(Bse,"stackClear");y(Bse,"stackClear");NVe=Bse;a($se,"stackDelete");y($se,"stackDelete");MVe=$se;a(Fse,"stackGet");y(Fse,"stackGet");OVe=Fse;a(Vse,"stackHas");y(Vse,"stackHas");PVe=Vse,BVe=200;a(Gse,"stackSet");y(Gse,"stackSet");$Ve=Gse;a(jd,"Stack");y(jd,"Stack");jd.prototype.clear=NVe;jd.prototype.delete=MVe;jd.prototype.get=OVe;jd.prototype.has=PVe;jd.prototype.set=$Ve;p1=jd;a(Wse,"baseAssign");y(Wse,"baseAssign");FVe=Wse;a(zse,"baseAssignIn");y(zse,"baseAssignIn");VVe=zse,qse=typeof exports=="object"&&exports&&!exports.nodeType&&exports,wre=qse&&typeof module=="object"&&module&&!module.nodeType&&module,GVe=wre&&wre.exports===qse,Ere=GVe?Ko.Buffer:void 0,Are=Ere?Ere.allocUnsafe:void 0;a(jse,"cloneBuffer");y(jse,"cloneBuffer");WVe=jse;a(Use,"arrayFilter");y(Use,"arrayFilter");FN=Use;a(Hse,"stubArray");y(Hse,"stubArray");Yse=Hse,zVe=Object.prototype,qVe=zVe.propertyIsEnumerable,Rre=Object.getOwnPropertySymbols,jVe=Rre?function(e){return e==null?[]:(e=Object(e),FN(Rre(e),function(t){return qVe.call(e,t)}))}:Yse,VN=jVe;a(Kse,"copySymbols");y(Kse,"copySymbols");UVe=Kse,HVe=Object.getOwnPropertySymbols,YVe=HVe?function(e){for(var t=[];e;)PN(t,VN(e)),e=Nse(e);return t}:Yse,Xse=YVe;a(Qse,"copySymbolsIn");y(Qse,"copySymbolsIn");KVe=Qse;a(Zse,"baseGetAllKeys");y(Zse,"baseGetAllKeys");Jse=Zse;a(eoe,"getAllKeys");y(eoe,"getAllKeys");NI=eoe;a(toe,"getAllKeysIn");y(toe,"getAllKeysIn");roe=toe,XVe=Gd(Ko,"DataView"),MI=XVe,QVe=Gd(Ko,"Promise"),OI=QVe,ZVe=Gd(Ko,"Set"),om=ZVe,Lre="[object Map]",JVe="[object Object]",Dre="[object Promise]",Ire="[object Set]",Nre="[object WeakMap]",Mre="[object DataView]",eGe=Vd(MI),tGe=Vd(E1),rGe=Vd(OI),iGe=Vd(om),nGe=Vd(II),td=Au;(MI&&td(new MI(new ArrayBuffer(1)))!=Mre||E1&&td(new E1)!=Lre||OI&&td(OI.resolve())!=Dre||om&&td(new om)!=Ire||II&&td(new II)!=Nre)&&(td=y(function(e){var t=Au(e),r=t==JVe?e.constructor:void 0,i=r?Vd(r):"";if(i)switch(i){case eGe:return Mre;case tGe:return Lre;case rGe:return Dre;case iGe:return Ire;case nGe:return Nre}return t},"getTag"));xm=td,aGe=Object.prototype,sGe=aGe.hasOwnProperty;a(ioe,"initCloneArray");y(ioe,"initCloneArray");oGe=ioe,lGe=Ko.Uint8Array,iv=lGe;a(noe,"cloneArrayBuffer");y(noe,"cloneArrayBuffer");GN=noe;a(aoe,"cloneDataView");y(aoe,"cloneDataView");cGe=aoe,uGe=/\w*$/;a(soe,"cloneRegExp");y(soe,"cloneRegExp");hGe=soe,Ore=us?us.prototype:void 0,Pre=Ore?Ore.valueOf:void 0;a(ooe,"cloneSymbol");y(ooe,"cloneSymbol");dGe=ooe;a(loe,"cloneTypedArray");y(loe,"cloneTypedArray");fGe=loe,pGe="[object Boolean]",mGe="[object Date]",gGe="[object Map]",yGe="[object Number]",xGe="[object RegExp]",bGe="[object Set]",TGe="[object String]",kGe="[object Symbol]",CGe="[object ArrayBuffer]",vGe="[object DataView]",SGe="[object Float32Array]",_Ge="[object Float64Array]",wGe="[object Int8Array]",EGe="[object Int16Array]",AGe="[object Int32Array]",RGe="[object Uint8Array]",LGe="[object Uint8ClampedArray]",DGe="[object Uint16Array]",IGe="[object Uint32Array]";a(coe,"initCloneByTag");y(coe,"initCloneByTag");NGe=coe;a(uoe,"initCloneObject");y(uoe,"initCloneObject");MGe=uoe,OGe="[object Map]";a(hoe,"baseIsMap");y(hoe,"baseIsMap");PGe=hoe,Bre=Cu&&Cu.isMap,BGe=Bre?Z1(Bre):PGe,$Ge=BGe,FGe="[object Set]";a(doe,"baseIsSet");y(doe,"baseIsSet");VGe=doe,$re=Cu&&Cu.isSet,GGe=$re?Z1($re):VGe,WGe=GGe,zGe=1,qGe=2,jGe=4,foe="[object Arguments]",UGe="[object Array]",HGe="[object Boolean]",YGe="[object Date]",KGe="[object Error]",poe="[object Function]",XGe="[object GeneratorFunction]",QGe="[object Map]",ZGe="[object Number]",moe="[object Object]",JGe="[object RegExp]",eWe="[object Set]",tWe="[object String]",rWe="[object Symbol]",iWe="[object WeakMap]",nWe="[object ArrayBuffer]",aWe="[object DataView]",sWe="[object Float32Array]",oWe="[object Float64Array]",lWe="[object Int8Array]",cWe="[object Int16Array]",uWe="[object Int32Array]",hWe="[object Uint8Array]",dWe="[object Uint8ClampedArray]",fWe="[object Uint16Array]",pWe="[object Uint32Array]",jr={};jr[foe]=jr[UGe]=jr[nWe]=jr[aWe]=jr[HGe]=jr[YGe]=jr[sWe]=jr[oWe]=jr[lWe]=jr[cWe]=jr[uWe]=jr[QGe]=jr[ZGe]=jr[moe]=jr[JGe]=jr[eWe]=jr[tWe]=jr[rWe]=jr[hWe]=jr[dWe]=jr[fWe]=jr[pWe]=!0;jr[KGe]=jr[poe]=jr[iWe]=!1;a(m1,"baseClone");y(m1,"baseClone");mWe=m1,gWe=4;a(goe,"clone");y(goe,"clone");fn=goe;a(yoe,"compact");y(yoe,"compact");ex=yoe,yWe="__lodash_hash_undefined__";a(xoe,"setCacheAdd");y(xoe,"setCacheAdd");xWe=xoe;a(boe,"setCacheHas");y(boe,"setCacheHas");bWe=boe;a(A1,"SetCache");y(A1,"SetCache");A1.prototype.add=A1.prototype.push=xWe;A1.prototype.has=bWe;WN=A1;a(Toe,"arraySome");y(Toe,"arraySome");koe=Toe;a(Coe,"cacheHas");y(Coe,"cacheHas");zN=Coe,TWe=1,kWe=2;a(voe,"equalArrays");y(voe,"equalArrays");Soe=voe;a(_oe,"mapToArray");y(_oe,"mapToArray");CWe=_oe;a(woe,"setToArray");y(woe,"setToArray");qN=woe,vWe=1,SWe=2,_We="[object Boolean]",wWe="[object Date]",EWe="[object Error]",AWe="[object Map]",RWe="[object Number]",LWe="[object RegExp]",DWe="[object Set]",IWe="[object String]",NWe="[object Symbol]",MWe="[object ArrayBuffer]",OWe="[object DataView]",Fre=us?us.prototype:void 0,hD=Fre?Fre.valueOf:void 0;a(Eoe,"equalByTag");y(Eoe,"equalByTag");PWe=Eoe,BWe=1,$We=Object.prototype,FWe=$We.hasOwnProperty;a(Aoe,"equalObjects");y(Aoe,"equalObjects");VWe=Aoe,GWe=1,Vre="[object Arguments]",Gre="[object Array]",Xk="[object Object]",WWe=Object.prototype,Wre=WWe.hasOwnProperty;a(Roe,"baseIsEqualDeep");y(Roe,"baseIsEqualDeep");zWe=Roe;a(jN,"baseIsEqual");y(jN,"baseIsEqual");Loe=jN,qWe=1,jWe=2;a(Doe,"baseIsMatch");y(Doe,"baseIsMatch");UWe=Doe;a(Ioe,"isStrictComparable");y(Ioe,"isStrictComparable");Noe=Ioe;a(Moe,"getMatchData");y(Moe,"getMatchData");HWe=Moe;a(Ooe,"matchesStrictComparable");y(Ooe,"matchesStrictComparable");Poe=Ooe;a(Boe,"baseMatches");y(Boe,"baseMatches");YWe=Boe;a($oe,"baseHasIn");y($oe,"baseHasIn");KWe=$oe;a(Foe,"hasPath");y(Foe,"hasPath");Voe=Foe;a(Goe,"hasIn");y(Goe,"hasIn");XWe=Goe,QWe=1,ZWe=2;a(Woe,"baseMatchesProperty");y(Woe,"baseMatchesProperty");JWe=Woe;a(zoe,"baseProperty");y(zoe,"baseProperty");eze=zoe;a(qoe,"basePropertyDeep");y(qoe,"basePropertyDeep");tze=qoe;a(joe,"property");y(joe,"property");rze=joe;a(Uoe,"baseIteratee");y(Uoe,"baseIteratee");Qo=Uoe;a(Hoe,"arrayAggregator");y(Hoe,"arrayAggregator");ize=Hoe;a(Yoe,"createBaseFor");y(Yoe,"createBaseFor");nze=Yoe,aze=nze(),sze=aze;a(Koe,"baseForOwn");y(Koe,"baseForOwn");oze=Koe;a(Xoe,"createBaseEach");y(Xoe,"createBaseEach");lze=Xoe,cze=lze(oze),Ud=cze;a(Qoe,"baseAggregator");y(Qoe,"baseAggregator");uze=Qoe;a(Zoe,"createAggregator");y(Zoe,"createAggregator");hze=Zoe,Joe=Object.prototype,dze=Joe.hasOwnProperty,fze=DN(function(e,t){e=Object(e);var r=-1,i=t.length,n=i>2?t[2]:void 0;for(n&&jv(t[0],t[1],n)&&(i=1);++r<i;)for(var s=t[r],o=Hv(s),l=-1,u=o.length;++l<u;){var h=o[l],d=e[h];(d===void 0||K1(d,Joe[h])&&!dze.call(e,h))&&(e[h]=s[h])}return e}),UN=fze;a(ele,"isArrayLikeObject");y(ele,"isArrayLikeObject");zre=ele;a(tle,"arrayIncludesWith");y(tle,"arrayIncludesWith");rle=tle,pze=200;a(ile,"baseDifference");y(ile,"baseDifference");mze=ile,gze=DN(function(e,t){return zre(e)?mze(e,$N(t,1,zre,!0)):[]}),eS=gze;a(nle,"last");y(nle,"last");Ld=nle;a(ale,"drop");y(ale,"drop");hn=ale;a(sle,"dropRight");y(sle,"dropRight");R1=sle;a(ole,"castFunction");y(ole,"castFunction");yze=ole;a(lle,"forEach");y(lle,"forEach");jt=lle;a(cle,"arrayEvery");y(cle,"arrayEvery");xze=cle;a(ule,"baseEvery");y(ule,"baseEvery");bze=ule;a(hle,"every");y(hle,"every");Xs=hle;a(dle,"baseFilter");y(dle,"baseFilter");fle=dle;a(ple,"filter");y(ple,"filter");fs=ple;a(mle,"createFind");y(mle,"createFind");Tze=mle,kze=Math.max;a(gle,"findIndex");y(gle,"findIndex");Cze=gle,vze=Tze(Cze),bm=vze;a(yle,"head");y(yle,"head");Zs=yle;a(xle,"baseMap");y(xle,"baseMap");Sze=xle;a(ble,"map");y(ble,"map");It=ble;a(Tle,"flatMap");y(Tle,"flatMap");cs=Tle,_ze=Object.prototype,wze=_ze.hasOwnProperty,Eze=hze(function(e,t,r){wze.call(e,r)?e[r].push(t):LN(e,r,[t])}),Aze=Eze,Rze=Object.prototype,Lze=Rze.hasOwnProperty;a(kle,"baseHas");y(kle,"baseHas");Dze=kle;a(Cle,"has");y(Cle,"has");Wt=Cle,Ize="[object String]";a(vle,"isString");y(vle,"isString");ua=vle;a(Sle,"baseValues");y(Sle,"baseValues");Nze=Sle;a(_le,"values");y(_le,"values");Gi=_le,Mze=Math.max;a(wle,"includes");y(wle,"includes");Un=wle,Oze=Math.max;a(Ele,"indexOf");y(Ele,"indexOf");qre=Ele,Pze="[object Map]",Bze="[object Set]",$ze=Object.prototype,Fze=$ze.hasOwnProperty;a(Ale,"isEmpty");y(Ale,"isEmpty");Hr=Ale,Vze="[object RegExp]";a(Rle,"baseIsRegExp");y(Rle,"baseIsRegExp");Gze=Rle,jre=Cu&&Cu.isRegExp,Wze=jre?Z1(jre):Gze,zl=Wze;a(Lle,"isUndefined");y(Lle,"isUndefined");ql=Lle,zze="Expected a function";a(Dle,"negate");y(Dle,"negate");qze=Dle;a(Ile,"baseSet");y(Ile,"baseSet");jze=Ile;a(Nle,"basePickBy");y(Nle,"basePickBy");Uze=Nle;a(Mle,"pickBy");y(Mle,"pickBy");Js=Mle;a(Ole,"baseReduce");y(Ole,"baseReduce");Hze=Ole;a(Ple,"reduce");y(Ple,"reduce");Na=Ple;a(Ble,"reject");y(Ble,"reject");tS=Ble;a($le,"baseSome");y($le,"baseSome");Yze=$le;a(Fle,"some");y(Fle,"some");Vle=Fle,Kze=1/0,Xze=om&&1/qN(new om([,-0]))[1]==Kze?function(e){return new om(e)}:Vi,Qze=Xze,Zze=200;a(Gle,"baseUniq");y(Gle,"baseUniq");Jze=Gle;a(Wle,"uniq");y(Wle,"uniq");HN=Wle;a(nv,"PRINT_ERROR");y(nv,"PRINT_ERROR");a(YN,"PRINT_WARNING");y(YN,"PRINT_WARNING");a(KN,"timer");y(KN,"timer");a(XN,"toFastProperties");y(XN,"toFastProperties");a(zle,"tokenLabel");y(zle,"tokenLabel");a(qle,"hasTokenLabel");y(qle,"hasTokenLabel");Zo=class{static{a(this,"AbstractProduction")}static{y(this,"AbstractProduction")}get definition(){return this._definition}set definition(e){this._definition=e}constructor(e){this._definition=e}accept(e){e.visit(this),jt(this.definition,t=>{t.accept(e)})}},zn=class extends Zo{static{a(this,"NonTerminal")}static{y(this,"NonTerminal")}constructor(e){super([]),this.idx=1,Ia(this,Js(e,t=>t!==void 0))}set definition(e){}get definition(){return this.referencedRule!==void 0?this.referencedRule.definition:[]}accept(e){e.visit(this)}},_m=class extends Zo{static{a(this,"Rule")}static{y(this,"Rule")}constructor(e){super(e.definition),this.orgText="",Ia(this,Js(e,t=>t!==void 0))}},ha=class extends Zo{static{a(this,"Alternative")}static{y(this,"Alternative")}constructor(e){super(e.definition),this.ignoreAmbiguities=!1,Ia(this,Js(e,t=>t!==void 0))}},dn=class extends Zo{static{a(this,"Option")}static{y(this,"Option")}constructor(e){super(e.definition),this.idx=1,Ia(this,Js(e,t=>t!==void 0))}},Ma=class extends Zo{static{a(this,"RepetitionMandatory")}static{y(this,"RepetitionMandatory")}constructor(e){super(e.definition),this.idx=1,Ia(this,Js(e,t=>t!==void 0))}},Oa=class extends Zo{static{a(this,"RepetitionMandatoryWithSeparator")}static{y(this,"RepetitionMandatoryWithSeparator")}constructor(e){super(e.definition),this.idx=1,Ia(this,Js(e,t=>t!==void 0))}},gi=class extends Zo{static{a(this,"Repetition")}static{y(this,"Repetition")}constructor(e){super(e.definition),this.idx=1,Ia(this,Js(e,t=>t!==void 0))}},da=class extends Zo{static{a(this,"RepetitionWithSeparator")}static{y(this,"RepetitionWithSeparator")}constructor(e){super(e.definition),this.idx=1,Ia(this,Js(e,t=>t!==void 0))}},fa=class extends Zo{static{a(this,"Alternation")}static{y(this,"Alternation")}get definition(){return this._definition}set definition(e){this._definition=e}constructor(e){super(e.definition),this.idx=1,this.ignoreAmbiguities=!1,this.hasPredicates=!1,Ia(this,Js(e,t=>t!==void 0))}},ti=class{static{a(this,"Terminal")}static{y(this,"Terminal")}constructor(e){this.idx=1,Ia(this,Js(e,t=>t!==void 0))}accept(e){e.visit(this)}};a(jle,"serializeGrammar");y(jle,"serializeGrammar");a(g1,"serializeProduction");y(g1,"serializeProduction");wm=class{static{a(this,"GAstVisitor")}static{y(this,"GAstVisitor")}visit(e){let t=e;switch(t.constructor){case zn:return this.visitNonTerminal(t);case ha:return this.visitAlternative(t);case dn:return this.visitOption(t);case Ma:return this.visitRepetitionMandatory(t);case Oa:return this.visitRepetitionMandatoryWithSeparator(t);case da:return this.visitRepetitionWithSeparator(t);case gi:return this.visitRepetition(t);case fa:return this.visitAlternation(t);case ti:return this.visitTerminal(t);case _m:return this.visitRule(t);default:throw Error("non exhaustive match")}}visitNonTerminal(e){}visitAlternative(e){}visitOption(e){}visitRepetition(e){}visitRepetitionMandatory(e){}visitRepetitionMandatoryWithSeparator(e){}visitRepetitionWithSeparator(e){}visitAlternation(e){}visitTerminal(e){}visitRule(e){}};a(Ule,"isSequenceProd");y(Ule,"isSequenceProd");a(L1,"isOptionalProd");y(L1,"isOptionalProd");a(Hle,"isBranchingProd");y(Hle,"isBranchingProd");a(js,"getProductionDslName");y(js,"getProductionDslName");rS=class{static{a(this,"RestWalker")}static{y(this,"RestWalker")}walk(e,t=[]){jt(e.definition,(r,i)=>{let n=hn(e.definition,i+1);if(r instanceof zn)this.walkProdRef(r,n,t);else if(r instanceof ti)this.walkTerminal(r,n,t);else if(r instanceof ha)this.walkFlat(r,n,t);else if(r instanceof dn)this.walkOption(r,n,t);else if(r instanceof Ma)this.walkAtLeastOne(r,n,t);else if(r instanceof Oa)this.walkAtLeastOneSep(r,n,t);else if(r instanceof da)this.walkManySep(r,n,t);else if(r instanceof gi)this.walkMany(r,n,t);else if(r instanceof fa)this.walkOr(r,n,t);else throw Error("non exhaustive match")})}walkTerminal(e,t,r){}walkProdRef(e,t,r){}walkFlat(e,t,r){let i=t.concat(r);this.walk(e,i)}walkOption(e,t,r){let i=t.concat(r);this.walk(e,i)}walkAtLeastOne(e,t,r){let i=[new dn({definition:e.definition})].concat(t,r);this.walk(e,i)}walkAtLeastOneSep(e,t,r){let i=PI(e,t,r);this.walk(e,i)}walkMany(e,t,r){let i=[new dn({definition:e.definition})].concat(t,r);this.walk(e,i)}walkManySep(e,t,r){let i=PI(e,t,r);this.walk(e,i)}walkOr(e,t,r){let i=t.concat(r);jt(e.definition,n=>{let s=new ha({definition:[n]});this.walk(s,i)})}};a(PI,"restForRepetitionWithSeparator");y(PI,"restForRepetitionWithSeparator");a(Em,"first");y(Em,"first");a(Yle,"firstForSequence");y(Yle,"firstForSequence");a(Kle,"firstForBranching");y(Kle,"firstForBranching");a(Xle,"firstForTerminal");y(Xle,"firstForTerminal");Qle="_~IN~_",eqe=class extends rS{static{a(this,"ResyncFollowsWalker")}static{y(this,"ResyncFollowsWalker")}constructor(e){super(),this.topProd=e,this.follows={}}startWalking(){return this.walk(this.topProd),this.follows}walkTerminal(e,t,r){}walkProdRef(e,t,r){let i=Jle(e.referencedRule,e.idx)+this.topProd.name,n=t.concat(r),s=new ha({definition:n}),o=Em(s);this.follows[i]=o}};a(Zle,"computeAllProdsFollows");y(Zle,"computeAllProdsFollows");a(Jle,"buildBetweenProdsFollowPrefix");y(Jle,"buildBetweenProdsFollowPrefix");vC={},tqe=new Dne;a(tx,"getRegExpAst");y(tx,"getRegExpAst");a(ece,"clearRegExpParserCache");y(ece,"clearRegExpParserCache");tce="Complement Sets are not supported for first char optimization",av=`Unable to use "first char" lexer optimizations:
`;a(rce,"getOptimizedStartCodesIndices");y(rce,"getOptimizedStartCodesIndices");a(sv,"firstCharOptimizedIndices");y(sv,"firstCharOptimizedIndices");a(t1,"addOptimizedIdxToResult");y(t1,"addOptimizedIdxToResult");a(ice,"handleIgnoreCase");y(ice,"handleIgnoreCase");a(BI,"findCode");y(BI,"findCode");a(ov,"isWholeOptional");y(ov,"isWholeOptional");rqe=class extends Ov{static{a(this,"CharCodeFinder")}static{y(this,"CharCodeFinder")}constructor(e){super(),this.targetCharCodes=e,this.found=!1}visitChildren(e){if(this.found!==!0){switch(e.type){case"Lookahead":this.visitLookahead(e);return;case"NegativeLookahead":this.visitNegativeLookahead(e);return;case"Lookbehind":this.visitLookbehind(e);return;case"NegativeLookbehind":this.visitNegativeLookbehind(e);return}super.visitChildren(e)}}visitCharacter(e){Un(this.targetCharCodes,e.value)&&(this.found=!0)}visitSet(e){e.complement?BI(e,this.targetCharCodes)===void 0&&(this.found=!0):BI(e,this.targetCharCodes)!==void 0&&(this.found=!0)}};a(iS,"canMatchCharCode");y(iS,"canMatchCharCode");Dd="PATTERN",r1="defaultMode",Qk="modes",nce=typeof new RegExp("(?:)").sticky=="boolean";a(ace,"analyzeTokenTypes");y(ace,"analyzeTokenTypes");a(sce,"validatePatterns");y(sce,"validatePatterns");a(oce,"validateRegExpPattern");y(oce,"validateRegExpPattern");a(lce,"findMissingPatterns");y(lce,"findMissingPatterns");a(cce,"findInvalidPatterns");y(cce,"findInvalidPatterns");iqe=/[^\\][$]/;a(uce,"findEndOfInputAnchor");y(uce,"findEndOfInputAnchor");a(hce,"findEmptyMatchRegExps");y(hce,"findEmptyMatchRegExps");nqe=/[^\\[][\^]|^\^/;a(dce,"findStartOfInputAnchor");y(dce,"findStartOfInputAnchor");a(fce,"findUnsupportedFlags");y(fce,"findUnsupportedFlags");a(pce,"findDuplicatePatterns");y(pce,"findDuplicatePatterns");a(mce,"findInvalidGroupType");y(mce,"findInvalidGroupType");a(gce,"findModesThatDoNotExist");y(gce,"findModesThatDoNotExist");a(yce,"findUnreachablePatterns");y(yce,"findUnreachablePatterns");a(xce,"tryToMatchStrToPattern");y(xce,"tryToMatchStrToPattern");a(bce,"noMetaChar");y(bce,"noMetaChar");a(Tce,"usesLookAheadOrBehind");y(Tce,"usesLookAheadOrBehind");a($I,"addStartOfInput");y($I,"addStartOfInput");a(FI,"addStickyFlag");y(FI,"addStickyFlag");a(kce,"performRuntimeChecks");y(kce,"performRuntimeChecks");a(Cce,"performWarningRuntimeChecks");y(Cce,"performWarningRuntimeChecks");a(vce,"cloneEmptyGroups");y(vce,"cloneEmptyGroups");a(QN,"isCustomPattern");y(QN,"isCustomPattern");a(Sce,"isShortPattern");y(Sce,"isShortPattern");aqe={test:y(function(e){let t=e.length;for(let r=this.lastIndex;r<t;r++){let i=e.charCodeAt(r);if(i===10)return this.lastIndex=r+1,!0;if(i===13)return e.charCodeAt(r+1)===10?this.lastIndex=r+2:this.lastIndex=r+1,!0}return!1},"test"),lastIndex:0};a(ZN,"checkLineBreaksIssues");y(ZN,"checkLineBreaksIssues");a(_ce,"buildLineBreakIssueMessage");y(_ce,"buildLineBreakIssueMessage");a(JN,"getCharCodes");y(JN,"getCharCodes");a(SC,"addToMapOfArrays");y(SC,"addToMapOfArrays");i1=256,_C=[];a(jl,"charCodeToOptimizedIndex");y(jl,"charCodeToOptimizedIndex");a(wce,"initCharCodeToOptimizedIndexMap");y(wce,"initCharCodeToOptimizedIndexMap");a(Am,"tokenStructuredMatcher");y(Am,"tokenStructuredMatcher");a(D1,"tokenStructuredMatcherNoCategories");y(D1,"tokenStructuredMatcherNoCategories");Ure=1,Ece={};a(Rm,"augmentTokenTypes");y(Rm,"augmentTokenTypes");a(Ace,"expandCategories");y(Ace,"expandCategories");a(Rce,"assignTokenDefaultProps");y(Rce,"assignTokenDefaultProps");a(Lce,"assignCategoriesTokensProp");y(Lce,"assignCategoriesTokensProp");a(Dce,"assignCategoriesMapProp");y(Dce,"assignCategoriesMapProp");a(eM,"singleAssignCategoriesToksMap");y(eM,"singleAssignCategoriesToksMap");a(tM,"hasShortKeyProperty");y(tM,"hasShortKeyProperty");a(VI,"hasCategoriesProperty");y(VI,"hasCategoriesProperty");a(Ice,"hasExtendingTokensTypesProperty");y(Ice,"hasExtendingTokensTypesProperty");a(Nce,"hasExtendingTokensTypesMapProperty");y(Nce,"hasExtendingTokensTypesMapProperty");a(Mce,"isTokenType");y(Mce,"isTokenType");GI={buildUnableToPopLexerModeMessage(e){return`Unable to pop Lexer Mode after encountering Token ->${e.image}<- The Mode Stack is empty`},buildUnexpectedCharactersMessage(e,t,r,i,n,s){return`unexpected character: ->${e.charAt(t)}<- at offset: ${t}, skipped ${r} characters.`}};(function(e){e[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"})(yi||(yi={}));n1={deferDefinitionErrorsHandling:!1,positionTracking:"full",lineTerminatorsPattern:/\n|\r\n?/g,lineTerminatorCharacters:[`
`,"\r"],ensureOptimizations:!1,safeMode:!1,errorMessageProvider:GI,traceInitPerf:!1,skipValidations:!1,recoveryEnabled:!0};Object.freeze(n1);Gn=class{static{a(this,"Lexer")}static{y(this,"Lexer")}constructor(e,t=n1){if(this.lexerDefinition=e,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=(i,n)=>{if(this.traceInitPerf===!0){this.traceInitIndent++;let s=new Array(this.traceInitIndent+1).join(" ");this.traceInitIndent<this.traceInitMaxIdent&&console.log(`${s}--> <${i}>`);let{time:o,value:l}=KN(n),u=o>10?console.warn:console.log;return this.traceInitIndent<this.traceInitMaxIdent&&u(`${s}<-- <${i}> time: ${o}ms`),this.traceInitIndent--,l}else return n()},typeof t=="boolean")throw Error(`The second argument to the Lexer constructor is now an ILexerConfig Object.
a boolean 2nd argument is no longer supported`);this.config=Ia({},n1,t);let r=this.config.traceInitPerf;r===!0?(this.traceInitMaxIdent=1/0,this.traceInitPerf=!0):typeof r=="number"&&(this.traceInitMaxIdent=r,this.traceInitPerf=!0),this.traceInitIndent=-1,this.TRACE_INIT("Lexer Constructor",()=>{let i,n=!0;this.TRACE_INIT("Lexer Config handling",()=>{if(this.config.lineTerminatorsPattern===n1.lineTerminatorsPattern)this.config.lineTerminatorsPattern=aqe;else if(this.config.lineTerminatorCharacters===n1.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(t.safeMode&&t.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),kr(e)?i={modes:{defaultMode:fn(e)},defaultMode:r1}:(n=!1,i=fn(e))}),this.config.skipValidations===!1&&(this.TRACE_INIT("performRuntimeChecks",()=>{this.lexerDefinitionErrors=this.lexerDefinitionErrors.concat(kce(i,this.trackStartLines,this.config.lineTerminatorCharacters))}),this.TRACE_INIT("performWarningRuntimeChecks",()=>{this.lexerDefinitionWarning=this.lexerDefinitionWarning.concat(Cce(i,this.trackStartLines,this.config.lineTerminatorCharacters))})),i.modes=i.modes?i.modes:{},jt(i.modes,(o,l)=>{i.modes[l]=tS(o,u=>ql(u))});let s=Da(i.modes);if(jt(i.modes,(o,l)=>{this.TRACE_INIT(`Mode: <${l}> processing`,()=>{if(this.modes.push(l),this.config.skipValidations===!1&&this.TRACE_INIT("validatePatterns",()=>{this.lexerDefinitionErrors=this.lexerDefinitionErrors.concat(sce(o,s))}),Hr(this.lexerDefinitionErrors)){Rm(o);let u;this.TRACE_INIT("analyzeTokenTypes",()=>{u=ace(o,{lineTerminatorCharacters:this.config.lineTerminatorCharacters,positionTracking:t.positionTracking,ensureOptimizations:t.ensureOptimizations,safeMode:t.safeMode,tracer:this.TRACE_INIT})}),this.patternIdxToConfig[l]=u.patternIdxToConfig,this.charCodeToPatternIdxToConfig[l]=u.charCodeToPatternIdxToConfig,this.emptyGroups=Ia({},this.emptyGroups,u.emptyGroups),this.hasCustom=u.hasCustom||this.hasCustom,this.canModeBeOptimized[l]=u.canBeOptimized}})}),this.defaultMode=i.defaultMode,!Hr(this.lexerDefinitionErrors)&&!this.config.deferDefinitionErrorsHandling){let l=It(this.lexerDefinitionErrors,u=>u.message).join(`-----------------------
`);throw new Error(`Errors detected in definition of Lexer:
`+l)}jt(this.lexerDefinitionWarning,o=>{YN(o.message)}),this.TRACE_INIT("Choosing sub-methods implementations",()=>{if(nce?(this.chopInput=ym,this.match=this.matchWithTest):(this.updateLastIndex=Vi,this.match=this.matchWithExec),n&&(this.handleModes=Vi),this.trackStartLines===!1&&(this.computeNewColumn=ym),this.trackEndLines===!1&&(this.updateTokenEndLineColumnLocation=Vi),/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))this.createTokenInstance=this.createOffsetOnlyToken;else throw Error(`Invalid <positionTracking> config option: "${this.config.positionTracking}"`);this.hasCustom?(this.addToken=this.addTokenUsingPush,this.handlePayload=this.handlePayloadWithCustom):(this.addToken=this.addTokenUsingMemberAccess,this.handlePayload=this.handlePayloadNoCustom)}),this.TRACE_INIT("Failed Optimization Warnings",()=>{let o=Na(this.canModeBeOptimized,(l,u,h)=>(u===!1&&l.push(h),l),[]);if(t.ensureOptimizations&&!Hr(o))throw Error(`Lexer Modes: < ${o.join(", ")} > cannot be optimized.
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",()=>{ece()}),this.TRACE_INIT("toFastProperties",()=>{XN(this)})})}tokenize(e,t=this.defaultMode){if(!Hr(this.lexerDefinitionErrors)){let i=It(this.lexerDefinitionErrors,n=>n.message).join(`-----------------------
`);throw new Error(`Unable to Tokenize because Errors detected in definition of Lexer:
`+i)}return this.tokenizeInternal(e,t)}tokenizeInternal(e,t){let r,i,n,s,o,l,u,h,d,f,p,m,g,x,b,T,k=e,C=k.length,S=0,w=0,_=this.hasCustom?0:Math.floor(e.length/10),L=new Array(_),I=[],B=this.trackStartLines?1:void 0,G=this.trackStartLines?1:void 0,P=vce(this.emptyGroups),F=this.trackStartLines,A=this.config.lineTerminatorsPattern,D=0,R=[],N=[],$=[],E=[];Object.freeze(E);let M;function V(){return R}a(V,"getPossiblePatternsSlow"),y(V,"getPossiblePatternsSlow");function O(ae){let X=jl(ae),de=N[X];return de===void 0?E:de}a(O,"getPossiblePatternsOptimized"),y(O,"getPossiblePatternsOptimized");let z=y(ae=>{if($.length===1&&ae.tokenType.PUSH_MODE===void 0){let X=this.config.errorMessageProvider.buildUnableToPopLexerModeMessage(ae);I.push({offset:ae.startOffset,line:ae.startLine,column:ae.startColumn,length:ae.image.length,message:X})}else{$.pop();let X=Ld($);R=this.patternIdxToConfig[X],N=this.charCodeToPatternIdxToConfig[X],D=R.length;let de=this.canModeBeOptimized[X]&&this.config.safeMode===!1;N&&de?M=O:M=V}},"pop_mode");function U(ae){$.push(ae),N=this.charCodeToPatternIdxToConfig[ae],R=this.patternIdxToConfig[ae],D=R.length,D=R.length;let X=this.canModeBeOptimized[ae]&&this.config.safeMode===!1;N&&X?M=O:M=V}a(U,"push_mode"),y(U,"push_mode"),U.call(this,t);let K,j=this.config.recoveryEnabled;for(;S<C;){l=null;let ae=k.charCodeAt(S),X=M(ae),de=X.length;for(r=0;r<de;r++){K=X[r];let le=K.pattern;u=null;let ge=K.short;if(ge!==!1?ae===ge&&(l=le):K.isCustom===!0?(T=le.exec(k,S,L,P),T!==null?(l=T[0],T.payload!==void 0&&(u=T.payload)):l=null):(this.updateLastIndex(le,S),l=this.match(le,e,S)),l!==null){if(o=K.longerAlt,o!==void 0){let he=o.length;for(n=0;n<he;n++){let te=R[o[n]],Le=te.pattern;if(h=null,te.isCustom===!0?(T=Le.exec(k,S,L,P),T!==null?(s=T[0],T.payload!==void 0&&(h=T.payload)):s=null):(this.updateLastIndex(Le,S),s=this.match(Le,e,S)),s&&s.length>l.length){l=s,u=h,K=te;break}}}break}}if(l!==null){if(d=l.length,f=K.group,f!==void 0&&(p=K.tokenTypeIdx,m=this.createTokenInstance(l,S,p,K.tokenType,B,G,d),this.handlePayload(m,u),f===!1?w=this.addToken(L,w,m):P[f].push(m)),e=this.chopInput(e,d),S=S+d,G=this.computeNewColumn(G,d),F===!0&&K.canLineTerminator===!0){let le=0,ge,he;A.lastIndex=0;do ge=A.test(l),ge===!0&&(he=A.lastIndex-1,le++);while(ge===!0);le!==0&&(B=B+le,G=d-he,this.updateTokenEndLineColumnLocation(m,f,he,le,B,G,d))}this.handleModes(K,z,U,m)}else{let le=S,ge=B,he=G,te=j===!1;for(;te===!1&&S<C;)for(e=this.chopInput(e,1),S++,i=0;i<D;i++){let Le=R[i],xe=Le.pattern,ye=Le.short;if(ye!==!1?k.charCodeAt(S)===ye&&(te=!0):Le.isCustom===!0?te=xe.exec(k,S,L,P)!==null:(this.updateLastIndex(xe,S),te=xe.exec(e)!==null),te===!0)break}if(g=S-le,G=this.computeNewColumn(G,g),b=this.config.errorMessageProvider.buildUnexpectedCharactersMessage(k,le,g,ge,he,Ld($)),I.push({offset:le,line:ge,column:he,length:g,message:b}),j===!1)break}}return this.hasCustom||(L.length=w),{tokens:L,groups:P,errors:I}}handleModes(e,t,r,i){if(e.pop===!0){let n=e.push;t(i),n!==void 0&&r.call(this,n)}else e.push!==void 0&&r.call(this,e.push)}chopInput(e,t){return e.substring(t)}updateLastIndex(e,t){e.lastIndex=t}updateTokenEndLineColumnLocation(e,t,r,i,n,s,o){let l,u;t!==void 0&&(l=r===o-1,u=l?-1:0,i===1&&l===!0||(e.endLine=n+u,e.endColumn=s-1+-u))}computeNewColumn(e,t){return e+t}createOffsetOnlyToken(e,t,r,i){return{image:e,startOffset:t,tokenTypeIdx:r,tokenType:i}}createStartOnlyToken(e,t,r,i,n,s){return{image:e,startOffset:t,startLine:n,startColumn:s,tokenTypeIdx:r,tokenType:i}}createFullToken(e,t,r,i,n,s,o){return{image:e,startOffset:t,endOffset:t+o-1,startLine:n,endLine:n,startColumn:s,endColumn:s+o-1,tokenTypeIdx:r,tokenType:i}}addTokenUsingPush(e,t,r){return e.push(r),t}addTokenUsingMemberAccess(e,t,r){return e[t]=r,t++,t}handlePayloadNoCustom(e,t){}handlePayloadWithCustom(e,t){t!==null&&(e.payload=t)}matchWithTest(e,t,r){return e.test(t)===!0?t.substring(r,e.lastIndex):null}matchWithExec(e,t){let r=e.exec(t);return r!==null?r[0]:null}};Gn.SKIPPED="This marks a skipped Token pattern, this means each token identified by it will be consumed and then thrown into oblivion, this can be used to for example to completely ignore whitespace.";Gn.NA=/NOT_APPLICABLE/;a(Ed,"tokenLabel2");y(Ed,"tokenLabel");a(rM,"hasTokenLabel2");y(rM,"hasTokenLabel");sqe="parent",Hre="categories",Yre="label",Kre="group",Xre="push_mode",Qre="pop_mode",Zre="longer_alt",Jre="line_breaks",eie="start_chars_hint";a(lm,"createToken");y(lm,"createToken");a(Oce,"createTokenInternal");y(Oce,"createTokenInternal");vu=lm({name:"EOF",pattern:Gn.NA});Rm([vu]);a(rx,"createTokenInstance");y(rx,"createTokenInstance");a(iM,"tokenMatcher");y(iM,"tokenMatcher");nm={buildMismatchTokenMessage({expected:e,actual:t,previous:r,ruleName:i}){return`Expecting ${rM(e)?`--> ${Ed(e)} <--`:`token of type --> ${e.name} <--`} but found --> '${t.image}' <--`},buildNotAllInputParsedMessage({firstRedundant:e,ruleName:t}){return"Redundant input, expecting EOF but found: "+e.image},buildNoViableAltMessage({expectedPathsPerAlt:e,actual:t,previous:r,customUserDescription:i,ruleName:n}){let s="Expecting: ",l=`
but found: '`+Zs(t).image+"'";if(i)return s+i+l;{let u=Na(e,(p,m)=>p.concat(m),[]),h=It(u,p=>`[${It(p,m=>Ed(m)).join(", ")}]`),f=`one of these possible Token sequences:
${It(h,(p,m)=>` ${m+1}. ${p}`).join(`
`)}`;return s+f+l}},buildEarlyExitMessage({expectedIterationPaths:e,actual:t,customUserDescription:r,ruleName:i}){let n="Expecting: ",o=`
but found: '`+Zs(t).image+"'";if(r)return n+r+o;{let u=`expecting at least one iteration which starts with one of these possible Token sequences::
<${It(e,h=>`[${It(h,d=>Ed(d)).join(",")}]`).join(" ,")}>`;return n+u+o}}};Object.freeze(nm);oqe={buildRuleNotFoundError(e,t){return"Invalid grammar, reference to a rule which is not defined: ->"+t.nonTerminalName+`<-
inside top level rule: ->`+e.name+"<-"}},Sd={buildDuplicateFoundError(e,t){function r(d){return d instanceof ti?d.terminalType.name:d instanceof zn?d.nonTerminalName:""}a(r,"getExtraProductionArgument2"),y(r,"getExtraProductionArgument");let i=e.name,n=Zs(t),s=n.idx,o=js(n),l=r(n),u=s>0,h=`->${o}${u?s:""}<- ${l?`with argument: ->${l}<-`:""}
appears more than once (${t.length} times) in the top level rule: ->${i}<-.
For further details see: https://chevrotain.io/docs/FAQ.html#NUMERICAL_SUFFIXES
`;return h=h.replace(/[ \t]+/g," "),h=h.replace(/\s\s+/g,`
`),h},buildNamespaceConflictError(e){return`Namespace conflict found in grammar.
The grammar has both a Terminal(Token) and a Non-Terminal(Rule) named: <${e.name}>.
To resolve this make sure each Terminal and Non-Terminal names are unique
This is easy to accomplish by using the convention that Terminal names start with an uppercase letter
and Non-Terminal names start with a lower case letter.`},buildAlternationPrefixAmbiguityError(e){let t=It(e.prefixPath,n=>Ed(n)).join(", "),r=e.alternation.idx===0?"":e.alternation.idx;return`Ambiguous alternatives: <${e.ambiguityIndices.join(" ,")}> due to common lookahead prefix
in <OR${r}> inside <${e.topLevelRule.name}> Rule,
<${t}> may appears as a prefix path in all these alternatives.
See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#COMMON_PREFIX
For Further details.`},buildAlternationAmbiguityError(e){let t=It(e.prefixPath,n=>Ed(n)).join(", "),r=e.alternation.idx===0?"":e.alternation.idx,i=`Ambiguous Alternatives Detected: <${e.ambiguityIndices.join(" ,")}> in <OR${r}> inside <${e.topLevelRule.name}> Rule,
<${t}> may appears as a prefix path in all these alternatives.
`;return i=i+`See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#AMBIGUOUS_ALTERNATIVES
For Further details.`,i},buildEmptyRepetitionError(e){let t=js(e.repetition);return e.repetition.idx!==0&&(t+=e.repetition.idx),`The repetition <${t}> within Rule <${e.topLevelRule.name}> can never consume any tokens.
This could lead to an infinite loop.`},buildTokenNameError(e){return"deprecated"},buildEmptyAlternationError(e){return`Ambiguous empty alternative: <${e.emptyChoiceIdx+1}> in <OR${e.alternation.idx}> inside <${e.topLevelRule.name}> Rule.
Only the last alternative may be an empty alternative.`},buildTooManyAlternativesError(e){return`An Alternation cannot have more than 256 alternatives:
<OR${e.alternation.idx}> inside <${e.topLevelRule.name}> Rule.
has ${e.alternation.definition.length+1} alternatives.`},buildLeftRecursionError(e){let t=e.topLevelRule.name,r=It(e.leftRecursionPath,s=>s.name),i=`${t} --> ${r.concat([t]).join(" --> ")}`;return`Left Recursion found in grammar.
rule: <${t}> can be invoked from itself (directly or indirectly)
without consuming any Tokens. The grammar path that causes this is:
${i}
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){let t;return e.topLevelRule instanceof _m?t=e.topLevelRule.name:t=e.topLevelRule,`Duplicate definition, rule: ->${t}<- is already defined in the grammar: ->${e.grammarName}<-`}};a(Pce,"resolveGrammar");y(Pce,"resolveGrammar");lqe=class extends wm{static{a(this,"GastRefResolverVisitor")}static{y(this,"GastRefResolverVisitor")}constructor(e,t){super(),this.nameToTopRule=e,this.errMsgProvider=t,this.errors=[]}resolveRefs(){jt(Gi(this.nameToTopRule),e=>{this.currTopLevel=e,e.accept(this)})}visitNonTerminal(e){let t=this.nameToTopRule[e.nonTerminalName];if(t)e.referencedRule=t;else{let r=this.errMsgProvider.buildRuleNotFoundError(this.currTopLevel,e);this.errors.push({message:r,type:qn.UNRESOLVED_SUBRULE_REF,ruleName:this.currTopLevel.name,unresolvedRefName:e.nonTerminalName})}}},cqe=class extends rS{static{a(this,"AbstractNextPossibleTokensWalker")}static{y(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=fn(this.path.ruleStack).reverse(),this.occurrenceStack=fn(this.path.occurrenceStack).reverse(),this.ruleStack.pop(),this.occurrenceStack.pop(),this.updateExpectedNext(),this.walk(this.topProd),this.possibleTokTypes}walk(e,t=[]){this.found||super.walk(e,t)}walkProdRef(e,t,r){if(e.referencedRule.name===this.nextProductionName&&e.idx===this.nextProductionOccurrence){let i=t.concat(r);this.updateExpectedNext(),this.walk(e.referencedRule,i)}}updateExpectedNext(){Hr(this.ruleStack)?(this.nextProductionName="",this.nextProductionOccurrence=0,this.isAtEndOfPath=!0):(this.nextProductionName=this.ruleStack.pop(),this.nextProductionOccurrence=this.occurrenceStack.pop())}},uqe=class extends cqe{static{a(this,"NextAfterTokenWalker")}static{y(this,"NextAfterTokenWalker")}constructor(e,t){super(e,t),this.path=t,this.nextTerminalName="",this.nextTerminalOccurrence=0,this.nextTerminalName=this.path.lastTok.name,this.nextTerminalOccurrence=this.path.lastTokOccurrence}walkTerminal(e,t,r){if(this.isAtEndOfPath&&e.terminalType.name===this.nextTerminalName&&e.idx===this.nextTerminalOccurrence&&!this.found){let i=t.concat(r),n=new ha({definition:i});this.possibleTokTypes=Em(n),this.found=!0}}},nS=class extends rS{static{a(this,"AbstractNextTerminalAfterProductionWalker")}static{y(this,"AbstractNextTerminalAfterProductionWalker")}constructor(e,t){super(),this.topRule=e,this.occurrence=t,this.result={token:void 0,occurrence:void 0,isEndOfRule:void 0}}startWalking(){return this.walk(this.topRule),this.result}},hqe=class extends nS{static{a(this,"NextTerminalAfterManyWalker")}static{y(this,"NextTerminalAfterManyWalker")}walkMany(e,t,r){if(e.idx===this.occurrence){let i=Zs(t.concat(r));this.result.isEndOfRule=i===void 0,i instanceof ti&&(this.result.token=i.terminalType,this.result.occurrence=i.idx)}else super.walkMany(e,t,r)}},tie=class extends nS{static{a(this,"NextTerminalAfterManySepWalker")}static{y(this,"NextTerminalAfterManySepWalker")}walkManySep(e,t,r){if(e.idx===this.occurrence){let i=Zs(t.concat(r));this.result.isEndOfRule=i===void 0,i instanceof ti&&(this.result.token=i.terminalType,this.result.occurrence=i.idx)}else super.walkManySep(e,t,r)}},dqe=class extends nS{static{a(this,"NextTerminalAfterAtLeastOneWalker")}static{y(this,"NextTerminalAfterAtLeastOneWalker")}walkAtLeastOne(e,t,r){if(e.idx===this.occurrence){let i=Zs(t.concat(r));this.result.isEndOfRule=i===void 0,i instanceof ti&&(this.result.token=i.terminalType,this.result.occurrence=i.idx)}else super.walkAtLeastOne(e,t,r)}},rie=class extends nS{static{a(this,"NextTerminalAfterAtLeastOneSepWalker")}static{y(this,"NextTerminalAfterAtLeastOneSepWalker")}walkAtLeastOneSep(e,t,r){if(e.idx===this.occurrence){let i=Zs(t.concat(r));this.result.isEndOfRule=i===void 0,i instanceof ti&&(this.result.token=i.terminalType,this.result.occurrence=i.idx)}else super.walkAtLeastOneSep(e,t,r)}};a(lv,"possiblePathsFrom");y(lv,"possiblePathsFrom");a(nM,"nextPossibleTokensAfter");y(nM,"nextPossibleTokensAfter");a(Bce,"expandTopLevelRule");y(Bce,"expandTopLevelRule");(function(e){e[e.OPTION=0]="OPTION",e[e.REPETITION=1]="REPETITION",e[e.REPETITION_MANDATORY=2]="REPETITION_MANDATORY",e[e.REPETITION_MANDATORY_WITH_SEPARATOR=3]="REPETITION_MANDATORY_WITH_SEPARATOR",e[e.REPETITION_WITH_SEPARATOR=4]="REPETITION_WITH_SEPARATOR",e[e.ALTERNATION=5]="ALTERNATION"})(oi||(oi={}));a(aS,"getProdType");y(aS,"getProdType");a(WI,"getLookaheadPaths");y(WI,"getLookaheadPaths");a($ce,"buildLookaheadFuncForOr");y($ce,"buildLookaheadFuncForOr");a(Fce,"buildLookaheadFuncForOptionalProd");y(Fce,"buildLookaheadFuncForOptionalProd");a(Vce,"buildAlternativesLookAheadFunc");y(Vce,"buildAlternativesLookAheadFunc");a(Gce,"buildSingleAlternativeLookaheadFunction");y(Gce,"buildSingleAlternativeLookaheadFunction");fqe=class extends rS{static{a(this,"RestDefinitionFinderWalker")}static{y(this,"RestDefinitionFinderWalker")}constructor(e,t,r){super(),this.topProd=e,this.targetOccurrence=t,this.targetProdType=r}startWalking(){return this.walk(this.topProd),this.restDef}checkIsTarget(e,t,r,i){return e.idx===this.targetOccurrence&&this.targetProdType===t?(this.restDef=r.concat(i),!0):!1}walkOption(e,t,r){this.checkIsTarget(e,oi.OPTION,t,r)||super.walkOption(e,t,r)}walkAtLeastOne(e,t,r){this.checkIsTarget(e,oi.REPETITION_MANDATORY,t,r)||super.walkOption(e,t,r)}walkAtLeastOneSep(e,t,r){this.checkIsTarget(e,oi.REPETITION_MANDATORY_WITH_SEPARATOR,t,r)||super.walkOption(e,t,r)}walkMany(e,t,r){this.checkIsTarget(e,oi.REPETITION,t,r)||super.walkOption(e,t,r)}walkManySep(e,t,r){this.checkIsTarget(e,oi.REPETITION_WITH_SEPARATOR,t,r)||super.walkOption(e,t,r)}},Wce=class extends wm{static{a(this,"InsideDefinitionFinderVisitor")}static{y(this,"InsideDefinitionFinderVisitor")}constructor(e,t,r){super(),this.targetOccurrence=e,this.targetProdType=t,this.targetRef=r,this.result=[]}checkIsTarget(e,t){e.idx===this.targetOccurrence&&this.targetProdType===t&&(this.targetRef===void 0||e===this.targetRef)&&(this.result=e.definition)}visitOption(e){this.checkIsTarget(e,oi.OPTION)}visitRepetition(e){this.checkIsTarget(e,oi.REPETITION)}visitRepetitionMandatory(e){this.checkIsTarget(e,oi.REPETITION_MANDATORY)}visitRepetitionMandatoryWithSeparator(e){this.checkIsTarget(e,oi.REPETITION_MANDATORY_WITH_SEPARATOR)}visitRepetitionWithSeparator(e){this.checkIsTarget(e,oi.REPETITION_WITH_SEPARATOR)}visitAlternation(e){this.checkIsTarget(e,oi.ALTERNATION)}};a(zI,"initializeArrayOfArrays");y(zI,"initializeArrayOfArrays");a(wC,"pathToHashKeys");y(wC,"pathToHashKeys");a(zce,"isUniquePrefixHash");y(zce,"isUniquePrefixHash");a(aM,"lookAheadSequenceFromAlternatives");y(aM,"lookAheadSequenceFromAlternatives");a(ix,"getLookaheadPathsForOr");y(ix,"getLookaheadPathsForOr");a(nx,"getLookaheadPathsForOptionalProd");y(nx,"getLookaheadPathsForOptionalProd");a(cv,"containsPath");y(cv,"containsPath");a(qce,"isStrictPrefixOfPath");y(qce,"isStrictPrefixOfPath");a(sM,"areTokenCategoriesNotUsed");y(sM,"areTokenCategoriesNotUsed");a(jce,"validateLookahead");y(jce,"validateLookahead");a(Uce,"validateGrammar");y(Uce,"validateGrammar");a(Hce,"validateDuplicateProductions");y(Hce,"validateDuplicateProductions");a(Yce,"identifyProductionForDuplicates");y(Yce,"identifyProductionForDuplicates");a(oM,"getExtraProductionArgument");y(oM,"getExtraProductionArgument");pqe=class extends wm{static{a(this,"OccurrenceValidationCollector")}static{y(this,"OccurrenceValidationCollector")}constructor(){super(...arguments),this.allProductions=[]}visitNonTerminal(e){this.allProductions.push(e)}visitOption(e){this.allProductions.push(e)}visitRepetitionWithSeparator(e){this.allProductions.push(e)}visitRepetitionMandatory(e){this.allProductions.push(e)}visitRepetitionMandatoryWithSeparator(e){this.allProductions.push(e)}visitRepetition(e){this.allProductions.push(e)}visitAlternation(e){this.allProductions.push(e)}visitTerminal(e){this.allProductions.push(e)}};a(Kce,"validateRuleDoesNotAlreadyExist");y(Kce,"validateRuleDoesNotAlreadyExist");a(Xce,"validateRuleIsOverridden");y(Xce,"validateRuleIsOverridden");a(lM,"validateNoLeftRecursion");y(lM,"validateNoLeftRecursion");a(y1,"getFirstNoneTerminal");y(y1,"getFirstNoneTerminal");cM=class extends wm{static{a(this,"OrCollector")}static{y(this,"OrCollector")}constructor(){super(...arguments),this.alternations=[]}visitAlternation(e){this.alternations.push(e)}};a(Qce,"validateEmptyOrAlternative");y(Qce,"validateEmptyOrAlternative");a(Zce,"validateAmbiguousAlternationAlternatives");y(Zce,"validateAmbiguousAlternationAlternatives");mqe=class extends wm{static{a(this,"RepetitionCollector")}static{y(this,"RepetitionCollector")}constructor(){super(...arguments),this.allProductions=[]}visitRepetitionWithSeparator(e){this.allProductions.push(e)}visitRepetitionMandatory(e){this.allProductions.push(e)}visitRepetitionMandatoryWithSeparator(e){this.allProductions.push(e)}visitRepetition(e){this.allProductions.push(e)}};a(Jce,"validateTooManyAlts");y(Jce,"validateTooManyAlts");a(eue,"validateSomeNonEmptyLookaheadPath");y(eue,"validateSomeNonEmptyLookaheadPath");a(tue,"checkAlternativesAmbiguities");y(tue,"checkAlternativesAmbiguities");a(rue,"checkPrefixAlternativesAmbiguities");y(rue,"checkPrefixAlternativesAmbiguities");a(iue,"checkTerminalAndNoneTerminalsNameSpace");y(iue,"checkTerminalAndNoneTerminalsNameSpace");a(nue,"resolveGrammar2");y(nue,"resolveGrammar");a(aue,"validateGrammar2");y(aue,"validateGrammar");sue="MismatchedTokenException",oue="NoViableAltException",lue="EarlyExitException",cue="NotAllInputParsedException",uue=[sue,oue,lue,cue];Object.freeze(uue);a(I1,"isRecognitionException");y(I1,"isRecognitionException");sS=class extends Error{static{a(this,"RecognitionException")}static{y(this,"RecognitionException")}constructor(e,t){super(e),this.token=t,this.resyncedTokens=[],Object.setPrototypeOf(this,new.target.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}},hue=class extends sS{static{a(this,"MismatchedTokenException")}static{y(this,"MismatchedTokenException")}constructor(e,t,r){super(e,t),this.previousToken=r,this.name=sue}},gqe=class extends sS{static{a(this,"NoViableAltException")}static{y(this,"NoViableAltException")}constructor(e,t,r){super(e,t),this.previousToken=r,this.name=oue}},yqe=class extends sS{static{a(this,"NotAllInputParsedException")}static{y(this,"NotAllInputParsedException")}constructor(e,t){super(e,t),this.name=cue}},xqe=class extends sS{static{a(this,"EarlyExitException")}static{y(this,"EarlyExitException")}constructor(e,t,r){super(e,t),this.previousToken=r,this.name=lue}},dD={},due="InRuleRecoveryException",bqe=class extends Error{static{a(this,"InRuleRecoveryException")}static{y(this,"InRuleRecoveryException")}constructor(e){super(e),this.name=due}},Tqe=class{static{a(this,"Recoverable")}static{y(this,"Recoverable")}initRecoverable(e){this.firstAfterRepMap={},this.resyncFollows={},this.recoveryEnabled=Wt(e,"recoveryEnabled")?e.recoveryEnabled:Ul.recoveryEnabled,this.recoveryEnabled&&(this.attemptInRepetitionRecovery=fue)}getTokenToInsert(e){let t=rx(e,"",NaN,NaN,NaN,NaN,NaN,NaN);return t.isInsertedInRecovery=!0,t}canTokenTypeBeInsertedInRecovery(e){return!0}canTokenTypeBeDeletedInRecovery(e){return!0}tryInRepetitionRecovery(e,t,r,i){let n=this.findReSyncTokenType(),s=this.exportLexerState(),o=[],l=!1,u=this.LA(1),h=this.LA(1),d=y(()=>{let f=this.LA(0),p=this.errorMessageProvider.buildMismatchTokenMessage({expected:i,actual:u,previous:f,ruleName:this.getCurrRuleFullName()}),m=new hue(p,u,this.LA(0));m.resyncedTokens=R1(o),this.SAVE_ERROR(m)},"generateErrorMessage");for(;!l;)if(this.tokenMatcher(h,i)){d();return}else if(r.call(this)){d(),e.apply(this,t);return}else this.tokenMatcher(h,n)?l=!0:(h=this.SKIP_TOKEN(),this.addToResyncTokens(h,o));this.importLexerState(s)}shouldInRepetitionRecoveryBeTried(e,t,r){return!(r===!1||this.tokenMatcher(this.LA(1),e)||this.isBackTracking()||this.canPerformInRuleRecovery(e,this.getFollowsForInRuleRecovery(e,t)))}getFollowsForInRuleRecovery(e,t){let r=this.getCurrentGrammarPath(e,t);return this.getNextPossibleTokenTypes(r)}tryInRuleRecovery(e,t){if(this.canRecoverWithSingleTokenInsertion(e,t))return this.getTokenToInsert(e);if(this.canRecoverWithSingleTokenDeletion(e)){let r=this.SKIP_TOKEN();return this.consumeToken(),r}throw new bqe("sad sad panda")}canPerformInRuleRecovery(e,t){return this.canRecoverWithSingleTokenInsertion(e,t)||this.canRecoverWithSingleTokenDeletion(e)}canRecoverWithSingleTokenInsertion(e,t){if(!this.canTokenTypeBeInsertedInRecovery(e)||Hr(t))return!1;let r=this.LA(1);return bm(t,n=>this.tokenMatcher(r,n))!==void 0}canRecoverWithSingleTokenDeletion(e){return this.canTokenTypeBeDeletedInRecovery(e)?this.tokenMatcher(this.LA(2),e):!1}isInCurrentRuleReSyncSet(e){let t=this.getCurrFollowKey(),r=this.getFollowSetFromFollowKey(t);return Un(r,e)}findReSyncTokenType(){let e=this.flattenFollowSet(),t=this.LA(1),r=2;for(;;){let i=bm(e,n=>iM(t,n));if(i!==void 0)return i;t=this.LA(r),r++}}getCurrFollowKey(){if(this.RULE_STACK.length===1)return dD;let e=this.getLastExplicitRuleShortName(),t=this.getLastExplicitRuleOccurrenceIndex(),r=this.getPreviousExplicitRuleShortName();return{ruleName:this.shortRuleNameToFullName(e),idxInCallingRule:t,inRule:this.shortRuleNameToFullName(r)}}buildFullFollowKeyStack(){let e=this.RULE_STACK,t=this.RULE_OCCURRENCE_STACK;return It(e,(r,i)=>i===0?dD:{ruleName:this.shortRuleNameToFullName(r),idxInCallingRule:t[i],inRule:this.shortRuleNameToFullName(e[i-1])})}flattenFollowSet(){let e=It(this.buildFullFollowKeyStack(),t=>this.getFollowSetFromFollowKey(t));return Ks(e)}getFollowSetFromFollowKey(e){if(e===dD)return[vu];let t=e.ruleName+e.idxInCallingRule+Qle+e.inRule;return this.resyncFollows[t]}addToResyncTokens(e,t){return this.tokenMatcher(e,vu)||t.push(e),t}reSyncTo(e){let t=[],r=this.LA(1);for(;this.tokenMatcher(r,e)===!1;)r=this.SKIP_TOKEN(),this.addToResyncTokens(r,t);return R1(t)}attemptInRepetitionRecovery(e,t,r,i,n,s,o){}getCurrentGrammarPath(e,t){let r=this.getHumanReadableRuleStack(),i=fn(this.RULE_OCCURRENCE_STACK);return{ruleStack:r,occurrenceStack:i,lastTok:e,lastTokOccurrence:t}}getHumanReadableRuleStack(){return It(this.RULE_STACK,e=>this.shortRuleNameToFullName(e))}};a(fue,"attemptInRepetitionRecovery");y(fue,"attemptInRepetitionRecovery");kqe=4,Ru=8,Cqe=8,pue=1<<Ru,mue=2<<Ru,qI=3<<Ru,jI=4<<Ru,UI=5<<Ru,EC=6<<Ru;a(AC,"getKeyForAutomaticLookahead");y(AC,"getKeyForAutomaticLookahead");ftr=32-Cqe,uM=class{static{a(this,"LLkLookaheadStrategy")}static{y(this,"LLkLookaheadStrategy")}constructor(e){var t;this.maxLookahead=(t=e?.maxLookahead)!==null&&t!==void 0?t:Ul.maxLookahead}validate(e){let t=this.validateNoLeftRecursion(e.rules);if(Hr(t)){let r=this.validateEmptyOrAlternatives(e.rules),i=this.validateAmbiguousAlternationAlternatives(e.rules,this.maxLookahead),n=this.validateSomeNonEmptyLookaheadPath(e.rules,this.maxLookahead);return[...t,...r,...i,...n]}return t}validateNoLeftRecursion(e){return cs(e,t=>lM(t,t,Sd))}validateEmptyOrAlternatives(e){return cs(e,t=>Qce(t,Sd))}validateAmbiguousAlternationAlternatives(e,t){return cs(e,r=>Zce(r,t,Sd))}validateSomeNonEmptyLookaheadPath(e,t){return eue(e,t,Sd)}buildLookaheadForAlternation(e){return $ce(e.prodOccurrence,e.rule,e.maxLookahead,e.hasPredicates,e.dynamicTokensEnabled,Vce)}buildLookaheadForOptional(e){return Fce(e.prodOccurrence,e.rule,e.maxLookahead,e.dynamicTokensEnabled,aS(e.prodType),Gce)}},vqe=class{static{a(this,"LooksAhead")}static{y(this,"LooksAhead")}initLooksAhead(e){this.dynamicTokensEnabled=Wt(e,"dynamicTokensEnabled")?e.dynamicTokensEnabled:Ul.dynamicTokensEnabled,this.maxLookahead=Wt(e,"maxLookahead")?e.maxLookahead:Ul.maxLookahead,this.lookaheadStrategy=Wt(e,"lookaheadStrategy")?e.lookaheadStrategy:new uM({maxLookahead:this.maxLookahead}),this.lookAheadFuncsCache=new Map}preComputeLookaheadFunctions(e){jt(e,t=>{this.TRACE_INIT(`${t.name} Rule Lookahead`,()=>{let{alternation:r,repetition:i,option:n,repetitionMandatory:s,repetitionMandatoryWithSeparator:o,repetitionWithSeparator:l}=gue(t);jt(r,u=>{let h=u.idx===0?"":u.idx;this.TRACE_INIT(`${js(u)}${h}`,()=>{let d=this.lookaheadStrategy.buildLookaheadForAlternation({prodOccurrence:u.idx,rule:t,maxLookahead:u.maxLookahead||this.maxLookahead,hasPredicates:u.hasPredicates,dynamicTokensEnabled:this.dynamicTokensEnabled}),f=AC(this.fullRuleNameToShort[t.name],pue,u.idx);this.setLaFuncCache(f,d)})}),jt(i,u=>{this.computeLookaheadFunc(t,u.idx,qI,"Repetition",u.maxLookahead,js(u))}),jt(n,u=>{this.computeLookaheadFunc(t,u.idx,mue,"Option",u.maxLookahead,js(u))}),jt(s,u=>{this.computeLookaheadFunc(t,u.idx,jI,"RepetitionMandatory",u.maxLookahead,js(u))}),jt(o,u=>{this.computeLookaheadFunc(t,u.idx,EC,"RepetitionMandatoryWithSeparator",u.maxLookahead,js(u))}),jt(l,u=>{this.computeLookaheadFunc(t,u.idx,UI,"RepetitionWithSeparator",u.maxLookahead,js(u))})})})}computeLookaheadFunc(e,t,r,i,n,s){this.TRACE_INIT(`${s}${t===0?"":t}`,()=>{let o=this.lookaheadStrategy.buildLookaheadForOptional({prodOccurrence:t,rule:e,maxLookahead:n||this.maxLookahead,dynamicTokensEnabled:this.dynamicTokensEnabled,prodType:i}),l=AC(this.fullRuleNameToShort[e.name],r,t);this.setLaFuncCache(l,o)})}getKeyForAutomaticLookahead(e,t){let r=this.getLastExplicitRuleShortName();return AC(r,e,t)}getLaFuncFromCache(e){return this.lookAheadFuncsCache.get(e)}setLaFuncCache(e,t){this.lookAheadFuncsCache.set(e,t)}},Sqe=class extends wm{static{a(this,"DslMethodsCollectorVisitor")}static{y(this,"DslMethodsCollectorVisitor")}constructor(){super(...arguments),this.dslMethods={option:[],alternation:[],repetition:[],repetitionWithSeparator:[],repetitionMandatory:[],repetitionMandatoryWithSeparator:[]}}reset(){this.dslMethods={option:[],alternation:[],repetition:[],repetitionWithSeparator:[],repetitionMandatory:[],repetitionMandatoryWithSeparator:[]}}visitOption(e){this.dslMethods.option.push(e)}visitRepetitionWithSeparator(e){this.dslMethods.repetitionWithSeparator.push(e)}visitRepetitionMandatory(e){this.dslMethods.repetitionMandatory.push(e)}visitRepetitionMandatoryWithSeparator(e){this.dslMethods.repetitionMandatoryWithSeparator.push(e)}visitRepetition(e){this.dslMethods.repetition.push(e)}visitAlternation(e){this.dslMethods.alternation.push(e)}},Zk=new Sqe;a(gue,"collectMethods");y(gue,"collectMethods");a(HI,"setNodeLocationOnlyOffset");y(HI,"setNodeLocationOnlyOffset");a(YI,"setNodeLocationFull");y(YI,"setNodeLocationFull");a(yue,"addTerminalToCst");y(yue,"addTerminalToCst");a(xue,"addNoneTerminalToCst");y(xue,"addNoneTerminalToCst");_qe="name";a(hM,"defineNameProp");y(hM,"defineNameProp");a(bue,"defaultVisit");y(bue,"defaultVisit");a(Tue,"createBaseSemanticVisitorConstructor");y(Tue,"createBaseSemanticVisitorConstructor");a(kue,"createBaseVisitorConstructorWithDefaults");y(kue,"createBaseVisitorConstructorWithDefaults");(function(e){e[e.REDUNDANT_METHOD=0]="REDUNDANT_METHOD",e[e.MISSING_METHOD=1]="MISSING_METHOD"})(KI||(KI={}));a(Cue,"validateVisitor");y(Cue,"validateVisitor");a(vue,"validateMissingCstMethods");y(vue,"validateMissingCstMethods");wqe=class{static{a(this,"TreeBuilder")}static{y(this,"TreeBuilder")}initTreeBuilder(e){if(this.CST_STACK=[],this.outputCst=e.outputCst,this.nodeLocationTracking=Wt(e,"nodeLocationTracking")?e.nodeLocationTracking:Ul.nodeLocationTracking,!this.outputCst)this.cstInvocationStateUpdate=Vi,this.cstFinallyStateUpdate=Vi,this.cstPostTerminal=Vi,this.cstPostNonTerminal=Vi,this.cstPostRule=Vi;else if(/full/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=YI,this.setNodeLocationFromNode=YI,this.cstPostRule=Vi,this.setInitialNodeLocation=this.setInitialNodeLocationFullRecovery):(this.setNodeLocationFromToken=Vi,this.setNodeLocationFromNode=Vi,this.cstPostRule=this.cstPostRuleFull,this.setInitialNodeLocation=this.setInitialNodeLocationFullRegular);else if(/onlyOffset/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=HI,this.setNodeLocationFromNode=HI,this.cstPostRule=Vi,this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRecovery):(this.setNodeLocationFromToken=Vi,this.setNodeLocationFromNode=Vi,this.cstPostRule=this.cstPostRuleOnlyOffset,this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRegular);else if(/none/i.test(this.nodeLocationTracking))this.setNodeLocationFromToken=Vi,this.setNodeLocationFromNode=Vi,this.cstPostRule=Vi,this.setInitialNodeLocation=Vi;else throw Error(`Invalid <nodeLocationTracking> config option: "${e.nodeLocationTracking}"`)}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){let t=this.LA(1);e.location={startOffset:t.startOffset,startLine:t.startLine,startColumn:t.startColumn,endOffset:NaN,endLine:NaN,endColumn:NaN}}cstInvocationStateUpdate(e){let t={name:e,children:Object.create(null)};this.setInitialNodeLocation(t),this.CST_STACK.push(t)}cstFinallyStateUpdate(){this.CST_STACK.pop()}cstPostRuleFull(e){let t=this.LA(0),r=e.location;r.startOffset<=t.startOffset?(r.endOffset=t.endOffset,r.endLine=t.endLine,r.endColumn=t.endColumn):(r.startOffset=NaN,r.startLine=NaN,r.startColumn=NaN)}cstPostRuleOnlyOffset(e){let t=this.LA(0),r=e.location;r.startOffset<=t.startOffset?r.endOffset=t.endOffset:r.startOffset=NaN}cstPostTerminal(e,t){let r=this.CST_STACK[this.CST_STACK.length-1];yue(r,t,e),this.setNodeLocationFromToken(r.location,t)}cstPostNonTerminal(e,t){let r=this.CST_STACK[this.CST_STACK.length-1];xue(r,t,e),this.setNodeLocationFromNode(r.location,e.location)}getBaseCstVisitorConstructor(){if(ql(this.baseCstVisitorConstructor)){let e=Tue(this.className,Da(this.gastProductionsCache));return this.baseCstVisitorConstructor=e,e}return this.baseCstVisitorConstructor}getBaseCstVisitorConstructorWithDefaults(){if(ql(this.baseCstVisitorWithDefaultsConstructor)){let e=kue(this.className,Da(this.gastProductionsCache),this.getBaseCstVisitorConstructor());return this.baseCstVisitorWithDefaultsConstructor=e,e}return this.baseCstVisitorWithDefaultsConstructor}getLastExplicitRuleShortName(){let e=this.RULE_STACK;return e[e.length-1]}getPreviousExplicitRuleShortName(){let e=this.RULE_STACK;return e[e.length-2]}getLastExplicitRuleOccurrenceIndex(){let e=this.RULE_OCCURRENCE_STACK;return e[e.length-1]}},Eqe=class{static{a(this,"LexerAdapter")}static{y(this,"LexerAdapter")}initLexerAdapter(){this.tokVector=[],this.tokVectorLength=0,this.currIdx=-1}set input(e){if(this.selfAnalysisDone!==!0)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)):uv}LA(e){let t=this.currIdx+e;return t<0||this.tokVectorLength<=t?uv:this.tokVector[t]}consumeToken(){this.currIdx++}exportLexerState(){return this.currIdx}importLexerState(e){this.currIdx=e}resetLexerState(){this.currIdx=-1}moveToTerminatedState(){this.currIdx=this.tokVector.length-1}getLexerPosition(){return this.exportLexerState()}},Aqe=class{static{a(this,"RecognizerApi")}static{y(this,"RecognizerApi")}ACTION(e){return e.call(this)}consume(e,t,r){return this.consumeInternal(t,e,r)}subrule(e,t,r){return this.subruleInternal(t,e,r)}option(e,t){return this.optionInternal(t,e)}or(e,t){return this.orInternal(t,e)}many(e,t){return this.manyInternal(e,t)}atLeastOne(e,t){return this.atLeastOneInternal(e,t)}CONSUME(e,t){return this.consumeInternal(e,0,t)}CONSUME1(e,t){return this.consumeInternal(e,1,t)}CONSUME2(e,t){return this.consumeInternal(e,2,t)}CONSUME3(e,t){return this.consumeInternal(e,3,t)}CONSUME4(e,t){return this.consumeInternal(e,4,t)}CONSUME5(e,t){return this.consumeInternal(e,5,t)}CONSUME6(e,t){return this.consumeInternal(e,6,t)}CONSUME7(e,t){return this.consumeInternal(e,7,t)}CONSUME8(e,t){return this.consumeInternal(e,8,t)}CONSUME9(e,t){return this.consumeInternal(e,9,t)}SUBRULE(e,t){return this.subruleInternal(e,0,t)}SUBRULE1(e,t){return this.subruleInternal(e,1,t)}SUBRULE2(e,t){return this.subruleInternal(e,2,t)}SUBRULE3(e,t){return this.subruleInternal(e,3,t)}SUBRULE4(e,t){return this.subruleInternal(e,4,t)}SUBRULE5(e,t){return this.subruleInternal(e,5,t)}SUBRULE6(e,t){return this.subruleInternal(e,6,t)}SUBRULE7(e,t){return this.subruleInternal(e,7,t)}SUBRULE8(e,t){return this.subruleInternal(e,8,t)}SUBRULE9(e,t){return this.subruleInternal(e,9,t)}OPTION(e){return this.optionInternal(e,0)}OPTION1(e){return this.optionInternal(e,1)}OPTION2(e){return this.optionInternal(e,2)}OPTION3(e){return this.optionInternal(e,3)}OPTION4(e){return this.optionInternal(e,4)}OPTION5(e){return this.optionInternal(e,5)}OPTION6(e){return this.optionInternal(e,6)}OPTION7(e){return this.optionInternal(e,7)}OPTION8(e){return this.optionInternal(e,8)}OPTION9(e){return this.optionInternal(e,9)}OR(e){return this.orInternal(e,0)}OR1(e){return this.orInternal(e,1)}OR2(e){return this.orInternal(e,2)}OR3(e){return this.orInternal(e,3)}OR4(e){return this.orInternal(e,4)}OR5(e){return this.orInternal(e,5)}OR6(e){return this.orInternal(e,6)}OR7(e){return this.orInternal(e,7)}OR8(e){return this.orInternal(e,8)}OR9(e){return this.orInternal(e,9)}MANY(e){this.manyInternal(0,e)}MANY1(e){this.manyInternal(1,e)}MANY2(e){this.manyInternal(2,e)}MANY3(e){this.manyInternal(3,e)}MANY4(e){this.manyInternal(4,e)}MANY5(e){this.manyInternal(5,e)}MANY6(e){this.manyInternal(6,e)}MANY7(e){this.manyInternal(7,e)}MANY8(e){this.manyInternal(8,e)}MANY9(e){this.manyInternal(9,e)}MANY_SEP(e){this.manySepFirstInternal(0,e)}MANY_SEP1(e){this.manySepFirstInternal(1,e)}MANY_SEP2(e){this.manySepFirstInternal(2,e)}MANY_SEP3(e){this.manySepFirstInternal(3,e)}MANY_SEP4(e){this.manySepFirstInternal(4,e)}MANY_SEP5(e){this.manySepFirstInternal(5,e)}MANY_SEP6(e){this.manySepFirstInternal(6,e)}MANY_SEP7(e){this.manySepFirstInternal(7,e)}MANY_SEP8(e){this.manySepFirstInternal(8,e)}MANY_SEP9(e){this.manySepFirstInternal(9,e)}AT_LEAST_ONE(e){this.atLeastOneInternal(0,e)}AT_LEAST_ONE1(e){return this.atLeastOneInternal(1,e)}AT_LEAST_ONE2(e){this.atLeastOneInternal(2,e)}AT_LEAST_ONE3(e){this.atLeastOneInternal(3,e)}AT_LEAST_ONE4(e){this.atLeastOneInternal(4,e)}AT_LEAST_ONE5(e){this.atLeastOneInternal(5,e)}AT_LEAST_ONE6(e){this.atLeastOneInternal(6,e)}AT_LEAST_ONE7(e){this.atLeastOneInternal(7,e)}AT_LEAST_ONE8(e){this.atLeastOneInternal(8,e)}AT_LEAST_ONE9(e){this.atLeastOneInternal(9,e)}AT_LEAST_ONE_SEP(e){this.atLeastOneSepFirstInternal(0,e)}AT_LEAST_ONE_SEP1(e){this.atLeastOneSepFirstInternal(1,e)}AT_LEAST_ONE_SEP2(e){this.atLeastOneSepFirstInternal(2,e)}AT_LEAST_ONE_SEP3(e){this.atLeastOneSepFirstInternal(3,e)}AT_LEAST_ONE_SEP4(e){this.atLeastOneSepFirstInternal(4,e)}AT_LEAST_ONE_SEP5(e){this.atLeastOneSepFirstInternal(5,e)}AT_LEAST_ONE_SEP6(e){this.atLeastOneSepFirstInternal(6,e)}AT_LEAST_ONE_SEP7(e){this.atLeastOneSepFirstInternal(7,e)}AT_LEAST_ONE_SEP8(e){this.atLeastOneSepFirstInternal(8,e)}AT_LEAST_ONE_SEP9(e){this.atLeastOneSepFirstInternal(9,e)}RULE(e,t,r=hv){if(Un(this.definedRulesNames,e)){let s={message:Sd.buildDuplicateRuleNameError({topLevelRule:e,grammarName:this.className}),type:qn.DUPLICATE_RULE_NAME,ruleName:e};this.definitionErrors.push(s)}this.definedRulesNames.push(e);let i=this.defineRule(e,t,r);return this[e]=i,i}OVERRIDE_RULE(e,t,r=hv){let i=Xce(e,this.definedRulesNames,this.className);this.definitionErrors=this.definitionErrors.concat(i);let n=this.defineRule(e,t,r);return this[e]=n,n}BACKTRACK(e,t){return function(){this.isBackTrackingStack.push(1);let r=this.saveRecogState();try{return e.apply(this,t),!0}catch(i){if(I1(i))return!1;throw i}finally{this.reloadRecogState(r),this.isBackTrackingStack.pop()}}}getGAstProductions(){return this.gastProductionsCache}getSerializedGastProductions(){return jle(Gi(this.gastProductionsCache))}},Rqe=class{static{a(this,"RecognizerEngine")}static{y(this,"RecognizerEngine")}initRecognizerEngine(e,t){if(this.className=this.constructor.name,this.shortRuleNameToFull={},this.fullRuleNameToShort={},this.ruleShortNameIdx=256,this.tokenMatcher=D1,this.subruleIdx=0,this.definedRulesNames=[],this.tokensMap={},this.isBackTrackingStack=[],this.RULE_STACK=[],this.RULE_OCCURRENCE_STACK=[],this.gastProductionsCache={},Wt(t,"serializedGrammar"))throw Error(`The Parser's configuration can no longer contain a <serializedGrammar> property.
See: https://chevrotain.io/docs/changes/BREAKING_CHANGES.html#_6-0-0
For Further details.`);if(kr(e)){if(Hr(e))throw Error(`A Token Vocabulary cannot be empty.
Note that the first argument for the parser constructor
is no longer a Token vector (since v4.0).`);if(typeof e[0].startOffset=="number")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
For Further details.`)}if(kr(e))this.tokensMap=Na(e,(n,s)=>(n[s.name]=s,n),{});else if(Wt(e,"modes")&&Xs(Ks(Gi(e.modes)),Mce)){let n=Ks(Gi(e.modes)),s=HN(n);this.tokensMap=Na(s,(o,l)=>(o[l.name]=l,o),{})}else if(hs(e))this.tokensMap=fn(e);else throw new Error("<tokensDictionary> argument must be An Array of Token constructors, A dictionary of Token constructors or an IMultiModeLexerDefinition");this.tokensMap.EOF=vu;let r=Wt(e,"modes")?Ks(Gi(e.modes)):Gi(e),i=Xs(r,n=>Hr(n.categoryMatches));this.tokenMatcher=i?D1:Am,Rm(Gi(this.tokensMap))}defineRule(e,t,r){if(this.selfAnalysisDone)throw Error(`Grammar rule <${e}> 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=Wt(r,"resyncEnabled")?r.resyncEnabled:hv.resyncEnabled,n=Wt(r,"recoveryValueFunc")?r.recoveryValueFunc:hv.recoveryValueFunc,s=this.ruleShortNameIdx<<kqe+Ru;this.ruleShortNameIdx++,this.shortRuleNameToFull[s]=e,this.fullRuleNameToShort[e]=s;let o;return this.outputCst===!0?o=y(a(function(...h){try{this.ruleInvocationStateUpdate(s,e,this.subruleIdx),t.apply(this,h);let d=this.CST_STACK[this.CST_STACK.length-1];return this.cstPostRule(d),d}catch(d){return this.invokeRuleCatch(d,i,n)}finally{this.ruleFinallyStateUpdate()}},"invokeRuleWithTry2"),"invokeRuleWithTry"):o=y(a(function(...h){try{return this.ruleInvocationStateUpdate(s,e,this.subruleIdx),t.apply(this,h)}catch(d){return this.invokeRuleCatch(d,i,n)}finally{this.ruleFinallyStateUpdate()}},"invokeRuleWithTryCst"),"invokeRuleWithTryCst"),Object.assign(o,{ruleName:e,originalGrammarAction:t})}invokeRuleCatch(e,t,r){let i=this.RULE_STACK.length===1,n=t&&!this.isBackTracking()&&this.recoveryEnabled;if(I1(e)){let s=e;if(n){let o=this.findReSyncTokenType();if(this.isInCurrentRuleReSyncSet(o))if(s.resyncedTokens=this.reSyncTo(o),this.outputCst){let l=this.CST_STACK[this.CST_STACK.length-1];return l.recoveredNode=!0,l}else return r(e);else{if(this.outputCst){let l=this.CST_STACK[this.CST_STACK.length-1];l.recoveredNode=!0,s.partialCstResult=l}throw s}}else{if(i)return this.moveToTerminatedState(),r(e);throw s}}else throw e}optionInternal(e,t){let r=this.getKeyForAutomaticLookahead(mue,t);return this.optionInternalLogic(e,t,r)}optionInternalLogic(e,t,r){let i=this.getLaFuncFromCache(r),n;if(typeof e!="function"){n=e.DEF;let s=e.GATE;if(s!==void 0){let o=i;i=y(()=>s.call(this)&&o.call(this),"lookAheadFunc")}}else n=e;if(i.call(this)===!0)return n.call(this)}atLeastOneInternal(e,t){let r=this.getKeyForAutomaticLookahead(jI,e);return this.atLeastOneInternalLogic(e,t,r)}atLeastOneInternalLogic(e,t,r){let i=this.getLaFuncFromCache(r),n;if(typeof t!="function"){n=t.DEF;let s=t.GATE;if(s!==void 0){let o=i;i=y(()=>s.call(this)&&o.call(this),"lookAheadFunc")}}else n=t;if(i.call(this)===!0){let s=this.doSingleRepetition(n);for(;i.call(this)===!0&&s===!0;)s=this.doSingleRepetition(n)}else throw this.raiseEarlyExitException(e,oi.REPETITION_MANDATORY,t.ERR_MSG);this.attemptInRepetitionRecovery(this.atLeastOneInternal,[e,t],i,jI,e,dqe)}atLeastOneSepFirstInternal(e,t){let r=this.getKeyForAutomaticLookahead(EC,e);this.atLeastOneSepFirstInternalLogic(e,t,r)}atLeastOneSepFirstInternalLogic(e,t,r){let i=t.DEF,n=t.SEP;if(this.getLaFuncFromCache(r).call(this)===!0){i.call(this);let o=y(()=>this.tokenMatcher(this.LA(1),n),"separatorLookAheadFunc");for(;this.tokenMatcher(this.LA(1),n)===!0;)this.CONSUME(n),i.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[e,n,o,i,rie],o,EC,e,rie)}else throw this.raiseEarlyExitException(e,oi.REPETITION_MANDATORY_WITH_SEPARATOR,t.ERR_MSG)}manyInternal(e,t){let r=this.getKeyForAutomaticLookahead(qI,e);return this.manyInternalLogic(e,t,r)}manyInternalLogic(e,t,r){let i=this.getLaFuncFromCache(r),n;if(typeof t!="function"){n=t.DEF;let o=t.GATE;if(o!==void 0){let l=i;i=y(()=>o.call(this)&&l.call(this),"lookaheadFunction")}}else n=t;let s=!0;for(;i.call(this)===!0&&s===!0;)s=this.doSingleRepetition(n);this.attemptInRepetitionRecovery(this.manyInternal,[e,t],i,qI,e,hqe,s)}manySepFirstInternal(e,t){let r=this.getKeyForAutomaticLookahead(UI,e);this.manySepFirstInternalLogic(e,t,r)}manySepFirstInternalLogic(e,t,r){let i=t.DEF,n=t.SEP;if(this.getLaFuncFromCache(r).call(this)===!0){i.call(this);let o=y(()=>this.tokenMatcher(this.LA(1),n),"separatorLookAheadFunc");for(;this.tokenMatcher(this.LA(1),n)===!0;)this.CONSUME(n),i.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[e,n,o,i,tie],o,UI,e,tie)}}repetitionSepSecondInternal(e,t,r,i,n){for(;r();)this.CONSUME(t),i.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[e,t,r,i,n],r,EC,e,n)}doSingleRepetition(e){let t=this.getLexerPosition();return e.call(this),this.getLexerPosition()>t}orInternal(e,t){let r=this.getKeyForAutomaticLookahead(pue,t),i=kr(e)?e:e.DEF,s=this.getLaFuncFromCache(r).call(this,i);if(s!==void 0)return i[s].ALT.call(this);this.raiseNoAltException(t,e.ERR_MSG)}ruleFinallyStateUpdate(){if(this.RULE_STACK.pop(),this.RULE_OCCURRENCE_STACK.pop(),this.cstFinallyStateUpdate(),this.RULE_STACK.length===0&&this.isAtEndOfInput()===!1){let e=this.LA(1),t=this.errorMessageProvider.buildNotAllInputParsedMessage({firstRedundant:e,ruleName:this.getCurrRuleFullName()});this.SAVE_ERROR(new yqe(t,e))}}subruleInternal(e,t,r){let i;try{let n=r!==void 0?r.ARGS:void 0;return this.subruleIdx=t,i=e.apply(this,n),this.cstPostNonTerminal(i,r!==void 0&&r.LABEL!==void 0?r.LABEL:e.ruleName),i}catch(n){throw this.subruleInternalError(n,r,e.ruleName)}}subruleInternalError(e,t,r){throw I1(e)&&e.partialCstResult!==void 0&&(this.cstPostNonTerminal(e.partialCstResult,t!==void 0&&t.LABEL!==void 0?t.LABEL:r),delete e.partialCstResult),e}consumeInternal(e,t,r){let i;try{let n=this.LA(1);this.tokenMatcher(n,e)===!0?(this.consumeToken(),i=n):this.consumeInternalError(e,n,r)}catch(n){i=this.consumeInternalRecovery(e,t,n)}return this.cstPostTerminal(r!==void 0&&r.LABEL!==void 0?r.LABEL:e.name,i),i}consumeInternalError(e,t,r){let i,n=this.LA(0);throw r!==void 0&&r.ERR_MSG?i=r.ERR_MSG:i=this.errorMessageProvider.buildMismatchTokenMessage({expected:e,actual:t,previous:n,ruleName:this.getCurrRuleFullName()}),this.SAVE_ERROR(new hue(i,t,n))}consumeInternalRecovery(e,t,r){if(this.recoveryEnabled&&r.name==="MismatchedTokenException"&&!this.isBackTracking()){let i=this.getFollowsForInRuleRecovery(e,t);try{return this.tryInRuleRecovery(e,i)}catch(n){throw n.name===due?r:n}}else throw r}saveRecogState(){let e=this.errors,t=fn(this.RULE_STACK);return{errors:e,lexerState:this.exportLexerState(),RULE_STACK:t,CST_STACK:this.CST_STACK}}reloadRecogState(e){this.errors=e.errors,this.importLexerState(e.lexerState),this.RULE_STACK=e.RULE_STACK}ruleInvocationStateUpdate(e,t,r){this.RULE_OCCURRENCE_STACK.push(r),this.RULE_STACK.push(e),this.cstInvocationStateUpdate(t)}isBackTracking(){return this.isBackTrackingStack.length!==0}getCurrRuleFullName(){let e=this.getLastExplicitRuleShortName();return this.shortRuleNameToFull[e]}shortRuleNameToFullName(e){return this.shortRuleNameToFull[e]}isAtEndOfInput(){return this.tokenMatcher(this.LA(1),vu)}reset(){this.resetLexerState(),this.subruleIdx=0,this.isBackTrackingStack=[],this.errors=[],this.RULE_STACK=[],this.CST_STACK=[],this.RULE_OCCURRENCE_STACK=[]}},Lqe=class{static{a(this,"ErrorHandler")}static{y(this,"ErrorHandler")}initErrorHandler(e){this._errors=[],this.errorMessageProvider=Wt(e,"errorMessageProvider")?e.errorMessageProvider:Ul.errorMessageProvider}SAVE_ERROR(e){if(I1(e))return e.context={ruleStack:this.getHumanReadableRuleStack(),ruleOccurrenceStack:fn(this.RULE_OCCURRENCE_STACK)},this._errors.push(e),e;throw Error("Trying to save an Error which is not a RecognitionException")}get errors(){return fn(this._errors)}set errors(e){this._errors=e}raiseEarlyExitException(e,t,r){let i=this.getCurrRuleFullName(),n=this.getGAstProductions()[i],o=nx(e,n,t,this.maxLookahead)[0],l=[];for(let h=1;h<=this.maxLookahead;h++)l.push(this.LA(h));let u=this.errorMessageProvider.buildEarlyExitMessage({expectedIterationPaths:o,actual:l,previous:this.LA(0),customUserDescription:r,ruleName:i});throw this.SAVE_ERROR(new xqe(u,this.LA(1),this.LA(0)))}raiseNoAltException(e,t){let r=this.getCurrRuleFullName(),i=this.getGAstProductions()[r],n=ix(e,i,this.maxLookahead),s=[];for(let u=1;u<=this.maxLookahead;u++)s.push(this.LA(u));let o=this.LA(0),l=this.errorMessageProvider.buildNoViableAltMessage({expectedPathsPerAlt:n,actual:s,previous:o,customUserDescription:t,ruleName:this.getCurrRuleFullName()});throw this.SAVE_ERROR(new gqe(l,this.LA(1),o))}},Dqe=class{static{a(this,"ContentAssist")}static{y(this,"ContentAssist")}initContentAssist(){}computeContentAssist(e,t){let r=this.gastProductionsCache[e];if(ql(r))throw Error(`Rule ->${e}<- does not exist in this grammar.`);return nM([r],t,this.tokenMatcher,this.maxLookahead)}getNextPossibleTokenTypes(e){let t=Zs(e.ruleStack),i=this.getGAstProductions()[t];return new uqe(i,e).startWalking()}},oS={description:"This Object indicates the Parser is during Recording Phase"};Object.freeze(oS);iie=!0,nie=Math.pow(2,Ru)-1,Sue=lm({name:"RECORDING_PHASE_TOKEN",pattern:Gn.NA});Rm([Sue]);_ue=rx(Sue,`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(_ue);Iqe={name:`This CSTNode indicates the Parser is in Recording Phase
See: https://chevrotain.io/docs/guide/internals.html#grammar-recording for details`,children:{}},Nqe=class{static{a(this,"GastRecorder")}static{y(this,"GastRecorder")}initGastRecorder(e){this.recordingProdStack=[],this.RECORDING_PHASE=!1}enableRecording(){this.RECORDING_PHASE=!0,this.TRACE_INIT("Enable Recording",()=>{for(let e=0;e<10;e++){let t=e>0?e:"";this[`CONSUME${t}`]=function(r,i){return this.consumeInternalRecord(r,e,i)},this[`SUBRULE${t}`]=function(r,i){return this.subruleInternalRecord(r,e,i)},this[`OPTION${t}`]=function(r){return this.optionInternalRecord(r,e)},this[`OR${t}`]=function(r){return this.orInternalRecord(r,e)},this[`MANY${t}`]=function(r){this.manyInternalRecord(e,r)},this[`MANY_SEP${t}`]=function(r){this.manySepFirstInternalRecord(e,r)},this[`AT_LEAST_ONE${t}`]=function(r){this.atLeastOneInternalRecord(e,r)},this[`AT_LEAST_ONE_SEP${t}`]=function(r){this.atLeastOneSepFirstInternalRecord(e,r)}}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",()=>{let e=this;for(let t=0;t<10;t++){let r=t>0?t:"";delete e[`CONSUME${r}`],delete e[`SUBRULE${r}`],delete e[`OPTION${r}`],delete e[`OR${r}`],delete e[`MANY${r}`],delete e[`MANY_SEP${r}`],delete e[`AT_LEAST_ONE${r}`],delete e[`AT_LEAST_ONE_SEP${r}`]}delete e.consume,delete e.subrule,delete e.option,delete e.or,delete e.many,delete e.atLeastOne,delete e.ACTION,delete e.BACKTRACK,delete e.LA})}ACTION_RECORD(e){}BACKTRACK_RECORD(e,t){return()=>!0}LA_RECORD(e){return uv}topLevelRuleRecord(e,t){try{let r=new _m({definition:[],name:e});return r.name=e,this.recordingProdStack.push(r),t.call(this),this.recordingProdStack.pop(),r}catch(r){if(r.KNOWN_RECORDER_ERROR!==!0)try{r.message=r.message+`
This error was thrown during the "grammar recording phase" For more info see:
https://chevrotain.io/docs/guide/internals.html#grammar-recording`}catch{throw r}throw r}}optionInternalRecord(e,t){return Kp.call(this,dn,e,t)}atLeastOneInternalRecord(e,t){Kp.call(this,Ma,t,e)}atLeastOneSepFirstInternalRecord(e,t){Kp.call(this,Oa,t,e,iie)}manyInternalRecord(e,t){Kp.call(this,gi,t,e)}manySepFirstInternalRecord(e,t){Kp.call(this,da,t,e,iie)}orInternalRecord(e,t){return wue.call(this,e,t)}subruleInternalRecord(e,t,r){if(N1(t),!e||Wt(e,"ruleName")===!1){let o=new Error(`<SUBRULE${XI(t)}> argument is invalid expecting a Parser method reference but got: <${JSON.stringify(e)}>
inside top level rule: <${this.recordingProdStack[0].name}>`);throw o.KNOWN_RECORDER_ERROR=!0,o}let i=Ld(this.recordingProdStack),n=e.ruleName,s=new zn({idx:t,nonTerminalName:n,label:r?.LABEL,referencedRule:void 0});return i.definition.push(s),this.outputCst?Iqe:oS}consumeInternalRecord(e,t,r){if(N1(t),!tM(e)){let s=new Error(`<CONSUME${XI(t)}> argument is invalid expecting a TokenType reference but got: <${JSON.stringify(e)}>
inside top level rule: <${this.recordingProdStack[0].name}>`);throw s.KNOWN_RECORDER_ERROR=!0,s}let i=Ld(this.recordingProdStack),n=new ti({idx:t,terminalType:e,label:r?.LABEL});return i.definition.push(n),_ue}};a(Kp,"recordProd");y(Kp,"recordProd");a(wue,"recordOrProd");y(wue,"recordOrProd");a(XI,"getIdxSuffix");y(XI,"getIdxSuffix");a(N1,"assertMethodIdxIsValid");y(N1,"assertMethodIdxIsValid");Mqe=class{static{a(this,"PerformanceTracer")}static{y(this,"PerformanceTracer")}initPerformanceTracer(e){if(Wt(e,"traceInitPerf")){let t=e.traceInitPerf,r=typeof t=="number";this.traceInitMaxIdent=r?t:1/0,this.traceInitPerf=r?t>0:t}else this.traceInitMaxIdent=0,this.traceInitPerf=Ul.traceInitPerf;this.traceInitIndent=-1}TRACE_INIT(e,t){if(this.traceInitPerf===!0){this.traceInitIndent++;let r=new Array(this.traceInitIndent+1).join(" ");this.traceInitIndent<this.traceInitMaxIdent&&console.log(`${r}--> <${e}>`);let{time:i,value:n}=KN(t),s=i>10?console.warn:console.log;return this.traceInitIndent<this.traceInitMaxIdent&&s(`${r}<-- <${e}> time: ${i}ms`),this.traceInitIndent--,n}else return t()}};a(Eue,"applyMixins");y(Eue,"applyMixins");uv=rx(vu,"",NaN,NaN,NaN,NaN,NaN,NaN);Object.freeze(uv);Ul=Object.freeze({recoveryEnabled:!1,maxLookahead:3,dynamicTokensEnabled:!1,outputCst:!0,errorMessageProvider:nm,nodeLocationTracking:"none",traceInitPerf:!1,skipValidations:!1}),hv=Object.freeze({recoveryValueFunc:y(()=>{},"recoveryValueFunc"),resyncEnabled:!0});(function(e){e[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"})(qn||(qn={}));a(QI,"EMPTY_ALT");y(QI,"EMPTY_ALT");dM=class Aue{static{a(this,"_Parser")}static{y(this,"Parser")}static performSelfAnalysis(t){throw Error("The **static** `performSelfAnalysis` method has been deprecated. \nUse the **instance** method with the same name instead.")}performSelfAnalysis(){this.TRACE_INIT("performSelfAnalysis",()=>{let t;this.selfAnalysisDone=!0;let r=this.className;this.TRACE_INIT("toFastProps",()=>{XN(this)}),this.TRACE_INIT("Grammar Recording",()=>{try{this.enableRecording(),jt(this.definedRulesNames,n=>{let o=this[n].originalGrammarAction,l;this.TRACE_INIT(`${n} Rule`,()=>{l=this.topLevelRuleRecord(n,o)}),this.gastProductionsCache[n]=l})}finally{this.disableRecording()}});let i=[];if(this.TRACE_INIT("Grammar Resolving",()=>{i=nue({rules:Gi(this.gastProductionsCache)}),this.definitionErrors=this.definitionErrors.concat(i)}),this.TRACE_INIT("Grammar Validations",()=>{if(Hr(i)&&this.skipValidations===!1){let n=aue({rules:Gi(this.gastProductionsCache),tokenTypes:Gi(this.tokensMap),errMsgProvider:Sd,grammarName:r}),s=jce({lookaheadStrategy:this.lookaheadStrategy,rules:Gi(this.gastProductionsCache),tokenTypes:Gi(this.tokensMap),grammarName:r});this.definitionErrors=this.definitionErrors.concat(n,s)}}),Hr(this.definitionErrors)&&(this.recoveryEnabled&&this.TRACE_INIT("computeAllProdsFollows",()=>{let n=Zle(Gi(this.gastProductionsCache));this.resyncFollows=n}),this.TRACE_INIT("ComputeLookaheadFunctions",()=>{var n,s;(s=(n=this.lookaheadStrategy).initialize)===null||s===void 0||s.call(n,{rules:Gi(this.gastProductionsCache)}),this.preComputeLookaheadFunctions(Gi(this.gastProductionsCache))})),!Aue.DEFER_DEFINITION_ERRORS_HANDLING&&!Hr(this.definitionErrors))throw t=It(this.definitionErrors,n=>n.message),new Error(`Parser Definition Errors detected:
${t.join(`
-------------------------------
`)}`)})}constructor(t,r){this.definitionErrors=[],this.selfAnalysisDone=!1;let i=this;if(i.initErrorHandler(r),i.initLexerAdapter(),i.initLooksAhead(r),i.initRecognizerEngine(t,r),i.initRecoverable(r),i.initTreeBuilder(r),i.initContentAssist(),i.initGastRecorder(r),i.initPerformanceTracer(r),Wt(r,"ignoredIssues"))throw new Error(`The <ignoredIssues> IParserConfig property has been deprecated.
Please use the <IGNORE_AMBIGUITIES> flag on the relevant DSL method instead.
See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#IGNORING_AMBIGUITIES
For further details.`);this.skipValidations=Wt(r,"skipValidations")?r.skipValidations:Ul.skipValidations}};dM.DEFER_DEFINITION_ERRORS_HANDLING=!1;Eue(dM,[Tqe,vqe,wqe,Eqe,Rqe,Aqe,Lqe,Dqe,Nqe,Mqe]);Oqe=class extends dM{static{a(this,"EmbeddedActionsParser")}static{y(this,"EmbeddedActionsParser")}constructor(e,t=Ul){let r=fn(t);r.outputCst=!1,super(e,r)}};a(Rue,"arrayMap2");y(Rue,"arrayMap");Lue=Rue;a(Due,"listCacheClear2");y(Due,"listCacheClear");Pqe=Due;a(Iue,"eq2");y(Iue,"eq");Nue=Iue;a(Mue,"assocIndexOf2");y(Mue,"assocIndexOf");lS=Mue,Bqe=Array.prototype,$qe=Bqe.splice;a(Oue,"listCacheDelete2");y(Oue,"listCacheDelete");Fqe=Oue;a(Pue,"listCacheGet2");y(Pue,"listCacheGet");Vqe=Pue;a(Bue,"listCacheHas2");y(Bue,"listCacheHas");Gqe=Bue;a($ue,"listCacheSet2");y($ue,"listCacheSet");Wqe=$ue;a(Hd,"ListCache2");y(Hd,"ListCache");Hd.prototype.clear=Pqe;Hd.prototype.delete=Fqe;Hd.prototype.get=Vqe;Hd.prototype.has=Gqe;Hd.prototype.set=Wqe;cS=Hd;a(Fue,"stackClear2");y(Fue,"stackClear");zqe=Fue;a(Vue,"stackDelete2");y(Vue,"stackDelete");qqe=Vue;a(Gue,"stackGet2");y(Gue,"stackGet");jqe=Gue;a(Wue,"stackHas2");y(Wue,"stackHas");Uqe=Wue,Hqe=typeof global=="object"&&global&&global.Object===Object&&global,zue=Hqe,Yqe=typeof self=="object"&&self&&self.Object===Object&&self,Kqe=zue||Yqe||Function("return this")(),Ql=Kqe,Xqe=Ql.Symbol,Yo=Xqe,que=Object.prototype,Qqe=que.hasOwnProperty,Zqe=que.toString,V0=Yo?Yo.toStringTag:void 0;a(jue,"getRawTag2");y(jue,"getRawTag");Jqe=jue,eje=Object.prototype,tje=eje.toString;a(Uue,"objectToString2");y(Uue,"objectToString");rje=Uue,ije="[object Null]",nje="[object Undefined]",aie=Yo?Yo.toStringTag:void 0;a(Hue,"baseGetTag2");y(Hue,"baseGetTag");Lm=Hue;a(Yue,"isObject2");y(Yue,"isObject");fM=Yue,aje="[object AsyncFunction]",sje="[object Function]",oje="[object GeneratorFunction]",lje="[object Proxy]";a(Kue,"isFunction2");y(Kue,"isFunction");Xue=Kue,cje=Ql["__core-js_shared__"],fD=cje,sie=(function(){var e=/[^.]+$/.exec(fD&&fD.keys&&fD.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();a(Que,"isMasked2");y(Que,"isMasked");uje=Que,hje=Function.prototype,dje=hje.toString;a(Zue,"toSource2");y(Zue,"toSource");Yd=Zue,fje=/[\\^$.*+?()[\]{}|]/g,pje=/^\[object .+?Constructor\]$/,mje=Function.prototype,gje=Object.prototype,yje=mje.toString,xje=gje.hasOwnProperty,bje=RegExp("^"+yje.call(xje).replace(fje,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");a(Jue,"baseIsNative2");y(Jue,"baseIsNative");Tje=Jue;a(ehe,"getValue2");y(ehe,"getValue");kje=ehe;a(the,"getNative2");y(the,"getNative");Dm=the,Cje=Dm(Ql,"Map"),M1=Cje,vje=Dm(Object,"create"),O1=vje;a(rhe,"hashClear2");y(rhe,"hashClear");Sje=rhe;a(ihe,"hashDelete2");y(ihe,"hashDelete");_je=ihe,wje="__lodash_hash_undefined__",Eje=Object.prototype,Aje=Eje.hasOwnProperty;a(nhe,"hashGet2");y(nhe,"hashGet");Rje=nhe,Lje=Object.prototype,Dje=Lje.hasOwnProperty;a(ahe,"hashHas2");y(ahe,"hashHas");Ije=ahe,Nje="__lodash_hash_undefined__";a(she,"hashSet2");y(she,"hashSet");Mje=she;a(Kd,"Hash2");y(Kd,"Hash");Kd.prototype.clear=Sje;Kd.prototype.delete=_je;Kd.prototype.get=Rje;Kd.prototype.has=Ije;Kd.prototype.set=Mje;oie=Kd;a(ohe,"mapCacheClear2");y(ohe,"mapCacheClear");Oje=ohe;a(lhe,"isKeyable2");y(lhe,"isKeyable");Pje=lhe;a(che,"getMapData2");y(che,"getMapData");uS=che;a(uhe,"mapCacheDelete2");y(uhe,"mapCacheDelete");Bje=uhe;a(hhe,"mapCacheGet2");y(hhe,"mapCacheGet");$je=hhe;a(dhe,"mapCacheHas2");y(dhe,"mapCacheHas");Fje=dhe;a(fhe,"mapCacheSet2");y(fhe,"mapCacheSet");Vje=fhe;a(Xd,"MapCache2");y(Xd,"MapCache");Xd.prototype.clear=Oje;Xd.prototype.delete=Bje;Xd.prototype.get=$je;Xd.prototype.has=Fje;Xd.prototype.set=Vje;hS=Xd,Gje=200;a(phe,"stackSet2");y(phe,"stackSet");Wje=phe;a(Qd,"Stack2");y(Qd,"Stack");Qd.prototype.clear=zqe;Qd.prototype.delete=qqe;Qd.prototype.get=jqe;Qd.prototype.has=Uqe;Qd.prototype.set=Wje;RC=Qd,zje="__lodash_hash_undefined__";a(mhe,"setCacheAdd2");y(mhe,"setCacheAdd");qje=mhe;a(ghe,"setCacheHas2");y(ghe,"setCacheHas");jje=ghe;a(P1,"SetCache2");y(P1,"SetCache");P1.prototype.add=P1.prototype.push=qje;P1.prototype.has=jje;yhe=P1;a(xhe,"arraySome2");y(xhe,"arraySome");Uje=xhe;a(bhe,"cacheHas2");y(bhe,"cacheHas");The=bhe,Hje=1,Yje=2;a(khe,"equalArrays2");y(khe,"equalArrays");Che=khe,Kje=Ql.Uint8Array,lie=Kje;a(vhe,"mapToArray2");y(vhe,"mapToArray");Xje=vhe;a(She,"setToArray2");y(She,"setToArray");pM=She,Qje=1,Zje=2,Jje="[object Boolean]",eUe="[object Date]",tUe="[object Error]",rUe="[object Map]",iUe="[object Number]",nUe="[object RegExp]",aUe="[object Set]",sUe="[object String]",oUe="[object Symbol]",lUe="[object ArrayBuffer]",cUe="[object DataView]",cie=Yo?Yo.prototype:void 0,pD=cie?cie.valueOf:void 0;a(_he,"equalByTag2");y(_he,"equalByTag");uUe=_he;a(whe,"arrayPush2");y(whe,"arrayPush");Ehe=whe,hUe=Array.isArray,jn=hUe;a(Ahe,"baseGetAllKeys2");y(Ahe,"baseGetAllKeys");dUe=Ahe;a(Rhe,"arrayFilter2");y(Rhe,"arrayFilter");Lhe=Rhe;a(Dhe,"stubArray2");y(Dhe,"stubArray");fUe=Dhe,pUe=Object.prototype,mUe=pUe.propertyIsEnumerable,uie=Object.getOwnPropertySymbols,gUe=uie?function(e){return e==null?[]:(e=Object(e),Lhe(uie(e),function(t){return mUe.call(e,t)}))}:fUe,yUe=gUe;a(Ihe,"baseTimes2");y(Ihe,"baseTimes");xUe=Ihe;a(Nhe,"isObjectLike2");y(Nhe,"isObjectLike");Tm=Nhe,bUe="[object Arguments]";a(Mhe,"baseIsArguments2");y(Mhe,"baseIsArguments");hie=Mhe,Ohe=Object.prototype,TUe=Ohe.hasOwnProperty,kUe=Ohe.propertyIsEnumerable,CUe=hie((function(){return arguments})())?hie:function(e){return Tm(e)&&TUe.call(e,"callee")&&!kUe.call(e,"callee")},dS=CUe;a(Phe,"stubFalse2");y(Phe,"stubFalse");vUe=Phe,Bhe=typeof exports=="object"&&exports&&!exports.nodeType&&exports,die=Bhe&&typeof module=="object"&&module&&!module.nodeType&&module,SUe=die&&die.exports===Bhe,fie=SUe?Ql.Buffer:void 0,_Ue=fie?fie.isBuffer:void 0,wUe=_Ue||vUe,dv=wUe,EUe=9007199254740991,AUe=/^(?:0|[1-9]\d*)$/;a($he,"isIndex2");y($he,"isIndex");Fhe=$he,RUe=9007199254740991;a(Vhe,"isLength2");y(Vhe,"isLength");mM=Vhe,LUe="[object Arguments]",DUe="[object Array]",IUe="[object Boolean]",NUe="[object Date]",MUe="[object Error]",OUe="[object Function]",PUe="[object Map]",BUe="[object Number]",$Ue="[object Object]",FUe="[object RegExp]",VUe="[object Set]",GUe="[object String]",WUe="[object WeakMap]",zUe="[object ArrayBuffer]",qUe="[object DataView]",jUe="[object Float32Array]",UUe="[object Float64Array]",HUe="[object Int8Array]",YUe="[object Int16Array]",KUe="[object Int32Array]",XUe="[object Uint8Array]",QUe="[object Uint8ClampedArray]",ZUe="[object Uint16Array]",JUe="[object Uint32Array]",ei={};ei[jUe]=ei[UUe]=ei[HUe]=ei[YUe]=ei[KUe]=ei[XUe]=ei[QUe]=ei[ZUe]=ei[JUe]=!0;ei[LUe]=ei[DUe]=ei[zUe]=ei[IUe]=ei[qUe]=ei[NUe]=ei[MUe]=ei[OUe]=ei[PUe]=ei[BUe]=ei[$Ue]=ei[FUe]=ei[VUe]=ei[GUe]=ei[WUe]=!1;a(Ghe,"baseIsTypedArray2");y(Ghe,"baseIsTypedArray");eHe=Ghe;a(Whe,"baseUnary2");y(Whe,"baseUnary");tHe=Whe,zhe=typeof exports=="object"&&exports&&!exports.nodeType&&exports,x1=zhe&&typeof module=="object"&&module&&!module.nodeType&&module,rHe=x1&&x1.exports===zhe,mD=rHe&&zue.process,iHe=(function(){try{var e=x1&&x1.require&&x1.require("util").types;return e||mD&&mD.binding&&mD.binding("util")}catch{}})(),pie=iHe,mie=pie&&pie.isTypedArray,nHe=mie?tHe(mie):eHe,gM=nHe,aHe=Object.prototype,sHe=aHe.hasOwnProperty;a(qhe,"arrayLikeKeys2");y(qhe,"arrayLikeKeys");oHe=qhe,lHe=Object.prototype;a(jhe,"isPrototype2");y(jhe,"isPrototype");Uhe=jhe;a(Hhe,"overArg2");y(Hhe,"overArg");cHe=Hhe,uHe=cHe(Object.keys,Object),hHe=uHe,dHe=Object.prototype,fHe=dHe.hasOwnProperty;a(Yhe,"baseKeys2");y(Yhe,"baseKeys");Khe=Yhe;a(Xhe,"isArrayLike2");y(Xhe,"isArrayLike");fS=Xhe;a(Qhe,"keys2");y(Qhe,"keys");yM=Qhe;a(Zhe,"getAllKeys2");y(Zhe,"getAllKeys");gie=Zhe,pHe=1,mHe=Object.prototype,gHe=mHe.hasOwnProperty;a(Jhe,"equalObjects2");y(Jhe,"equalObjects");yHe=Jhe,xHe=Dm(Ql,"DataView"),ZI=xHe,bHe=Dm(Ql,"Promise"),JI=bHe,THe=Dm(Ql,"Set"),cm=THe,kHe=Dm(Ql,"WeakMap"),e6=kHe,yie="[object Map]",CHe="[object Object]",xie="[object Promise]",bie="[object Set]",Tie="[object WeakMap]",kie="[object DataView]",vHe=Yd(ZI),SHe=Yd(M1),_He=Yd(JI),wHe=Yd(cm),EHe=Yd(e6),rd=Lm;(ZI&&rd(new ZI(new ArrayBuffer(1)))!=kie||M1&&rd(new M1)!=yie||JI&&rd(JI.resolve())!=xie||cm&&rd(new cm)!=bie||e6&&rd(new e6)!=Tie)&&(rd=y(function(e){var t=Lm(e),r=t==CHe?e.constructor:void 0,i=r?Yd(r):"";if(i)switch(i){case vHe:return kie;case SHe:return yie;case _He:return xie;case wHe:return bie;case EHe:return Tie}return t},"getTag"));t6=rd,AHe=1,Cie="[object Arguments]",vie="[object Array]",Jk="[object Object]",RHe=Object.prototype,Sie=RHe.hasOwnProperty;a(ede,"baseIsEqualDeep2");y(ede,"baseIsEqualDeep");LHe=ede;a(xM,"baseIsEqual2");y(xM,"baseIsEqual");tde=xM,DHe=1,IHe=2;a(rde,"baseIsMatch2");y(rde,"baseIsMatch");NHe=rde;a(ide,"isStrictComparable2");y(ide,"isStrictComparable");nde=ide;a(ade,"getMatchData2");y(ade,"getMatchData");MHe=ade;a(sde,"matchesStrictComparable2");y(sde,"matchesStrictComparable");ode=sde;a(lde,"baseMatches2");y(lde,"baseMatches");OHe=lde,PHe="[object Symbol]";a(cde,"isSymbol2");y(cde,"isSymbol");pS=cde,BHe=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,$He=/^\w*$/;a(ude,"isKey2");y(ude,"isKey");bM=ude,FHe="Expected a function";a(mS,"memoize2");y(mS,"memoize");mS.Cache=hS;VHe=mS,GHe=500;a(hde,"memoizeCapped2");y(hde,"memoizeCapped");WHe=hde,zHe=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,qHe=/\\(\\)?/g,jHe=WHe(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(zHe,function(r,i,n,s){t.push(n?s.replace(qHe,"$1"):i||r)}),t}),UHe=jHe,HHe=1/0,_ie=Yo?Yo.prototype:void 0,wie=_ie?_ie.toString:void 0;a(TM,"baseToString2");y(TM,"baseToString");YHe=TM;a(dde,"toString3");y(dde,"toString");KHe=dde;a(fde,"castPath2");y(fde,"castPath");pde=fde,XHe=1/0;a(mde,"toKey2");y(mde,"toKey");gS=mde;a(gde,"baseGet2");y(gde,"baseGet");yde=gde;a(xde,"get2");y(xde,"get");QHe=xde;a(bde,"baseHasIn2");y(bde,"baseHasIn");ZHe=bde;a(Tde,"hasPath2");y(Tde,"hasPath");JHe=Tde;a(kde,"hasIn2");y(kde,"hasIn");eYe=kde,tYe=1,rYe=2;a(Cde,"baseMatchesProperty2");y(Cde,"baseMatchesProperty");iYe=Cde;a(vde,"identity2");y(vde,"identity");kM=vde;a(Sde,"baseProperty2");y(Sde,"baseProperty");nYe=Sde;a(_de,"basePropertyDeep2");y(_de,"basePropertyDeep");aYe=_de;a(wde,"property2");y(wde,"property");sYe=wde;a(Ede,"baseIteratee2");y(Ede,"baseIteratee");yS=Ede;a(Ade,"createBaseFor2");y(Ade,"createBaseFor");oYe=Ade,lYe=oYe(),cYe=lYe;a(Rde,"baseForOwn2");y(Rde,"baseForOwn");uYe=Rde;a(Lde,"createBaseEach2");y(Lde,"createBaseEach");hYe=Lde,dYe=hYe(uYe),xS=dYe;a(Dde,"baseMap2");y(Dde,"baseMap");fYe=Dde;a(Ide,"map2");y(Ide,"map");$l=Ide;a(Nde,"baseFilter2");y(Nde,"baseFilter");pYe=Nde;a(Mde,"filter2");y(Mde,"filter");mYe=Mde;a(Id,"buildATNKey");y(Id,"buildATNKey");Su=1,gYe=2,Ode=4,Pde=5,ax=7,yYe=8,xYe=9,bYe=10,TYe=11,Bde=12,CM=class{static{a(this,"AbstractTransition")}static{y(this,"AbstractTransition")}constructor(e){this.target=e}isEpsilon(){return!1}},vM=class extends CM{static{a(this,"AtomTransition")}static{y(this,"AtomTransition")}constructor(e,t){super(e),this.tokenType=t}},$de=class extends CM{static{a(this,"EpsilonTransition")}static{y(this,"EpsilonTransition")}constructor(e){super(e)}isEpsilon(){return!0}},SM=class extends CM{static{a(this,"RuleTransition")}static{y(this,"RuleTransition")}constructor(e,t,r){super(e),this.rule=t,this.followState=r}isEpsilon(){return!0}};a(Fde,"createATN");y(Fde,"createATN");a(Vde,"createRuleStartAndStopATNStates");y(Vde,"createRuleStartAndStopATNStates");a(_M,"atom");y(_M,"atom");a(Gde,"repetition");y(Gde,"repetition");a(Wde,"repetitionSep");y(Wde,"repetitionSep");a(zde,"repetitionMandatory");y(zde,"repetitionMandatory");a(qde,"repetitionMandatorySep");y(qde,"repetitionMandatorySep");a(jde,"alternation");y(jde,"alternation");a(Ude,"option");y(Ude,"option");a(Lu,"block");y(Lu,"block");a(wM,"plus");y(wM,"plus");a(EM,"star");y(EM,"star");a(Hde,"optional");y(Hde,"optional");a(Zl,"defineDecisionState");y(Zl,"defineDecisionState");a(Zd,"makeAlts");y(Zd,"makeAlts");a(Yde,"getProdType2");y(Yde,"getProdType");a(Kde,"makeBlock");y(Kde,"makeBlock");a(bS,"tokenRef");y(bS,"tokenRef");a(Xde,"ruleRef");y(Xde,"ruleRef");a(Qde,"buildRuleHandle");y(Qde,"buildRuleHandle");a(Ci,"epsilon");y(Ci,"epsilon");a(Wi,"newState");y(Wi,"newState");a(TS,"addTransition");y(TS,"addTransition");a(Zde,"removeState");y(Zde,"removeState");fv={},r6=class{static{a(this,"ATNConfigSet")}static{y(this,"ATNConfigSet")}constructor(){this.map={},this.configs=[]}get size(){return this.configs.length}finalize(){this.map={}}add(e){let t=AM(e);t in this.map||(this.map[t]=this.configs.length,this.configs.push(e))}get elements(){return this.configs}get alts(){return $l(this.configs,e=>e.alt)}get key(){let e="";for(let t in this.map)e+=t+":";return e}};a(AM,"getATNConfigKey");y(AM,"getATNConfigKey");a(Jde,"baseExtremum");y(Jde,"baseExtremum");kYe=Jde;a(efe,"baseLt");y(efe,"baseLt");CYe=efe;a(tfe,"min");y(tfe,"min");vYe=tfe,Eie=Yo?Yo.isConcatSpreadable:void 0;a(rfe,"isFlattenable2");y(rfe,"isFlattenable");SYe=rfe;a(RM,"baseFlatten2");y(RM,"baseFlatten");ife=RM;a(nfe,"flatMap2");y(nfe,"flatMap");_Ye=nfe;a(afe,"baseFindIndex2");y(afe,"baseFindIndex");wYe=afe;a(sfe,"baseIsNaN2");y(sfe,"baseIsNaN");EYe=sfe;a(ofe,"strictIndexOf2");y(ofe,"strictIndexOf");AYe=ofe;a(lfe,"baseIndexOf2");y(lfe,"baseIndexOf");RYe=lfe;a(cfe,"arrayIncludes2");y(cfe,"arrayIncludes");LYe=cfe;a(ufe,"arrayIncludesWith2");y(ufe,"arrayIncludesWith");DYe=ufe;a(hfe,"noop2");y(hfe,"noop");IYe=hfe,NYe=1/0,MYe=cm&&1/pM(new cm([,-0]))[1]==NYe?function(e){return new cm(e)}:IYe,OYe=MYe,PYe=200;a(dfe,"baseUniq2");y(dfe,"baseUniq");BYe=dfe;a(ffe,"uniqBy");y(ffe,"uniqBy");$Ye=ffe;a(pfe,"flatten2");y(pfe,"flatten");FYe=pfe;a(mfe,"arrayEach2");y(mfe,"arrayEach");VYe=mfe;a(gfe,"castFunction2");y(gfe,"castFunction");GYe=gfe;a(yfe,"forEach2");y(yfe,"forEach");gD=yfe,WYe="[object Map]",zYe="[object Set]",qYe=Object.prototype,jYe=qYe.hasOwnProperty;a(xfe,"isEmpty2");y(xfe,"isEmpty");UYe=xfe;a(bfe,"arrayReduce2");y(bfe,"arrayReduce");HYe=bfe;a(Tfe,"baseReduce2");y(Tfe,"baseReduce");YYe=Tfe;a(kfe,"reduce2");y(kfe,"reduce");Aie=kfe;a(Cfe,"createDFACache");y(Cfe,"createDFACache");vfe=class{static{a(this,"PredicateSet")}static{y(this,"PredicateSet")}constructor(){this.predicates=[]}is(e){return e>=this.predicates.length||this.predicates[e]}set(e,t){this.predicates[e]=t}toString(){let e="",t=this.predicates.length;for(let r=0;r<t;r++)e+=this.predicates[r]===!0?"1":"0";return e}},Rie=new vfe,KYe=class extends uM{static{a(this,"LLStarLookaheadStrategy")}static{y(this,"LLStarLookaheadStrategy")}constructor(e){var t;super(),this.logging=(t=e?.logging)!==null&&t!==void 0?t:(r=>console.log(r))}initialize(e){this.atn=Fde(e.rules),this.dfas=Sfe(this.atn)}validateAmbiguousAlternationAlternatives(){return[]}validateEmptyOrAlternatives(){return[]}buildLookaheadForAlternation(e){let{prodOccurrence:t,rule:r,hasPredicates:i,dynamicTokensEnabled:n}=e,s=this.dfas,o=this.logging,l=Id(r,"Alternation",t),h=this.atn.decisionMap[l].decision,d=$l(WI({maxLookahead:1,occurrence:t,prodType:"Alternation",rule:r}),f=>$l(f,p=>p[0]));if(i6(d,!1)&&!n){let f=Aie(d,(p,m,g)=>(gD(m,x=>{x&&(p[x.tokenTypeIdx]=g,gD(x.categoryMatches,b=>{p[b]=g}))}),p),{});return i?function(p){var m;let g=this.LA(1),x=f[g.tokenTypeIdx];if(p!==void 0&&x!==void 0){let b=(m=p[x])===null||m===void 0?void 0:m.GATE;if(b!==void 0&&b.call(this)===!1)return}return x}:function(){let p=this.LA(1);return f[p.tokenTypeIdx]}}else return i?function(f){let p=new vfe,m=f===void 0?0:f.length;for(let x=0;x<m;x++){let b=f?.[x].GATE;p.set(x,b===void 0||b.call(this))}let g=LC.call(this,s,h,p,o);return typeof g=="number"?g:void 0}:function(){let f=LC.call(this,s,h,Rie,o);return typeof f=="number"?f:void 0}}buildLookaheadForOptional(e){let{prodOccurrence:t,rule:r,prodType:i,dynamicTokensEnabled:n}=e,s=this.dfas,o=this.logging,l=Id(r,i,t),h=this.atn.decisionMap[l].decision,d=$l(WI({maxLookahead:1,occurrence:t,prodType:i,rule:r}),f=>$l(f,p=>p[0]));if(i6(d)&&d[0][0]&&!n){let f=d[0],p=FYe(f);if(p.length===1&&UYe(p[0].categoryMatches)){let g=p[0].tokenTypeIdx;return function(){return this.LA(1).tokenTypeIdx===g}}else{let m=Aie(p,(g,x)=>(x!==void 0&&(g[x.tokenTypeIdx]=!0,gD(x.categoryMatches,b=>{g[b]=!0})),g),{});return function(){let g=this.LA(1);return m[g.tokenTypeIdx]===!0}}}return function(){let f=LC.call(this,s,h,Rie,o);return typeof f=="object"?!1:f===0}}};a(i6,"isLL1Sequence");y(i6,"isLL1Sequence");a(Sfe,"initATNSimulator");y(Sfe,"initATNSimulator");a(LC,"adaptivePredict");y(LC,"adaptivePredict");a(_fe,"performLookahead");y(_fe,"performLookahead");a(wfe,"computeLookaheadTarget");y(wfe,"computeLookaheadTarget");a(Efe,"reportLookaheadAmbiguity");y(Efe,"reportLookaheadAmbiguity");a(Afe,"buildAmbiguityError");y(Afe,"buildAmbiguityError");a(Rfe,"getProductionDslName2");y(Rfe,"getProductionDslName");a(Lfe,"buildAdaptivePredictError");y(Lfe,"buildAdaptivePredictError");a(Dfe,"getExistingTargetState");y(Dfe,"getExistingTargetState");a(Ife,"computeReachSet");y(Ife,"computeReachSet");a(Nfe,"getReachableTarget");y(Nfe,"getReachableTarget");a(Mfe,"getUniqueAlt");y(Mfe,"getUniqueAlt");a(LM,"newDFAState");y(LM,"newDFAState");a(n6,"addDFAEdge");y(n6,"addDFAEdge");a(DM,"addDFAState");y(DM,"addDFAState");a(Ofe,"computeStartState");y(Ofe,"computeStartState");a(B1,"closure");y(B1,"closure");a(Pfe,"getEpsilonTarget");y(Pfe,"getEpsilonTarget");a(Bfe,"hasConfigInRuleStopState");y(Bfe,"hasConfigInRuleStopState");a($fe,"allConfigsInRuleStopStates");y($fe,"allConfigsInRuleStopStates");a(Ffe,"hasConflictTerminatingPrediction");y(Ffe,"hasConflictTerminatingPrediction");a(Vfe,"getConflictingAltSets");y(Vfe,"getConflictingAltSets");a(Gfe,"hasConflictingAltSet");y(Gfe,"hasConflictingAltSet");a(Wfe,"hasStateAssociatedWithOneAlt");y(Wfe,"hasStateAssociatedWithOneAlt");V1();zfe=class{static{a(this,"CstNodeBuilder")}static{y(this,"CstNodeBuilder")}constructor(){this.nodeStack=[]}get current(){return this.nodeStack[this.nodeStack.length-1]??this.rootNode}buildRootNode(e){return this.rootNode=new NM(e),this.rootNode.root=this.rootNode,this.nodeStack=[this.rootNode],this.rootNode}buildCompositeNode(e){let t=new kS;return t.grammarSource=e,t.root=this.rootNode,this.current.content.push(t),this.nodeStack.push(t),t}buildLeafNode(e,t){let r=new pv(e.startOffset,e.image.length,S1(e),e.tokenType,!t);return r.grammarSource=t,r.root=this.rootNode,this.current.content.push(r),r}removeNode(e){let t=e.container;if(t){let r=t.content.indexOf(e);r>=0&&t.content.splice(r,1)}}addHiddenNodes(e){let t=[];for(let n of e){let s=new pv(n.startOffset,n.image.length,S1(n),n.tokenType,!0);s.root=this.rootNode,t.push(s)}let r=this.current,i=!1;if(r.content.length>0){r.content.push(...t);return}for(;r.container;){let n=r.container.content.indexOf(r);if(n>0){r.container.content.splice(n,0,...t),i=!0;break}r=r.container}i||this.rootNode.content.unshift(...t)}construct(e){let t=this.current;typeof e.$type=="string"&&!e.$infix&&(this.current.astNode=e),e.$cstNode=t;let r=this.nodeStack.pop();r?.content.length===0&&this.removeNode(r)}},IM=class{static{a(this,"AbstractCstNode")}static{y(this,"AbstractCstNode")}get hidden(){return!1}get astNode(){let e=typeof this._astNode?.$type=="string"?this._astNode:this.container?.astNode;if(!e)throw new Error("This node has no associated AST element");return e}set astNode(e){this._astNode=e}get text(){return this.root.fullText.substring(this.offset,this.end)}},pv=class extends IM{static{a(this,"LeafCstNodeImpl")}static{y(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,i,n=!1){super(),this._hidden=n,this._offset=e,this._tokenType=i,this._length=t,this._range=r}},kS=class extends IM{static{a(this,"CompositeCstNodeImpl")}static{y(this,"CompositeCstNodeImpl")}constructor(){super(...arguments),this.content=new XYe(this)}get offset(){return this.firstNonHiddenNode?.offset??0}get length(){return this.end-this.offset}get end(){return this.lastNonHiddenNode?.end??0}get range(){let e=this.firstNonHiddenNode,t=this.lastNonHiddenNode;if(e&&t){if(this._rangeCache===void 0){let{range:r}=e,{range:i}=t;this._rangeCache={start:r.start,end:i.end.line<r.start.line?r.start:i.end}}return this._rangeCache}else return{start:Er.create(0,0),end:Er.create(0,0)}}get firstNonHiddenNode(){for(let e of this.content)if(!e.hidden)return e;return this.content[0]}get lastNonHiddenNode(){for(let e=this.content.length-1;e>=0;e--){let t=this.content[e];if(!t.hidden)return t}return this.content[this.content.length-1]}},XYe=class qfe extends Array{static{a(this,"_CstNodeContainer")}static{y(this,"CstNodeContainer")}constructor(t){super(),this.parent=t,Object.setPrototypeOf(this,qfe.prototype)}push(...t){return this.addParents(t),super.push(...t)}unshift(...t){return this.addParents(t),super.unshift(...t)}splice(t,r,...i){return this.addParents(i),super.splice(t,r,...i)}addParents(t){for(let r of t)r.container=this.parent}},NM=class extends kS{static{a(this,"RootCstNodeImpl")}static{y(this,"RootCstNodeImpl")}get text(){return this._text.substring(this.offset,this.end)}get fullText(){return this._text}constructor(e){super(),this._text="",this._text=e??""}},mv=Symbol("Datatype");a(DC,"isDataTypeNode");y(DC,"isDataTypeNode");Lie="\u200B",jfe=y(e=>e.endsWith(Lie)?e:e+Lie,"withRuleSuffix"),MM=class{static{a(this,"AbstractLangiumParser")}static{y(this,"AbstractLangiumParser")}constructor(e){this._unorderedGroups=new Map,this.allRules=new Map,this.lexer=e.parser.Lexer;let t=this.lexer.definition,r=e.LanguageMetaData.mode==="production";e.shared.profilers.LangiumProfiler?.isActive("parsing")?this.wrapper=new ZYe(t,{...e.parser.ParserConfig,skipValidations:r,errorMessageProvider:e.parser.ParserErrorMessageProvider},e.shared.profilers.LangiumProfiler.createTask("parsing",e.LanguageMetaData.languageId)):this.wrapper=new Kfe(t,{...e.parser.ParserConfig,skipValidations:r,errorMessageProvider:e.parser.ParserErrorMessageProvider})}alternatives(e,t){this.wrapper.wrapOr(e,t)}optional(e,t){this.wrapper.wrapOption(e,t)}many(e,t){this.wrapper.wrapMany(e,t)}atLeastOne(e,t){this.wrapper.wrapAtLeastOne(e,t)}getRule(e){return this.allRules.get(e)}isRecording(){return this.wrapper.IS_RECORDING}get unorderedGroups(){return this._unorderedGroups}getRuleStack(){return this.wrapper.RULE_STACK}finalize(){this.wrapper.wrapSelfAnalysis()}},Ufe=class extends MM{static{a(this,"LangiumParser")}static{y(this,"LangiumParser")}get current(){return this.stack[this.stack.length-1]}constructor(e){super(e),this.nodeBuilder=new zfe,this.stack=[],this.assignmentMap=new Map,this.operatorPrecedence=new Map,this.linker=e.references.Linker,this.converter=e.parser.ValueConverter,this.astReflection=e.shared.AstReflection}rule(e,t){let r=this.computeRuleType(e),i;pm(e)&&(i=e.name,this.registerPrecedenceMap(e));let n=this.wrapper.DEFINE_RULE(jfe(e.name),this.startImplementation(r,i,t).bind(this));return this.allRules.set(e.name,n),Wn(e)&&e.entry&&(this.mainRule=n),n}registerPrecedenceMap(e){let t=e.name,r=new Map;for(let i=0;i<e.operators.precedences.length;i++){let n=e.operators.precedences[i];for(let s of n.operators)r.set(s.value,{precedence:i,rightAssoc:n.associativity==="right"})}this.operatorPrecedence.set(t,r)}computeRuleType(e){return pm(e)?Rd(e):e.fragment?void 0:q1(e)?mv:Rd(e)}parse(e,t={}){this.nodeBuilder.buildRootNode(e);let r=this.lexerResult=this.lexer.tokenize(e);this.wrapper.input=r.tokens;let i=t.rule?this.allRules.get(t.rule):this.mainRule;if(!i)throw new Error(t.rule?`No rule found with name '${t.rule}'`:"No main rule available.");let n=this.doParse(i);return this.nodeBuilder.addHiddenNodes(r.hidden),this.unorderedGroups.clear(),this.lexerResult=void 0,dm(n,{deep:!0}),{value:n,lexerErrors:r.errors,lexerReport:r.report,parserErrors:this.wrapper.errors}}doParse(e){let t=this.wrapper.rule(e);if(this.stack.length>0&&(t=this.construct()),t===void 0)throw new Error("No result from parser");if(this.stack.length>0)throw new Error("Parser stack is not empty after parsing");return t}startImplementation(e,t,r){return i=>{let n=!this.isRecording()&&e!==void 0;if(n){let s={$type:e};this.stack.push(s),e===mv?s.value="":t!==void 0&&(s.$infixName=t)}return r(i),n?this.construct():void 0}}extractHiddenTokens(e){let t=this.lexerResult.hidden;if(!t.length)return[];let r=e.startOffset;for(let i=0;i<t.length;i++)if(t[i].startOffset>r)return t.splice(0,i);return t.splice(0,t.length)}consume(e,t,r){let i=this.wrapper.wrapConsume(e,t);if(!this.isRecording()&&this.isValidToken(i)){let n=this.extractHiddenTokens(i);this.nodeBuilder.addHiddenNodes(n);let s=this.nodeBuilder.buildLeafNode(i,r),{assignment:o,crossRef:l}=this.getAssignment(r),u=this.current;if(o){let h=Gl(r)?i.image:this.converter.convert(i.image,s);this.assign(o.operator,o.feature,h,s,l)}else if(DC(u)){let h=i.image;Gl(r)||(h=this.converter.convert(h,s).toString()),u.value+=h}}}isValidToken(e){return!e.isInsertedInRecovery&&!isNaN(e.startOffset)&&typeof e.endOffset=="number"&&!isNaN(e.endOffset)}subrule(e,t,r,i,n){let s;!this.isRecording()&&!r&&(s=this.nodeBuilder.buildCompositeNode(i));let o;try{o=this.wrapper.wrapSubrule(e,t,n)}finally{this.isRecording()||(o===void 0&&!r&&(o=this.construct()),o!==void 0&&s&&s.length>0&&this.performSubruleAssignment(o,i,s))}}performSubruleAssignment(e,t,r){let{assignment:i,crossRef:n}=this.getAssignment(t);if(i)this.assign(i.operator,i.feature,e,r,n);else if(!i){let s=this.current;if(DC(s))s.value+=e.toString();else if(typeof e=="object"&&e){let l=this.assignWithoutOverride(e,s);this.stack.pop(),this.stack.push(l)}}}action(e,t){if(!this.isRecording()){let r=this.current;if(t.feature&&t.operator){r=this.construct(),this.nodeBuilder.removeNode(r.$cstNode),this.nodeBuilder.buildCompositeNode(t).content.push(r.$cstNode);let n={$type:e};this.stack.push(n),this.assign(t.operator,t.feature,r,r.$cstNode)}else r.$type=e}}construct(){if(this.isRecording())return;let e=this.stack.pop();return this.nodeBuilder.construct(e),"$infixName"in e?this.constructInfix(e,this.operatorPrecedence.get(e.$infixName)):DC(e)?this.converter.convert(e.value,e.$cstNode):(I6(this.astReflection,e),e)}constructInfix(e,t){let r=e.parts;if(!Array.isArray(r)||r.length===0)return;let i=e.operators;if(!Array.isArray(i)||r.length<2)return r[0];let n=0,s=-1;for(let g=0;g<i.length;g++){let x=i[g],b=t.get(x)??{precedence:1/0,rightAssoc:!1};b.precedence>s?(s=b.precedence,n=g):b.precedence===s&&(b.rightAssoc||(n=g))}let o=i.slice(0,n),l=i.slice(n+1),u=r.slice(0,n+1),h=r.slice(n+1),d={$infixName:e.$infixName,$type:e.$type,$cstNode:e.$cstNode,parts:u,operators:o},f={$infixName:e.$infixName,$type:e.$type,$cstNode:e.$cstNode,parts:h,operators:l},p=this.constructInfix(d,t),m=this.constructInfix(f,t);return{$type:e.$type,$cstNode:e.$cstNode,left:p,operator:i[n],right:m}}getAssignment(e){if(!this.assignmentMap.has(e)){let t=Od(e,Vl);this.assignmentMap.set(e,{assignment:t,crossRef:t&&Bd(t.terminal)?t.terminal.isMulti?"multi":"single":void 0})}return this.assignmentMap.get(e)}assign(e,t,r,i,n){let s=this.current,o;switch(n==="single"&&typeof r=="string"?o=this.linker.buildReference(s,t,i,r):n==="multi"&&typeof r=="string"?o=this.linker.buildMultiReference(s,t,i,r):o=r,e){case"=":{s[t]=o;break}case"?=":{s[t]=!0;break}case"+=":Array.isArray(s[t])||(s[t]=[]),s[t].push(o)}}assignWithoutOverride(e,t){for(let[i,n]of Object.entries(t)){let s=e[i];s===void 0?e[i]=n:Array.isArray(s)&&Array.isArray(n)&&(n.push(...s),e[i]=n)}let r=e.$cstNode;return r&&(r.astNode=void 0,e.$cstNode=void 0),e}get definitionErrors(){return this.wrapper.definitionErrors}},Hfe=class{static{a(this,"AbstractParserErrorMessageProvider")}static{y(this,"AbstractParserErrorMessageProvider")}buildMismatchTokenMessage(e){return nm.buildMismatchTokenMessage(e)}buildNotAllInputParsedMessage(e){return nm.buildNotAllInputParsedMessage(e)}buildNoViableAltMessage(e){return nm.buildNoViableAltMessage(e)}buildEarlyExitMessage(e){return nm.buildEarlyExitMessage(e)}},OM=class extends Hfe{static{a(this,"LangiumParserErrorMessageProvider")}static{y(this,"LangiumParserErrorMessageProvider")}buildMismatchTokenMessage({expected:e,actual:t}){return`Expecting ${e.LABEL?"`"+e.LABEL+"`":e.name.endsWith(":KW")?`keyword '${e.name.substring(0,e.name.length-3)}'`:`token of type '${e.name}'`} but found \`${t.image}\`.`}buildNotAllInputParsedMessage({firstRedundant:e}){return`Expecting end of file but found \`${e.image}\`.`}},Yfe=class extends MM{static{a(this,"LangiumCompletionParser")}static{y(this,"LangiumCompletionParser")}constructor(){super(...arguments),this.tokens=[],this.elementStack=[],this.lastElementStack=[],this.nextTokenIndex=0,this.stackSize=0}action(){}construct(){}parse(e){this.resetState();let t=this.lexer.tokenize(e,{mode:"partial"});return this.tokens=t.tokens,this.wrapper.input=[...this.tokens],this.mainRule.call(this.wrapper,{}),this.unorderedGroups.clear(),{tokens:this.tokens,elementStack:[...this.lastElementStack],tokenIndex:this.nextTokenIndex}}rule(e,t){let r=this.wrapper.DEFINE_RULE(jfe(e.name),this.startImplementation(t).bind(this));return this.allRules.set(e.name,r),e.entry&&(this.mainRule=r),r}resetState(){this.elementStack=[],this.lastElementStack=[],this.nextTokenIndex=0,this.stackSize=0}startImplementation(e){return t=>{let r=this.keepStackSize();try{e(t)}finally{this.resetStackSize(r)}}}removeUnexpectedElements(){this.elementStack.splice(this.stackSize)}keepStackSize(){let e=this.elementStack.length;return this.stackSize=e,e}resetStackSize(e){this.removeUnexpectedElements(),this.stackSize=e}consume(e,t,r){this.wrapper.wrapConsume(e,t),this.isRecording()||(this.lastElementStack=[...this.elementStack,r],this.nextTokenIndex=this.currIdx+1)}subrule(e,t,r,i,n){this.before(i),this.wrapper.wrapSubrule(e,t,n),this.after(i)}before(e){this.isRecording()||this.elementStack.push(e)}after(e){if(!this.isRecording()){let t=this.elementStack.lastIndexOf(e);t>=0&&this.elementStack.splice(t)}}get currIdx(){return this.wrapper.currIdx}},QYe={recoveryEnabled:!0,nodeLocationTracking:"full",skipValidations:!0,errorMessageProvider:new OM},Kfe=class extends Oqe{static{a(this,"ChevrotainWrapper")}static{y(this,"ChevrotainWrapper")}constructor(e,t){let r=t&&"maxLookahead"in t;super(e,{...QYe,lookaheadStrategy:r?new uM({maxLookahead:t.maxLookahead}):new KYe({logging:t.skipValidations?()=>{}:void 0}),...t})}get IS_RECORDING(){return this.RECORDING_PHASE}DEFINE_RULE(e,t,r){return this.RULE(e,t,r)}wrapSelfAnalysis(){this.performSelfAnalysis()}wrapConsume(e,t){return this.consume(e,t,void 0)}wrapSubrule(e,t,r){return this.subrule(e,t,{ARGS:[r]})}wrapOr(e,t){this.or(e,t)}wrapOption(e,t){this.option(e,t)}wrapMany(e,t){this.many(e,t)}wrapAtLeastOne(e,t){this.atLeastOne(e,t)}rule(e){return e.call(this,{})}},ZYe=class extends Kfe{static{a(this,"ProfilerWrapper")}static{y(this,"ProfilerWrapper")}constructor(e,t,r){super(e,t),this.task=r}rule(e){this.task.start(),this.task.startSubTask(this.ruleName(e));try{return super.rule(e)}finally{this.task.stopSubTask(this.ruleName(e)),this.task.stop()}}ruleName(e){return e.ruleName}subrule(e,t,r){this.task.startSubTask(this.ruleName(t));try{return super.subrule(e,t,r)}finally{this.task.stopSubTask(this.ruleName(t))}}};a(CS,"createParser");y(CS,"createParser");a(Xfe,"buildRules");y(Xfe,"buildRules");a(Qfe,"buildInfixRule");y(Qfe,"buildInfixRule");a(_u,"buildElement");y(_u,"buildElement");a(Zfe,"buildAction");y(Zfe,"buildAction");a(Jfe,"buildRuleCall");y(Jfe,"buildRuleCall");a(epe,"buildRuleCallPredicate");y(epe,"buildRuleCallPredicate");a(Us,"buildPredicate");y(Us,"buildPredicate");a(tpe,"buildAlternatives");y(tpe,"buildAlternatives");a(rpe,"buildUnorderedGroup");y(rpe,"buildUnorderedGroup");a(ipe,"buildGroup");y(ipe,"buildGroup");a($1,"getGuardCondition");y($1,"getGuardCondition");a(PM,"buildCrossReference");y(PM,"buildCrossReference");a(npe,"buildKeyword");y(npe,"buildKeyword");a(BM,"wrap");y(BM,"wrap");a(vS,"getRule");y(vS,"getRule");a(ape,"getRuleName");y(ape,"getRuleName");a(gv,"getToken");y(gv,"getToken");a($M,"createCompletionParser");y($M,"createCompletionParser");a(FM,"createLangiumParser");y(FM,"createLangiumParser");a(VM,"prepareLangiumParser");y(VM,"prepareLangiumParser");SS=class{static{a(this,"DefaultTokenBuilder")}static{y(this,"DefaultTokenBuilder")}constructor(){this.diagnostics=[]}buildTokens(e,t){let r=Br(Bv(e,!1)),i=this.buildTerminalTokens(r),n=this.buildKeywordTokens(r,i,t);return n.push(...i),n}flushLexingReport(e){return{diagnostics:this.popDiagnostics()}}popDiagnostics(){let e=[...this.diagnostics];return this.diagnostics=[],e}buildTerminalTokens(e){return e.filter(ds).filter(t=>!t.fragment).map(t=>this.buildTerminalToken(t)).toArray()}buildTerminalToken(e){let t=U1(e),r=this.requiresCustomPattern(t)?this.regexPatternFunction(t):t,i={name:e.name,PATTERN:r};return typeof r=="function"&&(i.LINE_BREAKS=!0),e.hidden&&(i.GROUP=Pv(t)?Gn.SKIPPED:"hidden"),i}requiresCustomPattern(e){return!!(e.flags.includes("u")||e.flags.includes("s"))}regexPatternFunction(e){let t=new RegExp(e,e.flags+"y");return(r,i)=>(t.lastIndex=i,t.exec(r))}buildKeywordTokens(e,t,r){return e.filter(Pd).flatMap(i=>Kl(i).filter(Gl)).distinct(i=>i.value).toArray().sort((i,n)=>n.value.length-i.value.length).map(i=>this.buildKeywordToken(i,t,!!r?.caseInsensitive))}buildKeywordToken(e,t,r){let i=this.buildKeywordPattern(e,r),n={name:e.value,PATTERN:i,LONGER_ALT:this.findLongerAlt(e,t)};return typeof i=="function"&&(n.LINE_BREAKS=!0),n}buildKeywordPattern(e,t){return t?new RegExp(Sm(e.value),"i"):e.value}findLongerAlt(e,t){return t.reduce((r,i)=>{let n=i?.PATTERN;return n?.source&&hN("^"+n.source+"$",e.value)&&r.push(i),r},[])}},GM=class{static{a(this,"DefaultValueConverter")}static{y(this,"DefaultValueConverter")}convert(e,t){let r=t.grammarSource;if(Bd(r)&&(r=gN(r)),Wl(r)){let i=r.rule.ref;if(!i)throw new Error("This cst node was not parsed by a rule.");return this.runConverter(i,e,t)}return e}runConverter(e,t,r){switch(e.name.toUpperCase()){case"INT":return Wo.convertInt(t);case"STRING":return Wo.convertString(t);case"ID":return Wo.convertID(t)}switch(_N(e)?.toLowerCase()){case"number":return Wo.convertNumber(t);case"boolean":return Wo.convertBoolean(t);case"bigint":return Wo.convertBigint(t);case"date":return Wo.convertDate(t);default:return t}}};(function(e){function t(h){let d="";for(let f=1;f<h.length-1;f++){let p=h.charAt(f);if(p==="\\"){let m=h.charAt(++f);d+=r(m)}else d+=p}return d}a(t,"convertString"),y(t,"convertString"),e.convertString=t;function r(h){switch(h){case"b":return"\b";case"f":return"\f";case"n":return`
`;case"r":return"\r";case"t":return" ";case"v":return"\v";case"0":return"\0";default:return h}}a(r,"convertEscapeCharacter"),y(r,"convertEscapeCharacter");function i(h){return h.charAt(0)==="^"?h.substring(1):h}a(i,"convertID"),y(i,"convertID"),e.convertID=i;function n(h){return parseInt(h)}a(n,"convertInt"),y(n,"convertInt"),e.convertInt=n;function s(h){return BigInt(h)}a(s,"convertBigint"),y(s,"convertBigint"),e.convertBigint=s;function o(h){return new Date(h)}a(o,"convertDate"),y(o,"convertDate"),e.convertDate=o;function l(h){return Number(h)}a(l,"convertNumber"),y(l,"convertNumber"),e.convertNumber=l;function u(h){return h.toLowerCase()==="true"}a(u,"convertBoolean"),y(u,"convertBoolean"),e.convertBoolean=u})(Wo||(Wo={}));Ur={};vv(Ur,_6(_v(),1));a(_S,"delayNextTick");y(_S,"delayNextTick");IC=0,spe=10;a(wS,"startCancelableOperation");y(wS,"startCancelableOperation");a(WM,"setInterruptionPeriod");y(WM,"setInterruptionPeriod");jo=Symbol("OperationCancelled");a(Jd,"isOperationCancelled");y(Jd,"isOperationCancelled");a(tn,"interruptAndCheck");y(tn,"interruptAndCheck");Hl=class{static{a(this,"Deferred")}static{y(this,"Deferred")}constructor(){this.promise=new Promise((e,t)=>{this.resolve=r=>(e(r),this),this.reject=r=>(t(r),this)})}},Die=class a6{static{a(this,"_FullTextDocument")}static{y(this,"FullTextDocument")}constructor(t,r,i,n){this._uri=t,this._languageId=r,this._version=i,this._content=n,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(t){if(t){let r=this.offsetAt(t.start),i=this.offsetAt(t.end);return this._content.substring(r,i)}return this._content}update(t,r){for(let i of t)if(a6.isIncremental(i)){let n=qM(i.range),s=this.offsetAt(n.start),o=this.offsetAt(n.end);this._content=this._content.substring(0,s)+i.text+this._content.substring(o,this._content.length);let l=Math.max(n.start.line,0),u=Math.max(n.end.line,0),h=this._lineOffsets,d=s6(i.text,!1,s);if(u-l===d.length)for(let p=0,m=d.length;p<m;p++)h[p+l+1]=d[p];else d.length<1e4?h.splice(l+1,u-l,...d):this._lineOffsets=h=h.slice(0,l+1).concat(d,h.slice(u+1));let f=i.text.length-(o-s);if(f!==0)for(let p=l+1+d.length,m=h.length;p<m;p++)h[p]=h[p]+f}else if(a6.isFull(i))this._content=i.text,this._lineOffsets=void 0;else throw new Error("Unknown change event received");this._version=r}getLineOffsets(){return this._lineOffsets===void 0&&(this._lineOffsets=s6(this._content,!0)),this._lineOffsets}positionAt(t){t=Math.max(Math.min(t,this._content.length),0);let r=this.getLineOffsets(),i=0,n=r.length;if(n===0)return{line:0,character:t};for(;i<n;){let o=Math.floor((i+n)/2);r[o]>t?n=o:i=o+1}let s=i-1;return t=this.ensureBeforeEOL(t,r[s]),{line:s,character:t-r[s]}}offsetAt(t){let r=this.getLineOffsets();if(t.line>=r.length)return this._content.length;if(t.line<0)return 0;let i=r[t.line];if(t.character<=0)return i;let n=t.line+1<r.length?r[t.line+1]:this._content.length,s=Math.min(i+t.character,n);return this.ensureBeforeEOL(s,i)}ensureBeforeEOL(t,r){for(;t>r&&zM(this._content.charCodeAt(t-1));)t--;return t}get lineCount(){return this.getLineOffsets().length}static isIncremental(t){let r=t;return r!=null&&typeof r.text=="string"&&r.range!==void 0&&(r.rangeLength===void 0||typeof r.rangeLength=="number")}static isFull(t){let r=t;return r!=null&&typeof r.text=="string"&&r.range===void 0&&r.rangeLength===void 0}};(function(e){function t(n,s,o,l){return new Die(n,s,o,l)}a(t,"create"),y(t,"create"),e.create=t;function r(n,s,o){if(n instanceof Die)return n.update(s,o),n;throw new Error("TextDocument.update: document must be created by TextDocument.create")}a(r,"update"),y(r,"update"),e.update=r;function i(n,s){let o=n.getText(),l=xv(s.map(ope),(d,f)=>{let p=d.range.start.line-f.range.start.line;return p===0?d.range.start.character-f.range.start.character:p}),u=0,h=[];for(let d of l){let f=n.offsetAt(d.range.start);if(f<u)throw new Error("Overlapping edit");f>u&&h.push(o.substring(u,f)),d.newText.length&&h.push(d.newText),u=n.offsetAt(d.range.end)}return h.push(o.substr(u)),h.join("")}a(i,"applyEdits"),y(i,"applyEdits"),e.applyEdits=i})(yv||(yv={}));a(xv,"mergeSort");y(xv,"mergeSort");a(s6,"computeLineOffsets");y(s6,"computeLineOffsets");a(zM,"isEOL");y(zM,"isEOL");a(qM,"getWellformedRange");y(qM,"getWellformedRange");a(ope,"getWellformedEdit");y(ope,"getWellformedEdit");(()=>{"use strict";var e={975:P=>{function F(R){if(typeof R!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(R))}a(F,"e2"),y(F,"e");function A(R,N){for(var $,E="",M=0,V=-1,O=0,z=0;z<=R.length;++z){if(z<R.length)$=R.charCodeAt(z);else{if($===47)break;$=47}if($===47){if(!(V===z-1||O===1))if(V!==z-1&&O===2){if(E.length<2||M!==2||E.charCodeAt(E.length-1)!==46||E.charCodeAt(E.length-2)!==46){if(E.length>2){var U=E.lastIndexOf("/");if(U!==E.length-1){U===-1?(E="",M=0):M=(E=E.slice(0,U)).length-1-E.lastIndexOf("/"),V=z,O=0;continue}}else if(E.length===2||E.length===1){E="",M=0,V=z,O=0;continue}}N&&(E.length>0?E+="/..":E="..",M=2)}else E.length>0?E+="/"+R.slice(V+1,z):E=R.slice(V+1,z),M=z-V-1;V=z,O=0}else $===46&&O!==-1?++O:O=-1}return E}a(A,"r2"),y(A,"r");var D={resolve:y(function(){for(var R,N="",$=!1,E=arguments.length-1;E>=-1&&!$;E--){var M;E>=0?M=arguments[E]:(R===void 0&&(R=process.cwd()),M=R),F(M),M.length!==0&&(N=M+"/"+N,$=M.charCodeAt(0)===47)}return N=A(N,!$),$?N.length>0?"/"+N:"/":N.length>0?N:"."},"resolve"),normalize:y(function(R){if(F(R),R.length===0)return".";var N=R.charCodeAt(0)===47,$=R.charCodeAt(R.length-1)===47;return(R=A(R,!N)).length!==0||N||(R="."),R.length>0&&$&&(R+="/"),N?"/"+R:R},"normalize"),isAbsolute:y(function(R){return F(R),R.length>0&&R.charCodeAt(0)===47},"isAbsolute"),join:y(function(){if(arguments.length===0)return".";for(var R,N=0;N<arguments.length;++N){var $=arguments[N];F($),$.length>0&&(R===void 0?R=$:R+="/"+$)}return R===void 0?".":D.normalize(R)},"join"),relative:y(function(R,N){if(F(R),F(N),R===N||(R=D.resolve(R))===(N=D.resolve(N)))return"";for(var $=1;$<R.length&&R.charCodeAt($)===47;++$);for(var E=R.length,M=E-$,V=1;V<N.length&&N.charCodeAt(V)===47;++V);for(var O=N.length-V,z=M<O?M:O,U=-1,K=0;K<=z;++K){if(K===z){if(O>z){if(N.charCodeAt(V+K)===47)return N.slice(V+K+1);if(K===0)return N.slice(V+K)}else M>z&&(R.charCodeAt($+K)===47?U=K:K===0&&(U=0));break}var j=R.charCodeAt($+K);if(j!==N.charCodeAt(V+K))break;j===47&&(U=K)}var ae="";for(K=$+U+1;K<=E;++K)K!==E&&R.charCodeAt(K)!==47||(ae.length===0?ae+="..":ae+="/..");return ae.length>0?ae+N.slice(V+U):(V+=U,N.charCodeAt(V)===47&&++V,N.slice(V))},"relative"),_makeLong:y(function(R){return R},"_makeLong"),dirname:y(function(R){if(F(R),R.length===0)return".";for(var N=R.charCodeAt(0),$=N===47,E=-1,M=!0,V=R.length-1;V>=1;--V)if((N=R.charCodeAt(V))===47){if(!M){E=V;break}}else M=!1;return E===-1?$?"/":".":$&&E===1?"//":R.slice(0,E)},"dirname"),basename:y(function(R,N){if(N!==void 0&&typeof N!="string")throw new TypeError('"ext" argument must be a string');F(R);var $,E=0,M=-1,V=!0;if(N!==void 0&&N.length>0&&N.length<=R.length){if(N.length===R.length&&N===R)return"";var O=N.length-1,z=-1;for($=R.length-1;$>=0;--$){var U=R.charCodeAt($);if(U===47){if(!V){E=$+1;break}}else z===-1&&(V=!1,z=$+1),O>=0&&(U===N.charCodeAt(O)?--O==-1&&(M=$):(O=-1,M=z))}return E===M?M=z:M===-1&&(M=R.length),R.slice(E,M)}for($=R.length-1;$>=0;--$)if(R.charCodeAt($)===47){if(!V){E=$+1;break}}else M===-1&&(V=!1,M=$+1);return M===-1?"":R.slice(E,M)},"basename"),extname:y(function(R){F(R);for(var N=-1,$=0,E=-1,M=!0,V=0,O=R.length-1;O>=0;--O){var z=R.charCodeAt(O);if(z!==47)E===-1&&(M=!1,E=O+1),z===46?N===-1?N=O:V!==1&&(V=1):N!==-1&&(V=-1);else if(!M){$=O+1;break}}return N===-1||E===-1||V===0||V===1&&N===E-1&&N===$+1?"":R.slice(N,E)},"extname"),format:y(function(R){if(R===null||typeof R!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof R);return(function(N,$){var E=$.dir||$.root,M=$.base||($.name||"")+($.ext||"");return E?E===$.root?E+M:E+"/"+M:M})(0,R)},"format"),parse:y(function(R){F(R);var N={root:"",dir:"",base:"",ext:"",name:""};if(R.length===0)return N;var $,E=R.charCodeAt(0),M=E===47;M?(N.root="/",$=1):$=0;for(var V=-1,O=0,z=-1,U=!0,K=R.length-1,j=0;K>=$;--K)if((E=R.charCodeAt(K))!==47)z===-1&&(U=!1,z=K+1),E===46?V===-1?V=K:j!==1&&(j=1):V!==-1&&(j=-1);else if(!U){O=K+1;break}return V===-1||z===-1||j===0||j===1&&V===z-1&&V===O+1?z!==-1&&(N.base=N.name=O===0&&M?R.slice(1,z):R.slice(O,z)):(O===0&&M?(N.name=R.slice(1,V),N.base=R.slice(1,z)):(N.name=R.slice(O,V),N.base=R.slice(O,z)),N.ext=R.slice(V,z)),O>0?N.dir=R.slice(0,O-1):M&&(N.dir="/"),N},"parse"),sep:"/",delimiter:":",win32:null,posix:null};D.posix=D,P.exports=D}},t={};function r(P){var F=t[P];if(F!==void 0)return F.exports;var A=t[P]={exports:{}};return e[P](A,A.exports,r),A.exports}a(r,"r"),y(r,"r"),r.d=(P,F)=>{for(var A in F)r.o(F,A)&&!r.o(P,A)&&Object.defineProperty(P,A,{enumerable:!0,get:F[A]})},r.o=(P,F)=>Object.prototype.hasOwnProperty.call(P,F),r.r=P=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(P,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(P,"__esModule",{value:!0})};var i={};let n;r.r(i),r.d(i,{URI:y(()=>p,"URI"),Utils:y(()=>G,"Utils")}),typeof process=="object"?n=process.platform==="win32":typeof navigator=="object"&&(n=navigator.userAgent.indexOf("Windows")>=0);let s=/^\w[\w\d+.-]*$/,o=/^\//,l=/^\/\//;function u(P,F){if(!P.scheme&&F)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${P.authority}", path: "${P.path}", query: "${P.query}", fragment: "${P.fragment}"}`);if(P.scheme&&!s.test(P.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(P.path){if(P.authority){if(!o.test(P.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(l.test(P.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}a(u,"a"),y(u,"a");let h="",d="/",f=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class p{static{a(this,"l")}static{y(this,"l")}static isUri(F){return F instanceof p||!!F&&typeof F.authority=="string"&&typeof F.fragment=="string"&&typeof F.path=="string"&&typeof F.query=="string"&&typeof F.scheme=="string"&&typeof F.fsPath=="string"&&typeof F.with=="function"&&typeof F.toString=="function"}scheme;authority;path;query;fragment;constructor(F,A,D,R,N,$=!1){typeof F=="object"?(this.scheme=F.scheme||h,this.authority=F.authority||h,this.path=F.path||h,this.query=F.query||h,this.fragment=F.fragment||h):(this.scheme=(function(E,M){return E||M?E:"file"})(F,$),this.authority=A||h,this.path=(function(E,M){switch(E){case"https":case"http":case"file":M?M[0]!==d&&(M=d+M):M=d}return M})(this.scheme,D||h),this.query=R||h,this.fragment=N||h,u(this,$))}get fsPath(){return k(this,!1)}with(F){if(!F)return this;let{scheme:A,authority:D,path:R,query:N,fragment:$}=F;return A===void 0?A=this.scheme:A===null&&(A=h),D===void 0?D=this.authority:D===null&&(D=h),R===void 0?R=this.path:R===null&&(R=h),N===void 0?N=this.query:N===null&&(N=h),$===void 0?$=this.fragment:$===null&&($=h),A===this.scheme&&D===this.authority&&R===this.path&&N===this.query&&$===this.fragment?this:new g(A,D,R,N,$)}static parse(F,A=!1){let D=f.exec(F);return D?new g(D[2]||h,_(D[4]||h),_(D[5]||h),_(D[7]||h),_(D[9]||h),A):new g(h,h,h,h,h)}static file(F){let A=h;if(n&&(F=F.replace(/\\/g,d)),F[0]===d&&F[1]===d){let D=F.indexOf(d,2);D===-1?(A=F.substring(2),F=d):(A=F.substring(2,D),F=F.substring(D)||d)}return new g("file",A,F,h,h)}static from(F){let A=new g(F.scheme,F.authority,F.path,F.query,F.fragment);return u(A,!0),A}toString(F=!1){return C(this,F)}toJSON(){return this}static revive(F){if(F){if(F instanceof p)return F;{let A=new g(F);return A._formatted=F.external,A._fsPath=F._sep===m?F.fsPath:null,A}}return F}}let m=n?1:void 0;class g extends p{static{a(this,"d")}static{y(this,"d")}_formatted=null;_fsPath=null;get fsPath(){return this._fsPath||(this._fsPath=k(this,!1)),this._fsPath}toString(F=!1){return F?C(this,!0):(this._formatted||(this._formatted=C(this,!1)),this._formatted)}toJSON(){let F={$mid:1};return this._fsPath&&(F.fsPath=this._fsPath,F._sep=m),this._formatted&&(F.external=this._formatted),this.path&&(F.path=this.path),this.scheme&&(F.scheme=this.scheme),this.authority&&(F.authority=this.authority),this.query&&(F.query=this.query),this.fragment&&(F.fragment=this.fragment),F}}let x={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};function b(P,F,A){let D,R=-1;for(let N=0;N<P.length;N++){let $=P.charCodeAt(N);if($>=97&&$<=122||$>=65&&$<=90||$>=48&&$<=57||$===45||$===46||$===95||$===126||F&&$===47||A&&$===91||A&&$===93||A&&$===58)R!==-1&&(D+=encodeURIComponent(P.substring(R,N)),R=-1),D!==void 0&&(D+=P.charAt(N));else{D===void 0&&(D=P.substr(0,N));let E=x[$];E!==void 0?(R!==-1&&(D+=encodeURIComponent(P.substring(R,N)),R=-1),D+=E):R===-1&&(R=N)}}return R!==-1&&(D+=encodeURIComponent(P.substring(R))),D!==void 0?D:P}a(b,"m"),y(b,"m");function T(P){let F;for(let A=0;A<P.length;A++){let D=P.charCodeAt(A);D===35||D===63?(F===void 0&&(F=P.substr(0,A)),F+=x[D]):F!==void 0&&(F+=P[A])}return F!==void 0?F:P}a(T,"y"),y(T,"y");function k(P,F){let A;return A=P.authority&&P.path.length>1&&P.scheme==="file"?`//${P.authority}${P.path}`:P.path.charCodeAt(0)===47&&(P.path.charCodeAt(1)>=65&&P.path.charCodeAt(1)<=90||P.path.charCodeAt(1)>=97&&P.path.charCodeAt(1)<=122)&&P.path.charCodeAt(2)===58?F?P.path.substr(1):P.path[1].toLowerCase()+P.path.substr(2):P.path,n&&(A=A.replace(/\//g,"\\")),A}a(k,"v"),y(k,"v");function C(P,F){let A=F?T:b,D="",{scheme:R,authority:N,path:$,query:E,fragment:M}=P;if(R&&(D+=R,D+=":"),(N||R==="file")&&(D+=d,D+=d),N){let V=N.indexOf("@");if(V!==-1){let O=N.substr(0,V);N=N.substr(V+1),V=O.lastIndexOf(":"),V===-1?D+=A(O,!1,!1):(D+=A(O.substr(0,V),!1,!1),D+=":",D+=A(O.substr(V+1),!1,!0)),D+="@"}N=N.toLowerCase(),V=N.lastIndexOf(":"),V===-1?D+=A(N,!1,!0):(D+=A(N.substr(0,V),!1,!0),D+=N.substr(V))}if($){if($.length>=3&&$.charCodeAt(0)===47&&$.charCodeAt(2)===58){let V=$.charCodeAt(1);V>=65&&V<=90&&($=`/${String.fromCharCode(V+32)}:${$.substr(3)}`)}else if($.length>=2&&$.charCodeAt(1)===58){let V=$.charCodeAt(0);V>=65&&V<=90&&($=`${String.fromCharCode(V+32)}:${$.substr(2)}`)}D+=A($,!0,!1)}return E&&(D+="?",D+=A(E,!1,!1)),M&&(D+="#",D+=F?M:b(M,!1,!1)),D}a(C,"b"),y(C,"b");function S(P){try{return decodeURIComponent(P)}catch{return P.length>3?P.substr(0,3)+S(P.substr(3)):P}}a(S,"C"),y(S,"C");let w=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function _(P){return P.match(w)?P.replace(w,(F=>S(F))):P}a(_,"w"),y(_,"w");var L=r(975);let I=L.posix||L,B="/";var G;(function(P){P.joinPath=function(F,...A){return F.with({path:I.join(F.path,...A)})},P.resolvePath=function(F,...A){let D=F.path,R=!1;D[0]!==B&&(D=B+D,R=!0);let N=I.resolve(D,...A);return R&&N[0]===B&&!F.authority&&(N=N.substring(1)),F.with({path:N})},P.dirname=function(F){if(F.path.length===0||F.path===B)return F;let A=I.dirname(F.path);return A.length===1&&A.charCodeAt(0)===46&&(A=""),F.with({path:A})},P.basename=function(F){return I.basename(F.path)},P.extname=function(F){return I.extname(F.path)}})(G||(G={})),lpe=i})();({URI:La,Utils:G0}=lpe);(function(e){e.basename=G0.basename,e.dirname=G0.dirname,e.extname=G0.extname,e.joinPath=G0.joinPath,e.resolvePath=G0.resolvePath;let t=typeof process=="object"&&process?.platform==="win32";function r(o,l){return o?.toString()===l?.toString()}a(r,"equals"),y(r,"equals"),e.equals=r;function i(o,l){let u=typeof o=="string"?La.parse(o).path:o.path,h=typeof l=="string"?La.parse(l).path:l.path,d=u.split("/").filter(x=>x.length>0),f=h.split("/").filter(x=>x.length>0);if(t){let x=/^[A-Z]:$/;if(d[0]&&x.test(d[0])&&(d[0]=d[0].toLowerCase()),f[0]&&x.test(f[0])&&(f[0]=f[0].toLowerCase()),d[0]!==f[0])return h.substring(1)}let p=0;for(;p<d.length&&d[p]===f[p];p++);let m="../".repeat(d.length-p),g=f.slice(p).join("/");return m+g}a(i,"relative"),y(i,"relative"),e.relative=i;function n(o){return La.parse(o.toString()).toString()}a(n,"normalize"),y(n,"normalize"),e.normalize=n;function s(o,l){let u=typeof o=="string"?o:o.path,h=typeof l=="string"?l:l.path;return h.charAt(h.length-1)==="/"&&(h=h.slice(0,-1)),u.charAt(u.length-1)==="/"&&(u=u.slice(0,-1)),h===u?!0:h.length<u.length||h.charAt(u.length)!=="/"?!1:h.startsWith(u)}a(s,"contains"),y(s,"contains"),e.contains=s})(Vn||(Vn={}));jM=class{static{a(this,"UriTrie")}static{y(this,"UriTrie")}constructor(){this.root={name:"",children:new Map}}normalizeUri(e){return Vn.normalize(e)}clear(){this.root.children.clear()}insert(e,t){let r=this.getNode(this.normalizeUri(e),!0);r.element=t}delete(e){let t=this.getNode(this.normalizeUri(e),!1);t?.parent&&t.parent.children.delete(t.name)}has(e){return this.getNode(this.normalizeUri(e),!1)?.element!==void 0}hasNode(e){return this.getNode(this.normalizeUri(e),!1)!==void 0}find(e){return this.getNode(this.normalizeUri(e),!1)?.element}findNode(e){let t=this.normalizeUri(e),r=this.getNode(t,!1);if(r)return{name:r.name,uri:Vn.joinPath(La.parse(t),r.name).toString(),element:r.element}}findChildren(e){let t=this.normalizeUri(e),r=this.getNode(t,!1);return r?Array.from(r.children.values()).map(i=>({name:i.name,uri:Vn.joinPath(La.parse(t),i.name).toString(),element:i.element})):[]}all(){return this.collectValues(this.root)}findAll(e){let t=this.getNode(Vn.normalize(e),!1);return t?this.collectValues(t):[]}getNode(e,t){let r=e.split("/");e.charAt(e.length-1)==="/"&&r.pop();let i=this.root;for(let n of r){let s=i.children.get(n);if(!s)if(t)s={name:n,children:new Map,parent:i},i.children.set(n,s);else return;i=s}return i}collectValues(e){let t=[];e.element&&t.push(e.element);for(let r of e.children.values())t.push(...this.collectValues(r));return t}};(function(e){e[e.Changed=0]="Changed",e[e.Parsed=1]="Parsed",e[e.IndexedContent=2]="IndexedContent",e[e.ComputedScopes=3]="ComputedScopes",e[e.Linked=4]="Linked",e[e.IndexedReferences=5]="IndexedReferences",e[e.Validated=6]="Validated"})(mr||(mr={}));cpe=class{static{a(this,"DefaultLangiumDocumentFactory")}static{y(this,"DefaultLangiumDocumentFactory")}constructor(e){this.serviceRegistry=e.ServiceRegistry,this.textDocuments=e.workspace.TextDocuments,this.fileSystemProvider=e.workspace.FileSystemProvider}async fromUri(e,t=Ur.CancellationToken.None){let r=await this.fileSystemProvider.readFile(e);return this.createAsync(e,r,t)}fromTextDocument(e,t,r){return t=t??La.parse(e.uri),Ur.CancellationToken.is(r)?this.createAsync(t,e,r):this.create(t,e,r)}fromString(e,t,r){return Ur.CancellationToken.is(r)?this.createAsync(t,e,r):this.create(t,e,r)}fromModel(e,t){return this.create(t,{$model:e})}create(e,t,r){if(typeof t=="string"){let i=this.parse(e,t,r);return this.createLangiumDocument(i,e,void 0,t)}else if("$model"in t){let i={value:t.$model,parserErrors:[],lexerErrors:[]};return this.createLangiumDocument(i,e)}else{let i=this.parse(e,t.getText(),r);return this.createLangiumDocument(i,e,t)}}async createAsync(e,t,r){if(typeof t=="string"){let i=await this.parseAsync(e,t,r);return this.createLangiumDocument(i,e,void 0,t)}else{let i=await this.parseAsync(e,t.getText(),r);return this.createLangiumDocument(i,e,t)}}createLangiumDocument(e,t,r,i){let n;if(r)n={parseResult:e,uri:t,state:mr.Parsed,references:[],textDocument:r};else{let s=this.createTextDocumentGetter(t,i);n={parseResult:e,uri:t,state:mr.Parsed,references:[],get textDocument(){return s()}}}return e.value.$document=n,n}async update(e,t){let r=e.parseResult.value.$cstNode?.root.fullText,i=this.textDocuments?.get(e.uri.toString()),n=i?i.getText():await this.fileSystemProvider.readFile(e.uri);if(i)Object.defineProperty(e,"textDocument",{value:i});else{let s=this.createTextDocumentGetter(e.uri,n);Object.defineProperty(e,"textDocument",{get:s})}return r!==n&&(e.parseResult=await this.parseAsync(e.uri,n,t),e.parseResult.value.$document=e),e.state=mr.Parsed,e}parse(e,t,r){return this.serviceRegistry.getServices(e).parser.LangiumParser.parse(t,r)}parseAsync(e,t,r){return this.serviceRegistry.getServices(e).parser.AsyncParser.parse(t,r)}createTextDocumentGetter(e,t){let r=this.serviceRegistry,i;return()=>i??(i=yv.create(e.toString(),r.getServices(e).LanguageMetaData.languageId,0,t??""))}},upe=class{static{a(this,"DefaultLangiumDocuments")}static{y(this,"DefaultLangiumDocuments")}constructor(e){this.documentTrie=new jM,this.services=e,this.langiumDocumentFactory=e.workspace.LangiumDocumentFactory,this.documentBuilder=()=>e.workspace.DocumentBuilder}get all(){return Br(this.documentTrie.all())}addDocument(e){let t=e.uri.toString();if(this.documentTrie.has(t))throw new Error(`A document with the URI '${t}' is already present.`);this.documentTrie.insert(t,e)}getDocument(e){let t=e.toString();return this.documentTrie.find(t)}getDocuments(e){let t=e.toString();return this.documentTrie.findAll(t)}async getOrCreateDocument(e,t){let r=this.getDocument(e);return r||(r=await this.langiumDocumentFactory.fromUri(e,t),this.addDocument(r),r)}createDocument(e,t,r){if(r)return this.langiumDocumentFactory.fromString(t,e,r).then(i=>(this.addDocument(i),i));{let i=this.langiumDocumentFactory.fromString(t,e);return this.addDocument(i),i}}hasDocument(e){return this.documentTrie.has(e.toString())}invalidateDocument(e){let t=e.toString(),r=this.documentTrie.find(t);return r&&this.documentBuilder().resetToState(r,mr.Changed),r}deleteDocument(e){let t=e.toString(),r=this.documentTrie.find(t);return r&&(r.state=mr.Changed,this.documentTrie.delete(t)),r}deleteDocuments(e){let t=e.toString(),r=this.documentTrie.findAll(t);for(let i of r)i.state=mr.Changed;return this.documentTrie.delete(t),r}},id=Symbol("RefResolving"),hpe=class{static{a(this,"DefaultLinker")}static{y(this,"DefaultLinker")}constructor(e){this.reflection=e.shared.AstReflection,this.langiumDocuments=()=>e.shared.workspace.LangiumDocuments,this.scopeProvider=e.references.ScopeProvider,this.astNodeLocator=e.workspace.AstNodeLocator,this.profiler=e.shared.profilers.LangiumProfiler,this.languageId=e.LanguageMetaData.languageId}async link(e,t=Ur.CancellationToken.None){if(this.profiler?.isActive("linking")){let r=this.profiler.createTask("linking",this.languageId);r.start();try{for(let i of Ys(e.parseResult.value))await tn(t),fm(i).forEach(n=>{let s=`${i.$type}:${n.property}`;r.startSubTask(s);try{this.doLink(n,e)}finally{r.stopSubTask(s)}})}finally{r.stop()}}else for(let r of Ys(e.parseResult.value))await tn(t),fm(r).forEach(i=>this.doLink(i,e))}doLink(e,t){let r=e.reference;if("_ref"in r&&r._ref===void 0){r._ref=id;try{let i=this.getCandidate(e);if(sd(i))r._ref=i;else{r._nodeDescription=i;let n=this.loadAstNode(i);r._ref=n??this.createLinkingError(e,i)}}catch(i){console.error(`An error occurred while resolving reference to '${r.$refText}':`,i);let n=i.message??String(i);r._ref={info:e,message:`An error occurred while resolving reference to '${r.$refText}': ${n}`}}t.references.push(r)}else if("_items"in r&&r._items===void 0){r._items=id;try{let i=this.getCandidates(e),n=[];if(sd(i))r._linkingError=i;else for(let s of i){let o=this.loadAstNode(s);o&&n.push({ref:o,$nodeDescription:s})}r._items=n}catch(i){r._linkingError={info:e,message:`An error occurred while resolving reference to '${r.$refText}': ${i}`},r._items=[]}t.references.push(r)}}unlink(e){for(let t of e.references)"_ref"in t?(t._ref=void 0,delete t._nodeDescription):"_items"in t&&(t._items=void 0,delete t._linkingError);e.references=[]}getCandidate(e){return this.scopeProvider.getScope(e).getElement(e.reference.$refText)??this.createLinkingError(e)}getCandidates(e){let r=this.scopeProvider.getScope(e).getElements(e.reference.$refText).distinct(i=>`${i.documentUri}#${i.path}`).toArray();return r.length>0?r:this.createLinkingError(e)}buildReference(e,t,r,i){let n=this,s={$refNode:r,$refText:i,_ref:void 0,get ref(){if(Di(this._ref))return this._ref;if(R6(this._nodeDescription)){let o=n.loadAstNode(this._nodeDescription);this._ref=o??n.createLinkingError({reference:s,container:e,property:t},this._nodeDescription)}else if(this._ref===void 0){this._ref=id;let o=sm(e).$document,l=n.getLinkedNode({reference:s,container:e,property:t});if(l.error&&o&&o.state<mr.ComputedScopes)return this._ref=void 0;this._ref=l.node??l.error,this._nodeDescription=l.descr,o?.references.push(this)}else this._ref===id&&n.throwCyclicReferenceError(e,t,i);return Di(this._ref)?this._ref:void 0},get $nodeDescription(){return this._nodeDescription},get error(){return sd(this._ref)?this._ref:void 0}};return s}buildMultiReference(e,t,r,i){let n=this,s={$refNode:r,$refText:i,_items:void 0,get items(){if(Array.isArray(this._items))return this._items;if(this._items===void 0){this._items=id;let o=sm(e).$document,l=n.getCandidates({reference:s,container:e,property:t}),u=[];if(sd(l))this._linkingError=l;else for(let h of l){let d=n.loadAstNode(h);d&&u.push({ref:d,$nodeDescription:h})}this._items=u,o?.references.push(this)}else this._items===id&&n.throwCyclicReferenceError(e,t,i);return Array.isArray(this._items)?this._items:[]},get error(){if(this._linkingError)return this._linkingError;if(!(this.items.length>0))return this._linkingError=n.createLinkingError({reference:s,container:e,property:t})}};return s}throwCyclicReferenceError(e,t,r){throw new Error(`Cyclic reference resolution detected: ${this.astNodeLocator.getAstNodePath(e)}/${t} (symbol '${r}')`)}getLinkedNode(e){try{let t=this.getCandidate(e);if(sd(t))return{error:t};let r=this.loadAstNode(t);return r?{node:r,descr:t}:{descr:t,error:this.createLinkingError(e,t)}}catch(t){console.error(`An error occurred while resolving reference to '${e.reference.$refText}':`,t);let r=t.message??String(t);return{error:{info:e,message:`An error occurred while resolving reference to '${e.reference.$refText}': ${r}`}}}}loadAstNode(e){if(e.node)return e.node;let t=this.langiumDocuments().getDocument(e.documentUri);if(t)return this.astNodeLocator.getAstNode(t.parseResult.value,e.path)}createLinkingError(e,t){let r=sm(e.container).$document;r&&r.state<mr.ComputedScopes&&console.warn(`Attempted reference resolution before document reached ComputedScopes state (${r.uri}).`);let i=this.reflection.getReferenceType(e);return{info:e,message:`Could not resolve reference to ${i} named '${e.reference.$refText}'.`,targetDescription:t}}};a(UM,"isNamed");y(UM,"isNamed");dpe=class{static{a(this,"DefaultNameProvider")}static{y(this,"DefaultNameProvider")}getName(e){if(UM(e))return e.name}getNameNode(e){return $v(e.$cstNode,"name")}},fpe=class{static{a(this,"DefaultReferences")}static{y(this,"DefaultReferences")}constructor(e){this.nameProvider=e.references.NameProvider,this.index=e.shared.workspace.IndexManager,this.nodeLocator=e.workspace.AstNodeLocator,this.documents=e.shared.workspace.LangiumDocuments,this.hasMultiReference=Ys(e.Grammar).some(t=>Bd(t)&&t.isMulti)}findDeclarations(e){if(e){let t=TN(e),r=e.astNode;if(t&&r){let i=r[t.feature];if(Fn(i)||Uo(i))return PC(i);if(Array.isArray(i)){for(let n of i)if((Fn(n)||Uo(n))&&n.$refNode&&n.$refNode.offset<=e.offset&&n.$refNode.end>=e.end)return PC(n)}}if(r){let i=this.nameProvider.getNameNode(r);if(i&&(i===e||J6(e,i)))return this.getSelfNodes(r)}}return[]}getSelfNodes(e){if(this.hasMultiReference){let t=this.index.findAllReferences(e,this.nodeLocator.getAstNodePath(e)),r=this.getNodeFromReferenceDescription(t.head());if(r){for(let i of fm(r))if(Uo(i.reference)&&i.reference.items.some(n=>n.ref===e))return i.reference.items.map(n=>n.ref)}return[e]}else return[e]}getNodeFromReferenceDescription(e){if(!e)return;let t=this.documents.getDocument(e.sourceUri);if(t)return this.nodeLocator.getAstNode(t.parseResult.value,e.sourcePath)}findDeclarationNodes(e){let t=this.findDeclarations(e),r=[];for(let i of t){let n=this.nameProvider.getNameNode(i)??i.$cstNode;n&&r.push(n)}return r}findReferences(e,t){let r=[];t.includeDeclaration&&r.push(...this.getSelfReferences(e));let i=this.index.findAllReferences(e,this.nodeLocator.getAstNodePath(e));return t.documentUri&&(i=i.filter(n=>Vn.equals(n.sourceUri,t.documentUri))),r.push(...i),Br(r)}getSelfReferences(e){let t=this.getSelfNodes(e),r=[];for(let i of t){let n=this.nameProvider.getNameNode(i);if(n){let s=Hs(i),o=this.nodeLocator.getAstNodePath(i);r.push({sourceUri:s.uri,sourcePath:o,targetUri:s.uri,targetPath:o,segment:gm(n),local:!0})}}return r}},Yl=class{static{a(this,"MultiMap")}static{y(this,"MultiMap")}constructor(e){if(this.map=new Map,e)for(let[t,r]of e)this.add(t,r)}get size(){return v1.sum(Br(this.map.values()).map(e=>e.length))}clear(){this.map.clear()}delete(e,t){if(t===void 0)return this.map.delete(e);{let r=this.map.get(e);if(r){let i=r.indexOf(t);if(i>=0)return r.length===1?this.map.delete(e):r.splice(i,1),!0}return!1}}get(e){return this.map.get(e)??[]}getStream(e){let t=this.map.get(e);return t?Br(t):um}has(e,t){if(t===void 0)return this.map.has(e);{let r=this.map.get(e);return r?r.indexOf(t)>=0:!1}}add(e,t){return this.map.has(e)?this.map.get(e).push(t):this.map.set(e,[t]),this}addAll(e,t){return this.map.has(e)?this.map.get(e).push(...t):this.map.set(e,Array.from(t)),this}forEach(e){this.map.forEach((t,r)=>t.forEach(i=>e(i,r,this)))}[Symbol.iterator](){return this.entries().iterator()}entries(){return Br(this.map.entries()).flatMap(([e,t])=>t.map(r=>[e,r]))}keys(){return Br(this.map.keys())}values(){return Br(this.map.values()).flat()}entriesGroupedByKey(){return Br(this.map.entries())}},bv=class{static{a(this,"BiMap")}static{y(this,"BiMap")}get size(){return this.map.size}constructor(e){if(this.map=new Map,this.inverse=new Map,e)for(let[t,r]of e)this.set(t,r)}clear(){this.map.clear(),this.inverse.clear()}set(e,t){return this.map.set(e,t),this.inverse.set(t,e),this}get(e){return this.map.get(e)}getKey(e){return this.inverse.get(e)}delete(e){let t=this.map.get(e);return t!==void 0?(this.map.delete(e),this.inverse.delete(t),!0):!1}},ppe=class{static{a(this,"DefaultScopeComputation")}static{y(this,"DefaultScopeComputation")}constructor(e){this.nameProvider=e.references.NameProvider,this.descriptions=e.workspace.AstNodeDescriptionProvider}async collectExportedSymbols(e,t=Ur.CancellationToken.None){return this.collectExportedSymbolsForNode(e.parseResult.value,e,void 0,t)}async collectExportedSymbolsForNode(e,t,r=W1,i=Ur.CancellationToken.None){let n=[];this.addExportedSymbol(e,n,t);for(let s of r(e))await tn(i),this.addExportedSymbol(s,n,t);return n}addExportedSymbol(e,t,r){let i=this.nameProvider.getName(e);i&&t.push(this.descriptions.createDescription(e,i,r))}async collectLocalSymbols(e,t=Ur.CancellationToken.None){let r=e.parseResult.value,i=new Yl;for(let n of Kl(r))await tn(t),this.addLocalSymbol(n,e,i);return i}addLocalSymbol(e,t,r){let i=e.$container;if(i){let n=this.nameProvider.getName(e);n&&r.add(i,this.descriptions.createDescription(e,n,t))}}},o6=class{static{a(this,"StreamScope")}static{y(this,"StreamScope")}constructor(e,t,r){this.elements=e,this.outerScope=t,this.caseInsensitive=r?.caseInsensitive??!1,this.concatOuterScope=r?.concatOuterScope??!0}getAllElements(){return this.outerScope?this.elements.concat(this.outerScope.getAllElements()):this.elements}getElement(e){let t=this.caseInsensitive?e.toLowerCase():e,r=this.caseInsensitive?this.elements.find(i=>i.name.toLowerCase()===t):this.elements.find(i=>i.name===e);if(r)return r;if(this.outerScope)return this.outerScope.getElement(e)}getElements(e){let t=this.caseInsensitive?e.toLowerCase():e,r=this.caseInsensitive?this.elements.filter(i=>i.name.toLowerCase()===t):this.elements.filter(i=>i.name===e);return(this.concatOuterScope||r.isEmpty())&&this.outerScope?r.concat(this.outerScope.getElements(e)):r}},JYe=class{static{a(this,"MapScope")}static{y(this,"MapScope")}constructor(e,t,r){this.elements=new Map,this.caseInsensitive=r?.caseInsensitive??!1,this.concatOuterScope=r?.concatOuterScope??!0;for(let i of e){let n=this.caseInsensitive?i.name.toLowerCase():i.name;this.elements.set(n,i)}this.outerScope=t}getElement(e){let t=this.caseInsensitive?e.toLowerCase():e,r=this.elements.get(t);if(r)return r;if(this.outerScope)return this.outerScope.getElement(e)}getElements(e){let t=this.caseInsensitive?e.toLowerCase():e,r=this.elements.get(t),i=r?[r]:[];return(this.concatOuterScope||i.length>0)&&this.outerScope?Br(i).concat(this.outerScope.getElements(e)):Br(i)}getAllElements(){let e=Br(this.elements.values());return this.outerScope&&(e=e.concat(this.outerScope.getAllElements())),e}},mpe=class{static{a(this,"MultiMapScope")}static{y(this,"MultiMapScope")}constructor(e,t,r){this.elements=new Yl,this.caseInsensitive=r?.caseInsensitive??!1,this.concatOuterScope=r?.concatOuterScope??!0;for(let i of e){let n=this.caseInsensitive?i.name.toLowerCase():i.name;this.elements.add(n,i)}this.outerScope=t}getElement(e){let t=this.caseInsensitive?e.toLowerCase():e,r=this.elements.get(t)[0];if(r)return r;if(this.outerScope)return this.outerScope.getElement(e)}getElements(e){let t=this.caseInsensitive?e.toLowerCase():e,r=this.elements.get(t);return(this.concatOuterScope||r.length===0)&&this.outerScope?Br(r).concat(this.outerScope.getElements(e)):Br(r)}getAllElements(){let e=Br(this.elements.values());return this.outerScope&&(e=e.concat(this.outerScope.getAllElements())),e}},eKe={getElement(){},getElements(){return um},getAllElements(){return um}},ES=class{static{a(this,"DisposableCache")}static{y(this,"DisposableCache")}constructor(){this.toDispose=[],this.isDisposed=!1}onDispose(e){this.toDispose.push(e)}dispose(){this.throwIfDisposed(),this.clear(),this.isDisposed=!0,this.toDispose.forEach(e=>e.dispose())}throwIfDisposed(){if(this.isDisposed)throw new Error("This cache has already been disposed")}},HM=class extends ES{static{a(this,"SimpleCache")}static{y(this,"SimpleCache")}constructor(){super(...arguments),this.cache=new Map}has(e){return this.throwIfDisposed(),this.cache.has(e)}set(e,t){this.throwIfDisposed(),this.cache.set(e,t)}get(e,t){if(this.throwIfDisposed(),this.cache.has(e))return this.cache.get(e);if(t){let r=t();return this.cache.set(e,r),r}else return}delete(e){return this.throwIfDisposed(),this.cache.delete(e)}clear(){this.throwIfDisposed(),this.cache.clear()}},AS=class extends ES{static{a(this,"ContextCache")}static{y(this,"ContextCache")}constructor(e){super(),this.cache=new Map,this.converter=e??(t=>t)}has(e,t){return this.throwIfDisposed(),this.cacheForContext(e).has(t)}set(e,t,r){this.throwIfDisposed(),this.cacheForContext(e).set(t,r)}get(e,t,r){this.throwIfDisposed();let i=this.cacheForContext(e);if(i.has(t))return i.get(t);if(r){let n=r();return i.set(t,n),n}else return}delete(e,t){return this.throwIfDisposed(),this.cacheForContext(e).delete(t)}clear(e){if(this.throwIfDisposed(),e){let t=this.converter(e);this.cache.delete(t)}else this.cache.clear()}cacheForContext(e){let t=this.converter(e),r=this.cache.get(t);return r||(r=new Map,this.cache.set(t,r)),r}},gpe=class extends AS{static{a(this,"DocumentCache")}static{y(this,"DocumentCache")}constructor(e,t){super(r=>r.toString()),t?(this.toDispose.push(e.workspace.DocumentBuilder.onDocumentPhase(t,r=>{this.clear(r.uri.toString())})),this.toDispose.push(e.workspace.DocumentBuilder.onUpdate((r,i)=>{for(let n of i)this.clear(n)}))):this.toDispose.push(e.workspace.DocumentBuilder.onUpdate((r,i)=>{let n=r.concat(i);for(let s of n)this.clear(s)}))}},YM=class extends HM{static{a(this,"WorkspaceCache")}static{y(this,"WorkspaceCache")}constructor(e,t){super(),t?(this.toDispose.push(e.workspace.DocumentBuilder.onBuildPhase(t,()=>{this.clear()})),this.toDispose.push(e.workspace.DocumentBuilder.onUpdate((r,i)=>{i.length>0&&this.clear()}))):this.toDispose.push(e.workspace.DocumentBuilder.onUpdate(()=>{this.clear()}))}},ype=class{static{a(this,"DefaultScopeProvider")}static{y(this,"DefaultScopeProvider")}constructor(e){this.reflection=e.shared.AstReflection,this.nameProvider=e.references.NameProvider,this.descriptions=e.workspace.AstNodeDescriptionProvider,this.indexManager=e.shared.workspace.IndexManager,this.globalScopeCache=new YM(e.shared)}getScope(e){let t=[],r=this.reflection.getReferenceType(e),i=Hs(e.container).localSymbols;if(i){let s=e.container;do i.has(s)&&t.push(i.getStream(s).filter(o=>this.reflection.isSubtype(o.type,r))),s=s.$container;while(s)}let n=this.getGlobalScope(r,e);for(let s=t.length-1;s>=0;s--)n=this.createScope(t[s],n);return n}createScope(e,t,r){return new o6(Br(e),t,r)}createScopeForNodes(e,t,r){let i=Br(e).map(n=>{let s=this.nameProvider.getName(n);if(s)return this.descriptions.createDescription(n,s)}).nonNullable();return new o6(i,t,r)}getGlobalScope(e,t){return this.globalScopeCache.get(e,()=>new mpe(this.indexManager.allElements(e)))}};a(KM,"isAstNodeWithComment");y(KM,"isAstNodeWithComment");a(l6,"isIntermediateReference");y(l6,"isIntermediateReference");xpe=class{static{a(this,"DefaultJsonSerializer")}static{y(this,"DefaultJsonSerializer")}constructor(e){this.ignoreProperties=new Set(["$container","$containerProperty","$containerIndex","$document","$cstNode"]),this.langiumDocuments=e.shared.workspace.LangiumDocuments,this.astNodeLocator=e.workspace.AstNodeLocator,this.nameProvider=e.references.NameProvider,this.commentProvider=e.documentation.CommentProvider}serialize(e,t){let r=t??{},i=t?.replacer,n=y((o,l)=>this.replacer(o,l,r),"defaultReplacer"),s=i?(o,l)=>i(o,l,n):n;try{return this.currentDocument=Hs(e),JSON.stringify(e,s,t?.space)}finally{this.currentDocument=void 0}}deserialize(e,t){let r=t??{},i=JSON.parse(e);return this.linkNode(i,i,r),i}replacer(e,t,{refText:r,sourceText:i,textRegions:n,comments:s,uriConverter:o}){if(!this.ignoreProperties.has(e))if(Fn(t)){let l=t.ref,u=r?t.$refText:void 0;if(l){let h=Hs(l),d="";this.currentDocument&&this.currentDocument!==h&&(o?d=o(h.uri,l):d=h.uri.toString());let f=this.astNodeLocator.getAstNodePath(l);return{$ref:`${d}#${f}`,$refText:u}}else return{$error:t.error?.message??"Could not resolve reference",$refText:u}}else if(Uo(t)){let l=r?t.$refText:void 0,u=[];for(let h of t.items){let d=h.ref,f=Hs(h.ref),p="";this.currentDocument&&this.currentDocument!==f&&(o?p=o(f.uri,d):p=f.uri.toString());let m=this.astNodeLocator.getAstNodePath(d);u.push(`${p}#${m}`)}return{$refs:u,$refText:l}}else if(Di(t)){let l;if(n&&(l=this.addAstNodeRegionWithAssignmentsTo({...t}),(!e||t.$document)&&l?.$textRegion&&(l.$textRegion.documentURI=this.currentDocument?.uri.toString())),i&&!e&&(l??(l={...t}),l.$sourceText=t.$cstNode?.text),s){l??(l={...t});let u=this.commentProvider.getComment(t);u&&(l.$comment=u.replace(/\r/g,""))}return l??t}else return t}addAstNodeRegionWithAssignmentsTo(e){let t=y(r=>({offset:r.offset,end:r.end,length:r.length,range:r.range}),"createDocumentSegment");if(e.$cstNode){let r=e.$textRegion=t(e.$cstNode),i=r.assignments={};return Object.keys(e).filter(n=>!n.startsWith("$")).forEach(n=>{let s=xN(e.$cstNode,n).map(t);s.length!==0&&(i[n]=s)}),e}}linkNode(e,t,r,i,n,s){for(let[l,u]of Object.entries(e))if(Array.isArray(u))for(let h=0;h<u.length;h++){let d=u[h];l6(d)?u[h]=this.reviveReference(e,l,t,d,r):Di(d)&&this.linkNode(d,t,r,e,l,h)}else l6(u)?e[l]=this.reviveReference(e,l,t,u,r):Di(u)&&this.linkNode(u,t,r,e,l);let o=e;o.$container=i,o.$containerProperty=n,o.$containerIndex=s}reviveReference(e,t,r,i,n){let s=i.$refText,o=i.$error,l;if(i.$ref){let u=this.getRefNode(r,i.$ref,n.uriConverter);if(Di(u))return s||(s=this.nameProvider.getName(u)),{$refText:s??"",ref:u};o=u}else if(i.$refs){let u=[];for(let h of i.$refs){let d=this.getRefNode(r,h,n.uriConverter);Di(d)&&u.push({ref:d})}if(u.length===0)l={$refText:s??"",items:u},o??(o="Could not resolve multi-reference");else return{$refText:s??"",items:u}}if(o)return l??(l={$refText:s??"",ref:void 0}),l.error={info:{container:e,property:t,reference:l},message:o},l}getRefNode(e,t,r){try{let i=t.indexOf("#");if(i===0){let l=this.astNodeLocator.getAstNode(e,t.substring(1));return l||"Could not resolve path: "+t}if(i<0){let l=r?r(t):La.parse(t),u=this.langiumDocuments.getDocument(l);return u?u.parseResult.value:"Could not find document for URI: "+t}let n=r?r(t.substring(0,i)):La.parse(t.substring(0,i)),s=this.langiumDocuments.getDocument(n);if(!s)return"Could not find document for URI: "+t;if(i===t.length-1)return s.parseResult.value;let o=this.astNodeLocator.getAstNode(s.parseResult.value,t.substring(i+1));return o||"Could not resolve URI: "+t}catch(i){return String(i)}}},bpe=class{static{a(this,"DefaultServiceRegistry")}static{y(this,"DefaultServiceRegistry")}get map(){return this.fileExtensionMap}constructor(e){this.languageIdMap=new Map,this.fileExtensionMap=new Map,this.fileNameMap=new Map,this.textDocuments=e?.workspace.TextDocuments}register(e){let t=e.LanguageMetaData;for(let r of t.fileExtensions)this.fileExtensionMap.has(r)&&console.warn(`The file extension ${r} is used by multiple languages. It is now assigned to '${t.languageId}'.`),this.fileExtensionMap.set(r,e);if(t.fileNames)for(let r of t.fileNames)this.fileNameMap.has(r)&&console.warn(`The file name ${r} is used by multiple languages. It is now assigned to '${t.languageId}'.`),this.fileNameMap.set(r,e);this.languageIdMap.set(t.languageId,e)}getServices(e){if(this.languageIdMap.size===0)throw new Error("The service registry is empty. Use `register` to register the services of a language.");let t=this.textDocuments?.get(e)?.languageId;if(t!==void 0){let s=this.languageIdMap.get(t);if(s)return s}let r=Vn.extname(e),i=Vn.basename(e),n=this.fileNameMap.get(i)??this.fileExtensionMap.get(r);if(!n)throw t?new Error(`The service registry contains no services for the extension '${r}' for language '${t}'.`):new Error(`The service registry contains no services for the extension '${r}'.`);return n}hasServices(e){try{return this.getServices(e),!0}catch{return!1}}get all(){return Array.from(this.languageIdMap.values())}};a(_d,"diagnosticData");y(_d,"diagnosticData");(function(e){e.defaults=["fast","slow","built-in"],e.all=e.defaults})(Tv||(Tv={}));Tpe=class{static{a(this,"ValidationRegistry")}static{y(this,"ValidationRegistry")}constructor(e){this.entries=new Yl,this.knownCategories=new Set(Tv.defaults),this.entriesBefore=[],this.entriesAfter=[],this.reflection=e.shared.AstReflection}register(e,t=this,r="fast"){if(r==="built-in")throw new Error("The 'built-in' category is reserved for lexer, parser, and linker errors.");this.knownCategories.add(r);for(let[i,n]of Object.entries(e)){let s=n;if(Array.isArray(s))for(let o of s){let l={check:this.wrapValidationException(o,t),category:r};this.addEntry(i,l)}else if(typeof s=="function"){let o={check:this.wrapValidationException(s,t),category:r};this.addEntry(i,o)}else Eu(s)}}wrapValidationException(e,t){return async(r,i,n)=>{await this.handleException(()=>e.call(t,r,i,n),"An error occurred during validation",i,r)}}async handleException(e,t,r,i){try{await e()}catch(n){if(Jd(n))throw n;console.error(`${t}:`,n),n instanceof Error&&n.stack&&console.error(n.stack);let s=n instanceof Error?n.message:String(n);r("error",`${t}: ${s}`,{node:i})}}addEntry(e,t){if(e==="AstNode"){this.entries.add("AstNode",t);return}for(let r of this.reflection.getAllSubTypes(e))this.entries.add(r,t)}getChecks(e,t){let r=Br(this.entries.get(e)).concat(this.entries.get("AstNode"));return t&&(r=r.filter(i=>t.includes(i.category))),r.map(i=>i.check)}registerBeforeDocument(e,t=this){this.entriesBefore.push(this.wrapPreparationException(e,"An error occurred during set-up of the validation",t))}registerAfterDocument(e,t=this){this.entriesAfter.push(this.wrapPreparationException(e,"An error occurred during tear-down of the validation",t))}wrapPreparationException(e,t,r){return async(i,n,s,o)=>{await this.handleException(()=>e.call(r,i,n,s,o),t,n,i)}}get checksBefore(){return this.entriesBefore}get checksAfter(){return this.entriesAfter}getAllValidationCategories(e){return this.knownCategories}},kpe=Object.freeze({validateNode:!0,validateChildren:!0}),Cpe=class{static{a(this,"DefaultDocumentValidator")}static{y(this,"DefaultDocumentValidator")}constructor(e){this.validationRegistry=e.validation.ValidationRegistry,this.metadata=e.LanguageMetaData,this.profiler=e.shared.profilers.LangiumProfiler,this.languageId=e.LanguageMetaData.languageId}async validateDocument(e,t={},r=Ur.CancellationToken.None){let i=e.parseResult,n=[];if(await tn(r),(!t.categories||t.categories.includes("built-in"))&&(this.processLexingErrors(i,n,t),t.stopAfterLexingErrors&&n.some(s=>s.data?.code===ls.LexingError)||(this.processParsingErrors(i,n,t),t.stopAfterParsingErrors&&n.some(s=>s.data?.code===ls.ParsingError))||(this.processLinkingErrors(e,n,t),t.stopAfterLinkingErrors&&n.some(s=>s.data?.code===ls.LinkingError))))return n;try{n.push(...await this.validateAst(i.value,t,r))}catch(s){if(Jd(s))throw s;console.error("An error occurred during validation:",s)}return await tn(r),n}processLexingErrors(e,t,r){let i=[...e.lexerErrors,...e.lexerReport?.diagnostics??[]];for(let n of i){let s=n.severity??"error",o={severity:b1(s),range:{start:{line:n.line-1,character:n.column-1},end:{line:n.line-1,character:n.column+n.length-1}},message:n.message,data:QM(s),source:this.getSource()};t.push(o)}}processParsingErrors(e,t,r){for(let i of e.parserErrors){let n;if(isNaN(i.token.startOffset)){if("previousToken"in i){let s=i.previousToken;if(isNaN(s.startOffset)){let o={line:0,character:0};n={start:o,end:o}}else{let o={line:s.endLine-1,character:s.endColumn};n={start:o,end:o}}}}else n=S1(i.token);if(n){let s={severity:b1("error"),range:n,message:i.message,data:_d(ls.ParsingError),source:this.getSource()};t.push(s)}}}processLinkingErrors(e,t,r){for(let i of e.references){let n=i.error;if(n){let s={node:n.info.container,range:i.$refNode?.range,property:n.info.property,index:n.info.index,data:{code:ls.LinkingError,containerType:n.info.container.$type,property:n.info.property,refText:n.info.reference.$refText}};t.push(this.toDiagnostic("error",n.message,s))}}}async validateAst(e,t,r=Ur.CancellationToken.None){let i=[],n=y((s,o,l)=>{i.push(this.toDiagnostic(s,o,l))},"acceptor");return await this.validateAstBefore(e,t,n,r),await this.validateAstNodes(e,t,n,r),await this.validateAstAfter(e,t,n,r),i}async validateAstBefore(e,t,r,i=Ur.CancellationToken.None){let n=this.validationRegistry.checksBefore;for(let s of n)await tn(i),await s(e,r,t.categories??[],i)}async validateAstNodes(e,t,r,i=Ur.CancellationToken.None){if(this.profiler?.isActive("validating")){let n=this.profiler.createTask("validating",this.languageId);n.start();try{let s=Ys(e).iterator();for(let o of s){n.startSubTask(o.$type);let l=this.validateSingleNodeOptions(o,t);if(l.validateNode)try{let u=this.validationRegistry.getChecks(o.$type,t.categories);for(let h of u)await h(o,r,i)}finally{n.stopSubTask(o.$type)}l.validateChildren||s.prune()}}finally{n.stop()}}else{let n=Ys(e).iterator();for(let s of n){await tn(i);let o=this.validateSingleNodeOptions(s,t);if(o.validateNode){let l=this.validationRegistry.getChecks(s.$type,t.categories);for(let u of l)await u(s,r,i)}o.validateChildren||n.prune()}}}validateSingleNodeOptions(e,t){return kpe}async validateAstAfter(e,t,r,i=Ur.CancellationToken.None){let n=this.validationRegistry.checksAfter;for(let s of n)await tn(i),await s(e,r,t.categories??[],i)}toDiagnostic(e,t,r){return{message:t,range:XM(r),severity:b1(e),code:r.code,codeDescription:r.codeDescription,tags:r.tags,relatedInformation:r.relatedInformation,data:r.data,source:this.getSource()}}getSource(){return this.metadata.languageId}};a(XM,"getDiagnosticRange");y(XM,"getDiagnosticRange");a(b1,"toDiagnosticSeverity");y(b1,"toDiagnosticSeverity");a(QM,"toDiagnosticData");y(QM,"toDiagnosticData");(function(e){e.LexingError="lexing-error",e.LexingWarning="lexing-warning",e.LexingInfo="lexing-info",e.LexingHint="lexing-hint",e.ParsingError="parsing-error",e.LinkingError="linking-error"})(ls||(ls={}));vpe=class{static{a(this,"DefaultAstNodeDescriptionProvider")}static{y(this,"DefaultAstNodeDescriptionProvider")}constructor(e){this.astNodeLocator=e.workspace.AstNodeLocator,this.nameProvider=e.references.NameProvider}createDescription(e,t,r){let i=r??Hs(e);t??(t=this.nameProvider.getName(e));let n=this.astNodeLocator.getAstNodePath(e);if(!t)throw new Error(`Node at path ${n} has no name.`);let s,o=y(()=>s??(s=gm(this.nameProvider.getNameNode(e)??e.$cstNode)),"nameSegmentGetter");return{node:e,name:t,get nameSegment(){return o()},selectionSegment:gm(e.$cstNode),type:e.$type,documentUri:i.uri,path:n}}},Spe=class{static{a(this,"DefaultReferenceDescriptionProvider")}static{y(this,"DefaultReferenceDescriptionProvider")}constructor(e){this.nodeLocator=e.workspace.AstNodeLocator}async createDescriptions(e,t=Ur.CancellationToken.None){let r=[],i=e.parseResult.value;for(let n of Ys(i))await tn(t),fm(n).forEach(s=>{s.reference.error||r.push(...this.createInfoDescriptions(s))});return r}createInfoDescriptions(e){let t=e.reference;if(t.error||!t.$refNode)return[];let r=[];Fn(t)&&t.$nodeDescription?r=[t.$nodeDescription]:Uo(t)&&(r=t.items.map(l=>l.$nodeDescription).filter(l=>l!==void 0));let i=Hs(e.container).uri,n=this.nodeLocator.getAstNodePath(e.container),s=[],o=gm(t.$refNode);for(let l of r)s.push({sourceUri:i,sourcePath:n,targetUri:l.documentUri,targetPath:l.path,segment:o,local:Vn.equals(l.documentUri,i)});return s}},_pe=class{static{a(this,"DefaultAstNodeLocator")}static{y(this,"DefaultAstNodeLocator")}constructor(){this.segmentSeparator="/",this.indexSeparator="@"}getAstNodePath(e){if(e.$container){let t=this.getAstNodePath(e.$container),r=this.getPathSegment(e);return t+this.segmentSeparator+r}return""}getPathSegment({$containerProperty:e,$containerIndex:t}){if(!e)throw new Error("Missing '$containerProperty' in AST node.");return t!==void 0?e+this.indexSeparator+t:e}getAstNode(e,t){return t.split(this.segmentSeparator).reduce((i,n)=>{if(!i||n.length===0)return i;let s=n.indexOf(this.indexSeparator);if(s>0){let o=n.substring(0,s),l=parseInt(n.substring(s+1));return i[o]?.[l]}return i[n]},e)}},RS={};vv(RS,_6(Cm(),1));wpe=class{static{a(this,"DefaultConfigurationProvider")}static{y(this,"DefaultConfigurationProvider")}constructor(e){this._ready=new Hl,this.onConfigurationSectionUpdateEmitter=new RS.Emitter,this.settings={},this.workspaceConfig=!1,this.serviceRegistry=e.ServiceRegistry}get ready(){return this._ready.promise}initialize(e){this.workspaceConfig=e.capabilities.workspace?.configuration??!1}async initialized(e){if(this.workspaceConfig){if(e.register){let t=this.serviceRegistry.all;e.register({section:t.map(r=>this.toSectionName(r.LanguageMetaData.languageId))})}if(e.fetchConfiguration){let t=this.serviceRegistry.all.map(i=>({section:this.toSectionName(i.LanguageMetaData.languageId)})),r=await e.fetchConfiguration(t);t.forEach((i,n)=>{this.updateSectionConfiguration(i.section,r[n])})}}this._ready.resolve()}updateConfiguration(e){typeof e.settings!="object"||e.settings===null||Object.entries(e.settings).forEach(([t,r])=>{this.updateSectionConfiguration(t,r),this.onConfigurationSectionUpdateEmitter.fire({section:t,configuration:r})})}updateSectionConfiguration(e,t){this.settings[e]=t}async getConfiguration(e,t){await this.ready;let r=this.toSectionName(e);if(this.settings[r])return this.settings[r][t]}toSectionName(e){return`${e}`}get onConfigurationSectionUpdate(){return this.onConfigurationSectionUpdateEmitter.event}},eC=_6(R$e(),1);(function(e){function t(r){return{dispose:y(async()=>await r(),"dispose")}}a(t,"create"),y(t,"create"),e.create=t})(Ad||(Ad={}));Epe=class{static{a(this,"DefaultDocumentBuilder")}static{y(this,"DefaultDocumentBuilder")}constructor(e){this.updateBuildOptions={validation:{categories:["built-in","fast"]}},this.updateListeners=[],this.buildPhaseListeners=new Yl,this.documentPhaseListeners=new Yl,this.buildState=new Map,this.documentBuildWaiters=new Map,this.currentState=mr.Changed,this.langiumDocuments=e.workspace.LangiumDocuments,this.langiumDocumentFactory=e.workspace.LangiumDocumentFactory,this.textDocuments=e.workspace.TextDocuments,this.indexManager=e.workspace.IndexManager,this.fileSystemProvider=e.workspace.FileSystemProvider,this.workspaceManager=()=>e.workspace.WorkspaceManager,this.serviceRegistry=e.ServiceRegistry}async build(e,t={},r=Ur.CancellationToken.None){for(let i of e){let n=i.uri.toString();if(i.state===mr.Validated){if(typeof t.validation=="boolean"&&t.validation)this.resetToState(i,mr.IndexedReferences);else if(typeof t.validation=="object"){let s=this.findMissingValidationCategories(i,t);s.length>0&&(this.buildState.set(n,{completed:!1,options:{validation:{categories:s}},result:this.buildState.get(n)?.result}),i.state=mr.IndexedReferences)}}else this.buildState.delete(n)}this.currentState=mr.Changed,await this.emitUpdate(e.map(i=>i.uri),[]),await this.buildDocuments(e,t,r)}async update(e,t,r=Ur.CancellationToken.None){this.currentState=mr.Changed;let i=[];for(let l of t){let u=this.langiumDocuments.deleteDocuments(l);for(let h of u)i.push(h.uri),this.cleanUpDeleted(h)}let n=(await Promise.all(e.map(l=>this.findChangedUris(l)))).flat();for(let l of n){let u=this.langiumDocuments.getDocument(l);u===void 0&&(u=this.langiumDocumentFactory.fromModel({$type:"INVALID"},l),u.state=mr.Changed,this.langiumDocuments.addDocument(u)),this.resetToState(u,mr.Changed)}let s=Br(n).concat(i).map(l=>l.toString()).toSet();this.langiumDocuments.all.filter(l=>!s.has(l.uri.toString())&&this.shouldRelink(l,s)).forEach(l=>this.resetToState(l,mr.ComputedScopes)),await this.emitUpdate(n,i),await tn(r);let o=this.sortDocuments(this.langiumDocuments.all.filter(l=>l.state<mr.Validated||!this.buildState.get(l.uri.toString())?.completed||this.resultsAreIncomplete(l,this.updateBuildOptions)).toArray());await this.buildDocuments(o,this.updateBuildOptions,r)}resultsAreIncomplete(e,t){return this.findMissingValidationCategories(e,t).length>=1}findMissingValidationCategories(e,t){let r=this.buildState.get(e.uri.toString()),i=this.serviceRegistry.getServices(e.uri).validation.ValidationRegistry.getAllValidationCategories(e),n=r?.result?.validationChecks?new Set(r?.result?.validationChecks):r?.completed?i:new Set,s=t===void 0||t.validation===!0?i:typeof t.validation=="object"?t.validation.categories??i:[];return Br(s).filter(o=>!n.has(o)).toArray()}async findChangedUris(e){if(this.langiumDocuments.getDocument(e)??this.textDocuments?.get(e))return[e];try{let r=await this.fileSystemProvider.stat(e);if(r.isDirectory)return await this.workspaceManager().searchFolder(e);if(this.workspaceManager().shouldIncludeEntry(r))return[e]}catch{}return[]}async emitUpdate(e,t){await Promise.all(this.updateListeners.map(r=>r(e,t)))}sortDocuments(e){let t=0,r=e.length-1;for(;t<r;){for(;t<e.length&&this.hasTextDocument(e[t]);)t++;for(;r>=0&&!this.hasTextDocument(e[r]);)r--;t<r&&([e[t],e[r]]=[e[r],e[t]])}return e}hasTextDocument(e){return!!this.textDocuments?.get(e.uri)}shouldRelink(e,t){return e.references.some(r=>r.error!==void 0)?!0:this.indexManager.isAffected(e,t)}onUpdate(e){return this.updateListeners.push(e),Ad.create(()=>{let t=this.updateListeners.indexOf(e);t>=0&&this.updateListeners.splice(t,1)})}resetToState(e,t){switch(t){case mr.Changed:case mr.Parsed:this.indexManager.removeContent(e.uri);case mr.IndexedContent:e.localSymbols=void 0;case mr.ComputedScopes:this.serviceRegistry.getServices(e.uri).references.Linker.unlink(e);case mr.Linked:this.indexManager.removeReferences(e.uri);case mr.IndexedReferences:e.diagnostics=void 0,this.buildState.delete(e.uri.toString());case mr.Validated:}e.state>t&&(e.state=t)}cleanUpDeleted(e){this.buildState.delete(e.uri.toString()),this.indexManager.remove(e.uri),e.state=mr.Changed}async buildDocuments(e,t,r){this.prepareBuild(e,t),await this.runCancelable(e,mr.Parsed,r,s=>this.langiumDocumentFactory.update(s,r)),await this.runCancelable(e,mr.IndexedContent,r,s=>this.indexManager.updateContent(s,r)),await this.runCancelable(e,mr.ComputedScopes,r,async s=>{let o=this.serviceRegistry.getServices(s.uri).references.ScopeComputation;s.localSymbols=await o.collectLocalSymbols(s,r)});let i=e.filter(s=>this.shouldLink(s));await this.runCancelable(i,mr.Linked,r,s=>this.serviceRegistry.getServices(s.uri).references.Linker.link(s,r)),await this.runCancelable(i,mr.IndexedReferences,r,s=>this.indexManager.updateReferences(s,r));let n=e.filter(s=>this.shouldValidate(s)?!0:(this.markAsCompleted(s),!1));await this.runCancelable(n,mr.Validated,r,async s=>{await this.validate(s,r),this.markAsCompleted(s)})}markAsCompleted(e){let t=this.buildState.get(e.uri.toString());t&&(t.completed=!0)}prepareBuild(e,t){for(let r of e){let i=r.uri.toString(),n=this.buildState.get(i);(!n||n.completed)&&this.buildState.set(i,{completed:!1,options:t,result:n?.result})}}async runCancelable(e,t,r,i){for(let s of e)s.state<t&&(await tn(r),await i(s),s.state=t,await this.notifyDocumentPhase(s,t,r));let n=e.filter(s=>s.state===t);await this.notifyBuildPhase(n,t,r),this.currentState=t}onBuildPhase(e,t){return this.buildPhaseListeners.add(e,t),Ad.create(()=>{this.buildPhaseListeners.delete(e,t)})}onDocumentPhase(e,t){return this.documentPhaseListeners.add(e,t),Ad.create(()=>{this.documentPhaseListeners.delete(e,t)})}waitUntil(e,t,r){let i;return t&&"path"in t?i=t:r=t,r??(r=Ur.CancellationToken.None),i?this.awaitDocumentState(e,i,r):this.awaitBuilderState(e,r)}awaitDocumentState(e,t,r){let i=this.langiumDocuments.getDocument(t);if(i){if(i.state>=e)return Promise.resolve(t);if(r.isCancellationRequested)return Promise.reject(jo);if(this.currentState>=e&&e>i.state)return Promise.reject(new eC.ResponseError(eC.LSPErrorCodes.RequestFailed,`Document state of ${t.toString()} is ${mr[i.state]}, requiring ${mr[e]}, but workspace state is already ${mr[this.currentState]}. Returning undefined.`))}else return Promise.reject(new eC.ResponseError(eC.LSPErrorCodes.ServerCancelled,`No document found for URI: ${t.toString()}`));return new Promise((n,s)=>{let o=this.onDocumentPhase(e,u=>{Vn.equals(u.uri,t)&&(o.dispose(),l.dispose(),n(u.uri))}),l=r.onCancellationRequested(()=>{o.dispose(),l.dispose(),s(jo)})})}awaitBuilderState(e,t){return this.currentState>=e?Promise.resolve():t.isCancellationRequested?Promise.reject(jo):new Promise((r,i)=>{let n=this.onBuildPhase(e,()=>{n.dispose(),s.dispose(),r()}),s=t.onCancellationRequested(()=>{n.dispose(),s.dispose(),i(jo)})})}async notifyDocumentPhase(e,t,r){let n=this.documentPhaseListeners.get(t).slice();for(let s of n)try{await tn(r),await s(e,r)}catch(o){if(!Jd(o))throw o}}async notifyBuildPhase(e,t,r){if(e.length===0)return;let n=this.buildPhaseListeners.get(t).slice();for(let s of n)await tn(r),await s(e,r)}shouldLink(e){return this.getBuildOptions(e).eagerLinking??!0}shouldValidate(e){return!!this.getBuildOptions(e).validation}async validate(e,t){let r=this.serviceRegistry.getServices(e.uri).validation.DocumentValidator,i=this.getBuildOptions(e),n=typeof i.validation=="object"?{...i.validation}:{};n.categories=this.findMissingValidationCategories(e,i);let s=await r.validateDocument(e,n,t);e.diagnostics?e.diagnostics.push(...s):e.diagnostics=s;let o=this.buildState.get(e.uri.toString());o&&(o.result??(o.result={}),o.result.validationChecks?o.result.validationChecks=Br(o.result.validationChecks).concat(n.categories).distinct().toArray():o.result.validationChecks=[...n.categories])}getBuildOptions(e){return this.buildState.get(e.uri.toString())?.options??{}}},Ape=class{static{a(this,"DefaultIndexManager")}static{y(this,"DefaultIndexManager")}constructor(e){this.symbolIndex=new Map,this.symbolByTypeIndex=new AS,this.referenceIndex=new Map,this.documents=e.workspace.LangiumDocuments,this.serviceRegistry=e.ServiceRegistry,this.astReflection=e.AstReflection}findAllReferences(e,t){let r=Hs(e).uri,i=[];return this.referenceIndex.forEach(n=>{n.forEach(s=>{Vn.equals(s.targetUri,r)&&s.targetPath===t&&i.push(s)})}),Br(i)}allElements(e,t){let r=Br(this.symbolIndex.keys());return t&&(r=r.filter(i=>!t||t.has(i))),r.map(i=>this.getFileDescriptions(i,e)).flat()}getFileDescriptions(e,t){return t?this.symbolByTypeIndex.get(e,t,()=>(this.symbolIndex.get(e)??[]).filter(n=>this.astReflection.isSubtype(n.type,t))):this.symbolIndex.get(e)??[]}remove(e){this.removeContent(e),this.removeReferences(e)}removeContent(e){let t=e.toString();this.symbolIndex.delete(t),this.symbolByTypeIndex.clear(t)}removeReferences(e){let t=e.toString();this.referenceIndex.delete(t)}async updateContent(e,t=Ur.CancellationToken.None){let i=await this.serviceRegistry.getServices(e.uri).references.ScopeComputation.collectExportedSymbols(e,t),n=e.uri.toString();this.symbolIndex.set(n,i),this.symbolByTypeIndex.clear(n)}async updateReferences(e,t=Ur.CancellationToken.None){let i=await this.serviceRegistry.getServices(e.uri).workspace.ReferenceDescriptionProvider.createDescriptions(e,t);this.referenceIndex.set(e.uri.toString(),i)}isAffected(e,t){let r=this.referenceIndex.get(e.uri.toString());return r?r.some(i=>!i.local&&t.has(i.targetUri.toString())):!1}},Rpe=class{static{a(this,"DefaultWorkspaceManager")}static{y(this,"DefaultWorkspaceManager")}constructor(e){this.initialBuildOptions={},this._ready=new Hl,this.serviceRegistry=e.ServiceRegistry,this.langiumDocuments=e.workspace.LangiumDocuments,this.documentBuilder=e.workspace.DocumentBuilder,this.fileSystemProvider=e.workspace.FileSystemProvider,this.mutex=e.workspace.WorkspaceLock}get ready(){return this._ready.promise}get workspaceFolders(){return this.folders}initialize(e){this.folders=e.workspaceFolders??void 0}initialized(e){return this.mutex.write(t=>this.initializeWorkspace(this.folders??[],t))}async initializeWorkspace(e,t=Ur.CancellationToken.None){let r=await this.performStartup(e);await tn(t),await this.documentBuilder.build(r,this.initialBuildOptions,t)}async performStartup(e){let t=[],r=y(s=>{t.push(s),this.langiumDocuments.hasDocument(s.uri)||this.langiumDocuments.addDocument(s)},"collector");await this.loadAdditionalDocuments(e,r);let i=[];await Promise.all(e.map(s=>this.getRootFolder(s)).map(async s=>this.traverseFolder(s,i)));let n=Br(i).distinct(s=>s.toString()).filter(s=>!this.langiumDocuments.hasDocument(s));return await this.loadWorkspaceDocuments(n,r),this._ready.resolve(),t}async loadWorkspaceDocuments(e,t){await Promise.all(e.map(async r=>{let i=await this.langiumDocuments.getOrCreateDocument(r);t(i)}))}loadAdditionalDocuments(e,t){return Promise.resolve()}getRootFolder(e){return La.parse(e.uri)}async traverseFolder(e,t){try{let r=await this.fileSystemProvider.readDirectory(e);await Promise.all(r.map(async i=>{this.shouldIncludeEntry(i)&&(i.isDirectory?await this.traverseFolder(i.uri,t):i.isFile&&t.push(i.uri))}))}catch(r){console.error("Failure to read directory content of "+e.toString(!0),r)}}async searchFolder(e){let t=[];return await this.traverseFolder(e,t),t}shouldIncludeEntry(e){let t=Vn.basename(e.uri);return t.startsWith(".")?!1:e.isDirectory?t!=="node_modules"&&t!=="out":e.isFile?this.serviceRegistry.hasServices(e.uri):!1}},Lpe=class{static{a(this,"DefaultLexerErrorMessageProvider")}static{y(this,"DefaultLexerErrorMessageProvider")}buildUnexpectedCharactersMessage(e,t,r,i,n){return GI.buildUnexpectedCharactersMessage(e,t,r,i,n)}buildUnableToPopLexerModeMessage(e){return GI.buildUnableToPopLexerModeMessage(e)}},ZM={mode:"full"},JM=class{static{a(this,"DefaultLexer")}static{y(this,"DefaultLexer")}constructor(e){this.errorMessageProvider=e.parser.LexerErrorMessageProvider,this.tokenBuilder=e.parser.TokenBuilder;let t=this.tokenBuilder.buildTokens(e.Grammar,{caseInsensitive:e.LanguageMetaData.caseInsensitive});this.tokenTypes=this.toTokenTypeDictionary(t);let r=kv(t)?Object.values(t):t,i=e.LanguageMetaData.mode==="production";this.chevrotainLexer=new Gn(r,{positionTracking:"full",skipValidations:i,errorMessageProvider:this.errorMessageProvider})}get definition(){return this.tokenTypes}tokenize(e,t=ZM){let r=this.chevrotainLexer.tokenize(e);return{tokens:r.tokens,errors:r.errors,hidden:r.groups.hidden??[],report:this.tokenBuilder.flushLexingReport?.(e)}}toTokenTypeDictionary(e){if(kv(e))return e;let t=DS(e)?Object.values(e.modes).flat():e,r={};return t.forEach(i=>r[i.name]=i),r}};a(LS,"isTokenTypeArray");y(LS,"isTokenTypeArray");a(DS,"isIMultiModeLexerDefinition");y(DS,"isIMultiModeLexerDefinition");a(kv,"isTokenTypeDictionary");y(kv,"isTokenTypeDictionary");V1();a(eO,"parseJSDoc");y(eO,"parseJSDoc");a(tO,"isJSDoc");y(tO,"isJSDoc");a(rO,"getLines");y(rO,"getLines");Iie=/\s*(@([\p{L}][\p{L}\p{N}]*)?)/uy,tKe=/\{(@[\p{L}][\p{L}\p{N}]*)(\s*)([^\r\n}]+)?\}/gu;a(Dpe,"tokenize");y(Dpe,"tokenize");a(Ipe,"buildInlineTokens");y(Ipe,"buildInlineTokens");rKe=/\S/,iKe=/\s*$/;a(Cv,"skipWhitespace");y(Cv,"skipWhitespace");a(Npe,"lastCharacter");y(Npe,"lastCharacter");a(Mpe,"parseJSDocComment");y(Mpe,"parseJSDocComment");a(Ope,"parseJSDocElement");y(Ope,"parseJSDocElement");a(Ppe,"appendEmptyLine");y(Ppe,"appendEmptyLine");a(iO,"parseJSDocText");y(iO,"parseJSDocText");a(Bpe,"parseJSDocInline");y(Bpe,"parseJSDocInline");a(nO,"parseJSDocTag");y(nO,"parseJSDocTag");a(aO,"parseJSDocLine");y(aO,"parseJSDocLine");a(IS,"normalizeOptions");y(IS,"normalizeOptions");a(NC,"normalizeOption");y(NC,"normalizeOption");Nie=class{static{a(this,"JSDocCommentImpl")}static{y(this,"JSDocCommentImpl")}constructor(e,t){this.elements=e,this.range=t}getTag(e){return this.getAllTags().find(t=>t.name===e)}getTags(e){return this.getAllTags().filter(t=>t.name===e)}getAllTags(){return this.elements.filter(e=>"name"in e)}toString(){let e="";for(let t of this.elements)if(e.length===0)e=t.toString();else{let r=t.toString();e+=u6(e)+r}return e.trim()}toMarkdown(e){let t="";for(let r of this.elements)if(t.length===0)t=r.toMarkdown(e);else{let i=r.toMarkdown(e);t+=u6(t)+i}return t.trim()}},yD=class{static{a(this,"JSDocTagImpl")}static{y(this,"JSDocTagImpl")}constructor(e,t,r,i){this.name=e,this.content=t,this.inline=r,this.range=i}toString(){let e=`@${this.name}`,t=this.content.toString();return this.content.inlines.length===1?e=`${e} ${t}`:this.content.inlines.length>1&&(e=`${e}
${t}`),this.inline?`{${e}}`:e}toMarkdown(e){return e?.renderTag?.(this)??this.toMarkdownDefault(e)}toMarkdownDefault(e){let t=this.content.toMarkdown(e);if(this.inline){let n=$pe(this.name,t,e??{});if(typeof n=="string")return n}let r="";e?.tag==="italic"||e?.tag===void 0?r="*":e?.tag==="bold"?r="**":e?.tag==="bold-italic"&&(r="***");let i=`${r}@${this.name}${r}`;return this.content.inlines.length===1?i=`${i} \u2014 ${t}`:this.content.inlines.length>1&&(i=`${i}
${t}`),this.inline?`{${i}}`:i}};a($pe,"renderInlineTag");y($pe,"renderInlineTag");a(Fpe,"renderLinkDefault");y(Fpe,"renderLinkDefault");c6=class{static{a(this,"JSDocTextImpl")}static{y(this,"JSDocTextImpl")}constructor(e,t){this.inlines=e,this.range=t}toString(){let e="";for(let t=0;t<this.inlines.length;t++){let r=this.inlines[t],i=this.inlines[t+1];e+=r.toString(),i&&i.range.start.line>r.range.start.line&&(e+=`
`)}return e}toMarkdown(e){let t="";for(let r=0;r<this.inlines.length;r++){let i=this.inlines[r],n=this.inlines[r+1];t+=i.toMarkdown(e),n&&n.range.start.line>i.range.start.line&&(t+=`
`)}return t}},Vpe=class{static{a(this,"JSDocLineImpl")}static{y(this,"JSDocLineImpl")}constructor(e,t){this.text=e,this.range=t}toString(){return this.text}toMarkdown(){return this.text}};a(u6,"fillNewlines");y(u6,"fillNewlines");Gpe=class{static{a(this,"JSDocDocumentationProvider")}static{y(this,"JSDocDocumentationProvider")}constructor(e){this.indexManager=e.shared.workspace.IndexManager,this.commentProvider=e.documentation.CommentProvider}getDocumentation(e){let t=this.commentProvider.getComment(e);if(t&&tO(t))return eO(t).toMarkdown({renderLink:y((i,n)=>this.documentationLinkRenderer(e,i,n),"renderLink"),renderTag:y(i=>this.documentationTagRenderer(e,i),"renderTag")})}documentationLinkRenderer(e,t,r){let i=this.findNameInLocalSymbols(e,t)??this.findNameInGlobalScope(e,t);if(i&&i.nameSegment){let n=i.nameSegment.range.start.line+1,s=i.nameSegment.range.start.character+1,o=i.documentUri.with({fragment:`L${n},${s}`});return`[${r}](${o.toString()})`}else return}documentationTagRenderer(e,t){}findNameInLocalSymbols(e,t){let i=Hs(e).localSymbols;if(!i)return;let n=e;do{let o=i.getStream(n).find(l=>l.name===t);if(o)return o;n=n.$container}while(n)}findNameInGlobalScope(e,t){return this.indexManager.allElements().find(i=>i.name===t)}},Wpe=class{static{a(this,"DefaultCommentProvider")}static{y(this,"DefaultCommentProvider")}constructor(e){this.grammarConfig=()=>e.parser.GrammarConfig}getComment(e){return KM(e)?e.$comment:iN(e.$cstNode,this.grammarConfig().multilineCommentRules)?.text}},zpe=class{static{a(this,"DefaultAsyncParser")}static{y(this,"DefaultAsyncParser")}constructor(e){this.syncParser=e.parser.LangiumParser}parse(e,t){return Promise.resolve(this.syncParser.parse(e))}},nKe=class{static{a(this,"AbstractThreadedAsyncParser")}static{y(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 e=this.createWorker();e.onReady(()=>{if(this.queue.length>0){let t=this.queue.shift();t&&(e.lock(),t.resolve(e))}}),this.workerPool.push(e)}}async parse(e,t){let r=await this.acquireParserWorker(t),i=new Hl,n,s=t.onCancellationRequested(()=>{n=setTimeout(()=>{this.terminateWorker(r)},this.terminationDelay)});return r.parse(e).then(o=>{let l=this.hydrator.hydrate(o);i.resolve(l)}).catch(o=>{i.reject(o)}).finally(()=>{s.dispose(),clearTimeout(n)}),i.promise}terminateWorker(e){e.terminate();let t=this.workerPool.indexOf(e);t>=0&&this.workerPool.splice(t,1)}async acquireParserWorker(e){this.initializeWorkers();for(let r of this.workerPool)if(r.ready)return r.lock(),r;let t=new Hl;return e.onCancellationRequested(()=>{let r=this.queue.indexOf(t);r>=0&&this.queue.splice(r,1),t.reject(jo)}),this.queue.push(t),t.promise}},aKe=class{static{a(this,"ParserWorker")}static{y(this,"ParserWorker")}get ready(){return this._ready}get onReady(){return this.onReadyEmitter.event}constructor(e,t,r,i){this.onReadyEmitter=new RS.Emitter,this.deferred=new Hl,this._ready=!0,this._parsing=!1,this.sendMessage=e,this._terminate=i,t(n=>{let s=n;this.deferred.resolve(s),this.unlock()}),r(n=>{this.deferred.reject(n),this.unlock()})}terminate(){this.deferred.reject(jo),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 Hl,this.sendMessage(e),this.deferred.promise}},qpe=class{static{a(this,"DefaultWorkspaceLock")}static{y(this,"DefaultWorkspaceLock")}constructor(){this.previousTokenSource=new Ur.CancellationTokenSource,this.writeQueue=[],this.readQueue=[],this.done=!0}write(e){this.cancelWrite();let t=wS();return this.previousTokenSource=t,this.enqueue(this.writeQueue,e,t.token)}read(e){return this.enqueue(this.readQueue,e)}enqueue(e,t,r=Ur.CancellationToken.None){let i=new Hl,n={action:t,deferred:i,cancellationToken:r};return e.push(n),this.performNextOperation(),i.promise}async performNextOperation(){if(!this.done)return;let e=[];if(this.writeQueue.length>0)e.push(this.writeQueue.shift());else if(this.readQueue.length>0)e.push(...this.readQueue.splice(0,this.readQueue.length));else return;this.done=!1,await Promise.all(e.map(async({action:t,deferred:r,cancellationToken:i})=>{try{let n=await Promise.resolve().then(()=>t(i));r.resolve(n)}catch(n){Jd(n)?r.resolve(void 0):r.reject(n)}})),this.done=!0,this.performNextOperation()}cancelWrite(){this.previousTokenSource.cancel()}},jpe=class{static{a(this,"DefaultHydrator")}static{y(this,"DefaultHydrator")}constructor(e){this.grammarElementIdMap=new bv,this.tokenTypeIdMap=new bv,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(t=>({...t,message:t.message})),value:this.dehydrateAstNode(e.value,this.createDehyrationContext(e.value))}}dehydrateLexerReport(e){return e}createDehyrationContext(e){let t=new Map,r=new Map;for(let i of Ys(e))t.set(i,{});if(e.$cstNode)for(let i of mm(e.$cstNode))r.set(i,{});return{astNodes:t,cstNodes:r}}dehydrateAstNode(e,t){let r=t.astNodes.get(e);r.$type=e.$type,r.$containerIndex=e.$containerIndex,r.$containerProperty=e.$containerProperty,e.$cstNode!==void 0&&(r.$cstNode=this.dehydrateCstNode(e.$cstNode,t));for(let[i,n]of Object.entries(e))if(!i.startsWith("$"))if(Array.isArray(n)){let s=[];r[i]=s;for(let o of n)Di(o)?s.push(this.dehydrateAstNode(o,t)):Fn(o)?s.push(this.dehydrateReference(o,t)):s.push(o)}else Di(n)?r[i]=this.dehydrateAstNode(n,t):Fn(n)?r[i]=this.dehydrateReference(n,t):n!==void 0&&(r[i]=n);return r}dehydrateReference(e,t){let r={};return r.$refText=e.$refText,e.$refNode&&(r.$refNode=t.cstNodes.get(e.$refNode)),r}dehydrateCstNode(e,t){let r=t.cstNodes.get(e);return wv(e)?r.fullText=e.fullText:r.grammarSource=this.getGrammarElementId(e.grammarSource),r.hidden=e.hidden,r.astNode=t.astNodes.get(e.astNode),Fl(e)?r.content=e.content.map(i=>this.dehydrateCstNode(i,t)):Md(e)&&(r.tokenType=e.tokenType.name,r.offset=e.offset,r.length=e.length,r.startLine=e.range.start.line,r.startColumn=e.range.start.character,r.endLine=e.range.end.line,r.endColumn=e.range.end.character),r}hydrate(e){let t=e.value,r=this.createHydrationContext(t);return"$cstNode"in t&&this.hydrateCstNode(t.$cstNode,r),{lexerErrors:e.lexerErrors,lexerReport:e.lexerReport,parserErrors:e.parserErrors,value:this.hydrateAstNode(t,r)}}createHydrationContext(e){let t=new Map,r=new Map;for(let n of Ys(e))t.set(n,{});let i;if(e.$cstNode)for(let n of mm(e.$cstNode)){let s;"fullText"in n?(s=new NM(n.fullText),i=s):"content"in n?s=new kS:"tokenType"in n&&(s=this.hydrateCstLeafNode(n)),s&&(r.set(n,s),s.root=i)}return{astNodes:t,cstNodes:r}}hydrateAstNode(e,t){let r=t.astNodes.get(e);r.$type=e.$type,r.$containerIndex=e.$containerIndex,r.$containerProperty=e.$containerProperty,e.$cstNode&&(r.$cstNode=t.cstNodes.get(e.$cstNode));for(let[i,n]of Object.entries(e))if(!i.startsWith("$"))if(Array.isArray(n)){let s=[];r[i]=s;for(let o of n)Di(o)?s.push(this.setParent(this.hydrateAstNode(o,t),r)):Fn(o)?s.push(this.hydrateReference(o,r,i,t)):s.push(o)}else Di(n)?r[i]=this.setParent(this.hydrateAstNode(n,t),r):Fn(n)?r[i]=this.hydrateReference(n,r,i,t):n!==void 0&&(r[i]=n);return r}setParent(e,t){return e.$container=t,e}hydrateReference(e,t,r,i){return this.linker.buildReference(t,r,i.cstNodes.get(e.$refNode),e.$refText)}hydrateCstNode(e,t,r=0){let i=t.cstNodes.get(e);if(typeof e.grammarSource=="number"&&(i.grammarSource=this.getGrammarElement(e.grammarSource)),i.astNode=t.astNodes.get(e.astNode),Fl(i))for(let n of e.content){let s=this.hydrateCstNode(n,t,r++);i.content.push(s)}return i}hydrateCstLeafNode(e){let t=this.getTokenType(e.tokenType),r=e.offset,i=e.length,n=e.startLine,s=e.startColumn,o=e.endLine,l=e.endColumn,u=e.hidden;return new pv(r,i,{start:{line:n,character:s},end:{line:o,character:l}},t,u)}getTokenType(e){return this.lexer.definition[e]}getGrammarElementId(e){if(e)return this.grammarElementIdMap.size===0&&this.createGrammarElementIdMap(),this.grammarElementIdMap.get(e)}getGrammarElement(e){return this.grammarElementIdMap.size===0&&this.createGrammarElementIdMap(),this.grammarElementIdMap.getKey(e)}createGrammarElementIdMap(){let e=0;for(let t of Ys(this.grammar))Ev(t)&&this.grammarElementIdMap.set(t,e++)}};a(ci,"createDefaultCoreModule");y(ci,"createDefaultCoreModule");a(ui,"createDefaultSharedCoreModule");y(ui,"createDefaultSharedCoreModule");(function(e){e.merge=(t,r)=>km(km({},t),r)})(h6||(h6={}));a(Tr,"inject");y(Tr,"inject");Upe=Symbol("isProxy");a(sO,"eagerLoad");y(sO,"eagerLoad");a(oO,"_inject");y(oO,"_inject");Mie=Symbol();a(d6,"_resolve");y(d6,"_resolve");a(km,"_merge");y(km,"_merge");f6={indentTokenName:"INDENT",dedentTokenName:"DEDENT",whitespaceTokenName:"WS",ignoreIndentationDelimiters:[]};(function(e){e.REGULAR="indentation-sensitive",e.IGNORE_INDENTATION="ignore-indentation"})(wd||(wd={}));Hpe=class extends SS{static{a(this,"IndentationAwareTokenBuilder")}static{y(this,"IndentationAwareTokenBuilder")}constructor(e=f6){super(),this.indentationStack=[0],this.whitespaceRegExp=/[ \t]+/y,this.options={...f6,...e},this.indentTokenType=lm({name:this.options.indentTokenName,pattern:this.indentMatcher.bind(this),line_breaks:!1}),this.dedentTokenType=lm({name:this.options.dedentTokenName,pattern:this.dedentMatcher.bind(this),line_breaks:!1})}buildTokens(e,t){let r=super.buildTokens(e,t);if(!LS(r))throw new Error("Invalid tokens built by default builder");let{indentTokenName:i,dedentTokenName:n,whitespaceTokenName:s,ignoreIndentationDelimiters:o}=this.options,l,u,h,d=[];for(let f of r){for(let[p,m]of o)f.name===p?f.PUSH_MODE=wd.IGNORE_INDENTATION:f.name===m&&(f.POP_MODE=!0);f.name===n?l=f:f.name===i?u=f:f.name===s?h=f:d.push(f)}if(!l||!u||!h)throw new Error("Some indentation/whitespace tokens not found!");return o.length>0?{modes:{[wd.REGULAR]:[l,u,...d,h],[wd.IGNORE_INDENTATION]:[...d,h]},defaultMode:wd.REGULAR}:[l,u,h,...d]}flushLexingReport(e){return{...super.flushLexingReport(e),remainingDedents:this.flushRemainingDedents(e)}}isStartOfLine(e,t){return t===0||`\r
`.includes(e[t-1])}matchWhitespace(e,t,r,i){this.whitespaceRegExp.lastIndex=t;let n=this.whitespaceRegExp.exec(e);return{currIndentLevel:n?.[0].length??0,prevIndentLevel:this.indentationStack.at(-1),match:n}}createIndentationTokenInstance(e,t,r,i){let n=this.getLineNumber(t,i);return rx(e,r,i,i+r.length,n,n,1,r.length)}getLineNumber(e,t){return e.substring(0,t).split(/\r\n|\r|\n/).length}indentMatcher(e,t,r,i){if(!this.isStartOfLine(e,t))return null;let{currIndentLevel:n,prevIndentLevel:s,match:o}=this.matchWhitespace(e,t,r,i);return n<=s?null:(this.indentationStack.push(n),o)}dedentMatcher(e,t,r,i){if(!this.isStartOfLine(e,t))return null;let{currIndentLevel:n,prevIndentLevel:s,match:o}=this.matchWhitespace(e,t,r,i);if(n>=s)return null;let l=this.indentationStack.lastIndexOf(n);if(l===-1)return this.diagnostics.push({severity:"error",message:`Invalid dedent level ${n} at offset: ${t}. Current indentation stack: ${this.indentationStack}`,offset:t,length:o?.[0]?.length??0,line:this.getLineNumber(e,t),column:1}),null;let u=this.indentationStack.length-l-1,h=e.substring(0,t).match(/[\r\n]+$/)?.[0].length??1;for(let d=0;d<u;d++){let f=this.createIndentationTokenInstance(this.dedentTokenType,e,"",t-(h-1));r.push(f),this.indentationStack.pop()}return null}buildTerminalToken(e){let t=super.buildTerminalToken(e),{indentTokenName:r,dedentTokenName:i,whitespaceTokenName:n}=this.options;return t.name===r?this.indentTokenType:t.name===i?this.dedentTokenType:t.name===n?lm({name:n,pattern:this.whitespaceRegExp,group:Gn.SKIPPED}):t}flushRemainingDedents(e){let t=[];for(;this.indentationStack.length>1;)t.push(this.createIndentationTokenInstance(this.dedentTokenType,e,"",e.length)),this.indentationStack.pop();return this.indentationStack=[0],t}},sKe=class extends JM{static{a(this,"IndentationAwareLexer")}static{y(this,"IndentationAwareLexer")}constructor(e){if(super(e),e.parser.TokenBuilder instanceof Hpe)this.indentationTokenBuilder=e.parser.TokenBuilder;else throw new Error("IndentationAwareLexer requires an accompanying IndentationAwareTokenBuilder")}tokenize(e,t=ZM){let r=super.tokenize(e),i=r.report;t?.mode==="full"&&r.tokens.push(...i.remainingDedents),i.remainingDedents=[];let{indentTokenType:n,dedentTokenType:s}=this.indentationTokenBuilder,o=n.tokenTypeIdx,l=s.tokenTypeIdx,u=[],h=r.tokens.length-1;for(let d=0;d<h;d++){let f=r.tokens[d],p=r.tokens[d+1];if(f.tokenTypeIdx===o&&p.tokenTypeIdx===l){d++;continue}u.push(f)}return h>=0&&u.push(r.tokens[h]),r.tokens=u,r}},lO={};wu(lO,{AstUtils:a(()=>D6,"AstUtils"),BiMap:a(()=>bv,"BiMap"),Cancellation:a(()=>Ur,"Cancellation"),ContextCache:a(()=>AS,"ContextCache"),CstUtils:a(()=>A6,"CstUtils"),DONE_RESULT:a(()=>$n,"DONE_RESULT"),Deferred:a(()=>Hl,"Deferred"),Disposable:a(()=>Ad,"Disposable"),DisposableCache:a(()=>ES,"DisposableCache"),DocumentCache:a(()=>gpe,"DocumentCache"),EMPTY_STREAM:a(()=>um,"EMPTY_STREAM"),ErrorWithLocation:a(()=>Mv,"ErrorWithLocation"),GrammarUtils:a(()=>oN,"GrammarUtils"),MultiMap:a(()=>Yl,"MultiMap"),OperationCancelled:a(()=>jo,"OperationCancelled"),Reduction:a(()=>v1,"Reduction"),RegExpUtils:a(()=>cN,"RegExpUtils"),SimpleCache:a(()=>HM,"SimpleCache"),StreamImpl:a(()=>qo,"StreamImpl"),TreeStreamImpl:a(()=>hm,"TreeStreamImpl"),URI:a(()=>La,"URI"),UriTrie:a(()=>jM,"UriTrie"),UriUtils:a(()=>Vn,"UriUtils"),WorkspaceCache:a(()=>YM,"WorkspaceCache"),assertCondition:a(()=>lN,"assertCondition"),assertUnreachable:a(()=>Eu,"assertUnreachable"),delayNextTick:a(()=>_S,"delayNextTick"),interruptAndCheck:a(()=>tn,"interruptAndCheck"),isOperationCancelled:a(()=>Jd,"isOperationCancelled"),loadGrammarFromJson:a(()=>Pa,"loadGrammarFromJson"),setInterruptionPeriod:a(()=>WM,"setInterruptionPeriod"),startCancelableOperation:a(()=>wS,"startCancelableOperation"),stream:a(()=>Br,"stream")});vv(lO,RS);Ype=class{static{a(this,"EmptyFileSystemProvider")}static{y(this,"EmptyFileSystemProvider")}stat(e){throw new Error("No file system is available.")}statSync(e){throw new Error("No file system is available.")}async exists(){return!1}existsSync(){return!1}readBinary(){throw new Error("No file system is available.")}readBinarySync(){throw new Error("No file system is available.")}readFile(){throw new Error("No file system is available.")}readFileSync(){throw new Error("No file system is available.")}async readDirectory(){return[]}readDirectorySync(){return[]}},xi={fileSystemProvider:y(()=>new Ype,"fileSystemProvider")},oKe={Grammar:y(()=>{},"Grammar"),LanguageMetaData:y(()=>({caseInsensitive:!1,fileExtensions:[".langium"],languageId:"langium"}),"LanguageMetaData")},lKe={AstReflection:y(()=>new Z6,"AstReflection")};a(Kpe,"createMinimalGrammarServices");y(Kpe,"createMinimalGrammarServices");a(Pa,"loadGrammarFromJson");y(Pa,"loadGrammarFromJson");vv(nne,lO);cKe=class{static{a(this,"DefaultLangiumProfiler")}static{y(this,"DefaultLangiumProfiler")}constructor(e){this.activeCategories=new Set,this.allCategories=new Set(["validating","parsing","linking"]),this.activeCategories=e??new Set(this.allCategories),this.records=new Yl}isActive(e){return this.activeCategories.has(e)}start(...e){e?e.forEach(t=>this.activeCategories.add(t)):this.activeCategories=new Set(this.allCategories)}stop(...e){e?e.forEach(t=>this.activeCategories.delete(t)):this.activeCategories.clear()}createTask(e,t){if(!this.isActive(e))throw new Error(`Category "${e}" is not active.`);return console.log(`Creating profiling task for '${e}.${t}'.`),new Xpe(r=>this.records.add(e,this.dumpRecord(e,r)),t)}dumpRecord(e,t){console.info(`Task ${e}.${t.identifier} executed in ${t.duration.toFixed(2)}ms and ended at ${t.date.toISOString()}`);let r=[];for(let s of t.entries.keys()){let o=t.entries.get(s),l=o.reduce((u,h)=>u+h);r.push({name:`${t.identifier}.${s}`,count:o.length,duration:l})}let i=t.duration-r.map(s=>s.duration).reduce((s,o)=>s+o,0);r.push({name:t.identifier,count:1,duration:i}),r.sort((s,o)=>o.duration-s.duration);function n(s){return Math.round(100*s)/100}return a(n,"Round"),y(n,"Round"),console.table(r.map(s=>({Element:s.name,Count:s.count,"Self %":n(100*s.duration/t.duration),"Time (ms)":n(s.duration)}))),t}getRecords(...e){return e.length===0?this.records.values():this.records.entries().filter(t=>e.some(r=>r===t[0])).flatMap(t=>t[1])}},Xpe=class{static{a(this,"ProfilingTask")}static{y(this,"ProfilingTask")}constructor(e,t){this.stack=[],this.entries=new Yl,this.addRecord=e,this.identifier=t}start(){if(this.startTime!==void 0)throw new Error(`Task "${this.identifier}" is already started.`);this.startTime=performance.now()}stop(){if(this.startTime===void 0)throw new Error(`Task "${this.identifier}" was not started.`);if(this.stack.length!==0)throw new Error(`Task "${this.identifier}" cannot be stopped before sub-task(s): ${this.stack.map(t=>t.id).join(", ")}.`);let e={identifier:this.identifier,date:new Date,duration:performance.now()-this.startTime,entries:this.entries};this.addRecord(e),this.startTime=void 0,this.entries.clear()}startSubTask(e){this.stack.push({id:e,start:performance.now(),content:0})}stopSubTask(e){let t=this.stack.pop();if(!t)throw new Error(`Task "${this.identifier}.${e}" was not started.`);if(t.id!==e)throw new Error(`Sub-Task "${t.id}" is not already stopped.`);let r=performance.now()-t.start;this.stack.at(-1)!==void 0&&(this.stack[this.stack.length-1].content+=r);let i=r-t.content;this.entries.add(e,i)}};(e=>{e.Terminals={ARROW_DIRECTION:/L|R|T|B/,ARROW_GROUP:/\{group\}/,ARROW_INTO:/<|>/,ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,STRING:/"([^"\\]|\\.)*"|'([^'\\]|\\.)*'/,ID:/[\w]([-\w]*\w)?/,NEWLINE:/\r?\n/,WHITESPACE:/[\t ]+/,YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/,ARCH_ICON:/\([\w-:]+\)/,ARCH_TITLE:/\[(?:"([^"\\]|\\.)*"|'([^'\\]|\\.)*'|[\w ]+)\]/}})(p6||(p6={}));(e=>{e.Terminals={EM_ID:/[_a-zA-Z][\w_]*/,EM_FID:/\d{1,3}/,EM_DATA_INLINE:/\{(.*)\}|"(.*)"|'(.*)'/,EM_DATA_BLOCK:/\{[\t ]*\r?\n(?:[\S\s]*?\r?\n)?\}(?:\r?\n|(?!\S))/,EM_ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,EM_ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,EM_TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,EM_WS:/\s+/,EM_YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,EM_DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,EM_SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/,EM_ML_COMMENT:/\/\*[\s\S]*?\*\//,EM_SL_COMMENT:/\/\/[^\n\r]*/}})(m6||(m6={}));(e=>{e.Terminals={ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,INT:/0|[1-9][0-9]*(?!\.)/,STRING:/"([^"\\]|\\.)*"|'([^'\\]|\\.)*'/,NEWLINE:/\r?\n/,WHITESPACE:/[\t ]+/,YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/,REFERENCE:/\w([-\./\w]*[-\w])?/}})(g6||(g6={}));(e=>{e.Terminals={ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,NEWLINE:/\r?\n/,WHITESPACE:/[\t ]+/,YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/}})(y6||(y6={}));(e=>{e.Terminals={ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,INT:/0|[1-9][0-9]*(?!\.)/,STRING:/"([^"\\]|\\.)*"|'([^'\\]|\\.)*'/,NEWLINE:/\r?\n/,WHITESPACE:/[\t ]+/,YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/}})(x6||(x6={}));(e=>{e.Terminals={NUMBER_PIE:/(?:-?[0-9]+\.[0-9]+(?!\.))|(?:-?(0|[1-9][0-9]*)(?!\.))/,ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,STRING:/"([^"\\]|\\.)*"|'([^'\\]|\\.)*'/,NEWLINE:/\r?\n/,WHITESPACE:/[\t ]+/,YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/}})(b6||(b6={}));(e=>{e.Terminals={GRATICULE:/circle|polygon/,BOOLEAN:/true|false/,ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,NUMBER:/(?:[0-9]+\.[0-9]+(?!\.))|(?:0|[1-9][0-9]*(?!\.))/,STRING:/"([^"\\]|\\.)*"|'([^'\\]|\\.)*'/,ID:/[\w]([-\w]*\w)?/,NEWLINE:/\r?\n/,WHITESPACE:/[\t ]+/,YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/}})(T6||(T6={}));(e=>{e.Terminals={ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,TREEMAP_KEYWORD:/treemap-beta|treemap/,CLASS_DEF:/classDef\s+([a-zA-Z_][a-zA-Z0-9_]+)(?:\s+([^;\r\n]*))?(?:;)?/,STYLE_SEPARATOR:/:::/,SEPARATOR:/:/,COMMA:/,/,INDENTATION:/[ \t]{1,}/,WS:/[ \t]+/,ML_COMMENT:/\%\%[^\n]*/,NL:/\r?\n/,ID2:/[a-zA-Z_][a-zA-Z0-9_]*/,NUMBER2:/[0-9_\.\,]+/,STRING2:/"[^"]*"|'[^']*'/}})(k6||(k6={}));(e=>{e.Terminals={ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,INDENTATION:/[ \t]{1,}/,WS:/[ \t]+/,ML_COMMENT:/\%\%[^\n]*/,NL:/\r?\n/,STRING2:/"[^"]*"|'[^']*'/}})(C6||(C6={}));(e=>{e.Terminals={WARDLEY_NUMBER:/[0-9]+\.[0-9]+/,ARROW:/->/,LINK_PORT:/\+<>|\+>|\+</,LINK_ARROW:/-->|-\.->|>|\+'[^']*'<>|\+'[^']*'<|\+'[^']*'>/,LINK_LABEL:/;[^\n\r]+/,STRATEGY:/build|buy|outsource|market/,KW_WARDLEY:/wardley-beta/,KW_SIZE:/size/,KW_EVOLUTION:/evolution/,KW_ANCHOR:/anchor/,KW_COMPONENT:/component/,KW_LABEL:/label/,KW_INERTIA:/inertia/,KW_EVOLVE:/evolve/,KW_PIPELINE:/pipeline/,KW_NOTE:/note/,KW_ANNOTATIONS:/annotations/,KW_ANNOTATION:/annotation/,KW_ACCELERATOR:/accelerator/,KW_DEACCELERATOR:/deaccelerator/,NAME_WITH_SPACES:/(?!title\s|accTitle|accDescr)[A-Za-z](?:[A-Za-z0-9_()&]|-(?!>))*(?:[ \t]+[A-Za-z(](?:[A-Za-z0-9_()&]|-(?!>))*)*/,WS:/[ \t]+/,ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,INT:/0|[1-9][0-9]*(?!\.)/,STRING:/"([^"\\]|\\.)*"|'([^'\\]|\\.)*'/,ID:/[\w]([-\w]*\w)?/,NEWLINE:/\r?\n/,WHITESPACE:/[\t ]+/,YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/}})(v6||(v6={}));ptr={...p6.Terminals,...m6.Terminals,...g6.Terminals,...y6.Terminals,...x6.Terminals,...b6.Terminals,...T6.Terminals,...C6.Terminals,...k6.Terminals,...v6.Terminals},tC={$type:"Accelerator",name:"name",x:"x",y:"y"},rC={$type:"Anchor",evolution:"evolution",name:"name",visibility:"visibility"},W0={$type:"Annotation",number:"number",text:"text",x:"x",y:"y"},xD={$type:"Annotations",x:"x",y:"y"},Go={$type:"Architecture",accDescr:"accDescr",accTitle:"accTitle",edges:"edges",groups:"groups",junctions:"junctions",services:"services",title:"title"};a(Qpe,"isArchitecture");y(Qpe,"isArchitecture");iC={$type:"Axis",label:"label",name:"name"},T1={$type:"Branch",name:"name",order:"order"};a(Zpe,"isBranch");y(Zpe,"isBranch");Oie={$type:"Checkout",branch:"branch"},nC={$type:"CherryPicking",id:"id",parent:"parent",tags:"tags"},bD={$type:"ClassDefStatement",className:"className",styleText:"styleText"},xd={$type:"Commit",id:"id",message:"message",tags:"tags",type:"type"};a(Jpe,"isCommit");y(Jpe,"isCommit");aC={$type:"Common",accDescr:"accDescr",accTitle:"accTitle",title:"title"},Xh={$type:"Component",decorator:"decorator",evolution:"evolution",inertia:"inertia",label:"label",name:"name",visibility:"visibility"},sC={$type:"Curve",entries:"entries",label:"label",name:"name"},oC={$type:"Deaccelerator",name:"name",x:"x",y:"y"},Pie={$type:"Decorator",strategy:"strategy"},Wp={$type:"Direction",accDescr:"accDescr",accTitle:"accTitle",dir:"dir",statements:"statements",title:"title"},Bo={$type:"Edge",lhsDir:"lhsDir",lhsGroup:"lhsGroup",lhsId:"lhsId",lhsInto:"lhsInto",rhsDir:"rhsDir",rhsGroup:"rhsGroup",rhsId:"rhsId",rhsInto:"rhsInto",title:"title"},nd={$type:"EmDataEntity",dataBlockValue:"dataBlockValue",dataType:"dataType",name:"name"},du={$type:"EmFrame"},z0={$type:"EmGwt",givenStatements:"givenStatements",sourceFrame:"sourceFrame",thenStatements:"thenStatements",whenStatements:"whenStatements"},Bie={$type:"EmGwtStatement",entityIdentifier:"entityIdentifier"},TD={$type:"EmModelEntity",name:"name"};a(eme,"isEmModelEntityType");y(eme,"isEmModelEntityType");lC={$type:"EmNoteEntity",dataBlockValue:"dataBlockValue",dataType:"dataType",sourceFrame:"sourceFrame"},Ol={$type:"EmResetFrame",dataInlineValue:"dataInlineValue",dataReference:"dataReference",dataType:"dataType",entityIdentifier:"entityIdentifier",modelEntityType:"modelEntityType",name:"name",sourceFrames:"sourceFrames"};a(NS,"isEmResetFrame");y(NS,"isEmResetFrame");hu={$type:"EmTimeFrame",dataInlineValue:"dataInlineValue",dataReference:"dataReference",dataType:"dataType",entityIdentifier:"entityIdentifier",modelEntityType:"modelEntityType",name:"name",sourceFrames:"sourceFrames"},kD={$type:"Entry",axis:"axis",value:"value"},Fo={$type:"EventModel",accDescr:"accDescr",accTitle:"accTitle",dataEntities:"dataEntities",frames:"frames",gwtEntities:"gwtEntities",modelEntities:"modelEntities",noteEntities:"noteEntities",title:"title"},$ie={$type:"Evolution",stages:"stages"},cC={$type:"EvolutionStage",boundary:"boundary",name:"name",secondName:"secondName"},CD={$type:"Evolve",component:"component",target:"target"},bu={$type:"GitGraph",accDescr:"accDescr",accTitle:"accTitle",statements:"statements",title:"title"};a(tme,"isGitGraph");y(tme,"isGitGraph");q0={$type:"Group",icon:"icon",id:"id",in:"in",title:"title"},am={$type:"Info",accDescr:"accDescr",accTitle:"accTitle",title:"title"};a(rme,"isInfo");y(rme,"isInfo");j0={$type:"Item",classSelector:"classSelector",name:"name"},vD={$type:"Junction",id:"id",in:"in"},U0={$type:"Label",negX:"negX",negY:"negY",offsetX:"offsetX",offsetY:"offsetY"},uC={$type:"Leaf",classSelector:"classSelector",name:"name",value:"value"},Qh={$type:"Link",arrow:"arrow",from:"from",fromPort:"fromPort",linkLabel:"linkLabel",to:"to",toPort:"toPort"},bd={$type:"Merge",branch:"branch",id:"id",tags:"tags",type:"type"};a(ime,"isMerge");y(ime,"isMerge");hC={$type:"Note",evolution:"evolution",text:"text",visibility:"visibility"},SD={$type:"Option",name:"name",value:"value"},Td={$type:"Packet",accDescr:"accDescr",accTitle:"accTitle",blocks:"blocks",title:"title"};a(nme,"isPacket");y(nme,"isPacket");kd={$type:"PacketBlock",bits:"bits",end:"end",label:"label",start:"start"};a(ame,"isPacketBlock");y(ame,"isPacketBlock");Tu={$type:"Pie",accDescr:"accDescr",accTitle:"accTitle",sections:"sections",showData:"showData",title:"title"};a(sme,"isPie");y(sme,"isPie");k1={$type:"PieSection",label:"label",value:"value"};a(ome,"isPieSection");y(ome,"isPieSection");_D={$type:"Pipeline",components:"components",parent:"parent"},dC={$type:"PipelineComponent",evolution:"evolution",label:"label",name:"name"},fu={$type:"Radar",accDescr:"accDescr",accTitle:"accTitle",axes:"axes",curves:"curves",options:"options",title:"title"},wD={$type:"Section",classSelector:"classSelector",name:"name"},zp={$type:"Service",icon:"icon",iconText:"iconText",id:"id",in:"in",title:"title"},ED={$type:"Size",height:"height",width:"width"},ad={$type:"Statement"},Cd={$type:"Treemap",accDescr:"accDescr",accTitle:"accTitle",title:"title",TreemapRows:"TreemapRows"};a(lme,"isTreemap");y(lme,"isTreemap");AD={$type:"TreemapRow",indent:"indent",item:"item"},MC={$type:"TreeNode",indent:"indent",name:"name"},Xp={$type:"TreeView",accDescr:"accDescr",accTitle:"accTitle",nodes:"nodes",title:"title"},en={$type:"Wardley",accDescr:"accDescr",accelerators:"accelerators",accTitle:"accTitle",anchors:"anchors",annotation:"annotation",annotations:"annotations",components:"components",deaccelerators:"deaccelerators",evolution:"evolution",evolves:"evolves",links:"links",notes:"notes",pipelines:"pipelines",size:"size",title:"title"};a(cme,"isWardley");y(cme,"isWardley");ume=class extends L6{static{a(this,"MermaidAstReflection")}constructor(){super(...arguments),this.types={Accelerator:{name:tC.$type,properties:{name:{name:tC.name},x:{name:tC.x},y:{name:tC.y}},superTypes:[]},Anchor:{name:rC.$type,properties:{evolution:{name:rC.evolution},name:{name:rC.name},visibility:{name:rC.visibility}},superTypes:[]},Annotation:{name:W0.$type,properties:{number:{name:W0.number},text:{name:W0.text},x:{name:W0.x},y:{name:W0.y}},superTypes:[]},Annotations:{name:xD.$type,properties:{x:{name:xD.x},y:{name:xD.y}},superTypes:[]},Architecture:{name:Go.$type,properties:{accDescr:{name:Go.accDescr},accTitle:{name:Go.accTitle},edges:{name:Go.edges,defaultValue:[]},groups:{name:Go.groups,defaultValue:[]},junctions:{name:Go.junctions,defaultValue:[]},services:{name:Go.services,defaultValue:[]},title:{name:Go.title}},superTypes:[]},Axis:{name:iC.$type,properties:{label:{name:iC.label},name:{name:iC.name}},superTypes:[]},Branch:{name:T1.$type,properties:{name:{name:T1.name},order:{name:T1.order}},superTypes:[ad.$type]},Checkout:{name:Oie.$type,properties:{branch:{name:Oie.branch}},superTypes:[ad.$type]},CherryPicking:{name:nC.$type,properties:{id:{name:nC.id},parent:{name:nC.parent},tags:{name:nC.tags,defaultValue:[]}},superTypes:[ad.$type]},ClassDefStatement:{name:bD.$type,properties:{className:{name:bD.className},styleText:{name:bD.styleText}},superTypes:[]},Commit:{name:xd.$type,properties:{id:{name:xd.id},message:{name:xd.message},tags:{name:xd.tags,defaultValue:[]},type:{name:xd.type}},superTypes:[ad.$type]},Common:{name:aC.$type,properties:{accDescr:{name:aC.accDescr},accTitle:{name:aC.accTitle},title:{name:aC.title}},superTypes:[]},Component:{name:Xh.$type,properties:{decorator:{name:Xh.decorator},evolution:{name:Xh.evolution},inertia:{name:Xh.inertia,defaultValue:!1},label:{name:Xh.label},name:{name:Xh.name},visibility:{name:Xh.visibility}},superTypes:[]},Curve:{name:sC.$type,properties:{entries:{name:sC.entries,defaultValue:[]},label:{name:sC.label},name:{name:sC.name}},superTypes:[]},Deaccelerator:{name:oC.$type,properties:{name:{name:oC.name},x:{name:oC.x},y:{name:oC.y}},superTypes:[]},Decorator:{name:Pie.$type,properties:{strategy:{name:Pie.strategy}},superTypes:[]},Direction:{name:Wp.$type,properties:{accDescr:{name:Wp.accDescr},accTitle:{name:Wp.accTitle},dir:{name:Wp.dir},statements:{name:Wp.statements,defaultValue:[]},title:{name:Wp.title}},superTypes:[bu.$type]},Edge:{name:Bo.$type,properties:{lhsDir:{name:Bo.lhsDir},lhsGroup:{name:Bo.lhsGroup,defaultValue:!1},lhsId:{name:Bo.lhsId},lhsInto:{name:Bo.lhsInto,defaultValue:!1},rhsDir:{name:Bo.rhsDir},rhsGroup:{name:Bo.rhsGroup,defaultValue:!1},rhsId:{name:Bo.rhsId},rhsInto:{name:Bo.rhsInto,defaultValue:!1},title:{name:Bo.title}},superTypes:[]},EmDataEntity:{name:nd.$type,properties:{dataBlockValue:{name:nd.dataBlockValue},dataType:{name:nd.dataType},name:{name:nd.name}},superTypes:[]},EmFrame:{name:du.$type,properties:{},superTypes:[]},EmGwt:{name:z0.$type,properties:{givenStatements:{name:z0.givenStatements,defaultValue:[]},sourceFrame:{name:z0.sourceFrame,referenceType:du.$type},thenStatements:{name:z0.thenStatements,defaultValue:[]},whenStatements:{name:z0.whenStatements,defaultValue:[]}},superTypes:[]},EmGwtStatement:{name:Bie.$type,properties:{entityIdentifier:{name:Bie.entityIdentifier,referenceType:TD.$type}},superTypes:[]},EmModelEntity:{name:TD.$type,properties:{name:{name:TD.name}},superTypes:[]},EmNoteEntity:{name:lC.$type,properties:{dataBlockValue:{name:lC.dataBlockValue},dataType:{name:lC.dataType},sourceFrame:{name:lC.sourceFrame,referenceType:du.$type}},superTypes:[]},EmResetFrame:{name:Ol.$type,properties:{dataInlineValue:{name:Ol.dataInlineValue},dataReference:{name:Ol.dataReference,referenceType:nd.$type},dataType:{name:Ol.dataType},entityIdentifier:{name:Ol.entityIdentifier},modelEntityType:{name:Ol.modelEntityType},name:{name:Ol.name},sourceFrames:{name:Ol.sourceFrames,defaultValue:[],referenceType:du.$type}},superTypes:[du.$type]},EmTimeFrame:{name:hu.$type,properties:{dataInlineValue:{name:hu.dataInlineValue},dataReference:{name:hu.dataReference,referenceType:nd.$type},dataType:{name:hu.dataType},entityIdentifier:{name:hu.entityIdentifier},modelEntityType:{name:hu.modelEntityType},name:{name:hu.name},sourceFrames:{name:hu.sourceFrames,defaultValue:[],referenceType:du.$type}},superTypes:[du.$type]},Entry:{name:kD.$type,properties:{axis:{name:kD.axis,referenceType:iC.$type},value:{name:kD.value}},superTypes:[]},EventModel:{name:Fo.$type,properties:{accDescr:{name:Fo.accDescr},accTitle:{name:Fo.accTitle},dataEntities:{name:Fo.dataEntities,defaultValue:[]},frames:{name:Fo.frames,defaultValue:[]},gwtEntities:{name:Fo.gwtEntities,defaultValue:[]},modelEntities:{name:Fo.modelEntities,defaultValue:[]},noteEntities:{name:Fo.noteEntities,defaultValue:[]},title:{name:Fo.title}},superTypes:[]},Evolution:{name:$ie.$type,properties:{stages:{name:$ie.stages,defaultValue:[]}},superTypes:[]},EvolutionStage:{name:cC.$type,properties:{boundary:{name:cC.boundary},name:{name:cC.name},secondName:{name:cC.secondName}},superTypes:[]},Evolve:{name:CD.$type,properties:{component:{name:CD.component},target:{name:CD.target}},superTypes:[]},GitGraph:{name:bu.$type,properties:{accDescr:{name:bu.accDescr},accTitle:{name:bu.accTitle},statements:{name:bu.statements,defaultValue:[]},title:{name:bu.title}},superTypes:[]},Group:{name:q0.$type,properties:{icon:{name:q0.icon},id:{name:q0.id},in:{name:q0.in},title:{name:q0.title}},superTypes:[]},Info:{name:am.$type,properties:{accDescr:{name:am.accDescr},accTitle:{name:am.accTitle},title:{name:am.title}},superTypes:[]},Item:{name:j0.$type,properties:{classSelector:{name:j0.classSelector},name:{name:j0.name}},superTypes:[]},Junction:{name:vD.$type,properties:{id:{name:vD.id},in:{name:vD.in}},superTypes:[]},Label:{name:U0.$type,properties:{negX:{name:U0.negX,defaultValue:!1},negY:{name:U0.negY,defaultValue:!1},offsetX:{name:U0.offsetX},offsetY:{name:U0.offsetY}},superTypes:[]},Leaf:{name:uC.$type,properties:{classSelector:{name:uC.classSelector},name:{name:uC.name},value:{name:uC.value}},superTypes:[j0.$type]},Link:{name:Qh.$type,properties:{arrow:{name:Qh.arrow},from:{name:Qh.from},fromPort:{name:Qh.fromPort},linkLabel:{name:Qh.linkLabel},to:{name:Qh.to},toPort:{name:Qh.toPort}},superTypes:[]},Merge:{name:bd.$type,properties:{branch:{name:bd.branch},id:{name:bd.id},tags:{name:bd.tags,defaultValue:[]},type:{name:bd.type}},superTypes:[ad.$type]},Note:{name:hC.$type,properties:{evolution:{name:hC.evolution},text:{name:hC.text},visibility:{name:hC.visibility}},superTypes:[]},Option:{name:SD.$type,properties:{name:{name:SD.name},value:{name:SD.value,defaultValue:!1}},superTypes:[]},Packet:{name:Td.$type,properties:{accDescr:{name:Td.accDescr},accTitle:{name:Td.accTitle},blocks:{name:Td.blocks,defaultValue:[]},title:{name:Td.title}},superTypes:[]},PacketBlock:{name:kd.$type,properties:{bits:{name:kd.bits},end:{name:kd.end},label:{name:kd.label},start:{name:kd.start}},superTypes:[]},Pie:{name:Tu.$type,properties:{accDescr:{name:Tu.accDescr},accTitle:{name:Tu.accTitle},sections:{name:Tu.sections,defaultValue:[]},showData:{name:Tu.showData,defaultValue:!1},title:{name:Tu.title}},superTypes:[]},PieSection:{name:k1.$type,properties:{label:{name:k1.label},value:{name:k1.value}},superTypes:[]},Pipeline:{name:_D.$type,properties:{components:{name:_D.components,defaultValue:[]},parent:{name:_D.parent}},superTypes:[]},PipelineComponent:{name:dC.$type,properties:{evolution:{name:dC.evolution},label:{name:dC.label},name:{name:dC.name}},superTypes:[]},Radar:{name:fu.$type,properties:{accDescr:{name:fu.accDescr},accTitle:{name:fu.accTitle},axes:{name:fu.axes,defaultValue:[]},curves:{name:fu.curves,defaultValue:[]},options:{name:fu.options,defaultValue:[]},title:{name:fu.title}},superTypes:[]},Section:{name:wD.$type,properties:{classSelector:{name:wD.classSelector},name:{name:wD.name}},superTypes:[j0.$type]},Service:{name:zp.$type,properties:{icon:{name:zp.icon},iconText:{name:zp.iconText},id:{name:zp.id},in:{name:zp.in},title:{name:zp.title}},superTypes:[]},Size:{name:ED.$type,properties:{height:{name:ED.height},width:{name:ED.width}},superTypes:[]},Statement:{name:ad.$type,properties:{},superTypes:[]},TreeNode:{name:MC.$type,properties:{indent:{name:MC.indent},name:{name:MC.name}},superTypes:[]},TreeView:{name:Xp.$type,properties:{accDescr:{name:Xp.accDescr},accTitle:{name:Xp.accTitle},nodes:{name:Xp.nodes,defaultValue:[]},title:{name:Xp.title}},superTypes:[]},Treemap:{name:Cd.$type,properties:{accDescr:{name:Cd.accDescr},accTitle:{name:Cd.accTitle},title:{name:Cd.title},TreemapRows:{name:Cd.TreemapRows,defaultValue:[]}},superTypes:[]},TreemapRow:{name:AD.$type,properties:{indent:{name:AD.indent},item:{name:AD.item}},superTypes:[]},Wardley:{name:en.$type,properties:{accDescr:{name:en.accDescr},accelerators:{name:en.accelerators,defaultValue:[]},accTitle:{name:en.accTitle},anchors:{name:en.anchors,defaultValue:[]},annotation:{name:en.annotation,defaultValue:[]},annotations:{name:en.annotations,defaultValue:[]},components:{name:en.components,defaultValue:[]},deaccelerators:{name:en.deaccelerators,defaultValue:[]},evolution:{name:en.evolution},evolves:{name:en.evolves,defaultValue:[]},links:{name:en.links,defaultValue:[]},notes:{name:en.notes,defaultValue:[]},pipelines:{name:en.pipelines,defaultValue:[]},size:{name:en.size},title:{name:en.title}},superTypes:[]}}}static{y(this,"MermaidAstReflection")}},Ba=new ume,uKe=y(()=>Fie??(Fie=Pa(`{"$type":"Grammar","isDeclared":true,"name":"ArchitectureGrammar","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"Architecture","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[],"cardinality":"*"},{"$type":"Keyword","value":"architecture-beta"},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}],"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"Statement","definition":{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"groups","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Assignment","feature":"services","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}},{"$type":"Assignment","feature":"junctions","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}},{"$type":"Assignment","feature":"edges","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}}]},"entry":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"LeftPort","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":":"},{"$type":"Assignment","feature":"lhsDir","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}}]},"entry":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"RightPort","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"rhsDir","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}},{"$type":"Keyword","value":":"}]},"entry":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"Arrow","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]},{"$type":"Assignment","feature":"lhsInto","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]},"cardinality":"?"},{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"--"},{"$type":"Group","elements":[{"$type":"Keyword","value":"-"},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@29"},"arguments":[]}},{"$type":"Keyword","value":"-"}]}]},{"$type":"Assignment","feature":"rhsInto","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]},"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}]},"entry":false,"parameters":[]},{"$type":"ParserRule","name":"Group","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"group"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}},{"$type":"Assignment","feature":"icon","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@28"},"arguments":[]},"cardinality":"?"},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@29"},"arguments":[]},"cardinality":"?"},{"$type":"Group","elements":[{"$type":"Keyword","value":"in"},{"$type":"Assignment","feature":"in","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Service","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"service"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"iconText","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@21"},"arguments":[]}},{"$type":"Assignment","feature":"icon","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@28"},"arguments":[]}}],"cardinality":"?"},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@29"},"arguments":[]},"cardinality":"?"},{"$type":"Group","elements":[{"$type":"Keyword","value":"in"},{"$type":"Assignment","feature":"in","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Junction","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"junction"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"in"},{"$type":"Assignment","feature":"in","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Edge","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"lhsId","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}},{"$type":"Assignment","feature":"lhsGroup","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]},"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]},{"$type":"Assignment","feature":"rhsId","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}},{"$type":"Assignment","feature":"rhsGroup","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]},"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"ARROW_DIRECTION","definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"L"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"R"},"parenthesized":false}],"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"T"},"parenthesized":false}],"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"B"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARROW_GROUP","definition":{"$type":"RegexToken","regex":"/\\\\{group\\\\}/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARROW_INTO","definition":{"$type":"RegexToken","regex":"/<|>/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"ParserRule","name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@18"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@19"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","name":"ARCH_ICON","definition":{"$type":"RegexToken","regex":"/\\\\([\\\\w-:]+\\\\)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARCH_TITLE","definition":{"$type":"RegexToken","regex":"/\\\\[(?:\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'|[\\\\w ]+)\\\\]/","parenthesized":false},"fragment":false,"hidden":false}],"interfaces":[],"types":[]}`)),"ArchitectureGrammarGrammar"),hKe=y(()=>Vie??(Vie=Pa('{"$type":"Grammar","isDeclared":true,"name":"EventModeling","interfaces":[{"$type":"Interface","name":"Common","attributes":[{"$type":"TypeAttribute","name":"accDescr","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accTitle","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"title","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}}],"superTypes":[]}],"rules":[{"$type":"ParserRule","entry":true,"name":"EventModel","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"eventmodeling"},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@21"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}},{"$type":"Assignment","feature":"modelEntities","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}},{"$type":"Assignment","feature":"frames","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}},{"$type":"Assignment","feature":"dataEntities","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}},{"$type":"Assignment","feature":"noteEntities","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]}},{"$type":"Assignment","feature":"gwtEntities","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}}],"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmModelEntityType","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"rmo"},{"$type":"Keyword","value":"readmodel"},{"$type":"Keyword","value":"ui"},{"$type":"Keyword","value":"cmd"},{"$type":"Keyword","value":"command"},{"$type":"Keyword","value":"evt"},{"$type":"Keyword","value":"event"},{"$type":"Keyword","value":"pcr"},{"$type":"Keyword","value":"processor"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmDataType","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"json"},{"$type":"Keyword","value":"jsobj"},{"$type":"Keyword","value":"figma"},{"$type":"Keyword","value":"salt"},{"$type":"Keyword","value":"uri"},{"$type":"Keyword","value":"md"},{"$type":"Keyword","value":"html"},{"$type":"Keyword","value":"text"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"EmDataInline","definition":{"$type":"Group","elements":[{"$type":"Group","elements":[{"$type":"Keyword","value":"`"},{"$type":"Assignment","feature":"dataType","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}},{"$type":"Keyword","value":"`"}],"cardinality":"?"},{"$type":"Assignment","feature":"dataInlineValue","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[]}}]},"entry":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"EmDataBlock","definition":{"$type":"Group","elements":[{"$type":"Group","elements":[{"$type":"Keyword","value":"`"},{"$type":"Assignment","feature":"dataType","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}},{"$type":"Keyword","value":"`"}],"cardinality":"?"},{"$type":"Assignment","feature":"dataBlockValue","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}}]},"entry":false,"parameters":[]},{"$type":"ParserRule","name":"QualifiedName","dataType":"string","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]},{"$type":"Group","elements":[{"$type":"Keyword","value":"."},{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}],"cardinality":"*"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmTimeFrame","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"tf"},{"$type":"Keyword","value":"timeframe"}]},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}},{"$type":"Assignment","feature":"modelEntityType","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}},{"$type":"Assignment","feature":"entityIdentifier","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"->>"},{"$type":"Assignment","feature":"sourceFrames","operator":"+=","terminal":{"$type":"CrossReference","type":{"$ref":"#/rules@8"},"terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]},"deprecatedSyntax":false,"isMulti":false}}],"cardinality":"*"},{"$type":"Group","elements":[{"$type":"Keyword","value":"[["},{"$type":"Assignment","feature":"dataReference","operator":"=","terminal":{"$type":"CrossReference","type":{"$ref":"#/rules@10"},"terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]},"deprecatedSyntax":false,"isMulti":false}},{"$type":"Keyword","value":"]]"}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[],"cardinality":"?"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmResetFrame","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"rf"},{"$type":"Keyword","value":"resetframe"}]},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}},{"$type":"Assignment","feature":"modelEntityType","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}},{"$type":"Assignment","feature":"entityIdentifier","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"->>"},{"$type":"Assignment","feature":"sourceFrames","operator":"+=","terminal":{"$type":"CrossReference","type":{"$ref":"#/rules@8"},"terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]},"deprecatedSyntax":false,"isMulti":false}}],"cardinality":"*"},{"$type":"Group","elements":[{"$type":"Keyword","value":"[["},{"$type":"Assignment","feature":"dataReference","operator":"=","terminal":{"$type":"CrossReference","type":{"$ref":"#/rules@10"},"terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]},"deprecatedSyntax":false,"isMulti":false}},{"$type":"Keyword","value":"]]"}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[],"cardinality":"?"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmFrame","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmModelEntity","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"entity"},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmDataEntity","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"data"},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmNoteEntity","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"note"},{"$type":"Assignment","feature":"sourceFrame","operator":"=","terminal":{"$type":"CrossReference","type":{"$ref":"#/rules@8"},"terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]},"deprecatedSyntax":false,"isMulti":false}},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmGwt","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"gwt"},{"$type":"Assignment","feature":"sourceFrame","operator":"=","terminal":{"$type":"CrossReference","type":{"$ref":"#/rules@8"},"terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]},"deprecatedSyntax":false,"isMulti":false}},{"$type":"Keyword","value":"given"},{"$type":"Assignment","feature":"givenStatements","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]},"cardinality":"+"},{"$type":"Group","elements":[{"$type":"Keyword","value":"when"},{"$type":"Assignment","feature":"whenStatements","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]},"cardinality":"+"}],"cardinality":"?"},{"$type":"Keyword","value":"then"},{"$type":"Assignment","feature":"thenStatements","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]},"cardinality":"+"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmGwtStatement","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]},{"$type":"Assignment","feature":"entityIdentifier","operator":"=","terminal":{"$type":"CrossReference","type":{"$ref":"#/rules@9"},"terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]},"deprecatedSyntax":false,"isMulti":false}}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EM_EID","dataType":"string","definition":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EM_FI","dataType":"string","definition":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]},"entry":false,"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"EM_ID","definition":{"$type":"RegexToken","regex":"/[_a-zA-Z][\\\\w_]*/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"EM_FID","definition":{"$type":"RegexToken","regex":"/\\\\d{1,3}/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"EM_DATA_INLINE","definition":{"$type":"RegexToken","regex":"/\\\\{(.*)\\\\}|\\"(.*)\\"|\'(.*)\'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"EM_DATA_BLOCK","definition":{"$type":"RegexToken","regex":"/\\\\{[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?\\\\}(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"EM_ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"EM_ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"EM_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"EM_WS","definition":{"$type":"RegexToken","regex":"/\\\\s+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"EM_YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"EM_DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"EM_SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"EM_ML_COMMENT","definition":{"$type":"RegexToken","regex":"/\\\\/\\\\*[\\\\s\\\\S]*?\\\\*\\\\//","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"EM_SL_COMMENT","definition":{"$type":"RegexToken","regex":"/\\\\/\\\\/[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false}],"imports":[],"types":[]}')),"EventModelingGrammar"),dKe=y(()=>Gie??(Gie=Pa(`{"$type":"Grammar","isDeclared":true,"name":"GitGraphGrammar","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"GitGraph","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[],"cardinality":"*"},{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"gitGraph"},{"$type":"Group","elements":[{"$type":"Keyword","value":"gitGraph"},{"$type":"Keyword","value":":"}]},{"$type":"Keyword","value":"gitGraph:"},{"$type":"Group","elements":[{"$type":"Keyword","value":"gitGraph"},{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]},{"$type":"Keyword","value":":"}]}]},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]},{"$type":"Assignment","feature":"statements","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}}],"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Statement","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Direction","definition":{"$type":"Assignment","feature":"dir","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"LR"},{"$type":"Keyword","value":"TB"},{"$type":"Keyword","value":"BT"}]}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Commit","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"commit"},{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"Keyword","value":"id:"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"msg:","cardinality":"?"},{"$type":"Assignment","feature":"message","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"tag:"},{"$type":"Assignment","feature":"tags","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"type:"},{"$type":"Assignment","feature":"type","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"NORMAL"},{"$type":"Keyword","value":"REVERSE"},{"$type":"Keyword","value":"HIGHLIGHT"}]}}]}],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Branch","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"branch"},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@24"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"order:"},{"$type":"Assignment","feature":"order","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Merge","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"merge"},{"$type":"Assignment","feature":"branch","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@24"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}]}},{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"Keyword","value":"id:"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"tag:"},{"$type":"Assignment","feature":"tags","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"type:"},{"$type":"Assignment","feature":"type","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"NORMAL"},{"$type":"Keyword","value":"REVERSE"},{"$type":"Keyword","value":"HIGHLIGHT"}]}}]}],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Checkout","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"checkout"},{"$type":"Keyword","value":"switch"}]},{"$type":"Assignment","feature":"branch","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@24"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"CherryPicking","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"cherry-pick"},{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"Keyword","value":"id:"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"tag:"},{"$type":"Assignment","feature":"tags","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"parent:"},{"$type":"Assignment","feature":"parent","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]}],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@14"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@15"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","name":"REFERENCE","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\\\w([-\\\\./\\\\w]*[-\\\\w])?/","parenthesized":false},"fragment":false,"hidden":false}],"interfaces":[],"types":[]}`)),"GitGraphGrammarGrammar"),fKe=y(()=>Wie??(Wie=Pa(`{"$type":"Grammar","isDeclared":true,"name":"InfoGrammar","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"Info","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[],"cardinality":"*"},{"$type":"Keyword","value":"info"},{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[],"cardinality":"*"},{"$type":"Group","elements":[{"$type":"Keyword","value":"showInfo"},{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[],"cardinality":"*"}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[],"cardinality":"?"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@7"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@8"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false}],"interfaces":[],"types":[]}`)),"InfoGrammarGrammar"),pKe=y(()=>zie??(zie=Pa(`{"$type":"Grammar","isDeclared":true,"name":"PacketGrammar","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"Packet","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[],"cardinality":"*"},{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"packet"},{"$type":"Keyword","value":"packet-beta"}]},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]},{"$type":"Assignment","feature":"blocks","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}],"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PacketBlock","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"Assignment","feature":"start","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"-"},{"$type":"Assignment","feature":"end","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}}],"cardinality":"?"}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"+"},{"$type":"Assignment","feature":"bits","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}}]}]},{"$type":"Keyword","value":":"},{"$type":"Assignment","feature":"label","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@8"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@9"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false}],"interfaces":[],"types":[]}`)),"PacketGrammarGrammar"),mKe=y(()=>qie??(qie=Pa(`{"$type":"Grammar","isDeclared":true,"name":"PieGrammar","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"Pie","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[],"cardinality":"*"},{"$type":"Keyword","value":"pie"},{"$type":"Assignment","feature":"showData","operator":"?=","terminal":{"$type":"Keyword","value":"showData"},"cardinality":"?"},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]},{"$type":"Assignment","feature":"sections","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}],"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PieSection","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"label","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}},{"$type":"Keyword","value":":"},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"FLOAT_PIE","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/-?[0-9]+\\\\.[0-9]+(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT_PIE","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/-?(0|[1-9][0-9]*)(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER_PIE","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@2"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@3"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"ParserRule","name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@11"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@12"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false}],"interfaces":[],"types":[]}`)),"PieGrammarGrammar"),gKe=y(()=>jie??(jie=Pa(`{"$type":"Grammar","isDeclared":true,"name":"RadarGrammar","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"Radar","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"},{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"radar-beta"},{"$type":"Keyword","value":"radar-beta:"},{"$type":"Group","elements":[{"$type":"Keyword","value":"radar-beta"},{"$type":"Keyword","value":":"}]}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]},{"$type":"Group","elements":[{"$type":"Keyword","value":"axis"},{"$type":"Assignment","feature":"axes","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"axes","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}}],"cardinality":"*"}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"curve"},{"$type":"Assignment","feature":"curves","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"curves","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}}],"cardinality":"*"}]},{"$type":"Group","elements":[{"$type":"Assignment","feature":"options","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"options","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}}],"cardinality":"*"}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}],"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"Label","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"label","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[]}},{"$type":"Keyword","value":"]"}]},"entry":false,"parameters":[]},{"$type":"ParserRule","name":"Axis","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[],"cardinality":"?"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Curve","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[],"cardinality":"?"},{"$type":"Keyword","value":"{"},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]},{"$type":"Keyword","value":"}"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"Entries","definition":{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"},{"$type":"Assignment","feature":"entries","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":","},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"},{"$type":"Assignment","feature":"entries","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}}],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"}]},{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"},{"$type":"Assignment","feature":"entries","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":","},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"},{"$type":"Assignment","feature":"entries","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}}],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"}]}]},"entry":false,"parameters":[]},{"$type":"ParserRule","name":"DetailedEntry","returnType":{"$ref":"#/interfaces@0"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"axis","operator":"=","terminal":{"$type":"CrossReference","type":{"$ref":"#/rules@2"},"terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},"deprecatedSyntax":false,"isMulti":false}},{"$type":"Keyword","value":":","cardinality":"?"},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"NumberEntry","returnType":{"$ref":"#/interfaces@0"},"definition":{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Option","definition":{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Keyword","value":"showLegend"}},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Keyword","value":"ticks"}},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Keyword","value":"max"}},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Keyword","value":"min"}},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Keyword","value":"graticule"}},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}}]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"GRATICULE","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"circle"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"polygon"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"ParserRule","name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@15"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@16"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false}],"interfaces":[{"$type":"Interface","name":"Entry","attributes":[{"$type":"TypeAttribute","name":"axis","isOptional":true,"type":{"$type":"ReferenceType","referenceType":{"$type":"SimpleType","typeRef":{"$ref":"#/rules@2"}},"isMulti":false}},{"$type":"TypeAttribute","name":"value","type":{"$type":"SimpleType","primitiveType":"number"},"isOptional":false}],"superTypes":[]}],"types":[]}`)),"RadarGrammarGrammar"),yKe=y(()=>Uie??(Uie=Pa(`{"$type":"Grammar","isDeclared":true,"name":"TreemapGrammar","rules":[{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"ParserRule","entry":true,"name":"Treemap","returnType":{"$ref":"#/interfaces@4"},"definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@0"},"arguments":[]},{"$type":"Assignment","feature":"TreemapRows","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}}],"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"TREEMAP_KEYWORD","definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"treemap-beta"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"treemap"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"CLASS_DEF","definition":{"$type":"RegexToken","regex":"/classDef\\\\s+([a-zA-Z_][a-zA-Z0-9_]+)(?:\\\\s+([^;\\\\r\\\\n]*))?(?:;)?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STYLE_SEPARATOR","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":":::"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"SEPARATOR","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":":"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"COMMA","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":","},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INDENTATION","definition":{"$type":"RegexToken","regex":"/[ \\\\t]{1,}/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WS","definition":{"$type":"RegexToken","regex":"/[ \\\\t]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"ML_COMMENT","definition":{"$type":"RegexToken","regex":"/\\\\%\\\\%[^\\\\n]*/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"NL","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false},{"$type":"ParserRule","name":"TreemapRow","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"indent","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]},"cardinality":"?"},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"item","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"ClassDef","dataType":"string","definition":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Item","returnType":{"$ref":"#/interfaces@0"},"definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Section","returnType":{"$ref":"#/interfaces@1"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]},{"$type":"Assignment","feature":"classSelector","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}}],"cardinality":"?"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Leaf","returnType":{"$ref":"#/interfaces@2"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[],"cardinality":"?"},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[],"cardinality":"?"},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]},{"$type":"Assignment","feature":"classSelector","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}}],"cardinality":"?"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"ID2","definition":{"$type":"RegexToken","regex":"/[a-zA-Z_][a-zA-Z0-9_]*/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER2","definition":{"$type":"RegexToken","regex":"/[0-9_\\\\.\\\\,]+/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"ParserRule","name":"MyNumber","dataType":"number","definition":{"$type":"RuleCall","rule":{"$ref":"#/rules@21"},"arguments":[]},"entry":false,"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"STRING2","definition":{"$type":"RegexToken","regex":"/\\"[^\\"]*\\"|'[^']*'/","parenthesized":false},"fragment":false,"hidden":false}],"interfaces":[{"$type":"Interface","name":"Item","attributes":[{"$type":"TypeAttribute","name":"name","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false},{"$type":"TypeAttribute","name":"classSelector","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}}],"superTypes":[]},{"$type":"Interface","name":"Section","superTypes":[{"$ref":"#/interfaces@0"}],"attributes":[]},{"$type":"Interface","name":"Leaf","superTypes":[{"$ref":"#/interfaces@0"}],"attributes":[{"$type":"TypeAttribute","name":"value","type":{"$type":"SimpleType","primitiveType":"number"},"isOptional":false}]},{"$type":"Interface","name":"ClassDefStatement","attributes":[{"$type":"TypeAttribute","name":"className","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false},{"$type":"TypeAttribute","name":"styleText","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"Treemap","attributes":[{"$type":"TypeAttribute","name":"TreemapRows","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/rules@15"}}},"isOptional":false},{"$type":"TypeAttribute","name":"title","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accTitle","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accDescr","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}}],"superTypes":[]}],"imports":[],"types":[],"$comment":"/**\\n * Treemap grammar for Langium\\n * Converted from mindmap grammar\\n *\\n * The ML_COMMENT and NL hidden terminals handle whitespace, comments, and newlines\\n * before the treemap keyword, allowing for empty lines and comments before the\\n * treemap declaration.\\n */"}`)),"TreemapGrammarGrammar"),xKe=y(()=>Hie??(Hie=Pa(`{"$type":"Grammar","isDeclared":true,"name":"TreeViewGrammar","rules":[{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"ParserRule","entry":true,"name":"TreeView","returnType":{"$ref":"#/interfaces@0"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"treeView-beta"},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[],"cardinality":"?"},{"$type":"Assignment","feature":"nodes","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]},"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@0"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"INDENTATION","definition":{"$type":"RegexToken","regex":"/[ \\\\t]{1,}/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WS","definition":{"$type":"RegexToken","regex":"/[ \\\\t]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"ML_COMMENT","definition":{"$type":"RegexToken","regex":"/\\\\%\\\\%[^\\\\n]*/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"NL","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false},{"$type":"ParserRule","name":"TreeNode","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"indent","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]},"cardinality":"?"},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"STRING2","definition":{"$type":"RegexToken","regex":"/\\"[^\\"]*\\"|'[^']*'/","parenthesized":false},"fragment":false,"hidden":false}],"interfaces":[{"$type":"Interface","name":"TreeView","attributes":[{"$type":"TypeAttribute","name":"nodes","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/rules@9"}}},"isOptional":false},{"$type":"TypeAttribute","name":"title","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accTitle","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accDescr","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}}],"superTypes":[]}],"imports":[],"types":[],"$comment":"/**\\n * TreeView grammar for Langium\\n * Converted from treemap grammar\\n *\\n * The ML_COMMENT and NL hidden terminals handle whitespace, comments, and newlines\\n * before the treemap keyword, allowing for empty lines and comments before the\\n * treeView declaration.\\n */"}`)),"TreeViewGrammarGrammar"),bKe=y(()=>Yie??(Yie=Pa(`{"$type":"Grammar","isDeclared":true,"name":"WardleyGrammar","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"Wardley","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@52"},"arguments":[],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@25"},"arguments":[]},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@52"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@42"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}],"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"Statement","definition":{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"size","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}},{"$type":"Assignment","feature":"evolution","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"Assignment","feature":"anchors","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Assignment","feature":"components","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}},{"$type":"Assignment","feature":"links","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}},{"$type":"Assignment","feature":"evolves","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}},{"$type":"Assignment","feature":"pipelines","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]}},{"$type":"Assignment","feature":"notes","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}},{"$type":"Assignment","feature":"annotations","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}},{"$type":"Assignment","feature":"annotation","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}},{"$type":"Assignment","feature":"accelerators","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}},{"$type":"Assignment","feature":"deaccelerators","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[]}}]},"entry":false,"parameters":[]},{"$type":"ParserRule","name":"Size","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@26"},"arguments":[]},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"width","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@48"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"height","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@48"},"arguments":[]}},{"$type":"Keyword","value":"]"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Evolution","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@27"},"arguments":[]},{"$type":"Assignment","feature":"stages","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]},{"$type":"Assignment","feature":"stages","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}}],"cardinality":"+"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EvolutionStage","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"@"},{"$type":"Assignment","feature":"boundary","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}}],"cardinality":"?"},{"$type":"Group","elements":[{"$type":"Keyword","value":"/"},{"$type":"Assignment","feature":"secondName","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}}],"cardinality":"?"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Anchor","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@28"},"arguments":[]},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"visibility","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"evolution","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":"]"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Component","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@29"},"arguments":[]},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"visibility","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"evolution","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":"]"},{"$type":"Assignment","feature":"label","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]},"cardinality":"?"},{"$type":"Assignment","feature":"decorator","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]},"cardinality":"?"},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"inertia","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@31"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"("},{"$type":"Assignment","feature":"inertia","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@31"},"arguments":[]}},{"$type":"Keyword","value":")"}]}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Label","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@30"},"arguments":[]},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"negX","operator":"?=","terminal":{"$type":"Keyword","value":"-"},"cardinality":"?"},{"$type":"Assignment","feature":"offsetX","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@48"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"negY","operator":"?=","terminal":{"$type":"Keyword","value":"-"},"cardinality":"?"},{"$type":"Assignment","feature":"offsetY","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@48"},"arguments":[]}},{"$type":"Keyword","value":"]"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Decorator","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"("},{"$type":"Assignment","feature":"strategy","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@24"},"arguments":[]}},{"$type":"Keyword","value":")"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Link","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"from","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Assignment","feature":"fromPort","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@21"},"arguments":[]},"cardinality":"?"},{"$type":"Assignment","feature":"arrow","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}]},"cardinality":"?"},{"$type":"Assignment","feature":"to","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Assignment","feature":"toPort","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@21"},"arguments":[]},"cardinality":"?"},{"$type":"Assignment","feature":"linkLabel","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]},"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Evolve","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@32"},"arguments":[]},{"$type":"Assignment","feature":"component","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Assignment","feature":"target","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Pipeline","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@33"},"arguments":[]},{"$type":"Assignment","feature":"parent","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Keyword","value":"{"},{"$type":"RuleCall","rule":{"$ref":"#/rules@52"},"arguments":[],"cardinality":"+"},{"$type":"Assignment","feature":"components","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]},"cardinality":"+"},{"$type":"Keyword","value":"}"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PipelineComponent","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@29"},"arguments":[]},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"evolution","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":"]"},{"$type":"Assignment","feature":"label","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]},"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Note","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@34"},"arguments":[]},{"$type":"Assignment","feature":"text","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]}},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"visibility","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"evolution","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":"]"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Annotations","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@35"},"arguments":[]},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"x","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"y","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}},{"$type":"Keyword","value":"]"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Annotation","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@36"},"arguments":[]},{"$type":"Assignment","feature":"number","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@48"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"x","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"y","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}},{"$type":"Keyword","value":"]"},{"$type":"Assignment","feature":"text","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"CoordinateValue","dataType":"number","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@48"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Accelerator","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@37"},"arguments":[]},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"x","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"y","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":"]"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Deaccelerator","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@38"},"arguments":[]},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"x","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"y","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":"]"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"WARDLEY_NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARROW","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"->"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"LINK_PORT","definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"+<>"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"+>"},"parenthesized":false}],"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"+<"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"LINK_ARROW","definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"-->"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"-.->"},"parenthesized":false}],"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":">"},"parenthesized":false}],"parenthesized":false},{"$type":"RegexToken","regex":"/\\\\+'[^']*'<>/","parenthesized":false}],"parenthesized":false},{"$type":"RegexToken","regex":"/\\\\+'[^']*'</","parenthesized":false}],"parenthesized":false},{"$type":"RegexToken","regex":"/\\\\+'[^']*'>/","parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"LINK_LABEL","definition":{"$type":"RegexToken","regex":"/;[^\\\\n\\\\r]+/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRATEGY","definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"build"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"buy"},"parenthesized":false}],"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"outsource"},"parenthesized":false}],"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"market"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_WARDLEY","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"wardley-beta"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_SIZE","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"size"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_EVOLUTION","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"evolution"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_ANCHOR","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"anchor"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_COMPONENT","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"component"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_LABEL","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"label"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_INERTIA","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"inertia"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_EVOLVE","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"evolve"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_PIPELINE","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"pipeline"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_NOTE","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"note"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_ANNOTATIONS","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"annotations"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_ANNOTATION","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"annotation"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_ACCELERATOR","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"accelerator"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_DEACCELERATOR","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"deaccelerator"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NAME_WITH_SPACES","definition":{"$type":"RegexToken","regex":"/(?!title\\\\s|accTitle|accDescr)[A-Za-z](?:[A-Za-z0-9_()&]|-(?!>))*(?:[ \\\\t]+[A-Za-z(](?:[A-Za-z0-9_()&]|-(?!>))*)*/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WS","definition":{"$type":"RegexToken","regex":"/[ \\\\t]+/","parenthesized":false},"fragment":false},{"$type":"ParserRule","name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@52"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@44"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@45"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@46"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@47"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@48"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false}],"interfaces":[],"types":[]}`)),"WardleyGrammarGrammar"),TKe={languageId:"architecture",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},kKe={languageId:"eventmodeling",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},CKe={languageId:"gitGraph",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},vKe={languageId:"info",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},SKe={languageId:"packet",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},_Ke={languageId:"pie",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},wKe={languageId:"radar",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},EKe={languageId:"treemap",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},AKe={languageId:"treeView",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},RKe={languageId:"wardley",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},Si={AstReflection:y(()=>new ume,"AstReflection")},cO={Grammar:y(()=>uKe(),"Grammar"),LanguageMetaData:y(()=>TKe,"LanguageMetaData"),parser:{}},uO={Grammar:y(()=>hKe(),"Grammar"),LanguageMetaData:y(()=>kKe,"LanguageMetaData"),parser:{}},hO={Grammar:y(()=>dKe(),"Grammar"),LanguageMetaData:y(()=>CKe,"LanguageMetaData"),parser:{}},dO={Grammar:y(()=>fKe(),"Grammar"),LanguageMetaData:y(()=>vKe,"LanguageMetaData"),parser:{}},fO={Grammar:y(()=>pKe(),"Grammar"),LanguageMetaData:y(()=>SKe,"LanguageMetaData"),parser:{}},pO={Grammar:y(()=>mKe(),"Grammar"),LanguageMetaData:y(()=>_Ke,"LanguageMetaData"),parser:{}},mO={Grammar:y(()=>gKe(),"Grammar"),LanguageMetaData:y(()=>wKe,"LanguageMetaData"),parser:{}},gO={Grammar:y(()=>yKe(),"Grammar"),LanguageMetaData:y(()=>EKe,"LanguageMetaData"),parser:{}},yO={Grammar:y(()=>xKe(),"Grammar"),LanguageMetaData:y(()=>AKe,"LanguageMetaData"),parser:{}},xO={Grammar:y(()=>bKe(),"Grammar"),LanguageMetaData:y(()=>RKe,"LanguageMetaData"),parser:{}},LKe=/accDescr(?:[\t ]*:([^\n\r]*)|\s*{([^}]*)})/,DKe=/accTitle[\t ]*:([^\n\r]*)/,IKe=/title([\t ][^\n\r]*|)/,NKe={ACC_DESCR:LKe,ACC_TITLE:DKe,TITLE:IKe},ps=class extends GM{static{a(this,"AbstractMermaidValueConverter")}static{y(this,"AbstractMermaidValueConverter")}runConverter(e,t,r){let i=this.runCommonConverter(e,t,r);return i===void 0&&(i=this.runCustomConverter(e,t,r)),i===void 0?super.runConverter(e,t,r):i}runCommonConverter(e,t,r){let i=NKe[e.name];if(i===void 0)return;let n=i.exec(t);if(n!==null){if(n[1]!==void 0)return n[1].trim().replace(/[\t ]{2,}/gm," ");if(n[2]!==void 0)return n[2].replace(/^\s*/gm,"").replace(/\s+$/gm,"").replace(/[\t ]{2,}/gm," ").replace(/[\n\r]{2,}/gm,`
`)}}},eo=class extends ps{static{a(this,"CommonValueConverter")}static{y(this,"CommonValueConverter")}runCustomConverter(e,t,r){}},Ii=class extends SS{static{a(this,"AbstractMermaidTokenBuilder")}static{y(this,"AbstractMermaidTokenBuilder")}constructor(e){super(),this.keywords=new Set(e)}buildKeywordTokens(e,t,r){let i=super.buildKeywordTokens(e,t,r);return i.forEach(n=>{this.keywords.has(n.name)&&n.PATTERN!==void 0&&(n.PATTERN=new RegExp(n.PATTERN.toString()+"(?:(?=%%)|(?!\\S))"))}),i}},MKe=class extends Ii{static{a(this,"CommonTokenBuilder")}static{y(this,"CommonTokenBuilder")}};});function OS(e=xi){let t=Tr(ui(e),Si),r=Tr(ci({shared:t}),mO,MS);return t.ServiceRegistry.register(r),{shared:t,Radar:r}}var OKe,MS,bO=v(()=>{"use strict";bi();OKe=class extends Ii{static{a(this,"RadarTokenBuilder")}static{y(this,"RadarTokenBuilder")}constructor(){super(["radar-beta"])}},MS={parser:{TokenBuilder:y(()=>new OKe,"TokenBuilder"),ValueConverter:y(()=>new eo,"ValueConverter")}};a(OS,"createRadarServices");y(OS,"createRadarServices")});function hme(e){let t=e.validation.TreemapValidator,r=e.validation.ValidationRegistry;if(r){let i={Treemap:t.checkSingleRoot.bind(t)};r.register(i,t)}}function BS(e=xi){let t=Tr(ui(e),Si),r=Tr(ci({shared:t}),gO,PS);return t.ServiceRegistry.register(r),hme(r),{shared:t,Treemap:r}}var PKe,BKe,$Ke,FKe,PS,TO=v(()=>{"use strict";bi();PKe=class extends Ii{static{a(this,"TreemapTokenBuilder")}static{y(this,"TreemapTokenBuilder")}constructor(){super(["treemap"])}},BKe=/classDef\s+([A-Z_a-z]\w+)(?:\s+([^\n\r;]*))?;?/,$Ke=class extends ps{static{a(this,"TreemapValueConverter")}static{y(this,"TreemapValueConverter")}runCustomConverter(e,t,r){if(e.name==="NUMBER2")return parseFloat(t.replace(/,/g,""));if(e.name==="SEPARATOR")return t.substring(1,t.length-1);if(e.name==="STRING2")return t.substring(1,t.length-1);if(e.name==="INDENTATION")return t.length;if(e.name==="ClassDef"){if(typeof t!="string")return t;let i=BKe.exec(t);if(i)return{$type:"ClassDefStatement",className:i[1],styleText:i[2]||void 0}}}};a(hme,"registerValidationChecks");y(hme,"registerValidationChecks");FKe=class{static{a(this,"TreemapValidator")}static{y(this,"TreemapValidator")}checkSingleRoot(e,t){let r;for(let i of e.TreemapRows)i.item&&(r===void 0&&i.indent===void 0?r=0:i.indent===void 0?t("error","Multiple root nodes are not allowed in a treemap.",{node:i,property:"item"}):r!==void 0&&r>=parseInt(i.indent,10)&&t("error","Multiple root nodes are not allowed in a treemap.",{node:i,property:"item"}))}},PS={parser:{TokenBuilder:y(()=>new PKe,"TokenBuilder"),ValueConverter:y(()=>new $Ke,"ValueConverter")},validation:{TreemapValidator:y(()=>new FKe,"TreemapValidator")}};a(BS,"createTreemapServices");y(BS,"createTreemapServices")});function FS(e=xi){let t=Tr(ui(e),Si),r=Tr(ci({shared:t}),xO,$S);return t.ServiceRegistry.register(r),{shared:t,Wardley:r}}var VKe,$S,kO=v(()=>{"use strict";bi();VKe=class extends ps{static{a(this,"WardleyValueConverter")}static{y(this,"WardleyValueConverter")}runCustomConverter(e,t,r){switch(e.name.toUpperCase()){case"LINK_LABEL":return t.substring(1).trim();default:return}}},$S={parser:{ValueConverter:y(()=>new VKe,"ValueConverter")}};a(FS,"createWardleyServices");y(FS,"createWardleyServices")});function GS(e=xi){let t=Tr(ui(e),Si),r=Tr(ci({shared:t}),hO,VS);return t.ServiceRegistry.register(r),{shared:t,GitGraph:r}}var GKe,VS,CO=v(()=>{"use strict";bi();GKe=class extends Ii{static{a(this,"GitGraphTokenBuilder")}static{y(this,"GitGraphTokenBuilder")}constructor(){super(["gitGraph"])}},VS={parser:{TokenBuilder:y(()=>new GKe,"TokenBuilder"),ValueConverter:y(()=>new eo,"ValueConverter")}};a(GS,"createGitGraphServices");y(GS,"createGitGraphServices")});function zS(e=xi){let t=Tr(ui(e),Si),r=Tr(ci({shared:t}),dO,WS);return t.ServiceRegistry.register(r),{shared:t,Info:r}}var WKe,WS,vO=v(()=>{"use strict";bi();WKe=class extends Ii{static{a(this,"InfoTokenBuilder")}static{y(this,"InfoTokenBuilder")}constructor(){super(["info","showInfo"])}},WS={parser:{TokenBuilder:y(()=>new WKe,"TokenBuilder"),ValueConverter:y(()=>new eo,"ValueConverter")}};a(zS,"createInfoServices");y(zS,"createInfoServices")});function jS(e=xi){let t=Tr(ui(e),Si),r=Tr(ci({shared:t}),fO,qS);return t.ServiceRegistry.register(r),{shared:t,Packet:r}}var zKe,qS,SO=v(()=>{"use strict";bi();zKe=class extends Ii{static{a(this,"PacketTokenBuilder")}static{y(this,"PacketTokenBuilder")}constructor(){super(["packet"])}},qS={parser:{TokenBuilder:y(()=>new zKe,"TokenBuilder"),ValueConverter:y(()=>new eo,"ValueConverter")}};a(jS,"createPacketServices");y(jS,"createPacketServices")});function HS(e=xi){let t=Tr(ui(e),Si),r=Tr(ci({shared:t}),pO,US);return t.ServiceRegistry.register(r),{shared:t,Pie:r}}var qKe,jKe,US,_O=v(()=>{"use strict";bi();qKe=class extends Ii{static{a(this,"PieTokenBuilder")}static{y(this,"PieTokenBuilder")}constructor(){super(["pie","showData"])}},jKe=class extends ps{static{a(this,"PieValueConverter")}static{y(this,"PieValueConverter")}runCustomConverter(e,t,r){if(e.name==="PIE_SECTION_LABEL")return t.replace(/"/g,"").trim()}},US={parser:{TokenBuilder:y(()=>new qKe,"TokenBuilder"),ValueConverter:y(()=>new jKe,"ValueConverter")}};a(HS,"createPieServices");y(HS,"createPieServices")});function KS(e=xi){let t=Tr(ui(e),Si),r=Tr(ci({shared:t}),yO,YS);return t.ServiceRegistry.register(r),{shared:t,TreeView:r}}var UKe,HKe,YS,wO=v(()=>{"use strict";bi();UKe=class extends ps{static{a(this,"TreeViewValueConverter")}static{y(this,"TreeViewValueConverter")}runCustomConverter(e,t,r){if(e.name==="INDENTATION")return t?.length||0;if(e.name==="STRING2")return t.substring(1,t.length-1)}},HKe=class extends Ii{static{a(this,"TreeViewTokenBuilder")}static{y(this,"TreeViewTokenBuilder")}constructor(){super(["treeView-beta"])}},YS={parser:{TokenBuilder:y(()=>new HKe,"TokenBuilder"),ValueConverter:y(()=>new UKe,"ValueConverter")}};a(KS,"createTreeViewServices");y(KS,"createTreeViewServices")});function QS(e=xi){let t=Tr(ui(e),Si),r=Tr(ci({shared:t}),cO,XS);return t.ServiceRegistry.register(r),{shared:t,Architecture:r}}var YKe,KKe,XS,EO=v(()=>{"use strict";bi();YKe=class extends Ii{static{a(this,"ArchitectureTokenBuilder")}static{y(this,"ArchitectureTokenBuilder")}constructor(){super(["architecture"])}},KKe=class extends ps{static{a(this,"ArchitectureValueConverter")}static{y(this,"ArchitectureValueConverter")}runCustomConverter(e,t,r){if(e.name==="ARCH_ICON")return t.replace(/[()]/g,"").trim();if(e.name==="ARCH_TEXT_ICON")return t.replace(/["()]/g,"");if(e.name==="ARCH_TITLE"){let i=t.replace(/^\[|]$/g,"").trim();return(i.startsWith('"')&&i.endsWith('"')||i.startsWith("'")&&i.endsWith("'"))&&(i=i.slice(1,-1),i=i.replace(/\\"/g,'"').replace(/\\'/g,"'")),i.trim()}}},XS={parser:{TokenBuilder:y(()=>new YKe,"TokenBuilder"),ValueConverter:y(()=>new KKe,"ValueConverter")}};a(QS,"createArchitectureServices");y(QS,"createArchitectureServices")});function gme(e){let t=e.validation.EventModelingValidator,r=e.validation.ValidationRegistry;if(r){let i={EmTimeFrame:t.checkSourceFrameTypes.bind(t),EmResetFrame:t.checkSourceFrameTypes.bind(t)};r.register(i,t)}}function JS(e=xi){let t=Tr(ui(e),Si),r=Tr(ci({shared:t}),uO,ZS);return t.ServiceRegistry.register(r),gme(r),{shared:t,EventModel:r}}var XKe,dme,fme,AO,pme,mme,QKe,ZS,RO=v(()=>{"use strict";bi();XKe=class extends Ii{static{a(this,"EventModelingTokenBuilder")}static{y(this,"EventModelingTokenBuilder")}constructor(){super(["eventmodeling"])}},dme=new Set(["cmd","command"]),fme=new Set(["evt","event"]),AO=new Set(["rmo","readmodel"]),pme=new Set(["pcr","processor"]),mme=new Set(["ui"]);a(gme,"registerValidationChecks");y(gme,"registerValidationChecks");QKe=class{static{a(this,"EventModelingValidator")}static{y(this,"EventModelingValidator")}checkSourceFrameTypes(e,t){e.sourceFrames.length!==0&&(dme.has(e.modelEntityType)?this.validateSources(e,new Set([...mme,...pme]),"command","ui or processor",t):fme.has(e.modelEntityType)?this.validateSources(e,dme,"event","command",t):AO.has(e.modelEntityType)?this.validateSources(e,fme,"read model","event",t):pme.has(e.modelEntityType)?this.validateSources(e,AO,"processor","read model",t):mme.has(e.modelEntityType)&&this.validateSources(e,AO,"ui","read model",t))}validateSources(e,t,r,i,n){for(let s of e.sourceFrames){let o=s.ref;o!==void 0&&!t.has(o.modelEntityType)&&n("error",`A ${r} can only receive input from a ${i}, not from '${o.modelEntityType}'.`,{node:e,property:"sourceFrames"})}}},ZS={parser:{TokenBuilder:y(()=>new XKe,"TokenBuilder"),ValueConverter:y(()=>new eo,"ValueConverter")},validation:{EventModelingValidator:y(()=>new QKe,"EventModelingValidator")}};a(JS,"createEventModelingServices");y(JS,"createEventModelingServices")});var yme={};tr(yme,{InfoModule:()=>WS,createInfoServices:()=>zS});var xme=v(()=>{"use strict";vO();bi()});var bme={};tr(bme,{PacketModule:()=>qS,createPacketServices:()=>jS});var Tme=v(()=>{"use strict";SO();bi()});var kme={};tr(kme,{PieModule:()=>US,createPieServices:()=>HS});var Cme=v(()=>{"use strict";_O();bi()});var vme={};tr(vme,{TreeViewModule:()=>YS,createTreeViewServices:()=>KS});var Sme=v(()=>{"use strict";wO();bi()});var _me={};tr(_me,{ArchitectureModule:()=>XS,createArchitectureServices:()=>QS});var wme=v(()=>{"use strict";EO();bi()});var Eme={};tr(Eme,{GitGraphModule:()=>VS,createGitGraphServices:()=>GS});var Ame=v(()=>{"use strict";CO();bi()});var Rme={};tr(Rme,{EventModelingModule:()=>ZS,createEventModelingServices:()=>JS});var Lme=v(()=>{"use strict";RO();bi()});var Dme={};tr(Dme,{RadarModule:()=>MS,createRadarServices:()=>OS});var Ime=v(()=>{"use strict";bO();bi()});var Nme={};tr(Nme,{TreemapModule:()=>PS,createTreemapServices:()=>BS});var Mme=v(()=>{"use strict";TO();bi()});var Ome={};tr(Ome,{WardleyModule:()=>$S,createWardleyServices:()=>FS});var Pme=v(()=>{"use strict";kO();bi()});async function zi(e,t){let r=ZKe[e];if(!r)throw new Error(`Unknown diagram type: ${e}`);ms[e]||await r();let n=ms[e].parse(t);if(n.lexerErrors.length>0||n.parserErrors.length>0)throw new JKe(n);return n.value}var ms,ZKe,JKe,to=v(()=>{"use strict";bO();TO();kO();CO();vO();SO();_O();wO();EO();RO();bi();ms={},ZKe={info:y(async()=>{let{createInfoServices:e}=await Promise.resolve().then(()=>(xme(),yme)),t=e().Info.parser.LangiumParser;ms.info=t},"info"),packet:y(async()=>{let{createPacketServices:e}=await Promise.resolve().then(()=>(Tme(),bme)),t=e().Packet.parser.LangiumParser;ms.packet=t},"packet"),pie:y(async()=>{let{createPieServices:e}=await Promise.resolve().then(()=>(Cme(),kme)),t=e().Pie.parser.LangiumParser;ms.pie=t},"pie"),treeView:y(async()=>{let{createTreeViewServices:e}=await Promise.resolve().then(()=>(Sme(),vme)),t=e().TreeView.parser.LangiumParser;ms.treeView=t},"treeView"),architecture:y(async()=>{let{createArchitectureServices:e}=await Promise.resolve().then(()=>(wme(),_me)),t=e().Architecture.parser.LangiumParser;ms.architecture=t},"architecture"),gitGraph:y(async()=>{let{createGitGraphServices:e}=await Promise.resolve().then(()=>(Ame(),Eme)),t=e().GitGraph.parser.LangiumParser;ms.gitGraph=t},"gitGraph"),eventmodeling:y(async()=>{let{createEventModelingServices:e}=await Promise.resolve().then(()=>(Lme(),Rme)),t=e().EventModel.parser.LangiumParser;ms.eventmodeling=t},"eventmodeling"),radar:y(async()=>{let{createRadarServices:e}=await Promise.resolve().then(()=>(Ime(),Dme)),t=e().Radar.parser.LangiumParser;ms.radar=t},"radar"),treemap:y(async()=>{let{createTreemapServices:e}=await Promise.resolve().then(()=>(Mme(),Nme)),t=e().Treemap.parser.LangiumParser;ms.treemap=t},"treemap"),wardley:y(async()=>{let{createWardleyServices:e}=await Promise.resolve().then(()=>(Pme(),Ome)),t=e().Wardley.parser.LangiumParser;ms.wardley=t},"wardley")};a(zi,"parse");y(zi,"parse");JKe=class extends Error{static{a(this,"MermaidParseError")}constructor(e){let t=e.lexerErrors.map(i=>{let n=i.line!==void 0&&!isNaN(i.line)?i.line:"?",s=i.column!==void 0&&!isNaN(i.column)?i.column:"?";return`Lexer error on line ${n}, column ${s}: ${i.message}`}).join(`
`),r=e.parserErrors.map(i=>{let n=i.token.startLine!==void 0&&!isNaN(i.token.startLine)?i.token.startLine:"?",s=i.token.startColumn!==void 0&&!isNaN(i.token.startColumn)?i.token.startColumn:"?";return`Parse error on line ${n}, column ${s}: ${i.message}`}).join(`
`);super(`Parsing failed: ${t} ${r}`),this.result=e}static{y(this,"MermaidParseError")}}});function Sn(e,t){e.accDescr&&t.setAccDescription?.(e.accDescr),e.accTitle&&t.setAccTitle?.(e.accTitle),e.title&&t.setDiagramTitle?.(e.title)}var Jl=v(()=>{"use strict";a(Sn,"populateCommonDb")});var Ar,e_=v(()=>{"use strict";Ar={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4}});var Du,t_=v(()=>{"use strict";Du=class{constructor(t){this.init=t;this.records=this.init()}static{a(this,"ImperativeState")}reset(){this.records=this.init()}}});function LO(){return y5({length:7})}function tXe(e,t){let r=Object.create(null);return e.reduce((i,n)=>{let s=t(n);return r[s]||(r[s]=!0,i.push(n)),i},[])}function Bme(e,t,r){let i=e.indexOf(t);i===-1?e.push(r):e.splice(i,1,r)}function Fme(e){let t=e.reduce((n,s)=>n.seq>s.seq?n:s,e[0]),r="";e.forEach(function(n){n===t?r+=" *":r+=" |"});let i=[r,t.id,t.seq];for(let n in ht.records.branches)ht.records.branches.get(n)===t.id&&i.push(n);if(W.debug(i.join(" ")),t.parents&&t.parents.length==2&&t.parents[0]&&t.parents[1]){let n=ht.records.commits.get(t.parents[0]);Bme(e,t,n),t.parents[1]&&e.push(ht.records.commits.get(t.parents[1]))}else{if(t.parents.length==0)return;if(t.parents[0]){let n=ht.records.commits.get(t.parents[0]);Bme(e,t,n)}}e=tXe(e,n=>n.id),Fme(e)}var eXe,ef,ht,rXe,iXe,nXe,aXe,sXe,oXe,lXe,$me,cXe,uXe,hXe,dXe,fXe,Vme,pXe,mXe,gXe,r_,DO=v(()=>{"use strict";nt();Et();Xt();dr();zr();e_();t_();gn();eXe=Ut.gitGraph,ef=a(()=>xr({...eXe,...ct().gitGraph}),"getConfig"),ht=new Du(()=>{let e=ef(),t=e.mainBranchName,r=e.mainBranchOrder;return{mainBranchName:t,commits:new Map,head:null,branchConfig:new Map([[t,{name:t,order:r}]]),branches:new Map([[t,null]]),currBranch:t,direction:"LR",seq:0,options:{}}});a(LO,"getID");a(tXe,"uniqBy");rXe=a(function(e){ht.records.direction=e},"setDirection"),iXe=a(function(e){W.debug("options str",e),e=e?.trim(),e=e||"{}";try{ht.records.options=JSON.parse(e)}catch(t){W.error("error while parsing gitGraph options",t.message)}},"setOptions"),nXe=a(function(){return ht.records.options},"getOptions"),aXe=a(function(e){let t=e.msg,r=e.id,i=e.type,n=e.tags;W.info("commit",t,r,i,n),W.debug("Entering commit:",t,r,i,n);let s=ef();r=He.sanitizeText(r,s),t=He.sanitizeText(t,s),n=n?.map(l=>He.sanitizeText(l,s));let o={id:r||ht.records.seq+"-"+LO(),message:t,seq:ht.records.seq++,type:i??Ar.NORMAL,tags:n??[],parents:ht.records.head==null?[]:[ht.records.head.id],branch:ht.records.currBranch};ht.records.head=o,W.info("main branch",s.mainBranchName),ht.records.commits.has(o.id)&&W.warn(`Commit ID ${o.id} already exists`),ht.records.commits.set(o.id,o),ht.records.branches.set(ht.records.currBranch,o.id),W.debug("in pushCommit "+o.id)},"commit"),sXe=a(function(e){let t=e.name,r=e.order;if(t=He.sanitizeText(t,ef()),ht.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}")`);ht.records.branches.set(t,ht.records.head!=null?ht.records.head.id:null),ht.records.branchConfig.set(t,{name:t,order:r}),$me(t),W.debug("in createBranch")},"branch"),oXe=a(e=>{let t=e.branch,r=e.id,i=e.type,n=e.tags,s=ef();t=He.sanitizeText(t,s),r&&(r=He.sanitizeText(r,s));let o=ht.records.branches.get(ht.records.currBranch),l=ht.records.branches.get(t),u=o?ht.records.commits.get(o):void 0,h=l?ht.records.commits.get(l):void 0;if(u&&h&&u.branch===t)throw new Error(`Cannot merge branch '${t}' into itself.`);if(ht.records.currBranch===t){let p=new Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw p.hash={text:`merge ${t}`,token:`merge ${t}`,expected:["branch abc"]},p}if(u===void 0||!u){let p=new Error(`Incorrect usage of "merge". Current branch (${ht.records.currBranch})has no commits`);throw p.hash={text:`merge ${t}`,token:`merge ${t}`,expected:["commit"]},p}if(!ht.records.branches.has(t)){let p=new Error('Incorrect usage of "merge". Branch to be merged ('+t+") does not exist");throw p.hash={text:`merge ${t}`,token:`merge ${t}`,expected:[`branch ${t}`]},p}if(h===void 0||!h){let p=new Error('Incorrect usage of "merge". Branch to be merged ('+t+") has no commits");throw p.hash={text:`merge ${t}`,token:`merge ${t}`,expected:['"commit"']},p}if(u===h){let p=new Error('Incorrect usage of "merge". Both branches have same head');throw p.hash={text:`merge ${t}`,token:`merge ${t}`,expected:["branch abc"]},p}if(r&&ht.records.commits.has(r)){let p=new Error('Incorrect usage of "merge". Commit with id:'+r+" already exists, use different custom id");throw p.hash={text:`merge ${t} ${r} ${i} ${n?.join(" ")}`,token:`merge ${t} ${r} ${i} ${n?.join(" ")}`,expected:[`merge ${t} ${r}_UNIQUE ${i} ${n?.join(" ")}`]},p}let d=l||"",f={id:r||`${ht.records.seq}-${LO()}`,message:`merged branch ${t} into ${ht.records.currBranch}`,seq:ht.records.seq++,parents:ht.records.head==null?[]:[ht.records.head.id,d],branch:ht.records.currBranch,type:Ar.MERGE,customType:i,customId:!!r,tags:n??[]};ht.records.head=f,ht.records.commits.set(f.id,f),ht.records.branches.set(ht.records.currBranch,f.id),W.debug(ht.records.branches),W.debug("in mergeBranch")},"merge"),lXe=a(function(e){let t=e.id,r=e.targetId,i=e.tags,n=e.parent;W.debug("Entering cherryPick:",t,r,i);let s=ef();if(t=He.sanitizeText(t,s),r=He.sanitizeText(r,s),i=i?.map(u=>He.sanitizeText(u,s)),n=He.sanitizeText(n,s),!t||!ht.records.commits.has(t)){let u=new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw u.hash={text:`cherryPick ${t} ${r}`,token:`cherryPick ${t} ${r}`,expected:["cherry-pick abc"]},u}let o=ht.records.commits.get(t);if(o===void 0||!o)throw new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');if(n&&!(Array.isArray(o.parents)&&o.parents.includes(n)))throw new Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.");let l=o.branch;if(o.type===Ar.MERGE&&!n)throw new Error("Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.");if(!r||!ht.records.commits.has(r)){if(l===ht.records.currBranch){let f=new Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw f.hash={text:`cherryPick ${t} ${r}`,token:`cherryPick ${t} ${r}`,expected:["cherry-pick abc"]},f}let u=ht.records.branches.get(ht.records.currBranch);if(u===void 0||!u){let f=new Error(`Incorrect usage of "cherry-pick". Current branch (${ht.records.currBranch})has no commits`);throw f.hash={text:`cherryPick ${t} ${r}`,token:`cherryPick ${t} ${r}`,expected:["cherry-pick abc"]},f}let h=ht.records.commits.get(u);if(h===void 0||!h){let f=new Error(`Incorrect usage of "cherry-pick". Current branch (${ht.records.currBranch})has no commits`);throw f.hash={text:`cherryPick ${t} ${r}`,token:`cherryPick ${t} ${r}`,expected:["cherry-pick abc"]},f}let d={id:ht.records.seq+"-"+LO(),message:`cherry-picked ${o?.message} into ${ht.records.currBranch}`,seq:ht.records.seq++,parents:ht.records.head==null?[]:[ht.records.head.id,o.id],branch:ht.records.currBranch,type:Ar.CHERRY_PICK,tags:i?i.filter(Boolean):[`cherry-pick:${o.id}${o.type===Ar.MERGE?`|parent:${n}`:""}`]};ht.records.head=d,ht.records.commits.set(d.id,d),ht.records.branches.set(ht.records.currBranch,d.id),W.debug(ht.records.branches),W.debug("in cherryPick")}},"cherryPick"),$me=a(function(e){if(e=He.sanitizeText(e,ef()),ht.records.branches.has(e)){ht.records.currBranch=e;let t=ht.records.branches.get(ht.records.currBranch);t===void 0||!t?ht.records.head=null:ht.records.head=ht.records.commits.get(t)??null}else{let t=new Error(`Trying to checkout branch which is not yet created. (Help try using "branch ${e}")`);throw t.hash={text:`checkout ${e}`,token:`checkout ${e}`,expected:[`branch ${e}`]},t}},"checkout");a(Bme,"upsert");a(Fme,"prettyPrintCommitHistory");cXe=a(function(){W.debug(ht.records.commits);let e=Vme()[0];Fme([e])},"prettyPrint"),uXe=a(function(){ht.reset(),Ht()},"clear"),hXe=a(function(){return[...ht.records.branchConfig.values()].map((t,r)=>t.order!==null&&t.order!==void 0?t:{...t,order:parseFloat(`0.${r}`)}).sort((t,r)=>(t.order??0)-(r.order??0)).map(({name:t})=>({name:t}))},"getBranchesAsObjArray"),dXe=a(function(){return ht.records.branches},"getBranches"),fXe=a(function(){return ht.records.commits},"getCommits"),Vme=a(function(){let e=[...ht.records.commits.values()];return e.forEach(function(t){W.debug(t.id)}),e.sort((t,r)=>t.seq-r.seq),e},"getCommitsArray"),pXe=a(function(){return ht.records.currBranch},"getCurrentBranch"),mXe=a(function(){return ht.records.direction},"getDirection"),gXe=a(function(){return ht.records.head},"getHead"),r_={commitType:Ar,getConfig:ef,setDirection:rXe,setOptions:iXe,getOptions:nXe,commit:aXe,branch:sXe,merge:oXe,cherryPick:lXe,checkout:$me,prettyPrint:cXe,clear:uXe,getBranchesAsObjArray:hXe,getBranches:dXe,getCommits:fXe,getCommitsArray:Vme,getCurrentBranch:pXe,getDirection:mXe,getHead:gXe,setAccTitle:Yt,getAccTitle:Qt,getAccDescription:Jt,setAccDescription:Zt,setDiagramTitle:ir,getDiagramTitle:er}});var yXe,xXe,bXe,TXe,kXe,CXe,vXe,Gme,Wme=v(()=>{"use strict";to();nt();Jl();DO();e_();yXe=a((e,t)=>{Sn(e,t),e.dir&&t.setDirection(e.dir);for(let r of e.statements)xXe(r,t)},"populate"),xXe=a((e,t)=>{let i={Commit:a(n=>t.commit(bXe(n)),"Commit"),Branch:a(n=>t.branch(TXe(n)),"Branch"),Merge:a(n=>t.merge(kXe(n)),"Merge"),Checkout:a(n=>t.checkout(CXe(n)),"Checkout"),CherryPicking:a(n=>t.cherryPick(vXe(n)),"CherryPicking")}[e.$type];i?i(e):W.error(`Unknown statement type: ${e.$type}`)},"parseStatement"),bXe=a(e=>({id:e.id,msg:e.message??"",type:e.type!==void 0?Ar[e.type]:Ar.NORMAL,tags:e.tags??void 0}),"parseCommit"),TXe=a(e=>({name:e.name,order:e.order??0}),"parseBranch"),kXe=a(e=>({branch:e.branch,id:e.id??"",type:e.type!==void 0?Ar[e.type]:void 0,tags:e.tags??void 0}),"parseMerge"),CXe=a(e=>e.branch,"parseCheckout"),vXe=a(e=>({id:e.id,targetId:"",tags:e.tags?.length===0?void 0:e.tags,parent:e.parent}),"parseCherryPicking"),Gme={parse:a(async e=>{let t=await zi("gitGraph",e);W.debug(t),yXe(t,r_)},"parse")}});var Iu,Nu,Jo,ec,tf,a_,IO,NO,SXe,rf,pa,ma,i_,sx,n_,tc,gr,_Xe,qme,jme,wXe,EXe,AXe,RXe,LXe,DXe,IXe,NXe,MXe,OXe,PXe,BXe,zme,$Xe,ox,FXe,VXe,GXe,WXe,zXe,Ume,Hme=v(()=>{"use strict";sr();bt();nt();Et();e_();Iu=10,Nu=40,Jo=4,ec=2,tf=8,a_=new Set(["redux","redux-dark","redux-color","redux-dark-color"]),IO=12,NO=new Set(["redux-color","redux-dark-color"]),SXe=new Set(["dark","redux-dark","redux-dark-color","neo-dark"]),rf=a((e,t,r=!1)=>r&&e>0?(e-1)%(t-1)+1:e%t,"calcColorIndex"),pa=new Map,ma=new Map,i_=30,sx=new Map,n_=[],tc=0,gr="LR",_Xe=a(()=>{pa.clear(),ma.clear(),sx.clear(),tc=0,n_=[],gr="LR"},"clear"),qme=a(e=>{let t=document.createElementNS("http://www.w3.org/2000/svg","text");return(typeof e=="string"?e.split(/\\n|\n|<br\s*\/?>/gi):e).forEach(i=>{let n=document.createElementNS("http://www.w3.org/2000/svg","tspan");n.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),n.setAttribute("dy","1em"),n.setAttribute("x","0"),n.setAttribute("class","row"),n.textContent=i.trim(),t.appendChild(n)}),t},"drawText"),jme=a(e=>{let t,r,i;return gr==="BT"?(r=a((n,s)=>n<=s,"comparisonFunc"),i=1/0):(r=a((n,s)=>n>=s,"comparisonFunc"),i=0),e.forEach(n=>{let s=gr==="TB"||gr=="BT"?ma.get(n)?.y:ma.get(n)?.x;s!==void 0&&r(s,i)&&(t=n,i=s)}),t},"findClosestParent"),wXe=a(e=>{let t="",r=1/0;return e.forEach(i=>{let n=ma.get(i).y;n<=r&&(t=i,r=n)}),t||void 0},"findClosestParentBT"),EXe=a((e,t,r)=>{let i=r,n=r,s=[];e.forEach(o=>{let l=t.get(o);if(!l)throw new Error(`Commit not found for key ${o}`);l.parents.length?(i=RXe(l),n=Math.max(i,n)):s.push(l),LXe(l,i)}),i=n,s.forEach(o=>{DXe(o,i,r)}),e.forEach(o=>{let l=t.get(o);if(l?.parents.length){let u=wXe(l.parents);i=ma.get(u).y-Nu,i<=n&&(n=i);let h=pa.get(l.branch).pos,d=i-Iu;ma.set(l.id,{x:h,y:d})}})},"setParallelBTPos"),AXe=a(e=>{let t=jme(e.parents.filter(i=>i!==null));if(!t)throw new Error(`Closest parent not found for commit ${e.id}`);let r=ma.get(t)?.y;if(r===void 0)throw new Error(`Closest parent position not found for commit ${e.id}`);return r},"findClosestParentPos"),RXe=a(e=>AXe(e)+Nu,"calculateCommitPosition"),LXe=a((e,t)=>{let r=pa.get(e.branch);if(!r)throw new Error(`Branch not found for commit ${e.id}`);let i=r.pos,n=t+Iu;return ma.set(e.id,{x:i,y:n}),{x:i,y:n}},"setCommitPosition"),DXe=a((e,t,r)=>{let i=pa.get(e.branch);if(!i)throw new Error(`Branch not found for commit ${e.id}`);let n=t+r,s=i.pos;ma.set(e.id,{x:s,y:n})},"setRootPosition"),IXe=a((e,t,r,i,n,s)=>{let{theme:o}=J(),l=a_.has(o??""),u=NO.has(o??""),h=SXe.has(o??"");if(s===Ar.HIGHLIGHT)e.append("rect").attr("x",r.x-10+(l?3:0)).attr("y",r.y-10+(l?3:0)).attr("width",l?14:20).attr("height",l?14:20).attr("class",`commit ${t.id} commit-highlight${rf(n,tf,u)} ${i}-outer`),e.append("rect").attr("x",r.x-6+(l?2:0)).attr("y",r.y-6+(l?2:0)).attr("width",l?8:12).attr("height",l?8:12).attr("class",`commit ${t.id} commit${rf(n,tf,u)} ${i}-inner`);else if(s===Ar.CHERRY_PICK)e.append("circle").attr("cx",r.x).attr("cy",r.y).attr("r",l?7:10).attr("class",`commit ${t.id} ${i}`),e.append("circle").attr("cx",r.x-3).attr("cy",r.y+2).attr("r",l?2.5:2.75).attr("fill",h?"#000000":"#fff").attr("class",`commit ${t.id} ${i}`),e.append("circle").attr("cx",r.x+3).attr("cy",r.y+2).attr("r",l?2.5:2.75).attr("fill",h?"#000000":"#fff").attr("class",`commit ${t.id} ${i}`),e.append("line").attr("x1",r.x+3).attr("y1",r.y+1).attr("x2",r.x).attr("y2",r.y-5).attr("stroke",h?"#000000":"#fff").attr("class",`commit ${t.id} ${i}`),e.append("line").attr("x1",r.x-3).attr("y1",r.y+1).attr("x2",r.x).attr("y2",r.y-5).attr("stroke",h?"#000000":"#fff").attr("class",`commit ${t.id} ${i}`);else{let d=e.append("circle");if(d.attr("cx",r.x),d.attr("cy",r.y),d.attr("r",l?7:10),d.attr("class",`commit ${t.id} commit${rf(n,tf,u)}`),s===Ar.MERGE){let f=e.append("circle");f.attr("cx",r.x),f.attr("cy",r.y),f.attr("r",l?5:6),f.attr("class",`commit ${i} ${t.id} commit${rf(n,tf,u)}`)}if(s===Ar.REVERSE){let f=e.append("path"),p=l?4:5;f.attr("d",`M ${r.x-p},${r.y-p}L${r.x+p},${r.y+p}M${r.x-p},${r.y+p}L${r.x+p},${r.y-p}`).attr("class",`commit ${i} ${t.id} commit${rf(n,tf,u)}`)}}},"drawCommitBullet"),NXe=a((e,t,r,i,n)=>{if(t.type!==Ar.CHERRY_PICK&&(t.customId&&t.type===Ar.MERGE||t.type!==Ar.MERGE)&&n.showCommitLabel){let s=e.append("g"),o=s.insert("rect").attr("class","commit-label-bkg"),l=s.append("text").attr("x",i).attr("y",r.y+25).attr("class","commit-label").text(t.id),u=l.node()?.getBBox();if(u&&(o.attr("x",r.posWithOffset-u.width/2-ec).attr("y",r.y+13.5).attr("width",u.width+2*ec).attr("height",u.height+2*ec),gr==="TB"||gr==="BT"?(o.attr("x",r.x-(u.width+4*Jo+5)).attr("y",r.y-12),l.attr("x",r.x-(u.width+4*Jo)).attr("y",r.y+u.height-12)):l.attr("x",r.posWithOffset-u.width/2),n.rotateCommitLabel))if(gr==="TB"||gr==="BT")l.attr("transform","rotate(-45, "+r.x+", "+r.y+")"),o.attr("transform","rotate(-45, "+r.x+", "+r.y+")");else{let h=-7.5-(u.width+10)/25*9.5,d=10+u.width/25*8.5;s.attr("transform","translate("+h+", "+d+") rotate(-45, "+i+", "+r.y+")")}}},"drawCommitLabel"),MXe=a((e,t,r,i)=>{if(t.tags.length>0){let n=0,s=0,o=0,l=[];for(let u of t.tags.reverse()){let h=e.insert("polygon"),d=e.append("circle"),f=e.append("text").attr("y",r.y-16-n).attr("class","tag-label").text(u),p=f.node()?.getBBox();if(!p)throw new Error("Tag bbox not found");s=Math.max(s,p.width),o=Math.max(o,p.height),f.attr("x",r.posWithOffset-p.width/2),l.push({tag:f,hole:d,rect:h,yOffset:n}),n+=20}for(let{tag:u,hole:h,rect:d,yOffset:f}of l){let p=o/2,m=r.y-19.2-f;if(d.attr("class","tag-label-bkg").attr("points",`
${i-s/2-Jo/2},${m+ec}
${i-s/2-Jo/2},${m-ec}
${r.posWithOffset-s/2-Jo},${m-p-ec}
${r.posWithOffset+s/2+Jo},${m-p-ec}
${r.posWithOffset+s/2+Jo},${m+p+ec}
${r.posWithOffset-s/2-Jo},${m+p+ec}`),h.attr("cy",m).attr("cx",i-s/2+Jo/2).attr("r",1.5).attr("class","tag-hole"),gr==="TB"||gr==="BT"){let g=i+f;d.attr("class","tag-label-bkg").attr("points",`
${r.x},${g+2}
${r.x},${g-2}
${r.x+Iu},${g-p-2}
${r.x+Iu+s+4},${g-p-2}
${r.x+Iu+s+4},${g+p+2}
${r.x+Iu},${g+p+2}`).attr("transform","translate(12,12) rotate(45, "+r.x+","+i+")"),h.attr("cx",r.x+Jo/2).attr("cy",g).attr("transform","translate(12,12) rotate(45, "+r.x+","+i+")"),u.attr("x",r.x+5).attr("y",g+3).attr("transform","translate(14,14) rotate(45, "+r.x+","+i+")")}}}},"drawCommitTags"),OXe=a(e=>{switch(e.customType??e.type){case Ar.NORMAL:return"commit-normal";case Ar.REVERSE:return"commit-reverse";case Ar.HIGHLIGHT:return"commit-highlight";case Ar.MERGE:return"commit-merge";case Ar.CHERRY_PICK:return"commit-cherry-pick";default:return"commit-normal"}},"getCommitClassType"),PXe=a((e,t,r,i)=>{let n={x:0,y:0};if(e.parents.length>0){let s=jme(e.parents);if(s){let o=i.get(s)??n;return t==="TB"?o.y+Nu:t==="BT"?(i.get(e.id)??n).y-Nu:o.x+Nu}}else return t==="TB"?i_:t==="BT"?(i.get(e.id)??n).y-Nu:0;return 0},"calculatePosition"),BXe=a((e,t,r)=>{let i=gr==="BT"&&r?t:t+Iu,n=pa.get(e.branch)?.pos,s=gr==="TB"||gr==="BT"?pa.get(e.branch)?.pos:i;if(s===void 0||n===void 0)throw new Error(`Position were undefined for commit ${e.id}`);let o=a_.has(J().theme??""),l=gr==="TB"||gr==="BT"?i:n+(o?IO/2+1:-2);return{x:s,y:l,posWithOffset:i}},"getCommitPosition"),zme=a((e,t,r,i)=>{let n=e.append("g").attr("class","commit-bullets"),s=e.append("g").attr("class","commit-labels"),o=gr==="TB"||gr==="BT"?i_:0,l=[...t.keys()],u=i.parallelCommits??!1,h=a((f,p)=>{let m=t.get(f)?.seq,g=t.get(p)?.seq;return m!==void 0&&g!==void 0?m-g:0},"sortKeys"),d=l.sort(h);gr==="BT"&&(u&&EXe(d,t,o),d=d.reverse()),d.forEach(f=>{let p=t.get(f);if(!p)throw new Error(`Commit not found for key ${f}`);u&&(o=PXe(p,gr,o,ma));let m=BXe(p,o,u);if(r){let g=OXe(p),x=p.customType??p.type,b=pa.get(p.branch)?.index??0;IXe(n,p,m,g,b,x),NXe(s,p,m,o,i),MXe(s,p,m,o)}gr==="TB"||gr==="BT"?ma.set(p.id,{x:m.x,y:m.posWithOffset}):ma.set(p.id,{x:m.posWithOffset,y:m.y}),o=gr==="BT"&&u?o+Nu:o+Nu+Iu,o>tc&&(tc=o)})},"drawCommits"),$Xe=a((e,t,r,i,n)=>{let o=(gr==="TB"||gr==="BT"?r.x<i.x:r.y<i.y)?t.branch:e.branch,l=a(h=>h.branch===o,"isOnBranchToGetCurve"),u=a(h=>h.seq>e.seq&&h.seq<t.seq,"isBetweenCommits");return[...n.values()].some(h=>u(h)&&l(h))},"shouldRerouteArrow"),ox=a((e,t,r=0)=>{let i=e+Math.abs(e-t)/2;if(r>5)return i;if(n_.every(o=>Math.abs(o-i)>=10))return n_.push(i),i;let s=Math.abs(e-t);return ox(e,t-s/5,r+1)},"findLane"),FXe=a((e,t,r,i)=>{let{theme:n}=J(),s=NO.has(n??""),o=ma.get(t.id),l=ma.get(r.id);if(o===void 0||l===void 0)throw new Error(`Commit positions not found for commits ${t.id} and ${r.id}`);let u=$Xe(t,r,o,l,i),h="",d="",f=0,p=0,m=pa.get(r.branch)?.index;r.type===Ar.MERGE&&t.id!==r.parents[0]&&(m=pa.get(t.branch)?.index);let g;if(u){h="A 10 10, 0, 0, 0,",d="A 10 10, 0, 0, 1,",f=10,p=10;let x=o.y<l.y?ox(o.y,l.y):ox(l.y,o.y),b=o.x<l.x?ox(o.x,l.x):ox(l.x,o.x);gr==="TB"?o.x<l.x?g=`M ${o.x} ${o.y} L ${b-f} ${o.y} ${d} ${b} ${o.y+p} L ${b} ${l.y-f} ${h} ${b+p} ${l.y} L ${l.x} ${l.y}`:(m=pa.get(t.branch)?.index,g=`M ${o.x} ${o.y} L ${b+f} ${o.y} ${h} ${b} ${o.y+p} L ${b} ${l.y-f} ${d} ${b-p} ${l.y} L ${l.x} ${l.y}`):gr==="BT"?o.x<l.x?g=`M ${o.x} ${o.y} L ${b-f} ${o.y} ${h} ${b} ${o.y-p} L ${b} ${l.y+f} ${d} ${b+p} ${l.y} L ${l.x} ${l.y}`:(m=pa.get(t.branch)?.index,g=`M ${o.x} ${o.y} L ${b+f} ${o.y} ${d} ${b} ${o.y-p} L ${b} ${l.y+f} ${h} ${b-p} ${l.y} L ${l.x} ${l.y}`):o.y<l.y?g=`M ${o.x} ${o.y} L ${o.x} ${x-f} ${h} ${o.x+p} ${x} L ${l.x-f} ${x} ${d} ${l.x} ${x+p} L ${l.x} ${l.y}`:(m=pa.get(t.branch)?.index,g=`M ${o.x} ${o.y} L ${o.x} ${x+f} ${d} ${o.x+p} ${x} L ${l.x-f} ${x} ${h} ${l.x} ${x-p} L ${l.x} ${l.y}`)}else h="A 20 20, 0, 0, 0,",d="A 20 20, 0, 0, 1,",f=20,p=20,gr==="TB"?(o.x<l.x&&(r.type===Ar.MERGE&&t.id!==r.parents[0]?g=`M ${o.x} ${o.y} L ${o.x} ${l.y-f} ${h} ${o.x+p} ${l.y} L ${l.x} ${l.y}`:g=`M ${o.x} ${o.y} L ${l.x-f} ${o.y} ${d} ${l.x} ${o.y+p} L ${l.x} ${l.y}`),o.x>l.x&&(h="A 20 20, 0, 0, 0,",d="A 20 20, 0, 0, 1,",f=20,p=20,r.type===Ar.MERGE&&t.id!==r.parents[0]?g=`M ${o.x} ${o.y} L ${o.x} ${l.y-f} ${d} ${o.x-p} ${l.y} L ${l.x} ${l.y}`:g=`M ${o.x} ${o.y} L ${l.x+f} ${o.y} ${h} ${l.x} ${o.y+p} L ${l.x} ${l.y}`),o.x===l.x&&(g=`M ${o.x} ${o.y} L ${l.x} ${l.y}`)):gr==="BT"?(o.x<l.x&&(r.type===Ar.MERGE&&t.id!==r.parents[0]?g=`M ${o.x} ${o.y} L ${o.x} ${l.y+f} ${d} ${o.x+p} ${l.y} L ${l.x} ${l.y}`:g=`M ${o.x} ${o.y} L ${l.x-f} ${o.y} ${h} ${l.x} ${o.y-p} L ${l.x} ${l.y}`),o.x>l.x&&(h="A 20 20, 0, 0, 0,",d="A 20 20, 0, 0, 1,",f=20,p=20,r.type===Ar.MERGE&&t.id!==r.parents[0]?g=`M ${o.x} ${o.y} L ${o.x} ${l.y+f} ${h} ${o.x-p} ${l.y} L ${l.x} ${l.y}`:g=`M ${o.x} ${o.y} L ${l.x+f} ${o.y} ${d} ${l.x} ${o.y-p} L ${l.x} ${l.y}`),o.x===l.x&&(g=`M ${o.x} ${o.y} L ${l.x} ${l.y}`)):(o.y<l.y&&(r.type===Ar.MERGE&&t.id!==r.parents[0]?g=`M ${o.x} ${o.y} L ${l.x-f} ${o.y} ${d} ${l.x} ${o.y+p} L ${l.x} ${l.y}`:g=`M ${o.x} ${o.y} L ${o.x} ${l.y-f} ${h} ${o.x+p} ${l.y} L ${l.x} ${l.y}`),o.y>l.y&&(r.type===Ar.MERGE&&t.id!==r.parents[0]?g=`M ${o.x} ${o.y} L ${l.x-f} ${o.y} ${h} ${l.x} ${o.y-p} L ${l.x} ${l.y}`:g=`M ${o.x} ${o.y} L ${o.x} ${l.y+f} ${d} ${o.x+p} ${l.y} L ${l.x} ${l.y}`),o.y===l.y&&(g=`M ${o.x} ${o.y} L ${l.x} ${l.y}`));if(g===void 0)throw new Error("Line definition not found");e.append("path").attr("d",g).attr("class","arrow arrow"+rf(m,tf,s))},"drawArrow"),VXe=a((e,t)=>{let r=e.append("g").attr("class","commit-arrows");[...t.keys()].forEach(i=>{let n=t.get(i);n.parents&&n.parents.length>0&&n.parents.forEach(s=>{FXe(r,t.get(s),n,t)})})},"drawArrows"),GXe=a((e,t,r,i)=>{let{look:n,theme:s,themeVariables:o}=J(),{dropShadow:l,THEME_COLOR_LIMIT:u}=o,h=a_.has(s??""),d=NO.has(s??""),f=e.append("g");t.forEach((p,m)=>{let g=rf(m,h?u:tf,d),x=pa.get(p.name)?.pos;if(x===void 0)throw new Error(`Position not found for branch ${p.name}`);let b=gr==="TB"||gr==="BT"?x:h?x+IO/2+1:x-2,T=f.append("line");T.attr("x1",0),T.attr("y1",b),T.attr("x2",tc),T.attr("y2",b),T.attr("class","branch branch"+g),gr==="TB"?(T.attr("y1",i_),T.attr("x1",x),T.attr("y2",tc),T.attr("x2",x)):gr==="BT"&&(T.attr("y1",tc),T.attr("x1",x),T.attr("y2",i_),T.attr("x2",x)),n_.push(b);let k=p.name,C=qme(k),S=f.insert("rect"),_=f.insert("g").attr("class","branchLabel").insert("g").attr("class","label branch-label"+g);_.node().appendChild(C);let L=C.getBBox(),I=h?0:4,B=h?16:0,G=h?IO:0;n==="neo"&&S.attr("data-look","neo"),S.attr("class","branchLabelBkg label"+g).attr("style",n==="neo"?`filter:${h?`url(#${i}-drop-shadow)`:l}`:"").attr("rx",I).attr("ry",I).attr("x",-L.width-4-(r.rotateCommitLabel===!0?30:0)).attr("y",-L.height/2+10).attr("width",L.width+18+B).attr("height",L.height+4+G),_.attr("transform","translate("+(-L.width-14-(r.rotateCommitLabel===!0?30:0)+B/2)+", "+(b-L.height/2-2)+")"),gr==="TB"?(S.attr("x",x-L.width/2-10).attr("y",0),_.attr("transform","translate("+(x-L.width/2-5)+", 0)"),h&&(S.attr("transform",`translate(${-B/2-3}, ${-G-10})`),_.attr("transform","translate("+(x-L.width/2-5)+", "+(-G*2+7)+")"))):gr==="BT"?(S.attr("x",x-L.width/2-10).attr("y",tc),_.attr("transform","translate("+(x-L.width/2-5)+", "+tc+")"),h&&(S.attr("transform",`translate(${-B/2-3}, ${G+10})`),_.attr("transform","translate("+(x-L.width/2-5)+", "+(tc+G*2+4)+")"))):S.attr("transform","translate(-19, "+(b-12-G/2)+")")})},"drawBranches"),WXe=a(function(e,t,r,i,n){return pa.set(e,{pos:t,index:r}),t+=50+(n?40:0)+(gr==="TB"||gr==="BT"?i.width/2:0),t},"setBranchPosition"),zXe=a(function(e,t,r,i){_Xe(),W.debug("in gitgraph renderer",e+`
`,"id:",t,r);let n=i.db;if(!n.getConfig){W.error("getConfig method is not available on db");return}let s=n.getConfig(),o=s.rotateCommitLabel??!1;sx=n.getCommits();let l=n.getBranchesAsObjArray();gr=n.getDirection();let u=Se(`[id="${t}"]`),{look:h,theme:d,themeVariables:f}=J(),{useGradient:p,gradientStart:m,gradientStop:g,filterColor:x}=f;if(p){let T=u.append("defs").append("linearGradient").attr("id",t+"-gradient").attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");T.append("stop").attr("offset","0%").attr("stop-color",m).attr("stop-opacity",1),T.append("stop").attr("offset","100%").attr("stop-color",g).attr("stop-opacity",1)}h==="neo"&&a_.has(d??"")&&u.append("defs").append("filter").attr("id",t+"-drop-shadow").attr("height","130%").attr("width","130%").append("feDropShadow").attr("dx","4").attr("dy","4").attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",x);let b=0;l.forEach((T,k)=>{let C=qme(T.name),S=u.append("g"),w=S.insert("g").attr("class","branchLabel"),_=w.insert("g").attr("class","label branch-label");_.node()?.appendChild(C);let L=C.getBBox();b=WXe(T.name,b,k,L,o),_.remove(),w.remove(),S.remove()}),zme(u,sx,!1,s),s.showBranches&&GXe(u,l,s,t),VXe(u,sx),zme(u,sx,!0,s),St.insertTitle(u,"gitTitleText",s.titleTopMargin??0,n.getDiagramTitle()),Dg(void 0,u,s.diagramPadding,s.useMaxWidth)},"draw"),Ume={draw:zXe}});var Yme,Kme,qXe,jXe,UXe,HXe,YXe,KXe,XXe,QXe,Xme,Qme=v(()=>{"use strict";Xt();Yme=8,Kme=new Set(["redux","redux-dark","redux-color","redux-dark-color"]),qXe=new Set(["redux-color","redux-dark-color"]),jXe=new Set(["neo","neo-dark"]),UXe=new Set(["dark","redux-dark","redux-dark-color","neo-dark"]),HXe=new Set(["redux","redux-dark","redux-color","redux-dark-color","neo","neo-dark"]),YXe=a(e=>{let{svgId:t}=e,r="";if(e.useGradient&&t)for(let i=0;i<e.THEME_COLOR_LIMIT;i++)r+=`
.label${i} { fill: ${e.mainBkg}; stroke: url(${t}-gradient); stroke-width: ${e.strokeWidth};}
`;return r},"genGitGraphGradient"),KXe=a(e=>{let t=ct(),{theme:r,themeVariables:i}=t,{borderColorArray:n}=i,s=Kme.has(r);if(jXe.has(r)){let o="";for(let l=0;l<e.THEME_COLOR_LIMIT;l++)if(l===0)o+=`
.branch-label${l} { fill: ${e.nodeBorder};}
.commit${l} { stroke: ${e.nodeBorder}; }
.commit-highlight${l} { stroke: ${e.nodeBorder}; fill: ${e.nodeBorder}; }
.arrow${l} { stroke: ${e.nodeBorder}; }
.commit-bullets { fill: ${e.nodeBorder}; }
.commit-cherry-pick${l} { stroke: ${e.nodeBorder}; }
${YXe(e)}`;else{let u=l%Yme;o+=`
.branch-label${l} { fill: ${e["gitBranchLabel"+u]}; }
.commit${l} { stroke: ${e["git"+u]}; fill: ${e["git"+u]}; }
.commit-highlight${l} { stroke: ${e["gitInv"+u]}; fill: ${e["gitInv"+u]}; }
.arrow${l} { stroke: ${e["git"+u]}; }
`}return o}else if(qXe.has(r)){let o="";for(let l=0;l<e.THEME_COLOR_LIMIT;l++)if(l===0)o+=`
.branch-label${l} { fill: ${e.nodeBorder}; ${s?`font-weight:${e.noteFontWeight}`:""} }
.commit${l} { stroke: ${e.nodeBorder}; }
.commit-highlight${l} { stroke: ${e.nodeBorder}; fill: ${e.mainBkg}; }
.label${l} { fill: ${e.mainBkg}; stroke: ${e.nodeBorder}; stroke-width: ${e.strokeWidth}; ${s?`font-weight:${e.noteFontWeight}`:""} }
.arrow${l} { stroke: ${e.nodeBorder}; }
.commit-bullets { fill: ${e.nodeBorder}; }
`;else{let u=l%n.length;o+=`
.branch-label${l} { fill: ${e.nodeBorder}; ${s?`font-weight:${e.noteFontWeight}`:""} }
.commit${l} { stroke: ${n[u]}; fill: ${n[u]}; }
.commit-highlight${l} { stroke: ${n[u]}; fill: ${n[u]}; }
.label${l} { fill: ${UXe.has(r)?e.mainBkg:n[u]}; stroke: ${n[u]}; stroke-width: ${e.strokeWidth}; }
.arrow${l} { stroke: ${n[u]}; }
`}return o}else{let o="";for(let l=0;l<e.THEME_COLOR_LIMIT;l++)o+=`
.branch-label${l} { fill: ${e.nodeBorder}; ${s?`font-weight:${e.noteFontWeight}`:""} }
.commit${l} { stroke: ${e.nodeBorder}; }
.commit-highlight${l} { stroke: ${e.nodeBorder}; fill: ${e.nodeBorder}; }
.label${l} { fill: ${e.mainBkg}; stroke: ${e.nodeBorder}; stroke-width: ${e.strokeWidth}; ${s?`font-weight:${e.noteFontWeight}`:""}}
.arrow${l} { stroke: ${e.nodeBorder}; }
.commit-bullets { fill: ${e.nodeBorder}; }
.commit-cherry-pick${l} { stroke: ${e.nodeBorder}; }
`;return o}},"genColor"),XXe=a(e=>`${Array.from({length:e.THEME_COLOR_LIMIT},(t,r)=>r).map(t=>{let r=t%Yme;return`
.branch-label${t} { fill: ${e["gitBranchLabel"+r]}; }
.commit${t} { stroke: ${e["git"+r]}; fill: ${e["git"+r]}; }
.commit-highlight${t} { stroke: ${e["gitInv"+r]}; fill: ${e["gitInv"+r]}; }
.label${t} { fill: ${e["git"+r]}; }
.arrow${t} { stroke: ${e["git"+r]}; }
`}).join(`
`)}`,"normalTheme"),QXe=a(e=>{let t=ct(),{theme:r}=t,i=HXe.has(r);return`
.commit-id,
.commit-msg,
.branch-label {
fill: lightgrey;
color: lightgrey;
font-family: 'trebuchet ms', verdana, arial, sans-serif;
font-family: var(--mermaid-font-family);
}
${i?KXe(e):XXe(e)}
.branch {
stroke-width: ${e.strokeWidth};
stroke: ${e.commitLineColor??e.lineColor};
stroke-dasharray: ${i?"4 2":"2"};
}
.commit-label { font-size: ${e.commitLabelFontSize}; fill: ${i?e.nodeBorder:e.commitLabelColor}; ${i?`font-weight:${e.noteFontWeight};`:""}}
.commit-label-bkg { font-size: ${e.commitLabelFontSize}; fill: ${i?"transparent":e.commitLabelBackground}; opacity: ${i?"":.5}; }
.tag-label { font-size: ${e.tagLabelFontSize}; fill: ${e.tagLabelColor};}
.tag-label-bkg { fill: ${i?e.mainBkg:e.tagLabelBackground}; stroke: ${i?e.nodeBorder:e.tagLabelBorder}; ${i?`filter:${e.dropShadow}`:""} }
.tag-hole { fill: ${e.textColor}; }
.commit-merge {
stroke: ${i?e.mainBkg:e.primaryColor};
fill: ${i?e.mainBkg:e.primaryColor};
}
.commit-reverse {
stroke: ${i?e.mainBkg:e.primaryColor};
fill: ${i?e.mainBkg:e.primaryColor};
stroke-width: ${i?e.strokeWidth:3};
}
.commit-highlight-outer {
}
.commit-highlight-inner {
stroke: ${i?e.mainBkg:e.primaryColor};
fill: ${i?e.mainBkg:e.primaryColor};
}
.arrow {
/* Intentional: neo themes keep the bold 8px arrow (like classic themes); only redux-geometry themes use the thinner options.strokeWidth. */
stroke-width: ${Kme.has(r)?e.strokeWidth:8};
stroke-linecap: round;
fill: none
}
.gitTitleText {
text-anchor: middle;
font-size: 18px;
fill: ${e.textColor};
}
`},"getStyles"),Xme=QXe});var Zme={};tr(Zme,{diagram:()=>ZXe});var ZXe,Jme=v(()=>{"use strict";Wme();DO();Hme();Qme();ZXe={parser:Gme,db:r_,renderer:Ume,styles:Xme}});var MO,rge,ige=v(()=>{"use strict";MO=(function(){var e=a(function(A,D,R,N){for(R=R||{},N=A.length;N--;R[A[N]]=D);return R},"o"),t=[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],r=[1,26],i=[1,27],n=[1,28],s=[1,29],o=[1,30],l=[1,31],u=[1,32],h=[1,33],d=[1,34],f=[1,9],p=[1,10],m=[1,11],g=[1,12],x=[1,13],b=[1,14],T=[1,15],k=[1,16],C=[1,19],S=[1,20],w=[1,21],_=[1,22],L=[1,23],I=[1,25],B=[1,35],G={trace:a(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:a(function(D,R,N,$,E,M,V){var O=M.length-1;switch(E){case 1:return M[O-1];case 2:this.$=[];break;case 3:M[O-1].push(M[O]),this.$=M[O-1];break;case 4:case 5:this.$=M[O];break;case 6:case 7:this.$=[];break;case 8:$.setWeekday("monday");break;case 9:$.setWeekday("tuesday");break;case 10:$.setWeekday("wednesday");break;case 11:$.setWeekday("thursday");break;case 12:$.setWeekday("friday");break;case 13:$.setWeekday("saturday");break;case 14:$.setWeekday("sunday");break;case 15:$.setWeekend("friday");break;case 16:$.setWeekend("saturday");break;case 17:$.setDateFormat(M[O].substr(11)),this.$=M[O].substr(11);break;case 18:$.enableInclusiveEndDates(),this.$=M[O].substr(18);break;case 19:$.TopAxis(),this.$=M[O].substr(8);break;case 20:$.setAxisFormat(M[O].substr(11)),this.$=M[O].substr(11);break;case 21:$.setTickInterval(M[O].substr(13)),this.$=M[O].substr(13);break;case 22:$.setExcludes(M[O].substr(9)),this.$=M[O].substr(9);break;case 23:$.setIncludes(M[O].substr(9)),this.$=M[O].substr(9);break;case 24:$.setTodayMarker(M[O].substr(12)),this.$=M[O].substr(12);break;case 27:$.setDiagramTitle(M[O].substr(6)),this.$=M[O].substr(6);break;case 28:this.$=M[O].trim(),$.setAccTitle(this.$);break;case 29:case 30:this.$=M[O].trim(),$.setAccDescription(this.$);break;case 31:$.addSection(M[O].substr(8)),this.$=M[O].substr(8);break;case 33:$.addTask(M[O-1],M[O]),this.$="task";break;case 34:this.$=M[O-1],$.setClickEvent(M[O-1],M[O],null);break;case 35:this.$=M[O-2],$.setClickEvent(M[O-2],M[O-1],M[O]);break;case 36:this.$=M[O-2],$.setClickEvent(M[O-2],M[O-1],null),$.setLink(M[O-2],M[O]);break;case 37:this.$=M[O-3],$.setClickEvent(M[O-3],M[O-2],M[O-1]),$.setLink(M[O-3],M[O]);break;case 38:this.$=M[O-2],$.setClickEvent(M[O-2],M[O],null),$.setLink(M[O-2],M[O-1]);break;case 39:this.$=M[O-3],$.setClickEvent(M[O-3],M[O-1],M[O]),$.setLink(M[O-3],M[O-2]);break;case 40:this.$=M[O-1],$.setLink(M[O-1],M[O]);break;case 41:case 47:this.$=M[O-1]+" "+M[O];break;case 42:case 43:case 45:this.$=M[O-2]+" "+M[O-1]+" "+M[O];break;case 44:case 46:this.$=M[O-3]+" "+M[O-2]+" "+M[O-1]+" "+M[O];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},e(t,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:17,12:r,13:i,14:n,15:s,16:o,17:l,18:u,19:18,20:h,21:d,22:f,23:p,24:m,25:g,26:x,27:b,28:T,29:k,30:C,31:S,33:w,35:_,36:L,37:24,38:I,40:B},e(t,[2,7],{1:[2,1]}),e(t,[2,3]),{9:36,11:17,12:r,13:i,14:n,15:s,16:o,17:l,18:u,19:18,20:h,21:d,22:f,23:p,24:m,25:g,26:x,27:b,28:T,29:k,30:C,31:S,33:w,35:_,36:L,37:24,38:I,40:B},e(t,[2,5]),e(t,[2,6]),e(t,[2,17]),e(t,[2,18]),e(t,[2,19]),e(t,[2,20]),e(t,[2,21]),e(t,[2,22]),e(t,[2,23]),e(t,[2,24]),e(t,[2,25]),e(t,[2,26]),e(t,[2,27]),{32:[1,37]},{34:[1,38]},e(t,[2,30]),e(t,[2,31]),e(t,[2,32]),{39:[1,39]},e(t,[2,8]),e(t,[2,9]),e(t,[2,10]),e(t,[2,11]),e(t,[2,12]),e(t,[2,13]),e(t,[2,14]),e(t,[2,15]),e(t,[2,16]),{41:[1,40],43:[1,41]},e(t,[2,4]),e(t,[2,28]),e(t,[2,29]),e(t,[2,33]),e(t,[2,34],{42:[1,42],43:[1,43]}),e(t,[2,40],{41:[1,44]}),e(t,[2,35],{43:[1,45]}),e(t,[2,36]),e(t,[2,38],{42:[1,46]}),e(t,[2,37]),e(t,[2,39])],defaultActions:{},parseError:a(function(D,R){if(R.recoverable)this.trace(D);else{var N=new Error(D);throw N.hash=R,N}},"parseError"),parse:a(function(D){var R=this,N=[0],$=[],E=[null],M=[],V=this.table,O="",z=0,U=0,K=0,j=2,ae=1,X=M.slice.call(arguments,1),de=Object.create(this.lexer),le={yy:{}};for(var ge in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ge)&&(le.yy[ge]=this.yy[ge]);de.setInput(D,le.yy),le.yy.lexer=de,le.yy.parser=this,typeof de.yylloc>"u"&&(de.yylloc={});var he=de.yylloc;M.push(he);var te=de.options&&de.options.ranges;typeof le.yy.parseError=="function"?this.parseError=le.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Le(Ne){N.length=N.length-2*Ne,E.length=E.length-Ne,M.length=M.length-Ne}a(Le,"popStack");function xe(){var Ne;return Ne=$.pop()||de.lex()||ae,typeof Ne!="number"&&(Ne instanceof Array&&($=Ne,Ne=$.pop()),Ne=R.symbols_[Ne]||Ne),Ne}a(xe,"lex");for(var ye,be,Ce,Oe,Ae,st,ce={},Mt,fe,Ue,Je;;){if(Ce=N[N.length-1],this.defaultActions[Ce]?Oe=this.defaultActions[Ce]:((ye===null||typeof ye>"u")&&(ye=xe()),Oe=V[Ce]&&V[Ce][ye]),typeof Oe>"u"||!Oe.length||!Oe[0]){var ot="";Je=[];for(Mt in V[Ce])this.terminals_[Mt]&&Mt>j&&Je.push("'"+this.terminals_[Mt]+"'");de.showPosition?ot="Parse error on line "+(z+1)+`:
`+de.showPosition()+`
Expecting `+Je.join(", ")+", got '"+(this.terminals_[ye]||ye)+"'":ot="Parse error on line "+(z+1)+": Unexpected "+(ye==ae?"end of input":"'"+(this.terminals_[ye]||ye)+"'"),this.parseError(ot,{text:de.match,token:this.terminals_[ye]||ye,line:de.yylineno,loc:he,expected:Je})}if(Oe[0]instanceof Array&&Oe.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Ce+", token: "+ye);switch(Oe[0]){case 1:N.push(ye),E.push(de.yytext),M.push(de.yylloc),N.push(Oe[1]),ye=null,be?(ye=be,be=null):(U=de.yyleng,O=de.yytext,z=de.yylineno,he=de.yylloc,K>0&&K--);break;case 2:if(fe=this.productions_[Oe[1]][1],ce.$=E[E.length-fe],ce._$={first_line:M[M.length-(fe||1)].first_line,last_line:M[M.length-1].last_line,first_column:M[M.length-(fe||1)].first_column,last_column:M[M.length-1].last_column},te&&(ce._$.range=[M[M.length-(fe||1)].range[0],M[M.length-1].range[1]]),st=this.performAction.apply(ce,[O,U,z,le.yy,Oe[1],E,M].concat(X)),typeof st<"u")return st;fe&&(N=N.slice(0,-1*fe*2),E=E.slice(0,-1*fe),M=M.slice(0,-1*fe)),N.push(this.productions_[Oe[1]][0]),E.push(ce.$),M.push(ce._$),Ue=V[N[N.length-2]][N[N.length-1]],N.push(Ue);break;case 3:return!0}}return!0},"parse")},P=(function(){var A={EOF:1,parseError:a(function(R,N){if(this.yy.parser)this.yy.parser.parseError(R,N);else throw new Error(R)},"parseError"),setInput:a(function(D,R){return this.yy=R||this.yy||{},this._input=D,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:a(function(){var D=this._input[0];this.yytext+=D,this.yyleng++,this.offset++,this.match+=D,this.matched+=D;var R=D.match(/(?:\r\n?|\n).*/g);return R?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),D},"input"),unput:a(function(D){var R=D.length,N=D.split(/(?:\r\n?|\n)/g);this._input=D+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-R),this.offset-=R;var $=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),N.length-1&&(this.yylineno-=N.length-1);var E=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:N?(N.length===$.length?this.yylloc.first_column:0)+$[$.length-N.length].length-N[0].length:this.yylloc.first_column-R},this.options.ranges&&(this.yylloc.range=[E[0],E[0]+this.yyleng-R]),this.yyleng=this.yytext.length,this},"unput"),more:a(function(){return this._more=!0,this},"more"),reject:a(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:a(function(D){this.unput(this.match.slice(D))},"less"),pastInput:a(function(){var D=this.matched.substr(0,this.matched.length-this.match.length);return(D.length>20?"...":"")+D.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:a(function(){var D=this.match;return D.length<20&&(D+=this._input.substr(0,20-D.length)),(D.substr(0,20)+(D.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:a(function(){var D=this.pastInput(),R=new Array(D.length+1).join("-");return D+this.upcomingInput()+`
`+R+"^"},"showPosition"),test_match:a(function(D,R){var N,$,E;if(this.options.backtrack_lexer&&(E={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&&(E.yylloc.range=this.yylloc.range.slice(0))),$=D[0].match(/(?:\r\n?|\n).*/g),$&&(this.yylineno+=$.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:$?$[$.length-1].length-$[$.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+D[0].length},this.yytext+=D[0],this.match+=D[0],this.matches=D,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(D[0].length),this.matched+=D[0],N=this.performAction.call(this,this.yy,this,R,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),N)return N;if(this._backtrack){for(var M in E)this[M]=E[M];return!1}return!1},"test_match"),next:a(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var D,R,N,$;this._more||(this.yytext="",this.match="");for(var E=this._currentRules(),M=0;M<E.length;M++)if(N=this._input.match(this.rules[E[M]]),N&&(!R||N[0].length>R[0].length)){if(R=N,$=M,this.options.backtrack_lexer){if(D=this.test_match(N,E[M]),D!==!1)return D;if(this._backtrack){R=!1;continue}else return!1}else if(!this.options.flex)break}return R?(D=this.test_match(R,E[$]),D!==!1?D:!1):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:a(function(){var R=this.next();return R||this.lex()},"lex"),begin:a(function(R){this.conditionStack.push(R)},"begin"),popState:a(function(){var R=this.conditionStack.length-1;return R>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:a(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:a(function(R){return R=this.conditionStack.length-1-Math.abs(R||0),R>=0?this.conditionStack[R]:"INITIAL"},"topState"),pushState:a(function(R){this.begin(R)},"pushState"),stateStackSize:a(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:a(function(R,N,$,E){var M=E;switch($){case 0:return this.begin("open_directive"),"open_directive";break;case 1:return this.begin("acc_title"),31;break;case 2:return this.popState(),"acc_title_value";break;case 3:return this.begin("acc_descr"),33;break;case 4:return this.popState(),"acc_descr_value";break;case 5:this.begin("acc_descr_multiline");break;case 6:this.popState();break;case 7:return"acc_descr_multiline_value";case 8:break;case 9:break;case 10:break;case 11:return 10;case 12:break;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}}};return A})();G.lexer=P;function F(){this.yy={}}return a(F,"Parser"),F.prototype=G,G.Parser=F,new F})();MO.parser=MO;rge=MO});var nge=ju((OO,PO)=>{"use strict";(function(e,t){typeof OO=="object"&&typeof PO<"u"?PO.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_plugin_isoWeek=t()})(OO,(function(){"use strict";var e="day";return function(t,r,i){var n=a(function(l){return l.add(4-l.isoWeekday(),e)},"a"),s=r.prototype;s.isoWeekYear=function(){return n(this).year()},s.isoWeek=function(l){if(!this.$utils().u(l))return this.add(7*(l-this.isoWeek()),e);var u,h,d,f,p=n(this),m=(u=this.isoWeekYear(),h=this.$u,d=(h?i.utc:i)().year(u).startOf("year"),f=4-d.isoWeekday(),d.isoWeekday()>4&&(f+=7),d.add(f,e));return p.diff(m,"week")+1},s.isoWeekday=function(l){return this.$utils().u(l)?this.day()||7:this.day(this.day()%7?l:l-7)};var o=s.startOf;s.startOf=function(l,u){var h=this.$utils(),d=!!h.u(u)||u;return h.p(l)==="isoweek"?d?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):o.bind(this)(l,u)}}}))});var age=ju((BO,$O)=>{"use strict";(function(e,t){typeof BO=="object"&&typeof $O<"u"?$O.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_plugin_customParseFormat=t()})(BO,(function(){"use strict";var e={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"},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,r=/\d/,i=/\d\d/,n=/\d\d?/,s=/\d*[^-_:/,()\s\d]+/,o={},l=a(function(g){return(g=+g)+(g>68?1900:2e3)},"a"),u=a(function(g){return function(x){this[g]=+x}},"f"),h=[/[+-]\d\d:?(\d\d)?|Z/,function(g){(this.zone||(this.zone={})).offset=(function(x){if(!x||x==="Z")return 0;var b=x.match(/([+-]|\d\d)/g),T=60*b[1]+(+b[2]||0);return T===0?0:b[0]==="+"?-T:T})(g)}],d=a(function(g){var x=o[g];return x&&(x.indexOf?x:x.s.concat(x.f))},"u"),f=a(function(g,x){var b,T=o.meridiem;if(T){for(var k=1;k<=24;k+=1)if(g.indexOf(T(k,0,x))>-1){b=k>12;break}}else b=g===(x?"pm":"PM");return b},"d"),p={A:[s,function(g){this.afternoon=f(g,!1)}],a:[s,function(g){this.afternoon=f(g,!0)}],Q:[r,function(g){this.month=3*(g-1)+1}],S:[r,function(g){this.milliseconds=100*+g}],SS:[i,function(g){this.milliseconds=10*+g}],SSS:[/\d{3}/,function(g){this.milliseconds=+g}],s:[n,u("seconds")],ss:[n,u("seconds")],m:[n,u("minutes")],mm:[n,u("minutes")],H:[n,u("hours")],h:[n,u("hours")],HH:[n,u("hours")],hh:[n,u("hours")],D:[n,u("day")],DD:[i,u("day")],Do:[s,function(g){var x=o.ordinal,b=g.match(/\d+/);if(this.day=b[0],x)for(var T=1;T<=31;T+=1)x(T).replace(/\[|\]/g,"")===g&&(this.day=T)}],w:[n,u("week")],ww:[i,u("week")],M:[n,u("month")],MM:[i,u("month")],MMM:[s,function(g){var x=d("months"),b=(d("monthsShort")||x.map((function(T){return T.slice(0,3)}))).indexOf(g)+1;if(b<1)throw new Error;this.month=b%12||b}],MMMM:[s,function(g){var x=d("months").indexOf(g)+1;if(x<1)throw new Error;this.month=x%12||x}],Y:[/[+-]?\d+/,u("year")],YY:[i,function(g){this.year=l(g)}],YYYY:[/\d{4}/,u("year")],Z:h,ZZ:h};function m(g){var x,b;x=g,b=o&&o.formats;for(var T=(g=x.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(I,B,G){var P=G&&G.toUpperCase();return B||b[G]||e[G]||b[P].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(F,A,D){return A||D.slice(1)}))}))).match(t),k=T.length,C=0;C<k;C+=1){var S=T[C],w=p[S],_=w&&w[0],L=w&&w[1];T[C]=L?{regex:_,parser:L}:S.replace(/^\[|\]$/g,"")}return function(I){for(var B={},G=0,P=0;G<k;G+=1){var F=T[G];if(typeof F=="string")P+=F.length;else{var A=F.regex,D=F.parser,R=I.slice(P),N=A.exec(R)[0];D.call(B,N),I=I.replace(N,"")}}return(function($){var E=$.afternoon;if(E!==void 0){var M=$.hours;E?M<12&&($.hours+=12):M===12&&($.hours=0),delete $.afternoon}})(B),B}}return a(m,"l"),function(g,x,b){b.p.customParseFormat=!0,g&&g.parseTwoDigitYear&&(l=g.parseTwoDigitYear);var T=x.prototype,k=T.parse;T.parse=function(C){var S=C.date,w=C.utc,_=C.args;this.$u=w;var L=_[1];if(typeof L=="string"){var I=_[2]===!0,B=_[3]===!0,G=I||B,P=_[2];B&&(P=_[2]),o=this.$locale(),!I&&P&&(o=b.Ls[P]),this.$d=(function(R,N,$,E){try{if(["x","X"].indexOf(N)>-1)return new Date((N==="X"?1e3:1)*R);var M=m(N)(R),V=M.year,O=M.month,z=M.day,U=M.hours,K=M.minutes,j=M.seconds,ae=M.milliseconds,X=M.zone,de=M.week,le=new Date,ge=z||(V||O?1:le.getDate()),he=V||le.getFullYear(),te=0;V&&!O||(te=O>0?O-1:le.getMonth());var Le,xe=U||0,ye=K||0,be=j||0,Ce=ae||0;return X?new Date(Date.UTC(he,te,ge,xe,ye,be,Ce+60*X.offset*1e3)):$?new Date(Date.UTC(he,te,ge,xe,ye,be,Ce)):(Le=new Date(he,te,ge,xe,ye,be,Ce),de&&(Le=E(Le).week(de).toDate()),Le)}catch{return new Date("")}})(S,L,w,b),this.init(),P&&P!==!0&&(this.$L=this.locale(P).$L),G&&S!=this.format(L)&&(this.$d=new Date("")),o={}}else if(L instanceof Array)for(var F=L.length,A=1;A<=F;A+=1){_[1]=L[A-1];var D=b.apply(this,_);if(D.isValid()){this.$d=D.$d,this.$L=D.$L,this.init();break}A===F&&(this.$d=new Date(""))}else k.call(this,C)}}}))});var sge=ju((FO,VO)=>{"use strict";(function(e,t){typeof FO=="object"&&typeof VO<"u"?VO.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_plugin_advancedFormat=t()})(FO,(function(){"use strict";return function(e,t){var r=t.prototype,i=r.format;r.format=function(n){var s=this,o=this.$locale();if(!this.isValid())return i.bind(this)(n);var l=this.$utils(),u=(n||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(h){switch(h){case"Q":return Math.ceil((s.$M+1)/3);case"Do":return o.ordinal(s.$D);case"gggg":return s.weekYear();case"GGGG":return s.isoWeekYear();case"wo":return o.ordinal(s.week(),"W");case"w":case"ww":return l.s(s.week(),h==="w"?1:2,"0");case"W":case"WW":return l.s(s.isoWeek(),h==="W"?1:2,"0");case"k":case"kk":return l.s(String(s.$H===0?24:s.$H),h==="k"?1:2,"0");case"X":return Math.floor(s.$d.getTime()/1e3);case"x":return s.$d.getTime();case"z":return"["+s.offsetName()+"]";case"zzz":return"["+s.offsetName("long")+"]";default:return h}}));return i.bind(this)(u)}}}))});function Cge(e,t,r){let i=!0;for(;i;)i=!1,r.forEach(function(n){let s="^\\s*"+n+"\\s*$",o=new RegExp(s);e[0].match(o)&&(t[n]=!0,e.shift(1),i=!0)})}var cge,$a,uge,hge,dge,oge,el,qO,jO,UO,lx,cx,HO,YO,l_,Mm,KO,fge,XO,Im,ux,QO,ZO,c_,GO,rQe,iQe,nQe,aQe,sQe,oQe,lQe,cQe,uQe,hQe,dQe,fQe,pQe,mQe,gQe,yQe,xQe,bQe,TQe,kQe,CQe,vQe,SQe,_Qe,pge,wQe,EQe,AQe,mge,RQe,WO,gge,yge,s_,Nm,LQe,DQe,zO,o_,qi,xge,IQe,nf,NQe,lge,MQe,bge,OQe,Tge,PQe,BQe,kge,vge=v(()=>{"use strict";cge=Wa(ep(),1),$a=Wa(Bx(),1),uge=Wa(nge(),1),hge=Wa(age(),1),dge=Wa(sge(),1);nt();bt();Et();zr();$a.default.extend(uge.default);$a.default.extend(hge.default);$a.default.extend(dge.default);oge={friday:5,saturday:6},el="",qO="",UO="",lx=[],cx=[],HO=new Map,YO=[],l_=[],Mm="",KO="",fge=["active","done","crit","milestone","vert"],XO=[],Im="",ux=!1,QO=!1,ZO="sunday",c_="saturday",GO=0,rQe=a(function(){YO=[],l_=[],Mm="",XO=[],s_=0,zO=void 0,o_=void 0,qi=[],el="",qO="",KO="",jO=void 0,UO="",lx=[],cx=[],ux=!1,QO=!1,GO=0,HO=new Map,Im="",Ht(),ZO="sunday",c_="saturday"},"clear"),iQe=a(function(e){Im=e},"setDiagramId"),nQe=a(function(e){qO=e},"setAxisFormat"),aQe=a(function(){return qO},"getAxisFormat"),sQe=a(function(e){jO=e},"setTickInterval"),oQe=a(function(){return jO},"getTickInterval"),lQe=a(function(e){UO=e},"setTodayMarker"),cQe=a(function(){return UO},"getTodayMarker"),uQe=a(function(e){el=e},"setDateFormat"),hQe=a(function(){ux=!0},"enableInclusiveEndDates"),dQe=a(function(){return ux},"endDatesAreInclusive"),fQe=a(function(){QO=!0},"enableTopAxis"),pQe=a(function(){return QO},"topAxisEnabled"),mQe=a(function(e){KO=e},"setDisplayMode"),gQe=a(function(){return KO},"getDisplayMode"),yQe=a(function(){return el},"getDateFormat"),xQe=a(function(e){lx=e.toLowerCase().split(/[\s,]+/)},"setIncludes"),bQe=a(function(){return lx},"getIncludes"),TQe=a(function(e){cx=e.toLowerCase().split(/[\s,]+/)},"setExcludes"),kQe=a(function(){return cx},"getExcludes"),CQe=a(function(){return HO},"getLinks"),vQe=a(function(e){Mm=e,YO.push(e)},"addSection"),SQe=a(function(){return YO},"getSections"),_Qe=a(function(){let e=lge(),t=10,r=0;for(;!e&&r<t;)e=lge(),r++;return l_=qi,l_},"getTasks"),pge=a(function(e,t,r,i){let n=e.format(t.trim()),s=e.format("YYYY-MM-DD");return i.includes(n)||i.includes(s)?!1:r.includes("weekends")&&(e.isoWeekday()===oge[c_]||e.isoWeekday()===oge[c_]+1)||r.includes(e.format("dddd").toLowerCase())?!0:r.includes(n)||r.includes(s)},"isInvalidDate"),wQe=a(function(e){ZO=e},"setWeekday"),EQe=a(function(){return ZO},"getWeekday"),AQe=a(function(e){c_=e},"setWeekend"),mge=a(function(e,t,r,i){if(!r.length||e.manualEndTime)return;let n;e.startTime instanceof Date?n=(0,$a.default)(e.startTime):n=(0,$a.default)(e.startTime,t,!0),n=n.add(1,"d");let s;e.endTime instanceof Date?s=(0,$a.default)(e.endTime):s=(0,$a.default)(e.endTime,t,!0);let[o,l]=RQe(n,s,t,r,i);e.endTime=o.toDate(),e.renderEndTime=l},"checkTaskDates"),RQe=a(function(e,t,r,i,n){let s=!1,o=null,l=t.add(1e4,"d");for(;e<=t;){if(s||(o=t.toDate()),s=pge(e,r,i,n),s&&(t=t.add(1,"d"),t>l))throw new Error("Failed to find a valid date that was not excluded by `excludes` after 10,000 iterations.");e=e.add(1,"d")}return[t,o]},"fixTaskDates"),WO=a(function(e,t,r){if(r=r.trim(),a(l=>{let u=l.trim();return u==="x"||u==="X"},"isTimestampFormat")(t)&&/^\d+$/.test(r))return new Date(Number(r));let s=/^after\s+(?<ids>[\d\w- ]+)/.exec(r);if(s!==null){let l=null;for(let h of s.groups.ids.split(" ")){let d=nf(h);d!==void 0&&(!l||d.endTime>l.endTime)&&(l=d)}if(l)return l.endTime;let u=new Date;return u.setHours(0,0,0,0),u}let o=(0,$a.default)(r,t.trim(),!0);if(o.isValid())return o.toDate();{W.debug("Invalid date:"+r),W.debug("With date format:"+t.trim());let l=new Date(r);if(l===void 0||isNaN(l.getTime())||l.getFullYear()<-1e4||l.getFullYear()>1e4)throw new Error("Invalid date:"+r);return l}},"getStartDate"),gge=a(function(e){let t=/^(\d+(?:\.\d+)?)([Mdhmswy]|ms)$/.exec(e.trim());return t!==null?[Number.parseFloat(t[1]),t[2]]:[NaN,"ms"]},"parseDuration"),yge=a(function(e,t,r,i=!1){r=r.trim();let s=/^until\s+(?<ids>[\d\w- ]+)/.exec(r);if(s!==null){let d=null;for(let p of s.groups.ids.split(" ")){let m=nf(p);m!==void 0&&(!d||m.startTime<d.startTime)&&(d=m)}if(d)return d.startTime;let f=new Date;return f.setHours(0,0,0,0),f}let o=(0,$a.default)(r,t.trim(),!0);if(o.isValid())return i&&(o=o.add(1,"d")),o.toDate();let l=(0,$a.default)(e),[u,h]=gge(r);if(!Number.isNaN(u)){let d=l.add(u,h);d.isValid()&&(l=d)}return l.toDate()},"getEndDate"),s_=0,Nm=a(function(e){return e===void 0?(s_=s_+1,"task"+s_):e},"parseId"),LQe=a(function(e,t){let r;t.substr(0,1)===":"?r=t.substr(1,t.length):r=t;let i=r.split(","),n={};Cge(i,n,fge);for(let o=0;o<i.length;o++)i[o]=i[o].trim();let s="";switch(i.length){case 1:n.id=Nm(),n.startTime=e.endTime,s=i[0];break;case 2:n.id=Nm(),n.startTime=WO(void 0,el,i[0]),s=i[1];break;case 3:n.id=Nm(i[0]),n.startTime=WO(void 0,el,i[1]),s=i[2];break;default:}return s&&(n.endTime=yge(n.startTime,el,s,ux),n.manualEndTime=(0,$a.default)(s,"YYYY-MM-DD",!0).isValid(),mge(n,el,cx,lx)),n},"compileData"),DQe=a(function(e,t){let r;t.substr(0,1)===":"?r=t.substr(1,t.length):r=t;let i=r.split(","),n={};Cge(i,n,fge);for(let s=0;s<i.length;s++)i[s]=i[s].trim();switch(i.length){case 1:n.id=Nm(),n.startTime={type:"prevTaskEnd",id:e},n.endTime={data:i[0]};break;case 2:n.id=Nm(),n.startTime={type:"getStartDate",startData:i[0]},n.endTime={data:i[1]};break;case 3:n.id=Nm(i[0]),n.startTime={type:"getStartDate",startData:i[1]},n.endTime={data:i[2]};break;default:}return n},"parseData"),qi=[],xge={},IQe=a(function(e,t){let r={section:Mm,type:Mm,processed:!1,manualEndTime:!1,renderEndTime:null,raw:{data:t},task:e,classes:[]},i=DQe(o_,t);r.raw.startTime=i.startTime,r.raw.endTime=i.endTime,r.id=i.id,r.prevTaskId=o_,r.active=i.active,r.done=i.done,r.crit=i.crit,r.milestone=i.milestone,r.vert=i.vert,r.order=GO,GO++;let n=qi.push(r);o_=r.id,xge[r.id]=n-1},"addTask"),nf=a(function(e){let t=xge[e];return qi[t]},"findTaskById"),NQe=a(function(e,t){let r={section:Mm,type:Mm,description:e,task:e,classes:[]},i=LQe(zO,t);r.startTime=i.startTime,r.endTime=i.endTime,r.id=i.id,r.active=i.active,r.done=i.done,r.crit=i.crit,r.milestone=i.milestone,r.vert=i.vert,zO=r,l_.push(r)},"addTaskOrg"),lge=a(function(){let e=a(function(r){let i=qi[r],n="";switch(qi[r].raw.startTime.type){case"prevTaskEnd":{let s=nf(i.prevTaskId);i.startTime=s.endTime;break}case"getStartDate":n=WO(void 0,el,qi[r].raw.startTime.startData),n&&(qi[r].startTime=n);break}return qi[r].startTime&&(qi[r].endTime=yge(qi[r].startTime,el,qi[r].raw.endTime.data,ux),qi[r].endTime&&(qi[r].processed=!0,qi[r].manualEndTime=(0,$a.default)(qi[r].raw.endTime.data,"YYYY-MM-DD",!0).isValid(),mge(qi[r],el,cx,lx))),qi[r].processed},"compileTask"),t=!0;for(let[r,i]of qi.entries())e(r),t=t&&i.processed;return t},"compileTasks"),MQe=a(function(e,t){let r=t;J().securityLevel!=="loose"&&(r=(0,cge.sanitizeUrl)(t)),e.split(",").forEach(function(i){nf(i)!==void 0&&(Tge(i,()=>{window.open(r,"_self")}),HO.set(i,r))}),bge(e,"clickable")},"setLink"),bge=a(function(e,t){e.split(",").forEach(function(r){let i=nf(r);i!==void 0&&i.classes.push(t)})},"setClass"),OQe=a(function(e,t,r){if(J().securityLevel!=="loose"||t===void 0)return;let i=[];if(typeof r=="string"){i=r.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let s=0;s<i.length;s++){let o=i[s].trim();o.startsWith('"')&&o.endsWith('"')&&(o=o.substr(1,o.length-2)),i[s]=o}}i.length===0&&i.push(e),nf(e)!==void 0&&Tge(e,()=>{St.runFunc(t,...i)})},"setClickFun"),Tge=a(function(e,t){XO.push(function(){let r=Im?`${Im}-${e}`:e,i=document.querySelector(`[id="${r}"]`);i!==null&&i.addEventListener("click",function(){t()})},function(){let r=Im?`${Im}-${e}`:e,i=document.querySelector(`[id="${r}-text"]`);i!==null&&i.addEventListener("click",function(){t()})})},"pushFun"),PQe=a(function(e,t,r){e.split(",").forEach(function(i){OQe(i,t,r)}),bge(e,"clickable")},"setClickEvent"),BQe=a(function(e){XO.forEach(function(t){t(e)})},"bindFunctions"),kge={getConfig:a(()=>J().gantt,"getConfig"),clear:rQe,setDateFormat:uQe,getDateFormat:yQe,enableInclusiveEndDates:hQe,endDatesAreInclusive:dQe,enableTopAxis:fQe,topAxisEnabled:pQe,setAxisFormat:nQe,getAxisFormat:aQe,setTickInterval:sQe,getTickInterval:oQe,setTodayMarker:lQe,getTodayMarker:cQe,setAccTitle:Yt,getAccTitle:Qt,setDiagramTitle:ir,getDiagramTitle:er,setDiagramId:iQe,setDisplayMode:mQe,getDisplayMode:gQe,setAccDescription:Zt,getAccDescription:Jt,addSection:vQe,getSections:SQe,getTasks:_Qe,addTask:IQe,findTaskById:nf,addTaskOrg:NQe,setIncludes:xQe,getIncludes:bQe,setExcludes:TQe,getExcludes:kQe,setClickEvent:PQe,setLink:MQe,getLinks:CQe,bindFunctions:BQe,parseDuration:gge,isInvalidDate:pge,setWeekday:wQe,getWeekday:EQe,setWeekend:AQe};a(Cge,"getTaskTags")});var Sge=ju((JO,eP)=>{"use strict";(function(e,t){typeof JO=="object"&&typeof eP<"u"?eP.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_plugin_duration=t()})(JO,(function(){"use strict";var e,t,r=1e3,i=6e4,n=36e5,s=864e5,o=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,l=31536e6,u=2628e6,h=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,d={years:l,months:u,days:s,hours:n,minutes:i,seconds:r,milliseconds:1,weeks:6048e5},f=a(function(S){return S instanceof k},"c"),p=a(function(S,w,_){return new k(S,_,w.$l)},"f"),m=a(function(S){return t.p(S)+"s"},"m"),g=a(function(S){return S<0},"l"),x=a(function(S){return g(S)?Math.ceil(S):Math.floor(S)},"$"),b=a(function(S){return Math.abs(S)},"y"),T=a(function(S,w){return S?g(S)?{negative:!0,format:""+b(S)+w}:{negative:!1,format:""+S+w}:{negative:!1,format:""}},"v"),k=(function(){function S(_,L,I){var B=this;if(this.$d={},this.$l=I,_===void 0&&(this.$ms=0,this.parseFromMilliseconds()),L)return p(_*d[m(L)],this);if(typeof _=="number")return this.$ms=_,this.parseFromMilliseconds(),this;if(typeof _=="object")return Object.keys(_).forEach((function(F){B.$d[m(F)]=_[F]})),this.calMilliseconds(),this;if(typeof _=="string"){var G=_.match(h);if(G){var P=G.slice(2).map((function(F){return F!=null?Number(F):0}));return this.$d.years=P[0],this.$d.months=P[1],this.$d.weeks=P[2],this.$d.days=P[3],this.$d.hours=P[4],this.$d.minutes=P[5],this.$d.seconds=P[6],this.calMilliseconds(),this}}return this}a(S,"l");var w=S.prototype;return w.calMilliseconds=function(){var _=this;this.$ms=Object.keys(this.$d).reduce((function(L,I){return L+(_.$d[I]||0)*d[I]}),0)},w.parseFromMilliseconds=function(){var _=this.$ms;this.$d.years=x(_/l),_%=l,this.$d.months=x(_/u),_%=u,this.$d.days=x(_/s),_%=s,this.$d.hours=x(_/n),_%=n,this.$d.minutes=x(_/i),_%=i,this.$d.seconds=x(_/r),_%=r,this.$d.milliseconds=_},w.toISOString=function(){var _=T(this.$d.years,"Y"),L=T(this.$d.months,"M"),I=+this.$d.days||0;this.$d.weeks&&(I+=7*this.$d.weeks);var B=T(I,"D"),G=T(this.$d.hours,"H"),P=T(this.$d.minutes,"M"),F=this.$d.seconds||0;this.$d.milliseconds&&(F+=this.$d.milliseconds/1e3,F=Math.round(1e3*F)/1e3);var A=T(F,"S"),D=_.negative||L.negative||B.negative||G.negative||P.negative||A.negative,R=G.format||P.format||A.format?"T":"",N=(D?"-":"")+"P"+_.format+L.format+B.format+R+G.format+P.format+A.format;return N==="P"||N==="-P"?"P0D":N},w.toJSON=function(){return this.toISOString()},w.format=function(_){var L=_||"YYYY-MM-DDTHH:mm:ss",I={Y:this.$d.years,YY:t.s(this.$d.years,2,"0"),YYYY:t.s(this.$d.years,4,"0"),M:this.$d.months,MM:t.s(this.$d.months,2,"0"),D:this.$d.days,DD:t.s(this.$d.days,2,"0"),H:this.$d.hours,HH:t.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:t.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:t.s(this.$d.seconds,2,"0"),SSS:t.s(this.$d.milliseconds,3,"0")};return L.replace(o,(function(B,G){return G||String(I[B])}))},w.as=function(_){return this.$ms/d[m(_)]},w.get=function(_){var L=this.$ms,I=m(_);return I==="milliseconds"?L%=1e3:L=I==="weeks"?x(L/d[I]):this.$d[I],L||0},w.add=function(_,L,I){var B;return B=L?_*d[m(L)]:f(_)?_.$ms:p(_,this).$ms,p(this.$ms+B*(I?-1:1),this)},w.subtract=function(_,L){return this.add(_,L,!0)},w.locale=function(_){var L=this.clone();return L.$l=_,L},w.clone=function(){return p(this.$ms,this)},w.humanize=function(_){return e().add(this.$ms,"ms").locale(this.$l).fromNow(!_)},w.valueOf=function(){return this.asMilliseconds()},w.milliseconds=function(){return this.get("milliseconds")},w.asMilliseconds=function(){return this.as("milliseconds")},w.seconds=function(){return this.get("seconds")},w.asSeconds=function(){return this.as("seconds")},w.minutes=function(){return this.get("minutes")},w.asMinutes=function(){return this.as("minutes")},w.hours=function(){return this.get("hours")},w.asHours=function(){return this.as("hours")},w.days=function(){return this.get("days")},w.asDays=function(){return this.as("days")},w.weeks=function(){return this.get("weeks")},w.asWeeks=function(){return this.as("weeks")},w.months=function(){return this.get("months")},w.asMonths=function(){return this.as("months")},w.years=function(){return this.get("years")},w.asYears=function(){return this.as("years")},S})(),C=a(function(S,w,_){return S.add(w.years()*_,"y").add(w.months()*_,"M").add(w.days()*_,"d").add(w.hours()*_,"h").add(w.minutes()*_,"m").add(w.seconds()*_,"s").add(w.milliseconds()*_,"ms")},"p");return function(S,w,_){e=_,t=_().$utils(),_.duration=function(B,G){var P=_.locale();return p(B,{$l:P},G)},_.isDuration=f;var L=w.prototype.add,I=w.prototype.subtract;w.prototype.add=function(B,G){return f(B)?C(this,B,1):L.bind(this)(B,G)},w.prototype.subtract=function(B,G){return f(B)?C(this,B,-1):I.bind(this)(B,G)}}}))});var Om,wge,$Qe,_ge,FQe,rc,tP,VQe,Ege,Age=v(()=>{"use strict";Om=Wa(Bx(),1),wge=Wa(Sge(),1);nt();sr();dr();bt();Xr();Om.default.extend(wge.default);$Qe=a(function(){W.debug("Something is calling, setConf, remove the call")},"setConf"),_ge={monday:_c,tuesday:Qb,wednesday:Zb,thursday:bo,friday:Jb,saturday:e2,sunday:Ds},FQe=a((e,t)=>{let r=[...e].map(()=>-1/0),i=[...e].sort((s,o)=>s.startTime-o.startTime||s.order-o.order),n=0;for(let s of i)for(let o=0;o<r.length;o++)if(s.startTime>=r[o]){r[o]=s.endTime,s.order=o+t,o>n&&(n=o);break}return n},"getMaxIntersections"),tP=1e4,VQe=a(function(e,t,r,i){let n=J().gantt;i.db.setDiagramId(t);let s=J().securityLevel,o;s==="sandbox"&&(o=Se("#i"+t));let l=s==="sandbox"?Se(o.nodes()[0].contentDocument.body):Se("body"),u=s==="sandbox"?o.nodes()[0].contentDocument:document,h=u.getElementById(t);rc=h.parentElement.offsetWidth,rc===void 0&&(rc=1200),n.useWidth!==void 0&&(rc=n.useWidth);let d=i.db.getTasks(),f=[];for(let B of d)f.push(B.type);f=I(f);let p={},m=2*n.topPadding;if(i.db.getDisplayMode()==="compact"||n.displayMode==="compact"){let B={};for(let P of d)B[P.section]===void 0?B[P.section]=[P]:B[P.section].push(P);let G=0;for(let P of Object.keys(B)){let F=FQe(B[P],G)+1;G+=F,m+=F*(n.barHeight+n.barGap),p[P]=F}}else{m+=d.length*(n.barHeight+n.barGap);for(let B of f)p[B]=d.filter(G=>G.type===B).length}h.setAttribute("viewBox","0 0 "+rc+" "+m);let g=l.select(`[id="${t}"]`),x=i2().domain([lb(d,function(B){return B.startTime}),ob(d,function(B){return B.endTime})]).rangeRound([0,rc-n.leftPadding-n.rightPadding]);function b(B,G){let P=B.startTime,F=G.startTime,A=0;return P>F?A=1:P<F&&(A=-1),A}a(b,"taskCompare"),d.sort(b),T(d,rc,m),fr(g,m,rc,n.useMaxWidth),g.append("text").text(i.db.getDiagramTitle()).attr("x",rc/2).attr("y",n.titleTopMargin).attr("class","titleText");function T(B,G,P){let F=n.barHeight,A=F+n.barGap,D=n.topPadding,R=n.leftPadding,N=Ls().domain([0,f.length]).range(["#00B9FA","#F95002"]).interpolate(a3);C(A,D,R,G,P,B,i.db.getExcludes(),i.db.getIncludes()),w(R,D,G,P),k(B,A,D,R,F,N,G,P),_(A,D,R,F,N),L(R,D,G,P)}a(T,"makeGantt");function k(B,G,P,F,A,D,R){B.sort((O,z)=>O.vert===z.vert?0:O.vert?1:-1);let $=[...new Set(B.map(O=>O.order))].map(O=>B.find(z=>z.order===O));g.append("g").selectAll("rect").data($).enter().append("rect").attr("x",0).attr("y",function(O,z){return z=O.order,z*G+P-2}).attr("width",function(){return R-n.rightPadding/2}).attr("height",G).attr("class",function(O){for(let[z,U]of f.entries())if(O.type===U)return"section section"+z%n.numberSectionStyles;return"section section0"}).enter();let E=g.append("g").selectAll("rect").data(B).enter(),M=i.db.getLinks();if(E.append("rect").attr("id",function(O){return t+"-"+O.id}).attr("rx",3).attr("ry",3).attr("x",function(O){return O.milestone?x(O.startTime)+F+.5*(x(O.endTime)-x(O.startTime))-.5*A:x(O.startTime)+F}).attr("y",function(O,z){return z=O.order,O.vert?n.gridLineStartPadding:z*G+P}).attr("width",function(O){return O.milestone?A:O.vert?.08*A:x(O.renderEndTime||O.endTime)-x(O.startTime)}).attr("height",function(O){return O.vert?d.length*(n.barHeight+n.barGap)+n.barHeight*2:A}).attr("transform-origin",function(O,z){return z=O.order,(x(O.startTime)+F+.5*(x(O.endTime)-x(O.startTime))).toString()+"px "+(z*G+P+.5*A).toString()+"px"}).attr("class",function(O){let z="task",U="";O.classes.length>0&&(U=O.classes.join(" "));let K=0;for(let[ae,X]of f.entries())O.type===X&&(K=ae%n.numberSectionStyles);let j="";return O.active?O.crit?j+=" activeCrit":j=" active":O.done?O.crit?j=" doneCrit":j=" done":O.crit&&(j+=" crit"),j.length===0&&(j=" task"),O.milestone&&(j=" milestone "+j),O.vert&&(j=" vert "+j),j+=K,j+=" "+U,z+j}),E.append("text").attr("id",function(O){return t+"-"+O.id+"-text"}).text(function(O){return O.task}).attr("font-size",n.fontSize).attr("x",function(O){let z=x(O.startTime),U=x(O.renderEndTime||O.endTime);if(O.milestone&&(z+=.5*(x(O.endTime)-x(O.startTime))-.5*A,U=z+A),O.vert)return x(O.startTime)+F;let K=this.getBBox().width;return K>U-z?U+K+1.5*n.leftPadding>R?z+F-5:U+F+5:(U-z)/2+z+F}).attr("y",function(O,z){return O.vert?n.gridLineStartPadding+d.length*(n.barHeight+n.barGap)+60:(z=O.order,z*G+n.barHeight/2+(n.fontSize/2-2)+P)}).attr("text-height",A).attr("class",function(O){let z=x(O.startTime),U=x(O.endTime);O.milestone&&(U=z+A);let K=this.getBBox().width,j="";O.classes.length>0&&(j=O.classes.join(" "));let ae=0;for(let[de,le]of f.entries())O.type===le&&(ae=de%n.numberSectionStyles);let X="";return O.active&&(O.crit?X="activeCritText"+ae:X="activeText"+ae),O.done?O.crit?X=X+" doneCritText"+ae:X=X+" doneText"+ae:O.crit&&(X=X+" critText"+ae),O.milestone&&(X+=" milestoneText"),O.vert&&(X+=" vertText"),K>U-z?U+K+1.5*n.leftPadding>R?j+" taskTextOutsideLeft taskTextOutside"+ae+" "+X:j+" taskTextOutsideRight taskTextOutside"+ae+" "+X+" width-"+K:j+" taskText taskText"+ae+" "+X+" width-"+K}),J().securityLevel==="sandbox"){let O;O=Se("#i"+t);let z=O.nodes()[0].contentDocument;E.filter(function(U){return M.has(U.id)}).each(function(U){var K=z.querySelector("#"+CSS.escape(t+"-"+U.id)),j=z.querySelector("#"+CSS.escape(t+"-"+U.id+"-text"));let ae=K.parentNode;var X=z.createElement("a");X.setAttribute("xlink:href",M.get(U.id)),X.setAttribute("target","_top"),ae.appendChild(X),X.appendChild(K),X.appendChild(j)})}}a(k,"drawRects");function C(B,G,P,F,A,D,R,N){if(R.length===0&&N.length===0)return;let $,E;for(let{startTime:K,endTime:j}of D)($===void 0||K<$)&&($=K),(E===void 0||j>E)&&(E=j);if(!$||!E)return;if((0,Om.default)(E).diff((0,Om.default)($),"year")>5){W.warn("The difference between the min and max time is more than 5 years. This will cause performance issues. Skipping drawing exclude days.");return}let M=i.db.getDateFormat(),V=[],O=null,z=(0,Om.default)($);for(;z.valueOf()<=E;)i.db.isInvalidDate(z,M,R,N)?O?O.end=z:O={start:z,end:z}:O&&(V.push(O),O=null),z=z.add(1,"d");g.append("g").selectAll("rect").data(V).enter().append("rect").attr("id",K=>t+"-exclude-"+K.start.format("YYYY-MM-DD")).attr("x",K=>x(K.start.startOf("day"))+P).attr("y",n.gridLineStartPadding).attr("width",K=>x(K.end.endOf("day"))-x(K.start.startOf("day"))).attr("height",A-G-n.gridLineStartPadding).attr("transform-origin",function(K,j){return(x(K.start)+P+.5*(x(K.end)-x(K.start))).toString()+"px "+(j*B+.5*A).toString()+"px"}).attr("class","exclude-range")}a(C,"drawExcludeDays");function S(B,G,P,F){if(P<=0||B>G)return 1/0;let A=G-B,D=Om.default.duration({[F??"day"]:P}).asMilliseconds();return D<=0?1/0:Math.ceil(A/D)}a(S,"getEstimatedTickCount");function w(B,G,P,F){let A=i.db.getDateFormat(),D=i.db.getAxisFormat(),R;D?R=D:A==="D"?R="%d":R=n.axisFormat??"%Y-%m-%d";let N=VE(x).tickSize(-F+G+n.gridLineStartPadding).tickFormat(yh(R)),E=/^([1-9]\d*)(millisecond|second|minute|hour|day|week|month)$/.exec(i.db.getTickInterval()||n.tickInterval);if(E!==null){let M=parseInt(E[1],10);if(isNaN(M)||M<=0)W.warn(`Invalid tick interval value: "${E[1]}". Skipping custom tick interval.`);else{let V=E[2],O=i.db.getWeekday()||n.weekday,z=x.domain(),U=z[0],K=z[1],j=S(U,K,M,V);if(j>tP)W.warn(`The tick interval "${M}${V}" would generate ${j} ticks, which exceeds the maximum allowed (${tP}). This may indicate an invalid date or time range. Skipping custom tick interval.`);else switch(V){case"millisecond":N.ticks(yo.every(M));break;case"second":N.ticks(Ca.every(M));break;case"minute":N.ticks(ml.every(M));break;case"hour":N.ticks(gl.every(M));break;case"day":N.ticks(Ka.every(M));break;case"week":N.ticks(_ge[O].every(M));break;case"month":N.ticks(yl.every(M));break}}}if(g.append("g").attr("class","grid").attr("transform","translate("+B+", "+(F-50)+")").call(N).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10).attr("dy","1em"),i.db.topAxisEnabled()||n.topAxis){let M=FE(x).tickSize(-F+G+n.gridLineStartPadding).tickFormat(yh(R));if(E!==null){let V=parseInt(E[1],10);if(isNaN(V)||V<=0)W.warn(`Invalid tick interval value: "${E[1]}". Skipping custom tick interval.`);else{let O=E[2],z=i.db.getWeekday()||n.weekday,U=x.domain(),K=U[0],j=U[1];if(S(K,j,V,O)<=tP)switch(O){case"millisecond":M.ticks(yo.every(V));break;case"second":M.ticks(Ca.every(V));break;case"minute":M.ticks(ml.every(V));break;case"hour":M.ticks(gl.every(V));break;case"day":M.ticks(Ka.every(V));break;case"week":M.ticks(_ge[z].every(V));break;case"month":M.ticks(yl.every(V));break}}}g.append("g").attr("class","grid").attr("transform","translate("+B+", "+G+")").call(M).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10)}}a(w,"makeGrid");function _(B,G){let P=0,F=Object.keys(p).map(A=>[A,p[A]]);g.append("g").selectAll("text").data(F).enter().append(function(A){let D=A[0].split(He.lineBreakRegex),R=-(D.length-1)/2,N=u.createElementNS("http://www.w3.org/2000/svg","text");N.setAttribute("dy",R+"em");for(let[$,E]of D.entries()){let M=u.createElementNS("http://www.w3.org/2000/svg","tspan");M.setAttribute("alignment-baseline","central"),M.setAttribute("x","10"),$>0&&M.setAttribute("dy","1em"),M.textContent=E,N.appendChild(M)}return N}).attr("x",10).attr("y",function(A,D){if(D>0)for(let R=0;R<D;R++)return P+=F[D-1][1],A[1]*B/2+P*B+G;else return A[1]*B/2+G}).attr("font-size",n.sectionFontSize).attr("class",function(A){for(let[D,R]of f.entries())if(A[0]===R)return"sectionTitle sectionTitle"+D%n.numberSectionStyles;return"sectionTitle"})}a(_,"vertLabels");function L(B,G,P,F){let A=i.db.getTodayMarker();if(A==="off")return;let D=g.append("g").attr("class","today"),R=new Date,N=D.append("line");N.attr("x1",x(R)+B).attr("x2",x(R)+B).attr("y1",n.titleTopMargin).attr("y2",F-n.titleTopMargin).attr("class","today"),A!==""&&N.attr("style",A.replace(/,/g,";"))}a(L,"drawToday");function I(B){let G={},P=[];for(let F=0,A=B.length;F<A;++F)Object.prototype.hasOwnProperty.call(G,B[F])||(G[B[F]]=!0,P.push(B[F]));return P}a(I,"checkUnique")},"draw"),Ege={setConf:$Qe,draw:VQe}});var GQe,Rge,Lge=v(()=>{"use strict";GQe=a(e=>`
.mermaid-main-font {
font-family: ${e.fontFamily};
}
.exclude-range {
fill: ${e.excludeBkgColor};
}
.section {
stroke: none;
opacity: 0.2;
}
.section0 {
fill: ${e.sectionBkgColor};
}
.section2 {
fill: ${e.sectionBkgColor2};
}
.section1,
.section3 {
fill: ${e.altSectionBkgColor};
opacity: 0.2;
}
.sectionTitle0 {
fill: ${e.titleColor};
}
.sectionTitle1 {
fill: ${e.titleColor};
}
.sectionTitle2 {
fill: ${e.titleColor};
}
.sectionTitle3 {
fill: ${e.titleColor};
}
.sectionTitle {
text-anchor: start;
font-family: ${e.fontFamily};
}
/* Grid and axis */
.grid .tick {
stroke: ${e.gridColor};
opacity: 0.8;
shape-rendering: crispEdges;
}
.grid .tick text {
font-family: ${e.fontFamily};
fill: ${e.textColor};
}
.grid path {
stroke-width: 0;
}
/* Today line */
.today {
fill: none;
stroke: ${e.todayLineColor};
stroke-width: 2px;
}
/* Task styling */
/* Default task */
.task {
stroke-width: 2;
}
.taskText {
text-anchor: middle;
font-family: ${e.fontFamily};
}
.taskTextOutsideRight {
fill: ${e.taskTextDarkColor};
text-anchor: start;
font-family: ${e.fontFamily};
}
.taskTextOutsideLeft {
fill: ${e.taskTextDarkColor};
text-anchor: end;
}
/* Special case clickable */
.task.clickable {
cursor: pointer;
}
.taskText.clickable {
cursor: pointer;
fill: ${e.taskTextClickableColor} !important;
font-weight: bold;
}
.taskTextOutsideLeft.clickable {
cursor: pointer;
fill: ${e.taskTextClickableColor} !important;
font-weight: bold;
}
.taskTextOutsideRight.clickable {
cursor: pointer;
fill: ${e.taskTextClickableColor} !important;
font-weight: bold;
}
/* Specific task settings for the sections*/
.taskText0,
.taskText1,
.taskText2,
.taskText3 {
fill: ${e.taskTextColor};
}
.task0,
.task1,
.task2,
.task3 {
fill: ${e.taskBkgColor};
stroke: ${e.taskBorderColor};
}
.taskTextOutside0,
.taskTextOutside2
{
fill: ${e.taskTextOutsideColor};
}
.taskTextOutside1,
.taskTextOutside3 {
fill: ${e.taskTextOutsideColor};
}
/* Active task */
.active0,
.active1,
.active2,
.active3 {
fill: ${e.activeTaskBkgColor};
stroke: ${e.activeTaskBorderColor};
}
.activeText0,
.activeText1,
.activeText2,
.activeText3 {
fill: ${e.taskTextDarkColor} !important;
}
/* Completed task */
.done0,
.done1,
.done2,
.done3 {
stroke: ${e.doneTaskBorderColor};
fill: ${e.doneTaskBkgColor};
stroke-width: 2;
}
.doneText0,
.doneText1,
.doneText2,
.doneText3 {
fill: ${e.taskTextDarkColor} !important;
}
/* Done task text displayed outside the bar sits against the diagram background,
not against the done-task bar, so it must use the outside/contrast color. */
.doneText0.taskTextOutsideLeft,
.doneText0.taskTextOutsideRight,
.doneText1.taskTextOutsideLeft,
.doneText1.taskTextOutsideRight,
.doneText2.taskTextOutsideLeft,
.doneText2.taskTextOutsideRight,
.doneText3.taskTextOutsideLeft,
.doneText3.taskTextOutsideRight {
fill: ${e.taskTextOutsideColor} !important;
}
/* Tasks on the critical line */
.crit0,
.crit1,
.crit2,
.crit3 {
stroke: ${e.critBorderColor};
fill: ${e.critBkgColor};
stroke-width: 2;
}
.activeCrit0,
.activeCrit1,
.activeCrit2,
.activeCrit3 {
stroke: ${e.critBorderColor};
fill: ${e.activeTaskBkgColor};
stroke-width: 2;
}
.doneCrit0,
.doneCrit1,
.doneCrit2,
.doneCrit3 {
stroke: ${e.critBorderColor};
fill: ${e.doneTaskBkgColor};
stroke-width: 2;
cursor: pointer;
shape-rendering: crispEdges;
}
.milestone {
transform: rotate(45deg) scale(0.8,0.8);
}
.milestoneText {
font-style: italic;
}
.doneCritText0,
.doneCritText1,
.doneCritText2,
.doneCritText3 {
fill: ${e.taskTextDarkColor} !important;
}
/* Done-crit task text outside the bar \u2014 same reasoning as doneText above. */
.doneCritText0.taskTextOutsideLeft,
.doneCritText0.taskTextOutsideRight,
.doneCritText1.taskTextOutsideLeft,
.doneCritText1.taskTextOutsideRight,
.doneCritText2.taskTextOutsideLeft,
.doneCritText2.taskTextOutsideRight,
.doneCritText3.taskTextOutsideLeft,
.doneCritText3.taskTextOutsideRight {
fill: ${e.taskTextOutsideColor} !important;
}
.vert {
stroke: ${e.vertLineColor};
}
.vertText {
font-size: 15px;
text-anchor: middle;
fill: ${e.vertLineColor} !important;
}
.activeCritText0,
.activeCritText1,
.activeCritText2,
.activeCritText3 {
fill: ${e.taskTextDarkColor} !important;
}
.titleText {
text-anchor: middle;
font-size: 18px;
fill: ${e.titleColor||e.textColor};
font-family: ${e.fontFamily};
}
`,"getStyles"),Rge=GQe});var Dge={};tr(Dge,{diagram:()=>WQe});var WQe,Ige=v(()=>{"use strict";ige();vge();Age();Lge();WQe={parser:rge,db:kge,renderer:Ege,styles:Rge}});var Oge,Pge=v(()=>{"use strict";to();nt();Oge={parse:a(async e=>{let t=await zi("info",e);W.debug(t)},"parse")}});var UQe,HQe,Bge,$ge=v(()=>{"use strict";UQe={version:"11.15.0-tiny"},HQe=a(()=>UQe.version,"getVersion"),Bge={getVersion:HQe}});var Yr,ga=v(()=>{"use strict";sr();bt();Yr=a(e=>{let{securityLevel:t}=J(),r=Se("body");if(t==="sandbox"){let s=Se(`#i${e}`).node()?.contentDocument??document;r=Se(s.body)}return r.select(`#${e}`)},"selectSvgElement")});var YQe,Fge,Vge=v(()=>{"use strict";nt();ga();Xr();YQe=a((e,t,r)=>{W.debug(`rendering info diagram
`+e);let i=Yr(t);fr(i,100,400,!0),i.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"),Fge={draw:YQe}});var Gge={};tr(Gge,{diagram:()=>KQe});var KQe,Wge=v(()=>{"use strict";Pge();$ge();Vge();KQe={parser:Oge,db:Bge,renderer:Fge}});var jge,rP,u_,iP,ZQe,JQe,eZe,tZe,rZe,iZe,nZe,h_,nP=v(()=>{"use strict";nt();zr();gn();jge=Ut.pie,rP={sections:new Map,showData:!1,config:jge},u_=rP.sections,iP=rP.showData,ZQe=structuredClone(jge),JQe=a(()=>structuredClone(ZQe),"getConfig"),eZe=a(()=>{u_=new Map,iP=rP.showData,Ht()},"clear"),tZe=a(({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.`);u_.has(e)||(u_.set(e,t),W.debug(`added new section: ${e}, with value: ${t}`))},"addSection"),rZe=a(()=>u_,"getSections"),iZe=a(e=>{iP=e},"setShowData"),nZe=a(()=>iP,"getShowData"),h_={getConfig:JQe,clear:eZe,setDiagramTitle:ir,getDiagramTitle:er,setAccTitle:Yt,getAccTitle:Qt,setAccDescription:Zt,getAccDescription:Jt,addSection:tZe,getSections:rZe,setShowData:iZe,getShowData:nZe}});var aZe,Uge,Hge=v(()=>{"use strict";to();nt();Jl();nP();aZe=a((e,t)=>{Sn(e,t),t.setShowData(e.showData),e.sections.map(t.addSection)},"populateDb"),Uge={parse:a(async e=>{let t=await zi("pie",e);W.debug(t),aZe(t,h_)},"parse")}});var sZe,Yge,Kge=v(()=>{"use strict";sZe=a(e=>`
.pieCircle{
stroke: ${e.pieStrokeColor};
stroke-width : ${e.pieStrokeWidth};
opacity : ${e.pieOpacity};
}
.pieOuterCircle{
stroke: ${e.pieOuterStrokeColor};
stroke-width: ${e.pieOuterStrokeWidth};
fill: none;
}
.pieTitleText {
text-anchor: middle;
font-size: ${e.pieTitleTextSize};
fill: ${e.pieTitleTextColor};
font-family: ${e.fontFamily};
}
.slice {
font-family: ${e.fontFamily};
fill: ${e.pieSectionTextColor};
font-size:${e.pieSectionTextSize};
// fill: white;
}
.legend text {
fill: ${e.pieLegendTextColor};
font-family: ${e.fontFamily};
font-size: ${e.pieLegendTextSize};
}
`,"getStyles"),Yge=sZe});var oZe,lZe,Xge,Qge=v(()=>{"use strict";sr();bt();nt();ga();Xr();Et();oZe=a(e=>{let t=[...e.values()].reduce((n,s)=>n+s,0),r=[...e.entries()].map(([n,s])=>({label:n,value:s})).filter(n=>n.value/t*100>=1);return c2().value(n=>n.value).sort(null)(r)},"createPieArcs"),lZe=a((e,t,r,i)=>{W.debug(`rendering pie chart
`+e);let n=i.db,s=J(),o=xr(n.getConfig(),s.pie),l=40,u=18,h=4,d=450,f=d,p=Yr(t),m=p.append("g");m.attr("transform","translate("+f/2+","+d/2+")");let{themeVariables:g}=s,[x]=Qn(g.pieOuterStrokeWidth);x??=2;let b=o.textPosition,T=Math.min(f,d)/2-l,k=Ms().innerRadius(0).outerRadius(T),C=Ms().innerRadius(T*b).outerRadius(T*b);m.append("circle").attr("cx",0).attr("cy",0).attr("r",T+x/2).attr("class","pieOuterCircle");let S=n.getSections(),w=oZe(S),_=[g.pie1,g.pie2,g.pie3,g.pie4,g.pie5,g.pie6,g.pie7,g.pie8,g.pie9,g.pie10,g.pie11,g.pie12],L=0;S.forEach(O=>{L+=O});let I=w.filter(O=>(O.data.value/L*100).toFixed(0)!=="0"),B=ka(_).domain([...S.keys()]);m.selectAll("mySlices").data(I).enter().append("path").attr("d",k).attr("fill",O=>B(O.data.label)).attr("class","pieCircle"),m.selectAll("mySlices").data(I).enter().append("text").text(O=>(O.data.value/L*100).toFixed(0)+"%").attr("transform",O=>"translate("+C.centroid(O)+")").style("text-anchor","middle").attr("class","slice");let G=m.append("text").text(n.getDiagramTitle()).attr("x",0).attr("y",-(d-50)/2).attr("class","pieTitleText"),P=[...S.entries()].map(([O,z])=>({label:O,value:z})),F=m.selectAll(".legend").data(P).enter().append("g").attr("class","legend").attr("transform",(O,z)=>{let U=u+h,K=U*P.length/2,j=12*u,ae=z*U-K;return"translate("+j+","+ae+")"});F.append("rect").attr("width",u).attr("height",u).style("fill",O=>B(O.label)).style("stroke",O=>B(O.label)),F.append("text").attr("x",u+h).attr("y",u-h).text(O=>n.getShowData()?`${O.label} [${O.value}]`:O.label);let A=Math.max(...F.selectAll("text").nodes().map(O=>O?.getBoundingClientRect().width??0)),D=f+l+u+h+A,R=G.node()?.getBoundingClientRect().width??0,N=f/2-R/2,$=f/2+R/2,E=Math.min(0,N),V=Math.max(D,$)-E;p.attr("viewBox",`${E} 0 ${V} ${d}`),fr(p,d,V,o.useMaxWidth)},"draw"),Xge={draw:lZe}});var Zge={};tr(Zge,{diagram:()=>cZe});var cZe,Jge=v(()=>{"use strict";Hge();nP();Kge();Qge();cZe={parser:Uge,db:h_,renderer:Xge,styles:Yge}});var aP,tye,rye=v(()=>{"use strict";aP=(function(){var e=a(function(Q,Me,Y,dt){for(Y=Y||{},dt=Q.length;dt--;Y[Q[dt]]=Me);return Y},"o"),t=[1,3],r=[1,4],i=[1,5],n=[1,6],s=[1,7],o=[1,4,5,10,12,13,14,15,18,25,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],l=[1,4,5,10,12,13,14,15,18,25,28,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],u=[55,56,57],h=[2,36],d=[1,37],f=[1,36],p=[1,38],m=[1,35],g=[1,43],x=[1,41],b=[1,45],T=[1,14],k=[1,23],C=[1,18],S=[1,19],w=[1,20],_=[1,21],L=[1,22],I=[1,24],B=[1,25],G=[1,26],P=[1,27],F=[1,28],A=[1,29],D=[1,32],R=[1,33],N=[1,34],$=[1,39],E=[1,40],M=[1,42],V=[1,44],O=[1,63],z=[1,62],U=[4,5,8,10,12,13,14,15,18,44,47,49,55,56,57,63,64,65,66,67],K=[1,66],j=[1,67],ae=[1,68],X=[1,69],de=[1,70],le=[1,71],ge=[1,72],he=[1,73],te=[1,74],Le=[1,75],xe=[1,76],ye=[1,77],be=[4,5,6,7,8,9,10,11,12,13,14,15,18],Ce=[1,91],Oe=[1,92],Ae=[1,93],st=[1,100],ce=[1,94],Mt=[1,97],fe=[1,95],Ue=[1,96],Je=[1,98],ot=[1,99],Ne=[1,103],ze=[10,55,56,57],oe=[4,5,6,8,10,11,13,17,18,19,20,55,56,57],_e={trace:a(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],[58,1],[59,1],[59,1],[59,1]],performAction:a(function(Me,Y,dt,Ge,ft,Be,tt){var Ie=Be.length-1;switch(ft){case 23:this.$=Be[Ie];break;case 24:this.$=Be[Ie-1]+""+Be[Ie];break;case 26:this.$=Be[Ie-1]+Be[Ie];break;case 27:this.$=[Be[Ie].trim()];break;case 28:Be[Ie-2].push(Be[Ie].trim()),this.$=Be[Ie-2];break;case 29:this.$=Be[Ie-4],Ge.addClass(Be[Ie-2],Be[Ie]);break;case 37:this.$=[];break;case 42:this.$=Be[Ie].trim(),Ge.setDiagramTitle(this.$);break;case 43:this.$=Be[Ie].trim(),Ge.setAccTitle(this.$);break;case 44:case 45:this.$=Be[Ie].trim(),Ge.setAccDescription(this.$);break;case 46:Ge.addSection(Be[Ie].substr(8)),this.$=Be[Ie].substr(8);break;case 47:Ge.addPoint(Be[Ie-3],"",Be[Ie-1],Be[Ie],[]);break;case 48:Ge.addPoint(Be[Ie-4],Be[Ie-3],Be[Ie-1],Be[Ie],[]);break;case 49:Ge.addPoint(Be[Ie-4],"",Be[Ie-2],Be[Ie-1],Be[Ie]);break;case 50:Ge.addPoint(Be[Ie-5],Be[Ie-4],Be[Ie-2],Be[Ie-1],Be[Ie]);break;case 51:Ge.setXAxisLeftText(Be[Ie-2]),Ge.setXAxisRightText(Be[Ie]);break;case 52:Be[Ie-1].text+=" \u27F6 ",Ge.setXAxisLeftText(Be[Ie-1]);break;case 53:Ge.setXAxisLeftText(Be[Ie]);break;case 54:Ge.setYAxisBottomText(Be[Ie-2]),Ge.setYAxisTopText(Be[Ie]);break;case 55:Be[Ie-1].text+=" \u27F6 ",Ge.setYAxisBottomText(Be[Ie-1]);break;case 56:Ge.setYAxisBottomText(Be[Ie]);break;case 57:Ge.setQuadrant1Text(Be[Ie]);break;case 58:Ge.setQuadrant2Text(Be[Ie]);break;case 59:Ge.setQuadrant3Text(Be[Ie]);break;case 60:Ge.setQuadrant4Text(Be[Ie]);break;case 64:this.$={text:Be[Ie],type:"text"};break;case 65:this.$={text:Be[Ie-1].text+""+Be[Ie],type:Be[Ie-1].type};break;case 66:this.$={text:Be[Ie],type:"text"};break;case 67:this.$={text:Be[Ie],type:"markdown"};break;case 68:this.$=Be[Ie];break;case 69:this.$=Be[Ie-1]+""+Be[Ie];break}},"anonymous"),table:[{18:t,26:1,27:2,28:r,55:i,56:n,57:s},{1:[3]},{18:t,26:8,27:2,28:r,55:i,56:n,57:s},{18:t,26:9,27:2,28:r,55:i,56:n,57:s},e(o,[2,33],{29:10}),e(l,[2,61]),e(l,[2,62]),e(l,[2,63]),{1:[2,30]},{1:[2,31]},e(u,h,{30:11,31:12,24:13,32:15,33:16,34:17,43:30,58:31,1:[2,32],4:d,5:f,10:p,12:m,13:g,14:x,15:b,18:T,25:k,35:C,37:S,39:w,41:_,42:L,48:I,50:B,51:G,52:P,53:F,54:A,60:D,61:R,63:N,64:$,65:E,66:M,67:V}),e(o,[2,34]),{27:46,55:i,56:n,57:s},e(u,[2,37]),e(u,h,{24:13,32:15,33:16,34:17,43:30,58:31,31:47,4:d,5:f,10:p,12:m,13:g,14:x,15:b,18:T,25:k,35:C,37:S,39:w,41:_,42:L,48:I,50:B,51:G,52:P,53:F,54:A,60:D,61:R,63:N,64:$,65:E,66:M,67:V}),e(u,[2,39]),e(u,[2,40]),e(u,[2,41]),{36:[1,48]},{38:[1,49]},{40:[1,50]},e(u,[2,45]),e(u,[2,46]),{18:[1,51]},{4:d,5:f,10:p,12:m,13:g,14:x,15:b,43:52,58:31,60:D,61:R,63:N,64:$,65:E,66:M,67:V},{4:d,5:f,10:p,12:m,13:g,14:x,15:b,43:53,58:31,60:D,61:R,63:N,64:$,65:E,66:M,67:V},{4:d,5:f,10:p,12:m,13:g,14:x,15:b,43:54,58:31,60:D,61:R,63:N,64:$,65:E,66:M,67:V},{4:d,5:f,10:p,12:m,13:g,14:x,15:b,43:55,58:31,60:D,61:R,63:N,64:$,65:E,66:M,67:V},{4:d,5:f,10:p,12:m,13:g,14:x,15:b,43:56,58:31,60:D,61:R,63:N,64:$,65:E,66:M,67:V},{4:d,5:f,10:p,12:m,13:g,14:x,15:b,43:57,58:31,60:D,61:R,63:N,64:$,65:E,66:M,67:V},{4:d,5:f,8:O,10:p,12:m,13:g,14:x,15:b,18:z,44:[1,58],47:[1,59],58:61,59:60,63:N,64:$,65:E,66:M,67:V},e(U,[2,64]),e(U,[2,66]),e(U,[2,67]),e(U,[2,70]),e(U,[2,71]),e(U,[2,72]),e(U,[2,73]),e(U,[2,74]),e(U,[2,75]),e(U,[2,76]),e(U,[2,77]),e(U,[2,78]),e(U,[2,79]),e(U,[2,80]),e(U,[2,81]),e(o,[2,35]),e(u,[2,38]),e(u,[2,42]),e(u,[2,43]),e(u,[2,44]),{3:65,4:K,5:j,6:ae,7:X,8:de,9:le,10:ge,11:he,12:te,13:Le,14:xe,15:ye,21:64},e(u,[2,53],{59:60,58:61,4:d,5:f,8:O,10:p,12:m,13:g,14:x,15:b,18:z,49:[1,78],63:N,64:$,65:E,66:M,67:V}),e(u,[2,56],{59:60,58:61,4:d,5:f,8:O,10:p,12:m,13:g,14:x,15:b,18:z,49:[1,79],63:N,64:$,65:E,66:M,67:V}),e(u,[2,57],{59:60,58:61,4:d,5:f,8:O,10:p,12:m,13:g,14:x,15:b,18:z,63:N,64:$,65:E,66:M,67:V}),e(u,[2,58],{59:60,58:61,4:d,5:f,8:O,10:p,12:m,13:g,14:x,15:b,18:z,63:N,64:$,65:E,66:M,67:V}),e(u,[2,59],{59:60,58:61,4:d,5:f,8:O,10:p,12:m,13:g,14:x,15:b,18:z,63:N,64:$,65:E,66:M,67:V}),e(u,[2,60],{59:60,58:61,4:d,5:f,8:O,10:p,12:m,13:g,14:x,15:b,18:z,63:N,64:$,65:E,66:M,67:V}),{45:[1,80]},{44:[1,81]},e(U,[2,65]),e(U,[2,82]),e(U,[2,83]),e(U,[2,84]),{3:83,4:K,5:j,6:ae,7:X,8:de,9:le,10:ge,11:he,12:te,13:Le,14:xe,15:ye,18:[1,82]},e(be,[2,23]),e(be,[2,1]),e(be,[2,2]),e(be,[2,3]),e(be,[2,4]),e(be,[2,5]),e(be,[2,6]),e(be,[2,7]),e(be,[2,8]),e(be,[2,9]),e(be,[2,10]),e(be,[2,11]),e(be,[2,12]),e(u,[2,52],{58:31,43:84,4:d,5:f,10:p,12:m,13:g,14:x,15:b,60:D,61:R,63:N,64:$,65:E,66:M,67:V}),e(u,[2,55],{58:31,43:85,4:d,5:f,10:p,12:m,13:g,14:x,15:b,60:D,61:R,63:N,64:$,65:E,66:M,67:V}),{46:[1,86]},{45:[1,87]},{4:Ce,5:Oe,6:Ae,8:st,11:ce,13:Mt,16:90,17:fe,18:Ue,19:Je,20:ot,22:89,23:88},e(be,[2,24]),e(u,[2,51],{59:60,58:61,4:d,5:f,8:O,10:p,12:m,13:g,14:x,15:b,18:z,63:N,64:$,65:E,66:M,67:V}),e(u,[2,54],{59:60,58:61,4:d,5:f,8:O,10:p,12:m,13:g,14:x,15:b,18:z,63:N,64:$,65:E,66:M,67:V}),e(u,[2,47],{22:89,16:90,23:101,4:Ce,5:Oe,6:Ae,8:st,11:ce,13:Mt,17:fe,18:Ue,19:Je,20:ot}),{46:[1,102]},e(u,[2,29],{10:Ne}),e(ze,[2,27],{16:104,4:Ce,5:Oe,6:Ae,8:st,11:ce,13:Mt,17:fe,18:Ue,19:Je,20:ot}),e(oe,[2,25]),e(oe,[2,13]),e(oe,[2,14]),e(oe,[2,15]),e(oe,[2,16]),e(oe,[2,17]),e(oe,[2,18]),e(oe,[2,19]),e(oe,[2,20]),e(oe,[2,21]),e(oe,[2,22]),e(u,[2,49],{10:Ne}),e(u,[2,48],{22:89,16:90,23:105,4:Ce,5:Oe,6:Ae,8:st,11:ce,13:Mt,17:fe,18:Ue,19:Je,20:ot}),{4:Ce,5:Oe,6:Ae,8:st,11:ce,13:Mt,16:90,17:fe,18:Ue,19:Je,20:ot,22:106},e(oe,[2,26]),e(u,[2,50],{10:Ne}),e(ze,[2,28],{16:104,4:Ce,5:Oe,6:Ae,8:st,11:ce,13:Mt,17:fe,18:Ue,19:Je,20:ot})],defaultActions:{8:[2,30],9:[2,31]},parseError:a(function(Me,Y){if(Y.recoverable)this.trace(Me);else{var dt=new Error(Me);throw dt.hash=Y,dt}},"parseError"),parse:a(function(Me){var Y=this,dt=[0],Ge=[],ft=[null],Be=[],tt=this.table,Ie="",it=0,Ee=0,pt=0,ie=2,$t=1,ue=Be.slice.call(arguments,1),vt=Object.create(this.lexer),Lt={yy:{}};for(var Nr in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Nr)&&(Lt.yy[Nr]=this.yy[Nr]);vt.setInput(Me,Lt.yy),Lt.yy.lexer=vt,Lt.yy.parser=this,typeof vt.yylloc>"u"&&(vt.yylloc={});var gt=vt.yylloc;Be.push(gt);var Pt=vt.options&&vt.options.ranges;typeof Lt.yy.parseError=="function"?this.parseError=Lt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function kt(ne){dt.length=dt.length-2*ne,ft.length=ft.length-ne,Be.length=Be.length-ne}a(kt,"popStack");function H(){var ne;return ne=Ge.pop()||vt.lex()||$t,typeof ne!="number"&&(ne instanceof Array&&(Ge=ne,ne=Ge.pop()),ne=Y.symbols_[ne]||ne),ne}a(H,"lex");for(var at,ut,We,Z,Re,Fe,Ye={},zt,mt,Vt,lr;;){if(We=dt[dt.length-1],this.defaultActions[We]?Z=this.defaultActions[We]:((at===null||typeof at>"u")&&(at=H()),Z=tt[We]&&tt[We][at]),typeof Z>"u"||!Z.length||!Z[0]){var Xe="";lr=[];for(zt in tt[We])this.terminals_[zt]&&zt>ie&&lr.push("'"+this.terminals_[zt]+"'");vt.showPosition?Xe="Parse error on line "+(it+1)+`:
`+vt.showPosition()+`
Expecting `+lr.join(", ")+", got '"+(this.terminals_[at]||at)+"'":Xe="Parse error on line "+(it+1)+": Unexpected "+(at==$t?"end of input":"'"+(this.terminals_[at]||at)+"'"),this.parseError(Xe,{text:vt.match,token:this.terminals_[at]||at,line:vt.yylineno,loc:gt,expected:lr})}if(Z[0]instanceof Array&&Z.length>1)throw new Error("Parse Error: multiple actions possible at state: "+We+", token: "+at);switch(Z[0]){case 1:dt.push(at),ft.push(vt.yytext),Be.push(vt.yylloc),dt.push(Z[1]),at=null,ut?(at=ut,ut=null):(Ee=vt.yyleng,Ie=vt.yytext,it=vt.yylineno,gt=vt.yylloc,pt>0&&pt--);break;case 2:if(mt=this.productions_[Z[1]][1],Ye.$=ft[ft.length-mt],Ye._$={first_line:Be[Be.length-(mt||1)].first_line,last_line:Be[Be.length-1].last_line,first_column:Be[Be.length-(mt||1)].first_column,last_column:Be[Be.length-1].last_column},Pt&&(Ye._$.range=[Be[Be.length-(mt||1)].range[0],Be[Be.length-1].range[1]]),Fe=this.performAction.apply(Ye,[Ie,Ee,it,Lt.yy,Z[1],ft,Be].concat(ue)),typeof Fe<"u")return Fe;mt&&(dt=dt.slice(0,-1*mt*2),ft=ft.slice(0,-1*mt),Be=Be.slice(0,-1*mt)),dt.push(this.productions_[Z[1]][0]),ft.push(Ye.$),Be.push(Ye._$),Vt=tt[dt[dt.length-2]][dt[dt.length-1]],dt.push(Vt);break;case 3:return!0}}return!0},"parse")},re=(function(){var Q={EOF:1,parseError:a(function(Y,dt){if(this.yy.parser)this.yy.parser.parseError(Y,dt);else throw new Error(Y)},"parseError"),setInput:a(function(Me,Y){return this.yy=Y||this.yy||{},this._input=Me,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:a(function(){var Me=this._input[0];this.yytext+=Me,this.yyleng++,this.offset++,this.match+=Me,this.matched+=Me;var Y=Me.match(/(?:\r\n?|\n).*/g);return Y?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),Me},"input"),unput:a(function(Me){var Y=Me.length,dt=Me.split(/(?:\r\n?|\n)/g);this._input=Me+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-Y),this.offset-=Y;var Ge=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),dt.length-1&&(this.yylineno-=dt.length-1);var ft=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:dt?(dt.length===Ge.length?this.yylloc.first_column:0)+Ge[Ge.length-dt.length].length-dt[0].length:this.yylloc.first_column-Y},this.options.ranges&&(this.yylloc.range=[ft[0],ft[0]+this.yyleng-Y]),this.yyleng=this.yytext.length,this},"unput"),more:a(function(){return this._more=!0,this},"more"),reject:a(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:a(function(Me){this.unput(this.match.slice(Me))},"less"),pastInput:a(function(){var Me=this.matched.substr(0,this.matched.length-this.match.length);return(Me.length>20?"...":"")+Me.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:a(function(){var Me=this.match;return Me.length<20&&(Me+=this._input.substr(0,20-Me.length)),(Me.substr(0,20)+(Me.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:a(function(){var Me=this.pastInput(),Y=new Array(Me.length+1).join("-");return Me+this.upcomingInput()+`
`+Y+"^"},"showPosition"),test_match:a(function(Me,Y){var dt,Ge,ft;if(this.options.backtrack_lexer&&(ft={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&&(ft.yylloc.range=this.yylloc.range.slice(0))),Ge=Me[0].match(/(?:\r\n?|\n).*/g),Ge&&(this.yylineno+=Ge.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Ge?Ge[Ge.length-1].length-Ge[Ge.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+Me[0].length},this.yytext+=Me[0],this.match+=Me[0],this.matches=Me,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(Me[0].length),this.matched+=Me[0],dt=this.performAction.call(this,this.yy,this,Y,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),dt)return dt;if(this._backtrack){for(var Be in ft)this[Be]=ft[Be];return!1}return!1},"test_match"),next:a(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var Me,Y,dt,Ge;this._more||(this.yytext="",this.match="");for(var ft=this._currentRules(),Be=0;Be<ft.length;Be++)if(dt=this._input.match(this.rules[ft[Be]]),dt&&(!Y||dt[0].length>Y[0].length)){if(Y=dt,Ge=Be,this.options.backtrack_lexer){if(Me=this.test_match(dt,ft[Be]),Me!==!1)return Me;if(this._backtrack){Y=!1;continue}else return!1}else if(!this.options.flex)break}return Y?(Me=this.test_match(Y,ft[Ge]),Me!==!1?Me:!1):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:a(function(){var Y=this.next();return Y||this.lex()},"lex"),begin:a(function(Y){this.conditionStack.push(Y)},"begin"),popState:a(function(){var Y=this.conditionStack.length-1;return Y>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:a(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:a(function(Y){return Y=this.conditionStack.length-1-Math.abs(Y||0),Y>=0?this.conditionStack[Y]:"INITIAL"},"topState"),pushState:a(function(Y){this.begin(Y)},"pushState"),stateStackSize:a(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:a(function(Y,dt,Ge,ft){var Be=ft;switch(Ge){case 0:break;case 1:break;case 2:return 55;case 3:break;case 4:return this.begin("title"),35;break;case 5:return this.popState(),"title_value";break;case 6:return this.begin("acc_title"),37;break;case 7:return this.popState(),"acc_title_value";break;case 8:return this.begin("acc_descr"),39;break;case 9:return this.popState(),"acc_descr_value";break;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;break;case 29:return this.begin("point_start"),44;break;case 30:return this.begin("point_x"),45;break;case 31:this.popState();break;case 32:this.popState(),this.begin("point_y");break;case 33:return this.popState(),46;break;case 34:return 28;case 35:return 4;case 36:return 15;case 37:return 11;case 38:return 64;case 39:return 10;case 40:return 65;case 41:return 65;case 42:return 14;case 43:return 13;case 44:return 67;case 45:return 66;case 46:return 12;case 47:return 8;case 48:return 5;case 49:return 18;case 50:return 56;case 51:return 63;case 52: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,/^(?:[^\x00-\x7F]+)/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,52],inclusive:!0}}};return Q})();_e.lexer=re;function Ke(){this.yy={}}return a(Ke,"Parser"),Ke.prototype=_e,_e.Parser=Ke,new Ke})();aP.parser=aP;tye=aP});var Hn,d_,iye=v(()=>{"use strict";sr();gn();nt();Yu();Hn=ja(),d_=class{constructor(){this.classes=new Map;this.config=this.getDefaultConfig(),this.themeConfig=this.getDefaultThemeConfig(),this.data=this.getDefaultData()}static{a(this,"QuadrantBuilder")}getDefaultData(){return{titleText:"",quadrant1Text:"",quadrant2Text:"",quadrant3Text:"",quadrant4Text:"",xAxisLeftText:"",xAxisRightText:"",yAxisBottomText:"",yAxisTopText:"",points:[]}}getDefaultConfig(){return{showXAxis:!0,showYAxis:!0,showTitle:!0,chartHeight:Ut.quadrantChart?.chartWidth||500,chartWidth:Ut.quadrantChart?.chartHeight||500,titlePadding:Ut.quadrantChart?.titlePadding||10,titleFontSize:Ut.quadrantChart?.titleFontSize||20,quadrantPadding:Ut.quadrantChart?.quadrantPadding||5,xAxisLabelPadding:Ut.quadrantChart?.xAxisLabelPadding||5,yAxisLabelPadding:Ut.quadrantChart?.yAxisLabelPadding||5,xAxisLabelFontSize:Ut.quadrantChart?.xAxisLabelFontSize||16,yAxisLabelFontSize:Ut.quadrantChart?.yAxisLabelFontSize||16,quadrantLabelFontSize:Ut.quadrantChart?.quadrantLabelFontSize||16,quadrantTextTopPadding:Ut.quadrantChart?.quadrantTextTopPadding||5,pointTextPadding:Ut.quadrantChart?.pointTextPadding||5,pointLabelFontSize:Ut.quadrantChart?.pointLabelFontSize||12,pointRadius:Ut.quadrantChart?.pointRadius||5,xAxisPosition:Ut.quadrantChart?.xAxisPosition||"top",yAxisPosition:Ut.quadrantChart?.yAxisPosition||"left",quadrantInternalBorderStrokeWidth:Ut.quadrantChart?.quadrantInternalBorderStrokeWidth||1,quadrantExternalBorderStrokeWidth:Ut.quadrantChart?.quadrantExternalBorderStrokeWidth||2}}getDefaultThemeConfig(){return{quadrant1Fill:Hn.quadrant1Fill,quadrant2Fill:Hn.quadrant2Fill,quadrant3Fill:Hn.quadrant3Fill,quadrant4Fill:Hn.quadrant4Fill,quadrant1TextFill:Hn.quadrant1TextFill,quadrant2TextFill:Hn.quadrant2TextFill,quadrant3TextFill:Hn.quadrant3TextFill,quadrant4TextFill:Hn.quadrant4TextFill,quadrantPointFill:Hn.quadrantPointFill,quadrantPointTextFill:Hn.quadrantPointTextFill,quadrantXAxisTextFill:Hn.quadrantXAxisTextFill,quadrantYAxisTextFill:Hn.quadrantYAxisTextFill,quadrantTitleFill:Hn.quadrantTitleFill,quadrantInternalBorderStrokeFill:Hn.quadrantInternalBorderStrokeFill,quadrantExternalBorderStrokeFill:Hn.quadrantExternalBorderStrokeFill}}clear(){this.config=this.getDefaultConfig(),this.themeConfig=this.getDefaultThemeConfig(),this.data=this.getDefaultData(),this.classes=new Map,W.info("clear called")}setData(t){this.data={...this.data,...t}}addPoints(t){this.data.points=[...t,...this.data.points]}addClass(t,r){this.classes.set(t,r)}setConfig(t){W.trace("setConfig called with: ",t),this.config={...this.config,...t}}setThemeConfig(t){W.trace("setThemeConfig called with: ",t),this.themeConfig={...this.themeConfig,...t}}calculateSpace(t,r,i,n){let s=this.config.xAxisLabelPadding*2+this.config.xAxisLabelFontSize,o={top:t==="top"&&r?s:0,bottom:t==="bottom"&&r?s:0},l=this.config.yAxisLabelPadding*2+this.config.yAxisLabelFontSize,u={left:this.config.yAxisPosition==="left"&&i?l:0,right:this.config.yAxisPosition==="right"&&i?l:0},h=this.config.titleFontSize+this.config.titlePadding*2,d={top:n?h:0},f=this.config.quadrantPadding+u.left,p=this.config.quadrantPadding+o.top+d.top,m=this.config.chartWidth-this.config.quadrantPadding*2-u.left-u.right,g=this.config.chartHeight-this.config.quadrantPadding*2-o.top-o.bottom-d.top,x=m/2,b=g/2;return{xAxisSpace:o,yAxisSpace:u,titleSpace:d,quadrantSpace:{quadrantLeft:f,quadrantTop:p,quadrantWidth:m,quadrantHalfWidth:x,quadrantHeight:g,quadrantHalfHeight:b}}}getAxisLabels(t,r,i,n){let{quadrantSpace:s,titleSpace:o}=n,{quadrantHalfHeight:l,quadrantHeight:u,quadrantLeft:h,quadrantHalfWidth:d,quadrantTop:f,quadrantWidth:p}=s,m=!!this.data.xAxisRightText,g=!!this.data.yAxisTopText,x=[];return this.data.xAxisLeftText&&r&&x.push({text:this.data.xAxisLeftText,fill:this.themeConfig.quadrantXAxisTextFill,x:h+(m?d/2:0),y:t==="top"?this.config.xAxisLabelPadding+o.top:this.config.xAxisLabelPadding+f+u+this.config.quadrantPadding,fontSize:this.config.xAxisLabelFontSize,verticalPos:m?"center":"left",horizontalPos:"top",rotation:0}),this.data.xAxisRightText&&r&&x.push({text:this.data.xAxisRightText,fill:this.themeConfig.quadrantXAxisTextFill,x:h+d+(m?d/2:0),y:t==="top"?this.config.xAxisLabelPadding+o.top:this.config.xAxisLabelPadding+f+u+this.config.quadrantPadding,fontSize:this.config.xAxisLabelFontSize,verticalPos:m?"center":"left",horizontalPos:"top",rotation:0}),this.data.yAxisBottomText&&i&&x.push({text:this.data.yAxisBottomText,fill:this.themeConfig.quadrantYAxisTextFill,x:this.config.yAxisPosition==="left"?this.config.yAxisLabelPadding:this.config.yAxisLabelPadding+h+p+this.config.quadrantPadding,y:f+u-(g?l/2:0),fontSize:this.config.yAxisLabelFontSize,verticalPos:g?"center":"left",horizontalPos:"top",rotation:-90}),this.data.yAxisTopText&&i&&x.push({text:this.data.yAxisTopText,fill:this.themeConfig.quadrantYAxisTextFill,x:this.config.yAxisPosition==="left"?this.config.yAxisLabelPadding:this.config.yAxisLabelPadding+h+p+this.config.quadrantPadding,y:f+l-(g?l/2:0),fontSize:this.config.yAxisLabelFontSize,verticalPos:g?"center":"left",horizontalPos:"top",rotation:-90}),x}getQuadrants(t){let{quadrantSpace:r}=t,{quadrantHalfHeight:i,quadrantLeft:n,quadrantHalfWidth:s,quadrantTop:o}=r,l=[{text:{text:this.data.quadrant1Text,fill:this.themeConfig.quadrant1TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:n+s,y:o,width:s,height:i,fill:this.themeConfig.quadrant1Fill},{text:{text:this.data.quadrant2Text,fill:this.themeConfig.quadrant2TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:n,y:o,width:s,height:i,fill:this.themeConfig.quadrant2Fill},{text:{text:this.data.quadrant3Text,fill:this.themeConfig.quadrant3TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:n,y:o+i,width:s,height:i,fill:this.themeConfig.quadrant3Fill},{text:{text:this.data.quadrant4Text,fill:this.themeConfig.quadrant4TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:n+s,y:o+i,width:s,height:i,fill:this.themeConfig.quadrant4Fill}];for(let u of l)u.text.x=u.x+u.width/2,this.data.points.length===0?(u.text.y=u.y+u.height/2,u.text.horizontalPos="middle"):(u.text.y=u.y+this.config.quadrantTextTopPadding,u.text.horizontalPos="top");return l}getQuadrantPoints(t){let{quadrantSpace:r}=t,{quadrantHeight:i,quadrantLeft:n,quadrantTop:s,quadrantWidth:o}=r,l=Ls().domain([0,1]).range([n,o+n]),u=Ls().domain([0,1]).range([i+s,s]);return this.data.points.map(d=>{let f=this.classes.get(d.className);return f&&(d={...f,...d}),{x:l(d.x),y:u(d.y),fill:d.color??this.themeConfig.quadrantPointFill,radius:d.radius??this.config.pointRadius,text:{text:d.text,fill:this.themeConfig.quadrantPointTextFill,x:l(d.x),y:u(d.y)+this.config.pointTextPadding,verticalPos:"center",horizontalPos:"top",fontSize:this.config.pointLabelFontSize,rotation:0},strokeColor:d.strokeColor??this.themeConfig.quadrantPointFill,strokeWidth:d.strokeWidth??"0px"}})}getBorders(t){let r=this.config.quadrantExternalBorderStrokeWidth/2,{quadrantSpace:i}=t,{quadrantHalfHeight:n,quadrantHeight:s,quadrantLeft:o,quadrantHalfWidth:l,quadrantTop:u,quadrantWidth:h}=i;return[{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:o-r,y1:u,x2:o+h+r,y2:u},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:o+h,y1:u+r,x2:o+h,y2:u+s-r},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:o-r,y1:u+s,x2:o+h+r,y2:u+s},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:o,y1:u+r,x2:o,y2:u+s-r},{strokeFill:this.themeConfig.quadrantInternalBorderStrokeFill,strokeWidth:this.config.quadrantInternalBorderStrokeWidth,x1:o+l,y1:u+r,x2:o+l,y2:u+s-r},{strokeFill:this.themeConfig.quadrantInternalBorderStrokeFill,strokeWidth:this.config.quadrantInternalBorderStrokeWidth,x1:o+r,y1:u+n,x2:o+h-r,y2:u+n}]}getTitle(t){if(t)return{text:this.data.titleText,fill:this.themeConfig.quadrantTitleFill,fontSize:this.config.titleFontSize,horizontalPos:"top",verticalPos:"center",rotation:0,y:this.config.titlePadding,x:this.config.chartWidth/2}}build(){let t=this.config.showXAxis&&!!(this.data.xAxisLeftText||this.data.xAxisRightText),r=this.config.showYAxis&&!!(this.data.yAxisTopText||this.data.yAxisBottomText),i=this.config.showTitle&&!!this.data.titleText,n=this.data.points.length>0?"bottom":this.config.xAxisPosition,s=this.calculateSpace(n,t,r,i);return{points:this.getQuadrantPoints(s),quadrants:this.getQuadrants(s),axisLabels:this.getAxisLabels(n,t,r,s),borderLines:this.getBorders(s),title:this.getTitle(i)}}}});function sP(e){return!/^#?([\dA-Fa-f]{6}|[\dA-Fa-f]{3})$/.test(e)}function nye(e){return!/^\d+$/.test(e)}function aye(e){return!/^\d+px$/.test(e)}var af,sye=v(()=>{"use strict";af=class extends Error{static{a(this,"InvalidStyleError")}constructor(t,r,i){super(`value for ${t} ${r} is invalid, please use a valid ${i}`),this.name="InvalidStyleError"}};a(sP,"validateHexCode");a(nye,"validateNumber");a(aye,"validateSizeInPixels")});function ic(e){return rr(e.trim(),dZe)}function fZe(e){pn.setData({quadrant1Text:ic(e.text)})}function pZe(e){pn.setData({quadrant2Text:ic(e.text)})}function mZe(e){pn.setData({quadrant3Text:ic(e.text)})}function gZe(e){pn.setData({quadrant4Text:ic(e.text)})}function yZe(e){pn.setData({xAxisLeftText:ic(e.text)})}function xZe(e){pn.setData({xAxisRightText:ic(e.text)})}function bZe(e){pn.setData({yAxisTopText:ic(e.text)})}function TZe(e){pn.setData({yAxisBottomText:ic(e.text)})}function oP(e){let t={};for(let r of e){let[i,n]=r.trim().split(/\s*:\s*/);if(i==="radius"){if(nye(n))throw new af(i,n,"number");t.radius=parseInt(n)}else if(i==="color"){if(sP(n))throw new af(i,n,"hex code");t.color=n}else if(i==="stroke-color"){if(sP(n))throw new af(i,n,"hex code");t.strokeColor=n}else if(i==="stroke-width"){if(aye(n))throw new af(i,n,"number of pixels (eg. 10px)");t.strokeWidth=n}else throw new Error(`style named ${i} is not supported.`)}return t}function kZe(e,t,r,i,n){let s=oP(n);pn.addPoints([{x:r,y:i,text:ic(e.text),className:t,...s}])}function CZe(e,t){pn.addClass(e,oP(t))}function vZe(e){pn.setConfig({chartWidth:e})}function SZe(e){pn.setConfig({chartHeight:e})}function _Ze(){let e=J(),{themeVariables:t,quadrantChart:r}=e;return r&&pn.setConfig(r),pn.setThemeConfig({quadrant1Fill:t.quadrant1Fill,quadrant2Fill:t.quadrant2Fill,quadrant3Fill:t.quadrant3Fill,quadrant4Fill:t.quadrant4Fill,quadrant1TextFill:t.quadrant1TextFill,quadrant2TextFill:t.quadrant2TextFill,quadrant3TextFill:t.quadrant3TextFill,quadrant4TextFill:t.quadrant4TextFill,quadrantPointFill:t.quadrantPointFill,quadrantPointTextFill:t.quadrantPointTextFill,quadrantXAxisTextFill:t.quadrantXAxisTextFill,quadrantYAxisTextFill:t.quadrantYAxisTextFill,quadrantExternalBorderStrokeFill:t.quadrantExternalBorderStrokeFill,quadrantInternalBorderStrokeFill:t.quadrantInternalBorderStrokeFill,quadrantTitleFill:t.quadrantTitleFill}),pn.setData({titleText:er()}),pn.build()}var dZe,pn,wZe,oye,lye=v(()=>{"use strict";bt();dr();zr();iye();sye();dZe=J();a(ic,"textSanitizer");pn=new d_;a(fZe,"setQuadrant1Text");a(pZe,"setQuadrant2Text");a(mZe,"setQuadrant3Text");a(gZe,"setQuadrant4Text");a(yZe,"setXAxisLeftText");a(xZe,"setXAxisRightText");a(bZe,"setYAxisTopText");a(TZe,"setYAxisBottomText");a(oP,"parseStyles");a(kZe,"addPoint");a(CZe,"addClass");a(vZe,"setWidth");a(SZe,"setHeight");a(_Ze,"getQuadrantData");wZe=a(function(){pn.clear(),Ht()},"clear"),oye={setWidth:vZe,setHeight:SZe,setQuadrant1Text:fZe,setQuadrant2Text:pZe,setQuadrant3Text:mZe,setQuadrant4Text:gZe,setXAxisLeftText:yZe,setXAxisRightText:xZe,setYAxisTopText:bZe,setYAxisBottomText:TZe,parseStyles:oP,addPoint:kZe,addClass:CZe,getQuadrantData:_Ze,clear:wZe,setAccTitle:Yt,getAccTitle:Qt,setDiagramTitle:ir,getDiagramTitle:er,getAccDescription:Jt,setAccDescription:Zt}});var EZe,cye,uye=v(()=>{"use strict";sr();bt();nt();Xr();EZe=a((e,t,r,i)=>{function n(I){return I==="top"?"hanging":"middle"}a(n,"getDominantBaseLine");function s(I){return I==="left"?"start":"middle"}a(s,"getTextAnchor");function o(I){return`translate(${I.x}, ${I.y}) rotate(${I.rotation||0})`}a(o,"getTransformation");let l=J();W.debug(`Rendering quadrant chart
`+e);let u=l.securityLevel,h;u==="sandbox"&&(h=Se("#i"+t));let f=(u==="sandbox"?Se(h.nodes()[0].contentDocument.body):Se("body")).select(`[id="${t}"]`),p=f.append("g").attr("class","main"),m=l.quadrantChart?.chartWidth??500,g=l.quadrantChart?.chartHeight??500;fr(f,g,m,l.quadrantChart?.useMaxWidth??!0),f.attr("viewBox","0 0 "+m+" "+g),i.db.setHeight(g),i.db.setWidth(m);let x=i.db.getQuadrantData(),b=p.append("g").attr("class","quadrants"),T=p.append("g").attr("class","border"),k=p.append("g").attr("class","data-points"),C=p.append("g").attr("class","labels"),S=p.append("g").attr("class","title");x.title&&S.append("text").attr("x",0).attr("y",0).attr("fill",x.title.fill).attr("font-size",x.title.fontSize).attr("dominant-baseline",n(x.title.horizontalPos)).attr("text-anchor",s(x.title.verticalPos)).attr("transform",o(x.title)).text(x.title.text),x.borderLines&&T.selectAll("line").data(x.borderLines).enter().append("line").attr("x1",I=>I.x1).attr("y1",I=>I.y1).attr("x2",I=>I.x2).attr("y2",I=>I.y2).style("stroke",I=>I.strokeFill).style("stroke-width",I=>I.strokeWidth);let w=b.selectAll("g.quadrant").data(x.quadrants).enter().append("g").attr("class","quadrant");w.append("rect").attr("x",I=>I.x).attr("y",I=>I.y).attr("width",I=>I.width).attr("height",I=>I.height).attr("fill",I=>I.fill),w.append("text").attr("x",0).attr("y",0).attr("fill",I=>I.text.fill).attr("font-size",I=>I.text.fontSize).attr("dominant-baseline",I=>n(I.text.horizontalPos)).attr("text-anchor",I=>s(I.text.verticalPos)).attr("transform",I=>o(I.text)).text(I=>I.text.text),C.selectAll("g.label").data(x.axisLabels).enter().append("g").attr("class","label").append("text").attr("x",0).attr("y",0).text(I=>I.text).attr("fill",I=>I.fill).attr("font-size",I=>I.fontSize).attr("dominant-baseline",I=>n(I.horizontalPos)).attr("text-anchor",I=>s(I.verticalPos)).attr("transform",I=>o(I));let L=k.selectAll("g.data-point").data(x.points).enter().append("g").attr("class","data-point");L.append("circle").attr("cx",I=>I.x).attr("cy",I=>I.y).attr("r",I=>I.radius).attr("fill",I=>I.fill).attr("stroke",I=>I.strokeColor).attr("stroke-width",I=>I.strokeWidth),L.append("text").attr("x",0).attr("y",0).text(I=>I.text.text).attr("fill",I=>I.text.fill).attr("font-size",I=>I.text.fontSize).attr("dominant-baseline",I=>n(I.text.horizontalPos)).attr("text-anchor",I=>s(I.text.verticalPos)).attr("transform",I=>o(I.text))},"draw"),cye={draw:EZe}});var hye={};tr(hye,{diagram:()=>AZe});var AZe,dye=v(()=>{"use strict";rye();lye();uye();AZe={parser:tye,db:oye,renderer:cye,styles:a(()=>"","styles")}});var lP,mye,gye=v(()=>{"use strict";lP=(function(){var e=a(function(R,N,$,E){for($=$||{},E=R.length;E--;$[R[E]]=N);return $},"o"),t=[1,10,12,14,16,18,19,21,23],r=[2,6],i=[1,3],n=[1,5],s=[1,6],o=[1,7],l=[1,5,10,12,14,16,18,19,21,23,34,35,36],u=[1,25],h=[1,26],d=[1,28],f=[1,29],p=[1,30],m=[1,31],g=[1,32],x=[1,33],b=[1,34],T=[1,35],k=[1,36],C=[1,37],S=[1,43],w=[1,42],_=[1,47],L=[1,50],I=[1,10,12,14,16,18,19,21,23,34,35,36],B=[1,10,12,14,16,18,19,21,23,24,26,27,28,34,35,36],G=[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],P=[1,64],F={trace:a(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:a(function(N,$,E,M,V,O,z){var U=O.length-1;switch(V){case 5:M.setOrientation(O[U]);break;case 9:M.setDiagramTitle(O[U].text.trim());break;case 12:M.setLineData({text:"",type:"text"},O[U]);break;case 13:M.setLineData(O[U-1],O[U]);break;case 14:M.setBarData({text:"",type:"text"},O[U]);break;case 15:M.setBarData(O[U-1],O[U]);break;case 16:this.$=O[U].trim(),M.setAccTitle(this.$);break;case 17:case 18:this.$=O[U].trim(),M.setAccDescription(this.$);break;case 19:this.$=O[U-1];break;case 20:this.$=[Number(O[U-2]),...O[U]];break;case 21:this.$=[Number(O[U])];break;case 22:M.setXAxisTitle(O[U]);break;case 23:M.setXAxisTitle(O[U-1]);break;case 24:M.setXAxisTitle({type:"text",text:""});break;case 25:M.setXAxisBand(O[U]);break;case 26:M.setXAxisRangeData(Number(O[U-2]),Number(O[U]));break;case 27:this.$=O[U-1];break;case 28:this.$=[O[U-2],...O[U]];break;case 29:this.$=[O[U]];break;case 30:M.setYAxisTitle(O[U]);break;case 31:M.setYAxisTitle(O[U-1]);break;case 32:M.setYAxisTitle({type:"text",text:""});break;case 33:M.setYAxisRangeData(Number(O[U-2]),Number(O[U]));break;case 37:this.$={text:O[U],type:"text"};break;case 38:this.$={text:O[U],type:"text"};break;case 39:this.$={text:O[U],type:"markdown"};break;case 40:this.$=O[U];break;case 41:this.$=O[U-1]+""+O[U];break}},"anonymous"),table:[e(t,r,{3:1,4:2,7:4,5:i,34:n,35:s,36:o}),{1:[3]},e(t,r,{4:2,7:4,3:8,5:i,34:n,35:s,36:o}),e(t,r,{4:2,7:4,6:9,3:10,5:i,8:[1,11],34:n,35:s,36:o}),{1:[2,4],9:12,10:[1,13],12:[1,14],14:[1,15],16:[1,16],18:[1,17],19:[1,18],21:[1,19],23:[1,20]},e(l,[2,34]),e(l,[2,35]),e(l,[2,36]),{1:[2,1]},e(t,r,{4:2,7:4,3:21,5:i,34:n,35:s,36:o}),{1:[2,3]},e(l,[2,5]),e(t,[2,7],{4:22,34:n,35:s,36:o}),{11:23,37:24,38:u,39:h,40:27,41:d,42:f,43:p,44:m,45:g,46:x,47:b,48:T,49:k,50:C},{11:39,13:38,24:S,27:w,29:40,30:41,37:24,38:u,39:h,40:27,41:d,42:f,43:p,44:m,45:g,46:x,47:b,48:T,49:k,50:C},{11:45,15:44,27:_,33:46,37:24,38:u,39:h,40:27,41:d,42:f,43:p,44:m,45:g,46:x,47:b,48:T,49:k,50:C},{11:49,17:48,24:L,37:24,38:u,39:h,40:27,41:d,42:f,43:p,44:m,45:g,46:x,47:b,48:T,49:k,50:C},{11:52,17:51,24:L,37:24,38:u,39:h,40:27,41:d,42:f,43:p,44:m,45:g,46:x,47:b,48:T,49:k,50:C},{20:[1,53]},{22:[1,54]},e(I,[2,18]),{1:[2,2]},e(I,[2,8]),e(I,[2,9]),e(B,[2,37],{40:55,41:d,42:f,43:p,44:m,45:g,46:x,47:b,48:T,49:k,50:C}),e(B,[2,38]),e(B,[2,39]),e(G,[2,40]),e(G,[2,42]),e(G,[2,43]),e(G,[2,44]),e(G,[2,45]),e(G,[2,46]),e(G,[2,47]),e(G,[2,48]),e(G,[2,49]),e(G,[2,50]),e(G,[2,51]),e(I,[2,10]),e(I,[2,22],{30:41,29:56,24:S,27:w}),e(I,[2,24]),e(I,[2,25]),{31:[1,57]},{11:59,32:58,37:24,38:u,39:h,40:27,41:d,42:f,43:p,44:m,45:g,46:x,47:b,48:T,49:k,50:C},e(I,[2,11]),e(I,[2,30],{33:60,27:_}),e(I,[2,32]),{31:[1,61]},e(I,[2,12]),{17:62,24:L},{25:63,27:P},e(I,[2,14]),{17:65,24:L},e(I,[2,16]),e(I,[2,17]),e(G,[2,41]),e(I,[2,23]),{27:[1,66]},{26:[1,67]},{26:[2,29],28:[1,68]},e(I,[2,31]),{27:[1,69]},e(I,[2,13]),{26:[1,70]},{26:[2,21],28:[1,71]},e(I,[2,15]),e(I,[2,26]),e(I,[2,27]),{11:59,32:72,37:24,38:u,39:h,40:27,41:d,42:f,43:p,44:m,45:g,46:x,47:b,48:T,49:k,50:C},e(I,[2,33]),e(I,[2,19]),{25:73,27:P},{26:[2,28]},{26:[2,20]}],defaultActions:{8:[2,1],10:[2,3],21:[2,2],72:[2,28],73:[2,20]},parseError:a(function(N,$){if($.recoverable)this.trace(N);else{var E=new Error(N);throw E.hash=$,E}},"parseError"),parse:a(function(N){var $=this,E=[0],M=[],V=[null],O=[],z=this.table,U="",K=0,j=0,ae=0,X=2,de=1,le=O.slice.call(arguments,1),ge=Object.create(this.lexer),he={yy:{}};for(var te in this.yy)Object.prototype.hasOwnProperty.call(this.yy,te)&&(he.yy[te]=this.yy[te]);ge.setInput(N,he.yy),he.yy.lexer=ge,he.yy.parser=this,typeof ge.yylloc>"u"&&(ge.yylloc={});var Le=ge.yylloc;O.push(Le);var xe=ge.options&&ge.options.ranges;typeof he.yy.parseError=="function"?this.parseError=he.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ye(oe){E.length=E.length-2*oe,V.length=V.length-oe,O.length=O.length-oe}a(ye,"popStack");function be(){var oe;return oe=M.pop()||ge.lex()||de,typeof oe!="number"&&(oe instanceof Array&&(M=oe,oe=M.pop()),oe=$.symbols_[oe]||oe),oe}a(be,"lex");for(var Ce,Oe,Ae,st,ce,Mt,fe={},Ue,Je,ot,Ne;;){if(Ae=E[E.length-1],this.defaultActions[Ae]?st=this.defaultActions[Ae]:((Ce===null||typeof Ce>"u")&&(Ce=be()),st=z[Ae]&&z[Ae][Ce]),typeof st>"u"||!st.length||!st[0]){var ze="";Ne=[];for(Ue in z[Ae])this.terminals_[Ue]&&Ue>X&&Ne.push("'"+this.terminals_[Ue]+"'");ge.showPosition?ze="Parse error on line "+(K+1)+`:
`+ge.showPosition()+`
Expecting `+Ne.join(", ")+", got '"+(this.terminals_[Ce]||Ce)+"'":ze="Parse error on line "+(K+1)+": Unexpected "+(Ce==de?"end of input":"'"+(this.terminals_[Ce]||Ce)+"'"),this.parseError(ze,{text:ge.match,token:this.terminals_[Ce]||Ce,line:ge.yylineno,loc:Le,expected:Ne})}if(st[0]instanceof Array&&st.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Ae+", token: "+Ce);switch(st[0]){case 1:E.push(Ce),V.push(ge.yytext),O.push(ge.yylloc),E.push(st[1]),Ce=null,Oe?(Ce=Oe,Oe=null):(j=ge.yyleng,U=ge.yytext,K=ge.yylineno,Le=ge.yylloc,ae>0&&ae--);break;case 2:if(Je=this.productions_[st[1]][1],fe.$=V[V.length-Je],fe._$={first_line:O[O.length-(Je||1)].first_line,last_line:O[O.length-1].last_line,first_column:O[O.length-(Je||1)].first_column,last_column:O[O.length-1].last_column},xe&&(fe._$.range=[O[O.length-(Je||1)].range[0],O[O.length-1].range[1]]),Mt=this.performAction.apply(fe,[U,j,K,he.yy,st[1],V,O].concat(le)),typeof Mt<"u")return Mt;Je&&(E=E.slice(0,-1*Je*2),V=V.slice(0,-1*Je),O=O.slice(0,-1*Je)),E.push(this.productions_[st[1]][0]),V.push(fe.$),O.push(fe._$),ot=z[E[E.length-2]][E[E.length-1]],E.push(ot);break;case 3:return!0}}return!0},"parse")},A=(function(){var R={EOF:1,parseError:a(function($,E){if(this.yy.parser)this.yy.parser.parseError($,E);else throw new Error($)},"parseError"),setInput:a(function(N,$){return this.yy=$||this.yy||{},this._input=N,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:a(function(){var N=this._input[0];this.yytext+=N,this.yyleng++,this.offset++,this.match+=N,this.matched+=N;var $=N.match(/(?:\r\n?|\n).*/g);return $?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),N},"input"),unput:a(function(N){var $=N.length,E=N.split(/(?:\r\n?|\n)/g);this._input=N+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-$),this.offset-=$;var M=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),E.length-1&&(this.yylineno-=E.length-1);var V=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:E?(E.length===M.length?this.yylloc.first_column:0)+M[M.length-E.length].length-E[0].length:this.yylloc.first_column-$},this.options.ranges&&(this.yylloc.range=[V[0],V[0]+this.yyleng-$]),this.yyleng=this.yytext.length,this},"unput"),more:a(function(){return this._more=!0,this},"more"),reject:a(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:a(function(N){this.unput(this.match.slice(N))},"less"),pastInput:a(function(){var N=this.matched.substr(0,this.matched.length-this.match.length);return(N.length>20?"...":"")+N.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:a(function(){var N=this.match;return N.length<20&&(N+=this._input.substr(0,20-N.length)),(N.substr(0,20)+(N.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:a(function(){var N=this.pastInput(),$=new Array(N.length+1).join("-");return N+this.upcomingInput()+`
`+$+"^"},"showPosition"),test_match:a(function(N,$){var E,M,V;if(this.options.backtrack_lexer&&(V={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&&(V.yylloc.range=this.yylloc.range.slice(0))),M=N[0].match(/(?:\r\n?|\n).*/g),M&&(this.yylineno+=M.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:M?M[M.length-1].length-M[M.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+N[0].length},this.yytext+=N[0],this.match+=N[0],this.matches=N,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(N[0].length),this.matched+=N[0],E=this.performAction.call(this,this.yy,this,$,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),E)return E;if(this._backtrack){for(var O in V)this[O]=V[O];return!1}return!1},"test_match"),next:a(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var N,$,E,M;this._more||(this.yytext="",this.match="");for(var V=this._currentRules(),O=0;O<V.length;O++)if(E=this._input.match(this.rules[V[O]]),E&&(!$||E[0].length>$[0].length)){if($=E,M=O,this.options.backtrack_lexer){if(N=this.test_match(E,V[O]),N!==!1)return N;if(this._backtrack){$=!1;continue}else return!1}else if(!this.options.flex)break}return $?(N=this.test_match($,V[M]),N!==!1?N:!1):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:a(function(){var $=this.next();return $||this.lex()},"lex"),begin:a(function($){this.conditionStack.push($)},"begin"),popState:a(function(){var $=this.conditionStack.length-1;return $>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:a(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:a(function($){return $=this.conditionStack.length-1-Math.abs($||0),$>=0?this.conditionStack[$]:"INITIAL"},"topState"),pushState:a(function($){this.begin($)},"pushState"),stateStackSize:a(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:a(function($,E,M,V){var O=V;switch(M){case 0:break;case 1:break;case 2:return this.popState(),34;break;case 3:return this.popState(),34;break;case 4:return 34;case 5:break;case 6:return 10;case 7:return this.pushState("acc_title"),19;break;case 8:return this.popState(),"acc_title_value";break;case 9:return this.pushState("acc_descr"),21;break;case 10:return this.popState(),"acc_descr_value";break;case 11:this.pushState("acc_descr_multiline");break;case 12:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:return 5;case 15:return 5;case 16:return 8;case 17:return this.pushState("axis_data"),"X_AXIS";break;case 18:return this.pushState("axis_data"),"Y_AXIS";break;case 19:return this.pushState("axis_band_data"),24;break;case 20:return 31;case 21:return this.pushState("data"),16;break;case 22:return this.pushState("data"),18;break;case 23:return this.pushState("data_inner"),24;break;case 24:return 27;case 25:return this.popState(),26;break;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}}};return R})();F.lexer=A;function D(){this.yy={}}return a(D,"Parser"),D.prototype=F,F.Parser=D,new D})();lP.parser=lP;mye=lP});function cP(e){return e.type==="bar"}function f_(e){return e.type==="band"}function Pm(e){return e.type==="linear"}var p_=v(()=>{"use strict";a(cP,"isBarPlot");a(f_,"isBandAxisData");a(Pm,"isLinearAxisData")});var Bm,uP=v(()=>{"use strict";Qa();Bm=class{constructor(t){this.parentGroup=t}static{a(this,"TextDimensionCalculatorWithFont")}getMaxDimension(t,r){if(!this.parentGroup)return{width:t.reduce((s,o)=>Math.max(o.length,s),0)*r,height:r};let i={width:0,height:0},n=this.parentGroup.append("g").attr("visibility","hidden").attr("font-size",r);for(let s of t){let o=Zq(n,1,s),l=o?o.width:s.length*r,u=o?o.height:r;i.width=Math.max(i.width,l),i.height=Math.max(i.height,u)}return n.remove(),i}}});var $m,hP=v(()=>{"use strict";$m=class{constructor(t,r,i,n){this.axisConfig=t;this.title=r;this.textDimensionCalculator=i;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.outerPadding=0;this.titleTextHeight=0;this.labelTextHeight=0;this.range=[0,10],this.boundingRect={x:0,y:0,width:0,height:0},this.axisPosition="left"}static{a(this,"BaseAxis")}setRange(t){this.range=t,this.axisPosition==="left"||this.axisPosition==="right"?this.boundingRect.height=t[1]-t[0]:this.boundingRect.width=t[1]-t[0],this.recalculateScale()}getRange(){return[this.range[0]+this.outerPadding,this.range[1]-this.outerPadding]}setAxisPosition(t){this.axisPosition=t,this.setRange(this.range)}getTickDistance(){let t=this.getRange();return Math.abs(t[0]-t[1])/this.getTickValues().length}getAxisOuterPadding(){return this.outerPadding}getLabelDimension(){return this.textDimensionCalculator.getMaxDimension(this.getTickValues().map(t=>t.toString()),this.axisConfig.labelFontSize)}recalculateOuterPaddingToDrawBar(){.7*this.getTickDistance()>this.outerPadding*2&&(this.outerPadding=Math.floor(.7*this.getTickDistance()/2)),this.recalculateScale()}calculateSpaceIfDrawnHorizontally(t){let r=t.height;if(this.axisConfig.showAxisLine&&r>this.axisConfig.axisLineWidth&&(r-=this.axisConfig.axisLineWidth,this.showAxisLine=!0),this.axisConfig.showLabel){let i=this.getLabelDimension(),n=.2*t.width;this.outerPadding=Math.min(i.width/2,n);let s=i.height+this.axisConfig.labelPadding*2;this.labelTextHeight=i.height,s<=r&&(r-=s,this.showLabel=!0)}if(this.axisConfig.showTick&&r>=this.axisConfig.tickLength&&(this.showTick=!0,r-=this.axisConfig.tickLength),this.axisConfig.showTitle&&this.title){let i=this.textDimensionCalculator.getMaxDimension([this.title],this.axisConfig.titleFontSize),n=i.height+this.axisConfig.titlePadding*2;this.titleTextHeight=i.height,n<=r&&(r-=n,this.showTitle=!0)}this.boundingRect.width=t.width,this.boundingRect.height=t.height-r}calculateSpaceIfDrawnVertical(t){let r=t.width;if(this.axisConfig.showAxisLine&&r>this.axisConfig.axisLineWidth&&(r-=this.axisConfig.axisLineWidth,this.showAxisLine=!0),this.axisConfig.showLabel){let i=this.getLabelDimension(),n=.2*t.height;this.outerPadding=Math.min(i.height/2,n);let s=i.width+this.axisConfig.labelPadding*2;s<=r&&(r-=s,this.showLabel=!0)}if(this.axisConfig.showTick&&r>=this.axisConfig.tickLength&&(this.showTick=!0,r-=this.axisConfig.tickLength),this.axisConfig.showTitle&&this.title){let i=this.textDimensionCalculator.getMaxDimension([this.title],this.axisConfig.titleFontSize),n=i.height+this.axisConfig.titlePadding*2;this.titleTextHeight=i.height,n<=r&&(r-=n,this.showTitle=!0)}this.boundingRect.width=t.width-r,this.boundingRect.height=t.height}calculateSpace(t){return this.axisPosition==="left"||this.axisPosition==="right"?this.calculateSpaceIfDrawnVertical(t):this.calculateSpaceIfDrawnHorizontally(t),this.recalculateScale(),{width:this.boundingRect.width,height:this.boundingRect.height}}setBoundingBoxXY(t){this.boundingRect.x=t.x,this.boundingRect.y=t.y}getDrawableElementsForLeftAxis(){let t=[];if(this.showAxisLine){let r=this.boundingRect.x+this.boundingRect.width-this.axisConfig.axisLineWidth/2;t.push({type:"path",groupTexts:["left-axis","axisl-line"],data:[{path:`M ${r},${this.boundingRect.y} L ${r},${this.boundingRect.y+this.boundingRect.height} `,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel&&t.push({type:"text",groupTexts:["left-axis","label"],data:this.getTickValues().map(r=>({text:r.toString(),x:this.boundingRect.x+this.boundingRect.width-(this.showLabel?this.axisConfig.labelPadding:0)-(this.showTick?this.axisConfig.tickLength:0)-(this.showAxisLine?this.axisConfig.axisLineWidth:0),y:this.getScaleValue(r),fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:0,verticalPos:"middle",horizontalPos:"right"}))}),this.showTick){let r=this.boundingRect.x+this.boundingRect.width-(this.showAxisLine?this.axisConfig.axisLineWidth:0);t.push({type:"path",groupTexts:["left-axis","ticks"],data:this.getTickValues().map(i=>({path:`M ${r},${this.getScaleValue(i)} L ${r-this.axisConfig.tickLength},${this.getScaleValue(i)}`,strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth}))})}return this.showTitle&&t.push({type:"text",groupTexts:["left-axis","title"],data:[{text:this.title,x:this.boundingRect.x+this.axisConfig.titlePadding,y:this.boundingRect.y+this.boundingRect.height/2,fill:this.axisThemeConfig.titleColor,fontSize:this.axisConfig.titleFontSize,rotation:270,verticalPos:"top",horizontalPos:"center"}]}),t}getDrawableElementsForBottomAxis(){let t=[];if(this.showAxisLine){let r=this.boundingRect.y+this.axisConfig.axisLineWidth/2;t.push({type:"path",groupTexts:["bottom-axis","axis-line"],data:[{path:`M ${this.boundingRect.x},${r} L ${this.boundingRect.x+this.boundingRect.width},${r}`,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel&&t.push({type:"text",groupTexts:["bottom-axis","label"],data:this.getTickValues().map(r=>({text:r.toString(),x:this.getScaleValue(r),y:this.boundingRect.y+this.axisConfig.labelPadding+(this.showTick?this.axisConfig.tickLength:0)+(this.showAxisLine?this.axisConfig.axisLineWidth:0),fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}))}),this.showTick){let r=this.boundingRect.y+(this.showAxisLine?this.axisConfig.axisLineWidth:0);t.push({type:"path",groupTexts:["bottom-axis","ticks"],data:this.getTickValues().map(i=>({path:`M ${this.getScaleValue(i)},${r} L ${this.getScaleValue(i)},${r+this.axisConfig.tickLength}`,strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth}))})}return this.showTitle&&t.push({type:"text",groupTexts:["bottom-axis","title"],data:[{text:this.title,x:this.range[0]+(this.range[1]-this.range[0])/2,y:this.boundingRect.y+this.boundingRect.height-this.axisConfig.titlePadding-this.titleTextHeight,fill:this.axisThemeConfig.titleColor,fontSize:this.axisConfig.titleFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}]}),t}getDrawableElementsForTopAxis(){let t=[];if(this.showAxisLine){let r=this.boundingRect.y+this.boundingRect.height-this.axisConfig.axisLineWidth/2;t.push({type:"path",groupTexts:["top-axis","axis-line"],data:[{path:`M ${this.boundingRect.x},${r} L ${this.boundingRect.x+this.boundingRect.width},${r}`,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel&&t.push({type:"text",groupTexts:["top-axis","label"],data:this.getTickValues().map(r=>({text:r.toString(),x:this.getScaleValue(r),y:this.boundingRect.y+(this.showTitle?this.titleTextHeight+this.axisConfig.titlePadding*2:0)+this.axisConfig.labelPadding,fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}))}),this.showTick){let r=this.boundingRect.y;t.push({type:"path",groupTexts:["top-axis","ticks"],data:this.getTickValues().map(i=>({path:`M ${this.getScaleValue(i)},${r+this.boundingRect.height-(this.showAxisLine?this.axisConfig.axisLineWidth:0)} L ${this.getScaleValue(i)},${r+this.boundingRect.height-this.axisConfig.tickLength-(this.showAxisLine?this.axisConfig.axisLineWidth:0)}`,strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth}))})}return this.showTitle&&t.push({type:"text",groupTexts:["top-axis","title"],data:[{text:this.title,x:this.boundingRect.x+this.boundingRect.width/2,y:this.boundingRect.y+this.axisConfig.titlePadding,fill:this.axisThemeConfig.titleColor,fontSize:this.axisConfig.titleFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}]}),t}getDrawableElements(){if(this.axisPosition==="left")return this.getDrawableElementsForLeftAxis();if(this.axisPosition==="right")throw Error("Drawing of right axis is not implemented");return this.axisPosition==="bottom"?this.getDrawableElementsForBottomAxis():this.axisPosition==="top"?this.getDrawableElementsForTopAxis():[]}}});var m_,yye=v(()=>{"use strict";sr();nt();hP();m_=class extends $m{static{a(this,"BandAxis")}constructor(t,r,i,n,s){super(t,n,s,r),this.categories=i,this.scale=qf().domain(this.categories).range(this.getRange())}setRange(t){super.setRange(t)}recalculateScale(){this.scale=qf().domain(this.categories).range(this.getRange()).paddingInner(1).paddingOuter(0).align(.5),W.trace("BandAxis axis final categories, range: ",this.categories,this.getRange())}getTickValues(){return this.categories}getScaleValue(t){return this.scale(t)??this.getRange()[0]}}});var g_,xye=v(()=>{"use strict";sr();hP();g_=class extends $m{static{a(this,"LinearAxis")}constructor(t,r,i,n,s){super(t,n,s,r),this.domain=i,this.scale=Ls().domain(this.domain).range(this.getRange())}getTickValues(){return this.scale.ticks()}recalculateScale(){let t=[...this.domain];this.axisPosition==="left"&&t.reverse(),this.scale=Ls().domain(t).range(this.getRange())}getScaleValue(t){return this.scale(t)}}});function dP(e,t,r,i){let n=new Bm(i);return f_(e)?new m_(t,r,e.categories,e.title,n):new g_(t,r,[e.min,e.max],e.title,n)}var bye=v(()=>{"use strict";p_();uP();yye();xye();a(dP,"getAxis")});function Tye(e,t,r,i){let n=new Bm(i);return new fP(n,e,t,r)}var fP,kye=v(()=>{"use strict";uP();fP=class{constructor(t,r,i,n){this.textDimensionCalculator=t;this.chartConfig=r;this.chartData=i;this.chartThemeConfig=n;this.boundingRect={x:0,y:0,width:0,height:0},this.showChartTitle=!1}static{a(this,"ChartTitle")}setBoundingBoxXY(t){this.boundingRect.x=t.x,this.boundingRect.y=t.y}calculateSpace(t){let r=this.textDimensionCalculator.getMaxDimension([this.chartData.title],this.chartConfig.titleFontSize),i=Math.max(r.width,t.width),n=r.height+2*this.chartConfig.titlePadding;return r.width<=i&&r.height<=n&&this.chartConfig.showTitle&&this.chartData.title&&(this.boundingRect.width=i,this.boundingRect.height=n,this.showChartTitle=!0),{width:this.boundingRect.width,height:this.boundingRect.height}}getDrawableElements(){let t=[];return this.showChartTitle&&t.push({groupTexts:["chart-title"],type:"text",data:[{fontSize:this.chartConfig.titleFontSize,text:this.chartData.title,verticalPos:"middle",horizontalPos:"center",x:this.boundingRect.x+this.boundingRect.width/2,y:this.boundingRect.y+this.boundingRect.height/2,fill:this.chartThemeConfig.titleColor,rotation:0}]}),t}};a(Tye,"getChartTitleComponent")});var y_,Cye=v(()=>{"use strict";sr();y_=class{constructor(t,r,i,n,s){this.plotData=t;this.xAxis=r;this.yAxis=i;this.orientation=n;this.plotIndex=s}static{a(this,"LinePlot")}getDrawableElement(){let t=this.plotData.data.map(i=>[this.xAxis.getScaleValue(i[0]),this.yAxis.getScaleValue(i[1])]),r;return this.orientation==="horizontal"?r=Os().y(i=>i[0]).x(i=>i[1])(t):r=Os().x(i=>i[0]).y(i=>i[1])(t),r?[{groupTexts:["plot",`line-plot-${this.plotIndex}`],type:"path",data:[{path:r,strokeFill:this.plotData.strokeFill,strokeWidth:this.plotData.strokeWidth}]}]:[]}}});var x_,vye=v(()=>{"use strict";x_=class{constructor(t,r,i,n,s,o){this.barData=t;this.boundingRect=r;this.xAxis=i;this.yAxis=n;this.orientation=s;this.plotIndex=o}static{a(this,"BarPlot")}getDrawableElement(){let t=this.barData.data.map(s=>[this.xAxis.getScaleValue(s[0]),this.yAxis.getScaleValue(s[1])]),i=Math.min(this.xAxis.getAxisOuterPadding()*2,this.xAxis.getTickDistance())*(1-.05),n=i/2;return this.orientation==="horizontal"?[{groupTexts:["plot",`bar-plot-${this.plotIndex}`],type:"rect",data:t.map(s=>({x:this.boundingRect.x,y:s[0]-n,height:i,width:s[1]-this.boundingRect.x,fill:this.barData.fill,strokeWidth:0,strokeFill:this.barData.fill}))}]:[{groupTexts:["plot",`bar-plot-${this.plotIndex}`],type:"rect",data:t.map(s=>({x:s[0]-n,y:s[1],width:i,height:this.boundingRect.y+this.boundingRect.height-s[1],fill:this.barData.fill,strokeWidth:0,strokeFill:this.barData.fill}))}]}}});function Sye(e,t,r){return new pP(e,t,r)}var pP,_ye=v(()=>{"use strict";Cye();vye();pP=class{constructor(t,r,i){this.chartConfig=t;this.chartData=r;this.chartThemeConfig=i;this.boundingRect={x:0,y:0,width:0,height:0}}static{a(this,"BasePlot")}setAxes(t,r){this.xAxis=t,this.yAxis=r}setBoundingBoxXY(t){this.boundingRect.x=t.x,this.boundingRect.y=t.y}calculateSpace(t){return this.boundingRect.width=t.width,this.boundingRect.height=t.height,{width:this.boundingRect.width,height:this.boundingRect.height}}getDrawableElements(){if(!(this.xAxis&&this.yAxis))throw Error("Axes must be passed to render Plots");let t=[];for(let[r,i]of this.chartData.plots.entries())switch(i.type){case"line":{let n=new y_(i,this.xAxis,this.yAxis,this.chartConfig.chartOrientation,r);t.push(...n.getDrawableElement())}break;case"bar":{let n=new x_(i,this.boundingRect,this.xAxis,this.yAxis,this.chartConfig.chartOrientation,r);t.push(...n.getDrawableElement())}break}return t}};a(Sye,"getPlotComponent")});var b_,wye=v(()=>{"use strict";bye();kye();_ye();p_();b_=class{constructor(t,r,i,n){this.chartConfig=t;this.chartData=r;this.componentStore={title:Tye(t,r,i,n),plot:Sye(t,r,i),xAxis:dP(r.xAxis,t.xAxis,{titleColor:i.xAxisTitleColor,labelColor:i.xAxisLabelColor,tickColor:i.xAxisTickColor,axisLineColor:i.xAxisLineColor},n),yAxis:dP(r.yAxis,t.yAxis,{titleColor:i.yAxisTitleColor,labelColor:i.yAxisLabelColor,tickColor:i.yAxisTickColor,axisLineColor:i.yAxisLineColor},n)}}static{a(this,"Orchestrator")}calculateVerticalSpace(){let t=this.chartConfig.width,r=this.chartConfig.height,i=0,n=0,s=Math.floor(t*this.chartConfig.plotReservedSpacePercent/100),o=Math.floor(r*this.chartConfig.plotReservedSpacePercent/100),l=this.componentStore.plot.calculateSpace({width:s,height:o});t-=l.width,r-=l.height,l=this.componentStore.title.calculateSpace({width:this.chartConfig.width,height:r}),n=l.height,r-=l.height,this.componentStore.xAxis.setAxisPosition("bottom"),l=this.componentStore.xAxis.calculateSpace({width:t,height:r}),r-=l.height,this.componentStore.yAxis.setAxisPosition("left"),l=this.componentStore.yAxis.calculateSpace({width:t,height:r}),i=l.width,t-=l.width,t>0&&(s+=t,t=0),r>0&&(o+=r,r=0),this.componentStore.plot.calculateSpace({width:s,height:o}),this.componentStore.plot.setBoundingBoxXY({x:i,y:n}),this.componentStore.xAxis.setRange([i,i+s]),this.componentStore.xAxis.setBoundingBoxXY({x:i,y:n+o}),this.componentStore.yAxis.setRange([n,n+o]),this.componentStore.yAxis.setBoundingBoxXY({x:0,y:n}),this.chartData.plots.some(u=>cP(u))&&this.componentStore.xAxis.recalculateOuterPaddingToDrawBar()}calculateHorizontalSpace(){let t=this.chartConfig.width,r=this.chartConfig.height,i=0,n=0,s=0,o=Math.floor(t*this.chartConfig.plotReservedSpacePercent/100),l=Math.floor(r*this.chartConfig.plotReservedSpacePercent/100),u=this.componentStore.plot.calculateSpace({width:o,height:l});t-=u.width,r-=u.height,u=this.componentStore.title.calculateSpace({width:this.chartConfig.width,height:r}),i=u.height,r-=u.height,this.componentStore.xAxis.setAxisPosition("left"),u=this.componentStore.xAxis.calculateSpace({width:t,height:r}),t-=u.width,n=u.width,this.componentStore.yAxis.setAxisPosition("top"),u=this.componentStore.yAxis.calculateSpace({width:t,height:r}),r-=u.height,s=i+u.height,t>0&&(o+=t,t=0),r>0&&(l+=r,r=0),this.componentStore.plot.calculateSpace({width:o,height:l}),this.componentStore.plot.setBoundingBoxXY({x:n,y:s}),this.componentStore.yAxis.setRange([n,n+o]),this.componentStore.yAxis.setBoundingBoxXY({x:n,y:i}),this.componentStore.xAxis.setRange([s,s+l]),this.componentStore.xAxis.setBoundingBoxXY({x:0,y:s}),this.chartData.plots.some(h=>cP(h))&&this.componentStore.xAxis.recalculateOuterPaddingToDrawBar()}calculateSpace(){this.chartConfig.chartOrientation==="horizontal"?this.calculateHorizontalSpace():this.calculateVerticalSpace()}getDrawableElement(){this.calculateSpace();let t=[];this.componentStore.plot.setAxes(this.componentStore.xAxis,this.componentStore.yAxis);for(let r of Object.values(this.componentStore))t.push(...r.getDrawableElements());return t}}});var T_,Eye=v(()=>{"use strict";wye();T_=class{static{a(this,"XYChartBuilder")}static build(t,r,i,n){return new b_(t,r,i,n).getDrawableElement()}}});function Rye(){let e=ja(),t=ct();return xr(e.xyChart,t.themeVariables.xyChart)}function Lye(){let e=ct();return xr(Ut.xyChart,e.xyChart)}function Dye(){return{yAxis:{type:"linear",title:"",min:1/0,max:-1/0},xAxis:{type:"band",title:"",categories:[]},title:"",plots:[]}}function yP(e){let t=ct();return rr(e.trim(),t)}function IZe(e){Aye=e}function NZe(e){e==="horizontal"?dx.chartOrientation="horizontal":dx.chartOrientation="vertical"}function MZe(e){Ir.xAxis.title=yP(e.text)}function Iye(e,t){Ir.xAxis={type:"linear",title:Ir.xAxis.title,min:e,max:t},k_=!0}function OZe(e){Ir.xAxis={type:"band",title:Ir.xAxis.title,categories:e.map(t=>yP(t.text))},k_=!0}function PZe(e){Ir.yAxis.title=yP(e.text)}function BZe(e,t){Ir.yAxis={type:"linear",title:Ir.yAxis.title,min:e,max:t},gP=!0}function $Ze(e){let t=Math.min(...e),r=Math.max(...e),i=Pm(Ir.yAxis)?Ir.yAxis.min:1/0,n=Pm(Ir.yAxis)?Ir.yAxis.max:-1/0;Ir.yAxis={type:"linear",title:Ir.yAxis.title,min:Math.min(i,t),max:Math.max(n,r)}}function Nye(e){let t=[];if(e.length===0)return t;if(!k_){let r=Pm(Ir.xAxis)?Ir.xAxis.min:1/0,i=Pm(Ir.xAxis)?Ir.xAxis.max:-1/0;Iye(Math.min(r,1),Math.max(i,e.length))}if(gP||$Ze(e),f_(Ir.xAxis)&&(t=Ir.xAxis.categories.map((r,i)=>[r,e[i]])),Pm(Ir.xAxis)){let r=Ir.xAxis.min,i=Ir.xAxis.max,n=(i-r)/(e.length-1),s=[];for(let o=r;o<=i;o+=n)s.push(`${o}`);t=s.map((o,l)=>[o,e[l]])}return t}function Mye(e){return mP[e===0?0:e%mP.length]}function FZe(e,t){let r=Nye(t);Ir.plots.push({type:"line",strokeFill:Mye(hx),strokeWidth:2,data:r}),hx++}function VZe(e,t){let r=Nye(t);Ir.plots.push({type:"bar",fill:Mye(hx),data:r}),hx++}function GZe(){if(Ir.plots.length===0)throw Error("No Plot to render, please provide a plot with some data");return Ir.title=er(),T_.build(dx,Ir,fx,Aye)}function WZe(){return fx}function zZe(){return dx}function qZe(){return Ir}var hx,Aye,dx,fx,Ir,mP,k_,gP,jZe,Oye,Pye=v(()=>{"use strict";Xt();gn();Yu();Et();dr();zr();Eye();p_();hx=0,dx=Lye(),fx=Rye(),Ir=Dye(),mP=fx.plotColorPalette.split(",").map(e=>e.trim()),k_=!1,gP=!1;a(Rye,"getChartDefaultThemeConfig");a(Lye,"getChartDefaultConfig");a(Dye,"getChartDefaultData");a(yP,"textSanitizer");a(IZe,"setTmpSVGG");a(NZe,"setOrientation");a(MZe,"setXAxisTitle");a(Iye,"setXAxisRangeData");a(OZe,"setXAxisBand");a(PZe,"setYAxisTitle");a(BZe,"setYAxisRangeData");a($Ze,"setYAxisRangeFromPlotData");a(Nye,"transformDataWithoutCategory");a(Mye,"getPlotColorFromPalette");a(FZe,"setLineData");a(VZe,"setBarData");a(GZe,"getDrawableElem");a(WZe,"getChartThemeConfig");a(zZe,"getChartConfig");a(qZe,"getXYChartData");jZe=a(function(){Ht(),hx=0,dx=Lye(),Ir=Dye(),fx=Rye(),mP=fx.plotColorPalette.split(",").map(e=>e.trim()),k_=!1,gP=!1},"clear"),Oye={getDrawableElem:GZe,clear:jZe,setAccTitle:Yt,getAccTitle:Qt,setDiagramTitle:ir,getDiagramTitle:er,getAccDescription:Jt,setAccDescription:Zt,setOrientation:NZe,setXAxisTitle:MZe,setXAxisRangeData:Iye,setXAxisBand:OZe,setYAxisTitle:PZe,setYAxisRangeData:BZe,setLineData:FZe,setBarData:VZe,setTmpSVGG:IZe,getChartThemeConfig:WZe,getChartConfig:zZe,getXYChartData:qZe}});var UZe,Bye,$ye=v(()=>{"use strict";nt();ga();Xr();UZe=a((e,t,r,i)=>{let n=i.db,s=n.getChartThemeConfig(),o=n.getChartConfig(),l=n.getXYChartData().plots[0].data.map(C=>C[1]);function u(C){return C==="top"?"text-before-edge":"middle"}a(u,"getDominantBaseLine");function h(C){return C==="left"?"start":C==="right"?"end":"middle"}a(h,"getTextAnchor");function d(C){return`translate(${C.x}, ${C.y}) rotate(${C.rotation||0})`}a(d,"getTextTransformation"),W.debug(`Rendering xychart chart
`+e);let f=Yr(t),p=f.append("g").attr("class","main"),m=p.append("rect").attr("width",o.width).attr("height",o.height).attr("class","background");fr(f,o.height,o.width,!0),f.attr("viewBox",`0 0 ${o.width} ${o.height}`),m.attr("fill",s.backgroundColor),n.setTmpSVGG(f.append("g").attr("class","mermaid-tmp-group"));let g=n.getDrawableElem(),x={};function b(C){let S=p,w="";for(let[_]of C.entries()){let L=p;_>0&&x[w]&&(L=x[w]),w+=C[_],S=x[w],S||(S=x[w]=L.append("g").attr("class",C[_]))}return S}a(b,"getGroup");for(let C of g){if(C.data.length===0)continue;let S=b(C.groupTexts);switch(C.type){case"rect":if(S.selectAll("rect").data(C.data).enter().append("rect").attr("x",w=>w.x).attr("y",w=>w.y).attr("width",w=>w.width).attr("height",w=>w.height).attr("fill",w=>w.fill).attr("stroke",w=>w.strokeFill).attr("stroke-width",w=>w.strokeWidth),o.showDataLabel){let w=o.showDataLabelOutsideBar;if(o.chartOrientation==="horizontal"){let B=function(A,D){let{data:R,label:N}=A;return D*N.length*.7<=R.width-10};var T=B;a(B,"fitsHorizontally");let _=.7,L=10,I=C.data.map((A,D)=>({data:A,label:l[D].toString()})).filter(A=>A.data.width>0&&A.data.height>0),G=I.map(A=>{let{data:D}=A,R=D.height*.7;for(;!B(A,R)&&R>0;)R-=1;return R}),P=Math.floor(Math.min(...G)),F=a(A=>w?A.data.x+A.data.width+10:A.data.x+A.data.width-10,"determineLabelXPosition");S.selectAll("text").data(I).enter().append("text").attr("x",F).attr("y",A=>A.data.y+A.data.height/2).attr("text-anchor",w?"start":"end").attr("dominant-baseline","middle").attr("fill",s.dataLabelColor).attr("font-size",`${P}px`).text(A=>A.label)}else{let I=function(F,A,D){let{data:R,label:N}=F,E=A*N.length*.7,M=R.x+R.width/2,V=M-E/2,O=M+E/2,z=V>=R.x&&O<=R.x+R.width,U=R.y+D+A<=R.y+R.height;return z&&U};var k=I;a(I,"fitsInBar");let _=10,L=C.data.map((F,A)=>({data:F,label:l[A].toString()})).filter(F=>F.data.width>0&&F.data.height>0),B=L.map(F=>{let{data:A,label:D}=F,R=A.width/(D.length*.7);for(;!I(F,R,10)&&R>0;)R-=1;return R}),G=Math.floor(Math.min(...B)),P=a(F=>w?F.data.y-10:F.data.y+10,"determineLabelYPosition");S.selectAll("text").data(L).enter().append("text").attr("x",F=>F.data.x+F.data.width/2).attr("y",P).attr("text-anchor","middle").attr("dominant-baseline",w?"auto":"hanging").attr("fill",s.dataLabelColor).attr("font-size",`${G}px`).text(F=>F.label)}}break;case"text":S.selectAll("text").data(C.data).enter().append("text").attr("x",0).attr("y",0).attr("fill",w=>w.fill).attr("font-size",w=>w.fontSize).attr("dominant-baseline",w=>u(w.verticalPos)).attr("text-anchor",w=>h(w.horizontalPos)).attr("transform",w=>d(w)).text(w=>w.text);break;case"path":S.selectAll("path").data(C.data).enter().append("path").attr("d",w=>w.path).attr("fill",w=>w.fill?w.fill:"none").attr("stroke",w=>w.strokeFill).attr("stroke-width",w=>w.strokeWidth);break}}},"draw"),Bye={draw:UZe}});var Fye={};tr(Fye,{diagram:()=>HZe});var HZe,Vye=v(()=>{"use strict";gye();Pye();$ye();HZe={parser:mye,db:Oye,renderer:Bye}});var xP,zye,qye=v(()=>{"use strict";xP=(function(){var e=a(function(oe,_e,re,Ke){for(re=re||{},Ke=oe.length;Ke--;re[oe[Ke]]=_e);return re},"o"),t=[1,3],r=[1,4],i=[1,5],n=[1,6],s=[5,6,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],o=[1,22],l=[2,7],u=[1,26],h=[1,27],d=[1,28],f=[1,29],p=[1,33],m=[1,34],g=[1,35],x=[1,36],b=[1,37],T=[1,38],k=[1,24],C=[1,31],S=[1,32],w=[1,30],_=[1,39],L=[1,40],I=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],B=[1,61],G=[89,90],P=[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],A=[1,70],D=[1,71],R=[1,72],N=[1,73],$=[1,74],E=[1,75],M=[1,76],V=[1,83],O=[1,80],z=[1,84],U=[1,85],K=[1,86],j=[1,87],ae=[1,88],X=[1,89],de=[1,90],le=[1,91],ge=[1,92],he=[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],te=[63,64],Le=[1,101],xe=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,76,77,89,90],ye=[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],be=[1,110],Ce=[1,106],Oe=[1,107],Ae=[1,108],st=[1,109],ce=[1,111],Mt=[1,116],fe=[1,117],Ue=[1,114],Je=[1,115],ot={trace:a(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:82,SPACE:83,BRKT:84,PCT:85,MINUS:86,LABEL:87,SEMICOLON:88,unqString:89,qString:90,$accept:0,$end:1},terminals_:{2:"error",5:"NEWLINE",6:"RD",8:"EOF",9:"acc_title",10:"acc_title_value",11:"acc_descr",12:"acc_descr_value",13:"acc_descr_multiline_value",21:"direction_tb",22:"direction_bt",23:"direction_rl",24:"direction_lr",27:"STRUCT_START",29:"STYLE_SEPARATOR",31:"ID",32:"COLONSEP",34:"TEXT",36:"RISK",38:"VERIFYMTHD",40:"STRUCT_STOP",41:"REQUIREMENT",42:"FUNCTIONAL_REQUIREMENT",43:"INTERFACE_REQUIREMENT",44:"PERFORMANCE_REQUIREMENT",45:"PHYSICAL_REQUIREMENT",46:"DESIGN_CONSTRAINT",47:"LOW_RISK",48:"MED_RISK",49:"HIGH_RISK",50:"VERIFY_ANALYSIS",51:"VERIFY_DEMONSTRATION",52:"VERIFY_INSPECTION",53:"VERIFY_TEST",54:"ELEMENT",57:"TYPE",59:"DOCREF",61:"END_ARROW_L",63:"LINE",64:"END_ARROW_R",65:"CONTAINS",66:"COPIES",67:"DERIVES",68:"SATISFIES",69:"VERIFIES",70:"REFINES",71:"TRACES",72:"CLASSDEF",74:"CLASS",75:"ALPHA",76:"COMMA",77:"STYLE",80:"NUM",81:"COLON",82:"UNIT",83:"SPACE",84:"BRKT",85:"PCT",86:"MINUS",87:"LABEL",88:"SEMICOLON",89:"unqString",90:"qString"},productions_:[0,[3,3],[3,2],[3,4],[4,2],[4,2],[4,1],[7,0],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[17,1],[17,1],[17,1],[17,1],[14,5],[14,7],[28,5],[28,5],[28,5],[28,5],[28,2],[28,1],[25,1],[25,1],[25,1],[25,1],[25,1],[25,1],[37,1],[37,1],[37,1],[39,1],[39,1],[39,1],[39,1],[15,5],[15,7],[56,5],[56,5],[56,2],[56,1],[16,5],[16,5],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[19,3],[20,3],[20,3],[30,1],[30,3],[30,1],[30,3],[18,3],[73,1],[73,3],[78,1],[78,2],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[26,1],[26,1],[33,1],[33,1],[35,1],[35,1],[55,1],[55,1],[58,1],[58,1],[60,1],[60,1]],performAction:a(function(_e,re,Ke,Q,Me,Y,dt){var Ge=Y.length-1;switch(Me){case 4:this.$=Y[Ge].trim(),Q.setAccTitle(this.$);break;case 5:case 6:this.$=Y[Ge].trim(),Q.setAccDescription(this.$);break;case 7:this.$=[];break;case 17:Q.setDirection("TB");break;case 18:Q.setDirection("BT");break;case 19:Q.setDirection("RL");break;case 20:Q.setDirection("LR");break;case 21:Q.addRequirement(Y[Ge-3],Y[Ge-4]);break;case 22:Q.addRequirement(Y[Ge-5],Y[Ge-6]),Q.setClass([Y[Ge-5]],Y[Ge-3]);break;case 23:Q.setNewReqId(Y[Ge-2]);break;case 24:Q.setNewReqText(Y[Ge-2]);break;case 25:Q.setNewReqRisk(Y[Ge-2]);break;case 26:Q.setNewReqVerifyMethod(Y[Ge-2]);break;case 29:this.$=Q.RequirementType.REQUIREMENT;break;case 30:this.$=Q.RequirementType.FUNCTIONAL_REQUIREMENT;break;case 31:this.$=Q.RequirementType.INTERFACE_REQUIREMENT;break;case 32:this.$=Q.RequirementType.PERFORMANCE_REQUIREMENT;break;case 33:this.$=Q.RequirementType.PHYSICAL_REQUIREMENT;break;case 34:this.$=Q.RequirementType.DESIGN_CONSTRAINT;break;case 35:this.$=Q.RiskLevel.LOW_RISK;break;case 36:this.$=Q.RiskLevel.MED_RISK;break;case 37:this.$=Q.RiskLevel.HIGH_RISK;break;case 38:this.$=Q.VerifyType.VERIFY_ANALYSIS;break;case 39:this.$=Q.VerifyType.VERIFY_DEMONSTRATION;break;case 40:this.$=Q.VerifyType.VERIFY_INSPECTION;break;case 41:this.$=Q.VerifyType.VERIFY_TEST;break;case 42:Q.addElement(Y[Ge-3]);break;case 43:Q.addElement(Y[Ge-5]),Q.setClass([Y[Ge-5]],Y[Ge-3]);break;case 44:Q.setNewElementType(Y[Ge-2]);break;case 45:Q.setNewElementDocRef(Y[Ge-2]);break;case 48:Q.addRelationship(Y[Ge-2],Y[Ge],Y[Ge-4]);break;case 49:Q.addRelationship(Y[Ge-2],Y[Ge-4],Y[Ge]);break;case 50:this.$=Q.Relationships.CONTAINS;break;case 51:this.$=Q.Relationships.COPIES;break;case 52:this.$=Q.Relationships.DERIVES;break;case 53:this.$=Q.Relationships.SATISFIES;break;case 54:this.$=Q.Relationships.VERIFIES;break;case 55:this.$=Q.Relationships.REFINES;break;case 56:this.$=Q.Relationships.TRACES;break;case 57:this.$=Y[Ge-2],Q.defineClass(Y[Ge-1],Y[Ge]);break;case 58:Q.setClass(Y[Ge-1],Y[Ge]);break;case 59:Q.setClass([Y[Ge-2]],Y[Ge]);break;case 60:case 62:this.$=[Y[Ge]];break;case 61:case 63:this.$=Y[Ge-2].concat([Y[Ge]]);break;case 64:this.$=Y[Ge-2],Q.setCssStyle(Y[Ge-1],Y[Ge]);break;case 65:this.$=[Y[Ge]];break;case 66:Y[Ge-2].push(Y[Ge]),this.$=Y[Ge-2];break;case 68:this.$=Y[Ge-1]+Y[Ge];break}},"anonymous"),table:[{3:1,4:2,6:t,9:r,11:i,13:n},{1:[3]},{3:8,4:2,5:[1,7],6:t,9:r,11:i,13:n},{5:[1,9]},{10:[1,10]},{12:[1,11]},e(s,[2,6]),{3:12,4:2,6:t,9:r,11:i,13:n},{1:[2,2]},{4:17,5:o,7:13,8:l,9:r,11:i,13:n,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:u,22:h,23:d,24:f,25:23,33:25,41:p,42:m,43:g,44:x,45:b,46:T,54:k,72:C,74:S,77:w,89:_,90:L},e(s,[2,4]),e(s,[2,5]),{1:[2,1]},{8:[1,41]},{4:17,5:o,7:42,8:l,9:r,11:i,13:n,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:u,22:h,23:d,24:f,25:23,33:25,41:p,42:m,43:g,44:x,45:b,46:T,54:k,72:C,74:S,77:w,89:_,90:L},{4:17,5:o,7:43,8:l,9:r,11:i,13:n,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:u,22:h,23:d,24:f,25:23,33:25,41:p,42:m,43:g,44:x,45:b,46:T,54:k,72:C,74:S,77:w,89:_,90:L},{4:17,5:o,7:44,8:l,9:r,11:i,13:n,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:u,22:h,23:d,24:f,25:23,33:25,41:p,42:m,43:g,44:x,45:b,46:T,54:k,72:C,74:S,77:w,89:_,90:L},{4:17,5:o,7:45,8:l,9:r,11:i,13:n,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:u,22:h,23:d,24:f,25:23,33:25,41:p,42:m,43:g,44:x,45:b,46:T,54:k,72:C,74:S,77:w,89:_,90:L},{4:17,5:o,7:46,8:l,9:r,11:i,13:n,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:u,22:h,23:d,24:f,25:23,33:25,41:p,42:m,43:g,44:x,45:b,46:T,54:k,72:C,74:S,77:w,89:_,90:L},{4:17,5:o,7:47,8:l,9:r,11:i,13:n,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:u,22:h,23:d,24:f,25:23,33:25,41:p,42:m,43:g,44:x,45:b,46:T,54:k,72:C,74:S,77:w,89:_,90:L},{4:17,5:o,7:48,8:l,9:r,11:i,13:n,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:u,22:h,23:d,24:f,25:23,33:25,41:p,42:m,43:g,44:x,45:b,46:T,54:k,72:C,74:S,77:w,89:_,90:L},{4:17,5:o,7:49,8:l,9:r,11:i,13:n,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:u,22:h,23:d,24:f,25:23,33:25,41:p,42:m,43:g,44:x,45:b,46:T,54:k,72:C,74:S,77:w,89:_,90:L},{4:17,5:o,7:50,8:l,9:r,11:i,13:n,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:u,22:h,23:d,24:f,25:23,33:25,41:p,42:m,43:g,44:x,45:b,46:T,54:k,72:C,74:S,77:w,89:_,90:L},{26:51,89:[1,52],90:[1,53]},{55:54,89:[1,55],90:[1,56]},{29:[1,59],61:[1,57],63:[1,58]},e(I,[2,17]),e(I,[2,18]),e(I,[2,19]),e(I,[2,20]),{30:60,33:62,75:B,89:_,90:L},{30:63,33:62,75:B,89:_,90:L},{30:64,33:62,75:B,89:_,90:L},e(G,[2,29]),e(G,[2,30]),e(G,[2,31]),e(G,[2,32]),e(G,[2,33]),e(G,[2,34]),e(P,[2,81]),e(P,[2,82]),{1:[2,3]},{8:[2,8]},{8:[2,9]},{8:[2,10]},{8:[2,11]},{8:[2,12]},{8:[2,13]},{8:[2,14]},{8:[2,15]},{8:[2,16]},{27:[1,65],29:[1,66]},e(F,[2,79]),e(F,[2,80]),{27:[1,67],29:[1,68]},e(F,[2,85]),e(F,[2,86]),{62:69,65:A,66:D,67:R,68:N,69:$,70:E,71:M},{62:77,65:A,66:D,67:R,68:N,69:$,70:E,71:M},{30:78,33:62,75:B,89:_,90:L},{73:79,75:V,76:O,78:81,79:82,80:z,81:U,82:K,83:j,84:ae,85:X,86:de,87:le,88:ge},e(he,[2,60]),e(he,[2,62]),{73:93,75:V,76:O,78:81,79:82,80:z,81:U,82:K,83:j,84:ae,85:X,86:de,87:le,88:ge},{30:94,33:62,75:B,76:O,89:_,90:L},{5:[1,95]},{30:96,33:62,75:B,89:_,90:L},{5:[1,97]},{30:98,33:62,75:B,89:_,90:L},{63:[1,99]},e(te,[2,50]),e(te,[2,51]),e(te,[2,52]),e(te,[2,53]),e(te,[2,54]),e(te,[2,55]),e(te,[2,56]),{64:[1,100]},e(I,[2,59],{76:O}),e(I,[2,64],{76:Le}),{33:103,75:[1,102],89:_,90:L},e(xe,[2,65],{79:104,75:V,80:z,81:U,82:K,83:j,84:ae,85:X,86:de,87:le,88:ge}),e(ye,[2,67]),e(ye,[2,69]),e(ye,[2,70]),e(ye,[2,71]),e(ye,[2,72]),e(ye,[2,73]),e(ye,[2,74]),e(ye,[2,75]),e(ye,[2,76]),e(ye,[2,77]),e(ye,[2,78]),e(I,[2,57],{76:Le}),e(I,[2,58],{76:O}),{5:be,28:105,31:Ce,34:Oe,36:Ae,38:st,40:ce},{27:[1,112],76:O},{5:Mt,40:fe,56:113,57:Ue,59:Je},{27:[1,118],76:O},{33:119,89:_,90:L},{33:120,89:_,90:L},{75:V,78:121,79:82,80:z,81:U,82:K,83:j,84:ae,85:X,86:de,87:le,88:ge},e(he,[2,61]),e(he,[2,63]),e(ye,[2,68]),e(I,[2,21]),{32:[1,122]},{32:[1,123]},{32:[1,124]},{32:[1,125]},{5:be,28:126,31:Ce,34:Oe,36:Ae,38:st,40:ce},e(I,[2,28]),{5:[1,127]},e(I,[2,42]),{32:[1,128]},{32:[1,129]},{5:Mt,40:fe,56:130,57:Ue,59:Je},e(I,[2,47]),{5:[1,131]},e(I,[2,48]),e(I,[2,49]),e(xe,[2,66],{79:104,75:V,80:z,81:U,82:K,83:j,84:ae,85:X,86:de,87:le,88:ge}),{33:132,89:_,90:L},{35:133,89:[1,134],90:[1,135]},{37:136,47:[1,137],48:[1,138],49:[1,139]},{39:140,50:[1,141],51:[1,142],52:[1,143],53:[1,144]},e(I,[2,27]),{5:be,28:145,31:Ce,34:Oe,36:Ae,38:st,40:ce},{58:146,89:[1,147],90:[1,148]},{60:149,89:[1,150],90:[1,151]},e(I,[2,46]),{5:Mt,40:fe,56:152,57:Ue,59:Je},{5:[1,153]},{5:[1,154]},{5:[2,83]},{5:[2,84]},{5:[1,155]},{5:[2,35]},{5:[2,36]},{5:[2,37]},{5:[1,156]},{5:[2,38]},{5:[2,39]},{5:[2,40]},{5:[2,41]},e(I,[2,22]),{5:[1,157]},{5:[2,87]},{5:[2,88]},{5:[1,158]},{5:[2,89]},{5:[2,90]},e(I,[2,43]),{5:be,28:159,31:Ce,34:Oe,36:Ae,38:st,40:ce},{5:be,28:160,31:Ce,34:Oe,36:Ae,38:st,40:ce},{5:be,28:161,31:Ce,34:Oe,36:Ae,38:st,40:ce},{5:be,28:162,31:Ce,34:Oe,36:Ae,38:st,40:ce},{5:Mt,40:fe,56:163,57:Ue,59:Je},{5:Mt,40:fe,56:164,57:Ue,59:Je},e(I,[2,23]),e(I,[2,24]),e(I,[2,25]),e(I,[2,26]),e(I,[2,44]),e(I,[2,45])],defaultActions:{8:[2,2],12:[2,1],41:[2,3],42:[2,8],43:[2,9],44:[2,10],45:[2,11],46:[2,12],47:[2,13],48:[2,14],49:[2,15],50:[2,16],134:[2,83],135:[2,84],137:[2,35],138:[2,36],139:[2,37],141:[2,38],142:[2,39],143:[2,40],144:[2,41],147:[2,87],148:[2,88],150:[2,89],151:[2,90]},parseError:a(function(_e,re){if(re.recoverable)this.trace(_e);else{var Ke=new Error(_e);throw Ke.hash=re,Ke}},"parseError"),parse:a(function(_e){var re=this,Ke=[0],Q=[],Me=[null],Y=[],dt=this.table,Ge="",ft=0,Be=0,tt=0,Ie=2,it=1,Ee=Y.slice.call(arguments,1),pt=Object.create(this.lexer),ie={yy:{}};for(var $t in this.yy)Object.prototype.hasOwnProperty.call(this.yy,$t)&&(ie.yy[$t]=this.yy[$t]);pt.setInput(_e,ie.yy),ie.yy.lexer=pt,ie.yy.parser=this,typeof pt.yylloc>"u"&&(pt.yylloc={});var ue=pt.yylloc;Y.push(ue);var vt=pt.options&&pt.options.ranges;typeof ie.yy.parseError=="function"?this.parseError=ie.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Lt(mt){Ke.length=Ke.length-2*mt,Me.length=Me.length-mt,Y.length=Y.length-mt}a(Lt,"popStack");function Nr(){var mt;return mt=Q.pop()||pt.lex()||it,typeof mt!="number"&&(mt instanceof Array&&(Q=mt,mt=Q.pop()),mt=re.symbols_[mt]||mt),mt}a(Nr,"lex");for(var gt,Pt,kt,H,at,ut,We={},Z,Re,Fe,Ye;;){if(kt=Ke[Ke.length-1],this.defaultActions[kt]?H=this.defaultActions[kt]:((gt===null||typeof gt>"u")&&(gt=Nr()),H=dt[kt]&&dt[kt][gt]),typeof H>"u"||!H.length||!H[0]){var zt="";Ye=[];for(Z in dt[kt])this.terminals_[Z]&&Z>Ie&&Ye.push("'"+this.terminals_[Z]+"'");pt.showPosition?zt="Parse error on line "+(ft+1)+`:
`+pt.showPosition()+`
Expecting `+Ye.join(", ")+", got '"+(this.terminals_[gt]||gt)+"'":zt="Parse error on line "+(ft+1)+": Unexpected "+(gt==it?"end of input":"'"+(this.terminals_[gt]||gt)+"'"),this.parseError(zt,{text:pt.match,token:this.terminals_[gt]||gt,line:pt.yylineno,loc:ue,expected:Ye})}if(H[0]instanceof Array&&H.length>1)throw new Error("Parse Error: multiple actions possible at state: "+kt+", token: "+gt);switch(H[0]){case 1:Ke.push(gt),Me.push(pt.yytext),Y.push(pt.yylloc),Ke.push(H[1]),gt=null,Pt?(gt=Pt,Pt=null):(Be=pt.yyleng,Ge=pt.yytext,ft=pt.yylineno,ue=pt.yylloc,tt>0&&tt--);break;case 2:if(Re=this.productions_[H[1]][1],We.$=Me[Me.length-Re],We._$={first_line:Y[Y.length-(Re||1)].first_line,last_line:Y[Y.length-1].last_line,first_column:Y[Y.length-(Re||1)].first_column,last_column:Y[Y.length-1].last_column},vt&&(We._$.range=[Y[Y.length-(Re||1)].range[0],Y[Y.length-1].range[1]]),ut=this.performAction.apply(We,[Ge,Be,ft,ie.yy,H[1],Me,Y].concat(Ee)),typeof ut<"u")return ut;Re&&(Ke=Ke.slice(0,-1*Re*2),Me=Me.slice(0,-1*Re),Y=Y.slice(0,-1*Re)),Ke.push(this.productions_[H[1]][0]),Me.push(We.$),Y.push(We._$),Fe=dt[Ke[Ke.length-2]][Ke[Ke.length-1]],Ke.push(Fe);break;case 3:return!0}}return!0},"parse")},Ne=(function(){var oe={EOF:1,parseError:a(function(re,Ke){if(this.yy.parser)this.yy.parser.parseError(re,Ke);else throw new Error(re)},"parseError"),setInput:a(function(_e,re){return this.yy=re||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:a(function(){var _e=this._input[0];this.yytext+=_e,this.yyleng++,this.offset++,this.match+=_e,this.matched+=_e;var re=_e.match(/(?:\r\n?|\n).*/g);return re?(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:a(function(_e){var re=_e.length,Ke=_e.split(/(?:\r\n?|\n)/g);this._input=_e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-re),this.offset-=re;var Q=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),Ke.length-1&&(this.yylineno-=Ke.length-1);var Me=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:Ke?(Ke.length===Q.length?this.yylloc.first_column:0)+Q[Q.length-Ke.length].length-Ke[0].length:this.yylloc.first_column-re},this.options.ranges&&(this.yylloc.range=[Me[0],Me[0]+this.yyleng-re]),this.yyleng=this.yytext.length,this},"unput"),more:a(function(){return this._more=!0,this},"more"),reject:a(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:a(function(_e){this.unput(this.match.slice(_e))},"less"),pastInput:a(function(){var _e=this.matched.substr(0,this.matched.length-this.match.length);return(_e.length>20?"...":"")+_e.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:a(function(){var _e=this.match;return _e.length<20&&(_e+=this._input.substr(0,20-_e.length)),(_e.substr(0,20)+(_e.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:a(function(){var _e=this.pastInput(),re=new Array(_e.length+1).join("-");return _e+this.upcomingInput()+`
`+re+"^"},"showPosition"),test_match:a(function(_e,re){var Ke,Q,Me;if(this.options.backtrack_lexer&&(Me={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&&(Me.yylloc.range=this.yylloc.range.slice(0))),Q=_e[0].match(/(?:\r\n?|\n).*/g),Q&&(this.yylineno+=Q.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Q?Q[Q.length-1].length-Q[Q.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],Ke=this.performAction.call(this,this.yy,this,re,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),Ke)return Ke;if(this._backtrack){for(var Y in Me)this[Y]=Me[Y];return!1}return!1},"test_match"),next:a(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var _e,re,Ke,Q;this._more||(this.yytext="",this.match="");for(var Me=this._currentRules(),Y=0;Y<Me.length;Y++)if(Ke=this._input.match(this.rules[Me[Y]]),Ke&&(!re||Ke[0].length>re[0].length)){if(re=Ke,Q=Y,this.options.backtrack_lexer){if(_e=this.test_match(Ke,Me[Y]),_e!==!1)return _e;if(this._backtrack){re=!1;continue}else return!1}else if(!this.options.flex)break}return re?(_e=this.test_match(re,Me[Q]),_e!==!1?_e:!1):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:a(function(){var re=this.next();return re||this.lex()},"lex"),begin:a(function(re){this.conditionStack.push(re)},"begin"),popState:a(function(){var re=this.conditionStack.length-1;return re>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:a(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:a(function(re){return re=this.conditionStack.length-1-Math.abs(re||0),re>=0?this.conditionStack[re]:"INITIAL"},"topState"),pushState:a(function(re){this.begin(re)},"pushState"),stateStackSize:a(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:a(function(re,Ke,Q,Me){var Y=Me;switch(Q){case 0:return"title";case 1:return this.begin("acc_title"),9;break;case 2:return this.popState(),"acc_title_value";break;case 3:return this.begin("acc_descr"),11;break;case 4:return this.popState(),"acc_descr_value";break;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:break;case 14:break;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;break;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;break;case 60:return this.begin("style"),74;break;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 Ke.yytext=Ke.yytext.trim(),89;break;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}}};return oe})();ot.lexer=Ne;function ze(){this.yy={}}return a(ze,"Parser"),ze.prototype=ot,ot.Parser=ze,new ze})();xP.parser=xP;zye=xP});var C_,jye=v(()=>{"use strict";bt();nt();zr();C_=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:"Analysis",VERIFY_DEMONSTRATION:"Demonstration",VERIFY_INSPECTION:"Inspection",VERIFY_TEST:"Test"};this.Relationships={CONTAINS:"contains",COPIES:"copies",DERIVES:"derives",SATISFIES:"satisfies",VERIFIES:"verifies",REFINES:"refines",TRACES:"traces"};this.setAccTitle=Yt;this.getAccTitle=Qt;this.setAccDescription=Zt;this.getAccDescription=Jt;this.setDiagramTitle=ir;this.getDiagramTitle=er;this.getConfig=a(()=>J().requirement,"getConfig");this.clear(),this.setDirection=this.setDirection.bind(this),this.addRequirement=this.addRequirement.bind(this),this.setNewReqId=this.setNewReqId.bind(this),this.setNewReqRisk=this.setNewReqRisk.bind(this),this.setNewReqText=this.setNewReqText.bind(this),this.setNewReqVerifyMethod=this.setNewReqVerifyMethod.bind(this),this.addElement=this.addElement.bind(this),this.setNewElementType=this.setNewElementType.bind(this),this.setNewElementDocRef=this.setNewElementDocRef.bind(this),this.addRelationship=this.addRelationship.bind(this),this.setCssStyle=this.setCssStyle.bind(this),this.setClass=this.setClass.bind(this),this.defineClass=this.defineClass.bind(this),this.setAccTitle=this.setAccTitle.bind(this),this.setAccDescription=this.setAccDescription.bind(this)}static{a(this,"RequirementDB")}getDirection(){return this.direction}setDirection(t){this.direction=t}resetLatestRequirement(){this.latestRequirement=this.getInitialRequirement()}resetLatestElement(){this.latestElement=this.getInitialElement()}getInitialRequirement(){return{requirementId:"",text:"",risk:"",verifyMethod:"",name:"",type:"",cssStyles:[],classes:["default"]}}getInitialElement(){return{name:"",type:"",docRef:"",cssStyles:[],classes:["default"]}}addRequirement(t,r){return this.requirements.has(t)||this.requirements.set(t,{name:t,type:r,requirementId:this.latestRequirement.requirementId,text:this.latestRequirement.text,risk:this.latestRequirement.risk,verifyMethod:this.latestRequirement.verifyMethod,cssStyles:[],classes:["default"]}),this.resetLatestRequirement(),this.requirements.get(t)}getRequirements(){return this.requirements}setNewReqId(t){this.latestRequirement!==void 0&&(this.latestRequirement.requirementId=t)}setNewReqText(t){this.latestRequirement!==void 0&&(this.latestRequirement.text=t)}setNewReqRisk(t){this.latestRequirement!==void 0&&(this.latestRequirement.risk=t)}setNewReqVerifyMethod(t){this.latestRequirement!==void 0&&(this.latestRequirement.verifyMethod=t)}addElement(t){return this.elements.has(t)||(this.elements.set(t,{name:t,type:this.latestElement.type,docRef:this.latestElement.docRef,cssStyles:[],classes:["default"]}),W.info("Added new element: ",t)),this.resetLatestElement(),this.elements.get(t)}getElements(){return this.elements}setNewElementType(t){this.latestElement!==void 0&&(this.latestElement.type=t)}setNewElementDocRef(t){this.latestElement!==void 0&&(this.latestElement.docRef=t)}addRelationship(t,r,i){this.relations.push({type:t,src:r,dst:i})}getRelationships(){return this.relations}clear(){this.relations=[],this.resetLatestRequirement(),this.requirements=new Map,this.resetLatestElement(),this.elements=new Map,this.classes=new Map,Ht()}setCssStyle(t,r){for(let i of t){let n=this.requirements.get(i)??this.elements.get(i);if(!r||!n)return;for(let s of r)s.includes(",")?n.cssStyles.push(...s.split(",")):n.cssStyles.push(s)}}setClass(t,r){for(let i of t){let n=this.requirements.get(i)??this.elements.get(i);if(n)for(let s of r){n.classes.push(s);let o=this.classes.get(s)?.styles;o&&n.cssStyles.push(...o)}}}defineClass(t,r){for(let i of t){let n=this.classes.get(i);n===void 0&&(n={id:i,styles:[],textStyles:[]},this.classes.set(i,n)),r&&r.forEach(function(s){if(/color/.exec(s)){let o=s.replace("fill","bgFill");n.textStyles.push(o)}n.styles.push(s)}),this.requirements.forEach(s=>{s.classes.includes(i)&&s.cssStyles.push(...r.flatMap(o=>o.split(",")))}),this.elements.forEach(s=>{s.classes.includes(i)&&s.cssStyles.push(...r.flatMap(o=>o.split(",")))})}}getClasses(){return this.classes}getData(){let t=J(),r=[],i=[];for(let n of this.requirements.values()){let s=n;s.id=n.name,s.cssStyles=n.cssStyles,s.cssClasses=n.classes.join(" "),s.shape="requirementBox",s.look=t.look,s.colorIndex=r.length,r.push(s)}for(let n of this.elements.values()){let s=n;s.shape="requirementBox",s.look=t.look,s.id=n.name,s.cssStyles=n.cssStyles,s.cssClasses=n.classes.join(" "),s.colorIndex=r.length,r.push(s)}for(let n of this.relations){let s=0,o=n.type===this.Relationships.CONTAINS,l={id:`${n.src}-${n.dst}-${s}`,start:this.requirements.get(n.src)?.name??this.elements.get(n.src)?.name,end:this.requirements.get(n.dst)?.name??this.elements.get(n.dst)?.name,label:`<<${n.type}>>`,classes:"relationshipLine",style:["fill:none",o?"":"stroke-dasharray: 10,7"],labelpos:"c",thickness:"normal",type:"normal",pattern:o?"normal":"dashed",arrowTypeStart:o?"requirement_contains":"",arrowTypeEnd:o?"":"requirement_arrow",look:t.look,labelType:"markdown"};i.push(l),s++}return{nodes:r,edges:i,other:{},config:t,direction:this.getDirection()}}}});var QZe,ZZe,Uye,Hye=v(()=>{"use strict";Xt();QZe=a(e=>{let t=ct(),{themeVariables:r,look:i}=t,{bkgColorArray:n,borderColorArray:s}=r;if(!s?.length)return"";let o="";for(let l=0;l<e.THEME_COLOR_LIMIT;l++)o+=`
[data-look="${i}"][data-color-id="color-${l}"].node path {
stroke: ${s[l]};
fill: ${n?.length?n[l]:""};
}
[data-look="${i}"][data-color-id="color-${l}"].node rect {
stroke: ${s[l]};
fill: ${n?.length?n[l]:""};
}
`;return o},"genColor"),ZZe=a(e=>{let t=ct(),{look:r,themeVariables:i}=t,{requirementEdgeLabelBackground:n}=i;return`
${QZe(e)}
marker {
fill: ${e.relationColor};
stroke: ${e.relationColor};
}
marker.cross {
stroke: ${e.lineColor};
}
svg {
font-family: ${e.fontFamily};
font-size: ${e.fontSize};
}
.reqBox {
fill: ${e.requirementBackground};
fill-opacity: 1.0;
stroke: ${e.requirementBorderColor};
stroke-width: ${e.requirementBorderSize};
}
.reqTitle, .reqLabel{
fill: ${e.requirementTextColor};
}
.reqLabelBox {
fill: ${e.relationLabelBackground};
fill-opacity: 1.0;
}
.req-title-line {
stroke: ${e.requirementBorderColor};
stroke-width: ${e.requirementBorderSize};
}
.relationshipLine {
stroke: ${e.relationColor};
stroke-width: ${r==="neo"?e.strokeWidth:"1px"};
}
.relationshipLabel {
fill: ${e.relationLabelColor};
}
.edgeLabel {
background-color: ${e.edgeLabelBackground};
}
.edgeLabel .label rect {
fill: ${e.edgeLabelBackground};
}
.edgeLabel .label text {
fill: ${e.relationLabelColor};
}
.divider {
stroke: ${e.nodeBorder};
stroke-width: 1;
}
.label {
font-family: ${e.fontFamily};
color: ${e.nodeTextColor||e.textColor};
}
.label text,span {
fill: ${e.nodeTextColor||e.textColor};
color: ${e.nodeTextColor||e.textColor};
}
.labelBkg {
background-color: ${n??e.edgeLabelBackground};
}
`},"getStyles"),Uye=ZZe});var bP={};tr(bP,{draw:()=>JZe});var JZe,Yye=v(()=>{"use strict";bt();nt();hp();Yh();Kh();Et();JZe=a(async function(e,t,r,i){W.info("REF0:"),W.info("Drawing requirement diagram (unified)",t);let{securityLevel:n,state:s,layout:o,look:l}=J(),u=i.db.getData(),h=So(t,n);u.type=i.type,u.layoutAlgorithm=uu(o),u.nodeSpacing=s?.nodeSpacing??50,u.rankSpacing=s?.rankSpacing??50,u.markers=l==="neo"?["requirement_contains_neo","requirement_arrow_neo"]:["requirement_contains","requirement_arrow"],u.diagramId=t,await Oo(u,h);let d=8;St.insertTitle(h,"requirementDiagramTitleText",s?.titleTopMargin??25,i.db.getDiagramTitle()),os(h,d,"requirementDiagram",s?.useMaxWidth??!0)},"draw")});var Kye={};tr(Kye,{diagram:()=>eJe});var eJe,Xye=v(()=>{"use strict";qye();jye();Hye();Yye();eJe={parser:zye,get db(){return new C_},renderer:bP,styles:Uye}});var TP,Jye,e0e=v(()=>{"use strict";TP=(function(){var e=a(function(Be,tt,Ie,it){for(Ie=Ie||{},it=Be.length;it--;Ie[Be[it]]=tt);return Ie},"o"),t=[1,2],r=[1,3],i=[1,4],n=[2,4],s=[1,9],o=[1,11],l=[1,12],u=[1,14],h=[1,15],d=[1,17],f=[1,18],p=[1,19],m=[1,25],g=[1,26],x=[1,27],b=[1,28],T=[1,29],k=[1,30],C=[1,31],S=[1,32],w=[1,33],_=[1,34],L=[1,35],I=[1,36],B=[1,37],G=[1,38],P=[1,39],F=[1,40],A=[1,42],D=[1,43],R=[1,44],N=[1,45],$=[1,46],E=[1,47],M=[1,4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,48,49,50,51,53,54,56,61,62,63,64,73],V=[1,74],O=[1,80],z=[1,81],U=[1,82],K=[1,83],j=[1,84],ae=[1,85],X=[1,86],de=[1,87],le=[1,88],ge=[1,89],he=[1,90],te=[1,91],Le=[1,92],xe=[1,93],ye=[1,94],be=[1,95],Ce=[1,96],Oe=[1,97],Ae=[1,98],st=[1,99],ce=[1,100],Mt=[1,101],fe=[1,102],Ue=[1,103],Je=[1,104],ot=[1,105],Ne=[2,78],ze=[4,5,17,51,53,54],oe=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,51,53,54,56,61,62,63,64,73],_e=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,50,51,53,54,56,61,62,63,64,73],re=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,49,51,53,54,56,61,62,63,64,73],Ke=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,48,51,53,54,56,61,62,63,64,73],Q=[5,52],Me=[70,71,72,73],Y=[1,151],dt={trace:a(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,SD:6,document:7,line:8,statement:9,INVALID:10,box_section:11,box_line:12,participant_statement:13,create:14,box:15,restOfLine:16,end:17,signal:18,autonumber:19,NUM:20,off:21,activate:22,actor:23,deactivate:24,note_statement:25,links_statement:26,link_statement:27,properties_statement:28,details_statement: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:40,else_sections:41,par:42,par_sections:43,par_over:44,critical:45,option_sections:46,break:47,option:48,and:49,else:50,participant:51,AS:52,participant_actor:53,destroy:54,actor_with_config:55,note:56,placement:57,text2:58,over:59,actor_pair:60,links:61,link:62,properties:63,details:64,spaceList:65,",":66,left_of:67,right_of:68,signaltype:69,"+":70,"-":71,"()":72,ACTOR:73,config_object:74,CONFIG_START:75,CONFIG_CONTENT:76,CONFIG_END:77,SOLID_OPEN_ARROW:78,DOTTED_OPEN_ARROW:79,SOLID_ARROW:80,SOLID_ARROW_TOP:81,SOLID_ARROW_BOTTOM:82,STICK_ARROW_TOP:83,STICK_ARROW_BOTTOM:84,SOLID_ARROW_TOP_DOTTED:85,SOLID_ARROW_BOTTOM_DOTTED:86,STICK_ARROW_TOP_DOTTED:87,STICK_ARROW_BOTTOM_DOTTED:88,SOLID_ARROW_TOP_REVERSE:89,SOLID_ARROW_BOTTOM_REVERSE:90,STICK_ARROW_TOP_REVERSE:91,STICK_ARROW_BOTTOM_REVERSE:92,SOLID_ARROW_TOP_REVERSE_DOTTED:93,SOLID_ARROW_BOTTOM_REVERSE_DOTTED:94,STICK_ARROW_TOP_REVERSE_DOTTED:95,STICK_ARROW_BOTTOM_REVERSE_DOTTED:96,BIDIRECTIONAL_SOLID_ARROW:97,DOTTED_ARROW:98,BIDIRECTIONAL_DOTTED_ARROW:99,SOLID_CROSS:100,DOTTED_CROSS:101,SOLID_POINT:102,DOTTED_POINT:103,TXT:104,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NEWLINE",6:"SD",10:"INVALID",14:"create",15:"box",16:"restOfLine",17:"end",19:"autonumber",20:"NUM",21:"off",22:"activate",24:"deactivate",30:"title",31:"legacy_title",32:"acc_title",33:"acc_title_value",34:"acc_descr",35:"acc_descr_value",36:"acc_descr_multiline_value",37:"loop",38:"rect",39:"opt",40:"alt",42:"par",44:"par_over",45:"critical",47:"break",48:"option",49:"and",50:"else",51:"participant",52:"AS",53:"participant_actor",54:"destroy",56:"note",59:"over",61:"links",62:"link",63:"properties",64:"details",66:",",67:"left_of",68:"right_of",70:"+",71:"-",72:"()",73:"ACTOR",75:"CONFIG_START",76:"CONFIG_CONTENT",77:"CONFIG_END",78:"SOLID_OPEN_ARROW",79:"DOTTED_OPEN_ARROW",80:"SOLID_ARROW",81:"SOLID_ARROW_TOP",82:"SOLID_ARROW_BOTTOM",83:"STICK_ARROW_TOP",84:"STICK_ARROW_BOTTOM",85:"SOLID_ARROW_TOP_DOTTED",86:"SOLID_ARROW_BOTTOM_DOTTED",87:"STICK_ARROW_TOP_DOTTED",88:"STICK_ARROW_BOTTOM_DOTTED",89:"SOLID_ARROW_TOP_REVERSE",90:"SOLID_ARROW_BOTTOM_REVERSE",91:"STICK_ARROW_TOP_REVERSE",92:"STICK_ARROW_BOTTOM_REVERSE",93:"SOLID_ARROW_TOP_REVERSE_DOTTED",94:"SOLID_ARROW_BOTTOM_REVERSE_DOTTED",95:"STICK_ARROW_TOP_REVERSE_DOTTED",96:"STICK_ARROW_BOTTOM_REVERSE_DOTTED",97:"BIDIRECTIONAL_SOLID_ARROW",98:"DOTTED_ARROW",99:"BIDIRECTIONAL_DOTTED_ARROW",100:"SOLID_CROSS",101:"DOTTED_CROSS",102:"SOLID_POINT",103:"DOTTED_POINT",104:"TXT"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[8,1],[11,0],[11,2],[12,2],[12,1],[12,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],[46,1],[46,4],[43,1],[43,4],[41,1],[41,4],[13,5],[13,3],[13,5],[13,3],[13,3],[13,5],[13,3],[13,5],[13,3],[25,4],[25,4],[26,3],[27,3],[28,3],[29,3],[65,2],[65,1],[60,3],[60,1],[57,1],[57,1],[18,5],[18,5],[18,5],[18,5],[18,6],[18,4],[55,2],[74,3],[23,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[58,1]],performAction:a(function(tt,Ie,it,Ee,pt,ie,$t){var ue=ie.length-1;switch(pt){case 3:return Ee.apply(ie[ue]),ie[ue];break;case 4:case 10:this.$=[];break;case 5:case 11:ie[ue-1].push(ie[ue]),this.$=ie[ue-1];break;case 6:case 7:case 12:case 13:this.$=ie[ue];break;case 8:case 9:case 14:this.$=[];break;case 16:ie[ue].type="createParticipant",this.$=ie[ue];break;case 17:ie[ue-1].unshift({type:"boxStart",boxData:Ee.parseBoxData(ie[ue-2])}),ie[ue-1].push({type:"boxEnd",boxText:ie[ue-2]}),this.$=ie[ue-1];break;case 19:this.$={type:"sequenceIndex",sequenceIndex:Number(ie[ue-2]),sequenceIndexStep:Number(ie[ue-1]),sequenceVisible:!0,signalType:Ee.LINETYPE.AUTONUMBER};break;case 20:this.$={type:"sequenceIndex",sequenceIndex:Number(ie[ue-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:Ee.LINETYPE.AUTONUMBER};break;case 21:this.$={type:"sequenceIndex",sequenceVisible:!1,signalType:Ee.LINETYPE.AUTONUMBER};break;case 22:this.$={type:"sequenceIndex",sequenceVisible:!0,signalType:Ee.LINETYPE.AUTONUMBER};break;case 23:this.$={type:"activeStart",signalType:Ee.LINETYPE.ACTIVE_START,actor:ie[ue-1].actor};break;case 24:this.$={type:"activeEnd",signalType:Ee.LINETYPE.ACTIVE_END,actor:ie[ue-1].actor};break;case 30:Ee.setDiagramTitle(ie[ue].substring(6)),this.$=ie[ue].substring(6);break;case 31:Ee.setDiagramTitle(ie[ue].substring(7)),this.$=ie[ue].substring(7);break;case 32:this.$=ie[ue].trim(),Ee.setAccTitle(this.$);break;case 33:case 34:this.$=ie[ue].trim(),Ee.setAccDescription(this.$);break;case 35:ie[ue-1].unshift({type:"loopStart",loopText:Ee.parseMessage(ie[ue-2]),signalType:Ee.LINETYPE.LOOP_START}),ie[ue-1].push({type:"loopEnd",loopText:ie[ue-2],signalType:Ee.LINETYPE.LOOP_END}),this.$=ie[ue-1];break;case 36:ie[ue-1].unshift({type:"rectStart",color:Ee.parseMessage(ie[ue-2]),signalType:Ee.LINETYPE.RECT_START}),ie[ue-1].push({type:"rectEnd",color:Ee.parseMessage(ie[ue-2]),signalType:Ee.LINETYPE.RECT_END}),this.$=ie[ue-1];break;case 37:ie[ue-1].unshift({type:"optStart",optText:Ee.parseMessage(ie[ue-2]),signalType:Ee.LINETYPE.OPT_START}),ie[ue-1].push({type:"optEnd",optText:Ee.parseMessage(ie[ue-2]),signalType:Ee.LINETYPE.OPT_END}),this.$=ie[ue-1];break;case 38:ie[ue-1].unshift({type:"altStart",altText:Ee.parseMessage(ie[ue-2]),signalType:Ee.LINETYPE.ALT_START}),ie[ue-1].push({type:"altEnd",signalType:Ee.LINETYPE.ALT_END}),this.$=ie[ue-1];break;case 39:ie[ue-1].unshift({type:"parStart",parText:Ee.parseMessage(ie[ue-2]),signalType:Ee.LINETYPE.PAR_START}),ie[ue-1].push({type:"parEnd",signalType:Ee.LINETYPE.PAR_END}),this.$=ie[ue-1];break;case 40:ie[ue-1].unshift({type:"parStart",parText:Ee.parseMessage(ie[ue-2]),signalType:Ee.LINETYPE.PAR_OVER_START}),ie[ue-1].push({type:"parEnd",signalType:Ee.LINETYPE.PAR_END}),this.$=ie[ue-1];break;case 41:ie[ue-1].unshift({type:"criticalStart",criticalText:Ee.parseMessage(ie[ue-2]),signalType:Ee.LINETYPE.CRITICAL_START}),ie[ue-1].push({type:"criticalEnd",signalType:Ee.LINETYPE.CRITICAL_END}),this.$=ie[ue-1];break;case 42:ie[ue-1].unshift({type:"breakStart",breakText:Ee.parseMessage(ie[ue-2]),signalType:Ee.LINETYPE.BREAK_START}),ie[ue-1].push({type:"breakEnd",optText:Ee.parseMessage(ie[ue-2]),signalType:Ee.LINETYPE.BREAK_END}),this.$=ie[ue-1];break;case 44:this.$=ie[ue-3].concat([{type:"option",optionText:Ee.parseMessage(ie[ue-1]),signalType:Ee.LINETYPE.CRITICAL_OPTION},ie[ue]]);break;case 46:this.$=ie[ue-3].concat([{type:"and",parText:Ee.parseMessage(ie[ue-1]),signalType:Ee.LINETYPE.PAR_AND},ie[ue]]);break;case 48:this.$=ie[ue-3].concat([{type:"else",altText:Ee.parseMessage(ie[ue-1]),signalType:Ee.LINETYPE.ALT_ELSE},ie[ue]]);break;case 49:ie[ue-3].draw="participant",ie[ue-3].type="addParticipant",ie[ue-3].description=Ee.parseMessage(ie[ue-1]),this.$=ie[ue-3];break;case 50:ie[ue-1].draw="participant",ie[ue-1].type="addParticipant",this.$=ie[ue-1];break;case 51:ie[ue-3].draw="actor",ie[ue-3].type="addParticipant",ie[ue-3].description=Ee.parseMessage(ie[ue-1]),this.$=ie[ue-3];break;case 52:case 57:ie[ue-1].draw="actor",ie[ue-1].type="addParticipant",this.$=ie[ue-1];break;case 53:ie[ue-1].type="destroyParticipant",this.$=ie[ue-1];break;case 54:ie[ue-3].draw="participant",ie[ue-3].type="addParticipant",ie[ue-3].description=Ee.parseMessage(ie[ue-1]),this.$=ie[ue-3];break;case 55:ie[ue-1].draw="participant",ie[ue-1].type="addParticipant",this.$=ie[ue-1];break;case 56:ie[ue-3].draw="actor",ie[ue-3].type="addParticipant",ie[ue-3].description=Ee.parseMessage(ie[ue-1]),this.$=ie[ue-3];break;case 58:this.$=[ie[ue-1],{type:"addNote",placement:ie[ue-2],actor:ie[ue-1].actor,text:ie[ue]}];break;case 59:ie[ue-2]=[].concat(ie[ue-1],ie[ue-1]).slice(0,2),ie[ue-2][0]=ie[ue-2][0].actor,ie[ue-2][1]=ie[ue-2][1].actor,this.$=[ie[ue-1],{type:"addNote",placement:Ee.PLACEMENT.OVER,actor:ie[ue-2].slice(0,2),text:ie[ue]}];break;case 60:this.$=[ie[ue-1],{type:"addLinks",actor:ie[ue-1].actor,text:ie[ue]}];break;case 61:this.$=[ie[ue-1],{type:"addALink",actor:ie[ue-1].actor,text:ie[ue]}];break;case 62:this.$=[ie[ue-1],{type:"addProperties",actor:ie[ue-1].actor,text:ie[ue]}];break;case 63:this.$=[ie[ue-1],{type:"addDetails",actor:ie[ue-1].actor,text:ie[ue]}];break;case 66:this.$=[ie[ue-2],ie[ue]];break;case 67:this.$=ie[ue];break;case 68:this.$=Ee.PLACEMENT.LEFTOF;break;case 69:this.$=Ee.PLACEMENT.RIGHTOF;break;case 70:this.$=[ie[ue-4],ie[ue-1],{type:"addMessage",from:ie[ue-4].actor,to:ie[ue-1].actor,signalType:ie[ue-3],msg:ie[ue],activate:!0},{type:"activeStart",signalType:Ee.LINETYPE.ACTIVE_START,actor:ie[ue-1].actor}];break;case 71:this.$=[ie[ue-4],ie[ue-1],{type:"addMessage",from:ie[ue-4].actor,to:ie[ue-1].actor,signalType:ie[ue-3],msg:ie[ue]},{type:"activeEnd",signalType:Ee.LINETYPE.ACTIVE_END,actor:ie[ue-4].actor}];break;case 72:this.$=[ie[ue-4],ie[ue-1],{type:"addMessage",from:ie[ue-4].actor,to:ie[ue-1].actor,signalType:ie[ue-3],msg:ie[ue],activate:!0,centralConnection:Ee.LINETYPE.CENTRAL_CONNECTION},{type:"centralConnection",signalType:Ee.LINETYPE.CENTRAL_CONNECTION,actor:ie[ue-1].actor}];break;case 73:this.$=[ie[ue-4],ie[ue-1],{type:"addMessage",from:ie[ue-4].actor,to:ie[ue-1].actor,signalType:ie[ue-2],msg:ie[ue],activate:!1,centralConnection:Ee.LINETYPE.CENTRAL_CONNECTION_REVERSE},{type:"centralConnectionReverse",signalType:Ee.LINETYPE.CENTRAL_CONNECTION_REVERSE,actor:ie[ue-4].actor}];break;case 74:this.$=[ie[ue-5],ie[ue-1],{type:"addMessage",from:ie[ue-5].actor,to:ie[ue-1].actor,signalType:ie[ue-3],msg:ie[ue],activate:!0,centralConnection:Ee.LINETYPE.CENTRAL_CONNECTION_DUAL},{type:"centralConnection",signalType:Ee.LINETYPE.CENTRAL_CONNECTION,actor:ie[ue-1].actor},{type:"centralConnectionReverse",signalType:Ee.LINETYPE.CENTRAL_CONNECTION_REVERSE,actor:ie[ue-5].actor}];break;case 75:this.$=[ie[ue-3],ie[ue-1],{type:"addMessage",from:ie[ue-3].actor,to:ie[ue-1].actor,signalType:ie[ue-2],msg:ie[ue]}];break;case 76:this.$={type:"addParticipant",actor:ie[ue-1],config:ie[ue]};break;case 77:this.$=ie[ue-1].trim();break;case 78:this.$={type:"addParticipant",actor:ie[ue]};break;case 79:this.$=Ee.LINETYPE.SOLID_OPEN;break;case 80:this.$=Ee.LINETYPE.DOTTED_OPEN;break;case 81:this.$=Ee.LINETYPE.SOLID;break;case 82:this.$=Ee.LINETYPE.SOLID_TOP;break;case 83:this.$=Ee.LINETYPE.SOLID_BOTTOM;break;case 84:this.$=Ee.LINETYPE.STICK_TOP;break;case 85:this.$=Ee.LINETYPE.STICK_BOTTOM;break;case 86:this.$=Ee.LINETYPE.SOLID_TOP_DOTTED;break;case 87:this.$=Ee.LINETYPE.SOLID_BOTTOM_DOTTED;break;case 88:this.$=Ee.LINETYPE.STICK_TOP_DOTTED;break;case 89:this.$=Ee.LINETYPE.STICK_BOTTOM_DOTTED;break;case 90:this.$=Ee.LINETYPE.SOLID_ARROW_TOP_REVERSE;break;case 91:this.$=Ee.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE;break;case 92:this.$=Ee.LINETYPE.STICK_ARROW_TOP_REVERSE;break;case 93:this.$=Ee.LINETYPE.STICK_ARROW_BOTTOM_REVERSE;break;case 94:this.$=Ee.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED;break;case 95:this.$=Ee.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED;break;case 96:this.$=Ee.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED;break;case 97:this.$=Ee.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED;break;case 98:this.$=Ee.LINETYPE.BIDIRECTIONAL_SOLID;break;case 99:this.$=Ee.LINETYPE.DOTTED;break;case 100:this.$=Ee.LINETYPE.BIDIRECTIONAL_DOTTED;break;case 101:this.$=Ee.LINETYPE.SOLID_CROSS;break;case 102:this.$=Ee.LINETYPE.DOTTED_CROSS;break;case 103:this.$=Ee.LINETYPE.SOLID_POINT;break;case 104:this.$=Ee.LINETYPE.DOTTED_POINT;break;case 105:this.$=Ee.parseMessage(ie[ue].trim().substring(1));break}},"anonymous"),table:[{3:1,4:t,5:r,6:i},{1:[3]},{3:5,4:t,5:r,6:i},{3:6,4:t,5:r,6:i},e([1,4,5,10,14,15,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,51,53,54,56,61,62,63,64,73],n,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:s,5:o,8:8,9:10,10:l,13:13,14:u,15:h,18:16,19:d,22:f,23:41,24:p,25:20,26:21,27:22,28:23,29:24,30:m,31:g,32:x,34:b,36:T,37:k,38:C,39:S,40:w,42:_,44:L,45:I,47:B,51:G,53:P,54:F,56:A,61:D,62:R,63:N,64:$,73:E},e(M,[2,5]),{9:48,13:13,14:u,15:h,18:16,19:d,22:f,23:41,24:p,25:20,26:21,27:22,28:23,29:24,30:m,31:g,32:x,34:b,36:T,37:k,38:C,39:S,40:w,42:_,44:L,45:I,47:B,51:G,53:P,54:F,56:A,61:D,62:R,63:N,64:$,73:E},e(M,[2,7]),e(M,[2,8]),e(M,[2,9]),e(M,[2,15]),{13:49,51:G,53:P,54:F},{16:[1,50]},{5:[1,51]},{5:[1,54],20:[1,52],21:[1,53]},{23:55,73:E},{23:56,73:E},{5:[1,57]},{5:[1,58]},{5:[1,59]},{5:[1,60]},{5:[1,61]},e(M,[2,30]),e(M,[2,31]),{33:[1,62]},{35:[1,63]},e(M,[2,34]),{16:[1,64]},{16:[1,65]},{16:[1,66]},{16:[1,67]},{16:[1,68]},{16:[1,69]},{16:[1,70]},{16:[1,71]},{23:72,55:73,73:V},{23:75,55:76,73:V},{23:77,73:E},{69:78,72:[1,79],78:O,79:z,80:U,81:K,82:j,83:ae,84:X,85:de,86:le,87:ge,88:he,89:te,90:Le,91:xe,92:ye,93:be,94:Ce,95:Oe,96:Ae,97:st,98:ce,99:Mt,100:fe,101:Ue,102:Je,103:ot},{57:106,59:[1,107],67:[1,108],68:[1,109]},{23:110,73:E},{23:111,73:E},{23:112,73:E},{23:113,73:E},e([5,66,72,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104],Ne),e(M,[2,6]),e(M,[2,16]),e(ze,[2,10],{11:114}),e(M,[2,18]),{5:[1,116],20:[1,115]},{5:[1,117]},e(M,[2,22]),{5:[1,118]},{5:[1,119]},e(M,[2,25]),e(M,[2,26]),e(M,[2,27]),e(M,[2,28]),e(M,[2,29]),e(M,[2,32]),e(M,[2,33]),e(oe,n,{7:120}),e(oe,n,{7:121}),e(oe,n,{7:122}),e(_e,n,{41:123,7:124}),e(re,n,{43:125,7:126}),e(re,n,{7:126,43:127}),e(Ke,n,{46:128,7:129}),e(oe,n,{7:130}),{5:[1,132],52:[1,131]},{5:[1,134],52:[1,133]},e(Q,Ne,{74:135,75:[1,136]}),{5:[1,138],52:[1,137]},{5:[1,140],52:[1,139]},{5:[1,141]},{23:145,70:[1,142],71:[1,143],72:[1,144],73:E},{69:146,78:O,79:z,80:U,81:K,82:j,83:ae,84:X,85:de,86:le,87:ge,88:he,89:te,90:Le,91:xe,92:ye,93:be,94:Ce,95:Oe,96:Ae,97:st,98:ce,99:Mt,100:fe,101:Ue,102:Je,103:ot},e(Me,[2,79]),e(Me,[2,80]),e(Me,[2,81]),e(Me,[2,82]),e(Me,[2,83]),e(Me,[2,84]),e(Me,[2,85]),e(Me,[2,86]),e(Me,[2,87]),e(Me,[2,88]),e(Me,[2,89]),e(Me,[2,90]),e(Me,[2,91]),e(Me,[2,92]),e(Me,[2,93]),e(Me,[2,94]),e(Me,[2,95]),e(Me,[2,96]),e(Me,[2,97]),e(Me,[2,98]),e(Me,[2,99]),e(Me,[2,100]),e(Me,[2,101]),e(Me,[2,102]),e(Me,[2,103]),e(Me,[2,104]),{23:147,73:E},{23:149,60:148,73:E},{73:[2,68]},{73:[2,69]},{58:150,104:Y},{58:152,104:Y},{58:153,104:Y},{58:154,104:Y},{4:[1,157],5:[1,159],12:156,13:158,17:[1,155],51:G,53:P,54:F},{5:[1,160]},e(M,[2,20]),e(M,[2,21]),e(M,[2,23]),e(M,[2,24]),{4:s,5:o,8:8,9:10,10:l,13:13,14:u,15:h,17:[1,161],18:16,19:d,22:f,23:41,24:p,25:20,26:21,27:22,28:23,29:24,30:m,31:g,32:x,34:b,36:T,37:k,38:C,39:S,40:w,42:_,44:L,45:I,47:B,51:G,53:P,54:F,56:A,61:D,62:R,63:N,64:$,73:E},{4:s,5:o,8:8,9:10,10:l,13:13,14:u,15:h,17:[1,162],18:16,19:d,22:f,23:41,24:p,25:20,26:21,27:22,28:23,29:24,30:m,31:g,32:x,34:b,36:T,37:k,38:C,39:S,40:w,42:_,44:L,45:I,47:B,51:G,53:P,54:F,56:A,61:D,62:R,63:N,64:$,73:E},{4:s,5:o,8:8,9:10,10:l,13:13,14:u,15:h,17:[1,163],18:16,19:d,22:f,23:41,24:p,25:20,26:21,27:22,28:23,29:24,30:m,31:g,32:x,34:b,36:T,37:k,38:C,39:S,40:w,42:_,44:L,45:I,47:B,51:G,53:P,54:F,56:A,61:D,62:R,63:N,64:$,73:E},{17:[1,164]},{4:s,5:o,8:8,9:10,10:l,13:13,14:u,15:h,17:[2,47],18:16,19:d,22:f,23:41,24:p,25:20,26:21,27:22,28:23,29:24,30:m,31:g,32:x,34:b,36:T,37:k,38:C,39:S,40:w,42:_,44:L,45:I,47:B,50:[1,165],51:G,53:P,54:F,56:A,61:D,62:R,63:N,64:$,73:E},{17:[1,166]},{4:s,5:o,8:8,9:10,10:l,13:13,14:u,15:h,17:[2,45],18:16,19:d,22:f,23:41,24:p,25:20,26:21,27:22,28:23,29:24,30:m,31:g,32:x,34:b,36:T,37:k,38:C,39:S,40:w,42:_,44:L,45:I,47:B,49:[1,167],51:G,53:P,54:F,56:A,61:D,62:R,63:N,64:$,73:E},{17:[1,168]},{17:[1,169]},{4:s,5:o,8:8,9:10,10:l,13:13,14:u,15:h,17:[2,43],18:16,19:d,22:f,23:41,24:p,25:20,26:21,27:22,28:23,29:24,30:m,31:g,32:x,34:b,36:T,37:k,38:C,39:S,40:w,42:_,44:L,45:I,47:B,48:[1,170],51:G,53:P,54:F,56:A,61:D,62:R,63:N,64:$,73:E},{4:s,5:o,8:8,9:10,10:l,13:13,14:u,15:h,17:[1,171],18:16,19:d,22:f,23:41,24:p,25:20,26:21,27:22,28:23,29:24,30:m,31:g,32:x,34:b,36:T,37:k,38:C,39:S,40:w,42:_,44:L,45:I,47:B,51:G,53:P,54:F,56:A,61:D,62:R,63:N,64:$,73:E},{16:[1,172]},e(M,[2,50]),{16:[1,173]},e(M,[2,55]),e(Q,[2,76]),{76:[1,174]},{16:[1,175]},e(M,[2,52]),{16:[1,176]},e(M,[2,57]),e(M,[2,53]),{23:177,73:E},{23:178,73:E},{23:179,73:E},{58:180,104:Y},{23:181,72:[1,182],73:E},{58:183,104:Y},{58:184,104:Y},{66:[1,185],104:[2,67]},{5:[2,60]},{5:[2,105]},{5:[2,61]},{5:[2,62]},{5:[2,63]},e(M,[2,17]),e(ze,[2,11]),{13:186,51:G,53:P,54:F},e(ze,[2,13]),e(ze,[2,14]),e(M,[2,19]),e(M,[2,35]),e(M,[2,36]),e(M,[2,37]),e(M,[2,38]),{16:[1,187]},e(M,[2,39]),{16:[1,188]},e(M,[2,40]),e(M,[2,41]),{16:[1,189]},e(M,[2,42]),{5:[1,190]},{5:[1,191]},{77:[1,192]},{5:[1,193]},{5:[1,194]},{58:195,104:Y},{58:196,104:Y},{58:197,104:Y},{5:[2,75]},{58:198,104:Y},{23:199,73:E},{5:[2,58]},{5:[2,59]},{23:200,73:E},e(ze,[2,12]),e(_e,n,{7:124,41:201}),e(re,n,{7:126,43:202}),e(Ke,n,{7:129,46:203}),e(M,[2,49]),e(M,[2,54]),e(Q,[2,77]),e(M,[2,51]),e(M,[2,56]),{5:[2,70]},{5:[2,71]},{5:[2,72]},{5:[2,73]},{58:204,104:Y},{104:[2,66]},{17:[2,48]},{17:[2,46]},{17:[2,44]},{5:[2,74]}],defaultActions:{5:[2,1],6:[2,2],108:[2,68],109:[2,69],150:[2,60],151:[2,105],152:[2,61],153:[2,62],154:[2,63],180:[2,75],183:[2,58],184:[2,59],195:[2,70],196:[2,71],197:[2,72],198:[2,73],200:[2,66],201:[2,48],202:[2,46],203:[2,44],204:[2,74]},parseError:a(function(tt,Ie){if(Ie.recoverable)this.trace(tt);else{var it=new Error(tt);throw it.hash=Ie,it}},"parseError"),parse:a(function(tt){var Ie=this,it=[0],Ee=[],pt=[null],ie=[],$t=this.table,ue="",vt=0,Lt=0,Nr=0,gt=2,Pt=1,kt=ie.slice.call(arguments,1),H=Object.create(this.lexer),at={yy:{}};for(var ut in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ut)&&(at.yy[ut]=this.yy[ut]);H.setInput(tt,at.yy),at.yy.lexer=H,at.yy.parser=this,typeof H.yylloc>"u"&&(H.yylloc={});var We=H.yylloc;ie.push(We);var Z=H.options&&H.options.ranges;typeof at.yy.parseError=="function"?this.parseError=at.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Re(hr){it.length=it.length-2*hr,pt.length=pt.length-hr,ie.length=ie.length-hr}a(Re,"popStack");function Fe(){var hr;return hr=Ee.pop()||H.lex()||Pt,typeof hr!="number"&&(hr instanceof Array&&(Ee=hr,hr=Ee.pop()),hr=Ie.symbols_[hr]||hr),hr}a(Fe,"lex");for(var Ye,zt,mt,Vt,lr,Xe,ne={},De,et,Bt,ur;;){if(mt=it[it.length-1],this.defaultActions[mt]?Vt=this.defaultActions[mt]:((Ye===null||typeof Ye>"u")&&(Ye=Fe()),Vt=$t[mt]&&$t[mt][Ye]),typeof Vt>"u"||!Vt.length||!Vt[0]){var Mr="";ur=[];for(De in $t[mt])this.terminals_[De]&&De>gt&&ur.push("'"+this.terminals_[De]+"'");H.showPosition?Mr="Parse error on line "+(vt+1)+`:
`+H.showPosition()+`
Expecting `+ur.join(", ")+", got '"+(this.terminals_[Ye]||Ye)+"'":Mr="Parse error on line "+(vt+1)+": Unexpected "+(Ye==Pt?"end of input":"'"+(this.terminals_[Ye]||Ye)+"'"),this.parseError(Mr,{text:H.match,token:this.terminals_[Ye]||Ye,line:H.yylineno,loc:We,expected:ur})}if(Vt[0]instanceof Array&&Vt.length>1)throw new Error("Parse Error: multiple actions possible at state: "+mt+", token: "+Ye);switch(Vt[0]){case 1:it.push(Ye),pt.push(H.yytext),ie.push(H.yylloc),it.push(Vt[1]),Ye=null,zt?(Ye=zt,zt=null):(Lt=H.yyleng,ue=H.yytext,vt=H.yylineno,We=H.yylloc,Nr>0&&Nr--);break;case 2:if(et=this.productions_[Vt[1]][1],ne.$=pt[pt.length-et],ne._$={first_line:ie[ie.length-(et||1)].first_line,last_line:ie[ie.length-1].last_line,first_column:ie[ie.length-(et||1)].first_column,last_column:ie[ie.length-1].last_column},Z&&(ne._$.range=[ie[ie.length-(et||1)].range[0],ie[ie.length-1].range[1]]),Xe=this.performAction.apply(ne,[ue,Lt,vt,at.yy,Vt[1],pt,ie].concat(kt)),typeof Xe<"u")return Xe;et&&(it=it.slice(0,-1*et*2),pt=pt.slice(0,-1*et),ie=ie.slice(0,-1*et)),it.push(this.productions_[Vt[1]][0]),pt.push(ne.$),ie.push(ne._$),Bt=$t[it[it.length-2]][it[it.length-1]],it.push(Bt);break;case 3:return!0}}return!0},"parse")},Ge=(function(){var Be={EOF:1,parseError:a(function(Ie,it){if(this.yy.parser)this.yy.parser.parseError(Ie,it);else throw new Error(Ie)},"parseError"),setInput:a(function(tt,Ie){return this.yy=Ie||this.yy||{},this._input=tt,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:a(function(){var tt=this._input[0];this.yytext+=tt,this.yyleng++,this.offset++,this.match+=tt,this.matched+=tt;var Ie=tt.match(/(?:\r\n?|\n).*/g);return Ie?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),tt},"input"),unput:a(function(tt){var Ie=tt.length,it=tt.split(/(?:\r\n?|\n)/g);this._input=tt+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-Ie),this.offset-=Ie;var Ee=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),it.length-1&&(this.yylineno-=it.length-1);var pt=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:it?(it.length===Ee.length?this.yylloc.first_column:0)+Ee[Ee.length-it.length].length-it[0].length:this.yylloc.first_column-Ie},this.options.ranges&&(this.yylloc.range=[pt[0],pt[0]+this.yyleng-Ie]),this.yyleng=this.yytext.length,this},"unput"),more:a(function(){return this._more=!0,this},"more"),reject:a(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:a(function(tt){this.unput(this.match.slice(tt))},"less"),pastInput:a(function(){var tt=this.matched.substr(0,this.matched.length-this.match.length);return(tt.length>20?"...":"")+tt.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:a(function(){var tt=this.match;return tt.length<20&&(tt+=this._input.substr(0,20-tt.length)),(tt.substr(0,20)+(tt.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:a(function(){var tt=this.pastInput(),Ie=new Array(tt.length+1).join("-");return tt+this.upcomingInput()+`
`+Ie+"^"},"showPosition"),test_match:a(function(tt,Ie){var it,Ee,pt;if(this.options.backtrack_lexer&&(pt={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&&(pt.yylloc.range=this.yylloc.range.slice(0))),Ee=tt[0].match(/(?:\r\n?|\n).*/g),Ee&&(this.yylineno+=Ee.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Ee?Ee[Ee.length-1].length-Ee[Ee.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+tt[0].length},this.yytext+=tt[0],this.match+=tt[0],this.matches=tt,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(tt[0].length),this.matched+=tt[0],it=this.performAction.call(this,this.yy,this,Ie,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),it)return it;if(this._backtrack){for(var ie in pt)this[ie]=pt[ie];return!1}return!1},"test_match"),next:a(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var tt,Ie,it,Ee;this._more||(this.yytext="",this.match="");for(var pt=this._currentRules(),ie=0;ie<pt.length;ie++)if(it=this._input.match(this.rules[pt[ie]]),it&&(!Ie||it[0].length>Ie[0].length)){if(Ie=it,Ee=ie,this.options.backtrack_lexer){if(tt=this.test_match(it,pt[ie]),tt!==!1)return tt;if(this._backtrack){Ie=!1;continue}else return!1}else if(!this.options.flex)break}return Ie?(tt=this.test_match(Ie,pt[Ee]),tt!==!1?tt:!1):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:a(function(){var Ie=this.next();return Ie||this.lex()},"lex"),begin:a(function(Ie){this.conditionStack.push(Ie)},"begin"),popState:a(function(){var Ie=this.conditionStack.length-1;return Ie>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:a(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:a(function(Ie){return Ie=this.conditionStack.length-1-Math.abs(Ie||0),Ie>=0?this.conditionStack[Ie]:"INITIAL"},"topState"),pushState:a(function(Ie){this.begin(Ie)},"pushState"),stateStackSize:a(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:a(function(Ie,it,Ee,pt){var ie=pt;switch(Ee){case 0:return 5;case 1:break;case 2:break;case 3:break;case 4:break;case 5:break;case 6:return 20;case 7:return this.begin("CONFIG"),75;break;case 8:return 76;case 9:return this.popState(),this.begin("ALIAS"),77;break;case 10:return this.popState(),this.popState(),77;break;case 11:return it.yytext=it.yytext.trim(),73;break;case 12:return it.yytext=it.yytext.trim(),this.begin("ALIAS"),73;break;case 13:return it.yytext=it.yytext.trim(),this.popState(),73;break;case 14:return this.popState(),10;break;case 15:return it.yytext=it.yytext.trim(),this.popState(),10;break;case 16:return this.begin("LINE"),15;break;case 17:return this.begin("ID"),51;break;case 18:return this.begin("ID"),53;break;case 19:return 14;case 20:return this.begin("ID"),54;break;case 21:return this.popState(),this.popState(),this.begin("LINE"),52;break;case 22:return this.popState(),this.popState(),5;break;case 23:return this.begin("LINE"),37;break;case 24:return this.begin("LINE"),38;break;case 25:return this.begin("LINE"),39;break;case 26:return this.begin("LINE"),40;break;case 27:return this.begin("LINE"),50;break;case 28:return this.begin("LINE"),42;break;case 29:return this.begin("LINE"),44;break;case 30:return this.begin("LINE"),49;break;case 31:return this.begin("LINE"),45;break;case 32:return this.begin("LINE"),48;break;case 33:return this.begin("LINE"),47;break;case 34:return this.popState(),16;break;case 35:return 17;case 36:return 67;case 37:return 68;case 38:return 61;case 39:return 62;case 40:return 63;case 41:return 64;case 42:return 59;case 43:return 56;case 44:return this.begin("ID"),22;break;case 45:return this.begin("ID"),24;break;case 46:return 30;case 47:return 31;case 48:return this.begin("acc_title"),32;break;case 49:return this.popState(),"acc_title_value";break;case 50:return this.begin("acc_descr"),34;break;case 51:return this.popState(),"acc_descr_value";break;case 52:this.begin("acc_descr_multiline");break;case 53:this.popState();break;case 54:return"acc_descr_multiline_value";case 55:return 6;case 56:return 19;case 57:return 21;case 58:return 66;case 59:return 5;case 60:return it.yytext=it.yytext.trim(),73;break;case 61:return 80;case 62:return 97;case 63:return 98;case 64:return 99;case 65:return 78;case 66:return 79;case 67:return 100;case 68:return 101;case 69:return 102;case 70:return 103;case 71:return 85;case 72:return 86;case 73:return 87;case 74:return 88;case 75:return 93;case 76:return 94;case 77:return 95;case 78:return 96;case 79:return 81;case 80:return 82;case 81:return 83;case 82:return 84;case 83:return 89;case 84:return 90;case 85:return 91;case 86:return 92;case 87:return 104;case 88:return 104;case 89:return 70;case 90:return 71;case 91:return 72;case 92:return 5;case 93:return 10}},"anonymous"),rules:[/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:([0-9]+(\.[0-9]{1,2})?|\.[0-9]{1,2})(?=[ \n]+))/i,/^(?:@\{)/i,/^(?:[^\}]+)/i,/^(?:\}(?=\s+as\s))/i,/^(?:\})/i,/^(?:[^\<->\->:\n,;@\s]+(?=@\{))/i,/^(?:[^<>:\n,;@\s]+(?=\s+as\s))/i,/^(?:[^<>:\n,;@]+(?=\s*[\n;#]|$))/i,/^(?:[^<>:\n,;@]*<[^\n]*)/i,/^(?:[^\n]+)/i,/^(?:box\b)/i,/^(?:participant\b)/i,/^(?:actor\b)/i,/^(?:create\b)/i,/^(?:destroy\b)/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,/^(?:--\|\\)/i,/^(?:--\|\/)/i,/^(?:--\\\\)/i,/^(?:--\/\/)/i,/^(?:\/\|--)/i,/^(?:\\\|--)/i,/^(?:\/\/--)/i,/^(?:\\\\--)/i,/^(?:-\|\\)/i,/^(?:-\|\/)/i,/^(?:-\\\\)/i,/^(?:-\/\/)/i,/^(?:\/\|-)/i,/^(?:\\\|-)/i,/^(?:\/\/-)/i,/^(?:\\\\-)/i,/^(?::(?:(?:no)?wrap)?[^#\n;]*)/i,/^(?::)/i,/^(?:\+)/i,/^(?:-)/i,/^(?:\(\))/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[53,54],inclusive:!1},acc_descr:{rules:[51],inclusive:!1},acc_title:{rules:[49],inclusive:!1},ID:{rules:[2,3,7,11,12,13,14,15],inclusive:!1},ALIAS:{rules:[2,3,21,22],inclusive:!1},LINE:{rules:[2,3,34],inclusive:!1},CONFIG:{rules:[8,9,10],inclusive:!1},CONFIG_DATA:{rules:[],inclusive:!1},INITIAL:{rules:[0,1,3,4,5,6,16,17,18,19,20,23,24,25,26,27,28,29,30,31,32,33,35,36,37,38,39,40,41,42,43,44,45,46,47,48,50,52,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93],inclusive:!0}}};return Be})();dt.lexer=Ge;function ft(){this.yy={}}return a(ft,"Parser"),ft.prototype=dt,dt.Parser=ft,new ft})();TP.parser=TP;Jye=TP});var nJe,aJe,sJe,px,v_,kP=v(()=>{"use strict";bt();Hy();nt();t_();dr();zr();nJe={SOLID:0,DOTTED:1,NOTE:2,SOLID_CROSS:3,DOTTED_CROSS:4,SOLID_OPEN:5,DOTTED_OPEN:6,LOOP_START:10,LOOP_END:11,ALT_START:12,ALT_ELSE:13,ALT_END:14,OPT_START:15,OPT_END:16,ACTIVE_START:17,ACTIVE_END:18,PAR_START:19,PAR_AND:20,PAR_END:21,RECT_START:22,RECT_END:23,SOLID_POINT:24,DOTTED_POINT:25,AUTONUMBER:26,CRITICAL_START:27,CRITICAL_OPTION:28,CRITICAL_END:29,BREAK_START:30,BREAK_END:31,PAR_OVER_START:32,BIDIRECTIONAL_SOLID:33,BIDIRECTIONAL_DOTTED:34,SOLID_TOP:41,SOLID_BOTTOM:42,STICK_TOP:43,STICK_BOTTOM:44,SOLID_ARROW_TOP_REVERSE:45,SOLID_ARROW_BOTTOM_REVERSE:46,STICK_ARROW_TOP_REVERSE:47,STICK_ARROW_BOTTOM_REVERSE:48,SOLID_TOP_DOTTED:51,SOLID_BOTTOM_DOTTED:52,STICK_TOP_DOTTED:53,STICK_BOTTOM_DOTTED:54,SOLID_ARROW_TOP_REVERSE_DOTTED:55,SOLID_ARROW_BOTTOM_REVERSE_DOTTED:56,STICK_ARROW_TOP_REVERSE_DOTTED:57,STICK_ARROW_BOTTOM_REVERSE_DOTTED:58,CENTRAL_CONNECTION:59,CENTRAL_CONNECTION_REVERSE:60,CENTRAL_CONNECTION_DUAL:61},aJe={FILLED:0,OPEN:1},sJe={LEFTOF:0,RIGHTOF:1,OVER:2},px={ACTOR:"actor",BOUNDARY:"boundary",COLLECTIONS:"collections",CONTROL:"control",DATABASE:"database",ENTITY:"entity",PARTICIPANT:"participant",QUEUE:"queue"},v_=class{constructor(){this.state=new Du(()=>({prevActor:void 0,actors:new Map,createdActors:new Map,destroyedActors:new Map,boxes:[],messages:[],notes:[],sequenceNumbersEnabled:!1,wrapEnabled:void 0,currentBox:void 0,lastCreated:void 0,lastDestroyed:void 0}));this.setAccTitle=Yt;this.setAccDescription=Zt;this.setDiagramTitle=ir;this.getAccTitle=Qt;this.getAccDescription=Jt;this.getDiagramTitle=er;this.apply=this.apply.bind(this),this.parseBoxData=this.parseBoxData.bind(this),this.parseMessage=this.parseMessage.bind(this),this.clear(),this.setWrap(J().wrap),this.LINETYPE=nJe,this.ARROWTYPE=aJe,this.PLACEMENT=sJe}static{a(this,"SequenceDB")}addBox(t){this.state.records.boxes.push({name:t.text,wrap:t.wrap??this.autoWrap(),fill:t.color,actorKeys:[]}),this.state.records.currentBox=this.state.records.boxes.slice(-1)[0]}addActor(t,r,i,n,s){let o=this.state.records.currentBox,l;if(s!==void 0){let h;s.includes(`
`)?h=s+`
`:h=`{
`+s+`
}`,l=Pc(h,{schema:Oc})}n=l?.type??n,l?.alias&&(!i||i.text===r)&&(i={text:l.alias,wrap:i?.wrap,type:n});let u=this.state.records.actors.get(t);if(u){if(this.state.records.currentBox&&u.box&&this.state.records.currentBox!==u.box)throw new Error(`A same participant should only be defined in one Box: ${u.name} can't be in '${u.box.name}' and in '${this.state.records.currentBox.name}' at the same time.`);if(o=u.box?u.box:this.state.records.currentBox,u.box=o,u&&r===u.name&&i==null)return}if(i?.text==null&&(i={text:r,type:n}),(n==null||i.text==null)&&(i={text:r,type:n}),this.state.records.actors.set(t,{box:o,name:r,description:i.text,wrap:i.wrap??this.autoWrap(),prevActor:this.state.records.prevActor,links:{},properties:{},actorCnt:null,rectData:null,type:n??"participant"}),this.state.records.prevActor){let h=this.state.records.actors.get(this.state.records.prevActor);h&&(h.nextActor=t)}this.state.records.currentBox&&this.state.records.currentBox.actorKeys.push(t),this.state.records.prevActor=t}activationCount(t){let r,i=0;if(!t)return 0;for(r=0;r<this.state.records.messages.length;r++)this.state.records.messages[r].type===this.LINETYPE.ACTIVE_START&&this.state.records.messages[r].from===t&&i++,this.state.records.messages[r].type===this.LINETYPE.ACTIVE_END&&this.state.records.messages[r].from===t&&i--;return i}addMessage(t,r,i,n){this.state.records.messages.push({id:this.state.records.messages.length.toString(),from:t,to:r,message:i.text,wrap:i.wrap??this.autoWrap(),answer:n})}addSignal(t,r,i,n,s=!1,o){if(n===this.LINETYPE.ACTIVE_END&&this.activationCount(t??"")<1){let u=new Error("Trying to inactivate an inactive participant ("+t+")");throw u.hash={text:"->>-",token:"->>-",line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["'ACTIVE_PARTICIPANT'"]},u}return this.state.records.messages.push({id:this.state.records.messages.length.toString(),from:t,to:r,message:i?.text??"",wrap:i?.wrap??this.autoWrap(),type:n,activate:s,centralConnection:o??0}),!0}hasAtLeastOneBox(){return this.state.records.boxes.length>0}hasAtLeastOneBoxWithTitle(){return this.state.records.boxes.some(t=>t.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(t){return this.state.records.actors.get(t)}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(t){this.state.records.wrapEnabled=t}extractWrap(t){if(t===void 0)return{};t=t.trim();let r=/^:?wrap:/.exec(t)!==null?!0:/^:?nowrap:/.exec(t)!==null?!1:void 0;return{cleanedText:(r===void 0?t:t.replace(/^:?(?:no)?wrap:/,"")).trim(),wrap:r}}autoWrap(){return this.state.records.wrapEnabled!==void 0?this.state.records.wrapEnabled:J().sequence?.wrap??!1}clear(){this.state.reset(),Ht()}parseMessage(t){let r=t.trim(),{wrap:i,cleanedText:n}=this.extractWrap(r),s={text:n,wrap:i};return W.debug(`parseMessage: ${JSON.stringify(s)}`),s}parseBoxData(t){let r=/^((?:rgba?|hsla?)\s*\(.*\)|\w*)(.*)$/.exec(t),i=r?.[1]?r[1].trim():"transparent",n=r?.[2]?r[2].trim():void 0;if(window?.CSS)window.CSS.supports("color",i)||(i="transparent",n=t.trim());else{let l=new Option().style;l.color=i,l.color!==i&&(i="transparent",n=t.trim())}let{wrap:s,cleanedText:o}=this.extractWrap(n);return{text:o?rr(o,J()):void 0,color:i,wrap:s}}addNote(t,r,i){let n={actor:t,placement:r,message:i.text,wrap:i.wrap??this.autoWrap()},s=[].concat(t,t);this.state.records.notes.push(n),this.state.records.messages.push({id:this.state.records.messages.length.toString(),from:s[0],to:s[1],message:i.text,wrap:i.wrap??this.autoWrap(),type:this.LINETYPE.NOTE,placement:r})}addLinks(t,r){let i=this.getActor(t);try{let n=rr(r.text,J());n=n.replace(/=/g,"="),n=n.replace(/&/g,"&");let s=JSON.parse(n);this.insertLinks(i,s)}catch(n){W.error("error while parsing actor link text",n)}}addALink(t,r){let i=this.getActor(t);try{let n={},s=rr(r.text,J()),o=s.indexOf("@");s=s.replace(/=/g,"="),s=s.replace(/&/g,"&");let l=s.slice(0,o-1).trim(),u=s.slice(o+1).trim();n[l]=u,this.insertLinks(i,n)}catch(n){W.error("error while parsing actor link text",n)}}insertLinks(t,r){if(t.links==null)t.links=r;else for(let i in r)t.links[i]=r[i]}addProperties(t,r){let i=this.getActor(t);try{let n=rr(r.text,J()),s=JSON.parse(n);this.insertProperties(i,s)}catch(n){W.error("error while parsing actor properties text",n)}}insertProperties(t,r){if(t.properties==null)t.properties=r;else for(let i in r)t.properties[i]=r[i]}boxEnd(){this.state.records.currentBox=void 0}addDetails(t,r){let i=this.getActor(t),n=document.getElementById(r.text);try{let s=n.innerHTML,o=JSON.parse(s);o.properties&&this.insertProperties(i,o.properties),o.links&&this.insertLinks(i,o.links)}catch(s){W.error("error while parsing actor details text",s)}}getActorProperty(t,r){if(t?.properties!==void 0)return t.properties[r]}apply(t){if(Array.isArray(t))t.forEach(r=>{this.apply(r)});else switch(t.type){case"sequenceIndex":this.state.records.messages.push({id:this.state.records.messages.length.toString(),from:void 0,to:void 0,message:{start:t.sequenceIndex,step:t.sequenceIndexStep,visible:t.sequenceVisible},wrap:!1,type:t.signalType});break;case"addParticipant":this.addActor(t.actor,t.actor,t.description,t.draw,t.config);break;case"createParticipant":if(this.state.records.actors.has(t.actor))throw new Error("It is not possible to have actors with the same id, even if one is destroyed before the next is created. Use 'AS' aliases to simulate the behavior");this.state.records.lastCreated=t.actor,this.addActor(t.actor,t.actor,t.description,t.draw,t.config),this.state.records.createdActors.set(t.actor,this.state.records.messages.length);break;case"destroyParticipant":this.state.records.lastDestroyed=t.actor,this.state.records.destroyedActors.set(t.actor,this.state.records.messages.length);break;case"activeStart":this.addSignal(t.actor,void 0,void 0,t.signalType);break;case"centralConnection":this.addSignal(t.actor,void 0,void 0,t.signalType);break;case"centralConnectionReverse":this.addSignal(t.actor,void 0,void 0,t.signalType);break;case"activeEnd":this.addSignal(t.actor,void 0,void 0,t.signalType);break;case"addNote":this.addNote(t.actor,t.placement,t.text);break;case"addLinks":this.addLinks(t.actor,t.text);break;case"addALink":this.addALink(t.actor,t.text);break;case"addProperties":this.addProperties(t.actor,t.text);break;case"addDetails":this.addDetails(t.actor,t.text);break;case"addMessage":if(this.state.records.lastCreated){if(t.to!==this.state.records.lastCreated)throw new Error("The created participant "+this.state.records.lastCreated.name+" does not have an associated creating message after its declaration. Please check the sequence diagram.");this.state.records.lastCreated=void 0}else if(this.state.records.lastDestroyed){if(t.to!==this.state.records.lastDestroyed&&t.from!==this.state.records.lastDestroyed)throw new Error("The destroyed participant "+this.state.records.lastDestroyed.name+" does not have an associated destroying message after its declaration. Please check the sequence diagram.");this.state.records.lastDestroyed=void 0}this.addSignal(t.from,t.to,t.msg,t.signalType,t.activate,t.centralConnection);break;case"boxStart":this.addBox(t.boxData);break;case"boxEnd":this.boxEnd();break;case"loopStart":this.addSignal(void 0,void 0,t.loopText,t.signalType);break;case"loopEnd":this.addSignal(void 0,void 0,void 0,t.signalType);break;case"rectStart":this.addSignal(void 0,void 0,t.color,t.signalType);break;case"rectEnd":this.addSignal(void 0,void 0,void 0,t.signalType);break;case"optStart":this.addSignal(void 0,void 0,t.optText,t.signalType);break;case"optEnd":this.addSignal(void 0,void 0,void 0,t.signalType);break;case"altStart":this.addSignal(void 0,void 0,t.altText,t.signalType);break;case"else":this.addSignal(void 0,void 0,t.altText,t.signalType);break;case"altEnd":this.addSignal(void 0,void 0,void 0,t.signalType);break;case"setAccTitle":Yt(t.text);break;case"parStart":this.addSignal(void 0,void 0,t.parText,t.signalType);break;case"and":this.addSignal(void 0,void 0,t.parText,t.signalType);break;case"parEnd":this.addSignal(void 0,void 0,void 0,t.signalType);break;case"criticalStart":this.addSignal(void 0,void 0,t.criticalText,t.signalType);break;case"option":this.addSignal(void 0,void 0,t.optionText,t.signalType);break;case"criticalEnd":this.addSignal(void 0,void 0,void 0,t.signalType);break;case"breakStart":this.addSignal(void 0,void 0,t.breakText,t.signalType);break;case"breakEnd":this.addSignal(void 0,void 0,void 0,t.signalType);break}}getConfig(){return J().sequence}}});var oJe,t0e,r0e=v(()=>{"use strict";bt();oJe=a(e=>{let t=e.dropShadow??"none",{look:r}=J();return`.actor {
stroke: ${e.actorBorder};
fill: ${e.actorBkg};
stroke-width: ${e.strokeWidth??1};
}
rect.actor.outer-path[data-look="neo"] {
filter: ${t};
}
rect.note[data-look="neo"] {
stroke:${e.noteBorderColor};
fill:${e.noteBkgColor};
filter: ${t};
}
text.actor > tspan {
fill: ${e.actorTextColor};
stroke: none;
}
.actor-line {
stroke: ${e.actorLineColor};
}
.innerArc {
stroke-width: 1.5;
stroke-dasharray: none;
}
.messageLine0 {
stroke-width: 1.5;
stroke-dasharray: none;
stroke: ${e.signalColor};
}
.messageLine1 {
stroke-width: 1.5;
stroke-dasharray: 2, 2;
stroke: ${e.signalColor};
}
[id$="-arrowhead"] path {
fill: ${e.signalColor};
stroke: ${e.signalColor};
}
.sequenceNumber {
fill: ${e.sequenceNumberColor};
}
[id$="-sequencenumber"] {
fill: ${e.signalColor};
}
[id$="-crosshead"] path {
fill: ${e.signalColor};
stroke: ${e.signalColor};
}
.messageText {
fill: ${e.signalTextColor};
stroke: none;
}
.labelBox {
stroke: ${e.labelBoxBorderColor};
fill: ${e.labelBoxBkgColor};
filter: ${r==="neo"?t:"none"};
}
.labelText, .labelText > tspan {
fill: ${e.labelTextColor};
stroke: none;
}
.loopText, .loopText > tspan {
fill: ${e.loopTextColor};
stroke: none;
}
.sectionTitle, .sectionTitle > tspan {
fill: ${e.loopTextColor};
stroke: none;
}
.loopLine {
stroke-width: 2px;
stroke-dasharray: 2, 2;
stroke: ${e.labelBoxBorderColor};
fill: ${e.labelBoxBorderColor};
}
.note {
//stroke: #decc93;
stroke: ${e.noteBorderColor};
fill: ${e.noteBkgColor};
}
.noteText, .noteText > tspan {
fill: ${e.noteTextColor};
stroke: none;
${e.noteFontWeight?`font-weight: ${e.noteFontWeight};`:""}
}
.activation0 {
fill: ${e.activationBkgColor};
stroke: ${e.activationBorderColor};
}
.activation1 {
fill: ${e.activationBkgColor};
stroke: ${e.activationBorderColor};
}
.activation2 {
fill: ${e.activationBkgColor};
stroke: ${e.activationBorderColor};
}
.actorPopupMenu {
position: absolute;
}
.actorPopupMenuPanel {
position: absolute;
fill: ${e.actorBkg};
box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
filter: drop-shadow(3px 5px 2px rgb(0 0 0 / 0.4));
}
.actor-man circle, line {
fill: ${e.actorBkg};
stroke-width: 2px;
}
g rect.rect {
filter: ${t};
stroke: ${e.nodeBorder};
}
`},"getStyles"),t0e=oJe});var CP,Mu,Ou,Pu,S_,sf,nc,mx,lJe,__,gx,of,i0e,yr,vP,cJe,uJe,hJe,dJe,fJe,pJe,mJe,gJe,yJe,xJe,bJe,TJe,kJe,n0e,CJe,vJe,SJe,_Je,wJe,EJe,AJe,RJe,a0e,LJe,ac,DJe,IJe,NJe,MJe,OJe,Vr,s0e=v(()=>{"use strict";CP=Wa(ep(),1);Xt();Et();dr();Th();Mu=36,Ou="actor-top",Pu="actor-bottom",S_="actor-box",sf="actor-man",nc=new Set(["redux-color","redux-dark-color"]),mx=a(function(e,t){let r=bh(e,t);return ct().look==="neo"&&r.attr("data-look","neo"),r},"drawRect"),lJe=a(function(e,t,r,i,n){if(t.links===void 0||t.links===null||Object.keys(t.links).length===0)return{height:0,width:0};let s=t.links,o=t.actorCnt,l=t.rectData;var u="none";n&&(u="block !important");let h=e.append("g");h.attr("id","actor"+o+"_popup"),h.attr("class","actorPopupMenu"),h.attr("display",u);var d="";l.class!==void 0&&(d=" "+l.class);let f=l.width>r?l.width:r,p=h.append("rect");if(p.attr("class","actorPopupMenuPanel"+d),p.attr("x",l.x),p.attr("y",l.height),p.attr("fill",l.fill),p.attr("stroke",l.stroke),p.attr("width",f),p.attr("height",l.height),p.attr("rx",l.rx),p.attr("ry",l.ry),s!=null){var m=20;for(let b in s){var g=h.append("a"),x=(0,CP.sanitizeUrl)(s[b]);g.attr("xlink:href",x),g.attr("target","_blank"),DJe(i)(b,g,l.x+10,l.height+m,f,20,{class:"actor"},i),m+=30}}return p.attr("height",m),{height:l.height+m,width:f}},"drawPopup"),__=a(function(e){return"var pu = document.getElementById('"+e+"'); if (pu != null) { pu.style.display = pu.style.display == 'block' ? 'none' : 'block'; }"},"popupMenuToggle"),gx=a(async function(e,t,r=null){let i=e.append("foreignObject"),n=await _f(t.text,ct()),o=i.append("xhtml:div").attr("style","width: fit-content;").attr("xmlns","http://www.w3.org/1999/xhtml").html(n).node().getBoundingClientRect();if(i.attr("height",Math.round(o.height)).attr("width",Math.round(o.width)),t.class==="noteText"){let l=e.node().firstChild;l.setAttribute("height",o.height+2*t.textMargin);let u=l.getBBox();i.attr("x",Math.round(u.x+u.width/2-o.width/2)).attr("y",Math.round(u.y+u.height/2-o.height/2))}else if(r){let{startx:l,stopx:u,starty:h}=r;if(l>u){let d=l;l=u,u=d}i.attr("x",Math.round(l+Math.abs(l-u)/2-o.width/2)),t.class==="loopText"?i.attr("y",Math.round(h)):i.attr("y",Math.round(h-o.height))}return[i]},"drawKatex"),of=a(function(e,t){let r=0,i=0,n=t.text.split(He.lineBreakRegex),[s,o]=Qn(t.fontSize),l=[],u=0,h=a(()=>t.y,"yfunc");if(t.valign!==void 0&&t.textMargin!==void 0&&t.textMargin>0)switch(t.valign){case"top":case"start":h=a(()=>Math.round(t.y+t.textMargin),"yfunc");break;case"middle":case"center":h=a(()=>Math.round(t.y+(r+i+t.textMargin)/2),"yfunc");break;case"bottom":case"end":h=a(()=>Math.round(t.y+(r+i+2*t.textMargin)-t.textMargin),"yfunc");break}if(t.anchor!==void 0&&t.textMargin!==void 0&&t.width!==void 0)switch(t.anchor){case"left":case"start":t.x=Math.round(t.x+t.textMargin),t.anchor="start",t.dominantBaseline="middle",t.alignmentBaseline="middle";break;case"middle":case"center":t.x=Math.round(t.x+t.width/2),t.anchor="middle",t.dominantBaseline="middle",t.alignmentBaseline="middle";break;case"right":case"end":t.x=Math.round(t.x+t.width-t.textMargin),t.anchor="end",t.dominantBaseline="middle",t.alignmentBaseline="middle";break}for(let[d,f]of n.entries()){t.textMargin!==void 0&&t.textMargin===0&&s!==void 0&&(u=d*s);let p=e.append("text");p.attr("x",t.x),p.attr("y",h()),t.anchor!==void 0&&p.attr("text-anchor",t.anchor).attr("dominant-baseline",t.dominantBaseline).attr("alignment-baseline",t.alignmentBaseline),t.fontFamily!==void 0&&p.style("font-family",t.fontFamily),o!==void 0&&p.style("font-size",o),t.fontWeight!==void 0&&p.style("font-weight",t.fontWeight),t.fill!==void 0&&p.attr("fill",t.fill),t.class!==void 0&&p.attr("class",t.class),t.dy!==void 0?p.attr("dy",t.dy):u!==0&&p.attr("dy",u);let m=f||d5;if(t.tspan){let g=p.append("tspan");g.attr("x",t.x),t.fill!==void 0&&g.attr("fill",t.fill),g.text(m)}else p.text(m);t.valign!==void 0&&t.textMargin!==void 0&&t.textMargin>0&&(i+=(p._groups||p)[0][0].getBBox().height,r=i),l.push(p)}return l},"drawText"),i0e=a(function(e,t){function r(n,s,o,l,u){return n+","+s+" "+(n+o)+","+s+" "+(n+o)+","+(s+l-u)+" "+(n+o-u*1.2)+","+(s+l)+" "+n+","+(s+l)}a(r,"genPoints");let i=e.append("polygon");return i.attr("points",r(t.x,t.y,t.width,t.height,7)),i.attr("class","labelBox"),t.y=t.y+t.height/2,of(e,t),i},"drawLabel"),yr=-1,vP=a((e,t,r,i)=>{e.select&&r.forEach(n=>{let s=t.get(n),o=e.select("#actor"+s.actorCnt);!i.mirrorActors&&s.stopy?o.attr("y2",s.stopy+s.height/2):i.mirrorActors&&o.attr("y2",s.stopy)})},"fixLifeLineHeights"),cJe=a(function(e,t,r,i,n){let s=i?t.stopy:t.starty,o=t.x+t.width/2,l=s+t.height,{look:u,theme:h,themeVariables:d}=r,{bkgColorArray:f,borderColorArray:p}=d,m=e.append("g").lower();var g=m;i||(yr++,Object.keys(t.links||{}).length&&!r.forceMenus&&g.attr("onclick",__(`actor${yr}_popup`)).attr("cursor","pointer"),g.append("line").attr("id","actor"+yr).attr("x1",o).attr("y1",l).attr("x2",o).attr("y2",2e3).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",t.name).attr("data-et","life-line").attr("data-id",t.name),g=m.append("g"),t.actorCnt=yr,t.links!=null&&g.attr("id","root-"+yr),u==="neo"&&g.attr("data-look","neo"));let x=on();var b="actor";t.properties?.class?b=t.properties.class:x.fill="#eaeaea",i?b+=` ${Pu}`:b+=` ${Ou}`,x.x=t.x,x.y=s,x.width=t.width,x.height=t.height,x.class=b,x.rx=3,x.ry=3,x.name=t.name,u==="neo"&&(x.rx=6,x.ry=6);let T=mx(g,x),k=n.get(t.name)??0;if(nc.has(h)&&(T.style("stroke",p[k%p.length]),T.style("fill",f[k%p.length])),u==="neo"&&T.attr("filter","url(#drop-shadow)"),t.rectData=x,t.properties?.icon){let S=t.properties.icon.trim();S.charAt(0)==="@"?v2(g,x.x+x.width-20,x.y+10,S.substr(1)):C2(g,x.x+x.width-20,x.y+10,S)}i||(g.attr("data-et","participant"),g.attr("data-type","participant"),g.attr("data-id",t.name)),ac(r,ii(t.description))(t.description,g,x.x,x.y,x.width,x.height,{class:`actor ${S_}`},r);let C=t.height;if(T.node){let S=T.node().getBBox();t.height=S.height,C=S.height}return C},"drawActorTypeParticipant"),uJe=a(function(e,t,r,i,n){let s=i?t.stopy:t.starty,o=t.x+t.width/2,l=s+t.height,{look:u,theme:h,themeVariables:d}=r,{bkgColorArray:f,borderColorArray:p}=d,m=e.append("g").lower();var g=m;i||(yr++,Object.keys(t.links||{}).length&&!r.forceMenus&&g.attr("onclick",__(`actor${yr}_popup`)).attr("cursor","pointer"),g.append("line").attr("id","actor"+yr).attr("x1",o).attr("y1",l).attr("x2",o).attr("y2",2e3).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",t.name).attr("data-et","life-line").attr("data-id",t.name),g=m.append("g"),t.actorCnt=yr,t.links!=null&&g.attr("id","root-"+yr),u==="neo"&&g.attr("data-look","neo"));let x=on();var b="actor";t.properties?.class?b=t.properties.class:x.fill="#eaeaea",i?b+=` ${Pu}`:b+=` ${Ou}`,x.x=t.x,x.y=s,x.width=t.width,x.height=t.height,x.class=b,x.name=t.name;let T=6,k={...x,x:x.x+-T,y:x.y+ +T,class:"actor"},C=mx(g,x),S=mx(g,k);t.rectData=x,u==="neo"&&g.attr("filter","url(#drop-shadow)");let w=n.get(t.name)??0;if(nc.has(h)&&(C.style("stroke",p[w%p.length]),C.style("fill",f[w%p.length]),S.style("stroke",p[w%p.length]),S.style("fill",f[w%p.length])),t.properties?.icon){let L=t.properties.icon.trim();L.charAt(0)==="@"?v2(g,x.x+x.width-20,x.y+10,L.substr(1)):C2(g,x.x+x.width-20,x.y+10,L)}ac(r,ii(t.description))(t.description,g,x.x-T,x.y+T,x.width,x.height,{class:`actor ${S_}`},r);let _=t.height;if(C.node){let L=C.node().getBBox();t.height=L.height,_=L.height}return i||(g.attr("data-et","participant"),g.attr("data-type","collections"),g.attr("data-id",t.name)),_},"drawActorTypeCollections"),hJe=a(function(e,t,r,i,n){let s=i?t.stopy:t.starty,o=t.x+t.width/2,l=s+t.height,{look:u,theme:h,themeVariables:d}=r,{bkgColorArray:f,borderColorArray:p}=d,m=e.append("g").lower(),g=m;i||(yr++,Object.keys(t.links||{}).length&&!r.forceMenus&&g.attr("onclick",__(`actor${yr}_popup`)).attr("cursor","pointer"),g.append("line").attr("id","actor"+yr).attr("x1",o).attr("y1",l).attr("x2",o).attr("y2",2e3).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",t.name).attr("data-et","life-line").attr("data-id",t.name),g=m.append("g"),t.actorCnt=yr,t.links!=null&&g.attr("id","root-"+yr),u==="neo"&&g.attr("data-look","neo"));let x=on(),b="actor";t.properties?.class?b=t.properties.class:x.fill="#eaeaea",i?b+=` ${Pu}`:b+=` ${Ou}`,g.attr("class",b),x.x=t.x,x.y=s,x.width=t.width,x.height=t.height,x.name=t.name;let T=x.height/2,k=T/(2.5+x.height/50),C=g.append("g"),S=g.append("g"),w=`M ${x.x},${x.y+T}
a ${k},${T} 0 0 0 0,${x.height}
h ${x.width-2*k}
a ${k},${T} 0 0 0 0,-${x.height}
Z
`;C.append("path").attr("d",w),S.append("path").attr("d",`M ${x.x},${x.y+T}
a ${k},${T} 0 0 0 0,${x.height}`),C.attr("transform",`translate(${k}, ${-(x.height/2)})`),S.attr("transform",`translate(${x.width-k}, ${-x.height/2})`),t.rectData=x,u==="neo"&&C.attr("filter","url(#drop-shadow)");let _=n.get(t.name)??0;if(nc.has(h)&&(C.style("stroke",p[_%p.length]),C.style("fill",f[_%p.length]),S.style("stroke",p[_%p.length]),S.style("fill",f[_%p.length])),t.properties?.icon){let B=t.properties.icon.trim(),G=x.x+x.width-20,P=x.y+10;B.charAt(0)==="@"?v2(g,G,P,B.substr(1)):C2(g,G,P,B)}ac(r,ii(t.description))(t.description,g,x.x,x.y,x.width,x.height,{class:`actor ${S_}`},r);let L=t.height,I=C.select("path:last-child");if(I.node()){let B=I.node().getBBox();t.height=B.height,L=B.height}return i||(g.attr("data-et","participant"),g.attr("data-type","queue"),g.attr("data-id",t.name)),L},"drawActorTypeQueue"),dJe=a(function(e,t,r,i,n,s){let o=i?t.stopy:t.starty,l=t.x+t.width/2,u=o+75,{look:h,theme:d,themeVariables:f}=r,{bkgColorArray:p,borderColorArray:m,actorBorder:g,actorBkg:x}=f,b=e.append("g").lower();i||(yr++,b.append("line").attr("id","actor"+yr).attr("x1",l).attr("y1",u).attr("x2",l).attr("y2",2e3).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",t.name).attr("data-et","life-line").attr("data-id",t.name),t.actorCnt=yr);let T=e.append("g"),k=sf;i?k+=` ${Pu}`:k+=` ${Ou}`,T.attr("class",k),T.attr("name",t.name);let C=on();C.x=t.x,C.y=o,C.fill="#eaeaea",C.width=t.width,C.height=t.height,C.class="actor";let S=t.x+t.width/2,w=o+32,_=22;T.append("defs").append("marker").attr("id",n+"-filled-head-control").attr("refX",11).attr("refY",5.8).attr("markerWidth",20).attr("markerHeight",28).attr("orient","172.5").attr("stroke-width",1.2).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"),T.append("circle").attr("cx",S).attr("cy",w).attr("r",_).attr("filter",`${h==="neo"?"url(#drop-shadow)":""}`),T.append("line").attr("marker-end","url(#"+n+"-filled-head-control)").attr("transform",`translate(${S}, ${w-_})`);let L=s.get(t.name)??0;nc.has(d)?(T.style("stroke",m[L%m.length]),T.style("fill",p[L%m.length])):(T.style("stroke",g),T.style("fill",x));let I=T.node().getBBox();return t.height=I.height+2*(r?.sequence?.labelBoxHeight??0),ac(r,ii(t.description))(t.description,T,C.x,C.y+_+(i?5:12),C.width,C.height,{class:`actor ${sf}`},r),i||(T.attr("data-et","participant"),T.attr("data-type","control"),T.attr("data-id",t.name)),t.height},"drawActorTypeControl"),fJe=a(function(e,t,r,i,n){let s=i?t.stopy:t.starty,o=t.x+t.width/2,l=s+75,{look:u,theme:h,themeVariables:d}=r,{bkgColorArray:f,borderColorArray:p}=d,m=e.append("g").lower(),g=e.append("g"),x="actor";i?x+=` ${Pu}`:x+=` ${Ou}`,g.attr("class",x),g.attr("name",t.name);let b=on();b.x=t.x,b.y=s,b.fill="#eaeaea",b.width=t.width,b.height=t.height,b.class="actor";let T=t.x+t.width/2,k=s+(i?10:25),C=22;g.append("circle").attr("cx",T).attr("cy",k).attr("r",C).attr("width",t.width).attr("height",t.height),g.append("line").attr("x1",T-C).attr("x2",T+C).attr("y1",k+C).attr("y2",k+C).attr("stroke-width",2),u==="neo"&&g.attr("filter","url(#drop-shadow)");let S=n.get(t.name)??0;nc.has(h)&&(g.style("stroke",p[S%p.length]),g.style("fill",f[S%p.length]));let w=g.node().getBBox();return t.height=w.height+(r?.sequence?.labelBoxHeight??0),i||(yr++,m.append("line").attr("id","actor"+yr).attr("x1",o).attr("y1",l).attr("x2",o).attr("y2",2e3).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",t.name).attr("data-et","life-line").attr("data-id",t.name),t.actorCnt=yr),ac(r,ii(t.description))(t.description,g,b.x,b.y+(i?15:30),b.width,b.height,{class:`actor ${sf}`},r),i?g.attr("transform",`translate(0, ${C})`):(g.attr("transform",`translate(0, ${C/2-5})`),g.attr("data-et","participant"),g.attr("data-type","entity"),g.attr("data-id",t.name)),t.height},"drawActorTypeEntity"),pJe=a(function(e,t,r,i,n){let s=i?t.stopy:t.starty,o=t.x+t.width/2,l=s+t.height+2*r.boxTextMargin,{theme:u,themeVariables:h,look:d}=r,{bkgColorArray:f,borderColorArray:p,actorBorder:m}=h,g=e.append("g").lower(),x=g;i||(yr++,Object.keys(t.links||{}).length&&!r.forceMenus&&x.attr("onclick",__(`actor${yr}_popup`)).attr("cursor","pointer"),x.append("line").attr("id","actor"+yr).attr("x1",o).attr("y1",l).attr("x2",o).attr("y2",2e3).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",t.name).attr("data-et","life-line").attr("data-id",t.name),x=g.append("g"),t.actorCnt=yr,t.links!=null&&x.attr("id","root-"+yr),d==="neo"&&x.attr("data-look","neo"));let b=on(),T="actor";t.properties?.class?T=t.properties.class:b.fill="#eaeaea",i?T+=` ${Pu}`:T+=` ${Ou}`,b.x=t.x,b.y=s,b.width=t.width,b.height=t.height,b.class=T,b.name=t.name,b.x=t.x,b.y=s;let k=b.width/3,C=b.width/3,S=k/2,w=S/(2.5+k/50),_=x.append("g");_.attr("class",T);let L=`
M ${b.x},${b.y+w}
a ${S},${w} 0 0 0 ${k},0
a ${S},${w} 0 0 0 -${k},0
l 0,${C-2*w}
a ${S},${w} 0 0 0 ${k},0
l 0,-${C-2*w}
`;_.append("path").attr("d",L),d==="neo"&&_.attr("filter","url(#drop-shadow)");let I=n.get(t.name)??0;nc.has(u)?(_.style("stroke",p[I%p.length]),_.style("fill",f[I%p.length])):_.style("stroke",m),_.attr("transform",`translate(${k}, ${w})`),t.rectData=b,ac(r,ii(t.description))(t.description,x,b.x,b.y+35,b.width,b.height,{class:`actor ${S_}`},r);let B=_.select("path:last-child");if(B.node()){let G=B.node().getBBox();t.height=G.height+(r.sequence.labelBoxHeight??0)}return i||(x.attr("data-et","participant"),x.attr("data-type","database"),x.attr("data-id",t.name)),t.height},"drawActorTypeDatabase"),mJe=a(function(e,t,r,i,n){let s=i?t.stopy:t.starty,o=t.x+t.width/2,l=s+80,u=22,h=e.append("g").lower(),{look:d,theme:f,themeVariables:p}=r,{bkgColorArray:m,borderColorArray:g,actorBorder:x}=p;i||(yr++,h.append("line").attr("id","actor"+yr).attr("x1",o).attr("y1",l).attr("x2",o).attr("y2",2e3).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",t.name).attr("data-et","life-line").attr("data-id",t.name),t.actorCnt=yr);let b=e.append("g"),T=sf;i?T+=` ${Pu}`:T+=` ${Ou}`,b.attr("class",T),b.attr("name",t.name);let k=on();k.x=t.x,k.y=s,k.fill="#eaeaea",k.width=t.width,k.height=t.height,k.class="actor",b.append("line").attr("id","actor-man-torso"+yr).attr("x1",t.x+t.width/2-u*2.5).attr("y1",s+12).attr("x2",t.x+t.width/2-15).attr("y2",s+12),b.append("line").attr("id","actor-man-arms"+yr).attr("x1",t.x+t.width/2-u*2.5).attr("y1",s+2).attr("x2",t.x+t.width/2-u*2.5).attr("y2",s+22),b.append("circle").attr("cx",t.x+t.width/2).attr("cy",s+12).attr("r",u),d==="neo"&&b.attr("filter","url(#drop-shadow)");let C=n.get(t.name)??0;nc.has(f)?(b.style("stroke",g[C%g.length]),b.style("fill",m[C%g.length])):b.style("stroke",x);let S=b.node().getBBox();return t.height=S.height+(r.sequence.labelBoxHeight??0),ac(r,ii(t.description))(t.description,b,k.x,k.y+15,k.width,k.height,{class:`actor ${sf}`},r),b.attr("transform",`translate(0,${u/2+10})`),i||(b.attr("data-et","participant"),b.attr("data-type","boundary"),b.attr("data-id",t.name)),t.height},"drawActorTypeBoundary"),gJe=a(function(e,t,r,i,n){let s=i?t.stopy:t.starty,o=t.x+t.width/2,l=s+80,{look:u,theme:h,themeVariables:d}=r,{bkgColorArray:f,borderColorArray:p,actorBorder:m}=d,g=e.append("g").lower();i||(yr++,g.append("line").attr("id","actor"+yr).attr("x1",o).attr("y1",l).attr("x2",o).attr("y2",2e3).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",t.name).attr("data-et","life-line").attr("data-id",t.name),t.actorCnt=yr);let x=e.append("g"),b=sf;i?b+=` ${Pu}`:b+=` ${Ou}`,x.attr("class",b),x.attr("name",t.name),i||x.attr("data-et","participant").attr("data-type","actor").attr("data-id",t.name);let T=u==="neo"?.5:1,k=u==="neo"?s+(1-T)*30:s;x.append("line").attr("id","actor-man-torso"+yr).attr("x1",o).attr("y1",k+25*T).attr("x2",o).attr("y2",k+45*T),x.append("line").attr("id","actor-man-arms"+yr).attr("x1",o-Mu/2*T).attr("y1",k+33*T).attr("x2",o+Mu/2*T).attr("y2",k+33*T),x.append("line").attr("x1",o-Mu/2*T).attr("y1",k+60*T).attr("x2",o).attr("y2",k+45*T),x.append("line").attr("x1",o).attr("y1",k+45*T).attr("x2",o+(Mu/2-2)*T).attr("y2",k+60*T);let C=x.append("circle");C.attr("cx",t.x+t.width/2),C.attr("cy",k+10*T),C.attr("r",15*T),C.attr("width",t.width*T),C.attr("height",t.height*T);let S=x.node().getBBox();t.height=S.height;let w=on();w.x=t.x,w.y=k,w.fill="#eaeaea",w.width=t.width,w.height=t.height/T,w.class="actor",w.rx=3,w.ry=3;let _=n.get(t.name)??0;return nc.has(h)?(x.style("stroke",p[_%p.length]),x.style("fill",f[_%p.length])):x.style("stroke",m),ac(r,ii(t.description))(t.description,x,w.x,k+35*T-(u==="neo"?10:0),w.width,w.height,{class:`actor ${sf}`},r),t.height},"drawActorTypeActor"),yJe=a(async function(e,t,r,i,n,s,o){let l=o??new Map([...s.db.getActors().values()].map((u,h)=>[u.name,h]));switch(t.type){case"actor":return await gJe(e,t,r,i,l);case"participant":return await cJe(e,t,r,i,l);case"boundary":return await mJe(e,t,r,i,l);case"control":return await dJe(e,t,r,i,n,l);case"entity":return await fJe(e,t,r,i,l);case"database":return await pJe(e,t,r,i,l);case"collections":return await uJe(e,t,r,i,l);case"queue":return await hJe(e,t,r,i,l)}},"drawActor"),xJe=a(function(e,t,r){let n=e.append("g");n0e(n,t),t.name&&ac(r)(t.name,n,t.x,t.y+r.boxTextMargin+(t.textMaxHeight||0)/2,t.width,0,{class:"text"},r),n.lower()},"drawBox"),bJe=a(function(e){return e.append("g")},"anchorElement"),TJe=a(function(e,t,r,i,n,s,o){let{theme:l,themeVariables:u}=i,{bkgColorArray:h,borderColorArray:d,mainBkg:f}=u,p=on(),m=t.anchored,g=t.actor;p.x=t.startx,p.y=t.starty,p.class="activation"+n%3,p.width=t.stopx-t.startx,p.height=r-t.starty;let x=mx(m,p),T=(o??new Map([...s.db.getActors().values()].map((k,C)=>[k.name,C]))).get(g)??0;nc.has(l)&&(x.style("stroke",d[T%d.length]),x.style("fill",h[T%d.length]??f))},"drawActivation"),kJe=a(async function(e,t,r,i,n){let{boxMargin:s,boxTextMargin:o,labelBoxHeight:l,labelBoxWidth:u,messageFontFamily:h,messageFontSize:d,messageFontWeight:f}=i,p=e.append("g").attr("data-et","control-structure").attr("data-id","i"+n.id),m=a(function(b,T,k,C){return p.append("line").attr("x1",b).attr("y1",T).attr("x2",k).attr("y2",C).attr("class","loopLine")},"drawLoopLine");m(t.startx,t.starty,t.stopx,t.starty),m(t.stopx,t.starty,t.stopx,t.stopy),m(t.startx,t.stopy,t.stopx,t.stopy),m(t.startx,t.starty,t.startx,t.stopy),t.sections!==void 0&&t.sections.forEach(function(b){m(t.startx,b.y,t.stopx,b.y).style("stroke-dasharray","3, 3")});let g=Ay();g.text=r,g.x=t.startx,g.y=t.starty,g.fontFamily=h,g.fontSize=d,g.fontWeight=f,g.anchor="middle",g.valign="middle",g.tspan=!1,g.width=Math.max(u??0,50),g.height=l+(i.look==="neo"?15:0)||20,g.textMargin=o,g.class="labelText",i0e(p,g),g=a0e(),g.text=t.title,g.x=t.startx+u/2+(t.stopx-t.startx)/2,g.y=t.starty+s+o,g.anchor="middle",g.valign="middle",g.textMargin=o,g.class="loopText",g.fontFamily=h,g.fontSize=d,g.fontWeight=f,g.wrap=!0;let x=ii(g.text)?await gx(p,g,t):of(p,g);if(t.sectionTitles!==void 0){for(let[b,T]of Object.entries(t.sectionTitles))if(T.message){g.text=T.message,g.x=t.startx+(t.stopx-t.startx)/2,g.y=t.sections[b].y+s+o,g.class="sectionTitle",g.anchor="middle",g.valign="middle",g.tspan=!1,g.fontFamily=h,g.fontSize=d,g.fontWeight=f,g.wrap=t.wrap,ii(g.text)?(t.starty=t.sections[b].y,await gx(p,g,t)):of(p,g);let k=Math.round(x.map(C=>(C._groups||C)[0][0].getBBox().height).reduce((C,S)=>C+S));t.sections[b].height+=k-(s+o)}}return t.height=Math.round(t.stopy-t.starty),p},"drawLoop"),n0e=a(function(e,t){k2(e,t)},"drawBackgroundRect"),CJe=a(function(e,t){e.append("defs").append("symbol").attr("id",t+"-database").attr("fill-rule","evenodd").attr("clip-rule","evenodd").append("path").attr("transform","scale(.5)").attr("d","M12.258.001l.256.004.255.005.253.008.251.01.249.012.247.015.246.016.242.019.241.02.239.023.236.024.233.027.231.028.229.031.225.032.223.034.22.036.217.038.214.04.211.041.208.043.205.045.201.046.198.048.194.05.191.051.187.053.183.054.18.056.175.057.172.059.168.06.163.061.16.063.155.064.15.066.074.033.073.033.071.034.07.034.069.035.068.035.067.035.066.035.064.036.064.036.062.036.06.036.06.037.058.037.058.037.055.038.055.038.053.038.052.038.051.039.05.039.048.039.047.039.045.04.044.04.043.04.041.04.04.041.039.041.037.041.036.041.034.041.033.042.032.042.03.042.029.042.027.042.026.043.024.043.023.043.021.043.02.043.018.044.017.043.015.044.013.044.012.044.011.045.009.044.007.045.006.045.004.045.002.045.001.045v17l-.001.045-.002.045-.004.045-.006.045-.007.045-.009.044-.011.045-.012.044-.013.044-.015.044-.017.043-.018.044-.02.043-.021.043-.023.043-.024.043-.026.043-.027.042-.029.042-.03.042-.032.042-.033.042-.034.041-.036.041-.037.041-.039.041-.04.041-.041.04-.043.04-.044.04-.045.04-.047.039-.048.039-.05.039-.051.039-.052.038-.053.038-.055.038-.055.038-.058.037-.058.037-.06.037-.06.036-.062.036-.064.036-.064.036-.066.035-.067.035-.068.035-.069.035-.07.034-.071.034-.073.033-.074.033-.15.066-.155.064-.16.063-.163.061-.168.06-.172.059-.175.057-.18.056-.183.054-.187.053-.191.051-.194.05-.198.048-.201.046-.205.045-.208.043-.211.041-.214.04-.217.038-.22.036-.223.034-.225.032-.229.031-.231.028-.233.027-.236.024-.239.023-.241.02-.242.019-.246.016-.247.015-.249.012-.251.01-.253.008-.255.005-.256.004-.258.001-.258-.001-.256-.004-.255-.005-.253-.008-.251-.01-.249-.012-.247-.015-.245-.016-.243-.019-.241-.02-.238-.023-.236-.024-.234-.027-.231-.028-.228-.031-.226-.032-.223-.034-.22-.036-.217-.038-.214-.04-.211-.041-.208-.043-.204-.045-.201-.046-.198-.048-.195-.05-.19-.051-.187-.053-.184-.054-.179-.056-.176-.057-.172-.059-.167-.06-.164-.061-.159-.063-.155-.064-.151-.066-.074-.033-.072-.033-.072-.034-.07-.034-.069-.035-.068-.035-.067-.035-.066-.035-.064-.036-.063-.036-.062-.036-.061-.036-.06-.037-.058-.037-.057-.037-.056-.038-.055-.038-.053-.038-.052-.038-.051-.039-.049-.039-.049-.039-.046-.039-.046-.04-.044-.04-.043-.04-.041-.04-.04-.041-.039-.041-.037-.041-.036-.041-.034-.041-.033-.042-.032-.042-.03-.042-.029-.042-.027-.042-.026-.043-.024-.043-.023-.043-.021-.043-.02-.043-.018-.044-.017-.043-.015-.044-.013-.044-.012-.044-.011-.045-.009-.044-.007-.045-.006-.045-.004-.045-.002-.045-.001-.045v-17l.001-.045.002-.045.004-.045.006-.045.007-.045.009-.044.011-.045.012-.044.013-.044.015-.044.017-.043.018-.044.02-.043.021-.043.023-.043.024-.043.026-.043.027-.042.029-.042.03-.042.032-.042.033-.042.034-.041.036-.041.037-.041.039-.041.04-.041.041-.04.043-.04.044-.04.046-.04.046-.039.049-.039.049-.039.051-.039.052-.038.053-.038.055-.038.056-.038.057-.037.058-.037.06-.037.061-.036.062-.036.063-.036.064-.036.066-.035.067-.035.068-.035.069-.035.07-.034.072-.034.072-.033.074-.033.151-.066.155-.064.159-.063.164-.061.167-.06.172-.059.176-.057.179-.056.184-.054.187-.053.19-.051.195-.05.198-.048.201-.046.204-.045.208-.043.211-.041.214-.04.217-.038.22-.036.223-.034.226-.032.228-.031.231-.028.234-.027.236-.024.238-.023.241-.02.243-.019.245-.016.247-.015.249-.012.251-.01.253-.008.255-.005.256-.004.258-.001.258.001zm-9.258 20.499v.01l.001.021.003.021.004.022.005.021.006.022.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.023.018.024.019.024.021.024.022.025.023.024.024.025.052.049.056.05.061.051.066.051.07.051.075.051.079.052.084.052.088.052.092.052.097.052.102.051.105.052.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.048.144.049.147.047.152.047.155.047.16.045.163.045.167.043.171.043.176.041.178.041.183.039.187.039.19.037.194.035.197.035.202.033.204.031.209.03.212.029.216.027.219.025.222.024.226.021.23.02.233.018.236.016.24.015.243.012.246.01.249.008.253.005.256.004.259.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.021.224-.024.22-.026.216-.027.212-.028.21-.031.205-.031.202-.034.198-.034.194-.036.191-.037.187-.039.183-.04.179-.04.175-.042.172-.043.168-.044.163-.045.16-.046.155-.046.152-.047.148-.048.143-.049.139-.049.136-.05.131-.05.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.053.083-.051.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.05.023-.024.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.023.01-.022.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.127l-.077.055-.08.053-.083.054-.085.053-.087.052-.09.052-.093.051-.095.05-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.045-.118.044-.12.043-.122.042-.124.042-.126.041-.128.04-.13.04-.132.038-.134.038-.135.037-.138.037-.139.035-.142.035-.143.034-.144.033-.147.032-.148.031-.15.03-.151.03-.153.029-.154.027-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.01-.179.008-.179.008-.181.006-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.006-.179-.008-.179-.008-.178-.01-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.027-.153-.029-.151-.03-.15-.03-.148-.031-.146-.032-.145-.033-.143-.034-.141-.035-.14-.035-.137-.037-.136-.037-.134-.038-.132-.038-.13-.04-.128-.04-.126-.041-.124-.042-.122-.042-.12-.044-.117-.043-.116-.045-.113-.045-.112-.046-.109-.047-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.05-.093-.052-.09-.051-.087-.052-.085-.053-.083-.054-.08-.054-.077-.054v4.127zm0-5.654v.011l.001.021.003.021.004.021.005.022.006.022.007.022.009.022.01.022.011.023.012.023.013.023.015.024.016.023.017.024.018.024.019.024.021.024.022.024.023.025.024.024.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.052.11.051.114.051.119.052.123.05.127.051.131.05.135.049.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.044.171.042.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.022.23.02.233.018.236.016.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.012.241-.015.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.048.139-.05.136-.049.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.051.051-.049.023-.025.023-.024.021-.025.02-.024.019-.024.018-.024.017-.024.015-.023.014-.023.013-.024.012-.022.01-.023.01-.023.008-.022.006-.022.006-.022.004-.021.004-.022.001-.021.001-.021v-4.139l-.077.054-.08.054-.083.054-.085.052-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.044-.118.044-.12.044-.122.042-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.035-.143.033-.144.033-.147.033-.148.031-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.009-.179.009-.179.007-.181.007-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.007-.179-.007-.179-.009-.178-.009-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.031-.146-.033-.145-.033-.143-.033-.141-.035-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.04-.126-.041-.124-.042-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.051-.093-.051-.09-.051-.087-.053-.085-.052-.083-.054-.08-.054-.077-.054v4.139zm0-5.666v.011l.001.02.003.022.004.021.005.022.006.021.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.024.018.023.019.024.021.025.022.024.023.024.024.025.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.051.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.043.171.043.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.021.23.02.233.018.236.017.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.013.241-.014.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.049.139-.049.136-.049.131-.051.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.049.023-.025.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.022.01-.023.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.153l-.077.054-.08.054-.083.053-.085.053-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.048-.105.048-.106.048-.109.046-.111.046-.114.046-.115.044-.118.044-.12.043-.122.043-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.034-.143.034-.144.033-.147.032-.148.032-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.024-.161.024-.162.023-.163.023-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.01-.178.01-.179.009-.179.007-.181.006-.182.006-.182.004-.184.003-.184.001-.185.001-.185-.001-.184-.001-.184-.003-.182-.004-.182-.006-.181-.006-.179-.007-.179-.009-.178-.01-.176-.01-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.023-.162-.023-.161-.024-.159-.024-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.032-.146-.032-.145-.033-.143-.034-.141-.034-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.041-.126-.041-.124-.041-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.048-.105-.048-.102-.048-.1-.05-.097-.049-.095-.051-.093-.051-.09-.052-.087-.052-.085-.053-.083-.053-.08-.054-.077-.054v4.153zm8.74-8.179l-.257.004-.254.005-.25.008-.247.011-.244.012-.241.014-.237.016-.233.018-.231.021-.226.022-.224.023-.22.026-.216.027-.212.028-.21.031-.205.032-.202.033-.198.034-.194.036-.191.038-.187.038-.183.04-.179.041-.175.042-.172.043-.168.043-.163.045-.16.046-.155.046-.152.048-.148.048-.143.048-.139.049-.136.05-.131.05-.126.051-.123.051-.118.051-.114.052-.11.052-.106.052-.101.052-.096.052-.092.052-.088.052-.083.052-.079.052-.074.051-.07.052-.065.051-.06.05-.056.05-.051.05-.023.025-.023.024-.021.024-.02.025-.019.024-.018.024-.017.023-.015.024-.014.023-.013.023-.012.023-.01.023-.01.022-.008.022-.006.023-.006.021-.004.022-.004.021-.001.021-.001.021.001.021.001.021.004.021.004.022.006.021.006.023.008.022.01.022.01.023.012.023.013.023.014.023.015.024.017.023.018.024.019.024.02.025.021.024.023.024.023.025.051.05.056.05.06.05.065.051.07.052.074.051.079.052.083.052.088.052.092.052.096.052.101.052.106.052.11.052.114.052.118.051.123.051.126.051.131.05.136.05.139.049.143.048.148.048.152.048.155.046.16.046.163.045.168.043.172.043.175.042.179.041.183.04.187.038.191.038.194.036.198.034.202.033.205.032.21.031.212.028.216.027.22.026.224.023.226.022.231.021.233.018.237.016.241.014.244.012.247.011.25.008.254.005.257.004.26.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.022.224-.023.22-.026.216-.027.212-.028.21-.031.205-.032.202-.033.198-.034.194-.036.191-.038.187-.038.183-.04.179-.041.175-.042.172-.043.168-.043.163-.045.16-.046.155-.046.152-.048.148-.048.143-.048.139-.049.136-.05.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.05.051-.05.023-.025.023-.024.021-.024.02-.025.019-.024.018-.024.017-.023.015-.024.014-.023.013-.023.012-.023.01-.023.01-.022.008-.022.006-.023.006-.021.004-.022.004-.021.001-.021.001-.021-.001-.021-.001-.021-.004-.021-.004-.022-.006-.021-.006-.023-.008-.022-.01-.022-.01-.023-.012-.023-.013-.023-.014-.023-.015-.024-.017-.023-.018-.024-.019-.024-.02-.025-.021-.024-.023-.024-.023-.025-.051-.05-.056-.05-.06-.05-.065-.051-.07-.052-.074-.051-.079-.052-.083-.052-.088-.052-.092-.052-.096-.052-.101-.052-.106-.052-.11-.052-.114-.052-.118-.051-.123-.051-.126-.051-.131-.05-.136-.05-.139-.049-.143-.048-.148-.048-.152-.048-.155-.046-.16-.046-.163-.045-.168-.043-.172-.043-.175-.042-.179-.041-.183-.04-.187-.038-.191-.038-.194-.036-.198-.034-.202-.033-.205-.032-.21-.031-.212-.028-.216-.027-.22-.026-.224-.023-.226-.022-.231-.021-.233-.018-.237-.016-.241-.014-.244-.012-.247-.011-.25-.008-.254-.005-.257-.004-.26-.001-.26.001z")},"insertDatabaseIcon"),vJe=a(function(e,t){e.append("defs").append("symbol").attr("id",t+"-computer").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M2 2v13h20v-13h-20zm18 11h-16v-9h16v9zm-10.228 6l.466-1h3.524l.467 1h-4.457zm14.228 3h-24l2-6h2.104l-1.33 4h18.45l-1.297-4h2.073l2 6zm-5-10h-14v-7h14v7z")},"insertComputerIcon"),SJe=a(function(e,t){e.append("defs").append("symbol").attr("id",t+"-clock").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm5.848 12.459c.202.038.202.333.001.372-1.907.361-6.045 1.111-6.547 1.111-.719 0-1.301-.582-1.301-1.301 0-.512.77-5.447 1.125-7.445.034-.192.312-.181.343.014l.985 6.238 5.394 1.011z")},"insertClockIcon"),_Je=a(function(e,t){e.append("defs").append("marker").attr("id",t+"-arrowhead").attr("refX",7.9).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto-start-reverse").append("path").attr("d","M -1 0 L 10 5 L 0 10 z")},"insertArrowHead"),wJe=a(function(e,t){e.append("defs").append("marker").attr("id",t+"-filled-head").attr("refX",15.5).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")},"insertArrowFilledHead"),EJe=a(function(e,t){e.append("defs").append("marker").attr("id",t+"-sequencenumber").attr("refX",15).attr("refY",15).attr("markerWidth",60).attr("markerHeight",40).attr("orient","auto").append("circle").attr("cx",15).attr("cy",15).attr("r",6)},"insertSequenceNumber"),AJe=a(function(e,t){e.append("defs").append("marker").attr("id",t+"-crosshead").attr("markerWidth",15).attr("markerHeight",8).attr("orient","auto").attr("refX",4).attr("refY",4.5).append("path").attr("fill","none").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1pt").attr("d","M 1,2 L 6,7 M 6,2 L 1,7")},"insertArrowCrossHead"),RJe=a(function(e,t){let{theme:r}=t;e.append("defs").append("filter").attr("id","drop-shadow").attr("height","130%").attr("width","130%").append("feDropShadow").attr("dx","4").attr("dy","4").attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",`${r==="redux"||r==="redux-color"?"#000000":"#FFFFFF"}`)},"insertDropShadow"),a0e=a(function(){return{x:0,y:0,fill:void 0,anchor:void 0,style:"#666",width:void 0,height:void 0,textMargin:0,rx:0,ry:0,tspan:!0,valign:void 0}},"getTextObj"),LJe=a(function(){return{x:0,y:0,fill:"#EDF2AE",stroke:"#666",width:100,anchor:"start",height:100,rx:0,ry:0}},"getNoteRect"),ac=(function(){function e(s,o,l,u,h,d,f){let p=o.append("text").attr("x",l+h/2).attr("y",u+d/2+5).style("text-anchor","middle").text(s);n(p,f)}a(e,"byText");function t(s,o,l,u,h,d,f,p){let{actorFontSize:m,actorFontFamily:g,actorFontWeight:x}=p,[b,T]=Qn(m),k=s.split(He.lineBreakRegex);for(let C=0;C<k.length;C++){let S=C*b-b*(k.length-1)/2,w=o.append("text").attr("x",l+h/2).attr("y",u).style("text-anchor","middle").style("font-size",T).style("font-weight",x).style("font-family",g);w.append("tspan").attr("x",l+h/2).attr("dy",S).text(k[C]),w.attr("y",u+d/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),n(w,f)}}a(t,"byTspan");function r(s,o,l,u,h,d,f,p){let m=o.append("switch"),x=m.append("foreignObject").attr("x",l).attr("y",u).attr("width",h).attr("height",d).append("xhtml:div").style("display","table").style("height","100%").style("width","100%");x.append("div").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(s),t(s,m,l,u,h,d,f,p),n(x,f)}a(r,"byFo");async function i(s,o,l,u,h,d,f,p){let m=await Xu(s,ct()),g=o.append("switch"),b=g.append("foreignObject").attr("x",l+h/2-m.width/2).attr("y",u+d/2-m.height/2).attr("width",m.width).attr("height",m.height).append("xhtml:div").style("height","100%").style("width","100%");b.append("div").style("text-align","center").style("vertical-align","middle").html(await _f(s,ct())),t(s,g,l,u,h,d,f,p),n(b,f)}a(i,"byKatex");function n(s,o){for(let l in o)o.hasOwnProperty(l)&&s.attr(l,o[l])}return a(n,"_setTextAttrs"),function(s,o=!1){return o?i:s.textPlacement==="fo"?r:s.textPlacement==="old"?e:t}})(),DJe=(function(){function e(n,s,o,l,u,h,d){let f=s.append("text").attr("x",o).attr("y",l).style("text-anchor","start").text(n);i(f,d)}a(e,"byText");function t(n,s,o,l,u,h,d,f){let{actorFontSize:p,actorFontFamily:m,actorFontWeight:g}=f,x=n.split(He.lineBreakRegex);for(let b=0;b<x.length;b++){let T=b*p-p*(x.length-1)/2,k=s.append("text").attr("x",o).attr("y",l).style("text-anchor","start").style("font-size",p).style("font-weight",g).style("font-family",m);k.append("tspan").attr("x",o).attr("dy",T).text(x[b]),k.attr("y",l+h/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),i(k,d)}}a(t,"byTspan");function r(n,s,o,l,u,h,d,f){let p=s.append("switch"),g=p.append("foreignObject").attr("x",o).attr("y",l).attr("width",u).attr("height",h).append("xhtml:div").style("display","table").style("height","100%").style("width","100%");g.append("div").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(n),t(n,p,o,l,u,h,d,f),i(g,d)}a(r,"byFo");function i(n,s){for(let o in s)s.hasOwnProperty(o)&&n.attr(o,s[o])}return a(i,"_setTextAttrs"),function(n){return n.textPlacement==="fo"?r:n.textPlacement==="old"?e:t}})(),IJe=a(function(e,t){e.append("defs").append("marker").attr("id",t+"-solidTopArrowHead").attr("refX",7.9).attr("refY",7.25).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto-start-reverse").append("path").attr("d","M 0 0 L 10 8 L 0 8 z")},"insertSolidTopArrowHead"),NJe=a(function(e,t){e.append("defs").append("marker").attr("id",t+"-solidBottomArrowHead").attr("refX",7.9).attr("refY",.75).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto-start-reverse").append("path").attr("d","M 0 0 L 10 0 L 0 8 z")},"insertSolidBottomArrowHead"),MJe=a(function(e,t){e.append("defs").append("marker").attr("id",t+"-stickTopArrowHead").attr("refX",7.5).attr("refY",7).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto-start-reverse").append("path").attr("d","M 0 0 L 7 7").attr("stroke","black").attr("stroke-width",1.5).attr("fill","none")},"insertStickTopArrowHead"),OJe=a(function(e,t){e.append("defs").append("marker").attr("id",t+"-stickBottomArrowHead").attr("refX",7.5).attr("refY",0).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto-start-reverse").append("path").attr("d","M 0 7 L 7 0").attr("stroke","black").attr("stroke-width",1.5).attr("fill","none")},"insertStickBottomArrowHead"),Vr={drawRect:mx,drawText:of,drawLabel:i0e,drawActor:yJe,drawBox:xJe,drawPopup:lJe,anchorElement:bJe,drawActivation:TJe,drawLoop:kJe,drawBackgroundRect:n0e,insertArrowHead:_Je,insertArrowFilledHead:wJe,insertSequenceNumber:EJe,insertArrowCrossHead:AJe,insertDatabaseIcon:CJe,insertComputerIcon:vJe,insertClockIcon:SJe,getTextObj:a0e,getNoteRect:LJe,fixLifeLineHeights:vP,sanitizeUrl:CP.sanitizeUrl,insertDropShadow:RJe,insertSolidTopArrowHead:IJe,insertSolidBottomArrowHead:NJe,insertStickTopArrowHead:MJe,insertStickBottomArrowHead:OJe}});async function BJe(e,t){Qe.bumpVerticalPos(10);let{startx:r,stopx:i,message:n}=t,s=He.splitBreaks(n).length,o=ii(n),l=o?await Xu(n,J()):St.calculateTextDimensions(n,lf(me));if(!o){let f=l.height/s;t.height+=f,Qe.bumpVerticalPos(f)}let u,h=l.height-10,d=l.width;if(r===i){u=Qe.getVerticalPos()+h,me.rightAngles||(h+=me.boxMargin,u=Qe.getVerticalPos()+h),h+=30;let f=He.getMax(d/2,me.width/2);Qe.insert(r-f,Qe.getVerticalPos()-10+h,i+f,Qe.getVerticalPos()+30+h)}else h+=me.boxMargin,u=Qe.getVerticalPos()+h,Qe.insert(r,u-10,i,u);return Qe.bumpVerticalPos(h),t.height+=h,t.stopy=t.starty+t.height,Qe.insert(t.fromBounds,t.starty,t.toBounds,t.stopy),u}function tl(e,t,r,i,n){Qe.bumpVerticalPos(r);let s=i;if(t.id&&t.message&&e[t.id]){let o=e[t.id].width,l=lf(me);t.message=St.wrapLabel(`[${t.message}]`,o-2*me.wrapPadding,l),t.width=o,t.wrap=!0;let u=St.calculateTextDimensions(t.message,l),h=He.getMax(u.height,me.labelBoxHeight);s=i+h,W.debug(`${h} - ${t.message}`)}n(t),Qe.bumpVerticalPos(s)}function VJe(e,t,r,i,n,s,o){function l(d,f){d.x<n.get(e.from).x?(Qe.insert(t.stopx-f,t.starty,t.startx,t.stopy+d.height/2+me.noteMargin),t.stopx=t.stopx+f):(Qe.insert(t.startx,t.starty,t.stopx+f,t.stopy+d.height/2+me.noteMargin),t.stopx=t.stopx-f)}a(l,"receiverAdjustment");function u(d,f){d.x<n.get(e.to).x?(Qe.insert(t.startx-f,t.starty,t.stopx,t.stopy+d.height/2+me.noteMargin),t.startx=t.startx+f):(Qe.insert(t.stopx,t.starty,t.startx+f,t.stopy+d.height/2+me.noteMargin),t.startx=t.startx-f)}a(u,"senderAdjustment");let h=[px.ACTOR,px.CONTROL,px.ENTITY,px.DATABASE];if(s.get(e.to)==i){let d=n.get(e.to),f=h.includes(d.type)?Mu/2+3:d.width/2+3;l(d,f),d.starty=r-d.height/2,Qe.bumpVerticalPos(d.height/2)}else if(o.get(e.from)==i){let d=n.get(e.from);if(me.mirrorActors){let f=h.includes(d.type)?Mu/2:d.width/2;u(d,f)}d.stopy=r-d.height/2,Qe.bumpVerticalPos(d.height/2)}else if(o.get(e.to)==i){let d=n.get(e.to);if(me.mirrorActors){let f=h.includes(d.type)?Mu/2+3:d.width/2+3;l(d,f)}d.stopy=r-d.height/2,Qe.bumpVerticalPos(d.height/2)}}async function WJe(e,t,r){let i={};for(let n of t)if(e.get(n.to)&&e.get(n.from)){let s=e.get(n.to);if(n.placement===r.db.PLACEMENT.LEFTOF&&!s.prevActor||n.placement===r.db.PLACEMENT.RIGHTOF&&!s.nextActor)continue;let o=n.placement!==void 0,l=!o,u=o?Fm(me):lf(me),h=n.wrap?St.wrapLabel(n.message,me.width-2*me.wrapPadding,u):n.message,f=(ii(h)?await Xu(n.message,J()):St.calculateTextDimensions(h,u)).width+2*me.wrapPadding;l&&n.from===s.nextActor?i[n.to]=He.getMax(i[n.to]||0,f):l&&n.from===s.prevActor?i[n.from]=He.getMax(i[n.from]||0,f):l&&n.from===n.to?(i[n.from]=He.getMax(i[n.from]||0,f/2),i[n.to]=He.getMax(i[n.to]||0,f/2)):n.placement===r.db.PLACEMENT.RIGHTOF?i[n.from]=He.getMax(i[n.from]||0,f):n.placement===r.db.PLACEMENT.LEFTOF?i[s.prevActor]=He.getMax(i[s.prevActor]||0,f):n.placement===r.db.PLACEMENT.OVER&&(s.prevActor&&(i[s.prevActor]=He.getMax(i[s.prevActor]||0,f/2)),s.nextActor&&(i[n.from]=He.getMax(i[n.from]||0,f/2)))}return W.debug("maxMessageWidthPerActor:",i),i}async function qJe(e,t,r){let i=0;for(let s of e.keys()){let o=e.get(s);o.wrap&&(o.description=St.wrapLabel(o.description,me.width-2*me.wrapPadding,_P(me)));let l=ii(o.description)?await Xu(o.description,J()):St.calculateTextDimensions(o.description,_P(me));o.width=o.wrap?me.width:He.getMax(me.width,l.width+2*me.wrapPadding),o.height=o.wrap?He.getMax(l.height,me.height):me.height,i=He.getMax(i,o.height)}for(let s in t){let o=e.get(s);if(!o)continue;let l=e.get(o.nextActor);if(!l){let f=t[s]+me.actorMargin-o.width/2;o.margin=He.getMax(f,me.actorMargin);continue}let h=t[s]+me.actorMargin-o.width/2-l.width/2;o.margin=He.getMax(h,me.actorMargin)}let n=0;return r.forEach(s=>{let o=lf(me),l=s.actorKeys.reduce((f,p)=>f+=e.get(p).width+(e.get(p).margin||0),0),u=me.boxMargin*8;l+=u,l-=2*me.boxTextMargin,s.wrap&&(s.name=St.wrapLabel(s.name,l-2*me.wrapPadding,o));let h=St.calculateTextDimensions(s.name,o);n=He.getMax(h.height,n);let d=He.getMax(l,h.width+2*me.wrapPadding);if(s.margin=me.boxTextMargin,l<d){let f=(d-l)/2;s.margin+=f}}),r.forEach(s=>s.textMaxHeight=n),He.getMax(i,me.height)}var me,Qe,PJe,o0e,lf,Fm,_P,$Je,FJe,wP,c0e,u0e,w_,l0e,GJe,zJe,jJe,UJe,HJe,SP,YJe,h0e,KJe,XJe,QJe,d0e,f0e=v(()=>{"use strict";sr();s0e();nt();dr();dr();Th();bt();bf();Et();Xr();kP();me={},Qe={data:{startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},verticalPos:0,sequenceItems:[],activations:[],models:{getHeight:a(function(){return Math.max.apply(null,this.actors.length===0?[0]:this.actors.map(e=>e.height||0))+(this.loops.length===0?0:this.loops.map(e=>e.height||0).reduce((e,t)=>e+t))+(this.messages.length===0?0:this.messages.map(e=>e.height||0).reduce((e,t)=>e+t))+(this.notes.length===0?0:this.notes.map(e=>e.height||0).reduce((e,t)=>e+t))},"getHeight"),clear:a(function(){this.actors=[],this.boxes=[],this.loops=[],this.messages=[],this.notes=[]},"clear"),addBox:a(function(e){this.boxes.push(e)},"addBox"),addActor:a(function(e){this.actors.push(e)},"addActor"),addLoop:a(function(e){this.loops.push(e)},"addLoop"),addMessage:a(function(e){this.messages.push(e)},"addMessage"),addNote:a(function(e){this.notes.push(e)},"addNote"),lastActor:a(function(){return this.actors[this.actors.length-1]},"lastActor"),lastLoop:a(function(){return this.loops[this.loops.length-1]},"lastLoop"),lastMessage:a(function(){return this.messages[this.messages.length-1]},"lastMessage"),lastNote:a(function(){return this.notes[this.notes.length-1]},"lastNote"),actors:[],boxes:[],loops:[],messages:[],notes:[]},init:a(function(){this.sequenceItems=[],this.activations=[],this.models.clear(),this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},this.verticalPos=0,u0e(J())},"init"),updateVal:a(function(e,t,r,i){e[t]===void 0?e[t]=r:e[t]=i(r,e[t])},"updateVal"),updateBounds:a(function(e,t,r,i){let n=this,s=0;function o(l){return a(function(h){s++;let d=n.sequenceItems.length-s+1;n.updateVal(h,"starty",t-d*me.boxMargin,Math.min),n.updateVal(h,"stopy",i+d*me.boxMargin,Math.max),n.updateVal(Qe.data,"startx",e-d*me.boxMargin,Math.min),n.updateVal(Qe.data,"stopx",r+d*me.boxMargin,Math.max),l!=="activation"&&(n.updateVal(h,"startx",e-d*me.boxMargin,Math.min),n.updateVal(h,"stopx",r+d*me.boxMargin,Math.max),n.updateVal(Qe.data,"starty",t-d*me.boxMargin,Math.min),n.updateVal(Qe.data,"stopy",i+d*me.boxMargin,Math.max))},"updateItemBounds")}a(o,"updateFn"),this.sequenceItems.forEach(o()),this.activations.forEach(o("activation"))},"updateBounds"),insert:a(function(e,t,r,i){let n=He.getMin(e,r),s=He.getMax(e,r),o=He.getMin(t,i),l=He.getMax(t,i);this.updateVal(Qe.data,"startx",n,Math.min),this.updateVal(Qe.data,"starty",o,Math.min),this.updateVal(Qe.data,"stopx",s,Math.max),this.updateVal(Qe.data,"stopy",l,Math.max),this.updateBounds(n,o,s,l)},"insert"),newActivation:a(function(e,t,r){let i=r.get(e.from),n=w_(e.from).length||0,s=i.x+i.width/2+(n-1)*me.activationWidth/2;this.activations.push({startx:s,starty:this.verticalPos+2,stopx:s+me.activationWidth,stopy:void 0,actor:e.from,anchored:Vr.anchorElement(t)})},"newActivation"),endActivation:a(function(e){let t=this.activations.map(function(r){return r.actor}).lastIndexOf(e.from);return this.activations.splice(t,1)[0]},"endActivation"),createLoop:a(function(e={message:void 0,wrap:!1,width:void 0},t){return{startx:void 0,starty:this.verticalPos,stopx:void 0,stopy:void 0,title:e.message,wrap:e.wrap,width:e.width,height:0,fill:t}},"createLoop"),newLoop:a(function(e={message:void 0,wrap:!1,width:void 0},t){this.sequenceItems.push(this.createLoop(e,t))},"newLoop"),endLoop:a(function(){return this.sequenceItems.pop()},"endLoop"),isLoopOverlap:a(function(){return this.sequenceItems.length?this.sequenceItems[this.sequenceItems.length-1].overlap:!1},"isLoopOverlap"),addSectionToLoop:a(function(e){let t=this.sequenceItems.pop();t.sections=t.sections||[],t.sectionTitles=t.sectionTitles||[],t.sections.push({y:Qe.getVerticalPos(),height:0}),t.sectionTitles.push(e),this.sequenceItems.push(t)},"addSectionToLoop"),saveVerticalPos:a(function(){this.isLoopOverlap()&&(this.savedVerticalPos=this.verticalPos)},"saveVerticalPos"),resetVerticalPos:a(function(){this.isLoopOverlap()&&(this.verticalPos=this.savedVerticalPos)},"resetVerticalPos"),bumpVerticalPos:a(function(e){this.verticalPos=this.verticalPos+e,this.data.stopy=He.getMax(this.data.stopy,this.verticalPos)},"bumpVerticalPos"),getVerticalPos:a(function(){return this.verticalPos},"getVerticalPos"),getBounds:a(function(){return{bounds:this.data,models:this.models}},"getBounds")},PJe=a(async function(e,t,r){Qe.bumpVerticalPos(me.boxMargin),t.height=me.boxMargin,t.starty=Qe.getVerticalPos();let i=on();i.x=t.startx,i.y=t.starty,i.width=t.width||me.width,i.class="note";let n=e.append("g");n.attr("data-et","note"),n.attr("data-id","i"+r);let s=Vr.drawRect(n,i),o=Ay();o.x=t.startx,o.y=t.starty,o.width=i.width,o.dy="1em",o.text=t.message,o.class="noteText",o.fontFamily=me.noteFontFamily,o.fontSize=me.noteFontSize,o.fontWeight=me.noteFontWeight,o.anchor=me.noteAlign,o.textMargin=me.noteMargin,o.valign="center";let l=ii(o.text)?await gx(n,o):of(n,o),u=Math.round(l.map(h=>(h._groups||h)[0][0].getBBox().height).reduce((h,d)=>h+d));s.attr("height",u+2*me.noteMargin),t.height+=u+2*me.noteMargin,Qe.bumpVerticalPos(u+2*me.noteMargin),t.stopy=t.starty+u+2*me.noteMargin,t.stopx=t.startx+i.width,Qe.insert(t.startx,t.starty,t.stopx,t.stopy),Qe.models.addNote(t)},"drawNote"),o0e=a(function(e,t,r,i,n,s,o){let l=i.db.getActors(),u=l.get(t.from),h=l.get(t.to),d=r.sequenceVisible,f=u.x+u.width/2,p=h.x+h.width/2,m=f<=p,g=h0e(t,i),x=e.append("g"),b=16.5,T=a((_,L)=>{let I=_?b:-b;return L?-I:I},"getCircleOffset"),k=a(_=>{x.append("circle").attr("cx",_).attr("cy",o).attr("r",5).attr("width",10).attr("height",10)},"drawCircle"),{CENTRAL_CONNECTION:C,CENTRAL_CONNECTION_REVERSE:S,CENTRAL_CONNECTION_DUAL:w}=i.db.LINETYPE;if(d)switch(t.centralConnection){case C:g&&(p+=T(m,!0));break;case S:g||(f+=T(m,!1));break;case w:g?p+=T(m,!0):f+=T(m,!1);break}switch(t.centralConnection){case C:k(p);break;case S:k(f);break;case w:k(f),k(p);break}},"drawCentralConnection"),lf=a(e=>({fontFamily:e.messageFontFamily,fontSize:e.messageFontSize,fontWeight:e.messageFontWeight}),"messageFont"),Fm=a(e=>({fontFamily:e.noteFontFamily,fontSize:e.noteFontSize,fontWeight:e.noteFontWeight}),"noteFont"),_P=a(e=>({fontFamily:e.actorFontFamily,fontSize:e.actorFontSize,fontWeight:e.actorFontWeight}),"actorFont");a(BJe,"boundMessage");$Je=a(async function(e,t,r,i,n,s){let{startx:o,stopx:l,starty:u,message:h,type:d,sequenceIndex:f,sequenceVisible:p}=t,m=St.calculateTextDimensions(h,lf(me)),g=Ay();g.x=Math.min(o,l),g.y=u+10,g.width=Math.abs(l-o),g.class="messageText",g.dy="1em",g.text=h,g.fontFamily=me.messageFontFamily,g.fontSize=me.messageFontSize,g.fontWeight=me.messageFontWeight,g.anchor=me.messageAlign,g.valign="center",g.textMargin=me.wrapPadding,g.tspan=!1,ii(g.text)?await gx(e,g,{startx:o,stopx:l,starty:r}):of(e,g);let x=m.width,b;if(o===l){let k=p||me.showSequenceNumbers,C=h0e(n,i),S=KJe(n,i),w=o+(k&&(C||S)?10:0);me.rightAngles?b=e.append("path").attr("d",`M ${w},${r} H ${o+He.getMax(me.width/2,x/2)} V ${r+25} H ${o}`):b=e.append("path").attr("d","M "+w+","+r+" C "+(w+60)+","+(r-10)+" "+(o+60)+","+(r+30)+" "+o+","+(r+20)),SP(n,i)&&o0e(e,n,t,i,o,l,r)}else b=e.append("line"),b.attr("x1",o),b.attr("y1",r),b.attr("x2",l),b.attr("y2",r),SP(n,i)&&o0e(e,n,t,i,o,l,r);d===i.db.LINETYPE.DOTTED||d===i.db.LINETYPE.DOTTED_CROSS||d===i.db.LINETYPE.DOTTED_POINT||d===i.db.LINETYPE.DOTTED_OPEN||d===i.db.LINETYPE.BIDIRECTIONAL_DOTTED||d===i.db.LINETYPE.SOLID_TOP_DOTTED||d===i.db.LINETYPE.SOLID_BOTTOM_DOTTED||d===i.db.LINETYPE.STICK_TOP_DOTTED||d===i.db.LINETYPE.STICK_BOTTOM_DOTTED||d===i.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED||d===i.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED||d===i.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED||d===i.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED?(b.style("stroke-dasharray","3, 3"),b.attr("class","messageLine1")):b.attr("class","messageLine0"),b.attr("data-et","message"),b.attr("data-id","i"+t.id),b.attr("data-from",t.from),b.attr("data-to",t.to);let T="";if(me.arrowMarkerAbsolute&&(T=Ku(!0)),b.attr("stroke-width",2),b.attr("stroke","none"),b.style("fill","none"),(d===i.db.LINETYPE.SOLID_TOP||d===i.db.LINETYPE.SOLID_TOP_DOTTED)&&b.attr("marker-end","url("+T+"#"+s+"-solidTopArrowHead)"),(d===i.db.LINETYPE.SOLID_BOTTOM||d===i.db.LINETYPE.SOLID_BOTTOM_DOTTED)&&b.attr("marker-end","url("+T+"#"+s+"-solidBottomArrowHead)"),(d===i.db.LINETYPE.STICK_TOP||d===i.db.LINETYPE.STICK_TOP_DOTTED)&&b.attr("marker-end","url("+T+"#"+s+"-stickTopArrowHead)"),(d===i.db.LINETYPE.STICK_BOTTOM||d===i.db.LINETYPE.STICK_BOTTOM_DOTTED)&&b.attr("marker-end","url("+T+"#"+s+"-stickBottomArrowHead)"),(d===i.db.LINETYPE.SOLID_ARROW_TOP_REVERSE||d===i.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED)&&b.attr("marker-start","url("+T+"#"+s+"-solidBottomArrowHead)"),(d===i.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE||d===i.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED)&&b.attr("marker-start","url("+T+"#"+s+"-solidTopArrowHead)"),(d===i.db.LINETYPE.STICK_ARROW_TOP_REVERSE||d===i.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED)&&b.attr("marker-start","url("+T+"#"+s+"-stickBottomArrowHead)"),(d===i.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE||d===i.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED)&&b.attr("marker-start","url("+T+"#"+s+"-stickTopArrowHead)"),(d===i.db.LINETYPE.SOLID||d===i.db.LINETYPE.DOTTED)&&b.attr("marker-end","url("+T+"#"+s+"-arrowhead)"),(d===i.db.LINETYPE.BIDIRECTIONAL_SOLID||d===i.db.LINETYPE.BIDIRECTIONAL_DOTTED)&&(b.attr("marker-start","url("+T+"#"+s+"-arrowhead)"),b.attr("marker-end","url("+T+"#"+s+"-arrowhead)")),(d===i.db.LINETYPE.SOLID_POINT||d===i.db.LINETYPE.DOTTED_POINT)&&b.attr("marker-end","url("+T+"#"+s+"-filled-head)"),(d===i.db.LINETYPE.SOLID_CROSS||d===i.db.LINETYPE.DOTTED_CROSS)&&b.attr("marker-end","url("+T+"#"+s+"-crosshead)"),p||me.showSequenceNumbers){let k=d===i.db.LINETYPE.BIDIRECTIONAL_SOLID||d===i.db.LINETYPE.BIDIRECTIONAL_DOTTED,C=d===i.db.LINETYPE.SOLID_ARROW_TOP_REVERSE||d===i.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED||d===i.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE||d===i.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED||d===i.db.LINETYPE.STICK_ARROW_TOP_REVERSE||d===i.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED||d===i.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE||d===i.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED,S=6,w=SP(n,i),_=o,L=l;k?(o<l?_=o+S*2:(_=o-S+(w?-5:0),_+=n?.centralConnection===i.db.LINETYPE.CENTRAL_CONNECTION_DUAL||n?.centralConnection===i.db.LINETYPE.CENTRAL_CONNECTION_REVERSE?-7.5:0),b.attr("x1",_)):C?(l>o?L=l-2*S:(L=l-S,_+=n?.centralConnection===i.db.LINETYPE.CENTRAL_CONNECTION_DUAL||n?.centralConnection===i.db.LINETYPE.CENTRAL_CONNECTION_REVERSE?-7.5:0),L+=w?15:0,b.attr("x2",L),b.attr("x1",_)):b.attr("x1",o+S);let I=0,B=o===l,G=o<=l;B?I=t.fromBounds+1:C?I=G?t.toBounds-1:t.fromBounds+1:I=G?t.fromBounds+1:t.toBounds-1;let P="12px",F=f.toString().length;F>5?P="7px":F>3&&(P="9px"),e.append("line").attr("x1",I).attr("y1",r).attr("x2",I).attr("y2",r).attr("stroke-width",0).attr("marker-start","url("+T+"#"+s+"-sequencenumber)"),e.append("text").attr("x",I).attr("y",r+4).attr("font-family","sans-serif").attr("font-size",P).attr("text-anchor","middle").attr("class","sequenceNumber").text(f)}},"drawMessage"),FJe=a(function(e,t,r,i,n,s,o){let l=0,u=0,h,d=0;for(let f of i){let p=t.get(f),m=p.box;h&&h!=m&&(o||Qe.models.addBox(h),u+=me.boxMargin+h.margin),m&&m!=h&&(o||(m.x=l+u,m.y=n),u+=m.margin),p.width=He.getMax(p.width||me.width,me.width),p.height=He.getMax(p.height||me.height,me.height),p.margin=p.margin||me.actorMargin,d=He.getMax(d,p.height),r.get(p.name)&&(u+=p.width/2),p.x=l+u,p.starty=Qe.getVerticalPos(),Qe.insert(p.x,n,p.x+p.width,p.height),l+=p.width+u,p.box&&(p.box.width=l+m.margin-p.box.x),u=p.margin,h=p.box,Qe.models.addActor(p)}h&&!o&&Qe.models.addBox(h),Qe.bumpVerticalPos(d)},"addActorRenderingData"),wP=a(async function(e,t,r,i,n,s,o){if(i){let l=0;Qe.bumpVerticalPos(me.boxMargin*2);for(let u of r){let h=t.get(u);h.stopy||(h.stopy=Qe.getVerticalPos());let d=await Vr.drawActor(e,h,me,!0,n,s,o);l=He.getMax(l,d)}Qe.bumpVerticalPos(l+me.boxMargin)}else for(let l of r){let u=t.get(l);await Vr.drawActor(e,u,me,!1,n,s,o)}},"drawActors"),c0e=a(function(e,t,r,i){let n=0,s=0;for(let o of r){let l=t.get(o),u=zJe(l),h=Vr.drawPopup(e,l,u,me,me.forceMenus,i);h.height>n&&(n=h.height),h.width+l.x>s&&(s=h.width+l.x)}return{maxHeight:n,maxWidth:s}},"drawActorsPopup"),u0e=a(function(e){ri(me,e),e.fontFamily&&(me.actorFontFamily=me.noteFontFamily=me.messageFontFamily=e.fontFamily),e.fontSize&&(me.actorFontSize=me.noteFontSize=me.messageFontSize=e.fontSize),e.fontWeight&&(me.actorFontWeight=me.noteFontWeight=me.messageFontWeight=e.fontWeight)},"setConf"),w_=a(function(e){return Qe.activations.filter(function(t){return t.actor===e})},"actorActivations"),l0e=a(function(e,t){let r=t.get(e),i=w_(e),n=i.reduce(function(o,l){return He.getMin(o,l.startx)},r.x+r.width/2-1),s=i.reduce(function(o,l){return He.getMax(o,l.stopx)},r.x+r.width/2+1);return[n,s]},"activationBounds");a(tl,"adjustLoopHeightForWrap");a(VJe,"adjustCreatedDestroyedData");GJe=a(async function(e,t,r,i){let{securityLevel:n,sequence:s,look:o}=J();me=s;let l;n==="sandbox"&&(l=Se("#i"+t));let u=n==="sandbox"?Se(l.nodes()[0].contentDocument.body):Se("body"),h=n==="sandbox"?l.nodes()[0].contentDocument:document;Qe.init(),W.debug(i.db);let d=n==="sandbox"?u.select(`[id="${t}"]`):Se(`[id="${t}"]`),f=i.db.getActors(),p=i.db.getCreatedActors(),m=i.db.getDestroyedActors(),g=i.db.getBoxes(),x=i.db.getActorKeys(),b=i.db.getMessages(),T=i.db.getDiagramTitle(),k=i.db.hasAtLeastOneBox(),C=i.db.hasAtLeastOneBoxWithTitle(),S=await WJe(f,b,i);if(me.height=await qJe(f,S,g),Vr.insertComputerIcon(d,t),Vr.insertDatabaseIcon(d,t),Vr.insertClockIcon(d,t),k&&(Qe.bumpVerticalPos(me.boxMargin),C&&Qe.bumpVerticalPos(g[0].textMaxHeight)),me.hideUnusedParticipants===!0){let O=new Set;b.forEach(z=>{O.add(z.from),O.add(z.to)}),x=x.filter(z=>O.has(z))}let w=new Map(x.map((O,z)=>[f.get(O)?.name??O,z]));FJe(d,f,p,x,0,b,!1);let _=await QJe(b,f,S,i);Vr.insertArrowHead(d,t),Vr.insertArrowCrossHead(d,t),Vr.insertArrowFilledHead(d,t),Vr.insertSequenceNumber(d,t),Vr.insertSolidTopArrowHead(d,t),Vr.insertSolidBottomArrowHead(d,t),Vr.insertStickTopArrowHead(d,t),Vr.insertStickBottomArrowHead(d,t),o==="neo"&&Vr.insertDropShadow(d,me);function L(O,z){let U=Qe.endActivation(O);U.starty+18>z&&(U.starty=z-6,z+=12),Vr.drawActivation(d,U,z,me,w_(O.from).length,i,w),Qe.insert(U.startx,z-10,U.stopx,z)}a(L,"activeEnd");let I=1,B=1,G=[],P=[],F=0;for(let O of b){let z,U,K;switch(O.type){case i.db.LINETYPE.NOTE:Qe.resetVerticalPos(),U=O.noteModel,await PJe(d,U,O.id);break;case i.db.LINETYPE.ACTIVE_START:Qe.newActivation(O,d,f);break;case i.db.LINETYPE.CENTRAL_CONNECTION:Qe.newActivation(O,d,f);break;case i.db.LINETYPE.CENTRAL_CONNECTION_REVERSE:Qe.newActivation(O,d,f);break;case i.db.LINETYPE.ACTIVE_END:L(O,Qe.getVerticalPos());break;case i.db.LINETYPE.LOOP_START:tl(_,O,me.boxMargin,me.boxMargin+me.boxTextMargin,j=>Qe.newLoop(j));break;case i.db.LINETYPE.LOOP_END:z=Qe.endLoop(),await Vr.drawLoop(d,z,"loop",me,O),Qe.bumpVerticalPos(z.stopy-Qe.getVerticalPos()),Qe.models.addLoop(z);break;case i.db.LINETYPE.RECT_START:tl(_,O,me.boxMargin,me.boxMargin,j=>Qe.newLoop(void 0,j.message));break;case i.db.LINETYPE.RECT_END:z=Qe.endLoop(),P.push(z),Qe.models.addLoop(z),Qe.bumpVerticalPos(z.stopy-Qe.getVerticalPos());break;case i.db.LINETYPE.OPT_START:tl(_,O,me.boxMargin,me.boxMargin+me.boxTextMargin,j=>Qe.newLoop(j));break;case i.db.LINETYPE.OPT_END:z=Qe.endLoop(),await Vr.drawLoop(d,z,"opt",me,O),Qe.bumpVerticalPos(z.stopy-Qe.getVerticalPos()),Qe.models.addLoop(z);break;case i.db.LINETYPE.ALT_START:tl(_,O,me.boxMargin,me.boxMargin+me.boxTextMargin,j=>Qe.newLoop(j));break;case i.db.LINETYPE.ALT_ELSE:tl(_,O,me.boxMargin+me.boxTextMargin,me.boxMargin,j=>Qe.addSectionToLoop(j));break;case i.db.LINETYPE.ALT_END:z=Qe.endLoop(),await Vr.drawLoop(d,z,"alt",me,O),Qe.bumpVerticalPos(z.stopy-Qe.getVerticalPos()),Qe.models.addLoop(z);break;case i.db.LINETYPE.PAR_START:case i.db.LINETYPE.PAR_OVER_START:tl(_,O,me.boxMargin,me.boxMargin+me.boxTextMargin,j=>Qe.newLoop(j)),Qe.saveVerticalPos();break;case i.db.LINETYPE.PAR_AND:tl(_,O,me.boxMargin+me.boxTextMargin,me.boxMargin,j=>Qe.addSectionToLoop(j));break;case i.db.LINETYPE.PAR_END:z=Qe.endLoop(),await Vr.drawLoop(d,z,"par",me,O),Qe.bumpVerticalPos(z.stopy-Qe.getVerticalPos()),Qe.models.addLoop(z);break;case i.db.LINETYPE.AUTONUMBER:I=O.message.start||I,B=O.message.step||B,O.message.visible?i.db.enableSequenceNumbers():i.db.disableSequenceNumbers();break;case i.db.LINETYPE.CRITICAL_START:tl(_,O,me.boxMargin,me.boxMargin+me.boxTextMargin,j=>Qe.newLoop(j));break;case i.db.LINETYPE.CRITICAL_OPTION:tl(_,O,me.boxMargin+me.boxTextMargin,me.boxMargin,j=>Qe.addSectionToLoop(j));break;case i.db.LINETYPE.CRITICAL_END:z=Qe.endLoop(),await Vr.drawLoop(d,z,"critical",me,O),Qe.bumpVerticalPos(z.stopy-Qe.getVerticalPos()),Qe.models.addLoop(z);break;case i.db.LINETYPE.BREAK_START:tl(_,O,me.boxMargin,me.boxMargin+me.boxTextMargin,j=>Qe.newLoop(j));break;case i.db.LINETYPE.BREAK_END:z=Qe.endLoop(),await Vr.drawLoop(d,z,"break",me,O),Qe.bumpVerticalPos(z.stopy-Qe.getVerticalPos()),Qe.models.addLoop(z);break;default:try{K=O.msgModel,K.starty=Qe.getVerticalPos(),K.sequenceIndex=I,K.sequenceVisible=i.db.showSequenceNumbers(),K.id=O.id,K.from=O.from,K.to=O.to;let j=await BJe(d,K);VJe(O,K,j,F,f,p,m),G.push({messageModel:K,lineStartY:j,msg:O}),Qe.models.addMessage(K)}catch(j){W.error("error while drawing message",j)}}[i.db.LINETYPE.SOLID_OPEN,i.db.LINETYPE.DOTTED_OPEN,i.db.LINETYPE.SOLID,i.db.LINETYPE.SOLID_TOP,i.db.LINETYPE.SOLID_BOTTOM,i.db.LINETYPE.STICK_TOP,i.db.LINETYPE.STICK_BOTTOM,i.db.LINETYPE.SOLID_TOP_DOTTED,i.db.LINETYPE.SOLID_BOTTOM_DOTTED,i.db.LINETYPE.STICK_TOP_DOTTED,i.db.LINETYPE.STICK_BOTTOM_DOTTED,i.db.LINETYPE.SOLID_ARROW_TOP_REVERSE,i.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE,i.db.LINETYPE.STICK_ARROW_TOP_REVERSE,i.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE,i.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED,i.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED,i.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED,i.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED,i.db.LINETYPE.DOTTED,i.db.LINETYPE.SOLID_CROSS,i.db.LINETYPE.DOTTED_CROSS,i.db.LINETYPE.SOLID_POINT,i.db.LINETYPE.DOTTED_POINT,i.db.LINETYPE.BIDIRECTIONAL_SOLID,i.db.LINETYPE.BIDIRECTIONAL_DOTTED].includes(O.type)&&(I=Math.round((I+B)*100)/100),F++}W.debug("createdActors",p),W.debug("destroyedActors",m),await wP(d,f,x,!1,t,i,w);for(let O of G)await $Je(d,O.messageModel,O.lineStartY,i,O.msg,t);me.mirrorActors&&await wP(d,f,x,!0,t,i,w),P.forEach(O=>Vr.drawBackgroundRect(d,O)),vP(d,f,x,me);for(let O of Qe.models.boxes){O.height=Qe.getVerticalPos()-O.y,Qe.insert(O.x,O.y,O.x+O.width,O.height);let z=me.boxMargin*2;O.startx=O.x-z,O.starty=O.y-z*.25,O.stopx=O.startx+O.width+2*z,O.stopy=O.starty+O.height+z*.75,O.stroke="rgb(0,0,0, 0.5)",Vr.drawBox(d,O,me)}k&&Qe.bumpVerticalPos(me.boxMargin);let A=c0e(d,f,x,h),{bounds:D}=Qe.getBounds();D.startx===void 0&&(D.startx=0),D.starty===void 0&&(D.starty=0),D.stopx===void 0&&(D.stopx=0),D.stopy===void 0&&(D.stopy=0);let R=D.stopy-D.starty;R<A.maxHeight&&(R=A.maxHeight);let N=R+2*me.diagramMarginY;me.mirrorActors&&(N=N-me.boxMargin+me.bottomMarginAdj);let $=D.stopx-D.startx;$<A.maxWidth&&($=A.maxWidth);let E=$+2*me.diagramMarginX;T&&d.append("text").text(T).attr("x",(D.stopx-D.startx)/2-2*me.diagramMarginX).attr("y",-25),fr(d,N,E,me.useMaxWidth);let M=T?40:0,V=f.size&&o==="neo"?30:0;d.attr("viewBox",D.startx-me.diagramMarginX+" -"+(me.diagramMarginY+M)+" "+E+" "+(N+M+V)),W.debug("models:",Qe.models)},"draw");a(WJe,"getMaxMessageWidthPerActor");zJe=a(function(e){let t=0,r=_P(me);for(let i in e.links){let s=St.calculateTextDimensions(i,r).width+2*me.wrapPadding+2*me.boxMargin;t<s&&(t=s)}return t},"getRequiredPopupWidth");a(qJe,"calculateActorMargins");jJe=a(async function(e,t,r){let i=t.get(e.from),n=t.get(e.to),s=i.x,o=n.x,l=e.wrap&&e.message,u=ii(e.message)?await Xu(e.message,J()):St.calculateTextDimensions(l?St.wrapLabel(e.message,me.width,Fm(me)):e.message,Fm(me)),h={width:l?me.width:He.getMax(me.width,u.width+2*me.noteMargin),height:0,startx:i.x,stopx:0,starty:0,stopy:0,message:e.message};return e.placement===r.db.PLACEMENT.RIGHTOF?(h.width=l?He.getMax(me.width,u.width):He.getMax(i.width/2+n.width/2,u.width+2*me.noteMargin),h.startx=s+(i.width+me.actorMargin)/2):e.placement===r.db.PLACEMENT.LEFTOF?(h.width=l?He.getMax(me.width,u.width+2*me.noteMargin):He.getMax(i.width/2+n.width/2,u.width+2*me.noteMargin),h.startx=s-h.width+(i.width-me.actorMargin)/2):e.to===e.from?(u=St.calculateTextDimensions(l?St.wrapLabel(e.message,He.getMax(me.width,i.width),Fm(me)):e.message,Fm(me)),h.width=l?He.getMax(me.width,i.width):He.getMax(i.width,me.width,u.width+2*me.noteMargin),h.startx=s+(i.width-h.width)/2):(h.width=Math.abs(s+i.width/2-(o+n.width/2))+me.actorMargin,h.startx=s<o?s+i.width/2-me.actorMargin/2:o+n.width/2-me.actorMargin/2),l&&(h.message=St.wrapLabel(e.message,h.width-2*me.wrapPadding,Fm(me))),W.debug(`NM:[${h.startx},${h.stopx},${h.starty},${h.stopy}:${h.width},${h.height}=${e.message}]`),h},"buildNoteModel"),UJe=4,HJe=6,SP=a(function(e,t){let{CENTRAL_CONNECTION:r,CENTRAL_CONNECTION_REVERSE:i,CENTRAL_CONNECTION_DUAL:n}=t.db.LINETYPE;return[r,i,n].includes(e.centralConnection)},"hasCentralConnection"),YJe=a(function(e,t,r){let{CENTRAL_CONNECTION_REVERSE:i,CENTRAL_CONNECTION_DUAL:n,BIDIRECTIONAL_SOLID:s,BIDIRECTIONAL_DOTTED:o}=t.db.LINETYPE,l=0;return(e.centralConnection===i||e.centralConnection===n)&&(l+=UJe),(e.centralConnection===i||e.centralConnection===n)&&(e.type===s||e.type===o)&&(l+=r?0:-HJe),l},"calculateCentralConnectionOffset"),h0e=a(function(e,t){let{SOLID_ARROW_TOP_REVERSE:r,SOLID_ARROW_TOP_REVERSE_DOTTED:i,SOLID_ARROW_BOTTOM_REVERSE:n,SOLID_ARROW_BOTTOM_REVERSE_DOTTED:s,STICK_ARROW_TOP_REVERSE:o,STICK_ARROW_TOP_REVERSE_DOTTED:l,STICK_ARROW_BOTTOM_REVERSE:u,STICK_ARROW_BOTTOM_REVERSE_DOTTED:h}=t.db.LINETYPE;return[r,i,n,s,o,l,u,h].includes(e.type)},"isReverseArrowType"),KJe=a(function(e,t){let{BIDIRECTIONAL_SOLID:r,BIDIRECTIONAL_DOTTED:i}=t.db.LINETYPE;return[r,i].includes(e.type)},"isBidirectionalArrowType"),XJe=a(function(e,t,r){let{look:i}=J();if(![r.db.LINETYPE.SOLID_OPEN,r.db.LINETYPE.DOTTED_OPEN,r.db.LINETYPE.SOLID,r.db.LINETYPE.SOLID_TOP,r.db.LINETYPE.SOLID_BOTTOM,r.db.LINETYPE.STICK_TOP,r.db.LINETYPE.STICK_BOTTOM,r.db.LINETYPE.SOLID_TOP_DOTTED,r.db.LINETYPE.SOLID_BOTTOM_DOTTED,r.db.LINETYPE.STICK_TOP_DOTTED,r.db.LINETYPE.STICK_BOTTOM_DOTTED,r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE,r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE,r.db.LINETYPE.STICK_ARROW_TOP_REVERSE,r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE,r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED,r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED,r.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED,r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED,r.db.LINETYPE.DOTTED,r.db.LINETYPE.SOLID_CROSS,r.db.LINETYPE.DOTTED_CROSS,r.db.LINETYPE.SOLID_POINT,r.db.LINETYPE.DOTTED_POINT,r.db.LINETYPE.BIDIRECTIONAL_SOLID,r.db.LINETYPE.BIDIRECTIONAL_DOTTED].includes(e.type))return{};let[n,s]=l0e(e.from,t),[o,l]=l0e(e.to,t),u=n<=o,h=u?s:n,d=u?o:l;i==="neo"&&(e.type!==r.db.LINETYPE.SOLID_OPEN&&(d+=u?-3:3),(e.type===r.db.LINETYPE.BIDIRECTIONAL_SOLID||e.type===r.db.LINETYPE.BIDIRECTIONAL_DOTTED)&&(h+=u?3:-3)),h+=YJe(e,r,u);let f=Math.abs(o-l)>2,p=a(b=>u?-b:b,"adjustValue");e.from===e.to?d=h:(e.activate&&!f&&(d+=p(me.activationWidth/2-1)),[r.db.LINETYPE.SOLID_OPEN,r.db.LINETYPE.DOTTED_OPEN,r.db.LINETYPE.STICK_TOP,r.db.LINETYPE.STICK_BOTTOM,r.db.LINETYPE.STICK_TOP_DOTTED,r.db.LINETYPE.STICK_BOTTOM_DOTTED,r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED,r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED,r.db.LINETYPE.STICK_ARROW_TOP_REVERSE,r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE,r.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED,r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED,r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE,r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE].includes(e.type)||(d+=p(3)),[r.db.LINETYPE.BIDIRECTIONAL_SOLID,r.db.LINETYPE.BIDIRECTIONAL_DOTTED,r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED,r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED,r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE,r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE].includes(e.type)&&(h-=p(3)));let m=[n,s,o,l],g=Math.abs(h-d);e.wrap&&e.message&&(e.message=St.wrapLabel(e.message,He.getMax(g+2*me.wrapPadding,me.width),lf(me)));let x=St.calculateTextDimensions(e.message,lf(me));return{width:He.getMax(e.wrap?0:x.width+2*me.wrapPadding,g+2*me.wrapPadding,me.width),height:0,startx:h,stopx:d,starty:0,stopy:0,message:e.message,type:e.type,wrap:e.wrap,fromBounds:Math.min.apply(null,m),toBounds:Math.max.apply(null,m)}},"buildMessageModel"),QJe=a(async function(e,t,r,i){let n={},s=[],o,l,u;for(let h of e){switch(h.type){case i.db.LINETYPE.LOOP_START:case i.db.LINETYPE.ALT_START:case i.db.LINETYPE.OPT_START:case i.db.LINETYPE.PAR_START:case i.db.LINETYPE.PAR_OVER_START:case i.db.LINETYPE.CRITICAL_START:case i.db.LINETYPE.BREAK_START:s.push({id:h.id,msg:h.message,from:Number.MAX_SAFE_INTEGER,to:Number.MIN_SAFE_INTEGER,width:0});break;case i.db.LINETYPE.ALT_ELSE:case i.db.LINETYPE.PAR_AND:case i.db.LINETYPE.CRITICAL_OPTION:h.message&&(o=s.pop(),n[o.id]=o,n[h.id]=o,s.push(o));break;case i.db.LINETYPE.LOOP_END:case i.db.LINETYPE.ALT_END:case i.db.LINETYPE.OPT_END:case i.db.LINETYPE.PAR_END:case i.db.LINETYPE.CRITICAL_END:case i.db.LINETYPE.BREAK_END:o=s.pop(),n[o.id]=o;break;case i.db.LINETYPE.ACTIVE_START:{let f=t.get(h.from?h.from:h.to.actor),p=w_(h.from?h.from:h.to.actor).length,m=f.x+f.width/2+(p-1)*me.activationWidth/2,g={startx:m,stopx:m+me.activationWidth,actor:h.from,enabled:!0};Qe.activations.push(g)}break;case i.db.LINETYPE.ACTIVE_END:{let f=Qe.activations.map(p=>p.actor).lastIndexOf(h.from);Qe.activations.splice(f,1).splice(0,1)}break}h.placement!==void 0?(l=await jJe(h,t,i),h.noteModel=l,s.forEach(f=>{o=f,o.from=He.getMin(o.from,l.startx),o.to=He.getMax(o.to,l.startx+l.width),o.width=He.getMax(o.width,Math.abs(o.from-o.to))-me.labelBoxWidth})):(u=XJe(h,t,i),h.msgModel=u,u.startx&&u.stopx&&s.length>0&&s.forEach(f=>{if(o=f,u.startx===u.stopx){let p=t.get(h.from),m=t.get(h.to);o.from=He.getMin(p.x-u.width/2,p.x-p.width/2,o.from),o.to=He.getMax(m.x+u.width/2,m.x+p.width/2,o.to),o.width=He.getMax(o.width,Math.abs(o.to-o.from))-me.labelBoxWidth}else o.from=He.getMin(u.startx,o.from),o.to=He.getMax(u.stopx,o.to),o.width=He.getMax(o.width,u.width)-me.labelBoxWidth}))}return Qe.activations=[],W.debug("Loop type widths:",n),n},"calculateLoopBounds"),d0e={bounds:Qe,drawActors:wP,drawActorsPopup:c0e,setConf:u0e,draw:GJe}});var p0e={};tr(p0e,{diagram:()=>ZJe});var ZJe,m0e=v(()=>{"use strict";e0e();kP();r0e();bt();f0e();ZJe={parser:Jye,get db(){return new v_},renderer:d0e,styles:t0e,init:a(e=>{e.sequence||(e.sequence={}),e.wrap&&(e.sequence.wrap=e.wrap,Rg({sequence:{wrap:e.wrap}}))},"init")}});var EP,E_,AP=v(()=>{"use strict";EP=(function(){var e=a(function(Ne,ze,oe,_e){for(oe=oe||{},_e=Ne.length;_e--;oe[Ne[_e]]=ze);return oe},"o"),t=[1,18],r=[1,19],i=[1,20],n=[1,41],s=[1,26],o=[1,42],l=[1,24],u=[1,25],h=[1,32],d=[1,33],f=[1,34],p=[1,45],m=[1,35],g=[1,36],x=[1,37],b=[1,38],T=[1,27],k=[1,28],C=[1,29],S=[1,30],w=[1,31],_=[1,44],L=[1,46],I=[1,43],B=[1,47],G=[1,9],P=[1,8,9],F=[1,58],A=[1,59],D=[1,60],R=[1,61],N=[1,62],$=[1,63],E=[1,64],M=[1,8,9,41],V=[1,77],O=[1,8,9,12,13,22,39,41,44,46,68,69,70,71,72,73,74,79,81],z=[1,8,9,12,13,18,20,22,39,41,44,46,47,60,68,69,70,71,72,73,74,79,81,86,100,102,103],U=[13,60,86,100,102,103],K=[13,60,73,74,86,100,102,103],j=[13,60,68,69,70,71,72,86,100,102,103],ae=[1,103],X=[1,121],de=[1,117],le=[1,113],ge=[1,119],he=[1,114],te=[1,115],Le=[1,116],xe=[1,118],ye=[1,120],be=[22,50,60,61,82,86,87,88,89,90],Ce=[1,128],Oe=[12,39],Ae=[1,8,9,39,41,44,46],st=[1,8,9,22],ce=[1,153],Mt=[1,8,9,61],fe=[1,8,9,22,50,60,61,82,86,87,88,89,90],Ue={trace:a(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,statements:5,graphConfig:6,CLASS_DIAGRAM:7,NEWLINE:8,EOF:9,statement:10,classLabel:11,SQS:12,STR:13,SQE:14,namespaceName:15,alphaNumToken:16,classLiteralName:17,DOT:18,className:19,GENERICTYPE:20,relationStatement:21,LABEL:22,namespaceStatement:23,classStatement:24,memberStatement:25,annotationStatement:26,clickStatement:27,styleStatement:28,cssClassStatement:29,noteStatement:30,classDefStatement:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,namespaceIdentifier:38,STRUCT_START:39,classStatements:40,STRUCT_STOP:41,NAMESPACE:42,classIdentifier:43,STYLE_SEPARATOR:44,members:45,ANNOTATION_START:46,ANNOTATION_END:47,CLASS:48,emptyBody:49,SPACE:50,MEMBER:51,SEPARATOR:52,relation:53,NOTE_FOR:54,noteText:55,NOTE:56,CLASSDEF:57,classList:58,stylesOpt:59,ALPHA:60,COMMA:61,direction_tb:62,direction_bt:63,direction_rl:64,direction_lr:65,relationType:66,lineType:67,AGGREGATION:68,EXTENSION:69,COMPOSITION:70,DEPENDENCY:71,LOLLIPOP:72,LINE:73,DOTTED_LINE:74,CALLBACK:75,LINK:76,LINK_TARGET:77,CLICK:78,CALLBACK_NAME:79,CALLBACK_ARGS:80,HREF:81,STYLE:82,CSSCLASS:83,style:84,styleComponent:85,NUM:86,COLON:87,UNIT:88,BRKT:89,PCT:90,commentToken:91,textToken:92,graphCodeTokens:93,textNoTagsToken:94,TAGSTART:95,TAGEND:96,"==":97,"--":98,DEFAULT:99,MINUS:100,keywords:101,UNICODE_TEXT:102,BQUOTE_STR:103,$accept:0,$end:1},terminals_:{2:"error",7:"CLASS_DIAGRAM",8:"NEWLINE",9:"EOF",12:"SQS",13:"STR",14:"SQE",18:"DOT",20:"GENERICTYPE",22:"LABEL",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",39:"STRUCT_START",41:"STRUCT_STOP",42:"NAMESPACE",44:"STYLE_SEPARATOR",46:"ANNOTATION_START",47:"ANNOTATION_END",48:"CLASS",50:"SPACE",51:"MEMBER",52:"SEPARATOR",54:"NOTE_FOR",56:"NOTE",57:"CLASSDEF",60:"ALPHA",61:"COMMA",62:"direction_tb",63:"direction_bt",64:"direction_rl",65:"direction_lr",68:"AGGREGATION",69:"EXTENSION",70:"COMPOSITION",71:"DEPENDENCY",72:"LOLLIPOP",73:"LINE",74:"DOTTED_LINE",75:"CALLBACK",76:"LINK",77:"LINK_TARGET",78:"CLICK",79:"CALLBACK_NAME",80:"CALLBACK_ARGS",81:"HREF",82:"STYLE",83:"CSSCLASS",86:"NUM",87:"COLON",88:"UNIT",89:"BRKT",90:"PCT",93:"graphCodeTokens",95:"TAGSTART",96:"TAGEND",97:"==",98:"--",99:"DEFAULT",100:"MINUS",101:"keywords",102:"UNICODE_TEXT",103:"BQUOTE_STR"},productions_:[0,[3,1],[3,1],[4,1],[6,4],[5,1],[5,2],[5,3],[11,3],[15,1],[15,1],[15,3],[15,2],[19,1],[19,3],[19,1],[19,2],[19,2],[19,2],[10,1],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[23,4],[23,5],[38,2],[38,3],[40,1],[40,2],[40,3],[40,1],[40,2],[40,3],[40,1],[40,2],[40,3],[24,1],[24,3],[24,4],[24,3],[24,6],[24,4],[24,7],[24,6],[43,2],[43,3],[49,0],[49,2],[49,2],[26,4],[45,1],[45,2],[25,1],[25,2],[25,1],[25,1],[21,3],[21,4],[21,4],[21,5],[30,3],[30,2],[31,3],[58,1],[58,3],[32,1],[32,1],[32,1],[32,1],[53,3],[53,2],[53,2],[53,1],[66,1],[66,1],[66,1],[66,1],[66,1],[67,1],[67,1],[27,3],[27,4],[27,3],[27,4],[27,4],[27,5],[27,3],[27,4],[27,4],[27,5],[27,4],[27,5],[27,5],[27,6],[28,3],[29,3],[59,1],[59,3],[84,1],[84,2],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[91,1],[91,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[94,1],[94,1],[94,1],[94,1],[16,1],[16,1],[16,1],[16,1],[17,1],[55,1]],performAction:a(function(ze,oe,_e,re,Ke,Q,Me){var Y=Q.length-1;switch(Ke){case 8:this.$=Q[Y-1];break;case 9:case 10:case 13:case 15:this.$=Q[Y];break;case 11:case 14:this.$=Q[Y-2]+"."+Q[Y];break;case 12:case 16:this.$=Q[Y-1]+Q[Y];break;case 17:case 18:this.$=Q[Y-1]+"~"+Q[Y]+"~";break;case 19:re.addRelation(Q[Y]);break;case 20:Q[Y-1].title=re.cleanupLabel(Q[Y]),re.addRelation(Q[Y-1]);break;case 31:this.$=Q[Y].trim(),re.setAccTitle(this.$);break;case 32:case 33:this.$=Q[Y].trim(),re.setAccDescription(this.$);break;case 34:re.addClassesToNamespace(Q[Y-3],Q[Y-1][0],Q[Y-1][1]),re.popNamespace();break;case 35:re.addClassesToNamespace(Q[Y-4],Q[Y-1][0],Q[Y-1][1]),re.popNamespace();break;case 36:this.$=re.addNamespace(Q[Y]);break;case 37:this.$=re.addNamespace(Q[Y-1],Q[Y]);break;case 38:this.$=[[Q[Y]],[]];break;case 39:this.$=[[Q[Y-1]],[]];break;case 40:Q[Y][0].unshift(Q[Y-2]),this.$=Q[Y];break;case 41:this.$=[[],[Q[Y]]];break;case 42:this.$=[[],[Q[Y-1]]];break;case 43:Q[Y][1].unshift(Q[Y-2]),this.$=Q[Y];break;case 44:case 45:this.$=[[],[]];break;case 46:this.$=Q[Y];break;case 48:re.setCssClass(Q[Y-2],Q[Y]);break;case 49:re.addMembers(Q[Y-3],Q[Y-1]);break;case 51:re.setCssClass(Q[Y-5],Q[Y-3]),re.addMembers(Q[Y-5],Q[Y-1]);break;case 52:re.addAnnotation(Q[Y-3],Q[Y-1]);break;case 53:re.addAnnotation(Q[Y-6],Q[Y-4]),re.addMembers(Q[Y-6],Q[Y-1]);break;case 54:re.addAnnotation(Q[Y-5],Q[Y-3]);break;case 55:this.$=Q[Y],re.addClass(Q[Y]);break;case 56:this.$=Q[Y-1],re.addClass(Q[Y-1]),re.setClassLabel(Q[Y-1],Q[Y]);break;case 60:re.addAnnotation(Q[Y],Q[Y-2]);break;case 61:case 74:this.$=[Q[Y]];break;case 62:Q[Y].push(Q[Y-1]),this.$=Q[Y];break;case 63:break;case 64:re.addMember(Q[Y-1],re.cleanupLabel(Q[Y]));break;case 65:break;case 66:break;case 67:this.$={id1:Q[Y-2],id2:Q[Y],relation:Q[Y-1],relationTitle1:"none",relationTitle2:"none"};break;case 68:this.$={id1:Q[Y-3],id2:Q[Y],relation:Q[Y-1],relationTitle1:Q[Y-2],relationTitle2:"none"};break;case 69:this.$={id1:Q[Y-3],id2:Q[Y],relation:Q[Y-2],relationTitle1:"none",relationTitle2:Q[Y-1]};break;case 70:this.$={id1:Q[Y-4],id2:Q[Y],relation:Q[Y-2],relationTitle1:Q[Y-3],relationTitle2:Q[Y-1]};break;case 71:this.$=re.addNote(Q[Y],Q[Y-1]);break;case 72:this.$=re.addNote(Q[Y]);break;case 73:this.$=Q[Y-2],re.defineClass(Q[Y-1],Q[Y]);break;case 75:this.$=Q[Y-2].concat([Q[Y]]);break;case 76:re.setDirection("TB");break;case 77:re.setDirection("BT");break;case 78:re.setDirection("RL");break;case 79:re.setDirection("LR");break;case 80:this.$={type1:Q[Y-2],type2:Q[Y],lineType:Q[Y-1]};break;case 81:this.$={type1:"none",type2:Q[Y],lineType:Q[Y-1]};break;case 82:this.$={type1:Q[Y-1],type2:"none",lineType:Q[Y]};break;case 83:this.$={type1:"none",type2:"none",lineType:Q[Y]};break;case 84:this.$=re.relationType.AGGREGATION;break;case 85:this.$=re.relationType.EXTENSION;break;case 86:this.$=re.relationType.COMPOSITION;break;case 87:this.$=re.relationType.DEPENDENCY;break;case 88:this.$=re.relationType.LOLLIPOP;break;case 89:this.$=re.lineType.LINE;break;case 90:this.$=re.lineType.DOTTED_LINE;break;case 91:case 97:this.$=Q[Y-2],re.setClickEvent(Q[Y-1],Q[Y]);break;case 92:case 98:this.$=Q[Y-3],re.setClickEvent(Q[Y-2],Q[Y-1]),re.setTooltip(Q[Y-2],Q[Y]);break;case 93:this.$=Q[Y-2],re.setLink(Q[Y-1],Q[Y]);break;case 94:this.$=Q[Y-3],re.setLink(Q[Y-2],Q[Y-1],Q[Y]);break;case 95:this.$=Q[Y-3],re.setLink(Q[Y-2],Q[Y-1]),re.setTooltip(Q[Y-2],Q[Y]);break;case 96:this.$=Q[Y-4],re.setLink(Q[Y-3],Q[Y-2],Q[Y]),re.setTooltip(Q[Y-3],Q[Y-1]);break;case 99:this.$=Q[Y-3],re.setClickEvent(Q[Y-2],Q[Y-1],Q[Y]);break;case 100:this.$=Q[Y-4],re.setClickEvent(Q[Y-3],Q[Y-2],Q[Y-1]),re.setTooltip(Q[Y-3],Q[Y]);break;case 101:this.$=Q[Y-3],re.setLink(Q[Y-2],Q[Y]);break;case 102:this.$=Q[Y-4],re.setLink(Q[Y-3],Q[Y-1],Q[Y]);break;case 103:this.$=Q[Y-4],re.setLink(Q[Y-3],Q[Y-1]),re.setTooltip(Q[Y-3],Q[Y]);break;case 104:this.$=Q[Y-5],re.setLink(Q[Y-4],Q[Y-2],Q[Y]),re.setTooltip(Q[Y-4],Q[Y-1]);break;case 105:this.$=Q[Y-2],re.setCssStyle(Q[Y-1],Q[Y]);break;case 106:re.setCssClass(Q[Y-1],Q[Y]);break;case 107:this.$=[Q[Y]];break;case 108:Q[Y-2].push(Q[Y]),this.$=Q[Y-2];break;case 110:this.$=Q[Y-1]+Q[Y];break}},"anonymous"),table:[{3:1,4:2,5:3,6:4,7:[1,6],10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:t,35:r,37:i,38:22,42:n,43:23,46:s,48:o,51:l,52:u,54:h,56:d,57:f,60:p,62:m,63:g,64:x,65:b,75:T,76:k,78:C,82:S,83:w,86:_,100:L,102:I,103:B},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},e(G,[2,5],{8:[1,48]}),{8:[1,49]},e(P,[2,19],{22:[1,50]}),e(P,[2,21]),e(P,[2,22]),e(P,[2,23]),e(P,[2,24]),e(P,[2,25]),e(P,[2,26]),e(P,[2,27]),e(P,[2,28]),e(P,[2,29]),e(P,[2,30]),{34:[1,51]},{36:[1,52]},e(P,[2,33]),e(P,[2,63],{53:53,66:56,67:57,13:[1,54],22:[1,55],68:F,69:A,70:D,71:R,72:N,73:$,74:E}),{39:[1,65]},e(M,[2,47],{39:[1,67],44:[1,66],46:[1,68]}),e(P,[2,65]),e(P,[2,66]),{16:69,60:p,86:_,100:L,102:I},{16:39,17:40,19:70,60:p,86:_,100:L,102:I,103:B},{16:39,17:40,19:71,60:p,86:_,100:L,102:I,103:B},{16:39,17:40,19:72,60:p,86:_,100:L,102:I,103:B},{60:[1,73]},{13:[1,74]},{16:39,17:40,19:75,60:p,86:_,100:L,102:I,103:B},{13:V,55:76},{58:78,60:[1,79]},e(P,[2,76]),e(P,[2,77]),e(P,[2,78]),e(P,[2,79]),e(O,[2,13],{16:39,17:40,19:81,18:[1,80],20:[1,82],60:p,86:_,100:L,102:I,103:B}),e(O,[2,15],{20:[1,83]}),{15:84,16:85,17:86,60:p,86:_,100:L,102:I,103:B},{16:39,17:40,19:87,60:p,86:_,100:L,102:I,103:B},e(z,[2,133]),e(z,[2,134]),e(z,[2,135]),e(z,[2,136]),e([1,8,9,12,13,20,22,39,41,44,46,68,69,70,71,72,73,74,79,81],[2,137]),e(G,[2,6],{10:5,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,19:21,38:22,43:23,16:39,17:40,5:88,33:t,35:r,37:i,42:n,46:s,48:o,51:l,52:u,54:h,56:d,57:f,60:p,62:m,63:g,64:x,65:b,75:T,76:k,78:C,82:S,83:w,86:_,100:L,102:I,103:B}),{5:89,10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:t,35:r,37:i,38:22,42:n,43:23,46:s,48:o,51:l,52:u,54:h,56:d,57:f,60:p,62:m,63:g,64:x,65:b,75:T,76:k,78:C,82:S,83:w,86:_,100:L,102:I,103:B},e(P,[2,20]),e(P,[2,31]),e(P,[2,32]),{13:[1,91],16:39,17:40,19:90,60:p,86:_,100:L,102:I,103:B},{53:92,66:56,67:57,68:F,69:A,70:D,71:R,72:N,73:$,74:E},e(P,[2,64]),{67:93,73:$,74:E},e(U,[2,83],{66:94,68:F,69:A,70:D,71:R,72:N}),e(K,[2,84]),e(K,[2,85]),e(K,[2,86]),e(K,[2,87]),e(K,[2,88]),e(j,[2,89]),e(j,[2,90]),{8:[1,96],23:99,24:97,30:98,38:22,40:95,42:n,43:23,48:o,54:h,56:d},{16:100,60:p,86:_,100:L,102:I},{41:[1,102],45:101,51:ae},{16:104,60:p,86:_,100:L,102:I},{47:[1,105]},{13:[1,106]},{13:[1,107]},{79:[1,108],81:[1,109]},{22:X,50:de,59:110,60:le,82:ge,84:111,85:112,86:he,87:te,88:Le,89:xe,90:ye},{60:[1,122]},{13:V,55:123},e(M,[2,72]),e(M,[2,138]),{22:X,50:de,59:124,60:le,61:[1,125],82:ge,84:111,85:112,86:he,87:te,88:Le,89:xe,90:ye},e(be,[2,74]),{16:39,17:40,19:126,60:p,86:_,100:L,102:I,103:B},e(O,[2,16]),e(O,[2,17]),e(O,[2,18]),{11:127,12:Ce,39:[2,36]},e(Oe,[2,9],{16:85,17:86,15:130,18:[1,129],60:p,86:_,100:L,102:I,103:B}),e(Oe,[2,10]),e(Ae,[2,55],{11:131,12:Ce}),e(G,[2,7]),{9:[1,132]},e(st,[2,67]),{16:39,17:40,19:133,60:p,86:_,100:L,102:I,103:B},{13:[1,135],16:39,17:40,19:134,60:p,86:_,100:L,102:I,103:B},e(U,[2,82],{66:136,68:F,69:A,70:D,71:R,72:N}),e(U,[2,81]),{41:[1,137]},{23:99,24:97,30:98,38:22,40:138,42:n,43:23,48:o,54:h,56:d},{8:[1,139],41:[2,38]},{8:[1,140],41:[2,41]},{8:[1,141],41:[2,44]},e(M,[2,48],{39:[1,142]}),{41:[1,143]},e(M,[2,50]),{41:[2,61],45:144,51:ae},{47:[1,145]},{16:39,17:40,19:146,60:p,86:_,100:L,102:I,103:B},e(P,[2,91],{13:[1,147]}),e(P,[2,93],{13:[1,149],77:[1,148]}),e(P,[2,97],{13:[1,150],80:[1,151]}),{13:[1,152]},e(P,[2,105],{61:ce}),e(Mt,[2,107],{85:154,22:X,50:de,60:le,82:ge,86:he,87:te,88:Le,89:xe,90:ye}),e(fe,[2,109]),e(fe,[2,111]),e(fe,[2,112]),e(fe,[2,113]),e(fe,[2,114]),e(fe,[2,115]),e(fe,[2,116]),e(fe,[2,117]),e(fe,[2,118]),e(fe,[2,119]),e(P,[2,106]),e(M,[2,71]),e(P,[2,73],{61:ce}),{60:[1,155]},e(O,[2,14]),{39:[2,37]},{13:[1,156]},{15:157,16:85,17:86,60:p,86:_,100:L,102:I,103:B},e(Oe,[2,12]),e(Ae,[2,56]),{1:[2,4]},e(st,[2,69]),e(st,[2,68]),{16:39,17:40,19:158,60:p,86:_,100:L,102:I,103:B},e(U,[2,80]),e(M,[2,34]),{41:[1,159]},{23:99,24:97,30:98,38:22,40:160,41:[2,39],42:n,43:23,48:o,54:h,56:d},{23:99,24:97,30:98,38:22,40:161,41:[2,42],42:n,43:23,48:o,54:h,56:d},{23:99,24:97,30:98,38:22,40:162,41:[2,45],42:n,43:23,48:o,54:h,56:d},{45:163,51:ae},e(M,[2,49]),{41:[2,62]},e(M,[2,52],{39:[1,164]}),e(P,[2,60]),e(P,[2,92]),e(P,[2,94]),e(P,[2,95],{77:[1,165]}),e(P,[2,98]),e(P,[2,99],{13:[1,166]}),e(P,[2,101],{13:[1,168],77:[1,167]}),{22:X,50:de,60:le,82:ge,84:169,85:112,86:he,87:te,88:Le,89:xe,90:ye},e(fe,[2,110]),e(be,[2,75]),{14:[1,170]},e(Oe,[2,11]),e(st,[2,70]),e(M,[2,35]),{41:[2,40]},{41:[2,43]},{41:[2,46]},{41:[1,171]},{41:[1,173],45:172,51:ae},e(P,[2,96]),e(P,[2,100]),e(P,[2,102]),e(P,[2,103],{77:[1,174]}),e(Mt,[2,108],{85:154,22:X,50:de,60:le,82:ge,86:he,87:te,88:Le,89:xe,90:ye}),e(Ae,[2,8]),e(M,[2,51]),{41:[1,175]},e(M,[2,54]),e(P,[2,104]),e(M,[2,53])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],127:[2,37],132:[2,4],144:[2,62],160:[2,40],161:[2,43],162:[2,46]},parseError:a(function(ze,oe){if(oe.recoverable)this.trace(ze);else{var _e=new Error(ze);throw _e.hash=oe,_e}},"parseError"),parse:a(function(ze){var oe=this,_e=[0],re=[],Ke=[null],Q=[],Me=this.table,Y="",dt=0,Ge=0,ft=0,Be=2,tt=1,Ie=Q.slice.call(arguments,1),it=Object.create(this.lexer),Ee={yy:{}};for(var pt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,pt)&&(Ee.yy[pt]=this.yy[pt]);it.setInput(ze,Ee.yy),Ee.yy.lexer=it,Ee.yy.parser=this,typeof it.yylloc>"u"&&(it.yylloc={});var ie=it.yylloc;Q.push(ie);var $t=it.options&&it.options.ranges;typeof Ee.yy.parseError=="function"?this.parseError=Ee.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ue(Ye){_e.length=_e.length-2*Ye,Ke.length=Ke.length-Ye,Q.length=Q.length-Ye}a(ue,"popStack");function vt(){var Ye;return Ye=re.pop()||it.lex()||tt,typeof Ye!="number"&&(Ye instanceof Array&&(re=Ye,Ye=re.pop()),Ye=oe.symbols_[Ye]||Ye),Ye}a(vt,"lex");for(var Lt,Nr,gt,Pt,kt,H,at={},ut,We,Z,Re;;){if(gt=_e[_e.length-1],this.defaultActions[gt]?Pt=this.defaultActions[gt]:((Lt===null||typeof Lt>"u")&&(Lt=vt()),Pt=Me[gt]&&Me[gt][Lt]),typeof Pt>"u"||!Pt.length||!Pt[0]){var Fe="";Re=[];for(ut in Me[gt])this.terminals_[ut]&&ut>Be&&Re.push("'"+this.terminals_[ut]+"'");it.showPosition?Fe="Parse error on line "+(dt+1)+`:
`+it.showPosition()+`
Expecting `+Re.join(", ")+", got '"+(this.terminals_[Lt]||Lt)+"'":Fe="Parse error on line "+(dt+1)+": Unexpected "+(Lt==tt?"end of input":"'"+(this.terminals_[Lt]||Lt)+"'"),this.parseError(Fe,{text:it.match,token:this.terminals_[Lt]||Lt,line:it.yylineno,loc:ie,expected:Re})}if(Pt[0]instanceof Array&&Pt.length>1)throw new Error("Parse Error: multiple actions possible at state: "+gt+", token: "+Lt);switch(Pt[0]){case 1:_e.push(Lt),Ke.push(it.yytext),Q.push(it.yylloc),_e.push(Pt[1]),Lt=null,Nr?(Lt=Nr,Nr=null):(Ge=it.yyleng,Y=it.yytext,dt=it.yylineno,ie=it.yylloc,ft>0&&ft--);break;case 2:if(We=this.productions_[Pt[1]][1],at.$=Ke[Ke.length-We],at._$={first_line:Q[Q.length-(We||1)].first_line,last_line:Q[Q.length-1].last_line,first_column:Q[Q.length-(We||1)].first_column,last_column:Q[Q.length-1].last_column},$t&&(at._$.range=[Q[Q.length-(We||1)].range[0],Q[Q.length-1].range[1]]),H=this.performAction.apply(at,[Y,Ge,dt,Ee.yy,Pt[1],Ke,Q].concat(Ie)),typeof H<"u")return H;We&&(_e=_e.slice(0,-1*We*2),Ke=Ke.slice(0,-1*We),Q=Q.slice(0,-1*We)),_e.push(this.productions_[Pt[1]][0]),Ke.push(at.$),Q.push(at._$),Z=Me[_e[_e.length-2]][_e[_e.length-1]],_e.push(Z);break;case 3:return!0}}return!0},"parse")},Je=(function(){var Ne={EOF:1,parseError:a(function(oe,_e){if(this.yy.parser)this.yy.parser.parseError(oe,_e);else throw new Error(oe)},"parseError"),setInput:a(function(ze,oe){return this.yy=oe||this.yy||{},this._input=ze,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:a(function(){var ze=this._input[0];this.yytext+=ze,this.yyleng++,this.offset++,this.match+=ze,this.matched+=ze;var oe=ze.match(/(?:\r\n?|\n).*/g);return oe?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),ze},"input"),unput:a(function(ze){var oe=ze.length,_e=ze.split(/(?:\r\n?|\n)/g);this._input=ze+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-oe),this.offset-=oe;var re=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),_e.length-1&&(this.yylineno-=_e.length-1);var Ke=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:_e?(_e.length===re.length?this.yylloc.first_column:0)+re[re.length-_e.length].length-_e[0].length:this.yylloc.first_column-oe},this.options.ranges&&(this.yylloc.range=[Ke[0],Ke[0]+this.yyleng-oe]),this.yyleng=this.yytext.length,this},"unput"),more:a(function(){return this._more=!0,this},"more"),reject:a(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:a(function(ze){this.unput(this.match.slice(ze))},"less"),pastInput:a(function(){var ze=this.matched.substr(0,this.matched.length-this.match.length);return(ze.length>20?"...":"")+ze.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:a(function(){var ze=this.match;return ze.length<20&&(ze+=this._input.substr(0,20-ze.length)),(ze.substr(0,20)+(ze.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:a(function(){var ze=this.pastInput(),oe=new Array(ze.length+1).join("-");return ze+this.upcomingInput()+`
`+oe+"^"},"showPosition"),test_match:a(function(ze,oe){var _e,re,Ke;if(this.options.backtrack_lexer&&(Ke={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&&(Ke.yylloc.range=this.yylloc.range.slice(0))),re=ze[0].match(/(?:\r\n?|\n).*/g),re&&(this.yylineno+=re.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:re?re[re.length-1].length-re[re.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+ze[0].length},this.yytext+=ze[0],this.match+=ze[0],this.matches=ze,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(ze[0].length),this.matched+=ze[0],_e=this.performAction.call(this,this.yy,this,oe,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),_e)return _e;if(this._backtrack){for(var Q in Ke)this[Q]=Ke[Q];return!1}return!1},"test_match"),next:a(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var ze,oe,_e,re;this._more||(this.yytext="",this.match="");for(var Ke=this._currentRules(),Q=0;Q<Ke.length;Q++)if(_e=this._input.match(this.rules[Ke[Q]]),_e&&(!oe||_e[0].length>oe[0].length)){if(oe=_e,re=Q,this.options.backtrack_lexer){if(ze=this.test_match(_e,Ke[Q]),ze!==!1)return ze;if(this._backtrack){oe=!1;continue}else return!1}else if(!this.options.flex)break}return oe?(ze=this.test_match(oe,Ke[re]),ze!==!1?ze:!1):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:a(function(){var oe=this.next();return oe||this.lex()},"lex"),begin:a(function(oe){this.conditionStack.push(oe)},"begin"),popState:a(function(){var oe=this.conditionStack.length-1;return oe>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:a(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:a(function(oe){return oe=this.conditionStack.length-1-Math.abs(oe||0),oe>=0?this.conditionStack[oe]:"INITIAL"},"topState"),pushState:a(function(oe){this.begin(oe)},"pushState"),stateStackSize:a(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:a(function(oe,_e,re,Ke){var Q=Ke;switch(re){case 0:return 62;case 1:return 63;case 2:return 64;case 3:return 65;case 4:break;case 5:break;case 6:return this.begin("acc_title"),33;break;case 7:return this.popState(),"acc_title_value";break;case 8:return this.begin("acc_descr"),35;break;case 9:return this.popState(),"acc_descr_value";break;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:return 7;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;break;case 30:return this.popState(),8;break;case 31:break;case 32:return this.begin("namespace-body"),39;break;case 33:this.popState(),this.less(0);break;case 34:return this.popState(),41;break;case 35:return"EOF_IN_STRUCT";case 36:return 8;case 37:break;case 38:return"EDGE_STATE";case 39:return this.begin("class"),48;break;case 40:return this.popState(),8;break;case 41:break;case 42:return this.popState(),this.popState(),41;break;case 43:return this.begin("class-body"),39;break;case 44:return this.popState(),41;break;case 45:return"EOF_IN_STRUCT";case 46:return"EDGE_STATE";case 47:return"OPEN_IN_STRUCT";case 48:break;case 49:return"MEMBER";case 50:return 83;case 51:return 75;case 52:return 76;case 53:return 78;case 54:return 54;case 55:return 56;case 56:return 46;case 57:return 47;case 58:return 81;case 59:this.popState();break;case 60:return"GENERICTYPE";case 61:this.begin("generic");break;case 62:this.popState();break;case 63:return"BQUOTE_STR";case 64:this.begin("bqstring");break;case 65:return 77;case 66:return 77;case 67:return 77;case 68:return 77;case 69:return 69;case 70:return 69;case 71:return 71;case 72:return 71;case 73:return 70;case 74:return 68;case 75:return 72;case 76:return 73;case 77:return 74;case 78:return 22;case 79:return 44;case 80:return 100;case 81:return 18;case 82:return"PLUS";case 83:return 87;case 84:return 61;case 85:return 89;case 86:return 89;case 87:return 90;case 88:return"EQUALS";case 89:return"EQUALS";case 90:return 60;case 91:return 12;case 92:return 14;case 93:return"PUNCTUATION";case 94:return 86;case 95:return 102;case 96:return 50;case 97:return 50;case 98: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\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\s)/,/^(?:\s)/,/^(?:$)/],conditions:{"namespace-body":{rules:[26,29,34,35,36,37,38,39,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},namespace:{rules:[26,29,30,31,32,33,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},"class-body":{rules:[26,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},class:{rules:[26,40,41,42,43,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},acc_descr_multiline:{rules:[11,12,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},acc_descr:{rules:[9,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},acc_title:{rules:[7,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},callback_args:{rules:[22,23,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},callback_name:{rules:[19,20,21,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},href:{rules:[26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},struct:{rules:[26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},generic:{rules:[26,50,51,52,53,54,55,56,57,58,59,60,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},bqstring:{rules:[26,50,51,52,53,54,55,56,57,58,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},string:{rules:[24,25,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,8,10,13,14,15,16,17,18,26,27,28,29,39,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98],inclusive:!0}}};return Ne})();Ue.lexer=Je;function ot(){this.yy={}}return a(ot,"Parser"),ot.prototype=Ue,Ue.Parser=ot,new ot})();EP.parser=EP;E_=EP});var x0e,yx,b0e=v(()=>{"use strict";bt();dr();x0e=["#","+","~","-",""],yx=class{static{a(this,"ClassMember")}constructor(t,r){this.memberType=r,this.visibility="",this.classifier="",this.text="";let i=rr(t,J());this.parseMember(i)}getDisplayDetails(){let t=this.visibility+lo(this.id);this.memberType==="method"&&(t+=`(${lo(this.parameters.trim())})`,this.returnType&&(t+=" : "+lo(this.returnType))),t=t.trim();let r=this.parseClassifier();return{displayText:t,cssStyle:r}}parseMember(t){let r="";if(this.memberType==="method"){let s=/([#+~-])?(.+)\((.*)\)([\s$*])?(.*)([$*])?/.exec(t);if(s){let o=s[1]?s[1].trim():"";if(x0e.includes(o)&&(this.visibility=o),this.id=s[2],this.parameters=s[3]?s[3].trim():"",r=s[4]?s[4].trim():"",this.returnType=s[5]?s[5].trim():"",r===""){let l=this.returnType.substring(this.returnType.length-1);/[$*]/.exec(l)&&(r=l,this.returnType=this.returnType.substring(0,this.returnType.length-1))}}}else{let n=t.length,s=t.substring(0,1),o=t.substring(n-1);x0e.includes(s)&&(this.visibility=s),/[$*]/.exec(o)&&(r=o),this.id=t.substring(this.visibility===""?0:1,r===""?n:n-1)}this.classifier=r,this.id=this.id.startsWith(" ")?" "+this.id.trim():this.id.trim();let i=`${this.visibility?"\\"+this.visibility:""}${lo(this.id)}${this.memberType==="method"?`(${lo(this.parameters)})${this.returnType?" : "+lo(this.returnType):""}`:""}`;this.text=i.replaceAll("<","<").replaceAll(">",">"),this.text.startsWith("\\<")&&(this.text=this.text.replace("\\<","~"))}parseClassifier(){switch(this.classifier){case"*":return"font-style:italic;";case"$":return"text-decoration:underline;";default:return""}}}});var A_,T0e,cf,Vm,RP=v(()=>{"use strict";sr();nt();bt();dr();Et();zr();Th();b0e();wg();A_="classId-",T0e=0,cf=a(e=>He.sanitizeText(e,J()),"sanitizeText"),Vm=class e{constructor(){this.relations=[];this.classes=new Map;this.styleClasses=new Map;this.notes=new Map;this.interfaces=[];this.namespaces=new Map;this.namespaceCounter=0;this.namespaceStack=[];this.diagramId="";this.functions=[];this.lineType={LINE:0,DOTTED_LINE:1};this.relationType={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3,LOLLIPOP:4};this.setupToolTips=a(t=>{let r=S2();Se(t).select("svg").selectAll("g").filter(function(){return Se(this).attr("title")!==null}).on("mouseover",s=>{let o=Se(s.currentTarget),l=o.attr("title");if(!l)return;let u=s.currentTarget.getBoundingClientRect();r.transition().duration(200).style("opacity",".9"),r.html(Ya.sanitize(l)).style("left",`${window.scrollX+u.left+u.width/2}px`).style("top",`${window.scrollY+u.bottom+4}px`),o.classed("hover",!0)}).on("mouseout",s=>{r.transition().duration(500).style("opacity",0),Se(s.currentTarget).classed("hover",!1)})},"setupToolTips");this.direction="TB";this.setAccTitle=Yt;this.getAccTitle=Qt;this.setAccDescription=Zt;this.getAccDescription=Jt;this.setDiagramTitle=ir;this.getDiagramTitle=er;this.getConfig=a(()=>J().class,"getConfig");this.functions.push(this.setupToolTips.bind(this)),this.clear(),this.addRelation=this.addRelation.bind(this),this.addClassesToNamespace=this.addClassesToNamespace.bind(this),this.addNamespace=this.addNamespace.bind(this),this.popNamespace=this.popNamespace.bind(this),this.setCssClass=this.setCssClass.bind(this),this.addMembers=this.addMembers.bind(this),this.addClass=this.addClass.bind(this),this.setClassLabel=this.setClassLabel.bind(this),this.addAnnotation=this.addAnnotation.bind(this),this.addMember=this.addMember.bind(this),this.cleanupLabel=this.cleanupLabel.bind(this),this.addNote=this.addNote.bind(this),this.defineClass=this.defineClass.bind(this),this.setDirection=this.setDirection.bind(this),this.setLink=this.setLink.bind(this),this.bindFunctions=this.bindFunctions.bind(this),this.clear=this.clear.bind(this),this.setTooltip=this.setTooltip.bind(this),this.setClickEvent=this.setClickEvent.bind(this),this.setCssStyle=this.setCssStyle.bind(this)}static{a(this,"ClassDB")}splitClassNameAndType(t){let r=He.sanitizeText(t,J()),i="",n=r;if(r.indexOf("~")>0){let s=r.split("~");n=cf(s[0]),i=cf(s[1])}return{className:n,type:i}}setClassLabel(t,r){let i=He.sanitizeText(t,J());r&&(r=cf(r));let{className:n}=this.splitClassNameAndType(i);this.classes.get(n).label=r,this.classes.get(n).text=`${r}${this.classes.get(n).type?`<${this.classes.get(n).type}>`:""}`}addClass(t){let r=He.sanitizeText(t,J()),{className:i,type:n}=this.splitClassNameAndType(r);if(this.classes.has(i))return;let s=He.sanitizeText(i,J());this.classes.set(s,{id:s,type:n,label:s,text:`${s}${n?`<${n}>`:""}`,shape:"classBox",cssClasses:"default",methods:[],members:[],annotations:[],styles:[],domId:A_+s+"-"+T0e}),T0e++}addInterface(t,r){let i={id:`interface${this.interfaces.length}`,label:t,classId:r};this.interfaces.push(i)}setDiagramId(t){this.diagramId=t}lookUpDomId(t){let r=He.sanitizeText(t,J());if(this.classes.has(r)){let i=this.classes.get(r).domId;return this.diagramId?`${this.diagramId}-${i}`:i}throw new Error("Class not found: "+r)}clear(){this.relations=[],this.classes=new Map,this.notes=new Map,this.interfaces=[],this.functions=[],this.functions.push(this.setupToolTips.bind(this)),this.namespaces=new Map,this.namespaceCounter=0,this.namespaceStack=[],this.diagramId="",this.direction="TB",Ht()}getClass(t){return this.classes.get(t)}getClasses(){return this.classes}getRelations(){return this.relations}getNote(t){let r=typeof t=="number"?`note${t}`:t;return this.notes.get(r)}getNotes(){return this.notes}addRelation(t){W.debug("Adding relation: "+JSON.stringify(t));let r=[this.relationType.LOLLIPOP,this.relationType.AGGREGATION,this.relationType.COMPOSITION,this.relationType.DEPENDENCY,this.relationType.EXTENSION];t.relation.type1===this.relationType.LOLLIPOP&&!r.includes(t.relation.type2)?(this.addClass(t.id2),this.addInterface(t.id1,t.id2),t.id1=`interface${this.interfaces.length-1}`):t.relation.type2===this.relationType.LOLLIPOP&&!r.includes(t.relation.type1)?(this.addClass(t.id1),this.addInterface(t.id2,t.id1),t.id2=`interface${this.interfaces.length-1}`):(this.addClass(t.id1),this.addClass(t.id2)),t.id1=this.splitClassNameAndType(t.id1).className,t.id2=this.splitClassNameAndType(t.id2).className,t.relationTitle1=He.sanitizeText(t.relationTitle1.trim(),J()),t.relationTitle2=He.sanitizeText(t.relationTitle2.trim(),J()),this.relations.push(t)}addAnnotation(t,r){let i=this.splitClassNameAndType(t).className;this.classes.get(i).annotations.push(r)}addMember(t,r){this.addClass(t);let i=this.splitClassNameAndType(t).className,n=this.classes.get(i);if(typeof r=="string"){let s=r.trim();s.startsWith("<<")&&s.endsWith(">>")?n.annotations.push(cf(s.substring(2,s.length-2))):s.indexOf(")")>0?n.methods.push(new yx(s,"method")):s&&n.members.push(new yx(s,"attribute"))}}addMembers(t,r){Array.isArray(r)&&(r.reverse(),r.forEach(i=>this.addMember(t,i)))}addNote(t,r){let i=this.notes.size,n={id:`note${i}`,class:r,text:t,index:i};return this.notes.set(n.id,n),n.id}cleanupLabel(t){return t.startsWith(":")&&(t=t.substring(1)),cf(t.trim())}setCssClass(t,r){t.split(",").forEach(i=>{let n=i;/\d/.exec(i[0])&&(n=A_+n);let s=this.classes.get(n);s&&(s.cssClasses+=" "+r)})}defineClass(t,r){for(let i of t){let n=this.styleClasses.get(i);n===void 0&&(n={id:i,styles:[],textStyles:[]},this.styleClasses.set(i,n)),r&&r.forEach(s=>{if(/color/.exec(s)){let o=s.replace("fill","bgFill");n.textStyles.push(o)}n.styles.push(s)}),this.classes.forEach(s=>{s.cssClasses.includes(i)&&s.styles.push(...r.flatMap(o=>o.split(",")))})}}setTooltip(t,r){t.split(",").forEach(i=>{r!==void 0&&(this.classes.get(i).tooltip=cf(r))})}getTooltip(t,r){return r&&this.namespaces.has(r)?this.namespaces.get(r).classes.get(t).tooltip:this.classes.get(t).tooltip}setLink(t,r,i){let n=J();t.split(",").forEach(s=>{let o=s;/\d/.exec(s[0])&&(o=A_+o);let l=this.classes.get(o);l&&(l.link=St.formatUrl(r,n),n.securityLevel==="sandbox"?l.linkTarget="_top":typeof i=="string"?l.linkTarget=cf(i):l.linkTarget="_blank")}),this.setCssClass(t,"clickable")}setClickEvent(t,r,i){t.split(",").forEach(n=>{this.setClickFunc(n,r,i),this.classes.get(n).haveCallback=!0}),this.setCssClass(t,"clickable")}setClickFunc(t,r,i){let n=He.sanitizeText(t,J());if(J().securityLevel!=="loose"||r===void 0)return;let o=n;if(this.classes.has(o)){let l=[];if(typeof i=="string"){l=i.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let u=0;u<l.length;u++){let h=l[u].trim();h.startsWith('"')&&h.endsWith('"')&&(h=h.substr(1,h.length-2)),l[u]=h}}l.length===0&&l.push(o),this.functions.push(()=>{let u=this.lookUpDomId(o),h=document.querySelector(`[id="${u}"]`);h!==null&&h.addEventListener("click",()=>{St.runFunc(r,...l)},!1)})}}bindFunctions(t){this.functions.forEach(r=>{r(t)})}escapeHtml(t){return t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}getDirection(){return this.direction}setDirection(t){this.direction=t}static resolveQualifiedId(t,r){let i=r.at(-1);return i?`${i}.${t}`:t}static getAncestorIds(t){let r=t.split("."),i=new Array(r.length);i[0]=r[0];for(let n=1;n<r.length;n++)i[n]=`${i[n-1]}.${r[n]}`;return i}createNamespaceNode(t,r,i,n=!1){return{id:t,label:r,classes:new Map,notes:new Map,children:new Map,domId:A_+t+"-"+this.namespaceCounter++,parent:i,explicit:n}}linkParentChild(t,r){let i=this.namespaces.get(t),n=this.namespaces.get(r);!i||!n||(i.children.has(r)||i.children.set(r,n),n.parent??=t)}addNamespace(t,r){let i=e.resolveQualifiedId(t,this.namespaceStack);if(this.namespaceStack.push(i),this.namespaces.has(i)){let o=this.namespaces.get(i);return o.explicit=!0,r&&(o.label=r),i}let n=i.split("."),s=e.getAncestorIds(i);for(let o=0;o<s.length;o++){let l=s[o],u=o>0?s[o-1]:void 0,h=o===s.length-1,d=h&&r?r:n[o];this.namespaces.has(l)?h&&(this.namespaces.get(l).explicit=!0):this.namespaces.set(l,this.createNamespaceNode(l,d,u,h)),u&&this.linkParentChild(u,l)}return i}popNamespace(){this.namespaceStack.pop()}getNamespace(t){return this.namespaces.get(t)}getNamespaces(){return this.namespaces}addClassesToNamespace(t,r,i){if(this.namespaces.has(t)){for(let n of r){let{className:s}=this.splitClassNameAndType(n),o=this.getClass(s);o.parent=t,this.namespaces.get(t).classes.set(s,o)}for(let n of i){let s=this.getNote(n);s.parent=t,this.namespaces.get(t).notes.set(n,s)}}}setCssStyle(t,r){let i=this.classes.get(t);if(!(!r||!i))for(let n of r)n.includes(",")?i.styles.push(...n.split(",")):i.styles.push(n)}getArrowMarker(t){let r;switch(t){case 0:r="aggregation";break;case 1:r="extension";break;case 2:r="composition";break;case 3:r="dependency";break;case 4:r="lollipop";break;default:r="none"}return r}resolveExplicitAncestor(t){let r=t;for(;r;){let i=this.namespaces.get(r);if(!i)return;if(i.explicit)return r;r=i.parent}}getData(){let t=[],r=[],i=J(),n=i.class?.hierarchicalNamespaces??!0;for(let o of this.namespaces.values()){if(!n&&!o.explicit)continue;let l={id:o.id,label:n?o.label:o.id,isGroup:!0,padding:i.class.padding??16,shape:"rect",cssStyles:[],look:i.look,parentId:n?o.parent:void 0};t.push(l)}for(let o of this.classes.values()){let l=n?o.parent:this.resolveExplicitAncestor(o.parent),u={...o,type:void 0,isGroup:!1,parentId:l,look:i.look};t.push(u)}for(let o of this.notes.values()){let l=n?o.parent:this.resolveExplicitAncestor(o.parent),u={id:o.id,label:o.text,isGroup:!1,shape:"note",padding:i.class.padding??6,cssStyles:["text-align: left","white-space: nowrap",`fill: ${i.themeVariables.noteBkgColor}`,`stroke: ${i.themeVariables.noteBorderColor}`],look:i.look,parentId:l,labelType:"markdown"};t.push(u);let h=this.classes.get(o.class)?.id;if(h){let d={id:`edgeNote${o.index}`,start:o.id,end:h,type:"normal",thickness:"normal",classes:"relation",arrowTypeStart:"none",arrowTypeEnd:"none",arrowheadStyle:"",labelStyle:[""],style:["fill: none"],pattern:"dotted",look:i.look};r.push(d)}}for(let o of this.interfaces){let l={id:o.id,label:o.label,isGroup:!1,shape:"rect",cssStyles:["opacity: 0;"],look:i.look};t.push(l)}let s=0;for(let o of this.relations){s++;let l={id:Ic(o.id1,o.id2,{prefix:"id",counter:s}),start:o.id1,end:o.id2,type:"normal",label:o.title,labelpos:"c",thickness:"normal",classes:"relation",arrowTypeStart:this.getArrowMarker(o.relation.type1),arrowTypeEnd:this.getArrowMarker(o.relation.type2),startLabelRight:o.relationTitle1==="none"?"":o.relationTitle1,endLabelLeft:o.relationTitle2==="none"?"":o.relationTitle2,arrowheadStyle:"",labelStyle:["display: inline-block"],style:o.style||"",pattern:o.relation.lineType==1?"dashed":"solid",look:i.look,labelType:"markdown"};r.push(l)}return{nodes:t,edges:r,other:{},config:i,direction:this.getDirection()}}}});var ret,R_,LP=v(()=>{"use strict";Gp();ret=a(e=>`g.classGroup text {
fill: ${e.nodeBorder||e.classText};
stroke: none;
font-family: ${e.fontFamily};
font-size: 10px;
.title {
font-weight: bolder;
}
}
.cluster-label text {
fill: ${e.titleColor};
}
.cluster-label span {
color: ${e.titleColor};
}
.cluster-label span p {
background-color: transparent;
}
.cluster rect {
fill: ${e.clusterBkg};
stroke: ${e.clusterBorder};
stroke-width: 1px;
}
.cluster text {
fill: ${e.titleColor};
}
.cluster span {
color: ${e.titleColor};
}
.nodeLabel, .edgeLabel {
color: ${e.classText};
}
.noteLabel .nodeLabel, .noteLabel .edgeLabel {
color: ${e.noteTextColor};
}
.edgeLabel .label rect {
fill: ${e.mainBkg};
}
.label text {
fill: ${e.classText};
}
.labelBkg {
background: ${e.mainBkg};
}
.edgeLabel .label span {
background: ${e.mainBkg};
}
.classTitle {
font-weight: bolder;
}
.node rect,
.node circle,
.node ellipse,
.node polygon,
.node path {
fill: ${e.mainBkg};
stroke: ${e.nodeBorder};
stroke-width: ${e.strokeWidth};
}
.divider {
stroke: ${e.nodeBorder};
stroke-width: 1;
}
g.clickable {
cursor: pointer;
}
g.classGroup rect {
fill: ${e.mainBkg};
stroke: ${e.nodeBorder};
}
g.classGroup line {
stroke: ${e.nodeBorder};
stroke-width: 1;
}
.classLabel .box {
stroke: none;
stroke-width: 0;
fill: ${e.mainBkg};
opacity: 0.5;
}
.classLabel .label {
fill: ${e.nodeBorder};
font-size: 10px;
}
.relation {
stroke: ${e.lineColor};
stroke-width: ${e.strokeWidth};
fill: none;
}
.dashed-line{
stroke-dasharray: 3;
}
.dotted-line{
stroke-dasharray: 1 2;
}
[id$="-compositionStart"], .composition {
fill: ${e.lineColor} !important;
stroke: ${e.lineColor} !important;
stroke-width: 1;
}
[id$="-compositionEnd"], .composition {
fill: ${e.lineColor} !important;
stroke: ${e.lineColor} !important;
stroke-width: 1;
}
[id$="-dependencyStart"], .dependency {
fill: ${e.lineColor} !important;
stroke: ${e.lineColor} !important;
stroke-width: 1;
}
[id$="-dependencyEnd"], .dependency {
fill: ${e.lineColor} !important;
stroke: ${e.lineColor} !important;
stroke-width: 1;
}
[id$="-extensionStart"], .extension {
fill: transparent !important;
stroke: ${e.lineColor} !important;
stroke-width: 1;
}
[id$="-extensionEnd"], .extension {
fill: transparent !important;
stroke: ${e.lineColor} !important;
stroke-width: 1;
}
[id$="-aggregationStart"], .aggregation {
fill: transparent !important;
stroke: ${e.lineColor} !important;
stroke-width: 1;
}
[id$="-aggregationEnd"], .aggregation {
fill: transparent !important;
stroke: ${e.lineColor} !important;
stroke-width: 1;
}
[id$="-lollipopStart"], .lollipop {
fill: ${e.mainBkg} !important;
stroke: ${e.lineColor} !important;
stroke-width: 1;
}
[id$="-lollipopEnd"], .lollipop {
fill: ${e.mainBkg} !important;
stroke: ${e.lineColor} !important;
stroke-width: 1;
}
.edgeTerminals {
font-size: 11px;
line-height: initial;
}
.classTitleText {
text-anchor: middle;
font-size: 18px;
fill: ${e.textColor};
}
.edgeLabel[data-look="neo"] {
background-color: ${e.edgeLabelBackground};
p {
background-color: ${e.edgeLabelBackground};
}
rect {
opacity: 0.5;
background-color: ${e.edgeLabelBackground};
fill: ${e.edgeLabelBackground};
}
text-align: center;
}
${Po()}
`,"getStyles"),R_=ret});var iet,net,aet,L_,DP=v(()=>{"use strict";bt();nt();hp();Yh();Kh();Et();iet=a((e,t="TB")=>{if(!e.doc)return t;let r=t;for(let i of e.doc)i.stmt==="dir"&&(r=i.value);return r},"getDir"),net=a(function(e,t){return t.db.getClasses()},"getClasses"),aet=a(async function(e,t,r,i){W.info("REF0:"),W.info("Drawing class diagram (v3)",t);let{securityLevel:n,state:s,layout:o}=J();i.db.setDiagramId(t);let l=i.db.getData(),u=So(t,n);l.type=i.type,l.layoutAlgorithm=uu(o),l.nodeSpacing=s?.nodeSpacing||50,l.rankSpacing=s?.rankSpacing||50,l.markers=["aggregation","extension","composition","dependency","lollipop"],l.diagramId=t,await Oo(l,u);let h=8;St.insertTitle(u,"classDiagramTitleText",s?.titleTopMargin??25,i.db.getDiagramTitle()),os(u,h,"classDiagram",s?.useMaxWidth??!0)},"draw"),L_={getClasses:net,draw:aet,getDir:iet}});var k0e={};tr(k0e,{diagram:()=>set});var set,C0e=v(()=>{"use strict";AP();RP();LP();DP();set={parser:E_,get db(){return new Vm},renderer:L_,styles:R_,init:a(e=>{e.class||(e.class={}),e.class.arrowMarkerAbsolute=e.arrowMarkerAbsolute},"init")}});var _0e={};tr(_0e,{diagram:()=>het});var het,w0e=v(()=>{"use strict";AP();RP();LP();DP();het={parser:E_,get db(){return new Vm},renderer:L_,styles:R_,init:a(e=>{e.class||(e.class={}),e.class.arrowMarkerAbsolute=e.arrowMarkerAbsolute},"init")}});var IP,D_,NP=v(()=>{"use strict";IP=(function(){var e=a(function(M,V,O,z){for(O=O||{},z=M.length;z--;O[M[z]]=V);return O},"o"),t=[1,2],r=[1,3],i=[1,4],n=[2,4],s=[1,9],o=[1,11],l=[1,16],u=[1,17],h=[1,18],d=[1,19],f=[1,33],p=[1,20],m=[1,21],g=[1,22],x=[1,23],b=[1,24],T=[1,26],k=[1,27],C=[1,28],S=[1,29],w=[1,30],_=[1,31],L=[1,32],I=[1,35],B=[1,36],G=[1,37],P=[1,38],F=[1,34],A=[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],D=[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],N={trace:a(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,"-->":15,HIDE_EMPTY:16,scale:17,WIDTH:18,COMPOSIT_STATE:19,STRUCT_START:20,STRUCT_STOP:21,STATE_DESCR:22,AS:23,ID:24,FORK:25,JOIN:26,CHOICE:27,CONCURRENT:28,note:29,notePosition:30,NOTE_TEXT:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,CLICK:38,STRING:39,HREF:40,classDef:41,CLASSDEF_ID:42,CLASSDEF_STYLEOPTS:43,DEFAULT:44,style:45,STYLE_IDS:46,STYLEDEF_STYLEOPTS:47,class:48,CLASSENTITY_IDS:49,STYLECLASS:50,direction_tb:51,direction_bt:52,direction_rl:53,direction_lr:54,eol:55,";":56,EDGE_STATE:57,STYLE_SEPARATOR:58,left_of:59,right_of:60,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",6:"SD",14:"DESCR",15:"-->",16:"HIDE_EMPTY",17:"scale",18:"WIDTH",19:"COMPOSIT_STATE",20:"STRUCT_START",21:"STRUCT_STOP",22:"STATE_DESCR",23:"AS",24:"ID",25:"FORK",26:"JOIN",27:"CHOICE",28:"CONCURRENT",29:"note",31:"NOTE_TEXT",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",38:"CLICK",39:"STRING",40:"HREF",41:"classDef",42:"CLASSDEF_ID",43:"CLASSDEF_STYLEOPTS",44:"DEFAULT",45:"style",46:"STYLE_IDS",47:"STYLEDEF_STYLEOPTS",48:"class",49:"CLASSENTITY_IDS",50:"STYLECLASS",51:"direction_tb",52:"direction_bt",53:"direction_rl",54:"direction_lr",56:";",57:"EDGE_STATE",58:"STYLE_SEPARATOR",59:"left_of",60:"right_of"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,3],[9,4],[9,1],[9,2],[9,1],[9,4],[9,3],[9,6],[9,1],[9,1],[9,1],[9,1],[9,4],[9,4],[9,1],[9,2],[9,2],[9,1],[9,5],[9,5],[10,3],[10,3],[11,3],[12,3],[32,1],[32,1],[32,1],[32,1],[55,1],[55,1],[13,1],[13,1],[13,3],[13,3],[30,1],[30,1]],performAction:a(function(V,O,z,U,K,j,ae){var X=j.length-1;switch(K){case 3:return U.setRootDoc(j[X]),j[X];break;case 4:this.$=[];break;case 5:j[X]!="nl"&&(j[X-1].push(j[X]),this.$=j[X-1]);break;case 6:case 7:this.$=j[X];break;case 8:this.$="nl";break;case 12:this.$=j[X];break;case 13:let he=j[X-1];he.description=U.trimColon(j[X]),this.$=he;break;case 14:this.$={stmt:"relation",state1:j[X-2],state2:j[X]};break;case 15:let te=U.trimColon(j[X]);this.$={stmt:"relation",state1:j[X-3],state2:j[X-1],description:te};break;case 19:this.$={stmt:"state",id:j[X-3],type:"default",description:"",doc:j[X-1]};break;case 20:var de=j[X],le=j[X-2].trim();if(j[X].match(":")){var ge=j[X].split(":");de=ge[0],le=[le,ge[1]]}this.$={stmt:"state",id:de,type:"default",description:le};break;case 21:this.$={stmt:"state",id:j[X-3],type:"default",description:j[X-5],doc:j[X-1]};break;case 22:this.$={stmt:"state",id:j[X],type:"fork"};break;case 23:this.$={stmt:"state",id:j[X],type:"join"};break;case 24:this.$={stmt:"state",id:j[X],type:"choice"};break;case 25:this.$={stmt:"state",id:U.getDividerId(),type:"divider"};break;case 26:this.$={stmt:"state",id:j[X-1].trim(),note:{position:j[X-2].trim(),text:j[X].trim()}};break;case 29:this.$=j[X].trim(),U.setAccTitle(this.$);break;case 30:case 31:this.$=j[X].trim(),U.setAccDescription(this.$);break;case 32:this.$={stmt:"click",id:j[X-3],url:j[X-2],tooltip:j[X-1]};break;case 33:this.$={stmt:"click",id:j[X-3],url:j[X-1],tooltip:""};break;case 34:case 35:this.$={stmt:"classDef",id:j[X-1].trim(),classes:j[X].trim()};break;case 36:this.$={stmt:"style",id:j[X-1].trim(),styleClass:j[X].trim()};break;case 37:this.$={stmt:"applyClass",id:j[X-1].trim(),styleClass:j[X].trim()};break;case 38:U.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 39:U.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 40:U.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 41:U.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 44:case 45:this.$={stmt:"state",id:j[X].trim(),type:"default",description:""};break;case 46:this.$={stmt:"state",id:j[X-2].trim(),classes:[j[X].trim()],type:"default",description:""};break;case 47:this.$={stmt:"state",id:j[X-2].trim(),classes:[j[X].trim()],type:"default",description:""};break}},"anonymous"),table:[{3:1,4:t,5:r,6:i},{1:[3]},{3:5,4:t,5:r,6:i},{3:6,4:t,5:r,6:i},e([1,4,5,16,17,19,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],n,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:s,5:o,8:8,9:10,10:12,11:13,12:14,13:15,16:l,17:u,19:h,22:d,24:f,25:p,26:m,27:g,28:x,29:b,32:25,33:T,35:k,37:C,38:S,41:w,45:_,48:L,51:I,52:B,53:G,54:P,57:F},e(A,[2,5]),{9:39,10:12,11:13,12:14,13:15,16:l,17:u,19:h,22:d,24:f,25:p,26:m,27:g,28:x,29:b,32:25,33:T,35:k,37:C,38:S,41:w,45:_,48:L,51:I,52:B,53:G,54:P,57:F},e(A,[2,7]),e(A,[2,8]),e(A,[2,9]),e(A,[2,10]),e(A,[2,11]),e(A,[2,12],{14:[1,40],15:[1,41]}),e(A,[2,16]),{18:[1,42]},e(A,[2,18],{20:[1,43]}),{23:[1,44]},e(A,[2,22]),e(A,[2,23]),e(A,[2,24]),e(A,[2,25]),{30:45,31:[1,46],59:[1,47],60:[1,48]},e(A,[2,28]),{34:[1,49]},{36:[1,50]},e(A,[2,31]),{13:51,24:f,57:F},{42:[1,52],44:[1,53]},{46:[1,54]},{49:[1,55]},e(D,[2,44],{58:[1,56]}),e(D,[2,45],{58:[1,57]}),e(A,[2,38]),e(A,[2,39]),e(A,[2,40]),e(A,[2,41]),e(A,[2,6]),e(A,[2,13]),{13:58,24:f,57:F},e(A,[2,17]),e(R,n,{7:59}),{24:[1,60]},{24:[1,61]},{23:[1,62]},{24:[2,48]},{24:[2,49]},e(A,[2,29]),e(A,[2,30]),{39:[1,63],40:[1,64]},{43:[1,65]},{43:[1,66]},{47:[1,67]},{50:[1,68]},{24:[1,69]},{24:[1,70]},e(A,[2,14],{14:[1,71]}),{4:s,5:o,8:8,9:10,10:12,11:13,12:14,13:15,16:l,17:u,19:h,21:[1,72],22:d,24:f,25:p,26:m,27:g,28:x,29:b,32:25,33:T,35:k,37:C,38:S,41:w,45:_,48:L,51:I,52:B,53:G,54:P,57:F},e(A,[2,20],{20:[1,73]}),{31:[1,74]},{24:[1,75]},{39:[1,76]},{39:[1,77]},e(A,[2,34]),e(A,[2,35]),e(A,[2,36]),e(A,[2,37]),e(D,[2,46]),e(D,[2,47]),e(A,[2,15]),e(A,[2,19]),e(R,n,{7:78}),e(A,[2,26]),e(A,[2,27]),{5:[1,79]},{5:[1,80]},{4:s,5:o,8:8,9:10,10:12,11:13,12:14,13:15,16:l,17:u,19:h,21:[1,81],22:d,24:f,25:p,26:m,27:g,28:x,29:b,32:25,33:T,35:k,37:C,38:S,41:w,45:_,48:L,51:I,52:B,53:G,54:P,57:F},e(A,[2,32]),e(A,[2,33]),e(A,[2,21])],defaultActions:{5:[2,1],6:[2,2],47:[2,48],48:[2,49]},parseError:a(function(V,O){if(O.recoverable)this.trace(V);else{var z=new Error(V);throw z.hash=O,z}},"parseError"),parse:a(function(V){var O=this,z=[0],U=[],K=[null],j=[],ae=this.table,X="",de=0,le=0,ge=0,he=2,te=1,Le=j.slice.call(arguments,1),xe=Object.create(this.lexer),ye={yy:{}};for(var be in this.yy)Object.prototype.hasOwnProperty.call(this.yy,be)&&(ye.yy[be]=this.yy[be]);xe.setInput(V,ye.yy),ye.yy.lexer=xe,ye.yy.parser=this,typeof xe.yylloc>"u"&&(xe.yylloc={});var Ce=xe.yylloc;j.push(Ce);var Oe=xe.options&&xe.options.ranges;typeof ye.yy.parseError=="function"?this.parseError=ye.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Ae(Q){z.length=z.length-2*Q,K.length=K.length-Q,j.length=j.length-Q}a(Ae,"popStack");function st(){var Q;return Q=U.pop()||xe.lex()||te,typeof Q!="number"&&(Q instanceof Array&&(U=Q,Q=U.pop()),Q=O.symbols_[Q]||Q),Q}a(st,"lex");for(var ce,Mt,fe,Ue,Je,ot,Ne={},ze,oe,_e,re;;){if(fe=z[z.length-1],this.defaultActions[fe]?Ue=this.defaultActions[fe]:((ce===null||typeof ce>"u")&&(ce=st()),Ue=ae[fe]&&ae[fe][ce]),typeof Ue>"u"||!Ue.length||!Ue[0]){var Ke="";re=[];for(ze in ae[fe])this.terminals_[ze]&&ze>he&&re.push("'"+this.terminals_[ze]+"'");xe.showPosition?Ke="Parse error on line "+(de+1)+`:
`+xe.showPosition()+`
Expecting `+re.join(", ")+", got '"+(this.terminals_[ce]||ce)+"'":Ke="Parse error on line "+(de+1)+": Unexpected "+(ce==te?"end of input":"'"+(this.terminals_[ce]||ce)+"'"),this.parseError(Ke,{text:xe.match,token:this.terminals_[ce]||ce,line:xe.yylineno,loc:Ce,expected:re})}if(Ue[0]instanceof Array&&Ue.length>1)throw new Error("Parse Error: multiple actions possible at state: "+fe+", token: "+ce);switch(Ue[0]){case 1:z.push(ce),K.push(xe.yytext),j.push(xe.yylloc),z.push(Ue[1]),ce=null,Mt?(ce=Mt,Mt=null):(le=xe.yyleng,X=xe.yytext,de=xe.yylineno,Ce=xe.yylloc,ge>0&&ge--);break;case 2:if(oe=this.productions_[Ue[1]][1],Ne.$=K[K.length-oe],Ne._$={first_line:j[j.length-(oe||1)].first_line,last_line:j[j.length-1].last_line,first_column:j[j.length-(oe||1)].first_column,last_column:j[j.length-1].last_column},Oe&&(Ne._$.range=[j[j.length-(oe||1)].range[0],j[j.length-1].range[1]]),ot=this.performAction.apply(Ne,[X,le,de,ye.yy,Ue[1],K,j].concat(Le)),typeof ot<"u")return ot;oe&&(z=z.slice(0,-1*oe*2),K=K.slice(0,-1*oe),j=j.slice(0,-1*oe)),z.push(this.productions_[Ue[1]][0]),K.push(Ne.$),j.push(Ne._$),_e=ae[z[z.length-2]][z[z.length-1]],z.push(_e);break;case 3:return!0}}return!0},"parse")},$=(function(){var M={EOF:1,parseError:a(function(O,z){if(this.yy.parser)this.yy.parser.parseError(O,z);else throw new Error(O)},"parseError"),setInput:a(function(V,O){return this.yy=O||this.yy||{},this._input=V,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:a(function(){var V=this._input[0];this.yytext+=V,this.yyleng++,this.offset++,this.match+=V,this.matched+=V;var O=V.match(/(?:\r\n?|\n).*/g);return O?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),V},"input"),unput:a(function(V){var O=V.length,z=V.split(/(?:\r\n?|\n)/g);this._input=V+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-O),this.offset-=O;var U=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),z.length-1&&(this.yylineno-=z.length-1);var K=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:z?(z.length===U.length?this.yylloc.first_column:0)+U[U.length-z.length].length-z[0].length:this.yylloc.first_column-O},this.options.ranges&&(this.yylloc.range=[K[0],K[0]+this.yyleng-O]),this.yyleng=this.yytext.length,this},"unput"),more:a(function(){return this._more=!0,this},"more"),reject:a(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:a(function(V){this.unput(this.match.slice(V))},"less"),pastInput:a(function(){var V=this.matched.substr(0,this.matched.length-this.match.length);return(V.length>20?"...":"")+V.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:a(function(){var V=this.match;return V.length<20&&(V+=this._input.substr(0,20-V.length)),(V.substr(0,20)+(V.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:a(function(){var V=this.pastInput(),O=new Array(V.length+1).join("-");return V+this.upcomingInput()+`
`+O+"^"},"showPosition"),test_match:a(function(V,O){var z,U,K;if(this.options.backtrack_lexer&&(K={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&&(K.yylloc.range=this.yylloc.range.slice(0))),U=V[0].match(/(?:\r\n?|\n).*/g),U&&(this.yylineno+=U.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:U?U[U.length-1].length-U[U.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+V[0].length},this.yytext+=V[0],this.match+=V[0],this.matches=V,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(V[0].length),this.matched+=V[0],z=this.performAction.call(this,this.yy,this,O,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),z)return z;if(this._backtrack){for(var j in K)this[j]=K[j];return!1}return!1},"test_match"),next:a(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var V,O,z,U;this._more||(this.yytext="",this.match="");for(var K=this._currentRules(),j=0;j<K.length;j++)if(z=this._input.match(this.rules[K[j]]),z&&(!O||z[0].length>O[0].length)){if(O=z,U=j,this.options.backtrack_lexer){if(V=this.test_match(z,K[j]),V!==!1)return V;if(this._backtrack){O=!1;continue}else return!1}else if(!this.options.flex)break}return O?(V=this.test_match(O,K[U]),V!==!1?V:!1):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:a(function(){var O=this.next();return O||this.lex()},"lex"),begin:a(function(O){this.conditionStack.push(O)},"begin"),popState:a(function(){var O=this.conditionStack.length-1;return O>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:a(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:a(function(O){return O=this.conditionStack.length-1-Math.abs(O||0),O>=0?this.conditionStack[O]:"INITIAL"},"topState"),pushState:a(function(O){this.begin(O)},"pushState"),stateStackSize:a(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:a(function(O,z,U,K){function j(){let X=z.yytext.indexOf("%%");if(X===0)return!1;if(X>0){let de=z.yytext.slice(0,X),le=z.yytext.slice(X);le&&O.lexer.unput(le),z.yytext=de}return!0}a(j,"processId");var ae=K;switch(U){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:return 5;case 9:break;case 10:break;case 11:break;case 12:break;case 13:return this.pushState("SCALE"),17;break;case 14:return 18;case 15:this.popState();break;case 16:return this.begin("acc_title"),33;break;case 17:return this.popState(),"acc_title_value";break;case 18:return this.begin("acc_descr"),35;break;case 19:return this.popState(),"acc_descr_value";break;case 20:this.begin("acc_descr_multiline");break;case 21:this.popState();break;case 22:return"acc_descr_multiline_value";case 23:return this.pushState("CLASSDEF"),41;break;case 24:return this.popState(),this.pushState("CLASSDEFID"),"DEFAULT_CLASSDEF_ID";break;case 25:return this.popState(),this.pushState("CLASSDEFID"),42;break;case 26:return this.popState(),43;break;case 27:return this.pushState("CLASS"),48;break;case 28:return this.popState(),this.pushState("CLASS_STYLE"),49;break;case 29:return this.popState(),50;break;case 30:return this.pushState("STYLE"),45;break;case 31:return this.popState(),this.pushState("STYLEDEF_STYLES"),46;break;case 32:return this.popState(),47;break;case 33:return this.pushState("SCALE"),17;break;case 34:return 18;case 35:this.popState();break;case 36:this.pushState("STATE");break;case 37:return this.popState(),z.yytext=z.yytext.slice(0,-8).trim(),25;break;case 38:return this.popState(),z.yytext=z.yytext.slice(0,-8).trim(),26;break;case 39:return this.popState(),z.yytext=z.yytext.slice(0,-10).trim(),27;break;case 40:return this.popState(),z.yytext=z.yytext.slice(0,-8).trim(),25;break;case 41:return this.popState(),z.yytext=z.yytext.slice(0,-8).trim(),26;break;case 42:return this.popState(),z.yytext=z.yytext.slice(0,-10).trim(),27;break;case 43:return 51;case 44:return 52;case 45:return 53;case 46:return 54;case 47:this.pushState("STATE_STRING");break;case 48:return this.pushState("STATE_ID"),"AS";break;case 49:if(!j())return;return this.popState(),"ID";break;case 50:this.popState();break;case 51:return"STATE_DESCR";case 52:return 19;case 53:this.popState();break;case 54:return this.popState(),this.pushState("struct"),20;break;case 55:return this.popState(),21;break;case 56:break;case 57:return this.begin("NOTE"),29;break;case 58:return this.popState(),this.pushState("NOTE_ID"),59;break;case 59:return this.popState(),this.pushState("NOTE_ID"),60;break;case 60:this.popState(),this.pushState("FLOATING_NOTE");break;case 61:return this.popState(),this.pushState("FLOATING_NOTE_ID"),"AS";break;case 62:break;case 63:return"NOTE_TEXT";case 64:if(!j())return;return this.popState(),"ID";break;case 65:if(!j())return;return this.popState(),this.pushState("NOTE_TEXT"),24;break;case 66:return this.popState(),z.yytext=z.yytext.substr(2).trim(),31;break;case 67:return this.popState(),z.yytext=z.yytext.slice(0,-8).trim(),31;break;case 68:return 6;case 69:return 6;case 70:return 16;case 71:return 57;case 72:return j()?24:void 0;case 73:return z.yytext=z.yytext.trim(),14;break;case 74:return 15;case 75:return 28;case 76:return 58;case 77:return 5;case 78: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,/^(?:[\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,/^(?:\})/i,/^(?:[\n])/i,/^(?:note\s+)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:")/i,/^(?:\s*as\s*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n]*)/i,/^(?:\s*[^:\n\s\-]+)/i,/^(?:\s*:[^:\n;]+)/i,/^(?:[\s\S]*?\n\s*end note\b)/i,/^(?:stateDiagram\s+)/i,/^(?:stateDiagram-v2\s+)/i,/^(?:hide empty description\b)/i,/^(?:\[\*\])/i,/^(?:[^:\n\s\-\{]+)/i,/^(?:\s*:(?:[^:\n;]|:[^:\n;])+)/i,/^(?:-->)/i,/^(?:--)/i,/^(?::::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{LINE:{rules:[10,11,12],inclusive:!1},struct:{rules:[10,11,12,23,27,30,36,43,44,45,46,55,56,57,71,72,73,74,75,76],inclusive:!1},FLOATING_NOTE_ID:{rules:[64],inclusive:!1},FLOATING_NOTE:{rules:[61,62,63],inclusive:!1},NOTE_TEXT:{rules:[66,67],inclusive:!1},NOTE_ID:{rules:[65],inclusive:!1},NOTE:{rules:[58,59,60],inclusive:!1},STYLEDEF_STYLEOPTS:{rules:[],inclusive:!1},STYLEDEF_STYLES:{rules:[32],inclusive:!1},STYLE_IDS:{rules:[],inclusive:!1},STYLE:{rules:[31],inclusive:!1},CLASS_STYLE:{rules:[29],inclusive:!1},CLASS:{rules:[28],inclusive:!1},CLASSDEFID:{rules:[26],inclusive:!1},CLASSDEF:{rules:[24,25],inclusive:!1},acc_descr_multiline:{rules:[21,22],inclusive:!1},acc_descr:{rules:[19],inclusive:!1},acc_title:{rules:[17],inclusive:!1},SCALE:{rules:[14,15,34,35],inclusive:!1},ALIAS:{rules:[],inclusive:!1},STATE_ID:{rules:[49],inclusive:!1},STATE_STRING:{rules:[50,51],inclusive:!1},FORK_STATE:{rules:[],inclusive:!1},STATE:{rules:[10,11,12,37,38,39,40,41,42,47,48,52,53,54],inclusive:!1},ID:{rules:[10,11,12],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,11,12,13,16,18,20,23,27,30,33,36,54,57,68,69,70,71,72,73,74,76,77,78],inclusive:!0}}};return M})();N.lexer=$;function E(){this.yy={}}return a(E,"Parser"),E.prototype=N,N.Parser=E,new E})();IP.parser=IP;D_=IP});var Bu,uf,xx,R0e,L0e,D0e,hf,I_,MP,OP,PP,BP,N_,M_,I0e,N0e,$P,FP,M0e,O0e,Gm,met,P0e,VP,get,yet,B0e,$0e,xet,F0e,bet,V0e,GP,WP,G0e,O_,W0e,zP,P_=v(()=>{"use strict";Bu="state",uf="root",xx="relation",R0e="classDef",L0e="style",D0e="applyClass",hf="default",I_="divider",MP="fill:none",OP="fill: #333",PP="markdown",BP="normal",N_="rect",M_="rectWithTitle",I0e="stateStart",N0e="stateEnd",$P="divider",FP="roundedWithTitle",M0e="note",O0e="noteGroup",Gm="statediagram",met="state",P0e=`${Gm}-${met}`,VP="transition",get="note",yet="note-edge",B0e=`${VP} ${yet}`,$0e=`${Gm}-${get}`,xet="cluster",F0e=`${Gm}-${xet}`,bet="cluster-alt",V0e=`${Gm}-${bet}`,GP="parent",WP="note",G0e="state",O_="----",W0e=`${O_}${WP}`,zP=`${O_}${GP}`});function qP(e="",t=0,r="",i=O_){let n=r!==null&&r.length>0?`${i}${r}`:"";return`${G0e}-${e}${n}-${t}`}function B_(e,t,r){if(!t.id||t.id==="</join></fork>"||t.id==="</choice>")return;t.cssClasses&&(Array.isArray(t.cssCompiledStyles)||(t.cssCompiledStyles=[]),t.cssClasses.split(" ").forEach(n=>{let s=r.get(n);s&&(t.cssCompiledStyles=[...t.cssCompiledStyles??[],...s.styles])}));let i=e.find(n=>n.id===t.id);i?Object.assign(i,t):e.push(t)}function ket(e){return e?.classes?.join(" ")??""}function Cet(e){return e?.styles??[]}var $_,$u,Tet,z0e,Wm,j0e,U0e=v(()=>{"use strict";bt();nt();dr();P_();$_=new Map,$u=0;a(qP,"stateDomId");Tet=a((e,t,r,i,n,s,o,l)=>{W.trace("items",t),t.forEach(u=>{switch(u.stmt){case Bu:Wm(e,u,r,i,n,s,o,l);break;case hf:Wm(e,u,r,i,n,s,o,l);break;case xx:{Wm(e,u.state1,r,i,n,s,o,l),Wm(e,u.state2,r,i,n,s,o,l);let h=o==="neo",d={id:"edge"+$u,start:u.state1.id,end:u.state2.id,arrowhead:"normal",arrowTypeEnd:h?"arrow_barb_neo":"arrow_barb",style:MP,labelStyle:"",label:He.sanitizeText(u.description??"",J()),arrowheadStyle:OP,labelpos:"c",labelType:PP,thickness:BP,classes:VP,look:o};n.push(d),$u++}break}})},"setupDoc"),z0e=a((e,t="TB")=>{let r=t;if(e.doc)for(let i of e.doc)i.stmt==="dir"&&(r=i.value);return r},"getDir");a(B_,"insertOrUpdateNode");a(ket,"getClassesFromDbInfo");a(Cet,"getStylesFromDbInfo");Wm=a((e,t,r,i,n,s,o,l)=>{let u=t.id,h=r.get(u),d=ket(h),f=Cet(h),p=J();if(W.info("dataFetcher parsedItem",t,h,f),u!=="root"){let m=N_;t.start===!0?m=I0e:t.start===!1&&(m=N0e),t.type!==hf&&(m=t.type),$_.get(u)||$_.set(u,{id:u,shape:m,description:He.sanitizeText(u,p),cssClasses:`${d} ${P0e}`,cssStyles:f});let g=$_.get(u);t.description&&(Array.isArray(g.description)?(g.shape=M_,g.description.push(t.description)):g.description?.length&&g.description.length>0?(g.shape=M_,g.description===u?g.description=[t.description]:g.description=[g.description,t.description]):(g.shape=N_,g.description=t.description),g.description=He.sanitizeTextOrArray(g.description,p)),g.description?.length===1&&g.shape===M_&&(g.type==="group"?g.shape=FP:g.shape=N_),!g.type&&t.doc&&(W.info("Setting cluster for XCX",u,z0e(t)),g.type="group",g.isGroup=!0,g.dir=z0e(t),g.shape=t.type===I_?$P:FP,g.cssClasses=`${g.cssClasses} ${F0e} ${s?V0e:""}`);let x={labelStyle:"",shape:g.shape,label:g.description,cssClasses:g.cssClasses,cssCompiledStyles:[],cssStyles:g.cssStyles,id:u,dir:g.dir,domId:qP(u,$u),type:g.type,isGroup:g.type==="group",padding:8,rx:10,ry:10,look:o,labelType:"markdown"};if(x.shape===$P&&(x.label=""),e&&e.id!=="root"&&(W.trace("Setting node ",u," to be child of its parent ",e.id),x.parentId=e.id),x.centerLabel=!0,t.note){let b={labelStyle:"",shape:M0e,label:t.note.text,labelType:"markdown",cssClasses:$0e,cssStyles:[],cssCompiledStyles:[],id:u+W0e+"-"+$u,domId:qP(u,$u,WP),type:g.type,isGroup:g.type==="group",padding:p.flowchart?.padding,look:o,position:t.note.position},T=u+zP,k={labelStyle:"",shape:O0e,label:t.note.text,cssClasses:g.cssClasses,cssStyles:[],id:u+zP,domId:qP(u,$u,GP),type:"group",isGroup:!0,padding:16,look:o,position:t.note.position};$u++,k.id=T,b.parentId=T,B_(i,k,l),B_(i,b,l),B_(i,x,l);let C=u,S=b.id;t.note.position==="left of"&&(C=b.id,S=u),n.push({id:C+"-"+S,start:C,end:S,arrowhead:"none",arrowTypeEnd:"",style:MP,labelStyle:"",classes:B0e,arrowheadStyle:OP,labelpos:"c",labelType:PP,thickness:BP,look:o})}else B_(i,x,l)}t.doc&&(W.trace("Adding nodes children "),Tet(t,t.doc,r,i,n,!s,o,l))},"dataFetcher"),j0e=a(()=>{$_.clear(),$u=0},"reset")});var UP,vet,_et,H0e,HP=v(()=>{"use strict";bt();nt();hp();Yh();Kh();Et();P_();UP=a((e,t="TB")=>{if(!e.doc)return t;let r=t;for(let i of e.doc)i.stmt==="dir"&&(r=i.value);return r},"getDir"),vet=a(function(e,t){return t.db.getClasses()},"getClasses"),_et=a(async function(e,t,r,i){W.info("REF0:"),W.info("Drawing state diagram (v2)",t);let{securityLevel:n,state:s,layout:o}=J();i.db.extract(i.db.getRootDocV2());let l=i.db.getData(),u=So(t,n);l.type=i.type,l.layoutAlgorithm=o,l.nodeSpacing=s?.nodeSpacing||50,l.rankSpacing=s?.rankSpacing||50,J().look==="neo"?l.markers=["barbNeo"]:l.markers=["barb"],l.diagramId=t,await Oo(l,u);let d=8;try{(typeof i.db.getLinks=="function"?i.db.getLinks():new Map).forEach((p,m)=>{let g=typeof m=="string"?m:typeof m?.id=="string"?m.id:"";if(!g){W.warn("\u26A0\uFE0F Invalid or missing stateId from key:",JSON.stringify(m));return}let x=u.node()?.querySelectorAll("g"),b;if(x?.forEach(S=>{S.textContent?.trim()===g&&(b=S)}),!b){W.warn("\u26A0\uFE0F Could not find node matching text:",g);return}let T=b.parentNode;if(!T){W.warn("\u26A0\uFE0F Node has no parent, cannot wrap:",g);return}let k=document.createElementNS("http://www.w3.org/2000/svg","a"),C=p.url.replace(/^"+|"+$/g,"");if(k.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",C),k.setAttribute("target","_blank"),p.tooltip){let S=p.tooltip.replace(/^"+|"+$/g,"");k.setAttribute("title",S)}T.replaceChild(k,b),k.appendChild(b),W.info("\u{1F517} Wrapped node in <a> tag for:",g,p.url)})}catch(f){W.error("\u274C Error injecting clickable links:",f)}St.insertTitle(u,"statediagramTitleText",s?.titleTopMargin??25,i.db.getDiagramTitle()),os(u,d,Gm,s?.useMaxWidth??!0)},"draw"),H0e={getClasses:vet,draw:_et,getDir:UP}});var Yn,K0e,X0e,F_,gs,V_=v(()=>{"use strict";bt();nt();Et();dr();zr();U0e();HP();P_();Yn={START_NODE:"[*]",START_TYPE:"start",END_NODE:"[*]",END_TYPE:"end",COLOR_KEYWORD:"color",FILL_KEYWORD:"fill",BG_FILL:"bgFill",STYLECLASS_SEP:","},K0e=a(()=>new Map,"newClassesList"),X0e=a(()=>({relations:[],states:new Map,documents:{}}),"newDoc"),F_=a(e=>JSON.parse(JSON.stringify(e)),"clone"),gs=class{constructor(t){this.version=t;this.nodes=[];this.edges=[];this.rootDoc=[];this.classes=K0e();this.documents={root:X0e()};this.currentDocument=this.documents.root;this.startEndCount=0;this.dividerCnt=0;this.links=new Map;this.getAccTitle=Qt;this.setAccTitle=Yt;this.getAccDescription=Jt;this.setAccDescription=Zt;this.setDiagramTitle=ir;this.getDiagramTitle=er;this.clear(),this.setRootDoc=this.setRootDoc.bind(this),this.getDividerId=this.getDividerId.bind(this),this.setDirection=this.setDirection.bind(this),this.trimColon=this.trimColon.bind(this)}static{a(this,"StateDB")}static{this.relationType={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3}}extract(t){this.clear(!0);for(let n of Array.isArray(t)?t:t.doc)switch(n.stmt){case Bu:this.addState(n.id.trim(),n.type,n.doc,n.description,n.note);break;case xx:this.addRelation(n.state1,n.state2,n.description);break;case R0e:this.addStyleClass(n.id.trim(),n.classes);break;case L0e:this.handleStyleDef(n);break;case D0e:this.setCssClass(n.id.trim(),n.styleClass);break;case"click":this.addLink(n.id,n.url,n.tooltip);break}let r=this.getStates(),i=J();j0e(),Wm(void 0,this.getRootDocV2(),r,this.nodes,this.edges,!0,i.look,this.classes);for(let n of this.nodes)if(Array.isArray(n.label)){if(n.description=n.label.slice(1),n.isGroup&&n.description.length>0)throw new Error(`Group nodes can only have label. Remove the additional description for node [${n.id}]`);n.label=n.label[0]}}handleStyleDef(t){let r=t.id.trim().split(","),i=t.styleClass.split(",");for(let n of r){let s=this.getState(n);if(!s){let o=n.trim();this.addState(o),s=this.getState(o)}s&&(s.styles=i.map(o=>o.replace(/;/g,"")?.trim()))}}setRootDoc(t){W.info("Setting root doc",t),this.rootDoc=t,this.version===1?this.extract(t):this.extract(this.getRootDocV2())}docTranslator(t,r,i){if(r.stmt===xx){this.docTranslator(t,r.state1,!0),this.docTranslator(t,r.state2,!1);return}if(r.stmt===Bu&&(r.id===Yn.START_NODE?(r.id=t.id+(i?"_start":"_end"),r.start=i):r.id=r.id.trim()),r.stmt!==uf&&r.stmt!==Bu||!r.doc)return;let n=[],s=[];for(let o of r.doc)if(o.type===I_){let l=F_(o);l.doc=F_(s),n.push(l),s=[]}else s.push(o);if(n.length>0&&s.length>0){let o={stmt:Bu,id:g5(),type:"divider",doc:F_(s)};n.push(F_(o)),r.doc=n}r.doc.forEach(o=>this.docTranslator(r,o,!0))}getRootDocV2(){return this.docTranslator({id:uf,stmt:uf},{id:uf,stmt:uf,doc:this.rootDoc},!0),{id:uf,doc:this.rootDoc}}addState(t,r=hf,i=void 0,n=void 0,s=void 0,o=void 0,l=void 0,u=void 0){let h=t?.trim();if(!this.currentDocument.states.has(h))W.info("Adding state ",h,n),this.currentDocument.states.set(h,{stmt:Bu,id:h,descriptions:[],type:r,doc:i,note:s,classes:[],styles:[],textStyles:[]});else{let d=this.currentDocument.states.get(h);if(!d)throw new Error(`State not found: ${h}`);d.doc||(d.doc=i),d.type||(d.type=r)}if(n&&(W.info("Setting state description",h,n),(Array.isArray(n)?n:[n]).forEach(f=>this.addDescription(h,f.trim()))),s){let d=this.currentDocument.states.get(h);if(!d)throw new Error(`State not found: ${h}`);d.note=s,d.note.text=He.sanitizeText(d.note.text,J())}o&&(W.info("Setting state classes",h,o),(Array.isArray(o)?o:[o]).forEach(f=>this.setCssClass(h,f.trim()))),l&&(W.info("Setting state styles",h,l),(Array.isArray(l)?l:[l]).forEach(f=>this.setStyle(h,f.trim()))),u&&(W.info("Setting state styles",h,l),(Array.isArray(u)?u:[u]).forEach(f=>this.setTextStyle(h,f.trim())))}clear(t){this.nodes=[],this.edges=[],this.documents={root:X0e()},this.currentDocument=this.documents.root,this.startEndCount=0,this.classes=K0e(),t||(this.links=new Map,Ht())}getState(t){return this.currentDocument.states.get(t)}getStates(){return this.currentDocument.states}logDocuments(){W.info("Documents = ",this.documents)}getRelations(){return this.currentDocument.relations}addLink(t,r,i){this.links.set(t,{url:r,tooltip:i}),W.warn("Adding link",t,r,i)}getLinks(){return this.links}startIdIfNeeded(t=""){return t===Yn.START_NODE?(this.startEndCount++,`${Yn.START_TYPE}${this.startEndCount}`):t}startTypeIfNeeded(t="",r=hf){return t===Yn.START_NODE?Yn.START_TYPE:r}endIdIfNeeded(t=""){return t===Yn.END_NODE?(this.startEndCount++,`${Yn.END_TYPE}${this.startEndCount}`):t}endTypeIfNeeded(t="",r=hf){return t===Yn.END_NODE?Yn.END_TYPE:r}addRelationObjs(t,r,i=""){let n=this.startIdIfNeeded(t.id.trim()),s=this.startTypeIfNeeded(t.id.trim(),t.type),o=this.startIdIfNeeded(r.id.trim()),l=this.startTypeIfNeeded(r.id.trim(),r.type);this.addState(n,s,t.doc,t.description,t.note,t.classes,t.styles,t.textStyles),this.addState(o,l,r.doc,r.description,r.note,r.classes,r.styles,r.textStyles),this.currentDocument.relations.push({id1:n,id2:o,relationTitle:He.sanitizeText(i,J())})}addRelation(t,r,i){if(typeof t=="object"&&typeof r=="object")this.addRelationObjs(t,r,i);else if(typeof t=="string"&&typeof r=="string"){let n=this.startIdIfNeeded(t.trim()),s=this.startTypeIfNeeded(t),o=this.endIdIfNeeded(r.trim()),l=this.endTypeIfNeeded(r);this.addState(n,s),this.addState(o,l),this.currentDocument.relations.push({id1:n,id2:o,relationTitle:i?He.sanitizeText(i,J()):void 0})}}addDescription(t,r){let i=this.currentDocument.states.get(t),n=r.startsWith(":")?r.replace(":","").trim():r;i?.descriptions?.push(He.sanitizeText(n,J()))}cleanupLabel(t){return t.startsWith(":")?t.slice(2).trim():t.trim()}getDividerId(){return this.dividerCnt++,`divider-id-${this.dividerCnt}`}addStyleClass(t,r=""){this.classes.has(t)||this.classes.set(t,{id:t,styles:[],textStyles:[]});let i=this.classes.get(t);r&&i&&r.split(Yn.STYLECLASS_SEP).forEach(n=>{let s=n.replace(/([^;]*);/,"$1").trim();if(RegExp(Yn.COLOR_KEYWORD).exec(n)){let l=s.replace(Yn.FILL_KEYWORD,Yn.BG_FILL).replace(Yn.COLOR_KEYWORD,Yn.FILL_KEYWORD);i.textStyles.push(l)}i.styles.push(s)})}getClasses(){return this.classes}setCssClass(t,r){t.split(",").forEach(i=>{let n=this.getState(i);if(!n){let s=i.trim();this.addState(s),n=this.getState(s)}n?.classes?.push(r)})}setStyle(t,r){this.getState(t)?.styles?.push(r)}setTextStyle(t,r){this.getState(t)?.textStyles?.push(r)}getDirectionStatement(){return this.rootDoc.find(t=>t.stmt==="dir")}getDirection(){return this.getDirectionStatement()?.value??"TB"}setDirection(t){let r=this.getDirectionStatement();r?r.value=t:this.rootDoc.unshift({stmt:"dir",value:t})}trimColon(t){return t.startsWith(":")?t.slice(1).trim():t.trim()}getData(){let t=J();return{nodes:this.nodes,edges:this.edges,other:{},config:t,direction:UP(this.getRootDocV2())}}getConfig(){return J().state}}});var Eet,G_,YP=v(()=>{"use strict";Eet=a(e=>`
defs [id$="-barbEnd"] {
fill: ${e.transitionColor};
stroke: ${e.transitionColor};
}
g.stateGroup text {
fill: ${e.nodeBorder};
stroke: none;
font-size: 10px;
}
g.stateGroup text {
fill: ${e.textColor};
stroke: none;
font-size: 10px;
}
g.stateGroup .state-title {
font-weight: bolder;
fill: ${e.stateLabelColor};
}
g.stateGroup rect {
fill: ${e.mainBkg};
stroke: ${e.nodeBorder};
}
g.stateGroup line {
stroke: ${e.lineColor};
stroke-width: ${e.strokeWidth||1};
}
.transition {
stroke: ${e.transitionColor};
stroke-width: ${e.strokeWidth||1};
fill: none;
}
.stateGroup .composit {
fill: ${e.background};
border-bottom: 1px
}
.stateGroup .alt-composit {
fill: #e0e0e0;
border-bottom: 1px
}
.state-note {
stroke: ${e.noteBorderColor};
fill: ${e.noteBkgColor};
text {
fill: ${e.noteTextColor};
stroke: none;
font-size: 10px;
}
}
.stateLabel .box {
stroke: none;
stroke-width: 0;
fill: ${e.mainBkg};
opacity: 0.5;
}
.edgeLabel .label rect {
fill: ${e.labelBackgroundColor};
opacity: 0.5;
}
.edgeLabel {
background-color: ${e.edgeLabelBackground};
p {
background-color: ${e.edgeLabelBackground};
}
rect {
opacity: 0.5;
background-color: ${e.edgeLabelBackground};
fill: ${e.edgeLabelBackground};
}
text-align: center;
}
.edgeLabel .label text {
fill: ${e.transitionLabelColor||e.tertiaryTextColor};
}
.label div .edgeLabel {
color: ${e.transitionLabelColor||e.tertiaryTextColor};
}
.stateLabel text {
fill: ${e.stateLabelColor};
font-size: 10px;
font-weight: bold;
}
.node circle.state-start {
fill: ${e.specialStateColor};
stroke: ${e.specialStateColor};
}
.node .fork-join {
fill: ${e.specialStateColor};
stroke: ${e.specialStateColor};
}
.node circle.state-end {
fill: ${e.innerEndBackground};
stroke: ${e.background};
stroke-width: 1.5
}
.end-state-inner {
fill: ${e.compositeBackground||e.background};
// stroke: ${e.background};
stroke-width: 1.5
}
.node rect {
fill: ${e.stateBkg||e.mainBkg};
stroke: ${e.stateBorder||e.nodeBorder};
stroke-width: ${e.strokeWidth||1}px;
}
.node polygon {
fill: ${e.mainBkg};
stroke: ${e.stateBorder||e.nodeBorder};;
stroke-width: ${e.strokeWidth||1}px;
}
[id$="-barbEnd"] {
fill: ${e.lineColor};
}
.statediagram-cluster rect {
fill: ${e.compositeTitleBackground};
stroke: ${e.stateBorder||e.nodeBorder};
stroke-width: ${e.strokeWidth||1}px;
}
.cluster-label, .nodeLabel {
color: ${e.stateLabelColor};
// line-height: 1;
}
.statediagram-cluster rect.outer {
rx: 5px;
ry: 5px;
}
.statediagram-state .divider {
stroke: ${e.stateBorder||e.nodeBorder};
}
.statediagram-state .title-state {
rx: 5px;
ry: 5px;
}
.statediagram-cluster.statediagram-cluster .inner {
fill: ${e.compositeBackground||e.background};
}
.statediagram-cluster.statediagram-cluster-alt .inner {
fill: ${e.altBackground?e.altBackground:"#efefef"};
}
.statediagram-cluster .inner {
rx:0;
ry:0;
}
.statediagram-state rect.basic {
rx: 5px;
ry: 5px;
}
.statediagram-state rect.divider {
stroke-dasharray: 10,10;
fill: ${e.altBackground?e.altBackground:"#efefef"};
}
.note-edge {
stroke-dasharray: 5;
}
.statediagram-note rect {
fill: ${e.noteBkgColor};
stroke: ${e.noteBorderColor};
stroke-width: 1px;
rx: 0;
ry: 0;
}
.statediagram-note rect {
fill: ${e.noteBkgColor};
stroke: ${e.noteBorderColor};
stroke-width: 1px;
rx: 0;
ry: 0;
}
.statediagram-note text {
fill: ${e.noteTextColor};
}
.statediagram-note .nodeLabel {
color: ${e.noteTextColor};
}
.statediagram .edgeLabel {
color: red; // ${e.noteTextColor};
}
[id$="-dependencyStart"], [id$="-dependencyEnd"] {
fill: ${e.lineColor};
stroke: ${e.lineColor};
stroke-width: ${e.strokeWidth||1};
}
.statediagramTitleText {
text-anchor: middle;
font-size: 18px;
fill: ${e.textColor};
}
[data-look="neo"].statediagram-cluster rect {
fill: ${e.mainBkg};
stroke: ${e.useGradient?"url("+e.svgId+"-gradient)":e.stateBorder||e.nodeBorder};
stroke-width: ${e.strokeWidth??1};
}
[data-look="neo"].statediagram-cluster rect.outer {
rx: ${e.radius}px;
ry: ${e.radius}px;
filter: ${e.dropShadow?e.dropShadow.replace("url(#drop-shadow)",`url(${e.svgId}-drop-shadow)`):"none"}
}
`,"getStyles"),G_=Eet});var Aet,Ret,Let,Det,Z0e,Iet,Net,Met,Oet,KP,Q0e,J0e,e1e=v(()=>{"use strict";sr();V_();Et();dr();bt();nt();Aet=a(e=>e.append("circle").attr("class","start-state").attr("r",J().state.sizeUnit).attr("cx",J().state.padding+J().state.sizeUnit).attr("cy",J().state.padding+J().state.sizeUnit),"drawStartState"),Ret=a(e=>e.append("line").style("stroke","grey").style("stroke-dasharray","3").attr("x1",J().state.textHeight).attr("class","divider").attr("x2",J().state.textHeight*2).attr("y1",0).attr("y2",0),"drawDivider"),Let=a((e,t)=>{let r=e.append("text").attr("x",2*J().state.padding).attr("y",J().state.textHeight+2*J().state.padding).attr("font-size",J().state.fontSize).attr("class","state-title").text(t.id),i=r.node().getBBox();return e.insert("rect",":first-child").attr("x",J().state.padding).attr("y",J().state.padding).attr("width",i.width+2*J().state.padding).attr("height",i.height+2*J().state.padding).attr("rx",J().state.radius),r},"drawSimpleState"),Det=a((e,t)=>{let r=a(function(p,m,g){let x=p.append("tspan").attr("x",2*J().state.padding).text(m);g||x.attr("dy",J().state.textHeight)},"addTspan"),n=e.append("text").attr("x",2*J().state.padding).attr("y",J().state.textHeight+1.3*J().state.padding).attr("font-size",J().state.fontSize).attr("class","state-title").text(t.descriptions[0]).node().getBBox(),s=n.height,o=e.append("text").attr("x",J().state.padding).attr("y",s+J().state.padding*.4+J().state.dividerMargin+J().state.textHeight).attr("class","state-description"),l=!0,u=!0;t.descriptions.forEach(function(p){l||(r(o,p,u),u=!1),l=!1});let h=e.append("line").attr("x1",J().state.padding).attr("y1",J().state.padding+s+J().state.dividerMargin/2).attr("y2",J().state.padding+s+J().state.dividerMargin/2).attr("class","descr-divider"),d=o.node().getBBox(),f=Math.max(d.width,n.width);return h.attr("x2",f+3*J().state.padding),e.insert("rect",":first-child").attr("x",J().state.padding).attr("y",J().state.padding).attr("width",f+2*J().state.padding).attr("height",d.height+s+2*J().state.padding).attr("rx",J().state.radius),e},"drawDescrState"),Z0e=a((e,t,r)=>{let i=J().state.padding,n=2*J().state.padding,s=e.node().getBBox(),o=s.width,l=s.x,u=e.append("text").attr("x",0).attr("y",J().state.titleShift).attr("font-size",J().state.fontSize).attr("class","state-title").text(t.id),d=u.node().getBBox().width+n,f=Math.max(d,o);f===o&&(f=f+n);let p,m=e.node().getBBox();t.doc,p=l-i,d>o&&(p=(o-f)/2+i),Math.abs(l-m.x)<i&&d>o&&(p=l-(d-o)/2);let g=1-J().state.textHeight;return e.insert("rect",":first-child").attr("x",p).attr("y",g).attr("class",r?"alt-composit":"composit").attr("width",f).attr("height",m.height+J().state.textHeight+J().state.titleShift+1).attr("rx","0"),u.attr("x",p+i),d<=o&&u.attr("x",l+(f-n)/2-d/2+i),e.insert("rect",":first-child").attr("x",p).attr("y",J().state.titleShift-J().state.textHeight-J().state.padding).attr("width",f).attr("height",J().state.textHeight*3).attr("rx",J().state.radius),e.insert("rect",":first-child").attr("x",p).attr("y",J().state.titleShift-J().state.textHeight-J().state.padding).attr("width",f).attr("height",m.height+3+2*J().state.textHeight).attr("rx",J().state.radius),e},"addTitleAndBox"),Iet=a(e=>(e.append("circle").attr("class","end-state-outer").attr("r",J().state.sizeUnit+J().state.miniPadding).attr("cx",J().state.padding+J().state.sizeUnit+J().state.miniPadding).attr("cy",J().state.padding+J().state.sizeUnit+J().state.miniPadding),e.append("circle").attr("class","end-state-inner").attr("r",J().state.sizeUnit).attr("cx",J().state.padding+J().state.sizeUnit+2).attr("cy",J().state.padding+J().state.sizeUnit+2)),"drawEndState"),Net=a((e,t)=>{let r=J().state.forkWidth,i=J().state.forkHeight;if(t.parentId){let n=r;r=i,i=n}return e.append("rect").style("stroke","black").style("fill","black").attr("width",r).attr("height",i).attr("x",J().state.padding).attr("y",J().state.padding)},"drawForkJoinState"),Met=a((e,t,r,i)=>{let n=0,s=i.append("text");s.style("text-anchor","start"),s.attr("class","noteText");let o=e.replace(/\r\n/g,"<br/>");o=o.replace(/\n/g,"<br/>");let l=o.split(He.lineBreakRegex),u=1.25*J().state.noteMargin;for(let h of l){let d=h.trim();if(d.length>0){let f=s.append("tspan");if(f.text(d),u===0){let p=f.node().getBBox();u+=p.height}n+=u,f.attr("x",t+J().state.noteMargin),f.attr("y",r+n+1.25*J().state.noteMargin)}}return{textWidth:s.node().getBBox().width,textHeight:n}},"_drawLongText"),Oet=a((e,t)=>{t.attr("class","state-note");let r=t.append("rect").attr("x",0).attr("y",J().state.padding),i=t.append("g"),{textWidth:n,textHeight:s}=Met(e,0,0,i);return r.attr("height",s+2*J().state.noteMargin),r.attr("width",n+J().state.noteMargin*2),r},"drawNote"),KP=a(function(e,t){let r=t.id,i={id:r,label:t.id,width:0,height:0},n=e.append("g").attr("id",r).attr("class","stateGroup");t.type==="start"&&Aet(n),t.type==="end"&&Iet(n),(t.type==="fork"||t.type==="join")&&Net(n,t),t.type==="note"&&Oet(t.note.text,n),t.type==="divider"&&Ret(n),t.type==="default"&&t.descriptions.length===0&&Let(n,t),t.type==="default"&&t.descriptions.length>0&&Det(n,t);let s=n.node().getBBox();return i.width=s.width+2*J().state.padding,i.height=s.height+2*J().state.padding,i},"drawState"),Q0e=0,J0e=a(function(e,t,r){let i=a(function(u){switch(u){case gs.relationType.AGGREGATION:return"aggregation";case gs.relationType.EXTENSION:return"extension";case gs.relationType.COMPOSITION:return"composition";case gs.relationType.DEPENDENCY:return"dependency"}},"getRelationType");t.points=t.points.filter(u=>!Number.isNaN(u.y));let n=t.points,s=Os().x(function(u){return u.x}).y(function(u){return u.y}).curve(Ps),o=e.append("path").attr("d",s(n)).attr("id","edge"+Q0e).attr("class","transition"),l="";if(J().state.arrowMarkerAbsolute&&(l=Ku(!0)),o.attr("marker-end","url("+l+"#"+i(gs.relationType.DEPENDENCY)+"End)"),r.title!==void 0){let u=e.append("g").attr("class","stateLabel"),{x:h,y:d}=St.calcLabelPosition(t.points),f=He.getRows(r.title),p=0,m=[],g=0,x=0;for(let k=0;k<=f.length;k++){let C=u.append("text").attr("text-anchor","middle").text(f[k]).attr("x",h).attr("y",d+p),S=C.node().getBBox();g=Math.max(g,S.width),x=Math.min(x,S.x),W.info(S.x,h,d+p),p===0&&(p=C.node().getBBox().height,W.info("Title height",p,d)),m.push(C)}let b=p*f.length;if(f.length>1){let k=(f.length-1)*p*.5;m.forEach((C,S)=>C.attr("y",d+S*p-k)),b=p*f.length}let T=u.node().getBBox();u.insert("rect",":first-child").attr("class","box").attr("x",h-g/2-J().state.padding/2).attr("y",d-b/2-J().state.padding/2-3.5).attr("width",g+J().state.padding).attr("height",b+J().state.padding),W.info(T)}Q0e++},"drawEdge")});var Fa,XP,Pet,Bet,$et,Fet,t1e,r1e,i1e=v(()=>{"use strict";sr();JL();as();nt();dr();e1e();bt();Xr();XP={},Pet=a(function(){},"setConf"),Bet=a(function(e){e.append("defs").append("marker").attr("id","dependencyEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},"insertMarkers"),$et=a(function(e,t,r,i){Fa=J().state;let n=J().securityLevel,s;n==="sandbox"&&(s=Se("#i"+t));let o=n==="sandbox"?Se(s.nodes()[0].contentDocument.body):Se("body"),l=n==="sandbox"?s.nodes()[0].contentDocument:document;W.debug("Rendering diagram "+e);let u=o.select(`[id='${t}']`);Bet(u);let h=i.db.getRootDoc(),d=u.append("g").attr("id",t+"-root");t1e(h,d,void 0,!1,o,l,i);let f=Fa.padding,p=u.node().getBBox(),m=p.width+f*2,g=p.height+f*2,x=m*1.75;fr(u,g,x,Fa.useMaxWidth),u.attr("viewBox",`${p.x-Fa.padding} ${p.y-Fa.padding} `+m+" "+g)},"draw"),Fet=a(e=>e?e.length*Fa.fontSizeFactor:1,"getLabelWidth"),t1e=a((e,t,r,i,n,s,o)=>{let l=new Dr({compound:!0,multigraph:!0}),u,h=!0;for(u=0;u<e.length;u++)if(e[u].stmt==="relation"){h=!1;break}r?l.setGraph({rankdir:"LR",multigraph:!0,compound:!0,ranker:"tight-tree",ranksep:h?1:Fa.edgeLengthFactor,nodeSep:h?1:50,isMultiGraph:!0}):l.setGraph({rankdir:"TB",multigraph:!0,compound:!0,ranksep:h?1:Fa.edgeLengthFactor,nodeSep:h?1:50,ranker:"tight-tree",isMultiGraph:!0}),l.setDefaultEdgeLabel(function(){return{}});let d=o.db.getStates(),f=o.db.getRelations(),p=Object.keys(d),m=!0;for(let k of p){let C=d[k];r&&(C.parentId=r);let S;if(C.doc){let w=t.append("g").attr("id",C.id).attr("class","stateGroup");if(S=t1e(C.doc,w,C.id,!i,n,s,o),m){w=Z0e(w,C,i);let _=w.node().getBBox();S.width=_.width,S.height=_.height+Fa.padding/2,XP[C.id]={y:Fa.compositTitleSize}}else{let _=w.node().getBBox();S.width=_.width,S.height=_.height}}else S=KP(t,C,l);if(C.note){let w={descriptions:[],id:C.id+"-note",note:C.note,type:"note"},_=KP(t,w,l);C.note.position==="left of"?(l.setNode(S.id+"-note",_),l.setNode(S.id,S)):(l.setNode(S.id,S),l.setNode(S.id+"-note",_)),l.setParent(S.id,S.id+"-group"),l.setParent(S.id+"-note",S.id+"-group")}else l.setNode(S.id,S)}W.debug("Count=",l.nodeCount(),l);let g=0;f.forEach(function(k){g++,W.debug("Setting edge",k),l.setEdge(k.id1,k.id2,{relation:k,width:Fet(k.title),height:Fa.labelHeight*He.getRows(k.title).length,labelpos:"c"},"id"+g)}),P0(l),W.debug("Graph after layout",l.nodes());let x=t.node();l.nodes().forEach(function(k){k!==void 0&&l.node(k)!==void 0?(W.warn("Node "+k+": "+JSON.stringify(l.node(k))),n.select("#"+x.id+" #"+k).attr("transform","translate("+(l.node(k).x-l.node(k).width/2)+","+(l.node(k).y+(XP[k]?XP[k].y:0)-l.node(k).height/2)+" )"),n.select("#"+x.id+" #"+k).attr("data-x-shift",l.node(k).x-l.node(k).width/2),s.querySelectorAll("#"+x.id+" #"+k+" .divider").forEach(S=>{let w=S.parentElement,_=0,L=0;w&&(w.parentElement&&(_=w.parentElement.getBBox().width),L=parseInt(w.getAttribute("data-x-shift"),10),Number.isNaN(L)&&(L=0)),S.setAttribute("x1",0-L+8),S.setAttribute("x2",_-L-8)})):W.debug("No Node "+k+": "+JSON.stringify(l.node(k)))});let b=x.getBBox();l.edges().forEach(function(k){k!==void 0&&l.edge(k)!==void 0&&(W.debug("Edge "+k.v+" -> "+k.w+": "+JSON.stringify(l.edge(k))),J0e(t,l.edge(k),l.edge(k).relation))}),b=x.getBBox();let T={id:r||"root",label:r||"root",width:0,height:0};return T.width=b.width+2*Fa.padding,T.height=b.height+2*Fa.padding,W.debug("Doc rendered",T,l),T},"renderDoc"),r1e={setConf:Pet,draw:$et}});var n1e={};tr(n1e,{diagram:()=>Vet});var Vet,a1e=v(()=>{"use strict";NP();V_();YP();i1e();Vet={parser:D_,get db(){return new gs(1)},renderer:r1e,styles:G_,init:a(e=>{e.state||(e.state={}),e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute},"init")}});var l1e={};tr(l1e,{diagram:()=>qet});var qet,c1e=v(()=>{"use strict";NP();V_();YP();HP();qet={parser:D_,get db(){return new gs(2)},renderer:H0e,styles:G_,init:a(e=>{e.state||(e.state={}),e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute},"init")}});var QP,d1e,f1e=v(()=>{"use strict";QP=(function(){var e=a(function(f,p,m,g){for(m=m||{},g=f.length;g--;m[f[g]]=p);return m},"o"),t=[6,8,10,11,12,14,16,17,18],r=[1,9],i=[1,10],n=[1,11],s=[1,12],o=[1,13],l=[1,14],u={trace:a(function(){},"trace"),yy:{},symbols_:{error:2,start:3,journey:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,taskName:18,taskData:19,$accept:0,$end:1},terminals_:{2:"error",4:"journey",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",18:"taskName",19:"taskData"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,2]],performAction:a(function(p,m,g,x,b,T,k){var C=T.length-1;switch(b){case 1:return T[C-1];case 2:this.$=[];break;case 3:T[C-1].push(T[C]),this.$=T[C-1];break;case 4:case 5:this.$=T[C];break;case 6:case 7:this.$=[];break;case 8:x.setDiagramTitle(T[C].substr(6)),this.$=T[C].substr(6);break;case 9:this.$=T[C].trim(),x.setAccTitle(this.$);break;case 10:case 11:this.$=T[C].trim(),x.setAccDescription(this.$);break;case 12:x.addSection(T[C].substr(8)),this.$=T[C].substr(8);break;case 13:x.addTask(T[C-1],T[C]),this.$="task";break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},e(t,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:r,12:i,14:n,16:s,17:o,18:l},e(t,[2,7],{1:[2,1]}),e(t,[2,3]),{9:15,11:r,12:i,14:n,16:s,17:o,18:l},e(t,[2,5]),e(t,[2,6]),e(t,[2,8]),{13:[1,16]},{15:[1,17]},e(t,[2,11]),e(t,[2,12]),{19:[1,18]},e(t,[2,4]),e(t,[2,9]),e(t,[2,10]),e(t,[2,13])],defaultActions:{},parseError:a(function(p,m){if(m.recoverable)this.trace(p);else{var g=new Error(p);throw g.hash=m,g}},"parseError"),parse:a(function(p){var m=this,g=[0],x=[],b=[null],T=[],k=this.table,C="",S=0,w=0,_=0,L=2,I=1,B=T.slice.call(arguments,1),G=Object.create(this.lexer),P={yy:{}};for(var F in this.yy)Object.prototype.hasOwnProperty.call(this.yy,F)&&(P.yy[F]=this.yy[F]);G.setInput(p,P.yy),P.yy.lexer=G,P.yy.parser=this,typeof G.yylloc>"u"&&(G.yylloc={});var A=G.yylloc;T.push(A);var D=G.options&&G.options.ranges;typeof P.yy.parseError=="function"?this.parseError=P.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function R(le){g.length=g.length-2*le,b.length=b.length-le,T.length=T.length-le}a(R,"popStack");function N(){var le;return le=x.pop()||G.lex()||I,typeof le!="number"&&(le instanceof Array&&(x=le,le=x.pop()),le=m.symbols_[le]||le),le}a(N,"lex");for(var $,E,M,V,O,z,U={},K,j,ae,X;;){if(M=g[g.length-1],this.defaultActions[M]?V=this.defaultActions[M]:(($===null||typeof $>"u")&&($=N()),V=k[M]&&k[M][$]),typeof V>"u"||!V.length||!V[0]){var de="";X=[];for(K in k[M])this.terminals_[K]&&K>L&&X.push("'"+this.terminals_[K]+"'");G.showPosition?de="Parse error on line "+(S+1)+`:
`+G.showPosition()+`
Expecting `+X.join(", ")+", got '"+(this.terminals_[$]||$)+"'":de="Parse error on line "+(S+1)+": Unexpected "+($==I?"end of input":"'"+(this.terminals_[$]||$)+"'"),this.parseError(de,{text:G.match,token:this.terminals_[$]||$,line:G.yylineno,loc:A,expected:X})}if(V[0]instanceof Array&&V.length>1)throw new Error("Parse Error: multiple actions possible at state: "+M+", token: "+$);switch(V[0]){case 1:g.push($),b.push(G.yytext),T.push(G.yylloc),g.push(V[1]),$=null,E?($=E,E=null):(w=G.yyleng,C=G.yytext,S=G.yylineno,A=G.yylloc,_>0&&_--);break;case 2:if(j=this.productions_[V[1]][1],U.$=b[b.length-j],U._$={first_line:T[T.length-(j||1)].first_line,last_line:T[T.length-1].last_line,first_column:T[T.length-(j||1)].first_column,last_column:T[T.length-1].last_column},D&&(U._$.range=[T[T.length-(j||1)].range[0],T[T.length-1].range[1]]),z=this.performAction.apply(U,[C,w,S,P.yy,V[1],b,T].concat(B)),typeof z<"u")return z;j&&(g=g.slice(0,-1*j*2),b=b.slice(0,-1*j),T=T.slice(0,-1*j)),g.push(this.productions_[V[1]][0]),b.push(U.$),T.push(U._$),ae=k[g[g.length-2]][g[g.length-1]],g.push(ae);break;case 3:return!0}}return!0},"parse")},h=(function(){var f={EOF:1,parseError:a(function(m,g){if(this.yy.parser)this.yy.parser.parseError(m,g);else throw new Error(m)},"parseError"),setInput:a(function(p,m){return this.yy=m||this.yy||{},this._input=p,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:a(function(){var p=this._input[0];this.yytext+=p,this.yyleng++,this.offset++,this.match+=p,this.matched+=p;var m=p.match(/(?:\r\n?|\n).*/g);return m?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),p},"input"),unput:a(function(p){var m=p.length,g=p.split(/(?:\r\n?|\n)/g);this._input=p+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-m),this.offset-=m;var x=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),g.length-1&&(this.yylineno-=g.length-1);var b=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:g?(g.length===x.length?this.yylloc.first_column:0)+x[x.length-g.length].length-g[0].length:this.yylloc.first_column-m},this.options.ranges&&(this.yylloc.range=[b[0],b[0]+this.yyleng-m]),this.yyleng=this.yytext.length,this},"unput"),more:a(function(){return this._more=!0,this},"more"),reject:a(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:a(function(p){this.unput(this.match.slice(p))},"less"),pastInput:a(function(){var p=this.matched.substr(0,this.matched.length-this.match.length);return(p.length>20?"...":"")+p.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:a(function(){var p=this.match;return p.length<20&&(p+=this._input.substr(0,20-p.length)),(p.substr(0,20)+(p.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:a(function(){var p=this.pastInput(),m=new Array(p.length+1).join("-");return p+this.upcomingInput()+`
`+m+"^"},"showPosition"),test_match:a(function(p,m){var g,x,b;if(this.options.backtrack_lexer&&(b={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&&(b.yylloc.range=this.yylloc.range.slice(0))),x=p[0].match(/(?:\r\n?|\n).*/g),x&&(this.yylineno+=x.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:x?x[x.length-1].length-x[x.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+p[0].length},this.yytext+=p[0],this.match+=p[0],this.matches=p,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(p[0].length),this.matched+=p[0],g=this.performAction.call(this,this.yy,this,m,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),g)return g;if(this._backtrack){for(var T in b)this[T]=b[T];return!1}return!1},"test_match"),next:a(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var p,m,g,x;this._more||(this.yytext="",this.match="");for(var b=this._currentRules(),T=0;T<b.length;T++)if(g=this._input.match(this.rules[b[T]]),g&&(!m||g[0].length>m[0].length)){if(m=g,x=T,this.options.backtrack_lexer){if(p=this.test_match(g,b[T]),p!==!1)return p;if(this._backtrack){m=!1;continue}else return!1}else if(!this.options.flex)break}return m?(p=this.test_match(m,b[x]),p!==!1?p:!1):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:a(function(){var m=this.next();return m||this.lex()},"lex"),begin:a(function(m){this.conditionStack.push(m)},"begin"),popState:a(function(){var m=this.conditionStack.length-1;return m>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:a(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:a(function(m){return m=this.conditionStack.length-1-Math.abs(m||0),m>=0?this.conditionStack[m]:"INITIAL"},"topState"),pushState:a(function(m){this.begin(m)},"pushState"),stateStackSize:a(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:a(function(m,g,x,b){var T=b;switch(x){case 0:break;case 1:break;case 2:return 10;case 3:break;case 4:break;case 5:return 4;case 6:return 11;case 7:return this.begin("acc_title"),12;break;case 8:return this.popState(),"acc_title_value";break;case 9:return this.begin("acc_descr"),14;break;case 10:return this.popState(),"acc_descr_value";break;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}}};return f})();u.lexer=h;function d(){this.yy={}}return a(d,"Parser"),d.prototype=u,u.Parser=d,new d})();QP.parser=QP;d1e=QP});var zm,ZP,bx,Tx,Yet,Ket,Xet,Qet,Zet,Jet,ett,p1e,ttt,JP,m1e=v(()=>{"use strict";bt();zr();zm="",ZP=[],bx=[],Tx=[],Yet=a(function(){ZP.length=0,bx.length=0,zm="",Tx.length=0,Ht()},"clear"),Ket=a(function(e){zm=e,ZP.push(e)},"addSection"),Xet=a(function(){return ZP},"getSections"),Qet=a(function(){let e=p1e(),t=100,r=0;for(;!e&&r<t;)e=p1e(),r++;return bx.push(...Tx),bx},"getTasks"),Zet=a(function(){let e=[];return bx.forEach(r=>{r.people&&e.push(...r.people)}),[...new Set(e)].sort()},"updateActors"),Jet=a(function(e,t){let r=t.substr(1).split(":"),i=0,n=[];r.length===1?(i=Number(r[0]),n=[]):(i=Number(r[0]),n=r[1].split(","));let s=n.map(l=>l.trim()),o={section:zm,type:zm,people:s,task:e,score:i};Tx.push(o)},"addTask"),ett=a(function(e){let t={section:zm,type:zm,description:e,task:e,classes:[]};bx.push(t)},"addTaskOrg"),p1e=a(function(){let e=a(function(r){return Tx[r].processed},"compileTask"),t=!0;for(let[r,i]of Tx.entries())e(r),t=t&&i.processed;return t},"compileTasks"),ttt=a(function(){return Zet()},"getActors"),JP={getConfig:a(()=>J().journey,"getConfig"),clear:Yet,setDiagramTitle:ir,getDiagramTitle:er,setAccTitle:Yt,getAccTitle:Qt,setAccDescription:Zt,getAccDescription:Jt,addSection:Ket,getSections:Xet,getTasks:Qet,addTask:Jet,addTaskOrg:ett,getActors:ttt}});var rtt,g1e,y1e=v(()=>{"use strict";Gp();rtt=a(e=>`.label {
font-family: ${e.fontFamily};
color: ${e.textColor};
}
.mouth {
stroke: #666;
}
line {
stroke: ${e.textColor}
}
.legend {
fill: ${e.textColor};
font-family: ${e.fontFamily};
}
.label text {
fill: #333;
}
.label {
color: ${e.textColor}
}
.face {
${e.faceColor?`fill: ${e.faceColor}`:"fill: #FFF8DC"};
stroke: #999;
}
.node rect,
.node circle,
.node ellipse,
.node polygon,
.node path {
fill: ${e.mainBkg};
stroke: ${e.nodeBorder};
stroke-width: 1px;
}
.node .label {
text-align: center;
}
.node.clickable {
cursor: pointer;
}
.arrowheadPath {
fill: ${e.arrowheadColor};
}
.edgePath .path {
stroke: ${e.lineColor};
stroke-width: 1.5px;
}
.flowchart-link {
stroke: ${e.lineColor};
fill: none;
}
.edgeLabel {
background-color: ${e.edgeLabelBackground};
rect {
opacity: 0.5;
}
text-align: center;
}
.cluster rect {
}
.cluster text {
fill: ${e.titleColor};
}
div.mermaidTooltip {
position: absolute;
text-align: center;
max-width: 200px;
padding: 2px;
font-family: ${e.fontFamily};
font-size: 12px;
background: ${e.tertiaryColor};
border: 1px solid ${e.border2};
border-radius: 2px;
pointer-events: none;
z-index: 100;
}
.task-type-0, .section-type-0 {
${e.fillType0?`fill: ${e.fillType0}`:""};
}
.task-type-1, .section-type-1 {
${e.fillType0?`fill: ${e.fillType1}`:""};
}
.task-type-2, .section-type-2 {
${e.fillType0?`fill: ${e.fillType2}`:""};
}
.task-type-3, .section-type-3 {
${e.fillType0?`fill: ${e.fillType3}`:""};
}
.task-type-4, .section-type-4 {
${e.fillType0?`fill: ${e.fillType4}`:""};
}
.task-type-5, .section-type-5 {
${e.fillType0?`fill: ${e.fillType5}`:""};
}
.task-type-6, .section-type-6 {
${e.fillType0?`fill: ${e.fillType6}`:""};
}
.task-type-7, .section-type-7 {
${e.fillType0?`fill: ${e.fillType7}`:""};
}
.actor-0 {
${e.actor0?`fill: ${e.actor0}`:""};
}
.actor-1 {
${e.actor1?`fill: ${e.actor1}`:""};
}
.actor-2 {
${e.actor2?`fill: ${e.actor2}`:""};
}
.actor-3 {
${e.actor3?`fill: ${e.actor3}`:""};
}
.actor-4 {
${e.actor4?`fill: ${e.actor4}`:""};
}
.actor-5 {
${e.actor5?`fill: ${e.actor5}`:""};
}
${Po()}
`,"getStyles"),g1e=rtt});var tB,itt,x1e,b1e,ntt,att,eB,stt,ott,T1e,ltt,qm,k1e=v(()=>{"use strict";sr();Th();tB=a(function(e,t){return bh(e,t)},"drawRect"),itt=a(function(e,t){let i=e.append("circle").attr("cx",t.cx).attr("cy",t.cy).attr("class","face").attr("r",15).attr("stroke-width",2).attr("overflow","visible"),n=e.append("g");n.append("circle").attr("cx",t.cx-15/3).attr("cy",t.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),n.append("circle").attr("cx",t.cx+15/3).attr("cy",t.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666");function s(u){let h=Ms().startAngle(Math.PI/2).endAngle(3*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);u.append("path").attr("class","mouth").attr("d",h).attr("transform","translate("+t.cx+","+(t.cy+2)+")")}a(s,"smile");function o(u){let h=Ms().startAngle(3*Math.PI/2).endAngle(5*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);u.append("path").attr("class","mouth").attr("d",h).attr("transform","translate("+t.cx+","+(t.cy+7)+")")}a(o,"sad");function l(u){u.append("line").attr("class","mouth").attr("stroke",2).attr("x1",t.cx-5).attr("y1",t.cy+7).attr("x2",t.cx+5).attr("y2",t.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}return a(l,"ambivalent"),t.score>3?s(n):t.score<3?o(n):l(n),i},"drawFace"),x1e=a(function(e,t){let r=e.append("circle");return r.attr("cx",t.cx),r.attr("cy",t.cy),r.attr("class","actor-"+t.pos),r.attr("fill",t.fill),r.attr("stroke",t.stroke),r.attr("r",t.r),r.class!==void 0&&r.attr("class",r.class),t.title!==void 0&&r.append("title").text(t.title),r},"drawCircle"),b1e=a(function(e,t){return WW(e,t)},"drawText"),ntt=a(function(e,t){function r(n,s,o,l,u){return n+","+s+" "+(n+o)+","+s+" "+(n+o)+","+(s+l-u)+" "+(n+o-u*1.2)+","+(s+l)+" "+n+","+(s+l)}a(r,"genPoints");let i=e.append("polygon");i.attr("points",r(t.x,t.y,50,20,7)),i.attr("class","labelBox"),t.y=t.y+t.labelMargin,t.x=t.x+.5*t.labelMargin,b1e(e,t)},"drawLabel"),att=a(function(e,t,r){let i=e.append("g"),n=on();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,tB(i,n),T1e(r)(t.text,i,n.x,n.y,n.width,n.height,{class:"journey-section section-type-"+t.num},r,t.colour)},"drawSection"),eB=-1,stt=a(function(e,t,r,i){let n=t.x+r.width/2,s=e.append("g");eB++,s.append("line").attr("id",i+"-task"+eB).attr("x1",n).attr("y1",t.y).attr("x2",n).attr("y2",450).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),itt(s,{cx:n,cy:300+(5-t.score)*30,score:t.score});let l=on();l.x=t.x,l.y=t.y,l.fill=t.fill,l.width=r.width,l.height=r.height,l.class="task task-type-"+t.num,l.rx=3,l.ry=3,tB(s,l);let u=t.x+14;t.people.forEach(h=>{let d=t.actors[h].color,f={cx:u,cy:t.y,r:7,fill:d,stroke:"#000",title:h,pos:t.actors[h].position};x1e(s,f),u+=10}),T1e(r)(t.task,s,l.x,l.y,l.width,l.height,{class:"task"},r,t.colour)},"drawTask"),ott=a(function(e,t){k2(e,t)},"drawBackgroundRect"),T1e=(function(){function e(n,s,o,l,u,h,d,f){let p=s.append("text").attr("x",o+u/2).attr("y",l+h/2+5).style("font-color",f).style("text-anchor","middle").text(n);i(p,d)}a(e,"byText");function t(n,s,o,l,u,h,d,f,p){let{taskFontSize:m,taskFontFamily:g}=f,x=n.split(/<br\s*\/?>/gi);for(let b=0;b<x.length;b++){let T=b*m-m*(x.length-1)/2,k=s.append("text").attr("x",o+u/2).attr("y",l).attr("fill",p).style("text-anchor","middle").style("font-size",m).style("font-family",g);k.append("tspan").attr("x",o+u/2).attr("dy",T).text(x[b]),k.attr("y",l+h/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),i(k,d)}}a(t,"byTspan");function r(n,s,o,l,u,h,d,f){let p=s.append("switch"),g=p.append("foreignObject").attr("x",o).attr("y",l).attr("width",u).attr("height",h).attr("position","fixed").append("xhtml:div").style("display","table").style("height","100%").style("width","100%");g.append("div").attr("class","label").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(n),t(n,p,o,l,u,h,d,f),i(g,d)}a(r,"byFo");function i(n,s){for(let o in s)o in s&&n.attr(o,s[o])}return a(i,"_setTextAttrs"),function(n){return n.textPlacement==="fo"?r:n.textPlacement==="old"?e:t}})(),ltt=a(function(e,t){eB=-1,e.append("defs").append("marker").attr("id",t+"-arrowhead").attr("refX",5).attr("refY",2).attr("markerWidth",6).attr("markerHeight",4).attr("orient","auto").append("path").attr("d","M 0,0 V 4 L6,2 Z")},"initGraphics"),qm={drawRect:tB,drawCircle:x1e,drawSection:att,drawText:b1e,drawLabel:ntt,drawTask:stt,drawBackgroundRect:ott,initGraphics:ltt}});function utt(e){let t=J().journey,r=t.maxLabelWidth;W_=0;let i=60;Object.keys(sc).forEach(n=>{let s=sc[n].color,o={cx:20,cy:i,r:7,fill:s,stroke:"#000",pos:sc[n].position};qm.drawCircle(e,o);let l=e.append("text").attr("visibility","hidden").text(n),u=l.node().getBoundingClientRect().width;l.remove();let h=[];if(u<=r)h=[n];else{let d=n.split(" "),f="";l=e.append("text").attr("visibility","hidden"),d.forEach(p=>{let m=f?`${f} ${p}`:p;if(l.text(m),l.node().getBoundingClientRect().width>r){if(f&&h.push(f),f=p,l.text(p),l.node().getBoundingClientRect().width>r){let x="";for(let b of p)x+=b,l.text(x+"-"),l.node().getBoundingClientRect().width>r&&(h.push(x.slice(0,-1)+"-"),x=b);f=x}}else f=m}),f&&h.push(f),l.remove()}h.forEach((d,f)=>{let p={x:40,y:i+7+f*20,fill:"#666",text:d,textMargin:t.boxTextMargin??5},g=qm.drawText(e,p).node().getBoundingClientRect().width;g>W_&&g>t.leftMargin-g&&(W_=g)}),i+=Math.max(20,h.length*20)})}var ctt,sc,W_,ro,Fu,htt,ys,rB,C1e,dtt,iB,v1e=v(()=>{"use strict";sr();k1e();bt();Xr();ctt=a(function(e){Object.keys(e).forEach(function(r){ro[r]=e[r]})},"setConf"),sc={},W_=0;a(utt,"drawActorLegend");ro=J().journey,Fu=0,htt=a(function(e,t,r,i){let n=J(),s=n.journey.titleColor,o=n.journey.titleFontSize,l=n.journey.titleFontFamily,u=n.securityLevel,h;u==="sandbox"&&(h=Se("#i"+t));let d=u==="sandbox"?Se(h.nodes()[0].contentDocument.body):Se("body");ys.init();let f=d.select("#"+t);qm.initGraphics(f,t);let p=i.db.getTasks(),m=i.db.getDiagramTitle(),g=i.db.getActors();for(let S in sc)delete sc[S];let x=0;g.forEach(S=>{sc[S]={color:ro.actorColours[x%ro.actorColours.length],position:x},x++}),utt(f),Fu=ro.leftMargin+W_,ys.insert(0,0,Fu,Object.keys(sc).length*50),dtt(f,p,0,t);let b=ys.getBounds();m&&f.append("text").text(m).attr("x",Fu).attr("font-size",o).attr("font-weight","bold").attr("y",25).attr("fill",s).attr("font-family",l);let T=b.stopy-b.starty+2*ro.diagramMarginY,k=Fu+b.stopx+2*ro.diagramMarginX;fr(f,T,k,ro.useMaxWidth),f.append("line").attr("x1",Fu).attr("y1",ro.height*4).attr("x2",k-Fu-4).attr("y2",ro.height*4).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#"+t+"-arrowhead)");let C=m?70:0;f.attr("viewBox",`${b.startx} -25 ${k} ${T+C}`),f.attr("preserveAspectRatio","xMinYMin meet"),f.attr("height",T+C+25)},"draw"),ys={data:{startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},verticalPos:0,sequenceItems:[],init:a(function(){this.sequenceItems=[],this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},this.verticalPos=0},"init"),updateVal:a(function(e,t,r,i){e[t]===void 0?e[t]=r:e[t]=i(r,e[t])},"updateVal"),updateBounds:a(function(e,t,r,i){let n=J().journey,s=this,o=0;function l(u){return a(function(d){o++;let f=s.sequenceItems.length-o+1;s.updateVal(d,"starty",t-f*n.boxMargin,Math.min),s.updateVal(d,"stopy",i+f*n.boxMargin,Math.max),s.updateVal(ys.data,"startx",e-f*n.boxMargin,Math.min),s.updateVal(ys.data,"stopx",r+f*n.boxMargin,Math.max),u!=="activation"&&(s.updateVal(d,"startx",e-f*n.boxMargin,Math.min),s.updateVal(d,"stopx",r+f*n.boxMargin,Math.max),s.updateVal(ys.data,"starty",t-f*n.boxMargin,Math.min),s.updateVal(ys.data,"stopy",i+f*n.boxMargin,Math.max))},"updateItemBounds")}a(l,"updateFn"),this.sequenceItems.forEach(l())},"updateBounds"),insert:a(function(e,t,r,i){let n=Math.min(e,r),s=Math.max(e,r),o=Math.min(t,i),l=Math.max(t,i);this.updateVal(ys.data,"startx",n,Math.min),this.updateVal(ys.data,"starty",o,Math.min),this.updateVal(ys.data,"stopx",s,Math.max),this.updateVal(ys.data,"stopy",l,Math.max),this.updateBounds(n,o,s,l)},"insert"),bumpVerticalPos:a(function(e){this.verticalPos=this.verticalPos+e,this.data.stopy=this.verticalPos},"bumpVerticalPos"),getVerticalPos:a(function(){return this.verticalPos},"getVerticalPos"),getBounds:a(function(){return this.data},"getBounds")},rB=ro.sectionFills,C1e=ro.sectionColours,dtt=a(function(e,t,r,i){let n=J().journey,s="",o=n.height*2+n.diagramMarginY,l=r+o,u=0,h="#CCC",d="black",f=0;for(let[p,m]of t.entries()){if(s!==m.section){h=rB[u%rB.length],f=u%rB.length,d=C1e[u%C1e.length];let x=0,b=m.section;for(let k=p;k<t.length&&t[k].section==b;k++)x=x+1;let T={x:p*n.taskMargin+p*n.width+Fu,y:50,text:m.section,fill:h,num:f,colour:d,taskCount:x};qm.drawSection(e,T,n),s=m.section,u++}let g=m.people.reduce((x,b)=>(sc[b]&&(x[b]=sc[b]),x),{});m.x=p*n.taskMargin+p*n.width+Fu,m.y=l,m.width=n.diagramMarginX,m.height=n.diagramMarginY,m.colour=d,m.fill=h,m.num=f,m.actors=g,qm.drawTask(e,m,n,i),ys.insert(m.x,m.y,m.x+m.width+n.taskMargin,450)}},"drawTasks"),iB={setConf:ctt,draw:htt}});var S1e={};tr(S1e,{diagram:()=>ftt});var ftt,_1e=v(()=>{"use strict";f1e();m1e();y1e();v1e();ftt={parser:d1e,db:JP,renderer:iB,styles:g1e,init:a(e=>{iB.setConf(e.journey),JP.clear()},"init")}});var aB,L1e,D1e=v(()=>{"use strict";aB=(function(){var e=a(function(p,m,g,x){for(g=g||{},x=p.length;x--;g[p[x]]=m);return g},"o"),t=[6,11,13,14,15,17,19,20,23,24],r=[1,12],i=[1,13],n=[1,14],s=[1,15],o=[1,16],l=[1,19],u=[1,20],h={trace:a(function(){},"trace"),yy:{},symbols_:{error:2,start:3,timeline_header:4,document:5,EOF:6,timeline:7,timeline_lr:8,timeline_td:9,line:10,SPACE:11,statement:12,NEWLINE:13,title:14,acc_title:15,acc_title_value:16,acc_descr:17,acc_descr_value:18,acc_descr_multiline_value:19,section:20,period_statement:21,event_statement:22,period:23,event:24,$accept:0,$end:1},terminals_:{2:"error",6:"EOF",7:"timeline",8:"timeline_lr",9:"timeline_td",11:"SPACE",13:"NEWLINE",14:"title",15:"acc_title",16:"acc_title_value",17:"acc_descr",18:"acc_descr_value",19:"acc_descr_multiline_value",20:"section",23:"period",24:"event"},productions_:[0,[3,3],[4,1],[4,1],[4,1],[5,0],[5,2],[10,2],[10,1],[10,1],[10,1],[12,1],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[21,1],[22,1]],performAction:a(function(m,g,x,b,T,k,C){var S=k.length-1;switch(T){case 1:return k[S-1];case 3:b.setDirection("LR");break;case 4:b.setDirection("TD");break;case 5:this.$=[];break;case 6:k[S-1].push(k[S]),this.$=k[S-1];break;case 7:case 8:this.$=k[S];break;case 9:case 10:this.$=[];break;case 11:b.getCommonDb().setDiagramTitle(k[S].substr(6)),this.$=k[S].substr(6);break;case 12:this.$=k[S].trim(),b.getCommonDb().setAccTitle(this.$);break;case 13:case 14:this.$=k[S].trim(),b.getCommonDb().setAccDescription(this.$);break;case 15:b.addSection(k[S].substr(8)),this.$=k[S].substr(8);break;case 18:b.addTask(k[S],0,""),this.$=k[S];break;case 19:b.addEvent(k[S].substr(2)),this.$=k[S];break}},"anonymous"),table:[{3:1,4:2,7:[1,3],8:[1,4],9:[1,5]},{1:[3]},e(t,[2,5],{5:6}),e(t,[2,2]),e(t,[2,3]),e(t,[2,4]),{6:[1,7],10:8,11:[1,9],12:10,13:[1,11],14:r,15:i,17:n,19:s,20:o,21:17,22:18,23:l,24:u},e(t,[2,10],{1:[2,1]}),e(t,[2,6]),{12:21,14:r,15:i,17:n,19:s,20:o,21:17,22:18,23:l,24:u},e(t,[2,8]),e(t,[2,9]),e(t,[2,11]),{16:[1,22]},{18:[1,23]},e(t,[2,14]),e(t,[2,15]),e(t,[2,16]),e(t,[2,17]),e(t,[2,18]),e(t,[2,19]),e(t,[2,7]),e(t,[2,12]),e(t,[2,13])],defaultActions:{},parseError:a(function(m,g){if(g.recoverable)this.trace(m);else{var x=new Error(m);throw x.hash=g,x}},"parseError"),parse:a(function(m){var g=this,x=[0],b=[],T=[null],k=[],C=this.table,S="",w=0,_=0,L=0,I=2,B=1,G=k.slice.call(arguments,1),P=Object.create(this.lexer),F={yy:{}};for(var A in this.yy)Object.prototype.hasOwnProperty.call(this.yy,A)&&(F.yy[A]=this.yy[A]);P.setInput(m,F.yy),F.yy.lexer=P,F.yy.parser=this,typeof P.yylloc>"u"&&(P.yylloc={});var D=P.yylloc;k.push(D);var R=P.options&&P.options.ranges;typeof F.yy.parseError=="function"?this.parseError=F.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function N(ge){x.length=x.length-2*ge,T.length=T.length-ge,k.length=k.length-ge}a(N,"popStack");function $(){var ge;return ge=b.pop()||P.lex()||B,typeof ge!="number"&&(ge instanceof Array&&(b=ge,ge=b.pop()),ge=g.symbols_[ge]||ge),ge}a($,"lex");for(var E,M,V,O,z,U,K={},j,ae,X,de;;){if(V=x[x.length-1],this.defaultActions[V]?O=this.defaultActions[V]:((E===null||typeof E>"u")&&(E=$()),O=C[V]&&C[V][E]),typeof O>"u"||!O.length||!O[0]){var le="";de=[];for(j in C[V])this.terminals_[j]&&j>I&&de.push("'"+this.terminals_[j]+"'");P.showPosition?le="Parse error on line "+(w+1)+`:
`+P.showPosition()+`
Expecting `+de.join(", ")+", got '"+(this.terminals_[E]||E)+"'":le="Parse error on line "+(w+1)+": Unexpected "+(E==B?"end of input":"'"+(this.terminals_[E]||E)+"'"),this.parseError(le,{text:P.match,token:this.terminals_[E]||E,line:P.yylineno,loc:D,expected:de})}if(O[0]instanceof Array&&O.length>1)throw new Error("Parse Error: multiple actions possible at state: "+V+", token: "+E);switch(O[0]){case 1:x.push(E),T.push(P.yytext),k.push(P.yylloc),x.push(O[1]),E=null,M?(E=M,M=null):(_=P.yyleng,S=P.yytext,w=P.yylineno,D=P.yylloc,L>0&&L--);break;case 2:if(ae=this.productions_[O[1]][1],K.$=T[T.length-ae],K._$={first_line:k[k.length-(ae||1)].first_line,last_line:k[k.length-1].last_line,first_column:k[k.length-(ae||1)].first_column,last_column:k[k.length-1].last_column},R&&(K._$.range=[k[k.length-(ae||1)].range[0],k[k.length-1].range[1]]),U=this.performAction.apply(K,[S,_,w,F.yy,O[1],T,k].concat(G)),typeof U<"u")return U;ae&&(x=x.slice(0,-1*ae*2),T=T.slice(0,-1*ae),k=k.slice(0,-1*ae)),x.push(this.productions_[O[1]][0]),T.push(K.$),k.push(K._$),X=C[x[x.length-2]][x[x.length-1]],x.push(X);break;case 3:return!0}}return!0},"parse")},d=(function(){var p={EOF:1,parseError:a(function(g,x){if(this.yy.parser)this.yy.parser.parseError(g,x);else throw new Error(g)},"parseError"),setInput:a(function(m,g){return this.yy=g||this.yy||{},this._input=m,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:a(function(){var m=this._input[0];this.yytext+=m,this.yyleng++,this.offset++,this.match+=m,this.matched+=m;var g=m.match(/(?:\r\n?|\n).*/g);return g?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),m},"input"),unput:a(function(m){var g=m.length,x=m.split(/(?:\r\n?|\n)/g);this._input=m+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-g),this.offset-=g;var b=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),x.length-1&&(this.yylineno-=x.length-1);var T=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:x?(x.length===b.length?this.yylloc.first_column:0)+b[b.length-x.length].length-x[0].length:this.yylloc.first_column-g},this.options.ranges&&(this.yylloc.range=[T[0],T[0]+this.yyleng-g]),this.yyleng=this.yytext.length,this},"unput"),more:a(function(){return this._more=!0,this},"more"),reject:a(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:a(function(m){this.unput(this.match.slice(m))},"less"),pastInput:a(function(){var m=this.matched.substr(0,this.matched.length-this.match.length);return(m.length>20?"...":"")+m.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:a(function(){var m=this.match;return m.length<20&&(m+=this._input.substr(0,20-m.length)),(m.substr(0,20)+(m.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:a(function(){var m=this.pastInput(),g=new Array(m.length+1).join("-");return m+this.upcomingInput()+`
`+g+"^"},"showPosition"),test_match:a(function(m,g){var x,b,T;if(this.options.backtrack_lexer&&(T={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(T.yylloc.range=this.yylloc.range.slice(0))),b=m[0].match(/(?:\r\n?|\n).*/g),b&&(this.yylineno+=b.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:b?b[b.length-1].length-b[b.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+m[0].length},this.yytext+=m[0],this.match+=m[0],this.matches=m,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(m[0].length),this.matched+=m[0],x=this.performAction.call(this,this.yy,this,g,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),x)return x;if(this._backtrack){for(var k in T)this[k]=T[k];return!1}return!1},"test_match"),next:a(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var m,g,x,b;this._more||(this.yytext="",this.match="");for(var T=this._currentRules(),k=0;k<T.length;k++)if(x=this._input.match(this.rules[T[k]]),x&&(!g||x[0].length>g[0].length)){if(g=x,b=k,this.options.backtrack_lexer){if(m=this.test_match(x,T[k]),m!==!1)return m;if(this._backtrack){g=!1;continue}else return!1}else if(!this.options.flex)break}return g?(m=this.test_match(g,T[b]),m!==!1?m:!1):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:a(function(){var g=this.next();return g||this.lex()},"lex"),begin:a(function(g){this.conditionStack.push(g)},"begin"),popState:a(function(){var g=this.conditionStack.length-1;return g>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:a(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:a(function(g){return g=this.conditionStack.length-1-Math.abs(g||0),g>=0?this.conditionStack[g]:"INITIAL"},"topState"),pushState:a(function(g){this.begin(g)},"pushState"),stateStackSize:a(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:a(function(g,x,b,T){var k=T;switch(b){case 0:break;case 1:break;case 2:return 13;case 3:break;case 4:break;case 5:return 8;case 6:return 9;case 7:return 7;case 8:return 14;case 9:return this.begin("acc_title"),15;break;case 10:return this.popState(),"acc_title_value";break;case 11:return this.begin("acc_descr"),17;break;case 12:return this.popState(),"acc_descr_value";break;case 13:this.begin("acc_descr_multiline");break;case 14:this.popState();break;case 15:return"acc_descr_multiline_value";case 16:return 20;case 17:return 24;case 18:return 23;case 19:return 6;case 20:return"INVALID"}},"anonymous"),rules:[/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:timeline[ \t]+LR\b)/i,/^(?:timeline[ \t]+TD\b)/i,/^(?:timeline\b)/i,/^(?:title\s[^\n]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:section\s[^:\n]+)/i,/^(?::\s(?:[^:\n]|:(?!\s))+)/i,/^(?:[^#:\n]+)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[14,15],inclusive:!1},acc_descr:{rules:[12],inclusive:!1},acc_title:{rules:[10],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,11,13,16,17,18,19,20],inclusive:!0}}};return p})();h.lexer=d;function f(){this.yy={}}return a(f,"Parser"),f.prototype=h,h.Parser=f,new f})();aB.parser=aB;L1e=aB});var lB={};tr(lB,{addEvent:()=>W1e,addSection:()=>$1e,addTask:()=>G1e,addTaskOrg:()=>z1e,clear:()=>O1e,default:()=>btt,getCommonDb:()=>M1e,getDirection:()=>B1e,getSections:()=>F1e,getTasks:()=>V1e,setDirection:()=>P1e});var jm,N1e,sB,oB,z_,Um,M1e,O1e,P1e,B1e,$1e,F1e,V1e,G1e,W1e,z1e,I1e,btt,q1e=v(()=>{"use strict";zr();jm="",N1e=0,sB="LR",oB=[],z_=[],Um=[],M1e=a(()=>Ag,"getCommonDb"),O1e=a(function(){oB.length=0,z_.length=0,jm="",Um.length=0,sB="LR",Ht()},"clear"),P1e=a(function(e){sB=e},"setDirection"),B1e=a(function(){return sB},"getDirection"),$1e=a(function(e){jm=e,oB.push(e)},"addSection"),F1e=a(function(){return oB},"getSections"),V1e=a(function(){let e=I1e(),t=100,r=0;for(;!e&&r<t;)e=I1e(),r++;return z_.push(...Um),z_},"getTasks"),G1e=a(function(e,t,r){let i={id:N1e++,section:jm,type:jm,task:e,score:t||0,events:r?[r]:[]};Um.push(i)},"addTask"),W1e=a(function(e){Um.find(r=>r.id===N1e-1).events.push(e)},"addEvent"),z1e=a(function(e){let t={section:jm,type:jm,description:e,task:e,classes:[]};z_.push(t)},"addTaskOrg"),I1e=a(function(){let e=a(function(r){return Um[r].processed},"compileTask"),t=!0;for(let[r,i]of Um.entries())e(r),t=t&&i.processed;return t},"compileTasks"),btt={clear:O1e,getCommonDb:M1e,getDirection:B1e,setDirection:P1e,addSection:$1e,getSections:F1e,getTasks:V1e,addTask:G1e,addTaskOrg:z1e,addEvent:W1e}});function Y1e(e,t){e.each(function(){var r=Se(this),i=r.text().split(/(\s+|<br>)/).reverse(),n,s=[],o=1.1,l=r.attr("y"),u=parseFloat(r.attr("dy")),h=r.text(null).append("tspan").attr("x",0).attr("y",l).attr("dy",u+"em");for(let d=0;d<i.length;d++)n=i[i.length-1-d],s.push(n),h.text(s.join(" ").trim()),(h.node().getComputedTextLength()>t||n==="<br>")&&(s.pop(),h.text(s.join(" ").trim()),n==="<br>"?s=[""]:s=[n],h=r.append("tspan").attr("x",0).attr("y",l).attr("dy",o+"em").text(n))})}var j1e,q_,Ttt,ktt,U1e,Ctt,vtt,cB,Stt,_tt,wtt,uB,H1e,Ett,Att,Rtt,Ltt,_n,hB=v(()=>{"use strict";sr();j1e=0,q_=a(function(e,t){let r=e.append("rect");return r.attr("x",t.x),r.attr("y",t.y),r.attr("fill",t.fill),r.attr("stroke",t.stroke),r.attr("width",t.width),r.attr("height",t.height),r.attr("rx",t.rx),r.attr("ry",t.ry),t.class!==void 0&&r.attr("class",t.class),r},"drawRect"),Ttt=a(function(e,t){let i=e.append("circle").attr("cx",t.cx).attr("cy",t.cy).attr("class","face").attr("r",15).attr("stroke-width",2).attr("overflow","visible"),n=e.append("g");n.append("circle").attr("cx",t.cx-15/3).attr("cy",t.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),n.append("circle").attr("cx",t.cx+15/3).attr("cy",t.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666");function s(u){let h=Ms().startAngle(Math.PI/2).endAngle(3*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);u.append("path").attr("class","mouth").attr("d",h).attr("transform","translate("+t.cx+","+(t.cy+2)+")")}a(s,"smile");function o(u){let h=Ms().startAngle(3*Math.PI/2).endAngle(5*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);u.append("path").attr("class","mouth").attr("d",h).attr("transform","translate("+t.cx+","+(t.cy+7)+")")}a(o,"sad");function l(u){u.append("line").attr("class","mouth").attr("stroke",2).attr("x1",t.cx-5).attr("y1",t.cy+7).attr("x2",t.cx+5).attr("y2",t.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}return a(l,"ambivalent"),t.score>3?s(n):t.score<3?o(n):l(n),i},"drawFace"),ktt=a(function(e,t){let r=e.append("circle");return r.attr("cx",t.cx),r.attr("cy",t.cy),r.attr("class","actor-"+t.pos),r.attr("fill",t.fill),r.attr("stroke",t.stroke),r.attr("r",t.r),r.class!==void 0&&r.attr("class",r.class),t.title!==void 0&&r.append("title").text(t.title),r},"drawCircle"),U1e=a(function(e,t){let r=t.text.replace(/<br\s*\/?>/gi," "),i=e.append("text");i.attr("x",t.x),i.attr("y",t.y),i.attr("class","legend"),i.style("text-anchor",t.anchor),t.class!==void 0&&i.attr("class",t.class);let n=i.append("tspan");return n.attr("x",t.x+t.textMargin*2),n.text(r),i},"drawText"),Ctt=a(function(e,t){function r(n,s,o,l,u){return n+","+s+" "+(n+o)+","+s+" "+(n+o)+","+(s+l-u)+" "+(n+o-u*1.2)+","+(s+l)+" "+n+","+(s+l)}a(r,"genPoints");let i=e.append("polygon");i.attr("points",r(t.x,t.y,50,20,7)),i.attr("class","labelBox"),t.y=t.y+t.labelMargin,t.x=t.x+.5*t.labelMargin,U1e(e,t)},"drawLabel"),vtt=a(function(e,t,r){let i=e.append("g"),n=uB();n.x=t.x,n.y=t.y,n.fill=t.fill,n.width=r.width,n.height=r.height,n.class="journey-section section-type-"+t.num,n.rx=3,n.ry=3,q_(i,n),H1e(r)(t.text,i,n.x,n.y,n.width,n.height,{class:"journey-section section-type-"+t.num},r,t.colour)},"drawSection"),cB=-1,Stt=a(function(e,t,r,i){let n=t.x+r.width/2,s=e.append("g");cB++,s.append("line").attr("id",i+"-task"+cB).attr("x1",n).attr("y1",t.y).attr("x2",n).attr("y2",450).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),Ttt(s,{cx:n,cy:300+(5-t.score)*30,score:t.score});let l=uB();l.x=t.x,l.y=t.y,l.fill=t.fill,l.width=r.width,l.height=r.height,l.class="task task-type-"+t.num,l.rx=3,l.ry=3,q_(s,l),H1e(r)(t.task,s,l.x,l.y,l.width,l.height,{class:"task"},r,t.colour)},"drawTask"),_tt=a(function(e,t){q_(e,{x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,class:"rect"}).lower()},"drawBackgroundRect"),wtt=a(function(){return{x:0,y:0,fill:void 0,"text-anchor":"start",width:100,height:100,textMargin:0,rx:0,ry:0}},"getTextObj"),uB=a(function(){return{x:0,y:0,width:100,anchor:"start",height:100,rx:0,ry:0}},"getNoteRect"),H1e=(function(){function e(n,s,o,l,u,h,d,f){let p=s.append("text").attr("x",o+u/2).attr("y",l+h/2+5).style("font-color",f).style("text-anchor","middle").text(n);i(p,d)}a(e,"byText");function t(n,s,o,l,u,h,d,f,p){let{taskFontSize:m,taskFontFamily:g}=f,x=n.split(/<br\s*\/?>/gi);for(let b=0;b<x.length;b++){let T=b*m-m*(x.length-1)/2,k=s.append("text").attr("x",o+u/2).attr("y",l).attr("fill",p).style("text-anchor","middle").style("font-size",m).style("font-family",g);k.append("tspan").attr("x",o+u/2).attr("dy",T).text(x[b]),k.attr("y",l+h/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),i(k,d)}}a(t,"byTspan");function r(n,s,o,l,u,h,d,f){let p=s.append("switch"),g=p.append("foreignObject").attr("x",o).attr("y",l).attr("width",u).attr("height",h).attr("position","fixed").append("xhtml:div").style("display","table").style("height","100%").style("width","100%");g.append("div").attr("class","label").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(n),t(n,p,o,l,u,h,d,f),i(g,d)}a(r,"byFo");function i(n,s){for(let o in s)o in s&&n.attr(o,s[o])}return a(i,"_setTextAttrs"),function(n){return n.textPlacement==="fo"?r:n.textPlacement==="old"?e:t}})(),Ett=a(function(e,t){j1e=0,cB=-1,e.append("defs").append("marker").attr("id",t+"-arrowhead").attr("refX",5).attr("refY",2).attr("markerWidth",6).attr("markerHeight",4).attr("orient","auto").append("path").attr("d","M 0,0 V 4 L6,2 Z")},"initGraphics");a(Y1e,"wrap");Att=a(function(e,t,r,i,n,s=!1){let{theme:o,look:l}=i,u=o?.includes("redux"),h=i?.themeVariables?.THEME_COLOR_LIMIT??12,d=r%h-1,f=e.append("g");t.section=d,f.attr("class",(t.class?t.class+" ":"")+"timeline-node "+("section-"+d));let p=f.append("g"),m=f.append("g"),x=m.append("text").text(t.descr).attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle").call(Y1e,t.width).node().getBBox(),b=i.fontSize?.replace?i.fontSize.replace("px",""):i.fontSize;if(t.height=x.height+b*1.1*.5+t.padding,t.height=Math.max(t.height,t.maxHeight),t.width=t.width+2*t.padding,m.attr("transform","translate("+t.width/2+", "+t.padding/2+")"),u&&m.attr("transform",`translate(${t.width/2}, ${s?t.padding/2+3:t.padding})`),Ltt(p,t,d,n,i),l==="neo"&&(f.attr("data-look","neo"),u)){let T=o.includes("dark"),k=e.node()?.ownerSVGElement??e.node(),C=Se(k),S=C.attr("id")??"",w=S?`${S}-drop-shadow`:"drop-shadow";if(C.select(`#${w}`).empty()){let _=C.select("defs");(_.empty()?C.append("defs"):_).append("filter").attr("id",w).attr("height","130%").attr("width","130%").append("feDropShadow").attr("dx","4").attr("dy","4").attr("stdDeviation",0).attr("flood-opacity",T?"0.2":"0.06").attr("flood-color",T?"#FFFFFF":"#000000")}}return t},"drawNode"),Rtt=a(function(e,t,r){let i=e.append("g"),s=i.append("text").text(t.descr).attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle").call(Y1e,t.width).node().getBBox(),o=r.fontSize?.replace?r.fontSize.replace("px",""):r.fontSize;return i.remove(),s.height+o*1.1*.5+t.padding},"getVirtualNodeHeight"),Ltt=a(function(e,t,r,i,n){let{theme:s}=n,o=s?.includes("redux")?0:5,l=5,u=o>0?`M0 ${t.height-l} v${-t.height+2*l} q0,-${o},${o},-${o} h${t.width-2*l} q${o},0,${o},${o} v${t.height-l} H0 Z`:`M0 ${t.height-l} v${-(t.height-l)} h${t.width} v${t.height} H0 Z`;e.append("path").attr("id",i+"-node-"+j1e++).attr("class","node-bkg node-"+t.type).attr("d",u),s?.includes("redux")||e.append("line").attr("class","node-line-"+r).attr("x1",0).attr("y1",t.height).attr("x2",t.width).attr("y2",t.height)},"defaultBkg"),_n={drawRect:q_,drawCircle:ktt,drawSection:vtt,drawText:U1e,drawLabel:Ctt,drawTask:Stt,drawBackgroundRect:_tt,getTextObj:wtt,getNoteRect:uB,initGraphics:Ett,drawNode:Att,getVirtualNodeHeight:Rtt}});var Dtt,K1e,Itt,X1e,Q1e=v(()=>{"use strict";sr();hB();nt();bt();Xr();Dtt=a(function(e,t,r,i){let n=J(),{look:s,theme:o,themeVariables:l}=n,{useGradient:u,gradientStart:h,gradientStop:d}=l,f=n.timeline?.leftMargin??50;W.debug("timeline",i.db);let p=n.securityLevel,m;p==="sandbox"&&(m=Se("#i"+t));let x=(p==="sandbox"?Se(m.nodes()[0].contentDocument.body):Se("body")).select("#"+t);x.append("g");let b=i.db.getTasks(),T=i.db.getCommonDb().getDiagramTitle();W.debug("task",b),_n.initGraphics(x,t);let k=i.db.getSections();W.debug("sections",k);let C=0,S=0,w=0,_=0,L=50+f,I=50;_=50;let B=0,G=!0;k.forEach(function(R){let N={number:B,descr:R,section:B,width:150,padding:20,maxHeight:C},$=_n.getVirtualNodeHeight(x,N,n);W.debug("sectionHeight before draw",$),C=Math.max(C,$+20)});let P=0,F=0;W.debug("tasks.length",b.length);for(let[R,N]of b.entries()){let $={number:R,descr:N,section:N.section,width:150,padding:20,maxHeight:S},E=_n.getVirtualNodeHeight(x,$,n);W.debug("taskHeight before draw",E),S=Math.max(S,E+20),P=Math.max(P,N.events.length);let M=0;for(let V of N.events){let O={descr:V,section:N.section,number:N.section,width:150,padding:20,maxHeight:50};M+=_n.getVirtualNodeHeight(x,O,n)}N.events.length>0&&(M+=(N.events.length-1)*10),F=Math.max(F,M)}W.debug("maxSectionHeight before draw",C),W.debug("maxTaskHeight before draw",S),k&&k.length>0?k.forEach(R=>{let N=b.filter(V=>V.section===R),$={number:B,descr:R,section:B,width:200*Math.max(N.length,1)-50,padding:20,maxHeight:C};W.debug("sectionNode",$);let E=x.append("g"),M=_n.drawNode(E,$,B,n,t);W.debug("sectionNode output",M),E.attr("transform",`translate(${L}, ${_})`),I+=C+50,N.length>0&&K1e(x,N,B,L,I,S,n,P,F,C,!1,t),L+=200*Math.max(N.length,1),I=_,B++}):(G=!1,K1e(x,b,B,L,I,S,n,P,F,C,!0,t));let A=x.node().getBBox();if(W.debug("bounds",A),T&&x.append("text").text(T).attr("x",s==="neo"?A.x*2+f:A.width/2-f).attr("font-size","4ex").attr("font-weight","bold").attr("y",20),w=G?C+S+150:S+100,x.append("g").attr("class","lineWrapper").append("line").attr("x1",f).attr("y1",w).attr("x2",A.width+3*f).attr("y2",w).attr("stroke-width",4).attr("stroke","black").attr("marker-end",`url(#${t}-arrowhead)`),s==="neo"&&u&&o!=="neutral"){let R=x.select("defs"),$=(R.empty()?x.append("defs"):R).append("linearGradient").attr("id",x.attr("id")+"-gradient").attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");$.append("stop").attr("offset","0%").attr("stop-color",h).attr("stop-opacity",1),$.append("stop").attr("offset","100%").attr("stop-color",d).attr("stop-opacity",1)}uo(void 0,x,n.timeline?.padding??50,n.timeline?.useMaxWidth??!1)},"draw"),K1e=a(function(e,t,r,i,n,s,o,l,u,h,d,f){for(let p of t){let m={descr:p.task,section:r,number:r,width:150,padding:20,maxHeight:s};W.debug("taskNode",m);let g=e.append("g").attr("class","taskWrapper"),b=_n.drawNode(g,m,r,o,f).height;if(W.debug("taskHeight after draw",b),g.attr("transform",`translate(${i}, ${n})`),s=Math.max(s,b),p.events){let T=e.append("g").attr("class","lineWrapper"),k=s;n+=100,k=k+Itt(e,p.events,r,i,n,o,f),n-=100,T.append("line").attr("x1",i+190/2).attr("y1",n+s).attr("x2",i+190/2).attr("y2",n+s+100+u+100).attr("stroke-width",2).attr("stroke","black").attr("marker-end",`url(#${f}-arrowhead)`).attr("stroke-dasharray","5,5")}i=i+200,d&&!o.timeline?.disableMulticolor&&r++}n=n-10},"drawTasks"),Itt=a(function(e,t,r,i,n,s,o){let l=0,u=n;n=n+100;for(let h of t){let d={descr:h,section:r,number:r,width:150,padding:20,maxHeight:50};W.debug("eventNode",d);let f=e.append("g").attr("class","eventWrapper"),m=_n.drawNode(f,d,r,s,o,!0).height;l=l+m,f.attr("transform",`translate(${i}, ${n})`),n=n+10+m}return n=u,l},"drawEvents"),X1e={setConf:a(()=>{},"setConf"),draw:Dtt}});var j_,oc,Ntt,dB,Mtt,txe,Ott,Z1e,rxe,J1e,ixe,Ptt,exe,Btt,nxe,axe=v(()=>{"use strict";hB();nt();bt();Xr();ga();Et();j_=200,oc=5,Ntt=j_+oc*2,dB=j_+100,Mtt=dB+oc*2,txe=10,Ott=0,Z1e=20,rxe=20,J1e=30,ixe=50,Ptt=a(function(e,t,r,i){let n=J(),s=n.timeline?.leftMargin??50;W.debug("timeline",i.db);let o=Yr(t);o.append("g");let l=i.db.getTasks(),u=i.db.getCommonDb().getDiagramTitle();W.debug("task",l),_n.initGraphics(o);let h=i.db.getSections();W.debug("sections",h);let d=0,f=0,p=50+s,m=50,g=m,x=p,b=Ntt+rxe,T=Mtt+ixe,k=x+b,C=0,S=h&&h.length>0,w=S?k:p+b,_=Math.max(50,b+T-oc*2);h.forEach(function(R){let N={number:C,descr:R,section:C,width:_,padding:oc,maxHeight:d},$=_n.getVirtualNodeHeight(o,N,n);W.debug("sectionHeight before draw",$),d=Math.max(d,$)});let L=0;W.debug("tasks.length",l.length);for(let[R,N]of l.entries()){let $={number:R,descr:N,section:N.section,width:j_,padding:oc,maxHeight:f},E=_n.getVirtualNodeHeight(o,$,n);W.debug("taskHeight before draw",E),f=Math.max(f,E);let M=0;for(let V of N.events){let O={descr:V,section:N.section,number:N.section,width:dB,padding:oc,maxHeight:50};M+=_n.getVirtualNodeHeight(o,O,n)}N.events.length>0&&(M+=(N.events.length-1)*txe),L=Math.max(L,M)+Ott}W.debug("maxSectionHeight before draw",d),W.debug("maxTaskHeight before draw",f);let B=Math.max(f,L)+J1e;S?h.forEach(R=>{let N=l.filter(K=>K.section===R),$={number:C,descr:R,section:C,width:_,padding:oc,maxHeight:d};W.debug("sectionNode",$);let E=o.append("g"),M=_n.drawNode(E,$,C,n);W.debug("sectionNode output",M);let V=w-b;E.attr("transform",`translate(${V}, ${m})`);let O=m+M.height+Z1e;N.length>0&&exe(o,N,C,w,O,f,n,B,!1);let z=N.length,U=M.height+Z1e+B*Math.max(z,1)-(z>0?J1e*2:0);m+=U,C++}):exe(o,l,C,w,m,f,n,B,!0);let G=o.node()?.getBBox();if(!G)throw new Error("bbox not found");if(W.debug("bounds",G),u){if(o.append("text").text(u).attr("x",G.width/2-s).attr("font-size","4ex").attr("font-weight","bold").attr("y",20),G=o.node()?.getBBox(),!G)throw new Error("bbox not found");W.debug("bounds after title",G)}let[P]=Qn(n.fontSize),F=(P??16)*2,A=(P??16)*.5+20,D=o.append("g").attr("class","lineWrapper");D.append("line").attr("x1",w).attr("y1",g-F).attr("x2",w).attr("y2",G.y+G.height+A).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#arrowhead)"),D.lower(),uo(void 0,o,n.timeline?.padding??50,n.timeline?.useMaxWidth??!1)},"draw"),exe=a(function(e,t,r,i,n,s,o,l,u){for(let h of t){let d={descr:h.task,section:r,number:r,width:j_,padding:oc,maxHeight:s};W.debug("taskNode",d);let f=e.append("g").attr("class","taskWrapper"),p=_n.drawNode(f,d,r,o),m=p.height;W.debug("taskHeight after draw",m);let g=i-rxe-p.width;if(f.attr("transform",`translate(${g}, ${n})`),s=Math.max(s,m),h.events&&h.events.length>0){let x=n,b=i+ixe;Btt(e,h.events,r,i,b,x,o)}n=n+l,u&&!o.timeline?.disableMulticolor&&r++}},"drawTasks"),Btt=a(function(e,t,r,i,n,s,o){let l=s;for(let u of t){let h={descr:u,section:r,number:r,width:dB,padding:oc,maxHeight:0};W.debug("eventNode",h);let d=e.append("g").attr("class","eventWrapper"),p=_n.drawNode(d,h,r,o).height;d.attr("transform",`translate(${n}, ${l})`);let m=e.append("g").attr("class","lineWrapper"),g=l+p/2;m.append("line").attr("x1",i).attr("y1",g).attr("x2",n).attr("y2",g).attr("stroke-width",2).attr("stroke","black").attr("marker-end","url(#arrowhead)").attr("stroke-dasharray","5,5"),l=l+p+txe}return l-s},"drawEvents"),nxe={setConf:a(()=>{},"setConf"),draw:Ptt}});var $tt,Ftt,Vtt,sxe,oxe=v(()=>{"use strict";Bi();Xt();$tt=a(e=>{let{theme:t}=ct(),r=t?.includes("dark"),i=t?.includes("color"),n=e.svgId?.replace(/^#/,"")??"",s=n?`url(#${n}-drop-shadow)`:e.dropShadow??"none",o="";for(let l=0;l<e.THEME_COLOR_LIMIT;l++){let u=`${17-3*l}`,h=i?e.borderColorArray[l]:e.mainBkg,d=i?e.borderColorArray[l]:e.nodeBorder;o+=`
.section-${l-1} rect,
.section-${l-1} path,
.section-${l-1} circle {
fill: ${r&&i?e.mainBkg:h};
stroke: ${d};
stroke-width: ${e.strokeWidth};
filter: ${s};
}
.section-${l-1} text {
fill: ${e.nodeBorder};
font-weight: ${e.fontWeight}
}
.node-icon-${l-1} {
font-size: 40px;
color: ${e["cScaleLabel"+l]};
}
.section-edge-${l-1} {
stroke: ${e["cScale"+l]};
}
.edge-depth-${l-1} {
stroke-width: ${u};
}
.section-${l-1} line {
stroke: ${e["cScaleInv"+l]};
stroke-width: 3;
}
.lineWrapper line {
stroke: ${e.nodeBorder};
stroke-width:${e.strokeWidth}
}
.disabled,
.disabled circle,
.disabled text {
fill: ${e.tertiaryColor??"lightgray"};
}
.disabled text {
fill: ${e.clusterBorder??"#efefef"};
}
`}return o},"genReduxSections"),Ftt=a(e=>{let t="";for(let r=0;r<e.THEME_COLOR_LIMIT;r++)e["lineColor"+r]=e["lineColor"+r]||e["cScaleInv"+r],Or(e["lineColor"+r])?e["lineColor"+r]=Te(e["lineColor"+r],20):e["lineColor"+r]=ke(e["lineColor"+r],20);for(let r=0;r<e.THEME_COLOR_LIMIT;r++){let i=""+(17-3*r);t+=`
.section-${r-1} rect, .section-${r-1} path, .section-${r-1} circle, .section-${r-1} path {
fill: ${e["cScale"+r]};
}
.section-${r-1} text {
fill: ${e["cScaleLabel"+r]};
}
.node-icon-${r-1} {
font-size: 40px;
color: ${e["cScaleLabel"+r]};
}
.section-edge-${r-1}{
stroke: ${e["cScale"+r]};
}
.edge-depth-${r-1}{
stroke-width: ${i};
}
.section-${r-1} line {
stroke: ${e["cScaleInv"+r]} ;
stroke-width: 3;
}
.lineWrapper line{
stroke: ${e["cScaleLabel"+r]} ;
}
.disabled, .disabled circle, .disabled text {
fill: ${e.tertiaryColor??"lightgray"};
}
.disabled text {
fill: ${e.clusterBorder??"#efefef"};
}
`}return t},"genSections"),Vtt=a(e=>{let{theme:t}=ct(),r=t?.includes("redux"),i=t==="neutral",n=e.svgId?.replace(/^#/,"")??"",s="";if(e.useGradient&&n&&e.THEME_COLOR_LIMIT&&!i)for(let o=0;o<e.THEME_COLOR_LIMIT;o++)s+=`
.section-${o-1}[data-look="neo"] rect,
.section-${o-1}[data-look="neo"] path,
.section-${o-1}[data-look="neo"] circle {
fill: ${e.mainBkg};
stroke: url(#${n}-gradient);
stroke-width: 2;
}
.section-${o-1}[data-look="neo"] line {
stroke: url(#${n}-gradient);
stroke-width: 2;
}`;return`
.edge {
stroke-width: 3;
}
${r?$tt(e):Ftt(e)}
${s}
.section-root rect, .section-root path, .section-root circle {
fill: ${e.git0};
}
.section-root text {
fill: ${e.gitBranchLabel0};
}
.icon-container {
height:100%;
display: flex;
justify-content: center;
align-items: center;
}
.edge {
fill: none;
}
.eventWrapper {
filter: brightness(120%);
}
`},"getStyles"),sxe=Vtt});var lxe={};tr(lxe,{diagram:()=>Wtt});var Gtt,Wtt,cxe=v(()=>{"use strict";D1e();q1e();Q1e();axe();oxe();Gtt={setConf:a(()=>{},"setConf"),draw:a((e,t,r,i)=>(i?.db?.getDirection?.()??"LR")==="TD"?nxe.draw(e,t,r,i):X1e.draw(e,t,r,i),"draw")},Wtt={db:lB,renderer:Gtt,parser:L1e,styles:sxe}});var fB,dxe,fxe=v(()=>{"use strict";fB=(function(){var e=a(function(L,I,B,G){for(B=B||{},G=L.length;G--;B[L[G]]=I);return B},"o"),t=[1,4],r=[1,13],i=[1,12],n=[1,15],s=[1,16],o=[1,20],l=[1,19],u=[6,7,8],h=[1,26],d=[1,24],f=[1,25],p=[6,7,11],m=[1,31],g=[6,7,11,24],x=[1,6,13,16,17,20,23],b=[1,35],T=[1,36],k=[1,6,7,11,13,16,17,20,23],C=[1,38],S={trace:a(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:a(function(I,B,G,P,F,A,D){var R=A.length-1;switch(F){case 6:case 7:return P;case 8:P.getLogger().trace("Stop NL ");break;case 9:P.getLogger().trace("Stop EOF ");break;case 11:P.getLogger().trace("Stop NL2 ");break;case 12:P.getLogger().trace("Stop EOF2 ");break;case 15:P.getLogger().info("Node: ",A[R-1].id),P.addNode(A[R-2].length,A[R-1].id,A[R-1].descr,A[R-1].type,A[R]);break;case 16:P.getLogger().info("Node: ",A[R].id),P.addNode(A[R-1].length,A[R].id,A[R].descr,A[R].type);break;case 17:P.getLogger().trace("Icon: ",A[R]),P.decorateNode({icon:A[R]});break;case 18:case 23:P.decorateNode({class:A[R]});break;case 19:P.getLogger().trace("SPACELIST");break;case 20:P.getLogger().trace("Node: ",A[R-1].id),P.addNode(0,A[R-1].id,A[R-1].descr,A[R-1].type,A[R]);break;case 21:P.getLogger().trace("Node: ",A[R].id),P.addNode(0,A[R].id,A[R].descr,A[R].type);break;case 22:P.decorateNode({icon:A[R]});break;case 27:P.getLogger().trace("node found ..",A[R-2]),this.$={id:A[R-1],descr:A[R-1],type:P.getType(A[R-2],A[R])};break;case 28:this.$={id:A[R],descr:A[R],type:0};break;case 29:P.getLogger().trace("node found ..",A[R-3]),this.$={id:A[R-3],descr:A[R-1],type:P.getType(A[R-2],A[R])};break;case 30:this.$=A[R-1]+A[R];break;case 31:this.$=A[R];break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:t},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:t},{6:r,7:[1,10],9:9,12:11,13:i,14:14,16:n,17:s,18:17,19:18,20:o,23:l},e(u,[2,3]),{1:[2,2]},e(u,[2,4]),e(u,[2,5]),{1:[2,6],6:r,12:21,13:i,14:14,16:n,17:s,18:17,19:18,20:o,23:l},{6:r,9:22,12:11,13:i,14:14,16:n,17:s,18:17,19:18,20:o,23:l},{6:h,7:d,10:23,11:f},e(p,[2,24],{18:17,19:18,14:27,16:[1,28],17:[1,29],20:o,23:l}),e(p,[2,19]),e(p,[2,21],{15:30,24:m}),e(p,[2,22]),e(p,[2,23]),e(g,[2,25]),e(g,[2,26]),e(g,[2,28],{20:[1,32]}),{21:[1,33]},{6:h,7:d,10:34,11:f},{1:[2,7],6:r,12:21,13:i,14:14,16:n,17:s,18:17,19:18,20:o,23:l},e(x,[2,14],{7:b,11:T}),e(k,[2,8]),e(k,[2,9]),e(k,[2,10]),e(p,[2,16],{15:37,24:m}),e(p,[2,17]),e(p,[2,18]),e(p,[2,20],{24:C}),e(g,[2,31]),{21:[1,39]},{22:[1,40]},e(x,[2,13],{7:b,11:T}),e(k,[2,11]),e(k,[2,12]),e(p,[2,15],{24:C}),e(g,[2,30]),{22:[1,41]},e(g,[2,27]),e(g,[2,29])],defaultActions:{2:[2,1],6:[2,2]},parseError:a(function(I,B){if(B.recoverable)this.trace(I);else{var G=new Error(I);throw G.hash=B,G}},"parseError"),parse:a(function(I){var B=this,G=[0],P=[],F=[null],A=[],D=this.table,R="",N=0,$=0,E=0,M=2,V=1,O=A.slice.call(arguments,1),z=Object.create(this.lexer),U={yy:{}};for(var K in this.yy)Object.prototype.hasOwnProperty.call(this.yy,K)&&(U.yy[K]=this.yy[K]);z.setInput(I,U.yy),U.yy.lexer=z,U.yy.parser=this,typeof z.yylloc>"u"&&(z.yylloc={});var j=z.yylloc;A.push(j);var ae=z.options&&z.options.ranges;typeof U.yy.parseError=="function"?this.parseError=U.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function X(ce){G.length=G.length-2*ce,F.length=F.length-ce,A.length=A.length-ce}a(X,"popStack");function de(){var ce;return ce=P.pop()||z.lex()||V,typeof ce!="number"&&(ce instanceof Array&&(P=ce,ce=P.pop()),ce=B.symbols_[ce]||ce),ce}a(de,"lex");for(var le,ge,he,te,Le,xe,ye={},be,Ce,Oe,Ae;;){if(he=G[G.length-1],this.defaultActions[he]?te=this.defaultActions[he]:((le===null||typeof le>"u")&&(le=de()),te=D[he]&&D[he][le]),typeof te>"u"||!te.length||!te[0]){var st="";Ae=[];for(be in D[he])this.terminals_[be]&&be>M&&Ae.push("'"+this.terminals_[be]+"'");z.showPosition?st="Parse error on line "+(N+1)+`:
`+z.showPosition()+`
Expecting `+Ae.join(", ")+", got '"+(this.terminals_[le]||le)+"'":st="Parse error on line "+(N+1)+": Unexpected "+(le==V?"end of input":"'"+(this.terminals_[le]||le)+"'"),this.parseError(st,{text:z.match,token:this.terminals_[le]||le,line:z.yylineno,loc:j,expected:Ae})}if(te[0]instanceof Array&&te.length>1)throw new Error("Parse Error: multiple actions possible at state: "+he+", token: "+le);switch(te[0]){case 1:G.push(le),F.push(z.yytext),A.push(z.yylloc),G.push(te[1]),le=null,ge?(le=ge,ge=null):($=z.yyleng,R=z.yytext,N=z.yylineno,j=z.yylloc,E>0&&E--);break;case 2:if(Ce=this.productions_[te[1]][1],ye.$=F[F.length-Ce],ye._$={first_line:A[A.length-(Ce||1)].first_line,last_line:A[A.length-1].last_line,first_column:A[A.length-(Ce||1)].first_column,last_column:A[A.length-1].last_column},ae&&(ye._$.range=[A[A.length-(Ce||1)].range[0],A[A.length-1].range[1]]),xe=this.performAction.apply(ye,[R,$,N,U.yy,te[1],F,A].concat(O)),typeof xe<"u")return xe;Ce&&(G=G.slice(0,-1*Ce*2),F=F.slice(0,-1*Ce),A=A.slice(0,-1*Ce)),G.push(this.productions_[te[1]][0]),F.push(ye.$),A.push(ye._$),Oe=D[G[G.length-2]][G[G.length-1]],G.push(Oe);break;case 3:return!0}}return!0},"parse")},w=(function(){var L={EOF:1,parseError:a(function(B,G){if(this.yy.parser)this.yy.parser.parseError(B,G);else throw new Error(B)},"parseError"),setInput:a(function(I,B){return this.yy=B||this.yy||{},this._input=I,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:a(function(){var I=this._input[0];this.yytext+=I,this.yyleng++,this.offset++,this.match+=I,this.matched+=I;var B=I.match(/(?:\r\n?|\n).*/g);return B?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),I},"input"),unput:a(function(I){var B=I.length,G=I.split(/(?:\r\n?|\n)/g);this._input=I+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-B),this.offset-=B;var P=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),G.length-1&&(this.yylineno-=G.length-1);var F=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:G?(G.length===P.length?this.yylloc.first_column:0)+P[P.length-G.length].length-G[0].length:this.yylloc.first_column-B},this.options.ranges&&(this.yylloc.range=[F[0],F[0]+this.yyleng-B]),this.yyleng=this.yytext.length,this},"unput"),more:a(function(){return this._more=!0,this},"more"),reject:a(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:a(function(I){this.unput(this.match.slice(I))},"less"),pastInput:a(function(){var I=this.matched.substr(0,this.matched.length-this.match.length);return(I.length>20?"...":"")+I.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:a(function(){var I=this.match;return I.length<20&&(I+=this._input.substr(0,20-I.length)),(I.substr(0,20)+(I.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:a(function(){var I=this.pastInput(),B=new Array(I.length+1).join("-");return I+this.upcomingInput()+`
`+B+"^"},"showPosition"),test_match:a(function(I,B){var G,P,F;if(this.options.backtrack_lexer&&(F={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(F.yylloc.range=this.yylloc.range.slice(0))),P=I[0].match(/(?:\r\n?|\n).*/g),P&&(this.yylineno+=P.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:P?P[P.length-1].length-P[P.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+I[0].length},this.yytext+=I[0],this.match+=I[0],this.matches=I,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(I[0].length),this.matched+=I[0],G=this.performAction.call(this,this.yy,this,B,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),G)return G;if(this._backtrack){for(var A in F)this[A]=F[A];return!1}return!1},"test_match"),next:a(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var I,B,G,P;this._more||(this.yytext="",this.match="");for(var F=this._currentRules(),A=0;A<F.length;A++)if(G=this._input.match(this.rules[F[A]]),G&&(!B||G[0].length>B[0].length)){if(B=G,P=A,this.options.backtrack_lexer){if(I=this.test_match(G,F[A]),I!==!1)return I;if(this._backtrack){B=!1;continue}else return!1}else if(!this.options.flex)break}return B?(I=this.test_match(B,F[P]),I!==!1?I:!1):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:a(function(){var B=this.next();return B||this.lex()},"lex"),begin:a(function(B){this.conditionStack.push(B)},"begin"),popState:a(function(){var B=this.conditionStack.length-1;return B>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:a(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:a(function(B){return B=this.conditionStack.length-1-Math.abs(B||0),B>=0?this.conditionStack[B]:"INITIAL"},"topState"),pushState:a(function(B){this.begin(B)},"pushState"),stateStackSize:a(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:a(function(B,G,P,F){var A=F;switch(P){case 0:return this.pushState("shapeData"),G.yytext="",24;break;case 1:return this.pushState("shapeDataStr"),24;break;case 2:return this.popState(),24;break;case 3:let D=/\n\s*/g;return G.yytext=G.yytext.replace(D,"<br/>"),24;break;case 4:return 24;case 5:this.popState();break;case 6:return B.getLogger().trace("Found comment",G.yytext),6;break;case 7:return 8;case 8:this.begin("CLASS");break;case 9:return this.popState(),17;break;case 10:this.popState();break;case 11:B.getLogger().trace("Begin icon"),this.begin("ICON");break;case 12:return B.getLogger().trace("SPACELINE"),6;break;case 13:return 7;case 14:return 16;case 15:B.getLogger().trace("end icon"),this.popState();break;case 16:return B.getLogger().trace("Exploding node"),this.begin("NODE"),20;break;case 17:return B.getLogger().trace("Cloud"),this.begin("NODE"),20;break;case 18:return B.getLogger().trace("Explosion Bang"),this.begin("NODE"),20;break;case 19:return B.getLogger().trace("Cloud Bang"),this.begin("NODE"),20;break;case 20:return this.begin("NODE"),20;break;case 21:return this.begin("NODE"),20;break;case 22:return this.begin("NODE"),20;break;case 23:return this.begin("NODE"),20;break;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:B.getLogger().trace("Starting NSTR"),this.begin("NSTR");break;case 31:return B.getLogger().trace("description:",G.yytext),"NODE_DESCR";break;case 32:this.popState();break;case 33:return this.popState(),B.getLogger().trace("node end ))"),"NODE_DEND";break;case 34:return this.popState(),B.getLogger().trace("node end )"),"NODE_DEND";break;case 35:return this.popState(),B.getLogger().trace("node end ...",G.yytext),"NODE_DEND";break;case 36:return this.popState(),B.getLogger().trace("node end (("),"NODE_DEND";break;case 37:return this.popState(),B.getLogger().trace("node end (-"),"NODE_DEND";break;case 38:return this.popState(),B.getLogger().trace("node end (-"),"NODE_DEND";break;case 39:return this.popState(),B.getLogger().trace("node end (("),"NODE_DEND";break;case 40:return this.popState(),B.getLogger().trace("node end (("),"NODE_DEND";break;case 41:return B.getLogger().trace("Long description:",G.yytext),21;break;case 42:return B.getLogger().trace("Long description:",G.yytext),21;break}},"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}}};return L})();S.lexer=w;function _(){this.yy={}}return a(_,"Parser"),_.prototype=S,S.Parser=_,new _})();fB.parser=fB;dxe=fB});var xs,mB,pB,gB,Utt,Htt,pxe,Ytt,Ktt,ji,Xtt,Qtt,Ztt,Jtt,ert,trt,rrt,mxe,gxe=v(()=>{"use strict";bt();dr();nt();gn();Hy();xs=[],mB=[],pB=0,gB={},Utt=a(()=>{xs=[],mB=[],pB=0,gB={}},"clear"),Htt=a(e=>{if(xs.length===0)return null;let t=xs[0].level,r=null;for(let i=xs.length-1;i>=0;i--)if(xs[i].level===t&&!r&&(r=xs[i]),xs[i].level<t)throw new Error('Items without section detected, found section ("'+xs[i].label+'")');return e===r?.level?null:r},"getSection"),pxe=a(function(){return mB},"getSections"),Ytt=a(function(){let e=[],t=[],r=pxe(),i=J();for(let n of r){let s={id:n.id,label:rr(n.label??"",i),labelType:"markdown",isGroup:!0,ticket:n.ticket,shape:"kanbanSection",level:n.level,look:i.look};t.push(s);let o=xs.filter(l=>l.parentId===n.id);for(let l of o){let u={id:l.id,parentId:n.id,label:rr(l.label??"",i),labelType:"markdown",isGroup:!1,ticket:l?.ticket,priority:l?.priority,assigned:l?.assigned,icon:l?.icon,shape:"kanbanItem",level:l.level,rx:5,ry:5,cssStyles:["text-align: left"]};t.push(u)}}return{nodes:t,edges:e,other:{},config:J()}},"getData"),Ktt=a((e,t,r,i,n)=>{let s=J(),o=s.mindmap?.padding??Ut.mindmap.padding;switch(i){case ji.ROUNDED_RECT:case ji.RECT:case ji.HEXAGON:o*=2}let l={id:rr(t,s)||"kbn"+pB++,level:e,label:rr(r,s),width:s.mindmap?.maxNodeWidth??Ut.mindmap.maxNodeWidth,padding:o,isGroup:!1};if(n!==void 0){let h;n.includes(`
`)?h=n+`
`:h=`{
`+n+`
}`;let d=Pc(h,{schema:Oc});if(d.shape&&(d.shape!==d.shape.toLowerCase()||d.shape.includes("_")))throw new Error(`No such shape: ${d.shape}. Shape names should be lowercase.`);d?.shape&&d.shape==="kanbanItem"&&(l.shape=d?.shape),d?.label&&(l.label=d?.label),d?.icon&&(l.icon=d?.icon.toString()),d?.assigned&&(l.assigned=d?.assigned.toString()),d?.ticket&&(l.ticket=d?.ticket.toString()),d?.priority&&(l.priority=d?.priority)}let u=Htt(e);u?l.parentId=u.id||"kbn"+pB++:mB.push(l),xs.push(l)},"addNode"),ji={DEFAULT:0,NO_BORDER:0,ROUNDED_RECT:1,RECT:2,CIRCLE:3,CLOUD:4,BANG:5,HEXAGON:6},Xtt=a((e,t)=>{switch(W.debug("In get type",e,t),e){case"[":return ji.RECT;case"(":return t===")"?ji.ROUNDED_RECT:ji.CLOUD;case"((":return ji.CIRCLE;case")":return ji.CLOUD;case"))":return ji.BANG;case"{{":return ji.HEXAGON;default:return ji.DEFAULT}},"getType"),Qtt=a((e,t)=>{gB[e]=t},"setElementForId"),Ztt=a(e=>{if(!e)return;let t=J(),r=xs[xs.length-1];e.icon&&(r.icon=rr(e.icon,t)),e.class&&(r.cssClasses=rr(e.class,t))},"decorateNode"),Jtt=a(e=>{switch(e){case ji.DEFAULT:return"no-border";case ji.RECT:return"rect";case ji.ROUNDED_RECT:return"rounded-rect";case ji.CIRCLE:return"circle";case ji.CLOUD:return"cloud";case ji.BANG:return"bang";case ji.HEXAGON:return"hexgon";default:return"no-border"}},"type2Str"),ert=a(()=>W,"getLogger"),trt=a(e=>gB[e],"getElementById"),rrt={clear:Utt,addNode:Ktt,getSections:pxe,getData:Ytt,nodeType:ji,getType:Xtt,setElementForId:Qtt,decorateNode:Ztt,type2Str:Jtt,getLogger:ert,getElementById:trt},mxe=rrt});var irt,yxe,xxe=v(()=>{"use strict";bt();nt();ga();Xr();gn();ET();BT();irt=a(async(e,t,r,i)=>{W.debug(`Rendering kanban diagram
`+e);let s=i.db.getData(),o=J();o.htmlLabels=!1;let l=Yr(t);for(let b of s.nodes)b.domId=`${t}-${b.id}`;let u=l.append("g");u.attr("class","sections");let h=l.append("g");h.attr("class","items");let d=s.nodes.filter(b=>b.isGroup),f=0,p=10,m=[],g=25;for(let b of d){let T=o?.kanban?.sectionWidth||200;f=f+1,b.x=T*f+(f-1)*p/2,b.width=T,b.y=0,b.height=T*3,b.rx=5,b.ry=5,b.cssClasses=b.cssClasses+" section-"+f;let k=await dp(u,b);g=Math.max(g,k?.labelBBox?.height),m.push(k)}let x=0;for(let b of d){let T=m[x];x=x+1;let k=o?.kanban?.sectionWidth||200,C=-k*3/2+g,S=C,w=s.nodes.filter(I=>I.parentId===b.id);for(let I of w){if(I.isGroup)throw new Error("Groups within groups are not allowed in Kanban diagrams");I.x=b.x,I.width=k-1.5*p;let G=(await fp(h,I,{config:o})).node().getBBox();I.y=S+G.height/2,await l0(I),S=I.y+G.height/2+p/2}let _=T.cluster.select("rect"),L=Math.max(S-C+3*p,50)+(g-25);_.attr("height",L)}uo(void 0,l,o.mindmap?.padding??Ut.kanban.padding,o.mindmap?.useMaxWidth??Ut.kanban.useMaxWidth)},"draw"),yxe={draw:irt}});var nrt,art,bxe,Txe=v(()=>{"use strict";Bi();Gp();nrt=a(e=>{let t="";for(let i=0;i<e.THEME_COLOR_LIMIT;i++)e["lineColor"+i]=e["lineColor"+i]||e["cScaleInv"+i],Or(e["lineColor"+i])?e["lineColor"+i]=Te(e["lineColor"+i],20):e["lineColor"+i]=ke(e["lineColor"+i],20);let r=a((i,n)=>e.darkMode?ke(i,n):Te(i,n),"adjuster");for(let i=0;i<e.THEME_COLOR_LIMIT;i++){let n=""+(17-3*i);t+=`
.section-${i-1} rect, .section-${i-1} path, .section-${i-1} circle, .section-${i-1} polygon, .section-${i-1} path {
fill: ${r(e["cScale"+i],10)};
stroke: ${r(e["cScale"+i],10)};
}
.section-${i-1} text {
fill: ${e["cScaleLabel"+i]};
}
.node-icon-${i-1} {
font-size: 40px;
color: ${e["cScaleLabel"+i]};
}
.section-edge-${i-1}{
stroke: ${e["cScale"+i]};
}
.edge-depth-${i-1}{
stroke-width: ${n};
}
.section-${i-1} line {
stroke: ${e["cScaleInv"+i]} ;
stroke-width: 3;
}
.disabled, .disabled circle, .disabled text {
fill: lightgray;
}
.disabled text {
fill: #efefef;
}
.node rect,
.node circle,
.node ellipse,
.node polygon,
.node path {
fill: ${e.background};
stroke: ${e.nodeBorder};
stroke-width: 1px;
}
.kanban-ticket-link {
fill: ${e.background};
stroke: ${e.nodeBorder};
text-decoration: underline;
}
`}return t},"genSections"),art=a(e=>`
.edge {
stroke-width: 3;
}
${nrt(e)}
.section-root rect, .section-root path, .section-root circle, .section-root polygon {
fill: ${e.git0};
}
.section-root text {
fill: ${e.gitBranchLabel0};
}
.icon-container {
height:100%;
display: flex;
justify-content: center;
align-items: center;
}
.edge {
fill: none;
}
.cluster-label, .label {
color: ${e.textColor};
fill: ${e.textColor};
}
.kanban-label {
dy: 1em;
alignment-baseline: middle;
text-anchor: middle;
dominant-baseline: middle;
text-align: center;
}
${Po()}
`,"getStyles"),bxe=art});var kxe={};tr(kxe,{diagram:()=>srt});var srt,Cxe=v(()=>{"use strict";fxe();gxe();xxe();Txe();srt={db:mxe,renderer:yxe,parser:dxe,styles:bxe}});var yB,kx,_xe=v(()=>{"use strict";yB=(function(){var e=a(function(l,u,h,d){for(h=h||{},d=l.length;d--;h[l[d]]=u);return h},"o"),t=[1,9],r=[1,10],i=[1,5,10,12],n={trace:a(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:a(function(u,h,d,f,p,m,g){var x=m.length-1;switch(p){case 7:let b=f.findOrCreateNode(m[x-4].trim().replaceAll('""','"')),T=f.findOrCreateNode(m[x-2].trim().replaceAll('""','"')),k=parseFloat(m[x].trim());f.addLink(b,T,k);break;case 8:case 9:case 11:this.$=m[x];break;case 10:this.$=m[x-1];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},{5:[1,3]},{6:4,8:5,15:6,16:7,17:8,18:t,20:r},{1:[2,6],7:11,10:[1,12]},e(r,[2,4],{9:13,5:[1,14]}),{12:[1,15]},e(i,[2,8]),e(i,[2,9]),{19:[1,16]},e(i,[2,11]),{1:[2,1]},{1:[2,5]},e(r,[2,2]),{6:17,8:5,15:6,16:7,17:8,18:t,20:r},{15:18,16:7,17:8,18:t,20:r},{18:[1,19]},e(r,[2,3]),{12:[1,20]},e(i,[2,10]),{15:21,16:7,17:8,18:t,20:r},e([1,5,10],[2,7])],defaultActions:{11:[2,1],12:[2,5]},parseError:a(function(u,h){if(h.recoverable)this.trace(u);else{var d=new Error(u);throw d.hash=h,d}},"parseError"),parse:a(function(u){var h=this,d=[0],f=[],p=[null],m=[],g=this.table,x="",b=0,T=0,k=0,C=2,S=1,w=m.slice.call(arguments,1),_=Object.create(this.lexer),L={yy:{}};for(var I in this.yy)Object.prototype.hasOwnProperty.call(this.yy,I)&&(L.yy[I]=this.yy[I]);_.setInput(u,L.yy),L.yy.lexer=_,L.yy.parser=this,typeof _.yylloc>"u"&&(_.yylloc={});var B=_.yylloc;m.push(B);var G=_.options&&_.options.ranges;typeof L.yy.parseError=="function"?this.parseError=L.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function P(j){d.length=d.length-2*j,p.length=p.length-j,m.length=m.length-j}a(P,"popStack");function F(){var j;return j=f.pop()||_.lex()||S,typeof j!="number"&&(j instanceof Array&&(f=j,j=f.pop()),j=h.symbols_[j]||j),j}a(F,"lex");for(var A,D,R,N,$,E,M={},V,O,z,U;;){if(R=d[d.length-1],this.defaultActions[R]?N=this.defaultActions[R]:((A===null||typeof A>"u")&&(A=F()),N=g[R]&&g[R][A]),typeof N>"u"||!N.length||!N[0]){var K="";U=[];for(V in g[R])this.terminals_[V]&&V>C&&U.push("'"+this.terminals_[V]+"'");_.showPosition?K="Parse error on line "+(b+1)+`:
`+_.showPosition()+`
Expecting `+U.join(", ")+", got '"+(this.terminals_[A]||A)+"'":K="Parse error on line "+(b+1)+": Unexpected "+(A==S?"end of input":"'"+(this.terminals_[A]||A)+"'"),this.parseError(K,{text:_.match,token:this.terminals_[A]||A,line:_.yylineno,loc:B,expected:U})}if(N[0]instanceof Array&&N.length>1)throw new Error("Parse Error: multiple actions possible at state: "+R+", token: "+A);switch(N[0]){case 1:d.push(A),p.push(_.yytext),m.push(_.yylloc),d.push(N[1]),A=null,D?(A=D,D=null):(T=_.yyleng,x=_.yytext,b=_.yylineno,B=_.yylloc,k>0&&k--);break;case 2:if(O=this.productions_[N[1]][1],M.$=p[p.length-O],M._$={first_line:m[m.length-(O||1)].first_line,last_line:m[m.length-1].last_line,first_column:m[m.length-(O||1)].first_column,last_column:m[m.length-1].last_column},G&&(M._$.range=[m[m.length-(O||1)].range[0],m[m.length-1].range[1]]),E=this.performAction.apply(M,[x,T,b,L.yy,N[1],p,m].concat(w)),typeof E<"u")return E;O&&(d=d.slice(0,-1*O*2),p=p.slice(0,-1*O),m=m.slice(0,-1*O)),d.push(this.productions_[N[1]][0]),p.push(M.$),m.push(M._$),z=g[d[d.length-2]][d[d.length-1]],d.push(z);break;case 3:return!0}}return!0},"parse")},s=(function(){var l={EOF:1,parseError:a(function(h,d){if(this.yy.parser)this.yy.parser.parseError(h,d);else throw new Error(h)},"parseError"),setInput:a(function(u,h){return this.yy=h||this.yy||{},this._input=u,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:a(function(){var u=this._input[0];this.yytext+=u,this.yyleng++,this.offset++,this.match+=u,this.matched+=u;var h=u.match(/(?:\r\n?|\n).*/g);return h?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),u},"input"),unput:a(function(u){var h=u.length,d=u.split(/(?:\r\n?|\n)/g);this._input=u+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-h),this.offset-=h;var f=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),d.length-1&&(this.yylineno-=d.length-1);var p=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:d?(d.length===f.length?this.yylloc.first_column:0)+f[f.length-d.length].length-d[0].length:this.yylloc.first_column-h},this.options.ranges&&(this.yylloc.range=[p[0],p[0]+this.yyleng-h]),this.yyleng=this.yytext.length,this},"unput"),more:a(function(){return this._more=!0,this},"more"),reject:a(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:a(function(u){this.unput(this.match.slice(u))},"less"),pastInput:a(function(){var u=this.matched.substr(0,this.matched.length-this.match.length);return(u.length>20?"...":"")+u.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:a(function(){var u=this.match;return u.length<20&&(u+=this._input.substr(0,20-u.length)),(u.substr(0,20)+(u.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:a(function(){var u=this.pastInput(),h=new Array(u.length+1).join("-");return u+this.upcomingInput()+`
`+h+"^"},"showPosition"),test_match:a(function(u,h){var d,f,p;if(this.options.backtrack_lexer&&(p={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&&(p.yylloc.range=this.yylloc.range.slice(0))),f=u[0].match(/(?:\r\n?|\n).*/g),f&&(this.yylineno+=f.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:f?f[f.length-1].length-f[f.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+u[0].length},this.yytext+=u[0],this.match+=u[0],this.matches=u,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(u[0].length),this.matched+=u[0],d=this.performAction.call(this,this.yy,this,h,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),d)return d;if(this._backtrack){for(var m in p)this[m]=p[m];return!1}return!1},"test_match"),next:a(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var u,h,d,f;this._more||(this.yytext="",this.match="");for(var p=this._currentRules(),m=0;m<p.length;m++)if(d=this._input.match(this.rules[p[m]]),d&&(!h||d[0].length>h[0].length)){if(h=d,f=m,this.options.backtrack_lexer){if(u=this.test_match(d,p[m]),u!==!1)return u;if(this._backtrack){h=!1;continue}else return!1}else if(!this.options.flex)break}return h?(u=this.test_match(h,p[f]),u!==!1?u:!1):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:a(function(){var h=this.next();return h||this.lex()},"lex"),begin:a(function(h){this.conditionStack.push(h)},"begin"),popState:a(function(){var h=this.conditionStack.length-1;return h>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:a(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:a(function(h){return h=this.conditionStack.length-1-Math.abs(h||0),h>=0?this.conditionStack[h]:"INITIAL"},"topState"),pushState:a(function(h){this.begin(h)},"pushState"),stateStackSize:a(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:a(function(h,d,f,p){var m=p;switch(f){case 0:return this.pushState("csv"),4;break;case 1:return this.pushState("csv"),4;break;case 2:return 10;case 3:return 5;case 4:return 12;case 5:return this.pushState("escaped_text"),18;break;case 6:return 20;case 7:return this.popState("escaped_text"),18;break;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}}};return l})();n.lexer=s;function o(){this.yy={}}return a(o,"Parser"),o.prototype=n,n.Parser=o,new o})();yB.parser=yB;kx=yB});var H_,Y_,U_,urt,xB,hrt,bB,drt,frt,prt,mrt,wxe,Exe=v(()=>{"use strict";bt();dr();zr();H_=[],Y_=[],U_=new Map,urt=a(()=>{H_=[],Y_=[],U_=new Map,Ht()},"clear"),xB=class{constructor(t,r,i=0){this.source=t;this.target=r;this.value=i}static{a(this,"SankeyLink")}},hrt=a((e,t,r)=>{H_.push(new xB(e,t,r))},"addLink"),bB=class{constructor(t){this.ID=t}static{a(this,"SankeyNode")}},drt=a(e=>{e=He.sanitizeText(e,J());let t=U_.get(e);return t===void 0&&(t=new bB(e),U_.set(e,t),Y_.push(t)),t},"findOrCreateNode"),frt=a(()=>Y_,"getNodes"),prt=a(()=>H_,"getLinks"),mrt=a(()=>({nodes:Y_.map(e=>({id:e.ID})),links:H_.map(e=>({source:e.source.ID,target:e.target.ID,value:e.value}))}),"getGraph"),wxe={nodesMap:U_,getConfig:a(()=>J().sankey,"getConfig"),getNodes:frt,getLinks:prt,getGraph:mrt,addLink:hrt,findOrCreateNode:drt,getAccTitle:Qt,setAccTitle:Yt,getAccDescription:Jt,setAccDescription:Zt,getDiagramTitle:er,setDiagramTitle:ir,clear:urt}});function Cx(e,t){let r;if(t===void 0)for(let i of e)i!=null&&(r<i||r===void 0&&i>=i)&&(r=i);else{let i=-1;for(let n of e)(n=t(n,++i,e))!=null&&(r<n||r===void 0&&n>=n)&&(r=n)}return r}var Axe=v(()=>{"use strict";a(Cx,"max")});function Hm(e,t){let r;if(t===void 0)for(let i of e)i!=null&&(r>i||r===void 0&&i>=i)&&(r=i);else{let i=-1;for(let n of e)(n=t(n,++i,e))!=null&&(r>n||r===void 0&&n>=n)&&(r=n)}return r}var Rxe=v(()=>{"use strict";a(Hm,"min")});function Ym(e,t){let r=0;if(t===void 0)for(let i of e)(i=+i)&&(r+=i);else{let i=-1;for(let n of e)(n=+t(n,++i,e))&&(r+=n)}return r}var Lxe=v(()=>{"use strict";a(Ym,"sum")});var TB=v(()=>{"use strict";Axe();Rxe();Lxe()});function grt(e){return e.target.depth}function kB(e){return e.depth}function CB(e,t){return t-1-e.height}function vx(e,t){return e.sourceLinks.length?e.depth:t-1}function vB(e){return e.targetLinks.length?e.depth:e.sourceLinks.length?Hm(e.sourceLinks,grt)-1:0}var SB=v(()=>{"use strict";TB();a(grt,"targetDepth");a(kB,"left");a(CB,"right");a(vx,"justify");a(vB,"center")});function Km(e){return function(){return e}}var Dxe=v(()=>{"use strict";a(Km,"constant")});function Ixe(e,t){return K_(e.source,t.source)||e.index-t.index}function Nxe(e,t){return K_(e.target,t.target)||e.index-t.index}function K_(e,t){return e.y0-t.y0}function _B(e){return e.value}function yrt(e){return e.index}function xrt(e){return e.nodes}function brt(e){return e.links}function Mxe(e,t){let r=e.get(t);if(!r)throw new Error("missing: "+t);return r}function Oxe({nodes:e}){for(let t of e){let r=t.y0,i=r;for(let n of t.sourceLinks)n.y0=r+n.width/2,r+=n.width;for(let n of t.targetLinks)n.y1=i+n.width/2,i+=n.width}}function X_(){let e=0,t=0,r=1,i=1,n=24,s=8,o,l=yrt,u=vx,h,d,f=xrt,p=brt,m=6;function g(){let R={nodes:f.apply(null,arguments),links:p.apply(null,arguments)};return x(R),b(R),T(R),k(R),w(R),Oxe(R),R}a(g,"sankey"),g.update=function(R){return Oxe(R),R},g.nodeId=function(R){return arguments.length?(l=typeof R=="function"?R:Km(R),g):l},g.nodeAlign=function(R){return arguments.length?(u=typeof R=="function"?R:Km(R),g):u},g.nodeSort=function(R){return arguments.length?(h=R,g):h},g.nodeWidth=function(R){return arguments.length?(n=+R,g):n},g.nodePadding=function(R){return arguments.length?(s=o=+R,g):s},g.nodes=function(R){return arguments.length?(f=typeof R=="function"?R:Km(R),g):f},g.links=function(R){return arguments.length?(p=typeof R=="function"?R:Km(R),g):p},g.linkSort=function(R){return arguments.length?(d=R,g):d},g.size=function(R){return arguments.length?(e=t=0,r=+R[0],i=+R[1],g):[r-e,i-t]},g.extent=function(R){return arguments.length?(e=+R[0][0],r=+R[1][0],t=+R[0][1],i=+R[1][1],g):[[e,t],[r,i]]},g.iterations=function(R){return arguments.length?(m=+R,g):m};function x({nodes:R,links:N}){for(let[E,M]of R.entries())M.index=E,M.sourceLinks=[],M.targetLinks=[];let $=new Map(R.map((E,M)=>[l(E,M,R),E]));for(let[E,M]of N.entries()){M.index=E;let{source:V,target:O}=M;typeof V!="object"&&(V=M.source=Mxe($,V)),typeof O!="object"&&(O=M.target=Mxe($,O)),V.sourceLinks.push(M),O.targetLinks.push(M)}if(d!=null)for(let{sourceLinks:E,targetLinks:M}of R)E.sort(d),M.sort(d)}a(x,"computeNodeLinks");function b({nodes:R}){for(let N of R)N.value=N.fixedValue===void 0?Math.max(Ym(N.sourceLinks,_B),Ym(N.targetLinks,_B)):N.fixedValue}a(b,"computeNodeValues");function T({nodes:R}){let N=R.length,$=new Set(R),E=new Set,M=0;for(;$.size;){for(let V of $){V.depth=M;for(let{target:O}of V.sourceLinks)E.add(O)}if(++M>N)throw new Error("circular link");$=E,E=new Set}}a(T,"computeNodeDepths");function k({nodes:R}){let N=R.length,$=new Set(R),E=new Set,M=0;for(;$.size;){for(let V of $){V.height=M;for(let{source:O}of V.targetLinks)E.add(O)}if(++M>N)throw new Error("circular link");$=E,E=new Set}}a(k,"computeNodeHeights");function C({nodes:R}){let N=Cx(R,M=>M.depth)+1,$=(r-e-n)/(N-1),E=new Array(N);for(let M of R){let V=Math.max(0,Math.min(N-1,Math.floor(u.call(null,M,N))));M.layer=V,M.x0=e+V*$,M.x1=M.x0+n,E[V]?E[V].push(M):E[V]=[M]}if(h)for(let M of E)M.sort(h);return E}a(C,"computeNodeLayers");function S(R){let N=Hm(R,$=>(i-t-($.length-1)*o)/Ym($,_B));for(let $ of R){let E=t;for(let M of $){M.y0=E,M.y1=E+M.value*N,E=M.y1+o;for(let V of M.sourceLinks)V.width=V.value*N}E=(i-E+o)/($.length+1);for(let M=0;M<$.length;++M){let V=$[M];V.y0+=E*(M+1),V.y1+=E*(M+1)}F($)}}a(S,"initializeNodeBreadths");function w(R){let N=C(R);o=Math.min(s,(i-t)/(Cx(N,$=>$.length)-1)),S(N);for(let $=0;$<m;++$){let E=Math.pow(.99,$),M=Math.max(1-E,($+1)/m);L(N,E,M),_(N,E,M)}}a(w,"computeNodeBreadths");function _(R,N,$){for(let E=1,M=R.length;E<M;++E){let V=R[E];for(let O of V){let z=0,U=0;for(let{source:j,value:ae}of O.targetLinks){let X=ae*(O.layer-j.layer);z+=A(j,O)*X,U+=X}if(!(U>0))continue;let K=(z/U-O.y0)*N;O.y0+=K,O.y1+=K,P(O)}h===void 0&&V.sort(K_),I(V,$)}}a(_,"relaxLeftToRight");function L(R,N,$){for(let E=R.length,M=E-2;M>=0;--M){let V=R[M];for(let O of V){let z=0,U=0;for(let{target:j,value:ae}of O.sourceLinks){let X=ae*(j.layer-O.layer);z+=D(O,j)*X,U+=X}if(!(U>0))continue;let K=(z/U-O.y0)*N;O.y0+=K,O.y1+=K,P(O)}h===void 0&&V.sort(K_),I(V,$)}}a(L,"relaxRightToLeft");function I(R,N){let $=R.length>>1,E=R[$];G(R,E.y0-o,$-1,N),B(R,E.y1+o,$+1,N),G(R,i,R.length-1,N),B(R,t,0,N)}a(I,"resolveCollisions");function B(R,N,$,E){for(;$<R.length;++$){let M=R[$],V=(N-M.y0)*E;V>1e-6&&(M.y0+=V,M.y1+=V),N=M.y1+o}}a(B,"resolveCollisionsTopToBottom");function G(R,N,$,E){for(;$>=0;--$){let M=R[$],V=(M.y1-N)*E;V>1e-6&&(M.y0-=V,M.y1-=V),N=M.y0-o}}a(G,"resolveCollisionsBottomToTop");function P({sourceLinks:R,targetLinks:N}){if(d===void 0){for(let{source:{sourceLinks:$}}of N)$.sort(Nxe);for(let{target:{targetLinks:$}}of R)$.sort(Ixe)}}a(P,"reorderNodeLinks");function F(R){if(d===void 0)for(let{sourceLinks:N,targetLinks:$}of R)N.sort(Nxe),$.sort(Ixe)}a(F,"reorderLinks");function A(R,N){let $=R.y0-(R.sourceLinks.length-1)*o/2;for(let{target:E,width:M}of R.sourceLinks){if(E===N)break;$+=M+o}for(let{source:E,width:M}of N.targetLinks){if(E===R)break;$-=M}return $}a(A,"targetTop");function D(R,N){let $=N.y0-(N.targetLinks.length-1)*o/2;for(let{source:E,width:M}of N.targetLinks){if(E===R)break;$+=M+o}for(let{target:E,width:M}of R.sourceLinks){if(E===N)break;$-=M}return $}return a(D,"sourceTop"),g}var Pxe=v(()=>{"use strict";TB();SB();Dxe();a(Ixe,"ascendingSourceBreadth");a(Nxe,"ascendingTargetBreadth");a(K_,"ascendingBreadth");a(_B,"value");a(yrt,"defaultId");a(xrt,"defaultNodes");a(brt,"defaultLinks");a(Mxe,"find");a(Oxe,"computeLinkBreadths");a(X_,"Sankey")});function AB(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function Bxe(){return new AB}var wB,EB,df,Trt,RB,$xe=v(()=>{"use strict";wB=Math.PI,EB=2*wB,df=1e-6,Trt=EB-df;a(AB,"Path");a(Bxe,"path");AB.prototype=Bxe.prototype={constructor:AB,moveTo:a(function(e,t){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)},"moveTo"),closePath:a(function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},"closePath"),lineTo:a(function(e,t){this._+="L"+(this._x1=+e)+","+(this._y1=+t)},"lineTo"),quadraticCurveTo:a(function(e,t,r,i){this._+="Q"+ +e+","+ +t+","+(this._x1=+r)+","+(this._y1=+i)},"quadraticCurveTo"),bezierCurveTo:a(function(e,t,r,i,n,s){this._+="C"+ +e+","+ +t+","+ +r+","+ +i+","+(this._x1=+n)+","+(this._y1=+s)},"bezierCurveTo"),arcTo:a(function(e,t,r,i,n){e=+e,t=+t,r=+r,i=+i,n=+n;var s=this._x1,o=this._y1,l=r-e,u=i-t,h=s-e,d=o-t,f=h*h+d*d;if(n<0)throw new Error("negative radius: "+n);if(this._x1===null)this._+="M"+(this._x1=e)+","+(this._y1=t);else if(f>df)if(!(Math.abs(d*l-u*h)>df)||!n)this._+="L"+(this._x1=e)+","+(this._y1=t);else{var p=r-s,m=i-o,g=l*l+u*u,x=p*p+m*m,b=Math.sqrt(g),T=Math.sqrt(f),k=n*Math.tan((wB-Math.acos((g+f-x)/(2*b*T)))/2),C=k/T,S=k/b;Math.abs(C-1)>df&&(this._+="L"+(e+C*h)+","+(t+C*d)),this._+="A"+n+","+n+",0,0,"+ +(d*p>h*m)+","+(this._x1=e+S*l)+","+(this._y1=t+S*u)}},"arcTo"),arc:a(function(e,t,r,i,n,s){e=+e,t=+t,r=+r,s=!!s;var o=r*Math.cos(i),l=r*Math.sin(i),u=e+o,h=t+l,d=1^s,f=s?i-n:n-i;if(r<0)throw new Error("negative radius: "+r);this._x1===null?this._+="M"+u+","+h:(Math.abs(this._x1-u)>df||Math.abs(this._y1-h)>df)&&(this._+="L"+u+","+h),r&&(f<0&&(f=f%EB+EB),f>Trt?this._+="A"+r+","+r+",0,1,"+d+","+(e-o)+","+(t-l)+"A"+r+","+r+",0,1,"+d+","+(this._x1=u)+","+(this._y1=h):f>df&&(this._+="A"+r+","+r+",0,"+ +(f>=wB)+","+d+","+(this._x1=e+r*Math.cos(n))+","+(this._y1=t+r*Math.sin(n))))},"arc"),rect:a(function(e,t,r,i){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)+"h"+ +r+"v"+ +i+"h"+-r+"Z"},"rect"),toString:a(function(){return this._},"toString")};RB=Bxe});var Fxe=v(()=>{"use strict";$xe()});function Q_(e){return a(function(){return e},"constant")}var Vxe=v(()=>{"use strict";a(Q_,"default")});function Gxe(e){return e[0]}function Wxe(e){return e[1]}var zxe=v(()=>{"use strict";a(Gxe,"x");a(Wxe,"y")});var qxe,jxe=v(()=>{"use strict";qxe=Array.prototype.slice});function krt(e){return e.source}function Crt(e){return e.target}function vrt(e){var t=krt,r=Crt,i=Gxe,n=Wxe,s=null;function o(){var l,u=qxe.call(arguments),h=t.apply(this,u),d=r.apply(this,u);if(s||(s=l=RB()),e(s,+i.apply(this,(u[0]=h,u)),+n.apply(this,u),+i.apply(this,(u[0]=d,u)),+n.apply(this,u)),l)return s=null,l+""||null}return a(o,"link"),o.source=function(l){return arguments.length?(t=l,o):t},o.target=function(l){return arguments.length?(r=l,o):r},o.x=function(l){return arguments.length?(i=typeof l=="function"?l:Q_(+l),o):i},o.y=function(l){return arguments.length?(n=typeof l=="function"?l:Q_(+l),o):n},o.context=function(l){return arguments.length?(s=l??null,o):s},o}function Srt(e,t,r,i,n){e.moveTo(t,r),e.bezierCurveTo(t=(t+i)/2,r,t,n,i,n)}function LB(){return vrt(Srt)}var Uxe=v(()=>{"use strict";Fxe();jxe();Vxe();zxe();a(krt,"linkSource");a(Crt,"linkTarget");a(vrt,"link");a(Srt,"curveHorizontal");a(LB,"linkHorizontal")});var Hxe=v(()=>{"use strict";Uxe()});function _rt(e){return[e.source.x1,e.y0]}function wrt(e){return[e.target.x0,e.y1]}function Z_(){return LB().source(_rt).target(wrt)}var Yxe=v(()=>{"use strict";Hxe();a(_rt,"horizontalSource");a(wrt,"horizontalTarget");a(Z_,"default")});var Kxe=v(()=>{"use strict";Pxe();SB();Yxe()});var Sx,Xxe=v(()=>{"use strict";Sx=class e{static{a(this,"Uid")}static{this.count=0}static next(t){return new e(t+ ++e.count)}constructor(t){this.id=t,this.href=`#${t}`}toString(){return"url("+this.href+")"}}});var Ert,Art,Rrt,Qxe,Zxe=v(()=>{"use strict";bt();sr();Kxe();Xr();Xxe();Ert={left:kB,right:CB,center:vB,justify:vx},Art=a(e=>{let t=0,r=0;for(let i of e){let n=i.value??0;n>t&&(t=n,r=i.layer??0)}return r},"findCentralNodeLayer"),Rrt=a(function(e,t,r,i){let{securityLevel:n,sankey:s}=J(),o=rb.sankey,l;n==="sandbox"&&(l=Se("#i"+t));let u=n==="sandbox"?Se(l.nodes()[0].contentDocument.body):Se("body"),h=n==="sandbox"?u.select(`[id="${t}"]`):Se(`[id="${t}"]`),d=s?.width??o.width,f=s?.height??o.width,p=s?.useMaxWidth??o.useMaxWidth,m=s?.nodeAlignment??o.nodeAlignment,g=s?.prefix??o.prefix,x=s?.suffix??o.suffix,b=s?.showValues??o.showValues,T=s?.nodeWidth??o.nodeWidth??10,k=s?.nodePadding??o.nodePadding??12,C=s?.labelStyle??o.labelStyle??"legacy",S=s?.nodeColors??{},w=i.db.getGraph(),_=Ert[m];X_().nodeId(E=>E.id).nodeWidth(T).nodePadding(k+(b?15:0)).nodeAlign(_).extent([[0,0],[d,f]])(w);let I=Art(w.nodes),B=ka(P4),G=a(E=>S[E]??B(E),"getNodeColor");h.append("g").attr("class","nodes").selectAll(".node").data(w.nodes).join("g").attr("class","node").attr("id",E=>(E.uid=Sx.next("node-")).id).attr("transform",function(E){return"translate("+E.x0+","+E.y0+")"}).attr("x",E=>E.x0).attr("y",E=>E.y0).append("rect").attr("height",E=>E.y1-E.y0).attr("width",E=>E.x1-E.x0).attr("fill",E=>G(E.id));let P=a(({id:E,value:M})=>b?`${E}
${g}${Math.round(M*100)/100}${x}`:E,"getText"),F=a(E=>C==="outlined"?(E.layer??0)<I?{x:E.x0-6,anchor:"end"}:{x:E.x1+6,anchor:"start"}:E.x0<d/2?{x:E.x1+6,anchor:"start"}:{x:E.x0-6,anchor:"end"},"getLabelPosition"),A=h.append("g").attr("class","node-labels").attr("font-size",14),D=a(E=>A.selectAll(E?`.${E}`:"text").data(w.nodes).join("text").attr("class",E??null).attr("x",M=>F(M).x).attr("y",M=>(M.y1+M.y0)/2).attr("dy",`${b?"0":"0.35"}em`).attr("text-anchor",M=>F(M).anchor).text(P),"appendLabel");C==="outlined"?(D("sankey-label-bg"),D("sankey-label-fg")):D();let R=h.append("g").attr("class","links").attr("fill","none").attr("stroke-opacity",.5).selectAll(".link").data(w.links).join("g").attr("class","link").style("mix-blend-mode","multiply"),N=s?.linkColor??"gradient";if(N==="gradient"){let E=R.append("linearGradient").attr("id",M=>(M.uid=Sx.next("linearGradient-")).id).attr("gradientUnits","userSpaceOnUse").attr("x1",M=>M.source.x1).attr("x2",M=>M.target.x0);E.append("stop").attr("offset","0%").attr("stop-color",M=>G(M.source.id)),E.append("stop").attr("offset","100%").attr("stop-color",M=>G(M.target.id))}let $;switch(N){case"gradient":$=a(E=>E.uid,"coloring");break;case"source":$=a(E=>G(E.source.id),"coloring");break;case"target":$=a(E=>G(E.target.id),"coloring");break;default:$=N}R.append("path").attr("d",Z_()).attr("stroke",$).attr("stroke-width",E=>Math.max(1,E.width)),uo(void 0,h,0,p)},"draw"),Qxe={draw:Rrt}});var Jxe,ebe=v(()=>{"use strict";Jxe=a(e=>e.replaceAll(/^[^\S\n\r]+|[^\S\n\r]+$/g,"").replaceAll(/([\n\r])+/g,`
`).trim(),"prepareTextForParsing")});var Lrt,tbe,rbe=v(()=>{"use strict";Lrt=a(e=>`.label {
font-family: ${e.fontFamily};
}
.node-labels {
font-family: ${e.fontFamily};
}
/* Outlined label style - background stroke for better readability */
.sankey-label-bg {
stroke: ${e.mainBkg||e.background||"#fff"};
stroke-width: 4px;
stroke-linejoin: round;
paint-order: stroke;
}
/* Foreground label text */
.sankey-label-fg {
fill: ${e.textColor};
}
/* Node styling */
.node rect {
shape-rendering: crispEdges;
}
/* Link styling */
.link {
fill: none;
stroke-opacity: 0.5;
mix-blend-mode: multiply;
}
`,"getStyles"),tbe=Lrt});var ibe={};tr(ibe,{diagram:()=>Irt});var Drt,Irt,nbe=v(()=>{"use strict";_xe();Exe();Zxe();ebe();rbe();Drt=kx.parse.bind(kx);kx.parse=e=>Drt(Jxe(e));Irt={styles:tbe,parser:kx,db:wxe,renderer:Qxe}});var Prt,Xm,DB=v(()=>{"use strict";Xt();gn();Et();zr();Prt=Ut.packet,Xm=class{constructor(){this.packet=[];this.setAccTitle=Yt;this.getAccTitle=Qt;this.setDiagramTitle=ir;this.getDiagramTitle=er;this.getAccDescription=Jt;this.setAccDescription=Zt}static{a(this,"PacketDB")}getConfig(){let t=xr({...Prt,...ct().packet});return t.showBits&&(t.paddingY+=10),t}getPacket(){return this.packet}pushWord(t){t.length>0&&this.packet.push(t)}clear(){Ht(),this.packet=[]}}});var Brt,$rt,Frt,IB,obe=v(()=>{"use strict";to();nt();Jl();DB();Brt=1e4,$rt=a((e,t)=>{Sn(e,t);let r=-1,i=[],n=1,{bitsPerRow:s}=t.getConfig();for(let{start:o,end:l,bits:u,label:h}of e.blocks){if(o!==void 0&&l!==void 0&&l<o)throw new Error(`Packet block ${o} - ${l} is invalid. End must be greater than start.`);if(o??=r+1,o!==r+1)throw new Error(`Packet block ${o} - ${l??o} is not contiguous. It should start from ${r+1}.`);if(u===0)throw new Error(`Packet block ${o} is invalid. Cannot have a zero bit field.`);for(l??=o+(u??1)-1,u??=l-o+1,r=l,W.debug(`Packet block ${o} - ${r} with label ${h}`);i.length<=s+1&&t.getPacket().length<Brt;){let[d,f]=Frt({start:o,end:l,bits:u,label:h},n,s);if(i.push(d),d.end+1===n*s&&(t.pushWord(i),i=[],n++),!f)break;({start:o,end:l,bits:u,label:h}=f)}}t.pushWord(i)},"populate"),Frt=a((e,t,r)=>{if(e.start===void 0)throw new Error("start should have been set during first phase");if(e.end===void 0)throw new Error("end should have been set during first phase");if(e.start>e.end)throw new Error(`Block start ${e.start} is greater than block end ${e.end}.`);if(e.end+1<=t*r)return[e,void 0];let i=t*r-1,n=t*r;return[{start:e.start,end:i,label:e.label,bits:i-e.start},{start:n,end:e.end,label:e.label,bits:e.end-n}]},"getNextFittingBlock"),IB={parser:{yy:void 0},parse:a(async e=>{let t=await zi("packet",e),r=IB.parser?.yy;if(!(r instanceof Xm))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.");W.debug(t),$rt(t,r)},"parse")}});var Vrt,Grt,lbe,cbe=v(()=>{"use strict";ga();Xr();Vrt=a((e,t,r,i)=>{let n=i.db,s=n.getConfig(),{rowHeight:o,paddingY:l,bitWidth:u,bitsPerRow:h}=s,d=n.getPacket(),f=n.getDiagramTitle(),p=o+l,m=p*(d.length+1)-(f?0:o),g=u*h+2,x=Yr(t);x.attr("viewBox",`0 0 ${g} ${m}`),fr(x,m,g,s.useMaxWidth);for(let[b,T]of d.entries())Grt(x,T,b,s);x.append("text").text(f).attr("x",g/2).attr("y",m-p/2).attr("dominant-baseline","middle").attr("text-anchor","middle").attr("class","packetTitle")},"draw"),Grt=a((e,t,r,{rowHeight:i,paddingX:n,paddingY:s,bitWidth:o,bitsPerRow:l,showBits:u})=>{let h=e.append("g"),d=r*(i+s)+s;for(let f of t){let p=f.start%l*o+1,m=(f.end-f.start+1)*o-n;if(h.append("rect").attr("x",p).attr("y",d).attr("width",m).attr("height",i).attr("class","packetBlock"),h.append("text").attr("x",p+m/2).attr("y",d+i/2).attr("class","packetLabel").attr("dominant-baseline","middle").attr("text-anchor","middle").text(f.label),!u)continue;let g=f.end===f.start,x=d-2;h.append("text").attr("x",p+(g?m/2:0)).attr("y",x).attr("class","packetByte start").attr("dominant-baseline","auto").attr("text-anchor",g?"middle":"start").text(f.start),g||h.append("text").attr("x",p+m).attr("y",x).attr("class","packetByte end").attr("dominant-baseline","auto").attr("text-anchor","end").text(f.end)}},"drawWord"),lbe={draw:Vrt}});var Wrt,ube,hbe=v(()=>{"use strict";Et();Wrt={byteFontSize:"10px",startByteColor:"black",endByteColor:"black",labelColor:"black",labelFontSize:"12px",titleColor:"black",titleFontSize:"14px",blockStrokeColor:"black",blockStrokeWidth:"1",blockFillColor:"#efefef"},ube=a(({packet:e}={})=>{let t=xr(Wrt,e);return`
.packetByte {
font-size: ${t.byteFontSize};
}
.packetByte.start {
fill: ${t.startByteColor};
}
.packetByte.end {
fill: ${t.endByteColor};
}
.packetLabel {
fill: ${t.labelColor};
font-size: ${t.labelFontSize};
}
.packetTitle {
fill: ${t.titleColor};
font-size: ${t.titleFontSize};
}
.packetBlock {
stroke: ${t.blockStrokeColor};
stroke-width: ${t.blockStrokeWidth};
fill: ${t.blockFillColor};
}
`},"styles")});var dbe={};tr(dbe,{diagram:()=>zrt});var zrt,fbe=v(()=>{"use strict";DB();obe();cbe();hbe();zrt={parser:IB,get db(){return new Xm},renderer:lbe,styles:ube}});var Qm,gbe,ff,Urt,Hrt,ybe,Yrt,Krt,Xrt,Qrt,Zrt,Jrt,eit,pf,NB=v(()=>{"use strict";Xt();gn();Et();zr();Qm={showLegend:!0,ticks:5,max:null,min:0,graticule:"circle"},gbe={axes:[],curves:[],options:Qm},ff=structuredClone(gbe),Urt=Ut.radar,Hrt=a(()=>xr({...Urt,...ct().radar}),"getConfig"),ybe=a(()=>ff.axes,"getAxes"),Yrt=a(()=>ff.curves,"getCurves"),Krt=a(()=>ff.options,"getOptions"),Xrt=a(e=>{ff.axes=e.map(t=>({name:t.name,label:t.label??t.name}))},"setAxes"),Qrt=a(e=>{ff.curves=e.map(t=>({name:t.name,label:t.label??t.name,entries:Zrt(t.entries)}))},"setCurves"),Zrt=a(e=>{if(e[0].axis==null)return e.map(r=>r.value);let t=ybe();if(t.length===0)throw new Error("Axes must be populated before curves for reference entries");return t.map(r=>{let i=e.find(n=>n.axis?.$refText===r.name);if(i===void 0)throw new Error("Missing entry for axis "+r.label);return i.value})},"computeCurveEntries"),Jrt=a(e=>{let t=e.reduce((r,i)=>(r[i.name]=i,r),{});ff.options={showLegend:t.showLegend?.value??Qm.showLegend,ticks:t.ticks?.value??Qm.ticks,max:t.max?.value??Qm.max,min:t.min?.value??Qm.min,graticule:t.graticule?.value??Qm.graticule}},"setOptions"),eit=a(()=>{Ht(),ff=structuredClone(gbe)},"clear"),pf={getAxes:ybe,getCurves:Yrt,getOptions:Krt,setAxes:Xrt,setCurves:Qrt,setOptions:Jrt,getConfig:Hrt,clear:eit,setAccTitle:Yt,getAccTitle:Qt,setDiagramTitle:ir,getDiagramTitle:er,getAccDescription:Jt,setAccDescription:Zt}});var tit,xbe,bbe=v(()=>{"use strict";to();nt();Jl();NB();tit=a(e=>{Sn(e,pf);let{axes:t,curves:r,options:i}=e;pf.setAxes(t),pf.setCurves(r),pf.setOptions(i)},"populate"),xbe={parse:a(async e=>{let t=await zi("radar",e);W.debug(t),tit(t)},"parse")}});function sit(e,t,r,i,n,s,o){let l=t.length,u=Math.min(o.width,o.height)/2;r.forEach((h,d)=>{if(h.entries.length!==l)return;let f=h.entries.map((p,m)=>{let g=2*Math.PI*m/l-Math.PI/2,x=oit(p,i,n,u),b=x*Math.cos(g),T=x*Math.sin(g);return{x:b,y:T}});s==="circle"?e.append("path").attr("d",lit(f,o.curveTension)).attr("class",`radarCurve-${d}`):s==="polygon"&&e.append("polygon").attr("points",f.map(p=>`${p.x},${p.y}`).join(" ")).attr("class",`radarCurve-${d}`)})}function oit(e,t,r,i){let n=Math.min(Math.max(e,t),r);return i*(n-t)/(r-t)}function lit(e,t){let r=e.length,i=`M${e[0].x},${e[0].y}`;for(let n=0;n<r;n++){let s=e[(n-1+r)%r],o=e[n],l=e[(n+1)%r],u=e[(n+2)%r],h={x:o.x+(l.x-s.x)*t,y:o.y+(l.y-s.y)*t},d={x:l.x-(u.x-o.x)*t,y:l.y-(u.y-o.y)*t};i+=` C${h.x},${h.y} ${d.x},${d.y} ${l.x},${l.y}`}return`${i} Z`}function cit(e,t,r,i){if(!r)return;let n=(i.width/2+i.marginRight)*3/4,s=-(i.height/2+i.marginTop)*3/4,o=20;t.forEach((l,u)=>{let h=e.append("g").attr("transform",`translate(${n}, ${s+u*o})`);h.append("rect").attr("width",12).attr("height",12).attr("class",`radarLegendBox-${u}`),h.append("text").attr("x",16).attr("y",0).attr("class","radarLegendText").text(l.label)})}var rit,iit,nit,ait,Tbe,kbe=v(()=>{"use strict";ga();Xr();rit=a((e,t,r,i)=>{let n=i.db,s=n.getAxes(),o=n.getCurves(),l=n.getOptions(),u=n.getConfig(),h=n.getDiagramTitle(),d=Yr(t),f=iit(d,u),p=l.max??Math.max(...o.map(x=>Math.max(...x.entries))),m=l.min,g=Math.min(u.width,u.height)/2;nit(f,s,g,l.ticks,l.graticule),ait(f,s,g,u),sit(f,s,o,m,p,l.graticule,u),cit(f,o,l.showLegend,u),f.append("text").attr("class","radarTitle").text(h).attr("x",0).attr("y",-u.height/2-u.marginTop)},"draw"),iit=a((e,t)=>{let r=t.width+t.marginLeft+t.marginRight,i=t.height+t.marginTop+t.marginBottom,n={x:t.marginLeft+t.width/2,y:t.marginTop+t.height/2};return fr(e,i,r,t.useMaxWidth??!0),e.attr("viewBox",`0 0 ${r} ${i}`),e.append("g").attr("transform",`translate(${n.x}, ${n.y})`)},"drawFrame"),nit=a((e,t,r,i,n)=>{if(n==="circle")for(let s=0;s<i;s++){let o=r*(s+1)/i;e.append("circle").attr("r",o).attr("class","radarGraticule")}else if(n==="polygon"){let s=t.length;for(let o=0;o<i;o++){let l=r*(o+1)/i,u=t.map((h,d)=>{let f=2*d*Math.PI/s-Math.PI/2,p=l*Math.cos(f),m=l*Math.sin(f);return`${p},${m}`}).join(" ");e.append("polygon").attr("points",u).attr("class","radarGraticule")}}},"drawGraticule"),ait=a((e,t,r,i)=>{let n=t.length;for(let s=0;s<n;s++){let o=t[s].label,l=2*s*Math.PI/n-Math.PI/2;e.append("line").attr("x1",0).attr("y1",0).attr("x2",r*i.axisScaleFactor*Math.cos(l)).attr("y2",r*i.axisScaleFactor*Math.sin(l)).attr("class","radarAxisLine"),e.append("text").text(o).attr("x",r*i.axisLabelFactor*Math.cos(l)).attr("y",r*i.axisLabelFactor*Math.sin(l)).attr("class","radarAxisLabel")}},"drawAxes");a(sit,"drawCurves");a(oit,"relativeRadius");a(lit,"closedRoundCurve");a(cit,"drawLegend");Tbe={draw:rit}});var uit,hit,Cbe,vbe=v(()=>{"use strict";Et();Yu();Xt();uit=a((e,t)=>{let r="";for(let i=0;i<e.THEME_COLOR_LIMIT;i++){let n=e[`cScale${i}`];r+=`
.radarCurve-${i} {
color: ${n};
fill: ${n};
fill-opacity: ${t.curveOpacity};
stroke: ${n};
stroke-width: ${t.curveStrokeWidth};
}
.radarLegendBox-${i} {
fill: ${n};
fill-opacity: ${t.curveOpacity};
stroke: ${n};
}
`}return r},"genIndexStyles"),hit=a(e=>{let t=ja(),r=ct(),i=xr(t,r.themeVariables),n=xr(i.radar,e);return{themeVariables:i,radarOptions:n}},"buildRadarStyleOptions"),Cbe=a(({radar:e}={})=>{let{themeVariables:t,radarOptions:r}=hit(e);return`
.radarTitle {
font-size: ${t.fontSize};
color: ${t.titleColor};
dominant-baseline: hanging;
text-anchor: middle;
}
.radarAxisLine {
stroke: ${r.axisColor};
stroke-width: ${r.axisStrokeWidth};
}
.radarAxisLabel {
dominant-baseline: middle;
text-anchor: middle;
font-size: ${r.axisLabelFontSize}px;
color: ${r.axisColor};
}
.radarGraticule {
fill: ${r.graticuleColor};
fill-opacity: ${r.graticuleOpacity};
stroke: ${r.graticuleColor};
stroke-width: ${r.graticuleStrokeWidth};
}
.radarLegendText {
text-anchor: start;
font-size: ${r.legendFontSize}px;
dominant-baseline: hanging;
}
${uit(t,r)}
`},"styles")});var Sbe={};tr(Sbe,{diagram:()=>dit});var dit,_be=v(()=>{"use strict";NB();bbe();kbe();vbe();dit={parser:xbe,db:pf,renderer:Tbe,styles:Cbe}});var MB,Abe,Rbe=v(()=>{"use strict";MB=(function(){var e=a(function(C,S,w,_){for(w=w||{},_=C.length;_--;w[C[_]]=S);return w},"o"),t=[1,15],r=[1,7],i=[1,13],n=[1,14],s=[1,19],o=[1,16],l=[1,17],u=[1,18],h=[8,30],d=[8,10,21,28,29,30,31,39,43,46],f=[1,23],p=[1,24],m=[8,10,15,16,21,28,29,30,31,39,43,46],g=[8,10,15,16,21,27,28,29,30,31,39,43,46],x=[1,49],b={trace:a(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:a(function(S,w,_,L,I,B,G){var P=B.length-1;switch(I){case 4:L.getLogger().debug("Rule: separator (NL) ");break;case 5:L.getLogger().debug("Rule: separator (Space) ");break;case 6:L.getLogger().debug("Rule: separator (EOF) ");break;case 7:L.getLogger().debug("Rule: hierarchy: ",B[P-1]),L.setHierarchy(B[P-1]);break;case 8:L.getLogger().debug("Stop NL ");break;case 9:L.getLogger().debug("Stop EOF ");break;case 10:L.getLogger().debug("Stop NL2 ");break;case 11:L.getLogger().debug("Stop EOF2 ");break;case 12:L.getLogger().debug("Rule: statement: ",B[P]),typeof B[P].length=="number"?this.$=B[P]:this.$=[B[P]];break;case 13:L.getLogger().debug("Rule: statement #2: ",B[P-1]),this.$=[B[P-1]].concat(B[P]);break;case 14:L.getLogger().debug("Rule: link: ",B[P],S),this.$={edgeTypeStr:B[P],label:""};break;case 15:L.getLogger().debug("Rule: LABEL link: ",B[P-3],B[P-1],B[P]),this.$={edgeTypeStr:B[P],label:B[P-1]};break;case 18:let F=parseInt(B[P]),A=L.generateId();this.$={id:A,type:"space",label:"",width:F,children:[]};break;case 23:L.getLogger().debug("Rule: (nodeStatement link node) ",B[P-2],B[P-1],B[P]," typestr: ",B[P-1].edgeTypeStr);let D=L.edgeStrToEdgeData(B[P-1].edgeTypeStr),R=L.edgeStrToEdgeStartData(B[P-1].edgeTypeStr),N=L.edgeStrToThickness(B[P-1].edgeTypeStr),$=L.edgeStrToPattern(B[P-1].edgeTypeStr);this.$=[{id:B[P-2].id,label:B[P-2].label,type:B[P-2].type,directions:B[P-2].directions},{id:B[P-2].id+"-"+B[P].id,start:B[P-2].id,end:B[P].id,label:B[P-1].label,type:"edge",thickness:N,pattern:$,directions:B[P].directions,arrowTypeEnd:D,arrowTypeStart:R},{id:B[P].id,label:B[P].label,type:L.typeStr2Type(B[P].typeStr),directions:B[P].directions}];break;case 24:L.getLogger().debug("Rule: nodeStatement (abc88 node size) ",B[P-1],B[P]),this.$={id:B[P-1].id,label:B[P-1].label,type:L.typeStr2Type(B[P-1].typeStr),directions:B[P-1].directions,widthInColumns:parseInt(B[P],10)};break;case 25:L.getLogger().debug("Rule: nodeStatement (node) ",B[P]),this.$={id:B[P].id,label:B[P].label,type:L.typeStr2Type(B[P].typeStr),directions:B[P].directions,widthInColumns:1};break;case 26:L.getLogger().debug("APA123",this?this:"na"),L.getLogger().debug("COLUMNS: ",B[P]),this.$={type:"column-setting",columns:B[P]==="auto"?-1:parseInt(B[P])};break;case 27:L.getLogger().debug("Rule: id-block statement : ",B[P-2],B[P-1]);let E=L.generateId();this.$={...B[P-2],type:"composite",children:B[P-1]};break;case 28:L.getLogger().debug("Rule: blockStatement : ",B[P-2],B[P-1],B[P]);let M=L.generateId();this.$={id:M,type:"composite",label:"",children:B[P-1]};break;case 29:L.getLogger().debug("Rule: node (NODE_ID separator): ",B[P]),this.$={id:B[P]};break;case 30:L.getLogger().debug("Rule: node (NODE_ID nodeShapeNLabel separator): ",B[P-1],B[P]),this.$={id:B[P-1],label:B[P].label,typeStr:B[P].typeStr,directions:B[P].directions};break;case 31:L.getLogger().debug("Rule: dirList: ",B[P]),this.$=[B[P]];break;case 32:L.getLogger().debug("Rule: dirList: ",B[P-1],B[P]),this.$=[B[P-1]].concat(B[P]);break;case 33:L.getLogger().debug("Rule: nodeShapeNLabel: ",B[P-2],B[P-1],B[P]),this.$={typeStr:B[P-2]+B[P],label:B[P-1]};break;case 34:L.getLogger().debug("Rule: BLOCK_ARROW nodeShapeNLabel: ",B[P-3],B[P-2]," #3:",B[P-1],B[P]),this.$={typeStr:B[P-3]+B[P],label:B[P-2],directions:B[P-1]};break;case 35:case 36:this.$={type:"classDef",id:B[P-1].trim(),css:B[P].trim()};break;case 37:this.$={type:"applyClass",id:B[P-1].trim(),styleClass:B[P].trim()};break;case 38:this.$={type:"applyStyles",id:B[P-1].trim(),stylesStr:B[P].trim()};break}},"anonymous"),table:[{9:1,10:[1,2]},{1:[3]},{10:t,11:3,13:4,19:5,20:6,21:r,22:8,23:9,24:10,25:11,26:12,28:i,29:n,31:s,39:o,43:l,46:u},{8:[1,20]},e(h,[2,12],{13:4,19:5,20:6,22:8,23:9,24:10,25:11,26:12,11:21,10:t,21:r,28:i,29:n,31:s,39:o,43:l,46:u}),e(d,[2,16],{14:22,15:f,16:p}),e(d,[2,17]),e(d,[2,18]),e(d,[2,19]),e(d,[2,20]),e(d,[2,21]),e(d,[2,22]),e(m,[2,25],{27:[1,25]}),e(d,[2,26]),{19:26,26:12,31:s},{10:t,11:27,13:4,19:5,20:6,21:r,22:8,23:9,24:10,25:11,26:12,28:i,29:n,31:s,39:o,43:l,46:u},{40:[1,28],42:[1,29]},{44:[1,30]},{47:[1,31]},e(g,[2,29],{32:32,35:[1,33],37:[1,34]}),{1:[2,7]},e(h,[2,13]),{26:35,31:s},{31:[2,14]},{17:[1,36]},e(m,[2,24]),{10:t,11:37,13:4,14:22,15:f,16:p,19:5,20:6,21:r,22:8,23:9,24:10,25:11,26:12,28:i,29:n,31:s,39:o,43:l,46:u},{30:[1,38]},{41:[1,39]},{41:[1,40]},{45:[1,41]},{48:[1,42]},e(g,[2,30]),{18:[1,43]},{18:[1,44]},e(m,[2,23]),{18:[1,45]},{30:[1,46]},e(d,[2,28]),e(d,[2,35]),e(d,[2,36]),e(d,[2,37]),e(d,[2,38]),{36:[1,47]},{33:48,34:x},{15:[1,50]},e(d,[2,27]),e(g,[2,33]),{38:[1,51]},{33:52,34:x,38:[2,31]},{31:[2,15]},e(g,[2,34]),{38:[2,32]}],defaultActions:{20:[2,7],23:[2,14],50:[2,15],52:[2,32]},parseError:a(function(S,w){if(w.recoverable)this.trace(S);else{var _=new Error(S);throw _.hash=w,_}},"parseError"),parse:a(function(S){var w=this,_=[0],L=[],I=[null],B=[],G=this.table,P="",F=0,A=0,D=0,R=2,N=1,$=B.slice.call(arguments,1),E=Object.create(this.lexer),M={yy:{}};for(var V in this.yy)Object.prototype.hasOwnProperty.call(this.yy,V)&&(M.yy[V]=this.yy[V]);E.setInput(S,M.yy),M.yy.lexer=E,M.yy.parser=this,typeof E.yylloc>"u"&&(E.yylloc={});var O=E.yylloc;B.push(O);var z=E.options&&E.options.ranges;typeof M.yy.parseError=="function"?this.parseError=M.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function U(Ce){_.length=_.length-2*Ce,I.length=I.length-Ce,B.length=B.length-Ce}a(U,"popStack");function K(){var Ce;return Ce=L.pop()||E.lex()||N,typeof Ce!="number"&&(Ce instanceof Array&&(L=Ce,Ce=L.pop()),Ce=w.symbols_[Ce]||Ce),Ce}a(K,"lex");for(var j,ae,X,de,le,ge,he={},te,Le,xe,ye;;){if(X=_[_.length-1],this.defaultActions[X]?de=this.defaultActions[X]:((j===null||typeof j>"u")&&(j=K()),de=G[X]&&G[X][j]),typeof de>"u"||!de.length||!de[0]){var be="";ye=[];for(te in G[X])this.terminals_[te]&&te>R&&ye.push("'"+this.terminals_[te]+"'");E.showPosition?be="Parse error on line "+(F+1)+`:
`+E.showPosition()+`
Expecting `+ye.join(", ")+", got '"+(this.terminals_[j]||j)+"'":be="Parse error on line "+(F+1)+": Unexpected "+(j==N?"end of input":"'"+(this.terminals_[j]||j)+"'"),this.parseError(be,{text:E.match,token:this.terminals_[j]||j,line:E.yylineno,loc:O,expected:ye})}if(de[0]instanceof Array&&de.length>1)throw new Error("Parse Error: multiple actions possible at state: "+X+", token: "+j);switch(de[0]){case 1:_.push(j),I.push(E.yytext),B.push(E.yylloc),_.push(de[1]),j=null,ae?(j=ae,ae=null):(A=E.yyleng,P=E.yytext,F=E.yylineno,O=E.yylloc,D>0&&D--);break;case 2:if(Le=this.productions_[de[1]][1],he.$=I[I.length-Le],he._$={first_line:B[B.length-(Le||1)].first_line,last_line:B[B.length-1].last_line,first_column:B[B.length-(Le||1)].first_column,last_column:B[B.length-1].last_column},z&&(he._$.range=[B[B.length-(Le||1)].range[0],B[B.length-1].range[1]]),ge=this.performAction.apply(he,[P,A,F,M.yy,de[1],I,B].concat($)),typeof ge<"u")return ge;Le&&(_=_.slice(0,-1*Le*2),I=I.slice(0,-1*Le),B=B.slice(0,-1*Le)),_.push(this.productions_[de[1]][0]),I.push(he.$),B.push(he._$),xe=G[_[_.length-2]][_[_.length-1]],_.push(xe);break;case 3:return!0}}return!0},"parse")},T=(function(){var C={EOF:1,parseError:a(function(w,_){if(this.yy.parser)this.yy.parser.parseError(w,_);else throw new Error(w)},"parseError"),setInput:a(function(S,w){return this.yy=w||this.yy||{},this._input=S,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:a(function(){var S=this._input[0];this.yytext+=S,this.yyleng++,this.offset++,this.match+=S,this.matched+=S;var w=S.match(/(?:\r\n?|\n).*/g);return w?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),S},"input"),unput:a(function(S){var w=S.length,_=S.split(/(?:\r\n?|\n)/g);this._input=S+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-w),this.offset-=w;var L=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),_.length-1&&(this.yylineno-=_.length-1);var I=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:_?(_.length===L.length?this.yylloc.first_column:0)+L[L.length-_.length].length-_[0].length:this.yylloc.first_column-w},this.options.ranges&&(this.yylloc.range=[I[0],I[0]+this.yyleng-w]),this.yyleng=this.yytext.length,this},"unput"),more:a(function(){return this._more=!0,this},"more"),reject:a(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:a(function(S){this.unput(this.match.slice(S))},"less"),pastInput:a(function(){var S=this.matched.substr(0,this.matched.length-this.match.length);return(S.length>20?"...":"")+S.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:a(function(){var S=this.match;return S.length<20&&(S+=this._input.substr(0,20-S.length)),(S.substr(0,20)+(S.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:a(function(){var S=this.pastInput(),w=new Array(S.length+1).join("-");return S+this.upcomingInput()+`
`+w+"^"},"showPosition"),test_match:a(function(S,w){var _,L,I;if(this.options.backtrack_lexer&&(I={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(I.yylloc.range=this.yylloc.range.slice(0))),L=S[0].match(/(?:\r\n?|\n).*/g),L&&(this.yylineno+=L.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:L?L[L.length-1].length-L[L.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+S[0].length},this.yytext+=S[0],this.match+=S[0],this.matches=S,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(S[0].length),this.matched+=S[0],_=this.performAction.call(this,this.yy,this,w,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),_)return _;if(this._backtrack){for(var B in I)this[B]=I[B];return!1}return!1},"test_match"),next:a(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var S,w,_,L;this._more||(this.yytext="",this.match="");for(var I=this._currentRules(),B=0;B<I.length;B++)if(_=this._input.match(this.rules[I[B]]),_&&(!w||_[0].length>w[0].length)){if(w=_,L=B,this.options.backtrack_lexer){if(S=this.test_match(_,I[B]),S!==!1)return S;if(this._backtrack){w=!1;continue}else return!1}else if(!this.options.flex)break}return w?(S=this.test_match(w,I[L]),S!==!1?S:!1):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:a(function(){var w=this.next();return w||this.lex()},"lex"),begin:a(function(w){this.conditionStack.push(w)},"begin"),popState:a(function(){var w=this.conditionStack.length-1;return w>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:a(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:a(function(w){return w=this.conditionStack.length-1-Math.abs(w||0),w>=0?this.conditionStack[w]:"INITIAL"},"topState"),pushState:a(function(w){this.begin(w)},"pushState"),stateStackSize:a(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:a(function(w,_,L,I){var B=I;switch(L){case 0:return w.getLogger().debug("Found block-beta"),10;break;case 1:return w.getLogger().debug("Found id-block"),29;break;case 2:return w.getLogger().debug("Found block"),10;break;case 3:w.getLogger().debug(".",_.yytext);break;case 4:w.getLogger().debug("_",_.yytext);break;case 5:return 5;case 6:return _.yytext=-1,28;break;case 7:return _.yytext=_.yytext.replace(/columns\s+/,""),w.getLogger().debug("COLUMNS (LEX)",_.yytext),28;break;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:w.getLogger().debug("LEX: POPPING STR:",_.yytext),this.popState();break;case 13:return w.getLogger().debug("LEX: STR end:",_.yytext),"STR";break;case 14:return _.yytext=_.yytext.replace(/space\:/,""),w.getLogger().debug("SPACE NUM (LEX)",_.yytext),21;break;case 15:return _.yytext="1",w.getLogger().debug("COLUMNS (LEX)",_.yytext),21;break;case 16:return 42;case 17:return"LINKSTYLE";case 18:return"INTERPOLATE";case 19:return this.pushState("CLASSDEF"),39;break;case 20:return this.popState(),this.pushState("CLASSDEFID"),"DEFAULT_CLASSDEF_ID";break;case 21:return this.popState(),this.pushState("CLASSDEFID"),40;break;case 22:return this.popState(),41;break;case 23:return this.pushState("CLASS"),43;break;case 24:return this.popState(),this.pushState("CLASS_STYLE"),44;break;case 25:return this.popState(),45;break;case 26:return this.pushState("STYLE_STMNT"),46;break;case 27:return this.popState(),this.pushState("STYLE_DEFINITION"),47;break;case 28:return this.popState(),48;break;case 29:return this.pushState("acc_title"),"acc_title";break;case 30:return this.popState(),"acc_title_value";break;case 31:return this.pushState("acc_descr"),"acc_descr";break;case 32:return this.popState(),"acc_descr_value";break;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:return this.popState(),w.getLogger().debug("Lex: (("),"NODE_DEND";break;case 38:return this.popState(),w.getLogger().debug("Lex: (("),"NODE_DEND";break;case 39:return this.popState(),w.getLogger().debug("Lex: ))"),"NODE_DEND";break;case 40:return this.popState(),w.getLogger().debug("Lex: (("),"NODE_DEND";break;case 41:return this.popState(),w.getLogger().debug("Lex: (("),"NODE_DEND";break;case 42:return this.popState(),w.getLogger().debug("Lex: (-"),"NODE_DEND";break;case 43:return this.popState(),w.getLogger().debug("Lex: -)"),"NODE_DEND";break;case 44:return this.popState(),w.getLogger().debug("Lex: (("),"NODE_DEND";break;case 45:return this.popState(),w.getLogger().debug("Lex: ]]"),"NODE_DEND";break;case 46:return this.popState(),w.getLogger().debug("Lex: ("),"NODE_DEND";break;case 47:return this.popState(),w.getLogger().debug("Lex: ])"),"NODE_DEND";break;case 48:return this.popState(),w.getLogger().debug("Lex: /]"),"NODE_DEND";break;case 49:return this.popState(),w.getLogger().debug("Lex: /]"),"NODE_DEND";break;case 50:return this.popState(),w.getLogger().debug("Lex: )]"),"NODE_DEND";break;case 51:return this.popState(),w.getLogger().debug("Lex: )"),"NODE_DEND";break;case 52:return this.popState(),w.getLogger().debug("Lex: ]>"),"NODE_DEND";break;case 53:return this.popState(),w.getLogger().debug("Lex: ]"),"NODE_DEND";break;case 54:return w.getLogger().debug("Lexa: -)"),this.pushState("NODE"),35;break;case 55:return w.getLogger().debug("Lexa: (-"),this.pushState("NODE"),35;break;case 56:return w.getLogger().debug("Lexa: ))"),this.pushState("NODE"),35;break;case 57:return w.getLogger().debug("Lexa: )"),this.pushState("NODE"),35;break;case 58:return w.getLogger().debug("Lex: ((("),this.pushState("NODE"),35;break;case 59:return w.getLogger().debug("Lexa: )"),this.pushState("NODE"),35;break;case 60:return w.getLogger().debug("Lexa: )"),this.pushState("NODE"),35;break;case 61:return w.getLogger().debug("Lexa: )"),this.pushState("NODE"),35;break;case 62:return w.getLogger().debug("Lexc: >"),this.pushState("NODE"),35;break;case 63:return w.getLogger().debug("Lexa: (["),this.pushState("NODE"),35;break;case 64:return w.getLogger().debug("Lexa: )"),this.pushState("NODE"),35;break;case 65:return this.pushState("NODE"),35;break;case 66:return this.pushState("NODE"),35;break;case 67:return this.pushState("NODE"),35;break;case 68:return this.pushState("NODE"),35;break;case 69:return this.pushState("NODE"),35;break;case 70:return this.pushState("NODE"),35;break;case 71:return this.pushState("NODE"),35;break;case 72:return w.getLogger().debug("Lexa: ["),this.pushState("NODE"),35;break;case 73:return this.pushState("BLOCK_ARROW"),w.getLogger().debug("LEX ARR START"),37;break;case 74:return w.getLogger().debug("Lex: NODE_ID",_.yytext),31;break;case 75:return w.getLogger().debug("Lex: EOF",_.yytext),8;break;case 76:this.pushState("md_string");break;case 77:this.pushState("md_string");break;case 78:return"NODE_DESCR";case 79:this.popState();break;case 80:w.getLogger().debug("Lex: Starting string"),this.pushState("string");break;case 81:w.getLogger().debug("LEX ARR: Starting string"),this.pushState("string");break;case 82:return w.getLogger().debug("LEX: NODE_DESCR:",_.yytext),"NODE_DESCR";break;case 83:w.getLogger().debug("LEX POPPING"),this.popState();break;case 84:w.getLogger().debug("Lex: =>BAE"),this.pushState("ARROW_DIR");break;case 85:return _.yytext=_.yytext.replace(/^,\s*/,""),w.getLogger().debug("Lex (right): dir:",_.yytext),"DIR";break;case 86:return _.yytext=_.yytext.replace(/^,\s*/,""),w.getLogger().debug("Lex (left):",_.yytext),"DIR";break;case 87:return _.yytext=_.yytext.replace(/^,\s*/,""),w.getLogger().debug("Lex (x):",_.yytext),"DIR";break;case 88:return _.yytext=_.yytext.replace(/^,\s*/,""),w.getLogger().debug("Lex (y):",_.yytext),"DIR";break;case 89:return _.yytext=_.yytext.replace(/^,\s*/,""),w.getLogger().debug("Lex (up):",_.yytext),"DIR";break;case 90:return _.yytext=_.yytext.replace(/^,\s*/,""),w.getLogger().debug("Lex (down):",_.yytext),"DIR";break;case 91:return _.yytext="]>",w.getLogger().debug("Lex (ARROW_DIR end):",_.yytext),this.popState(),this.popState(),"BLOCK_ARROW_END";break;case 92:return w.getLogger().debug("Lex: LINK","#"+_.yytext+"#"),15;break;case 93:return w.getLogger().debug("Lex: LINK",_.yytext),15;break;case 94:return w.getLogger().debug("Lex: LINK",_.yytext),15;break;case 95:return w.getLogger().debug("Lex: LINK",_.yytext),15;break;case 96:return w.getLogger().debug("Lex: START_LINK",_.yytext),this.pushState("LLABEL"),16;break;case 97:return w.getLogger().debug("Lex: START_LINK",_.yytext),this.pushState("LLABEL"),16;break;case 98:return w.getLogger().debug("Lex: START_LINK",_.yytext),this.pushState("LLABEL"),16;break;case 99:this.pushState("md_string");break;case 100:return w.getLogger().debug("Lex: Starting string"),this.pushState("string"),"LINK_LABEL";break;case 101:return this.popState(),w.getLogger().debug("Lex: LINK","#"+_.yytext+"#"),15;break;case 102:return this.popState(),w.getLogger().debug("Lex: LINK",_.yytext),15;break;case 103:return this.popState(),w.getLogger().debug("Lex: LINK",_.yytext),15;break;case 104:return w.getLogger().debug("Lex: COLON",_.yytext),_.yytext=_.yytext.slice(1),27;break}},"anonymous"),rules:[/^(?:block-beta\b)/,/^(?:block:)/,/^(?:block\b)/,/^(?:[\s]+)/,/^(?:[\n]+)/,/^(?:((\u000D\u000A)|(\u000A)))/,/^(?:columns\s+auto\b)/,/^(?:columns\s+[\d]+)/,/^(?:["][`])/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:space[:]\d+)/,/^(?:space\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\s+)/,/^(?:DEFAULT\s+)/,/^(?:\w+\s+)/,/^(?:[^\n]*)/,/^(?:class\s+)/,/^(?:(\w+)+((,\s*\w+)*))/,/^(?:[^\n]*)/,/^(?:style\s+)/,/^(?:(\w+)+((,\s*\w+)*))/,/^(?:[^\n]*)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:end\b\s*)/,/^(?:\(\(\()/,/^(?:\)\)\))/,/^(?:[\)]\))/,/^(?:\}\})/,/^(?:\})/,/^(?:\(-)/,/^(?:-\))/,/^(?:\(\()/,/^(?:\]\])/,/^(?:\()/,/^(?:\]\))/,/^(?:\\\])/,/^(?:\/\])/,/^(?:\)\])/,/^(?:[\)])/,/^(?:\]>)/,/^(?:[\]])/,/^(?:-\))/,/^(?:\(-)/,/^(?:\)\))/,/^(?:\))/,/^(?:\(\(\()/,/^(?:\(\()/,/^(?:\{\{)/,/^(?:\{)/,/^(?:>)/,/^(?:\(\[)/,/^(?:\()/,/^(?:\[\[)/,/^(?:\[\|)/,/^(?:\[\()/,/^(?:\)\)\))/,/^(?:\[\\)/,/^(?:\[\/)/,/^(?:\[\\)/,/^(?:\[)/,/^(?:<\[)/,/^(?:[^\(\[\n\-\)\{\}\s\<\>:=]+)/,/^(?:$)/,/^(?:["][`])/,/^(?:["][`])/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["])/,/^(?:["])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:\]>\s*\()/,/^(?:,?\s*right\s*)/,/^(?:,?\s*left\s*)/,/^(?:,?\s*x\s*)/,/^(?:,?\s*y\s*)/,/^(?:,?\s*up\s*)/,/^(?:,?\s*down\s*)/,/^(?:\)\s*)/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?:\s*~~[\~]+\s*)/,/^(?:\s*[xo<]?--\s*)/,/^(?:\s*[xo<]?==\s*)/,/^(?:\s*[xo<]?-\.\s*)/,/^(?:["][`])/,/^(?:["])/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?::\d+)/],conditions:{STYLE_DEFINITION:{rules:[28],inclusive:!1},STYLE_STMNT:{rules:[27],inclusive:!1},CLASSDEFID:{rules:[22],inclusive:!1},CLASSDEF:{rules:[20,21],inclusive:!1},CLASS_STYLE:{rules:[25],inclusive:!1},CLASS:{rules:[24],inclusive:!1},LLABEL:{rules:[99,100,101,102,103],inclusive:!1},ARROW_DIR:{rules:[85,86,87,88,89,90,91],inclusive:!1},BLOCK_ARROW:{rules:[76,81,84],inclusive:!1},NODE:{rules:[37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,77,80],inclusive:!1},md_string:{rules:[9,10,78,79],inclusive:!1},space:{rules:[],inclusive:!1},string:{rules:[12,13,82,83],inclusive:!1},acc_descr_multiline:{rules:[34,35],inclusive:!1},acc_descr:{rules:[32],inclusive:!1},acc_title:{rules:[30],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,11,14,15,16,17,18,19,23,26,29,31,33,36,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,92,93,94,95,96,97,98,104],inclusive:!0}}};return C})();b.lexer=T;function k(){this.yy={}}return a(k,"Parser"),k.prototype=b,b.Parser=k,new k})();MB.parser=MB;Abe=MB});function Cit(e){switch(W.debug("typeStr2Type",e),e){case"[]":return"square";case"()":return W.debug("we have a round"),"round";case"(())":return"circle";case">]":return"rect_left_inv_arrow";case"{}":return"diamond";case"{{}}":return"hexagon";case"([])":return"stadium";case"[[]]":return"subroutine";case"[()]":return"cylinder";case"((()))":return"doublecircle";case"[//]":return"lean_right";case"[\\\\]":return"lean_left";case"[/\\]":return"trapezoid";case"[\\/]":return"inv_trapezoid";case"<[]>":return"block_arrow";default:return"na"}}function vit(e){switch(W.debug("typeStr2Type",e),e){case"==":return"thick";default:return"normal"}}function Sit(e){switch(e.trim().slice(-1)){case"x":return"arrow_cross";case"o":return"arrow_circle";case">":return"arrow_point";default:return""}}function _it(e){switch(e.trim().charAt(0)){case"x":return"arrow_cross";case"o":return"arrow_circle";case"<":return"arrow_point";default:return"arrow_open"}}function wit(e){return e.includes("==")?"thick":"normal"}function Eit(e){return e.includes(".-")?"dotted":"solid"}var io,PB,OB,Lbe,Dbe,mit,Nbe,git,J_,BB,yit,xit,bit,Tit,Mbe,$B,_x,kit,Ibe,Ait,Rit,Lit,Dit,Iit,Nit,Mit,Oit,Pit,Bit,$it,Fit,Vit,Obe,Pbe=v(()=>{"use strict";q2();Xt();bt();nt();dr();zr();io=new Map,PB=[],OB=new Map,Lbe="color",Dbe="fill",mit="bgFill",Nbe=",",git=J(),J_=new Map,BB="",yit=a(e=>He.sanitizeText(e,git),"sanitizeText"),xit=a(function(e,t=""){let r=J_.get(e);r||(r={id:e,styles:[],textStyles:[]},J_.set(e,r)),t?.split(Nbe).forEach(i=>{let n=i.replace(/([^;]*);/,"$1").trim();if(RegExp(Lbe).exec(i)){let o=n.replace(Dbe,mit).replace(Lbe,Dbe);r.textStyles.push(o)}r.styles.push(n)})},"addStyleClass"),bit=a(function(e,t=""){let r=io.get(e);t!=null&&(r.styles=t.split(Nbe))},"addStyle2Node"),Tit=a(function(e,t){e.split(",").forEach(function(r){let i=io.get(r);if(i===void 0){let n=r.trim();i={id:n,type:"na",children:[]},io.set(n,i)}i.classes||(i.classes=[]),i.classes.push(t)})},"setCssClass"),Mbe=a((e,t)=>{let r=e.flat(),i=[],s=r.find(o=>o?.type==="column-setting")?.columns??-1;for(let o of r){if(typeof s=="number"&&s>0&&o.type!=="column-setting"&&typeof o.widthInColumns=="number"&&o.widthInColumns>s&&W.warn(`Block ${o.id} width ${o.widthInColumns} exceeds configured column width ${s}`),o.label&&(o.label=yit(o.label)),o.type==="classDef"){xit(o.id,o.css);continue}if(o.type==="applyClass"){Tit(o.id,o?.styleClass??"");continue}if(o.type==="applyStyles"){o?.stylesStr&&bit(o.id,o?.stylesStr);continue}if(o.type==="column-setting")t.columns=o.columns??-1;else if(o.type==="edge"){let l=(OB.get(o.id)??0)+1;OB.set(o.id,l),o.id=l+"-"+o.id,PB.push(o)}else{o.label||(o.type==="composite"?o.label="":o.label=o.id);let l=io.get(o.id);if(l===void 0?io.set(o.id,o):(o.type!=="na"&&(l.type=o.type),o.label!==o.id&&(l.label=o.label)),o.children&&Mbe(o.children,o),o.type==="space"){let u=o.width??1;for(let h=0;h<u;h++){let d=c5(o);d.id=d.id+"-"+h,io.set(d.id,d),i.push(d)}}else l===void 0&&i.push(o)}}t.children=i},"populateBlockDatabase"),$B=[],_x={id:"root",type:"composite",children:[],columns:-1},kit=a(()=>{W.debug("Clear called"),Ht(),_x={id:"root",type:"composite",children:[],columns:-1},io=new Map([["root",_x]]),$B=[],J_=new Map,PB=[],OB=new Map,BB=""},"clear");a(Cit,"typeStr2Type");a(vit,"edgeTypeStr2Type");a(Sit,"edgeStrToEdgeData");a(_it,"edgeStrToEdgeStartData");a(wit,"edgeStrToThickness");a(Eit,"edgeStrToPattern");Ibe=0,Ait=a(()=>(Ibe++,"id-"+Math.random().toString(36).substr(2,12)+"-"+Ibe),"generateId"),Rit=a(e=>{_x.children=e,Mbe(e,_x),$B=_x.children},"setHierarchy"),Lit=a(e=>{let t=io.get(e);return t?t.columns?t.columns:t.children?t.children.length:-1:-1},"getColumns"),Dit=a(()=>[...io.values()],"getBlocksFlat"),Iit=a(()=>$B||[],"getBlocks"),Nit=a(()=>PB,"getEdges"),Mit=a(e=>io.get(e),"getBlock"),Oit=a(e=>{io.set(e.id,e)},"setBlock"),Pit=a(e=>{BB=e},"setDiagramId"),Bit=a(()=>BB,"getDiagramId"),$it=a(()=>W,"getLogger"),Fit=a(function(){return J_},"getClasses"),Vit={getConfig:a(()=>ct().block,"getConfig"),typeStr2Type:Cit,edgeTypeStr2Type:vit,edgeStrToEdgeData:Sit,edgeStrToEdgeStartData:_it,edgeStrToThickness:wit,edgeStrToPattern:Eit,getLogger:$it,getBlocksFlat:Dit,getBlocks:Iit,getEdges:Nit,setHierarchy:Rit,getBlock:Mit,setBlock:Oit,getColumns:Lit,getClasses:Fit,clear:kit,generateId:Ait,setDiagramId:Pit,getDiagramId:Bit},Obe=Vit});var FB,Git,Bbe,$be=v(()=>{"use strict";Bi();Gp();FB=a((e,t)=>{let r=Hu,i=r(e,"r"),n=r(e,"g"),s=r(e,"b");return Ti(i,n,s,t)},"fade"),Git=a(e=>`.label {
font-family: ${e.fontFamily};
color: ${e.nodeTextColor||e.textColor};
}
.cluster-label text {
fill: ${e.titleColor};
}
.cluster-label span,p {
color: ${e.titleColor};
}
.label text,span,p {
fill: ${e.nodeTextColor||e.textColor};
color: ${e.nodeTextColor||e.textColor};
}
.node rect,
.node circle,
.node ellipse,
.node polygon,
.node path {
fill: ${e.mainBkg};
stroke: ${e.nodeBorder};
stroke-width: 1px;
}
.flowchart-label text {
text-anchor: middle;
}
// .flowchart-label .text-outer-tspan {
// text-anchor: middle;
// }
// .flowchart-label .text-inner-tspan {
// text-anchor: start;
// }
.node .label {
text-align: center;
}
.node.clickable {
cursor: pointer;
}
.arrowheadPath {
fill: ${e.arrowheadColor};
}
.edgePath .path {
stroke: ${e.lineColor};
stroke-width: 2.0px;
}
.flowchart-link {
stroke: ${e.lineColor};
fill: none;
}
.edgeLabel {
background-color: ${e.edgeLabelBackground};
/*
* This is for backward compatibility with existing code that didn't
* add a \`<p>\` around edge labels.
*
* TODO: We should probably remove this in a future release.
*/
p {
margin: 0;
padding: 0;
display: inline;
}
rect {
opacity: 0.5;
background-color: ${e.edgeLabelBackground};
fill: ${e.edgeLabelBackground};
}
text-align: center;
}
/* For html labels only */
.labelBkg {
background-color: ${e.edgeLabelBackground};
}
.node .cluster {
// fill: ${FB(e.mainBkg,.5)};
fill: ${FB(e.clusterBkg,.5)};
stroke: ${FB(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;
stroke-width: 1px;
}
.cluster text {
fill: ${e.titleColor};
}
.cluster span,p {
color: ${e.titleColor};
}
/* .cluster div {
color: ${e.titleColor};
} */
div.mermaidTooltip {
position: absolute;
text-align: center;
max-width: 200px;
padding: 2px;
font-family: ${e.fontFamily};
font-size: 12px;
background: ${e.tertiaryColor};
border: 1px solid ${e.border2};
border-radius: 2px;
pointer-events: none;
z-index: 100;
}
.flowchartTitleText {
text-anchor: middle;
font-size: 18px;
fill: ${e.textColor};
}
${Po()}
`,"getStyles"),Bbe=Git});var Wit,zit,qit,jit,Uit,Hit,Yit,Kit,Xit,Qit,Zit,Fbe,Vbe=v(()=>{"use strict";nt();Wit=a((e,t,r,i)=>{t.forEach(n=>{Zit[n](e,r,i)})},"insertMarkers"),zit=a((e,t,r)=>{W.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"),qit=a((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"),jit=a((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"),Uit=a((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"),Hit=a((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"),Yit=a((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"),Kit=a((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"),Xit=a((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"),e.append("marker").attr("id",r+"_"+t+"-crossStart").attr("class","marker cross "+t).attr("viewBox","0 0 11 11").attr("refX",-1).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0")},"cross"),Qit=a((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","strokeWidth").attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},"barb"),Zit={extension:zit,composition:qit,aggregation:jit,dependency:Uit,lollipop:Hit,point:Yit,circle:Kit,cross:Xit,barb:Qit},Fbe=Wit});function Gbe(e,t){if(e===0||!Number.isInteger(e))throw new Error("Columns must be an integer !== 0.");if(t<0||!Number.isInteger(t))throw new Error("Position must be a non-negative integer."+t);if(e<0)return{px:t,py:0};if(e===1)return{px:0,py:t};let r=t%e,i=Math.floor(t/e);return{px:r,py:i}}function VB(e,t,r=0,i=0){W.debug("setBlockSizes abc95 (start)",e.id,e?.size?.x,"block width =",e?.size,"siblingWidth",r),e?.size?.width||(e.size={width:r,height:i,x:0,y:0});let n=0,s=0;if(e.children?.length>0){for(let m of e.children)VB(m,t);let o=Jit(e);n=o.width,s=o.height,W.debug("setBlockSizes abc95 maxWidth of",e.id,":s children is ",n,s);for(let m of e.children)m.size&&(W.debug(`abc95 Setting size of children of ${e.id} id=${m.id} ${n} ${s} ${JSON.stringify(m.size)}`),m.size.width=n*(m.widthInColumns??1)+_i*((m.widthInColumns??1)-1),m.size.height=s,m.size.x=0,m.size.y=0,W.debug(`abc95 updating size of ${e.id} children child:${m.id} maxWidth:${n} maxHeight:${s}`));for(let m of e.children)VB(m,t,n,s);let l=e.columns??-1,u=0;for(let m of e.children)u+=m.widthInColumns??1;let h=e.children.length;l>0&&l<u&&(h=l);let d=Math.ceil(u/h),f=h*(n+_i)+_i,p=d*(s+_i)+_i;if(f<r){W.debug(`Detected to small sibling: abc95 ${e.id} siblingWidth ${r} siblingHeight ${i} width ${f}`),f=r,p=i;let m=(r-h*_i-_i)/h,g=(i-d*_i-_i)/d;W.debug("Size indata abc88",e.id,"childWidth",m,"maxWidth",n),W.debug("Size indata abc88",e.id,"childHeight",g,"maxHeight",s),W.debug("Size indata abc88 xSize",h,"padding",_i);for(let x of e.children)x.size&&(x.size.width=m,x.size.height=g,x.size.x=0,x.size.y=0)}if(W.debug(`abc95 (finale calc) ${e.id} xSize ${h} ySize ${d} columns ${l}${e.children.length} width=${Math.max(f,e.size?.width||0)}`),f<(e?.size?.width||0)){f=e?.size?.width||0;let m=l>0?Math.min(e.children.length,l):e.children.length;if(m>0){let g=(f-m*_i-_i)/m;W.debug("abc95 (growing to fit) width",e.id,f,e.size?.width,g);for(let x of e.children)x.size&&(x.size.width=g)}}e.size={width:f,height:p,x:0,y:0}}W.debug("setBlockSizes abc94 (done)",e.id,e?.size?.x,e?.size?.width,e?.size?.y,e?.size?.height)}function Wbe(e,t){W.debug(`abc85 layout blocks (=>layoutBlocks) ${e.id} x: ${e?.size?.x} y: ${e?.size?.y} width: ${e?.size?.width}`);let r=e.columns??-1;if(W.debug("layoutBlocks columns abc95",e.id,"=>",r,e),e.children&&e.children.length>0){let i=e?.children[0]?.size?.width??0,n=e.children.length*i+(e.children.length-1)*_i;W.debug("widthOfChildren 88",n,"posX");let s=new Map;{let d=0;for(let f of e.children){if(!f.size)continue;let{py:p}=Gbe(r,d),m=s.get(p)??0;f.size.height>m&&s.set(p,f.size.height);let g=f?.widthInColumns??1;r>0&&(g=Math.min(g,r-d%r)),d+=g}}let o=new Map;{let d=0,f=[...s.keys()].sort((p,m)=>p-m);for(let p of f)o.set(p,d),d+=(s.get(p)??0)+_i}let l=0;W.debug("abc91 block?.size?.x",e.id,e?.size?.x);let u=e?.size?.x?e?.size?.x+(-e?.size?.width/2||0):-_i,h=0;for(let d of e.children){let f=e;if(!d.size)continue;let{width:p,height:m}=d.size,{px:g,py:x}=Gbe(r,l);if(x!=h&&(h=x,u=e?.size?.x?e?.size?.x+(-e?.size?.width/2||0):-_i,W.debug("New row in layout for block",e.id," and child ",d.id,h)),W.debug(`abc89 layout blocks (child) id: ${d.id} Pos: ${l} (px, py) ${g},${x} (${f?.size?.x},${f?.size?.y}) parent: ${f.id} width: ${p}${_i}`),f.size){let T=p/2;d.size.x=u+_i+T,W.debug(`abc91 layout blocks (calc) px, pyid:${d.id} startingPos=X${u} new startingPosX${d.size.x} ${T} padding=${_i} width=${p} halfWidth=${T} => x:${d.size.x} y:${d.size.y} ${d.widthInColumns} (width * (child?.w || 1)) / 2 ${p*(d?.widthInColumns??1)/2}`),u=d.size.x+T;let k=o.get(x)??0,C=s.get(x)??m;d.size.y=f.size.y-f.size.height/2+k+C/2+_i,W.debug(`abc88 layout blocks (calc) px, pyid:${d.id}startingPosX${u}${_i}${T}=>x:${d.size.x}y:${d.size.y}${d.widthInColumns}(width * (child?.w || 1)) / 2${p*(d?.widthInColumns??1)/2}`)}d.children&&Wbe(d,t);let b=d?.widthInColumns??1;r>0&&(b=Math.min(b,r-l%r)),l+=b,W.debug("abc88 columnsPos",d,l)}}W.debug(`layout blocks (<==layoutBlocks) ${e.id} x: ${e?.size?.x} y: ${e?.size?.y} width: ${e?.size?.width}`)}function zbe(e,{minX:t,minY:r,maxX:i,maxY:n}={minX:0,minY:0,maxX:0,maxY:0}){if(e.size&&e.id!=="root"){let{x:s,y:o,width:l,height:u}=e.size;s-l/2<t&&(t=s-l/2),o-u/2<r&&(r=o-u/2),s+l/2>i&&(i=s+l/2),o+u/2>n&&(n=o+u/2)}if(e.children)for(let s of e.children)({minX:t,minY:r,maxX:i,maxY:n}=zbe(s,{minX:t,minY:r,maxX:i,maxY:n}));return{minX:t,minY:r,maxX:i,maxY:n}}function qbe(e){let t=e.getBlock("root");if(!t)return;VB(t,e,0,0),Wbe(t,e),W.debug("getBlocks",JSON.stringify(t,null,2));let{minX:r,minY:i,maxX:n,maxY:s}=zbe(t),o=s-i,l=n-r;return{x:r,y:i,width:l,height:o}}var _i,Jit,jbe=v(()=>{"use strict";nt();bt();_i=J()?.block?.padding??8;a(Gbe,"calculateBlockPosition");Jit=a(e=>{let t=0,r=0;for(let i of e.children){let{width:n,height:s,x:o,y:l}=i.size??{width:0,height:0,x:0,y:0};if(W.debug("getMaxChildSize abc95 child:",i.id,"width:",n,"height:",s,"x:",o,"y:",l,i.type),i.type==="space")continue;let u=n/(i.widthInColumns??1);u>t&&(t=u),s>r&&(r=s)}return{width:t,height:r}},"getMaxChildSize");a(VB,"setBlockSizes");a(Wbe,"layoutBlocks");a(zbe,"findBounds");a(qbe,"layout")});var ent,ya,ew=v(()=>{"use strict";Xt();bt();Qa();ent=a(async(e,t,r,i=!1,n=!1)=>{let s=t||"";typeof s=="object"&&(s=s[0]);let o=J(),l=ar(o);return await di(e,s,{style:r,isTitle:i,useHtmlLabels:l,markdown:!1,isNode:n,width:Number.POSITIVE_INFINITY},o)},"createLabel"),ya=ent});var Hbe,tnt,Ube,Ybe=v(()=>{"use strict";nt();Hbe=a((e,t,r,i,n)=>{t.arrowTypeStart&&Ube(e,"start",t.arrowTypeStart,r,i,n),t.arrowTypeEnd&&Ube(e,"end",t.arrowTypeEnd,r,i,n)},"addEdgeMarkers"),tnt={arrow_cross:"cross",arrow_point:"point",arrow_barb:"barb",arrow_circle:"circle",aggregation:"aggregation",extension:"extension",composition:"composition",dependency:"dependency",lollipop:"lollipop"},Ube=a((e,t,r,i,n,s)=>{let o=tnt[r];if(!o){W.warn(`Unknown arrow type: ${r}`);return}let l=t==="start"?"Start":"End";e.attr(`marker-${t}`,`url(${i}#${n}_${s}-${o}${l})`)},"addEdgeMarker")});function tw(e,t){ar(J())&&e&&(e.style.width=t.length*9+"px",e.style.height="12px")}var GB,wn,Xbe,Qbe,rnt,int,Kbe,Zbe,Jbe=v(()=>{"use strict";nt();ew();Qa();CR();sr();bt();Xt();Et();dr();SR();s0();Ybe();GB={},wn={},Xbe=a(async(e,t)=>{let r=J(),i=ar(r),n=e.insert("g").attr("class","edgeLabel"),s=n.insert("g").attr("class","label"),o=t.labelType==="markdown",l=await di(e,t.label,{style:t.labelStyle,useHtmlLabels:i,addSvgBackground:o,isNode:!1,markdown:o,width:o?void 0:Number.POSITIVE_INFINITY},r);s.node().appendChild(l);let u=l.getBBox(),h=u;if(i){let f=l.children[0],p=Se(l);u=f.getBoundingClientRect(),h=u,p.attr("width",u.width),p.attr("height",u.height)}else{let f=Se(l).select("text").node();f&&typeof f.getBBox=="function"&&(h=f.getBBox())}s.attr("transform",Ja(h,i)),GB[t.id]=n,t.width=u.width,t.height=u.height;let d;if(t.startLabelLeft){let f=e.insert("g").attr("class","edgeTerminals"),p=f.insert("g").attr("class","inner"),m=await ya(p,t.startLabelLeft,t.labelStyle);d=m;let g=m.getBBox();if(i){let x=m.children[0],b=Se(m);g=x.getBoundingClientRect(),b.attr("width",g.width),b.attr("height",g.height)}p.attr("transform",Ja(g,i)),wn[t.id]||(wn[t.id]={}),wn[t.id].startLeft=f,tw(d,t.startLabelLeft)}if(t.startLabelRight){let f=e.insert("g").attr("class","edgeTerminals"),p=f.insert("g").attr("class","inner"),m=await ya(p,t.startLabelRight,t.labelStyle);d=m;let g=m.getBBox();if(i){let x=m.children[0],b=Se(m);g=x.getBoundingClientRect(),b.attr("width",g.width),b.attr("height",g.height)}p.attr("transform",Ja(g,i)),wn[t.id]||(wn[t.id]={}),wn[t.id].startRight=f,tw(d,t.startLabelRight)}if(t.endLabelLeft){let f=e.insert("g").attr("class","edgeTerminals"),p=f.insert("g").attr("class","inner"),m=await ya(f,t.endLabelLeft,t.labelStyle);d=m;let g=m.getBBox();if(i){let x=m.children[0],b=Se(m);g=x.getBoundingClientRect(),b.attr("width",g.width),b.attr("height",g.height)}p.attr("transform",Ja(g,i)),wn[t.id]||(wn[t.id]={}),wn[t.id].endLeft=f,tw(d,t.endLabelLeft)}if(t.endLabelRight){let f=e.insert("g").attr("class","edgeTerminals"),p=f.insert("g").attr("class","inner"),m=await ya(f,t.endLabelRight,t.labelStyle);d=m;let g=m.getBBox();if(i){let x=m.children[0],b=Se(m);g=x.getBoundingClientRect(),b.attr("width",g.width),b.attr("height",g.height)}p.attr("transform",Ja(g,i)),wn[t.id]||(wn[t.id]={}),wn[t.id].endRight=f,tw(d,t.endLabelRight)}return l},"insertEdgeLabel");a(tw,"setTerminalWidth");Qbe=a((e,t)=>{W.debug("Moving label abc88 ",e.id,e.label,GB[e.id],t);let r=t.updatedPath?t.updatedPath:t.originalPath,i=J(),{subGraphTitleTotalMargin:n}=_l(i);if(e.label){let s=GB[e.id],o=e.x,l=e.y;if(r){let u=St.calcLabelPosition(r);W.debug("Moving label "+e.label+" from (",o,",",l,") to (",u.x,",",u.y,") abc88"),t.updatedPath&&(o=u.x,l=u.y)}s.attr("transform",`translate(${o}, ${l+n/2})`)}if(e.startLabelLeft){let s=wn[e.id].startLeft,o=e.x,l=e.y;if(r){let u=St.calcTerminalLabelPosition(e.arrowTypeStart?10:0,"start_left",r);o=u.x,l=u.y}s.attr("transform",`translate(${o}, ${l})`)}if(e.startLabelRight){let s=wn[e.id].startRight,o=e.x,l=e.y;if(r){let u=St.calcTerminalLabelPosition(e.arrowTypeStart?10:0,"start_right",r);o=u.x,l=u.y}s.attr("transform",`translate(${o}, ${l})`)}if(e.endLabelLeft){let s=wn[e.id].endLeft,o=e.x,l=e.y;if(r){let u=St.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,"end_left",r);o=u.x,l=u.y}s.attr("transform",`translate(${o}, ${l})`)}if(e.endLabelRight){let s=wn[e.id].endRight,o=e.x,l=e.y;if(r){let u=St.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,"end_right",r);o=u.x,l=u.y}s.attr("transform",`translate(${o}, ${l})`)}},"positionEdgeLabel"),rnt=a((e,t)=>{let r=e.x,i=e.y,n=Math.abs(t.x-r),s=Math.abs(t.y-i),o=e.width/2,l=e.height/2;return n>=o||s>=l},"outsideNode"),int=a((e,t,r)=>{W.debug(`intersection calc abc89:
outsidePoint: ${JSON.stringify(t)}
insidePoint : ${JSON.stringify(r)}
node : x:${e.x} y:${e.y} w:${e.width} h:${e.height}`);let i=e.x,n=e.y,s=Math.abs(i-r.x),o=e.width/2,l=r.x<t.x?o-s:o+s,u=e.height/2,h=Math.abs(t.y-r.y),d=Math.abs(t.x-r.x);if(Math.abs(n-t.y)*o>Math.abs(i-t.x)*u){let f=r.y<t.y?t.y-u-n:n-u-t.y;l=d*f/h;let p={x:r.x<t.x?r.x+l:r.x-d+l,y:r.y<t.y?r.y+h-f:r.y-h+f};return l===0&&(p.x=t.x,p.y=t.y),d===0&&(p.x=t.x),h===0&&(p.y=t.y),W.debug(`abc89 topp/bott calc, Q ${h}, q ${f}, R ${d}, r ${l}`,p),p}else{r.x<t.x?l=t.x-o-i:l=i-o-t.x;let f=h*l/d,p=r.x<t.x?r.x+d-l:r.x-d+l,m=r.y<t.y?r.y+f:r.y-f;return W.debug(`sides calc abc89, Q ${h}, q ${f}, R ${d}, r ${l}`,{_x:p,_y:m}),l===0&&(p=t.x,m=t.y),d===0&&(p=t.x),h===0&&(m=t.y),{x:p,y:m}}},"intersection"),Kbe=a((e,t)=>{W.debug("abc88 cutPathAtIntersect",e,t);let r=[],i=e[0],n=!1;return e.forEach(s=>{if(!rnt(t,s)&&!n){let o=int(t,i,s),l=!1;r.forEach(u=>{l=l||u.x===o.x&&u.y===o.y}),r.some(u=>u.x===o.x&&u.y===o.y)||r.push(o),n=!0}else i=s,n||r.push(s)}),r},"cutPathAtIntersect"),Zbe=a(function(e,t,r,i,n,s,o){let l=r.points;W.debug("abc88 InsertEdge: edge=",r,"e=",t);let u=!1,h=s.node(t.v);var d=s.node(t.w);d?.intersect&&h?.intersect&&(l=l.slice(1,r.points.length-1),l.unshift(h.intersect(l[0])),l.push(d.intersect(l[l.length-1]))),r.toCluster&&(W.debug("to cluster abc88",i[r.toCluster]),l=Kbe(r.points,i[r.toCluster].node),u=!0),r.fromCluster&&(W.debug("from cluster abc88",i[r.fromCluster]),l=Kbe(l.reverse(),i[r.fromCluster].node).reverse(),u=!0);let f=l.filter(S=>!Number.isNaN(S.y)),p=Ps;r.curve&&(n==="graph"||n==="flowchart")&&(p=r.curve);let{x:m,y:g}=RT(r),x=Os().x(m).y(g).curve(p),b;switch(r.thickness){case"normal":b="edge-thickness-normal";break;case"thick":b="edge-thickness-thick";break;case"invisible":b="edge-thickness-thick";break;default:b=""}switch(r.pattern){case"solid":b+=" edge-pattern-solid";break;case"dotted":b+=" edge-pattern-dotted";break;case"dashed":b+=" edge-pattern-dashed";break}let T=e.append("path").attr("d",x(f)).attr("id",r.id).attr("class"," "+b+(r.classes?" "+r.classes:"")).attr("style",r.style),k="";(J().flowchart.arrowMarkerAbsolute||J().state.arrowMarkerAbsolute)&&(k=Ku(!0)),Hbe(T,r,k,o,n);let C={};return u&&(C.updatedPath=l),C.originalPath=r.points,C},"insertEdge")});var nnt,e2e,t2e=v(()=>{"use strict";nnt=a(e=>{let t=new Set;for(let r of e)switch(r){case"x":t.add("right"),t.add("left");break;case"y":t.add("up"),t.add("down");break;default:t.add(r);break}return t},"expandAndDeduplicateDirections"),e2e=a((e,t,r,i)=>{let n=nnt(e),s=2,o=t.height+2*r.padding,l=o/s,u=i??t.width+2*l+r.padding,h=r.padding/2;return n.has("right")&&n.has("left")&&n.has("up")&&n.has("down")?[{x:0,y:0},{x:l,y:0},{x:u/2,y:2*h},{x:u-l,y:0},{x:u,y:0},{x:u,y:-o/3},{x:u+2*h,y:-o/2},{x:u,y:-2*o/3},{x:u,y:-o},{x:u-l,y:-o},{x:u/2,y:-o-2*h},{x:l,y:-o},{x:0,y:-o},{x:0,y:-2*o/3},{x:-2*h,y:-o/2},{x:0,y:-o/3}]:n.has("right")&&n.has("left")&&n.has("up")?[{x:l,y:0},{x:u-l,y:0},{x:u,y:-o/2},{x:u-l,y:-o},{x:l,y:-o},{x:0,y:-o/2}]:n.has("right")&&n.has("left")&&n.has("down")?[{x:0,y:0},{x:l,y:-o},{x:u-l,y:-o},{x:u,y:0}]:n.has("right")&&n.has("up")&&n.has("down")?[{x:0,y:0},{x:u,y:-l},{x:u,y:-o+l},{x:0,y:-o}]:n.has("left")&&n.has("up")&&n.has("down")?[{x:u,y:0},{x:0,y:-l},{x:0,y:-o+l},{x:u,y:-o}]:n.has("right")&&n.has("left")?[{x:l,y:0},{x:l,y:-h},{x:u-l,y:-h},{x:u-l,y:0},{x:u,y:-o/2},{x:u-l,y:-o},{x:u-l,y:-o+h},{x:l,y:-o+h},{x:l,y:-o},{x:0,y:-o/2}]:n.has("up")&&n.has("down")?[{x:u/2,y:0},{x:0,y:-h},{x:l,y:-h},{x:l,y:-o+h},{x:0,y:-o+h},{x:u/2,y:-o},{x:u,y:-o+h},{x:u-l,y:-o+h},{x:u-l,y:-h},{x:u,y:-h}]:n.has("right")&&n.has("up")?[{x:0,y:0},{x:u,y:-l},{x:0,y:-o}]:n.has("right")&&n.has("down")?[{x:0,y:0},{x:u,y:0},{x:0,y:-o}]:n.has("left")&&n.has("up")?[{x:u,y:0},{x:0,y:-l},{x:u,y:-o}]:n.has("left")&&n.has("down")?[{x:u,y:0},{x:0,y:0},{x:u,y:-o}]:n.has("right")?[{x:l,y:-h},{x:l,y:-h},{x:u-l,y:-h},{x:u-l,y:0},{x:u,y:-o/2},{x:u-l,y:-o},{x:u-l,y:-o+h},{x:l,y:-o+h},{x:l,y:-o+h}]:n.has("left")?[{x:l,y:0},{x:l,y:-h},{x:u-l,y:-h},{x:u-l,y:-o+h},{x:l,y:-o+h},{x:l,y:-o},{x:0,y:-o/2}]:n.has("up")?[{x:l,y:-h},{x:l,y:-o+h},{x:0,y:-o+h},{x:u/2,y:-o},{x:u,y:-o+h},{x:u-l,y:-o+h},{x:u-l,y:-h}]:n.has("down")?[{x:u/2,y:0},{x:0,y:-h},{x:l,y:-h},{x:l,y:-o+h},{x:u-l,y:-o+h},{x:u-l,y:-h},{x:u,y:-h}]:[{x:0,y:0}]},"getArrowPoints")});function ant(e,t){return e.intersect(t)}var r2e,i2e=v(()=>{"use strict";a(ant,"intersectNode");r2e=ant});function snt(e,t,r,i){var n=e.x,s=e.y,o=n-i.x,l=s-i.y,u=Math.sqrt(t*t*l*l+r*r*o*o),h=Math.abs(t*r*o/u);i.x<n&&(h=-h);var d=Math.abs(t*r*l/u);return i.y<s&&(d=-d),{x:n+h,y:s+d}}var rw,WB=v(()=>{"use strict";a(snt,"intersectEllipse");rw=snt});function ont(e,t,r){return rw(e,t,t,r)}var n2e,a2e=v(()=>{"use strict";WB();a(ont,"intersectCircle");n2e=ont});function lnt(e,t,r,i){var n,s,o,l,u,h,d,f,p,m,g,x,b,T,k;if(n=t.y-e.y,o=e.x-t.x,u=t.x*e.y-e.x*t.y,p=n*r.x+o*r.y+u,m=n*i.x+o*i.y+u,!(p!==0&&m!==0&&s2e(p,m))&&(s=i.y-r.y,l=r.x-i.x,h=i.x*r.y-r.x*i.y,d=s*e.x+l*e.y+h,f=s*t.x+l*t.y+h,!(d!==0&&f!==0&&s2e(d,f))&&(g=n*l-s*o,g!==0)))return x=Math.abs(g/2),b=o*h-l*u,T=b<0?(b-x)/g:(b+x)/g,b=s*u-n*h,k=b<0?(b-x)/g:(b+x)/g,{x:T,y:k}}function s2e(e,t){return e*t>0}var o2e,l2e=v(()=>{"use strict";a(lnt,"intersectLine");a(s2e,"sameSign");o2e=lnt});function cnt(e,t,r){var i=e.x,n=e.y,s=[],o=Number.POSITIVE_INFINITY,l=Number.POSITIVE_INFINITY;typeof t.forEach=="function"?t.forEach(function(g){o=Math.min(o,g.x),l=Math.min(l,g.y)}):(o=Math.min(o,t.x),l=Math.min(l,t.y));for(var u=i-e.width/2-o,h=n-e.height/2-l,d=0;d<t.length;d++){var f=t[d],p=t[d<t.length-1?d+1:0],m=o2e(e,r,{x:u+f.x,y:h+f.y},{x:u+p.x,y:h+p.y});m&&s.push(m)}return s.length?(s.length>1&&s.sort(function(g,x){var b=g.x-r.x,T=g.y-r.y,k=Math.sqrt(b*b+T*T),C=x.x-r.x,S=x.y-r.y,w=Math.sqrt(C*C+S*S);return k<w?-1:k===w?0:1}),s[0]):e}var c2e,u2e=v(()=>{"use strict";l2e();c2e=cnt;a(cnt,"intersectPolygon")});var unt,h2e,d2e=v(()=>{"use strict";unt=a((e,t)=>{var r=e.x,i=e.y,n=t.x-r,s=t.y-i,o=e.width/2,l=e.height/2,u,h;return Math.abs(s)*o>Math.abs(n)*l?(s<0&&(l=-l),u=s===0?0:l*n/s,h=l):(n<0&&(o=-o),u=o,h=n===0?0:o*s/n),{x:r+u,y:i+h}},"intersectRect"),h2e=unt});var Kr,zB=v(()=>{"use strict";i2e();a2e();WB();u2e();d2e();Kr={node:r2e,circle:n2e,ellipse:rw,polygon:c2e,rect:h2e}});function no(e,t,r,i){return e.insert("polygon",":first-child").attr("points",i.map(function(n){return n.x+","+n.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-t/2+","+r/2+")")}var Ni,si,qB=v(()=>{"use strict";ew();Qa();bt();Xt();sr();dr();Et();X5();Ni=a(async(e,t,r,i)=>{let n=J(),s,o=t.useHtmlLabels||ar(n);r?s=r:s="node default";let l=e.insert("g").attr("class",s).attr("id",t.domId||t.id),u=l.insert("g").attr("class","label").attr("style",t.labelStyle),h;t.labelText===void 0?h="":h=typeof t.labelText=="string"?t.labelText:t.labelText[0];let d;t.labelType==="markdown"?d=di(u,rr(Mn(h),n),{useHtmlLabels:o,width:t.width||n.flowchart.wrappingWidth,classes:"markdown-node-label"},n):d=await ya(u,rr(Mn(h),n),t.labelStyle,!1,i);let f=d.getBBox(),p=t.padding/2;if(ar(n)){let m=d.children[0],g=Se(d);await uT(m,h),f=m.getBoundingClientRect(),g.attr("width",f.width),g.attr("height",f.height)}return o?u.attr("transform","translate("+-f.width/2+", "+-f.height/2+")"):u.attr("transform","translate(0, "+-f.height/2+")"),t.centerLabel&&u.attr("transform","translate("+-f.width/2+", "+-f.height/2+")"),u.insert("rect",":first-child"),{shapeSvg:l,bbox:f,halfPadding:p,label:u}},"labelHelper"),si=a((e,t)=>{let r=t.node().getBBox();e.width=r.width,e.height=r.height},"updateNodeBounds");a(no,"insertPolygonShape")});var hnt,f2e,p2e=v(()=>{"use strict";qB();nt();bt();Xt();zB();hnt=a(async(e,t)=>{t.useHtmlLabels||ar(J())||(t.centerLabel=!0);let{shapeSvg:i,bbox:n,halfPadding:s}=await Ni(e,t,"node "+t.classes,!0);W.info("Classes = ",t.classes);let o=i.insert("rect",":first-child");return o.attr("rx",t.rx).attr("ry",t.ry).attr("x",-n.width/2-s).attr("y",-n.height/2-s).attr("width",n.width+t.padding).attr("height",n.height+t.padding),si(t,o),t.intersect=function(l){return Kr.rect(t,l)},i},"note"),f2e=hnt});function jB(e,t,r,i){let n=[],s=a(l=>{n.push(l,0)},"addBorder"),o=a(l=>{n.push(0,l)},"skipBorder");t.includes("t")?(W.debug("add top border"),s(r)):o(r),t.includes("r")?(W.debug("add right border"),s(i)):o(i),t.includes("b")?(W.debug("add bottom border"),s(r)):o(r),t.includes("l")?(W.debug("add left border"),s(i)):o(i),e.attr("stroke-dasharray",n.join(" "))}var m2e,Va,g2e,dnt,fnt,pnt,mnt,gnt,ynt,xnt,bnt,Tnt,knt,Cnt,vnt,Snt,_nt,wnt,Ent,Ant,Rnt,Lnt,y2e,Dnt,Int,x2e,iw,UB,b2e,T2e=v(()=>{"use strict";sr();bt();Xt();nt();t2e();ew();zB();p2e();qB();m2e=a(e=>e?" "+e:"","formatClass"),Va=a((e,t)=>`${t||"node default"}${m2e(e.classes)} ${m2e(e.class)}`,"getClassesFromNode"),g2e=a(async(e,t)=>{let{shapeSvg:r,bbox:i}=await Ni(e,t,Va(t,void 0),!0),n=i.width+t.padding,s=i.height+t.padding,o=n+s,l=[{x:o/2,y:0},{x:o,y:-o/2},{x:o/2,y:-o},{x:0,y:-o/2}];W.info("Question main (Circle)");let u=no(r,o,o,l);return u.attr("style",t.style),si(t,u),t.intersect=function(h){return W.warn("Intersect called"),Kr.polygon(t,l,h)},r},"question"),dnt=a((e,t)=>{let r=e.insert("g").attr("class","node default").attr("id",t.domId||t.id),i=28,n=[{x:0,y:i/2},{x:i/2,y:0},{x:0,y:-i/2},{x:-i/2,y:0}];return r.insert("polygon",":first-child").attr("points",n.map(function(o){return o.x+","+o.y}).join(" ")).attr("class","state-start").attr("r",7).attr("width",28).attr("height",28),t.width=28,t.height=28,t.intersect=function(o){return Kr.circle(t,14,o)},r},"choice"),fnt=a(async(e,t)=>{let{shapeSvg:r,bbox:i}=await Ni(e,t,Va(t,void 0),!0),n=4,s=t.positioned?t.height:i.height+t.padding,o=s/n,l=t.positioned?t.width:i.width+2*o+t.padding,u=[{x:o,y:0},{x:l-o,y:0},{x:l,y:-s/2},{x:l-o,y:-s},{x:o,y:-s},{x:0,y:-s/2}],h=no(r,l,s,u);return h.attr("style",t.style),si(t,h),t.intersect=function(d){return Kr.polygon(t,u,d)},r},"hexagon"),pnt=a(async(e,t)=>{let{shapeSvg:r,bbox:i}=await Ni(e,t,void 0,!0),n=2,s=i.height+2*t.padding,o=s/n,l=i.width+2*o+t.padding,h=t.positioned&&(t.widthInColumns??1)>1&&t.width>l?t.width:l,d=e2e(t.directions,i,t,h),f=no(r,h,s,d);return f.attr("style",t.style),si(t,f),t.intersect=function(p){return Kr.polygon(t,d,p)},r},"block_arrow"),mnt=a(async(e,t)=>{let{shapeSvg:r,bbox:i}=await Ni(e,t,Va(t,void 0),!0),n=i.width+t.padding,s=i.height+t.padding,o=[{x:-s/2,y:0},{x:n,y:0},{x:n,y:-s},{x:-s/2,y:-s},{x:0,y:-s/2}];return no(r,n,s,o).attr("style",t.style),t.width=n+s,t.height=s,t.intersect=function(u){return Kr.polygon(t,o,u)},r},"rect_left_inv_arrow"),gnt=a(async(e,t)=>{let{shapeSvg:r,bbox:i}=await Ni(e,t,Va(t),!0),n=i.width+t.padding,s=i.height+t.padding,o=[{x:-2*s/6,y:0},{x:n-s/6,y:0},{x:n+2*s/6,y:-s},{x:s/6,y:-s}],l=no(r,n,s,o);return l.attr("style",t.style),si(t,l),t.intersect=function(u){return Kr.polygon(t,o,u)},r},"lean_right"),ynt=a(async(e,t)=>{let{shapeSvg:r,bbox:i}=await Ni(e,t,Va(t,void 0),!0),n=i.width+t.padding,s=i.height+t.padding,o=[{x:2*s/6,y:0},{x:n+s/6,y:0},{x:n-2*s/6,y:-s},{x:-s/6,y:-s}],l=no(r,n,s,o);return l.attr("style",t.style),si(t,l),t.intersect=function(u){return Kr.polygon(t,o,u)},r},"lean_left"),xnt=a(async(e,t)=>{let{shapeSvg:r,bbox:i}=await Ni(e,t,Va(t,void 0),!0),n=i.width+t.padding,s=i.height+t.padding,o=[{x:-2*s/6,y:0},{x:n+2*s/6,y:0},{x:n-s/6,y:-s},{x:s/6,y:-s}],l=no(r,n,s,o);return l.attr("style",t.style),si(t,l),t.intersect=function(u){return Kr.polygon(t,o,u)},r},"trapezoid"),bnt=a(async(e,t)=>{let{shapeSvg:r,bbox:i}=await Ni(e,t,Va(t,void 0),!0),n=i.width+t.padding,s=i.height+t.padding,o=[{x:s/6,y:0},{x:n-s/6,y:0},{x:n+2*s/6,y:-s},{x:-2*s/6,y:-s}],l=no(r,n,s,o);return l.attr("style",t.style),si(t,l),t.intersect=function(u){return Kr.polygon(t,o,u)},r},"inv_trapezoid"),Tnt=a(async(e,t)=>{let{shapeSvg:r,bbox:i}=await Ni(e,t,Va(t,void 0),!0),n=i.width+t.padding,s=i.height+t.padding,o=[{x:0,y:0},{x:n+s/2,y:0},{x:n,y:-s/2},{x:n+s/2,y:-s},{x:0,y:-s}],l=no(r,n,s,o);return l.attr("style",t.style),si(t,l),t.intersect=function(u){return Kr.polygon(t,o,u)},r},"rect_right_inv_arrow"),knt=a(async(e,t)=>{let{shapeSvg:r,bbox:i}=await Ni(e,t,Va(t,void 0),!0),n=i.width+t.padding,s=n/2,o=s/(2.5+n/50),l=i.height+o+t.padding,u="M 0,"+o+" a "+s+","+o+" 0,0,0 "+n+" 0 a "+s+","+o+" 0,0,0 "+-n+" 0 l 0,"+l+" a "+s+","+o+" 0,0,0 "+n+" 0 l 0,"+-l,h=r.attr("label-offset-y",o).insert("path",":first-child").attr("style",t.style).attr("d",u).attr("transform","translate("+-n/2+","+-(l/2+o)+")");return si(t,h),t.intersect=function(d){let f=Kr.rect(t,d),p=f.x-t.x;if(s!=0&&(Math.abs(p)<t.width/2||Math.abs(p)==t.width/2&&Math.abs(f.y-t.y)>t.height/2-o)){let m=o*o*(1-p*p/(s*s));m!=0&&(m=Math.sqrt(m)),m=o-m,d.y-t.y>0&&(m=-m),f.y+=m}return f},r},"cylinder"),Cnt=a(async(e,t)=>{let{shapeSvg:r,bbox:i,halfPadding:n}=await Ni(e,t,"node "+t.classes+" "+t.class,!0),s=r.insert("rect",":first-child"),o=t.positioned?t.width:i.width+t.padding,l=t.positioned?t.height:i.height+t.padding,u=t.positioned?-o/2:-i.width/2-n,h=t.positioned?-l/2:-i.height/2-n;if(s.attr("class","basic label-container").attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("x",u).attr("y",h).attr("width",o).attr("height",l),t.props){let d=new Set(Object.keys(t.props));t.props.borders&&(jB(s,t.props.borders,o,l),d.delete("borders")),d.forEach(f=>{W.warn(`Unknown node property ${f}`)})}return si(t,s),t.intersect=function(d){return Kr.rect(t,d)},r},"rect"),vnt=a(async(e,t)=>{let{shapeSvg:r,bbox:i,halfPadding:n}=await Ni(e,t,"node "+t.classes,!0),s=r.insert("rect",":first-child"),o=t.positioned?t.width:i.width+t.padding,l=t.positioned?t.height:i.height+t.padding,u=t.positioned?-o/2:-i.width/2-n,h=t.positioned?-l/2:-i.height/2-n;if(s.attr("class","basic cluster composite label-container").attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("x",u).attr("y",h).attr("width",o).attr("height",l),t.props){let d=new Set(Object.keys(t.props));t.props.borders&&(jB(s,t.props.borders,o,l),d.delete("borders")),d.forEach(f=>{W.warn(`Unknown node property ${f}`)})}return si(t,s),t.intersect=function(d){return Kr.rect(t,d)},r},"composite"),Snt=a(async(e,t)=>{let{shapeSvg:r}=await Ni(e,t,"label",!0);W.trace("Classes = ",t.class);let i=r.insert("rect",":first-child"),n=0,s=0;if(i.attr("width",n).attr("height",s),r.attr("class","label edgeLabel"),t.props){let o=new Set(Object.keys(t.props));t.props.borders&&(jB(i,t.props.borders,n,s),o.delete("borders")),o.forEach(l=>{W.warn(`Unknown node property ${l}`)})}return si(t,i),t.intersect=function(o){return Kr.rect(t,o)},r},"labelRect");a(jB,"applyNodePropertyBorders");_nt=a(async(e,t)=>{let r;t.classes?r="node "+t.classes:r="node default";let i=e.insert("g").attr("class",r).attr("id",t.domId||t.id),n=i.insert("rect",":first-child"),s=i.insert("line"),o=i.insert("g").attr("class","label"),l=t.labelText.flat?t.labelText.flat():t.labelText,u="";typeof l=="object"?u=l[0]:u=l,W.info("Label text abc79",u,l,typeof l=="object");let h=await ya(o,u,t.labelStyle,!0,!0),d={width:0,height:0};if(ar(J())){let x=h.children[0],b=Se(h);d=x.getBoundingClientRect(),b.attr("width",d.width),b.attr("height",d.height)}W.info("Text 2",l);let f=l.slice(1,l.length),p=h.getBBox(),m=await ya(o,f.join?f.join("<br/>"):f,t.labelStyle,!0,!0);if(ar(J())){let x=m.children[0],b=Se(m);d=x.getBoundingClientRect(),b.attr("width",d.width),b.attr("height",d.height)}let g=t.padding/2;return Se(m).attr("transform","translate( "+(d.width>p.width?0:(p.width-d.width)/2)+", "+(p.height+g+5)+")"),Se(h).attr("transform","translate( "+(d.width<p.width?0:-(p.width-d.width)/2)+", 0)"),d=o.node().getBBox(),o.attr("transform","translate("+-d.width/2+", "+(-d.height/2-g+3)+")"),n.attr("class","outer title-state").attr("x",-d.width/2-g).attr("y",-d.height/2-g).attr("width",d.width+t.padding).attr("height",d.height+t.padding),s.attr("class","divider").attr("x1",-d.width/2-g).attr("x2",d.width/2+g).attr("y1",-d.height/2-g+p.height+g).attr("y2",-d.height/2-g+p.height+g),si(t,n),t.intersect=function(x){return Kr.rect(t,x)},i},"rectWithTitle"),wnt=a(async(e,t)=>{let{shapeSvg:r,bbox:i}=await Ni(e,t,Va(t,void 0),!0),n=i.height+t.padding,s=i.width+n/4+t.padding,o=r.insert("rect",":first-child").attr("style",t.style).attr("rx",n/2).attr("ry",n/2).attr("x",-s/2).attr("y",-n/2).attr("width",s).attr("height",n);return si(t,o),t.intersect=function(l){return Kr.rect(t,l)},r},"stadium"),Ent=a(async(e,t)=>{let{shapeSvg:r,bbox:i,halfPadding:n}=await Ni(e,t,Va(t,void 0),!0),s=r.insert("circle",":first-child");return s.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("r",i.width/2+n).attr("width",i.width+t.padding).attr("height",i.height+t.padding),W.info("Circle main"),si(t,s),t.intersect=function(o){return W.info("Circle intersect",t,i.width/2+n,o),Kr.circle(t,i.width/2+n,o)},r},"circle"),Ant=a(async(e,t)=>{let{shapeSvg:r,bbox:i,halfPadding:n}=await Ni(e,t,Va(t,void 0),!0),s=5,o=r.insert("g",":first-child"),l=o.insert("circle"),u=o.insert("circle");return o.attr("class",t.class),l.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("r",i.width/2+n+s).attr("width",i.width+t.padding+s*2).attr("height",i.height+t.padding+s*2),u.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("r",i.width/2+n).attr("width",i.width+t.padding).attr("height",i.height+t.padding),W.info("DoubleCircle main"),si(t,l),t.intersect=function(h){return W.info("DoubleCircle intersect",t,i.width/2+n+s,h),Kr.circle(t,i.width/2+n+s,h)},r},"doublecircle"),Rnt=a(async(e,t)=>{let{shapeSvg:r,bbox:i}=await Ni(e,t,Va(t,void 0),!0),n=i.width+t.padding,s=i.height+t.padding,o=[{x:0,y:0},{x:n,y:0},{x:n,y:-s},{x:0,y:-s},{x:0,y:0},{x:-8,y:0},{x:n+8,y:0},{x:n+8,y:-s},{x:-8,y:-s},{x:-8,y:0}],l=no(r,n,s,o);return l.attr("style",t.style),si(t,l),t.intersect=function(u){return Kr.polygon(t,o,u)},r},"subroutine"),Lnt=a((e,t)=>{let r=e.insert("g").attr("class","node default").attr("id",t.domId||t.id),i=r.insert("circle",":first-child");return i.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),si(t,i),t.intersect=function(n){return Kr.circle(t,7,n)},r},"start"),y2e=a((e,t,r)=>{let i=e.insert("g").attr("class","node default").attr("id",t.domId||t.id),n=70,s=10;r==="LR"&&(n=10,s=70);let o=i.append("rect").attr("x",-1*n/2).attr("y",-1*s/2).attr("width",n).attr("height",s).attr("class","fork-join");return si(t,o),t.height=t.height+t.padding/2,t.width=t.width+t.padding/2,t.intersect=function(l){return Kr.rect(t,l)},i},"forkJoin"),Dnt=a((e,t)=>{let r=e.insert("g").attr("class","node default").attr("id",t.domId||t.id),i=r.insert("circle",":first-child"),n=r.insert("circle",":first-child");return n.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),i.attr("class","state-end").attr("r",5).attr("width",10).attr("height",10),si(t,n),t.intersect=function(s){return Kr.circle(t,7,s)},r},"end"),Int=a(async(e,t)=>{let r=t.padding/2,i=4,n=8,s;t.classes?s="node "+t.classes:s="node default";let o=e.insert("g").attr("class",s).attr("id",t.domId||t.id),l=o.insert("rect",":first-child"),u=o.insert("line"),h=o.insert("line"),d=0,f=i,p=o.insert("g").attr("class","label"),m=0,g=t.classData.annotations?.[0],x=t.classData.annotations[0]?"\xAB"+t.classData.annotations[0]+"\xBB":"",b=await ya(p,x,t.labelStyle,!0,!0),T=b.getBBox();if(ar(J())){let I=b.children[0],B=Se(b);T=I.getBoundingClientRect(),B.attr("width",T.width),B.attr("height",T.height)}t.classData.annotations[0]&&(f+=T.height+i,d+=T.width);let k=t.classData.label;t.classData.type!==void 0&&t.classData.type!==""&&(ar(J())?k+="<"+t.classData.type+">":k+="<"+t.classData.type+">");let C=await ya(p,k,t.labelStyle,!0,!0);Se(C).attr("class","classTitle");let S=C.getBBox();if(ar(J())){let I=C.children[0],B=Se(C);S=I.getBoundingClientRect(),B.attr("width",S.width),B.attr("height",S.height)}f+=S.height+i,S.width>d&&(d=S.width);let w=[];t.classData.members.forEach(async I=>{let B=I.getDisplayDetails(),G=B.displayText;ar(J())&&(G=G.replace(/</g,"<").replace(/>/g,">"));let P=await ya(p,G,B.cssStyle?B.cssStyle:t.labelStyle,!0,!0),F=P.getBBox();if(ar(J())){let A=P.children[0],D=Se(P);F=A.getBoundingClientRect(),D.attr("width",F.width),D.attr("height",F.height)}F.width>d&&(d=F.width),f+=F.height+i,w.push(P)}),f+=n;let _=[];if(t.classData.methods.forEach(async I=>{let B=I.getDisplayDetails(),G=B.displayText;ar(J())&&(G=G.replace(/</g,"<").replace(/>/g,">"));let P=await ya(p,G,B.cssStyle?B.cssStyle:t.labelStyle,!0,!0),F=P.getBBox();if(ar(J())){let A=P.children[0],D=Se(P);F=A.getBoundingClientRect(),D.attr("width",F.width),D.attr("height",F.height)}F.width>d&&(d=F.width),f+=F.height+i,_.push(P)}),f+=n,g){let I=(d-T.width)/2;Se(b).attr("transform","translate( "+(-1*d/2+I)+", "+-1*f/2+")"),m=T.height+i}let L=(d-S.width)/2;return Se(C).attr("transform","translate( "+(-1*d/2+L)+", "+(-1*f/2+m)+")"),m+=S.height+i,u.attr("class","divider").attr("x1",-d/2-r).attr("x2",d/2+r).attr("y1",-f/2-r+n+m).attr("y2",-f/2-r+n+m),m+=n,w.forEach(I=>{Se(I).attr("transform","translate( "+-d/2+", "+(-1*f/2+m+n/2)+")");let B=I?.getBBox();m+=(B?.height??0)+i}),m+=n,h.attr("class","divider").attr("x1",-d/2-r).attr("x2",d/2+r).attr("y1",-f/2-r+n+m).attr("y2",-f/2-r+n+m),m+=n,_.forEach(I=>{Se(I).attr("transform","translate( "+-d/2+", "+(-1*f/2+m)+")");let B=I?.getBBox();m+=(B?.height??0)+i}),l.attr("style",t.style).attr("class","outer title-state").attr("x",-d/2-r).attr("y",-(f/2)-r).attr("width",d+t.padding).attr("height",f+t.padding),si(t,l),t.intersect=function(I){return Kr.rect(t,I)},o},"class_box"),x2e={rhombus:g2e,composite:vnt,question:g2e,rect:Cnt,labelRect:Snt,rectWithTitle:_nt,choice:dnt,circle:Ent,doublecircle:Ant,stadium:wnt,hexagon:fnt,block_arrow:pnt,rect_left_inv_arrow:mnt,lean_right:gnt,lean_left:ynt,trapezoid:xnt,inv_trapezoid:bnt,rect_right_inv_arrow:Tnt,cylinder:knt,start:Lnt,end:Dnt,note:f2e,subroutine:Rnt,fork:y2e,join:y2e,class_box:Int},iw={},UB=a(async(e,t,r)=>{let i,n;if(t.link){let s;J().securityLevel==="sandbox"?s="_top":t.linkTarget&&(s=t.linkTarget||"_blank"),i=e.insert("svg:a").attr("xlink:href",t.link).attr("target",s),n=await x2e[t.shape](i,t,r)}else n=await x2e[t.shape](e,t,r),i=n;return t.tooltip&&n.attr("title",t.tooltip),t.class&&n.attr("class","node default "+t.class),iw[t.id]=i,t.haveCallback&&iw[t.id].attr("class",iw[t.id].attr("class")+" clickable"),i},"insertNode"),b2e=a(e=>{let t=iw[e.id];W.trace("Transforming node",e.diff,e,"translate("+(e.x-e.width/2-5)+", "+e.width/2+")");let r=8,i=e.diff||0;return e.clusterNode?t.attr("transform","translate("+(e.x+i-e.width/2)+", "+(e.y-e.height/2-r)+")"):t.attr("transform","translate("+e.x+", "+e.y+")"),i},"positionNode")});function k2e(e,t,r=!1){let i=e,n="default";(i?.classes?.length||0)>0&&(n=(i?.classes??[]).join(" ")),n=n+" flowchart-label";let s=0,o="",l;switch(i.type){case"round":s=5,o="rect";break;case"composite":s=0,o="composite",l=0;break;case"square":o="rect";break;case"diamond":o="question";break;case"hexagon":o="hexagon";break;case"block_arrow":o="block_arrow";break;case"odd":o="rect_left_inv_arrow";break;case"lean_right":o="lean_right";break;case"lean_left":o="lean_left";break;case"trapezoid":o="trapezoid";break;case"inv_trapezoid":o="inv_trapezoid";break;case"rect_left_inv_arrow":o="rect_left_inv_arrow";break;case"circle":o="circle";break;case"ellipse":o="ellipse";break;case"stadium":o="stadium";break;case"subroutine":o="subroutine";break;case"cylinder":o="cylinder";break;case"group":o="rect";break;case"doublecircle":o="doublecircle";break;default:o="rect"}let u=m5(i?.styles??[]),h=i.label,d=i.size??{width:0,height:0,x:0,y:0},f=t.getDiagramId();return{labelStyle:u.labelStyle,shape:o,labelText:h,rx:s,ry:s,class:n,style:u.style,id:i.id,domId:f?`${f}-${i.id}`:i.id,directions:i.directions,width:d.width,height:d.height,x:d.x,y:d.y,positioned:r,intersect:void 0,type:i.type,padding:l??ct()?.block?.padding??0,widthInColumns:i.widthInColumns??1}}async function Nnt(e,t,r){let i=k2e(t,r,!1);if(i.type==="group")return;let n=ct(),s=await UB(e,i,{config:n}),o=s.node().getBBox(),l=r.getBlock(i.id);l.size={width:o.width,height:o.height,x:0,y:0,node:s},r.setBlock(l),s.remove()}async function Mnt(e,t,r){let i=k2e(t,r,!0);if(r.getBlock(i.id).type!=="space"){let s=ct();await UB(e,i,{config:s}),t.intersect=i?.intersect,b2e(i)}}async function HB(e,t,r,i){for(let n of t)await i(e,n,r),n.children&&await HB(e,n.children,r,i)}async function C2e(e,t,r){await HB(e,t,r,Nnt)}async function v2e(e,t,r){await HB(e,t,r,Mnt)}async function S2e(e,t,r,i,n){let s=new Dr({multigraph:!0,compound:!0});s.setGraph({rankdir:"TB",nodesep:10,ranksep:10,marginx:8,marginy:8});for(let o of r)o.size&&s.setNode(o.id,{width:o.size.width,height:o.size.height,intersect:o.intersect});for(let o of t)if(o.start&&o.end){let l=i.getBlock(o.start),u=i.getBlock(o.end);if(l?.size&&u?.size){let h=l.size,d=u.size,f=[{x:h.x,y:h.y},{x:h.x+(d.x-h.x)/2,y:h.y+(d.y-h.y)/2},{x:d.x,y:d.y}],p=n?`${n}-${o.id}`:o.id,m=o.thickness==="thick"?"edge-thickness-thick":"edge-thickness-normal",g=o.pattern==="dotted"?"edge-pattern-dotted":"edge-pattern-solid",x=`${m} ${g} flowchart-link LS-a1 LE-b1`;Zbe(e,{v:o.start,w:o.end,name:p},{...o,id:p,arrowTypeEnd:o.arrowTypeEnd,arrowTypeStart:o.arrowTypeStart,points:f,classes:x},void 0,"block",s,n),o.label&&(await Xbe(e,{...o,label:o.label,labelStyle:"stroke: #333; stroke-width: 1.5px;fill:none;",arrowTypeEnd:o.arrowTypeEnd,arrowTypeStart:o.arrowTypeStart,points:f,classes:x}),Qbe({...o,x:f[1].x,y:f[1].y},{originalPath:f}))}}}var _2e=v(()=>{"use strict";as();Xt();Jbe();T2e();Et();a(k2e,"getNodeFromBlock");a(Nnt,"calculateBlockSize");a(Mnt,"insertBlockPositioned");a(HB,"performOperations");a(C2e,"calculateBlockSizes");a(v2e,"insertBlocks");a(S2e,"insertEdges")});var Ont,Pnt,w2e,E2e=v(()=>{"use strict";sr();Xt();Vbe();nt();Xr();jbe();_2e();Ont=a(function(e,t){return t.db.getClasses()},"getClasses"),Pnt=a(async function(e,t,r,i){let{securityLevel:n,block:s}=ct(),o=i.db;o.setDiagramId(t);let l;n==="sandbox"&&(l=Se("#i"+t));let u=n==="sandbox"?Se(l.nodes()[0].contentDocument.body):Se("body"),h=n==="sandbox"?u.select(`[id="${t}"]`):Se(`[id="${t}"]`);Fbe(h,["point","circle","cross"],i.type,t);let f=o.getBlocks(),p=o.getBlocksFlat(),m=o.getEdges(),g=h.insert("g").attr("class","block");await C2e(g,f,o);let x=qbe(o);if(await v2e(g,f,o),await S2e(g,m,p,o,t),x){let b=x,T=Math.max(1,Math.round(.125*(b.width/b.height))),k=b.height+T+10,C=b.width+10,{useMaxWidth:S}=s;fr(h,k,C,!!S),W.debug("Here Bounds",x,b),h.attr("viewBox",`${b.x-5} ${b.y-5} ${b.width+10} ${b.height+10}`)}},"draw"),w2e={draw:Pnt,getClasses:Ont}});var A2e={};tr(A2e,{diagram:()=>Bnt});var Bnt,R2e=v(()=>{"use strict";Rbe();Pbe();$be();E2e();Bnt={parser:Abe,db:Obe,renderer:w2e,styles:Bbe}});var rl,Gnt,Wnt,znt,qnt,jnt,Unt,Hnt,wx,YB=v(()=>{"use strict";Xt();gn();zr();Et();t_();rl=new Du(()=>({cnt:1,stack:[{id:0,level:-1,name:"/",children:[]}]})),Gnt=a(()=>{rl.reset(),Ht()},"clear"),Wnt=a(()=>rl.records.stack[0],"getRoot"),znt=a(()=>rl.records.cnt,"getCount"),qnt=Ut.treeView,jnt=a(()=>xr(qnt,ct().treeView),"getConfig"),Unt=a((e,t)=>{for(;e<=rl.records.stack[rl.records.stack.length-1].level;)rl.records.stack.pop();let r={id:rl.records.cnt++,level:e,name:t,children:[]};rl.records.stack[rl.records.stack.length-1].children.push(r),rl.records.stack.push(r)},"addNode"),Hnt={clear:Gnt,addNode:Unt,getRoot:Wnt,getCount:znt,getConfig:jnt,getAccTitle:Qt,getAccDescription:Jt,getDiagramTitle:er,setAccDescription:Zt,setAccTitle:Yt,setDiagramTitle:ir},wx=Hnt});var Ynt,I2e,N2e=v(()=>{"use strict";nt();Jl();YB();to();Ynt=a(e=>{Sn(e,wx),e.nodes.map(t=>wx.addNode(t.indent?parseInt(t.indent):0,t.name))},"populate"),I2e={parse:a(async e=>{let t=await zi("treeView",e);W.debug(t),Ynt(t)},"parse")}});var Knt,M2e,Xnt,Qnt,Znt,O2e,P2e=v(()=>{"use strict";nt();ga();Xr();Knt=a((e,t,r,i,n)=>{let s=i.append("text").text(r.name).attr("dominant-baseline","middle").attr("class","treeView-node-label"),{height:o,width:l}=s.node().getBBox(),u=o+n.paddingY*2,h=l+n.paddingX*2;s.attr("x",e+n.paddingX),s.attr("y",t+u/2),r.BBox={x:e,y:t,width:h,height:u}},"positionLabel"),M2e=a((e,t,r,i,n,s)=>e.append("line").attr("x1",t).attr("y1",r).attr("x2",i).attr("y2",n).attr("stroke-width",s).attr("class","treeView-node-line"),"positionLine"),Xnt=a((e,t,r)=>{let i=0,n=0,s=a((l,u,h,d)=>{let f=d*(h.rowIndent+h.paddingX);Knt(f,i,u,l,h);let{height:p,width:m}=u.BBox;M2e(l,f-h.rowIndent,i+p/2,f,i+p/2,h.lineThickness),n=Math.max(n,f+m),i+=p},"drawNode"),o=a((l,u=0)=>{s(e,l,r,u),l.children.forEach(p=>{o(p,u+1)});let{x:h,y:d,height:f}=l.BBox;if(l.children.length){let{y:p,height:m}=l.children[l.children.length-1].BBox;M2e(e,h+r.paddingX,d+f,h+r.paddingX,p+m/2+r.lineThickness/2,r.lineThickness)}},"processNode");return o(t),{totalHeight:i,totalWidth:n}},"drawTree"),Qnt=a((e,t,r,i)=>{W.debug(`Rendering treeView diagram
`+e);let n=i.db,s=n.getRoot(),o=n.getConfig(),l=Yr(t),u=l.append("g");u.attr("class","tree-view");let{totalHeight:h,totalWidth:d}=Xnt(u,s,o);l.attr("viewBox",`-${o.lineThickness/2} 0 ${d} ${h}`),fr(l,h,d,o.useMaxWidth)},"draw"),Znt={draw:Qnt},O2e=Znt});var Jnt,eat,B2e,$2e=v(()=>{"use strict";Et();Jnt={labelFontSize:"16px",labelColor:"black",lineColor:"black"},eat=a(({treeView:e})=>{let{labelFontSize:t,labelColor:r,lineColor:i}=xr(Jnt,e);return`
.treeView-node-label {
font-size: ${t};
fill: ${r};
}
.treeView-node-line {
stroke: ${i};
}
`},"styles"),B2e=eat});var F2e={};tr(F2e,{diagram:()=>tat});var tat,V2e=v(()=>{"use strict";N2e();YB();P2e();$2e();tat={db:wx,renderer:O2e,parser:I2e,styles:B2e}});var KB,XB,nw,QB,z2e=v(()=>{"use strict";KB="position frame",XB="frame positioned",nw="position relation",QB="relation positioned"});function lat(){e8={}}function hat(){let e=fat,{ast:t}=e8,r=j2e();if(!t)throw new Error("No data for EventModel");return t.frames.forEach((i,n)=>{let s=bat(i,t.dataEntities,r);e=JB(e,{$kind:KB,index:n,frame:i,textProps:s});let o;_at(i)?(W.debug("source frame",i.sourceFrames),o=t.frames.filter(l=>i.sourceFrames.some(u=>u.$refText===l.name)),o.forEach(l=>{e=JB(e,{$kind:nw,index:n,frame:i,sourceFrame:l})})):e=JB(e,{$kind:nw,index:n,frame:i})}),e={...e,sortedSwimlanesArray:U2e(e.swimlanes)},e}function dat(e){e8.ast=e}function j2e(){return Sr}function pat(e){let t=e.split(".");if(t.length===2)return t[0]}function mat(e){let t=e.split(".");return t.length===2?t[1]:e}function gat(e,t){if(!(!t||t.length===0))return Object.values(e).find(r=>r.namespace===t)}function ZB(e,t,r){return Math.max(t,...Object.keys(e).filter(i=>{let n=Number.parseInt(i);return n>t&&n<r}).map(i=>Number.parseInt(i)))+1}function yat(e,t){let r=pat(e.entityIdentifier),i=gat(t,r);switch(e.modelEntityType){case"ui":case"pcr":case"processor":return i?{index:i.index,label:i.namespace||Sr.labelUiAutomation}:r?{index:ZB(t,0,100),label:Sr.labelUiAutomationPrefix+r}:{index:0,label:Sr.labelUiAutomation};case"rmo":case"readmodel":case"cmd":case"command":return i?{index:i.index,label:i.namespace||Sr.labelCommandReadModel}:r?{index:ZB(t,100,200),label:Sr.labelCommandReadModelPrefix+r}:{index:100,label:Sr.labelCommandReadModel};case"evt":case"event":default:return i?{index:i.index,label:i.namespace||Sr.labelEvents}:r?{index:ZB(t,200,300),label:Sr.labelEventsPrefix+r}:{index:200,label:Sr.labelEvents}}}function xat(e){let{themeVariables:t}=ct();switch(e.modelEntityType){case"ui":return{fill:t.emUiFill??"white",stroke:t.emUiStroke??"#dbdada"};case"pcr":case"processor":return{fill:t.emProcessorFill??"#edb3f6",stroke:t.emProcessorStroke??"#b88cbf"};case"rmo":case"readmodel":return{fill:t.emReadModelFill??"#d3f1a2",stroke:t.emReadModelStroke??"#a3b732"};case"cmd":case"command":return{fill:t.emCommandFill??"#bcd6fe",stroke:t.emCommandStroke??"#679ac3"};case"evt":case"event":return{fill:t.emEventFill??"#ffb778",stroke:t.emEventStroke??"#c19a0f"};default:return{fill:"red",stroke:"black"}}}function bat(e,t,r){let i=ct(),n=rr(mat(e.entityIdentifier)??"",i),s,o={fontSize:16,fontWeight:700,fontFamily:'"trebuchet ms", verdana, arial, sans-serif',joinWith:"<br/>"},u=`<b>${_h(n,r.textMaxWidth,o)}</b>`;if(e.dataInlineValue&&(s=e.dataInlineValue,s=s.substring(s.indexOf("{")+1),s=s.substring(0,s.lastIndexOf("}")-1),s=rr(s,i),s=_h(s,r.textMaxWidth,o),s=s.replaceAll(" "," ")),e.dataReference){let g=t.find(x=>x.name===e.dataReference?.$refText);g&&(s=g.dataBlockValue,s=s.substring(s.indexOf(`{
`)+2),s=s.substring(0,s.lastIndexOf("}")-1),s=rr(s,i),s=_h(s,r.textMaxWidth,o),s=s.replaceAll(" "," "),s+="<br/>")}let h=s!==void 0;h&&(u+=`<br/><br/><code style="text-align: left; display: block;max-width:${r.textMaxWidth}px">${s}</code>`);let d={fontSize:o.fontSize,fontWeight:o.fontWeight,fontFamily:o.fontFamily},f=Vy(u,d),p=h?f.width/3:f.width,m={content:u,width:p,height:f.height};return W.debug(`[${e.name}] ${e.entityIdentifier} text`,m),m}function Tat(e,t){let r=t,i=xat(r.frame),n={width:r.textProps.width+2*Sr.boxTextPadding,height:r.textProps.height+2*Sr.boxTextPadding};return[{$kind:XB,frame:r.frame,index:r.index,visual:i,dimension:n,textProps:r.textProps}]}function kat(e,t,r){return t===void 0?Sr.contentStartX:t.index===e.index&&e.r?e.r+Sr.boxPadding:r===void 0?Sr.contentStartX:r.r-Sr.boxOverlap+Sr.boxPadding}function Cat(e,t){let r=[...e.map(i=>i.r),t];return Math.max(...r)}function U2e(e){return Object.values(e).sort((t,r)=>t.index-r.index)}function vat(e,t){let r=t,i=yat(r.frame,e.swimlanes),n;i.index in e.swimlanes?n=e.swimlanes[i.index]:n={index:i.index,label:i.label,r:0,y:i.index*Sr.swimlaneMinHeight+Sr.swimlaneGap,height:Sr.swimlaneMinHeight,maxHeight:Sr.swimlaneMinHeight};let s=e.boxes.length>0?e.boxes[e.boxes.length-1]:void 0,o=e.previousSwimlaneNumber!==void 0?e.swimlanes[e.previousSwimlaneNumber]:void 0,l={width:Math.max(Sr.boxMinWidth,Math.min(Sr.boxMaxWidth,r.dimension.width))+2*Sr.boxPadding,height:Math.max(Sr.boxMinHeight,Math.min(Sr.boxMaxHeight,r.dimension.height))+2*Sr.boxPadding},u=kat(n,o,s),h=u+l.width+Sr.boxPadding,d=Cat(Object.values(e.swimlanes),h);n.r=u+l.width,n.maxHeight=Math.max(n.maxHeight,l.height),n.height=Math.max(Sr.swimlaneMinHeight,n.maxHeight)+2*Sr.swimlanePadding;let f={x:u,y:Sr.swimlanePadding+n.y,r:h,dimension:l,leftSibling:!1,swimlane:n,visual:r.visual,text:r.textProps.content,frame:r.frame,index:r.index},p={...e,boxes:[...e.boxes,f],swimlanes:{...e.swimlanes,[`${n.index}`]:n},previousSwimlaneNumber:i.index,previousFrame:r.frame,maxR:d},m=U2e(p.swimlanes);m.length>0&&(m[0].y=0);for(let g=1;g<m.length;g++){let x=m[g],b=m[g-1];x.y=b.y+b.height+Sr.swimlaneGap}return p}function Sat(e,t){return e===0&&t.sourceFrames.length===0}function _at(e){return e.sourceFrames!==void 0&&e.sourceFrames!==null&&e.sourceFrames.length>0}function q2e(e,t){if(t!=null)return e.find(r=>r.frame.name===t.name)}function wat(e,t,r){if(!(r<0))for(let i=r;i>=0;i--){let n=e[i];if(n.swimlane.index!==t)return n}}function Eat(e,t){let r=t;if(NS(r.frame)||Sat(r.index,r.frame))return[];let i=q2e(e.boxes,r.frame);if(i===void 0)throw new Error(`Target box not found for frame ${r.frame.name}`);let n;return r.sourceFrame?n=q2e(e.boxes,r.sourceFrame):n=wat(e.boxes,i.swimlane.index,r.index-1),n===void 0?[]:[{$kind:QB,frame:r.frame,index:r.index,sourceBox:n,targetBox:i}]}function Aat(e,t){let r=t,i={visual:{fill:"none",stroke:"#000"},source:{x:r.sourceBox.x,y:r.sourceBox.y},target:{x:r.targetBox.x,y:r.targetBox.y},sourceBox:r.sourceBox,targetBox:r.targetBox};return{...e,relations:[...e.relations,i]}}function Dat(e,t){let r=Rat[t.$kind];if(r==null)return[];let i=r(e,t);return W.debug("decided events",i),i}function Iat(e,t){let r=t.reduce((i,n)=>{let s=Lat[n.$kind];return s==null?i:s(i,n)},e);return W.debug("evolve events",{state:e,newState:r,events:t}),r}function JB(e,t){let r=Dat(e,t);return Iat(e,r)}var aat,sat,oat,cat,uat,e8,Sr,fat,Rat,Lat,Ex,t8=v(()=>{"use strict";nt();Et();Et();Xt();zr();dr();gn();to();z2e();aat=a(function(e){W.debug("options str",e)},"setOptions"),sat=a(function(){return{}},"getOptions"),oat=a(function(){lat(),Ht()},"clear");a(lat,"reset");cat=Ut.eventmodeling,uat=a(()=>xr({...cat,...ct().eventmodeling}),"getConfig"),e8={};a(hat,"getState");a(dat,"setAst");Sr={swimlaneMinHeight:70,swimlanePadding:15,swimlaneGap:10,boxPadding:10,boxOverlap:90,boxDefaultY:0,boxMinWidth:80,boxMaxWidth:450,boxMinHeight:80,boxMaxHeight:750,contentStartX:250,textMaxWidth:430,boxTextFontWeight:"bold",boxTextPadding:10,swimlaneTextFontWeight:"bold",labelUiAutomation:"UI/Automation",labelUiAutomationPrefix:"UI/A: ",labelCommandReadModel:"Command/Read Model",labelCommandReadModelPrefix:"C/RM: ",labelEvents:"Events",labelEventsPrefix:"Stream: "};a(j2e,"getDiagramProps");fat={boxes:[],swimlanes:{},relations:[],maxR:0,sortedSwimlanesArray:[]};a(pat,"extractNamespace");a(mat,"extractName");a(gat,"findSwimlaneByNamespace");a(ZB,"findNextAvailableIndex");a(yat,"calculateSwimlaneProps");a(xat,"calculateEntityVisualProps");a(bat,"calculateTextProps");a(Tat,"decidePositionFrame");a(kat,"calculateX");a(Cat,"calculateMaxRight");a(U2e,"sortedSwimlanesArray");a(vat,"evolveFramePositioned");a(Sat,"isFirstFrame");a(_at,"hasSourceFrame");a(q2e,"findBoxByFrame");a(wat,"findBoxByLineIndex");a(Eat,"decidePositionRelation");a(Aat,"evolveRelationPositioned");Rat={[KB]:Tat,[nw]:Eat},Lat={[XB]:vat,[QB]:Aat};a(Dat,"decide");a(Iat,"evolve");a(JB,"dispatch");Ex={getConfig:uat,setOptions:aat,getOptions:sat,clear:oat,setAccTitle:Yt,getAccTitle:Qt,getAccDescription:Jt,setAccDescription:Zt,setDiagramTitle:ir,getDiagramTitle:er,setAst:dat,getDiagramProps:j2e,getState:hat}});var H2e,Y2e=v(()=>{"use strict";to();nt();Jl();t8();H2e={parse:a(async e=>{let t=await zi("eventmodeling",e);W.debug(t),Ex.setAst(t),Sn(t,Ex)},"parse")}});function Oat(e,t){return r=>{let i=r.swimlane.y+t.swimlanePadding,n=e.append("g").attr("class","em-box");n.append("rect").attr("x",r.x).attr("y",i).attr("rx","3").attr("width",r.dimension.width).attr("height",r.dimension.height).attr("stroke",r.visual.stroke).attr("fill",r.visual.fill),n.append("foreignObject").attr("x",r.x+t.boxPadding).attr("y",i+10).attr("width",r.dimension.width-2*t.boxPadding).attr("height",r.dimension.height-2*t.boxPadding).append("xhtml:div").style("display","table").style("height","100%").style("width","100%").append("span").style("display","table-cell").style("text-align","center").style("vertical-align","middle").html(r.text)}}function Pat(e,t){return e>t}function Bat(e,t,r,i){return n=>{let s=n.sourceBox.swimlane.y+t.swimlanePadding,o=n.targetBox.swimlane.y+t.swimlanePadding,l=Pat(s,o),u=n.sourceBox.x+n.sourceBox.dimension.width*2/3,h=n.targetBox.x+n.targetBox.dimension.width/3,d,f;W.debug(`rendering relation up=${l} for `,{sourceBox:n.sourceBox,targetBox:n.targetBox}),l?(d=s,f=o+n.targetBox.dimension.height):(d=s+n.sourceBox.dimension.height,f=o);let p=i.emRelationStroke??n.visual.stroke;e.append("path").attr("class","em-relation").attr("fill",n.visual.fill).attr("stroke",p).attr("stroke-width","1").attr("marker-end",`url(#${r})`).attr("d",`M${u} ${d} L${h} ${f}`)}}function $at(e,t,r,i){return n=>{let s=e.append("g").attr("class","em-swimlane"),o=i.emSwimlaneBackgroundOdd??"rgb(250,250,250)",l=i.emSwimlaneBackgroundStroke??"rgb(240,240,240)";s.append("rect").attr("x",0).attr("y",n.y).attr("rx","3").attr("width",t+r.swimlanePadding).attr("height",n.height).attr("fill",o).attr("stroke",l),s.append("text").attr("font-weight",r.swimlaneTextFontWeight).attr("x",30).attr("y",n.y+30).text(n.label)}}var Nat,Mat,Fat,K2e,X2e=v(()=>{"use strict";sr();bt();nt();Nat=J(),Mat=Nat?.eventmodeling;a(Oat,"renderD3Box");a(Pat,"dirUpwards");a(Bat,"renderD3Relation");a($at,"renderD3Swimlane");Fat=a(function(e,t,r,i){if(W.debug("in eventmodeling renderer",e+`
`,"id:",t,r),!Mat)throw new Error("EventModeling config not found");let n=i.db,{themeVariables:s,eventmodeling:o}=J(),l=Se(`[id="${t}"]`),u=n.getDiagramProps(),h=n.getState(),d=`em-arrowhead-${t}`,f=s.emArrowhead??"#000000";h.sortedSwimlanesArray.forEach($at(l,h.maxR,u,s)),h.boxes.forEach(Oat(l,u)),h.relations.forEach(Bat(l,u,d,s)),l.append("defs").append("marker").attr("id",d).attr("markerWidth","10").attr("markerHeight","7").attr("refX","10").attr("refY","3.5").attr("orient","auto").append("polygon").attr("points","0 0, 10 3.5, 0 7").attr("fill",f),Dg(void 0,l,o?.padding??30,o?.useMaxWidth)},"draw"),K2e={draw:Fat}});var Vat,Q2e,Z2e=v(()=>{"use strict";Vat=a(e=>"","getStyles"),Q2e=Vat});var J2e={};tr(J2e,{diagram:()=>Gat});var Gat,eTe=v(()=>{"use strict";Y2e();t8();X2e();Z2e();Gat={parser:H2e,db:Ex,renderer:K2e,styles:Q2e}});var r8,iTe,nTe=v(()=>{"use strict";r8=(function(){var e=a(function(T,k,C,S){for(C=C||{},S=T.length;S--;C[T[S]]=k);return C},"o"),t=[1,4],r=[1,14],i=[1,12],n=[1,13],s=[6,7,8],o=[1,20],l=[1,18],u=[1,19],h=[6,7,11],d=[1,6,13,14],f=[1,23],p=[1,24],m=[1,6,7,11,13,14],g={trace:a(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ishikawa:4,spaceLines:5,SPACELINE:6,NL:7,ISHIKAWA:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,TEXT:14,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"ISHIKAWA",11:"EOF",13:"SPACELIST",14:"TEXT"},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,1],[12,1],[12,1]],performAction:a(function(k,C,S,w,_,L,I){var B=L.length-1;switch(_){case 6:case 7:return w;case 15:w.addNode(L[B-1].length,L[B].trim());break;case 16:w.addNode(0,L[B].trim());break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:t},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:t},{6:r,7:[1,10],9:9,12:11,13:i,14:n},e(s,[2,3]),{1:[2,2]},e(s,[2,4]),e(s,[2,5]),{1:[2,6],6:r,12:15,13:i,14:n},{6:r,9:16,12:11,13:i,14:n},{6:o,7:l,10:17,11:u},e(h,[2,18],{14:[1,21]}),e(h,[2,16]),e(h,[2,17]),{6:o,7:l,10:22,11:u},{1:[2,7],6:r,12:15,13:i,14:n},e(d,[2,14],{7:f,11:p}),e(m,[2,8]),e(m,[2,9]),e(m,[2,10]),e(h,[2,15]),e(d,[2,13],{7:f,11:p}),e(m,[2,11]),e(m,[2,12])],defaultActions:{2:[2,1],6:[2,2]},parseError:a(function(k,C){if(C.recoverable)this.trace(k);else{var S=new Error(k);throw S.hash=C,S}},"parseError"),parse:a(function(k){var C=this,S=[0],w=[],_=[null],L=[],I=this.table,B="",G=0,P=0,F=0,A=2,D=1,R=L.slice.call(arguments,1),N=Object.create(this.lexer),$={yy:{}};for(var E in this.yy)Object.prototype.hasOwnProperty.call(this.yy,E)&&($.yy[E]=this.yy[E]);N.setInput(k,$.yy),$.yy.lexer=N,$.yy.parser=this,typeof N.yylloc>"u"&&(N.yylloc={});var M=N.yylloc;L.push(M);var V=N.options&&N.options.ranges;typeof $.yy.parseError=="function"?this.parseError=$.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function O(ye){S.length=S.length-2*ye,_.length=_.length-ye,L.length=L.length-ye}a(O,"popStack");function z(){var ye;return ye=w.pop()||N.lex()||D,typeof ye!="number"&&(ye instanceof Array&&(w=ye,ye=w.pop()),ye=C.symbols_[ye]||ye),ye}a(z,"lex");for(var U,K,j,ae,X,de,le={},ge,he,te,Le;;){if(j=S[S.length-1],this.defaultActions[j]?ae=this.defaultActions[j]:((U===null||typeof U>"u")&&(U=z()),ae=I[j]&&I[j][U]),typeof ae>"u"||!ae.length||!ae[0]){var xe="";Le=[];for(ge in I[j])this.terminals_[ge]&&ge>A&&Le.push("'"+this.terminals_[ge]+"'");N.showPosition?xe="Parse error on line "+(G+1)+`:
`+N.showPosition()+`
Expecting `+Le.join(", ")+", got '"+(this.terminals_[U]||U)+"'":xe="Parse error on line "+(G+1)+": Unexpected "+(U==D?"end of input":"'"+(this.terminals_[U]||U)+"'"),this.parseError(xe,{text:N.match,token:this.terminals_[U]||U,line:N.yylineno,loc:M,expected:Le})}if(ae[0]instanceof Array&&ae.length>1)throw new Error("Parse Error: multiple actions possible at state: "+j+", token: "+U);switch(ae[0]){case 1:S.push(U),_.push(N.yytext),L.push(N.yylloc),S.push(ae[1]),U=null,K?(U=K,K=null):(P=N.yyleng,B=N.yytext,G=N.yylineno,M=N.yylloc,F>0&&F--);break;case 2:if(he=this.productions_[ae[1]][1],le.$=_[_.length-he],le._$={first_line:L[L.length-(he||1)].first_line,last_line:L[L.length-1].last_line,first_column:L[L.length-(he||1)].first_column,last_column:L[L.length-1].last_column},V&&(le._$.range=[L[L.length-(he||1)].range[0],L[L.length-1].range[1]]),de=this.performAction.apply(le,[B,P,G,$.yy,ae[1],_,L].concat(R)),typeof de<"u")return de;he&&(S=S.slice(0,-1*he*2),_=_.slice(0,-1*he),L=L.slice(0,-1*he)),S.push(this.productions_[ae[1]][0]),_.push(le.$),L.push(le._$),te=I[S[S.length-2]][S[S.length-1]],S.push(te);break;case 3:return!0}}return!0},"parse")},x=(function(){var T={EOF:1,parseError:a(function(C,S){if(this.yy.parser)this.yy.parser.parseError(C,S);else throw new Error(C)},"parseError"),setInput:a(function(k,C){return this.yy=C||this.yy||{},this._input=k,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:a(function(){var k=this._input[0];this.yytext+=k,this.yyleng++,this.offset++,this.match+=k,this.matched+=k;var C=k.match(/(?:\r\n?|\n).*/g);return C?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),k},"input"),unput:a(function(k){var C=k.length,S=k.split(/(?:\r\n?|\n)/g);this._input=k+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-C),this.offset-=C;var w=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),S.length-1&&(this.yylineno-=S.length-1);var _=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:S?(S.length===w.length?this.yylloc.first_column:0)+w[w.length-S.length].length-S[0].length:this.yylloc.first_column-C},this.options.ranges&&(this.yylloc.range=[_[0],_[0]+this.yyleng-C]),this.yyleng=this.yytext.length,this},"unput"),more:a(function(){return this._more=!0,this},"more"),reject:a(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:a(function(k){this.unput(this.match.slice(k))},"less"),pastInput:a(function(){var k=this.matched.substr(0,this.matched.length-this.match.length);return(k.length>20?"...":"")+k.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:a(function(){var k=this.match;return k.length<20&&(k+=this._input.substr(0,20-k.length)),(k.substr(0,20)+(k.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:a(function(){var k=this.pastInput(),C=new Array(k.length+1).join("-");return k+this.upcomingInput()+`
`+C+"^"},"showPosition"),test_match:a(function(k,C){var S,w,_;if(this.options.backtrack_lexer&&(_={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&&(_.yylloc.range=this.yylloc.range.slice(0))),w=k[0].match(/(?:\r\n?|\n).*/g),w&&(this.yylineno+=w.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:w?w[w.length-1].length-w[w.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+k[0].length},this.yytext+=k[0],this.match+=k[0],this.matches=k,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(k[0].length),this.matched+=k[0],S=this.performAction.call(this,this.yy,this,C,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),S)return S;if(this._backtrack){for(var L in _)this[L]=_[L];return!1}return!1},"test_match"),next:a(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var k,C,S,w;this._more||(this.yytext="",this.match="");for(var _=this._currentRules(),L=0;L<_.length;L++)if(S=this._input.match(this.rules[_[L]]),S&&(!C||S[0].length>C[0].length)){if(C=S,w=L,this.options.backtrack_lexer){if(k=this.test_match(S,_[L]),k!==!1)return k;if(this._backtrack){C=!1;continue}else return!1}else if(!this.options.flex)break}return C?(k=this.test_match(C,_[w]),k!==!1?k:!1):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:a(function(){var C=this.next();return C||this.lex()},"lex"),begin:a(function(C){this.conditionStack.push(C)},"begin"),popState:a(function(){var C=this.conditionStack.length-1;return C>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:a(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:a(function(C){return C=this.conditionStack.length-1-Math.abs(C||0),C>=0?this.conditionStack[C]:"INITIAL"},"topState"),pushState:a(function(C){this.begin(C)},"pushState"),stateStackSize:a(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:a(function(C,S,w,_){var L=_;switch(w){case 0:return 6;case 1:return 8;case 2:return 8;case 3:return 6;case 4:return 7;case 5:return 13;case 6:return 14;case 7:return 11}},"anonymous"),rules:[/^(?:\s*%%.*)/i,/^(?:ishikawa-beta\b)/i,/^(?:ishikawa\b)/i,/^(?:[\s]+[\n])/i,/^(?:[\n]+)/i,/^(?:[\s]+)/i,/^(?:[^\n]+)/i,/^(?:$)/i],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6,7],inclusive:!0}}};return T})();g.lexer=x;function b(){this.yy={}}return a(b,"Parser"),b.prototype=g,g.Parser=b,new b})();r8.parser=r8;iTe=r8});var aw,aTe=v(()=>{"use strict";bt();dr();zr();aw=class{constructor(){this.stack=[];this.clear=this.clear.bind(this),this.addNode=this.addNode.bind(this),this.getRoot=this.getRoot.bind(this)}static{a(this,"IshikawaDB")}clear(){this.root=void 0,this.stack=[],this.baseLevel=void 0,Ht()}getRoot(){return this.root}addNode(t,r){let i=He.sanitizeText(r,J());if(!this.root){this.root={text:i,children:[]},this.stack=[{level:0,node:this.root}],ir(i);return}this.baseLevel??=t;let n=t-this.baseLevel+1;for(n<=0&&(n=1);this.stack.length>1&&this.stack[this.stack.length-1].level>=n;)this.stack.pop();let s=this.stack[this.stack.length-1].node,o={text:i,children:[]};s.children.push(o),this.stack.push({level:n,node:o})}getAccTitle(){return Qt()}setAccTitle(t){Yt(t)}getAccDescription(){return Jt()}setAccDescription(t){Zt(t)}getDiagramTitle(){return er()}setDiagramTitle(t){ir(t)}}});var jat,Zm,Uat,Hat,Yat,hTe,sTe,oTe,lTe,Kat,cTe,Xat,Qat,Zat,i8,Jat,est,dTe,sw,uTe,Jm,fTe,pTe=v(()=>{"use strict";bt();ga();Xr();Et();Tt();jat=14,Zm=250,Uat=30,Hat=60,Yat=5,hTe=82*Math.PI/180,sTe=Math.cos(hTe),oTe=Math.sin(hTe),lTe=a((e,t,r)=>{let i=e.node().getBBox(),n=i.width+t*2,s=i.height+t*2;fr(e,s,n,r),e.attr("viewBox",`${i.x-t} ${i.y-t} ${n} ${s}`)},"applyPaddedViewBox"),Kat=a((e,t,r,i)=>{let s=i.db.getRoot();if(!s)return;let o=J(),{look:l,handDrawnSeed:u,themeVariables:h}=o,d=Qn(o.fontSize)[0]??jat,f=l==="handDrawn",p=s.children??[],m=o.ishikawa?.diagramPadding??20,g=o.ishikawa?.useMaxWidth??!1,x=Yr(t),b=x.append("g").attr("class","ishikawa"),T=f?Ve.svg(x.node()):void 0,k=T?{roughSvg:T,seed:u??0,lineColor:h?.lineColor??"#333",fillColor:h?.mainBkg??"#fff"}:void 0,C=`ishikawa-arrow-${t}`;f||b.append("defs").append("marker").attr("id",C).attr("viewBox","0 0 10 10").attr("refX",0).attr("refY",5).attr("markerWidth",6).attr("markerHeight",6).attr("orient","auto").append("path").attr("d","M 10 0 L 0 5 L 10 10 Z").attr("class","ishikawa-arrow");let S=0,w=Zm,_=f?void 0:Jm(b,S,w,S,w,"ishikawa-spine");if(Xat(b,S,w,s.text,d,k),!p.length){f&&Jm(b,S,w,S,w,"ishikawa-spine",k),lTe(x,m,g);return}S-=20;let L=p.filter((N,$)=>$%2===0),I=p.filter((N,$)=>$%2===1),B=cTe(L),G=cTe(I),P=B.total+G.total,F=Zm,A=Zm;if(P>0){let N=Zm*2,$=Zm*.3;F=Math.max($,N*(B.total/P)),A=Math.max($,N*(G.total/P))}let D=d*2;F=Math.max(F,B.max*D),A=Math.max(A,G.max*D),w=Math.max(F,Zm),_&&_.attr("y1",w).attr("y2",w),b.select(".ishikawa-head-group").attr("transform",`translate(0,${w})`);let R=Math.ceil(p.length/2);for(let N=0;N<R;N++){let $=b.append("g").attr("class","ishikawa-pair");for(let[E,M,V]of[[p[N*2],-1,F],[p[N*2+1],1,A]])E&&Jat($,E,S,w,M,V,d,k);S=$.selectAll("text").nodes().reduce((E,M)=>Math.min(E,M.getBBox().x),1/0)}if(f)Jm(b,S,w,0,w,"ishikawa-spine",k);else{_.attr("x1",S);let N=`url(#${C})`;b.selectAll("line.ishikawa-branch, line.ishikawa-sub-branch").attr("marker-start",N)}lTe(x,m,g)},"draw"),cTe=a(e=>{let t=a(r=>r.children.reduce((i,n)=>i+1+t(n),0),"countDescendants");return e.reduce((r,i)=>{let n=t(i);return r.total+=n,r.max=Math.max(r.max,n),r},{total:0,max:0})},"sideStats"),Xat=a((e,t,r,i,n,s)=>{let o=Math.max(6,Math.floor(110/(n*.6))),l=e.append("g").attr("class","ishikawa-head-group").attr("transform",`translate(${t},${r})`),u=sw(l,dTe(i,o),0,0,"ishikawa-head-label","start",n),h=u.node().getBBox(),d=Math.max(60,h.width+6),f=Math.max(40,h.height*2+40),p=`M 0 ${-f/2} L 0 ${f/2} Q ${d*2.4} 0 0 ${-f/2} Z`;if(s){let m=s.roughSvg.path(p,{roughness:1.5,seed:s.seed,fill:s.fillColor,fillStyle:"hachure",fillWeight:2.5,hachureGap:5,stroke:s.lineColor,strokeWidth:2});l.insert(()=>m,":first-child").attr("class","ishikawa-head")}else l.insert("path",":first-child").attr("class","ishikawa-head").attr("d",p);u.attr("transform",`translate(${(d-h.width)/2-h.x+3},${-h.y-h.height/2})`)},"drawHead"),Qat=a((e,t)=>{let r=[],i=[],n=a((s,o,l)=>{let u=t===-1?[...s].reverse():s;for(let h of u){let d=r.length,f=h.children??[];r.push({depth:l,text:dTe(h.text,15),parentIndex:o,childCount:f.length}),l%2===0?(i.push(d),f.length&&n(f,d,l+1)):(f.length&&n(f,d,l+1),i.push(d))}},"walk");return n(e,-1,2),{entries:r,yOrder:i}},"flattenTree"),Zat=a((e,t,r,i,n,s,o)=>{let l=e.append("g").attr("class","ishikawa-label-group"),h=sw(l,t,r,i+11*n,"ishikawa-label cause","middle",s).node().getBBox();if(o){let d=o.roughSvg.rectangle(h.x-20,h.y-2,h.width+40,h.height+4,{roughness:1.5,seed:o.seed,fill:o.fillColor,fillStyle:"hachure",fillWeight:2.5,hachureGap:5,stroke:o.lineColor,strokeWidth:2});l.insert(()=>d,":first-child").attr("class","ishikawa-label-box")}else l.insert("rect",":first-child").attr("class","ishikawa-label-box").attr("x",h.x-20).attr("y",h.y-2).attr("width",h.width+40).attr("height",h.height+4)},"drawCauseLabel"),i8=a((e,t,r,i,n,s)=>{let o=Math.sqrt(i*i+n*n);if(o===0)return;let l=i/o,u=n/o,h=6,d=-u*h,f=l*h,p=t,m=r,g=`M ${p} ${m} L ${p-l*h*2+d} ${m-u*h*2+f} L ${p-l*h*2-d} ${m-u*h*2-f} Z`,x=s.roughSvg.path(g,{roughness:1,seed:s.seed,fill:s.lineColor,fillStyle:"solid",stroke:s.lineColor,strokeWidth:1});e.append(()=>x)},"drawArrowMarker"),Jat=a((e,t,r,i,n,s,o,l)=>{let u=t.children??[],h=s*(u.length?1:.2),d=-sTe*h,f=oTe*h*n,p=r+d,m=i+f;if(Jm(e,r,i,p,m,"ishikawa-branch",l),l&&i8(e,r,i,r-p,i-m,l),Zat(e,t.text,p,m,n,o,l),!u.length)return;let{entries:g,yOrder:x}=Qat(u,n),b=g.length,T=new Array(b);for(let[_,L]of x.entries())T[L]=i+f*((_+1)/(b+1));let k=new Map;k.set(-1,{x0:r,y0:i,x1:p,y1:m,childCount:u.length,childrenDrawn:0});let C=-sTe,S=oTe*n,w=n<0?"ishikawa-label up":"ishikawa-label down";for(let[_,L]of g.entries()){let I=T[_],B=k.get(L.parentIndex),G=e.append("g").attr("class","ishikawa-sub-group"),P=0,F=0,A=0;if(L.depth%2===0){let D=B.y1-B.y0;P=uTe(B.x0,B.x1,D?(I-B.y0)/D:.5),F=I,A=P-(L.childCount>0?Hat+L.childCount*Yat:Uat),Jm(G,P,I,A,I,"ishikawa-sub-branch",l),l&&i8(G,P,I,1,0,l),sw(G,L.text,A,I,"ishikawa-label align","end",o)}else{let D=B.childrenDrawn++;P=uTe(B.x0,B.x1,(B.childCount-D)/(B.childCount+1)),F=B.y0,A=P+C*((I-F)/S),Jm(G,P,F,A,I,"ishikawa-sub-branch",l),l&&i8(G,P,F,P-A,F-I,l),sw(G,L.text,A,I,w,"end",o)}L.childCount>0&&k.set(_,{x0:P,y0:F,x1:A,y1:I,childCount:L.childCount,childrenDrawn:0})}},"drawBranch"),est=a(e=>e.split(/<br\s*\/?>|\n/),"splitLines"),dTe=a((e,t)=>{if(e.length<=t)return e;let r=[];for(let i of e.split(/\s+/)){let n=r.length-1;n>=0&&r[n].length+1+i.length<=t?r[n]+=" "+i:r.push(i)}return r.join(`
`)},"wrapText"),sw=a((e,t,r,i,n,s,o)=>{let l=est(t),u=o*1.05,h=e.append("text").attr("class",n).attr("text-anchor",s).attr("x",r).attr("y",i-(l.length-1)*u/2);for(let[d,f]of l.entries())h.append("tspan").attr("x",r).attr("dy",d===0?0:u).text(f);return h},"drawMultilineText"),uTe=a((e,t,r)=>e+(t-e)*r,"lerp"),Jm=a((e,t,r,i,n,s,o)=>{if(o){let l=o.roughSvg.line(t,r,i,n,{roughness:1.5,seed:o.seed,stroke:o.lineColor,strokeWidth:2});e.append(()=>l).attr("class",s);return}return e.append("line").attr("class",s).attr("x1",t).attr("y1",r).attr("x2",i).attr("y2",n)},"drawLine"),fTe={draw:Kat}});var tst,mTe,gTe=v(()=>{"use strict";tst=a(e=>`
.ishikawa .ishikawa-spine,
.ishikawa .ishikawa-branch,
.ishikawa .ishikawa-sub-branch {
stroke: ${e.lineColor};
stroke-width: 2;
fill: none;
}
.ishikawa .ishikawa-sub-branch {
stroke-width: 1;
}
.ishikawa .ishikawa-arrow {
fill: ${e.lineColor};
}
.ishikawa .ishikawa-head {
fill: ${e.mainBkg};
stroke: ${e.lineColor};
stroke-width: 2;
}
.ishikawa .ishikawa-label-box {
fill: ${e.mainBkg};
stroke: ${e.lineColor};
stroke-width: 2;
}
.ishikawa text {
font-family: ${e.fontFamily};
font-size: ${e.fontSize};
fill: ${e.textColor};
}
.ishikawa .ishikawa-head-label {
font-weight: 600;
text-anchor: middle;
dominant-baseline: middle;
font-size: 14px;
}
.ishikawa .ishikawa-label {
text-anchor: end;
}
.ishikawa .ishikawa-label.cause {
text-anchor: middle;
dominant-baseline: middle;
}
.ishikawa .ishikawa-label.align {
text-anchor: end;
dominant-baseline: middle;
}
.ishikawa .ishikawa-label.up {
dominant-baseline: baseline;
}
.ishikawa .ishikawa-label.down {
dominant-baseline: hanging;
}
`,"getStyles"),mTe=tst});var yTe={};tr(yTe,{diagram:()=>rst});var rst,xTe=v(()=>{"use strict";nTe();aTe();pTe();gTe();rst={parser:iTe,get db(){return new aw},renderer:fTe,styles:mTe}});var n8,kTe,CTe=v(()=>{"use strict";n8=(function(){var e=a(function(k,C,S,w){for(S=S||{},w=k.length;w--;S[k[w]]=C);return S},"o"),t=[5,8],r=[7,8,11,12,17,19,22,24],i=[1,17],n=[1,18],s=[7,8,11,12,14,15,16,17,19,20,21,22,24,27],o=[1,31],l=[1,39],u=[7,8,11,12,17,19,22,24,27],h=[1,57],d=[1,56],f=[1,58],p=[1,59],m=[1,60],g=[7,8,11,12,16,17,19,20,22,24,27,31,32,33],x={trace:a(function(){},"trace"),yy:{},symbols_:{error:2,start:3,optNewlines:4,VENN:5,document:6,EOF:7,NEWLINE:8,line:9,statement:10,TITLE:11,SET:12,identifier:13,BRACKET_LABEL:14,COLON:15,NUMERIC:16,UNION:17,identifierList:18,TEXT:19,IDENTIFIER:20,STRING:21,INDENT_TEXT:22,indentedTextTail:23,STYLE:24,stylesOpt:25,styleField:26,COMMA:27,styleValue:28,valueTokens:29,valueToken:30,HEXCOLOR:31,RGBCOLOR:32,RGBACOLOR:33,$accept:0,$end:1},terminals_:{2:"error",5:"VENN",7:"EOF",8:"NEWLINE",11:"TITLE",12:"SET",14:"BRACKET_LABEL",15:"COLON",16:"NUMERIC",17:"UNION",19:"TEXT",20:"IDENTIFIER",21:"STRING",22:"INDENT_TEXT",24:"STYLE",27:"COMMA",31:"HEXCOLOR",32:"RGBCOLOR",33:"RGBACOLOR"},productions_:[0,[3,4],[4,0],[4,2],[6,0],[6,2],[9,1],[9,1],[10,1],[10,2],[10,3],[10,4],[10,5],[10,2],[10,3],[10,4],[10,5],[10,3],[10,3],[10,3],[10,4],[10,4],[10,2],[10,3],[23,1],[23,1],[23,1],[23,2],[23,2],[25,1],[25,3],[26,3],[28,1],[28,1],[29,1],[29,2],[30,1],[30,1],[30,1],[30,1],[30,1],[18,1],[18,3],[13,1],[13,1]],performAction:a(function(C,S,w,_,L,I,B){var G=I.length-1;switch(L){case 1:return I[G-1];case 2:case 3:case 4:this.$=[];break;case 5:I[G-1].push(I[G]),this.$=I[G-1];break;case 6:this.$=[];break;case 7:case 22:case 32:case 36:case 37:case 38:case 39:case 40:this.$=I[G];break;case 8:_.setDiagramTitle(I[G].substr(6)),this.$=I[G].substr(6);break;case 9:_.addSubsetData([I[G]],void 0,void 0),_.setIndentMode&&_.setIndentMode(!0);break;case 10:_.addSubsetData([I[G-1]],I[G],void 0),_.setIndentMode&&_.setIndentMode(!0);break;case 11:_.addSubsetData([I[G-2]],void 0,parseFloat(I[G])),_.setIndentMode&&_.setIndentMode(!0);break;case 12:_.addSubsetData([I[G-3]],I[G-2],parseFloat(I[G])),_.setIndentMode&&_.setIndentMode(!0);break;case 13:if(I[G].length<2)throw new Error("union requires multiple identifiers");_.validateUnionIdentifiers&&_.validateUnionIdentifiers(I[G]),_.addSubsetData(I[G],void 0,void 0),_.setIndentMode&&_.setIndentMode(!0);break;case 14:if(I[G-1].length<2)throw new Error("union requires multiple identifiers");_.validateUnionIdentifiers&&_.validateUnionIdentifiers(I[G-1]),_.addSubsetData(I[G-1],I[G],void 0),_.setIndentMode&&_.setIndentMode(!0);break;case 15:if(I[G-2].length<2)throw new Error("union requires multiple identifiers");_.validateUnionIdentifiers&&_.validateUnionIdentifiers(I[G-2]),_.addSubsetData(I[G-2],void 0,parseFloat(I[G])),_.setIndentMode&&_.setIndentMode(!0);break;case 16:if(I[G-3].length<2)throw new Error("union requires multiple identifiers");_.validateUnionIdentifiers&&_.validateUnionIdentifiers(I[G-3]),_.addSubsetData(I[G-3],I[G-2],parseFloat(I[G])),_.setIndentMode&&_.setIndentMode(!0);break;case 17:case 18:case 19:_.addTextData(I[G-1],I[G],void 0);break;case 20:case 21:_.addTextData(I[G-2],I[G-1],I[G]);break;case 23:_.addStyleData(I[G-1],I[G]);break;case 24:case 25:case 26:var P=_.getCurrentSets();if(!P)throw new Error("text requires set");_.addTextData(P,I[G],void 0);break;case 27:case 28:var P=_.getCurrentSets();if(!P)throw new Error("text requires set");_.addTextData(P,I[G-1],I[G]);break;case 29:case 41:this.$=[I[G]];break;case 30:case 42:this.$=[...I[G-2],I[G]];break;case 31:this.$=[I[G-2],I[G]];break;case 33:this.$=I[G].join(" ");break;case 34:this.$=[I[G]];break;case 35:I[G-1].push(I[G]),this.$=I[G-1];break;case 43:case 44:this.$=I[G];break}},"anonymous"),table:[e(t,[2,2],{3:1,4:2}),{1:[3]},{5:[1,3],8:[1,4]},e(r,[2,4],{6:5}),e(t,[2,3]),{7:[1,6],8:[1,8],9:7,10:9,11:[1,10],12:[1,11],17:[1,12],19:[1,13],22:[1,14],24:[1,15]},{1:[2,1]},e(r,[2,5]),e(r,[2,6]),e(r,[2,7]),e(r,[2,8]),{13:16,20:i,21:n},{13:20,18:19,20:i,21:n},{13:20,18:21,20:i,21:n},{16:[1,25],20:[1,23],21:[1,24],23:22},{13:20,18:26,20:i,21:n},e(r,[2,9],{14:[1,27],15:[1,28]}),e(s,[2,43]),e(s,[2,44]),e(r,[2,13],{14:[1,29],15:[1,30],27:o}),e(s,[2,41]),{16:[1,34],20:[1,32],21:[1,33],27:o},e(r,[2,22]),e(r,[2,24],{14:[1,35]}),e(r,[2,25],{14:[1,36]}),e(r,[2,26]),{20:l,25:37,26:38,27:o},e(r,[2,10],{15:[1,40]}),{16:[1,41]},e(r,[2,14],{15:[1,42]}),{16:[1,43]},{13:44,20:i,21:n},e(r,[2,17],{14:[1,45]}),e(r,[2,18],{14:[1,46]}),e(r,[2,19]),e(r,[2,27]),e(r,[2,28]),e(r,[2,23],{27:[1,47]}),e(u,[2,29]),{15:[1,48]},{16:[1,49]},e(r,[2,11]),{16:[1,50]},e(r,[2,15]),e(s,[2,42]),e(r,[2,20]),e(r,[2,21]),{20:l,26:51},{16:h,20:d,21:[1,53],28:52,29:54,30:55,31:f,32:p,33:m},e(r,[2,12]),e(r,[2,16]),e(u,[2,30]),e(u,[2,31]),e(u,[2,32]),e(u,[2,33],{30:61,16:h,20:d,31:f,32:p,33:m}),e(g,[2,34]),e(g,[2,36]),e(g,[2,37]),e(g,[2,38]),e(g,[2,39]),e(g,[2,40]),e(g,[2,35])],defaultActions:{6:[2,1]},parseError:a(function(C,S){if(S.recoverable)this.trace(C);else{var w=new Error(C);throw w.hash=S,w}},"parseError"),parse:a(function(C){var S=this,w=[0],_=[],L=[null],I=[],B=this.table,G="",P=0,F=0,A=0,D=2,R=1,N=I.slice.call(arguments,1),$=Object.create(this.lexer),E={yy:{}};for(var M in this.yy)Object.prototype.hasOwnProperty.call(this.yy,M)&&(E.yy[M]=this.yy[M]);$.setInput(C,E.yy),E.yy.lexer=$,E.yy.parser=this,typeof $.yylloc>"u"&&($.yylloc={});var V=$.yylloc;I.push(V);var O=$.options&&$.options.ranges;typeof E.yy.parseError=="function"?this.parseError=E.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function z(be){w.length=w.length-2*be,L.length=L.length-be,I.length=I.length-be}a(z,"popStack");function U(){var be;return be=_.pop()||$.lex()||R,typeof be!="number"&&(be instanceof Array&&(_=be,be=_.pop()),be=S.symbols_[be]||be),be}a(U,"lex");for(var K,j,ae,X,de,le,ge={},he,te,Le,xe;;){if(ae=w[w.length-1],this.defaultActions[ae]?X=this.defaultActions[ae]:((K===null||typeof K>"u")&&(K=U()),X=B[ae]&&B[ae][K]),typeof X>"u"||!X.length||!X[0]){var ye="";xe=[];for(he in B[ae])this.terminals_[he]&&he>D&&xe.push("'"+this.terminals_[he]+"'");$.showPosition?ye="Parse error on line "+(P+1)+`:
`+$.showPosition()+`
Expecting `+xe.join(", ")+", got '"+(this.terminals_[K]||K)+"'":ye="Parse error on line "+(P+1)+": Unexpected "+(K==R?"end of input":"'"+(this.terminals_[K]||K)+"'"),this.parseError(ye,{text:$.match,token:this.terminals_[K]||K,line:$.yylineno,loc:V,expected:xe})}if(X[0]instanceof Array&&X.length>1)throw new Error("Parse Error: multiple actions possible at state: "+ae+", token: "+K);switch(X[0]){case 1:w.push(K),L.push($.yytext),I.push($.yylloc),w.push(X[1]),K=null,j?(K=j,j=null):(F=$.yyleng,G=$.yytext,P=$.yylineno,V=$.yylloc,A>0&&A--);break;case 2:if(te=this.productions_[X[1]][1],ge.$=L[L.length-te],ge._$={first_line:I[I.length-(te||1)].first_line,last_line:I[I.length-1].last_line,first_column:I[I.length-(te||1)].first_column,last_column:I[I.length-1].last_column},O&&(ge._$.range=[I[I.length-(te||1)].range[0],I[I.length-1].range[1]]),le=this.performAction.apply(ge,[G,F,P,E.yy,X[1],L,I].concat(N)),typeof le<"u")return le;te&&(w=w.slice(0,-1*te*2),L=L.slice(0,-1*te),I=I.slice(0,-1*te)),w.push(this.productions_[X[1]][0]),L.push(ge.$),I.push(ge._$),Le=B[w[w.length-2]][w[w.length-1]],w.push(Le);break;case 3:return!0}}return!0},"parse")},b=(function(){var k={EOF:1,parseError:a(function(S,w){if(this.yy.parser)this.yy.parser.parseError(S,w);else throw new Error(S)},"parseError"),setInput:a(function(C,S){return this.yy=S||this.yy||{},this._input=C,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:a(function(){var C=this._input[0];this.yytext+=C,this.yyleng++,this.offset++,this.match+=C,this.matched+=C;var S=C.match(/(?:\r\n?|\n).*/g);return S?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),C},"input"),unput:a(function(C){var S=C.length,w=C.split(/(?:\r\n?|\n)/g);this._input=C+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-S),this.offset-=S;var _=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),w.length-1&&(this.yylineno-=w.length-1);var L=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:w?(w.length===_.length?this.yylloc.first_column:0)+_[_.length-w.length].length-w[0].length:this.yylloc.first_column-S},this.options.ranges&&(this.yylloc.range=[L[0],L[0]+this.yyleng-S]),this.yyleng=this.yytext.length,this},"unput"),more:a(function(){return this._more=!0,this},"more"),reject:a(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:a(function(C){this.unput(this.match.slice(C))},"less"),pastInput:a(function(){var C=this.matched.substr(0,this.matched.length-this.match.length);return(C.length>20?"...":"")+C.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:a(function(){var C=this.match;return C.length<20&&(C+=this._input.substr(0,20-C.length)),(C.substr(0,20)+(C.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:a(function(){var C=this.pastInput(),S=new Array(C.length+1).join("-");return C+this.upcomingInput()+`
`+S+"^"},"showPosition"),test_match:a(function(C,S){var w,_,L;if(this.options.backtrack_lexer&&(L={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&&(L.yylloc.range=this.yylloc.range.slice(0))),_=C[0].match(/(?:\r\n?|\n).*/g),_&&(this.yylineno+=_.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:_?_[_.length-1].length-_[_.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+C[0].length},this.yytext+=C[0],this.match+=C[0],this.matches=C,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(C[0].length),this.matched+=C[0],w=this.performAction.call(this,this.yy,this,S,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),w)return w;if(this._backtrack){for(var I in L)this[I]=L[I];return!1}return!1},"test_match"),next:a(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var C,S,w,_;this._more||(this.yytext="",this.match="");for(var L=this._currentRules(),I=0;I<L.length;I++)if(w=this._input.match(this.rules[L[I]]),w&&(!S||w[0].length>S[0].length)){if(S=w,_=I,this.options.backtrack_lexer){if(C=this.test_match(w,L[I]),C!==!1)return C;if(this._backtrack){S=!1;continue}else return!1}else if(!this.options.flex)break}return S?(C=this.test_match(S,L[_]),C!==!1?C:!1):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:a(function(){var S=this.next();return S||this.lex()},"lex"),begin:a(function(S){this.conditionStack.push(S)},"begin"),popState:a(function(){var S=this.conditionStack.length-1;return S>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:a(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:a(function(S){return S=this.conditionStack.length-1-Math.abs(S||0),S>=0?this.conditionStack[S]:"INITIAL"},"topState"),pushState:a(function(S){this.begin(S)},"pushState"),stateStackSize:a(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:a(function(S,w,_,L){var I=L;switch(_){case 0:break;case 1:break;case 2:break;case 3:if(S.getIndentMode&&S.getIndentMode())return S.consumeIndentText=!0,this.begin("INITIAL"),22;break;case 4:break;case 5:S.setIndentMode&&S.setIndentMode(!1),this.begin("INITIAL"),this.unput(w.yytext);break;case 6:return this.begin("bol"),8;break;case 7:break;case 8:break;case 9:return 7;case 10:return 11;case 11:return 5;case 12:return 12;case 13:return 17;case 14:if(S.consumeIndentText)S.consumeIndentText=!1;else return 19;break;case 15:return 24;case 16:return w.yytext=w.yytext.slice(2,-2),14;break;case 17:return w.yytext=w.yytext.slice(1,-1).trim(),14;break;case 18:return 16;case 19:return 31;case 20:return 33;case 21:return 32;case 22:return 20;case 23:return 21;case 24:return 27;case 25:return 15}},"anonymous"),rules:[/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[ \t]+(?=[\n\r]))/i,/^(?:[ \t]+(?=text\b))/i,/^(?:[ \t]+)/i,/^(?:[^ \t\n\r])/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:[ \t]+)/i,/^(?:$)/i,/^(?:title\s[^#\n;]+)/i,/^(?:venn-beta\b)/i,/^(?:set\b)/i,/^(?:union\b)/i,/^(?:text\b)/i,/^(?:style\b)/i,/^(?:\["[^\"]*"\])/i,/^(?:\[[^\]\"]+\])/i,/^(?:[+-]?(\d+(\.\d+)?|\.\d+))/i,/^(?:#[0-9a-fA-F]{3,8})/i,/^(?:rgba\(\s*[0-9.]+\s*[,]\s*[0-9.]+\s*[,]\s*[0-9.]+\s*[,]\s*[0-9.]+\s*\))/i,/^(?:rgb\(\s*[0-9.]+\s*[,]\s*[0-9.]+\s*[,]\s*[0-9.]+\s*\))/i,/^(?:[A-Za-z_][A-Za-z0-9\-_]*)/i,/^(?:"[^\"]*")/i,/^(?:,)/i,/^(?::)/i],conditions:{bol:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25],inclusive:!0},INITIAL:{rules:[0,1,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25],inclusive:!0}}};return k})();x.lexer=b;function T(){this.yy={}}return a(T,"Parser"),T.prototype=x,x.Parser=T,new T})();n8.parser=n8;kTe=n8});function yst(){return xr(gst,ct().venn)}var a8,s8,o8,l8,c8,u8,ast,sst,Ax,ost,lst,cst,ust,ow,hst,dst,fst,pst,mst,gst,xst,vTe,STe=v(()=>{"use strict";Et();Xt();zr();gn();a8=[],s8=[],o8=[],l8=new Set,u8=!1,ast=a((e,t,r)=>{let i=ow(e).sort(),n=r??10/Math.pow(e.length,2);c8=i,i.length===1&&l8.add(i[0]),a8.push({sets:i,size:n,label:t?Ax(t):void 0})},"addSubsetData"),sst=a(()=>a8,"getSubsetData"),Ax=a(e=>{let t=e.trim();return t.length>=2&&t.startsWith('"')&&t.endsWith('"')?t.slice(1,-1):t},"normalizeText"),ost=a(e=>e&&Ax(e),"normalizeStyleValue"),lst=a((e,t,r)=>{let i=Ax(t);s8.push({sets:ow(e).sort(),id:i,label:r?Ax(r):void 0})},"addTextData"),cst=a((e,t)=>{let r=ow(e).sort(),i={};for(let[n,s]of t)i[n]=ost(s)??s;o8.push({targets:r,styles:i})},"addStyleData"),ust=a(()=>o8,"getStyleData"),ow=a(e=>e.map(t=>Ax(t)),"normalizeIdentifierList"),hst=a(e=>{let r=ow(e).filter(i=>!l8.has(i));if(r.length>0)throw new Error(`unknown set identifier: ${r.join(", ")}`)},"validateUnionIdentifiers"),dst=a(()=>s8,"getTextData"),fst=a(()=>c8,"getCurrentSets"),pst=a(()=>u8,"getIndentMode"),mst=a(e=>{u8=e},"setIndentMode"),gst=Ut.venn;a(yst,"getConfig");xst=a(()=>{Ht(),a8.length=0,s8.length=0,o8.length=0,l8.clear(),c8=void 0,u8=!1},"customClear"),vTe={getConfig:yst,clear:xst,setAccTitle:Yt,getAccTitle:Qt,setDiagramTitle:ir,getDiagramTitle:er,getAccDescription:Jt,setAccDescription:Zt,addSubsetData:ast,getSubsetData:sst,addTextData:lst,addStyleData:cst,validateUnionIdentifiers:hst,getTextData:dst,getStyleData:ust,getCurrentSets:fst,getIndentMode:pst,setIndentMode:mst}});var bst,_Te,wTe=v(()=>{"use strict";bst=a(e=>`
.venn-title {
font-size: 32px;
fill: ${e.vennTitleTextColor};
font-family: ${e.fontFamily};
}
.venn-circle text {
font-size: 48px;
font-family: ${e.fontFamily};
}
.venn-intersection text {
font-size: 48px;
fill: ${e.vennSetTextColor};
font-family: ${e.fontFamily};
}
.venn-text-node {
font-family: ${e.fontFamily};
color: ${e.vennSetTextColor};
}
`,"getStyles"),_Te=bst});function lw(e,t){let r=kst(e),i=r.filter(l=>Tst(l,e)),n=0,s=0,o=[];if(i.length>1){let l=LTe(i);for(let h=0;h<i.length;++h){let d=i[h];d.angle=Math.atan2(d.x-l.x,d.y-l.y)}i.sort((h,d)=>d.angle-h.angle);let u=i[i.length-1];for(let h=0;h<i.length;++h){let d=i[h];s+=(u.x+d.x)*(d.y-u.y);let f={x:(d.x+u.x)/2,y:(d.y+u.y)/2},p=null;for(let m=0;m<d.parentIndex.length;++m)if(u.parentIndex.includes(d.parentIndex[m])){let g=e[d.parentIndex[m]],x=Math.atan2(d.x-g.x,d.y-g.y),b=Math.atan2(u.x-g.x,u.y-g.y),T=b-x;T<0&&(T+=2*Math.PI);let k=b-T/2,C=xa(f,{x:g.x+g.radius*Math.sin(k),y:g.y+g.radius*Math.cos(k)});C>g.radius*2&&(C=g.radius*2),(p==null||p.width>C)&&(p={circle:g,width:C,p1:d,p2:u,large:C>g.radius,sweep:!0})}p!=null&&(o.push(p),n+=f8(p.circle.radius,p.width),u=d)}}else{let l=e[0];for(let h=1;h<e.length;++h)e[h].radius<l.radius&&(l=e[h]);let u=!1;for(let h=0;h<e.length;++h)if(xa(e[h],l)>Math.abs(l.radius-e[h].radius)){u=!0;break}u?n=s=0:(n=l.radius*l.radius*Math.PI,o.push({circle:l,p1:{x:l.x,y:l.y+l.radius},p2:{x:l.x-1e-10,y:l.y+l.radius},width:l.radius*2,large:!0,sweep:!0}))}return s/=2,t&&(t.area=n+s,t.arcArea=n,t.polygonArea=s,t.arcs=o,t.innerPoints=i,t.intersectionPoints=r),n+s}function Tst(e,t){return t.every(r=>xa(e,r)<r.radius+1e-10)}function kst(e){let t=[];for(let r=0;r<e.length;++r)for(let i=r+1;i<e.length;++i){let n=RTe(e[r],e[i]);for(let s of n)s.parentIndex=[r,i],t.push(s)}return t}function f8(e,t){return e*e*Math.acos(1-t/e)-(e-t)*Math.sqrt(t*(2*e-t))}function xa(e,t){return Math.sqrt((e.x-t.x)*(e.x-t.x)+(e.y-t.y)*(e.y-t.y))}function b8(e,t,r){if(r>=e+t)return 0;if(r<=Math.abs(e-t))return Math.PI*Math.min(e,t)*Math.min(e,t);let i=e-(r*r-t*t+e*e)/(2*r),n=t-(r*r-e*e+t*t)/(2*r);return f8(e,i)+f8(t,n)}function RTe(e,t){let r=xa(e,t),i=e.radius,n=t.radius;if(r>=i+n||r<=Math.abs(i-n))return[];let s=(i*i-n*n+r*r)/(2*r),o=Math.sqrt(i*i-s*s),l=e.x+s*(t.x-e.x)/r,u=e.y+s*(t.y-e.y)/r,h=-(t.y-e.y)*(o/r),d=-(t.x-e.x)*(o/r);return[{x:l+h,y:u-d},{x:l-h,y:u+d}]}function LTe(e){let t={x:0,y:0};for(let r of e)t.x+=r.x,t.y+=r.y;return t.x/=e.length,t.y/=e.length,t}function Cst(e,t,r,i){i=i||{};let n=i.maxIterations||100,s=i.tolerance||1e-10,o=e(t),l=e(r),u=r-t;if(o*l>0)throw"Initial bisect points must have opposite signs";if(o===0)return t;if(l===0)return r;for(let h=0;h<n;++h){u/=2;let d=t+u,f=e(d);if(f*o>=0&&(t=d),Math.abs(u)<s||f===0)return d}return t+u}function p8(e){let t=new Array(e);for(let r=0;r<e;++r)t[r]=0;return t}function ETe(e,t){return p8(e).map(()=>p8(t))}function eg(e,t){let r=0;for(let i=0;i<e.length;++i)r+=e[i]*t[i];return r}function m8(e){return Math.sqrt(eg(e,e))}function g8(e,t,r){for(let i=0;i<t.length;++i)e[i]=t[i]*r}function lc(e,t,r,i,n){for(let s=0;s<e.length;++s)e[s]=t*r[s]+i*n[s]}function DTe(e,t,r){r=r||{};let i=r.maxIterations||t.length*200,n=r.nonZeroDelta||1.05,s=r.zeroDelta||.001,o=r.minErrorDelta||1e-6,l=r.minErrorDelta||1e-5,u=r.rho!==void 0?r.rho:1,h=r.chi!==void 0?r.chi:2,d=r.psi!==void 0?r.psi:-.5,f=r.sigma!==void 0?r.sigma:.5,p,m=t.length,g=new Array(m+1);g[0]=t,g[0].fx=e(t),g[0].id=0;for(let w=0;w<m;++w){let _=t.slice();_[w]=_[w]?_[w]*n:s,g[w+1]=_,g[w+1].fx=e(_),g[w+1].id=w+1}function x(w){for(let _=0;_<w.length;_++)g[m][_]=w[_];g[m].fx=w.fx}a(x,"updateSimplex");let b=a((w,_)=>w.fx-_.fx,"sortOrder"),T=t.slice(),k=t.slice(),C=t.slice(),S=t.slice();for(let w=0;w<i;++w){if(g.sort(b),r.history){let L=g.map(I=>{let B=I.slice();return B.fx=I.fx,B.id=I.id,B});L.sort((I,B)=>I.id-B.id),r.history.push({x:g[0].slice(),fx:g[0].fx,simplex:L})}p=0;for(let L=0;L<m;++L)p=Math.max(p,Math.abs(g[0][L]-g[1][L]));if(Math.abs(g[0].fx-g[m].fx)<o&&p<l)break;for(let L=0;L<m;++L){T[L]=0;for(let I=0;I<m;++I)T[L]+=g[I][L];T[L]/=m}let _=g[m];if(lc(k,1+u,T,-u,_),k.fx=e(k),k.fx<g[0].fx)lc(S,1+h,T,-h,_),S.fx=e(S),S.fx<k.fx?x(S):x(k);else if(k.fx>=g[m-1].fx){let L=!1;if(k.fx>_.fx?(lc(C,1+d,T,-d,_),C.fx=e(C),C.fx<_.fx?x(C):L=!0):(lc(C,1-d*u,T,d*u,_),C.fx=e(C),C.fx<k.fx?x(C):L=!0),L){if(f>=1)break;for(let I=1;I<g.length;++I)lc(g[I],1-f,g[0],f,g[I]),g[I].fx=e(g[I])}}else x(k)}return g.sort(b),{fx:g[0].fx,x:g[0]}}function vst(e,t,r,i,n,s,o){let l=r.fx,u=eg(r.fxprime,t),h=l,d=l,f=u,p=0;n=n||1,s=s||1e-6,o=o||.1;function m(g,x,b){for(let T=0;T<16;++T)if(n=(g+x)/2,lc(i.x,1,r.x,n,t),h=i.fx=e(i.x,i.fxprime),f=eg(i.fxprime,t),h>l+s*n*u||h>=b)x=n;else{if(Math.abs(f)<=-o*u)return n;f*(x-g)>=0&&(x=g),g=n,b=h}return 0}a(m,"zoom");for(let g=0;g<10;++g){if(lc(i.x,1,r.x,n,t),h=i.fx=e(i.x,i.fxprime),f=eg(i.fxprime,t),h>l+s*n*u||g&&h>=d)return m(p,n,d);if(Math.abs(f)<=-o*u)return n;if(f>=0)return m(n,p,h);d=h,p=n,n*=2}return n}function Sst(e,t,r){let i={x:t.slice(),fx:0,fxprime:t.slice()},n={x:t.slice(),fx:0,fxprime:t.slice()},s=t.slice(),o,l,u=1,h;r=r||{},h=r.maxIterations||t.length*20,i.fx=e(i.x,i.fxprime),o=i.fxprime.slice(),g8(o,i.fxprime,-1);for(let d=0;d<h;++d){if(u=vst(e,o,i,n,u),r.history&&r.history.push({x:i.x.slice(),fx:i.fx,fxprime:i.fxprime.slice(),alpha:u}),!u)g8(o,i.fxprime,-1);else{lc(s,1,n.fxprime,-1,i.fxprime);let f=eg(i.fxprime,i.fxprime),p=Math.max(0,eg(s,n.fxprime)/f);lc(o,p,o,-1,n.fxprime),l=i,i=n,n=l}if(m8(i.fxprime)<=1e-5)break}return r.history&&r.history.push({x:i.x.slice(),fx:i.fx,fxprime:i.fxprime.slice(),alpha:u}),i}function ITe(e,t={}){t.maxIterations=t.maxIterations||500;let r=t.initialLayout||Ast,i=t.lossFunction||tg,n=_st(e,t),s=r(n,t),o=Object.keys(s),l=[];for(let d of o)l.push(s[d].x),l.push(s[d].y);let h=DTe(d=>{let f={};for(let p=0;p<o.length;++p){let m=o[p];f[m]={x:d[2*p],y:d[2*p+1],radius:s[m].radius}}return i(f,n)},l,t).x;for(let d=0;d<o.length;++d){let f=o[d];s[f].x=h[2*d],s[f].y=h[2*d+1]}return s}function y8(e,t,r){return Math.min(e,t)*Math.min(e,t)*Math.PI<=r+NTe?Math.abs(e-t):Cst(i=>b8(e,t,i)-r,0,e+t)}function _st(e,t={}){let r=t.distinct,i=e.map(l=>Object.assign({},l));function n(l){return l.join(";")}if(a(n,"toKey"),r){let l=new Map;for(let u of i)for(let h=0;h<u.sets.length;h++){let d=String(u.sets[h]);l.set(d,u.size+(l.get(d)||0));for(let f=h+1;f<u.sets.length;f++){let p=String(u.sets[f]),m=`${d};${p}`,g=`${p};${d}`;l.set(m,u.size+(l.get(m)||0)),l.set(g,u.size+(l.get(g)||0))}}for(let u of i)u.sets.length<3&&(u.size=l.get(n(u.sets)))}let s=[],o=new Set;for(let l of i)if(l.sets.length===1)s.push(l.sets[0]);else if(l.sets.length===2){let u=l.sets[0],h=l.sets[1];o.add(n(l.sets)),o.add(n([h,u]))}s.sort((l,u)=>l===u?0:l<u?-1:1);for(let l=0;l<s.length;++l){let u=s[l];for(let h=l+1;h<s.length;++h){let d=s[h];o.has(n([u,d]))||i.push({sets:[u,d],size:0})}}return i}function wst(e,t,r){let i=ETe(t.length,t.length),n=ETe(t.length,t.length);return e.filter(s=>s.sets.length===2).forEach(s=>{let o=r[s.sets[0]],l=r[s.sets[1]],u=Math.sqrt(t[o].size/Math.PI),h=Math.sqrt(t[l].size/Math.PI),d=y8(u,h,s.size);i[o][l]=i[l][o]=d;let f=0;s.size+1e-10>=Math.min(t[o].size,t[l].size)?f=1:s.size<=1e-10&&(f=-1),n[o][l]=n[l][o]=f}),{distances:i,constraints:n}}function Est(e,t,r,i){for(let s=0;s<t.length;++s)t[s]=0;let n=0;for(let s=0;s<r.length;++s){let o=e[2*s],l=e[2*s+1];for(let u=s+1;u<r.length;++u){let h=e[2*u],d=e[2*u+1],f=r[s][u],p=i[s][u],m=(h-o)*(h-o)+(d-l)*(d-l),g=Math.sqrt(m),x=m-f*f;p>0&&g<=f||p<0&&g>=f||(n+=2*x*x,t[2*s]+=4*x*(o-h),t[2*s+1]+=4*x*(l-d),t[2*u]+=4*x*(h-o),t[2*u+1]+=4*x*(d-l))}}return n}function Ast(e,t={}){let r=Lst(e,t),i=t.lossFunction||tg;if(e.length>=8){let n=Rst(e,t),s=i(n,e),o=i(r,e);s+1e-8<o&&(r=n)}return r}function Rst(e,t={}){let r=t.restarts||10,i=[],n={};for(let p of e)p.sets.length===1&&(n[p.sets[0]]=i.length,i.push(p));let{distances:s,constraints:o}=wst(e,i,n),l=m8(s.map(m8))/s.length;s=s.map(p=>p.map(m=>m/l));let u=a((p,m)=>Est(p,m,s,o),"obj"),h=null;for(let p=0;p<r;++p){let m=p8(s.length*2).map(Math.random),g=Sst(u,m,t);(!h||g.fx<h.fx)&&(h=g)}let d=h.x,f={};for(let p=0;p<i.length;++p){let m=i[p];f[m.sets[0]]={x:d[2*p]*l,y:d[2*p+1]*l,radius:Math.sqrt(m.size/Math.PI)}}if(t.history)for(let p of t.history)g8(p.x,l);return f}function Lst(e,t){let r=t&&t.lossFunction?t.lossFunction:tg,i={},n={};for(let f of e)if(f.sets.length===1){let p=f.sets[0];i[p]={x:1e10,y:1e10,rowid:i.length,size:f.size,radius:Math.sqrt(f.size/Math.PI)},n[p]=[]}e=e.filter(f=>f.sets.length===2);for(let f of e){let p=f.weight!=null?f.weight:1,m=f.sets[0],g=f.sets[1];f.size+NTe>=Math.min(i[m].size,i[g].size)&&(p=0),n[m].push({set:g,size:f.size,weight:p}),n[g].push({set:m,size:f.size,weight:p})}let s=[];Object.keys(n).forEach(f=>{let p=0;for(let m=0;m<n[f].length;++m)p+=n[f][m].size*n[f][m].weight;s.push({set:f,size:p})});function o(f,p){return p.size-f.size}a(o,"sortOrder"),s.sort(o);let l={};function u(f){return f.set in l}a(u,"isPositioned");function h(f,p){i[p].x=f.x,i[p].y=f.y,l[p]=!0}a(h,"positionSet"),h({x:0,y:0},s[0].set);for(let f=1;f<s.length;++f){let p=s[f].set,m=n[p].filter(u),g=i[p];if(m.sort(o),m.length===0)throw"ERROR: missing pairwise overlap information";let x=[];for(var d=0;d<m.length;++d){let k=i[m[d].set],C=y8(g.radius,k.radius,m[d].size);x.push({x:k.x+C,y:k.y}),x.push({x:k.x-C,y:k.y}),x.push({y:k.y+C,x:k.x}),x.push({y:k.y-C,x:k.x});for(let S=d+1;S<m.length;++S){let w=i[m[S].set],_=y8(g.radius,w.radius,m[S].size),L=RTe({x:k.x,y:k.y,radius:C},{x:w.x,y:w.y,radius:_});x.push(...L)}}let b=1e50,T=x[0];for(let k of x){i[p].x=k.x,i[p].y=k.y;let C=r(i,e);C<b&&(b=C,T=k)}h(T,p)}return i}function tg(e,t){let r=0;for(let i of t){if(i.sets.length===1)continue;let n;if(i.sets.length===2){let o=e[i.sets[0]],l=e[i.sets[1]];n=b8(o.radius,l.radius,xa(o,l))}else n=lw(i.sets.map(o=>e[o]));let s=i.weight!=null?i.weight:1;r+=s*(n-i.size)*(n-i.size)}return r}function MTe(e,t){let r=0;for(let i of t){if(i.sets.length===1)continue;let n;if(i.sets.length===2){let l=e[i.sets[0]],u=e[i.sets[1]];n=b8(l.radius,u.radius,xa(l,u))}else n=lw(i.sets.map(l=>e[l]));let s=i.weight!=null?i.weight:1,o=Math.log((n+1)/(i.size+1));r+=s*o*o}return r}function Dst(e,t,r){if(r==null?e.sort((n,s)=>s.radius-n.radius):e.sort(r),e.length>0){let n=e[0].x,s=e[0].y;for(let o of e)o.x-=n,o.y-=s}if(e.length===2&&xa(e[0],e[1])<Math.abs(e[1].radius-e[0].radius)&&(e[1].x=e[0].x+e[0].radius-e[1].radius-1e-10,e[1].y=e[0].y),e.length>1){let n=Math.atan2(e[1].x,e[1].y)-t,s=Math.cos(n),o=Math.sin(n);for(let l of e){let u=l.x,h=l.y;l.x=s*u-o*h,l.y=o*u+s*h}}if(e.length>2){let n=Math.atan2(e[2].x,e[2].y)-t;for(;n<0;)n+=2*Math.PI;for(;n>2*Math.PI;)n-=2*Math.PI;if(n>Math.PI){let s=e[1].y/(1e-10+e[1].x);for(let o of e){var i=(o.x+s*o.y)/(1+s*s);o.x=2*i-o.x,o.y=2*i*s-o.y}}}}function Ist(e){e.forEach(n=>{n.parent=n});function t(n){return n.parent!==n&&(n.parent=t(n.parent)),n.parent}a(t,"find");function r(n,s){let o=t(n),l=t(s);o.parent=l}a(r,"union");for(let n=0;n<e.length;++n)for(let s=n+1;s<e.length;++s){let o=e[n].radius+e[s].radius;xa(e[n],e[s])+1e-10<o&&r(e[s],e[n])}let i=new Map;for(let n=0;n<e.length;++n){let s=t(e[n]).parent.setid;i.has(s)||i.set(s,[]),i.get(s).push(e[n])}return e.forEach(n=>{delete n.parent}),Array.from(i.values())}function x8(e){let t=a(r=>{let i=e.reduce((s,o)=>Math.max(s,o[r]+o.radius),Number.NEGATIVE_INFINITY),n=e.reduce((s,o)=>Math.min(s,o[r]-o.radius),Number.POSITIVE_INFINITY);return{max:i,min:n}},"minMax");return{xRange:t("x"),yRange:t("y")}}function OTe(e,t,r){t==null&&(t=Math.PI/2);let i=$Te(e).map(h=>Object.assign({},h)),n=Ist(i);for(let h of n){Dst(h,t,r);let d=x8(h);h.size=(d.xRange.max-d.xRange.min)*(d.yRange.max-d.yRange.min),h.bounds=d}n.sort((h,d)=>d.size-h.size),i=n[0];let s=i.bounds,o=(s.xRange.max-s.xRange.min)/50;function l(h,d,f){if(!h)return;let p=h.bounds,m,g;if(d)m=s.xRange.max-p.xRange.min+o;else{m=s.xRange.max-p.xRange.max;let x=(p.xRange.max-p.xRange.min)/2-(s.xRange.max-s.xRange.min)/2;x<0&&(m+=x)}if(f)g=s.yRange.max-p.yRange.min+o;else{g=s.yRange.max-p.yRange.max;let x=(p.yRange.max-p.yRange.min)/2-(s.yRange.max-s.yRange.min)/2;x<0&&(g+=x)}for(let x of h)x.x+=m,x.y+=g,i.push(x)}a(l,"addCluster");let u=1;for(;u<n.length;)l(n[u],!0,!1),l(n[u+1],!1,!0),l(n[u+2],!0,!0),u+=3,s=x8(i);return BTe(i)}function PTe(e,t,r,i,n){let s=$Te(e);t-=2*i,r-=2*i;let{xRange:o,yRange:l}=x8(s);if(o.max===o.min||l.max===l.min)return console.log("not scaling solution: zero size detected"),e;let u,h;if(n){let m=Math.sqrt(n/Math.PI)*2;u=t/m,h=r/m}else u=t/(o.max-o.min),h=r/(l.max-l.min);let d=Math.min(h,u),f=(t-(o.max-o.min)*d)/2,p=(r-(l.max-l.min)*d)/2;return BTe(s.map(m=>({radius:d*m.radius,x:i+f+(m.x-o.min)*d,y:i+p+(m.y-l.min)*d,setid:m.setid})))}function BTe(e){let t={};for(let r of e)t[r.setid]=r;return t}function $Te(e){return Object.keys(e).map(r=>Object.assign(e[r],{setid:r}))}function FTe(e={}){let t=!1,r=600,i=350,n=15,s=1e3,o=Math.PI/2,l=!0,u=null,h=!0,d=!0,f=null,p=null,m=!1,g=null,x=e&&e.symmetricalTextCentre?e.symmetricalTextCentre:!1,b={},T=e&&e.colourScheme?e.colourScheme:e&&e.colorScheme?e.colorScheme:["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"],k=0,C=a(function(L){if(L in b)return b[L];var I=b[L]=T[k];return k+=1,k>=T.length&&(k=0),I},"colours"),S=ITe,w=tg;function _(L){let I=L.datum(),B=new Set;I.forEach(X=>{X.size==0&&X.sets.length==1&&B.add(X.sets[0])}),I=I.filter(X=>!X.sets.some(de=>B.has(de)));let G={},P={};if(I.length>0){let X=S(I,{lossFunction:w,distinct:m});l&&(X=OTe(X,o,p)),G=PTe(X,r,i,n,u),P=GTe(G,I,x)}let F={};I.forEach(X=>{X.label&&(F[X.sets]=X.label)});function A(X){if(X.sets in F)return F[X.sets];if(X.sets.length==1)return""+X.sets[0]}a(A,"label"),L.selectAll("svg").data([G]).enter().append("svg");let D=L.select("svg");t?D.attr("viewBox",`0 0 ${r} ${i}`):D.attr("width",r).attr("height",i);let R={},N=!1;D.selectAll(".venn-area path").each(function(X){let de=this.getAttribute("d");X.sets.length==1&&de&&!m&&(N=!0,R[X.sets[0]]=Ost(de))});function $(X){return de=>{let le=X.sets.map(ge=>{let he=R[ge],te=G[ge];return he||(he={x:r/2,y:i/2,radius:1}),te||(te={x:r/2,y:i/2,radius:1}),{x:he.x*(1-de)+te.x*de,y:he.y*(1-de)+te.y*de,radius:he.radius*(1-de)+te.radius*de}});return ATe(le,g)}}a($,"pathTween");let E=D.selectAll(".venn-area").data(I,X=>X.sets),M=E.enter().append("g").attr("class",X=>`venn-area venn-${X.sets.length==1?"circle":"intersection"}${X.colour||X.color?" venn-coloured":""}`).attr("data-venn-sets",X=>X.sets.join("_")),V=M.append("path"),O=M.append("text").attr("class","label").text(X=>A(X)).attr("text-anchor","middle").attr("dy",".35em").attr("x",r/2).attr("y",i/2);d&&(V.style("fill-opacity","0").filter(X=>X.sets.length==1).style("fill",X=>X.colour?X.colour:X.color?X.color:C(X.sets)).style("fill-opacity",".25"),O.style("fill",X=>X.colour||X.color?"#FFF":e.textFill?e.textFill:X.sets.length==1?C(X.sets):"#444"));function z(X){return typeof X.transition=="function"?X.transition("venn").duration(s):X}a(z,"asTransition");let U=L;N&&typeof U.transition=="function"?(U=z(L),U.selectAll("path").attrTween("d",$)):U.selectAll("path").attr("d",X=>ATe(X.sets.map(de=>G[de])),g);let K=U.selectAll("text").filter(X=>X.sets in P).text(X=>A(X)).attr("x",X=>Math.floor(P[X.sets].x)).attr("y",X=>Math.floor(P[X.sets].y));h&&(N?"on"in K?K.on("end",h8(G,A)):K.each("end",h8(G,A)):K.each(h8(G,A)));let j=z(E.exit()).remove();typeof E.transition=="function"&&j.selectAll("path").attrTween("d",$);let ae=j.selectAll("text").attr("x",r/2).attr("y",i/2);return f!==null&&(O.style("font-size","0px"),K.style("font-size",f),ae.style("font-size","0px")),{circles:G,textCentres:P,nodes:E,enter:M,update:U,exit:j}}return a(_,"chart"),_.wrap=function(L){return arguments.length?(h=L,_):h},_.useViewBox=function(){return t=!0,_},_.width=function(L){return arguments.length?(r=L,_):r},_.height=function(L){return arguments.length?(i=L,_):i},_.padding=function(L){return arguments.length?(n=L,_):n},_.distinct=function(L){return arguments.length?(m=L,_):m},_.colours=function(L){return arguments.length?(C=L,_):C},_.colors=function(L){return arguments.length?(C=L,_):C},_.fontSize=function(L){return arguments.length?(f=L,_):f},_.round=function(L){return arguments.length?(g=L,_):g},_.duration=function(L){return arguments.length?(s=L,_):s},_.layoutFunction=function(L){return arguments.length?(S=L,_):S},_.normalize=function(L){return arguments.length?(l=L,_):l},_.scaleToFit=function(L){return arguments.length?(u=L,_):u},_.styled=function(L){return arguments.length?(d=L,_):d},_.orientation=function(L){return arguments.length?(o=L,_):o},_.orientationOrder=function(L){return arguments.length?(p=L,_):p},_.lossFunction=function(L){return arguments.length?(w=L==="default"?tg:L==="logRatio"?MTe:L,_):w},_}function h8(e,t){return function(r){let i=this,n=e[r.sets[0]].radius||50,s=t(r)||"",o=s.split(/\s+/).reverse(),u=(s.length+o.length)/3,h=o.pop(),d=[h],f=0,p=1.1;i.textContent=null;let m=[];function g(C){let S=i.ownerDocument.createElementNS(i.namespaceURI,"tspan");return S.textContent=C,m.push(S),i.append(S),S}a(g,"append");let x=g(h);for(;h=o.pop(),!!h;){d.push(h);let C=d.join(" ");x.textContent=C,C.length>u&&x.getComputedTextLength()>n&&(d.pop(),x.textContent=d.join(" "),d=[h],x=g(h),f++)}let b=.35-f*p/2,T=i.getAttribute("x"),k=i.getAttribute("y");m.forEach((C,S)=>{C.setAttribute("x",T),C.setAttribute("y",k),C.setAttribute("dy",`${b+S*p}em`)})}}function d8(e,t,r){let i=t[0].radius-xa(t[0],e);for(let n=1;n<t.length;++n){let s=t[n].radius-xa(t[n],e);s<=i&&(i=s)}for(let n=0;n<r.length;++n){let s=xa(r[n],e)-r[n].radius;s<=i&&(i=s)}return i}function VTe(e,t,r){let i=[];for(let d of e)i.push({x:d.x,y:d.y}),i.push({x:d.x+d.radius/2,y:d.y}),i.push({x:d.x-d.radius/2,y:d.y}),i.push({x:d.x,y:d.y+d.radius/2}),i.push({x:d.x,y:d.y-d.radius/2});let n=i[0],s=d8(i[0],e,t);for(let d=1;d<i.length;++d){let f=d8(i[d],e,t);f>=s&&(n=i[d],s=f)}let o=DTe(d=>-1*d8({x:d[0],y:d[1]},e,t),[n.x,n.y],{maxIterations:500,minErrorDelta:1e-10}).x,l={x:r?0:o[0],y:o[1]},u=!0;for(let d of e)if(xa(l,d)>d.radius){u=!1;break}for(let d of t)if(xa(l,d)<d.radius){u=!1;break}if(u)return l;if(e.length==1)return{x:e[0].x,y:e[0].y};let h={};return lw(e,h),h.arcs.length===0?{x:0,y:-1e3,disjoint:!0}:h.arcs.length==1?{x:h.arcs[0].circle.x,y:h.arcs[0].circle.y}:t.length?VTe(e,[]):LTe(h.arcs.map(d=>d.p1))}function Nst(e){let t={},r=Object.keys(e);for(let i of r)t[i]=[];for(let i=0;i<r.length;i++){let n=r[i],s=e[n];for(let o=i+1;o<r.length;++o){let l=r[o],u=e[l],h=xa(s,u);h+u.radius<=s.radius+1e-10?t[l].push(n):h+s.radius<=u.radius+1e-10&&t[n].push(l)}}return t}function GTe(e,t,r){let i={},n=Nst(e);for(let s=0;s<t.length;++s){let o=t[s].sets,l={},u={};for(let p=0;p<o.length;++p){l[o[p]]=!0;let m=n[o[p]];for(let g=0;g<m.length;++g)u[m[g]]=!0}let h=[],d=[];for(let p in e)p in l?h.push(e[p]):p in u||d.push(e[p]);let f=VTe(h,d,r);i[o]=f,f.disjoint&&t[s].size>0&&console.log("WARNING: area "+o+" not represented on screen")}return i}function Mst(e,t,r){let i=[];return i.push(`
M`,e,t),i.push(`
m`,-r,0),i.push(`
a`,r,r,0,1,0,r*2,0),i.push(`
a`,r,r,0,1,0,-r*2,0),i.join(" ")}function Ost(e){let t=e.split(" ");return{x:Number.parseFloat(t[1]),y:Number.parseFloat(t[2]),radius:-Number.parseFloat(t[4])}}function WTe(e){if(e.length===0)return[];let t={};return lw(e,t),t.arcs}function zTe(e,t){if(e.length===0)return"M 0 0";let r=Math.pow(10,t||0),i=t!=null?s=>Math.round(s*r)/r:s=>s;if(e.length==1){let s=e[0].circle;return Mst(i(s.x),i(s.y),i(s.radius))}let n=[`
M`,i(e[0].p2.x),i(e[0].p2.y)];for(let s of e){let o=i(s.circle.radius);n.push(`
A`,o,o,0,s.large?1:0,s.sweep?1:0,i(s.p1.x),i(s.p1.y))}return n.join(" ")}function ATe(e,t){return zTe(WTe(e),t)}function qTe(e,t={}){let{lossFunction:r,layoutFunction:i=ITe,normalize:n=!0,orientation:s=Math.PI/2,orientationOrder:o,width:l=600,height:u=350,padding:h=15,scaleToFit:d=!1,symmetricalTextCentre:f=!1,distinct:p,round:m=2}=t,g=i(e,{lossFunction:r==="default"||!r?tg:r==="logRatio"?MTe:r,distinct:p});n&&(g=OTe(g,s,o));let x=PTe(g,l,u,h,d),b=GTe(x,e,f),T=new Map(Object.keys(x).map(S=>[S,{set:S,x:x[S].x,y:x[S].y,radius:x[S].radius}])),k=e.map(S=>{let w=S.sets.map(I=>T.get(I)),_=WTe(w),L=zTe(_,m);return{circles:w,arcs:_,path:L,area:S,has:new Set(S.sets)}});function C(S){let w="";for(let _ of k)_.has.size>S.length&&S.every(L=>_.has.has(L))&&(w+=" "+_.path);return w}return a(C,"genDistinctPath"),k.map(({circles:S,arcs:w,path:_,area:L})=>({data:L,text:b[L.sets],circles:S,arcs:w,path:_,distinctPath:_+C(L.sets)}))}var NTe,jTe=v(()=>{"use strict";a(lw,"intersectionArea");a(Tst,"containedInCircles");a(kst,"getIntersectionPoints");a(f8,"circleArea");a(xa,"distance");a(b8,"circleOverlap");a(RTe,"circleCircleIntersection");a(LTe,"getCenter");a(Cst,"bisect");a(p8,"zeros");a(ETe,"zerosM");a(eg,"dot");a(m8,"norm2");a(g8,"scale");a(lc,"weightedSum");a(DTe,"nelderMead");a(vst,"wolfeLineSearch");a(Sst,"conjugateGradient");a(ITe,"venn");NTe=1e-10;a(y8,"distanceFromIntersectArea");a(_st,"addMissingAreas");a(wst,"getDistanceMatrices");a(Est,"constrainedMDSGradient");a(Ast,"bestInitialLayout");a(Rst,"constrainedMDSLayout");a(Lst,"greedyLayout");a(tg,"lossFunction");a(MTe,"logRatioLossFunction");a(Dst,"orientateCircles");a(Ist,"disjointCluster");a(x8,"getBoundingBox");a(OTe,"normalizeSolution");a(PTe,"scaleSolution");a(BTe,"toObjectNotation");a($Te,"fromObjectNotation");a(FTe,"VennDiagram");a(h8,"wrapText");a(d8,"circleMargin");a(VTe,"computeTextCentre");a(Nst,"getOverlappingCircles");a(GTe,"computeTextCentres");a(Mst,"circlePath");a(Ost,"circleFromPath");a(WTe,"intersectionAreaArcs");a(zTe,"arcsToPath");a(ATe,"intersectionAreaPath");a(qTe,"layout")});function Bst(e){let t=new Map;for(let r of e){let i=r.targets.join("|"),n=t.get(i);n?Object.assign(n,r.styles):t.set(i,{...r.styles})}return t}function mf(e){return e.join("|")}function Fst(e,t,r,i,n,s){let o=e?.useDebugLayout??!1,u=r.select("svg").append("g").attr("class","venn-text-nodes"),h=new Map;for(let d of i){let f=mf(d.sets),p=h.get(f);p?p.push(d):h.set(f,[d])}for(let[d,f]of h.entries()){let p=t.get(d);if(!p?.text)continue;let m=p.text.x,g=p.text.y,x=Math.min(...p.circles.map(D=>D.radius)),b=Math.min(...p.circles.map(D=>D.radius-Math.hypot(m-D.x,g-D.y))),T=Number.isFinite(b)?Math.max(0,b):0;T===0&&Number.isFinite(x)&&(T=x*.6);let k=u.append("g").attr("class","venn-text-area").attr("font-size",`${40*n}px`);o&&k.append("circle").attr("class","venn-text-debug-circle").attr("cx",m).attr("cy",g).attr("r",T).attr("fill","none").attr("stroke","purple").attr("stroke-width",1.5*n).attr("stroke-dasharray",`${6*n} ${4*n}`);let C=Math.max(80*n,T*2*.95),S=Math.max(60*n,T*2*.95),L=(p.data.label&&p.data.label.length>0?Math.min(32*n,T*.25):0)+(f.length<=2?30*n:0),I=m-C/2,B=g-S/2+L,G=Math.max(1,Math.ceil(Math.sqrt(f.length))),P=Math.max(1,Math.ceil(f.length/G)),F=C/G,A=S/P;for(let[D,R]of f.entries()){let N=D%G,$=Math.floor(D/G),E=I+F*(N+.5),M=B+A*($+.5);o&&k.append("rect").attr("class","venn-text-debug-cell").attr("x",I+F*N).attr("y",B+A*$).attr("width",F).attr("height",A).attr("fill","none").attr("stroke","teal").attr("stroke-width",1*n).attr("stroke-dasharray",`${4*n} ${3*n}`);let V=F*.9,O=A*.9,z=k.append("foreignObject").attr("class","venn-text-node-fo").attr("width",V).attr("height",O).attr("x",E-V/2).attr("y",M-O/2).attr("overflow","visible"),U=s.get(R.id)?.color,K=z.append("xhtml:span").attr("class","venn-text-node").style("display","flex").style("width","100%").style("height","100%").style("white-space","normal").style("align-items","center").style("justify-content","center").style("text-align","center").style("overflow-wrap","normal").style("word-break","normal").text(R.label??R.id);U&&K.style("color",U)}}}var $st,UTe,HTe=v(()=>{"use strict";sr();Bi();Xt();ga();jTe();Xr();Tt();a(Bst,"buildStyleByKey");$st=a((e,t,r,i)=>{let n=i.db,s=n.getConfig?.(),{themeVariables:o,look:l,handDrawnSeed:u}=ct(),h=l==="handDrawn",d=[o.venn1,o.venn2,o.venn3,o.venn4,o.venn5,o.venn6,o.venn7,o.venn8].filter(Boolean),f=n.getDiagramTitle?.(),p=n.getSubsetData(),m=n.getTextData(),g=Bst(n.getStyleData()),x=s?.width??800,b=s?.height??450,k=x/1600,C=f?48*k:0,S=o.primaryTextColor??o.textColor,w=Yr(t);w.attr("viewBox",`0 0 ${x} ${b}`),f&&w.append("text").text(f).attr("class","venn-title").attr("font-size",`${32*k}px`).attr("text-anchor","middle").attr("dominant-baseline","middle").attr("x","50%").attr("y",32*k).style("fill",o.vennTitleTextColor||o.titleColor);let _=Se(document.createElement("div")),L=FTe().width(x).height(b-C);_.datum(p).call(L);let I=h?Ve.svg(_.select("svg").node()):void 0,B=qTe(p,{width:x,height:b-C,padding:s?.padding??15}),G=new Map;for(let D of B){let R=mf([...D.data.sets].sort());G.set(R,D)}m.length>0&&Fst(s,G,_,m,k,g);let P=Or(o.background||"#f4f4f4");_.selectAll(".venn-circle").each(function(D,R){let N=Se(this),E=mf([...D.sets].sort()),M=g.get(E),V=M?.fill||d[R%d.length]||o.primaryColor;N.classed(`venn-set-${R%8}`,!0);let O=M?.["fill-opacity"]??.1,z=M?.stroke||V,U=M?.["stroke-width"]||`${5*k}`;if(h&&I){let j=G.get(E);if(j&&j.circles.length>0){let ae=j.circles[0],X=I.circle(ae.x,ae.y,ae.radius*2,{roughness:.7,seed:u,fill:zx(V,.7),fillStyle:"hachure",fillWeight:2,hachureGap:8,hachureAngle:-41+R*60,stroke:z,strokeWidth:parseFloat(String(U))});N.select("path").remove(),N.node()?.insertBefore(X,N.select("text").node())}}else N.select("path").style("fill",V).style("fill-opacity",O).style("stroke",z).style("stroke-width",U).style("stroke-opacity",.95);let K=M?.color||(P?Te(V,30):ke(V,30));N.select("text").style("font-size",`${48*k}px`).style("fill",K)}),h&&I?_.selectAll(".venn-intersection").each(function(D){let R=Se(this),$=mf([...D.sets].sort()),E=g.get($),M=E?.fill;if(M){let V=R.select("path"),O=V.attr("d");if(O){let z=I.path(O,{roughness:.7,seed:u,fill:zx(M,.3),fillStyle:"cross-hatch",fillWeight:2,hachureGap:6,hachureAngle:60,stroke:"none"}),U=V.node();U?.parentNode?.insertBefore(z,U),V.remove()}}else R.select("path").style("fill-opacity",0);R.select("text").style("font-size",`${48*k}px`).style("fill",E?.color??o.vennSetTextColor??S)}):(_.selectAll(".venn-intersection text").style("font-size",`${48*k}px`).style("fill",D=>{let N=mf([...D.sets].sort());return g.get(N)?.color??o.vennSetTextColor??S}),_.selectAll(".venn-intersection path").style("fill-opacity",D=>{let N=mf([...D.sets].sort());return g.get(N)?.fill?1:0}).style("fill",D=>{let N=mf([...D.sets].sort());return g.get(N)?.fill??"transparent"}));let F=w.append("g").attr("transform",`translate(0, ${C})`),A=_.select("svg").node();if(A&&"childNodes"in A)for(let D of[...A.childNodes])F.node()?.appendChild(D);fr(w,b,x,s?.useMaxWidth??!0)},"draw");a(mf,"stableSetsKey");a(Fst,"renderTextNodes");UTe={draw:$st}});var YTe={};tr(YTe,{diagram:()=>Vst});var Vst,KTe=v(()=>{"use strict";CTe();STe();wTe();HTe();Vst={parser:kTe,db:vTe,renderer:UTe,styles:_Te}});var rg,T8=v(()=>{"use strict";gn();Xt();Et();xt();zr();rg=class{constructor(){this.nodes=[];this.levels=new Map;this.outerNodes=[];this.classes=new Map;this.setAccTitle=Yt;this.getAccTitle=Qt;this.setDiagramTitle=ir;this.getDiagramTitle=er;this.getAccDescription=Jt;this.setAccDescription=Zt}static{a(this,"TreeMapDB")}getNodes(){return this.nodes}getConfig(){let t=Ut,r=ct();return xr({...t.treemap,...r.treemap??{}})}addNode(t,r){this.nodes.push(t),this.levels.set(t,r),r===0&&(this.outerNodes.push(t),this.root??=t)}getRoot(){return{name:"",children:this.outerNodes}}addClass(t,r){let i=this.classes.get(t)??{id:t,styles:[],textStyles:[]},n=r.replace(/\\,/g,"\xA7\xA7\xA7").replace(/,/g,";").replace(/§§§/g,",").split(";");n&&n.forEach(s=>{Jy(s)&&(i?.textStyles?i.textStyles.push(s):i.textStyles=[s]),i?.styles?i.styles.push(s):i.styles=[s]}),this.classes.set(t,i)}getClasses(){return this.classes}getStylesForClass(t){return this.classes.get(t)?.styles??[]}clear(){Ht(),this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.root=void 0}}});function ZTe(e){if(!e.length)return[];let t=[],r=[];return e.forEach(i=>{let n={name:i.name,children:i.type==="Leaf"?void 0:[]};for(n.classSelector=i?.classSelector,i?.cssCompiledStyles&&(n.cssCompiledStyles=i.cssCompiledStyles),i.type==="Leaf"&&i.value!==void 0&&(n.value=i.value);r.length>0&&r[r.length-1].level>=i.level;)r.pop();if(r.length===0)t.push(n);else{let s=r[r.length-1].node;s.children?s.children.push(n):s.children=[n]}i.type!=="Leaf"&&r.push({node:n,level:i.level})}),t}var JTe=v(()=>{"use strict";a(ZTe,"buildHierarchy")});var qst,jst,k8,eke=v(()=>{"use strict";to();nt();Jl();JTe();T8();qst=a((e,t)=>{Sn(e,t);let r=[];for(let s of e.TreemapRows??[])s.$type==="ClassDefStatement"&&t.addClass(s.className??"",s.styleText??"");for(let s of e.TreemapRows??[]){let o=s.item;if(!o)continue;let l=s.indent?parseInt(s.indent):0,u=jst(o),h=o.classSelector?t.getStylesForClass(o.classSelector):[],d=h.length>0?h:void 0,f={level:l,name:u,type:o.$type,value:o.value,classSelector:o.classSelector,cssCompiledStyles:d};r.push(f)}let i=ZTe(r),n=a((s,o)=>{for(let l of s)t.addNode(l,o),l.children&&l.children.length>0&&n(l.children,o+1)},"addNodesRecursively");n(i,0)},"populate"),jst=a(e=>e.name?String(e.name):"","getItemName"),k8={parser:{yy:void 0},parse:a(async e=>{try{let r=await zi("treemap",e);W.debug("Treemap AST:",r);let i=k8.parser?.yy;if(!(i instanceof rg))throw new Error("parser.parser?.yy was not a TreemapDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");qst(r,i)}catch(t){throw W.error("Error parsing treemap:",t),t}},"parse")}});var Ust,ig,Rx,Hst,Yst,tke,rke=v(()=>{"use strict";ga();Kh();Xr();sr();xt();Xt();nt();Ust=10,ig=10,Rx=25,Hst=a((e,t,r,i)=>{let n=i.db,s=n.getConfig(),o=s.padding??Ust,l=n.getDiagramTitle(),u=n.getRoot(),{themeVariables:h}=ct();if(!u)return;let d=l?30:0,f=Yr(t),p=s.nodeWidth?s.nodeWidth*ig:960,m=s.nodeHeight?s.nodeHeight*ig:500,g=p,x=m+d;f.attr("viewBox",`0 0 ${g} ${x}`),fr(f,x,g,s.useMaxWidth);let b;try{let D=s.valueFormat||",";if(D==="$0,0")b=a(R=>"$"+go(",")(R),"valueFormat");else if(D.startsWith("$")&&D.includes(",")){let R=/\.\d+/.exec(D),N=R?R[0]:"";b=a($=>"$"+go(","+N)($),"valueFormat")}else if(D.startsWith("$")){let R=D.substring(1);b=a(N=>"$"+go(R||"")(N),"valueFormat")}else b=go(D)}catch(D){W.error("Error creating format function:",D),b=go(",")}let T=ka().range(["transparent",h.cScale0,h.cScale1,h.cScale2,h.cScale3,h.cScale4,h.cScale5,h.cScale6,h.cScale7,h.cScale8,h.cScale9,h.cScale10,h.cScale11]),k=ka().range(["transparent",h.cScalePeer0,h.cScalePeer1,h.cScalePeer2,h.cScalePeer3,h.cScalePeer4,h.cScalePeer5,h.cScalePeer6,h.cScalePeer7,h.cScalePeer8,h.cScalePeer9,h.cScalePeer10,h.cScalePeer11]),C=ka().range([h.cScaleLabel0,h.cScaleLabel1,h.cScaleLabel2,h.cScaleLabel3,h.cScaleLabel4,h.cScaleLabel5,h.cScaleLabel6,h.cScaleLabel7,h.cScaleLabel8,h.cScaleLabel9,h.cScaleLabel10,h.cScaleLabel11]);l&&f.append("text").attr("x",g/2).attr("y",d/2).attr("class","treemapTitle").attr("text-anchor","middle").attr("dominant-baseline","middle").text(l);let S=f.append("g").attr("transform",`translate(0, ${d})`).attr("class","treemapContainer"),w=Wf(u).sum(D=>D.value??0).sort((D,R)=>(R.value??0)-(D.value??0)),L=Ub().size([p,m]).paddingTop(D=>D.children&&D.children.length>0?Rx+ig:0).paddingInner(o).paddingLeft(D=>D.children&&D.children.length>0?ig:0).paddingRight(D=>D.children&&D.children.length>0?ig:0).paddingBottom(D=>D.children&&D.children.length>0?ig:0).round(!0)(w),I=L.descendants().filter(D=>D.children&&D.children.length>0),B=S.selectAll(".treemapSection").data(I).enter().append("g").attr("class","treemapSection").attr("transform",D=>`translate(${D.x0},${D.y0})`);B.append("rect").attr("width",D=>D.x1-D.x0).attr("height",Rx).attr("class","treemapSectionHeader").attr("fill","none").attr("fill-opacity",.6).attr("stroke-width",.6).attr("style",D=>D.depth===0?"display: none;":""),B.append("clipPath").attr("id",(D,R)=>`clip-section-${t}-${R}`).append("rect").attr("width",D=>Math.max(0,D.x1-D.x0-12)).attr("height",Rx),B.append("rect").attr("width",D=>D.x1-D.x0).attr("height",D=>D.y1-D.y0).attr("class",(D,R)=>`treemapSection section${R}`).attr("fill",D=>T(D.data.name)).attr("fill-opacity",.6).attr("stroke",D=>k(D.data.name)).attr("stroke-width",2).attr("stroke-opacity",.4).attr("style",D=>{if(D.depth===0)return"display: none;";let R=$e({cssCompiledStyles:D.data.cssCompiledStyles});return R.nodeStyles+";"+R.borderStyles.join(";")}),B.append("text").attr("class","treemapSectionLabel").attr("x",6).attr("y",Rx/2).attr("dominant-baseline","middle").text(D=>D.depth===0?"":D.data.name).attr("font-weight","bold").attr("style",D=>{if(D.depth===0)return"display: none;";let R="dominant-baseline: middle; font-size: 12px; fill:"+C(D.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;",N=$e({cssCompiledStyles:D.data.cssCompiledStyles});return R+N.labelStyles.replace("color:","fill:")}).each(function(D){if(D.depth===0)return;let R=Se(this),N=D.data.name;R.text(N);let $=D.x1-D.x0,E=6,M;s.showValues!==!1&&D.value?M=$-10-30-10-E:M=$-E-6;let O=Math.max(15,M),z=R.node();if(z.getComputedTextLength()>O){let j=N;for(;j.length>0;){if(j=N.substring(0,j.length-1),j.length===0){R.text("..."),z.getComputedTextLength()>O&&R.text("");break}if(R.text(j+"..."),z.getComputedTextLength()<=O)break}}}),s.showValues!==!1&&B.append("text").attr("class","treemapSectionValue").attr("x",D=>D.x1-D.x0-10).attr("y",Rx/2).attr("text-anchor","end").attr("dominant-baseline","middle").text(D=>D.value?b(D.value):"").attr("font-style","italic").attr("style",D=>{if(D.depth===0)return"display: none;";let R="text-anchor: end; dominant-baseline: middle; font-size: 10px; fill:"+C(D.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;",N=$e({cssCompiledStyles:D.data.cssCompiledStyles});return R+N.labelStyles.replace("color:","fill:")});let G=L.leaves(),P=S.selectAll(".treemapLeafGroup").data(G).enter().append("g").attr("class",(D,R)=>`treemapNode treemapLeafGroup leaf${R}${D.data.classSelector?` ${D.data.classSelector}`:""}x`).attr("transform",D=>`translate(${D.x0},${D.y0})`);P.append("rect").attr("width",D=>D.x1-D.x0).attr("height",D=>D.y1-D.y0).attr("class","treemapLeaf").attr("fill",D=>D.parent?T(D.parent.data.name):T(D.data.name)).attr("style",D=>$e({cssCompiledStyles:D.data.cssCompiledStyles}).nodeStyles).attr("fill-opacity",.3).attr("stroke",D=>D.parent?T(D.parent.data.name):T(D.data.name)).attr("stroke-width",3),P.append("clipPath").attr("id",(D,R)=>`clip-${t}-${R}`).append("rect").attr("width",D=>Math.max(0,D.x1-D.x0-4)).attr("height",D=>Math.max(0,D.y1-D.y0-4)),P.append("text").attr("class","treemapLabel").attr("x",D=>(D.x1-D.x0)/2).attr("y",D=>(D.y1-D.y0)/2).attr("style",D=>{let R="text-anchor: middle; dominant-baseline: middle; font-size: 38px;fill:"+C(D.data.name)+";",N=$e({cssCompiledStyles:D.data.cssCompiledStyles});return R+N.labelStyles.replace("color:","fill:")}).attr("clip-path",(D,R)=>`url(#clip-${t}-${R})`).text(D=>D.data.name).each(function(D){let R=Se(this),N=D.x1-D.x0,$=D.y1-D.y0,E=R.node(),M=4,V=N-2*M,O=$-2*M;if(V<10||O<10){R.style("display","none");return}let z=parseInt(R.style("font-size"),10),U=8,K=28,j=.6,ae=6,X=2;for(;E.getComputedTextLength()>V&&z>U;)z--,R.style("font-size",`${z}px`);let de=Math.max(ae,Math.min(K,Math.round(z*j))),le=z+X+de;for(;le>O&&z>U&&(z--,de=Math.max(ae,Math.min(K,Math.round(z*j))),!(de<ae&&z===U));)R.style("font-size",`${z}px`),le=z+X+de,de<=ae&&le>O;R.style("font-size",`${z}px`),(E.getComputedTextLength()>V||z<U||O<z)&&R.style("display","none")}),s.showValues!==!1&&P.append("text").attr("class","treemapValue").attr("x",R=>(R.x1-R.x0)/2).attr("y",function(R){return(R.y1-R.y0)/2}).attr("style",R=>{let N="text-anchor: middle; dominant-baseline: hanging; font-size: 28px;fill:"+C(R.data.name)+";",$=$e({cssCompiledStyles:R.data.cssCompiledStyles});return N+$.labelStyles.replace("color:","fill:")}).attr("clip-path",(R,N)=>`url(#clip-${t}-${N})`).text(R=>R.value?b(R.value):"").each(function(R){let N=Se(this),$=this.parentNode;if(!$){N.style("display","none");return}let E=Se($).select(".treemapLabel");if(E.empty()||E.style("display")==="none"){N.style("display","none");return}let M=parseFloat(E.style("font-size")),V=28,O=.6,z=6,U=2,K=Math.max(z,Math.min(V,Math.round(M*O)));N.style("font-size",`${K}px`);let ae=(R.y1-R.y0)/2+M/2+U;N.attr("y",ae);let X=R.x1-R.x0,ge=R.y1-R.y0-4,he=X-8;N.node().getComputedTextLength()>he||ae+K>ge||K<z?N.style("display","none"):N.style("display",null)});let A=s.diagramPadding??8;os(f,A,"flowchart",s?.useMaxWidth||!1)},"draw"),Yst=a(function(e,t){return t.db.getClasses()},"getClasses"),tke={draw:Hst,getClasses:Yst}});var Kst,Xst,ike,nke=v(()=>{"use strict";Et();Yu();Xt();Kst={sectionStrokeColor:"black",sectionStrokeWidth:"1",sectionFillColor:"#efefef",leafStrokeColor:"black",leafStrokeWidth:"1",leafFillColor:"#efefef",labelFontSize:"12px",valueFontSize:"10px",titleFontSize:"14px"},Xst=a(({treemap:e}={})=>{let t=ja(),r=ct(),i=xr(t,r.themeVariables),n=xr(Kst,e),s=n.titleColor??i.titleColor,o=n.labelColor??i.textColor,l=n.valueColor??i.textColor;return`
.treemapNode.section {
stroke: ${n.sectionStrokeColor};
stroke-width: ${n.sectionStrokeWidth};
fill: ${n.sectionFillColor};
}
.treemapNode.leaf {
stroke: ${n.leafStrokeColor};
stroke-width: ${n.leafStrokeWidth};
fill: ${n.leafFillColor};
}
.treemapLabel {
fill: ${o};
font-size: ${n.labelFontSize};
}
.treemapValue {
fill: ${l};
font-size: ${n.valueFontSize};
}
.treemapTitle {
fill: ${s};
font-size: ${n.titleFontSize};
}
`},"getStyles"),ike=Xst});var ake={};tr(ake,{diagram:()=>Qst});var Qst,ske=v(()=>{"use strict";T8();eke();rke();nke();Qst={parser:k8,get db(){return new rg},renderer:tke,styles:ike}});var cw,gf,cke,eot,tot,C8,uke=v(()=>{"use strict";to();nt();Jl();cw=a((e,t)=>{let r=e<=1?e*100:e;if(r<0||r>100)throw new Error(`${t} must be between 0-1 (decimal) or 0-100 (percentage). Received: ${e}`);return r},"toPercent"),gf=a((e,t,r)=>({x:cw(t,`${r} evolution`),y:cw(e,`${r} visibility`)}),"toCoordinates"),cke=a(e=>{if(e){if(e==="+<>")return"bidirectional";if(e==="+<")return"backward";if(e==="+>")return"forward"}},"getFlowFromPort"),eot=a(e=>{if(!e?.startsWith("+"))return{};let r=/^\+'([^']*)'/.exec(e)?.[1];return e.includes("<>")?{flow:"bidirectional",label:r}:e.includes("<")?{flow:"backward",label:r}:e.includes(">")?{flow:"forward",label:r}:{label:r}},"extractFlowFromArrow"),tot=a((e,t)=>{if(Sn(e,t),e.size&&t.setSize(e.size.width,e.size.height),e.evolution){let r=e.evolution.stages.map(n=>n.secondName?`${n.name.trim()} / ${n.secondName.trim()}`:n.name.trim()),i=e.evolution.stages.filter(n=>n.boundary!==void 0).map(n=>n.boundary);t.updateAxes({stages:r,stageBoundaries:i})}if(e.anchors.forEach(r=>{let i=gf(r.visibility,r.evolution,`Anchor "${r.name}"`);t.addNode(r.name,r.name,i.x,i.y,"anchor")}),e.components.forEach(r=>{let i=gf(r.visibility,r.evolution,`Component "${r.name}"`),n=r.label?(r.label.negX?-1:1)*r.label.offsetX:void 0,s=r.label?(r.label.negY?-1:1)*r.label.offsetY:void 0,o=r.decorator?.strategy;t.addNode(r.name,r.name,i.x,i.y,"component",n,s,r.inertia,o)}),e.notes.forEach(r=>{let i=gf(r.visibility,r.evolution,`Note "${r.text}"`);t.addNote(r.text,i.x,i.y)}),e.pipelines.forEach(r=>{let i=t.getNode(r.parent);if(!i||typeof i.y!="number")throw new Error(`Pipeline "${r.parent}" must reference an existing component with coordinates.`);let n=i.y;t.startPipeline(r.parent),r.components.forEach(s=>{let o=`${r.parent}_${s.name}`,l=s.label?(s.label.negX?-1:1)*s.label.offsetX:void 0,u=s.label?(s.label.negY?-1:1)*s.label.offsetY:void 0,h=cw(s.evolution,`Pipeline component "${s.name}" evolution`);t.addNode(o,s.name,h,n,"pipeline-component",l,u),t.addPipelineComponent(r.parent,o)})}),e.links.forEach(r=>{let i=!!r.arrow&&(r.arrow.includes("-.->")||r.arrow.includes(".-.")),n=cke(r.fromPort)??cke(r.toPort),{flow:s,label:o}=eot(r.arrow);!n&&s&&(n=s);let l=r.linkLabel,u=o??l;t.addLink(t.resolveNodeId(r.from),t.resolveNodeId(r.to),i,u,n)}),e.evolves.forEach(r=>{let i=t.getNode(r.component);if(i?.y!==void 0){let n=cw(r.target,`Evolve target for "${r.component}"`);t.addTrend(r.component,n,i.y)}}),e.annotations.length>0){let r=e.annotations[0],i=gf(r.x,r.y,"Annotations box");t.setAnnotationsBox(i.x,i.y)}e.annotation.forEach(r=>{let i=gf(r.x,r.y,`Annotation ${r.number}`);t.addAnnotation(r.number,[{x:i.x,y:i.y}],r.text)}),e.accelerators.forEach(r=>{let i=gf(r.x,r.y,`Accelerator "${r.name}"`);t.addAccelerator(r.name,i.x,i.y)}),e.deaccelerators.forEach(r=>{let i=gf(r.x,r.y,`Deaccelerator "${r.name}"`);t.addDeaccelerator(r.name,i.x,i.y)})},"populateDb"),C8={parser:{yy:void 0},parse:a(async e=>{let t=await zi("wardley",e);W.debug(t);let r=C8.parser?.yy;if(!r||typeof r.addNode!="function")throw new Error("parser.parser?.yy was not a WardleyDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");tot(t,r)},"parse")}});var uw,hke=v(()=>{"use strict";uw=class{constructor(){this.nodes=new Map;this.links=[];this.trends=new Map;this.pipelines=new Map;this.annotations=[];this.notes=[];this.accelerators=[];this.deaccelerators=[];this.axes={}}static{a(this,"WardleyBuilder")}addNode(t){let r=this.nodes.get(t.id)??{id:t.id,label:t.label},i={...r,...t,className:t.className??r.className,labelOffsetX:t.labelOffsetX??r.labelOffsetX,labelOffsetY:t.labelOffsetY??r.labelOffsetY};this.nodes.set(t.id,i)}addLink(t){this.links.push(t)}addTrend(t){this.trends.set(t.nodeId,t)}startPipeline(t){this.pipelines.set(t,{nodeId:t,componentIds:[]});let r=this.nodes.get(t);r&&(r.isPipelineParent=!0)}addPipelineComponent(t,r){let i=this.pipelines.get(t);i&&i.componentIds.push(r);let n=this.nodes.get(r);n&&(n.inPipeline=!0)}addAnnotation(t){this.annotations.push(t)}addNote(t){this.notes.push(t)}addAccelerator(t){this.accelerators.push(t)}addDeaccelerator(t){this.deaccelerators.push(t)}setAnnotationsBox(t,r){this.annotationsBox={x:t,y:r}}setAxes(t){this.axes={...this.axes,...t}}setSize(t,r){this.size={width:t,height:r}}getNode(t){return this.nodes.get(t)}resolveNodeId(t){if(this.nodes.has(t))return t;for(let[r,i]of this.nodes)if(i.label===t)return r;return t}build(){let t=[];for(let r of this.nodes.values()){if(typeof r.x!="number"||typeof r.y!="number")throw new Error(`Node "${r.label}" is missing coordinates`);t.push(r)}return{nodes:t,links:[...this.links],trends:[...this.trends.values()],pipelines:[...this.pipelines.values()],annotations:[...this.annotations],notes:[...this.notes],accelerators:[...this.accelerators],deaccelerators:[...this.deaccelerators],annotationsBox:this.annotationsBox,axes:{...this.axes},size:this.size}}clear(){this.nodes.clear(),this.links=[],this.trends.clear(),this.pipelines.clear(),this.annotations=[],this.notes=[],this.accelerators=[],this.deaccelerators=[],this.annotationsBox=void 0,this.axes={},this.size=void 0}}});function rot(){return J()["wardley-beta"]}function iot(e,t,r,i,n,s,o,l,u){En.addNode({id:e,label:t,x:r,y:i,className:n,labelOffsetX:s,labelOffsetY:o,inertia:l,sourceStrategy:u})}function not(e,t,r=!1,i,n){En.addLink({source:e,target:t,dashed:r,label:i,flow:n})}function aot(e,t,r){En.addTrend({nodeId:e,targetX:t,targetY:r})}function sot(e,t,r){En.addAnnotation({number:e,coordinates:t,text:r})}function oot(e,t,r){En.addNote({text:e,x:t,y:r})}function lot(e,t,r){En.addAccelerator({name:e,x:t,y:r})}function cot(e,t,r){En.addDeaccelerator({name:e,x:t,y:r})}function uot(e,t){En.setAnnotationsBox(e,t)}function hot(e,t){En.setSize(e,t)}function dot(e){En.startPipeline(e)}function fot(e,t){En.addPipelineComponent(e,t)}function pot(e){En.setAxes(e)}function mot(e){return En.getNode(e)}function got(e){return En.resolveNodeId(e)}function yot(){return En.build()}function xot(){En.clear(),Ht()}var En,dke,fke=v(()=>{"use strict";bt();zr();hke();En=new uw;a(rot,"getConfig");a(iot,"addNode");a(not,"addLink");a(aot,"addTrend");a(sot,"addAnnotation");a(oot,"addNote");a(lot,"addAccelerator");a(cot,"addDeaccelerator");a(uot,"setAnnotationsBox");a(hot,"setSize");a(dot,"startPipeline");a(fot,"addPipelineComponent");a(pot,"updateAxes");a(mot,"getNode");a(got,"resolveNodeId");a(yot,"getWardleyData");a(xot,"clear");dke={getConfig:rot,addNode:iot,addLink:not,addTrend:aot,addAnnotation:sot,addNote:oot,addAccelerator:lot,addDeaccelerator:cot,setAnnotationsBox:uot,setSize:hot,startPipeline:dot,addPipelineComponent:fot,updateAxes:pot,getNode:mot,resolveNodeId:got,getWardleyData:yot,clear:xot,setAccTitle:Yt,getAccTitle:Qt,setDiagramTitle:ir,getDiagramTitle:er,getAccDescription:Jt,setAccDescription:Zt}});var bot,Tot,kot,Cot,pke,mke=v(()=>{"use strict";bt();nt();ga();Xr();bot=["Genesis","Custom Built","Product","Commodity"],Tot=a(()=>{let{themeVariables:e}=J();return{backgroundColor:e.wardley?.backgroundColor??e.background??"#fff",axisColor:e.wardley?.axisColor??"#000",axisTextColor:e.wardley?.axisTextColor??e.primaryTextColor??"#222",gridColor:e.wardley?.gridColor??"rgba(100, 100, 100, 0.2)",componentFill:e.wardley?.componentFill??"#fff",componentStroke:e.wardley?.componentStroke??"#000",componentLabelColor:e.wardley?.componentLabelColor??e.primaryTextColor??"#222",linkStroke:e.wardley?.linkStroke??"#000",evolutionStroke:e.wardley?.evolutionStroke??"#dc3545",annotationStroke:e.wardley?.annotationStroke??"#000",annotationTextColor:e.wardley?.annotationTextColor??e.primaryTextColor??"#222",annotationFill:e.wardley?.annotationFill??e.background??"#fff"}},"getTheme"),kot=a(()=>{let e=J()["wardley-beta"];return{width:e?.width??900,height:e?.height??600,padding:e?.padding??48,nodeRadius:e?.nodeRadius??6,nodeLabelOffset:e?.nodeLabelOffset??8,axisFontSize:e?.axisFontSize??12,labelFontSize:e?.labelFontSize??10,showGrid:e?.showGrid??!1,useMaxWidth:e?.useMaxWidth??!0}},"getConfigValues"),Cot=a((e,t,r,i)=>{W.debug(`Rendering Wardley map
`+e);let n=kot(),s=Tot(),o=n.nodeRadius*1.6,l=i.db,u=l.getWardleyData(),h=l.getDiagramTitle(),d=u.size?.width??n.width,f=u.size?.height??n.height,p=Yr(t);p.selectAll("*").remove(),fr(p,f,d,n.useMaxWidth),p.attr("viewBox",`0 0 ${d} ${f}`);let m=p.append("g").attr("class","wardley-map"),g=p.append("defs");g.append("marker").attr("id",`arrow-${t}`).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerWidth",6).attr("markerHeight",6).attr("orient","auto-start-reverse").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("fill",s.evolutionStroke).attr("stroke","none"),g.append("marker").attr("id",`link-arrow-end-${t}`).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerWidth",5).attr("markerHeight",5).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("fill",s.linkStroke).attr("stroke","none"),g.append("marker").attr("id",`link-arrow-start-${t}`).attr("viewBox","0 0 10 10").attr("refX",1).attr("refY",5).attr("markerWidth",5).attr("markerHeight",5).attr("orient","auto").append("path").attr("d","M 10 0 L 0 5 L 10 10 z").attr("fill",s.linkStroke).attr("stroke","none"),m.append("rect").attr("class","wardley-background").attr("width",d).attr("height",f).attr("fill",s.backgroundColor);let x=d-n.padding*2,b=f-n.padding*2;h&&m.append("text").attr("class","wardley-title").attr("x",d/2).attr("y",n.padding/2).attr("fill",s.axisTextColor).attr("font-size",n.axisFontSize*1.05).attr("font-weight","bold").attr("text-anchor","middle").attr("dominant-baseline","middle").text(h);let T=a(E=>n.padding+E/100*x,"projectX"),k=a(E=>f-n.padding-E/100*b,"projectY"),C=m.append("g").attr("class","wardley-axes");C.append("line").attr("x1",n.padding).attr("x2",d-n.padding).attr("y1",f-n.padding).attr("y2",f-n.padding).attr("stroke",s.axisColor).attr("stroke-width",1),C.append("line").attr("x1",n.padding).attr("x2",n.padding).attr("y1",n.padding).attr("y2",f-n.padding).attr("stroke",s.axisColor).attr("stroke-width",1);let S=u.axes.xLabel??"Evolution",w=u.axes.yLabel??"Visibility";C.append("text").attr("class","wardley-axis-label wardley-axis-label-x").attr("x",n.padding+x/2).attr("y",f-n.padding/4).attr("fill",s.axisTextColor).attr("font-size",n.axisFontSize).attr("font-weight","bold").attr("text-anchor","middle").text(S),C.append("text").attr("class","wardley-axis-label wardley-axis-label-y").attr("x",n.padding/3).attr("y",n.padding+b/2).attr("fill",s.axisTextColor).attr("font-size",n.axisFontSize).attr("font-weight","bold").attr("text-anchor","middle").attr("transform",`rotate(-90 ${n.padding/3} ${n.padding+b/2})`).text(w);let _=u.axes.stages&&u.axes.stages.length>0?u.axes.stages:bot;if(_.length>0){let E=m.append("g").attr("class","wardley-stages"),M=u.axes.stageBoundaries,V=[];if(M&&M.length===_.length){let O=0;M.forEach(z=>{V.push({start:O,end:z}),O=z})}else{let O=1/_.length;_.forEach((z,U)=>{V.push({start:U*O,end:(U+1)*O})})}_.forEach((O,z)=>{let U=V[z],K=n.padding+U.start*x,j=n.padding+U.end*x,ae=(K+j)/2;z>0&&E.append("line").attr("x1",K).attr("x2",K).attr("y1",n.padding).attr("y2",f-n.padding).attr("stroke","#000").attr("stroke-width",1).attr("stroke-dasharray","5 5").attr("opacity",.8),E.append("text").attr("class","wardley-stage-label").attr("x",ae).attr("y",f-n.padding/1.5).attr("fill",s.axisTextColor).attr("font-size",n.axisFontSize-2).attr("text-anchor","middle").text(O)})}if(n.showGrid){let E=m.append("g").attr("class","wardley-grid");for(let M=1;M<4;M++){let V=M/4,O=n.padding+x*V;E.append("line").attr("x1",O).attr("x2",O).attr("y1",n.padding).attr("y2",f-n.padding).attr("stroke",s.gridColor).attr("stroke-dasharray","2 6"),E.append("line").attr("x1",n.padding).attr("x2",d-n.padding).attr("y1",f-n.padding-b*V).attr("y2",f-n.padding-b*V).attr("stroke",s.gridColor).attr("stroke-dasharray","2 6")}}let L=new Map;if(u.nodes.forEach(E=>{L.set(E.id,{x:T(E.x),y:k(E.y),node:E})}),u.pipelines.length>0){let E=m.append("g").attr("class","wardley-pipelines"),M=m.append("g").attr("class","wardley-pipeline-links");u.pipelines.forEach(V=>{if(V.componentIds.length===0)return;let O=V.componentIds.map(j=>({id:j,pos:L.get(j),node:u.nodes.find(ae=>ae.id===j)})).filter(j=>j.pos&&j.node).sort((j,ae)=>j.node.x-ae.node.x);for(let j=0;j<O.length-1;j++){let ae=O[j],X=O[j+1];M.append("line").attr("class","wardley-pipeline-evolution-link").attr("x1",ae.pos.x).attr("y1",ae.pos.y).attr("x2",X.pos.x).attr("y2",X.pos.y).attr("stroke",s.linkStroke).attr("stroke-width",1).attr("stroke-dasharray","4 4")}let z=1/0,U=-1/0,K=0;if(V.componentIds.forEach(j=>{let ae=L.get(j);ae&&(z=Math.min(z,ae.x),U=Math.max(U,ae.x),K=ae.y)}),z!==1/0&&U!==-1/0){let ae=n.nodeRadius*4,X=K-ae/2,de=L.get(V.nodeId);if(de){let le=(z+U)/2;de.x=le,de.y=X-o/6}E.append("rect").attr("class","wardley-pipeline-box").attr("x",z-15).attr("y",X).attr("width",U-z+30).attr("height",ae).attr("fill","none").attr("stroke",s.axisColor).attr("stroke-width",1.5).attr("rx",4).attr("ry",4)}})}let I=m.append("g").attr("class","wardley-links"),B=new Map;u.pipelines.forEach(E=>{B.set(E.nodeId,new Set(E.componentIds))});let G=u.links.filter(E=>!(!L.has(E.source)||!L.has(E.target)||B.get(E.target)?.has(E.source)));I.selectAll("line").data(G).enter().append("line").attr("class",E=>`wardley-link${E.dashed?" wardley-link--dashed":""}`).attr("x1",E=>{let M=L.get(E.source),V=L.get(E.target),z=u.nodes.find(ae=>ae.id===E.source).isPipelineParent?o/Math.sqrt(2):n.nodeRadius,U=V.x-M.x,K=V.y-M.y,j=Math.sqrt(U*U+K*K);return M.x+U/j*z}).attr("y1",E=>{let M=L.get(E.source),V=L.get(E.target),z=u.nodes.find(ae=>ae.id===E.source).isPipelineParent?o/Math.sqrt(2):n.nodeRadius,U=V.x-M.x,K=V.y-M.y,j=Math.sqrt(U*U+K*K);return M.y+K/j*z}).attr("x2",E=>{let M=L.get(E.source),V=L.get(E.target),z=u.nodes.find(ae=>ae.id===E.target).isPipelineParent?o/Math.sqrt(2):n.nodeRadius,U=M.x-V.x,K=M.y-V.y,j=Math.sqrt(U*U+K*K);return V.x+U/j*z}).attr("y2",E=>{let M=L.get(E.source),V=L.get(E.target),z=u.nodes.find(ae=>ae.id===E.target).isPipelineParent?o/Math.sqrt(2):n.nodeRadius,U=M.x-V.x,K=M.y-V.y,j=Math.sqrt(U*U+K*K);return V.y+K/j*z}).attr("stroke",s.linkStroke).attr("stroke-width",1).attr("stroke-dasharray",E=>E.dashed?"6 6":null).attr("marker-end",E=>E.flow==="forward"||E.flow==="bidirectional"?`url(#link-arrow-end-${t})`:null).attr("marker-start",E=>E.flow==="backward"||E.flow==="bidirectional"?`url(#link-arrow-start-${t})`:null),I.selectAll("text").data(G.filter(E=>E.label)).enter().append("text").attr("class","wardley-link-label").attr("x",E=>{let M=L.get(E.source),V=L.get(E.target),O=(M.x+V.x)/2,z=V.y-M.y,U=V.x-M.x,K=Math.sqrt(U*U+z*z),j=8,ae=z/K;return O+ae*j}).attr("y",E=>{let M=L.get(E.source),V=L.get(E.target),O=(M.y+V.y)/2,z=V.x-M.x,U=V.y-M.y,K=Math.sqrt(z*z+U*U),j=8,ae=-z/K;return O+ae*j}).attr("fill",s.axisTextColor).attr("font-size",n.labelFontSize).attr("text-anchor","middle").attr("dominant-baseline","middle").attr("transform",E=>{let M=L.get(E.source),V=L.get(E.target),O=(M.x+V.x)/2,z=(M.y+V.y)/2,U=V.x-M.x,K=V.y-M.y,j=Math.sqrt(U*U+K*K),ae=8,X=K/j,de=-U/j,le=O+X*ae,ge=z+de*ae,he=Math.atan2(K,U)*180/Math.PI;return(he>90||he<-90)&&(he+=180),`rotate(${he} ${le} ${ge})`}).text(E=>E.label);let P=m.append("g").attr("class","wardley-trends"),F=u.trends.map(E=>{let M=L.get(E.nodeId);if(!M)return null;let V=T(E.targetX),O=k(E.targetY),z=V-M.x,U=O-M.y,K=Math.sqrt(z*z+U*U),j=n.nodeRadius+2,ae=K>j?V-z/K*j:V,X=K>j?O-U/K*j:O;return{origin:M,targetX:V,targetY:O,adjustedX2:ae,adjustedY2:X}}).filter(E=>E!==null);P.selectAll("line").data(F).enter().append("line").attr("class","wardley-trend").attr("x1",E=>E.origin.x).attr("y1",E=>E.origin.y).attr("x2",E=>E.adjustedX2).attr("y2",E=>E.adjustedY2).attr("stroke",s.evolutionStroke).attr("stroke-width",1).attr("stroke-dasharray","4 4").attr("marker-end",`url(#arrow-${t})`);let D=m.append("g").attr("class","wardley-nodes").selectAll("g").data(u.nodes).enter().append("g").attr("class",E=>["wardley-node",E.className?`wardley-node--${E.className}`:""].filter(Boolean).join(" "));D.filter(E=>E.sourceStrategy==="outsource").append("circle").attr("class","wardley-outsource-overlay").attr("cx",E=>L.get(E.id).x).attr("cy",E=>L.get(E.id).y).attr("r",n.nodeRadius*2).attr("fill","#666").attr("stroke",s.componentStroke).attr("stroke-width",1),D.filter(E=>E.sourceStrategy==="buy").append("circle").attr("class","wardley-buy-overlay").attr("cx",E=>L.get(E.id).x).attr("cy",E=>L.get(E.id).y).attr("r",n.nodeRadius*2).attr("fill","#ccc").attr("stroke",s.componentStroke).attr("stroke-width",1),D.filter(E=>E.sourceStrategy==="build").append("circle").attr("class","wardley-build-overlay").attr("cx",E=>L.get(E.id).x).attr("cy",E=>L.get(E.id).y).attr("r",n.nodeRadius*2).attr("fill","#eee").attr("stroke","#000").attr("stroke-width",1);let R=D.filter(E=>E.sourceStrategy==="market");R.append("circle").attr("class","wardley-market-overlay").attr("cx",E=>L.get(E.id).x).attr("cy",E=>L.get(E.id).y).attr("r",n.nodeRadius*2).attr("fill","white").attr("stroke",s.componentStroke).attr("stroke-width",1),D.filter(E=>!E.isPipelineParent&&E.sourceStrategy!=="market"&&E.className!=="anchor").append("circle").attr("cx",E=>L.get(E.id).x).attr("cy",E=>L.get(E.id).y).attr("r",n.nodeRadius).attr("fill",s.componentFill).attr("stroke",s.componentStroke).attr("stroke-width",1);let N=n.nodeRadius*.7,$=n.nodeRadius*1.2;if(R.append("line").attr("class","wardley-market-line").attr("x1",E=>L.get(E.id).x).attr("y1",E=>L.get(E.id).y-$).attr("x2",E=>L.get(E.id).x-$*Math.cos(Math.PI/6)).attr("y2",E=>L.get(E.id).y+$*Math.sin(Math.PI/6)).attr("stroke",s.componentStroke).attr("stroke-width",1),R.append("line").attr("class","wardley-market-line").attr("x1",E=>L.get(E.id).x-$*Math.cos(Math.PI/6)).attr("y1",E=>L.get(E.id).y+$*Math.sin(Math.PI/6)).attr("x2",E=>L.get(E.id).x+$*Math.cos(Math.PI/6)).attr("y2",E=>L.get(E.id).y+$*Math.sin(Math.PI/6)).attr("stroke",s.componentStroke).attr("stroke-width",1),R.append("line").attr("class","wardley-market-line").attr("x1",E=>L.get(E.id).x+$*Math.cos(Math.PI/6)).attr("y1",E=>L.get(E.id).y+$*Math.sin(Math.PI/6)).attr("x2",E=>L.get(E.id).x).attr("y2",E=>L.get(E.id).y-$).attr("stroke",s.componentStroke).attr("stroke-width",1),R.append("circle").attr("class","wardley-market-dot").attr("cx",E=>L.get(E.id).x).attr("cy",E=>L.get(E.id).y-$).attr("r",N).attr("fill","white").attr("stroke",s.componentStroke).attr("stroke-width",2),R.append("circle").attr("class","wardley-market-dot").attr("cx",E=>L.get(E.id).x-$*Math.cos(Math.PI/6)).attr("cy",E=>L.get(E.id).y+$*Math.sin(Math.PI/6)).attr("r",N).attr("fill","white").attr("stroke",s.componentStroke).attr("stroke-width",2),R.append("circle").attr("class","wardley-market-dot").attr("cx",E=>L.get(E.id).x+$*Math.cos(Math.PI/6)).attr("cy",E=>L.get(E.id).y+$*Math.sin(Math.PI/6)).attr("r",N).attr("fill","white").attr("stroke",s.componentStroke).attr("stroke-width",2),D.filter(E=>E.isPipelineParent===!0).append("rect").attr("x",E=>L.get(E.id).x-o/2).attr("y",E=>L.get(E.id).y-o/2).attr("width",o).attr("height",o).attr("fill",s.componentFill).attr("stroke",s.componentStroke).attr("stroke-width",1),D.filter(E=>E.inertia===!0).append("line").attr("class","wardley-inertia").attr("x1",E=>{let M=L.get(E.id),V=E.isPipelineParent?o/2+15:n.nodeRadius+15;return E.sourceStrategy&&(V+=n.nodeRadius+10),M.x+V}).attr("y1",E=>{let M=L.get(E.id),V=E.isPipelineParent?o:n.nodeRadius*2;return M.y-V/2}).attr("x2",E=>{let M=L.get(E.id),V=E.isPipelineParent?o/2+15:n.nodeRadius+15;return E.sourceStrategy&&(V+=n.nodeRadius+10),M.x+V}).attr("y2",E=>{let M=L.get(E.id),V=E.isPipelineParent?o:n.nodeRadius*2;return M.y+V/2}).attr("stroke",s.componentStroke).attr("stroke-width",6),D.append("text").attr("x",E=>{let M=L.get(E.id);if(E.className==="anchor")return E.labelOffsetX!==void 0?M.x+E.labelOffsetX:M.x;let V=n.nodeLabelOffset;E.sourceStrategy&&E.labelOffsetX===void 0&&(V+=10);let O=E.labelOffsetX??V;return M.x+O}).attr("y",E=>{let M=L.get(E.id);if(E.className==="anchor")return E.labelOffsetY!==void 0?M.y+E.labelOffsetY:M.y-3;let V=-n.nodeLabelOffset;E.sourceStrategy&&E.labelOffsetY===void 0&&(V-=10);let O=E.labelOffsetY??V;return M.y+O}).attr("class","wardley-node-label").attr("fill",E=>E.className==="evolved"?s.evolutionStroke:E.className==="anchor"?"#000":s.componentLabelColor).attr("font-size",n.labelFontSize).attr("font-weight",E=>E.className==="anchor"?"bold":"normal").attr("text-anchor",E=>E.className==="anchor"?"middle":"start").attr("dominant-baseline",E=>E.className==="anchor"?"middle":"auto").text(E=>E.label),u.annotations.length>0){let E=m.append("g").attr("class","wardley-annotations");if(u.annotations.forEach(M=>{let V=M.coordinates.map(O=>({x:T(O.x),y:k(O.y)}));if(V.length>1)for(let O=0;O<V.length-1;O++)E.append("line").attr("class","wardley-annotation-line").attr("x1",V[O].x).attr("y1",V[O].y).attr("x2",V[O+1].x).attr("y2",V[O+1].y).attr("stroke",s.axisColor).attr("stroke-width",1.5).attr("stroke-dasharray","4 4");V.forEach(O=>{let z=E.append("g").attr("class","wardley-annotation");z.append("circle").attr("cx",O.x).attr("cy",O.y).attr("r",10).attr("fill","white").attr("stroke",s.axisColor).attr("stroke-width",1.5),z.append("text").attr("x",O.x).attr("y",O.y).attr("text-anchor","middle").attr("dominant-baseline","central").attr("font-size",10).attr("fill",s.axisTextColor).attr("font-weight","bold").text(M.number)})}),u.annotationsBox){let M=T(u.annotationsBox.x),V=k(u.annotationsBox.y),O=10,z=16,U=11,K=E.append("g").attr("class","wardley-annotations-box"),j=[...u.annotations].filter(X=>X.text).sort((X,de)=>X.number-de.number),ae=[];if(j.forEach((X,de)=>{let le=K.append("text").attr("x",M+O).attr("y",V+O+(de+1)*z).attr("font-size",U).attr("fill",s.axisTextColor).attr("text-anchor","start").attr("dominant-baseline","middle").text(`${X.number}. ${X.text}`);ae.push(le)}),ae.length>0){let X=0,de=0;ae.forEach(ye=>{let be=ye.node(),Ce=be.getComputedTextLength();X=Math.max(X,Ce);let Oe=be.getBBox();de=Math.max(de,Oe.height)});let le=X+O*2+105,ge=j.length*z+O*2+de/2,he=n.padding,te=d-n.padding-le,Le=n.padding,xe=f-n.padding-ge;M=Math.max(he,Math.min(M,te)),V=Math.max(Le,Math.min(V,xe)),ae.forEach((ye,be)=>{ye.attr("x",M+O).attr("y",V+O+(be+1)*z)}),K.insert("rect","text").attr("x",M).attr("y",V).attr("width",le).attr("height",ge).attr("fill","white").attr("stroke",s.axisColor).attr("stroke-width",1.5).attr("rx",4).attr("ry",4)}}}if(u.notes.length>0){let E=m.append("g").attr("class","wardley-notes");u.notes.forEach(M=>{let V=T(M.x),O=k(M.y);E.append("text").attr("x",V).attr("y",O).attr("text-anchor","start").attr("font-size",11).attr("fill",s.axisTextColor).attr("font-weight","bold").text(M.text)})}if(u.accelerators.length>0){let E=m.append("g").attr("class","wardley-accelerators");u.accelerators.forEach(M=>{let V=T(M.x),O=k(M.y),z=60,U=30,K=20,j=`
M ${V} ${O-U/2}
L ${V+z-K} ${O-U/2}
L ${V+z-K} ${O-U/2-8}
L ${V+z} ${O}
L ${V+z-K} ${O+U/2+8}
L ${V+z-K} ${O+U/2}
L ${V} ${O+U/2}
Z
`;E.append("path").attr("d",j).attr("fill","white").attr("stroke",s.componentStroke).attr("stroke-width",1),E.append("text").attr("x",V+z/2).attr("y",O+U/2+15).attr("text-anchor","middle").attr("font-size",10).attr("fill",s.axisTextColor).attr("font-weight","bold").text(M.name)})}if(u.deaccelerators.length>0){let E=m.append("g").attr("class","wardley-deaccelerators");u.deaccelerators.forEach(M=>{let V=T(M.x),O=k(M.y),z=60,U=30,K=20,j=`
M ${V+z} ${O-U/2}
L ${V+K} ${O-U/2}
L ${V+K} ${O-U/2-8}
L ${V} ${O}
L ${V+K} ${O+U/2+8}
L ${V+K} ${O+U/2}
L ${V+z} ${O+U/2}
Z
`;E.append("path").attr("d",j).attr("fill","white").attr("stroke",s.componentStroke).attr("stroke-width",1),E.append("text").attr("x",V+z/2).attr("y",O+U/2+15).attr("text-anchor","middle").attr("font-size",10).attr("fill",s.axisTextColor).attr("font-weight","bold").text(M.name)})}},"draw"),pke={draw:Cot}});var gke,yke=v(()=>{"use strict";Et();Yu();Xt();gke=a(({wardley:e}={})=>{let t=ja(),r=ct(),i=xr(t,r.themeVariables),n=xr(i.wardley,e);return`
.wardley-background {
fill: ${n.backgroundColor};
}
.wardley-axes line, .wardley-axes path {
stroke: ${n.axisColor};
}
.wardley-axis-label {
fill: ${n.axisTextColor};
}
.wardley-stage-label {
fill: ${n.axisTextColor};
}
.wardley-grid line {
stroke: ${n.gridColor};
}
.wardley-node circle {
fill: ${n.componentFill};
stroke: ${n.componentStroke};
}
.wardley-node-label {
fill: ${n.componentLabelColor};
}
.wardley-link {
stroke: ${n.linkStroke};
}
.wardley-link--dashed {
stroke-dasharray: 4 4;
}
.wardley-link-label {
fill: ${n.axisTextColor};
}
.wardley-trend line {
stroke: ${n.evolutionStroke};
}
.wardley-annotation-line {
stroke: ${n.annotationStroke};
}
.wardley-annotation circle {
fill: ${n.annotationFill};
stroke: ${n.annotationStroke};
}
.wardley-annotation text {
fill: ${n.annotationTextColor};
}
.wardley-annotations-box rect {
fill: ${n.annotationFill};
stroke: ${n.annotationStroke};
}
.wardley-annotations-box text {
fill: ${n.annotationTextColor};
}
.wardley-pipeline-box {
stroke: ${n.componentStroke};
}
.wardley-notes text {
fill: ${n.axisTextColor};
}
`},"styles")});var xke={};tr(xke,{diagram:()=>vot});var vot,bke=v(()=>{"use strict";uke();fke();mke();yke();vot={parser:C8,db:dke,renderer:pke,styles:gke}});var dlt={};tr(dlt,{default:()=>hlt});Qu();yE();Ju();var u3e=a(e=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(e),"detector"),h3e=a(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(Mz(),Nz));return{id:"c4",diagram:e}},"loader"),d3e={id:"c4",detector:u3e,loader:h3e},Oz=d3e;var Kte="flowchart",M7e=a((e,t)=>t?.flowchart?.defaultRenderer==="dagre-wrapper"||t?.flowchart?.defaultRenderer==="elk"?!1:/^\s*graph/.test(e),"detector"),O7e=a(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(aD(),nD));return{id:Kte,diagram:e}},"loader"),P7e={id:Kte,detector:M7e,loader:O7e},Xte=P7e;var Qte="flowchart-v2",B7e=a((e,t)=>t?.flowchart?.defaultRenderer==="dagre-d3"?!1:(t?.flowchart?.defaultRenderer==="elk"&&(t.layout="elk"),/^\s*graph/.test(e)&&t?.flowchart?.defaultRenderer==="dagre-wrapper"?!0:/^\s*flowchart/.test(e)),"detector"),$7e=a(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(aD(),nD));return{id:Qte,diagram:e}},"loader"),F7e={id:Qte,detector:B7e,loader:$7e},Zte=F7e;var q7e=a(e=>/^\s*erDiagram/.test(e),"detector"),j7e=a(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(ore(),sre));return{id:"er",diagram:e}},"loader"),U7e={id:"er",detector:q7e,loader:j7e},lre=U7e;var ege="gitGraph",JXe=a(e=>/^\s*gitGraph/.test(e),"detector"),eQe=a(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(Jme(),Zme));return{id:ege,diagram:e}},"loader"),tQe={id:ege,detector:JXe,loader:eQe},tge=tQe;var Nge="gantt",zQe=a(e=>/^\s*gantt/.test(e),"detector"),qQe=a(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(Ige(),Dge));return{id:Nge,diagram:e}},"loader"),jQe={id:Nge,detector:zQe,loader:qQe},Mge=jQe;var zge="info",XQe=a(e=>/^\s*info/.test(e),"detector"),QQe=a(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(Wge(),Gge));return{id:zge,diagram:e}},"loader"),qge={id:zge,detector:XQe,loader:QQe};var uZe=a(e=>/^\s*pie/.test(e),"detector"),hZe=a(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(Jge(),Zge));return{id:"pie",diagram:e}},"loader"),eye={id:"pie",detector:uZe,loader:hZe};var fye="quadrantChart",RZe=a(e=>/^\s*quadrantChart/.test(e),"detector"),LZe=a(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(dye(),hye));return{id:fye,diagram:e}},"loader"),DZe={id:fye,detector:RZe,loader:LZe},pye=DZe;var Gye="xychart",YZe=a(e=>/^\s*xychart(-beta)?/.test(e),"detector"),KZe=a(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(Vye(),Fye));return{id:Gye,diagram:e}},"loader"),XZe={id:Gye,detector:YZe,loader:KZe},Wye=XZe;var Qye="requirement",tJe=a(e=>/^\s*requirement(Diagram)?/.test(e),"detector"),rJe=a(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(Xye(),Kye));return{id:Qye,diagram:e}},"loader"),iJe={id:Qye,detector:tJe,loader:rJe},Zye=iJe;var g0e="sequence",JJe=a(e=>/^\s*sequenceDiagram/.test(e),"detector"),eet=a(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(m0e(),p0e));return{id:g0e,diagram:e}},"loader"),tet={id:g0e,detector:JJe,loader:eet},y0e=tet;var v0e="class",oet=a((e,t)=>t?.class?.defaultRenderer==="dagre-wrapper"?!1:/^\s*classDiagram/.test(e),"detector"),cet=a(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(C0e(),k0e));return{id:v0e,diagram:e}},"loader"),uet={id:v0e,detector:oet,loader:cet},S0e=uet;var E0e="classDiagram",det=a((e,t)=>/^\s*classDiagram/.test(e)&&t?.class?.defaultRenderer==="dagre-wrapper"?!0:/^\s*classDiagram-v2/.test(e),"detector"),fet=a(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(w0e(),_0e));return{id:E0e,diagram:e}},"loader"),pet={id:E0e,detector:det,loader:fet},A0e=pet;var s1e="state",Get=a((e,t)=>t?.state?.defaultRenderer==="dagre-wrapper"?!1:/^\s*stateDiagram/.test(e),"detector"),Wet=a(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(a1e(),n1e));return{id:s1e,diagram:e}},"loader"),zet={id:s1e,detector:Get,loader:Wet},o1e=zet;var u1e="stateDiagram",jet=a((e,t)=>!!(/^\s*stateDiagram-v2/.test(e)||/^\s*stateDiagram/.test(e)&&t?.state?.defaultRenderer==="dagre-wrapper"),"detector"),Uet=a(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(c1e(),l1e));return{id:u1e,diagram:e}},"loader"),Het={id:u1e,detector:jet,loader:Uet},h1e=Het;var w1e="journey",ptt=a(e=>/^\s*journey/.test(e),"detector"),mtt=a(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(_1e(),S1e));return{id:w1e,diagram:e}},"loader"),gtt={id:w1e,detector:ptt,loader:mtt},E1e=gtt;nt();ga();Xr();var ytt=a((e,t,r)=>{W.debug(`rendering svg for syntax error
`);let i=Yr(t),n=i.append("g");i.attr("viewBox","0 0 2412 512"),fr(i,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"),nB={draw:ytt},A1e=nB;var xtt={db:{},renderer:nB,parser:{parse:a(()=>{},"parse")}},R1e=xtt;var uxe="timeline",ztt=a(e=>/^\s*timeline/.test(e),"detector"),qtt=a(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(cxe(),lxe));return{id:uxe,diagram:e}},"loader"),jtt={id:uxe,detector:ztt,loader:qtt},hxe=jtt;var vxe="kanban",ort=a(e=>/^\s*kanban/.test(e),"detector"),lrt=a(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(Cxe(),kxe));return{id:vxe,diagram:e}},"loader"),crt={id:vxe,detector:ort,loader:lrt},Sxe=crt;var abe="sankey",Nrt=a(e=>/^\s*sankey(-beta)?/.test(e),"detector"),Mrt=a(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(nbe(),ibe));return{id:abe,diagram:e}},"loader"),Ort={id:abe,detector:Nrt,loader:Mrt},sbe=Ort;var pbe="packet",qrt=a(e=>/^\s*packet(-beta)?/.test(e),"detector"),jrt=a(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(fbe(),dbe));return{id:pbe,diagram:e}},"loader"),mbe={id:pbe,detector:qrt,loader:jrt};var wbe="radar",fit=a(e=>/^\s*radar-beta/.test(e),"detector"),pit=a(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(_be(),Sbe));return{id:wbe,diagram:e}},"loader"),Ebe={id:wbe,detector:fit,loader:pit};var L2e="block",$nt=a(e=>/^\s*block(-beta)?/.test(e),"detector"),Fnt=a(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(R2e(),A2e));return{id:L2e,diagram:e}},"loader"),Vnt={id:L2e,detector:$nt,loader:Fnt},D2e=Vnt;var G2e="treeView",rat=a(e=>/^\s*treeView-beta/.test(e),"detector"),iat=a(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(V2e(),F2e));return{id:G2e,diagram:e}},"loader"),nat={id:G2e,detector:rat,loader:iat},W2e=nat;var tTe="eventmodeling",Wat=a(e=>/^\s*eventmodeling/.test(e),"detector"),zat=a(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(eTe(),J2e));return{id:tTe,diagram:e}},"loader"),qat={id:tTe,detector:Wat,loader:zat},rTe=qat;var bTe="ishikawa",ist=a(e=>/^\s*ishikawa(-beta)?\b/i.test(e),"detector"),nst=a(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(xTe(),yTe));return{id:bTe,diagram:e}},"loader"),TTe={id:bTe,detector:ist,loader:nst};var XTe="venn",Gst=a(e=>/^\s*venn-beta/.test(e),"detector"),Wst=a(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(KTe(),YTe));return{id:XTe,diagram:e}},"loader"),zst={id:XTe,detector:Gst,loader:Wst},QTe=zst;Ju();bt();var oke="treemap",Zst=a(e=>/^\s*treemap/.test(e),"detector"),Jst=a(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(ske(),ake));return{id:oke,diagram:e}},"loader"),lke={id:oke,detector:Zst,loader:Jst};var Tke="wardley-beta",Sot=a(e=>/^\s*wardley-beta/i.test(e),"detector"),_ot=a(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(bke(),xke));return{id:Tke,diagram:e}},"loader"),wot={id:Tke,detector:Sot,loader:_ot},kke=wot;var Cke=!1,ng=a(()=>{Cke||(Cke=!0,eh("error",R1e,e=>e.toLowerCase().trim()==="error"),eh("---",{db:{clear:a(()=>{},"clear")},styles:{},renderer:{draw:a(()=>{},"draw")},parser:{parse:a(()=>{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:a(()=>null,"init")},e=>e.toLowerCase().trimStart().startsWith("---")),Jx(Oz,Sxe,A0e,S0e,lre,Mge,qge,eye,Zye,y0e,Zte,Xte,hxe,tge,h1e,o1e,E1e,pye,sbe,mbe,Wye,D2e,rTe,W2e,Ebe,TTe,lke,QTe,kke))},"addDiagrams");nt();Ju();bt();var vke=a(async()=>{W.debug("Loading registered diagrams");let t=(await Promise.allSettled(Object.entries(ll).map(async([r,{detector:i,loader:n}])=>{if(n)try{Ig(r)}catch{try{let{diagram:s,id:o}=await n();eh(o,s,i)}catch(s){throw W.error(`Failed to load external diagram with key ${r}. Removing from detectors.`),delete ll[r],s}}}))).filter(r=>r.status==="rejected");if(t.length>0){W.error(`Failed to load ${t.length} external diagrams`);for(let r of t)W.error(r);throw new Error(`Failed to load ${t.length} external diagrams`)}},"loadRegisteredDiagrams");nt();sr();var ag="comm",hw="rule",dw="decl";var Ske="@media",_ke="@import";var wke="@supports";var Eke="@namespace",Lx="@keyframes";var fw="@layer",Ake="@scope";var v8=Math.abs,Dx=String.fromCharCode;function pw(e){return e.trim()}a(pw,"trim");function sg(e,t,r){return e.replace(t,r)}a(sg,"replace");function Rke(e,t,r){return e.indexOf(t,r)}a(Rke,"indexof");function cc(e,t){return e.charCodeAt(t)|0}a(cc,"charat");function uc(e,t,r){return e.slice(t,r)}a(uc,"substr");function ba(e){return e.length}a(ba,"strlen");function mw(e){return e.length}a(mw,"sizeof");function og(e,t){return t.push(e),e}a(og,"append");var gw=1,lg=1,Lke=0,bs=0,Mi=0,ug="";function yw(e,t,r,i,n,s,o,l){return{value:e,root:t,parent:r,type:i,props:n,children:s,line:gw,column:lg,length:o,return:"",siblings:l}}a(yw,"node");function Dke(){return Mi}a(Dke,"char");function Ike(){return Mi=bs>0?cc(ug,--bs):0,lg--,Mi===10&&(lg=1,gw--),Mi}a(Ike,"prev");function Ts(){return Mi=bs<Lke?cc(ug,bs++):0,lg++,Mi===10&&(lg=1,gw++),Mi}a(Ts,"next");function hc(){return cc(ug,bs)}a(hc,"peek");function Ix(){return bs}a(Ix,"caret");function xw(e,t){return uc(ug,e,t)}a(xw,"slice");function cg(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}a(cg,"token");function Nke(e){return gw=lg=1,Lke=ba(ug=e),bs=0,[]}a(Nke,"alloc");function Mke(e){return ug="",e}a(Mke,"dealloc");function bw(e){return pw(xw(bs-1,S8(e===91?e+2:e===40?e+1:e)))}a(bw,"delimit");function Oke(e){for(;(Mi=hc())&&Mi<33;)Ts();return cg(e)>2||cg(Mi)>3?"":" "}a(Oke,"whitespace");function Pke(e,t){for(;--t&&Ts()&&!(Mi<48||Mi>102||Mi>57&&Mi<65||Mi>70&&Mi<97););return xw(e,Ix()+(t<6&&hc()==32&&Ts()==32))}a(Pke,"escaping");function S8(e){for(;Ts();)switch(Mi){case e:return bs;case 34:case 39:e!==34&&e!==39&&S8(Mi);break;case 40:e===41&&S8(e);break;case 92:Ts();break}return bs}a(S8,"delimiter");function Bke(e,t){for(;Ts()&&e+Mi!==57;)if(e+Mi===84&&hc()===47)break;return"/*"+xw(t,bs-1)+"*"+Dx(e===47?e:Ts())}a(Bke,"commenter");function $ke(e){for(;!cg(hc());)Ts();return xw(e,bs)}a($ke,"identifier");function Gke(e){return Mke(Tw("",null,null,null,[""],e=Nke(e),0,[0],e))}a(Gke,"compile");function Tw(e,t,r,i,n,s,o,l,u){for(var h=0,d=0,f=o,p=0,m=0,g=0,x=1,b=1,T=1,k=0,C="",S=n,w=s,_=i,L=C;b;)switch(g=k,k=Ts()){case 40:if(g!=108&&cc(L,f-1)==58){Rke(L+=sg(bw(k),"&","&\f"),"&\f",v8(h?l[h-1]:0))!=-1&&(T=-1);break}case 34:case 39:case 91:L+=bw(k);break;case 9:case 10:case 13:case 32:L+=Oke(g);break;case 92:L+=Pke(Ix()-1,7);continue;case 47:switch(hc()){case 42:case 47:og(Aot(Bke(Ts(),Ix()),t,r,u),u),(cg(g||1)==5||cg(hc()||1)==5)&&ba(L)&&uc(L,-1,void 0)!==" "&&(L+=" ");break;default:L+="/"}break;case 123*x:l[h++]=ba(L)*T;case 125*x:case 59:case 0:switch(k){case 0:case 125:b=0;case 59+d:T==-1&&(L=sg(L,/\f/g,"")),m>0&&(ba(L)-f||x===0&&g===47)&&og(m>32?Vke(L+";",i,r,f-1,u):Vke(sg(L," ","")+";",i,r,f-2,u),u);break;case 59:L+=";";default:if(og(_=Fke(L,t,r,h,d,n,l,C,S=[],w=[],f,s),s),k===123)if(d===0)Tw(L,t,_,_,S,s,f,l,w);else{switch(p){case 99:if(cc(L,3)===110)break;case 108:if(cc(L,2)===97)break;default:d=0;case 100:case 109:case 115:}d?Tw(e,_,_,i&&og(Fke(e,_,_,0,0,n,l,C,n,S=[],f,w),w),n,w,f,l,i?S:w):Tw(L,_,_,_,[""],w,0,l,w)}}h=d=m=0,x=T=1,C=L="",f=o;break;case 58:f=1+ba(L),m=g;default:if(x<1){if(k==123)--x;else if(k==125&&x++==0&&Ike()==125)continue}switch(L+=Dx(k),k*x){case 38:T=d>0?1:(L+="\f",-1);break;case 44:l[h++]=(ba(L)-1)*T,T=1;break;case 64:hc()===45&&(L+=bw(Ts())),p=hc(),d=f=ba(C=L+=$ke(Ix())),k++;break;case 45:g===45&&ba(L)==2&&(x=0)}}return s}a(Tw,"parse");function Fke(e,t,r,i,n,s,o,l,u,h,d,f){for(var p=n-1,m=n===0?s:[""],g=mw(m),x=0,b=0,T=0;x<i;++x)for(var k=0,C=uc(e,p+1,p=v8(b=o[x])),S=e;k<g;++k)(S=pw(b>0?m[k]+" "+C:sg(C,/&\f/g,m[k])))&&(u[T++]=S);return yw(e,t,r,n===0?hw:l,u,h,d,f)}a(Fke,"ruleset");function Aot(e,t,r,i){return yw(e,t,r,ag,Dx(Dke()),uc(e,2,-2),0,i)}a(Aot,"comment");function Vke(e,t,r,i,n){return yw(e,t,r,dw,uc(e,0,i),uc(e,i+1,-1),i,n)}a(Vke,"declaration");function kw(e,t){for(var r="",i=0;i<e.length;i++)r+=t(e[i],i,e,t)||"";return r}a(kw,"serialize");function Wke(e,t,r,i){switch(e.type){case fw:if(e.children.length)break;case _ke:case Eke:case dw:return e.return=e.return||e.value;case ag:return"";case Lx:return e.return=e.value+"{"+kw(e.children,i)+"}";case hw:if(!ba(e.value=e.props.join(",")))return""}return ba(r=kw(e.children,i))?e.return=e.value+"{"+r+"}":""}a(Wke,"stringify");function zke(e){var t=mw(e);return function(r,i,n,s){for(var o="",l=0;l<t;l++)o+=e[l](r,i,n,s)||"";return o}}a(zke,"middleware");wg();q2();var Rot="graphics-document document";function qke(e,t){e.attr("role",Rot),t!==""&&e.attr("aria-roledescription",t)}a(qke,"setA11yDiagramInfo");function jke(e,t,r,i){if(e.insert!==void 0){if(r){let n=`chart-desc-${i}`;e.attr("aria-describedby",n),e.insert("desc",":first-child").attr("id",n).text(r)}if(t){let n=`chart-title-${i}`;e.attr("aria-labelledby",n),e.insert("title",":first-child").attr("id",n).text(t)}}}a(jke,"addSVGa11yTitleDescription");bf();Xt();Xt();Xt();bt();Ju();xE();Et();var hg=class e{constructor(t,r,i,n,s){this.type=t;this.text=r;this.db=i;this.parser=n;this.renderer=s}static{a(this,"Diagram")}static async fromText(t,r={}){let i=ct(),n=Ef(t,i);t=Sz(t)+`
`;try{Ig(n)}catch{let h=S$(n);if(!h)throw new wf(`Diagram ${n} not found.`);let{id:d,diagram:f}=await h();eh(d,f)}let{db:s,parser:o,renderer:l,init:u}=Ig(n);return o.parser&&(o.parser.yy=s),s.clear?.(),u?.(i),r.title&&s.setDiagramTitle?.(r.title),await o.parse(t),new e(n,t,s,o,l)}async render(t,r){await this.renderer.draw(this.text,t,r,this)}getParser(){return this.parser}getType(){return this.type}};dr();var Uke=[];var Hke=a(()=>{Uke.forEach(e=>{e()}),Uke=[]},"attachFunctions");nt();var Yke=a(e=>e.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart(),"cleanupComments");Zx();Hy();function Kke(e){let t=e.match(Qx);if(!t)return{text:e,metadata:{}};let r=Pc(t[1],{schema:Oc})??{};r=typeof r=="object"&&!Array.isArray(r)?r:{};let i={};return r.displayMode&&(i.displayMode=r.displayMode.toString()),r.title&&(i.title=r.title.toString()),r.config&&(i.config=r.config),{text:e.slice(t[0].length),metadata:i}}a(Kke,"extractFrontMatter");Et();var Lot=a(e=>e.replace(/\r\n?/g,`
`).replace(/<(\w+)([^>]*)>/g,(t,r,i)=>"<"+r+i.replace(/="([^"]*)"/g,"='$1'")+">"),"cleanupText"),Dot=a(e=>{let{text:t,metadata:r}=Kke(e),{displayMode:i,title:n,config:s={}}=r;return i&&(s.gantt||(s.gantt={}),s.gantt.displayMode=i),{title:n,config:s,text:t}},"processFrontmatter"),Iot=a(e=>{let t=St.detectInit(e)??{},r=St.detectDirective(e,"wrap");return Array.isArray(r)?t.wrap=r.some(({type:i})=>i==="wrap"):r?.type==="wrap"&&(t.wrap=!0),{text:Cz(e),directive:t}},"processDirectives");function _8(e){let t=Lot(e),r=Dot(t),i=Iot(r.text),n=xr(r.config,i.directive);return e=Yke(i.text),{code:e,title:r.title,config:n}}a(_8,"preprocessDiagram");CE();qx();Et();function Xke(e){let t=new TextEncoder().encode(e),r=Array.from(t,i=>String.fromCodePoint(i)).join("");return btoa(r)}a(Xke,"toBase64");jx();var Not=5e4,Mot="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa",Oot="sandbox",Pot="loose",Bot="http://www.w3.org/2000/svg",$ot="http://www.w3.org/1999/xlink",Fot="http://www.w3.org/1999/xhtml",Vot="100%",Got="100%",Wot="border:0;margin:0;",zot="margin:0",qot="allow-top-navigation-by-user-activation allow-popups",jot='The "iframe" tag is not supported by your browser.',Uot=["foreignobject"],Hot=["dominant-baseline"];function eCe(e){let t=_8(e);return bg(),t$(t.config??{}),t}a(eCe,"processAndSetConfigs");async function Yot(e,t){ng();try{let{code:r,config:i}=eCe(e);return{diagramType:(await tCe(r)).type,config:i}}catch(r){if(t?.suppressErrors)return!1;throw r}}a(Yot,"parse");var Qke=a((e,t,r=[])=>{let i=iE(`{ ${r.join(" !important; ")} !important; }`);return`.${e} ${t} ${i}`},"cssImportantStyles"),Kot=a((e,t=new Map)=>{let r=new CSSStyleSheet;if(e.fontFamily!==void 0&&r.insertRule(`:root { --mermaid-font-family: ${e.fontFamily}}`,r.cssRules.length),e.altFontFamily!==void 0&&r.insertRule(`:root { --mermaid-alt-font-family: ${e.altFontFamily}}`,r.cssRules.length),t instanceof Map){let l=ar(e)?["> *","span"]:["rect","polygon","ellipse","circle","path"];t.forEach(u=>{z2(u.styles)||l.forEach(h=>{r.insertRule(Qke(u.id,h,u.styles),r.cssRules.length)}),z2(u.textStyles)||r.insertRule(Qke(u.id,"tspan",(u?.textStyles||[]).map(h=>h.replace("color","fill"))),r.cssRules.length)})}let i="";if(e.themeCSS!==void 0)if(typeof r.replaceSync=="function"){let n=new CSSStyleSheet;n.replaceSync(e.themeCSS),i=kE(n)+`
`}else i+=`${e.themeCSS}
`;return i+kE(r)},"createCssStyles"),Xot=a((e,t)=>kw(Gke(`${e}{${t}}`),zke([a(function(i,n,s,o){if(i.type==="rule"&&Array.isArray(i.props)){if(i.parent&&i.parent.type===Lx)return;i.props=i.props.map(l=>l.startsWith(e)?l:`${e} ${l}`)}else i.type.startsWith("@")&&([...[Ske,wke,fw,Ake,"@container","@starting-style"],Lx].includes(i.type)||(W.warn(`Removing unsupported at-rule ${i.type} from CSS`),i.type=ag))},"addNamespace"),Wke])),"compileCSS"),Qot=a((e,t,r,i)=>{let n=Kot(e,r),s=E$(t,n,{...e.themeVariables,theme:e.theme,look:e.look},i);return Xot(i,s)},"createUserStyles"),Zot=a((e="",t,r)=>{let i=e;return!r&&!t&&(i=i.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,'marker-end="url(#')),i=Mn(i),i=i.replace(/<br>/g,"<br/>"),i},"cleanUpSvgCode"),Jot=a((e="",t)=>{let r=t?.viewBox?.baseVal?.height?t.viewBox.baseVal.height+"px":Got,i=Xke(`<body style="${zot}">${e}</body>`);return`<iframe style="width:${Vot};height:${r};${Wot}" src="data:text/html;charset=UTF-8;base64,${i}" sandbox="${qot}">
${jot}
</iframe>`},"putIntoIFrame"),Zke=a((e,t,r,i,n)=>{let s=e.append("div");s.attr("id",r),i&&s.attr("style",i);let o=s.append("svg").attr("id",t).attr("width","100%").attr("xmlns",Bot);return n&&o.attr("xmlns:xlink",n),o.append("g"),e},"appendDivSvgG");function Jke(e,t){return e.append("iframe").attr("id",t).attr("style","width: 100%; height: 100%;").attr("sandbox","")}a(Jke,"sandboxedIframe");var elt=a((e,t,r,i)=>{e.getElementById(t)?.remove(),e.getElementById(r)?.remove(),e.getElementById(i)?.remove()},"removeExistingElements"),tlt=a(async function(e,t,r){ng();let i=eCe(t);t=i.code;let n=ct();W.debug(n),t.length>(n?.maxTextSize??Not)&&(t=Mot);let s=`#${e}`,o="i"+e,l="#"+o,u="d"+e,h="#"+u,d=a(()=>{let A=Se(p?l:h).node();A&&"remove"in A&&A.remove()},"removeTempElements"),f=Se(document.body),p=n.securityLevel===Oot,m=n.securityLevel===Pot,g=n.fontFamily;if(r!==void 0){if(r&&(r.innerHTML=""),p){let F=Jke(Se(r),o);f=Se(F.nodes()[0].contentDocument.body),f.node().style.margin="0"}else f=Se(r);Zke(f,e,u,`font-family: ${g}`,$ot)}else{if(elt(document,e,u,o),p){let F=Jke(Se(document.body),o);f=Se(F.nodes()[0].contentDocument.body),f.node().style.margin="0"}else f=Se("body");Zke(f,e,u)}let x,b;try{x=await hg.fromText(t,{title:i.title})}catch(F){if(n.suppressErrorRendering)throw d(),F;x=await hg.fromText("error"),b=F}let T=f.select(h).node(),k=x.type,C=T.firstChild,S=C.firstChild,w=x.renderer.getClasses?.(t,x),_=Qot(n,k,w,s),L=document.createElement("style");L.innerHTML=_,C.insertBefore(L,S);try{await x.renderer.draw(t,e,"11.15.0",x)}catch(F){throw n.suppressErrorRendering?d():A1e.draw(t,e,"11.15.0"),F}let I=f.select(`${h} svg`),B=x.db.getAccTitle?.(),G=x.db.getAccDescription?.();ilt(k,I,B,G),f.select(`[id="${e}"]`).selectAll("foreignobject > *").attr("xmlns",Fot);let P=f.select(h).node().innerHTML;if(W.debug("config.arrowMarkerAbsolute",n.arrowMarkerAbsolute),P=Zot(P,p,yn(n.arrowMarkerAbsolute)),p){let F=f.select(h+" svg").node();P=Jot(P,F)}else m||(P=Ya.sanitize(P,{ADD_TAGS:Uot,ADD_ATTR:Hot,HTML_INTEGRATION_POINTS:{foreignobject:!0}}));if(Hke(),b)throw b;return d(),{diagramType:k,svg:P,bindFunctions:x.db.bindFunctions}},"render");function rlt(e={}){let t=ri({},e);t?.fontFamily&&!t.themeVariables?.fontFamily&&(t.themeVariables||(t.themeVariables={}),t.themeVariables.fontFamily=t.fontFamily),Z7(t),t?.theme&&t.theme in Ua?t.themeVariables=Ua[t.theme].getThemeVariables(t.themeVariables):t&&(t.themeVariables=Ua.default.getThemeVariables(t.themeVariables));let r=typeof t=="object"?nE(t):aE();fg(r.logLevel),ng()}a(rlt,"initialize");var tCe=a((e,t={})=>{let{code:r}=_8(e);return hg.fromText(r,t)},"getDiagramFromText");function ilt(e,t,r,i){qke(t,e),jke(t,r,i,t.attr("id"))}a(ilt,"addA11yInfo");var Vu=Object.freeze({render:tlt,parse:Yot,getDiagramFromText:tCe,initialize:rlt,getConfig:ct,setConfig:Hx,getSiteConfig:aE,updateSiteConfig:J7,reset:a(()=>{bg()},"reset"),globalReset:a(()=>{bg(pc)},"globalReset"),defaultConfig:pc});fg(ct().logLevel);bg(ct());Yh();Et();var nlt=a((e,t,r)=>{W.warn(e),x5(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"),rCe=a(async function(e={querySelector:".mermaid"}){try{await alt(e)}catch(t){if(x5(t)&&W.error(t.str),dc.parseError&&dc.parseError(t),!e.suppressErrors)throw W.error("Use the suppressErrors option to suppress these errors"),t}},"run"),alt=a(async function({postRenderCallback:e,querySelector:t,nodes:r}={querySelector:".mermaid"}){let i=Vu.getConfig();W.debug(`${e?"":"No "}Callback function found`);let n;if(r)n=r;else if(t)n=document.querySelectorAll(t);else throw new Error("Nodes and querySelector are both undefined");W.debug(`Found ${n.length} diagrams`),i?.startOnLoad!==void 0&&(W.debug("Start On Load: "+i?.startOnLoad),Vu.updateSiteConfig({startOnLoad:i?.startOnLoad}));let s=new St.InitIDGenerator(i.deterministicIds,i.deterministicIDSeed),o,l=[];for(let u of Array.from(n)){W.info("Rendering diagram: "+u.id);if(u.getAttribute("data-processed"))continue;u.setAttribute("data-processed","true");let h=`mermaid-${s.next()}`;o=u.innerHTML,o=Xx(St.entityDecode(o)).trim().replace(/<br\s*\/?>/gi,"<br/>");let d=St.detectInit(o);d&&W.debug("Detected early reinit: ",d);try{let{svg:f,bindFunctions:p}=await sCe(h,o,u);u.innerHTML=f,e&&await e(h),p&&p(u)}catch(f){nlt(f,l,dc.parseError)}}if(l.length>0)throw l[0]},"runThrowsErrors"),iCe=a(function(e){Vu.initialize(e)},"initialize"),slt=a(async function(e,t,r){W.warn("mermaid.init is deprecated. Please use run instead."),e&&iCe(e);let i={postRenderCallback:r,querySelector:".mermaid"};typeof t=="string"?i.querySelector=t:t&&(t instanceof HTMLElement?i.nodes=[t]:i.nodes=t),await rCe(i)},"init"),olt=a(async(e,{lazyLoad:t=!0}={})=>{ng(),Jx(...e),t===!1&&await vke()},"registerExternalDiagrams"),nCe=a(function(){if(dc.startOnLoad){let{startOnLoad:e}=Vu.getConfig();e&&dc.run().catch(t=>W.error("Mermaid failed to initialize",t))}},"contentLoaded");if(typeof document<"u"){window.addEventListener("load",nCe,!1)}var llt=a(function(e){dc.parseError=e},"setParseErrorHandler"),Cw=[],w8=!1,aCe=a(async()=>{if(!w8){for(w8=!0;Cw.length>0;){let e=Cw.shift();if(e)try{await e()}catch(t){W.error("Error executing queue",t)}}w8=!1}},"executeQueue"),clt=a(async(e,t)=>new Promise((r,i)=>{let n=a(()=>new Promise((s,o)=>{Vu.parse(e,t).then(l=>{s(l),r(l)},l=>{W.error("Error parsing",l),dc.parseError?.(l),o(l),i(l)})}),"performCall");Cw.push(n),aCe().catch(i)}),"parse"),sCe=a((e,t,r)=>new Promise((i,n)=>{let s=a(()=>new Promise((o,l)=>{Vu.render(e,t,r).then(u=>{o(u),i(u)},u=>{W.error("Error parsing",u),dc.parseError?.(u),l(u),n(u)})}),"performCall");Cw.push(s),aCe().catch(n)}),"render"),ult=a(()=>Object.keys(ll).map(e=>({id:e})),"getRegisteredDiagramsMetadata"),dc={startOnLoad:!0,mermaidAPI:Vu,parse:clt,render:sCe,init:slt,run:rCe,registerExternalDiagrams:olt,registerLayoutLoaders:tD,initialize:iCe,parseError:void 0,contentLoaded:nCe,setParseErrorHandler:llt,detectType:Ef,registerIconPacks:T$,getRegisteredDiagramsMetadata:ult},hlt=dc;return gCe(dlt);})();
/*! Bundled license information:
lodash-es/lodash.js:
(**
* @license
* Lodash (Custom Build) <https://lodash.com/>
* Build: `lodash modularize exports="es" -o ./`
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
* Released under MIT license <https://lodash.com/license>
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
*)
*/
/*! Check if previously processed */
/*!
* Wait for document loaded before starting the execution
*/
/*! Bundled license information:
dompurify/dist/purify.es.mjs:
(*! @license DOMPurify 3.4.0 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.0/LICENSE *)
js-yaml/dist/js-yaml.mjs:
(*! js-yaml 4.1.1 https://github.com/nodeca/js-yaml @license MIT *)
lodash-es/lodash.js:
(**
* @license
* Lodash (Custom Build) <https://lodash.com/>
* Build: `lodash modularize exports="es" --repo lodash/lodash#4.18.1 -o ./`
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
* Released under MIT license <https://lodash.com/license>
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
*)
*/
globalThis["mermaid"] = globalThis.__esbuild_esm_mermaid_nm["mermaid"].default;