| 1 | import{a as pe}from"./chunk-APNCZOFE.js";import{a as fe}from"./chunk-ST54LLJ3.js";import{b as ge,c as ue}from"./chunk-F57TI45K.js";import"./chunk-TNJPXCAB.js";import"./chunk-JHZIBEJC.js";import"./chunk-W7PRDKNL.js";import"./chunk-DRBE27N3.js";import"./chunk-PRKFGJVH.js";import"./chunk-VDPKVNDJ.js";import"./chunk-WXI2IBAH.js";import"./chunk-WBLSVR3V.js";import"./chunk-GP6TCC26.js";import{D as de,G as w,Y as V,c as ce,d as le,e as he,r as R}from"./chunk-QFMJV7VH.js";import{g as c,i as T}from"./chunk-JRNAXTJ7.js";import"./chunk-EGBSMT36.js";import{j as ae}from"./chunk-RMXJBC7V.js";var y=[];for(let e=0;e<256;++e)y.push((e+256).toString(16).slice(1));function me(e,n=0){return(y[e[n+0]]+y[e[n+1]]+y[e[n+2]]+y[e[n+3]]+"-"+y[e[n+4]]+y[e[n+5]]+"-"+y[e[n+6]]+y[e[n+7]]+"-"+y[e[n+8]]+y[e[n+9]]+"-"+y[e[n+10]]+y[e[n+11]]+y[e[n+12]]+y[e[n+13]]+y[e[n+14]]+y[e[n+15]]).toLowerCase()}var X,Se=new Uint8Array(16);function z(){if(!X){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");X=crypto.getRandomValues.bind(crypto)}return X(Se)}var xe=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),W={randomUUID:xe};function De(e,n,i){if(W.randomUUID&&!n&&!e)return W.randomUUID();e=e||{};let l=e.random??e.rng?.()??z();if(l.length<16)throw new Error("Random bytes length must be >= 16");if(l[6]=l[6]&15|64,l[8]=l[8]&63|128,n){if(i=i||0,i<0||i+16>n.length)throw new RangeError(`UUID byte range ${i}:${i+15} is out of buffer bounds`);for(let g=0;g<16;++g)n[i+g]=l[g];return n}return me(l)}var Y=De;var q=(function(){var e=c(function(N,r,t,o){for(t=t||{},o=N.length;o--;t[N[o]]=r);return t},"o"),n=[1,4],i=[1,13],l=[1,12],g=[1,15],h=[1,16],f=[1,20],E=[1,19],p=[6,7,8],J=[1,26],K=[1,24],Q=[1,25],_=[6,7,11],Z=[1,6,13,15,16,19,22],ee=[1,33],te=[1,34],I=[1,6,7,11,13,15,16,19,22],B={trace:c(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:c(function(r,t,o,a,u,s,C){var d=s.length-1;switch(u){case 6:case 7:return a;case 8:a.getLogger().trace("Stop NL ");break;case 9:a.getLogger().trace("Stop EOF ");break;case 11:a.getLogger().trace("Stop NL2 ");break;case 12:a.getLogger().trace("Stop EOF2 ");break;case 15:a.getLogger().info("Node: ",s[d].id),a.addNode(s[d-1].length,s[d].id,s[d].descr,s[d].type);break;case 16:a.getLogger().trace("Icon: ",s[d]),a.decorateNode({icon:s[d]});break;case 17:case 21:a.decorateNode({class:s[d]});break;case 18:a.getLogger().trace("SPACELIST");break;case 19:a.getLogger().trace("Node: ",s[d].id),a.addNode(0,s[d].id,s[d].descr,s[d].type);break;case 20:a.decorateNode({icon:s[d]});break;case 25:a.getLogger().trace("node found ..",s[d-2]),this.$={id:s[d-1],descr:s[d-1],type:a.getType(s[d-2],s[d])};break;case 26:this.$={id:s[d],descr:s[d],type:a.nodeType.DEFAULT};break;case 27:a.getLogger().trace("node found ..",s[d-3]),this.$={id:s[d-3],descr:s[d-1],type:a.getType(s[d-2],s[d])};break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:n},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:n},{6:i,7:[1,10],9:9,12:11,13:l,14:14,15:g,16:h,17:17,18:18,19:f,22:E},e(p,[2,3]),{1:[2,2]},e(p,[2,4]),e(p,[2,5]),{1:[2,6],6:i,12:21,13:l,14:14,15:g,16:h,17:17,18:18,19:f,22:E},{6:i,9:22,12:11,13:l,14:14,15:g,16:h,17:17,18:18,19:f,22:E},{6:J,7:K,10:23,11:Q},e(_,[2,22],{17:17,18:18,14:27,15:[1,28],16:[1,29],19:f,22:E}),e(_,[2,18]),e(_,[2,19]),e(_,[2,20]),e(_,[2,21]),e(_,[2,23]),e(_,[2,24]),e(_,[2,26],{19:[1,30]}),{20:[1,31]},{6:J,7:K,10:32,11:Q},{1:[2,7],6:i,12:21,13:l,14:14,15:g,16:h,17:17,18:18,19:f,22:E},e(Z,[2,14],{7:ee,11:te}),e(I,[2,8]),e(I,[2,9]),e(I,[2,10]),e(_,[2,15]),e(_,[2,16]),e(_,[2,17]),{20:[1,35]},{21:[1,36]},e(Z,[2,13],{7:ee,11:te}),e(I,[2,11]),e(I,[2,12]),{21:[1,37]},e(_,[2,25]),e(_,[2,27])],defaultActions:{2:[2,1],6:[2,2]},parseError:c(function(r,t){if(t.recoverable)this.trace(r);else{var o=new Error(r);throw o.hash=t,o}},"parseError"),parse:c(function(r){var t=this,o=[0],a=[],u=[null],s=[],C=this.table,d="",U=0,ie=0,ne=0,be=2,se=1,Ee=s.slice.call(arguments,1),m=Object.create(this.lexer),v={yy:{}};for(var F in this.yy)Object.prototype.hasOwnProperty.call(this.yy,F)&&(v.yy[F]=this.yy[F]);m.setInput(r,v.yy),v.yy.lexer=m,v.yy.parser=this,typeof m.yylloc>"u"&&(m.yylloc={});var j=m.yylloc;s.push(j);var _e=m.options&&m.options.ranges;typeof v.yy.parseError=="function"?this.parseError=v.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ke(k){o.length=o.length-2*k,u.length=u.length-k,s.length=s.length-k}c(ke,"popStack");function re(){var k;return k=a.pop()||m.lex()||se,typeof k!="number"&&(k instanceof Array&&(a=k,k=a.pop()),k=t.symbols_[k]||k),k}c(re,"lex");for(var b,G,L,S,we,$,O={},P,x,oe,M;;){if(L=o[o.length-1],this.defaultActions[L]?S=this.defaultActions[L]:((b===null||typeof b>"u")&&(b=re()),S=C[L]&&C[L][b]),typeof S>"u"||!S.length||!S[0]){var H="";M=[];for(P in C[L])this.terminals_[P]&&P>be&&M.push("'"+this.terminals_[P]+"'");m.showPosition?H="Parse error on line "+(U+1)+`: |
| 2 | `+m.showPosition()+` |
| 3 | Expecting `+M.join(", ")+", got '"+(this.terminals_[b]||b)+"'":H="Parse error on line "+(U+1)+": Unexpected "+(b==se?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(H,{text:m.match,token:this.terminals_[b]||b,line:m.yylineno,loc:j,expected:M})}if(S[0]instanceof Array&&S.length>1)throw new Error("Parse Error: multiple actions possible at state: "+L+", token: "+b);switch(S[0]){case 1:o.push(b),u.push(m.yytext),s.push(m.yylloc),o.push(S[1]),b=null,G?(b=G,G=null):(ie=m.yyleng,d=m.yytext,U=m.yylineno,j=m.yylloc,ne>0&&ne--);break;case 2:if(x=this.productions_[S[1]][1],O.$=u[u.length-x],O._$={first_line:s[s.length-(x||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(x||1)].first_column,last_column:s[s.length-1].last_column},_e&&(O._$.range=[s[s.length-(x||1)].range[0],s[s.length-1].range[1]]),$=this.performAction.apply(O,[d,ie,U,v.yy,S[1],u,s].concat(Ee)),typeof $<"u")return $;x&&(o=o.slice(0,-1*x*2),u=u.slice(0,-1*x),s=s.slice(0,-1*x)),o.push(this.productions_[S[1]][0]),u.push(O.$),s.push(O._$),oe=C[o[o.length-2]][o[o.length-1]],o.push(oe);break;case 3:return!0}}return!0},"parse")},ye=(function(){var N={EOF:1,parseError:c(function(t,o){if(this.yy.parser)this.yy.parser.parseError(t,o);else throw new Error(t)},"parseError"),setInput:c(function(r,t){return this.yy=t||this.yy||{},this._input=r,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:c(function(){var r=this._input[0];this.yytext+=r,this.yyleng++,this.offset++,this.match+=r,this.matched+=r;var t=r.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),r},"input"),unput:c(function(r){var t=r.length,o=r.split(/(?:\r\n?|\n)/g);this._input=r+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var a=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),o.length-1&&(this.yylineno-=o.length-1);var u=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:o?(o.length===a.length?this.yylloc.first_column:0)+a[a.length-o.length].length-o[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[u[0],u[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},"unput"),more:c(function(){return this._more=!0,this},"more"),reject:c(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). |
| 4 | `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:c(function(r){this.unput(this.match.slice(r))},"less"),pastInput:c(function(){var r=this.matched.substr(0,this.matched.length-this.match.length);return(r.length>20?"...":"")+r.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:c(function(){var r=this.match;return r.length<20&&(r+=this._input.substr(0,20-r.length)),(r.substr(0,20)+(r.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:c(function(){var r=this.pastInput(),t=new Array(r.length+1).join("-");return r+this.upcomingInput()+` |
nothing calls this directly
no test coverage detected