`);for(var[r,{detector:n}]of Object.entries(Kt))if(n(t,e))return r;throw new Xt("No diagram type detected matching given configuration for text: "+t)},"detectType"),Qt=me((...t)=>{for(var{id:e,detector:r,loader:n}of t)Jt(e,r,n)},"registerLazyLoadedDiagrams"),Jt=me((t,e,r)=>{Kt[t]&&R.warn(`Detectorwithkey${t}alreadyexists.Overwriting.`),Kt[t]={detector:e,loader:r},R.debug(`Detectorwithkey${t}added`+(r?" with loader":""))},"addDetector"),te=me(t=>Kt[t].loader,"getDiagramLoader")}),jr=t(()=>{function B(){this.yy={}}var t=me(function(t,e,r,n){for(r=r||{},n=t.length;n--;r[t[n]]=e);return r},"o"),e=[1,24],r=[1,25],F=[1,26],$=[1,27],z=[1,28],n=[1,63],i=[1,64],a=[1,65],s=[1,66],o=[1,67],l=[1,68],h=[1,69],u=[1,29],d=[1,30],p=[1,31],g=[1,32],f=[1,33],m=[1,34],y=[1,35],v=[1,36],x=[1,37],b=[1,38],w=[1,39],k=[1,40],T=[1,41],_=[1,42],E=[1,43],C=[1,44],S=[1,45],A=[1,46],L=[1,47],N=[1,48],I=[1,50],U=[1,51],G=[1,52],q=[1,53],j=[1,54],Y=[1,55],H=[1,56],W=[1,57],V=[1,58],X=[1,59],K=[1,60],Z=[14,42],Q=[14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],J=[12,14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],M=[1,82],R=[1,83],D=[1,84],O=[1,85],P=[12,14,42],tt=[12,14,33,42],et=[12,14,33,42,76,77,79,80],rt=[12,33],nt=[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],e={trace:me(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,direction:5,direction_tb:6,direction_bt:7,direction_rl:8,direction_lr:9,graphConfig:10,C4_CONTEXT:11,NEWLINE:12,statements:13,EOF:14,C4_CONTAINER:15,C4_COMPONENT:16,C4_DYNAMIC:17,C4_DEPLOYMENT:18,otherStatements:19,diagramStatements:20,otherStatement:21,title:22,accDescription:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,boundaryStatement:29,boundaryStartStatement:30,boundaryStopStatement:31,boundaryStart:32,LBRACE:33,ENTERPRISE_BOUNDARY:34,attributes:35,SYSTEM_BOUNDARY:36,BOUNDARY:37,CONTAINER_BOUNDARY:38,NODE:39,NODE_L:40,NODE_R:41,RBRACE:42,diagramStatement:43,PERSON:44,PERSON_EXT:45,SYSTEM:46,SYSTEM_DB:47,SYSTEM_QUEUE:48,SYSTEM_EXT:49,SYSTEM_EXT_DB:50,SYSTEM_EXT_QUEUE:51,CONTAINER:52,CONTAINER_DB:53,CONTAINER_QUEUE:54,CONTAINER_EXT:55,CONTAINER_EXT_DB:56,CONTAINER_EXT_QUEUE:57,COMPONENT:58,COMPONENT_DB:59,COMPONENT_QUEUE:60,COMPONENT_EXT:61,COMPONENT_EXT_DB:62,COMPONENT_EXT_QUEUE:63,REL:64,BIREL:65,REL_U:66,REL_D:67,REL_L:68,REL_R:69,REL_B:70,REL_INDEX:71,UPDATE_EL_STYLE:72,UPDATE_REL_STYLE:73,UPDATE_LAYOUT_CONFIG:74,attribute:75,STR:76,STR_KEY:77,STR_VALUE:78,ATTRIBUTE:79,ATTRIBUTE_EMPTY:80,$accept:0,$end:1},terminals_:{2:"error",6:"direction_tb",7:"direction_bt",8:"direction_rl",9:"direction_lr",11:"C4_CONTEXT",12:"NEWLINE",14:"EOF",15:"C4_CONTAINER",16:"C4_COMPONENT",17:"C4_DYNAMIC",18:"C4_DEPLOYMENT",22:"title",23:"accDescription",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"LBRACE",34:"ENTERPRISE_BOUNDARY",36:"SYSTEM_BOUNDARY",37:"BOUNDARY",38:"CONTAINER_BOUNDARY",39:"NODE",40:"NODE_L",41:"NODE_R",42:"RBRACE",44:"PERSON",45:"PERSON_EXT",46:"SYSTEM",47:"SYSTEM_DB",48:"SYSTEM_QUEUE",49:"SYSTEM_EXT",50:"SYSTEM_EXT_DB",51:"SYSTEM_EXT_QUEUE",52:"CONTAINER",53:"CONTAINER_DB",54:"CONTAINER_QUEUE",55:"CONTAINER_EXT",56:"CONTAINER_EXT_DB",57:"CONTAINER_EXT_QUEUE",58:"COMPONENT",59:"COMPONENT_DB",60:"COMPONENT_QUEUE",61:"COMPONENT_EXT",62:"COMPONENT_EXT_DB",63:"COMPONENT_EXT_QUEUE",64:"REL",65:"BIREL",66:"REL_U",67:"REL_D",68:"REL_L",69:"REL_R",70:"REL_B",71:"REL_INDEX",72:"UPDATE_EL_STYLE",73:"UPDATE_REL_STYLE",74:"UPDATE_LAYOUT_CONFIG",76:"STR",77:"STR_KEY",78:"STR_VALUE",79:"ATTRIBUTE",80:"ATTRIBUTE_EMPTY"},productions_:[0,[3,1],[3,1],[5,1],[5,1],[5,1],[5,1],[4,1],[10,4],[10,4],[10,4],[10,4],[10,4],[13,1],[13,1],[13,2],[19,1],[19,2],[19,3],[21,1],[21,1],[21,2],[21,2],[21,1],[29,3],[30,3],[30,3],[30,4],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[31,1],[20,1],[20,2],[20,3],
Expecting`+A.join(", ")+", got '"+(this.terminals_[x]||x)+"'":"Parse error on line "+(c+1)+": Unexpected "+(x==d?"end of input":"'"+(this.terminals_[x]||x)+"'"),this.parseError(S,{text:g.match,token:this.terminals_[x]||x,line:g.yylineno,loc:m,expected:A})}if(k[0]instanceof Array&&1<k.length)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+x);switch(k[0]){case 1:n.push(x),a.push(g.yytext),s.push(g.yylloc),n.push(k[1]),x=null,b?(x=b,b=null):(h=g.yyleng,l=g.yytext,c=g.yylineno,m=g.yylloc,0<u&&u--);break;case 2:if(_=this.productions_[k[1]][1],C.$=a[a.length-_],C._$={first_line:s[s.length-(_||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(_||1)].first_column,last_column:s[s.length-1].last_column},y&&(C._$.range=[s[s.length-(_||1)].range[0],s[s.length-1].range[1]]),typeof(E=this.performAction.apply(C,[l,h,c,f.yy,k[1],a,s].concat(p)))<"u")return E;_&&(n=n.slice(0,-1*_*2),a=a.slice(0,-1*_),s=s.slice(0,-1*_)),n.push(this.productions_[k[1]][0]),a.push(C.$),s.push(C._$),E=o[n[n.length-2]][n[n.length-1]],n.push(E);break;case 3:return!0}}return!0},"parse")},r={EOF:1,parseError:me(function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},"parseError"),setInput:me(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:me(function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},"input"),unput:me(function(t){var e=t.length,r=t.split(/(?:\r\n?|\n)/g),t=(this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e,this.match.split(/(?:\r\n?|\n)/g)),n=(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),r.length-1&&(this.yylineno-=r.length-1),this.yylloc.range);return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:r?(r.length===t.length?this.yylloc.first_column:0)+t[t.length-r.length].length-r[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[n[0],n[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},"unput"),more:me(function(){return this._more=!0,this},"more"),reject:me(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+`.Youcanonlyinvokereject()inthelexerwhenthelexerisofthebacktrackingpersuasion(options.backtrack_lexer=true).
`+e+"^"},"showPosition"),test_match:me(function(t,e){var r,n;if(this.options.backtrack_lexer&&(n={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges)&&(n.yylloc.range=this.yylloc.range.slice(0)),(r=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+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],r=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),r)return r;if(this._backtrack)for(var i in n)this[i]=n[i];return!1},"test_match"),next:me(function(){if(this.done)return this.EOF;var t,e,r,n;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;a<i.length;a++)if((r=this._input.match(this.rules[i[a]]))&&(!e||r[0].length>e[0].length)){if(e=r,n=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(r,i[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,i[n]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`.Unrecognizedtext.
pleasereportwhatinputcausedthisbug`);return{type:"verb",mode:"text",body:n=n.slice(1,-1),star:i}}hc.hasOwnProperty(e[0])&&!ps[this.mode][e[0]]&&(this.settings.strict&&"math"===this.mode&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+e[0]+'" used in math mode',t),e=hc[e[0]]+e.slice(1));var r=Xl.exec(e);if(r&&("i"===(e=e.substring(0,r.index))?e="ı":"j"===e&&(e="ȷ")),ps[this.mode][e]){this.settings.strict&&"math"===this.mode&&0<=Ns.indexOf(e)&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+e[0]+'" used in math mode',t);var n=ps[this.mode][e].group,i=ca.range(t),a=us.hasOwnProperty(n)?{type:"atom",mode:this.mode,family:n,loc:i,text:e}:{type:n,mode:this.mode,loc:i,text:e}}else{if(!(128<=e.charCodeAt(0)))return null;this.settings.strict&&(Bi(e.charCodeAt(0))?"math"===this.mode&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+e[0]+'" used in math mode',t):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+e[0]+'" ('+e.charCodeAt(0)+")",t)),a={type:"textord",mode:"text",loc:ca.range(t),text:e}}if(this.consume(),r)for(var s=0;s<r[0].length;s++){var o=r[0][s];if(!cc[o])throw new X("Unknown accent ' "+o+"'",t);var l=cc[o][this.mode]||cc[o].text;if(!l)throw new X("Accent "+o+" unsupported in "+this.mode+" mode",t);a={type:"accent",mode:this.mode,loc:ca.range(t),label:l,isStretchy:!1,isShifty:!0,base:a}}return a}}).endOfExpression=["}","\\endgroup","\\end","\\right","&"],dc=me(function(t,e){if(!("string"==typeof t||t instanceof String))throw new TypeError("KaTeX can only parse string typed expression");delete(t=new uc(t,e)).gullet.macros.current["\\df@tag"];var r=t.parse();if(delete t.gullet.macros.current["\\current@color"],delete t.gullet.macros.current["\\color"],t.gullet.macros.get("\\df@tag")){if(!e.displayMode)throw new X("\\tag works only in display equations");r=[{type:"tag",mode:"text",body:r,tag:t.subparse([new ha("\\df@tag")])}]}return r},"parseTree"),m=me(function(t,e,r){e.textContent="",t=mc(t,r).toNode(),e.appendChild(t)},"render"),typeof document<"u"&&"CSS1Compat"!==document.compatMode&&(typeof console<"u"&&console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype."),m=me(function(){throw new X("KaTeX doesn't work in quirks mode.")},"render")),pc=me(function(t,e){return mc(t,e).toMarkup()},"renderToString"),gc=me(function(t,e){return e=new va(e),dc(t,e)},"generateParseTree"),fc=me(function(t,e,r){if(!r.throwOnError&&t instanceof X)return(e=Z.makeSpan(["katex-error"],[new os(e)])).setAttribute("title",t.toString()),e.setAttribute("style","color:"+r.errorColor),e;throw t},"renderError"),mc=me(function(t,e){e=new va(e);try{var r=dc(t,e);return _o(r,t,e)}catch(r){return fc(r,t,e)}},"renderToDomTree"),y=me(function(t,e){e=new va(e);try{var r=dc(t,e);return Eo(r,t,e)}catch(r){return fc(r,t,e)}},"renderToHTMLTree"),yc={version:"0.16.11",render:m,renderToString:pc,ParseError:X,SETTINGS_SCHEMA:ya,__parse:gc,__renderToDomTree:mc,__renderToHTMLTree:y,__setFontMetrics:Fi,__defineSymbol:o,__defineFunction:l,__defineMacro:h,__domTree:{Span:ns,Anchor:is,SymbolNode:os,SvgNode:ls,PathNode:cs,LineNode:hs}}});function xc(){let e="data-temp-href-target";Ii.addHook("beforeSanitizeAttributes",t=>{t instanceof Element&&"A"===t.tagName&&t.hasAttribute("target")&&t.setAttribute(e,t.getAttribute("target")??"")}),Ii.addHook("afterSanitizeAttributes",t=>{t instanceof Element&&"A"===t.tagName&&t.hasAttribute(e)&&(t.setAttribute("target",t.getAttribute(e)??""),t.removeAttribute(e),"_blank"===t.getAttribute("target"))&&t.setAttribute("rel","noopener")})}var bc,wc,kc,Tc,_c,Ec,Cc,Sc,Ac,Lc,Nc,Ic,Mc,Rc,Dc,Oc,Pc,Bc,Fc,$c,zc,Uc,Gc,qc,L,jc,Yc,Hc,Wc,Vc,Xc,Kc,Zc,Qc=t(()=>{Mi(),bc=/<br\s*\/?>/gi,wc=me(t=>t?Nc(t).replace(/\\n/g,"#br#").split("#br#"):[""],"getRows"),kc=(()=>{let t=!1;return()=>{t||(xc(),t=!0)}})(),me(xc,"setupDompurifyHooks"),Tc=me(t=>(kc(),Ii.sanitize(t)),"removeScript"),_c=me((t,e)=>(!1!==e.flowchart?.htmlLabels&&("antiscr
`,"ig");t=t.trim().replace(r,"").replace(/'/gm,'"'),R.debug(`Detectingdiagramdirective${null!==e?" type:"+e:""}basedonthetext:`+t);for(var n,i,a,s=[];null!==(n=Wt.exec(t));)n.index===Wt.lastIndex&&Wt.lastIndex++,(n&&!e||e&&n[1]?.match(e)||e&&n[2]?.match(e))&&(i=n[1]||n[2],a=n[3]?n[3].trim():n[4]?JSON.parse(n[4].trim()):null,s.push({type:i,args:a}));return 0===s.length?{type:t,args:null}:1===s.length?s[0]:s}catch(r){return R.error(`ERROR:${r.message}-Unabletoparsedirectivetype:'${e}'basedonthetext:'${t}'`),{type:void 0,args:null}}},"detectDirective"),C_=me(function(t){return t.replace(Wt,"")},"removeDirectives"),S_=me(function(t,e){for(var[r,n]of e.entries())if(n.match(t))return r;return-1},"isSubstringInArray"),me(o_,"interpolateToCurve"),me(l_,"formatUrl"),A_=me((e,...t)=>{let r=e.split("."),n=r.length-1,i=r[n],a=window;for(let t=0;t<n;t++)if(!(a=a[r[t]]))return void R.error(`Functionname:${e}notfoundinwindow`);a[i](...t)},"runFunc"),me(c_,"distance"),me(h_,"traverseEdge"),me(u_,"calcLabelPosition"),L_=me((t,e=2)=>(e=Math.pow(10,e),Math.round(t*e)/e),"roundNumber"),N_=me((t,e)=>{let r,n=e;for(var i of t){if(r){var a=c_(i,r);if(a<n)n-=a;else{if((a=n/a)<=0)return r;if(1<=a)return{x:i.x,y:i.y};if(0<a&&a<1)return{x:L_((1-a)*r.x+a*i.x,5),y:L_((1-a)*r.y+a*i.y,5)}}}r=i}throw new Error("Could not find a suitable point for the given distance")},"calculatePoint"),I_=me((t,e,r)=>{R.info("our points "+JSON.stringify(e)),e[0]!==r&&(e=e.reverse());var r=N_(e,25),t=t?10:5,n=Math.atan2(e[0].y-r.y,e[0].x-r.x),i={x:0,y:0};return i.x=Math.sin(n)*t+(e[0].x+r.x)/2,i.y=-Math.cos(n)*t+(e[0].y+r.y)/2,i},"calcCardinalityPosition"),me(d_,"calcTerminalLabelPosition"),me(p_,"getStylesFromArray"),M_=0,R_=me(()=>(M_++,"id-"+Math.random().toString(36).substr(2,12)+"-"+M_),"generateId"),me(g_,"makeRandomHex"),D_=me(t=>g_(t.length),"random"),O_=me(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"),P_=me(function(t,e){var r=e.text.replace(L.lineBreakRegex," "),[,n]=j_(e.fontSize);return(t=t.append("text")).attr("x",e.x),t.attr("y",e.y),t.style("text-anchor",e.anchor),t.style("font-family",e.fontFamily),t.style("font-size",n),t.style("font-weight",e.fontWeight),t.attr("fill",e.fill),void 0!==e.class&&t.attr("class",e.class),(n=t.append("tspan")).attr("x",e.x+2*e.textMargin),n.attr("fill",e.fill),n.text(r),t},"drawSimpleText"),B_=_k((t,s,o)=>{if(!t||(o=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},o),L.lineBreakRegex.test(t)))return t;let l=t.split(" ").filter(Boolean),c=[],h="";return l.forEach((t,e)=>{var r,n,i=m_(t+" ",o),a=m_(h,o);h=s<i?({hyphenatedStrings:r,remainingWord:n}=F_(t,s,"-",o),c.push(h,...r),n):s<=a+i?(c.push(h),t):[h,t].filter(Boolean).join(" "),e+1===l.length&&c.push(h)}),c.filter(t=>""!==t).join(o.joinWith)},(t,e,r)=>""+t+e+r.fontSize+r.fontWeight+r.fontFamily+r.joinWith),F_=_k((t,n,i="-",a)=>{a=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},a);let s=[...t],o=[],l="";return s.forEach((t,e)=>{var r,t=""+l+t;l=m_(t,a)>=n?(e+=1,e=s.length===e,r=t+i,o.push(e?t:r),""):t}),{hyphenatedStrings:o,remainingWord:l}},(t,e,r="-",n)=>""+t+e+r+n.fontSize+n.fontWeight+n.fontFamily),me(f_,"calculateTextHeight"),me(m_,"calculateTextWidth"),$_=_k((t,e)=>{var{fontSize:e=12,fontFamily:r="Arial",fontWeight:n=400}=e;if(!t)return{width:0,height:0};var[,i]=j_(e),e=["sans-serif",r],a=t.split(L.lineBreakRegex),s=[];if(!(r=O("body")).remove)return{width:0,height:0,lineHeight:0};var o,l=r.append("svg");for(o of e){var c,h={width:0,height:0,lineHeight:0};for(c of a){var u=O_();if(u.text=c||w_,0===(u=((u=P_(l,u).style("font-size",i).style("font-weight",n).style("font-family",o))._groups||u)[0][0].getBBox()).width&&0===u.height)throw new Error("svg element not in render tree");h.width=Math.round(Math.max(h.width,u.width)),u=Math.round(u.height),h.height+=u,h.lineHeight=Math.round(Math.max(h.lineHeight,u))}s.push(h)}return l.remove(),s[isNaN(s[1].height)||isNaN(s[1].width)||isNaN(s[1].lineHei
`):[],n={type:"table",raw:i[0],header:[],align:[],rows:[]};if(e.length===t.length){for(var a of t)/^ *-+: *$/.test(a)?n.align.push("right"):/^ *:-+: *$/.test(a)?n.align.push("center"):/^ *:-+ *$/.test(a)?n.align.push("left"):n.align.push(null);for(let t=0;t<e.length;t++)n.header.push({text:e[t],tokens:this.lexer.inline(e[t]),header:!0,align:n.align[t]});for(var s of r)n.rows.push(LE(s,n.header.length).map((t,e)=>({text:t,tokens:this.lexer.inline(t),header:!1,align:n.align[e]})));return n}}}lheading(t){if(t=this.rules.block.lheading.exec(t))return{type:"heading",raw:t[0],depth:"="===t[2].charAt(0)?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(t){var e;if(t=this.rules.block.paragraph.exec(t))return e=t[1].charAt(t[1].length-1)===`
`+this.renderer.text(t);a+=i?this.renderer.paragraph({type:"paragraph",raw:e,text:e,tokens:[{type:"text",raw:e,text:e}]}):e;continue}default:var l='Token with "'+o.type+'" type was not found.';if(this.options.silent)return console.error(l),"";throw new Error(l)}}return a}parseInline(e,r){r=r||this.renderer;let n="";for(let t=0;t<e.length;t++){var i=e[t];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[i.type]){var a=this.options.extensions.renderers[i.type].call({parser:this},i);if(!1!==a||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(i.type)){n+=a||"";continue}}var s=i;switch(s.type){case"escape":n+=r.text(s);break;case"html":n+=r.html(s);break;case"link":n+=r.link(s);break;case"image":n+=r.image(s);break;case"strong":n+=r.strong(s);break;case"em":n+=r.em(s);break;case"codespan":n+=r.codespan(s);break;case"br":n+=r.br(s);break;case"del":n+=r.del(s);break;case"text":n+=r.text(s);break;default:var o='Token with "'+s.type+'" type was not found.';if(this.options.silent)return console.error(o),"";throw new Error(o)}}return n}},yC=class{static{me(this,"_Hooks")}options;constructor(t){this.options=t||OE}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}},vC=class{static{me(this,"Marked")}defaults=TE();options=this.setOptions;parse=this.#e(pC.lex,mC.parse);parseInline=this.#e(pC.lexInline,mC.parseInline);Parser=mC;Renderer=gC;TextRenderer=fC;Lexer=pC;Tokenizer=YE;Hooks=yC;constructor(...t){this.use(...t)}walkTokens(t,r){let n=[];for(var i of t)switch(n=n.concat(r.call(this,i)),i.type){case"table":var e,a,s=i;for(e of s.header)n=n.concat(this.walkTokens(e.tokens,r));for(a of s.rows)for(var o of a)n=n.concat(this.walkTokens(o.tokens,r));break;case"list":s=i,n=n.concat(this.walkTokens(s.items,r));break;default:{let e=i;this.defaults.extensions?.childTokens?.[e.type]?this.defaults.extensions.childTokens[e.type].forEach(t=>{t=e[t].flat(1/0),n=n.concat(this.walkTokens(t,r))}):e.tokens&&(n=n.concat(this.walkTokens(e.tokens,r)))}}return n}use(...t){let i=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(e=>{var t={...e};if(t.async=this.defaults.async||t.async||!1,e.extensions&&(e.extensions.forEach(n=>{if(!n.name)throw new Error("extension name required");if("renderer"in n){let r=i.renderers[n.name];r?i.renderers[n.name]=function(...t){var e=n.renderer.apply(this,t);return!1===e?r.apply(this,t):e}:i.renderers[n.name]=n.renderer}if("tokenizer"in n){if(!n.level||"block"!==n.level&&"inline"!==n.level)throw new Error("extension level must be 'block' or 'inline'");var t=i[n.level];t?t.unshift(n.tokenizer):i[n.level]=[n.tokenizer],n.start&&("block"===n.level?i.startBlock?i.startBlock.push(n.start):i.startBlock=[n.start]:"inline"===n.level&&(i.startInline?i.startInline.push(n.start):i.startInline=[n.start]))}"childTokens"in n&&n.childTokens&&(i.childTokens[n.name]=n.childTokens)}),t.extensions=i),e.renderer){let i=this.defaults.renderer||new gC(this.defaults);for(var a in e.renderer){if(!(a in i))throw new Error(`renderer'${a}'doesnotexist`);if(!["options","parser"].includes(a)){let t=a,r=e.renderer[t],n=(e.useNewRenderer||(r=this.#t(r,t,i)),i[t]);i[t]=(...t)=>{var e=r.apply(i,t);return(!1===e?n.apply(i,t):e)||""}}}t.renderer=i}if(e.tokenizer){let i=this.defaults.tokenizer||new YE(this.defaults);for(var s in e.tokenizer){if(!(s in i))throw new Error(`tokenizer'${s}'doesnotexist`);if(!["options","rules","lexer"].includes(s)){let t=s,r=e.tokenizer[t],n=i[t];i[t]=(...t)=>{var e=r.apply(i,t);return!1===e?n.apply(i,t):e}}}t.tokenizer=i}if(e.hooks){let i=this.defaults.hooks||new yC;for(var o in e.hooks){if(!(o in i))throw new Error(`hook'${o}'doesnotexist`);if("options"!==o){let t=o,r=e.hooks[t],n=i[t];yC.passThroughHooks.has(o)?i[t]=t=>this.defaults.async?Promise.resolve(r.call(i,t)).then(t=>n.call(i,t)):(t=r.call(i,t),n.call(i,t)):i[t]=(...t)=>{var e=r.apply(i,t);return!1===e?n.apply(i,t):e}}}t.hooks=i}if(e.walkTokens){
`)))throw new Error("splitLineToFitWidth does not support newlines in the line");return LC(t,e)}function LC(t,e,r=[],n=[]){if(0===t.length)return 0<n.length&&r.push(n),0<r.length?r:[];let i="";" "===t[0].content&&(i=" ",t.shift());var a=t.shift()??{content:" ",type:"normal"},s=[...n];return""!==i&&s.push({content:i,type:"normal"}),s.push(a),e(s)?LC(t,e,r,s):(0<n.length?(r.push(n),t.unshift(a)):a.content&&([s,n]=CC(e,a),r.push([s]),n.content)&&t.unshift(n),LC(t,e,r))}var NC=t(()=>{me(EC,"splitTextToChars"),me(CC,"splitWordToFitWidth"),me(SC,"splitWordToFitWidthRecursion"),me(AC,"splitLineToFitWidth"),me(LC,"splitLineToFitWidthRecursion")});function IC(t,e){e&&t.attr("style",e)}async function MC(t,e,r,n,i=!1){(t=t.append("foreignObject")).attr("width",10*r+"px"),t.attr("height",10*r+"px");let a=t.append("xhtml:div"),s=e.label;e.label&&Uc(e.label)&&(s=await qc(e.label.replace(L.lineBreakRegex,`
`),D()));var o=e.isNode?"nodeLabel":"edgeLabel",l=a.append("span");return l.html(s),IC(l,e.labelStyle),l.attr("class",o+" "+n),IC(a,e.labelStyle),a.style("display","table-cell"),a.style("white-space","nowrap"),a.style("line-height","1.5"),a.style("max-width",r+"px"),a.style("text-align","center"),a.attr("xmlns","http://www.w3.org/1999/xhtml"),i&&a.attr("class","labelBkg"),(l=a.node().getBoundingClientRect()).width===r&&(a.style("display","table"),a.style("white-space","break-spaces"),a.style("width",r+"px"),l=a.node().getBoundingClientRect()),t.node()}function RC(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 DC(t,e,r){return BC(e=RC(t=t.append("text"),1,e),r),r=e.node().getComputedTextLength(),t.remove(),r}function OC(t,e,r){return BC(e=RC(t=t.append("text"),1,e),[{content:r,type:"normal"}]),(r=e.node()?.getBoundingClientRect())&&t.remove(),r}function PC(e,t,r,n=!1){let i=t.append("g"),a=i.insert("rect").attr("class","background").attr("style","stroke: none"),s=i.append("text").attr("y","-10.1"),o=0;for(var l of r){var c,h=me(t=>DC(i,1.1,t)<=e,"checkWidth");for(c of h(l)?[l]:AC(l,h))BC(RC(s,o,1.1),c),o++}return(n?(t=s.node().getBBox(),a.attr("x",t.x-2).attr("y",t.y-2).attr("width",t.width+4).attr("height",t.height+4),i):s).node()}function BC(n,t){n.text(""),t.forEach((t,e)=>{var r=n.append("tspan").attr("font-style","em"===t.type?"italic":"normal").attr("class","text-inner-tspan").attr("font-weight","strong"===t.type?"bold":"normal");0===e?r.text(t.content):r.text(" "+t.content)})}function FC(t){return t.replace(/fa[bklrs]?:fa-[\w-]+/g,t=>`<iclass='${t.replace(":"," ")}'></i>`)}var $C,zC=t(()=>{gu(),Qc(),K5(),e(),_C(),X_(),NC(),me(IC,"applyStyle"),me(MC,"addHtmlSpan"),me(RC,"createTspan"),me(DC,"computeWidthOfText"),me(OC,"computeDimensionOfText"),me(PC,"createFormattedText"),me(BC,"updateTextContentAndStyles"),me(FC,"replaceIconSubstring"),$C=me(async(t,e="",{style:r="",isTitle:n=!1,classes:i="",useHtmlLabels:a=!0,isNode:s=!0,width:o=200,addSvgBackground:l=!1}={},c)=>(R.debug("XYZ createText",e,r,n,i,a,s,"addSvgBackground: ",l),a?(n=TC(e,c),a=FC(W_(n)),n=e.replace(/\\\\/g,"\\"),MC(t,{isNode:s,label:Uc(e)?n:a,labelStyle:r.replace("fill:","color:")},o,i,l)):(n=PC(o,t,kC(e.replace(/<br\s*\/?>/g,"<br/>").replace("<br>","<br/>"),c),!!e&&l),s?(a=(r=/stroke:/.exec(r)?r.replace("stroke:","lineColor:"):r).replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:"),O(n).attr("style",a)):(i=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/background:/g,"fill:"),O(n).select("rect").attr("style",i.replace(/background:/g,"fill:")),o=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:"),O(n).select("text").attr("style",o)),n)),"createText")});functionUC(t){return(t=t.map((t,e)=>(0===e?"M":"L")+t.x+","+t.y)).push("Z"),t.join(" ")}functionGC(e,t,r,n,i,a){vars=[],o=r-e,l=2*Math.PI/(o/a),c=t+(n-t)/2;for(lett=0;t<=50;t++){varh=e+t/50*o,u=c+i*Math.sin(l*(h-e));s.push({x:h,y:u})}returns}functionqC(e,r,n,i,t,a){vars=[],o=t*Math.PI/180,l=(a*Math.PI/180-o)/(i-1);for(lett=0;t<i;t++){varc=o+t*l,h=e+n*Math.cos(c),c=r+n*Math.sin(c);s.push({x:-h,y:-c})}returns}varjC,YC,HC,WC,i=t(()=>{zC(),gu(),K5(),Ln(),Qc(),X_(),jC=me(async(t,e,r)=>{letn,i=e.useHtmlLabels||Mc(D()?.htmlLabels),a=(n=r||"node default",t.insert("g").attr("class",n).attr("id",e.domId||e.id)),s=a.insert("g").attr("class","label").attr("style",x_(e.labelStyle)),o,l=(o=void0===e.label?"":"string"==typeofe.label?e.label:e.label[0],await$C(s,Ec(W_(o),D()),{useHtmlLabels:i,width:e.width||D().flowchart?.wrappingWidth,cssClasses:"markdown-node-label",style:e.labelStyle,addSvgBackground:!!e.icon||!!e.img})),c=l.getBBox(),h=(e?.padding??0)/2;if(i){varr=l.children[0],t=O(l),u=r.getElementsByTagName("img");if(u){letn=""===o.replace(/<img[^>]*>/g,"").trim();awaitPromise.all([...u].map(r=>newPromise(e=>{functiont(){v
`,e-1))}function NI(t,e,r){var n,i,a,s,o,l,c,h=t.kind,u=t.result,d=t.input.charCodeAt(t.position);if(dI(d)||pI(d)||35===d||38===d||42===d||33===d||124===d||62===d||39===d||34===d||37===d||64===d||96===d||(63===d||45===d)&&(dI(n=t.input.charCodeAt(t.position+1))||r&&pI(n)))return!1;for(t.kind="scalar",t.result="",i=a=t.position,s=!1;0!==d;){if(58===d){if(dI(n=t.input.charCodeAt(t.position+1))||r&&pI(n))break}else if(35===d){if(dI(t.input.charCodeAt(t.position-1)))break}else{if(t.position===t.lineStart&&AI(t)||r&&pI(d))break;if(hI(d)){if(o=t.line,l=t.lineStart,c=t.lineIndent,SI(t,!1,-1),e<=t.lineIndent){s=!0,d=t.input.charCodeAt(t.position);continue}t.position=a,t.line=o,t.lineStart=l,t.lineIndent=c;break}}s&&(TI(t,i,a,!1),LI(t,t.line-o),i=a=t.position,s=!1),uI(d)||(a=t.position+1),d=t.input.charCodeAt(++t.position)}return TI(t,i,a,!1),!!t.result||(t.kind=h,t.result=u,!1)}function II(t,e){var r,n,i=t.input.charCodeAt(t.position);if(39!==i)return!1;for(t.kind="scalar",t.result="",t.position++,r=n=t.position;0!==(i=t.input.charCodeAt(t.position));)if(39===i){if(TI(t,r,t.position,!0),39!==(i=t.input.charCodeAt(++t.position)))return!0;r=t.position,t.position++,n=t.position}else hI(i)?(TI(t,r,n,!0),LI(t,SI(t,!1,e)),r=n=t.position):t.position===t.lineStart&&AI(t)?wI(t,"unexpected end of the document within a single quoted scalar"):(t.position++,n=t.position);wI(t,"unexpected end of the stream within a single quoted scalar")}function MI(t,e){var r,n,i,a,s,o=t.input.charCodeAt(t.position);if(34!==o)return!1;for(t.kind="scalar",t.result="",t.position++,r=n=t.position;0!==(o=t.input.charCodeAt(t.position));){if(34===o)return TI(t,r,t.position,!0),t.position++,!0;if(92===o){if(TI(t,r,t.position,!0),hI(o=t.input.charCodeAt(++t.position)))SI(t,!1,e);else if(o<256&&iR[o])t.result+=aR[o],t.position++;else if(0<(s=fI(o))){for(i=s,a=0;0<i;i--)0<=(s=gI(o=t.input.charCodeAt(++t.position)))?a=(a<<4)+s:wI(t,"expected hexadecimal character");t.result+=vI(a),t.position++}else wI(t,"unknown escape sequence");r=n=t.position}else hI(o)?(TI(t,r,n,!0),LI(t,SI(t,!1,e)),r=n=t.position):t.position===t.lineStart&&AI(t)?wI(t,"unexpected end of the document within a double quoted scalar"):(t.position++,n=t.position)}wI(t,"unexpected end of the stream within a double quoted scalar")}function RI(t,e){var r,n,i,a,s,o,l,c,h,u,d,p=!0,g=t.tag,f=t.anchor,m=Object.create(null),y=t.input.charCodeAt(t.position);if(91===y)c=!(s=93),a=[];else{if(123!==y)return!1;s=125,c=!0,a={}}for(null!==t.anchor&&(t.anchorMap[t.anchor]=a),y=t.input.charCodeAt(++t.position);0!==y;){if(SI(t,!0,e),(y=t.input.charCodeAt(t.position))===s)return t.position++,t.tag=g,t.anchor=f,t.kind=c?"mapping":"sequence",t.result=a,!0;p?44===y&&wI(t,"expected the node content, but found ','"):wI(t,"missed comma between flow collection entries"),d=null,o=l=!1,63===y&&dI(t.input.charCodeAt(t.position+1))&&(o=l=!0,t.position++,SI(t,!0,e)),r=t.line,n=t.lineStart,i=t.position,zI(t,e,HM,!1,!0),u=t.tag,h=t.result,SI(t,!0,e),y=t.input.charCodeAt(t.position),!l&&t.line!==r||58!==y||(o=!0,y=t.input.charCodeAt(++t.position),SI(t,!0,e),zI(t,e,HM,!1,!0),d=t.result),c?EI(t,a,m,u,h,d,r,n,i):o?a.push(EI(t,null,m,u,h,d,r,n,i)):a.push(h),SI(t,!0,e),44===(y=t.input.charCodeAt(t.position))?(p=!0,y=t.input.charCodeAt(++t.position)):p=!1}wI(t,"unexpected end of the stream within a flow collection")}function DI(t,e){var r,n,i,a=KM,s=!1,o=!1,l=e,c=0,h=!1,u=t.input.charCodeAt(t.position);if(124===u)n=!1;else{if(62!==u)return!1;n=!0}for(t.kind="scalar",t.result="";0!==u;)if(43===(u=t.input.charCodeAt(++t.position))||45===u)KM===a?a=43===u?QM:ZM:wI(t,"repeat of a chomping mode identifier");else{if(!(0<=(i=mI(u))))break;0===i?wI(t,"bad explicit indentation width of a block scalar; it cannot be less than one"):o?wI(t,"repeat of an indentation width identifier"):(l=e+i-1,o=!0)}if(uI(u)){for(;uI(u=t.input.charCodeAt(++t.position)););if(35===u)for(;!hI(u=t.input.charCodeAt(++t.position))&&0!==u;);}for(;0!==u;){for(CI(t),t.lineIndent=0,u=t.input.charCodeAt(t.position);(!o||t.lineIndent<l)&&32===u;)t.lineIndent++,u=t.input.charCodeAt(+
`,s?1+c:c),o=s=!0,c=0,r=t.position;!hI(u)&&0!==u;)u=t.input.charCodeAt(++t.position);TI(t,r,t.position,!1)}}return!0}function OI(t,e){var r,n,i=t.tag,a=t.anchor,s=[],o=!1;if(-1!==t.firstTabInLine)return!1;for(null!==t.anchor&&(t.anchorMap[t.anchor]=s),n=t.input.charCodeAt(t.position);0!==n&&(-1!==t.firstTabInLine&&(t.position=t.firstTabInLine,wI(t,"tab characters must not be used in indentation")),45===n)&&dI(t.input.charCodeAt(t.position+1));)if(o=!0,t.position++,SI(t,!0,-1)&&t.lineIndent<=e)s.push(null),n=t.input.charCodeAt(t.position);else if(r=t.line,zI(t,e,VM,!1,!0),s.push(t.result),SI(t,!0,-1),n=t.input.charCodeAt(t.position),(t.line===r||t.lineIndent>e)&&0!==n)wI(t,"bad indentation of a sequence entry");else if(t.lineIndent<e)break;return!!o&&(t.tag=i,t.anchor=a,t.kind="sequence",t.result=s,!0)}function PI(t,e,r){var n,i,a,s,o,l,c,h=t.tag,u=t.anchor,d={},p=Object.create(null),g=null,f=null,m=null,y=!1,v=!1;if(-1!==t.firstTabInLine)return!1;for(null!==t.anchor&&(t.anchorMap[t.anchor]=d),c=t.input.charCodeAt(t.position);0!==c;){if(y||-1===t.firstTabInLine||(t.position=t.firstTabInLine,wI(t,"tab characters must not be used in indentation")),n=t.input.charCodeAt(t.position+1),a=t.line,63!==c&&58!==c||!dI(n)){if(s=t.line,o=t.lineStart,l=t.position,!zI(t,r,WM,!1,!0))break;if(t.line===a){for(c=t.input.charCodeAt(t.position);uI(c);)c=t.input.charCodeAt(++t.position);if(58===c)dI(c=t.input.charCodeAt(++t.position))||wI(t,"a whitespace character is expected after the key-value separator within a block mapping"),y&&(EI(t,d,p,g,f,null,s,o,l),g=f=m=null),i=y=!(v=!0),g=t.tag,f=t.result;else{if(!v)return t.tag=h,t.anchor=u,!0;wI(t,"can not read an implicit mapping pair; a colon is missed")}}else{if(!v)return t.tag=h,t.anchor=u,!0;wI(t,"can not read a block mapping entry; a multiline key may not be an implicit key")}}else 63===c?(y&&(EI(t,d,p,g,f,null,s,o,l),g=f=m=null),i=y=v=!0):y?i=!(y=!1):wI(t,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),t.position+=1,c=n;if((t.line===a||t.lineIndent>e)&&(y&&(s=t.line,o=t.lineStart,l=t.position),zI(t,e,XM,!0,i)&&(y?f=t.result:m=t.result),y||(EI(t,d,p,g,f,m,s,o,l),g=f=m=null),SI(t,!0,-1),c=t.input.charCodeAt(t.position)),(t.line===a||t.lineIndent>e)&&0!==c)wI(t,"bad indentation of a mapping entry");else if(t.lineIndent<e)break}return y&&EI(t,d,p,g,f,null,s,o,l),v&&(t.tag=h,t.anchor=u,t.kind="mapping",t.result=d),v}function BI(t){var e,r,n,i=!1,a=!1,s=t.input.charCodeAt(t.position);if(33!==s)return!1;if(null!==t.tag&&wI(t,"duplication of a tag property"),60===(s=t.input.charCodeAt(++t.position))?(i=!0,s=t.input.charCodeAt(++t.position)):33===s?(a=!0,r="!!",s=t.input.charCodeAt(++t.position)):r="!",e=t.position,i){for(;0!==(s=t.input.charCodeAt(++t.position))&&62!==s;);t.position<t.length?(n=t.input.slice(e,t.position),s=t.input.charCodeAt(++t.position)):wI(t,"unexpected end of the stream within a verbatim tag")}else{for(;0!==s&&!dI(s);)33===s&&(a?wI(t,"tag suffix cannot contain exclamation marks"):(r=t.input.slice(e-1,t.position+1),rR.test(r)||wI(t,"named tag handle cannot contain such characters"),a=!0,e=t.position+1)),s=t.input.charCodeAt(++t.position);n=t.input.slice(e,t.position),eR.test(n)&&wI(t,"tag suffix cannot contain flow indicator characters")}n&&!nR.test(n)&&wI(t,"tag name cannot contain such characters: "+n);try{n=decodeURIComponent(n)}catch{wI(t,"tag name is malformed: "+n)}return i?t.tag=n:YM.call(t.tagMap,r)?t.tag=t.tagMap[r]+n:"!"===r?t.tag="!"+n:"!!"===r?t.tag="tag:yaml.org,2002:"+n:wI(t,'undeclared tag handle "'+r+'"'),!0}function FI(t){var e,r=t.input.charCodeAt(t.position);if(38!==r)return!1;for(null!==t.anchor&&wI(t,"duplication of an anchor property"),r=t.input.charCodeAt(++t.position),e=t.position;0!==r&&!dI(r)&&!pI(r);)r=t.input.charCodeAt(++t.position);return t.position===e&&wI(t,"name of an anchor node must contain at least one character"),t.anchor=t.input.slice(e,t.position),!0}function $I(t){var e,r=t.input.charCodeAt(t.position);if(42!==r)return!1;for(r=t.input.charCodeAt(++t.position),e=t.position;0!==r&&!dI(
`),65279===t.charCodeAt(0))?t.slice(1):t,e);for(-1!==(e=t.indexOf("\0"))&&(r.position=e,wI(r,"null byte is not allowed in input")),r.input+="\0";32===r.input.charCodeAt(r.position);)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)UI(r);return r.documents}function qI(t,e,r){null!==e&&"object"==typeof e&&"u"<typeof r&&(r=e,e=null);var n=GI(t,r);if("function"!=typeof e)return n;for(var i=0,a=n.length;i<a;i+=1)e(n[i])}function jI(t,e){if(0!==(t=GI(t,e)).length){if(1===t.length)return t[0];throw new TM("expected a single document in the stream, but found more")}}function YI(t,e){var r,n,i,a,s,o,l;if(null===e)return{};for(r={},i=0,a=(n=Object.keys(e)).length;i<a;i+=1)s=n[i],o=String(e[s]),"!!"===s.slice(0,2)&&(s="tag:yaml.org,2002:"+s.slice(2)),(l=t.compiledTypeMap.fallback[s])&&hR.call(l.styleAliases,o)&&(o=l.styleAliases[o]),r[s]=o;return r}function HI(t){var e,r,n=t.toString(16).toUpperCase();if(t<=255)e="x",r=2;else if(t<=65535)e="u",r=4;else{if(!(t<=4294967295))throw new TM("code point within a string may not be greater than 0xFFFFFFFF");e="U",r=8}return"\\"+e+kM.repeat("0",r-n.length)+n}function WI(t){this.schema=t.schema||jM,this.indent=Math.max(1,t.indent||2),this.noArrayIndent=t.noArrayIndent||!1,this.skipInvalid=t.skipInvalid||!1,this.flowLevel=kM.isNothing(t.flowLevel)?-1:t.flowLevel,this.styleMap=YI(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?mR:1,this.forceQuotes=t.forceQuotes||!1,this.replacer="function"==typeof t.replacer?t.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function VI(t,e){for(var r,n,i=kM.repeat(" ",e),a=0,s="",o=t.length;a<o;)a=-1===(r=t.indexOf(`
`+t.slice(s+1):o+=t.slice(a),o.slice(1)}function uM(t){for(var e,r,n="",i=0;i<t.length;65536<=e?i+=2:i++)e=nM(t,i),!(r=pR[e])&&QI(e)?(n+=t[i],65536<=e&&(n+=t[i+1])):n+=r||HI(e);return n}function dM(t,e,r){for(var n,i="",a=t.tag,s=0,o=r.length;s<o;s+=1)n=r[s],t.replacer&&(n=t.replacer.call(r,String(s),n)),(yM(t,e,n,!1,!1)||"u"<typeof n&&yM(t,e,null,!1,!1))&&(""!==i&&(i+=","+(t.condenseFlow?"":" ")),i+=t.dump);t.tag=a,t.dump="["+i+"]"}function pM(t,e,r,n){for(var i,a="",s=t.tag,o=0,l=r.length;o<l;o+=1)i=r[o],t.replacer&&(i=t.replacer.call(r,String(o),i)),(yM(t,e+1,i,!0,!0,!1,!0)||"u"<typeof i&&yM(t,e+1,null,!0,!0,!1,!0))&&(n&&""===a||(a+=XI(t,e)),t.dump&&dR===t.dump.charCodeAt(0)?a+="-":a+="- ",a+=t.dump);t.tag=s,t.dump=a||"[]"}function gM(t,e,r){for(var n,i,a,s="",o=t.tag,l=Object.keys(r),c=0,h=l.length;c<h;c+=1)(a="")!==s&&(a+=", "),t.condenseFlow&&(a+='"'),i=r[n=l[c]],t.replacer&&(i=t.replacer.call(r,n,i)),yM(t,e,n,!1,!1)&&(1024<t.dump.length&&(a+="? "),a+=t.dump+(t.condenseFlow?'"':"")+":"+(t.condenseFlow?"":" "),yM(t,e,i,!1,!1))&&(s+=a+=t.dump);t.tag=o,t.dump="{"+s+"}"}function fM(t,e,r,n){var i,a,s,o,l,c="",h=t.tag,u=Object.keys(r);if(!0===t.sortKeys)u.sort();else if("function"==typeof t.sortKeys)u.sort(t.sortKeys);else if(t.sortKeys)throw new TM("sortKeys must be a boolean or a function");for(i=0,a=u.length;i<a;i+=1)l="",n&&""===c||(l+=XI(t,e)),s=r[o=u[i]],t.replacer&&(s=t.replacer.call(r,o,s)),yM(t,e+1,o,!0,!0,!0)&&((o=null!==t.tag&&"?"!==t.tag||t.dump&&1024<t.dump.length)&&(t.dump&&dR===t.dump.charCodeAt(0)?l+="?":l+="? "),l+=t.dump,o&&(l+=XI(t,e)),yM(t,e+1,s,!0,o))&&(t.dump&&dR===t.dump.charCodeAt(0)?l+=":":l+=": ",c+=l+=t.dump);t.tag=h,t.dump=c||"{}"}function mM(t,e,r){for(var n,i,a,s=r?t.explicitTypes:t.implicitTypes,o=0,l=s.length;o<l;o+=1)if(((i=s[o]).instanceOf||i.predicate)&&(!i.instanceOf||"object"==typeof e&&e instanceof i.instanceOf)&&(!i.predicate||i.predicate(e))){if(r?i.multi&&i.representName?t.tag=i.representName(e):t.tag=i.tag:t.tag="?",i.represent){if(a=t.styleMap[i.tag]||i.defaultStyle,"[object Function]"===cR.call(i.represent))n=i.represent(e,a);else{if(!hR.call(i.represent,a))throw new TM("!<"+i.tag+'> tag resolver accepts not "'+a+'" style');n=i.represent[a](e,a)}t.dump=n}return!0}return!1}function yM(t,e,r,n,i,a,s){t.tag=null,t.dump=r,mM(t,r,!1)||mM(t,r,!0);var o,l,c=cR.call(t.dump),h=n,u=(n=n&&(t.flowLevel<0||t.flowLevel>e),"[object Object]"===c||"[object Array]"===c);if(u&&(l=-1!==(o=t.duplicates.indexOf(r))),(null!==t.tag&&"?"!==t.tag||l||2!==t.indent&&0<e)&&(i=!1),l&&t.usedDuplicates[o])t.dump="*ref_"+o;else{if(u&&l&&!t.usedDuplicates[o]&&(t.usedDuplicates[o]=!0),"[object Object]"===c)n&&0!==Object.keys(t.dump).length?(fM(t,e,t.dump,i),l&&(t.dump="&ref_"+o+t.dump)):(gM(t,e,t.dump),l&&(t.dump="&ref_"+o+" "+t.dump));else if("[object Array]"===c)n&&0!==t.dump.length?(t.noArrayIndent&&!s&&0<e?pM(t,e-1,t.dump,i):pM(t,e,t.dump,i),l&&(t.dump="&ref_"+o+t.dump)):(dM(t,e,t.dump),l&&(t.dump="&ref_"+o+" "+t.dump));else{if("[object String]"!==c){if("[object Undefined]"===c)return!1;if(t.skipInvalid)return!1;throw new TM("unacceptable kind of an object to dump "+c)}"?"!==t.tag&&sM(t,t.dump,e,a,h)}null!==t.tag&&"?"!==t.tag&&(r=encodeURI("!"===t.tag[0]?t.tag.slice(1):t.tag).replace(/!/g,"%21"),r="!"===t.tag[0]?"!"+r:"tag:yaml.org,2002:"===r.slice(0,18)?"!!"+r.slice(18):"!<"+r+">",t.dump=r+" "+t.dump)}return!0}function vM(t,e){var r,n,i=[],a=[];for(xM(t,i,a),r=0,n=a.length;r<n;r+=1)e.duplicates.push(i[a[r]]);e.usedDuplicates=new Array(n)}function xM(t,e,r){var n,i,a;if(null!==t&&"object"==typeof t)if(-1!==(i=e.indexOf(t)))-1===r.indexOf(i)&&r.push(i);else if(e.push(t),Array.isArray(t))for(i=0,a=t.length;i<a;i+=1)xM(t[i],e,r);else for(i=0,a=(n=Object.keys(t)).length;i<a;i+=1)xM(t[n[i]],e,r)}function bM(t,e){return(e=new WI(e=e||{})).noRefs||vM(t,e),e.replacer&&(t=e.replacer.call({"":t},"",t)),yM(e,0,t,!0,!0)?e.dump+`
`:""}function wM(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 kM,TM,_M,EM,CM,SM,AM,LM,NM,IM,MM,RM,DM,OM,PM,BM,FM,$M,zM,UM,GM,qM,jM,YM,HM,WM,VM,XM,KM,ZM,QM,JM,tR,eR,rR,nR,iR,aR,sR,oR,lR,cR,hR,uR,dR,pR,gR,fR,mR,yR,vR,xR,bR,wR,kR,TR,_R=t(()=>{for(me(yN,"isNothing"),me(vN,"isObject"),me(xN,"toArray"),me(bN,"extend"),me(wN,"repeat"),me(kN,"isNegativeZero"),kM={isNothing:yN,isObject:vN,toArray:xN,repeat:wN,isNegativeZero:kN,extend:bN},me(TN,"formatError"),me(_N,"YAMLException$1"),((_N.prototype=Object.create(Error.prototype)).constructor=_N).prototype.toString=me(function(t){return this.name+": "+TN(this,t)},"toString"),TM=_N,me(EN,"getLine"),me(CN,"padStart"),me(SN,"makeSnippet"),_M=SN,EM=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],CM=["scalar","sequence","mapping"],me(AN,"compileStyleAliases"),me(LN,"Type$1"),SM=LN,me(NN,"compileList"),me(IN,"compileMap"),me(MN,"Schema$1"),MN.prototype.extend=me(function(t){var e=[],r=[];if(t instanceof SM)r.push(t);else if(Array.isArray(t))r=r.concat(t);else{if(!t||!Array.isArray(t.implicit)&&!Array.isArray(t.explicit))throw new TM("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");t.implicit&&(e=e.concat(t.implicit)),t.explicit&&(r=r.concat(t.explicit))}return e.forEach(function(t){if(!(t instanceof SM))throw new TM("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(t.loadKind&&"scalar"!==t.loadKind)throw new TM("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(t.multi)throw new TM("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),r.forEach(function(t){if(!(t instanceof SM))throw new TM("Specified list of YAML types (or a single Type object) contains a non-Type object.")}),(t=Object.create(MN.prototype)).implicit=(this.implicit||[]).concat(e),t.explicit=(this.explicit||[]).concat(r),t.compiledImplicit=NN(t,"implicit"),t.compiledExplicit=NN(t,"explicit"),t.compiledTypeMap=IN(t.compiledImplicit,t.compiledExplicit),t},"extend"),NM=MN,lR=new SM("tag:yaml.org,2002:str",{kind:"scalar",construct:me(function(t){return null!==t?t:""},"construct")}),RM=new SM("tag:yaml.org,2002:seq",{kind:"sequence",construct:me(function(t){return null!==t?t:[]},"construct")}),DM=new SM("tag:yaml.org,2002:map",{kind:"mapping",construct:me(function(t){return null!==t?t:{}},"construct")}),NM=new NM({explicit:[lR,RM,DM]}),me(RN,"resolveYamlNull"),me(DN,"constructYamlNull"),me(ON,"isNull"),lR=new SM("tag:yaml.org,2002:null",{kind:"scalar",resolve:RN,construct:DN,predicate:ON,represent:{canonical:me(function(){return"~"},"canonical"),lowercase:me(function(){return"null"},"lowercase"),uppercase:me(function(){return"NULL"},"uppercase"),camelcase:me(function(){return"Null"},"camelcase"),empty:me(function(){return""},"empty")},defaultStyle:"lowercase"}),me(PN,"resolveYamlBoolean"),me(BN,"constructYamlBoolean"),me(FN,"isBoolean"),RM=new SM("tag:yaml.org,2002:bool",{kind:"scalar",resolve:PN,construct:BN,predicate:FN,represent:{lowercase:me(function(t){return t?"true":"false"},"lowercase"),uppercase:me(function(t){return t?"TRUE":"FALSE"},"uppercase"),camelcase:me(function(t){return t?"True":"False"},"camelcase")},defaultStyle:"lowercase"}),me($N,"isHexCode"),me(zN,"isOctCode"),me(UN,"isDecCode"),me(GN,"resolveYamlInteger"),me(qN,"constructYamlInteger"),me(jN,"isInteger"),DM=new SM("tag:yaml.org,2002:int",{kind:"scalar",resolve:GN,construct:qN,predicate:jN,represent:{binary:me(function(t){return 0<=t?"0b"+t.toString(2):"-0b"+t.toString(2).slice(1)},"binary"),octal:me(function(t){return 0<=t?"0o"+t.toString(8):"-0o"+t.toString(8).slice(1)},"octal"),decimal:me(function(t){return t.toString(10)},"decimal"),hexadecimal:me(function(t){return 0<=t?"0x"+t.toString(16).toUpperCase():"-0x"+t.toString(16).toUpperCase().slice(1)},"hexadecima
\r`,me(JN,"resolveYamlBinary"),me(tI,"constructYamlBinary"),me(eI,"representYamlBinary"),me(rI,"isBinary"),PM=new SM("tag:yaml.org,2002:binary",{kind:"scalar",resolve:JN,construct:tI,predicate:rI,represent:eI}),BM=Object.prototype.hasOwnProperty,FM=Object.prototype.toString,me(nI,"resolveYamlOmap"),me(iI,"constructYamlOmap"),$M=new SM("tag:yaml.org,2002:omap",{kind:"sequence",resolve:nI,construct:iI}),zM=Object.prototype.toString,me(aI,"resolveYamlPairs"),me(sI,"constructYamlPairs"),UM=new SM("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:aI,construct:sI}),GM=Object.prototype.hasOwnProperty,me(oI,"resolveYamlSet"),me(lI,"constructYamlSet"),qM=new SM("tag:yaml.org,2002:set",{kind:"mapping",resolve:oI,construct:lI}),jM=lR.extend({implicit:[RM,DM],explicit:[PM,$M,UM,qM]}),YM=Object.prototype.hasOwnProperty,XM=4,KM=HM=1,ZM=WM=2,QM=VM=3,JM=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,tR=/[\x85\u2028\u2029]/,eR=/[,\[\]\{\}]/,rR=/^(?:!|!!|![a-z\-]+!)$/i,nR=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i,me(cI,"_class"),me(hI,"is_EOL"),me(uI,"is_WHITE_SPACE"),me(dI,"is_WS_OR_EOL"),me(pI,"is_FLOW_INDICATOR"),me(gI,"fromHexCode"),me(fI,"escapedHexLen"),me(mI,"fromDecimalCode"),me(yI,"simpleEscapeSequence"),me(vI,"charFromCodepoint"),iR=new Array(256),aR=new Array(256),sR=0;sR<256;sR++)iR[sR]=yI(sR)?1:0,aR[sR]=yI(sR);me(xI,"State$1"),me(bI,"generateError"),me(wI,"throwError"),me(kI,"throwWarning"),oR={YAML:me(function(t,e,r){var n,i;null!==t.version&&wI(t,"duplication of %YAML directive"),1!==r.length&&wI(t,"YAML directive accepts exactly one argument"),null===(i=/^([0-9]+)\.([0-9]+)$/.exec(r[0]))&&wI(t,"ill-formed argument of the YAML directive"),n=parseInt(i[1],10),i=parseInt(i[2],10),1!==n&&wI(t,"unacceptable YAML version of the document"),t.version=r[0],t.checkLineBreaks=i<2,1!==i&&2!==i&&kI(t,"unsupported YAML version of the document")},"handleYamlDirective"),TAG:me(function(t,e,r){var n;2!==r.length&&wI(t,"TAG directive accepts exactly two arguments"),n=r[1],rR.test(r=r[0])||wI(t,"ill-formed tag handle (first argument) of the TAG directive"),YM.call(t.tagMap,r)&&wI(t,'there is a previously declared suffix for "'+r+'" tag handle'),nR.test(n)||wI(t,"ill-formed tag prefix (second argument) of the TAG directive");try{n=decodeURIComponent(n)}catch{wI(t,"tag prefix is malformed: "+n)}t.tagMap[r]=n},"handleTagDirective")},me(TI,"captureSegment"),me(_I,"mergeMappings"),me(EI,"storeMappingPair"),me(CI,"readLineBreak"),me(SI,"skipSeparationSpace"),me(AI,"testDocumentSeparator"),me(LI,"writeFoldedLines"),me(NI,"readPlainScalar"),me(II,"readSingleQuotedScalar"),me(MI,"readDoubleQuotedScalar"),me(RI,"readFlowCollection"),me(DI,"readBlockScalar"),me(OI,"readBlockSequence"),me(PI,"readBlockMapping"),me(BI,"readTagProperty"),me(FI,"readAnchorProperty"),me($I,"readAlias"),me(zI,"composeNode"),me(UI,"readDocument"),me(GI,"loadDocuments"),me(qI,"loadAll$1"),me(jI,"load$1"),lR={loadAll:qI,load:jI},cR=Object.prototype.toString,hR=Object.prototype.hasOwnProperty,uR=65279,dR=10,pR={0:"\\0",7:"\\a",8:"\\b",9:"\\t",10:"\\n",11:"\\v",12:"\\f",13:"\\r",27:"\\e",34:'\\"',92:"\\\\",133:"\\N",160:"\\_",8232:"\\L",8233:"\\P"},gR=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],fR=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/,me(YI,"compileStyleMap"),me(HI,"encodeHex"),mR=2,me(WI,"State"),me(VI,"indentString"),me(XI,"generateNextLine"),me(KI,"testImplicitResolving"),me(ZI,"isWhitespace"),me(QI,"isPrintable"),me(JI,"isNsCharOrWhitespace"),me(tM,"isPlainSafe"),me(eM,"isPlainSafeFirst"),me(rM,"isPlainSafeLast"),me(nM,"codePointAt"),me(iM,"needIndentIndicator"),yR=1,vR=2,xR=3,bR=4,wR=5,me(aM,"chooseScalarStyle"),me(sM,"writeScalar"),me(oM,"blockHeader"),me(lM,"dropEndingNewline"),me(cM,"foldString"),me(hM,"foldLine"),me(uM,"escapeString"),me(dM,"writeFlowSequence"),me(pM,"writeBlockSequence"),me(gM,"writeFlowMapping"),me(fM,"writeBlockMapping"),me(mM,"detectType"),me(yM,"writeNode"),me(vM,"getDuplicate
}`,(n=TR(i,{schema:kR})).shape){if(n.shape!==n.shape.toLowerCase()||n.shape.includes("_"))throw new Error(`Nosuchshape:${n.shape}.Shapenamesshouldbelowercase.`);if(!dN(n.shape))throw new Error(`Nosuchshape:${n.shape}.`);e.type=n?.shape}n?.label&&(e.text=n?.label),n?.icon&&(e.icon=n?.icon,!n.label?.trim())&&e.text===r&&(e.text=""),n?.form&&(e.form=n?.form),n?.pos&&(e.pos=n?.pos),n?.img&&(e.img=n?.img,!n.label?.trim())&&e.text===r&&(e.text=""),n?.constraint&&(e.constraint=n.constraint),n.w&&(e.assetWidth=Number(n.w)),n.h&&(e.assetHeight=Number(n.h))}}},"addVertex"),GR=me(function(t,e,r){if(R.info("abc78 Got edge...",t={start:t,end:e,type:void 0,text:"",labelType:"text"}),void 0!==(e=r.text)&&(t.text=$R(e.text.trim()),t.text.startsWith('"')&&t.text.endsWith('"')&&(t.text=t.text.substring(1,t.text.length-1)),t.labelType=e.type),void 0!==r&&(t.type=r.type,t.stroke=r.stroke,t.length=10<r.length?10:r.length),!(LR.length<(SR.maxEdges??500)))throw new Error(`Edgelimitexceeded.${LR.length}edgesfound,butthelimitis${SR.maxEdges}.
Expecting`+A.join(", ")+", got '"+(this.terminals_[x]||x)+"'":"Parse error on line "+(c+1)+": Unexpected "+(x==d?"end of input":"'"+(this.terminals_[x]||x)+"'"),this.parseError(S,{text:g.match,token:this.terminals_[x]||x,line:g.yylineno,loc:m,expected:A})}if(k[0]instanceof Array&&1<k.length)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+x);switch(k[0]){case 1:n.push(x),a.push(g.yytext),s.push(g.yylloc),n.push(k[1]),x=null,b?(x=b,b=null):(h=g.yyleng,l=g.yytext,c=g.yylineno,m=g.yylloc,0<u&&u--);break;case 2:if(_=this.productions_[k[1]][1],C.$=a[a.length-_],C._$={first_line:s[s.length-(_||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(_||1)].first_column,last_column:s[s.length-1].last_column},y&&(C._$.range=[s[s.length-(_||1)].range[0],s[s.length-1].range[1]]),typeof(E=this.performAction.apply(C,[l,h,c,f.yy,k[1],a,s].concat(p)))<"u")return E;_&&(n=n.slice(0,-1*_*2),a=a.slice(0,-1*_),s=s.slice(0,-1*_)),n.push(this.productions_[k[1]][0]),a.push(C.$),s.push(C._$),E=o[n[n.length-2]][n[n.length-1]],n.push(E);break;case 3:return!0}}return!0},"parse")},F={EOF:1,parseError:me(function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},"parseError"),setInput:me(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:me(function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},"input"),unput:me(function(t){var e=t.length,r=t.split(/(?:\r\n?|\n)/g),t=(this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e,this.match.split(/(?:\r\n?|\n)/g)),n=(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),r.length-1&&(this.yylineno-=r.length-1),this.yylloc.range);return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:r?(r.length===t.length?this.yylloc.first_column:0)+t[t.length-r.length].length-r[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[n[0],n[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},"unput"),more:me(function(){return this._more=!0,this},"more"),reject:me(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+`.Youcanonlyinvokereject()inthelexerwhenthelexerisofthebacktrackingpersuasion(options.backtrack_lexer=true).
`+e+"^"},"showPosition"),test_match:me(function(t,e){var r,n;if(this.options.backtrack_lexer&&(n={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges)&&(n.yylloc.range=this.yylloc.range.slice(0)),(r=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+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],r=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),r)return r;if(this._backtrack)for(var i in n)this[i]=n[i];return!1},"test_match"),next:me(function(){if(this.done)return this.EOF;var t,e,r,n;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;a<i.length;a++)if((r=this._input.match(this.rules[i[a]]))&&(!e||r[0].length>e[0].length)){if(e=r,n=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(r,i[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,i[n]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`.Unrecognizedtext.
Expecting`+A.join(", ")+", got '"+(this.terminals_[x]||x)+"'":"Parse error on line "+(c+1)+": Unexpected "+(x==d?"end of input":"'"+(this.terminals_[x]||x)+"'"),this.parseError(S,{text:g.match,token:this.terminals_[x]||x,line:g.yylineno,loc:m,expected:A})}if(k[0]instanceof Array&&1<k.length)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+x);switch(k[0]){case 1:n.push(x),a.push(g.yytext),s.push(g.yylloc),n.push(k[1]),x=null,b?(x=b,b=null):(h=g.yyleng,l=g.yytext,c=g.yylineno,m=g.yylloc,0<u&&u--);break;case 2:if(_=this.productions_[k[1]][1],C.$=a[a.length-_],C._$={first_line:s[s.length-(_||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(_||1)].first_column,last_column:s[s.length-1].last_column},y&&(C._$.range=[s[s.length-(_||1)].range[0],s[s.length-1].range[1]]),typeof(E=this.performAction.apply(C,[l,h,c,f.yy,k[1],a,s].concat(p)))<"u")return E;_&&(n=n.slice(0,-1*_*2),a=a.slice(0,-1*_),s=s.slice(0,-1*_)),n.push(this.productions_[k[1]][0]),a.push(C.$),s.push(C._$),E=o[n[n.length-2]][n[n.length-1]],n.push(E);break;case 3:return!0}}return!0},"parse")},i={EOF:1,parseError:me(function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},"parseError"),setInput:me(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:me(function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},"input"),unput:me(function(t){var e=t.length,r=t.split(/(?:\r\n?|\n)/g),t=(this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e,this.match.split(/(?:\r\n?|\n)/g)),n=(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),r.length-1&&(this.yylineno-=r.length-1),this.yylloc.range);return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:r?(r.length===t.length?this.yylloc.first_column:0)+t[t.length-r.length].length-r[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[n[0],n[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},"unput"),more:me(function(){return this._more=!0,this},"more"),reject:me(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+`.Youcanonlyinvokereject()inthelexerwhenthelexerisofthebacktrackingpersuasion(options.backtrack_lexer=true).
`+e+"^"},"showPosition"),test_match:me(function(t,e){var r,n;if(this.options.backtrack_lexer&&(n={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges)&&(n.yylloc.range=this.yylloc.range.slice(0)),(r=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+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],r=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),r)return r;if(this._backtrack)for(var i in n)this[i]=n[i];return!1},"test_match"),next:me(function(){if(this.done)return this.EOF;var t,e,r,n;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;a<i.length;a++)if((r=this._input.match(this.rules[i[a]]))&&(!e||r[0].length>e[0].length)){if(e=r,n=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(r,i[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,i[n]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`.Unrecognizedtext.
`:case"\r":case"\u2028":case"\u2029":case"\\":case"]":throw Error("TBD");default:return{type:"Character",value:Xtt(this.popChar())}}}characterClass(){let t=[],e=!1;for(this.consumeChar("["),"^"===this.peekChar(0)&&(this.consumeChar("^"),e=!0);this.isClassAtom();){var r=this.classAtom();if(r.type,tet(r)&&this.isRangeDash()){this.consumeChar("-");var n=this.classAtom();if(n.type,tet(n)){if(n.value<r.value)throw Error("Range out of order in character class");t.push({from:r.value,to:n.value})}else Ktt(r.value,t),t.push(Xtt("-")),Ktt(n.value,t)}else Ktt(r.value,t)}return this.consumeChar("]"),{type:"Set",complement:e,value:t}}classAtom(){switch(this.peekChar()){case"]":case`
FordetailsSee:https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNICODE_OPTIMIZE`)):(e=fnt(t.PATTERN,i.ensureOptimizations),Qq(e)&&(m=!1),v(e,t=>{Znt(r,t,f[n])})):(i.ensureOptimizations&&yrt(`${Tnt} TokenType: <${t.name}> is using a custom token pattern without providing <start_chars_hint> parameter.
FordetailsSee:https://chevrotain.io/docs/guide/resolving_lexer_errors.html#CUSTOM_OPTIMIZE`),m=!1);return r},[])}),{emptyGroups:g,patternIdxToConfig:f,charCodeToPatternIdxToConfig:y,hasCustom:n,canBeOptimized:m}}function Snt(t,e){let r=[],n=Lnt(t);r=r.concat(n.errors);var i=(t=Nnt(n.valid)).valid;return r=(r=(r=(r=(r=r.concat(t.errors)).concat(Ant(i))).concat(Pnt(i))).concat(Bnt(i,e))).concat(Fnt(i))}function Ant(t){let e=[],r=UG(t,t=>nj(t[tit]));return e=(e=(e=(e=(e=e.concat(Int(r))).concat(Rnt(r))).concat(Dnt(r))).concat(Ont(r))).concat(Mnt(r))}function Lnt(t){var e=UG(t,t=>!Nq(t,tit));return{errors:x(e,t=>({message:"Token Type: ->"+t.name+"<- missing static 'PATTERN' property",type:Cit.MISSING_PATTERN,tokenTypes:[t]})),valid:hG(t,e)}}function Nnt(t){var e=UG(t,t=>(t=t[tit],!(nj(t)||_6(t)||Nq(t,"exec")||Rq(t))));return{errors:x(e,t=>({message:"Token Type: ->"+t.name+"<- static 'PATTERN' can only be a RegExp, a Function matching the {CustomPatternMatcherFunc} type or an Object matching the {ICustomPattern} interface.",type:Cit.INVALID_PATTERN,tokenTypes:[t]})),valid:hG(t,e)}}function Int(t){class n extends cet{static{me(this,"EndAnchorFinder")}constructor(){super(...arguments),this.found=!1}visitEndAnchor(t){this.found=!0}}return t=UG(t,t=>{t=t.PATTERN;try{var e=hnt(t),r=new n;return r.visit(e),r.found}catch{return iit.test(t.source)}}),x(t,t=>({message:`Unexpected RegExp Anchor Error:
Seechevrotain.io/docs/guide/resolving_lexer_errors.html#ANCHORSfordetails.`,type:Cit.EOI_ANCHOR_FOUND,tokenTypes:[t]}))}function Mnt(t){return t=UG(t,t=>t.PATTERN.test("")),x(t,t=>({message:"Token Type: ->"+t.name+"<- static 'PATTERN' must not match an empty string",type:Cit.EMPTY_MATCH_PATTERN,tokenTypes:[t]}))}function Rnt(t){class n extends cet{static{me(this,"StartAnchorFinder")}constructor(){super(...arguments),this.found=!1}visitStartAnchor(t){this.found=!0}}return t=UG(t,t=>{t=t.PATTERN;try{var e=hnt(t),r=new n;return r.visit(e),r.found}catch{return ait.test(t.source)}}),x(t,t=>({message:`UnexpectedRegExpAnchorError:
Seehttps://chevrotain.io/docs/guide/resolving_lexer_errors.html#ANCHORS for details.`,type:Cit.SOI_ANCHOR_FOUND,tokenTypes:[t]}))}function Dnt(t){return t=UG(t,t=>(t=t[tit])instanceof RegExp&&(t.multiline||t.global)),x(t,t=>({message:"Token Type: ->"+t.name+"<- static 'PATTERN' may NOT contain global('g') or multiline('m')",type:Cit.UNSUPPORTED_FLAGS_FOUND,tokenTypes:[t]}))}function Ont(t){let n=[],e=x(t,r=>OY(t,(t,e)=>(r.PATTERN.source!==e.PATTERN.source||qq(n,e)||e.PATTERN===Ait.NA||(n.push(e),t.push(e)),t),[]));e=tz(e);var r=UG(e,t=>1<t.length);return x(r,t=>{var e=x(t,t=>t.name);return{message:`The same RegExp pattern ->${tq(t).PATTERN}<-has been used in all of the following Token Types: ${e.join(", ")} <-`,type:Cit.DUPLICATE_PATTERNS_FOUND,tokenTypes:t}})}function Pnt(t){return t=UG(t,t=>!!Nq(t,"GROUP")&&(t=t.GROUP)!==Ait.SKIPPED&&t!==Ait.NA&&!Rq(t)),x(t,t=>({message:"Token Type: ->"+t.name+"<- static 'GROUP' can only be Lexer.SKIPPED/Lexer.NA/A String",type:Cit.INVALID_GROUP_TYPE_FOUND,tokenTypes:[t]}))}function Bnt(t,e){return t=UG(t,t=>void 0!==t.PUSH_MODE&&!qq(e,t.PUSH_MODE)),x(t,t=>({message:`Token Type: ->${t.name}<- static 'PUSH_MODE' value cannot refer to a Lexer Mode ->${t.PUSH_MODE}<-which does not exist`,type:Cit.PUSH_MODE_DOES_NOT_EXIST,tokenTypes:[t]}))}function Fnt(t){let a=[],e=OY(t,(t,e,r)=>{var n=e.PATTERN;return n!==Ait.NA&&(Rq(n)?t.push({str:n,idx:r,tokenType:e}):nj(n)&&znt(n)&&t.push({str:n.source,idx:r,tokenType:e})),t},[]);return v(t,(n,i)=>{v(e,({str:t,idx:e,tokenType:r})=>{i<e&&$nt(t,n.PATTERN)&&(e=`Token: ->${r.name}<- can never be matched.
Seehttps://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNREACHABLE`,a.push({message:e,type:Cit.UNREACHABLE_PATTERN,tokenTypes:[n,r]}))})}),a}function $nt(t,e){var r;if(nj(e))return null!==(r=e.exec(t))&&0===r.index;if(_6(e))return e(t,0,[],{});if(Nq(e,"exec"))return e.exec(t,0,[],{});if("string"==typeof e)return e===t;throw Error("non exhaustive match")}function znt(e){return void 0===KG([".","\\","[","]","|","^","$","(",")","?","*","+","{"],t=>-1!==e.source.indexOf(t))}function Unt(t){var e=t.ignoreCase?"i":"";return new RegExp(`^(?:${t.source})`,e)}function Gnt(t){var e=t.ignoreCase?"iy":"y";return new RegExp(""+t.source,e)}function qnt(t,e,r){let i=[];return Nq(t,eit)||i.push({message:"A MultiMode Lexer cannot be initialized without a <"+eit+`> property in its definition
`,type:Cit.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE}),Nq(t,rit)||i.push({message:"A MultiMode Lexer cannot be initialized without a <"+rit+`>propertyinitsdefinition
FordetailsSee:https://chevrotain.io/docs/guide/resolving_lexer_errors.html#IDENTIFY_TERMINATOR`;if(e.issue===Cit.CUSTOM_LINE_BREAK)return`Warning: A Custom Token Pattern should specify the <line_breaks> option.
`+t)}tokenizeInternal(i,P){let t,a,e,r,n,s,o,l,c,h,B,u,d,F,p,g=i,$=g.length,f=0,m=0,z=this.hasCustom?0:Math.floor(i.length/10),y=new Array(z),v=[],x=this.trackStartLines?1:void 0,b=this.trackStartLines?1:void 0,w=Ynt(this.emptyGroups),U=this.trackStartLines,k=this.config.lineTerminatorsPattern,T=0,_=[],E=[],C=[],G=[];Object.freeze(G);let S;function A(){return _}function L(t){return t=Qnt(t),void 0===(t=E[t])?G:t}me(A,"getPossiblePatternsSlow"),me(L,"getPossiblePatternsOptimized");var q=me(t=>{var e;1===C.length&&void 0===t.tokenType.PUSH_MODE?(e=this.config.errorMessageProvider.buildUnableToPopLexerModeMessage(t),v.push({offset:t.startOffset,line:t.startLine,column:t.startColumn,length:t.image.length,message:e})):(C.pop(),t=gG(C),_=this.patternIdxToConfig[t],E=this.charCodeToPatternIdxToConfig[t],T=_.length,e=this.canModeBeOptimized[t]&&!1===this.config.safeMode,S=E&&e?L:A)},"pop_mode");function N(t){C.push(t),E=this.charCodeToPatternIdxToConfig[t],_=this.patternIdxToConfig[t],T=_.length,T=_.length,t=this.canModeBeOptimized[t]&&!1===this.config.safeMode,S=E&&t?L:A}me(N,"push_mode"),N.call(this,P);let I,j=this.config.recoveryEnabled;for(;f<$;){s=null;var Y=g.charCodeAt(f),H=S(Y),W=H.length;for(t=0;t<W;t++){var M=(I=H[t]).pattern,V=(o=null,I.short);if(!1!==V?Y===V&&(s=M):!0===I.isCustom?null!==(p=M.exec(g,f,y,w))?(s=p[0],void 0!==p.payload&&(o=p.payload)):s=null:(this.updateLastIndex(M,f),s=this.match(M,i,f)),null!==s){if(void 0!==(n=I.longerAlt)){var X=n.length;for(e=0;e<X;e++){var R=_[n[e]],D=R.pattern;if(!(l=null)===R.isCustom?null!==(p=D.exec(g,f,y,w))?(r=p[0],void 0!==p.payload&&(l=p.payload)):r=null:(this.updateLastIndex(D,f),r=this.match(D,i,f)),r&&r.length>s.length){s=r,o=l,I=R;break}}}break}}if(null!==s){if(c=s.length,void 0!==(h=I.group)&&(B=I.tokenTypeIdx,u=this.createTokenInstance(s,f,B,I.tokenType,x,b,c),this.handlePayload(u,o),!1===h?m=this.addToken(y,m,u):w[h].push(u)),i=this.chopInput(i,c),f+=c,b=this.computeNewColumn(b,c),!0===U&&!0===I.canLineTerminator){let t=0,e,r;for(k.lastIndex=0;!0===(e=k.test(s))&&(r=k.lastIndex-1,t++),!0===e;);0!==t&&(x+=t,b=c-r,this.updateTokenEndLineColumnLocation(u,h,r,t,x,b,c))}this.handleModes(I,q,N,u)}else{let t=f,e=x,r=b,n=!1===j;for(;!1===n&&f<$;)for(i=this.chopInput(i,1),f++,a=0;a<T;a++){var O=_[a],K=O.pattern,Z=O.short;if(!1!==Z?g.charCodeAt(f)===Z&&(n=!0):n=!0===O.isCustom?null!==K.exec(g,f,y,w):(this.updateLastIndex(K,f),null!==K.exec(i)),!0===n)break}if(d=f-t,b=this.computeNewColumn(b,d),F=this.config.errorMessageProvider.buildUnexpectedCharactersMessage(g,t,d,e,r),v.push({offset:t,line:e,column:r,length:d,message:F}),!1===j)break}}return this.hasCustom||(y.length=m),{tokens:y,groups:w,errors:v}}handleModes(t,e,r,n){var i;!0===t.pop?(i=t.push,e(n),void 0!==i&&r.call(this,i)):void 0!==t.push&&r.call(this,t.push)}chopInput(t,e){return t.substring(e)}updateLastIndex(t,e){t.lastIndex=e}updateTokenEndLineColumnLocation(t,e,r,n,i,a,s){void 0!==e&&(r=(e=r===s-1)?-1:0,1===n&&1==e||(t.endLine=i+r,t.endColumn=a-1-r))}computeNewColumn(t,e){return t+e}createOffsetOnlyToken(t,e,r,n){return{image:t,startOffset:e,tokenTypeIdx:r,tokenType:n}}createStartOnlyToken(t,e,r,n,i,a){return{image:t,startOffset:e,startLine:i,startColumn:a,tokenTypeIdx:r,tokenType:n}}createFullToken(t,e,r,n,i,a,s){return{image:t,startOffset:e,endOffset:e+s-1,startLine:i,endLine:i,startColumn:a,endColumn:a+s-1,tokenTypeIdx:r,tokenType:n}}addTokenUsingPush(t,e,r){return t.push(r),e}addTokenUsingMemberAccess(t,e,r){return t[e]=r,++e}handlePayloadNoCustom(t,e){}handlePayloadWithCustom(t,e){null!==e&&(t.payload=e)}matchWithTest(t,e,r){return!0===t.test(e)?e.substring(r,t.lastIndex):null}matchWithExec(t,e){return null!==(t=t.exec(e))?t[0]:null}}).SKIPPED="This marks a skipped Token pattern, this means each token identified by it willbe consumed and then thrown into oblivion, this can be used to for example to completely ignore whitespace.",Ait.NA=/NOT_APPLICABLE/});function Mit(t){return Rit(t)?t.LABEL:t.name}function Rit(t){return Rq(t.LABEL)&&""!==t.LABEL}function Dit(t){return Oit(t)}function Oit(t){var e=t.patter
See:https://github.com/chevrotain/chevrotain/issues/564#issuecomment-349062346 for details.`;return Nq(t,$it)&&(r.CATEGORIES=t[$it]),dit([r]),Nq(t,zit)&&(r.LABEL=t[zit]),Nq(t,Uit)&&(r.GROUP=t[Uit]),Nq(t,qit)&&(r.POP_MODE=t[qit]),Nq(t,Git)&&(r.PUSH_MODE=t[Git]),Nq(t,jit)&&(r.LONGER_ALT=t[jit]),Nq(t,Yit)&&(r.LINE_BREAKS=t[Yit]),Nq(t,Hit)&&(r.START_CHARS_HINT=t[Hit]),r}function Pit(t,e,r,n,i,a,s,o){return{image:e,startOffset:r,endOffset:n,startLine:i,endLine:a,startColumn:s,endColumn:o,tokenTypeIdx:t.tokenTypeIdx,tokenType:t}}function Bit(t,e){return hit(t,e)}var Fit,$it,zit,Uit,Git,qit,jit,Yit,Hit,Wit,Vit,Xit,Kit,Zit=t(()=>{TH(),Iit(),Lit(),me(Mit,"tokenLabel"),me(Rit,"hasTokenLabel"),Fit="parent",$it="categories",zit="label",Uit="group",Git="push_mode",qit="pop_mode",jit="longer_alt",Yit="line_breaks",Hit="start_chars_hint",me(Dit,"createToken"),me(Oit,"createTokenInternal"),dit([Wit=Dit({name:"EOF",pattern:Ait.NA})]),me(Pit,"createTokenInstance"),me(Bit,"tokenMatcher")}),Qit=t(()=>{Zit(),TH(),Vrt(),Vit={buildMismatchTokenMessage({expected:t,actual:e}){return`Expecting ${Rit(t)?`--> ${Mit(t)} <--`:`token of type --> ${t.name} <--`} but found --> '${e.image}' <--`},buildNotAllInputParsedMessage({firstRedundant:t}){return"Redundant input, expecting EOF but found: "+t.image},buildNoViableAltMessage({expectedPathsPerAlt:t,actual:e,customUserDescription:r}){var n="Expecting: ",e=`
butfound:'`+tq(e).image+"'";returnr?n+r+e:n+`expecting at least one iteration which starts with one of these possible Token sequences::
<${x(t,t=>`[${x(t,t=>Mit(t)).join(",")}]`).join(" ,")}>`+e}},Object.freeze(Vit),Xit={buildRuleNotFoundError(t,e){return"Invalid grammar, reference to a rule which is not defined: ->"+e.nonTerminalName+`<-
insidetoplevelrule:->`+t.name+"<-"}},Kit={buildDuplicateFoundError(t,e){function r(t){return t instanceof $rt?t.terminalType.name:t instanceof Nrt?t.nonTerminalName:""}me(r,"getExtraProductionArgument");let n=t.name,i=tq(e),a=i.idx,s=Hrt(i),o=r(i),l=0<a,c=`->${s}${l?a:""}<-${o?`with argument: ->${o}<-`:""}
ForFurtherdetails.`)}if(X7(t))this.tokensMap=OY(t,(t,e)=>(t[e.name]=e,t),{});else if(Nq(t,"modes")&&OG(zB($q(t.modes)),kit))e=zB($q(t.modes)),e=lH(e),this.tokensMap=OY(e,(t,e)=>(t[e.name]=e,t),{});else{if(!w6(t))throw new Error("<tokensDictionary> argument must be An Array of Token constructors, A dictionary of Token constructors or an IMultiModeLexerDefinition");this.tokensMap=V$(t)}this.tokensMap.EOF=Wit,e=Nq(t,"modes")?zB($q(t.modes)):$q(t),t=OG(e,t=>Qq(t.categoryMatches)),this.tokenMatcher=t?uit:hit,dit($q(this.tokensMap))}defineRule(r,n,t){if(this.selfAnalysisDone)throw Error(`Grammarrule<${r}>maynotbedefinedafterthe'performSelfAnalysis'methodhasbeencalled'
Idxvaluemustbeanonenegativevaluesmallerthan`+(eot+1))).KNOWN_RECORDER_ERROR=!0,t}var tot,eot,rot,not,iot,aot,sot,oot=t(()=>{TH(),Vrt(),Iit(),Lit(),Zit(),vot(),mst(),tot={description:"This Object indicates the Parser is during Recording Phase"},Object.freeze(tot),eot=Math.pow(2,8)-1,dit([rot=Dit({name:"RECORDING_PHASE_TOKEN",pattern:Ait.NA})]),not=Pit(rot,`ThisITokenindicatestheParserisinRecordingPhase
See:https://chevrotain.io/docs/guide/internals.html#grammar-recording for details`,-1,-1,-1,-1,-1,-1),Object.freeze(not),iot={name:`This CSTNode indicates the Parser is in Recording Phase
`))})}constructor(t,e){if(this.definitionErrors=[],this.selfAnalysisDone=!1,this.initErrorHandler(e),this.initLexerAdapter(),this.initLooksAhead(e),this.initRecognizerEngine(t,e),this.initRecoverable(e),this.initTreeBuilder(e),this.initContentAssist(),this.initGastRecorder(e),this.initPerformanceTracer(e),Nq(e,"ignoredIssues"))throw new Error(`The<ignoredIssues>IParserConfigpropertyhasbeendeprecated.
`}var u0t,d0t,p0t,g0t,f0t,m0t,y0t,v0t,x0t,b0t,w0t,k0t,T0t,_0t,E0t,C0t=t(()=>{wht(),Aet(),zut(),me(Hdt,"parseJSDoc"),me(Wdt,"isJSDoc"),me(Vdt,"getLines"),u0t=/\s*(@([\p{L}][\p{L}\p{N}]*)?)/uy,d0t=/\{(@[\p{L}][\p{L}\p{N}]*)(\s*)([^\r\n}]+)?\}/gu,me(Xdt,"tokenize"),me(Kdt,"buildInlineTokens"),p0t=/\S/,g0t=/\s*$/,me(Zdt,"skipWhitespace"),me(Qdt,"lastCharacter"),me(Jdt,"parseJSDocComment"),me(t0t,"parseJSDocElement"),me(e0t,"appendEmptyLine"),me(r0t,"parseJSDocText"),me(n0t,"parseJSDocInline"),me(i0t,"parseJSDocTag"),me(a0t,"parseJSDocLine"),me(s0t,"normalizeOptions"),me(o0t,"normalizeOption"),f0t=class{static{me(this,"JSDocCommentImpl")}constructor(t,e){this.elements=t,this.range=e}getTag(e){return this.getAllTags().find(t=>t.name===e)}getTags(e){return this.getAllTags().filter(t=>t.name===e)}getAllTags(){return this.elements.filter(t=>"name"in t)}toString(){let t="";for(var e of this.elements)0===t.length?t=e.toString():(e=e.toString(),t+=h0t(t)+e);return t.trim()}toMarkdown(t){let e="";for(var r of this.elements)0===e.length?e=r.toMarkdown(t):(r=r.toMarkdown(t),e+=h0t(e)+r);return e.trim()}},m0t=class{static{me(this,"JSDocTagImpl")}constructor(t,e,r,n){this.name=t,this.content=e,this.inline=r,this.range=n}toString(){let t="@"+this.name,e=this.content.toString();return 1===this.content.inlines.length?t=t+" "+e:1<this.content.inlines.length&&(t=t+`
${s.x+10},`+(y+m+2)).attr("transform","translate(12,12) rotate(45, "+s.x+","+o+")"),p.attr("cx",s.x+2).attr("cy",y).attr("transform","translate(12,12) rotate(45, "+s.x+","+o+")"),d.attr("x",s.x+5).attr("y",y+3).attr("transform","translate(14,14) rotate(45, "+s.x+","+o+")"))}}},"drawCommitTags"),Ugt=me(t=>{switch(t.customType??t.type){case $1t.NORMAL:return"commit-normal";case $1t.REVERSE:return"commit-reverse";case $1t.HIGHLIGHT:return"commit-highlight";case $1t.MERGE:return"commit-merge";case $1t.CHERRY_PICK:return"commit-cherry-pick";default:return"commit-normal"}},"getCommitClassType"),Ggt=me((t,e,r,n)=>{var i,a={x:0,y:0};return 0<t.parents.length?(i=Igt(t.parents))?(i=n.get(i)??a,"TB"===e?i.y+40:"BT"===e?(n.get(t.id)??a).y-40:i.x+40):0:"TB"===e?30:"BT"===e?(n.get(t.id)??a).y-40:0},"calculatePosition"),qgt=me((t,e,r)=>{var r="BT"===Agt&&r?e:e+10,e="TB"===Agt||"BT"===Agt?r:Tgt.get(t.branch)?.pos,n="TB"===Agt||"BT"===Agt?Tgt.get(t.branch)?.pos:r;if(void 0===n||void 0===e)throw new Error("Position were undefined for commit "+t.id);return{x:n,y:e,posWithOffset:r}},"getCommitPosition"),jgt=me((t,a,s)=>{if(!kgt)throw new Error("GitGraph config not found");let o=t.append("g").attr("class","commit-bullets"),l=t.append("g").attr("class","commit-labels"),c="TB"===Agt||"BT"===Agt?30:0,e=[...a.keys()],h=kgt?.parallelCommits??!1,r=me((t,e)=>(t=a.get(t)?.seq,e=a.get(e)?.seq,void 0!==t&&void 0!==e?t-e:0),"sortKeys"),n=e.sort(r);"BT"===Agt&&(h&&Rgt(n,a,c),n=n.reverse()),n.forEach(t=>{var e=a.get(t);if(!e)throw new Error("Commit not found for key "+t);h&&(c=Ggt(e,Agt,c,_gt));var r,n,i,t=qgt(e,c,h);s&&(r=Ugt(e),n=e.customType??e.type,i=Tgt.get(e.branch)?.index??0,Fgt(o,e,t,r,i,n),$gt(l,e,t,c),zgt(l,e,t,c)),"TB"===Agt||"BT"===Agt?_gt.set(e.id,{x:t.x,y:t.posWithOffset}):_gt.set(e.id,{x:t.posWithOffset,y:t.y}),(c="BT"===Agt&&h?c+40:c+40+10)>Sgt&&(Sgt=c)})},"drawCommits"),Ygt=me((e,r,t,n,i)=>{let a=(("TB"===Agt||"BT"===Agt?t.x<n.x:t.y<n.y)?r:e).branch,s=me(t=>t.branch===a,"isOnBranchToGetCurve"),o=me(t=>t.seq>e.seq&&t.seq<r.seq,"isBetweenCommits");return[...i.values()].some(t=>o(t)&&s(t))},"shouldRerouteArrow"),Hgt=me((t,e,r=0)=>{let n=t+Math.abs(t-e)/2,i;return 5<r?n:Cgt.every(t=>10<=Math.abs(t-n))?(Cgt.push(n),n):(i=Math.abs(t-e),Hgt(t,e-i/5,r+1))},"findLane"),Wgt=me((t,e,r,n)=>{var i,a=_gt.get(e.id),s=_gt.get(r.id);if(void 0===a||void 0===s)throw new Error(`Commitpositionsnotfoundforcommits${e.id}and`+r.id);let o=Ygt(e,r,a,s,n),l="",c="",h=0,u=0,d=Tgt.get(r.branch)?.index;r.type===$1t.MERGE&&e.id!==r.parents[0]&&(d=Tgt.get(e.branch)?.index);let p;if(o?(l="A 10 10, 0, 0, 0,",c="A 10 10, 0, 0, 1,",h=10,u=10,n=a.y<s.y?Hgt(a.y,s.y):Hgt(s.y,a.y),i=a.x<s.x?Hgt(a.x,s.x):Hgt(s.x,a.x),p="TB"===Agt?a.x<s.x?`M${a.x}${a.y}L${i-h}${a.y}${c}${i}${a.y+u}L${i}${s.y-h}${l}${i+u}${s.y}L${s.x}`+s.y:(d=Tgt.get(e.branch)?.index,`M${a.x}${a.y}L${i+h}${a.y}${l}${i}${a.y+u}L${i}${s.y-h}${c}${i-u}${s.y}L${s.x}`+s.y):"BT"===Agt?a.x<s.x?`M${a.x}${a.y}L${i-h}${a.y}${l}${i}${a.y-u}L${i}${s.y+h}${c}${i+u}${s.y}L${s.x}`+s.y:(d=Tgt.get(e.branch)?.index,`M${a.x}${a.y}L${i+h}${a.y}${c}${i}${a.y-u}L${i}${s.y+h}${l}${i-u}${s.y}L${s.x}`+s.y):a.y<s.y?`M${a.x}${a.y}L${a.x}${n-h}${l}${a.x+u}${n}L${s.x-h}${n}${c}${s.x}${n+u}L${s.x}`+s.y:(d=Tgt.get(e.branch)?.index,`M${a.x}${a.y}L${a.x}${n+h}${c}${a.x+u}${n}L${s.x-h}${n}${l}${s.x}${n-u}L${s.x}`+s.y)):(l="A 20 20, 0, 0, 0,",c="A 20 20, 0, 0, 1,",h=20,u=20,"TB"===Agt?(a.x<s.x&&(p=r.type===$1t.MERGE&&e.id!==r.parents[0]?`M${a.x}${a.y}L${a.x}${s.y-h}${l}${a.x+u}${s.y}L${s.x}`+s.y:`M${a.x}${a.y}L${s.x-h}${a.y}${c}${s.x}${a.y+u}L${s.x}`+s.y),a.x>s.x&&(l="A 20 20, 0, 0, 0,",c="A 20 20, 0, 0, 1,",h=20,u=20,p=r.type===$1t.MERGE&&e.id!==r.parents[0]?`M${a.x}${a.y}L${a.x}${s.y-h}${c}${a.x-u}${s.y}L${s.x}`+s.y:`M${a.x}${a.y}L${s.x+h}${a.y}${l}${s.x}${a.y+u}L${s.x}`+s.y),a.x===s.x&&(p=`M${a.x}${a.y}L${s.x}`+s.y)):"BT"===Agt?(a.x<s.x&&(p=r.type===$1t.MERGE&&e.id!==r.parents[0]
`,"id:",e,r),!kgt)throw new Error("GitGraph config not found");let s=kgt.rotateCommitLabel??!1,i=n.db,o=(Egt=i.getCommits(),t=i.getBranchesAsObjArray(),Agt=i.getDirection(),O(`[id="${e}"]`)),l=0;t.forEach((t,e)=>{var r=Ngt(t.name),n=o.append("g"),i=n.insert("g").attr("class","branchLabel"),a=i.insert("g").attr("class","label branch-label"),r=(a.node()?.appendChild(r),r.getBBox());l=Kgt(t.name,l,e,r,s),a.remove(),i.remove(),n.remove()}),jgt(o,Egt,!1),kgt.showBranches&&Xgt(o,t),Vgt(o,Egt),jgt(o,Egt,!0),Y_.insertTitle(o,"gitTitleText",kgt.titleTopMargin??0,i.getDiagramTitle()),vh(void 0,o,kgt.diagramPadding,kgt.useMaxWidth)},"draw"),Qgt={draw:Zgt}}),ift=t(()=>{Jgt=me(e=>`
Expecting`+A.join(", ")+", got '"+(this.terminals_[x]||x)+"'":"Parse error on line "+(c+1)+": Unexpected "+(x==d?"end of input":"'"+(this.terminals_[x]||x)+"'"),this.parseError(S,{text:g.match,token:this.terminals_[x]||x,line:g.yylineno,loc:m,expected:A})}if(k[0]instanceof Array&&1<k.length)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+x);switch(k[0]){case 1:n.push(x),a.push(g.yytext),s.push(g.yylloc),n.push(k[1]),x=null,b?(x=b,b=null):(h=g.yyleng,l=g.yytext,c=g.yylineno,m=g.yylloc,0<u&&u--);break;case 2:if(_=this.productions_[k[1]][1],C.$=a[a.length-_],C._$={first_line:s[s.length-(_||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(_||1)].first_column,last_column:s[s.length-1].last_column},y&&(C._$.range=[s[s.length-(_||1)].range[0],s[s.length-1].range[1]]),typeof(E=this.performAction.apply(C,[l,h,c,f.yy,k[1],a,s].concat(p)))<"u")return E;_&&(n=n.slice(0,-1*_*2),a=a.slice(0,-1*_),s=s.slice(0,-1*_)),n.push(this.productions_[k[1]][0]),a.push(C.$),s.push(C._$),E=o[n[n.length-2]][n[n.length-1]],n.push(E);break;case 3:return!0}}return!0},"parse")},i={EOF:1,parseError:me(function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},"parseError"),setInput:me(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:me(function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},"input"),unput:me(function(t){var e=t.length,r=t.split(/(?:\r\n?|\n)/g),t=(this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e,this.match.split(/(?:\r\n?|\n)/g)),n=(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),r.length-1&&(this.yylineno-=r.length-1),this.yylloc.range);return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:r?(r.length===t.length?this.yylloc.first_column:0)+t[t.length-r.length].length-r[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[n[0],n[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},"unput"),more:me(function(){return this._more=!0,this},"more"),reject:me(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+`.Youcanonlyinvokereject()inthelexerwhenthelexerisofthebacktrackingpersuasion(options.backtrack_lexer=true).
`+e+"^"},"showPosition"),test_match:me(function(t,e){var r,n;if(this.options.backtrack_lexer&&(n={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges)&&(n.yylloc.range=this.yylloc.range.slice(0)),(r=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+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],r=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),r)return r;if(this._backtrack)for(var i in n)this[i]=n[i];return!1},"test_match"),next:me(function(){if(this.done)return this.EOF;var t,e,r,n;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;a<i.length;a++)if((r=this._input.match(this.rules[i[a]]))&&(!e||r[0].length>e[0].length)){if(e=r,n=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(r,i[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,i[n]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`.Unrecognizedtext.
Expecting`+A.join(", ")+", got '"+(this.terminals_[x]||x)+"'":"Parse error on line "+(c+1)+": Unexpected "+(x==d?"end of input":"'"+(this.terminals_[x]||x)+"'"),this.parseError(S,{text:g.match,token:this.terminals_[x]||x,line:g.yylineno,loc:m,expected:A})}if(k[0]instanceof Array&&1<k.length)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+x);switch(k[0]){case 1:n.push(x),a.push(g.yytext),s.push(g.yylloc),n.push(k[1]),x=null,b?(x=b,b=null):(h=g.yyleng,l=g.yytext,c=g.yylineno,m=g.yylloc,0<u&&u--);break;case 2:if(_=this.productions_[k[1]][1],C.$=a[a.length-_],C._$={first_line:s[s.length-(_||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(_||1)].first_column,last_column:s[s.length-1].last_column},y&&(C._$.range=[s[s.length-(_||1)].range[0],s[s.length-1].range[1]]),typeof(E=this.performAction.apply(C,[l,h,c,f.yy,k[1],a,s].concat(p)))<"u")return E;_&&(n=n.slice(0,-1*_*2),a=a.slice(0,-1*_),s=s.slice(0,-1*_)),n.push(this.productions_[k[1]][0]),a.push(C.$),s.push(C._$),E=o[n[n.length-2]][n[n.length-1]],n.push(E);break;case 3:return!0}}return!0},"parse")},n={EOF:1,parseError:me(function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},"parseError"),setInput:me(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:me(function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},"input"),unput:me(function(t){var e=t.length,r=t.split(/(?:\r\n?|\n)/g),t=(this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e,this.match.split(/(?:\r\n?|\n)/g)),n=(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),r.length-1&&(this.yylineno-=r.length-1),this.yylloc.range);return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:r?(r.length===t.length?this.yylloc.first_column:0)+t[t.length-r.length].length-r[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[n[0],n[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},"unput"),more:me(function(){return this._more=!0,this},"more"),reject:me(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+`.Youcanonlyinvokereject()inthelexerwhenthelexerisofthebacktrackingpersuasion(options.backtrack_lexer=true).
`+e+"^"},"showPosition"),test_match:me(function(t,e){var r,n;if(this.options.backtrack_lexer&&(n={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges)&&(n.yylloc.range=this.yylloc.range.slice(0)),(r=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+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],r=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),r)return r;if(this._backtrack)for(var i in n)this[i]=n[i];return!1},"test_match"),next:me(function(){if(this.done)return this.EOF;var t,e,r,n;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;a<i.length;a++)if((r=this._input.match(this.rules[i[a]]))&&(!e||r[0].length>e[0].length)){if(e=r,n=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(r,i[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,i[n]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`.Unrecognizedtext.
Expecting`+A.join(", ")+", got '"+(this.terminals_[x]||x)+"'":"Parse error on line "+(c+1)+": Unexpected "+(x==d?"end of input":"'"+(this.terminals_[x]||x)+"'"),this.parseError(S,{text:g.match,token:this.terminals_[x]||x,line:g.yylineno,loc:m,expected:A})}if(k[0]instanceof Array&&1<k.length)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+x);switch(k[0]){case 1:n.push(x),a.push(g.yytext),s.push(g.yylloc),n.push(k[1]),x=null,b?(x=b,b=null):(h=g.yyleng,l=g.yytext,c=g.yylineno,m=g.yylloc,0<u&&u--);break;case 2:if(_=this.productions_[k[1]][1],C.$=a[a.length-_],C._$={first_line:s[s.length-(_||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(_||1)].first_column,last_column:s[s.length-1].last_column},y&&(C._$.range=[s[s.length-(_||1)].range[0],s[s.length-1].range[1]]),typeof(E=this.performAction.apply(C,[l,h,c,f.yy,k[1],a,s].concat(p)))<"u")return E;_&&(n=n.slice(0,-1*_*2),a=a.slice(0,-1*_),s=s.slice(0,-1*_)),n.push(this.productions_[k[1]][0]),a.push(C.$),s.push(C._$),E=o[n[n.length-2]][n[n.length-1]],n.push(E);break;case 3:return!0}}return!0},"parse")},i={EOF:1,parseError:me(function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},"parseError"),setInput:me(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:me(function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},"input"),unput:me(function(t){var e=t.length,r=t.split(/(?:\r\n?|\n)/g),t=(this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e,this.match.split(/(?:\r\n?|\n)/g)),n=(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),r.length-1&&(this.yylineno-=r.length-1),this.yylloc.range);return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:r?(r.length===t.length?this.yylloc.first_column:0)+t[t.length-r.length].length-r[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[n[0],n[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},"unput"),more:me(function(){return this._more=!0,this},"more"),reject:me(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+`.Youcanonlyinvokereject()inthelexerwhenthelexerisofthebacktrackingpersuasion(options.backtrack_lexer=true).
`+e+"^"},"showPosition"),test_match:me(function(t,e){var r,n;if(this.options.backtrack_lexer&&(n={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges)&&(n.yylloc.range=this.yylloc.range.slice(0)),(r=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+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],r=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),r)return r;if(this._backtrack)for(var i in n)this[i]=n[i];return!1},"test_match"),next:me(function(){if(this.done)return this.EOF;var t,e,r,n;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;a<i.length;a++)if((r=this._input.match(this.rules[i[a]]))&&(!e||r[0].length>e[0].length)){if(e=r,n=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(r,i[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,i[n]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`.Unrecognizedtext.
Expecting`+A.join(", ")+", got '"+(this.terminals_[x]||x)+"'":"Parse error on line "+(c+1)+": Unexpected "+(x==d?"end of input":"'"+(this.terminals_[x]||x)+"'"),this.parseError(S,{text:g.match,token:this.terminals_[x]||x,line:g.yylineno,loc:m,expected:A})}if(k[0]instanceof Array&&1<k.length)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+x);switch(k[0]){case 1:n.push(x),a.push(g.yytext),s.push(g.yylloc),n.push(k[1]),x=null,b?(x=b,b=null):(h=g.yyleng,l=g.yytext,c=g.yylineno,m=g.yylloc,0<u&&u--);break;case 2:if(_=this.productions_[k[1]][1],C.$=a[a.length-_],C._$={first_line:s[s.length-(_||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(_||1)].first_column,last_column:s[s.length-1].last_column},y&&(C._$.range=[s[s.length-(_||1)].range[0],s[s.length-1].range[1]]),typeof(E=this.performAction.apply(C,[l,h,c,f.yy,k[1],a,s].concat(p)))<"u")return E;_&&(n=n.slice(0,-1*_*2),a=a.slice(0,-1*_),s=s.slice(0,-1*_)),n.push(this.productions_[k[1]][0]),a.push(C.$),s.push(C._$),E=o[n[n.length-2]][n[n.length-1]],n.push(E);break;case 3:return!0}}return!0},"parse")},s={EOF:1,parseError:me(function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},"parseError"),setInput:me(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:me(function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},"input"),unput:me(function(t){var e=t.length,r=t.split(/(?:\r\n?|\n)/g),t=(this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e,this.match.split(/(?:\r\n?|\n)/g)),n=(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),r.length-1&&(this.yylineno-=r.length-1),this.yylloc.range);return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:r?(r.length===t.length?this.yylloc.first_column:0)+t[t.length-r.length].length-r[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[n[0],n[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},"unput"),more:me(function(){return this._more=!0,this},"more"),reject:me(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+`.Youcanonlyinvokereject()inthelexerwhenthelexerisofthebacktrackingpersuasion(options.backtrack_lexer=true).
`+e+"^"},"showPosition"),test_match:me(function(t,e){var r,n;if(this.options.backtrack_lexer&&(n={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges)&&(n.yylloc.range=this.yylloc.range.slice(0)),(r=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+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],r=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),r)return r;if(this._backtrack)for(var i in n)this[i]=n[i];return!1},"test_match"),next:me(function(){if(this.done)return this.EOF;var t,e,r,n;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;a<i.length;a++)if((r=this._input.match(this.rules[i[a]]))&&(!e||r[0].length>e[0].length)){if(e=r,n=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(r,i[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,i[n]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`.Unrecognizedtext.
Expecting`+A.join(", ")+", got '"+(this.terminals_[x]||x)+"'":"Parse error on line "+(c+1)+": Unexpected "+(x==d?"end of input":"'"+(this.terminals_[x]||x)+"'"),this.parseError(S,{text:g.match,token:this.terminals_[x]||x,line:g.yylineno,loc:m,expected:A})}if(k[0]instanceof Array&&1<k.length)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+x);switch(k[0]){case 1:n.push(x),a.push(g.yytext),s.push(g.yylloc),n.push(k[1]),x=null,b?(x=b,b=null):(h=g.yyleng,l=g.yytext,c=g.yylineno,m=g.yylloc,0<u&&u--);break;case 2:if(_=this.productions_[k[1]][1],C.$=a[a.length-_],C._$={first_line:s[s.length-(_||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(_||1)].first_column,last_column:s[s.length-1].last_column},y&&(C._$.range=[s[s.length-(_||1)].range[0],s[s.length-1].range[1]]),typeof(E=this.performAction.apply(C,[l,h,c,f.yy,k[1],a,s].concat(p)))<"u")return E;_&&(n=n.slice(0,-1*_*2),a=a.slice(0,-1*_),s=s.slice(0,-1*_)),n.push(this.productions_[k[1]][0]),a.push(C.$),s.push(C._$),E=o[n[n.length-2]][n[n.length-1]],n.push(E);break;case 3:return!0}}return!0},"parse")},B={EOF:1,parseError:me(function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},"parseError"),setInput:me(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:me(function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},"input"),unput:me(function(t){var e=t.length,r=t.split(/(?:\r\n?|\n)/g),t=(this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e,this.match.split(/(?:\r\n?|\n)/g)),n=(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),r.length-1&&(this.yylineno-=r.length-1),this.yylloc.range);return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:r?(r.length===t.length?this.yylloc.first_column:0)+t[t.length-r.length].length-r[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[n[0],n[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},"unput"),more:me(function(){return this._more=!0,this},"more"),reject:me(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+`.Youcanonlyinvokereject()inthelexerwhenthelexerisofthebacktrackingpersuasion(options.backtrack_lexer=true).
`+e+"^"},"showPosition"),test_match:me(function(t,e){var r,n;if(this.options.backtrack_lexer&&(n={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges)&&(n.yylloc.range=this.yylloc.range.slice(0)),(r=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+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],r=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),r)return r;if(this._backtrack)for(var i in n)this[i]=n[i];return!1},"test_match"),next:me(function(){if(this.done)return this.EOF;var t,e,r,n;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;a<i.length;a++)if((r=this._input.match(this.rules[i[a]]))&&(!e||r[0].length>e[0].length)){if(e=r,n=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(r,i[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,i[n]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`.Unrecognizedtext.
Expecting`+A.join(", ")+", got '"+(this.terminals_[x]||x)+"'":"Parse error on line "+(c+1)+": Unexpected "+(x==d?"end of input":"'"+(this.terminals_[x]||x)+"'"),this.parseError(S,{text:g.match,token:this.terminals_[x]||x,line:g.yylineno,loc:m,expected:A})}if(k[0]instanceof Array&&1<k.length)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+x);switch(k[0]){case 1:n.push(x),a.push(g.yytext),s.push(g.yylloc),n.push(k[1]),x=null,b?(x=b,b=null):(h=g.yyleng,l=g.yytext,c=g.yylineno,m=g.yylloc,0<u&&u--);break;case 2:if(_=this.productions_[k[1]][1],C.$=a[a.length-_],C._$={first_line:s[s.length-(_||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(_||1)].first_column,last_column:s[s.length-1].last_column},y&&(C._$.range=[s[s.length-(_||1)].range[0],s[s.length-1].range[1]]),typeof(E=this.performAction.apply(C,[l,h,c,f.yy,k[1],a,s].concat(p)))<"u")return E;_&&(n=n.slice(0,-1*_*2),a=a.slice(0,-1*_),s=s.slice(0,-1*_)),n.push(this.productions_[k[1]][0]),a.push(C.$),s.push(C._$),E=o[n[n.length-2]][n[n.length-1]],n.push(E);break;case 3:return!0}}return!0},"parse")},r={EOF:1,parseError:me(function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},"parseError"),setInput:me(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:me(function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},"input"),unput:me(function(t){var e=t.length,r=t.split(/(?:\r\n?|\n)/g),t=(this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e,this.match.split(/(?:\r\n?|\n)/g)),n=(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),r.length-1&&(this.yylineno-=r.length-1),this.yylloc.range);return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:r?(r.length===t.length?this.yylloc.first_column:0)+t[t.length-r.length].length-r[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[n[0],n[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},"unput"),more:me(function(){return this._more=!0,this},"more"),reject:me(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+`.Youcanonlyinvokereject()inthelexerwhenthelexerisofthebacktrackingpersuasion(options.backtrack_lexer=true).
`+e+"^"},"showPosition"),test_match:me(function(t,e){var r,n;if(this.options.backtrack_lexer&&(n={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges)&&(n.yylloc.range=this.yylloc.range.slice(0)),(r=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+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],r=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),r)return r;if(this._backtrack)for(var i in n)this[i]=n[i];return!1},"test_match"),next:me(function(){if(this.done)return this.EOF;var t,e,r,n;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;a<i.length;a++)if((r=this._input.match(this.rules[i[a]]))&&(!e||r[0].length>e[0].length)){if(e=r,n=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(r,i[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,i[n]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`.Unrecognizedtext.
Expecting`+A.join(", ")+", got '"+(this.terminals_[x]||x)+"'":"Parse error on line "+(c+1)+": Unexpected "+(x==d?"end of input":"'"+(this.terminals_[x]||x)+"'"),this.parseError(S,{text:g.match,token:this.terminals_[x]||x,line:g.yylineno,loc:m,expected:A})}if(k[0]instanceof Array&&1<k.length)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+x);switch(k[0]){case 1:n.push(x),a.push(g.yytext),s.push(g.yylloc),n.push(k[1]),x=null,b?(x=b,b=null):(h=g.yyleng,l=g.yytext,c=g.yylineno,m=g.yylloc,0<u&&u--);break;case 2:if(_=this.productions_[k[1]][1],C.$=a[a.length-_],C._$={first_line:s[s.length-(_||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(_||1)].first_column,last_column:s[s.length-1].last_column},y&&(C._$.range=[s[s.length-(_||1)].range[0],s[s.length-1].range[1]]),typeof(E=this.performAction.apply(C,[l,h,c,f.yy,k[1],a,s].concat(p)))<"u")return E;_&&(n=n.slice(0,-1*_*2),a=a.slice(0,-1*_),s=s.slice(0,-1*_)),n.push(this.productions_[k[1]][0]),a.push(C.$),s.push(C._$),E=o[n[n.length-2]][n[n.length-1]],n.push(E);break;case 3:return!0}}return!0},"parse")},n={EOF:1,parseError:me(function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},"parseError"),setInput:me(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:me(function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},"input"),unput:me(function(t){var e=t.length,r=t.split(/(?:\r\n?|\n)/g),t=(this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e,this.match.split(/(?:\r\n?|\n)/g)),n=(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),r.length-1&&(this.yylineno-=r.length-1),this.yylloc.range);return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:r?(r.length===t.length?this.yylloc.first_column:0)+t[t.length-r.length].length-r[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[n[0],n[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},"unput"),more:me(function(){return this._more=!0,this},"more"),reject:me(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+`.Youcanonlyinvokereject()inthelexerwhenthelexerisofthebacktrackingpersuasion(options.backtrack_lexer=true).
`+e+"^"},"showPosition"),test_match:me(function(t,e){var r,n;if(this.options.backtrack_lexer&&(n={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges)&&(n.yylloc.range=this.yylloc.range.slice(0)),(r=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+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],r=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),r)return r;if(this._backtrack)for(var i in n)this[i]=n[i];return!1},"test_match"),next:me(function(){if(this.done)return this.EOF;var t,e,r,n;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;a<i.length;a++)if((r=this._input.match(this.rules[i[a]]))&&(!e||r[0].length>e[0].length)){if(e=r,n=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(r,i[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,i[n]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`.Unrecognizedtext.
Expecting`+A.join(", ")+", got '"+(this.terminals_[x]||x)+"'":"Parse error on line "+(c+1)+": Unexpected "+(x==d?"end of input":"'"+(this.terminals_[x]||x)+"'"),this.parseError(S,{text:g.match,token:this.terminals_[x]||x,line:g.yylineno,loc:m,expected:A})}if(k[0]instanceof Array&&1<k.length)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+x);switch(k[0]){case 1:n.push(x),a.push(g.yytext),s.push(g.yylloc),n.push(k[1]),x=null,b?(x=b,b=null):(h=g.yyleng,l=g.yytext,c=g.yylineno,m=g.yylloc,0<u&&u--);break;case 2:if(_=this.productions_[k[1]][1],C.$=a[a.length-_],C._$={first_line:s[s.length-(_||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(_||1)].first_column,last_column:s[s.length-1].last_column},y&&(C._$.range=[s[s.length-(_||1)].range[0],s[s.length-1].range[1]]),typeof(E=this.performAction.apply(C,[l,h,c,f.yy,k[1],a,s].concat(p)))<"u")return E;_&&(n=n.slice(0,-1*_*2),a=a.slice(0,-1*_),s=s.slice(0,-1*_)),n.push(this.productions_[k[1]][0]),a.push(C.$),s.push(C._$),E=o[n[n.length-2]][n[n.length-1]],n.push(E);break;case 3:return!0}}return!0},"parse")},i={EOF:1,parseError:me(function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},"parseError"),setInput:me(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:me(function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},"input"),unput:me(function(t){var e=t.length,r=t.split(/(?:\r\n?|\n)/g),t=(this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e,this.match.split(/(?:\r\n?|\n)/g)),n=(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),r.length-1&&(this.yylineno-=r.length-1),this.yylloc.range);return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:r?(r.length===t.length?this.yylloc.first_column:0)+t[t.length-r.length].length-r[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[n[0],n[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},"unput"),more:me(function(){return this._more=!0,this},"more"),reject:me(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+`.Youcanonlyinvokereject()inthelexerwhenthelexerisofthebacktrackingpersuasion(options.backtrack_lexer=true).
`+e+"^"},"showPosition"),test_match:me(function(t,e){var r,n;if(this.options.backtrack_lexer&&(n={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges)&&(n.yylloc.range=this.yylloc.range.slice(0)),(r=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+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],r=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),r)return r;if(this._backtrack)for(var i in n)this[i]=n[i];return!1},"test_match"),next:me(function(){if(this.done)return this.EOF;var t,e,r,n;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;a<i.length;a++)if((r=this._input.match(this.rules[i[a]]))&&(!e||r[0].length>e[0].length)){if(e=r,n=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(r,i[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,i[n]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`.Unrecognizedtext.
Expecting`+A.join(", ")+", got '"+(this.terminals_[x]||x)+"'":"Parse error on line "+(c+1)+": Unexpected "+(x==d?"end of input":"'"+(this.terminals_[x]||x)+"'"),this.parseError(S,{text:g.match,token:this.terminals_[x]||x,line:g.yylineno,loc:m,expected:A})}if(k[0]instanceof Array&&1<k.length)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+x);switch(k[0]){case 1:n.push(x),a.push(g.yytext),s.push(g.yylloc),n.push(k[1]),x=null,b?(x=b,b=null):(h=g.yyleng,l=g.yytext,c=g.yylineno,m=g.yylloc,0<u&&u--);break;case 2:if(_=this.productions_[k[1]][1],C.$=a[a.length-_],C._$={first_line:s[s.length-(_||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(_||1)].first_column,last_column:s[s.length-1].last_column},y&&(C._$.range=[s[s.length-(_||1)].range[0],s[s.length-1].range[1]]),typeof(E=this.performAction.apply(C,[l,h,c,f.yy,k[1],a,s].concat(p)))<"u")return E;_&&(n=n.slice(0,-1*_*2),a=a.slice(0,-1*_),s=s.slice(0,-1*_)),n.push(this.productions_[k[1]][0]),a.push(C.$),s.push(C._$),E=o[n[n.length-2]][n[n.length-1]],n.push(E);break;case 3:return!0}}return!0},"parse")},i={EOF:1,parseError:me(function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},"parseError"),setInput:me(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:me(function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},"input"),unput:me(function(t){var e=t.length,r=t.split(/(?:\r\n?|\n)/g),t=(this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e,this.match.split(/(?:\r\n?|\n)/g)),n=(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),r.length-1&&(this.yylineno-=r.length-1),this.yylloc.range);return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:r?(r.length===t.length?this.yylloc.first_column:0)+t[t.length-r.length].length-r[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[n[0],n[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},"unput"),more:me(function(){return this._more=!0,this},"more"),reject:me(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+`.Youcanonlyinvokereject()inthelexerwhenthelexerisofthebacktrackingpersuasion(options.backtrack_lexer=true).
`+e+"^"},"showPosition"),test_match:me(function(t,e){var r,n;if(this.options.backtrack_lexer&&(n={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges)&&(n.yylloc.range=this.yylloc.range.slice(0)),(r=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+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],r=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),r)return r;if(this._backtrack)for(var i in n)this[i]=n[i];return!1},"test_match"),next:me(function(){if(this.done)return this.EOF;var t,e,r,n;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;a<i.length;a++)if((r=this._input.match(this.rules[i[a]]))&&(!e||r[0].length>e[0].length)){if(e=r,n=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(r,i[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,i[n]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`.Unrecognizedtext.
Expecting`+A.join(", ")+", got '"+(this.terminals_[x]||x)+"'":"Parse error on line "+(c+1)+": Unexpected "+(x==d?"end of input":"'"+(this.terminals_[x]||x)+"'"),this.parseError(S,{text:g.match,token:this.terminals_[x]||x,line:g.yylineno,loc:m,expected:A})}if(k[0]instanceof Array&&1<k.length)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+x);switch(k[0]){case 1:n.push(x),a.push(g.yytext),s.push(g.yylloc),n.push(k[1]),x=null,b?(x=b,b=null):(h=g.yyleng,l=g.yytext,c=g.yylineno,m=g.yylloc,0<u&&u--);break;case 2:if(_=this.productions_[k[1]][1],C.$=a[a.length-_],C._$={first_line:s[s.length-(_||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(_||1)].first_column,last_column:s[s.length-1].last_column},y&&(C._$.range=[s[s.length-(_||1)].range[0],s[s.length-1].range[1]]),typeof(E=this.performAction.apply(C,[l,h,c,f.yy,k[1],a,s].concat(p)))<"u")return E;_&&(n=n.slice(0,-1*_*2),a=a.slice(0,-1*_),s=s.slice(0,-1*_)),n.push(this.productions_[k[1]][0]),a.push(C.$),s.push(C._$),E=o[n[n.length-2]][n[n.length-1]],n.push(E);break;case 3:return!0}}return!0},"parse")},c={EOF:1,parseError:me(function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},"parseError"),setInput:me(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:me(function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},"input"),unput:me(function(t){var e=t.length,r=t.split(/(?:\r\n?|\n)/g),t=(this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e,this.match.split(/(?:\r\n?|\n)/g)),n=(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),r.length-1&&(this.yylineno-=r.length-1),this.yylloc.range);return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:r?(r.length===t.length?this.yylloc.first_column:0)+t[t.length-r.length].length-r[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[n[0],n[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},"unput"),more:me(function(){return this._more=!0,this},"more"),reject:me(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+`.Youcanonlyinvokereject()inthelexerwhenthelexerisofthebacktrackingpersuasion(options.backtrack_lexer=true).
`+e+"^"},"showPosition"),test_match:me(function(t,e){var r,n;if(this.options.backtrack_lexer&&(n={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges)&&(n.yylloc.range=this.yylloc.range.slice(0)),(r=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+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],r=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),r)return r;if(this._backtrack)for(var i in n)this[i]=n[i];return!1},"test_match"),next:me(function(){if(this.done)return this.EOF;var t,e,r,n;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;a<i.length;a++)if((r=this._input.match(this.rules[i[a]]))&&(!e||r[0].length>e[0].length)){if(e=r,n=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(r,i[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,i[n]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`.Unrecognizedtext.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:me(function(){return this.next()||this.lex()},"lex"),begin:me(function(t){this.conditionStack.push(t)},"begin"),popState:me(function(){return 0<this.conditionStack.length-1?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:me(function(){return(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]]:this.conditions.INITIAL).rules},"_currentRules"),topState:me(function(t){return 0<=(t=this.conditionStack.length-1-Math.abs(t||0))?this.conditionStack[t]:"INITIAL"},"topState"),pushState:me(function(t){this.begin(t)},"pushState"),stateStackSize:me(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:me(function(t,e,r,n){switch(r){case 0:return t.getLogger().trace("Found comment",e.yytext),6;case 1:return 8;case 2:this.begin("CLASS");break;case 3:return this.popState(),16;case 4:this.popState();break;case 5:t.getLogger().trace("Begin icon"),this.begin("ICON");break;case 6:return t.getLogger().trace("SPACELINE"),6;case 7:return 7;case 8:return 15;case 9:t.getLogger().trace("end icon"),this.popState();break;case 10:return t.getLogger().trace("Exploding node"),this.begin("NODE"),19;case 11:return t.getLogger().trace("Cloud"),this.begin("NODE"),19;case 12:return t.getLogger().trace("Explosion Bang"),this.begin("NODE"),19;case 13:return t.getLogger().trace("Cloud Bang"),this.begin("NODE"),19;case 14:case 15:case 16:case 17:return this.begin("NODE"),19;case 18:return 13;case 19:return 22;case 20:return 11;case 21:this.begin("NSTR2");break;case 22:return"NODE_DESCR";case 23:this.popState();break;case 24:t.getLogger().trace("Starting NSTR"),this.begin("NSTR");break;case 25:return t.getLogger().trace("description:",e.yytext),"NODE_DESCR";case 26:this.popState();break;case 27:return this.popState(),t.getLogger().trace("node end ))"),"NODE_DEND";case 28:return this.popState(),t.getLogger().trace("node end )"),"NODE_DEND";case 29:return this.popState(),t.getLogger().trace("node end ...",e.yytext),"NODE_DEND";case 30:return this.popState(),t.getLogger().trace("node end (("),"NODE_DEND";case 31:case 32:return this.popState(),t.getLogger().trace("node end (-"),"NODE_DEND";case 33:case 34:return this.popState(),t.getLogger().trace("node end (("),"NODE_DEND";case 35:case 36:return t.getLogger().trace("Long description:",e.yytext),20}},"anonymous"),rules:[/^(?:\s*%%.*)/i,/^(?:mindmap\b)/i,/^(?::::)/i,/^(?:.+)/i,/^(?:\n)/i,/^(?:::icon\()/i,/^(?:[\s]+[\n])/i,/^(?:[\n]+)/i,/^(?:[^\)]+)/i,/^(?:\))/i,/^(?:-\))/i,/^(?:\(-)/i,/^(?:\)\))/i,/^(?:\))/i,/^(?:\(\()/i,/^(?:\{\{)/i,/^(?:\()/i,/^(?:\[)/i,/^(?:[\s]+)/i,/^(?:[^\(\[\n\)\{\}]+)/i,/^(?:$)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:[^"]+)/i,/^(?:["])/i,/^(?:[\)]\))/i,/^(?:[\)])/i,/^(?:[\]])/i,/^(?:\}\})/i,/^(?:\(-)/i,/^(?:-\))/i,/^(?:\(\()/i,/^(?:\()/i,/^(?:[^\)\]\(\}]+)/i,/^(?:.+(?!\(\())/i],conditions:{CLASS:{rules:[3,4],inclusive:!1},ICON:{rules:[8,9],inclusive:!1},NSTR2:{rules:[22,23],inclusive:!1},NSTR:{rules:[25,26],inclusive:!1},NODE:{rules:[21,24,27,28,29,30,31,32,33,34,35,36],inclusive:!1},INITIAL:{rules:[0,1,2,5,6,7,10,11,12,13,14,15,16,17,18,19,20],inclusive:!0}}};r.lexer=c,me(t,"Parser"),(o7t=new((t.prototype=r).Parser=t)).parser=o7t,l7t=o7t}),C7t=t(()=>{gu(),Qc(),e(),Ln(),c7t=[],h7t=0,u7t={},d7t=me(()=>{c7t=[],h7t=0,u7t={}},"clear"),p7t=me(function(e){for(lett=c7t.length-1;0<=t;t--)if(c7t[t].level<e)returnc7t[t];returnnull},"getParent"),g7t=me(()=>0<c7t.length?c7t[0]:null,"getMindmap"),f7t=me((t,e,r,n)=>{R.info("addNode",t,e,r,n);leti=D(),a=i.mindmap?.padding??vr.mindmap.padding;switch(n){casem7t.ROUNDED_RECT:casem7t.RECT:casem7t.HEXAGON:a*=2}if(e={id:h7t++,nodeId:Ec(e,i),level:t,descr:Ec(r,i),type:n,children:[],width:i.mindmap?.maxNodeWidth??vr.mindmap.maxNodeWidth,padding:a},r=p7t(t))r.children.push(e);elseif(0!==c7t.length)thrownewError('There can be only one root. No parent could be found for ("'+e.descr+'")
Expecting`+A.join(", ")+", got '"+(this.terminals_[x]||x)+"'":"Parse error on line "+(c+1)+": Unexpected "+(x==d?"end of input":"'"+(this.terminals_[x]||x)+"'"),this.parseError(S,{text:g.match,token:this.terminals_[x]||x,line:g.yylineno,loc:m,expected:A})}if(k[0]instanceof Array&&1<k.length)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+x);switch(k[0]){case 1:n.push(x),a.push(g.yytext),s.push(g.yylloc),n.push(k[1]),x=null,b?(x=b,b=null):(h=g.yyleng,l=g.yytext,c=g.yylineno,m=g.yylloc,0<u&&u--);break;case 2:if(_=this.productions_[k[1]][1],C.$=a[a.length-_],C._$={first_line:s[s.length-(_||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(_||1)].first_column,last_column:s[s.length-1].last_column},y&&(C._$.range=[s[s.length-(_||1)].range[0],s[s.length-1].range[1]]),typeof(E=this.performAction.apply(C,[l,h,c,f.yy,k[1],a,s].concat(p)))<"u")return E;_&&(n=n.slice(0,-1*_*2),a=a.slice(0,-1*_),s=s.slice(0,-1*_)),n.push(this.productions_[k[1]][0]),a.push(C.$),s.push(C._$),E=o[n[n.length-2]][n[n.length-1]],n.push(E);break;case 3:return!0}}return!0},"parse")},c={EOF:1,parseError:me(function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},"parseError"),setInput:me(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:me(function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},"input"),unput:me(function(t){var e=t.length,r=t.split(/(?:\r\n?|\n)/g),t=(this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e,this.match.split(/(?:\r\n?|\n)/g)),n=(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),r.length-1&&(this.yylineno-=r.length-1),this.yylloc.range);return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:r?(r.length===t.length?this.yylloc.first_column:0)+t[t.length-r.length].length-r[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[n[0],n[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},"unput"),more:me(function(){return this._more=!0,this},"more"),reject:me(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+`.Youcanonlyinvokereject()inthelexerwhenthelexerisofthebacktrackingpersuasion(options.backtrack_lexer=true).
`+e+"^"},"showPosition"),test_match:me(function(t,e){var r,n;if(this.options.backtrack_lexer&&(n={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges)&&(n.yylloc.range=this.yylloc.range.slice(0)),(r=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+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],r=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),r)return r;if(this._backtrack)for(var i in n)this[i]=n[i];return!1},"test_match"),next:me(function(){if(this.done)return this.EOF;var t,e,r,n;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;a<i.length;a++)if((r=this._input.match(this.rules[i[a]]))&&(!e||r[0].length>e[0].length)){if(e=r,n=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(r,i[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,i[n]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`.Unrecognizedtext.
}`,(e=TR(i,{schema:kR})).shape&&(e.shape!==e.shape.toLowerCase()||e.shape.includes("_")))throw new Error(`Nosuchshape:${e.shape}.Shapenamesshouldbelowercase.`);e?.shape&&"kanbanItem"===e.shape&&(n.shape=e?.shape),e?.label&&(n.label=e?.label),e?.icon&&(n.icon=e?.icon.toString()),e?.assigned&&(n.assigned=e?.assigned.toString()),e?.ticket&&(n.ticket=e?.ticket.toString()),e?.priority&&(n.priority=e?.priority)}(r=KIt(t))?n.parentId=r.id||"kbn"+WIt++:HIt.push(n),YIt.push(n)},"addNode"),tMt={DEFAULT:0,NO_BORDER:0,ROUNDED_RECT:1,RECT:2,CIRCLE:3,CLOUD:4,BANG:5,HEXAGON:6},eMt=me((t,e)=>{switch(R.debug("In get type",t,e),t){case"[":return tMt.RECT;case"(":return")"===e?tMt.ROUNDED_RECT:tMt.CLOUD;case"((":return tMt.CIRCLE;case")":return tMt.CLOUD;case"))":return tMt.BANG;case"{{":return tMt.HEXAGON;default:return tMt.DEFAULT}},"getType"),rMt=me((t,e)=>{VIt[t]=e},"setElementForId"),nMt=me(t=>{var e,r;t&&(e=D(),r=YIt[YIt.length-1],t.icon&&(r.icon=Ec(t.icon,e)),t.class)&&(r.cssClasses=Ec(t.class,e))},"decorateNode"),iMt=me(t=>{switch(t){case tMt.DEFAULT:return"no-border";case tMt.RECT:return"rect";case tMt.ROUNDED_RECT:return"rounded-rect";case tMt.CIRCLE:return"circle";case tMt.CLOUD:return"cloud";case tMt.BANG:return"bang";case tMt.HEXAGON:return"hexgon";default:return"no-border"}},"type2Str"),aMt=me(()=>R,"getLogger"),sMt=me(t=>VIt[t],"getElementById"),oMt={clear:XIt,addNode:JIt,getSections:ZIt,getData:QIt,nodeType:tMt,getType:eMt,setElementForId:rMt,decorateNode:nMt,type2Str:iMt,getLogger:aMt,getElementById:sMt}}),mMt=t(()=>{gu(),e(),ayt(),Jc(),Ln(),jD(),DO(),lMt=me(async(t,e,r,n)=>{R.debug(`Renderingkanbandiagram
`+t);var i,a=n.db.getData(),s=D(),o=(s.htmlLabels=!1,(t=Qmt(e)).append("g")),l=(o.attr("class","sections"),t.append("g"));l.attr("class","items");let c=a.nodes.filter(t=>t.isGroup),h=0,u=[],d=25;for(i of c){var p=s?.kanban?.sectionWidth||200,p=(h+=1,i.x=p*h+10*(h-1)/2,i.width=p,i.y=0,i.height=3*p,i.rx=5,i.ry=5,i.cssClasses=i.cssClasses+" section-"+h,await $D(o,i));d=Math.max(d,p?.labelBBox?.height),u.push(p)}let g=0;for(let i of c){var f,m=u[g];g+=1;let t=s?.kanban?.sectionWidth||200,e=3*-t/2+d,r=e,n=a.nodes.filter(t=>t.parentId===i.id);for(f of n){if(f.isGroup)throw new Error("Groups within groups are not allowed in Kanban diagrams");f.x=i.x,f.width=t-15;var y=(await AO(l,f,{config:s})).node().getBBox();f.y=r+y.height/2,await MO(f),r=f.y+y.height/2+5}var m=m.cluster.select("rect"),v=Math.max(r-e+30,50)+(d-25);m.attr("height",v)}Wc(void 0,t,s.mindmap?.padding??vr.kanban.padding,s.mindmap?.useMaxWidth??vr.kanban.useMaxWidth)},"draw"),cMt={draw:lMt}}),yMt=t(()=>{xn(),hMt=me(r=>{let e="";for(let t=0;t<r.THEME_COLOR_LIMIT;t++)r["lineColor"+t]=r["lineColor"+t]||r["cScaleInv"+t],qe(r["lineColor"+t])?r["lineColor"+t]=We(r["lineColor"+t],20):r["lineColor"+t]=Xe(r["lineColor"+t],20);var n=me((t,e)=>(r.darkMode?Xe:We)(t,e),"adjuster");for(let t=0;t<r.THEME_COLOR_LIMIT;t++){var i=""+(17-3*t);e+=`
Expecting`+A.join(", ")+", got '"+(this.terminals_[x]||x)+"'":"Parse error on line "+(c+1)+": Unexpected "+(x==d?"end of input":"'"+(this.terminals_[x]||x)+"'"),this.parseError(S,{text:g.match,token:this.terminals_[x]||x,line:g.yylineno,loc:m,expected:A})}if(k[0]instanceof Array&&1<k.length)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+x);switch(k[0]){case 1:n.push(x),a.push(g.yytext),s.push(g.yylloc),n.push(k[1]),x=null,b?(x=b,b=null):(h=g.yyleng,l=g.yytext,c=g.yylineno,m=g.yylloc,0<u&&u--);break;case 2:if(_=this.productions_[k[1]][1],C.$=a[a.length-_],C._$={first_line:s[s.length-(_||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(_||1)].first_column,last_column:s[s.length-1].last_column},y&&(C._$.range=[s[s.length-(_||1)].range[0],s[s.length-1].range[1]]),typeof(E=this.performAction.apply(C,[l,h,c,f.yy,k[1],a,s].concat(p)))<"u")return E;_&&(n=n.slice(0,-1*_*2),a=a.slice(0,-1*_),s=s.slice(0,-1*_)),n.push(this.productions_[k[1]][0]),a.push(C.$),s.push(C._$),E=o[n[n.length-2]][n[n.length-1]],n.push(E);break;case 3:return!0}}return!0},"parse")},r={EOF:1,parseError:me(function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},"parseError"),setInput:me(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:me(function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},"input"),unput:me(function(t){var e=t.length,r=t.split(/(?:\r\n?|\n)/g),t=(this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e,this.match.split(/(?:\r\n?|\n)/g)),n=(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),r.length-1&&(this.yylineno-=r.length-1),this.yylloc.range);return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:r?(r.length===t.length?this.yylloc.first_column:0)+t[t.length-r.length].length-r[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[n[0],n[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},"unput"),more:me(function(){return this._more=!0,this},"more"),reject:me(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+`.Youcanonlyinvokereject()inthelexerwhenthelexerisofthebacktrackingpersuasion(options.backtrack_lexer=true).
`+e+"^"},"showPosition"),test_match:me(function(t,e){var r,n;if(this.options.backtrack_lexer&&(n={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges)&&(n.yylloc.range=this.yylloc.range.slice(0)),(r=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+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],r=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),r)return r;if(this._backtrack)for(var i in n)this[i]=n[i];return!1},"test_match"),next:me(function(){if(this.done)return this.EOF;var t,e,r,n;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;a<i.length;a++)if((r=this._input.match(this.rules[i[a]]))&&(!e||r[0].length>e[0].length)){if(e=r,n=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(r,i[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,i[n]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`.Unrecognizedtext.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:me(function(){return this.next()||this.lex()},"lex"),begin:me(function(t){this.conditionStack.push(t)},"begin"),popState:me(function(){return 0<this.conditionStack.length-1?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:me(function(){return(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]]:this.conditions.INITIAL).rules},"_currentRules"),topState:me(function(t){return 0<=(t=this.conditionStack.length-1-Math.abs(t||0))?this.conditionStack[t]:"INITIAL"},"topState"),pushState:me(function(t){this.begin(t)},"pushState"),stateStackSize:me(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:me(function(t,e,r,n){switch(r){case 0:return this.pushState("csv"),4;case 1:return 10;case 2:return 5;case 3:return 12;case 4:return this.pushState("escaped_text"),18;case 5:return 20;case 6:return this.popState("escaped_text"),18;case 7:return 19}},"anonymous"),rules:[/^(?:sankey-beta\b)/i,/^(?:$)/i,/^(?:((\u000D\u000A)|(\u000A)))/i,/^(?:(\u002C))/i,/^(?:(\u0022))/i,/^(?:([\u0020-\u0021\u0023-\u002B\u002D-\u007E])*)/i,/^(?:(\u0022)(?!(\u0022)))/i,/^(?:(([\u0020-\u0021\u0023-\u002B\u002D-\u007E])|(\u002C)|(\u000D)|(\u000A)|(\u0022)(\u0022))*)/i],conditions:{csv:{rules:[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}}};i.lexer=r,me(t,"Parser"),(bMt=new((t.prototype=i).Parser=t)).parser=bMt,wMt=bMt}),PMt=t(()=>{gu(),Qc(),pu(),kMt=[],TMt=[],_Mt=new Map,EMt=me(()=>{kMt=[],TMt=[],_Mt=new Map,sh()},"clear"),CMt=class{constructor(t,e,r=0){this.source=t,this.target=e,this.value=r}static{me(this,"SankeyLink")}},SMt=me((t,e,r)=>{kMt.push(new CMt(t,e,r))},"addLink"),AMt=class{constructor(t){this.ID=t}static{me(this,"SankeyNode")}},LMt=me(t=>{t=L.sanitizeText(t,D());let e=_Mt.get(t);return void 0===e&&(e=new AMt(t),_Mt.set(t,e),TMt.push(e)),e},"findOrCreateNode"),NMt=me(()=>TMt,"getNodes"),IMt=me(()=>kMt,"getLinks"),MMt=me(()=>({nodes:TMt.map(t=>({id:t.ID})),links:kMt.map(t=>({source:t.source.ID,target:t.target.ID,value:t.value}))}),"getGraph"),RMt={nodesMap:_Mt,getConfig:me(()=>D().sankey,"getConfig"),getNodes:NMt,getLinks:IMt,getGraph:MMt,addLink:SMt,findOrCreateNode:LMt,getAccTitle:lh,setAccTitle:oh,getAccDescription:hh,setAccDescription:ch,getDiagramTitle:dh,setDiagramTitle:uh,clear:EMt}});function BMt(e,r){let n;if(void 0===r)for(var t of e)null!=t&&(n<t||void 0===n&&t<=t)&&(n=t);else{let t=-1;for(var i of e)null!=(i=r(i,++t,e))&&(n<i||void 0===n&&i<=i)&&(n=i)}return n}var FMt=t(()=>{me(BMt,"max")});function $Mt(e,r){let n;if(void 0===r)for(var t of e)null!=t&&(n>t||void 0===n&&t<=t)&&(n=t);else{let t=-1;for(var i of e)null!=(i=r(i,++t,e))&&(n>i||void 0===n&&i<=i)&&(n=i)}return n}var zMt=t(()=>{me($Mt,"min")});function UMt(e,r){let n=0;if(void 0===r)for(var t of e)(t=+t)&&(n+=t);else{let t=-1;for(var i of e)(i=+r(i,++t,e))&&(n+=i)}return n}var GMt=t(()=>{me(UMt,"sum")}),qMt=t(()=>{FMt(),zMt(),GMt()});function jMt(t){return t.target.depth}function YMt(t){return t.depth}function HMt(t,e){return e-1-t.height}function WMt(t,e){return t.sourceLinks.length?t.depth:e-1}function VMt(t){return t.targetLinks.length?t.depth:t.sourceLinks.length?$Mt(t.sourceLinks,jMt)-1:0}var XMt=t(()=>{qMt(),me(jMt,"targetDepth"),me(YMt,"left"),me(HMt,"right"),me(WMt,"justify"),me(VMt,"center")});function KMt(t){return function(){return t}}var ZMt=t(()=>{me(KMt,"constant")});function QMt(t,e){return tRt(t.source,e.source)||t.index-e.index}function JMt(t,e){return tRt(t.target,e.target)||t.index-e.index}function tRt(t,e){return t.y0-e.y0}function eRt(t){return t.value}function rRt(t){return t.index}function nRt(t){return t.nodes}function iRt(t){return t.links}function aRt(t,e){if(t=t.get(e))return t;throw new Error("missing: "+e)}function sRt({nodes:t}){for(var r of t){let t=r.y0,e=t;for(var n of r.sourceLinks)n.y0=t+n.width/2,t+=n.width;for(var i of r.tar
Expecting`+A.join(", ")+", got '"+(this.terminals_[x]||x)+"'":"Parse error on line "+(c+1)+": Unexpected "+(x==d?"end of input":"'"+(this.terminals_[x]||x)+"'"),this.parseError(S,{text:g.match,token:this.terminals_[x]||x,line:g.yylineno,loc:m,expected:A})}if(k[0]instanceof Array&&1<k.length)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+x);switch(k[0]){case 1:n.push(x),a.push(g.yytext),s.push(g.yylloc),n.push(k[1]),x=null,b?(x=b,b=null):(h=g.yyleng,l=g.yytext,c=g.yylineno,m=g.yylloc,0<u&&u--);break;case 2:if(_=this.productions_[k[1]][1],C.$=a[a.length-_],C._$={first_line:s[s.length-(_||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(_||1)].first_column,last_column:s[s.length-1].last_column},y&&(C._$.range=[s[s.length-(_||1)].range[0],s[s.length-1].range[1]]),typeof(E=this.performAction.apply(C,[l,h,c,f.yy,k[1],a,s].concat(p)))<"u")return E;_&&(n=n.slice(0,-1*_*2),a=a.slice(0,-1*_),s=s.slice(0,-1*_)),n.push(this.productions_[k[1]][0]),a.push(C.$),s.push(C._$),E=o[n[n.length-2]][n[n.length-1]],n.push(E);break;case 3:return!0}}return!0},"parse")},d={EOF:1,parseError:me(function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},"parseError"),setInput:me(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:me(function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},"input"),unput:me(function(t){var e=t.length,r=t.split(/(?:\r\n?|\n)/g),t=(this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e,this.match.split(/(?:\r\n?|\n)/g)),n=(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),r.length-1&&(this.yylineno-=r.length-1),this.yylloc.range);return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:r?(r.length===t.length?this.yylloc.first_column:0)+t[t.length-r.length].length-r[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[n[0],n[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},"unput"),more:me(function(){return this._more=!0,this},"more"),reject:me(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+`.Youcanonlyinvokereject()inthelexerwhenthelexerisofthebacktrackingpersuasion(options.backtrack_lexer=true).
`+e+"^"},"showPosition"),test_match:me(function(t,e){var r,n;if(this.options.backtrack_lexer&&(n={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges)&&(n.yylloc.range=this.yylloc.range.slice(0)),(r=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+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],r=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),r)return r;if(this._backtrack)for(var i in n)this[i]=n[i];return!1},"test_match"),next:me(function(){if(this.done)return this.EOF;var t,e,r,n;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;a<i.length;a++)if((r=this._input.match(this.rules[i[a]]))&&(!e||r[0].length>e[0].length)){if(e=r,n=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(r,i[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,i[n]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`.Unrecognizedtext.