Liga-System/.venv/lib/python3.12/site-packages/nicegui/elements/mermaid/dist/sankeyDiagram-XSL23WO4-CiWF1Wt0.js

3 lines
22 KiB
JavaScript
Raw Normal View History

2026-02-16 09:18:53 +01:00
import{m as t,j as e,e as n,G as i,$ as r,H as s,U as o,a as l,A as a,i as h,aa as c,ap as u,N as f,h as y,ay as d}from"./index-BDq3hoFe.js";var p=function(){var e=t(function(t,e,n,i){for(n=n||{},i=t.length;i--;n[t[i]]=e);return n},"o"),n=[1,9],i=[1,10],r=[1,5,10,12],s={trace:t(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SANKEY:4,NEWLINE:5,csv:6,opt_eof:7,record:8,csv_tail:9,EOF:10,"field[source]":11,COMMA:12,"field[target]":13,"field[value]":14,field:15,escaped:16,non_escaped:17,DQUOTE:18,ESCAPED_TEXT:19,NON_ESCAPED_TEXT:20,$accept:0,$end:1},terminals_:{2:"error",4:"SANKEY",5:"NEWLINE",10:"EOF",11:"field[source]",12:"COMMA",13:"field[target]",14:"field[value]",18:"DQUOTE",19:"ESCAPED_TEXT",20:"NON_ESCAPED_TEXT"},productions_:[0,[3,4],[6,2],[9,2],[9,0],[7,1],[7,0],[8,5],[15,1],[15,1],[16,3],[17,1]],performAction:t(function(t,e,n,i,r,s,o){var l=s.length-1;switch(r){case 7:let t=i.findOrCreateNode(s[l-4].trim().replaceAll('""','"')),e=i.findOrCreateNode(s[l-2].trim().replaceAll('""','"')),n=parseFloat(s[l].trim());i.addLink(t,e,n);break;case 8:case 9:case 11:this.$=s[l];break;case 10:this.$=s[l-1]}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},{5:[1,3]},{6:4,8:5,15:6,16:7,17:8,18:n,20:i},{1:[2,6],7:11,10:[1,12]},e(i,[2,4],{9:13,5:[1,14]}),{12:[1,15]},e(r,[2,8]),e(r,[2,9]),{19:[1,16]},e(r,[2,11]),{1:[2,1]},{1:[2,5]},e(i,[2,2]),{6:17,8:5,15:6,16:7,17:8,18:n,20:i},{15:18,16:7,17:8,18:n,20:i},{18:[1,19]},e(i,[2,3]),{12:[1,20]},e(r,[2,10]),{15:21,16:7,17:8,18:n,20:i},e([1,5,10],[2,7])],defaultActions:{11:[2,1],12:[2,5]},parseError:t(function(t,e){if(!e.recoverable){var n=new Error(t);throw n.hash=e,n}this.trace(t)},"parseError"),parse:t(function(e){var n=this,i=[0],r=[],s=[null],o=[],l=this.table,a="",h=0,c=0,u=o.slice.call(arguments,1),f=Object.create(this.lexer),y={yy:{}};for(var d in this.yy)Object.prototype.hasOwnProperty.call(this.yy,d)&&(y.yy[d]=this.yy[d]);f.setInput(e,y.yy),y.yy.lexer=f,y.yy.parser=this,typeof f.yylloc>"u"&&(f.yylloc={});var p=f.yylloc;o.push(p);var g=f.options&&f.options.ranges;function _(){var t;return"number"!=typeof(t=r.pop()||f.lex()||1)&&(t instanceof Array&&(t=(r=t).pop()),t=n.symbols_[t]||t),t}"function"==typeof y.yy.parseError?this.parseError=y.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,t(function(t){i.length=i.length-2*t,s.length=s.length-t,o.length=o.length-t},"popStack"),t(_,"lex");for(var k,m,x,v,b,w,L,S,E,A={};;){if(x=i[i.length-1],this.defaultActions[x]?v=this.defaultActions[x]:((null===k||typeof k>"u")&&(k=_()),v=l[x]&&l[x][k]),typeof v>"u"||!v.length||!v[0]){var T="";for(w in E=[],l[x])this.terminals_[w]&&w>2&&E.push("'"+this.terminals_[w]+"'");T=f.showPosition?"Parse error on line "+(h+1)+":\n"+f.showPosition()+"\nExpecting "+E.join(", ")+", got '"+(this.terminals_[k]||k)+"'":"Parse error on line "+(h+1)+": Unexpected "+(1==k?"end of input":"'"+(this.terminals_[k]||k)+"'"),this.parseError(T,{text:f.match,token:this.terminals_[k]||k,line:f.yylineno,loc:p,expected:E})}if(v[0]instanceof Array&&v.length>1)throw new Error("Parse Error: multiple actions possible at state: "+x+", token: "+k);switch(v[0]){case 1:i.push(k),s.push(f.yytext),o.push(f.yylloc),i.push(v[1]),k=null,m?(k=m,m=null):(c=f.yyleng,a=f.yytext,h=f.yylineno,p=f.yylloc);break;case 2:if(L=this.productions_[v[1]][1],A.$=s[s.length-L],A._$={first_line:o[o.length-(L||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(L||1)].first_column,last_column:o[o.length-1].last_column},g&&(A._$.range=[o[o.length-(L||1)].range[0],o[o.length-1].range[1]]),typeof(b=this.performAction.apply(A,[a,c,h,y.yy,v[1],s,o].concat(u)))<"u")return b;L&&(i=i.slice(0,-1*L*2),s=s.slice(0,-1*L),o=o.slice(0,-1*L)),i.push(this.productions_[v[1]][0]),s.push(A.$),o.push(A._$),S=l[i[i.length-2]][i[i.length-1]],i.push(S);break;case 3:return!0}}return!0},"parse")},o={EOF:1,parseError:t(function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},"parseError"),setInput:t(function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyl
//# sourceMappingURL=sankeyDiagram-XSL23WO4-CiWF1Wt0.js.map