2024-11-13 12:07:54 +02:00
"use strict" ; var _ _esbuild _esm _mermaid = ( ( ) => { var ixe = Object . create ; var Z1 = Object . defineProperty ; var axe = Object . getOwnPropertyDescriptor ; var sxe = Object . getOwnPropertyNames ; var oxe = Object . getPrototypeOf , lxe = Object . prototype . hasOwnProperty ; var o = ( t , e ) => Z1 ( t , "name" , { value : e , configurable : ! 0 } ) ; var M = ( t , e ) => ( ) => ( t && ( e = t ( t = 0 ) ) , e ) ; var Ei = ( t , e ) => ( ) => ( e || t ( ( e = { exports : { } } ) . exports , e ) , e . exports ) , vr = ( t , e ) => { for ( var r in e ) Z1 ( t , r , { get : e [ r ] , enumerable : ! 0 } ) } , $b = ( t , e , r , n ) => { if ( e && typeof e == "object" || typeof e == "function" ) for ( let i of sxe ( e ) ) ! lxe . call ( t , i ) && i !== r && Z1 ( t , i , { get : ( ) => e [ i ] , enumerable : ! ( n = axe ( e , i ) ) || n . enumerable } ) ; return t } , Sr = ( t , e , r ) => ( $b ( t , e , "default" ) , r && $b ( r , e , "default" ) ) , Ji = ( t , e , r ) => ( r = t != null ? ixe ( oxe ( t ) ) : { } , $b ( e || ! t || ! t . _ _esModule ? Z1 ( r , "default" , { value : t , enumerable : ! 0 } ) : r , t ) ) , cxe = t => $b ( Z1 ( { } , "__esModule" , { value : ! 0 } ) , t ) ; var Vb = Ei ( ( _S , LS ) => { "use strict" ; ( function ( t , e ) { typeof _S == "object" && typeof LS < "u" ? LS . exports = e ( ) : typeof define == "function" && define . amd ? define ( e ) : ( t = typeof globalThis < "u" ? globalThis : t || self ) . dayjs = e ( ) } ) ( _S , function ( ) { "use strict" ; var t = 1e3 , e = 6e4 , r = 36e5 , n = "millisecond" , i = "second" , a = "minute" , s = "hour" , l = "day" , u = "week" , h = "month" , f = "quarter" , d = "year" , p = "date" , m = "Invalid Date" , g = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/ , y = /\[([^\]]+)]|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 , v = { 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 : o ( function ( k ) { var R = [ "th" , "st" , "nd" , "rd" ] , C = k % 100 ; return "[" + k + ( R [ ( C - 20 ) % 10 ] || R [ C ] || R [ 0 ] ) + "]" } , "ordinal" ) } , x = o ( function ( k , R , C ) { var O = String ( k ) ; return ! O || O . length >= R ? k : "" + Array ( R + 1 - O . length ) . join ( C ) + k } , "m" ) , b = { s : x , z : o ( function ( k ) { var R = - k . utcOffset ( ) , C = Math . abs ( R ) , O = Math . floor ( C / 60 ) , N = C % 60 ; return ( R <= 0 ? "+" : "-" ) + x ( O , 2 , "0" ) + ":" + x ( N , 2 , "0" ) } , "z" ) , m : o ( function k ( R , C ) { if ( R . date ( ) < C . date ( ) ) return - k ( C , R ) ; var O = 12 * ( C . year ( ) - R . year ( ) ) + ( C . month ( ) - R . month ( ) ) , N = R . clone ( ) . add ( O , h ) , P = C - N < 0 , F = R . clone ( ) . add ( O + ( P ? - 1 : 1 ) , h ) ; return + ( - ( O + ( C - N ) / ( P ? N - F : F - N ) ) || 0 ) } , "t" ) , a : o ( function ( k ) { return k < 0 ? Math . ceil ( k ) || 0 : Math . floor ( k ) } , "a" ) , p : o ( function ( k ) { return { M : h , y : d , w : u , d : l , D : p , h : s , m : a , s : i , ms : n , Q : f } [ k ] || String ( k || "" ) . toLowerCase ( ) . replace ( /s$/ , "" ) } , "p" ) , u : o ( function ( k ) { return k === void 0 } , "u" ) } , w = "en" , _ = { } ; _ [ w ] = v ; var T = "$isDayjsObject" , E = o ( function ( k ) { return k instanceof I || ! ( ! k || ! k [ T ] ) } , "S" ) , L = o ( function k ( R , C , O ) { var N ; if ( ! R ) return w ; if ( typeof R == "string" ) { var P = R . toLowerCase ( ) ; _ [ P ] && ( N = P ) , C && ( _ [ P ] = C , N = P ) ; var F = R . split ( "-" ) ; if ( ! N && F . length > 1 ) return k ( F [ 0 ] ) } else { var B = R . name ; _ [ B ] = R , N = B } return ! O && N && ( w = N ) , N || ! O && w } , "t" ) , S = o ( function ( k , R ) { if ( E ( k ) ) return k . clone ( ) ; var C = typeof R == "object" ? R : { } ; return C . date = k , C . args = arguments , new I ( C ) } , "O" ) , A = b ; A . l = L , A . i = E , A . w = function ( k , R ) { return S ( k , { locale : R . $L , utc : R . $u , x : R . $x , $offset : R . $offset } ) } ; var I = function ( ) { function k ( C ) { this . $L = L ( C . locale , null , ! 0 ) , this . parse ( C ) , this . $x = this . $x || C . x || { } , this [ T ] = ! 0 } o ( k , "M" ) ; var R = k . prototype ; return R . parse = function ( C ) { this . $d = function ( O ) { var N = O . date , P = O . utc ; if ( N === null ) return new Date ( NaN ) ; if ( A . u ( N ) ) return new Date ; if ( N instanceof Date ) return new Date ( N ) ; if ( typeof N == "string" && ! /Z$/i . test ( N ) ) { var F = N . match ( g ) ; if ( F ) { var B = F [ 2 ] - 1 || 0 , G = ( F [ 7 ] || "0" ) . substring ( 0 , 3 ) ; return P ? new Date ( Date . UTC ( F [ 1 ] , B , F [ 3 ] || 1 , F [ 4 ] || 0 , F [ 5 ] || 0 , F [ 6 ] || 0 , G ) ) : new Date ( F [ 1 ] , B , F [ 3 ] || 1 , F [ 4 ] || 0 , F [ 5 ] || 0 , F [ 6 ] || 0 , G ) } } return new Date ( N ) } ( C ) , this . init ( ) } , R . init = function ( ) { var C = this . $d ; this . $y = C . getFullYear ( ) , this . $M = C . getMonth ( ) , this . $D = C . getDate ( ) , this . $W = C . getDay ( ) , this . $H = C . getHours ( ) , this . $m = C . getMinutes ( ) , this . $s = C . getSeconds ( ) , this . $ms = C . getMilliseconds ( ) } , R . $utils = function ( ) { return A } , R . isValid = function ( ) { return this . $d . toString ( ) !== m } , R . isSame = function ( C , O ) { var N = S ( C ) ; return this . startOf ( O ) <= N && N <= this . endOf ( O ) } , R . isAfter = function ( C , O ) { return S ( C ) < this . startOf ( O ) } , R . isBefore = function ( C , O ) { return this . endOf ( O ) < S ( C ) } , R . $g = function ( C , O , N ) { return A . u ( C ) ? this [ O ] : this . set ( N , C ) } , R . unix = function ( ) { return Math . floor ( this . valueOf ( ) / 1e3 ) } , R . valueOf = function ( ) { r
[ ] { ` +Math.min.apply(Math,i)+"}","g");n=n.map(function(l){return l.replace(a, `
` )})}n[0]=n[0].replace(/^ \r ? \n /,"");var s=n[0];return e.forEach(function(l,u){var h=s.match(/(?:^| \n )( *) $ /),f=h?h[1]:"",d=l;typeof l=="string"&&l.includes( `
` )&&(d=String(l).split( `
` ).map(function(p,m){return m===0?p:""+f+p}).join( `
` )),s+=d+n[u+1]}),s}var GS=M(()=>{"use strict";o(jb,"dedent")});var Kb,Kf,az,Qb=M(()=>{"use strict";Kb=/^-{3} \s *[ \n \r ](.*?)[ \n \r ]-{3} \s *[ \n \r ]+/s,Kf=/%{2}{ \s *(?:( \w +) \s *:|( \w +)) \s *(?:( \w +)|((?:(?!}%{2}).| \r ? \n )*))? \s *(?:}%{2})?/gi,az=/ \s *%%.* \n /gm});var pp, $ S=M(()=>{"use strict";pp=class extends Error{static{o(this,"UnknownDiagramError")}constructor(e){super(e),this.name="UnknownDiagramError"}}});var Qf,mp,Zb,VS,sz,Zf=M(()=>{"use strict";ut();Qb(); $ S();Qf={},mp=o(function(t,e){t=t.replace(Kb,"").replace(Kf,"").replace(az, `
` );for(let[r,{detector:n}]of Object.entries(Qf))if(n(t,e))return r;throw new pp( ` No diagram type detected matching given configuration for text : $ { t } ` )},"detectType"),Zb=o((...t)=>{for(let{id:e,detector:r,loader:n}of t)VS(e,r,n)},"registerLazyLoadedDiagrams"),VS=o((t,e,r)=>{Qf[t]&&Y.warn( ` Detector with key $ { t } already exists . Overwriting . ` ),Qf[t]={detector:e,loader:r},Y.debug( ` Detector with key $ { t } added$ { r ? " with loader" : "" } ` )},"addDetector"),sz=o(t=>Qf[t].loader,"getDiagramLoader")});var ey,oz,US=M(()=>{"use strict";ey=function(){var t=o(function( $ e,ye,X,fe){for(X=X||{},fe= $ e.length;fe--;X[ $ e[fe]]=ye);return X},"o"),e=[1,24],r=[1,25],n=[1,26],i=[1,27],a=[1,28],s=[1,63],l=[1,64],u=[1,65],h=[1,66],f=[1,67],d=[1,68],p=[1,69],m=[1,29],g=[1,30],y=[1,31],v=[1,32],x=[1,33],b=[1,34],w=[1,35],_=[1,36],T=[1,37],E=[1,38],L=[1,39],S=[1,40],A=[1,41],I=[1,42],D=[1,43],k=[1,44],R=[1,45],C=[1,46],O=[1,47],N=[1,48],P=[1,50],F=[1,51],B=[1,52],G=[1,53],z=[1,54],W=[1,55],Z=[1,56],j=[1,57],oe=[1,58],K=[1,59],ee=[1,60],J=[14,42],H=[14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],q=[12,14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],Q=[1,82],ae=[1,83],ue=[1,84],ce=[1,85],te=[12,14,42],Ne=[12,14,33,42],se=[12,14,33,42,76,77,79,80],ke=[12,33],Re=[34,36,37,38,39,40,41,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],Ce={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,direction:5,direction_tb:6,direction_bt:7,direction_rl:8,direction_lr:9,graphConfig:10,C4_CONTEXT:11,NEWLINE:12,statements:13,EOF:14,C4_CONTAINER:15,C4_COMPONENT:16,C4_DYNAMIC:17,C4_DEPLOYMENT:18,otherStatements:19,diagramStatements:20,otherStatement:21,title:22,accDescription:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,boundaryStatement:29,boundaryStartStatement:30,boundaryStopStatement:31,boundaryStart:32,LBRACE:33,ENTERPRISE_BOUNDARY:34,attributes:35,SYSTEM_BOUNDARY:36,BOUNDARY:37,CONTAINER_BOUNDARY:38,NODE:39,NODE_L:40,NODE_R:41,RBRACE:42,diagramStatement:43,PERSON:44,PERSON_EXT:45,SYSTEM:46,SYSTEM_DB:47,SYSTEM_QUEUE:48,SYSTEM_EXT:49,SYSTEM_EXT_DB:50,SYSTEM_EXT_QUEUE:51,CONTAINER:52,CONTAINER_DB:53,CONTAINER_QUEUE:54,CONTAINER_EXT:55,CONTAINER_EXT_DB:56,CONTAINER_EXT_QUEUE:57,COMPONENT:58,COMPONENT_DB:59,COMPONENT_QUEUE:60,COMPONENT_EXT:61,COMPONENT_EXT_DB:62,COMPONENT_EXT_QUEUE:63,REL:64,BIREL:65,REL_U:66,REL_D:67,REL_L:68,REL_R:69,REL_B:70,REL_INDEX:71,UPDATE_EL_STYLE:72,UPDATE_REL_STYLE:73,UPDATE_LAYOUT_CONFIG:74,attribute:75,STR:76,STR_KEY:77,STR_VALUE:78,ATTRIBUTE:79,ATTRIBUTE_EMPTY:80, $ accept:0, $ end:1},terminals_:{2:"error",6:"direction_tb",7:"direction_bt",8:"direction_rl",9:"direction_lr",11:"C4_CONTEXT",12:"NEWLINE",14:"EOF",15:"C4_CONTAINER",16:"C4_COMPONENT",17:"C4_DYNAMIC",18:"C4_DEPLOYMENT",22:"title",23:"accDescription",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"LBRACE",34:"ENTERPRISE_BOUNDARY",36:"SYSTEM_BOUNDARY",37:"BOUNDARY",38:"CONTAINER_BOUNDARY",39:"NODE",40:"NODE_L",41:"NODE_R",42:"RBRACE",44:"PERSON",45:"PERSON_EXT",46:"SYSTEM",47:"SYSTEM_DB",48:"SYSTEM_QUEUE",49:"SYSTEM_EXT",50:"SYSTEM_EXT_DB",51:"SYSTEM_EXT_QUEUE",52:"CONTAINER",53:"CONTAINER_DB",54:"CONTAINER_QUEUE",55:"CONTAINER_EXT",56:"CONTAINER_EXT_DB",57:"CONTAINER_EXT_QUEUE",58:"COMPONENT",59:"COMPONENT_DB",60:"COMPONENT_QUEUE",61:"COMPONENT_EXT",62:"COMPONENT_EXT_DB",63:"COMPONENT_EXT_QUEUE",64:"REL",65:"BIREL",66:"REL_U",67:"REL_D",68:"REL_L",69:"REL_R",70:"REL_B",71:"REL_INDEX",72:"UPDATE_EL_STYLE",73:"UPDATE_REL_STYLE",74:"UPDATE_LAYOUT_CONFIG",76:"STR",77:"STR_KEY",78:"STR_VALUE",79:"ATTRIBUTE",80:"ATTRIBUTE_EMPTY"},productions_:[0,[3,1],[3,1],[5,1],[5,1],[5,1],[5,1],[4,1],[10,4],[10,4],[10,4],[10,4],[10,4],[13,1],[13,1],[13,2],[19,1],[19,2],[19,3],[21,1],[21,1],[21,2],[21,2],[21,1],[29,3],[30,3],[30,3],[30,4],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[3
` +me.showPosition()+ `
Expecting ` +Ct.join(", ")+", got '"+(this.terminals_[rt]||rt)+"'":pt="Parse error on line "+(Te+1)+": Unexpected "+(rt==Ge?"end of input":"'"+(this.terminals_[rt]||rt)+"'"),this.parseError(pt,{text:me.match,token:this.terminals_[rt]||rt,line:me.yylineno,loc:et,expected:Ct})}if(tt[0]instanceof Array&&tt.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Ue+", token: "+rt);switch(tt[0]){case 1:fe.push(rt),ge.push(me.yytext),ne.push(me.yylloc),fe.push(tt[1]),rt=null,yt?(rt=yt,yt=null):(ie=me.yyleng,U=me.yytext,Te=me.yylineno,et=me.yylloc,Ee>0&&Ee--);break;case 2:if(Je=this.productions_[tt[1]][1],er. $ =ge[ge.length-Je],er._ $ ={first_line:ne[ne.length-(Je||1)].first_line,last_line:ne[ne.length-1].last_line,first_column:ne[ne.length-(Je||1)].first_column,last_column:ne[ne.length-1].last_column},bt&&(er._ $ .range=[ne[ne.length-(Je||1)].range[0],ne[ne.length-1].range[1]]),Et=this.performAction.apply(er,[U,ie,Te,He.yy,tt[1],ge,ne].concat(Be)),typeof Et<"u")return Et;Je&&(fe=fe.slice(0,-1*Je*2),ge=ge.slice(0,-1*Je),ne=ne.slice(0,-1*Je)),fe.push(this.productions_[tt[1]][0]),ge.push(er. $ ),ne.push(er._ $ ),ct=ve[fe[fe.length-2]][fe[fe.length-1]],fe.push(ct);break;case 3:return!0}}return!0},"parse")},Pe=function(){var $ e={EOF:1,parseError:o(function(X,fe){if(this.yy.parser)this.yy.parser.parseError(X,fe);else throw new Error(X)},"parseError"),setInput:o(function(ye,X){return this.yy=X||this.yy||{},this._input=ye,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:o(function(){var ye=this._input[0];this.yytext+=ye,this.yyleng++,this.offset++,this.match+=ye,this.matched+=ye;var X=ye.match(/(?: \r \n ?| \n ).*/g);return X?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),ye},"input"),unput:o(function(ye){var X=ye.length,fe=ye.split(/(?: \r \n ?| \n )/g);this._input=ye+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-X),this.offset-=X;var he=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),fe.length-1&&(this.yylineno-=fe.length-1);var ge=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:fe?(fe.length===he.length?this.yylloc.first_column:0)+he[he.length-fe.length].length-fe[0].length:this.yylloc.first_column-X},this.options.ranges&&(this.yylloc.range=[ge[0],ge[0]+this.yyleng-X]),this.yyleng=this.yytext.length,this},"unput"),more:o(function(){return this._more=!0,this},"more"),reject:o(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+ ` . You can only invoke reject ( ) in the lexer when the lexer is of the backtracking persuasion ( options . backtrack _lexer = true ) .
` +this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:o(function(ye){this.unput(this.match.slice(ye))},"less"),pastInput:o(function(){var ye=this.matched.substr(0,this.matched.length-this.match.length);return(ye.length>20?"...":"")+ye.substr(-20).replace(/ \n /g,"")},"pastInput"),upcomingInput:o(function(){var ye=this.match;return ye.length<20&&(ye+=this._input.substr(0,20-ye.length)),(ye.substr(0,20)+(ye.length>20?"...":"")).replace(/ \n /g,"")},"upcomingInput"),showPosition:o(function(){var ye=this.pastInput(),X=new Array(ye.length+1).join("-");return ye+this.upcomingInput()+ `
` +X+"^"},"showPosition"),test_match:o(function(ye,X){var fe,he,ge;if(this.options.backtrack_lexer&&(ge={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&&(ge.yylloc.range=this.yylloc.range.slice(0))),he=ye[0].match(/(?: \r \n ?| \n ).*/g),he&&(this.yylineno+=he.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:he?he[he.length-1].length-he[he.length-1].match(/ \r ? \n ?/)[0].length:this.yylloc.last_column+ye[0].length},this.yytext+=ye[0],this.match+=ye[0],this.matches=ye,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(ye[0].length),this.matched+=ye[0],fe=this.performAction.call(this,this.yy,this,X,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),fe)return fe;if(this._backtrack){for(var ne in ge)this[ne]=ge[ne];return!1}return!1},"test_match"),next:o(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var ye,X,fe,he;this._more||(this.yytext="",this.match="");for(var ge=this._currentRules(),ne=0;ne<ge.length;ne++)if(fe=this._input.match(this.rules[ge[ne]]),fe&&(!X||fe[0].length>X[0].length)){if(X=fe,he=ne,this.options.backtrack_lexer){if(ye=this.test_match(fe,ge[ne]),ye!==!1)return ye;if(this._backtrack){X=!1;continue}else return!1}else if(!this.options.flex)break}return X?(ye=this.test_match(X,ge[he]),ye!==!1?ye:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+ ` . Unrecognized text .
` +this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:o(function(){var X=this.next();return X||this.lex()},"lex"),begin:o(function(X){this.conditionStack.push(X)},"begin"),popState:o(function(){var X=this.conditionStack.length-1;return X>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:o(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:o(function(X){return X=this.conditionStack.length-1-Math.abs(X||0),X>=0?this.conditionStack[X]:"INITIAL"},"topState"),pushState:o(function(X){this.begin(X)},"pushState"),stateStackSize:o(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:o(function(X,fe,he,ge){var ne=ge;switch(he){case 0:return 6;case 1:return 7;case 2:return 8;case 3:return 9;case 4:return 22;case 5:return 23;case 6:return this.begin("acc_title"),24;break;case 7:return this.popState(),"acc_title_value";break;case 8:return this.begin("acc_descr"),26;break;case 9:return this.popState(),"acc_descr_value";break;case 10:this.begin("acc_descr_multiline");break;case 11:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:break;case 14:c;break;case 15:return 12;case 16:break;case 17:return 11;case 18:return 15;case 19:return 16;case 20:return 17;case 21:return 18;case 22:return this.begin("person_ext"),45;break;case 23:return this.begin("person"),44;break;case 24:return this.begin("system_ext_queue"),51;break;case 25:return this.begin("system_ext_db"),50;break;case 26:return this.begin("system_ext"),49;break;case 27:return this.begin("system_queue"),48;break;case 28:return this.begin("system_db"),47;break;case 29:return this.begin("system"),46;break;case 30:return this.begin("boundary"),37;break;case 31:return this.begin("enterprise_boundary"),34;break;case 32:return this.begin("system_boundary"),36;break;case 33:return this.begin("container_ext_queue"),57;break;case 34:return this.begin("container_ext_db"),56;break;case 35:return this.begin("container_ext"),55;break;case 36:return this.begin("container_queue"),54;break;case 37:return this.begin("container_db"),53;break;case 38:return this.begin("container"),52;break;case 39:return this.begin("container_boundary"),38;break;case 40:return this.begin("component_ext_queue"),63;break;case 41:return this.begin("component_ext_db"),62;break;case 42:return this.begin("component_ext"),61;break;case 43:return this.begin("component_queue"),60;break;case 44:return this.begin("component_db"),59;break;case 45:return this.begin("component"),58;break;case 46:return this.begin("node"),39;break;case 47:return this.begin("node"),39;break;case 48:return this.begin("node_l"),40;break;case 49:return this.begin("node_r"),41;break;case 50:return this.begin("rel"),64;break;case 51:return this.begin("birel"),65;break;case 52:return this.begin("rel_u"),66;break;case 53:return this.begin("rel_u"),66;break;case 54:return this.begin("rel_d"),67;break;case 55:return this.begin("rel_d"),67;break;case 56:return this.begin("rel_l"),68;break;case 57:return this.begin("rel_l"),68;break;case 58:return this.begin("rel_r"),69;break;case 59:return this.begin("rel_r"),69;break;case 60:return this.begin("rel_b"),70;break;case 61:return this.begin("rel_index"),71;break;case 62:return this.begin("update_el_style"),72;break;case 63:return this.begin("update_rel_style"),73;break;case 64:return this.begin("update_layout_config"),74;break;case 65:return"EOF_IN_STRUCT";case 66:return this.begin("attribute"),"ATTRIBUTE_EMPTY";break;case 67:this.begin("attribute");break;case 68:this.popState(),this.popState();break;case 69:return 80;case 70:break;case 71:return 80;case 72:this.begin("string");break;case 73:this.popState();break;case 74:return"STR";case 75:this.begin("string_kv");break;case 76:return this.begin("string_kv_key"),"STR_KEY";break;case 77:this.popState(),this.begin("string_kv_value");break;case 78:return"STR_VALUE";case 79:this.popState(
` +xs),mi&&f([Ue,tt,ht],ic=>{xs=v(xs,ic," ")}),He&&At?He.createHTML(xs):xs},Ce.setConfig=function(){let Kt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};rc(Kt),So=!0},Ce.clearConfig=function(){Oi=null,So=!1},Ce.isValidAttribute=function(Kt,Le,ft){Oi||rc({});let zt=En(Kt),Sn=En(Le);return LF(zt,Sn,ft)},Ce.addHook=function(Kt,Le){typeof Le=="function"&&(yt[Kt]=yt[Kt]||[],p(yt[Kt],Le))},Ce.removeHook=function(Kt){if(yt[Kt])return d(yt[Kt])},Ce.removeHooks=function(Kt){yt[Kt]&&(yt[Kt]=[])},Ce.removeAllHooks=function(){yt={}},Ce}o(se,"createDOMPurify");var ke=se();return ke})});var _ $ ={};vr(_ $ ,{default:()=>Y4e});function abe(t){return String(t).replace(ibe,e=>nbe[e])}function cbe(t){if(t.default)return t.default;var e=t.type,r=Array.isArray(e)?e[0]:e;if(typeof r!="string")return r.enum[0];switch(r){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}function gbe(t){for(var e=0;e<wC.length;e++)for(var r=wC[e],n=0;n<r.blocks.length;n++){var i=r.blocks[n];if(t>=i[0]&&t<=i[1])return r.name}return null}function IG(t){for(var e=0;e<b4.length;e+=2)if(t>=b4[e]&&t<=b4[e+1])return!0;return!1}function Abe(t,e){lc[t]=e}function IC(t,e,r){if(!lc[e])throw new Error("Font metrics not found for font: "+e+".");var n=t.charCodeAt(0),i=lc[e][n];if(!i&&t[0]in nG&&(n=nG[t[0]].charCodeAt(0),i=lc[e][n]),!i&&r==="text"&&IG(n)&&(i=lc[e][77]),i)return{depth:i[0],height:i[1],italic:i[2],skew:i[3],width:i[4]}}function _be(t){var e;if(t>=5?e=0:t>=3?e=1:e=2,!cC[e]){var r=cC[e]={cssEmPerMu:l4.quad[e]/18};for(var n in l4)l4.hasOwnProperty(n)&&(r[n]=l4[n][e])}return cC[e]}function sG(t){if(t instanceof Es)return t;throw new Error("Expected symbolNode but got "+String(t)+".")}function Rbe(t){if(t instanceof nd)return t;throw new Error("Expected span<HtmlDomNode> but got "+String(t)+".")}function $ (t,e,r,n,i,a){Cn[t][i]={font:e,group:r,replace:n},a&&n&&(Cn[t][n]=Cn[t][i])}function St(t){for(var{type:e,names:r,props:n,handler:i,htmlBuilder:a,mathmlBuilder:s}=t,l={type:e,numArgs:n.numArgs,argTypes:n.argTypes,allowedInArgument:!!n.allowedInArgument,allowedInText:!!n.allowedInText,allowedInMath:n.allowedInMath===void 0?!0:n.allowedInMath,numOptionalArgs:n.numOptionalArgs||0,infix:!!n.infix,primitive:!!n.primitive,handler:i},u=0;u<r.length;++u)HG[r[u]]=l;e&&(a&&(E4[e]=a),s&&(S4[e]=s))}function id(t){var{type:e,htmlBuilder:r,mathmlBuilder:n}=t;St({type:e,names:[],props:{numArgs:0},handler(){throw new Error("Should never be called.")},htmlBuilder:r,mathmlBuilder:n})}function m4(t,e){var r=pu(["base"],t,e),n=pu(["strut"]);return n.style.height=gt(r.height+r.depth),r.depth&&(n.style.verticalAlign=gt(-r.depth)),r.children.unshift(n),r}function CC(t,e){var r=null;t.length===1&&t[0].type==="tag"&&(r=t[0].tag,t=t[0].body);var n=Fi(t,e,"root"),i;n.length===2&&n[1].hasClass("tag")&&(i=n.pop());for(var a=[],s=[],l=0;l<n.length;l++)if(s.push(n[l]),n[l].hasClass("mbin")||n[l].hasClass("mrel")||n[l].hasClass("allowbreak")){for(var u=!1;l<n.length-1&&n[l+1].hasClass("mspace")&&!n[l+1].hasClass("newline");)l++,s.push(n[l]),n[l].hasClass("nobreak")&&(u=!0);u||(a.push(m4(s,e)),s=[])}else n[l].hasClass("newline")&&(s.pop(),s.length>0&&(a.push(m4(s,e)),s=[]),a.push(n[l]));s.length>0&&a.push(m4(s,e));var h;r?(h=m4(Fi(r,e,!0)),h.classes=["tag"],a.push(h)):i&&a.push(i);var f=pu(["katex-html"],a);if(f.setAttribute("aria-hidden","true"),h){var d=h.children[0];d.style.height=gt(f.height+f.depth),f.depth&&(d.style.verticalAlign=gt(-f.depth))}return f}function YG(t){return new rd(t)}function hG(t,e,r,n,i){var a=Ss(t,r),s;a.length===1&&a[0]instanceof ks&&Jt.contains(["mrow","mtable"],a[0].type)?s=a[0]:s=new at.MathNode("mrow",a);var l=new at.MathNode("annotation",[new at.TextNode(e)]);l.setAttribute("encoding","application/x-tex");var u=new at.MathNode("semantics",[s,l]),h=new at.MathNode("math",[u]);h.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),n&&h.setAttribute("display","block");var f=i?"katex":"katex-mathml";return Fe.makeSpan([f],[h])}function gr(t,e){if(!t||t.type!==e)throw new Error("Expected node of type "+e+", but got "+
2024-05-27 09:53:57 +02:00
c - 2.7 , 0 , - 7.17 , - 2.7 , - 13.5 , - 8 c - 5.8 , - 5.3 , - 9.5 , - 10 , - 9.5 , - 14
c0 , - 2 , 0.3 , - 3.3 , 1 , - 4 c1 . 3 , - 2.7 , 23.83 , - 20.7 , 67.5 , - 54
c44 . 2 , - 33.3 , 65.8 , - 50.3 , 66.5 , - 51 c1 . 3 , - 1.3 , 3 , - 2 , 5 , - 2 c4 . 7 , 0 , 8.7 , 3.3 , 12 , 10
s173 , 378 , 173 , 378 c0 . 7 , 0 , 35.3 , - 71 , 104 , - 213 c68 . 7 , - 142 , 137.5 , - 285 , 206.5 , - 429
c69 , - 144 , 104.5 , - 217.7 , 106.5 , - 221
2024-11-13 12:07:54 +02:00
l ` +e/2.075+" -"+e+ `
2024-05-27 09:53:57 +02:00
c5 . 3 , - 9.3 , 12 , - 14 , 20 , - 14
2024-11-13 12:07:54 +02:00
H400000v ` +(40+e)+ ` H845 . 2724
2024-05-27 09:53:57 +02:00
s - 225.272 , 467 , - 225.272 , 467 s - 235 , 486 , - 235 , 486 c - 2.7 , 4.7 , - 9 , 7 , - 19 , 7
c - 6 , 0 , - 10 , - 1 , - 12 , - 3 s - 194 , - 422 , - 194 , - 422 s - 65 , 47 , - 65 , 47 z
2024-11-13 12:07:54 +02:00
M ` +(834+e)+" "+r+"h400000v"+(40+e)+"h-400000z"},"sqrtMain"),vbe=o(function(e,r){return"M263,"+(601+e+r)+ ` c0 . 7 , 0 , 18 , 39.7 , 52 , 119
2024-05-27 09:53:57 +02:00
c34 , 79.3 , 68.167 , 158.7 , 102.5 , 238 c34 . 3 , 79.3 , 51.8 , 119.3 , 52.5 , 120
c340 , - 704.7 , 510.7 , - 1060.3 , 512 , - 1067
2024-11-13 12:07:54 +02:00
l ` +e/2.084+" -"+e+ `
2024-05-27 09:53:57 +02:00
c4 . 7 , - 7.3 , 11 , - 11 , 19 , - 11
2024-11-13 12:07:54 +02:00
H40000v ` +(40+e)+ ` H1012 . 3
2024-05-27 09:53:57 +02:00
s - 271.3 , 567 , - 271.3 , 567 c - 38.7 , 80.7 , - 84 , 175 , - 136 , 283 c - 52 , 108 , - 89.167 , 185.3 , - 111.5 , 232
c - 22.3 , 46.7 , - 33.8 , 70.3 , - 34.5 , 71 c - 4.7 , 4.7 , - 12.3 , 7 , - 23 , 7 s - 12 , - 1 , - 12 , - 1
s - 109 , - 253 , - 109 , - 253 c - 72.7 , - 168 , - 109.3 , - 252 , - 110 , - 252 c - 10.7 , 8 , - 22 , 16.7 , - 34 , 26
c - 22 , 17.3 , - 33.3 , 26 , - 34 , 26 s - 26 , - 26 , - 26 , - 26 s76 , - 59 , 76 , - 59 s76 , - 60 , 76 , - 60 z
2024-11-13 12:07:54 +02:00
M ` +(1001+e)+" "+r+"h400000v"+(40+e)+"h-400000z"},"sqrtSize1"),xbe=o(function(e,r){return"M983 "+(10+e+r)+ `
l ` +e/3.13+" -"+e+ `
c4 , - 6.7 , 10 , - 10 , 18 , - 10 H400000v ` +(40+e)+ `
2024-05-27 09:53:57 +02:00
H1013 . 1 s - 83.4 , 268 , - 264.1 , 840 c - 180.7 , 572 , - 277 , 876.3 , - 289 , 913 c - 4.7 , 4.7 , - 12.7 , 7 , - 24 , 7
s - 12 , 0 , - 12 , 0 c - 1.3 , - 3.3 , - 3.7 , - 11.7 , - 7 , - 25 c - 35.3 , - 125.3 , - 106.7 , - 373.3 , - 214 , - 744
c - 10 , 12 , - 21 , 25 , - 33 , 39 s - 32 , 39 , - 32 , 39 c - 6 , - 5.3 , - 15 , - 14 , - 27 , - 26 s25 , - 30 , 25 , - 30
c26 . 7 , - 32.7 , 52 , - 63 , 76 , - 91 s52 , - 60 , 52 , - 60 s208 , 722 , 208 , 722
c56 , - 175.3 , 126.3 , - 397.3 , 211 , - 666 c84 . 7 , - 268.7 , 153.8 , - 488.2 , 207.5 , - 658.5
c53 . 7 , - 170.3 , 84.5 , - 266.8 , 92.5 , - 289.5 z
2024-11-13 12:07:54 +02:00
M ` +(1001+e)+" "+r+"h400000v"+(40+e)+"h-400000z"},"sqrtSize2"),bbe=o(function(e,r){return"M424,"+(2398+e+r)+ `
2024-05-27 09:53:57 +02:00
c - 1.3 , - 0.7 , - 38.5 , - 172 , - 111.5 , - 514 c - 73 , - 342 , - 109.8 , - 513.3 , - 110.5 , - 514
c0 , - 2 , - 10.7 , 14.3 , - 32 , 49 c - 4.7 , 7.3 , - 9.8 , 15.7 , - 15.5 , 25 c - 5.7 , 9.3 , - 9.8 , 16 , - 12.5 , 20
s - 5 , 7 , - 5 , 7 c - 4 , - 3.3 , - 8.3 , - 7.7 , - 13 , - 13 s - 13 , - 13 , - 13 , - 13 s76 , - 122 , 76 , - 122 s77 , - 121 , 77 , - 121
s209 , 968 , 209 , 968 c0 , - 2 , 84.7 , - 361.7 , 254 , - 1079 c169 . 3 , - 717.3 , 254.7 , - 1077.7 , 256 , - 1081
2024-11-13 12:07:54 +02:00
l ` +e/4.223+" -"+e+ ` c4 , - 6.7 , 10 , - 10 , 18 , - 10 H400000
v ` +(40+e)+ ` H1014 . 6
2024-05-27 09:53:57 +02:00
s - 87.3 , 378.7 , - 272.6 , 1166 c - 185.3 , 787.3 , - 279.3 , 1182.3 , - 282 , 1185
c - 2 , 6 , - 10 , 9 , - 24 , 9
2024-11-13 12:07:54 +02:00
c - 8 , 0 , - 12 , - 0.7 , - 12 , - 2 z M ` +(1001+e)+" "+r+ `
h400000v ` +(40+e)+"h-400000z"},"sqrtSize3"),wbe=o(function(e,r){return"M473,"+(2713+e+r)+ `
c339 . 3 , - 1799.3 , 509.3 , - 2700 , 510 , - 2702 l ` +e/5.298+" -"+e+ `
c3 . 3 , - 7.3 , 9.3 , - 11 , 18 , - 11 H400000v ` +(40+e)+ ` H1017 . 7
2024-05-27 09:53:57 +02:00
s - 90.5 , 478 , - 276.2 , 1466 c - 185.7 , 988 , - 279.5 , 1483 , - 281.5 , 1485 c - 2 , 6 , - 10 , 9 , - 24 , 9
c - 8 , 0 , - 12 , - 0.7 , - 12 , - 2 c0 , - 1.3 , - 5.3 , - 32 , - 16 , - 92 c - 50.7 , - 293.3 , - 119.7 , - 693.3 , - 207 , - 1200
c0 , - 1.3 , - 5.3 , 8.7 , - 16 , 30 c - 10.7 , 21.3 , - 21.3 , 42.7 , - 32 , 64 s - 16 , 33 , - 16 , 33 s - 26 , - 26 , - 26 , - 26
s76 , - 153 , 76 , - 153 s77 , - 151 , 77 , - 151 c0 . 7 , 0.7 , 35.7 , 202 , 105 , 604 c67 . 3 , 400.7 , 102 , 602.7 , 104 ,
2024-11-13 12:07:54 +02:00
606 zM ` +(1001+e)+" "+r+"h400000v"+(40+e)+"H1017.7z"},"sqrtSize4"),Tbe=o(function(e){var r=e/2;return"M400000 "+e+" H0 L"+r+" 0 l65 45 L145 "+(e-80)+" H400000z"},"phasePath"),kbe=o(function(e,r,n){var i=n-54-r-e;return"M702 "+(e+r)+"H400000"+(40+e)+ `
H742v ` +i+ ` l - 4 4 - 4 4 c - . 667.7 - 2 1.5 - 4 2.5 s - 4.167 1.833 - 6.5 2.5 - 5.5 1 - 9.5 1
2024-05-27 09:53:57 +02:00
h - 12 l - 28 - 84 c - 16.667 - 52 - 96.667 - 294.333 - 240 - 727 l - 212 - 643 - 85 170
c - 4 - 3.333 - 8.333 - 7.667 - 13 - 13 l - 13 - 13 l77 - 155 77 - 156 c66 199.333 139 419.667
2024-11-13 12:07:54 +02:00
219 661 l218 661 zM702 ` +r+"H400000v"+(40+e)+"H742z"},"sqrtTall"),Ebe=o(function(e,r,n){r=1e3*r;var i="";switch(e){case"sqrtMain":i=ybe(r,Tp);break;case"sqrtSize1":i=vbe(r,Tp);break;case"sqrtSize2":i=xbe(r,Tp);break;case"sqrtSize3":i=bbe(r,Tp);break;case"sqrtSize4":i=wbe(r,Tp);break;case"sqrtTall":i=kbe(r,Tp,n)}return i},"sqrtPath"),Sbe=o(function(e,r){switch(e){case" \u 239C":return"M291 0 H417 V"+r+" H291z M291 0 H417 V"+r+" H291z";case" \u 2223":return"M145 0 H188 V"+r+" H145z M145 0 H188 V"+r+" H145z";case" \u 2225":return"M145 0 H188 V"+r+" H145z M145 0 H188 V"+r+" H145z"+("M367 0 H410 V"+r+" H367z M367 0 H410 V"+r+" H367z");case" \u 239F":return"M457 0 H583 V"+r+" H457z M457 0 H583 V"+r+" H457z";case" \u 23A2":return"M319 0 H403 V"+r+" H319z M319 0 H403 V"+r+" H319z";case" \u 23A5":return"M263 0 H347 V"+r+" H263z M263 0 H347 V"+r+" H263z";case" \u 23AA":return"M384 0 H504 V"+r+" H384z M384 0 H504 V"+r+" H384z";case" \u 23D0":return"M312 0 H355 V"+r+" H312z M312 0 H355 V"+r+" H312z";case" \u 2016":return"M257 0 H300 V"+r+" H257z M257 0 H300 V"+r+" H257z"+("M478 0 H521 V"+r+" H478z M478 0 H521 V"+r+" H478z");default:return""}},"innerPath"),rG={doubleleftarrow: ` M262 157
2024-05-27 09:53:57 +02:00
l10 - 10 c34 - 36 62.7 - 77 86 - 123 3.3 - 8 5 - 13.3 5 - 16 0 - 5.3 - 6.7 - 8 - 20 - 8 - 7.3
0 - 12.2 . 5 - 14.5 1.5 - 2.3 1 - 4.8 4.5 - 7.5 10.5 - 49.3 97.3 - 121.7 169.3 - 217 216 - 28
14 - 57.3 25 - 88 33 - 6.7 2 - 11 3.8 - 13 5.5 - 2 1.7 - 3 4.2 - 3 7.5 s1 5.8 3 7.5
c2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5
157.5 9.3 8 15.3 12.3 18 13 h6c12 - . 7 18 - 4 18 - 10 0 - 2 - 1.7 - 7 - 5 - 15 - 23.3 - 46 - 52 - 87
- 86 - 123 l - 10 - 10 h399738v - 40 H218c328 0 0 0 0 0 l - 10 - 8 c - 26.7 - 20 - 65.7 - 43 - 117 - 69 2.7
- 2 6 - 3.7 10 - 5 36.7 - 16 72.3 - 37.3 107 - 64 l10 - 8 h399782v - 40 z
m8 0 v40h399730v - 40 zm0 194 v40h399730v - 40 z ` ,doublerightarrow: ` M399738 392 l
- 10 10 c - 34 36 - 62.7 77 - 86 123 - 3.3 8 - 5 13.3 - 5 16 0 5.3 6.7 8 20 8 7.3 0 12.2 - . 5
14.5 - 1.5 2.3 - 1 4.8 - 4.5 7.5 - 10.5 49.3 - 97.3 121.7 - 169.3 217 - 216 28 - 14 57.3 - 25 88
- 33 6.7 - 2 11 - 3.8 13 - 5.5 2 - 1.7 3 - 4.2 3 - 7.5 s - 1 - 5.8 - 3 - 7.5 c - 2 - 1.7 - 6.3 - 3.5 - 13 - 5.5 - 68
- 17.3 - 128.2 - 47.8 - 180.5 - 91.5 - 52.3 - 43.7 - 93.8 - 96.2 - 124.5 - 157.5 - 9.3 - 8 - 15.3 - 12.3 - 18
- 13 h - 6 c - 12 . 7 - 18 4 - 18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123 l10 10 H0v40h399782
c - 328 0 0 0 0 0 l10 8 c26 . 7 20 65.7 43 117 69 - 2.7 2 - 6 3.7 - 10 5 - 36.7 16 - 72.3 37.3
- 107 64 l - 10 8 H0v40zM0 157 v40h399730v - 40 zm0 194 v40h399730v - 40 z ` ,leftarrow: ` M400000 241 H110l3 - 3 c68 . 7 - 52.7 113.7 - 120
135 - 202 4 - 14.7 6 - 23 6 - 25 0 - 7.3 - 7 - 11 - 21 - 11 - 8 0 - 13.2 . 8 - 15.5 2.5 - 2.3 1.7 - 4.2 5.8
- 5.5 12.5 - 1.3 4.7 - 2.7 10.3 - 4 17 - 12 48.7 - 34.8 92 - 68.5 130 S65 . 3 228.3 18 247
c - 10 4 - 16 7.7 - 18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85 S196 441.3 208
490 c . 7 2 1.3 5 2 9 s1 . 2 6.7 1.5 8 c . 3 1.3 1 3.3 2 6 s2 . 2 4.5 3.5 5.5 c1 . 3 1 3.3
1.8 6 2.5 s6 1 10 1 c14 0 21 - 3.7 21 - 11 0 - 2 - 2 - 10.3 - 6 - 25 - 20 - 79.3 - 65 - 146.7 - 135 - 202
l - 3 - 3 h399890zM100 241 v40h399900v - 40 z ` ,leftbrace: ` M6 548 l - 6 - 6 v - 35 l6 - 11 c56 - 104 135.3 - 181.3 238 - 232 57.3 - 28.7 117
- 45 179 - 50 h399577v120H403c - 43.3 7 - 81 15 - 113 26 - 100.7 33 - 179.7 91 - 237 174 - 2.7
5 - 6 9 - 10 13 - . 7 1 - 7.3 1 - 20 1 H6z ` ,leftbraceunder: ` M0 6 l6 - 6 h17c12 . 688 0 19.313 . 3 20 1 4 4 7.313 8.3 10 13
35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5 . 688
0 2 . 3 4 1 18.688 2.7 76 4.3 172 5 h399450v120H429l - 6 - 1 c - 124.688 - 8 - 235 - 61.7
- 331 - 161 C60 . 687 138.7 32.312 99.3 7 54 L0 41 V6z ` ,leftgroup: ` M400000 80
H435C64 80 168.3 229.4 21 260 c - 5.9 1.2 - 18 0 - 18 0 - 2 0 - 3 - 1 - 3 - 3 v - 38 C76 61 257 0
435 0 h399565z ` ,leftgroupunder: ` M400000 262
H435C64 262 168.3 112.6 21 82 c - 5.9 - 1.2 - 18 0 - 18 0 - 2 0 - 3 1 - 3 3 v38c76 158 257 219
435 219 h399565z ` ,leftharpoon: ` M0 267 c . 7 5.3 3 10 7 14 h399993v - 40 H93c3 . 3
- 3.3 10.2 - 9.5 20.5 - 18.5 s17 . 8 - 15.8 22.5 - 20.5 c50 . 7 - 52 88 - 110.3 112 - 175 4 - 11.3 5
- 18.3 3 - 21 - 1.3 - 4 - 7.3 - 6 - 18 - 6 - 8 0 - 13 . 7 - 15 2 s - 4.7 6.7 - 8 16 c - 42 98.7 - 107.3 174.7
- 196 228 - 6.7 4.7 - 10.7 8 - 12 10 - 1.3 2 - 2 5.7 - 2 11 zm100 - 26 v40h399900v - 40 z ` ,leftharpoonplus: ` M0 267 c . 7 5.3 3 10 7 14 h399993v - 40 H93c3 . 3 - 3.3 10.2 - 9.5
20.5 - 18.5 s17 . 8 - 15.8 22.5 - 20.5 c50 . 7 - 52 88 - 110.3 112 - 175 4 - 11.3 5 - 18.3 3 - 21 - 1.3
- 4 - 7.3 - 6 - 18 - 6 - 8 0 - 13 . 7 - 15 2 s - 4.7 6.7 - 8 16 c - 42 98.7 - 107.3 174.7 - 196 228 - 6.7 4.7
- 10.7 8 - 12 10 - 1.3 2 - 2 5.7 - 2 11 zm100 - 26 v40h399900v - 40 zM0 435 v40h400000v - 40 z
m0 0 v40h400000v - 40 z ` ,leftharpoondown: ` M7 241 c - 4 4 - 6.333 8.667 - 7 14 0 5.333 . 667 9 2 11 s5 . 333
5.333 12 10 c90 . 667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 . 667 5
1 9 1 h5c10 . 667 0 16.667 - 2 18 - 6 2 - 2.667 1 - 9.667 - 3 - 21 - 32 - 87.333 - 82.667 - 157.667
- 152 - 211 l - 3 - 3 h399907v - 40 zM93 281 H400000 v - 40 L7 241 z ` ,leftharpoondownplus: ` M7 435 c - 4 4 - 6.3 8.7 - 7 14 0 5.3 . 7 9 2 11 s5 . 3 5.3 12
10 c90 . 7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 . 7 5 1 9 1 h5c10 . 7 0 16.7
- 2 18 - 6 2 - 2.7 1 - 9.7 - 3 - 21 - 32 - 87.3 - 82.7 - 157.7 - 152 - 211 l - 3 - 3 h399907v - 40 H7zm93 0
v40h399900v - 40 zM0 241 v40h399900v - 40 zm0 0 v40h399900v - 40 z ` ,lefthook: ` M400000 281 H103s - 33 - 11.2 - 61 - 33.5 S0 197.3 0 164 s14 . 2 - 61.2 42.5
- 83.5 C70 . 8 58.2 104 47 142 47 c16 . 7 0 25 6.7 25 20 0 12 - 8.7 18.7 - 26 20 - 40 3.3
- 68.7 15.7 - 86 37 - 10 12 - 15 25.3 - 15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21
71.5 23 h399859zM103 281 v - 40 h399897v40z ` ,leftlinesegment: ` M40 281 V428 H0 V94 H40 V241 H400000 v40z
M40 281 V428 H0 V94 H40 V241 H400000 v40z ` ,leftmapsto: ` M40 281 V448H0V74H40V241H400000v40z
M40 281 V448H0V74H40V241H400000v40z ` ,leftToFrom: ` M0 147 h400000v40H0zm0 214 c68 40 115.7 95.7 143 167 h22c15 . 3 0 23
- . 3 23 - 1 0 - 1.3 - 5.3 - 13.7 - 16 - 37 - 18 - 35.3 - 41.3 - 69 - 70 - 101 l - 7 - 8 h399905v - 40 H95l7 - 8
c28 . 7 - 32 52 - 65.7 70 - 101 10.7 - 23.3 16 - 35.7 16 - 37 0 - . 7 - 7.7 - 1 - 23 - 1 h - 22 C115 . 7 265.3
68 321 0 361 zm0 - 174 v - 40 h399900v40zm100 154 v40h399900v - 40 z ` ,longequal: ` M0 50 h400000 v40H0z m0 194 h40000v40H0z
M0 50 h400000 v40H0z m0 194 h40000v40H0z ` ,midbrace: ` M200428 334
c - 100.7 - 8.3 - 195.3 - 44 - 280 - 108 - 55.3 - 42 - 101.7 - 93 - 139 - 153 l - 9 - 14 c - 2.7 4 - 5.7 8.7 - 9 14
- 53.3 86.7 - 123.7 153 - 211 199 - 66.7 36 - 137.3 56.3 - 212 62 H0V214h199568c178 . 3 - 11.7
311.7 - 78.3 403 - 201 6 - 8 9.7 - 12 11 - 12 . 7 - . 7 6.7 - 1 18 - 1 s17 . 3.3 18 1 c1 . 3 0 5 4 11
12 44.7 59.3 101.3 106.3 170 141 s145 . 3 54.3 229 60 h199572v120z ` ,midbraceunder: ` M199572 214
c100 . 7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153 l9 14 c2 . 7 - 4 5.7 - 8.7 9 - 14
53.3 - 86.7 123.7 - 153 211 - 199 66.7 - 36 137.3 - 56.3 212 - 62 h199568v120H200432c - 178.3
11.7 - 311.7 78.3 - 403 201 - 6 8 - 9.7 12 - 11 12 - . 7.7 - 6.7 1 - 18 1 s - 17.3 - . 3 - 18 - 1 c - 1.3 0
- 5 - 4 - 11 - 12 - 44.7 - 59.3 - 101.3 - 106.3 - 170 - 141 s - 145.3 - 54.3 - 229 - 60 H0V214z ` ,oiintSize1: ` M512 . 6 71.6 c272 . 6 0 320.3 106.8 320.3 178.2 0 70.8 - 47.7 177.6
- 320.3 177.6 S193 . 1 320.6 193.1 249.8 c0 - 71.4 46.9 - 178.2 319.5 - 178.2 z
m368 . 1 178.2 c0 - 86.4 - 60.9 - 215.4 - 368.1 - 215.4 - 306.4 0 - 367.3 129 - 367.3 215.4 0 85.8
60.9 214.8 367.3 214.8 307.2 0 368.1 - 129 368.1 - 214.8 z ` ,oiintSize2: ` M757 . 8 100.1 c384 . 7 0 451.1 137.6 451.1 230 0 91.3 - 66.4 228.8
- 451.1 228.8 - 386.3 0 - 452.7 - 137.5 - 452.7 - 228.8 0 - 92.4 66.4 - 230 452.7 - 230 z
m502 . 4 230 c0 - 111.2 - 82.4 - 277.2 - 502.4 - 277.2 s - 504 166 - 504 277.2
c0 110 84 276 504 276 s502 . 4 - 166 502.4 - 276 z ` ,oiiintSize1: ` M681 . 4 71.6 c408 . 9 0 480.5 106.8 480.5 178.2 0 70.8 - 71.6 177.6
- 480.5 177.6 S202 . 1 320.6 202.1 249.8 c0 - 71.4 70.5 - 178.2 479.3 - 178.2 z
m525 . 8 178.2 c0 - 86.4 - 86.8 - 215.4 - 525.7 - 215.4 - 437.9 0 - 524.7 129 - 524.7 215.4 0
85.8 86.8 214.8 524.7 214.8 438.9 0 525.7 - 129 525.7 - 214.8 z ` ,oiiintSize2: ` M1021 . 2 53 c603 . 6 0 707.8 165.8 707.8 277.2 0 110 - 104.2 275.8
- 707.8 275.8 - 606 0 - 710.2 - 165.8 - 710.2 - 275.8 C311 218.8 415.2 53 1021.2 53 z
m770 . 4 277.1 c0 - 131.2 - 126.4 - 327.6 - 770.5 - 327.6 S248 . 4 198.9 248.4 330.1
c0 130 128.8 326.4 772.7 326.4 s770 . 5 - 196.4 770.5 - 326.4 z ` ,rightarrow: ` M0 241 v40h399891c - 47.3 35.3 - 84 78 - 110 128
- 16.7 32 - 27.7 63.7 - 33 95 0 1.3 - . 2 2.7 - . 5 4 - . 3 1.3 - . 5 2.3 - . 5 3 0 7.3 6.7 11 20
11 8 0 13.2 - . 8 15.5 - 2.5 2.3 - 1.7 4.2 - 5.5 5.5 - 11.5 2 - 13.3 5.7 - 27 11 - 41 14.7 - 44.7
39 - 84.5 73 - 119.5 s73 . 7 - 60.2 119 - 75.5 c6 - 2 9 - 5.7 9 - 11 s - 3 - 9 - 9 - 11 c - 45.3 - 15.3 - 85
- 40.5 - 119 - 75.5 s - 58.3 - 74.8 - 73 - 119.5 c - 4.7 - 14 - 8.3 - 27.3 - 11 - 40 - 1.3 - 6.7 - 3.2 - 10.8 - 5.5
- 12.5 - 2.3 - 1.7 - 7.5 - 2.5 - 15.5 - 2.5 - 14 0 - 21 3.7 - 21 11 0 2 2 10.3 6 25 20.7 83.3 67
151.7 139 205 zm0 0 v40h399900v - 40 z ` ,rightbrace: ` M400000 542 l
- 6 6 h - 17 c - 12.7 0 - 19.3 - . 3 - 20 - 1 - 4 - 4 - 7.3 - 8.3 - 10 - 13 - 35.3 - 51.3 - 80.8 - 93.8 - 136.5 - 127.5
s - 117.2 - 55.8 - 184.5 - 66.5 c - . 7 0 - 2 - . 3 - 4 - 1 - 18.7 - 2.7 - 76 - 4.3 - 172 - 5 H0V214h399571l6 1
c124 . 7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118 l7 13 v35z ` ,rightbraceunder: ` M399994 0 l6 6 v35l - 6 11 c - 56 104 - 135.3 181.3 - 238 232 - 57.3
28.7 - 117 45 - 179 50 H - 300 V214h399897c43 . 3 - 7 81 - 15 113 - 26 100.7 - 33 179.7 - 91 237
- 174 2.7 - 5 6 - 9 10 - 13 . 7 - 1 7.3 - 1 20 - 1 h17z ` ,rightgroup: ` M0 80 h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0
3 - 1 3 - 3 v - 38 c - 76 - 158 - 257 - 219 - 435 - 219 H0z ` ,rightgroupunder: ` M0 262 h399565c371 0 266.7 - 149.4 414 - 180 5.9 - 1.2 18 0 18
0 2 0 3 1 3 3 v38c - 76 158 - 257 219 - 435 219 H0z ` ,rightharpoon: ` M0 241 v40h399993c4 . 7 - 4.7 7 - 9.3 7 - 14 0 - 9.3
- 3.7 - 15.3 - 11 - 18 - 92.7 - 56.7 - 159 - 133.7 - 199 - 231 - 3.3 - 9.3 - 6 - 14.7 - 8 - 16 - 2 - 1.3 - 7 - 2 - 15 - 2
- 10.7 0 - 16.7 2 - 18 6 - 2 2.7 - 1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58
69.2 92 94.5 zm0 0 v40h399900v - 40 z ` ,rightharpoonplus: ` M0 241 v40h399993c4 . 7 - 4.7 7 - 9.3 7 - 14 0 - 9.3 - 3.7 - 15.3 - 11
- 18 - 92.7 - 56.7 - 159 - 133.7 - 199 - 231 - 3.3 - 9.3 - 6 - 14.7 - 8 - 16 - 2 - 1.3 - 7 - 2 - 15 - 2 - 10.7 0 - 16.7
2 - 18 6 - 2 2.7 - 1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5 z
m0 0 v40h399900v - 40 z m100 194 v40h399900v - 40 zm0 0 v40h399900v - 40 z ` ,rightharpoondown: ` M399747 511 c0 7.3 6.7 11 20 11 8 0 13 - . 8 15 - 2.5 s4 . 7 - 6.8
8 - 15.5 c40 - 94 99.3 - 166.3 178 - 217 13.3 - 8 20.3 - 12.3 21 - 13 5.3 - 3.3 8.5 - 5.8 9.5
- 7.5 1 - 1.7 1.5 - 5.2 1.5 - 10.5 s - 2.3 - 10.3 - 7 - 15 H0v40h399908c - 34 25.3 - 64.7 57 - 92 95
- 27.3 38 - 48.7 77.7 - 64 119 - 3.3 8.7 - 5 14 - 5 16 zM0 241 v40h399900v - 40 z ` ,rightharpoondownplus: ` M399747 705 c0 7.3 6.7 11 20 11 8 0 13 - . 8
15 - 2.5 s4 . 7 - 6.8 8 - 15.5 c40 - 94 99.3 - 166.3 178 - 217 13.3 - 8 20.3 - 12.3 21 - 13 5.3 - 3.3
8.5 - 5.8 9.5 - 7.5 1 - 1.7 1.5 - 5.2 1.5 - 10.5 s - 2.3 - 10.3 - 7 - 15 H0v40h399908c - 34 25.3
- 64.7 57 - 92 95 - 27.3 38 - 48.7 77.7 - 64 119 - 3.3 8.7 - 5 14 - 5 16 zM0 435 v40h399900v - 40 z
m0 - 194 v40h400000v - 40 zm0 0 v40h400000v - 40 z ` ,righthook: ` M399859 241 c - 764 0 0 0 0 0 40 - 3.3 68.7 - 15.7 86 - 37 10 - 12 15 - 25.3
15 - 40 0 - 22.7 - 9.8 - 40.7 - 29.5 - 54 - 19.7 - 13.3 - 43.5 - 21 - 71.5 - 23 - 17.3 - 1.3 - 26 - 8 - 26 - 20 0
- 13.3 8.7 - 20 26 - 20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21
66.8 s - 14 61.2 - 42 83.5 c - 28 22.3 - 61 33.5 - 99 33.5 L0 241 z M0 281 v - 40 h399859v40z ` ,rightlinesegment: ` M399960 241 V94 h40 V428 h - 40 V281 H0 v - 40 z
M399960 241 V94 h40 V428 h - 40 V281 H0 v - 40 z ` ,rightToFrom: ` M400000 167 c - 70.7 - 42 - 118 - 97.7 - 142 - 167 h - 23 c - 15.3 0 - 23 . 3 - 23
1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101 l7 8 H0v40h399905l - 7 8 c - 28.7 32
- 52 65.7 - 70 101 - 10.7 23.3 - 16 35.7 - 16 37 0 . 7 7.7 1 23 1 h23c24 - 69.3 71.3 - 125 142
- 167 z M100 147 v40h399900v - 40 zM0 341 v40h399900v - 40 z ` ,twoheadleftarrow: ` M0 167 c68 40
115.7 95.7 143 167 h22c15 . 3 0 23 - . 3 23 - 1 0 - 1.3 - 5.3 - 13.7 - 16 - 37 - 18 - 35.3 - 41.3 - 69
- 70 - 101 l - 7 - 8 h125l9 7 c50 . 7 39.3 85 86 103 140 h46c0 - 4.7 - 6.3 - 18.7 - 19 - 42 - 18 - 35.3
- 40 - 67.3 - 66 - 96 l - 9 - 9 h399716v - 40 H284l9 - 9 c26 - 28.7 48 - 60.7 66 - 96 12.7 - 23.333 19
- 37.333 19 - 42 h - 46 c - 18 54 - 52.3 100.7 - 103 140 l - 9 7 H95l7 - 8 c28 . 7 - 32 52 - 65.7 70 - 101
10.7 - 23.333 16 - 35.7 16 - 37 0 - . 7 - 7.7 - 1 - 23 - 1 h - 22 C115 . 7 71.3 68 127 0 167 z ` ,twoheadrightarrow: ` M400000 167
c - 68 - 40 - 115.7 - 95.7 - 143 - 167 h - 22 c - 15.3 0 - 23 . 3 - 23 1 0 1.3 5.3 13.7 16 37 18 35.3
41.3 69 70 101 l7 8 h - 125 l - 9 - 7 c - 50.7 - 39.3 - 85 - 86 - 103 - 140 h - 46 c0 4.7 6.3 18.7 19 42
18 35.3 40 67.3 66 96 l9 9 H0v40h399716l - 9 9 c - 26 28.7 - 48 60.7 - 66 96 - 12.7 23.333
- 19 37.333 - 19 42 h46c18 - 54 52.3 - 100.7 103 - 140 l9 - 7 h125l - 7 8 c - 28.7 32 - 52 65.7 - 70
101 - 10.7 23.333 - 16 35.7 - 16 37 0 . 7 7.7 1 23 1 h22c27 . 3 - 71.3 75 - 127 143 - 167 z ` ,tilde1: ` M200 55.538 c - 77 0 - 168 73.953 - 177 73.953 - 3 0 - 7
- 2.175 - 9 - 5.437 L2 97 c - 1 - 2 - 2 - 4 - 2 - 6 0 - 4 2 - 7 5 - 9 l20 - 12 C116 12 171 0 207 0 c86 0
114 68 191 68 78 0 168 - 68 177 - 68 4 0 7 2 9 5 l12 19 c1 2.175 2 4.35 2 6.525 0
4.35 - 2 7.613 - 5 9.788 l - 19 13.05 c - 92 63.077 - 116.937 75.308 - 183 76.128
- 68.267 . 847 - 113 - 73.952 - 191 - 73.952 z ` ,tilde2: ` M344 55.266 c - 142 0 - 300.638 81.316 - 311.5 86.418
- 8.01 3.762 - 22.5 10.91 - 23.5 5.562 L1 120 c - 1 - 2 - 1 - 3 - 1 - 4 0 - 5 3 - 9 8 - 10 l18 . 4 - 9 C160 . 9
31.9 283 0 358 0 c148 0 188 122 331 122 s314 - 97 326 - 97 c4 0 8 2 10 7 l7 21.114
c1 2.14 1 3.21 1 4.28 0 5.347 - 3 9.626 - 7 10.696 l - 22.3 12.622 C852 . 6 158.372 751
181.476 676 181.476 c - 149 0 - 189 - 126.21 - 332 - 126.21 z ` ,tilde3: ` M786 59 C457 59 32 175.242 13 175.242 c - 6 0 - 10 - 3.457
- 11 - 10.37 L . 15 138 c - 1 - 7 3 - 12 10 - 13 l19 . 2 - 6.4 C378 . 4 40.7 634.3 0 804.3 0 c337 0
411.8 157 746.8 157 328 0 754 - 112 773 - 112 5 0 10 3 11 9 l1 14.075 c1 8.066 - . 697
16.595 - 6.697 17.492 l - 21.052 7.31 c - 367.9 98.146 - 609.15 122.696 - 778.15 122.696
- 338 0 - 409 - 156.573 - 744 - 156.573 z ` ,tilde4: ` M786 58 C457 58 32 177.487 13 177.487 c - 6 0 - 10 - 3.345
- 11 - 10.035 L . 15 143 c - 1 - 7 3 - 12 10 - 13 l22 - 6.7 C381 . 2 35 637.15 0 807.15 0 c337 0 409
177 744 177 328 0 754 - 127 773 - 127 5 0 10 3 11 9 l1 14.794 c1 7.805 - 3 13.38 - 9
14.495 l - 20.7 5.574 c - 366.85 99.79 - 607.3 139.372 - 776.3 139.372 - 338 0 - 409
- 175.236 - 744 - 175.236 z ` ,vec: ` M377 20 c0 - 5.333 1.833 - 10 5.5 - 14 S391 0 397 0 c4 . 667 0 8.667 1.667 12 5
3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11
10.667 11 18 0 6 - 1 10 - 3 12 s - 6.667 5 - 14 9 c - 28.667 14.667 - 53.667 35.667 - 75 63
- 1.333 1.333 - 3.167 3.5 - 5.5 6.5 s - 4 4.833 - 5 5.5 c - 1 . 667 - 2.5 1.333 - 4.5 2 s - 4.333 1
- 7 1 c - 4.667 0 - 9.167 - 1.833 - 13.5 - 5.5 S337 184 337 178 c0 - 12.667 15.667 - 32.333 47 - 59
H213l - 171 - 1 c - 8.667 - 6 - 13 - 12.333 - 13 - 19 0 - 4.667 4.333 - 11.333 13 - 20 h359
c - 16 - 25.333 - 24 - 45 - 24 - 59 z ` ,widehat1: ` M529 0 h5l519 115 c5 1 9 5 9 10 0 1 - 1 2 - 1 3 l - 4 22
c - 1 5 - 5 9 - 11 9 h - 2 L532 67 19 159 h - 2 c - 5 0 - 9 - 4 - 11 - 9 l - 5 - 22 c - 1 - 6 2 - 12 8 - 13 z ` ,widehat2: ` M1181 0 h2l1171 176 c6 0 10 5 10 11 l - 2 23 c - 1 6 - 5 10
- 11 10 h - 1 L1182 67 15 220 h - 1 c - 6 0 - 10 - 4 - 11 - 10 l - 2 - 23 c - 1 - 6 4 - 11 10 - 11 z ` ,widehat3: ` M1181 0 h2l1171 236 c6 0 10 5 10 11 l - 2 23 c - 1 6 - 5 10
- 11 10 h - 1 L1182 67 15 280 h - 1 c - 6 0 - 10 - 4 - 11 - 10 l - 2 - 23 c - 1 - 6 4 - 11 10 - 11 z ` ,widehat4: ` M1181 0 h2l1171 296 c6 0 10 5 10 11 l - 2 23 c - 1 6 - 5 10
- 11 10 h - 1 L1182 67 15 340 h - 1 c - 6 0 - 10 - 4 - 11 - 10 l - 2 - 23 c - 1 - 6 4 - 11 10 - 11 z ` ,widecheck1: ` M529 , 159 h5l519 , - 115 c5 , - 1 , 9 , - 5 , 9 , - 10 c0 , - 1 , - 1 , - 2 , - 1 , - 3 l - 4 , - 22 c - 1 ,
- 5 , - 5 , - 9 , - 11 , - 9 h - 2 l - 512 , 92 l - 513 , - 92 h - 2 c - 5 , 0 , - 9 , 4 , - 11 , 9 l - 5 , 22 c - 1 , 6 , 2 , 12 , 8 , 13 z ` ,widecheck2: ` M1181 , 220 h2l1171 , - 176 c6 , 0 , 10 , - 5 , 10 , - 11 l - 2 , - 23 c - 1 , - 6 , - 5 , - 10 ,
- 11 , - 10 h - 1 l - 1168 , 153 l - 1167 , - 153 h - 1 c - 6 , 0 , - 10 , 4 , - 11 , 10 l - 2 , 23 c - 1 , 6 , 4 , 11 , 10 , 11 z ` ,widecheck3: ` M1181 , 280 h2l1171 , - 236 c6 , 0 , 10 , - 5 , 10 , - 11 l - 2 , - 23 c - 1 , - 6 , - 5 , - 10 ,
- 11 , - 10 h - 1 l - 1168 , 213 l - 1167 , - 213 h - 1 c - 6 , 0 , - 10 , 4 , - 11 , 10 l - 2 , 23 c - 1 , 6 , 4 , 11 , 10 , 11 z ` ,widecheck4: ` M1181 , 340 h2l1171 , - 296 c6 , 0 , 10 , - 5 , 10 , - 11 l - 2 , - 23 c - 1 , - 6 , - 5 , - 10 ,
- 11 , - 10 h - 1 l - 1168 , 273 l - 1167 , - 273 h - 1 c - 6 , 0 , - 10 , 4 , - 11 , 10 l - 2 , 23 c - 1 , 6 , 4 , 11 , 10 , 11 z ` ,baraboveleftarrow: ` M400000 620 h - 399890 l3 - 3 c68 . 7 - 52.7 113.7 - 120 135 - 202
c4 - 14.7 6 - 23 6 - 25 c0 - 7.3 - 7 - 11 - 21 - 11 c - 8 0 - 13.2 0.8 - 15.5 2.5
c - 2.3 1.7 - 4.2 5.8 - 5.5 12.5 c - 1.3 4.7 - 2.7 10.3 - 4 17 c - 12 48.7 - 34.8 92 - 68.5 130
s - 74.2 66.3 - 121.5 85 c - 10 4 - 16 7.7 - 18 11 c0 8.7 6 14.3 18 17 c47 . 3 18.7 87.8 47
121.5 85 s56 . 5 81.3 68.5 130 c0 . 7 2 1.3 5 2 9 s1 . 2 6.7 1.5 8 c0 . 3 1.3 1 3.3 2 6
s2 . 2 4.5 3.5 5.5 c1 . 3 1 3.3 1.8 6 2.5 s6 1 10 1 c14 0 21 - 3.7 21 - 11
c0 - 2 - 2 - 10.3 - 6 - 25 c - 20 - 79.3 - 65 - 146.7 - 135 - 202 l - 3 - 3 h399890z
M100 620 v40h399900v - 40 z M0 241 v40h399900v - 40 zM0 241 v40h399900v - 40 z ` ,rightarrowabovebar: ` M0 241 v40h399891c - 47.3 35.3 - 84 78 - 110 128 - 16.7 32
- 27.7 63.7 - 33 95 0 1.3 - . 2 2.7 - . 5 4 - . 3 1.3 - . 5 2.3 - . 5 3 0 7.3 6.7 11 20 11 8 0
13.2 - . 8 15.5 - 2.5 2.3 - 1.7 4.2 - 5.5 5.5 - 11.5 2 - 13.3 5.7 - 27 11 - 41 14.7 - 44.7 39
- 84.5 73 - 119.5 s73 . 7 - 60.2 119 - 75.5 c6 - 2 9 - 5.7 9 - 11 s - 3 - 9 - 9 - 11 c - 45.3 - 15.3 - 85 - 40.5
- 119 - 75.5 s - 58.3 - 74.8 - 73 - 119.5 c - 4.7 - 14 - 8.3 - 27.3 - 11 - 40 - 1.3 - 6.7 - 3.2 - 10.8 - 5.5
- 12.5 - 2.3 - 1.7 - 7.5 - 2.5 - 15.5 - 2.5 - 14 0 - 21 3.7 - 21 11 0 2 2 10.3 6 25 20.7 83.3 67
151.7 139 205 zm96 379 h399894v40H0zm0 0 h399904v40H0z ` ,baraboveshortleftharpoon: ` M507 , 435 c - 4 , 4 , - 6.3 , 8.7 , - 7 , 14 c0 , 5.3 , 0.7 , 9 , 2 , 11
c1 . 3 , 2 , 5.3 , 5.3 , 12 , 10 c90 . 7 , 54 , 156 , 130 , 196 , 228 c3 . 3 , 10.7 , 6.3 , 16.3 , 9 , 17
c2 , 0.7 , 5 , 1 , 9 , 1 c0 , 0 , 5 , 0 , 5 , 0 c10 . 7 , 0 , 16.7 , - 2 , 18 , - 6 c2 , - 2.7 , 1 , - 9.7 , - 3 , - 21
c - 32 , - 87.3 , - 82.7 , - 157.7 , - 152 , - 211 c0 , 0 , - 3 , - 3 , - 3 , - 3 l399351 , 0 l0 , - 40
c - 398570 , 0 , - 399437 , 0 , - 399437 , 0 z M593 435 v40 H399500 v - 40 z
M0 281 v - 40 H399908 v40z M0 281 v - 40 H399908 v40z ` ,rightharpoonaboveshortbar: ` M0 , 241 l0 , 40 c399126 , 0 , 399993 , 0 , 399993 , 0
c4 . 7 , - 4.7 , 7 , - 9.3 , 7 , - 14 c0 , - 9.3 , - 3.7 , - 15.3 , - 11 , - 18 c - 92.7 , - 56.7 , - 159 , - 133.7 , - 199 ,
- 231 c - 3.3 , - 9.3 , - 6 , - 14.7 , - 8 , - 16 c - 2 , - 1.3 , - 7 , - 2 , - 15 , - 2 c - 10.7 , 0 , - 16.7 , 2 , - 18 , 6
c - 2 , 2.7 , - 1 , 9.7 , 3 , 21 c15 . 3 , 42 , 36.7 , 81.8 , 64 , 119.5 c27 . 3 , 37.7 , 58 , 69.2 , 92 , 94.5 z
M0 241 v40 H399908 v - 40 z M0 475 v - 40 H399500 v40z M0 475 v - 40 H399500 v40z ` ,shortbaraboveleftharpoon: ` M7 , 435 c - 4 , 4 , - 6.3 , 8.7 , - 7 , 14 c0 , 5.3 , 0.7 , 9 , 2 , 11
c1 . 3 , 2 , 5.3 , 5.3 , 12 , 10 c90 . 7 , 54 , 156 , 130 , 196 , 228 c3 . 3 , 10.7 , 6.3 , 16.3 , 9 , 17 c2 , 0.7 , 5 , 1 , 9 ,
1 c0 , 0 , 5 , 0 , 5 , 0 c10 . 7 , 0 , 16.7 , - 2 , 18 , - 6 c2 , - 2.7 , 1 , - 9.7 , - 3 , - 21 c - 32 , - 87.3 , - 82.7 , - 157.7 ,
- 152 , - 211 c0 , 0 , - 3 , - 3 , - 3 , - 3 l399907 , 0 l0 , - 40 c - 399126 , 0 , - 399993 , 0 , - 399993 , 0 z
M93 435 v40 H400000 v - 40 z M500 241 v40 H400000 v - 40 z M500 241 v40 H400000 v - 40 z ` ,shortrightharpoonabovebar: ` M53 , 241 l0 , 40 c398570 , 0 , 399437 , 0 , 399437 , 0
c4 . 7 , - 4.7 , 7 , - 9.3 , 7 , - 14 c0 , - 9.3 , - 3.7 , - 15.3 , - 11 , - 18 c - 92.7 , - 56.7 , - 159 , - 133.7 , - 199 ,
- 231 c - 3.3 , - 9.3 , - 6 , - 14.7 , - 8 , - 16 c - 2 , - 1.3 , - 7 , - 2 , - 15 , - 2 c - 10.7 , 0 , - 16.7 , 2 , - 18 , 6
c - 2 , 2.7 , - 1 , 9.7 , 3 , 21 c15 . 3 , 42 , 36.7 , 81.8 , 64 , 119.5 c27 . 3 , 37.7 , 58 , 69.2 , 92 , 94.5 z
2024-11-13 12:07:54 +02:00
M500 241 v40 H399408 v - 40 z M500 435 v40 H400000 v - 40 z ` },Cbe=o(function(e,r){switch(e){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+r+ ` v1759 h347 v - 84
H403z M403 1759 V0 H319 V1759 v ` +r+" v1759 h84z";case"rbrack":return"M347 1759 V0 H0 V84 H263 V1759 v"+r+ ` v1759 H0 v84 H347z
M347 1759 V0 H263 V1759 v ` +r+" v1759 h84z";case"vert":return"M145 15 v585 v"+r+ ` v585 c2 . 667 , 10 , 9.667 , 15 , 21 , 15
c10 , 0 , 16.667 , - 5 , 20 , - 15 v - 585 v ` +-r+ ` v - 585 c - 2.667 , - 10 , - 9.667 , - 15 , - 21 , - 15
c - 10 , 0 , - 16.667 , 5 , - 20 , 15 z M188 15 H145 v585 v ` +r+" v585 h43z";case"doublevert":return"M145 15 v585 v"+r+ ` v585 c2 . 667 , 10 , 9.667 , 15 , 21 , 15
c10 , 0 , 16.667 , - 5 , 20 , - 15 v - 585 v ` +-r+ ` v - 585 c - 2.667 , - 10 , - 9.667 , - 15 , - 21 , - 15
c - 10 , 0 , - 16.667 , 5 , - 20 , 15 z M188 15 H145 v585 v ` +r+ ` v585 h43z
M367 15 v585 v ` +r+ ` v585 c2 . 667 , 10 , 9.667 , 15 , 21 , 15
c10 , 0 , 16.667 , - 5 , 20 , - 15 v - 585 v ` +-r+ ` v - 585 c - 2.667 , - 10 , - 9.667 , - 15 , - 21 , - 15
c - 10 , 0 , - 16.667 , 5 , - 20 , 15 z M410 15 H367 v585 v ` +r+" v585 h43z";case"lfloor":return"M319 602 V0 H403 V602 v"+r+ ` v1715 h263 v84 H319z
MM319 602 V0 H403 V602 v ` +r+" v1715 H319z";case"rfloor":return"M319 602 V0 H403 V602 v"+r+ ` v1799 H0 v - 84 H319z
MM319 602 V0 H403 V602 v ` +r+" v1715 H319z";case"lceil":return"M403 1759 V84 H666 V0 H319 V1759 v"+r+ ` v602 h84z
M403 1759 V0 H319 V1759 v ` +r+" v602 h84z";case"rceil":return"M347 1759 V0 H0 V84 H263 V1759 v"+r+ ` v602 h84z
M347 1759 V0 h - 84 V1759 v ` +r+" v602 h84z";case"lparen":return ` M863 , 9 c0 , - 2 , - 2 , - 5 , - 6 , - 9 c0 , 0 , - 17 , 0 , - 17 , 0 c - 12.7 , 0 , - 19.3 , 0.3 , - 20 , 1
2024-05-27 09:53:57 +02:00
c - 5.3 , 5.3 , - 10.3 , 11 , - 15 , 17 c - 242.7 , 294.7 , - 395.3 , 682 , - 458 , 1162 c - 21.3 , 163.3 , - 33.3 , 349 ,
2024-11-13 12:07:54 +02:00
- 36 , 557 l0 , ` +(r+84)+ ` c0 . 2 , 6 , 0 , 26 , 0 , 60 c2 , 159.3 , 10 , 310.7 , 24 , 454 c53 . 3 , 528 , 210 ,
2024-05-27 09:53:57 +02:00
949.7 , 470 , 1265 c4 . 7 , 6 , 9.7 , 11.7 , 15 , 17 c0 . 7 , 0.7 , 7 , 1 , 19 , 1 c0 , 0 , 18 , 0 , 18 , 0 c4 , - 4 , 6 , - 7 , 6 , - 9
c0 , - 2.7 , - 3.3 , - 8.7 , - 10 , - 18 c - 135.3 , - 192.7 , - 235.5 , - 414.3 , - 300.5 , - 665 c - 65 , - 250.7 , - 102.5 ,
- 544.7 , - 112.5 , - 882 c - 2 , - 104 , - 3 , - 167 , - 3 , - 189
2024-11-13 12:07:54 +02:00
l0 , - ` +(r+92)+ ` c0 , - 162.7 , 5.7 , - 314 , 17 , - 454 c20 . 7 , - 272 , 63.7 , - 513 , 129 , - 723 c65 . 3 ,
2024-05-27 09:53:57 +02:00
- 210 , 155.3 , - 396.3 , 270 , - 559 c6 . 7 , - 9.3 , 10 , - 15.3 , 10 , - 18 z ` ;case"rparen":return ` M76 , 0 c - 16.7 , 0 , - 25 , 3 , - 25 , 9 c0 , 2 , 2 , 6.3 , 6 , 13 c21 . 3 , 28.7 , 42.3 , 60.3 ,
63 , 95 c96 . 7 , 156.7 , 172.8 , 332.5 , 228.5 , 527.5 c55 . 7 , 195 , 92.8 , 416.5 , 111.5 , 664.5
2024-11-13 12:07:54 +02:00
c11 . 3 , 139.3 , 17 , 290.7 , 17 , 454 c0 , 28 , 1.7 , 43 , 3.3 , 45 l0 , ` +(r+9)+ `
2024-05-27 09:53:57 +02:00
c - 3 , 4 , - 3.3 , 16.7 , - 3.3 , 38 c0 , 162 , - 5.7 , 313.7 , - 17 , 455 c - 18.7 , 248 , - 55.8 , 469.3 , - 111.5 , 664
c - 55.7 , 194.7 , - 131.8 , 370.3 , - 228.5 , 527 c - 20.7 , 34.7 , - 41.7 , 66.3 , - 63 , 95 c - 2 , 3.3 , - 4 , 7 , - 6 , 11
c0 , 7.3 , 5.7 , 11 , 17 , 11 c0 , 0 , 11 , 0 , 11 , 0 c9 . 3 , 0 , 14.3 , - 0.3 , 15 , - 1 c5 . 3 , - 5.3 , 10.3 , - 11 , 15 , - 17
c242 . 7 , - 294.7 , 395.3 , - 681.7 , 458 , - 1161 c21 . 3 , - 164.7 , 33.3 , - 350.7 , 36 , - 558
2024-11-13 12:07:54 +02:00
l0 , - ` +(r+144)+ ` c - 2 , - 159.3 , - 10 , - 310.7 , - 24 , - 454 c - 53.3 , - 528 , - 210 , - 949.7 ,
- 470 , - 1265 c - 4.7 , - 6 , - 9.7 , - 11.7 , - 15 , - 17 c - 0.7 , - 0.7 , - 6.7 , - 1 , - 18 , - 1 z ` ;default:throw new Error("Unknown stretchy delimiter.")}},"tallDelim"),rd=class{static{o(this,"DocumentFragment")}constructor(e){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=e,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(e){return Jt.contains(this.classes,e)}toNode(){for(var e=document.createDocumentFragment(),r=0;r<this.children.length;r++)e.appendChild(this.children[r].toNode());return e}toMarkup(){for(var e="",r=0;r<this.children.length;r++)e+=this.children[r].toMarkup();return e}toText(){var e=o(r=>r.toText(),"toText");return this.children.map(e).join("")}},lc={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.
` +L+" children.");for(var D=0;D<L;D++){var k=new cc(w[D]),R=new vl([k],{width:"400em",height:gt(E),viewBox:"0 0 "+l+" "+T,preserveAspectRatio:A[D]+" slice"}),C=Fe.makeSvgSpan([S[D]],[R],r);if(L===1)return{span:C,minWidth:_,height:E};C.style.height=gt(E),x.push(C)}return{span:Fe.makeSpan(["stretchy"],x,r),minWidth:_,height:E}}}o(n,"buildSvgSpan_");var{span:i,minWidth:a,height:s}=n();return i.height=s,i.style.height=gt(s),a>0&&(i.style.minWidth=gt(a)),i},"svgSpan"),l4e=o(function(e,r,n,i,a){var s,l=e.height+e.depth+n+i;if(/fbox|color|angl/.test(r)){if(s=Fe.makeSpan(["stretchy",r],[],a),r==="fbox"){var u=a.color&&a.getColor();u&&(s.style.borderColor=u)}}else{var h=[];/^[bx]cancel $ /.test(r)&&h.push(new gy({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel $ /.test(r)&&h.push(new gy({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var f=new vl(h,{width:"100%",height:gt(l)});s=Fe.makeSvgSpan([],[f],a)}return s.height=l,s.style.height=gt(l),s},"encloseSpan"),mu={encloseSpan:l4e,mathMLnode:i4e,svgSpan:o4e};o(gr,"assertNodeType");o(FC,"assertSymbolNodeType");o(N4,"checkSymbolNodeType");zC=o((t,e)=>{var r,n,i;t&&t.type==="supsub"?(n=gr(t.base,"accent"),r=n.base,t.base=r,i=Rbe(Pr(t,e)),t.base=n):(n=gr(t,"accent"),r=n.base);var a=Pr(r,e.havingCrampedStyle()),s=n.isShifty&&Jt.isCharacterBox(r),l=0;if(s){var u=Jt.getBaseElem(r),h=Pr(u,e.havingCrampedStyle());l=sG(h).skew}var f=n.label===" \\ c",d=f?a.height+a.depth:Math.min(a.height,e.fontMetrics().xHeight),p;if(n.isStretchy)p=mu.svgSpan(n,e),p=Fe.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"elem",elem:p,wrapperClasses:["svg-align"],wrapperStyle:l>0?{width:"calc(100% - "+gt(2*l)+")",marginLeft:gt(2*l)}:void 0}]},e);else{var m,g;n.label===" \\ vec"?(m=Fe.staticSvg("vec",e),g=Fe.svgData.vec[1]):(m=Fe.makeOrd({mode:n.mode,text:n.label},e,"textord"),m=sG(m),m.italic=0,g=m.width,f&&(d+=m.depth)),p=Fe.makeSpan(["accent-body"],[m]);var y=n.label===" \\ textcircled";y&&(p.classes.push("accent-full"),d=a.height);var v=l;y||(v-=g/2),p.style.left=gt(v),n.label===" \\ textcircled"&&(p.style.top=".2em"),p=Fe.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"kern",size:-d},{type:"elem",elem:p}]},e)}var x=Fe.makeSpan(["mord","accent"],[p],e);return i?(i.children[0]=x,i.height=Math.max(x.height,i.height),i.classes[0]="mord",i):x},"htmlBuilder $ a"),jG=o((t,e)=>{var r=t.isStretchy?mu.mathMLnode(t.label):new at.MathNode("mo",[Mo(t.label,t.mode)]),n=new at.MathNode("mover",[yn(t.base,e),r]);return n.setAttribute("accent","true"),n},"mathmlBuilder $ 9"),c4e=new RegExp([" \\ acute"," \\ grave"," \\ ddot"," \\ tilde"," \\ bar"," \\ breve"," \\ check"," \\ hat"," \\ vec"," \\ dot"," \\ mathring"].map(t=>" \\ "+t).join("|"));St({type:"accent",names:[" \\ acute"," \\ grave"," \\ ddot"," \\ tilde"," \\ bar"," \\ breve"," \\ check"," \\ hat"," \\ vec"," \\ dot"," \\ mathring"," \\ widecheck"," \\ widehat"," \\ widetilde"," \\ overrightarrow"," \\ overleftarrow"," \\ Overrightarrow"," \\ overleftrightarrow"," \\ overgroup"," \\ overlinesegment"," \\ overleftharpoon"," \\ overrightharpoon"],props:{numArgs:1},handler:o((t,e)=>{var r=C4(e[0]),n=!c4e.test(t.funcName),i=!n||t.funcName===" \\ widehat"||t.funcName===" \\ widetilde"||t.funcName===" \\ widecheck";return{type:"accent",mode:t.parser.mode,label:t.funcName,isStretchy:n,isShifty:i,base:r}},"handler"),htmlBuilder:zC,mathmlBuilder:jG});St({type:"accent",names:[" \\ '"," \\ ` "," \ \ ^ "," \ \ ~ "," \ \ = "," \ \ u "," \ \ . ",'\\" ',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:o((t,e)=>{var r=e[0],n=t.parser.mode;return n==="math"&&(t.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX' s accent "+t.funcName+" works only in text mode "),n=" text "),{type:" accent ",mode:n,label:t.funcName,isStretchy:!1,isShifty:!0,base:r}}," handler "),htmlBuilder:zC,mathmlBuilder:jG});St({type:" accentUnder ",names:[" \ \ underleftarrow "," \ \ underrightarrow "," \ \ underleftrightarrow "," \ \ undergroup "," \ \ underlinesegment "," \ \ utilde " ] , props : { numArgs : 1 } , handler : o ( ( t , e ) => { var { parser : r , funcName : n } = t , i = e [ 0 ] ; ret
] ` ,P4e=" \\ \\ [a-zA-Z@]+",B4e=" \\ \\ [^ \u D800- \u DFFF]",F4e="("+P4e+")"+T $ +"*",z4e= ` \ \ \ \ (
2024-05-27 09:53:57 +02:00
| [ \ r ] +
2024-11-13 12:07:54 +02:00
? ) [ \ r ] * ` ,DC="[ \u 0300- \u 036F]",G4e=new RegExp(DC+"+ $ "), $ 4e="("+T $ +"+)|"+(z4e+"|")+"([!- \\ [ \\ ]- \u 2027 \u 202A- \u D7FF \u F900- \u FFFF]"+(DC+"*")+"|[ \u D800- \u DBFF][ \u DC00- \u DFFF]"+(DC+"*")+"| \\ \\ verb \\ *([^]).*? \\ 4| \\ \\ verb([^*a-zA-Z]).*? \\ 5"+("|"+F4e)+("|"+B4e+")"),A4=class{static{o(this,"Lexer")}constructor(e,r){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=e,this.settings=r,this.tokenRegex=new RegExp( $ 4e,"g"),this.catcodes={"%":14,"~":13}}setCatcode(e,r){this.catcodes[e]=r}lex(){var e=this.input,r=this.tokenRegex.lastIndex;if(r===e.length)return new Ro("EOF",new Js(this,r,r));var n=this.tokenRegex.exec(e);if(n===null||n.index!==r)throw new lt("Unexpected character: '"+e[r]+"'",new Ro(e[r],new Js(this,r,r+1)));var i=n[6]||n[3]||(n[2]?" \\ ":" ");if(this.catcodes[i]===14){var a=e.indexOf( `
` ,this.tokenRegex.lastIndex);return a===-1?(this.tokenRegex.lastIndex=e.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $ )")):this.tokenRegex.lastIndex=a+1,this.lex()}return new Ro(i,new Js(this,r,this.tokenRegex.lastIndex))}},NC=class{static{o(this,"Namespace")}constructor(e,r){e===void 0&&(e={}),r===void 0&&(r={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=r,this.builtins=e,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new lt("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var e=this.undefStack.pop();for(var r in e)e.hasOwnProperty(r)&&(e[r]==null?delete this.current[r]:this.current[r]=e[r])}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(e){return this.current.hasOwnProperty(e)||this.builtins.hasOwnProperty(e)}get(e){return this.current.hasOwnProperty(e)?this.current[e]:this.builtins[e]}set(e,r,n){if(n===void 0&&(n=!1),n){for(var i=0;i<this.undefStack.length;i++)delete this.undefStack[i][e];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][e]=r)}else{var a=this.undefStack[this.undefStack.length-1];a&&!a.hasOwnProperty(e)&&(a[e]=this.current[e])}r==null?delete this.current[e]:this.current[e]=r}},V4e=h $ ;le(" \\ noexpand",function(t){var e=t.popToken();return t.isExpandable(e.text)&&(e.noexpand=!0,e.treatAsRelax=!0),{tokens:[e],numArgs:0}});le(" \\ expandafter",function(t){var e=t.popToken();return t.expandOnce(!0),{tokens:[e],numArgs:0}});le(" \\ @firstoftwo",function(t){var e=t.consumeArgs(2);return{tokens:e[0],numArgs:0}});le(" \\ @secondoftwo",function(t){var e=t.consumeArgs(2);return{tokens:e[1],numArgs:0}});le(" \\ @ifnextchar",function(t){var e=t.consumeArgs(3);t.consumeSpaces();var r=t.future();return e[0].length===1&&e[0][0].text===r.text?{tokens:e[1],numArgs:0}:{tokens:e[2],numArgs:0}});le(" \\ @ifstar"," \\ @ifnextchar *{ \\ @firstoftwo{#1}}");le(" \\ TextOrMath",function(t){var e=t.consumeArgs(2);return t.mode==="text"?{tokens:e[0],numArgs:0}:{tokens:e[1],numArgs:0}});LG={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};le(" \\ char",function(t){var e=t.popToken(),r,n="";if(e.text==="'")r=8,e=t.popToken();else if(e.text==='"')r=16,e=t.popToken();else if(e.text===" ` ")if(e=t.popToken(),e.text[0]===" \ \ ")n=e.text.charCodeAt(1);else{if(e.text===" EOF ")throw new lt(" \ \ char ` missing argument");n=e.text.charCodeAt(0)}else r=10;if(r){if(n=LG[e.text],n==null||n>=r)throw new lt("Invalid base-"+r+" digit "+e.text);for(var i;(i=LG[t.future().text])!=null&&i<r;)n*=r,n+=i,t.popToken()}return" \\ @char{"+n+"}"});qC=o((t,e,r)=>{var n=t.consumeArg().tokens;if(n.length!==1)throw new lt(" \\ newcommand's first argument must be a macro name");var i=n[0].text,a=t.isDefined(i);if(a&&!e)throw new lt(" \\ newcommand{"+i+"} attempting to redefine "+(i+"; use \\ renewcommand"));if(!a&&!r)throw new lt(" \\ renewcommand{"+i+"} when command "+i+" does not yet exist; use \\ newcommand");var s=0;if(n=t.consumeArg().tokens,n.length===1&&n[0].text==="["){for(var l="",u=t.expandNextToken();u.text!=="]"&&u.text!=="EOF";)l+=u.text,u=t.expandNextToken();if(!l.match(/^ \s *[0-9]+ \s * $ /))throw new lt("Invalid number of arguments: "+l);s=parseInt(l),n=t.consumeArg().tokens}return t.macros.set(i,{tokens:n,numArgs:s}),""},"newcommand");le(" \\ newcommand",t=>qC(t,!1,!0));le(" \\ renewcommand",t=>qC(t,!0,!1));le(" \\ providecommand",t=>qC(t,!0,!0));le(" \\ message",t=>{var e=t.consumeArgs(1)[0];return console.log(e.reverse().map(r=>r.text).join("")),""});le(" \\ errmessage",t=>{var e=t.consumeArgs(1)[0];return console.error(e.reverse().map(r=>r.text).join("")),""});le(" \\ show",t=>{var e=t.popToken(),r=e.text;return console.log(e,t.macros.get(r),gh[r],Cn.math[r],Cn.text[r]),""});le(" \\ bgroup","{");le(" \\ egroup","}");le("~"," \\ nobreakspace");le(" \\ lq"," ` ");le(" \ \ rq "," ' ");le(" \ \ aa "," \ \ r a ");le(" \ \ AA "," \ \ r A ");le(" \ \ textcopyright "," \ \ html @ mathml { \ \ textcircled { c } } { \ \ ch
please report what input caused this bug ` );return n=n.slice(1,-1),{type:"verb",mode:"text",body:n,star:i}}RG.hasOwnProperty(r[0])&&!Cn[this.mode][r[0]]&&(this.settings.strict&&this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+r[0]+'" used in math mode',e),r=RG[r[0]]+r.slice(1));var a=G4e.exec(r);a&&(r=r.substring(0,a.index),r==="i"?r=" \u 0131":r==="j"&&(r=" \u 0237"));var s;if(Cn[this.mode][r]){this.settings.strict&&this.mode==="math"&&EC.indexOf(r)>=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+r[0]+'" used in math mode',e);var l=Cn[this.mode][r].group,u=Js.range(e),h;if(Mbe.hasOwnProperty(l)){var f=l;h={type:"atom",mode:this.mode,family:f,loc:u,text:r}}else h={type:l,mode:this.mode,loc:u,text:r};s=h}else if(r.charCodeAt(0)>=128)this.settings.strict&&(IG(r.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+r[0]+'" used in math mode',e):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+r[0]+'"'+(" ("+r.charCodeAt(0)+")"),e)),s={type:"textord",mode:"text",loc:Js.range(e),text:r};else return null;if(this.consume(),a)for(var d=0;d<a[0].length;d++){var p=a[0][d];if(!bC[p])throw new lt("Unknown accent ' "+p+"'",e);var m=bC[p][this.mode]||bC[p].text;if(!m)throw new lt("Accent "+p+" unsupported in "+this.mode+" mode",e);s={type:"accent",mode:this.mode,loc:Js.range(e),label:m,isStretchy:!1,isShifty:!0,base:s}}return s}};_4.endOfExpression=["}"," \\ endgroup"," \\ end"," \\ right","&"];jC=o(function(e,r){if(!(typeof e=="string"||e instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var n=new _4(e,r);delete n.gullet.macros.current[" \\ df@tag"];var i=n.parse();if(delete n.gullet.macros.current[" \\ current@color"],delete n.gullet.macros.current[" \\ color"],n.gullet.macros.get(" \\ df@tag")){if(!r.displayMode)throw new lt(" \\ tag works only in display equations");i=[{type:"tag",mode:"text",body:i,tag:n.subparse([new Ro(" \\ df@tag")])}]}return i},"parseTree"),C $ =o(function(e,r,n){r.textContent="";var i=KC(e,n).toNode();r.appendChild(i)},"render");typeof document<"u"&&document.compatMode!=="CSS1Compat"&&(typeof console<"u"&&console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype."),C $ =o(function(){throw new lt("KaTeX doesn't work in quirks mode.")},"render"));U4e=o(function(e,r){var n=KC(e,r).toMarkup();return n},"renderToString"),H4e=o(function(e,r){var n=new dy(r);return jC(e,n)},"generateParseTree"),A $ =o(function(e,r,n){if(n.throwOnError||!(e instanceof lt))throw e;var i=Fe.makeSpan(["katex-error"],[new Es(r)]);return i.setAttribute("title",e.toString()),i.setAttribute("style","color:"+n.errorColor),i},"renderError"),KC=o(function(e,r){var n=new dy(r);try{var i=jC(e,n);return t4e(i,e,n)}catch(a){return A $ (a,e,n)}},"renderToDomTree"),W4e=o(function(e,r){var n=new dy(r);try{var i=jC(e,n);return r4e(i,e,n)}catch(a){return A $ (a,e,n)}},"renderToHTMLTree"),Y4e={version:"0.16.11",render:C $ ,renderToString:U4e,ParseError:lt,SETTINGS_SCHEMA:x4,__parse:H4e,__renderToDomTree:KC,__renderToHTMLTree:W4e,__setFontMetrics:Abe,__defineSymbol: $ ,__defineFunction:St,__defineMacro:le,__domTree:{Span:nd,Anchor:my,SymbolNode:Es,SvgNode:vl,PathNode:cc,LineNode:gy}}});function j4e(){let t="data-temp-href-target";Ap.default.addHook("beforeSanitizeAttributes",e=>{e.tagName==="A"&&e.hasAttribute("target")&&e.setAttribute(t,e.getAttribute("target")??"")}),Ap.default.addHook("afterSanitizeAttributes",e=>{e.tagName==="A"&&e.hasAttribute(t)&&(e.setAttribute("target",e.getAttribute(t)??""),e.removeAttribute(t),e.getAttribute("target")==="_blank"&&e.setAttribute("rel","noopener"))})}var Ap,ad,q4e,X4e,R $ ,D $ ,kr,K4e,Q4e,Z4e,J4e,M $ ,e3e,xr,t3e,r3e,yu,QC,n3e,i3e,N $ ,ZC,yi,sd,bh,qe,fr=M(()=>{"use strict";Ap=Ji(lC(),1),ad=/<br \s * \/ ?>/gi,q4e=o(t=>t?M $ (t).replace(/ \\ n/g,"#br#").split("#br#"):[""],"getRows"),X4e=(()=>{let t=!1;return()=>{t||(j4e(),t=!0)}})();o(j4e,"setupDompurifyHooks");R $ =o(t=
font - family : $ { r . fontFamily } ;
font - size : $ { r . fontSize } ;
fill : $ { r . textColor }
}
/* Classes common for multiple diagrams */
& . error - icon {
fill : $ { r . errorBkgColor } ;
}
& . error - text {
fill : $ { r . errorTextColor } ;
stroke : $ { r . errorTextColor } ;
}
& . edge - thickness - normal {
stroke - width : 1 px ;
}
& . edge - thickness - thick {
stroke - width : 3.5 px
}
& . edge - pattern - solid {
stroke - dasharray : 0 ;
}
& . edge - thickness - invisible {
stroke - width : 0 ;
fill : none ;
}
& . edge - pattern - dashed {
stroke - dasharray : 3 ;
}
. edge - pattern - dotted {
stroke - dasharray : 2 ;
}
& . marker {
fill : $ { r . lineColor } ;
stroke : $ { r . lineColor } ;
}
& . marker . cross {
stroke : $ { r . lineColor } ;
}
& svg {
font - family : $ { r . fontFamily } ;
font - size : $ { r . fontSize } ;
}
& p {
margin : 0
}
$ { n }
$ { e }
` },"getStyles"),I $ =o((t,e)=>{e!==void 0&&(O4[t]=e)},"addStylesForDiagram"),O $ =o3e});var xy={};vr(xy,{clear:()=>Lr,getAccDescription:()=>zr,getAccTitle:()=>Br,getDiagramTitle:()=>Jr,setAccDescription:()=>Fr,setAccTitle:()=>Mr,setDiagramTitle:()=>cn});var e7,t7,r7,n7,Lr,Mr,Br,Fr,zr,cn,Jr,Ai=M(()=>{"use strict";fr();Za();e7="",t7="",r7="",n7=o(t=>kr(t,Cr()),"sanitizeText"),Lr=o(()=>{e7="",r7="",t7=""},"clear"),Mr=o(t=>{e7=n7(t).replace(/^ \s +/g,"")},"setAccTitle"),Br=o(()=>e7,"getAccTitle"),Fr=o(t=>{r7=n7(t).replace(/ \n \s +/g, `
` )},"setAccDescription"),zr=o(()=>r7,"getAccDescription"),cn=o(t=>{t7=n7(t)},"setDiagramTitle"),Jr=o(()=>t7,"getDiagramTitle")});var P $ ,l3e,pe,a7,B4,s7,o7,c3e,P4,od,by,i7,Vt=M(()=>{"use strict";Zf();ut();Za();fr();ai();JC();Ai();P $ =Y,l3e=J1,pe=Cr,a7=o4,B4=ph,s7=o(t=>kr(t,pe()),"sanitizeText"),o7=Io,c3e=o(()=>xy,"getCommonDb"),P4={},od=o((t,e,r)=>{P4[t]&&P $ .warn( ` Diagram with id $ { t } already registered . Overwriting . ` ),P4[t]=e,r&&VS(t,r),I $ (t,e.styles),e.injectUtils?.(P $ ,l3e,pe,s7,o7,c3e(),()=>{})},"registerDiagram"),by=o(t=>{if(t in P4)return P4[t];throw new i7(t)},"getDiagram"),i7=class extends Error{static{o(this,"DiagramNotFoundError")}constructor(e){super( ` Diagram $ { e } not found . ` )}}});var bl,wh,ts,xl,dc,wy,l7,c7,F4,z4,B $ ,u3e,h3e,f3e,d3e,p3e,m3e,g3e,y3e,v3e,x3e,b3e,w3e,T3e,k3e,E3e,S3e,C3e,F $ ,A3e,_3e,z $ ,L3e,D3e,N3e,R3e,Th,M3e,I3e,O3e,P3e,B3e,Ty,u7=M(()=>{"use strict";Vt();fr();Ai();bl=[],wh=[""],ts="global",xl="",dc=[{alias:"global",label:{text:"global"},type:{text:"global"},tags:null,link:null,parentBoundary:""}],wy=[],l7="",c7=!1,F4=4,z4=2,u3e=o(function(){return B $ },"getC4Type"),h3e=o(function(t){B $ =kr(t,pe())},"setC4Type"),f3e=o(function(t,e,r,n,i,a,s,l,u){if(t==null||e===void 0||e===null||r===void 0||r===null||n===void 0||n===null)return;let h={},f=wy.find(d=>d.from===e&&d.to===r);if(f?h=f:wy.push(h),h.type=t,h.from=e,h.to=r,h.label={text:n},i==null)h.techn={text:""};else if(typeof i=="object"){let[d,p]=Object.entries(i)[0];h[d]={text:p}}else h.techn={text:i};if(a==null)h.descr={text:""};else if(typeof a=="object"){let[d,p]=Object.entries(a)[0];h[d]={text:p}}else h.descr={text:a};if(typeof s=="object"){let[d,p]=Object.entries(s)[0];h[d]=p}else h.sprite=s;if(typeof l=="object"){let[d,p]=Object.entries(l)[0];h[d]=p}else h.tags=l;if(typeof u=="object"){let[d,p]=Object.entries(u)[0];h[d]=p}else h.link=u;h.wrap=Th()},"addRel"),d3e=o(function(t,e,r,n,i,a,s){if(e===null||r===null)return;let l={},u=bl.find(h=>h.alias===e);if(u&&e===u.alias?l=u:(l.alias=e,bl.push(l)),r==null?l.label={text:""}:l.label={text:r},n==null)l.descr={text:""};else if(typeof n=="object"){let[h,f]=Object.entries(n)[0];l[h]={text:f}}else l.descr={text:n};if(typeof i=="object"){let[h,f]=Object.entries(i)[0];l[h]=f}else l.sprite=i;if(typeof a=="object"){let[h,f]=Object.entries(a)[0];l[h]=f}else l.tags=a;if(typeof s=="object"){let[h,f]=Object.entries(s)[0];l[h]=f}else l.link=s;l.typeC4Shape={text:t},l.parentBoundary=ts,l.wrap=Th()},"addPersonOrSystem"),p3e=o(function(t,e,r,n,i,a,s,l){if(e===null||r===null)return;let u={},h=bl.find(f=>f.alias===e);if(h&&e===h.alias?u=h:(u.alias=e,bl.push(u)),r==null?u.label={text:""}:u.label={text:r},n==null)u.techn={text:""};else if(typeof n=="object"){let[f,d]=Object.entries(n)[0];u[f]={text:d}}else u.techn={text:n};if(i==null)u.descr={text:""};else if(typeof i=="object"){let[f,d]=Object.entries(i)[0];u[f]={text:d}}else u.descr={text:i};if(typeof a=="object"){let[f,d]=Object.entries(a)[0];u[f]=d}else u.sprite=a;if(typeof s=="object"){let[f,d]=Object.entries(s)[0];u[f]=d}else u.tags=s;if(typeof l=="object"){let[f,d]=Object.entries(l)[0];u[f]=d}else u.link=l;u.wrap=Th(),u.typeC4Shape={text:t},u.parentBoundary=ts},"addContainer"),m3e=o(function(t,e,r,n,i,a,s,l){if(e===null||r===null)return;let u={},h=bl.find(f=>f.alias===e);if(h&&e===h.alias?u=h:(u.alias=e,bl.push(u)),r==null?u.label={text:""}:u.label={text:r},n==null)u.techn={text:""};else if(typeof n=="object"){let[f,d]=Object.entries(n)[0];u[f]={text:d}}else u.techn={text:n};if(i==null)u.descr={text:""};else if(typeof i=="object"){let[f,d]=Object.entries(i)[0];u[f]={text:d}}else u.descr={text:i};if(typeof a=="object"){let[f,d]=Object.entries(a)[0];u[f]=d}else u.sprite=a;if(typeof s=="object"){let[f,d]=Object.entries(s)[0];u[f]=d}else u.tags=s;if(typeof l=="object"){let[f,d]=Object.entries(l)[0];u[f]=d}else u.link=l;u.wrap=Th(),u.typeC4Shape={text:t},u.parentBoundary=ts},"addComponent"),g3e=o(function(t,e,r,n,i){if(t===null||e===null)return;let a={},s=dc.find(l=>l.alias===t);if(s&&t===s.alias?a=s:(a.alias=t,dc.push(a)),e==null?a.label={text:""}:a.label={text:e},r==null
` ,"ig");t=t.trim().replace(r,"").replace(/'/gm,'"'),Y.debug( ` Detecting diagram directive$ { e !== null ? " type:" + e : "" } based on the text : $ { t } ` );let n,i=[];for(;(n=Kf.exec(t))!==null;)if(n.index===Kf.lastIndex&&Kf.lastIndex++,n&&!e||e&&n[1]?.match(e)||e&&n[2]?.match(e)){let a=n[1]?n[1]:n[2],s=n[3]?n[3].trim():n[4]?JSON.parse(n[4].trim()):null;i.push({type:a,args:s})}return i.length===0?{type:t,args:null}:i.length===1?i[0]:i}catch(r){return Y.error( ` ERROR : $ { r . message } - Unable to parse directive type : '${e}' based on the text : '${t}' ` ),{type:void 0,args:null}}},"detectDirective"),LX=o(function(t){return t.replace(Kf,"")},"removeDirectives"),yCe=o(function(t,e){for(let[r,n]of e.entries())if(n.match(t))return r;return-1},"isSubstringInArray");o(J_,"interpolateToCurve");o(vCe,"formatUrl");xCe=o((t,...e)=>{let r=t.split("."),n=r.length-1,i=r[n],a=window;for(let s=0;s<n;s++)if(a=a[r[s]],!a){Y.error( ` Function name : $ { t } not found in window ` );return}a[i](...e)},"runFunc");o(DX,"distance");o(bCe,"traverseEdge");o(wCe,"calcLabelPosition");SX=o((t,e=2)=>{let r=Math.pow(10,e);return Math.round(t*r)/r},"roundNumber"),e9=o((t,e)=>{let r,n=e;for(let i of t){if(r){let a=DX(i,r);if(a<n)n-=a;else{let s=n/a;if(s<=0)return r;if(s>=1)return{x:i.x,y:i.y};if(s>0&&s<1)return{x:SX((1-s)*r.x+s*i.x,5),y:SX((1-s)*r.y+s*i.y,5)}}}r=i}throw new Error("Could not find a suitable point for the given distance")},"calculatePoint"),TCe=o((t,e,r)=>{Y.info( ` our points $ { JSON . stringify ( e ) } ` ),e[0]!==r&&(e=e.reverse());let i=e9(e,25),a=t?10:5,s=Math.atan2(e[0].y-i.y,e[0].x-i.x),l={x:0,y:0};return l.x=Math.sin(s)*a+(e[0].x+i.x)/2,l.y=-Math.cos(s)*a+(e[0].y+i.y)/2,l},"calcCardinalityPosition");o(kCe,"calcTerminalLabelPosition");o(t9,"getStylesFromArray");CX=0,r9=o(()=>(CX++,"id-"+Math.random().toString(36).substr(2,12)+"-"+CX),"generateId");o(ECe,"makeRandomHex");n9=o(t=>ECe(t.length),"random"),SCe=o(function(){return{x:0,y:0,fill:void 0,anchor:"start",style:"#666",width:100,height:100,textMargin:0,rx:0,ry:0,valign:void 0,text:""}},"getTextObj"),CCe=o(function(t,e){let r=e.text.replace(qe.lineBreakRegex," "),[,n]=Ho(e.fontSize),i=t.append("text");i.attr("x",e.x),i.attr("y",e.y),i.style("text-anchor",e.anchor),i.style("font-family",e.fontFamily),i.style("font-size",n),i.style("font-weight",e.fontWeight),i.attr("fill",e.fill),e.class!==void 0&&i.attr("class",e.class);let a=i.append("tspan");return a.attr("x",e.x+e.textMargin*2),a.attr("fill",e.fill),a.text(r),i},"drawSimpleText"),i9=tm((t,e,r)=>{if(!t||(r=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},r),qe.lineBreakRegex.test(t)))return t;let n=t.split(" ").filter(Boolean),i=[],a="";return n.forEach((s,l)=>{let u=so( ` $ { s } ` ,r),h=so(a,r);if(u>e){let{hyphenatedStrings:p,remainingWord:m}=ACe(s,e,"-",r);i.push(a,...p),a=m}else h+u>=e?(i.push(a),a=s):a=[a,s].filter(Boolean).join(" ");l+1===n.length&&i.push(a)}),i.filter(s=>s!=="").join(r.joinWith)},(t,e,r)=> ` $ { t } $ { e } $ { r . fontSize } $ { r . fontWeight } $ { r . fontFamily } $ { r . joinWith } ` ),ACe=tm((t,e,r="-",n)=>{n=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},n);let i=[...t],a=[],s="";return i.forEach((l,u)=>{let h= ` $ { s } $ { l } ` ;if(so(h,n)>=e){let d=u+1,p=i.length===d,m= ` $ { h } $ { r } ` ;a.push(p?h:m),s=""}else s=h}),{hyphenatedStrings:a,remainingWord:s}},(t,e,r="-",n)=> ` $ { t } $ { e } $ { r } $ { n . fontSize } $ { n . fontWeight } $ { n . fontFamily } ` );o(S5,"calculateTextHeight");o(so,"calculateTextWidth");a9=tm((t,e)=>{let{fontSize:r=12,fontFamily:n="Arial",fontWeight:i=400}=e;if(!t)return{width:0,height:0};let[,a]=Ho(r),s=["sans-serif",n],l=t.split(qe.lineBreakRegex),u=[],h=Ve("body");if(!h.remove)return{width:0,height:0,lineHeight:0};let f=h.append("svg");for(let p of s){let m=0,g={width:0,height:0,lineHeight:0};for(let y of l){let v=SCe();v.text=y||Z_;let x=CCe(f,v).style("font-size",a).style("font-weight",i).style("font-family",p),b=(x._groups||x)[0][0].getBBox();if(b.width===0&&b.height===0)throw new Error("svg element not in render tree");g.width=Math.round(Math.max(g.width,b.width)),m=Math.round(b.height),g.height+=m,g.lineHeight=Math.round(Math.max(g.lineHeig
stroke : $ { t . personBorder } ;
fill : $ { t . personBkg } ;
}
` ,"getStyles"),FX=ICe});var GX={};vr(GX,{diagram:()=>OCe});var OCe, $ X=M(()=>{"use strict";US();u7();BX();zX();OCe={parser:oz,db:Ty,renderer:c9,styles:FX,init:o(({c4:t,wrap:e})=>{c9.setConf(t),Ty.setWrap(e)},"init")}});function f9(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}function jX(t){Id=t}function oo(t,e){if(e){if(KX.test(t))return t.replace(zCe,HX)}else if(QX.test(t))return t.replace(GCe,HX);return t}function UCe(t){return t.replace(VCe,(e,r)=>(r=r.toLowerCase(),r==="colon"?":":r.charAt(0)==="#"?r.charAt(1)==="x"?String.fromCharCode(parseInt(r.substring(2),16)):String.fromCharCode(+r.substring(1)):""))}function fn(t,e){let r=typeof t=="string"?t:t.source;e=e||"";let n={replace:o((i,a)=>{let s=typeof a=="string"?a:a.source;return s=s.replace(HCe," $ 1"),r=r.replace(i,s),n},"replace"),getRegex:o(()=>new RegExp(r,e),"getRegex")};return n}function WX(t){try{t=encodeURI(t).replace(/%25/g,"%")}catch{return null}return t}function YX(t,e){let r=t.replace(/ \| /g,(a,s,l)=>{let u=!1,h=s;for(;--h>=0&&l[h]===" \\ ";)u=!u;return u?"|":" |"}),n=r.split(/ \| /),i=0;if(n[0].trim()||n.shift(),n.length>0&&!n[n.length-1].trim()&&n.pop(),e)if(n.length>e)n.splice(e);else for(;n.length<e;)n.push("");for(;i<n.length;i++)n[i]=n[i].trim().replace(/ \\ \| /g,"|");return n}function kv(t,e,r){let n=t.length;if(n===0)return"";let i=0;for(;i<n;){let a=t.charAt(n-i-1);if(a===e&&!r)i++;else if(a!==e&&r)i++;else break}return t.slice(0,n-i)}function WCe(t,e){if(t.indexOf(e[1])===-1)return-1;let r=0;for(let n=0;n<t.length;n++)if(t[n]===" \\ ")n++;else if(t[n]===e[0])r++;else if(t[n]===e[1]&&(r--,r<0))return n;return-1}function qX(t,e,r,n){let i=e.href,a=e.title?oo(e.title):null,s=t[1].replace(/ \\ ([ \[ \] ])/g," $ 1");if(t[0].charAt(0)!=="!"){n.state.inLink=!0;let l={type:"link",raw:r,href:i,title:a,text:s,tokens:n.inlineTokens(s)};return n.state.inLink=!1,l}return{type:"image",raw:r,href:i,title:a,text:oo(s)}}function YCe(t,e){let r=t.match(/^( \s +)(?: ` ` ` ) / ) ; if ( r === null ) return e ; let n = r [ 1 ] ; return e . split ( `
` ).map(i=>{let a=i.match(/^ \s +/);if(a===null)return i;let[s]=a;return s.length>=n.length?i.slice(n.length):i}).join( `
` )}function en(t,e){return Md.parse(t,e)}var Id,KX,zCe,QX,GCe, $ Ce,HX,VCe,HCe,Sv,gm,qCe,XCe,jCe,Av,KCe,ZX,JX,d9,QCe,p9,ZCe,JCe,M5,m9,e7e,ej,t7e,g9,XX,r7e,n7e,tj,i7e,rj,a7e,_v,s7e,o7e,l7e,c7e,u7e,h7e,f7e,d7e,p7e,R5,m7e,nj,ij,g7e,y9,y7e,u9,v7e,N5,Ev,Mu,ym,Cv,Iu,mm,h9,Md,PEt,BEt,FEt,zEt,GEt, $ Et,VEt,aj=M(()=>{"use strict";o(f9,"_getDefaults");Id=f9();o(jX,"changeDefaults");KX=/[&<>"']/,zCe=new RegExp(KX.source,"g"),QX=/[<>"']|&(?!(# \d {1,7}|#[Xx][a-fA-F0-9]{1,6}| \w +);)/,GCe=new RegExp(QX.source,"g"), $ Ce={"&":"&","<":"<",">":">",'"':""","'":"'"},HX=o(t=> $ Ce[t],"getEscapeReplacement");o(oo,"escape $ 1");VCe=/&(#(?: \d +)|(?:#x[0-9A-Fa-f]+)|(?: \w +));?/ig;o(UCe,"unescape");HCe=/(^|[^ \[ ]) \^ /g;o(fn,"edit");o(WX,"cleanUrl");Sv={exec:o(()=>null,"exec")};o(YX,"splitCells");o(kv,"rtrim");o(WCe,"findClosingBracket");o(qX,"outputLink");o(YCe,"indentCodeCompensation");gm=class{static{o(this,"_Tokenizer")}options;rules;lexer;constructor(e){this.options=e||Id}space(e){let r=this.rules.block.newline.exec(e);if(r&&r[0].length>0)return{type:"space",raw:r[0]}}code(e){let r=this.rules.block.code.exec(e);if(r){let n=r[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:r[0],codeBlockStyle:"indented",text:this.options.pedantic?n:kv(n, `
` )}}}fences(e){let r=this.rules.block.fences.exec(e);if(r){let n=r[0],i=YCe(n,r[3]||"");return{type:"code",raw:n,lang:r[2]?r[2].trim().replace(this.rules.inline.anyPunctuation," $ 1"):r[2],text:i}}}heading(e){let r=this.rules.block.heading.exec(e);if(r){let n=r[2].trim();if(/# $ /.test(n)){let i=kv(n,"#");(this.options.pedantic||!i||/ $ /.test(i))&&(n=i.trim())}return{type:"heading",raw:r[0],depth:r[1].length,text:n,tokens:this.lexer.inline(n)}}}hr(e){let r=this.rules.block.hr.exec(e);if(r)return{type:"hr",raw:kv(r[0], `
` )}}blockquote(e){let r=this.rules.block.blockquote.exec(e);if(r){let n=kv(r[0], `
` ).split( `
` ),i="",a="",s=[];for(;n.length>0;){let l=!1,u=[],h;for(h=0;h<n.length;h++)if(/^ {0,3}>/.test(n[h]))u.push(n[h]),l=!0;else if(!l)u.push(n[h]);else break;n=n.slice(h);let f=u.join( `
` ),d=f.replace(/ \n {0,3}((?:=+|-+) *)(?= \n | $ )/g, `
$1 ` ).replace(/^ {0,3}>[ \t ]?/gm,"");i=i? ` $ { i }
$ { f } ` :f,a=a? ` $ { a }
$ { d } ` :d;let p=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(d,s,!0),this.lexer.state.top=p,n.length===0)break;let m=s[s.length-1];if(m?.type==="code")break;if(m?.type==="blockquote"){let g=m,y=g.raw+ `
` +n.join( `
` ),v=this.blockquote(y);s[s.length-1]=v,i=i.substring(0,i.length-g.raw.length)+v.raw,a=a.substring(0,a.length-g.text.length)+v.text;break}else if(m?.type==="list"){let g=m,y=g.raw+ `
` +n.join( `
` ),v=this.list(y);s[s.length-1]=v,i=i.substring(0,i.length-m.raw.length)+v.raw,a=a.substring(0,a.length-g.raw.length)+v.raw,n=y.substring(s[s.length-1].raw.length).split( `
` );continue}}return{type:"blockquote",raw:i,tokens:s,text:a}}}list(e){let r=this.rules.block.list.exec(e);if(r){let n=r[1].trim(),i=n.length>1,a={type:"list",raw:"",ordered:i,start:i?+n.slice(0,-1):"",loose:!1,items:[]};n=i? ` \ \ d { 1 , 9 } \ \ $ { n . slice ( - 1 ) } ` : ` \ \ $ { n } ` ,this.options.pedantic&&(n=i?n:"[*+-]");let s=new RegExp( ` ^ ( { 0 , 3 } $ { n } ) ( ( ? : [ ] [ ^ \ \ n ] * ) ? ( ? : \ \ n | $ ) ) ` ),l=!1;for(;e;){let u=!1,h="",f="";if(!(r=s.exec(e))||this.rules.block.hr.test(e))break;h=r[0],e=e.substring(h.length);let d=r[2].split( `
` ,1)[0].replace(/^ \t +/,x=>" ".repeat(3*x.length)),p=e.split( `
` ,1)[0],m=!d.trim(),g=0;if(this.options.pedantic?(g=2,f=d.trimStart()):m?g=r[1].length+1:(g=r[2].search(/[^ ]/),g=g>4?1:g,f=d.slice(g),g+=r[1].length),m&&/^ * $ /.test(p)&&(h+=p+ `
` ,e=e.substring(p.length+1),u=!0),!u){let x=new RegExp( ` ^ { 0 , $ { Math . min ( 3 , g - 1 ) } } ( ? : [ * + - ] | \ \ d { 1 , 9 } [ . ) ] ) ( ( ? : [ ] [ ^ \ \ n ] * ) ? ( ? : \ \ n | $ ) ) ` ),b=new RegExp( ` ^ { 0 , $ { Math . min ( 3 , g - 1 ) } } ( ( ? : - * ) { 3 , } | ( ? : _ * ) { 3 , } | ( ? : \ \ * * ) { 3 , } ) ( ? : \ \ n + | $ ) ` ),w=new RegExp( ` ^ { 0 , $ { Math . min ( 3 , g - 1 ) } } ( ? : \ ` \` \` |~~~) ` ) , _ = new RegExp ( ` ^ {0, ${ Math . min ( 3 , g - 1 ) } }# ` ) ; for ( ; e ; ) { let T = e . split ( `
` ,1)[0];if(p=T,this.options.pedantic&&(p=p.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),w.test(p)||_.test(p)||x.test(p)||b.test(e))break;if(p.search(/[^ ]/)>=g||!p.trim())f+= `
` +p.slice(g);else{if(m||d.search(/[^ ]/)>=4||w.test(d)||_.test(d)||b.test(d))break;f+= `
` +p}!m&&!p.trim()&&(m=!0),h+=T+ `
` ,e=e.substring(T.length+1),d=p.slice(g)}}a.loose||(l?a.loose=!0:/ \n * \n * $ /.test(h)&&(l=!0));let y=null,v;this.options.gfm&&(y=/^ \[ [ xX] \] /.exec(f),y&&(v=y[0]!=="[ ] ",f=f.replace(/^ \[ [ xX] \] +/,""))),a.items.push({type:"list_item",raw:h,task:!!y,checked:v,loose:!1,text:f,tokens:[]}),a.raw+=h}a.items[a.items.length-1].raw=a.items[a.items.length-1].raw.trimEnd(),a.items[a.items.length-1].text=a.items[a.items.length-1].text.trimEnd(),a.raw=a.raw.trimEnd();for(let u=0;u<a.items.length;u++)if(this.lexer.state.top=!1,a.items[u].tokens=this.lexer.blockTokens(a.items[u].text,[]),!a.loose){let h=a.items[u].tokens.filter(d=>d.type==="space"),f=h.length>0&&h.some(d=>/ \n .* \n /.test(d.raw));a.loose=f}if(a.loose)for(let u=0;u<a.items.length;u++)a.items[u].loose=!0;return a}}html(e){let r=this.rules.block.html.exec(e);if(r)return{type:"html",block:!0,raw:r[0],pre:r[1]==="pre"||r[1]==="script"||r[1]==="style",text:r[0]}}def(e){let r=this.rules.block.def.exec(e);if(r){let n=r[1].toLowerCase().replace(/ \s +/g," "),i=r[2]?r[2].replace(/^<(.*)> $ /," $ 1").replace(this.rules.inline.anyPunctuation," $ 1"):"",a=r[3]?r[3].substring(1,r[3].length-1).replace(this.rules.inline.anyPunctuation," $ 1"):r[3];return{type:"def",tag:n,raw:r[0],href:i,title:a}}}table(e){let r=this.rules.block.table.exec(e);if(!r||!/[:|]/.test(r[2]))return;let n=YX(r[1]),i=r[2].replace(/^ \| | \| * $ /g,"").split("|"),a=r[3]&&r[3].trim()?r[3].replace(/ \n [ \t ]* $ /,"").split( `
` ):[],s={type:"table",raw:r[0],header:[],align:[],rows:[]};if(n.length===i.length){for(let l of i)/^ *-+: * $ /.test(l)?s.align.push("right"):/^ *:-+: * $ /.test(l)?s.align.push("center"):/^ *:-+ * $ /.test(l)?s.align.push("left"):s.align.push(null);for(let l=0;l<n.length;l++)s.header.push({text:n[l],tokens:this.lexer.inline(n[l]),header:!0,align:s.align[l]});for(let l of a)s.rows.push(YX(l,s.header.length).map((u,h)=>({text:u,tokens:this.lexer.inline(u),header:!1,align:s.align[h]})));return s}}lheading(e){let r=this.rules.block.lheading.exec(e);if(r)return{type:"heading",raw:r[0],depth:r[2].charAt(0)==="="?1:2,text:r[1],tokens:this.lexer.inline(r[1])}}paragraph(e){let r=this.rules.block.paragraph.exec(e);if(r){let n=r[1].charAt(r[1].length-1)=== `
` ?r[1].slice(0,-1):r[1];return{type:"paragraph",raw:r[0],text:n,tokens:this.lexer.inline(n)}}}text(e){let r=this.rules.block.text.exec(e);if(r)return{type:"text",raw:r[0],text:r[0],tokens:this.lexer.inline(r[0])}}escape(e){let r=this.rules.inline.escape.exec(e);if(r)return{type:"escape",raw:r[0],text:oo(r[1])}}tag(e){let r=this.rules.inline.tag.exec(e);if(r)return!this.lexer.state.inLink&&/^<a /i.test(r[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^< \/ a>/i.test(r[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)( \s |>)/i.test(r[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^< \/ (pre|code|kbd|script)( \s |>)/i.test(r[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:r[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:r[0]}}link(e){let r=this.rules.inline.link.exec(e);if(r){let n=r[2].trim();if(!this.options.pedantic&&/^</.test(n)){if(!/> $ /.test(n))return;let s=kv(n.slice(0,-1)," \\ ");if((n.length-s.length)%2===0)return}else{let s=WCe(r[2],"()");if(s>-1){let u=(r[0].indexOf("!")===0?5:4)+r[1].length+s;r[2]=r[2].substring(0,s),r[0]=r[0].substring(0,u).trim(),r[3]=""}}let i=r[2],a="";if(this.options.pedantic){let s=/^([^'"]*[^ \s ]) \s +(['"])(.*) \2 /.exec(i);s&&(i=s[1],a=s[3])}else a=r[3]?r[3].slice(1,-1):"";return i=i.trim(),/^</.test(i)&&(this.options.pedantic&&!/> $ /.test(n)?i=i.slice(1):i=i.slice(1,-1)),qX(r,{href:i&&i.replace(this.rules.inline.anyPunctuation," $ 1"),title:a&&a.replace(this.rules.inline.anyPunctuation," $ 1")},r[0],this.lexer)}}reflink(e,r){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let i=(n[2]||n[1]).replace(/ \s +/g," "),a=r[i.toLowerCase()];if(!a){let s=n[0].charAt(0);return{type:"text",raw:s,text:s}}return qX(n,a,n[0],this.lexer)}}emStrong(e,r,n=""){let i=this.rules.inline.emStrongLDelim.exec(e);if(!i||i[3]&&n.match(/[ \p {L} \p {N}]/u))return;if(!(i[1]||i[2]||"")||!n||this.rules.inline.punctuation.exec(n)){let s=[...i[0]].length-1,l,u,h=s,f=0,d=i[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(d.lastIndex=0,r=r.slice(-1*e.length+s);(i=d.exec(r))!=null;){if(l=i[1]||i[2]||i[3]||i[4]||i[5]||i[6],!l)continue;if(u=[...l].length,i[3]||i[4]){h+=u;continue}else if((i[5]||i[6])&&s%3&&!((s+u)%3)){f+=u;continue}if(h-=u,h>0)continue;u=Math.min(u,u+h+f);let p=[...i[0]][0].length,m=e.slice(0,s+i.index+p+u);if(Math.min(s,u)%2){let y=m.slice(1,-1);return{type:"em",raw:m,text:y,tokens:this.lexer.inlineTokens(y)}}let g=m.slice(2,-2);return{type:"strong",raw:m,text:g,tokens:this.lexer.inlineTokens(g)}}}}codespan(e){let r=this.rules.inline.code.exec(e);if(r){let n=r[2].replace(/ \n /g," "),i=/[^ ]/.test(n),a=/^ /.test(n)&&/ $ /.test(n);return i&&a&&(n=n.substring(1,n.length-1)),n=oo(n,!0),{type:"codespan",raw:r[0],text:n}}}br(e){let r=this.rules.inline.br.exec(e);if(r)return{type:"br",raw:r[0]}}del(e){let r=this.rules.inline.del.exec(e);if(r)return{type:"del",raw:r[0],text:r[2],tokens:this.lexer.inlineTokens(r[2])}}autolink(e){let r=this.rules.inline.autolink.exec(e);if(r){let n,i;return r[2]==="@"?(n=oo(r[1]),i="mailto:"+n):(n=oo(r[1]),i=n),{type:"link",raw:r[0],text:n,href:i,tokens:[{type:"text",raw:n,text:n}]}}}url(e){let r;if(r=this.rules.inline.url.exec(e)){let n,i;if(r[2]==="@")n=oo(r[0]),i="mailto:"+n;else{let a;do a=r[0],r[0]=this.rules.inline._backpedal.exec(r[0])?.[0]??"";while(a!==r[0]);n=oo(r[0]),r[1]==="www."?i="http://"+r[0]:i=r[0]}return{type:"link",raw:r[0],text:n,href:i,tokens:[{type:"text",raw:n,text:n}]}}}inlineText(e){let r=this.rules.inline.text.exec(e);if(r){let n;return this.lexer.state.inRawBlock?n=r[0]:n=oo(r[0]),{type:"text",raw:r[0],text:n}}}},qCe=/^(?: *(?: \n | $ ))+/,XCe=/^( {4}[^ \n ]+(?: \n (?: *(?: \n | $ ))*)?)+/,jCe=/^ {0,3}( ` { 3 , } ( ? = [ ^ ` \n ]*(?: \n | $ ))|~{3,})([^ \n ]*)(?: \n | $ )(?:|([ \s \S ]*?)(?: \n | $ ))(?: {0,3} \1 [~ ` ] * * ( ? = \ n | $ ) | $ ) / , Av = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/ , KCe = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/ , ZX = /(?:[*+-]|\d{1,9}[.)])/ , JX = fn ( / ^ ( ? ! b u l l | b l o c k C o d e | f e n c e s | b l o c k q u o t e | h e a d i n g | h t m l ) ( ( ? : . |
] ` ).replace("lheading",JX).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},tj=/^ \\ ([!"# $ %&'()*+, \- ./:;<=>?@ \[ \] \\ ^_ ` { | } ~ ] ) / , i7e = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/ , rj = /^( {2,}|\\)\n(?!\s*$)/ , a7e = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/ , _v = "\\p{P}\\p{S}" , s7e = fn ( /^((?![*_])[\spunctuation])/ , "u" ) . replace ( /punctuation/g , _v ) . getRegex ( ) , o7e = /\[[^[\]]*?\]\([^\(\)]*?\)|`[^`]*?`|<[^<>]*?>/g , l7e = fn ( /^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/ , "u" ) . replace ( /punct/g , _v ) . getRegex ( ) , c7e = fn ( "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])" , "gu" ) . replace ( /punct/g , _v ) . getRegex ( ) , u7e = fn ( "^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])" , "gu" ) . replace ( /punct/g , _v ) . getRegex ( ) , h7e = fn ( /\\([punct])/ , "gu" ) . replace ( /punct/g , _v ) . getRegex ( ) , f7e = fn ( /^<(scheme:[^\s\x00-\x1f<>]*|email)>/ ) . replace ( "scheme" , /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/ ) . replace ( "email" , /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/ ) . getRegex ( ) , d7e = fn ( m9 ) . replace ( "(?:-->|$)" , "-->" ) . getRegex ( ) , p7e = fn ( "^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>" ) . replace ( "comment" , d7e ) . replace ( "attribute" , /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/ ) . getRegex ( ) , R5 = /(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/ , m7e = fn ( /^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/ ) . replace ( "label" , R5 ) . replace ( "href" , /<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/ ) . replace ( "title" , /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/ ) . getRegex ( ) , nj = fn ( /^!?\[(label)\]\[(ref)\]/ ) . replace ( "label" , R5 ) . replace ( "ref" , p9 ) . getRegex ( ) , ij = fn ( /^!?\[(ref)\](?:\[\])?/ ) . replace ( "ref" , p9 ) . getRegex ( ) , g7e = fn ( "reflink|nolink(?!\\()" , "g" ) . replace ( "reflink" , nj ) . replace ( "nolink" , ij ) . getRegex ( ) , y9 = { _backpedal : Sv , anyPunctuation : h7e , autolink : f7e , blockSkip : o7e , br : rj , code : i7e , del : Sv , emStrongLDelim : l7e , emStrongRDelimAst : c7e , emStrongRDelimUnd : u7e , escape : tj , link : m7e , nolink : ij , punctuation : s7e , reflink : nj , reflinkSearch : g7e , tag : p7e , text : a7e , url : Sv } , y7e = { ... y9 , link : fn ( /^!?\[(label)\]\((.*?)\)/ ) . replace ( "label" , R5 ) . getRegex ( ) , reflink : fn ( /^!?\[(label)\]\s*\[([^\]]*)\]/ ) . replace ( "label" , R5 ) . getRegex ( ) } , u9 = { ... y9 , escape : fn ( tj ) . replace ( "])" , "~|])" ) . getRegex ( ) , url : fn ( /^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/ , "i" ) . replace ( "email" , /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/ ) . getRegex ( ) , _backpedal : /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/ , del : /^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/ , text : /^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/ } , v7e = { ... u9 , br : fn ( rj ) . replace ( "{2,}" , "*" ) . getRegex ( ) , text : fn ( u9 . text ) . replace ( "\\b_" , "\\b_| {2,}\\n" ) . replace ( /\{2,\}/g , "*" ) . getRegex ( ) } , N5 = { normal : g9 , gfm : r7e , pedantic : n7e } , Ev = { normal : y9 , gfm : u9 , breaks : v7e , pedantic : y7e } , Mu = class t { static { o ( this , "_Lexer" ) } tokens ; options ; state ; tokenizer ; inlineQueue ; constructor ( e ) { this . tokens = [ ] , this . tokens . links = Object . create ( null ) , this . options = e || Id , this . options . tokenizer = this . options . tokenizer || new gm , this . tokenizer = this . options . tokenizer , this . tokenizer . options = this . options , this . tokenizer . lexer = this , this . inlineQueue = [ ] , this . state = { inLink : ! 1 , inRawBlock : ! 1 , top : ! 0 } ; let r = { block : N5 . normal , inline : Ev . normal } ; this . options . pedantic ? ( r . block = N5 . pedantic , r . inline = Ev . pedantic )
` ),this.blockTokens(e,this.tokens);for(let r=0;r<this.inlineQueue.length;r++){let n=this.inlineQueue[r];this.inlineTokens(n.src,n.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,r=[],n=!1){this.options.pedantic?e=e.replace(/ \t /g," ").replace(/^ + $ /gm,""):e=e.replace(/^( *)( \t +)/gm,(l,u,h)=>u+" ".repeat(h.length));let i,a,s;for(;e;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(l=>(i=l.call({lexer:this},e,r))?(e=e.substring(i.raw.length),r.push(i),!0):!1))){if(i=this.tokenizer.space(e)){e=e.substring(i.raw.length),i.raw.length===1&&r.length>0?r[r.length-1].raw+= `
` :r.push(i);continue}if(i=this.tokenizer.code(e)){e=e.substring(i.raw.length),a=r[r.length-1],a&&(a.type==="paragraph"||a.type==="text")?(a.raw+= `
` +i.raw,a.text+= `
` +i.text,this.inlineQueue[this.inlineQueue.length-1].src=a.text):r.push(i);continue}if(i=this.tokenizer.fences(e)){e=e.substring(i.raw.length),r.push(i);continue}if(i=this.tokenizer.heading(e)){e=e.substring(i.raw.length),r.push(i);continue}if(i=this.tokenizer.hr(e)){e=e.substring(i.raw.length),r.push(i);continue}if(i=this.tokenizer.blockquote(e)){e=e.substring(i.raw.length),r.push(i);continue}if(i=this.tokenizer.list(e)){e=e.substring(i.raw.length),r.push(i);continue}if(i=this.tokenizer.html(e)){e=e.substring(i.raw.length),r.push(i);continue}if(i=this.tokenizer.def(e)){e=e.substring(i.raw.length),a=r[r.length-1],a&&(a.type==="paragraph"||a.type==="text")?(a.raw+= `
` +i.raw,a.text+= `
` +i.raw,this.inlineQueue[this.inlineQueue.length-1].src=a.text):this.tokens.links[i.tag]||(this.tokens.links[i.tag]={href:i.href,title:i.title});continue}if(i=this.tokenizer.table(e)){e=e.substring(i.raw.length),r.push(i);continue}if(i=this.tokenizer.lheading(e)){e=e.substring(i.raw.length),r.push(i);continue}if(s=e,this.options.extensions&&this.options.extensions.startBlock){let l=1/0,u=e.slice(1),h;this.options.extensions.startBlock.forEach(f=>{h=f.call({lexer:this},u),typeof h=="number"&&h>=0&&(l=Math.min(l,h))}),l<1/0&&l>=0&&(s=e.substring(0,l+1))}if(this.state.top&&(i=this.tokenizer.paragraph(s))){a=r[r.length-1],n&&a?.type==="paragraph"?(a.raw+= `
` +i.raw,a.text+= `
` +i.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=a.text):r.push(i),n=s.length!==e.length,e=e.substring(i.raw.length);continue}if(i=this.tokenizer.text(e)){e=e.substring(i.raw.length),a=r[r.length-1],a&&a.type==="text"?(a.raw+= `
` +i.raw,a.text+= `
` +i.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=a.text):r.push(i);continue}if(e){let l="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(l);break}else throw new Error(l)}}return this.state.top=!0,r}inline(e,r=[]){return this.inlineQueue.push({src:e,tokens:r}),r}inlineTokens(e,r=[]){let n,i,a,s=e,l,u,h;if(this.tokens.links){let f=Object.keys(this.tokens.links);if(f.length>0)for(;(l=this.tokenizer.rules.inline.reflinkSearch.exec(s))!=null;)f.includes(l[0].slice(l[0].lastIndexOf("[")+1,-1))&&(s=s.slice(0,l.index)+"["+"a".repeat(l[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(l=this.tokenizer.rules.inline.blockSkip.exec(s))!=null;)s=s.slice(0,l.index)+"["+"a".repeat(l[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(l=this.tokenizer.rules.inline.anyPunctuation.exec(s))!=null;)s=s.slice(0,l.index)+"++"+s.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;e;)if(u||(h=""),u=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(f=>(n=f.call({lexer:this},e,r))?(e=e.substring(n.raw.length),r.push(n),!0):!1))){if(n=this.tokenizer.escape(e)){e=e.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.tag(e)){e=e.substring(n.raw.length),i=r[r.length-1],i&&n.type==="text"&&i.type==="text"?(i.raw+=n.raw,i.text+=n.text):r.push(n);continue}if(n=this.tokenizer.link(e)){e=e.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(n.raw.length),i=r[r.length-1],i&&n.type==="text"&&i.type==="text"?(i.raw+=n.raw,i.text+=n.text):r.push(n);continue}if(n=this.tokenizer.emStrong(e,s,h)){e=e.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.codespan(e)){e=e.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.br(e)){e=e.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.del(e)){e=e.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.autolink(e)){e=e.substring(n.raw.length),r.push(n);continue}if(!this.state.inLink&&(n=this.tokenizer.url(e))){e=e.substring(n.raw.length),r.push(n);continue}if(a=e,this.options.extensions&&this.options.extensions.startInline){let f=1/0,d=e.slice(1),p;this.options.extensions.startInline.forEach(m=>{p=m.call({lexer:this},d),typeof p=="number"&&p>=0&&(f=Math.min(f,p))}),f<1/0&&f>=0&&(a=e.substring(0,f+1))}if(n=this.tokenizer.inlineText(a)){e=e.substring(n.raw.length),n.raw.slice(-1)!=="_"&&(h=n.raw.slice(-1)),u=!0,i=r[r.length-1],i&&i.type==="text"?(i.raw+=n.raw,i.text+=n.text):r.push(n);continue}if(e){let f="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(f);break}else throw new Error(f)}}return r}},ym=class{static{o(this,"_Renderer")}options;parser;constructor(e){this.options=e||Id}space(e){return""}code({text:e,lang:r,escaped:n}){let i=(r||"").match(/^ \S */)?.[0],a=e.replace(/ \n $ /,"")+ `
` ;return i?'<pre><code class="language-'+oo(i)+'">'+(n?a:oo(a,!0))+ ` < / c o d e > < / p r e >
` :"<pre><code>"+(n?a:oo(a,!0))+ ` < / c o d e > < / p r e >
` }blockquote({tokens:e}){return ` < blockquote >
$ { this . parser . parse ( e ) } < / b l o c k q u o t e >
` }html({text:e}){return e}heading({tokens:e,depth:r}){return ` < h$ { r } > $ { this . parser . parseInline ( e ) } < / h $ { r } >
` }hr(e){return ` < hr >
` }list(e){let r=e.ordered,n=e.start,i="";for(let l=0;l<e.items.length;l++){let u=e.items[l];i+=this.listitem(u)}let a=r?"ol":"ul",s=r&&n!==1?' start="'+n+'"':"";return"<"+a+s+ ` >
` +i+"</"+a+ ` >
` }listitem(e){let r="";if(e.task){let n=this.checkbox({checked:!!e.checked});e.loose?e.tokens.length>0&&e.tokens[0].type==="paragraph"?(e.tokens[0].text=n+" "+e.tokens[0].text,e.tokens[0].tokens&&e.tokens[0].tokens.length>0&&e.tokens[0].tokens[0].type==="text"&&(e.tokens[0].tokens[0].text=n+" "+e.tokens[0].tokens[0].text)):e.tokens.unshift({type:"text",raw:n+" ",text:n+" "}):r+=n+" "}return r+=this.parser.parse(e.tokens,!!e.loose), ` < li > $ { r } < / l i >
` }checkbox({checked:e}){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:e}){return ` < p > $ { this . parser . parseInline ( e ) } < / p >
` }table(e){let r="",n="";for(let a=0;a<e.header.length;a++)n+=this.tablecell(e.header[a]);r+=this.tablerow({text:n});let i="";for(let a=0;a<e.rows.length;a++){let s=e.rows[a];n="";for(let l=0;l<s.length;l++)n+=this.tablecell(s[l]);i+=this.tablerow({text:n})}return i&&(i= ` < tbody > $ { i } < / t b o d y > ` ) , ` < t a b l e >
< thead >
` +r+ ` < / t h e a d >
` +i+ ` < / t a b l e >
` }tablerow({text:e}){return ` < tr >
$ { e } < / t r >
` }tablecell(e){let r=this.parser.parseInline(e.tokens),n=e.header?"th":"td";return(e.align? ` < $ { n } align = "${e.align}" > ` : ` < $ { n } > ` )+r+ ` < / $ { n } >
` }strong({tokens:e}){return ` < strong > $ { this . parser . parseInline ( e ) } < / s t r o n g > ` } e m ( { t o k e n s : e } ) { r e t u r n ` < e m > $ { t h i s . p a r s e r . p a r s e I n l i n e ( e ) } < / e m > ` } c o d e s p a n ( { t e x t : e } ) { r e t u r n ` < c o d e > $ { e } < / c o d e > ` } b r ( e ) { r e t u r n " < b r > " } d e l ( { t o k e n s : e } ) { r e t u r n ` < d e l > $ { t h i s . p a r s e r . p a r s e I n l i n e ( e ) } < / d e l > ` } l i n k ( { h r e f : e , t i t l e : r , t o k e n s : n } ) { l e t i = t h i s . p a r s e r . p a r s e I n l i n e ( n ) , a = W X ( e ) ; i f ( a = = = n u l l ) r e t u r n i ; e = a ; l e t s = ' < a h r e f = " ' + e + ' " ' ; r e t u r n r & & ( s + = ' t i t l e = " ' + r + ' " ' ) , s + = " > " + i + " < / a > " , s } i m a g e ( { h r e f : e , t i t l e : r , t e x t : n } ) { l e t i = W X ( e ) ; i f ( i = = = n u l l ) r e t u r n n ; e = i ; l e t a = ` < i m g s r c = " $ { e } " a l t = " $ { n } " ` ; r e t u r n r & & ( a + = ` t i t l e = " $ { r } " ` ) , a + = " > " , a } t e x t ( e ) { r e t u r n " t o k e n s " i n e & & e . t o k e n s ? t h i s . p a r s e r . p a r s e I n l i n e ( e . t o k e n s ) : e . t e x t } } , C v = c l a s s { s t a t i c { o ( t h i s , " _ T e x t R e n d e r e r " ) } s t r o n g ( { t e x t : e } ) { r e t u r n e } e m ( { t e x t : e } ) { r e t u r n e } c o d e s p a n ( { t e x t : e } ) { r e t u r n e } d e l ( { t e x t : e } ) { r e t u r n e } h t m l ( { t e x t : e } ) { r e t u r n e } t e x t ( { t e x t : e } ) { r e t u r n e } l i n k ( { t e x t : e } ) { r e t u r n " " + e } i m a g e ( { t e x t : e } ) { r e t u r n " " + e } b r ( ) { r e t u r n " " } } , I u = c l a s s t { s t a t i c { o ( t h i s , " _ P a r s e r " ) } o p t i o n s ; r e n d e r e r ; t e x t R e n d e r e r ; c o n s t r u c t o r ( e ) { t h i s . o p t i o n s = e | | I d , t h i s . o p t i o n s . r e n d e r e r = t h i s . o p t i o n s . r e n d e r e r | | n e w y m , t h i s . r e n d e r e r = t h i s . o p t i o n s . r e n d e r e r , t h i s . r e n d e r e r . o p t i o n s = t h i s . o p t i o n s , t h i s . r e n d e r e r . p a r s e r = t h i s , t h i s . t e x t R e n d e r e r = n e w C v } s t a t i c p a r s e ( e , r ) { r e t u r n n e w t ( r ) . p a r s e ( e ) } s t a t i c p a r s e I n l i n e ( e , r ) { r e t u r n n e w t ( r ) . p a r s e I n l i n e ( e ) } p a r s e ( e , r = ! 0 ) { l e t n = " " ; f o r ( l e t i = 0 ; i < e . l e n g t h ; i + + ) { l e t a = e [ i ] ; i f ( t h i s . o p t i o n s . e x t e n s i o n s & & t h i s . o p t i o n s . e x t e n s i o n s . r e n d e r e r s & & t h i s . o p t i o n s . e x t e n s i o n s . r e n d e r e r s [ a . t y p e ] ) { l e t l = a , u = t h i s . o p t i o n s . e x t e n s i o n s . r e n d e r e r s [ l . t y p e ] . c a l l ( { p a r s e r : t h i s } , l ) ; i f ( u ! = = ! 1 | | ! [ " s p a c e " , " h r " , " h e a d i n g " , " c o d e " , " t a b l e " , " b l o c k q u o t e " , " l i s t " , " h t m l " , " p a r a g r a p h " , " t e x t " ] . i n c l u d e s ( l . t y p e ) ) { n + = u | | " " ; c o n t i n u e } } l e t s = a ; s w i t c h ( s . t y p e ) { c a s e " s p a c e " : { n + = t h i s . r e n d e r e r . s p a c e ( s ) ; c o n t i n u e } c a s e " h r " : { n + = t h i s . r e n d e r e r . h r ( s ) ; c o n t i n u e } c a s e " h e a d i n g " : { n + = t h i s . r e n d e r e r . h e a d i n g ( s ) ; c o n t i n u e } c a s e " c o d e " : { n + = t h i s . r e n d e r e r . c o d e ( s ) ; c o n t i n u e } c a s e " t a b l e " : { n + = t h i s . r e n d e r e r . t a b l e ( s ) ; c o n t i n u e } c a s e " b l o c k q u o t e " : { n + = t h i s . r e n d e r e r . b l o c k q u o t e ( s ) ; c o n t i n u e } c a s e " l i s t " : { n + = t h i s . r e n d e r e r . l i s t ( s ) ; c o n t i n u e } c a s e " h t m l " : { n + = t h i s . r e n d e r e r . h t m l ( s ) ; c o n t i n u e } c a s e " p a r a g r a p h " : { n + = t h i s . r e n d e r e r . p a r a g r a p h ( s ) ; c o n t i n u e } c a s e " t e x t " : { l e t l = s , u = t h i s . r e n d e r e r . t e x t ( l ) ; f o r ( ; i + 1 < e . l e n g t h & & e [ i + 1 ] . t y p e = = = " t e x t " ; ) l = e [ + + i ] , u + = `
` +this.renderer.text(l);r?n+=this.renderer.paragraph({type:"paragraph",raw:u,text:u,tokens:[{type:"text",raw:u,text:u}]}):n+=u;continue}default:{let l='Token with "'+s.type+'" type was not found.';if(this.options.silent)return console.error(l),"";throw new Error(l)}}}return n}parseInline(e,r){r=r||this.renderer;let n="";for(let i=0;i<e.length;i++){let a=e[i];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[a.type]){let l=this.options.extensions.renderers[a.type].call({parser:this},a);if(l!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(a.type)){n+=l||"";continue}}let s=a;switch(s.type){case"escape":{n+=r.text(s);break}case"html":{n+=r.html(s);break}case"link":{n+=r.link(s);break}case"image":{n+=r.image(s);break}case"strong":{n+=r.strong(s);break}case"em":{n+=r.em(s);break}case"codespan":{n+=r.codespan(s);break}case"br":{n+=r.br(s);break}case"del":{n+=r.del(s);break}case"text":{n+=r.text(s);break}default:{let l='Token with "'+s.type+'" type was not found.';if(this.options.silent)return console.error(l),"";throw new Error(l)}}}return n}},mm=class{static{o(this,"_Hooks")}options;constructor(e){this.options=e||Id}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}},h9=class{static{o(this,"Marked")}defaults=f9();options=this.setOptions;parse=this.#e(Mu.lex,Iu.parse);parseInline=this.#e(Mu.lexInline,Iu.parseInline);Parser=Iu;Renderer=ym;TextRenderer=Cv;Lexer=Mu;Tokenizer=gm;Hooks=mm;constructor(...e){this.use(...e)}walkTokens(e,r){let n=[];for(let i of e)switch(n=n.concat(r.call(this,i)),i.type){case"table":{let a=i;for(let s of a.header)n=n.concat(this.walkTokens(s.tokens,r));for(let s of a.rows)for(let l of s)n=n.concat(this.walkTokens(l.tokens,r));break}case"list":{let a=i;n=n.concat(this.walkTokens(a.items,r));break}default:{let a=i;this.defaults.extensions?.childTokens?.[a.type]?this.defaults.extensions.childTokens[a.type].forEach(s=>{let l=a[s].flat(1/0);n=n.concat(this.walkTokens(l,r))}):a.tokens&&(n=n.concat(this.walkTokens(a.tokens,r)))}}return n}use(...e){let r=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(n=>{let i={...n};if(i.async=this.defaults.async||i.async||!1,n.extensions&&(n.extensions.forEach(a=>{if(!a.name)throw new Error("extension name required");if("renderer"in a){let s=r.renderers[a.name];s?r.renderers[a.name]=function(...l){let u=a.renderer.apply(this,l);return u===!1&&(u=s.apply(this,l)),u}:r.renderers[a.name]=a.renderer}if("tokenizer"in a){if(!a.level||a.level!=="block"&&a.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let s=r[a.level];s?s.unshift(a.tokenizer):r[a.level]=[a.tokenizer],a.start&&(a.level==="block"?r.startBlock?r.startBlock.push(a.start):r.startBlock=[a.start]:a.level==="inline"&&(r.startInline?r.startInline.push(a.start):r.startInline=[a.start]))}"childTokens"in a&&a.childTokens&&(r.childTokens[a.name]=a.childTokens)}),i.extensions=r),n.renderer){let a=this.defaults.renderer||new ym(this.defaults);for(let s in n.renderer){if(!(s in a))throw new Error( ` renderer '${s}' does not exist ` );if(["options","parser"].includes(s))continue;let l=s,u=n.renderer[l];n.useNewRenderer||(u=this.#t(u,l,a));let h=a[l];a[l]=(...f)=>{let d=u.apply(a,f);return d===!1&&(d=h.apply(a,f)),d||""}}i.renderer=a}if(n.tokenizer){let a=this.defaults.tokenizer||new gm(this.defaults);for(let s in n.tokenizer){if(!(s in a))throw new Error( ` tokenizer '${s}' does not exist ` );if(["options","rules","lexer"].includes(s))continue;let l=s,u=n.tokenizer[l],h=a[l];a[l]=(...f)=>{let d=u.apply(a,f);return d===!1&&(d=h.apply(a,f)),d}}i.tokenizer=a}if(n.hooks){let a=this.defaults.hooks||new mm;for(let s in n.hooks){if(!(s in a))throw new Error( ` hook '${s}' does not exist ` );if(s==="options")continue;let l=s,u=n.hooks[l],h=a[l];mm.passThroughHooks.has(s)?a[l]=f=>{if(this.defaults.async)return Promise.resolve(u.call(a,f)).then(p=>h.call(a,p));let d=u.call(a,f);return h.call(a,d)}:a[
Please report this to https : //github.com/markedjs/marked.`,e){let i="<p>An error occurred:</p><pre>"+oo(n.message+"",!0)+"</pre>";return r?Promise.resolve(i):i}if(r)return Promise.reject(n);throw n}}},Md=new h9;o(en,"marked");en.options=en.setOptions=function(t){return Md.setOptions(t),en.defaults=Md.defaults,jX(en.defaults),en};en.getDefaults=f9;en.defaults=Id;en.use=function(...t){return Md.use(...t),en.defaults=Md.defaults,jX(en.defaults),en};en.walkTokens=function(t,e){return Md.walkTokens(t,e)};en.parseInline=Md.parseInline;en.Parser=Iu;en.parser=Iu.parse;en.Renderer=ym;en.TextRenderer=Cv;en.Lexer=Mu;en.lexer=Mu.lex;en.Tokenizer=gm;en.Hooks=mm;en.parse=en;PEt=en.options,BEt=en.setOptions,FEt=en.use,zEt=en.walkTokens,GEt=en.parseInline,$Et=Iu.parse,VEt=Mu.lex});function x7e(t,{markdownAutoWrap:e}){let n=t.replace(/<br\/>/g,`
` ).replace(/ \n {2,}/g, `
` ),i=jb(n);return e===!1?i.replace(/ /g," "):i}function sj(t,e={}){let r=x7e(t,e),n=en.lexer(r),i=[[]],a=0;function s(l,u="normal"){l.type==="text"?l.text.split( `
` ).forEach((f,d)=>{d!==0&&(a++,i.push([])),f.split(" ").forEach(p=>{p=p.replace(/'/g,"'"),p&&i[a].push({content:p,type:u})})}):l.type==="strong"||l.type==="em"?l.tokens.forEach(h=>{s(h,l.type)}):l.type==="html"&&i[a].push({content:l.text,type:"normal"})}return o(s,"processNode"),n.forEach(l=>{l.type==="paragraph"?l.tokens?.forEach(u=>{s(u)}):l.type==="html"&&i[a].push({content:l.text,type:"normal"})}),i}function oj(t,{markdownAutoWrap:e}={}){let r=en.lexer(t);function n(i){return i.type==="text"?e===!1?i.text.replace(/ \n */g,"<br/>").replace(/ /g," "):i.text.replace(/ \n */g,"<br/>"):i.type==="strong"? ` < strong > $ { i . tokens ? . map ( n ) . join ( "" ) } < / s t r o n g > ` : i . t y p e = = = " e m " ? ` < e m > $ { i . t o k e n s ? . m a p ( n ) . j o i n ( " " ) } < / e m > ` : i . t y p e = = = " p a r a g r a p h " ? ` < p > $ { i . t o k e n s ? . m a p ( n ) . j o i n ( " " ) } < / p > ` : i . t y p e = = = " s p a c e " ? " " : i . t y p e = = = " h t m l " ? ` $ { i . t e x t } ` : i . t y p e = = = " e s c a p e " ? i . t e x t : ` U n s u p p o r t e d m a r k d o w n : $ { i . t y p e } ` } r e t u r n o ( n , " o u t p u t " ) , r . m a p ( n ) . j o i n ( " " ) } v a r l j = M ( ( ) = > { " u s e s t r i c t " ; a j ( ) ; G S ( ) ; o ( x 7 e , " p r e p r o c e s s M a r k d o w n " ) ; o ( s j , " m a r k d o w n T o L i n e s " ) ; o ( o j , " m a r k d o w n T o H T M L " ) } ) ; f u n c t i o n b 7 e ( t ) { r e t u r n I n t l . S e g m e n t e r ? [ . . . n e w I n t l . S e g m e n t e r ( ) . s e g m e n t ( t ) ] . m a p ( e = > e . s e g m e n t ) : [ . . . t ] } f u n c t i o n w 7 e ( t , e ) { l e t r = b 7 e ( e . c o n t e n t ) ; r e t u r n c j ( t , [ ] , r , e . t y p e ) } f u n c t i o n c j ( t , e , r , n ) { i f ( r . l e n g t h = = = 0 ) r e t u r n [ { c o n t e n t : e . j o i n ( " " ) , t y p e : n } , { c o n t e n t : " " , t y p e : n } ] ; l e t [ i , . . . a ] = r , s = [ . . . e , i ] ; r e t u r n t ( [ { c o n t e n t : s . j o i n ( " " ) , t y p e : n } ] ) ? c j ( t , s , a , n ) : ( e . l e n g t h = = = 0 & & i & & ( e . p u s h ( i ) , r . s h i f t ( ) ) , [ { c o n t e n t : e . j o i n ( " " ) , t y p e : n } , { c o n t e n t : r . j o i n ( " " ) , t y p e : n } ] ) } f u n c t i o n u j ( t , e ) { i f ( t . s o m e ( ( { c o n t e n t : r } ) = > r . i n c l u d e s ( `
` )))throw new Error("splitLineToFitWidth does not support newlines in the line");return v9(t,e)}function v9(t,e,r=[],n=[]){if(t.length===0)return n.length>0&&r.push(n),r.length>0?r:[];let i="";t[0].content===" "&&(i=" ",t.shift());let a=t.shift()??{content:" ",type:"normal"},s=[...n];if(i!==""&&s.push({content:i,type:"normal"}),s.push(a),e(s))return v9(t,e,r,s);if(n.length>0)r.push(n),t.unshift(a);else if(a.content){let[l,u]=w7e(e,a);r.push([l]),u.content&&t.unshift(u)}return v9(t,e,r)}var hj=M(()=>{"use strict";o(b7e,"splitTextToChars");o(w7e,"splitWordToFitWidth");o(cj,"splitWordToFitWidthRecursion");o(uj,"splitLineToFitWidth");o(v9,"splitLineToFitWidthRecursion")});function fj(t,e){e&&t.attr("style",e)}async function T7e(t,e,r,n,i=!1){let a=t.append("foreignObject");a.attr("width", ` $ { 10 * r } px ` ),a.attr("height", ` $ { 10 * r } px ` );let s=a.append("xhtml:div"),l=e.label;e.label&&yi(e.label)&&(l=await bh(e.label.replace(qe.lineBreakRegex, `
` ),pe()));let u=e.isNode?"nodeLabel":"edgeLabel",h=s.append("span");h.html(l),fj(h,e.labelStyle),h.attr("class", ` $ { u } $ { n } ` ),fj(s,e.labelStyle),s.style("display","table-cell"),s.style("white-space","nowrap"),s.style("line-height","1.5"),s.style("max-width",r+"px"),s.style("text-align","center"),s.attr("xmlns","http://www.w3.org/1999/xhtml"),i&&s.attr("class","labelBkg");let f=s.node().getBoundingClientRect();return f.width===r&&(s.style("display","table"),s.style("white-space","break-spaces"),s.style("width",r+"px"),f=s.node().getBoundingClientRect()),a.node()}function x9(t,e,r){return t.append("tspan").attr("class","text-outer-tspan").attr("x",0).attr("y",e*r-.1+"em").attr("dy",r+"em")}function k7e(t,e,r){let n=t.append("text"),i=x9(n,1,e);b9(i,r);let a=i.node().getComputedTextLength();return n.remove(),a}function dj(t,e,r){let n=t.append("text"),i=x9(n,1,e);b9(i,[{content:r,type:"normal"}]);let a=i.node()?.getBoundingClientRect();return a&&n.remove(),a}function E7e(t,e,r,n=!1){let a=e.append("g"),s=a.insert("rect").attr("class","background").attr("style","stroke: none"),l=a.append("text").attr("y","-10.1"),u=0;for(let h of r){let f=o(p=>k7e(a,1.1,p)<=t,"checkWidth"),d=f(h)?[h]:uj(h,f);for(let p of d){let m=x9(l,u,1.1);b9(m,p),u++}}if(n){let h=l.node().getBBox(),f=2;return s.attr("x",h.x-f).attr("y",h.y-f).attr("width",h.width+2*f).attr("height",h.height+2*f),a.node()}else return l.node()}function b9(t,e){t.text(""),e.forEach((r,n)=>{let i=t.append("tspan").attr("font-style",r.type==="em"?"italic":"normal").attr("class","text-inner-tspan").attr("font-weight",r.type==="strong"?"bold":"normal");n===0?i.text(r.content):i.text(" "+r.content)})}function w9(t){return t.replace(/fa[bklrs]?:fa-[ \w -]+/g,e=> ` < i class = '${e.replace(":"," ")}' > < /i>`)}var Li,Pl=M(()=>{"use strict";Vt();fr();pr();ut();lj();hr();hj();o(fj,"applyStyle");o(T7e,"addHtmlSpan");o(x9,"createTspan");o(k7e,"computeWidthOfText");o(dj,"computeDimensionOfText");o(E7e,"createFormattedText");o(b9,"updateTextContentAndStyles");o(w9,"replaceIconSubstring");Li=o(async(t,e="",{style:r="",isTitle:n=!1,classes:i="",useHtmlLabels:a=!0,isNode:s=!0,width:l=200,addSvgBackground:u=!1}={},h)=>{if(Y.debug("XYZ createText",e,r,n,i,a,s,"addSvgBackground: ",u),a){let f=oj(e,h),d=w9(Ma(f)),p=e.replace(/ \ \ \ \ / g , "\\" ) , m = { isNode : s , label : yi ( e ) ? p : d , labelStyle : r . replace ( "fill:" , "color:" ) } ; return await T7e ( t , m , l , i , u ) } else { let f = e . replace ( /<br\s*\/?>/g , "<br/>" ) , d = sj ( f . replace ( "<br>" , "<br/>" ) , h ) , p = E7e ( l , t , d , e ? u : ! 1 ) ; if ( s ) { /stroke:/ . exec ( r ) && ( r = r . replace ( "stroke:" , "lineColor:" ) ) ; let m = r . replace ( /stroke:[^;]+;?/g , "" ) . replace ( /stroke-width:[^;]+;?/g , "" ) . replace ( /fill:[^;]+;?/g , "" ) . replace ( /color:/g , "fill:" ) ; Ve ( p ) . attr ( "style" , m ) } else { let m = r . replace ( /stroke:[^;]+;?/g , "" ) . replace ( /stroke-width:[^;]+;?/g , "" ) . replace ( /fill:[^;]+;?/g , "" ) . replace ( /background:/g , "fill:" ) ; Ve ( p ) . select ( "rect" ) . attr ( "style" , m . replace ( /background:/g , "fill:" ) ) ; let g = r . replace ( /stroke:[^;]+;?/g , "" ) . replace ( /stroke-width:[^;]+;?/g , "" ) . replace ( /fill:[^;]+;?/g , "" ) . replace ( /color:/g , "fill:" ) ; Ve ( p ) . select ( "text" ) . attr ( "style" , g ) } return p } } , "createText" ) } ) ; function Wt ( t ) { let e = t . map ( ( r , n ) => ` ${ n === 0 ? "M" : "L" } ${ r . x } , ${ r . y } ` ) ; return e . push ( "Z" ) , e . join ( " " ) } function Wo ( t , e , r , n , i , a ) { let s = [ ] , u = r - t , h = n - e , f = u / a , d = 2 * Math . PI / f , p = e + h / 2 ; for ( let m = 0 ; m <= 50 ; m ++ ) { let g = m / 50 , y = t + g * u , v = p + i * Math . sin ( d * ( y - t ) ) ; s . push ( { x : y , y : v } ) } return s } function O5 ( t , e , r , n , i , a ) { let s = [ ] , l = i * Math . PI / 180 , f = ( a * Math . PI / 180 - l ) / ( n - 1 ) ; for ( let d = 0 ; d < n ; d ++ ) { let p = l + d * f , m = t + r * Math . cos ( p ) , g = e + r * Math . sin ( p ) ; s . push ( { x : - m , y : - g } ) } return s } var st , I5 , je , ot , Ot = M ( ( ) => { "use strict" ; Pl ( ) ; Vt ( ) ; pr ( ) ; bs ( ) ; fr ( ) ; hr ( ) ; st = o ( async ( t , e , r ) => { let n , i = e . useHtmlLabels || xr ( pe ( ) ? . htmlLabels ) ; r ? n = r : n = "node default" ; let a = t . insert ( "g" ) . attr ( "class" , n ) . attr ( "id" , e . domId || e . id ) , s = a . insert ( "g" ) . attr ( "class" , "label" ) . attr ( "style" , Gn ( e . labelStyle ) ) , l ; e . label === void 0 ? l = "" : l = typeof e . label == "string" ? e . label : e . label [ 0 ] ; let u = await Li ( s , kr ( Ma ( l ) , pe ( ) ) , { useHtmlLabels : i , width : e . width || pe ( ) . flowchart ? . wrappingWidth , cssClasses : "markdown-node-label" , style : e . labelStyle , addSvgBackground : ! ! e . icon || ! ! e . img } ) , h = u . getBBox
M $ { i . x } , $ { i . y } L $ { s . x } , $ { s . y } ` }function jj(t,e){let{labelStyles:r,nodeStyles:n}=Ze(e);e.labelStyle=r,e.label="";let i=t.insert("g").attr("class",ot(e)).attr("id",e.domId??e.id),a=Math.max(30,e?.width??0),{cssStyles:s}=e,l=Xe.svg(i),u=Ke(e,{});e.look!=="handDrawn"&&(u.roughness=0,u.fillStyle="solid");let h=l.circle(0,0,a*2,u),f=G7e(a),d=l.path(f,u),p=i.insert(()=>h,":first-child");return p.insert(()=>d),s&&e.look!=="handDrawn"&&p.selectAll("path").attr("style",s),n&&e.look!=="handDrawn"&&p.selectAll("path").attr("style",n),je(e,p),e.intersect=function(m){return Y.info("crossedCircle intersect",e,{radius:a,point:m}),Ye.circle(e,a,m)},i}var Kj=M(()=>{"use strict";ut();Ot();Xt();jt();qt();o(G7e,"createLine");o(jj,"crossedCircle")});function Yh(t,e,r,n=100,i=0,a=180){let s=[],l=i*Math.PI/180,f=(a*Math.PI/180-l)/(n-1);for(let d=0;d<n;d++){let p=l+d*f,m=t+r*Math.cos(p),g=e+r*Math.sin(p);s.push({x:-m,y:-g})}return s}async function Qj(t,e){let{labelStyles:r,nodeStyles:n}=Ze(e);e.labelStyle=r;let{shapeSvg:i,bbox:a,label:s}=await st(t,e,ot(e)),l=a.width+(e.padding??0),u=a.height+(e.padding??0),h=Math.max(5,u*.1),{cssStyles:f}=e,d=[...Yh(l/2,-u/2,h,30,-90,0),{x:-l/2-h,y:h},...Yh(l/2+h*2,-h,h,20,-180,-270),...Yh(l/2+h*2,h,h,20,-90,-180),{x:-l/2-h,y:-u/2},...Yh(l/2,u/2,h,20,0,90)],p=[{x:l/2,y:-u/2-h},{x:-l/2,y:-u/2-h},...Yh(l/2,-u/2,h,20,-90,0),{x:-l/2-h,y:-h},...Yh(l/2+l*.1,-h,h,20,-180,-270),...Yh(l/2+l*.1,h,h,20,-90,-180),{x:-l/2-h,y:u/2},...Yh(l/2,u/2,h,20,0,90),{x:-l/2,y:u/2+h},{x:l/2,y:u/2+h}],m=Xe.svg(i),g=Ke(e,{fill:"none"});e.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");let v=Wt(d).replace("Z",""),x=m.path(v,g),b=Wt(p),w=m.path(b,{...g}),_=i.insert("g",":first-child");return _.insert(()=>w,":first-child").attr("stroke-opacity",0),_.insert(()=>x,":first-child"),_.attr("class","text"),f&&e.look!=="handDrawn"&&_.selectAll("path").attr("style",f),n&&e.look!=="handDrawn"&&_.selectAll("path").attr("style",n),_.attr("transform", ` translate ( $ { h } , 0 ) ` ),s.attr("transform", ` translate ( $ { - l / 2 + h - ( a . x - ( a . left ? ? 0 ) ) } , $ { - u / 2 + ( e . padding ? ? 0 ) / 2 - ( a . y - ( a . top ? ? 0 ) ) } ) ` ),je(e,_),e.intersect=function(T){return Ye.polygon(e,p,T)},i}var Zj=M(()=>{"use strict";Ot();qt();Xt();jt();o(Yh,"generateCirclePoints");o(Qj,"curlyBraceLeft")});function qh(t,e,r,n=100,i=0,a=180){let s=[],l=i*Math.PI/180,f=(a*Math.PI/180-l)/(n-1);for(let d=0;d<n;d++){let p=l+d*f,m=t+r*Math.cos(p),g=e+r*Math.sin(p);s.push({x:m,y:g})}return s}async function Jj(t,e){let{labelStyles:r,nodeStyles:n}=Ze(e);e.labelStyle=r;let{shapeSvg:i,bbox:a,label:s}=await st(t,e,ot(e)),l=a.width+(e.padding??0),u=a.height+(e.padding??0),h=Math.max(5,u*.1),{cssStyles:f}=e,d=[...qh(l/2,-u/2,h,20,-90,0),{x:l/2+h,y:-h},...qh(l/2+h*2,-h,h,20,-180,-270),...qh(l/2+h*2,h,h,20,-90,-180),{x:l/2+h,y:u/2},...qh(l/2,u/2,h,20,0,90)],p=[{x:-l/2,y:-u/2-h},{x:l/2,y:-u/2-h},...qh(l/2,-u/2,h,20,-90,0),{x:l/2+h,y:-h},...qh(l/2+h*2,-h,h,20,-180,-270),...qh(l/2+h*2,h,h,20,-90,-180),{x:l/2+h,y:u/2},...qh(l/2,u/2,h,20,0,90),{x:l/2,y:u/2+h},{x:-l/2,y:u/2+h}],m=Xe.svg(i),g=Ke(e,{fill:"none"});e.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");let v=Wt(d).replace("Z",""),x=m.path(v,g),b=Wt(p),w=m.path(b,{...g}),_=i.insert("g",":first-child");return _.insert(()=>w,":first-child").attr("stroke-opacity",0),_.insert(()=>x,":first-child"),_.attr("class","text"),f&&e.look!=="handDrawn"&&_.selectAll("path").attr("style",f),n&&e.look!=="handDrawn"&&_.selectAll("path").attr("style",n),_.attr("transform", ` translate ( $ { - h } , 0 ) ` ),s.attr("transform", ` translate ( $ { - l / 2 + ( e . padding ? ? 0 ) / 2 - ( a . x - ( a . left ? ? 0 ) ) } , $ { - u / 2 + ( e . padding ? ? 0 ) / 2 - ( a . y - ( a . top ? ? 0 ) ) } ) ` ),je(e,_),e.intersect=function(T){return Ye.polygon(e,p,T)},i}var eK=M(()=>{"use strict";Ot();qt();Xt();jt();o(qh,"generateCirclePoints");o(Jj,"curlyBraceRight")});function Oa(t,e,r,n=100,i=0,a=180){let s=[],l=i*Math.PI/180,f=(a*Math.PI/180-l)/(n-1);for(let d=0;d<n;d++){let p=l+d*f,m=t+r*Math.cos(p),g=e+r*Math.sin(p);s.push({x:-m,y:-g})}return s}async function tK(t,e){let{labelStyles:r,nodeStyles:n}=Ze(e);e.labelStyle=r;let{shapeSvg:i,bbox:a,label:s}=await st(t,e,ot(e)
point : ` ,p, `
node :
` ,e, `
res : ` ,Ye.polygon(e,h,p)),Ye.polygon(e,h,p)},i}var X7e,eQ=M(()=>{"use strict";ut();Ot();qt();Xt();jt();Ou();X7e=o((t,e,r)=>[ ` M$ { t + r / 2 } , $ { e } ` , ` L$ { t + r } , $ { e - r / 2 } ` , ` L$ { t + r / 2 } , $ { e - r } ` , ` L$ { t } , $ { e - r / 2 } ` ,"Z"].join(" "),"createDecisionBoxPathD");o(JK,"question")});async function tQ(t,e){let{labelStyles:r,nodeStyles:n}=Ze(e);e.labelStyle=r;let{shapeSvg:i,bbox:a,label:s}=await st(t,e,ot(e)),l=Math.max(a.width+(e.padding??0),e?.width??0),u=Math.max(a.height+(e.padding??0),e?.height??0),h=-l/2,f=-u/2,d=f/2,p=[{x:h+d,y:f},{x:h,y:0},{x:h+d,y:-f},{x:-h,y:-f},{x:-h,y:f}],{cssStyles:m}=e,g=Xe.svg(i),y=Ke(e,{});e.look!=="handDrawn"&&(y.roughness=0,y.fillStyle="solid");let v=Wt(p),x=g.path(v,y),b=i.insert(()=>x,":first-child");return b.attr("class","basic label-container"),m&&e.look!=="handDrawn"&&b.selectAll("path").attr("style",m),n&&e.look!=="handDrawn"&&b.selectAll("path").attr("style",n),b.attr("transform", ` translate ( $ { - d / 2 } , 0 ) ` ),s.attr("transform", ` translate ( $ { - d / 2 - a . width / 2 - ( a . x - ( a . left ? ? 0 ) ) } , $ { - ( a . height / 2 ) - ( a . y - ( a . top ? ? 0 ) ) } ) ` ),je(e,b),e.intersect=function(w){return Ye.polygon(e,p,w)},i}var rQ=M(()=>{"use strict";Ot();qt();Xt();jt();o(tQ,"rect_left_inv_arrow")});function j7e(t,e){e&&t.attr("style",e)}async function K7e(t){let e=Ve(document.createElementNS("http://www.w3.org/2000/svg","foreignObject")),r=e.append("xhtml:div"),n=t.label;t.label&&yi(t.label)&&(n=await bh(t.label.replace(qe.lineBreakRegex, `
` ),pe()));let i=t.isNode?"nodeLabel":"edgeLabel";return r.html('<span class="'+i+'" '+(t.labelStyle?'style="'+t.labelStyle+'"':"")+">"+n+"</span>"),j7e(r,t.labelStyle),r.style("display","inline-block"),r.style("padding-right","1px"),r.style("white-space","nowrap"),r.attr("xmlns","http://www.w3.org/1999/xhtml"),e.node()}var Q7e,Cc,Y5=M(()=>{"use strict";pr();ut();Vt();fr();hr();o(j7e,"applyStyle");o(K7e,"addHtmlLabel");Q7e=o(async(t,e,r,n)=>{let i=t||"";if(typeof i=="object"&&(i=i[0]),xr(pe().flowchart.htmlLabels)){i=i.replace(/ \\ n| \n /g,"<br />"),Y.info("vertexText"+i);let a={isNode:n,label:Ma(i).replace(/fa[blrs]?:fa-[ \w -]+/g,l=> ` < i class = '${l.replace(":"," ")}' > < /i>`),labelStyle:e&&e.replace("fill:","color:")};return await K7e(a)}else{let a=document.createElementNS("http:/ / www . w3 . org / 2000 / svg "," text ");a.setAttribute(" style ",e.replace(" color : "," fill : "));let s=[];typeof i==" string "?s=i.split(/\\n|\n|<br\s*\/?>/gi):Array.isArray(i)?s=i:s=[];for(let l of s){let u=document.createElementNS(" http : //www.w3.org/2000/svg","tspan");u.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),u.setAttribute("dy","1em"),u.setAttribute("x","0"),r?u.setAttribute("class","title-row"):u.setAttribute("class","row"),u.textContent=l.trim(),a.appendChild(u)}return a}},"createLabel"),Cc=Q7e});async function nQ(t,e){let{labelStyles:r,nodeStyles:n}=Ze(e);e.labelStyle=r;let i;e.cssClasses?i="node "+e.cssClasses:i="node default";let a=t.insert("g").attr("class",i).attr("id",e.domId||e.id),s=a.insert("g"),l=a.insert("g").attr("class","label").attr("style",n),u=e.description,h=e.label,f=l.node().appendChild(await Cc(h,e.labelStyle,!0,!0)),d={width:0,height:0};if(xr(pe()?.flowchart?.htmlLabels)){let S=f.children[0],A=Ve(f);d=S.getBoundingClientRect(),A.attr("width",d.width),A.attr("height",d.height)}Y.info("Text 2",u);let p=u||[],m=f.getBBox(),g=l.node().appendChild(await Cc(p.join?p.join("<br/>"):p,e.labelStyle,!0,!0)),y=g.children[0],v=Ve(g);d=y.getBoundingClientRect(),v.attr("width",d.width),v.attr("height",d.height);let x=(e.padding||0)/2;Ve(g).attr("transform","translate( "+(d.width>m.width?0:(m.width-d.width)/2)+", "+(m.height+x+5)+")"),Ve(f).attr("transform","translate( "+(d.width<m.width?0:-(m.width-d.width)/2)+", 0)"),d=l.node().getBBox(),l.attr("transform","translate("+-d.width/2+", "+(-d.height/2-x+3)+")");let b=d.width+(e.padding||0),w=d.height+(e.padding||0),_=-d.width/2-x,T=-d.height/2-x,E,L;if(e.look==="handDrawn"){let S=Xe.svg(a),A=Ke(e,{}),I=S.path(Pa(_,T,b,w,e.rx||0),A),D=S.line(-d.width/2-x,-d.height/2-x+m.height+x,d.width/2+x,-d.height/2-x+m.height+x,A);L=a.insert(()=>(Y.debug("Rough node insert CXC",I),D),":first-child"),E=a.insert(()=>(Y.debug("Rough node insert CXC",I),I),":first-child")}else E=s.insert("rect",":first-child"),L=s.insert("line"),E.attr("class","outer title-state").attr("style",n).attr("x",-d.width/2-x).attr("y",-d.height/2-x).attr("width",d.width+(e.padding||0)).attr("height",d.height+(e.padding||0)),L.attr("class","divider").attr("x1",-d.width/2-x).attr("x2",d.width/2+x).attr("y1",-d.height/2-x+m.height+x).attr("y2",-d.height/2-x+m.height+x);return je(e,E),e.intersect=function(S){return Ye.rect(e,S)},a}var iQ=M(()=>{"use strict";pr();fr();Ot();Y5();qt();Xt();jt();Vt();Xh();ut();o(nQ,"rectWithTitle")});async function aQ(t,e){let r={rx:5,ry:5,classes:"",labelPaddingX:(e?.padding||0)*1,labelPaddingY:(e?.padding||0)*1};return Pd(t,e,r)}var sQ=M(()=>{"use strict";Mv();o(aQ,"roundedRect")});async function oQ(t,e){let{labelStyles:r,nodeStyles:n}=Ze(e);e.labelStyle=r;let{shapeSvg:i,bbox:a,label:s}=await st(t,e,ot(e)),l=e?.padding??0,u=Math.max(a.width+(e.padding??0)*2,e?.width??0),h=Math.max(a.height+(e.padding??0)*2,e?.height??0),f=-a.width/2-l,d=-a.height/2-l,{cssStyles:p}=e,m=Xe.svg(i),g=Ke(e,{});e.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");let y=[{x:f,y:d},{x:f+u+8,y:d},{x:f+u+8,y:d+h},{x:f-8,y:d+h},{x:f-8,y:d},{x:f,y:d},{x:f,y:d+h}],v=m.polygon(y.map(b=>[b.x,b.y]),g),x=i.insert(()=>v,":first-child");return x.attr("class","basic label-container").attr("style",Gn(p)),n&&e.look!=="h
a$ { i } , $ { a } 0 , 0 , 1 0 , $ { - n }
l$ { r } , 0
a$ { i } , $ { a } 0 , 0 , 1 0 , $ { n }
M$ { r } , $ { - n }
a$ { i } , $ { a } 0 , 0 , 0 0 , $ { n }
l$ { - r } , 0 ` ,"createCylinderPathD"),J7e=o((t,e,r,n,i,a)=>[ ` M$ { t } , $ { e } ` , ` M$ { t + r } , $ { e } ` , ` a$ { i } , $ { a } 0 , 0 , 0 0 , $ { - n } ` , ` l$ { - r } , 0 ` , ` a$ { i } , $ { a } 0 , 0 , 0 0 , $ { n } ` , ` l$ { r } , 0 ` ].join(" "),"createOuterCylinderPathD"),eAe=o((t,e,r,n,i,a)=>[ ` M$ { t + r / 2 } , $ { - n / 2 } ` , ` a$ { i } , $ { a } 0 , 0 , 0 0 , $ { n } ` ].join(" "),"createInnerCylinderPathD");o(LQ,"tiltedCylinder")});async function NQ(t,e){let{labelStyles:r,nodeStyles:n}=Ze(e);e.labelStyle=r;let{shapeSvg:i,bbox:a}=await st(t,e,ot(e)),s=a.width+e.padding,l=a.height+e.padding,u=[{x:-3*l/6,y:0},{x:s+3*l/6,y:0},{x:s,y:-l},{x:0,y:-l}],h,{cssStyles:f}=e;if(e.look==="handDrawn"){let d=Xe.svg(i),p=Ke(e,{}),m=Wt(u),g=d.path(m,p);h=i.insert(()=>g,":first-child").attr("transform", ` translate ( $ { - s / 2 } , $ { l / 2 } ) ` ),f&&h.attr("style",f)}else h=Ia(i,s,l,u);return n&&h.attr("style",n),e.width=s,e.height=l,je(e,h),e.intersect=function(d){return Ye.polygon(e,u,d)},i}var RQ=M(()=>{"use strict";Ot();qt();Xt();jt();Ou();o(NQ,"trapezoid")});async function MQ(t,e){let{labelStyles:r,nodeStyles:n}=Ze(e);e.labelStyle=r;let{shapeSvg:i,bbox:a}=await st(t,e,ot(e)),s=60,l=20,u=Math.max(s,a.width+(e.padding??0)*2,e?.width??0),h=Math.max(l,a.height+(e.padding??0)*2,e?.height??0),{cssStyles:f}=e,d=Xe.svg(i),p=Ke(e,{});e.look!=="handDrawn"&&(p.roughness=0,p.fillStyle="solid");let m=[{x:-u/2*.8,y:-h/2},{x:u/2*.8,y:-h/2},{x:u/2,y:-h/2*.6},{x:u/2,y:h/2},{x:-u/2,y:h/2},{x:-u/2,y:-h/2*.6}],g=Wt(m),y=d.path(g,p),v=i.insert(()=>y,":first-child");return v.attr("class","basic label-container"),f&&e.look!=="handDrawn"&&v.selectChildren("path").attr("style",f),n&&e.look!=="handDrawn"&&v.selectChildren("path").attr("style",n),je(e,v),e.intersect=function(x){return Ye.polygon(e,m,x)},i}var IQ=M(()=>{"use strict";Ot();qt();Xt();jt();o(MQ,"trapezoidalPentagon")});async function OQ(t,e){let{labelStyles:r,nodeStyles:n}=Ze(e);e.labelStyle=r;let{shapeSvg:i,bbox:a,label:s}=await st(t,e,ot(e)),l=xr(pe().flowchart?.htmlLabels),u=a.width+(e.padding??0),h=u+a.height,f=u+a.height,d=[{x:0,y:0},{x:f,y:0},{x:f/2,y:-h}],{cssStyles:p}=e,m=Xe.svg(i),g=Ke(e,{});e.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");let y=Wt(d),v=m.path(y,g),x=i.insert(()=>v,":first-child").attr("transform", ` translate ( $ { - h / 2 } , $ { h / 2 } ) ` );return p&&e.look!=="handDrawn"&&x.selectChildren("path").attr("style",p),n&&e.look!=="handDrawn"&&x.selectChildren("path").attr("style",n),e.width=u,e.height=h,je(e,x),s.attr("transform", ` translate ( $ { - a . width / 2 - ( a . x - ( a . left ? ? 0 ) ) } , $ { h / 2 - ( a . height + ( e . padding ? ? 0 ) / ( l ? 2 : 1 ) - ( a . y - ( a . top ? ? 0 ) ) ) } ) ` ),e.intersect=function(b){return Y.info("Triangle intersect",e,d,b),Ye.polygon(e,d,b)},i}var PQ=M(()=>{"use strict";ut();Ot();qt();Xt();jt();Ot();fr();Vt();o(OQ,"triangle")});async function BQ(t,e){let{labelStyles:r,nodeStyles:n}=Ze(e);e.labelStyle=r;let{shapeSvg:i,bbox:a,label:s}=await st(t,e,ot(e)),l=Math.max(a.width+(e.padding??0)*2,e?.width??0),u=Math.max(a.height+(e.padding??0)*2,e?.height??0),h=u/8,f=u+h,{cssStyles:d}=e,m=70-l,g=m>0?m/2:0,y=Xe.svg(i),v=Ke(e,{});e.look!=="handDrawn"&&(v.roughness=0,v.fillStyle="solid");let x=[{x:-l/2-g,y:f/2},...Wo(-l/2-g,f/2,l/2+g,f/2,h,.8),{x:l/2+g,y:-f/2},{x:-l/2-g,y:-f/2}],b=Wt(x),w=y.path(b,v),_=i.insert(()=>w,":first-child");return _.attr("class","basic label-container"),d&&e.look!=="handDrawn"&&_.selectAll("path").attr("style",d),n&&e.look!=="handDrawn"&&_.selectAll("path").attr("style",n),_.attr("transform", ` translate ( 0 , $ { - h / 2 } ) ` ),s.attr("transform", ` translate ( $ { - l / 2 + ( e . padding ? ? 0 ) - ( a . x - ( a . left ? ? 0 ) ) } , $ { - u / 2 + ( e . padding ? ? 0 ) - h - ( a . y - ( a . top ? ? 0 ) ) } ) ` ),je(e,_),e.intersect=function(T){return Ye.polygon(e,x,T)},i}var FQ=M(()=>{"use strict";Ot();qt();jt();Xt();o(BQ,"waveEdgedRectangle")});async function zQ(t,e){let{labelStyles:r,nodeStyles:n}=Ze(e);e.labelStyle=r;let{shapeSvg:i,bbox:a}=await st(t,e,ot(e)),s=100,l=50,u=Math.max(a.width+(e.padding??0)*2,e?.width??0),h=Math.max(a.height+(e.padding??0)*2,e?.height??0),f=u/h,d=u,p=h;d>p*f?p=d/f:d=p*f,d=Math.max(d,s),p=Math.max(p,l);let m=Math.min(p*.2,p/4),g=p+m*2,{cssStyles:y}=e,v=Xe.svg(i),x=Ke(e,{});e.look!=="handDrawn"&&(x.roughness=0,x.fillStyle="solid");let b=[{x:-d/2,y:g/2},...Wo(-d/2,g
M$ { f - h } , $ { d } L$ { f + l } , $ { d }
M$ { f } , $ { d - h } L$ { f } , $ { d + u } ` ;e.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");let x=m.path(v,g),b=i.insert(()=>x,":first-child");return b.attr("transform", ` translate ( $ { h / 2 } , $ { h / 2 } ) ` ),b.attr("class","basic label-container"),p&&e.look!=="handDrawn"&&b.selectAll("path").attr("style",p),n&&e.look!=="handDrawn"&&b.selectAll("path").attr("style",n),s.attr("transform", ` translate ( $ { - ( a . width / 2 ) + h / 2 - ( a . x - ( a . left ? ? 0 ) ) } , $ { - ( a . height / 2 ) + h / 2 - ( a . y - ( a . top ? ? 0 ) ) } ) ` ),je(e,b),e.intersect=function(w){return Ye.polygon(e,y,w)},i}var VQ=M(()=>{"use strict";Ot();Xt();jt();qt();o( $ Q,"windowPane")});async function UQ(t,e,r,n,i=r.class.padding??12){let a=n?0:3,s=t.insert("g").attr("class",ot(e)).attr("id",e.domId||e.id),l=null,u=null,h=null,f=null,d=0,p=0,m=0;if(l=s.insert("g").attr("class","annotation-group text"),e.annotations.length>0){let b=e.annotations[0];await q5(l,{text: ` \ xAB$ { b } \ xBB ` },0),d=l.node().getBBox().height}u=s.insert("g").attr("class","label-group text"),await q5(u,e,0,["font-weight: bolder"]);let g=u.node().getBBox();p=g.height,h=s.insert("g").attr("class","members-group text");let y=0;for(let b of e.members){let w=await q5(h,b,y,[b.parseClassifier()]);y+=w+a}m=h.node().getBBox().height,m<=0&&(m=i/2),f=s.insert("g").attr("class","methods-group text");let v=0;for(let b of e.methods){let w=await q5(f,b,v,[b.parseClassifier()]);v+=w+a}let x=s.node().getBBox();if(l!==null){let b=l.node().getBBox();l.attr("transform", ` translate ( $ { - b . width / 2 } ) ` )}return u.attr("transform", ` translate ( $ { - g . width / 2 } , $ { d } ) ` ),x=s.node().getBBox(),h.attr("transform", ` translate ( 0 , $ { d + p + i * 2 } ) ` ),x=s.node().getBBox(),f.attr("transform", ` translate ( 0 , $ { d + p + ( m ? m + i * 4 : i * 2 ) } ) ` ),x=s.node().getBBox(),{shapeSvg:s,bbox:x}}async function q5(t,e,r,n=[]){let i=t.insert("g").attr("class","label").attr("style",n.join("; ")),a=Cr(),s="useHtmlLabels"in e?e.useHtmlLabels:xr(a.htmlLabels)??!0,l="";"text"in e?l=e.text:l=e.label,!s&&l.startsWith(" \\ ")&&(l=l.substring(1)),yi(l)&&(s=!0);let u=await Li(i,s7(Ma(l)),{width:so(l,a)+50,classes:"markdown-node-label",useHtmlLabels:s},a),h,f=1;if(s){let d=u.children[0],p=Ve(u);f=d.innerHTML.split("<br>").length,d.innerHTML.includes("</math>")&&(f+=d.innerHTML.split("<mrow>").length-1);let m=d.getElementsByTagName("img");if(m){let g=l.replace(/<img[^>]*>/g,"").trim()==="";await Promise.all([...m].map(y=>new Promise(v=>{function x(){if(y.style.display="flex",y.style.flexDirection="column",g){let b=a.fontSize?.toString()??window.getComputedStyle(document.body).fontSize,_=parseInt(b,10)*5+"px";y.style.minWidth=_,y.style.maxWidth=_}else y.style.width="100%";v(y)}o(x,"setupImage"),setTimeout(()=>{y.complete&&x()}),y.addEventListener("error",x),y.addEventListener("load",x)})))}h=d.getBoundingClientRect(),p.attr("width",h.width),p.attr("height",h.height)}else{n.includes("font-weight: bolder")&&Ve(u).selectAll("tspan").attr("font-weight",""),f=u.children.length;let d=u.children[0];(u.textContent===""||u.textContent.includes(">"))&&(d.textContent=l[0]+l.substring(1).replaceAll(">",">").replaceAll("<","<").trim(),l[1]===" "&&(d.textContent=d.textContent[0]+" "+d.textContent.substring(1))),d.textContent==="undefined"&&(d.textContent=""),h=u.getBBox()}return i.attr("transform","translate(0,"+(-h.height/(2*f)+r)+")"),h.height}var HQ=M(()=>{"use strict";pr();Za();Ot();hr();Vt();Pl();fr();o(UQ,"textHelper");o(q5,"addText")});async function WQ(t,e){let r=pe(),n=r.class.padding??12,i=n,a=e.useHtmlLabels??xr(r.htmlLabels)??!0,s=e;s.annotations=s.annotations??[],s.members=s.members??[],s.methods=s.methods??[];let{shapeSvg:l,bbox:u}=await UQ(t,e,r,a,i),{labelStyles:h,nodeStyles:f}=Ze(e);e.labelStyle=h,e.cssStyles=s.styles||"";let d=s.styles?.join(";")||f||"";e.cssStyles||(e.cssStyles=d.replaceAll("!important","").split(";"));let p=s.members.length===0&&s.methods.length===0&&!r.class?.hideEmptyMembersBox,m=Xe.svg(l),g=Ke(e,{});e.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");let y=u.width,v=u.height;s.members.length===0&&s.methods.length===0?v+=i:s.members.length>0&&s.methods.length===0&&(v+=i*2);let x=-y/2,b=-v/2,w=m
` +t.mark.snippet),n+" "+r):n}function Ov(t,e){Error.call(this),this.name="YAMLException",this.reason=t,this.mark=e,this.message=fZ(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}function U9(t,e,r,n,i){var a="",s="",l=Math.floor(i/2)-1;return n-e>l&&(a=" ... ",e=n-l+a.length),r-n>l&&(s=" ...",r=n+l-s.length),{str:a+t.slice(e,r).replace(/ \t /g," \u 2192")+s,pos:n-e+a.length}}function H9(t,e){return Gi.repeat(" ",e-t.length)+t}function mAe(t,e){if(e=Object.create(e||null),!t.buffer)return null;e.maxLength||(e.maxLength=79),typeof e.indent!="number"&&(e.indent=1),typeof e.linesBefore!="number"&&(e.linesBefore=3),typeof e.linesAfter!="number"&&(e.linesAfter=2);for(var r=/ \r ? \n | \r | \0 /g,n=[0],i=[],a,s=-1;a=r.exec(t.buffer);)i.push(a.index),n.push(a.index+a[0].length),t.position<=a.index&&s<0&&(s=n.length-2);s<0&&(s=n.length-1);var l="",u,h,f=Math.min(t.line+e.linesAfter,i.length).toString().length,d=e.maxLength-(e.indent+f+3);for(u=1;u<=e.linesBefore&&!(s-u<0);u++)h=U9(t.buffer,n[s-u],i[s-u],t.position-(n[s]-n[s-u]),d),l=Gi.repeat(" ",e.indent)+H9((t.line-u+1).toString(),f)+" | "+h.str+ `
` +l;for(h=U9(t.buffer,n[s],i[s],t.position,d),l+=Gi.repeat(" ",e.indent)+H9((t.line+1).toString(),f)+" | "+h.str+ `
` ,l+=Gi.repeat("-",e.indent+f+3+h.pos)+ ` ^
` ,u=1;u<=e.linesAfter&&!(s+u>=i.length);u++)h=U9(t.buffer,n[s+u],i[s+u],t.position-(n[s]-n[s+u]),d),l+=Gi.repeat(" ",e.indent)+H9((t.line+u+1).toString(),f)+" | "+h.str+ `
` ;return l.replace(/ \n $ /,"")}function xAe(t){var e={};return t!==null&&Object.keys(t).forEach(function(r){t[r].forEach(function(n){e[String(n)]=r})}),e}function bAe(t,e){if(e=e||{},Object.keys(e).forEach(function(r){if(yAe.indexOf(r)===-1)throw new Ms('Unknown option "'+r+'" is met in definition of "'+t+'" YAML type.')}),this.options=e,this.tag=t,this.kind=e.kind||null,this.resolve=e.resolve||function(){return!0},this.construct=e.construct||function(r){return r},this.instanceOf=e.instanceOf||null,this.predicate=e.predicate||null,this.represent=e.represent||null,this.representName=e.representName||null,this.defaultStyle=e.defaultStyle||null,this.multi=e.multi||!1,this.styleAliases=xAe(e.styleAliases||null),vAe.indexOf(this.kind)===-1)throw new Ms('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}function KQ(t,e){var r=[];return t[e].forEach(function(n){var i=r.length;r.forEach(function(a,s){a.tag===n.tag&&a.kind===n.kind&&a.multi===n.multi&&(i=s)}),r[i]=n}),r}function wAe(){var t={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},e,r;function n(i){i.multi?(t.multi[i.kind].push(i),t.multi.fallback.push(i)):t[i.kind][i.tag]=t.fallback[i.tag]=i}for(o(n,"collectType"),e=0,r=arguments.length;e<r;e+=1)arguments[e].forEach(n);return t}function Y9(t){return this.extend(t)}function AAe(t){if(t===null)return!0;var e=t.length;return e===1&&t==="~"||e===4&&(t==="null"||t==="Null"||t==="NULL")}function _Ae(){return null}function LAe(t){return t===null}function NAe(t){if(t===null)return!1;var e=t.length;return e===4&&(t==="true"||t==="True"||t==="TRUE")||e===5&&(t==="false"||t==="False"||t==="FALSE")}function RAe(t){return t==="true"||t==="True"||t==="TRUE"}function MAe(t){return Object.prototype.toString.call(t)==="[object Boolean]"}function OAe(t){return 48<=t&&t<=57||65<=t&&t<=70||97<=t&&t<=102}function PAe(t){return 48<=t&&t<=55}function BAe(t){return 48<=t&&t<=57}function FAe(t){if(t===null)return!1;var e=t.length,r=0,n=!1,i;if(!e)return!1;if(i=t[r],(i==="-"||i==="+")&&(i=t[++r]),i==="0"){if(r+1===e)return!0;if(i=t[++r],i==="b"){for(r++;r<e;r++)if(i=t[r],i!=="_"){if(i!=="0"&&i!=="1")return!1;n=!0}return n&&i!=="_"}if(i==="x"){for(r++;r<e;r++)if(i=t[r],i!=="_"){if(!OAe(t.charCodeAt(r)))return!1;n=!0}return n&&i!=="_"}if(i==="o"){for(r++;r<e;r++)if(i=t[r],i!=="_"){if(!PAe(t.charCodeAt(r)))return!1;n=!0}return n&&i!=="_"}}if(i==="_")return!1;for(;r<e;r++)if(i=t[r],i!=="_"){if(!BAe(t.charCodeAt(r)))return!1;n=!0}return!(!n||i==="_")}function zAe(t){var e=t,r=1,n;if(e.indexOf("_")!==-1&&(e=e.replace(/_/g,"")),n=e[0],(n==="-"||n==="+")&&(n==="-"&&(r=-1),e=e.slice(1),n=e[0]),e==="0")return 0;if(n==="0"){if(e[1]==="b")return r*parseInt(e.slice(2),2);if(e[1]==="x")return r*parseInt(e.slice(2),16);if(e[1]==="o")return r*parseInt(e.slice(2),8)}return r*parseInt(e,10)}function GAe(t){return Object.prototype.toString.call(t)==="[object Number]"&&t%1===0&&!Gi.isNegativeZero(t)}function UAe(t){return!(t===null||!VAe.test(t)||t[t.length-1]==="_")}function HAe(t){var e,r;return e=t.replace(/_/g,"").toLowerCase(),r=e[0]==="-"?-1:1,"+-".indexOf(e[0])>=0&&(e=e.slice(1)),e===".inf"?r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:e===".nan"?NaN:r*parseFloat(e,10)}function YAe(t,e){var r;if(isNaN(t))switch(e){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===t)switch(e){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===t)switch(e){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(Gi.isNegativeZero(t))return"-0.0";return r=t.toString(10),WAe.test(r)?r.replace("e",".e"):r}function qAe(t){return Object.prototype.toString.call(t)==="[object Number]"&&(t%1!==0||Gi.isNegativeZero(t))}function KAe(t){return t===null?!1:pZ.exec(t)!==null||mZ.exec(t)!==null}function QAe(t){var e,r,n,i,a,s,l,u=0,h=null,f,d,p;if(e=pZ.exec(t),e===null&&(e=mZ.exec(t)),e===null)throw new Error("Date resolve error");if(r=
` :t===118?" \v ":t===102?" \f ":t===114?" \r ":t===101?" \x 1B":t===32?" ":t===34?'"':t===47?"/":t===92?" \\ ":t===78?" \x 85":t===95?" \x A0":t===76?" \u 2028":t===80?" \u 2029":""}function A8e(t){return t<=65535?String.fromCharCode(t):String.fromCharCode((t-65536>>10)+55296,(t-65536&1023)+56320)}function _8e(t,e){this.input=t,this.filename=e.filename||null,this.schema=e.schema||gZ,this.onWarning=e.onWarning||null,this.legacy=e.legacy||!1,this.json=e.json||!1,this.listener=e.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=t.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function kZ(t,e){var r={name:t.filename,buffer:t.input.slice(0,-1),position:t.position,line:t.line,column:t.position-t.lineStart};return r.snippet=gAe(r),new Ms(e,r)}function Qt(t,e){throw kZ(t,e)}function K5(t,e){t.onWarning&&t.onWarning.call(null,kZ(t,e))}function jh(t,e,r,n){var i,a,s,l;if(e<r){if(l=t.input.slice(e,r),n)for(i=0,a=l.length;i<a;i+=1)s=l.charCodeAt(i),s===9||32<=s&&s<=1114111||Qt(t,"expected valid JSON character");else w8e.test(l)&&Qt(t,"the stream contains non-printable characters");t.result+=l}}function tZ(t,e,r,n){var i,a,s,l;for(Gi.isObject(r)||Qt(t,"cannot merge mappings; the provided source object is unacceptable"),i=Object.keys(r),s=0,l=i.length;s<l;s+=1)a=i[s],Kh.call(e,a)||(e[a]=r[a],n[a]=!0)}function Tm(t,e,r,n,i,a,s,l,u){var h,f;if(Array.isArray(i))for(i=Array.prototype.slice.call(i),h=0,f=i.length;h<f;h+=1)Array.isArray(i[h])&&Qt(t,"nested arrays are not supported inside keys"),typeof i=="object"&&ZQ(i[h])==="[object Object]"&&(i[h]="[object Object]");if(typeof i=="object"&&ZQ(i)==="[object Object]"&&(i="[object Object]"),i=String(i),e===null&&(e={}),n==="tag:yaml.org,2002:merge")if(Array.isArray(a))for(h=0,f=a.length;h<f;h+=1)tZ(t,e,a[h],r);else tZ(t,e,a,r);else!t.json&&!Kh.call(r,i)&&Kh.call(e,i)&&(t.line=s||t.line,t.lineStart=l||t.lineStart,t.position=u||t.position,Qt(t,"duplicated mapping key")),i==="__proto__"?Object.defineProperty(e,i,{configurable:!0,enumerable:!0,writable:!0,value:a}):e[i]=a,delete r[i];return e}function Z9(t){var e;e=t.input.charCodeAt(t.position),e===10?t.position++:e===13?(t.position++,t.input.charCodeAt(t.position)===10&&t.position++):Qt(t,"a line break is expected"),t.line+=1,t.lineStart=t.position,t.firstTabInLine=-1}function Di(t,e,r){for(var n=0,i=t.input.charCodeAt(t.position);i!==0;){for(;Fd(i);)i===9&&t.firstTabInLine===-1&&(t.firstTabInLine=t.position),i=t.input.charCodeAt(++t.position);if(e&&i===35)do i=t.input.charCodeAt(++t.position);while(i!==10&&i!==13&&i!==0);if(Ac(i))for(Z9(t),i=t.input.charCodeAt(t.position),n++,t.lineIndent=0;i===32;)t.lineIndent++,i=t.input.charCodeAt(++t.position);else break}return r!==-1&&n!==0&&t.lineIndent<r&&K5(t,"deficient indentation"),n}function J5(t){var e=t.position,r;return r=t.input.charCodeAt(e),!!((r===45||r===46)&&r===t.input.charCodeAt(e+1)&&r===t.input.charCodeAt(e+2)&&(e+=3,r=t.input.charCodeAt(e),r===0||Is(r)))}function J9(t,e){e===1?t.result+=" ":e>1&&(t.result+=Gi.repeat( `
` ,e-1))}function L8e(t,e,r){var n,i,a,s,l,u,h,f,d=t.kind,p=t.result,m;if(m=t.input.charCodeAt(t.position),Is(m)||wm(m)||m===35||m===38||m===42||m===33||m===124||m===62||m===39||m===34||m===37||m===64||m===96||(m===63||m===45)&&(i=t.input.charCodeAt(t.position+1),Is(i)||r&&wm(i)))return!1;for(t.kind="scalar",t.result="",a=s=t.position,l=!1;m!==0;){if(m===58){if(i=t.input.charCodeAt(t.position+1),Is(i)||r&&wm(i))break}else if(m===35){if(n=t.input.charCodeAt(t.position-1),Is(n))break}else{if(t.position===t.lineStart&&J5(t)||r&&wm(m))break;if(Ac(m))if(u=t.line,h=t.lineStart,f=t.lineIndent,Di(t,!1,-1),t.lineIndent>=e){l=!0,m=t.input.charCodeAt(t.position);continue}else{t.position=s,t.line=u,t.lineStart=h,t.lineIndent=f;break}}l&&(jh(t,a,s,!1),J9(t,t.line-u),a=s=t.position,l=!1),Fd(m)||(s=t.position+1),m=t.input.charCodeAt(++t.position)}return jh(t,a,s,!1),t.result?!0:(t.kind=d,t.result=p,!1)}function D8e(t,e){var r,n,i;if(r=t.input.charCodeAt(t.position),r!==39)return!1;for(t.kind="scalar",t.result="",t.position++,n=i=t.position;(r=t.input.charCodeAt(t.position))!==0;)if(r===39)if(jh(t,n,t.position,!0),r=t.input.charCodeAt(++t.position),r===39)n=t.position,t.position++,i=t.position;else return!0;else Ac(r)?(jh(t,n,i,!0),J9(t,Di(t,!1,e)),n=i=t.position):t.position===t.lineStart&&J5(t)?Qt(t,"unexpected end of the document within a single quoted scalar"):(t.position++,i=t.position);Qt(t,"unexpected end of the stream within a single quoted scalar")}function N8e(t,e){var r,n,i,a,s,l;if(l=t.input.charCodeAt(t.position),l!==34)return!1;for(t.kind="scalar",t.result="",t.position++,r=n=t.position;(l=t.input.charCodeAt(t.position))!==0;){if(l===34)return jh(t,r,t.position,!0),t.position++,!0;if(l===92){if(jh(t,r,t.position,!0),l=t.input.charCodeAt(++t.position),Ac(l))Di(t,!1,e);else if(l<256&&wZ[l])t.result+=TZ[l],t.position++;else if((s=S8e(l))>0){for(i=s,a=0;i>0;i--)l=t.input.charCodeAt(++t.position),(s=E8e(l))>=0?a=(a<<4)+s:Qt(t,"expected hexadecimal character");t.result+=A8e(a),t.position++}else Qt(t,"unknown escape sequence");r=n=t.position}else Ac(l)?(jh(t,r,n,!0),J9(t,Di(t,!1,e)),r=n=t.position):t.position===t.lineStart&&J5(t)?Qt(t,"unexpected end of the document within a double quoted scalar"):(t.position++,n=t.position)}Qt(t,"unexpected end of the stream within a double quoted scalar")}function R8e(t,e){var r=!0,n,i,a,s=t.tag,l,u=t.anchor,h,f,d,p,m,g=Object.create(null),y,v,x,b;if(b=t.input.charCodeAt(t.position),b===91)f=93,m=!1,l=[];else if(b===123)f=125,m=!0,l={};else return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=l),b=t.input.charCodeAt(++t.position);b!==0;){if(Di(t,!0,e),b=t.input.charCodeAt(t.position),b===f)return t.position++,t.tag=s,t.anchor=u,t.kind=m?"mapping":"sequence",t.result=l,!0;r?b===44&&Qt(t,"expected the node content, but found ','"):Qt(t,"missed comma between flow collection entries"),v=y=x=null,d=p=!1,b===63&&(h=t.input.charCodeAt(t.position+1),Is(h)&&(d=p=!0,t.position++,Di(t,!0,e))),n=t.line,i=t.lineStart,a=t.position,km(t,e,X5,!1,!0),v=t.tag,y=t.result,Di(t,!0,e),b=t.input.charCodeAt(t.position),(p||t.line===n)&&b===58&&(d=!0,b=t.input.charCodeAt(++t.position),Di(t,!0,e),km(t,e,X5,!1,!0),x=t.result),m?Tm(t,l,g,v,y,x,n,i,a):d?l.push(Tm(t,null,g,v,y,x,n,i,a)):l.push(y),Di(t,!0,e),b=t.input.charCodeAt(t.position),b===44?(r=!0,b=t.input.charCodeAt(++t.position)):r=!1}Qt(t,"unexpected end of the stream within a flow collection")}function M8e(t,e){var r,n,i=W9,a=!1,s=!1,l=e,u=0,h=!1,f,d;if(d=t.input.charCodeAt(t.position),d===124)n=!1;else if(d===62)n=!0;else return!1;for(t.kind="scalar",t.result="";d!==0;)if(d=t.input.charCodeAt(++t.position),d===43||d===45)W9===i?i=d===43?QQ:b8e:Qt(t,"repeat of a chomping mode identifier");else if((f=C8e(d))>=0)f===0?Qt(t,"bad explicit indentation width of a block scalar; it cannot be less than one"):s?Qt(t,"repeat of an indentation width identifier"):(l=e+f-1,s=!0);else break;if(Fd(d)){do d=t.input.charCodeAt(++t.position);while(Fd(d));if(d===35)do d=t.input.charCodeAt(++t.position);while(!Ac(d)&&d!==0)}for(;d!==0;){for(Z9(t),t.lineIndent=0,d=t.input.charCodeAt(t.p
` ,a?1+u:u):i===W9&&a&&(t.result+= `
` );break}for(n?Fd(d)?(h=!0,t.result+=Gi.repeat( `
` ,a?1+u:u)):h?(h=!1,t.result+=Gi.repeat( `
` ,u+1)):u===0?a&&(t.result+=" "):t.result+=Gi.repeat( `
` ,u):t.result+=Gi.repeat( `
` ,a?1+u:u),a=!0,s=!0,u=0,r=t.position;!Ac(d)&&d!==0;)d=t.input.charCodeAt(++t.position);jh(t,r,t.position,!1)}return!0}function rZ(t,e){var r,n=t.tag,i=t.anchor,a=[],s,l=!1,u;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=a),u=t.input.charCodeAt(t.position);u!==0&&(t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,Qt(t,"tab characters must not be used in indentation")),!(u!==45||(s=t.input.charCodeAt(t.position+1),!Is(s))));){if(l=!0,t.position++,Di(t,!0,-1)&&t.lineIndent<=e){a.push(null),u=t.input.charCodeAt(t.position);continue}if(r=t.line,km(t,e,vZ,!1,!0),a.push(t.result),Di(t,!0,-1),u=t.input.charCodeAt(t.position),(t.line===r||t.lineIndent>e)&&u!==0)Qt(t,"bad indentation of a sequence entry");else if(t.lineIndent<e)break}return l?(t.tag=n,t.anchor=i,t.kind="sequence",t.result=a,!0):!1}function I8e(t,e,r){var n,i,a,s,l,u,h=t.tag,f=t.anchor,d={},p=Object.create(null),m=null,g=null,y=null,v=!1,x=!1,b;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=d),b=t.input.charCodeAt(t.position);b!==0;){if(!v&&t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,Qt(t,"tab characters must not be used in indentation")),n=t.input.charCodeAt(t.position+1),a=t.line,(b===63||b===58)&&Is(n))b===63?(v&&(Tm(t,d,p,m,g,null,s,l,u),m=g=y=null),x=!0,v=!0,i=!0):v?(v=!1,i=!0):Qt(t,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),t.position+=1,b=n;else{if(s=t.line,l=t.lineStart,u=t.position,!km(t,r,yZ,!1,!0))break;if(t.line===a){for(b=t.input.charCodeAt(t.position);Fd(b);)b=t.input.charCodeAt(++t.position);if(b===58)b=t.input.charCodeAt(++t.position),Is(b)||Qt(t,"a whitespace character is expected after the key-value separator within a block mapping"),v&&(Tm(t,d,p,m,g,null,s,l,u),m=g=y=null),x=!0,v=!1,i=!1,m=t.tag,g=t.result;else if(x)Qt(t,"can not read an implicit mapping pair; a colon is missed");else return t.tag=h,t.anchor=f,!0}else if(x)Qt(t,"can not read a block mapping entry; a multiline key may not be an implicit key");else return t.tag=h,t.anchor=f,!0}if((t.line===a||t.lineIndent>e)&&(v&&(s=t.line,l=t.lineStart,u=t.position),km(t,e,j5,!0,i)&&(v?g=t.result:y=t.result),v||(Tm(t,d,p,m,g,y,s,l,u),m=g=y=null),Di(t,!0,-1),b=t.input.charCodeAt(t.position)),(t.line===a||t.lineIndent>e)&&b!==0)Qt(t,"bad indentation of a mapping entry");else if(t.lineIndent<e)break}return v&&Tm(t,d,p,m,g,null,s,l,u),x&&(t.tag=h,t.anchor=f,t.kind="mapping",t.result=d),x}function O8e(t){var e,r=!1,n=!1,i,a,s;if(s=t.input.charCodeAt(t.position),s!==33)return!1;if(t.tag!==null&&Qt(t,"duplication of a tag property"),s=t.input.charCodeAt(++t.position),s===60?(r=!0,s=t.input.charCodeAt(++t.position)):s===33?(n=!0,i="!!",s=t.input.charCodeAt(++t.position)):i="!",e=t.position,r){do s=t.input.charCodeAt(++t.position);while(s!==0&&s!==62);t.position<t.length?(a=t.input.slice(e,t.position),s=t.input.charCodeAt(++t.position)):Qt(t,"unexpected end of the stream within a verbatim tag")}else{for(;s!==0&&!Is(s);)s===33&&(n?Qt(t,"tag suffix cannot contain exclamation marks"):(i=t.input.slice(e-1,t.position+1),xZ.test(i)||Qt(t,"named tag handle cannot contain such characters"),n=!0,e=t.position+1)),s=t.input.charCodeAt(++t.position);a=t.input.slice(e,t.position),k8e.test(a)&&Qt(t,"tag suffix cannot contain flow indicator characters")}a&&!bZ.test(a)&&Qt(t,"tag name cannot contain such characters: "+a);try{a=decodeURIComponent(a)}catch{Qt(t,"tag name is malformed: "+a)}return r?t.tag=a:Kh.call(t.tagMap,i)?t.tag=t.tagMap[i]+a:i==="!"?t.tag="!"+a:i==="!!"?t.tag="tag:yaml.org,2002:"+a:Qt(t,'undeclared tag handle "'+i+'"'),!0}function P8e(t){var e,r;if(r=t.input.charCodeAt(t.position),r!==38)return!1;for(t.anchor!==null&&Qt(t,"duplication of an anchor property"),r=t.input.charCodeAt(++t.position),e=t.position;r!==0&&!Is(r)&&!wm(r);)r=t.input.charCodeAt(++t.position);return t.position===e&&Qt(t,"name of an anchor node must contain at least one character"),t.anchor=t.input.slice(e,t.position),!0}function B8e(t){var e,r,n;if(n=t.input.charCodeAt(t.position),n!==42)return!1;for(n=
` ),t.charCodeAt(0)===65279&&(t=t.slice(1)));var r=new _8e(t,e),n=t.indexOf(" \0 ");for(n!==-1&&(r.position=n,Qt(r,"null byte is not allowed in input")),r.input+=" \0 ";r.input.charCodeAt(r.position)===32;)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)F8e(r);return r.documents}function z8e(t,e,r){e!==null&&typeof e=="object"&&typeof r>"u"&&(r=e,e=null);var n=EZ(t,r);if(typeof e!="function")return n;for(var i=0,a=n.length;i<a;i+=1)e(n[i])}function G8e(t,e){var r=EZ(t,e);if(r.length!==0){if(r.length===1)return r[0];throw new Ms("expected a single document in the stream, but found more")}}function o_e(t,e){var r,n,i,a,s,l,u;if(e===null)return{};for(r={},n=Object.keys(e),i=0,a=n.length;i<a;i+=1)s=n[i],l=String(e[s]),s.slice(0,2)==="!!"&&(s="tag:yaml.org,2002:"+s.slice(2)),u=t.compiledTypeMap.fallback[s],u&&AZ.call(u.styleAliases,l)&&(l=u.styleAliases[l]),r[s]=l;return r}function l_e(t){var e,r,n;if(e=t.toString(16).toUpperCase(),t<=255)r="x",n=2;else if(t<=65535)r="u",n=4;else if(t<=4294967295)r="U",n=8;else throw new Ms("code point within a string may not be greater than 0xFFFFFFFF");return" \\ "+r+Gi.repeat("0",n-e.length)+e}function u_e(t){this.schema=t.schema||gZ,this.indent=Math.max(1,t.indent||2),this.noArrayIndent=t.noArrayIndent||!1,this.skipInvalid=t.skipInvalid||!1,this.flowLevel=Gi.isNothing(t.flowLevel)?-1:t.flowLevel,this.styleMap=o_e(this.schema,t.styles||null),this.sortKeys=t.sortKeys||!1,this.lineWidth=t.lineWidth||80,this.noRefs=t.noRefs||!1,this.noCompatMode=t.noCompatMode||!1,this.condenseFlow=t.condenseFlow||!1,this.quotingType=t.quotingType==='"'?Bv:c_e,this.forceQuotes=t.forceQuotes||!1,this.replacer=typeof t.replacer=="function"?t.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function nZ(t,e){for(var r=Gi.repeat(" ",e),n=0,i=-1,a="",s,l=t.length;n<l;)i=t.indexOf( `
` ,n),i===-1?(s=t.slice(n),n=l):(s=t.slice(n,i+1),n=i+1),s.length&&s!== `
` &&(a+=r),a+=s;return a}function X9(t,e){return `
` +Gi.repeat(" ",t.indent*e)}function h_e(t,e){var r,n,i;for(r=0,n=t.implicitTypes.length;r<n;r+=1)if(i=t.implicitTypes[r],i.resolve(e))return!0;return!1}function Z5(t){return t===W8e||t===U8e}function Fv(t){return 32<=t&&t<=126||161<=t&&t<=55295&&t!==8232&&t!==8233||57344<=t&&t<=65533&&t!==eL||65536<=t&&t<=1114111}function iZ(t){return Fv(t)&&t!==eL&&t!==H8e&&t!==Pv}function aZ(t,e,r){var n=iZ(t),i=n&&!Z5(t);return(r?n:n&&t!==_Z&&t!==LZ&&t!==DZ&&t!==NZ&&t!==RZ)&&t!==q9&&!(e===Q5&&!i)||iZ(e)&&!Z5(e)&&t===q9||e===Q5&&i}function f_e(t){return Fv(t)&&t!==eL&&!Z5(t)&&t!==Z8e&&t!==t_e&&t!==Q5&&t!==_Z&&t!==LZ&&t!==DZ&&t!==NZ&&t!==RZ&&t!==q9&&t!==j8e&&t!==Q8e&&t!==Y8e&&t!==i_e&&t!==J8e&&t!==e_e&&t!==K8e&&t!==q8e&&t!==X8e&&t!==r_e&&t!==n_e}function d_e(t){return!Z5(t)&&t!==Q5}function Iv(t,e){var r=t.charCodeAt(e),n;return r>=55296&&r<=56319&&e+1<t.length&&(n=t.charCodeAt(e+1),n>=56320&&n<=57343)?(r-55296)*1024+n-56320+65536:r}function MZ(t){var e=/^ \n * /;return e.test(t)}function p_e(t,e,r,n,i,a,s,l){var u,h=0,f=null,d=!1,p=!1,m=n!==-1,g=-1,y=f_e(Iv(t,0))&&d_e(Iv(t,t.length-1));if(e||s)for(u=0;u<t.length;h>=65536?u+=2:u++){if(h=Iv(t,u),!Fv(h))return bm;y=y&&aZ(h,f,l),f=h}else{for(u=0;u<t.length;h>=65536?u+=2:u++){if(h=Iv(t,u),h===Pv)d=!0,m&&(p=p||u-g-1>n&&t[g+1]!==" ",g=u);else if(!Fv(h))return bm;y=y&&aZ(h,f,l),f=h}p=p||m&&u-g-1>n&&t[g+1]!==" "}return!d&&!p?y&&!s&&!i(t)?IZ:a===Bv?bm:j9:r>9&&MZ(t)?bm:s?a===Bv?bm:j9:p?PZ:OZ}function m_e(t,e,r,n,i){t.dump=function(){if(e.length===0)return t.quotingType===Bv?'""':"''";if(!t.noCompatMode&&(a_e.indexOf(e)!==-1||s_e.test(e)))return t.quotingType===Bv?'"'+e+'"':"'"+e+"'";var a=t.indent*Math.max(1,r),s=t.lineWidth===-1?-1:Math.max(Math.min(t.lineWidth,40),t.lineWidth-a),l=n||t.flowLevel>-1&&r>=t.flowLevel;function u(h){return h_e(t,h)}switch(o(u,"testAmbiguity"),p_e(e,l,t.indent,s,u,t.quotingType,t.forceQuotes&&!n,i)){case IZ:return e;case j9:return"'"+e.replace(/'/g,"''")+"'";case OZ:return"|"+sZ(e,t.indent)+oZ(nZ(e,a));case PZ:return">"+sZ(e,t.indent)+oZ(nZ(g_e(e,s),a));case bm:return'"'+y_e(e)+'"';default:throw new Ms("impossible error: invalid scalar style")}}()}function sZ(t,e){var r=MZ(t)?String(e):"",n=t[t.length-1]=== `
` ,i=n&&(t[t.length-2]=== `
` ||t=== `
` ),a=i?"+":n?"":"-";return r+a+ `
` }function oZ(t){return t[t.length-1]=== `
` ?t.slice(0,-1):t}function g_e(t,e){for(var r=/( \n +)([^ \n ]*)/g,n=function(){var h=t.indexOf( `
` );return h=h!==-1?h:t.length,r.lastIndex=h,lZ(t.slice(0,h),e)}(),i=t[0]=== `
` ||t[0]===" ",a,s;s=r.exec(t);){var l=s[1],u=s[2];a=u[0]===" ",n+=l+(!i&&!a&&u!==""? `
` :"")+lZ(u,e),i=a}return n}function lZ(t,e){if(t===""||t[0]===" ")return t;for(var r=/ [^ ]/g,n,i=0,a,s=0,l=0,u="";n=r.exec(t);)l=n.index,l-i>e&&(a=s>i?s:l,u+= `
` +t.slice(i,a),i=a+1),s=l;return u+= `
` ,t.length-i>e&&s>i?u+=t.slice(i,s)+ `
` +t.slice(s+1):u+=t.slice(i),u.slice(1)}function y_e(t){for(var e="",r=0,n,i=0;i<t.length;r>=65536?i+=2:i++)r=Iv(t,i),n=Fa[r],!n&&Fv(r)?(e+=t[i],r>=65536&&(e+=t[i+1])):e+=n||l_e(r);return e}function v_e(t,e,r){var n="",i=t.tag,a,s,l;for(a=0,s=r.length;a<s;a+=1)l=r[a],t.replacer&&(l=t.replacer.call(r,String(a),l)),(Pu(t,e,l,!1,!1)||typeof l>"u"&&Pu(t,e,null,!1,!1))&&(n!==""&&(n+=","+(t.condenseFlow?"":" ")),n+=t.dump);t.tag=i,t.dump="["+n+"]"}function cZ(t,e,r,n){var i="",a=t.tag,s,l,u;for(s=0,l=r.length;s<l;s+=1)u=r[s],t.replacer&&(u=t.replacer.call(r,String(s),u)),(Pu(t,e+1,u,!0,!0,!1,!0)||typeof u>"u"&&Pu(t,e+1,null,!0,!0,!1,!0))&&((!n||i!=="")&&(i+=X9(t,e)),t.dump&&Pv===t.dump.charCodeAt(0)?i+="-":i+="- ",i+=t.dump);t.tag=a,t.dump=i||"[]"}function x_e(t,e,r){var n="",i=t.tag,a=Object.keys(r),s,l,u,h,f;for(s=0,l=a.length;s<l;s+=1)f="",n!==""&&(f+=", "),t.condenseFlow&&(f+='"'),u=a[s],h=r[u],t.replacer&&(h=t.replacer.call(r,u,h)),Pu(t,e,u,!1,!1)&&(t.dump.length>1024&&(f+="? "),f+=t.dump+(t.condenseFlow?'"':"")+":"+(t.condenseFlow?"":" "),Pu(t,e,h,!1,!1)&&(f+=t.dump,n+=f));t.tag=i,t.dump="{"+n+"}"}function b_e(t,e,r,n){var i="",a=t.tag,s=Object.keys(r),l,u,h,f,d,p;if(t.sortKeys===!0)s.sort();else if(typeof t.sortKeys=="function")s.sort(t.sortKeys);else if(t.sortKeys)throw new Ms("sortKeys must be a boolean or a function");for(l=0,u=s.length;l<u;l+=1)p="",(!n||i!=="")&&(p+=X9(t,e)),h=s[l],f=r[h],t.replacer&&(f=t.replacer.call(r,h,f)),Pu(t,e+1,h,!0,!0,!0)&&(d=t.tag!==null&&t.tag!=="?"||t.dump&&t.dump.length>1024,d&&(t.dump&&Pv===t.dump.charCodeAt(0)?p+="?":p+="? "),p+=t.dump,d&&(p+=X9(t,e)),Pu(t,e+1,f,!0,d)&&(t.dump&&Pv===t.dump.charCodeAt(0)?p+=":":p+=": ",p+=t.dump,i+=p));t.tag=a,t.dump=i||"{}"}function uZ(t,e,r){var n,i,a,s,l,u;for(i=r?t.explicitTypes:t.implicitTypes,a=0,s=i.length;a<s;a+=1)if(l=i[a],(l.instanceOf||l.predicate)&&(!l.instanceOf||typeof e=="object"&&e instanceof l.instanceOf)&&(!l.predicate||l.predicate(e))){if(r?l.multi&&l.representName?t.tag=l.representName(e):t.tag=l.tag:t.tag="?",l.represent){if(u=t.styleMap[l.tag]||l.defaultStyle,CZ.call(l.represent)==="[object Function]")n=l.represent(e,u);else if(AZ.call(l.represent,u))n=l.represent[u](e,u);else throw new Ms("!<"+l.tag+'> tag resolver accepts not "'+u+'" style');t.dump=n}return!0}return!1}function Pu(t,e,r,n,i,a,s){t.tag=null,t.dump=r,uZ(t,r,!1)||uZ(t,r,!0);var l=CZ.call(t.dump),u=n,h;n&&(n=t.flowLevel<0||t.flowLevel>e);var f=l==="[object Object]"||l==="[object Array]",d,p;if(f&&(d=t.duplicates.indexOf(r),p=d!==-1),(t.tag!==null&&t.tag!=="?"||p||t.indent!==2&&e>0)&&(i=!1),p&&t.usedDuplicates[d])t.dump="*ref_"+d;else{if(f&&p&&!t.usedDuplicates[d]&&(t.usedDuplicates[d]=!0),l==="[object Object]")n&&Object.keys(t.dump).length!==0?(b_e(t,e,t.dump,i),p&&(t.dump="&ref_"+d+t.dump)):(x_e(t,e,t.dump),p&&(t.dump="&ref_"+d+" "+t.dump));else if(l==="[object Array]")n&&t.dump.length!==0?(t.noArrayIndent&&!s&&e>0?cZ(t,e-1,t.dump,i):cZ(t,e,t.dump,i),p&&(t.dump="&ref_"+d+t.dump)):(v_e(t,e,t.dump),p&&(t.dump="&ref_"+d+" "+t.dump));else if(l==="[object String]")t.tag!=="?"&&m_e(t,t.dump,e,a,u);else{if(l==="[object Undefined]")return!1;if(t.skipInvalid)return!1;throw new Ms("unacceptable kind of an object to dump "+l)}t.tag!==null&&t.tag!=="?"&&(h=encodeURI(t.tag[0]==="!"?t.tag.slice(1):t.tag).replace(/!/g,"%21"),t.tag[0]==="!"?h="!"+h:h.slice(0,18)==="tag:yaml.org,2002:"?h="!!"+h.slice(18):h="!<"+h+">",t.dump=h+" "+t.dump)}return!0}function w_e(t,e){var r=[],n=[],i,a;for(K9(t,r,n),i=0,a=n.length;i<a;i+=1)e.duplicates.push(r[n[i]]);e.usedDuplicates=new Array(a)}function K9(t,e,r){var n,i,a;if(t!==null&&typeof t=="object")if(i=e.indexOf(t),i!==-1)r.indexOf(i)===-1&&r.push(i);else if(e.push(t),Array.isArray(t))for(i=0,a=t.length;i<a;i+=1)K9(t[i],e,r);else for(n=Object.keys(t),i=0,a=n.length;i<a;i+=1)K9(t[n[i]],e,r)}function T_e(t,e){e=e||{};var r=new u_e(e);r.noRefs||w_e(t,r);var n=t;return r.replacer&&(n=r.replacer.call({"":n},"",n)),Pu(r,0,n,!0,!0)?r.dump+ `
` :""}function tL(t,e){return function(){throw new Error("Function yaml."+t+" is removed in js-yaml 4. Use yaml."+e+" instead, which is now safe by default.")}}var cAe,uAe,hAe,fAe,dAe,pAe,Gi,Ms,gAe,yAe,vAe,Ba,TAe,kAe,EAe,SAe,CAe,DAe,IAe, $ Ae,VAe,WAe,XAe,dZ,jAe,pZ,mZ,JAe,t8e,Q9,s8e,o8e,l8e,h8e,f8e,m8e,g8e,x8e,gZ,Kh,X5,yZ,vZ,j5,W9,b8e,QQ,w8e,T8e,k8e,xZ,bZ,wZ,TZ,Bd,eZ, $ 8e,V8e,SZ,CZ,AZ,eL,U8e,Pv,H8e,W8e,Y8e,q8e,q9,X8e,j8e,K8e,Q8e,_Z,Z8e,Q5,J8e,e_e,t_e,r_e,LZ,DZ,n_e,NZ,i_e,RZ,Fa,a_e,s_e,c_e,Bv,IZ,j9,OZ,PZ,bm,k_e,E_e,Em,Sm,PDt,BDt,FDt,zDt,GDt,ew=M(()=>{"use strict";o(hZ,"isNothing");o(iAe,"isObject");o(aAe,"toArray");o(sAe,"extend");o(oAe,"repeat");o(lAe,"isNegativeZero");cAe=hZ,uAe=iAe,hAe=aAe,fAe=oAe,dAe=lAe,pAe=sAe,Gi={isNothing:cAe,isObject:uAe,toArray:hAe,repeat:fAe,isNegativeZero:dAe,extend:pAe};o(fZ,"formatError");o(Ov,"YAMLException $ 1");Ov.prototype=Object.create(Error.prototype);Ov.prototype.constructor=Ov;Ov.prototype.toString=o(function(e){return this.name+": "+fZ(this,e)},"toString");Ms=Ov;o(U9,"getLine");o(H9,"padStart");o(mAe,"makeSnippet");gAe=mAe,yAe=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],vAe=["scalar","sequence","mapping"];o(xAe,"compileStyleAliases");o(bAe,"Type $ 1");Ba=bAe;o(KQ,"compileList");o(wAe,"compileMap");o(Y9,"Schema $ 1");Y9.prototype.extend=o(function(e){var r=[],n=[];if(e instanceof Ba)n.push(e);else if(Array.isArray(e))n=n.concat(e);else if(e&&(Array.isArray(e.implicit)||Array.isArray(e.explicit)))e.implicit&&(r=r.concat(e.implicit)),e.explicit&&(n=n.concat(e.explicit));else throw new Ms("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");r.forEach(function(a){if(!(a instanceof Ba))throw new Ms("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(a.loadKind&&a.loadKind!=="scalar")throw new Ms("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(a.multi)throw new Ms("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),n.forEach(function(a){if(!(a instanceof Ba))throw new Ms("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var i=Object.create(Y9.prototype);return i.implicit=(this.implicit||[]).concat(r),i.explicit=(this.explicit||[]).concat(n),i.compiledImplicit=KQ(i,"implicit"),i.compiledExplicit=KQ(i,"explicit"),i.compiledTypeMap=wAe(i.compiledImplicit,i.compiledExplicit),i},"extend");TAe=Y9,kAe=new Ba("tag:yaml.org,2002:str",{kind:"scalar",construct:o(function(t){return t!==null?t:""},"construct")}),EAe=new Ba("tag:yaml.org,2002:seq",{kind:"sequence",construct:o(function(t){return t!==null?t:[]},"construct")}),SAe=new Ba("tag:yaml.org,2002:map",{kind:"mapping",construct:o(function(t){return t!==null?t:{}},"construct")}),CAe=new TAe({explicit:[kAe,EAe,SAe]});o(AAe,"resolveYamlNull");o(_Ae,"constructYamlNull");o(LAe,"isNull");DAe=new Ba("tag:yaml.org,2002:null",{kind:"scalar",resolve:AAe,construct:_Ae,predicate:LAe,represent:{canonical:o(function(){return"~"},"canonical"),lowercase:o(function(){return"null"},"lowercase"),uppercase:o(function(){return"NULL"},"uppercase"),camelcase:o(function(){return"Null"},"camelcase"),empty:o(function(){return""},"empty")},defaultStyle:"lowercase"});o(NAe,"resolveYamlBoolean");o(RAe,"constructYamlBoolean");o(MAe,"isBoolean");IAe=new Ba("tag:yaml.org,2002:bool",{kind:"scalar",resolve:NAe,construct:RAe,predicate:MAe,represent:{lowercase:o(function(t){return t?"true":"false"},"lowercase"),uppercase:o(function(t){return t?"TRUE":"FALSE"},"uppercase"),camelcase:o(function(t){return t?"True":"False"},"camelcase")},defaultStyle:"lowercase"});o(OAe,"isHexCode");o(PAe,"isOctCode");o(BAe,"isDecCode");o(FAe,"resolveYamlInteger");o(zAe,"constructYamlInteger");o(GAe,"isInteger"); $ Ae=new Ba("tag:yaml.org,2002:int",{kind:"scalar",resolve:FAe,construct:zAe,predicate:GAe,represent:{binary:o(function(t){return t>=0?"0b"+t.toString(2):"-0b"+t.toString(2)
\ r ` ;o(r8e,"resolveYamlBinary");o(n8e,"constructYamlBinary");o(i8e,"representYamlBinary");o(a8e,"isBinary");s8e=new Ba("tag:yaml.org,2002:binary",{kind:"scalar",resolve:r8e,construct:n8e,predicate:a8e,represent:i8e}),o8e=Object.prototype.hasOwnProperty,l8e=Object.prototype.toString;o(c8e,"resolveYamlOmap");o(u8e,"constructYamlOmap");h8e=new Ba("tag:yaml.org,2002:omap",{kind:"sequence",resolve:c8e,construct:u8e}),f8e=Object.prototype.toString;o(d8e,"resolveYamlPairs");o(p8e,"constructYamlPairs");m8e=new Ba("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:d8e,construct:p8e}),g8e=Object.prototype.hasOwnProperty;o(y8e,"resolveYamlSet");o(v8e,"constructYamlSet");x8e=new Ba("tag:yaml.org,2002:set",{kind:"mapping",resolve:y8e,construct:v8e}),gZ=jAe.extend({implicit:[JAe,t8e],explicit:[s8e,h8e,m8e,x8e]}),Kh=Object.prototype.hasOwnProperty,X5=1,yZ=2,vZ=3,j5=4,W9=1,b8e=2,QQ=3,w8e=/[ \x 00- \x 08 \x 0B \x 0C \x 0E- \x 1F \x 7F- \x 84 \x 86- \x 9F \u FFFE \u FFFF]|[ \u D800- \u DBFF](?![ \u DC00- \u DFFF])|(?:[^ \u D800- \u DBFF]|^)[ \u DC00- \u DFFF]/,T8e=/[ \x 85 \u 2028 \u 2029]/,k8e=/[, \[ \] \{ \} ]/,xZ=/^(?:!|!!|![a-z \- ]+!) $ /i,bZ=/^(?:!|[^, \[ \] \{ \} ])(?:%[0-9a-f]{2}|[0-9a-z \- #; \/ \? :@&= \+ \$ ,_ \. !~ \* ' \( \) \[ \] ])* $ /i;o(ZQ,"_class");o(Ac,"is_EOL");o(Fd,"is_WHITE_SPACE");o(Is,"is_WS_OR_EOL");o(wm,"is_FLOW_INDICATOR");o(E8e,"fromHexCode");o(S8e,"escapedHexLen");o(C8e,"fromDecimalCode");o(JQ,"simpleEscapeSequence");o(A8e,"charFromCodepoint");wZ=new Array(256),TZ=new Array(256);for(Bd=0;Bd<256;Bd++)wZ[Bd]=JQ(Bd)?1:0,TZ[Bd]=JQ(Bd);o(_8e,"State $ 1");o(kZ,"generateError");o(Qt,"throwError");o(K5,"throwWarning");eZ={YAML:o(function(e,r,n){var i,a,s;e.version!==null&&Qt(e,"duplication of %YAML directive"),n.length!==1&&Qt(e,"YAML directive accepts exactly one argument"),i=/^([0-9]+) \. ([0-9]+) $ /.exec(n[0]),i===null&&Qt(e,"ill-formed argument of the YAML directive"),a=parseInt(i[1],10),s=parseInt(i[2],10),a!==1&&Qt(e,"unacceptable YAML version of the document"),e.version=n[0],e.checkLineBreaks=s<2,s!==1&&s!==2&&K5(e,"unsupported YAML version of the document")},"handleYamlDirective"),TAG:o(function(e,r,n){var i,a;n.length!==2&&Qt(e,"TAG directive accepts exactly two arguments"),i=n[0],a=n[1],xZ.test(i)||Qt(e,"ill-formed tag handle (first argument) of the TAG directive"),Kh.call(e.tagMap,i)&&Qt(e,'there is a previously declared suffix for "'+i+'" tag handle'),bZ.test(a)||Qt(e,"ill-formed tag prefix (second argument) of the TAG directive");try{a=decodeURIComponent(a)}catch{Qt(e,"tag prefix is malformed: "+a)}e.tagMap[i]=a},"handleTagDirective")};o(jh,"captureSegment");o(tZ,"mergeMappings");o(Tm,"storeMappingPair");o(Z9,"readLineBreak");o(Di,"skipSeparationSpace");o(J5,"testDocumentSeparator");o(J9,"writeFoldedLines");o(L8e,"readPlainScalar");o(D8e,"readSingleQuotedScalar");o(N8e,"readDoubleQuotedScalar");o(R8e,"readFlowCollection");o(M8e,"readBlockScalar");o(rZ,"readBlockSequence");o(I8e,"readBlockMapping");o(O8e,"readTagProperty");o(P8e,"readAnchorProperty");o(B8e,"readAlias");o(km,"composeNode");o(F8e,"readDocument");o(EZ,"loadDocuments");o(z8e,"loadAll $ 1");o(G8e,"load $ 1"); $ 8e=z8e,V8e=G8e,SZ={loadAll: $ 8e,load:V8e},CZ=Object.prototype.toString,AZ=Object.prototype.hasOwnProperty,eL=65279,U8e=9,Pv=10,H8e=13,W8e=32,Y8e=33,q8e=34,q9=35,X8e=37,j8e=38,K8e=39,Q8e=42,_Z=44,Z8e=45,Q5=58,J8e=61,e_e=62,t_e=63,r_e=64,LZ=91,DZ=93,n_e=96,NZ=123,i_e=124,RZ=125,Fa={};Fa[0]=" \\ 0";Fa[7]=" \\ a";Fa[8]=" \\ b";Fa[9]=" \\ t";Fa[10]=" \\ n";Fa[11]=" \\ v";Fa[12]=" \\ f";Fa[13]=" \\ r";Fa[27]=" \\ e";Fa[34]=' \\ "';Fa[92]=" \\ \\ ";Fa[133]=" \\ N";Fa[160]=" \\ _";Fa[8232]=" \\ L";Fa[8233]=" \\ P";a_e=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],s_e=/^[-+]?[0-9_]+(?::[0-9_]+)+(?: \. [0-9_]*)? $ /;o(o_e,"compileStyleMap");o(l_e,"encodeHex");c_e=1,Bv=2;o(u_e,"State");o(nZ,"indentString");o(X9,"generateNextLine");o(h_e,"testImplicitResolving");o(Z5,"isWhitespace");o(Fv,"isPrintable");o(iZ,"isNsCharOrWhitespace");o(aZ,"isPlainSafe");o(f_e,"isPlainSafeFirst");o(d_e,"isPlainSafeLast");o(Iv,"codePointAt");o(MZ,"needIndentIndicator");IZ=1,j9=2,OZ=3,PZ=4,bm=5;o(p_e,"chooseScalarStyle");o(m_e,"writeScalar");o(sZ,"blockHead
` )?f=l+ `
` :f= ` {
` +l+ `
} ` ;let d=Sm(f,{schema:Em});if(d.shape){if(d.shape!==d.shape.toLowerCase()||d.shape.includes("_"))throw new Error( ` No such shape : $ { d . shape } . Shape names should be lowercase . ` );if(!jQ(d.shape))throw new Error( ` No such shape : $ { d . shape } . ` );h.type=d?.shape}d?.label&&(h.text=d?.label),d?.icon&&(h.icon=d?.icon,!d.label?.trim()&&h.text===t&&(h.text="")),d?.form&&(h.form=d?.form),d?.pos&&(h.pos=d?.pos),d?.img&&(h.img=d?.img,!d.label?.trim()&&h.text===t&&(h.text="")),d?.constraint&&(h.constraint=d.constraint),d.w&&(h.assetWidth=Number(d.w)),d.h&&(h.assetHeight=Number(d.h))}},"addVertex"),A_e=o(function(t,e,r){let a={start:t,end:e,type:void 0,text:"",labelType:"text"};Y.info("abc78 Got edge...",a);let s=r.text;if(s!==void 0&&(a.text=iw(s.text.trim()),a.text.startsWith('"')&&a.text.endsWith('"')&&(a.text=a.text.substring(1,a.text.length-1)),a.labelType=s.type),r!==void 0&&(a.type=r.type,a.stroke=r.stroke,a.length=r.length>10?10:r.length),Os.length<(Cm.maxEdges??500))Y.info("Pushing edge..."),Os.push(a);else throw new Error( ` Edge limit exceeded . $ { Os . length } edges found , but the limit is $ { Cm . maxEdges } .
2024-05-27 09:53:57 +02:00
Initialize mermaid with maxEdges set to a higher number to allow more edges .
You cannot set this config via configuration inside the diagram as it is a secure config .
2024-11-13 12:07:54 +02:00
You have to call mermaid . initialize . ` )},"addSingleLink"),__e=o(function(t,e,r){Y.info("addLink",t,e,r);for(let n of t)for(let i of e)A_e(n,i,r)},"addLink"),L_e=o(function(t,e){t.forEach(function(r){r==="default"?Os.defaultInterpolate=e:Os[r].interpolate=e})},"updateLinkInterpolate"),D_e=o(function(t,e){t.forEach(function(r){if(typeof r=="number"&&r>=Os.length)throw new Error( ` The index $ { r } for linkStyle is out of bounds . Valid indices for linkStyle are between 0 and $ { Os . length - 1 } . ( Help : Ensure that the index is within the range of existing edges . ) ` );r==="default"?Os.defaultStyle=e:(Os[r].style=e,(Os[r]?.style?.length??0)>0&&!Os[r]?.style?.some(n=>n?.startsWith("fill"))&&Os[r]?.style?.push("fill:none"))})},"updateLink"),N_e=o(function(t,e){t.split(",").forEach(function(r){let n=Gv.get(r);n===void 0&&(n={id:r,styles:[],textStyles:[]},Gv.set(r,n)),e?.forEach(function(i){if(/color/.exec(i)){let a=i.replace("fill","bgFill");n.textStyles.push(a)}n.styles.push(i)})})},"addClass"),R_e=o(function(t){Yo=t,/.*</.exec(Yo)&&(Yo="RL"),/.* \^ /.exec(Yo)&&(Yo="BT"),/.*>/.exec(Yo)&&(Yo="LR"),/.*v/.exec(Yo)&&(Yo="TB"),Yo==="TD"&&(Yo="TB")},"setDirection"),oL=o(function(t,e){for(let r of t.split(",")){let n=Qh.get(r);n&&n.classes.push(e);let i=aL.get(r);i&&i.classes.push(e)}},"setClass"),M_e=o(function(t,e){if(e!==void 0){e=iw(e);for(let r of t.split(","))sL.set(rw==="gen-1"?aw(r):r,e)}},"setTooltip"),I_e=o(function(t,e,r){let n=aw(t);if(pe().securityLevel!=="loose"||e===void 0)return;let i=[];if(typeof r=="string"){i=r.split(/,(?=(?:(?:[^"]*"){2})*[^"]* $ )/);for(let s=0;s<i.length;s++){let l=i[s].trim();l.startsWith('"')&&l.endsWith('"')&&(l=l.substr(1,l.length-2)),i[s]=l}}i.length===0&&i.push(t);let a=Qh.get(t);a&&(a.haveCallback=!0,nw.push(function(){let s=document.querySelector( ` [ id = "${n}" ] ` );s!==null&&s.addEventListener("click",function(){Ut.runFunc(e,...i)},!1)}))},"setClickFun"),O_e=o(function(t,e,r){t.split(",").forEach(function(n){let i=Qh.get(n);i!==void 0&&(i.link=Ut.formatUrl(e,Cm),i.linkTarget=r)}),oL(t,"clickable")},"setLink"),FZ=o(function(t){return sL.get(t)},"getTooltip"),P_e=o(function(t,e,r){t.split(",").forEach(function(n){I_e(n,e,r)}),oL(t,"clickable")},"setClickEvent"),B_e=o(function(t){nw.forEach(function(e){e(t)})},"bindFunctions"),lL=o(function(){return Yo.trim()},"getDirection"),zZ=o(function(){return Qh},"getVertices"),GZ=o(function(){return Os},"getEdges"),F_e=o(function(){return Gv},"getClasses"), $ Z=o(function(t){let e=Ve(".mermaidTooltip");(e._groups||e)[0][0]===null&&(e=Ve("body").append("div").attr("class","mermaidTooltip").style("opacity",0)),Ve(t).select("svg").selectAll("g.node").on("mouseover",function(){let i=Ve(this);if(i.attr("title")===null)return;let s=this?.getBoundingClientRect();e.transition().duration(200).style("opacity",".9"),e.text(i.attr("title")).style("left",window.scrollX+s.left+(s.right-s.left)/2+"px").style("top",window.scrollY+s.bottom+"px"),e.html(e.html().replace(/<br \/ >/g,"<br/>")),i.classed("hover",!0)}).on("mouseout",function(){e.transition().duration(500).style("opacity",0),Ve(this).classed("hover",!1)})},"setupToolTips");nw.push( $ Z);z_e=o(function(t="gen-1"){Qh=new Map,Gv=new Map,Os=[],nw=[ $ Z],Bu=[],aL=new Map,tw=0,sL=new Map,nL=!0,rw=t,Cm=pe(),Lr()},"clear"),G_e=o(t=>{rw=t||"gen-2"},"setGen"), $ _e=o(function(){return"fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;"},"defaultStyle"),V_e=o(function(t,e,r){let n=t.text.trim(),i=r.text;t===r&&/ \s /.exec(r.text)&&(n=void 0);function a(h){let f={boolean:{},number:{},string:{}},d=[],p;return{nodeList:h.filter(function(g){let y=typeof g;return g.stmt&&g.stmt==="dir"?(p=g.value,!1):g.trim()===""?!1:y in f?f[y].hasOwnProperty(g)?!1:f[y][g]=!0:d.includes(g)?!1:d.push(g)}),dir:p}}o(a,"uniq");let{nodeList:s,dir:l}=a(e.flat());if(rw==="gen-1")for(let h=0;h<s.length;h++)s[h]=aw(s[h]);n=n??"subGraph"+tw,i=i||"",i=iw(i),tw=tw+1;let u={id:n,nodes:s,title:i.trim(),classes:[],dir:l,labelType:r.type};return Y.info("Adding",u.id,u.nodes,u.dir),u.nodes=YZ(u,Bu).nodes,Bu.push(u),aL.set(n,u),n},"addSubGrap
outsidePoint : $ { JSON . stringify ( e ) }
insidePoint : $ { JSON . stringify ( r ) }
node : x : $ { t . x } y : $ { t . y } w : $ { t . width } h : $ { t . height } ` );let n=t.x,i=t.y,a=Math.abs(n-r.x),s=t.width/2,l=r.x<e.x?s-a:s+a,u=t.height/2,h=Math.abs(e.y-r.y),f=Math.abs(e.x-r.x);if(Math.abs(i-e.y)*s>Math.abs(n-e.x)*u){let d=r.y<e.y?e.y-u-i:i-u-e.y;l=f*d/h;let p={x:r.x<e.x?r.x+l:r.x-f+l,y:r.y<e.y?r.y+h-d:r.y-h+d};return l===0&&(p.x=e.x,p.y=e.y),f===0&&(p.x=e.x),h===0&&(p.y=e.y),Y.debug( ` abc89 top / bottom calc , Q $ { h } , q $ { d } , R $ { f } , r $ { l } ` ,p),p}else{r.x<e.x?l=e.x-s-n:l=n-s-e.x;let d=h*l/f,p=r.x<e.x?r.x+f-l:r.x-f+l,m=r.y<e.y?r.y+d:r.y-d;return Y.debug( ` sides calc abc89 , Q $ { h } , q $ { d } , R $ { f } , r $ { l } ` ,{_x:p,_y:m}),l===0&&(p=e.x,m=e.y),f===0&&(p=e.x),h===0&&(m=e.y),{x:p,y:m}}},"intersection"),JZ=o((t,e)=>{Y.warn("abc88 cutPathAtIntersect",t,e);let r=[],n=t[0],i=!1;return t.forEach(a=>{if(Y.info("abc88 checking point",a,e),!u9e(e,a)&&!i){let s=h9e(e,n,a);Y.debug("abc88 inside",a,n,s),Y.debug("abc88 intersection",s,e);let l=!1;r.forEach(u=>{l=l||u.x===s.x&&u.y===s.y}),r.some(u=>u.x===s.x&&u.y===s.y)?Y.warn("abc88 no intersect",s,r):r.push(s),i=!0}else Y.warn("abc88 outside",a,n),n=a,i||r.push(a)}),Y.debug("returning points",r),r},"cutPathAtIntersect");o(f9e,"extractCornerPoints");eJ=o(function(t,e,r){let n=e.x-t.x,i=e.y-t.y,a=Math.sqrt(n*n+i*i),s=r/a;return{x:e.x-s*n,y:e.y-s*i}},"findAdjacentPoint"),d9e=o(function(t){let{cornerPointPositions:e}=f9e(t),r=[];for(let n=0;n<t.length;n++)if(e.includes(n)){let i=t[n-1],a=t[n+1],s=t[n],l=eJ(i,s,5),u=eJ(a,s,5),h=u.x-l.x,f=u.y-l.y;r.push(l);let d=Math.sqrt(2)*2,p={x:s.x,y:s.y};if(Math.abs(a.x-i.x)>10&&Math.abs(a.y-i.y)>=10){Y.debug("Corner point fixing",Math.abs(a.x-i.x),Math.abs(a.y-i.y));let m=5;s.x===l.x?p={x:h<0?l.x-m+d:l.x+m-d,y:f<0?l.y-d:l.y+d}:p={x:h<0?l.x-d:l.x+d,y:f<0?l.y-m+d:l.y+m-d}}else Y.debug("Corner point skipping fixing",Math.abs(a.x-i.x),Math.abs(a.y-i.y));r.push(p,u)}else r.push(t[n]);return r},"fixCorners"),mw=o(function(t,e,r,n,i,a,s){let{handDrawnSeed:l}=pe(),u=e.points,h=!1,f=i;var d=a;d.intersect&&f.intersect&&(u=u.slice(1,e.points.length-1),u.unshift(f.intersect(u[0])),Y.debug("Last point APA12",e.start,"-->",e.end,u[u.length-1],d,d.intersect(u[u.length-1])),u.push(d.intersect(u[u.length-1]))),e.toCluster&&(Y.info("to cluster abc88",r.get(e.toCluster)),u=JZ(e.points,r.get(e.toCluster).node),h=!0),e.fromCluster&&(Y.debug("from cluster abc88",r.get(e.fromCluster),JSON.stringify(u,null,2)),u=JZ(u.reverse(),r.get(e.fromCluster).node).reverse(),h=!0);let p=u.filter(L=>!Number.isNaN(L.y));p=d9e(p);let m=Po;e.curve&&(m=e.curve);let{x:g,y}=uw(e),v=ns().x(g).y(y).curve(m),x;switch(e.thickness){case"normal":x="edge-thickness-normal";break;case"thick":x="edge-thickness-thick";break;case"invisible":x="edge-thickness-invisible";break;default:x="edge-thickness-normal"}switch(e.pattern){case"solid":x+=" edge-pattern-solid";break;case"dotted":x+=" edge-pattern-dotted";break;case"dashed":x+=" edge-pattern-dashed";break;default:x+=" edge-pattern-solid"}let b,w=v(p),_=Array.isArray(e.style)?e.style:[e.style];if(e.look==="handDrawn"){let L=Xe.svg(t);Object.assign([],p);let S=L.path(w,{roughness:.3,seed:l});x+=" transition",b=Ve(S).select("path").attr("id",e.id).attr("class"," "+x+(e.classes?" "+e.classes:"")).attr("style",_?_.reduce((I,D)=>I+";"+D,""):"");let A=b.attr("d");b.attr("d",A),t.node().appendChild(b.node())}else b=t.append("path").attr("d",w).attr("id",e.id).attr("class"," "+x+(e.classes?" "+e.classes:"")).attr("style",_?_.reduce((L,S)=>L+";"+S,""):"");let T="";(pe().flowchart.arrowMarkerAbsolute||pe().state.arrowMarkerAbsolute)&&(T=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,T=T.replace(/ \( /g," \\ (").replace(/ \) /g," \\ )")),Y.info("arrowTypeStart",e.arrowTypeStart),Y.info("arrowTypeEnd",e.arrowTypeEnd),QZ(b,e,T,s,n);let E={};return h&&(E.updatedPath=u),E.originalPath=e.points,E},"insertEdge")});var p9e,m9e,g9e,y9e,v9e,x9e,b9e,w9e,T9e,k9e,E9e,gw,fL=M(()=>{"use strict";ut();p9e=o((t,e,r,n)=>{e.forEach(i=>{E9e[i](t,r,n)})},"insertMarkers"),m9e=o((t,e,r)=>{Y.trace("Making markers for ",r),t.append("defs").append("marke
Node . id = ` ,y, `
data = ` ,x.height, `
Parent cluster ` ,i.height),e.setNode(i.id,x),e.parent(y)||(Y.trace("Setting parent",y,i.id),e.setParent(y,i.id,x))}if(Y.info("(Insert) Node XXX"+y+": "+JSON.stringify(e.node(y))),v?.clusterNode){Y.info("Cluster identified XBX",y,v.width,e.node(y));let{ranksep:x,nodesep:b}=e.graph();v.graph.setGraph({...v.graph.graph(),ranksep:x+25,nodesep:b});let w=await Bie(d,v.graph,r,n,e.node(y),a),_=w.elem;je(v,_),v.diff=w.diff||0,Y.info("New compound node after recursive render XAX",y,"width",v.width,"height",v.height),rJ(_,v)}else e.children(y).length>0?(Y.trace("Cluster - the non recursive path XBX",y,v.id,v,v.width,"Graph:",e),Y.trace(Km(v.id,e)),wr.set(v.id,{id:Km(v.id,e),node:v})):(Y.trace("Node - the non recursive path XAX",y,d,e.node(y),s),await Lm(d,e.node(y),{config:a,dir:s}))})),await o(async()=>{let y=e.edges().map(async function(v){let x=e.edge(v.v,v.w,v.name);Y.info("Edge "+v.v+" -> "+v.w+": "+JSON.stringify(v)),Y.info("Edge "+v.v+" -> "+v.w+": ",v," ",JSON.stringify(e.edge(v))),Y.info("Fix",wr,"ids:",v.v,v.w,"Translating: ",wr.get(v.v),wr.get(v.w)),await dw(f,x)});await Promise.all(y)},"processEdges")(),Y.info("Graph before layout:",JSON.stringify(Ko(e))),Y.info("############################################# XXX"),Y.info("### Layout ### XXX"),Y.info("############################################# XXX"),Gu(e),Y.info("Graph after layout:",JSON.stringify(Ko(e)));let m=0,{subGraphTitleTotalMargin:g}=Fu(a);return await Promise.all(Oie(e).map(async function(y){let v=e.node(y);if(Y.info("Position XBX => "+y+": ("+v.x,","+v.y,") width: ",v.width," height: ",v.height),v?.clusterNode)v.y+=g,Y.info("A tainted cluster node XBX1",y,v.id,v.width,v.height,v.x,v.y,e.parent(y)),wr.get(v.id).node=v,Uv(v);else if(e.children(y).length>0){Y.info("A pure cluster node XBX1",y,v.id,v.x,v.y,v.width,v.height,e.parent(y)),v.height+=g,e.node(v.parentId);let x=v?.padding/2||0,b=v?.labelBBox?.height||0,w=b-x||0;Y.debug("OffsetY",w,"labelHeight",b,"halfPadding",x),await _m(u,v),wr.get(v.id).node=v}else{let x=e.node(v.parentId);v.y+=g/2,Y.info("A regular node XBX1 - using the padding",v.id,"parent",v.parentId,v.width,v.height,v.x,v.y,"offsetY",v.offsetY,"parent",x,x?.offsetY,v),Uv(v)}})),e.edges().forEach(function(y){let v=e.edge(y);Y.info("Edge "+y.v+" -> "+y.w+": "+JSON.stringify(v),v),v.points.forEach(_=>_.y+=g/2);let x=e.node(y.v);var b=e.node(y.w);let w=mw(h,v,wr,r,x,b,n);pw(v,w)}),e.nodes().forEach(function(y){let v=e.node(y);Y.info(y,v.type,v.diff),v.isGroup&&(m=v.diff)}),Y.warn("Returning from recursive render XAX",l,m),{elem:l,diff:m}},"recursiveRender"),IOe=o(async(t,e)=>{let r=new Ir({multigraph:!0,compound:!0}).setGraph({rankdir:t.direction,nodesep:t.config?.nodeSpacing||t.config?.flowchart?.nodeSpacing||t.nodeSpacing,ranksep:t.config?.rankSpacing||t.config?.flowchart?.rankSpacing||t.rankSpacing,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}}),n=e.select("g");gw(n,t.markers,t.type,t.diagramId),nJ(),tJ(),jZ(),Lie(),t.nodes.forEach(a=>{r.setNode(a.id,{...a}),a.parentId&&r.setParent(a.id,a.parentId)}),Y.debug("Edges:",t.edges),t.edges.forEach(a=>{if(a.start===a.end){let s=a.start,l=s+"---"+s+"---1",u=s+"---"+s+"---2",h=r.node(s);r.setNode(l,{domId:l,id:l,parentId:h.parentId,labelStyle:"",label:"",padding:0,shape:"labelRect",style:"",width:10,height:10}),r.setParent(l,h.parentId),r.setNode(u,{domId:u,id:u,parentId:h.parentId,labelStyle:"",padding:0,shape:"labelRect",label:"",style:"",width:10,height:10}),r.setParent(u,h.parentId);let f=structuredClone(a),d=structuredClone(a),p=structuredClone(a);f.label="",f.arrowTypeEnd="none",f.id=s+"-cyclic-special-1",d.arrowTypeEnd="none",d.id=s+"-cyclic-special-mid",p.label="",h.isGroup&&(f.fromCluster=s,p.toCluster=s),p.id=s+"-cyclic-special-2",r.setEdge(s,l,f,s+"-cyclic-special-0"),r.setEdge(l,u,d,s+"-cyclic-special-1"),r.setEdge(u,s,p,s+"-cyc<lic-special-2")}else r.setEdge(a.start,a.end,{...a},a.id)}),Y.warn("Graph at first:",JSON.stringify(Ko(r))),Rie(r),Y.warn("Graph after XAX:",JSON.stringify(Ko(r)));let i=pe();await Bie(n,r,t.type,t.diagramId,void 0,i)}
` +Kn.showPosition()+ `
Expecting ` +Xf.join(", ")+", got '"+(this.terminals_[ua]||ua)+"'":cp="Parse error on line "+(ja+1)+": Unexpected "+(ua==X1?"end of input":"'"+(this.terminals_[ua]||ua)+"'"),this.parseError(cp,{text:Kn.match,token:this.terminals_[ua]||ua,line:Kn.yylineno,loc:Wf,expected:Xf})}if(Oi[0]instanceof Array&&Oi.length>1)throw new Error("Parse Error: multiple actions possible at state: "+En+", token: "+ua);switch(Oi[0]){case 1:wt.push(ua),Ft.push(Kn.yytext),de.push(Kn.yylloc),wt.push(Oi[1]),ua=null,K1?(ua=K1,K1=null):(W1=Kn.yyleng,xe=Kn.yytext,ja=Kn.yylineno,Wf=Kn.yylloc,Y1>0&&Y1--);break;case 2:if(Co=this.productions_[Oi[1]][1],rc. $ =Ft[Ft.length-Co],rc._ $ ={first_line:de[de.length-(Co||1)].first_line,last_line:de[de.length-1].last_line,first_column:de[de.length-(Co||1)].first_column,last_column:de[de.length-1].last_column},j1&&(rc._ $ .range=[de[de.length-(Co||1)].range[0],de[de.length-1].range[1]]),lp=this.performAction.apply(rc,[xe,W1,ja,ca.yy,Oi[1],Ft,de].concat(op)),typeof lp<"u")return lp;Co&&(wt=wt.slice(0,-1*Co*2),Ft=Ft.slice(0,-1*Co),de=de.slice(0,-1*Co)),wt.push(this.productions_[Oi[1]][0]),Ft.push(rc. $ ),de.push(rc._ $ ),zb=gn[wt[wt.length-2]][wt[wt.length-1]],wt.push(zb);break;case 3:return!0}}return!0},"parse")},gl=function(){var ki={EOF:1,parseError:o(function(Pt,wt){if(this.yy.parser)this.yy.parser.parseError(Pt,wt);else throw new Error(Pt)},"parseError"),setInput:o(function(At,Pt){return this.yy=Pt||this.yy||{},this._input=At,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:o(function(){var At=this._input[0];this.yytext+=At,this.yyleng++,this.offset++,this.match+=At,this.matched+=At;var Pt=At.match(/(?: \r \n ?| \n ).*/g);return Pt?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),At},"input"),unput:o(function(At){var Pt=At.length,wt=At.split(/(?: \r \n ?| \n )/g);this._input=At+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-Pt),this.offset-=Pt;var We=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),wt.length-1&&(this.yylineno-=wt.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:wt?(wt.length===We.length?this.yylloc.first_column:0)+We[We.length-wt.length].length-wt[0].length:this.yylloc.first_column-Pt},this.options.ranges&&(this.yylloc.range=[Ft[0],Ft[0]+this.yyleng-Pt]),this.yyleng=this.yytext.length,this},"unput"),more:o(function(){return this._more=!0,this},"more"),reject:o(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+ ` . You can only invoke reject ( ) in the lexer when the lexer is of the backtracking persuasion ( options . backtrack _lexer = true ) .
` +this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:o(function(At){this.unput(this.match.slice(At))},"less"),pastInput:o(function(){var At=this.matched.substr(0,this.matched.length-this.match.length);return(At.length>20?"...":"")+At.substr(-20).replace(/ \n /g,"")},"pastInput"),upcomingInput:o(function(){var At=this.match;return At.length<20&&(At+=this._input.substr(0,20-At.length)),(At.substr(0,20)+(At.length>20?"...":"")).replace(/ \n /g,"")},"upcomingInput"),showPosition:o(function(){var At=this.pastInput(),Pt=new Array(At.length+1).join("-");return At+this.upcomingInput()+ `
` +Pt+"^"},"showPosition"),test_match:o(function(At,Pt){var wt,We,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))),We=At[0].match(/(?: \r \n ?| \n ).*/g),We&&(this.yylineno+=We.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:We?We[We.length-1].length-We[We.length-1].match(/ \r ? \n ?/)[0].length:this.yylloc.last_column+At[0].length},this.yytext+=At[0],this.match+=At[0],this.matches=At,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(At[0].length),this.matched+=At[0],wt=this.performAction.call(this,this.yy,this,Pt,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),wt)return wt;if(this._backtrack){for(var de in Ft)this[de]=Ft[de];return!1}return!1},"test_match"),next:o(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var At,Pt,wt,We;this._more||(this.yytext="",this.match="");for(var Ft=this._currentRules(),de=0;de<Ft.length;de++)if(wt=this._input.match(this.rules[Ft[de]]),wt&&(!Pt||wt[0].length>Pt[0].length)){if(Pt=wt,We=de,this.options.backtrack_lexer){if(At=this.test_match(wt,Ft[de]),At!==!1)return At;if(this._backtrack){Pt=!1;continue}else return!1}else if(!this.options.flex)break}return Pt?(At=this.test_match(Pt,Ft[We]),At!==!1?At:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+ ` . Unrecognized text .
` +this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:o(function(){var Pt=this.next();return Pt||this.lex()},"lex"),begin:o(function(Pt){this.conditionStack.push(Pt)},"begin"),popState:o(function(){var Pt=this.conditionStack.length-1;return Pt>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:o(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:o(function(Pt){return Pt=this.conditionStack.length-1-Math.abs(Pt||0),Pt>=0?this.conditionStack[Pt]:"INITIAL"},"topState"),pushState:o(function(Pt){this.begin(Pt)},"pushState"),stateStackSize:o(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:o(function(Pt,wt,We,Ft){var de=Ft;switch(We){case 0:return this.begin("acc_title"),34;break;case 1:return this.popState(),"acc_title_value";break;case 2:return this.begin("acc_descr"),36;break;case 3:return this.popState(),"acc_descr_value";break;case 4:this.begin("acc_descr_multiline");break;case 5:this.popState();break;case 6:return"acc_descr_multiline_value";case 7:return this.pushState("shapeData"),wt.yytext="",40;break;case 8:return this.pushState("shapeDataStr"),40;break;case 9:return this.popState(),40;break;case 10:let gn=/ \n \s */g;return wt.yytext=wt.yytext.replace(gn,"<br/>"),40;break;case 11:return 40;case 12:this.popState();break;case 13:this.begin("callbackname");break;case 14:this.popState();break;case 15:this.popState(),this.begin("callbackargs");break;case 16:return 94;case 17:this.popState();break;case 18:return 95;case 19:return"MD_STR";case 20:this.popState();break;case 21:this.begin("md_string");break;case 22:return"STR";case 23:this.popState();break;case 24:this.pushState("string");break;case 25:return 83;case 26:return 101;case 27:return 84;case 28:return 103;case 29:return 85;case 30:return 86;case 31:return 96;case 32:this.begin("click");break;case 33:this.popState();break;case 34:return 87;case 35:return Pt.lex.firstGraph()&&this.begin("dir"),12;break;case 36:return Pt.lex.firstGraph()&&this.begin("dir"),12;break;case 37:return Pt.lex.firstGraph()&&this.begin("dir"),12;break;case 38:return 27;case 39:return 32;case 40:return 97;case 41:return 97;case 42:return 97;case 43:return 97;case 44:return this.popState(),13;break;case 45:return this.popState(),14;break;case 46:return this.popState(),14;break;case 47:return this.popState(),14;break;case 48:return this.popState(),14;break;case 49:return this.popState(),14;break;case 50:return this.popState(),14;break;case 51:return this.popState(),14;break;case 52:return this.popState(),14;break;case 53:return this.popState(),14;break;case 54:return this.popState(),14;break;case 55:return 120;case 56:return 121;case 57:return 122;case 58:return 123;case 59:return 104;case 60:return 110;case 61:return 46;case 62:return 60;case 63:return 44;case 64:return 8;case 65:return 105;case 66:return 114;case 67:return this.popState(),77;break;case 68:return this.pushState("edgeText"),75;break;case 69:return 118;case 70:return this.popState(),77;break;case 71:return this.pushState("thickEdgeText"),75;break;case 72:return 118;case 73:return this.popState(),77;break;case 74:return this.pushState("dottedEdgeText"),75;break;case 75:return 118;case 76:return 77;case 77:return this.popState(),53;break;case 78:return"TEXT";case 79:return this.pushState("ellipseText"),52;break;case 80:return this.popState(),55;break;case 81:return this.pushState("text"),54;break;case 82:return this.popState(),57;break;case 83:return this.pushState("text"),56;break;case 84:return 58;case 85:return this.pushState("text"),67;break;case 86:return this.popState(),64;break;case 87:return this.pushState("text"),63;break;case 88:return this.popState(),49;break;case 89:return this.pushState("text"),48;break;case 90:return this.popState(),69;break;case 91:return this.popState(),71;break;case 92:return 116;case 93:return this.pushState("trapText"),68;break;case 94:re
font - family : $ { t . fontFamily } ;
color : $ { t . nodeTextColor || t . textColor } ;
2022-11-24 01:08:27 +02:00
}
. cluster - label text {
2024-11-13 12:07:54 +02:00
fill : $ { t . titleColor } ;
2022-11-24 01:08:27 +02:00
}
2024-11-13 12:07:54 +02:00
. cluster - label span {
color : $ { t . titleColor } ;
}
. cluster - label span p {
background - color : transparent ;
2022-11-24 01:08:27 +02:00
}
2024-11-13 12:07:54 +02:00
. label text , span {
fill : $ { t . nodeTextColor || t . textColor } ;
color : $ { t . nodeTextColor || t . textColor } ;
2022-11-24 01:08:27 +02:00
}
. node rect ,
. node circle ,
. node ellipse ,
. node polygon ,
. node path {
2024-11-13 12:07:54 +02:00
fill : $ { t . mainBkg } ;
stroke : $ { t . nodeBorder } ;
2022-11-24 01:08:27 +02:00
stroke - width : 1 px ;
}
2024-11-13 12:07:54 +02:00
. rough - node . label text , . node . label text , . image - shape . label , . icon - shape . label {
2023-09-19 12:31:17 +02:00
text - anchor : middle ;
}
// .flowchart-label .text-outer-tspan {
// text-anchor: middle;
// }
// .flowchart-label .text-inner-tspan {
// text-anchor: start;
// }
2022-11-24 01:08:27 +02:00
2024-05-27 09:53:57 +02:00
. node . katex path {
fill : # 000 ;
stroke : # 000 ;
stroke - width : 1 px ;
}
2024-11-13 12:07:54 +02:00
. rough - node . label , . node . label , . image - shape . label , . icon - shape . label {
2022-11-24 01:08:27 +02:00
text - align : center ;
}
. node . clickable {
cursor : pointer ;
}
2024-11-13 12:07:54 +02:00
. root . anchor path {
fill : $ { t . lineColor } ! important ;
stroke - width : 0 ;
stroke : $ { t . lineColor } ;
}
2022-11-24 01:08:27 +02:00
. arrowheadPath {
2024-11-13 12:07:54 +02:00
fill : $ { t . arrowheadColor } ;
2022-11-24 01:08:27 +02:00
}
. edgePath . path {
2024-11-13 12:07:54 +02:00
stroke : $ { t . lineColor } ;
2022-11-24 01:08:27 +02:00
stroke - width : 2.0 px ;
}
. flowchart - link {
2024-11-13 12:07:54 +02:00
stroke : $ { t . lineColor } ;
2022-11-24 01:08:27 +02:00
fill : none ;
}
. edgeLabel {
2024-11-13 12:07:54 +02:00
background - color : $ { t . edgeLabelBackground } ;
p {
background - color : $ { t . edgeLabelBackground } ;
}
2022-11-24 01:08:27 +02:00
rect {
opacity : 0.5 ;
2024-11-13 12:07:54 +02:00
background - color : $ { t . edgeLabelBackground } ;
fill : $ { t . edgeLabelBackground } ;
2022-11-24 01:08:27 +02:00
}
text - align : center ;
}
2023-09-19 12:31:17 +02:00
/* For html labels only */
. labelBkg {
2024-11-13 12:07:54 +02:00
background - color : $ { GOe ( t . edgeLabelBackground , . 5 ) } ;
// background-color:
2023-09-19 12:31:17 +02:00
}
2022-11-24 01:08:27 +02:00
. cluster rect {
2024-11-13 12:07:54 +02:00
fill : $ { t . clusterBkg } ;
stroke : $ { t . clusterBorder } ;
2022-11-24 01:08:27 +02:00
stroke - width : 1 px ;
}
. cluster text {
2024-11-13 12:07:54 +02:00
fill : $ { t . titleColor } ;
2022-11-24 01:08:27 +02:00
}
2024-11-13 12:07:54 +02:00
. cluster span {
color : $ { t . titleColor } ;
2022-11-24 01:08:27 +02:00
}
/ * . c l u s t e r d i v {
2024-11-13 12:07:54 +02:00
color : $ { t . titleColor } ;
2022-11-24 01:08:27 +02:00
} * /
div . mermaidTooltip {
position : absolute ;
text - align : center ;
max - width : 200 px ;
padding : 2 px ;
2024-11-13 12:07:54 +02:00
font - family : $ { t . fontFamily } ;
2022-11-24 01:08:27 +02:00
font - size : 12 px ;
2024-11-13 12:07:54 +02:00
background : $ { t . tertiaryColor } ;
border : 1 px solid $ { t . border2 } ;
2022-11-24 01:08:27 +02:00
border - radius : 2 px ;
pointer - events : none ;
z - index : 100 ;
}
2023-09-19 12:31:17 +02:00
. flowchartTitleText {
text - anchor : middle ;
font - size : 18 px ;
2024-11-13 12:07:54 +02:00
fill : $ { t . textColor } ;
}
rect . text {
fill : none ;
stroke - width : 0 ;
}
. icon - shape , . image - shape {
background - color : $ { t . edgeLabelBackground } ;
p {
background - color : $ { t . edgeLabelBackground } ;
padding : 2 px ;
}
rect {
opacity : 0.5 ;
background - color : $ { t . edgeLabelBackground } ;
fill : $ { t . edgeLabelBackground } ;
}
text - align : center ;
}
` ,"getStyles"),Hie= $ Oe});var kT={};vr(kT,{diagram:()=>VOe});var VOe,ET=M(()=>{"use strict";Vt();cL(); $ ie();Uie();Wie();VOe={parser:Vie,db:sw,renderer:Gie,styles:Hie,init:o(t=>{t.flowchart||(t.flowchart={}),t.layout&&a7({layout:t.layout}),t.flowchart.arrowMarkerAbsolute=t.arrowMarkerAbsolute,a7({flowchart:{arrowMarkerAbsolute:t.arrowMarkerAbsolute}}),sw.clear(),sw.setGen("gen-2")},"init")}});var DD,Kie,Qie=M(()=>{"use strict";DD=function(){var t=o(function(S,A,I,D){for(I=I||{},D=S.length;D--;I[S[D]]=A);return I},"o"),e=[6,8,10,20,22,24,26,27,28],r=[1,10],n=[1,11],i=[1,12],a=[1,13],s=[1,14],l=[1,15],u=[1,21],h=[1,22],f=[1,23],d=[1,24],p=[1,25],m=[6,8,10,13,15,18,19,20,22,24,26,27,28,41,42,43,44,45],g=[1,34],y=[27,28,46,47],v=[41,42,43,44,45],x=[17,34],b=[1,54],w=[1,53],_=[17,34,36,38],T={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,entityName:11,relSpec:12,":":13,role:14,BLOCK_START:15,attributes:16,BLOCK_STOP:17,SQS:18,SQE:19,title:20,title_value:21,acc_title:22,acc_title_value:23,acc_descr:24,acc_descr_value:25,acc_descr_multiline_value:26,ALPHANUM:27,ENTITY_NAME:28,attribute:29,attributeType:30,attributeName:31,attributeKeyTypeList:32,attributeComment:33,ATTRIBUTE_WORD:34,attributeKeyType:35,COMMA:36,ATTRIBUTE_KEY:37,COMMENT:38,cardinality:39,relType:40,ZERO_OR_ONE:41,ZERO_OR_MORE:42,ONE_OR_MORE:43,ONLY_ONE:44,MD_PARENT:45,NON_IDENTIFYING:46,IDENTIFYING:47,WORD:48, $ accept:0, $ end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",8:"SPACE",10:"NEWLINE",13:":",15:"BLOCK_START",17:"BLOCK_STOP",18:"SQS",19:"SQE",20:"title",21:"title_value",22:"acc_title",23:"acc_title_value",24:"acc_descr",25:"acc_descr_value",26:"acc_descr_multiline_value",27:"ALPHANUM",28:"ENTITY_NAME",34:"ATTRIBUTE_WORD",36:"COMMA",37:"ATTRIBUTE_KEY",38:"COMMENT",41:"ZERO_OR_ONE",42:"ZERO_OR_MORE",43:"ONE_OR_MORE",44:"ONLY_ONE",45:"MD_PARENT",46:"NON_IDENTIFYING",47:"IDENTIFYING",48:"WORD"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,5],[9,4],[9,3],[9,1],[9,7],[9,6],[9,4],[9,2],[9,2],[9,2],[9,1],[11,1],[11,1],[16,1],[16,2],[29,2],[29,3],[29,3],[29,4],[30,1],[31,1],[32,1],[32,3],[35,1],[33,1],[12,3],[39,1],[39,1],[39,1],[39,1],[39,1],[40,1],[40,1],[14,1],[14,1],[14,1]],performAction:o(function(A,I,D,k,R,C,O){var N=C.length-1;switch(R){case 1:break;case 2:this. $ =[];break;case 3:C[N-1].push(C[N]),this. $ =C[N-1];break;case 4:case 5:this. $ =C[N];break;case 6:case 7:this. $ =[];break;case 8:k.addEntity(C[N-4]),k.addEntity(C[N-2]),k.addRelationship(C[N-4],C[N],C[N-2],C[N-3]);break;case 9:k.addEntity(C[N-3]),k.addAttributes(C[N-3],C[N-1]);break;case 10:k.addEntity(C[N-2]);break;case 11:k.addEntity(C[N]);break;case 12:k.addEntity(C[N-6],C[N-4]),k.addAttributes(C[N-6],C[N-1]);break;case 13:k.addEntity(C[N-5],C[N-3]);break;case 14:k.addEntity(C[N-3],C[N-1]);break;case 15:case 16:this. $ =C[N].trim(),k.setAccTitle(this. $ );break;case 17:case 18:this. $ =C[N].trim(),k.setAccDescription(this. $ );break;case 19:case 43:this. $ =C[N];break;case 20:case 41:case 42:this. $ =C[N].replace(/"/g,"");break;case 21:case 29:this. $ =[C[N]];break;case 22:C[N].push(C[N-1]),this. $ =C[N];break;case 23:this. $ ={attributeType:C[N-1],attributeName:C[N]};break;case 24:this. $ ={attributeType:C[N-2],attributeName:C[N-1],attributeKeyTypeList:C[N]};break;case 25:this. $ ={attributeType:C[N-2],attributeName:C[N-1],attributeComment:C[N]};break;case 26:this. $ ={attributeType:C[N-3],attributeName:C[N-2],attributeKeyTypeList:C[N-1],attributeComment:C[N]};break;case 27:case 28:case 31:this. $ =C[N];break;case 30:C[N-2].push(C[N]),this. $ =C[N-2];break;case 32:this. $ =C[N].replace(/"/g,"");break;case 33:this. $ ={cardA:C[N],relType:C[N-1],cardB:C[N-2]};break;case 34:this. $ =k.Cardinality.ZERO_OR_ONE;break;case 35:this. $ =k.Cardinality.ZERO_OR_MORE;break;case 36:this. $ =k.Cardinality.ONE_OR_MORE;break;case 37:this. $ =k.Cardinality.ONLY_ONE;break;case 38:this. $ =k.Cardinality.MD_PARENT;break;case 39:this. $ =k.Identification.NON_IDENTIFYING;break;case 40:this. $ =k.Identification.IDENTIFYING;break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]
` +Z.showPosition()+ `
Expecting ` +Ce.join(", ")+", got '"+(this.terminals_[q]||q)+"'":Pe="Parse error on line "+(P+1)+": Unexpected "+(q==z?"end of input":"'"+(this.terminals_[q]||q)+"'"),this.parseError(Pe,{text:Z.match,token:this.terminals_[q]||q,line:Z.yylineno,loc:K,expected:Ce})}if(ue[0]instanceof Array&&ue.length>1)throw new Error("Parse Error: multiple actions possible at state: "+ae+", token: "+q);switch(ue[0]){case 1:D.push(q),R.push(Z.yytext),C.push(Z.yylloc),D.push(ue[1]),q=null,Q?(q=Q,Q=null):(F=Z.yyleng,N=Z.yytext,P=Z.yylineno,K=Z.yylloc,B>0&&B--);break;case 2:if(ke=this.productions_[ue[1]][1],Ne. $ =R[R.length-ke],Ne._ $ ={first_line:C[C.length-(ke||1)].first_line,last_line:C[C.length-1].last_line,first_column:C[C.length-(ke||1)].first_column,last_column:C[C.length-1].last_column},ee&&(Ne._ $ .range=[C[C.length-(ke||1)].range[0],C[C.length-1].range[1]]),te=this.performAction.apply(Ne,[N,F,P,j.yy,ue[1],R,C].concat(W)),typeof te<"u")return te;ke&&(D=D.slice(0,-1*ke*2),R=R.slice(0,-1*ke),C=C.slice(0,-1*ke)),D.push(this.productions_[ue[1]][0]),R.push(Ne. $ ),C.push(Ne._ $ ),Re=O[D[D.length-2]][D[D.length-1]],D.push(Re);break;case 3:return!0}}return!0},"parse")},E=function(){var S={EOF:1,parseError:o(function(I,D){if(this.yy.parser)this.yy.parser.parseError(I,D);else throw new Error(I)},"parseError"),setInput:o(function(A,I){return this.yy=I||this.yy||{},this._input=A,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:o(function(){var A=this._input[0];this.yytext+=A,this.yyleng++,this.offset++,this.match+=A,this.matched+=A;var I=A.match(/(?: \r \n ?| \n ).*/g);return I?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),A},"input"),unput:o(function(A){var I=A.length,D=A.split(/(?: \r \n ?| \n )/g);this._input=A+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-I),this.offset-=I;var k=this.match.split(/(?: \r \n ?| \n )/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),D.length-1&&(this.yylineno-=D.length-1);var R=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:D?(D.length===k.length?this.yylloc.first_column:0)+k[k.length-D.length].length-D[0].length:this.yylloc.first_column-I},this.options.ranges&&(this.yylloc.range=[R[0],R[0]+this.yyleng-I]),this.yyleng=this.yytext.length,this},"unput"),more:o(function(){return this._more=!0,this},"more"),reject:o(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+ ` . You can only invoke reject ( ) in the lexer when the lexer is of the backtracking persuasion ( options . backtrack _lexer = true ) .
` +this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:o(function(A){this.unput(this.match.slice(A))},"less"),pastInput:o(function(){var A=this.matched.substr(0,this.matched.length-this.match.length);return(A.length>20?"...":"")+A.substr(-20).replace(/ \n /g,"")},"pastInput"),upcomingInput:o(function(){var A=this.match;return A.length<20&&(A+=this._input.substr(0,20-A.length)),(A.substr(0,20)+(A.length>20?"...":"")).replace(/ \n /g,"")},"upcomingInput"),showPosition:o(function(){var A=this.pastInput(),I=new Array(A.length+1).join("-");return A+this.upcomingInput()+ `
` +I+"^"},"showPosition"),test_match:o(function(A,I){var D,k,R;if(this.options.backtrack_lexer&&(R={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&&(R.yylloc.range=this.yylloc.range.slice(0))),k=A[0].match(/(?: \r \n ?| \n ).*/g),k&&(this.yylineno+=k.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:k?k[k.length-1].length-k[k.length-1].match(/ \r ? \n ?/)[0].length:this.yylloc.last_column+A[0].length},this.yytext+=A[0],this.match+=A[0],this.matches=A,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(A[0].length),this.matched+=A[0],D=this.performAction.call(this,this.yy,this,I,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),D)return D;if(this._backtrack){for(var C in R)this[C]=R[C];return!1}return!1},"test_match"),next:o(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var A,I,D,k;this._more||(this.yytext="",this.match="");for(var R=this._currentRules(),C=0;C<R.length;C++)if(D=this._input.match(this.rules[R[C]]),D&&(!I||D[0].length>I[0].length)){if(I=D,k=C,this.options.backtrack_lexer){if(A=this.test_match(D,R[C]),A!==!1)return A;if(this._backtrack){I=!1;continue}else return!1}else if(!this.options.flex)break}return I?(A=this.test_match(I,R[k]),A!==!1?A:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+ ` . Unrecognized text .
` +this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:o(function(){var I=this.next();return I||this.lex()},"lex"),begin:o(function(I){this.conditionStack.push(I)},"begin"),popState:o(function(){var I=this.conditionStack.length-1;return I>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:o(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:o(function(I){return I=this.conditionStack.length-1-Math.abs(I||0),I>=0?this.conditionStack[I]:"INITIAL"},"topState"),pushState:o(function(I){this.begin(I)},"pushState"),stateStackSize:o(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:o(function(I,D,k,R){var C=R;switch(k){case 0:return this.begin("acc_title"),22;break;case 1:return this.popState(),"acc_title_value";break;case 2:return this.begin("acc_descr"),24;break;case 3:return this.popState(),"acc_descr_value";break;case 4:this.begin("acc_descr_multiline");break;case 5:this.popState();break;case 6:return"acc_descr_multiline_value";case 7:return 10;case 8:break;case 9:return 8;case 10:return 28;case 11:return 48;case 12:return 4;case 13:return this.begin("block"),15;break;case 14:return 36;case 15:break;case 16:return 37;case 17:return 34;case 18:return 34;case 19:return 38;case 20:break;case 21:return this.popState(),17;break;case 22:return D.yytext[0];case 23:return 18;case 24:return 19;case 25:return 41;case 26:return 43;case 27:return 43;case 28:return 43;case 29:return 41;case 30:return 41;case 31:return 42;case 32:return 42;case 33:return 42;case 34:return 42;case 35:return 42;case 36:return 43;case 37:return 42;case 38:return 43;case 39:return 44;case 40:return 44;case 41:return 44;case 42:return 44;case 43:return 41;case 44:return 42;case 45:return 43;case 46:return 45;case 47:return 46;case 48:return 47;case 49:return 47;case 50:return 46;case 51:return 46;case 52:return 46;case 53:return 27;case 54:return D.yytext[0];case 55:return 6}},"anonymous"),rules:[/^(?:accTitle \s *: \s *)/i,/^(?:(?! \n ||)*[^ \n ]*)/i,/^(?:accDescr \s *: \s *)/i,/^(?:(?! \n ||)*[^ \n ]*)/i,/^(?:accDescr \s * \{ \s *)/i,/^(?:[ \} ])/i,/^(?:[^ \} ]*)/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,/^(?: \[ )/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},block:{rules:[14,15,16,17,18,19,20,21,22],inclusive:!1},INITIAL:{rules:[0,2,4,7,8,9,10,11,12,13,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55],inclusive:!0}}};return S}();T.lexer=E;function L(){this.yy={}}return o(L,"Parser"),L.prototype=T,T.Parser=L,new L}();DD.parser=DD;Kie=DD});var Kd,ND,jOe,KOe,Zie,QOe,ZOe,JOe,ePe,tPe,Jie,eae=M(()=>{"use strict";ut();Vt();Ai();Kd=new Map,ND=[],jOe={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"},KOe={NON_IDENTIFYING:"NON_IDENTIFYING",IDENTIFYING:"IDENTIFYING"},Zie=o(function(t,e=void 0){return Kd.has(t)?!Kd.get(t).alias&&e&&(Kd.get(t).alias=e,Y.info( ` Add alias '${e}' to entity '${t}' ` )):(Kd.set(t,{attributes:[],alias:e}),Y.info("Added new entity :",t)),Kd.get
2023-09-19 12:31:17 +02:00
. entityBox {
2024-11-13 12:07:54 +02:00
fill : $ { t . mainBkg } ;
stroke : $ { t . nodeBorder } ;
2023-09-19 12:31:17 +02:00
}
. attributeBoxOdd {
2024-11-13 12:07:54 +02:00
fill : $ { t . attributeBackgroundColorOdd } ;
stroke : $ { t . nodeBorder } ;
2023-09-19 12:31:17 +02:00
}
. attributeBoxEven {
2024-11-13 12:07:54 +02:00
fill : $ { t . attributeBackgroundColorEven } ;
stroke : $ { t . nodeBorder } ;
2023-09-19 12:31:17 +02:00
}
. relationshipLabelBox {
2024-11-13 12:07:54 +02:00
fill : $ { t . tertiaryColor } ;
2023-09-19 12:31:17 +02:00
opacity : 0.7 ;
2024-11-13 12:07:54 +02:00
background - color : $ { t . tertiaryColor } ;
2023-09-19 12:31:17 +02:00
rect {
opacity : 0.5 ;
}
}
. relationshipLine {
2024-11-13 12:07:54 +02:00
stroke : $ { t . lineColor } ;
2023-09-19 12:31:17 +02:00
}
. entityTitleText {
text - anchor : middle ;
font - size : 18 px ;
2024-11-13 12:07:54 +02:00
fill : $ { t . textColor } ;
2023-09-19 12:31:17 +02:00
}
# MD _PARENT _START {
fill : # f5f5f5 ! important ;
2024-11-13 12:07:54 +02:00
stroke : $ { t . lineColor } ! important ;
2023-09-19 12:31:17 +02:00
stroke - width : 1 ;
}
# MD _PARENT _END {
fill : # f5f5f5 ! important ;
2024-11-13 12:07:54 +02:00
stroke : $ { t . lineColor } ! important ;
2023-09-19 12:31:17 +02:00
stroke - width : 1 ;
}
2024-11-13 12:07:54 +02:00
` ,"getStyles"),bae=wPe});var Tae={};vr(Tae,{diagram:()=>TPe});var TPe,kae=M(()=>{"use strict";Qie();eae();xae();wae();TPe={parser:Kie,db:Jie,renderer:vae,styles:bae}});function ri(t){return typeof t=="object"&&t!==null&&typeof t. $ type=="string"}function Ta(t){return typeof t=="object"&&t!==null&&typeof t. $ refText=="string"}function OD(t){return typeof t=="object"&&t!==null&&typeof t.name=="string"&&typeof t.type=="string"&&typeof t.path=="string"}function Zd(t){return typeof t=="object"&&t!==null&&ri(t.container)&&Ta(t.reference)&&typeof t.message=="string"}function ho(t){return typeof t=="object"&&t!==null&&Array.isArray(t.content)}function cf(t){return typeof t=="object"&&t!==null&&typeof t.tokenType=="object"}function t2(t){return ho(t)&&typeof t.fullText=="string"}var Qd,Zo=M(()=>{"use strict";o(ri,"isAstNode");o(Ta,"isReference");o(OD,"isAstNodeDescription");o(Zd,"isLinkingError");Qd=class{static{o(this,"AbstractAstReflection")}constructor(){this.subtypes={},this.allSubtypes={}}isInstance(e,r){return ri(e)&&this.isSubtype(e. $ type,r)}isSubtype(e,r){if(e===r)return!0;let n=this.subtypes[e];n||(n=this.subtypes[e]={});let i=n[r];if(i!==void 0)return i;{let a=this.computeIsSubtype(e,r);return n[r]=a,a}}getAllSubTypes(e){let r=this.allSubtypes[e];if(r)return r;{let n=this.getAllTypes(),i=[];for(let a of n)this.isSubtype(a,e)&&i.push(a);return this.allSubtypes[e]=i,i}}};o(ho,"isCompositeCstNode");o(cf,"isLeafCstNode");o(t2,"isRootCstNode")});function CPe(t){return typeof t=="string"?t:typeof t>"u"?"undefined":typeof t.toString=="function"?t.toString():Object.prototype.toString.call(t)}function ST(t){return!!t&&typeof t[Symbol.iterator]=="function"}function tn(...t){if(t.length===1){let e=t[0];if(e instanceof fo)return e;if(ST(e))return new fo(()=>e[Symbol.iterator](),r=>r.next());if(typeof e.length=="number")return new fo(()=>({index:0}),r=>r.index<e.length?{done:!1,value:e[r.index++]}:ss)}return t.length>1?new fo(()=>({collIndex:0,arrIndex:0}),e=>{do{if(e.iterator){let r=e.iterator.next();if(!r.done)return r;e.iterator=void 0}if(e.array){if(e.arrIndex<e.array.length)return{done:!1,value:e.array[e.arrIndex++]};e.array=void 0,e.arrIndex=0}if(e.collIndex<t.length){let r=t[e.collIndex++];ST(r)?e.iterator=r[Symbol.iterator]():r&&typeof r.length=="number"&&(e.array=r)}}while(e.iterator||e.array||e.collIndex<t.length);return ss}):r2}var fo,r2,ss,Pc,Jm, $ s=M(()=>{"use strict";fo=class t{static{o(this,"StreamImpl")}constructor(e,r){this.startFn=e,this.nextFn=r}iterator(){let e={state:this.startFn(),next:o(()=>this.nextFn(e.state),"next"),[Symbol.iterator]:()=>e};return e}[Symbol.iterator](){return this.iterator()}isEmpty(){return!!this.iterator().next().done}count(){let e=this.iterator(),r=0,n=e.next();for(;!n.done;)r++,n=e.next();return r}toArray(){let e=[],r=this.iterator(),n;do n=r.next(),n.value!==void 0&&e.push(n.value);while(!n.done);return e}toSet(){return new Set(this)}toMap(e,r){let n=this.map(i=>[e?e(i):i,r?r(i):i]);return new Map(n)}toString(){return this.join()}concat(e){let r=e[Symbol.iterator]();return new t(()=>({first:this.startFn(),firstDone:!1}),n=>{let i;if(!n.firstDone){do if(i=this.nextFn(n.first),!i.done)return i;while(!i.done);n.firstDone=!0}do if(i=r.next(),!i.done)return i;while(!i.done);return ss})}join(e=","){let r=this.iterator(),n="",i,a=!1;do i=r.next(),i.done||(a&&(n+=e),n+=CPe(i.value)),a=!0;while(!i.done);return n}indexOf(e,r=0){let n=this.iterator(),i=0,a=n.next();for(;!a.done;){if(i>=r&&a.value===e)return i;a=n.next(),i++}return-1}every(e){let r=this.iterator(),n=r.next();for(;!n.done;){if(!e(n.value))return!1;n=r.next()}return!0}some(e){let r=this.iterator(),n=r.next();for(;!n.done;){if(e(n.value))return!0;n=r.next()}return!1}forEach(e){let r=this.iterator(),n=0,i=r.next();for(;!i.done;)e(i.value,n),i=r.next(),n++}map(e){return new t(this.startFn,r=>{let{done:n,value:i}=this.nextFn(r);return n?ss:{done:!1,value:e(i)}})}filter(e){return new t(this.startFn,r=>{let n;do if(n=this.nextFn(r),!n.done&&e(n.value))return n;while(!n.done);return ss})}nonNullable(){return this.filter(e=>e!=null)}reduce(e,
` ),ar(" \r "),ar(" "),ar(" \v "),ar(" "),ar(" \x A0"),ar(" \u 1680"),ar(" \u 2000"),ar(" \u 2001"),ar(" \u 2002"),ar(" \u 2003"),ar(" \u 2004"),ar(" \u 2005"),ar(" \u 2006"),ar(" \u 2007"),ar(" \u 2008"),ar(" \u 2009"),ar(" \u 200A"),ar(" \u 2028"),ar(" \u 2029"),ar(" \u 202F"),ar(" \u 205F"),ar(" \u 3000"),ar(" \u FEFF")]});var KPe, $ T,QPe,a0,zae=M(()=>{"use strict";WN();Fae();KPe=/[0-9a-fA-F]/, $ T=/[0-9]/,QPe=/[1-9]/,a0=class{static{o(this,"RegExpParser")}constructor(){this.idx=0,this.input="",this.groupIdx=0}saveState(){return{idx:this.idx,input:this.input,groupIdx:this.groupIdx}}restoreState(e){this.idx=e.idx,this.input=e.input,this.groupIdx=e.groupIdx}pattern(e){this.idx=0,this.input=e,this.groupIdx=0,this.consumeChar("/");let r=this.disjunction();this.consumeChar("/");let n={type:"Flags",loc:{begin:this.idx,end:e.length},global:!1,ignoreCase:!1,multiLine:!1,unicode:!1,sticky:!1};for(;this.isRegExpFlag();)switch(this.popChar()){case"g":ng(n,"global");break;case"i":ng(n,"ignoreCase");break;case"m":ng(n,"multiLine");break;case"u":ng(n,"unicode");break;case"y":ng(n,"sticky");break}if(this.idx!==this.input.length)throw Error("Redundant input: "+this.input.substring(this.idx));return{type:"Pattern",flags:n,value:r,loc:this.loc(0)}}disjunction(){let e=[],r=this.idx;for(e.push(this.alternative());this.peekChar()==="|";)this.consumeChar("|"),e.push(this.alternative());return{type:"Disjunction",value:e,loc:this.loc(r)}}alternative(){let e=[],r=this.idx;for(;this.isTerm();)e.push(this.term());return{type:"Alternative",value:e,loc:this.loc(r)}}term(){return this.isAssertion()?this.assertion():this.atom()}assertion(){let e=this.idx;switch(this.popChar()){case"^":return{type:"StartAnchor",loc:this.loc(e)};case" $ ":return{type:"EndAnchor",loc:this.loc(e)};case" \\ ":switch(this.popChar()){case"b":return{type:"WordBoundary",loc:this.loc(e)};case"B":return{type:"NonWordBoundary",loc:this.loc(e)}}throw Error("Invalid Assertion Escape");case"(":this.consumeChar("?");let r;switch(this.popChar()){case"=":r="Lookahead";break;case"!":r="NegativeLookahead";break}i0(r);let n=this.disjunction();return this.consumeChar(")"),{type:r,value:n,loc:this.loc(e)}}return c2()}quantifier(e=!1){let r,n=this.idx;switch(this.popChar()){case"*":r={atLeast:0,atMost:1/0};break;case"+":r={atLeast:1,atMost:1/0};break;case"?":r={atLeast:0,atMost:1};break;case"{":let i=this.integerIncludingZero();switch(this.popChar()){case"}":r={atLeast:i,atMost:i};break;case",":let a;this.isDigit()?(a=this.integerIncludingZero(),r={atLeast:i,atMost:a}):r={atLeast:i,atMost:1/0},this.consumeChar("}");break}if(e===!0&&r===void 0)return;i0(r);break}if(!(e===!0&&r===void 0)&&i0(r))return this.peekChar(0)==="?"?(this.consumeChar("?"),r.greedy=!1):r.greedy=!0,r.type="Quantifier",r.loc=this.loc(n),r}atom(){let e,r=this.idx;switch(this.peekChar()){case".":e=this.dotAll();break;case" \\ ":e=this.atomEscape();break;case"[":e=this.characterClass();break;case"(":e=this.group();break}return e===void 0&&this.isPatternCharacter()&&(e=this.patternCharacter()),i0(e)?(e.loc=this.loc(r),this.isQuantifier()&&(e.quantifier=this.quantifier()),e):c2()}dotAll(){return this.consumeChar("."),{type:"Set",complement:!0,value:[ar( `
` ),ar(" \r "),ar(" \u 2028"),ar(" \u 2029")]}}atomEscape(){switch(this.consumeChar(" \\ "),this.peekChar()){case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":return this.decimalEscapeAtom();case"d":case"D":case"s":case"S":case"w":case"W":return this.characterClassEscape();case"f":case"n":case"r":case"t":case"v":return this.controlEscapeAtom();case"c":return this.controlLetterEscapeAtom();case"0":return this.nulCharacterAtom();case"x":return this.hexEscapeSequenceAtom();case"u":return this.regExpUnicodeEscapeSequenceAtom();default:return this.identityEscapeAtom()}}decimalEscapeAtom(){return{type:"GroupBackReference",value:this.positiveInteger()}}characterClassEscape(){let e,r=!1;switch(this.popChar()){case"d":e=u2;break;case"D":e=u2,r=!0;break;case"s":e=YN;break;case"S":e=YN,r=!0;break;case"w":e=h2;break;case"W":e=h2,r=!0;break}return i0(e)?{type:"Set",value:e,complement:r}:c2()}controlEscapeAtom(){let e;switch(this.popChar()){case"f":e=ar(" \f ");break;case"n":e=ar( `
` );break;case"r":e=ar(" \r ");break;case"t":e=ar(" ");break;case"v":e=ar(" \v ");break}return i0(e)?{type:"Character",value:e}:c2()}controlLetterEscapeAtom(){this.consumeChar("c");let e=this.popChar();if(/[a-zA-Z]/.test(e)===!1)throw Error("Invalid ");return{type:"Character",value:e.toUpperCase().charCodeAt(0)-64}}nulCharacterAtom(){return this.consumeChar("0"),{type:"Character",value:ar(" \0 ")}}hexEscapeSequenceAtom(){return this.consumeChar("x"),this.parseHexDigits(2)}regExpUnicodeEscapeSequenceAtom(){return this.consumeChar("u"),this.parseHexDigits(4)}identityEscapeAtom(){let e=this.popChar();return{type:"Character",value:ar(e)}}classPatternCharacterAtom(){switch(this.peekChar()){case `
` :case" \r ":case" \u 2028":case" \u 2029":case" \\ ":case"]":throw Error("TBD");default:let e=this.popChar();return{type:"Character",value:ar(e)}}}characterClass(){let e=[],r=!1;for(this.consumeChar("["),this.peekChar(0)==="^"&&(this.consumeChar("^"),r=!0);this.isClassAtom();){let n=this.classAtom(),i=n.type==="Character";if(HN(n)&&this.isRangeDash()){this.consumeChar("-");let a=this.classAtom(),s=a.type==="Character";if(HN(a)){if(a.value<n.value)throw Error("Range out of order in character class");e.push({from:n.value,to:a.value})}else GT(n.value,e),e.push(ar("-")),GT(a.value,e)}else GT(n.value,e)}return this.consumeChar("]"),{type:"Set",complement:r,value:e}}classAtom(){switch(this.peekChar()){case"]":case `
` :case" \r ":case" \u 2028":case" \u 2029":throw Error("TBD");case" \\ ":return this.classEscape();default:return this.classPatternCharacterAtom()}}classEscape(){switch(this.consumeChar(" \\ "),this.peekChar()){case"b":return this.consumeChar("b"),{type:"Character",value:ar(" \b ")};case"d":case"D":case"s":case"S":case"w":case"W":return this.characterClassEscape();case"f":case"n":case"r":case"t":case"v":return this.controlEscapeAtom();case"c":return this.controlLetterEscapeAtom();case"0":return this.nulCharacterAtom();case"x":return this.hexEscapeSequenceAtom();case"u":return this.regExpUnicodeEscapeSequenceAtom();default:return this.identityEscapeAtom()}}group(){let e=!0;switch(this.consumeChar("("),this.peekChar(0)){case"?":this.consumeChar("?"),this.consumeChar(":"),e=!1;break;default:this.groupIdx++;break}let r=this.disjunction();this.consumeChar(")");let n={type:"Group",capturing:e,value:r};return e&&(n.idx=this.groupIdx),n}positiveInteger(){let e=this.popChar();if(QPe.test(e)===!1)throw Error("Expecting a positive integer");for(; $ T.test(this.peekChar(0));)e+=this.popChar();return parseInt(e,10)}integerIncludingZero(){let e=this.popChar();if( $ T.test(e)===!1)throw Error("Expecting an integer");for(; $ T.test(this.peekChar(0));)e+=this.popChar();return parseInt(e,10)}patternCharacter(){let e=this.popChar();switch(e){case `
` :case" \r ":case" \u 2028":case" \u 2029":case"^":case" $ ":case" \\ ":case".":case"*":case"+":case"?":case"(":case")":case"[":case"|":throw Error("TBD");default:return{type:"Character",value:ar(e)}}}isRegExpFlag(){switch(this.peekChar(0)){case"g":case"i":case"m":case"u":case"y":return!0;default:return!1}}isRangeDash(){return this.peekChar()==="-"&&this.isClassAtom(1)}isDigit(){return $ T.test(this.peekChar(0))}isClassAtom(e=0){switch(this.peekChar(e)){case"]":case `
` :case" \r ":case" \u 2028":case" \u 2029":return!1;default:return!0}}isTerm(){return this.isAtom()||this.isAssertion()}isAtom(){if(this.isPatternCharacter())return!0;switch(this.peekChar(0)){case".":case" \\ ":case"[":case"(":return!0;default:return!1}}isAssertion(){switch(this.peekChar(0)){case"^":case" $ ":return!0;case" \\ ":switch(this.peekChar(1)){case"b":case"B":return!0;default:return!1}case"(":return this.peekChar(1)==="?"&&(this.peekChar(2)==="="||this.peekChar(2)==="!");default:return!1}}isQuantifier(){let e=this.saveState();try{return this.quantifier(!0)!==void 0}catch{return!1}finally{this.restoreState(e)}}isPatternCharacter(){switch(this.peekChar()){case"^":case" $ ":case" \\ ":case".":case"*":case"+":case"?":case"(":case")":case"[":case"|":case"/":case `
` :case" \r ":case" \u 2028":case" \u 2029":return!1;default:return!0}}parseHexDigits(e){let r="";for(let i=0;i<e;i++){let a=this.popChar();if(KPe.test(a)===!1)throw Error("Expecting a HexDecimal digits");r+=a}return{type:"Character",value:parseInt(r,16)}}peekChar(e=0){return this.input[this.idx+e]}popChar(){let e=this.peekChar(0);return this.consumeChar(void 0),e}consumeChar(e){if(e!==void 0&&this.input[this.idx]!==e)throw Error("Expected: '"+e+"' but found: '"+this.input[this.idx]+"' at offset: "+this.idx);if(this.idx>=this.input.length)throw Error("Unexpected end of input");this.idx++}loc(e){return{begin:e,end:this.idx}}}});var zc,Gae=M(()=>{"use strict";zc=class{static{o(this,"BaseRegExpVisitor")}visitChildren(e){for(let r in e){let n=e[r];e.hasOwnProperty(r)&&(n.type!==void 0?this.visit(n):Array.isArray(n)&&n.forEach(i=>{this.visit(i)},this))}}visit(e){switch(e.type){case"Pattern":this.visitPattern(e);break;case"Flags":this.visitFlags(e);break;case"Disjunction":this.visitDisjunction(e);break;case"Alternative":this.visitAlternative(e);break;case"StartAnchor":this.visitStartAnchor(e);break;case"EndAnchor":this.visitEndAnchor(e);break;case"WordBoundary":this.visitWordBoundary(e);break;case"NonWordBoundary":this.visitNonWordBoundary(e);break;case"Lookahead":this.visitLookahead(e);break;case"NegativeLookahead":this.visitNegativeLookahead(e);break;case"Character":this.visitCharacter(e);break;case"Set":this.visitSet(e);break;case"Group":this.visitGroup(e);break;case"GroupBackReference":this.visitGroupBackReference(e);break;case"Quantifier":this.visitQuantifier(e);break}this.visitChildren(e)}visitPattern(e){}visitFlags(e){}visitDisjunction(e){}visitAlternative(e){}visitStartAnchor(e){}visitEndAnchor(e){}visitWordBoundary(e){}visitNonWordBoundary(e){}visitLookahead(e){}visitNegativeLookahead(e){}visitCharacter(e){}visitSet(e){}visitGroup(e){}visitGroupBackReference(e){}visitQuantifier(e){}}});var f2=M(()=>{"use strict";zae();Gae()});var UT={};vr(UT,{NEWLINE_REGEXP:()=>XN,escapeRegExp:()=>o0,getCaseInsensitivePattern:()=>KN,getTerminalParts:()=>ZPe,isMultilineComment:()=>jN,isWhitespace:()=>VT,partialMatches:()=>QN,partialRegExp:()=>Vae});function ZPe(t){try{typeof t!="string"&&(t=t.source),t= ` / $ { t } / ` ;let e= $ ae.pattern(t),r=[];for(let n of e.value.value)s0.reset(t),s0.visit(n),r.push({start:s0.startRegexp,end:s0.endRegex});return r}catch{return[]}}function jN(t){try{return typeof t=="string"&&(t=new RegExp(t)),t=t.toString(),s0.reset(t),s0.visit( $ ae.pattern(t)),s0.multiline}catch{return!1}}function VT(t){return(typeof t=="string"?new RegExp(t):t).test(" ")}function o0(t){return t.replace(/[.*+?^ ${ } ()|[ \] \\ ]/g," \\ $ &")}function KN(t){return Array.prototype.map.call(t,e=>/ \w /.test(e)? ` [ $ { e . toLowerCase ( ) } $ { e . toUpperCase ( ) } ] ` :o0(e)).join("")}function QN(t,e){let r=Vae(t),n=e.match(r);return!!n&&n[0].length>0}function Vae(t){typeof t=="string"&&(t=new RegExp(t));let e=t,r=t.source,n=0;function i(){let a="",s;function l(h){a+=r.substr(n,h),n+=h}o(l,"appendRaw");function u(h){a+="(?:"+r.substr(n,h)+"| $ )",n+=h}for(o(u,"appendOptional");n<r.length;)switch(r[n]){case" \\ ":switch(r[n+1]){case"c":u(3);break;case"x":u(4);break;case"u":e.unicode?r[n+2]==="{"?u(r.indexOf("}",n)-n+1):u(6):u(2);break;case"p":case"P":e.unicode?u(r.indexOf("}",n)-n+1):u(2);break;case"k":u(r.indexOf(">",n)-n+1);break;default:u(2);break}break;case"[":s=/ \[ (?: \\ .|.)*? \] /g,s.lastIndex=n,s=s.exec(r)||[],u(s[0].length);break;case"|":case"^":case" $ ":case"*":case"+":case"?":l(1);break;case"{":s=/ \{ \d +,? \d * \} /g,s.lastIndex=n,s=s.exec(r),s?l(s[0].length):u(1);break;case"(":if(r[n+1]==="?")switch(r[n+2]){case":":a+="(?:",n+=3,a+=i()+"| $ )";break;case"=":a+="(?=",n+=3,a+=i()+")";break;case"!":s=n,n+=3,i(),a+=r.substr(s,n-s);break;case"<":switch(r[n+3]){case"=":case"!":s=n,n+=4,i(),a+=r.substr(s,n-s);break;default:l(r.indexOf(">",n)-n+1),a+=i()+"| $ )";break}break}else l(1),a+=i()+"| $ )";break;case")":return++n,a;default:u(1);break}return a}return o(i,"process"),new RegExp(i(),t.flags)}var XN, $ ae,qN,s0,ig=M(()=>{"use strict";f2();XN=/ \r ? \n /gm, $ ae=new a0,qN=class extends zc{static{o(thi
` &&(this.multiline=!0),e.quantifier)this.isStarting=!1,this.endRegexpStack=[];else{let n=o0(r);this.endRegexpStack.push(n),this.isStarting&&(this.startRegexp+=n)}}visitSet(e){if(!this.multiline){let r=this.regex.substring(e.loc.begin,e.loc.end),n=new RegExp(r);this.multiline=!! `
` .match(n)}if(e.quantifier)this.isStarting=!1,this.endRegexpStack=[];else{let r=this.regex.substring(e.loc.begin,e.loc.end);this.endRegexpStack.push(r),this.isStarting&&(this.startRegexp+=r)}}visitChildren(e){e.type==="Group"&&e.quantifier||super.visitChildren(e)}},s0=new qN;o(ZPe,"getTerminalParts");o(jN,"isMultilineComment");o(VT,"isWhitespace");o(o0,"escapeRegExp");o(KN,"getCaseInsensitivePattern");o(QN,"partialMatches");o(Vae,"partialRegExp")});var WT={};vr(WT,{findAssignment:()=>sR,findNameAssignment:()=>HT,findNodeForKeyword:()=>iR,findNodeForProperty:()=>p2,findNodesForKeyword:()=>JPe,findNodesForKeywordInternal:()=>aR,findNodesForProperty:()=>rR,getActionAtElement:()=>qae,getActionType:()=>jae,getAllReachableRules:()=>d2,getCrossReferenceTerminal:()=>eR,getEntryRule:()=>Uae,getExplicitRuleType:()=>oR,getHiddenRules:()=>Hae,getRuleType:()=>lR,getTypeName:()=>l0,isArrayCardinality:()=>tBe,isArrayOperator:()=>rBe,isCommentTerminal:()=>tR,isDataType:()=>nBe,isDataTypeRule:()=>m2,isOptionalCardinality:()=>eBe,terminalRegex:()=>ag});function Uae(t){return t.rules.find(e=>Ga(e)&&e.entry)}function Hae(t){return t.rules.filter(e=>Jo(e)&&e.hidden)}function d2(t,e){let r=new Set,n=Uae(t);if(!n)return new Set(t.rules);let i=[n].concat(Hae(t));for(let s of i)Wae(s,r,e);let a=new Set;for(let s of t.rules)(r.has(s.name)||Jo(s)&&s.hidden)&&a.add(s);return a}function Wae(t,e,r){e.add(t.name),Fc(t).forEach(n=>{if( $ l(n)||r&&PT(n)){let i=n.rule.ref;i&&!e.has(i.name)&&Wae(i,e,r)}})}function eR(t){if(t.terminal)return t.terminal;if(t.type.ref){let e=HT(t.type.ref);return e?.terminal}}function tR(t){return t.hidden&&!ag(t).test(" ")}function rR(t,e){return!t||!e?[]:nR(t,e,t.astNode,!0)}function p2(t,e,r){if(!t||!e)return;let n=nR(t,e,t.astNode,!0);if(n.length!==0)return r!==void 0?r=Math.max(0,Math.min(r,n.length-1)):r=0,n[r]}function nR(t,e,r,n){if(!n){let i=n0(t.grammarSource,Gl);if(i&&i.feature===e)return[t]}return ho(t)&&t.astNode===r?t.content.flatMap(i=>nR(i,e,r,!1)):[]}function JPe(t,e){return t?aR(t,e,t?.astNode):[]}function iR(t,e,r){if(!t)return;let n=aR(t,e,t?.astNode);if(n.length!==0)return r!==void 0?r=Math.max(0,Math.min(r,n.length-1)):r=0,n[r]}function aR(t,e,r){if(t.astNode!==r)return[];if(el(t.grammarSource)&&t.grammarSource.value===e)return[t];let n=Jd(t).iterator(),i,a=[];do if(i=n.next(),!i.done){let s=i.value;s.astNode===r?el(s.grammarSource)&&s.grammarSource.value===e&&a.push(s):n.prune()}while(!i.done);return a}function sR(t){var e;let r=t.astNode;for(;r===((e=t.container)===null||e===void 0?void 0:e.astNode);){let n=n0(t.grammarSource,Gl);if(n)return n;t=t.container}}function HT(t){let e=t;return RT(e)&&(Vu(e. $ container)?e=e. $ container. $ container:Ga(e. $ container)?e=e. $ container:uf(e. $ container)),Yae(t,e,new Map)}function Yae(t,e,r){var n;function i(a,s){let l;return n0(a,Gl)||(l=Yae(s,s,r)),r.set(t,l),l}if(o(i,"go"),r.has(t))return r.get(t);r.set(t,void 0);for(let a of Fc(e)){if(Gl(a)&&a.feature.toLowerCase()==="name")return r.set(t,a),a;if( $ l(a)&&Ga(a.rule.ref))return i(a,a.rule.ref);if(IT(a)&&(!((n=a.typeRef)===null||n===void 0)&&n.ref))return i(a,a.typeRef.ref)}}function qae(t){let e=t. $ container;if(hf(e)){let r=e.elements,n=r.indexOf(t);for(let i=n-1;i>=0;i--){let a=r[i];if(Vu(a))return a;{let s=Fc(r[i]).find(Vu);if(s)return s}}}if(a2(e))return qae(e)}function eBe(t,e){return t==="?"||t==="*"||hf(e)&&!!e.guardCondition}function tBe(t){return t==="*"||t==="+"}function rBe(t){return t==="+="}function m2(t){return Xae(t,new Set)}function Xae(t,e){if(e.has(t))return!0;e.add(t);for(let r of Fc(t))if( $ l(r)){if(!r.rule.ref||Ga(r.rule.ref)&&!Xae(r.rule.ref,e))return!1}else{if(Gl(r))return!1;if(Vu(r))return!1}return!!t.definition}function nBe(t){return JN(t.type,new Set)}function JN(t,e){if(e.has(t))return!0;if(e.add(t),WD(t))return!1;if(cN(t))return!1;if(mN(t))return t.types.every(r=>JN(r,e));if(IT(t)){if(t.primitiveType!==void 0)return!0;if(t.stringType!==void 0)return!0;if(t.typeRef!==void 0){let r=t.typeRef.ref;return s2(r)?JN(r.type,e):!1}else return!1}else return!1}function oR(t){if(t.inferredType)return t.inf
Complement Sets cannot be automatically optimized .
This will disable the lexer ' s first char optimizations .
See : https : //chevrotain.io/docs/guide/resolving_lexer_errors.html#COMPLEMENT for details.`);else{let n="";e&&(n=`
This will disable the lexer ' s first char optimizations .
See : https : //chevrotain.io/docs/guide/resolving_lexer_errors.html#REGEXP_PARSING for details.`),og(`${x2}
Failed parsing : < $ { t . toString ( ) } >
Using the @ chevrotain / regexp - to - ast library
Please open an issue at : https : //github.com/chevrotain/chevrotain/issues`+n)}}return[]}function vR(t,e,r){switch(t.type){case"Disjunction":for(let i=0;i<t.value.length;i++)vR(t.value[i],e,r);break;case"Alternative":let n=t.value;for(let i=0;i<n.length;i++){let a=n[i];switch(a.type){case"EndAnchor":case"GroupBackReference":case"Lookahead":case"NegativeLookahead":case"StartAnchor":case"WordBoundary":case"NonWordBoundary":continue}let s=a;switch(s.type){case"Character":ZT(s.value,e,r);break;case"Set":if(s.complement===!0)throw Error(sse);Se(s.value,u=>{if(typeof u=="number")ZT(u,e,r);else{let h=u;if(r===!0)for(let f=h.from;f<=h.to;f++)ZT(f,e,r);else{for(let f=h.from;f<=h.to&&f<hg;f++)ZT(f,e,r);if(h.to>=hg){let f=h.from>=hg?h.from:hg,d=h.to,p=Gc(f),m=Gc(d);for(let g=p;g<=m;g++)e[g]=g}}}});break;case"Group":vR(s.value,e,r);break;default:throw Error("Non Exhaustive Match")}let l=s.quantifier!==void 0&&s.quantifier.atLeast===0;if(s.type==="Group"&&xR(s)===!1||s.type!=="Group"&&l===!1)break}break;default:throw Error("non exhaustive match!")}return br(e)}function ZT(t,e,r){let n=Gc(t);e[n]=n,r===!0&&gBe(t,e)}function gBe(t,e){let r=String.fromCharCode(t),n=r.toUpperCase();if(n!==r){let i=Gc(n.charCodeAt(0));e[i]=i}else{let i=r.toLowerCase();if(i!==r){let a=Gc(i.charCodeAt(0));e[a]=a}}}function ase(t,e){return as(t.value,r=>{if(typeof r=="number")return Yn(e,r);{let n=r;return as(e,i=>n.from<=i&&i<=n.to)!==void 0}})}function xR(t){let e=t.quantifier;return e&&e.atLeast===0?!0:t.value?Dt(t.value)?za(t.value,xR):xR(t.value):!1}function JT(t,e){if(e instanceof RegExp){let r=ug(e),n=new bR(t);return n.visit(r),n.found}else return as(e,r=>Yn(t,r.charCodeAt(0)))!==void 0}var sse,x2,bR,lse=M(()=>{"use strict";f2();Ht();lg();QT();wR();sse="Complement Sets are not supported for first char optimization",x2=`Unable to use "first char" lexer optimizations:
` ;o(ose,"getOptimizedStartCodesIndices");o(vR,"firstCharOptimizedIndices");o(ZT,"addOptimizedIdxToResult");o(gBe,"handleIgnoreCase");o(ase,"findCode");o(xR,"isWholeOptional");bR=class extends zc{static{o(this,"CharCodeFinder")}constructor(e){super(),this.targetCharCodes=e,this.found=!1}visitChildren(e){if(this.found!==!0){switch(e.type){case"Lookahead":this.visitLookahead(e);return;case"NegativeLookahead":this.visitNegativeLookahead(e);return}super.visitChildren(e)}}visitCharacter(e){Yn(this.targetCharCodes,e.value)&&(this.found=!0)}visitSet(e){e.complement?ase(e,this.targetCharCodes)===void 0&&(this.found=!0):ase(e,this.targetCharCodes)!==void 0&&(this.found=!0)}};o(JT,"canMatchCharCode")});function hse(t,e){e=rf(e,{useSticky:kR,debug:!1,safeMode:!1,positionTracking:"full",lineTerminatorCharacters:[" \r ", `
` ],tracer:o((b,w)=>w(),"tracer")});let r=e.tracer;r("initCharCodeToOptimizedIndexMap",()=>{IBe()});let n;r("Reject Lexer.NA",()=>{n=af(t,b=>b[h0]===ci.NA)});let i=!1,a;r("Transform Patterns",()=>{i=!1,a=Qe(n,b=>{let w=b[h0];if(Xo(w)){let _=w.source;return _.length===1&&_!=="^"&&_!==" $ "&&_!=="."&&!w.ignoreCase?_:_.length===2&&_[0]===" \\ "&&!Yn(["d","D","s","S","t","r","n","t","0","c","b","B","f","v","w","W"],_[1])?_[1]:e.useSticky?use(w):cse(w)}else{if(_i(w))return i=!0,{exec:w};if(typeof w=="object")return i=!0,w;if(typeof w=="string"){if(w.length===1)return w;{let _=w.replace(/[ \\ ^ $ .*+?()[ \] {}|]/g," \\ $ &"),T=new RegExp(_);return e.useSticky?use(T):cse(T)}}else throw Error("non exhaustive match")}})});let s,l,u,h,f;r("misc mapping",()=>{s=Qe(n,b=>b.tokenTypeIdx),l=Qe(n,b=>{let w=b.GROUP;if(w!==ci.SKIPPED){if(bi(w))return w;if(dr(w))return!1;throw Error("non exhaustive match")}}),u=Qe(n,b=>{let w=b.LONGER_ALT;if(w)return Dt(w)?Qe(w,T=>oT(n,T)):[oT(n,w)]}),h=Qe(n,b=>b.PUSH_MODE),f=Qe(n,b=>Nt(b,"POP_MODE"))});let d;r("Line Terminator Handling",()=>{let b=xse(e.lineTerminatorCharacters);d=Qe(n,w=>!1),e.positionTracking!=="onlyOffset"&&(d=Qe(n,w=>Nt(w,"LINE_BREAKS")?!!w.LINE_BREAKS:vse(w,b)===!1&&JT(b,w.PATTERN)))});let p,m,g,y;r("Misc Mapping #2",()=>{p=Qe(n,gse),m=Qe(a,RBe),g=qr(n,(b,w)=>{let _=w.GROUP;return bi(_)&&_!==ci.SKIPPED&&(b[_]=[]),b},{}),y=Qe(a,(b,w)=>({pattern:a[w],longerAlt:u[w],canLineTerminator:d[w],isCustom:p[w],short:m[w],group:l[w],push:h[w],pop:f[w],tokenTypeIdx:s[w],tokenType:n[w]}))});let v=!0,x=[];return e.safeMode||r("First Char Optimization",()=>{x=qr(n,(b,w,_)=>{if(typeof w.PATTERN=="string"){let T=w.PATTERN.charCodeAt(0),E=Gc(T);TR(b,E,y[_])}else if(Dt(w.START_CHARS_HINT)){let T;Se(w.START_CHARS_HINT,E=>{let L=typeof E=="string"?E.charCodeAt(0):E,S=Gc(L);T!==S&&(T=S,TR(b,S,y[_]))})}else if(Xo(w.PATTERN))if(w.PATTERN.unicode)v=!1,e.ensureOptimizations&&og( ` $ { x2 } Unable to analyze < $ { w . PATTERN . toString ( ) } > pattern .
The regexp unicode flag is not currently supported by the regexp - to - ast library .
This will disable the lexer ' s first char optimizations .
For details See : https : //chevrotain.io/docs/guide/resolving_lexer_errors.html#UNICODE_OPTIMIZE`);else{let T=ose(w.PATTERN,e.ensureOptimizations);cr(T)&&(v=!1),Se(T,E=>{TR(b,E,y[_])})}else e.ensureOptimizations&&og(`${x2} TokenType: <${w.name}> is using a custom token pattern without providing <start_chars_hint> parameter.
This will disable the lexer ' s first char optimizations .
For details See : https : //chevrotain.io/docs/guide/resolving_lexer_errors.html#CUSTOM_OPTIMIZE`),v=!1;return b},[])}),{emptyGroups:g,patternIdxToConfig:y,charCodeToPatternIdxToConfig:x,hasCustom:i,canBeOptimized:v}}function fse(t,e){let r=[],n=vBe(t);r=r.concat(n.errors);let i=xBe(n.valid),a=i.valid;return r=r.concat(i.errors),r=r.concat(yBe(a)),r=r.concat(ABe(a)),r=r.concat(_Be(a,e)),r=r.concat(LBe(a)),r}function yBe(t){let e=[],r=Yr(t,n=>Xo(n[h0]));return e=e.concat(wBe(r)),e=e.concat(EBe(r)),e=e.concat(SBe(r)),e=e.concat(CBe(r)),e=e.concat(TBe(r)),e}function vBe(t){let e=Yr(t,i=>!Nt(i,h0)),r=Qe(e,i=>({message:"Token Type: ->"+i.name+"<- missing static 'PATTERN' property",type:qn.MISSING_PATTERN,tokenTypes:[i]})),n=nf(t,e);return{errors:r,valid:n}}function xBe(t){let e=Yr(t,i=>{let a=i[h0];return!Xo(a)&&!_i(a)&&!Nt(a,"exec")&&!bi(a)}),r=Qe(e,i=>({message:"Token Type: ->"+i.name+"<- static 'PATTERN' can only be a RegExp, a Function matching the {CustomPatternMatcherFunc} type or an Object matching the {ICustomPattern} interface.",type:qn.INVALID_PATTERN,tokenTypes:[i]})),n=nf(t,e);return{errors:r,valid:n}}function wBe(t){class e extends zc{static{o(this,"EndAnchorFinder")}constructor(){super(...arguments),this.found=!1}visitEndAnchor(a){this.found=!0}}let r=Yr(t,i=>{let a=i.PATTERN;try{let s=ug(a),l=new e;return l.visit(s),l.found}catch{return bBe.test(a.source)}});return Qe(r,i=>({message:`Unexpected RegExp Anchor Error:
Token Type : - > ` +i.name+ ` < - static 'PATTERN' cannot contain end of input anchor '$'
See chevrotain . io / docs / guide / resolving _lexer _errors . html # ANCHORS for details . ` ,type:qn.EOI_ANCHOR_FOUND,tokenTypes:[i]}))}function TBe(t){let e=Yr(t,n=>n.PATTERN.test(""));return Qe(e,n=>({message:"Token Type: ->"+n.name+"<- static 'PATTERN' must not match an empty string",type:qn.EMPTY_MATCH_PATTERN,tokenTypes:[n]}))}function EBe(t){class e extends zc{static{o(this,"StartAnchorFinder")}constructor(){super(...arguments),this.found=!1}visitStartAnchor(a){this.found=!0}}let r=Yr(t,i=>{let a=i.PATTERN;try{let s=ug(a),l=new e;return l.visit(s),l.found}catch{return kBe.test(a.source)}});return Qe(r,i=>({message: ` Unexpected RegExp Anchor Error :
Token Type : - > ` +i.name+ ` < - static 'PATTERN' cannot contain start of input anchor '^'
See https : //chevrotain.io/docs/guide/resolving_lexer_errors.html#ANCHORS for details.`,type:qn.SOI_ANCHOR_FOUND,tokenTypes:[i]}))}function SBe(t){let e=Yr(t,n=>{let i=n[h0];return i instanceof RegExp&&(i.multiline||i.global)});return Qe(e,n=>({message:"Token Type: ->"+n.name+"<- static 'PATTERN' may NOT contain global('g') or multiline('m')",type:qn.UNSUPPORTED_FLAGS_FOUND,tokenTypes:[n]}))}function CBe(t){let e=[],r=Qe(t,a=>qr(t,(s,l)=>(a.PATTERN.source===l.PATTERN.source&&!Yn(e,l)&&l.PATTERN!==ci.NA&&(e.push(l),s.push(l)),s),[]));r=Rc(r);let n=Yr(r,a=>a.length>1);return Qe(n,a=>{let s=Qe(a,u=>u.name);return{message:`The same RegExp pattern ->${sa(a).PATTERN}<-has been used in all of the following Token Types: ${s.join(", ")} <-`,type:qn.DUPLICATE_PATTERNS_FOUND,tokenTypes:a}})}function ABe(t){let e=Yr(t,n=>{if(!Nt(n,"GROUP"))return!1;let i=n.GROUP;return i!==ci.SKIPPED&&i!==ci.NA&&!bi(i)});return Qe(e,n=>({message:"Token Type: ->"+n.name+"<- static 'GROUP' can only be Lexer.SKIPPED/Lexer.NA/A String",type:qn.INVALID_GROUP_TYPE_FOUND,tokenTypes:[n]}))}function _Be(t,e){let r=Yr(t,i=>i.PUSH_MODE!==void 0&&!Yn(e,i.PUSH_MODE));return Qe(r,i=>({message:`Token Type: ->${i.name}<- static 'PUSH_MODE' value cannot refer to a Lexer Mode ->${i.PUSH_MODE}<-which does not exist`,type:qn.PUSH_MODE_DOES_NOT_EXIST,tokenTypes:[i]}))}function LBe(t){let e=[],r=qr(t,(n,i,a)=>{let s=i.PATTERN;return s===ci.NA||(bi(s)?n.push({str:s,idx:a,tokenType:i}):Xo(s)&&NBe(s)&&n.push({str:s.source,idx:a,tokenType:i})),n},[]);return Se(t,(n,i)=>{Se(r,({str:a,idx:s,tokenType:l})=>{if(i<s&&DBe(a,n.PATTERN)){let u=`Token: ->${l.name}<- can never be matched.
Because it appears AFTER the Token Type - > $ { n . name } < - in the lexer ' s definition .
See https : //chevrotain.io/docs/guide/resolving_lexer_errors.html#UNREACHABLE`;e.push({message:u,type:qn.UNREACHABLE_PATTERN,tokenTypes:[n,l]})}})}),e}function DBe(t,e){if(Xo(e)){let r=e.exec(t);return r!==null&&r.index===0}else{if(_i(e))return e(t,0,[],{});if(Nt(e,"exec"))return e.exec(t,0,[],{});if(typeof e=="string")return e===t;throw Error("non exhaustive match")}}function NBe(t){return as([".","\\","[","]","|","^","$","(",")","?","*","+","{"],r=>t.source.indexOf(r)!==-1)===void 0}function cse(t){let e=t.ignoreCase?"i":"";return new RegExp(`^(?:${t.source})`,e)}function use(t){let e=t.ignoreCase?"iy":"y";return new RegExp(`${t.source}`,e)}function dse(t,e,r){let n=[];return Nt(t,fg)||n.push({message:"A MultiMode Lexer cannot be initialized without a <"+fg+`> property in its definition
` ,type:qn.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE}),Nt(t,ek)||n.push({message:"A MultiMode Lexer cannot be initialized without a <"+ek+ ` > property in its definition
` ,type:qn.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY}),Nt(t,ek)&&Nt(t,fg)&&!Nt(t.modes,t.defaultMode)&&n.push({message: ` A MultiMode Lexer cannot be initialized with a $ { fg } : < $ { t . defaultMode } > which does not exist
` ,type:qn.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST}),Nt(t,ek)&&Se(t.modes,(i,a)=>{Se(i,(s,l)=>{if(dr(s))n.push({message: ` A Lexer cannot be initialized using an undefined Token Type . Mode : < $ { a } > at index : < $ { l } >
` ,type:qn.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED});else if(Nt(s,"LONGER_ALT")){let u=Dt(s.LONGER_ALT)?s.LONGER_ALT:[s.LONGER_ALT];Se(u,h=>{!dr(h)&&!Yn(i,h)&&n.push({message: ` A MultiMode Lexer cannot be initialized with a longer _alt < $ { h . name } > on token < $ { s . name } > outside of mode < $ { a } >
` ,type:qn.MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE})})}})}),n}function pse(t,e,r){let n=[],i=!1,a=Rc(Wr(br(t.modes))),s=af(a,u=>u[h0]===ci.NA),l=xse(r);return e&&Se(s,u=>{let h=vse(u,l);if(h!==!1){let d={message:MBe(u,h),type:h.issue,tokenType:u};n.push(d)}else Nt(u,"LINE_BREAKS")?u.LINE_BREAKS===!0&&(i=!0):JT(l,u.PATTERN)&&(i=!0)}),e&&!i&&n.push({message: ` Warning : No LINE _BREAKS Found .
This Lexer has been defined to track line and column information ,
But none of the Token Types can be identified as matching a line terminator .
See https : //chevrotain.io/docs/guide/resolving_lexer_errors.html#LINE_BREAKS
for details . ` ,type:qn.NO_LINE_BREAKS_FLAGS}),n}function mse(t){let e={},r=Gr(t);return Se(r,n=>{let i=t[n];if(Dt(i))e[n]=[];else throw Error("non exhaustive match")}),e}function gse(t){let e=t.PATTERN;if(Xo(e))return!1;if(_i(e))return!0;if(Nt(e,"exec"))return!0;if(bi(e))return!1;throw Error("non exhaustive match")}function RBe(t){return bi(t)&&t.length===1?t.charCodeAt(0):!1}function vse(t,e){if(Nt(t,"LINE_BREAKS"))return!1;if(Xo(t.PATTERN)){try{JT(e,t.PATTERN)}catch(r){return{issue:qn.IDENTIFY_TERMINATOR,errMsg:r.message}}return!1}else{if(bi(t.PATTERN))return!1;if(gse(t))return{issue:qn.CUSTOM_LINE_BREAK};throw Error("non exhaustive match")}}function MBe(t,e){if(e.issue===qn.IDENTIFY_TERMINATOR)return ` Warning : unable to identify line terminator usage in pattern .
The problem is in the < $ { t . name } > Token Type
Root cause : $ { e . errMsg } .
For details See : https : //chevrotain.io/docs/guide/resolving_lexer_errors.html#IDENTIFY_TERMINATOR`;if(e.issue===qn.CUSTOM_LINE_BREAK)return`Warning: A Custom Token Pattern should specify the <line_breaks> option.
The problem is in the < $ { t . name } > Token Type
For details See : https : //chevrotain.io/docs/guide/resolving_lexer_errors.html#CUSTOM_LINE_BREAK`;throw Error("non exhaustive match")}function xse(t){return Qe(t,r=>bi(r)?r.charCodeAt(0):r)}function TR(t,e,r){t[e]===void 0?t[e]=[r]:t[e].push(r)}function Gc(t){return t<hg?t:tk[t]}function IBe(){if(cr(tk)){tk=new Array(65536);for(let t=0;t<65536;t++)tk[t]=t>255?255+~~(t/255):t}}var h0,fg,ek,kR,bBe,kBe,yse,hg,tk,wR=M(()=>{"use strict";f2();b2();Ht();lg();lse();QT();h0="PATTERN",fg="defaultMode",ek="modes",kR=typeof new RegExp("(?:)").sticky=="boolean";o(hse,"analyzeTokenTypes");o(fse,"validatePatterns");o(yBe,"validateRegExpPattern");o(vBe,"findMissingPatterns");o(xBe,"findInvalidPatterns");bBe=/[^\\][$]/;o(wBe,"findEndOfInputAnchor");o(TBe,"findEmptyMatchRegExps");kBe=/[^\\[][\^]|^\^/;o(EBe,"findStartOfInputAnchor");o(SBe,"findUnsupportedFlags");o(CBe,"findDuplicatePatterns");o(ABe,"findInvalidGroupType");o(_Be,"findModesThatDoNotExist");o(LBe,"findUnreachablePatterns");o(DBe,"testTokenType");o(NBe,"noMetaChar");o(cse,"addStartOfInput");o(use,"addStickyFlag");o(dse,"performRuntimeChecks");o(pse,"performWarningRuntimeChecks");o(mse,"cloneEmptyGroups");o(gse,"isCustomPattern");o(RBe,"isShortPattern");yse={test:o(function(t){let e=t.length;for(let r=this.lastIndex;r<e;r++){let n=t.charCodeAt(r);if(n===10)return this.lastIndex=r+1,!0;if(n===13)return t.charCodeAt(r+1)===10?this.lastIndex=r+2:this.lastIndex=r+1,!0}return!1},"test"),lastIndex:0};o(vse,"checkLineBreaksIssues");o(MBe,"buildLineBreakIssueMessage");o(xse,"getCharCodes");o(TR,"addToMapOfArrays");hg=256,tk=[];o(Gc,"charCodeToOptimizedIndex");o(IBe,"initCharCodeToOptimizedIndexMap")});function Wu(t,e){let r=t.tokenTypeIdx;return r===e.tokenTypeIdx?!0:e.isParent===!0&&e.categoryMatchesMap[r]===!0}function dg(t,e){return t.tokenTypeIdx===e.tokenTypeIdx}function Yu(t){let e=OBe(t);PBe(e),FBe(e),BBe(e),Se(e,r=>{r.isParent=r.categoryMatches.length>0})}function OBe(t){let e=rn(t),r=t,n=!0;for(;n;){r=Rc(Wr(Qe(r,a=>a.CATEGORIES)));let i=nf(r,e);e=e.concat(i),cr(i)?n=!1:r=i}return e}function PBe(t){Se(t,e=>{ER(e)||(Tse[bse]=e,e.tokenTypeIdx=bse++),wse(e)&&!Dt(e.CATEGORIES)&&(e.CATEGORIES=[e.CATEGORIES]),wse(e)||(e.CATEGORIES=[]),zBe(e)||(e.categoryMatches=[]),GBe(e)||(e.categoryMatchesMap={})})}function BBe(t){Se(t,e=>{e.categoryMatches=[],Se(e.categoryMatchesMap,(r,n)=>{e.categoryMatches.push(Tse[n].tokenTypeIdx)})})}function FBe(t){Se(t,e=>{kse([],e)})}function kse(t,e){Se(t,r=>{e.categoryMatchesMap[r.tokenTypeIdx]=!0}),Se(e.CATEGORIES,r=>{let n=t.concat(e);Yn(n,r)||kse(n,r)})}function ER(t){return Nt(t,"tokenTypeIdx")}function wse(t){return Nt(t,"CATEGORIES")}function zBe(t){return Nt(t,"categoryMatches")}function GBe(t){return Nt(t,"categoryMatchesMap")}function Ese(t){return Nt(t,"tokenTypeIdx")}var bse,Tse,f0=M(()=>{"use strict";Ht();o(Wu,"tokenStructuredMatcher");o(dg,"tokenStructuredMatcherNoCategories");bse=1,Tse={};o(Yu,"augmentTokenTypes");o(OBe,"expandCategories");o(PBe,"assignTokenDefaultProps");o(BBe,"assignCategoriesTokensProp");o(FBe,"assignCategoriesMapProp");o(kse,"singleAssignCategoriesToksMap");o(ER,"hasShortKeyProperty");o(wse,"hasCategoriesProperty");o(zBe,"hasExtendingTokensTypesProperty");o(GBe,"hasExtendingTokensTypesMapProperty");o(Ese,"isTokenType")});var SR,CR=M(()=>{"use strict";SR={buildUnableToPopLexerModeMessage(t){return`Unable to pop Lexer Mode after encountering Token ->${t.image}<- The Mode Stack is empty`},buildUnexpectedCharactersMessage(t,e,r,n,i){return`unexpected character: ->${t.charAt(e)}<- at offset: ${e}, skipped ${r} characters.`}}});var qn,w2,ci,b2=M(()=>{"use strict";wR();Ht();lg();f0();CR();QT();(function(t){t[t.MISSING_PATTERN=0]="MISSING_PATTERN",t[t.INVALID_PATTERN=1]="INVALID_PATTERN",t[t.EOI_ANCHOR_FOUND=2]="EOI_ANCHOR_FOUND",t[t.UNSUPPORTED_FLAGS_FOUND=3]="UNSUPPORTED_FLAGS_FOUND",t[t.DUPLICATE_PATTERNS_FOUND=4]="DUPLICATE_PATTERNS_FOUND",t[t.INVALID_GROUP_TYPE_FOUND=5]="INVALID_GROUP_TYPE_FOUND",t[t.PUSH_MODE_DOES_NOT_EXIST=6]="PUSH_MODE_DOES_NOT_EXIST",t[t.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE=7]="MULTI_MODE_LEXER_WITHOU
` ," \r "],ensureOptimizations:!1,safeMode:!1,errorMessageProvider:SR,traceInitPerf:!1,skipValidations:!1,recoveryEnabled:!0};Object.freeze(w2);ci=class{static{o(this,"Lexer")}constructor(e,r=w2){if(this.lexerDefinition=e,this.lexerDefinitionErrors=[],this.lexerDefinitionWarning=[],this.patternIdxToConfig={},this.charCodeToPatternIdxToConfig={},this.modes=[],this.emptyGroups={},this.trackStartLines=!0,this.trackEndLines=!0,this.hasCustom=!1,this.canModeBeOptimized={},this.TRACE_INIT=(i,a)=>{if(this.traceInitPerf===!0){this.traceInitIndent++;let s=new Array(this.traceInitIndent+1).join(" ");this.traceInitIndent<this.traceInitMaxIdent&&console.log( ` $ { s } -- > < $ { i } > ` );let{time:l,value:u}=y2(a),h=l>10?console.warn:console.log;return this.traceInitIndent<this.traceInitMaxIdent&&h( ` $ { s } < -- < $ { i } > time : $ { l } ms ` ),this.traceInitIndent--,u}else return a()},typeof r=="boolean")throw Error( ` The second argument to the Lexer constructor is now an ILexerConfig Object .
a boolean 2 nd argument is no longer supported ` );this.config=va({},w2,r);let n=this.config.traceInitPerf;n===!0?(this.traceInitMaxIdent=1/0,this.traceInitPerf=!0):typeof n=="number"&&(this.traceInitMaxIdent=n,this.traceInitPerf=!0),this.traceInitIndent=-1,this.TRACE_INIT("Lexer Constructor",()=>{let i,a=!0;this.TRACE_INIT("Lexer Config handling",()=>{if(this.config.lineTerminatorsPattern===w2.lineTerminatorsPattern)this.config.lineTerminatorsPattern=yse;else if(this.config.lineTerminatorCharacters===w2.lineTerminatorCharacters)throw Error( ` Error : Missing < lineTerminatorCharacters > property on the Lexer config .
For details See : https : //chevrotain.io/docs/guide/resolving_lexer_errors.html#MISSING_LINE_TERM_CHARS`);if(r.safeMode&&r.ensureOptimizations)throw Error('"safeMode" and "ensureOptimizations" flags are mutually exclusive.');this.trackStartLines=/full|onlyStart/i.test(this.config.positionTracking),this.trackEndLines=/full/i.test(this.config.positionTracking),Dt(e)?i={modes:{defaultMode:rn(e)},defaultMode:fg}:(a=!1,i=rn(e))}),this.config.skipValidations===!1&&(this.TRACE_INIT("performRuntimeChecks",()=>{this.lexerDefinitionErrors=this.lexerDefinitionErrors.concat(dse(i,this.trackStartLines,this.config.lineTerminatorCharacters))}),this.TRACE_INIT("performWarningRuntimeChecks",()=>{this.lexerDefinitionWarning=this.lexerDefinitionWarning.concat(pse(i,this.trackStartLines,this.config.lineTerminatorCharacters))})),i.modes=i.modes?i.modes:{},Se(i.modes,(l,u)=>{i.modes[u]=af(l,h=>dr(h))});let s=Gr(i.modes);if(Se(i.modes,(l,u)=>{this.TRACE_INIT(`Mode: <${u}> processing`,()=>{if(this.modes.push(u),this.config.skipValidations===!1&&this.TRACE_INIT("validatePatterns",()=>{this.lexerDefinitionErrors=this.lexerDefinitionErrors.concat(fse(l,s))}),cr(this.lexerDefinitionErrors)){Yu(l);let h;this.TRACE_INIT("analyzeTokenTypes",()=>{h=hse(l,{lineTerminatorCharacters:this.config.lineTerminatorCharacters,positionTracking:r.positionTracking,ensureOptimizations:r.ensureOptimizations,safeMode:r.safeMode,tracer:this.TRACE_INIT})}),this.patternIdxToConfig[u]=h.patternIdxToConfig,this.charCodeToPatternIdxToConfig[u]=h.charCodeToPatternIdxToConfig,this.emptyGroups=va({},this.emptyGroups,h.emptyGroups),this.hasCustom=h.hasCustom||this.hasCustom,this.canModeBeOptimized[u]=h.canBeOptimized}})}),this.defaultMode=i.defaultMode,!cr(this.lexerDefinitionErrors)&&!this.config.deferDefinitionErrorsHandling){let u=Qe(this.lexerDefinitionErrors,h=>h.message).join(`-----------------------
` );throw new Error( ` Errors detected in definition of Lexer :
` +u)}Se(this.lexerDefinitionWarning,l=>{g2(l.message)}),this.TRACE_INIT("Choosing sub-methods implementations",()=>{if(kR?(this.chopInput=aa,this.match=this.matchWithTest):(this.updateLastIndex=ti,this.match=this.matchWithExec),a&&(this.handleModes=ti),this.trackStartLines===!1&&(this.computeNewColumn=aa),this.trackEndLines===!1&&(this.updateTokenEndLineColumnLocation=ti),/full/i.test(this.config.positionTracking))this.createTokenInstance=this.createFullToken;else if(/onlyStart/i.test(this.config.positionTracking))this.createTokenInstance=this.createStartOnlyToken;else if(/onlyOffset/i.test(this.config.positionTracking))this.createTokenInstance=this.createOffsetOnlyToken;else throw Error( ` Invalid < positionTracking > config option : "${this.config.positionTracking}" ` );this.hasCustom?(this.addToken=this.addTokenUsingPush,this.handlePayload=this.handlePayloadWithCustom):(this.addToken=this.addTokenUsingMemberAccess,this.handlePayload=this.handlePayloadNoCustom)}),this.TRACE_INIT("Failed Optimization Warnings",()=>{let l=qr(this.canModeBeOptimized,(u,h,f)=>(h===!1&&u.push(f),u),[]);if(r.ensureOptimizations&&!cr(l))throw Error( ` Lexer Modes : < $ { l . join ( ", " ) } > cannot be optimized .
Disable the "ensureOptimizations" lexer config flag to silently ignore this and run the lexer in an un - optimized mode .
Or inspect the console log for details on how to resolve these issues . ` )}),this.TRACE_INIT("clearRegExpParserCache",()=>{ise()}),this.TRACE_INIT("toFastProperties",()=>{v2(this)})})}tokenize(e,r=this.defaultMode){if(!cr(this.lexerDefinitionErrors)){let i=Qe(this.lexerDefinitionErrors,a=>a.message).join( ` -- -- -- -- -- -- -- -- -- -- -- -
` );throw new Error( ` Unable to Tokenize because Errors detected in definition of Lexer :
` +i)}return this.tokenizeInternal(e,r)}tokenizeInternal(e,r){let n,i,a,s,l,u,h,f,d,p,m,g,y,v,x,b,w=e,_=w.length,T=0,E=0,L=this.hasCustom?0:Math.floor(e.length/10),S=new Array(L),A=[],I=this.trackStartLines?1:void 0,D=this.trackStartLines?1:void 0,k=mse(this.emptyGroups),R=this.trackStartLines,C=this.config.lineTerminatorsPattern,O=0,N=[],P=[],F=[],B=[];Object.freeze(B);let G;function z(){return N}o(z,"getPossiblePatternsSlow");function W(ee){let J=Gc(ee),H=P[J];return H===void 0?B:H}o(W,"getPossiblePatternsOptimized");let Z=o(ee=>{if(F.length===1&&ee.tokenType.PUSH_MODE===void 0){let J=this.config.errorMessageProvider.buildUnableToPopLexerModeMessage(ee);A.push({offset:ee.startOffset,line:ee.startLine,column:ee.startColumn,length:ee.image.length,message:J})}else{F.pop();let J=xa(F);N=this.patternIdxToConfig[J],P=this.charCodeToPatternIdxToConfig[J],O=N.length;let H=this.canModeBeOptimized[J]&&this.config.safeMode===!1;P&&H?G=W:G=z}},"pop_mode");function j(ee){F.push(ee),P=this.charCodeToPatternIdxToConfig[ee],N=this.patternIdxToConfig[ee],O=N.length,O=N.length;let J=this.canModeBeOptimized[ee]&&this.config.safeMode===!1;P&&J?G=W:G=z}o(j,"push_mode"),j.call(this,r);let oe,K=this.config.recoveryEnabled;for(;T<_;){u=null;let ee=w.charCodeAt(T),J=G(ee),H=J.length;for(n=0;n<H;n++){oe=J[n];let q=oe.pattern;h=null;let Q=oe.short;if(Q!==!1?ee===Q&&(u=q):oe.isCustom===!0?(b=q.exec(w,T,S,k),b!==null?(u=b[0],b.payload!==void 0&&(h=b.payload)):u=null):(this.updateLastIndex(q,T),u=this.match(q,e,T)),u!==null){if(l=oe.longerAlt,l!==void 0){let ae=l.length;for(a=0;a<ae;a++){let ue=N[l[a]],ce=ue.pattern;if(f=null,ue.isCustom===!0?(b=ce.exec(w,T,S,k),b!==null?(s=b[0],b.payload!==void 0&&(f=b.payload)):s=null):(this.updateLastIndex(ce,T),s=this.match(ce,e,T)),s&&s.length>u.length){u=s,h=f,oe=ue;break}}}break}}if(u!==null){if(d=u.length,p=oe.group,p!==void 0&&(m=oe.tokenTypeIdx,g=this.createTokenInstance(u,T,m,oe.tokenType,I,D,d),this.handlePayload(g,h),p===!1?E=this.addToken(S,E,g):k[p].push(g)),e=this.chopInput(e,d),T=T+d,D=this.computeNewColumn(D,d),R===!0&&oe.canLineTerminator===!0){let q=0,Q,ae;C.lastIndex=0;do Q=C.test(u),Q===!0&&(ae=C.lastIndex-1,q++);while(Q===!0);q!==0&&(I=I+q,D=d-ae,this.updateTokenEndLineColumnLocation(g,p,ae,q,I,D,d))}this.handleModes(oe,Z,j,g)}else{let q=T,Q=I,ae=D,ue=K===!1;for(;ue===!1&&T<_;)for(e=this.chopInput(e,1),T++,i=0;i<O;i++){let ce=N[i],te=ce.pattern,Ne=ce.short;if(Ne!==!1?w.charCodeAt(T)===Ne&&(ue=!0):ce.isCustom===!0?ue=te.exec(w,T,S,k)!==null:(this.updateLastIndex(te,T),ue=te.exec(e)!==null),ue===!0)break}if(y=T-q,D=this.computeNewColumn(D,y),x=this.config.errorMessageProvider.buildUnexpectedCharactersMessage(w,q,y,Q,ae),A.push({offset:q,line:Q,column:ae,length:y,message:x}),K===!1)break}}return this.hasCustom||(S.length=E),{tokens:S,groups:k,errors:A}}handleModes(e,r,n,i){if(e.pop===!0){let a=e.push;r(i),a!==void 0&&n.call(this,a)}else e.push!==void 0&&n.call(this,e.push)}chopInput(e,r){return e.substring(r)}updateLastIndex(e,r){e.lastIndex=r}updateTokenEndLineColumnLocation(e,r,n,i,a,s,l){let u,h;r!==void 0&&(u=n===l-1,h=u?-1:0,i===1&&u===!0||(e.endLine=a+h,e.endColumn=s-1+-h))}computeNewColumn(e,r){return e+r}createOffsetOnlyToken(e,r,n,i){return{image:e,startOffset:r,tokenTypeIdx:n,tokenType:i}}createStartOnlyToken(e,r,n,i,a,s){return{image:e,startOffset:r,startLine:a,startColumn:s,tokenTypeIdx:n,tokenType:i}}createFullToken(e,r,n,i,a,s,l){return{image:e,startOffset:r,endOffset:r+l-1,startLine:a,endLine:a,startColumn:s,endColumn:s+l-1,tokenTypeIdx:n,tokenType:i}}addTokenUsingPush(e,r,n){return e.push(n),r}addTokenUsingMemberAccess(e,r,n){return e[r]=n,r++,r}handlePayloadNoCustom(e,r){}handlePayloadWithCustom(e,r){r!==null&&(e.payload=r)}matchWithTest(e,r,n){return e.test(r)===!0?r.substring(n,e.lastIndex):null}matchWithExec(e,r){let n=e.exec(r);return n!==null?n[0]:null}};ci.SKIPPED="This marks a skipped Token pattern, this means each token identified by it willbe consumed and then thrown into oblivion, this can be used to for example to completely ignore whitespace.";ci.NA=/NOT_APPLICABLE/}
See : https : //github.com/chevrotain/chevrotain/issues/564#issuecomment-349062346 for details.`;return Nt(t,Sse)&&(r.CATEGORIES=t[Sse]),Yu([r]),Nt(t,Cse)&&(r.LABEL=t[Cse]),Nt(t,Ase)&&(r.GROUP=t[Ase]),Nt(t,Lse)&&(r.POP_MODE=t[Lse]),Nt(t,_se)&&(r.PUSH_MODE=t[_se]),Nt(t,Dse)&&(r.LONGER_ALT=t[Dse]),Nt(t,Nse)&&(r.LINE_BREAKS=t[Nse]),Nt(t,Rse)&&(r.START_CHARS_HINT=t[Rse]),r}function d0(t,e,r,n,i,a,s,l){return{image:e,startOffset:r,endOffset:n,startLine:i,endLine:a,startColumn:s,endColumn:l,tokenTypeIdx:t.tokenTypeIdx,tokenType:t}}function T2(t,e){return Wu(t,e)}var $Be,Sse,Cse,Ase,_se,Lse,Dse,Nse,Rse,mo,p0=M(()=>{"use strict";Ht();b2();f0();o(qu,"tokenLabel");o(AR,"hasTokenLabel");$Be="parent",Sse="categories",Cse="label",Ase="group",_se="push_mode",Lse="pop_mode",Dse="longer_alt",Nse="line_breaks",Rse="start_chars_hint";o(rk,"createToken");o(VBe,"createTokenInternal");mo=rk({name:"EOF",pattern:ci.NA});Yu([mo]);o(d0,"createTokenInstance");o(T2,"tokenMatcher")});var Xu,Mse,Ul,pg=M(()=>{"use strict";p0();Ht();us();Xu={buildMismatchTokenMessage({expected:t,actual:e,previous:r,ruleName:n}){return`Expecting ${AR(t)?`--> ${qu(t)} <--`:`token of type --> ${t.name} <--`} but found --> '${e.image}' <--`},buildNotAllInputParsedMessage({firstRedundant:t,ruleName:e}){return"Redundant input, expecting EOF but found: "+t.image},buildNoViableAltMessage({expectedPathsPerAlt:t,actual:e,previous:r,customUserDescription:n,ruleName:i}){let a="Expecting: ",l=`
but found : '`+sa(e).image+"' ";if(n)return a+n+l;{let u=qr(t,(p,m)=>p.concat(m),[]),h=Qe(u,p=>`[${Qe(p,m=>qu(m)).join(" , " ) } ] ` ),d= ` one of these possible Token sequences :
$ { Qe ( h , ( p , m ) => ` ${ m + 1 } . ${ p } ` ) . join ( `
` )} ` ; return a + d + l } } , buildEarlyExitMessage ( { expectedIterationPaths : t , actual : e , customUserDescription : r , ruleName : n } ) { let i = "Expecting: " , s = `
but found : '`+sa(e).image+"' " ; if ( r ) return i + r + s ; { let u = ` expecting at least one iteration which starts with one of these possible Token sequences::
< $ { Qe ( t , h => ` [ ${ Qe ( h , f => qu ( f ) ) . join ( "," ) } ] ` ) . join ( " ," ) } > ` ;return i+u+s}}};Object.freeze(Xu);Mse={buildRuleNotFoundError(t,e){return"Invalid grammar, reference to a rule which is not defined: ->"+e.nonTerminalName+ ` < -
inside top level rule : - > ` +t.name+"<-"}},Ul={buildDuplicateFoundError(t,e){function r(f){return f instanceof Er?f.terminalType.name:f instanceof nn?f.nonTerminalName:""}o(r,"getExtraProductionArgument");let n=t.name,i=sa(e),a=i.idx,s=Vs(i),l=r(i),u=a>0,h= ` - > $ { s } $ { u ? a : "" } < - $ { l ? ` with argument: -> ${ l } <- ` : "" }
appears more than once ( $ { e . length } times ) in the top level rule : - > $ { n } < - .
For further details see : https : //chevrotain.io/docs/FAQ.html#NUMERICAL_SUFFIXES
` ;return h=h.replace(/[ \t ]+/g," "),h=h.replace(/ \s \s +/g, `
` ),h},buildNamespaceConflictError(t){return ` Namespace conflict found in grammar .
The grammar has both a Terminal ( Token ) and a Non - Terminal ( Rule ) named : < $ { t . name } > .
To resolve this make sure each Terminal and Non - Terminal names are unique
This is easy to accomplish by using the convention that Terminal names start with an uppercase letter
and Non - Terminal names start with a lower case letter . ` },buildAlternationPrefixAmbiguityError(t){let e=Qe(t.prefixPath,i=>qu(i)).join(", "),r=t.alternation.idx===0?"":t.alternation.idx;return ` Ambiguous alternatives : < $ { t . ambiguityIndices . join ( " ," ) } > due to common lookahead prefix
in < OR$ { r } > inside < $ { t . topLevelRule . name } > Rule ,
< $ { e } > may appears as a prefix path in all these alternatives .
See : https : //chevrotain.io/docs/guide/resolving_grammar_errors.html#COMMON_PREFIX
For Further details . ` },buildAlternationAmbiguityError(t){let e=Qe(t.prefixPath,i=>qu(i)).join(", "),r=t.alternation.idx===0?"":t.alternation.idx,n= ` Ambiguous Alternatives Detected : < $ { t . ambiguityIndices . join ( " ," ) } > in < OR$ { r } > inside < $ { t . topLevelRule . name } > Rule ,
< $ { e } > may appears as a prefix path in all these alternatives .
` ;return n=n+ ` See : https : //chevrotain.io/docs/guide/resolving_grammar_errors.html#AMBIGUOUS_ALTERNATIVES
For Further details . ` ,n},buildEmptyRepetitionError(t){let e=Vs(t.repetition);return t.repetition.idx!==0&&(e+=t.repetition.idx), ` The repetition < $ { e } > within Rule < $ { t . topLevelRule . name } > can never consume any tokens .
This could lead to an infinite loop . ` },buildTokenNameError(t){return"deprecated"},buildEmptyAlternationError(t){return ` Ambiguous empty alternative : < $ { t . emptyChoiceIdx + 1 } > in < OR$ { t . alternation . idx } > inside < $ { t . topLevelRule . name } > Rule .
Only the last alternative may be an empty alternative . ` },buildTooManyAlternativesError(t){return ` An Alternation cannot have more than 256 alternatives :
< OR$ { t . alternation . idx } > inside < $ { t . topLevelRule . name } > Rule .
has $ { t . alternation . definition . length + 1 } alternatives . ` },buildLeftRecursionError(t){let e=t.topLevelRule.name,r=Qe(t.leftRecursionPath,a=>a.name),n= ` $ { e } -- > $ { r . concat ( [ e ] ) . join ( " --> " ) } ` ;return ` Left Recursion found in grammar .
rule : < $ { e } > can be invoked from itself ( directly or indirectly )
without consuming any Tokens . The grammar path that causes this is :
$ { n }
To fix this refactor your grammar to remove the left recursion .
see : https : //en.wikipedia.org/wiki/LL_parser#Left_factoring.`},buildInvalidRuleNameError(t){return"deprecated"},buildDuplicateRuleNameError(t){let e;return t.topLevelRule instanceof ls?e=t.topLevelRule.name:e=t.topLevelRule,`Duplicate definition, rule: ->${e}<- is already defined in the grammar: ->${t.grammarName}<-`}}});function Ise(t,e){let r=new _R(t,e);return r.resolveRefs(),r.errors}var _R,Ose=M(()=>{"use strict";Us();Ht();us();o(Ise,"resolveGrammar");_R=class extends cs{static{o(this,"GastRefResolverVisitor")}constructor(e,r){super(),this.nameToTopRule=e,this.errMsgProvider=r,this.errors=[]}resolveRefs(){Se(br(this.nameToTopRule),e=>{this.currTopLevel=e,e.accept(this)})}visitNonTerminal(e){let r=this.nameToTopRule[e.nonTerminalName];if(r)e.referencedRule=r;else{let n=this.errMsgProvider.buildRuleNotFoundError(this.currTopLevel,e);this.errors.push({message:n,type:Ui.UNRESOLVED_SUBRULE_REF,ruleName:this.currTopLevel.name,unresolvedRefName:e.nonTerminalName})}}}});function sk(t,e,r=[]){r=rn(r);let n=[],i=0;function a(l){return l.concat(xi(t,i+1))}o(a,"remainingPathWith");function s(l){let u=sk(a(l),e,r);return n.concat(u)}for(o(s,"getAlternativesForProd");r.length<e&&i<t.length;){let l=t[i];if(l instanceof _n)return s(l.definition);if(l instanceof nn)return s(l.definition);if(l instanceof an)n=s(l.definition);else if(l instanceof Ln){let u=l.definition.concat([new Dr({definition:l.definition})]);return s(u)}else if(l instanceof Dn){let u=[new _n({definition:l.definition}),new Dr({definition:[new Er({terminalType:l.separator})].concat(l.definition)})];return s(u)}else if(l instanceof bn){let u=l.definition.concat([new Dr({definition:[new Er({terminalType:l.separator})].concat(l.definition)})]);n=s(u)}else if(l instanceof Dr){let u=l.definition.concat([new Dr({definition:l.definition})]);n=s(u)}else{if(l instanceof wn)return Se(l.definition,u=>{cr(u.definition)===!1&&(n=s(u.definition))}),n;if(l instanceof Er)r.push(l.terminalType);else throw Error("non exhaustive match")}i++}return n.push({partialPath:r,suffixDef:xi(t,i)}),n}function ok(t,e,r,n){let i="EXIT_NONE_TERMINAL",a=[i],s="EXIT_ALTERNATIVE",l=!1,u=e.length,h=u-n-1,f=[],d=[];for(d.push({idx:-1,def:t,ruleStack:[],occurrenceStack:[]});!cr(d);){let p=d.pop();if(p===s){l&&xa(d).idx<=h&&d.pop();continue}let m=p.def,g=p.idx,y=p.ruleStack,v=p.occurrenceStack;if(cr(m))continue;let x=m[0];if(x===i){let b={idx:g,def:xi(m),ruleStack:zu(y),occurrenceStack:zu(v)};d.push(b)}else if(x instanceof Er)if(g<u-1){let b=g+1,w=e[b];if(r(w,x.terminalType)){let _={idx:b,def:xi(m),ruleStack:y,occurrenceStack:v};d.push(_)}}else if(g===u-1)f.push({nextTokenType:x.terminalType,nextTokenOccurrence:x.idx,ruleStack:y,occurrenceStack:v}),l=!0;else throw Error("non exhaustive match");else if(x instanceof nn){let b=rn(y);b.push(x.nonTerminalName);let w=rn(v);w.push(x.idx);let _={idx:g,def:x.definition.concat(a,xi(m)),ruleStack:b,occurrenceStack:w};d.push(_)}else if(x instanceof an){let b={idx:g,def:xi(m),ruleStack:y,occurrenceStack:v};d.push(b),d.push(s);let w={idx:g,def:x.definition.concat(xi(m)),ruleStack:y,occurrenceStack:v};d.push(w)}else if(x instanceof Ln){let b=new Dr({definition:x.definition,idx:x.idx}),w=x.definition.concat([b],xi(m)),_={idx:g,def:w,ruleStack:y,occurrenceStack:v};d.push(_)}else if(x instanceof Dn){let b=new Er({terminalType:x.separator}),w=new Dr({definition:[b].concat(x.definition),idx:x.idx}),_=x.definition.concat([w],xi(m)),T={idx:g,def:_,ruleStack:y,occurrenceStack:v};d.push(T)}else if(x instanceof bn){let b={idx:g,def:xi(m),ruleStack:y,occurrenceStack:v};d.push(b),d.push(s);let w=new Er({terminalType:x.separator}),_=new Dr({definition:[w].concat(x.definition),idx:x.idx}),T=x.definition.concat([_],xi(m)),E={idx:g,def:T,ruleStack:y,occurrenceStack:v};d.push(E)}else if(x instanceof Dr){let b={idx:g,def:xi(m),ruleStack:y,occurrenceStack:v};d.push(b),d.push(s);let w=new Dr({definition:x.definition,idx:x.idx}),_=x.definition.concat([w],xi(m)),T={idx:g,def:_,ruleStack:y,occurrenceStack:v};d.push(T)}else if(x instanceof wn)for(let b=x.definition.length-1;b>=0;b--){let w=x
$ { a . join ( `
` ).replace(/ \n /g, `
` )} ` ) } } , "validateVisitor" ) } ; return r . prototype = n , r . prototype . constructor = r , r . _RULE _NAMES = e , r } function hoe ( t , e , r ) { let n = o ( function ( ) { } , "derivedConstructor" ) ; WR ( n , t + "BaseSemanticsWithDefaults" ) ; let i = Object . create ( r . prototype ) ; return Se ( e , a => { i [ a ] = tFe } ) , n . prototype = i , n . prototype . constructor = n , n } function rFe ( t , e ) { return nFe ( t , e ) } function nFe ( t , e ) { let r = Yr ( e , i => _i ( t [ i ] ) === ! 1 ) , n = Qe ( r , i => ( { msg : ` Missing visitor method: < ${ i } > on ${ t . constructor . name } CST Visitor. ` , type : YR . MISSING _METHOD , methodName : i } ) ) ; return Rc ( n ) } var YR , foe = M ( ( ) => { "use strict" ; Ht ( ) ; coe ( ) ; o ( tFe , "defaultVisit" ) ; o ( uoe , "createBaseSemanticVisitorConstructor" ) ; o ( hoe , "createBaseVisitorConstructorWithDefaults" ) ; ( function ( t ) { t [ t . REDUNDANT _METHOD = 0 ] = "REDUNDANT_METHOD" , t [ t . MISSING _METHOD = 1 ] = "MISSING_METHOD" } ) ( YR || ( YR = { } ) ) ; o ( rFe , "validateVisitor" ) ; o ( nFe , "validateMissingCstMethods" ) } ) ; var bk , doe = M ( ( ) => { "use strict" ; loe ( ) ; Ht ( ) ; foe ( ) ; Us ( ) ; bk = class { static { o ( this , "TreeBuilder" ) } initTreeBuilder ( e ) { if ( this . CST _STACK = [ ] , this . outputCst = e . outputCst , this . nodeLocationTracking = Nt ( e , "nodeLocationTracking" ) ? e . nodeLocationTracking : hs . nodeLocationTracking , ! this . outputCst ) this . cstInvocationStateUpdate = ti , this . cstFinallyStateUpdate = ti , this . cstPostTerminal = ti , this . cstPostNonTerminal = ti , this . cstPostRule = ti ; else if ( /full/i . test ( this . nodeLocationTracking ) ) this . recoveryEnabled ? ( this . setNodeLocationFromToken = HR , this . setNodeLocationFromNode = HR , this . cstPostRule = ti , this . setInitialNodeLocation = this . setInitialNodeLocationFullRecovery ) : ( this . setNodeLocationFromToken = ti , this . setNodeLocationFromNode = ti , this . cstPostRule = this . cstPostRuleFull , this . setInitialNodeLocation = this . setInitialNodeLocationFullRegular ) ; else if ( /onlyOffset/i . test ( this . nodeLocationTracking ) ) this . recoveryEnabled ? ( this . setNodeLocationFromToken = UR , this . setNodeLocationFromNode = UR , this . cstPostRule = ti , this . setInitialNodeLocation = this . setInitialNodeLocationOnlyOffsetRecovery ) : ( this . setNodeLocationFromToken = ti , this . setNodeLocationFromNode = ti , this . cstPostRule = this . cstPostRuleOnlyOffset , this . setInitialNodeLocation = this . setInitialNodeLocationOnlyOffsetRegular ) ; else if ( /none/i . test ( this . nodeLocationTracking ) ) this . setNodeLocationFromToken = ti , this . setNodeLocationFromNode = ti , this . cstPostRule = ti , this . setInitialNodeLocation = ti ; else throw Error ( ` Invalid <nodeLocationTracking> config option: " ${ e . nodeLocationTracking } " ` ) } setInitialNodeLocationOnlyOffsetRecovery ( e ) { e . location = { startOffset : NaN , endOffset : NaN } } setInitialNodeLocationOnlyOffsetRegular ( e ) { e . location = { startOffset : this . LA ( 1 ) . startOffset , endOffset : NaN } } setInitialNodeLocationFullRecovery ( e ) { e . location = { startOffset : NaN , startLine : NaN , startColumn : NaN , endOffset : NaN , endLine : NaN , endColumn : NaN } } setInitialNodeLocationFullRegular ( e ) { let r = this . LA ( 1 ) ; e . location = { startOffset : r . startOffset , startLine : r . startLine , startColumn : r . startColumn , endOffset : NaN , endLine : NaN , endColumn : NaN } } cstInvocationStateUpdate ( e ) { let r = { name : e , children : Object . create ( null ) } ; this . setInitialNodeLocation ( r ) , this . CST _STACK . push ( r ) } cstFinallyStateUpdate ( ) { this . CST _STACK . pop ( ) } cstPostRuleFull ( e ) { let r = this . LA ( 0 ) , n = e . location ; n . startOffset <= r . startOffset ? ( n . endOffset = r . endOffset , n . endLine = r . endLine , n . endColumn = r . endColumn ) : ( n . startOffset = NaN , n . startLine = NaN , n . startColumn = NaN ) } cstPostRuleOnlyOffset ( e ) { let r = this . LA ( 0 ) , n = e . location ; n . startOffset <= r . startOffset ? n . endOffset = r . endOffset : n . startOffset = NaN } cstPostTerminal ( e , r ) { let n = this . CST _STACK [ this . CST _STACK . length - 1 ] ; soe ( n , r , e ) , this . setNodeLocationFromToken ( n . location , r ) } cstPostNonTerminal ( e , r ) { let n = this . CST _STACK [ this . CST _STACK . length - 1 ] ; ooe ( n , r , e ) , this . setNodeLocationFromNode ( n . location , e . location ) } getBaseCstVisitorConstructor ( ) { if ( dr ( this . baseCstVisitorConstructor ) ) { let e = uoe ( this . className , Gr ( this . gastProductionsCache ) ) ; return this . baseCstVisitorConstructor = e , e } return this . baseCstVisitorConstructor } getBaseCstVisitorConstructorWithDefaults ( ) { if ( dr ( this . baseCstVisitorWithDefaultsConstructor ) ) { let e = hoe ( this . className , Gr ( this . gastProductionsCache ) , this . getBaseCstVisitorConstructor ( ) ) ; return this . baseCstVisitorWithDefaultsConstructor = e , e } return this . baseCstVisitorWithDefaultsConstructor } getL
See : https : //chevrotain.io/docs/changes/BREAKING_CHANGES.html#_6-0-0
For Further details . ` );if(Dt(e)){if(cr(e))throw Error( ` A Token Vocabulary cannot be empty .
Note that the first argument for the parser constructor
is no longer a Token vector ( since v4 . 0 ) . ` );if(typeof e[0].startOffset=="number")throw Error( ` The Parser constructor no longer accepts a token vector as the first argument .
See : https : //chevrotain.io/docs/changes/BREAKING_CHANGES.html#_4-0-0
For Further details . ` )}if(Dt(e))this.tokensMap=qr(e,(a,s)=>(a[s.name]=s,a),{});else if(Nt(e,"modes")&&za(Wr(br(e.modes)),Ese)){let a=Wr(br(e.modes)),s=Xm(a);this.tokensMap=qr(s,(l,u)=>(l[u.name]=u,l),{})}else if(xn(e))this.tokensMap=rn(e);else throw new Error("<tokensDictionary> argument must be An Array of Token constructors, A dictionary of Token constructors or an IMultiModeLexerDefinition");this.tokensMap.EOF=mo;let n=Nt(e,"modes")?Wr(br(e.modes)):br(e),i=za(n,a=>cr(a.categoryMatches));this.tokenMatcher=i?dg:Wu,Yu(br(this.tokensMap))}defineRule(e,r,n){if(this.selfAnalysisDone)throw Error( ` Grammar rule < $ { e } > may not be defined after the 'performSelfAnalysis' method has been called '
Make sure that all grammar rule definitions are done before 'performSelfAnalysis' is called . ` );let i=Nt(n,"resyncEnabled")?n.resyncEnabled:Tg.resyncEnabled,a=Nt(n,"recoveryValueFunc")?n.recoveryValueFunc:Tg.recoveryValueFunc,s=this.ruleShortNameIdx<<12;this.ruleShortNameIdx++,this.shortRuleNameToFull[s]=e,this.fullRuleNameToShort[e]=s;let l;return this.outputCst===!0?l=o(function(...f){try{this.ruleInvocationStateUpdate(s,e,this.subruleIdx),r.apply(this,f);let d=this.CST_STACK[this.CST_STACK.length-1];return this.cstPostRule(d),d}catch(d){return this.invokeRuleCatch(d,i,a)}finally{this.ruleFinallyStateUpdate()}},"invokeRuleWithTry"):l=o(function(...f){try{return this.ruleInvocationStateUpdate(s,e,this.subruleIdx),r.apply(this,f)}catch(d){return this.invokeRuleCatch(d,i,a)}finally{this.ruleFinallyStateUpdate()}},"invokeRuleWithTryCst"),Object.assign(l,{ruleName:e,originalGrammarAction:r})}invokeRuleCatch(e,r,n){let i=this.RULE_STACK.length===1,a=r&&!this.isBackTracking()&&this.recoveryEnabled;if(ff(e)){let s=e;if(a){let l=this.findReSyncTokenType();if(this.isInCurrentRuleReSyncSet(l))if(s.resyncedTokens=this.reSyncTo(l),this.outputCst){let u=this.CST_STACK[this.CST_STACK.length-1];return u.recoveredNode=!0,u}else return n(e);else{if(this.outputCst){let u=this.CST_STACK[this.CST_STACK.length-1];u.recoveredNode=!0,s.partialCstResult=u}throw s}}else{if(i)return this.moveToTerminatedState(),n(e);throw s}}else throw e}optionInternal(e,r){let n=this.getKeyForAutomaticLookahead(512,r);return this.optionInternalLogic(e,r,n)}optionInternalLogic(e,r,n){let i=this.getLaFuncFromCache(n),a;if(typeof e!="function"){a=e.DEF;let s=e.GATE;if(s!==void 0){let l=i;i=o(()=>s.call(this)&&l.call(this),"lookAheadFunc")}}else a=e;if(i.call(this)===!0)return a.call(this)}atLeastOneInternal(e,r){let n=this.getKeyForAutomaticLookahead(1024,e);return this.atLeastOneInternalLogic(e,r,n)}atLeastOneInternalLogic(e,r,n){let i=this.getLaFuncFromCache(n),a;if(typeof r!="function"){a=r.DEF;let s=r.GATE;if(s!==void 0){let l=i;i=o(()=>s.call(this)&&l.call(this),"lookAheadFunc")}}else a=r;if(i.call(this)===!0){let s=this.doSingleRepetition(a);for(;i.call(this)===!0&&s===!0;)s=this.doSingleRepetition(a)}else throw this.raiseEarlyExitException(e,Xn.REPETITION_MANDATORY,r.ERR_MSG);this.attemptInRepetitionRecovery(this.atLeastOneInternal,[e,r],i,1024,e,ak)}atLeastOneSepFirstInternal(e,r){let n=this.getKeyForAutomaticLookahead(1536,e);this.atLeastOneSepFirstInternalLogic(e,r,n)}atLeastOneSepFirstInternalLogic(e,r,n){let i=r.DEF,a=r.SEP;if(this.getLaFuncFromCache(n).call(this)===!0){i.call(this);let l=o(()=>this.tokenMatcher(this.LA(1),a),"separatorLookAheadFunc");for(;this.tokenMatcher(this.LA(1),a)===!0;)this.CONSUME(a),i.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[e,a,l,i,E2],l,1536,e,E2)}else throw this.raiseEarlyExitException(e,Xn.REPETITION_MANDATORY_WITH_SEPARATOR,r.ERR_MSG)}manyInternal(e,r){let n=this.getKeyForAutomaticLookahead(768,e);return this.manyInternalLogic(e,r,n)}manyInternalLogic(e,r,n){let i=this.getLaFuncFromCache(n),a;if(typeof r!="function"){a=r.DEF;let l=r.GATE;if(l!==void 0){let u=i;i=o(()=>l.call(this)&&u.call(this),"lookaheadFunction")}}else a=r;let s=!0;for(;i.call(this)===!0&&s===!0;)s=this.doSingleRepetition(a);this.attemptInRepetitionRecovery(this.manyInternal,[e,r],i,768,e,ik,s)}manySepFirstInternal(e,r){let n=this.getKeyForAutomaticLookahead(1280,e);this.manySepFirstInternalLogic(e,r,n)}manySepFirstInternalLogic(e,r,n){let i=r.DEF,a=r.SEP;if(this.getLaFuncFromCache(n).call(this)===!0){i.call(this);let l=o(()=>this.tokenMatcher(this.LA(1),a),"separatorLookAheadFunc");for(;this.tokenMatcher(this.LA(1),a)===!0;)this.CONSUME(a),i.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[e,a,l,i,k2],l,1280,e,k2)}}repetitionSepSecondInternal(e,r,n,i,a){for(;n();)this.CONSUME(r),i.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[e,r,n,i,a],n,1536,e,a)}doSingleRepetition(e){let r=this.getLexerPosition();return e.call(this),this.getLexerPosition()>r}orInternal
Idx value must be a none negative value smaller than $ { boe + 1 } ` );throw e.KNOWN_RECORDER_ERROR=!0,e}}var _k,xoe,boe,Toe,koe,aFe,Ck,Eoe=M(()=>{"use strict";Ht();us();b2();f0();p0();Us();pk();_k={description:"This Object indicates the Parser is during Recording Phase"};Object.freeze(_k);xoe=!0,boe=Math.pow(2,8)-1,Toe=rk({name:"RECORDING_PHASE_TOKEN",pattern:ci.NA});Yu([Toe]);koe=d0(Toe, ` This IToken indicates the Parser is in Recording Phase
See : https : //chevrotain.io/docs/guide/internals.html#grammar-recording for details`,-1,-1,-1,-1,-1,-1);Object.freeze(koe);aFe={name:`This CSTNode indicates the Parser is in Recording Phase
See : https : //chevrotain.io/docs/guide/internals.html#grammar-recording for details`,children:{}},Ck=class{static{o(this,"GastRecorder")}initGastRecorder(e){this.recordingProdStack=[],this.RECORDING_PHASE=!1}enableRecording(){this.RECORDING_PHASE=!0,this.TRACE_INIT("Enable Recording",()=>{for(let e=0;e<10;e++){let r=e>0?e:"";this[`CONSUME${r}`]=function(n,i){return this.consumeInternalRecord(n,e,i)},this[`SUBRULE${r}`]=function(n,i){return this.subruleInternalRecord(n,e,i)},this[`OPTION${r}`]=function(n){return this.optionInternalRecord(n,e)},this[`OR${r}`]=function(n){return this.orInternalRecord(n,e)},this[`MANY${r}`]=function(n){this.manyInternalRecord(e,n)},this[`MANY_SEP${r}`]=function(n){this.manySepFirstInternalRecord(e,n)},this[`AT_LEAST_ONE${r}`]=function(n){this.atLeastOneInternalRecord(e,n)},this[`AT_LEAST_ONE_SEP${r}`]=function(n){this.atLeastOneSepFirstInternalRecord(e,n)}}this.consume=function(e,r,n){return this.consumeInternalRecord(r,e,n)},this.subrule=function(e,r,n){return this.subruleInternalRecord(r,e,n)},this.option=function(e,r){return this.optionInternalRecord(r,e)},this.or=function(e,r){return this.orInternalRecord(r,e)},this.many=function(e,r){this.manyInternalRecord(e,r)},this.atLeastOne=function(e,r){this.atLeastOneInternalRecord(e,r)},this.ACTION=this.ACTION_RECORD,this.BACKTRACK=this.BACKTRACK_RECORD,this.LA=this.LA_RECORD})}disableRecording(){this.RECORDING_PHASE=!1,this.TRACE_INIT("Deleting Recording methods",()=>{let e=this;for(let r=0;r<10;r++){let n=r>0?r:"";delete e[`CONSUME${n}`],delete e[`SUBRULE${n}`],delete e[`OPTION${n}`],delete e[`OR${n}`],delete e[`MANY${n}`],delete e[`MANY_SEP${n}`],delete e[`AT_LEAST_ONE${n}`],delete e[`AT_LEAST_ONE_SEP${n}`]}delete e.consume,delete e.subrule,delete e.option,delete e.or,delete e.many,delete e.atLeastOne,delete e.ACTION,delete e.BACKTRACK,delete e.LA})}ACTION_RECORD(e){}BACKTRACK_RECORD(e,r){return()=>!0}LA_RECORD(e){return wg}topLevelRuleRecord(e,r){try{let n=new ls({definition:[],name:e});return n.name=e,this.recordingProdStack.push(n),r.call(this),this.recordingProdStack.pop(),n}catch(n){if(n.KNOWN_RECORDER_ERROR!==!0)try{n.message=n.message+`
This error was thrown during the "grammar recording phase" For more info see :
https : //chevrotain.io/docs/guide/internals.html#grammar-recording`}catch{throw n}throw n}}optionInternalRecord(e,r){return M2.call(this,an,e,r)}atLeastOneInternalRecord(e,r){M2.call(this,Ln,r,e)}atLeastOneSepFirstInternalRecord(e,r){M2.call(this,Dn,r,e,xoe)}manyInternalRecord(e,r){M2.call(this,Dr,r,e)}manySepFirstInternalRecord(e,r){M2.call(this,bn,r,e,xoe)}orInternalRecord(e,r){return sFe.call(this,e,r)}subruleInternalRecord(e,r,n){if(Ak(r),!e||Nt(e,"ruleName")===!1){let l=new Error(`<SUBRULE${woe(r)}> argument is invalid expecting a Parser method reference but got: <${JSON.stringify(e)}>
inside top level rule : < $ { this . recordingProdStack [ 0 ] . name } > ` );throw l.KNOWN_RECORDER_ERROR=!0,l}let i=xa(this.recordingProdStack),a=e.ruleName,s=new nn({idx:r,nonTerminalName:a,label:n?.LABEL,referencedRule:void 0});return i.definition.push(s),this.outputCst?aFe:_k}consumeInternalRecord(e,r,n){if(Ak(r),!ER(e)){let s=new Error( ` < CONSUME$ { woe ( r ) } > argument is invalid expecting a TokenType reference but got : < $ { JSON . stringify ( e ) } >
inside top level rule : < $ { this . recordingProdStack [ 0 ] . name } > ` );throw s.KNOWN_RECORDER_ERROR=!0,s}let i=xa(this.recordingProdStack),a=new Er({idx:r,terminalType:e,label:n?.LABEL});return i.definition.push(a),koe}};o(M2,"recordProd");o(sFe,"recordOrProd");o(woe,"getIdxSuffix");o(Ak,"assertMethodIdxIsValid")});var Lk,Soe=M(()=>{"use strict";Ht();lg();Us();Lk=class{static{o(this,"PerformanceTracer")}initPerformanceTracer(e){if(Nt(e,"traceInitPerf")){let r=e.traceInitPerf,n=typeof r=="number";this.traceInitMaxIdent=n?r:1/0,this.traceInitPerf=n?r>0:r}else this.traceInitMaxIdent=0,this.traceInitPerf=hs.traceInitPerf;this.traceInitIndent=-1}TRACE_INIT(e,r){if(this.traceInitPerf===!0){this.traceInitIndent++;let n=new Array(this.traceInitIndent+1).join(" ");this.traceInitIndent<this.traceInitMaxIdent&&console.log( ` $ { n } -- > < $ { e } > ` );let{time:i,value:a}=y2(r),s=i>10?console.warn:console.log;return this.traceInitIndent<this.traceInitMaxIdent&&s( ` $ { n } < -- < $ { e } > time : $ { i } ms ` ),this.traceInitIndent--,a}else return r()}}});function Coe(t,e){e.forEach(r=>{let n=r.prototype;Object.getOwnPropertyNames(n).forEach(i=>{if(i==="constructor")return;let a=Object.getOwnPropertyDescriptor(n,i);a&&(a.get||a.set)?Object.defineProperty(t.prototype,i,a):t.prototype[i]=r.prototype[i]})})}var Aoe=M(()=>{"use strict";o(Coe,"applyMixins")});function Dk(t=void 0){return function(){return t}}var wg,hs,Tg,Ui,I2,O2,Us=M(()=>{"use strict";Ht();lg();nse();p0();pg();Jse();FR();aoe();doe();poe();moe();goe();yoe();voe();Eoe();Soe();Aoe();_2();wg=d0(mo,"",NaN,NaN,NaN,NaN,NaN,NaN);Object.freeze(wg);hs=Object.freeze({recoveryEnabled:!1,maxLookahead:3,dynamicTokensEnabled:!1,outputCst:!0,errorMessageProvider:Xu,nodeLocationTracking:"none",traceInitPerf:!1,skipValidations:!1}),Tg=Object.freeze({recoveryValueFunc:o(()=>{},"recoveryValueFunc"),resyncEnabled:!0});(function(t){t[t.INVALID_RULE_NAME=0]="INVALID_RULE_NAME",t[t.DUPLICATE_RULE_NAME=1]="DUPLICATE_RULE_NAME",t[t.INVALID_RULE_OVERRIDE=2]="INVALID_RULE_OVERRIDE",t[t.DUPLICATE_PRODUCTIONS=3]="DUPLICATE_PRODUCTIONS",t[t.UNRESOLVED_SUBRULE_REF=4]="UNRESOLVED_SUBRULE_REF",t[t.LEFT_RECURSION=5]="LEFT_RECURSION",t[t.NONE_LAST_EMPTY_ALT=6]="NONE_LAST_EMPTY_ALT",t[t.AMBIGUOUS_ALTS=7]="AMBIGUOUS_ALTS",t[t.CONFLICT_TOKENS_RULES_NAMESPACE=8]="CONFLICT_TOKENS_RULES_NAMESPACE",t[t.INVALID_TOKEN_NAME=9]="INVALID_TOKEN_NAME",t[t.NO_NON_EMPTY_LOOKAHEAD=10]="NO_NON_EMPTY_LOOKAHEAD",t[t.AMBIGUOUS_PREFIX_ALTS=11]="AMBIGUOUS_PREFIX_ALTS",t[t.TOO_MANY_ALTS=12]="TOO_MANY_ALTS",t[t.CUSTOM_LOOKAHEAD_VALIDATION=13]="CUSTOM_LOOKAHEAD_VALIDATION"})(Ui||(Ui={}));o(Dk,"EMPTY_ALT");I2=class t{static{o(this,"Parser")}static performSelfAnalysis(e){throw Error("The **static** ` performSelfAnalysis ` method has been deprecated. \n Use the **instance** method with the same name instead.")}performSelfAnalysis(){this.TRACE_INIT("performSelfAnalysis",()=>{let e;this.selfAnalysisDone=!0;let r=this.className;this.TRACE_INIT("toFastProps",()=>{v2(this)}),this.TRACE_INIT("Grammar Recording",()=>{try{this.enableRecording(),Se(this.definedRulesNames,i=>{let s=this[i].originalGrammarAction,l;this.TRACE_INIT( ` $ { i } Rule ` ,()=>{l=this.topLevelRuleRecord(i,s)}),this.gastProductionsCache[i]=l})}finally{this.disableRecording()}});let n=[];if(this.TRACE_INIT("Grammar Resolving",()=>{n=Qse({rules:br(this.gastProductionsCache)}),this.definitionErrors=this.definitionErrors.concat(n)}),this.TRACE_INIT("Grammar Validations",()=>{if(cr(n)&&this.skipValidations===!1){let i=Zse({rules:br(this.gastProductionsCache),tokenTypes:br(this.tokensMap),errMsgProvider:Ul,grammarName:r}),a=Hse({lookaheadStrategy:this.lookaheadStrategy,rules:br(this.gastProductionsCache),tokenTypes:br(this.tokensMap),grammarName:r});this.definitionErrors=this.definitionErrors.concat(i,a)}}),cr(this.definitionErrors)&&(this.recoveryEnabled&&this.TRACE_INIT("computeAllProdsFollows",()=>{let i=rse(br(this.gastProductionsCache));this.resyncFollows=i}),this.TRACE_INIT("ComputeLookaheadFunctions",()=>{var i,a;(a=(i=this.lookaheadStrategy).initialize)===null||a===void 0||a.call(i,{rules:br(this.gastProductionsCac
$ { e . join ( `
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
` )} ` ) } ) } constructor ( e , r ) { this . definitionErrors = [ ] , this . selfAnalysisDone = ! 1 ; let n = this ; if ( n . initErrorHandler ( r ) , n . initLexerAdapter ( ) , n . initLooksAhead ( r ) , n . initRecognizerEngine ( e , r ) , n . initRecoverable ( r ) , n . initTreeBuilder ( r ) , n . initContentAssist ( ) , n . initGastRecorder ( r ) , n . initPerformanceTracer ( r ) , Nt ( r , "ignoredIssues" ) ) throw new Error ( ` The <ignoredIssues> IParserConfig property has been deprecated.
Please use the < IGNORE _AMBIGUITIES > flag on the relevant DSL method instead .
See : https : //chevrotain.io/docs/guide/resolving_grammar_errors.html#IGNORING_AMBIGUITIES
For further details . ` );this.skipValidations=Nt(r,"skipValidations")?r.skipValidations:hs.skipValidations}};I2.DEFER_DEFINITION_ERRORS_HANDLING=!1;Coe(I2,[fk,gk,bk,wk,kk,Tk,Ek,Sk,Ck,Lk]);O2=class extends I2{static{o(this,"EmbeddedActionsParser")}constructor(e,r=hs){let n=rn(r);n.outputCst=!1,super(e,n)}}});var _oe=M(()=>{"use strict";us()});var Loe=M(()=>{"use strict"});var Doe=M(()=>{"use strict";_oe();Loe()});var Noe=M(()=>{"use strict";fR()});var g0=M(()=>{"use strict";fR();Us();b2();p0();vg();zR();pg();bg();CR();us();us();Doe();Noe()});function y0(t,e,r){return ` $ { t . name } _$ { e } _$ { r } ` }function Ooe(t){let e={decisionMap:{},decisionStates:[],ruleToStartState:new Map,ruleToStopState:new Map,states:[]};dFe(e,t);let r=t.length;for(let n=0;n<r;n++){let i=t[n],a=v0(e,i,i);a!==void 0&&EFe(e,i,a)}return e}function dFe(t,e){let r=e.length;for(let n=0;n<r;n++){let i=e[n],a=oa(t,i,void 0,{type:lFe}),s=oa(t,i,void 0,{type:Sg});a.stop=s,t.ruleToStartState.set(i,a),t.ruleToStopState.set(i,s)}}function Poe(t,e,r){return r instanceof Er?XR(t,e,r.terminalType,r):r instanceof nn?kFe(t,e,r):r instanceof wn?vFe(t,e,r):r instanceof an?xFe(t,e,r):r instanceof Dr?pFe(t,e,r):r instanceof bn?mFe(t,e,r):r instanceof Ln?gFe(t,e,r):r instanceof Dn?yFe(t,e,r):v0(t,e,r)}function pFe(t,e,r){let n=oa(t,e,r,{type:Moe});pf(t,n);let i=Cg(t,e,n,r,v0(t,e,r));return Foe(t,e,r,i)}function mFe(t,e,r){let n=oa(t,e,r,{type:Moe});pf(t,n);let i=Cg(t,e,n,r,v0(t,e,r)),a=XR(t,e,r.separator,r);return Foe(t,e,r,i,a)}function gFe(t,e,r){let n=oa(t,e,r,{type:Roe});pf(t,n);let i=Cg(t,e,n,r,v0(t,e,r));return Boe(t,e,r,i)}function yFe(t,e,r){let n=oa(t,e,r,{type:Roe});pf(t,n);let i=Cg(t,e,n,r,v0(t,e,r)),a=XR(t,e,r.separator,r);return Boe(t,e,r,i,a)}function vFe(t,e,r){let n=oa(t,e,r,{type:df});pf(t,n);let i=Qe(r.definition,s=>Poe(t,e,s));return Cg(t,e,n,r,...i)}function xFe(t,e,r){let n=oa(t,e,r,{type:df});pf(t,n);let i=Cg(t,e,n,r,v0(t,e,r));return bFe(t,e,r,i)}function v0(t,e,r){let n=Yr(Qe(r.definition,i=>Poe(t,e,i)),i=>i!==void 0);return n.length===1?n[0]:n.length===0?void 0:TFe(t,n)}function Boe(t,e,r,n,i){let a=n.left,s=n.right,l=oa(t,e,r,{type:fFe});pf(t,l);let u=oa(t,e,r,{type:Ioe});return a.loopback=l,u.loopback=l,t.decisionMap[y0(e,i?"RepetitionMandatoryWithSeparator":"RepetitionMandatory",r.idx)]=l,Ni(s,l),i===void 0?(Ni(l,a),Ni(l,u)):(Ni(l,u),Ni(l,i.left),Ni(i.right,a)),{left:a,right:u}}function Foe(t,e,r,n,i){let a=n.left,s=n.right,l=oa(t,e,r,{type:hFe});pf(t,l);let u=oa(t,e,r,{type:Ioe}),h=oa(t,e,r,{type:uFe});return l.loopback=h,u.loopback=h,Ni(l,a),Ni(l,u),Ni(s,h),i!==void 0?(Ni(h,u),Ni(h,i.left),Ni(i.right,a)):Ni(h,l),t.decisionMap[y0(e,i?"RepetitionWithSeparator":"Repetition",r.idx)]=l,{left:l,right:u}}function bFe(t,e,r,n){let i=n.left,a=n.right;return Ni(i,a),t.decisionMap[y0(e,"Option",r.idx)]=i,n}function pf(t,e){return t.decisionStates.push(e),e.decision=t.decisionStates.length-1,e.decision}function Cg(t,e,r,n,...i){let a=oa(t,e,n,{type:cFe,start:r});r.end=a;for(let l of i)l!==void 0?(Ni(r,l.left),Ni(l.right,a)):Ni(r,a);let s={left:r,right:a};return t.decisionMap[y0(e,wFe(n),n.idx)]=r,s}function wFe(t){if(t instanceof wn)return"Alternation";if(t instanceof an)return"Option";if(t instanceof Dr)return"Repetition";if(t instanceof bn)return"RepetitionWithSeparator";if(t instanceof Ln)return"RepetitionMandatory";if(t instanceof Dn)return"RepetitionMandatoryWithSeparator";throw new Error("Invalid production type encountered")}function TFe(t,e){let r=e.length;for(let a=0;a<r-1;a++){let s=e[a],l;s.left.transitions.length===1&&(l=s.left.transitions[0]);let u=l instanceof Eg,h=l,f=e[a+1].left;s.left.type===df&&s.right.type===df&&l!==void 0&&(u&&h.followState===s.right||l.target===s.right)?(u?h.followState=f:l.target=f,SFe(t,s.right)):Ni(s.right,f)}let n=e[0],i=e[r-1];return{left:n.left,right:i.right}}function XR(t,e,r,n){let i=oa(t,e,n,{type:df}),a=oa(t,e,n,{type:df});return jR(i,new kg(a,r)),{left:i,right:a}}function kFe(t,e,r){let n=r.referencedRule,i=t.ruleToStartState.get(n),a=oa(t,e,r,{type:df}),s=oa(t,e,r,{type:df}),l=new Eg(i,n,s);return jR(a,l),{left:a,
< $ { e } > may appears as a prefix path in all these alternatives .
` ;return n=n+ ` See : https : //chevrotain.io/docs/guide/resolving_grammar_errors.html#AMBIGUOUS_ALTERNATIVES
For Further details . ` ,n}function RFe(t){if(t instanceof nn)return"SUBRULE";if(t instanceof an)return"OPTION";if(t instanceof wn)return"OR";if(t instanceof Ln)return"AT_LEAST_ONE";if(t instanceof Dn)return"AT_LEAST_ONE_SEP";if(t instanceof bn)return"MANY_SEP";if(t instanceof Dr)return"MANY";if(t instanceof Er)return"CONSUME";throw Error("non exhaustive match")}function MFe(t,e,r){let n=ba(e.configs.elements,a=>a.state.transitions),i=Qre(n.filter(a=>a instanceof kg).map(a=>a.tokenType),a=>a.tokenTypeIdx);return{actualToken:r,possibleTokenTypes:i,tokenPath:t}}function IFe(t,e){return t.edges[e.tokenTypeIdx]}function OFe(t,e,r){let n=new Ag,i=[];for(let s of t.elements){if(r.is(s.alt)===!1)continue;if(s.state.type===Sg){i.push(s);continue}let l=s.state.transitions.length;for(let u=0;u<l;u++){let h=s.state.transitions[u],f=PFe(h,e);f!==void 0&&n.add({state:f,alt:s.alt,stack:s.stack})}}let a;if(i.length===0&&n.size===1&&(a=n),a===void 0){a=new Ag;for(let s of n.elements)Rk(s,a)}if(i.length>0&&!GFe(a))for(let s of i)a.add(s);return a}function PFe(t,e){if(t instanceof kg&&T2(e,t.tokenType))return t.target}function BFe(t,e){let r;for(let n of t.elements)if(e.is(n.alt)===!0){if(r===void 0)r=n.alt;else if(r!==n.alt)return}return r}function Hoe(t){return{configs:t,edges:{},isAcceptState:!1,prediction:-1}}function Uoe(t,e,r,n){return n=Woe(t,n),e.edges[r.tokenTypeIdx]=n,n}function Woe(t,e){if(e===F2)return e;let r=e.configs.key,n=t.states[r];return n!==void 0?n:(e.configs.finalize(),t.states[r]=e,e)}function FFe(t){let e=new Ag,r=t.transitions.length;for(let n=0;n<r;n++){let a={state:t.transitions[n].target,alt:n,stack:[]};Rk(a,e)}return e}function Rk(t,e){let r=t.state;if(r.type===Sg){if(t.stack.length>0){let i=[...t.stack],s={state:i.pop(),alt:t.alt,stack:i};Rk(s,e)}else e.add(t);return}r.epsilonOnlyTransitions||e.add(t);let n=r.transitions.length;for(let i=0;i<n;i++){let a=r.transitions[i],s=zFe(t,a);s!==void 0&&Rk(s,e)}}function zFe(t,e){if(e instanceof B2)return{state:e.target,alt:t.alt,stack:t.stack};if(e instanceof Eg){let r=[...t.stack,e.followState];return{state:e.target,alt:t.alt,stack:r}}}function GFe(t){for(let e of t.elements)if(e.state.type===Sg)return!0;return!1}function $ Fe(t){for(let e of t.elements)if(e.state.type!==Sg)return!1;return!0}function VFe(t){if( $ Fe(t))return!0;let e=UFe(t.elements);return HFe(e)&&!WFe(e)}function UFe(t){let e=new Map;for(let r of t){let n=KR(r,!1),i=e.get(n);i===void 0&&(i={},e.set(n,i)),i[r.alt]=!0}return e}function HFe(t){for(let e of Array.from(t.values()))if(Object.keys(e).length>1)return!0;return!1}function WFe(t){for(let e of Array.from(t.values()))if(Object.keys(e).length===1)return!0;return!1}var Nk, $ oe,z2,Yoe=M(()=>{"use strict";g0();zoe();Goe();XL();VL();Zre();Wm();_w();nT();lT();ZL();o(CFe,"createDFACache");Nk=class{static{o(this,"PredicateSet")}constructor(){this.predicates=[]}is(e){return e>=this.predicates.length||this.predicates[e]}set(e,r){this.predicates[e]=r}toString(){let e="",r=this.predicates.length;for(let n=0;n<r;n++)e+=this.predicates[n]===!0?"1":"0";return e}}, $ oe=new Nk,z2=class extends ju{static{o(this,"LLStarLookaheadStrategy")}constructor(e){var r;super(),this.logging=(r=e?.logging)!==null&&r!==void 0?r:n=>console.log(n)}initialize(e){this.atn=Ooe(e.rules),this.dfas=AFe(this.atn)}validateAmbiguousAlternationAlternatives(){return[]}validateEmptyOrAlternatives(){return[]}buildLookaheadForAlternation(e){let{prodOccurrence:r,rule:n,hasPredicates:i,dynamicTokensEnabled:a}=e,s=this.dfas,l=this.logging,u=y0(n,"Alternation",r),f=this.atn.decisionMap[u].decision,d=Qe(ck({maxLookahead:1,occurrence:r,prodType:"Alternation",rule:n}),p=>Qe(p,m=>m[0]));if(Voe(d,!1)&&!a){let p=qr(d,(m,g,y)=>(Se(g,v=>{v&&(m[v.tokenTypeIdx]=y,Se(v.categoryMatches,x=>{m[x]=y}))}),m),{});return i?function(m){var g;let y=this.LA(1),v=p[y.tokenTypeIdx];if(m!==void 0&&v!==void 0){let x=(g=m[v])===null||g===void 0?void 0:g.GATE;if(x!==void 0&&x.call(this)===!1)return}return v}:function(){let m=this.LA(1);return p[m.tokenTypeIdx]}}else return i?function(p){let m=new Nk,g=p===void 0?0:p.length;for(le
` ,a===" \r "&&i+1<r.length&&r.charAt(i+1)=== `
` &&i++}n&&r.length>0&&e.push(r.length),this._lineOffsets=e}return this._lineOffsets}positionAt(e){e=Math.max(Math.min(e,this._content.length),0);let r=this.getLineOffsets(),n=0,i=r.length;if(i===0)return Xr.create(0,e);for(;n<i;){let s=Math.floor((n+i)/2);r[s]>e?i=s:n=s+1}let a=n-1;return Xr.create(a,e-r[a])}offsetAt(e){let r=this.getLineOffsets();if(e.line>=r.length)return this._content.length;if(e.line<0)return 0;let n=r[e.line],i=e.line+1<r.length?r[e.line+1]:this._content.length;return Math.max(Math.min(n+e.character,i),n)}get lineCount(){return this.getLineOffsets().length}};(function(t){let e=Object.prototype.toString;function r(m){return typeof m<"u"}o(r,"defined"),t.defined=r;function n(m){return typeof m>"u"}o(n,"undefined"),t.undefined=n;function i(m){return m===!0||m===!1}o(i,"boolean"),t.boolean=i;function a(m){return e.call(m)==="[object String]"}o(a,"string"),t.string=a;function s(m){return e.call(m)==="[object Number]"}o(s,"number"),t.number=s;function l(m,g,y){return e.call(m)==="[object Number]"&&g<=m&&m<=y}o(l,"numberRange"),t.numberRange=l;function u(m){return e.call(m)==="[object Number]"&&-2147483648<=m&&m<=2147483647}o(u,"integer"),t.integer=u;function h(m){return e.call(m)==="[object Number]"&&0<=m&&m<=2147483647}o(h,"uinteger"),t.uinteger=h;function f(m){return e.call(m)==="[object Function]"}o(f,"func"),t.func=f;function d(m){return m!==null&&typeof m=="object"}o(d,"objectLiteral"),t.objectLiteral=d;function p(m,g){return Array.isArray(m)&&m.every(g)}o(p,"typedArray"),t.typedArray=p})(ze||(ze={}))});var $ 2,V2,x0,b0,dM,Ng,Fk=M(()=>{"use strict";fM();Zo();zl(); $ 2=class{static{o(this,"CstNodeBuilder")}constructor(){this.nodeStack=[]}get current(){return this.nodeStack[this.nodeStack.length-1]}buildRootNode(e){return this.rootNode=new Ng(e),this.rootNode.root=this.rootNode,this.nodeStack=[this.rootNode],this.rootNode}buildCompositeNode(e){let r=new b0;return r.grammarSource=e,r.root=this.rootNode,this.current.content.push(r),this.nodeStack.push(r),r}buildLeafNode(e,r){let n=new x0(e.startOffset,e.image.length,eg(e),e.tokenType,!1);return n.grammarSource=r,n.root=this.rootNode,this.current.content.push(n),n}removeNode(e){let r=e.container;if(r){let n=r.content.indexOf(e);n>=0&&r.content.splice(n,1)}}construct(e){let r=this.current;typeof e. $ type=="string"&&(this.current.astNode=e),e. $ cstNode=r;let n=this.nodeStack.pop();n?.content.length===0&&this.removeNode(n)}addHiddenTokens(e){for(let r of e){let n=new x0(r.startOffset,r.image.length,eg(r),r.tokenType,!0);n.root=this.rootNode,this.addHiddenToken(this.rootNode,n)}}addHiddenToken(e,r){let{offset:n,end:i}=r;for(let a=0;a<e.content.length;a++){let s=e.content[a],{offset:l,end:u}=s;if(ho(s)&&n>l&&i<u){this.addHiddenToken(s,r);return}else if(i<=l){e.content.splice(a,0,r);return}}e.content.push(r)}},V2=class{static{o(this,"AbstractCstNode")}get parent(){return this.container}get feature(){return this.grammarSource}get hidden(){return!1}get astNode(){var e,r;let n=typeof((e=this._astNode)===null||e===void 0?void 0:e. $ type)=="string"?this._astNode:(r=this.container)===null||r===void 0?void 0:r.astNode;if(!n)throw new Error("This node has no associated AST element");return n}set astNode(e){this._astNode=e}get element(){return this.astNode}get text(){return this.root.fullText.substring(this.offset,this.end)}},x0=class extends V2{static{o(this,"LeafCstNodeImpl")}get offset(){return this._offset}get length(){return this._length}get end(){return this._offset+this._length}get hidden(){return this._hidden}get tokenType(){return this._tokenType}get range(){return this._range}constructor(e,r,n,i,a=!1){super(),this._hidden=a,this._offset=e,this._tokenType=i,this._length=r,this._range=n}},b0=class extends V2{static{o(this,"CompositeCstNodeImpl")}constructor(){super(...arguments),this.content=new dM(this)}get children(){return this.content}get offset(){var e,r;return(r=(e=this.firstNonHiddenNode)===null||e===void 0?void 0:e.offset)!==null&&r!==void 0?r:0}get length(){return this.end-this.offset}get end(){var e,r;return(r=(e=this.lastNonHiddenNode)===null||e===void 0?v
` ;case"r":return" \r ";case"t":return" ";case"v":return" \v ";case"0":return" \0 ";default:return h}}o(r,"convertEscapeCharacter");function n(h){return h.charAt(0)==="^"?h.substring(1):h}o(n,"convertID"),t.convertID=n;function i(h){return parseInt(h)}o(i,"convertInt"),t.convertInt=i;function a(h){return BigInt(h)}o(a,"convertBigint"),t.convertBigint=a;function s(h){return new Date(h)}o(s,"convertDate"),t.convertDate=s;function l(h){return Number(h)}o(l,"convertNumber"),t.convertNumber=l;function u(h){return h.toLowerCase()==="true"}o(u,"convertBoolean"),t.convertBoolean=u})( $ c||( $ c={}))});var AM=Ei(CM=>{"use strict";Object.defineProperty(CM,"__esModule",{value:!0});var EM;function SM(){if(EM===void 0)throw new Error("No runtime abstraction layer installed");return EM}o(SM,"RAL");(function(t){function e(r){if(r===void 0)throw new Error("No runtime abstraction layer provided");EM=r}o(e,"install"),t.install=e})(SM||(SM={}));CM.default=SM});var nce=Ei( $ a=>{"use strict";Object.defineProperty( $ a,"__esModule",{value:!0}); $ a.stringArray= $ a.array= $ a.func= $ a.error= $ a.number= $ a.string= $ a.boolean=void 0;function rze(t){return t===!0||t===!1}o(rze,"boolean"); $ a.boolean=rze;function tce(t){return typeof t=="string"||t instanceof String}o(tce,"string"); $ a.string=tce;function nze(t){return typeof t=="number"||t instanceof Number}o(nze,"number"); $ a.number=nze;function ize(t){return t instanceof Error}o(ize,"error"); $ a.error=ize;function aze(t){return typeof t=="function"}o(aze,"func"); $ a.func=aze;function rce(t){return Array.isArray(t)}o(rce,"array"); $ a.array=rce;function sze(t){return rce(t)&&t.every(e=>tce(e))}o(sze,"stringArray"); $ a.stringArray=sze});var LM=Ei(Mg=>{"use strict";Object.defineProperty(Mg,"__esModule",{value:!0});Mg.Emitter=Mg.Event=void 0;var oze=AM(),ice;(function(t){let e={dispose(){}};t.None=function(){return e}})(ice||(Mg.Event=ice={}));var _M=class{static{o(this,"CallbackList")}add(e,r=null,n){this._callbacks||(this._callbacks=[],this._contexts=[]),this._callbacks.push(e),this._contexts.push(r),Array.isArray(n)&&n.push({dispose:o(()=>this.remove(e,r),"dispose")})}remove(e,r=null){if(!this._callbacks)return;let n=!1;for(let i=0,a=this._callbacks.length;i<a;i++)if(this._callbacks[i]===e)if(this._contexts[i]===r){this._callbacks.splice(i,1),this._contexts.splice(i,1);return}else n=!0;if(n)throw new Error("When adding a listener with a context, you should remove it with the same context")}invoke(...e){if(!this._callbacks)return[];let r=[],n=this._callbacks.slice(0),i=this._contexts.slice(0);for(let a=0,s=n.length;a<s;a++)try{r.push(n[a].apply(i[a],e))}catch(l){(0,oze.default)().console.error(l)}return r}isEmpty(){return!this._callbacks||this._callbacks.length===0}dispose(){this._callbacks=void 0,this._contexts=void 0}},Uk=class t{static{o(this,"Emitter")}constructor(e){this._options=e}get event(){return this._event||(this._event=(e,r,n)=>{this._callbacks||(this._callbacks=new _M),this._options&&this._options.onFirstListenerAdd&&this._callbacks.isEmpty()&&this._options.onFirstListenerAdd(this),this._callbacks.add(e,r);let i={dispose:o(()=>{this._callbacks&&(this._callbacks.remove(e,r),i.dispose=t._noop,this._options&&this._options.onLastListenerRemove&&this._callbacks.isEmpty()&&this._options.onLastListenerRemove(this))},"dispose")};return Array.isArray(n)&&n.push(i),i}),this._event}fire(e){this._callbacks&&this._callbacks.invoke.call(this._callbacks,e)}dispose(){this._callbacks&&(this._callbacks.dispose(),this._callbacks=void 0)}};Mg.Emitter=Uk;Uk._noop=function(){}});var ace=Ei(Ig=>{"use strict";Object.defineProperty(Ig,"__esModule",{value:!0});Ig.CancellationTokenSource=Ig.CancellationToken=void 0;var lze=AM(),cze=nce(),DM=LM(),Hk;(function(t){t.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:DM.Event.None}),t.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:DM.Event.None});function e(r){let n=r;return n&&(n===t.None||n===t.Cancelled||cze.boolean(n.isCancellationRequested)&&!!n.onCancellationRequested)}o(e,"is"),t.is=e})(Hk||(Ig.CancellationToken=Hk={}));var uze=Object.fre
` )? `
` : `
` }var vce,dze,gze,yze,Zk,mx,gx,Jk,sI=M(()=>{"use strict";fM();ig();Uc();o(nI,"parseJSDoc");o(iI,"isJSDoc");o(bce,"getLines");vce=/ \s *(@([ \p {L}][ \p {L} \p {N}]*)?)/uy,dze=/ \{ (@[ \p {L}][ \p {L} \p {N}]*)( \s *)([^ \r \n }]+)? \} /gu;o(pze,"tokenize");o(mze,"buildInlineTokens");gze=/ \S /,yze=/ \s * $ /;o(rI,"skipWhitespace");o(vze,"lastCharacter");o(xze,"parseJSDocComment");o(bze,"parseJSDocElement");o(wze,"appendEmptyLine");o(wce,"parseJSDocText");o(Tze,"parseJSDocInline");o(Tce,"parseJSDocTag");o(kce,"parseJSDocLine");o(aI,"normalizeOptions");o(tI,"normalizeOption");Zk=class{static{o(this,"JSDocCommentImpl")}constructor(e,r){this.elements=e,this.range=r}getTag(e){return this.getAllTags().find(r=>r.name===e)}getTags(e){return this.getAllTags().filter(r=>r.name===e)}getAllTags(){return this.elements.filter(e=>"name"in e)}toString(){let e="";for(let r of this.elements)if(e.length===0)e=r.toString();else{let n=r.toString();e+=xce(e)+n}return e.trim()}toMarkdown(e){let r="";for(let n of this.elements)if(r.length===0)r=n.toMarkdown(e);else{let i=n.toMarkdown(e);r+=xce(r)+i}return r.trim()}},mx=class{static{o(this,"JSDocTagImpl")}constructor(e,r,n,i){this.name=e,this.content=r,this.inline=n,this.range=i}toString(){let e= ` @ $ { this . name } ` ,r=this.content.toString();return this.content.inlines.length===1?e= ` $ { e } $ { r } ` :this.content.inlines.length>1&&(e= ` $ { e }
$ { r } ` ),this.inline? ` { $ { e } } ` :e}toMarkdown(e){var r,n;return(n=(r=e?.renderTag)===null||r===void 0?void 0:r.call(e,this))!==null&&n!==void 0?n:this.toMarkdownDefault(e)}toMarkdownDefault(e){let r=this.content.toMarkdown(e);if(this.inline){let a=kze(this.name,r,e??{});if(typeof a=="string")return a}let n="";e?.tag==="italic"||e?.tag===void 0?n="*":e?.tag==="bold"?n="**":e?.tag==="bold-italic"&&(n="***");let i= ` $ { n } @ $ { this . name } $ { n } ` ;return this.content.inlines.length===1?i= ` $ { i } \u2014 $ { r } ` :this.content.inlines.length>1&&(i= ` $ { i }
$ { r } ` ),this.inline? ` { $ { i } } ` :i}};o(kze,"renderInlineTag");o(Eze,"renderLinkDefault");gx=class{static{o(this,"JSDocTextImpl")}constructor(e,r){this.inlines=e,this.range=r}toString(){let e="";for(let r=0;r<this.inlines.length;r++){let n=this.inlines[r],i=this.inlines[r+1];e+=n.toString(),i&&i.range.start.line>n.range.start.line&&(e+= `
` )}return e}toMarkdown(e){let r="";for(let n=0;n<this.inlines.length;n++){let i=this.inlines[n],a=this.inlines[n+1];r+=i.toMarkdown(e),a&&a.range.start.line>i.range.start.line&&(r+= `
` )}return r}},Jk=class{static{o(this,"JSDocLineImpl")}constructor(e,r){this.text=e,this.range=r}toString(){return this.text}toMarkdown(){return this.text}};o(xce,"fillNewlines")});var yx,oI=M(()=>{"use strict";os();sI();yx=class{static{o(this,"JSDocDocumentationProvider")}constructor(e){this.indexManager=e.shared.workspace.IndexManager,this.commentProvider=e.documentation.CommentProvider}getDocumentation(e){let r=this.commentProvider.getComment(e);if(r&&iI(r))return nI(r).toMarkdown({renderLink:o((i,a)=>this.documentationLinkRenderer(e,i,a),"renderLink"),renderTag:o(i=>this.documentationTagRenderer(e,i),"renderTag")})}documentationLinkRenderer(e,r,n){var i;let a=(i=this.findNameInPrecomputedScopes(e,r))!==null&&i!==void 0?i:this.findNameInGlobalScope(e,r);if(a&&a.nameSegment){let s=a.nameSegment.range.start.line+1,l=a.nameSegment.range.start.character+1,u=a.documentUri.with({fragment: ` L$ { s } , $ { l } ` });return ` [ $ { n } ] ( $ { u . toString ( ) } ) ` }else return}documentationTagRenderer(e,r){}findNameInPrecomputedScopes(e,r){let i=Vi(e).precomputedScopes;if(!i)return;let a=e;do{let l=i.get(a).find(u=>u.name===r);if(l)return l;a=a. $ container}while(a)}findNameInGlobalScope(e,r){return this.indexManager.allElements().find(i=>i.name===r)}}});var vx,lI=M(()=>{"use strict";jk();zl();vx=class{static{o(this,"DefaultCommentProvider")}constructor(e){this.grammarConfig=()=>e.parser.GrammarConfig}getComment(e){var r;return VM(e)?e. $ comment:(r=zD(e. $ cstNode,this.grammarConfig().multilineCommentRules))===null||r===void 0?void 0:r.text}}});var ui={};var cI=M(()=>{"use strict";Sr(ui,Ji(LM(),1))});var xx,uI,hI,fI=M(()=>{"use strict";nl();cI();xx=class{static{o(this,"DefaultAsyncParser")}constructor(e){this.syncParser=e.parser.LangiumParser}parse(e){return Promise.resolve(this.syncParser.parse(e))}},uI=class{static{o(this,"AbstractThreadedAsyncParser")}constructor(e){this.threadCount=8,this.terminationDelay=200,this.workerPool=[],this.queue=[],this.hydrator=e.serializer.Hydrator}initializeWorkers(){for(;this.workerPool.length<this.threadCount;){let e=this.createWorker();e.onReady(()=>{if(this.queue.length>0){let r=this.queue.shift();r&&(e.lock(),r.resolve(e))}}),this.workerPool.push(e)}}async parse(e,r){let n=await this.acquireParserWorker(r),i=new fs,a,s=r.onCancellationRequested(()=>{a=setTimeout(()=>{this.terminateWorker(n)},this.terminationDelay)});return n.parse(e).then(l=>{let u=this.hydrator.hydrate(l);i.resolve(u)}).catch(l=>{i.reject(l)}).finally(()=>{s.dispose(),clearTimeout(a)}),i.promise}terminateWorker(e){e.terminate();let r=this.workerPool.indexOf(e);r>=0&&this.workerPool.splice(r,1)}async acquireParserWorker(e){this.initializeWorkers();for(let n of this.workerPool)if(n.ready)return n.lock(),n;let r=new fs;return e.onCancellationRequested(()=>{let n=this.queue.indexOf(r);n>=0&&this.queue.splice(n,1),r.reject(Vc)}),this.queue.push(r),r.promise}},hI=class{static{o(this,"ParserWorker")}get ready(){return this._ready}get onReady(){return this.onReadyEmitter.event}constructor(e,r,n,i){this.onReadyEmitter=new ui.Emitter,this.deferred=new fs,this._ready=!0,this._parsing=!1,this.sendMessage=e,this._terminate=i,r(a=>{let s=a;this.deferred.resolve(s),this.unlock()}),n(a=>{this.deferred.reject(a),this.unlock()})}terminate(){this.deferred.reject(Vc),this._terminate()}lock(){this._ready=!1}unlock(){this._parsing=!1,this._ready=!0,this.onReadyEmitter.fire()}parse(e){if(this._parsing)throw new Error("Parser worker is busy");return this._parsing=!0,this.deferred=new fs,this.sendMessage(e),this.deferred.promise}}});var bx,dI=M(()=>{"use strict";rl();nl();bx=class{static{o(this,"DefaultWorkspaceLock")}constructor(){this.previousTokenSource=new Ar.CancellationTokenSource,this.writeQueue=[],this.readQueue=[],this.done=!0}write(e){this.cancelWrite();let r=new Ar.CancellationTokenSource;return this.previousTokenSource=r,this.enqueue(this.writeQueue,e,r.token)}read(e){return this.enqueue(this.readQueue,e)}enqueue(e,r,n){let i=new fs,a={action:r,deferred:i,cancellationToken:n??Ar.CancellationToken.None};return e.push(a),this.performNextOperation(),i.promise}async perf
` )}}},A0=class extends Ug{static{o(this,"CommonValueConverter")}static{Rt(this,"CommonValueConverter")}runCustomConverter(t,e,r){}},il=class extends T0{static{o(this,"AbstractMermaidTokenBuilder")}static{Rt(this,"AbstractMermaidTokenBuilder")}constructor(t){super(),this.keywords=new Set(t)}buildKeywordTokens(t,e,r){let n=super.buildKeywordTokens(t,e,r);return n.forEach(i=>{this.keywords.has(i.name)&&i.PATTERN!==void 0&&(i.PATTERN=new RegExp(i.PATTERN.toString()+"(?:(?=%%)|(?! \\ S))"))}),n}},qze=class extends il{static{o(this,"CommonTokenBuilder")}static{Rt(this,"CommonTokenBuilder")}}});function nE(t=vo){let e=Wi(yo(t),Wl),r=Wi(go({shared:e}),_I,rE);return e.ServiceRegistry.register(r),{shared:e,GitGraph:r}}var Xze,rE,LI=M(()=>{"use strict";al();Wc();Xze=class extends il{static{o(this,"GitGraphTokenBuilder")}static{Rt(this,"GitGraphTokenBuilder")}constructor(){super(["gitGraph"])}},rE={parser:{TokenBuilder:Rt(()=>new Xze,"TokenBuilder"),ValueConverter:Rt(()=>new A0,"ValueConverter")}};o(nE,"createGitGraphServices");Rt(nE,"createGitGraphServices")});function aE(t=vo){let e=Wi(yo(t),Wl),r=Wi(go({shared:e}),EI,iE);return e.ServiceRegistry.register(r),{shared:e,Info:r}}var jze,iE,DI=M(()=>{"use strict";al();Wc();jze=class extends il{static{o(this,"InfoTokenBuilder")}static{Rt(this,"InfoTokenBuilder")}constructor(){super(["info","showInfo"])}},iE={parser:{TokenBuilder:Rt(()=>new jze,"TokenBuilder"),ValueConverter:Rt(()=>new A0,"ValueConverter")}};o(aE,"createInfoServices");Rt(aE,"createInfoServices")});function oE(t=vo){let e=Wi(yo(t),Wl),r=Wi(go({shared:e}),SI,sE);return e.ServiceRegistry.register(r),{shared:e,Packet:r}}var Kze,sE,NI=M(()=>{"use strict";al();Wc();Kze=class extends il{static{o(this,"PacketTokenBuilder")}static{Rt(this,"PacketTokenBuilder")}constructor(){super(["packet-beta"])}},sE={parser:{TokenBuilder:Rt(()=>new Kze,"TokenBuilder"),ValueConverter:Rt(()=>new A0,"ValueConverter")}};o(oE,"createPacketServices");Rt(oE,"createPacketServices")});function cE(t=vo){let e=Wi(yo(t),Wl),r=Wi(go({shared:e}),CI,lE);return e.ServiceRegistry.register(r),{shared:e,Pie:r}}var Qze,Zze,lE,RI=M(()=>{"use strict";al();Wc();Qze=class extends il{static{o(this,"PieTokenBuilder")}static{Rt(this,"PieTokenBuilder")}constructor(){super(["pie","showData"])}},Zze=class extends Ug{static{o(this,"PieValueConverter")}static{Rt(this,"PieValueConverter")}runCustomConverter(t,e,r){if(t.name==="PIE_SECTION_LABEL")return e.replace(/"/g,"").trim()}},lE={parser:{TokenBuilder:Rt(()=>new Qze,"TokenBuilder"),ValueConverter:Rt(()=>new Zze,"ValueConverter")}};o(cE,"createPieServices");Rt(cE,"createPieServices")});function hE(t=vo){let e=Wi(yo(t),Wl),r=Wi(go({shared:e}),AI,uE);return e.ServiceRegistry.register(r),{shared:e,Architecture:r}}var Jze,eGe,uE,MI=M(()=>{"use strict";al();Wc();Jze=class extends il{static{o(this,"ArchitectureTokenBuilder")}static{Rt(this,"ArchitectureTokenBuilder")}constructor(){super(["architecture"])}},eGe=class extends Ug{static{o(this,"ArchitectureValueConverter")}static{Rt(this,"ArchitectureValueConverter")}runCustomConverter(t,e,r){if(t.name==="ARCH_ICON")return e.replace(/[()]/g,"").trim();if(t.name==="ARCH_TEXT_ICON")return e.replace(/["()]/g,"");if(t.name==="ARCH_TITLE")return e.replace(/[[ \] ]/g,"").trim()}},uE={parser:{TokenBuilder:Rt(()=>new Jze,"TokenBuilder"),ValueConverter:Rt(()=>new eGe,"ValueConverter")}};o(hE,"createArchitectureServices");Rt(hE,"createArchitectureServices")});var uue={};vr(uue,{InfoModule:()=>iE,createInfoServices:()=>aE});var hue=M(()=>{"use strict";DI();al()});var fue={};vr(fue,{PacketModule:()=>sE,createPacketServices:()=>oE});var due=M(()=>{"use strict";NI();al()});var pue={};vr(pue,{PieModule:()=>lE,createPieServices:()=>cE});var mue=M(()=>{"use strict";RI();al()});var gue={};vr(gue,{ArchitectureModule:()=>uE,createArchitectureServices:()=>hE});var yue=M(()=>{"use strict";MI();al()});var vue={};vr(vue,{GitGraphModule:()=>rE,createGitGraphServices:()=>nE});var xue=M(()=>{"use strict";LI();al()});async function Yl(t,e){let r=tGe[t];if(!r)throw new Error( ` Unknown diagram type : $ { t } ` );_0[t]||aw
` ),r=t.parserErrors.map(n=>n.message).join( `
` );super( ` Parsing failed : $ { e } $ { r } ` ),this.result=t}static{Rt(this,"MermaidParseError")}}});function yf(t,e){t.accDescr&&e.setAccDescription?.(t.accDescr),t.accTitle&&e.setAccTitle?.(t.accTitle),t.title&&e.setDiagramTitle?.(t.title)}var Tx=M(()=>{"use strict";o(yf,"populateCommonDb")});var jr,fE=M(()=>{"use strict";jr={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4}});var vf,dE=M(()=>{"use strict";vf=class{constructor(e){this.init=e;this.records=this.init()}static{o(this,"ImperativeState")}reset(){this.records=this.init()}}});function II(){return n9({length:7})}function iGe(t,e){let r=Object.create(null);return t.reduce((n,i)=>{let a=e(i);return r[a]||(r[a]=!0,n.push(i)),n},[])}function bue(t,e,r){let n=t.indexOf(e);n===-1?t.push(r):t.splice(n,1,r)}function Tue(t){let e=t.reduce((i,a)=>i.seq>a.seq?i:a,t[0]),r="";t.forEach(function(i){i===e?r+=" *":r+=" |"});let n=[r,e.id,e.seq];for(let i in Tt.records.branches)Tt.records.branches.get(i)===e.id&&n.push(i);if(Y.debug(n.join(" ")),e.parents&&e.parents.length==2&&e.parents[0]&&e.parents[1]){let i=Tt.records.commits.get(e.parents[0]);bue(t,e,i),e.parents[1]&&t.push(Tt.records.commits.get(e.parents[1]))}else{if(e.parents.length==0)return;if(e.parents[0]){let i=Tt.records.commits.get(e.parents[0]);bue(t,e,i)}}t=iGe(t,i=>i.id),Tue(t)}var nGe,L0,Tt,aGe,sGe,oGe,lGe,cGe,uGe,hGe,wue,fGe,dGe,pGe,mGe,gGe,kue,yGe,vGe,xGe,pE,OI=M(()=>{"use strict";ut();hr();Za();fr();Ai();fE();dE();bs();nGe=ur.gitGraph,L0=o(()=>Ds({...nGe,...Cr().gitGraph}),"getConfig"),Tt=new vf(()=>{let t=L0(),e=t.mainBranchName,r=t.mainBranchOrder;return{mainBranchName:e,commits:new Map,head:null,branchConfig:new Map([[e,{name:e,order:r}]]),branches:new Map([[e,null]]),currBranch:e,direction:"LR",seq:0,options:{}}});o(II,"getID");o(iGe,"uniqBy");aGe=o(function(t){Tt.records.direction=t},"setDirection"),sGe=o(function(t){Y.debug("options str",t),t=t?.trim(),t=t||"{}";try{Tt.records.options=JSON.parse(t)}catch(e){Y.error("error while parsing gitGraph options",e.message)}},"setOptions"),oGe=o(function(){return Tt.records.options},"getOptions"),lGe=o(function(t){let e=t.msg,r=t.id,n=t.type,i=t.tags;Y.info("commit",e,r,n,i),Y.debug("Entering commit:",e,r,n,i);let a=L0();r=qe.sanitizeText(r,a),e=qe.sanitizeText(e,a),i=i?.map(l=>qe.sanitizeText(l,a));let s={id:r||Tt.records.seq+"-"+II(),message:e,seq:Tt.records.seq++,type:n??jr.NORMAL,tags:i??[],parents:Tt.records.head==null?[]:[Tt.records.head.id],branch:Tt.records.currBranch};Tt.records.head=s,Y.info("main branch",a.mainBranchName),Tt.records.commits.set(s.id,s),Tt.records.branches.set(Tt.records.currBranch,s.id),Y.debug("in pushCommit "+s.id)},"commit"),cGe=o(function(t){let e=t.name,r=t.order;if(e=qe.sanitizeText(e,L0()),Tt.records.branches.has(e))throw new Error( ` Trying to create an existing branch . ( Help : Either use a new name if you want create a new branch or try using "checkout ${e}" ) ` );Tt.records.branches.set(e,Tt.records.head!=null?Tt.records.head.id:null),Tt.records.branchConfig.set(e,{name:e,order:r}),wue(e),Y.debug("in createBranch")},"branch"),uGe=o(t=>{let e=t.branch,r=t.id,n=t.type,i=t.tags,a=L0();e=qe.sanitizeText(e,a),r&&(r=qe.sanitizeText(r,a));let s=Tt.records.branches.get(Tt.records.currBranch),l=Tt.records.branches.get(e),u=s?Tt.records.commits.get(s):void 0,h=l?Tt.records.commits.get(l):void 0;if(u&&h&&u.branch===e)throw new Error( ` Cannot merge branch '${e}' into itself . ` );if(Tt.records.currBranch===e){let p=new Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw p.hash={text: ` merge $ { e } ` ,token: ` merge $ { e } ` ,expected:["branch abc"]},p}if(u===void 0||!u){let p=new Error( ` Incorrect usage of "merge" . Current branch ( $ { Tt . records . currBranch } ) has no commits ` );throw p.hash={text: ` merge $ { e } ` ,token: ` merge $ { e } ` ,expected:["commit"]},p}if(!Tt.records.branches.has(e)){let p=new Error('Incorrect usage of "merge". Branch to be merged ('+e+") does not exist");throw p.hash={text: ` merge $ { e } ` ,token: ` merge $ { e } ` ,expected:[ ` branch $ { e } ` ]},p}if(h===void 0||!h){let p=new Error('Incorrect usage of "merge". Branch to be merged ('+e+") has no
$ { n - a / 2 - Yc / 2 } , $ { m + Zu }
$ { n - a / 2 - Yc / 2 } , $ { m - Zu }
$ { r . posWithOffset - a / 2 - Yc } , $ { m - p - Zu }
$ { r . posWithOffset + a / 2 + Yc } , $ { m - p - Zu }
$ { r . posWithOffset + a / 2 + Yc } , $ { m + p + Zu }
$ { r . posWithOffset - a / 2 - Yc } , $ { m + p + Zu } ` ),h.attr("cy",m).attr("cx",n-a/2+Yc/2).attr("r",1.5).attr("class","tag-hole"),Rr==="TB"||Rr==="BT"){let g=n+d;f.attr("class","tag-label-bkg").attr("points", `
$ { r . x } , $ { g + 2 }
$ { r . x } , $ { g - 2 }
$ { r . x + bf } , $ { g - p - 2 }
$ { r . x + bf + a + 4 } , $ { g - p - 2 }
$ { r . x + bf + a + 4 } , $ { g + p + 2 }
$ { r . x + bf } , $ { g + p + 2 } ` ).attr("transform","translate(12,12) rotate(45, "+r.x+","+n+")"),h.attr("cx",r.x+Yc/2).attr("cy",g).attr("transform","translate(12,12) rotate(45, "+r.x+","+n+")"),u.attr("x",r.x+5).attr("y",g+3).attr("transform","translate(14,14) rotate(45, "+r.x+","+n+")")}}}},"drawCommitTags"),FGe=o(t=>{switch(t.customType??t.type){case jr.NORMAL:return"commit-normal";case jr.REVERSE:return"commit-reverse";case jr.HIGHLIGHT:return"commit-highlight";case jr.MERGE:return"commit-merge";case jr.CHERRY_PICK:return"commit-cherry-pick";default:return"commit-normal"}},"getCommitClassType"),zGe=o((t,e,r,n)=>{let i={x:0,y:0};if(t.parents.length>0){let a=_ue(t.parents);if(a){let s=n.get(a)??i;return e==="TB"?s.y+wf:e==="BT"?(n.get(t.id)??i).y-wf:s.x+wf}}else return e==="TB"?mE:e==="BT"?(n.get(t.id)??i).y-wf:0;return 0},"calculatePosition"),GGe=o((t,e,r)=>{let n=Rr==="BT"&&r?e:e+bf,i=Rr==="TB"||Rr==="BT"?n:Ws.get(t.branch)?.pos,a=Rr==="TB"||Rr==="BT"?Ws.get(t.branch)?.pos:n;if(a===void 0||i===void 0)throw new Error( ` Position were undefined for commit $ { t . id } ` );return{x:a,y:i,posWithOffset:n}},"getCommitPosition"),Cue=o((t,e,r)=>{if(!sl)throw new Error("GitGraph config not found");let n=t.append("g").attr("class","commit-bullets"),i=t.append("g").attr("class","commit-labels"),a=Rr==="TB"||Rr==="BT"?mE:0,s=[...e.keys()],l=sl?.parallelCommits??!1,u=o((f,d)=>{let p=e.get(f)?.seq,m=e.get(d)?.seq;return p!==void 0&&m!==void 0?p-m:0},"sortKeys"),h=s.sort(u);Rr==="BT"&&(l&&DGe(h,e,a),h=h.reverse()),h.forEach(f=>{let d=e.get(f);if(!d)throw new Error( ` Commit not found for key $ { f } ` );l&&(a=zGe(d,Rr,a,Ys));let p=GGe(d,a,l);if(r){let m=FGe(d),g=d.customType??d.type,y=Ws.get(d.branch)?.index??0;OGe(n,d,p,m,y,g),PGe(i,d,p,a),BGe(i,d,p,a)}Rr==="TB"||Rr==="BT"?Ys.set(d.id,{x:p.x,y:p.posWithOffset}):Ys.set(d.id,{x:p.posWithOffset,y:p.y}),a=Rr==="BT"&&l?a+wf:a+wf+bf,a>xf&&(xf=a)})},"drawCommits"), $ Ge=o((t,e,r,n,i)=>{let s=(Rr==="TB"||Rr==="BT"?r.x<n.x:r.y<n.y)?e.branch:t.branch,l=o(h=>h.branch===s,"isOnBranchToGetCurve"),u=o(h=>h.seq>t.seq&&h.seq<e.seq,"isBetweenCommits");return[...i.values()].some(h=>u(h)&&l(h))},"shouldRerouteArrow"),Ex=o((t,e,r=0)=>{let n=t+Math.abs(t-e)/2;if(r>5)return n;if(gE.every(s=>Math.abs(s-n)>=10))return gE.push(n),n;let a=Math.abs(t-e);return Ex(t,e-a/5,r+1)},"findLane"),VGe=o((t,e,r,n)=>{let i=Ys.get(e.id),a=Ys.get(r.id);if(i===void 0||a===void 0)throw new Error( ` Commit positions not found for commits $ { e . id } and $ { r . id } ` );let s= $ Ge(e,r,i,a,n),l="",u="",h=0,f=0,d=Ws.get(r.branch)?.index;r.type===jr.MERGE&&e.id!==r.parents[0]&&(d=Ws.get(e.branch)?.index);let p;if(s){l="A 10 10, 0, 0, 0,",u="A 10 10, 0, 0, 1,",h=10,f=10;let m=i.y<a.y?Ex(i.y,a.y):Ex(a.y,i.y),g=i.x<a.x?Ex(i.x,a.x):Ex(a.x,i.x);Rr==="TB"?i.x<a.x?p= ` M $ { i . x } $ { i . y } L $ { g - h } $ { i . y } $ { u } $ { g } $ { i . y + f } L $ { g } $ { a . y - h } $ { l } $ { g + f } $ { a . y } L $ { a . x } $ { a . y } ` :(d=Ws.get(e.branch)?.index,p= ` M $ { i . x } $ { i . y } L $ { g + h } $ { i . y } $ { l } $ { g } $ { i . y + f } L $ { g } $ { a . y - h } $ { u } $ { g - f } $ { a . y } L $ { a . x } $ { a . y } ` ):Rr==="BT"?i.x<a.x?p= ` M $ { i . x } $ { i . y } L $ { g - h } $ { i . y } $ { l } $ { g } $ { i . y - f } L $ { g } $ { a . y + h } $ { u } $ { g + f } $ { a . y } L $ { a . x } $ { a . y } ` :(d=Ws.get(e.branch)?.index,p= ` M $ { i . x } $ { i . y } L $ { g + h } $ { i . y } $ { u } $ { g } $ { i . y - f } L $ { g } $ { a . y + h } $ { l } $ { g - f } $ { a . y } L $ { a . x } $ { a . y } ` ):i.y<a.y?p= ` M $ { i . x } $ { i . y } L $ { i . x } $ { m - h } $ { l } $ { i . x + f } $ { m } L $ { a . x - h } $ { m } $ { u } $ { a . x } $ { m + f } L $ { a . x } $ { a . y } ` :(d=Ws.get(e.branch)?.index,p= ` M $ { i . x } $ { i . y } L $ { i . x } $ { m + h } $ { u } $ { i . x + f } $ { m } L $ { a . x - h } $ { m } $ { l } $ { a . x } $ { m - f } L $ { a . x } $ { a . y } ` )}else l="A 20 20, 0, 0, 0,",u="A 20 20, 0, 0, 1,",h=20,f=20,Rr==="TB"?(i.x<a.x&&(r.type===jr.MERGE&&e.id!==r.parents[0]?p= ` M $ { i . x } $ { i . y } L $ { i . x } $ { a . y - h } $ { l } $ { i . x + f } $ { a . y } L $ { a . x } $ { a . y } ` :p= ` M $ { i . x } $ { i . y } L $ { a . x - h } $ { i . y } $ { u } $ { a . x } $ { i . y + f } L $ { a . x } $ { a . y } ` ),i.x>a.x&&(l="A 20 20, 0, 0, 0,",u="A 20 20, 0, 0, 1,",h=20,f=20,r.type===jr.MERGE&&e.id!==r.parents[0]?p= ` M $ { i . x } $ { i . y } L $ { i . x } $ { a . y - h } $ { u } $ { i . x - f } $ { a . y } L $ { a . x } $ { a . y } ` :p= ` M $ { i . x } $ { i . y } L $ { a . x + h } $ { i . y } $ { l } $ { a . x } $ { i . y + f } L $ { a . x } $ { a . y } ` ),i.x===a.x&&(p= ` M $ { i . x } $ { i . y } L $ { a . x } $ { a . y } ` )):Rr==="BT
` ,"id:",e,r),!sl)throw new Error("GitGraph config not found");let i=sl.rotateCommitLabel??!1,a=n.db;kx=a.getCommits();let s=a.getBranchesAsObjArray();Rr=a.getDirection();let l=Ve( ` [ id = "${e}" ] ` ),u=0;s.forEach((h,f)=>{let d=Aue(h.name),p=l.append("g"),m=p.insert("g").attr("class","branchLabel"),g=m.insert("g").attr("class","label branch-label");g.node()?.appendChild(d);let y=d.getBBox();u=WGe(h.name,u,f,y,i),g.remove(),m.remove(),p.remove()}),Cue(l,kx,!1),sl.showBranches&&HGe(l,s),UGe(l,kx),Cue(l,kx,!0),Ut.insertTitle(l,"gitTitleText",sl.titleTopMargin??0,a.getDiagramTitle()),o7(void 0,l,sl.diagramPadding,sl.useMaxWidth)},"draw"),Lue={draw:YGe}});var qGe,Nue,Rue=M(()=>{"use strict";qGe=o(t=> `
2023-09-19 12:31:17 +02: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 ) ;
}
2024-11-13 12:07:54 +02:00
$ { [ 0 , 1 , 2 , 3 , 4 , 5 , 6 , 7 ] . map ( e => `
. branch - label$ { e } { fill : $ { t [ "gitBranchLabel" + e ] } ; }
. commit$ { e } { stroke : $ { t [ "git" + e ] } ; fill : $ { t [ "git" + e ] } ; }
. commit - highlight$ { e } { stroke : $ { t [ "gitInv" + e ] } ; fill : $ { t [ "gitInv" + e ] } ; }
. label$ { e } { fill : $ { t [ "git" + e ] } ; }
. arrow$ { e } { stroke : $ { t [ "git" + e ] } ; }
2023-09-19 12:31:17 +02:00
` ).join( `
` )}
. branch {
stroke - width : 1 ;
2024-11-13 12:07:54 +02:00
stroke : $ { t . lineColor } ;
2023-09-19 12:31:17 +02:00
stroke - dasharray : 2 ;
}
2024-11-13 12:07:54 +02:00
. commit - label { font - size : $ { t . commitLabelFontSize } ; fill : $ { t . commitLabelColor } ; }
. commit - label - bkg { font - size : $ { t . commitLabelFontSize } ; fill : $ { t . commitLabelBackground } ; opacity : 0.5 ; }
. tag - label { font - size : $ { t . tagLabelFontSize } ; fill : $ { t . tagLabelColor } ; }
. tag - label - bkg { fill : $ { t . tagLabelBackground } ; stroke : $ { t . tagLabelBorder } ; }
. tag - hole { fill : $ { t . textColor } ; }
2023-09-19 12:31:17 +02:00
. commit - merge {
2024-11-13 12:07:54 +02:00
stroke : $ { t . primaryColor } ;
fill : $ { t . primaryColor } ;
2023-09-19 12:31:17 +02:00
}
. commit - reverse {
2024-11-13 12:07:54 +02:00
stroke : $ { t . primaryColor } ;
fill : $ { t . primaryColor } ;
2023-09-19 12:31:17 +02:00
stroke - width : 3 ;
}
. commit - highlight - outer {
}
. commit - highlight - inner {
2024-11-13 12:07:54 +02:00
stroke : $ { t . primaryColor } ;
fill : $ { t . primaryColor } ;
2023-09-19 12:31:17 +02:00
}
. arrow { stroke - width : 8 ; stroke - linecap : round ; fill : none }
. gitTitleText {
text - anchor : middle ;
font - size : 18 px ;
2024-11-13 12:07:54 +02:00
fill : $ { t . textColor } ;
}
` ,"getStyles"),Nue=qGe});var Mue={};vr(Mue,{diagram:()=>XGe});var XGe,Iue=M(()=>{"use strict";Sue();OI();Due();Rue();XGe={parser:Eue,db:pE,renderer:Lue,styles:Nue}});var PI,Bue,Fue=M(()=>{"use strict";PI=function(){var t=o(function(R,C,O,N){for(O=O||{},N=R.length;N--;O[R[N]]=C);return O},"o"),e=[6,8,10,12,13,14,15,16,17,18,20,21,22,23,24,25,26,27,28,29,30,31,33,35,36,38,40],r=[1,26],n=[1,27],i=[1,28],a=[1,29],s=[1,30],l=[1,31],u=[1,32],h=[1,33],f=[1,34],d=[1,9],p=[1,10],m=[1,11],g=[1,12],y=[1,13],v=[1,14],x=[1,15],b=[1,16],w=[1,19],_=[1,20],T=[1,21],E=[1,22],L=[1,23],S=[1,25],A=[1,35],I={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,start:3,gantt:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NL:10,weekday:11,weekday_monday:12,weekday_tuesday:13,weekday_wednesday:14,weekday_thursday:15,weekday_friday:16,weekday_saturday:17,weekday_sunday:18,weekend:19,weekend_friday:20,weekend_saturday:21,dateFormat:22,inclusiveEndDates:23,topAxis:24,axisFormat:25,tickInterval:26,excludes:27,includes:28,todayMarker:29,title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,section:36,clickStatement:37,taskTxt:38,taskData:39,click:40,callbackname:41,callbackargs:42,href:43,clickStatementDebug:44, $ accept:0, $ end:1},terminals_:{2:"error",4:"gantt",6:"EOF",8:"SPACE",10:"NL",12:"weekday_monday",13:"weekday_tuesday",14:"weekday_wednesday",15:"weekday_thursday",16:"weekday_friday",17:"weekday_saturday",18:"weekday_sunday",20:"weekend_friday",21:"weekend_saturday",22:"dateFormat",23:"inclusiveEndDates",24:"topAxis",25:"axisFormat",26:"tickInterval",27:"excludes",28:"includes",29:"todayMarker",30:"title",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",36:"section",38:"taskTxt",39:"taskData",40:"click",41:"callbackname",42:"callbackargs",43:"href"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[19,1],[19,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,2],[37,2],[37,3],[37,3],[37,4],[37,3],[37,4],[37,2],[44,2],[44,3],[44,3],[44,4],[44,3],[44,4],[44,2]],performAction:o(function(C,O,N,P,F,B,G){var z=B.length-1;switch(F){case 1:return B[z-1];case 2:this. $ =[];break;case 3:B[z-1].push(B[z]),this. $ =B[z-1];break;case 4:case 5:this. $ =B[z];break;case 6:case 7:this. $ =[];break;case 8:P.setWeekday("monday");break;case 9:P.setWeekday("tuesday");break;case 10:P.setWeekday("wednesday");break;case 11:P.setWeekday("thursday");break;case 12:P.setWeekday("friday");break;case 13:P.setWeekday("saturday");break;case 14:P.setWeekday("sunday");break;case 15:P.setWeekend("friday");break;case 16:P.setWeekend("saturday");break;case 17:P.setDateFormat(B[z].substr(11)),this. $ =B[z].substr(11);break;case 18:P.enableInclusiveEndDates(),this. $ =B[z].substr(18);break;case 19:P.TopAxis(),this. $ =B[z].substr(8);break;case 20:P.setAxisFormat(B[z].substr(11)),this. $ =B[z].substr(11);break;case 21:P.setTickInterval(B[z].substr(13)),this. $ =B[z].substr(13);break;case 22:P.setExcludes(B[z].substr(9)),this. $ =B[z].substr(9);break;case 23:P.setIncludes(B[z].substr(9)),this. $ =B[z].substr(9);break;case 24:P.setTodayMarker(B[z].substr(12)),this. $ =B[z].substr(12);break;case 27:P.setDiagramTitle(B[z].substr(6)),this. $ =B[z].substr(6);break;case 28:this. $ =B[z].trim(),P.setAccTitle(this. $ );break;case 29:case 30:this. $ =B[z].trim(),P.setAccDescription(this. $ );break;case 31:P.addSection(B[z].substr(8)),this. $ =B[z].substr(8);break;case 33:P.addTask(B[z-1],B[z]),this. $ ="task";break;case 34:this. $ =B[z-1],P.setClickEvent(B[z-1],B[z],null);break;case 35:this. $ =B[z-2],P.setClickEvent(B[z-2],B[z-1],B[z]);break;case 36:this. $ =B[z-2],P.setClickEvent(B[z-2],B[z-1],null),P.setLink(B[z-2],B[z]);break;case 37:this. $ =B[z-3],P.setClickEvent(B[z-3],B[z-2],B[z-1]),P.setLink(B[z-3],B[z]);break;case 38:this. $ =B[z-2],P.setClickEvent(B[z-2],B[z],null),P.setLink(B[z-2],B[z-1]);break;case 39:this. $ =B[z-3],P.setClickEvent(B[z-3],B[z-1],B[z]),P.setLink(B[z-3],B[z-2]);break;case 40:this. $ =B[z-1],P.setLink(B[z-1],
` +J.showPosition()+ `
Expecting ` +X.join(", ")+", got '"+(this.terminals_[te]||te)+"'":fe="Parse error on line "+(W+1)+": Unexpected "+(te==K?"end of input":"'"+(this.terminals_[te]||te)+"'"),this.parseError(fe,{text:J.match,token:this.terminals_[te]||te,line:J.yylineno,loc:Q,expected:X})}if(ke[0]instanceof Array&&ke.length>1)throw new Error("Parse Error: multiple actions possible at state: "+se+", token: "+te);switch(ke[0]){case 1:N.push(te),F.push(J.yytext),B.push(J.yylloc),N.push(ke[1]),te=null,Ne?(te=Ne,Ne=null):(Z=J.yyleng,z=J.yytext,W=J.yylineno,Q=J.yylloc,j>0&&j--);break;case 2:if( $ e=this.productions_[ke[1]][1],Pe. $ =F[F.length- $ e],Pe._ $ ={first_line:B[B.length-( $ e||1)].first_line,last_line:B[B.length-1].last_line,first_column:B[B.length-( $ e||1)].first_column,last_column:B[B.length-1].last_column},ae&&(Pe._ $ .range=[B[B.length-( $ e||1)].range[0],B[B.length-1].range[1]]),Ce=this.performAction.apply(Pe,[z,Z,W,H.yy,ke[1],F,B].concat(ee)),typeof Ce<"u")return Ce; $ e&&(N=N.slice(0,-1* $ e*2),F=F.slice(0,-1* $ e),B=B.slice(0,-1* $ e)),N.push(this.productions_[ke[1]][0]),F.push(Pe. $ ),B.push(Pe._ $ ),ye=G[N[N.length-2]][N[N.length-1]],N.push(ye);break;case 3:return!0}}return!0},"parse")},D=function(){var R={EOF:1,parseError:o(function(O,N){if(this.yy.parser)this.yy.parser.parseError(O,N);else throw new Error(O)},"parseError"),setInput:o(function(C,O){return this.yy=O||this.yy||{},this._input=C,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:o(function(){var C=this._input[0];this.yytext+=C,this.yyleng++,this.offset++,this.match+=C,this.matched+=C;var O=C.match(/(?: \r \n ?| \n ).*/g);return O?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),C},"input"),unput:o(function(C){var O=C.length,N=C.split(/(?: \r \n ?| \n )/g);this._input=C+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-O),this.offset-=O;var P=this.match.split(/(?: \r \n ?| \n )/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),N.length-1&&(this.yylineno-=N.length-1);var F=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:N?(N.length===P.length?this.yylloc.first_column:0)+P[P.length-N.length].length-N[0].length:this.yylloc.first_column-O},this.options.ranges&&(this.yylloc.range=[F[0],F[0]+this.yyleng-O]),this.yyleng=this.yytext.length,this},"unput"),more:o(function(){return this._more=!0,this},"more"),reject:o(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+ ` . You can only invoke reject ( ) in the lexer when the lexer is of the backtracking persuasion ( options . backtrack _lexer = true ) .
` +this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:o(function(C){this.unput(this.match.slice(C))},"less"),pastInput:o(function(){var C=this.matched.substr(0,this.matched.length-this.match.length);return(C.length>20?"...":"")+C.substr(-20).replace(/ \n /g,"")},"pastInput"),upcomingInput:o(function(){var C=this.match;return C.length<20&&(C+=this._input.substr(0,20-C.length)),(C.substr(0,20)+(C.length>20?"...":"")).replace(/ \n /g,"")},"upcomingInput"),showPosition:o(function(){var C=this.pastInput(),O=new Array(C.length+1).join("-");return C+this.upcomingInput()+ `
` +O+"^"},"showPosition"),test_match:o(function(C,O){var N,P,F;if(this.options.backtrack_lexer&&(F={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(F.yylloc.range=this.yylloc.range.slice(0))),P=C[0].match(/(?: \r \n ?| \n ).*/g),P&&(this.yylineno+=P.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:P?P[P.length-1].length-P[P.length-1].match(/ \r ? \n ?/)[0].length:this.yylloc.last_column+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,O,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),N)return N;if(this._backtrack){for(var B in F)this[B]=F[B];return!1}return!1},"test_match"),next:o(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var C,O,N,P;this._more||(this.yytext="",this.match="");for(var F=this._currentRules(),B=0;B<F.length;B++)if(N=this._input.match(this.rules[F[B]]),N&&(!O||N[0].length>O[0].length)){if(O=N,P=B,this.options.backtrack_lexer){if(C=this.test_match(N,F[B]),C!==!1)return C;if(this._backtrack){O=!1;continue}else return!1}else if(!this.options.flex)break}return O?(C=this.test_match(O,F[P]),C!==!1?C:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+ ` . Unrecognized text .
` +this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:o(function(){var O=this.next();return O||this.lex()},"lex"),begin:o(function(O){this.conditionStack.push(O)},"begin"),popState:o(function(){var O=this.conditionStack.length-1;return O>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:o(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:o(function(O){return O=this.conditionStack.length-1-Math.abs(O||0),O>=0?this.conditionStack[O]:"INITIAL"},"topState"),pushState:o(function(O){this.begin(O)},"pushState"),stateStackSize:o(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:o(function(O,N,P,F){var B=F;switch(P){case 0:return this.begin("open_directive"),"open_directive";break;case 1:return this.begin("acc_title"),31;break;case 2:return this.popState(),"acc_title_value";break;case 3:return this.begin("acc_descr"),33;break;case 4:return this.popState(),"acc_descr_value";break;case 5:this.begin("acc_descr_multiline");break;case 6:this.popState();break;case 7:return"acc_descr_multiline_value";case 8:break;case 9:break;case 10:break;case 11:return 10;case 12:break;case 13:break;case 14:this.begin("href");break;case 15:this.popState();break;case 16:return 43;case 17:this.begin("callbackname");break;case 18:this.popState();break;case 19:this.popState(),this.begin("callbackargs");break;case 20:return 41;case 21:this.popState();break;case 22:return 42;case 23:this.begin("click");break;case 24:this.popState();break;case 25:return 40;case 26:return 4;case 27:return 22;case 28:return 23;case 29:return 24;case 30:return 25;case 31:return 26;case 32:return 28;case 33:return 27;case 34:return 29;case 35:return 12;case 36:return 13;case 37:return 14;case 38:return 15;case 39:return 16;case 40:return 17;case 41:return 18;case 42:return 20;case 43:return 21;case 44:return"date";case 45:return 30;case 46:return"accDescription";case 47:return 36;case 48:return 38;case 49:return 39;case 50:return":";case 51:return 6;case 52:return"INVALID"}},"anonymous"),rules:[/^(?:%% \{ )/i,/^(?:accTitle \s *: \s *)/i,/^(?:(?! \n ||)*[^ \n ]*)/i,/^(?:accDescr \s *: \s *)/i,/^(?:(?! \n ||)*[^ \n ]*)/i,/^(?:accDescr \s * \{ \s *)/i,/^(?:[ \} ])/i,/^(?:[^ \} ]*)/i,/^(?:%%(?! \{ )*[^ \n ]*)/i,/^(?:[^ \} ]%%*[^ \n ]*)/i,/^(?:%%*[^ \n ]*[ \n ]*)/i,/^(?:[ \n ]+)/i,/^(?: \s +)/i,/^(?:%[^ \n ]*)/i,/^(?:href[ \s ]+["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:call[ \s ]+)/i,/^(?: \( [ \s ]* \) )/i,/^(?: \( )/i,/^(?:[^(]*)/i,/^(?: \) )/i,/^(?:[^)]*)/i,/^(?:click[ \s ]+)/i,/^(?:[ \s \n ])/i,/^(?:[^ \s \n ]*)/i,/^(?:gantt \b )/i,/^(?:dateFormat \s [^# \n ;]+)/i,/^(?:inclusiveEndDates \b )/i,/^(?:topAxis \b )/i,/^(?:axisFormat \s [^# \n ;]+)/i,/^(?:tickInterval \s [^# \n ;]+)/i,/^(?:includes \s [^# \n ;]+)/i,/^(?:excludes \s [^# \n ;]+)/i,/^(?:todayMarker \s [^ \n ;]+)/i,/^(?:weekday \s +monday \b )/i,/^(?:weekday \s +tuesday \b )/i,/^(?:weekday \s +wednesday \b )/i,/^(?:weekday \s +thursday \b )/i,/^(?:weekday \s +friday \b )/i,/^(?:weekday \s +saturday \b )/i,/^(?:weekday \s +sunday \b )/i,/^(?:weekend \s +friday \b )/i,/^(?:weekend \s +saturday \b )/i,/^(?: \d \d \d \d - \d \d - \d \d \b )/i,/^(?:title \s [^ \n ]+)/i,/^(?:accDescription \s [^# \n ;]+)/i,/^(?:section \s [^ \n ]+)/i,/^(?:[^: \n ]+)/i,/^(?::[^# \n ;]+)/i,/^(?::)/i,/^(?: $ )/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[6,7],inclusive:!1},acc_descr:{rules:[4],inclusive:!1},acc_title:{rules:[2],inclusive:!1},callbackargs:{rules:[21,22],inclusive:!1},callbackname:{rules:[18,19,20],inclusive:!1},href:{rules:[15,16],inclusive:!1},click:{rules:[24,25],inclusive:!1},INITIAL:{rules:[0,1,3,5,8,9,10,11,12,13,14,17,23,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52],inclusive:!0}}};return R}();I.lexer=D;function k(){this.yy={}}return o(k,"Parser"),k.prototype=I,I.Parser=k,new k}();PI.parser=PI;Bue=PI});var zue=Ei((BI,FI)=>{"use strict";(function(t,e){typeof BI=="object"&&typeof FI<"u"?FI.exports=e():typeof define=="function"&&define.amd?define(e):(t=typeof globalTh
2022-11-24 01:08:27 +02:00
. mermaid - main - font {
2024-05-27 09:53:57 +02:00
font - family : var ( -- mermaid - font - family , "trebuchet ms" , verdana , arial , sans - serif ) ;
2022-11-24 01:08:27 +02:00
}
2024-05-27 09:53:57 +02:00
2022-11-24 01:08:27 +02:00
. exclude - range {
2024-11-13 12:07:54 +02:00
fill : $ { t . excludeBkgColor } ;
2022-11-24 01:08:27 +02:00
}
. section {
stroke : none ;
opacity : 0.2 ;
}
. section0 {
2024-11-13 12:07:54 +02:00
fill : $ { t . sectionBkgColor } ;
2022-11-24 01:08:27 +02:00
}
. section2 {
2024-11-13 12:07:54 +02:00
fill : $ { t . sectionBkgColor2 } ;
2022-11-24 01:08:27 +02:00
}
. section1 ,
. section3 {
2024-11-13 12:07:54 +02:00
fill : $ { t . altSectionBkgColor } ;
2022-11-24 01:08:27 +02:00
opacity : 0.2 ;
}
. sectionTitle0 {
2024-11-13 12:07:54 +02:00
fill : $ { t . titleColor } ;
2022-11-24 01:08:27 +02:00
}
. sectionTitle1 {
2024-11-13 12:07:54 +02:00
fill : $ { t . titleColor } ;
2022-11-24 01:08:27 +02:00
}
. sectionTitle2 {
2024-11-13 12:07:54 +02:00
fill : $ { t . titleColor } ;
2022-11-24 01:08:27 +02:00
}
. sectionTitle3 {
2024-11-13 12:07:54 +02:00
fill : $ { t . titleColor } ;
2022-11-24 01:08:27 +02:00
}
. sectionTitle {
text - anchor : start ;
2024-05-27 09:53:57 +02:00
font - family : var ( -- mermaid - font - family , "trebuchet ms" , verdana , arial , sans - serif ) ;
2022-11-24 01:08:27 +02:00
}
/* Grid and axis */
. grid . tick {
2024-11-13 12:07:54 +02:00
stroke : $ { t . gridColor } ;
2022-11-24 01:08:27 +02:00
opacity : 0.8 ;
shape - rendering : crispEdges ;
2024-05-27 09:53:57 +02:00
}
. grid . tick text {
2024-11-13 12:07:54 +02:00
font - family : $ { t . fontFamily } ;
fill : $ { t . textColor } ;
2022-11-24 01:08:27 +02:00
}
. grid path {
stroke - width : 0 ;
}
/* Today line */
. today {
fill : none ;
2024-11-13 12:07:54 +02:00
stroke : $ { t . todayLineColor } ;
2022-11-24 01:08:27 +02:00
stroke - width : 2 px ;
}
/* Task styling */
/* Default task */
. task {
stroke - width : 2 ;
}
. taskText {
text - anchor : middle ;
2024-05-27 09:53:57 +02:00
font - family : var ( -- mermaid - font - family , "trebuchet ms" , verdana , arial , sans - serif ) ;
2022-11-24 01:08:27 +02:00
}
. taskTextOutsideRight {
2024-11-13 12:07:54 +02:00
fill : $ { t . taskTextDarkColor } ;
2022-11-24 01:08:27 +02:00
text - anchor : start ;
2024-05-27 09:53:57 +02:00
font - family : var ( -- mermaid - font - family , "trebuchet ms" , verdana , arial , sans - serif ) ;
2022-11-24 01:08:27 +02:00
}
. taskTextOutsideLeft {
2024-11-13 12:07:54 +02:00
fill : $ { t . taskTextDarkColor } ;
2022-11-24 01:08:27 +02:00
text - anchor : end ;
}
2024-05-27 09:53:57 +02:00
2022-11-24 01:08:27 +02:00
/* Special case clickable */
2024-05-27 09:53:57 +02:00
2022-11-24 01:08:27 +02:00
. task . clickable {
cursor : pointer ;
}
2024-05-27 09:53:57 +02:00
2022-11-24 01:08:27 +02:00
. taskText . clickable {
cursor : pointer ;
2024-11-13 12:07:54 +02:00
fill : $ { t . taskTextClickableColor } ! important ;
2022-11-24 01:08:27 +02:00
font - weight : bold ;
}
. taskTextOutsideLeft . clickable {
cursor : pointer ;
2024-11-13 12:07:54 +02:00
fill : $ { t . taskTextClickableColor } ! important ;
2022-11-24 01:08:27 +02:00
font - weight : bold ;
}
. taskTextOutsideRight . clickable {
cursor : pointer ;
2024-11-13 12:07:54 +02:00
fill : $ { t . taskTextClickableColor } ! important ;
2022-11-24 01:08:27 +02:00
font - weight : bold ;
}
2024-05-27 09:53:57 +02:00
2022-11-24 01:08:27 +02:00
/* Specific task settings for the sections*/
. taskText0 ,
. taskText1 ,
. taskText2 ,
. taskText3 {
2024-11-13 12:07:54 +02:00
fill : $ { t . taskTextColor } ;
2022-11-24 01:08:27 +02:00
}
. task0 ,
. task1 ,
. task2 ,
. task3 {
2024-11-13 12:07:54 +02:00
fill : $ { t . taskBkgColor } ;
stroke : $ { t . taskBorderColor } ;
2022-11-24 01:08:27 +02:00
}
. taskTextOutside0 ,
. taskTextOutside2
{
2024-11-13 12:07:54 +02:00
fill : $ { t . taskTextOutsideColor } ;
2022-11-24 01:08:27 +02:00
}
. taskTextOutside1 ,
. taskTextOutside3 {
2024-11-13 12:07:54 +02:00
fill : $ { t . taskTextOutsideColor } ;
2022-11-24 01:08:27 +02:00
}
/* Active task */
. active0 ,
. active1 ,
. active2 ,
. active3 {
2024-11-13 12:07:54 +02:00
fill : $ { t . activeTaskBkgColor } ;
stroke : $ { t . activeTaskBorderColor } ;
2022-11-24 01:08:27 +02:00
}
. activeText0 ,
. activeText1 ,
. activeText2 ,
. activeText3 {
2024-11-13 12:07:54 +02:00
fill : $ { t . taskTextDarkColor } ! important ;
2022-11-24 01:08:27 +02:00
}
/* Completed task */
. done0 ,
. done1 ,
. done2 ,
. done3 {
2024-11-13 12:07:54 +02:00
stroke : $ { t . doneTaskBorderColor } ;
fill : $ { t . doneTaskBkgColor } ;
2022-11-24 01:08:27 +02:00
stroke - width : 2 ;
}
. doneText0 ,
. doneText1 ,
. doneText2 ,
. doneText3 {
2024-11-13 12:07:54 +02:00
fill : $ { t . taskTextDarkColor } ! important ;
2022-11-24 01:08:27 +02:00
}
/* Tasks on the critical line */
. crit0 ,
. crit1 ,
. crit2 ,
. crit3 {
2024-11-13 12:07:54 +02:00
stroke : $ { t . critBorderColor } ;
fill : $ { t . critBkgColor } ;
2022-11-24 01:08:27 +02:00
stroke - width : 2 ;
}
. activeCrit0 ,
. activeCrit1 ,
. activeCrit2 ,
. activeCrit3 {
2024-11-13 12:07:54 +02:00
stroke : $ { t . critBorderColor } ;
fill : $ { t . activeTaskBkgColor } ;
2022-11-24 01:08:27 +02:00
stroke - width : 2 ;
}
. doneCrit0 ,
. doneCrit1 ,
. doneCrit2 ,
. doneCrit3 {
2024-11-13 12:07:54 +02:00
stroke : $ { t . critBorderColor } ;
fill : $ { t . doneTaskBkgColor } ;
2022-11-24 01:08:27 +02:00
stroke - width : 2 ;
cursor : pointer ;
shape - rendering : crispEdges ;
}
. milestone {
transform : rotate ( 45 deg ) scale ( 0.8 , 0.8 ) ;
}
. milestoneText {
font - style : italic ;
}
. doneCritText0 ,
. doneCritText1 ,
. doneCritText2 ,
. doneCritText3 {
2024-11-13 12:07:54 +02:00
fill : $ { t . taskTextDarkColor } ! important ;
2022-11-24 01:08:27 +02:00
}
. activeCritText0 ,
. activeCritText1 ,
. activeCritText2 ,
. activeCritText3 {
2024-11-13 12:07:54 +02:00
fill : $ { t . taskTextDarkColor } ! important ;
2022-11-24 01:08:27 +02:00
}
. titleText {
text - anchor : middle ;
font - size : 18 px ;
2024-11-13 12:07:54 +02:00
fill : $ { t . titleColor || t . textColor } ;
2024-05-27 09:53:57 +02:00
font - family : var ( -- mermaid - font - family , "trebuchet ms" , verdana , arial , sans - serif ) ;
}
2024-11-13 12:07:54 +02:00
` ,"getStyles"),lhe=P $ e});var uhe={};vr(uhe,{diagram:()=>B $ e});var B $ e,hhe=M(()=>{"use strict";Fue();ihe();ohe();che();B $ e={parser:Bue,db:rhe,renderer:she,styles:lhe}});var phe,mhe=M(()=>{"use strict";Hg();ut();phe={parse:o(async t=>{let e=await Yl("info",t);Y.debug(e)},"parse")}});var _x,tO=M(()=>{_x="11.4.0"});var V $ e,U $ e,ghe,yhe=M(()=>{"use strict";tO();V $ e={version:_x},U $ e=o(()=>V $ e.version,"getVersion"),ghe={getVersion:U $ e}});var Va,eh=M(()=>{"use strict";pr();Vt();Va=o(t=>{let{securityLevel:e}=pe(),r=Ve("body");if(e==="sandbox"){let a=Ve( ` # i$ { t } ` ).node()?.contentDocument??document;r=Ve(a.body)}return r.select( ` # $ { t } ` )},"selectSvgElement")});var H $ e,vhe,xhe=M(()=>{"use strict";ut();eh();ai();H $ e=o((t,e,r)=>{Y.debug( ` rendering info diagram
` +t);let n=Va(e);Zr(n,100,400,!0),n.append("g").append("text").attr("x",100).attr("y",40).attr("class","version").attr("font-size",32).style("text-anchor","middle").text( ` v$ { r } ` )},"draw"),vhe={draw:H $ e}});var bhe={};vr(bhe,{diagram:()=>W $ e});var W $ e,whe=M(()=>{"use strict";mhe();yhe();xhe();W $ e={parser:phe,db:ghe,renderer:vhe}});var Ehe,rO,TE,nO,X $ e,j $ e,K $ e,Q $ e,Z $ e,J $ e,eVe,kE,iO=M(()=>{"use strict";ut();Ai();bs();Ehe=ur.pie,rO={sections:new Map,showData:!1,config:Ehe},TE=rO.sections,nO=rO.showData,X $ e=structuredClone(Ehe),j $ e=o(()=>structuredClone(X $ e),"getConfig"),K $ e=o(()=>{TE=new Map,nO=rO.showData,Lr()},"clear"),Q $ e=o(({label:t,value:e})=>{TE.has(t)||(TE.set(t,e),Y.debug( ` added new section : $ { t } , with value : $ { e } ` ))},"addSection"),Z $ e=o(()=>TE,"getSections"),J $ e=o(t=>{nO=t},"setShowData"),eVe=o(()=>nO,"getShowData"),kE={getConfig:j $ e,clear:K $ e,setDiagramTitle:cn,getDiagramTitle:Jr,setAccTitle:Mr,getAccTitle:Br,setAccDescription:Fr,getAccDescription:zr,addSection:Q $ e,getSections:Z $ e,setShowData:J $ e,getShowData:eVe}});var tVe,She,Che=M(()=>{"use strict";Hg();ut();Tx();iO();tVe=o((t,e)=>{yf(t,e),e.setShowData(t.showData),t.sections.map(e.addSection)},"populateDb"),She={parse:o(async t=>{let e=await Yl("pie",t);Y.debug(e),tVe(e,kE)},"parse")}});var rVe,Ahe,_he=M(()=>{"use strict";rVe=o(t=> `
2022-11-24 01:08:27 +02:00
. pieCircle {
2024-11-13 12:07:54 +02:00
stroke : $ { t . pieStrokeColor } ;
stroke - width : $ { t . pieStrokeWidth } ;
opacity : $ { t . pieOpacity } ;
2023-09-19 12:31:17 +02:00
}
. pieOuterCircle {
2024-11-13 12:07:54 +02:00
stroke : $ { t . pieOuterStrokeColor } ;
stroke - width : $ { t . pieOuterStrokeWidth } ;
2023-09-19 12:31:17 +02:00
fill : none ;
2022-11-24 01:08:27 +02:00
}
. pieTitleText {
text - anchor : middle ;
2024-11-13 12:07:54 +02:00
font - size : $ { t . pieTitleTextSize } ;
fill : $ { t . pieTitleTextColor } ;
font - family : $ { t . fontFamily } ;
2022-11-24 01:08:27 +02:00
}
. slice {
2024-11-13 12:07:54 +02:00
font - family : $ { t . fontFamily } ;
fill : $ { t . pieSectionTextColor } ;
font - size : $ { t . pieSectionTextSize } ;
2022-11-24 01:08:27 +02:00
// fill: white;
}
. legend text {
2024-11-13 12:07:54 +02:00
fill : $ { t . pieLegendTextColor } ;
font - family : $ { t . fontFamily } ;
font - size : $ { t . pieLegendTextSize } ;
}
` ,"getStyles"),Ahe=rVe});var nVe,iVe,Lhe,Dhe=M(()=>{"use strict";pr();Vt();ut();eh();ai();hr();nVe=o(t=>{let e=[...t.entries()].map(n=>({label:n[0],value:n[1]})).sort((n,i)=>i.value-n.value);return H3().value(n=>n.value)(e)},"createPieArcs"),iVe=o((t,e,r,n)=>{Y.debug( ` rendering pie chart
` +t);let i=n.db,a=pe(),s=Ds(i.getConfig(),a.pie),l=40,u=18,h=4,f=450,d=f,p=Va(e),m=p.append("g");m.attr("transform","translate("+d/2+","+f/2+")");let{themeVariables:g}=a,[y]=Ho(g.pieOuterStrokeWidth);y??=2;let v=s.textPosition,x=Math.min(d,f)/2-l,b=Dl().innerRadius(0).outerRadius(x),w=Dl().innerRadius(x*v).outerRadius(x*v);m.append("circle").attr("cx",0).attr("cy",0).attr("r",x+y/2).attr("class","pieOuterCircle");let _=i.getSections(),T=nVe(_),E=[g.pie1,g.pie2,g.pie3,g.pie4,g.pie5,g.pie6,g.pie7,g.pie8,g.pie9,g.pie10,g.pie11,g.pie12],L=ku(E);m.selectAll("mySlices").data(T).enter().append("path").attr("d",b).attr("fill",k=>L(k.data.label)).attr("class","pieCircle");let S=0;_.forEach(k=>{S+=k}),m.selectAll("mySlices").data(T).enter().append("text").text(k=>(k.data.value/S*100).toFixed(0)+"%").attr("transform",k=>"translate("+w.centroid(k)+")").style("text-anchor","middle").attr("class","slice"),m.append("text").text(i.getDiagramTitle()).attr("x",0).attr("y",-(f-50)/2).attr("class","pieTitleText");let A=m.selectAll(".legend").data(L.domain()).enter().append("g").attr("class","legend").attr("transform",(k,R)=>{let C=u+h,O=C*L.domain().length/2,N=12*u,P=R*C-O;return"translate("+N+","+P+")"});A.append("rect").attr("width",u).attr("height",u).style("fill",L).style("stroke",L),A.data(T).append("text").attr("x",u+h).attr("y",u-h).text(k=>{let{label:R,value:C}=k.data;return i.getShowData()? ` $ { R } [ $ { C } ] ` :R});let I=Math.max(...A.selectAll("text").nodes().map(k=>k?.getBoundingClientRect().width??0)),D=d+l+u+h+I;p.attr("viewBox", ` 0 0 $ { D } $ { f } ` ),Zr(p,f,D,s.useMaxWidth)},"draw"),Lhe={draw:iVe}});var Nhe={};vr(Nhe,{diagram:()=>aVe});var aVe,Rhe=M(()=>{"use strict";Che();iO();_he();Dhe();aVe={parser:She,db:kE,renderer:Lhe,styles:Ahe}});var aO,Ohe,Phe=M(()=>{"use strict";aO=function(){var t=o(function(Te,ie,Ee,Ae){for(Ee=Ee||{},Ae=Te.length;Ae--;Ee[Te[Ae]]=ie);return Ee},"o"),e=[1,3],r=[1,4],n=[1,5],i=[1,6],a=[1,7],s=[1,4,5,10,12,13,14,18,25,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],l=[1,4,5,10,12,13,14,18,25,28,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],u=[55,56,57],h=[2,36],f=[1,37],d=[1,36],p=[1,38],m=[1,35],g=[1,43],y=[1,41],v=[1,14],x=[1,23],b=[1,18],w=[1,19],_=[1,20],T=[1,21],E=[1,22],L=[1,24],S=[1,25],A=[1,26],I=[1,27],D=[1,28],k=[1,29],R=[1,32],C=[1,33],O=[1,34],N=[1,39],P=[1,40],F=[1,42],B=[1,44],G=[1,62],z=[1,61],W=[4,5,8,10,12,13,14,18,44,47,49,55,56,57,63,64,65,66,67],Z=[1,65],j=[1,66],oe=[1,67],K=[1,68],ee=[1,69],J=[1,70],H=[1,71],q=[1,72],Q=[1,73],ae=[1,74],ue=[1,75],ce=[1,76],te=[4,5,6,7,8,9,10,11,12,13,14,15,18],Ne=[1,90],se=[1,91],ke=[1,92],Re=[1,99],Ce=[1,93],Pe=[1,96],Ie=[1,94], $ e=[1,95],ye=[1,97],X=[1,98],fe=[1,102],he=[10,55,56,57],ge=[4,5,6,8,10,11,13,17,18,19,20,55,56,57],ne={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,idStringToken:3,ALPHA:4,NUM:5,NODE_STRING:6,DOWN:7,MINUS:8,DEFAULT:9,COMMA:10,COLON:11,AMP:12,BRKT:13,MULT:14,UNICODE_TEXT:15,styleComponent:16,UNIT:17,SPACE:18,STYLE:19,PCT:20,idString:21,style:22,stylesOpt:23,classDefStatement:24,CLASSDEF:25,start:26,eol:27,QUADRANT:28,document:29,line:30,statement:31,axisDetails:32,quadrantDetails:33,points:34,title:35,title_value:36,acc_title:37,acc_title_value:38,acc_descr:39,acc_descr_value:40,acc_descr_multiline_value:41,section:42,text:43,point_start:44,point_x:45,point_y:46,class_name:47,"X-AXIS":48,"AXIS-TEXT-DELIMITER":49,"Y-AXIS":50,QUADRANT_1:51,QUADRANT_2:52,QUADRANT_3:53,QUADRANT_4:54,NEWLINE:55,SEMI:56,EOF:57,alphaNumToken:58,textNoTagsToken:59,STR:60,MD_STR:61,alphaNum:62,PUNCTUATION:63,PLUS:64,EQUALS:65,DOT:66,UNDERSCORE:67, $ accept:0, $ end:1},terminals_:{2:"error",4:"ALPHA",5:"NUM",6:"NODE_STRING",7:"DOWN",8:"MINUS",9:"DEFAULT",10:"COMMA",11:"COLON",12:"AMP",13:"BRKT",14:"MULT",15:"UNICODE_TEXT",17:"UNIT",18:"SPACE",19:"STYLE",20:"PCT",25:"CLASSDEF",28:"QUADRANT",35:"title",36:"title_value",37:"acc_title",38:"acc_title_value",39:"acc_descr",40:"acc_descr_value",41:"acc_descr_multiline_value",42:"section",44:"point_start",45:"point_x",46:"point_y",47:"class_name",48:"X-AXIS",49:"AXIS-TEXT-DELIMITER",
` +Ue.showPosition()+ `
Expecting ` +mn.join(", ")+", got '"+(this.terminals_[ct]||ct)+"'":On="Parse error on line "+(et+1)+": Unexpected "+(ct==rt?"end of input":"'"+(this.terminals_[ct]||ct)+"'"),this.parseError(On,{text:Ue.match,token:this.terminals_[ct]||ct,line:Ue.yylineno,loc:Et,expected:mn})}if(Bt[0]instanceof Array&&Bt.length>1)throw new Error("Parse Error: multiple actions possible at state: "+pt+", token: "+ct);switch(Bt[0]){case 1:Ae.push(ct),Be.push(Ue.yytext),me.push(Ue.yylloc),Ae.push(Bt[1]),ct=null,Ct?(ct=Ct,Ct=null):(bt=Ue.yyleng,Oe=Ue.yytext,et=Ue.yylineno,Et=Ue.yylloc,kt>0&&kt--);break;case 2:if(Or=this.productions_[Bt[1]][1],or. $ =Be[Be.length-Or],or._ $ ={first_line:me[me.length-(Or||1)].first_line,last_line:me[me.length-1].last_line,first_column:me[me.length-(Or||1)].first_column,last_column:me[me.length-1].last_column},er&&(or._ $ .range=[me[me.length-(Or||1)].range[0],me[me.length-1].range[1]]),yr=this.performAction.apply(or,[Oe,bt,et,tt.yy,Bt[1],Be,me].concat(yt)),typeof yr<"u")return yr;Or&&(Ae=Ae.slice(0,-1*Or*2),Be=Be.slice(0,-1*Or),me=me.slice(0,-1*Or)),Ae.push(this.productions_[Bt[1]][0]),Be.push(or. $ ),me.push(or._ $ ),ii=He[Ae[Ae.length-2]][Ae[Ae.length-1]],Ae.push(ii);break;case 3:return!0}}return!0},"parse")},ve=function(){var Te={EOF:1,parseError:o(function(Ee,Ae){if(this.yy.parser)this.yy.parser.parseError(Ee,Ae);else throw new Error(Ee)},"parseError"),setInput:o(function(ie,Ee){return this.yy=Ee||this.yy||{},this._input=ie,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:o(function(){var ie=this._input[0];this.yytext+=ie,this.yyleng++,this.offset++,this.match+=ie,this.matched+=ie;var Ee=ie.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),ie},"input"),unput:o(function(ie){var Ee=ie.length,Ae=ie.split(/(?: \r \n ?| \n )/g);this._input=ie+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-Ee),this.offset-=Ee;var Ge=this.match.split(/(?: \r \n ?| \n )/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),Ae.length-1&&(this.yylineno-=Ae.length-1);var Be=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:Ae?(Ae.length===Ge.length?this.yylloc.first_column:0)+Ge[Ge.length-Ae.length].length-Ae[0].length:this.yylloc.first_column-Ee},this.options.ranges&&(this.yylloc.range=[Be[0],Be[0]+this.yyleng-Ee]),this.yyleng=this.yytext.length,this},"unput"),more:o(function(){return this._more=!0,this},"more"),reject:o(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+ ` . You can only invoke reject ( ) in the lexer when the lexer is of the backtracking persuasion ( options . backtrack _lexer = true ) .
` +this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:o(function(ie){this.unput(this.match.slice(ie))},"less"),pastInput:o(function(){var ie=this.matched.substr(0,this.matched.length-this.match.length);return(ie.length>20?"...":"")+ie.substr(-20).replace(/ \n /g,"")},"pastInput"),upcomingInput:o(function(){var ie=this.match;return ie.length<20&&(ie+=this._input.substr(0,20-ie.length)),(ie.substr(0,20)+(ie.length>20?"...":"")).replace(/ \n /g,"")},"upcomingInput"),showPosition:o(function(){var ie=this.pastInput(),Ee=new Array(ie.length+1).join("-");return ie+this.upcomingInput()+ `
` +Ee+"^"},"showPosition"),test_match:o(function(ie,Ee){var Ae,Ge,Be;if(this.options.backtrack_lexer&&(Be={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&&(Be.yylloc.range=this.yylloc.range.slice(0))),Ge=ie[0].match(/(?: \r \n ?| \n ).*/g),Ge&&(this.yylineno+=Ge.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Ge?Ge[Ge.length-1].length-Ge[Ge.length-1].match(/ \r ? \n ?/)[0].length:this.yylloc.last_column+ie[0].length},this.yytext+=ie[0],this.match+=ie[0],this.matches=ie,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(ie[0].length),this.matched+=ie[0],Ae=this.performAction.call(this,this.yy,this,Ee,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),Ae)return Ae;if(this._backtrack){for(var me in Be)this[me]=Be[me];return!1}return!1},"test_match"),next:o(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var ie,Ee,Ae,Ge;this._more||(this.yytext="",this.match="");for(var Be=this._currentRules(),me=0;me<Be.length;me++)if(Ae=this._input.match(this.rules[Be[me]]),Ae&&(!Ee||Ae[0].length>Ee[0].length)){if(Ee=Ae,Ge=me,this.options.backtrack_lexer){if(ie=this.test_match(Ae,Be[me]),ie!==!1)return ie;if(this._backtrack){Ee=!1;continue}else return!1}else if(!this.options.flex)break}return Ee?(ie=this.test_match(Ee,Be[Ge]),ie!==!1?ie:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+ ` . Unrecognized text .
` +this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:o(function(){var Ee=this.next();return Ee||this.lex()},"lex"),begin:o(function(Ee){this.conditionStack.push(Ee)},"begin"),popState:o(function(){var Ee=this.conditionStack.length-1;return Ee>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:o(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:o(function(Ee){return Ee=this.conditionStack.length-1-Math.abs(Ee||0),Ee>=0?this.conditionStack[Ee]:"INITIAL"},"topState"),pushState:o(function(Ee){this.begin(Ee)},"pushState"),stateStackSize:o(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:o(function(Ee,Ae,Ge,Be){var me=Be;switch(Ge){case 0:break;case 1:break;case 2:return 55;case 3:break;case 4:return this.begin("title"),35;break;case 5:return this.popState(),"title_value";break;case 6:return this.begin("acc_title"),37;break;case 7:return this.popState(),"acc_title_value";break;case 8:return this.begin("acc_descr"),39;break;case 9:return this.popState(),"acc_descr_value";break;case 10:this.begin("acc_descr_multiline");break;case 11:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:return 48;case 14:return 50;case 15:return 49;case 16:return 51;case 17:return 52;case 18:return 53;case 19:return 54;case 20:return 25;case 21:this.begin("md_string");break;case 22:return"MD_STR";case 23:this.popState();break;case 24:this.begin("string");break;case 25:this.popState();break;case 26:return"STR";case 27:this.begin("class_name");break;case 28:return this.popState(),47;break;case 29:return this.begin("point_start"),44;break;case 30:return this.begin("point_x"),45;break;case 31:this.popState();break;case 32:this.popState(),this.begin("point_y");break;case 33:return this.popState(),46;break;case 34:return 28;case 35:return 4;case 36:return 11;case 37:return 64;case 38:return 10;case 39:return 65;case 40:return 65;case 41:return 14;case 42:return 13;case 43:return 67;case 44:return 66;case 45:return 12;case 46:return 8;case 47:return 5;case 48:return 18;case 49:return 56;case 50:return 63;case 51:return 57}},"anonymous"),rules:[/^(?:%%(?! \{ )[^ \n ]*)/i,/^(?:[^ \} ]%%[^ \n ]*)/i,/^(?:[ \n \r ]+)/i,/^(?:%%[^ \n ]*)/i,/^(?:title \b )/i,/^(?:(?! \n ||)*[^ \n ]*)/i,/^(?:accTitle \s *: \s *)/i,/^(?:(?! \n ||)*[^ \n ]*)/i,/^(?:accDescr \s *: \s *)/i,/^(?:(?! \n ||)*[^ \n ]*)/i,/^(?:accDescr \s * \{ \s *)/i,/^(?:[ \} ])/i,/^(?:[^ \} ]*)/i,/^(?: *x-axis *)/i,/^(?: *y-axis *)/i,/^(?: *--+> *)/i,/^(?: *quadrant-1 *)/i,/^(?: *quadrant-2 *)/i,/^(?: *quadrant-3 *)/i,/^(?: *quadrant-4 *)/i,/^(?:classDef \b )/i,/^(?:["][ ` ] ) / i , /^(?:[^`"]+)/i , /^(?:[`]["])/i , /^(?:["])/i , /^(?:["])/i , /^(?:[^"]*)/i , /^(?::::)/i , /^(?:^\w+)/i , /^(?:\s*:\s*\[\s*)/i , /^(?:(1)|(0(.\d+)?))/i , /^(?:\s*\] *)/i , /^(?:\s*,\s*)/i , /^(?:(1)|(0(.\d+)?))/i , /^(?: *quadrantChart *)/i , /^(?:[A-Za-z]+)/i , /^(?::)/i , /^(?:\+)/i , /^(?:,)/i , /^(?:=)/i , /^(?:=)/i , /^(?:\*)/i , /^(?:#)/i , /^(?:[\_])/i , /^(?:\.)/i , /^(?:&)/i , /^(?:-)/i , /^(?:[0-9]+)/i , /^(?:\s)/i , /^(?:;)/i , /^(?:[!"#$%&'*+,-.`?\\_/])/i , /^(?:$)/i ] , conditions : { class _name : { rules : [ 28 ] , inclusive : ! 1 } , point _y : { rules : [ 33 ] , inclusive : ! 1 } , point _x : { rules : [ 32 ] , inclusive : ! 1 } , point _start : { rules : [ 30 , 31 ] , inclusive : ! 1 } , acc _descr _multiline : { rules : [ 11 , 12 ] , inclusive : ! 1 } , acc _descr : { rules : [ 9 ] , inclusive : ! 1 } , acc _title : { rules : [ 7 ] , inclusive : ! 1 } , title : { rules : [ 5 ] , inclusive : ! 1 } , md _string : { rules : [ 22 , 23 ] , inclusive : ! 1 } , string : { rules : [ 25 , 26 ] , inclusive : ! 1 } , INITIAL : { rules : [ 0 , 1 , 2 , 3 , 4 , 6 , 8 , 10 , 13 , 14 , 15 , 16 , 17 , 18 , 19 , 20 , 21 , 24 , 27 , 29 , 34 , 35 , 36 , 37 , 38 , 39 , 40 , 41 , 42 , 43 , 44 , 45 , 46 , 47 , 48 , 49 , 50 , 51 ] , inclusive : ! 0 } } } ; return Te } ( ) ; ne . lexer = ve ; function U ( ) { this . yy = { } } return o ( U , "Parser" ) , U . prototype = ne , ne . Parser = U , new U } ( ) ; aO . parser = aO ; Ohe = aO } ) ; var ps , EE , Bhe = M ( ( ) => { "use strict" ; pr ( ) ; bs ( ) ; ut ( ) ; i4 ( ) ; ps = vp ( ) , EE = class { constructor ( ) { this . classes = new Map ; this . config = this . getDefaultConfig ( ) , this . themeConfig = this . getDefaultThemeConfig ( ) , this . data = this . getDefaultDat
` +t);let u=l.securityLevel,h;u==="sandbox"&&(h=Ve("#i"+e));let d=(u==="sandbox"?Ve(h.nodes()[0].contentDocument.body):Ve("body")).select( ` [ id = "${e}" ] ` ),p=d.append("g").attr("class","main"),m=l.quadrantChart?.chartWidth??500,g=l.quadrantChart?.chartHeight??500;Zr(d,g,m,l.quadrantChart?.useMaxWidth??!0),d.attr("viewBox","0 0 "+m+" "+g),n.db.setHeight(g),n.db.setWidth(m);let y=n.db.getQuadrantData(),v=p.append("g").attr("class","quadrants"),x=p.append("g").attr("class","border"),b=p.append("g").attr("class","data-points"),w=p.append("g").attr("class","labels"),_=p.append("g").attr("class","title");y.title&&_.append("text").attr("x",0).attr("y",0).attr("fill",y.title.fill).attr("font-size",y.title.fontSize).attr("dominant-baseline",i(y.title.horizontalPos)).attr("text-anchor",a(y.title.verticalPos)).attr("transform",s(y.title)).text(y.title.text),y.borderLines&&x.selectAll("line").data(y.borderLines).enter().append("line").attr("x1",S=>S.x1).attr("y1",S=>S.y1).attr("x2",S=>S.x2).attr("y2",S=>S.y2).style("stroke",S=>S.strokeFill).style("stroke-width",S=>S.strokeWidth);let T=v.selectAll("g.quadrant").data(y.quadrants).enter().append("g").attr("class","quadrant");T.append("rect").attr("x",S=>S.x).attr("y",S=>S.y).attr("width",S=>S.width).attr("height",S=>S.height).attr("fill",S=>S.fill),T.append("text").attr("x",0).attr("y",0).attr("fill",S=>S.text.fill).attr("font-size",S=>S.text.fontSize).attr("dominant-baseline",S=>i(S.text.horizontalPos)).attr("text-anchor",S=>a(S.text.verticalPos)).attr("transform",S=>s(S.text)).text(S=>S.text.text),w.selectAll("g.label").data(y.axisLabels).enter().append("g").attr("class","label").append("text").attr("x",0).attr("y",0).text(S=>S.text).attr("fill",S=>S.fill).attr("font-size",S=>S.fontSize).attr("dominant-baseline",S=>i(S.horizontalPos)).attr("text-anchor",S=>a(S.verticalPos)).attr("transform",S=>s(S));let L=b.selectAll("g.data-point").data(y.points).enter().append("g").attr("class","data-point");L.append("circle").attr("cx",S=>S.x).attr("cy",S=>S.y).attr("r",S=>S.radius).attr("fill",S=>S.fill).attr("stroke",S=>S.strokeColor).attr("stroke-width",S=>S.strokeWidth),L.append("text").attr("x",0).attr("y",0).text(S=>S.text.text).attr("fill",S=>S.text.fill).attr("font-size",S=>S.text.fontSize).attr("dominant-baseline",S=>i(S.text.horizontalPos)).attr("text-anchor",S=>a(S.text.verticalPos)).attr("transform",S=>s(S.text))},"draw"),Uhe={draw:kVe}});var Whe={};vr(Whe,{diagram:()=>EVe});var EVe,Yhe=M(()=>{"use strict";Phe();Vhe();Hhe();EVe={parser:Ohe,db: $ he,renderer:Uhe,styles:o(()=>"","styles")}});var lO,jhe,Khe=M(()=>{"use strict";lO=function(){var t=o(function(O,N,P,F){for(P=P||{},F=O.length;F--;P[O[F]]=N);return P},"o"),e=[1,10,12,14,16,18,19,21,23],r=[2,6],n=[1,3],i=[1,5],a=[1,6],s=[1,7],l=[1,5,10,12,14,16,18,19,21,23,34,35,36],u=[1,25],h=[1,26],f=[1,28],d=[1,29],p=[1,30],m=[1,31],g=[1,32],y=[1,33],v=[1,34],x=[1,35],b=[1,36],w=[1,37],_=[1,43],T=[1,42],E=[1,47],L=[1,50],S=[1,10,12,14,16,18,19,21,23,34,35,36],A=[1,10,12,14,16,18,19,21,23,24,26,27,28,34,35,36],I=[1,10,12,14,16,18,19,21,23,24,26,27,28,34,35,36,41,42,43,44,45,46,47,48,49,50],D=[1,64],k={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,start:3,eol:4,XYCHART:5,chartConfig:6,document:7,CHART_ORIENTATION:8,statement:9,title:10,text:11,X_AXIS:12,parseXAxis:13,Y_AXIS:14,parseYAxis:15,LINE:16,plotData:17,BAR:18,acc_title:19,acc_title_value:20,acc_descr:21,acc_descr_value:22,acc_descr_multiline_value:23,SQUARE_BRACES_START:24,commaSeparatedNumbers:25,SQUARE_BRACES_END:26,NUMBER_WITH_DECIMAL:27,COMMA:28,xAxisData:29,bandData:30,ARROW_DELIMITER:31,commaSeparatedTexts:32,yAxisData:33,NEWLINE:34,SEMI:35,EOF:36,alphaNum:37,STR:38,MD_STR:39,alphaNumToken:40,AMP:41,NUM:42,ALPHA:43,PLUS:44,EQUALS:45,MULT:46,DOT:47,BRKT:48,MINUS:49,UNDERSCORE:50, $ accept:0, $ end:1},terminals_:{2:"error",5:"XYCHART",8:"CHART_ORIENTATION",10:"title",12:"X_AXIS",14:"Y_AXIS",16:"LINE",18:"BAR",19:"acc_title",20:"acc_title_value",21:"acc_descr",22:"acc_descr_value",23:"acc_descr_multiline_value",24:"SQUARE_BRACES_START",26:"SQUARE_BRACES_END",27:"NUMBER_WITH_DECIMAL",
` +q.showPosition()+ `
Expecting ` +he.join(", ")+", got '"+(this.terminals_[se]||se)+"'":ge="Parse error on line "+(j+1)+": Unexpected "+(se==J?"end of input":"'"+(this.terminals_[se]||se)+"'"),this.parseError(ge,{text:q.match,token:this.terminals_[se]||se,line:q.yylineno,loc:ue,expected:he})}if(Ce[0]instanceof Array&&Ce.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Re+", token: "+se);switch(Ce[0]){case 1:F.push(se),G.push(q.yytext),z.push(q.yylloc),F.push(Ce[1]),se=null,ke?(se=ke,ke=null):(oe=q.yyleng,Z=q.yytext,j=q.yylineno,ue=q.yylloc,K>0&&K--);break;case 2:if(X=this.productions_[Ce[1]][1], $ e. $ =G[G.length-X], $ e._ $ ={first_line:z[z.length-(X||1)].first_line,last_line:z[z.length-1].last_line,first_column:z[z.length-(X||1)].first_column,last_column:z[z.length-1].last_column},ce&&( $ e._ $ .range=[z[z.length-(X||1)].range[0],z[z.length-1].range[1]]),Ie=this.performAction.apply( $ e,[Z,oe,j,Q.yy,Ce[1],G,z].concat(H)),typeof Ie<"u")return Ie;X&&(F=F.slice(0,-1*X*2),G=G.slice(0,-1*X),z=z.slice(0,-1*X)),F.push(this.productions_[Ce[1]][0]),G.push( $ e. $ ),z.push( $ e._ $ ),fe=W[F[F.length-2]][F[F.length-1]],F.push(fe);break;case 3:return!0}}return!0},"parse")},R=function(){var O={EOF:1,parseError:o(function(P,F){if(this.yy.parser)this.yy.parser.parseError(P,F);else throw new Error(P)},"parseError"),setInput:o(function(N,P){return this.yy=P||this.yy||{},this._input=N,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:o(function(){var N=this._input[0];this.yytext+=N,this.yyleng++,this.offset++,this.match+=N,this.matched+=N;var P=N.match(/(?: \r \n ?| \n ).*/g);return P?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),N},"input"),unput:o(function(N){var P=N.length,F=N.split(/(?: \r \n ?| \n )/g);this._input=N+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-P),this.offset-=P;var B=this.match.split(/(?: \r \n ?| \n )/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),F.length-1&&(this.yylineno-=F.length-1);var G=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:F?(F.length===B.length?this.yylloc.first_column:0)+B[B.length-F.length].length-F[0].length:this.yylloc.first_column-P},this.options.ranges&&(this.yylloc.range=[G[0],G[0]+this.yyleng-P]),this.yyleng=this.yytext.length,this},"unput"),more:o(function(){return this._more=!0,this},"more"),reject:o(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+ ` . You can only invoke reject ( ) in the lexer when the lexer is of the backtracking persuasion ( options . backtrack _lexer = true ) .
` +this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:o(function(N){this.unput(this.match.slice(N))},"less"),pastInput:o(function(){var N=this.matched.substr(0,this.matched.length-this.match.length);return(N.length>20?"...":"")+N.substr(-20).replace(/ \n /g,"")},"pastInput"),upcomingInput:o(function(){var N=this.match;return N.length<20&&(N+=this._input.substr(0,20-N.length)),(N.substr(0,20)+(N.length>20?"...":"")).replace(/ \n /g,"")},"upcomingInput"),showPosition:o(function(){var N=this.pastInput(),P=new Array(N.length+1).join("-");return N+this.upcomingInput()+ `
` +P+"^"},"showPosition"),test_match:o(function(N,P){var F,B,G;if(this.options.backtrack_lexer&&(G={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&&(G.yylloc.range=this.yylloc.range.slice(0))),B=N[0].match(/(?: \r \n ?| \n ).*/g),B&&(this.yylineno+=B.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:B?B[B.length-1].length-B[B.length-1].match(/ \r ? \n ?/)[0].length:this.yylloc.last_column+N[0].length},this.yytext+=N[0],this.match+=N[0],this.matches=N,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(N[0].length),this.matched+=N[0],F=this.performAction.call(this,this.yy,this,P,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),F)return F;if(this._backtrack){for(var z in G)this[z]=G[z];return!1}return!1},"test_match"),next:o(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var N,P,F,B;this._more||(this.yytext="",this.match="");for(var G=this._currentRules(),z=0;z<G.length;z++)if(F=this._input.match(this.rules[G[z]]),F&&(!P||F[0].length>P[0].length)){if(P=F,B=z,this.options.backtrack_lexer){if(N=this.test_match(F,G[z]),N!==!1)return N;if(this._backtrack){P=!1;continue}else return!1}else if(!this.options.flex)break}return P?(N=this.test_match(P,G[B]),N!==!1?N:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+ ` . Unrecognized text .
` +this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:o(function(){var P=this.next();return P||this.lex()},"lex"),begin:o(function(P){this.conditionStack.push(P)},"begin"),popState:o(function(){var P=this.conditionStack.length-1;return P>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:o(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:o(function(P){return P=this.conditionStack.length-1-Math.abs(P||0),P>=0?this.conditionStack[P]:"INITIAL"},"topState"),pushState:o(function(P){this.begin(P)},"pushState"),stateStackSize:o(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:o(function(P,F,B,G){var z=G;switch(B){case 0:break;case 1:break;case 2:return this.popState(),34;break;case 3:return this.popState(),34;break;case 4:return 34;case 5:break;case 6:return 10;case 7:return this.pushState("acc_title"),19;break;case 8:return this.popState(),"acc_title_value";break;case 9:return this.pushState("acc_descr"),21;break;case 10:return this.popState(),"acc_descr_value";break;case 11:this.pushState("acc_descr_multiline");break;case 12:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:return 5;case 15:return 8;case 16:return this.pushState("axis_data"),"X_AXIS";break;case 17:return this.pushState("axis_data"),"Y_AXIS";break;case 18:return this.pushState("axis_band_data"),24;break;case 19:return 31;case 20:return this.pushState("data"),16;break;case 21:return this.pushState("data"),18;break;case 22:return this.pushState("data_inner"),24;break;case 23:return 27;case 24:return this.popState(),26;break;case 25:this.popState();break;case 26:this.pushState("string");break;case 27:this.popState();break;case 28:return"STR";case 29:return 24;case 30:return 26;case 31:return 43;case 32:return"COLON";case 33:return 44;case 34:return 28;case 35:return 45;case 36:return 46;case 37:return 48;case 38:return 50;case 39:return 47;case 40:return 41;case 41:return 49;case 42:return 42;case 43:break;case 44:return 35;case 45:return 36}},"anonymous"),rules:[/^(?:%%(?! \{ )[^ \n ]*)/i,/^(?:[^ \} ]%%[^ \n ]*)/i,/^(?:( \r ? \n ))/i,/^(?:( \r ? \n ))/i,/^(?:[ \n \r ]+)/i,/^(?:%%[^ \n ]*)/i,/^(?:title \b )/i,/^(?:accTitle \s *: \s *)/i,/^(?:(?! \n ||)*[^ \n ]*)/i,/^(?:accDescr \s *: \s *)/i,/^(?:(?! \n ||)*[^ \n ]*)/i,/^(?:accDescr \s * \{ \s *)/i,/^(?: \{ )/i,/^(?:[^ \} ]*)/i,/^(?:xychart-beta \b )/i,/^(?:(?:vertical|horizontal))/i,/^(?:x-axis \b )/i,/^(?:y-axis \b )/i,/^(?: \[ )/i,/^(?:-->)/i,/^(?:line \b )/i,/^(?:bar \b )/i,/^(?: \[ )/i,/^(?:[+-]?(?: \d +(?: \. \d +)?| \. \d +))/i,/^(?: \] )/i,/^(?:(?: ` \ ) \ { this \ . pushState \ ( md _string \ ) ; \ } \ n < md _string > \ ( \ ? : \ ( \ ? ! ` " \) \. \) \+ \{ return MD_STR; \} \n <md_string> \( \? : ` ) ) / i , /^(?:["])/i , /^(?:["])/i , /^(?:[^"]*)/i , /^(?:\[)/i , /^(?:\])/i , /^(?:[A-Za-z]+)/i , /^(?::)/i , /^(?:\+)/i , /^(?:,)/i , /^(?:=)/i , /^(?:\*)/i , /^(?:#)/i , /^(?:[\_])/i , /^(?:\.)/i , /^(?:&)/i , /^(?:-)/i , /^(?:[0-9]+)/i , /^(?:\s+)/i , /^(?:;)/i , /^(?:$)/i ] , conditions : { data _inner : { rules : [ 0 , 1 , 4 , 5 , 6 , 7 , 9 , 11 , 14 , 15 , 16 , 17 , 20 , 21 , 23 , 24 , 25 , 26 , 29 , 30 , 31 , 32 , 33 , 34 , 35 , 36 , 37 , 38 , 39 , 40 , 41 , 42 , 43 , 44 , 45 ] , inclusive : ! 0 } , data : { rules : [ 0 , 1 , 3 , 4 , 5 , 6 , 7 , 9 , 11 , 14 , 15 , 16 , 17 , 20 , 21 , 22 , 25 , 26 , 29 , 30 , 31 , 32 , 33 , 34 , 35 , 36 , 37 , 38 , 39 , 40 , 41 , 42 , 43 , 44 , 45 ] , inclusive : ! 0 } , axis _band _data : { rules : [ 0 , 1 , 4 , 5 , 6 , 7 , 9 , 11 , 14 , 15 , 16 , 17 , 20 , 21 , 24 , 25 , 26 , 29 , 30 , 31 , 32 , 33 , 34 , 35 , 36 , 37 , 38 , 39 , 40 , 41 , 42 , 43 , 44 , 45 ] , inclusive : ! 0 } , axis _data : { rules : [ 0 , 1 , 2 , 4 , 5 , 6 , 7 , 9 , 11 , 14 , 15 , 16 , 17 , 18 , 19 , 20 , 21 , 23 , 25 , 26 , 29 , 30 , 31 , 32 , 33 , 34 , 35 , 36 , 37 , 38 , 39 , 40 , 41 , 42 , 43 , 44 , 45 ] , inclusive : ! 0 } , acc _descr _multiline : { rules : [ 12 , 13 ] , inclusive : ! 1 } , acc _descr : { rules : [ 10 ] , inclusive : ! 1 } , acc _title : { rules : [ 8 ] , inclusive : ! 1 } , title : { rules : [ ] , inclusive : ! 1 } , md _string : { rules : [ ] , inclusive : ! 1 } , string : { rules : [ 27 , 28 ] , inclusive : ! 1 } , INITIAL : { rules : [ 0 , 1 , 4 , 5 , 6 , 7 , 9 , 11 , 14 , 15 , 16 , 17 , 20 , 21 , 25 , 26 , 29 , 30 , 31 , 32 , 33 , 34 , 35 , 36 , 37 , 38 , 39 , 40 , 41 , 42 , 43 , 44 , 45 ] , inclusive : ! 0 } } } ; return O } ( ) ; k . lexer = R ; function C ( ) { this . yy = { } } return o ( C , "Parser" )
` +t);let f=Va(e),d=f.append("g").attr("class","main"),p=d.append("rect").attr("width",s.width).attr("height",s.height).attr("class","background");Zr(f,s.height,s.width,!0),f.attr("viewBox", ` 0 0 $ { s . width } $ { s . height } ` ),p.attr("fill",a.backgroundColor),i.setTmpSVGG(f.append("g").attr("class","mermaid-tmp-group"));let m=i.getDrawableElem(),g={};function y(v){let x=d,b="";for(let[w]of v.entries()){let _=d;w>0&&g[b]&&(_=g[b]),b+=v[w],x=g[b],x||(x=g[b]=_.append("g").attr("class",v[w]))}return x}o(y,"getGroup");for(let v of m){if(v.data.length===0)continue;let x=y(v.groupTexts);switch(v.type){case"rect":x.selectAll("rect").data(v.data).enter().append("rect").attr("x",b=>b.x).attr("y",b=>b.y).attr("width",b=>b.width).attr("height",b=>b.height).attr("fill",b=>b.fill).attr("stroke",b=>b.strokeFill).attr("stroke-width",b=>b.strokeWidth);break;case"text":x.selectAll("text").data(v.data).enter().append("text").attr("x",0).attr("y",0).attr("fill",b=>b.fill).attr("font-size",b=>b.fontSize).attr("dominant-baseline",b=>l(b.verticalPos)).attr("text-anchor",b=>u(b.horizontalPos)).attr("transform",b=>h(b)).text(b=>b.text);break;case"path":x.selectAll("path").data(v.data).enter().append("path").attr("d",b=>b.path).attr("fill",b=>b.fill?b.fill:"none").attr("stroke",b=>b.strokeFill).attr("stroke-width",b=>b.strokeWidth);break}}},"draw"),yfe={draw: $ Ve}});var xfe={};vr(xfe,{diagram:()=>VVe});var VVe,bfe=M(()=>{"use strict";Khe();gfe();vfe();VVe={parser:jhe,db:mfe,renderer:yfe}});var vO,kfe,Efe=M(()=>{"use strict";vO=function(){var t=o(function(oe,K,ee,J){for(ee=ee||{},J=oe.length;J--;ee[oe[J]]=K);return ee},"o"),e=[1,3],r=[1,4],n=[1,5],i=[1,6],a=[5,6,8,9,11,13,31,32,33,34,35,36,44,62,63],s=[1,18],l=[2,7],u=[1,22],h=[1,23],f=[1,24],d=[1,25],p=[1,26],m=[1,27],g=[1,20],y=[1,28],v=[1,29],x=[62,63],b=[5,8,9,11,13,31,32,33,34,35,36,44,51,53,62,63],w=[1,47],_=[1,48],T=[1,49],E=[1,50],L=[1,51],S=[1,52],A=[1,53],I=[53,54],D=[1,64],k=[1,60],R=[1,61],C=[1,62],O=[1,63],N=[1,65],P=[1,69],F=[1,70],B=[1,67],G=[1,68],z=[5,8,9,11,13,31,32,33,34,35,36,44,62,63],W={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,start:3,directive:4,NEWLINE:5,RD:6,diagram:7,EOF:8,acc_title:9,acc_title_value:10,acc_descr:11,acc_descr_value:12,acc_descr_multiline_value:13,requirementDef:14,elementDef:15,relationshipDef:16,requirementType:17,requirementName:18,STRUCT_START:19,requirementBody:20,ID:21,COLONSEP:22,id:23,TEXT:24,text:25,RISK:26,riskLevel:27,VERIFYMTHD:28,verifyType:29,STRUCT_STOP:30,REQUIREMENT:31,FUNCTIONAL_REQUIREMENT:32,INTERFACE_REQUIREMENT:33,PERFORMANCE_REQUIREMENT:34,PHYSICAL_REQUIREMENT:35,DESIGN_CONSTRAINT:36,LOW_RISK:37,MED_RISK:38,HIGH_RISK:39,VERIFY_ANALYSIS:40,VERIFY_DEMONSTRATION:41,VERIFY_INSPECTION:42,VERIFY_TEST:43,ELEMENT:44,elementName:45,elementBody:46,TYPE:47,type:48,DOCREF:49,ref:50,END_ARROW_L:51,relationship:52,LINE:53,END_ARROW_R:54,CONTAINS:55,COPIES:56,DERIVES:57,SATISFIES:58,VERIFIES:59,REFINES:60,TRACES:61,unqString:62,qString:63, $ accept:0, $ end:1},terminals_:{2:"error",5:"NEWLINE",6:"RD",8:"EOF",9:"acc_title",10:"acc_title_value",11:"acc_descr",12:"acc_descr_value",13:"acc_descr_multiline_value",19:"STRUCT_START",21:"ID",22:"COLONSEP",24:"TEXT",26:"RISK",28:"VERIFYMTHD",30:"STRUCT_STOP",31:"REQUIREMENT",32:"FUNCTIONAL_REQUIREMENT",33:"INTERFACE_REQUIREMENT",34:"PERFORMANCE_REQUIREMENT",35:"PHYSICAL_REQUIREMENT",36:"DESIGN_CONSTRAINT",37:"LOW_RISK",38:"MED_RISK",39:"HIGH_RISK",40:"VERIFY_ANALYSIS",41:"VERIFY_DEMONSTRATION",42:"VERIFY_INSPECTION",43:"VERIFY_TEST",44:"ELEMENT",47:"TYPE",49:"DOCREF",51:"END_ARROW_L",53:"LINE",54:"END_ARROW_R",55:"CONTAINS",56:"COPIES",57:"DERIVES",58:"SATISFIES",59:"VERIFIES",60:"REFINES",61:"TRACES",62:"unqString",63:"qString"},productions_:[0,[3,3],[3,2],[3,4],[4,2],[4,2],[4,1],[7,0],[7,2],[7,2],[7,2],[7,2],[7,2],[14,5],[20,5],[20,5],[20,5],[20,5],[20,2],[20,1],[17,1],[17,1],[17,1],[17,1],[17,1],[17,1],[27,1],[27,1],[27,1],[29,1],[29,1],[29,1],[29,1],[15,5],[46,5],[46,5],[46,2],[46,1],[16,5],[16,5],[52,1],[52,1],[52,1],[52,1],[52,1],[52,1],[52,1],[18,1],[18,1],[23,1],[23,1],[25,1],[25,1],[45,1],[45,1],[
` +Ce.showPosition()+ `
Expecting ` +Be.join(", ")+", got '"+(this.terminals_[he]||he)+"'":me="Parse error on line "+(ce+1)+": Unexpected "+(he==ke?"end of input":"'"+(this.terminals_[he]||he)+"'"),this.parseError(me,{text:Ce.match,token:this.terminals_[he]||he,line:Ce.yylineno,loc: $ e,expected:Be})}if(ve[0]instanceof Array&&ve.length>1)throw new Error("Parse Error: multiple actions possible at state: "+ne+", token: "+he);switch(ve[0]){case 1:J.push(he),q.push(Ce.yytext),Q.push(Ce.yylloc),J.push(ve[1]),he=null,ge?(he=ge,ge=null):(te=Ce.yyleng,ue=Ce.yytext,ce=Ce.yylineno, $ e=Ce.yylloc,Ne>0&&Ne--);break;case 2:if(Ae=this.productions_[ve[1]][1],ie. $ =q[q.length-Ae],ie._ $ ={first_line:Q[Q.length-(Ae||1)].first_line,last_line:Q[Q.length-1].last_line,first_column:Q[Q.length-(Ae||1)].first_column,last_column:Q[Q.length-1].last_column},ye&&(ie._ $ .range=[Q[Q.length-(Ae||1)].range[0],Q[Q.length-1].range[1]]),Te=this.performAction.apply(ie,[ue,te,ce,Pe.yy,ve[1],q,Q].concat(Re)),typeof Te<"u")return Te;Ae&&(J=J.slice(0,-1*Ae*2),q=q.slice(0,-1*Ae),Q=Q.slice(0,-1*Ae)),J.push(this.productions_[ve[1]][0]),q.push(ie. $ ),Q.push(ie._ $ ),Ge=ae[J[J.length-2]][J[J.length-1]],J.push(Ge);break;case 3:return!0}}return!0},"parse")},Z=function(){var oe={EOF:1,parseError:o(function(ee,J){if(this.yy.parser)this.yy.parser.parseError(ee,J);else throw new Error(ee)},"parseError"),setInput:o(function(K,ee){return this.yy=ee||this.yy||{},this._input=K,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:o(function(){var K=this._input[0];this.yytext+=K,this.yyleng++,this.offset++,this.match+=K,this.matched+=K;var ee=K.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),K},"input"),unput:o(function(K){var ee=K.length,J=K.split(/(?: \r \n ?| \n )/g);this._input=K+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-ee),this.offset-=ee;var H=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),J.length-1&&(this.yylineno-=J.length-1);var q=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:J?(J.length===H.length?this.yylloc.first_column:0)+H[H.length-J.length].length-J[0].length:this.yylloc.first_column-ee},this.options.ranges&&(this.yylloc.range=[q[0],q[0]+this.yyleng-ee]),this.yyleng=this.yytext.length,this},"unput"),more:o(function(){return this._more=!0,this},"more"),reject:o(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+ ` . You can only invoke reject ( ) in the lexer when the lexer is of the backtracking persuasion ( options . backtrack _lexer = true ) .
` +this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:o(function(K){this.unput(this.match.slice(K))},"less"),pastInput:o(function(){var K=this.matched.substr(0,this.matched.length-this.match.length);return(K.length>20?"...":"")+K.substr(-20).replace(/ \n /g,"")},"pastInput"),upcomingInput:o(function(){var K=this.match;return K.length<20&&(K+=this._input.substr(0,20-K.length)),(K.substr(0,20)+(K.length>20?"...":"")).replace(/ \n /g,"")},"upcomingInput"),showPosition:o(function(){var K=this.pastInput(),ee=new Array(K.length+1).join("-");return K+this.upcomingInput()+ `
` +ee+"^"},"showPosition"),test_match:o(function(K,ee){var J,H,q;if(this.options.backtrack_lexer&&(q={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&&(q.yylloc.range=this.yylloc.range.slice(0))),H=K[0].match(/(?: \r \n ?| \n ).*/g),H&&(this.yylineno+=H.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:H?H[H.length-1].length-H[H.length-1].match(/ \r ? \n ?/)[0].length:this.yylloc.last_column+K[0].length},this.yytext+=K[0],this.match+=K[0],this.matches=K,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(K[0].length),this.matched+=K[0],J=this.performAction.call(this,this.yy,this,ee,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),J)return J;if(this._backtrack){for(var Q in q)this[Q]=q[Q];return!1}return!1},"test_match"),next:o(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var K,ee,J,H;this._more||(this.yytext="",this.match="");for(var q=this._currentRules(),Q=0;Q<q.length;Q++)if(J=this._input.match(this.rules[q[Q]]),J&&(!ee||J[0].length>ee[0].length)){if(ee=J,H=Q,this.options.backtrack_lexer){if(K=this.test_match(J,q[Q]),K!==!1)return K;if(this._backtrack){ee=!1;continue}else return!1}else if(!this.options.flex)break}return ee?(K=this.test_match(ee,q[H]),K!==!1?K:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+ ` . Unrecognized text .
` +this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:o(function(){var ee=this.next();return ee||this.lex()},"lex"),begin:o(function(ee){this.conditionStack.push(ee)},"begin"),popState:o(function(){var ee=this.conditionStack.length-1;return ee>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:o(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:o(function(ee){return ee=this.conditionStack.length-1-Math.abs(ee||0),ee>=0?this.conditionStack[ee]:"INITIAL"},"topState"),pushState:o(function(ee){this.begin(ee)},"pushState"),stateStackSize:o(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:o(function(ee,J,H,q){var Q=q;switch(H){case 0:return"title";case 1:return this.begin("acc_title"),9;break;case 2:return this.popState(),"acc_title_value";break;case 3:return this.begin("acc_descr"),11;break;case 4:return this.popState(),"acc_descr_value";break;case 5:this.begin("acc_descr_multiline");break;case 6:this.popState();break;case 7:return"acc_descr_multiline_value";case 8:return 5;case 9:break;case 10:break;case 11:break;case 12:return 8;case 13:return 6;case 14:return 19;case 15:return 30;case 16:return 22;case 17:return 21;case 18:return 24;case 19:return 26;case 20:return 28;case 21:return 31;case 22:return 32;case 23:return 33;case 24:return 34;case 25:return 35;case 26:return 36;case 27:return 37;case 28:return 38;case 29:return 39;case 30:return 40;case 31:return 41;case 32:return 42;case 33:return 43;case 34:return 44;case 35:return 55;case 36:return 56;case 37:return 57;case 38:return 58;case 39:return 59;case 40:return 60;case 41:return 61;case 42:return 47;case 43:return 49;case 44:return 51;case 45:return 54;case 46:return 53;case 47:this.begin("string");break;case 48:this.popState();break;case 49:return"qString";case 50:return J.yytext=J.yytext.trim(),62;break}},"anonymous"),rules:[/^(?:title \s [^# \n ;]+)/i,/^(?:accTitle \s *: \s *)/i,/^(?:(?! \n ||)*[^ \n ]*)/i,/^(?:accDescr \s *: \s *)/i,/^(?:(?! \n ||)*[^ \n ]*)/i,/^(?:accDescr \s * \{ \s *)/i,/^(?:[ \} ])/i,/^(?:[^ \} ]*)/i,/^(?:( \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:[6,7],inclusive:!1},acc_descr:{rules:[4],inclusive:!1},acc_title:{rules:[2],inclusive:!1},unqString:{rules:[],inclusive:!1},token:{rules:[],inclusive:!1},string:{rules:[48,49],inclusive:!1},INITIAL:{rules:[0,1,3,5,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,50],inclusive:!0}}};return oe}();W.lexer=Z;function j(){this.yy={}}return o(j,"Parser"),j.prototype=W,W.Parser=j,new j}();vO.parser=vO;kfe=vO});var xO,qs,Rx,Tf,Mx,YVe,qVe,XVe,jVe,KVe,QVe,ZVe,JVe,eUe,tUe,rUe,nUe,iUe,aUe,sUe,oUe,lUe,Sfe,Cfe=M(()=>{"use strict";Vt();ut();Ai();xO=[],qs={},Rx=new Map,Tf={},Mx=new Map,YVe={REQUIREMENT:"Requirement",FUNCTIONAL_REQUIREMENT:"Functional Requirement",INTERFACE_REQUIREMENT:"Interface Requirement",PERFORMANCE_REQUIREMENT:"Performance Requirement",PHYSICAL_REQUIREMENT:"Physical Requirement",DESIGN_CONSTRAINT:"Design Constraint"},qVe={LOW_RISK:"Low",MED_RISK:"Medium",HIGH_RISK:"High"},XVe={VERIFY_ANALYSIS:"Analysis",VERIFY_DEMONST
2022-11-24 01:08:27 +02:00
marker {
2024-11-13 12:07:54 +02:00
fill : $ { t . relationColor } ;
stroke : $ { t . relationColor } ;
2022-11-24 01:08:27 +02:00
}
marker . cross {
2024-11-13 12:07:54 +02:00
stroke : $ { t . lineColor } ;
2022-11-24 01:08:27 +02:00
}
svg {
2024-11-13 12:07:54 +02:00
font - family : $ { t . fontFamily } ;
font - size : $ { t . fontSize } ;
2022-11-24 01:08:27 +02:00
}
. reqBox {
2024-11-13 12:07:54 +02:00
fill : $ { t . requirementBackground } ;
2023-09-19 12:31:17 +02:00
fill - opacity : 1.0 ;
2024-11-13 12:07:54 +02:00
stroke : $ { t . requirementBorderColor } ;
stroke - width : $ { t . requirementBorderSize } ;
2022-11-24 01:08:27 +02:00
}
. reqTitle , . reqLabel {
2024-11-13 12:07:54 +02:00
fill : $ { t . requirementTextColor } ;
2022-11-24 01:08:27 +02:00
}
. reqLabelBox {
2024-11-13 12:07:54 +02:00
fill : $ { t . relationLabelBackground } ;
2023-09-19 12:31:17 +02:00
fill - opacity : 1.0 ;
2022-11-24 01:08:27 +02:00
}
. req - title - line {
2024-11-13 12:07:54 +02:00
stroke : $ { t . requirementBorderColor } ;
stroke - width : $ { t . requirementBorderSize } ;
2022-11-24 01:08:27 +02:00
}
. relationshipLine {
2024-11-13 12:07:54 +02:00
stroke : $ { t . relationColor } ;
2022-11-24 01:08:27 +02:00
stroke - width : 1 ;
}
. relationshipLabel {
2024-11-13 12:07:54 +02:00
fill : $ { t . relationLabelColor } ;
2022-11-24 01:08:27 +02:00
}
2024-11-13 12:07:54 +02:00
` ,"getStyles"),Afe=cUe});var bO,uUe,wO,Lfe=M(()=>{"use strict";bO={CONTAINS:"contains",ARROW:"arrow"},uUe=o((t,e)=>{let r=t.append("defs").append("marker").attr("id",bO.CONTAINS+"_line_ending").attr("refX",0).attr("refY",e.line_height/2).attr("markerWidth",e.line_height).attr("markerHeight",e.line_height).attr("orient","auto").append("g");r.append("circle").attr("cx",e.line_height/2).attr("cy",e.line_height/2).attr("r",e.line_height/2).attr("fill","none"),r.append("line").attr("x1",0).attr("x2",e.line_height).attr("y1",e.line_height/2).attr("y2",e.line_height/2).attr("stroke-width",1),r.append("line").attr("y1",0).attr("y2",e.line_height).attr("x1",e.line_height/2).attr("x2",e.line_height/2).attr("stroke-width",1),t.append("defs").append("marker").attr("id",bO.ARROW+"_line_ending").attr("refX",e.line_height).attr("refY",.5*e.line_height).attr("markerWidth",e.line_height).attr("markerHeight",e.line_height).attr("orient","auto").append("path").attr("d", ` M0 , 0
L$ { e . line _height } , $ { e . line _height / 2 }
M$ { e . line _height } , $ { e . line _height / 2 }
L0 , $ { e . line _height } ` ).attr("stroke-width",1)},"insertLineEndings"),wO={ReqMarkers:bO,insertLineEndings:uUe}});var hi,Dfe,Nfe,Rfe,Mfe,hUe,fUe,dUe,pUe,mUe,gUe,Kg,yUe,Ife,Ofe=M(()=>{"use strict";pr();Qv();Gs();Vt();ut();ai();fr();Lfe();hi={},Dfe=0,Nfe=o((t,e)=>t.insert("rect","#"+e).attr("class","req reqBox").attr("x",0).attr("y",0).attr("width",hi.rect_min_width+"px").attr("height",hi.rect_min_height+"px"),"newRectNode"),Rfe=o((t,e,r)=>{let n=hi.rect_min_width/2,i=t.append("text").attr("class","req reqLabel reqTitle").attr("id",e).attr("x",n).attr("y",hi.rect_padding).attr("dominant-baseline","hanging"),a=0;r.forEach(h=>{a==0?i.append("tspan").attr("text-anchor","middle").attr("x",hi.rect_min_width/2).attr("dy",0).text(h):i.append("tspan").attr("text-anchor","middle").attr("x",hi.rect_min_width/2).attr("dy",hi.line_height*.75).text(h),a++});let s=1.5*hi.rect_padding,l=a*hi.line_height*.75,u=s+l;return t.append("line").attr("class","req-title-line").attr("x1","0").attr("x2",hi.rect_min_width).attr("y1",u).attr("y2",u),{titleNode:i,y:u}},"newTitleNode"),Mfe=o((t,e,r,n)=>{let i=t.append("text").attr("class","req reqLabel").attr("id",e).attr("x",hi.rect_padding).attr("y",n).attr("dominant-baseline","hanging"),a=0,s=30,l=[];return r.forEach(u=>{let h=u.length;for(;h>s&&a<3;){let f=u.substring(0,s);u=u.substring(s,u.length),h=u.length,l[l.length]=f,a++}if(a==3){let f=l[l.length-1];l[l.length-1]=f.substring(0,f.length-4)+"..."}else l[l.length]=u;a=0}),l.forEach(u=>{i.append("tspan").attr("x",hi.rect_padding).attr("dy",hi.line_height).text(u)}),i},"newBodyNode"),hUe=o((t,e,r,n)=>{let i=e.node().getTotalLength(),a=e.node().getPointAtLength(i*.5),s="rel"+Dfe;Dfe++;let u=t.append("text").attr("class","req relationshipLabel").attr("id",s).attr("x",a.x).attr("y",a.y).attr("text-anchor","middle").attr("dominant-baseline","middle").text(n).node().getBBox();t.insert("rect","#"+s).attr("class","req reqLabelBox").attr("x",a.x-u.width/2).attr("y",a.y-u.height/2).attr("width",u.width).attr("height",u.height).attr("fill","white").attr("fill-opacity","85%")},"addEdgeLabel"),fUe=o(function(t,e,r,n,i){let a=r.edge(Kg(e.src),Kg(e.dst)),s=ns().x(function(u){return u.x}).y(function(u){return u.y}),l=t.insert("path","#"+n).attr("class","er relationshipLine").attr("d",s(a.points)).attr("fill","none");e.type==i.db.Relationships.CONTAINS?l.attr("marker-start","url("+qe.getUrl(hi.arrowMarkerAbsolute)+"#"+e.type+"_line_ending)"):(l.attr("stroke-dasharray","10,7"),l.attr("marker-end","url("+qe.getUrl(hi.arrowMarkerAbsolute)+"#"+wO.ReqMarkers.ARROW+"_line_ending)")),hUe(t,l,hi, ` << $ { e . type } >> ` )},"drawRelationshipFromLayout"),dUe=o((t,e,r)=>{t.forEach((n,i)=>{i=Kg(i),Y.info("Added new requirement: ",i);let a=r.append("g").attr("id",i),s="req-"+i,l=Nfe(a,s),u=[],h=Rfe(a,i+"_title",[ ` << $ { n . type } >> ` , ` $ { n . name } ` ]);u.push(h.titleNode);let f=Mfe(a,i+"_body",[ ` Id : $ { n . id } ` , ` Text : $ { n . text } ` , ` Risk : $ { n . risk } ` , ` Verification : $ { n . verifyMethod } ` ],h.y);u.push(f);let d=l.node().getBBox();e.setNode(i,{width:d.width,height:d.height,shape:"rect",id:i})})},"drawReqs"),pUe=o((t,e,r)=>{t.forEach((n,i)=>{let a=Kg(i),s=r.append("g").attr("id",a),l="element-"+a,u=Nfe(s,l),h=[],f=Rfe(s,l+"_title",["<<Element>>", ` $ { i } ` ]);h.push(f.titleNode);let d=Mfe(s,l+"_body",[ ` Type : $ { n . type || "Not Specified" } ` , ` Doc Ref : $ { n . docRef || "None" } ` ],f.y);h.push(d);let p=u.node().getBBox();e.setNode(a,{width:p.width,height:p.height,shape:"rect",id:a})})},"drawElements"),mUe=o((t,e)=>(t.forEach(function(r){let n=Kg(r.src),i=Kg(r.dst);e.setEdge(n,i,{relationship:r})}),t),"addRelationships"),gUe=o(function(t,e){e.nodes().forEach(function(r){r!==void 0&&e.node(r)!==void 0&&(t.select("#"+r),t.select("#"+r).attr("transform","translate("+(e.node(r).x-e.node(r).width/2)+","+(e.node(r).y-e.node(r).height/2)+" )"))})},"adjustEntities"),Kg=o(t=>t.replace(/ \s /g,"").replace(/ \. /g,"_"),"elementString"),yUe=o((t,e,r,n)=>{hi=pe().requirement;let i=hi.securityLevel,a;i==="sandbox"&&(a=Ve("#i"+e));let l=(i==="sandbox"?Ve(a.nodes()[0].contentDocument.body):Ve("body")).select( ` [ id = '${e}' ] ` );wO.insertLineEndings(l,hi)
` +ye.showPosition()+ `
Expecting ` +et.join(", ")+", got '"+(this.terminals_[U]||U)+"'":bt="Parse error on line "+(ke+1)+": Unexpected "+(U==Ie?"end of input":"'"+(this.terminals_[U]||U)+"'"),this.parseError(bt,{text:ye.match,token:this.terminals_[U]||U,line:ye.yylineno,loc:he,expected:et})}if(Ee[0]instanceof Array&&Ee.length>1)throw new Error("Parse Error: multiple actions possible at state: "+ie+", token: "+U);switch(Ee[0]){case 1:ae.push(U),ce.push(ye.yytext),te.push(ye.yylloc),ae.push(Ee[1]),U=null,Te?(U=Te,Te=null):(Re=ye.yyleng,se=ye.yytext,ke=ye.yylineno,he=ye.yylloc,Ce>0&&Ce--);break;case 2:if(He=this.productions_[Ee[1]][1],Be. $ =ce[ce.length-He],Be._ $ ={first_line:te[te.length-(He||1)].first_line,last_line:te[te.length-1].last_line,first_column:te[te.length-(He||1)].first_column,last_column:te[te.length-1].last_column},ge&&(Be._ $ .range=[te[te.length-(He||1)].range[0],te[te.length-1].range[1]]),Ge=this.performAction.apply(Be,[se,Re,ke,X.yy,Ee[1],ce,te].concat( $ e)),typeof Ge<"u")return Ge;He&&(ae=ae.slice(0,-1*He*2),ce=ce.slice(0,-1*He),te=te.slice(0,-1*He)),ae.push(this.productions_[Ee[1]][0]),ce.push(Be. $ ),te.push(Be._ $ ),Oe=Ne[ae[ae.length-2]][ae[ae.length-1]],ae.push(Oe);break;case 3:return!0}}return!0},"parse")},ee=function(){var H={EOF:1,parseError:o(function(Q,ae){if(this.yy.parser)this.yy.parser.parseError(Q,ae);else throw new Error(Q)},"parseError"),setInput:o(function(q,Q){return this.yy=Q||this.yy||{},this._input=q,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:o(function(){var q=this._input[0];this.yytext+=q,this.yyleng++,this.offset++,this.match+=q,this.matched+=q;var Q=q.match(/(?: \r \n ?| \n ).*/g);return Q?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),q},"input"),unput:o(function(q){var Q=q.length,ae=q.split(/(?: \r \n ?| \n )/g);this._input=q+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-Q),this.offset-=Q;var ue=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),ae.length-1&&(this.yylineno-=ae.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:ae?(ae.length===ue.length?this.yylloc.first_column:0)+ue[ue.length-ae.length].length-ae[0].length:this.yylloc.first_column-Q},this.options.ranges&&(this.yylloc.range=[ce[0],ce[0]+this.yyleng-Q]),this.yyleng=this.yytext.length,this},"unput"),more:o(function(){return this._more=!0,this},"more"),reject:o(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+ ` . You can only invoke reject ( ) in the lexer when the lexer is of the backtracking persuasion ( options . backtrack _lexer = true ) .
` +this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:o(function(q){this.unput(this.match.slice(q))},"less"),pastInput:o(function(){var q=this.matched.substr(0,this.matched.length-this.match.length);return(q.length>20?"...":"")+q.substr(-20).replace(/ \n /g,"")},"pastInput"),upcomingInput:o(function(){var q=this.match;return q.length<20&&(q+=this._input.substr(0,20-q.length)),(q.substr(0,20)+(q.length>20?"...":"")).replace(/ \n /g,"")},"upcomingInput"),showPosition:o(function(){var q=this.pastInput(),Q=new Array(q.length+1).join("-");return q+this.upcomingInput()+ `
` +Q+"^"},"showPosition"),test_match:o(function(q,Q){var ae,ue,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))),ue=q[0].match(/(?: \r \n ?| \n ).*/g),ue&&(this.yylineno+=ue.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:ue?ue[ue.length-1].length-ue[ue.length-1].match(/ \r ? \n ?/)[0].length:this.yylloc.last_column+q[0].length},this.yytext+=q[0],this.match+=q[0],this.matches=q,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(q[0].length),this.matched+=q[0],ae=this.performAction.call(this,this.yy,this,Q,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),ae)return ae;if(this._backtrack){for(var te in ce)this[te]=ce[te];return!1}return!1},"test_match"),next:o(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var q,Q,ae,ue;this._more||(this.yytext="",this.match="");for(var ce=this._currentRules(),te=0;te<ce.length;te++)if(ae=this._input.match(this.rules[ce[te]]),ae&&(!Q||ae[0].length>Q[0].length)){if(Q=ae,ue=te,this.options.backtrack_lexer){if(q=this.test_match(ae,ce[te]),q!==!1)return q;if(this._backtrack){Q=!1;continue}else return!1}else if(!this.options.flex)break}return Q?(q=this.test_match(Q,ce[ue]),q!==!1?q:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+ ` . Unrecognized text .
` +this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:o(function(){var Q=this.next();return Q||this.lex()},"lex"),begin:o(function(Q){this.conditionStack.push(Q)},"begin"),popState:o(function(){var Q=this.conditionStack.length-1;return Q>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:o(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:o(function(Q){return Q=this.conditionStack.length-1-Math.abs(Q||0),Q>=0?this.conditionStack[Q]:"INITIAL"},"topState"),pushState:o(function(Q){this.begin(Q)},"pushState"),stateStackSize:o(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:o(function(Q,ae,ue,ce){var te=ce;switch(ue){case 0:return 5;case 1:break;case 2:break;case 3:break;case 4:break;case 5:break;case 6:return 19;case 7:return this.begin("LINE"),14;break;case 8:return this.begin("ID"),50;break;case 9:return this.begin("ID"),52;break;case 10:return 13;case 11:return this.begin("ID"),53;break;case 12:return ae.yytext=ae.yytext.trim(),this.begin("ALIAS"),70;break;case 13:return this.popState(),this.popState(),this.begin("LINE"),51;break;case 14:return this.popState(),this.popState(),5;break;case 15:return this.begin("LINE"),36;break;case 16:return this.begin("LINE"),37;break;case 17:return this.begin("LINE"),38;break;case 18:return this.begin("LINE"),39;break;case 19:return this.begin("LINE"),49;break;case 20:return this.begin("LINE"),41;break;case 21:return this.begin("LINE"),43;break;case 22:return this.begin("LINE"),48;break;case 23:return this.begin("LINE"),44;break;case 24:return this.begin("LINE"),47;break;case 25:return this.begin("LINE"),46;break;case 26:return this.popState(),15;break;case 27:return 16;case 28:return 65;case 29:return 66;case 30:return 59;case 31:return 60;case 32:return 61;case 33:return 62;case 34:return 57;case 35:return 54;case 36:return this.begin("ID"),21;break;case 37:return this.begin("ID"),23;break;case 38:return 29;case 39:return 30;case 40:return this.begin("acc_title"),31;break;case 41:return this.popState(),"acc_title_value";break;case 42:return this.begin("acc_descr"),33;break;case 43:return this.popState(),"acc_descr_value";break;case 44:this.begin("acc_descr_multiline");break;case 45:this.popState();break;case 46:return"acc_descr_multiline_value";case 47:return 6;case 48:return 18;case 49:return 20;case 50:return 64;case 51:return 5;case 52:return ae.yytext=ae.yytext.trim(),70;break;case 53:return 73;case 54:return 74;case 55:return 75;case 56:return 76;case 57:return 71;case 58:return 72;case 59:return 77;case 60:return 78;case 61:return 79;case 62:return 80;case 63:return 81;case 64:return 68;case 65:return 69;case 66:return 5;case 67:return"INVALID"}},"anonymous"),rules:[/^(?:[ \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,/^(?:->)/i,/^(?:
stroke : $ { t . actorBorder } ;
fill : $ { t . actorBkg } ;
2022-11-24 01:08:27 +02:00
}
text . actor > tspan {
2024-11-13 12:07:54 +02:00
fill : $ { t . actorTextColor } ;
2022-11-24 01:08:27 +02:00
stroke : none ;
}
. actor - line {
2024-11-13 12:07:54 +02:00
stroke : $ { t . actorLineColor } ;
2022-11-24 01:08:27 +02:00
}
. messageLine0 {
stroke - width : 1.5 ;
stroke - dasharray : none ;
2024-11-13 12:07:54 +02:00
stroke : $ { t . signalColor } ;
2022-11-24 01:08:27 +02:00
}
. messageLine1 {
stroke - width : 1.5 ;
stroke - dasharray : 2 , 2 ;
2024-11-13 12:07:54 +02:00
stroke : $ { t . signalColor } ;
2022-11-24 01:08:27 +02:00
}
# arrowhead path {
2024-11-13 12:07:54 +02:00
fill : $ { t . signalColor } ;
stroke : $ { t . signalColor } ;
2022-11-24 01:08:27 +02:00
}
. sequenceNumber {
2024-11-13 12:07:54 +02:00
fill : $ { t . sequenceNumberColor } ;
2022-11-24 01:08:27 +02:00
}
# sequencenumber {
2024-11-13 12:07:54 +02:00
fill : $ { t . signalColor } ;
2022-11-24 01:08:27 +02:00
}
# crosshead path {
2024-11-13 12:07:54 +02:00
fill : $ { t . signalColor } ;
stroke : $ { t . signalColor } ;
2022-11-24 01:08:27 +02:00
}
. messageText {
2024-11-13 12:07:54 +02:00
fill : $ { t . signalTextColor } ;
2022-11-24 01:08:27 +02:00
stroke : none ;
}
. labelBox {
2024-11-13 12:07:54 +02:00
stroke : $ { t . labelBoxBorderColor } ;
fill : $ { t . labelBoxBkgColor } ;
2022-11-24 01:08:27 +02:00
}
. labelText , . labelText > tspan {
2024-11-13 12:07:54 +02:00
fill : $ { t . labelTextColor } ;
2022-11-24 01:08:27 +02:00
stroke : none ;
}
. loopText , . loopText > tspan {
2024-11-13 12:07:54 +02:00
fill : $ { t . loopTextColor } ;
2022-11-24 01:08:27 +02:00
stroke : none ;
}
. loopLine {
stroke - width : 2 px ;
stroke - dasharray : 2 , 2 ;
2024-11-13 12:07:54 +02:00
stroke : $ { t . labelBoxBorderColor } ;
fill : $ { t . labelBoxBorderColor } ;
2022-11-24 01:08:27 +02:00
}
. note {
//stroke: #decc93;
2024-11-13 12:07:54 +02:00
stroke : $ { t . noteBorderColor } ;
fill : $ { t . noteBkgColor } ;
2022-11-24 01:08:27 +02:00
}
. noteText , . noteText > tspan {
2024-11-13 12:07:54 +02:00
fill : $ { t . noteTextColor } ;
2022-11-24 01:08:27 +02:00
stroke : none ;
}
. activation0 {
2024-11-13 12:07:54 +02:00
fill : $ { t . activationBkgColor } ;
stroke : $ { t . activationBorderColor } ;
2022-11-24 01:08:27 +02:00
}
. activation1 {
2024-11-13 12:07:54 +02:00
fill : $ { t . activationBkgColor } ;
stroke : $ { t . activationBorderColor } ;
2022-11-24 01:08:27 +02:00
}
. activation2 {
2024-11-13 12:07:54 +02:00
fill : $ { t . activationBkgColor } ;
stroke : $ { t . activationBorderColor } ;
2022-11-24 01:08:27 +02:00
}
. actorPopupMenu {
position : absolute ;
}
. actorPopupMenuPanel {
position : absolute ;
2024-11-13 12:07:54 +02:00
fill : $ { t . actorBkg } ;
2022-11-24 01:08:27 +02:00
box - shadow : 0 px 8 px 16 px 0 px rgba ( 0 , 0 , 0 , 0.2 ) ;
filter : drop - shadow ( 3 px 5 px 2 px rgb ( 0 0 0 / 0.4 ) ) ;
}
. actor - man line {
2024-11-13 12:07:54 +02:00
stroke : $ { t . actorBorder } ;
fill : $ { t . actorBkg } ;
2022-11-24 01:08:27 +02:00
}
. actor - man circle , line {
2024-11-13 12:07:54 +02:00
stroke : $ { t . actorBorder } ;
fill : $ { t . actorBkg } ;
2022-11-24 01:08:27 +02:00
stroke - width : 2 px ;
}
2024-11-13 12:07:54 +02:00
` ,"getStyles"),Kfe=WUe});var CO,kf,Jfe,ede,YUe,Zfe,AO,qUe,XUe,Px,I0,tde,Xc,_O,jUe,KUe,QUe,ZUe,JUe,eHe,tHe,rde,rHe,nHe,iHe,aHe,sHe,oHe,lHe,nde,cHe,LO,uHe,fi,ide=M(()=>{"use strict";fr();lv();hr();CO=Ji(Qp(),1);Za();kf=18*2,Jfe="actor-top",ede="actor-bottom",YUe="actor-box",Zfe="actor-man",AO=o(function(t,e){return Sd(t,e)},"drawRect"),qUe=o(function(t,e,r,n,i){if(e.links===void 0||e.links===null||Object.keys(e.links).length===0)return{height:0,width:0};let a=e.links,s=e.actorCnt,l=e.rectData;var u="none";i&&(u="block !important");let h=t.append("g");h.attr("id","actor"+s+"_popup"),h.attr("class","actorPopupMenu"),h.attr("display",u);var f="";l.class!==void 0&&(f=" "+l.class);let d=l.width>r?l.width:r,p=h.append("rect");if(p.attr("class","actorPopupMenuPanel"+f),p.attr("x",l.x),p.attr("y",l.height),p.attr("fill",l.fill),p.attr("stroke",l.stroke),p.attr("width",d),p.attr("height",l.height),p.attr("rx",l.rx),p.attr("ry",l.ry),a!=null){var m=20;for(let v in a){var g=h.append("a"),y=(0,CO.sanitizeUrl)(a[v]);g.attr("xlink:href",y),g.attr("target","_blank"),uHe(n)(v,g,l.x+10,l.height+m,d,20,{class:"actor"},n),m+=30}}return p.attr("height",m),{height:l.height+m,width:d}},"drawPopup"),XUe=o(function(t){return"var pu = document.getElementById('"+t+"'); if (pu != null) { pu.style.display = pu.style.display == 'block' ? 'none' : 'block'; }"},"popupMenuToggle"),Px=o(async function(t,e,r=null){let n=t.append("foreignObject"),i=await bh(e.text,Cr()),s=n.append("xhtml:div").attr("style","width: fit-content;").attr("xmlns","http://www.w3.org/1999/xhtml").html(i).node().getBoundingClientRect();if(n.attr("height",Math.round(s.height)).attr("width",Math.round(s.width)),e.class==="noteText"){let l=t.node().firstChild;l.setAttribute("height",s.height+2*e.textMargin);let u=l.getBBox();n.attr("x",Math.round(u.x+u.width/2-s.width/2)).attr("y",Math.round(u.y+u.height/2-s.height/2))}else if(r){let{startx:l,stopx:u,starty:h}=r;if(l>u){let f=l;l=u,u=f}n.attr("x",Math.round(l+Math.abs(l-u)/2-s.width/2)),e.class==="loopText"?n.attr("y",Math.round(h)):n.attr("y",Math.round(h-s.height))}return[n]},"drawKatex"),I0=o(function(t,e){let r=0,n=0,i=e.text.split(qe.lineBreakRegex),[a,s]=Ho(e.fontSize),l=[],u=0,h=o(()=>e.y,"yfunc");if(e.valign!==void 0&&e.textMargin!==void 0&&e.textMargin>0)switch(e.valign){case"top":case"start":h=o(()=>Math.round(e.y+e.textMargin),"yfunc");break;case"middle":case"center":h=o(()=>Math.round(e.y+(r+n+e.textMargin)/2),"yfunc");break;case"bottom":case"end":h=o(()=>Math.round(e.y+(r+n+2*e.textMargin)-e.textMargin),"yfunc");break}if(e.anchor!==void 0&&e.textMargin!==void 0&&e.width!==void 0)switch(e.anchor){case"left":case"start":e.x=Math.round(e.x+e.textMargin),e.anchor="start",e.dominantBaseline="middle",e.alignmentBaseline="middle";break;case"middle":case"center":e.x=Math.round(e.x+e.width/2),e.anchor="middle",e.dominantBaseline="middle",e.alignmentBaseline="middle";break;case"right":case"end":e.x=Math.round(e.x+e.width-e.textMargin),e.anchor="end",e.dominantBaseline="middle",e.alignmentBaseline="middle";break}for(let[f,d]of i.entries()){e.textMargin!==void 0&&e.textMargin===0&&a!==void 0&&(u=f*a);let p=t.append("text");p.attr("x",e.x),p.attr("y",h()),e.anchor!==void 0&&p.attr("text-anchor",e.anchor).attr("dominant-baseline",e.dominantBaseline).attr("alignment-baseline",e.alignmentBaseline),e.fontFamily!==void 0&&p.style("font-family",e.fontFamily),s!==void 0&&p.style("font-size",s),e.fontWeight!==void 0&&p.style("font-weight",e.fontWeight),e.fill!==void 0&&p.attr("fill",e.fill),e.class!==void 0&&p.attr("class",e.class),e.dy!==void 0?p.attr("dy",e.dy):u!==0&&p.attr("dy",u);let m=d||Z_;if(e.tspan){let g=p.append("tspan");g.attr("x",e.x),e.fill!==void 0&&g.attr("fill",e.fill),g.text(m)}else p.text(m);e.valign!==void 0&&e.textMargin!==void 0&&e.textMargin>0&&(n+=(p._groups||p)[0][0].getBBox().height,r=n),l.push(p)}return l},"drawText"),tde=o(function(t,e){function r(i,a,s,l,u){return i+","+a+" "+(i+s)+","+a+" "+(i+s)+","+(a+l-u)+" "+(i+s-u*1.2)+","+(a+l)+" "+i+","+(a+l)}o(r,"genPoints");let n=t.append("polygon");return n.attr("point
` +Oe.showPosition()+ `
Expecting ` +Bt.join(", ")+", got '"+(this.terminals_[Ue]||Ue)+"'":Tr="Parse error on line "+(Ee+1)+": Unexpected "+(Ue==me?"end of input":"'"+(this.terminals_[Ue]||Ue)+"'"),this.parseError(Tr,{text:Oe.match,token:this.terminals_[Ue]||Ue,line:Oe.yylineno,loc:kt,expected:Bt})}if(Et[0]instanceof Array&&Et.length>1)throw new Error("Parse Error: multiple actions possible at state: "+ht+", token: "+Ue);switch(Et[0]){case 1:ge.push(Ue),ve.push(Oe.yytext),U.push(Oe.yylloc),ge.push(Et[1]),Ue=null,tt?(Ue=tt,tt=null):(Ae=Oe.yyleng,ie=Oe.yytext,Ee=Oe.yylineno,kt=Oe.yylloc,Ge>0&&Ge--);break;case 2:if(Ct=this.productions_[Et[1]][1],Je. $ =ve[ve.length-Ct],Je._ $ ={first_line:U[U.length-(Ct||1)].first_line,last_line:U[U.length-1].last_line,first_column:U[U.length-(Ct||1)].first_column,last_column:U[U.length-1].last_column},vt&&(Je._ $ .range=[U[U.length-(Ct||1)].range[0],U[U.length-1].range[1]]),dt=this.performAction.apply(Je,[ie,Ae,Ee,et.yy,Et[1],ve,U].concat(He)),typeof dt<"u")return dt;Ct&&(ge=ge.slice(0,-1*Ct*2),ve=ve.slice(0,-1*Ct),U=U.slice(0,-1*Ct)),ge.push(this.productions_[Et[1]][0]),ve.push(Je. $ ),U.push(Je._ $ ),pt=Te[ge[ge.length-2]][ge[ge.length-1]],ge.push(pt);break;case 3:return!0}}return!0},"parse")}, $ e=function(){var X={EOF:1,parseError:o(function(he,ge){if(this.yy.parser)this.yy.parser.parseError(he,ge);else throw new Error(he)},"parseError"),setInput:o(function(fe,he){return this.yy=he||this.yy||{},this._input=fe,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:o(function(){var fe=this._input[0];this.yytext+=fe,this.yyleng++,this.offset++,this.match+=fe,this.matched+=fe;var he=fe.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),fe},"input"),unput:o(function(fe){var he=fe.length,ge=fe.split(/(?: \r \n ?| \n )/g);this._input=fe+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-he),this.offset-=he;var ne=this.match.split(/(?: \r \n ?| \n )/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),ge.length-1&&(this.yylineno-=ge.length-1);var ve=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:ge?(ge.length===ne.length?this.yylloc.first_column:0)+ne[ne.length-ge.length].length-ge[0].length:this.yylloc.first_column-he},this.options.ranges&&(this.yylloc.range=[ve[0],ve[0]+this.yyleng-he]),this.yyleng=this.yytext.length,this},"unput"),more:o(function(){return this._more=!0,this},"more"),reject:o(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+ ` . You can only invoke reject ( ) in the lexer when the lexer is of the backtracking persuasion ( options . backtrack _lexer = true ) .
` +this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:o(function(fe){this.unput(this.match.slice(fe))},"less"),pastInput:o(function(){var fe=this.matched.substr(0,this.matched.length-this.match.length);return(fe.length>20?"...":"")+fe.substr(-20).replace(/ \n /g,"")},"pastInput"),upcomingInput:o(function(){var fe=this.match;return fe.length<20&&(fe+=this._input.substr(0,20-fe.length)),(fe.substr(0,20)+(fe.length>20?"...":"")).replace(/ \n /g,"")},"upcomingInput"),showPosition:o(function(){var fe=this.pastInput(),he=new Array(fe.length+1).join("-");return fe+this.upcomingInput()+ `
` +he+"^"},"showPosition"),test_match:o(function(fe,he){var ge,ne,ve;if(this.options.backtrack_lexer&&(ve={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&&(ve.yylloc.range=this.yylloc.range.slice(0))),ne=fe[0].match(/(?: \r \n ?| \n ).*/g),ne&&(this.yylineno+=ne.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:ne?ne[ne.length-1].length-ne[ne.length-1].match(/ \r ? \n ?/)[0].length:this.yylloc.last_column+fe[0].length},this.yytext+=fe[0],this.match+=fe[0],this.matches=fe,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(fe[0].length),this.matched+=fe[0],ge=this.performAction.call(this,this.yy,this,he,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),ge)return ge;if(this._backtrack){for(var U in ve)this[U]=ve[U];return!1}return!1},"test_match"),next:o(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var fe,he,ge,ne;this._more||(this.yytext="",this.match="");for(var ve=this._currentRules(),U=0;U<ve.length;U++)if(ge=this._input.match(this.rules[ve[U]]),ge&&(!he||ge[0].length>he[0].length)){if(he=ge,ne=U,this.options.backtrack_lexer){if(fe=this.test_match(ge,ve[U]),fe!==!1)return fe;if(this._backtrack){he=!1;continue}else return!1}else if(!this.options.flex)break}return he?(fe=this.test_match(he,ve[ne]),fe!==!1?fe:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+ ` . Unrecognized text .
` +this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:o(function(){var he=this.next();return he||this.lex()},"lex"),begin:o(function(he){this.conditionStack.push(he)},"begin"),popState:o(function(){var he=this.conditionStack.length-1;return he>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:o(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:o(function(he){return he=this.conditionStack.length-1-Math.abs(he||0),he>=0?this.conditionStack[he]:"INITIAL"},"topState"),pushState:o(function(he){this.begin(he)},"pushState"),stateStackSize:o(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:o(function(he,ge,ne,ve){var U=ve;switch(ne){case 0:return 60;case 1:return 61;case 2:return 62;case 3:return 63;case 4:break;case 5:break;case 6:return this.begin("acc_title"),33;break;case 7:return this.popState(),"acc_title_value";break;case 8:return this.begin("acc_descr"),35;break;case 9:return this.popState(),"acc_descr_value";break;case 10:this.begin("acc_descr_multiline");break;case 11:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:return 8;case 14:break;case 15:return 7;case 16:return 7;case 17:return"EDGE_STATE";case 18:this.begin("callback_name");break;case 19:this.popState();break;case 20:this.popState(),this.begin("callback_args");break;case 21:return 77;case 22:this.popState();break;case 23:return 78;case 24:this.popState();break;case 25:return"STR";case 26:this.begin("string");break;case 27:return 80;case 28:return 55;case 29:return this.begin("namespace"),42;break;case 30:return this.popState(),8;break;case 31:break;case 32:return this.begin("namespace-body"),39;break;case 33:return this.popState(),41;break;case 34:return"EOF_IN_STRUCT";case 35:return 8;case 36:break;case 37:return"EDGE_STATE";case 38:return this.begin("class"),46;break;case 39:return this.popState(),8;break;case 40:break;case 41:return this.popState(),this.popState(),41;break;case 42:return this.begin("class-body"),39;break;case 43:return this.popState(),41;break;case 44:return"EOF_IN_STRUCT";case 45:return"EDGE_STATE";case 46:return"OPEN_IN_STRUCT";case 47:break;case 48:return"MEMBER";case 49:return 81;case 50:return 73;case 51:return 74;case 52:return 76;case 53:return 52;case 54:return 54;case 55:return 47;case 56:return 48;case 57:return 79;case 58:this.popState();break;case 59:return"GENERICTYPE";case 60:this.begin("generic");break;case 61:this.popState();break;case 62:return"BQUOTE_STR";case 63:this.begin("bqstring");break;case 64:return 75;case 65:return 75;case 66:return 75;case 67:return 75;case 68:return 67;case 69:return 67;case 70:return 69;case 71:return 69;case 72:return 68;case 73:return 66;case 74:return 70;case 75:return 71;case 76:return 72;case 77:return 22;case 78:return 44;case 79:return 99;case 80:return 17;case 81:return"PLUS";case 82:return 85;case 83:return 59;case 84:return 88;case 85:return 88;case 86:return 89;case 87:return"EQUALS";case 88:return"EQUALS";case 89:return 58;case 90:return 12;case 91:return 14;case 92:return"PUNCTUATION";case 93:return 84;case 94:return 101;case 95:return 87;case 96:return 87;case 97:return 9}},"anonymous"),rules:[/^(?:.*direction \s +TB[^ \n ]*)/,/^(?:.*direction \s +BT[^ \n ]*)/,/^(?:.*direction \s +RL[^ \n ]*)/,/^(?:.*direction \s +LR[^ \n ]*)/,/^(?:%%(?! \{ )*[^ \n ]*( \r ? \n ?)+)/,/^(?:%%[^ \n ]*( \r ? \n )*)/,/^(?:accTitle \s *: \s *)/,/^(?:(?! \n ||)*[^ \n ]*)/,/^(?:accDescr \s *: \s *)/,/^(?:(?! \n ||)*[^ \n ]*)/,/^(?:accDescr \s * \{ \s *)/,/^(?:[ \} ])/,/^(?:[^ \} ]*)/,/^(?: \s *( \r ? \n )+)/,/^(?: \s +)/,/^(?:classDiagram-v2 \b )/,/^(?:classDiagram \b )/,/^(?: \[ \* \] )/,/^(?:call[ \s ]+)/,/^(?: \( [ \s ]* \) )/,/^(?: \( )/,/^(?:[^(]*)/,/^(?: \) )/,/^(?:[^)]*)/,/^(?:["])/,/^(?:[^"]*)/,/^(?:["])/,/^(?:style \b )/,/^(?:classDef \b )/,/^(?:namespace \b )/,/^(?: \s *( \r ? \n )+)/,/^(?: \s +)/,/^(?:[{])/,/^(?:[}])/,/^(?: $ )/,/^(?: \s *( \r ? \n )+)/,/^(?: \s +)/,/^(?: \[ \* \] )/,/^(?:class \b )/,/^(?: \s *( \r ? \n )+)/,
fill : $ { t . nodeBorder || t . classText } ;
2023-09-19 12:31:17 +02:00
stroke : none ;
2024-11-13 12:07:54 +02:00
font - family : $ { t . fontFamily } ;
2023-09-19 12:31:17 +02:00
font - size : 10 px ;
. title {
font - weight : bolder ;
}
}
. nodeLabel , . edgeLabel {
2024-11-13 12:07:54 +02:00
color : $ { t . classText } ;
2023-09-19 12:31:17 +02:00
}
. edgeLabel . label rect {
2024-11-13 12:07:54 +02:00
fill : $ { t . mainBkg } ;
2023-09-19 12:31:17 +02:00
}
. label text {
2024-11-13 12:07:54 +02:00
fill : $ { t . classText } ;
}
. labelBkg {
background : $ { t . mainBkg } ;
2023-09-19 12:31:17 +02:00
}
. edgeLabel . label span {
2024-11-13 12:07:54 +02:00
background : $ { t . mainBkg } ;
2023-09-19 12:31:17 +02:00
}
. classTitle {
font - weight : bolder ;
}
. node rect ,
. node circle ,
. node ellipse ,
. node polygon ,
. node path {
2024-11-13 12:07:54 +02:00
fill : $ { t . mainBkg } ;
stroke : $ { t . nodeBorder } ;
2023-09-19 12:31:17 +02:00
stroke - width : 1 px ;
}
. divider {
2024-11-13 12:07:54 +02:00
stroke : $ { t . nodeBorder } ;
2023-09-19 12:31:17 +02:00
stroke - width : 1 ;
}
g . clickable {
cursor : pointer ;
}
g . classGroup rect {
2024-11-13 12:07:54 +02:00
fill : $ { t . mainBkg } ;
stroke : $ { t . nodeBorder } ;
2023-09-19 12:31:17 +02:00
}
g . classGroup line {
2024-11-13 12:07:54 +02:00
stroke : $ { t . nodeBorder } ;
2023-09-19 12:31:17 +02:00
stroke - width : 1 ;
}
. classLabel . box {
stroke : none ;
stroke - width : 0 ;
2024-11-13 12:07:54 +02:00
fill : $ { t . mainBkg } ;
2023-09-19 12:31:17 +02:00
opacity : 0.5 ;
}
. classLabel . label {
2024-11-13 12:07:54 +02:00
fill : $ { t . nodeBorder } ;
2023-09-19 12:31:17 +02:00
font - size : 10 px ;
}
. relation {
2024-11-13 12:07:54 +02:00
stroke : $ { t . lineColor } ;
2023-09-19 12:31:17 +02:00
stroke - width : 1 ;
fill : none ;
}
. dashed - line {
stroke - dasharray : 3 ;
}
. dotted - line {
stroke - dasharray : 1 2 ;
}
# compositionStart , . composition {
2024-11-13 12:07:54 +02:00
fill : $ { t . lineColor } ! important ;
stroke : $ { t . lineColor } ! important ;
2023-09-19 12:31:17 +02:00
stroke - width : 1 ;
}
# compositionEnd , . composition {
2024-11-13 12:07:54 +02:00
fill : $ { t . lineColor } ! important ;
stroke : $ { t . lineColor } ! important ;
2023-09-19 12:31:17 +02:00
stroke - width : 1 ;
}
# dependencyStart , . dependency {
2024-11-13 12:07:54 +02:00
fill : $ { t . lineColor } ! important ;
stroke : $ { t . lineColor } ! important ;
2023-09-19 12:31:17 +02:00
stroke - width : 1 ;
}
# dependencyStart , . dependency {
2024-11-13 12:07:54 +02:00
fill : $ { t . lineColor } ! important ;
stroke : $ { t . lineColor } ! important ;
2023-09-19 12:31:17 +02:00
stroke - width : 1 ;
}
# extensionStart , . extension {
2023-11-12 17:02:20 +02:00
fill : transparent ! important ;
2024-11-13 12:07:54 +02:00
stroke : $ { t . lineColor } ! important ;
2023-09-19 12:31:17 +02:00
stroke - width : 1 ;
}
# extensionEnd , . extension {
2023-11-12 17:02:20 +02:00
fill : transparent ! important ;
2024-11-13 12:07:54 +02:00
stroke : $ { t . lineColor } ! important ;
2023-09-19 12:31:17 +02:00
stroke - width : 1 ;
}
# aggregationStart , . aggregation {
2023-11-12 17:02:20 +02:00
fill : transparent ! important ;
2024-11-13 12:07:54 +02:00
stroke : $ { t . lineColor } ! important ;
2023-09-19 12:31:17 +02:00
stroke - width : 1 ;
}
# aggregationEnd , . aggregation {
2023-11-12 17:02:20 +02:00
fill : transparent ! important ;
2024-11-13 12:07:54 +02:00
stroke : $ { t . lineColor } ! important ;
2023-09-19 12:31:17 +02:00
stroke - width : 1 ;
}
# lollipopStart , . lollipop {
2024-11-13 12:07:54 +02:00
fill : $ { t . mainBkg } ! important ;
stroke : $ { t . lineColor } ! important ;
2023-09-19 12:31:17 +02:00
stroke - width : 1 ;
}
# lollipopEnd , . lollipop {
2024-11-13 12:07:54 +02:00
fill : $ { t . mainBkg } ! important ;
stroke : $ { t . lineColor } ! important ;
2023-09-19 12:31:17 +02:00
stroke - width : 1 ;
}
. edgeTerminals {
font - size : 11 px ;
2024-05-27 09:53:57 +02:00
line - height : initial ;
2023-09-19 12:31:17 +02:00
}
. classTitleText {
text - anchor : middle ;
font - size : 18 px ;
2024-11-13 12:07:54 +02:00
fill : $ { t . textColor } ;
}
` ,"getStyles"),FE=JHe});var eWe,tWe,rWe,zE,zO=M(()=>{"use strict";Vt();ut();ow();Jv();TT();hr();eWe=o((t,e="TB")=>{if(!t.doc)return e;let r=e;for(let n of t.doc)n.stmt==="dir"&&(r=n.value);return r},"getDir"),tWe=o(function(t,e){return e.db.getClasses()},"getClasses"),rWe=o(async function(t,e,r,n){Y.info("REF0:"),Y.info("Drawing class diagram (v3)",e);let{securityLevel:i,state:a,layout:s}=pe(),l=n.db.getData(),u=Am(e,i);l.type=n.type,l.layoutAlgorithm=wT(s),l.nodeSpacing=a?.nodeSpacing||50,l.rankSpacing=a?.rankSpacing||50,l.markers=["aggregation","extension","composition","dependency","lollipop"],l.diagramId=e,await Qm(l,u);let h=8;Ut.insertTitle(u,"classDiagramTitleText",a?.titleTopMargin??25,n.db.getDiagramTitle()),Zm(u,h,"classDiagram",a?.useMaxWidth??!0)},"draw"),zE={getClasses:tWe,draw:rWe,getDir:eWe}});var Ede={};vr(Ede,{diagram:()=>nWe});var nWe,Sde=M(()=>{"use strict";MO();BO();FO();zO();nWe={parser:OE,db:e1,renderer:zE,styles:FE,init:o(t=>{t.class||(t.class={}),t.class.arrowMarkerAbsolute=t.arrowMarkerAbsolute,e1.clear()},"init")}});var _de={};vr(_de,{diagram:()=>oWe});var oWe,Lde=M(()=>{"use strict";MO();BO();FO();zO();oWe={parser:OE,db:e1,renderer:zE,styles:FE,init:o(t=>{t.class||(t.class={}),t.class.arrowMarkerAbsolute=t.arrowMarkerAbsolute,e1.clear()},"init")}});var GO,GE, $ O=M(()=>{"use strict";GO=function(){var t=o(function(F,B,G,z){for(G=G||{},z=F.length;z--;G[F[z]]=B);return G},"o"),e=[1,2],r=[1,3],n=[1,4],i=[2,4],a=[1,9],s=[1,11],l=[1,16],u=[1,17],h=[1,18],f=[1,19],d=[1,32],p=[1,20],m=[1,21],g=[1,22],y=[1,23],v=[1,24],x=[1,26],b=[1,27],w=[1,28],_=[1,29],T=[1,30],E=[1,31],L=[1,34],S=[1,35],A=[1,36],I=[1,37],D=[1,33],k=[1,4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,42,45,48,49,50,51,54],R=[1,4,5,14,15,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,42,45,48,49,50,51,54],C=[4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,42,45,48,49,50,51,54],O={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,SD:6,document:7,line:8,statement:9,classDefStatement:10,styleStatement:11,cssClassStatement:12,idStatement:13,DESCR:14,"-->":15,HIDE_EMPTY:16,scale:17,WIDTH:18,COMPOSIT_STATE:19,STRUCT_START:20,STRUCT_STOP:21,STATE_DESCR:22,AS:23,ID:24,FORK:25,JOIN:26,CHOICE:27,CONCURRENT:28,note:29,notePosition:30,NOTE_TEXT:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,classDef:38,CLASSDEF_ID:39,CLASSDEF_STYLEOPTS:40,DEFAULT:41,style:42,STYLE_IDS:43,STYLEDEF_STYLEOPTS:44,class:45,CLASSENTITY_IDS:46,STYLECLASS:47,direction_tb:48,direction_bt:49,direction_rl:50,direction_lr:51,eol:52,";":53,EDGE_STATE:54,STYLE_SEPARATOR:55,left_of:56,right_of:57, $ accept:0, $ end:1},terminals_:{2:"error",4:"SPACE",5:"NL",6:"SD",14:"DESCR",15:"-->",16:"HIDE_EMPTY",17:"scale",18:"WIDTH",19:"COMPOSIT_STATE",20:"STRUCT_START",21:"STRUCT_STOP",22:"STATE_DESCR",23:"AS",24:"ID",25:"FORK",26:"JOIN",27:"CHOICE",28:"CONCURRENT",29:"note",31:"NOTE_TEXT",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",38:"classDef",39:"CLASSDEF_ID",40:"CLASSDEF_STYLEOPTS",41:"DEFAULT",42:"style",43:"STYLE_IDS",44:"STYLEDEF_STYLEOPTS",45:"class",46:"CLASSENTITY_IDS",47:"STYLECLASS",48:"direction_tb",49:"direction_bt",50:"direction_rl",51:"direction_lr",53:";",54:"EDGE_STATE",55:"STYLE_SEPARATOR",56:"left_of",57:"right_of"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,3],[9,4],[9,1],[9,2],[9,1],[9,4],[9,3],[9,6],[9,1],[9,1],[9,1],[9,1],[9,4],[9,4],[9,1],[9,2],[9,2],[9,1],[10,3],[10,3],[11,3],[12,3],[32,1],[32,1],[32,1],[32,1],[52,1],[52,1],[13,1],[13,1],[13,3],[13,3],[30,1],[30,1]],performAction:o(function(B,G,z,W,Z,j,oe){var K=j.length-1;switch(Z){case 3:return W.setRootDoc(j[K]),j[K];break;case 4:this. $ =[];break;case 5:j[K]!="nl"&&(j[K-1].push(j[K]),this. $ =j[K-1]);break;case 6:case 7:this. $ =j[K];break;case 8:this. $ ="nl";break;case 12:this. $ =j[K];break;case 13:let q=j[K-1];q.description=W.trimColon(j[K]),this. $ =q;break;case 14:this. $ ={stmt:"relation",state1:j[K-2],state2:j[K]};break;case
` +ue.showPosition()+ `
Expecting ` +ve.join(", ")+", got '"+(this.terminals_[Ce]||Ce)+"'":U="Parse error on line "+(ee+1)+": Unexpected "+(Ce==Q?"end of input":"'"+(this.terminals_[Ce]||Ce)+"'"),this.parseError(U,{text:ue.match,token:this.terminals_[Ce]||Ce,line:ue.yylineno,loc:Ne,expected:ve})}if( $ e[0]instanceof Array&& $ e.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Ie+", token: "+Ce);switch( $ e[0]){case 1:z.push(Ce),Z.push(ue.yytext),j.push(ue.yylloc),z.push( $ e[1]),Ce=null,Pe?(Ce=Pe,Pe=null):(J=ue.yyleng,K=ue.yytext,ee=ue.yylineno,Ne=ue.yylloc,H>0&&H--);break;case 2:if(ge=this.productions_[ $ e[1]][1],fe. $ =Z[Z.length-ge],fe._ $ ={first_line:j[j.length-(ge||1)].first_line,last_line:j[j.length-1].last_line,first_column:j[j.length-(ge||1)].first_column,last_column:j[j.length-1].last_column},se&&(fe._ $ .range=[j[j.length-(ge||1)].range[0],j[j.length-1].range[1]]),X=this.performAction.apply(fe,[K,J,ee,ce.yy, $ e[1],Z,j].concat(ae)),typeof X<"u")return X;ge&&(z=z.slice(0,-1*ge*2),Z=Z.slice(0,-1*ge),j=j.slice(0,-1*ge)),z.push(this.productions_[ $ e[1]][0]),Z.push(fe. $ ),j.push(fe._ $ ),ne=oe[z[z.length-2]][z[z.length-1]],z.push(ne);break;case 3:return!0}}return!0},"parse")},N=function(){var F={EOF:1,parseError:o(function(G,z){if(this.yy.parser)this.yy.parser.parseError(G,z);else throw new Error(G)},"parseError"),setInput:o(function(B,G){return this.yy=G||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},"setInput"),input:o(function(){var B=this._input[0];this.yytext+=B,this.yyleng++,this.offset++,this.match+=B,this.matched+=B;var G=B.match(/(?: \r \n ?| \n ).*/g);return G?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),B},"input"),unput:o(function(B){var G=B.length,z=B.split(/(?: \r \n ?| \n )/g);this._input=B+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-G),this.offset-=G;var W=this.match.split(/(?: \r \n ?| \n )/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),z.length-1&&(this.yylineno-=z.length-1);var Z=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:z?(z.length===W.length?this.yylloc.first_column:0)+W[W.length-z.length].length-z[0].length:this.yylloc.first_column-G},this.options.ranges&&(this.yylloc.range=[Z[0],Z[0]+this.yyleng-G]),this.yyleng=this.yytext.length,this},"unput"),more:o(function(){return this._more=!0,this},"more"),reject:o(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+ ` . You can only invoke reject ( ) in the lexer when the lexer is of the backtracking persuasion ( options . backtrack _lexer = true ) .
` +this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:o(function(B){this.unput(this.match.slice(B))},"less"),pastInput:o(function(){var B=this.matched.substr(0,this.matched.length-this.match.length);return(B.length>20?"...":"")+B.substr(-20).replace(/ \n /g,"")},"pastInput"),upcomingInput:o(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,"")},"upcomingInput"),showPosition:o(function(){var B=this.pastInput(),G=new Array(B.length+1).join("-");return B+this.upcomingInput()+ `
` +G+"^"},"showPosition"),test_match:o(function(B,G){var z,W,Z;if(this.options.backtrack_lexer&&(Z={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&&(Z.yylloc.range=this.yylloc.range.slice(0))),W=B[0].match(/(?: \r \n ?| \n ).*/g),W&&(this.yylineno+=W.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:W?W[W.length-1].length-W[W.length-1].match(/ \r ? \n ?/)[0].length:this.yylloc.last_column+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],z=this.performAction.call(this,this.yy,this,G,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),z)return z;if(this._backtrack){for(var j in Z)this[j]=Z[j];return!1}return!1},"test_match"),next:o(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var B,G,z,W;this._more||(this.yytext="",this.match="");for(var Z=this._currentRules(),j=0;j<Z.length;j++)if(z=this._input.match(this.rules[Z[j]]),z&&(!G||z[0].length>G[0].length)){if(G=z,W=j,this.options.backtrack_lexer){if(B=this.test_match(z,Z[j]),B!==!1)return B;if(this._backtrack){G=!1;continue}else return!1}else if(!this.options.flex)break}return G?(B=this.test_match(G,Z[W]),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})},"next"),lex:o(function(){var G=this.next();return G||this.lex()},"lex"),begin:o(function(G){this.conditionStack.push(G)},"begin"),popState:o(function(){var G=this.conditionStack.length-1;return G>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:o(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:o(function(G){return G=this.conditionStack.length-1-Math.abs(G||0),G>=0?this.conditionStack[G]:"INITIAL"},"topState"),pushState:o(function(G){this.begin(G)},"pushState"),stateStackSize:o(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:o(function(G,z,W,Z){var j=Z;switch(W){case 0:return 41;case 1:return 48;case 2:return 49;case 3:return 50;case 4:return 51;case 5:break;case 6:break;case 7:return 5;case 8:break;case 9:break;case 10:break;case 11:break;case 12:return this.pushState("SCALE"),17;break;case 13:return 18;case 14:this.popState();break;case 15:return this.begin("acc_title"),33;break;case 16:return this.popState(),"acc_title_value";break;case 17:return this.begin("acc_descr"),35;break;case 18:return this.popState(),"acc_descr_value";break;case 19:this.begin("acc_descr_multiline");break;case 20:this.popState();break;case 21:return"acc_descr_multiline_value";case 22:return this.pushState("CLASSDEF"),38;break;case 23:return this.popState(),this.pushState("CLASSDEFID"),"DEFAULT_CLASSDEF_ID";break;case 24:return this.popState(),this.pushState("CLASSDEFID"),39;break;case 25:return this.popState(),40;break;case 26:return this.pushState("CLASS"),45;break;case 27:return this.popState(),this.pushState("CLASS_STYLE"),46;break;case 28:return this.popState(),47;break;case 29:return this.pushState("STYLE"),42;break;case 30:return this.popState(),this.pushState("STYLEDEF_STYLES"),43;break;case 31:return this.popState(),44;break;case 32:return this.pushState("SCALE"),17;break;case 33:return 18;case 34:this.popState();break;case 35:this.pushState("STATE");break;case 36:return this.popState(),z.yytext=z.yytext.slice(0,-8).trim(),25;break;case 37:return this.popState(),z.yytext=z.yytext.slice(0,-8).trim(),26;break;case 38:return this.popState(),z.yytext=z.yytext.slice(0,-10).trim(),27;break;case 39:return this.popState(),z.yytext=z.yytext.slice(0,-8).trim(),25;break;case 40:return this.popState(),z.yytext=z.yytext.slice(0,-8).trim(),26;break;case 41:return this.popState(),z.yytext=z.yytext.slice(0,-10).trim(),27;break;case 42:return 48;case 43:return 49;case 44:return 50;case 45:return 51;case 46:this.pushState("STATE_STRING");break;case 47:return this.pushState("STATE_ID"),"AS";break;case 48:return this.popState(),"ID";break;case 49:this.popState();break;case 50:return"STATE_DESCR";case 51:return 19;case 52:this.popState();break;case 53:return this.popState(),this.pushState("struct"),20;break;case 54:break;case 55:return this.popState(),21;break;case 56:break;case 57:return this.begin("NOTE"),29;break;case 58:return this.popState(),this.pushState("NOTE_ID"),56;break;case 59:return this.popState(),this.pushState("NOTE_ID"),57;break;case 60:this.popState(),this.pushState("FLOATING_NOTE");break;case 61:return this.popState(),this.pushState("FLOATING_NOTE_ID"),"AS";break;case 62:break;case 63:return"NOTE_TEXT";case 64:return this.popState(),"ID";break;case 65:return this.popState(),this.pushState("NOTE_TEXT"),24;break;case 66:return this.popState(),z.yytext=z.yytext.substr(2).trim(),31;break;case 67:return this.popState(),z.yytext=z.yytext.slice(0,-8).trim(),31;break;case 68:return 6;case 69:return 6;case 70:return 16;case 71:return 54;case 72:return 24;case 73:return z.yytext=z.yytext.trim(),14;break;case 74:return 15;case 75:return 28;case 76:return 55;case 77:return 5;case 78:return"INVALID"}},"anonymous"),rules:[/^(?:default \b )/i,/^(?:.*direction \s +TB[^ \n ]*)/i,/^(?:.*direction \s +BT[^ \n ]*)/i,/^(?:.*direction \s +RL[^ \
2022-11-24 01:08:27 +02:00
defs # statediagram - barbEnd {
2024-11-13 12:07:54 +02:00
fill : $ { t . transitionColor } ;
stroke : $ { t . transitionColor } ;
2022-11-24 01:08:27 +02:00
}
g . stateGroup text {
2024-11-13 12:07:54 +02:00
fill : $ { t . nodeBorder } ;
2022-11-24 01:08:27 +02:00
stroke : none ;
font - size : 10 px ;
}
g . stateGroup text {
2024-11-13 12:07:54 +02:00
fill : $ { t . textColor } ;
2022-11-24 01:08:27 +02:00
stroke : none ;
font - size : 10 px ;
}
g . stateGroup . state - title {
font - weight : bolder ;
2024-11-13 12:07:54 +02:00
fill : $ { t . stateLabelColor } ;
2022-11-24 01:08:27 +02:00
}
g . stateGroup rect {
2024-11-13 12:07:54 +02:00
fill : $ { t . mainBkg } ;
stroke : $ { t . nodeBorder } ;
2022-11-24 01:08:27 +02:00
}
g . stateGroup line {
2024-11-13 12:07:54 +02:00
stroke : $ { t . lineColor } ;
2022-11-24 01:08:27 +02:00
stroke - width : 1 ;
}
. transition {
2024-11-13 12:07:54 +02:00
stroke : $ { t . transitionColor } ;
2022-11-24 01:08:27 +02:00
stroke - width : 1 ;
fill : none ;
}
. stateGroup . composit {
2024-11-13 12:07:54 +02:00
fill : $ { t . background } ;
2022-11-24 01:08:27 +02:00
border - bottom : 1 px
}
. stateGroup . alt - composit {
fill : # e0e0e0 ;
border - bottom : 1 px
}
. state - note {
2024-11-13 12:07:54 +02:00
stroke : $ { t . noteBorderColor } ;
fill : $ { t . noteBkgColor } ;
2022-11-24 01:08:27 +02:00
text {
2024-11-13 12:07:54 +02:00
fill : $ { t . noteTextColor } ;
2022-11-24 01:08:27 +02:00
stroke : none ;
font - size : 10 px ;
}
}
. stateLabel . box {
stroke : none ;
stroke - width : 0 ;
2024-11-13 12:07:54 +02:00
fill : $ { t . mainBkg } ;
2022-11-24 01:08:27 +02:00
opacity : 0.5 ;
}
. edgeLabel . label rect {
2024-11-13 12:07:54 +02:00
fill : $ { t . labelBackgroundColor } ;
2022-11-24 01:08:27 +02:00
opacity : 0.5 ;
}
2024-11-13 12:07:54 +02:00
. edgeLabel {
background - color : $ { t . edgeLabelBackground } ;
p {
background - color : $ { t . edgeLabelBackground } ;
}
rect {
opacity : 0.5 ;
background - color : $ { t . edgeLabelBackground } ;
fill : $ { t . edgeLabelBackground } ;
}
text - align : center ;
}
2022-11-24 01:08:27 +02:00
. edgeLabel . label text {
2024-11-13 12:07:54 +02:00
fill : $ { t . transitionLabelColor || t . tertiaryTextColor } ;
2022-11-24 01:08:27 +02:00
}
. label div . edgeLabel {
2024-11-13 12:07:54 +02:00
color : $ { t . transitionLabelColor || t . tertiaryTextColor } ;
2022-11-24 01:08:27 +02:00
}
. stateLabel text {
2024-11-13 12:07:54 +02:00
fill : $ { t . stateLabelColor } ;
2022-11-24 01:08:27 +02:00
font - size : 10 px ;
font - weight : bold ;
}
. node circle . state - start {
2024-11-13 12:07:54 +02:00
fill : $ { t . specialStateColor } ;
stroke : $ { t . specialStateColor } ;
2022-11-24 01:08:27 +02:00
}
. node . fork - join {
2024-11-13 12:07:54 +02:00
fill : $ { t . specialStateColor } ;
stroke : $ { t . specialStateColor } ;
2022-11-24 01:08:27 +02:00
}
. node circle . state - end {
2024-11-13 12:07:54 +02:00
fill : $ { t . innerEndBackground } ;
stroke : $ { t . background } ;
2022-11-24 01:08:27 +02:00
stroke - width : 1.5
}
. end - state - inner {
2024-11-13 12:07:54 +02:00
fill : $ { t . compositeBackground || t . background } ;
// stroke: ${t.background};
2022-11-24 01:08:27 +02:00
stroke - width : 1.5
}
. node rect {
2024-11-13 12:07:54 +02:00
fill : $ { t . stateBkg || t . mainBkg } ;
stroke : $ { t . stateBorder || t . nodeBorder } ;
2022-11-24 01:08:27 +02:00
stroke - width : 1 px ;
}
. node polygon {
2024-11-13 12:07:54 +02:00
fill : $ { t . mainBkg } ;
stroke : $ { t . stateBorder || t . nodeBorder } ; ;
2022-11-24 01:08:27 +02:00
stroke - width : 1 px ;
}
# statediagram - barbEnd {
2024-11-13 12:07:54 +02:00
fill : $ { t . lineColor } ;
2022-11-24 01:08:27 +02:00
}
. statediagram - cluster rect {
2024-11-13 12:07:54 +02:00
fill : $ { t . compositeTitleBackground } ;
stroke : $ { t . stateBorder || t . nodeBorder } ;
2022-11-24 01:08:27 +02:00
stroke - width : 1 px ;
}
. cluster - label , . nodeLabel {
2024-11-13 12:07:54 +02:00
color : $ { t . stateLabelColor } ;
// line-height: 1;
2022-11-24 01:08:27 +02:00
}
. statediagram - cluster rect . outer {
rx : 5 px ;
ry : 5 px ;
}
. statediagram - state . divider {
2024-11-13 12:07:54 +02:00
stroke : $ { t . stateBorder || t . nodeBorder } ;
2022-11-24 01:08:27 +02:00
}
. statediagram - state . title - state {
rx : 5 px ;
ry : 5 px ;
}
. statediagram - cluster . statediagram - cluster . inner {
2024-11-13 12:07:54 +02:00
fill : $ { t . compositeBackground || t . background } ;
2022-11-24 01:08:27 +02:00
}
. statediagram - cluster . statediagram - cluster - alt . inner {
2024-11-13 12:07:54 +02:00
fill : $ { t . altBackground ? t . altBackground : "#efefef" } ;
2022-11-24 01:08:27 +02:00
}
. statediagram - cluster . inner {
rx : 0 ;
ry : 0 ;
}
. statediagram - state rect . basic {
rx : 5 px ;
ry : 5 px ;
}
. statediagram - state rect . divider {
stroke - dasharray : 10 , 10 ;
2024-11-13 12:07:54 +02:00
fill : $ { t . altBackground ? t . altBackground : "#efefef" } ;
2022-11-24 01:08:27 +02:00
}
. note - edge {
stroke - dasharray : 5 ;
}
. statediagram - note rect {
2024-11-13 12:07:54 +02:00
fill : $ { t . noteBkgColor } ;
stroke : $ { t . noteBorderColor } ;
2022-11-24 01:08:27 +02:00
stroke - width : 1 px ;
rx : 0 ;
ry : 0 ;
}
. statediagram - note rect {
2024-11-13 12:07:54 +02:00
fill : $ { t . noteBkgColor } ;
stroke : $ { t . noteBorderColor } ;
2022-11-24 01:08:27 +02:00
stroke - width : 1 px ;
rx : 0 ;
ry : 0 ;
}
. statediagram - note text {
2024-11-13 12:07:54 +02:00
fill : $ { t . noteTextColor } ;
2022-11-24 01:08:27 +02:00
}
. statediagram - note . nodeLabel {
2024-11-13 12:07:54 +02:00
color : $ { t . noteTextColor } ;
2022-11-24 01:08:27 +02:00
}
. statediagram . edgeLabel {
2024-11-13 12:07:54 +02:00
color : red ; // ${t.noteTextColor};
2022-11-24 01:08:27 +02:00
}
# dependencyStart , # dependencyEnd {
2024-11-13 12:07:54 +02:00
fill : $ { t . lineColor } ;
stroke : $ { t . lineColor } ;
2022-11-24 01:08:27 +02:00
stroke - width : 1 ;
}
2023-09-19 12:31:17 +02:00
. statediagramTitleText {
text - anchor : middle ;
font - size : 18 px ;
2024-11-13 12:07:54 +02:00
fill : $ { t . textColor } ;
}
` ,"getStyles"),t6=VWe});var uP,UWe,HWe,u0e,WWe,h0e,f0e=M(()=>{"use strict";uP={},UWe=o((t,e)=>{uP[t]=e},"set"),HWe=o(t=>uP[t],"get"),u0e=o(()=>Object.keys(uP),"keys"),WWe=o(()=>u0e().length,"size"),h0e={get:HWe,set:UWe,keys:u0e,size:WWe}});var YWe,qWe,XWe,jWe,p0e,KWe,QWe,ZWe,JWe,hP,d0e,m0e,g0e=M(()=>{"use strict";pr();f0e();e6();hr();fr();Vt();ut();YWe=o(t=>t.append("circle").attr("class","start-state").attr("r",pe().state.sizeUnit).attr("cx",pe().state.padding+pe().state.sizeUnit).attr("cy",pe().state.padding+pe().state.sizeUnit),"drawStartState"),qWe=o(t=>t.append("line").style("stroke","grey").style("stroke-dasharray","3").attr("x1",pe().state.textHeight).attr("class","divider").attr("x2",pe().state.textHeight*2).attr("y1",0).attr("y2",0),"drawDivider"),XWe=o((t,e)=>{let r=t.append("text").attr("x",2*pe().state.padding).attr("y",pe().state.textHeight+2*pe().state.padding).attr("font-size",pe().state.fontSize).attr("class","state-title").text(e.id),n=r.node().getBBox();return t.insert("rect",":first-child").attr("x",pe().state.padding).attr("y",pe().state.padding).attr("width",n.width+2*pe().state.padding).attr("height",n.height+2*pe().state.padding).attr("rx",pe().state.radius),r},"drawSimpleState"),jWe=o((t,e)=>{let r=o(function(p,m,g){let y=p.append("tspan").attr("x",2*pe().state.padding).text(m);g||y.attr("dy",pe().state.textHeight)},"addTspan"),i=t.append("text").attr("x",2*pe().state.padding).attr("y",pe().state.textHeight+1.3*pe().state.padding).attr("font-size",pe().state.fontSize).attr("class","state-title").text(e.descriptions[0]).node().getBBox(),a=i.height,s=t.append("text").attr("x",pe().state.padding).attr("y",a+pe().state.padding*.4+pe().state.dividerMargin+pe().state.textHeight).attr("class","state-description"),l=!0,u=!0;e.descriptions.forEach(function(p){l||(r(s,p,u),u=!1),l=!1});let h=t.append("line").attr("x1",pe().state.padding).attr("y1",pe().state.padding+a+pe().state.dividerMargin/2).attr("y2",pe().state.padding+a+pe().state.dividerMargin/2).attr("class","descr-divider"),f=s.node().getBBox(),d=Math.max(f.width,i.width);return h.attr("x2",d+3*pe().state.padding),t.insert("rect",":first-child").attr("x",pe().state.padding).attr("y",pe().state.padding).attr("width",d+2*pe().state.padding).attr("height",f.height+a+2*pe().state.padding).attr("rx",pe().state.radius),t},"drawDescrState"),p0e=o((t,e,r)=>{let n=pe().state.padding,i=2*pe().state.padding,a=t.node().getBBox(),s=a.width,l=a.x,u=t.append("text").attr("x",0).attr("y",pe().state.titleShift).attr("font-size",pe().state.fontSize).attr("class","state-title").text(e.id),f=u.node().getBBox().width+i,d=Math.max(f,s);d===s&&(d=d+i);let p,m=t.node().getBBox();e.doc,p=l-n,f>s&&(p=(s-d)/2+n),Math.abs(l-m.x)<n&&f>s&&(p=l-(f-s)/2);let g=1-pe().state.textHeight;return t.insert("rect",":first-child").attr("x",p).attr("y",g).attr("class",r?"alt-composit":"composit").attr("width",d).attr("height",m.height+pe().state.textHeight+pe().state.titleShift+1).attr("rx","0"),u.attr("x",p+n),f<=s&&u.attr("x",l+(d-i)/2-f/2+n),t.insert("rect",":first-child").attr("x",p).attr("y",pe().state.titleShift-pe().state.textHeight-pe().state.padding).attr("width",d).attr("height",pe().state.textHeight*3).attr("rx",pe().state.radius),t.insert("rect",":first-child").attr("x",p).attr("y",pe().state.titleShift-pe().state.textHeight-pe().state.padding).attr("width",d).attr("height",m.height+3+2*pe().state.textHeight).attr("rx",pe().state.radius),t},"addTitleAndBox"),KWe=o(t=>(t.append("circle").attr("class","end-state-outer").attr("r",pe().state.sizeUnit+pe().state.miniPadding).attr("cx",pe().state.padding+pe().state.sizeUnit+pe().state.miniPadding).attr("cy",pe().state.padding+pe().state.sizeUnit+pe().state.miniPadding),t.append("circle").attr("class","end-state-inner").attr("r",pe().state.sizeUnit).attr("cx",pe().state.padding+pe().state.sizeUnit+2).attr("cy",pe().state.padding+pe().state.sizeUnit+2)),"drawEndState"),QWe=o((t,e)=>{let r=pe().state.forkWidth,n=pe().state.forkHeight;if(e.parentId){let i=r;r=n,n=i}return t.append("rect").style("stroke","black").style("fill","black").at
` +I.showPosition()+ `
Expecting ` +ee.join(", ")+", got '"+(this.terminals_[P]||P)+"'":J="Parse error on line "+(_+1)+": Unexpected "+(P==S?"end of input":"'"+(this.terminals_[P]||P)+"'"),this.parseError(J,{text:I.match,token:this.terminals_[P]||P,line:I.yylineno,loc:R,expected:ee})}if(G[0]instanceof Array&&G.length>1)throw new Error("Parse Error: multiple actions possible at state: "+B+", token: "+P);switch(G[0]){case 1:g.push(P),v.push(I.yytext),x.push(I.yylloc),g.push(G[1]),P=null,F?(P=F,F=null):(T=I.yyleng,w=I.yytext,_=I.yylineno,R=I.yylloc,E>0&&E--);break;case 2:if(oe=this.productions_[G[1]][1],Z. $ =v[v.length-oe],Z._ $ ={first_line:x[x.length-(oe||1)].first_line,last_line:x[x.length-1].last_line,first_column:x[x.length-(oe||1)].first_column,last_column:x[x.length-1].last_column},C&&(Z._ $ .range=[x[x.length-(oe||1)].range[0],x[x.length-1].range[1]]),W=this.performAction.apply(Z,[w,T,_,D.yy,G[1],v,x].concat(A)),typeof W<"u")return W;oe&&(g=g.slice(0,-1*oe*2),v=v.slice(0,-1*oe),x=x.slice(0,-1*oe)),g.push(this.productions_[G[1]][0]),v.push(Z. $ ),x.push(Z._ $ ),K=b[g[g.length-2]][g[g.length-1]],g.push(K);break;case 3:return!0}}return!0},"parse")},h=function(){var d={EOF:1,parseError:o(function(m,g){if(this.yy.parser)this.yy.parser.parseError(m,g);else throw new Error(m)},"parseError"),setInput:o(function(p,m){return this.yy=m||this.yy||{},this._input=p,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:o(function(){var p=this._input[0];this.yytext+=p,this.yyleng++,this.offset++,this.match+=p,this.matched+=p;var m=p.match(/(?: \r \n ?| \n ).*/g);return m?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),p},"input"),unput:o(function(p){var m=p.length,g=p.split(/(?: \r \n ?| \n )/g);this._input=p+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-m),this.offset-=m;var y=this.match.split(/(?: \r \n ?| \n )/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),g.length-1&&(this.yylineno-=g.length-1);var v=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:g?(g.length===y.length?this.yylloc.first_column:0)+y[y.length-g.length].length-g[0].length:this.yylloc.first_column-m},this.options.ranges&&(this.yylloc.range=[v[0],v[0]+this.yyleng-m]),this.yyleng=this.yytext.length,this},"unput"),more:o(function(){return this._more=!0,this},"more"),reject:o(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+ ` . You can only invoke reject ( ) in the lexer when the lexer is of the backtracking persuasion ( options . backtrack _lexer = true ) .
` +this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:o(function(p){this.unput(this.match.slice(p))},"less"),pastInput:o(function(){var p=this.matched.substr(0,this.matched.length-this.match.length);return(p.length>20?"...":"")+p.substr(-20).replace(/ \n /g,"")},"pastInput"),upcomingInput:o(function(){var p=this.match;return p.length<20&&(p+=this._input.substr(0,20-p.length)),(p.substr(0,20)+(p.length>20?"...":"")).replace(/ \n /g,"")},"upcomingInput"),showPosition:o(function(){var p=this.pastInput(),m=new Array(p.length+1).join("-");return p+this.upcomingInput()+ `
` +m+"^"},"showPosition"),test_match:o(function(p,m){var g,y,v;if(this.options.backtrack_lexer&&(v={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(v.yylloc.range=this.yylloc.range.slice(0))),y=p[0].match(/(?: \r \n ?| \n ).*/g),y&&(this.yylineno+=y.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:y?y[y.length-1].length-y[y.length-1].match(/ \r ? \n ?/)[0].length:this.yylloc.last_column+p[0].length},this.yytext+=p[0],this.match+=p[0],this.matches=p,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(p[0].length),this.matched+=p[0],g=this.performAction.call(this,this.yy,this,m,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),g)return g;if(this._backtrack){for(var x in v)this[x]=v[x];return!1}return!1},"test_match"),next:o(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var p,m,g,y;this._more||(this.yytext="",this.match="");for(var v=this._currentRules(),x=0;x<v.length;x++)if(g=this._input.match(this.rules[v[x]]),g&&(!m||g[0].length>m[0].length)){if(m=g,y=x,this.options.backtrack_lexer){if(p=this.test_match(g,v[x]),p!==!1)return p;if(this._backtrack){m=!1;continue}else return!1}else if(!this.options.flex)break}return m?(p=this.test_match(m,v[y]),p!==!1?p:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+ ` . Unrecognized text .
` +this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:o(function(){var m=this.next();return m||this.lex()},"lex"),begin:o(function(m){this.conditionStack.push(m)},"begin"),popState:o(function(){var m=this.conditionStack.length-1;return m>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:o(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:o(function(m){return m=this.conditionStack.length-1-Math.abs(m||0),m>=0?this.conditionStack[m]:"INITIAL"},"topState"),pushState:o(function(m){this.begin(m)},"pushState"),stateStackSize:o(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:o(function(m,g,y,v){var x=v;switch(y){case 0:break;case 1:break;case 2:return 10;case 3:break;case 4:break;case 5:return 4;case 6:return 11;case 7:return this.begin("acc_title"),12;break;case 8:return this.popState(),"acc_title_value";break;case 9:return this.begin("acc_descr"),14;break;case 10:return this.popState(),"acc_descr_value";break;case 11:this.begin("acc_descr_multiline");break;case 12:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:return 17;case 15:return 18;case 16:return 19;case 17:return":";case 18:return 6;case 19:return"INVALID"}},"anonymous"),rules:[/^(?:%(?! \{ )[^ \n ]*)/i,/^(?:[^ \} ]%%[^ \n ]*)/i,/^(?:[ \n ]+)/i,/^(?: \s +)/i,/^(?:#[^ \n ]*)/i,/^(?:journey \b )/i,/^(?:title \s [^# \n ;]+)/i,/^(?:accTitle \s *: \s *)/i,/^(?:(?! \n ||)*[^ \n ]*)/i,/^(?:accDescr \s *: \s *)/i,/^(?:(?! \n ||)*[^ \n ]*)/i,/^(?:accDescr \s * \{ \s *)/i,/^(?:[ \} ])/i,/^(?:[^ \} ]*)/i,/^(?:section \s [^#: \n ;]+)/i,/^(?:[^#: \n ;]+)/i,/^(?::[^# \n ;]+)/i,/^(?::)/i,/^(?: $ )/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,9,11,14,15,16,17,18,19],inclusive:!0}}};return d}();u.lexer=h;function f(){this.yy={}}return o(f,"Parser"),f.prototype=u,u.Parser=f,new f}();dP.parser=dP;_0e=dP});var a1,pP,Vx,Ux,fYe,dYe,pYe,mYe,gYe,yYe,vYe,D0e,xYe,mP,N0e=M(()=>{"use strict";Vt();Ai();a1="",pP=[],Vx=[],Ux=[],fYe=o(function(){pP.length=0,Vx.length=0,a1="",Ux.length=0,Lr()},"clear"),dYe=o(function(t){a1=t,pP.push(t)},"addSection"),pYe=o(function(){return pP},"getSections"),mYe=o(function(){let t=D0e(),e=100,r=0;for(;!t&&r<e;)t=D0e(),r++;return Vx.push(...Ux),Vx},"getTasks"),gYe=o(function(){let t=[];return Vx.forEach(r=>{r.people&&t.push(...r.people)}),[...new Set(t)].sort()},"updateActors"),yYe=o(function(t,e){let r=e.substr(1).split(":"),n=0,i=[];r.length===1?(n=Number(r[0]),i=[]):(n=Number(r[0]),i=r[1].split(","));let a=i.map(l=>l.trim()),s={section:a1,type:a1,people:a,task:t,score:n};Ux.push(s)},"addTask"),vYe=o(function(t){let e={section:a1,type:a1,description:t,task:t,classes:[]};Vx.push(e)},"addTaskOrg"),D0e=o(function(){let t=o(function(r){return Ux[r].processed},"compileTask"),e=!0;for(let[r,n]of Ux.entries())t(r),e=e&&n.processed;return e},"compileTasks"),xYe=o(function(){return gYe()},"getActors"),mP={getConfig:o(()=>pe().journey,"getConfig"),clear:fYe,setDiagramTitle:cn,getDiagramTitle:Jr,setAccTitle:Mr,getAccTitle:Br,setAccDescription:Fr,getAccDescription:zr,addSection:dYe,getSections:pYe,getTasks:mYe,addTask:yYe,addTaskOrg:vYe,getActors:xYe}});var bYe,R0e,M0e=M(()=>{"use strict";bYe=o(t=> ` . label {
2022-11-24 01:08:27 +02:00
font - family : 'trebuchet ms' , verdana , arial , sans - serif ;
font - family : var ( -- mermaid - font - family ) ;
2024-11-13 12:07:54 +02:00
color : $ { t . textColor } ;
2022-11-24 01:08:27 +02:00
}
. mouth {
stroke : # 666 ;
}
line {
2024-11-13 12:07:54 +02:00
stroke : $ { t . textColor }
2022-11-24 01:08:27 +02:00
}
. legend {
2024-11-13 12:07:54 +02:00
fill : $ { t . textColor } ;
2022-11-24 01:08:27 +02:00
}
. label text {
fill : # 333 ;
}
. label {
2024-11-13 12:07:54 +02:00
color : $ { t . textColor }
2022-11-24 01:08:27 +02:00
}
. face {
2024-11-13 12:07:54 +02:00
$ { t . faceColor ? ` fill: ${ t . faceColor } ` : "fill: #FFF8DC" } ;
2022-11-24 01:08:27 +02:00
stroke : # 999 ;
}
. node rect ,
. node circle ,
. node ellipse ,
. node polygon ,
. node path {
2024-11-13 12:07:54 +02:00
fill : $ { t . mainBkg } ;
stroke : $ { t . nodeBorder } ;
2022-11-24 01:08:27 +02:00
stroke - width : 1 px ;
}
. node . label {
text - align : center ;
}
. node . clickable {
cursor : pointer ;
}
. arrowheadPath {
2024-11-13 12:07:54 +02:00
fill : $ { t . arrowheadColor } ;
2022-11-24 01:08:27 +02:00
}
. edgePath . path {
2024-11-13 12:07:54 +02:00
stroke : $ { t . lineColor } ;
2022-11-24 01:08:27 +02:00
stroke - width : 1.5 px ;
}
. flowchart - link {
2024-11-13 12:07:54 +02:00
stroke : $ { t . lineColor } ;
2022-11-24 01:08:27 +02:00
fill : none ;
}
. edgeLabel {
2024-11-13 12:07:54 +02:00
background - color : $ { t . edgeLabelBackground } ;
2022-11-24 01:08:27 +02:00
rect {
opacity : 0.5 ;
}
text - align : center ;
}
. cluster rect {
}
. cluster text {
2024-11-13 12:07:54 +02:00
fill : $ { t . titleColor } ;
2022-11-24 01:08:27 +02:00
}
div . mermaidTooltip {
position : absolute ;
text - align : center ;
max - width : 200 px ;
padding : 2 px ;
font - family : 'trebuchet ms' , verdana , arial , sans - serif ;
font - family : var ( -- mermaid - font - family ) ;
font - size : 12 px ;
2024-11-13 12:07:54 +02:00
background : $ { t . tertiaryColor } ;
border : 1 px solid $ { t . border2 } ;
2022-11-24 01:08:27 +02:00
border - radius : 2 px ;
pointer - events : none ;
z - index : 100 ;
}
. task - type - 0 , . section - type - 0 {
2024-11-13 12:07:54 +02:00
$ { t . fillType0 ? ` fill: ${ t . fillType0 } ` : "" } ;
2022-11-24 01:08:27 +02:00
}
. task - type - 1 , . section - type - 1 {
2024-11-13 12:07:54 +02:00
$ { t . fillType0 ? ` fill: ${ t . fillType1 } ` : "" } ;
2022-11-24 01:08:27 +02:00
}
. task - type - 2 , . section - type - 2 {
2024-11-13 12:07:54 +02:00
$ { t . fillType0 ? ` fill: ${ t . fillType2 } ` : "" } ;
2022-11-24 01:08:27 +02:00
}
. task - type - 3 , . section - type - 3 {
2024-11-13 12:07:54 +02:00
$ { t . fillType0 ? ` fill: ${ t . fillType3 } ` : "" } ;
2022-11-24 01:08:27 +02:00
}
. task - type - 4 , . section - type - 4 {
2024-11-13 12:07:54 +02:00
$ { t . fillType0 ? ` fill: ${ t . fillType4 } ` : "" } ;
2022-11-24 01:08:27 +02:00
}
. task - type - 5 , . section - type - 5 {
2024-11-13 12:07:54 +02:00
$ { t . fillType0 ? ` fill: ${ t . fillType5 } ` : "" } ;
2022-11-24 01:08:27 +02:00
}
. task - type - 6 , . section - type - 6 {
2024-11-13 12:07:54 +02:00
$ { t . fillType0 ? ` fill: ${ t . fillType6 } ` : "" } ;
2022-11-24 01:08:27 +02:00
}
. task - type - 7 , . section - type - 7 {
2024-11-13 12:07:54 +02:00
$ { t . fillType0 ? ` fill: ${ t . fillType7 } ` : "" } ;
2022-11-24 01:08:27 +02:00
}
. actor - 0 {
2024-11-13 12:07:54 +02:00
$ { t . actor0 ? ` fill: ${ t . actor0 } ` : "" } ;
2022-11-24 01:08:27 +02:00
}
. actor - 1 {
2024-11-13 12:07:54 +02:00
$ { t . actor1 ? ` fill: ${ t . actor1 } ` : "" } ;
2022-11-24 01:08:27 +02:00
}
. actor - 2 {
2024-11-13 12:07:54 +02:00
$ { t . actor2 ? ` fill: ${ t . actor2 } ` : "" } ;
2022-11-24 01:08:27 +02:00
}
. actor - 3 {
2024-11-13 12:07:54 +02:00
$ { t . actor3 ? ` fill: ${ t . actor3 } ` : "" } ;
2022-11-24 01:08:27 +02:00
}
. actor - 4 {
2024-11-13 12:07:54 +02:00
$ { t . actor4 ? ` fill: ${ t . actor4 } ` : "" } ;
2022-11-24 01:08:27 +02:00
}
. actor - 5 {
2024-11-13 12:07:54 +02:00
$ { t . actor5 ? ` fill: ${ t . actor5 } ` : "" } ;
}
` ,"getStyles"),R0e=bYe});var gP,wYe,O0e,P0e,TYe,kYe,I0e,EYe,SYe,B0e,CYe,s1,F0e=M(()=>{"use strict";pr();lv();gP=o(function(t,e){return Sd(t,e)},"drawRect"),wYe=o(function(t,e){let n=t.append("circle").attr("cx",e.cx).attr("cy",e.cy).attr("class","face").attr("r",15).attr("stroke-width",2).attr("overflow","visible"),i=t.append("g");i.append("circle").attr("cx",e.cx-15/3).attr("cy",e.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),i.append("circle").attr("cx",e.cx+15/3).attr("cy",e.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666");function a(u){let h=Dl().startAngle(Math.PI/2).endAngle(3*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);u.append("path").attr("class","mouth").attr("d",h).attr("transform","translate("+e.cx+","+(e.cy+2)+")")}o(a,"smile");function s(u){let h=Dl().startAngle(3*Math.PI/2).endAngle(5*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);u.append("path").attr("class","mouth").attr("d",h).attr("transform","translate("+e.cx+","+(e.cy+7)+")")}o(s,"sad");function l(u){u.append("line").attr("class","mouth").attr("stroke",2).attr("x1",e.cx-5).attr("y1",e.cy+7).attr("x2",e.cx+5).attr("y2",e.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}return o(l,"ambivalent"),e.score>3?a(i):e.score<3?s(i):l(i),n},"drawFace"),O0e=o(function(t,e){let r=t.append("circle");return r.attr("cx",e.cx),r.attr("cy",e.cy),r.attr("class","actor-"+e.pos),r.attr("fill",e.fill),r.attr("stroke",e.stroke),r.attr("r",e.r),r.class!==void 0&&r.attr("class",r.class),e.title!==void 0&&r.append("title").text(e.title),r},"drawCircle"),P0e=o(function(t,e){return AY(t,e)},"drawText"),TYe=o(function(t,e){function r(i,a,s,l,u){return i+","+a+" "+(i+s)+","+a+" "+(i+s)+","+(a+l-u)+" "+(i+s-u*1.2)+","+(a+l)+" "+i+","+(a+l)}o(r,"genPoints");let n=t.append("polygon");n.attr("points",r(e.x,e.y,50,20,7)),n.attr("class","labelBox"),e.y=e.y+e.labelMargin,e.x=e.x+.5*e.labelMargin,P0e(t,e)},"drawLabel"),kYe=o(function(t,e,r){let n=t.append("g"),i=Nl();i.x=e.x,i.y=e.y,i.fill=e.fill,i.width=r.width*e.taskCount+r.diagramMarginX*(e.taskCount-1),i.height=r.height,i.class="journey-section section-type-"+e.num,i.rx=3,i.ry=3,gP(n,i),B0e(r)(e.text,n,i.x,i.y,i.width,i.height,{class:"journey-section section-type-"+e.num},r,e.colour)},"drawSection"),I0e=-1,EYe=o(function(t,e,r){let n=e.x+r.width/2,i=t.append("g");I0e++;let a=300+5*30;i.append("line").attr("id","task"+I0e).attr("x1",n).attr("y1",e.y).attr("x2",n).attr("y2",a).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),wYe(i,{cx:n,cy:300+(5-e.score)*30,score:e.score});let s=Nl();s.x=e.x,s.y=e.y,s.fill=e.fill,s.width=r.width,s.height=r.height,s.class="task task-type-"+e.num,s.rx=3,s.ry=3,gP(i,s);let l=e.x+14;e.people.forEach(u=>{let h=e.actors[u].color,f={cx:l,cy:e.y,r:7,fill:h,stroke:"#000",title:u,pos:e.actors[u].position};O0e(i,f),l+=10}),B0e(r)(e.task,i,s.x,s.y,s.width,s.height,{class:"task"},r,e.colour)},"drawTask"),SYe=o(function(t,e){i5(t,e)},"drawBackgroundRect"),B0e=function(){function t(i,a,s,l,u,h,f,d){let p=a.append("text").attr("x",s+u/2).attr("y",l+h/2+5).style("font-color",d).style("text-anchor","middle").text(i);n(p,f)}o(t,"byText");function e(i,a,s,l,u,h,f,d,p){let{taskFontSize:m,taskFontFamily:g}=d,y=i.split(/<br \s * \/ ?>/gi);for(let v=0;v<y.length;v++){let x=v*m-m*(y.length-1)/2,b=a.append("text").attr("x",s+u/2).attr("y",l).attr("fill",p).style("text-anchor","middle").style("font-size",m).style("font-family",g);b.append("tspan").attr("x",s+u/2).attr("dy",x).text(y[v]),b.attr("y",l+h/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),n(b,f)}}o(e,"byTspan");function r(i,a,s,l,u,h,f,d){let p=a.append("switch"),g=p.append("foreignObject").attr("x",s).attr("y",l).attr("width",u).attr("height",h).attr("position","fixed").append("xhtml:div").style("display","table").style("height","100%").style("width","100%");g.append("div").attr("class","label").style("display","table-cell").style("text-align","c
` +D.showPosition()+ `
Expecting ` +J.join(", ")+", got '"+(this.terminals_[F]||F)+"'":H="Parse error on line "+(T+1)+": Unexpected "+(F==A?"end of input":"'"+(this.terminals_[F]||F)+"'"),this.parseError(H,{text:D.match,token:this.terminals_[F]||F,line:D.yylineno,loc:C,expected:J})}if(z[0]instanceof Array&&z.length>1)throw new Error("Parse Error: multiple actions possible at state: "+G+", token: "+F);switch(z[0]){case 1:y.push(F),x.push(D.yytext),b.push(D.yylloc),y.push(z[1]),F=null,B?(F=B,B=null):(E=D.yyleng,_=D.yytext,T=D.yylineno,C=D.yylloc,L>0&&L--);break;case 2:if(K=this.productions_[z[1]][1],j. $ =x[x.length-K],j._ $ ={first_line:b[b.length-(K||1)].first_line,last_line:b[b.length-1].last_line,first_column:b[b.length-(K||1)].first_column,last_column:b[b.length-1].last_column},O&&(j._ $ .range=[b[b.length-(K||1)].range[0],b[b.length-1].range[1]]),Z=this.performAction.apply(j,[_,E,T,k.yy,z[1],x,b].concat(I)),typeof Z<"u")return Z;K&&(y=y.slice(0,-1*K*2),x=x.slice(0,-1*K),b=b.slice(0,-1*K)),y.push(this.productions_[z[1]][0]),x.push(j. $ ),b.push(j._ $ ),ee=w[y[y.length-2]][y[y.length-1]],y.push(ee);break;case 3:return!0}}return!0},"parse")},f=function(){var p={EOF:1,parseError:o(function(g,y){if(this.yy.parser)this.yy.parser.parseError(g,y);else throw new Error(g)},"parseError"),setInput:o(function(m,g){return this.yy=g||this.yy||{},this._input=m,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:o(function(){var m=this._input[0];this.yytext+=m,this.yyleng++,this.offset++,this.match+=m,this.matched+=m;var g=m.match(/(?: \r \n ?| \n ).*/g);return g?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),m},"input"),unput:o(function(m){var g=m.length,y=m.split(/(?: \r \n ?| \n )/g);this._input=m+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-g),this.offset-=g;var v=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),y.length-1&&(this.yylineno-=y.length-1);var x=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:y?(y.length===v.length?this.yylloc.first_column:0)+v[v.length-y.length].length-y[0].length:this.yylloc.first_column-g},this.options.ranges&&(this.yylloc.range=[x[0],x[0]+this.yyleng-g]),this.yyleng=this.yytext.length,this},"unput"),more:o(function(){return this._more=!0,this},"more"),reject:o(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+ ` . You can only invoke reject ( ) in the lexer when the lexer is of the backtracking persuasion ( options . backtrack _lexer = true ) .
` +this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:o(function(m){this.unput(this.match.slice(m))},"less"),pastInput:o(function(){var m=this.matched.substr(0,this.matched.length-this.match.length);return(m.length>20?"...":"")+m.substr(-20).replace(/ \n /g,"")},"pastInput"),upcomingInput:o(function(){var m=this.match;return m.length<20&&(m+=this._input.substr(0,20-m.length)),(m.substr(0,20)+(m.length>20?"...":"")).replace(/ \n /g,"")},"upcomingInput"),showPosition:o(function(){var m=this.pastInput(),g=new Array(m.length+1).join("-");return m+this.upcomingInput()+ `
` +g+"^"},"showPosition"),test_match:o(function(m,g){var y,v,x;if(this.options.backtrack_lexer&&(x={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&&(x.yylloc.range=this.yylloc.range.slice(0))),v=m[0].match(/(?: \r \n ?| \n ).*/g),v&&(this.yylineno+=v.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:v?v[v.length-1].length-v[v.length-1].match(/ \r ? \n ?/)[0].length:this.yylloc.last_column+m[0].length},this.yytext+=m[0],this.match+=m[0],this.matches=m,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(m[0].length),this.matched+=m[0],y=this.performAction.call(this,this.yy,this,g,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),y)return y;if(this._backtrack){for(var b in x)this[b]=x[b];return!1}return!1},"test_match"),next:o(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var m,g,y,v;this._more||(this.yytext="",this.match="");for(var x=this._currentRules(),b=0;b<x.length;b++)if(y=this._input.match(this.rules[x[b]]),y&&(!g||y[0].length>g[0].length)){if(g=y,v=b,this.options.backtrack_lexer){if(m=this.test_match(y,x[b]),m!==!1)return m;if(this._backtrack){g=!1;continue}else return!1}else if(!this.options.flex)break}return g?(m=this.test_match(g,x[v]),m!==!1?m:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+ ` . Unrecognized text .
` +this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:o(function(){var g=this.next();return g||this.lex()},"lex"),begin:o(function(g){this.conditionStack.push(g)},"begin"),popState:o(function(){var g=this.conditionStack.length-1;return g>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:o(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:o(function(g){return g=this.conditionStack.length-1-Math.abs(g||0),g>=0?this.conditionStack[g]:"INITIAL"},"topState"),pushState:o(function(g){this.begin(g)},"pushState"),stateStackSize:o(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:o(function(g,y,v,x){var b=x;switch(v){case 0:break;case 1:break;case 2:return 10;case 3:break;case 4:break;case 5:return 4;case 6:return 11;case 7:return this.begin("acc_title"),12;break;case 8:return this.popState(),"acc_title_value";break;case 9:return this.begin("acc_descr"),14;break;case 10:return this.popState(),"acc_descr_value";break;case 11:this.begin("acc_descr_multiline");break;case 12:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:return 17;case 15:return 21;case 16:return 20;case 17:return 6;case 18:return"INVALID"}},"anonymous"),rules:[/^(?:%(?! \{ )[^ \n ]*)/i,/^(?:[^ \} ]%%[^ \n ]*)/i,/^(?:[ \n ]+)/i,/^(?: \s +)/i,/^(?:#[^ \n ]*)/i,/^(?:timeline \b )/i,/^(?:title \s [^ \n ]+)/i,/^(?:accTitle \s *: \s *)/i,/^(?:(?! \n ||)*[^ \n ]*)/i,/^(?:accDescr \s *: \s *)/i,/^(?:(?! \n ||)*[^ \n ]*)/i,/^(?:accDescr \s * \{ \s *)/i,/^(?:[ \} ])/i,/^(?:[^ \} ]*)/i,/^(?:section \s [^: \n ]+)/i,/^(?:: \s [^: \n ]+)/i,/^(?:[^#: \n ]+)/i,/^(?: $ )/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,9,11,14,15,16,17,18],inclusive:!0}}};return p}();h.lexer=f;function d(){this.yy={}}return o(d,"Parser"),d.prototype=h,h.Parser=d,new d}();bP.parser=bP;j0e=bP});var TP={};vr(TP,{addEvent:()=>ape,addSection:()=>tpe,addTask:()=>ipe,addTaskOrg:()=>spe,clear:()=>epe,default:()=>GYe,getCommonDb:()=>J0e,getSections:()=>rpe,getTasks:()=>npe});var o1,Z0e,wP,n6,l1,J0e,epe,tpe,rpe,npe,ipe,ape,spe,Q0e,GYe,ope=M(()=>{"use strict";Ai();o1="",Z0e=0,wP=[],n6=[],l1=[],J0e=o(()=>xy,"getCommonDb"),epe=o(function(){wP.length=0,n6.length=0,o1="",l1.length=0,Lr()},"clear"),tpe=o(function(t){o1=t,wP.push(t)},"addSection"),rpe=o(function(){return wP},"getSections"),npe=o(function(){let t=Q0e(),e=100,r=0;for(;!t&&r<e;)t=Q0e(),r++;return n6.push(...l1),n6},"getTasks"),ipe=o(function(t,e,r){let n={id:Z0e++,section:o1,type:o1,task:t,score:e||0,events:r?[r]:[]};l1.push(n)},"addTask"),ape=o(function(t){l1.find(r=>r.id===Z0e-1).events.push(t)},"addEvent"),spe=o(function(t){let e={section:o1,type:o1,description:t,task:t,classes:[]};n6.push(e)},"addTaskOrg"),Q0e=o(function(){let t=o(function(r){return l1[r].processed},"compileTask"),e=!0;for(let[r,n]of l1.entries())t(r),e=e&&n.processed;return e},"compileTasks"),GYe={clear:epe,getCommonDb:J0e,addSection:tpe,getSections:rpe,getTasks:npe,addTask:ipe,addTaskOrg:spe,addEvent:ape}});function hpe(t,e){t.each(function(){var r=Ve(this),n=r.text().split(/( \s +|<br>)/).reverse(),i,a=[],s=1.1,l=r.attr("y"),u=parseFloat(r.attr("dy")),h=r.text(null).append("tspan").attr("x",0).attr("y",l).attr("dy",u+"em");for(let f=0;f<n.length;f++)i=n[n.length-1-f],a.push(i),h.text(a.join(" ").trim()),(h.node().getComputedTextLength()>e||i==="<br>")&&(a.pop(),h.text(a.join(" ").trim()),i==="<br>"?a=[""]:a=[i],h=r.append("tspan").attr("x",0).attr("y",l).attr("dy",s+"em").text(i))})}var $ Ye,i6,VYe,UYe,cpe,HYe,WYe,lpe,YYe,qYe,XYe,kP,upe,jYe,KYe,QYe,ZYe,Af,fpe=M(()=>{"use strict";pr(); $ Ye=12,i6=o(function(t,e){let r=t.append("rect");return r.attr("x",e.x),r.attr("y",e.y),r.attr("fill",e.fill),r.attr("stroke",e.stroke),r.attr("width",e.width),r.attr("height",e.height),r.attr("rx",e.rx),r.attr("ry",e.ry),e.cla
. section - $ { r - 1 } rect , . section - $ { r - 1 } path , . section - $ { r - 1 } circle , . section - $ { r - 1 } path {
fill : $ { t [ "cScale" + r ] } ;
}
. section - $ { r - 1 } text {
fill : $ { t [ "cScaleLabel" + r ] } ;
}
. node - icon - $ { r - 1 } {
font - size : 40 px ;
color : $ { t [ "cScaleLabel" + r ] } ;
}
. section - edge - $ { r - 1 } {
stroke : $ { t [ "cScale" + r ] } ;
}
. edge - depth - $ { r - 1 } {
stroke - width : $ { n } ;
}
. section - $ { r - 1 } line {
stroke : $ { t [ "cScaleInv" + r ] } ;
stroke - width : 3 ;
2023-09-19 12:31:17 +02:00
}
2024-11-13 12:07:54 +02:00
. lineWrapper line {
stroke : $ { t [ "cScaleLabel" + r ] } ;
}
2022-11-24 01:08:27 +02:00
2024-11-13 12:07:54 +02:00
. disabled , . disabled circle , . disabled text {
fill : lightgray ;
}
. disabled text {
fill : # efefef ;
}
` }return e},"genSections"),rqe=o(t=> `
. edge {
stroke - width : 3 ;
2022-11-24 01:08:27 +02:00
}
2024-11-13 12:07:54 +02:00
$ { tqe ( t ) }
. section - root rect , . section - root path , . section - root circle {
fill : $ { t . git0 } ;
2022-11-24 01:08:27 +02:00
}
2024-11-13 12:07:54 +02:00
. section - root text {
fill : $ { t . gitBranchLabel0 } ;
2022-11-24 01:08:27 +02:00
}
2024-11-13 12:07:54 +02:00
. icon - container {
height : 100 % ;
display : flex ;
justify - content : center ;
align - items : center ;
2023-09-19 12:31:17 +02:00
}
2024-11-13 12:07:54 +02:00
. edge {
fill : none ;
2022-11-24 01:08:27 +02:00
}
2024-11-13 12:07:54 +02:00
. eventWrapper {
filter : brightness ( 120 % ) ;
2022-11-24 01:08:27 +02:00
}
2024-11-13 12:07:54 +02:00
` ,"getStyles"),gpe=rqe});var vpe={};vr(vpe,{diagram:()=>nqe});var nqe,xpe=M(()=>{"use strict";K0e();ope();mpe();ype();nqe={db:TP,renderer:ppe,parser:j0e,styles:gpe}});var EP,Tpe,kpe=M(()=>{"use strict";EP=function(){var t=o(function(_,T,E,L){for(E=E||{},L=_.length;L--;E[_[L]]=T);return E},"o"),e=[1,4],r=[1,13],n=[1,12],i=[1,15],a=[1,16],s=[1,20],l=[1,19],u=[6,7,8],h=[1,26],f=[1,24],d=[1,25],p=[6,7,11],m=[1,6,13,15,16,19,22],g=[1,33],y=[1,34],v=[1,6,7,11,13,15,16,19,22],x={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,MINDMAP:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,ICON:15,CLASS:16,nodeWithId:17,nodeWithoutId:18,NODE_DSTART:19,NODE_DESCR:20,NODE_DEND:21,NODE_ID:22, $ accept:0, $ end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"MINDMAP",11:"EOF",13:"SPACELIST",15:"ICON",16:"CLASS",19:"NODE_DSTART",20:"NODE_DESCR",21:"NODE_DEND",22:"NODE_ID"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[18,3],[17,1],[17,4]],performAction:o(function(T,E,L,S,A,I,D){var k=I.length-1;switch(A){case 6:case 7:return S;case 8:S.getLogger().trace("Stop NL ");break;case 9:S.getLogger().trace("Stop EOF ");break;case 11:S.getLogger().trace("Stop NL2 ");break;case 12:S.getLogger().trace("Stop EOF2 ");break;case 15:S.getLogger().info("Node: ",I[k].id),S.addNode(I[k-1].length,I[k].id,I[k].descr,I[k].type);break;case 16:S.getLogger().trace("Icon: ",I[k]),S.decorateNode({icon:I[k]});break;case 17:case 21:S.decorateNode({class:I[k]});break;case 18:S.getLogger().trace("SPACELIST");break;case 19:S.getLogger().trace("Node: ",I[k].id),S.addNode(0,I[k].id,I[k].descr,I[k].type);break;case 20:S.decorateNode({icon:I[k]});break;case 25:S.getLogger().trace("node found ..",I[k-2]),this. $ ={id:I[k-1],descr:I[k-1],type:S.getType(I[k-2],I[k])};break;case 26:this. $ ={id:I[k],descr:I[k],type:S.nodeType.DEFAULT};break;case 27:S.getLogger().trace("node found ..",I[k-3]),this. $ ={id:I[k-3],descr:I[k-1],type:S.getType(I[k-2],I[k])};break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:e},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:e},{6:r,7:[1,10],9:9,12:11,13:n,14:14,15:i,16:a,17:17,18:18,19:s,22:l},t(u,[2,3]),{1:[2,2]},t(u,[2,4]),t(u,[2,5]),{1:[2,6],6:r,12:21,13:n,14:14,15:i,16:a,17:17,18:18,19:s,22:l},{6:r,9:22,12:11,13:n,14:14,15:i,16:a,17:17,18:18,19:s,22:l},{6:h,7:f,10:23,11:d},t(p,[2,22],{17:17,18:18,14:27,15:[1,28],16:[1,29],19:s,22:l}),t(p,[2,18]),t(p,[2,19]),t(p,[2,20]),t(p,[2,21]),t(p,[2,23]),t(p,[2,24]),t(p,[2,26],{19:[1,30]}),{20:[1,31]},{6:h,7:f,10:32,11:d},{1:[2,7],6:r,12:21,13:n,14:14,15:i,16:a,17:17,18:18,19:s,22:l},t(m,[2,14],{7:g,11:y}),t(v,[2,8]),t(v,[2,9]),t(v,[2,10]),t(p,[2,15]),t(p,[2,16]),t(p,[2,17]),{20:[1,35]},{21:[1,36]},t(m,[2,13],{7:g,11:y}),t(v,[2,11]),t(v,[2,12]),{21:[1,37]},t(p,[2,25]),t(p,[2,27])],defaultActions:{2:[2,1],6:[2,2]},parseError:o(function(T,E){if(E.recoverable)this.trace(T);else{var L=new Error(T);throw L.hash=E,L}},"parseError"),parse:o(function(T){var E=this,L=[0],S=[],A=[null],I=[],D=this.table,k="",R=0,C=0,O=0,N=2,P=1,F=I.slice.call(arguments,1),B=Object.create(this.lexer),G={yy:{}};for(var z in this.yy)Object.prototype.hasOwnProperty.call(this.yy,z)&&(G.yy[z]=this.yy[z]);B.setInput(T,G.yy),G.yy.lexer=B,G.yy.parser=this,typeof B.yylloc>"u"&&(B.yylloc={});var W=B.yylloc;I.push(W);var Z=B.options&&B.options.ranges;typeof G.yy.parseError=="function"?this.parseError=G.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function j(ke){L.length=L.length-2*ke,A.length=A.length-ke,I.length=I.length-ke}o(j,"popStack");function oe(){var ke;return ke=S.pop()||B.lex()||P,typeof ke!="number"&&(ke instanceof Array&&(S=ke,ke=S.pop()),ke=E.symbols_[ke]||ke),ke}o(oe,"lex");for(var K,ee,J,H,q,Q,ae={},ue,ce,te,Ne;;){if(J=L[L.length-1],this.defaultActions[J]?H=this.defaultActions[J]:((K===null||typeof K>"u")&&(K=oe()),H=D[J]&&D[J][K]),typeof H>"u"||!H.length||!H[0]){var se="";Ne=[];for(ue in D[J])this.terminals_[ue]&&ue>N&&Ne.push("'
` +B.showPosition()+ `
Expecting ` +Ne.join(", ")+", got '"+(this.terminals_[K]||K)+"'":se="Parse error on line "+(R+1)+": Unexpected "+(K==P?"end of input":"'"+(this.terminals_[K]||K)+"'"),this.parseError(se,{text:B.match,token:this.terminals_[K]||K,line:B.yylineno,loc:W,expected:Ne})}if(H[0]instanceof Array&&H.length>1)throw new Error("Parse Error: multiple actions possible at state: "+J+", token: "+K);switch(H[0]){case 1:L.push(K),A.push(B.yytext),I.push(B.yylloc),L.push(H[1]),K=null,ee?(K=ee,ee=null):(C=B.yyleng,k=B.yytext,R=B.yylineno,W=B.yylloc,O>0&&O--);break;case 2:if(ce=this.productions_[H[1]][1],ae. $ =A[A.length-ce],ae._ $ ={first_line:I[I.length-(ce||1)].first_line,last_line:I[I.length-1].last_line,first_column:I[I.length-(ce||1)].first_column,last_column:I[I.length-1].last_column},Z&&(ae._ $ .range=[I[I.length-(ce||1)].range[0],I[I.length-1].range[1]]),Q=this.performAction.apply(ae,[k,C,R,G.yy,H[1],A,I].concat(F)),typeof Q<"u")return Q;ce&&(L=L.slice(0,-1*ce*2),A=A.slice(0,-1*ce),I=I.slice(0,-1*ce)),L.push(this.productions_[H[1]][0]),A.push(ae. $ ),I.push(ae._ $ ),te=D[L[L.length-2]][L[L.length-1]],L.push(te);break;case 3:return!0}}return!0},"parse")},b=function(){var _={EOF:1,parseError:o(function(E,L){if(this.yy.parser)this.yy.parser.parseError(E,L);else throw new Error(E)},"parseError"),setInput:o(function(T,E){return this.yy=E||this.yy||{},this._input=T,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:o(function(){var T=this._input[0];this.yytext+=T,this.yyleng++,this.offset++,this.match+=T,this.matched+=T;var E=T.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),T},"input"),unput:o(function(T){var E=T.length,L=T.split(/(?: \r \n ?| \n )/g);this._input=T+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-E),this.offset-=E;var S=this.match.split(/(?: \r \n ?| \n )/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),L.length-1&&(this.yylineno-=L.length-1);var A=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:L?(L.length===S.length?this.yylloc.first_column:0)+S[S.length-L.length].length-L[0].length:this.yylloc.first_column-E},this.options.ranges&&(this.yylloc.range=[A[0],A[0]+this.yyleng-E]),this.yyleng=this.yytext.length,this},"unput"),more:o(function(){return this._more=!0,this},"more"),reject:o(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+ ` . You can only invoke reject ( ) in the lexer when the lexer is of the backtracking persuasion ( options . backtrack _lexer = true ) .
` +this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:o(function(T){this.unput(this.match.slice(T))},"less"),pastInput:o(function(){var T=this.matched.substr(0,this.matched.length-this.match.length);return(T.length>20?"...":"")+T.substr(-20).replace(/ \n /g,"")},"pastInput"),upcomingInput:o(function(){var T=this.match;return T.length<20&&(T+=this._input.substr(0,20-T.length)),(T.substr(0,20)+(T.length>20?"...":"")).replace(/ \n /g,"")},"upcomingInput"),showPosition:o(function(){var T=this.pastInput(),E=new Array(T.length+1).join("-");return T+this.upcomingInput()+ `
` +E+"^"},"showPosition"),test_match:o(function(T,E){var L,S,A;if(this.options.backtrack_lexer&&(A={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&&(A.yylloc.range=this.yylloc.range.slice(0))),S=T[0].match(/(?: \r \n ?| \n ).*/g),S&&(this.yylineno+=S.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:S?S[S.length-1].length-S[S.length-1].match(/ \r ? \n ?/)[0].length:this.yylloc.last_column+T[0].length},this.yytext+=T[0],this.match+=T[0],this.matches=T,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(T[0].length),this.matched+=T[0],L=this.performAction.call(this,this.yy,this,E,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),L)return L;if(this._backtrack){for(var I in A)this[I]=A[I];return!1}return!1},"test_match"),next:o(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var T,E,L,S;this._more||(this.yytext="",this.match="");for(var A=this._currentRules(),I=0;I<A.length;I++)if(L=this._input.match(this.rules[A[I]]),L&&(!E||L[0].length>E[0].length)){if(E=L,S=I,this.options.backtrack_lexer){if(T=this.test_match(L,A[I]),T!==!1)return T;if(this._backtrack){E=!1;continue}else return!1}else if(!this.options.flex)break}return E?(T=this.test_match(E,A[S]),T!==!1?T:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+ ` . Unrecognized text .
` +this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:o(function(){var E=this.next();return E||this.lex()},"lex"),begin:o(function(E){this.conditionStack.push(E)},"begin"),popState:o(function(){var E=this.conditionStack.length-1;return E>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:o(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:o(function(E){return E=this.conditionStack.length-1-Math.abs(E||0),E>=0?this.conditionStack[E]:"INITIAL"},"topState"),pushState:o(function(E){this.begin(E)},"pushState"),stateStackSize:o(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:o(function(E,L,S,A){var I=A;switch(S){case 0:return E.getLogger().trace("Found comment",L.yytext),6;break;case 1:return 8;case 2:this.begin("CLASS");break;case 3:return this.popState(),16;break;case 4:this.popState();break;case 5:E.getLogger().trace("Begin icon"),this.begin("ICON");break;case 6:return E.getLogger().trace("SPACELINE"),6;break;case 7:return 7;case 8:return 15;case 9:E.getLogger().trace("end icon"),this.popState();break;case 10:return E.getLogger().trace("Exploding node"),this.begin("NODE"),19;break;case 11:return E.getLogger().trace("Cloud"),this.begin("NODE"),19;break;case 12:return E.getLogger().trace("Explosion Bang"),this.begin("NODE"),19;break;case 13:return E.getLogger().trace("Cloud Bang"),this.begin("NODE"),19;break;case 14:return this.begin("NODE"),19;break;case 15:return this.begin("NODE"),19;break;case 16:return this.begin("NODE"),19;break;case 17:return this.begin("NODE"),19;break;case 18:return 13;case 19:return 22;case 20:return 11;case 21:this.begin("NSTR2");break;case 22:return"NODE_DESCR";case 23:this.popState();break;case 24:E.getLogger().trace("Starting NSTR"),this.begin("NSTR");break;case 25:return E.getLogger().trace("description:",L.yytext),"NODE_DESCR";break;case 26:this.popState();break;case 27:return this.popState(),E.getLogger().trace("node end ))"),"NODE_DEND";break;case 28:return this.popState(),E.getLogger().trace("node end )"),"NODE_DEND";break;case 29:return this.popState(),E.getLogger().trace("node end ...",L.yytext),"NODE_DEND";break;case 30:return this.popState(),E.getLogger().trace("node end (("),"NODE_DEND";break;case 31:return this.popState(),E.getLogger().trace("node end (-"),"NODE_DEND";break;case 32:return this.popState(),E.getLogger().trace("node end (-"),"NODE_DEND";break;case 33:return this.popState(),E.getLogger().trace("node end (("),"NODE_DEND";break;case 34:return this.popState(),E.getLogger().trace("node end (("),"NODE_DEND";break;case 35:return E.getLogger().trace("Long description:",L.yytext),20;break;case 36:return E.getLogger().trace("Long description:",L.yytext),20;break}},"anonymous"),rules:[/^(?: \s *%%.*)/i,/^(?:mindmap \b )/i,/^(?::::)/i,/^(?:.+)/i,/^(?: \n )/i,/^(?:::icon \( )/i,/^(?:[ \s ]+[ \n ])/i,/^(?:[ \n ]+)/i,/^(?:[^ \) ]+)/i,/^(?: \) )/i,/^(?:- \) )/i,/^(?: \( -)/i,/^(?: \) \) )/i,/^(?: \) )/i,/^(?: \( \( )/i,/^(?: \{ \{ )/i,/^(?: \( )/i,/^(?: \[ )/i,/^(?:[ \s ]+)/i,/^(?:[^ \( \[ \n \) \{ \} ]+)/i,/^(?: $ )/i,/^(?:["][ ` ] ) / i , /^(?:[^`"]+)/i , /^(?:[`]["])/i , /^(?:["])/i , /^(?:[^"]+)/i , /^(?:["])/i , /^(?:[\)]\))/i , /^(?:[\)])/i , /^(?:[\]])/i , /^(?:\}\})/i , /^(?:\(-)/i , /^(?:-\))/i , /^(?:\(\()/i , /^(?:\()/i , /^(?:[^\)\]\(\}]+)/i , /^(?:.+(?!\(\())/i ] , conditions : { CLASS : { rules : [ 3 , 4 ] , inclusive : ! 1 } , ICON : { rules : [ 8 , 9 ] , inclusive : ! 1 } , NSTR2 : { rules : [ 22 , 23 ] , inclusive : ! 1 } , NSTR : { rules : [ 25 , 26 ] , inclusive : ! 1 } , NODE : { rules : [ 21 , 24 , 27 , 28 , 29 , 30 , 31 , 32 , 33 , 34 , 35 , 36 ] , inclusive : ! 1 } , INITIAL : { rules : [ 0 , 1 , 2 , 5 , 6 , 7 , 10 , 11 , 12 , 13 , 14 , 15 , 16 , 17 , 18 , 19 , 20 ] , inclusive : ! 0 } } } ; return _ } ( ) ; x . lexer = b ; function w ( ) { this . yy = { } } return o ( w , "Parser" ) , w . prototype = x , x . Parser = w , new w } ( ) ; EP . parser = EP ; Tpe = EP } ) ; var Xl , Epe , SP , oqe , lqe , cqe , uqe , qi , hqe , fqe , dqe , pqe , mqe , gqe , yqe , Spe , Cpe = M ( ( ) => { "use strict" ; Vt ( ) ; fr ( ) ; ut ( ) ; bs ( ) ; Xl = [ ] , Epe = 0 , SP = { } , oqe = o ( ( ) => { Xl = [ ] , Epe = 0 , SP = { } } , "clear" ) , lqe = o ( function ( t ) { for ( let e = Xl . length - 1 ; e >= 0 ;
In order to be iterable , non - array objects must have a [ Symbol . iterator ] ( ) method . ` )}function Ume(t,e){var r=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=Vme(t))||e&&t&&typeof t.length=="number"){r&&(t=r);var n=0,i=o(function(){},"F");return{s:i,n:o(function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},"n"),e:o(function(u){throw u},"e"),f:i}}throw new TypeError( ` Invalid attempt to iterate non - iterable instance .
In order to be iterable , non - array objects must have a [ Symbol . iterator ] ( ) method . ` )}var a=!0,s=!1,l;return{s:o(function(){r=r.call(t)},"s"),n:o(function(){var u=r.next();return a=u.done,u},"n"),e:o(function(u){s=!0,l=u},"e"),f:o(function(){try{!a&&r.return!=null&&r.return()}finally{if(s)throw l}},"f")}}function Hqe(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}function Wqe(t,e){return e={exports:{}},t(e,e.exports),e.exports}function Zqe(t){for(var e=t.length;e--&&Qqe.test(t.charAt(e)););return e}function tXe(t){return t&&t.slice(0,Jqe(t)+1).replace(eXe,"")}function sXe(t){var e=iXe.call(t,Hx),r=t[Hx];try{t[Hx]=void 0;var n=!0}catch{}var i=aXe.call(t);return n&&(e?t[Hx]=r:delete t[Hx]),i}function uXe(t){return cXe.call(t)}function pXe(t){return t==null?t===void 0?dXe:fXe:Npe&&Npe in Object(t)?oXe(t):hXe(t)}function mXe(t){return t!=null&&typeof t=="object"}function vXe(t){return typeof t=="symbol"||gXe(t)&&Zme(t)==yXe}function kXe(t){if(typeof t=="number")return t;if(mb(t))return Rpe;if(X0(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=X0(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=rXe(t);var r=bXe.test(t);return r||wXe.test(t)?TXe(t.slice(2),r?2:8):xXe.test(t)?Rpe:+t}function AXe(t,e,r){var n,i,a,s,l,u,h=0,f=!1,d=!1,p=!0;if(typeof t!="function")throw new TypeError(EXe);e=Mpe(e)||0,X0(r)&&(f=!!r.leading,d="maxWait"in r,a=d?SXe(Mpe(r.maxWait)||0,e):a,p="trailing"in r?!!r.trailing:p);function m(E){var L=n,S=i;return n=i=void 0,h=E,s=t.apply(S,L),s}o(m,"invokeFunc");function g(E){return h=E,l=setTimeout(x,e),f?m(E):s}o(g,"leadingEdge");function y(E){var L=E-u,S=E-h,A=e-L;return d?CXe(A,a-S):A}o(y,"remainingWait");function v(E){var L=E-u,S=E-h;return u===void 0||L>=e||L<0||d&&S>=a}o(v,"shouldInvoke");function x(){var E=CP();if(v(E))return b(E);l=setTimeout(x,y(E))}o(x,"timerExpired");function b(E){return l=void 0,p&&n?m(E):(n=i=void 0,s)}o(b,"trailingEdge");function w(){l!==void 0&&clearTimeout(l),h=0,n=u=i=l=void 0}o(w,"cancel");function _(){return l===void 0?s:b(CP())}o(_,"flush");function T(){var E=CP(),L=v(E);if(n=arguments,i=this,u=E,L){if(l===void 0)return g(u);if(d)return clearTimeout(l),l=setTimeout(x,e),m(u)}return l===void 0&&(l=setTimeout(x,e)),s}return o(T,"debounced"),T.cancel=w,T.flush=_,T}function V6(t,e,r,n,i,a){var s;return ni(t)?s=t:s=k1[t]||k1.euclidean,e===0&&ni(t)?s(i,a):s(e,r,n,i,a)}function xKe(t,e){if(U6(t))return!1;var r=typeof t;return r=="number"||r=="symbol"||r=="boolean"||t==null||mb(t)?!0:vKe.test(t)||!yKe.test(t)||e!=null&&t in Object(e)}function SKe(t){if(!X0(t))return!1;var e=Zme(t);return e==TKe||e==kKe||e==wKe||e==EKe}function _Ke(t){return!!Jpe&&Jpe in t}function RKe(t){if(t!=null){try{return NKe.call(t)}catch{}try{return t+""}catch{}}return""}function $ Ke(t){if(!X0(t)||LKe(t))return!1;var e=CKe(t)?GKe:OKe;return e.test(MKe(t))}function UKe(t,e){return t?.[e]}function WKe(t,e){var r=HKe(t,e);return VKe(r)?r:void 0}function qKe(){this.__data__=lb?lb(null):{},this.size=0}function jKe(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}function eQe(t){var e=this.__data__;if(lb){var r=e[t];return r===QKe?void 0:r}return JKe.call(e,t)?e[t]:void 0}function iQe(t){var e=this.__data__;return lb?e[t]!==void 0:nQe.call(e,t)}function oQe(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=lb&&e===void 0?sQe:e,this}function A1(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function cQe(){this.__data__=[],this.size=0}function hQe(t,e){return t===e||t!==t&&e!==e}function fQe(t,e){for(var r=t.length;r--;)if(kge(t[r][0],e))return r;return-1}function mQe(t){var e=this.__data__,r=H6(e,t);if(r<0)return!1;var n=e.length-1;return r==n?e.pop():pQe.call(e,r,1),--this.size,!0}function yQe(t){var e=this.__data__,r=H6(e,t);return r<0?void 0:e[r][1]}function xQe(t){return H6(this.__data__,t)>-1}function wQe(t,e){var r=this.__data__,n=H6(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this}function _1(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function CQe()
` ),d=t.pstyle("text-max-width").pfValue,p=t.pstyle("text-overflow-wrap").value,m=p==="anywhere",g=[],y=/[ \s \u 200b]+| $ /g,v=0;v<f.length;v++){var x=f[v],b=this.calculateLabelDimensions(t,x),w=b.width;if(m){var _=x.split("").join(h);x=_}if(w>d){var T=x.matchAll(y),E="",L=0,S=Ume(T),A;try{for(S.s();!(A=S.n()).done;){var I=A.value,D=I[0],k=x.substring(L,I.index);L=I.index+D.length;var R=E.length===0?k:E+k+D,C=this.calculateLabelDimensions(t,R),O=C.width;O<=d?E+=k+D:(E&&g.push(E),E=k+D)}}catch(W){S.e(W)}finally{S.f()}E.match(/^[ \s \u 200b]+ $ /)||g.push(E)}else g.push(x)}s("labelWrapCachedLines",g),i=s("labelWrapCachedText",g.join( `
` )),s("labelWrapKey",u)}else if(l==="ellipsis"){var N=t.pstyle("text-max-width").pfValue,P="",F=" \u 2026",B=!1;if(this.calculateLabelDimensions(t,i).width<N)return i;for(var G=0;G<i.length;G++){var z=this.calculateLabelDimensions(t,P+i[G]+F).width;if(z>N)break;P+=i[G],G===i.length-1&&(B=!0)}return B||(P+=F),P}return i};tu.getLabelJustification=function(t){var e=t.pstyle("text-justification").strValue,r=t.pstyle("text-halign").strValue;if(e==="auto")if(t.isNode())switch(r){case"left":return"right";case"right":return"left";default:return"center"}else return"center";else return e};tu.calculateLabelDimensions=function(t,e){var r=this,n=r.cy.window(),i=n.document,a=j0(e,t._private.labelDimsKey),s=r.labelDimCache||(r.labelDimCache=[]),l=s[a];if(l!=null)return l;var u=0,h=t.pstyle("font-style").strValue,f=t.pstyle("font-size").pfValue,d=t.pstyle("font-family").strValue,p=t.pstyle("font-weight").strValue,m=this.labelCalcCanvas,g=this.labelCalcCanvasContext;if(!m){m=this.labelCalcCanvas=i.createElement("canvas"),g=this.labelCalcCanvasContext=m.getContext("2d");var y=m.style;y.position="absolute",y.left="-9999px",y.top="-9999px",y.zIndex="-1",y.visibility="hidden",y.pointerEvents="none"}g.font="".concat(h," ").concat(p," ").concat(f,"px ").concat(d);for(var v=0,x=0,b=e.split( `
` ),w=0;w<b.length;w++){var _=b[w],T=g.measureText(_),E=Math.ceil(T.width),L=f;v=Math.max(E,v),x+=L}return v+=u,x+=u,s[a]={width:v,height:x}};tu.calculateLabelAngle=function(t,e){var r=t._private,n=r.rscratch,i=t.isEdge(),a=e?e+"-":"",s=t.pstyle(a+"text-rotation"),l=s.strValue;return l==="none"?0:i&&l==="autorotate"?n.labelAutoAngle:l==="autorotate"?0:s.pfValue};tu.calculateLabelAngles=function(t){var e=this,r=t.isEdge(),n=t._private,i=n.rscratch;i.labelAngle=e.calculateLabelAngle(t),r&&(i.sourceLabelAngle=e.calculateLabelAngle(t,"source"),i.targetLabelAngle=e.calculateLabelAngle(t,"target"))};l1e={},Dme=28,Nme=!1;l1e.getNodeShape=function(t){var e=this,r=t.pstyle("shape").value;if(r==="cutrectangle"&&(t.width()<Dme||t.height()<Dme))return Nme||(on("The ` cutrectangle ` node shape can not be used at small sizes so ` rectangle ` is used instead"),Nme=!0),"rectangle";if(t.isParent())return r==="rectangle"||r==="roundrectangle"||r==="round-rectangle"||r==="cutrectangle"||r==="cut-rectangle"||r==="barrel"?r:"rectangle";if(r==="polygon"){var n=t.pstyle("shape-polygon-points").value;return e.nodeShapes.makePolygon(n).name}return r};J6={};J6.registerCalculationListeners=function(){var t=this.cy,e=t.collection(),r=this,n=o(function(s){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(e.merge(s),l)for(var u=0;u<s.length;u++){var h=s[u],f=h._private,d=f.rstyle;d.clean=!1,d.cleanConnected=!1}},"enqueue");r.binder(t).on("bounds.* dirty.*",o(function(s){var l=s.target;n(l)},"onDirtyBounds")).on("style.* background.*",o(function(s){var l=s.target;n(l,!1)},"onDirtyStyle"));var i=o(function(s){if(s){var l=r.onUpdateEleCalcsFns;e.cleanStyle();for(var u=0;u<e.length;u++){var h=e[u],f=h._private.rstyle;h.isNode()&&!f.cleanConnected&&(n(h.connectedEdges()),f.cleanConnected=!0)}if(l)for(var d=0;d<l.length;d++){var p=l[d];p(s,e)}r.recalculateRenderedStyle(e),e=t.collection()}},"updateEleCalcs");r.flushRenderedStyleQueue=function(){i(!0)},r.beforeRender(i,r.beforeRenderPriorities.eleCalcs)};J6.onUpdateEleCalcs=function(t){var e=this.onUpdateEleCalcsFns=this.onUpdateEleCalcsFns||[];e.push(t)};J6.recalculateRenderedStyle=function(t,e){var r=o(function(_){return _._private.rstyle.cleanConnected},"isCleanConnected"),n=[],i=[];if(!this.destroyed){e===void 0&&(e=!0);for(var a=0;a<t.length;a++){var s=t[a],l=s._private,u=l.rstyle;s.isEdge()&&(!r(s.source())||!r(s.target()))&&(u.clean=!1),!(e&&u.clean||s.removed())&&s.pstyle("display").value!=="none"&&(l.group==="nodes"?i.push(s):n.push(s),u.clean=!0)}for(var h=0;h<i.length;h++){var f=i[h],d=f._private,p=d.rstyle,m=f.position();this.recalculateNodeLabelProjection(f),p.nodeX=m.x,p.nodeY=m.y,p.nodeW=f.pstyle("width").pfValue,p.nodeH=f.pstyle("height").pfValue}this.recalculateEdgeProjections(n);for(var g=0;g<n.length;g++){var y=n[g],v=y._private,x=v.rstyle,b=v.rscratch;x.srcX=b.arrowStartX,x.srcY=b.arrowStartY,x.tgtX=b.arrowEndX,x.tgtY=b.arrowEndY,x.midX=b.midX,x.midY=b.midY,x.labelAngle=b.labelAngle,x.sourceLabelAngle=b.sourceLabelAngle,x.targetLabelAngle=b.targetLabelAngle}}};eS={};eS.updateCachedGrabbedEles=function(){var t=this.cachedZSortedEles;if(t){t.drag=[],t.nondrag=[];for(var e=[],r=0;r<t.length;r++){var n=t[r],i=n._private.rscratch;n.grabbed()&&!n.isParent()?e.push(n):i.inDragLayer?t.drag.push(n):t.nondrag.push(n)}for(var r=0;r<e.length;r++){var n=e[r];t.drag.push(n)}}};eS.invalidateCachedZSortedEles=function(){this.cachedZSortedEles=null};eS.getCachedZSortedEles=function(t){if(t||!this.cachedZSortedEles){var e=this.cy.mutableElements().toArray();e.sort(Wge),e.interactive=e.filter(function(r){return r.interactive()}),this.cachedZSortedEles=e,this.updateCachedGrabbedEles()}else e=this.cachedZSortedEles;return e};c1e={};[tp,O6,qa,xb,kB,tu,l1e,J6,eS].forEach(function(t){ir(c1e,t)});u1e={};u1e.getCachedImage=function(t,e,r){var n=this,i=n.imageCache=n.imageCache||{},a=i[t];if(a)return a.image.complete||a.image.addEventListener("load",r),a.image;a=i[t]=i[t]||{};var s=a.image=new Image;s.addEventListener("load",r),s.addEventListener("error",function(){s.error=!0});var l="data:",u=t.subst
a$ { l } , $ { l } 1 0 , 1 $ { n * . 4 } , $ { - 1 * n * . 1 }
a$ { s } , $ { s } 1 0 , 1 $ { n * . 35 } , $ { 1 * n * . 2 }
a$ { a } , $ { a } 1 0 , 1 $ { n * . 15 } , $ { 1 * i * . 35 }
a$ { u } , $ { u } 1 0 , 1 $ { - 1 * n * . 15 } , $ { 1 * i * . 65 }
a$ { s } , $ { a } 1 0 , 1 $ { - 1 * n * . 25 } , $ { n * . 15 }
a$ { l } , $ { l } 1 0 , 1 $ { - 1 * n * . 5 } , 0
a$ { a } , $ { a } 1 0 , 1 $ { - 1 * n * . 25 } , $ { - 1 * n * . 15 }
a$ { a } , $ { a } 1 0 , 1 $ { - 1 * n * . 1 } , $ { - 1 * i * . 35 }
a$ { u } , $ { u } 1 0 , 1 $ { n * . 1 } , $ { - 1 * i * . 65 }
H0 V0 Z ` )},"cloudBkg"),rtt=o(function(t,e,r){let n=r.width,i=r.height,a=.15*n;e.append("path").attr("id","node-"+r.id).attr("class","node-bkg node-"+t.type2Str(r.type)).attr("d", ` M0 0 a$ { a } , $ { a } 1 0 , 0 $ { n * . 25 } , $ { - 1 * i * . 1 }
a$ { a } , $ { a } 1 0 , 0 $ { n * . 25 } , 0
a$ { a } , $ { a } 1 0 , 0 $ { n * . 25 } , 0
a$ { a } , $ { a } 1 0 , 0 $ { n * . 25 } , $ { 1 * i * . 1 }
a$ { a } , $ { a } 1 0 , 0 $ { n * . 15 } , $ { 1 * i * . 33 }
a$ { a * . 8 } , $ { a * . 8 } 1 0 , 0 0 , $ { 1 * i * . 34 }
a$ { a } , $ { a } 1 0 , 0 $ { - 1 * n * . 15 } , $ { 1 * i * . 33 }
a$ { a } , $ { a } 1 0 , 0 $ { - 1 * n * . 25 } , $ { i * . 15 }
a$ { a } , $ { a } 1 0 , 0 $ { - 1 * n * . 25 } , 0
a$ { a } , $ { a } 1 0 , 0 $ { - 1 * n * . 25 } , 0
a$ { a } , $ { a } 1 0 , 0 $ { - 1 * n * . 25 } , $ { - 1 * i * . 15 }
a$ { a } , $ { a } 1 0 , 0 $ { - 1 * n * . 1 } , $ { - 1 * i * . 33 }
a$ { a * . 8 } , $ { a * . 8 } 1 0 , 0 0 , $ { - 1 * i * . 34 }
a$ { a } , $ { a } 1 0 , 0 $ { n * . 1 } , $ { - 1 * i * . 33 }
H0 V0 Z ` )},"bangBkg"),ntt=o(function(t,e,r){e.append("circle").attr("id","node-"+r.id).attr("class","node-bkg node-"+t.type2Str(r.type)).attr("r",r.width/2)},"circleBkg");o(itt,"insertPolygonShape");att=o(function(t,e,r){let n=r.height,a=n/4,s=r.width-r.padding+2*a,l=[{x:a,y:0},{x:s-a,y:0},{x:s,y:-n/2},{x:s-a,y:-n},{x:a,y:-n},{x:0,y:-n/2}];itt(e,s,n,l,r)},"hexagonBkg"),stt=o(function(t,e,r){e.append("rect").attr("id","node-"+r.id).attr("class","node-bkg node-"+t.type2Str(r.type)).attr("height",r.height).attr("rx",r.padding).attr("ry",r.padding).attr("width",r.width)},"roundedRectBkg"),A1e=o(async function(t,e,r,n,i){let a=i.htmlLabels,s=n%(Zet-1),l=e.append("g");r.section=s;let u="section-"+s;s<0&&(u+=" section-root"),l.attr("class",(r.class?r.class+" ":"")+"mindmap-node "+u);let h=l.append("g"),f=l.append("g"),d=r.descr.replace(/(<br \/ *>)/g, `
` );await Li(f,d,{useHtmlLabels:a,width:r.width,classes:"mindmap-node-label"},i),a||f.attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle");let p=f.node().getBBox(),[m]=Ho(i.fontSize);if(r.height=p.height+m*1.1*.5+r.padding,r.width=p.width+2*r.padding,r.icon)if(r.type===t.nodeType.CIRCLE)r.height+=50,r.width+=50,l.append("foreignObject").attr("height","50px").attr("width",r.width).attr("style","text-align: center;").append("div").attr("class","icon-container").append("i").attr("class","node-icon-"+s+" "+r.icon),f.attr("transform","translate("+r.width/2+", "+(r.height/2-1.5*r.padding)+")");else{r.width+=50;let g=r.height;r.height=Math.max(g,60);let y=Math.abs(r.height-g);l.append("foreignObject").attr("width","60px").attr("height",r.height).attr("style","text-align: center;margin-top:"+y/2+"px;").append("div").attr("class","icon-container").append("i").attr("class","node-icon-"+s+" "+r.icon),f.attr("transform","translate("+(25+r.width/2)+", "+(y/2+r.padding/2)+")")}else if(a){let g=(r.width-p.width)/2,y=(r.height-p.height)/2;f.attr("transform","translate("+g+", "+y+")")}else{let g=r.width/2,y=r.padding/2;f.attr("transform","translate("+g+", "+y+")")}switch(r.type){case t.nodeType.DEFAULT:Jet(t,h,r,s);break;case t.nodeType.ROUNDED_RECT:stt(t,h,r,s);break;case t.nodeType.RECT:ett(t,h,r,s);break;case t.nodeType.CIRCLE:h.attr("transform","translate("+r.width/2+", "+ +r.height/2+")"),ntt(t,h,r,s);break;case t.nodeType.CLOUD:ttt(t,h,r,s);break;case t.nodeType.BANG:rtt(t,h,r,s);break;case t.nodeType.HEXAGON:att(t,h,r,s);break}return t.setElementForId(r.id,l),r.height},"drawNode"),_1e=o(function(t,e){let r=t.getElementById(e.id),n=e.x||0,i=e.y||0;r.attr("transform","translate("+n+","+i+")")},"positionNode")});async function N1e(t,e,r,n,i){await A1e(t,e,r,n,i),r.children&&await Promise.all(r.children.map((a,s)=>N1e(t,e,a,n<0?s:n,i)))}function ott(t,e){e.edges().map((r,n)=>{let i=r.data();if(r[0]._private.bodyBounds){let a=r[0]._private.rscratch;Y.trace("Edge: ",n,i),t.insert("path").attr("d", ` M $ { a . startX } , $ { a . startY } L $ { a . midX } , $ { a . midY } L$ { a . endX } , $ { a . endY } ` ).attr("class","edge section-edge-"+i.section+" edge-depth-"+i.depth)}})}function R1e(t,e,r,n){e.add({group:"nodes",data:{id:t.id.toString(),labelText:t.descr,height:t.height,width:t.width,level:n,nodeId:t.id,padding:t.padding,type:t.type},position:{x:t.x,y:t.y}}),t.children&&t.children.forEach(i=>{R1e(i,e,r,n+1),e.add({group:"edges",data:{id: ` $ { t . id } _$ { i . id } ` ,source:t.id,target:i.id,depth:n,section:i.section}})})}function ltt(t,e){return new Promise(r=>{let n=Ve("body").append("div").attr("id","cy").attr("style","display:none"),i=fl({container:document.getElementById("cy"),style:[{selector:"edge",style:{"curve-style":"bezier"}}]});n.remove(),R1e(t,i,e,0),i.nodes().forEach(function(a){a.layoutDimensions=()=>{let s=a.data();return{w:s.width,h:s.height}}}),i.layout({name:"cose-bilkent",quality:"proof",styleEnabled:!1,animate:!1}).run(),i.ready(a=>{Y.info("Ready",a),r(i)})})}function ctt(t,e){e.nodes().map((r,n)=>{let i=r.data();i.x=r.position().x,i.y=r.position().y,_1e(t,i);let a=t.getElementById(i.nodeId);Y.info("Id:",n,"Position: (",r.position().x,", ",r.position().y,")",i),a.attr("transform", ` translate ( $ { r . position ( ) . x - i . width / 2 } , $ { r . position ( ) . y - i . height / 2 } ) ` ),a.attr("attr", ` apa - $ { n } ) ` )})}var D1e,utt,M1e,I1e=M(()=>{"use strict";SB();D1e=Ji(C1e(),1);pr();Vt();ut();eh();ai();L1e();bs();fl.use(D1e.default);o(N1e,"drawNodes");o(ott,"drawEdges");o(R1e,"addNodes");o(ltt,"layoutMindmap");o(ctt,"positionNodes");utt=o(async(t,e,r,n)=>{Y.debug( ` Rendering mindmap diagram
` +t);let i=n.db,a=i.getMindmap();if(!a)return;let s=pe();s.htmlLabels=!1;let l=Va(e),u=l.append("g");u.attr("class","mindmap-edges");let h=l.append("g");h.attr("class","mindmap-nodes"),await N1e(i,h,a,-1,s);let f=await ltt(a,s);ott(u,f),ctt(i,f),Io(void 0,l,s.mindmap?.padding??ur.mindmap.padding,s.mindmap?.useMaxWidth??ur.mindmap.useMaxWidth)},"draw"),M1e={draw:utt}});var htt,ftt,O1e,P1e=M(()=>{"use strict";Lo();htt=o(t=>{let e="";for(let r=0;r<t.THEME_COLOR_LIMIT;r++)t["lineColor"+r]=t["lineColor"+r]||t["cScaleInv"+r],fa(t["lineColor"+r])?t["lineColor"+r]=_t(t["lineColor"+r],20):t["lineColor"+r]=It(t["lineColor"+r],20);for(let r=0;r<t.THEME_COLOR_LIMIT;r++){let n=""+(17-3*r);e+= `
. section - $ { r - 1 } rect , . section - $ { r - 1 } path , . section - $ { r - 1 } circle , . section - $ { r - 1 } polygon , . section - $ { r - 1 } path {
fill : $ { t [ "cScale" + r ] } ;
2023-09-19 12:31:17 +02:00
}
2024-11-13 12:07:54 +02:00
. section - $ { r - 1 } text {
fill : $ { t [ "cScaleLabel" + r ] } ;
2023-09-19 12:31:17 +02:00
}
2024-11-13 12:07:54 +02:00
. node - icon - $ { r - 1 } {
2023-09-19 12:31:17 +02:00
font - size : 40 px ;
2024-11-13 12:07:54 +02:00
color : $ { t [ "cScaleLabel" + r ] } ;
2023-09-19 12:31:17 +02:00
}
2024-11-13 12:07:54 +02:00
. section - edge - $ { r - 1 } {
stroke : $ { t [ "cScale" + r ] } ;
2023-09-19 12:31:17 +02:00
}
2024-11-13 12:07:54 +02:00
. edge - depth - $ { r - 1 } {
stroke - width : $ { n } ;
2023-09-19 12:31:17 +02:00
}
2024-11-13 12:07:54 +02:00
. section - $ { r - 1 } line {
stroke : $ { t [ "cScaleInv" + r ] } ;
2023-09-19 12:31:17 +02:00
stroke - width : 3 ;
}
. disabled , . disabled circle , . disabled text {
fill : lightgray ;
}
. disabled text {
fill : # efefef ;
}
2024-11-13 12:07:54 +02:00
` }return e},"genSections"),ftt=o(t=> `
2023-09-19 12:31:17 +02:00
. edge {
2022-11-24 01:08:27 +02:00
stroke - width : 3 ;
}
2024-11-13 12:07:54 +02:00
$ { htt ( t ) }
. section - root rect , . section - root path , . section - root circle , . section - root polygon {
fill : $ { t . git0 } ;
2022-11-24 01:08:27 +02:00
}
2023-09-19 12:31:17 +02:00
. section - root text {
2024-11-13 12:07:54 +02:00
fill : $ { t . gitBranchLabel0 } ;
2022-11-24 01:08:27 +02:00
}
2023-09-19 12:31:17 +02:00
. icon - container {
height : 100 % ;
display : flex ;
justify - content : center ;
align - items : center ;
}
. edge {
fill : none ;
}
2024-11-13 12:07:54 +02:00
. mindmap - node - label {
dy : 1 em ;
alignment - baseline : middle ;
text - anchor : middle ;
dominant - baseline : middle ;
text - align : center ;
2023-09-19 12:31:17 +02:00
}
2024-11-13 12:07:54 +02:00
` ,"getStyles"),O1e=ftt});var B1e={};vr(B1e,{diagram:()=>dtt});var dtt,F1e=M(()=>{"use strict";kpe();Cpe();I1e();P1e();dtt={db:Spe,renderer:M1e,parser:Tpe,styles:O1e}});var NB, $ 1e,V1e=M(()=>{"use strict";NB=function(){var t=o(function(L,S,A,I){for(A=A||{},I=L.length;I--;A[L[I]]=S);return A},"o"),e=[1,4],r=[1,13],n=[1,12],i=[1,15],a=[1,16],s=[1,20],l=[1,19],u=[6,7,8],h=[1,26],f=[1,24],d=[1,25],p=[6,7,11],m=[1,31],g=[6,7,11,24],y=[1,6,13,16,17,20,23],v=[1,35],x=[1,36],b=[1,6,7,11,13,16,17,20,23],w=[1,38],_={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,KANBAN:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,shapeData:15,ICON:16,CLASS:17,nodeWithId:18,nodeWithoutId:19,NODE_DSTART:20,NODE_DESCR:21,NODE_DEND:22,NODE_ID:23,SHAPE_DATA:24, $ accept:0, $ end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"KANBAN",11:"EOF",13:"SPACELIST",16:"ICON",17:"CLASS",20:"NODE_DSTART",21:"NODE_DESCR",22:"NODE_DEND",23:"NODE_ID",24:"SHAPE_DATA"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,3],[12,2],[12,2],[12,2],[12,1],[12,2],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[19,3],[18,1],[18,4],[15,2],[15,1]],performAction:o(function(S,A,I,D,k,R,C){var O=R.length-1;switch(k){case 6:case 7:return D;case 8:D.getLogger().trace("Stop NL ");break;case 9:D.getLogger().trace("Stop EOF ");break;case 11:D.getLogger().trace("Stop NL2 ");break;case 12:D.getLogger().trace("Stop EOF2 ");break;case 15:D.getLogger().info("Node: ",R[O-1].id),D.addNode(R[O-2].length,R[O-1].id,R[O-1].descr,R[O-1].type,R[O]);break;case 16:D.getLogger().info("Node: ",R[O].id),D.addNode(R[O-1].length,R[O].id,R[O].descr,R[O].type);break;case 17:D.getLogger().trace("Icon: ",R[O]),D.decorateNode({icon:R[O]});break;case 18:case 23:D.decorateNode({class:R[O]});break;case 19:D.getLogger().trace("SPACELIST");break;case 20:D.getLogger().trace("Node: ",R[O-1].id),D.addNode(0,R[O-1].id,R[O-1].descr,R[O-1].type,R[O]);break;case 21:D.getLogger().trace("Node: ",R[O].id),D.addNode(0,R[O].id,R[O].descr,R[O].type);break;case 22:D.decorateNode({icon:R[O]});break;case 27:D.getLogger().trace("node found ..",R[O-2]),this. $ ={id:R[O-1],descr:R[O-1],type:D.getType(R[O-2],R[O])};break;case 28:this. $ ={id:R[O],descr:R[O],type:0};break;case 29:D.getLogger().trace("node found ..",R[O-3]),this. $ ={id:R[O-3],descr:R[O-1],type:D.getType(R[O-2],R[O])};break;case 30:this. $ =R[O-1]+R[O];break;case 31:this. $ =R[O];break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:e},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:e},{6:r,7:[1,10],9:9,12:11,13:n,14:14,16:i,17:a,18:17,19:18,20:s,23:l},t(u,[2,3]),{1:[2,2]},t(u,[2,4]),t(u,[2,5]),{1:[2,6],6:r,12:21,13:n,14:14,16:i,17:a,18:17,19:18,20:s,23:l},{6:r,9:22,12:11,13:n,14:14,16:i,17:a,18:17,19:18,20:s,23:l},{6:h,7:f,10:23,11:d},t(p,[2,24],{18:17,19:18,14:27,16:[1,28],17:[1,29],20:s,23:l}),t(p,[2,19]),t(p,[2,21],{15:30,24:m}),t(p,[2,22]),t(p,[2,23]),t(g,[2,25]),t(g,[2,26]),t(g,[2,28],{20:[1,32]}),{21:[1,33]},{6:h,7:f,10:34,11:d},{1:[2,7],6:r,12:21,13:n,14:14,16:i,17:a,18:17,19:18,20:s,23:l},t(y,[2,14],{7:v,11:x}),t(b,[2,8]),t(b,[2,9]),t(b,[2,10]),t(p,[2,16],{15:37,24:m}),t(p,[2,17]),t(p,[2,18]),t(p,[2,20],{24:w}),t(g,[2,31]),{21:[1,39]},{22:[1,40]},t(y,[2,13],{7:v,11:x}),t(b,[2,11]),t(b,[2,12]),t(p,[2,15],{24:w}),t(g,[2,30]),{22:[1,41]},t(g,[2,27]),t(g,[2,29])],defaultActions:{2:[2,1],6:[2,2]},parseError:o(function(S,A){if(A.recoverable)this.trace(S);else{var I=new Error(S);throw I.hash=A,I}},"parseError"),parse:o(function(S){var A=this,I=[0],D=[],k=[null],R=[],C=this.table,O="",N=0,P=0,F=0,B=2,G=1,z=R.slice.call(arguments,1),W=Object.create(this.lexer),Z={yy:{}};for(var j in this.yy)Object.prototype.hasOwnProperty.call(this.yy,j)&&(Z.yy[j]=this.yy[j]);W.setInput(S,Z.yy),Z.yy.lexer=W,Z.yy.parser=this,typeof W.yylloc>"u"&&(W.yylloc={});var oe=W.yylloc;R.push(oe);var K=W.options&&W.options.ranges;typeof Z.yy.parseError=="function"?this.parseError=Z.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ee(Pe){I.length=I.length-2*Pe,k.length=k
` +W.showPosition()+ `
Expecting ` +Re.join(", ")+", got '"+(this.terminals_[H]||H)+"'":Ce="Parse error on line "+(N+1)+": Unexpected "+(H==G?"end of input":"'"+(this.terminals_[H]||H)+"'"),this.parseError(Ce,{text:W.match,token:this.terminals_[H]||H,line:W.yylineno,loc:oe,expected:Re})}if(ae[0]instanceof Array&&ae.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Q+", token: "+H);switch(ae[0]){case 1:I.push(H),k.push(W.yytext),R.push(W.yylloc),I.push(ae[1]),H=null,q?(H=q,q=null):(P=W.yyleng,O=W.yytext,N=W.yylineno,oe=W.yylloc,F>0&&F--);break;case 2:if(se=this.productions_[ae[1]][1],te. $ =k[k.length-se],te._ $ ={first_line:R[R.length-(se||1)].first_line,last_line:R[R.length-1].last_line,first_column:R[R.length-(se||1)].first_column,last_column:R[R.length-1].last_column},K&&(te._ $ .range=[R[R.length-(se||1)].range[0],R[R.length-1].range[1]]),ce=this.performAction.apply(te,[O,P,N,Z.yy,ae[1],k,R].concat(z)),typeof ce<"u")return ce;se&&(I=I.slice(0,-1*se*2),k=k.slice(0,-1*se),R=R.slice(0,-1*se)),I.push(this.productions_[ae[1]][0]),k.push(te. $ ),R.push(te._ $ ),ke=C[I[I.length-2]][I[I.length-1]],I.push(ke);break;case 3:return!0}}return!0},"parse")},T=function(){var L={EOF:1,parseError:o(function(A,I){if(this.yy.parser)this.yy.parser.parseError(A,I);else throw new Error(A)},"parseError"),setInput:o(function(S,A){return this.yy=A||this.yy||{},this._input=S,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:o(function(){var S=this._input[0];this.yytext+=S,this.yyleng++,this.offset++,this.match+=S,this.matched+=S;var A=S.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),S},"input"),unput:o(function(S){var A=S.length,I=S.split(/(?: \r \n ?| \n )/g);this._input=S+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-A),this.offset-=A;var D=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),I.length-1&&(this.yylineno-=I.length-1);var k=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:I?(I.length===D.length?this.yylloc.first_column:0)+D[D.length-I.length].length-I[0].length:this.yylloc.first_column-A},this.options.ranges&&(this.yylloc.range=[k[0],k[0]+this.yyleng-A]),this.yyleng=this.yytext.length,this},"unput"),more:o(function(){return this._more=!0,this},"more"),reject:o(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+ ` . You can only invoke reject ( ) in the lexer when the lexer is of the backtracking persuasion ( options . backtrack _lexer = true ) .
` +this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:o(function(S){this.unput(this.match.slice(S))},"less"),pastInput:o(function(){var S=this.matched.substr(0,this.matched.length-this.match.length);return(S.length>20?"...":"")+S.substr(-20).replace(/ \n /g,"")},"pastInput"),upcomingInput:o(function(){var S=this.match;return S.length<20&&(S+=this._input.substr(0,20-S.length)),(S.substr(0,20)+(S.length>20?"...":"")).replace(/ \n /g,"")},"upcomingInput"),showPosition:o(function(){var S=this.pastInput(),A=new Array(S.length+1).join("-");return S+this.upcomingInput()+ `
` +A+"^"},"showPosition"),test_match:o(function(S,A){var I,D,k;if(this.options.backtrack_lexer&&(k={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(k.yylloc.range=this.yylloc.range.slice(0))),D=S[0].match(/(?: \r \n ?| \n ).*/g),D&&(this.yylineno+=D.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:D?D[D.length-1].length-D[D.length-1].match(/ \r ? \n ?/)[0].length:this.yylloc.last_column+S[0].length},this.yytext+=S[0],this.match+=S[0],this.matches=S,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(S[0].length),this.matched+=S[0],I=this.performAction.call(this,this.yy,this,A,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),I)return I;if(this._backtrack){for(var R in k)this[R]=k[R];return!1}return!1},"test_match"),next:o(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var S,A,I,D;this._more||(this.yytext="",this.match="");for(var k=this._currentRules(),R=0;R<k.length;R++)if(I=this._input.match(this.rules[k[R]]),I&&(!A||I[0].length>A[0].length)){if(A=I,D=R,this.options.backtrack_lexer){if(S=this.test_match(I,k[R]),S!==!1)return S;if(this._backtrack){A=!1;continue}else return!1}else if(!this.options.flex)break}return A?(S=this.test_match(A,k[D]),S!==!1?S:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+ ` . Unrecognized text .
` +this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:o(function(){var A=this.next();return A||this.lex()},"lex"),begin:o(function(A){this.conditionStack.push(A)},"begin"),popState:o(function(){var A=this.conditionStack.length-1;return A>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:o(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:o(function(A){return A=this.conditionStack.length-1-Math.abs(A||0),A>=0?this.conditionStack[A]:"INITIAL"},"topState"),pushState:o(function(A){this.begin(A)},"pushState"),stateStackSize:o(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:o(function(A,I,D,k){var R=k;switch(D){case 0:return this.pushState("shapeData"),I.yytext="",24;break;case 1:return this.pushState("shapeDataStr"),24;break;case 2:return this.popState(),24;break;case 3:let C=/ \n \s */g;return I.yytext=I.yytext.replace(C,"<br/>"),24;break;case 4:return 24;case 5:this.popState();break;case 6:return A.getLogger().trace("Found comment",I.yytext),6;break;case 7:return 8;case 8:this.begin("CLASS");break;case 9:return this.popState(),17;break;case 10:this.popState();break;case 11:A.getLogger().trace("Begin icon"),this.begin("ICON");break;case 12:return A.getLogger().trace("SPACELINE"),6;break;case 13:return 7;case 14:return 16;case 15:A.getLogger().trace("end icon"),this.popState();break;case 16:return A.getLogger().trace("Exploding node"),this.begin("NODE"),20;break;case 17:return A.getLogger().trace("Cloud"),this.begin("NODE"),20;break;case 18:return A.getLogger().trace("Explosion Bang"),this.begin("NODE"),20;break;case 19:return A.getLogger().trace("Cloud Bang"),this.begin("NODE"),20;break;case 20:return this.begin("NODE"),20;break;case 21:return this.begin("NODE"),20;break;case 22:return this.begin("NODE"),20;break;case 23:return this.begin("NODE"),20;break;case 24:return 13;case 25:return 23;case 26:return 11;case 27:this.begin("NSTR2");break;case 28:return"NODE_DESCR";case 29:this.popState();break;case 30:A.getLogger().trace("Starting NSTR"),this.begin("NSTR");break;case 31:return A.getLogger().trace("description:",I.yytext),"NODE_DESCR";break;case 32:this.popState();break;case 33:return this.popState(),A.getLogger().trace("node end ))"),"NODE_DEND";break;case 34:return this.popState(),A.getLogger().trace("node end )"),"NODE_DEND";break;case 35:return this.popState(),A.getLogger().trace("node end ...",I.yytext),"NODE_DEND";break;case 36:return this.popState(),A.getLogger().trace("node end (("),"NODE_DEND";break;case 37:return this.popState(),A.getLogger().trace("node end (-"),"NODE_DEND";break;case 38:return this.popState(),A.getLogger().trace("node end (-"),"NODE_DEND";break;case 39:return this.popState(),A.getLogger().trace("node end (("),"NODE_DEND";break;case 40:return this.popState(),A.getLogger().trace("node end (("),"NODE_DEND";break;case 41:return A.getLogger().trace("Long description:",I.yytext),21;break;case 42:return A.getLogger().trace("Long description:",I.yytext),21;break}},"anonymous"),rules:[/^(?:@ \{ )/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^ \" ]+)/i,/^(?:[^}^"]+)/i,/^(?: \} )/i,/^(?: \s *%%.*)/i,/^(?:kanban \b )/i,/^(?::::)/i,/^(?:.+)/i,/^(?: \n )/i,/^(?:::icon \( )/i,/^(?:[ \s ]+[ \n ])/i,/^(?:[ \n ]+)/i,/^(?:[^ \) ]+)/i,/^(?: \) )/i,/^(?:- \) )/i,/^(?: \( -)/i,/^(?: \) \) )/i,/^(?: \) )/i,/^(?: \( \( )/i,/^(?: \{ \{ )/i,/^(?: \( )/i,/^(?: \[ )/i,/^(?:[ \s ]+)/i,/^(?:[^ \( \[ \n \) \{ \} @]+)/i,/^(?: $ )/i,/^(?:["][ ` ] ) / i , /^(?:[^`"]+)/i , /^(?:[`]["])/i , /^(?:["])/i , /^(?:[^"]+)/i , /^(?:["])/i , /^(?:[\)]\))/i , /^(?:[\)])/i , /^(?:[\]])/i , /^(?:\}\})/i , /^(?:\(-)/i , /^(?:-\))/i , /^(?:\(\()/i , /^(?:\()/i , /^(?:[^\)\]\(\}]+)/i , /^(?:.+(?!\(\())/i ] , conditions : { shapeDataEndBracket : { rules : [ ] , inclusive : ! 1 } , shapeDataStr : { rules : [ 2 , 3 ] , inclusive : ! 1 } , shapeData : { rules : [ 1 , 4 , 5 ] , inclusive : ! 1 } , CLASS : { rules : [ 9 , 10 ] , inclusive : ! 1 } , ICON : { rules : [ 14 , 15 ] , inclusive : ! 1 } , NSTR2 : { rules : [ 28 , 29 ] , inclusive : ! 1 } , NSTR : { rules : [ 31 , 32 ] , inc
` )?h=i+ `
` :h= ` {
` +i+ `
} ` ;let f=Sm(h,{schema:Em});if(f.shape&&(f.shape!==f.shape.toLowerCase()||f.shape.includes("_")))throw new Error( ` No such shape : $ { f . shape } . Shape names should be lowercase . ` );f?.shape&&f.shape==="kanbanItem"&&(l.shape=f?.shape),f?.label&&(l.label=f?.label),f?.icon&&(l.icon=f?.icon),f?.assigned&&(l.assigned=f?.assigned),f?.ticket&&(l.ticket=f?.ticket),f?.priority&&(l.priority=f?.priority)}let u=vtt(t);u?l.parentId=u.id||"kbn"+RB++:MB.push(l),dl.push(l)},"addNode"),Zi={DEFAULT:0,NO_BORDER:0,ROUNDED_RECT:1,RECT:2,CIRCLE:3,CLOUD:4,BANG:5,HEXAGON:6},wtt=o((t,e)=>{switch(Y.debug("In get type",t,e),t){case"[":return Zi.RECT;case"(":return e===")"?Zi.ROUNDED_RECT:Zi.CLOUD;case"((":return Zi.CIRCLE;case")":return Zi.CLOUD;case"))":return Zi.BANG;case"{{":return Zi.HEXAGON;default:return Zi.DEFAULT}},"getType"),Ttt=o((t,e)=>{IB[t]=e},"setElementForId"),ktt=o(t=>{if(!t)return;let e=pe(),r=dl[dl.length-1];t.icon&&(r.icon=kr(t.icon,e)),t.class&&(r.cssClasses=kr(t.class,e))},"decorateNode"),Ett=o(t=>{switch(t){case Zi.DEFAULT:return"no-border";case Zi.RECT:return"rect";case Zi.ROUNDED_RECT:return"rounded-rect";case Zi.CIRCLE:return"circle";case Zi.CLOUD:return"cloud";case Zi.BANG:return"bang";case Zi.HEXAGON:return"hexgon";default:return"no-border"}},"type2Str"),Stt=o(()=>Y,"getLogger"),Ctt=o(t=>IB[t],"getElementById"),Att={clear:ytt,addNode:btt,getSections:U1e,getData:xtt,nodeType:Zi,getType:wtt,setElementForId:Ttt,decorateNode:ktt,type2Str:Ett,getLogger:Stt,getElementById:Ctt},H1e=Att});var _tt,Y1e,q1e=M(()=>{"use strict";Vt();ut();eh();ai();bs();lw();vw();_tt=o(async(t,e,r,n)=>{Y.debug( ` Rendering kanban diagram
` +t);let a=n.db.getData(),s=pe();s.htmlLabels=!1;let l=Va(e),u=l.append("g");u.attr("class","sections");let h=l.append("g");h.attr("class","items");let f=a.nodes.filter(v=>v.isGroup),d=0,p=10,m=[],g=25;for(let v of f){let x=s?.kanban?.sectionWidth||200;d=d+1,v.x=x*d+(d-1)*p/2,v.width=x,v.y=0,v.height=x*3,v.rx=5,v.ry=5,v.cssClasses=v.cssClasses+" section-"+d;let b=await _m(u,v);g=Math.max(g,b?.labelBBox?.height),m.push(b)}let y=0;for(let v of f){let x=m[y];y=y+1;let b=s?.kanban?.sectionWidth||200,w=-b*3/2+g,_=w,T=a.nodes.filter(S=>S.parentId===v.id);for(let S of T){if(S.isGroup)throw new Error("Groups within groups are not allowed in Kanban diagrams");S.x=v.x,S.width=b-1.5*p;let I=(await Lm(h,S,{config:s})).node().getBBox();S.y=_+I.height/2,await Uv(S),_=S.y+I.height/2+p/2}let E=x.cluster.select("rect"),L=Math.max(_-w+3*p,50)+(g-25);E.attr("height",L)}Io(void 0,l,s.mindmap?.padding??ur.kanban.padding,s.mindmap?.useMaxWidth??ur.kanban.useMaxWidth)},"draw"),Y1e={draw:_tt}});var Ltt,Dtt,X1e,j1e=M(()=>{"use strict";Lo();Ltt=o(t=>{let e="";for(let n=0;n<t.THEME_COLOR_LIMIT;n++)t["lineColor"+n]=t["lineColor"+n]||t["cScaleInv"+n],fa(t["lineColor"+n])?t["lineColor"+n]=_t(t["lineColor"+n],20):t["lineColor"+n]=It(t["lineColor"+n],20);let r=o((n,i)=>t.darkMode?It(n,i):_t(n,i),"adjuster");for(let n=0;n<t.THEME_COLOR_LIMIT;n++){let i=""+(17-3*n);e+= `
. section - $ { n - 1 } rect , . section - $ { n - 1 } path , . section - $ { n - 1 } circle , . section - $ { n - 1 } polygon , . section - $ { n - 1 } path {
fill : $ { r ( t [ "cScale" + n ] , 10 ) } ;
stroke : $ { r ( t [ "cScale" + n ] , 10 ) } ;
2023-09-19 12:31:17 +02:00
}
2024-11-13 12:07:54 +02:00
. section - $ { n - 1 } text {
fill : $ { t [ "cScaleLabel" + n ] } ;
2023-09-19 12:31:17 +02:00
}
2024-11-13 12:07:54 +02:00
. node - icon - $ { n - 1 } {
2023-09-19 12:31:17 +02:00
font - size : 40 px ;
2024-11-13 12:07:54 +02:00
color : $ { t [ "cScaleLabel" + n ] } ;
2023-09-19 12:31:17 +02:00
}
2024-11-13 12:07:54 +02:00
. section - edge - $ { n - 1 } {
stroke : $ { t [ "cScale" + n ] } ;
2023-09-19 12:31:17 +02:00
}
2024-11-13 12:07:54 +02:00
. edge - depth - $ { n - 1 } {
stroke - width : $ { i } ;
2023-09-19 12:31:17 +02:00
}
2024-11-13 12:07:54 +02:00
. section - $ { n - 1 } line {
stroke : $ { t [ "cScaleInv" + n ] } ;
2023-09-19 12:31:17 +02:00
stroke - width : 3 ;
}
2022-11-24 01:08:27 +02:00
2023-09-19 12:31:17 +02:00
. disabled , . disabled circle , . disabled text {
fill : lightgray ;
}
. disabled text {
fill : # efefef ;
}
2024-11-13 12:07:54 +02:00
. node rect ,
. node circle ,
. node ellipse ,
. node polygon ,
. node path {
fill : $ { t . background } ;
stroke : $ { t . nodeBorder } ;
stroke - width : 1 px ;
}
. kanban - ticket - link {
fill : $ { t . background } ;
stroke : $ { t . nodeBorder } ;
text - decoration : underline ;
}
` }return e},"genSections"),Dtt=o(t=> `
2023-09-19 12:31:17 +02:00
. edge {
stroke - width : 3 ;
2022-11-24 01:08:27 +02:00
}
2024-11-13 12:07:54 +02:00
$ { Ltt ( t ) }
2023-09-19 12:31:17 +02:00
. section - root rect , . section - root path , . section - root circle , . section - root polygon {
2024-11-13 12:07:54 +02:00
fill : $ { t . git0 } ;
2023-09-19 12:31:17 +02:00
}
. section - root text {
2024-11-13 12:07:54 +02:00
fill : $ { t . gitBranchLabel0 } ;
2023-09-19 12:31:17 +02:00
}
. icon - container {
height : 100 % ;
display : flex ;
justify - content : center ;
align - items : center ;
}
. edge {
fill : none ;
}
2024-11-13 12:07:54 +02:00
. cluster - label , . label {
color : $ { t . textColor } ;
fill : $ { t . textColor } ;
}
. kanban - label {
2023-09-19 12:31:17 +02:00
dy : 1 em ;
alignment - baseline : middle ;
text - anchor : middle ;
dominant - baseline : middle ;
text - align : center ;
}
2024-11-13 12:07:54 +02:00
` ,"getStyles"),X1e=Dtt});var K1e={};vr(K1e,{diagram:()=>Ntt});var Ntt,Q1e=M(()=>{"use strict";V1e();W1e();q1e();j1e();Ntt={db:H1e,renderer:Y1e,parser: $ 1e,styles:X1e}});var OB,Sb,eye=M(()=>{"use strict";OB=function(){var t=o(function(l,u,h,f){for(h=h||{},f=l.length;f--;h[l[f]]=u);return h},"o"),e=[1,9],r=[1,10],n=[1,5,10,12],i={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SANKEY:4,NEWLINE:5,csv:6,opt_eof:7,record:8,csv_tail:9,EOF:10,"field[source]":11,COMMA:12,"field[target]":13,"field[value]":14,field:15,escaped:16,non_escaped:17,DQUOTE:18,ESCAPED_TEXT:19,NON_ESCAPED_TEXT:20, $ accept:0, $ end:1},terminals_:{2:"error",4:"SANKEY",5:"NEWLINE",10:"EOF",11:"field[source]",12:"COMMA",13:"field[target]",14:"field[value]",18:"DQUOTE",19:"ESCAPED_TEXT",20:"NON_ESCAPED_TEXT"},productions_:[0,[3,4],[6,2],[9,2],[9,0],[7,1],[7,0],[8,5],[15,1],[15,1],[16,3],[17,1]],performAction:o(function(u,h,f,d,p,m,g){var y=m.length-1;switch(p){case 7:let v=d.findOrCreateNode(m[y-4].trim().replaceAll('""','"')),x=d.findOrCreateNode(m[y-2].trim().replaceAll('""','"')),b=parseFloat(m[y].trim());d.addLink(v,x,b);break;case 8:case 9:case 11:this. $ =m[y];break;case 10:this. $ =m[y-1];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},{5:[1,3]},{6:4,8:5,15:6,16:7,17:8,18:e,20:r},{1:[2,6],7:11,10:[1,12]},t(r,[2,4],{9:13,5:[1,14]}),{12:[1,15]},t(n,[2,8]),t(n,[2,9]),{19:[1,16]},t(n,[2,11]),{1:[2,1]},{1:[2,5]},t(r,[2,2]),{6:17,8:5,15:6,16:7,17:8,18:e,20:r},{15:18,16:7,17:8,18:e,20:r},{18:[1,19]},t(r,[2,3]),{12:[1,20]},t(n,[2,10]),{15:21,16:7,17:8,18:e,20:r},t([1,5,10],[2,7])],defaultActions:{11:[2,1],12:[2,5]},parseError:o(function(u,h){if(h.recoverable)this.trace(u);else{var f=new Error(u);throw f.hash=h,f}},"parseError"),parse:o(function(u){var h=this,f=[0],d=[],p=[null],m=[],g=this.table,y="",v=0,x=0,b=0,w=2,_=1,T=m.slice.call(arguments,1),E=Object.create(this.lexer),L={yy:{}};for(var S in this.yy)Object.prototype.hasOwnProperty.call(this.yy,S)&&(L.yy[S]=this.yy[S]);E.setInput(u,L.yy),L.yy.lexer=E,L.yy.parser=this,typeof E.yylloc>"u"&&(E.yylloc={});var A=E.yylloc;m.push(A);var I=E.options&&E.options.ranges;typeof L.yy.parseError=="function"?this.parseError=L.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function D(oe){f.length=f.length-2*oe,p.length=p.length-oe,m.length=m.length-oe}o(D,"popStack");function k(){var oe;return oe=d.pop()||E.lex()||_,typeof oe!="number"&&(oe instanceof Array&&(d=oe,oe=d.pop()),oe=h.symbols_[oe]||oe),oe}o(k,"lex");for(var R,C,O,N,P,F,B={},G,z,W,Z;;){if(O=f[f.length-1],this.defaultActions[O]?N=this.defaultActions[O]:((R===null||typeof R>"u")&&(R=k()),N=g[O]&&g[O][R]),typeof N>"u"||!N.length||!N[0]){var j="";Z=[];for(G in g[O])this.terminals_[G]&&G>w&&Z.push("'"+this.terminals_[G]+"'");E.showPosition?j="Parse error on line "+(v+1)+ ` :
` +E.showPosition()+ `
Expecting ` +Z.join(", ")+", got '"+(this.terminals_[R]||R)+"'":j="Parse error on line "+(v+1)+": Unexpected "+(R==_?"end of input":"'"+(this.terminals_[R]||R)+"'"),this.parseError(j,{text:E.match,token:this.terminals_[R]||R,line:E.yylineno,loc:A,expected:Z})}if(N[0]instanceof Array&&N.length>1)throw new Error("Parse Error: multiple actions possible at state: "+O+", token: "+R);switch(N[0]){case 1:f.push(R),p.push(E.yytext),m.push(E.yylloc),f.push(N[1]),R=null,C?(R=C,C=null):(x=E.yyleng,y=E.yytext,v=E.yylineno,A=E.yylloc,b>0&&b--);break;case 2:if(z=this.productions_[N[1]][1],B. $ =p[p.length-z],B._ $ ={first_line:m[m.length-(z||1)].first_line,last_line:m[m.length-1].last_line,first_column:m[m.length-(z||1)].first_column,last_column:m[m.length-1].last_column},I&&(B._ $ .range=[m[m.length-(z||1)].range[0],m[m.length-1].range[1]]),F=this.performAction.apply(B,[y,x,v,L.yy,N[1],p,m].concat(T)),typeof F<"u")return F;z&&(f=f.slice(0,-1*z*2),p=p.slice(0,-1*z),m=m.slice(0,-1*z)),f.push(this.productions_[N[1]][0]),p.push(B. $ ),m.push(B._ $ ),W=g[f[f.length-2]][f[f.length-1]],f.push(W);break;case 3:return!0}}return!0},"parse")},a=function(){var l={EOF:1,parseError:o(function(h,f){if(this.yy.parser)this.yy.parser.parseError(h,f);else throw new Error(h)},"parseError"),setInput:o(function(u,h){return this.yy=h||this.yy||{},this._input=u,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:o(function(){var u=this._input[0];this.yytext+=u,this.yyleng++,this.offset++,this.match+=u,this.matched+=u;var h=u.match(/(?: \r \n ?| \n ).*/g);return h?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),u},"input"),unput:o(function(u){var h=u.length,f=u.split(/(?: \r \n ?| \n )/g);this._input=u+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-h),this.offset-=h;var d=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),f.length-1&&(this.yylineno-=f.length-1);var p=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:f?(f.length===d.length?this.yylloc.first_column:0)+d[d.length-f.length].length-f[0].length:this.yylloc.first_column-h},this.options.ranges&&(this.yylloc.range=[p[0],p[0]+this.yyleng-h]),this.yyleng=this.yytext.length,this},"unput"),more:o(function(){return this._more=!0,this},"more"),reject:o(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+ ` . You can only invoke reject ( ) in the lexer when the lexer is of the backtracking persuasion ( options . backtrack _lexer = true ) .
` +this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:o(function(u){this.unput(this.match.slice(u))},"less"),pastInput:o(function(){var u=this.matched.substr(0,this.matched.length-this.match.length);return(u.length>20?"...":"")+u.substr(-20).replace(/ \n /g,"")},"pastInput"),upcomingInput:o(function(){var u=this.match;return u.length<20&&(u+=this._input.substr(0,20-u.length)),(u.substr(0,20)+(u.length>20?"...":"")).replace(/ \n /g,"")},"upcomingInput"),showPosition:o(function(){var u=this.pastInput(),h=new Array(u.length+1).join("-");return u+this.upcomingInput()+ `
` +h+"^"},"showPosition"),test_match:o(function(u,h){var f,d,p;if(this.options.backtrack_lexer&&(p={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(p.yylloc.range=this.yylloc.range.slice(0))),d=u[0].match(/(?: \r \n ?| \n ).*/g),d&&(this.yylineno+=d.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:d?d[d.length-1].length-d[d.length-1].match(/ \r ? \n ?/)[0].length:this.yylloc.last_column+u[0].length},this.yytext+=u[0],this.match+=u[0],this.matches=u,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(u[0].length),this.matched+=u[0],f=this.performAction.call(this,this.yy,this,h,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),f)return f;if(this._backtrack){for(var m in p)this[m]=p[m];return!1}return!1},"test_match"),next:o(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var u,h,f,d;this._more||(this.yytext="",this.match="");for(var p=this._currentRules(),m=0;m<p.length;m++)if(f=this._input.match(this.rules[p[m]]),f&&(!h||f[0].length>h[0].length)){if(h=f,d=m,this.options.backtrack_lexer){if(u=this.test_match(f,p[m]),u!==!1)return u;if(this._backtrack){h=!1;continue}else return!1}else if(!this.options.flex)break}return h?(u=this.test_match(h,p[d]),u!==!1?u:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+ ` . Unrecognized text .
` +this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:o(function(){var h=this.next();return h||this.lex()},"lex"),begin:o(function(h){this.conditionStack.push(h)},"begin"),popState:o(function(){var h=this.conditionStack.length-1;return h>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:o(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:o(function(h){return h=this.conditionStack.length-1-Math.abs(h||0),h>=0?this.conditionStack[h]:"INITIAL"},"topState"),pushState:o(function(h){this.begin(h)},"pushState"),stateStackSize:o(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:o(function(h,f,d,p){var m=p;switch(d){case 0:return this.pushState("csv"),4;break;case 1:return 10;case 2:return 5;case 3:return 12;case 4:return this.pushState("escaped_text"),18;break;case 5:return 20;case 6:return this.popState("escaped_text"),18;break;case 7:return 19}},"anonymous"),rules:[/^(?:sankey-beta \b )/i,/^(?: $ )/i,/^(?:(( \u 000D \u 000A)|( \u 000A)))/i,/^(?:( \u 002C))/i,/^(?:( \u 0022))/i,/^(?:([ \u 0020- \u 0021 \u 0023- \u 002B \u 002D- \u 007E])*)/i,/^(?:( \u 0022)(?!( \u 0022)))/i,/^(?:(([ \u 0020- \u 0021 \u 0023- \u 002B \u 002D- \u 007E])|( \u 002C)|( \u 000D)|( \u 000A)|( \u 0022)( \u 0022))*)/i],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 l}();i.lexer=a;function s(){this.yy={}}return o(s,"Parser"),s.prototype=i,i.Parser=s,new s}();OB.parser=OB;Sb=OB});var rS,nS,tS,Ott,PB,Ptt,BB,Btt,Ftt,ztt,Gtt,tye,rye=M(()=>{"use strict";Vt();fr();Ai();rS=[],nS=[],tS=new Map,Ott=o(()=>{rS=[],nS=[],tS=new Map,Lr()},"clear"),PB=class{constructor(e,r,n=0){this.source=e;this.target=r;this.value=n}static{o(this,"SankeyLink")}},Ptt=o((t,e,r)=>{rS.push(new PB(t,e,r))},"addLink"),BB=class{constructor(e){this.ID=e}static{o(this,"SankeyNode")}},Btt=o(t=>{t=qe.sanitizeText(t,pe());let e=tS.get(t);return e===void 0&&(e=new BB(t),tS.set(t,e),nS.push(e)),e},"findOrCreateNode"),Ftt=o(()=>nS,"getNodes"),ztt=o(()=>rS,"getLinks"),Gtt=o(()=>({nodes:nS.map(t=>({id:t.ID})),links:rS.map(t=>({source:t.source.ID,target:t.target.ID,value:t.value}))}),"getGraph"),tye={nodesMap:tS,getConfig:o(()=>pe().sankey,"getConfig"),getNodes:Ftt,getLinks:ztt,getGraph:Gtt,addLink:Ptt,findOrCreateNode:Btt,getAccTitle:Br,setAccTitle:Mr,getAccDescription:zr,setAccDescription:Fr,getDiagramTitle:Jr,setDiagramTitle:cn,clear:Ott}});function Cb(t,e){let r;if(e===void 0)for(let n of t)n!=null&&(r<n||r===void 0&&n>=n)&&(r=n);else{let n=-1;for(let i of t)(i=e(i,++n,t))!=null&&(r<i||r===void 0&&i>=i)&&(r=i)}return r}var nye=M(()=>{"use strict";o(Cb,"max")});function O1(t,e){let r;if(e===void 0)for(let n of t)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);else{let n=-1;for(let i of t)(i=e(i,++n,t))!=null&&(r>i||r===void 0&&i>=i)&&(r=i)}return r}var iye=M(()=>{"use strict";o(O1,"min")});function P1(t,e){let r=0;if(e===void 0)for(let n of t)(n=+n)&&(r+=n);else{let n=-1;for(let i of t)(i=+e(i,++n,t))&&(r+=i)}return r}var aye=M(()=>{"use strict";o(P1,"sum")});var FB=M(()=>{"use strict";nye();iye();aye()});function $ tt(t){return t.target.depth}function zB(t){return t.depth}function GB(t,e){return e-1-t.height}function Ab(t,e){return t.sourceLinks.length?t.depth:e-1}function $ B(t){return t.targetLinks.length?t.depth:t.sourceLinks.length?O1(t.sourceLinks, $ tt)-1:0}var VB=M(()=>{"use strict";FB();o( $ tt,"targetDepth");o(zB,"left");o(GB,"right");o(Ab,"justify");o( $ B,"center")});function B1(t){return function(){return t}}var sye=M(()=>{"use strict";o(B1,"constant")});function oye(t,e){return iS(t.source,e.source)||t.index-e.index}function lye(t,e){return iS(t.target,e.target)||t.index-e.index}function iS(t,e){return t.y0-e.y0}function UB(t){return t.value}function Vtt(t){return t.index}function Utt(t){return t.nodes}function Htt(t){return t.links}function cye(t,e){let r=t.get(e);if(!
$ { g } $ { Math . round ( D * 100 ) / 100 } $ { y } ` :I,"getText");h.append("g").attr("class","node-labels").attr("font-family","sans-serif").attr("font-size",14).selectAll("text").data(x.nodes).join("text").attr("x",I=>I.x0<f/2?I.x1+6:I.x0-6).attr("y",I=>(I.y1+I.y0)/2).attr("dy", ` $ { v ? "0" : "0.35" } em ` ).attr("text-anchor",I=>I.x0<f/2?"start":"end").text(E);let L=h.append("g").attr("class","links").attr("fill","none").attr("stroke-opacity",.5).selectAll(".link").data(x.links).join("g").attr("class","link").style("mix-blend-mode","multiply"),S=a?.linkColor??"gradient";if(S==="gradient"){let I=L.append("linearGradient").attr("id",D=>(D.uid=_b.next("linearGradient-")).id).attr("gradientUnits","userSpaceOnUse").attr("x1",D=>D.source.x1).attr("x2",D=>D.target.x0);I.append("stop").attr("offset","0%").attr("stop-color",D=>T(D.source.id)),I.append("stop").attr("offset","100%").attr("stop-color",D=>T(D.target.id))}let A;switch(S){case"gradient":A=o(I=>I.uid,"coloring");break;case"source":A=o(I=>T(I.source.id),"coloring");break;case"target":A=o(I=>T(I.target.id),"coloring");break;default:A=S}L.append("path").attr("d",oS()).attr("stroke",A).attr("stroke-width",I=>Math.max(1,I.width)),Io(void 0,h,0,p)},"draw"),Cye={draw:Jtt}});var _ye,Lye=M(()=>{"use strict";_ye=o(t=>t.replaceAll(/^[^ \S \n \r ]+|[^ \S \n \r ]+ $ /g,"").replaceAll(/([ \n \r ])+/g, `
` ).trim(),"prepareTextForParsing")});var Dye={};vr(Dye,{diagram:()=>trt});var ert,trt,Nye=M(()=>{"use strict";eye();rye();Aye();Lye();ert=Sb.parse.bind(Sb);Sb.parse=t=>ert(_ye(t));trt={parser:Sb,db:tye,renderer:Cye}});var Iye,jB,art,srt,ort,lrt,crt, $ f,KB=M(()=>{"use strict";Za();bs();hr();Ai();Iye={packet:[]},jB=structuredClone(Iye),art=ur.packet,srt=o(()=>{let t=Ds({...art,...Cr().packet});return t.showBits&&(t.paddingY+=10),t},"getConfig"),ort=o(()=>jB.packet,"getPacket"),lrt=o(t=>{t.length>0&&jB.packet.push(t)},"pushWord"),crt=o(()=>{Lr(),jB=structuredClone(Iye)},"clear"), $ f={pushWord:lrt,getPacket:ort,getConfig:srt,clear:crt,setAccTitle:Mr,getAccTitle:Br,setDiagramTitle:cn,getDiagramTitle:Jr,getAccDescription:zr,setAccDescription:Fr}});var urt,hrt,frt,Oye,Pye=M(()=>{"use strict";Hg();ut();Tx();KB();urt=1e4,hrt=o(t=>{yf(t, $ f);let e=-1,r=[],n=1,{bitsPerRow:i}= $ f.getConfig();for(let{start:a,end:s,label:l}of t.blocks){if(s&&s<a)throw new Error( ` Packet block $ { a } - $ { s } is invalid . End must be greater than start . ` );if(a!==e+1)throw new Error( ` Packet block $ { a } - $ { s ? ? a } is not contiguous . It should start from $ { e + 1 } . ` );for(e=s??a,Y.debug( ` Packet block $ { a } - $ { e } with label $ { l } ` );r.length<=i+1&& $ f.getPacket().length<urt;){let[u,h]=frt({start:a,end:s,label:l},n,i);if(r.push(u),u.end+1===n*i&&( $ f.pushWord(r),r=[],n++),!h)break;({start:a,end:s,label:l}=h)}} $ f.pushWord(r)},"populate"),frt=o((t,e,r)=>{if(t.end===void 0&&(t.end=t.start),t.start>t.end)throw new Error( ` Block start $ { t . start } is greater than block end $ { t . end } . ` );return t.end+1<=e*r?[t,void 0]:[{start:t.start,end:e*r-1,label:t.label},{start:e*r,end:t.end,label:t.label}]},"getNextFittingBlock"),Oye={parse:o(async t=>{let e=await Yl("packet",t);Y.debug(e),hrt(e)},"parse")}});var drt,prt,Bye,Fye=M(()=>{"use strict";eh();ai();drt=o((t,e,r,n)=>{let i=n.db,a=i.getConfig(),{rowHeight:s,paddingY:l,bitWidth:u,bitsPerRow:h}=a,f=i.getPacket(),d=i.getDiagramTitle(),p=s+l,m=p*(f.length+1)-(d?0:s),g=u*h+2,y=Va(e);y.attr("viewbox", ` 0 0 $ { g } $ { m } ` ),Zr(y,m,g,a.useMaxWidth);for(let[v,x]of f.entries())prt(y,x,v,a);y.append("text").text(d).attr("x",g/2).attr("y",m-p/2).attr("dominant-baseline","middle").attr("text-anchor","middle").attr("class","packetTitle")},"draw"),prt=o((t,e,r,{rowHeight:n,paddingX:i,paddingY:a,bitWidth:s,bitsPerRow:l,showBits:u})=>{let h=t.append("g"),f=r*(n+a)+a;for(let d of e){let p=d.start%l*s+1,m=(d.end-d.start+1)*s-i;if(h.append("rect").attr("x",p).attr("y",f).attr("width",m).attr("height",n).attr("class","packetBlock"),h.append("text").attr("x",p+m/2).attr("y",f+n/2).attr("class","packetLabel").attr("dominant-baseline","middle").attr("text-anchor","middle").text(d.label),!u)continue;let g=d.end===d.start,y=f-2;h.append("text").attr("x",p+(g?m/2:0)).attr("y",y).attr("class","packetByte start").attr("dominant-baseline","auto").attr("text-anchor",g?"middle":"start").text(d.start),g||h.append("text").attr("x",p+m).attr("y",y).attr("class","packetByte end").attr("dominant-baseline","auto").attr("text-anchor","end").text(d.end)}},"drawWord"),Bye={draw:drt}});var mrt,zye,Gye=M(()=>{"use strict";hr();mrt={byteFontSize:"10px",startByteColor:"black",endByteColor:"black",labelColor:"black",labelFontSize:"12px",titleColor:"black",titleFontSize:"14px",blockStrokeColor:"black",blockStrokeWidth:"1",blockFillColor:"#efefef"},zye=o(({packet:t}={})=>{let e=Ds(mrt,t);return `
. packetByte {
font - size : $ { e . byteFontSize } ;
}
. packetByte . start {
fill : $ { e . startByteColor } ;
}
. packetByte . end {
fill : $ { e . endByteColor } ;
}
. packetLabel {
fill : $ { e . labelColor } ;
font - size : $ { e . labelFontSize } ;
}
. packetTitle {
fill : $ { e . titleColor } ;
font - size : $ { e . titleFontSize } ;
}
. packetBlock {
stroke : $ { e . blockStrokeColor } ;
stroke - width : $ { e . blockStrokeWidth } ;
fill : $ { e . blockFillColor } ;
}
` },"styles")});var $ ye={};vr( $ ye,{diagram:()=>grt});var grt,Vye=M(()=>{"use strict";KB();Pye();Fye();Gye();grt={parser:Oye,db: $ f,renderer:Bye,styles:zye}});var QB,Wye,Yye=M(()=>{"use strict";QB=function(){var t=o(function(w,_,T,E){for(T=T||{},E=w.length;E--;T[w[E]]=_);return T},"o"),e=[1,7],r=[1,13],n=[1,14],i=[1,15],a=[1,19],s=[1,16],l=[1,17],u=[1,18],h=[8,30],f=[8,21,28,29,30,31,32,40,44,47],d=[1,23],p=[1,24],m=[8,15,16,21,28,29,30,31,32,40,44,47],g=[8,15,16,21,27,28,29,30,31,32,40,44,47],y=[1,49],v={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,spaceLines:3,SPACELINE:4,NL:5,separator:6,SPACE:7,EOF:8,start:9,BLOCK_DIAGRAM_KEY:10,document:11,stop:12,statement:13,link:14,LINK:15,START_LINK:16,LINK_LABEL:17,STR:18,nodeStatement:19,columnsStatement:20,SPACE_BLOCK:21,blockStatement:22,classDefStatement:23,cssClassStatement:24,styleStatement:25,node:26,SIZE:27,COLUMNS:28,"id-block":29,end:30,block:31,NODE_ID:32,nodeShapeNLabel:33,dirList:34,DIR:35,NODE_DSTART:36,NODE_DEND:37,BLOCK_ARROW_START:38,BLOCK_ARROW_END:39,classDef:40,CLASSDEF_ID:41,CLASSDEF_STYLEOPTS:42,DEFAULT:43,class:44,CLASSENTITY_IDS:45,STYLECLASS:46,style:47,STYLE_ENTITY_IDS:48,STYLE_DEFINITION_DATA:49, $ accept:0, $ end:1},terminals_:{2:"error",4:"SPACELINE",5:"NL",7:"SPACE",8:"EOF",10:"BLOCK_DIAGRAM_KEY",15:"LINK",16:"START_LINK",17:"LINK_LABEL",18:"STR",21:"SPACE_BLOCK",27:"SIZE",28:"COLUMNS",29:"id-block",30:"end",31:"block",32:"NODE_ID",35:"DIR",36:"NODE_DSTART",37:"NODE_DEND",38:"BLOCK_ARROW_START",39:"BLOCK_ARROW_END",40:"classDef",41:"CLASSDEF_ID",42:"CLASSDEF_STYLEOPTS",43:"DEFAULT",44:"class",45:"CLASSENTITY_IDS",46:"STYLECLASS",47:"style",48:"STYLE_ENTITY_IDS",49:"STYLE_DEFINITION_DATA"},productions_:[0,[3,1],[3,2],[3,2],[6,1],[6,1],[6,1],[9,3],[12,1],[12,1],[12,2],[12,2],[11,1],[11,2],[14,1],[14,4],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[19,3],[19,2],[19,1],[20,1],[22,4],[22,3],[26,1],[26,2],[34,1],[34,2],[33,3],[33,4],[23,3],[23,3],[24,3],[25,3]],performAction:o(function(_,T,E,L,S,A,I){var D=A.length-1;switch(S){case 4:L.getLogger().debug("Rule: separator (NL) ");break;case 5:L.getLogger().debug("Rule: separator (Space) ");break;case 6:L.getLogger().debug("Rule: separator (EOF) ");break;case 7:L.getLogger().debug("Rule: hierarchy: ",A[D-1]),L.setHierarchy(A[D-1]);break;case 8:L.getLogger().debug("Stop NL ");break;case 9:L.getLogger().debug("Stop EOF ");break;case 10:L.getLogger().debug("Stop NL2 ");break;case 11:L.getLogger().debug("Stop EOF2 ");break;case 12:L.getLogger().debug("Rule: statement: ",A[D]),typeof A[D].length=="number"?this. $ =A[D]:this. $ =[A[D]];break;case 13:L.getLogger().debug("Rule: statement #2: ",A[D-1]),this. $ =[A[D-1]].concat(A[D]);break;case 14:L.getLogger().debug("Rule: link: ",A[D],_),this. $ ={edgeTypeStr:A[D],label:""};break;case 15:L.getLogger().debug("Rule: LABEL link: ",A[D-3],A[D-1],A[D]),this. $ ={edgeTypeStr:A[D],label:A[D-1]};break;case 18:let k=parseInt(A[D]),R=L.generateId();this. $ ={id:R,type:"space",label:"",width:k,children:[]};break;case 23:L.getLogger().debug("Rule: (nodeStatement link node) ",A[D-2],A[D-1],A[D]," typestr: ",A[D-1].edgeTypeStr);let C=L.edgeStrToEdgeData(A[D-1].edgeTypeStr);this. $ =[{id:A[D-2].id,label:A[D-2].label,type:A[D-2].type,directions:A[D-2].directions},{id:A[D-2].id+"-"+A[D].id,start:A[D-2].id,end:A[D].id,label:A[D-1].label,type:"edge",directions:A[D].directions,arrowTypeEnd:C,arrowTypeStart:"arrow_open"},{id:A[D].id,label:A[D].label,type:L.typeStr2Type(A[D].typeStr),directions:A[D].directions}];break;case 24:L.getLogger().debug("Rule: nodeStatement (abc88 node size) ",A[D-1],A[D]),this. $ ={id:A[D-1].id,label:A[D-1].label,type:L.typeStr2Type(A[D-1].typeStr),directions:A[D-1].directions,widthInColumns:parseInt(A[D],10)};break;case 25:L.getLogger().debug("Rule: nodeStatement (node) ",A[D]),this. $ ={id:A[D].id,label:A[D].label,type:L.typeStr2Type(A[D].typeStr),directions:A[D].directions,widthInColumns:1};break;case 26:L.getLogger().debug("APA123",this?this:"na"),L.getLogger().debug("COLUMNS: ",A[D]),this. $ ={type:"column-setting",columns:A[D]==="auto"?-1:parseInt(A[D])};break;case
` +F.showPosition()+ `
Expecting ` +te.join(", ")+", got '"+(this.terminals_[oe]||oe)+"'":Ne="Parse error on line "+(k+1)+": Unexpected "+(oe==N?"end of input":"'"+(this.terminals_[oe]||oe)+"'"),this.parseError(Ne,{text:F.match,token:this.terminals_[oe]||oe,line:F.yylineno,loc:z,expected:te})}if(J[0]instanceof Array&&J.length>1)throw new Error("Parse Error: multiple actions possible at state: "+ee+", token: "+oe);switch(J[0]){case 1:E.push(oe),S.push(F.yytext),A.push(F.yylloc),E.push(J[1]),oe=null,K?(oe=K,K=null):(R=F.yyleng,D=F.yytext,k=F.yylineno,z=F.yylloc,C>0&&C--);break;case 2:if(ue=this.productions_[J[1]][1],Q. $ =S[S.length-ue],Q._ $ ={first_line:A[A.length-(ue||1)].first_line,last_line:A[A.length-1].last_line,first_column:A[A.length-(ue||1)].first_column,last_column:A[A.length-1].last_column},W&&(Q._ $ .range=[A[A.length-(ue||1)].range[0],A[A.length-1].range[1]]),q=this.performAction.apply(Q,[D,R,k,B.yy,J[1],S,A].concat(P)),typeof q<"u")return q;ue&&(E=E.slice(0,-1*ue*2),S=S.slice(0,-1*ue),A=A.slice(0,-1*ue)),E.push(this.productions_[J[1]][0]),S.push(Q. $ ),A.push(Q._ $ ),ce=I[E[E.length-2]][E[E.length-1]],E.push(ce);break;case 3:return!0}}return!0},"parse")},x=function(){var w={EOF:1,parseError:o(function(T,E){if(this.yy.parser)this.yy.parser.parseError(T,E);else throw new Error(T)},"parseError"),setInput:o(function(_,T){return this.yy=T||this.yy||{},this._input=_,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:o(function(){var _=this._input[0];this.yytext+=_,this.yyleng++,this.offset++,this.match+=_,this.matched+=_;var T=_.match(/(?: \r \n ?| \n ).*/g);return T?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),_},"input"),unput:o(function(_){var T=_.length,E=_.split(/(?: \r \n ?| \n )/g);this._input=_+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-T),this.offset-=T;var L=this.match.split(/(?: \r \n ?| \n )/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),E.length-1&&(this.yylineno-=E.length-1);var S=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===L.length?this.yylloc.first_column:0)+L[L.length-E.length].length-E[0].length:this.yylloc.first_column-T},this.options.ranges&&(this.yylloc.range=[S[0],S[0]+this.yyleng-T]),this.yyleng=this.yytext.length,this},"unput"),more:o(function(){return this._more=!0,this},"more"),reject:o(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+ ` . You can only invoke reject ( ) in the lexer when the lexer is of the backtracking persuasion ( options . backtrack _lexer = true ) .
` +this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:o(function(_){this.unput(this.match.slice(_))},"less"),pastInput:o(function(){var _=this.matched.substr(0,this.matched.length-this.match.length);return(_.length>20?"...":"")+_.substr(-20).replace(/ \n /g,"")},"pastInput"),upcomingInput:o(function(){var _=this.match;return _.length<20&&(_+=this._input.substr(0,20-_.length)),(_.substr(0,20)+(_.length>20?"...":"")).replace(/ \n /g,"")},"upcomingInput"),showPosition:o(function(){var _=this.pastInput(),T=new Array(_.length+1).join("-");return _+this.upcomingInput()+ `
` +T+"^"},"showPosition"),test_match:o(function(_,T){var E,L,S;if(this.options.backtrack_lexer&&(S={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&&(S.yylloc.range=this.yylloc.range.slice(0))),L=_[0].match(/(?: \r \n ?| \n ).*/g),L&&(this.yylineno+=L.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:L?L[L.length-1].length-L[L.length-1].match(/ \r ? \n ?/)[0].length:this.yylloc.last_column+_[0].length},this.yytext+=_[0],this.match+=_[0],this.matches=_,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(_[0].length),this.matched+=_[0],E=this.performAction.call(this,this.yy,this,T,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),E)return E;if(this._backtrack){for(var A in S)this[A]=S[A];return!1}return!1},"test_match"),next:o(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var _,T,E,L;this._more||(this.yytext="",this.match="");for(var S=this._currentRules(),A=0;A<S.length;A++)if(E=this._input.match(this.rules[S[A]]),E&&(!T||E[0].length>T[0].length)){if(T=E,L=A,this.options.backtrack_lexer){if(_=this.test_match(E,S[A]),_!==!1)return _;if(this._backtrack){T=!1;continue}else return!1}else if(!this.options.flex)break}return T?(_=this.test_match(T,S[L]),_!==!1?_:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+ ` . Unrecognized text .
` +this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:o(function(){var T=this.next();return T||this.lex()},"lex"),begin:o(function(T){this.conditionStack.push(T)},"begin"),popState:o(function(){var T=this.conditionStack.length-1;return T>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:o(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:o(function(T){return T=this.conditionStack.length-1-Math.abs(T||0),T>=0?this.conditionStack[T]:"INITIAL"},"topState"),pushState:o(function(T){this.begin(T)},"pushState"),stateStackSize:o(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:o(function(T,E,L,S){var A=S;switch(L){case 0:return 10;case 1:return T.getLogger().debug("Found space-block"),31;break;case 2:return T.getLogger().debug("Found nl-block"),31;break;case 3:return T.getLogger().debug("Found space-block"),29;break;case 4:T.getLogger().debug(".",E.yytext);break;case 5:T.getLogger().debug("_",E.yytext);break;case 6:return 5;case 7:return E.yytext=-1,28;break;case 8:return E.yytext=E.yytext.replace(/columns \s +/,""),T.getLogger().debug("COLUMNS (LEX)",E.yytext),28;break;case 9:this.pushState("md_string");break;case 10:return"MD_STR";case 11:this.popState();break;case 12:this.pushState("string");break;case 13:T.getLogger().debug("LEX: POPPING STR:",E.yytext),this.popState();break;case 14:return T.getLogger().debug("LEX: STR end:",E.yytext),"STR";break;case 15:return E.yytext=E.yytext.replace(/space \: /,""),T.getLogger().debug("SPACE NUM (LEX)",E.yytext),21;break;case 16:return E.yytext="1",T.getLogger().debug("COLUMNS (LEX)",E.yytext),21;break;case 17:return 43;case 18:return"LINKSTYLE";case 19:return"INTERPOLATE";case 20:return this.pushState("CLASSDEF"),40;break;case 21:return this.popState(),this.pushState("CLASSDEFID"),"DEFAULT_CLASSDEF_ID";break;case 22:return this.popState(),this.pushState("CLASSDEFID"),41;break;case 23:return this.popState(),42;break;case 24:return this.pushState("CLASS"),44;break;case 25:return this.popState(),this.pushState("CLASS_STYLE"),45;break;case 26:return this.popState(),46;break;case 27:return this.pushState("STYLE_STMNT"),47;break;case 28:return this.popState(),this.pushState("STYLE_DEFINITION"),48;break;case 29:return this.popState(),49;break;case 30:return this.pushState("acc_title"),"acc_title";break;case 31:return this.popState(),"acc_title_value";break;case 32:return this.pushState("acc_descr"),"acc_descr";break;case 33:return this.popState(),"acc_descr_value";break;case 34:this.pushState("acc_descr_multiline");break;case 35:this.popState();break;case 36:return"acc_descr_multiline_value";case 37:return 30;case 38:return this.popState(),T.getLogger().debug("Lex: (("),"NODE_DEND";break;case 39:return this.popState(),T.getLogger().debug("Lex: (("),"NODE_DEND";break;case 40:return this.popState(),T.getLogger().debug("Lex: ))"),"NODE_DEND";break;case 41:return this.popState(),T.getLogger().debug("Lex: (("),"NODE_DEND";break;case 42:return this.popState(),T.getLogger().debug("Lex: (("),"NODE_DEND";break;case 43:return this.popState(),T.getLogger().debug("Lex: (-"),"NODE_DEND";break;case 44:return this.popState(),T.getLogger().debug("Lex: -)"),"NODE_DEND";break;case 45:return this.popState(),T.getLogger().debug("Lex: (("),"NODE_DEND";break;case 46:return this.popState(),T.getLogger().debug("Lex: ]]"),"NODE_DEND";break;case 47:return this.popState(),T.getLogger().debug("Lex: ("),"NODE_DEND";break;case 48:return this.popState(),T.getLogger().debug("Lex: ])"),"NODE_DEND";break;case 49:return this.popState(),T.getLogger().debug("Lex: /]"),"NODE_DEND";break;case 50:return this.popState(),T.getLogger().debug("Lex: /]"),"NODE_DEND";break;case 51:return this.popState(),T.getLogger().debug("Lex: )]"),"NODE_DEND";break;case 52:return this.popState(),T.getLogger().debug("Lex: )"),"NODE_DEND";break;case 53:return this.popState(),T.getLogger().debug("
font - family : $ { t . fontFamily } ;
color : $ { t . nodeTextColor || t . textColor } ;
2024-05-27 09:53:57 +02:00
}
. cluster - label text {
2024-11-13 12:07:54 +02:00
fill : $ { t . titleColor } ;
2024-05-27 09:53:57 +02:00
}
. cluster - label span , p {
2024-11-13 12:07:54 +02:00
color : $ { t . titleColor } ;
2024-05-27 09:53:57 +02:00
}
. label text , span , p {
2024-11-13 12:07:54 +02:00
fill : $ { t . nodeTextColor || t . textColor } ;
color : $ { t . nodeTextColor || t . textColor } ;
2024-05-27 09:53:57 +02:00
}
. node rect ,
. node circle ,
. node ellipse ,
. node polygon ,
. node path {
2024-11-13 12:07:54 +02:00
fill : $ { t . mainBkg } ;
stroke : $ { t . nodeBorder } ;
2024-05-27 09:53:57 +02:00
stroke - width : 1 px ;
}
. flowchart - label text {
text - anchor : middle ;
}
// .flowchart-label .text-outer-tspan {
// text-anchor: middle;
// }
// .flowchart-label .text-inner-tspan {
// text-anchor: start;
// }
. node . label {
text - align : center ;
}
. node . clickable {
cursor : pointer ;
}
. arrowheadPath {
2024-11-13 12:07:54 +02:00
fill : $ { t . arrowheadColor } ;
2024-05-27 09:53:57 +02:00
}
. edgePath . path {
2024-11-13 12:07:54 +02:00
stroke : $ { t . lineColor } ;
2024-05-27 09:53:57 +02:00
stroke - width : 2.0 px ;
}
. flowchart - link {
2024-11-13 12:07:54 +02:00
stroke : $ { t . lineColor } ;
2024-05-27 09:53:57 +02:00
fill : none ;
}
. edgeLabel {
2024-11-13 12:07:54 +02:00
background - color : $ { t . edgeLabelBackground } ;
2024-05-27 09:53:57 +02:00
rect {
opacity : 0.5 ;
2024-11-13 12:07:54 +02:00
background - color : $ { t . edgeLabelBackground } ;
fill : $ { t . edgeLabelBackground } ;
2024-05-27 09:53:57 +02:00
}
text - align : center ;
}
/* For html labels only */
. labelBkg {
2024-11-13 12:07:54 +02:00
background - color : $ { cS ( t . edgeLabelBackground , . 5 ) } ;
2024-05-27 09:53:57 +02:00
// background-color:
}
. node . cluster {
2024-11-13 12:07:54 +02:00
// fill: ${cS(t.mainBkg,.5)};
fill : $ { cS ( t . clusterBkg , . 5 ) } ;
stroke : $ { cS ( t . clusterBorder , . 2 ) } ;
2024-05-27 09:53:57 +02:00
box - shadow : rgba ( 50 , 50 , 93 , 0.25 ) 0 px 13 px 27 px - 5 px , rgba ( 0 , 0 , 0 , 0.3 ) 0 px 8 px 16 px - 8 px ;
stroke - width : 1 px ;
}
. cluster text {
2024-11-13 12:07:54 +02:00
fill : $ { t . titleColor } ;
2024-05-27 09:53:57 +02:00
}
. cluster span , p {
2024-11-13 12:07:54 +02:00
color : $ { t . titleColor } ;
2024-05-27 09:53:57 +02:00
}
/ * . c l u s t e r d i v {
2024-11-13 12:07:54 +02:00
color : $ { t . titleColor } ;
2024-05-27 09:53:57 +02:00
} * /
div . mermaidTooltip {
position : absolute ;
text - align : center ;
max - width : 200 px ;
padding : 2 px ;
2024-11-13 12:07:54 +02:00
font - family : $ { t . fontFamily } ;
2024-05-27 09:53:57 +02:00
font - size : 12 px ;
2024-11-13 12:07:54 +02:00
background : $ { t . tertiaryColor } ;
border : 1 px solid $ { t . border2 } ;
2024-05-27 09:53:57 +02:00
border - radius : 2 px ;
pointer - events : none ;
z - index : 100 ;
}
. flowchartTitleText {
text - anchor : middle ;
font - size : 18 px ;
2024-11-13 12:07:54 +02:00
fill : $ { t . textColor } ;
2024-05-27 09:53:57 +02:00
}
2024-11-13 12:07:54 +02:00
` ,"getStyles"),eve=Grt});var $ rt,Vrt,Urt,Hrt,Wrt,Yrt,qrt,Xrt,jrt,Krt,Qrt,rve,nve=M(()=>{"use strict";ut(); $ rt=o((t,e,r,n)=>{e.forEach(i=>{Qrt[i](t,r,n)})},"insertMarkers"),Vrt=o((t,e,r)=>{Y.trace("Making markers for ",r),t.append("defs").append("marker").attr("id",r+"_"+e+"-extensionStart").attr("class","marker extension "+e).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-extensionEnd").attr("class","marker extension "+e).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z")},"extension"),Urt=o((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-compositionStart").attr("class","marker composition "+e).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-compositionEnd").attr("class","marker composition "+e).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"composition"),Hrt=o((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-aggregationStart").attr("class","marker aggregation "+e).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-aggregationEnd").attr("class","marker aggregation "+e).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"aggregation"),Wrt=o((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-dependencyStart").attr("class","marker dependency "+e).attr("refX",6).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-dependencyEnd").attr("class","marker dependency "+e).attr("refX",13).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},"dependency"),Yrt=o((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-lollipopStart").attr("class","marker lollipop "+e).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),t.append("defs").append("marker").attr("id",r+"_"+e+"-lollipopEnd").attr("class","marker lollipop "+e).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6)},"lollipop"),qrt=o((t,e,r)=>{t.append("marker").attr("id",r+"_"+e+"-pointEnd").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",6).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),t.append("marker").attr("id",r+"_"+e+"-pointStart").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",4.5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 5 L 10 10 L 10 0 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},"point"),Xrt=o((t,e,r)=>{t.append("marker").attr("id",r+"_"+e+"-circleEnd").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",11).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","aut
outsidePoint : $ { JSON . stringify ( e ) }
insidePoint : $ { JSON . stringify ( r ) }
node : x : $ { t . x } y : $ { t . y } w : $ { t . width } h : $ { t . height } ` );let n=t.x,i=t.y,a=Math.abs(n-r.x),s=t.width/2,l=r.x<e.x?s-a:s+a,u=t.height/2,h=Math.abs(e.y-r.y),f=Math.abs(e.x-r.x);if(Math.abs(i-e.y)*s>Math.abs(n-e.x)*u){let d=r.y<e.y?e.y-u-i:i-u-e.y;l=f*d/h;let p={x:r.x<e.x?r.x+l:r.x-f+l,y:r.y<e.y?r.y+h-d:r.y-h+d};return l===0&&(p.x=e.x,p.y=e.y),f===0&&(p.x=e.x),h===0&&(p.y=e.y),Y.debug( ` abc89 topp / bott calc , Q $ { h } , q $ { d } , R $ { f } , r $ { l } ` ,p),p}else{r.x<e.x?l=e.x-s-n:l=n-s-e.x;let d=h*l/f,p=r.x<e.x?r.x+f-l:r.x-f+l,m=r.y<e.y?r.y+d:r.y-d;return Y.debug( ` sides calc abc89 , Q $ { h } , q $ { d } , R $ { f } , r $ { l } ` ,{_x:p,_y:m}),l===0&&(p=e.x,m=e.y),f===0&&(p=e.x),h===0&&(m=e.y),{x:p,y:m}}},"intersection"),fve=o((t,e)=>{Y.debug("abc88 cutPathAtIntersect",t,e);let r=[],n=t[0],i=!1;return t.forEach(a=>{if(!nnt(e,a)&&!i){let s=int(e,n,a),l=!1;r.forEach(u=>{l=l||u.x===s.x&&u.y===s.y}),r.some(u=>u.x===s.x&&u.y===s.y)||r.push(s),i=!0}else n=a,i||r.push(a)}),r},"cutPathAtIntersect"),mve=o(function(t,e,r,n,i,a,s){let l=r.points;Y.debug("abc88 InsertEdge: edge=",r,"e=",e);let u=!1,h=a.node(e.v);var f=a.node(e.w);f?.intersect&&h?.intersect&&(l=l.slice(1,r.points.length-1),l.unshift(h.intersect(l[0])),l.push(f.intersect(l[l.length-1]))),r.toCluster&&(Y.debug("to cluster abc88",n[r.toCluster]),l=fve(r.points,n[r.toCluster].node),u=!0),r.fromCluster&&(Y.debug("from cluster abc88",n[r.fromCluster]),l=fve(l.reverse(),n[r.fromCluster].node).reverse(),u=!0);let d=l.filter(_=>!Number.isNaN(_.y)),p=Po;r.curve&&(i==="graph"||i==="flowchart")&&(p=r.curve);let{x:m,y:g}=uw(r),y=ns().x(m).y(g).curve(p),v;switch(r.thickness){case"normal":v="edge-thickness-normal";break;case"thick":v="edge-thickness-thick";break;case"invisible":v="edge-thickness-thick";break;default:v=""}switch(r.pattern){case"solid":v+=" edge-pattern-solid";break;case"dotted":v+=" edge-pattern-dotted";break;case"dashed":v+=" edge-pattern-dashed";break}let x=t.append("path").attr("d",y(d)).attr("id",r.id).attr("class"," "+v+(r.classes?" "+r.classes:"")).attr("style",r.style),b="";(pe().flowchart.arrowMarkerAbsolute||pe().state.arrowMarkerAbsolute)&&(b=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,b=b.replace(/ \( /g," \\ ("),b=b.replace(/ \) /g," \\ )")),uve(x,r,b,s,i);let w={};return u&&(w.updatedPath=l),w.originalPath=r.points,w},"insertEdge")});var ant,yve,vve=M(()=>{"use strict";ant=o(t=>{let e=new Set;for(let r of t)switch(r){case"x":e.add("right"),e.add("left");break;case"y":e.add("up"),e.add("down");break;default:e.add(r);break}return e},"expandAndDeduplicateDirections"),yve=o((t,e,r)=>{let n=ant(t),i=2,a=e.height+2*r.padding,s=a/i,l=e.width+2*s+r.padding,u=r.padding/2;return n.has("right")&&n.has("left")&&n.has("up")&&n.has("down")?[{x:0,y:0},{x:s,y:0},{x:l/2,y:2*u},{x:l-s,y:0},{x:l,y:0},{x:l,y:-a/3},{x:l+2*u,y:-a/2},{x:l,y:-2*a/3},{x:l,y:-a},{x:l-s,y:-a},{x:l/2,y:-a-2*u},{x:s,y:-a},{x:0,y:-a},{x:0,y:-2*a/3},{x:-2*u,y:-a/2},{x:0,y:-a/3}]:n.has("right")&&n.has("left")&&n.has("up")?[{x:s,y:0},{x:l-s,y:0},{x:l,y:-a/2},{x:l-s,y:-a},{x:s,y:-a},{x:0,y:-a/2}]:n.has("right")&&n.has("left")&&n.has("down")?[{x:0,y:0},{x:s,y:-a},{x:l-s,y:-a},{x:l,y:0}]:n.has("right")&&n.has("up")&&n.has("down")?[{x:0,y:0},{x:l,y:-s},{x:l,y:-a+s},{x:0,y:-a}]:n.has("left")&&n.has("up")&&n.has("down")?[{x:l,y:0},{x:0,y:-s},{x:0,y:-a+s},{x:l,y:-a}]:n.has("right")&&n.has("left")?[{x:s,y:0},{x:s,y:-u},{x:l-s,y:-u},{x:l-s,y:0},{x:l,y:-a/2},{x:l-s,y:-a},{x:l-s,y:-a+u},{x:s,y:-a+u},{x:s,y:-a},{x:0,y:-a/2}]:n.has("up")&&n.has("down")?[{x:l/2,y:0},{x:0,y:-u},{x:s,y:-u},{x:s,y:-a+u},{x:0,y:-a+u},{x:l/2,y:-a},{x:l,y:-a+u},{x:l-s,y:-a+u},{x:l-s,y:-u},{x:l,y:-u}]:n.has("right")&&n.has("up")?[{x:0,y:0},{x:l,y:-s},{x:0,y:-a}]:n.has("right")&&n.has("down")?[{x:0,y:0},{x:l,y:0},{x:0,y:-a}]:n.has("left")&&n.has("up")?[{x:l,y:0},{x:0,y:-s},{x:l,y:-a}]:n.has("left")&&n.has("down")?[{x:l,y:0},{x:0,y:0},{x:l,y:-a}]:n.has("right")?[{x:s,y:-u},{x:s,y:-u},{x:l-s,y:-u},{x:l-s,y:0},{x:l,y:-a/2},{x:l-s,y:-a},{x:l-s,y:-a+u},{x:s,y:-a+u},{x:s,y:-a+u}]:n.has("left")?[{x:s,y:0},{x:s,y:-u},{x:l-s,y:-u},
. edge {
stroke - width : $ { t . archEdgeWidth } ;
stroke : $ { t . archEdgeColor } ;
fill : none ;
}
. arrow {
fill : $ { t . archEdgeArrowColor } ;
}
. node - bkg {
fill : none ;
stroke : $ { t . archGroupBorderColor } ;
stroke - width : $ { t . archGroupBorderWidth } ;
stroke - dasharray : 8 ;
}
. node - icon - text {
display : flex ;
align - items : center ;
}
. node - icon - text > div {
color : # fff ;
margin : 1 px ;
height : fit - content ;
text - align : center ;
overflow : hidden ;
display : - webkit - box ;
- webkit - box - orient : vertical ;
}
` ,"getStyles"),i2e=iit});var dF=Ei((Mb,fF)=>{"use strict";o(function(e,r){typeof Mb=="object"&&typeof fF=="object"?fF.exports=r():typeof define=="function"&&define.amd?define([],r):typeof Mb=="object"?Mb.layoutBase=r():e.layoutBase=r()},"webpackUniversalModuleDefinition")(Mb,function(){return function(t){var e={};function r(n){if(e[n])return e[n].exports;var i=e[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return o(r,"__webpack_require__"),r.m=t,r.c=e,r.i=function(n){return n},r.d=function(n,i,a){r.o(n,i)||Object.defineProperty(n,i,{configurable:!1,enumerable:!0,get:a})},r.n=function(n){var i=n&&n.__esModule?o(function(){return n.default},"getDefault"):o(function(){return n},"getModuleExports");return r.d(i,"a",i),i},r.o=function(n,i){return Object.prototype.hasOwnProperty.call(n,i)},r.p="",r(r.s=28)}([function(t,e,r){"use strict";function n(){}o(n,"LayoutConstants"),n.QUALITY=1,n.DEFAULT_CREATE_BENDS_AS_NEEDED=!1,n.DEFAULT_INCREMENTAL=!1,n.DEFAULT_ANIMATION_ON_LAYOUT=!0,n.DEFAULT_ANIMATION_DURING_LAYOUT=!1,n.DEFAULT_ANIMATION_PERIOD=50,n.DEFAULT_UNIFORM_LEAF_NODE_SIZES=!1,n.DEFAULT_GRAPH_MARGIN=15,n.NODE_DIMENSIONS_INCLUDE_LABELS=!1,n.SIMPLE_NODE_SIZE=40,n.SIMPLE_NODE_HALF_SIZE=n.SIMPLE_NODE_SIZE/2,n.EMPTY_COMPOUND_NODE_SIZE=40,n.MIN_EDGE_LENGTH=1,n.WORLD_BOUNDARY=1e6,n.INITIAL_WORLD_BOUNDARY=n.WORLD_BOUNDARY/1e3,n.WORLD_CENTER_X=1200,n.WORLD_CENTER_Y=900,t.exports=n},function(t,e,r){"use strict";var n=r(2),i=r(8),a=r(9);function s(u,h,f){n.call(this,f),this.isOverlapingSourceAndTarget=!1,this.vGraphObject=f,this.bendpoints=[],this.source=u,this.target=h}o(s,"LEdge"),s.prototype=Object.create(n.prototype);for(var l in n)s[l]=n[l];s.prototype.getSource=function(){return this.source},s.prototype.getTarget=function(){return this.target},s.prototype.isInterGraph=function(){return this.isInterGraph},s.prototype.getLength=function(){return this.length},s.prototype.isOverlapingSourceAndTarget=function(){return this.isOverlapingSourceAndTarget},s.prototype.getBendpoints=function(){return this.bendpoints},s.prototype.getLca=function(){return this.lca},s.prototype.getSourceInLca=function(){return this.sourceInLca},s.prototype.getTargetInLca=function(){return this.targetInLca},s.prototype.getOtherEnd=function(u){if(this.source===u)return this.target;if(this.target===u)return this.source;throw"Node is not incident with this edge"},s.prototype.getOtherEndInGraph=function(u,h){for(var f=this.getOtherEnd(u),d=h.getGraphManager().getRoot();;){if(f.getOwner()==h)return f;if(f.getOwner()==d)break;f=f.getOwner().getParent()}return null},s.prototype.updateLength=function(){var u=new Array(4);this.isOverlapingSourceAndTarget=i.getIntersection(this.target.getRect(),this.source.getRect(),u),this.isOverlapingSourceAndTarget||(this.lengthX=u[0]-u[2],this.lengthY=u[1]-u[3],Math.abs(this.lengthX)<1&&(this.lengthX=a.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=a.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY))},s.prototype.updateLengthSimple=function(){this.lengthX=this.target.getCenterX()-this.source.getCenterX(),this.lengthY=this.target.getCenterY()-this.source.getCenterY(),Math.abs(this.lengthX)<1&&(this.lengthX=a.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=a.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY)},t.exports=s},function(t,e,r){"use strict";function n(i){this.vGraphObject=i}o(n,"LGraphObject"),t.exports=n},function(t,e,r){"use strict";var n=r(2),i=r(10),a=r(13),s=r(0),l=r(16),u=r(5);function h(d,p,m,g){m==null&&g==null&&(g=p),n.call(this,g),d.graphManager!=null&&(d=d.graphManager),this.estimatedSize=i.MIN_VALUE,this.inclusionTreeDepth=i.MAX_VALUE,this.vGraphObject=g,this.edges=[],this.graphManager=d,m!=null&&p!=null?this.rect=new a(p.x,p.y,m.width,m.height):this.rect=new a}o(h,"LNode"),h.prototype=Object.create(n.prototype);for(var f in n)h[f]=n[f];h.prototype.getEdges=function(){return this.edges},h.prototype.getChild=function(){return this.child},h.prototype.getOwner=funct
translate ( $ { w } , $ { _ - R . height / 2 } )
translate ( $ { C * N . width / 2 } , $ { O * N . height / 2 } )
rotate ( $ { - 1 * C * O * 45 } , 0 , $ { R . height / 2 } )
` )}}}}}))},"drawEdges"),l2e=o(async function(t,e){let n=Mi("padding")*.75,i=Mi("fontSize"),s=Mi("iconSize")/2;await Promise.all(e.nodes().map(async l=>{let u=Vf(l);if(u.type==="group"){let{h,w:f,x1:d,y1:p}=l.boundingBox();t.append("rect").attr("x",d+s).attr("y",p+s).attr("width",f).attr("height",h).attr("class","node-bkg");let m=t.append("g"),g=d,y=p;if(u.icon){let v=m.append("g");v.html( ` < g > $ { await _o ( u . icon , { height : n , width : n , fallbackPrefix : ap . prefix } ) } < / g > ` ) , v . a t t r ( " t r a n s f o r m " , " t r a n s l a t e ( " + ( g + s + 1 ) + " , " + ( y + s + 1 ) + " ) " ) , g + = n , y + = i / 2 - 1 - 2 } i f ( u . l a b e l ) { l e t v = m . a p p e n d ( " g " ) ; a w a i t L i ( v , u . l a b e l , { u s e H t m l L a b e l s : ! 1 , w i d t h : f , c l a s s e s : " a r c h i t e c t u r e - s e r v i c e - l a b e l " } , p e ( ) ) , v . a t t r ( " d y " , " 1 e m " ) . a t t r ( " a l i g n m e n t - b a s e l i n e " , " m i d d l e " ) . a t t r ( " d o m i n a n t - b a s e l i n e " , " s t a r t " ) . a t t r ( " t e x t - a n c h o r " , " s t a r t " ) , v . a t t r ( " t r a n s f o r m " , " t r a n s l a t e ( " + ( g + s + 4 ) + " , " + ( y + s + 2 ) + " ) " ) } } } ) ) } , " d r a w G r o u p s " ) , c 2 e = o ( a s y n c f u n c t i o n ( t , e , r ) { f o r ( l e t n o f r ) { l e t i = e . a p p e n d ( " g " ) , a = M i ( " i c o n S i z e " ) ; i f ( n . t i t l e ) { l e t h = i . a p p e n d ( " g " ) ; a w a i t L i ( h , n . t i t l e , { u s e H t m l L a b e l s : ! 1 , w i d t h : a * 1 . 5 , c l a s s e s : " a r c h i t e c t u r e - s e r v i c e - l a b e l " } , p e ( ) ) , h . a t t r ( " d y " , " 1 e m " ) . a t t r ( " a l i g n m e n t - b a s e l i n e " , " m i d d l e " ) . a t t r ( " d o m i n a n t - b a s e l i n e " , " m i d d l e " ) . a t t r ( " t e x t - a n c h o r " , " m i d d l e " ) , h . a t t r ( " t r a n s f o r m " , " t r a n s l a t e ( " + a / 2 + " , " + a + " ) " ) } l e t s = i . a p p e n d ( " g " ) ; i f ( n . i c o n ) s . h t m l ( ` < g > $ { a w a i t _ o ( n . i c o n , { h e i g h t : a , w i d t h : a , f a l l b a c k P r e f i x : a p . p r e f i x } ) } < / g > ` ) ; e l s e i f ( n . i c o n T e x t ) { s . h t m l ( ` < g > $ { a w a i t _ o ( " b l a n k " , { h e i g h t : a , w i d t h : a , f a l l b a c k P r e f i x : a p . p r e f i x } ) } < / g > ` ) ; l e t d = s . a p p e n d ( " g " ) . a p p e n d ( " f o r e i g n O b j e c t " ) . a t t r ( " w i d t h " , a ) . a t t r ( " h e i g h t " , a ) . a p p e n d ( " d i v " ) . a t t r ( " c l a s s " , " n o d e - i c o n - t e x t " ) . a t t r ( " s t y l e " , ` h e i g h t : $ { a } p x ; ` ) . a p p e n d ( " d i v " ) . h t m l ( n . i c o n T e x t ) , p = p a r s e I n t ( w i n d o w . g e t C o m p u t e d S t y l e ( d . n o d e ( ) , n u l l ) . g e t P r o p e r t y V a l u e ( " f o n t - s i z e " ) . r e p l a c e ( / \ D / g , " " ) ) ? ? 1 6 ; d . a t t r ( " s t y l e " , ` - w e b k i t - l i n e - c l a m p : $ { M a t h . f l o o r ( ( a - 2 ) / p ) } ; ` ) } e l s e s . a p p e n d ( " p a t h " ) . a t t r ( " c l a s s " , " n o d e - b k g " ) . a t t r ( " i d " , " n o d e - " + n . i d ) . a t t r ( " d " , ` M 0 $ { a } v $ { - a } q 0 , - 5 5 , - 5 h $ { a } q 5 , 0 5 , 5 v $ { a } H 0 Z ` ) ; i . a t t r ( " c l a s s " , " a r c h i t e c t u r e - s e r v i c e " ) ; l e t { w i d t h : l , h e i g h t : u } = i . _ g r o u p s [ 0 ] [ 0 ] . g e t B B o x ( ) ; n . w i d t h = l , n . h e i g h t = u , t . s e t E l e m e n t F o r I d ( n . i d , i ) } r e t u r n 0 } , " d r a w S e r v i c e s " ) , u 2 e = o ( f u n c t i o n ( t , e , r ) { r . f o r E a c h ( n = > { l e t i = e . a p p e n d ( " g " ) , a = M i ( " i c o n S i z e " ) ; i . a p p e n d ( " g " ) . a p p e n d ( " r e c t " ) . a t t r ( " i d " , " n o d e - " + n . i d ) . a t t r ( " f i l l - o p a c i t y " , " 0 " ) . a t t r ( " w i d t h " , a ) . a t t r ( " h e i g h t " , a ) , i . a t t r ( " c l a s s " , " a r c h i t e c t u r e - j u n c t i o n " ) ; l e t { w i d t h : l , h e i g h t : u } = i . _ g r o u p s [ 0 ] [ 0 ] . g e t B B o x ( ) ; i . w i d t h = l , i . h e i g h t = u , t . s e t E l e m e n t F o r I d ( n . i d , i ) } ) } , " d r a w J u n c t i o n s " ) } ) ; f u n c t i o n a i t ( t , e ) { t . f o r E a c h ( r = > { e . a d d ( { g r o u p : " n o d e s " , d a t a : { t y p e : " s e r v i c e " , i d : r . i d , i c o n : r . i c o n , l a b e l : r . t i t l e , p a r e n t : r . i n , w i d t h : M i ( " i c o n S i z e " ) , h e i g h t : M i ( " i c o n S i z e " ) } , c l a s s e s : " n o d e - s e r v i c e " } ) } ) } f u n c t i o n s i t ( t , e ) { t . f o r E a c h ( r = > { e . a d d ( { g r o u p : " n o d e s " , d a t a : { t y p e : " j u n c t i o n " , i d : r . i d , p a r e n t : r . i n , w i d t h : M i ( " i c o n S i z e " ) , h e i g h t : M i ( " i c o n S i z e " ) } , c l a s s e s : " n o d e - j u n c t i o n " } ) } ) } f u n c t i o n o i t ( t , e ) { e . n o d e s ( ) . m a p ( r = > { l e t n = V f ( r ) ; i f ( n . t y p e = = = " g r o u p " ) r e t u r n ; n . x = r . p o s i t i o n ( ) . x , n . y = r . p o s i t i o n ( ) . y , t . g e t E l e m e n t B y I d ( n . i d ) . a t t r ( " t r a n s f o r m " , " t r a n s l a t e ( " + ( n . x | | 0 ) + " , " + ( n . y | | 0 ) + " ) " ) } ) } f u n c t i o n l i t ( t , e ) { t . f o r E a c h ( r = > { e . a d d ( { g r o u p : " n o d e s " , d a t a : { t y p e : " g r o u p " , i d : r . i d , i c o n : r . i c o n , l a b e l : r . t i t l e , p a r e n t : r . i n } , c l a s s e s : " n o d e - g r o u p " } ) } ) } f u n c t i o n c i t ( t , e ) { t . f o r E a c h ( r = > { l e t { l h s I d : n , r h s I d : i , l h s I n t o : a , l h s G r o u p : s , r h s I n t o : l , l h s D i r : u , r h s D i r : h , r h s G r o u p : f , t i t l e : d } = r , p = p S ( r . l h s D i r , r . r h s D i r ) ? " s e g m e n t s " : " s t r a i g h t " , m = { i d : ` $ { n } - $ { i } ` , l a b e l : d , s o u r c e : n , s o u r c e D i r : u , s o u r c e A r r o w : a , s o u r c e G r o u p : s , s o u r c e E n d p o i n t : u = = = " L " ? " 0 5 0 % " : u = = = " R " ? " 1 0 0 % 5 0 % " : u = = = " T " ? " 5 0 % 0 " : " 5 0 % 1 0 0 % " , t a r g e t : i , t a r g e t D i r : h , t a r g e t A r r o w : l , t a r g e t G r o u p : f , t a r g e t E n d p o i n t : h = = = " L " ? " 0 5 0 % " : h = = = " R " ? " 1 0 0 % 5 0 % " : h = = = " T " ? " 5 0 % 0 " : " 5 0 % 1 0 0 % " } ; e . a d d ( { g r o u p : " e d g e s " , d a t a : m , c l a s s e s : p } ) } ) } f u n c t i o n u i t ( t ) { l e t e = t . m a p ( i = > { l e t a = { } , s = { } ; r e t u r n O b j e c t . e n t r i e s ( i ) . f o r E a c h ( ( [ l , [ u , h ] ] ) = > { a [ h ] | | ( a [ h ] = [ ] ) , s [ u ] | | ( s [ u ] = [ ] ) , a [ h ] . p u s h ( l ) , s [ u ] . p u s h ( l ) } ) , { h o r i z : O b j e c t . v a l u e s ( a ) . f i l t e r ( l = > l . l e n g t h > 1 ) , v e r t : O b j e c t . v a l u e s ( s ) . f i l t e r ( l = > l . l e n g t h > 1 ) } } ) , [ r , n ] = e . r e d u c e ( ( [ i , a ] , { h o r i z : s , v e r t : l } ) = > [ [ . . . i , . . . s ] , [ . . . a , . . . l ] ] , [ [ ] , [ ] ] ) ; r e t u r n { h o r i z o n t a l : r , v e r t i c a l : n } } f u n c t i o n h i t ( t ) { l e t e = [ ] , r = o ( i = > ` $ { i [ 0 ] } , $ { i [ 1 ] } ` , " p o s T o S t r " ) , n = o ( i = > i . s p l i t ( " , " ) . m a p ( a = > p a r s e I n t ( a ) ) , " s t r T o P o s " )
` );let n=Va(e),i=n.append("g");n.attr("viewBox","0 0 2412 512"),Zr(n,100,512,!0),i.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"),i.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"),i.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"),i.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"),i.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"),i.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"),i.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"),i.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text( ` mermaid version $ { r } ` )},"draw"),xP={draw:OYe},W0e=xP;var PYe={db:{},renderer:xP,parser:{parse:o(()=>{},"parse")}},Y0e=PYe;var q0e="flowchart-elk",BYe=o((t,e={})=>/^ \s *flowchart-elk/.test(t)||/^ \s *flowchart|graph/.test(t)&&e?.flowchart?.defaultRenderer==="elk"?(e.layout="elk",!0):!1,"detector"),FYe=o(async()=>{let{diagram:t}=await Promise.resolve().then(()=>(ET(),kT));return{id:q0e,diagram:t}},"loader"),zYe={id:q0e,detector:BYe,loader:FYe},X0e=zYe;var bpe="timeline",iqe=o(t=>/^ \s *timeline/.test(t),"detector"),aqe=o(async()=>{let{diagram:t}=await Promise.resolve().then(()=>(xpe(),vpe));return{id:bpe,diagram:t}},"loader"),sqe={id:bpe,detector:iqe,loader:aqe},wpe=sqe;var z1e="mindmap",ptt=o(t=>/^ \s *mindmap/.test(t),"detector"),mtt=o(async()=>{let{diagram:t}=await Promise.resolve().then(()=>(F1e(),B1e));return{id:z1e,diagram:t}},"loader"),gtt={id:z1e,detector:ptt,loader:mtt},G1e=gtt;var Z1e="kanban",Rtt=o(t=>/^ \s *kanban/.test(t),"detector"),Mtt=o(async()=>{let{diagram:t}=await Promise.resolve().then(()=>(Q1e(),K1e));return{id:Z1e,diagram:t}},"loader"),Itt={id:Z1e,detector:Rtt,loader:Mtt},J1e=Itt;var Rye="sankey",rrt=o(t=>/^ \s *sankey-beta/.test(t),"detector"),nrt=o(async()=>{let{diagram:t}=await Promise.resolve().then(()=>(Nye(),Dye));return{id:Rye,diagram:t}},"loader"),irt={id:Rye,detector:rrt,loader:nrt},Mye=irt;var Uye="packet",yrt=o(t=>/^ \s *packet-beta/.test(t),"detector"),vrt=o(async()=>{let{diagram:t}=await Promise.resolve().then(()=>(Vye(), $ ye));return{id:Uye,diagram:t}},"loader"),Hye={id:Uye,detector:yrt,loader:vrt};var qve="block",znt=o(t=>/^ \s *block-beta/.test(t),"detector"),Gnt=o(async()=>{let{diagram:t}=await Promise.resolve().then(()=>(Yve(),Wve));return{id:qve,diagram:t}},"loader"), $ nt={id:qve,detector:znt,loader:Gnt},Xve= $ nt;var y2e="architecture",mit=o(t=>/^ \s *architecture/.test(t),"detector"),git=o(async()=>{let{diagram:t}=await Promise.resolve().then(()=>(g2e(),m2e));return{id:y2e,diagram:t}},"loader"),yit={id:y2e,detector:mit,loader:git},v2e=yit;Zf();Vt();var x2e
` ;try{by(i)}catch{let h=sz(i);if(!h)throw new pp( ` Diagram $ { i } not found . ` );let{id:f,diagram:d}=await h();od(f,d)}let{db:a,parser:s,renderer:l,init:u}=by(i);return s.parser&&(s.parser.yy=a),a.clear?.(),u?.(n),r.title&&a.setDiagramTitle?.(r.title),await s.parse(e),new t(i,e,a,s,l)}async render(e,r){await this.renderer.draw(this.text,e,r,this)}getParser(){return this.parser}getType(){return this.type}};fr();var $ 2e=[];var V2e=o(()=>{ $ 2e.forEach(t=>{t()}), $ 2e=[]},"attachFunctions");ut();var U2e=o(t=>t.replace(/^ \s *%%(?!{)[^ \n ]+ \n ?/gm,"").trimStart(),"cleanupComments");Qb();ew();function H2e(t){let e=t.match(Kb);if(!e)return{text:t,metadata:{}};let r=Sm(e[1],{schema:Em})??{};r=typeof r=="object"&&!Array.isArray(r)?r:{};let n={};return r.displayMode&&(n.displayMode=r.displayMode.toString()),r.title&&(n.title=r.title.toString()),r.config&&(n.config=r.config),{text:t.slice(e[0].length),metadata:n}}o(H2e,"extractFrontMatter");hr();var bit=o(t=>t.replace(/ \r \n ?/g, `
` ).replace(/<( \w +)([^>]*)>/g,(e,r,n)=>"<"+r+n.replace(/="([^"]*)"/g,"=' $ 1'")+">"),"cleanupText"),wit=o(t=>{let{text:e,metadata:r}=H2e(t),{displayMode:n,title:i,config:a={}}=r;return n&&(a.gantt||(a.gantt={}),a.gantt.displayMode=n),{title:i,config:a,text:e}},"processFrontmatter"),Tit=o(t=>{let e=Ut.detectInit(t)??{},r=Ut.detectDirective(t,"wrap");return Array.isArray(r)?e.wrap=r.some(({type:n})=>n==="wrap"):r?.type==="wrap"&&(e.wrap=!0),{text:LX(t),directive:e}},"processDirectives");function bF(t){let e=bit(t),r=wit(e),n=Tit(r.text),i=Ds(r.config,n.directive);return t=U2e(n.text),{code:t,title:r.title,config:i}}o(bF,"preprocessDiagram");JC();a4();hr();function W2e(t){let e=new TextEncoder().encode(t),r=Array.from(e,n=>String.fromCodePoint(n)).join("");return btoa(r)}o(W2e,"toBase64");var kit=5e4,Eit="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa",Sit="sandbox",Cit="loose",Ait="http://www.w3.org/2000/svg",_it="http://www.w3.org/1999/xlink",Lit="http://www.w3.org/1999/xhtml",Dit="100%",Nit="100%",Rit="border:0;margin:0;",Mit="margin:0",Iit="allow-top-navigation-by-user-activation allow-popups",Oit='The "iframe" tag is not supported by your browser.',Pit=["foreignobject"],Bit=["dominant-baseline"];function K2e(t){let e=bF(t);return ly(),eG(e.config??{}),e}o(K2e,"processAndSetConfigs");async function Fit(t,e){z1();try{let{code:r,config:n}=K2e(t);return{diagramType:(await Q2e(r)).type,config:n}}catch(r){if(e?.suppressErrors)return!1;throw r}}o(Fit,"parse");var Y2e=o((t,e,r=[])=> `
. $ { t } $ { e } { $ { r . join ( " !important; " ) } ! important ; } ` ,"cssImportantStyles"),zit=o((t,e=new Map)=>{let r="";if(t.themeCSS!==void 0&&(r+= `
$ { t . themeCSS } ` ),t.fontFamily!==void 0&&(r+= `
: root { -- mermaid - font - family : $ { t . fontFamily } } ` ),t.altFontFamily!==void 0&&(r+= `
: root { -- mermaid - alt - font - family : $ { t . altFontFamily } } ` ),e instanceof Map){let s=t.htmlLabels??t.flowchart?.htmlLabels?["> *","span"]:["rect","polygon","ellipse","circle","path"];e.forEach(l=>{cr(l.styles)||s.forEach(u=>{r+=Y2e(l.id,u,l.styles)}),cr(l.textStyles)||(r+=Y2e(l.id,"tspan",(l?.textStyles||[]).map(u=>u.replace("color","fill"))))})}return r},"createCssStyles"),Git=o((t,e,r,n)=>{let i=zit(t,r),a=O $ (e,i,t.themeVariables);return CS(B2e( ` $ { n } { $ { a } } ` ),F2e)},"createUserStyles"), $ it=o((t="",e,r)=>{let n=t;return!r&&!e&&(n=n.replace(/marker-end="url \( [ \d +./:=?A-Za-z-]*?#/g,'marker-end="url(#')),n=Ma(n),n=n.replace(/<br>/g,"<br/>"),n},"cleanUpSvgCode"),Vit=o((t="",e)=>{let r=e?.viewBox?.baseVal?.height?e.viewBox.baseVal.height+"px":Nit,n=W2e( ` < body style = "${Mit}" > $ { t } < / b o d y > ` ) ; r e t u r n ` < i f r a m e s t y l e = " w i d t h : $ { D i t } ; h e i g h t : $ { r } ; $ { R i t } " s r c = " d a t a : t e x t / h t m l ; c h a r s e t = U T F - 8 ; b a s e 6 4 , $ { n } " s a n d b o x = " $ { I i t } " >
$ { Oit }
< / i f r a m e > ` } , " p u t I n t o I F r a m e " ) , q 2 e = o ( ( t , e , r , n , i ) = > { l e t a = t . a p p e n d ( " d i v " ) ; a . a t t r ( " i d " , r ) , n & & a . a t t r ( " s t y l e " , n ) ; l e t s = a . a p p e n d ( " s v g " ) . a t t r ( " i d " , e ) . a t t r ( " w i d t h " , " 1 0 0 % " ) . a t t r ( " x m l n s " , A i t ) ; r e t u r n i & & s . a t t r ( " x m l n s : x l i n k " , i ) , s . a p p e n d ( " g " ) , t } , " a p p e n d D i v S v g G " ) ; f u n c t i o n X 2 e ( t , e ) { r e t u r n t . a p p e n d ( " i f r a m e " ) . a t t r ( " i d " , e ) . a t t r ( " s t y l e " , " w i d t h : 1 0 0 % ; h e i g h t : 1 0 0 % ; " ) . a t t r ( " s a n d b o x " , " " ) } o ( X 2 e , " s a n d b o x e d I f r a m e " ) ; v a r U i t = o ( ( t , e , r , n ) = > { t . g e t E l e m e n t B y I d ( e ) ? . r e m o v e ( ) , t . g e t E l e m e n t B y I d ( r ) ? . r e m o v e ( ) , t . g e t E l e m e n t B y I d ( n ) ? . r e m o v e ( ) } , " r e m o v e E x i s t i n g E l e m e n t s " ) , H i t = o ( a s y n c f u n c t i o n ( t , e , r ) { z 1 ( ) ; l e t n = K 2 e ( e ) ; e = n . c o d e ; l e t i = C r ( ) ; Y . d e b u g ( i ) , e . l e n g t h > ( i ? . m a x T e x t S i z e ? ? k i t ) & & ( e = E i t ) ; l e t a = " # " + t , s = " i " + t , l = " # " + s , u = " d " + t , h = " # " + u , f = o ( ( ) = > { l e t R = V e ( p ? l : h ) . n o d e ( ) ; R & & " r e m o v e " i n R & & R . r e m o v e ( ) } , " r e m o v e T e m p E l e m e n t s " ) , d = V e ( " b o d y " ) , p = i . s e c u r i t y L e v e l = = = S i t , m = i . s e c u r i t y L e v e l = = = C i t , g = i . f o n t F a m i l y ; i f ( r ! = = v o i d 0 ) { i f ( r & & ( r . i n n e r H T M L = " " ) , p ) { l e t k = X 2 e ( V e ( r ) , s ) ; d = V e ( k . n o d e s ( ) [ 0 ] . c o n t e n t D o c u m e n t . b o d y ) , d . n o d e ( ) . s t y l e . m a r g i n = 0 } e l s e d = V e ( r ) ; q 2 e ( d , t , u , ` f o n t - f a m i l y : $ { g } ` , _ i t ) } e l s e { i f ( U i t ( d o c u m e n t , t , u , s ) , p ) { l e t k = X 2 e ( V e ( " b o d y " ) , s ) ; d = V e ( k . n o d e s ( ) [ 0 ] . c o n t e n t D o c u m e n t . b o d y ) , d . n o d e ( ) . s t y l e . m a r g i n = 0 } e l s e d = V e ( " b o d y " ) ; q 2 e ( d , t , u ) } l e t y , v ; t r y { y = a w a i t H 1 . f r o m T e x t ( e , { t i t l e : n . t i t l e } ) } c a t c h ( k ) { i f ( i . s u p p r e s s E r r o r R e n d e r i n g ) t h r o w f ( ) , k ; y = a w a i t H 1 . f r o m T e x t ( " e r r o r " ) , v = k } l e t x = d . s e l e c t ( h ) . n o d e ( ) , b = y . t y p e , w = x . f i r s t C h i l d , _ = w . f i r s t C h i l d , T = y . r e n d e r e r . g e t C l a s s e s ? . ( e , y ) , E = G i t ( i , b , T , a ) , L = d o c u m e n t . c r e a t e E l e m e n t ( " s t y l e " ) ; L . i n n e r H T M L = E , w . i n s e r t B e f o r e ( L , _ ) ; t r y { a w a i t y . r e n d e r e r . d r a w ( e , t , _ x , y ) } c a t c h ( k ) { t h r o w i . s u p p r e s s E r r o r R e n d e r i n g ? f ( ) : W 0 e . d r a w ( e , t , _ x ) , k } l e t S = d . s e l e c t ( ` $ { h } s v g ` ) , A = y . d b . g e t A c c T i t l e ? . ( ) , I = y . d b . g e t A c c D e s c r i p t i o n ? . ( ) ; Y i t ( b , S , A , I ) , d . s e l e c t ( ` [ i d = " $ { t } " ] ` ) . s e l e c t A l l ( " f o r e i g n o b j e c t > * " ) . a t t r ( " x m l n s " , L i t ) ; l e t D = d . s e l e c t ( h ) . n o d e ( ) . i n n e r H T M L ; i f ( Y . d e b u g ( " c o n f i g . a r r o w M a r k e r A b s o l u t e " , i . a r r o w M a r k e r A b s o l u t e ) , D = $ i t ( D , p , x r ( i . a r r o w M a r k e r A b s o l u t e ) ) , p ) { l e t k = d . s e l e c t ( h + " s v g " ) . n o d e ( ) ; D = V i t ( D , k ) } e l s e m | | ( D = j 2 e . d e f a u l t . s a n i t i z e ( D , { A D D _ T A G S : P i t , A D D _ A T T R : B i t } ) ) ; i f ( V 2 e ( ) , v ) t h r o w v ; r e t u r n f ( ) , { d i a g r a m T y p e : b , s v g : D , b i n d F u n c t i o n s : y . d b . b i n d F u n c t i o n s } } , " r e n d e r " ) ; f u n c t i o n W i t ( t = { } ) { l e t e = V n ( { } , t ) ; e ? . f o n t F a m i l y & & ! e . t h e m e V a r i a b l e s ? . f o n t F a m i l y & & ( e . t h e m e V a r i a b l e s | | ( e . t h e m e V a r i a b l e s = { } ) , e . t h e m e V a r i a b l e s . f o n t F a m i l y = e . f o n t F a m i l y ) , Q z ( e ) , e ? . t h e m e & & e . t h e m e i n D o ? e . t h e m e V a r i a b l e s = D o [ e . t h e m e ] . g e t T h e m e V a r i a b l e s ( e . t h e m e V a r i a b l e s ) : e & & ( e . t h e m e V a r i a b l e s = D o . d e f a u l t . g e t T h e m e V a r i a b l e s ( e . t h e m e V a r i a b l e s ) ) ; l e t r = t y p e o f e = = " o b j e c t " ? i C ( e ) : a C ( ) ; J 1 ( r . l o g L e v e l ) , z 1 ( ) } o ( W i t , " i n i t i a l i z e " ) ; v a r Q 2 e = o ( ( t , e = { } ) = > { l e t { c o d e : r } = b F ( t ) ; r e t u r n H 1 . f r o m T e x t ( r , e ) } , " g e t D i a g r a m F r o m T e x t " ) ; f u n c t i o n Y i t ( t , e , r , n ) { z 2 e ( e , t ) , G 2 e ( e , r , n , e . a t t r ( " i d " ) ) } o ( Y i t , " a d d A 1 1 y I n f o " ) ; v a r H f = O b j e c t . f r e e z e ( { r e n d e r : H i t , p a r s e : F i t , g e t D i a g r a m F r o m T e x t : Q 2 e , i n i t i a l i z e : W i t , g e t C o n f i g : C r , s e t C o n f i g : o 4 , g e t S i t e C o n f i g : a C , u p d a t e S i t e C o n f i g : Z z , r e s e t : o ( ( ) = > { l y ( ) } , " r e s e t " ) , g l o b a l R e s e t : o ( ( ) = > { l y ( p h ) } , " g l o b a l R e s e t " ) , d e f a u l t C o n f i g : p h } ) ; J 1 ( C r ( ) . l o g L e v e l ) ; l y ( C r ( ) ) ; J v ( ) ; h r ( ) ; v a r q i t = o ( ( t , e , r ) = > { Y . w a r n ( t ) , s 9 ( t ) ? ( r & & r ( t . s t r , t . h a s h ) , e . p u s h ( { . . . t , m e s s a g e : t . s t r , e r r o r : t } ) ) : ( r & & r ( t ) , t i n s t a n c e o f E r r o r & & e . p u s h ( { s t r : t . m e s s a g e , m e s s a g e : t . m e s s a g e , h a s h : t . n a m e , e r r o r : t } ) ) } , " h a n d l e E r r o r " ) , Z 2 e = o ( a s y n c f u n c t i o n ( t = { q u e r y S e l e c t o r : " . m e r m a i d " } ) { t r y { a w a i t X i t ( t ) } c a t c h ( e ) { i f ( s 9 ( e ) & & Y . e r r o r ( e . s t r ) , u h . p a r s e E r r o r & & u h . p a r s e E r r o r ( e ) , ! t . s u p p r e s s E r r o r s ) t h r o w Y . e r r o r ( " U s e t h e s u p p r e s s E r r o r s o p t i o n t o s u p p r e s s t h e s e e r r o r s " ) , e } } , " r u n " ) , X i t = o ( a s y n c f u n c t i o n ( { p o s t R e n d e r C a l l b a c k : t , q u e r y S e l e c t o r : e , n o d e s : r } = { q u e r y S e l e c t o r : " . m e r m a i d " } ) { l e t n = H f . g e t C o n f i g ( ) ; Y . d e b u g ( ` $ { t ? " " : " N o " } C a l l b a c k f u n c t i o n f o u n d ` ) ; l e t i ; i f ( r ) i = r ; e l s e i f ( e ) i = d o c u m e n t . q u e r y S e l e c t o r A l l ( e ) ; e l s e t h r o w n e w E r r o r ( " N o d e s a n d q u e r y S e l e c t o r a r e b o t h u n d e f i n e d " ) ; Y . d e b u g ( ` F o u n d $ { i . l e n g t h } d i a g r a m s ` ) , n ? . s t a r t O n L o a d ! = = v o i d 0 & & ( Y . d e b u g ( " S t a r t O n L o a d : " + n ? . s t a r t O n L o a d ) , H f . u p d a t e S i t e C o n f i g ( { s t a r t O n L o a d : n ? . s t a r t O n L o a d } ) ) ; l e t a = n e w U t . I n i t I D G e n e r a t o r ( n . d e t e r m i n i s t i c I d s , n . d e t e r m i n i s t i c I D S e e d ) , s , l = [ ] ; f o r ( l e t u o f A r r a y . f r o m ( i ) ) { Y . i n f o ( " R e n d e r i n g d i a g r a m : " + u . i d ) ; i f ( u . g e t A t t r i b u t e ( " d a t a - p r o c e s s e d " ) ) c o n t i n u e ; u . s e t A t t r i b u t e ( " d a t a - p r o c e s s e d " , " t r u e " ) ; l e t h = ` m e r m a i d - $ { a . n e x t ( ) } ` ; s = u . i n n e r H T M L , s = j b ( U t . e n t i t y D e c o d e ( s
/*! Check if previously processed */
/ * !
* Wait for document loaded before starting the execution
* /
/ * ! B u n d l e d l i c e n s e i n f o r m a t i o n :
dompurify / dist / purify . js :
( * ! @ license DOMPurify 3.1 . 6 | ( c ) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github . com / cure53 / DOMPurify / blob / 3.1 . 6 / LICENSE * )
js - yaml / dist / js - yaml . mjs :
( * ! js - yaml 4.1 . 0 https : //github.com/nodeca/js-yaml @license MIT *)
lodash - es / lodash . js :
( * *
* @ license
* Lodash ( Custom Build ) < https : //lodash.com/>
* Build : ` lodash modularize exports="es" -o ./ `
* Copyright OpenJS Foundation and other contributors < https : //openjsf.org/>
* Released under MIT license < https : //lodash.com/license>
* Based on Underscore . js 1.8 . 3 < http : //underscorejs.org/LICENSE>
* Copyright Jeremy Ashkenas , DocumentCloud and Investigative Reporters & Editors
* )
cytoscape / dist / cytoscape . esm . mjs :
( * !
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)
* )
( * !
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
* )
( * ! Bezier curve function generator . Copyright Gaetan Renaudeau . MIT License : http : //en.wikipedia.org/wiki/MIT_License *)
( * ! Runge - Kutta spring physics function generator . Adapted from Framer . js , copyright Koen Bok . MIT License : http : //en.wikipedia.org/wiki/MIT_License *)
* /
globalThis . mermaid = globalThis . _ _esbuild _esm _mermaid . default ;