1import{o as kt,p as mt,s as _t,g as xt,b as bt,a as vt,_ as d,c as ot,b8 as wt,d as G,ad as St,q as Lt,k as Et}from"./mermaid.core.DrVRyZsJ.js";import{o as At}from"./ordinal.Cq-sa5MH.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};t.SENTRY_RELEASE={id:"c71e717f85102b72b3e962a3fd03a66f506af669"};var n=new t.Error().stack;n&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[n]="fb5aef77-dc45-4587-897b-81523025dddc",t._sentryDebugIdIdentifier="sentry-dbid-fb5aef77-dc45-4587-897b-81523025dddc")}catch{}})();function Tt(t){for(var n=t.length/6|0,s=new Array(n),l=0;l<n;)s[l]="#"+t.slice(l*6,++l*6);return s}const Mt=Tt("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab");function at(t,n){let s;if(n===void 0)for(const l of t)l!=null&&(s<l||s===void 0&&l>=l)&&(s=l);else{let l=-1;for(let u of t)(u=n(u,++l,t))!=null&&(s<u||s===void 0&&u>=u)&&(s=u)}return s}function yt(t,n){let s;if(n===void 0)for(const l of t)l!=null&&(s>l||s===void 0&&l>=l)&&(s=l);else{let l=-1;for(let u of t)(u=n(u,++l,t))!=null&&(s>u||s===void 0&&u>=u)&&(s=u)}return s}function J(t,n){let s=0;if(n===void 0)for(let l of t)(l=+l)&&(s+=l);else{let l=-1;for(let u of t)(u=+n(u,++l,t))&&(s+=u)}return s}function Nt(t){return t.target.depth}function Ct(t){return t.depth}function Pt(t,n){return n-1-t.height}function gt(t,n){return t.sourceLinks.length?t.depth:n-1}function It(t){return t.targetLinks.length?t.depth:t.sourceLinks.length?yt(t.sourceLinks,Nt)-1:0}function Y(t){return function(){return t}}function lt(t,n){return q(t.source,n.source)||t.index-n.index}function ct(t,n){return q(t.target,n.target)||t.index-n.index}function q(t,n){return t.y0-n.y0}function tt(t){return t.value}function Ot(t){return t.index}function Dt(t){return t.nodes}function $t(t){return t.links}function ut(t,n){const s=t.get(n);if(!s)throw new Error("missing: "+n);return s}function ht({nodes:t}){for(const n of t){let s=n.y0,l=s;for(const u of n.sourceLinks)u.y0=s+u.width/2,s+=u.width;for(const u of n.targetLinks)u.y1=l+u.width/2,l+=u.width}}function jt(){let t=0,n=0,s=1,l=1,u=24,_=8,g,k=Ot,o=gt,a,h,m=Dt,x=$t,y=6;function b(){const i={nodes:m.apply(null,arguments),links:x.apply(null,arguments)};return T(i),A(i),M(i),I(i),w(i),ht(i),i}b.update=function(i){return ht(i),i},b.nodeId=function(i){return arguments.length?(k=typeof i=="function"?i:Y(i),b):k},b.nodeAlign=function(i){return arguments.length?(o=typeof i=="function"?i:Y(i),b):o},b.nodeSort=function(i){return arguments.length?(a=i,b):a},b.nodeWidth=function(i){return arguments.length?(u=+i,b):u},b.nodePadding=function(i){return arguments.length?(_=g=+i,b):_},b.nodes=function(i){return arguments.length?(m=typeof i=="function"?i:Y(i),b):m},b.links=function(i){return arguments.length?(x=typeof i=="function"?i:Y(i),b):x},b.linkSort=function(i){return arguments.length?(h=i,b):h},b.size=function(i){return arguments.length?(t=n=0,s=+i[0],l=+i[1],b):[s-t,l-n]},b.extent=function(i){return arguments.length?(t=+i[0][0],s=+i[1][0],n=+i[0][1],l=+i[1][1],b):[[t,n],[s,l]]},b.iterations=function(i){return arguments.length?(y=+i,b):y};function T({nodes:i,links:f}){for(const[e,r]of i.entries())r.index=e,r.sourceLinks=[],r.targetLinks=[];const c=new Map(i.map((e,r)=>[k(e,r,i),e]));for(const[e,r]of f.entries()){r.index=e;let{source:p,target:v}=r;typeof p!="object"&&(p=r.source=ut(c,p)),typeof v!="object"&&(v=r.target=ut(c,v)),p.sourceLinks.push(r),v.targetLinks.push(r)}if(h!=null)for(const{sourceLinks:e,targetLinks:r}of i)e.sort(h),r.sort(h)}function A({nodes:i}){for(const f of i)f.value=f.fixedValue===void 0?Math.max(J(f.sourceLinks,tt),J(f.targetLinks,tt)):f.fixedValue}function M({nodes:i}){const f=i.length;let c=new Set(i),e=new Set,r=0;for(;c.size;){for(const p of c){p.depth=r;for(const{target:v}of p.sourceLinks)e.add(v)}if(++r>f)throw new Error("circular link");c=e,e=new Set}}function I({nodes:i}){const f=i.length;let c=new Set(i),e=new Set,r=0;for(;c.size;){for(const p of c){p.height=r;for(const{source:v}of p.targetLinks)e.add(v)}if(++r>f)throw new Error("circular link");c=e,e=new Set}}function N({nodes:i}){const f=at(i,r=>r.depth)+1,c=(s-t-u)/(f-1),e=new Array(f);for(const r of i){const p=Math.max(0,Math.min(f-1,Math.floor(o.call(null,r,f))));r.layer=p,r.x0=t+p*c,r.x1=r.x0+u,e[p]?e[p].push(r):e[p]=[r]}if(a)for(const r of e)r.sort(a);return e}function D(i){const f=yt(i,c=>(l-n-(c.length-1)*g)/J(c,tt));for(const c of i){let e=n;for(const r of c){r.y0=e,r.y1=e+r.value*f,e=r.y1+g;for(const p of r.sourceLinks)p.width=p.value*f}e=(l-e+g)/(c.length+1);for(let r=0;r<c.length;++r){const p=c[r];p.y0+=e*(r+1),p.y1+=e*(r+1)}S(c)}}function w(i){const f=N(i);g=Math.min(_,(l-n)/(at(f,c=>c.length)-1)),D(f);for(let c=0;c<y;++c){const e=Math.pow(.99,c),r=Math.max(1-e,(c+1)/y);R(f,e,r),C(f,e,r)}}function C(i,f,c){for(let e=1,r=i.length;e<r;++e){const p=i[e];for(const v of p){let L=0,z=0;for(const{source:W,value:Z}of v.targetLinks){let U=Z*(v.layer-W.layer);L+=P(W,v)*U,z+=U}if(!(z>0))continue;let V=(L/z-v.y0)*f;v.y0+=V,v.y1+=V,j(v)}a===void 0&&p.sort(q),$(p,c)}}function R(i,f,c){for(let e=i.length,r=e-2;r>=0;--r){const p=i[r];for(const v of p){let L=0,z=0;for(const{target:W,value:Z}of v.sourceLinks){let U=Z*(W.layer-v.layer);L+=E(v,W)*U,z+=U}if(!(z>0))continue;let V=(L/z-v.y0)*f;v.y0+=V,v.y1+=V,j(v)}a===void 0&&p.sort(q),$(p,c)}}function $(i,f){const c=i.length>>1,e=i[c];O(i,e.y0-g,c-1,f),F(i,e.y1+g,c+1,f),O(i,l,i.length-1,f),F(i,n,0,f)}function F(i,f,c,e){for(;c<i.length;++c){const r=i[c],p=(f-r.y0)*e;p>1e-6&&(r.y0+=p,r.y1+=p),f=r.y1+g}}function O(i,f,c,e){for(;c>=0;--c){const r=i[c],p=(r.y1-f)*e;p>1e-6&&(r.y0-=p,r.y1-=p),f=r.y0-g}}
vendor: 4,342 bytes, line 1
1function j({sourceLinks:i,targetLinks:f}){if(h===void 0){for(const{source:{sourceLinks:c}}of f)c.sort(ct);for(const{target:{targetLinks:c}}of i)c.sort(lt)}}function S(i){if(h===void 0)for(const{sourceLinks:f,targetLinks:c}of i)f.sort(ct),c.sort(lt)}function P(i,f){let c=i.y0-(i.sourceLinks.length-1)*g/2;for(const{target:e,width:r}of i.sourceLinks){if(e===f)break;c+=r+g}for(const{source:e,width:r}of f.targetLinks){if(e===i)break;c-=r}return c}function E(i,f){let c=f.y0-(f.targetLinks.length-1)*g/2;for(const{source:e,width:r}of f.targetLinks){if(e===i)break;c+=r+g}for(const{target:e,width:r}of i.sourceLinks){if(e===f)break;c-=r}return c}return b}var et=Math.PI,nt=2*et,B=1e-6,zt=nt-B;function it(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function pt(){return new it}it.prototype=pt.prototype={constructor:it,moveTo:function(t,n){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,n){this._+="L"+(this._x1=+t)+","+(this._y1=+n)},quadraticCurveTo:function(t,n,s,l){this._+="Q"+ +t+","+ +n+","+(this._x1=+s)+","+(this._y1=+l)},bezierCurveTo:function(t,n,s,l,u,_){this._+="C"+ +t+","+ +n+","+ +s+","+ +l+","+(this._x1=+u)+","+(this._y1=+_)},arcTo:function(t,n,s,l,u){t=+t,n=+n,s=+s,l=+l,u=+u;var _=this._x1,g=this._y1,k=s-t,o=l-n,a=_-t,h=g-n,m=a*a+h*h;if(u<0)throw new Error("negative radius: "+u);if(this._x1===null)this._+="M"+(this._x1=t)+","+(this._y1=n);else if(m>B)if(!(Math.abs(h*k-o*a)>B)||!u)this._+="L"+(this._x1=t)+","+(this._y1=n);else{var x=s-_,y=l-g,b=k*k+o*o,T=x*x+y*y,A=Math.sqrt(b),M=Math.sqrt(m),I=u*Math.tan((et-Math.acos((b+m-T)/(2*A*M)))/2),N=I/M,D=I/A;Math.abs(N-1)>B&&(this._+="L"+(t+N*a)+","+(n+N*h)),this._+="A"+u+","+u+",0,0,"+ +(h*x>a*y)+","+(this._x1=t+D*k)+","+(this._y1=n+D*o)}},arc:function(t,n,s,l,u,_){t=+t,n=+n,s=+s,_=!!_;var g=s*Math.cos(l),k=s*Math.sin(l),o=t+g,a=n+k,h=1^_,m=_?l-u:u-l;if(s<0)throw new Error("negative radius: "+s);this._x1===null?this._+="M"+o+","+a:(Math.abs(this._x1-o)>B||Math.abs(this._y1-a)>B)&&(this._+="L"+o+","+a),s&&(m<0&&(m=m%nt+nt),m>zt?this._+="A"+s+","+s+",0,1,"+h+","+(t-g)+","+(n-k)+"A"+s+","+s+",0,1,"+h+","+(this._x1=o)+","+(this._y1=a):m>B&&(this._+="A"+s+","+s+",0,"+ +(m>=et)+","+h+","+(this._x1=t+s*Math.cos(u))+","+(this._y1=n+s*Math.sin(u))))},rect:function(t,n,s,l){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)+"h"+ +s+"v"+ +l+"h"+-s+"Z"},toString:function(){return this._}};function ft(t){return function(){return t}}function Bt(t){return t[0]}function Rt(t){return t[1]}var Ft=Array.prototype.slice;function Vt(t){return t.source}function Wt(t){return t.target}function Ut(t){var n=Vt,s=Wt,l=Bt,u=Rt,_=null;function g(){var k,o=Ft.call(arguments),a=n.apply(this,o),h=s.apply(this,o);if(_||(_=k=pt()),t(_,+l.apply(this,(o[0]=a,o)),+u.apply(this,o),+l.apply(this,(o[0]=h,o)),+u.apply(this,o)),k)return _=null,k+""||null}return g.source=function(k){return arguments.length?(n=k,g):n},g.target=function(k){return arguments.length?(s=k,g):s},g.x=function(k){return arguments.length?(l=typeof k=="function"?k:ft(+k),g):l},g.y=function(k){return arguments.length?(u=typeof k=="function"?k:ft(+k),g):u},g.context=function(k){return arguments.length?(_=k??null,g):_},g}function Gt(t,n,s,l,u){t.moveTo(n,s),t.bezierCurveTo(n=(n+l)/2,s,n,u,l,u)}function Yt(){return Ut(Gt)}function qt(t){return[t.source.x1,t.y0]}function Ht(t){return[t.target.x0,t.y1]}function Xt(){return Yt().source(qt).target(Ht)}var rt=(function(){var t=d(function(k,o,a,h){for(a=a||{},h=k.length;h--;a[k[h]]=o);return a},"o"),n=[1,9],s=[1,10],l=[1,5,10,12],u={trace:d(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:d(function(o,a,h,m,x,y,b){var T=y.length-1;switch(x){case 7:const A=m.findOrCreateNode(y[T-4].trim().replaceAll('""','"')),M=m.f
vendor: 9,955 bytes, lines 1-6
1indOrCreateNode(y[T-2].trim().replaceAll('""','"')),I=parseFloat(y[T].trim());m.addLink(A,M,I);break;case 8:case 9:case 11:this.$=y[T];break;case 10:this.$=y[T-1];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},{5:[1,3]},{6:4,8:5,15:6,16:7,17:8,18:n,20:s},{1:[2,6],7:11,10:[1,12]},t(s,[2,4],{9:13,5:[1,14]}),{12:[1,15]},t(l,[2,8]),t(l,[2,9]),{19:[1,16]},t(l,[2,11]),{1:[2,1]},{1:[2,5]},t(s,[2,2]),{6:17,8:5,15:6,16:7,17:8,18:n,20:s},{15:18,16:7,17:8,18:n,20:s},{18:[1,19]},t(s,[2,3]),{12:[1,20]},t(l,[2,10]),{15:21,16:7,17:8,18:n,20:s},t([1,5,10],[2,7])],defaultActions:{11:[2,1],12:[2,5]},parseError:d(function(o,a){if(a.recoverable)this.trace(o);else{var h=new Error(o);throw h.hash=a,h}},"parseError"),parse:d(function(o){var a=this,h=[0],m=[],x=[null],y=[],b=this.table,T="",A=0,M=0,I=2,N=1,D=y.slice.call(arguments,1),w=Object.create(this.lexer),C={yy:{}};for(var R in this.yy)Object.prototype.hasOwnProperty.call(this.yy,R)&&(C.yy[R]=this.yy[R]);w.setInput(o,C.yy),C.yy.lexer=w,C.yy.parser=this,typeof w.yylloc>"u"&&(w.yylloc={});var $=w.yylloc;y.push($);var F=w.options&&w.options.ranges;typeof C.yy.parseError=="function"?this.parseError=C.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function O(L){h.length=h.length-2*L,x.length=x.length-L,y.length=y.length-L}d(O,"popStack");function j(){var L;return L=m.pop()||w.lex()||N,typeof L!="number"&&(L instanceof Array&&(m=L,L=m.pop()),L=a.symbols_[L]||L),L}d(j,"lex");for(var S,P,E,i,f={},c,e,r,p;;){if(P=h[h.length-1],this.defaultActions[P]?E=this.defaultActions[P]:((S===null||typeof S>"u")&&(S=j()),E=b[P]&&b[P][S]),typeof E>"u"||!E.length||!E[0]){var v="";p=[];for(c in b[P])this.terminals_[c]&&c>I&&p.push("'"+this.terminals_[c]+"'");w.showPosition?v="Parse error on line "+(A+1)+`: 2`+w.showPosition()+` 3Expecting `+p.join(", ")+", got '"+(this.terminals_[S]||S)+"'":v="Parse error on line "+(A+1)+": Unexpected "+(S==N?"end of input":"'"+(this.terminals_[S]||S)+"'"),this.parseError(v,{text:w.match,token:this.terminals_[S]||S,line:w.yylineno,loc:$,expected:p})}if(E[0]instanceof Array&&E.length>1)throw new Error("Parse Error: multiple actions possible at state: "+P+", token: "+S);switch(E[0]){case 1:h.push(S),x.push(w.yytext),y.push(w.yylloc),h.push(E[1]),S=null,M=w.yyleng,T=w.yytext,A=w.yylineno,$=w.yylloc;break;case 2:if(e=this.productions_[E[1]][1],f.$=x[x.length-e],f._$={first_line:y[y.length-(e||1)].first_line,last_line:y[y.length-1].last_line,first_column:y[y.length-(e||1)].first_column,last_column:y[y.length-1].last_column},F&&(f._$.range=[y[y.length-(e||1)].range[0],y[y.length-1].range[1]]),i=this.performAction.apply(f,[T,M,A,C.yy,E[1],x,y].concat(D)),typeof i<"u")return i;e&&(h=h.slice(0,-1*e*2),x=x.slice(0,-1*e),y=y.slice(0,-1*e)),h.push(this.productions_[E[1]][0]),x.push(f.$),y.push(f._$),r=b[h[h.length-2]][h[h.length-1]],h.push(r);break;case 3:return!0}}return!0},"parse")},_=(function(){var k={EOF:1,parseError:d(function(a,h){if(this.yy.parser)this.yy.parser.parseError(a,h);else throw new Error(a)},"parseError"),setInput:d(function(o,a){return this.yy=a||this.yy||{},this._input=o,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:d(function(){var o=this._input[0];this.yytext+=o,this.yyleng++,this.offset++,this.match+=o,this.matched+=o;var a=o.match(/(?:\r\n?|\n).*/g);return a?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),o},"input"),unput:d(function(o){var a=o.length,h=o.split(/(?:\r\n?|\n)/g);this._input=o+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-a),this.offset-=a;var m=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),h.length-1&&(this.yylineno-=h.length-1);var x=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:h?(h.length===m.length?this.yylloc.first_column:0)+m[m.length-h.length].length-h[0].length:this.yylloc.first_column-a},this.options.ranges&&(this.yylloc.range=[x[0],x[0]+this.yyleng-a]),this.yyleng=this.yytext.length,this},"unput"),more:d(function(){return this._more=!0,this},"more"),reject:d(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). 4`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:d(function(o){this.unput(this.match.slice(o))},"less"),pastInput:d(function(){var o=this.matched.substr(0,this.matched.length-this.match.length);return(o.length>20?"...":"")+o.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:d(function(){var o=this.match;return o.length<20&&(o+=this._input.substr(0,20-o.length)),(o.substr(0,20)+(o.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:d(function(){var o=this.pastInput(),a=new Array(o.length+1).join("-");return o+this.upcomingInput()+` 5`+a+"^"},"showPosition"),test_match:d(function(o,a){var h,m,x;if(this.options.backtrack_lexer&&(x={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(x.yylloc.range=this.yylloc.range.slice(0))),m=o[0].match(/(?:\r\n?|\n).*/g),m&&(this.yylineno+=m.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:m?m[m.length-1].length-m[m.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+o[0].length},this.yytext+=o[0],this.match+=o[0],this.matches=o,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(o[0].length),this.matched+=o[0],h=this.performAction.call(this,this.yy,this,a,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),h)return h;if(this._backtrack){for(var y in x)this[y]=x[y];return!1}return!1},"test_match"),next:d(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var o,a,h,m;this._more||(this.yytext="",this.match="");for(var x=this._currentRules(),y=0;y<x.length;y++)if(h=this._input.match(this.rules[x[y]]),h&&(!a||h[0].length>a[0].length)){if(a=h,m=y,this.options.backtrack_lexer){if(o=this.test_match(h,x[y]),o!==!1)return o;if(this._backtrack){a=!1;continue}else return!1}else if(!this.options.flex)break}return a?(o=this.test_match(a,x[m]),o!==!1?o:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. 6`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:d(function(){var a=this.next();return a||this.lex()},"lex"),begin:d(function(a){this.conditionStack.push(a)},"begin"),popState:d(function(){var a=this.conditionStack.length-1;return a>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:d(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:d(function(a){return a=this.conditionStack.length-1-Math.abs(a||0),a>=0?this.conditionStack[a]:"INITIAL"},"topState"),pushState:d(function(a){this.begin(a)},"pushState"),stateStackSize:d(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:d(function(a,h,m,x){switch(m){case 0:return this.pushState("csv"),4;case 1:return this.pushState("csv"),4;case 2:return 10;case 3:return 5;case 4:return 12;case 5:return this.pushState("escaped_text"),18;case 6:return 20;case 7:return this.popState("escaped_text"),18;case 8:return 19}},"anonymous"),rules:[/^(?:sankey-beta\b)/i,/^(?:sankey\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:[2,3,4,5,6,7,8],inclusive:!1},escaped_text:{rules:[7,8],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8],inclusive:!0}}};return k})();u.lexer=_;function g(){this.yy={}}return d(g,"Parser"),g.prototype=u,u.Parser=g,new g})();rt.parser=rt;var H=rt,Q=[],K=[],X=new Map,Qt=d(()=>{Q=[],K=[],X=new Map,Lt()},"clear"),Kt=class{constructor(t,n,s=0){this.source=t,this.target=n,this.value=s}static{d(this,"SankeyLink")}},Zt=d((t,n,s)=>{Q.push(new Kt(t,n,s))},"addLink"),Jt=class{constructor(t){this.ID=t}static{d(this,"SankeyNode")}},te=d(t=>{t=Et.sanitizeText(t,ot());let n=X.get(t);return n===void 0&&(n=new Jt(t),X.set(t,n),K.push(n)),n},"findOrCreateNode"),ee=d(()=>K,"getNodes"),ne=d(()=>Q,"getLinks"),ie=d(()=>({nodes:K.map(t=>({id:t.ID})),links:Q.map(t=>({source:t.source.ID,target:t.target.ID,value:t.value}))}),"getGraph"),re={nodesMap:X,getConfig:d(()=>ot().sankey,"getConfig"),getNodes:ee,getLinks:ne,getGraph:ie,addLink:Zt,findOrCreateNode:te,getAccTitle:vt,setAccTitle:bt,getAccDescription:xt,setAccDescription:_t,getDiagramTitle:mt,setDiagramTitle:kt,clear:Qt},dt=class st{static{d(this,"Uid")}static{this.count=0}static next(n){return new st(n+ ++st.count)}constructor(n){this.id=n,this.href=`#${n}`}
6toString(){return"url("+this.href+")"}},se={left:Ct,right:Pt,center:It,justify:gt},oe=d(t=>{let n=0,s=0;for(const l of t){const u=l.value??0;u>n&&(n=u,s=l.layer??0)}return s},"findCentralNodeLayer"),ae=d(function(t,n,s,l){const{securityLevel:u,sankey:_}=ot(),g=wt.sankey;let k;u==="sandbox"&&(k=G("#i"+n));const o=u==="sandbox"?G(k.nodes()[0].contentDocument.body):G("body"),a=u==="sandbox"?o.select(`[id="${n}"]`):G(`[id="${n}"]`),h=_?.width??g.width,m=_?.height??g.width,x=_?.useMaxWidth??g.useMaxWidth,y=_?.nodeAlignment??g.nodeAlignment,b=_?.prefix??g.prefix,T=_?.suffix??g.suffix,A=_?.showValues??g.showValues,M=_?.nodeWidth??g.nodeWidth??10,I=_?.nodePadding??g.nodePadding??12,N=_?.labelStyle??g.labelStyle??"legacy",D=_?.nodeColors??{},w=l.db.getGraph(),C=se[y];jt().nodeId(e=>e.id).nodeWidth(M).nodePadding(I+(A?15:0)).nodeAlign(C).extent([[0,0],[h,m]])(w);const $=oe(w.nodes),F=At(Mt),O=d(e=>D[e]??F(e),"getNodeColor");a.append("g").attr("class","nodes").selectAll(".node").data(w.nodes).join("g").attr("class","node").attr("id",e=>(e.uid=dt.next("node-")).id).attr("transform",function(e){return"translate("+e.x0+","+e.y0+")"}).attr("x",e=>e.x0).attr("y",e=>e.y0).append("rect").attr("height",e=>e.y1-e.y0).attr("width",e=>e.x1-e.x0).attr("fill",e=>O(e.id));const j=d(({id:e,value:r})=>A?`${e} 7${b}${Math.round(r*100)/100}${T}`:e,"getText"),S=d(e=>N==="outlined"?(e.layer??0)<$?{x:e.x0-6,anchor:"end"}:{x:e.x1+6,anchor:"start"}:e.x0<h/2?{x:e.x1+6,anchor:"start"}:{x:e.x0-6,anchor:"end"},"getLabelPosition"),P=a.append("g").attr("class","node-labels").attr("font-size",14),E=d(e=>P.selectAll(e?`.${e}`:"text").data(w.nodes).join("text").attr("class",e??null).attr("x",r=>S(r).x).attr("y",r=>(r.y1+r.y0)/2).attr("dy",`${A?"0":"0.35"}em`).attr("text-anchor",r=>S(r).anchor).text(j),"appendLabel");N==="outlined"?(E("sankey-label-bg"),E("sankey-label-fg")):E();const i=a.append("g").attr("class","links").attr("fill","none").attr("stroke-opacity",.5).selectAll(".link").data(w.links).join("g").attr("class","link").style("mix-blend-mode","multiply"),f=_?.linkColor??"gradient";if(f==="gradient"){const e=i.append("linearGradient").attr("id",r=>(r.uid=dt.next("linearGradient-")).id).attr("gradientUnits","userSpaceOnUse").attr("x1",r=>r.source.x1).attr("x2",r=>r.target.x0);e.append("stop").attr("offset","0%").attr("stop-color",r=>O(r.source.id)),e.append("stop").attr("offset","100%").attr("stop-color",r=>O(r.target.id))}let c;switch(f){case"gradient":c=d(e=>e.uid,"coloring");break;case"source":c=d(e=>O(e.source.id),"coloring");break;case"target":c=d(e=>O(e.target.id),"coloring");break;default:c=f}i.append("path").attr("d",Xt()).attr("stroke",c).attr("stroke-width",e=>Math.max(1,e.width)),St(void 0,a,0,x)},"draw"),le={draw:ae},ce=d(t=>t.replaceAll(/^[^\S\n\r]+|[^\S\n\r]+$/g,"").replaceAll(/([\n\r])+/g,` 8`).trim(),"prepareTextForParsing"),ue=d(t=>`.label { 9 font-family: ${t.fontFamily}; 10 } 11 12 .node-labels { 13 font-family: ${t.fontFamily}; 14 } 15 16 /* Outlined label style - background stroke for better readability */ 17 .sankey-label-bg { 18 stroke: ${t.mainBkg||t.background||"#fff"}; 19 stroke-width: 4px; 20 stroke-linejoin: round; 21 paint-order: stroke; 22 } 23 24 /* Foreground label text */ 25 .sankey-label-fg { 26 fill: ${t.textColor}; 27 } 28 29 /* Node styling */ 30 .node rect { 31 shape-rendering: crispEdges; 32 } 33 34 /* Link styling */ 35 .link { 36 fill: none; 37 stroke-opacity: 0.5; 38 mix-blend-mode: multiply; 39 } 40`,"getStyles"),he=ue,fe=H.parse.bind(H);H.parse=t=>fe(ce(t));var ge={styles:he,parser:H,db:re,renderer:le};export{ge as diagram};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.