hugo-theme-relearn/static/js/mermaid.min.js

1642 lines
2.8 MiB
JavaScript
Raw Normal View History

(function(wA,v0){typeof exports=="object"&&typeof module<"u"?module.exports=v0():typeof define=="function"&&define.amd?define(v0):(wA=typeof globalThis<"u"?globalThis:wA||self,wA.mermaid=v0())})(this,function(){"use strict";function wA(i){for(var a=[],f=1;f<arguments.length;f++)a[f-1]=arguments[f];var p=Array.from(typeof i=="string"?[i]:i);p[p.length-1]=p[p.length-1].replace(/\r?\n([\t ]*)$/,"");var v=p.reduce(function(E,C){var A=C.match(/\n([\t ]+|(?!\s).)/g);return A?E.concat(A.map(function(N){var F,j;return(j=(F=N.match(/[\t ]/g))===null||F===void 0?void 0:F.length)!==null&&j!==void 0?j:0})):E},[]);if(v.length){var m=new RegExp(`
2023-05-24 18:25:13 +00:00
[ ]{`+Math.min.apply(Math,v)+"}","g");p=p.map(function(E){return E.replace(m,`
`)})}p[0]=p[0].replace(/^\r?\n/,"");var b=p[0];return a.forEach(function(E,C){var A=b.match(/(?:^|\n)( *)$/),N=A?A[1]:"",F=E;typeof E=="string"&&E.includes(`
`)&&(F=String(E).split(`
`).map(function(j,R){return R===0?j:""+N+j}).join(`
`)),b+=F+p[C+1]}),b}var v0=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function R9(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var ALt={exports:{}};(function(i,a){(function(f,p){i.exports=p()})(v0,function(){var f=1e3,p=6e4,v=36e5,m="millisecond",b="second",E="minute",C="hour",A="day",N="week",F="month",j="quarter",R="year",H="date",Y="Invalid Date",rt=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,J=/\[([^\]]+)]|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,it={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:function(Ct){var nt=["th","st","nd","rd"],Nt=Ct%100;return"["+Ct+(nt[(Nt-20)%10]||nt[Nt]||nt[0])+"]"}},ht=function(Ct,nt,Nt){var dt=String(Ct);return!dt||dt.length>=nt?Ct:""+Array(nt+1-dt.length).join(Nt)+Ct},Tt={s:ht,z:function(Ct){var nt=-Ct.utcOffset(),Nt=Math.abs(nt),dt=Math.floor(Nt/60),Ft=Nt%60;return(nt<=0?"+":"-")+ht(dt,2,"0")+":"+ht(Ft,2,"0")},m:function Ct(nt,Nt){if(nt.date()<Nt.date())return-Ct(Nt,nt);var dt=12*(Nt.year()-nt.year())+(Nt.month()-nt.month()),Ft=nt.clone().add(dt,F),X=Nt-Ft<0,Bt=nt.clone().add(dt+(X?-1:1),F);return+(-(dt+(Nt-Ft)/(X?Ft-Bt:Bt-Ft))||0)},a:function(Ct){return Ct<0?Math.ceil(Ct)||0:Math.floor(Ct)},p:function(Ct){return{M:F,y:R,w:N,d:A,D:H,h:C,m:E,s:b,ms:m,Q:j}[Ct]||String(Ct||"").toLowerCase().replace(/s$/,"")},u:function(Ct){return Ct===void 0}},yt="en",vt={};vt[yt]=it;var ut=function(Ct){return Ct instanceof gt},xt=function Ct(nt,Nt,dt){var Ft;if(!nt)return yt;if(typeof nt=="string"){var X=nt.toLowerCase();vt[X]&&(Ft=X),Nt&&(vt[X]=Nt,Ft=X);var Bt=nt.split("-");if(!Ft&&Bt.length>1)return Ct(Bt[0])}else{var Rt=nt.name;vt[Rt]=nt,Ft=Rt}return!dt&&Ft&&(yt=Ft),Ft||!dt&&yt},st=function(Ct,nt){if(ut(Ct))return Ct.clone();var Nt=typeof nt=="object"?nt:{};return Nt.date=Ct,Nt.args=arguments,new gt(Nt)},Et=Tt;Et.l=xt,Et.i=ut,Et.w=function(Ct,nt){return st(Ct,{locale:nt.$L,utc:nt.$u,x:nt.$x,$offset:nt.$offset})};var gt=function(){function Ct(Nt){this.$L=xt(Nt.locale,null,!0),this.parse(Nt)}var nt=Ct.prototype;return nt.parse=function(Nt){this.$d=function(dt){var Ft=dt.date,X=dt.utc;if(Ft===null)return new Date(NaN);if(Et.u(Ft))return new Date;if(Ft instanceof Date)return new Date(Ft);if(typeof Ft=="string"&&!/Z$/i.test(Ft)){var Bt=Ft.match(rt);if(Bt){var Rt=Bt[2]-1||0,mt=(Bt[7]||"0").substring(0,3);return X?new Date(Date.UTC(Bt[1],Rt,Bt[3]||1,Bt[4]||0,Bt[5]||0,Bt[6]||0,mt)):new Date(Bt[1],Rt,Bt[3]||1,Bt[4]||0,Bt[5]||0,Bt[6]||0,mt)}}return new Date(Ft)}(Nt),this.$x=Nt.x||{},this.init()},nt.init=function(){var Nt=this.$d;this.$y=Nt.getFullYear(),this.$M=Nt.getMonth(),this.$D=Nt.getDate(),this.$W=Nt.getDay(),this.$H=Nt.getHours(),this.$m=Nt.getMinutes(),this.$s=Nt.getSeconds(),this.$ms=Nt.getMilliseconds()},nt.$utils=function(){return Et},nt.isValid=function(){return this.$d.toString()!==Y},nt.isSame=function(Nt,dt){var Ft=st(Nt);return this.startOf(dt)<=Ft&&Ft<=this.endOf(dt)},nt.isAfter=function(Nt,dt){return st(Nt)<this.startOf(dt)},nt.isBefore=function(Nt,dt){return this.endOf(dt)<st(Nt)},nt.$g=function(Nt,dt,Ft){return Et.u(Nt)?this[dt]:this.set(Ft,Nt)},nt.unix=function(){return Math.floor(this.valueOf()/1e3)},nt.valueOf=function(){return this.$d.getTime()},nt.startOf=function(Nt,dt){var Ft=this,X=!!Et.u(dt)||dt,Bt=Et.p(Nt),Rt=function(Se,ee){var _e=Et.w(Ft.$u?Date.UTC(Ft.$y,ee,Se):new Date(Ft.$y,ee,Se),Ft);return X?_e:_e.endOf(A)},mt=function(Se,ee){return Et.w(Ft.toDate()[Se].apply(Ft.toDate("s"),(X?[0,0,0,0]:[23,59,59,999]).slice(ee)),Ft)},Ot=this.$W,Gt=this.$M,Ve=this.$D,Cn="set"+(this.$u?"UTC":"");switch(Bt){case R:return X?Rt(1,0):Rt(31,11);case F:return X?Rt(1,Gt):Rt(0,Gt+1);case N:var xe=this.$locale().weekStart||0,Kn=(Ot<xe?Ot+7:Ot)-xe;return Rt(X?Ve-Kn:Ve+(6-Kn),Gt);case A:case H:return mt(Cn+"Hours",0);case C:return mt(Cn+"Minutes",1);case E:retu
`+yo),_e&&(yo=Xw(yo,gt," "),yo=Xw(yo,pt," "),yo=Xw(yo,Ct," ")),ht&&se?ht.createHTML(yo):yo},a.setConfig=function(Gi){zn(Gi),ce=!0},a.clearConfig=function(){Li=null,ce=!1},a.isValidAttribute=function(Gi,Ue,Cr){Li||zn({});const ci=Fn(Gi),Qa=Fn(Ue);return bp(ci,Qa,Cr)},a.addHook=function(Gi,Ue){typeof Ue=="function"&&(Et[Gi]=Et[Gi]||[],zP(Et[Gi],Ue))},a.removeHook=function(Gi){if(Et[Gi])return FDt(Et[Gi])},a.removeHooks=function(Gi){Et[Gi]&&(Et[Gi]=[])},a.removeAllHooks=function(){Et={}},a}var rW=VDt();const iW=/<br\s*\/?>/gi,yEe=i=>i?WDt(i).replace(/\\n/g,"#br#").split("#br#"):[""],GDt=i=>rW.sanitize(i),UDt=(i,a)=>{var f;if(((f=a.flowchart)==null?void 0:f.htmlLabels)!==!1){const p=a.securityLevel;p==="antiscript"||p==="strict"?i=GDt(i):p!=="loose"&&(i=WDt(i),i=i.replace(/</g,"&lt;").replace(/>/g,"&gt;"),i=i.replace(/=/g,"&equals;"),i=TEe(i))}return i},cg=(i,a)=>i&&(a.dompurifyConfig?i=rW.sanitize(UDt(i,a),a.dompurifyConfig).toString():i=rW.sanitize(UDt(i,a),{FORBID_TAGS:["style"]}).toString(),i),xEe=(i,a)=>typeof i=="string"?cg(i,a):i.flat().map(f=>cg(f,a)),kEe=i=>iW.test(i),EEe=i=>i.split(iW),TEe=i=>i.replace(/#br#/g,"<br/>"),WDt=i=>i.replace(iW,"#br#"),_Ee=i=>{let a="";return i&&(a=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,a=a.replaceAll(/\(/g,"\\("),a=a.replaceAll(/\)/g,"\\)")),a},l1=i=>!(i===!1||["false","null","0"].includes(String(i).trim().toLowerCase())),CEe=function(...i){const a=i.filter(f=>!isNaN(f));return Math.max(...a)},SEe=function(...i){const a=i.filter(f=>!isNaN(f));return Math.min(...a)},HP=function(i){let a=i;if(i.split("~").length-1>=2){let f=a;do a=f,f=a.replace(/~([^\s,:;]+)~/,"<$1>");while(f!=a);return HP(f)}else return a},bi={getRows:yEe,sanitizeText:cg,sanitizeTextOrArray:xEe,hasBreaks:kEe,splitBreaks:EEe,lineBreakRegex:iW,removeScript:GDt,getUrl:_Ee,evaluate:l1,getMax:CEe,getMin:SEe},sW={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:i=>i>=255?255:i<0?0:i,g:i=>i>=255?255:i<0?0:i,b:i=>i>=255?255:i<0?0:i,h:i=>i%360,s:i=>i>=100?100:i<0?0:i,l:i=>i>=100?100:i<0?0:i,a:i=>i>=1?1:i<0?0:i},toLinear:i=>{const a=i/255;return i>.03928?Math.pow((a+.055)/1.055,2.4):a/12.92},hue2rgb:(i,a,f)=>(f<0&&(f+=1),f>1&&(f-=1),f<1/6?i+(a-i)*6*f:f<1/2?a:f<2/3?i+(a-i)*(2/3-f)*6:i),hsl2rgb:({h:i,s:a,l:f},p)=>{if(!a)return f*2.55;i/=360,a/=100,f/=100;const v=f<.5?f*(1+a):f+a-f*a,m=2*f-v;switch(p){case"r":return sW.hue2rgb(m,v,i+1/3)*255;case"g":return sW.hue2rgb(m,v,i)*255;case"b":return sW.hue2rgb(m,v,i-1/3)*255}},rgb2hsl:({r:i,g:a,b:f},p)=>{i/=255,a/=255,f/=255;const v=Math.max(i,a,f),m=Math.min(i,a,f),b=(v+m)/2;if(p==="l")return b*100;if(v===m)return 0;const E=v-m,C=b>.5?E/(2-v-m):E/(v+m);if(p==="s")return C*100;switch(v){case i:return((a-f)/E+(a<f?6:0))*60;case a:return((f-i)/E+2)*60;case f:return((i-a)/E+4)*60;default:return-1}}},Aa={channel:sW,lang:{clamp:(i,a,f)=>a>f?Math.min(a,Math.max(f,i)):Math.min(f,Math.max(a,i)),round:i=>Math.round(i*1e10)/1e10},unit:{dec2hex:i=>{const a=Math.round(i).toString(16);return a.length>1?a:`0${a}`}}},tk={};for(let i=0;i<=255;i++)tk[i]=Aa.unit.dec2hex(i);const x0={ALL:0,RGB:1,HSL:2};class AEe{constructor(){this.type=x0.ALL}get(){return this.type}set(a){if(this.type&&this.type!==a)throw new Error("Cannot change both RGB and HSL channels at the same time");this.type=a}reset(){this.type=x0.ALL}is(a){return this.type===a}}const LEe=AEe;class MEe{constructor(a,f){this.color=f,this.changed=!1,this.data=a,this.type=new LEe}set(a,f){return this.color=f,this.changed=!1,this.data=a,this.type.type=x0.ALL,this}_ensureHSL(){const a=this.data,{h:f,s:p,l:v}=a;f===void 0&&(a.h=Aa.channel.rgb2hsl(a,"h")),p===void 0&&(a.s=Aa.channel.rgb2hsl(a,"s")),v===void 0&&(a.l=Aa.channel.rgb2hsl(a,"l"))}_ensureRGB(){const a=this.data,{r:f,g:p,b:v}=a;f===void 0&&(a.r=Aa.channel.hsl2rgb(a,"r")),p===void 0&&(a.g=Aa.channel.hsl2rgb(a,"g")),v===void 0&&(a.b=Aa.channel.hsl2rgb(a,"b"))}get r(){const a=this.data,f=a.r;return!this.type.is(x0.HSL)&&f!==void 0?f:(this._ensureHSL(),Aa.channel.hsl2rgb(a,"r"))}get g(){const a=this.data,f
`+i.mark.snippet),p+" "+f):p}function GP(i,a){Error.call(this),this.name="YAMLException",this.reason=i,this.mark=a,this.message=rIt(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}GP.prototype=Object.create(Error.prototype),GP.prototype.constructor=GP,GP.prototype.toString=function(a){return this.name+": "+rIt(this,a)};var y5=GP;function V1t(i,a,f,p,v){var m="",b="",E=Math.floor(v/2)-1;return p-a>E&&(m=" ... ",a=p-E+m.length),f-p>E&&(b=" ...",f=p+E-b.length),{str:m+i.slice(a,f).replace(/\t/g,"→")+b,pos:p-a+m.length}}function G1t(i,a){return lg.repeat(" ",a-i.length)+i}function nTe(i,a){if(a=Object.create(a||null),!i.buffer)return null;a.maxLength||(a.maxLength=79),typeof a.indent!="number"&&(a.indent=1),typeof a.linesBefore!="number"&&(a.linesBefore=3),typeof a.linesAfter!="number"&&(a.linesAfter=2);for(var f=/\r?\n|\r|\0/g,p=[0],v=[],m,b=-1;m=f.exec(i.buffer);)v.push(m.index),p.push(m.index+m[0].length),i.position<=m.index&&b<0&&(b=p.length-2);b<0&&(b=p.length-1);var E="",C,A,N=Math.min(i.line+a.linesAfter,v.length).toString().length,F=a.maxLength-(a.indent+N+3);for(C=1;C<=a.linesBefore&&!(b-C<0);C++)A=V1t(i.buffer,p[b-C],v[b-C],i.position-(p[b]-p[b-C]),F),E=lg.repeat(" ",a.indent)+G1t((i.line-C+1).toString(),N)+" | "+A.str+`
`+E;for(A=V1t(i.buffer,p[b],v[b],i.position,F),E+=lg.repeat(" ",a.indent)+G1t((i.line+1).toString(),N)+" | "+A.str+`
`,E+=lg.repeat("-",a.indent+N+3+A.pos)+`^
`,C=1;C<=a.linesAfter&&!(b+C>=v.length);C++)A=V1t(i.buffer,p[b+C],v[b+C],i.position-(p[b]-p[b+C]),F),E+=lg.repeat(" ",a.indent)+G1t((i.line+C+1).toString(),N)+" | "+A.str+`
`;return E.replace(/\n$/,"")}var rTe=nTe,iTe=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],sTe=["scalar","sequence","mapping"];function aTe(i){var a={};return i!==null&&Object.keys(i).forEach(function(f){i[f].forEach(function(p){a[String(p)]=f})}),a}function oTe(i,a){if(a=a||{},Object.keys(a).forEach(function(f){if(iTe.indexOf(f)===-1)throw new y5('Unknown option "'+f+'" is met in definition of "'+i+'" YAML type.')}),this.options=a,this.tag=i,this.kind=a.kind||null,this.resolve=a.resolve||function(){return!0},this.construct=a.construct||function(f){return f},this.instanceOf=a.instanceOf||null,this.predicate=a.predicate||null,this.represent=a.represent||null,this.representName=a.representName||null,this.defaultStyle=a.defaultStyle||null,this.multi=a.multi||!1,this.styleAliases=aTe(a.styleAliases||null),sTe.indexOf(this.kind)===-1)throw new y5('Unknown kind "'+this.kind+'" is specified for "'+i+'" YAML type.')}var k0=oTe;function iIt(i,a){var f=[];return i[a].forEach(function(p){var v=f.length;f.forEach(function(m,b){m.tag===p.tag&&m.kind===p.kind&&m.multi===p.multi&&(v=b)}),f[v]=p}),f}function cTe(){var i={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},a,f;function p(v){v.multi?(i.multi[v.kind].push(v),i.multi.fallback.push(v)):i[v.kind][v.tag]=i.fallback[v.tag]=v}for(a=0,f=arguments.length;a<f;a+=1)arguments[a].forEach(p);return i}function U1t(i){return this.extend(i)}U1t.prototype.extend=function(a){var f=[],p=[];if(a instanceof k0)p.push(a);else if(Array.isArray(a))p=p.concat(a);else if(a&&(Array.isArray(a.implicit)||Array.isArray(a.explicit)))a.implicit&&(f=f.concat(a.implicit)),a.explicit&&(p=p.concat(a.explicit));else throw new y5("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");f.forEach(function(m){if(!(m instanceof k0))throw new y5("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(m.loadKind&&m.loadKind!=="scalar")throw new y5("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(m.multi)throw new y5("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),p.forEach(function(m){if(!(m instanceof k0))throw new y5("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var v=Object.create(U1t.prototype);return v.implicit=(this.implicit||[]).concat(f),v.explicit=(this.explicit||[]).concat(p),v.compiledImplicit=iIt(v,"implicit"),v.compiledExplicit=iIt(v,"explicit"),v.compiledTypeMap=cTe(v.compiledImplicit,v.compiledExplicit),v};var uTe=U1t,lTe=new k0("tag:yaml.org,2002:str",{kind:"scalar",construct:function(i){return i!==null?i:""}}),hTe=new k0("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(i){return i!==null?i:[]}}),fTe=new k0("tag:yaml.org,2002:map",{kind:"mapping",construct:function(i){return i!==null?i:{}}}),sIt=new uTe({explicit:[lTe,hTe,fTe]});function dTe(i){if(i===null)return!0;var a=i.length;return a===1&&i==="~"||a===4&&(i==="null"||i==="Null"||i==="NULL")}function gTe(){return null}function pTe(i){return i===null}var bTe=new k0("tag:yaml.org,2002:null",{kind:"scalar",resolve:dTe,construct:gTe,predicate:pTe,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function vTe(i){if(i===null)return!1;var a=i.length;return a===4&&(i==="true"||i==="True"||i==="TRUE")||a===5&&(i==="false"||i==="False"||i==="FALSE")}function wTe(i){return i==="true"||i==="True"||i==="TRUE"}function mTe(i){return Object.prototype.toString.call(i)==="[object Boolean]"}var yTe=new k0("tag:yaml.org,2002:bool",{kind:"scalar",resolve:vTe,construct:wTe,predicate:mTe,represent:{lowercase:function(i){return i?"true":"false"},uppercase:function(i){return i?"TRUE":"FALSE"},camelcase:function(i){return i?"True":"F
\r`;function HTe(i){if(i===null)return!1;var a,f,p=0,v=i.length,m=W1t;for(f=0;f<v;f++)if(a=m.indexOf(i.charAt(f)),!(a>64)){if(a<0)return!1;p+=6}return p%8===0}function VTe(i){var a,f,p=i.replace(/[\r\n=]/g,""),v=p.length,m=W1t,b=0,E=[];for(a=0;a<v;a++)a%4===0&&a&&(E.push(b>>16&255),E.push(b>>8&255),E.push(b&255)),b=b<<6|m.indexOf(p.charAt(a));return f=v%4*6,f===0?(E.push(b>>16&255),E.push(b>>8&255),E.push(b&255)):f===18?(E.push(b>>10&255),E.push(b>>2&255)):f===12&&E.push(b>>4&255),new Uint8Array(E)}function GTe(i){var a="",f=0,p,v,m=i.length,b=W1t;for(p=0;p<m;p++)p%3===0&&p&&(a+=b[f>>18&63],a+=b[f>>12&63],a+=b[f>>6&63],a+=b[f&63]),f=(f<<8)+i[p];return v=m%3,v===0?(a+=b[f>>18&63],a+=b[f>>12&63],a+=b[f>>6&63],a+=b[f&63]):v===2?(a+=b[f>>10&63],a+=b[f>>4&63],a+=b[f<<2&63],a+=b[64]):v===1&&(a+=b[f>>2&63],a+=b[f<<4&63],a+=b[64],a+=b[64]),a}function UTe(i){return Object.prototype.toString.call(i)==="[object Uint8Array]"}var WTe=new k0("tag:yaml.org,2002:binary",{kind:"scalar",resolve:HTe,construct:VTe,predicate:UTe,represent:GTe}),KTe=Object.prototype.hasOwnProperty,YTe=Object.prototype.toString;function XTe(i){if(i===null)return!0;var a=[],f,p,v,m,b,E=i;for(f=0,p=E.length;f<p;f+=1){if(v=E[f],b=!1,YTe.call(v)!=="[object Object]")return!1;for(m in v)if(KTe.call(v,m))if(!b)b=!0;else return!1;if(!b)return!1;if(a.indexOf(m)===-1)a.push(m);else return!1}return!0}function QTe(i){return i!==null?i:[]}var ZTe=new k0("tag:yaml.org,2002:omap",{kind:"sequence",resolve:XTe,construct:QTe}),JTe=Object.prototype.toString;function t_e(i){if(i===null)return!0;var a,f,p,v,m,b=i;for(m=new Array(b.length),a=0,f=b.length;a<f;a+=1){if(p=b[a],JTe.call(p)!=="[object Object]"||(v=Object.keys(p),v.length!==1))return!1;m[a]=[v[0],p[v[0]]]}return!0}function e_e(i){if(i===null)return[];var a,f,p,v,m,b=i;for(m=new Array(b.length),a=0,f=b.length;a<f;a+=1)p=b[a],v=Object.keys(p),m[a]=[v[0],p[v[0]]];return m}var n_e=new k0("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:t_e,construct:e_e}),r_e=Object.prototype.hasOwnProperty;function i_e(i){if(i===null)return!0;var a,f=i;for(a in f)if(r_e.call(f,a)&&f[a]!==null)return!1;return!0}function s_e(i){return i!==null?i:{}}var a_e=new k0("tag:yaml.org,2002:set",{kind:"mapping",resolve:i_e,construct:s_e}),o_e=FTe.extend({implicit:[$Te,qTe],explicit:[WTe,ZTe,n_e,a_e]}),nk=Object.prototype.hasOwnProperty,dW=1,cIt=2,uIt=3,gW=4,K1t=1,c_e=2,lIt=3,u_e=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,l_e=/[\x85\u2028\u2029]/,h_e=/[,\[\]\{\}]/,hIt=/^(?:!|!!|![a-z\-]+!)$/i,fIt=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function dIt(i){return Object.prototype.toString.call(i)}function l3(i){return i===10||i===13}function tE(i){return i===9||i===32}function lp(i){return i===9||i===32||i===10||i===13}function OA(i){return i===44||i===91||i===93||i===123||i===125}function f_e(i){var a;return 48<=i&&i<=57?i-48:(a=i|32,97<=a&&a<=102?a-97+10:-1)}function d_e(i){return i===120?2:i===117?4:i===85?8:0}function g_e(i){return 48<=i&&i<=57?i-48:-1}function gIt(i){return i===48?"\0":i===97?"\x07":i===98?"\b":i===116||i===9?" ":i===110?`
`:i===118?"\v":i===102?"\f":i===114?"\r":i===101?"\x1B":i===32?" ":i===34?'"':i===47?"/":i===92?"\\":i===78?"…":i===95?" ":i===76?"\u2028":i===80?"\u2029":""}function p_e(i){return i<=65535?String.fromCharCode(i):String.fromCharCode((i-65536>>10)+55296,(i-65536&1023)+56320)}for(var pIt=new Array(256),bIt=new Array(256),PA=0;PA<256;PA++)pIt[PA]=gIt(PA)?1:0,bIt[PA]=gIt(PA);function b_e(i,a){this.input=i,this.filename=a.filename||null,this.schema=a.schema||o_e,this.onWarning=a.onWarning||null,this.legacy=a.legacy||!1,this.json=a.json||!1,this.listener=a.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=i.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function vIt(i,a){var f={name:i.filename,buffer:i.input.slice(0,-1),position:i.position,line:i.line,column:i.position-i.lineStart};return f.snippet=rTe(f),new y5(a,f)}function $s(i,a){throw vIt(i,a)}function pW(i,a){i.onWarning&&i.onWarning.call(null,vIt(i,a))}var wIt={YAML:function(a,f,p){var v,m,b;a.version!==null&&$s(a,"duplication of %YAML directive"),p.length!==1&&$s(a,"YAML directive accepts exactly one argument"),v=/^([0-9]+)\.([0-9]+)$/.exec(p[0]),v===null&&$s(a,"ill-formed argument of the YAML directive"),m=parseInt(v[1],10),b=parseInt(v[2],10),m!==1&&$s(a,"unacceptable YAML version of the document"),a.version=p[0],a.checkLineBreaks=b<2,b!==1&&b!==2&&pW(a,"unsupported YAML version of the document")},TAG:function(a,f,p){var v,m;p.length!==2&&$s(a,"TAG directive accepts exactly two arguments"),v=p[0],m=p[1],hIt.test(v)||$s(a,"ill-formed tag handle (first argument) of the TAG directive"),nk.call(a.tagMap,v)&&$s(a,'there is a previously declared suffix for "'+v+'" tag handle'),fIt.test(m)||$s(a,"ill-formed tag prefix (second argument) of the TAG directive");try{m=decodeURIComponent(m)}catch{$s(a,"tag prefix is malformed: "+m)}a.tagMap[v]=m}};function rk(i,a,f,p){var v,m,b,E;if(a<f){if(E=i.input.slice(a,f),p)for(v=0,m=E.length;v<m;v+=1)b=E.charCodeAt(v),b===9||32<=b&&b<=1114111||$s(i,"expected valid JSON character");else u_e.test(E)&&$s(i,"the stream contains non-printable characters");i.result+=E}}function mIt(i,a,f,p){var v,m,b,E;for(lg.isObject(f)||$s(i,"cannot merge mappings; the provided source object is unacceptable"),v=Object.keys(f),b=0,E=v.length;b<E;b+=1)m=v[b],nk.call(a,m)||(a[m]=f[m],p[m]=!0)}function NA(i,a,f,p,v,m,b,E,C){var A,N;if(Array.isArray(v))for(v=Array.prototype.slice.call(v),A=0,N=v.length;A<N;A+=1)Array.isArray(v[A])&&$s(i,"nested arrays are not supported inside keys"),typeof v=="object"&&dIt(v[A])==="[object Object]"&&(v[A]="[object Object]");if(typeof v=="object"&&dIt(v)==="[object Object]"&&(v="[object Object]"),v=String(v),a===null&&(a={}),p==="tag:yaml.org,2002:merge")if(Array.isArray(m))for(A=0,N=m.length;A<N;A+=1)mIt(i,a,m[A],f);else mIt(i,a,m,f);else!i.json&&!nk.call(f,v)&&nk.call(a,v)&&(i.line=b||i.line,i.lineStart=E||i.lineStart,i.position=C||i.position,$s(i,"duplicated mapping key")),v==="__proto__"?Object.defineProperty(a,v,{configurable:!0,enumerable:!0,writable:!0,value:m}):a[v]=m,delete f[v];return a}function Y1t(i){var a;a=i.input.charCodeAt(i.position),a===10?i.position++:a===13?(i.position++,i.input.charCodeAt(i.position)===10&&i.position++):$s(i,"a line break is expected"),i.line+=1,i.lineStart=i.position,i.firstTabInLine=-1}function Ff(i,a,f){for(var p=0,v=i.input.charCodeAt(i.position);v!==0;){for(;tE(v);)v===9&&i.firstTabInLine===-1&&(i.firstTabInLine=i.position),v=i.input.charCodeAt(++i.position);if(a&&v===35)do v=i.input.charCodeAt(++i.position);while(v!==10&&v!==13&&v!==0);if(l3(v))for(Y1t(i),v=i.input.charCodeAt(i.position),p++,i.lineIndent=0;v===32;)i.lineIndent++,v=i.input.charCodeAt(++i.position);else break}return f!==-1&&p!==0&&i.lineIndent<f&&pW(i,"deficient indentation"),p}function bW(i){var a=i.position,f;return f=i.input.charCodeAt(a),!!((f===45||f===46)&&f===i.input.charCodeAt(a+1)&&f===i.input.charCodeAt(a+2)&&(a+=3,f=i.input.charCodeAt(a),f===0||lp(f)))}function X1t(i,a){a===1?i.resu
`,a-1))}function v_e(i,a,f){var p,v,m,b,E,C,A,N,F=i.kind,j=i.result,R;if(R=i.input.charCodeAt(i.position),lp(R)||OA(R)||R===35||R===38||R===42||R===33||R===124||R===62||R===39||R===34||R===37||R===64||R===96||(R===63||R===45)&&(v=i.input.charCodeAt(i.position+1),lp(v)||f&&OA(v)))return!1;for(i.kind="scalar",i.result="",m=b=i.position,E=!1;R!==0;){if(R===58){if(v=i.input.charCodeAt(i.position+1),lp(v)||f&&OA(v))break}else if(R===35){if(p=i.input.charCodeAt(i.position-1),lp(p))break}else{if(i.position===i.lineStart&&bW(i)||f&&OA(R))break;if(l3(R))if(C=i.line,A=i.lineStart,N=i.lineIndent,Ff(i,!1,-1),i.lineIndent>=a){E=!0,R=i.input.charCodeAt(i.position);continue}else{i.position=b,i.line=C,i.lineStart=A,i.lineIndent=N;break}}E&&(rk(i,m,b,!1),X1t(i,i.line-C),m=b=i.position,E=!1),tE(R)||(b=i.position+1),R=i.input.charCodeAt(++i.position)}return rk(i,m,b,!1),i.result?!0:(i.kind=F,i.result=j,!1)}function w_e(i,a){var f,p,v;if(f=i.input.charCodeAt(i.position),f!==39)return!1;for(i.kind="scalar",i.result="",i.position++,p=v=i.position;(f=i.input.charCodeAt(i.position))!==0;)if(f===39)if(rk(i,p,i.position,!0),f=i.input.charCodeAt(++i.position),f===39)p=i.position,i.position++,v=i.position;else return!0;else l3(f)?(rk(i,p,v,!0),X1t(i,Ff(i,!1,a)),p=v=i.position):i.position===i.lineStart&&bW(i)?$s(i,"unexpected end of the document within a single quoted scalar"):(i.position++,v=i.position);$s(i,"unexpected end of the stream within a single quoted scalar")}function m_e(i,a){var f,p,v,m,b,E;if(E=i.input.charCodeAt(i.position),E!==34)return!1;for(i.kind="scalar",i.result="",i.position++,f=p=i.position;(E=i.input.charCodeAt(i.position))!==0;){if(E===34)return rk(i,f,i.position,!0),i.position++,!0;if(E===92){if(rk(i,f,i.position,!0),E=i.input.charCodeAt(++i.position),l3(E))Ff(i,!1,a);else if(E<256&&pIt[E])i.result+=bIt[E],i.position++;else if((b=d_e(E))>0){for(v=b,m=0;v>0;v--)E=i.input.charCodeAt(++i.position),(b=f_e(E))>=0?m=(m<<4)+b:$s(i,"expected hexadecimal character");i.result+=p_e(m),i.position++}else $s(i,"unknown escape sequence");f=p=i.position}else l3(E)?(rk(i,f,p,!0),X1t(i,Ff(i,!1,a)),f=p=i.position):i.position===i.lineStart&&bW(i)?$s(i,"unexpected end of the document within a double quoted scalar"):(i.position++,p=i.position)}$s(i,"unexpected end of the stream within a double quoted scalar")}function y_e(i,a){var f=!0,p,v,m,b=i.tag,E,C=i.anchor,A,N,F,j,R,H=Object.create(null),Y,rt,J,it;if(it=i.input.charCodeAt(i.position),it===91)N=93,R=!1,E=[];else if(it===123)N=125,R=!0,E={};else return!1;for(i.anchor!==null&&(i.anchorMap[i.anchor]=E),it=i.input.charCodeAt(++i.position);it!==0;){if(Ff(i,!0,a),it=i.input.charCodeAt(i.position),it===N)return i.position++,i.tag=b,i.anchor=C,i.kind=R?"mapping":"sequence",i.result=E,!0;f?it===44&&$s(i,"expected the node content, but found ','"):$s(i,"missed comma between flow collection entries"),rt=Y=J=null,F=j=!1,it===63&&(A=i.input.charCodeAt(i.position+1),lp(A)&&(F=j=!0,i.position++,Ff(i,!0,a))),p=i.line,v=i.lineStart,m=i.position,FA(i,a,dW,!1,!0),rt=i.tag,Y=i.result,Ff(i,!0,a),it=i.input.charCodeAt(i.position),(j||i.line===p)&&it===58&&(F=!0,it=i.input.charCodeAt(++i.position),Ff(i,!0,a),FA(i,a,dW,!1,!0),J=i.result),R?NA(i,E,H,rt,Y,J,p,v,m):F?E.push(NA(i,null,H,rt,Y,J,p,v,m)):E.push(Y),Ff(i,!0,a),it=i.input.charCodeAt(i.position),it===44?(f=!0,it=i.input.charCodeAt(++i.position)):f=!1}$s(i,"unexpected end of the stream within a flow collection")}function x_e(i,a){var f,p,v=K1t,m=!1,b=!1,E=a,C=0,A=!1,N,F;if(F=i.input.charCodeAt(i.position),F===124)p=!1;else if(F===62)p=!0;else return!1;for(i.kind="scalar",i.result="";F!==0;)if(F=i.input.charCodeAt(++i.position),F===43||F===45)K1t===v?v=F===43?lIt:c_e:$s(i,"repeat of a chomping mode identifier");else if((N=g_e(F))>=0)N===0?$s(i,"bad explicit indentation width of a block scalar; it cannot be less than one"):b?$s(i,"repeat of an indentation width identifier"):(E=a+N-1,b=!0);else break;if(tE(F)){do F=i.input.charCodeAt(++i.position);while(tE(F));if(F===35)do F=i.input.charCodeAt(++i.position);while(!l3(F)&&F!==0)}for(;F!==0;){for(Y1t(i),i.lineInd
`,m?1+C:C):v===K1t&&m&&(i.result+=`
`);break}for(p?tE(F)?(A=!0,i.result+=lg.repeat(`
`,m?1+C:C)):A?(A=!1,i.result+=lg.repeat(`
`,C+1)):C===0?m&&(i.result+=" "):i.result+=lg.repeat(`
`,C):i.result+=lg.repeat(`
`,m?1+C:C),m=!0,b=!0,C=0,f=i.position;!l3(F)&&F!==0;)F=i.input.charCodeAt(++i.position);rk(i,f,i.position,!1)}return!0}function yIt(i,a){var f,p=i.tag,v=i.anchor,m=[],b,E=!1,C;if(i.firstTabInLine!==-1)return!1;for(i.anchor!==null&&(i.anchorMap[i.anchor]=m),C=i.input.charCodeAt(i.position);C!==0&&(i.firstTabInLine!==-1&&(i.position=i.firstTabInLine,$s(i,"tab characters must not be used in indentation")),!(C!==45||(b=i.input.charCodeAt(i.position+1),!lp(b))));){if(E=!0,i.position++,Ff(i,!0,-1)&&i.lineIndent<=a){m.push(null),C=i.input.charCodeAt(i.position);continue}if(f=i.line,FA(i,a,uIt,!1,!0),m.push(i.result),Ff(i,!0,-1),C=i.input.charCodeAt(i.position),(i.line===f||i.lineIndent>a)&&C!==0)$s(i,"bad indentation of a sequence entry");else if(i.lineIndent<a)break}return E?(i.tag=p,i.anchor=v,i.kind="sequence",i.result=m,!0):!1}function k_e(i,a,f){var p,v,m,b,E,C,A=i.tag,N=i.anchor,F={},j=Object.create(null),R=null,H=null,Y=null,rt=!1,J=!1,it;if(i.firstTabInLine!==-1)return!1;for(i.anchor!==null&&(i.anchorMap[i.anchor]=F),it=i.input.charCodeAt(i.position);it!==0;){if(!rt&&i.firstTabInLine!==-1&&(i.position=i.firstTabInLine,$s(i,"tab characters must not be used in indentation")),p=i.input.charCodeAt(i.position+1),m=i.line,(it===63||it===58)&&lp(p))it===63?(rt&&(NA(i,F,j,R,H,null,b,E,C),R=H=Y=null),J=!0,rt=!0,v=!0):rt?(rt=!1,v=!0):$s(i,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),i.position+=1,it=p;else{if(b=i.line,E=i.lineStart,C=i.position,!FA(i,f,cIt,!1,!0))break;if(i.line===m){for(it=i.input.charCodeAt(i.position);tE(it);)it=i.input.charCodeAt(++i.position);if(it===58)it=i.input.charCodeAt(++i.position),lp(it)||$s(i,"a whitespace character is expected after the key-value separator within a block mapping"),rt&&(NA(i,F,j,R,H,null,b,E,C),R=H=Y=null),J=!0,rt=!1,v=!1,R=i.tag,H=i.result;else if(J)$s(i,"can not read an implicit mapping pair; a colon is missed");else return i.tag=A,i.anchor=N,!0}else if(J)$s(i,"can not read a block mapping entry; a multiline key may not be an implicit key");else return i.tag=A,i.anchor=N,!0}if((i.line===m||i.lineIndent>a)&&(rt&&(b=i.line,E=i.lineStart,C=i.position),FA(i,a,gW,!0,v)&&(rt?H=i.result:Y=i.result),rt||(NA(i,F,j,R,H,Y,b,E,C),R=H=Y=null),Ff(i,!0,-1),it=i.input.charCodeAt(i.position)),(i.line===m||i.lineIndent>a)&&it!==0)$s(i,"bad indentation of a mapping entry");else if(i.lineIndent<a)break}return rt&&NA(i,F,j,R,H,null,b,E,C),J&&(i.tag=A,i.anchor=N,i.kind="mapping",i.result=F),J}function E_e(i){var a,f=!1,p=!1,v,m,b;if(b=i.input.charCodeAt(i.position),b!==33)return!1;if(i.tag!==null&&$s(i,"duplication of a tag property"),b=i.input.charCodeAt(++i.position),b===60?(f=!0,b=i.input.charCodeAt(++i.position)):b===33?(p=!0,v="!!",b=i.input.charCodeAt(++i.position)):v="!",a=i.position,f){do b=i.input.charCodeAt(++i.position);while(b!==0&&b!==62);i.position<i.length?(m=i.input.slice(a,i.position),b=i.input.charCodeAt(++i.position)):$s(i,"unexpected end of the stream within a verbatim tag")}else{for(;b!==0&&!lp(b);)b===33&&(p?$s(i,"tag suffix cannot contain exclamation marks"):(v=i.input.slice(a-1,i.position+1),hIt.test(v)||$s(i,"named tag handle cannot contain such characters"),p=!0,a=i.position+1)),b=i.input.charCodeAt(++i.position);m=i.input.slice(a,i.position),h_e.test(m)&&$s(i,"tag suffix cannot contain flow indicator characters")}m&&!fIt.test(m)&&$s(i,"tag name cannot contain such characters: "+m);try{m=decodeURIComponent(m)}catch{$s(i,"tag name is malformed: "+m)}return f?i.tag=m:nk.call(i.tagMap,v)?i.tag=i.tagMap[v]+m:v==="!"?i.tag="!"+m:v==="!!"?i.tag="tag:yaml.org,2002:"+m:$s(i,'undeclared tag handle "'+v+'"'),!0}function T_e(i){var a,f;if(f=i.input.charCodeAt(i.position),f!==38)return!1;for(i.anchor!==null&&$s(i,"duplication of an anchor property"),f=i.input.charCodeAt(++i.position),a=i.position;f!==0&&!lp(f)&&!OA(f);)f=i.input.charCodeAt(++i.position);return i.position===a&&$s(i,"name of an anchor node must contain at least one character"),i.anchor=i.input.slice(a,i.position),!0}function __e(i){var a,f,p;if(p=i.input.charCodeAt(i.
`),i.charCodeAt(0)===65279&&(i=i.slice(1)));var f=new b_e(i,a),p=i.indexOf("\0");for(p!==-1&&(f.position=p,$s(f,"null byte is not allowed in input")),f.input+="\0";f.input.charCodeAt(f.position)===32;)f.lineIndent+=1,f.position+=1;for(;f.position<f.length-1;)C_e(f);return f.documents}function S_e(i,a,f){a!==null&&typeof a=="object"&&typeof f>"u"&&(f=a,a=null);var p=xIt(i,f);if(typeof a!="function")return p;for(var v=0,m=p.length;v<m;v+=1)a(p[v])}function A_e(i,a){var f=xIt(i,a);if(f.length!==0){if(f.length===1)return f[0];throw new y5("expected a single document in the stream, but found more")}}var L_e=S_e,M_e=A_e,D_e={loadAll:L_e,load:M_e},I_e=sIt,O_e=D_e.load;const kIt=/^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s;function P_e(i,a){var p,v;const f=i.match(kIt);if(f){const m=O_e(f[1],{schema:I_e});return m!=null&&m.title&&((p=a.setDiagramTitle)==null||p.call(a,m.title)),m!=null&&m.displayMode&&((v=a.setDisplayMode)==null||v.call(a,m.displayMode)),i.slice(f[0].length)}else return i}const Q1t=function(i,a,f){const{depth:p,clobber:v}=Object.assign({depth:2,clobber:!1},f);return Array.isArray(a)&&!Array.isArray(i)?(a.forEach(m=>Q1t(i,m,f)),i):Array.isArray(a)&&Array.isArray(i)?(a.forEach(m=>{i.includes(m)||i.push(m)}),i):i===void 0||p<=0?i!=null&&typeof i=="object"&&typeof a=="object"?Object.assign(i,a):a:(a!==void 0&&typeof i=="object"&&typeof a=="object"&&Object.keys(a).forEach(m=>{typeof a[m]=="object"&&(i[m]===void 0||typeof i[m]=="object")?(i[m]===void 0&&(i[m]=Array.isArray(a[m])?[]:{}),i[m]=Q1t(i[m],a[m],{depth:p-1,clobber:v})):(v||typeof i[m]!="object"&&typeof a[m]!="object")&&(i[m]=a[m])}),i)},rd=Q1t,eE=Object.freeze(h1);let hp=rd({},eE),EIt,BA=[],UP=rd({},eE);const vW=(i,a)=>{let f=rd({},i),p={};for(const v of a)CIt(v),p=rd(p,v);if(f=rd(f,p),p.theme&&p.theme in m5){const v=rd({},EIt),m=rd(v.themeVariables||{},p.themeVariables);f.theme&&f.theme in m5&&(f.themeVariables=m5[f.theme].getThemeVariables(m))}return UP=f,LIt(UP),UP},N_e=i=>(hp=rd({},eE),hp=rd(hp,i),i.theme&&m5[i.theme]&&(hp.themeVariables=m5[i.theme].getThemeVariables(i.themeVariables)),vW(hp,BA),hp),F_e=i=>{EIt=rd({},i)},B_e=i=>(hp=rd(hp,i),vW(hp,BA),hp),TIt=()=>rd({},hp),_It=i=>(LIt(i),rd(UP,i),Me()),Me=()=>rd({},UP),CIt=i=>{["secure",...hp.secure??[]].forEach(a=>{i[a]!==void 0&&(Vt.debug(`Denied attempt to modify a secure key ${a}`,i[a]),delete i[a])}),Object.keys(i).forEach(a=>{a.indexOf("__")===0&&delete i[a]}),Object.keys(i).forEach(a=>{typeof i[a]=="string"&&(i[a].includes("<")||i[a].includes(">")||i[a].includes("url(data:"))&&delete i[a],typeof i[a]=="object"&&CIt(i[a])})},SIt=i=>{i.fontFamily&&(i.themeVariables?i.themeVariables.fontFamily||(i.themeVariables={fontFamily:i.fontFamily}):i.themeVariables={fontFamily:i.fontFamily}),BA.push(i),vW(hp,BA)},wW=(i=hp)=>{BA=[],vW(i,BA)},R_e={LAZY_LOAD_DEPRECATED:"The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead."},AIt={},j_e=i=>{AIt[i]||(Vt.warn(R_e[i]),AIt[i]=!0)},LIt=i=>{i&&(i.lazyLoadedDiagrams||i.loadExternalDiagramsAtStartup)&&j_e("LAZY_LOAD_DEPRECATED")},$_e=function(i,a){for(let f of a)i.attr(f[0],f[1])},z_e=function(i,a,f){let p=new Map;return f?(p.set("width","100%"),p.set("style",`max-width: ${a}px;`)):(p.set("height",i),p.set("width",a)),p},N2=function(i,a,f,p){const v=z_e(a,f,p);$_e(i,v)},nE=function(i,a,f,p){const v=a.node().getBBox(),m=v.width,b=v.height;Vt.info(`SVG bounds: ${m}x${b}`,v);let E=0,C=0;Vt.info(`Graph bounds: ${E}x${C}`,i),E=m+f*2,C=b+f*2,Vt.info(`Calculated bounds: ${E}x${C}`),N2(a,C,E,p);const A=`${v.x-f} ${v.y-f} ${v.width+2*f} ${v.height+2*f}`;a.attr("viewBox",A)},mW={},q_e=(i,a,f)=>{let p="";return i in mW&&mW[i]?p=mW[i](f):Vt.warn(`No theme found for ${i}`),` & {
2023-05-24 18:25:13 +00:00
font-family: ${f.fontFamily};
font-size: ${f.fontSize};
fill: ${f.textColor}
2022-11-17 22:35:28 +00:00
}
2023-05-24 18:25:13 +00:00
/* Classes common for multiple diagrams */
2022-11-17 22:35:28 +00:00
2023-05-24 18:25:13 +00:00
& .error-icon {
fill: ${f.errorBkgColor};
}
& .error-text {
fill: ${f.errorTextColor};
stroke: ${f.errorTextColor};
2022-11-17 22:35:28 +00:00
}
2023-05-24 18:25:13 +00:00
& .edge-thickness-normal {
stroke-width: 2px;
}
& .edge-thickness-thick {
stroke-width: 3.5px
}
& .edge-pattern-solid {
stroke-dasharray: 0;
2022-11-17 22:35:28 +00:00
}
2023-05-24 18:25:13 +00:00
& .edge-pattern-dashed{
stroke-dasharray: 3;
}
.edge-pattern-dotted {
stroke-dasharray: 2;
2022-11-17 22:35:28 +00:00
}
2023-05-24 18:25:13 +00:00
& .marker {
fill: ${f.lineColor};
stroke: ${f.lineColor};
}
& .marker.cross {
stroke: ${f.lineColor};
2022-11-17 22:35:28 +00:00
}
2023-05-24 18:25:13 +00:00
& svg {
font-family: ${f.fontFamily};
font-size: ${f.fontSize};
2022-11-17 22:35:28 +00:00
}
2023-05-24 18:25:13 +00:00
${p}
2023-05-23 13:17:23 +00:00
2023-05-24 18:25:13 +00:00
${a}
`},H_e=(i,a)=>{a!==void 0&&(mW[i]=a)},V_e=q_e;let Z1t="",yW="",J1t="";const tdt=i=>cg(i,Me()),hg=function(){Z1t="",J1t="",yW=""},E0=function(i){Z1t=tdt(i).replace(/^\s+/g,"")},fg=function(){return Z1t||yW},dg=function(i){J1t=tdt(i).replace(/\n\s+/g,`
`)},gg=function(){return J1t},F2=function(i){yW=tdt(i)},fp=function(){return yW},MIt=Object.freeze(Object.defineProperty({__proto__:null,clear:hg,default:{getAccTitle:fg,setAccTitle:E0,getDiagramTitle:fp,setDiagramTitle:F2,getAccDescription:gg,setAccDescription:dg,clear:hg},getAccDescription:gg,getAccTitle:fg,getDiagramTitle:fp,setAccDescription:dg,setAccTitle:E0,setDiagramTitle:F2},Symbol.toStringTag,{value:"Module"}));let rE={};const edt=function(i,a,f,p){Vt.debug("parseDirective is being called",a,f,p);try{if(a!==void 0)switch(a=a.trim(),f){case"open_directive":rE={};break;case"type_directive":if(!rE)throw new Error("currentDirective is undefined");rE.type=a.toLowerCase();break;case"arg_directive":if(!rE)throw new Error("currentDirective is undefined");rE.args=JSON.parse(a);break;case"close_directive":G_e(i,rE,p),rE=void 0;break}}catch(v){Vt.error(`Error while rendering sequenceDiagram directive: ${a} jison context: ${f}`),Vt.error(v.message)}},G_e=function(i,a,f){switch(Vt.info(`Directive type=${a.type} with args:`,a.args),a.type){case"init":case"initialize":{["config"].forEach(p=>{a.args[p]!==void 0&&(f==="flowchart-v2"&&(f="flowchart"),a.args[f]=a.args[p],delete a.args[p])}),Vt.info("sanitize in handleDirective",a.args),qA(a.args),Vt.info("sanitize in handleDirective (done)",a.args),SIt(a.args);break}case"wrap":case"nowrap":i&&i.setWrap&&i.setWrap(a.type==="wrap");break;case"themeCss":Vt.warn("themeCss encountered");break;default:Vt.warn(`Unhandled directive: source: '%%{${a.type}: ${JSON.stringify(a.args?a.args:{})}}%%`,a);break}},U_e=Vt,W_e=jft,WP=Me,K_e=i=>cg(i,WP()),DIt=nE,Y_e=()=>MIt,X_e=(i,a,f,p)=>edt(i,a,f,p),xW={},kW=(i,a,f)=>{if(xW[i])throw new Error(`Diagram ${i} already registered.`);xW[i]=a,f&&PIt(i,f),H_e(i,a.styles),a.injectUtils&&a.injectUtils(U_e,W_e,WP,K_e,DIt,Y_e(),X_e)},ndt=i=>{if(i in xW)return xW[i];throw new Error(`Diagram ${i} not found.`)};class IIt extends Error{constructor(a){super(a),this.name="UnknownDiagramError"}}const Q_e=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,Z_e=/\s*%%.*\n/gm,RA={},EW=function(i,a){i=i.replace(kIt,"").replace(Q_e,"").replace(Z_e,`
`);for(const[f,{detector:p}]of Object.entries(RA))if(p(i,a))return f;throw new IIt(`No diagram type detected matching given configuration for text: ${i}`)},OIt=(...i)=>{for(const{id:a,detector:f,loader:p}of i)PIt(a,f,p)},J_e=async()=>{Vt.debug("Loading registered diagrams");const a=(await Promise.allSettled(Object.entries(RA).map(async([f,{detector:p,loader:v}])=>{if(v)try{ndt(f)}catch{try{const{diagram:b,id:E}=await v();kW(E,b,p)}catch(b){throw Vt.error(`Failed to load external diagram with key ${f}. Removing from detectors.`),delete RA[f],b}}}))).filter(f=>f.status==="rejected");if(a.length>0){Vt.error(`Failed to load ${a.length} external diagrams`);for(const f of a)Vt.error(f);throw new Error(`Failed to load ${a.length} external diagrams`)}},PIt=(i,a,f)=>{RA[i]?Vt.error(`Detector with key ${i} already exists`):RA[i]={detector:a,loader:f},Vt.debug(`Detector with key ${i} added${f?" with loader":""}`)},tCe=i=>RA[i].loader;var eCe=typeof global=="object"&&global&&global.Object===Object&&global;const NIt=eCe;var nCe=typeof self=="object"&&self&&self.Object===Object&&self,rCe=NIt||nCe||Function("return this")();const Zw=rCe;var iCe=Zw.Symbol;const Qb=iCe;var FIt=Object.prototype,sCe=FIt.hasOwnProperty,aCe=FIt.toString,KP=Qb?Qb.toStringTag:void 0;function oCe(i){var a=sCe.call(i,KP),f=i[KP];try{i[KP]=void 0;var p=!0}catch{}var v=aCe.call(i);return p&&(a?i[KP]=f:delete i[KP]),v}var cCe=Object.prototype,uCe=cCe.toString;function lCe(i){return uCe.call(i)}var hCe="[object Null]",fCe="[object Undefined]",BIt=Qb?Qb.toStringTag:void 0;function iE(i){return i==null?i===void 0?fCe:hCe:BIt&&BIt in Object(i)?oCe(i):lCe(i)}function B2(i){var a=typeof i;return i!=null&&(a=="object"||a=="function")}var dCe="[object AsyncFunction]",gCe="[object Function]",pCe="[object GeneratorFunction]",bCe="[object Proxy]";function jA(i){if(!B2(i))return!1;var a=iE(i);return a==gCe||a==pCe||a==dCe||a==bCe}var vCe=Zw["__core-js_shared__"];const rdt=vCe;var RIt=function(){var i=/[^.]+$/.exec(rdt&&rdt.keys&&rdt.keys.IE_PROTO||"");return i?"Symbol(src)_1."+i:""}();function wCe(i){return!!RIt&&RIt in i}var mCe=Function.prototype,yCe=mCe.toString;function sE(i){if(i!=null){try{return yCe.call(i)}catch{}try{return i+""}catch{}}return""}var xCe=/[\\^$.*+?()[\]{}|]/g,kCe=/^\[object .+?Constructor\]$/,ECe=Function.prototype,TCe=Object.prototype,_Ce=ECe.toString,CCe=TCe.hasOwnProperty,SCe=RegExp("^"+_Ce.call(CCe).replace(xCe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function ACe(i){if(!B2(i)||wCe(i))return!1;var a=jA(i)?SCe:kCe;return a.test(sE(i))}function LCe(i,a){return i==null?void 0:i[a]}function aE(i,a){var f=LCe(i,a);return ACe(f)?f:void 0}var MCe=aE(Object,"create");const YP=MCe;function DCe(){this.__data__=YP?YP(null):{},this.size=0}function ICe(i){var a=this.has(i)&&delete this.__data__[i];return this.size-=a?1:0,a}var OCe="__lodash_hash_undefined__",PCe=Object.prototype,NCe=PCe.hasOwnProperty;function FCe(i){var a=this.__data__;if(YP){var f=a[i];return f===OCe?void 0:f}return NCe.call(a,i)?a[i]:void 0}var BCe=Object.prototype,RCe=BCe.hasOwnProperty;function jCe(i){var a=this.__data__;return YP?a[i]!==void 0:RCe.call(a,i)}var $Ce="__lodash_hash_undefined__";function zCe(i,a){var f=this.__data__;return this.size+=this.has(i)?0:1,f[i]=YP&&a===void 0?$Ce:a,this}function oE(i){var a=-1,f=i==null?0:i.length;for(this.clear();++a<f;){var p=i[a];this.set(p[0],p[1])}}oE.prototype.clear=DCe,oE.prototype.delete=ICe,oE.prototype.get=FCe,oE.prototype.has=jCe,oE.prototype.set=zCe;function qCe(){this.__data__=[],this.size=0}function $A(i,a){return i===a||i!==i&&a!==a}function TW(i,a){for(var f=i.length;f--;)if($A(i[f][0],a))return f;return-1}var HCe=Array.prototype,VCe=HCe.splice;function GCe(i){var a=this.__data__,f=TW(a,i);if(f<0)return!1;var p=a.length-1;return f==p?a.pop():VCe.call(a,f,1),--this.size,!0}function UCe(i){var a=this.__data__,f=TW(a,i);return f<0?void 0:a[f][1]}function WCe(i){return TW(this.__data__,i)>-1}function KCe(i,a){var f=this.__data__,p=TW(f,i);return p<0?(++this.size,f.push([i,a])):f[p][1]=a,this
`,"ig");i=i.trim().replace(f,"").replace(/'/gm,'"'),Vt.debug(`Detecting diagram directive${a!==null?" type:"+a:""} based on the text:${i}`);let p;const v=[];for(;(p=idt.exec(i))!==null;)if(p.index===idt.lastIndex&&idt.lastIndex++,p&&!a||a&&p[1]&&p[1].match(a)||a&&p[2]&&p[2].match(a)){const m=p[1]?p[1]:p[2],b=p[3]?p[3].trim():p[4]?JSON.parse(p[4].trim()):null;v.push({type:m,args:b})}return v.length===0&&v.push({type:i,args:null}),v.length===1?v[0]:v}catch(f){return Vt.error(`ERROR: ${f.message} - Unable to parse directive
${a!==null?" type:"+a:""} based on the text:${i}`),{type:null,args:null}}},aSe=function(i,a){for(const[f,p]of a.entries())if(p.match(i))return f;return-1};function Zb(i,a){if(!i)return a;const f=`curve${i.charAt(0).toUpperCase()+i.slice(1)}`;return rSe[f]||a}function oSe(i,a){const f=i.trim();if(f)return a.securityLevel!=="loose"?Zx(f):f}const cSe=(i,...a)=>{const f=i.split("."),p=f.length-1,v=f[p];let m=window;for(let b=0;b<p;b++)if(m=m[f[b]],!m)return;m[v](...a)};function CW(i,a){return i&&a?Math.sqrt(Math.pow(a.x-i.x,2)+Math.pow(a.y-i.y,2)):0}function uSe(i){let a,f=0;i.forEach(m=>{f+=CW(m,a),a=m});let p=f/2,v;return a=void 0,i.forEach(m=>{if(a&&!v){const b=CW(m,a);if(b<p)p-=b;else{const E=p/b;E<=0&&(v=a),E>=1&&(v={x:m.x,y:m.y}),E>0&&E<1&&(v={x:(1-E)*a.x+E*m.x,y:(1-E)*a.y+E*m.y})}}a=m}),v}function lSe(i){return i.length===1?i[0]:uSe(i)}const hSe=(i,a,f)=>{let p;Vt.info(`our points ${JSON.stringify(a)}`),a[0]!==f&&(a=a.reverse());let m=25,b;p=void 0,a.forEach(N=>{if(p&&!b){const F=CW(N,p);if(F<m)m-=F;else{const j=m/F;j<=0&&(b=p),j>=1&&(b={x:N.x,y:N.y}),j>0&&j<1&&(b={x:(1-j)*p.x+j*N.x,y:(1-j)*p.y+j*N.y})}}p=N});const E=i?10:5,C=Math.atan2(a[0].y-b.y,a[0].x-b.x),A={x:0,y:0};return A.x=Math.sin(C)*E+(a[0].x+b.x)/2,A.y=-Math.cos(C)*E+(a[0].y+b.y)/2,A};function fSe(i,a,f){let p=JSON.parse(JSON.stringify(f)),v;Vt.info("our points",p),a!=="start_left"&&a!=="start_right"&&(p=p.reverse()),p.forEach(F=>{v=F});let b=25+i,E;v=void 0,p.forEach(F=>{if(v&&!E){const j=CW(F,v);if(j<b)b-=j;else{const R=b/j;R<=0&&(E=v),R>=1&&(E={x:F.x,y:F.y}),R>0&&R<1&&(E={x:(1-R)*v.x+R*F.x,y:(1-R)*v.y+R*F.y})}}v=F});const C=10+i*.5,A=Math.atan2(p[0].y-E.y,p[0].x-E.x),N={x:0,y:0};return N.x=Math.sin(A)*C+(p[0].x+E.x)/2,N.y=-Math.cos(A)*C+(p[0].y+E.y)/2,a==="start_left"&&(N.x=Math.sin(A+Math.PI)*C+(p[0].x+E.x)/2,N.y=-Math.cos(A+Math.PI)*C+(p[0].y+E.y)/2),a==="end_right"&&(N.x=Math.sin(A-Math.PI)*C+(p[0].x+E.x)/2-5,N.y=-Math.cos(A-Math.PI)*C+(p[0].y+E.y)/2-5),a==="end_left"&&(N.x=Math.sin(A)*C+(p[0].x+E.x)/2-5,N.y=-Math.cos(A)*C+(p[0].y+E.y)/2-5),N}function Jw(i){let a="",f="";for(const p of i)p!==void 0&&(p.startsWith("color:")||p.startsWith("text-align:")?f=f+p+";":a=a+p+";");return{style:a,labelStyle:f}}let zIt=0;const qIt=()=>(zIt++,"id-"+Math.random().toString(36).substr(2,12)+"-"+zIt);function dSe(i){let a="";const f="0123456789abcdef",p=f.length;for(let v=0;v<i;v++)a+=f.charAt(Math.floor(Math.random()*p));return a}const HIt=i=>dSe(i.length),gSe=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}},pSe=function(i,a){const f=a.text.replace(bi.lineBreakRegex," "),[,p]=HA(a.fontSize),v=i.append("text");v.attr("x",a.x),v.attr("y",a.y),v.style("text-anchor",a.anchor),v.style("font-family",a.fontFamily),v.style("font-size",p),v.style("font-weight",a.fontWeight),v.attr("fill",a.fill),a.class!==void 0&&v.attr("class",a.class);const m=v.append("tspan");return m.attr("x",a.x+a.textMargin*2),m.attr("fill",a.fill),m.text(f),v},VIt=zA((i,a,f)=>{if(!i||(f=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},f),bi.lineBreakRegex.test(i)))return i;const p=i.split(" "),v=[];let m="";return p.forEach((b,E)=>{const C=h3(`${b} `,f),A=h3(m,f);if(C>a){const{hyphenatedStrings:j,remainingWord:R}=bSe(b,a,"-",f);v.push(m,...j),m=R}else A+C>=a?(v.push(m),m=b):m=[m,b].filter(Boolean).join(" ");E+1===p.length&&v.push(m)}),v.filter(b=>b!=="").join(f.joinWith)},(i,a,f)=>`${i}${a}${f.fontSize}${f.fontWeight}${f.fontFamily}${f.joinWith}`),bSe=zA((i,a,f="-",p)=>{p=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},p);const v=[...i],m=[];let b="";return v.forEach((E,C)=>{const A=`${b}${E}`;if(h3(A,p)>=a){const F=C+1,j=v.length===F,R=`${A}${f}`;m.push(j?A:R),b=""}else b=A}),{hyphenatedStrings:m,remainingWord:b}},(i,a,f="-",p)=>`${i}${a}${f}${p.fontSize}${p.fontWeight}${p.fontFamily}`);function sdt(i,a){return a=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:15},a),adt(i,a).height}function h3(i,a){return a=Object.assign({fontSize:12,fontWeight
`);const p=wr("#"+a),v=p.append("g");v.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"),v.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"),v.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"),v.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"),v.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"),v.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"),v.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"),v.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text("mermaid version "+f),p.attr("height",100),p.attr("width",500),p.attr("viewBox","768 0 912 512")}catch(p){Vt.error("Error while rendering info diagram"),Vt.error(mSe(p))}}},JSe={db:{clear:()=>{}},styles:ZSe,renderer:vOt,parser:{parser:{yy:{}},parse:()=>{}},init:()=>{}},wOt="flowchart-elk",tAe={id:wOt,detector:(i,a)=>{var f;return!!(/^\s*flowchart-elk/.test(i)||/^\s*flowchart|graph/.test(i)&&((f=a==null?void 0:a.flowchart)==null?void 0:f.defaultRenderer)==="elk")},loader:async()=>{const{diagram:i}=await Promise.resolve().then(()=>vUe);return{id:wOt,diagram:i}}},mOt="timeline",eAe={id:mOt,detector:i=>/^\s*timeline/.test(i),loader:async()=>{const{diagram:i}=await Promise.resolve().then(()=>FUe);return{id:mOt,diagram:i}}},yOt="mindmap",nAe={id:yOt,detector:i=>/^\s*mindmap/.test(i),loader:async()=>{const{diagram:i}=await Promise.resolve().then(()=>fWe);return{id:yOt,diagram:i}}},xOt="sankey",rAe={id:xOt,detector:i=>/^\s*sankey-beta/.test(i),loader:async()=>{const{diagram:i}=await Promise.resolve().then(()=>qWe);return{id:xOt,diagram:i}}};let kOt=!1;const gdt=()=>{kOt||(kOt=!0,kW("error",JSe,i=>i.toLowerCase().trim()==="error"),kW("---",{db:{clear:()=>{}},styles:{},renderer:{},parser:{parser:{yy:{}},parse:()=>{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")}},init:()=>null},i=>i.toLowerCase().trimStart().startsWith("---")),OIt(FSe,KSe,WSe,jSe,zSe,qSe,HSe,GSe,USe,tAe,RSe,BSe,nAe,eAe,$Se,XSe,YSe,QSe,VSe,rAe))},iAe=i=>i.trimStart().replace(/^\s*%%(?!{)[^\n]+\n?/gm,"");class EOt{constructor(a){var m,b;this.text=a,this.type="graph",this.text+=`
`;const f=Me();try{this.type=EW(a,f)}catch(E){this.type="error",this.detectError=E}const p=ndt(this.type);Vt.debug("Type "+this.type),this.db=p.db,(b=(m=this.db).clear)==null||b.call(m),this.renderer=p.renderer,this.parser=p.parser;const v=this.parser.parse.bind(this.parser);this.parser.parse=E=>v(iAe(P_e(E,this.db))),this.parser.parser.yy=this.db,p.init&&(p.init(f),Vt.info("Initialized diagram "+this.type,f)),this.parse()}parse(){var a,f;if(this.detectError)throw this.detectError;(f=(a=this.db).clear)==null||f.call(a),this.parser.parse(this.text)}async render(a,f){await this.renderer.draw(this.text,a,f,this)}getParser(){return this.parser}getType(){return this.type}}const pdt=async i=>{const a=EW(i,Me());try{ndt(a)}catch{const p=tCe(a);if(!p)throw new IIt(`Diagram ${a} not found.`);const{id:v,diagram:m}=await p();kW(v,m)}return new EOt(i)};let bdt=[];const sAe=i=>{bdt.push(i)},aAe=()=>{bdt.forEach(i=>{i()}),bdt=[]};var oAe=Object.prototype;function PW(i){var a=i&&i.constructor,f=typeof a=="function"&&a.prototype||oAe;return i===f}function TOt(i,a){return function(f){return i(a(f))}}var cAe=TOt(Object.keys,Object);const uAe=cAe;var lAe=Object.prototype,hAe=lAe.hasOwnProperty;function _Ot(i){if(!PW(i))return uAe(i);var a=[];for(var f in Object(i))hAe.call(i,f)&&f!="constructor"&&a.push(f);return a}var fAe=aE(Zw,"DataView");const vdt=fAe;var dAe=aE(Zw,"Promise");const wdt=dAe;var gAe=aE(Zw,"Set");const UA=gAe;var pAe=aE(Zw,"WeakMap");const mdt=pAe;var COt="[object Map]",bAe="[object Object]",SOt="[object Promise]",AOt="[object Set]",LOt="[object WeakMap]",MOt="[object DataView]",vAe=sE(vdt),wAe=sE(XP),mAe=sE(wdt),yAe=sE(UA),xAe=sE(mdt),uE=iE;(vdt&&uE(new vdt(new ArrayBuffer(1)))!=MOt||XP&&uE(new XP)!=COt||wdt&&uE(wdt.resolve())!=SOt||UA&&uE(new UA)!=AOt||mdt&&uE(new mdt)!=LOt)&&(uE=function(i){var a=iE(i),f=a==bAe?i.constructor:void 0,p=f?sE(f):"";if(p)switch(p){case vAe:return MOt;case wAe:return COt;case mAe:return SOt;case yAe:return AOt;case xAe:return LOt}return a});const WA=uE;function f3(i){return i!=null&&typeof i=="object"}var kAe="[object Arguments]";function DOt(i){return f3(i)&&iE(i)==kAe}var IOt=Object.prototype,EAe=IOt.hasOwnProperty,TAe=IOt.propertyIsEnumerable,_Ae=DOt(function(){return arguments}())?DOt:function(i){return f3(i)&&EAe.call(i,"callee")&&!TAe.call(i,"callee")};const KA=_Ae;var CAe=Array.isArray;const Rf=CAe;var SAe=9007199254740991;function ydt(i){return typeof i=="number"&&i>-1&&i%1==0&&i<=SAe}function sk(i){return i!=null&&ydt(i.length)&&!jA(i)}function AAe(){return!1}var OOt=typeof exports=="object"&&exports&&!exports.nodeType&&exports,POt=OOt&&typeof module=="object"&&module&&!module.nodeType&&module,LAe=POt&&POt.exports===OOt,NOt=LAe?Zw.Buffer:void 0,MAe=NOt?NOt.isBuffer:void 0,DAe=MAe||AAe;const YA=DAe;var IAe="[object Arguments]",OAe="[object Array]",PAe="[object Boolean]",NAe="[object Date]",FAe="[object Error]",BAe="[object Function]",RAe="[object Map]",jAe="[object Number]",$Ae="[object Object]",zAe="[object RegExp]",qAe="[object Set]",HAe="[object String]",VAe="[object WeakMap]",GAe="[object ArrayBuffer]",UAe="[object DataView]",WAe="[object Float32Array]",KAe="[object Float64Array]",YAe="[object Int8Array]",XAe="[object Int16Array]",QAe="[object Int32Array]",ZAe="[object Uint8Array]",JAe="[object Uint8ClampedArray]",tLe="[object Uint16Array]",eLe="[object Uint32Array]",_l={};_l[WAe]=_l[KAe]=_l[YAe]=_l[XAe]=_l[QAe]=_l[ZAe]=_l[JAe]=_l[tLe]=_l[eLe]=!0,_l[IAe]=_l[OAe]=_l[GAe]=_l[PAe]=_l[UAe]=_l[NAe]=_l[FAe]=_l[BAe]=_l[RAe]=_l[jAe]=_l[$Ae]=_l[zAe]=_l[qAe]=_l[HAe]=_l[VAe]=!1;function nLe(i){return f3(i)&&ydt(i.length)&&!!_l[iE(i)]}function NW(i){return function(a){return i(a)}}var FOt=typeof exports=="object"&&exports&&!exports.nodeType&&exports,JP=FOt&&typeof module=="object"&&module&&!module.nodeType&&module,rLe=JP&&JP.exports===FOt,xdt=rLe&&NIt.process,iLe=function(){try{var i=JP&&JP.require&&JP.require("util").types;return i||xdt&&xdt.binding&&xdt.binding("util")}catch{}}();const XA=iLe;var BOt=XA&&XA.isTypedArray,sLe=BOt?NW(BOt):nLe;const FW=sLe;var aLe="[object Map]",oLe="[object S
.${i} ${a} { ${f.join(" !important; ")} !important; }`,MLe=(i,a,f={})=>{var v;let p="";if(i.themeCSS!==void 0&&(p+=`
2023-05-24 18:25:13 +00:00
${i.themeCSS}`),i.fontFamily!==void 0&&(p+=`
:root { --mermaid-font-family: ${i.fontFamily}}`),i.altFontFamily!==void 0&&(p+=`
:root { --mermaid-alt-font-family: ${i.altFontFamily}}`),!tN(f)&&ROt.includes(a)){const C=i.htmlLabels||((v=i.flowchart)==null?void 0:v.htmlLabels)?["> *","span"]:["rect","polygon","ellipse","circle","path"];for(const A in f){const N=f[A];tN(N.styles)||C.forEach(F=>{p+=jOt(N.id,F,N.styles)}),tN(N.textStyles)||(p+=jOt(N.id,"tspan",N.textStyles))}}return p},DLe=(i,a,f,p)=>{const v=MLe(i,a,f),m=V_e(a,v,i.themeVariables);return ddt(OSe(`${p}{${m}}`),NSe)},ILe=(i="",a,f)=>{let p=i;return!f&&!a&&(p=p.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,'marker-end="url(#')),p=eN(p),p=p.replace(/<br>/g,"<br/>"),p},OLe=(i="",a)=>{const f=a?a.viewBox.baseVal.height+"px":xLe,p=btoa('<body style="'+ELe+'">'+i+"</body>");return`<iframe style="width:${yLe};height:${f};${kLe}" src="data:text/html;base64,${p}" sandbox="${TLe}">
${_Le}
</iframe>`},$Ot=(i,a,f,p,v)=>{const m=i.append("div");m.attr("id",f),p&&m.attr("style",p);const b=m.append("svg").attr("id",a).attr("width","100%").attr("xmlns",vLe);return v&&b.attr("xmlns:xlink",v),b.append("g"),i};function zOt(i,a){return i.append("iframe").attr("id",a).attr("style","width: 100%; height: 100%;").attr("sandbox","")}const PLe=(i,a,f,p)=>{var v,m,b;(v=i.getElementById(a))==null||v.remove(),(m=i.getElementById(f))==null||m.remove(),(b=i.getElementById(p))==null||b.remove()},NLe=async function(i,a,f){var Ct,nt,Nt,dt;gdt(),wW();const p=ho.detectInit(a);p&&(qA(p),SIt(p));const v=Me();Vt.debug(v),a.length>((v==null?void 0:v.maxTextSize)??dLe)&&(a=gLe),a=a.replace(/\r\n?/g,`
`),a=a.replace(/<(\w+)([^>]*)>/g,(Ft,X,Bt)=>"<"+X+Bt.replace(/="([^"]*)"/g,"='$1'")+">");const m="#"+i,b="i"+i,E="#"+b,C="d"+i,A="#"+C;let N=wr("body");const F=v.securityLevel===pLe,j=v.securityLevel===bLe,R=v.fontFamily;if(f!==void 0){if(f&&(f.innerHTML=""),F){const Ft=zOt(wr(f),b);N=wr(Ft.nodes()[0].contentDocument.body),N.node().style.margin=0}else N=wr(f);$Ot(N,i,C,`font-family: ${R}`,wLe)}else{if(PLe(document,i,C,b),F){const Ft=zOt(wr("body"),b);N=wr(Ft.nodes()[0].contentDocument.body),N.node().style.margin=0}else N=wr("body");$Ot(N,i,C)}a=LLe(a);let H,Y;try{H=await pdt(a)}catch(Ft){H=new EOt("error"),Y=Ft}const rt=N.select(A).node(),J=H.type,it=rt.firstChild,ht=it.firstChild,Tt=ROt.includes(J)?H.renderer.getClasses(a,H):{},yt=DLe(v,J,Tt,m),vt=document.createElement("style");vt.innerHTML=yt,it.insertBefore(vt,ht);try{await H.renderer.draw(a,i,tOt,H)}catch(Ft){throw vOt.draw(a,i,tOt),Ft}const ut=N.select(`${A} svg`),xt=(nt=(Ct=H.db).getAccTitle)==null?void 0:nt.call(Ct),st=(dt=(Nt=H.db).getAccDescription)==null?void 0:dt.call(Nt);BLe(J,ut,xt,st),N.select(`[id="${i}"]`).selectAll("foreignobject > *").attr("xmlns",mLe);let Et=N.select(A).node().innerHTML;if(Vt.debug("config.arrowMarkerAbsolute",v.arrowMarkerAbsolute),Et=ILe(Et,F,l1(v.arrowMarkerAbsolute)),F){const Ft=N.select(A+" svg").node();Et=OLe(Et,Ft)}else j||(Et=rW.sanitize(Et,{ADD_TAGS:CLe,ADD_ATTR:SLe}));if(aAe(),Y)throw Y;const pt=wr(F?E:A).node();return pt&&"remove"in pt&&pt.remove(),{svg:Et,bindFunctions:H.db.bindFunctions}};function FLe(i={}){var f;i!=null&&i.fontFamily&&!((f=i.themeVariables)!=null&&f.fontFamily)&&(i.themeVariables||(i.themeVariables={}),i.themeVariables.fontFamily=i.fontFamily),F_e(i),i!=null&&i.theme&&i.theme in m5?i.themeVariables=m5[i.theme].getThemeVariables(i.themeVariables):i&&(i.themeVariables=m5.default.getThemeVariables(i.themeVariables));const a=typeof i=="object"?N_e(i):TIt();jft(a.logLevel),gdt()}function BLe(i,a,f,p){hLe(a,i),fLe(a,f,p,a.attr("id"))}const f1=Object.freeze({render:NLe,parse:ALe,parseDirective:edt,getDiagramFromText:pdt,initialize:FLe,getConfig:Me,setConfig:_It,getSiteConfig:TIt,updateSiteConfig:B_e,reset:()=>{wW()},globalReset:()=>{wW(eE)},defaultConfig:eE});jft(Me().logLevel),wW(Me());const RLe=(i,a,f)=>{Vt.warn(i),GIt(i)?(f&&f(i.str,i.hash),a.push({...i,message:i.str,error:i})):(f&&f(i),i instanceof Error&&a.push({str:i.message,message:i.message,hash:i.name,error:i}))},qOt=async function(i={querySelector:".mermaid"}){try{await jLe(i)}catch(a){if(GIt(a)&&Vt.error(a.str),R2.parseError&&R2.parseError(a),!i.suppressErrors)throw Vt.error("Use the suppressErrors option to suppress these errors"),a}},jLe=async function({postRenderCallback:i,querySelector:a,nodes:f}={querySelector:".mermaid"}){const p=f1.getConfig();Vt.debug(`${i?"":"No "}Callback function found`);let v;if(f)v=f;else if(a)v=document.querySelectorAll(a);else throw new Error("Nodes and querySelector are both undefined");Vt.debug(`Found ${v.length} diagrams`),(p==null?void 0:p.startOnLoad)!==void 0&&(Vt.debug("Start On Load: "+(p==null?void 0:p.startOnLoad)),f1.updateSiteConfig({startOnLoad:p==null?void 0:p.startOnLoad}));const m=new ho.initIdGenerator(p.deterministicIds,p.deterministicIDSeed);let b;const E=[];for(const C of Array.from(v)){Vt.info("Rendering diagram: "+C.id);/*! Check if previously processed */if(C.getAttribute("data-processed"))continue;C.setAttribute("data-processed","true");const A=`mermaid-${m.next()}`;b=C.innerHTML,b=wA(ho.entityDecode(b)).trim().replace(/<br\s*\/?>/gi,"<br/>");const N=ho.detectInit(b);N&&Vt.debug("Detected early reinit: ",N);try{const{svg:F,bindFunctions:j}=await UOt(A,b,C);C.innerHTML=F,i&&await i(A),j&&j(C)}catch(F){RLe(F,E,R2.parseError)}}if(E.length>0)throw E[0]},HOt=function(i){f1.initialize(i)},$Le=async function(i,a,f){Vt.warn("mermaid.init is deprecated. Please use run instead."),i&&HOt(i);const p={postRenderCallback:f,querySelector:".mermaid"};typeof a=="string"?p.querySelector=a:a&&(a instanceof HTMLElement?p.nodes=[a]:p.nodes=a),await qOt(p)},zLe=async(i,{lazyLoad:a=!0}={})=>{OIt(...i),a===!1&&await J
2023-05-24 18:25:13 +00:00
* Wait for document loaded before starting the execution
*/window.addEventListener("load",VOt,!1)}const qLe=function(i){R2.parseError=i},BW=[];let kdt=!1;const GOt=async()=>{if(!kdt){for(kdt=!0;BW.length>0;){const i=BW.shift();if(i)try{await i()}catch(a){Vt.error("Error executing queue",a)}}kdt=!1}},HLe=async(i,a)=>new Promise((f,p)=>{const v=()=>new Promise((m,b)=>{f1.parse(i,a).then(E=>{m(E),f(E)},E=>{var C;Vt.error("Error parsing",E),(C=R2.parseError)==null||C.call(R2,E),b(E),p(E)})});BW.push(v),GOt().catch(p)}),UOt=(i,a,f)=>new Promise((p,v)=>{const m=()=>new Promise((b,E)=>{f1.render(i,a,f).then(C=>{b(C),p(C)},C=>{var A;Vt.error("Error parsing",C),(A=R2.parseError)==null||A.call(R2,C),E(C),v(C)})});BW.push(m),GOt().catch(v)}),R2={startOnLoad:!0,mermaidAPI:f1,parse:HLe,render:UOt,init:$Le,run:qOt,registerExternalDiagrams:zLe,initialize:HOt,parseError:void 0,contentLoaded:VOt,setParseErrorHandler:qLe,detectType:EW};var RW=function(){var i=function(Hi,Gn,Jn,Or){for(Jn=Jn||{},Or=Hi.length;Or--;Jn[Hi[Or]]=Gn);return Jn},a=[1,6],f=[1,7],p=[1,8],v=[1,9],m=[1,16],b=[1,11],E=[1,12],C=[1,13],A=[1,14],N=[1,15],F=[1,27],j=[1,33],R=[1,34],H=[1,35],Y=[1,36],rt=[1,37],J=[1,72],it=[1,73],ht=[1,74],Tt=[1,75],yt=[1,76],vt=[1,77],ut=[1,78],xt=[1,38],st=[1,39],Et=[1,40],gt=[1,41],pt=[1,42],Ct=[1,43],nt=[1,44],Nt=[1,45],dt=[1,46],Ft=[1,47],X=[1,48],Bt=[1,49],Rt=[1,50],mt=[1,51],Ot=[1,52],Gt=[1,53],Ve=[1,54],Cn=[1,55],xe=[1,56],Kn=[1,57],Se=[1,59],ee=[1,60],_e=[1,61],qe=[1,62],ce=[1,63],Ce=[1,64],he=[1,65],Re=[1,66],se=[1,67],Pe=[1,68],Qt=[1,69],vr=[24,52],$t=[24,44,46,47,48,49,50,51,52,54,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],ur=[15,24,44,46,47,48,49,50,51,52,54,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],le=[1,94],rr=[1,95],ar=[1,96],Qn=[1,97],Zn=[15,24,52],dn=[7,8,9,10,18,22,25,26,27,28],kn=[15,24,43,52],_r=[15,24,43,52,86,87,89,90],Rr=[15,43],os=[44,46,47,48,49,50,51,54,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],As={trace:function(){},yy:{},symbols_:{error:2,start:3,mermaidDoc:4,direction:5,directive:6,direction_tb:7,direction_bt:8,direction_rl:9,direction_lr:10,graphConfig:11,openDirective:12,typeDirective:13,closeDirective:14,NEWLINE:15,":":16,argDirective:17,open_directive:18,type_directive:19,arg_directive:20,close_directive:21,C4_CONTEXT:22,statements:23,EOF:24,C4_CONTAINER:25,C4_COMPONENT:26,C4_DYNAMIC:27,C4_DEPLOYMENT:28,otherStatements:29,diagramStatements:30,otherStatement:31,title:32,accDescription:33,acc_title:34,acc_title_value:35,acc_descr:36,acc_descr_value:37,acc_descr_multiline_value:38,boundaryStatement:39,boundaryStartStatement:40,boundaryStopStatement:41,boundaryStart:42,LBRACE:43,ENTERPRISE_BOUNDARY:44,attributes:45,SYSTEM_BOUNDARY:46,BOUNDARY:47,CONTAINER_BOUNDARY:48,NODE:49,NODE_L:50,NODE_R:51,RBRACE:52,diagramStatement:53,PERSON:54,PERSON_EXT:55,SYSTEM:56,SYSTEM_DB:57,SYSTEM_QUEUE:58,SYSTEM_EXT:59,SYSTEM_EXT_DB:60,SYSTEM_EXT_QUEUE:61,CONTAINER:62,CONTAINER_DB:63,CONTAINER_QUEUE:64,CONTAINER_EXT:65,CONTAINER_EXT_DB:66,CONTAINER_EXT_QUEUE:67,COMPONENT:68,COMPONENT_DB:69,COMPONENT_QUEUE:70,COMPONENT_EXT:71,COMPONENT_EXT_DB:72,COMPONENT_EXT_QUEUE:73,REL:74,BIREL:75,REL_U:76,REL_D:77,REL_L:78,REL_R:79,REL_B:80,REL_INDEX:81,UPDATE_EL_STYLE:82,UPDATE_REL_STYLE:83,UPDATE_LAYOUT_CONFIG:84,attribute:85,STR:86,STR_KEY:87,STR_VALUE:88,ATTRIBUTE:89,ATTRIBUTE_EMPTY:90,$accept:0,$end:1},terminals_:{2:"error",7:"direction_tb",8:"direction_bt",9:"direction_rl",10:"direction_lr",15:"NEWLINE",16:":",18:"open_directive",19:"type_directive",20:"arg_directive",21:"close_directive",22:"C4_CONTEXT",24:"EOF",25:"C4_CONTAINER",26:"C4_COMPONENT",27:"C4_DYNAMIC",28:"C4_DEPLOYMENT",32:"title",33:"accDescription",34:"acc_title",35:"acc_title_value",36:"acc_descr",37:"acc_descr_value",38:"acc_descr_multiline_value",43:"LBRACE",44:"ENTERPRISE_BOUNDARY",46:"SYSTEM_BOUNDARY",47:"BOUNDARY",48:"CONTAINER_BOUNDARY",49:"NODE",50:"NODE_L",51:"NODE_R",52:"RBRACE",54:"PERSON",55:"PERSON_EXT",56:"SYSTEM",57:"SYSTEM_DB",58:"SYSTEM_QUEUE",59:"SYSTEM_EXT",60:"SYST
2023-05-24 18:25:13 +00:00
`+Es.showPosition()+`
Expecting `+Ue.join(", ")+", got '"+(this.terminals_[rl]||rl)+"'":Cr="Parse error on line "+(is+1)+": Unexpected "+(rl==Ta?"end of input":"'"+(this.terminals_[rl]||rl)+"'"),this.parseError(Cr,{text:Es.match,token:this.terminals_[rl]||rl,line:Es.yylineno,loc:Ma,expected:Ue})}if(Ls[0]instanceof Array&&Ls.length>1)throw new Error("Parse Error: multiple actions possible at state: "+mu+", token: "+rl);switch(Ls[0]){case 1:Or.push(rl),Li.push(Es.yytext),Dn.push(Es.yylloc),Or.push(Ls[1]),rl=null,La=Es.yyleng,zn=Es.yytext,is=Es.yylineno,Ma=Es.yylloc;break;case 2:if($u=this.productions_[Ls[1]][1],ad.$=Li[Li.length-$u],ad._$={first_line:Dn[Dn.length-($u||1)].first_line,last_line:Dn[Dn.length-1].last_line,first_column:Dn[Dn.length-($u||1)].first_column,last_column:Dn[Dn.length-1].last_column},Ga&&(ad._$.range=[Dn[Dn.length-($u||1)].range[0],Dn[Dn.length-1].range[1]]),bp=this.performAction.apply(ad,[zn,La,is,Bs.yy,Ls[1],Li,Dn].concat(ga)),typeof bp<"u")return bp;$u&&(Or=Or.slice(0,-1*$u*2),Li=Li.slice(0,-1*$u),Dn=Dn.slice(0,-1*$u)),Or.push(this.productions_[Ls[1]][0]),Li.push(ad.$),Dn.push(ad._$),Gi=Ba[Or[Or.length-2]][Or[Or.length-1]],Or.push(Gi);break;case 3:return!0}}return!0}},ma=function(){var Hi={EOF:1,parseError:function(Jn,Or){if(this.yy.parser)this.yy.parser.parseError(Jn,Or);else throw new Error(Jn)},setInput:function(Gn,Jn){return this.yy=Jn||this.yy||{},this._input=Gn,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},input:function(){var Gn=this._input[0];this.yytext+=Gn,this.yyleng++,this.offset++,this.match+=Gn,this.matched+=Gn;var Jn=Gn.match(/(?:\r\n?|\n).*/g);return Jn?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),Gn},unput:function(Gn){var Jn=Gn.length,Or=Gn.split(/(?:\r\n?|\n)/g);this._input=Gn+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-Jn),this.offset-=Jn;var Fn=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),Or.length-1&&(this.yylineno-=Or.length-1);var Li=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:Or?(Or.length===Fn.length?this.yylloc.first_column:0)+Fn[Fn.length-Or.length].length-Or[0].length:this.yylloc.first_column-Jn},this.options.ranges&&(this.yylloc.range=[Li[0],Li[0]+this.yyleng-Jn]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject: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},less:function(Gn){this.unput(this.match.slice(Gn))},pastInput:function(){var Gn=this.matched.substr(0,this.matched.length-this.match.length);return(Gn.length>20?"...":"")+Gn.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var Gn=this.match;return Gn.length<20&&(Gn+=this._input.substr(0,20-Gn.length)),(Gn.substr(0,20)+(Gn.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var Gn=this.pastInput(),Jn=new Array(Gn.length+1).join("-");return Gn+this.upcomingInput()+`
`+Jn+"^"},test_match:function(Gn,Jn){var Or,Fn,Li;if(this.options.backtrack_lexer&&(Li={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&&(Li.yylloc.range=this.yylloc.range.slice(0))),Fn=Gn[0].match(/(?:\r\n?|\n).*/g),Fn&&(this.yylineno+=Fn.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Fn?Fn[Fn.length-1].length-Fn[Fn.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+Gn[0].length},this.yytext+=Gn[0],this.match+=Gn[0],this.matches=Gn,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(Gn[0].length),this.matched+=Gn[0],Or=this.performAction.call(this,this.yy,this,Jn,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),Or)return Or;if(this._backtrack){for(var Dn in Li)this[Dn]=Li[Dn];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var Gn,Jn,Or,Fn;this._more||(this.yytext="",this.match="");for(var Li=this._currentRules(),Dn=0;Dn<Li.length;Dn++)if(Or=this._input.match(this.rules[Li[Dn]]),Or&&(!Jn||Or[0].length>Jn[0].length)){if(Jn=Or,Fn=Dn,this.options.backtrack_lexer){if(Gn=this.test_match(Or,Li[Dn]),Gn!==!1)return Gn;if(this._backtrack){Jn=!1;continue}else return!1}else if(!this.options.flex)break}return Jn?(Gn=this.test_match(Jn,Li[Fn]),Gn!==!1?Gn:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var Jn=this.next();return Jn||this.lex()},begin:function(Jn){this.conditionStack.push(Jn)},popState:function(){var Jn=this.conditionStack.length-1;return Jn>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(Jn){return Jn=this.conditionStack.length-1-Math.abs(Jn||0),Jn>=0?this.conditionStack[Jn]:"INITIAL"},pushState:function(Jn){this.begin(Jn)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(Jn,Or,Fn,Li){switch(Fn){case 0:return this.begin("open_directive"),18;case 1:return 7;case 2:return 8;case 3:return 9;case 4:return 10;case 5:return this.begin("type_directive"),19;case 6:return this.popState(),this.begin("arg_directive"),16;case 7:return this.popState(),this.popState(),21;case 8:return 20;case 9:return 32;case 10:return 33;case 11:return this.begin("acc_title"),34;case 12:return this.popState(),"acc_title_value";case 13:return this.begin("acc_descr"),36;case 14:return this.popState(),"acc_descr_value";case 15:this.begin("acc_descr_multiline");break;case 16:this.popState();break;case 17:return"acc_descr_multiline_value";case 18:break;case 19:c;break;case 20:return 15;case 21:break;case 22:return 22;case 23:return 25;case 24:return 26;case 25:return 27;case 26:return 28;case 27:return this.begin("person_ext"),55;case 28:return this.begin("person"),54;case 29:return this.begin("system_ext_queue"),61;case 30:return this.begin("system_ext_db"),60;case 31:return this.begin("system_ext"),59;case 32:return this.begin("system_queue"),58;case 33:return this.begin("system_db"),57;case 34:return this.begin("system"),56;case 35:return this.begin("boundary"),47;case 36:return this.begin("enterprise_boundary"),44;case 37:return this.begin("system_boundary"),46;case 38:return this.begin("container_ext_queue"),67;case 39:return this.begin("container_ext_db"),66;case 40:return this.begin("container_ext"),65;case 41:return this.begin("container_queue"),64;case 42:return this.begin("container_db"),63;case 43:return this.begin("container"),62;case 44:return this.begin("container_boundary"),48;case 45:return this.begin("component_ext_queue"),73;case 46:return this.begin("component_ext_db"),72;case 47:return this.begin("component_ext"),71;case 48:return this.begin("component_queue"),70;case 49:return this.begin("component_db"),69;case 50:return this.begin("component"),68;case 51:return this.begin("node"),49;case 52:return this.begin("node"),49;case 53:return this.begin("node_l"),50;case 54:return this.begin("node_r"),51;case 55:return this.begin("rel"),74;case 56:return this.begin("birel"),75;case 57:return this.begin("rel_u"),76;case 58:return this.begin("rel_u"),76;case 59:return this.begin("rel_d"),77;case 60:return this.begin("rel_d"),77;case 61:return this.begin("rel_l"),78;case 62:return this.begin("rel_l"),78;case 63:return this.begin("rel_r"),79;case 64:return this.begin("rel_r"),79;case 65:return this.begin("rel_b"),80;case 66:return this.begin("rel_index"),81;case 67:return this.begin("update_el_style"),82;case 68:return this.begin("update_rel_style"),83;case 69:return this.begin("update_layout_config"),84;case 70:return"EOF_IN_STRUCT";case 71:return this.begin("attribute"),"ATTRIBUTE_EMPTY";case 72:this.begin("attribute");break;case 73:this.popState(),this.popState();break;case 74:return 90;case 75:break;case 76:return 90;case 77:this.begin("string");break;case 78:this.popState();break;case 79:return"STR";case 80:this.begin("string_kv");break;case 81:return this.begin("string_kv_key"),"STR_KEY";case 82:this.popState(),this.begin("string_kv_value");break;case 83:return"STR_VALUE";case 84:this.popState(),this.popState();break;case 85:return"STR";case 86:return"LBRACE";case 87:return"RBRACE";case 88:return"SPACE";case 89:return"EOL";case 90:return 24}},rules:[/^(?:%%\{)/,/^(?:.
2023-05-24 18:25:13 +00:00
stroke: ${i.personBorder};
fill: ${i.personBkg};
}
`,init:i=>{iPt.setConf(i.c4)}}},Symbol.toStringTag,{value:"Module"}));var Ldt=function(){var i=function(wg,cs,zs,Da){for(zs=zs||{},Da=wg.length;Da--;zs[wg[Da]]=cs);return zs},a=[1,9],f=[1,7],p=[1,6],v=[1,8],m=[1,20,21,22,23,38,44,46,48,52,67,68,88,89,90,91,92,93,97,107,108,111,113,114,120,121,122,123,124,125,126,127,128,129],b=[2,10],E=[1,20],C=[1,21],A=[1,22],N=[1,23],F=[1,30],j=[1,32],R=[1,33],H=[1,34],Y=[1,63],rt=[1,49],J=[1,53],it=[1,36],ht=[1,37],Tt=[1,38],yt=[1,39],vt=[1,40],ut=[1,57],xt=[1,64],st=[1,52],Et=[1,54],gt=[1,56],pt=[1,60],Ct=[1,61],nt=[1,41],Nt=[1,42],dt=[1,43],Ft=[1,44],X=[1,62],Bt=[1,51],Rt=[1,55],mt=[1,58],Ot=[1,59],Gt=[1,50],Ve=[1,67],Cn=[1,72],xe=[1,20,21,22,23,38,42,44,46,48,52,67,68,88,89,90,91,92,93,97,107,108,111,113,114,120,121,122,123,124,125,126,127,128,129],Kn=[1,76],Se=[1,75],ee=[1,77],_e=[20,21,23,82,83],qe=[1,100],ce=[1,105],Ce=[1,108],he=[1,109],Re=[1,102],se=[1,107],Pe=[1,110],Qt=[1,103],vr=[1,115],$t=[1,114],ur=[1,104],le=[1,106],rr=[1,111],ar=[1,112],Qn=[1,113],Zn=[1,116],dn=[20,21,22,23,82,83],kn=[20,21,22,23,54,82,83],_r=[20,21,22,23,40,52,54,56,58,60,62,64,66,67,68,70,72,74,75,77,82,83,93,97,107,108,111,113,114,124,125,126,127,128,129],Rr=[20,21,23],os=[20,21,23,52,67,68,82,83,93,97,107,108,111,113,114,124,125,126,127,128,129],As=[1,12,20,21,22,23,24,38,42,44,46,48,52,67,68,88,89,90,91,92,93,97,107,108,111,113,114,120,121,122,123,124,125,126,127,128,129],ma=[52,67,68,93,97,107,108,111,113,114,124,125,126,127,128,129],Zr=[1,151],Hi=[1,159],Gn=[1,160],Jn=[1,161],Or=[1,162],Fn=[1,146],Li=[1,147],Dn=[1,142],Ba=[1,143],zn=[1,154],is=[1,155],La=[1,156],Xa=[1,157],Ta=[1,158],ga=[1,163],Es=[1,164],Bs=[1,149],_a=[1,152],Ma=[1,148],Ga=[1,145],ov=[20,21,22,23,38,42,44,46,48,52,67,68,88,89,90,91,92,93,97,107,108,111,113,114,120,121,122,123,124,125,126,127,128,129],rl=[1,167],mu=[20,21,22,23,26,52,67,68,93,107,108,111,113,114,124,125,126,127,128,129],Ls=[20,21,22,23,24,26,38,40,41,42,52,57,59,61,63,65,67,68,69,71,73,74,76,78,82,83,88,89,90,91,92,93,94,97,107,108,111,113,114,115,116,124,125,126,127,128,129],bp=[12,21,22,24],ad=[22,108],Rl=[1,252],$u=[1,247],Gi=[1,248],Ue=[1,256],Cr=[1,253],ci=[1,250],Qa=[1,249],kc=[1,251],yu=[1,254],yo=[1,255],xu=[1,257],uf=[1,275],k3=[20,21,23,108],v1=[20,21,22,23,67,68,88,104,107,108,111,112,113,114,115],E3={trace:function(){},yy:{},symbols_:{error:2,start:3,mermaidDoc:4,directive:5,openDirective:6,typeDirective:7,closeDirective:8,separator:9,":":10,argDirective:11,open_directive:12,type_directive:13,arg_directive:14,close_directive:15,graphConfig:16,document:17,line:18,statement:19,SEMI:20,NEWLINE:21,SPACE:22,EOF:23,GRAPH:24,NODIR:25,DIR:26,FirstStmtSeperator:27,ending:28,endToken:29,spaceList:30,spaceListNewline:31,verticeStatement:32,styleStatement:33,linkStyleStatement:34,classDefStatement:35,classStatement:36,clickStatement:37,subgraph:38,text:39,SQS:40,SQE:41,end:42,direction:43,acc_title:44,acc_title_value:45,acc_descr:46,acc_descr_value:47,acc_descr_multiline_value:48,link:49,node:50,styledVertex:51,AMP:52,vertex:53,STYLE_SEPARATOR:54,idString:55,DOUBLECIRCLESTART:56,DOUBLECIRCLEEND:57,PS:58,PE:59,"(-":60,"-)":61,STADIUMSTART:62,STADIUMEND:63,SUBROUTINESTART:64,SUBROUTINEEND:65,VERTEX_WITH_PROPS_START:66,ALPHA:67,COLON:68,PIPE:69,CYLINDERSTART:70,CYLINDEREND:71,DIAMOND_START:72,DIAMOND_STOP:73,TAGEND:74,TRAPSTART:75,TRAPEND:76,INVTRAPSTART:77,INVTRAPEND:78,linkStatement:79,arrowText:80,TESTSTR:81,START_LINK:82,LINK:83,textToken:84,STR:85,MD_STR:86,keywords:87,STYLE:88,LINKSTYLE:89,CLASSDEF:90,CLASS:91,CLICK:92,DOWN:93,UP:94,textNoTags:95,textNoTagsToken:96,DEFAULT:97,stylesOpt:98,alphaNum:99,CALLBACKNAME:100,CALLBACKARGS:101,HREF:102,LINK_TARGET:103,HEX:104,numList:105,INTERPOLATE:106,NUM:107,COMMA:108,style:109,styleComponent:110,MINUS:111,UNIT:112,BRKT:113,DOT:114,PCT:115,TAGSTART:116,alphaNumToken:117,idStringToken:118,alphaNumStatement:119,direction_tb:120,direction_bt:121,direction_rl:122,direction_lr:123,PUNCTUATION:124,UNICODE_TEXT:125,PLUS:126,EQUALS:127,MULT:128,UNDERSCORE:129,graphCodeTokens:130,ARROW_CROSS:131,ARROW_POINT:132,ARROW_CIRCLE:
`+ah.showPosition()+`
Expecting `+Ko.join(", ")+", got '"+(this.terminals_[w1]||w1)+"'":bk="Parse error on line "+(lf+1)+": Unexpected "+(w1==wp?"end of input":"'"+(this.terminals_[w1]||w1)+"'"),this.parseError(bk,{text:ah.match,token:this.terminals_[w1]||w1,line:ah.yylineno,loc:z5,expected:Ko})}if(cd[0]instanceof Array&&cd.length>1)throw new Error("Parse Error: multiple actions possible at state: "+mp+", token: "+w1);switch(cd[0]){case 1:Da.push(w1),Rc.push(ah.yytext),Oe.push(ah.yylloc),Da.push(cd[1]),w1=null,fm=ah.yyleng,Ye=ah.yytext,lf=ah.yylineno,z5=ah.yylloc;break;case 2:if(Ec=this.productions_[cd[1]][1],cv.$=Rc[Rc.length-Ec],cv._$={first_line:Oe[Oe.length-(Ec||1)].first_line,last_line:Oe[Oe.length-1].last_line,first_column:Oe[Oe.length-(Ec||1)].first_column,last_column:Oe[Oe.length-1].last_column},ME&&(cv._$.range=[Oe[Oe.length-(Ec||1)].range[0],Oe[Oe.length-1].range[1]]),dm=this.performAction.apply(cv,[Ye,fm,lf,od.yy,cd[1],Rc,Oe].concat(j5)),typeof dm<"u")return dm;Ec&&(Da=Da.slice(0,-1*Ec*2),Rc=Rc.slice(0,-1*Ec),Oe=Oe.slice(0,-1*Ec)),Da.push(this.productions_[cd[1]][0]),Rc.push(cv.$),Oe.push(cv._$),pk=vp[Da[Da.length-2]][Da[Da.length-1]],Da.push(pk);break;case 3:return!0}}return!0}},yL=function(){var wg={EOF:1,parseError:function(zs,Da){if(this.yy.parser)this.yy.parser.parseError(zs,Da);else throw new Error(zs)},setInput:function(cs,zs){return this.yy=zs||this.yy||{},this._input=cs,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},input:function(){var cs=this._input[0];this.yytext+=cs,this.yyleng++,this.offset++,this.match+=cs,this.matched+=cs;var zs=cs.match(/(?:\r\n?|\n).*/g);return zs?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),cs},unput:function(cs){var zs=cs.length,Da=cs.split(/(?:\r\n?|\n)/g);this._input=cs+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-zs),this.offset-=zs;var ki=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),Da.length-1&&(this.yylineno-=Da.length-1);var Rc=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:Da?(Da.length===ki.length?this.yylloc.first_column:0)+ki[ki.length-Da.length].length-Da[0].length:this.yylloc.first_column-zs},this.options.ranges&&(this.yylloc.range=[Rc[0],Rc[0]+this.yyleng-zs]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject: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).
2023-05-24 18:25:13 +00:00
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(cs){this.unput(this.match.slice(cs))},pastInput:function(){var cs=this.matched.substr(0,this.matched.length-this.match.length);return(cs.length>20?"...":"")+cs.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var cs=this.match;return cs.length<20&&(cs+=this._input.substr(0,20-cs.length)),(cs.substr(0,20)+(cs.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var cs=this.pastInput(),zs=new Array(cs.length+1).join("-");return cs+this.upcomingInput()+`
`+zs+"^"},test_match:function(cs,zs){var Da,ki,Rc;if(this.options.backtrack_lexer&&(Rc={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&&(Rc.yylloc.range=this.yylloc.range.slice(0))),ki=cs[0].match(/(?:\r\n?|\n).*/g),ki&&(this.yylineno+=ki.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:ki?ki[ki.length-1].length-ki[ki.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+cs[0].length},this.yytext+=cs[0],this.match+=cs[0],this.matches=cs,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(cs[0].length),this.matched+=cs[0],Da=this.performAction.call(this,this.yy,this,zs,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),Da)return Da;if(this._backtrack){for(var Oe in Rc)this[Oe]=Rc[Oe];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var cs,zs,Da,ki;this._more||(this.yytext="",this.match="");for(var Rc=this._currentRules(),Oe=0;Oe<Rc.length;Oe++)if(Da=this._input.match(this.rules[Rc[Oe]]),Da&&(!zs||Da[0].length>zs[0].length)){if(zs=Da,ki=Oe,this.options.backtrack_lexer){if(cs=this.test_match(Da,Rc[Oe]),cs!==!1)return cs;if(this._backtrack){zs=!1;continue}else return!1}else if(!this.options.flex)break}return zs?(cs=this.test_match(zs,Rc[ki]),cs!==!1?cs:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var zs=this.next();return zs||this.lex()},begin:function(zs){this.conditionStack.push(zs)},popState:function(){var zs=this.conditionStack.length-1;return zs>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(zs){return zs=this.conditionStack.length-1-Math.abs(zs||0),zs>=0?this.conditionStack[zs]:"INITIAL"},pushState:function(zs){this.begin(zs)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(zs,Da,ki,Rc){switch(ki){case 0:return this.begin("open_directive"),12;case 1:return this.begin("type_directive"),13;case 2:return this.popState(),this.begin("arg_directive"),10;case 3:return this.popState(),this.popState(),15;case 4:return 14;case 5:return this.begin("acc_title"),44;case 6:return this.popState(),"acc_title_value";case 7:return this.begin("acc_descr"),46;case 8:return this.popState(),"acc_descr_value";case 9:this.begin("acc_descr_multiline");break;case 10:this.popState();break;case 11:return"acc_descr_multiline_value";case 12:this.begin("md_string");break;case 13:return"MD_STR";case 14:this.popState();break;case 15:this.begin("string");break;case 16:this.popState();break;case 17:return"STR";case 18:return 88;case 19:return 97;case 20:return 89;case 21:return 106;case 22:return 90;case 23:return 91;case 24:this.begin("href");break;case 25:this.popState();break;case 26:return 102;case 27:this.begin("callbackname");break;case 28:this.popState();break;case 29:this.popState(),this.begin("callbackargs");break;case 30:return 100;case 31:this.popState();break;case 32:return 101;case 33:this.begin("click");break;case 34:this.popState();break;case 35:return 92;case 36:return zs.lex.firstGraph()&&this.begin("dir"),24;case 37:return zs.lex.firstGraph()&&this.begin("dir"),24;case 38:return zs.lex.firstGraph()&&this.begin("dir"),24;case 39:return 38;case 40:return 42;case 41:return 103;case 42:return 103;case 43:return 103;case 44:return 103;case 45:return this.popState(),25;case 46:return this.popState(),26;case 47:return this.popState(),26;case 48:return this.popState(),26;case 49:return this.popState(),26;case 50:return this.popState(),26;case 51:return this.popState(),26;case 52:return this.popState(),26;case 53:return this.popState(),26;case 54:return this.popState(),26;case 55:return this.popState(),26;case 56:return 120;case 57:return 121;case 58:return 122;case 59:return 123;case 60:return 107;case 61:return 113;case 62:return 54;case 63:return 68;case 64:return 52;case 65:return 20;case 66:return 108;case 67:return 128;case 68:return 83;case 69:return 83;case 70:return 83;case 71:return 83;case 72:return 82;case 73:return 82;case 74:return 82;case 75:return 60;case 76:return 61;case 77:return 62;case 78:return 63;case 79:return 64;case 80:return 65;case 81:return 66;case 82:return 70;case 83:return 71;case 84:return 56;case 85:return 57;case 86:return 111;case 87:return 114;case 88:return 129;case 89:return 126;case 90:return 115;case 91:return 127;case 92:return 127;case 93:return 116;case 94:return 74;case 95:return 94;case 96:return"SEP";case 97:return 93;case 98:return 67;case 99:return 76;case 100:return 75;case 101:return 78;case 102:return 77;case 103:return 124;case 104:return 125;case 105:return 69;case 106:return 58;case 107:return 59;case 108:return 40;case 109:return 41;case 110:return 72;case 111:return 73;case 112:return 135;case 113:return 21;case 114:return 22;case 115:return 23}},rules:[/^(?:%%\{)/,/^(?:((?:(?!\}%%)[^:.])*))/,/^(?::)/,/^(?:\}%%)/,/^(?:((?:(?!\}%%).|\n)*))/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:["][`])/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:style\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolat
`),v=0;v<p.length;v++)f.append("tspan").attr("xml:space","preserve").attr("dy","1em").attr("x","1").text(p[v]);return p3(f,a.labelStyle),f}function tBe(i){for(var a="",f=!1,p,v=0;v<i.length;++v)if(p=i[v],f){switch(p){case"n":a+=`
`;break;default:a+=p}f=!1}else p==="\\"?f=!0:a+=p;return a}function l0t(i,a,f){var p=a.label,v=i.append("g");a.labelType==="svg"?ZFe(v,a):typeof p!="string"||a.labelType==="html"?u0t(v,a):JFe(v,a);var m=v.node().getBBox(),b;switch(f){case"top":b=-a.height/2;break;case"bottom":b=a.height/2-m.height;break;default:b=-m.height/2}return v.attr("transform","translate("+-m.width/2+","+b+")"),v}var h0t=function(i,a){var f=a.nodes().filter(function(m){return cFt(a,m)}),p=i.selectAll("g.cluster").data(f,function(m){return m});sm(p.exit(),a).style("opacity",0).remove();var v=p.enter().append("g").attr("class","cluster").attr("id",function(m){var b=a.node(m);return b.id}).style("opacity",0).each(function(m){var b=a.node(m),E=wr(this);wr(this).append("rect");var C=E.append("g").attr("class","label");l0t(C,b,b.clusterLabelPos)});return p=p.merge(v),p=sm(p,a).style("opacity",1),p.selectAll("rect").each(function(m){var b=a.node(m),E=wr(this);p3(E,b.style)}),p};function eBe(i){h0t=i}let f0t=function(i,a){var f=i.selectAll("g.edgeLabel").data(a.edges(),function(v){return uFt(v)}).classed("update",!0);f.exit().remove(),f.enter().append("g").classed("edgeLabel",!0).style("opacity",0),f=i.selectAll("g.edgeLabel"),f.each(function(v){var m=wr(this);m.select(".label").remove();var b=a.edge(v),E=l0t(m,a.edge(v),0).classed("label",!0),C=E.node().getBBox();b.labelId&&E.attr("id",b.labelId),no(b,"width")||(b.width=C.width),no(b,"height")||(b.height=C.height)});var p;return f.exit?p=f.exit():p=f.selectAll(null),sm(p,a).style("opacity",0).remove(),f};function nBe(i){f0t=i}function hFt(i,a){return i.intersect(a)}var d0t=function(i,a,f){var p=i.selectAll("g.edgePath").data(a.edges(),function(b){return uFt(b)}).classed("update",!0),v=oBe(p,a);cBe(p,a);var m=p.merge!==void 0?p.merge(v):p;return sm(m,a).style("opacity",1),m.each(function(b){var E=wr(this),C=a.edge(b);C.elem=this,C.id&&E.attr("id",C.id),lFt(E,C.class,(E.classed("update")?"update ":"")+"edgePath")}),m.selectAll("path.path").each(function(b){var E=a.edge(b);E.arrowheadId=fK("arrowhead");var C=wr(this).attr("marker-end",function(){return"url("+iBe(location.href,E.arrowheadId)+")"}).style("fill","none");sm(C,a).attr("d",function(A){return sBe(a,A)}),p3(C,E.style)}),m.selectAll("defs *").remove(),m.selectAll("defs").each(function(b){var E=a.edge(b),C=f[E.arrowhead];C(wr(this),E.arrowheadId,E,"arrowhead")}),m};function rBe(i){d0t=i}function iBe(i,a){var f=i.split("#")[0];return f+"#"+a}function sBe(i,a){var f=i.edge(a),p=i.node(a.v),v=i.node(a.w),m=f.points.slice(1,f.points.length-1);return m.unshift(hFt(p,m[0])),m.push(hFt(v,m[m.length-1])),fFt(f,m)}function fFt(i,a){var f=(Z9||q8e.line)().x(function(p){return p.x}).y(function(p){return p.y});return(f.curve||f.interpolate)(i.curve),f(a)}function aBe(i){var a=i.getBBox(),f=i.ownerSVGElement.getScreenCTM().inverse().multiply(i.getScreenCTM()).translate(a.width/2,a.height/2);return{x:f.e,y:f.f}}function oBe(i,a){var f=i.enter().append("g").attr("class","edgePath").style("opacity",0);return f.append("path").attr("class","path").attr("d",function(p){var v=a.edge(p),m=a.node(p.v).elem,b=bE(v.points.length).map(function(){return aBe(m)});return fFt(v,b)}),f.append("defs"),f}function cBe(i,a){var f=i.exit();sm(f,a).style("opacity",0).remove()}var g0t=function(i,a,f){var p=a.nodes().filter(function(b){return!cFt(a,b)}),v=i.selectAll("g.node").data(p,function(b){return b}).classed("update",!0);v.exit().remove(),v.enter().append("g").attr("class","node").style("opacity",0),v=i.selectAll("g.node"),v.each(function(b){var E=a.node(b),C=wr(this);lFt(C,E.class,(C.classed("update")?"update ":"")+"node"),C.select("g.label").remove();var A=C.append("g").attr("class","label"),N=l0t(A,E),F=f[E.shape],j=fN(N.node().getBBox(),"width","height");E.elem=this,E.id&&C.attr("id",E.id),E.labelId&&A.attr("id",E.labelId),no(E,"width")&&(j.width=E.width),no(E,"height")&&(j.height=E.height),j.width+=E.paddingLeft+E.paddingRight,j.height+=E.paddingTop+E.paddingBottom,A.attr("transform","translate("+(E.paddingLeft-E.paddingRight)/2+","+(E.paddingTop-E.paddingBottom)/2+")");var R
`),b.style===void 0&&(N.style=N.style||"stroke: #333; stroke-width: 1.5px;fill:none"),N.labelStyle=N.labelStyle.replace("color:","fill:"))),N.id=E,N.class=C+" "+A,N.minlen=b.length||1,a.setEdge(f.db.lookUpDomId(b.start),f.db.lookUpDomId(b.end),N,p)})},LBe={setConf:ABe,addVertices:SFt,addEdges:AFt,getClasses:function(i,a){Vt.info("Extracting classes"),a.db.clear();try{return a.parse(i),a.db.getClasses()}catch(f){return Vt.error(f),{}}},draw:function(i,a,f,p){Vt.info("Drawing flowchart"),p.db.clear();const{securityLevel:v,flowchart:m}=Me();let b;v==="sandbox"&&(b=wr("#i"+a));const E=wr(v==="sandbox"?b.nodes()[0].contentDocument.body:"body"),C=v==="sandbox"?b.nodes()[0].contentDocument:document;let A=p.db.getDirection();A===void 0&&(A="TD");const N=m.nodeSpacing||50,F=m.rankSpacing||50,j=new d1({multigraph:!0,compound:!0}).setGraph({rankdir:A,nodesep:N,ranksep:F,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});let R;const H=p.db.getSubGraphs();for(let vt=H.length-1;vt>=0;vt--)R=H[vt],p.db.addVertex(R.id,R.title,"group",void 0,R.classes);const Y=p.db.getVertices();Vt.warn("Get vertices",Y);const rt=p.db.getEdges();let J=0;for(J=H.length-1;J>=0;J--){R=H[J],YLt("cluster").append("text");for(let vt=0;vt<R.nodes.length;vt++)Vt.warn("Setting subgraph",R.nodes[vt],p.db.lookUpDomId(R.nodes[vt]),p.db.lookUpDomId(R.id)),j.setParent(p.db.lookUpDomId(R.nodes[vt]),p.db.lookUpDomId(R.id))}SFt(Y,j,a,E,C,p),AFt(rt,j,p);const it=new yBe;SBe.addToRender(it),it.arrows().none=function(ut,xt,st,Et){const pt=ut.append("marker").attr("id",xt).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto").append("path").attr("d","M 0 0 L 0 0 L 0 0 z");p3(pt,st[Et+"Style"])},it.arrows().normal=function(ut,xt){ut.append("marker").attr("id",xt).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowheadPath").style("stroke-width",1).style("stroke-dasharray","1,0")};const ht=E.select(`[id="${a}"]`),Tt=E.select("#"+a+" g");for(it(Tt,j),Tt.selectAll("g.node").attr("title",function(){return p.db.getTooltip(this.id)}),p.db.indexNodes("subGraph"+J),J=0;J<H.length;J++)if(R=H[J],R.title!=="undefined"){const vt=C.querySelectorAll("#"+a+' [id="'+p.db.lookUpDomId(R.id)+'"] rect'),ut=C.querySelectorAll("#"+a+' [id="'+p.db.lookUpDomId(R.id)+'"]'),xt=vt[0].x.baseVal.value,st=vt[0].y.baseVal.value,Et=vt[0].width.baseVal.value,pt=wr(ut[0]).select(".label");pt.attr("transform",`translate(${xt+Et/2}, ${st+14})`),pt.attr("id",a+"Text");for(let Ct=0;Ct<R.classes.length;Ct++)ut[0].classList.add(R.classes[Ct])}if(!m.htmlLabels){const vt=C.querySelectorAll('[id="'+a+'"] .edgeLabel .label');for(const ut of vt){const xt=ut.getBBox(),st=C.createElementNS("http://www.w3.org/2000/svg","rect");st.setAttribute("rx",0),st.setAttribute("ry",0),st.setAttribute("width",xt.width),st.setAttribute("height",xt.height),ut.insertBefore(st,ut.firstChild)}}nE(j,ht,m.diagramPadding,m.useMaxWidth),Object.keys(Y).forEach(function(vt){const ut=Y[vt];if(ut.link){const xt=E.select("#"+a+' [id="'+p.db.lookUpDomId(vt)+'"]');if(xt){const st=C.createElementNS("http://www.w3.org/2000/svg","a");st.setAttributeNS("http://www.w3.org/2000/svg","class",ut.classes.join(" ")),st.setAttributeNS("http://www.w3.org/2000/svg","href",ut.link),st.setAttributeNS("http://www.w3.org/2000/svg","rel","noopener"),v==="sandbox"?st.setAttributeNS("http://www.w3.org/2000/svg","target","_top"):ut.linkTarget&&st.setAttributeNS("http://www.w3.org/2000/svg","target",ut.linkTarget);const Et=xt.insert(function(){return st},":first-child"),gt=xt.select(".label-container");gt&&Et.append(function(){return gt.node()});const pt=xt.select(".label");pt&&Et.append(function(){return pt.node()})}}})}};function A5(i){var a={options:{directed:i.isDirected(),multigraph:i.isMultigraph(),compound:i.isCompound()},nodes:MBe(i),edges:DBe(i)};return sf(i.graph())||(a.va
2023-05-24 18:25:13 +00:00
`;break}case-3:{b=`\r
`;break}case-2:{b=a?" ":" ";break}case-1:{if(!a&&v)continue;b=" ";break}default:b=String.fromCharCode(m)}v=m===-2,p.push(b)}return p.join("")}const bje={[42]:gp,[43]:gp,[45]:gp,[48]:gp,[49]:gp,[50]:gp,[51]:gp,[52]:gp,[53]:gp,[54]:gp,[55]:gp,[56]:gp,[57]:gp,[62]:BFt},vje={[91]:yRe},wje={[-2]:k0t,[-1]:k0t,[32]:k0t},mje=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:vje,disable:{null:[]},document:bje,flow:{[35]:CRe,[42]:pK,[45]:[WFt,pK],[60]:MRe,[61]:WFt,[95]:pK,[96]:zFt,[126]:zFt},flowInitial:wje,insideSpan:{null:[y0t,uje]},string:{[38]:$Ft,[92]:RFt},text:{[-5]:T0t,[-4]:T0t,[-3]:T0t,[33]:URe,[38]:$Ft,[42]:y0t,[60]:[ZBe,NRe],[91]:KRe,[92]:[TRe,RFt],[93]:E0t,[95]:y0t,[96]:lRe}},Symbol.toStringTag,{value:"Module"}));function yje(i={}){const a=BBe([mje].concat(i.extensions||[])),f={defined:[],lazy:{},constructs:a,content:p(GBe),document:p(WBe),flow:p(oje),string:p(lje),text:p(hje)};return f;function p(v){return m;function m(b){return dje(f,v,b)}}}const XFt=/[\0\t\n\r]/g;function xje(){let i=1,a="",f=!0,p;return v;function v(m,b,E){const C=[];let A,N,F,j,R;for(m=a+m.toString(b),F=0,a="",f&&(m.charCodeAt(0)===65279&&F++,f=void 0);F<m.length;){if(XFt.lastIndex=F,A=XFt.exec(m),j=A&&A.index!==void 0?A.index:m.length,R=m.charCodeAt(j),!A){a=m.slice(F);break}if(R===10&&F===j&&p)C.push(-3),p=void 0;else switch(p&&(C.push(-5),p=void 0),F<j&&(C.push(m.slice(F,j)),i+=j-F),R){case 0:{C.push(65533),i++;break}case 9:{for(N=Math.ceil(i/4)*4,C.push(-2);i++<N;)C.push(-1);break}case 10:{C.push(-4),i=1;break}default:p=!0,i=1}F=j+1}return E&&(p&&C.push(-5),a&&C.push(a),C.push(null)),C}}function kje(i){for(;!qFt(i););return i}function QFt(i,a){const f=Number.parseInt(i,a);return f<9||f===11||f>13&&f<32||f>126&&f<160||f>55295&&f<57344||f>64975&&f<65008||(f&65535)===65535||(f&65535)===65534||f>1114111?"<22>":String.fromCharCode(f)}const Eje=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Tje(i){return i.replace(Eje,_je)}function _je(i,a,f){if(a)return a;if(f.charCodeAt(0)===35){const v=f.charCodeAt(1),m=v===120||v===88;return QFt(f.slice(m?2:1),m?16:10)}return x0t(f)||i}function bK(i){return!i||typeof i!="object"?"":"position"in i||"type"in i?ZFt(i.position):"start"in i||"end"in i?ZFt(i):"line"in i||"column"in i?_0t(i):""}function _0t(i){return JFt(i&&i.line)+":"+JFt(i&&i.column)}function ZFt(i){return _0t(i&&i.start)+"-"+_0t(i&&i.end)}function JFt(i){return i&&typeof i=="number"?i:1}const tBt={}.hasOwnProperty,eBt=function(i,a,f){return typeof a!="string"&&(f=a,a=void 0),Cje(f)(kje(yje(f).document().write(xje()(i,a,!0))))};function Cje(i){const a={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:E($t),autolinkProtocol:gt,autolinkEmail:gt,atxHeading:E(se),blockQuote:E(qe),characterEscape:gt,characterReference:gt,codeFenced:E(ce),codeFencedFenceInfo:C,codeFencedFenceMeta:C,codeIndented:E(ce,C),codeText:E(Ce,C),codeTextData:gt,data:gt,codeFlowValue:gt,definition:E(he),definitionDestinationString:C,definitionLabelString:C,definitionTitleString:C,emphasis:E(Re),hardBreakEscape:E(Pe),hardBreakTrailing:E(Pe),htmlFlow:E(Qt,C),htmlFlowData:gt,htmlText:E(Qt,C),htmlTextData:gt,image:E(vr),label:C,link:E($t),listItem:E(le),listItemValue:H,listOrdered:E(ur,R),listUnordered:E(ur),paragraph:E(rr),reference:Cn,referenceString:C,resourceDestinationString:C,resourceTitleString:C,setextHeading:E(se),strong:E(ar),thematicBreak:E(Zn)},exit:{atxHeading:N(),atxHeadingSequence:ut,autolink:N(),autolinkEmail:_e,autolinkProtocol:ee,blockQuote:N(),characterEscapeValue:pt,characterReferenceMarkerHexadecimal:Kn,characterReferenceMarkerNumeric:Kn,characterReferenceValue:Se,codeFenced:N(it),codeFencedFence:J,codeFencedFenceInfo:Y,codeFencedFenceMeta:rt,codeFlowValue:pt,codeIndented:N(ht),codeText:N(Ft),codeTextData:pt,data:pt,definition:N(),definitionDestinationString:vt,definitionLabelString:Tt,definitionTitleString:yt,emphasis:N(),hardBreakEscape:N(nt),hardBreakTrailing:N(nt),htmlFlow:N(Nt),htmlFlowData:pt,htmlText:N(dt),htmlTextData:pt,image:N(Bt)
`);return wA(a)}function Lje(i){const a=Aje(i),{children:f}=eBt(a),p=[[]];let v=0;function m(b,E="normal"){b.type==="text"?b.value.split(`
`).forEach((A,N)=>{N!==0&&(v++,p.push([])),A.split(" ").forEach(F=>{F&&p[v].push({content:F,type:E})})}):(b.type==="strong"||b.type==="emphasis")&&b.children.forEach(C=>{m(C,b.type)})}return f.forEach(b=>{b.type==="paragraph"&&b.children.forEach(E=>{m(E)})}),p}function Mje(i){const{children:a}=eBt(i);function f(p){return p.type==="text"?p.value.replace(/\n/g,"<br/>"):p.type==="strong"?`<strong>${p.children.map(f).join("")}</strong>`:p.type==="emphasis"?`<em>${p.children.map(f).join("")}</em>`:p.type==="paragraph"?`<p>${p.children.map(f).join("")}</p>`:`Unsupported markdown: ${p.type}`}return a.map(f).join("")}function Dje(i){return Intl.Segmenter?[...new Intl.Segmenter().segment(i)].map(a=>a.segment):[...i]}function Ije(i,a){const f=Dje(a.content);return iBt(i,[],f,a.type)}function iBt(i,a,f,p){if(f.length===0)return[{content:a.join(""),type:p},{content:"",type:p}];const[v,...m]=f,b=[...a,v];return i([{content:b.join(""),type:p}])?iBt(i,b,m,p):(a.length===0&&v&&(a.push(v),f.shift()),[{content:a.join(""),type:p},{content:f.join(""),type:p}])}function Oje(i,a){if(i.some(({content:f})=>f.includes(`
`)))throw new Error("splitLineToFitWidth does not support newlines in the line");return C0t(i,a)}function C0t(i,a,f=[],p=[]){if(i.length===0)return p.length>0&&f.push(p),f.length>0?f:[];let v="";i[0].content===" "&&(v=" ",i.shift());const m=i.shift()??{content:" ",type:"normal"},b=[...p];if(v!==""&&b.push({content:v,type:"normal"}),b.push(m),a(b))return C0t(i,a,f,b);if(p.length>0)f.push(p),i.unshift(m);else if(m.content){const[E,C]=Ije(a,m);f.push([E]),C.content&&i.unshift(C)}return C0t(i,a,f)}function Pje(i,a){a&&i.attr("style",a)}function Nje(i,a,f,p,v=!1){const m=i.append("foreignObject"),b=m.append("xhtml:div"),E=a.label,C=a.isNode?"nodeLabel":"edgeLabel";b.html(`
<span class="${C} ${p}" `+(a.labelStyle?'style="'+a.labelStyle+'"':"")+">"+E+"</span>"),Pje(b,a.labelStyle),b.style("display","table-cell"),b.style("white-space","nowrap"),b.style("max-width",f+"px"),b.attr("xmlns","http://www.w3.org/1999/xhtml"),v&&b.attr("class","labelBkg");let A=b.node().getBoundingClientRect();return A.width===f&&(b.style("display","table"),b.style("white-space","break-spaces"),b.style("width",f+"px"),A=b.node().getBoundingClientRect()),m.style("width",A.width),m.style("height",A.height),m.node()}function sBt(i,a,f){return i.append("tspan").attr("class","text-outer-tspan").attr("x",0).attr("y",a*f-.1+"em").attr("dy",f+"em")}function Fje(i,a,f){const p=i.append("text"),v=sBt(p,1,a);aBt(v,f);const m=v.node().getComputedTextLength();return p.remove(),m}function Bje(i,a,f,p=!1){const m=a.append("g"),b=m.insert("rect").attr("class","background"),E=m.append("text").attr("y","-10.1");let C=0;for(const A of f){const N=j=>Fje(m,1.1,j)<=i,F=N(A)?[A]:Oje(A,N);for(const j of F){const R=sBt(E,C,1.1);aBt(R,j),C++}}if(p){const A=E.node().getBBox(),N=2;return b.attr("x",-N).attr("y",-N).attr("width",A.width+2*N).attr("height",A.height+2*N),m.node()}else return E.node()}function aBt(i,a){i.text(""),a.forEach((f,p)=>{const v=i.append("tspan").attr("font-style",f.type==="emphasis"?"italic":"normal").attr("class","text-inner-tspan").attr("font-weight",f.type==="strong"?"bold":"normal");p===0?v.text(f.content):v.text(" "+f.content)})}const vK=(i,a="",{style:f="",isTitle:p=!1,classes:v="",useHtmlLabels:m=!0,isNode:b=!0,width:E=200,addSvgBackground:C=!1}={})=>{if(Vt.info("createText",a,f,p,v,m,b,C),m){const A=Mje(a),N={isNode:b,label:eN(A).replace(/fa[blrs]?:fa-[\w-]+/g,j=>`<i class='${j.replace(":"," ")}'></i>`),labelStyle:f.replace("fill:","color:")};return Nje(i,N,E,v,C)}else{const A=Lje(a);return Bje(E,i,A,C)}},jd=async(i,a,f,p)=>{let v;const m=a.useHtmlLabels||l1(Me().flowchart.htmlLabels);f?v=f:v="node default";const b=i.insert("g").attr("class",v).attr("id",a.domId||a.id),E=b.insert("g").attr("class","label").attr("style",a.labelStyle);let C;a.labelText===void 0?C="":C=typeof a.labelText=="string"?a.labelText:a.labelText[0];const A=E.node();let N;a.labelType==="markdown"?N=vK(E,cg(eN(C),Me()),{useHtmlLabels:m,width:a.width||Me().flowchart.wrappingWidth,classes:"markdown-node-label"}):N=A.appendChild(dp(cg(eN(C),Me()),a.labelStyle,!1,p));let F=N.getBBox();const j=a.padding/2;if(l1(Me().flowchart.htmlLabels)){const R=N.children[0],H=wr(N),Y=R.getElementsByTagName("img");if(Y){const rt=C.replace(/<img[^>]*>/g,"").trim()==="";await Promise.all([...Y].map(J=>new Promise(it=>{function ht(){if(J.style.display="flex",J.style.flexDirection="column",rt){const Tt=Me().fontSize?Me().fontSize:window.getComputedStyle(document.body).fontSize,yt=5;J.style.width=parseInt(Tt,10)*yt+"px"}else J.style.width="100%";it(J)}setTimeout(()=>{J.complete&&ht()}),J.addEventListener("error",ht),J.addEventListener("load",ht)})))}F=R.getBoundingClientRect(),H.attr("width",F.width),H.attr("height",F.height)}return m?E.attr("transform","translate("+-F.width/2+", "+-F.height/2+")"):E.attr("transform","translate(0, "+-F.height/2+")"),a.centerLabel&&E.attr("transform","translate("+-F.width/2+", "+-F.height/2+")"),E.insert("rect",":first-child"),{shapeSvg:b,bbox:F,halfPadding:j,label:E}},af=(i,a)=>{const f=a.node().getBBox();i.width=f.width,i.height=f.height};function L5(i,a,f,p){return i.insert("polygon",":first-child").attr("points",p.map(function(v){return v.x+","+v.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-a/2+","+f/2+")")}let rc={},om={},oBt={};const Rje=()=>{om={},oBt={},rc={}},wK=(i,a)=>(Vt.trace("In isDecendant",a," ",i," = ",om[a].includes(i)),!!om[a].includes(i)),jje=(i,a)=>(Vt.info("Decendants of ",a," is ",om[a]),Vt.info("Edge is ",i),i.v===a||i.w===a?!1:om[a]?om[a].includes(i.v)||wK(i.v,a)||wK(i.w,a)||om[a].includes(i.w):(Vt.debug("Tilt, ",a,",not in decendants"),!1)),cBt=(i,a,f,p)=>{Vt.warn("Copying children of ",i,"root",p,"data",a.node(i),p);const v=a.children(i)||[];i!==p&&v.push(i),Vt.warn("Copy
`);C.forEach(function(j){Vt.debug(`Adding line: ${j}`),E.append("tspan").text(j).attr("class","title").attr("dy",f.textHeight)});const A=b.node().getBBox(),F=b.insert("rect",":first-child").attr("x",0).attr("y",0).attr("width",A.width+2*f.padding).attr("height",A.height+C.length*f.textHeight+f.padding+.5*f.dividerMargin).node().getBBox().width;return E.node().childNodes.forEach(function(j){j.setAttribute("x",(F-j.getBBox().width)/2)}),m.width=F,m.height=A.height+C.length*f.textHeight+f.padding+.5*f.dividerMargin,m},yK=function(i){let a="",f="",p="",v="",m=i.substring(0,1),b=i.substring(i.length-1,i.length);m.match(/[#+~-]/)&&(v=m);let E=/[\s\w)~]/;b.match(E)||(f=vBt(b));const C=v===""?0:1;let A=f===""?i.length:i.length-1;i=i.substring(C,A);const N=i.indexOf("("),F=i.indexOf(")");if(N>1&&F>N&&F<=i.length){let R=i.substring(0,N).trim();const H=i.substring(N+1,F);if(a=v+R+"("+HP(H.trim())+")",F<i.length){let Y=i.substring(F+1,F+2);f===""&&!Y.match(E)?(f=vBt(Y),p=i.substring(F+2).trim()):p=i.substring(F+1).trim(),p!==""&&(p.charAt(0)===":"&&(p=p.substring(1).trim()),p=" : "+HP(p),a+=p)}}else a=v+HP(i);return{displayText:a,cssStyle:f}},bBt=function(i,a,f,p){let v=yK(a);const m=i.append("tspan").attr("x",p.padding).text(v.displayText);v.cssStyle!==""&&m.attr("style",v.cssStyle),f||m.attr("dy",p.textHeight)},vBt=function(i){switch(i){case"*":return"font-style:italic;";case"$":return"text-decoration:underline;";default:return""}},S0t={getClassTitleString:pBt,drawClass:Kje,drawEdge:Wje,drawNote:Yje,parseMember:yK},wBt=async(i,a)=>{const{shapeSvg:f,bbox:p}=await jd(i,a,void 0,!0),v=p.width+a.padding,m=p.height+a.padding,b=v+m,E=[{x:b/2,y:0},{x:b,y:-b/2},{x:b/2,y:-b},{x:0,y:-b/2}];Vt.info("Question main (Circle)");const C=L5(f,b,b,E);return C.attr("style",a.style),af(a,C),a.intersect=function(A){return Vt.warn("Intersect called"),Ah.polygon(a,E,A)},f},Xje=(i,a)=>{const f=i.insert("g").attr("class","node default").attr("id",a.domId||a.id),p=28,v=[{x:0,y:p/2},{x:p/2,y:0},{x:0,y:-p/2},{x:-p/2,y:0}];return f.insert("polygon",":first-child").attr("points",v.map(function(b){return b.x+","+b.y}).join(" ")).attr("class","state-start").attr("r",7).attr("width",28).attr("height",28),a.width=28,a.height=28,a.intersect=function(b){return Ah.circle(a,14,b)},f},Qje=async(i,a)=>{const{shapeSvg:f,bbox:p}=await jd(i,a,void 0,!0),v=4,m=p.height+a.padding,b=m/v,E=p.width+2*b+a.padding,C=[{x:b,y:0},{x:E-b,y:0},{x:E,y:-m/2},{x:E-b,y:-m},{x:b,y:-m},{x:0,y:-m/2}],A=L5(f,E,m,C);return A.attr("style",a.style),af(a,A),a.intersect=function(N){return Ah.polygon(a,C,N)},f},Zje=async(i,a)=>{const{shapeSvg:f,bbox:p}=await jd(i,a,void 0,!0),v=p.width+a.padding,m=p.height+a.padding,b=[{x:-m/2,y:0},{x:v,y:0},{x:v,y:-m},{x:-m/2,y:-m},{x:0,y:-m/2}];return L5(f,v,m,b).attr("style",a.style),a.width=v+m,a.height=m,a.intersect=function(C){return Ah.polygon(a,b,C)},f},Jje=async(i,a)=>{const{shapeSvg:f,bbox:p}=await jd(i,a,void 0,!0),v=p.width+a.padding,m=p.height+a.padding,b=[{x:-2*m/6,y:0},{x:v-m/6,y:0},{x:v+2*m/6,y:-m},{x:m/6,y:-m}],E=L5(f,v,m,b);return E.attr("style",a.style),af(a,E),a.intersect=function(C){return Ah.polygon(a,b,C)},f},t$e=async(i,a)=>{const{shapeSvg:f,bbox:p}=await jd(i,a,void 0,!0),v=p.width+a.padding,m=p.height+a.padding,b=[{x:2*m/6,y:0},{x:v+m/6,y:0},{x:v-2*m/6,y:-m},{x:-m/6,y:-m}],E=L5(f,v,m,b);return E.attr("style",a.style),af(a,E),a.intersect=function(C){return Ah.polygon(a,b,C)},f},e$e=async(i,a)=>{const{shapeSvg:f,bbox:p}=await jd(i,a,void 0,!0),v=p.width+a.padding,m=p.height+a.padding,b=[{x:-2*m/6,y:0},{x:v+2*m/6,y:0},{x:v-m/6,y:-m},{x:m/6,y:-m}],E=L5(f,v,m,b);return E.attr("style",a.style),af(a,E),a.intersect=function(C){return Ah.polygon(a,b,C)},f},n$e=async(i,a)=>{const{shapeSvg:f,bbox:p}=await jd(i,a,void 0,!0),v=p.width+a.padding,m=p.height+a.padding,b=[{x:m/6,y:0},{x:v-m/6,y:0},{x:v+2*m/6,y:-m},{x:-2*m/6,y:-m}],E=L5(f,v,m,b);return E.attr("style",a.style),af(a,E),a.intersect=function(C){return Ah.polygon(a,b,C)},f},r$e=async(i,a)=>{const{shapeSvg:f,bbox:p}=await jd(i,a,void 0,!0),v=p.width+a.padding,m=p.height+a.padding,b=[{x:0,y:0},{x
2023-05-24 18:25:13 +00:00
outsidePoint: ${JSON.stringify(a)}
insidePoint : ${JSON.stringify(f)}
node : x:${i.x} y:${i.y} w:${i.width} h:${i.height}`);const p=i.x,v=i.y,m=Math.abs(p-f.x),b=i.width/2;let E=f.x<a.x?b-m:b+m;const C=i.height/2,A=Math.abs(a.y-f.y),N=Math.abs(a.x-f.x);if(Math.abs(v-a.y)*b>Math.abs(p-a.x)*C){let F=f.y<a.y?a.y-C-v:v-C-a.y;E=N*F/A;const j={x:f.x<a.x?f.x+E:f.x-N+E,y:f.y<a.y?f.y+A-F:f.y-A+F};return E===0&&(j.x=a.x,j.y=a.y),N===0&&(j.x=a.x),A===0&&(j.y=a.y),Vt.warn(`abc89 topp/bott calc, Q ${A}, q ${F}, R ${N}, r ${E}`,j),j}else{f.x<a.x?E=a.x-b-p:E=p-b-a.x;let F=A*E/N,j=f.x<a.x?f.x+N-E:f.x-N+E,R=f.y<a.y?f.y+F:f.y-F;return Vt.warn(`sides calc abc89, Q ${A}, q ${F}, R ${N}, r ${E}`,{_x:j,_y:R}),E===0&&(j=a.x,R=a.y),N===0&&(j=a.x),A===0&&(R=a.y),{x:j,y:R}}},CBt=(i,a)=>{Vt.warn("abc88 cutPathAtIntersect",i,a);let f=[],p=i[0],v=!1;return i.forEach(m=>{if(Vt.info("abc88 checking point",m,a),!y$e(a,m)&&!v){const b=x$e(a,p,m);Vt.warn("abc88 inside",m,p,b),Vt.warn("abc88 intersection",b);let E=!1;f.forEach(C=>{E=E||C.x===b.x&&C.y===b.y}),f.some(C=>C.x===b.x&&C.y===b.y)?Vt.warn("abc88 no intersect",b,f):f.push(b),v=!0}else Vt.warn("abc88 outside",m,p),p=m,v||f.push(m)}),Vt.warn("abc88 returning points",f),f},k$e=function(i,a,f,p,v,m){let b=f.points,E=!1;const C=m.node(a.v);var A=m.node(a.w);Vt.info("abc88 InsertEdge: ",f),A.intersect&&C.intersect&&(b=b.slice(1,f.points.length-1),b.unshift(C.intersect(b[0])),Vt.info("Last point",b[b.length-1],A,A.intersect(b[b.length-1])),b.push(A.intersect(b[b.length-1]))),f.toCluster&&(Vt.info("to cluster abc88",p[f.toCluster]),b=CBt(f.points,p[f.toCluster].node),E=!0),f.fromCluster&&(Vt.info("from cluster abc88",p[f.fromCluster]),b=CBt(b.reverse(),p[f.fromCluster].node).reverse(),E=!0);const N=b.filter(J=>!Number.isNaN(J.y));let F;v==="graph"||v==="flowchart"?F=f.curve||MA:F=MA;const j=Z9().x(function(J){return J.x}).y(function(J){return J.y}).curve(F);let R;switch(f.thickness){case"normal":R="edge-thickness-normal";break;case"thick":R="edge-thickness-thick";break;case"invisible":R="edge-thickness-thick";break;default:R=""}switch(f.pattern){case"solid":R+=" edge-pattern-solid";break;case"dotted":R+=" edge-pattern-dotted";break;case"dashed":R+=" edge-pattern-dashed";break}const H=i.append("path").attr("d",j(N)).attr("id",f.id).attr("class"," "+R+(f.classes?" "+f.classes:"")).attr("style",f.style);let Y="";switch((Me().flowchart.arrowMarkerAbsolute||Me().state.arrowMarkerAbsolute)&&(Y=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,Y=Y.replace(/\(/g,"\\("),Y=Y.replace(/\)/g,"\\)")),Vt.info("arrowTypeStart",f.arrowTypeStart),Vt.info("arrowTypeEnd",f.arrowTypeEnd),f.arrowTypeStart){case"arrow_cross":H.attr("marker-start","url("+Y+"#"+v+"-crossStart)");break;case"arrow_point":H.attr("marker-start","url("+Y+"#"+v+"-pointStart)");break;case"arrow_barb":H.attr("marker-start","url("+Y+"#"+v+"-barbStart)");break;case"arrow_circle":H.attr("marker-start","url("+Y+"#"+v+"-circleStart)");break;case"aggregation":H.attr("marker-start","url("+Y+"#"+v+"-aggregationStart)");break;case"extension":H.attr("marker-start","url("+Y+"#"+v+"-extensionStart)");break;case"composition":H.attr("marker-start","url("+Y+"#"+v+"-compositionStart)");break;case"dependency":H.attr("marker-start","url("+Y+"#"+v+"-dependencyStart)");break;case"lollipop":H.attr("marker-start","url("+Y+"#"+v+"-lollipopStart)");break}switch(f.arrowTypeEnd){case"arrow_cross":H.attr("marker-end","url("+Y+"#"+v+"-crossEnd)");break;case"arrow_point":H.attr("marker-end","url("+Y+"#"+v+"-pointEnd)");break;case"arrow_barb":H.attr("marker-end","url("+Y+"#"+v+"-barbEnd)");break;case"arrow_circle":H.attr("marker-end","url("+Y+"#"+v+"-circleEnd)");break;case"aggregation":H.attr("marker-end","url("+Y+"#"+v+"-aggregationEnd)");break;case"extension":H.attr("marker-end","url("+Y+"#"+v+"-extensionEnd)");break;case"composition":H.attr("marker-end","url("+Y+"#"+v+"-compositionEnd)");break;case"dependency":H.attr("marker-end","url("+Y+"#"+v+"-dependencyEnd)");break;case"lollipop":H.attr("marker-end","url("+Y+"#"+v+"-lollipopEnd)");break}let rt={};return E&&(rt.updatedPath=b),rt.original
`),E.style===void 0&&(j.style=j.style||"stroke: #333; stroke-width: 1.5px;fill:none;"),j.labelStyle=j.labelStyle.replace("color:","fill:"),j.id=A,j.classes="flowchart-link "+N+" "+F,a.setEdge(E.start,E.end,j,p)})},L0t={setConf:E$e,addVertices:LBt,addEdges:MBt,getClasses:function(i,a){Vt.info("Extracting classes"),a.db.clear();try{return a.parse(i),a.db.getClasses()}catch{return}},draw:async function(i,a,f,p){Vt.info("Drawing flowchart"),p.db.clear(),ck.setGen("gen-2"),p.parser.parse(i);let v=p.db.getDirection();v===void 0&&(v="TD");const{securityLevel:m,flowchart:b}=Me(),E=b.nodeSpacing||50,C=b.rankSpacing||50;let A;m==="sandbox"&&(A=wr("#i"+a));const N=wr(m==="sandbox"?A.nodes()[0].contentDocument.body:"body"),F=m==="sandbox"?A.nodes()[0].contentDocument:document,j=new d1({multigraph:!0,compound:!0}).setGraph({rankdir:v,nodesep:E,ranksep:C,marginx:0,marginy:0}).setDefaultEdgeLabel(function(){return{}});let R;const H=p.db.getSubGraphs();Vt.info("Subgraphs - ",H);for(let yt=H.length-1;yt>=0;yt--)R=H[yt],Vt.info("Subgraph - ",R),p.db.addVertex(R.id,{text:R.title,type:R.labelType},"group",void 0,R.classes,R.dir);const Y=p.db.getVertices(),rt=p.db.getEdges();Vt.info("Edges",rt);let J=0;for(J=H.length-1;J>=0;J--){R=H[J],YLt("cluster").append("text");for(let yt=0;yt<R.nodes.length;yt++)Vt.info("Setting up subgraphs",R.nodes[yt],R.id),j.setParent(R.nodes[yt],R.id)}LBt(Y,j,a,N,F,p),MBt(rt,j);const it=N.select(`[id="${a}"]`),ht=N.select("#"+a+" g");if(await A0t(ht,j,["point","circle","cross"],"flowchart",a),ho.insertTitle(it,"flowchartTitleText",b.titleTopMargin,p.db.getDiagramTitle()),nE(j,it,b.diagramPadding,b.useMaxWidth),p.db.indexNodes("subGraph"+J),!b.htmlLabels){const yt=F.querySelectorAll('[id="'+a+'"] .edgeLabel .label');for(const vt of yt){const ut=vt.getBBox(),xt=F.createElementNS("http://www.w3.org/2000/svg","rect");xt.setAttribute("rx",0),xt.setAttribute("ry",0),xt.setAttribute("width",ut.width),xt.setAttribute("height",ut.height),vt.insertBefore(xt,vt.firstChild)}}Object.keys(Y).forEach(function(yt){const vt=Y[yt];if(vt.link){const ut=wr("#"+a+' [id="'+yt+'"]');if(ut){const xt=F.createElementNS("http://www.w3.org/2000/svg","a");xt.setAttributeNS("http://www.w3.org/2000/svg","class",vt.classes.join(" ")),xt.setAttributeNS("http://www.w3.org/2000/svg","href",vt.link),xt.setAttributeNS("http://www.w3.org/2000/svg","rel","noopener"),m==="sandbox"?xt.setAttributeNS("http://www.w3.org/2000/svg","target","_top"):vt.linkTarget&&xt.setAttributeNS("http://www.w3.org/2000/svg","target",vt.linkTarget);const st=ut.insert(function(){return xt},":first-child"),Et=ut.select(".label-container");Et&&st.append(function(){return Et.node()});const gt=ut.select(".label");gt&&st.append(function(){return gt.node()})}}})}},T$e=(i,a)=>{const f=IEe,p=f(i,"r"),v=f(i,"g"),m=f(i,"b");return IA(p,v,m,a)},DBt=i=>`.label {
2023-05-24 18:25:13 +00:00
font-family: ${i.fontFamily};
color: ${i.nodeTextColor||i.textColor};
2022-11-17 22:35:28 +00:00
}
.cluster-label text {
2023-05-24 18:25:13 +00:00
fill: ${i.titleColor};
2022-11-17 22:35:28 +00:00
}
2023-05-24 18:25:13 +00:00
.cluster-label span,p {
color: ${i.titleColor};
2022-11-17 22:35:28 +00:00
}
2023-05-24 18:25:13 +00:00
.label text,span,p {
fill: ${i.nodeTextColor||i.textColor};
color: ${i.nodeTextColor||i.textColor};
2022-11-17 22:35:28 +00:00
}
.node rect,
.node circle,
.node ellipse,
.node polygon,
.node path {
2023-05-24 18:25:13 +00:00
fill: ${i.mainBkg};
stroke: ${i.nodeBorder};
2022-11-17 22:35:28 +00:00
stroke-width: 1px;
}
2023-05-24 18:25:13 +00:00
.flowchart-label text {
text-anchor: middle;
}
// .flowchart-label .text-outer-tspan {
// text-anchor: middle;
// }
// .flowchart-label .text-inner-tspan {
// text-anchor: start;
// }
2022-11-17 22:35:28 +00:00
.node .label {
text-align: center;
}
.node.clickable {
cursor: pointer;
}
.arrowheadPath {
2023-05-24 18:25:13 +00:00
fill: ${i.arrowheadColor};
2022-11-17 22:35:28 +00:00
}
.edgePath .path {
2023-05-24 18:25:13 +00:00
stroke: ${i.lineColor};
2022-11-17 22:35:28 +00:00
stroke-width: 2.0px;
}
.flowchart-link {
2023-05-24 18:25:13 +00:00
stroke: ${i.lineColor};
2022-11-17 22:35:28 +00:00
fill: none;
}
.edgeLabel {
2023-05-24 18:25:13 +00:00
background-color: ${i.edgeLabelBackground};
2022-11-17 22:35:28 +00:00
rect {
opacity: 0.5;
2023-05-24 18:25:13 +00:00
background-color: ${i.edgeLabelBackground};
fill: ${i.edgeLabelBackground};
2022-11-17 22:35:28 +00:00
}
text-align: center;
}
2023-05-24 18:25:13 +00:00
/* For html labels only */
.labelBkg {
background-color: ${T$e(i.edgeLabelBackground,.5)};
2023-05-24 18:25:13 +00:00
// background-color:
}
2022-11-17 22:35:28 +00:00
.cluster rect {
2023-05-24 18:25:13 +00:00
fill: ${i.clusterBkg};
stroke: ${i.clusterBorder};
2022-11-17 22:35:28 +00:00
stroke-width: 1px;
}
.cluster text {
2023-05-24 18:25:13 +00:00
fill: ${i.titleColor};
2022-11-17 22:35:28 +00:00
}
2023-05-24 18:25:13 +00:00
.cluster span,p {
color: ${i.titleColor};
2022-11-17 22:35:28 +00:00
}
/* .cluster div {
2023-05-24 18:25:13 +00:00
color: ${i.titleColor};
2022-11-17 22:35:28 +00:00
} */
div.mermaidTooltip {
position: absolute;
text-align: center;
max-width: 200px;
padding: 2px;
2023-05-24 18:25:13 +00:00
font-family: ${i.fontFamily};
2022-11-17 22:35:28 +00:00
font-size: 12px;
2023-05-24 18:25:13 +00:00
background: ${i.tertiaryColor};
border: 1px solid ${i.border2};
2022-11-17 22:35:28 +00:00
border-radius: 2px;
pointer-events: none;
z-index: 100;
}
2023-05-23 13:17:23 +00:00
.flowchartTitleText {
text-anchor: middle;
font-size: 18px;
2023-05-24 18:25:13 +00:00
fill: ${i.textColor};
}
`,_$e=Object.freeze(Object.defineProperty({__proto__:null,diagram:{parser:Mdt,db:ck,renderer:L0t,styles:DBt,init:i=>{i.flowchart||(i.flowchart={}),i.flowchart.arrowMarkerAbsolute=i.arrowMarkerAbsolute,LBe.setConf(i.flowchart),ck.clear(),ck.setGen("gen-1")}}},Symbol.toStringTag,{value:"Module"})),C$e=Object.freeze(Object.defineProperty({__proto__:null,diagram:{parser:Mdt,db:ck,renderer:L0t,styles:DBt,init:i=>{i.flowchart||(i.flowchart={}),i.flowchart.arrowMarkerAbsolute=i.arrowMarkerAbsolute,_It({flowchart:{arrowMarkerAbsolute:i.arrowMarkerAbsolute}}),L0t.setConf(i.flowchart),ck.clear(),ck.setGen("gen-2")}}},Symbol.toStringTag,{value:"Module"}));var M0t=function(){var i=function(pt,Ct,nt,Nt){for(nt=nt||{},Nt=pt.length;Nt--;nt[pt[Nt]]=Ct);return nt},a=[1,2],f=[1,5],p=[6,9,11,23,25,27,29,30,31,52],v=[1,17],m=[1,18],b=[1,19],E=[1,20],C=[1,21],A=[1,22],N=[1,25],F=[1,30],j=[1,31],R=[1,32],H=[1,33],Y=[1,34],rt=[6,9,11,15,20,23,25,27,29,30,31,44,45,46,47,48,52],J=[1,46],it=[30,31,49,50],ht=[4,6,9,11,23,25,27,29,30,31,52],Tt=[44,45,46,47,48],yt=[22,37],vt=[1,66],ut=[1,65],xt=[22,37,39,41],st={trace:function(){},yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,directive:7,line:8,SPACE:9,statement:10,NEWLINE:11,openDirective:12,typeDirective:13,closeDirective:14,":":15,argDirective:16,entityName:17,relSpec:18,role:19,BLOCK_START:20,attributes:21,BLOCK_STOP:22,title:23,title_value:24,acc_title:25,acc_title_value:26,acc_descr:27,acc_descr_value:28,acc_descr_multiline_value:29,ALPHANUM:30,ENTITY_NAME:31,attribute:32,attributeType:33,attributeName:34,attributeKeyTypeList:35,attributeComment:36,ATTRIBUTE_WORD:37,attributeKeyType:38,COMMA:39,ATTRIBUTE_KEY:40,COMMENT:41,cardinality:42,relType:43,ZERO_OR_ONE:44,ZERO_OR_MORE:45,ONE_OR_MORE:46,ONLY_ONE:47,MD_PARENT:48,NON_IDENTIFYING:49,IDENTIFYING:50,WORD:51,open_directive:52,type_directive:53,arg_directive:54,close_directive:55,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",9:"SPACE",11:"NEWLINE",15:":",20:"BLOCK_START",22:"BLOCK_STOP",23:"title",24:"title_value",25:"acc_title",26:"acc_title_value",27:"acc_descr",28:"acc_descr_value",29:"acc_descr_multiline_value",30:"ALPHANUM",31:"ENTITY_NAME",37:"ATTRIBUTE_WORD",39:"COMMA",40:"ATTRIBUTE_KEY",41:"COMMENT",44:"ZERO_OR_ONE",45:"ZERO_OR_MORE",46:"ONE_OR_MORE",47:"ONLY_ONE",48:"MD_PARENT",49:"NON_IDENTIFYING",50:"IDENTIFYING",51:"WORD",52:"open_directive",53:"type_directive",54:"arg_directive",55:"close_directive"},productions_:[0,[3,3],[3,2],[5,0],[5,2],[8,2],[8,1],[8,1],[8,1],[7,4],[7,6],[10,1],[10,5],[10,4],[10,3],[10,1],[10,2],[10,2],[10,2],[10,1],[17,1],[17,1],[21,1],[21,2],[32,2],[32,3],[32,3],[32,4],[33,1],[34,1],[35,1],[35,3],[38,1],[36,1],[18,3],[42,1],[42,1],[42,1],[42,1],[42,1],[43,1],[43,1],[19,1],[19,1],[19,1],[12,1],[13,1],[16,1],[14,1]],performAction:function(Ct,nt,Nt,dt,Ft,X,Bt){var Rt=X.length-1;switch(Ft){case 1:break;case 3:this.$=[];break;case 4:X[Rt-1].push(X[Rt]),this.$=X[Rt-1];break;case 5:case 6:this.$=X[Rt];break;case 7:case 8:this.$=[];break;case 12:dt.addEntity(X[Rt-4]),dt.addEntity(X[Rt-2]),dt.addRelationship(X[Rt-4],X[Rt],X[Rt-2],X[Rt-3]);break;case 13:dt.addEntity(X[Rt-3]),dt.addAttributes(X[Rt-3],X[Rt-1]);break;case 14:dt.addEntity(X[Rt-2]);break;case 15:dt.addEntity(X[Rt]);break;case 16:case 17:this.$=X[Rt].trim(),dt.setAccTitle(this.$);break;case 18:case 19:this.$=X[Rt].trim(),dt.setAccDescription(this.$);break;case 20:case 44:this.$=X[Rt];break;case 21:case 42:case 43:this.$=X[Rt].replace(/"/g,"");break;case 22:case 30:this.$=[X[Rt]];break;case 23:X[Rt].push(X[Rt-1]),this.$=X[Rt];break;case 24:this.$={attributeType:X[Rt-1],attributeName:X[Rt]};break;case 25:this.$={attributeType:X[Rt-2],attributeName:X[Rt-1],attributeKeyTypeList:X[Rt]};break;case 26:this.$={attributeType:X[Rt-2],attributeName:X[Rt-1],attributeComment:X[Rt]};break;case 27:this.$={attributeType:X[Rt-3],attributeName:X[Rt-2],attributeKeyTypeList:X[Rt-1],attributeComment:X[Rt]};break;case 28:case 29:case 32:this.$=X[Rt];break;case 31:X[Rt-2].push(X[Rt]),this.$=X[Rt-2];break;case 33:this.$=X[Rt].replace(/"/g,"");break
`+xe.showPosition()+`
Expecting `+$t.join(", ")+", got '"+(this.terminals_[ce]||ce)+"'":ur="Parse error on line "+(mt+1)+": Unexpected "+(ce==Ve?"end of input":"'"+(this.terminals_[ce]||ce)+"'"),this.parseError(ur,{text:xe.match,token:this.terminals_[ce]||ce,line:xe.yylineno,loc:ee,expected:$t})}if(he[0]instanceof Array&&he.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Ce+", token: "+ce);switch(he[0]){case 1:Nt.push(ce),Ft.push(xe.yytext),X.push(xe.yylloc),Nt.push(he[1]),ce=null,Ot=xe.yyleng,Rt=xe.yytext,mt=xe.yylineno,ee=xe.yylloc;break;case 2:if(Qt=this.productions_[he[1]][1],se.$=Ft[Ft.length-Qt],se._$={first_line:X[X.length-(Qt||1)].first_line,last_line:X[X.length-1].last_line,first_column:X[X.length-(Qt||1)].first_column,last_column:X[X.length-1].last_column},_e&&(se._$.range=[X[X.length-(Qt||1)].range[0],X[X.length-1].range[1]]),Re=this.performAction.apply(se,[Rt,Ot,mt,Kn.yy,he[1],Ft,X].concat(Cn)),typeof Re<"u")return Re;Qt&&(Nt=Nt.slice(0,-1*Qt*2),Ft=Ft.slice(0,-1*Qt),X=X.slice(0,-1*Qt)),Nt.push(this.productions_[he[1]][0]),Ft.push(se.$),X.push(se._$),vr=Bt[Nt[Nt.length-2]][Nt[Nt.length-1]],Nt.push(vr);break;case 3:return!0}}return!0}},Et=function(){var pt={EOF:1,parseError:function(nt,Nt){if(this.yy.parser)this.yy.parser.parseError(nt,Nt);else throw new Error(nt)},setInput:function(Ct,nt){return this.yy=nt||this.yy||{},this._input=Ct,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},input:function(){var Ct=this._input[0];this.yytext+=Ct,this.yyleng++,this.offset++,this.match+=Ct,this.matched+=Ct;var nt=Ct.match(/(?:\r\n?|\n).*/g);return nt?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),Ct},unput:function(Ct){var nt=Ct.length,Nt=Ct.split(/(?:\r\n?|\n)/g);this._input=Ct+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-nt),this.offset-=nt;var dt=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),Nt.length-1&&(this.yylineno-=Nt.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:Nt?(Nt.length===dt.length?this.yylloc.first_column:0)+dt[dt.length-Nt.length].length-Nt[0].length:this.yylloc.first_column-nt},this.options.ranges&&(this.yylloc.range=[Ft[0],Ft[0]+this.yyleng-nt]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject: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},less:function(Ct){this.unput(this.match.slice(Ct))},pastInput:function(){var Ct=this.matched.substr(0,this.matched.length-this.match.length);return(Ct.length>20?"...":"")+Ct.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var Ct=this.match;return Ct.length<20&&(Ct+=this._input.substr(0,20-Ct.length)),(Ct.substr(0,20)+(Ct.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var Ct=this.pastInput(),nt=new Array(Ct.length+1).join("-");return Ct+this.upcomingInput()+`
`+nt+"^"},test_match:function(Ct,nt){var Nt,dt,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))),dt=Ct[0].match(/(?:\r\n?|\n).*/g),dt&&(this.yylineno+=dt.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:dt?dt[dt.length-1].length-dt[dt.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+Ct[0].length},this.yytext+=Ct[0],this.match+=Ct[0],this.matches=Ct,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(Ct[0].length),this.matched+=Ct[0],Nt=this.performAction.call(this,this.yy,this,nt,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),Nt)return Nt;if(this._backtrack){for(var X in Ft)this[X]=Ft[X];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var Ct,nt,Nt,dt;this._more||(this.yytext="",this.match="");for(var Ft=this._currentRules(),X=0;X<Ft.length;X++)if(Nt=this._input.match(this.rules[Ft[X]]),Nt&&(!nt||Nt[0].length>nt[0].length)){if(nt=Nt,dt=X,this.options.backtrack_lexer){if(Ct=this.test_match(Nt,Ft[X]),Ct!==!1)return Ct;if(this._backtrack){nt=!1;continue}else return!1}else if(!this.options.flex)break}return nt?(Ct=this.test_match(nt,Ft[dt]),Ct!==!1?Ct:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var nt=this.next();return nt||this.lex()},begin:function(nt){this.conditionStack.push(nt)},popState:function(){var nt=this.conditionStack.length-1;return nt>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(nt){return nt=this.conditionStack.length-1-Math.abs(nt||0),nt>=0?this.conditionStack[nt]:"INITIAL"},pushState:function(nt){this.begin(nt)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(nt,Nt,dt,Ft){switch(dt){case 0:return this.begin("acc_title"),25;case 1:return this.popState(),"acc_title_value";case 2:return this.begin("acc_descr"),27;case 3:return this.popState(),"acc_descr_value";case 4:this.begin("acc_descr_multiline");break;case 5:this.popState();break;case 6:return"acc_descr_multiline_value";case 7:return this.begin("open_directive"),52;case 8:return this.begin("type_directive"),53;case 9:return this.popState(),this.begin("arg_directive"),15;case 10:return this.popState(),this.popState(),55;case 11:return 54;case 12:return 11;case 13:break;case 14:return 9;case 15:return 31;case 16:return 51;case 17:return 4;case 18:return this.begin("block"),20;case 19:return 39;case 20:break;case 21:return 40;case 22:return 37;case 23:return 37;case 24:return 41;case 25:break;case 26:return this.popState(),22;case 27:return Nt.yytext[0];case 28:return 44;case 29:return 46;case 30:return 46;case 31:return 46;case 32:return 44;case 33:return 44;case 34:return 45;case 35:return 45;case 36:return 45;case 37:return 45;case 38:return 45;case 39:return 46;case 40:return 45;case 41:return 46;case 42:return 47;case 43:return 47;case 44:return 47;case 45:return 47;case 46:return 44;case 47:return 45;case 48:return 46;case 49:return 48;case 50:return 49;case 51:return 50;case 52:return 50;case 53:return 49;case 54:return 49;case 55:return 49;case 56:return 30;case 57:return Nt.yytext[0];case 58:return 6}},rules:[/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:[\s]+)/i,/^(?:"[^"%\r\n\v\b\\]+")/i,/^(?:"[^"]*")/i,/^(?:erDiagram\b)/i,/^(?:\{)/i,/^(?:,)/i,/^(?:\s+)/i,/^(?:\b((?:PK)|(?:FK)|(?:UK))\b)/i,/^(?:(.*?)[~](.*?)*[~])/i,/^(?:[\*A-Za-z_][A-Za-z0-9\-_\[\]\(\)]*)/i,/^(?:"[^"]*")/i,/^(?:[\n]+)/i,/^(?:\})/i,/^(?:.)/i,/^(?:one or zero\b)/i,/^(?:one or more\b)/i,/^(?:one or many\b)/i,/^(?:1\+)/i,/^(?:\|o\b)/i,/^(?:zero or one\b)/i,/^(?:zero or more\b)/i,/^(?:zero or many\b)/i,/^(?:0\+)/i,/^(?:\}o\b)/i,/^(?:many\(0\))/i,/^(?:many\(1\))/i,/^(?:many\b)/i,/^(?:\}\|)/i,/^(?:one\b)/i,/^(?:only one\b)/i,/^(?:1\b)/i,/^(?:\|\|)/i,/^(?:o\|)/i,/^(?:o\{)/i,/^(?:\|\{)/i,/^(?:\s*u\b)/i,/^(?:\.\.)/i,/^(?:--)/i,/^(?:to\b)/i,/^(?:optionally to\b)/i,/^(?:\.-)/i,/^(?:-\.)/i,/^(?:[A-Za-z][A-Za-z0-9\-_]*)/i,/^(?:.)/i,/^(?:$)/i],conditions:{acc_descr_multiline:{rules:[5,6],inclusive:!1},acc_descr:{rules:[3],inclusive:!1},acc_title:{rules:[1],inclusive:!1},open_directive:{rules:[8],inclusive:!1},type_directive:{rules:[9,10],inclusive:!1},arg_directive:{rules:[10,11],inclusive:!1},block:{rules:[19,20,21,22,23,24,25,26,27],inclusive:!1},INITIAL:{rules:[0,2,4,7,12,13,14,15,16,17,18,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],inclusive:!0}}};return pt}();st.lexer=Et;function gt(){this.yy={}}return gt.prototype=st,st.Parser=gt,new gt}();M0t.parser=M0t;const S$e=M0t;let xN={},D0t=[];const A$e={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"},L$e={NON_IDENTIFYING:"NON_IDENTIFYING",IDENTIFYING:"IDENTIFYING"},M$e=function(i,a,f){f1.parseDirective(this,i,
2023-05-24 18:25:13 +00:00
.entityBox {
fill: ${i.mainBkg};
stroke: ${i.nodeBorder};
}
.attributeBoxOdd {
fill: ${i.attributeBackgroundColorOdd};
stroke: ${i.nodeBorder};
}
.attributeBoxEven {
fill: ${i.attributeBackgroundColorEven};
stroke: ${i.nodeBorder};
}
.relationshipLabelBox {
fill: ${i.tertiaryColor};
opacity: 0.7;
background-color: ${i.tertiaryColor};
rect {
opacity: 0.5;
}
}
.relationshipLine {
stroke: ${i.lineColor};
}
.entityTitleText {
text-anchor: middle;
font-size: 18px;
fill: ${i.textColor};
}
#MD_PARENT_START {
fill: #f5f5f5 !important;
stroke: ${i.lineColor} !important;
stroke-width: 1;
}
#MD_PARENT_END {
fill: #f5f5f5 !important;
stroke: ${i.lineColor} !important;
stroke-width: 1;
}
`}},Symbol.toStringTag,{value:"Module"}));var O0t=function(){var i=function(xt,st,Et,gt){for(Et=Et||{},gt=xt.length;gt--;Et[xt[gt]]=st);return Et},a=[1,4],f=[1,7],p=[1,5],v=[1,9],m=[1,6],b=[2,6],E=[1,16],C=[6,8,14,20,22,24,25,27,29,32,37,40,50,55],A=[8,14,20,22,24,25,27,29,32,37,40],N=[8,13,14,20,22,24,25,27,29,32,37,40],F=[1,26],j=[6,8,14,50,55],R=[8,14,55],H=[1,53],Y=[1,52],rt=[8,14,30,33,35,38,55],J=[1,67],it=[1,68],ht=[1,69],Tt=[8,14,33,35,42,55],yt={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,directive:5,GG:6,document:7,EOF:8,":":9,DIR:10,options:11,body:12,OPT:13,NL:14,line:15,statement:16,commitStatement:17,mergeStatement:18,cherryPickStatement:19,acc_title:20,acc_title_value:21,acc_descr:22,acc_descr_value:23,acc_descr_multiline_value:24,section:25,branchStatement:26,CHECKOUT:27,ref:28,BRANCH:29,ORDER:30,NUM:31,CHERRY_PICK:32,COMMIT_ID:33,STR:34,COMMIT_TAG:35,EMPTYSTR:36,MERGE:37,COMMIT_TYPE:38,commitType:39,COMMIT:40,commit_arg:41,COMMIT_MSG:42,NORMAL:43,REVERSE:44,HIGHLIGHT:45,openDirective:46,typeDirective:47,closeDirective:48,argDirective:49,open_directive:50,type_directive:51,arg_directive:52,close_directive:53,ID:54,";":55,$accept:0,$end:1},terminals_:{2:"error",6:"GG",8:"EOF",9:":",10:"DIR",13:"OPT",14:"NL",20:"acc_title",21:"acc_title_value",22:"acc_descr",23:"acc_descr_value",24:"acc_descr_multiline_value",25:"section",27:"CHECKOUT",29:"BRANCH",30:"ORDER",31:"NUM",32:"CHERRY_PICK",33:"COMMIT_ID",34:"STR",35:"COMMIT_TAG",36:"EMPTYSTR",37:"MERGE",38:"COMMIT_TYPE",40:"COMMIT",42:"COMMIT_MSG",43:"NORMAL",44:"REVERSE",45:"HIGHLIGHT",50:"open_directive",51:"type_directive",52:"arg_directive",53:"close_directive",54:"ID",55:";"},productions_:[0,[3,2],[3,2],[3,3],[3,4],[3,5],[7,0],[7,2],[11,2],[11,1],[12,0],[12,2],[15,2],[15,1],[16,1],[16,1],[16,1],[16,2],[16,2],[16,1],[16,1],[16,1],[16,2],[26,2],[26,4],[19,3],[19,5],[19,5],[19,5],[19,5],[18,2],[18,4],[18,4],[18,4],[18,6],[18,6],[18,6],[18,6],[18,6],[18,6],[18,8],[18,8],[18,8],[18,8],[18,8],[18,8],[17,2],[17,3],[17,3],[17,5],[17,5],[17,3],[17,5],[17,5],[17,5],[17,5],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,3],[17,5],[17,5],[17,5],[17,5],[17,5],[17,5],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[41,0],[41,1],[39,1],[39,1],[39,1],[5,3],[5,5],[46,1],[47,1],[49,1],[48,1],[28,1],[28,1],[4,1],[4,1],[4,1]],performAction:function(st,Et,gt,pt,Ct,nt,Nt){var dt=nt.length-1;switch(Ct){case 3:return nt[dt];case 4:return nt[dt-1];case 5:return pt.setDirection(nt[dt-3]),nt[dt-1];case 7:pt.setOptions(nt[dt-1]),this.$=nt[dt];break;case 8:nt[dt-1]+=nt[dt],this.$=nt[dt-1];break;case 10:this.$=[];break;case 11:nt[dt-1].push(nt[dt]),this.$=nt[dt-1];break;case 12:this.$=nt[dt-1];break;case 17:this.$=nt[dt].trim(),pt.setAccTitle(this.$);break;case 18:case 19:this.$=nt[dt].trim(),pt.setAccDescription(this.$);break;case 20:pt.addSection(nt[dt].substr(8)),this.$=nt[dt].substr(8);break;case 22:pt.checkout(nt[dt]);break;case 23:pt.branch(nt[dt]);break;case 24:pt.branch(nt[dt-2],nt[dt]);break;case 25:pt.cherryPick(nt[dt],"",void 0);break;case 26:pt.cherryPick(nt[dt-2],"",nt[dt]);break;case 27:case 29:pt.cherryPick(nt[dt-2],"","");break;case 28:pt.cherryPick(nt[dt],"",nt[dt-2]);break;case 30:pt.merge(nt[dt],"","","");break;case 31:pt.merge(nt[dt-2],nt[dt],"","");break;case 32:pt.merge(nt[dt-2],"",nt[dt],"");break;case 33:pt.merge(nt[dt-2],"","",nt[dt]);break;case 34:pt.merge(nt[dt-4],nt[dt],"",nt[dt-2]);break;case 35:pt.merge(nt[dt-4],"",nt[dt],nt[dt-2]);break;case 36:pt.merge(nt[dt-4],"",nt[dt-2],nt[dt]);break;case 37:pt.merge(nt[dt-4],nt[dt-2],nt[dt],"");break;case 38:pt.merge(nt[dt-4],nt[dt-2],"",nt[dt]);break;case 39:pt.merge(nt[dt-4],nt[dt],nt[dt-2],"");break;case 40:pt.merge(nt[dt-6],nt[dt-4],nt[dt-2],nt[dt]);break;case 41:pt.merge(nt[dt-6],nt[dt],nt[dt-4],nt[dt-2]);break;case 42:pt.merge(nt[dt-6],nt[dt-4],nt[dt],nt[dt-2]
`+Ot.showPosition()+`
Expecting `+se.join(", ")+", got '"+(this.terminals_[Se]||Se)+"'":Pe="Parse error on line "+(Ft+1)+": Unexpected "+(Se==Rt?"end of input":"'"+(this.terminals_[Se]||Se)+"'"),this.parseError(Pe,{text:Ot.match,token:this.terminals_[Se]||Se,line:Ot.yylineno,loc:Cn,expected:se})}if(_e[0]instanceof Array&&_e.length>1)throw new Error("Parse Error: multiple actions possible at state: "+ee+", token: "+Se);switch(_e[0]){case 1:gt.push(Se),Ct.push(Ot.yytext),nt.push(Ot.yylloc),gt.push(_e[1]),Se=null,X=Ot.yyleng,dt=Ot.yytext,Ft=Ot.yylineno,Cn=Ot.yylloc;break;case 2:if(he=this.productions_[_e[1]][1],ce.$=Ct[Ct.length-he],ce._$={first_line:nt[nt.length-(he||1)].first_line,last_line:nt[nt.length-1].last_line,first_column:nt[nt.length-(he||1)].first_column,last_column:nt[nt.length-1].last_column},xe&&(ce._$.range=[nt[nt.length-(he||1)].range[0],nt[nt.length-1].range[1]]),qe=this.performAction.apply(ce,[dt,X,Ft,Gt.yy,_e[1],Ct,nt].concat(mt)),typeof qe<"u")return qe;he&&(gt=gt.slice(0,-1*he*2),Ct=Ct.slice(0,-1*he),nt=nt.slice(0,-1*he)),gt.push(this.productions_[_e[1]][0]),Ct.push(ce.$),nt.push(ce._$),Re=Nt[gt[gt.length-2]][gt[gt.length-1]],gt.push(Re);break;case 3:return!0}}return!0}},vt=function(){var xt={EOF:1,parseError:function(Et,gt){if(this.yy.parser)this.yy.parser.parseError(Et,gt);else throw new Error(Et)},setInput:function(st,Et){return this.yy=Et||this.yy||{},this._input=st,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},input:function(){var st=this._input[0];this.yytext+=st,this.yyleng++,this.offset++,this.match+=st,this.matched+=st;var Et=st.match(/(?:\r\n?|\n).*/g);return Et?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),st},unput:function(st){var Et=st.length,gt=st.split(/(?:\r\n?|\n)/g);this._input=st+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-Et),this.offset-=Et;var pt=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),gt.length-1&&(this.yylineno-=gt.length-1);var Ct=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:gt?(gt.length===pt.length?this.yylloc.first_column:0)+pt[pt.length-gt.length].length-gt[0].length:this.yylloc.first_column-Et},this.options.ranges&&(this.yylloc.range=[Ct[0],Ct[0]+this.yyleng-Et]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject: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},less:function(st){this.unput(this.match.slice(st))},pastInput:function(){var st=this.matched.substr(0,this.matched.length-this.match.length);return(st.length>20?"...":"")+st.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var st=this.match;return st.length<20&&(st+=this._input.substr(0,20-st.length)),(st.substr(0,20)+(st.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var st=this.pastInput(),Et=new Array(st.length+1).join("-");return st+this.upcomingInput()+`
`+Et+"^"},test_match:function(st,Et){var gt,pt,Ct;if(this.options.backtrack_lexer&&(Ct={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&&(Ct.yylloc.range=this.yylloc.range.slice(0))),pt=st[0].match(/(?:\r\n?|\n).*/g),pt&&(this.yylineno+=pt.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:pt?pt[pt.length-1].length-pt[pt.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+st[0].length},this.yytext+=st[0],this.match+=st[0],this.matches=st,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(st[0].length),this.matched+=st[0],gt=this.performAction.call(this,this.yy,this,Et,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),gt)return gt;if(this._backtrack){for(var nt in Ct)this[nt]=Ct[nt];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var st,Et,gt,pt;this._more||(this.yytext="",this.match="");for(var Ct=this._currentRules(),nt=0;nt<Ct.length;nt++)if(gt=this._input.match(this.rules[Ct[nt]]),gt&&(!Et||gt[0].length>Et[0].length)){if(Et=gt,pt=nt,this.options.backtrack_lexer){if(st=this.test_match(gt,Ct[nt]),st!==!1)return st;if(this._backtrack){Et=!1;continue}else return!1}else if(!this.options.flex)break}return Et?(st=this.test_match(Et,Ct[pt]),st!==!1?st:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var Et=this.next();return Et||this.lex()},begin:function(Et){this.conditionStack.push(Et)},popState:function(){var Et=this.conditionStack.length-1;return Et>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(Et){return Et=this.conditionStack.length-1-Math.abs(Et||0),Et>=0?this.conditionStack[Et]:"INITIAL"},pushState:function(Et){this.begin(Et)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(Et,gt,pt,Ct){switch(pt){case 0:return this.begin("open_directive"),50;case 1:return this.begin("type_directive"),51;case 2:return this.popState(),this.begin("arg_directive"),9;case 3:return this.popState(),this.popState(),53;case 4:return 52;case 5:return this.begin("acc_title"),20;case 6:return this.popState(),"acc_title_value";case 7:return this.begin("acc_descr"),22;case 8:return this.popState(),"acc_descr_value";case 9:this.begin("acc_descr_multiline");break;case 10:this.popState();break;case 11:return"acc_descr_multiline_value";case 12:return 14;case 13:break;case 14:break;case 15:return 6;case 16:return 40;case 17:return 33;case 18:return 38;case 19:return 42;case 20:return 43;case 21:return 44;case 22:return 45;case 23:return 35;case 24:return 29;case 25:return 30;case 26:return 37;case 27:return 32;case 28:return 27;case 29:return 10;case 30:return 10;case 31:return 9;case 32:return"CARET";case 33:this.begin("options");break;case 34:this.popState();break;case 35:return 13;case 36:return 36;case 37:this.begin("string");break;case 38:this.popState();break;case 39:return 34;case 40:return 31;case 41:return 54;case 42:return 8}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:(\r?\n)+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:gitGraph\b)/i,/^(?:commit(?=\s|$))/i,/^(?:id:)/i,/^(?:type:)/i,/^(?:msg:)/i,/^(?:NORMAL\b)/i,/^(?:REVERSE\b)/i,/^(?:HIGHLIGHT\b)/i,/^(?:tag:)/i,/^(?:branch(?=\s|$))/i,/^(?:order:)/i,/^(?:merge(?=\s|$))/i,/^(?:cherry-pick(?=\s|$))/i,/^(?:checkout(?=\s|$))/i,/^(?:LR\b)/i,/^(?:TB\b)/i,/^(?::)/i,/^(?:\^)/i,/^(?:options\r?\n)/i,/^(?:[ \r\n\t]+end\b)/i,/^(?:[\s\S]+(?=[ \r\n\t]+end))/i,/^(?:["]["])/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[0-9]+(?=\s|$))/i,/^(?:\w([-\./\w]*[-\w])?)/i,/^(?:$)/i,/^(?:\s+)/i],conditions:{acc_descr_multiline:{rules:[10,11],inclusive:!1},acc_descr:{rules:[8],inclusive:!1},acc_title:{rules:[6],inclusive:!1},close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},open_directive:{rules:[1],inclusive:!1},options:{rules:[34,35],inclusive:!1},string:{rules:[38,39],inclusive:!1},INITIAL:{rules:[0,5,7,9,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,36,37,40,41,42,43],inclusive:!0}}};return xt}();yt.lexer=vt;function ut(){this.yy={}}return ut.prototype=yt,yt.Parser=ut,new ut}();O0t.parser=O0t;const tze=O0t;let EK=Me().gitGraph.mainBranchName,eze=Me().gitGraph.mainBranchOrder,p1={},bg=null,EN={};EN[EK]={name:EK,order:eze};let zf={};zf[EK]=bg;let id=EK,FBt="LR",mE=0;function P0t(){return HIt({length:7})}const nze=function(i,a,f){f1.parseDirective(this,i,a,f)};function rze(i,a){const f=Object.create(null);return i.reduce((p,v)=>{const m=a(v);return f[m]||(f[m]=!0,p.push(v)),p},[])}const ize=function(i){FBt=i};let BBt={};const sze=function(i){Vt.debug("options str",i),i=i&&i.trim(),i=i||"{}";try{BBt=JSON.parse(i)}catch(a){Vt.error("error while parsing gitGraph options",a.message)}},aze=function(){return BBt},oze=function(i,a,f,p){Vt.debug("Entering commit:",i,a,f,p),a=bi.sanitizeText(a,Me()),i=bi.sanitizeText(i,Me()),p=bi.sanitizeText(p
2023-05-24 18:25:13 +00:00
${b-it.width/2-4/2},${Tt+2}
${b-it.width/2-4/2},${Tt-2}
${b+10-it.width/2-4},${Tt-ht-2}
${b+10+it.width/2+4},${Tt-ht-2}
${b+10+it.width/2+4},${Tt+ht+2}
${b+10-it.width/2-4},${Tt+ht+2}`),rt.attr("cx",b-it.width/2+4/2).attr("cy",Tt).attr("r",1.5).attr("class","tag-hole"),T0==="TB"&&(Y.attr("class","tag-label-bkg").attr("points",`
${j},${b+2}
${j},${b-2}
${j+10},${b-ht-2}
${j+10+it.width+4},${b-ht-2}
${j+10+it.width+4},${b+ht+2}
${j+10},${b+ht+2}`).attr("transform","translate(12,12) rotate(45, "+j+","+b+")"),rt.attr("cx",j+4/2).attr("cy",b).attr("transform","translate(12,12) rotate(45, "+j+","+b+")"),J.attr("x",j+5).attr("y",b+3).attr("transform","translate(14,14) rotate(45, "+j+","+b+")"))}}b+=50,b>SN&&(SN=b)})},xze=(i,a,f)=>Object.keys(f).filter(m=>f[m].branch===a.branch&&f[m].seq>i.seq&&f[m].seq<a.seq).length>0,AN=(i,a,f=0)=>{const p=i+Math.abs(i-a)/2;if(f>5)return p;if(TK.every(b=>Math.abs(b-p)>=10))return TK.push(p),p;const m=Math.abs(i-a);return AN(i,a-m/5,f+1)},kze=(i,a,f,p)=>{const v=CN[a.id],m=CN[f.id],b=xze(a,f,p);let E="",C="",A=0,N=0,F=sd[f.branch].index,j;if(b){E="A 10 10, 0, 0, 0,",C="A 10 10, 0, 0, 1,",A=10,N=10,F=sd[f.branch].index;const R=v.y<m.y?AN(v.y,m.y):AN(m.y,v.y),H=v.x<m.x?AN(v.x,m.x):AN(m.x,v.x);T0==="TB"?v.x<m.x?j=`M ${v.x} ${v.y} L ${H-A} ${v.y} ${C} ${H} ${v.y+N} L ${H} ${m.y-A} ${E} ${H+N} ${m.y} L ${m.x} ${m.y}`:j=`M ${v.x} ${v.y} L ${H+A} ${v.y} ${E} ${H} ${v.y+N} L ${H} ${m.y-A} ${C} ${H-N} ${m.y} L ${m.x} ${m.y}`:v.y<m.y?j=`M ${v.x} ${v.y} L ${v.x} ${R-A} ${E} ${v.x+N} ${R} L ${m.x-A} ${R} ${C} ${m.x} ${R+N} L ${m.x} ${m.y}`:j=`M ${v.x} ${v.y} L ${v.x} ${R+A} ${C} ${v.x+N} ${R} L ${m.x-A} ${R} ${E} ${m.x} ${R-N} L ${m.x} ${m.y}`}else T0==="TB"?(v.x<m.x&&(E="A 20 20, 0, 0, 0,",C="A 20 20, 0, 0, 1,",A=20,N=20,F=sd[f.branch].index,j=`M ${v.x} ${v.y} L ${m.x-A} ${v.y} ${C} ${m.x} ${v.y+N} L ${m.x} ${m.y}`),v.x>m.x&&(E="A 20 20, 0, 0, 0,",C="A 20 20, 0, 0, 1,",A=20,N=20,F=sd[a.branch].index,j=`M ${v.x} ${v.y} L ${v.x} ${m.y-A} ${C} ${v.x-N} ${m.y} L ${m.x} ${m.y}`),v.x===m.x&&(F=sd[a.branch].index,j=`M ${v.x} ${v.y} L ${v.x+A} ${v.y} ${E} ${v.x+N} ${m.y+A} L ${m.x} ${m.y}`)):(v.y<m.y&&(E="A 20 20, 0, 0, 0,",A=20,N=20,F=sd[f.branch].index,j=`M ${v.x} ${v.y} L ${v.x} ${m.y-A} ${E} ${v.x+N} ${m.y} L ${m.x} ${m.y}`),v.y>m.y&&(E="A 20 20, 0, 0, 0,",A=20,N=20,F=sd[a.branch].index,j=`M ${v.x} ${v.y} L ${m.x-A} ${v.y} ${E} ${m.x} ${v.y-N} L ${m.x} ${m.y}`),v.y===m.y&&(F=sd[a.branch].index,j=`M ${v.x} ${v.y} L ${v.x} ${m.y-A} ${E} ${v.x+N} ${m.y} L ${m.x} ${m.y}`));i.append("path").attr("d",j).attr("class","arrow arrow"+F%yE)},Eze=(i,a)=>{const f=i.append("g").attr("class","commit-arrows");Object.keys(a).forEach(p=>{const v=a[p];v.parents&&v.parents.length>0&&v.parents.forEach(m=>{kze(f,a[m],v,a)})})},Tze=(i,a)=>{const f=WP().gitGraph,p=i.append("g");a.forEach((v,m)=>{const b=m%yE,E=sd[v.name].pos,C=p.append("line");C.attr("x1",0),C.attr("y1",E),C.attr("x2",SN),C.attr("y2",E),C.attr("class","branch branch"+b),T0==="TB"&&(C.attr("y1",30),C.attr("x1",E),C.attr("y2",SN),C.attr("x2",E)),TK.push(E);let A=v.name;const N=qBt(A),F=p.insert("rect"),R=p.insert("g").attr("class","branchLabel").insert("g").attr("class","label branch-label"+b);R.node().appendChild(N);let H=N.getBBox();F.attr("class","branchLabelBkg label"+b).attr("rx",4).attr("ry",4).attr("x",-H.width-4-(f.rotateCommitLabel===!0?30:0)).attr("y",-H.height/2+8).attr("width",H.width+18).attr("height",H.height+4),R.attr("transform","translate("+(-H.width-14-(f.rotateCommitLabel===!0?30:0))+", "+(E-H.height/2-1)+")"),T0==="TB"&&(F.attr("x",E-H.width/2-10).attr("y",0),R.attr("transform","translate("+(E-H.width/2-5)+", 0)")),T0!=="TB"&&F.attr("transform","translate(-19, "+(E-H.height/2)+")")})},_ze=Object.freeze(Object.defineProperty({__proto__:null,diagram:{parser:tze,db:mze,renderer:{draw:function(i,a,f,p){yze();const v=WP(),m=v.gitGraph;Vt.debug("in gitgraph renderer",i+`
`,"id:",a,f),_N=p.db.getCommits();const b=p.db.getBranchesAsObjArray();T0=p.db.getDirection();const E=wr(`[id="${a}"]`);let C=0;b.forEach((A,N)=>{const F=qBt(A.name),j=E.append("g"),R=j.insert("g").attr("class","branchLabel"),H=R.insert("g").attr("class","label branch-label");H.node().appendChild(F);let Y=F.getBBox();sd[A.name]={pos:C,index:N},C+=50+(m.rotateCommitLabel?40:0)+(T0==="TB"?Y.width/2:0),H.remove(),R.remove(),j.remove()}),HBt(E,_N,!1),m.showBranches&&Tze(E,b),Eze(E,_N),HBt(E,_N,!0),ho.insertTitle(E,"gitTitleText",m.titleTopMargin,p.db.getDiagramTitle()),DIt(void 0,E,m.diagramPadding,m.useMaxWidth??v.useMaxWidth)}},styles:i=>`
2023-05-24 18:25:13 +00:00
.commit-id,
.commit-msg,
.branch-label {
fill: lightgrey;
color: lightgrey;
font-family: 'trebuchet ms', verdana, arial, sans-serif;
font-family: var(--mermaid-font-family);
}
${[0,1,2,3,4,5,6,7].map(a=>`
.branch-label${a} { fill: ${i["gitBranchLabel"+a]}; }
.commit${a} { stroke: ${i["git"+a]}; fill: ${i["git"+a]}; }
.commit-highlight${a} { stroke: ${i["gitInv"+a]}; fill: ${i["gitInv"+a]}; }
.label${a} { fill: ${i["git"+a]}; }
.arrow${a} { stroke: ${i["git"+a]}; }
`).join(`
`)}
.branch {
stroke-width: 1;
stroke: ${i.lineColor};
stroke-dasharray: 2;
}
.commit-label { font-size: ${i.commitLabelFontSize}; fill: ${i.commitLabelColor};}
.commit-label-bkg { font-size: ${i.commitLabelFontSize}; fill: ${i.commitLabelBackground}; opacity: 0.5; }
.tag-label { font-size: ${i.tagLabelFontSize}; fill: ${i.tagLabelColor};}
.tag-label-bkg { fill: ${i.tagLabelBackground}; stroke: ${i.tagLabelBorder}; }
.tag-hole { fill: ${i.textColor}; }
.commit-merge {
stroke: ${i.primaryColor};
fill: ${i.primaryColor};
}
.commit-reverse {
stroke: ${i.primaryColor};
fill: ${i.primaryColor};
stroke-width: 3;
2023-05-23 13:17:23 +00:00
}
2023-05-24 18:25:13 +00:00
.commit-highlight-outer {
}
.commit-highlight-inner {
stroke: ${i.primaryColor};
fill: ${i.primaryColor};
}
.arrow { stroke-width: 8; stroke-linecap: round; fill: none}
.gitTitleText {
text-anchor: middle;
font-size: 18px;
fill: ${i.textColor};
}
`}},Symbol.toStringTag,{value:"Module"}));var N0t=function(){var i=function(Nt,dt,Ft,X){for(Ft=Ft||{},X=Nt.length;X--;Ft[Nt[X]]=dt);return Ft},a=[1,3],f=[1,5],p=[7,9,11,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,31,33,34,36,43,48],v=[1,32],m=[1,33],b=[1,34],E=[1,35],C=[1,36],A=[1,37],N=[1,38],F=[1,15],j=[1,16],R=[1,17],H=[1,18],Y=[1,19],rt=[1,20],J=[1,21],it=[1,22],ht=[1,24],Tt=[1,25],yt=[1,26],vt=[1,27],ut=[1,28],xt=[1,30],st=[1,39],Et=[1,42],gt=[5,7,9,11,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,31,33,34,36,43,48],pt={trace:function(){},yy:{},symbols_:{error:2,start:3,directive:4,gantt:5,document:6,EOF:7,line:8,SPACE:9,statement:10,NL:11,weekday:12,weekday_monday:13,weekday_tuesday:14,weekday_wednesday:15,weekday_thursday:16,weekday_friday:17,weekday_saturday:18,weekday_sunday:19,dateFormat:20,inclusiveEndDates:21,topAxis:22,axisFormat:23,tickInterval:24,excludes:25,includes:26,todayMarker:27,title:28,acc_title:29,acc_title_value:30,acc_descr:31,acc_descr_value:32,acc_descr_multiline_value:33,section:34,clickStatement:35,taskTxt:36,taskData:37,openDirective:38,typeDirective:39,closeDirective:40,":":41,argDirective:42,click:43,callbackname:44,callbackargs:45,href:46,clickStatementDebug:47,open_directive:48,type_directive:49,arg_directive:50,close_directive:51,$accept:0,$end:1},terminals_:{2:"error",5:"gantt",7:"EOF",9:"SPACE",11:"NL",13:"weekday_monday",14:"weekday_tuesday",15:"weekday_wednesday",16:"weekday_thursday",17:"weekday_friday",18:"weekday_saturday",19:"weekday_sunday",20:"dateFormat",21:"inclusiveEndDates",22:"topAxis",23:"axisFormat",24:"tickInterval",25:"excludes",26:"includes",27:"todayMarker",28:"title",29:"acc_title",30:"acc_title_value",31:"acc_descr",32:"acc_descr_value",33:"acc_descr_multiline_value",34:"section",36:"taskTxt",37:"taskData",41:":",43:"click",44:"callbackname",45:"callbackargs",46:"href",48:"open_directive",49:"type_directive",50:"arg_directive",51:"close_directive"},productions_:[0,[3,2],[3,3],[6,0],[6,2],[8,2],[8,1],[8,1],[8,1],[12,1],[12,1],[12,1],[12,1],[12,1],[12,1],[12,1],[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],[10,1],[10,1],[10,2],[10,1],[4,4],[4,6],[35,2],[35,3],[35,3],[35,4],[35,3],[35,4],[35,2],[47,2],[47,3],[47,3],[47,4],[47,3],[47,4],[47,2],[38,1],[39,1],[42,1],[40,1]],performAction:function(dt,Ft,X,Bt,Rt,mt,Ot){var Gt=mt.length-1;switch(Rt){case 2:return mt[Gt-1];case 3:this.$=[];break;case 4:mt[Gt-1].push(mt[Gt]),this.$=mt[Gt-1];break;case 5:case 6:this.$=mt[Gt];break;case 7:case 8:this.$=[];break;case 9:Bt.setWeekday("monday");break;case 10:Bt.setWeekday("tuesday");break;case 11:Bt.setWeekday("wednesday");break;case 12:Bt.setWeekday("thursday");break;case 13:Bt.setWeekday("friday");break;case 14:Bt.setWeekday("saturday");break;case 15:Bt.setWeekday("sunday");break;case 16:Bt.setDateFormat(mt[Gt].substr(11)),this.$=mt[Gt].substr(11);break;case 17:Bt.enableInclusiveEndDates(),this.$=mt[Gt].substr(18);break;case 18:Bt.TopAxis(),this.$=mt[Gt].substr(8);break;case 19:Bt.setAxisFormat(mt[Gt].substr(11)),this.$=mt[Gt].substr(11);break;case 20:Bt.setTickInterval(mt[Gt].substr(13)),this.$=mt[Gt].substr(13);break;case 21:Bt.setExcludes(mt[Gt].substr(9)),this.$=mt[Gt].substr(9);break;case 22:Bt.setIncludes(mt[Gt].substr(9)),this.$=mt[Gt].substr(9);break;case 23:Bt.setTodayMarker(mt[Gt].substr(12)),this.$=mt[Gt].substr(12);break;case 25:Bt.setDiagramTitle(mt[Gt].substr(6)),this.$=mt[Gt].substr(6);break;case 26:this.$=mt[Gt].trim(),Bt.setAccTitle(this.$);break;case 27:case 28:this.$=mt[Gt].trim(),Bt.setAccDescription(this.$);break;case 29:Bt.addSection(mt[Gt].substr(8)),this.$=mt[Gt].substr(8);break;case 31:Bt.addTask(mt[Gt-1],mt[Gt]),this.$="task";break;case 35:this.$=mt[Gt-1],Bt.setClickEvent(mt[Gt-1],mt[Gt],null);break;case 36:this.$=mt[Gt-2],Bt.setClickEvent(mt[Gt-2],mt[Gt-1],mt[Gt]);break;case 37:this.$=mt[Gt-2],Bt.setClickEvent(mt[Gt-2],mt[Gt-1],null),Bt.setLink(mt[Gt-2],mt[Gt]);break;case 38:this.$=mt[Gt-3],Bt.setClickEvent(mt[Gt-3],mt[Gt-2],mt[Gt-1]),Bt.setLink(mt[Gt-3],mt[Gt]);break;case 39:this.$=mt[Gt-2],B
`+ee.showPosition()+`
Expecting `+rr.join(", ")+", got '"+(this.terminals_[Re]||Re)+"'":ar="Parse error on line "+(Ve+1)+": Unexpected "+(Re==Kn?"end of input":"'"+(this.terminals_[Re]||Re)+"'"),this.parseError(ar,{text:ee.match,token:this.terminals_[Re]||Re,line:ee.yylineno,loc:ce,expected:rr})}if(Pe[0]instanceof Array&&Pe.length>1)throw new Error("Parse Error: multiple actions possible at state: "+se+", token: "+Re);switch(Pe[0]){case 1:X.push(Re),Rt.push(ee.yytext),mt.push(ee.yylloc),X.push(Pe[1]),Re=null,Cn=ee.yyleng,Gt=ee.yytext,Ve=ee.yylineno,ce=ee.yylloc;break;case 2:if(ur=this.productions_[Pe[1]][1],vr.$=Rt[Rt.length-ur],vr._$={first_line:mt[mt.length-(ur||1)].first_line,last_line:mt[mt.length-1].last_line,first_column:mt[mt.length-(ur||1)].first_column,last_column:mt[mt.length-1].last_column},Ce&&(vr._$.range=[mt[mt.length-(ur||1)].range[0],mt[mt.length-1].range[1]]),Qt=this.performAction.apply(vr,[Gt,Cn,Ve,_e.yy,Pe[1],Rt,mt].concat(Se)),typeof Qt<"u")return Qt;ur&&(X=X.slice(0,-1*ur*2),Rt=Rt.slice(0,-1*ur),mt=mt.slice(0,-1*ur)),X.push(this.productions_[Pe[1]][0]),Rt.push(vr.$),mt.push(vr._$),le=Ot[X[X.length-2]][X[X.length-1]],X.push(le);break;case 3:return!0}}return!0}},Ct=function(){var Nt={EOF:1,parseError:function(Ft,X){if(this.yy.parser)this.yy.parser.parseError(Ft,X);else throw new Error(Ft)},setInput:function(dt,Ft){return this.yy=Ft||this.yy||{},this._input=dt,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},input:function(){var dt=this._input[0];this.yytext+=dt,this.yyleng++,this.offset++,this.match+=dt,this.matched+=dt;var Ft=dt.match(/(?:\r\n?|\n).*/g);return Ft?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),dt},unput:function(dt){var Ft=dt.length,X=dt.split(/(?:\r\n?|\n)/g);this._input=dt+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-Ft),this.offset-=Ft;var Bt=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 Rt=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===Bt.length?this.yylloc.first_column:0)+Bt[Bt.length-X.length].length-X[0].length:this.yylloc.first_column-Ft},this.options.ranges&&(this.yylloc.range=[Rt[0],Rt[0]+this.yyleng-Ft]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject: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},less:function(dt){this.unput(this.match.slice(dt))},pastInput:function(){var dt=this.matched.substr(0,this.matched.length-this.match.length);return(dt.length>20?"...":"")+dt.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var dt=this.match;return dt.length<20&&(dt+=this._input.substr(0,20-dt.length)),(dt.substr(0,20)+(dt.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var dt=this.pastInput(),Ft=new Array(dt.length+1).join("-");return dt+this.upcomingInput()+`
`+Ft+"^"},test_match:function(dt,Ft){var X,Bt,Rt;if(this.options.backtrack_lexer&&(Rt={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&&(Rt.yylloc.range=this.yylloc.range.slice(0))),Bt=dt[0].match(/(?:\r\n?|\n).*/g),Bt&&(this.yylineno+=Bt.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Bt?Bt[Bt.length-1].length-Bt[Bt.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+dt[0].length},this.yytext+=dt[0],this.match+=dt[0],this.matches=dt,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(dt[0].length),this.matched+=dt[0],X=this.performAction.call(this,this.yy,this,Ft,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),X)return X;if(this._backtrack){for(var mt in Rt)this[mt]=Rt[mt];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var dt,Ft,X,Bt;this._more||(this.yytext="",this.match="");for(var Rt=this._currentRules(),mt=0;mt<Rt.length;mt++)if(X=this._input.match(this.rules[Rt[mt]]),X&&(!Ft||X[0].length>Ft[0].length)){if(Ft=X,Bt=mt,this.options.backtrack_lexer){if(dt=this.test_match(X,Rt[mt]),dt!==!1)return dt;if(this._backtrack){Ft=!1;continue}else return!1}else if(!this.options.flex)break}return Ft?(dt=this.test_match(Ft,Rt[Bt]),dt!==!1?dt:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var Ft=this.next();return Ft||this.lex()},begin:function(Ft){this.conditionStack.push(Ft)},popState:function(){var Ft=this.conditionStack.length-1;return Ft>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(Ft){return Ft=this.conditionStack.length-1-Math.abs(Ft||0),Ft>=0?this.conditionStack[Ft]:"INITIAL"},pushState:function(Ft){this.begin(Ft)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(Ft,X,Bt,Rt){switch(Bt){case 0:return this.begin("open_directive"),48;case 1:return this.begin("type_directive"),49;case 2:return this.popState(),this.begin("arg_directive"),41;case 3:return this.popState(),this.popState(),51;case 4:return 50;case 5:return this.begin("acc_title"),29;case 6:return this.popState(),"acc_title_value";case 7:return this.begin("acc_descr"),31;case 8:return this.popState(),"acc_descr_value";case 9:this.begin("acc_descr_multiline");break;case 10:this.popState();break;case 11:return"acc_descr_multiline_value";case 12:break;case 13:break;case 14:break;case 15:return 11;case 16:break;case 17:break;case 18:break;case 19:this.begin("href");break;case 20:this.popState();break;case 21:return 46;case 22:this.begin("callbackname");break;case 23:this.popState();break;case 24:this.popState(),this.begin("callbackargs");break;case 25:return 44;case 26:this.popState();break;case 27:return 45;case 28:this.begin("click");break;case 29:this.popState();break;case 30:return 43;case 31:return 5;case 32:return 20;case 33:return 21;case 34:return 22;case 35:return 23;case 36:return 24;case 37:return 26;case 38:return 25;case 39:return 27;case 40:return 13;case 41:return 14;case 42:return 15;case 43:return 16;case 44:return 17;case 45:return 18;case 46:return 19;case 47:return"date";case 48:return 28;case 49:return"accDescription";case 50:return 34;case 51:return 36;case 52:return 37;case 53:return 41;case 54:return 7;case 55:return"INVALID"}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/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,/^(?:%[^\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,/^(?:\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:[10,11],inclusive:!1},acc_descr:{rules:[8],inclusive:!1},acc_title:{rules:[6],inclusive:!1},close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},open_directive:{rules:[1],inclusive:!1},callbackargs:{rules:[26,27],inclusive:!1},callbackname:{rules:[23,24,25],inclusive:!1},href:{rules:[20,21],inclusive:!1},click:{rules:[29,30],inclusive:!1},INITIAL:{rules:[0,5,7,9,12,13,14,15,16,17,18,19,22,28,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],inclusive:!0}}};return Nt}();pt.lexer=Ct;function nt(){this.yy={}}return nt.prototype=pt,pt.Parser
2022-11-17 22:35:28 +00:00
.mermaid-main-font {
font-family: "trebuchet ms", verdana, arial, sans-serif;
font-family: var(--mermaid-font-family);
}
.exclude-range {
2023-05-24 18:25:13 +00:00
fill: ${i.excludeBkgColor};
2022-11-17 22:35:28 +00:00
}
.section {
stroke: none;
opacity: 0.2;
}
.section0 {
2023-05-24 18:25:13 +00:00
fill: ${i.sectionBkgColor};
2022-11-17 22:35:28 +00:00
}
.section2 {
2023-05-24 18:25:13 +00:00
fill: ${i.sectionBkgColor2};
2022-11-17 22:35:28 +00:00
}
.section1,
.section3 {
2023-05-24 18:25:13 +00:00
fill: ${i.altSectionBkgColor};
2022-11-17 22:35:28 +00:00
opacity: 0.2;
}
.sectionTitle0 {
2023-05-24 18:25:13 +00:00
fill: ${i.titleColor};
2022-11-17 22:35:28 +00:00
}
.sectionTitle1 {
2023-05-24 18:25:13 +00:00
fill: ${i.titleColor};
2022-11-17 22:35:28 +00:00
}
.sectionTitle2 {
2023-05-24 18:25:13 +00:00
fill: ${i.titleColor};
2022-11-17 22:35:28 +00:00
}
.sectionTitle3 {
2023-05-24 18:25:13 +00:00
fill: ${i.titleColor};
2022-11-17 22:35:28 +00:00
}
.sectionTitle {
text-anchor: start;
2023-05-24 18:25:13 +00:00
// font-size: ${i.ganttFontSize};
2022-11-17 22:35:28 +00:00
// text-height: 14px;
font-family: 'trebuchet ms', verdana, arial, sans-serif;
font-family: var(--mermaid-font-family);
}
/* Grid and axis */
.grid .tick {
2023-05-24 18:25:13 +00:00
stroke: ${i.gridColor};
2022-11-17 22:35:28 +00:00
opacity: 0.8;
shape-rendering: crispEdges;
text {
2023-05-24 18:25:13 +00:00
font-family: ${i.fontFamily};
fill: ${i.textColor};
2022-11-17 22:35:28 +00:00
}
}
.grid path {
stroke-width: 0;
}
/* Today line */
.today {
fill: none;
2023-05-24 18:25:13 +00:00
stroke: ${i.todayLineColor};
2022-11-17 22:35:28 +00:00
stroke-width: 2px;
}
/* Task styling */
/* Default task */
.task {
stroke-width: 2;
}
.taskText {
text-anchor: middle;
font-family: 'trebuchet ms', verdana, arial, sans-serif;
font-family: var(--mermaid-font-family);
}
// .taskText:not([font-size]) {
2023-05-24 18:25:13 +00:00
// font-size: ${i.ganttFontSize};
2022-11-17 22:35:28 +00:00
// }
.taskTextOutsideRight {
2023-05-24 18:25:13 +00:00
fill: ${i.taskTextDarkColor};
2022-11-17 22:35:28 +00:00
text-anchor: start;
2023-05-24 18:25:13 +00:00
// font-size: ${i.ganttFontSize};
2022-11-17 22:35:28 +00:00
font-family: 'trebuchet ms', verdana, arial, sans-serif;
font-family: var(--mermaid-font-family);
}
.taskTextOutsideLeft {
2023-05-24 18:25:13 +00:00
fill: ${i.taskTextDarkColor};
2022-11-17 22:35:28 +00:00
text-anchor: end;
2023-05-24 18:25:13 +00:00
// font-size: ${i.ganttFontSize};
2022-11-17 22:35:28 +00:00
}
/* Special case clickable */
.task.clickable {
cursor: pointer;
}
.taskText.clickable {
cursor: pointer;
2023-05-24 18:25:13 +00:00
fill: ${i.taskTextClickableColor} !important;
2022-11-17 22:35:28 +00:00
font-weight: bold;
}
.taskTextOutsideLeft.clickable {
cursor: pointer;
2023-05-24 18:25:13 +00:00
fill: ${i.taskTextClickableColor} !important;
2022-11-17 22:35:28 +00:00
font-weight: bold;
}
.taskTextOutsideRight.clickable {
cursor: pointer;
2023-05-24 18:25:13 +00:00
fill: ${i.taskTextClickableColor} !important;
2022-11-17 22:35:28 +00:00
font-weight: bold;
}
/* Specific task settings for the sections*/
.taskText0,
.taskText1,
.taskText2,
.taskText3 {
2023-05-24 18:25:13 +00:00
fill: ${i.taskTextColor};
2022-11-17 22:35:28 +00:00
}
.task0,
.task1,
.task2,
.task3 {
2023-05-24 18:25:13 +00:00
fill: ${i.taskBkgColor};
stroke: ${i.taskBorderColor};
2022-11-17 22:35:28 +00:00
}
.taskTextOutside0,
.taskTextOutside2
{
2023-05-24 18:25:13 +00:00
fill: ${i.taskTextOutsideColor};
2022-11-17 22:35:28 +00:00
}
.taskTextOutside1,
.taskTextOutside3 {
2023-05-24 18:25:13 +00:00
fill: ${i.taskTextOutsideColor};
2022-11-17 22:35:28 +00:00
}
/* Active task */
.active0,
.active1,
.active2,
.active3 {
2023-05-24 18:25:13 +00:00
fill: ${i.activeTaskBkgColor};
stroke: ${i.activeTaskBorderColor};
2022-11-17 22:35:28 +00:00
}
.activeText0,
.activeText1,
.activeText2,
.activeText3 {
2023-05-24 18:25:13 +00:00
fill: ${i.taskTextDarkColor} !important;
2022-11-17 22:35:28 +00:00
}
/* Completed task */
.done0,
.done1,
.done2,
.done3 {
2023-05-24 18:25:13 +00:00
stroke: ${i.doneTaskBorderColor};
fill: ${i.doneTaskBkgColor};
2022-11-17 22:35:28 +00:00
stroke-width: 2;
}
.doneText0,
.doneText1,
.doneText2,
.doneText3 {
2023-05-24 18:25:13 +00:00
fill: ${i.taskTextDarkColor} !important;
2022-11-17 22:35:28 +00:00
}
/* Tasks on the critical line */
.crit0,
.crit1,
.crit2,
.crit3 {
2023-05-24 18:25:13 +00:00
stroke: ${i.critBorderColor};
fill: ${i.critBkgColor};
2022-11-17 22:35:28 +00:00
stroke-width: 2;
}
.activeCrit0,
.activeCrit1,
.activeCrit2,
.activeCrit3 {
2023-05-24 18:25:13 +00:00
stroke: ${i.critBorderColor};
fill: ${i.activeTaskBkgColor};
2022-11-17 22:35:28 +00:00
stroke-width: 2;
}
.doneCrit0,
.doneCrit1,
.doneCrit2,
.doneCrit3 {
2023-05-24 18:25:13 +00:00
stroke: ${i.critBorderColor};
fill: ${i.doneTaskBkgColor};
2022-11-17 22:35:28 +00:00
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 {
2023-05-24 18:25:13 +00:00
fill: ${i.taskTextDarkColor} !important;
2022-11-17 22:35:28 +00:00
}
.activeCritText0,
.activeCritText1,
.activeCritText2,
.activeCritText3 {
2023-05-24 18:25:13 +00:00
fill: ${i.taskTextDarkColor} !important;
2022-11-17 22:35:28 +00:00
}
.titleText {
text-anchor: middle;
font-size: 18px;
2023-05-24 18:25:13 +00:00
fill: ${i.textColor} ;
2022-11-17 22:35:28 +00:00
font-family: 'trebuchet ms', verdana, arial, sans-serif;
font-family: var(--mermaid-font-family);
}
`}},Symbol.toStringTag,{value:"Module"}));var K0t=function(){var i=function(m,b,E,C){for(E=E||{},C=m.length;C--;E[m[C]]=b);return E},a=[6,9,10],f={trace:function(){},yy:{},symbols_:{error:2,start:3,info:4,document:5,EOF:6,line:7,statement:8,NL:9,showInfo:10,$accept:0,$end:1},terminals_:{2:"error",4:"info",6:"EOF",9:"NL",10:"showInfo"},productions_:[0,[3,3],[5,0],[5,2],[7,1],[7,1],[8,1]],performAction:function(b,E,C,A,N,F,j){switch(F.length-1,N){case 1:return A;case 4:break;case 6:A.setInfo(!0);break}},table:[{3:1,4:[1,2]},{1:[3]},i(a,[2,2],{5:3}),{6:[1,4],7:5,8:6,9:[1,7],10:[1,8]},{1:[2,1]},i(a,[2,3]),i(a,[2,4]),i(a,[2,5]),i(a,[2,6])],defaultActions:{4:[2,1]},parseError:function(b,E){if(E.recoverable)this.trace(b);else{var C=new Error(b);throw C.hash=E,C}},parse:function(b){var E=this,C=[0],A=[],N=[null],F=[],j=this.table,R="",H=0,Y=0,rt=2,J=1,it=F.slice.call(arguments,1),ht=Object.create(this.lexer),Tt={yy:{}};for(var yt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,yt)&&(Tt.yy[yt]=this.yy[yt]);ht.setInput(b,Tt.yy),Tt.yy.lexer=ht,Tt.yy.parser=this,typeof ht.yylloc>"u"&&(ht.yylloc={});var vt=ht.yylloc;F.push(vt);var ut=ht.options&&ht.options.ranges;typeof Tt.yy.parseError=="function"?this.parseError=Tt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function xt(){var Bt;return Bt=A.pop()||ht.lex()||J,typeof Bt!="number"&&(Bt instanceof Array&&(A=Bt,Bt=A.pop()),Bt=E.symbols_[Bt]||Bt),Bt}for(var st,Et,gt,pt,Ct={},nt,Nt,dt,Ft;;){if(Et=C[C.length-1],this.defaultActions[Et]?gt=this.defaultActions[Et]:((st===null||typeof st>"u")&&(st=xt()),gt=j[Et]&&j[Et][st]),typeof gt>"u"||!gt.length||!gt[0]){var X="";Ft=[];for(nt in j[Et])this.terminals_[nt]&&nt>rt&&Ft.push("'"+this.terminals_[nt]+"'");ht.showPosition?X="Parse error on line "+(H+1)+`:
`+ht.showPosition()+`
Expecting `+Ft.join(", ")+", got '"+(this.terminals_[st]||st)+"'":X="Parse error on line "+(H+1)+": Unexpected "+(st==J?"end of input":"'"+(this.terminals_[st]||st)+"'"),this.parseError(X,{text:ht.match,token:this.terminals_[st]||st,line:ht.yylineno,loc:vt,expected:Ft})}if(gt[0]instanceof Array&&gt.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Et+", token: "+st);switch(gt[0]){case 1:C.push(st),N.push(ht.yytext),F.push(ht.yylloc),C.push(gt[1]),st=null,Y=ht.yyleng,R=ht.yytext,H=ht.yylineno,vt=ht.yylloc;break;case 2:if(Nt=this.productions_[gt[1]][1],Ct.$=N[N.length-Nt],Ct._$={first_line:F[F.length-(Nt||1)].first_line,last_line:F[F.length-1].last_line,first_column:F[F.length-(Nt||1)].first_column,last_column:F[F.length-1].last_column},ut&&(Ct._$.range=[F[F.length-(Nt||1)].range[0],F[F.length-1].range[1]]),pt=this.performAction.apply(Ct,[R,Y,H,Tt.yy,gt[1],N,F].concat(it)),typeof pt<"u")return pt;Nt&&(C=C.slice(0,-1*Nt*2),N=N.slice(0,-1*Nt),F=F.slice(0,-1*Nt)),C.push(this.productions_[gt[1]][0]),N.push(Ct.$),F.push(Ct._$),dt=j[C[C.length-2]][C[C.length-1]],C.push(dt);break;case 3:return!0}}return!0}},p=function(){var m={EOF:1,parseError:function(E,C){if(this.yy.parser)this.yy.parser.parseError(E,C);else throw new Error(E)},setInput:function(b,E){return this.yy=E||this.yy||{},this._input=b,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},input:function(){var b=this._input[0];this.yytext+=b,this.yyleng++,this.offset++,this.match+=b,this.matched+=b;var E=b.match(/(?:\r\n?|\n).*/g);return E?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),b},unput:function(b){var E=b.length,C=b.split(/(?:\r\n?|\n)/g);this._input=b+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-E),this.offset-=E;var A=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),C.length-1&&(this.yylineno-=C.length-1);var N=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:C?(C.length===A.length?this.yylloc.first_column:0)+A[A.length-C.length].length-C[0].length:this.yylloc.first_column-E},this.options.ranges&&(this.yylloc.range=[N[0],N[0]+this.yyleng-E]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject: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).
2023-05-24 18:25:13 +00:00
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(b){this.unput(this.match.slice(b))},pastInput:function(){var b=this.matched.substr(0,this.matched.length-this.match.length);return(b.length>20?"...":"")+b.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var b=this.match;return b.length<20&&(b+=this._input.substr(0,20-b.length)),(b.substr(0,20)+(b.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var b=this.pastInput(),E=new Array(b.length+1).join("-");return b+this.upcomingInput()+`
`+E+"^"},test_match:function(b,E){var C,A,N;if(this.options.backtrack_lexer&&(N={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(N.yylloc.range=this.yylloc.range.slice(0))),A=b[0].match(/(?:\r\n?|\n).*/g),A&&(this.yylineno+=A.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:A?A[A.length-1].length-A[A.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+b[0].length},this.yytext+=b[0],this.match+=b[0],this.matches=b,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(b[0].length),this.matched+=b[0],C=this.performAction.call(this,this.yy,this,E,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),C)return C;if(this._backtrack){for(var F in N)this[F]=N[F];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var b,E,C,A;this._more||(this.yytext="",this.match="");for(var N=this._currentRules(),F=0;F<N.length;F++)if(C=this._input.match(this.rules[N[F]]),C&&(!E||C[0].length>E[0].length)){if(E=C,A=F,this.options.backtrack_lexer){if(b=this.test_match(C,N[F]),b!==!1)return b;if(this._backtrack){E=!1;continue}else return!1}else if(!this.options.flex)break}return E?(b=this.test_match(E,N[A]),b!==!1?b:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var E=this.next();return E||this.lex()},begin:function(E){this.conditionStack.push(E)},popState:function(){var E=this.conditionStack.length-1;return E>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(E){return E=this.conditionStack.length-1-Math.abs(E||0),E>=0?this.conditionStack[E]:"INITIAL"},pushState:function(E){this.begin(E)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(E,C,A,N){switch(A){case 0:return 4;case 1:return 9;case 2:return"space";case 3:return 10;case 4:return 6;case 5:return"TXT"}},rules:[/^(?:info\b)/i,/^(?:[\s\n\r]+)/i,/^(?:[\s]+)/i,/^(?:showInfo\b)/i,/^(?:$)/i,/^(?:.)/i],conditions:{INITIAL:{rules:[0,1,2,3,4,5],inclusive:!0}}};return m}();f.lexer=p;function v(){this.yy={}}return v.prototype=f,f.Parser=v,new v}();K0t.parser=K0t;const bqe=K0t,iRt={info:!1};let Y0t=iRt.info;const vqe=Object.freeze(Object.defineProperty({__proto__:null,diagram:{parser:bqe,db:{clear:()=>{Y0t=iRt.info},setInfo:i=>{Y0t=i},getInfo:()=>Y0t},renderer:{draw:(i,a,f)=>{try{Vt.debug(`rendering info diagram
`+i);const{securityLevel:p}=Me();let v,m;p==="sandbox"&&(v=wr("#i"+a),m=v.nodes()[0].contentDocument);const E=wr(v!==void 0&&m!==void 0&&m!==null?m:"body").select("#"+a);E.attr("height",100),E.attr("width",400),E.append("g").append("text").attr("x",100).attr("y",40).attr("class","version").attr("font-size","32px").style("text-anchor","middle").text("v "+f)}catch(p){Vt.error("error while rendering info diagram",p)}}}}},Symbol.toStringTag,{value:"Module"}));var X0t=function(){var i=function(vt,ut,xt,st){for(xt=xt||{},st=vt.length;st--;xt[vt[st]]=ut);return xt},a=[1,4],f=[1,5],p=[1,6],v=[1,7],m=[1,9],b=[1,11,13,15,17,19,20,26,27,28,29],E=[2,5],C=[1,6,11,13,15,17,19,20,26,27,28,29],A=[26,27,28],N=[2,8],F=[1,18],j=[1,19],R=[1,20],H=[1,21],Y=[1,22],rt=[1,23],J=[1,28],it=[6,26,27,28,29],ht={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,directive:5,PIE:6,document:7,showData:8,line:9,statement:10,txt:11,value:12,title:13,title_value:14,acc_title:15,acc_title_value:16,acc_descr:17,acc_descr_value:18,acc_descr_multiline_value:19,section:20,openDirective:21,typeDirective:22,closeDirective:23,":":24,argDirective:25,NEWLINE:26,";":27,EOF:28,open_directive:29,type_directive:30,arg_directive:31,close_directive:32,$accept:0,$end:1},terminals_:{2:"error",6:"PIE",8:"showData",11:"txt",12:"value",13:"title",14:"title_value",15:"acc_title",16:"acc_title_value",17:"acc_descr",18:"acc_descr_value",19:"acc_descr_multiline_value",20:"section",24:":",26:"NEWLINE",27:";",28:"EOF",29:"open_directive",30:"type_directive",31:"arg_directive",32:"close_directive"},productions_:[0,[3,2],[3,2],[3,2],[3,3],[7,0],[7,2],[9,2],[10,0],[10,2],[10,2],[10,2],[10,2],[10,1],[10,1],[10,1],[5,3],[5,5],[4,1],[4,1],[4,1],[21,1],[22,1],[25,1],[23,1]],performAction:function(ut,xt,st,Et,gt,pt,Ct){var nt=pt.length-1;switch(gt){case 4:Et.setShowData(!0);break;case 7:this.$=pt[nt-1];break;case 9:Et.addSection(pt[nt-1],Et.cleanupValue(pt[nt]));break;case 10:this.$=pt[nt].trim(),Et.setDiagramTitle(this.$);break;case 11:this.$=pt[nt].trim(),Et.setAccTitle(this.$);break;case 12:case 13:this.$=pt[nt].trim(),Et.setAccDescription(this.$);break;case 14:Et.addSection(pt[nt].substr(8)),this.$=pt[nt].substr(8);break;case 21:Et.parseDirective("%%{","open_directive");break;case 22:Et.parseDirective(pt[nt],"type_directive");break;case 23:pt[nt]=pt[nt].trim().replace(/'/g,'"'),Et.parseDirective(pt[nt],"arg_directive");break;case 24:Et.parseDirective("}%%","close_directive","pie");break}},table:[{3:1,4:2,5:3,6:a,21:8,26:f,27:p,28:v,29:m},{1:[3]},{3:10,4:2,5:3,6:a,21:8,26:f,27:p,28:v,29:m},{3:11,4:2,5:3,6:a,21:8,26:f,27:p,28:v,29:m},i(b,E,{7:12,8:[1,13]}),i(C,[2,18]),i(C,[2,19]),i(C,[2,20]),{22:14,30:[1,15]},{30:[2,21]},{1:[2,1]},{1:[2,2]},i(A,N,{21:8,9:16,10:17,5:24,1:[2,3],11:F,13:j,15:R,17:H,19:Y,20:rt,29:m}),i(b,E,{7:25}),{23:26,24:[1,27],32:J},i([24,32],[2,22]),i(b,[2,6]),{4:29,26:f,27:p,28:v},{12:[1,30]},{14:[1,31]},{16:[1,32]},{18:[1,33]},i(A,[2,13]),i(A,[2,14]),i(A,[2,15]),i(A,N,{21:8,9:16,10:17,5:24,1:[2,4],11:F,13:j,15:R,17:H,19:Y,20:rt,29:m}),i(it,[2,16]),{25:34,31:[1,35]},i(it,[2,24]),i(b,[2,7]),i(A,[2,9]),i(A,[2,10]),i(A,[2,11]),i(A,[2,12]),{23:36,32:J},{32:[2,23]},i(it,[2,17])],defaultActions:{9:[2,21],10:[2,1],11:[2,2],35:[2,23]},parseError:function(ut,xt){if(xt.recoverable)this.trace(ut);else{var st=new Error(ut);throw st.hash=xt,st}},parse:function(ut){var xt=this,st=[0],Et=[],gt=[null],pt=[],Ct=this.table,nt="",Nt=0,dt=0,Ft=2,X=1,Bt=pt.slice.call(arguments,1),Rt=Object.create(this.lexer),mt={yy:{}};for(var Ot in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ot)&&(mt.yy[Ot]=this.yy[Ot]);Rt.setInput(ut,mt.yy),mt.yy.lexer=Rt,mt.yy.parser=this,typeof Rt.yylloc>"u"&&(Rt.yylloc={});var Gt=Rt.yylloc;pt.push(Gt);var Ve=Rt.options&&Rt.options.ranges;typeof mt.yy.parseError=="function"?this.parseError=mt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Cn(){var se;return se=Et.pop()||Rt.lex()||X,typeof se!="number"&&(se instanceof Array&&(Et=se,se=Et.pop()),se=xt.symbols_[se]||se),se}for(var xe,Kn,Se,ee,_e={},qe,ce,Ce,he;;){if(Kn=st[st
`+Rt.showPosition()+`
Expecting `+he.join(", ")+", got '"+(this.terminals_[xe]||xe)+"'":Re="Parse error on line "+(Nt+1)+": Unexpected "+(xe==X?"end of input":"'"+(this.terminals_[xe]||xe)+"'"),this.parseError(Re,{text:Rt.match,token:this.terminals_[xe]||xe,line:Rt.yylineno,loc:Gt,expected:he})}if(Se[0]instanceof Array&&Se.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Kn+", token: "+xe);switch(Se[0]){case 1:st.push(xe),gt.push(Rt.yytext),pt.push(Rt.yylloc),st.push(Se[1]),xe=null,dt=Rt.yyleng,nt=Rt.yytext,Nt=Rt.yylineno,Gt=Rt.yylloc;break;case 2:if(ce=this.productions_[Se[1]][1],_e.$=gt[gt.length-ce],_e._$={first_line:pt[pt.length-(ce||1)].first_line,last_line:pt[pt.length-1].last_line,first_column:pt[pt.length-(ce||1)].first_column,last_column:pt[pt.length-1].last_column},Ve&&(_e._$.range=[pt[pt.length-(ce||1)].range[0],pt[pt.length-1].range[1]]),ee=this.performAction.apply(_e,[nt,dt,Nt,mt.yy,Se[1],gt,pt].concat(Bt)),typeof ee<"u")return ee;ce&&(st=st.slice(0,-1*ce*2),gt=gt.slice(0,-1*ce),pt=pt.slice(0,-1*ce)),st.push(this.productions_[Se[1]][0]),gt.push(_e.$),pt.push(_e._$),Ce=Ct[st[st.length-2]][st[st.length-1]],st.push(Ce);break;case 3:return!0}}return!0}},Tt=function(){var vt={EOF:1,parseError:function(xt,st){if(this.yy.parser)this.yy.parser.parseError(xt,st);else throw new Error(xt)},setInput:function(ut,xt){return this.yy=xt||this.yy||{},this._input=ut,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},input:function(){var ut=this._input[0];this.yytext+=ut,this.yyleng++,this.offset++,this.match+=ut,this.matched+=ut;var xt=ut.match(/(?:\r\n?|\n).*/g);return xt?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),ut},unput:function(ut){var xt=ut.length,st=ut.split(/(?:\r\n?|\n)/g);this._input=ut+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-xt),this.offset-=xt;var Et=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),st.length-1&&(this.yylineno-=st.length-1);var gt=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:st?(st.length===Et.length?this.yylloc.first_column:0)+Et[Et.length-st.length].length-st[0].length:this.yylloc.first_column-xt},this.options.ranges&&(this.yylloc.range=[gt[0],gt[0]+this.yyleng-xt]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject: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},less:function(ut){this.unput(this.match.slice(ut))},pastInput:function(){var ut=this.matched.substr(0,this.matched.length-this.match.length);return(ut.length>20?"...":"")+ut.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var ut=this.match;return ut.length<20&&(ut+=this._input.substr(0,20-ut.length)),(ut.substr(0,20)+(ut.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var ut=this.pastInput(),xt=new Array(ut.length+1).join("-");return ut+this.upcomingInput()+`
`+xt+"^"},test_match:function(ut,xt){var st,Et,gt;if(this.options.backtrack_lexer&&(gt={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&&(gt.yylloc.range=this.yylloc.range.slice(0))),Et=ut[0].match(/(?:\r\n?|\n).*/g),Et&&(this.yylineno+=Et.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Et?Et[Et.length-1].length-Et[Et.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+ut[0].length},this.yytext+=ut[0],this.match+=ut[0],this.matches=ut,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(ut[0].length),this.matched+=ut[0],st=this.performAction.call(this,this.yy,this,xt,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),st)return st;if(this._backtrack){for(var pt in gt)this[pt]=gt[pt];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var ut,xt,st,Et;this._more||(this.yytext="",this.match="");for(var gt=this._currentRules(),pt=0;pt<gt.length;pt++)if(st=this._input.match(this.rules[gt[pt]]),st&&(!xt||st[0].length>xt[0].length)){if(xt=st,Et=pt,this.options.backtrack_lexer){if(ut=this.test_match(st,gt[pt]),ut!==!1)return ut;if(this._backtrack){xt=!1;continue}else return!1}else if(!this.options.flex)break}return xt?(ut=this.test_match(xt,gt[Et]),ut!==!1?ut:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var xt=this.next();return xt||this.lex()},begin:function(xt){this.conditionStack.push(xt)},popState:function(){var xt=this.conditionStack.length-1;return xt>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(xt){return xt=this.conditionStack.length-1-Math.abs(xt||0),xt>=0?this.conditionStack[xt]:"INITIAL"},pushState:function(xt){this.begin(xt)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(xt,st,Et,gt){switch(Et){case 0:return this.begin("open_directive"),29;case 1:return this.begin("type_directive"),30;case 2:return this.popState(),this.begin("arg_directive"),24;case 3:return this.popState(),this.popState(),32;case 4:return 31;case 5:break;case 6:break;case 7:return 26;case 8:break;case 9:break;case 10:return this.begin("title"),13;case 11:return this.popState(),"title_value";case 12:return this.begin("acc_title"),15;case 13:return this.popState(),"acc_title_value";case 14:return this.begin("acc_descr"),17;case 15:return this.popState(),"acc_descr_value";case 16:this.begin("acc_descr_multiline");break;case 17:this.popState();break;case 18:return"acc_descr_multiline_value";case 19:this.begin("string");break;case 20:this.popState();break;case 21:return"txt";case 22:return 6;case 23:return 8;case 24:return"value";case 25:return 28}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:[\s]+)/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,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:pie\b)/i,/^(?:showData\b)/i,/^(?::[\s]*[\d]+(?:\.[\d]+)?)/i,/^(?:$)/i],conditions:{acc_descr_multiline:{rules:[17,18],inclusive:!1},acc_descr:{rules:[15],inclusive:!1},acc_title:{rules:[13],inclusive:!1},close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},open_directive:{rules:[1],inclusive:!1},title:{rules:[11],inclusive:!1},string:{rules:[20,21],inclusive:!1},INITIAL:{rules:[0,5,6,7,8,9,10,12,14,16,19,22,23,24,25],inclusive:!0}}};return vt}();ht.lexer=Tt;function yt(){this.yy={}}return yt.prototype=ht,ht.Parser=yt,new yt}();X0t.parser=X0t;const wqe=X0t;let AK={},Q0t=!1;const mqe={parseDirective:function(i,a,f){f1.parseDirective(this,i,a,f)},getConfig:()=>Me().pie,addSection:function(i,a){i=bi.sanitizeText(i,Me()),AK[i]===void 0&&(AK[i]=a,Vt.debug("Added new section :",i))},getSections:()=>AK,cleanupValue:function(i){return i.substring(0,1)===":"&&(i=i.substring(1).trim()),Number(i.trim())},clear:function(){AK={},Q0t=!1,hg()},setAccTitle:E0,getAccTitle:fg,setDiagramTitle:F2,getDiagramTitle:fp,setShowData:function(i){Q0t=i},getShowData:function(){return Q0t},getAccDescription:gg,setAccDescription:dg},yqe=i=>`
2022-11-17 22:35:28 +00:00
.pieCircle{
2023-05-24 18:25:13 +00:00
stroke: ${i.pieStrokeColor};
stroke-width : ${i.pieStrokeWidth};
opacity : ${i.pieOpacity};
}
.pieOuterCircle{
stroke: ${i.pieOuterStrokeColor};
stroke-width: ${i.pieOuterStrokeWidth};
fill: none;
2022-11-17 22:35:28 +00:00
}
.pieTitleText {
text-anchor: middle;
2023-05-24 18:25:13 +00:00
font-size: ${i.pieTitleTextSize};
fill: ${i.pieTitleTextColor};
font-family: ${i.fontFamily};
2022-11-17 22:35:28 +00:00
}
.slice {
2023-05-24 18:25:13 +00:00
font-family: ${i.fontFamily};
fill: ${i.pieSectionTextColor};
font-size:${i.pieSectionTextSize};
2022-11-17 22:35:28 +00:00
// fill: white;
}
.legend text {
2023-05-24 18:25:13 +00:00
fill: ${i.pieLegendTextColor};
font-family: ${i.fontFamily};
font-size: ${i.pieLegendTextSize};
}
`;let y3=Me(),D5;const IN=450,xqe=Object.freeze(Object.defineProperty({__proto__:null,diagram:{parser:wqe,db:mqe,renderer:{draw:(i,a,f,p)=>{var ht;try{y3=Me(),Vt.debug(`Rendering info diagram
`+i);const Tt=Me().securityLevel;let yt;Tt==="sandbox"&&(yt=wr("#i"+a));const vt=wr(Tt==="sandbox"?yt.nodes()[0].contentDocument.body:"body"),xt=(Tt==="sandbox"?yt.nodes()[0].contentDocument:document).getElementById(a);D5=xt.parentElement.offsetWidth,D5===void 0&&(D5=1200),y3.useWidth!==void 0&&(D5=y3.useWidth),y3.pie.useWidth!==void 0&&(D5=y3.pie.useWidth);const st=vt.select("#"+a);N2(st,IN,D5,y3.pie.useMaxWidth),xt.setAttribute("viewBox","0 0 "+D5+" "+IN);var v=40,m=18,b=4,E=Math.min(D5,IN)/2-v,C=st.append("g").attr("transform","translate("+D5/2+","+IN/2+")"),A=p.db.getSections(),N=0;Object.keys(A).forEach(function(Ct){N+=A[Ct]});const Et=y3.themeVariables;var F=[Et.pie1,Et.pie2,Et.pie3,Et.pie4,Et.pie5,Et.pie6,Et.pie7,Et.pie8,Et.pie9,Et.pie10,Et.pie11,Et.pie12];const gt=((ht=y3.pie)==null?void 0:ht.textPosition)??.75;let[pt]=HA(Et.pieOuterStrokeWidth);pt??(pt=2);var j=x1t().range(F),R=Object.entries(A).map(function(Ct,nt){return{order:nt,name:Ct[0],value:Ct[1]}}),H=N9e().value(function(Ct){return Ct.value}).sort(function(Ct,nt){return Ct.order-nt.order}),Y=H(R),rt=LA().innerRadius(0).outerRadius(E),J=LA().innerRadius(E*gt).outerRadius(E*gt);C.append("circle").attr("cx",0).attr("cy",0).attr("r",E+pt/2).attr("class","pieOuterCircle"),C.selectAll("mySlices").data(Y).enter().append("path").attr("d",rt).attr("fill",function(Ct){return j(Ct.data.name)}).attr("class","pieCircle"),C.selectAll("mySlices").data(Y).enter().append("text").text(function(Ct){return(Ct.data.value/N*100).toFixed(0)+"%"}).attr("transform",function(Ct){return"translate("+J.centroid(Ct)+")"}).style("text-anchor","middle").attr("class","slice"),C.append("text").text(p.db.getDiagramTitle()).attr("x",0).attr("y",-(IN-50)/2).attr("class","pieTitleText");var it=C.selectAll(".legend").data(j.domain()).enter().append("g").attr("class","legend").attr("transform",function(Ct,nt){const Nt=m+b,dt=Nt*j.domain().length/2,Ft=12*m,X=nt*Nt-dt;return"translate("+Ft+","+X+")"});it.append("rect").attr("width",m).attr("height",m).style("fill",j).style("stroke",j),it.data(Y).append("text").attr("x",m+b).attr("y",m-b).text(function(Ct){return p.db.getShowData()||y3.showData||y3.pie.showData?Ct.data.name+" ["+Ct.data.value+"]":Ct.data.name})}catch(Tt){Vt.error("Error while rendering info diagram"),Vt.error(Tt)}}},styles:yqe}},Symbol.toStringTag,{value:"Module"}));var Z0t=function(){var i=function(Se,ee,_e,qe){for(_e=_e||{},qe=Se.length;qe--;_e[Se[qe]]=ee);return _e},a=[1,3],f=[1,5],p=[1,6],v=[1,7],m=[1,8],b=[1,10],E=[1,5,14,16,18,20,21,26,28,29,30,31,32,38,39,40,41,47,48,50,51,52,53,54,55,56,57,58,59,60],C=[1,5,7,14,16,18,20,21,26,28,29,30,31,32,38,39,40,41,47,48,50,51,52,53,54,55,56,57,58,59,60],A=[38,39,40],N=[2,8],F=[1,19],j=[1,23],R=[1,24],H=[1,25],Y=[1,26],rt=[1,27],J=[1,29],it=[1,30],ht=[1,31],Tt=[1,32],yt=[1,33],vt=[1,34],ut=[1,37],xt=[1,38],st=[1,39],Et=[1,40],gt=[1,41],pt=[1,42],Ct=[1,43],nt=[1,44],Nt=[1,45],dt=[1,46],Ft=[1,47],X=[1,48],Bt=[1,49],Rt=[1,52],mt=[1,67],Ot=[1,68],Gt=[5,23,27,38,39,40,50,51,52,53,54,55,56,57,58,59,60,61],Ve=[5,7,38,39,40,41],Cn={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,SPACE:5,directive:6,QUADRANT:7,document:8,line:9,statement:10,axisDetails:11,quadrantDetails:12,points:13,title:14,title_value:15,acc_title:16,acc_title_value:17,acc_descr:18,acc_descr_value:19,acc_descr_multiline_value:20,section:21,text:22,point_start:23,point_x:24,point_y:25,"X-AXIS":26,"AXIS-TEXT-DELIMITER":27,"Y-AXIS":28,QUADRANT_1:29,QUADRANT_2:30,QUADRANT_3:31,QUADRANT_4:32,openDirective:33,typeDirective:34,closeDirective:35,":":36,argDirective:37,NEWLINE:38,SEMI:39,EOF:40,open_directive:41,type_directive:42,arg_directive:43,close_directive:44,alphaNumToken:45,textNoTagsToken:46,STR:47,MD_STR:48,alphaNum:49,PUNCTUATION:50,AMP:51,NUM:52,ALPHA:53,COMMA:54,PLUS:55,EQUALS:56,MULT:57,DOT:58,BRKT:59,UNDERSCORE:60,MINUS:61,$accept:0,$end:1},terminals_:{2:"error",5:"SPACE",7:"QUADRANT",14:"title",15:"title_value",16:"acc_title",17:"acc_title_value",18:"acc_descr",19:"acc_descr_value",20:"acc_descr_multiline_value",21:"section",23:"point_start",24:"point_x",25
`+le.showPosition()+`
Expecting `+Gn.join(", ")+", got '"+(this.terminals_[kn]||kn)+"'":Jn="Parse error on line "+(Pe+1)+": Unexpected "+(kn==$t?"end of input":"'"+(this.terminals_[kn]||kn)+"'"),this.parseError(Jn,{text:le.match,token:this.terminals_[kn]||kn,line:le.yylineno,loc:Qn,expected:Gn})}if(Rr[0]instanceof Array&&Rr.length>1)throw new Error("Parse Error: multiple actions possible at state: "+_r+", token: "+kn);switch(Rr[0]){case 1:qe.push(kn),Ce.push(le.yytext),he.push(le.yylloc),qe.push(Rr[1]),kn=null,Qt=le.yyleng,se=le.yytext,Pe=le.yylineno,Qn=le.yylloc;break;case 2:if(Zr=this.productions_[Rr[1]][1],As.$=Ce[Ce.length-Zr],As._$={first_line:he[he.length-(Zr||1)].first_line,last_line:he[he.length-1].last_line,first_column:he[he.length-(Zr||1)].first_column,last_column:he[he.length-1].last_column},Zn&&(As._$.range=[he[he.length-(Zr||1)].range[0],he[he.length-1].range[1]]),os=this.performAction.apply(As,[se,Qt,Pe,rr.yy,Rr[1],Ce,he].concat(ur)),typeof os<"u")return os;Zr&&(qe=qe.slice(0,-1*Zr*2),Ce=Ce.slice(0,-1*Zr),he=he.slice(0,-1*Zr)),qe.push(this.productions_[Rr[1]][0]),Ce.push(As.$),he.push(As._$),Hi=Re[qe[qe.length-2]][qe[qe.length-1]],qe.push(Hi);break;case 3:return!0}}return!0}},xe=function(){var Se={EOF:1,parseError:function(_e,qe){if(this.yy.parser)this.yy.parser.parseError(_e,qe);else throw new Error(_e)},setInput:function(ee,_e){return this.yy=_e||this.yy||{},this._input=ee,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},input:function(){var ee=this._input[0];this.yytext+=ee,this.yyleng++,this.offset++,this.match+=ee,this.matched+=ee;var _e=ee.match(/(?:\r\n?|\n).*/g);return _e?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),ee},unput:function(ee){var _e=ee.length,qe=ee.split(/(?:\r\n?|\n)/g);this._input=ee+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-_e),this.offset-=_e;var ce=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),qe.length-1&&(this.yylineno-=qe.length-1);var Ce=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:qe?(qe.length===ce.length?this.yylloc.first_column:0)+ce[ce.length-qe.length].length-qe[0].length:this.yylloc.first_column-_e},this.options.ranges&&(this.yylloc.range=[Ce[0],Ce[0]+this.yyleng-_e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject: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},less:function(ee){this.unput(this.match.slice(ee))},pastInput:function(){var ee=this.matched.substr(0,this.matched.length-this.match.length);return(ee.length>20?"...":"")+ee.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var ee=this.match;return ee.length<20&&(ee+=this._input.substr(0,20-ee.length)),(ee.substr(0,20)+(ee.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var ee=this.pastInput(),_e=new Array(ee.length+1).join("-");return ee+this.upcomingInput()+`
`+_e+"^"},test_match:function(ee,_e){var qe,ce,Ce;if(this.options.backtrack_lexer&&(Ce={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&&(Ce.yylloc.range=this.yylloc.range.slice(0))),ce=ee[0].match(/(?:\r\n?|\n).*/g),ce&&(this.yylineno+=ce.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:ce?ce[ce.length-1].length-ce[ce.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+ee[0].length},this.yytext+=ee[0],this.match+=ee[0],this.matches=ee,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(ee[0].length),this.matched+=ee[0],qe=this.performAction.call(this,this.yy,this,_e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),qe)return qe;if(this._backtrack){for(var he in Ce)this[he]=Ce[he];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var ee,_e,qe,ce;this._more||(this.yytext="",this.match="");for(var Ce=this._currentRules(),he=0;he<Ce.length;he++)if(qe=this._input.match(this.rules[Ce[he]]),qe&&(!_e||qe[0].length>_e[0].length)){if(_e=qe,ce=he,this.options.backtrack_lexer){if(ee=this.test_match(qe,Ce[he]),ee!==!1)return ee;if(this._backtrack){_e=!1;continue}else return!1}else if(!this.options.flex)break}return _e?(ee=this.test_match(_e,Ce[ce]),ee!==!1?ee:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var _e=this.next();return _e||this.lex()},begin:function(_e){this.conditionStack.push(_e)},popState:function(){var _e=this.conditionStack.length-1;return _e>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(_e){return _e=this.conditionStack.length-1-Math.abs(_e||0),_e>=0?this.conditionStack[_e]:"INITIAL"},pushState:function(_e){this.begin(_e)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(_e,qe,ce,Ce){switch(ce){case 0:return this.begin("open_directive"),41;case 1:return this.begin("type_directive"),42;case 2:return this.popState(),this.begin("arg_directive"),36;case 3:return this.popState(),this.popState(),44;case 4:return 43;case 5:break;case 6:break;case 7:return 38;case 8:break;case 9:return this.begin("title"),14;case 10:return this.popState(),"title_value";case 11:return this.begin("acc_title"),16;case 12:return this.popState(),"acc_title_value";case 13:return this.begin("acc_descr"),18;case 14:return this.popState(),"acc_descr_value";case 15:this.begin("acc_descr_multiline");break;case 16:this.popState();break;case 17:return"acc_descr_multiline_value";case 18:return 26;case 19:return 28;case 20:return 27;case 21:return 29;case 22:return 30;case 23:return 31;case 24:return 32;case 25:this.begin("md_string");break;case 26:return"MD_STR";case 27:this.popState();break;case 28:this.begin("string");break;case 29:this.popState();break;case 30:return"STR";case 31:return this.begin("point_start"),23;case 32:return this.begin("point_x"),24;case 33:this.popState();break;case 34:this.popState(),this.begin("point_y");break;case 35:return this.popState(),25;case 36:return 7;case 37:return 53;case 38:return"COLON";case 39:return 55;case 40:return 54;case 41:return 56;case 42:return 56;case 43:return 57;case 44:return 59;case 45:return 60;case 46:return 58;case 47:return 51;case 48:return 61;case 49:return 52;case 50:return 5;case 51:return 39;case 52:return 50;case 53:return 40}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:%%(?!\{)[^\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,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:\s*:\s*\[\s*)/i,/^(?:(1)|(0(.\d+)?))/i,/^(?:\s*\] *)/i,/^(?:\s*,\s*)/i,/^(?:(1)|(0(.\d+)?))/i,/^(?: *quadrantChart *)/i,/^(?:[A-Za-z]+)/i,/^(?::)/i,/^(?:\+)/i,/^(?:,)/i,/^(?:=)/i,/^(?:=)/i,/^(?:\*)/i,/^(?:#)/i,/^(?:[\_])/i,/^(?:\.)/i,/^(?:&)/i,/^(?:-)/i,/^(?:[0-9]+)/i,/^(?:\s)/i,/^(?:;)/i,/^(?:[!"#$%&'*+,-.`?\\_/])/i,/^(?:$)/i],conditions:{point_y:{rules:[35],inclusive:!1},point_x:{rules:[34],inclusive:!1},point_start:{rules:[32,33],inclusive:!1},acc_descr_multiline:{rules:[16,17],inclusive:!1},acc_descr:{rules:[14],inclusive:!1},acc_title:{rules:[12],inclusive:!1},close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},open_directive:{rules:[1],inclusive:!1},title:{rules:[10],inclusive:!1},md_string:{rules:[26,27],inclusive:!1},string:{rules:[29,30],inclusive:!1},INITIAL:{rules:[0,5,6,7,8,9,11,13,15,18,19,20,21,22,23,24,25,28,31,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53],inclusive:!0}}};return Se}();Cn.lexer=xe;function Kn(){this.yy={}}return Kn.prototype=Cn,Cn.Parser=Kn,new Kn}();Z0t.parser=Z0t;const kqe=Z0t,vg=JDt();class Eqe{constructor(){this.config=this.getDefaultConfig(),this.themeConfig=this.getDefaul
`+i);const C=E.securityLevel;let A;C==="sandbox"&&(A=wr("#i"+a));const F=wr(C==="sandbox"?A.nodes()[0].contentDocument.body:"body").select(`[id="${a}"]`),j=F.append("g").attr("class","main"),R=((xt=E.quadrantChart)==null?void 0:xt.chartWidth)||500,H=((st=E.quadrantChart)==null?void 0:st.chartHeight)||500;N2(F,H,R,((Et=E.quadrantChart)==null?void 0:Et.useMaxWidth)||!0),F.attr("viewBox","0 0 "+R+" "+H),p.db.setHeight(H),p.db.setWidth(R);const Y=p.db.getQuadrantData(),rt=j.append("g").attr("class","quadrants"),J=j.append("g").attr("class","border"),it=j.append("g").attr("class","data-points"),ht=j.append("g").attr("class","labels"),Tt=j.append("g").attr("class","title");Y.title&&Tt.append("text").attr("x",0).attr("y",0).attr("fill",Y.title.fill).attr("font-size",Y.title.fontSize).attr("dominant-baseline",v(Y.title.horizontalPos)).attr("text-anchor",m(Y.title.verticalPos)).attr("transform",b(Y.title)).text(Y.title.text),Y.borderLines&&J.selectAll("line").data(Y.borderLines).enter().append("line").attr("x1",gt=>gt.x1).attr("y1",gt=>gt.y1).attr("x2",gt=>gt.x2).attr("y2",gt=>gt.y2).style("stroke",gt=>gt.strokeFill).style("stroke-width",gt=>gt.strokeWidth);const yt=rt.selectAll("g.quadrant").data(Y.quadrants).enter().append("g").attr("class","quadrant");yt.append("rect").attr("x",gt=>gt.x).attr("y",gt=>gt.y).attr("width",gt=>gt.width).attr("height",gt=>gt.height).attr("fill",gt=>gt.fill),yt.append("text").attr("x",0).attr("y",0).attr("fill",gt=>gt.text.fill).attr("font-size",gt=>gt.text.fontSize).attr("dominant-baseline",gt=>v(gt.text.horizontalPos)).attr("text-anchor",gt=>m(gt.text.verticalPos)).attr("transform",gt=>b(gt.text)).text(gt=>gt.text.text),ht.selectAll("g.label").data(Y.axisLabels).enter().append("g").attr("class","label").append("text").attr("x",0).attr("y",0).text(gt=>gt.text).attr("fill",gt=>gt.fill).attr("font-size",gt=>gt.fontSize).attr("dominant-baseline",gt=>v(gt.horizontalPos)).attr("text-anchor",gt=>m(gt.verticalPos)).attr("transform",gt=>b(gt));const ut=it.selectAll("g.data-point").data(Y.points).enter().append("g").attr("class","data-point");ut.append("circle").attr("cx",gt=>gt.x).attr("cy",gt=>gt.y).attr("r",gt=>gt.radius).attr("fill",gt=>gt.fill),ut.append("text").attr("x",0).attr("y",0).text(gt=>gt.text.text).attr("fill",gt=>gt.text.fill).attr("font-size",gt=>gt.text.fontSize).attr("dominant-baseline",gt=>v(gt.text.horizontalPos)).attr("text-anchor",gt=>m(gt.text.verticalPos)).attr("transform",gt=>b(gt.text))}},styles:()=>""}},Symbol.toStringTag,{value:"Module"}));var J0t=function(){var i=function(Kn,Se,ee,_e){for(ee=ee||{},_e=Kn.length;_e--;ee[Kn[_e]]=Se);return ee},a=[1,3],f=[1,5],p=[1,6],v=[1,7],m=[1,8],b=[5,6,8,14,16,18,19,40,41,42,43,44,45,53,71,72],E=[1,22],C=[2,13],A=[1,26],N=[1,27],F=[1,28],j=[1,29],R=[1,30],H=[1,31],Y=[1,24],rt=[1,32],J=[1,33],it=[1,36],ht=[71,72],Tt=[5,8,14,16,18,19,40,41,42,43,44,45,53,60,62,71,72],yt=[1,56],vt=[1,57],ut=[1,58],xt=[1,59],st=[1,60],Et=[1,61],gt=[1,62],pt=[62,63],Ct=[1,74],nt=[1,70],Nt=[1,71],dt=[1,72],Ft=[1,73],X=[1,75],Bt=[1,79],Rt=[1,80],mt=[1,77],Ot=[1,78],Gt=[5,8,14,16,18,19,40,41,42,43,44,45,53,71,72],Ve={trace:function(){},yy:{},symbols_:{error:2,start:3,directive:4,NEWLINE:5,RD:6,diagram:7,EOF:8,openDirective:9,typeDirective:10,closeDirective:11,":":12,argDirective:13,acc_title:14,acc_title_value:15,acc_descr:16,acc_descr_value:17,acc_descr_multiline_value:18,open_directive:19,type_directive:20,arg_directive:21,close_directive:22,requirementDef:23,elementDef:24,relationshipDef:25,requirementType:26,requirementName:27,STRUCT_START:28,requirementBody:29,ID:30,COLONSEP:31,id:32,TEXT:33,text:34,RISK:35,riskLevel:36,VERIFYMTHD:37,verifyType:38,STRUCT_STOP:39,REQUIREMENT:40,FUNCTIONAL_REQUIREMENT:41,INTERFACE_REQUIREMENT:42,PERFORMANCE_REQUIREMENT:43,PHYSICAL_REQUIREMENT:44,DESIGN_CONSTRAINT:45,LOW_RISK:46,MED_RISK:47,HIGH_RISK:48,VERIFY_ANALYSIS:49,VERIFY_DEMONSTRATION:50,VERIFY_INSPECTION:51,VERIFY_TEST:52,ELEMENT:53,elementName:54,elementBody:55,TYPE:56,type:57,DOCREF:58,ref:59,END_ARROW_L:60,relationship:61,LINE:62,END_ARROW_R:63,CONTAINS:64,COPIES:65,DE
`+ur.showPosition()+`
Expecting `+Hi.join(", ")+", got '"+(this.terminals_[dn]||dn)+"'":Gn="Parse error on line "+(se+1)+": Unexpected "+(dn==vr?"end of input":"'"+(this.terminals_[dn]||dn)+"'"),this.parseError(Gn,{text:ur.match,token:this.terminals_[dn]||dn,line:ur.yylineno,loc:ar,expected:Hi})}if(_r[0]instanceof Array&&_r.length>1)throw new Error("Parse Error: multiple actions possible at state: "+kn+", token: "+dn);switch(_r[0]){case 1:_e.push(dn),ce.push(ur.yytext),Ce.push(ur.yylloc),_e.push(_r[1]),dn=null,Pe=ur.yyleng,Re=ur.yytext,se=ur.yylineno,ar=ur.yylloc;break;case 2:if(ma=this.productions_[_r[1]][1],os.$=ce[ce.length-ma],os._$={first_line:Ce[Ce.length-(ma||1)].first_line,last_line:Ce[Ce.length-1].last_line,first_column:Ce[Ce.length-(ma||1)].first_column,last_column:Ce[Ce.length-1].last_column},Qn&&(os._$.range=[Ce[Ce.length-(ma||1)].range[0],Ce[Ce.length-1].range[1]]),Rr=this.performAction.apply(os,[Re,Pe,se,le.yy,_r[1],ce,Ce].concat($t)),typeof Rr<"u")return Rr;ma&&(_e=_e.slice(0,-1*ma*2),ce=ce.slice(0,-1*ma),Ce=Ce.slice(0,-1*ma)),_e.push(this.productions_[_r[1]][0]),ce.push(os.$),Ce.push(os._$),Zr=he[_e[_e.length-2]][_e[_e.length-1]],_e.push(Zr);break;case 3:return!0}}return!0}},Cn=function(){var Kn={EOF:1,parseError:function(ee,_e){if(this.yy.parser)this.yy.parser.parseError(ee,_e);else throw new Error(ee)},setInput:function(Se,ee){return this.yy=ee||this.yy||{},this._input=Se,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},input:function(){var Se=this._input[0];this.yytext+=Se,this.yyleng++,this.offset++,this.match+=Se,this.matched+=Se;var ee=Se.match(/(?:\r\n?|\n).*/g);return ee?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),Se},unput:function(Se){var ee=Se.length,_e=Se.split(/(?:\r\n?|\n)/g);this._input=Se+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-ee),this.offset-=ee;var qe=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 ce=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===qe.length?this.yylloc.first_column:0)+qe[qe.length-_e.length].length-_e[0].length:this.yylloc.first_column-ee},this.options.ranges&&(this.yylloc.range=[ce[0],ce[0]+this.yyleng-ee]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject: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},less:function(Se){this.unput(this.match.slice(Se))},pastInput:function(){var Se=this.matched.substr(0,this.matched.length-this.match.length);return(Se.length>20?"...":"")+Se.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var Se=this.match;return Se.length<20&&(Se+=this._input.substr(0,20-Se.length)),(Se.substr(0,20)+(Se.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var Se=this.pastInput(),ee=new Array(Se.length+1).join("-");return Se+this.upcomingInput()+`
`+ee+"^"},test_match:function(Se,ee){var _e,qe,ce;if(this.options.backtrack_lexer&&(ce={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&&(ce.yylloc.range=this.yylloc.range.slice(0))),qe=Se[0].match(/(?:\r\n?|\n).*/g),qe&&(this.yylineno+=qe.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:qe?qe[qe.length-1].length-qe[qe.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+Se[0].length},this.yytext+=Se[0],this.match+=Se[0],this.matches=Se,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(Se[0].length),this.matched+=Se[0],_e=this.performAction.call(this,this.yy,this,ee,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),_e)return _e;if(this._backtrack){for(var Ce in ce)this[Ce]=ce[Ce];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var Se,ee,_e,qe;this._more||(this.yytext="",this.match="");for(var ce=this._currentRules(),Ce=0;Ce<ce.length;Ce++)if(_e=this._input.match(this.rules[ce[Ce]]),_e&&(!ee||_e[0].length>ee[0].length)){if(ee=_e,qe=Ce,this.options.backtrack_lexer){if(Se=this.test_match(_e,ce[Ce]),Se!==!1)return Se;if(this._backtrack){ee=!1;continue}else return!1}else if(!this.options.flex)break}return ee?(Se=this.test_match(ee,ce[qe]),Se!==!1?Se:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var ee=this.next();return ee||this.lex()},begin:function(ee){this.conditionStack.push(ee)},popState:function(){var ee=this.conditionStack.length-1;return ee>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(ee){return ee=this.conditionStack.length-1-Math.abs(ee||0),ee>=0?this.conditionStack[ee]:"INITIAL"},pushState:function(ee){this.begin(ee)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(ee,_e,qe,ce){switch(qe){case 0:return this.begin("open_directive"),19;case 1:return this.begin("type_directive"),20;case 2:return this.popState(),this.begin("arg_directive"),12;case 3:return this.popState(),this.popState(),22;case 4:return 21;case 5:return"title";case 6:return this.begin("acc_title"),14;case 7:return this.popState(),"acc_title_value";case 8:return this.begin("acc_descr"),16;case 9:return this.popState(),"acc_descr_value";case 10:this.begin("acc_descr_multiline");break;case 11:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:return 5;case 14:break;case 15:break;case 16:break;case 17:return 8;case 18:return 6;case 19:return 28;case 20:return 39;case 21:return 31;case 22:return 30;case 23:return 33;case 24:return 35;case 25:return 37;case 26:return 40;case 27:return 41;case 28:return 42;case 29:return 43;case 30:return 44;case 31:return 45;case 32:return 46;case 33:return 47;case 34:return 48;case 35:return 49;case 36:return 50;case 37:return 51;case 38:return 52;case 39:return 53;case 40:return 64;case 41:return 65;case 42:return 66;case 43:return 67;case 44:return 68;case 45:return 69;case 46:return 70;case 47:return 56;case 48:return 58;case 49:return 60;case 50:return 63;case 51:return 62;case 52:this.begin("string");break;case 53:this.popState();break;case 54:return"qString";case 55:return _e.yytext=_e.yytext.trim(),71}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\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,/^(?:(\r?\n)+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:$)/i,/^(?:requirementDiagram\b)/i,/^(?:\{)/i,/^(?:\})/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,/^(?:<-)/i,/^(?:->)/i,/^(?:-)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[\w][^\r\n\{\<\>\-\=]*)/i],conditions:{acc_descr_multiline:{rules:[11,12],inclusive:!1},acc_descr:{rules:[9],inclusive:!1},acc_title:{rules:[7],inclusive:!1},close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},open_directive:{rules:[1],inclusive:!1},unqString:{rules:[],inclusive:!1},token:{rules:[],inclusive:!1},string:{rules:[53,54],inclusive:!1},INITIAL:{rules:[0,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,55],inclusive:!0}}};return Kn}();Ve.lexer=Cn;function xe(){this.yy={}}return xe.prototype=Ve,Ve.Parser=xe,new xe}();J0t.parser=J0t;const Rqe=J0t;let tgt=[],pp={},ON={},fk={},PN={};const jqe={RequirementType:{REQUIREMENT:"Requirement",FUNCTIONAL_REQUIREMENT:"Functional Requirement",INTERFACE_REQUIREMENT:"Interface Requirement",PERFORMANCE_REQ
2022-11-17 22:35:28 +00:00
marker {
2023-05-24 18:25:13 +00:00
fill: ${i.relationColor};
stroke: ${i.relationColor};
2022-11-17 22:35:28 +00:00
}
marker.cross {
2023-05-24 18:25:13 +00:00
stroke: ${i.lineColor};
2022-11-17 22:35:28 +00:00
}
svg {
2023-05-24 18:25:13 +00:00
font-family: ${i.fontFamily};
font-size: ${i.fontSize};
2022-11-17 22:35:28 +00:00
}
.reqBox {
2023-05-24 18:25:13 +00:00
fill: ${i.requirementBackground};
fill-opacity: 1.0;
stroke: ${i.requirementBorderColor};
stroke-width: ${i.requirementBorderSize};
2022-11-17 22:35:28 +00:00
}
.reqTitle, .reqLabel{
2023-05-24 18:25:13 +00:00
fill: ${i.requirementTextColor};
2022-11-17 22:35:28 +00:00
}
.reqLabelBox {
2023-05-24 18:25:13 +00:00
fill: ${i.relationLabelBackground};
fill-opacity: 1.0;
2022-11-17 22:35:28 +00:00
}
.req-title-line {
2023-05-24 18:25:13 +00:00
stroke: ${i.requirementBorderColor};
stroke-width: ${i.requirementBorderSize};
2022-11-17 22:35:28 +00:00
}
.relationshipLine {
2023-05-24 18:25:13 +00:00
stroke: ${i.relationColor};
2022-11-17 22:35:28 +00:00
stroke-width: 1;
}
.relationshipLabel {
2023-05-24 18:25:13 +00:00
fill: ${i.relationLabelColor};
2022-11-17 22:35:28 +00:00
}
`,egt={CONTAINS:"contains",ARROW:"arrow"},sRt={ReqMarkers:egt,insertLineEndings:(i,a)=>{let f=i.append("defs").append("marker").attr("id",egt.CONTAINS+"_line_ending").attr("refX",0).attr("refY",a.line_height/2).attr("markerWidth",a.line_height).attr("markerHeight",a.line_height).attr("orient","auto").append("g");f.append("circle").attr("cx",a.line_height/2).attr("cy",a.line_height/2).attr("r",a.line_height/2).attr("fill","none"),f.append("line").attr("x1",0).attr("x2",a.line_height).attr("y1",a.line_height/2).attr("y2",a.line_height/2).attr("stroke-width",1),f.append("line").attr("y1",0).attr("y2",a.line_height).attr("x1",a.line_height/2).attr("x2",a.line_height/2).attr("stroke-width",1),i.append("defs").append("marker").attr("id",egt.ARROW+"_line_ending").attr("refX",a.line_height).attr("refY",.5*a.line_height).attr("markerWidth",a.line_height).attr("markerHeight",a.line_height).attr("orient","auto").append("path").attr("d",`M0,0
2023-05-24 18:25:13 +00:00
L${a.line_height},${a.line_height/2}
M${a.line_height},${a.line_height/2}
L0,${a.line_height}`).attr("stroke-width",1)}};let Lh={},aRt=0;const oRt=(i,a)=>i.insert("rect","#"+a).attr("class","req reqBox").attr("x",0).attr("y",0).attr("width",Lh.rect_min_width+"px").attr("height",Lh.rect_min_height+"px"),cRt=(i,a,f)=>{let p=Lh.rect_min_width/2,v=i.append("text").attr("class","req reqLabel reqTitle").attr("id",a).attr("x",p).attr("y",Lh.rect_padding).attr("dominant-baseline","hanging"),m=0;f.forEach(A=>{m==0?v.append("tspan").attr("text-anchor","middle").attr("x",Lh.rect_min_width/2).attr("dy",0).text(A):v.append("tspan").attr("text-anchor","middle").attr("x",Lh.rect_min_width/2).attr("dy",Lh.line_height*.75).text(A),m++});let b=1.5*Lh.rect_padding,E=m*Lh.line_height*.75,C=b+E;return i.append("line").attr("class","req-title-line").attr("x1","0").attr("x2",Lh.rect_min_width).attr("y1",C).attr("y2",C),{titleNode:v,y:C}},uRt=(i,a,f,p)=>{let v=i.append("text").attr("class","req reqLabel").attr("id",a).attr("x",Lh.rect_padding).attr("y",p).attr("dominant-baseline","hanging"),m=0;const b=30;let E=[];return f.forEach(C=>{let A=C.length;for(;A>b&&m<3;){let N=C.substring(0,b);C=C.substring(b,C.length),A=C.length,E[E.length]=N,m++}if(m==3){let N=E[E.length-1];E[E.length-1]=N.substring(0,N.length-4)+"..."}else E[E.length]=C;m=0}),E.forEach(C=>{v.append("tspan").attr("x",Lh.rect_padding).attr("dy",Lh.line_height).text(C)}),v},zqe=(i,a,f,p)=>{const v=a.node().getTotalLength(),m=a.node().getPointAtLength(v*.5),b="rel"+aRt;aRt++;const C=i.append("text").attr("class","req relationshipLabel").attr("id",b).attr("x",m.x).attr("y",m.y).attr("text-anchor","middle").attr("dominant-baseline","middle").text(p).node().getBBox();i.insert("rect","#"+b).attr("class","req reqLabelBox").attr("x",m.x-C.width/2).attr("y",m.y-C.height/2).attr("width",C.width).attr("height",C.height).attr("fill","white").attr("fill-opacity","85%")},qqe=function(i,a,f,p,v){const m=f.edge(uL(a.src),uL(a.dst)),b=Z9().x(function(C){return C.x}).y(function(C){return C.y}),E=i.insert("path","#"+p).attr("class","er relationshipLine").attr("d",b(m.points)).attr("fill","none");a.type==v.db.Relationships.CONTAINS?E.attr("marker-start","url("+bi.getUrl(Lh.arrowMarkerAbsolute)+"#"+a.type+"_line_ending)"):(E.attr("stroke-dasharray","10,7"),E.attr("marker-end","url("+bi.getUrl(Lh.arrowMarkerAbsolute)+"#"+sRt.ReqMarkers.ARROW+"_line_ending)")),zqe(i,E,Lh,`<<${a.type}>>`)},Hqe=(i,a,f)=>{Object.keys(i).forEach(p=>{let v=i[p];p=uL(p),Vt.info("Added new requirement: ",p);const m=f.append("g").attr("id",p),b="req-"+p,E=oRt(m,b);let C=cRt(m,p+"_title",[`<<${v.type}>>`,`${v.name}`]);uRt(m,p+"_body",[`Id: ${v.id}`,`Text: ${v.text}`,`Risk: ${v.risk}`,`Verification: ${v.verifyMethod}`],C.y);const A=E.node().getBBox();a.setNode(p,{width:A.width,height:A.height,shape:"rect",id:p})})},Vqe=(i,a,f)=>{Object.keys(i).forEach(p=>{let v=i[p];const m=uL(p),b=f.append("g").attr("id",m),E="element-"+m,C=oRt(b,E);let A=cRt(b,E+"_title",["<<Element>>",`${p}`]);uRt(b,E+"_body",[`Type: ${v.type||"Not Specified"}`,`Doc Ref: ${v.docRef||"None"}`],A.y);const N=C.node().getBBox();a.setNode(m,{width:N.width,height:N.height,shape:"rect",id:m})})},Gqe=(i,a)=>(i.forEach(function(f){let p=uL(f.src),v=uL(f.dst);a.setEdge(p,v,{relationship:f})}),i),Uqe=function(i,a){a.nodes().forEach(function(f){f!==void 0&&a.node(f)!==void 0&&(i.select("#"+f),i.select("#"+f).attr("transform","translate("+(a.node(f).x-a.node(f).width/2)+","+(a.node(f).y-a.node(f).height/2)+" )"))})},uL=i=>i.replace(/\s/g,"").replace(/\./g,"_"),Wqe=Object.freeze(Object.defineProperty({__proto__:null,diagram:{parser:Rqe,db:jqe,renderer:{draw:(i,a,f,p)=>{Lh=Me().requirement;const v=Lh.securityLevel;let m;v==="sandbox"&&(m=wr("#i"+a));const E=wr(v==="sandbox"?m.nodes()[0].contentDocument.body:"body").select(`[id='${a}']`);sRt.insertLineEndings(E,Lh);const C=new d1({multigraph:!1,compound:!1,directed:!0}).setGraph({rankdir:Lh.layoutDirection,marginx:20,marginy:20,nodesep:100,edgesep:100,ranksep:100}).setDefaultEdgeLabel(function(){return{}});let A=p.db.getRequirements(),N=p.db.getElements(),F=p.db.getRelationships();Hqe(A,C,E),V
`+Zn.showPosition()+`
Expecting `+Li.join(", ")+", got '"+(this.terminals_[As]||As)+"'":Dn="Parse error on line "+(ur+1)+": Unexpected "+(As==ar?"end of input":"'"+(this.terminals_[As]||As)+"'"),this.parseError(Dn,{text:Zn.match,token:this.terminals_[As]||As,line:Zn.yylineno,loc:_r,expected:Li})}if(Zr[0]instanceof Array&&Zr.length>1)throw new Error("Parse Error: multiple actions possible at state: "+ma+", token: "+As);switch(Zr[0]){case 1:Re.push(As),Pe.push(Zn.yytext),Qt.push(Zn.yylloc),Re.push(Zr[1]),As=null,le=Zn.yyleng,$t=Zn.yytext,ur=Zn.yylineno,_r=Zn.yylloc;break;case 2:if(Or=this.productions_[Zr[1]][1],Gn.$=Pe[Pe.length-Or],Gn._$={first_line:Qt[Qt.length-(Or||1)].first_line,last_line:Qt[Qt.length-1].last_line,first_column:Qt[Qt.length-(Or||1)].first_column,last_column:Qt[Qt.length-1].last_column},Rr&&(Gn._$.range=[Qt[Qt.length-(Or||1)].range[0],Qt[Qt.length-1].range[1]]),Hi=this.performAction.apply(Gn,[$t,le,ur,dn.yy,Zr[1],Pe,Qt].concat(Qn)),typeof Hi<"u")return Hi;Or&&(Re=Re.slice(0,-1*Or*2),Pe=Pe.slice(0,-1*Or),Qt=Qt.slice(0,-1*Or)),Re.push(this.productions_[Zr[1]][0]),Pe.push(Gn.$),Qt.push(Gn._$),Fn=vr[Re[Re.length-2]][Re[Re.length-1]],Re.push(Fn);break;case 3:return!0}}return!0}},_e=function(){var ce={EOF:1,parseError:function(he,Re){if(this.yy.parser)this.yy.parser.parseError(he,Re);else throw new Error(he)},setInput:function(Ce,he){return this.yy=he||this.yy||{},this._input=Ce,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},input:function(){var Ce=this._input[0];this.yytext+=Ce,this.yyleng++,this.offset++,this.match+=Ce,this.matched+=Ce;var he=Ce.match(/(?:\r\n?|\n).*/g);return he?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),Ce},unput:function(Ce){var he=Ce.length,Re=Ce.split(/(?:\r\n?|\n)/g);this._input=Ce+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-he),this.offset-=he;var se=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),Re.length-1&&(this.yylineno-=Re.length-1);var Pe=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:Re?(Re.length===se.length?this.yylloc.first_column:0)+se[se.length-Re.length].length-Re[0].length:this.yylloc.first_column-he},this.options.ranges&&(this.yylloc.range=[Pe[0],Pe[0]+this.yyleng-he]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject: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},less:function(Ce){this.unput(this.match.slice(Ce))},pastInput:function(){var Ce=this.matched.substr(0,this.matched.length-this.match.length);return(Ce.length>20?"...":"")+Ce.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var Ce=this.match;return Ce.length<20&&(Ce+=this._input.substr(0,20-Ce.length)),(Ce.substr(0,20)+(Ce.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var Ce=this.pastInput(),he=new Array(Ce.length+1).join("-");return Ce+this.upcomingInput()+`
`+he+"^"},test_match:function(Ce,he){var Re,se,Pe;if(this.options.backtrack_lexer&&(Pe={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&&(Pe.yylloc.range=this.yylloc.range.slice(0))),se=Ce[0].match(/(?:\r\n?|\n).*/g),se&&(this.yylineno+=se.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:se?se[se.length-1].length-se[se.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+Ce[0].length},this.yytext+=Ce[0],this.match+=Ce[0],this.matches=Ce,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(Ce[0].length),this.matched+=Ce[0],Re=this.performAction.call(this,this.yy,this,he,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),Re)return Re;if(this._backtrack){for(var Qt in Pe)this[Qt]=Pe[Qt];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var Ce,he,Re,se;this._more||(this.yytext="",this.match="");for(var Pe=this._currentRules(),Qt=0;Qt<Pe.length;Qt++)if(Re=this._input.match(this.rules[Pe[Qt]]),Re&&(!he||Re[0].length>he[0].length)){if(he=Re,se=Qt,this.options.backtrack_lexer){if(Ce=this.test_match(Re,Pe[Qt]),Ce!==!1)return Ce;if(this._backtrack){he=!1;continue}else return!1}else if(!this.options.flex)break}return he?(Ce=this.test_match(he,Pe[se]),Ce!==!1?Ce:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var he=this.next();return he||this.lex()},begin:function(he){this.conditionStack.push(he)},popState:function(){var he=this.conditionStack.length-1;return he>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(he){return he=this.conditionStack.length-1-Math.abs(he||0),he>=0?this.conditionStack[he]:"INITIAL"},pushState:function(he){this.begin(he)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(he,Re,se,Pe){switch(se){case 0:return this.begin("open_directive"),86;case 1:return this.begin("type_directive"),87;case 2:return this.popState(),this.begin("arg_directive"),17;case 3:return this.popState(),this.popState(),89;case 4:return 88;case 5:return 5;case 6:break;case 7:break;case 8:break;case 9:break;case 10:break;case 11:return 25;case 12:return this.begin("LINE"),20;case 13:return this.begin("ID"),56;case 14:return this.begin("ID"),58;case 15:return 19;case 16:return this.begin("ID"),59;case 17:return Re.yytext=Re.yytext.trim(),this.begin("ALIAS"),76;case 18:return this.popState(),this.popState(),this.begin("LINE"),57;case 19:return this.popState(),this.popState(),5;case 20:return this.begin("LINE"),42;case 21:return this.begin("LINE"),43;case 22:return this.begin("LINE"),44;case 23:return this.begin("LINE"),45;case 24:return this.begin("LINE"),55;case 25:return this.begin("LINE"),47;case 26:return this.begin("LINE"),49;case 27:return this.begin("LINE"),54;case 28:return this.begin("LINE"),50;case 29:return this.begin("LINE"),53;case 30:return this.begin("LINE"),52;case 31:return this.popState(),21;case 32:return 22;case 33:return 71;case 34:return 72;case 35:return 65;case 36:return 66;case 37:return 67;case 38:return 68;case 39:return 63;case 40:return 60;case 41:return this.begin("ID"),27;case 42:return this.begin("ID"),29;case 43:return 35;case 44:return 36;case 45:return this.begin("acc_title"),37;case 46:return this.popState(),"acc_title_value";case 47:return this.begin("acc_descr"),39;case 48:return this.popState(),"acc_descr_value";case 49:this.begin("acc_descr_multiline");break;case 50:this.popState();break;case 51:return"acc_descr_multiline_value";case 52:return 7;case 53:return 24;case 54:return 26;case 55:return 70;case 56:return 5;case 57:return Re.yytext=Re.yytext.trim(),76;case 58:return 79;case 59:return 80;case 60:return 77;case 61:return 78;case 62:return 81;case 63:return 82;case 64:return 83;case 65:return 84;case 66:return 85;case 67:return 74;case 68:return 75;case 69:return 5;case 70:return"INVALID"}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[0-9]+(?=[ \n]+))/i,/^(?:box\b)/i,/^(?:participant\b)/i,/^(?:actor\b)/i,/^(?:create\b)/i,/^(?:destroy\b)/i,/^(?:[^\->:\n,;]+?([\-]*[^\->:\n,;]+?)*?(?=((?!\n)\s)+as(?!\n)\s|[#\n;]|$))/i,/^(?:as\b)/i,/^(?:(?:))/i,/^(?:loop\b)/i,/^(?:rect\b)/i,/^(?:opt\b)/i,/^(?:alt\b)/i,/^(?:else\b)/i,/^(?:par\b)/i,/^(?:par_over\b)/i,/^(?:and\b)/i,/^(?:critical\b)/i,/^(?:option\b)/i,/^(?:break\b)/i,/^(?:(?:[:]?(?:no)?wrap)?[^#\n;]*)/i,/^(?:end\b)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:links\b)/i,/^(?:link\b)/i,/^(?:properties\b)/i,/^(?:details\b)/i,/^(?:over\b)/i,/^(?:note\b)/i,/^(?:activate\b)/i,/^(?:deactivate\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:title:\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:sequenceDiagram\b)/i,/^(?:autonumber\b)/i,/^(?:off\b)/i,/^(?:,)/i,/^(?:;)/i,/^(?:[^\+\->:\n,;]+((?!(-x|--x|-\)|--\)))[\-]*[^\+\->:\n,;]+)*)/i,/^(?:->>)/i,/^(?:-->>)/i,/^(?:->)/i,/^(?:-->)/i,/^(?:-[x])/i,/^(?:--[x])/i,/^(?:-[
2023-05-24 18:25:13 +00:00
stroke: ${i.actorBorder};
fill: ${i.actorBkg};
2022-11-17 22:35:28 +00:00
}
text.actor > tspan {
2023-05-24 18:25:13 +00:00
fill: ${i.actorTextColor};
2022-11-17 22:35:28 +00:00
stroke: none;
}
.actor-line {
2023-05-24 18:25:13 +00:00
stroke: ${i.actorLineColor};
2022-11-17 22:35:28 +00:00
}
.messageLine0 {
stroke-width: 1.5;
stroke-dasharray: none;
2023-05-24 18:25:13 +00:00
stroke: ${i.signalColor};
2022-11-17 22:35:28 +00:00
}
.messageLine1 {
stroke-width: 1.5;
stroke-dasharray: 2, 2;
2023-05-24 18:25:13 +00:00
stroke: ${i.signalColor};
2022-11-17 22:35:28 +00:00
}
#arrowhead path {
2023-05-24 18:25:13 +00:00
fill: ${i.signalColor};
stroke: ${i.signalColor};
2022-11-17 22:35:28 +00:00
}
.sequenceNumber {
2023-05-24 18:25:13 +00:00
fill: ${i.sequenceNumberColor};
2022-11-17 22:35:28 +00:00
}
#sequencenumber {
2023-05-24 18:25:13 +00:00
fill: ${i.signalColor};
2022-11-17 22:35:28 +00:00
}
#crosshead path {
2023-05-24 18:25:13 +00:00
fill: ${i.signalColor};
stroke: ${i.signalColor};
2022-11-17 22:35:28 +00:00
}
.messageText {
2023-05-24 18:25:13 +00:00
fill: ${i.signalTextColor};
2022-11-17 22:35:28 +00:00
stroke: none;
}
.labelBox {
2023-05-24 18:25:13 +00:00
stroke: ${i.labelBoxBorderColor};
fill: ${i.labelBoxBkgColor};
2022-11-17 22:35:28 +00:00
}
.labelText, .labelText > tspan {
2023-05-24 18:25:13 +00:00
fill: ${i.labelTextColor};
2022-11-17 22:35:28 +00:00
stroke: none;
}
.loopText, .loopText > tspan {
2023-05-24 18:25:13 +00:00
fill: ${i.loopTextColor};
2022-11-17 22:35:28 +00:00
stroke: none;
}
.loopLine {
stroke-width: 2px;
stroke-dasharray: 2, 2;
2023-05-24 18:25:13 +00:00
stroke: ${i.labelBoxBorderColor};
fill: ${i.labelBoxBorderColor};
2022-11-17 22:35:28 +00:00
}
.note {
//stroke: #decc93;
2023-05-24 18:25:13 +00:00
stroke: ${i.noteBorderColor};
fill: ${i.noteBkgColor};
2022-11-17 22:35:28 +00:00
}
.noteText, .noteText > tspan {
2023-05-24 18:25:13 +00:00
fill: ${i.noteTextColor};
2022-11-17 22:35:28 +00:00
stroke: none;
}
.activation0 {
2023-05-24 18:25:13 +00:00
fill: ${i.activationBkgColor};
stroke: ${i.activationBorderColor};
2022-11-17 22:35:28 +00:00
}
.activation1 {
2023-05-24 18:25:13 +00:00
fill: ${i.activationBkgColor};
stroke: ${i.activationBorderColor};
2022-11-17 22:35:28 +00:00
}
.activation2 {
2023-05-24 18:25:13 +00:00
fill: ${i.activationBkgColor};
stroke: ${i.activationBorderColor};
2022-11-17 22:35:28 +00:00
}
.actorPopupMenu {
position: absolute;
}
.actorPopupMenuPanel {
position: absolute;
2023-05-24 18:25:13 +00:00
fill: ${i.actorBkg};
2022-11-17 22:35:28 +00:00
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 line {
2023-05-24 18:25:13 +00:00
stroke: ${i.actorBorder};
fill: ${i.actorBkg};
2022-11-17 22:35:28 +00:00
}
.actor-man circle, line {
2023-05-24 18:25:13 +00:00
stroke: ${i.actorBorder};
fill: ${i.actorBkg};
2022-11-17 22:35:28 +00:00
stroke-width: 2px;
}
`,kE=18*2,cgt=function(i,a){return zW(i,a)},bRt=(i,a)=>{sAe(()=>{const f=document.querySelectorAll(i);f.length!==0&&(f[0].addEventListener("mouseover",function(){THe("actor"+a+"_popup")}),f[0].addEventListener("mouseout",function(){_He("actor"+a+"_popup")}))})},xHe=function(i,a,f,p,v){if(a.links===void 0||a.links===null||Object.keys(a.links).length===0)return{height:0,width:0};const m=a.links,b=a.actorCnt,E=a.rectData;var C="none";v&&(C="block !important");const A=i.append("g");A.attr("id","actor"+b+"_popup"),A.attr("class","actorPopupMenu"),A.attr("display",C),bRt("#actor"+b+"_popup",b);var N="";E.class!==void 0&&(N=" "+E.class);let F=E.width>f?E.width:f;const j=A.append("rect");if(j.attr("class","actorPopupMenuPanel"+N),j.attr("x",E.x),j.attr("y",E.height),j.attr("fill",E.fill),j.attr("stroke",E.stroke),j.attr("width",F),j.attr("height",E.height),j.attr("rx",E.rx),j.attr("ry",E.ry),m!=null){var R=20;for(let rt in m){var H=A.append("a"),Y=Zx(m[rt]);H.attr("xlink:href",Y),H.attr("target","_blank"),zHe(p)(rt,H,E.x+10,E.height+R,F,20,{class:"actor"},p),R+=30}}return j.attr("height",R),{height:E.height+R,width:F}},kHe=function(i){return"var pu = document.getElementById('"+i+"'); if (pu != null) { pu.style.display = 'block'; }"},EHe=function(i){return"var pu = document.getElementById('"+i+"'); if (pu != null) { pu.style.display = 'none'; }"},THe=function(i){var a=document.getElementById(i);a!=null&&(a.style.display="block")},_He=function(i){var a=document.getElementById(i);a!=null&&(a.style.display="none")},fL=function(i,a){let f=0,p=0;const v=a.text.split(bi.lineBreakRegex),[m,b]=HA(a.fontSize);let E=[],C=0,A=()=>a.y;if(a.valign!==void 0&&a.textMargin!==void 0&&a.textMargin>0)switch(a.valign){case"top":case"start":A=()=>Math.round(a.y+a.textMargin);break;case"middle":case"center":A=()=>Math.round(a.y+(f+p+a.textMargin)/2);break;case"bottom":case"end":A=()=>Math.round(a.y+(f+p+2*a.textMargin)-a.textMargin);break}if(a.anchor!==void 0&&a.textMargin!==void 0&&a.width!==void 0)switch(a.anchor){case"left":case"start":a.x=Math.round(a.x+a.textMargin),a.anchor="start",a.dominantBaseline="middle",a.alignmentBaseline="middle";break;case"middle":case"center":a.x=Math.round(a.x+a.width/2),a.anchor="middle",a.dominantBaseline="middle",a.alignmentBaseline="middle";break;case"right":case"end":a.x=Math.round(a.x+a.width-a.textMargin),a.anchor="end",a.dominantBaseline="middle",a.alignmentBaseline="middle";break}for(let[N,F]of v.entries()){a.textMargin!==void 0&&a.textMargin===0&&m!==void 0&&(C=N*m);const j=i.append("text");j.attr("x",a.x),j.attr("y",A()),a.anchor!==void 0&&j.attr("text-anchor",a.anchor).attr("dominant-baseline",a.dominantBaseline).attr("alignment-baseline",a.alignmentBaseline),a.fontFamily!==void 0&&j.style("font-family",a.fontFamily),b!==void 0&&j.style("font-size",b),a.fontWeight!==void 0&&j.style("font-weight",a.fontWeight),a.fill!==void 0&&j.attr("fill",a.fill),a.class!==void 0&&j.attr("class",a.class),a.dy!==void 0?j.attr("dy",a.dy):C!==0&&j.attr("dy",C);const R=F||jIt;if(a.tspan){const H=j.append("tspan");H.attr("x",a.x),a.fill!==void 0&&H.attr("fill",a.fill),H.text(R)}else j.text(R);a.valign!==void 0&&a.textMargin!==void 0&&a.textMargin>0&&(p+=(j._groups||j)[0][0].getBBox().height,f=p),E.push(j)}return E},vRt=function(i,a){function f(v,m,b,E,C){return v+","+m+" "+(v+b)+","+m+" "+(v+b)+","+(m+E-C)+" "+(v+b-C*1.2)+","+(m+E)+" "+v+","+(m+E)}const p=i.append("polygon");return p.attr("points",f(a.x,a.y,a.width,a.height,7)),p.attr("class","labelBox"),a.y=a.y+a.height/2,fL(i,a),p};let lm=-1;const wRt=(i,a,f,p)=>{i.select&&f.forEach(v=>{const m=a[v],b=i.select("#actor"+m.actorCnt);!p.mirrorActors&&m.stopy?b.attr("y2",m.stopy+m.height/2):p.mirrorActors&&b.attr("y2",m.stopy)})},CHe=function(i,a,f,p){const v=p?a.stopy:a.starty,m=a.x+a.width/2,b=v+5,E=i.append("g").lower();var C=E;p||(lm++,C.append("line").attr("id","actor"+lm).attr("x1",m).attr("y1",b).attr("x2",m).attr("y2",2e3).attr("class","actor-line").attr("class","200").attr("stroke-width","0.5px").attr("stroke","#999"),C=E.append("g"),a.actorCnt=lm,a.links!=null&&(C.att
`+kn.showPosition()+`
Expecting `+Ba.join(", ")+", got '"+(this.terminals_[Zr]||Zr)+"'":zn="Parse error on line "+(rr+1)+": Unexpected "+(Zr==Zn?"end of input":"'"+(this.terminals_[Zr]||Zr)+"'"),this.parseError(zn,{text:kn.match,token:this.terminals_[Zr]||Zr,line:kn.yylineno,loc:os,expected:Ba})}if(Gn[0]instanceof Array&&Gn.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Hi+", token: "+Zr);switch(Gn[0]){case 1:Pe.push(Zr),vr.push(kn.yytext),$t.push(kn.yylloc),Pe.push(Gn[1]),Zr=null,ar=kn.yyleng,le=kn.yytext,rr=kn.yylineno,os=kn.yylloc;break;case 2:if(Li=this.productions_[Gn[1]][1],Or.$=vr[vr.length-Li],Or._$={first_line:$t[$t.length-(Li||1)].first_line,last_line:$t[$t.length-1].last_line,first_column:$t[$t.length-(Li||1)].first_column,last_column:$t[$t.length-1].last_column},As&&(Or._$.range=[$t[$t.length-(Li||1)].range[0],$t[$t.length-1].range[1]]),Jn=this.performAction.apply(Or,[le,ar,rr,_r.yy,Gn[1],vr,$t].concat(dn)),typeof Jn<"u")return Jn;Li&&(Pe=Pe.slice(0,-1*Li*2),vr=vr.slice(0,-1*Li),$t=$t.slice(0,-1*Li)),Pe.push(this.productions_[Gn[1]][0]),vr.push(Or.$),$t.push(Or._$),Dn=ur[Pe[Pe.length-2]][Pe[Pe.length-1]],Pe.push(Dn);break;case 3:return!0}}return!0}},ce=function(){var he={EOF:1,parseError:function(se,Pe){if(this.yy.parser)this.yy.parser.parseError(se,Pe);else throw new Error(se)},setInput:function(Re,se){return this.yy=se||this.yy||{},this._input=Re,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},input:function(){var Re=this._input[0];this.yytext+=Re,this.yyleng++,this.offset++,this.match+=Re,this.matched+=Re;var se=Re.match(/(?:\r\n?|\n).*/g);return se?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),Re},unput:function(Re){var se=Re.length,Pe=Re.split(/(?:\r\n?|\n)/g);this._input=Re+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-se),this.offset-=se;var Qt=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),Pe.length-1&&(this.yylineno-=Pe.length-1);var vr=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:Pe?(Pe.length===Qt.length?this.yylloc.first_column:0)+Qt[Qt.length-Pe.length].length-Pe[0].length:this.yylloc.first_column-se},this.options.ranges&&(this.yylloc.range=[vr[0],vr[0]+this.yyleng-se]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject: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},less:function(Re){this.unput(this.match.slice(Re))},pastInput:function(){var Re=this.matched.substr(0,this.matched.length-this.match.length);return(Re.length>20?"...":"")+Re.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var Re=this.match;return Re.length<20&&(Re+=this._input.substr(0,20-Re.length)),(Re.substr(0,20)+(Re.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var Re=this.pastInput(),se=new Array(Re.length+1).join("-");return Re+this.upcomingInput()+`
`+se+"^"},test_match:function(Re,se){var Pe,Qt,vr;if(this.options.backtrack_lexer&&(vr={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&&(vr.yylloc.range=this.yylloc.range.slice(0))),Qt=Re[0].match(/(?:\r\n?|\n).*/g),Qt&&(this.yylineno+=Qt.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Qt?Qt[Qt.length-1].length-Qt[Qt.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+Re[0].length},this.yytext+=Re[0],this.match+=Re[0],this.matches=Re,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(Re[0].length),this.matched+=Re[0],Pe=this.performAction.call(this,this.yy,this,se,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),Pe)return Pe;if(this._backtrack){for(var $t in vr)this[$t]=vr[$t];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var Re,se,Pe,Qt;this._more||(this.yytext="",this.match="");for(var vr=this._currentRules(),$t=0;$t<vr.length;$t++)if(Pe=this._input.match(this.rules[vr[$t]]),Pe&&(!se||Pe[0].length>se[0].length)){if(se=Pe,Qt=$t,this.options.backtrack_lexer){if(Re=this.test_match(Pe,vr[$t]),Re!==!1)return Re;if(this._backtrack){se=!1;continue}else return!1}else if(!this.options.flex)break}return se?(Re=this.test_match(se,vr[Qt]),Re!==!1?Re:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var se=this.next();return se||this.lex()},begin:function(se){this.conditionStack.push(se)},popState:function(){var se=this.conditionStack.length-1;return se>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(se){return se=this.conditionStack.length-1-Math.abs(se||0),se>=0?this.conditionStack[se]:"INITIAL"},pushState:function(se){this.begin(se)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(se,Pe,Qt,vr){switch(Qt){case 0:return this.begin("open_directive"),19;case 1:return 8;case 2:return 9;case 3:return 10;case 4:return 11;case 5:return this.begin("type_directive"),20;case 6:return this.popState(),this.begin("arg_directive"),17;case 7:return this.popState(),this.popState(),22;case 8:return 21;case 9:break;case 10:break;case 11:return this.begin("acc_title"),44;case 12:return this.popState(),"acc_title_value";case 13:return this.begin("acc_descr"),46;case 14:return this.popState(),"acc_descr_value";case 15:this.begin("acc_descr_multiline");break;case 16:this.popState();break;case 17:return"acc_descr_multiline_value";case 18:return 16;case 19:break;case 20:return 23;case 21:return 23;case 22:return"EDGE_STATE";case 23:this.begin("callback_name");break;case 24:this.popState();break;case 25:this.popState(),this.begin("callback_args");break;case 26:return 79;case 27:this.popState();break;case 28:return 80;case 29:this.popState();break;case 30:return"STR";case 31:this.begin("string");break;case 32:return this.begin("namespace"),53;case 33:return this.popState(),16;case 34:break;case 35:return this.begin("namespace-body"),50;case 36:return this.popState(),52;case 37:return"EOF_IN_STRUCT";case 38:return 16;case 39:break;case 40:return"EDGE_STATE";case 41:return this.begin("class"),57;case 42:return this.popState(),16;case 43:break;case 44:return this.popState(),this.popState(),52;case 45:return this.begin("class-body"),50;case 46:return this.popState(),52;case 47:return"EOF_IN_STRUCT";case 48:return"EDGE_STATE";case 49:return"OPEN_IN_STRUCT";case 50:break;case 51:return"MEMBER";case 52:return 82;case 53:return 75;case 54:return 76;case 55:return 78;case 56:return 63;case 57:return 65;case 58:return 58;case 59:return 59;case 60:return 81;case 61:this.popState();break;case 62:return"GENERICTYPE";case 63:this.begin("generic");break;case 64:this.popState();break;case 65:return"BQUOTE_STR";case 66:this.begin("bqstring");break;case 67:return 77;case 68:return 77;case 69:return 77;case 70:return 77;case 71:return 69;case 72:return 69;case 73:return 71;case 74:return 71;case 75:return 70;case 76:return 68;case 77:return 72;case 78:return 73;case 79:return 74;case 80:return 36;case 81:return 55;case 82:return 94;case 83:return"DOT";case 84:return"PLUS";case 85:return 91;case 86:return"EQUALS";case 87:return"EQUALS";case 88:return 98;case 89:return 27;case 90:return 29;case 91:return"PUNCTUATION";case 92:return 97;case 93:return 96;case 94:return 93;case 95:return 24}},rules:[/^(?:%%\{)/,/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:((?:(?!\}%%)[^:.])*))/,/^(?::)/,/^(?:\}%%)/,/^(?:((?:(?!\}%%).|\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]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:["])/,/^(?:[^"]*)/,/^(?:["])/,/^(?:namespace\b)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:[{])/,/^(?:[}])/,/^(?:$)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:\[\*\])/,/^(?:class\b)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:[}])/,/^(?:[{])/,/^(?:[}])/,/^(?:$)/,
2023-05-24 18:25:13 +00:00
fill: ${i.nodeBorder};
fill: ${i.classText};
stroke: none;
font-family: ${i.fontFamily};
font-size: 10px;
.title {
font-weight: bolder;
}
}
.nodeLabel, .edgeLabel {
color: ${i.classText};
}
.edgeLabel .label rect {
fill: ${i.mainBkg};
}
.label text {
fill: ${i.classText};
}
.edgeLabel .label span {
background: ${i.mainBkg};
}
.classTitle {
font-weight: bolder;
}
.node rect,
.node circle,
.node ellipse,
.node polygon,
.node path {
fill: ${i.mainBkg};
stroke: ${i.nodeBorder};
stroke-width: 1px;
}
.divider {
stroke: ${i.nodeBorder};
stroke-width: 1;
}
g.clickable {
cursor: pointer;
}
g.classGroup rect {
fill: ${i.mainBkg};
stroke: ${i.nodeBorder};
}
g.classGroup line {
stroke: ${i.nodeBorder};
stroke-width: 1;
}
.classLabel .box {
stroke: none;
stroke-width: 0;
fill: ${i.mainBkg};
opacity: 0.5;
}
.classLabel .label {
fill: ${i.nodeBorder};
font-size: 10px;
}
.relation {
stroke: ${i.lineColor};
stroke-width: 1;
fill: none;
}
.dashed-line{
stroke-dasharray: 3;
}
.dotted-line{
stroke-dasharray: 1 2;
}
#compositionStart, .composition {
fill: ${i.lineColor} !important;
stroke: ${i.lineColor} !important;
stroke-width: 1;
}
#compositionEnd, .composition {
fill: ${i.lineColor} !important;
stroke: ${i.lineColor} !important;
stroke-width: 1;
}
#dependencyStart, .dependency {
fill: ${i.lineColor} !important;
stroke: ${i.lineColor} !important;
stroke-width: 1;
}
#dependencyStart, .dependency {
fill: ${i.lineColor} !important;
stroke: ${i.lineColor} !important;
stroke-width: 1;
}
#extensionStart, .extension {
fill: ${i.mainBkg} !important;
stroke: ${i.lineColor} !important;
stroke-width: 1;
}
#extensionEnd, .extension {
fill: ${i.mainBkg} !important;
stroke: ${i.lineColor} !important;
stroke-width: 1;
}
#aggregationStart, .aggregation {
fill: ${i.mainBkg} !important;
stroke: ${i.lineColor} !important;
stroke-width: 1;
}
#aggregationEnd, .aggregation {
fill: ${i.mainBkg} !important;
stroke: ${i.lineColor} !important;
stroke-width: 1;
}
#lollipopStart, .lollipop {
fill: ${i.mainBkg} !important;
stroke: ${i.lineColor} !important;
stroke-width: 1;
}
#lollipopEnd, .lollipop {
fill: ${i.mainBkg} !important;
stroke: ${i.lineColor} !important;
stroke-width: 1;
}
.edgeTerminals {
font-size: 11px;
}
.classTitleText {
text-anchor: middle;
font-size: 18px;
fill: ${i.textColor};
}
`;let PK={};const NK=20,$N=function(i){const a=Object.entries(PK).find(f=>f[1].label===i);if(a)return a[0]},xVe=function(i){i.append("defs").append("marker").attr("id","extensionStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),i.append("defs").append("marker").attr("id","extensionEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z"),i.append("defs").append("marker").attr("id","compositionStart").attr("class","extension").attr("refX",0).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"),i.append("defs").append("marker").attr("id","compositionEnd").attr("refX",19).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"),i.append("defs").append("marker").attr("id","aggregationStart").attr("class","extension").attr("refX",0).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"),i.append("defs").append("marker").attr("id","aggregationEnd").attr("refX",19).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"),i.append("defs").append("marker").attr("id","dependencyStart").attr("class","extension").attr("refX",0).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"),i.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 18,7 L9,13 L14,7 L9,1 Z")},kVe=Object.freeze(Object.defineProperty({__proto__:null,diagram:{parser:TRt,db:OK,renderer:{draw:function(i,a,f,p){const v=Me().class;PK={},Vt.info("Rendering diagram "+i);const m=Me().securityLevel;let b;m==="sandbox"&&(b=wr("#i"+a));const E=wr(m==="sandbox"?b.nodes()[0].contentDocument.body:"body"),C=E.select(`[id='${a}']`);xVe(C);const A=new d1({multigraph:!0});A.setGraph({isMultiGraph:!0}),A.setDefaultEdgeLabel(function(){return{}});const N=p.db.getClasses(),F=Object.keys(N);for(const it of F){const ht=N[it],Tt=S0t.drawClass(C,ht,v,p);PK[Tt.id]=Tt,A.setNode(Tt.id,Tt),Vt.info("Org height: "+Tt.height)}p.db.getRelations().forEach(function(it){Vt.info("tjoho"+$N(it.id1)+$N(it.id2)+JSON.stringify(it)),A.setEdge($N(it.id1),$N(it.id2),{relation:it},it.title||"DEFAULT")}),p.db.getNotes().forEach(function(it){Vt.debug(`Adding note: ${JSON.stringify(it)}`);const ht=S0t.drawNote(C,it,v,p);PK[ht.id]=ht,A.setNode(ht.id,ht),it.class&&it.class in N&&A.setEdge(it.id,$N(it.class),{relation:{id1:it.id,id2:it.class,relation:{type1:"none",type2:"none",lineType:10}}},"DEFAULT")}),rL(A),A.nodes().forEach(function(it){it!==void 0&&A.node(it)!==void 0&&(Vt.debug("Node "+it+": "+JSON.stringify(A.node(it))),E.select("#"+(p.db.lookUpDomId(it)||it)).attr("transform","translate("+(A.node(it).x-A.node(it).width/2)+","+(A.node(it).y-A.node(it).height/2)+" )"))}),A.edges().forEach(function(it){it!==void 0&&A.edge(it)!==void 0&&(Vt.debug("Edge "+it.v+" -> "+it.w+": "+JSON.stringify(A.edge(it))),S0t.drawEdge(C,A.edge(it),A.edge(it).relation,v,p))});const H=C.node().getBBox(),Y=H.width+NK*2,rt=H.height+NK*2;N2(C,rt,Y,v.useMaxWidth);const J=`${H.x-NK} ${H.y-NK} ${Y} ${rt}`;Vt.debug(`viewBox ${J}`),C.attr("viewBox",J)}},styles:MRt,init:i=>{i.class||(i.class={}),i.class.arrowMarkerAbsolute=i.arrowMarkerAbsolute,OK.clear()}}},Symbol.toStringTag,{value:"Module"})),vgt=i=>bi.sanitizeText(i,Me());let wgt={dividerMargin:10,padding:5,textHeight:10,curve:void 0};const EVe=function(i,a,f,p){const v=Object.keys(i);Vt.info("keys:",v),Vt.info(i),v.forEach(function(m){var A,N;const b=i[m],C={shape:"rect",id:b.id,domId:b.domId,labelText:vgt(b.id),labelStyle:"",style:"
`),v.style===void 0&&(m.style=m.style||"stroke: #333; stroke-width: 1.5px;fill:none"),m.labelStyle=m.labelStyle.replace("color:","fill:"))),a.setEdge(v.id1,v.id2,m,p)})},CVe=function(i){wgt={...wgt,...i}},SVe=async function(i,a,f,p){Vt.info("Drawing class - ",a);const v=Me().flowchart??Me().class,m=Me().securityLevel;Vt.info("config:",v);const b=(v==null?void 0:v.nodeSpacing)??50,E=(v==null?void 0:v.rankSpacing)??50,C=new d1({multigraph:!0,compound:!0}).setGraph({rankdir:p.db.getDirection(),nodesep:b,ranksep:E,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}}),A=p.db.getNamespaces(),N=p.db.getClasses(),F=p.db.getRelations(),j=p.db.getNotes();Vt.info(F),EVe(A,C,a,p),DRt(N,C,a,p),_Ve(F,C),TVe(j,C,F.length+1,N);let R;m==="sandbox"&&(R=wr("#i"+a));const H=wr(m==="sandbox"?R.nodes()[0].contentDocument.body:"body"),Y=H.select(`[id="${a}"]`),rt=H.select("#"+a+" g");if(await A0t(rt,C,["aggregation","extension","composition","dependency","lollipop"],"classDiagram",a),ho.insertTitle(Y,"classTitleText",(v==null?void 0:v.titleTopMargin)??5,p.db.getDiagramTitle()),nE(C,Y,v==null?void 0:v.diagramPadding,v==null?void 0:v.useMaxWidth),!(v!=null&&v.htmlLabels)){const J=m==="sandbox"?R.nodes()[0].contentDocument:document,it=J.querySelectorAll('[id="'+a+'"] .edgeLabel .label');for(const ht of it){const Tt=ht.getBBox(),yt=J.createElementNS("http://www.w3.org/2000/svg","rect");yt.setAttribute("rx",0),yt.setAttribute("ry",0),yt.setAttribute("width",Tt.width),yt.setAttribute("height",Tt.height),ht.insertBefore(yt,ht.firstChild)}}};function IRt(i){let a;switch(i){case 0:a="aggregation";break;case 1:a="extension";break;case 2:a="composition";break;case 3:a="dependency";break;case 4:a="lollipop";break;default:a="none"}return a}const AVe=Object.freeze(Object.defineProperty({__proto__:null,diagram:{parser:TRt,db:OK,renderer:{setConf:CVe,draw:SVe},styles:MRt,init:i=>{i.class||(i.class={}),i.class.arrowMarkerAbsolute=i.arrowMarkerAbsolute,OK.clear()}}},Symbol.toStringTag,{value:"Module"}));var mgt=function(){var i=function(Rt,mt,Ot,Gt){for(Ot=Ot||{},Gt=Rt.length;Gt--;Ot[Rt[Gt]]=mt);return Ot},a=[1,2],f=[1,3],p=[1,5],v=[1,7],m=[2,5],b=[1,15],E=[1,17],C=[1,21],A=[1,22],N=[1,23],F=[1,24],j=[1,37],R=[1,25],H=[1,26],Y=[1,27],rt=[1,28],J=[1,29],it=[1,32],ht=[1,33],Tt=[1,34],yt=[1,35],vt=[1,36],ut=[1,39],xt=[1,40],st=[1,41],Et=[1,42],gt=[1,38],pt=[1,45],Ct=[1,4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,42,50,51,52,53,56,60],nt=[1,4,5,14,15,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,42,50,51,52,53,56,60],Nt=[1,4,5,7,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,42,50,51,52,53,56,60],dt=[4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,42,50,51,52,53,56,60],Ft={trace:function(){},yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,directive:6,SD:7,document:8,line:9,statement:10,classDefStatement: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,classDef:38,CLASSDEF_ID:39,CLASSDEF_STYLEOPTS:40,DEFAULT:41,class:42,CLASSENTITY_IDS:43,STYLECLASS:44,openDirective:45,typeDirective:46,closeDirective:47,":":48,argDirective:49,direction_tb:50,direction_bt:51,direction_rl:52,direction_lr:53,eol:54,";":55,EDGE_STATE:56,STYLE_SEPARATOR:57,left_of:58,right_of:59,open_directive:60,type_directive:61,arg_directive:62,close_directive:63,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",7:"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:"classDef",39:"CLASSDEF_ID",40:"CLASSDEF_STYLEOPTS",41:"DEFAULT",42:"class",43:"CLASSENTITY_IDS",44:"STYLECLASS",48:":",50:"direction_tb",51:"direction_bt"
`+he.showPosition()+`
Expecting `+kn.join(", ")+", got '"+(this.terminals_[$t]||$t)+"'":_r="Parse error on line "+(ee+1)+": Unexpected "+($t==ce?"end of input":"'"+(this.terminals_[$t]||$t)+"'"),this.parseError(_r,{text:he.match,token:this.terminals_[$t]||$t,line:he.yylineno,loc:Pe,expected:kn})}if(le[0]instanceof Array&&le.length>1)throw new Error("Parse Error: multiple actions possible at state: "+ur+", token: "+$t);switch(le[0]){case 1:Gt.push($t),Cn.push(he.yytext),xe.push(he.yylloc),Gt.push(le[1]),$t=null,_e=he.yyleng,Se=he.yytext,ee=he.yylineno,Pe=he.yylloc;break;case 2:if(Zn=this.productions_[le[1]][1],ar.$=Cn[Cn.length-Zn],ar._$={first_line:xe[xe.length-(Zn||1)].first_line,last_line:xe[xe.length-1].last_line,first_column:xe[xe.length-(Zn||1)].first_column,last_column:xe[xe.length-1].last_column},Qt&&(ar._$.range=[xe[xe.length-(Zn||1)].range[0],xe[xe.length-1].range[1]]),rr=this.performAction.apply(ar,[Se,_e,ee,Re.yy,le[1],Cn,xe].concat(Ce)),typeof rr<"u")return rr;Zn&&(Gt=Gt.slice(0,-1*Zn*2),Cn=Cn.slice(0,-1*Zn),xe=xe.slice(0,-1*Zn)),Gt.push(this.productions_[le[1]][0]),Cn.push(ar.$),xe.push(ar._$),dn=Kn[Gt[Gt.length-2]][Gt[Gt.length-1]],Gt.push(dn);break;case 3:return!0}}return!0}},X=function(){var Rt={EOF:1,parseError:function(Ot,Gt){if(this.yy.parser)this.yy.parser.parseError(Ot,Gt);else throw new Error(Ot)},setInput:function(mt,Ot){return this.yy=Ot||this.yy||{},this._input=mt,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},input:function(){var mt=this._input[0];this.yytext+=mt,this.yyleng++,this.offset++,this.match+=mt,this.matched+=mt;var Ot=mt.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),mt},unput:function(mt){var Ot=mt.length,Gt=mt.split(/(?:\r\n?|\n)/g);this._input=mt+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-Ot),this.offset-=Ot;var Ve=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),Gt.length-1&&(this.yylineno-=Gt.length-1);var Cn=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:Gt?(Gt.length===Ve.length?this.yylloc.first_column:0)+Ve[Ve.length-Gt.length].length-Gt[0].length:this.yylloc.first_column-Ot},this.options.ranges&&(this.yylloc.range=[Cn[0],Cn[0]+this.yyleng-Ot]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject: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},less:function(mt){this.unput(this.match.slice(mt))},pastInput:function(){var mt=this.matched.substr(0,this.matched.length-this.match.length);return(mt.length>20?"...":"")+mt.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var mt=this.match;return mt.length<20&&(mt+=this._input.substr(0,20-mt.length)),(mt.substr(0,20)+(mt.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var mt=this.pastInput(),Ot=new Array(mt.length+1).join("-");return mt+this.upcomingInput()+`
`+Ot+"^"},test_match:function(mt,Ot){var Gt,Ve,Cn;if(this.options.backtrack_lexer&&(Cn={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&&(Cn.yylloc.range=this.yylloc.range.slice(0))),Ve=mt[0].match(/(?:\r\n?|\n).*/g),Ve&&(this.yylineno+=Ve.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Ve?Ve[Ve.length-1].length-Ve[Ve.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+mt[0].length},this.yytext+=mt[0],this.match+=mt[0],this.matches=mt,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(mt[0].length),this.matched+=mt[0],Gt=this.performAction.call(this,this.yy,this,Ot,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),Gt)return Gt;if(this._backtrack){for(var xe in Cn)this[xe]=Cn[xe];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var mt,Ot,Gt,Ve;this._more||(this.yytext="",this.match="");for(var Cn=this._currentRules(),xe=0;xe<Cn.length;xe++)if(Gt=this._input.match(this.rules[Cn[xe]]),Gt&&(!Ot||Gt[0].length>Ot[0].length)){if(Ot=Gt,Ve=xe,this.options.backtrack_lexer){if(mt=this.test_match(Gt,Cn[xe]),mt!==!1)return mt;if(this._backtrack){Ot=!1;continue}else return!1}else if(!this.options.flex)break}return Ot?(mt=this.test_match(Ot,Cn[Ve]),mt!==!1?mt:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var Ot=this.next();return Ot||this.lex()},begin:function(Ot){this.conditionStack.push(Ot)},popState:function(){var Ot=this.conditionStack.length-1;return Ot>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(Ot){return Ot=this.conditionStack.length-1-Math.abs(Ot||0),Ot>=0?this.conditionStack[Ot]:"INITIAL"},pushState:function(Ot){this.begin(Ot)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(Ot,Gt,Ve,Cn){switch(Ve){case 0:return 41;case 1:return 50;case 2:return 51;case 3:return 52;case 4:return 53;case 5:return this.begin("open_directive"),60;case 6:return this.begin("type_directive"),61;case 7:return this.popState(),this.begin("arg_directive"),48;case 8:return this.popState(),this.popState(),63;case 9:return 62;case 10:break;case 11:break;case 12:return 5;case 13:break;case 14:break;case 15:break;case 16:break;case 17:return this.pushState("SCALE"),17;case 18:return 18;case 19:this.popState();break;case 20:return this.begin("acc_title"),33;case 21:return this.popState(),"acc_title_value";case 22:return this.begin("acc_descr"),35;case 23:return this.popState(),"acc_descr_value";case 24:this.begin("acc_descr_multiline");break;case 25:this.popState();break;case 26:return"acc_descr_multiline_value";case 27:return this.pushState("CLASSDEF"),38;case 28:return this.popState(),this.pushState("CLASSDEFID"),"DEFAULT_CLASSDEF_ID";case 29:return this.popState(),this.pushState("CLASSDEFID"),39;case 30:return this.popState(),40;case 31:return this.pushState("CLASS"),42;case 32:return this.popState(),this.pushState("CLASS_STYLE"),43;case 33:return this.popState(),44;case 34:return this.pushState("SCALE"),17;case 35:return 18;case 36:this.popState();break;case 37:this.pushState("STATE");break;case 38:return this.popState(),Gt.yytext=Gt.yytext.slice(0,-8).trim(),25;case 39:return this.popState(),Gt.yytext=Gt.yytext.slice(0,-8).trim(),26;case 40:return this.popState(),Gt.yytext=Gt.yytext.slice(0,-10).trim(),27;case 41:return this.popState(),Gt.yytext=Gt.yytext.slice(0,-8).trim(),25;case 42:return this.popState(),Gt.yytext=Gt.yytext.slice(0,-8).trim(),26;case 43:return this.popState(),Gt.yytext=Gt.yytext.slice(0,-10).trim(),27;case 44:return 50;case 45:return 51;case 46:return 52;case 47:return 53;case 48:this.pushState("STATE_STRING");break;case 49:return this.pushState("STATE_ID"),"AS";case 50:return this.popState(),"ID";case 51:this.popState();break;case 52:return"STATE_DESCR";case 53:return 19;case 54:this.popState();break;case 55:return this.popState(),this.pushState("struct"),20;case 56:break;case 57:return this.popState(),21;case 58:break;case 59:return this.begin("NOTE"),29;case 60:return this.popState(),this.pushState("NOTE_ID"),58;case 61:return this.popState(),this.pushState("NOTE_ID"),59;case 62:this.popState(),this.pushState("FLOATING_NOTE");break;case 63:return this.popState(),this.pushState("FLOATING_NOTE_ID"),"AS";case 64:break;case 65:return"NOTE_TEXT";case 66:return this.popState(),"ID";case 67:return this.popState(),this.pushState("NOTE_TEXT"),24;case 68:return this.popState(),Gt.yytext=Gt.yytext.substr(2).trim(),31;case 69:return this.popState(),Gt.yytext=Gt.yytext.slice(0,-8).trim(),31;case 70:return 7;case 71:return 7;case 72:return 16;case 73:return 56;case 74:return 24;case 75:return Gt.yytext=Gt.yytext.trim(),14;case 76:return 15;case 77:return 28;case 78:return 57;case 79:return 5;case 80:return"INVALID"}},rules:[/^(?:default\b)/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:[\s]+)/i,/^(?:((?!\n)\s)+)/i,/^(
2022-11-17 22:35:28 +00:00
defs #statediagram-barbEnd {
2023-05-24 18:25:13 +00:00
fill: ${i.transitionColor};
stroke: ${i.transitionColor};
2022-11-17 22:35:28 +00:00
}
g.stateGroup text {
2023-05-24 18:25:13 +00:00
fill: ${i.nodeBorder};
2022-11-17 22:35:28 +00:00
stroke: none;
font-size: 10px;
}
g.stateGroup text {
2023-05-24 18:25:13 +00:00
fill: ${i.textColor};
2022-11-17 22:35:28 +00:00
stroke: none;
font-size: 10px;
}
g.stateGroup .state-title {
font-weight: bolder;
2023-05-24 18:25:13 +00:00
fill: ${i.stateLabelColor};
2022-11-17 22:35:28 +00:00
}
g.stateGroup rect {
2023-05-24 18:25:13 +00:00
fill: ${i.mainBkg};
stroke: ${i.nodeBorder};
2022-11-17 22:35:28 +00:00
}
g.stateGroup line {
2023-05-24 18:25:13 +00:00
stroke: ${i.lineColor};
2022-11-17 22:35:28 +00:00
stroke-width: 1;
}
.transition {
2023-05-24 18:25:13 +00:00
stroke: ${i.transitionColor};
2022-11-17 22:35:28 +00:00
stroke-width: 1;
fill: none;
}
.stateGroup .composit {
2023-05-24 18:25:13 +00:00
fill: ${i.background};
2022-11-17 22:35:28 +00:00
border-bottom: 1px
}
.stateGroup .alt-composit {
fill: #e0e0e0;
border-bottom: 1px
}
.state-note {
2023-05-24 18:25:13 +00:00
stroke: ${i.noteBorderColor};
fill: ${i.noteBkgColor};
2022-11-17 22:35:28 +00:00
text {
2023-05-24 18:25:13 +00:00
fill: ${i.noteTextColor};
2022-11-17 22:35:28 +00:00
stroke: none;
font-size: 10px;
}
}
.stateLabel .box {
stroke: none;
stroke-width: 0;
2023-05-24 18:25:13 +00:00
fill: ${i.mainBkg};
2022-11-17 22:35:28 +00:00
opacity: 0.5;
}
.edgeLabel .label rect {
2023-05-24 18:25:13 +00:00
fill: ${i.labelBackgroundColor};
2022-11-17 22:35:28 +00:00
opacity: 0.5;
}
.edgeLabel .label text {
2023-05-24 18:25:13 +00:00
fill: ${i.transitionLabelColor||i.tertiaryTextColor};
2022-11-17 22:35:28 +00:00
}
.label div .edgeLabel {
2023-05-24 18:25:13 +00:00
color: ${i.transitionLabelColor||i.tertiaryTextColor};
2022-11-17 22:35:28 +00:00
}
.stateLabel text {
2023-05-24 18:25:13 +00:00
fill: ${i.stateLabelColor};
2022-11-17 22:35:28 +00:00
font-size: 10px;
font-weight: bold;
}
.node circle.state-start {
2023-05-24 18:25:13 +00:00
fill: ${i.specialStateColor};
stroke: ${i.specialStateColor};
2022-11-17 22:35:28 +00:00
}
.node .fork-join {
2023-05-24 18:25:13 +00:00
fill: ${i.specialStateColor};
stroke: ${i.specialStateColor};
2022-11-17 22:35:28 +00:00
}
.node circle.state-end {
2023-05-24 18:25:13 +00:00
fill: ${i.innerEndBackground};
stroke: ${i.background};
2022-11-17 22:35:28 +00:00
stroke-width: 1.5
}
.end-state-inner {
2023-05-24 18:25:13 +00:00
fill: ${i.compositeBackground||i.background};
// stroke: ${i.background};
2022-11-17 22:35:28 +00:00
stroke-width: 1.5
}
.node rect {
2023-05-24 18:25:13 +00:00
fill: ${i.stateBkg||i.mainBkg};
stroke: ${i.stateBorder||i.nodeBorder};
2022-11-17 22:35:28 +00:00
stroke-width: 1px;
}
.node polygon {
2023-05-24 18:25:13 +00:00
fill: ${i.mainBkg};
stroke: ${i.stateBorder||i.nodeBorder};;
2022-11-17 22:35:28 +00:00
stroke-width: 1px;
}
#statediagram-barbEnd {
2023-05-24 18:25:13 +00:00
fill: ${i.lineColor};
2022-11-17 22:35:28 +00:00
}
.statediagram-cluster rect {
2023-05-24 18:25:13 +00:00
fill: ${i.compositeTitleBackground};
stroke: ${i.stateBorder||i.nodeBorder};
2022-11-17 22:35:28 +00:00
stroke-width: 1px;
}
.cluster-label, .nodeLabel {
2023-05-24 18:25:13 +00:00
color: ${i.stateLabelColor};
2022-11-17 22:35:28 +00:00
}
.statediagram-cluster rect.outer {
rx: 5px;
ry: 5px;
}
.statediagram-state .divider {
2023-05-24 18:25:13 +00:00
stroke: ${i.stateBorder||i.nodeBorder};
2022-11-17 22:35:28 +00:00
}
.statediagram-state .title-state {
rx: 5px;
ry: 5px;
}
.statediagram-cluster.statediagram-cluster .inner {
2023-05-24 18:25:13 +00:00
fill: ${i.compositeBackground||i.background};
2022-11-17 22:35:28 +00:00
}
.statediagram-cluster.statediagram-cluster-alt .inner {
2023-05-24 18:25:13 +00:00
fill: ${i.altBackground?i.altBackground:"#efefef"};
2022-11-17 22:35:28 +00:00
}
.statediagram-cluster .inner {
rx:0;
ry:0;
}
.statediagram-state rect.basic {
rx: 5px;
ry: 5px;
}
.statediagram-state rect.divider {
stroke-dasharray: 10,10;
2023-05-24 18:25:13 +00:00
fill: ${i.altBackground?i.altBackground:"#efefef"};
2022-11-17 22:35:28 +00:00
}
.note-edge {
stroke-dasharray: 5;
}
.statediagram-note rect {
2023-05-24 18:25:13 +00:00
fill: ${i.noteBkgColor};
stroke: ${i.noteBorderColor};
2022-11-17 22:35:28 +00:00
stroke-width: 1px;
rx: 0;
ry: 0;
}
.statediagram-note rect {
2023-05-24 18:25:13 +00:00
fill: ${i.noteBkgColor};
stroke: ${i.noteBorderColor};
2022-11-17 22:35:28 +00:00
stroke-width: 1px;
rx: 0;
ry: 0;
}
.statediagram-note text {
2023-05-24 18:25:13 +00:00
fill: ${i.noteTextColor};
2022-11-17 22:35:28 +00:00
}
.statediagram-note .nodeLabel {
2023-05-24 18:25:13 +00:00
color: ${i.noteTextColor};
2022-11-17 22:35:28 +00:00
}
.statediagram .edgeLabel {
2023-05-24 18:25:13 +00:00
color: red; // ${i.noteTextColor};
2022-11-17 22:35:28 +00:00
}
#dependencyStart, #dependencyEnd {
2023-05-24 18:25:13 +00:00
fill: ${i.lineColor};
stroke: ${i.lineColor};
2022-11-17 22:35:28 +00:00
stroke-width: 1;
}
2023-05-23 13:17:23 +00:00
.statediagramTitleText {
text-anchor: middle;
font-size: 18px;
2023-05-24 18:25:13 +00:00
fill: ${i.textColor};
}
`,Cgt={},JVe=(i,a)=>{Cgt[i]=a},tGe=i=>Cgt[i],KRt=()=>Object.keys(Cgt),eGe={get:tGe,set:JVe,keys:KRt,size:()=>KRt().length},nGe=i=>i.append("circle").attr("class","start-state").attr("r",Me().state.sizeUnit).attr("cx",Me().state.padding+Me().state.sizeUnit).attr("cy",Me().state.padding+Me().state.sizeUnit),rGe=i=>i.append("line").style("stroke","grey").style("stroke-dasharray","3").attr("x1",Me().state.textHeight).attr("class","divider").attr("x2",Me().state.textHeight*2).attr("y1",0).attr("y2",0),iGe=(i,a)=>{const f=i.append("text").attr("x",2*Me().state.padding).attr("y",Me().state.textHeight+2*Me().state.padding).attr("font-size",Me().state.fontSize).attr("class","state-title").text(a.id),p=f.node().getBBox();return i.insert("rect",":first-child").attr("x",Me().state.padding).attr("y",Me().state.padding).attr("width",p.width+2*Me().state.padding).attr("height",p.height+2*Me().state.padding).attr("rx",Me().state.radius),f},sGe=(i,a)=>{const f=function(j,R,H){const Y=j.append("tspan").attr("x",2*Me().state.padding).text(R);H||Y.attr("dy",Me().state.textHeight)},v=i.append("text").attr("x",2*Me().state.padding).attr("y",Me().state.textHeight+1.3*Me().state.padding).attr("font-size",Me().state.fontSize).attr("class","state-title").text(a.descriptions[0]).node().getBBox(),m=v.height,b=i.append("text").attr("x",Me().state.padding).attr("y",m+Me().state.padding*.4+Me().state.dividerMargin+Me().state.textHeight).attr("class","state-description");let E=!0,C=!0;a.descriptions.forEach(function(j){E||(f(b,j,C),C=!1),E=!1});const A=i.append("line").attr("x1",Me().state.padding).attr("y1",Me().state.padding+m+Me().state.dividerMargin/2).attr("y2",Me().state.padding+m+Me().state.dividerMargin/2).attr("class","descr-divider"),N=b.node().getBBox(),F=Math.max(N.width,v.width);return A.attr("x2",F+3*Me().state.padding),i.insert("rect",":first-child").attr("x",Me().state.padding).attr("y",Me().state.padding).attr("width",F+2*Me().state.padding).attr("height",N.height+m+2*Me().state.padding).attr("rx",Me().state.radius),i},aGe=(i,a,f)=>{const p=Me().state.padding,v=2*Me().state.padding,m=i.node().getBBox(),b=m.width,E=m.x,C=i.append("text").attr("x",0).attr("y",Me().state.titleShift).attr("font-size",Me().state.fontSize).attr("class","state-title").text(a.id),N=C.node().getBBox().width+v;let F=Math.max(N,b);F===b&&(F=F+v);let j;const R=i.node().getBBox();a.doc,j=E-p,N>b&&(j=(b-F)/2+p),Math.abs(E-R.x)<p&&N>b&&(j=E-(N-b)/2);const H=1-Me().state.textHeight;return i.insert("rect",":first-child").attr("x",j).attr("y",H).attr("class",f?"alt-composit":"composit").attr("width",F).attr("height",R.height+Me().state.textHeight+Me().state.titleShift+1).attr("rx","0"),C.attr("x",j+p),N<=b&&C.attr("x",E+(F-v)/2-N/2+p),i.insert("rect",":first-child").attr("x",j).attr("y",Me().state.titleShift-Me().state.textHeight-Me().state.padding).attr("width",F).attr("height",Me().state.textHeight*3).attr("rx",Me().state.radius),i.insert("rect",":first-child").attr("x",j).attr("y",Me().state.titleShift-Me().state.textHeight-Me().state.padding).attr("width",F).attr("height",R.height+3+2*Me().state.textHeight).attr("rx",Me().state.radius),i},oGe=i=>(i.append("circle").attr("class","end-state-outer").attr("r",Me().state.sizeUnit+Me().state.miniPadding).attr("cx",Me().state.padding+Me().state.sizeUnit+Me().state.miniPadding).attr("cy",Me().state.padding+Me().state.sizeUnit+Me().state.miniPadding),i.append("circle").attr("class","end-state-inner").attr("r",Me().state.sizeUnit).attr("cx",Me().state.padding+Me().state.sizeUnit+2).attr("cy",Me().state.padding+Me().state.sizeUnit+2)),cGe=(i,a)=>{let f=Me().state.forkWidth,p=Me().state.forkHeight;if(a.parentId){let v=f;f=p,p=v}return i.append("rect").style("stroke","black").style("fill","black").attr("width",f).attr("height",p).attr("x",Me().state.padding).attr("y",Me().state.padding)},uGe=(i,a,f,p)=>{let v=0;const m=p.append("text");m.style("text-anchor","start"),m.attr("class","noteText");let b=i.replace(/\r\n/g,"<br/>");b=b.replace(/\n/g,"<br/>");const E=b.split(bi.lineBreakRegex);let C=1.25*Me().state.noteMargin;for(const
`+Ct.showPosition()+`
Expecting `+Kn.join(", ")+", got '"+(this.terminals_[Bt]||Bt)+"'":Se="Parse error on line "+(xt+1)+": Unexpected "+(Bt==gt?"end of input":"'"+(this.terminals_[Bt]||Bt)+"'"),this.parseError(Se,{text:Ct.match,token:this.terminals_[Bt]||Bt,line:Ct.yylineno,loc:dt,expected:Kn})}if(mt[0]instanceof Array&&mt.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Rt+", token: "+Bt);switch(mt[0]){case 1:it.push(Bt),Tt.push(Ct.yytext),yt.push(Ct.yylloc),it.push(mt[1]),Bt=null,st=Ct.yyleng,ut=Ct.yytext,xt=Ct.yylineno,dt=Ct.yylloc;break;case 2:if(Cn=this.productions_[mt[1]][1],Gt.$=Tt[Tt.length-Cn],Gt._$={first_line:yt[yt.length-(Cn||1)].first_line,last_line:yt[yt.length-1].last_line,first_column:yt[yt.length-(Cn||1)].first_column,last_column:yt[yt.length-1].last_column},Ft&&(Gt._$.range=[yt[yt.length-(Cn||1)].range[0],yt[yt.length-1].range[1]]),Ot=this.performAction.apply(Gt,[ut,st,xt,nt.yy,mt[1],Tt,yt].concat(pt)),typeof Ot<"u")return Ot;Cn&&(it=it.slice(0,-1*Cn*2),Tt=Tt.slice(0,-1*Cn),yt=yt.slice(0,-1*Cn)),it.push(this.productions_[mt[1]][0]),Tt.push(Gt.$),yt.push(Gt._$),xe=vt[it[it.length-2]][it[it.length-1]],it.push(xe);break;case 3:return!0}}return!0}},R=function(){var Y={EOF:1,parseError:function(J,it){if(this.yy.parser)this.yy.parser.parseError(J,it);else throw new Error(J)},setInput:function(rt,J){return this.yy=J||this.yy||{},this._input=rt,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},input:function(){var rt=this._input[0];this.yytext+=rt,this.yyleng++,this.offset++,this.match+=rt,this.matched+=rt;var J=rt.match(/(?:\r\n?|\n).*/g);return J?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),rt},unput:function(rt){var J=rt.length,it=rt.split(/(?:\r\n?|\n)/g);this._input=rt+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-J),this.offset-=J;var ht=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 Tt=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===ht.length?this.yylloc.first_column:0)+ht[ht.length-it.length].length-it[0].length:this.yylloc.first_column-J},this.options.ranges&&(this.yylloc.range=[Tt[0],Tt[0]+this.yyleng-J]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject: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},less:function(rt){this.unput(this.match.slice(rt))},pastInput:function(){var rt=this.matched.substr(0,this.matched.length-this.match.length);return(rt.length>20?"...":"")+rt.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var rt=this.match;return rt.length<20&&(rt+=this._input.substr(0,20-rt.length)),(rt.substr(0,20)+(rt.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var rt=this.pastInput(),J=new Array(rt.length+1).join("-");return rt+this.upcomingInput()+`
`+J+"^"},test_match:function(rt,J){var it,ht,Tt;if(this.options.backtrack_lexer&&(Tt={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&&(Tt.yylloc.range=this.yylloc.range.slice(0))),ht=rt[0].match(/(?:\r\n?|\n).*/g),ht&&(this.yylineno+=ht.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:ht?ht[ht.length-1].length-ht[ht.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+rt[0].length},this.yytext+=rt[0],this.match+=rt[0],this.matches=rt,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(rt[0].length),this.matched+=rt[0],it=this.performAction.call(this,this.yy,this,J,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),it)return it;if(this._backtrack){for(var yt in Tt)this[yt]=Tt[yt];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var rt,J,it,ht;this._more||(this.yytext="",this.match="");for(var Tt=this._currentRules(),yt=0;yt<Tt.length;yt++)if(it=this._input.match(this.rules[Tt[yt]]),it&&(!J||it[0].length>J[0].length)){if(J=it,ht=yt,this.options.backtrack_lexer){if(rt=this.test_match(it,Tt[yt]),rt!==!1)return rt;if(this._backtrack){J=!1;continue}else return!1}else if(!this.options.flex)break}return J?(rt=this.test_match(J,Tt[ht]),rt!==!1?rt:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var J=this.next();return J||this.lex()},begin:function(J){this.conditionStack.push(J)},popState:function(){var J=this.conditionStack.length-1;return J>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(J){return J=this.conditionStack.length-1-Math.abs(J||0),J>=0?this.conditionStack[J]:"INITIAL"},pushState:function(J){this.begin(J)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(J,it,ht,Tt){switch(ht){case 0:return this.begin("open_directive"),26;case 1:return this.begin("type_directive"),27;case 2:return this.popState(),this.begin("arg_directive"),15;case 3:return this.popState(),this.popState(),29;case 4:return 28;case 5:break;case 6:break;case 7:return 11;case 8:break;case 9:break;case 10:return 4;case 11:return 17;case 12:return this.begin("acc_title"),18;case 13:return this.popState(),"acc_title_value";case 14:return this.begin("acc_descr"),20;case 15:return this.popState(),"acc_descr_value";case 16:this.begin("acc_descr_multiline");break;case 17:this.popState();break;case 18:return"acc_descr_multiline_value";case 19:return 23;case 20:return 24;case 21:return 25;case 22:return 15;case 23:return 6;case 24:return"INVALID"}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:%(?!\{)[^\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:{open_directive:{rules:[1],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},acc_descr_multiline:{rules:[17,18],inclusive:!1},acc_descr:{rules:[15],inclusive:!1},acc_title:{rules:[13],inclusive:!1},INITIAL:{rules:[0,5,6,7,8,9,10,11,12,14,16,19,20,21,22,23,24],inclusive:!0}}};return Y}();j.lexer=R;function H(){this.yy={}}return H.prototype=j,j.Parser=H,new H}();Igt.parser=Igt;const FGe=Igt;let bL="";const Ogt=[],UN=[],WN=[],BGe=function(i,a,f){f1.parseDirective(this,i,a,f)},RGe=function(){Ogt.length=0,UN.length=0,bL="",WN.length=0,hg()},jGe=function(i){bL=i,Ogt.push(i)},$Ge=function(){return Ogt},zGe=function(){let i=ojt();const a=100;let f=0;for(;!i&&f<a;)i=ojt(),f++;return UN.push(...WN),UN},qGe=function(){const i=[];return UN.forEach(f=>{f.people&&i.push(...f.people)}),[...new Set(i)].sort()},HGe=function(i,a){const f=a.substr(1).split(":");let p=0,v=[];f.length===1?(p=Number(f[0]),v=[]):(p=Number(f[0]),v=f[1].split(","));const m=v.map(E=>E.trim()),b={section:bL,type:bL,people:m,task:i,score:p};WN.push(b)},VGe=function(i){const a={section:bL,type:bL,description:i,task:i,classes:[]};UN.push(a)},ojt=function(){const i=function(f){return WN[f].processed};let a=!0;for(const[f,p]of WN.entries())i(f),a=a&&p.processed;return a},cjt={parseDirective:BGe,getConfig:()=>Me().journey,clear:RGe,setDiagramTitle:F2,getDiagramTitle:fp,setAccTitle:E0,getAccTitle:fg,setAccDescription:dg,getAccDescription:gg,addSection:jGe,getSections:$Ge,getTasks:zGe,addTask:HGe,addTaskOrg:VGe,getActors:function(){return qGe()}},GGe=i=>`.label {
2022-11-17 22:35:28 +00:00
font-family: 'trebuchet ms', verdana, arial, sans-serif;
font-family: var(--mermaid-font-family);
2023-05-24 18:25:13 +00:00
color: ${i.textColor};
2022-11-17 22:35:28 +00:00
}
.mouth {
stroke: #666;
}
line {
2023-05-24 18:25:13 +00:00
stroke: ${i.textColor}
2022-11-17 22:35:28 +00:00
}
.legend {
2023-05-24 18:25:13 +00:00
fill: ${i.textColor};
2022-11-17 22:35:28 +00:00
}
.label text {
fill: #333;
}
.label {
2023-05-24 18:25:13 +00:00
color: ${i.textColor}
2022-11-17 22:35:28 +00:00
}
.face {
2023-05-24 18:25:13 +00:00
${i.faceColor?`fill: ${i.faceColor}`:"fill: #FFF8DC"};
2022-11-17 22:35:28 +00:00
stroke: #999;
}
.node rect,
.node circle,
.node ellipse,
.node polygon,
.node path {
2023-05-24 18:25:13 +00:00
fill: ${i.mainBkg};
stroke: ${i.nodeBorder};
2022-11-17 22:35:28 +00:00
stroke-width: 1px;
}
.node .label {
text-align: center;
}
.node.clickable {
cursor: pointer;
}
.arrowheadPath {
2023-05-24 18:25:13 +00:00
fill: ${i.arrowheadColor};
2022-11-17 22:35:28 +00:00
}
.edgePath .path {
2023-05-24 18:25:13 +00:00
stroke: ${i.lineColor};
2022-11-17 22:35:28 +00:00
stroke-width: 1.5px;
}
.flowchart-link {
2023-05-24 18:25:13 +00:00
stroke: ${i.lineColor};
2022-11-17 22:35:28 +00:00
fill: none;
}
.edgeLabel {
2023-05-24 18:25:13 +00:00
background-color: ${i.edgeLabelBackground};
2022-11-17 22:35:28 +00:00
rect {
opacity: 0.5;
}
text-align: center;
}
.cluster rect {
}
.cluster text {
2023-05-24 18:25:13 +00:00
fill: ${i.titleColor};
2022-11-17 22:35:28 +00:00
}
div.mermaidTooltip {
position: absolute;
text-align: center;
max-width: 200px;
padding: 2px;
font-family: 'trebuchet ms', verdana, arial, sans-serif;
font-family: var(--mermaid-font-family);
font-size: 12px;
2023-05-24 18:25:13 +00:00
background: ${i.tertiaryColor};
border: 1px solid ${i.border2};
2022-11-17 22:35:28 +00:00
border-radius: 2px;
pointer-events: none;
z-index: 100;
}
.task-type-0, .section-type-0 {
2023-05-24 18:25:13 +00:00
${i.fillType0?`fill: ${i.fillType0}`:""};
2022-11-17 22:35:28 +00:00
}
.task-type-1, .section-type-1 {
2023-05-24 18:25:13 +00:00
${i.fillType0?`fill: ${i.fillType1}`:""};
2022-11-17 22:35:28 +00:00
}
.task-type-2, .section-type-2 {
2023-05-24 18:25:13 +00:00
${i.fillType0?`fill: ${i.fillType2}`:""};
2022-11-17 22:35:28 +00:00
}
.task-type-3, .section-type-3 {
2023-05-24 18:25:13 +00:00
${i.fillType0?`fill: ${i.fillType3}`:""};
2022-11-17 22:35:28 +00:00
}
.task-type-4, .section-type-4 {
2023-05-24 18:25:13 +00:00
${i.fillType0?`fill: ${i.fillType4}`:""};
2022-11-17 22:35:28 +00:00
}
.task-type-5, .section-type-5 {
2023-05-24 18:25:13 +00:00
${i.fillType0?`fill: ${i.fillType5}`:""};
2022-11-17 22:35:28 +00:00
}
.task-type-6, .section-type-6 {
2023-05-24 18:25:13 +00:00
${i.fillType0?`fill: ${i.fillType6}`:""};
2022-11-17 22:35:28 +00:00
}
.task-type-7, .section-type-7 {
2023-05-24 18:25:13 +00:00
${i.fillType0?`fill: ${i.fillType7}`:""};
2022-11-17 22:35:28 +00:00
}
.actor-0 {
2023-05-24 18:25:13 +00:00
${i.actor0?`fill: ${i.actor0}`:""};
2022-11-17 22:35:28 +00:00
}
.actor-1 {
2023-05-24 18:25:13 +00:00
${i.actor1?`fill: ${i.actor1}`:""};
2022-11-17 22:35:28 +00:00
}
.actor-2 {
2023-05-24 18:25:13 +00:00
${i.actor2?`fill: ${i.actor2}`:""};
2022-11-17 22:35:28 +00:00
}
.actor-3 {
2023-05-24 18:25:13 +00:00
${i.actor3?`fill: ${i.actor3}`:""};
2022-11-17 22:35:28 +00:00
}
.actor-4 {
2023-05-24 18:25:13 +00:00
${i.actor4?`fill: ${i.actor4}`:""};
2022-11-17 22:35:28 +00:00
}
.actor-5 {
2023-05-24 18:25:13 +00:00
${i.actor5?`fill: ${i.actor5}`:""};
2022-11-17 22:35:28 +00:00
}
`,Pgt=function(i,a){return zW(i,a)},UGe=function(i,a){const p=i.append("circle").attr("cx",a.cx).attr("cy",a.cy).attr("class","face").attr("r",15).attr("stroke-width",2).attr("overflow","visible"),v=i.append("g");v.append("circle").attr("cx",a.cx-15/3).attr("cy",a.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),v.append("circle").attr("cx",a.cx+15/3).attr("cy",a.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666");function m(C){const A=LA().startAngle(Math.PI/2).endAngle(3*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);C.append("path").attr("class","mouth").attr("d",A).attr("transform","translate("+a.cx+","+(a.cy+2)+")")}function b(C){const A=LA().startAngle(3*Math.PI/2).endAngle(5*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);C.append("path").attr("class","mouth").attr("d",A).attr("transform","translate("+a.cx+","+(a.cy+7)+")")}function E(C){C.append("line").attr("class","mouth").attr("stroke",2).attr("x1",a.cx-5).attr("y1",a.cy+7).attr("x2",a.cx+5).attr("y2",a.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}return a.score>3?m(v):a.score<3?b(v):E(v),p},ujt=function(i,a){const f=i.append("circle");return f.attr("cx",a.cx),f.attr("cy",a.cy),f.attr("class","actor-"+a.pos),f.attr("fill",a.fill),f.attr("stroke",a.stroke),f.attr("r",a.r),f.class!==void 0&&f.attr("class",f.class),a.title!==void 0&&f.append("title").text(a.title),f},ljt=function(i,a){return pMe(i,a)},WGe=function(i,a){function f(v,m,b,E,C){return v+","+m+" "+(v+b)+","+m+" "+(v+b)+","+(m+E-C)+" "+(v+b-C*1.2)+","+(m+E)+" "+v+","+(m+E)}const p=i.append("polygon");p.attr("points",f(a.x,a.y,50,20,7)),p.attr("class","labelBox"),a.y=a.y+a.labelMargin,a.x=a.x+.5*a.labelMargin,ljt(i,a)},KGe=function(i,a,f){const p=i.append("g"),v=lE();v.x=a.x,v.y=a.y,v.fill=a.fill,v.width=f.width*a.taskCount+f.diagramMarginX*(a.taskCount-1),v.height=f.height,v.class="journey-section section-type-"+a.num,v.rx=3,v.ry=3,Pgt(p,v),fjt(f)(a.text,p,v.x,v.y,v.width,v.height,{class:"journey-section section-type-"+a.num},f,a.colour)};let hjt=-1;const YGe=function(i,a,f){const p=a.x+f.width/2,v=i.append("g");hjt++;const m=300+5*30;v.append("line").attr("id","task"+hjt).attr("x1",p).attr("y1",a.y).attr("x2",p).attr("y2",m).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),UGe(v,{cx:p,cy:300+(5-a.score)*30,score:a.score});const b=lE();b.x=a.x,b.y=a.y,b.fill=a.fill,b.width=f.width,b.height=f.height,b.class="task task-type-"+a.num,b.rx=3,b.ry=3,Pgt(v,b);let E=a.x+14;a.people.forEach(C=>{const A=a.actors[C].color,N={cx:E,cy:a.y,r:7,fill:A,stroke:"#000",title:C,pos:a.actors[C].position};ujt(v,N),E+=10}),fjt(f)(a.task,v,b.x,b.y,b.width,b.height,{class:"task"},f,a.colour)},XGe=function(i,a){XOt(i,a)},fjt=function(){function i(v,m,b,E,C,A,N,F){const j=m.append("text").attr("x",b+C/2).attr("y",E+A/2+5).style("font-color",F).style("text-anchor","middle").text(v);p(j,N)}function a(v,m,b,E,C,A,N,F,j){const{taskFontSize:R,taskFontFamily:H}=F,Y=v.split(/<br\s*\/?>/gi);for(let rt=0;rt<Y.length;rt++){const J=rt*R-R*(Y.length-1)/2,it=m.append("text").attr("x",b+C/2).attr("y",E).attr("fill",j).style("text-anchor","middle").style("font-size",R).style("font-family",H);it.append("tspan").attr("x",b+C/2).attr("dy",J).text(Y[rt]),it.attr("y",E+A/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),p(it,N)}}function f(v,m,b,E,C,A,N,F){const j=m.append("switch"),H=j.append("foreignObject").attr("x",b).attr("y",E).attr("width",C).attr("height",A).attr("position","fixed").append("xhtml:div").style("display","table").style("height","100%").style("width","100%");H.append("div").attr("class","label").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(v),a(v,j,b,E,C,A,N,F),p(H,N)}function p(v,m){for(const b in m)b in m&&v.attr(b,m[b])}return function(v){return v.textPlacement==="fo"?f:v.textPlacement==="old"?i:a}}(),KN={drawRect:Pgt,drawCircle:ujt,drawSection:KGe,drawText:
`,Pu(Oa(t,e[0])))>=0;)++e[0]}function _D(t,e){this.e=e,this.a=Mne(t),this.a<54?this.f=Vv(t):this.c=QD(t)}function Rte(t,e,n,r){Si(),bv.call(this,26),this.c=t,this.a=e,this.d=n,this.b=r}function t0(t,e,n){var r,s;for(r=10,s=0;s<n-1;s++)e<r&&(t.a+="0"),r*=10;t.a+=e}function Can(t,e){var n;for(n=0;t.e!=t.i.gc();)ytn(e,Tr(t),ve(n)),n!=Di&&++n}function Omt(t,e){var n;for(++t.d,++t.c[e],n=e+1;n<t.a.length;)++t.a[n],n+=n&-n}function San(t,e){var n,r,s;s=e.c.i,n=u(cr(t.f,s),57),r=n.d.c-n.e.c,ryt(e.a,r,0)}function CD(t){var e,n;return e=t+128,n=(HKt(),J8t)[e],!n&&(n=J8t[e]=new Dtt(t)),n}function si(t,e){var n;return Pn(e),n=t[":"+e],Ian(!!n,ct(ot(ir,1),De,1,5,[e])),n}function Aan(t){var e,n;if(t.b){n=null;do e=t.b,t.b=null,n=Nae(e,n);while(t.b);t.b=n}}function Lan(t){var e,n;if(t.a){n=null;do e=t.a,t.a=null,n=Nae(e,n);while(t.a);t.a=n}}function jte(t){var e;for(++t.a,e=t.c.a.length;t.a<e;++t.a)if(t.c.b[t.a])return}function Man(t,e){var n,r;for(r=e.c,n=r+1;n<=e.f;n++)t.a[n]>t.a[r]&&(r=n);return r}function Dan(t,e){var n;return n=nw(t.e.c,e.e.c),n==0?Vs(t.e.d,e.e.d):n}function t4(t,e){return e.e==0||t.e==0?Z7:(v7(),Zst(t,e))}function Ian(t,e){if(!t)throw et(new Bn(Nbn("Enum constant undefined: %s",e)))}function $_(){$_=X,k2e=new cv,E2e=new cd,y2e=new bk,x2e=new oh,T2e=new ZK}function q$(){q$=X,I7t=new E2t("BY_SIZE",0),Iut=new E2t("BY_SIZE_AND_SHAPE",1)}function H$(){H$=X,Hut=new T2t("EADES",0),sV=new T2t("FRUCHTERMAN_REINGOLD",1)}function SD(){SD=X,FV=new A2t("READING_DIRECTION",0),CEt=new A2t("ROTATION",1)}function $te(){$te=X,abe=ai((mb(),ct(ot(_Et,1),ue,335,0,[mlt,TEt,ylt,pS,gS])))}function zte(){zte=X,Bwe=ai((aC(),ct(ot(C_t,1),ue,315,0,[__t,lht,hht,AS,LS])))}function qte(){qte=X,Y2e=ai((p4(),ct(ot(K2e,1),ue,363,0,[DV,OV,PV,IV,MV])))}function Hte(){Hte=X,mbe=ai((mh(),ct(ot(nTt,1),ue,163,0,[AO,yS,b2,xS,Fy])))}function Vte(){Vte=X,i3e=ai((oI(),ct(ot(XCt,1),ue,316,0,[WCt,Ght,YCt,Uht,KCt])))}function Gte(){Gte=X,S3e=ai((e1(),ct(ot(ep,1),ue,175,0,[Un,fa,Rd,qb,tp])))}function Ute(){Ute=X,Zye=ai((x7(),ct(ot(Qye,1),ue,355,0,[r5,jx,qS,zS,HS])))}function Wte(){Wte=X,g2e=ai((ao(),ct(ot(k9t,1),ue,356,0,[Nd,g2,pu,Zc,Uo])))}function Kte(){Kte=X,Q3e=ai((ko(),ct(ot(WS,1),ue,103,0,[f0,Lf,Wh,J0,tg])))}function Yte(){Yte=X,a4e=ai((u4(),ct(ot(QS,1),ue,249,0,[E2,nP,kAt,XS,EAt])))}function Xte(){Xte=X,u4e=ai((ye(),ct(ot(uo,1),Pc,61,0,[fc,Nn,Wn,Ir,jn])))}function Zrt(t,e){var n;return n=u(cr(t.a,e),134),n||(n=new E3,Ni(t.a,e,n)),n}function Qte(t){var e;return e=u(K(t,(oe(),Aw)),305),e?e.a==t:!1}function Zte(t){var e;return e=u(K(t,(oe(),Aw)),305),e?e.i==t:!1}function Jte(t,e){return Pn(e),Jvt(t),t.d.Ob()?(e.td(t.d.Pb()),!0):!1}function V$(t){return Oc(t,Di)>0?Di:Oc(t,qa)<0?qa:$r(t)}function Qm(t){return t<3?(Gl(t,Whe),t+1):t<AC?Ds(t/.75+1):Di}function wn(t,e){var n;return n=(t.i==null&&kd(t),t.i),e>=0&&e<n.length?n[e]:null}function Zf(t,e,n){var r;if(e==null)throw et(new LT);return r=P0(t,e),tsn(t,e,n),r}function tee(t){return t.a>=-.01&&t.a<=H1&&(t.a=0),t.b>=-.01&&t.b<=H1&&(t.b=0),t}function eee(t,e){return e==(vnt(),vnt(),_ge)?t.toLocaleLowerCase():t.toLowerCase()}function Pmt(t){return(t.i&2?"interface ":t.i&1?"":"class ")+(D0(t),t.o)}function jo(t){var e,n;n=(e=new Wtt,e),Hr((!t.q&&(t.q=new pe(Jh,t,11,10)),t.q),n)}function Oan(t,e){var n;return n=e>0?e-1:e,Qqt(WKe(Cee(Ivt(new Xk,n),t.n),t.j),t.k)}function Pan(t,e,n,r){var s;t.j=-1,r5t(t,B4t(t,e,n),(po(),s=u(e,66).Mj(),s.Ok(r)))}function nee(t){this.g=t,this.f=new ge,this.a=b.Math.min(this.g.c.c,this.g.d.c)}function ree(t){this.b=new ge,this.a=new ge,this.c=new ge,this.d=new ge,this.e=t}function iee(t,e){this.a=new Br,this.e=new Br,this.b=(Y_(),hG),this.c=t,this.b=e}function see(t,e,n){Ej.call(this),Nmt(this),this.a=t,this.c=n,this.b=e.d,this.f=e.e}function aee(t){this.d=t,this.c=t.c.vc().Kc(),this.b=null,this.a=null,this.e=(pR(),mut)}function Wv(t){if(t<0)throw et(new Bn("Illegal Capacity: "+t));this.g=this.ri(t)}function Nan(t,e){if(0>t||t>e)throw et(new Kpt("fromIndex: 0, toIndex: "+t+F6t+e))}function Fan(t){var e;if(t.a==t.b.a)throw et(new _c);return e=t.a,t.c=e,t.a=t.a.e,e}function G$(t){var
`)}return e&&(e.stack||n(t[jat]))}function d3t(t){Vm();var e;switch(e=t.Pc(),e.length){case 0:return vut;case 1:return new Snt(zr(e[0]));default:return new ort(nln(e))}}function rw(t,e){switch(e.g){case 1:return P6(t.j,(Ku(),L9t));case 2:return P6(t.j,(Ku(),D9t));default:return pn(),pn(),mo}}function g3t(t,e){switch(e){case 3:Yv(t,0);return;case 4:Xv(t,0);return;case 5:Du(t,0);return;case 6:Iu(t,0);return}qyt(t,e)}function Git(){Git=X,PR(),uG=(Te(),Fw),Owe=P1(ct(ot(Qht,1),Dkt,146,0,[DO,Af,Rx,Nw,Vy,tht,y9,x9,eht,CS,Z4,$b,J4]))}function nie(t){var e,n;e=t.d==(sx(),o9),n=d4t(t),e&&!n||!e&&n?ne(t.a,(Te(),Fd),(e0(),VO)):ne(t.a,(Te(),Fd),(e0(),HO))}function Nln(t,e){var n;return n=u(Hl(t,ab(new _e,new ee,new Qn,ct(ot(xl,1),ue,132,0,[(j1(),Zl)]))),15),n.Qc(CKt(n.gc()))}function Mz(){Mz=X,wft=new JR("SIMPLE",0),SAt=new JR("GROUP_DEC",1),LAt=new JR("GROUP_MIXED",2),AAt=new JR("GROUP_INC",3)}function Uit(){Uit=X,Aft=new rB,ZAt=new iB,JAt=new sB,tLt=new Lk,eLt=new aB,nLt=new oB,rLt=new KZ,iLt=new Mk,sLt=new Dk}function rie(t,e,n){hee(),rqt.call(this),this.a=Z2(Vge,[re,G6t],[595,212],0,[JH,Put],2),this.c=new L6,this.g=t,this.f=e,this.d=n}function p3t(t,e){this.n=Z2(O2,[re,aot],[364,25],14,[e,Ds(b.Math.ceil(t/32))],2),this.o=t,this.p=e,this.j=t-1>>1,this.k=e-1>>1}function Fln(t,e){Dr(e,"End label post-processing",1),Ts(Xi(oc(new En(null,new _n(t.b,16)),new hY),new fY),new dY),br(e)}function Bln(t,e,n){var r,s;return r=Zt(t.p[e.i.p])+Zt(t.d[e.i.p])+e.n.b+e.a.b,s=Zt(t.p[n.i.p])+Zt(t.d[n.i.p])+n.n.b+n.a.b,s-r}function Rln(t,e,n){var r,s;for(r=Xs(n,To),s=0;Oc(r,0)!=0&&s<e;s++)r=Ka(r,Xs(t[s],To)),t[s]=$r(r),r=$p(r,32);return $r(r)}function Dz(t){var e,n,r,s;for(s=0,n=0,r=t.length;n<r;n++)e=(Xr(n,t.length),t.charCodeAt(n)),e<64&&(s=O1(s,I0(1,e)));return s}function jln(t){var e;return t==null?null:new Rp((e=Xc(t,!0),e.length>0&&(Xr(0,e.length),e.charCodeAt(0)==43)?e.substr(1):e))}function $ln(t){var e;return t==null?null:new Rp((e=Xc(t,!0),e.length>0&&(Xr(0,e.length),e.charCodeAt(0)==43)?e.substr(1):e))}function b3t(t,e){var n;return t.i>0&&(e.length<t.i&&(n=AD(bl(e).c,t.i),e=n),qc(t.g,0,e,0,t.i)),e.length>t.i&&ds(e,t.i,null),e}function au(t,e,n){var r,s,o;return t.ej()?(r=t.i,o=t.fj(),VD(t,r,e),s=t.Zi(3,null,e,r,o),n?n.Ei(s):n=s):VD(t,t.i,e),n}function zln(t,e,n){var r,s;return r=new R0(t.e,4,10,(s=e.c,_t(s,88)?u(s,26):(hn(),ef)),null,$g(t,e),!1),n?n.Ei(r):n=r,n}function qln(t,e,n){var r,s;return r=new R0(t.e,3,10,null,(s=e.c,_t(s,88)?u(s,26):(hn(),ef)),$g(t,e),!1),n?n.Ei(r):n=r,n}function iie(t){Bm();var e;return e=new No(u(t.e.We((Ei(),o5)),8)),t.B.Hc((ml(),D9))&&(e.a<=0&&(e.a=20),e.b<=0&&(e.b=20)),e}function sie(t){sy();var e;return(t.q?t.q:(pn(),pn(),l0))._b((Te(),Ow))?e=u(K(t,Ow),197):e=u(K(Za(t),_S),197),e}function iy(t,e){var n,r;return r=null,ia(t,(Te(),oG))&&(n=u(K(t,oG),94),n.Xe(e)&&(r=n.We(e))),r==null&&(r=K(Za(t),e)),r}function aie(t,e){var n,r,s;return _t(e,42)?(n=u(e,42),r=n.cd(),s=ny(t.Rc(),r),md(s,n.dd())&&(s!=null||t.Rc()._b(r))):!1}function Wit(t,e){var n,r,s;return t.f>0?(t.qj(),r=e==null?0:es(e),s=(r&Di)%t.d.length,n=ace(t,s,r,e),n!=-1):!1}function t1(t,e){var n,r,s;return t.f>0&&(t.qj(),r=e==null?0:es(e),s=(r&Di)%t.d.length,n=t5t(t,s,r,e),n)?n.dd():null}function KD(t,e){var n,r,s,o;for(o=gu(t.e.Tg(),e),n=u(t.g,119),s=0;s<t.i;++s)if(r=n[s],o.rl(r.ak()))return!1;return!0}function oie(t){if(t.b==null){for(;t.a.Ob();)if(t.b=t.a.Pb(),!u(t.b,49).Zg())return!0;return t.b=null,!1}else return!0}function cie(t,e){t.mj();try{t.d.Vc(t.e++,e),t.f=t.d.j,t.g=-1}catch(n){throw n=as(n),_t(n,73)?et(new uh):et(n)}}function Iz(t,e){ibt();var n,r;return n=VM((wR(),wR(),sS)),r=null,e==n&&(r=u(Uc(K8t,t),615)),r||(r=new UYt(t),e==n&&Fo(K8t,t,r)),r}function uie(t,e){var n,r;t.a=Ka(t.a,1),t.c=b.Math.min(t.c,e),t.b=b.Math.max(t.b,e),t.d+=e,n=e-t.f,r=t.e+n,t.f=r-t.e-n,t.e=r}function Hln(t,e){var n;t.c=e,t.a=Cln(e),t.a<54&&(t.f=(n=e.d>1?O1(I0(e.a[1],32),Xs(e.a[0],To)):Xs(e.a[0],To),Vv(za(e.e,n))))}function YD(t,e){var n;return Qo(t)&&Qo(e)&&(n=t%e,NI<n&&n<Eb)?n:Yp((l6t(Qo(t)?Nh(t):t,Qo(e)?Nh(e):e,!0),h2))}function nC(t,e){var n;u4n(e),n=u(K(t,(T
2023-05-23 13:17:23 +00:00
`;return n.substring(0,r.length)==r&&(n=n.substring(r.length)),n.split(`
`)}return[]}function Dfn(t){var e;return e=(Fee(),bge),e[t>>>28]|e[t>>24&15]<<4|e[t>>20&15]<<8|e[t>>16&15]<<12|e[t>>12&15]<<16|e[t>>8&15]<<20|e[t>>4&15]<<24|e[t&15]<<28}function kse(t){var e,n,r;t.b==t.c&&(r=t.a.length,n=xyt(b.Math.max(8,r))<<1,t.b!=0?(e=bf(t.a,n),Vee(t,e,r),t.a=e,t.b=0):Hzt(t.a,n),t.c=r)}function Ifn(t,e){var n;return n=t.b,n.Xe((Ei(),kl))?n.Hf()==(ye(),jn)?-n.rf().a-Zt(ke(n.We(kl))):e+Zt(ke(n.We(kl))):n.Hf()==(ye(),jn)?-n.rf().a:e}function eI(t){var e;return t.b.c.length!=0&&u(Fe(t.b,0),70).a?u(Fe(t.b,0),70).a:(e=rrt(t),e??""+(t.c?Zo(t.c.a,t,0):-1))}function Yz(t){var e;return t.f.c.length!=0&&u(Fe(t.f,0),70).a?u(Fe(t.f,0),70).a:(e=rrt(t),e??""+(t.i?Zo(t.i.j,t,0):-1))}function Ofn(t,e){var n,r;if(e<0||e>=t.gc())return null;for(n=e;n<t.gc();++n)if(r=u(t.Xb(n),128),n==t.gc()-1||!r.o)return new Ca(ve(n),r);return null}function Pfn(t,e,n){var r,s,o,h,d;for(o=t.c,d=n?e:t,r=n?t:e,s=d.p+1;s<r.p;++s)if(h=u(Fe(o.a,s),10),!(h.k==(Yn(),W1)||c1n(h)))return!1;return!0}function z3t(t){var e,n,r,s,o;for(o=0,s=Rs,r=0,n=new S(t.a);n.a<n.c.c.length;)e=u(Q(n),187),o+=e.r+(r>0?t.c:0),s=b.Math.max(s,e.d),++r;t.e=o,t.b=s}function Nfn(t){var e,n;if(!t.b)for(t.b=k$(u(t.f,118).Ag().i),n=new hr(u(t.f,118).Ag());n.e!=n.i.gc();)e=u(Tr(n),137),de(t.b,new net(e));return t.b}function Ffn(t,e){var n,r,s;if(e.dc())return d8(),d8(),dP;for(n=new _Wt(t,e.gc()),s=new hr(t);s.e!=s.i.gc();)r=Tr(s),e.Hc(r)&&Hr(n,r);return n}function q3t(t,e,n,r){return e==0?r?(!t.o&&(t.o=new Pl((ou(),S2),jw,t,0)),t.o):(!t.o&&(t.o=new Pl((ou(),S2),jw,t,0)),pD(t.o)):zz(t,e,n,r)}function mst(t){var e,n;if(t.rb)for(e=0,n=t.rb.i;e<n;++e)jM(At(t.rb,e));if(t.vb)for(e=0,n=t.vb.i;e<n;++e)jM(At(t.vb,e));k_((Yu(),Fa),t),t.Bb|=1}function Yi(t,e,n,r,s,o,h,d,w,k,_,M,B,q){return Zae(t,e,r,null,s,o,h,d,w,k,B,!0,q),Zyt(t,_),_t(t.Cb,88)&&hy(gl(u(t.Cb,88)),2),n&&Zmt(t,n),Jyt(t,M),t}function Bfn(t){var e,n;if(t==null)return null;n=0;try{n=Kl(t,qa,Di)&Ps}catch(r){if(r=as(r),_t(r,127))e=$$(t),n=e[0];else throw et(r)}return ND(n)}function Rfn(t){var e,n;if(t==null)return null;n=0;try{n=Kl(t,qa,Di)&Ps}catch(r){if(r=as(r),_t(r,127))e=$$(t),n=e[0];else throw et(r)}return ND(n)}function jfn(t,e){var n,r,s;return s=t.h-e.h,s<0||(n=t.l-e.l,r=t.m-e.m+(n>>22),s+=r>>22,s<0)?!1:(t.l=n&yl,t.m=r&yl,t.h=s&Y0,!0)}function $fn(t,e,n,r,s,o,h){var d,w;return!(e.Ae()&&(w=t.a.ue(n,r),w<0||!s&&w==0)||e.Be()&&(d=t.a.ue(n,o),d>0||!h&&d==0))}function zfn(t,e){t7();var n;if(n=t.j.g-e.j.g,n!=0)return 0;switch(t.j.g){case 2:return qit(e,bEt)-qit(t,bEt);case 4:return qit(t,pEt)-qit(e,pEt)}return 0}function qfn(t){switch(t.g){case 0:return klt;case 1:return Elt;case 2:return Tlt;case 3:return _lt;case 4:return BV;case 5:return Clt;default:return null}}function $o(t,e,n){var r,s;return r=(s=new Ktt,gb(s,e),su(s,n),Hr((!t.c&&(t.c=new pe($w,t,12,10)),t.c),s),s),Ng(r,0),ty(r,1),jg(r,!0),Rg(r,!0),r}function ix(t,e){var n,r;if(e>=t.i)throw et(new Get(e,t.i));return++t.j,n=t.g[e],r=t.i-e-1,r>0&&qc(t.g,e+1,t.g,e,r),ds(t.g,--t.i,null),t.fi(e,n),t.ci(),n}function Ese(t,e){var n,r;return t.Db>>16==17?t.Cb.ih(t,21,Zh,e):(r=vo(u(wn((n=u(In(t,16),26),n||t.zh()),t.Db>>16),18)),t.Cb.ih(t,r.n,r.f,e))}function Hfn(t){var e,n,r,s;for(pn(),ua(t.c,t.a),s=new S(t.c);s.a<s.c.c.length;)for(r=Q(s),n=new S(t.b);n.a<n.c.c.length;)e=u(Q(n),679),e.Ke(r)}function Vfn(t){var e,n,r,s;for(pn(),ua(t.c,t.a),s=new S(t.c);s.a<s.c.c.length;)for(r=Q(s),n=new S(t.b);n.a<n.c.c.length;)e=u(Q(n),369),e.Ke(r)}function Gfn(t){var e,n,r,s,o;for(s=Di,o=null,r=new S(t.d);r.a<r.c.c.length;)n=u(Q(r),213),n.d.j^n.e.j&&(e=n.e.e-n.d.e-n.a,e<s&&(s=e,o=n));return o}function H3t(){H3t=X,r2e=new vn(cxt,(Rn(),!1)),t2e=new vn(uxt,100),g9t=(j_(),Wut),e2e=new vn(lxt,g9t),n2e=new vn(hxt,Sd),i2e=new vn(fxt,ve(Di))}function Tse(t,e,n){var r,s,o,h,d,w,k,_;for(k=0,s=t.a[e],o=0,h=s.length;o<h;++o)for(r=s[o],_=Q_(r,n),w=_.Kc();w.Ob();)d=u(w.Pb(),11),Ni(t.f,d,ve(k++))}function Ufn(t,e,n){var r,s,o,h;if(n)for(s=n.a.length,r=new J2(s),h=(r.b-r.a)*r.c<0?(Np(),I2):new jp(r);h.Ob();)o=u(h.Pb(),19),un(t,e,ax(Xm(n,o.a)))}function Wfn(t,e,n){var r,s,o,h;if(n)for(s=n.a.length,r=new J
\r\f]+`);try{rA=ct(ot(v6n,1),De,2015,0,[new lM((ibt(),Iz("yyyy-MM-dd'T'HH:mm:ss'.'SSSZ",VM((wR(),wR(),sS))))),new lM(Iz("yyyy-MM-dd'T'HH:mm:ss'.'SSS",VM(sS))),new lM(Iz("yyyy-MM-dd'T'HH:mm:ss",VM(sS))),new lM(Iz("yyyy-MM-dd'T'HH:mm",VM(sS))),new lM(Iz("yyyy-MM-dd",VM(sS)))])}catch(t){if(t=as(t),!_t(t,78))throw et(t)}}function Jmn(t){var e,n,r,s;if(r=Iat((!t.c&&(t.c=qD(t.f)),t.c),0),t.e==0||t.a==0&&t.f!=-1&&t.e<0)return r;if(e=Hmt(t)<0?1:0,n=t.e,s=(r.length+1+b.Math.abs(Ds(t.e)),new Lm),e==1&&(s.a+="-"),t.e>0)if(n-=r.length-e,n>=0){for(s.a+="0.";n>Pb.length;n-=Pb.length)KKt(s,Pb);MWt(s,Pb,Ds(n)),ii(s,r.substr(e))}else n=e-n,ii(s,$l(r,e,Ds(n))),s.a+=".",ii(s,FM(r,Ds(n)));else{for(ii(s,r.substr(e));n<-Pb.length;n+=Pb.length)KKt(s,Pb);MWt(s,Pb,Ds(-n))}return s.a}function s6t(t,e,n,r){var s,o,h,d,w,k,_,M,B;return w=ba(new $e(n.a,n.b),t),k=w.a*e.b-w.b*e.a,_=e.a*r.b-e.b*r.a,M=(w.a*r.b-w.b*r.a)/_,B=k/_,_==0?k==0?(s=$i(new $e(n.a,n.b),bd(new $e(r.a,r.b),.5)),o=Wp(t,s),h=Wp($i(new $e(t.a,t.b),e),s),d=b.Math.sqrt(r.a*r.a+r.b*r.b)*.5,o<h&&o<=d?new $e(t.a,t.b):h<=d?$i(new $e(t.a,t.b),e):null):null:M>=0&&M<=1&&B>=0&&B<=1?$i(new $e(t.a,t.b),bd(new $e(e.a,e.b),M)):null}function tyn(t,e,n){var r,s,o,h,d;if(r=u(K(t,(Te(),Hlt)),21),n.a>e.a&&(r.Hc((cy(),GO))?t.c.a+=(n.a-e.a)/2:r.Hc(UO)&&(t.c.a+=n.a-e.a)),n.b>e.b&&(r.Hc((cy(),KO))?t.c.b+=(n.b-e.b)/2:r.Hc(WO)&&(t.c.b+=n.b-e.b)),u(K(t,(oe(),tu)),21).Hc((Eo(),Th))&&(n.a>e.a||n.b>e.b))for(d=new S(t.a);d.a<d.c.c.length;)h=u(Q(d),10),h.k==(Yn(),Fs)&&(s=u(K(h,yc),61),s==(ye(),Wn)?h.n.a+=n.a-e.a:s==Ir&&(h.n.b+=n.b-e.b));o=t.d,t.f.a=n.a-o.b-o.c,t.f.b=n.b-o.d-o.a}function eyn(t,e,n){var r,s,o,h,d;if(r=u(K(t,(Te(),Hlt)),21),n.a>e.a&&(r.Hc((cy(),GO))?t.c.a+=(n.a-e.a)/2:r.Hc(UO)&&(t.c.a+=n.a-e.a)),n.b>e.b&&(r.Hc((cy(),KO))?t.c.b+=(n.b-e.b)/2:r.Hc(WO)&&(t.c.b+=n.b-e.b)),u(K(t,(oe(),tu)),21).Hc((Eo(),Th))&&(n.a>e.a||n.b>e.b))for(h=new S(t.a);h.a<h.c.c.length;)o=u(Q(h),10),o.k==(Yn(),Fs)&&(s=u(K(o,yc),61),s==(ye(),Wn)?o.n.a+=n.a-e.a:s==Ir&&(o.n.b+=n.b-e.b));d=t.d,t.f.a=n.a-d.b-d.c,t.f.b=n.b-d.d-d.a}function nyn(t){var e,n,r,s,o,h,d,w,k,_,M,B;for(e=Noe(t),_=(d=new Tm(e).a.vc().Kc(),new aM(d));_.a.Ob();){for(k=(s=u(_.a.Pb(),42),u(s.cd(),10)),M=0,B=0,M=k.d.d,B=k.o.b+k.d.a,t.d[k.p]=0,n=k;(o=t.a[n.p])!=k;)r=ghn(n,o),w=0,t.c==(yd(),Zg)?w=r.d.n.b+r.d.a.b-r.c.n.b-r.c.a.b:w=r.c.n.b+r.c.a.b-r.d.n.b-r.d.a.b,h=Zt(t.d[n.p])+w,t.d[o.p]=h,M=b.Math.max(M,o.d.d-h),B=b.Math.max(B,h+o.o.b+o.d.a),n=o;n=k;do t.d[n.p]=Zt(t.d[n.p])+M,n=t.a[n.p];while(n!=k);t.b[k.p]=M+B}}function bat(t){var e,n,r,s,o,h,d,w,k,_,M,B;for(t.b=!1,M=ms,w=Rs,B=ms,k=Rs,r=t.e.a.ec().Kc();r.Ob();)for(n=u(r.Pb(),266),s=n.a,M=b.Math.min(M,s.c),w=b.Math.max(w,s.c+s.b),B=b.Math.min(B,s.d),k=b.Math.max(k,s.d+s.a),h=new S(n.c);h.a<h.c.c.length;)o=u(Q(h),395),e=o.a,e.a?(_=s.d+o.b.b,d=_+o.c,B=b.Math.min(B,_),k=b.Math.max(k,d)):(_=s.c+o.b.a,d=_+o.c,M=b.Math.min(M,_),w=b.Math.max(w,d));t.a=new $e(w-M,k-B),t.c=new $e(M+t.d.a,B+t.d.b)}function ryn(t,e,n){var r,s,o,h,d,w,k,_,M;for(M=new ge,_=new qwt(0,n),o=0,Q$(_,new xit(0,0,_,n)),s=0,k=new hr(t);k.e!=k.i.gc();)w=u(Tr(k),33),r=u(Fe(_.a,_.a.c.length-1),187),d=s+w.g+(u(Fe(_.a,0),187).b.c.length==0?0:n),d>e&&(s=0,o+=_.b+n,M.c[M.c.length]=_,_=new qwt(o,n),r=new xit(0,_.f,_,n),Q$(_,r),s=0),r.b.c.length==0||w.f>=r.o&&w.f<=r.f||r.a*.5<=w.f&&r.a*1.5>=w.f?e3t(r,w):(h=new xit(r.s+r.r+n,_.f,_,n),Q$(_,h),e3t(h,w)),s=w.i+w.g;return M.c[M.c.length]=_,M}function E4(t){var e,n,r,s,o,h,d,w;if(!t.a){if(t.o=null,w=new Tzt(t),e=new Ep,n=aA,d=n.a.zc(t,n),d==null){for(h=new hr(qo(t));h.e!=h.i.gc();)o=u(Tr(h),26),vs(w,E4(o));n.a.Bc(t)!=null,n.a.gc()==0}for(s=(!t.s&&(t.s=new pe(ju,t,21,17)),new hr(t.s));s.e!=s.i.gc();)r=u(Tr(s),170),_t(r,322)&&Hr(e,u(r,34));ey(e),t.k=new AKt(t,(u(At(Kt((Hp(),Ln).o),7),18),e.i),e.g),vs(w,t.k),ey(w),t.a=new H3((u(At(Kt(Ln.o),4),18),w.i),w.g),gl(t).b&=-2}return t.a}function iyn(t,e,n,r,s,o,h){var d,w,k,_,M,B;return M=!1,w=Tce(n.q,e.f+e.b-n.q.f),B=s-(n.q.e+w-h),B<r.g||(k=o==t.c.length-1&&B>=(An(o,t.c.length),u(t.c[o],200)).e,_=(d=EC(r,B,!1),d.a),_>e.b&&!k)?!1:((k||_<=e.b)&&(k&&_>e.b?(n.d=_,bD(n,Aae(n,_))):(Wse(n.
\r\r `),Fo(f5,cut,r),Fo(O9,cut,by(r)),r=new ql(4),XD(r,Y0e),Fo(f5,iS,r),Fo(O9,iS,by(r)),r=new ql(4),XD(r,Y0e),Fo(f5,iS,r),Fo(O9,iS,by(r)),r=new ql(4),XD(r,X0e),vy(r,u(Uc(f5,iS),117)),Fo(f5,out,r),Fo(O9,out,by(r)),r=new ql(4),XD(r,"-.0:AZ__az··ÀÖØöøıĴľŁňŊžƀǃǍǰǴǵǺȗɐʨʻˁːˑ̀͠͡ͅΆΊΌΌΎΡΣώϐϖϚϚϜϜϞϞϠϠϢϳЁЌЎяёќўҁ҃҆ҐӄӇӈӋӌӐӫӮӵӸӹԱՖՙՙաֆֹֻֽֿֿׁׂ֑֣֡ׄׄאתװײءغـْ٠٩ٰڷںھۀێېۓە۪ۭۨ۰۹ँअह़्॑॔क़ॣ९ঁঃঅঌএঐওনপরললশহ়়াৄেৈো্ৗৗড়ঢ়য়ৣৱਂਂਅਊਏਐਓਨਪਰਲਲ਼ਵਸ਼ਸਹ਼਼ਾੂੇੈੋ੍ਖ਼ੜਫ਼ਫ਼ੴઁઅઋઍઍએઑઓનપરલળવહ઼ૅેૉો્ૠૠ૯ଁଅଌଏଐଓନପରଲଳଶହ଼ୃେୈୋ୍ୖୗଡ଼ଢ଼ୟୡ୯ஂஃஅஊஎஐஒகஙசஜஜஞடணதநபமவஷஹாூெைொ்ௗௗ௧௯ఁఃఅఌఎఐఒనపళవహాౄెైొ్ౕౖౠౡಃಅಌಎಐಒನಪಳವಹಾೄೆೈೊ್ೕೖೞೞೠೡഃഅഌഎഐഒനപഹാൃെൈൊ്ൗൗൠൡ൯กฮะฺเ๎๙ກຂຄຄງຈຊຊຍຍດທນຟມຣລລວວສຫອຮະູົຽເໄໆໆ່ໍ໙༘༙༠༩༹༹༵༵༷༷༾ཇཉཀྵ྄ཱ྆ྋྐྕྗྗྙྭྱྷྐྵྐྵႠჅაჶᄀᄀᄂᄃᄅᄇᄉᄉᄋᄌᄎᄒᄼᄼᄾᄾᅀᅀᅌᅌᅎᅎᅐᅐᅔᅕᅙᅙᅡᅣᅣᅥᅥᅧᅧᅩᅩᅭᅮᅲᅳᅵᅵᆞᆞᆨᆨᆫᆫᆮᆯᆷᆸᆺᆺᆼᇂᇫᇫᇰᇰᇹᇹḀẛẠỹἀἕἘἝἠὅὈὍὐὗὙὙὛὛὝὝὟώᾀᾴᾶᾼῂῄῆῌῐΐῖΊῠῬῲῴῶῼ⃐⃜⃡⃡ΩΩↀↂ々々〡〯〱〵ぁゔ゙゚ゝゞァヺーヾㄅㄬ一龥가힣"),Fo(f5,uut,r),Fo(O9,uut,by(r)),r=new ql(4),XD(r,X0e),Yc(r,95,95),Yc(r,58,58),Fo(f5,lut,r),Fo(O9,lut,by(r))),n=u(Uc(e?f5:O9,t),136),n}function j5n(t){Vr(t.a,oi,ct(ot(Le,1),re,2,6,[xi,"anySimpleType"])),Vr(t.b,oi,ct(ot(Le,1),re,2,6,[xi,"anyType",qh,eO])),Vr(u(At(Kt(t.b),0),34),oi,ct(ot(Le,1),re,2,6,[qh,nut,xi,":mixed"])),Vr(u(At(Kt(t.b),1),34),oi,ct(ot(Le,1),re,2,6,[qh,nut,P8t,iut,xi,":1",N0e,"lax"])),Vr(u(At(Kt(t.b),2),34),oi,ct(ot(Le,1),re,2,6,[qh,D0e,P8t,iut,xi,":2",N0e,"lax"])),Vr(t.c,oi,ct(ot(Le,1),re,2,6,[xi,"anyURI",Vh,s1])),Vr(t.d,oi,ct(ot(Le,1),re,2,6,[xi,"base64Binary",Vh,s1])),Vr(t.e,oi,ct(ot(Le,1),re,2,6,[xi,lx,Vh,s1])),Vr(t.f,oi,ct(ot(Le,1),re,2,6,[xi,"boolean:Object",Ha,lx])),Vr(t.g,oi,ct(ot(Le,1),re,2,6,[xi,QC])),Vr(t.i,oi,ct(ot(Le,1),re,2,6,[xi,"byte:Object",Ha,QC])),Vr(t.j,oi,ct(ot(Le,1),re,2,6,[xi,"date",Vh,s1])),Vr(t.k,oi,ct(ot(Le,1),re,2,6,[xi,"dateTime",Vh,s1])),Vr(t.n,oi,ct(ot(Le,1),re,2,6,[xi,"decimal",Vh,s1])),Vr(t.o,oi,ct(ot(Le,1),re,2,6,[xi,ZC,Vh,s1])),Vr(t.p,oi,ct(ot(Le,1),re,2,6,[xi,"double:Object",Ha,ZC])),Vr(t.q,oi,ct(ot(Le,1),re,2,6,[xi,"duration",Vh,s1])),Vr(t.s,oi,ct(ot(Le,1),re,2,6,[xi,"ENTITIES",Ha,F0e,N8t,"1"])),Vr(t.r,oi,ct(ot(Le,1),re,2,6,[xi,F0e,rut,F8t])),Vr(t.t,oi,ct(ot(Le,1),re,2,6,[xi,F8t,Ha,BH])),Vr(t.u,oi,ct(ot(Le,1),re,2,6,[xi,JC,Vh,s1])),Vr(t.v,oi,ct(ot(Le,1),re,2,6,[xi,"float:Object",Ha,JC])),Vr(t.w,oi,ct(ot(Le,1),re,2,6,[xi,"gDay",Vh,s1])),Vr(t.B,oi,ct(ot(Le,1),re,2,6,[xi,"gMonth",Vh,s1])),Vr(t.A,oi,ct(ot(Le,1),re,2,6,[xi,"gMonthDay",Vh,s1])),Vr(t.C,oi,ct(ot(Le,1),re,2,6,[xi,"gYear",Vh,s1])),Vr(t.D,oi,ct(ot(Le,1),re,2,6,[xi,"gYearMonth",Vh,s1])),Vr(t.F,oi,ct(ot(Le,1),re,2,6,[xi,"hexBinary",Vh,s1])),Vr(t.G,oi,ct(ot(Le,1),re,2,6,[xi,"ID",Ha,BH])),Vr(t.H,oi,ct(ot(Le,1),re,2,6,[xi,"IDREF",Ha,BH])),Vr(t.J,oi,ct(ot(Le,1),re,2,6,[xi,"IDREFS",Ha,B0e,N8t,"1"])),Vr(t.I,oi,ct(ot(Le,1),re,2,6,[xi,B0e,rut,"IDREF"])),Vr(t.K,oi,ct(ot(Le,1),re,2,6,[xi,tS])),Vr(t.M,oi,ct(ot(Le,1),re,2,6,[xi,B8t])),Vr(t.L,oi,ct(ot(Le,1),re,2,6,[xi,"int:Object",Ha,tS])),Vr(t.P,oi,ct(ot(Le,1),re,2,6,[xi,"language",Ha,sut,aut,R0e])),Vr(t.Q,oi,ct(ot(Le,1),re,2,6,[xi,eS])),Vr(t.R,oi,ct(ot(Le,1),re,2,6,[xi,"long:Object",Ha,eS])),Vr(t.S,oi,ct(ot(Le,1),re,2,6,[xi,"Name",Ha,sut,aut,R8t])),Vr(t.T,oi,ct(ot(Le,1),re,2,6,[xi,BH,Ha,"Name
`,Vfe=`)]}"' \r
`,Gfe="The given string contains parts that cannot be parsed as numbers.",GI="org.eclipse.elk.core.math",Ufe={3:1,4:1,142:1,207:1,414:1},Wfe={3:1,4:1,116:1,207:1,414:1},Xn="org.eclipse.elk.layered",Ug="org.eclipse.elk.alg.layered.graph.transform",Kfe="ElkGraphImporter",Yfe="ElkGraphImporter/lambda$0$Type",Xfe="ElkGraphImporter/lambda$1$Type",Qfe="ElkGraphImporter/lambda$2$Type",Zfe="ElkGraphImporter/lambda$4$Type",Jfe="Node margin calculation",Hn="org.eclipse.elk.alg.layered.intermediate",t1e="ONE_SIDED_GREEDY_SWITCH",e1e="TWO_SIDED_GREEDY_SWITCH",Bot="No implementation is available for the layout processor ",gxt="IntermediateProcessorStrategy",Rot="Node '",n1e="FIRST_SEPARATE",r1e="LAST_SEPARATE",i1e="Odd port side processing",js="org.eclipse.elk.alg.layered.intermediate.compaction",RC="org.eclipse.elk.alg.layered.intermediate.greedyswitch",u0="org.eclipse.elk.alg.layered.p3order.counting",UI={225:1},xx="org.eclipse.elk.alg.layered.intermediate.loops",Ql="org.eclipse.elk.alg.layered.intermediate.loops.ordering",c2="org.eclipse.elk.alg.layered.intermediate.loops.routing",jC="org.eclipse.elk.alg.layered.intermediate.preserveorder",Ld="org.eclipse.elk.alg.layered.intermediate.wrapping",Nc="org.eclipse.elk.alg.layered.options",jot="INTERACTIVE",s1e="DEPTH_FIRST",a1e="EDGE_LENGTH",o1e="SELF_LOOPS",c1e="firstTryWithInitialOrder",pxt="org.eclipse.elk.layered.directionCongruency",bxt="org.eclipse.elk.layered.feedbackEdges",Xq="org.eclipse.elk.layered.interactiveReferencePoint",vxt="org.eclipse.elk.layered.mergeEdges",wxt="org.eclipse.elk.layered.mergeHierarchyEdges",mxt="org.eclipse.elk.layered.allowNonFlowPortsToSwitchSides",yxt="org.eclipse.elk.layered.portSortingStrategy",xxt="org.eclipse.elk.layered.thoroughness",kxt="org.eclipse.elk.layered.unnecessaryBendpoints",Ext="org.eclipse.elk.layered.generatePositionAndLayerIds",$ot="org.eclipse.elk.layered.cycleBreaking.strategy",WI="org.eclipse.elk.layered.layering.strategy",Txt="org.eclipse.elk.layered.layering.layerConstraint",_xt="org.eclipse.elk.layered.layering.layerChoiceConstraint",Cxt="org.eclipse.elk.layered.layering.layerId",zot="org.eclipse.elk.layered.layering.minWidth.upperBoundOnWidth",qot="org.eclipse.elk.layered.layering.minWidth.upperLayerEstimationScalingFactor",Hot="org.eclipse.elk.layered.layering.nodePromotion.strategy",Vot="org.eclipse.elk.layered.layering.nodePromotion.maxIterations",Got="org.eclipse.elk.layered.layering.coffmanGraham.layerBound",$C="org.eclipse.elk.layered.crossingMinimization.strategy",Sxt="org.eclipse.elk.layered.crossingMinimization.forceNodeModelOrder",Uot="org.eclipse.elk.layered.crossingMinimization.hierarchicalSweepiness",Wot="org.eclipse.elk.layered.crossingMinimization.semiInteractive",Axt="org.eclipse.elk.layered.crossingMinimization.positionChoiceConstraint",Lxt="org.eclipse.elk.layered.crossingMinimization.positionId",Mxt="org.eclipse.elk.layered.crossingMinimization.greedySwitch.activationThreshold",Kot="org.eclipse.elk.layered.crossingMinimization.greedySwitch.type",Qq="org.eclipse.elk.layered.crossingMinimization.greedySwitchHierarchical.type",D4="org.eclipse.elk.layered.nodePlacement.strategy",Zq="org.eclipse.elk.layered.nodePlacement.favorStraightEdges",Yot="org.eclipse.elk.layered.nodePlacement.bk.edgeStraightening",Xot="org.eclipse.elk.layered.nodePlacement.bk.fixedAlignment",Qot="org.eclipse.elk.layered.nodePlacement.linearSegments.deflectionDampening",Zot="org.eclipse.elk.layered.nodePlacement.networkSimplex.nodeFlexibility",Jot="org.eclipse.elk.layered.nodePlacement.networkSimplex.nodeFlexibility.default",Dxt="org.eclipse.elk.layered.edgeRouting.selfLoopDistribution",Ixt="org.eclipse.elk.layered.edgeRouting.selfLoopOrdering",Jq="org.eclipse.elk.layered.edgeRouting.splines.mode",tH="org.eclipse.elk.layered.edgeRouting.splines.sloppy.layerSpacingFactor",tct="org.eclipse.elk.layered.edgeRouting.polyline.slopedEdgeZoneWidth",Oxt="org.eclipse.elk.layered.spacing.baseValue",Pxt="org.eclipse.elk.layered.spacing.edgeNodeBetweenLayers",Nxt="org.eclipse.elk.layered.spacing.edgeEdgeBetweenLayers",Fxt="org.eclipse.elk.layered.sp
`,e=ve(0),h=0;h<this.p;h++){for(r+=""+e.a,e=ve(LWt(e.a)),s=0;s<this.o;s++)n=ait(this,s,h),Oc(n,0)==0?r+="_":Oc(n,1)==0?r+="X":r+="0";r+=`
`}return $l(r,0,r.length-1)},l.o=0,l.p=0,P(zq,"TwoBitGrid",1298),D(321,1298,{321:1},p3t),l.j=0,l.k=0,P(zq,"PlanarGrid",321),D(167,321,{321:1,167:1}),l.g=0,l.i=0,P(zq,"Polyomino",167);var n6n=ls($I,Afe);D(134,1,Y6t,E3),l.Ye=function(e,n){return jD(this,e,n)},l.Ve=function(){return QKt(this)},l.We=function(e){return K(this,e)},l.Xe=function(e){return ia(this,e)},P($I,"MapPropertyHolder",134),D(1299,134,Y6t,Mce),P(zq,"Polyominoes",1299);var Epe=!1,cS,Z7t;D(1766,1,tr,yL),l.td=function(e){Ale(u(e,221))},P(bx,"DepthFirstCompaction/0methodref$compactTree$Type",1766),D(810,1,tr,fi),l.td=function(e){jen(this.a,u(e,221))},P(bx,"DepthFirstCompaction/lambda$1$Type",810),D(1767,1,tr,lKt),l.td=function(e){uhn(this.a,this.b,this.c,u(e,221))},P(bx,"DepthFirstCompaction/lambda$2$Type",1767);var uS,J7t;D(65,1,{65:1},vQt),P(bx,"Node",65),D(1250,1,{},wUt),P(bx,"ScanlineOverlapCheck",1250),D(1251,1,{679:1},BXt),l.Ke=function(e){kQe(this,u(e,440))},P(bx,"ScanlineOverlapCheck/OverlapsScanlineHandler",1251),D(1252,1,Ui,hm),l.ue=function(e,n){return Gun(u(e,65),u(n,65))},l.Fb=function(e){return this===e},l.ve=function(){return new ft(this)},P(bx,"ScanlineOverlapCheck/OverlapsScanlineHandler/lambda$0$Type",1252),D(440,1,{440:1},x2t),l.a=!1,P(bx,"ScanlineOverlapCheck/Timestamp",440),D(1253,1,Ui,wg),l.ue=function(e,n){return x1n(u(e,440),u(n,440))},l.Fb=function(e){return this===e},l.ve=function(){return new ft(this)},P(bx,"ScanlineOverlapCheck/lambda$0$Type",1253),D(550,1,{},cs),P(Lfe,"SVGImage",550),D(324,1,{324:1},gvt),l.Ib=function(){return"("+this.a+oo+this.b+oo+this.c+")"},P(Lfe,"UniqueTriple",324),D(209,1,_b),P(A4,"AbstractLayoutProvider",209),D(1132,209,_b,zs),l.Ze=function(e,n){var r,s,o,h;switch(Dr(n,Mfe,1),this.a=Zt(ke(He(e,(iC(),s9t)))),sb(e,jut)&&(o=Yr(He(e,jut)),r=sat(q8(),o),r&&(s=u(lrt(r.f),209),s.Ze(e,Kc(n,1)))),h=new OZt(this.a),this.b=l4n(h,e),u(He(e,(Sit(),e9t)),481).g){case 0:Cpn(new Da,this.b),Do(e,rV,K(this.b,rV));break;default:Ud()}w4n(h),Do(e,r9t,this.b),br(n)},l.a=0,P(Dfe,"DisCoLayoutProvider",1132),D(1244,1,{},Da),l.c=!1,l.e=0,l.f=0,P(Dfe,"DisCoPolyominoCompactor",1244),D(561,1,{561:1},nYt),l.b=!0,P(Hq,"DCComponent",561),D(394,22,{3:1,35:1,22:1,394:1},zR),l.a=!1;var eV,gO,nV,pO,Tpe=Qr(Hq,"DCDirection",394,ni,Tin,hZe),_pe;D(266,134,{3:1,266:1,94:1,134:1},Gst),P(Hq,"DCElement",266),D(395,1,{395:1},j3t),l.c=0,P(Hq,"DCExtension",395),D(755,134,Y6t,Jqt),P(Hq,"DCGraph",755),D(481,22,{3:1,35:1,22:1,481:1},rWt);var Rut,t9t=Qr(Sot,X6t,481,ni,tnn,fZe),Cpe;D(854,1,jh,DJ),l.Qe=function(e){on(e,new Qe(sn(rn(an(yn(Je(nn(tn(en(new We,Q6t),Ife),"Connected Components Compaction Strategy"),"Strategy for packing different connected components in order to save space and enhance readability of a graph."),n9t),(Hg(),ks)),t9t),cn((e1(),Un))))),on(e,new Qe(sn(rn(an(Je(nn(tn(en(new We,Z6t),Ife),"Connected Components Layout Algorithm"),"A layout algorithm that is to be applied to each connected component before the components themselves are compacted. If unspecified, the positions of the components' nodes are not altered."),_9),Le),cn(Un)))),on(e,new Qe(sn(rn(an(Je(nn(tn(en(new We,J6t),"debug"),"DCGraph"),"Access to the DCGraph is intended for the debug view,"),X1),ir),cn(Un)))),on(e,new Qe(sn(rn(an(Je(nn(tn(en(new We,txt),"debug"),"List of Polyominoes"),"Access to the polyominoes is intended for the debug view,"),X1),ir),cn(Un)))),ble((new DB,e))};var Spe,e9t,n9t,Ape,Lpe;P(Sot,"DisCoMetaDataProvider",854),D(998,1,jh,DB),l.Qe=function(e){ble(e)};var Mpe,jut,Dpe,r9t,rV,$ut,i9t,Ipe,Ope,Ppe,Npe,s9t;P(Sot,"DisCoOptions",998),D(999,1,{},ki),l.$e=function(){var e;return e=new zs,e},l._e=function(e){},P(Sot,"DisCoOptions/DiscoFactory",999),D(562,167,{321:1,167:1,562:1},dce),l.a=0,l.b=0,l.c=0,l.d=0,P("org.eclipse.elk.alg.disco.structures","DCPolyomino",562);var zut,qut,iV;D(1268,1,Ti,Rc),l.Mb=function(e){return X2t(e)},P(L4,"ElkGraphComponentsProcessor/lambda$0$Type",1268),D(1269,1,{},Oe),l.Kb=function(e){return $6(),n0(u(e,79))},P(L4,"ElkGraphComponentsProcessor/lambda$1$Type",1269),D(1270,1,Ti,vp),l.Mb=function(e){return htn(u(e,79))},P(L4,"ElkGraphCom
2023-05-24 18:25:13 +00:00
start=`,Cc(e,this.i),e.a+=`
end=`,Cc(e,this.a),e.a+=`
nodeStartEdge=`,Cc(e,this.e),e.a+=`
startEndEdge=`,Cc(e,this.j),e.a+=`
originalEdge=`,Cc(e,this.f),e.a+=`
startInLayerDummy=`,Cc(e,this.k),e.a+=`
startInLayerEdge=`,Cc(e,this.n),e.a+=`
endInLayerDummy=`,Cc(e,this.b),e.a+=`
endInLayerEdge=`,Cc(e,this.c),e.a},P(Ld,"BreakingPointInserter/BPInfo",305),D(652,1,{652:1},Ap),l.a=!1,l.b=0,l.c=0,P(Ld,"BreakingPointInserter/Cut",652),D(1480,1,ys,WX),l.pf=function(e,n){j2n(u(e,37),n)},P(Ld,"BreakingPointProcessor",1480),D(1481,1,Ti,KX),l.Mb=function(e){return Qte(u(e,10))},P(Ld,"BreakingPointProcessor/0methodref$isEnd$Type",1481),D(1482,1,Ti,YX),l.Mb=function(e){return Zte(u(e,10))},P(Ld,"BreakingPointProcessor/1methodref$isStart$Type",1482),D(1483,1,ys,XX),l.pf=function(e,n){cbn(this,u(e,37),n)},P(Ld,"BreakingPointRemover",1483),D(1484,1,tr,QX),l.td=function(e){u(e,128).k=!0},P(Ld,"BreakingPointRemover/lambda$0$Type",1484),D(797,1,{},u5t),l.b=0,l.e=0,l.f=0,l.j=0,P(Ld,"GraphStats",797),D(798,1,{},NF),l.Ce=function(e,n){return b.Math.max(Zt(ke(e)),Zt(ke(n)))},P(Ld,"GraphStats/0methodref$max$Type",798),D(799,1,{},FF),l.Ce=function(e,n){return b.Math.max(Zt(ke(e)),Zt(ke(n)))},P(Ld,"GraphStats/2methodref$max$Type",799),D(1660,1,{},ZX),l.Ce=function(e,n){return WJe(ke(e),ke(n))},P(Ld,"GraphStats/lambda$1$Type",1660),D(1661,1,{},CT),l.Kb=function(e){return $ie(this.a,u(e,29))},P(Ld,"GraphStats/lambda$2$Type",1661),D(1662,1,{},sR),l.Kb=function(e){return xce(this.a,u(e,29))},P(Ld,"GraphStats/lambda$6$Type",1662),D(800,1,{},BF),l.Vf=function(e,n){var r;return r=u(K(e,(Te(),d_t)),15),r||(pn(),pn(),mo)},l.Wf=function(){return!1},P(Ld,"ICutIndexCalculator/ManualCutIndexCalculator",800),D(802,1,{},RF),l.Vf=function(e,n){var r,s,o,h,d,w,k,_,M,B,q,G,W,Z,bt,Mt,St,jt,Xt;for(Xt=(n.n==null&&lse(n),n.n),k=(n.d==null&&lse(n),n.d),jt=Pt(wa,Io,25,Xt.length,15,1),jt[0]=Xt[0],Mt=Xt[0],_=1;_<Xt.length;_++)jt[_]=jt[_-1]+Xt[_],Mt+=Xt[_];for(o=Cae(n)-1,d=u(K(e,(Te(),g_t)),19).a,s=Rs,r=new ge,q=b.Math.max(0,o-d);q<=b.Math.min(n.f-1,o+d);q++){if(Z=Mt/(q+1),bt=0,M=1,h=new ge,St=Rs,B=0,w=0,W=k[0],q==0)St=Mt,w=(n.g==null&&(n.g=rne(n,new FF)),Zt(n.g));else{for(;M<n.f;)jt[M-1]-bt>=Z&&(de(h,ve(M)),St=b.Math.max(St,jt[M-1]-B),w+=W,bt+=jt[M-1]-bt,B=jt[M-1],W=k[M]),W=b.Math.max(W,k[M]),++M;w+=W}G=b.Math.min(1/St,1/n.b/w),G>s&&(s=G,r=h)}return r},l.Wf=function(){return!1},P(Ld,"MSDCutIndexHeuristic",802),D(1617,1,ys,JX),l.pf=function(e,n){Pmn(u(e,37),n)},P(Ld,"SingleEdgeGraphWrapper",1617),D(227,22,{3:1,35:1,22:1,227:1},YT);var H4,o9,c9,Oy,dS,V4,u9=Qr(Nc,"CenterEdgeLabelPlacementStrategy",227,ni,Gsn,EZe),nbe;D(422,22,{3:1,35:1,22:1,422:1},S2t);var wEt,vlt,mEt=Qr(Nc,"ConstraintCalculationStrategy",422,ni,Nnn,TZe),rbe;D(314,22,{3:1,35:1,22:1,314:1,246:1,234:1},ket),l.Kf=function(){return doe(this)},l.Xf=function(){return doe(this)};var xO,Ax,yEt,xEt=Qr(Nc,"CrossingMinimizationStrategy",314,ni,Srn,_Ze),ibe;D(337,22,{3:1,35:1,22:1,337:1},Eet);var kEt,wlt,NV,EEt=Qr(Nc,"CuttingStrategy",337,ni,Arn,AZe),sbe;D(335,22,{3:1,35:1,22:1,335:1,246:1,234:1},CM),l.Kf=function(){return Joe(this)},l.Xf=function(){return Joe(this)};var TEt,mlt,gS,ylt,pS,_Et=Qr(Nc,"CycleBreakingStrategy",335,ni,vsn,LZe),abe;D(419,22,{3:1,35:1,22:1,419:1},A2t);var FV,CEt,SEt=Qr(Nc,"DirectionCongruency",419,ni,Pnn,MZe),obe;D(450,22,{3:1,35:1,22:1,450:1},Tet);var l9,xlt,G4,cbe=Qr(Nc,"EdgeConstraint",450,ni,Lrn,DZe),ube;D(276,22,{3:1,35:1,22:1,276:1},XT);var klt,Elt,Tlt,_lt,BV,Clt,AEt=Qr(Nc,"EdgeLabelSideSelection",276,ni,Ysn,IZe),lbe;D(479,22,{3:1,35:1,22:1,479:1},L2t);var RV,LEt,MEt=Qr(Nc,"EdgeStraighteningStrategy",479,ni,Onn,OZe),hbe;D(274,22,{3:1,35:1,22:1,274:1},QT);var Slt,DEt,IEt,jV,OEt,PEt,NEt=Qr(Nc,"FixedAlignment",274,ni,Wsn,PZe),fbe;D(275,22,{3:1,35:1,22:1,275:1},ZT);var FEt,BEt,REt,jEt,bS,$Et,zEt=Qr(Nc,"GraphCompactionStrategy",275,ni,Usn,NZe),dbe;D(256,22,{3:1,35:1,22:1,256:1},Im);var h9,$V,f9,Th,vS,zV,d9,U4,qV,wS,Alt=Qr(Nc,"GraphProperties",256,ni,Pon,FZe),gbe;D(292,22,{3:1,35:1,22:1,292:1},_et);var kO,Llt,Mlt,Dlt=Qr(Nc,"GreedySwitchType",292,ni,Irn,BZe),pbe;D(303,22,{3:1,35:1,22:1,303:1},Cet);var Lx,EO,W4,bbe=Qr(Nc,"InLayerConstraint",303,ni,Drn,RZe),vbe;D(420,22,{3:1,35:1,22:1,420:1},M2t);var Ilt,qEt,HEt=Qr(Nc,"InteractiveReferencePoint",420,ni,Fnn,jZe),wbe,VEt,Mx,Aw,HV,GEt,UEt,VV,WEt,TO,GV,mS,Dx,Py,Olt,UV,yc,KEt,Lw,tu,Plt,Nlt,_O,Nb,Mw,Ix,YEt,Ox,CO,Ny,o1,Uh,Flt,
`;for(n=gi(this.a,0);n.b!=n.d.c;)e=u(di(n),188),o+=(e.b&&e.c?w$(e.b)+"->"+w$(e.c):"e_"+es(e))+`
`;return o};var l6n=P(HC,"TGraph",135);D(633,502,{3:1,502:1,633:1,94:1,134:1}),P(HC,"TShape",633),D(86,633,{3:1,502:1,86:1,633:1,94:1,134:1},yit),l.Ib=function(){return w$(this)};var h6n=P(HC,"TNode",86);D(255,1,i0,Lp),l.Jc=function(e){Pa(this,e)},l.Kc=function(){var e;return e=gi(this.a.d,0),new v6(e)},P(HC,"TNode/2",255),D(358,1,va,v6),l.Nb=function(e){Ia(this,e)},l.Pb=function(){return u(di(this.a),188).c},l.Ob=function(){return TR(this.a)},l.Qb=function(){G$(this.a)},P(HC,"TNode/2/1",358),D(1840,1,ys,RWt),l.pf=function(e,n){kmn(this,u(e,135),n)},P(kx,"FanProcessor",1840),D(327,22,{3:1,35:1,22:1,327:1,234:1},t_),l.Kf=function(){switch(this.g){case 0:return new Tqt;case 1:return new RWt;case 2:return new Z5;case 3:return new UQ;case 4:return new KQ;case 5:return new FL;default:throw et(new Bn(Bot+(this.f!=null?this.f:""+this.g)))}};var xht,kht,Eht,Tht,_ht,yG,Vme=Qr(kx,gxt,327,ni,Xsn,oJe),Gme;D(1843,1,ys,UQ),l.pf=function(e,n){i2n(this,u(e,135),n)},l.a=0,P(kx,"LevelHeightProcessor",1843),D(1844,1,i0,WQ),l.Jc=function(e){Pa(this,e)},l.Kc=function(){return pn(),i8(),J7},P(kx,"LevelHeightProcessor/1",1844),D(1841,1,ys,Z5),l.pf=function(e,n){hgn(this,u(e,135),n)},l.a=0,P(kx,"NeighborsProcessor",1841),D(1842,1,i0,qF),l.Jc=function(e){Pa(this,e)},l.Kc=function(){return pn(),i8(),J7},P(kx,"NeighborsProcessor/1",1842),D(1845,1,ys,KQ),l.pf=function(e,n){r2n(this,u(e,135),n)},l.a=0,P(kx,"NodePositionProcessor",1845),D(1839,1,ys,Tqt),l.pf=function(e,n){Lyn(this,u(e,135))},P(kx,"RootProcessor",1839),D(1846,1,ys,FL),l.pf=function(e,n){Run(u(e,135))},P(kx,"Untreeifyer",1846);var jO,BS,Ume,Cht,xG,RS,Sht,kG,EG,E9,jS,TG,Jg,X_t,Wme,Aht,Wy,Lht,Q_t;D(851,1,jh,M3),l.Qe=function(e){on(e,new Qe(sn(rn(an(yn(Je(nn(tn(en(new We,Okt),""),"Weighting of Nodes"),"Which weighting to use when computing a node order."),J_t),(Hg(),ks)),aCt),cn((e1(),Un))))),on(e,new Qe(sn(rn(an(yn(Je(nn(tn(en(new We,Pkt),""),"Search Order"),"Which search order to use when computing a spanning tree."),Z_t),ks),cCt),cn(Un)))),Ule((new QL,e))};var Kme,Z_t,Yme,J_t;P(gH,"MrTreeMetaDataProvider",851),D(994,1,jh,QL),l.Qe=function(e){Ule(e)};var Xme,tCt,Qme,Zme,Jme,tye,eCt,eye,nCt,nye,_G,rCt,rye,iCt,iye;P(gH,"MrTreeOptions",994),D(995,1,{},YQ),l.$e=function(){var e;return e=new jWt,e},l._e=function(e){},P(gH,"MrTreeOptions/MrtreeFactory",995),D(480,22,{3:1,35:1,22:1,480:1},R2t);var Mht,sCt,aCt=Qr(gH,"OrderWeighting",480,ni,Vnn,cJe),sye;D(425,22,{3:1,35:1,22:1,425:1},j2t);var oCt,Dht,cCt=Qr(gH,"TreeifyingOrder",425,ni,Hnn,lJe),aye;D(1459,1,Qc,XL),l.Yf=function(e){return u(e,135),oye},l.pf=function(e,n){Bon(this,u(e,135),n)};var oye;P("org.eclipse.elk.alg.mrtree.p1treeify","DFSTreeifyer",1459),D(1460,1,Qc,QJ),l.Yf=function(e){return u(e,135),cye},l.pf=function(e,n){xgn(this,u(e,135),n)};var cye;P("org.eclipse.elk.alg.mrtree.p2order","NodeOrderer",1460),D(1461,1,Qc,XJ),l.Yf=function(e){return u(e,135),uye},l.pf=function(e,n){Rvn(this,u(e,135),n)},l.a=0;var uye;P("org.eclipse.elk.alg.mrtree.p3place","NodePlacer",1461),D(1462,1,Qc,FB),l.Yf=function(e){return u(e,135),lye},l.pf=function(e,n){l1n(u(e,135),n)};var lye;P("org.eclipse.elk.alg.mrtree.p4route","EdgeRouter",1462);var $S;D(495,22,{3:1,35:1,22:1,495:1,246:1,234:1},$2t),l.Kf=function(){return Zre(this)},l.Xf=function(){return Zre(this)};var CG,T9,uCt=Qr(Nkt,"RadialLayoutPhases",495,ni,Gnn,uJe),hye;D(1131,209,_b,wHt),l.Ze=function(e,n){var r,s,o,h,d,w;if(r=eoe(this,e),Dr(n,"Radial layout",r.c.length),je(Be(He(e,(ay(),mCt))))||h$((s=new fr((Dm(),new Sm(e))),s)),w=Sdn(e),Do(e,(b_(),$S),w),!w)throw et(new Bn("The given graph is not a tree!"));for(o=Zt(ke(He(e,LG))),o==0&&(o=poe(e)),Do(e,LG,o),d=new S(eoe(this,e));d.a<d.c.c.length;)h=u(Q(d),51),h.pf(e,Kc(n,1));br(n)},P(Nkt,"RadialLayoutProvider",1131),D(549,1,Ui,_R),l.ue=function(e,n){return Jvn(this.a,this.b,u(e,33),u(n,33))},l.Fb=function(e){return this===e},l.ve=function(){return new ft(this)},l.a=0,l.b=0,P(Nkt,"RadialUtil/lambda$0$Type",549),D(1375,1,ys,QQ),l.pf=function(e,n){w3n(u(e,33),n)},P(S1e,"CalculateGraphSize",1375),D(442,22,{3:1,35:1,22:1,442:1,234:1},Fet),l.Kf=functi
`),o.length!=2)throw et(new Bn("Exactly two numbers are expected, "+o.length+" were found."));try{this.a=ly(uy(o[0])),this.b=ly(uy(o[1]))}catch(h){throw h=as(h),_t(h,127)?(r=h,et(new Bn(Gfe+r))):et(h)}},l.Ib=function(){return"("+this.a+","+this.b+")"},l.a=0,l.b=0;var sa=P(GI,"KVector",8);D(74,68,{3:1,4:1,20:1,28:1,52:1,14:1,68:1,15:1,74:1,414:1},Hu,kR,oWt),l.Pc=function(){return Xcn(this)},l.Jf=function(e){var n,r,s,o,h,d;s=py(e,`,|;|\\(|\\)|\\[|\\]|\\{|\\}| | |
`),Ph(this);try{for(r=0,h=0,o=0,d=0;r<s.length;)s[r]!=null&&uy(s[r]).length>0&&(h%2==0?o=ly(s[r]):d=ly(s[r]),h>0&&h%2!=0&&pi(this,new $e(o,d)),++h),++r}catch(w){throw w=as(w),_t(w,127)?(n=w,et(new Bn("The given string does not match the expected format for vectors."+n))):et(w)}},l.Ib=function(){var e,n,r;for(e=new jl("("),n=gi(this,0);n.b!=n.d.c;)r=u(di(n),8),ii(e,r.a+","+r.b),n.b!=n.d.c&&(e.a+="; ");return(e.a+=")",e).a};var wSt=P(GI,"KVectorChain",74);D(248,22,{3:1,35:1,22:1,248:1},e_);var Zht,FG,BG,HO,VO,RG,mSt=Qr(zh,"Alignment",248,ni,Vsn,SJe),M3e;D(979,1,jh,ttt),l.Qe=function(e){zue(e)};var ySt,Jht,D3e,xSt,kSt,I3e,ESt,O3e,P3e,TSt,_St,N3e;P(zh,"BoxLayouterOptions",979),D(980,1,{},DZ),l.$e=function(){var e;return e=new BZ,e},l._e=function(e){},P(zh,"BoxLayouterOptions/BoxFactory",980),D(291,22,{3:1,35:1,22:1,291:1},n_);var GO,tft,UO,WO,KO,eft,nft=Qr(zh,"ContentAlignment",291,ni,Hsn,AJe),F3e;D(684,1,jh,Tp),l.Qe=function(e){on(e,new Qe(sn(rn(an(Je(nn(tn(en(new We,$1e),""),"Layout Algorithm"),"Select a specific layout algorithm."),(Hg(),_9)),Le),cn((e1(),Un))))),on(e,new Qe(sn(rn(an(Je(nn(tn(en(new We,z1e),""),"Resolved Layout Algorithm"),"Meta data associated with the selected algorithm."),X1),g6n),cn(Un)))),on(e,new Qe(sn(rn(an(yn(Je(nn(tn(en(new We,hkt),""),"Alignment"),"Alignment of the selected node relative to other nodes; the exact meaning depends on the used algorithm."),CSt),ks),mSt),cn(fa)))),on(e,new Qe(sn(rn(an(Je(nn(tn(en(new We,vx),""),"Aspect Ratio"),"The desired aspect ratio of the drawing, that is the quotient of width by height."),Wo),Ea),cn(Un)))),on(e,new Qe(sn(rn(an(Je(nn(tn(en(new We,s8t),""),"Bend Points"),"A fixed list of bend points for the edge. This is used by the 'Fixed Layout' algorithm to specify a pre-defined routing for an edge. The vector chain must include the source point, any bend points, and the target point, so it must have at least two points."),X1),wSt),cn(Rd)))),on(e,new Qe(sn(rn(an(yn(Je(nn(tn(en(new We,lH),""),"Content Alignment"),"Specifies how the content of a node are aligned. Each node can individually control the alignment of its contents. I.e. if a node should be aligned top left in its parent node, the parent node should specify that option."),ASt),$x),nft),cn(Un)))),on(e,new Qe(sn(rn(an(yn(Je(nn(tn(en(new We,QI),""),"Debug Mode"),"Whether additional debug information shall be generated."),(Rn(),!1)),Va),Zs),cn(Un)))),on(e,new Qe(sn(rn(an(yn(Je(nn(tn(en(new We,gkt),""),K6t),"Overall direction of edges: horizontal (right / left) or vertical (down / up)."),LSt),ks),WS),cn(Un)))),on(e,new Qe(sn(rn(an(yn(Je(nn(tn(en(new We,YI),""),"Edge Routing"),"What kind of edge routing style should be applied for the content of a parent node. Algorithms may also set this option to single edges in order to mark them as splines. The bend point list of edges with this option set to SPLINES must be interpreted as control points for a piecewise cubic spline."),ISt),ks),pft),cn(Un)))),on(e,new Qe(sn(rn(an(yn(Je(nn(tn(en(new We,bH),""),"Expand Nodes"),"If active, nodes are expanded to fill the area of their parent."),!1),Va),Zs),cn(Un)))),on(e,new Qe(sn(rn(an(yn(Je(nn(tn(en(new We,uH),""),"Hierarchy Handling"),"Determines whether separate layout runs are triggered for different compound nodes in a hierarchical graph. Setting a node's hierarchy handling to `INCLUDE_CHILDREN` will lay out that node and all of its descendants in a single layout run, until a descendant is encountered which has its hierarchy handling set to `SEPARATE_CHILDREN`. In general, `SEPARATE_CHILDREN` will ensure that a new layout run is triggered for a node with that setting. Including multiple levels of hierarchy in a single layout run may allow cross-hierarchical edges to be laid out properly. If the root node is set to `INHERIT` (or not set at all), the default behavior is `SEPARATE_CHILDREN`."),FSt),ks),xAt),Qi(Un,ct(ot(ep,1),ue,175,0,[fa]))))),on(e,new Qe(sn(rn(an(yn(Je(nn(tn(en(new We,vw),""),"Padding"),"The padding to be left to a parent element's border when placing child elements. This can also serve as an output o
2023-05-23 13:17:23 +00:00
Consider installing the package or pass your own 'workerFactory' to ELK's constructor.
... Falling back to non-web worker version.`);if(!R.workerFactory){var rt=f("./elk-worker.min.js"),J=rt.Worker;R.workerFactory=function(it){return new J(it)}}return b(this,(F.__proto__||Object.getPrototypeOf(F)).call(this,R))}return F}(C);Object.defineProperty(p.exports,"__esModule",{value:!0}),p.exports=A,A.default=A},{"./elk-api.js":1,"./elk-worker.min.js":2,"web-worker":4}],4:[function(f,p,v){p.exports=Worker},{}]},{},[3])(3)})})(pjt);var rUe=pjt.exports;const iUe=R9(rUe),bjt=new iUe;let sv={};const sUe={};let R5={};const aUe=async function(i,a,f,p,v,m,b){const C=f.select(`[id="${a}"]`).insert("g").attr("class","nodes"),A=Object.keys(i);return await Promise.all(A.map(async function(N){const F=i[N];let j="default";F.classes.length>0&&(j=F.classes.join(" ")),j=j+" flowchart-label";const R=Jw(F.styles);let H=F.text!==void 0?F.text:F.id;const Y={width:0,height:0},rt=[{id:F.id+"-west",layoutOptions:{"port.side":"WEST"}},{id:F.id+"-east",layoutOptions:{"port.side":"EAST"}},{id:F.id+"-south",layoutOptions:{"port.side":"SOUTH"}},{id:F.id+"-north",layoutOptions:{"port.side":"NORTH"}}];let J=0,it="",ht={};switch(F.type){case"round":J=5,it="rect";break;case"square":it="rect";break;case"diamond":it="question",ht={portConstraints:"FIXED_SIDE"};break;case"hexagon":it="hexagon";break;case"odd":it="rect_left_inv_arrow";break;case"lean_right":it="lean_right";break;case"lean_left":it="lean_left";break;case"trapezoid":it="trapezoid";break;case"inv_trapezoid":it="inv_trapezoid";break;case"odd_right":it="rect_left_inv_arrow";break;case"circle":it="circle";break;case"ellipse":it="ellipse";break;case"stadium":it="stadium";break;case"subroutine":it="subroutine";break;case"cylinder":it="cylinder";break;case"group":it="rect";break;case"doublecircle":it="doublecircle";break;default:it="rect"}const Tt={labelStyle:R.labelStyle,shape:it,labelText:H,labelType:F.labelType,rx:J,ry:J,class:j,style:R.style,id:F.id,link:F.link,linkTarget:F.linkTarget,tooltip:v.db.getTooltip(F.id)||"",domId:v.db.lookUpDomId(F.id),haveCallback:F.haveCallback,width:F.type==="group"?500:void 0,dir:F.dir,type:F.type,props:F.props,padding:Me().flowchart.padding};let yt,vt;if(Tt.type!=="group")vt=await kBt(C,Tt,F.dir),yt=vt.node().getBBox();else{p.createElementNS("http://www.w3.org/2000/svg","text");const{shapeSvg:xt,bbox:st}=await jd(C,Tt,void 0,!0);Y.width=st.width,Y.wrappingWidth=Me().flowchart.wrappingWidth,Y.height=st.height,Y.labelNode=xt.node(),Tt.labelData=Y}const ut={id:F.id,ports:F.type==="diamond"?rt:[],layoutOptions:ht,labelText:H,labelData:Y,domId:v.db.lookUpDomId(F.id),width:yt==null?void 0:yt.width,height:yt==null?void 0:yt.height,type:F.type,el:vt,parent:m.parentById[F.id]};R5[Tt.id]=ut})),b},vjt=(i,a,f)=>{const p={TB:{in:{north:"north"},out:{south:"west",west:"east",east:"south"}},LR:{in:{west:"west"},out:{east:"south",south:"north",north:"east"}},RL:{in:{east:"east"},out:{west:"north",north:"south",south:"west"}},BT:{in:{south:"south"},out:{north:"east",east:"west",west:"north"}}};return p.TD=p.TB,Vt.info("abc88",f,a,i),p[f][a][i]},wjt=(i,a,f)=>{if(Vt.info("getNextPort abc88",{node:i,edgeDirection:a,graphDirection:f}),!sv[i])switch(f){case"TB":case"TD":sv[i]={inPosition:"north",outPosition:"south"};break;case"BT":sv[i]={inPosition:"south",outPosition:"north"};break;case"RL":sv[i]={inPosition:"east",outPosition:"west"};break;case"LR":sv[i]={inPosition:"west",outPosition:"east"};break}const p=a==="in"?sv[i].inPosition:sv[i].outPosition;return a==="in"?sv[i].inPosition=vjt(sv[i].inPosition,a,f):sv[i].outPosition=vjt(sv[i].outPosition,a,f),p},oUe=(i,a)=>{let f=i.start,p=i.end;const v=f,m=p,b=R5[f],E=R5[p];return!b||!E?{source:f,target:p}:(b.type==="diamond"&&(f=`${f}-${wjt(f,"out",a)}`),E.type==="diamond"&&(p=`${p}-${wjt(p,"in",a)}`),{source:f,target:p,sourceId:v,targetId:m})},cUe=function(i,a,f,p){Vt.info("abc78 edges = ",i);const v=p.insert("g").attr("class","edgeLabels");let m={},b=a.db.getDirection(),E,C;if(i.defaultStyle!==void 0){const A=Jw(i.defaultStyle);E=A.style,C=A.labelStyle}return i.forEach(function(A){const N="L-"+A.start+"-"+A.end;m[N]===void 0?(m
`),A.style===void 0&&(H.style=H.style||"stroke: #333; stroke-width: 1.5px;fill:none;"),H.labelStyle=H.labelStyle.replace("color:","fill:"),H.id=F,H.classes="flowchart-link "+j+" "+R;const J=_Bt(v,H),{source:it,target:ht,sourceId:Tt,targetId:yt}=oUe(A,b);Vt.debug("abc78 source and target",it,ht),f.edges.push({id:"e"+A.start+A.end,sources:[it],targets:[ht],sourceId:Tt,targetId:yt,labelEl:J,labels:[{width:H.width,height:H.height,orgWidth:H.width,orgHeight:H.height,text:H.label,layoutOptions:{"edgeLabels.inline":"true","edgeLabels.placement":"CENTER"}}],edgeData:H})}),f},uUe=function(i,a,f,p){let v="";switch(p&&(v=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,v=v.replace(/\(/g,"\\("),v=v.replace(/\)/g,"\\)")),a.arrowTypeStart){case"arrow_cross":i.attr("marker-start","url("+v+"#"+f+"-crossStart)");break;case"arrow_point":i.attr("marker-start","url("+v+"#"+f+"-pointStart)");break;case"arrow_barb":i.attr("marker-start","url("+v+"#"+f+"-barbStart)");break;case"arrow_circle":i.attr("marker-start","url("+v+"#"+f+"-circleStart)");break;case"aggregation":i.attr("marker-start","url("+v+"#"+f+"-aggregationStart)");break;case"extension":i.attr("marker-start","url("+v+"#"+f+"-extensionStart)");break;case"composition":i.attr("marker-start","url("+v+"#"+f+"-compositionStart)");break;case"dependency":i.attr("marker-start","url("+v+"#"+f+"-dependencyStart)");break;case"lollipop":i.attr("marker-start","url("+v+"#"+f+"-lollipopStart)");break}switch(a.arrowTypeEnd){case"arrow_cross":i.attr("marker-end","url("+v+"#"+f+"-crossEnd)");break;case"arrow_point":i.attr("marker-end","url("+v+"#"+f+"-pointEnd)");break;case"arrow_barb":i.attr("marker-end","url("+v+"#"+f+"-barbEnd)");break;case"arrow_circle":i.attr("marker-end","url("+v+"#"+f+"-circleEnd)");break;case"aggregation":i.attr("marker-end","url("+v+"#"+f+"-aggregationEnd)");break;case"extension":i.attr("marker-end","url("+v+"#"+f+"-extensionEnd)");break;case"composition":i.attr("marker-end","url("+v+"#"+f+"-compositionEnd)");break;case"dependency":i.attr("marker-end","url("+v+"#"+f+"-dependencyEnd)");break;case"lollipop":i.attr("marker-end","url("+v+"#"+f+"-lollipopEnd)");break}},lUe=function(i,a){Vt.info("Extracting classes"),a.db.clear("ver-2");try{return a.parse(i),a.db.getClasses()}catch{return{}}},hUe=function(i){const a={parentById:{},childrenById:{}},f=i.getSubGraphs();return Vt.info("Subgraphs - ",f),f.forEach(function(p){p.nodes.forEach(function(v){a.parentById[v]=p.id,a.childrenById[p.id]===void 0&&(a.childrenById[p.id]=[]),a.childrenById[p.id].push(v)})}),f.forEach(function(p){p.id,a.parentById[p.id]!==void 0&&a.parentById[p.id]}),a},fUe=function(i,a,f){const p=nUe(i,a,f);if(p===void 0||p==="root")return{x:0,y:0};const v=R5[p].offset;return{x:v.posX,y:v.posY}},dUe=function(i,a,f,p,v){const m=fUe(a.sourceId,a.targetId,v),b=a.sections[0].startPoint,E=a.sections[0].endPoint,A=(a.sections[0].bendPoints?a.sections[0].bendPoints:[]).map(rt=>[rt.x+m.x,rt.y+m.y]),N=[[b.x+m.x,b.y+m.y],...A,[E.x+m.x,E.y+m.y]],F=Z9().curve(ag),j=i.insert("path").attr("d",F(N)).attr("class","path "+f.classes).attr("fill","none"),R=i.insert("g").attr("class","edgeLabel"),H=wr(R.node().appendChild(a.labelEl)),Y=H.node().firstChild.getBoundingClientRect();H.attr("width",Y.width),H.attr("height",Y.height),R.attr("transform",`translate(${a.labels[0].x+m.x}, ${a.labels[0].y+m.y})`),uUe(j,f,p.type,p.arrowMarkerAbsolute)},mjt=(i,a)=>{i.forEach(f=>{f.children||(f.children=[]);const p=a.childrenById[f.id];p&&p.forEach(v=>{f.children.push(R5[v])}),mjt(f.children,a)})},gUe=async function(i,a,f,p){var ut;p.db.clear(),R5={},sv={},p.db.setGen("gen-2"),p.parser.parse(i);const v=wr("body").append("div").attr("style","height:400px").attr("id","cy");let m={id:"root",layoutOptions:{"elk.hierarchyHandling":"INCLUDE_CHILDREN","org.eclipse.elk.padding":"[top=100, left=100, bottom=110, right=110]","elk.layered.spacing.edgeNodeBetweenLayers":"30","elk.direction":"DOWN"},children:[],edges:[]};switch(Vt.info("Drawing flowchart using v3 renderer",bjt),p.db.getDirection()){case"BT":m.lay
2023-05-23 13:17:23 +00:00
.subgraph-lvl-${f} {
2023-05-24 18:25:13 +00:00
fill: ${i[`surface${f}`]};
stroke: ${i[`surfacePeer${f}`]};
2023-05-23 13:17:23 +00:00
}
`;return a},vUe=Object.freeze(Object.defineProperty({__proto__:null,diagram:{db:zMe,renderer:pUe,parser:Mdt,styles:i=>`.label {
2023-05-24 18:25:13 +00:00
font-family: ${i.fontFamily};
color: ${i.nodeTextColor||i.textColor};
2023-05-23 13:17:23 +00:00
}
.cluster-label text {
2023-05-24 18:25:13 +00:00
fill: ${i.titleColor};
2023-05-23 13:17:23 +00:00
}
.cluster-label span {
2023-05-24 18:25:13 +00:00
color: ${i.titleColor};
2023-05-23 13:17:23 +00:00
}
.label text,span {
2023-05-24 18:25:13 +00:00
fill: ${i.nodeTextColor||i.textColor};
color: ${i.nodeTextColor||i.textColor};
2023-05-23 13:17:23 +00:00
}
.node rect,
.node circle,
.node ellipse,
.node polygon,
.node path {
2023-05-24 18:25:13 +00:00
fill: ${i.mainBkg};
stroke: ${i.nodeBorder};
2023-05-23 13:17:23 +00:00
stroke-width: 1px;
}
.node .label {
text-align: center;
}
.node.clickable {
cursor: pointer;
}
.arrowheadPath {
2023-05-24 18:25:13 +00:00
fill: ${i.arrowheadColor};
2023-05-23 13:17:23 +00:00
}
.edgePath .path {
2023-05-24 18:25:13 +00:00
stroke: ${i.lineColor};
2023-05-23 13:17:23 +00:00
stroke-width: 2.0px;
}
.flowchart-link {
2023-05-24 18:25:13 +00:00
stroke: ${i.lineColor};
2023-05-23 13:17:23 +00:00
fill: none;
}
.edgeLabel {
2023-05-24 18:25:13 +00:00
background-color: ${i.edgeLabelBackground};
2023-05-23 13:17:23 +00:00
rect {
2023-05-24 18:25:13 +00:00
opacity: 0.85;
background-color: ${i.edgeLabelBackground};
fill: ${i.edgeLabelBackground};
2023-05-23 13:17:23 +00:00
}
text-align: center;
}
.cluster rect {
2023-05-24 18:25:13 +00:00
fill: ${i.clusterBkg};
stroke: ${i.clusterBorder};
2023-05-23 13:17:23 +00:00
stroke-width: 1px;
}
.cluster text {
2023-05-24 18:25:13 +00:00
fill: ${i.titleColor};
2023-05-23 13:17:23 +00:00
}
.cluster span {
2023-05-24 18:25:13 +00:00
color: ${i.titleColor};
2023-05-23 13:17:23 +00:00
}
/* .cluster div {
2023-05-24 18:25:13 +00:00
color: ${i.titleColor};
2023-05-23 13:17:23 +00:00
} */
div.mermaidTooltip {
position: absolute;
text-align: center;
max-width: 200px;
padding: 2px;
2023-05-24 18:25:13 +00:00
font-family: ${i.fontFamily};
2023-05-23 13:17:23 +00:00
font-size: 12px;
2023-05-24 18:25:13 +00:00
background: ${i.tertiaryColor};
border: 1px solid ${i.border2};
2023-05-23 13:17:23 +00:00
border-radius: 2px;
pointer-events: none;
z-index: 100;
}
.flowchartTitleText {
text-anchor: middle;
font-size: 18px;
2023-05-24 18:25:13 +00:00
fill: ${i.textColor};
2023-05-23 13:17:23 +00:00
}
.subgraph {
stroke-width:2;
rx:3;
}
// .subgraph-lvl-1 {
// fill:#ccc;
// // stroke:black;
// }
2023-05-24 18:25:13 +00:00
.flowchart-label text {
text-anchor: middle;
}
${bUe(i)}
`}},Symbol.toStringTag,{value:"Module"}));var Fgt=function(){var i=function(rt,J,it,ht){for(it=it||{},ht=rt.length;ht--;it[rt[ht]]=J);return it},a=[1,2],f=[1,5],p=[6,9,11,17,18,20,22,23,26,27,28],v=[1,15],m=[1,16],b=[1,17],E=[1,18],C=[1,19],A=[1,23],N=[1,24],F=[1,27],j=[4,6,9,11,17,18,20,22,23,26,27,28],R={trace:function(){},yy:{},symbols_:{error:2,start:3,timeline:4,document:5,EOF:6,directive:7,line:8,SPACE:9,statement:10,NEWLINE:11,openDirective:12,typeDirective:13,closeDirective:14,":":15,argDirective:16,title:17,acc_title:18,acc_title_value:19,acc_descr:20,acc_descr_value:21,acc_descr_multiline_value:22,section:23,period_statement:24,event_statement:25,period:26,event:27,open_directive:28,type_directive:29,arg_directive:30,close_directive:31,$accept:0,$end:1},terminals_:{2:"error",4:"timeline",6:"EOF",9:"SPACE",11:"NEWLINE",15:":",17:"title",18:"acc_title",19:"acc_title_value",20:"acc_descr",21:"acc_descr_value",22:"acc_descr_multiline_value",23:"section",26:"period",27:"event",28:"open_directive",29:"type_directive",30:"arg_directive",31:"close_directive"},productions_:[0,[3,3],[3,2],[5,0],[5,2],[8,2],[8,1],[8,1],[8,1],[7,4],[7,6],[10,1],[10,2],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[24,1],[25,1],[12,1],[13,1],[16,1],[14,1]],performAction:function(J,it,ht,Tt,yt,vt,ut){var xt=vt.length-1;switch(yt){case 1:return vt[xt-1];case 3:this.$=[];break;case 4:vt[xt-1].push(vt[xt]),this.$=vt[xt-1];break;case 5:case 6:this.$=vt[xt];break;case 7:case 8:this.$=[];break;case 11:Tt.getCommonDb().setDiagramTitle(vt[xt].substr(6)),this.$=vt[xt].substr(6);break;case 12:this.$=vt[xt].trim(),Tt.getCommonDb().setAccTitle(this.$);break;case 13:case 14:this.$=vt[xt].trim(),Tt.getCommonDb().setAccDescription(this.$);break;case 15:Tt.addSection(vt[xt].substr(8)),this.$=vt[xt].substr(8);break;case 19:Tt.addTask(vt[xt],0,""),this.$=vt[xt];break;case 20:Tt.addEvent(vt[xt].substr(2)),this.$=vt[xt];break;case 21:Tt.parseDirective("%%{","open_directive");break;case 22:Tt.parseDirective(vt[xt],"type_directive");break;case 23:vt[xt]=vt[xt].trim().replace(/'/g,'"'),Tt.parseDirective(vt[xt],"arg_directive");break;case 24:Tt.parseDirective("}%%","close_directive","timeline");break}},table:[{3:1,4:a,7:3,12:4,28:f},{1:[3]},i(p,[2,3],{5:6}),{3:7,4:a,7:3,12:4,28:f},{13:8,29:[1,9]},{29:[2,21]},{6:[1,10],7:22,8:11,9:[1,12],10:13,11:[1,14],12:4,17:v,18:m,20:b,22:E,23:C,24:20,25:21,26:A,27:N,28:f},{1:[2,2]},{14:25,15:[1,26],31:F},i([15,31],[2,22]),i(p,[2,8],{1:[2,1]}),i(p,[2,4]),{7:22,10:28,12:4,17:v,18:m,20:b,22:E,23:C,24:20,25:21,26:A,27:N,28:f},i(p,[2,6]),i(p,[2,7]),i(p,[2,11]),{19:[1,29]},{21:[1,30]},i(p,[2,14]),i(p,[2,15]),i(p,[2,16]),i(p,[2,17]),i(p,[2,18]),i(p,[2,19]),i(p,[2,20]),{11:[1,31]},{16:32,30:[1,33]},{11:[2,24]},i(p,[2,5]),i(p,[2,12]),i(p,[2,13]),i(j,[2,9]),{14:34,31:F},{31:[2,23]},{11:[1,35]},i(j,[2,10])],defaultActions:{5:[2,21],7:[2,2],27:[2,24],33:[2,23]},parseError:function(J,it){if(it.recoverable)this.trace(J);else{var ht=new Error(J);throw ht.hash=it,ht}},parse:function(J){var it=this,ht=[0],Tt=[],yt=[null],vt=[],ut=this.table,xt="",st=0,Et=0,gt=2,pt=1,Ct=vt.slice.call(arguments,1),nt=Object.create(this.lexer),Nt={yy:{}};for(var dt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,dt)&&(Nt.yy[dt]=this.yy[dt]);nt.setInput(J,Nt.yy),Nt.yy.lexer=nt,Nt.yy.parser=this,typeof nt.yylloc>"u"&&(nt.yylloc={});var Ft=nt.yylloc;vt.push(Ft);var X=nt.options&&nt.options.ranges;typeof Nt.yy.parseError=="function"?this.parseError=Nt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Bt(){var _e;return _e=Tt.pop()||nt.lex()||pt,typeof _e!="number"&&(_e instanceof Array&&(Tt=_e,_e=Tt.pop()),_e=it.symbols_[_e]||_e),_e}for(var Rt,mt,Ot,Gt,Ve={},Cn,xe,Kn,Se;;){if(mt=ht[ht.length-1],this.defaultActions[mt]?Ot=this.defaultActions[mt]:((Rt===null||typeof Rt>"u")&&(Rt=Bt()),Ot=ut[mt]&&ut[mt][Rt]),typeof Ot>"u"||!Ot.length||!Ot[0]){var ee="";Se=[];for(Cn in ut[mt])this.terminals_[Cn]&&Cn>gt&&Se.push("'"+this.terminals_[Cn]+"'");nt.showPosition?ee="Parse error on line "+(st+1)+`:
`+nt.showPosition()+`
Expecting `+Se.join(", ")+", got '"+(this.terminals_[Rt]||Rt)+"'":ee="Parse error on line "+(st+1)+": Unexpected "+(Rt==pt?"end of input":"'"+(this.terminals_[Rt]||Rt)+"'"),this.parseError(ee,{text:nt.match,token:this.terminals_[Rt]||Rt,line:nt.yylineno,loc:Ft,expected:Se})}if(Ot[0]instanceof Array&&Ot.length>1)throw new Error("Parse Error: multiple actions possible at state: "+mt+", token: "+Rt);switch(Ot[0]){case 1:ht.push(Rt),yt.push(nt.yytext),vt.push(nt.yylloc),ht.push(Ot[1]),Rt=null,Et=nt.yyleng,xt=nt.yytext,st=nt.yylineno,Ft=nt.yylloc;break;case 2:if(xe=this.productions_[Ot[1]][1],Ve.$=yt[yt.length-xe],Ve._$={first_line:vt[vt.length-(xe||1)].first_line,last_line:vt[vt.length-1].last_line,first_column:vt[vt.length-(xe||1)].first_column,last_column:vt[vt.length-1].last_column},X&&(Ve._$.range=[vt[vt.length-(xe||1)].range[0],vt[vt.length-1].range[1]]),Gt=this.performAction.apply(Ve,[xt,Et,st,Nt.yy,Ot[1],yt,vt].concat(Ct)),typeof Gt<"u")return Gt;xe&&(ht=ht.slice(0,-1*xe*2),yt=yt.slice(0,-1*xe),vt=vt.slice(0,-1*xe)),ht.push(this.productions_[Ot[1]][0]),yt.push(Ve.$),vt.push(Ve._$),Kn=ut[ht[ht.length-2]][ht[ht.length-1]],ht.push(Kn);break;case 3:return!0}}return!0}},H=function(){var rt={EOF:1,parseError:function(it,ht){if(this.yy.parser)this.yy.parser.parseError(it,ht);else throw new Error(it)},setInput:function(J,it){return this.yy=it||this.yy||{},this._input=J,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},input:function(){var J=this._input[0];this.yytext+=J,this.yyleng++,this.offset++,this.match+=J,this.matched+=J;var it=J.match(/(?:\r\n?|\n).*/g);return it?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),J},unput:function(J){var it=J.length,ht=J.split(/(?:\r\n?|\n)/g);this._input=J+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-it),this.offset-=it;var Tt=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),ht.length-1&&(this.yylineno-=ht.length-1);var yt=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:ht?(ht.length===Tt.length?this.yylloc.first_column:0)+Tt[Tt.length-ht.length].length-ht[0].length:this.yylloc.first_column-it},this.options.ranges&&(this.yylloc.range=[yt[0],yt[0]+this.yyleng-it]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject: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},less:function(J){this.unput(this.match.slice(J))},pastInput:function(){var J=this.matched.substr(0,this.matched.length-this.match.length);return(J.length>20?"...":"")+J.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var J=this.match;return J.length<20&&(J+=this._input.substr(0,20-J.length)),(J.substr(0,20)+(J.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var J=this.pastInput(),it=new Array(J.length+1).join("-");return J+this.upcomingInput()+`
`+it+"^"},test_match:function(J,it){var ht,Tt,yt;if(this.options.backtrack_lexer&&(yt={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&&(yt.yylloc.range=this.yylloc.range.slice(0))),Tt=J[0].match(/(?:\r\n?|\n).*/g),Tt&&(this.yylineno+=Tt.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Tt?Tt[Tt.length-1].length-Tt[Tt.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+J[0].length},this.yytext+=J[0],this.match+=J[0],this.matches=J,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(J[0].length),this.matched+=J[0],ht=this.performAction.call(this,this.yy,this,it,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),ht)return ht;if(this._backtrack){for(var vt in yt)this[vt]=yt[vt];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var J,it,ht,Tt;this._more||(this.yytext="",this.match="");for(var yt=this._currentRules(),vt=0;vt<yt.length;vt++)if(ht=this._input.match(this.rules[yt[vt]]),ht&&(!it||ht[0].length>it[0].length)){if(it=ht,Tt=vt,this.options.backtrack_lexer){if(J=this.test_match(ht,yt[vt]),J!==!1)return J;if(this._backtrack){it=!1;continue}else return!1}else if(!this.options.flex)break}return it?(J=this.test_match(it,yt[Tt]),J!==!1?J:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var it=this.next();return it||this.lex()},begin:function(it){this.conditionStack.push(it)},popState:function(){var it=this.conditionStack.length-1;return it>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(it){return it=this.conditionStack.length-1-Math.abs(it||0),it>=0?this.conditionStack[it]:"INITIAL"},pushState:function(it){this.begin(it)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(it,ht,Tt,yt){switch(Tt){case 0:return this.begin("open_directive"),28;case 1:return this.begin("type_directive"),29;case 2:return this.popState(),this.begin("arg_directive"),15;case 3:return this.popState(),this.popState(),31;case 4:return 30;case 5:break;case 6:break;case 7:return 11;case 8:break;case 9:break;case 10:return 4;case 11:return 17;case 12:return this.begin("acc_title"),18;case 13:return this.popState(),"acc_title_value";case 14:return this.begin("acc_descr"),20;case 15:return this.popState(),"acc_descr_value";case 16:this.begin("acc_descr_multiline");break;case 17:this.popState();break;case 18:return"acc_descr_multiline_value";case 19:return 23;case 20:return 27;case 21:return 26;case 22:return 6;case 23:return"INVALID"}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:timeline\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:section\s[^#:\n;]+)/i,/^(?::\s[^#:\n;]+)/i,/^(?:[^#:\n;]+)/i,/^(?:$)/i,/^(?:.)/i],conditions:{open_directive:{rules:[1],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},acc_descr_multiline:{rules:[17,18],inclusive:!1},acc_descr:{rules:[15],inclusive:!1},acc_title:{rules:[13],inclusive:!1},INITIAL:{rules:[0,5,6,7,8,9,10,11,12,14,16,19,20,21,22,23],inclusive:!0}}};return rt}();R.lexer=H;function Y(){this.yy={}}return Y.prototype=R,R.Parser=Y,new Y}();Fgt.parser=Fgt;const wUe=Fgt;let vL="",xjt=0;const Bgt=[],GK=[],wL=[],kjt=()=>MIt,Ejt=(i,a,f)=>{edt(globalThis,i,a,f)},Tjt=function(){Bgt.length=0,GK.length=0,vL="",wL.length=0,hg()},_jt=function(i){vL=i,Bgt.push(i)},Cjt=function(){return Bgt},Sjt=function(){let i=Djt();const a=100;let f=0;for(;!i&&f<a;)i=Djt(),f++;return GK.push(...wL),GK},Ajt=function(i,a,f){const p={id:xjt++,section:vL,type:vL,task:i,score:a||0,events:f?[f]:[]};wL.push(p)},Ljt=function(i){wL.find(f=>f.id===xjt-1).events.push(i)},Mjt=function(i){const a={section:vL,type:vL,description:i,task:i,classes:[]};GK.push(a)},Djt=function(){const i=function(f){return wL[f].processed};let a=!0;for(const[f,p]of wL.entries())i(f),a=a&&p.processed;return a},mUe=Object.freeze(Object.defineProperty({__proto__:null,addEvent:Ljt,addSection:_jt,addTask:Ajt,addTaskOrg:Mjt,clear:Tjt,default:{clear:Tjt,getCommonDb:kjt,addSection:_jt,getSections:Cjt,getTasks:Sjt,addTask:Ajt,addTaskOrg:Mjt,addEvent:Ljt,parseDirective:Ejt},getCommonDb:kjt,getSections:Cjt,getTasks:Sjt,parseDirective:Ejt},Symbol.toStringTag,{value:"Module"})),yUe=12,UK=function(i,a){const f=i.append("rect");return f.attr("x",a.x),f.attr("y",a.y),f.attr("fill",a.fill),f.attr("stroke",a.stroke),f.attr("width",a.width),f.attr("height",a.height),f.attr("rx",a.rx),f.attr("ry",a.ry),a.class!==void 0&&f.attr("class",a.class),f},xUe=function(i,a){const p=i.append("circle").attr("cx",a.cx).attr("cy",a.cy).attr("class","face").attr("r",15).attr("stroke-width",2).attr("overflow","visible"),v=i.append("g");v.append("circle").attr("cx",a.cx-15/3).attr("cy",a.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),v.append("circle").a
2023-05-23 13:17:23 +00:00
.section-${f-1} rect, .section-${f-1} path, .section-${f-1} circle, .section-${f-1} path {
2023-05-24 18:25:13 +00:00
fill: ${i["cScale"+f]};
2023-05-23 13:17:23 +00:00
}
.section-${f-1} text {
2023-05-24 18:25:13 +00:00
fill: ${i["cScaleLabel"+f]};
2023-05-23 13:17:23 +00:00
}
.node-icon-${f-1} {
font-size: 40px;
2023-05-24 18:25:13 +00:00
color: ${i["cScaleLabel"+f]};
2023-05-23 13:17:23 +00:00
}
.section-edge-${f-1}{
2023-05-24 18:25:13 +00:00
stroke: ${i["cScale"+f]};
2023-05-23 13:17:23 +00:00
}
.edge-depth-${f-1}{
stroke-width: ${p};
}
.section-${f-1} line {
2023-05-24 18:25:13 +00:00
stroke: ${i["cScaleInv"+f]} ;
2023-05-23 13:17:23 +00:00
stroke-width: 3;
}
.lineWrapper line{
2023-05-24 18:25:13 +00:00
stroke: ${i["cScaleLabel"+f]} ;
2023-05-23 13:17:23 +00:00
}
.disabled, .disabled circle, .disabled text {
fill: lightgray;
}
.disabled text {
fill: #efefef;
}
`}return a},FUe=Object.freeze(Object.defineProperty({__proto__:null,diagram:{db:mUe,renderer:PUe,parser:wUe,styles:i=>`
2023-05-23 13:17:23 +00:00
.edge {
stroke-width: 3;
}
${NUe(i)}
2023-05-23 13:17:23 +00:00
.section-root rect, .section-root path, .section-root circle {
2023-05-24 18:25:13 +00:00
fill: ${i.git0};
2023-05-23 13:17:23 +00:00
}
.section-root text {
2023-05-24 18:25:13 +00:00
fill: ${i.gitBranchLabel0};
2023-05-23 13:17:23 +00:00
}
.icon-container {
height:100%;
display: flex;
justify-content: center;
align-items: center;
}
.edge {
fill: none;
}
.eventWrapper {
filter: brightness(120%);
}
`}},Symbol.toStringTag,{value:"Module"}));var jgt=function(){var i=function(Tt,yt,vt,ut){for(vt=vt||{},ut=Tt.length;ut--;vt[Tt[ut]]=yt);return vt},a=[1,4],f=[1,13],p=[1,12],v=[1,15],m=[1,16],b=[1,20],E=[1,19],C=[6,7,8],A=[1,26],N=[1,24],F=[1,25],j=[6,7,11],R=[1,6,13,15,16,19,22],H=[1,33],Y=[1,34],rt=[1,6,7,11,13,15,16,19,22],J={trace:function(){},yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,MINDMAP:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,ICON:15,CLASS:16,nodeWithId:17,nodeWithoutId:18,NODE_DSTART:19,NODE_DESCR:20,NODE_DEND:21,NODE_ID:22,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"MINDMAP",11:"EOF",13:"SPACELIST",15:"ICON",16:"CLASS",19:"NODE_DSTART",20:"NODE_DESCR",21:"NODE_DEND",22:"NODE_ID"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[18,3],[17,1],[17,4]],performAction:function(yt,vt,ut,xt,st,Et,gt){var pt=Et.length-1;switch(st){case 6:case 7:return xt;case 8:xt.getLogger().trace("Stop NL ");break;case 9:xt.getLogger().trace("Stop EOF ");break;case 11:xt.getLogger().trace("Stop NL2 ");break;case 12:xt.getLogger().trace("Stop EOF2 ");break;case 15:xt.getLogger().info("Node: ",Et[pt].id),xt.addNode(Et[pt-1].length,Et[pt].id,Et[pt].descr,Et[pt].type);break;case 16:xt.getLogger().trace("Icon: ",Et[pt]),xt.decorateNode({icon:Et[pt]});break;case 17:case 21:xt.decorateNode({class:Et[pt]});break;case 18:xt.getLogger().trace("SPACELIST");break;case 19:xt.getLogger().trace("Node: ",Et[pt].id),xt.addNode(0,Et[pt].id,Et[pt].descr,Et[pt].type);break;case 20:xt.decorateNode({icon:Et[pt]});break;case 25:xt.getLogger().trace("node found ..",Et[pt-2]),this.$={id:Et[pt-1],descr:Et[pt-1],type:xt.getType(Et[pt-2],Et[pt])};break;case 26:this.$={id:Et[pt],descr:Et[pt],type:xt.nodeType.DEFAULT};break;case 27:xt.getLogger().trace("node found ..",Et[pt-3]),this.$={id:Et[pt-3],descr:Et[pt-1],type:xt.getType(Et[pt-2],Et[pt])};break}},table:[{3:1,4:2,5:3,6:[1,5],8:a},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:a},{6:f,7:[1,10],9:9,12:11,13:p,14:14,15:v,16:m,17:17,18:18,19:b,22:E},i(C,[2,3]),{1:[2,2]},i(C,[2,4]),i(C,[2,5]),{1:[2,6],6:f,12:21,13:p,14:14,15:v,16:m,17:17,18:18,19:b,22:E},{6:f,9:22,12:11,13:p,14:14,15:v,16:m,17:17,18:18,19:b,22:E},{6:A,7:N,10:23,11:F},i(j,[2,22],{17:17,18:18,14:27,15:[1,28],16:[1,29],19:b,22:E}),i(j,[2,18]),i(j,[2,19]),i(j,[2,20]),i(j,[2,21]),i(j,[2,23]),i(j,[2,24]),i(j,[2,26],{19:[1,30]}),{20:[1,31]},{6:A,7:N,10:32,11:F},{1:[2,7],6:f,12:21,13:p,14:14,15:v,16:m,17:17,18:18,19:b,22:E},i(R,[2,14],{7:H,11:Y}),i(rt,[2,8]),i(rt,[2,9]),i(rt,[2,10]),i(j,[2,15]),i(j,[2,16]),i(j,[2,17]),{20:[1,35]},{21:[1,36]},i(R,[2,13],{7:H,11:Y}),i(rt,[2,11]),i(rt,[2,12]),{21:[1,37]},i(j,[2,25]),i(j,[2,27])],defaultActions:{2:[2,1],6:[2,2]},parseError:function(yt,vt){if(vt.recoverable)this.trace(yt);else{var ut=new Error(yt);throw ut.hash=vt,ut}},parse:function(yt){var vt=this,ut=[0],xt=[],st=[null],Et=[],gt=this.table,pt="",Ct=0,nt=0,Nt=2,dt=1,Ft=Et.slice.call(arguments,1),X=Object.create(this.lexer),Bt={yy:{}};for(var Rt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Rt)&&(Bt.yy[Rt]=this.yy[Rt]);X.setInput(yt,Bt.yy),Bt.yy.lexer=X,Bt.yy.parser=this,typeof X.yylloc>"u"&&(X.yylloc={});var mt=X.yylloc;Et.push(mt);var Ot=X.options&&X.options.ranges;typeof Bt.yy.parseError=="function"?this.parseError=Bt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Gt(){var he;return he=xt.pop()||X.lex()||dt,typeof he!="number"&&(he instanceof Array&&(xt=he,he=xt.pop()),he=vt.symbols_[he]||he),he}for(var Ve,Cn,xe,Kn,Se={},ee,_e,qe,ce;;){if(Cn=ut[ut.length-1],this.defaultActions[Cn]?xe=this.defaultActions[Cn]:((Ve===null||typeof Ve>"u")&&(Ve=Gt()),xe=gt[Cn]&&gt[Cn][Ve]),typeof xe>"u"||!xe.length||!xe[0]){var Ce="";ce=[];for(ee in gt[Cn])this.terminals_[ee]&&ee>Nt&&ce.push("'"+this.terminals_[ee]+"'");X.showPosition?Ce="Parse error on line "+(Ct+1)+`:
`+X.showPosition()+`
Expecting `+ce.join(", ")+", got '"+(this.terminals_[Ve]||Ve)+"'":Ce="Parse error on line "+(Ct+1)+": Unexpected "+(Ve==dt?"end of input":"'"+(this.terminals_[Ve]||Ve)+"'"),this.parseError(Ce,{text:X.match,token:this.terminals_[Ve]||Ve,line:X.yylineno,loc:mt,expected:ce})}if(xe[0]instanceof Array&&xe.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Cn+", token: "+Ve);switch(xe[0]){case 1:ut.push(Ve),st.push(X.yytext),Et.push(X.yylloc),ut.push(xe[1]),Ve=null,nt=X.yyleng,pt=X.yytext,Ct=X.yylineno,mt=X.yylloc;break;case 2:if(_e=this.productions_[xe[1]][1],Se.$=st[st.length-_e],Se._$={first_line:Et[Et.length-(_e||1)].first_line,last_line:Et[Et.length-1].last_line,first_column:Et[Et.length-(_e||1)].first_column,last_column:Et[Et.length-1].last_column},Ot&&(Se._$.range=[Et[Et.length-(_e||1)].range[0],Et[Et.length-1].range[1]]),Kn=this.performAction.apply(Se,[pt,nt,Ct,Bt.yy,xe[1],st,Et].concat(Ft)),typeof Kn<"u")return Kn;_e&&(ut=ut.slice(0,-1*_e*2),st=st.slice(0,-1*_e),Et=Et.slice(0,-1*_e)),ut.push(this.productions_[xe[1]][0]),st.push(Se.$),Et.push(Se._$),qe=gt[ut[ut.length-2]][ut[ut.length-1]],ut.push(qe);break;case 3:return!0}}return!0}},it=function(){var Tt={EOF:1,parseError:function(vt,ut){if(this.yy.parser)this.yy.parser.parseError(vt,ut);else throw new Error(vt)},setInput:function(yt,vt){return this.yy=vt||this.yy||{},this._input=yt,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},input:function(){var yt=this._input[0];this.yytext+=yt,this.yyleng++,this.offset++,this.match+=yt,this.matched+=yt;var vt=yt.match(/(?:\r\n?|\n).*/g);return vt?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),yt},unput:function(yt){var vt=yt.length,ut=yt.split(/(?:\r\n?|\n)/g);this._input=yt+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-vt),this.offset-=vt;var xt=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),ut.length-1&&(this.yylineno-=ut.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:ut?(ut.length===xt.length?this.yylloc.first_column:0)+xt[xt.length-ut.length].length-ut[0].length:this.yylloc.first_column-vt},this.options.ranges&&(this.yylloc.range=[st[0],st[0]+this.yyleng-vt]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject: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},less:function(yt){this.unput(this.match.slice(yt))},pastInput:function(){var yt=this.matched.substr(0,this.matched.length-this.match.length);return(yt.length>20?"...":"")+yt.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var yt=this.match;return yt.length<20&&(yt+=this._input.substr(0,20-yt.length)),(yt.substr(0,20)+(yt.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var yt=this.pastInput(),vt=new Array(yt.length+1).join("-");return yt+this.upcomingInput()+`
`+vt+"^"},test_match:function(yt,vt){var ut,xt,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))),xt=yt[0].match(/(?:\r\n?|\n).*/g),xt&&(this.yylineno+=xt.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:xt?xt[xt.length-1].length-xt[xt.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+yt[0].length},this.yytext+=yt[0],this.match+=yt[0],this.matches=yt,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(yt[0].length),this.matched+=yt[0],ut=this.performAction.call(this,this.yy,this,vt,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),ut)return ut;if(this._backtrack){for(var Et in st)this[Et]=st[Et];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var yt,vt,ut,xt;this._more||(this.yytext="",this.match="");for(var st=this._currentRules(),Et=0;Et<st.length;Et++)if(ut=this._input.match(this.rules[st[Et]]),ut&&(!vt||ut[0].length>vt[0].length)){if(vt=ut,xt=Et,this.options.backtrack_lexer){if(yt=this.test_match(ut,st[Et]),yt!==!1)return yt;if(this._backtrack){vt=!1;continue}else return!1}else if(!this.options.flex)break}return vt?(yt=this.test_match(vt,st[xt]),yt!==!1?yt:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var vt=this.next();return vt||this.lex()},begin:function(vt){this.conditionStack.push(vt)},popState:function(){var vt=this.conditionStack.length-1;return vt>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(vt){return vt=this.conditionStack.length-1-Math.abs(vt||0),vt>=0?this.conditionStack[vt]:"INITIAL"},pushState:function(vt){this.begin(vt)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(vt,ut,xt,st){switch(xt){case 0:return vt.getLogger().trace("Found comment",ut.yytext),6;case 1:return 8;case 2:this.begin("CLASS");break;case 3:return this.popState(),16;case 4:this.popState();break;case 5:vt.getLogger().trace("Begin icon"),this.begin("ICON");break;case 6:return vt.getLogger().trace("SPACELINE"),6;case 7:return 7;case 8:return 15;case 9:vt.getLogger().trace("end icon"),this.popState();break;case 10:return vt.getLogger().trace("Exploding node"),this.begin("NODE"),19;case 11:return vt.getLogger().trace("Cloud"),this.begin("NODE"),19;case 12:return vt.getLogger().trace("Explosion Bang"),this.begin("NODE"),19;case 13:return vt.getLogger().trace("Cloud Bang"),this.begin("NODE"),19;case 14:return this.begin("NODE"),19;case 15:return this.begin("NODE"),19;case 16:return this.begin("NODE"),19;case 17:return this.begin("NODE"),19;case 18:return 13;case 19:return 22;case 20:return 11;case 21:this.begin("NSTR2");break;case 22:return"NODE_DESCR";case 23:this.popState();break;case 24:vt.getLogger().trace("Starting NSTR"),this.begin("NSTR");break;case 25:return vt.getLogger().trace("description:",ut.yytext),"NODE_DESCR";case 26:this.popState();break;case 27:return this.popState(),vt.getLogger().trace("node end ))"),"NODE_DEND";case 28:return this.popState(),vt.getLogger().trace("node end )"),"NODE_DEND";case 29:return this.popState(),vt.getLogger().trace("node end ...",ut.yytext),"NODE_DEND";case 30:return this.popState(),vt.getLogger().trace("node end (("),"NODE_DEND";case 31:return this.popState(),vt.getLogger().trace("node end (-"),"NODE_DEND";case 32:return this.popState(),vt.getLogger().trace("node end (-"),"NODE_DEND";case 33:return this.popState(),vt.getLogger().trace("node end (("),"NODE_DEND";case 34:return this.popState(),vt.getLogger().trace("node end (("),"NODE_DEND";case 35:return vt.getLogger().trace("Long description:",ut.yytext),20;case 36:return vt.getLogger().trace("Long description:",ut.yytext),20}},rules:[/^(?:\s*%%.*)/i,/^(?:mindmap\b)/i,/^(?::::)/i,/^(?:.+)/i,/^(?:\n)/i,/^(?:::icon\()/i,/^(?:[\s]+[\n])/i,/^(?:[\n]+)/i,/^(?:[^\)]+)/i,/^(?:\))/i,/^(?:-\))/i,/^(?:\(-)/i,/^(?:\)\))/i,/^(?:\))/i,/^(?:\(\()/i,/^(?:\{\{)/i,/^(?:\()/i,/^(?:\[)/i,/^(?:[\s]+)/i,/^(?:[^\(\[\n\)\{\}]+)/i,/^(?:$)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:[^"]+)/i,/^(?:["])/i,/^(?:[\)]\))/i,/^(?:[\)])/i,/^(?:[\]])/i,/^(?:\}\})/i,/^(?:\(-)/i,/^(?:-\))/i,/^(?:\(\()/i,/^(?:\()/i,/^(?:[^\)\]\(\}]+)/i,/^(?:.+(?!\(\())/i],conditions:{CLASS:{rules:[3,4],inclusive:!1},ICON:{rules:[8,9],inclusive:!1},NSTR2:{rules:[22,23],inclusive:!1},NSTR:{rules:[25,26],inclusive:!1},NODE:{rules:[21,24,27,28,29,30,31,32,33,34,35,36],inclusive:!1},INITIAL:{rules:[0,1,2,5,6,7,10,11,12,13,14,15,16,17,18,19,20],inclusive:!0}}};return Tt}();J.lexer=it;function ht(){this.yy={}}return ht.prototype=J,J.Parser=ht,new ht}();jgt.parser=jgt;const BUe=jgt,YN=i=>cg(i,Me());let av=[],Bjt=0,$gt={};const RUe=()=>{av=[],Bjt=0,$gt={}},jUe=function(i){for(let a=av.length-1;a>=0;a--)if(av[a].level<i)return av[a];return null},$Ue=()=>av.length>0?av[0]:null,zUe=(i,a,f,p)=>{Vt.info("addNode",i,a,f,p);const v=Me(),m={id:Bjt++,nodeId:YN(a),level:i,descr:YN(f),type:p,children:[],width:Me().mindmap.maxNodeWidth};switch(m.type){case nl.ROUNDED_RECT:m.padding=2*v.mindmap.padding;break;case nl.RECT:
2023-05-23 13:17:23 +00:00
a${b},${b} 1 0,1 ${f*.4},${-1*f*.1}
2023-05-24 18:25:13 +00:00
a${m},${m} 1 0,1 ${f*.35},${1*f*.2}
2023-05-23 13:17:23 +00:00
2023-05-24 18:25:13 +00:00
a${v},${v} 1 0,1 ${f*.15},${1*p*.35}
a${E},${E} 1 0,1 ${-1*f*.15},${1*p*.65}
2023-05-23 13:17:23 +00:00
2023-05-24 18:25:13 +00:00
a${m},${v} 1 0,1 ${-1*f*.25},${f*.15}
a${b},${b} 1 0,1 ${-1*f*.5},0
a${v},${v} 1 0,1 ${-1*f*.25},${-1*f*.15}
2023-05-23 13:17:23 +00:00
2023-05-24 18:25:13 +00:00
a${v},${v} 1 0,1 ${-1*f*.1},${-1*p*.35}
a${E},${E} 1 0,1 ${f*.1},${-1*p*.65}
2023-05-23 13:17:23 +00:00
H0 V0 Z`)},QUe=function(i,a){const f=a.width,p=a.height,v=.15*f;i.append("path").attr("id","node-"+a.id).attr("class","node-bkg node-"+SE(a.type)).attr("d",`M0 0 a${v},${v} 1 0,0 ${f*.25},${-1*p*.1}
2023-05-24 18:25:13 +00:00
a${v},${v} 1 0,0 ${f*.25},0
a${v},${v} 1 0,0 ${f*.25},0
a${v},${v} 1 0,0 ${f*.25},${1*p*.1}
2023-05-23 13:17:23 +00:00
2023-05-24 18:25:13 +00:00
a${v},${v} 1 0,0 ${f*.15},${1*p*.33}
a${v*.8},${v*.8} 1 0,0 0,${1*p*.34}
a${v},${v} 1 0,0 ${-1*f*.15},${1*p*.33}
2023-05-23 13:17:23 +00:00
2023-05-24 18:25:13 +00:00
a${v},${v} 1 0,0 ${-1*f*.25},${p*.15}
a${v},${v} 1 0,0 ${-1*f*.25},0
a${v},${v} 1 0,0 ${-1*f*.25},0
a${v},${v} 1 0,0 ${-1*f*.25},${-1*p*.15}
2023-05-23 13:17:23 +00:00
2023-05-24 18:25:13 +00:00
a${v},${v} 1 0,0 ${-1*f*.1},${-1*p*.33}
a${v*.8},${v*.8} 1 0,0 0,${-1*p*.34}
a${v},${v} 1 0,0 ${f*.1},${-1*p*.33}
2023-05-23 13:17:23 +00:00
H0 V0 Z`)},ZUe=function(i,a){i.append("circle").attr("id","node-"+a.id).attr("class","node-bkg node-"+SE(a.type)).attr("r",a.width/2)};function JUe(i,a,f,p,v){return i.insert("polygon",":first-child").attr("points",p.map(function(m){return m.x+","+m.y}).join(" ")).attr("transform","translate("+(v.width-a)/2+", "+f+")")}const tWe=function(i,a){const f=a.height,v=f/4,m=a.width-a.padding+2*v,b=[{x:v,y:0},{x:m-v,y:0},{x:m,y:-f/2},{x:m-v,y:-f},{x:v,y:-f},{x:0,y:-f/2}];JUe(i,m,f,b,a)},eWe=function(i,a){i.append("rect").attr("id","node-"+a.id).attr("class","node-bkg node-"+SE(a.type)).attr("height",a.height).attr("rx",a.padding).attr("ry",a.padding).attr("width",a.width)},zjt={drawNode:function(i,a,f,p){const v=p.htmlLabels,m=f%($jt-1),b=i.append("g");a.section=m;let E="section-"+m;m<0&&(E+=" section-root"),b.attr("class",(a.class?a.class+" ":"")+"mindmap-node "+E);const C=b.append("g"),A=b.append("g"),N=a.descr.replace(/(<br\/*>)/g,`
`);vK(A,N,{useHtmlLabels:v,width:a.width,classes:"mindmap-node-label"}),v||A.attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle");const F=A.node().getBBox(),j=p.fontSize.replace?p.fontSize.replace("px",""):p.fontSize;if(a.height=F.height+j*1.1*.5+a.padding,a.width=F.width+2*a.padding,a.icon)if(a.type===nl.CIRCLE)a.height+=50,a.width+=50,b.append("foreignObject").attr("height","50px").attr("width",a.width).attr("style","text-align: center;").append("div").attr("class","icon-container").append("i").attr("class","node-icon-"+m+" "+a.icon),A.attr("transform","translate("+a.width/2+", "+(a.height/2-1.5*a.padding)+")");else{a.width+=50;const R=a.height;a.height=Math.max(R,60);const H=Math.abs(a.height-R);b.append("foreignObject").attr("width","60px").attr("height",a.height).attr("style","text-align: center;margin-top:"+H/2+"px;").append("div").attr("class","icon-container").append("i").attr("class","node-icon-"+m+" "+a.icon),A.attr("transform","translate("+(25+a.width/2)+", "+(H/2+a.padding/2)+")")}else if(v){const R=(a.width-F.width)/2,H=(a.height-F.height)/2;A.attr("transform","translate("+R+", "+H+")")}else{const R=a.width/2,H=a.padding/2;A.attr("transform","translate("+R+", "+H+")")}switch(a.type){case nl.DEFAULT:KUe(C,a,m);break;case nl.ROUNDED_RECT:eWe(C,a);break;case nl.RECT:YUe(C,a);break;case nl.CIRCLE:C.attr("transform","translate("+a.width/2+", "+ +a.height/2+")"),ZUe(C,a);break;case nl.CLOUD:XUe(C,a);break;case nl.BANG:QUe(C,a);break;case nl.HEXAGON:tWe(C,a);break}return Rjt(a.id,b),a.height},positionNode:function(i){const a=zgt(i.id),f=i.x||0,p=i.y||0;a.attr("transform","translate("+f+","+p+")")},drawEdge:function(a,f,p,v,m){const b=m%($jt-1),E=p.x+p.width/2,C=p.y+p.height/2,A=f.x+f.width/2,N=f.y+f.height/2,F=A>E?E+Math.abs(E-A)/2:E-Math.abs(E-A)/2,j=N>C?C+Math.abs(C-N)/2:C-Math.abs(C-N)/2,R=A>E?Math.abs(E-F)/2+E:-Math.abs(E-F)/2+E,H=N>C?Math.abs(C-j)/2+C:-Math.abs(C-j)/2+C;a.append("path").attr("d",p.direction==="TB"||p.direction==="BT"?`M${E},${C} Q${E},${H} ${F},${j} T${A},${N}`:`M${E},${C} Q${R},${C} ${F},${j} T${A},${N}`).attr("class","edge section-edge-"+b+" edge-depth-"+v)}};var qjt={exports:{}};(function(i,a){(function(f,p){i.exports=p()})(v0,function(){function f(y){return f=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(g){return typeof g}:function(g){return g&&typeof Symbol=="function"&&g.constructor===Symbol&&g!==Symbol.prototype?"symbol":typeof g},f(y)}function p(y,g){if(!(y instanceof g))throw new TypeError("Cannot call a class as a function")}function v(y,g){for(var x=0;x<g.length;x++){var T=g[x];T.enumerable=T.enumerable||!1,T.configurable=!0,"value"in T&&(T.writable=!0),Object.defineProperty(y,T.key,T)}}function m(y,g,x){return g&&v(y.prototype,g),x&&v(y,x),Object.defineProperty(y,"prototype",{writable:!1}),y}function b(y,g,x){return g in y?Object.defineProperty(y,g,{value:x,enumerable:!0,configurable:!0,writable:!0}):y[g]=x,y}function E(y,g){return C(y)||A(y,g)||N(y,g)||j()}function C(y){if(Array.isArray(y))return y}function A(y,g){var x=y==null?null:typeof Symbol<"u"&&y[Symbol.iterator]||y["@@iterator"];if(x!=null){var T=[],L=!0,I=!1,O,$;try{for(x=x.call(y);!(L=(O=x.next()).done)&&(T.push(O.value),!(g&&T.length===g));L=!0);}catch(z){I=!0,$=z}finally{try{!L&&x.return!=null&&x.return()}finally{if(I)throw $}}return T}}function N(y,g){if(y){if(typeof y=="string")return F(y,g);var x=Object.prototype.toString.call(y).slice(8,-1);if(x==="Object"&&y.constructor&&(x=y.constructor.name),x==="Map"||x==="Set")return Array.from(y);if(x==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(x))return F(y,g)}}function F(y,g){(g==null||g>y.length)&&(g=y.length);for(var x=0,T=new Array(g);x<g;x++)T[x]=y[x];return T}function j(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var R=typeof window>"u"?null:window,H=R?R.navigator:null;R&&R.document;var Y=f(""),rt=f({}),J=f(function(){}),it=typeof HTMLElement>"u"?"undefined":f(HTMLElement),ht=function(g){return g&&g.instanceString&&yt(g.instanceString)?g.instanceString():null},Tt=function(g){return g!=null&&f(g)==Y},yt=function(g){return g!=null&&f(g)===J},vt=function(g){return!pt(g)&&(Array.isArray?Array.isArray(g):g!=null&&g instanceof Array)},ut=function(g){return g!=null&&f(g)===rt&&!vt(g)&&g.constructor===Object},xt=function(g){return g!=null&&f(g)===rt},st=function(g){return g!=null&&f(g)===f(1)&&!isNaN(g)},Et=function(g){return st(g)&&Math.floor(g)===g},gt=function(g){if(it!=="undefined")return g!=null&&g instanceof HTMLElement},pt=function(g){return Ct(g)||nt(g)},Ct=function(g){return ht(g)==="collection"&&g._private.single},nt=function(g){return ht(g)==="collection"&&!g._private.single},Nt=function(g){return ht(g)==="core"},dt=function(g){return ht(g)==="stylesheet"},Ft=function(g){return ht(g)==="event"},X=function(g){return g==null?!0:!!(g===""||g.match(/^\s+$/))},Bt=function(g){return typeof HTMLElement>"u"?!1:g instanceof HTMLElement},Rt=function(g){return ut(g)&&st(g.x1)&&st(g.x2)&&st(g.y1)&&st(g.y2)},mt=function(g){return xt(g)&&yt(g.then)},Ot=function(){return H&&H.userAgent.match(/msie|trident|edge/i)},Gt=function(g,x){x||(x=function(){if(arguments.length===1)return arguments[0];if(arguments.length===0)return"undefined";for(var I=[],O=0;O<arguments.length;O++)I.push(arguments[O]);return I.join("$")});var T=function L(){var I=this,O=arguments,$,z=x.apply(I,O),S=L.cache;return($=S[z])||($=S[z]=g.apply(I,O)),$};return T.cache={},T},Ve=Gt(function(y){return y.replace(/([A-Z])/g,function(g){return"-"+g.toLowerCase()})}),Cn=Gt(function(y){return y.replace(/(-\w)/g,function(g){return g[1].toUpperCase()})}),xe=Gt(function(y,g){return y+g[0].toUpperCase()+g.substring(1)},function(y,g){return y+"$"+g}),Kn=function(g){return X(g)?g:g.charAt(0).toUpperCase()+g.substring(1)},Se="(?:[-+]?(?:(?:\\d+|\\d*\\.\\d+)(?:[Ee][+-]?\\d+)?))",ee="rgb[a]?\\(("+Se+"[%]?)\\s*,\\s*("+Se+"[%]?)\\s*,\\s*("+Se+"[%]?)(?:\\s*,\\s*("+Se+"))?\\)",_e="rgb[a]?\\((?:"+Se+"[%]?)\\s*,\\s*(?:"+Se+"[%]?)\\s*,\\s*(?:"+Se+"[%]?)(?:\\s*,\\s*(?:"+Se+"))?\\)",qe="hsl[a]?\\(("+Se+")\\s*,\\s*("+Se+"[%])\\s*,\\s*("+Se+"[%])(?:\\s*,\\s*("+Se+"))?\\)",ce="hsl[a]?\\((?:"+Se+")\\s*,\\s*(?:"+Se+"[%])\\s*,\\s*(?:"+Se+"[%])(?:\\s*,\\s*(?:"+Se+"))?\\)",Ce="\\#[0-9a-fA-F]{3}",he="\\#[0-9a-fA-F]{6}",Re=function(g,x){return g<x?-1:g>x?1:0},se=function(g,x){return-1*Re(g,x)},Pe=Object.assign!=null?Object.assign.bind(Object):function(y){for(var g=arguments,x=1;x<g.length;x++){var T=g[x];if(T!=null)for(var L=Object.keys(T),I=0;I<L.length;I++){var O=L[I];y[O]=T[O]}}return y},Qt=function(g){if(!(!(g.length===4||g.length===7)||g[0]!=="#")){var x=g.length===4,T,L,I,O=16;return x?(T=parseInt(g[1]+g[1],O),L=parseInt(g[2]+g[2],O),I=parseInt(g[3]+g[3],O)):(T=parseInt(g[1]+g[2],O),L=parseInt(g[3]+g[4],O),I=parseInt(g[5]+g[6],O)),[T,L,I]}},vr=function(g){var x,T,L,I,O,$,z,S;function V(lt,ft,Lt){return Lt<0&&(Lt+=1),Lt>1&&(Lt-=1),Lt<1/6?lt+(ft-lt)*6*Lt:Lt<1/2?ft:Lt<2/3?lt+(ft-lt)*(2/3-Lt)*6:lt}var U=new RegExp("^"+qe+"$").exec(g);if(U){if(T=parseInt(U[1]),T<0?T=(360- -1*T%360)%360:T>360&&(T=T%360),T/=360,L=parseFloat(U[2]),L<0||L>100||(L=L/100,I=parseFloat(U[3]),I<0||I>100)||(I=I/100,O=U[4],O!==void 0&&(O=parseFloat(O),O<0||O>1)))return;if(L===0)$=z=S=Math.round(I*255);else{var tt=I<.5?I*(1+L):I+L-I*L,at=2*I-tt;$=Math.round(255*V(at,tt,T+1/3)),z=Math.round(255*V(at,tt,T)),S=Math.round(255*V(at,tt,T-1/3))}x=[$,z,S,O]}return x},$t=function(g){var x,T=new RegExp("^"+ee+"$").exec(g);if(T){x=[];for(var L=[],I=1;I<=3;I++){var O=T[I];if(O[O.length-1]==="%"&&(L[I]=!0),O=parseFloat(O),L[I]&&(O=O/100*255),O<0||O>255)return;x.push(Math.floor(O))}var $=L[1]||L[2]||L[3],z=L[1]&&L[2]&&L[3];if($&&!z)return;var S=T[4];if(S!==void 0){if(S=parseFloat(S),S<0||S>1)return;x.push(S)}}return x},ur=function(g){return rr[g.toLowerCase()]},le=fu
2023-05-23 13:17:23 +00:00
Embeddable Minimum Strictly-Compliant Promises/A+ 1.1.1 Thenable
Copyright (c) 2013-2014 Ralf S. Engelschall (http://engelschall.com)
Licensed under The MIT License (http://opensource.org/licenses/MIT)
*/var CF=0,SF=1,AF=2,lv=function y(g){if(!(this instanceof y))return new y(g);this.id="Thenable/1.0.7",this.state=CF,this.fulfillValue=void 0,this.rejectReason=void 0,this.onFulfilled=[],this.onRejected=[],this.proxy={then:this.then.bind(this)},typeof g=="function"&&g.call(this,this.fulfill.bind(this),this.reject.bind(this))};lv.prototype={fulfill:function(g){return LF(this,SF,"fulfillValue",g)},reject:function(g){return LF(this,AF,"rejectReason",g)},then:function(g,x){var T=this,L=new lv;return T.onFulfilled.push(IF(g,L,"fulfill")),T.onRejected.push(IF(x,L,"reject")),MF(T),L.proxy}};var LF=function(g,x,T,L){return g.state===CF&&(g.state=x,g[T]=L,MF(g)),g},MF=function(g){g.state===SF?DF(g,"onFulfilled",g.fulfillValue):g.state===AF&&DF(g,"onRejected",g.rejectReason)},DF=function(g,x,T){if(g[x].length!==0){var L=g[x];g[x]=[];var I=function(){for(var $=0;$<L.length;$++)L[$](T)};typeof setImmediate=="function"?setImmediate(I):setTimeout(I,0)}},IF=function(g,x,T){return function(L){if(typeof g!="function")x[T].call(x,L);else{var I;try{I=g(L)}catch(O){x.reject(O);return}LX(x,I)}}},LX=function y(g,x){if(g===x||g.proxy===x){g.reject(new TypeError("cannot resolve promise with itself"));return}var T;if(f(x)==="object"&&x!==null||typeof x=="function")try{T=x.then}catch(I){g.reject(I);return}if(typeof T=="function"){var L=!1;try{T.call(x,function(I){L||(L=!0,I===x?g.reject(new TypeError("circular thenable chain")):y(g,I))},function(I){L||(L=!0,g.reject(I))})}catch(I){L||g.reject(I)}return}g.fulfill(x)};lv.all=function(y){return new lv(function(g,x){for(var T=new Array(y.length),L=0,I=function(z,S){T[z]=S,L++,L===y.length&&g(T)},O=0;O<y.length;O++)(function($){var z=y[$],S=z!=null&&z.then!=null;if(S)z.then(function(U){I($,U)},function(U){x(U)});else{var V=z;I($,V)}})(O)})},lv.resolve=function(y){return new lv(function(g,x){g(y)})},lv.reject=function(y){return new lv(function(g,x){x(y)})};var Y5=typeof Promise<"u"?Promise:lv,qE=function(g,x,T){var L=Nt(g),I=!L,O=this._private=Pe({duration:1e3},x,T);if(O.target=g,O.style=O.style||O.css,O.started=!1,O.playing=!1,O.hooked=!1,O.applying=!1,O.progress=0,O.completes=[],O.frames=[],O.complete&&yt(O.complete)&&O.completes.push(O.complete),I){var $=g.position();O.startPosition=O.startPosition||{x:$.x,y:$.y},O.startStyle=O.startStyle||g.cy().style().getAnimationStartStyle(g,O.style)}if(L){var z=g.pan();O.startPan={x:z.x,y:z.y},O.startZoom=g.zoom()}this.length=1,this[0]=this},S3=qE.prototype;Pe(S3,{instanceString:function(){return"animation"},hook:function(){var g=this._private;if(!g.hooked){var x,T=g.target._private.animation;g.queue?x=T.queue:x=T.current,x.push(this),pt(g.target)&&g.target.cy().addToAnimationPool(g.target),g.hooked=!0}return this},play:function(){var g=this._private;return g.progress===1&&(g.progress=0),g.playing=!0,g.started=!1,g.stopped=!1,this.hook(),this},playing:function(){return this._private.playing},apply:function(){var g=this._private;return g.applying=!0,g.started=!1,g.stopped=!1,this.hook(),this},applying:function(){return this._private.applying},pause:function(){var g=this._private;return g.playing=!1,g.started=!1,this},stop:function(){var g=this._private;return g.playing=!1,g.started=!1,g.stopped=!0,this},rewind:function(){return this.progress(0)},fastforward:function(){return this.progress(1)},time:function(g){var x=this._private;return g===void 0?x.progress*x.duration:this.progress(g/x.duration)},progress:function(g){var x=this._private,T=x.playing;return g===void 0?x.progress:(T&&this.pause(),x.progress=g,x.started=!1,T&&this.play(),this)},completed:function(){return this._private.progress===1},reverse:function(){var g=this._private,x=g.playing;x&&this.pause(),g.progress=1-g.progress,g.started=!1;var T=function(S,V){var U=g[S];U!=null&&(g[S]=g[V],g[V]=U)};if(T("zoom","startZoom"),T("pan","startPan"),T("position","startPosition"),g.style)for(var L=0;L<g.style.length;L++){var I=g.style[L],O=I.name,$=g.startStyle[O];g.startStyle[O]=I,g.style[L]=$}return x&&this.play(),this},promise:function(g){var x=this._private,T;switch(g){case"frame":T=x.frames;break;default:c
2023-05-23 13:17:23 +00:00
Event object based on jQuery events, MIT license
https://jquery.org/license/
https://tldrlegal.com/license/mit-license
https://github.com/jquery/jquery/blob/master/src/event.js
*/var uB=function(g,x){this.recycle(g,x)};function Ik(){return!1}function ZE(){return!0}uB.prototype={instanceString:function(){return"event"},recycle:function(g,x){if(this.isImmediatePropagationStopped=this.isPropagationStopped=this.isDefaultPrevented=Ik,g!=null&&g.preventDefault?(this.type=g.type,this.isDefaultPrevented=g.defaultPrevented?ZE:Ik):g!=null&&g.type?x=g:this.type=g,x!=null&&(this.originalEvent=x.originalEvent,this.type=x.type!=null?x.type:this.type,this.cy=x.cy,this.target=x.target,this.position=x.position,this.renderedPosition=x.renderedPosition,this.namespace=x.namespace,this.layout=x.layout),this.cy!=null&&this.position!=null&&this.renderedPosition==null){var T=this.position,L=this.cy.zoom(),I=this.cy.pan();this.renderedPosition={x:T.x*L+I.x,y:T.y*L+I.y}}this.timeStamp=g&&g.timeStamp||Date.now()},preventDefault:function(){this.isDefaultPrevented=ZE;var g=this.originalEvent;g&&g.preventDefault&&g.preventDefault()},stopPropagation:function(){this.isPropagationStopped=ZE;var g=this.originalEvent;g&&g.stopPropagation&&g.stopPropagation()},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=ZE,this.stopPropagation()},isDefaultPrevented:Ik,isPropagationStopped:Ik,isImmediatePropagationStopped:Ik};var lB=/^([^.]+)(\.(?:[^.]+))?$/,aJ=".*",hB={qualifierCompare:function(g,x){return g===x},eventMatches:function(){return!0},addEventFields:function(){},callbackContext:function(g){return g},beforeEmit:function(){},afterEmit:function(){},bubble:function(){return!1},parent:function(){return null},context:null},fB=Object.keys(hB),oJ={};function JE(){for(var y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:oJ,g=arguments.length>1?arguments[1]:void 0,x=0;x<fB.length;x++){var T=fB[x];this[T]=y[T]||hB[T]}this.context=g||this.context,this.listeners=[],this.emitting=0}var km=JE.prototype,dB=function(g,x,T,L,I,O,$){yt(L)&&(I=L,L=null),$&&(O==null?O=$:O=Pe({},O,$));for(var z=vt(T)?T:T.split(/\s+/),S=0;S<z.length;S++){var V=z[S];if(!X(V)){var U=V.match(lB);if(U){var tt=U[1],at=U[2]?U[2]:null,lt=x(g,V,tt,at,L,I,O);if(lt===!1)break}}}},gB=function(g,x){return g.addEventFields(g.context,x),new uB(x.type,x)},cJ=function(g,x,T){if(Ft(T)){x(g,T);return}else if(ut(T)){x(g,gB(g,T));return}for(var L=vt(T)?T:T.split(/\s+/),I=0;I<L.length;I++){var O=L[I];if(!X(O)){var $=O.match(lB);if($){var z=$[1],S=$[2]?$[2]:null,V=gB(g,{type:z,namespace:S,target:g.context});x(g,V)}}}};km.on=km.addListener=function(y,g,x,T,L){return dB(this,function(I,O,$,z,S,V,U){yt(V)&&I.listeners.push({event:O,callback:V,type:$,namespace:z,qualifier:S,conf:U})},y,g,x,T,L),this},km.one=function(y,g,x,T){return this.on(y,g,x,T,{one:!0})},km.removeListener=km.off=function(y,g,x,T){var L=this;this.emitting!==0&&(this.listeners=ZK(this.listeners));for(var I=this.listeners,O=function(S){var V=I[S];dB(L,function(U,tt,at,lt,ft,Lt){if((V.type===at||y==="*")&&(!lt&&V.namespace!==".*"||V.namespace===lt)&&(!ft||U.qualifierCompare(V.qualifier,ft))&&(!Lt||V.callback===Lt))return I.splice(S,1),!1},y,g,x,T)},$=I.length-1;$>=0;$--)O($);return this},km.removeAllListeners=function(){return this.removeListener("*")},km.emit=km.trigger=function(y,g,x){var T=this.listeners,L=T.length;return this.emitting++,vt(g)||(g=[g]),cJ(this,function(I,O){x!=null&&(T=[{event:O.event,type:O.type,namespace:O.namespace,callback:x}],L=T.length);for(var $=function(V){var U=T[V];if(U.type===O.type&&(!U.namespace||U.namespace===O.namespace||U.namespace===aJ)&&I.eventMatches(I.context,U,O)){var tt=[O];g!=null&&QN(tt,g),I.beforeEmit(I.context,U,O),U.conf&&U.conf.one&&(I.listeners=I.listeners.filter(function(ft){return ft!==U}));var at=I.callbackContext(I.context,U,O),lt=U.callback.apply(at,tt);I.afterEmit(I.context,U,O),lt===!1&&(O.stopPropagation(),O.preventDefault())}},z=0;z<L;z++)$(z);I.bubble(I.context)&&!O.isPropagationStopped()&&I.parent(I.context).emit(O,g)},y),this.emitting--,this};var uJ={qualifierCompare:function(g,x){return g==null||x==null?g==null&&x==null:g.sameText(x)},eventMatches:function(g,x,T){var L=x.qualifier;return L!=null?g!==T.target&&Ct(T.target)&&L.matc
`),U=y.pstyle("text-max-width").pfValue,tt=y.pstyle("text-overflow-wrap").value,at=tt==="anywhere",lt=[],ft=/[\s\u200b]+/,Lt=at?"":" ",kt=0;kt<V.length;kt++){var Dt=V[kt],It=this.calculateLabelDimensions(y,Dt),qt=It.width;if(at){var te=Dt.split("").join(S);Dt=te}if(qt>U){for(var Yt=Dt.split(ft),Ht="",ie=0;ie<Yt.length;ie++){var Wt=Yt[ie],be=Ht.length===0?Wt:Ht+Lt+Wt,we=this.calculateLabelDimensions(y,be),ae=we.width;ae<=U?Ht+=Wt+Lt:(Ht&&lt.push(Ht),Ht=Wt+Lt)}Ht.match(/^[\s\u200b]+$/)||lt.push(Ht)}else lt.push(Dt)}O("labelWrapCachedLines",lt),L=O("labelWrapCachedText",lt.join(`
`)),O("labelWrapKey",z)}else if($==="ellipsis"){var Ne=y.pstyle("text-max-width").pfValue,me="",gn="…",ze=!1;if(this.calculateLabelDimensions(y,L).width<Ne)return L;for(var Ge=0;Ge<L.length;Ge++){var xn=this.calculateLabelDimensions(y,me+L[Ge]+gn).width;if(xn>Ne)break;me+=L[Ge],Ge===L.length-1&&(ze=!0)}return ze||(me+=gn),me}return L},Tp.getLabelJustification=function(y){var g=y.pstyle("text-justification").strValue,x=y.pstyle("text-halign").strValue;if(g==="auto")if(y.isNode())switch(x){case"left":return"right";case"right":return"left";default:return"center"}else return"center";else return g},Tp.calculateLabelDimensions=function(y,g){var x=this,T=od(g,y._private.labelDimsKey),L=x.labelDimCache||(x.labelDimCache=[]),I=L[T];if(I!=null)return I;var O=0,$=y.pstyle("font-style").strValue,z=y.pstyle("font-size").pfValue,S=y.pstyle("font-family").strValue,V=y.pstyle("font-weight").strValue,U=this.labelCalcCanvas,tt=this.labelCalcCanvasContext;if(!U){U=this.labelCalcCanvas=document.createElement("canvas"),tt=this.labelCalcCanvasContext=U.getContext("2d");var at=U.style;at.position="absolute",at.left="-9999px",at.top="-9999px",at.zIndex="-1",at.visibility="hidden",at.pointerEvents="none"}tt.font="".concat($," ").concat(V," ").concat(z,"px ").concat(S);for(var lt=0,ft=0,Lt=g.split(`
`),kt=0;kt<Lt.length;kt++){var Dt=Lt[kt],It=tt.measureText(Dt),qt=Math.ceil(It.width),te=z;lt=Math.max(qt,lt),ft+=te}return lt+=O,ft+=O,L[T]={width:lt,height:ft}},Tp.calculateLabelAngle=function(y,g){var x=y._private,T=x.rscratch,L=y.isEdge(),I=g?g+"-":"",O=y.pstyle(I+"text-rotation"),$=O.strValue;return $==="none"?0:L&&$==="autorotate"?T.labelAutoAngle:$==="autorotate"?0:O.pfValue},Tp.calculateLabelAngles=function(y){var g=this,x=y.isEdge(),T=y._private,L=T.rscratch;L.labelAngle=g.calculateLabelAngle(y),x&&(L.sourceLabelAngle=g.calculateLabelAngle(y,"source"),L.targetLabelAngle=g.calculateLabelAngle(y,"target"))};var ch={},JL=28,GB=!1;ch.getNodeShape=function(y){var g=this,x=y.pstyle("shape").value;if(x==="cutrectangle"&&(y.width()<JL||y.height()<JL))return GB||(Ko("The `cutrectangle` node shape can not be used at small sizes so `rectangle` is used instead"),GB=!0),"rectangle";if(y.isParent())return x==="rectangle"||x==="roundrectangle"||x==="round-rectangle"||x==="cutrectangle"||x==="cut-rectangle"||x==="barrel"?x:"rectangle";if(x==="polygon"){var T=y.pstyle("shape-polygon-points").value;return g.nodeShapes.makePolygon(T).name}return x};var jk={};jk.registerCalculationListeners=function(){var y=this.cy,g=y.collection(),x=this,T=function(O){var $=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(g.merge(O),$)for(var z=0;z<O.length;z++){var S=O[z],V=S._private,U=V.rstyle;U.clean=!1,U.cleanConnected=!1}};x.binder(y).on("bounds.* dirty.*",function(O){var $=O.target;T($)}).on("style.* background.*",function(O){var $=O.target;T($,!1)});var L=function(O){if(O){var $=x.onUpdateEleCalcsFns;g.cleanStyle();for(var z=0;z<g.length;z++){var S=g[z],V=S._private.rstyle;S.isNode()&&!V.cleanConnected&&(T(S.connectedEdges()),V.cleanConnected=!0)}if($)for(var U=0;U<$.length;U++){var tt=$[U];tt(O,g)}x.recalculateRenderedStyle(g),g=y.collection()}};x.flushRenderedStyleQueue=function(){L(!0)},x.beforeRender(L,x.beforeRenderPriorities.eleCalcs)},jk.onUpdateEleCalcs=function(y){var g=this.onUpdateEleCalcsFns=this.onUpdateEleCalcsFns||[];g.push(y)},jk.recalculateRenderedStyle=function(y,g){var x=function(qt){return qt._private.rstyle.cleanConnected},T=[],L=[];if(!this.destroyed){g===void 0&&(g=!0);for(var I=0;I<y.length;I++){var O=y[I],$=O._private,z=$.rstyle;O.isEdge()&&(!x(O.source())||!x(O.target()))&&(z.clean=!1),!(g&&z.clean||O.removed())&&O.pstyle("display").value!=="none"&&($.group==="nodes"?L.push(O):T.push(O),z.clean=!0)}for(var S=0;S<L.length;S++){var V=L[S],U=V._private,tt=U.rstyle,at=V.position();this.recalculateNodeLabelProjection(V),tt.nodeX=at.x,tt.nodeY=at.y,tt.nodeW=V.pstyle("width").pfValue,tt.nodeH=V.pstyle("height").pfValue}this.recalculateEdgeProjections(T);for(var lt=0;lt<T.length;lt++){var ft=T[lt],Lt=ft._private,kt=Lt.rstyle,Dt=Lt.rscratch;kt.srcX=Dt.arrowStartX,kt.srcY=Dt.arrowStartY,kt.tgtX=Dt.arrowEndX,kt.tgtY=Dt.arrowEndY,kt.midX=Dt.midX,kt.midY=Dt.midY,kt.labelAngle=Dt.labelAngle,kt.sourceLabelAngle=Dt.sourceLabelAngle,kt.targetLabelAngle=Dt.targetLabelAngle}}};var bT={};bT.updateCachedGrabbedEles=function(){var y=this.cachedZSortedEles;if(y){y.drag=[],y.nondrag=[];for(var g=[],x=0;x<y.length;x++){var T=y[x],L=T._private.rscratch;T.grabbed()&&!T.isParent()?g.push(T):L.inDragLayer?y.drag.push(T):y.nondrag.push(T)}for(var x=0;x<g.length;x++){var T=g[x];y.drag.push(T)}}},bT.invalidateCachedZSortedEles=function(){this.cachedZSortedEles=null},bT.getCachedZSortedEles=function(y){if(y||!this.cachedZSortedEles){var g=this.cy.mutableElements().toArray();g.sort(vB),g.interactive=g.filter(function(x){return x.interactive()}),this.cachedZSortedEles=g,this.updateCachedGrabbedEles()}else g=this.cachedZSortedEles;return g};var $k={};[M3,pT,hd,Rk,ZL,Tp,ch,jk,bT].forEach(function(y){Pe($k,y)});var UB={};UB.getCachedImage=function(y,g,x){var T=this,L=T.imageCache=T.imageCache||{},I=L[y];if(I)return I.image.complete||I.image.addEventListener("load",x),I.image;I=L[y]=L[y]||{};var O=I.image=new Image;O.addEventListener("load",x),O.addEventListener("error",function(){O.error=!0});var $="data:",z=y.substring(0,$.length).toLowe
`+i,p.parser);const m=Me().securityLevel;let b;m==="sandbox"&&(b=wr("#i"+a));const C=wr(m==="sandbox"?b.nodes()[0].contentDocument.body:"body").select("#"+a);C.append("g");const A=p.db.getMindmap(),N=C.append("g");N.attr("class","mindmap-edges");const F=C.append("g");F.attr("class","mindmap-nodes"),Wjt(F,A,-1,v);const j=await cWe(A,v);oWe(N,j),uWe(j),nE(void 0,C,v.mindmap.padding,v.mindmap.useMaxWidth)}},hWe=i=>{let a="";for(let f=0;f<i.THEME_COLOR_LIMIT;f++)i["lineColor"+f]=i["lineColor"+f]||i["cScaleInv"+f],J9(i["lineColor"+f])?i["lineColor"+f]=Is(i["lineColor"+f],20):i["lineColor"+f]=ta(i["lineColor"+f],20);for(let f=0;f<i.THEME_COLOR_LIMIT;f++){const p=""+(17-3*f);a+=`
2023-05-23 13:17:23 +00:00
.section-${f-1} rect, .section-${f-1} path, .section-${f-1} circle, .section-${f-1} polygon, .section-${f-1} path {
2023-05-24 18:25:13 +00:00
fill: ${i["cScale"+f]};
2023-05-23 13:17:23 +00:00
}
.section-${f-1} text {
2023-05-24 18:25:13 +00:00
fill: ${i["cScaleLabel"+f]};
2023-05-23 13:17:23 +00:00
}
.node-icon-${f-1} {
font-size: 40px;
2023-05-24 18:25:13 +00:00
color: ${i["cScaleLabel"+f]};
2023-05-23 13:17:23 +00:00
}
.section-edge-${f-1}{
2023-05-24 18:25:13 +00:00
stroke: ${i["cScale"+f]};
2023-05-23 13:17:23 +00:00
}
.edge-depth-${f-1}{
stroke-width: ${p};
}
.section-${f-1} line {
2023-05-24 18:25:13 +00:00
stroke: ${i["cScaleInv"+f]} ;
2023-05-23 13:17:23 +00:00
stroke-width: 3;
}
.disabled, .disabled circle, .disabled text {
fill: lightgray;
}
.disabled text {
fill: #efefef;
}
`}return a},fWe=Object.freeze(Object.defineProperty({__proto__:null,diagram:{db:WUe,renderer:lWe,parser:BUe,styles:i=>`
2023-05-23 13:17:23 +00:00
.edge {
stroke-width: 3;
}
${hWe(i)}
2023-05-23 13:17:23 +00:00
.section-root rect, .section-root path, .section-root circle, .section-root polygon {
2023-05-24 18:25:13 +00:00
fill: ${i.git0};
2023-05-23 13:17:23 +00:00
}
.section-root text {
2023-05-24 18:25:13 +00:00
fill: ${i.gitBranchLabel0};
2023-05-23 13:17:23 +00:00
}
.icon-container {
height:100%;
display: flex;
justify-content: center;
align-items: center;
}
.edge {
fill: none;
}
2023-05-24 18:25:13 +00:00
.mindmap-node-label {
dy: 1em;
alignment-baseline: middle;
text-anchor: middle;
dominant-baseline: middle;
text-align: center;
}
`}},Symbol.toStringTag,{value:"Module"}));var Vgt=function(){var i=function(E,C,A,N){for(A=A||{},N=E.length;N--;A[E[N]]=C);return A},a=[1,9],f=[1,10],p=[1,5,10,12],v={trace:function(){},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:function(C,A,N,F,j,R,H){var Y=R.length-1;switch(j){case 7:const rt=F.findOrCreateNode(R[Y-4].trim().replaceAll('""','"')),J=F.findOrCreateNode(R[Y-2].trim().replaceAll('""','"')),it=parseFloat(R[Y].trim());F.addLink(rt,J,it);break;case 8:case 9:case 11:this.$=R[Y];break;case 10:this.$=R[Y-1];break}},table:[{3:1,4:[1,2]},{1:[3]},{5:[1,3]},{6:4,8:5,15:6,16:7,17:8,18:a,20:f},{1:[2,6],7:11,10:[1,12]},i(f,[2,4],{9:13,5:[1,14]}),{12:[1,15]},i(p,[2,8]),i(p,[2,9]),{19:[1,16]},i(p,[2,11]),{1:[2,1]},{1:[2,5]},i(f,[2,2]),{6:17,8:5,15:6,16:7,17:8,18:a,20:f},{15:18,16:7,17:8,18:a,20:f},{18:[1,19]},i(f,[2,3]),{12:[1,20]},i(p,[2,10]),{15:21,16:7,17:8,18:a,20:f},i([1,5,10],[2,7])],defaultActions:{11:[2,1],12:[2,5]},parseError:function(C,A){if(A.recoverable)this.trace(C);else{var N=new Error(C);throw N.hash=A,N}},parse:function(C){var A=this,N=[0],F=[],j=[null],R=[],H=this.table,Y="",rt=0,J=0,it=2,ht=1,Tt=R.slice.call(arguments,1),yt=Object.create(this.lexer),vt={yy:{}};for(var ut in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ut)&&(vt.yy[ut]=this.yy[ut]);yt.setInput(C,vt.yy),vt.yy.lexer=yt,vt.yy.parser=this,typeof yt.yylloc>"u"&&(yt.yylloc={});var xt=yt.yylloc;R.push(xt);var st=yt.options&&yt.options.ranges;typeof vt.yy.parseError=="function"?this.parseError=vt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Et(){var mt;return mt=F.pop()||yt.lex()||ht,typeof mt!="number"&&(mt instanceof Array&&(F=mt,mt=F.pop()),mt=A.symbols_[mt]||mt),mt}for(var gt,pt,Ct,nt,Nt={},dt,Ft,X,Bt;;){if(pt=N[N.length-1],this.defaultActions[pt]?Ct=this.defaultActions[pt]:((gt===null||typeof gt>"u")&&(gt=Et()),Ct=H[pt]&&H[pt][gt]),typeof Ct>"u"||!Ct.length||!Ct[0]){var Rt="";Bt=[];for(dt in H[pt])this.terminals_[dt]&&dt>it&&Bt.push("'"+this.terminals_[dt]+"'");yt.showPosition?Rt="Parse error on line "+(rt+1)+`:
`+yt.showPosition()+`
Expecting `+Bt.join(", ")+", got '"+(this.terminals_[gt]||gt)+"'":Rt="Parse error on line "+(rt+1)+": Unexpected "+(gt==ht?"end of input":"'"+(this.terminals_[gt]||gt)+"'"),this.parseError(Rt,{text:yt.match,token:this.terminals_[gt]||gt,line:yt.yylineno,loc:xt,expected:Bt})}if(Ct[0]instanceof Array&&Ct.length>1)throw new Error("Parse Error: multiple actions possible at state: "+pt+", token: "+gt);switch(Ct[0]){case 1:N.push(gt),j.push(yt.yytext),R.push(yt.yylloc),N.push(Ct[1]),gt=null,J=yt.yyleng,Y=yt.yytext,rt=yt.yylineno,xt=yt.yylloc;break;case 2:if(Ft=this.productions_[Ct[1]][1],Nt.$=j[j.length-Ft],Nt._$={first_line:R[R.length-(Ft||1)].first_line,last_line:R[R.length-1].last_line,first_column:R[R.length-(Ft||1)].first_column,last_column:R[R.length-1].last_column},st&&(Nt._$.range=[R[R.length-(Ft||1)].range[0],R[R.length-1].range[1]]),nt=this.performAction.apply(Nt,[Y,J,rt,vt.yy,Ct[1],j,R].concat(Tt)),typeof nt<"u")return nt;Ft&&(N=N.slice(0,-1*Ft*2),j=j.slice(0,-1*Ft),R=R.slice(0,-1*Ft)),N.push(this.productions_[Ct[1]][0]),j.push(Nt.$),R.push(Nt._$),X=H[N[N.length-2]][N[N.length-1]],N.push(X);break;case 3:return!0}}return!0}},m=function(){var E={EOF:1,parseError:function(A,N){if(this.yy.parser)this.yy.parser.parseError(A,N);else throw new Error(A)},setInput:function(C,A){return this.yy=A||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},input:function(){var C=this._input[0];this.yytext+=C,this.yyleng++,this.offset++,this.match+=C,this.matched+=C;var A=C.match(/(?:\r\n?|\n).*/g);return A?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),C},unput:function(C){var A=C.length,N=C.split(/(?:\r\n?|\n)/g);this._input=C+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-A),this.offset-=A;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),N.length-1&&(this.yylineno-=N.length-1);var j=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===F.length?this.yylloc.first_column:0)+F[F.length-N.length].length-N[0].length:this.yylloc.first_column-A},this.options.ranges&&(this.yylloc.range=[j[0],j[0]+this.yyleng-A]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject: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},less:function(C){this.unput(this.match.slice(C))},pastInput:function(){var C=this.matched.substr(0,this.matched.length-this.match.length);return(C.length>20?"...":"")+C.substr(-20).replace(/\n/g,"")},upcomingInput: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,"")},showPosition:function(){var C=this.pastInput(),A=new Array(C.length+1).join("-");return C+this.upcomingInput()+`
`+A+"^"},test_match:function(C,A){var N,F,j;if(this.options.backtrack_lexer&&(j={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&&(j.yylloc.range=this.yylloc.range.slice(0))),F=C[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+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],N=this.performAction.call(this,this.yy,this,A,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),N)return N;if(this._backtrack){for(var R in j)this[R]=j[R];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var C,A,N,F;this._more||(this.yytext="",this.match="");for(var j=this._currentRules(),R=0;R<j.length;R++)if(N=this._input.match(this.rules[j[R]]),N&&(!A||N[0].length>A[0].length)){if(A=N,F=R,this.options.backtrack_lexer){if(C=this.test_match(N,j[R]),C!==!1)return C;if(this._backtrack){A=!1;continue}else return!1}else if(!this.options.flex)break}return A?(C=this.test_match(A,j[F]),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})},lex:function(){var A=this.next();return A||this.lex()},begin:function(A){this.conditionStack.push(A)},popState:function(){var A=this.conditionStack.length-1;return A>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(A){return A=this.conditionStack.length-1-Math.abs(A||0),A>=0?this.conditionStack[A]:"INITIAL"},pushState:function(A){this.begin(A)},stateStackSize:function(){return this.conditionStack.length},options:{easy_keword_rules:!0},performAction:function(A,N,F,j){switch(F){case 0:return this.pushState("csv"),4;case 1:return 10;case 2:return 5;case 3:return 12;case 4:return this.pushState("escaped_text"),18;case 5:return 20;case 6:return this.popState("escaped_text"),18;case 7:return 19}},rules:[/^(?:sankey-beta\b)/,/^(?:$)/,/^(?:((\u000D\u000A)|(\u000A)))/,/^(?:(\u002C))/,/^(?:(\u0022))/,/^(?:([\u0020-\u0021\u0023-\u002B\u002D-\u007E])*)/,/^(?:(\u0022)(?!(\u0022)))/,/^(?:(([\u0020-\u0021\u0023-\u002B\u002D-\u007E])|(\u002C)|(\u000D)|(\u000A)|(\u0022)(\u0022))*)/],conditions:{csv:{rules:[1,2,3,4,5,6,7],inclusive:!1},escaped_text:{rules:[6,7],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7],inclusive:!0}}};return E}();v.lexer=m;function b(){this.yy={}}return b.prototype=v,v.Parser=b,new b}();Vgt.parser=Vgt;const WK=Vgt;let KK=[],YK=[],mL={};const dWe=()=>{KK=[],YK=[],mL={},hg()};class gWe{constructor(a,f,p=0){this.source=a,this.target=f,this.value=p}}const pWe=(i,a,f)=>{KK.push(new gWe(i,a,f))};class bWe{constructor(a){this.ID=a}}const vWe={nodesMap:mL,getConfig:()=>Me().sankey,getNodes:()=>YK,getLinks:()=>KK,getGraph:()=>({nodes:YK.map(i=>({id:i.ID})),links:KK.map(i=>({source:i.source.ID,target:i.target.ID,value:i.value}))}),addLink:pWe,findOrCreateNode:i=>(i=bi.sanitizeText(i,Me()),mL[i]||(mL[i]=new bWe(i),YK.push(mL[i])),mL[i]),getAccTitle:fg,setAccTitle:E0,getAccDescription:gg,setAccDescription:dg,getDiagramTitle:fp,setDiagramTitle:F2,clear:dWe};function Yjt(i,a){let f;if(a===void 0)for(const p of i)p!=null&&(f<p||f===void 0&&p>=p)&&(f=p);else{let p=-1;for(let v of i)(v=a(v,++p,i))!=null&&(f<v||f===void 0&&v>=v)&&(f=v)}return f}function Xjt(i,a){let f;if(a===void 0)for(const p of i)p!=null&&(f>p||f===void 0&&p>=p)&&(f=p);else{let p=-1;for(let v of i)(v=a(v,++p,i))!=null&&(f>v||f===void 0&&v>=v)&&(f=v)}return f}function Ggt(i,a){let f=0;if(a===void 0)for(let p of i)(p=+p)&&(f+=p);else{let p=-1;for(let v of i)(v=+a(v,++p,i))&&(f+=v)}return f}function wWe(i){return i.target.depth}function mWe(i){return i.depth}function yWe(i,a){return a-1-i.height}function Qjt(i,a){return i.sourceLinks.length?i.depth:a-1}function xWe(i){return i.targetLinks.length?i.depth:i.sourceLinks.length?Xjt(i.sourceLinks,wWe)-1:0}function XK(i){return function(){return i}}function Zjt(i,a){return QK(i.source,a.source)||i.index-a.index}function Jjt(i,a){return QK(i.target,a.target)||i.index-a.index}function QK(i,a){return i.y0-a.y0}function Ugt(i){return i.value}function kWe(i){return i.index}function EWe(i){return i.nodes}function TWe(i){return i.links}function t$t(i,a){const f=i.get(a);if(!f)throw new Error("missing: "+a);return f}function e$t({nodes:i}){for(const a of i){let f=a.y0,p=f;for(const v of a.sourceLinks)v.y0=f+v.width/2,f+=v.width;for(const v of a.targetLinks)v.y1=p+v.width/2,p+=v.width}}function _We(){let i=0,a=0,f=1,p=1,v=24,m=8,b,E=kWe,C=Qjt,A,N,F=EWe,j=TWe,R=6;function H(){const Nt={nodes:F.apply(null,arguments),links:j.apply(null,arguments)};return Y(Nt),rt(Nt),J(Nt),it(Nt),yt(Nt),e$t(Nt),Nt}H.update=function(Nt){return e$t(Nt),Nt},H.nodeId=function(Nt){return arguments.length?(E=typeof Nt=="function"?Nt:XK(Nt),H):E},H.nodeAlign=function(Nt){return arguments.length?(C=typeof Nt=="function"?Nt:XK(Nt),H):C},H.nodeSort=function(Nt){return arguments.length?(A=Nt,H):A},H.nodeWidth=function(Nt){return arguments.length?(v=+Nt,H):v},H.nodePaddi
`).trim(),zWe=WK.parse.bind(WK);WK.parse=i=>zWe($We(i));const qWe=Object.freeze(Object.defineProperty({__proto__:null,diagram:{parser:WK,db:vWe,renderer:jWe}},Symbol.toStringTag,{value:"Module"}));return R2});