vendor: 4,111 bytes, lines 1-2
1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./D4qWU2hq.js","./D3Fn0Q-1.js","./gQTNEBNM.js","./entry.LUYD6OoX.css","./CSkVsLlQ.js","./DPkpYPgA.js","./Behv_S80.js","./Cgv8kqME.js","./CuVMBNE8.js","./ZkEJUkwm.js","./DdWQa8e9.js","./CmjAEoxe.js","./CG8nTRUS.js","./Cvm7ueDk.js","./BfRqm112.js","./CHTPPMTr.js","./COTmCVou.js","./286IhEIL.js","./COIFF080.js","./DiC_iWwB.js","./BFEW4-h2.js","./DUeIVVWy.js","./CNVcxbIU.js","./DgHUS6p2.js","./BZN2nzna.js","./DvDaaAsy.js","./HjEt413a.js","./DRTcbSfY.js","./D55DEA-z.js","./B2jVUxKG.js","./C9ebooV8.js","./Ey53msQq.js","./D-IIrzSp.js","./Bs_K8owN.js","./D2J1mRKA.js","./D3nqOF4l.js","./D0fN0yyU.js","./DkU9kF3e.js","./4jn9QO4W.js","./Czy2hFku.js","./DmmUSz9s.js","./rgTYNMg5.js","./PVC_NCAa.js","./CnPE6MLy.js","./orXfDbZC.js","./jaYPfBzb.js","./DNsw0XgW.js","./DPvnQxgM.js","./B5NRDBEM.js","./B-f8GPik.js","./BZ3kL3Qh.js","./CghzGvxk.js","./DJdtgPmd.js","./ul62AiNc.js","./DDF3MvNR.js","./D1hHZRbG.js","./TtbYjjK4.js"])))=>i.map(i=>d[i]); 2var Jw=Object.defineProperty;var Kw=(e,t,r)=>t in e?Jw(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var ul=(e,t,r)=>Kw(e,typeof t!="symbol"?t+"":t,r);import{_ as Et}from"./D3Fn0Q-1.js";var tv=Object.create,Ss=Object.defineProperty,ev=Object.getOwnPropertyDescriptor,rv=Object.getOwnPropertyNames,iv=Object.getPrototypeOf,av=Object.prototype.hasOwnProperty,n=(e,t)=>Ss(e,"name",{value:t,configurable:!0}),No=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),ov=(e,t)=>{for(var r in t)Ss(e,r,{get:t[r],enumerable:!0})},nv=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of rv(t))!av.call(e,a)&&a!==r&&Ss(e,a,{get:()=>t[a],enumerable:!(i=ev(t,a))||i.enumerable});return e},Bs=(e,t,r)=>(r=e!=null?tv(iv(e)):{},nv(Ss(r,"default",{value:e,enumerable:!0}),e)),sv=No((e,t)=>{(function(r,i){typeof e=="object"&&typeof t<"u"?t.exports=i():(r=typeof globalThis<"u"?globalThis:r||self).dayjs=i()})(e,(function(){var r=1e3,i=6e4,a=36e5,o="millisecond",s="second",l="minute",d="hour",c="day",h="week",u="month",p="quarter",g="year",y="date",m="Invalid Date",x=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,C=/\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,k={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:n(function(F){var M=["th","st","nd","rd"],L=F%100;return"["+F+(M[(L-20)%10]||M[L]||M[0])+"]"},"ordinal")},w=n(function(F,M,L){var D=String(F);return!D||D.length>=M?F:""+Array(M+1-D.length).join(L)+F},"m"),S={s:w,z:n(function(F){var M=-F.utcOffset(),L=Math.abs(M),D=Math.floor(L/60),R=L%60;return(M<=0?"+":"-")+w(D,2,"0")+":"+w(R,2,"0")},"z"),m:n(function F(M,L){if(M.date()<L.date())return-F(L,M);var D=12*(L.year()-M.year())+(L.month()-M.month()),R=M.clone().add(D,u),rt=L-R<0,X=M.clone().add(D+(rt?-1:1),u);return+(-(D+(L-R)/(rt?R-X:X-R))||0)},"t"),a:n(function(F){return F<0?Math.ceil(F)||0:Math.floor(F)},"a"),p:n(function(F){return{M:u,y:g,w:h,d:c,D:y,h:d,m:l,s,ms:o,Q:p}[F]||String(F||"").toLowerCase().replace(/s$/,"")},"p"),u:n(function(F){return F===void 0},"u")},B="en",_={};_[B]=k;var $="$isDayjsObject",I=n(function(F){return F instanceof W||!(!F||!F[$])},"S"),U=n(function F(M,L,D){var R;if(!M)return B;if(typeof M=="string"){var rt=M.toLowerCase();_[rt]&&(R=rt),L&&(_[rt]=L,R=rt);var X=M.split("-");if(!R&&X.length>1)return F(X[0])}else{var xt=M.name;_[xt]=M,R=xt}return!D&&R&&(B=R),R||!D&&B},"t"),V=n(function(F,M){if(I(F))return F.clone();var L=typeof M=="object"?M:{};return L.date=F,L.args=arguments,new W(L)},"O"),A=S;A.l=U,A.i=I,A.w=function(F,M){return V(F,{locale:M.$L,utc:M.$u,x:M.$x,$offset:M.$offset})};var W=(function(){function F(L){this.$L=U(L.locale,null,!0),this.parse(L),this.$x=this.$x||L.x||{},this[$]=!0}n(F,"M");var M=F.prototype;return M.parse=function(L){this.$d=(function(D){var R=D.date,rt=D.utc;if(R===null)return new Date(NaN);if(A.u(R))return new Date;if(R instanceof Date)return new Date(R);
vendor: 15,363 bytes, line 2
2if(typeof R=="string"&&!/Z$/i.test(R)){var X=R.match(x);if(X){var xt=X[2]-1||0,wt=(X[7]||"0").substring(0,3);return rt?new Date(Date.UTC(X[1],xt,X[3]||1,X[4]||0,X[5]||0,X[6]||0,wt)):new Date(X[1],xt,X[3]||1,X[4]||0,X[5]||0,X[6]||0,wt)}}return new Date(R)})(L),this.init()},M.init=function(){var L=this.$d;this.$y=L.getFullYear(),this.$M=L.getMonth(),this.$D=L.getDate(),this.$W=L.getDay(),this.$H=L.getHours(),this.$m=L.getMinutes(),this.$s=L.getSeconds(),this.$ms=L.getMilliseconds()},M.$utils=function(){return A},M.isValid=function(){return this.$d.toString()!==m},M.isSame=function(L,D){var R=V(L);return this.startOf(D)<=R&&R<=this.endOf(D)},M.isAfter=function(L,D){return V(L)<this.startOf(D)},M.isBefore=function(L,D){return this.endOf(D)<V(L)},M.$g=function(L,D,R){return A.u(L)?this[D]:this.set(R,L)},M.unix=function(){return Math.floor(this.valueOf()/1e3)},M.valueOf=function(){return this.$d.getTime()},M.startOf=function(L,D){var R=this,rt=!!A.u(D)||D,X=A.p(L),xt=n(function(K,st){var mt=A.w(R.$u?Date.UTC(R.$y,st,K):new Date(R.$y,st,K),R);return rt?mt:mt.endOf(c)},"l"),wt=n(function(K,st){return A.w(R.toDate()[K].apply(R.toDate("s"),(rt?[0,0,0,0]:[23,59,59,999]).slice(st)),R)},"$"),_t=this.$W,$t=this.$M,Ct=this.$D,ut="set"+(this.$u?"UTC":"");switch(X){case g:return rt?xt(1,0):xt(31,11);case u:return rt?xt(1,$t):xt(0,$t+1);case h:var bt=this.$locale().weekStart||0,Dt=(_t<bt?_t+7:_t)-bt;return xt(rt?Ct-Dt:Ct+(6-Dt),$t);case c:case y:return wt(ut+"Hours",0);case d:return wt(ut+"Minutes",1);case l:return wt(ut+"Seconds",2);case s:return wt(ut+"Milliseconds",3);default:return this.clone()}},M.endOf=function(L){return this.startOf(L,!1)},M.$set=function(L,D){var R,rt=A.p(L),X="set"+(this.$u?"UTC":""),xt=(R={},R[c]=X+"Date",R[y]=X+"Date",R[u]=X+"Month",R[g]=X+"FullYear",R[d]=X+"Hours",R[l]=X+"Minutes",R[s]=X+"Seconds",R[o]=X+"Milliseconds",R)[rt],wt=rt===c?this.$D+(D-this.$W):D;if(rt===u||rt===g){var _t=this.clone().set(y,1);_t.$d[xt](wt),_t.init(),this.$d=_t.set(y,Math.min(this.$D,_t.daysInMonth())).$d}else xt&&this.$d[xt](wt);return this.init(),this},M.set=function(L,D){return this.clone().$set(L,D)},M.get=function(L){return this[A.p(L)]()},M.add=function(L,D){var R,rt=this;L=Number(L);var X=A.p(D),xt=n(function($t){var Ct=V(rt);return A.w(Ct.date(Ct.date()+Math.round($t*L)),rt)},"y");if(X===u)return this.set(u,this.$M+L);if(X===g)return this.set(g,this.$y+L);if(X===c)return xt(1);if(X===h)return xt(7);var wt=(R={},R[l]=i,R[d]=a,R[s]=r,R)[X]||1,_t=this.$d.getTime()+L*wt;return A.w(_t,this)},M.subtract=function(L,D){return this.add(-1*L,D)},M.format=function(L){var D=this,R=this.$locale();if(!this.isValid())return R.invalidDate||m;var rt=L||"YYYY-MM-DDTHH:mm:ssZ",X=A.z(this),xt=this.$H,wt=this.$m,_t=this.$M,$t=R.weekdays,Ct=R.months,ut=R.meridiem,bt=n(function(st,mt,G,jt){return st&&(st[mt]||st(D,rt))||G[mt].slice(0,jt)},"h"),Dt=n(function(st){return A.s(xt%12||12,st,"0")},"d"),K=ut||function(st,mt,G){var jt=st<12?"AM":"PM";return G?jt.toLowerCase():jt};return rt.replace(C,(function(st,mt){return mt||(function(G){switch(G){case"YY":return String(D.$y).slice(-2);case"YYYY":return A.s(D.$y,4,"0");case"M":return _t+1;case"MM":return A.s(_t+1,2,"0");case"MMM":return bt(R.monthsShort,_t,Ct,3);case"MMMM":return bt(Ct,_t);case"D":return D.$D;case"DD":return A.s(D.$D,2,"0");case"d":return String(D.$W);case"dd":return bt(R.weekdaysMin,D.$W,$t,2);case"ddd":return bt(R.weekdaysShort,D.$W,$t,3);case"dddd":return $t[D.$W];case"H":return String(xt);case"HH":return A.s(xt,2,"0");case"h":return Dt(1);case"hh":return Dt(2);case"a":return K(xt,wt,!0);case"A":return K(xt,wt,!1);case"m":return String(wt);case"mm":return A.s(wt,2,"0");case"s":return String(D.$s);case"ss":return A.s(D.$s,2,"0");case"SSS":return A.s(D.$ms,3,"0");case"Z":return X}return null})(st)||X.replace(":","")}))},M.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},M.diff=function(L,D,R){var rt,X=this,xt=A.p(D),wt=V(L),_t=(wt.utcOffset()-this.utcOffset())*i,$t=this-wt,Ct=n(function(){return A.m(X,wt)},"D");switch(xt){case g:rt=Ct()/12;break;case u:rt=Ct();break;case p:rt=Ct()/3;break;case h:rt=($t-_t)/6048e5;break;case c:rt=($t-_t)/864e5;break;case d:rt=$t/a;break;case l:rt=$t/i;break;case s:rt=$t/r;break;default:rt=$t}return R?rt:A.a(rt)},M.daysInMonth=function(){return this.endOf(u).$D},M.$locale=function(){return _[this.$L]},M.locale=function(L,D){if(!L)return this.$L;var R=this.clone(),rt=U(L,D,!0);return rt&&(R.$L=rt),R},M.clone=function(){return A.w(this.$d,this)},M.toDate=function(){return new Date(this.valueOf())},M.toJSON=function(){return this.isValid()?this.toISOString():null},M.toISOString=function(){return this.$d.toISOString()},M.toString=function(){return this.$d.toUTCString()},F})(),O=W.prototype;return V.prototype=O,[["$ms",o],["$s",s],["$m",l],["$H",d],["$W",c],["$M",u],["$y",g],["$D",y]].forEach((function(F){O[F[1]]=function(M){return this.$g(M,F[0],F[1])}})),V.extend=function(F,M){return F.$i||(F(M,W,V),F.$i=!0),V},V.locale=U,V.isDayjs=I,V.unix=function(F){return V(1e3*F)},V.en=_[B],V.Ls=_,V.p={},V}))}),lv=Bs(sv()),br={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},et={trace:n((...e)=>{},"trace"),debug:n((...e)=>{},"debug"),info:n((...e)=>{},"info"),warn:n((...e)=>{},"warn"),error:n((...e)=>{},"error"),fatal:n((...e)=>{},"fatal")},pc=n(function(e="fatal"){let t=br.fatal;typeof e=="string"?e.toLowerCase()in br&&(t=br[e]):typeof e=="number"&&(t=e),et.trace=()=>{},et.debug=()=>{},et.info=()=>{},et.warn=()=>{},et.error=()=>{},et.fatal=()=>{},t<=br.fatal&&(et.fatal=console.error?console.error.bind(console,Ie("FATAL"),"color: orange"):console.log.bind(console,"\x1B[35m",Ie("FATAL"))),t<=br.error&&(et.error=console.error?console.error.bind(console,Ie("ERROR"),"color: orange"):console.log.bind(console,"\x1B[31m",Ie("ERROR"))),t<=br.warn&&(et.warn=console.warn?console.warn.bind(console,Ie("WARN"),"color: orange"):console.log.bind(console,"\x1B[33m",Ie("WARN"))),t<=br.info&&(et.info=console.info?console.info.bind(console,Ie("INFO"),"color: lightblue"):console.log.bind(console,"\x1B[34m",Ie("INFO"))),t<=br.debug&&(et.debug=console.debug?console.debug.bind(console,Ie("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",Ie("DEBUG"))),t<=br.trace&&(et.trace=console.debug?console.debug.bind(console,Ie("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",Ie("TRACE")))},"setLogLevel"),Ie=n(e=>`%c${(0,lv.default)().format("ss.SSS")} : ${e} : `,"format");function hv(e,t){let r;if(t===void 0)for(let i of e)i!=null&&(r<i||r===void 0&&i>=i)&&(r=i);else{let i=-1;for(let a of e)(a=t(a,++i,e))!=null&&(r<a||r===void 0&&a>=a)&&(r=a)}return r}n(hv,"max");function cv(e,t){let r;if(t===void 0)for(let i of e)i!=null&&(r>i||r===void 0&&i>=i)&&(r=i);else{let i=-1;for(let a of e)(a=t(a,++i,e))!=null&&(r>a||r===void 0&&a>=a)&&(r=a)}return r}n(cv,"min");function so(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}n(so,"ascending");function wf(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}n(wf,"descending");function _s(e){let t,r,i;e.length!==2?(t=so,r=n((l,d)=>so(e(l),d),"compare2"),i=n((l,d)=>e(l)-d,"delta")):(t=e===so||e===wf?e:vf,r=e,i=e);function a(l,d,c=0,h=l.length){if(c<h){if(t(d,d)!==0)return h;do{let u=c+h>>>1;r(l[u],d)<0?c=u+1:h=u}while(c<h)}return c}n(a,"left");function o(l,d,c=0,h=l.length){if(c<h){if(t(d,d)!==0)return h;do{let u=c+h>>>1;r(l[u],d)<=0?c=u+1:h=u}while(c<h)}return c}n(o,"right");function s(l,d,c=0,h=l.length){let u=a(l,d,c,h-1);return u>c&&i(l[u-1],d)>-i(l[u],d)?u-1:u}return n(s,"center"),{left:a,center:s,right:o}}n(_s,"bisector");function vf(){return 0}n(vf,"zero");function Tf(e){return e===null?NaN:+e}n(Tf,"number");var Sf=_s(so),dv=Sf.right;Sf.left;_s(Tf).center;var uv=dv,Yi,Ku=(Yi=class extends Map{constructor(t,r=$f){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),t!=null)for(let[i,a]of t)this.set(i,a)}get(t){return super.get(Gl(this,t))}has(t){return super.has(Gl(this,t))}set(t,r){return super.set(Bf(this,t),r)}delete(t){return super.delete(_f(this,t))}},n(Yi,"InternMap"),Yi);function Gl({_intern:e,_key:t},r){let i=t(r);return e.has(i)?e.get(i):r}n(Gl,"intern_get");function Bf({_intern:e,_key:t},r){let i=t(r);return e.has(i)?e.get(i):(e.set(i,r),r)}n(Bf,"intern_set");function _f({_intern:e,_key:t},r){let i=t(r);return e.has(i)&&(r=e.get(i),e.delete(i)),r}n(_f,"intern_delete");function $f(e){return e!==null&&typeof e=="object"?e.valueOf():e}n($f,"keyof");var pv=Math.sqrt(50),gv=Math.sqrt(10),fv=Math.sqrt(2);function Co(e,t,r){let i=(t-e)/Math.max(0,r),a=Math.floor(Math.log10(i)),o=i/Math.pow(10,a),s=o>=pv?10:o>=gv?5:o>=fv?2:1,l,d,c;return a<0?(c=Math.pow(10,-a)/s,l=Math.round(e*c),d=Math.round(t*c),l/c<e&&++l,d/c>t&&--d,c=-c):(c=Math.pow(10,a)*s,l=Math.round(e/c),d=Math.round(t/c),l*c<e&&++l,d*c>t&&--d),d<l&&.5<=r&&r<2?Co(e,t,r*2):[l,d,c]}n(Co,"tickSpec");function Lf(e,t,r){if(t=+t,e=+e,r=+r,!(r>0))return[];if(e===t)return[e];let i=t<e,[a,o,s]=i?Co(t,e,r):Co(e,t,r);if(!(o>=a))return[];let l=o-a+1,d=new Array(l);if(i)if(s<0)for(let c=0;c<l;++c)d[c]=(o-c)/-s;else for(let c=0;c<l;++c)d[c]=(o-c)*s;else if(s<0)for(let c=0;c<l;++c)d[c]=(a+c)/-s;else for(let c=0;c<l;++c)d[c]=(a+c)*s;return d}n(Lf,"ticks");function jn(e,t,r){return t=+t,e=+e,r=+r,Co(e,t,r)[2]}n(jn,"tickIncrement");function Hn(e,t,r){t=+t,e=+e,r=+r;let i=t<e,a=i?jn(t,e,r):jn(e,t,r);return(i?-1:1)*(a<0?1/-a:a)}n(Hn,"tickStep");function Ff(e,t,r){e=+e,t=+t,r=(a=arguments.length)<2?(t=e,e=0,1):a<3?1:+r;for(var i=-1,a=Math.max(0,Math.ceil((t-e)/r))|0,o=new Array(a);++i<a;)o[i]=e+i*r;return o}n(Ff,"range");function Mf(e){return e}n(Mf,"default");var bn=1,pl=2,Xl=3,ln=4,tp=1e-6;function Af(e){return"translate("+e+",0)"}n(Af,"translateX");function Ef(e){return"translate(0,"+e+")"}n(Ef,"translateY");function Of(e){return t=>+e(t)}n(Of,"number");function If(e,t){return t=Math.max(0,e.bandwidth()-t*2)/2,e.round()&&(t=Math.round(t)),r=>+e(r)+t}n(If,"center");function Df(){return!this.__axis}n(Df,"entering");function gc(e,t){var r=[],i=null,a=null,o=6,s=6,l=3,d=typeof window<"u"&&window.devicePixelRatio>1?0:.5,c=e===bn||e===ln?-1:1,h=e===ln||e===pl?"x":"y",u=e===bn||e===Xl?Af:Ef;function p(g){var y=i??(t.ticks?t.ticks.apply(t,r):t.domain()),m=a??(t.tickFormat?t.tickFormat.apply(t,r):Mf),x=Math.max(o,0)+l,C=t.range(),k=+C[0]+d,w=+C[C.length-1]+d,S=(t.bandwidth?If:Of)(t.copy(),d),B=g.selection?g.selection():g,_=B.selectAll(".domain").data([null]),$=B.selectAll(".tick").data(y,t).order(),I=$.exit(),U=$.enter().append("g").attr("class","tick"),V=$.select("line"),A=$.select("text");_=_.merge(_.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),$=$.merge(U),V=V.merge(U.append("line").attr("stroke","currentColor").attr(h+"2",c*o)),A=A.merge(U.append("text").attr("fill","currentColor").attr(h,c*x).attr("dy",e===bn?"0em":e===Xl?"0.71em":"0.32em")),g!==B&&(_=_.transition(g),$=$.transition(g),V=V.transition(g),A=A.transition(g),I=I.transition(g).attr("opacity",tp).attr("transform",function(W){return isFinite(W=S(W))?u(W+d):this.getAttribute("transform")}),U.attr("opacity",tp).attr("transform",function(W){var O=this.parentNode.__axis;return u((O&&isFinite(O=O(W))?O:S(W))+d)})),I.remove(),_.attr("d",e===ln||e===pl?s?"M"+c*s+","+k+"H"+d+"V"+w+"H"+c*s:"M"+d+","+k+"V"+w:s?"M"+k+","+c*s+"V"+d+"H"+w+"V"+c*s:"M"+k+","+d+"H"+w),$.attr("opacity",1).attr("transform",function(W){return u(S(W)+d)}),V.attr(h+"2",c*o),A.attr(h,c*x).text(m),B.filter(Df).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",e===pl?"start":e===ln?"end":"middle"),B.each(function(){this.__axis=S})}return n(p,"axis"),p.scale=function(g){return arguments.length?(t=g,p):t},p.ticks=function(){return r=Array.from(arguments),p},p.tickArguments=function(g){return arguments.length?(r=g==null?[]:Array.from(g),p):r.slice()},p.tickValues=function(g){return arguments.length?(i=g==null?null:Array.from(g),p):i&&i.slice()},p.tickFormat=function(g){return arguments.length?(a=g,p):a},p.tickSize=function(g){return arguments.length?(o=s=+g,p):o},p.tickSizeInner=function(g){return arguments.length?(o=+g,p):o},p.tickSizeOuter=function(g){return arguments.length?(s=+g,p):s},p.tickPadding=function(g){return arguments.length?(l=+g,p):l},p.offset=function(g){return arguments.length?(d=+g,p):d},p}n(gc,"axis");function yv(e){return gc(bn,e)}n(yv,"axisTop");function mv(e){return gc(Xl,e)}n(mv,"axisBottom");function qf(){}n(qf,"none");function $s(e){return e==null?qf:function(){return this.querySelector(e)}}n($s,"default");function Pf(e){typeof e!="function"&&(e=$s(e));for(var t=this._groups,r=t.length,i=new Array(r),a=0;a<r;++a)for(var o=t[a],s=o.length,l=i[a]=new Array(s),d,c,h=0;h<s;++h)(d=o[h])&&(c=e.call(d,d.__data__,h,o))&&("__data__"in d&&(c.__data__=d.__data__),l[h]=c);return new Le(i,this._parents)}n(Pf,"default");function Rf(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}n(Rf,"array");function Nf(){return[]}n(Nf,"empty");function fc(e){return e==null?Nf:function(){return this.querySelectorAll(e)}}n(fc,"default");function zf(e){return function(){return Rf(e.apply(this,arguments))}}n(zf,"arrayAll");function Wf(e){typeof e=="function"?e=zf(e):e=fc(e);for(var t=this._groups,r=t.length,i=[],a=[],o=0;o<r;++o)for(var s=t[o],l=s.length,d,c=0;c<l;++c)(d=s[c])&&(i.push(e.call(d,d.__data__,c,s)),a.push(d));return new Le(i,a)}n(Wf,"default");function yc(e){return function(){return this.matches(e)}}n(yc,"default");function mc(e){return function(t){return t.matches(e)}}n(mc,"childMatcher");var xv=Array.prototype.find;function jf(e){return function(){return xv.call(this.children,e)}}n(jf,"childFind");function Hf(){return this.firstElementChild}n(Hf,"childFirst");function Uf(e){return this.select(e==null?Hf:jf(typeof e=="function"?e:mc(e)))}n(Uf,"default");var Cv=Array.prototype.filter;function Yf(){return Array.from(this.children)}n(Yf,"children");function Vf(e){return function(){return Cv.call(this.children,e)}}n(Vf,"childrenFilter");function Gf(e){return this.selectAll(e==null?Yf:Vf(typeof e=="function"?e:mc(e)))}n(Gf,"default");function Xf(e){typeof e!="function"&&(e=yc(e));for(var t=this._groups,r=t.length,i=new Array(r),a=0;a<r;++a)for(var o=t[a],s=o.length,l=i[a]=[],d,c=0;c<s;++c)(d=o[c])&&e.call(d,d.__data__,c,o)&&l.push(d);return new Le(i,this._parents)}n(Xf,"default");function xc(e){return new Array(e.length)}n(xc,"default");function Zf(){return new Le(this._enter||this._groups.map(xc),this._parents)}n(Zf,"default");function bo(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}n(bo,"EnterNode");bo.prototype={constructor:bo,appendChild:n(function(e){return this._parent.insertBefore(e,this._next)},"appendChild"),insertBefore:n(function(e,t){return this._parent.insertBefore(e,t)},"insertBefore"),querySelector:n(function(e){return this._parent.querySelector(e)},"querySelector"),querySelectorAll:n(function(e){return this._parent.querySelectorAll(e)},"querySelectorAll")};function Qf(e){return function(){return e}}n(Qf,"default");function Jf(e,t,r,i,a,o){for(var s=0,l,d=t.length,c=o.length;s<c;++s)(l=t[s])?(l.__data__=o[s],i[s]=l):r[s]=new bo(e,o[s]);for(;s<d;++s)(l=t[s])&&(a[s]=l)}n(Jf,"bindIndex");function Kf(e,t,r,i,a,o,s){var l,d,c=new Map,h=t.length,u=o.length,p=new Array(h),g;for(l=0;l<h;
vendor: 15,931 bytes, line 2
2++l)(d=t[l])&&(p[l]=g=s.call(d,d.__data__,l,t)+"",c.has(g)?a[l]=d:c.set(g,d));for(l=0;l<u;++l)g=s.call(e,o[l],l,o)+"",(d=c.get(g))?(i[l]=d,d.__data__=o[l],c.delete(g)):r[l]=new bo(e,o[l]);for(l=0;l<h;++l)(d=t[l])&&c.get(p[l])===d&&(a[l]=d)}n(Kf,"bindKey");function ty(e){return e.__data__}n(ty,"datum");function ey(e,t){if(!arguments.length)return Array.from(this,ty);var r=t?Kf:Jf,i=this._parents,a=this._groups;typeof e!="function"&&(e=Qf(e));for(var o=a.length,s=new Array(o),l=new Array(o),d=new Array(o),c=0;c<o;++c){var h=i[c],u=a[c],p=u.length,g=ry(e.call(h,h&&h.__data__,c,i)),y=g.length,m=l[c]=new Array(y),x=s[c]=new Array(y);r(h,u,m,x,d[c]=new Array(p),g,t);for(var C=0,k=0,w,S;C<y;++C)if(w=m[C]){for(C>=k&&(k=C+1);!(S=x[k])&&++k<y;);w._next=S||null}}return s=new Le(s,i),s._enter=l,s._exit=d,s}n(ey,"default");function ry(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}n(ry,"arraylike");function iy(){return new Le(this._exit||this._groups.map(xc),this._parents)}n(iy,"default");function ay(e,t,r){var i=this.enter(),a=this,o=this.exit();return typeof e=="function"?(i=e(i),i&&(i=i.selection())):i=i.append(e+""),t!=null&&(a=t(a),a&&(a=a.selection())),r==null?o.remove():r(o),i&&a?i.merge(a).order():a}n(ay,"default");function oy(e){for(var t=e.selection?e.selection():e,r=this._groups,i=t._groups,a=r.length,o=i.length,s=Math.min(a,o),l=new Array(a),d=0;d<s;++d)for(var c=r[d],h=i[d],u=c.length,p=l[d]=new Array(u),g,y=0;y<u;++y)(g=c[y]||h[y])&&(p[y]=g);for(;d<a;++d)l[d]=r[d];return new Le(l,this._parents)}n(oy,"default");function ny(){for(var e=this._groups,t=-1,r=e.length;++t<r;)for(var i=e[t],a=i.length-1,o=i[a],s;--a>=0;)(s=i[a])&&(o&&s.compareDocumentPosition(o)^4&&o.parentNode.insertBefore(s,o),o=s);return this}n(ny,"default");function sy(e){e||(e=ly);function t(u,p){return u&&p?e(u.__data__,p.__data__):!u-!p}n(t,"compareNode");for(var r=this._groups,i=r.length,a=new Array(i),o=0;o<i;++o){for(var s=r[o],l=s.length,d=a[o]=new Array(l),c,h=0;h<l;++h)(c=s[h])&&(d[h]=c);d.sort(t)}return new Le(a,this._parents).order()}n(sy,"default");function ly(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}n(ly,"ascending");function hy(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}n(hy,"default");function cy(){return Array.from(this)}n(cy,"default");function dy(){for(var e=this._groups,t=0,r=e.length;t<r;++t)for(var i=e[t],a=0,o=i.length;a<o;++a){var s=i[a];if(s)return s}return null}n(dy,"default");function uy(){let e=0;for(let t of this)++e;return e}n(uy,"default");function py(){return!this.node()}n(py,"default");function gy(e){for(var t=this._groups,r=0,i=t.length;r<i;++r)for(var a=t[r],o=0,s=a.length,l;o<s;++o)(l=a[o])&&e.call(l,l.__data__,o,a);return this}n(gy,"default");var Zl="http://www.w3.org/1999/xhtml",ep={svg:"http://www.w3.org/2000/svg",xhtml:Zl,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function zo(e){var t=e+="",r=t.indexOf(":");return r>=0&&(t=e.slice(0,r))!=="xmlns"&&(e=e.slice(r+1)),ep.hasOwnProperty(t)?{space:ep[t],local:e}:e}n(zo,"default");function fy(e){return function(){this.removeAttribute(e)}}n(fy,"attrRemove");function yy(e){return function(){this.removeAttributeNS(e.space,e.local)}}n(yy,"attrRemoveNS");function my(e,t){return function(){this.setAttribute(e,t)}}n(my,"attrConstant");function xy(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}n(xy,"attrConstantNS");function Cy(e,t){return function(){var r=t.apply(this,arguments);r==null?this.removeAttribute(e):this.setAttribute(e,r)}}n(Cy,"attrFunction");function by(e,t){return function(){var r=t.apply(this,arguments);r==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,r)}}n(by,"attrFunctionNS");function ky(e,t){var r=zo(e);if(arguments.length<2){var i=this.node();return r.local?i.getAttributeNS(r.space,r.local):i.getAttribute(r)}return this.each((t==null?r.local?yy:fy:typeof t=="function"?r.local?by:Cy:r.local?xy:my)(r,t))}n(ky,"default");function Cc(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}n(Cc,"default");function wy(e){return function(){this.style.removeProperty(e)}}n(wy,"styleRemove");function vy(e,t,r){return function(){this.style.setProperty(e,t,r)}}n(vy,"styleConstant");function Ty(e,t,r){return function(){var i=t.apply(this,arguments);i==null?this.style.removeProperty(e):this.style.setProperty(e,i,r)}}n(Ty,"styleFunction");function Sy(e,t,r){return arguments.length>1?this.each((t==null?wy:typeof t=="function"?Ty:vy)(e,t,r??"")):di(this.node(),e)}n(Sy,"default");function di(e,t){return e.style.getPropertyValue(t)||Cc(e).getComputedStyle(e,null).getPropertyValue(t)}n(di,"styleValue");function By(e){return function(){delete this[e]}}n(By,"propertyRemove");function _y(e,t){return function(){this[e]=t}}n(_y,"propertyConstant");function $y(e,t){return function(){var r=t.apply(this,arguments);r==null?delete this[e]:this[e]=r}}n($y,"propertyFunction");function Ly(e,t){return arguments.length>1?this.each((t==null?By:typeof t=="function"?$y:_y)(e,t)):this.node()[e]}n(Ly,"default");function bc(e){return e.trim().split(/^|\s+/)}n(bc,"classArray");function Ls(e){return e.classList||new kc(e)}n(Ls,"classList");function kc(e){this._node=e,this._names=bc(e.getAttribute("class")||"")}n(kc,"ClassList");kc.prototype={add:n(function(e){this._names.indexOf(e)<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},"add"),remove:n(function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},"remove"),contains:n(function(e){return this._names.indexOf(e)>=0},"contains")};function wc(e,t){for(var r=Ls(e),i=-1,a=t.length;++i<a;)r.add(t[i])}n(wc,"classedAdd");function vc(e,t){for(var r=Ls(e),i=-1,a=t.length;++i<a;)r.remove(t[i])}n(vc,"classedRemove");function Fy(e){return function(){wc(this,e)}}n(Fy,"classedTrue");function My(e){return function(){vc(this,e)}}n(My,"classedFalse");function Ay(e,t){return function(){(t.apply(this,arguments)?wc:vc)(this,e)}}n(Ay,"classedFunction");function Ey(e,t){var r=bc(e+"");if(arguments.length<2){for(var i=Ls(this.node()),a=-1,o=r.length;++a<o;)if(!i.contains(r[a]))return!1;return!0}return this.each((typeof t=="function"?Ay:t?Fy:My)(r,t))}n(Ey,"default");function Oy(){this.textContent=""}n(Oy,"textRemove");function Iy(e){return function(){this.textContent=e}}n(Iy,"textConstant");function Dy(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}n(Dy,"textFunction");function qy(e){return arguments.length?this.each(e==null?Oy:(typeof e=="function"?Dy:Iy)(e)):this.node().textContent}n(qy,"default");function Py(){this.innerHTML=""}n(Py,"htmlRemove");function Ry(e){return function(){this.innerHTML=e}}n(Ry,"htmlConstant");function Ny(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}n(Ny,"htmlFunction");function zy(e){return arguments.length?this.each(e==null?Py:(typeof e=="function"?Ny:Ry)(e)):this.node().innerHTML}n(zy,"default");function Wy(){this.nextSibling&&this.parentNode.appendChild(this)}n(Wy,"raise");function jy(){return this.each(Wy)}n(jy,"default");function Hy(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}n(Hy,"lower");function Uy(){return this.each(Hy)}n(Uy,"default");function Yy(e){return function(){var t=this.ownerDocument,r=this.namespaceURI;return r===Zl&&t.documentElement.namespaceURI===Zl?t.createElement(e):t.createElementNS(r,e)}}n(Yy,"creatorInherit");function Vy(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}n(Vy,"creatorFixed");function Tc(e){var t=zo(e);return(t.local?Vy:Yy)(t)}n(Tc,"default");function Gy(e){var t=typeof e=="function"?e:Tc(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}n(Gy,"default");function Xy(){return null}n(Xy,"constantNull");function Zy(e,t){var r=typeof e=="function"?e:Tc(e),i=t==null?Xy:typeof t=="function"?t:$s(t);return this.select(function(){return this.insertBefore(r.apply(this,arguments),i.apply(this,arguments)||null)})}n(Zy,"default");function Qy(){var e=this.parentNode;e&&e.removeChild(this)}n(Qy,"remove");function Jy(){return this.each(Qy)}n(Jy,"default");function Ky(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}n(Ky,"selection_cloneShallow");function tm(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}n(tm,"selection_cloneDeep");function em(e){return this.select(e?tm:Ky)}n(em,"default");function rm(e){return arguments.length?this.property("__data__",e):this.node().__data__}n(rm,"default");function im(e){return function(t){e.call(this,t,this.__data__)}}n(im,"contextListener");function am(e){return e.trim().split(/^|\s+/).map(function(t){var r="",i=t.indexOf(".");return i>=0&&(r=t.slice(i+1),t=t.slice(0,i)),{type:t,name:r}})}n(am,"parseTypenames");function om(e){return function(){var t=this.__on;if(t){for(var r=0,i=-1,a=t.length,o;r<a;++r)o=t[r],(!e.type||o.type===e.type)&&o.name===e.name?this.removeEventListener(o.type,o.listener,o.options):t[++i]=o;++i?t.length=i:delete this.__on}}}n(om,"onRemove");function nm(e,t,r){return function(){var i=this.__on,a,o=im(t);if(i){for(var s=0,l=i.length;s<l;++s)if((a=i[s]).type===e.type&&a.name===e.name){this.removeEventListener(a.type,a.listener,a.options),this.addEventListener(a.type,a.listener=o,a.options=r),a.value=t;return}}this.addEventListener(e.type,o,r),a={type:e.type,name:e.name,value:t,listener:o,options:r},i?i.push(a):this.__on=[a]}}n(nm,"onAdd");function sm(e,t,r){var i=am(e+""),a,o=i.length,s;if(arguments.length<2){var l=this.node().__on;if(l){for(var d=0,c=l.length,h;d<c;++d)for(a=0,h=l[d];a<o;++a)if((s=i[a]).type===h.type&&s.name===h.name)return h.value}return}for(l=t?nm:om,a=0;a<o;++a)this.each(l(i[a],t,r));return this}n(sm,"default");function Sc(e,t,r){var i=Cc(e),a=i.CustomEvent;typeof a=="function"?a=new a(t,r):(a=i.document.createEvent("Event"),r?(a.initEvent(t,r.bubbles,r.cancelable),a.detail=r.detail):a.initEvent(t,!1,!1)),e.dispatchEvent(a)}n(Sc,"dispatchEvent");function lm(e,t){return function(){return Sc(this,e,t)}}n(lm,"dispatchConstant");function hm(e,t){return function(){return Sc(this,e,t.apply(this,arguments))}}n(hm,"dispatchFunction");function cm(e,t){return this.each((typeof t=="function"?hm:lm)(e,t))}n(cm,"default");function*dm(){for(var e=this._groups,t=0,r=e.length;t<r;++t)for(var i=e[t],a=0,o=i.length,s;a<o;++a)(s=i[a])&&(yield s)}n(dm,"default");var um=[null];function Le(e,t){this._groups=e,this._parents=t}n(Le,"Selection");function Bc(){return new Le([[document.documentElement]],um)}n(Bc,"selection");function pm(){return this}n(pm,"selection_selection");Le.prototype=Bc.prototype={constructor:Le,select:Pf,selectAll:Wf,selectChild:Uf,selectChildren:Gf,filter:Xf,data:ey,enter:Zf,exit:iy,join:ay,merge:oy,selection:pm,order:ny,sort:sy,call:hy,nodes:cy,node:dy,size:uy,empty:py,each:gy,attr:ky,style:Sy,property:Ly,classed:Ey,text:qy,html:zy,raise:jy,lower:Uy,append:Gy,insert:Zy,remove:Jy,clone:em,datum:rm,on:sm,dispatch:cm,[Symbol.iterator]:dm};var Wo=Bc;function At(e){return typeof e=="string"?new Le([[document.querySelector(e)]],[document.documentElement]):new Le([[e]],um)}n(At,"default");function Aa(e,t,r){e.prototype=t.prototype=r,r.constructor=e}n(Aa,"default");function jo(e,t){var r=Object.create(e.prototype);for(var i in t)r[i]=t[i];return r}n(jo,"extend");function Zr(){}n(Zr,"Color");var ko=.7,Un=1/ko,zi="\\s*([+-]?\\d+)\\s*",wo="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",sr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",bv=/^#([0-9a-f]{3,8})$/,kv=new RegExp(`^rgb\\(${zi},${zi},${zi}\\)$`),wv=new RegExp(`^rgb\\(${sr},${sr},${sr}\\)$`),vv=new RegExp(`^rgba\\(${zi},${zi},${zi},${wo}\\)$`),Tv=new RegExp(`^rgba\\(${sr},${sr},${sr},${wo}\\)$`),Sv=new RegExp(`^hsl\\(${wo},${sr},${sr}\\)$`),Bv=new RegExp(`^hsla\\(${wo},${sr},${sr},${wo}\\)$`),rp={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Aa(Zr,Yr,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Ql,formatHex:Ql,formatHex8:gm,formatHsl:fm,formatRgb:Jl,toString:Jl});function Ql(){return this.rgb().formatHex()}n(Ql,"color_formatHex");function gm(){return this.rgb().formatHex8()}n(gm,"color_formatHex8");function fm(){return $c(this).formatHsl()}n(fm,"color_formatHsl");function Jl(){return this.rgb().formatRgb()}n(Jl,"color_formatRgb");function Yr(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=bv.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?Kl(t):r===3?new ge(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?Xa(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?Xa(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=kv.exec(e))?new ge(t[1],t[2],t[3],1):(t=wv.exec(e))?new ge(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=vv.exec(e))?Xa(t[1],t[2],t[3],t[4]):(t=Tv.exec(e))?Xa(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=Sv.exec(e))?rh(t[1],t[2]/100,t[3]/100,1):(t=Bv.exec(e))?rh(t[1],t[2]/100,t[3]/100,t[4]):rp.hasOwnProperty(e)?Kl(rp[e]):e==="transparent"?new ge(NaN,NaN,NaN,0):null}n(Yr,"color");function Kl(e){return new ge(e>>16&255,e>>8&255,e&255,1)}n(Kl,"rgbn");
vendor: 40,810 bytes, line 2
2function Xa(e,t,r,i){return i<=0&&(e=t=r=NaN),new ge(e,t,r,i)}n(Xa,"rgba");function _c(e){return e instanceof Zr||(e=Yr(e)),e?(e=e.rgb(),new ge(e.r,e.g,e.b,e.opacity)):new ge}n(_c,"rgbConvert");function vo(e,t,r,i){return arguments.length===1?_c(e):new ge(e,t,r,i??1)}n(vo,"rgb");function ge(e,t,r,i){this.r=+e,this.g=+t,this.b=+r,this.opacity=+i}n(ge,"Rgb");Aa(ge,vo,jo(Zr,{brighter(e){return e=e==null?Un:Math.pow(Un,e),new ge(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?ko:Math.pow(ko,e),new ge(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new ge(Wr(this.r),Wr(this.g),Wr(this.b),To(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:th,formatHex:th,formatHex8:ym,formatRgb:eh,toString:eh}));function th(){return`#${Nr(this.r)}${Nr(this.g)}${Nr(this.b)}`}n(th,"rgb_formatHex");function ym(){return`#${Nr(this.r)}${Nr(this.g)}${Nr(this.b)}${Nr((isNaN(this.opacity)?1:this.opacity)*255)}`}n(ym,"rgb_formatHex8");function eh(){let e=To(this.opacity);return`${e===1?"rgb(":"rgba("}${Wr(this.r)}, ${Wr(this.g)}, ${Wr(this.b)}${e===1?")":`, ${e})`}`}n(eh,"rgb_formatRgb");function To(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}n(To,"clampa");function Wr(e){return Math.max(0,Math.min(255,Math.round(e)||0))}n(Wr,"clampi");function Nr(e){return e=Wr(e),(e<16?"0":"")+e.toString(16)}n(Nr,"hex");function rh(e,t,r,i){return i<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Pe(e,t,r,i)}n(rh,"hsla");function $c(e){if(e instanceof Pe)return new Pe(e.h,e.s,e.l,e.opacity);if(e instanceof Zr||(e=Yr(e)),!e)return new Pe;if(e instanceof Pe)return e;e=e.rgb();var t=e.r/255,r=e.g/255,i=e.b/255,a=Math.min(t,r,i),o=Math.max(t,r,i),s=NaN,l=o-a,d=(o+a)/2;return l?(t===o?s=(r-i)/l+(r<i)*6:r===o?s=(i-t)/l+2:s=(t-r)/l+4,l/=d<.5?o+a:2-o-a,s*=60):l=d>0&&d<1?0:s,new Pe(s,l,d,e.opacity)}n($c,"hslConvert");function mm(e,t,r,i){return arguments.length===1?$c(e):new Pe(e,t,r,i??1)}n(mm,"hsl");function Pe(e,t,r,i){this.h=+e,this.s=+t,this.l=+r,this.opacity=+i}n(Pe,"Hsl");Aa(Pe,mm,jo(Zr,{brighter(e){return e=e==null?Un:Math.pow(Un,e),new Pe(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?ko:Math.pow(ko,e),new Pe(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,i=r+(r<.5?r:1-r)*t,a=2*r-i;return new ge(kn(e>=240?e-240:e+120,a,i),kn(e,a,i),kn(e<120?e+240:e-120,a,i),this.opacity)},clamp(){return new Pe(ih(this.h),Za(this.s),Za(this.l),To(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let e=To(this.opacity);return`${e===1?"hsl(":"hsla("}${ih(this.h)}, ${Za(this.s)*100}%, ${Za(this.l)*100}%${e===1?")":`, ${e})`}`}}));function ih(e){return e=(e||0)%360,e<0?e+360:e}n(ih,"clamph");function Za(e){return Math.max(0,Math.min(1,e||0))}n(Za,"clampt");function kn(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}n(kn,"hsl2rgb");var _v=Math.PI/180,$v=180/Math.PI,Yn=18,xm=.96422,Cm=1,bm=.82521,km=4/29,Wi=6/29,wm=3*Wi*Wi,Lv=Wi*Wi*Wi;function Lc(e){if(e instanceof Ze)return new Ze(e.l,e.a,e.b,e.opacity);if(e instanceof nr)return Fc(e);e instanceof ge||(e=_c(e));var t=Sn(e.r),r=Sn(e.g),i=Sn(e.b),a=wn((.2225045*t+.7168786*r+.0606169*i)/Cm),o,s;return t===r&&r===i?o=s=a:(o=wn((.4360747*t+.3850649*r+.1430804*i)/xm),s=wn((.0139322*t+.0971045*r+.7141733*i)/bm)),new Ze(116*a-16,500*(o-a),200*(a-s),e.opacity)}n(Lc,"labConvert");function vm(e,t,r,i){return arguments.length===1?Lc(e):new Ze(e,t,r,i??1)}n(vm,"lab");function Ze(e,t,r,i){this.l=+e,this.a=+t,this.b=+r,this.opacity=+i}n(Ze,"Lab");Aa(Ze,vm,jo(Zr,{brighter(e){return new Ze(this.l+Yn*(e??1),this.a,this.b,this.opacity)},darker(e){return new Ze(this.l-Yn*(e??1),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,r=isNaN(this.b)?e:e-this.b/200;return t=xm*vn(t),e=Cm*vn(e),r=bm*vn(r),new ge(Tn(3.1338561*t-1.6168667*e-.4906146*r),Tn(-.9787684*t+1.9161415*e+.033454*r),Tn(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}}));function wn(e){return e>Lv?Math.pow(e,1/3):e/wm+km}n(wn,"xyz2lab");function vn(e){return e>Wi?e*e*e:wm*(e-km)}n(vn,"lab2xyz");function Tn(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}n(Tn,"lrgb2rgb");function Sn(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}n(Sn,"rgb2lrgb");function Tm(e){if(e instanceof nr)return new nr(e.h,e.c,e.l,e.opacity);if(e instanceof Ze||(e=Lc(e)),e.a===0&&e.b===0)return new nr(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*$v;return new nr(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}n(Tm,"hclConvert");function Vn(e,t,r,i){return arguments.length===1?Tm(e):new nr(e,t,r,i??1)}n(Vn,"hcl");function nr(e,t,r,i){this.h=+e,this.c=+t,this.l=+r,this.opacity=+i}n(nr,"Hcl");function Fc(e){if(isNaN(e.h))return new Ze(e.l,0,0,e.opacity);var t=e.h*_v;return new Ze(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}n(Fc,"hcl2lab");Aa(nr,Vn,jo(Zr,{brighter(e){return new nr(this.h,this.c,this.l+Yn*(e??1),this.opacity)},darker(e){return new nr(this.h,this.c,this.l-Yn*(e??1),this.opacity)},rgb(){return Fc(this).rgb()}}));var Fs=n(e=>()=>e,"default");function Mc(e,t){return function(r){return e+r*t}}n(Mc,"linear");function Sm(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(i){return Math.pow(e+i*t,r)}}n(Sm,"exponential");function Bm(e,t){var r=t-e;return r?Mc(e,r>180||r<-180?r-360*Math.round(r/360):r):Fs(isNaN(e)?t:e)}n(Bm,"hue");function _m(e){return(e=+e)==1?ji:function(t,r){return r-t?Sm(t,r,e):Fs(isNaN(t)?r:t)}}n(_m,"gamma");function ji(e,t){var r=t-e;return r?Mc(e,r):Fs(isNaN(e)?t:e)}n(ji,"nogamma");function $m(e){return function(t,r){var i=e((t=Vn(t)).h,(r=Vn(r)).h),a=ji(t.c,r.c),o=ji(t.l,r.l),s=ji(t.opacity,r.opacity);return function(l){return t.h=i(l),t.c=a(l),t.l=o(l),t.opacity=s(l),t+""}}}n($m,"hcl");var SF=$m(Bm);function Ac(e,t,r,i,a){var o=e*e,s=o*e;return((1-3*e+3*o-s)*t+(4-6*o+3*s)*r+(1+3*e+3*o-3*s)*i+s*a)/6}n(Ac,"basis");function Fv(e){var t=e.length-1;return function(r){var i=r<=0?r=0:r>=1?(r=1,t-1):Math.floor(r*t),a=e[i],o=e[i+1],s=i>0?e[i-1]:2*a-o,l=i<t-1?e[i+2]:2*o-a;return Ac((r-i/t)*t,s,a,o,l)}}n(Fv,"default");function Mv(e){var t=e.length;return function(r){var i=Math.floor(((r%=1)<0?++r:r)*t),a=e[(i+t-1)%t],o=e[i%t],s=e[(i+1)%t],l=e[(i+2)%t];return Ac((r-i/t)*t,a,o,s,l)}}n(Mv,"default");var Gn=n((function e(t){var r=_m(t);function i(a,o){var s=r((a=vo(a)).r,(o=vo(o)).r),l=r(a.g,o.g),d=r(a.b,o.b),c=ji(a.opacity,o.opacity);return function(h){return a.r=s(h),a.g=l(h),a.b=d(h),a.opacity=c(h),a+""}}return n(i,"rgb"),i.gamma=e,i}),"rgbGamma")(1);function Av(e){return function(t){var r=t.length,i=new Array(r),a=new Array(r),o=new Array(r),s,l;for(s=0;s<r;++s)l=vo(t[s]),i[s]=l.r||0,a[s]=l.g||0,o[s]=l.b||0;return i=e(i),a=e(a),o=e(o),l.opacity=1,function(d){return l.r=i(d),l.g=a(d),l.b=o(d),l+""}}}n(Av,"rgbSpline");function Lm(e,t){t||(t=[]);var r=e?Math.min(t.length,e.length):0,i=t.slice(),a;return function(o){for(a=0;a<r;++a)i[a]=e[a]*(1-o)+t[a]*o;return i}}n(Lm,"default");function Fm(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}n(Fm,"isNumberArray");function Mm(e,t){var r=t?t.length:0,i=e?Math.min(r,e.length):0,a=new Array(i),o=new Array(r),s;for(s=0;s<i;++s)a[s]=Ms(e[s],t[s]);for(;s<r;++s)o[s]=t[s];return function(l){for(s=0;s<i;++s)o[s]=a[s](l);return o}}n(Mm,"genericArray");function Am(e,t){var r=new Date;return e=+e,t=+t,function(i){return r.setTime(e*(1-i)+t*i),r}}n(Am,"default");function qe(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}n(qe,"default");function Em(e,t){var r={},i={},a;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(a in t)a in e?r[a]=Ms(e[a],t[a]):i[a]=t[a];return function(o){for(a in r)i[a]=r[a](o);return i}}n(Em,"default");var ah=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,gl=new RegExp(ah.source,"g");function Om(e){return function(){return e}}n(Om,"zero");function Im(e){return function(t){return e(t)+""}}n(Im,"one");function Ec(e,t){var r=ah.lastIndex=gl.lastIndex=0,i,a,o,s=-1,l=[],d=[];for(e=e+"",t=t+"";(i=ah.exec(e))&&(a=gl.exec(t));)(o=a.index)>r&&(o=t.slice(r,o),l[s]?l[s]+=o:l[++s]=o),(i=i[0])===(a=a[0])?l[s]?l[s]+=a:l[++s]=a:(l[++s]=null,d.push({i:s,x:qe(i,a)})),r=gl.lastIndex;return r<t.length&&(o=t.slice(r),l[s]?l[s]+=o:l[++s]=o),l.length<2?d[0]?Im(d[0].x):Om(t):(t=d.length,function(c){for(var h=0,u;h<t;++h)l[(u=d[h]).i]=u.x(c);return l.join("")})}n(Ec,"default");function Ms(e,t){var r=typeof t,i;return t==null||r==="boolean"?Fs(t):(r==="number"?qe:r==="string"?(i=Yr(t))?(t=i,Gn):Ec:t instanceof Yr?Gn:t instanceof Date?Am:Fm(t)?Lm:Array.isArray(t)?Mm:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?Em:qe)(e,t)}n(Ms,"default");function Dm(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}n(Dm,"default");var ip=180/Math.PI,oh={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Oc(e,t,r,i,a,o){var s,l,d;return(s=Math.sqrt(e*e+t*t))&&(e/=s,t/=s),(d=e*r+t*i)&&(r-=e*d,i-=t*d),(l=Math.sqrt(r*r+i*i))&&(r/=l,i/=l,d/=l),e*i<t*r&&(e=-e,t=-t,d=-d,s=-s),{translateX:a,translateY:o,rotate:Math.atan2(t,e)*ip,skewX:Math.atan(d)*ip,scaleX:s,scaleY:l}}n(Oc,"default");var hn;function qm(e){let t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?oh:Oc(t.a,t.b,t.c,t.d,t.e,t.f)}n(qm,"parseCss");function Pm(e){return e==null?oh:(hn||(hn=document.createElementNS("http://www.w3.org/2000/svg","g")),hn.setAttribute("transform",e),(e=hn.transform.baseVal.consolidate())?(e=e.matrix,Oc(e.a,e.b,e.c,e.d,e.e,e.f)):oh)}n(Pm,"parseSvg");function Ic(e,t,r,i){function a(c){return c.length?c.pop()+" ":""}n(a,"pop");function o(c,h,u,p,g,y){if(c!==u||h!==p){var m=g.push("translate(",null,t,null,r);y.push({i:m-4,x:qe(c,u)},{i:m-2,x:qe(h,p)})}else(u||p)&&g.push("translate("+u+t+p+r)}n(o,"translate");function s(c,h,u,p){c!==h?(c-h>180?h+=360:h-c>180&&(c+=360),p.push({i:u.push(a(u)+"rotate(",null,i)-2,x:qe(c,h)})):h&&u.push(a(u)+"rotate("+h+i)}n(s,"rotate");function l(c,h,u,p){c!==h?p.push({i:u.push(a(u)+"skewX(",null,i)-2,x:qe(c,h)}):h&&u.push(a(u)+"skewX("+h+i)}n(l,"skewX");function d(c,h,u,p,g,y){if(c!==u||h!==p){var m=g.push(a(g)+"scale(",null,",",null,")");y.push({i:m-4,x:qe(c,u)},{i:m-2,x:qe(h,p)})}else(u!==1||p!==1)&&g.push(a(g)+"scale("+u+","+p+")")}return n(d,"scale"),function(c,h){var u=[],p=[];return c=e(c),h=e(h),o(c.translateX,c.translateY,h.translateX,h.translateY,u,p),s(c.rotate,h.rotate,u,p),l(c.skewX,h.skewX,u,p),d(c.scaleX,c.scaleY,h.scaleX,h.scaleY,u,p),c=h=null,function(g){for(var y=-1,m=p.length,x;++y<m;)u[(x=p[y]).i]=x.x(g);return u.join("")}}}n(Ic,"interpolateTransform");var Ev=Ic(qm,"px, ","px)","deg)"),Ov=Ic(Pm,", ",")",")");function Rm(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}n(Rm,"default");function So(e,t){if((r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var r,i=e.slice(0,r);return[i.length>1?i[0]+i.slice(2):i,+e.slice(r+1)]}n(So,"formatDecimalParts");function ui(e){return e=So(Math.abs(e)),e?e[1]:NaN}n(ui,"default");function Nm(e,t){return function(r,i){for(var a=r.length,o=[],s=0,l=e[0],d=0;a>0&&l>0&&(d+l+1>i&&(l=Math.max(1,i-d)),o.push(r.substring(a-=l,a+l)),!((d+=l+1)>i));)l=e[s=(s+1)%e.length];return o.reverse().join(t)}}n(Nm,"default");function zm(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}n(zm,"default");var Iv=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Bo(e){if(!(t=Iv.exec(e)))throw new Error("invalid format: "+e);var t;return new As({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}n(Bo,"formatSpecifier");Bo.prototype=As.prototype;function As(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}n(As,"FormatSpecifier");As.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function Wm(e){t:for(var t=e.length,r=1,i=-1,a;r<t;++r)switch(e[r]){case".":i=a=r;break;case"0":i===0&&(i=r),a=r;break;default:if(!+e[r])break t;i>0&&(i=0);break}return i>0?e.slice(0,i)+e.slice(a+1):e}n(Wm,"default");var jm;function Hm(e,t){var r=So(e,t);if(!r)return e+"";var i=r[0],a=r[1],o=a-(jm=Math.max(-8,Math.min(8,Math.floor(a/3)))*3)+1,s=i.length;return o===s?i:o>s?i+new Array(o-s+1).join("0"):o>0?i.slice(0,o)+"."+i.slice(o):"0."+new Array(1-o).join("0")+So(e,Math.max(0,t+o-1))[0]}n(Hm,"default");function nh(e,t){var r=So(e,t);if(!r)return e+"";var i=r[0],a=r[1];return a<0?"0."+new Array(-a).join("0")+i:i.length>a+1?i.slice(0,a+1)+"."+i.slice(a+1):i+new Array(a-i.length+2).join("0")}n(nh,"default");var ap={"%":n((e,t)=>(e*100).toFixed(t),"%"),b:n(e=>Math.round(e).toString(2),"b"),c:n(e=>e+"","c"),d:Rm,e:n((e,t)=>e.toExponential(t),"e"),f:n((e,t)=>e.toFixed(t),"f"),g:n((e,t)=>e.toPrecision(t),"g"),o:n(e=>Math.round(e).toString(8),"o"),p:n((e,t)=>nh(e*100,t),"p"),r:nh,s:Hm,X:n(e=>Math.round(e).toString(16).toUpperCase(),"X"),x:n(e=>Math.round(e).toString(16),"x")};function sh(e){return e}n(sh,"default");var op=Array.prototype.map,np=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Um(e){var t=e.grouping===void 0||e.thousands===void 0?sh:Nm(op.call(e.grouping,Number),e.thousands+""),r=e.currency===void 0?"":e.currency[0]+"",i=e.currency===void 0?"":e.currency[1]+"",a=e.decimal===void 0?".":e.decimal+"",o=e.numerals===void 0?sh:zm(op.call(e.numerals,String)),s=e.percent===void 0?"%":e.percent+"",l=e.minus===void 0?"â":e.minus+"",d=e.nan===void 0?"NaN":e.nan+"";function c(u){u=Bo(u);var p=u.fill,g=u.align,y=u.sign,m=u.symbol,x=u.zero,C=u.width,k=u.comma,w=u.precision,S=u.trim,B=u.type;B==="n"?(k=!0,B="g"):ap[B]||(w===void 0&&(w=12),S=!0,B="g"),(x||p==="0"&&g==="=")&&(x=!0,p="0",g="=");var _=m==="$"?r:m==="#"&&/[boxX]/.test(B)?"0"+B.toLowerCase():"",$=m==="$"?i:/[%p]/.test(B)?s:"",I=ap[B],U=/[defgprs%]/.test(B);w=w===void 0?6:/[gprs]/.test(B)?Math.max(1,Math.min(21,w)):Math.max(0,Math.min(20,w));function V(A){var W=_,O=$,F,M,L;if(B==="c")O=I(A)+O,A="";else{A=+A;var D=A<0||1/A<0;if(A=isNaN(A)?d:I(Math.abs(A),w),S&&(A=Wm(A)),D&&+A==0&&y!=="+"&&(D=!1),W=(D?y==="("?y:l:y==="-"||y==="("?"":y)+W,O=(B==="s"?np[8+jm/3]:"")+O+(D&&y==="("?")":""),U){for(F=-1,M=A.length;++F<M;)if(L=A.charCodeAt(F),48>L||L>57){O=(L===46?a+A.slice(F+1):A.slice(F))+O,A=A.slice(0,F);break}}}k&&!x&&(A=t(A,1/0));var R=W.length+A.length+O.length,rt=R<C?new Array(C-R+1).join(p):"";switch(k&&x&&(A=t(rt+A,rt.length?C-O.length:1/0),rt=""),g){case"<":A=W+A+O+rt;break;case"=":A=W+rt+A+O;break;case"^":A=rt.slice(0,R=rt.length>>1)+W+A+O+rt.slice(R);break;default:A=rt+W+A+O;break}return o(A)}return n(V,"format"),V.toString=function(){return u+""},V}n(c,"newFormat");function h(u,p){var g=c((u=Bo(u),u.type="f",u)),y=Math.max(-8,Math.min(8,Math.floor(ui(p)/3)))*3,m=Math.pow(10,-y),x=np[8+y/3];return function(C){return g(m*C)+x}}return n(h,"formatPrefix"),{format:c,formatPrefix:h}}n(Um,"default");var cn,Ym,Vm;Gm({thousands:",",grouping:[3],currency:["$",""]});function Gm(e){return cn=Um(e),Ym=cn.format,Vm=cn.formatPrefix,cn}n(Gm,"defaultLocale");function Xm(e){return Math.max(0,-ui(Math.abs(e)))}n(Xm,"default");function Zm(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(ui(t)/3)))*3-ui(Math.abs(e)))}n(Zm,"default");function Qm(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,ui(t)-ui(e))+1}n(Qm,"default");function Jm(e){var t=0,r=e.children,i=r&&r.length;if(!i)t=1;else for(;--i>=0;)t+=r[i].value;e.value=t}n(Jm,"count");function Km(){return this.eachAfter(Jm)}n(Km,"default");function t0(e,t){let r=-1;for(let i of this)e.call(t,i,++r,this);return this}n(t0,"default");function e0(e,t){for(var r=this,i=[r],a,o,s=-1;r=i.pop();)if(e.call(t,r,++s,this),a=r.children)for(o=a.length-1;o>=0;--o)i.push(a[o]);return this}n(e0,"default");function r0(e,t){for(var r=this,i=[r],a=[],o,s,l,d=-1;r=i.pop();)if(a.push(r),o=r.children)for(s=0,l=o.length;s<l;++s)i.push(o[s]);for(;r=a.pop();)e.call(t,r,++d,this);return this}n(r0,"default");function i0(e,t){let r=-1;for(let i of this)if(e.call(t,i,++r,this))return i}n(i0,"default");function a0(e){return this.eachAfter(function(t){for(var r=+e(t.data)||0,i=t.children,a=i&&i.length;--a>=0;)r+=i[a].value;t.value=r})}n(a0,"default");function o0(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})}n(o0,"default");function n0(e){for(var t=this,r=s0(t,e),i=[t];t!==r;)t=t.parent,i.push(t);for(var a=i.length;e!==r;)i.splice(a,0,e),e=e.parent;return i}n(n0,"default");function s0(e,t){if(e===t)return e;var r=e.ancestors(),i=t.ancestors(),a=null;for(e=r.pop(),t=i.pop();e===t;)a=e,e=r.pop(),t=i.pop();return a}n(s0,"leastCommonAncestor");function l0(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t}n(l0,"default");function h0(){return Array.from(this)}n(h0,"default");function c0(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e}n(c0,"default");function d0(){var e=this,t=[];return e.each(function(r){r!==e&&t.push({source:r.parent,target:r})}),t}n(d0,"default");function*u0(){var e=this,t,r=[e],i,a,o;do for(t=r.reverse(),r=[];e=t.pop();)if(yield e,i=e.children)for(a=0,o=i.length;a<o;++a)r.push(i[a]);while(r.length)}n(u0,"default");function Dc(e,t){e instanceof Map?(e=[void 0,e],t===void 0&&(t=f0)):t===void 0&&(t=g0);for(var r=new _o(e),i,a=[r],o,s,l,d;i=a.pop();)if((s=t(i.data))&&(d=(s=Array.from(s)).length))for(i.children=s,l=d-1;l>=0;--l)a.push(o=s[l]=new _o(s[l])),o.parent=i,o.depth=i.depth+1;return r.eachBefore(m0)}n(Dc,"hierarchy");function p0(){return Dc(this).eachBefore(y0)}n(p0,"node_copy");function g0(e){return e.children}n(g0,"objectChildren");function f0(e){return Array.isArray(e)?e[1]:null}n(f0,"mapChildren");function y0(e){e.data.value!==void 0&&(e.value=e.data.value),e.data=e.data.data}n(y0,"copyData");function m0(e){var t=0;do e.height=t;while((e=e.parent)&&e.height<++t)}n(m0,"computeHeight");function _o(e){this.data=e,this.depth=this.height=0,this.parent=null}n(_o,"Node");_o.prototype=Dc.prototype={constructor:_o,count:Km,each:t0,eachAfter:r0,eachBefore:e0,find:i0,sum:a0,sort:o0,path:n0,ancestors:l0,descendants:h0,leaves:c0,links:d0,copy:p0,[Symbol.iterator]:u0};function x0(e){e.x0=Math.round(e.x0),e.y0=Math.round(e.y0),e.x1=Math.round(e.x1),e.y1=Math.round(e.y1)}n(x0,"default");function C0(e,t,r,i,a){for(var o=e.children,s,l=-1,d=o.length,c=e.value&&(i-t)/e.value;++l<d;)s=o[l],s.y0=r,s.y1=a,s.x0=t,s.x1=t+=s.value*c}n(C0,"default");function b0(e,t,r,i,a){for(var o=e.children,s,l=-1,d=o.length,c=e.value&&(a-r)/e.value;++l<d;)s=o[l],s.x0=t,s.x1=i,s.y0=r,s.y1=r+=s.value*c}n(b0,"default");var Dv=(1+Math.sqrt(5))/2;function k0(e,t,r,i,a,o){for(var s=[],l=t.children,d,c,h=0,u=0,p=l.length,g,y,m=t.value,x,C,k,w,S,B,_;h<p;){g=a-r,y=o-i;do x=l[u++].value;while(!x&&u<p);for(C=k=x,B=Math.max(y/g,g/y)/(m*e),_=x*x*B,S=Math.max(k/_,_/C);u<p;++u){if(x+=c=l[u].value,c<C&&(C=c),c>k&&(k=c),_=x*x*B,w=Math.max(k/_,_/C),w>S){x-=c;break}S=w}s.push(d={value:x,dice:g<y,children:l.slice(h,u)}),d.dice?C0(d,r,i,a,m?i+=y*x/m:o):b0(d,r,i,m?r+=g*x/m:a,o),m-=x,h=u}return s}n(k0,"squarifyRatio");var qv=n((function e(t){function r(i,a,o,s,l){k0(t,i,a,o,s,l)}return n(r,"squarify"),r.ratio=function(i){return e((i=+i)>1?i:1)},r}),"custom")(Dv);function w0(e){if(typeof e!="function")throw new Error;return e}n(w0,"required");function $i(){return 0}n($i,"constantZero");function Li(e){return function(){return e}}n(Li,"default");function Pv(){var e=qv,t=!1,r=1,i=1,a=[0],o=$i,s=$i,l=$i,d=$i,c=$i;function h(p){return p.x0=p.y0=0,p.x1=r,p.y1=i,p.eachBefore(u),a=[0],t&&p.eachBefore(x0),p}n(h,"treemap");function u(p){var g=a[p.depth],y=p.x0+g,m=p.y0+g,x=p.x1-g,C=p.y1-g;x<y&&(y=x=(y+x)/2),C<m&&(m=C=(m+C)/2),p.x0=y,p.y0=m,p.x1=x,p.y1=C,p.children&&(g=a[p.depth+1]=o(p)/2,y+=c(p)-g,m+=s(p)-g,x-=l(p)-g,C-=d(p)-g,x<y&&(y=x=(y+x)/2),C<m&&(m=C=(m+C)/2),e(p,y,m,x,C))}return n(u,"positionNode"),h.round=function(p){return arguments.length?(t=!!p,h):t},h.size=function(p){return arguments.length?(r=+p[0],i=+p[1],h):[r,i]},h.tile=function(p){return arguments.length?(e=w0(p),h):e},h.padding=function(p){return arguments.length?h.paddingInner(p).paddingOuter(p):h.paddingInner()},h.paddingInner=function(p){return arguments.length?(o=typeof p=="function"?p:Li(+p),h):o},h.paddingOuter=function(p){return arguments.length?h.paddingTop(p).paddingRight(p).paddingBottom(p).paddingLeft(p):h.paddingTop()},h.paddingTop=function(p){return arguments.length?(s=typeof p=="function"?p:Li(+p),h):s},h.paddingRight=function(p){return arguments.length?(l=typeof p=="function"?p:Li(+p),h):l},h.paddingBottom=function(p){return arguments.length?(d=typeof p=="function"?p:Li(+p),h):d},h.paddingLeft=function(p){return arguments.length?(c=typeof p=="function"?p:Li(+p),h):c},h}n(Pv,"default");function Ho(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}n(Ho,"initRange");var sp=Symbol("implicit");function qc(){var e=new Ku,t=[],r=[],i=sp;function a(o){let s=e.get(o);if(s===void 0){if(i!==sp)return i;e.set(o,s=t.push(o)-1)}return r[s%r.length]}return n(a,"scale"),a.domain=function(o){if(!arguments.length)return t.slice();t=[],e=new Ku;for(let s of o)e.has(s)||e.set(s,t.push(s)-1);return a},a.range=function(o){return arguments.length?(r=Array.from(o),a):r.slice()},a.unknown=function(o){return arguments.length?(i=o,a):i},a.copy=function(){return qc(t,r).unknown(i)},Ho.apply(a,arguments),a}n(qc,"ordinal");function v0(e){return function(){return e}}n(v0,"constants");function T0(e){return+e}n(T0,"number");var lp=[0,1];function ni(e){return e}n(ni,"identity");function Xn(e,t){return(t-=e=+e)?function(r){return(r-e)/t}:v0(isNaN(t)?NaN:.5)}n(Xn,"normalize");function S0(e,t){var r;return e>t&&(r=e,e=t,t=r),function(i){return Math.max(e,Math.min(t,i))}}n(S0,"clamper");function B0(e,t,r){var i=e[0],a=e[1],o=t[0],s=t[1];return a<i?(i=Xn(a,i),o=r(s,o)):(i=Xn(i,a),o=r(o,s)),function(l){return o(i(l))}}n(B0,"bimap");function _0(e,t,r){var i=Math.min(e.length,t.length)-1,a=new Array(i),o=new Array(i),s=-1;for(e[i]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++s<i;)a[s]=Xn(e[s],e[s+1]),o[s]=r(t[s],t[s+1]);return function(l){var d=uv(e,l,1,i)-1;return o[d](a[d](l))}}n(_0,"polymap");function Pc(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}n(Pc,"copy");function $0(){var e=lp,t=lp,r=Ms,i,a,o,s=ni,l,d,c;function h(){var p=Math.min(e.length,t.length);return s!==ni&&(s=S0(e[0],e[p-1])),l=p>2?_0:B0,d=c=null,u}n(h,"rescale");function u(p){return p==null||isNaN(p=+p)?o:(d||(d=l(e.map(i),t,r)))(i(s(p)))}return n(u,"scale"),u.invert=function(p){return s(a((c||(c=l(t,e.map(i),qe)))(p)))},u.domain=function(p){return arguments.length?(e=Array.from(p,T0),h()):e.slice()},u.range=function(p){return arguments.length?(t=Array.from(p),h()):t.slice()},u.rangeRound=function(p){return t=Array.from(p),r=Dm,h()},u.clamp=function(p){return arguments.length?(s=p?!0:ni,h()):s!==ni},u.interpolate=function(p){return arguments.length?(r=p,h()):r},u.unknown=function(p){return arguments.length?(o=p,u):o},function(p,g){return i=p,a=g,h()}}n($0,"transformer");function Rc(){return $0()(ni,ni)}n(Rc,"continuous");function L0(e,t,r,i){var a=Hn(e,t,r),o;switch(i=Bo(i??",f"),i.type){case"s":var s=Math.max(Math.abs(e),Math.abs(t));return i.precision==null&&!isNaN(o=Zm(a,s))&&(i.precision=o),Vm(i,s);case"":case"e":case"g":case"p":case"r":i.precision==null&&!isNaN(o=Qm(a,Math.max(Math.abs(e),Math.abs(t))))&&(i.precision=o-(i.type==="e"));break;case"f":case"%":i.precision==null&&!isNaN(o=Xm(a))&&(i.precision=o-(i.type==="%")*2);break}return Ym(i)}n(L0,"tickFormat");function F0(e){var t=e.domain;return e.ticks=function(r){var i=t();return Lf(i[0],i[i.length-1],r??10)},e.tickFormat=function(r,i){var a=t();return L0(a[0],a[a.length-1],r??10,i)},e.nice=function(r){r??=10;var i=t(),a=0,o=i.length-1,s=i[a],l=i[o],d,c,h=10;for(l<s&&(c=s,s=l,l=c,c=a,a=o,o=c);h-- >0;){if(c=jn(s,l,r),c===d)return i[a]=s,i[o]=l,t(i);if(c>0)s=Math.floor(s/c)*c,l=Math.ceil(l/c)*c;else if(c<0)s=Math.ceil(s*c)/c,l=Math.floor(l*c)/c;else break;d=c}return e},e}n(F0,"linearish");function M0(){var e=Rc();return e.copy=function(){return Pc(e,M0())},Ho.apply(e,arguments),F0(e)}n(M0,"linear");var fl=new Date,yl=new Date;function ne(e,t,r,i){function a(o){return e(o=arguments.length===0?new Date:new Date(+o)),o}return n(a,"interval"),a.floor=o=>(e(o=new Date(+o)),o),a.ceil=o=>(e(o=new Date(o-1)),t(o,1),e(o),o),a.round=o=>{let s=a(o),l=a.ceil(o);return o-s<l-o?s:l},a.offset=(o,s)=>(t(o=new Date(+o),s==null?1:Math.floor(s)),o),a.range=(o,s,l)=>{let d=[];if(o=a.ceil(o),l=l==null?1:Math.floor(l),!(o<s)||!(l>0))return d;let c;do d.push(c=new Date(+o)),t(o,l),e(o);while(c<o&&o<s);return d},a.filter=o=>ne(s=>{if(s>=s)for(;e(s),!o(s);)s.setTime(s-1)},(s,l)=>{if(s>=s)if(l<0)for(;++l<=0;)for(;t(s,-1),!o(s););else for(;--l>=0;)for(;t(s,1),!o(s););}),r&&(a.count=(o,s)=>(fl.setTime(+o),yl.setTime(+s),e(fl),e(yl),Math.floor(r(fl,yl))),a.every=o=>(o=Math.floor(o),!isFinite(o)||!(o>0)?null:o>1?a.filter(i?s=>i(s)%o===0:s=>a.count(0,s)%o===0):a)),a}n(ne,"timeInterval");var Zn=ne(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Zn.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?ne(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):Zn);Zn.range;var Ri=ne(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*1e3)},(e,t)=>(t-e)/1e3,e=>e.getUTCSeconds());Ri.range;var Nc=ne(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*1e3)},(e,t)=>{e.setTime(+e+t*6e4)},(e,t)=>(t-e)/6e4,e=>e.getMinutes());Nc.range;var A0=ne(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*6e4)},(e,t)=>(t-e)/6e4,e=>e.getUTCMinutes());A0.range;var zc=ne(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*1e3-e.getMinutes()*6e4)},(e,t)=>{e.setTime(+e+t*36e5)},(e,t)=>(t-e)/36e5,e=>e.getHours());zc.range;var E0=ne(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*36e5)},(e,t)=>(t-e)/36e5,e=>e.getUTCHours());E0.range;var Uo=ne(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*6e4)/864e5,e=>e.getDate()-1);Uo.range;var Wc=ne(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/864e5,e=>e.getUTCDate()-1);Wc.range;var O0=ne(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/864e5,e=>Math.floor(e/864e5));O0.range;function Qr(e){return ne(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,r)=>{t.setDate(t.getDate()+r*7)},(t,r)=>(r-t-(r.getTimezoneOffset()-t.getTimezoneOffset())*6e4)/6048e5)}n(Qr,"timeWeekday");var Es=Qr(0),Qn=Qr(1),Rv=Qr(2),Nv=Qr(3),Sa=Qr(4),zv=Qr(5),Wv=Qr(6);Es.range;Qn.range;Rv.range;Nv.range;Sa.range;zv.range;Wv.range;function Jr(e){return ne(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCDate(t.getUTCDate()+r*7)},(t,r)=>(r-t)/6048e5)}n(Jr,"utcWeekday");var jc=Jr(0),Jn=Jr(1),jv=Jr(2),Hv=Jr(3),Ba=Jr(4),Uv=Jr(5),Yv=Jr(6);jc.range;Jn.range;jv.range;Hv.range;Ba.range;Uv.range;Yv.range;var Hc=ne(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());Hc.range;var I0=ne(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());I0.range;var $r=ne(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());$r.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:ne(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,r)=>{t.setFullYear(t.getFullYear()+r*e)});$r.range;var Vr=ne(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());Vr.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:ne(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCFullYear(t.getUTCFullYear()+r*e)});Vr.range;function Uc(e,t,r,i,a,o){let s=[[Ri,1,1e3],[Ri,5,5e3],[Ri,15,15e3],[Ri,30,3e4],[o,1,6e4],[o,5,3e5],[o,15,9e5],[o,30,18e5],[a,1,36e5],[a,3,108e5],[a,6,216e5],[a,12,432e5],[i,1,864e5],[i,2,1728e5],[r,1,6048e5],[t,1,2592e6],[t,3,7776e6],[e,1,31536e6]];function l(c,h,u){let p=h<c;p&&([c,h]=[h,c]);let g=u&&typeof u.range=="function"?u:d(c,h,u),y=g?g.range(c,+h+1):[];return p?y.reverse():y}n(l,"ticks");function d(c,h,u){let p=Math.abs(h-c)/u,g=_s(([,,x])=>x).right(s,p);if(g===s.length)return e.every(Hn(c/31536e6,h/31536e6,u));if(g===0)return Zn.every(Math.max(Hn(c,h,u),1));let[y,m]=s[p/s[g-1][2]<s[g][2]/p?g-1:g];return y.every(m)}return n(d,"tickInterval"),[l,d]}n(Uc,"ticker");var[BF,_F]=Uc(Vr,I0,jc,O0,E0,A0),[Vv,Gv]=Uc($r,Hc,Es,Uo,zc,Nc);function Bn(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}n(Bn,"localDate");function _n(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}n(_n,"utcDate");function Fi(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}n(Fi,"newDate");function D0(e){var t=e.dateTime,r=e.date,i=e.time,a=e.periods,o=e.days,s=e.shortDays,l=e.months,d=e.shortMonths,c=Mi(a),h=Ai(a),u=Mi(o),p=Ai(o),g=Mi(s),y=Ai(s),m=Mi(l),x=Ai(l),C=Mi(d),k=Ai(d),w={a:D,A:R,b:rt,B:X,c:null,d:uh,e:uh,f:ix,g:px,G:fx,H:tx,I:ex,j:rx,L:Yc,m:ax,M:ox,p:xt,q:wt,Q:fh,s:yh,S:nx,u:sx,U:lx,V:hx,w:cx,W:dx,x:null,X:null,y:ux,Y:gx,Z:yx,"%":gh},S={a:_t,A:$t,b:Ct,B:ut,c:null,d:ph,e:ph,f:bx,g:Fx,G:Ax,H:mx,I:xx,j:Cx,L:Gc,m:kx,M:wx,p:bt,q:Dt,Q:fh,s:yh,S:vx,u:Tx,U:Sx,V:Bx,w:_x,W:$x,x:null,X:null,y:Lx,Y:Mx,Z:Ex,"%":gh},B={a:V,A,b:W,B:O,c:F,d:ch,e:ch,f:Z0,g:hh,G:lh,H:dh,I:dh,j:Y0,L:X0,m:U0,M:V0,p:U,q:H0,Q:J0,s:K0,S:G0,u:R0,U:N0,V:z0,w:P0,W:W0,x:M,X:L,y:hh,Y:lh,Z:j0,"%":Q0};w.x=_(r,w),w.X=_(i,w),w.c=_(t,w),S.x=_(r,S),S.X=_(i,S),S.c=_(t,S);function _(K,st){return function(mt){var G=[],jt=-1,Bt=0,Gt=K.length,Kt,Vt,Oe;for(mt instanceof Date||(mt=new Date(+mt));++jt<Gt;)K.charCodeAt(jt)===37&&(G.push(K.slice(Bt,jt)),(Vt=hp[Kt=K.charAt(++jt)])!=null?Kt=K.charAt(++jt):Vt=Kt==="e"?" ":"0",(Oe=st[Kt])&&(Kt=Oe(mt,Vt)),G.push(Kt),Bt=jt+1);return G.push(K.slice(Bt,jt)),G.join("")}}n(_,"newFormat");function $(K,st){return function(mt){var G=Fi(1900,void 0,1),jt=I(G,K,mt+="",0),Bt,Gt;if(jt!=mt.length)return null;if("Q"in G)return new Date(G.Q);if("s"in G)return new Date(G.s*1e3+("L"in G?G.L:0));if(st&&!("Z"in G)&&(G.Z=0),"p"in G&&(G.H=G.H%12+G.p*12),G.m===void 0&&(G.m="q"in G?G.q:0),"V"in G){if(G.V<1||G.V>53)return null;"w"in G||(G.w=1),"Z"in G?(Bt=_n(Fi(G.y,0,1)),Gt=Bt.getUTCDay(),Bt=Gt>4||Gt===0?Jn.ceil(Bt):Jn(Bt),Bt=Wc.offset(Bt,(G.V-1)*7),G.y=Bt.getUTCFullYear(),G.m=Bt.getUTCMonth(),G.d=Bt.getUTCDate()+(G.w+6)%7):(Bt=Bn(Fi(G.y,0,1)),Gt=Bt.getDay(),Bt=Gt>4||Gt===0?Qn.ceil(Bt):Qn(Bt),Bt=Uo.offset(Bt,(G.V-1)*7),G.y=Bt.getFullYear(),G.m=Bt.getMonth(),G.d=Bt.getDate()+(G.w+6)%7)}else("W"in G||"U"in G)&&("w"in G||(G.w="u"in G?G.u%7:"W"in G?1:0),Gt="Z"in G?_n(Fi(G.y,0,1)).getUTCDay():Bn(Fi(G.y,0,1)).getDay(),G.m=0,G.d="W"in G?(G.w+6)%7+G.W*7-(Gt+5)%7:G.w+G.U*7-(Gt+6)%7);return"Z"in G?(G.H+=G.Z/100|0,G.M+=G.Z%100,_n(G)):Bn(G)}}n($,"newParse");function I(K,st,mt,G){for(var jt=0,Bt=st.length,Gt=mt.length,Kt,Vt;jt<Bt;){if(G>=Gt)return-1;if(Kt=st.charCodeAt(jt++),Kt===37){if(Kt=st.charAt(jt++),Vt=B[Kt in hp?st.charAt(jt++):Kt],!Vt||(G=Vt(K,mt,G))<0)return-1}else if(Kt!=mt.charCodeAt(G++))return-1}return G}n(I,"parseSpecifier");function U(K,st,mt){var G=c.exec(st.slice(mt));return G?(K.p=h.get(G[0].toLowerCase()),mt+G[0].length):-1}n(U,"parsePeriod");function V(K,st,mt){var G=g.exec(st.slice(mt));return G?(K.w=y.get(G[0].toLowerCase()),mt+G[0].length):-1}n(V,"parseShortWeekday");function A(K,st,mt){var G=u.exec(st.slice(mt));return G?(K.w=p.get(G[0].toLowerCase()),mt+G[0].length):-1}n(A,"parseWeekday");function W(K,st,mt){var G=C.exec(st.slice(mt));return G?(K.m=k.get(G[0].toLowerCase()),mt+G[0].length):-1}n(W,"parseShortMonth");function O(K,st,mt){var G=m.exec(st.slice(mt));return G?(K.m=x.get(G[0].toLowerCase()),mt+G[0].length):-1}n(O,"parseMonth");function F(K,st,mt){return I(K,t,st,mt)}n(F,"parseLocaleDateTime");function M(K,st,mt){return I(K,r,st,mt)}n(M,"parseLocaleDate");function L(K,st,mt){return I(K,i,st,mt)}n(L,"parseLocaleTime");function D(K){return s[K.getDay()]}n(D,"formatShortWeekday");function R(K){return o[K.getDay()]}n(R,"formatWeekday");function rt(K){return d[K.getMonth()]}n(rt,"formatShortMonth");function X(K){return l[K.getMonth()]}n(X,"formatMonth");function xt(K){return a[+(K.getHours()>=12)]}n(xt,"formatPeriod");function wt(K){return 1+~~(K.getMonth()/3)}n(wt,"formatQuarter");function _t(K){return s[K.getUTCDay()]}n(_t,"formatUTCShortWeekday");function $t(K){return o[K.getUTCDay()]}n($t,"formatUTCWeekday");function Ct(K){return d[K.getUTCMonth()]}n(Ct,"formatUTCShortMonth");function ut(K){return l[K.getUTCMonth()]}n(ut,"formatUTCMonth");function bt(K){return a[+(K.getUTCHours()>=12)]}n(bt,"formatUTCPeriod");function Dt(K){return 1+~~(K.getUTCMonth()/3)}return n(Dt,"formatUTCQuarter"),{format:n(function(K){var st=_(K+="",w);return st.toString=function(){return K},st},"format"),parse:n(function(K){var st=$(K+="",!1);return st.toString=function(){return K},st},"parse"),utcFormat:n(function(K){var st=_(K+="",S);return st.toString=function(){return K},st},"utcFormat"),utcParse:n(function(K){var st=$(K+="",!0);return st.toString=function(){return K},st},"utcParse")}}n(D0,"formatLocale");var hp={"-":"",_:" ",0:"0"},ce=/^\s*\d+/,Xv=/^%/,Zv=/[\\^$*+?|[\]().{}]/g;function Wt(e,t,r){var i=e<0?"-":"",a=(i?-e:e)+"",o=a.length;return i+(o<r?new Array(r-o+1).join(t)+a:a)}n(Wt,"pad");function q0(e){return e.replace(Zv,"\\$&")}n(q0,"requote");function Mi(e){return new RegExp("^(?:"+e.map(q0).join("|")+")","i")}n(Mi,"formatRe");function Ai(e){return new Map(e.map((t,r)=>[t.toLowerCase(),r]))}n(Ai,"formatLookup");function P0(e,t,r){var i=ce.exec(t.slice(r,r+1));return i?(e.w=+i[0],r+i[0].length):-1}n(P0,"parseWeekdayNumberSunday");function R0(e,t,r){var i=ce.exec(t.slice(r,r+1));return i?(e.u=+i[0],r+i[0].length):-1}n(R0,"parseWeekdayNumberMonday");function N0(e,t,r){var i=ce.exec(t.slice(r,r+2));return i?(e.U=+i[0],r+i[0].length):-1}n(N0,"parseWeekNumberSunday");function z0(e,t,r){var i=ce.exec(t.slice(r,r+2));return i?(e.V=+i[0],r+i[0].length):-1}n(z0,"parseWeekNumberISO");function W0(e,t,r){var i=ce.exec(t.slice(r,r+2));return i?(e.W=+i[0],r+i[0].length):-1}n(W0,"parseWeekNumberMonday");function lh(e,t,r){var i=ce.exec(t.slice(r,r+4));return i?(e.y=+i[0],r+i[0].length):-1}n(lh,"parseFullYear");function hh(e,t,r){var i=ce.exec(t.slice(r,r+2));return i?(e.y=+i[0]+(+i[0]>68?1900:2e3),r+i[0].length):-1}n(hh,"parseYear");function j0(e,t,r){var i=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return i?(e.Z=i[1]?0:-(i[2]+(i[3]||"00")),r+i[0].length):-1}n(j0,"parseZone");function H0(e,t,r){var i=ce.exec(t.slice(r,r+1));return i?(e.q=i[0]*3-3,r+i[0].length):-1}n(H0,"parseQuarter");function U0(e,t,r){var i=ce.exec(t.slice(r,r+2));return i?(e.m=i[0]-1,r+i[0].length):-1}n(U0,"parseMonthNumber");function ch(e,t,r){var i=ce.exec(t.slice(r,r+2));return i?(e.d=+i[0],r+i[0].length):-1}n(ch,"parseDayOfMonth");function Y0(e,t,r){var i=ce.exec(t.slice(r,r+3));return i?(e.m=0,e.d=+i[0],r+i[0].length):-1}n(Y0,"parseDayOfYear");function dh(e,t,r){var i=ce.exec(t.slice(r,r+2));return i?(e.H=+i[0],r+i[0].length):-1}n(dh,"parseHour24");function V0(e,t,r){var i=ce.exec(t.slice(r,r+2));return i?(e.M=+i[0],r+i[0].length):-1}n(V0,"parseMinutes");function G0(e,t,r){var i=ce.exec(t.slice(r,r+2));return i?(e.S=+i[0],r+i[0].length):-1}n(G0,"parseSeconds");function X0(e,t,r){var i=ce.exec(t.slice(r,r+3));return i?(e.L=+i[0],r+i[0].length):-1}n(X0,"parseMilliseconds");function Z0(e,t,r){var i=ce.exec(t.slice(r,r+6));return i?(e.L=Math.floor(i[0]/1e3),r+i[0].length):-1}n(Z0,"parseMicroseconds");function Q0(e,t,r){var i=Xv.exec(t.slice(r,r+1));return i?r+i[0].length:-1}n(Q0,"parseLiteralPercent");function J0(e,t,r){var i=ce.exec(t.slice(r));return i?(e.Q=+i[0],r+i[0].length):-1}n(J0,"parseUnixTimestamp");function K0(e,t,r){var i=ce.exec(t.slice(r));return i?(e.s=+i[0],r+i[0].length):-1}n(K0,"parseUnixTimestampSeconds");function uh(e,t){return Wt(e.getDate(),t,2)}n(uh,"formatDayOfMonth");function tx(e,t){return Wt(e.getHours(),t,2)}n(tx,"formatHour24");function ex(e,t){return Wt(e.getHours()%12||12,t,2)}n(ex,"formatHour12");function rx(e,t){return Wt(1+Uo.count($r(e),e),t,3)}n(rx,"formatDayOfYear");function Yc(e,t){return Wt(e.getMilliseconds(),t,3)}n(Yc,"formatMilliseconds");function ix(e,t){return Yc(e,t)+"000"}n(ix,"formatMicroseconds");function ax(e,t){return Wt(e.getMonth()+1,t,2)}n(ax,"formatMonthNumber");function ox(e,t){return Wt(e.getMinutes(),t,2)}n(ox,"formatMinutes");function nx(e,t){return Wt(e.getSeconds(),t,2)}n(nx,"formatSeconds");function sx(e){var t=e.getDay();return t===0?7:t}n(sx,"formatWeekdayNumberMonday");function lx(e,t){return Wt(Es.count($r(e)-1,e),t,2)}n(lx,"formatWeekNumberSunday");function Vc(e){var t=e.getDay();return t>=4||t===0?Sa(e):Sa.ceil(e)}n(Vc,"dISO");function hx(e,t){return e=Vc(e),Wt(Sa.count($r(e),e)+($r(e).getDay()===4),t,2)}n(hx,"formatWeekNumberISO");function cx(e){return e.getDay()}n(cx,"formatWeekdayNumberSunday");function dx(e,t){return Wt(Qn.count($r(e)-1,e),t,2)}n(dx,"formatWeekNumberMonday");function ux(e,t){return Wt(e.getFullYear()%100,t,2)}n(ux,"formatYear");function px(e,t){return e=Vc(e),Wt(e.getFullYear()%100,t,2)}n(px,"formatYearISO");function gx(e,t){return Wt(e.getFullYear()%1e4,t,4)}n(gx,"formatFullYear");function fx(e,t){var r=e.getDay();return e=r>=4||r===0?Sa(e):Sa.ceil(e),Wt(e.getFullYear()%1e4,t,4)}n(fx,"formatFullYearISO");function yx(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Wt(t/60|0,"0",2)+Wt(t%60,"0",2)}n(yx,"formatZone");function ph(e,t){return Wt(e.getUTCDate(),t,2)}n(ph,"formatUTCDayOfMonth");function mx(e,t){return Wt(e.getUTCHours(),t,2)}n(mx,"formatUTCHour24");function xx(e,t){return Wt(e.getUTCHours()%12||12,t,2)}n(xx,"formatUTCHour12");function Cx(e,t){return Wt(1+Wc.count(Vr(e),e),t,3)}n(Cx,"formatUTCDayOfYear");function Gc(e,t){return Wt(e.getUTCMilliseconds(),t,3)}n(Gc,"formatUTCMilliseconds");function bx(e,t){return Gc(e,t)+"000"}n(bx,"formatUTCMicroseconds");function kx(e,t){return Wt(e.getUTCMonth()+1,t,2)}n(kx,"formatUTCMonthNumber");function wx(e,t){return Wt(e.getUTCMinutes(),t,2)}n(wx,"formatUTCMinutes");function vx(e,t){return Wt(e.getUTCSeconds(),t,2)}n(vx,"formatUTCSeconds");function Tx(e){var t=e.getUTCDay();return t===0?7:t}n(Tx,"formatUTCWeekdayNumberMonday");function Sx(e,t){return Wt(jc.count(Vr(e)-1,e),t,2)}n(Sx,"formatUTCWeekNumberSunday");function Xc(e){var t=e.getUTCDay();return t>=4||t===0?Ba(e):Ba.ceil(e)}n(Xc,"UTCdISO");function Bx(e,t){return e=Xc(e),Wt(Ba.count(Vr(e),e)+(Vr(e).getUTCDay()===4),t,2)}n(Bx,"formatUTCWeekNumberISO");function _x(e){return e.getUTCDay()}n(_x,"formatUTCWeekdayNumberSunday");function $x(e,t){return Wt(Jn.count(Vr(e)-1,e),t,2)}n($x,"formatUTCWeekNumberMonday");function Lx(e,t){return Wt(e.getUTCFullYear()%100,t,2)}n(Lx,"formatUTCYear");function Fx(e,t){return e=Xc(e),Wt(e.getUTCFullYear()%100,t,2)}n(Fx,"formatUTCYearISO");function Mx(e,t){return Wt(e.getUTCFullYear()%1e4,t,4)}n(Mx,"formatUTCFullYear");function Ax(e,t){var r=e.getUTCDay();return e=r>=4||r===0?Ba(e):Ba.ceil(e),Wt(e.getUTCFullYear()%1e4,t,4)}n(Ax,"formatUTCFullYearISO");function Ex(){return"+0000"}n(Ex,"formatUTCZone");function gh(){return"%"}n(gh,"formatLiteralPercent");function fh(e){return+e}n(fh,"formatUnixTimestamp");function yh(e){return Math.floor(+e/1e3)}n(yh,"formatUnixTimestampSeconds");var Ti,Ox;Ix({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
2ay","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function Ix(e){return Ti=D0(e),Ox=Ti.format,Ti.parse,Ti.utcFormat,Ti.utcParse,Ti}n(Ix,"defaultLocale");function Dx(e,t){e=e.slice();var r=0,i=e.length-1,a=e[r],o=e[i],s;return o<a&&(s=r,r=i,i=s,s=a,a=o,o=s),e[r]=t.floor(a),e[i]=t.ceil(o),e}n(Dx,"nice");function qx(e){return new Date(e)}n(qx,"date");function Px(e){return e instanceof Date?+e:+new Date(+e)}n(Px,"number");function Zc(e,t,r,i,a,o,s,l,d,c){var h=Rc(),u=h.invert,p=h.domain,g=c(".%L"),y=c(":%S"),m=c("%I:%M"),x=c("%I %p"),C=c("%a %d"),k=c("%b %d"),w=c("%B"),S=c("%Y");function B(_){return(d(_)<_?g:l(_)<_?y:s(_)<_?m:o(_)<_?x:i(_)<_?a(_)<_?C:k:r(_)<_?w:S)(_)}return n(B,"tickFormat"),h.invert=function(_){return new Date(u(_))},h.domain=function(_){return arguments.length?p(Array.from(_,Px)):p().map(qx)},h.ticks=function(_){var $=p();return e($[0],$[$.length-1],_??10)},h.tickFormat=function(_,$){return $==null?B:c($)},h.nice=function(_){var $=p();return(!_||typeof _.range!="function")&&(_=t($[0],$[$.length-1],_??10)),_?p(Dx($,_)):h},h.copy=function(){return Pc(h,Zc(e,t,r,i,a,o,s,l,d,c))},h}n(Zc,"calendar");function Qv(){return Ho.apply(Zc(Vv,Gv,$r,Hc,Es,Uo,zc,Nc,Ri,Ox).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}n(Qv,"time");function Rx(){var e=qc().unknown(void 0),t=e.domain,r=e.range,i=0,a=1,o,s,l=!1,d=0,c=0,h=.5;delete e.unknown;function u(){var p=t().length,g=a<i,y=g?a:i,m=g?i:a;o=(m-y)/Math.max(1,p-d+c*2),l&&(o=Math.floor(o)),y+=(m-y-o*(p-d))*h,s=o*(1-d),l&&(y=Math.round(y),s=Math.round(s));var x=Ff(p).map(function(C){return y+o*C});return r(g?x.reverse():x)}return n(u,"rescale"),e.domain=function(p){return arguments.length?(t(p),u()):t()},e.range=function(p){return arguments.length?([i,a]=p,i=+i,a=+a,u()):[i,a]},e.rangeRound=function(p){return[i,a]=p,i=+i,a=+a,l=!0,u()},e.bandwidth=function(){return s},e.step=function(){return o},e.round=function(p){return arguments.length?(l=!!p,u()):l},e.padding=function(p){return arguments.length?(d=Math.min(1,c=+p),u()):d},e.paddingInner=function(p){return arguments.length?(d=Math.min(1,p),u()):d},e.paddingOuter=function(p){return arguments.length?(c=+p,u()):c},e.align=function(p){return arguments.length?(h=Math.max(0,Math.min(1,p)),u()):h},e.copy=function(){return Rx(t(),[i,a]).round(l).paddingInner(d).paddingOuter(c).align(h)},Ho.apply(u(),arguments)}n(Rx,"band");function Nx(e){for(var t=e.length/6|0,r=new Array(t),i=0;i<t;)r[i]="#"+e.slice(i*6,++i*6);return r}n(Nx,"default");var $F=Nx("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab");function ee(e){return n(function(){return e},"constant")}n(ee,"default");var cp=Math.abs,me=Math.atan2,ei=Math.cos,Jv=Math.max,ml=Math.min,ir=Math.sin,Ni=Math.sqrt,Ce=1e-12,$o=Math.PI,Kn=$o/2,$n=2*$o;function zx(e){return e>1?0:e<-1?$o:Math.acos(e)}n(zx,"acos");function mh(e){return e>=1?Kn:e<=-1?-Kn:Math.asin(e)}n(mh,"asin");var xh=Math.PI,Ch=2*xh,ai=1e-6,Kv=Ch-ai;function Qc(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}n(Qc,"append");function Wx(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return Qc;let r=10**t;return function(i){this._+=i[0];for(let a=1,o=i.length;a<o;++a)this._+=Math.round(arguments[a]*r)/r+i[a]}}n(Wx,"appendRound");var Vi,Jc=(Vi=class{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?Qc:Wx(t)}moveTo(t,r){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,r){this._append`L${this._x1=+t},${this._y1=+r}`}quadraticCurveTo(t,r,i,a){this._append`Q${+t},${+r},${this._x1=+i},${this._y1=+a}`}bezierCurveTo(t,r,i,a,o,s){this._append`C${+t},${+r},${+i},${+a},${this._x1=+o},${this._y1=+s}`}arcTo(t,r,i,a,o){if(t=+t,r=+r,i=+i,a=+a,o=+o,o<0)throw new Error(`negative radius: ${o}`);let s=this._x1,l=this._y1,d=i-t,c=a-r,h=s-t,u=l-r,p=h*h+u*u;if(this._x1===null)this._append`M${this._x1=t},${this._y1=r}`;else if(p>ai)if(!(Math.abs(u*d-c*h)>ai)||!o)this._append`L${this._x1=t},${this._y1=r}`;else{let g=i-s,y=a-l,m=d*d+c*c,x=g*g+y*y,C=Math.sqrt(m),k=Math.sqrt(p),w=o*Math.tan((xh-Math.acos((m+p-x)/(2*C*k)))/2),S=w/k,B=w/C;Math.abs(S-1)>ai&&this._append`L${t+S*h},${r+S*u}`,this._append`A${o},${o},0,0,${+(u*g>h*y)},${this._x1=t+B*d},${this._y1=r+B*c}`}}
vendor: 21,496 bytes, line 2
2arc(t,r,i,a,o,s){if(t=+t,r=+r,i=+i,s=!!s,i<0)throw new Error(`negative radius: ${i}`);let l=i*Math.cos(a),d=i*Math.sin(a),c=t+l,h=r+d,u=1^s,p=s?a-o:o-a;this._x1===null?this._append`M${c},${h}`:(Math.abs(this._x1-c)>ai||Math.abs(this._y1-h)>ai)&&this._append`L${c},${h}`,i&&(p<0&&(p=p%Ch+Ch),p>Kv?this._append`A${i},${i},0,1,${u},${t-l},${r-d}A${i},${i},0,1,${u},${this._x1=c},${this._y1=h}`:p>ai&&this._append`A${i},${i},0,${+(p>=xh)},${u},${this._x1=t+i*Math.cos(o)},${this._y1=r+i*Math.sin(o)}`)}rect(t,r,i,a){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}h${i=+i}v${+a}h${-i}Z`}toString(){return this._}},n(Vi,"Path"),Vi);function jx(){return new Jc}n(jx,"path");jx.prototype=Jc.prototype;function Kc(e){let t=3;return e.digits=function(r){if(!arguments.length)return t;if(r==null)t=null;else{let i=Math.floor(r);if(!(i>=0))throw new RangeError(`invalid digits: ${r}`);t=i}return e},()=>new Jc(t)}n(Kc,"withPath");function Hx(e){return e.innerRadius}n(Hx,"arcInnerRadius");function Ux(e){return e.outerRadius}n(Ux,"arcOuterRadius");function Yx(e){return e.startAngle}n(Yx,"arcStartAngle");function Vx(e){return e.endAngle}n(Vx,"arcEndAngle");function Gx(e){return e&&e.padAngle}n(Gx,"arcPadAngle");function Xx(e,t,r,i,a,o,s,l){var d=r-e,c=i-t,h=s-a,u=l-o,p=u*d-h*c;if(!(p*p<Ce))return p=(h*(t-o)-u*(e-a))/p,[e+p*d,t+p*c]}n(Xx,"intersect");function Qa(e,t,r,i,a,o,s){var l=e-r,d=t-i,c=(s?o:-o)/Ni(l*l+d*d),h=c*d,u=-c*l,p=e+h,g=t+u,y=r+h,m=i+u,x=(p+y)/2,C=(g+m)/2,k=y-p,w=m-g,S=k*k+w*w,B=a-o,_=p*m-y*g,$=(w<0?-1:1)*Ni(Jv(0,B*B*S-_*_)),I=(_*w-k*$)/S,U=(-_*k-w*$)/S,V=(_*w+k*$)/S,A=(-_*k+w*$)/S,W=I-x,O=U-C,F=V-x,M=A-C;return W*W+O*O>F*F+M*M&&(I=V,U=A),{cx:I,cy:U,x01:-h,y01:-u,x11:I*(a/B-1),y11:U*(a/B-1)}}n(Qa,"cornerTangents");function tT(){var e=Hx,t=Ux,r=ee(0),i=null,a=Yx,o=Vx,s=Gx,l=null,d=Kc(c);function c(){var h,u,p=+e.apply(this,arguments),g=+t.apply(this,arguments),y=a.apply(this,arguments)-Kn,m=o.apply(this,arguments)-Kn,x=cp(m-y),C=m>y;if(l||(l=h=d()),g<p&&(u=g,g=p,p=u),!(g>Ce))l.moveTo(0,0);else if(x>$n-Ce)l.moveTo(g*ei(y),g*ir(y)),l.arc(0,0,g,y,m,!C),p>Ce&&(l.moveTo(p*ei(m),p*ir(m)),l.arc(0,0,p,m,y,C));else{var k=y,w=m,S=y,B=m,_=x,$=x,I=s.apply(this,arguments)/2,U=I>Ce&&(i?+i.apply(this,arguments):Ni(p*p+g*g)),V=ml(cp(g-p)/2,+r.apply(this,arguments)),A=V,W=V,O,F;if(U>Ce){var M=mh(U/p*ir(I)),L=mh(U/g*ir(I));(_-=M*2)>Ce?(M*=C?1:-1,S+=M,B-=M):(_=0,S=B=(y+m)/2),($-=L*2)>Ce?(L*=C?1:-1,k+=L,w-=L):($=0,k=w=(y+m)/2)}var D=g*ei(k),R=g*ir(k),rt=p*ei(B),X=p*ir(B);if(V>Ce){var xt=g*ei(w),wt=g*ir(w),_t=p*ei(S),$t=p*ir(S),Ct;if(x<$o)if(Ct=Xx(D,R,_t,$t,xt,wt,rt,X)){var ut=D-Ct[0],bt=R-Ct[1],Dt=xt-Ct[0],K=wt-Ct[1],st=1/ir(zx((ut*Dt+bt*K)/(Ni(ut*ut+bt*bt)*Ni(Dt*Dt+K*K)))/2),mt=Ni(Ct[0]*Ct[0]+Ct[1]*Ct[1]);A=ml(V,(p-mt)/(st-1)),W=ml(V,(g-mt)/(st+1))}else A=W=0}$>Ce?W>Ce?(O=Qa(_t,$t,D,R,g,W,C),F=Qa(xt,wt,rt,X,g,W,C),l.moveTo(O.cx+O.x01,O.cy+O.y01),W<V?l.arc(O.cx,O.cy,W,me(O.y01,O.x01),me(F.y01,F.x01),!C):(l.arc(O.cx,O.cy,W,me(O.y01,O.x01),me(O.y11,O.x11),!C),l.arc(0,0,g,me(O.cy+O.y11,O.cx+O.x11),me(F.cy+F.y11,F.cx+F.x11),!C),l.arc(F.cx,F.cy,W,me(F.y11,F.x11),me(F.y01,F.x01),!C))):(l.moveTo(D,R),l.arc(0,0,g,k,w,!C)):l.moveTo(D,R),!(p>Ce)||!(_>Ce)?l.lineTo(rt,X):A>Ce?(O=Qa(rt,X,xt,wt,p,-A,C),F=Qa(D,R,_t,$t,p,-A,C),l.lineTo(O.cx+O.x01,O.cy+O.y01),A<V?l.arc(O.cx,O.cy,A,me(O.y01,O.x01),me(F.y01,F.x01),!C):(l.arc(O.cx,O.cy,A,me(O.y01,O.x01),me(O.y11,O.x11),!C),l.arc(0,0,p,me(O.cy+O.y11,O.cx+O.x11),me(F.cy+F.y11,F.cx+F.x11),C),l.arc(F.cx,F.cy,A,me(F.y11,F.x11),me(F.y01,F.x01),!C))):l.arc(0,0,p,B,S,C)}if(l.closePath(),h)return l=null,h+""||null}return n(c,"arc"),c.centroid=function(){var h=(+e.apply(this,arguments)+ +t.apply(this,arguments))/2,u=(+a.apply(this,arguments)+ +o.apply(this,arguments))/2-$o/2;return[ei(u)*h,ir(u)*h]},c.innerRadius=function(h){return arguments.length?(e=typeof h=="function"?h:ee(+h),c):e},c.outerRadius=function(h){return arguments.length?(t=typeof h=="function"?h:ee(+h),c):t},c.cornerRadius=function(h){return arguments.length?(r=typeof h=="function"?h:ee(+h),c):r},c.padRadius=function(h){return arguments.length?(i=h==null?null:typeof h=="function"?h:ee(+h),c):i},c.startAngle=function(h){return arguments.length?(a=typeof h=="function"?h:ee(+h),c):a},c.endAngle=function(h){return arguments.length?(o=typeof h=="function"?h:ee(+h),c):o},c.padAngle=function(h){return arguments.length?(s=typeof h=="function"?h:ee(+h),c):s},c.context=function(h){return arguments.length?(l=h??null,c):l},c}n(tT,"default");function td(e){this._context=e}n(td,"Linear");td.prototype={areaStart:n(function(){this._line=0},"areaStart"),areaEnd:n(function(){this._line=NaN},"areaEnd"),lineStart:n(function(){this._point=0},"lineStart"),lineEnd:n(function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},"lineEnd"),point:n(function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}},"point")};function Hi(e){return new td(e)}n(Hi,"default");function ed(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}n(ed,"default");function Zx(e){return e[0]}n(Zx,"x");function Qx(e){return e[1]}n(Qx,"y");function Jx(e,t){var r=ee(!0),i=null,a=Hi,o=null,s=Kc(l);e=typeof e=="function"?e:e===void 0?Zx:ee(e),t=typeof t=="function"?t:t===void 0?Qx:ee(t);function l(d){var c,h=(d=ed(d)).length,u,p=!1,g;for(i??(o=a(g=s())),c=0;c<=h;++c)!(c<h&&r(u=d[c],c,d))===p&&((p=!p)?o.lineStart():o.lineEnd()),p&&o.point(+e(u,c,d),+t(u,c,d));if(g)return o=null,g+""||null}return n(l,"line"),l.x=function(d){return arguments.length?(e=typeof d=="function"?d:ee(+d),l):e},l.y=function(d){return arguments.length?(t=typeof d=="function"?d:ee(+d),l):t},l.defined=function(d){return arguments.length?(r=typeof d=="function"?d:ee(!!d),l):r},l.curve=function(d){return arguments.length?(a=d,i!=null&&(o=a(i)),l):a},l.context=function(d){return arguments.length?(d==null?i=o=null:o=a(i=d),l):i},l}n(Jx,"default");function Kx(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}n(Kx,"default");function tC(e){return e}n(tC,"default");function eT(){var e=tC,t=Kx,r=null,i=ee(0),a=ee($n),o=ee(0);function s(l){var d,c=(l=ed(l)).length,h,u,p=0,g=new Array(c),y=new Array(c),m=+i.apply(this,arguments),x=Math.min($n,Math.max(-$n,a.apply(this,arguments)-m)),C,k=Math.min(Math.abs(x)/c,o.apply(this,arguments)),w=k*(x<0?-1:1),S;for(d=0;d<c;++d)(S=y[g[d]=d]=+e(l[d],d,l))>0&&(p+=S);for(t!=null?g.sort(function(B,_){return t(y[B],y[_])}):r!=null&&g.sort(function(B,_){return r(l[B],l[_])}),d=0,u=p?(x-c*w)/p:0;d<c;++d,m=C)h=g[d],S=y[h],C=m+(S>0?S*u:0)+w,y[h]={data:l[h],index:d,value:S,startAngle:m,endAngle:C,padAngle:k};return y}return n(s,"pie"),s.value=function(l){return arguments.length?(e=typeof l=="function"?l:ee(+l),s):e},s.sortValues=function(l){return arguments.length?(t=l,r=null,s):t},s.sort=function(l){return arguments.length?(r=l,t=null,s):r},s.startAngle=function(l){return arguments.length?(i=typeof l=="function"?l:ee(+l),s):i},s.endAngle=function(l){return arguments.length?(a=typeof l=="function"?l:ee(+l),s):a},s.padAngle=function(l){return arguments.length?(o=typeof l=="function"?l:ee(+l),s):o},s}n(eT,"default");var Gi,eC=(Gi=class{constructor(t,r){this._context=t,this._x=r}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,r){switch(t=+t,r=+r,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,r):this._context.moveTo(t,r);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,r,t,r):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+r)/2,t,this._y0,t,r);break}this._x0=t,this._y0=r}},n(Gi,"Bump"),Gi);function rd(e){return new eC(e,!0)}n(rd,"bumpX");function id(e){return new eC(e,!1)}n(id,"bumpY");function Lo(e,t,r){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+r)/6)}n(Lo,"point");function Yo(e){this._context=e}n(Yo,"Basis");Yo.prototype={areaStart:n(function(){this._line=0},"areaStart"),areaEnd:n(function(){this._line=NaN},"areaEnd"),lineStart:n(function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},"lineStart"),lineEnd:n(function(){switch(this._point){case 3:Lo(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},"lineEnd"),point:n(function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Lo(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t},"point")};function ts(e){return new Yo(e)}n(ts,"default");function Lr(){}n(Lr,"default");function ad(e){this._context=e}n(ad,"BasisClosed");ad.prototype={areaStart:Lr,areaEnd:Lr,lineStart:n(function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},"lineStart"),lineEnd:n(function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}},"lineEnd"),point:n(function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:Lo(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t},"point")};function rC(e){return new ad(e)}n(rC,"default");function od(e){this._context=e}n(od,"BasisOpen");od.prototype={areaStart:n(function(){this._line=0},"areaStart"),areaEnd:n(function(){this._line=NaN},"areaEnd"),lineStart:n(function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},"lineStart"),lineEnd:n(function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},"lineEnd"),point:n(function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+e)/6,i=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,i):this._context.moveTo(r,i);break;case 3:this._point=4;default:Lo(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t},"point")};function iC(e){return new od(e)}n(iC,"default");function nd(e,t){this._basis=new Yo(e),this._beta=t}n(nd,"Bundle");nd.prototype={lineStart:n(function(){this._x=[],this._y=[],this._basis.lineStart()},"lineStart"),lineEnd:n(function(){var e=this._x,t=this._y,r=e.length-1;if(r>0)for(var i=e[0],a=t[0],o=e[r]-i,s=t[r]-a,l=-1,d;++l<=r;)d=l/r,this._basis.point(this._beta*e[l]+(1-this._beta)*(i+d*o),this._beta*t[l]+(1-this._beta)*(a+d*s));this._x=this._y=null,this._basis.lineEnd()},"lineEnd"),point:n(function(e,t){this._x.push(+e),this._y.push(+t)},"point")};var rT=n((function e(t){function r(i){return t===1?new Yo(i):new nd(i,t)}return n(r,"bundle"),r.beta=function(i){return e(+i)},r}),"custom")(.85);function Fo(e,t,r){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-r),e._x2,e._y2)}n(Fo,"point");function Os(e,t){this._context=e,this._k=(1-t)/6}n(Os,"Cardinal");Os.prototype={areaStart:n(function(){this._line=0},"areaStart"),areaEnd:n(function(){this._line=NaN},"areaEnd"),lineStart:n(function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},"lineStart"),lineEnd:n(function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:Fo(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},"lineEnd"),point:n(function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:Fo(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t},"point")};var aC=n((function e(t){function r(i){return new Os(i,t)}return n(r,"cardinal"),r.tension=function(i){return e(+i)},r}),"custom")(0);function Is(e,t){this._context=e,this._k=(1-t)/6}n(Is,"CardinalClosed");Is.prototype={areaStart:Lr,areaEnd:Lr,lineStart:n(function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},"lineStart"),lineEnd:n(function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}},"lineEnd"),point:n(function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:Fo(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t},"point")};var iT=n((function e(t){function r(i){return new Is(i,t)}return n(r,"cardinal"),r.tension=function(i){return e(+i)},r}),"custom")(0);function Ds(e,t){this._context=e,this._k=(1-t)/6}n(Ds,"CardinalOpen");Ds.prototype={areaStart:n(function(){this._line=0},"areaStart"),areaEnd:n(function(){this._line=NaN},"areaEnd"),lineStart:n(function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},"lineStart"),lineEnd:n(function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},"lineEnd"),point:n(function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Fo(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t},"point")};var aT=n((function e(t){function r(i){return new Ds(i,t)}return n(r,"cardinal"),r.tension=function(i){return e(+i)},r}),"custom")(0);function qs(e,t,r){var i=e._x1,a=e._y1,o=e._x2,s=e._y2;if(e._l01_a>Ce){var l=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,d=3*e._l01_a*(e._l01_a+e._l12_a);i=(i*l-e._x0*e._l12_2a+e._x2*e._l01_2a)/d,a=(a*l-e._y0*e._l12_2a+e._y2*e._l01_2a)/d}if(e._l23_a>Ce){var c=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,h=3*e._l23_a*(e._l23_a+e._l12_a);o=(o*c+e._x1*e._l23_2a-t*e._l12_2a)/h,s=(s*c+e._y1*e._l23_2a-r*e._l12_2a)/h}e._context.bezierCurveTo(i,a,o,s,e._x2,e._y2)}n(qs,"point");function sd(e,t){this._context=e,this._alpha=t}n(sd,"CatmullRom");sd.prototype={areaStart:n(function(){this._line=0},"areaStart"),areaEnd:n(function(){this._line=NaN},"areaEnd"),lineStart:n(function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},"lineStart"),lineEnd:n(function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},"lineEnd"),point:n(function(e,t){if(e=+e,t=+t,this._point){var r=this._x2-e,i=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+i*i,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:qs(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t},"point")};var oC=n((function e(t){function r(i){return t?new sd(i,t):new Os(i,0)}return n(r,"catmullRom"),r.alpha=function(i){return e(+i)},r}),"custom")(.5);function ld(e,t){this._context=e,this._alpha=t}n(ld,"CatmullRomClosed");ld.prototype={areaStart:Lr,areaEnd:Lr,lineStart:n(function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},"lineStart"),lineEnd:n(function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}},"lineEnd"),point:n(function(e,t){if(e=+e,t=+t,this._point){var r=this._x2-e,i=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+i*i,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:qs(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t},"point")};var oT=n((function e(t){function r(i){return t?new ld(i,t):new Is(i,0)}return n(r,"catmullRom"),r.alpha=function(i){return e(+i)},r}),"custom")(.5);function hd(e,t){this._context=e,this._alpha=t}n(hd,"CatmullRomOpen");hd.prototype={areaStart:n(function(){this._line=0},"areaStart"),areaEnd:n(function(){this._line=NaN},"areaEnd"),lineStart:n(function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},"lineStart"),lineEnd:n(function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},"lineEnd"),point:n(function(e,t){if(e=+e,t=+t,this._point){var r=this._x2-e,i=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+i*i,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:qs(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t},"point")};var nT=n((function e(t){function r(i){return t?new hd(i,t):new Ds(i,0)}return n(r,"catmullRom"),r.alpha=function(i){return e(+i)},r}),"custom")(.5);function cd(e){this._context=e}n(cd,"LinearClosed");cd.prototype={areaStart:Lr,areaEnd:Lr,lineStart:n(function(){this._point=0},"lineStart"),lineEnd:n(function(){this._point&&this._context.closePath()},"lineEnd"),point:n(function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))},"point")};function nC(e){return new cd(e)}n(nC,"default");function bh(e){return e<0?-1:1}n(bh,"sign");function kh(e,t,r){var i=e._x1-e._x0,a=t-e._x1,o=(e._y1-e._y0)/(i||a<0&&-0),s=(r-e._y1)/(a||i<0&&-0),l=(o*a+s*i)/(i+a);return(bh(o)+bh(s))*Math.min(Math.abs(o),Math.abs(s),.5*Math.abs(l))||0}n(kh,"slope3");function wh(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}n(wh,"slope2");function Ln(e,t,r){var i=e._x0,a=e._y0,o=e._x1,s=e._y1,l=(o-i)/3;e._context.bezierCurveTo(i+l,a+l*t,o-l,s-l*r,o,s)}n(Ln,"point");function Mo(e){this._context=e}n(Mo,"MonotoneX");Mo.prototype={areaStart:n(function(){this._line=0},"areaStart"),areaEnd:n(function(){this._line=NaN},"areaEnd"),lineStart:n(function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},"lineStart"),lineEnd:n(function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Ln(this,this._t0,wh(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},"lineEnd"),point:n(function(e,t){var r=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,Ln(this,wh(this,r=kh(this,e,t)),r);break;default:Ln(this,this._t0,r=kh(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}},"point")};function dd(e){this._context=new ud(e)}n(dd,"MonotoneY");(dd.prototype=Object.create(Mo.prototype)).point=function(e,t){Mo.prototype.point.call(this,t,e)};function ud(e){this._context=e}n(ud,"ReflectContext");ud.prototype={moveTo:n(function(e,t){this._context.moveTo(t,e)},"moveTo"),closePath:n(function(){this._context.closePath()},"closePath"),lineTo:n(function(e,t){this._context.lineTo(t,e)},"lineTo"),bezierCurveTo:n(function(e,t,r,i,a,o){this._context.bezierCurveTo(t,e,i,r,o,a)},"bezierCurveTo")};function pd(e){return new Mo(e)}n(pd,"monotoneX");function gd(e){return new dd(e)}n(gd,"monotoneY");function fd(e){this._context=e}
vendor: 4,454 bytes, line 2
2n(fd,"Natural");fd.prototype={areaStart:n(function(){this._line=0},"areaStart"),areaEnd:n(function(){this._line=NaN},"areaEnd"),lineStart:n(function(){this._x=[],this._y=[]},"lineStart"),lineEnd:n(function(){var e=this._x,t=this._y,r=e.length;if(r)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),r===2)this._context.lineTo(e[1],t[1]);else for(var i=vh(e),a=vh(t),o=0,s=1;s<r;++o,++s)this._context.bezierCurveTo(i[0][o],a[0][o],i[1][o],a[1][o],e[s],t[s]);(this._line||this._line!==0&&r===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},"lineEnd"),point:n(function(e,t){this._x.push(+e),this._y.push(+t)},"point")};function vh(e){var t,r=e.length-1,i,a=new Array(r),o=new Array(r),s=new Array(r);for(a[0]=0,o[0]=2,s[0]=e[0]+2*e[1],t=1;t<r-1;++t)a[t]=1,o[t]=4,s[t]=4*e[t]+2*e[t+1];for(a[r-1]=2,o[r-1]=7,s[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)i=a[t]/o[t-1],o[t]-=i,s[t]-=i*s[t-1];for(a[r-1]=s[r-1]/o[r-1],t=r-2;t>=0;--t)a[t]=(s[t]-a[t+1])/o[t];for(o[r-1]=(e[r]+a[r-1])/2,t=0;t<r-1;++t)o[t]=2*e[t+1]-a[t+1];return[a,o]}n(vh,"controlPoints");function yd(e){return new fd(e)}n(yd,"default");function Vo(e,t){this._context=e,this._t=t}n(Vo,"Step");Vo.prototype={areaStart:n(function(){this._line=0},"areaStart"),areaEnd:n(function(){this._line=NaN},"areaEnd"),lineStart:n(function(){this._x=this._y=NaN,this._point=0},"lineStart"),lineEnd:n(function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},"lineEnd"),point:n(function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}break}this._x=e,this._y=t},"point")};function md(e){return new Vo(e,.5)}n(md,"default");function xd(e){return new Vo(e,0)}n(xd,"stepBefore");function Cd(e){return new Vo(e,1)}n(Cd,"stepAfter");var sT={value:n(()=>{},"value")};function bd(){for(var e=0,t=arguments.length,r={},i;e<t;++e){if(!(i=arguments[e]+"")||i in r||/[\s.]/.test(i))throw new Error("illegal type: "+i);r[i]=[]}return new lo(r)}n(bd,"dispatch");function lo(e){this._=e}n(lo,"Dispatch");function sC(e,t){return e.trim().split(/^|\s+/).map(function(r){var i="",a=r.indexOf(".");if(a>=0&&(i=r.slice(a+1),r=r.slice(0,a)),r&&!t.hasOwnProperty(r))throw new Error("unknown type: "+r);return{type:r,name:i}})}n(sC,"parseTypenames");lo.prototype=bd.prototype={constructor:lo,on:n(function(e,t){var r=this._,i=sC(e+"",r),a,o=-1,s=i.length;if(arguments.length<2){for(;++o<s;)if((a=(e=i[o]).type)&&(a=lC(r[a],e.name)))return a;return}if(t!=null&&typeof t!="function")throw new Error("invalid callback: "+t);for(;++o<s;)if(a=(e=i[o]).type)r[a]=Th(r[a],e.name,t);else if(t==null)for(a in r)r[a]=Th(r[a],e.name,null);return this},"on"),copy:n(function(){var e={},t=this._;for(var r in t)e[r]=t[r].slice();return new lo(e)},"copy"),call:n(function(e,t){if((a=arguments.length-2)>0)for(var r=new Array(a),i=0,a,o;i<a;++i)r[i]=arguments[i+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(o=this._[e],i=0,a=o.length;i<a;++i)o[i].value.apply(t,r)},"call"),apply:n(function(e,t,r){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var i=this._[e],a=0,o=i.length;a<o;++a)i[a].value.apply(t,r)},"apply")};function lC(e,t){for(var r=0,i=e.length,a;r<i;++r)if((a=e[r]).name===t)return a.value}n(lC,"get");function Th(e,t,r){for(var i=0,a=e.length;i<a;++i)if(e[i].name===t){e[i]=sT,e=e.slice(0,i).concat(e.slice(i+1));break}return r!=null&&e.push({name:t,value:r}),e}n(Th,"set");var lT=bd,_a=0,Ja=0,ja=0,hC=1e3,es,Ka,rs=0,pi=0,Ps=0,Ao=typeof performance=="object"&&performance.now?performance:Date,cC=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function Rs(){return pi||(cC(dC),pi=Ao.now()+Ps)}n(Rs,"now");function dC(){pi=0}n(dC,"clearNow");function Eo(){this._call=this._time=this._next=null}n(Eo,"Timer");Eo.prototype=kd.prototype={constructor:Eo,restart:n(function(e,t,r){if(typeof e!="function")throw new TypeError("callback is not a function");r=(r==null?Rs():+r)+(t==null?0:+t),!this._next&&Ka!==this&&(Ka?Ka._next=this:e
vendor: 11,455 bytes, line 2
2s=this,Ka=this),this._call=e,this._time=r,is()},"restart"),stop:n(function(){this._call&&(this._call=null,this._time=1/0,is())},"stop")};function kd(e,t,r){var i=new Eo;return i.restart(e,t,r),i}n(kd,"timer");function uC(){Rs(),++_a;for(var e=es,t;e;)(t=pi-e._time)>=0&&e._call.call(void 0,t),e=e._next;--_a}n(uC,"timerFlush");function Sh(){pi=(rs=Ao.now())+Ps,_a=Ja=0;try{uC()}finally{_a=0,gC(),pi=0}}n(Sh,"wake");function pC(){var e=Ao.now(),t=e-rs;t>hC&&(Ps-=t,rs=e)}n(pC,"poke");function gC(){for(var e,t=es,r,i=1/0;t;)t._call?(i>t._time&&(i=t._time),e=t,t=t._next):(r=t._next,t._next=null,t=e?e._next=r:es=r);Ka=e,is(i)}n(gC,"nap");function is(e){_a||(Ja&&(Ja=clearTimeout(Ja)),e-pi>24?(e<1/0&&(Ja=setTimeout(Sh,e-Ao.now()-Ps)),ja&&(ja=clearInterval(ja))):(ja||(rs=Ao.now(),ja=setInterval(pC,hC)),_a=1,cC(Sh)))}n(is,"sleep");function Bh(e,t,r){var i=new Eo;return t=t==null?0:+t,i.restart(a=>{i.stop(),e(a+t)},t,r),i}n(Bh,"default");var hT=lT("start","end","cancel","interrupt"),cT=[],fC=0,dp=1,_h=2,Fn=3,up=4,$h=5,Mn=6;function Go(e,t,r,i,a,o){var s=e.__transition;if(!s)e.__transition={};else if(r in s)return;yC(e,r,{name:t,index:i,group:a,on:hT,tween:cT,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:fC})}n(Go,"default");function Ns(e,t){var r=We(e,t);if(r.state>fC)throw new Error("too late; already scheduled");return r}n(Ns,"init");function Je(e,t){var r=We(e,t);if(r.state>Fn)throw new Error("too late; already running");return r}n(Je,"set");function We(e,t){var r=e.__transition;if(!r||!(r=r[t]))throw new Error("transition not found");return r}n(We,"get");function yC(e,t,r){var i=e.__transition,a;i[t]=r,r.timer=kd(o,0,r.time);function o(c){r.state=dp,r.timer.restart(s,r.delay,r.time),r.delay<=c&&s(c-r.delay)}n(o,"schedule");function s(c){var h,u,p,g;if(r.state!==dp)return d();for(h in i)if(g=i[h],g.name===r.name){if(g.state===Fn)return Bh(s);g.state===up?(g.state=Mn,g.timer.stop(),g.on.call("interrupt",e,e.__data__,g.index,g.group),delete i[h]):+h<t&&(g.state=Mn,g.timer.stop(),g.on.call("cancel",e,e.__data__,g.index,g.group),delete i[h])}if(Bh(function(){r.state===Fn&&(r.state=up,r.timer.restart(l,r.delay,r.time),l(c))}),r.state=_h,r.on.call("start",e,e.__data__,r.index,r.group),r.state===_h){for(r.state=Fn,a=new Array(p=r.tween.length),h=0,u=-1;h<p;++h)(g=r.tween[h].value.call(e,e.__data__,r.index,r.group))&&(a[++u]=g);a.length=u+1}}n(s,"start");function l(c){for(var h=c<r.duration?r.ease.call(null,c/r.duration):(r.timer.restart(d),r.state=$h,1),u=-1,p=a.length;++u<p;)a[u].call(e,h);r.state===$h&&(r.on.call("end",e,e.__data__,r.index,r.group),d())}n(l,"tick");function d(){r.state=Mn,r.timer.stop(),delete i[t];for(var c in i)return;delete e.__transition}n(d,"stop")}n(yC,"create");function mC(e,t){var r=e.__transition,i,a,o=!0,s;if(r){t=t==null?null:t+"";for(s in r){if((i=r[s]).name!==t){o=!1;continue}a=i.state>_h&&i.state<$h,i.state=Mn,i.timer.stop(),i.on.call(a?"interrupt":"cancel",e,e.__data__,i.index,i.group),delete r[s]}o&&delete e.__transition}}n(mC,"default");function xC(e){return this.each(function(){mC(this,e)})}n(xC,"default");function CC(e,t){var r,i;return function(){var a=Je(this,e),o=a.tween;if(o!==r){i=r=o;for(var s=0,l=i.length;s<l;++s)if(i[s].name===t){i=i.slice(),i.splice(s,1);break}}a.tween=i}}n(CC,"tweenRemove");function bC(e,t,r){var i,a;if(typeof r!="function")throw new Error;return function(){var o=Je(this,e),s=o.tween;if(s!==i){a=(i=s).slice();for(var l={name:t,value:r},d=0,c=a.length;d<c;++d)if(a[d].name===t){a[d]=l;break}d===c&&a.push(l)}o.tween=a}}n(bC,"tweenFunction");function kC(e,t){var r=this._id;if(e+="",arguments.length<2){for(var i=We(this.node(),r).tween,a=0,o=i.length,s;a<o;++a)if((s=i[a]).name===e)return s.value;return null}return this.each((t==null?CC:bC)(r,e,t))}n(kC,"default");function zs(e,t,r){var i=e._id;return e.each(function(){var a=Je(this,i);(a.value||(a.value={}))[t]=r.apply(this,arguments)}),function(a){return We(a,i).value[t]}}n(zs,"tweenValue");function wd(e,t){var r;return(typeof t=="number"?qe:t instanceof Yr?Gn:(r=Yr(t))?(t=r,Gn):Ec)(e,t)}n(wd,"default");function wC(e){return function(){this.removeAttribute(e)}}n(wC,"attrRemove");function vC(e){return function(){this.removeAttributeNS(e.space,e.local)}}n(vC,"attrRemoveNS");function TC(e,t,r){var i,a=r+"",o;return function(){var s=this.getAttribute(e);return s===a?null:s===i?o:o=t(i=s,r)}}n(TC,"attrConstant");function SC(e,t,r){var i,a=r+"",o;return function(){var s=this.getAttributeNS(e.space,e.local);return s===a?null:s===i?o:o=t(i=s,r)}}n(SC,"attrConstantNS");function BC(e,t,r){var i,a,o;return function(){var s,l=r(this),d;return l==null?void this.removeAttribute(e):(s=this.getAttribute(e),d=l+"",s===d?null:s===i&&d===a?o:(a=d,o=t(i=s,l)))}}n(BC,"attrFunction");function _C(e,t,r){var i,a,o;return function(){var s,l=r(this),d;return l==null?void this.removeAttributeNS(e.space,e.local):(s=this.getAttributeNS(e.space,e.local),d=l+"",s===d?null:s===i&&d===a?o:(a=d,o=t(i=s,l)))}}n(_C,"attrFunctionNS");function $C(e,t){var r=zo(e),i=r==="transform"?Ov:wd;return this.attrTween(e,typeof t=="function"?(r.local?_C:BC)(r,i,zs(this,"attr."+e,t)):t==null?(r.local?vC:wC)(r):(r.local?SC:TC)(r,i,t))}n($C,"default");function LC(e,t){return function(r){this.setAttribute(e,t.call(this,r))}}n(LC,"attrInterpolate");function FC(e,t){return function(r){this.setAttributeNS(e.space,e.local,t.call(this,r))}}n(FC,"attrInterpolateNS");function MC(e,t){var r,i;function a(){var o=t.apply(this,arguments);return o!==i&&(r=(i=o)&&FC(e,o)),r}return n(a,"tween"),a._value=t,a}n(MC,"attrTweenNS");function AC(e,t){var r,i;function a(){var o=t.apply(this,arguments);return o!==i&&(r=(i=o)&&LC(e,o)),r}return n(a,"tween"),a._value=t,a}n(AC,"attrTween");function EC(e,t){var r="attr."+e;if(arguments.length<2)return(r=this.tween(r))&&r._value;if(t==null)return this.tween(r,null);if(typeof t!="function")throw new Error;var i=zo(e);return this.tween(r,(i.local?MC:AC)(i,t))}n(EC,"default");function OC(e,t){return function(){Ns(this,e).delay=+t.apply(this,arguments)}}n(OC,"delayFunction");function IC(e,t){return t=+t,function(){Ns(this,e).delay=t}}n(IC,"delayConstant");function DC(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?OC:IC)(t,e)):We(this.node(),t).delay}n(DC,"default");function qC(e,t){return function(){Je(this,e).duration=+t.apply(this,arguments)}}n(qC,"durationFunction");function PC(e,t){return t=+t,function(){Je(this,e).duration=t}}n(PC,"durationConstant");function RC(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?qC:PC)(t,e)):We(this.node(),t).duration}n(RC,"default");function NC(e,t){if(typeof t!="function")throw new Error;return function(){Je(this,e).ease=t}}n(NC,"easeConstant");function zC(e){var t=this._id;return arguments.length?this.each(NC(t,e)):We(this.node(),t).ease}n(zC,"default");function WC(e,t){return function(){var r=t.apply(this,arguments);if(typeof r!="function")throw new Error;Je(this,e).ease=r}}n(WC,"easeVarying");function jC(e){if(typeof e!="function")throw new Error;return this.each(WC(this._id,e))}n(jC,"default");function HC(e){typeof e!="function"&&(e=yc(e));for(var t=this._groups,r=t.length,i=new Array(r),a=0;a<r;++a)for(var o=t[a],s=o.length,l=i[a]=[],d,c=0;c<s;++c)(d=o[c])&&e.call(d,d.__data__,c,o)&&l.push(d);return new lr(i,this._parents,this._name,this._id)}n(HC,"default");function UC(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,r=e._groups,i=t.length,a=r.length,o=Math.min(i,a),s=new Array(i),l=0;l<o;++l)for(var d=t[l],c=r[l],h=d.length,u=s[l]=new Array(h),p,g=0;g<h;++g)(p=d[g]||c[g])&&(u[g]=p);for(;l<i;++l)s[l]=t[l];return new lr(s,this._parents,this._name,this._id)}n(UC,"default");function YC(e){return(e+"").trim().split(/^|\s+/).every(function(t){var r=t.indexOf(".");return r>=0&&(t=t.slice(0,r)),!t||t==="start"})}n(YC,"start");function VC(e,t,r){var i,a,o=YC(t)?Ns:Je;return function(){var s=o(this,e),l=s.on;l!==i&&(a=(i=l).copy()).on(t,r),s.on=a}}n(VC,"onFunction");function GC(e,t){var r=this._id;return arguments.length<2?We(this.node(),r).on.on(e):this.each(VC(r,e,t))}n(GC,"default");function XC(e){return function(){var t=this.parentNode;for(var r in this.__transition)if(+r!==e)return;t&&t.removeChild(this)}}n(XC,"removeFunction");function ZC(){return this.on("end.remove",XC(this._id))}n(ZC,"default");function QC(e){var t=this._name,r=this._id;typeof e!="function"&&(e=$s(e));for(var i=this._groups,a=i.length,o=new Array(a),s=0;s<a;++s)for(var l=i[s],d=l.length,c=o[s]=new Array(d),h,u,p=0;p<d;++p)(h=l[p])&&(u=e.call(h,h.__data__,p,l))&&("__data__"in h&&(u.__data__=h.__data__),c[p]=u,Go(c[p],t,r,p,c,We(h,r)));return new lr(o,this._parents,t,r)}n(QC,"default");function JC(e){var t=this._name,r=this._id;typeof e!="function"&&(e=fc(e));for(var i=this._groups,a=i.length,o=[],s=[],l=0;l<a;++l)for(var d=i[l],c=d.length,h,u=0;u<c;++u)if(h=d[u]){for(var p=e.call(h,h.__data__,u,d),g,y=We(h,r),m=0,x=p.length;m<x;++m)(g=p[m])&&Go(g,t,r,m,p,y);o.push(p),s.push(h)}return new lr(o,s,t,r)}n(JC,"default");var dT=Wo.prototype.constructor;function KC(){return new dT(this._groups,this._parents)}n(KC,"default");function t1(e,t){var r,i,a;return function(){var o=di(this,e),s=(this.style.removeProperty(e),di(this,e));return o===s?null:o===r&&s===i?a:a=t(r=o,i=s)}}n(t1,"styleNull");function vd(e){return function(){this.style.removeProperty(e)}}n(vd,"styleRemove");function e1(e,t,r){var i,a=r+"",o;return function(){var s=di(this,e);return s===a?null:s===i?o:o=t(i=s,r)}}n(e1,"styleConstant");function r1(e,t,r){var i,a,o;return function(){var s=di(this,e),l=r(this),d=l+"";return l??(d=l=(this.style.removeProperty(e),di(this,e))),s===d?null:s===i&&d===a?o:(a=d,o=t(i=s,l))}}n(r1,"styleFunction");function i1(e,t){var r,i,a,o="style."+t,s="end."+o,l;return function(){var d=Je(this,e),c=d.on,h=d.value[o]==null?l||(l=vd(t)):void 0;(c!==r||a!==h)&&(i=(r=c).copy()).on(s,a=h),d.on=i}}n(i1,"styleMaybeRemove");function a1(e,t,r){var i=(e+="")=="transform"?Ev:wd;return t==null?this.styleTween(e,t1(e,i)).on("end.style."+e,vd(e)):typeof t=="function"?this.styleTween(e,r1(e,i,zs(this,"style."+e,t))).each(i1(this._id,e)):this.styleTween(e,e1(e,i,t),r).on("end.style."+e,null)}n(a1,"default");function o1(e,t,r){return function(i){this.style.setProperty(e,t.call(this,i),r)}}n(o1,"styleInterpolate");function n1(e,t,r){var i,a;function o(){var s=t.apply(this,arguments);return s!==a&&(i=(a=s)&&o1(e,s,r)),i}return n(o,"tween"),o._value=t,o}n(n1,"styleTween");function s1(e,t,r){var i="style."+(e+="");if(arguments.length<2)return(i=this.tween(i))&&i._value;if(t==null)return this.tween(i,null);if(typeof t!="function")throw new Error;return this.tween(i,n1(e,t,r??""))}n(s1,"default");function l1(e){return function(){this.textContent=e}}n(l1,"textConstant");function h1(e){return function(){var t=e(this);this.textContent=t??""}}n(h1,"textFunction");function c1(e){return this.tween("text",typeof e=="function"?h1(zs(this,"text",e)):l1(e==null?"":e+""))}n(c1,"default");function d1(e){return function(t){this.textContent=e.call(this,t)}}n(d1,"textInterpolate");function u1(e){var t,r;function i(){var a=e.apply(this,arguments);return a!==r&&(t=(r=a)&&d1(a)),t}return n(i,"tween"),i._value=e,i}n(u1,"textTween");function p1(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!="function")throw new Error;return this.tween(t,u1(e))}n(p1,"default");
vendor: 5,828 bytes, line 2
2function g1(){for(var e=this._name,t=this._id,r=Td(),i=this._groups,a=i.length,o=0;o<a;++o)for(var s=i[o],l=s.length,d,c=0;c<l;++c)if(d=s[c]){var h=We(d,t);Go(d,e,r,c,s,{time:h.time+h.delay+h.duration,delay:0,duration:h.duration,ease:h.ease})}return new lr(i,this._parents,e,r)}n(g1,"default");function f1(){var e,t,r=this,i=r._id,a=r.size();return new Promise(function(o,s){var l={value:s},d={value:n(function(){--a===0&&o()},"value")};r.each(function(){var c=Je(this,i),h=c.on;h!==e&&(t=(e=h).copy(),t._.cancel.push(l),t._.interrupt.push(l),t._.end.push(d)),c.on=t}),a===0&&o()})}n(f1,"default");var uT=0;function lr(e,t,r,i){this._groups=e,this._parents=t,this._name=r,this._id=i}n(lr,"Transition");function y1(e){return Wo().transition(e)}n(y1,"transition");function Td(){return++uT}n(Td,"newId");var kr=Wo.prototype;lr.prototype=y1.prototype={constructor:lr,select:QC,selectAll:JC,selectChild:kr.selectChild,selectChildren:kr.selectChildren,filter:HC,merge:UC,selection:KC,transition:g1,call:kr.call,nodes:kr.nodes,node:kr.node,size:kr.size,empty:kr.empty,each:kr.each,on:GC,attr:$C,attrTween:EC,style:a1,styleTween:s1,text:c1,textTween:p1,remove:ZC,tween:kC,delay:DC,duration:RC,ease:zC,easeVarying:jC,end:f1,[Symbol.iterator]:kr[Symbol.iterator]};function m1(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}n(m1,"cubicInOut");var pT={time:null,delay:0,duration:250,ease:m1};function x1(e,t){for(var r;!(r=e.__transition)||!(r=r[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`);return r}n(x1,"inherit");function C1(e){var t,r;e instanceof lr?(t=e._id,e=e._name):(t=Td(),(r=pT).time=Rs(),e=e==null?null:e+"");for(var i=this._groups,a=i.length,o=0;o<a;++o)for(var s=i[o],l=s.length,d,c=0;c<l;++c)(d=s[c])&&Go(d,e,t,c,s,r||x1(d,t));return new lr(i,this._parents,e,t)}n(C1,"default");Wo.prototype.interrupt=xC;Wo.prototype.transition=C1;function Lh(e){return[+e[0],+e[1]]}n(Lh,"number1");function b1(e){return[Lh(e[0]),Lh(e[1])]}n(b1,"number2");n(function(e,t){return e==null?null:[[+e[0],t[0][1]],[+e[1],t[1][1]]]},"input"),n(function(e){return e&&[e[0][0],e[1][0]]},"output");n(function(e,t){return e==null?null:[[t[0][0],+e[0]],[t[1][0],+e[1]]]},"input"),n(function(e){return e&&[e[0][1],e[1][1]]},"output");n(function(e){return e==null?null:b1(e)},"input"),n(function(e){return e},"output");function gT(e){return{type:e}}n(gT,"type");function si(e,t,r){this.k=e,this.x=t,this.y=r}n(si,"Transform");si.prototype={constructor:si,scale:n(function(e){return e===1?this:new si(this.k*e,this.x,this.y)},"scale"),translate:n(function(e,t){return e===0&t===0?this:new si(this.k,this.x+this.k*e,this.y+this.k*t)},"translate"),apply:n(function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},"apply"),applyX:n(function(e){return e*this.k+this.x},"applyX"),applyY:n(function(e){return e*this.k+this.y},"applyY"),invert:n(function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},"invert"),invertX:n(function(e){return(e-this.x)/this.k},"invertX"),invertY:n(function(e){return(e-this.y)/this.k},"invertY"),rescaleX:n(function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},"rescaleX"),rescaleY:n(function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},"rescaleY"),toString:n(function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"},"toString")};var fT=new si(1,0,0);k1.prototype=si.prototype;function k1(e){for(;!e.__zoom;)if(!(e=e.parentNode))return fT;return e.__zoom}n(k1,"transform");var Fh=n((e,t,{depth:r=2}={})=>{let i={depth:r};if(Array.isArray(t)&&!Array.isArray(e))return t.forEach(a=>Fh(e,a,i)),e;if(Array.isArray(t)&&Array.isArray(e))return t.forEach(a=>{e.includes(a)||e.push(a)}),e;if(e==null||r<=0)return e!=null&&typeof e=="object"&&typeof t=="object"?Object.assign(e,t):t;if(t!=null&&typeof e=="object"&&typeof t=="object"){let a=e;Object.entries(t).forEach(([o,s])=>{if(typeof s=="object"){if(s===null)return;Object.hasOwn(e,o)||Object.defineProperty(e,o,{value:void 0,writable:!0,enumerable:!0,configurable:!0}),a[o]===void 0&&(a[o]=Array.isArray(s)?[]:{}),typeof a[o]=="object"&&(a[o]=Fh(a[o],s,{depth:r-1}))}else typeof a[o]!="object"&&(Object.hasOwn(e,o)?a[o]=s:Object.defineProperty(e,o,{value:s,writable:!0,enumerable:!0,configurable:!0}))})}return e},"assignWithDepth"),he=Fh,An={min:{r:0,g:0,b:0,s:0,l:0,a:0},max:{r:255,g:255,b:255,h:360,s:100,l:100,a:1},clamp:{r:n(e=>e>=255?255:e<0?0:e,"r"),g:n(e=>e>=255?255:e<0?0:e,"g"),b:n(e=>e>=255?255:e<0?0:e,"b"),h:n(e=>e%360,"h"),s:n(e=>e>=100?100:e<0?0:e,"s"),l:n(e=>e>=100?100:e<0?0:e,"l"),a:n(e=>e>=1?1:e<0?0:e,"a")},toLinear:n(e=>{let t=e/255;return e>.03928?Math.pow((t+.055)/1.055,2.4):t/12.92},"toLinear"),hue2rgb:n((e,t,r)=>(r<0&&(r+=1),r>1&&(r-=1),r<.16666666666666666?e+(t-e)*6*r:r<.5?t:r<.6666666666666666?e+(t-e)*(.6666666666666666-r)*6:e),"hue2rgb"),hsl2rgb:n(({h:e,s:t,l:r},i)=>{if(!t)return r*2.55;e/=360,t/=100,r/=100;let a=r<.5?r*(1+t):r+t-r*t,o=2*r-a;switch(i){case"r":return An.hue2rgb(o,a,e+.3333333333333333)*255;case"g":return An.hue2rgb(o,a,e)*255;case"b":return An.hue2rgb(o,a,e-.3333333333333333)*255}},"hsl2rgb"),rgb2hsl:n(({r:e,g:t,b:r},i)=>{e/=255,t/=255,r/=255;let a=Math.max(e,t,r),o=Math.min(e,t,r),s=(a+o)/2;if(i==="l")return s*100;if(a===o)return 0;let l=a-o,d=s>.5?l/(2-a-o):l/(a+o);if(i==="s")return d*100;switch(a){case e:return((t-r)/l+(t<r?6:0))*60;case t:return((r-e)/l+2)*60;case r:return((e-t)/l+4)*60;default:return-1}},"rgb2hsl")},Mt={channel:An,lang:{clamp:n((e,t,r)=>t>r?Math.min(t,Math.max(r,e)):Math.min(r,Math.max(t,e)),"clamp"),round:n(e=>Math.round(e*1e10)/1e10,"round")},unit:{dec2hex:n(e=>{let t=Math.round(e).toString(16);return t.length>1?t:`0${t}`},"dec2hex")}},Dr={};for(let e=0;e<=255;e++)Dr[e]=Mt.unit.dec2hex(e);var be={ALL:0,RGB:1,HSL:2},Xi,yT=(Xi=class{constructor(){this.type=be.ALL}get(){return this.type}
vendor: 11,173 bytes, line 2
2set(t){if(this.type&&this.type!==t)throw new Error("Cannot change both RGB and HSL channels at the same time");this.type=t}reset(){this.type=be.ALL}is(t){return this.type===t}},n(Xi,"Type"),Xi),mT=yT,Zi,xT=(Zi=class{constructor(t,r){this.color=r,this.changed=!1,this.data=t,this.type=new mT}set(t,r){return this.color=r,this.changed=!1,this.data=t,this.type.type=be.ALL,this}_ensureHSL(){let t=this.data,{h:r,s:i,l:a}=t;r===void 0&&(t.h=Mt.channel.rgb2hsl(t,"h")),i===void 0&&(t.s=Mt.channel.rgb2hsl(t,"s")),a===void 0&&(t.l=Mt.channel.rgb2hsl(t,"l"))}_ensureRGB(){let t=this.data,{r,g:i,b:a}=t;r===void 0&&(t.r=Mt.channel.hsl2rgb(t,"r")),i===void 0&&(t.g=Mt.channel.hsl2rgb(t,"g")),a===void 0&&(t.b=Mt.channel.hsl2rgb(t,"b"))}get r(){let t=this.data,r=t.r;return!this.type.is(be.HSL)&&r!==void 0?r:(this._ensureHSL(),Mt.channel.hsl2rgb(t,"r"))}get g(){let t=this.data,r=t.g;return!this.type.is(be.HSL)&&r!==void 0?r:(this._ensureHSL(),Mt.channel.hsl2rgb(t,"g"))}get b(){let t=this.data,r=t.b;return!this.type.is(be.HSL)&&r!==void 0?r:(this._ensureHSL(),Mt.channel.hsl2rgb(t,"b"))}get h(){let t=this.data,r=t.h;return!this.type.is(be.RGB)&&r!==void 0?r:(this._ensureRGB(),Mt.channel.rgb2hsl(t,"h"))}get s(){let t=this.data,r=t.s;return!this.type.is(be.RGB)&&r!==void 0?r:(this._ensureRGB(),Mt.channel.rgb2hsl(t,"s"))}get l(){let t=this.data,r=t.l;return!this.type.is(be.RGB)&&r!==void 0?r:(this._ensureRGB(),Mt.channel.rgb2hsl(t,"l"))}get a(){return this.data.a}set r(t){this.type.set(be.RGB),this.changed=!0,this.data.r=t}set g(t){this.type.set(be.RGB),this.changed=!0,this.data.g=t}set b(t){this.type.set(be.RGB),this.changed=!0,this.data.b=t}set h(t){this.type.set(be.HSL),this.changed=!0,this.data.h=t}set s(t){this.type.set(be.HSL),this.changed=!0,this.data.s=t}set l(t){this.type.set(be.HSL),this.changed=!0,this.data.l=t}set a(t){this.changed=!0,this.data.a=t}},n(Zi,"Channels"),Zi),Ws=new xT({r:0,g:0,b:0,a:0},"transparent"),w1={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:n(e=>{if(e.charCodeAt(0)!==35)return;let t=e.match(w1.re);if(!t)return;let r=t[1],i=parseInt(r,16),a=r.length,o=a%4===0,s=a>4,l=s?1:17,d=s?8:4,c=o?0:-1,h=s?255:15;return Ws.set({r:(i>>d*(c+3)&h)*l,g:(i>>d*(c+2)&h)*l,b:(i>>d*(c+1)&h)*l,a:o?(i&h)*l/255:1},e)},"parse"),stringify:n(e=>{let{r:t,g:r,b:i,a}=e;return a<1?`#${Dr[Math.round(t)]}${Dr[Math.round(r)]}${Dr[Math.round(i)]}${Dr[Math.round(a*255)]}`:`#${Dr[Math.round(t)]}${Dr[Math.round(r)]}${Dr[Math.round(i)]}`},"stringify")},ho=w1,En={re:/^hsla?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(?:deg|grad|rad|turn)?)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(%)?))?\s*?\)$/i,hueRe:/^(.+?)(deg|grad|rad|turn)$/i,_hue2deg:n(e=>{let t=e.match(En.hueRe);if(t){let[,r,i]=t;switch(i){case"grad":return Mt.channel.clamp.h(parseFloat(r)*.9);case"rad":return Mt.channel.clamp.h(parseFloat(r)*180/Math.PI);case"turn":return Mt.channel.clamp.h(parseFloat(r)*360)}}return Mt.channel.clamp.h(parseFloat(e))},"_hue2deg"),parse:n(e=>{let t=e.charCodeAt(0);if(t!==104&&t!==72)return;let r=e.match(En.re);if(!r)return;let[,i,a,o,s,l]=r;return Ws.set({h:En._hue2deg(i),s:Mt.channel.clamp.s(parseFloat(a)),l:Mt.channel.clamp.l(parseFloat(o)),a:s?Mt.channel.clamp.a(l?parseFloat(s)/100:parseFloat(s)):1},e)},"parse"),stringify:n(e=>{let{h:t,s:r,l:i,a}=e;return a<1?`hsla(${Mt.lang.round(t)}, ${Mt.lang.round(r)}%, ${Mt.lang.round(i)}%, ${a})`:`hsl(${Mt.lang.round(t)}, ${Mt.lang.round(r)}%, ${Mt.lang.round(i)}%)`},"stringify")},dn=En,On={colors:{aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyanaqua:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",transparent:"#00000000",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},parse:n(e=>{e=e.toLowerCase();let t=On.colors[e];if(t)return ho.parse(t)},"parse"),stringify:n(e=>{let t=ho.stringify(e);for(let r in On.colors)if(On.colors[r]===t)return r},"stringify")},pp=On,v1={re:/^rgba?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?)))?\s*?\)$/i,parse:n(e=>{let t=e.charCodeAt(0);if(t!==114&&t!==82)return;let r=e.match(v1.re);if(!r)return;let[,i,a,o,s,l,d,c,h]=r;return Ws.set({r:Mt.channel.clamp.r(a?parseFloat(i)*2.55:parseFloat(i)),g:Mt.channel.clamp.g(s?parseFloat(o)*2.55:parseFloat(o)),b:Mt.channel.clamp.b(d?parseFloat(l)*2.55:parseFloat(l)),a:c?Mt.channel.clamp.a(h?parseFloat(c)/100:parseFloat(c)):1},e)},"parse"),stringify:n(e=>{let{r:t,g:r,b:i,a}=e;return a<1?`rgba(${Mt.lang.round(t)}, ${Mt.lang.round(r)}, ${Mt.lang.round(i)}, ${Mt.lang.round(a)})`:`rgb(${Mt.lang.round(t)}, ${Mt.lang.round(r)}, ${Mt.lang.round(i)})`},"stringify")},un=v1,Qe={format:{keyword:pp,hex:ho,rgb:un,rgba:un,hsl:dn,hsla:dn},parse:n(e=>{if(typeof e!="string")return e;let t=ho.parse(e)||un.parse(e)||dn.parse(e)||pp.parse(e);if(t)return t;throw new Error(`Unsupported color format: "${e}"`)},"parse"),stringify:n(e=>!e.changed&&e.color?e.color:e.type.is(be.HSL)||e.data.r===void 0?dn.stringify(e):e.a<1||!Number.isInteger(e.r)||!Number.isInteger(e.g)||!Number.isInteger(e.b)?un.stringify(e):ho.stringify(e),"stringify")},T1=n((e,t)=>{let r=Qe.parse(e);for(let i in t)r[i]=Mt.channel.clamp[i](t[i]);return Qe.stringify(r)},"change"),jr=n((e,t,r=0,i=1)=>{if(typeof e!="number")return T1(e,{a:t});let a=Ws.set({r:Mt.channel.clamp.r(e),g:Mt.channel.clamp.g(t),b:Mt.channel.clamp.b(r),a:Mt.channel.clamp.a(i)});return Qe.stringify(a)},"rgba"),LF=n((e,t)=>Mt.lang.round(Qe.parse(e)[t]),"channel"),CT=n(e=>{let{r:t,g:r,b:i}=Qe.parse(e),a=.2126*Mt.channel.toLinear(t)+.7152*Mt.channel.toLinear(r)+.0722*Mt.channel.toLinear(i);return Mt.lang.round(a)},"luminance"),bT=n(e=>CT(e)>=.5,"isLight"),Ke=n(e=>!bT(e),"isDark"),Sd=n((e,t,r)=>{let i=Qe.parse(e),a=i[t],o=Mt.channel.clamp[t](a+r);return a!==o&&(i[t]=o),Qe.stringify(i)},"adjustChannel"),N=n((e,t)=>Sd(e,"l",t),"lighten"),z=n((e,t)=>Sd(e,"l",-t),"darken"),FF=n((e,t)=>Sd(e,"a",-t),"transparentize"),b=n((e,t)=>{let r=Qe.parse(e),i={};for(let a in t)t[a]&&(i[a]=r[a]+t[a]);return T1(e,i)},"adjust"),kT=n((e,t,r=50)=>{let{r:i,g:a,b:o,a:s}=Qe.parse(e),{r:l,g:d,b:c,a:h}=Qe.parse(t),u=r/100,p=u*2-1,g=s-h,y=((p*g===-1?p:(p+g)/(1+p*g))+1)/2,m=1-y;return jr(i*y+l*m,a*y+d*m,o*y+c*m,s*u+h*(1-u))},"mix"),E=n((e,t=100)=>{let r=Qe.parse(e);return r.r=255-r.r,r.g=255-r.g,r.b=255-r.b,kT(r,e,t)},"invert"),hr="#ffffff",cr="#f2f2f2",Ft=n((e,t)=>t?b(e,{s:-40,l:10}):b(e,{s:-40,l:-10}),"mkBorder"),Qi,wT=(Qi=class{constructor(){this.background="#f4f4f4",this.primaryColor="#fff4dd",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.useGradient=!0,this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,1))"}updateColors(){if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||b(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||b(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||Ft(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||Ft(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||Ft(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||Ft(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||E(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||E(this.tertiaryColor),this.lineColor=this.lineColor||E(this.background),this.arrowheadColor=this.arrowheadColor||E(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackgroun
vendor: 24,701 bytes, line 2
2d=this.edgeLabelBackground||(this.darkMode?z(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||z(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||E(this.lineColor),this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||N(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.vertLineColor=this.vertLineColor||"navy",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.noteFontWeight=this.noteFontWeight||"normal",this.fontWeight=this.fontWeight||"normal",this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.darkMode?(this.rowOdd=this.rowOdd||z(this.mainBkg,5)||"#ffffff",this.rowEven=this.rowEven||z(this.mainBkg,10)):(this.rowOdd=this.rowOdd||N(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||N(this.mainBkg,5)),this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||this.tertiaryColor,this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||b(this.primaryColor,{h:30}),this.cScale4=this.cScale4||b(this.primaryColor,{h:60}),this.cScale5=this.cScale5||b(this.primaryColor,{h:90}),this.cScale6=this.cScale6||b(this.primaryColor,{h:120}),this.cScale7=this.cScale7||b(this.primaryColor,{h:150}),this.cScale8=this.cScale8||b(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||b(this.primaryColor,{h:270}),this.cScale10=this.cScale10||b(this.primaryColor,{h:300}),this.cScale11=this.cScale11||b(this.primaryColor,{h:330}),this.darkMode)for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this["cScale"+r]=z(this["cScale"+r],75);else for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this["cScale"+r]=z(this["cScale"+r],25);for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this["cScaleInv"+r]=this["cScaleInv"+r]||E(this["cScale"+r]);for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this.darkMode?this["cScalePeer"+r]=this["cScalePeer"+r]||N(this["cScale"+r],10):this["cScalePeer"+r]=this["cScalePeer"+r]||z(this["cScale"+r],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this["cScaleLabel"+r]=this["cScaleLabel"+r]||this.scaleLabelColor;let t=this.darkMode?-4:-1;for(let r=0;r<5;r++)this["surface"+r]=this["surface"+r]||b(this.mainBkg,{h:180,s:-15,l:t*(5+r*3)}),this["surfacePeer"+r]=this["surfacePeer"+r]||b(this.mainBkg,{h:180,s:-15,l:t*(8+r*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||b(this.primaryColor,{h:64}),this.fillType3=this.fillType3||b(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||b(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||b(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||b(this.primaryColor,{h:128}),this.fillType7=this.fillType7||b(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||b(this.primaryColor,{l:-10}),this.pie5=this.pie5||b(this.secondaryColor,{l:-10}),this.pie6=this.pie6||b(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||b(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||b(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||b(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||b(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||b(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||b(this.primaryColor,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.venn1=this.venn1??b(this.primaryColor,{l:-30}),this.venn2=this.venn2??b(this.secondaryColor,{l:-30}),this.venn3=this.venn3??b(this.tertiaryColor,{l:-30}),this.venn4=this.venn4??b(this.primaryColor,{h:60,l:-30}),this.venn5=this.venn5??b(this.primaryColor,{h:-60,l:-30}),this.venn6=this.venn6??b(this.secondaryColor,{h:60,l:-30}),this.venn7=this.venn7??b(this.primaryColor,{h:120,l:-30}),this.venn8=this.venn8??b(this.secondaryColor,{h:120,l:-30}),this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.cynefin={domainFontSize:this.cynefin?.domainFontSize||16,itemFontSize:this.cynefin?.itemFontSize||12,boundaryColor:this.cynefin?.boundaryColor||this.lineColor,boundaryWidth:this.cynefin?.boundaryWidth||2,cliffColor:this.cynefin?.cliffColor||"#8B0000",cliffWidth:this.cynefin?.cliffWidth||4,arrowColor:this.cynefin?.arrowColor||this.lineColor,arrowWidth:this.cynefin?.arrowWidth||2,complexBg:this.cynefin?.complexBg||"#E8F5E9",complicatedBg:this.cynefin?.complicatedBg||"#E3F2FD",chaoticBg:this.cynefin?.chaoticBg||"#FBE9E7",clearBg:this.cynefin?.clearBg||"#FFF8E1",confusionBg:this.cynefin?.confusionBg||"#F3E5F5",textColor:this.cynefin?.textColor||this.textColor,labelColor:this.cynefin?.labelColor||this.primaryTextColor},this.radar={axisColor:this.radar?.axisColor||this.lineColor,axisStrokeWidth:this.radar?.axisStrokeWidth||2,axisLabelFontSize:this.radar?.axisLabelFontSize||12,curveOpacity:this.radar?.curveOpacity||.5,curveStrokeWidth:this.radar?.curveStrokeWidth||2,graticuleColor:this.radar?.graticuleColor||"#DEDEDE",graticuleStrokeWidth:this.radar?.graticuleStrokeWidth||1,graticuleOpacity:this.radar?.graticuleOpacity||.3,legendBoxSize:this.radar?.legendBoxSize||12,legendFontSize:this.radar?.legendFontSize||12},this.wardleyEvolutionColor=this.wardleyEvolutionColor||"#dc3545",this.wardley={backgroundColor:this.wardley?.backgroundColor||this.background,axisColor:this.wardley?.axisColor||this.lineColor,axisTextColor:this.wardley?.axisTextColor||this.primaryTextColor,gridColor:this.wardley?.gridColor||this.gridColor,componentFill:this.wardley?.componentFill||this.background,componentStroke:this.wardley?.componentStroke||this.lineColor,componentLabelColor:this.wardley?.componentLabelColor||this.primaryTextColor,linkStroke:this.wardley?.linkStroke||this.lineColor,evolutionStroke:this.wardley?.evolutionStroke||this.wardleyEvolutionColor,annotationStroke:this.wardley?.annotationStroke||this.lineColor,annotationTextColor:this.wardley?.annotationTextColor||this.primaryTextColor,annotationFill:this.wardley?.annotationFill||this.background},this.archEdgeColor=this.archEdgeColor||"#777",this.archEdgeArrowColor=this.archEdgeArrowColor||"#777",this.archEdgeWidth=this.archEdgeWidth||"3",this.archGroupBorderColor=this.archGroupBorderColor||"#000",this.archGroupBorderWidth=this.archGroupBorderWidth||"2px",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||b(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||b(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||b(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||b(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||b(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||b(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Ke(this.quadrant1Fill)?N(this.quadrant1Fill):z(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,dataLabelColor:this.xyChart?.dataLabelColor||this.primaryTextColor,legendTextColor:this.xyChart?.legendTextColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?z(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||b(this.primaryColor,{h:-30}),this.git4=this.git4||b(this.primaryColor,{h:-60}),this.git5=this.git5||b(this.primaryColor,{h:-90}),this.git6=this.git6||b(this.primaryColor,{h:60}),this.git7=this.git7||b(this.primaryColor,{h:120}),this.darkMode?(this.git0=N(this.git0,25),this.git1=N(this.git1,25),this.git2=N(this.git2,25),this.git3=N(this.git3,25),this.git4=N(this.git4,25),this.git5=N(this.git5,25),this.git6=N(this.git6,25),this.git7=N(this.git7,25)):(this.git0=z(this.git0,25),this.git1=z(this.git1,25),this.git2=z(this.git2,25),this.git3=z(this.git3,25),this.git4=z(this.git4,25),this.git5=z(this.git5,25),this.git6=z(this.git6,25),this.git7=z(this.git7,25)),this.gitInv0=this.gitInv0||E(this.git0),this.gitInv1=this.gitInv1||E(this.git1),this.gitInv2=this.gitInv2||E(this.git2),this.gitInv3=this.gitInv3||E(this.git3),this.gitInv4=this.gitInv4||E(this.git4),this.gitInv5=this.gitInv5||E(this.git5),this.gitInv6=this.gitInv6||E(this.git6),this.gitInv7=this.gitInv7||E(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.emUiFill=this.emUiFill||"white",this.emUiStroke=this.emUiStroke||"#dbdada",this.emProcessorFill=this.emProcessorFill||"#edb3f6",this.emProcessorStroke=this.emProcessorStroke||"#b88cbf",this.emReadModelFill=this.emReadModelFill||"#d3f1a2",this.emReadModelStroke=this.emReadModelStroke||"#a3b732",this.emCommandFill=this.emCommandFill||"#bcd6fe",this.emCommandStroke=this.emCommandStroke||"#679ac3",this.emEventFill=this.emEventFill||"#ffb778",this.emEventStroke=this.emEventStroke||"#c19a0f",this.emSwimlaneBackgroundOdd=this.emSwimlaneBackgroundOdd||"rgb(250,250,250)",this.emSwimlaneBackgroundStroke=this.emSwimlaneBackgroundStroke||"rgb(240,240,240)",this.emArrowhead=this.emArrowhead||this.lineColor,this.emRelationStroke=this.emRelationStroke||this.lineColor,this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||hr,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||cr,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor}calculate(t){if(typeof t!="object"){this.updateColors();return}let r=Object.keys(t);r.forEach(i=>{this[i]=t[i]}),this.updateColors(),r.forEach(i=>{this[i]=t[i]})}},n(Qi,"Theme"),Qi),vT=n(e=>{let t=new wT;return t.calculate(e),t},"getThemeVariables"),Ji,TT=(Ji=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=N(this.primaryColor,16),this.tertiaryColor=b(this.primaryColor,{h:-160}),this.primaryBorderColor=E(this.background),this.secondaryBorderColor=Ft(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Ft(this.tertiaryColor,this.darkMode),this.primaryTextColor=E(this.primaryColor),this.secondaryTextColor=E(this.secondaryColor),this.tertiaryTextColor=E(this.tertiaryColor),this.lineColor=E(this.background),this.textColor=E(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=N(E("#323D47"),10),this.lineColor="calculated",this.border1="#ccc",this.border2=jr(255,255,255,.25),this.arrowheadColor="calculated",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#181818",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#F9FFFE",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="calculated",this.activationBkgColor="calculated",this.sequenceNumberColor="black",this.clusterBkg="#302F3D",this.sectionBkgColor=z("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.excludeBkgColor=z(this.sectionBkgColor,10),this.taskBorderColor=jr(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=jr(255,255,255,50),this.activeTaskBkgColor="#81B1DB",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="grey",this.critBorderColor="#E83737",this.critBkgColor="#E83737",this.taskTextDarkColor="calculated",this.todayLineColor="#DB5757",this.vertLineColor="#00BFFF",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.rowOdd=this.rowOdd||N(this.mainBkg,5)||"#ffffff",this.rowEven=this.rowEven||z(this.mainBkg,10),this.labelColor="calculated",this.errorBkgColor="#a44141",this.errorTextColor="#ddd",this.useGradient=!0,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor,this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,1))",this.noteFontWeight=this.noteFontWeight||"normal",this.fontWeight=this.fontWeight||"normal"}updateColors(){this.secondBkg=N(this.mainBkg,16),this.lineColor=this.mainContrastColor,this.arrowheadColor=this.mainContrastColor,this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.edgeLabelBackground=N(this.labelBackground,25),this.actorBorder=this.border1,this.actorBkg=this.mainBkg,this.actorTextColor=this.mainContrastColor,this.actorLineColor=this.actorBorder,this.signalColor=this.mainContrastColor,this.signalTextColor=this.mainContrastColor,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.mainContrastColor,this.loopTextColor=this.mainContrastColor,this.noteBorderColor=this.secondaryBorderColor,this.noteBkgColor=this.secondBkg,this.noteTextColor=this.secondaryTextColor,this.activationBorderColor=this.border1,this.activationBkgColor=this.secondBkg,this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.background,this.taskBkgColor=N(this.mainBkg,23),this.taskTextColor=this.darkTextColor,this.taskTextLightColor=this.mainContrastColor,this.taskTextOutsideColor=this.taskTextLightColor,this.gridColor=this.mainContrastColor,this.doneTaskBkgColor=this.mainContrastColor,this.taskTextDarkColor=E(this.doneTaskBkgColor),this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#555",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#f4f4f4",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=b(this.primaryColor,{h:64}),this.fillType3=b(this.secondaryColor,{h:64}),this.fillType4=b(this.primaryColor,{h:-64}),this.fillType5=b(this.secondaryColor,{h:-64}),this.fillType6=b(this.primaryColor,{h:128}),this.fillType7=b(this.secondaryColor,{h:128}),this.cScale1=this.cScale1||"#0b0000",this.cScale2=this.cScale2||"#4d1037",this.cScale3=this.cScale3||"#3f5258",this.cScale4=this.cScale4||"#4f2f1b",this.cScale5=this.cScale5||"#6e0a0a",this.cScale6=this.cScale6||"#3b0048",this.cScale7=this.cScale7||"#995a01",this.cScale8=this.cScale8||"#154706",this.cScale9=this.cScale9||"#161722",this.cScale10=this.cScale10||"#00296f",this.cScale11=this.cScale11||"#01629c",this.cScale12=this.cScale12||"#010029",this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||b(this.primaryColor,{h:30}),this.cScale4=this.cScale4||b(this.primaryColor,{h:60}),this.cScale5=this.cScale5||b(this.primaryColor,{h:90}),this.cScale6=this.cScale6||b(this.primaryColor,{h:120}),this.cScale7=this.cScale7||b(this.primaryColor,{h:150}),this.cScale8=this.cScale8||b(this.primaryColor,{h:210}),this.cScale9=this.cScale9||b(this.primaryColor,{h:270}),this.cScale10=this.cScale10||b(this.primaryColor,{h:300}),this.cScale11=this.cScale11||b(this.primaryColor,{h:330});for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleInv"+t]=this["cScaleInv"+t]||E(this["cScale"+t]);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScalePeer"+t]=this["cScalePeer"+t]||N(this["cScale"+t],10);for(let t=0;t<5;t++)this["surface"+t]=this["surface"+t]||b(this.mainBkg,{h:30,s:-30,l:-(-10+t*4)}),this["surfacePeer"+t]=this["surfacePeer"+t]||b(this.mainBkg,{h:30,s:-30,l:-(-7+t*4)});this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleLabel"+t]=this["cScaleLabel"+t]||this.scaleLabelColor;for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["pie"+t]=this["cScale"+t];this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.mainContrastColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.mainContrastColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7";for(let t=0;t<8;t++)this["venn"+(t+1)]=this["venn"+(t+1)]??N(this["cScale"+t],30);this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.cynefin={domainFontSize:this.cynefin?.domainFontSize||16,itemFontSize:this.cynefin?.itemFontSize||12,boundaryColor:this.cynefin?.boundaryColor||this.lineColor,boundaryWidth:this.cynefin?.boundaryWidth||2,cliffColor:this.cynefin?.cliffColor||"#FF6B6B",cliffWidth:this.cynefin?.cliffWidth||4,arrowColor:this.cynefin?.arrowColor||this.lineColor,arrowWidth:this.cynefin?.arrowWidth||2,complexBg:this.cynefin?.complexBg||"#1B5E20",complicatedBg:this.cynefin?.complicatedBg||"#0D47A1",chaoticBg:this.cynefin?.chaoticBg||"#BF360C",clearBg:this.cynefin?.clearBg||"#F57F17",confusionBg:this.cynefin?.confusionBg||"#4A148
2C",textColor:this.cynefin?.textColor||this.textColor,labelColor:this.cynefin?.labelColor||this.primaryTextColor},this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||b(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||b(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||b(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||b(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||b(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||b(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Ke(this.quadrant1Fill)?N(this.quadrant1Fill):z(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,dataLabelColor:this.xyChart?.dataLabelColor||this.primaryTextColor,legendTextColor:this.xyChart?.legendTextColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#3498db,#2ecc71,#e74c3c,#f1c40f,#bdc3c7,#ffffff,#34495e,#9b59b6,#1abc9c,#e67e22"},this.packet={startByteColor:this.primaryTextColor,endByteColor:this.primaryTextColor,labelColor:this.primaryTextColor,titleColor:this.primaryTextColor,blockStrokeColor:this.primaryTextColor,blockFillColor:this.background},this.radar={axisColor:this.radar?.axisColor||this.lineColor,axisStrokeWidth:this.radar?.axisStrokeWidth||2,axisLabelFontSize:this.radar?.axisLabelFontSize||12,curveOpacity:this.radar?.curveOpacity||.5,curveStrokeWidth:this.radar?.curveStrokeWidth||2,graticuleColor:this.radar?.graticuleColor||"#DEDEDE",graticuleStrokeWidth:this.radar?.graticuleStrokeWidth||1,graticuleOpacity:this.radar?.graticuleOpacity||.3,legendBoxSize:this.radar?.legendBoxSize||12,legendFontSize:this.radar?.legendFontSize||12},this.wardleyEvolutionColor=this.wardleyEvolutionColor||"#ff6b6b",this.wardley={backgroundColor:this.wardley?.backgroundColor||this.background,axisColor:this.wardley?.axisColor||this.lineColor,axisTextColor:this.wardley?.axisTextColor||this.primaryTextColor,gridColor:this.wardley?.gridColor||this.gridColor,componentFill:this.wardley?.componentFill||this.mainBkg,componentStroke:this.wardley?.componentStroke||this.lineColor,componentLabelColor:this.wardley?.componentLabelColor||this.primaryTextColor,linkStroke:this.wardley?.linkStroke||this.lineColor,evolutionStroke:this.wardley?.evolutionStroke||this.wardleyEvolutionColor,annotationStroke:this.wardley?.annotationStroke||this.lineColor,annotationTextColor:this.wardley?.annotationTextColor||this.primaryTextColor,annotationFill:this.wardley?.annotationFill||this.mainBkg},this.classText=this.primaryTextColor,this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackgroun
vendor: 54,126 bytes, line 2
2d=this.relationLabelBackground||(this.darkMode?z(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=N(this.secondaryColor,20),this.git1=N(this.pie2||this.secondaryColor,20),this.git2=N(this.pie3||this.tertiaryColor,20),this.git3=N(this.pie4||b(this.primaryColor,{h:-30}),20),this.git4=N(this.pie5||b(this.primaryColor,{h:-60}),20),this.git5=N(this.pie6||b(this.primaryColor,{h:-90}),10),this.git6=N(this.pie7||b(this.primaryColor,{h:60}),10),this.git7=N(this.pie8||b(this.primaryColor,{h:120}),20),this.gitInv0=this.gitInv0||E(this.git0),this.gitInv1=this.gitInv1||E(this.git1),this.gitInv2=this.gitInv2||E(this.git2),this.gitInv3=this.gitInv3||E(this.git3),this.gitInv4=this.gitInv4||E(this.git4),this.gitInv5=this.gitInv5||E(this.git5),this.gitInv6=this.gitInv6||E(this.git6),this.gitInv7=this.gitInv7||E(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||E(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||E(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.emUiFill=this.emUiFill||"#2d2d2d",this.emUiStroke=this.emUiStroke||"#555",this.emProcessorFill=this.emProcessorFill||N("#5a3d5c",10),this.emProcessorStroke=this.emProcessorStroke||"#8a6d8c",this.emReadModelFill=this.emReadModelFill||N("#3d5a2d",10),this.emReadModelStroke=this.emReadModelStroke||"#6d8c5c",this.emCommandFill=this.emCommandFill||N("#2d3d5a",10),this.emCommandStroke=this.emCommandStroke||"#5c6d8c",this.emEventFill=this.emEventFill||N("#5a452d",10),this.emEventStroke=this.emEventStroke||"#8c755c",this.emSwimlaneBackgroundOdd=this.emSwimlaneBackgroundOdd||N(this.background,5),this.emSwimlaneBackgroundStroke=this.emSwimlaneBackgroundStroke||N(this.background,12),this.emArrowhead=this.emArrowhead||this.lineColor,this.emRelationStroke=this.emRelationStroke||this.lineColor,this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||N(this.background,12),this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||N(this.background,2),this.nodeBorder=this.nodeBorder||"#999"}calculate(t){if(typeof t!="object"){this.updateColors();return}let r=Object.keys(t);r.forEach(i=>{this[i]=t[i]}),this.updateColors(),r.forEach(i=>{this[i]=t[i]})}},n(Ji,"Theme"),Ji),ST=n(e=>{let t=new TT;return t.calculate(e),t},"getThemeVariables"),Ki,BT=(Ki=class{constructor(){this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=b(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=b(this.primaryColor,{h:-160}),this.primaryBorderColor=Ft(this.primaryColor,this.darkMode),this.secondaryBorderColor=Ft(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Ft(this.tertiaryColor,this.darkMode),this.primaryTextColor=E(this.primaryColor),this.secondaryTextColor=E(this.secondaryColor),this.tertiaryTextColor=E(this.tertiaryColor),this.lineColor=E(this.background),this.textColor=E(this.background),this.background="white",this.mainBkg="#ECECFF",this.secondBkg="#ffffde",this.lineColor="#333333",this.border1="#9370DB",this.primaryBorderColor=Ft(this.primaryColor,this.darkMode),this.border2="#aaaa33",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="rgba(232,232,232, 0.8)",this.textColor="#333",this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.clusterBkg="#FBFBFF",this.sectionBkgColor="calculated",this.altSectionBkgColor="calculated",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="calculated",this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor="calculated",this.taskTextOutsideColor=this.taskTextDarkColor,this.taskTextClickableColor="calculated",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBorderColor="calculated",this.critBkgColor="calculated",this.todayLineColor="calculated",this.vertLineColor="calculated",this.sectionBkgColor=jr(102,102,255,.49),this.altSectionBkgColor="white",this.sectionBkgColor2="#fff400",this.taskBorderColor="#534fbc",this.taskBkgColor="#8a90dd",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="#534fbc",this.activeTaskBkgColor="#bfc7ff",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.vertLineColor="navy",this.noteFontWeight=this.noteFontWeight||"normal",this.fontWeight=this.fontWeight||"normal",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.rowOdd="calculated",this.rowEven="calculated",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.useGradient=!1,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor,this.dropShadow="drop-shadow(1px 2px 2px rgba(185, 185, 185, 1))",this.updateColors()}updateColors(){this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||b(this.primaryColor,{h:30}),this.cScale4=this.cScale4||b(this.primaryColor,{h:60}),this.cScale5=this.cScale5||b(this.primaryColor,{h:90}),this.cScale6=this.cScale6||b(this.primaryColor,{h:120}),this.cScale7=this.cScale7||b(this.primaryColor,{h:150}),this.cScale8=this.cScale8||b(this.primaryColor,{h:210}),this.cScale9=this.cScale9||b(this.primaryColor,{h:270}),this.cScale10=this.cScale10||b(this.primaryColor,{h:300}),this.cScale11=this.cScale11||b(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||z(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||z(this.tertiaryColor,40);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScale"+t]=z(this["cScale"+t],10),this["cScalePeer"+t]=this["cScalePeer"+t]||z(this["cScale"+t],25);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleInv"+t]=this["cScaleInv"+t]||b(this["cScale"+t],{h:180});for(let t=0;t<5;t++)this["surface"+t]=this["surface"+t]||b(this.mainBkg,{h:30,l:-(5+t*5)}),this["surfacePeer"+t]=this["surfacePeer"+t]||b(this.mainBkg,{h:30,l:-(7+t*5)});if(this.scaleLabelColor=this.scaleLabelColor!=="calculated"&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor,this.labelTextColor!=="calculated"){this.cScaleLabel0=this.cScaleLabel0||E(this.labelTextColor),this.cScaleLabel3=this.cScaleLabel3||E(this.labelTextColor);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleLabel"+t]=this["cScaleLabel"+t]||this.labelTextColor}this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.textColor,this.edgeLabelBackground=this.labelBackground,this.actorBorder=this.border1,this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.signalColor=this.textColor,this.signalTextColor=this.textColor,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.actorLineColor=this.actorBorder,this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.rowOdd=this.rowOdd||N(this.primaryColor,75)||"#ffffff",this.rowEven=this.rowEven||N(this.primaryColor,1),this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.specialStateColor=this.lineColor,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=b(this.primaryColor,{h:64}),this.fillType3=b(this.secondaryColor,{h:64}),this.fillType4=b(this.primaryColor,{h:-64}),this.fillType5=b(this.secondaryColor,{h:-64}),this.fillType6=b(this.primaryColor,{h:128}),this.fillType7=b(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||b(this.tertiaryColor,{l:-40}),this.pie4=this.pie4||b(this.primaryColor,{l:-10}),this.pie5=this.pie5||b(this.secondaryColor,{l:-30}),this.pie6=this.pie6||b(this.tertiaryColor,{l:-20}),this.pie7=this.pie7||b(this.primaryColor,{h:60,l:-20}),this.pie8=this.pie8||b(this.primaryColor,{h:-60,l:-40}),this.pie9=this.pie9||b(this.primaryColor,{h:120,l:-40}),this.pie10=this.pie10||b(this.primaryColor,{h:60,l:-40}),this.pie11=this.pie11||b(this.primaryColor,{h:-90,l:-40}),this.pie12=this.pie12||b(this.primaryColor,{h:120,l:-30}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.venn1=this.venn1??b(this.primaryColor,{l:-30}),this.venn2=this.venn2??b(this.secondaryColor,{l:-30}),this.venn3=this.venn3??b(this.tertiaryColor,{l:-40}),this.venn4=this.venn4??b(this.primaryColor,{h:60,l:-30}),this.venn5=this.venn5??b(this.primaryColor,{h:-60,l:-30}),this.venn6=this.venn6??b(this.secondaryColor,{h:60,l:-30}),this.venn7=this.venn7??b(this.primaryColor,{h:120,l:-30}),this.venn8=this.venn8??b(this.secondaryColor,{h:120,l:-30}),this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.cynefin={domainFontSize:this.cynefin?.domainFontSize||16,itemFontSize:this.cynefin?.itemFontSize||12,boundaryColor:this.cynefin?.boundaryColor||this.lineColor,boundaryWidth:this.cynefin?.boundaryWidth||2,cliffColor:this.cynefin?.cliffColor||"#8B0000",cliffWidth:this.cynefin?.cliffWidth||4,arrowColor:this.cynefin?.arrowColor||this.lineColor,arrowWidth:this.cynefin?.arrowWidth||2,complexBg:this.cynefin?.complexBg||"#E8F5E9",complicatedBg:this.cynefin?.complicatedBg||"#E3F2FD",chaoticBg:this.cynefin?.chaoticBg||"#FBE9E7",clearBg:this.cynefin?.clearBg||"#FFF8E1",confusionBg:this.cynefin?.confusionBg||"#F3E5F5",textColor:this.cynefin?.textColor||this.textColor,labelColor:this.cynefin?.labelColor||this.primaryTextColor},this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||b(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||b(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||b(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||b(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||b(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||b(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Ke(this.quadrant1Fill)?N(this.quadrant1Fill):z(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.radar={axisColor:this.radar?.axisColor||this.lineColor,axisStrokeWidth:this.radar?.axisStrokeWidth||2,axisLabelFontSize:this.radar?.axisLabelFontSize||12,curveOpacity:this.radar?.curveOpacity||.5,curveStrokeWidth:this.radar?.curveStrokeWidth||2,graticuleColor:this.radar?.graticuleColor||"#DEDEDE",graticuleStrokeWidth:this.radar?.graticuleStrokeWidth||1,graticuleOpacity:this.radar?.graticuleOpacity||.3,legendBoxSize:this.radar?.legendBoxSize||12,legendFontSize:this.radar?.legendFontSize||12},this.wardleyEvolutionColor=this.wardleyEvolutionColor||"#dc3545",this.wardley={backgroundColor:this.wardley?.backgroundColor||this.background,axisColor:this.wardley?.axisColor||this.lineColor,axisTextColor:this.wardley?.axisTextColor||this.primaryTextColor,gridColor:this.wardley?.gridColor||this.gridColor,componentFill:this.wardley?.componentFill||this.background,componentStroke:this.wardley?.componentStroke||this.lineColor,componentLabelColor:this.wardley?.componentLabelColor||this.primaryTextColor,linkStroke:this.wardley?.linkStroke||this.lineColor,evolutionStroke:this.wardley?.evolutionStroke||this.wardleyEvolutionColor,annotationStroke:this.wardley?.annotationStroke||this.lineColor,annotationTextColor:this.wardley?.annotationTextColor||this.primaryTextColor,annotationFill:this.wardley?.annotationFill||this.background},this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,dataLabelColor:this.xyChart?.dataLabelColor||this.primaryTextColor,legendTextColor:this.xyChart?.legendTextColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#ECECFF,#8493A6,#FFC3A0,#DCDDE1,#B8E994,#D1A36F,#C3CDE6,#FFB6C1,#496078,#F8F3E3"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.labelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||b(this.primaryColor,{h:-30}),this.git4=this.git4||b(this.primaryColor,{h:-60}),this.git5=this.git5||b(this.primaryColor,{h:-90}),this.git6=this.git6||b(this.primaryColor,{h:60}),this.git7=this.git7||b(this.primaryColor,{h:120}),this.darkMode?(this.git0=N(this.git0,25),this.git1=N(this.git1,25),this.git2=N(this.git2,25),this.git3=N(this.git3,25),this.git4=N(this.git4,25),this.git5=N(this.git5,25),this.git6=N(this.git6,25),this.git7=N(this.git7,25)):(this.git0=z(this.git0,25),this.git1=z(this.git1,25),this.git2=z(this.git2,25),this.git3=z(this.git3,25),this.git4=z(this.git4,25),this.git5=z(this.git5,25),this.git6=z(this.git6,25),this.git7=z(this.git7,25)),this.gitInv0=this.gitInv0||z(E(this.git0),25),this.gitInv1=this.gitInv1||E(this.git1),this.gitInv2=this.gitInv2||E(this.git2),this.gitInv3=this.gitInv3||E(this.git3),this.gitInv4=this.gitInv4||E(this.git4),this.gitInv5=this.gitInv5||E(this.git5),this.gitInv6=this.gitInv6||E(this.git6),this.gitInv7=this.gitInv7||E(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||E(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||E(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.emUiFill=this.emUiFill||"white",this.emUiStroke=this.emUiStroke||"#dbdada",this.emProcessorFill=this.emProcessorFill||"#edb3f6",this.emProcessorStroke=this.emProcessorStroke||"#b88cbf",this.emReadModelFill=this.emReadModelFill||"#d3f1a2",this.emReadModelStroke=this.emReadModelStroke||"#a3b732",this.emCommandFill=this.emCommandFill||"#bcd6fe",this.emCommandStroke=this.emCommandStroke||"#679ac3",this.emEventFill=this.emEventFill||"#ffb778",this.emEventStroke=this.emEventStroke||"#c19a0f",this.emSwimlaneBackgroundOdd=this.emSwimlaneBackgroundOdd||"rgb(250,250,250)",this.emSwimlaneBackgroundStroke=this.emSwimlaneBackgroundStroke||"rgb(240,240,240)",this.emArrowhead=this.emArrowhead||this.lineColor,this.emRelationStroke=this.emRelationStroke||this.lineColor,this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||hr,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||cr}calculate(t){if(Object.keys(this).forEach(i=>{this[i]==="calculated"&&(this[i]=void 0)}),typeof t!="object"){this.updateColors();return}let r=Object.keys(t);r.forEach(i=>{this[i]=t[i]}),this.updateColors(),r.forEach(i=>{this[i]=t[i]})}},n(Ki,"Theme"),Ki),_T=n(e=>{let t=new BT;return t.calculate(e),t},"getThemeVariables"),ta,$T=(ta=class{constructor(){this.background="#f4f4f4",this.primaryColor="#cde498",this.secondaryColor="#cdffb2",this.background="white",this.mainBkg="#cde498",this.secondBkg="#cdffb2",this.lineColor="green",this.border1="#13540c",this.border2="#6eaa49",this.arrowheadColor="green",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.tertiaryColor=N("#cde498",10),this.primaryBorderColor=Ft(this.primaryColor,this.darkMode),this.secondaryBorderColor=Ft(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Ft(this.tertiaryColor,this.darkMode),this.primaryTextColor=E(this.primaryColor),this.secondaryTextColor=E(this.secondaryColor),this.tertiaryTextColor=E(this.primaryColor),this.lineColor=E(this.background),this.textColor=E(this.background),this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#333",this.edgeLabelBackground="#e8e8e8",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="calculated",this.signalColor="#333",this.signalTextColor="#333",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="#326932",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="#6eaa49",this.altSectionBkgColor="white",this.sectionBkgColor2="#6eaa49",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="#487e3a",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.vertLineColor="#00BFFF",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.noteFontWeight="normal",this.fontWeight="normal",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.useGradient=!0,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor,this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,0.5))"}updateColors(){this.actorBorder=z(this.mainBkg,20),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.actorLineColor=this.actorBorder,this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||b(this.primaryColor,{h:30}),this.cScale4=this.cScale4||b(this.primaryColor,{h:60}),this.cScale5=this.cScale5||b(this.primaryColor,{h:90}),this.cScale6=this.cScale6||b(this.primaryColor,{h:120}),this.cScale7=this.cScale7||b(this.primaryColor,{h:150}),this.cScale8=this.cScale8||b(this.primaryColor,{h:210}),this.cScale9=this.cScale9||b(this.primaryColor,{h:270}),this.cScale10=this.cScale10||b(this.primaryColor,{h:300}),this.cScale11=this.cScale11||b(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||z(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||z(this.tertiaryColor,40);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScale"+t]=z(this["cScale"+t],10),this["cScalePeer"+t]=this["cScalePeer"+t]||z(this["cScale"+t],25);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleInv"+t]=this["cScaleInv"+t]||b(this["cScale"+t],{h:180});this.scaleLabelColor=this.scaleLabelColor!=="calculated"&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor;for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleLabel"+t]=this["cScaleLabel"+t]||this.scaleLabelColor;for(let t=0;t<5;t++)this["surface"+t]=this["surface"+t]||b(this.mainBkg,{h:30,s:-30,l:-(5+t*5)}),this["surfacePeer"+t]=this["surfacePeer"+t]||b(this.mainBkg,{h:30,s:-30,l:-(8+t*5)});this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.taskBorderColor=this.border1,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=this.mainBkg,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.rowOdd=this.rowOdd||N(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||N(this.mainBkg,20),this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor=this.lineColor,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=b(this.primaryColor,{h:64}),this.fillType3=b(this.secondaryColor,{h:64}),this.fillType4=b(this.primaryColor,{h:-64}),this.fillType5=b(this.secondaryColor,{h:-64}),this.fillType6=b(this.primaryColor,{h:128}),this.fillType7=b(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||b(this.primaryColor,{l:-30}),this.pie5=this.pie5||b(this.secondaryColor,{l:-30}),this.pie6=this.pie6||b(this.tertiaryColor,{h:40,l:-40}),this.pie7=this.pie7||b(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||b(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||b(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||b(this.primaryColor,{h:60,l:-50}),this.pie11=this.pie11||b(this.primaryColor,{h:-60,l:-50}),this.pie12=this.pie12||b(this.primaryColor,{h:120,l:-50}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.venn1=this.venn1??b(this.primaryColor,{l:-30}),this.venn2=this.venn2??b(this.secondaryColor,{l:-30}),this.venn3=this.venn3??b(this.tertiaryColor,{l:-30}),this.venn4=this.venn4??b(this.primaryColor,{h:60,l:-30}),this.venn5=this.venn5??b(this.primaryColor,{h:-60,l:-30}),this.venn6=this.venn6??b(this.secondaryColor,{h:60,l:-30}),this.venn7=this.venn7??b(this.primaryColor,{h:120,l:-30}),this.venn8=this.venn8??b(this.secondaryColor,{h:120,l:-30}),this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.cynefin={domainFontSize:this.cynefin?.domainFontSize||16,itemFontSize:this.cynefin?.itemFontSize||12,boundaryColor:this.cynefin?.boundaryColor||this.lineColor,boundaryWidth:this.cynefin?.boundaryWidth||2,cliffColor:this.cynefin?.cliffColor||"#8B4513",cliffWidth:this.cynefin?.cliffWidth||4,arrowColor:this.cynefin?.arrowColor||this.lineColor,arrowWidth:this.cynefin?.arrowWidth||2,complexBg:this.cynefin?.complexBg||"#C8E6C9",complicatedBg:this.cynefin?.complicatedBg||"#DCEDC8",chaoticBg:this.cynefin?.chaoticBg||"#FFE0B2",clearBg:this.cynefin?.clearBg||"#FFF9C4",confusionBg:this.cynefin?.confusionBg||"#D7CCC8",textColor:this.cynefin?.textColor||this.textColor,labelColor:this.cynefin?.labelColor||this.primaryTextColor},this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||b(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||b(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||b(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||b(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||b(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||b(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Ke(this.quadrant1Fill)?N(this.quadrant1Fill):z(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.packet={startByteColor:this.primaryTextColor,endByteColor:this.primaryTextColor,labelColor:this.primaryTextColor,titleColor:this.primaryTextColor,blockStrokeColor:this.primaryTextColor,blockFillColor:this.mainBkg},this.radar={axisColor:this.radar?.axisColor||this.lineColor,axisStrokeWidth:this.radar?.axisStrokeWidth||2,axisLabelFontSize:this.radar?.axisLabelFontSize||12,curveOpacity:this.radar?.curveOpacity||.5,curveStrokeWidth:this.radar?.curveStrokeWidth||2,graticuleColor:this.radar?.graticuleColor||"#DEDEDE",graticuleStrokeWidth:this.radar?.graticuleStrokeWidth||1,graticuleOpacity:this.radar?.graticuleOpacity||.3,legendBoxSize:this.radar?.legendBoxSize||12,legendFontSize:this.radar?.legendFontSize||12},this.wardleyEvolutionColor=this.wardleyEvolutionColor||"#dc3545",this.wardley={backgroundColor:this.wardley?.backgroundColor||this.background,axisColor:this.wardley?.axisColor||this.lineColor,axisTextColor:this.wardley?.axisTextColor||this.primaryTextColor,gridColor:this.wardley?.gridColor||this.gridColor,componentFill:this.wardley?.componentFill||this.background,componentStroke:this.wardley?.componentStroke||this.lineColor,componentLabelColor:this.wardley?.componentLabelColor||this.primaryTextColor,linkStroke:this.wardley?.linkStroke||this.lineColor,evolutionStroke:this.wardley?.evolutionStroke||this.wardleyEvolutionColor,annotationStroke:this.wardley?.annotationStroke||this.lineColor,annotationTextColor:this.wardley?.annotationTextColor||this.primaryTextColor,annotationFill:this.wardley?.annotationFill||this.background},this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,dataLabelColor:this.xyChart?.dataLabelColor||this.primaryTextColor,legendTextColor:this.xyChart?.legendTextColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#CDE498,#FF6B6B,#A0D2DB,#D7BDE2,#F0F0F0,#FFC3A0,#7FD8BE,#FF9A8B,#FAF3E0,#FFF176"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.edgeLabelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||b(this.primaryColor,{h:-30}),this.git4=this.git4||b(this.primaryColor,{h:-60}),this.git5=this.git5||b(this.primaryColor,{h:-90}),this.git6=this.git6||b(this.primaryColor,{h:60}),this.git7=this.git7||b(this.primaryColor,{h:120}),this.darkMode?(this.git0=N(this.git0,25),this.git1=N(this.git1,25),this.git2=N(this.git2,25),this.git3=N(this.git3,25),this.git4=N(this.git4,25),this.git5=N(this.git5,25),this.git6=N(this.git6,25),this.git7=N(this.git7,25)):(this.git0=z(this.git0,25),this.git1=z(this.git1,25),this.git2=z(this.git2,25),this.git3=z(this.git3,25),this.git4=z(this.git4,25),this.git5=z(this.git5,25),this.git6=z(this.git6,25),this.git7=z(this.git7,25)),this.gitInv0=this.gitInv0||E(this.git0),this.gitInv1=this.gitInv1||E(this.git1),this.gitInv2=this.gitInv2||E(this.git2),this.gitInv3=this.gitInv3||E(this.git3),this.gitInv4=this.gitInv4||E(this.git4),this.gitInv5=this.gitInv5||E(this.git5),this.gitInv6=this.gitInv6||E(this.git6),this.gitInv7=this.gitInv7||E(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||E(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||E(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.emUiFill=this.emUiFill||"white",this.emUiStroke=this.emUiStroke||"#dbdada",this.emProcessorFill=this.emProcessorFill||"#edb3f6",this.emProcessorStroke=this.emProcessorStroke||"#b88cbf",this.emReadModelFill=this.emReadModelFill||"#d3f1a2",this.emReadModelStroke=this.emReadModelStroke||"#a3b732",this.emCommandFill=this.emCommandFill||"#bcd6fe",this.emCommandStroke=this.emCommandStroke||"#679ac3",this.emEventFill=this.emEventFill||"#ffb778",this.emEventStroke=this.emEventStroke||"#c19a0f",this.emSwimlaneBackgroundOdd=this.emSwimlaneBackgroundOdd||"rgb(250,250,250)",this.emSwimlaneBackgroundStroke=this.emSwimlaneBackgroundStroke||"rgb(240,240,240)",this.emArrowhead=this.emArrowhead||this.lineColor,this.emRelationStroke=this.emRelationStroke||this.lineColor,this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||hr,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||cr}calculate(t){if(typeof t!="object"){this.updateColors();return}let r=Object.keys(t);r.forEach(i=>{this[i]=t[i]}),this.updateColors(),r.forEach(i=>{this[i]=t[i]})}},n(ta,"Theme"),ta),LT=n(e=>{let t=new $T;return t.calculate(e),t},"getThemeVariables"),ea,FT=(ea=class{constructor(){this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=N(this.contrast,55),this.background="#ffffff",this.tertiaryColor=b(this.primaryColor,{h:-160}),this.primaryBorderColor=Ft(this.primaryColor,this.darkMode),this.secondaryBorderColor=Ft(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Ft(this.tertiaryColor,this.darkMode),this.primaryTextColor=E(this.primaryColor),this.secondaryTextColor=E(this.secondaryColor),this.tertiaryTextColor=E(this.tertiaryColor),this.lineColor=E(this.background),this.textColor=E(this.background),this.mainBkg="#eee",this.secondBkg="calculated",this.lineColor="#666",this.border1="#999",this.border2="calculated",this.note="#ffa",this.text="#333",this.critical="#d42",this.done="#bbb",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="white",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor=this.actorBorder,this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="calculated",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="white",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBkgColor="calculated",this.critBorderColor="calculated",this.todayLineColor="calculated",this.vertLineColor="calculated",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.noteFontWeight="normal",this.fontWeight="normal",this.rowOdd=this.rowOdd||N(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||"#f4f4f4",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.useGradient=!0,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor,this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,1))"}updateColors(){this.secondBkg=N(this.contrast,55),this.border2=this.contrast,this.actorBorder=N(this.border1,23),this.actorBkg=this.mainBkg,this.actorTextColor=this.text,this.actorLineColor=this.actorBorder,this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,this.signalColor=this.text,this.signalTextColor=this.text,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.text,this.loopTextColor=this.text,this.noteBorderColor="#999",this.noteBkgColor="#666",this.noteTextColor="#fff",this.cScale0=this.cScale0||"#555",this.cScale1=this.cScale1||"#F4F4F4",this.cScale2=this.cScale2||"#555",this.cScale3=this.cScale3||"#BBB",this.cScale4=this.cScale4||"#777",this.cScale5=this.cScale5||"#999",this.cScale6=this.cScale6||"#DDD",this.cScale7=this.cScale7||"#FFF",this.cScale8=this.cScale8||"#DDD",this.cScale9=this.cScale9||"#BBB",this.cScale10=this.cScale10||"#999",this.cScale11=this.cScale11||"#777";for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleInv"+t]=this["cScaleInv"+t]||E(this["cScale"+t]);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this.darkMode?this["cScalePeer"+t]=this["cScalePeer"+t]||N(this["cScale"+t],10):this["cScalePeer"+t]=this["cScalePeer"+t]||z(this["cScale"+t],10);this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor),this.cScaleLabel0=this.cScaleLabel0||this.cScale1,this.cScaleLabel2=this.cScaleLabel2||this.cScale1;for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleLabel"+t]=this["cScaleLabel"+t]||this.scaleLabelColor;for(let t=0;t<5;t++)this["surface"+t]=this["surface"+t]||b(this.mainBkg,{l:-(5+t*5)}),this["surfacePeer"+t]=this["surfacePeer"+t]||b(this.mainBkg,{l:-(8+t*5)});this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.text,this.sectionBkgColor=N(this.contrast,30),this.sectionBkgColor2=N(this.contrast,30),this.taskBorderColor=z(this.contrast,10),this.taskBkgColor=this.contrast,this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor=this.text,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=this.mainBkg,this.gridColor=N(this.border1,30),this.doneTaskBkgColor=this.done,this.doneTaskBorderColor=this.lineColor,this.critBkgColor=this.critical,this.critBorderColor=z(this.critBkgColor,10),this.todayLineColor=this.critBkgColor,this.vertLineColor=this.critBkgColor,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.transitionColor=this.transitionColor||"#000",this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f4f4f4",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.stateBorder=this.stateBorder||"#000",this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#222",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=b(this.primaryColor,{h:64}),this.fillType3=b(this.secondaryColor,{h:64}),this.fillType4=b(this.primaryColor,{h:-64}),this.fillType5=b(this.secondaryColor,{h:-64}),this.fillType6=b(this.primaryColor,{h:128}),this.fillType7=b(this.secondaryColor,{h:128});for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["pie"+t]=this["cScale"+t];this.pie12=this.pie0,this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7";for(let t=0;t<8;t++)this["venn"+(t+1)]=this["venn"+(t+1)]??this["cScale"+t];this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.cynefin={domainFontSize:this.cynefin?.domainFontSize||16,itemFontSize:this.cynefin?.itemFontSize||12,boundaryColor:this.cynefin?.boundaryColor||this.lineColor,boundaryWidth:this.cynefin?.boundaryWidth||2,cliffColor:this.cynefin?.cliffColor||"#8B0000",cliffWidth:this.cynefin?.cliffWidth||4,arrowColor:this.cynefin?.arrowColor||this.lineColor,arrowWidth:this.cynefin?.arrowWidth||2,complexBg:this.cynefin?.complexBg||"#E8F5E9",complicatedBg:this.cynefin?.complicatedBg||"#E3F2FD",chaoticBg:this.cynefin?.chaoticBg||"#FBE9E7",clearBg:this.cynefin?.clearBg||"#FFF8E1",confusionBg:this.cynefin?.confusionBg||"#F3E5F5",textColor:this.cynefin?.textColor||this.textColor,labelColor:this.cynefin?.labelColor||this.primaryTextColor},this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||b(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||b(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||b(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||b(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||b(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||b(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Ke(this.quadrant1Fill)?N(this.quadrant1Fill):z(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,dataLabelColor:this.xyChart?.dataLabelColor||this.primaryTextColor,legendTextColor:this.xyChart?.legendTextColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#EEE,#6BB8E4,#8ACB88,#C7ACD6,#E8DCC2,#FFB2A8,#FFF380,#7E8D91,#FFD8B1,#FAF3E0"},this.radar={axisColor:this.radar?.axisColor||this.lineColor,axisStrokeWidth:this.radar?.axisStrokeWidth||2,axisLabelFontSize:this.radar?.axisLabelFontSize||12,curveOpacity:this.radar?.curveOpacity||.5,curveStrokeWidth:this.radar?.curveStrokeWidth||2,graticuleColor:this.radar?.graticuleColor||"#DEDEDE",graticuleStrokeWidth:this.radar?.graticuleStrokeWidth||1,graticuleOpacity:this.radar?.graticuleOpacity||.3,legendBoxSize:this.radar?.legendBoxSize||12,legendFontSize:this.radar?.legendFontSize||12},this.wardleyEvolutionColor=this.wardleyEvolutionColor||"#dc3545",this.wardley={backgroundColor:this.wardley?.backgroundColor||this.background,axisColor:this.wardley?.axisColor||this.lineColor,axisTextColor:this.wardley?.axisTextColor||this.primaryTextColor,gridColor:this.wardley?.gridColor||this.gridColor,componentFill:this.wardley?.componentFill||this.background,componentStroke:this.wardley?.componentStroke||this.lineColor,componentLabelColor:this.wardley?.componentLabelColor||this.primaryTextColor,linkStroke:this.wardley?.linkStroke||this.lineColor,evolutionStroke:this.wardley?.evolutionStroke||this.wardleyEvolutionColor,annotationStroke:this.wardley?.annotationStroke||this.lineColor,annotationTextColor:this.wardley?.annotationTextColor||this.primaryTextColor,annotationFill:this.wardley?.annotationFill||this.background},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.edgeLabelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=z(this.pie1,25)||this.primaryColor,this.git1=this.pie2||this.secondaryColor,this.git2=this.pie3||this.tertiaryColor,this.git3=this.pie4||b(this.primaryColor,{h:-30}),this.git4=this.pie5||b(this.primaryColor,{h:-60}),this.git5=this.pie6||b(this.primaryColor,{h:-90}),this.git6=this.pie7||b(this.primaryColor,{h:60}),this.git7=this.pie8||b(this.primaryColor,{h:120}),this.gitInv0=this.gitInv0||E(this.git0),this.gitInv1=this.gitInv1||E(this.git1),this.gitInv2=this.gitInv2||E(this.git2),this.gitInv3=this.gitInv3||E(this.git3),this.gitInv4=this.gitInv4||E(this.git4),this.gitInv5=this.gitInv5||E(this.git5),this.gitInv6=this.gitInv6||E(this.git6),this.gitInv7=this.gitInv7||E(this.git7),this.branchLabelColor=this.branchLabelColor||this.labelTextColor,this.gitBranchLabel0=this.branchLabelColor,this.gitBranchLabel1="white",this.gitBranchLabel2=this.branchLabelColor,this.gitBranchLabel3="white",this.gitBranchLabel4=this.branchLabelColor,this.gitBranchLabel5=this.branchLabelColor,this.gitBranchLabel6=this.branchLabelColor,this.gitBranchLabel7=this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.emUiFill=this.emUiFill||"white",this.emUiStroke=this.emUiStroke||"#dbdada",this.emProcessorFill=this.emProcessorFill||"#edb3f6",this.emProcessorStroke=this.emProcessorStroke||"#b88cbf",this.emReadModelFill=this.emReadModelFill||"#d3f1a2",this.emReadModelStroke=this.emReadModelStroke||"#a3b732",this.emCommandFill=this.emCommandFill||"#bcd6fe",this.emCommandStroke=this.emCommandStroke||"#679ac3",this.emEventFill=this.emEventFill||"#ffb778",this.emEventStroke=this.emEventStroke||"#c19a0f",this.emSwimlaneBackgroundOdd=this.emSwimlaneBackgroundOdd||"rgb(250,250,250)",this.emSwimlaneBackgroundStroke=this.emSwimlaneBackgroundStroke||"rgb(240,240,240)",this.emArrowhead=this.emArrowhead||this.lineColor,this.emRelationStroke=this.emRelationStroke||this.lineColor,this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||hr,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||cr}calculate(t){if(typeof t!="object"){this.updateColors();return}let r=Object.keys(t);r.forEach(i=>{this[i]=t[i]}),this.updateColors(),r.forEach(i=>{this[i]=t[i]})}},n(ea,"Theme"),ea),MT=n(e=>{let t=new FT;return t.calculate(e),t},"getThemeVariables"),ra,AT=(ra=class{constructor(){this.background="#ffffff",this.primaryColor="#cccccc",this.mainBkg="#ffffff",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.radius=3,this.strokeWidth=2,this.primaryBorderColor=Ft(this.primaryColor,this.darkMode),this.fontFamily="arial, sans-serif",this.fontSize="14px",this.nodeBorder="#000000",this.stateBorder="#000000",this.useGradient=!0,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="drop-shadow( 0px 1px 2px rgba(0, 0, 0, 0.25));",this.tertiaryColor="#ffffff",this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.noteFontWeight="normal",this.fontWeight="normal"}updateColors(){this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||b(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||b(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||Ft(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||Ft(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||Ft(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||Ft(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||E(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||E(this.tertiaryColor),this.lineColor=this.lineColor||E(this.background),this.arrowheadColor=this.arrowheadColor||E(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackgroun
vendor: 7,146 bytes, line 2
2d=this.edgeLabelBackground||(this.darkMode?z(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||z(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||E(this.lineColor),this.rectBkgColor=this.rectBkgColor||this.tertiaryColor;let t="#ECECFE",r="#E9E9F1",i=b(t,{h:180,l:5});if(this.sectionBkgColor=this.sectionBkgColor||i,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||r,this.sectionBkgColor2=this.sectionBkgColor2||t,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||t,this.activeTaskBorderColor=this.activeTaskBorderColor||t,this.activeTaskBkgColor=this.activeTaskBkgColor||N(t,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||t,this.cScale1=this.cScale1||r,this.cScale2=this.cScale2||i,this.cScale3=this.cScale3||b(t,{h:30}),this.cScale4=this.cScale4||b(t,{h:60}),this.cScale5=this.cScale5||b(t,{h:90}),this.cScale6=this.cScale6||b(t,{h:120}),this.cScale7=this.cScale7||b(t,{h:150}),this.cScale8=this.cScale8||b(t,{h:210,l:150}),this.cScale9=this.cScale9||b(t,{h:270}),this.cScale10=this.cScale10||b(t,{h:300}),this.cScale11=this.cScale11||b(t,{h:330}),this.darkMode)for(let o=0;o<this.THEME_COLOR_LIMIT;o++)this["cScale"+o]=z(this["cScale"+o],75);else for(let o=0;o<this.THEME_COLOR_LIMIT;o++)this["cScale"+o]=z(this["cScale"+o],25);for(let o=0;o<this.THEME_COLOR_LIMIT;o++)this["cScaleInv"+o]=this["cScaleInv"+o]||E(this["cScale"+o]);for(let o=0;o<this.THEME_COLOR_LIMIT;o++)this.darkMode?this["cScalePeer"+o]=this["cScalePeer"+o]||N(this["cScale"+o],10):this["cScalePeer"+o]=this["cScalePeer"+o]||z(this["cScale"+o],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let o=0;o<this.THEME_COLOR_LIMIT;o++)this["cScaleLabel"+o]=this["cScaleLabel"+o]||this.scaleLabelColor;let a=this.darkMode?-4:-1;for(let o=0;o<5;o++)this["surface"+o]=this["surface"+o]||b(this.mainBkg,{h:180,s:-15,l:a*(5+o*3)}),this["surfacePeer"+o]=this["surfacePeer"+o]||b(this.mainBkg,{h:180,s:-15,l:a*(8+o*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||t,this.fillType1=this.fillType1||r,this.fillType2=this.fillType2||b(t,{h:64}),this.fillType3=this.fillType3||b(r,{h:64}),this.fillType4=this.fillType4||b(t,{h:-64}),this.fillType5=this.fillType5||b(r,{h:-64}),this.fillType6=this.fillType6||b(t,{h:128}),this.fillType7=this.fillType7||b(r,{h:128}),this.pie1=this.pie1||t,this.pie2=this.pie2||r,this.pie3=this.pie3||i,this.pie4=this.pie4||b(t,{l:-10}),this.pie5=this.pie5||b(r,{l:-10}),this.pie6=this.pie6||b(i,{l:-10}),this.pie7=this.pie7||b(t,{h:60,l:-10}),this.pie8=this.pie8||b(t,{h:-60,l:-10}),this.pie9=this.pie9||b(t,{h:120,l:0}),this.pie10=this.pie10||b(t,{h:60,l:-20}),this.pie11=this.pie11||b(t,{h:-60,l:-20}),this.pie12=this.pie12||b(t,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||t,this.quadrant2Fill=this.quadrant2Fill||b(t,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||b(t,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||b(t,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||b(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||b(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||b(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Ke(this.quadrant1Fill)?N(this.quadrant1Fill):z(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExter
vendor: 20,911 bytes, line 2
2nalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,legendTextColor:this.xyChart?.legendTextColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||t,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?z(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||t,this.git1=this.git1||r,this.git2=this.git2||i,this.git3=this.git3||b(t,{h:-30}),this.git4=this.git4||b(t,{h:-60}),this.git5=this.git5||b(t,{h:-90}),this.git6=this.git6||b(t,{h:60}),this.git7=this.git7||b(t,{h:120}),this.darkMode?(this.git0=N(this.git0,25),this.git1=N(this.git1,25),this.git2=N(this.git2,25),this.git3=N(this.git3,25),this.git4=N(this.git4,25),this.git5=N(this.git5,25),this.git6=N(this.git6,25),this.git7=N(this.git7,25)):(this.git0=z(this.git0,25),this.git1=z(this.git1,25),this.git2=z(this.git2,25),this.git3=z(this.git3,25),this.git4=z(this.git4,25),this.git5=z(this.git5,25),this.git6=z(this.git6,25),this.git7=z(this.git7,25)),this.gitInv0=this.gitInv0||E(this.git0),this.gitInv1=this.gitInv1||E(this.git1),this.gitInv2=this.gitInv2||E(this.git2),this.gitInv3=this.gitInv3||E(this.git3),this.gitInv4=this.gitInv4||E(this.git4),this.gitInv5=this.gitInv5||E(this.git5),this.gitInv6=this.gitInv6||E(this.git6),this.gitInv7=this.gitInv7||E(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||hr,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||cr}calculate(t){if(typeof t!="object"){this.updateColors();return}let r=Object.keys(t);r.forEach(i=>{this[i]=t[i]}),this.updateColors(),r.forEach(i=>{this[i]=t[i]})}},n(ra,"Theme"),ra),ET=n(e=>{let t=new AT;return t.calculate(e),t},"getThemeVariables"),ia,OT=(ia=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=N(this.primaryColor,16),this.tertiaryColor=b(this.primaryColor,{h:-160}),this.primaryBorderColor=E(this.background),this.secondaryBorderColor=Ft(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Ft(this.tertiaryColor,this.darkMode),this.primaryTextColor=E(this.primaryColor),this.secondaryTextColor=E(this.secondaryColor),this.tertiaryTextColor=E(this.tertiaryColor),this.mainBkg="#2a2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=N(E("#323D47"),10),this.border1="#ccc",this.border2=jr(255,255,255,.25),this.arrowheadColor=E(this.background),this.fontFamily="arial, sans-serif",this.fontSize="14px",this.labelBackground="#181818",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.radius=3,this.strokeWidth=1,this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.fontFamily="arial, sans-serif",this.fontSize="14px",this.useGradient=!0,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,0.2))",this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.noteFontWeight="normal",this.fontWeight="normal"}updateColors(){if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||b(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||b(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||Ft(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||Ft(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||Ft(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||Ft(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||E(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||E(this.tertiaryColor),this.lineColor=this.lineColor||E(this.background),this.arrowheadColor=this.arrowheadColor||E(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.border1,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?z(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||z(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||E(this.lineColor),this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||N(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||b(this.primaryColor,{h:30}),this.cScale4=this.cScale4||b(this.primaryColor,{h:60}),this.cScale5=this.cScale5||b(this.primaryColor,{h:90}),this.cScale6=this.cScale6||b(this.primaryColor,{h:120}),this.cScale7=this.cScale7||b(this.primaryColor,{h:150}),this.cScale8=this.cScale8||b(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||b(this.primaryColor,{h:270}),this.cScale10=this.cScale10||b(this.primaryColor,{h:300}),this.cScale11=this.cScale11||b(this.primaryColor,{h:330}),this.darkMode)for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this["cScale"+r]=z(this["cScale"+r],75);else for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this["cScale"+r]=z(this["cScale"+r],25);for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this["cScaleInv"+r]=this["cScaleInv"+r]||E(this["cScale"+r]);for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this.darkMode?this["cScalePeer"+r]=this["cScalePeer"+r]||N(this["cScale"+r],10):this["cScalePeer"+r]=this["cScalePeer"+r]||z(this["cScale"+r],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this["cScaleLabel"+r]=this["cScaleLabel"+r]||this.scaleLabelColor;let t=this.darkMode?-4:-1;for(let r=0;r<5;r++)this["surface"+r]=this["surface"+r]||b(this.mainBkg,{h:180,s:-15,l:t*(5+r*3)}),this["surfacePeer"+r]=this["surfacePeer"+r]||b(this.mainBkg,{h:180,s:-15,l:t*(8+r*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||b(this.primaryColor,{h:64}),this.fillType3=this.fillType3||b(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||b(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||b(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||b(this.primaryColor,{h:128}),this.fillType7=this.fillType7||b(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||b(this.primaryColor,{l:-10}),this.pie5=this.pie5||b(this.secondaryColor,{l:-10}),this.pie6=this.pie6||b(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||b(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||b(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||b(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||b(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||b(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||b(this.primaryColor,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||b(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||b(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||b(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||b(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||b(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||b(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Ke(this.quadrant1Fill)?N(this.quadrant1Fill):z(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,legendTextColor:this.xyChart?.legendTextColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?z(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||"#0b0000",this.git1=this.git1||"#4d1037",this.git2=this.git2||"#3f5258",this.git3=this.git3||"#4f2f1b",this.git4=this.git4||"#6e0a0a",this.git5=this.git5||"#3b0048",this.git6=this.git6||"#995a01",this.git7=this.git7||"#154706",this.gitDarkMode=!0,this.gitDarkMode?(this.git0=N(this.git0,25),this.git1=N(this.git1,25),this.git2=N(this.git2,25),this.git3=N(this.git3,25),this.git4=N(this.git4,25),this.git5=N(this.git5,25),this.git6=N(this.git6,25),this.git7=N(this.git7,25)):(this.git0=z(this.git0,25),this.git1=z(this.git1,25),this.git2=z(this.git2,25),this.git3=z(this.git3,25),this.git4=z(this.git4,25),this.git5=z(this.git5,25),this.git6=z(this.git6,25),this.git7=z(this.git7,25)),this.gitInv0=this.gitInv0||E(this.git0),this.gitInv1=this.gitInv1||E(this.git1),this.gitInv2=this.gitInv2||E(this.git2),this.gitInv3=this.gitInv3||E(this.git3),this.gitInv4=this.gitInv4||E(this.git4),this.gitInv5=this.gitInv5||E(this.git5),this.gitInv6=this.gitInv6||E(this.git6),this.gitInv7=this.gitInv7||E(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||hr,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||cr}calculate(t){if(typeof t!="object"){this.updateColors();return}let r=Object.keys(t);r.forEach(i=>{this[i]=t[i]}),this.updateColors(),r.forEach(i=>{this[i]=t[i]})}},n(ia,"Theme"),ia),IT=n(e=>{let t=new OT;return t.calculate(e),t},"getThemeVariables"),aa,DT=(aa=class{constructor(){this.background="#ffffff",this.primaryColor="#cccccc",this.mainBkg="#ffffff",this.noteBkgColor="#fff5ad",this.noteTextColor="#28253D",this.THEME_COLOR_LIMIT=12,this.radius=12,this.strokeWidth=2,this.primaryBorderColor=Ft("#28253D",this.darkMode),this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.nodeBorder="#28253D",this.stateBorder="#28253D",this.useGradient=!1,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="url(#drop-shadow)",this.nodeShadow=!0,this.tertiaryColor="#ffffff",this.clusterBkg="#F9F9FB",this.clusterBorder="#BDBCCC",this.noteBorderColor="#FACC15",this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.actorBorder="#28253D",this.filterColor="#000000"}updateColors(){this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#28253D"),this.secondaryColor=this.secondaryColor||b(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||b(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||Ft(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||Ft(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||Ft(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||Ft(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#FEF9C3",this.noteTextColor=this.noteTextColor||"#28253D",this.secondaryTextColor=this.secondaryTextColor||E(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||E(this.tertiaryColor),this.lineColor=this.lineColor||E(this.background),this.arrowheadColor=this.arrowheadColor||E(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackgroun
vendor: 6,916 bytes, line 2
2d=this.edgeLabelBackground||(this.darkMode?z(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.noteFontWeight=600,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||z(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||E(this.lineColor),this.rectBkgColor=this.rectBkgColor||this.tertiaryColor;let t="#ECECFE",r="#E9E9F1",i=b(t,{h:180,l:5});this.sectionBkgColor=this.sectionBkgColor||i,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||r,this.sectionBkgColor2=this.sectionBkgColor2||t,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||t,this.activeTaskBorderColor=this.activeTaskBorderColor||t,this.activeTaskBkgColor=this.activeTaskBkgColor||N(t,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.compositeTitleBackground="#F9F9FB",this.altBackground="#F9F9FB",this.stateEdgeLabelBackground="#FFFFFF",this.fontWeight=600,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor;for(let o=0;o<this.THEME_COLOR_LIMIT;o++)this["cScale"+o]=this.mainBkg;if(this.darkMode)for(let o=0;o<this.THEME_COLOR_LIMIT;o++)this["cScale"+o]=z(this["cScale"+o],75);else for(let o=0;o<this.THEME_COLOR_LIMIT;o++)this["cScale"+o]=z(this["cScale"+o],25);for(let o=0;o<this.THEME_COLOR_LIMIT;o++)this["cScaleInv"+o]=this["cScaleInv"+o]||E(this["cScale"+o]);for(let o=0;o<this.THEME_COLOR_LIMIT;o++)this.darkMode?this["cScalePeer"+o]=this["cScalePeer"+o]||N(this["cScale"+o],10):this["cScalePeer"+o]=this["cScalePeer"+o]||z(this["cScale"+o],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let o=0;o<this.THEME_COLOR_LIMIT;o++)this["cScaleLabel"+o]=this["cScaleLabel"+o]||this.scaleLabelColor;let a=this.darkMode?-4:-1;for(let o=0;o<5;o++)this["surface"+o]=this["surface"+o]||b(this.mainBkg,{h:180,s:-15,l:a*(5+o*3)}),this["surfacePeer"+o]=this["surfacePeer"+o]||b(this.mainBkg,{h:180,s:-15,l:a*(8+o*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||t,this.fillType1=this.fillType1||r,this.fillType2=this.fillType2||b(t,{h:64}),this.fillType3=this.fillType3||b(r,{h:64}),this.fillType4=this.fillType4||b(t,{h:-64}),this.fillType5=this.fillType5||b(r,{h:-64}),this.fillType6=this.fillType6||b(t,{h:128}),this.fillType7=this.fillType7||b(r,{h:128}),this.pie1=this.pie1||t,this.pie2=this.pie2||r,this.pie3=this.pie3||i,this.pie4=this.pie4||b(t,{l:-10}),this.pie5=this.pie5||b(r,{l:-10}),this.pie6=this.pie6||b(i,{l:-10}),this.pie7=this.pie7||b(t,{h:60,l:-10}),this.pie8=this.pie8||b(t,{h:-60,l:-10}),this.pie9=this.pie9||b(t,{h:120,l:0}),this.pie10=this.pie10||b(t,{h:60,l:-20}),this.pie11=this.pie11||b(t,{h:-60,l:-20}),this.pie12=this.pie12||b(t,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||t,this.quadrant2Fill=this.quadrant2Fill||b(t,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||b(t,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||b(t,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||b(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||b(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||b(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Ke(this.quadrant1Fill)?N(this.quadrant1Fill):z(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExter
vendor: 19,283 bytes, line 2
2nalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,legendTextColor:this.xyChart?.legendTextColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||t,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?z(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.requirementEdgeLabelBackground="#FFFFFF",this.git0=this.git0||t,this.git1=this.git1||r,this.git2=this.git2||i,this.git3=this.git3||b(t,{h:-30}),this.git4=this.git4||b(t,{h:-60}),this.git5=this.git5||b(t,{h:-90}),this.git6=this.git6||b(t,{h:60}),this.git7=this.git7||b(t,{h:120}),this.darkMode?(this.git0=N(this.git0,25),this.git1=N(this.git1,25),this.git2=N(this.git2,25),this.git3=N(this.git3,25),this.git4=N(this.git4,25),this.git5=N(this.git5,25),this.git6=N(this.git6,25),this.git7=N(this.git7,25)):(this.git0=z(this.git0,25),this.git1=z(this.git1,25),this.git2=z(this.git2,25),this.git3=z(this.git3,25),this.git4=z(this.git4,25),this.git5=z(this.git5,25),this.git6=z(this.git6,25),this.git7=z(this.git7,25)),this.gitInv0=this.gitInv0||E(this.git0),this.gitInv1=this.gitInv1||E(this.git1),this.gitInv2=this.gitInv2||E(this.git2),this.gitInv3=this.gitInv3||E(this.git3),this.gitInv4=this.gitInv4||E(this.git4),this.gitInv5=this.gitInv5||E(this.git5),this.gitInv6=this.gitInv6||E(this.git6),this.gitInv7=this.gitInv7||E(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.commitLineColor=this.commitLineColor??"#BDBCCC",this.erEdgeLabelBackground="#FFFFFF",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||hr,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||cr}calculate(t){if(typeof t!="object"){this.updateColors();return}let r=Object.keys(t);r.forEach(i=>{this[i]=t[i]}),this.updateColors(),r.forEach(i=>{this[i]=t[i]})}},n(aa,"Theme"),aa),qT=n(e=>{let t=new DT;return t.calculate(e),t},"getThemeVariables"),oa,PT=(oa=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=N(this.primaryColor,16),this.tertiaryColor=b(this.primaryColor,{h:-160}),this.primaryBorderColor=E(this.background),this.secondaryBorderColor=Ft(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Ft(this.tertiaryColor,this.darkMode),this.primaryTextColor=E(this.primaryColor),this.secondaryTextColor=E(this.secondaryColor),this.tertiaryTextColor=E(this.tertiaryColor),this.mainBkg="#111113",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=N(E("#323D47"),10),this.border1="#ccc",this.border2=jr(255,255,255,.25),this.arrowheadColor=E(this.background),this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.labelBackground="#111113",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.radius=12,this.strokeWidth=2,this.noteBkgColor=this.noteBkgColor??"#FEF9C3",this.noteTextColor=this.noteTextColor??"#28253D",this.THEME_COLOR_LIMIT=12,this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.nodeBorder="#FFFFFF",this.stateBorder="#FFFFFF",this.useGradient=!1,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="url(#drop-shadow)",this.nodeShadow=!0,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.clusterBkg="#1E1A2E",this.clusterBorder="#BDBCCC",this.noteBorderColor="#FACC15",this.noteFontWeight=600,this.filterColor="#FFFFFF"}updateColors(){if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#FFFFFF"),this.secondaryColor=this.secondaryColor||b(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||b(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||Ft(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||Ft(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||Ft(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||Ft(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#FFFFFF",this.secondaryTextColor=this.secondaryTextColor||E(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||E(this.tertiaryColor),this.lineColor=this.lineColor||E(this.background),this.arrowheadColor=this.arrowheadColor||E(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.border1,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?z(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder="#FFFFFF",this.signalColor="#FFFFFF",this.labelBoxBorderColor="#BDBCCC",this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||z(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||E(this.lineColor),this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||N(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.compositeBackground="#16141F",this.altBackground="#16141F",this.compositeTitleBackground="#16141F",this.stateEdgeLabelBackground="#16141F",this.fontWeight=600,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||b(this.primaryColor,{h:30}),this.cScale4=this.cScale4||b(this.primaryColor,{h:60}),this.cScale5=this.cScale5||b(this.primaryColor,{h:90}),this.cScale6=this.cScale6||b(this.primaryColor,{h:120}),this.cScale7=this.cScale7||b(this.primaryColor,{h:150}),this.cScale8=this.cScale8||b(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||b(this.primaryColor,{h:270}),this.cScale10=this.cScale10||b(this.primaryColor,{h:300}),this.cScale11=this.cScale11||b(this.primaryColor,{h:330}),this.darkMode)for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this["cScale"+r]=z(this["cScale"+r],75);else for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this["cScale"+r]=z(this["cScale"+r],25);for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this["cScaleInv"+r]=this["cScaleInv"+r]||E(this["cScale"+r]);for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this.darkMode?this["cScalePeer"+r]=this["cScalePeer"+r]||N(this["cScale"+r],10):this["cScalePeer"+r]=this["cScalePeer"+r]||z(this["cScale"+r],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this["cScaleLabel"+r]=this["cScaleLabel"+r]||this.scaleLabelColor;let t=this.darkMode?-4:-1;for(let r=0;r<5;r++)this["surface"+r]=this["surface"+r]||b(this.mainBkg,{h:180,s:-15,l:t*(5+r*3)}),this["surfacePeer"+r]=this["surfacePeer"+r]||b(this.mainBkg,{h:180,s:-15,l:t*(8+r*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||b(this.primaryColor,{h:64}),this.fillType3=this.fillType3||b(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||b(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||b(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||b(this.primaryColor,{h:128}),this.fillType7=this.fillType7||b(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||b(this.primaryColor,{l:-10}),this.pie5=this.pie5||b(this.secondaryColor,{l:-10}),this.pie6=this.pie6||b(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||b(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||b(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||b(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||b(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||b(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||b(this.primaryColor,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||b(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||b(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||b(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||b(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||b(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||b(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Ke(this.quadrant1Fill)?N(this.quadrant1Fill):z(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,legendTextColor:this.xyChart?.legendTextColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?z(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.requirementEdgeLabelBackground="#16141F",this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||b(this.primaryColor,{h:-30}),this.git4=this.git4||b(this.primaryColor,{h:-60}),this.git5=this.git5||b(this.primaryColor,{h:-90}),this.git6=this.git6||b(this.primaryColor,{h:60}),this.git7=this.git7||b(this.primaryColor,{h:120}),this.darkMode?(this.git0=N(this.git0,25),this.git1=N(this.git1,25),this.git2=N(this.git2,25),this.git3=N(this.git3,25),this.git4=N(this.git4,25),this.git5=N(this.git5,25),this.git6=N(this.git6,25),this.git7=N(this.git7,25)):(this.git0=z(this.git0,25),this.git1=z(this.git1,25),this.git2=z(this.git2,25),this.git3=z(this.git3,25),this.git4=z(this.git4,25),this.git5=z(this.git5,25),this.git6=z(this.git6,25),this.git7=z(this.git7,25)),this.gitInv0=this.gitInv0||E(this.git0),this.gitInv1=this.gitInv1||E(this.git1),this.gitInv2=this.gitInv2||E(this.git2),this.gitInv3=this.gitInv3||E(this.git3),this.gitInv4=this.gitInv4||E(this.git4),this.gitInv5=this.gitInv5||E(this.git5),this.gitInv6=this.gitInv6||E(this.git6),this.gitInv7=this.gitInv7||E(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.commitLineColor=this.commitLineColor??"#BDBCCC",this.erEdgeLabelBackground="#16141F",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||hr,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||cr}calculate(t){if(typeof t!="object"){this.updateColors();return}let r=Object.keys(t);r.forEach(i=>
vendor: 5,434 bytes, line 2
2{this[i]=t[i]}),this.updateColors(),r.forEach(i=>{this[i]=t[i]})}},n(oa,"Theme"),oa),RT=n(e=>{let t=new PT;return t.calculate(e),t},"getThemeVariables"),na,NT=(na=class{constructor(){this.background="#ffffff",this.primaryColor="#cccccc",this.mainBkg="#ffffff",this.noteBkgColor="#fff5ad",this.noteTextColor="#28253D",this.THEME_COLOR_LIMIT=12,this.radius=12,this.strokeWidth=2,this.primaryBorderColor=Ft(this.primaryColor,this.darkMode),this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.nodeBorder="#28253D",this.stateBorder="#28253D",this.useGradient=!1,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="url(#drop-shadow)",this.nodeShadow=!0,this.tertiaryColor="#ffffff",this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.actorBorder="#28253D",this.noteBorderColor="#FACC15",this.noteFontWeight=600,this.borderColorArray=["#E879F9","#2DD4BF","#FB923C","#22D3EE","#4ADE80","#A78BFA","#F87171","#FACC15","#818CF8","#A3E635 ","#38BDF8","#FB7185"],this.bkgColorArray=["#FDF4FF","#F0FDFA","#FFF7ED","#ECFEFF","#F0FDF4","#F5F3FF","#FEF2F2","#FEFCE8","#EEF2FF","#F7FEE7","#F0F9FF","#FFF1F2"],this.filterColor="#000000"}updateColors(){this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#28253D"),this.secondaryColor=this.secondaryColor||b(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||b(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||Ft(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||Ft(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||Ft(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||Ft(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#28253D",this.secondaryTextColor=this.secondaryTextColor||E(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||E(this.tertiaryColor),this.lineColor=this.lineColor||E(this.background),this.arrowheadColor=this.arrowheadColor||E(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?z(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||z(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||E(this.lineColor),this.rectBkgColor=this.rectBkgColor||this.tertiaryColor;let t="#ECECFE",r="#E9E9F1",i=b(t,{h:180,l:5});this.sectionBkgColor=this.sectionBkgColor||i,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||r,this.sectionBkgColor2=this.sectionBkgColor2||t,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||t,this.activeTaskBorderColor=this.activeTaskBorderColor||t,this.activeTaskBkgColor=this.activeTaskBkgColor||N(t,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroun
vendor: 9,140 bytes, line 2
2dColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||"#f4a8ff",this.cScale1=this.cScale1||"#46ecd5",this.cScale2=this.cScale2||"#ffb86a",this.cScale3=this.cScale3||"#dab2ff",this.cScale4=this.cScale4||"#7bf1a8",this.cScale5=this.cScale5||"#c4b4ff",this.cScale6=this.cScale6||"#ffa2a2",this.cScale7=this.cScale7||"#ffdf20",this.cScale8=this.cScale8||"#a3b3ff",this.cScale9=this.cScale9||"#bbf451",this.cScale10=this.cScale10||"#74d4ff",this.cScale11=this.cScale11||"#ffa1ad";for(let o=0;o<this.THEME_COLOR_LIMIT;o++)this["cScaleInv"+o]=this["cScaleInv"+o]||E(this["cScale"+o]);for(let o=0;o<this.THEME_COLOR_LIMIT;o++)this.darkMode?this["cScalePeer"+o]=this["cScalePeer"+o]||N(this["cScale"+o],10):this["cScalePeer"+o]=this["cScalePeer"+o]||z(this["cScale"+o],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let o=0;o<this.THEME_COLOR_LIMIT;o++)this["cScaleLabel"+o]=this["cScaleLabel"+o]||this.scaleLabelColor;let a=this.darkMode?-4:-1;for(let o=0;o<5;o++)this["surface"+o]=this["surface"+o]||b(this.mainBkg,{h:180,s:-15,l:a*(5+o*3)}),this["surfacePeer"+o]=this["surfacePeer"+o]||b(this.mainBkg,{h:180,s:-15,l:a*(8+o*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||t,this.fillType1=this.fillType1||r,this.fillType2=this.fillType2||b(t,{h:64}),this.fillType3=this.fillType3||b(r,{h:64}),this.fillType4=this.fillType4||b(t,{h:-64}),this.fillType5=this.fillType5||b(r,{h:-64}),this.fillType6=this.fillType6||b(t,{h:128}),this.fillType7=this.fillType7||b(r,{h:128}),this.pie1=this.pie1||t,this.pie2=this.pie2||r,this.pie3=this.pie3||i,this.pie4=this.pie4||b(t,{l:-10}),this.pie5=this.pie5||b(r,{l:-10}),this.pie6=this.pie6||b(i,{l:-10}),this.pie7=this.pie7||b(t,{h:60,l:-10}),this.pie8=this.pie8||b(t,{h:-60,l:-10}),this.pie9=this.pie9||b(t,{h:120,l:0}),this.pie10=this.pie10||b(t,{h:60,l:-20}),this.pie11=this.pie11||b(t,{h:-60,l:-20}),this.pie12=this.pie12||b(t,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||t,this.quadrant2Fill=this.quadrant2Fill||b(t,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||b(t,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||b(t,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||b(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||b(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||b(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Ke(this.quadrant1Fill)?N(this.quadrant1Fill):z(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,legendTextColor:this.xyChart?.legendTextColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||t,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?z(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||t,this.git1=this.git1||r,this.git2=this.git2||i,this.git3=this.git3||b(t,{h:-30}),this.git4=this.git4||b(t,{h:-60}),this.git5=this.git5||b(t,{h:-90}),this.git6=this.git6||b(t,{h:60}),this.git7=this.git7||b(t,{h:120}),this.darkMode?(this.git0=N(this.git0,25),this.git1=N(this.git1,25),this.git2=N(this.git2,25),this.git3=N(this.git3,25),this.git4=N(this.git4,25),this.git5=N(this.git5,25),this.git6=N(this.git6,25),this.git7=N(this.git7,25)):(this.git0=z(this.git0,25),this.git1=z(this.git1,25),this.git2=z(this.git2,25),this.git3=z(this.git3,25),this.git4=z(this.git4,25),this.git5=z(this.git5,25),this.git6=z(this.git6,25),this.git7=z(this.git7,25)),this.gitInv0=this.gitInv0||E(this.git0),this.gitInv1=this.gitInv1||E(this.git1),this.gitInv2=this.gitInv2||E(this.git2),this.gitInv3=this.gitInv3||E(this.git3),this.gitInv4=this.gitInv4||E(this.git4),this.gitInv5=this.gitInv5||E(this.git5),this.gitInv6=this.gitInv6||E(this.git6),this.gitInv7=this.gitInv7||E(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLineColor=this.commitLineColor??"#BDBCCC",this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.fontWeight=600,this.erEdgeLabelBackground="#FFFFFF",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||hr,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||cr}calculate(t){if(typeof t!="object"){this.updateColors();return}let r=Object.keys(t);r.forEach(i=>{this[i]=t[i]}),this.updateColors(),r.forEach(i=>{this[i]=t[i]})}},n(na,"Theme"),na),zT=n(e=>{let t=new NT;return t.calculate(e),t},"getThemeVariables"),sa,WT=(sa=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=N(this.primaryColor,16),this.tertiaryColor=b(this.primaryColor,{h:-160}),this.primaryBorderColor=E(this.background),this.secondaryBorderColor=Ft(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Ft(this.tertiaryColor,this.darkMode),this.primaryTextColor=E(this.primaryColor),this.secondaryTextColor=E(this.secondaryColor),this.tertiaryTextColor=E(this.tertiaryColor),this.mainBkg="#111113",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=N(E("#323D47"),10),this.border1="#ccc",this.border2=jr(255,255,255,.25),this.arrowheadColor=E(this.background),this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.labelBackgroun
vendor: 5,253 bytes, line 2
2d="#111113",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.radius=12,this.strokeWidth=2,this.noteBkgColor=this.noteBkgColor??"#FEF9C3",this.noteTextColor=this.noteTextColor??"#28253D",this.THEME_COLOR_LIMIT=12,this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.nodeBorder="#FFFFFF",this.stateBorder="#FFFFFF",this.useGradient=!1,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="url(#drop-shadow)",this.nodeShadow=!0,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.clusterBkg="#1E1A2E",this.clusterBorder="#BDBCCC",this.noteBorderColor="#FACC15",this.noteFontWeight=600,this.borderColorArray=["#E879F9","#2DD4BF","#FB923C","#22D3EE","#4ADE80","#A78BFA","#F87171","#FACC15","#818CF8","#A3E635 ","#38BDF8","#FB7185"],this.bkgColorArray=[],this.filterColor="#FFFFFF"}updateColors(){this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#FFFFFF"),this.secondaryColor=this.secondaryColor||b(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||b(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||Ft(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||Ft(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||Ft(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||Ft(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#FFFFFF",this.secondaryTextColor=this.secondaryTextColor||E(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||E(this.tertiaryColor),this.lineColor=this.lineColor||E(this.background),this.arrowheadColor=this.arrowheadColor||E(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.border1,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?z(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder="#FFFFFF",this.signalColor="#FFFFFF",this.labelBoxBorderColor="#BDBCCC",this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||z(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||E(this.lineColor),this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,this.rootLabelColor="#FFFFFF",this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||N(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroun
vendor: 8,768 bytes, line 2
2dColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||"#f4a8ff",this.cScale1=this.cScale1||"#46ecd5",this.cScale2=this.cScale2||"#ffb86a",this.cScale3=this.cScale3||"#dab2ff",this.cScale4=this.cScale4||"#7bf1a8",this.cScale5=this.cScale5||"#c4b4ff",this.cScale6=this.cScale6||"#ffa2a2",this.cScale7=this.cScale7||"#ffdf20",this.cScale8=this.cScale8||"#a3b3ff",this.cScale9=this.cScale9||"#bbf451",this.cScale10=this.cScale10||"#74d4ff",this.cScale11=this.cScale11||"#ffa1ad";for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this["cScaleInv"+r]=this["cScaleInv"+r]||E(this["cScale"+r]);for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this.darkMode?this["cScalePeer"+r]=this["cScalePeer"+r]||N(this["cScale"+r],10):this["cScalePeer"+r]=this["cScalePeer"+r]||z(this["cScale"+r],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this["cScaleLabel"+r]=z(this["cScale"+r],75);let t=this.darkMode?-4:-1;for(let r=0;r<5;r++)this["surface"+r]=this["surface"+r]||b(this.mainBkg,{h:180,s:-15,l:t*(5+r*3)}),this["surfacePeer"+r]=this["surfacePeer"+r]||b(this.mainBkg,{h:180,s:-15,l:t*(8+r*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||b(this.primaryColor,{h:64}),this.fillType3=this.fillType3||b(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||b(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||b(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||b(this.primaryColor,{h:128}),this.fillType7=this.fillType7||b(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||b(this.primaryColor,{l:-10}),this.pie5=this.pie5||b(this.secondaryColor,{l:-10}),this.pie6=this.pie6||b(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||b(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||b(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||b(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||b(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||b(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||b(this.primaryColor,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||b(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||b(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||b(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||b(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||b(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||b(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Ke(this.quadrant1Fill)?N(this.quadrant1Fill):z(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,legendTextColor:this.xyChart?.legendTextColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?z(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||b(this.primaryColor,{h:-30}),this.git4=this.git4||b(this.primaryColor,{h:-60}),this.git5=this.git5||b(this.primaryColor,{h:-90}),this.git6=this.git6||b(this.primaryColor,{h:60}),this.git7=this.git7||b(this.primaryColor,{h:120}),this.darkMode?(this.git0=N(this.git0,25),this.git1=N(this.git1,25),this.git2=N(this.git2,25),this.git3=N(this.git3,25),this.git4=N(this.git4,25),this.git5=N(this.git5,25),this.git6=N(this.git6,25),this.git7=N(this.git7,25)):(this.git0=z(this.git0,25),this.git1=z(this.git1,25),this.git2=z(this.git2,25),this.git3=z(this.git3,25),this.git4=z(this.git4,25),this.git5=z(this.git5,25),this.git6=z(this.git6,25),this.git7=z(this.git7,25)),this.gitInv0=this.gitInv0||E(this.git0),this.gitInv1=this.gitInv1||E(this.git1),this.gitInv2=this.gitInv2||E(this.git2),this.gitInv3=this.gitInv3||E(this.git3),this.gitInv4=this.gitInv4||E(this.git4),this.gitInv5=this.gitInv5||E(this.git5),this.gitInv6=this.gitInv6||E(this.git6),this.gitInv7=this.gitInv7||E(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.commitLineColor=this.commitLineColor??"#BDBCCC",this.fontWeight=600,this.erEdgeLabelBackground="#16141F",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||hr,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||cr}calculate(t){if(typeof t!="object"){this.updateColors();return}let r=Object.keys(t);r.forEach(i=>{this[i]=t[i]}),this.updateColors(),r.forEach(i=>
2{this[i]=t[i]})}},n(sa,"Theme"),sa),jT=n(e=>{let t=new WT;return t.calculate(e),t},"getThemeVariables"),_r={base:{getThemeVariables:vT},dark:{getThemeVariables:ST},default:{getThemeVariables:_T},forest:{getThemeVariables:LT},neutral:{getThemeVariables:MT},neo:{getThemeVariables:ET},"neo-dark":{getThemeVariables:IT},redux:{getThemeVariables:qT},"redux-dark":{getThemeVariables:RT},"redux-color":{getThemeVariables:zT},"redux-dark-color":{getThemeVariables:jT}},de={flowchart:{useMaxWidth:!0,titleTopMargin:25,subGraphTitleMargin:{top:0,bottom:0},diagramPadding:8,htmlLabels:null,nodeSpacing:50,rankSpacing:50,curve:"basis",padding:15,defaultRenderer:"dagre-wrapper",wrappingWidth:200,inheritDir:!1},swimlane:{useMaxWidth:!0,lineHops:"arc",ignoreCrossLaneEdges:!0,optimizeRanksByCrossings:!0,automaticLaneOrdering:!1},sequence:{useMaxWidth:!0,hideUnusedParticipants:!1,activationWidth:10,diagramMarginX:50,diagramMarginY:10,actorMargin:50,width:150,height:65,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",mirrorActors:!0,forceMenus:!1,bottomMarginAdj:1,rightAngles:!1,showSequenceNumbers:!1,actorFontSize:14,actorFontFamily:'"Open Sans", sans-serif',actorFontWeight:400,noteFontSize:14,noteFontFamily:'"trebuchet ms", verdana, arial, sans-serif',noteFontWeight:400,noteAlign:"center",messageFontSize:16,messageFontFamily:'"trebuchet ms", verdana, arial, sans-serif',messageFontWeight:400,wrap:!1,wrapPadding:10,labelBoxWidth:50,labelBoxHeight:20},gantt:{useMaxWidth:!0,titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,rightPadding:75,leftPadding:75,gridLineStartPadding:35,fontSize:11,sectionFontSize:11,numberSectionStyles:4,axisFormat:"%Y-%m-%d",topAxis:!1,displayMode:"",weekday:"sunday"},journey:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,maxLabelWidth:360,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"],titleColor:"",titleFontFamily:'"trebuchet ms", verdana, arial, sans-serif',titleFontSize:"4ex"},class:{useMaxWidth:!0,titleTopMargin:25,arrowMarkerAbsolute:!1,dividerMargin:10,padding:5,textHeight:10,defaultRenderer:"dagre-wrapper",htmlLabels:!1,hideEmptyMembersBox:!1,hierarchicalNamespaces:!0},state:{useMaxWidth:!0,titleTopMargin:25,dividerMargin:10,sizeUnit:5,padding:8,textHeight:10,titleShift:-15,noteMargin:10,forkWidth:70,forkHeight:7,miniPadding:2,fontSizeFactor:5.02,fontSize:24,labelHeight:16,edgeLengthFactor:"20",compositTitleSize:35,radius:5,defaultRenderer:"dagre-wrapper"},er:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:20,layoutDirection:"TB",minEntityWidth:100,minEntityHeight:75,entityPadding:15,nodeSpacing:140,rankSpacing:80,stroke:"gray",fill:"honeydew",fontSize:12},pie:{useMaxWidth:!0,textPosition:.75,donutHole:0,legendPosition:"right",highlightSlice:""},quadrantChart:{useMaxWidth:!0,chartWidth:500,chartHeight:500,titleFontSize:20,titlePadding:10,quadrantPadding:5,xAxisLabelPadding:5,yAxisLabelPadding:5,xAxisLabelFontSize:16,yAxisLabelFontSize:16,quadrantLabelFontSize:16,quadrantTextTopPadding:5,pointTextPadding:5,pointLabelFontSize:12,pointRadius:5,xAxisPosition:"top",yAxisPosition:"left",quadrantInternalBorderStrokeWidth:1,quadrantExternalBorderStrokeWidth:2},xyChart:{useMaxWidth:!0,width:700,height:500,titleFontSize:20,titlePadding:10,showDataLabel:!1,showDataLabelOutsideBar:!1,showTitle:!0,showLegend:!0,legendFontSize:14,legendPadding:1
vendor: 7,245 bytes, line 2
20,xAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2,labelRotation:0},yAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2,labelRotation:0},chartOrientation:"vertical",plotReservedSpacePercent:50},requirement:{useMaxWidth:!0,rect_fill:"#f9f9f9",text_color:"#333",rect_border_size:"0.5px",rect_border_color:"#bbb",rect_min_width:200,rect_min_height:200,fontSize:14,rect_padding:10,line_height:20},mindmap:{useMaxWidth:!0,padding:10,maxNodeWidth:200,layoutAlgorithm:"cose-bilkent"},ishikawa:{useMaxWidth:!0,diagramPadding:20},kanban:{useMaxWidth:!0,padding:8,sectionWidth:200,ticketBaseUrl:""},timeline:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"],disableMulticolor:!1},gitGraph:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:8,nodeLabel:{width:75,height:100,x:-25,y:0},mainBranchName:"main",mainBranchOrder:0,showCommitLabel:!0,showBranches:!0,rotateCommitLabel:!0,parallelCommits:!1,arrowMarkerAbsolute:!1},c4:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,c4ShapeMargin:50,c4ShapePadding:20,width:216,height:60,boxMargin:10,c4ShapeInRow:4,nextLinePaddingX:0,c4BoundaryInRow:2,personFontSize:14,personFontFamily:'"Open Sans", sans-serif',personFontWeight:"normal",external_personFontSize:14,external_personFontFamily:'"Open Sans", sans-serif',external_personFontWeight:"normal",systemFontSize:14,systemFontFamily:'"Open Sans", sans-serif',systemFontWeight:"normal",external_systemFontSize:14,external_systemFontFamily:'"Open Sans", sans-serif',external_systemFontWeight:"normal",system_dbFontSize:14,system_dbFontFamily:'"Open Sans", sans-serif',system_dbFontWeight:"normal",external_system_dbFontSize:14,external_system_dbFontFamily:'"Open Sans", sans-serif',external_system_dbFontWeight:"normal",system_queueFontSize:14,system_queueFontFamily:'"Open Sans", sans-serif',system_queueFontWeight:"normal",external_system_queueFontSize:14,external_system_queueFontFamily:'"Open Sans", sans-serif',external_system_queueFontWeight:"normal",boundaryFontSize:14,boundaryFontFamily:'"Open Sans", sans-serif',boundaryFontWeight:"normal",messageFontSize:12,messageFontFamily:'"Open Sans", sans-serif',messageFontWeight:"normal",containerFontSize:14,containerFontFamily:'"Open Sans", sans-serif',containerFontWeight:"normal",external_containerFontSize:14,external_containerFontFamily:'"Open Sans", sans-serif',external_containerFontWeight:"normal",container_dbFontSize:14,container_dbFontFamily:'"Open Sans", sans-serif',container_dbFontWeight:"normal",external_container_dbFontSize:14,external_container_dbFontFamily:'"Open Sans", sans-serif',external_container_dbFontWeight:"normal",container_queueFontSize:14,container_queueFontFamily:'"Open Sans", sans-serif',container_queueFontWeight:"normal",external_container_queueFontSize:14,external_container_queueFontFamily:'"Open Sans", sans-serif',external_container_queueFontWeight:"normal",componentFontSize:14,componentFontFamily:'"Open Sans", sans-serif',componentFontWeight:"normal",external_componentFontSize:14,external_componentFontFamily:'"Open Sans", sans-serif',external_componentFontWeight:"normal",component_dbFontSize:14,component_dbFontFamily:'"Open Sans", sans-serif',component_dbFontWeight:"normal",external_component_dbFontSize:14,external_component_dbFontFamily:'"Open Sans", sans-serif',external_component_dbFontWeight:"normal",component_queueFontSize:14,component_queueFontFamily:'"Open Sans", sans-serif',component_queueFontWeight:"normal",external_component_queueFontSize:14,external_component_queueFontFamily:'"Open Sans", sans-serif',external_component_queueFontWeight:"normal",wrap:!0,wrapPadding:10,person_bg_color:"#08427B",person_border_color:"#073B6F",external_person_bg_color:"#686868",external_person_border_color:"#8A8A8A",system_bg_color:"#1168BD",system_border_color:"#3C7FC0",system_db_bg_color:"#1168BD",system_db_border_color:"#3C7FC0",system_queue_bg_color:"#1168BD",system_queue_border_color:"#3C7FC0",external_system_bg_color:"#999999",external_system_border_color:"#8A8A8A",external_system_db_bg_color:"#999999",external_system_db_border_color:"#8A8A8A",external_system_queue_bg_color:"#999999",external_system_queue_border_color:"#8A8A8A",container_bg_color:"#438DD5",container_border_color:"#3C7FC0",container_db_bg_color:"#438DD5",container_db_border_color:"#3C7FC0",container_queue_bg_color:"#438DD5",container_queue_border_color:"#3C7FC0",external_container_bg_color:"#B3B3B3",external_container_border_color:"#A6A6A6",external_container_db_bg_color:"#B3B3B3",external_container_db_border_color:"#A6A6A6",external_container_queue_bg_color:"#B3B3B3",external_container_queue_border_color:"#A6A6A6",component_bg_color:"#85BBF0",component_border_color:"#78A8D8",component_db_bg_color:"#85BBF0",component_db_border_color:"#78A8D8",component_queue_bg_color:"#85BBF0",component_queue_border_color:"#78A8D8",external_component_bg_color:"#CCCCCC",external_component_border_color:"#BFBFBF",external_component_db_bg_color:"#CCCCCC",external_component_db_border_color:"#BFBFBF",external_component_queue_bg_color:"#CCCCCC",external_component_queue_border_color:"#BFBFBF"},sankey:{useMaxWidth:!0,width:600,height:400,linkColor:"gradient",nodeAlignment:"justify",showValues:!0,prefix:"",suffix:"",nodeWidth:10,nodePadding:12,labelStyle:"legacy"},block:{useMaxWidth:!0,padding:8},packet:{useMaxWidth:!0,rowHeight:32,bitWidth:32,bitsPerRow:32,showBits:!0,paddingX:5,paddingY:5},treeView:{useMaxWidth:!0,rowIndent:10,paddingX:5,paddingY:5,lineThickness:1,showIcons:!1,defaultIconPack:"",filenameIcons:{},extensionIcons:{}},architecture:{useMaxWidth:!0,padding:40,iconSize:80,fontSize:16,randomize:!1,nodeSeparation:75,idealEdgeLengthMultiplier:1.5,edgeElasticity:.45,numIter:2500,seed:1},eventmodeling:{useMaxWidth:!0,padding:30,rowHeight:32},radar:{useMaxWidth:!0,width:600,height:600,marginTop:50,marginRight:50,marginBottom:50,marginLeft:50,axisScaleFactor:1,axisLabelFactor:1.05,curveTension:.17},venn:{useMaxWidth:!0,width:800,height:450,padding:8,useDebugLayout:!1},cynefin:{useMaxWidth:!0,width:800,height:600,padding:40,showDomainDescriptions:!0,boundaryAmplitude:8,seed:0},theme:"default",look:"classic",handDrawnSeed:0,layout:"dagre",maxTextSize:5e4,maxEdges:500,darkMode:!1,fontFamily:'"trebuchet ms", verdana, arial, sans-serif;',logLevel:5,securityLevel:"strict",startOnLoad:!0,arrowMarkerAbsolute:!1,secure:["secure","securityLevel","startOnLoad","maxTextSize","suppressErrorRendering","maxEdges"],legacyMathML:!1,forceLegacyMathML:!1,deterministicIds:!1,fontSize:16,markdownAutoWrap:!0,suppressErrorRendering:!1}
vendor: 9,605 bytes, line 2
2,S1={...de,deterministicIDSeed:void 0,elk:{mergeEdges:!1,nodePlacementStrategy:"BRANDES_KOEPF",nodePlacementAlignment:"NONE",forceNodeModelOrder:!1,considerModelOrder:"NODES_AND_EDGES",keepEntryNodeOnTop:!1},themeCSS:void 0,themeVariables:_r.default.getThemeVariables(),sequence:{...de.sequence,messageFont:n(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},"messageFont"),noteFont:n(function(){return{fontFamily:this.noteFontFamily,fontSize:this.noteFontSize,fontWeight:this.noteFontWeight}},"noteFont"),actorFont:n(function(){return{fontFamily:this.actorFontFamily,fontSize:this.actorFontSize,fontWeight:this.actorFontWeight}},"actorFont")},class:{defaultRenderer:"dagre-wrapper",hideEmptyMembersBox:!1,hierarchicalNamespaces:!0},gantt:{...de.gantt,tickInterval:void 0,useWidth:void 0},c4:{...de.c4,useWidth:void 0,personFont:n(function(){return{fontFamily:this.personFontFamily,fontSize:this.personFontSize,fontWeight:this.personFontWeight}},"personFont"),flowchart:{...de.flowchart,inheritDir:!1},external_personFont:n(function(){return{fontFamily:this.external_personFontFamily,fontSize:this.external_personFontSize,fontWeight:this.external_personFontWeight}},"external_personFont"),systemFont:n(function(){return{fontFamily:this.systemFontFamily,fontSize:this.systemFontSize,fontWeight:this.systemFontWeight}},"systemFont"),external_systemFont:n(function(){return{fontFamily:this.external_systemFontFamily,fontSize:this.external_systemFontSize,fontWeight:this.external_systemFontWeight}},"external_systemFont"),system_dbFont:n(function(){return{fontFamily:this.system_dbFontFamily,fontSize:this.system_dbFontSize,fontWeight:this.system_dbFontWeight}},"system_dbFont"),external_system_dbFont:n(function(){return{fontFamily:this.external_system_dbFontFamily,fontSize:this.external_system_dbFontSize,fontWeight:this.external_system_dbFontWeight}},"external_system_dbFont"),system_queueFont:n(function(){return{fontFamily:this.system_queueFontFamily,fontSize:this.system_queueFontSize,fontWeight:this.system_queueFontWeight}},"system_queueFont"),external_system_queueFont:n(function(){return{fontFamily:this.external_system_queueFontFamily,fontSize:this.external_system_queueFontSize,fontWeight:this.external_system_queueFontWeight}},"external_system_queueFont"),containerFont:n(function(){return{fontFamily:this.containerFontFamily,fontSize:this.containerFontSize,fontWeight:this.containerFontWeight}},"containerFont"),external_containerFont:n(function(){return{fontFamily:this.external_containerFontFamily,fontSize:this.external_containerFontSize,fontWeight:this.external_containerFontWeight}},"external_containerFont"),container_dbFont:n(function(){return{fontFamily:this.container_dbFontFamily,fontSize:this.container_dbFontSize,fontWeight:this.container_dbFontWeight}},"container_dbFont"),external_container_dbFont:n(function(){return{fontFamily:this.external_container_dbFontFamily,fontSize:this.external_container_dbFontSize,fontWeight:this.external_container_dbFontWeight}},"external_container_dbFont"),container_queueFont:n(function(){return{fontFamily:this.container_queueFontFamily,fontSize:this.container_queueFontSize,fontWeight:this.container_queueFontWeight}},"container_queueFont"),external_container_queueFont:n(function(){return{fontFamily:this.external_container_queueFontFamily,fontSize:this.external_container_queueFontSize,fontWeight:this.external_container_queueFontWeight}},"external_container_queueFont"),componentFont:n(function(){return{fontFamily:this.componentFontFamily,fontSize:this.componentFontSize,fontWeight:this.componentFontWeight}},"componentFont"),external_componentFont:n(function(){return{fontFamily:this.external_componentFontFamily,fontSize:this.external_componentFontSize,fontWeight:this.external_componentFontWeight}},"external_componentFont"),component_dbFont:n(function(){return{fontFamily:this.component_dbFontFamily,fontSize:this.component_dbFontSize,fontWeight:this.component_dbFontWeight}},"component_dbFont"),external_component_dbFont:n(function(){return{fontFamily:this.external_component_dbFontFamily,fontSize:this.external_component_dbFontSize,fontWeight:this.external_component_dbFontWeight}},"external_component_dbFont"),component_queueFont:n(function(){return{fontFamily:this.component_queueFontFamily,fontSize:this.component_queueFontSize,fontWeight:this.component_queueFontWeight}},"component_queueFont"),external_component_queueFont:n(function(){return{fontFamily:this.external_component_queueFontFamily,fontSize:this.external_component_queueFontSize,fontWeight:this.external_component_queueFontWeight}},"external_component_queueFont"),boundaryFont:n(function(){return{fontFamily:this.boundaryFontFamily,fontSize:this.boundaryFontSize,fontWeight:this.boundaryFontWeight}},"boundaryFont"),messageFont:n(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},"messageFont")},pie:{...de.pie,useWidth:984},xyChart:{...de.xyChart,useWidth:void 0},requirement:{...de.requirement,useWidth:void 0},packet:{...de.packet},eventmodeling:{...de.eventmodeling},treeView:{...de.treeView,useWidth:void 0},radar:{...de.radar},railroad:{...de.railroad,fontSize:void 0,fontFamily:void 0,terminalFill:void 0,terminalStroke:void 0,terminalTextColor:void 0,nonTerminalFill:void 0,nonTerminalStroke:void 0,nonTerminalTextColor:void 0,lineColor:void 0,markerFill:void 0,commentFill:void 0,commentStroke:void 0,commentTextColor:void 0,specialFill:void 0,specialStroke:void 0,ruleNameColor:void 0},ishikawa:{...de.ishikawa},sankey:{...de.sankey,nodeColors:void 0},treemap:{useMaxWidth:!0,padding:10,diagramPadding:8,showValues:!0,nodeWidth:100,nodeHeight:40,borderWidth:1,valueFontSize:12,labelFontSize:14,valueFormat:","},venn:{...de.venn},cynefin:{...de.cynefin}},B1=n((e,t="")=>Object.keys(e).reduce((r,i)=>Array.isArray(e[i])?r:typeof e[i]=="object"&&e[i]!==null?[...r,t+i,...B1(e[i],"")]:[...r,t+i],[]),"keyify"),HT=new Set(B1(S1,"")),_1=S1,UT={nodeColors:/^#[\da-f]{3,8}$|^rgb\([\d\s%,.]+\)$|^hsl\([\d\s%,.]+\)$|^[a-z]+$/i,filenameIcons:/^[\w-]+(?::[\w-]+)?$/,extensionIcons:/^[\w-]+(?::[\w-]+)?$/},YT=n((e,t)=>{for(let r of Object.keys(e)){let i=e[r];(r.startsWith("__")||r.includes("proto")||r.includes("constr")||typeof i!="string"||!t.test(i))&&(et.debug("sanitize deleting dictionary entry:",r,i),delete e[r])}},"sanitizeDictionaryConfig"),as=n(e=>{if(et.debug("sanitizeDirective called with",e),!(typeof e!="object"||e==null)){if(Array.isArray(e)){e.forEach(t=>as(t));return}for(let t of Object.keys(e)){if(et.debug("Checking key",t),t.startsWith("__")||t.includes("proto")||t.includes("constr")||!HT.has(t)||e[t]==null){et.debug("sanitize deleting key: ",t),delete e[t];continue}if(typeof e[t]=="object"){let r=UT[t];r?YT(e[t],r):(et.debug("sanitizing object",t),as(e[t]));continue}for(let r of["themeCSS","fontFamily","altFontFamily"])t.includes(r)&&(et.debug("sanitizing css option",t),e[t]=$1(e[t]))}if(e.themeVariables)for(let t of Object.keys(e.themeVariables)){let r=e.themeVariables[t];r?.match&&!r.match(/^[\d "#%(),.;A-Za-z]+$/)&&(e.themeVariables[t]="")}et.debug("After sanitization",e)}},"sanitizeDirective"),$1=n(e=>{let t=0,r=0;for(let i of e){if(t<r)return"{ /* ERROR: Unbalanced CSS */ }";i==="{"?t++:i==="}"&&r++}return t!==r?"{ /* ERROR: Unbalanced CSS */ }":e},"sanitizeCss"),$a=Object.freeze(_1),dr=n(e=>!(e===!1||["false","null","0"].includes(String(e).trim().toLowerCase())),"evaluate"),$e=he({},$a),os,gi=[],co=he({},$a),Xo=n((e,t)=>{let r=he({},e),i={};for(let a of t)M1(a),i=he(i,a);if(r=he(r,i),i.theme&&i.theme in _r){let a=he(he({},os).themeVariables||{},i.themeVariables);r.theme&&r.theme in _r&&(r.themeVariables=_r[r.theme].getThemeVariables(a))}return co=r,JT(co),co},"updateCurrentConfig"),VT=n(e=>($e=he({},$a),$e=he($e,e),e.theme&&_r[e.theme]&&($e.themeVariables=_r[e.theme].getThemeVariables(e.themeVariables)),Xo($e,gi),$e),"setSiteConfig"),GT=n(e=>{os=he({},e)},"saveConfigFromInitialize"),XT=n(e=>($e=he($e,e),Xo($e,gi),$e),"updateSiteConfig"),L1=n(()=>he({},$e),"getSiteConfig"),F1=n(e=>(Xo(co,[e]),Jt()),"setConfig"),Jt=n(()=>he({},co),"getConfig"),M1=n(e=>{e&&(["secure",...$e.secure??[]].forEach(t=>{Object.hasOwn(e,t)&&(et.debug(`Denied attempt to modify a secure key ${t}`,e[t]),delete e[t])}),Object.keys(e).forEach(t=>{t.startsWith("__")&&delete e[t]}),Object.keys(e).forEach(t=>{typeof e[t]=="string"&&(e[t].includes("<")||e[t].includes(">")||e[t].includes("url(data:"))&&delete e[t],typeof e[t]=="object"&&M1(e[t])}))},"sanitize"),ZT=n(e=>{as(e),e.fontFamily&&!e.themeVariables?.fontFamily&&(e.themeVariables={...e.themeVariables,fontFamily:e.fontFamily}),gi.push(e),Xo($e,gi)},"addDirective"),ns=n((e=$e)=>{gi=[],Xo(e,gi)},"reset"),QT={LAZY_LOAD_DEPRECATED:"The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead.",FLOWCHART_HTML_LABELS_DEPRECATED:"flowchart.htmlLabels is deprecated. Please use global htmlLabels instead."},gp={},A1=n(e=>{gp[e]||(et.warn(QT[e]),gp[e]=!0)},"issueWarning"),JT=n(e=>{e&&(e.lazyLoadedDiagrams||e.loadExternalDiagramsAtStartup)&&A1("LAZY_LOAD_DEPRECATED")},"checkConfig"),MF=n(()=>{let e={};os&&(e=he(e,os));for(let t of gi)e=he(e,t);return e},"getUserDefinedConfig"),ve=n(e=>(e.flowchart?.htmlLabels!=null&&A1("FLOWCHART_HTML_LABELS_DEPRECATED"),dr(e.htmlLabels??e.flowchart?.htmlLabels??!0)),"getEffectiveHtmlLabels"),E1=/^([^\S\n\r]*)-{3}\s*[\n\r](.*?)[\n\r]\1-{3}\s*[\n\r]+/s,uo=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2}
vendor: 8,131 bytes, lines 2-4
2)?/gi,KT=/\s*%%.*\n/gm,la,O1=(la=class extends Error{constructor(t){super(t),this.name="UnknownDiagramError"}},n(la,"UnknownDiagramError"),la),fi={},Bd=n(function(e,t){e=e.replace(E1,"").replace(uo,"").replace(KT,` 3`);for(let[r,{detector:i}]of Object.entries(fi))if(i(e,t))return r;throw new O1(`No diagram type detected matching given configuration for text: ${e}`)},"detectType"),Mh=n((...e)=>{for(let{id:t,detector:r,loader:i}of e)I1(t,r,i)},"registerLazyLoadedDiagrams"),I1=n((e,t,r)=>{fi[e]&&et.warn(`Detector with key ${e} already exists. Overwriting.`),fi[e]={detector:t,loader:r},et.debug(`Detector with key ${e} added${r?" with loader":""}`)},"addDetector"),tS=n(e=>fi[e].loader,"getDiagramLoader");function Ah(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,i=Array(t);r<t;r++)i[r]=e[r];return i}n(Ah,"_arrayLikeToArray");function D1(e){if(Array.isArray(e))return e}n(D1,"_arrayWithHoles");function q1(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var i,a,o,s,l=[],d=!0,c=!1;try{if(o=(r=r.call(e)).next,t!==0)for(;!(d=(i=o.call(r)).done)&&(l.push(i.value),l.length!==t);d=!0);}catch(h){c=!0,a=h}finally{try{if(!d&&r.return!=null&&(s=r.return(),Object(s)!==s))return}finally{if(c)throw a}}return l}}n(q1,"_iterableToArrayLimit");function P1(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 4In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}n(P1,"_nonIterableRest");function R1(e,t){return D1(e)||q1(e,t)||N1(e,t)||P1()}n(R1,"_slicedToArray");function N1(e,t){if(e){if(typeof e=="string")return Ah(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ah(e,t):void 0}}n(N1,"_unsupportedIterableToArray");var z1=Object.entries,fp=Object.setPrototypeOf,eS=Object.isFrozen,rS=Object.getPrototypeOf,iS=Object.getOwnPropertyDescriptor,fe=Object.freeze,ye=Object.seal,Ei=Object.create,W1=typeof Reflect<"u"&&Reflect,Eh=W1.apply,Oh=W1.construct;fe||(fe=n(function(e){return e},"freeze"));ye||(ye=n(function(e){return e},"seal"));Eh||(Eh=n(function(e,t){for(var r=arguments.length,i=new Array(r>2?r-2:0),a=2;a<r;a++)i[a-2]=arguments[a];return e.apply(t,i)},"apply"));Oh||(Oh=n(function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];return new e(...r)},"construct"));var Si=re(Array.prototype.forEach),aS=re(Array.prototype.lastIndexOf),yp=re(Array.prototype.pop),Bi=re(Array.prototype.push),oS=re(Array.prototype.splice),Pr=Array.isArray,to=re(String.prototype.toLowerCase),xl=re(String.prototype.toString),mp=re(String.prototype.match),Ha=re(String.prototype.replace),xp=re(String.prototype.indexOf),nS=re(String.prototype.trim),sS=re(Number.prototype.toString),lS=re(Boolean.prototype.toString),Cp=typeof BigInt>"u"?null:re(BigInt.prototype.toString),bp=typeof Symbol>"u"?null:re(Symbol.prototype.toString),le=re(Object.prototype.hasOwnProperty),Ua=re(Object.prototype.toString),se=re(RegExp.prototype.test),ri=j1(TypeError);function re(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var r=arguments.length,i=new Array(r>1?r-1:0),a=1;a<r;a++)i[a-1]=arguments[a];return Eh(e,t,i)}}n(re,"unapply");function j1(e){return function(){for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return Oh(e,r)}}n(j1,"unconstruct");function Rt(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:to;if(fp&&fp(e,null),!Pr(t))return e;let i=t.length;for(;i--;){let a=t[i];if(typeof a=="string"){let o=r(a);o!==a&&(eS(t)||(t[i]=o),a=o)}e[a]=!0}return e}n(Rt,"addToSet");function H1(e){for(let t=0;t<e.length;t++)le(e,t)||(e[t]=null);return e}n(H1,"cleanArray");function ke(e){let t=Ei(null);for(let i of z1(e)){var r=R1(i,2);let a=r[0],o=r[1];le(e,a)&&(Pr(o)?t[a]=H1(o):o&&typeof o=="object"&&o.constructor===Object?t[a]=ke(o):t[a]=o)}return t}n(ke,"clone");function U1(e){switch(typeof e){case"string":return e;case"number":return sS(e);case"boolean":return lS(e);case"bigint":return Cp?Cp(e):"0";case"symbol":return bp?bp(e):"Symbol()";case"undefined":return Ua(e);case"function":case"object":{if(e===null)return Ua(e);let t=e,r=Ye(t,"toString");if(typeof r=="function"){let i=r(t);return typeof i=="string"?i:Ua(i)}return Ua(e)}default:return Ua(e)}}n(U1,"stringifyValue");function Ye(e,t){for(;e!==null;){let i=iS(e,t);if(i){if(i.get)return re(i.get);if(typeof i.value=="function")return re(i.value)}e=rS(e)}function r(){return null}return n(r,"fallbackValue"),r}n(Ye,"lookupGetter");function Y1(e){try{return se(e,""),!0}catch{return!1}}n(Y1,"isRegex");var kp=fe(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Cl=fe(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),bl=fe(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),hS=fe(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),kl=fe(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),cS=fe(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),wp=fe(["#text"]),vp=fe(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","
4spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),wl=fe(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dominant-baseline","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-orientation","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Tp=fe(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),pn=fe(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),dS=ye(/{{[\w\W]*|^[\w\W]*}}/g),uS=ye(/<%[\w\W]*|^[\w\W]*%>/g),pS=ye(/\${[\w\W]*/g),gS=ye(/^data-[\-\w.\u00B7-\uFFFF]+$/),fS=ye(/^aria-[\-\w]+$/),Sp=ye(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),yS=ye(/^(?:\w+script|data):/i),mS=ye(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),xS=ye(/^html$/i),CS=ye(/^[a-z][.\w]*(-[.\w]+)+$/i),Bp=ye(/<[/\w!]/g),_p=ye(/<[/\w]/g),bS=ye(/<\/no(script|embed|frames)/i),kS=ye(/\/>/i),Ae={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},wS=n(function(){return typeof window>"u"?null:window},"getGlobal"),vS=n(function(e,t){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let r=null,i="data-tt-policy-suffix";t&&t.hasAttribute(i)&&(r=t.getAttribute(i));let a="dompurify"+(r?"#"+r:"");try{return e.createPolicy(a,{createHTML(o){return o},createScriptURL(o){return o}})}catch{return console.warn("TrustedTypes policy "+a+" could not be created."),null}},"_createTrustedTypesPolicy"),$p=n(function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},"_createHooksMap"),Or=n(function(e,t,r,i){return le(e,t)&&Pr(e[t])?Rt(i.base?ke(i.base):{},e[t],i.transform):r},"_resolveSetOption");function _d(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:wS(),t=n(T=>_d(T),"DOMPurify");if(t.version="3.4.12",t.removed=[],!e||!e.document||e.document.nodeType!==Ae.document||!e.Element)return t.isSupported=!1,t;let r=e.document,i=r,a=i.currentScript;e.DocumentFragment;let o=e.HTMLTemplateElement,s=e.Node,l=e.Element,d=e.NodeFilter;e.NamedNodeMap===void 0&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;let c=e.DOMParser,h=e.trustedTypes,u=l.prototype,p=Ye(u,"cloneNode"),g=Ye(u,"remove"),y=Ye(u,"nextSibling"),m=Ye(u,"childNodes"),x=Ye(u,"parentNode"),C=Ye(u,"shadowRoot"),k=Ye(u,"attributes"),w=s&&s.prototype?Ye(s.prototype,"nodeType"):null,S=s&&s.prototype?Ye(s.prototype,"nodeName"):null;if(typeof o=="function"){let T=r.createElement("template");T.content&&T.content.ownerDocument&&(r=T.content.ownerDocument)}let B,_="",$,I=!1,U=0,V=n(function(){if(U>0)throw ri('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},"_assertNotInTrustedTypesPolicy"),A=n(function(T){V(),U++;try{return B.createHTML(T)}finally{U--}},"_createTrustedHTML"),W=n(function(T){V(),U++;try{return B.createScriptURL(T)}finally{U--}},"_createTrustedScriptURL"),O=n(function(){return I||($=vS(h,a),I=!0),$},"_getDefaultTrustedTypesPolicy"),F=r,M=F.implementation,L=F.createNodeIterator,D=F.createDocumentFragment,R=F.getElementsByTagName,rt=i.importNode,X=$p();t.isSupported=typeof z1=="function"&&typeof x=="function"&&M&&M.createHTMLDocument!==void 0;
vendor: 7,121 bytes, line 4
4let xt=dS,wt=uS,_t=pS,$t=gS,Ct=fS,ut=yS,bt=mS,Dt=CS,K=Sp,st=null,mt=Rt({},[...kp,...Cl,...bl,...kl,...wp]),G=null,jt=Rt({},[...vp,...wl,...Tp,...pn]),Bt=Object.seal(Ei(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Gt=null,Kt=null,Vt=Object.seal(Ei(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),Oe=!0,pr=!0,gr=!1,fr=!0,Be=!1,ie=!0,Fe=!1,er=!1,rr=null,yr=null,f=!1,q=!1,j=!1,J=!1,H=!0,nt=!1,v="user-content-",P=!0,at=!1,Z={},Q=null,ot=Rt({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]),it=null,gt=Rt({},["audio","video","img","source","image","track"]),ct=null,kt=Rt({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),St="http://www.w3.org/1998/Math/MathML",It="http://www.w3.org/2000/svg",zt="http://www.w3.org/1999/xhtml",mr=zt,xr=!1,Cr=null,Dw=Rt({},[St,It,zt],xl),Wu=fe(["mi","mo","mn","ms","mtext"]),ol=Rt({},Wu),ju=fe(["annotation-xml"]),nl=Rt({},ju),qw=Rt({},["title","style","font","a","script"]),za=null,Pw=["application/xhtml+xml","text/html"],Rw="text/html",Zt=null,wi=null,Nw=r.createElement("form"),Hu=n(function(T){return T instanceof RegExp||T instanceof Function},"isRegexOrFunction"),sl=n(function(){let T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(wi&&wi===T)return;(!T||typeof T!="object")&&(T={}),T=ke(T),za=Pw.indexOf(T.PARSER_MEDIA_TYPE)===-1?Rw:T.PARSER_MEDIA_TYPE,Zt=za==="application/xhtml+xml"?xl:to,st=Or(T,"ALLOWED_TAGS",mt,{transform:Zt}),G=Or(T,"ALLOWED_ATTR",jt,{transform:Zt}),Cr=Or(T,"ALLOWED_NAMESPACES",Dw,{transform:xl}),ct=Or(T,"ADD_URI_SAFE_ATTR",kt,{transform:Zt,base:kt}),it=Or(T,"ADD_DATA_URI_TAGS",gt,{transform:Zt,base:gt}),Q=Or(T,"FORBID_CONTENTS",ot,{transform:Zt}),Gt=Or(T,"FORBID_TAGS",ke({}),{transform:Zt}),Kt=Or(T,"FORBID_ATTR",ke({}),{transform:Zt}),Z=le(T,"USE_PROFILES")?T.USE_PROFILES&&typeof T.USE_PROFILES=="object"?ke(T.USE_PROFILES):T.USE_PROFILES:!1,Oe=T.ALLOW_ARIA_ATTR!==!1,pr=T.ALLOW_DATA_ATTR!==!1,gr=T.ALLOW_UNKNOWN_PROTOCOLS||!1,fr=T.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Be=T.SAFE_FOR_TEMPLATES||!1,ie=T.SAFE_FOR_XML!==!1,Fe=T.WHOLE_DOCUMENT||!1,q=T.RETURN_DOM||!1,j=T.RETURN_DOM_FRAGMENT||!1,J=T.RETURN_TRUSTED_TYPE||!1,f=T.FORCE_BODY||!1,H=T.SANITIZE_DOM!==!1,nt=T.SANITIZE_NAMED_PROPS||!1,P=T.KEEP_CONTENT!==!1,at=T.IN_PLACE||!1,K=Y1(T.ALLOWED_URI_REGEXP)?T.ALLOWED_URI_REGEXP:Sp,mr=typeof T.NAMESPACE=="string"?T.NAMESPACE:zt,ol=le(T,"MATHML_TEXT_INTEGRATION_POINTS")&&T.MATHML_TEXT_INTEGRATION_POINTS&&typeof T.MATHML_TEXT_INTEGRATION_POINTS=="object"?ke(T.MATHML_TEXT_INTEGRATION_POINTS):Rt({},Wu),nl=le(T,"HTML_INTEGRATION_POINTS")&&T.HTML_INTEGRATION_POINTS&&typeof T.HTML_INTEGRATION_POINTS=="object"?ke(T.HTML_INTEGRATION_POINTS):Rt({},ju);let Y=le(T,"CUSTOM_ELEMENT_HANDLING")&&T.CUSTOM_ELEMENT_HANDLING&&typeof T.CUSTOM_ELEMENT_HANDLING=="object"?ke(T.CUSTOM_ELEMENT_HANDLING):Ei(null);if(Bt=Ei(null),le(Y,"tagNameCheck")&&Hu(Y.tagNameCheck)&&(Bt.tagNameCheck=Y.tagNameCheck),le(Y,"attributeNameCheck")&&Hu(Y.attributeNameCheck)&&(Bt.attributeNameCheck=Y.attributeNameCheck),le(Y,"allowCustomizedBuiltInElements")&&typeof Y.allowCustomizedBuiltInElements=="boolean"&&(Bt.allowCustomizedBuiltInElements=Y.allowCustomizedBuiltInElements),ye(Bt),Be&&(pr=!1),j&&(q=!0),Z&&(st=Rt({},wp),G=Ei(null),Z.html===!0&&(Rt(st,kp),Rt(G,vp)),Z.svg===!0&&(Rt(st,Cl),Rt(G,wl),Rt(G,pn)),Z.svgFilters===!0&&(Rt(st,bl),Rt(G,wl),Rt(G,pn)),Z.mathMl===!0&&(Rt(st,kl),Rt(G,Tp),Rt(G,pn))),Vt.tagCheck=null,Vt.attributeCheck=null,le(T,"ADD_TAGS")&&(typeof T.ADD_TAGS=="function"?Vt.tagCheck=T.ADD_TAGS:Pr(T.ADD_TAGS)&&(st===mt&&(st=ke(st)),Rt(st,T.ADD_TAGS,Zt))),le(T,"ADD_ATTR")&&(typeof T.ADD_ATTR=="function"?Vt.attributeCheck=T.ADD_ATTR:Pr(T.ADD_ATTR)&&(G===jt&&(G=ke(G)),Rt(G,T.ADD_ATTR,Zt))),le(T,"ADD_URI_SAFE_ATTR")&&Pr(T.ADD_URI_SAFE_ATTR)&&Rt(ct,T.ADD_URI_SAFE_ATTR,Zt),le(T,"FORBID_CONTENTS")&&Pr(T.FORBID_CONTENTS)&&(Q===ot&&(Q=ke(Q)),Rt(Q,T.FORBID_CONTENTS,Zt)),le(T,"ADD_FORBID_CONTENTS")&&Pr(T.ADD_FORBID_CONTENTS)&&(Q===ot&&(Q=ke(Q)),Rt(Q,T.ADD_FORBID_CONTENTS,Zt)),P&&(st["#text"]=!0),Fe&&Rt(st,["html","head","body"]),st.table&&(Rt(st,["tbody"]),delete Gt.tbody),T.TRUSTED_TYPES_POLICY){if(typeof T.TRUSTED_TYPES_POLICY.createHTML!="function")throw ri('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof T.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw ri('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');let tt=B;B=T.TRUSTED_TYPES_POLICY;try{_=A("")}catch(ht){throw B=tt,ht}}else T.TRUSTED_TYPES_POLICY===null?(B=void 0,_=""):(B===void 0&&(B=O()),B&&typeof _=="string"&&(_=A("")));fe&&fe(T),wi=T},"_parseConfig"),Uu=Rt({},[...Cl,...bl,...hS]),Yu=Rt({},[...kl,...cS]),zw=n(function(T,Y,tt){return Y.namespaceURI===zt?T==="svg":Y.namespaceURI===St?T==="svg"&&(tt==="annotation-xml"||ol[tt]):!!Uu[T]},"_checkSvgNamespace"),Ww=n(function(T,Y,tt){return Y.namespaceURI===zt?T==="math":Y.namespaceURI===It?T==="math"&&nl[tt]:!!Yu[T]},"_checkMathMlNamespace"),jw=n(function(T,Y,tt){return Y.namespaceURI===It&&!nl[tt]||Y.namespaceURI===St&&!ol[tt]?!1:!Yu[T]&&(qw[T]||!Uu[T])},"_checkHtmlNamespace"),Hw=n(function(T){let Y=x(T);(!Y||!Y.tagName)&&(Y={namespaceURI:mr,tagName:"template"});let tt=to(T.tagName),ht=to(Y.tagName);return Cr[T.namespaceURI]?T.namespaceURI===It?zw(tt,Y,ht):T.namespaceURI===St?Ww(tt,Y,ht):T.namespaceURI===zt?jw(tt,Y,ht):!!(za==="application/xhtml+xml"&&Cr[T.namespaceURI]):!1},"_checkValidNamespace"),Kr=n(function(T){Bi(t.removed,{element:T});try{x(T).removeChild(T)}catch{if(g(T),!x(T))throw ri("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},"_forceRemove"),an=n(function(T){ll(T);let Y=m(T);if(Y){let ht=[];Si(Y,Ot=>{Bi(ht,Ot)}),Si(ht,Ot=>{try{g(Ot)}catch{}})}let tt=k(T);if(tt)for(let ht=tt.length-1;ht>=0;--ht){let Ot=tt[ht],qt=Ot&&Ot.name;if(typeof qt=="string")try{T.removeAttribute(qt)}catch{}}},"_neutralizeRoot"),ti=n(function(T,Y){try{Bi(t.removed,{attribute:Y.getAttributeNode(T),from:Y})}catch{Bi(t.removed,{attribute:null,from:Y})}if(Y.removeAttribute(T),T==="is")if(q||j)try{Kr(Y)}catch{}else try{Y.setAttribute(T,"")}catch{}},"_removeAttribute"),Uw=n(function(T){let Y=k(T);if(Y)for(let tt=Y.length-1;tt>=0;--tt){let ht=Y[tt],Ot=ht&&ht.name;if(!(typeof Ot!="string"||G[Zt(Ot)]))try{T.removeAttribute(Ot)}catch{}}},"_stripDisallowedAttributes"),ll=n(function(T){let Y=[T];for(;Y.length>0;){let tt=Y.pop();(w?w(tt):tt.nodeType)===Ae.element&&Uw(tt);let ht=m(tt);if(ht)for(let Ot=ht.length-1;Ot>=0;--Ot)Y.push(ht[Ot])}},"_neutralizeSubtree"),Yw=n(function(T){if(!ie)return;let Y=[T];for(;Y.length>0;
vendor: 7,203 bytes, line 4
4){let tt=Y.pop(),ht=w?w(tt):tt.nodeType;if(ht===Ae.processingInstruction||ht===Ae.comment&&se(_p,tt.data)){try{g(tt)}catch{}continue}if(ht===Ae.element){let qt=tt,Yt=Zt(S?S(tt):tt.nodeName);try{qt.hasAttribute&&qt.hasAttribute("patchsrc")&&qt.removeAttribute("patchsrc"),qt.hasAttribute&&qt.hasAttribute("for")&&Yt!=="label"&&Yt!=="output"&&qt.removeAttribute("for")}catch{}}let Ot=m(tt);if(Ot)for(let qt=Ot.length-1;qt>=0;--qt)Y.push(Ot[qt])}},"_neutralizePatchLinkage"),Vu=n(function(T){let Y=null,tt=null;if(f)T="<remove></remove>"+T;else{let qt=mp(T,/^[\r\n\t ]+/);tt=qt&&qt[0]}za==="application/xhtml+xml"&&mr===zt&&(T='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+T+"</body></html>");let ht=B?A(T):T;if(mr===zt)try{Y=new c().parseFromString(ht,za)}catch{}if(!Y||!Y.documentElement){Y=M.createDocument(mr,"template",null);try{Y.documentElement.innerHTML=xr?_:ht}catch{}}let Ot=Y.body||Y.documentElement;return T&&tt&&Ot.insertBefore(r.createTextNode(tt),Ot.childNodes[0]||null),mr===zt?R.call(Y,Fe?"html":"body")[0]:Fe?Y.documentElement:Ot},"_initDocument"),Gu=n(function(T){return L.call(T.ownerDocument||T,T,d.SHOW_ELEMENT|d.SHOW_COMMENT|d.SHOW_TEXT|d.SHOW_PROCESSING_INSTRUCTION|d.SHOW_CDATA_SECTION,null)},"_createNodeIterator"),on=n(function(T){return T=Ha(T,xt," "),T=Ha(T,wt," "),T=Ha(T,_t," "),T},"_stripTemplateExpressions"),hl=n(function(T){var Y;T.normalize();let tt=L.call(T.ownerDocument||T,T,d.SHOW_TEXT|d.SHOW_COMMENT|d.SHOW_CDATA_SECTION|d.SHOW_PROCESSING_INSTRUCTION,null),ht=tt.nextNode();for(;ht;)ht.data=on(ht.data),ht=tt.nextNode();let Ot=(Y=T.querySelectorAll)===null||Y===void 0?void 0:Y.call(T,"template");Ot&&Si(Ot,qt=>{vi(qt.content)&&hl(qt.content)})},"_scrubTemplateExpressions"),nn=n(function(T){let Y=S?S(T):null;return typeof Y!="string"||Zt(Y)!=="form"?!1:typeof T.nodeName!="string"||typeof T.textContent!="string"||typeof T.removeChild!="function"||T.attributes!==k(T)||typeof T.removeAttribute!="function"||typeof T.setAttribute!="function"||typeof T.namespaceURI!="string"||typeof T.insertBefore!="function"||typeof T.hasChildNodes!="function"||T.nodeType!==w(T)||T.childNodes!==m(T)},"_isClobbered"),vi=n(function(T){if(!w||typeof T!="object"||T===null)return!1;try{return w(T)===Ae.documentFragment}catch{return!1}},"_isDocumentFragment"),Wa=n(function(T){if(!w||typeof T!="object"||T===null)return!1;try{return typeof w(T)=="number"}catch{return!1}},"_isNode");function He(T,Y,tt){T.length!==0&&Si(T,ht=>{ht.call(t,Y,tt,wi)})}n(He,"_executeHooks");let Vw=n(function(T,Y){return!!(ie&&T.hasChildNodes()&&!Wa(T.firstElementChild)&&se(Bp,T.textContent)&&se(Bp,T.innerHTML)||ie&&T.namespaceURI===zt&&Y==="style"&&Wa(T.firstElementChild)||T.nodeType===Ae.processingInstruction||ie&&T.nodeType===Ae.comment&&se(_p,T.data))},"_isUnsafeNode"),Gw=n(function(T,Y){if(!Gt[Y]&&Qu(Y)&&(Bt.tagNameCheck instanceof RegExp&&se(Bt.tagNameCheck,Y)||Bt.tagNameCheck instanceof Function&&Bt.tagNameCheck(Y)))return!1;if(P&&!Q[Y]){let tt=x(T),ht=m(T);if(ht&&tt){let Ot=ht.length;for(let qt=Ot-1;qt>=0;--qt){let Yt=at?ht[qt]:p(ht[qt],!0);tt.insertBefore(Yt,y(T))}}}return Kr(T),!0},"_sanitizeDisallowedNode"),Xu=n(function(T,Y){if(He(X.beforeSanitizeElements,T,null),T!==Y&&x(T)===null)return!0;if(nn(T))return Kr(T),!0;let tt=Zt(S?S(T):T.nodeName);if(He(X.uponSanitizeElement,T,{tagName:tt,allowedTags:st}),T!==Y&&x(T)===null)return!0;if(Vw(T,tt))return Kr(T),!0;if(Gt[tt]||!(Vt.tagCheck instanceof Function&&Vt.tagCheck(tt))&&!st[tt]){let ht=Gw(T,tt);return ht===!1&&He(X.afterSanitizeElements,T,null),ht}if((w?w(T):T.nodeType)===Ae.element&&!Hw(T)||(tt==="noscript"||tt==="noembed"||tt==="noframes")&&se(bS,T.innerHTML))return Kr(T),!0;if(Be&&T.nodeType===Ae.text){let ht=on(T.textContent);T.textContent!==ht&&(Bi(t.removed,{element:T.cloneNode()}),T.textContent=ht)}return He(X.afterSanitizeElements,T,null),!1},"_sanitizeElements"),Zu=n(function(T,Y,tt){if(Kt[Y]||ie&&Y==="patchsrc"||ie&&Y==="for"&&T!=="label"&&T!=="output"||H&&(Y==="id"||Y==="name")&&(tt in r||tt in Nw))return!1;let ht=G[Y]||Vt.attributeCheck instanceof Function&&Vt.attributeCheck(Y,T);if(!(pr&&se($t,Y))&&!(Oe&&se(Ct,Y))){if(ht){if(!ct[Y]&&!se(K,Ha(tt,bt,""))&&!((Y==="src"||Y==="xlink:href"||Y==="href")&&T!=="script"&&xp(tt,"data:")===0&&it[T])&&!(gr&&!se(ut,Ha(tt,bt,"")))&&tt)return!1}else if(!(Qu(T)&&(Bt.tagNameCheck instanceof RegExp&&se(Bt.tagNameCheck,T)||Bt.tagNameCheck instanceof Function&&Bt.tagNameCheck(T))&&(Bt.attributeNameCheck instanceof RegExp&&se(Bt.attributeNameCheck,Y)||Bt.attributeNameCheck instanceof Function&&Bt.attributeNameCheck(Y,T))||Y==="is"&&Bt.allowCustomizedBuiltInElements&&(Bt.tagNameCheck instanceof RegExp&&se(Bt.tagNameCheck,tt)||Bt.tagNameCheck instanceof Function&&Bt.tagNameCheck(tt))))return!1}return!0},"_isValidAttribute"),Xw=Rt({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),Qu=n(function(T){return!Xw[to(T)]&&se(Dt,T)},"_isBasicCustomElement"),Zw=n(function(T,Y,tt,ht){if(B&&typeof h=="object"&&typeof h.getAttributeType=="function"&&!tt)switch(h.getAttributeType(T,Y)){case"TrustedHTML":return A(ht);case"TrustedScriptURL":return W(ht)}return ht},"_applyTrustedTypesToAttribute"),Qw=n(function(T,Y,tt,ht){try{tt?T.setAttributeNS(tt,Y,ht):T.setAttribute(Y,ht),nn(T)?Kr(T):yp(t.removed)}catch{ti(Y,T)}},"_setAttributeValue"),Ju=n(function(T){He(X.beforeSanitizeAttributes,T,null);let Y=T.attributes;if(!Y||nn(T))return;let tt={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:G,forceKeepAttr:void 0},ht=Y.length,Ot=Zt(T.nodeName);for(;ht--;){let qt=Y[ht],Yt=qt.name,Er=qt.namespaceURI,dl=qt.value,Me=Zt(Yt),Ue=dl,Qt=Yt==="value"?Ue:nS(Ue);if(tt.attrName=Me,tt.attrValue=Qt,tt.keepAttr=!0,tt.forceKeepAttr=void 0,He(X.uponSanitizeAttribute,T,tt),Qt=tt.attrValue,nt&&(Me==="id"||Me==="name")&&xp(Qt,v)!==0&&(ti(Yt,T),Qt=v+Qt),ie&&se(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,Qt)){ti(Yt,T);continue}if(Me==="attributename"&&mp(Qt,"href")){ti(Yt,T);continue}if(!tt.forceKeepAttr){if(!tt.keepAttr){ti(Yt,T);continue}if(!fr&&se(kS,Qt)){ti(Yt,T);continue}if(Be&&(Qt=on(Qt)),!Zu(Ot,Me,Qt)){ti(Yt,T);continue}Qt=Zw(Ot,Me,Er,Qt),Qt!==Ue&&Qw(T,Yt,Er,Qt)}}He(X.afterSanitizeAttributes,T,null)},"_sanitizeAttributes"),sn=n(function(T){let Y=null,tt=Gu(T);for(He(X.beforeSanitizeShadowDOM,T,null);Y=tt.nextNode();)if(He(X.uponSanitizeShadowNode,Y,null),Xu(Y,T),Ju(Y),vi(Y.content)&&sn(Y.content),(w?w(Y):Y.nodeType)===Ae.element){let ht=C(Y);vi(ht)&&(cl(ht),sn(ht))}He(X.afterSanitizeShadowDOM,T,null)},"_sanitizeShadowDOM"),cl=n(function(T){let Y=[{node:T,shadow:null}];for(;Y.length>0;){let tt=Y.pop();if(tt.shadow){sn(tt.shadow);continue}let ht=tt.node,Ot=(w?w(ht):ht.nodeType)===Ae.element,qt=m(ht);if(qt)for(let Yt=qt.length-1;Yt>=0;--Yt)Y.push({node:qt[Yt],shadow:null});if(Ot){let Yt=S?S(ht):null;if(typeof Yt=="string"&&Zt(Yt)==="template"){let Er=ht.content;vi(Er)&&Y.push({node:Er,shadow:null})}}if(Ot){let Yt=C(ht);vi(Yt)&&Y.push({node:null,shadow:Yt},{node:Yt,shadow:null})}}},"_sanitizeAttachedShadowRoots");return t.sanitize=function(T){let Y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{}
vendor: 2,258 bytes, lines 4-5
4,tt=null,ht=null,Ot=null,qt=null;if(xr=!T,xr&&(T="<!-->"),typeof T!="string"&&!Wa(T)&&(T=U1(T),typeof T!="string"))throw ri("dirty is not a string, aborting");if(!t.isSupported)return T;er?(st=rr,G=yr):sl(Y),(X.uponSanitizeElement.length>0||X.uponSanitizeAttribute.length>0)&&(st=ke(st)),X.uponSanitizeAttribute.length>0&&(G=ke(G)),t.removed=[];let Yt=at&&typeof T!="string"&&Wa(T);if(Yt){Yw(T);let Ue=S?S(T):T.nodeName;if(typeof Ue=="string"){let Qt=Zt(Ue);if(!st[Qt]||Gt[Qt])throw an(T),ri("root node is forbidden and cannot be sanitized in-place")}if(nn(T))throw an(T),ri("root node is clobbered and cannot be sanitized in-place");try{cl(T)}catch(Qt){throw an(T),Qt}}else if(Wa(T))tt=Vu("<!---->"),ht=tt.ownerDocument.importNode(T,!0),ht.nodeType===Ae.element&&ht.nodeName==="BODY"||ht.nodeName==="HTML"?tt=ht:tt.appendChild(ht),cl(ht);else{if(!q&&!Be&&!Fe&&T.indexOf("<")===-1)return B&&J?A(T):T;if(tt=Vu(T),!tt)return q?null:J?_:""}tt&&f&&Kr(tt.firstChild);let Er=Yt?T:tt,dl=Gu(Er);try{for(;Ot=dl.nextNode();)Xu(Ot,Er),Ju(Ot),vi(Ot.content)&&sn(Ot.content)}catch(Ue){throw Yt&&(an(T),Si(t.removed,Qt=>{Qt.element&&ll(Qt.element)})),Ue}if(Yt)return Si(t.removed,Ue=>{Ue.element&&ll(Ue.element)}),Be&&hl(T),T;if(q){if(Be&&hl(tt),j)for(qt=D.call(tt.ownerDocument);tt.firstChild;)qt.appendChild(tt.firstChild);else qt=tt;return(G.shadowroot||G.shadowrootmode)&&(qt=rt.call(i,qt,!0)),qt}let Me=Fe?tt.outerHTML:tt.innerHTML;return Fe&&st["!doctype"]&&tt.ownerDocument&&tt.ownerDocument.doctype&&tt.ownerDocument.doctype.name&&se(xS,tt.ownerDocument.doctype.name)&&(Me="<!DOCTYPE "+tt.ownerDocument.doctype.name+`> 5`+Me),Be&&(Me=on(Me)),B&&J?A(Me):Me},t.setConfig=function(){let T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};sl(T),er=!0,rr=st,yr=G},t.clearConfig=function(){wi=null,er=!1,rr=null,yr=null,B=$,_=""},t.isValidAttribute=function(T,Y,tt){wi||sl({});let ht=Zt(T),Ot=Zt(Y);return Zu(ht,Ot,tt)},t.addHook=function(T,Y){typeof Y=="function"&&le(X,T)&&Bi(X[T],Y)},t.removeHook=function(T,Y){if(le(X,T)){if(Y!==void 0){let tt=aS(X[T],Y);return tt===-1?void 0:oS(X[T],tt,1)[0]}return yp(X[T])}},t.removeHooks=function(T){le(X,T)&&(X[T]=[])},t.removeAllHooks=function(){X=$p()},t}n(_d,"createDOMPurify");var La=_d(),Zo=/<br\s*\/?>/gi,TS=n(e=>
vendor: 5,806 bytes, lines 5-79
5e?X1(e).replace(/\\n/g,"#br#").split("#br#"):[""],"getRows"),SS=(()=>{let e=!1;return()=>{e||(V1(),e=!0)}})();function V1(){let e="data-temp-href-target";La.addHook("beforeSanitizeAttributes",t=>{t.tagName==="A"&&t.hasAttribute("target")&&t.setAttribute(e,t.getAttribute("target")??"")}),La.addHook("afterSanitizeAttributes",t=>{t.tagName==="A"&&t.hasAttribute(e)&&(t.setAttribute("target",t.getAttribute(e)??""),t.removeAttribute(e),t.getAttribute("target")==="_blank"&&t.setAttribute("rel","noopener"))})}n(V1,"setupDompurifyHooks");var G1=n(e=>(SS(),La.sanitize(e)),"removeScript"),Lp=n((e,t)=>{if(ve(t)){let r=t.securityLevel;r==="antiscript"||r==="strict"||r==="sandbox"?e=G1(e):r!=="loose"&&(e=X1(e),e=e.replace(/</g,"<").replace(/>/g,">"),e=e.replace(/=/g,"="),e=LS(e))}return e},"sanitizeMore"),Ne=n((e,t)=>e&&(t.dompurifyConfig?e=La.sanitize(Lp(e,t),t.dompurifyConfig).toString():e=La.sanitize(Lp(e,t),{FORBID_TAGS:["style"]}).toString(),e),"sanitizeText"),BS=n((e,t)=>typeof e=="string"?Ne(e,t):e.flat().map(r=>Ne(r,t)),"sanitizeTextOrArray"),_S=n(e=>Zo.test(e),"hasBreaks"),$S=n(e=>e.split(Zo),"splitBreaks"),LS=n(e=>e.replace(/#br#/g,"<br/>"),"placeholderToBreak"),X1=n(e=>e.replace(Zo,"#br#"),"breakToPlaceholder"),FS=n(e=>{let t="";return e&&(t=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,t=CSS.escape(t)),t},"getUrl"),MS=n(function(...e){let t=e.filter(r=>!isNaN(r));return Math.max(...t)},"getMax"),AS=n(function(...e){let t=e.filter(r=>!isNaN(r));return Math.min(...t)},"getMin"),Fp=n(function(e){let t=e.split(/(,)/),r=[];for(let i=0;i<t.length;i++){let a=t[i];if(a===","&&i>0&&i+1<t.length){let o=t[i-1],s=t[i+1];ES(o,s)&&(a=o+","+s,i++,r.pop())}r.push(OS(a))}return r.join("")},"parseGenericTypes"),Ih=n((e,t)=>Math.max(0,e.split(t).length-1),"countOccurrence"),ES=n((e,t)=>{let r=Ih(e,"~"),i=Ih(t,"~");return r===1&&i===1},"shouldCombineSets"),OS=n(e=>{let t=Ih(e,"~"),r=!1;if(t<=1)return e;t%2!==0&&e.startsWith("~")&&(e=e.substring(1),r=!0);let i=[...e],a=i.indexOf("~"),o=i.lastIndexOf("~");for(;a!==-1&&o!==-1&&a!==o;)i[a]="<",i[o]=">",a=i.indexOf("~"),o=i.lastIndexOf("~");return r&&i.unshift("~"),i.join("")},"processSet"),Mp=n(()=>window.MathMLElement!==void 0,"isMathMLSupported"),Dh=/\$\$(.*?)\$\$/g,Oo=n(e=>(e.match(Dh)?.length??0)>0,"hasKatex"),AF=n(async(e,t)=>{let r=document.createElement("div");r.innerHTML=await Z1(e,t),r.id="katex-temp",r.style.visibility="hidden",r.style.position="absolute",r.style.top="0",document.querySelector("body")?.insertAdjacentElement("beforeend",r);let i={width:r.clientWidth,height:r.clientHeight};return r.remove(),i},"calculateMathMLDimensions"),IS=n(async(e,t)=>{if(!Oo(e))return e;if(!(Mp()||t.legacyMathML||t.forceLegacyMathML))return e.replace(Dh,"MathML is unsupported in this environment.");{let{default:r}=await Et(async()=>{const{default:a}=await import("./D4qWU2hq.js");return{default:a}},__vite__mapDeps([0,1,2,3]),import.meta.url),i=t.forceLegacyMathML||!Mp()&&t.legacyMathML?"htmlAndMathml":"mathml";return e.split(Zo).map(a=>Oo(a)?`<div style="display: flex; align-items: center; justify-content: center; white-space: nowrap;">${a}</div>`:`<div>${a}</div>`).join("").replace(Dh,(a,o)=>r.renderToString(o,{throwOnError:!0,displayMode:!0,output:i}).replace(/\n/g," ").replace(/<annotation.*<\/annotation>/g,""))}},"renderKatexUnsanitized"),Z1=n(async(e,t)=>Ne(await IS(e,t),t),"renderKatexSanitized"),Qo={getRows:TS,sanitizeText:Ne,sanitizeTextOrArray:BS,hasBreaks:_S,splitBreaks:$S,lineBreakRegex:Zo,removeScript:G1,getUrl:FS,evaluate:dr,getMax:MS,getMin:AS},DS=n(function(e,t){for(let r of t)e.attr(r[0],r[1])},"d3Attrs"),qS=n(function(e,t,r){let i=new Map;return r?(i.set("width","100%"),i.set("style",`max-width: ${t}px;`)):(i.set("height",e),i.set("width",t)),i},"calculateSvgSizeAttrs"),Q1=n(function(e,t,r,i){DS(e,qS(t,r,i))},"configureSvgSize"),PS=n(function(e,t,r,i){let a=t.node().getBBox(),o=a.width,s=a.height;et.info(`SVG bounds: ${o}x${s}`,a);let l=0,d=0;et.info(`Graph bounds: ${l}x${d}`,e),l=o+r*2,d=s+r*2,et.info(`Calculated bounds: ${l}x${d}`),Q1(t,d,l,i);let c=`${a.x-r} ${a.y-r} ${a.width+2*r} ${a.height+2*r}`;t.attr("viewBox",c)},"setupGraphViewbox"),In={};function qh(e){return[...e.cssRules].map(t=>t.cssText).join(` 6`)}n(qh,"cssStyleSheetToString");var RS=n((e,t,r,i)=>{let a="";return e in In&&In[e]?a=In[e]({...r,svgId:i}):et.warn(`No theme found for ${e}`),`& { 7 font-family: ${r.fontFamily}; 8 font-size: ${r.fontSize}; 9 fill: ${r.textColor} 10 } 11 @keyframes edge-animation-frame { 12 from { 13 stroke-dashoffset: 0; 14 } 15 } 16 @keyframes dash { 17 to { 18 stroke-dashoffset: 0; 19 } 20 } 21 & .edge-animation-slow { 22 stroke-dasharray: 9,5 !important; 23 stroke-dashoffset: 900; 24 animation: dash 50s linear infinite; 25 stroke-linecap: round; 26 } 27 & .edge-animation-fast { 28 stroke-dasharray: 9,5 !important; 29 stroke-dashoffset: 900; 30 animation: dash 20s linear infinite; 31 stroke-linecap: round; 32 } 33 /* Classes common for multiple diagrams */ 34 35 & .error-icon { 36 fill: ${r.errorBkgColor}; 37 } 38 & .error-text { 39 fill: ${r.errorTextColor}; 40 stroke: ${r.errorTextColor}; 41 } 42 43 & .edge-thickness-normal { 44 stroke-width: ${r.strokeWidth??1}px; 45 } 46 & .edge-thickness-thick { 47 stroke-width: 3.5px 48 } 49 & .edge-pattern-solid { 50 stroke-dasharray: 0; 51 } 52 & .edge-thickness-invisible { 53 stroke-width: 0; 54 fill: none; 55 } 56 & .edge-pattern-dashed{ 57 stroke-dasharray: 3; 58 } 59 .edge-pattern-dotted { 60 stroke-dasharray: 2; 61 } 62 63 & .marker { 64 fill: ${r.lineColor}; 65 stroke: ${r.lineColor}; 66 } 67 & .marker.cross { 68 stroke: ${r.lineColor}; 69 } 70 71 & svg { 72 font-family: ${r.fontFamily}; 73 font-size: ${r.fontSize}; 74 } 75 & p { 76 margin: 0 77 } 78 79 ${a}
80 .node .neo-node { 81 stroke: ${r.nodeBorder}; 82 } 83 84 [data-look="neo"].node rect, [data-look="neo"].cluster rect, [data-look="neo"].node polygon { 85 stroke: ${r.useGradient?"url("+i+"-gradient)":r.nodeBorder}; 86 filter: ${r.dropShadow?r.dropShadow.replace("url(#drop-shadow)",`url(${i}-drop-shadow)`):"none"}; 87 } 88 [data-look="neo"].swimlane.cluster rect { 89 filter: none; 90 } 91 92 93 [data-look="neo"].node path { 94 stroke: ${r.useGradient?"url("+i+"-gradient)":r.nodeBorder}; 95 stroke-width: ${r.strokeWidth??1}px; 96 } 97 98 [data-look="neo"].node .outer-path { 99 filter: ${r.dropShadow?r.dropShadow.replace("url(#drop-shadow)",`url(${i}-drop-shadow)`):"none"}; 100 } 101 102 [data-look="neo"].node .neo-line path { 103 stroke: ${r.nodeBorder}; 104 filter: none; 105 } 106 107 [data-look="neo"].node circle{ 108 stroke: ${r.useGradient?"url("+i+"-gradient)":r.nodeBorder}; 109 filter: ${r.dropShadow?r.dropShadow.replace("url(#drop-shadow)",`url(${i}-drop-shadow)`):"none"}; 110 } 111 112 [data-look="neo"].node circle .state-start{ 113 fill: #000000; 114 } 115 116 [data-look="neo"].icon-shape .icon { 117 fill: ${r.useGradient?"url("+i+"-gradient)":r.nodeBorder}; 118 filter: ${r.dropShadow?r.dropShadow.replace("url(#drop-shadow)",`url(${i}-drop-shadow)`):"none"}; 119 } 120 121 [data-look="neo"].icon-shape .icon-neo path { 122 stroke: ${r.useGradient?"url("+i+"-gradient)":r.nodeBorder}; 123 filter: ${r.dropShadow?r.dropShadow.replace("url(#drop-shadow)",`url(${i}-drop-shadow)`):"none"}; 124 } 125 126 ${t} 127`},"getStyles"),NS=n((e,t)=>{t!==void 0&&(In[e]=t)},"addStylesForDiagram"),zS=RS,J1={};ov(J1,{clear:()=>WS,getAccDescription:()=>YS,getAccTitle:()=>HS,getDiagramTitle:()=>GS,setAccDescription:()=>US,setAccTitle:()=>jS,setDiagramTitle:()=>VS});var $d="",Ld="",Fd="",Md=n(e=>Ne(e,Jt()),"sanitizeText"),WS=n(()=>{$d="",Fd="",Ld=""},"clear"),jS=n(e=>{$d=Md(e).replace(/^\s+/g,"")},"setAccTitle"),HS=n(()=>$d,"getAccTitle"),US=n(e=>{Fd=Md(e).replace(/\n\s+/g,` 128`)},"setAccDescription"),YS=n(()=>Fd,"getAccDescription"),VS=n(e=>{Ld=Md(e)},"setDiagramTitle"),GS=n(()=>Ld,"getDiagramTitle"),Ap=et,XS=pc,Pt=Jt,EF=F1,OF=$a,Ad=n(e=>Ne(e,Pt()),"sanitizeText"),ZS=PS,QS=n(()=>J1,"getCommonDb"),ss={},ls=n((e,t,r)=>{ss[e]&&Ap.warn(`Diagram with id ${e} already registered. Overwriting.`),ss[e]=t,r&&I1(e,r),NS(e,t.styles),t.injectUtils?.(Ap,XS,Pt,Ad,ZS,QS(),()=>{})},"registerDiagram"),Ph=n(e=>{if(e in ss)return ss[e];throw new JS(e)},"getDiagram"),ha,JS=(ha=class extends Error{constructor(t){super(`Diagram ${t} not found.`)}},n(ha,"DiagramNotFoundError"),ha),KS=n(e=>{let{securityLevel:t}=Pt(),r=At("body");return t==="sandbox"&&(r=At((At(`#i${e}`).node()?.contentDocument??document).body)),r.select(`#${e}`)},"selectSvgElement"),tB=Object.freeze({left:0,top:0,width:16,height:16}),hs=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),K1=Object.freeze({...tB,...hs}),eB=Object.freeze({...K1,body:"",hidden:!1}),rB=Object.freeze({width:null,height:null}),iB=Object.freeze({...rB,...hs}),aB=n((e,t,r,i="")=>{let a=e.split(":");if(e.slice(0,1)==="@"){if(a.length<2||a.length>3)return null;i=a.shift().slice(1)}if(a.length>3||!a.length)return null;if(a.length>1){let l=a.pop(),d=a.pop(),c={provider:a.length>0?a[0]:i,prefix:d,name:l};return t&&!vl(c)?null:c}let o=a[0],s=o.split("-");if(s.length>1){let l={provider:i,prefix:s.shift(),name:s.join("-")};return t&&!vl(l)?null:l}if(r&&i===""){let l={provider:i,prefix:"",name:o};return t&&!vl(l,r)?null:l}return null},"stringToIcon"),vl=n((e,t)=>e?!!((t&&e.prefix===""||e.prefix)&&e.name):!1,"validateIconName");function tb(e,t){let r={};!e.hFlip!=!t.hFlip&&(r.hFlip=!0),!e.vFlip!=!t.vFlip&&(r.vFlip=!0);let i=((e.rotate||0)+(t.rotate||0))%4;return i&&(r.rotate=i),r}n(tb,"mergeIconTransformations");function Rh(e,t){let r=tb(e,t);for(let i in eB)i in hs?i in e&&!(i in r)&&(r[i]=hs[i]):i in t?r[i]=t[i]:i in e&&(r[i]=e[i]);return r}n(Rh,"mergeIconData");function eb(e,t){let r=e.icons,i=e.aliases||Object.create(null),a=Object.create(null);function o(s){if(r[s])return a[s]=[];if(!(s in a)){a[s]=null;let l=i[s]&&i[s].parent,d=l&&o(l);d&&(a[s]=[l].concat(d))}return a[s]}return n(o,"resolve"),(t||Object.keys(r).concat(Object.keys(i))).forEac
vendor: 4,722 bytes, line 128
128h(o),a}n(eb,"getIconsTree");function Nh(e,t,r){let i=e.icons,a=e.aliases||Object.create(null),o={};function s(l){o=Rh(i[l]||a[l],o)}return n(s,"parse"),s(t),r.forEach(s),Rh(e,o)}n(Nh,"internalGetIconData");function rb(e,t){if(e.icons[t])return Nh(e,t,[]);let r=eb(e,[t])[t];return r?Nh(e,t,r):null}n(rb,"getIconData");var oB=/(-?[0-9.]*[0-9]+[0-9.]*)/g,nB=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function zh(e,t,r){if(t===1)return e;if(r=r||100,typeof e=="number")return Math.ceil(e*t*r)/r;if(typeof e!="string")return e;let i=e.split(oB);if(i===null||!i.length)return e;let a=[],o=i.shift(),s=nB.test(o);for(;;){if(s){let l=parseFloat(o);isNaN(l)?a.push(o):a.push(Math.ceil(l*t*r)/r)}else a.push(o);if(o=i.shift(),o===void 0)return a.join("");s=!s}}n(zh,"calculateSize");function ib(e,t="defs"){let r="",i=e.indexOf("<"+t);for(;i>=0;){let a=e.indexOf(">",i),o=e.indexOf("</"+t);if(a===-1||o===-1)break;let s=e.indexOf(">",o);if(s===-1)break;r+=e.slice(a+1,o).trim(),e=e.slice(0,i).trim()+e.slice(s+1)}return{defs:r,content:e}}n(ib,"splitSVGDefs");function ab(e,t){return e?"<defs>"+e+"</defs>"+t:t}n(ab,"mergeDefsAndContent");function ob(e,t,r){let i=ib(e);return ab(i.defs,t+i.content+r)}n(ob,"wrapSVGContent");var sB=n(e=>e==="unset"||e==="undefined"||e==="none","isUnsetKeyword");function nb(e,t){let r={...K1,...e},i={...iB,...t},a={left:r.left,top:r.top,width:r.width,height:r.height},o=r.body;[r,i].forEach(m=>{let x=[],C=m.hFlip,k=m.vFlip,w=m.rotate;C?k?w+=2:(x.push("translate("+(a.width+a.left).toString()+" "+(0-a.top).toString()+")"),x.push("scale(-1 1)"),a.top=a.left=0):k&&(x.push("translate("+(0-a.left).toString()+" "+(a.height+a.top).toString()+")"),x.push("scale(1 -1)"),a.top=a.left=0);let S;switch(w<0&&(w-=Math.floor(w/4)*4),w=w%4,w){case 1:S=a.height/2+a.top,x.unshift("rotate(90 "+S.toString()+" "+S.toString()+")");break;case 2:x.unshift("rotate(180 "+(a.width/2+a.left).toString()+" "+(a.height/2+a.top).toString()+")");break;case 3:S=a.width/2+a.left,x.unshift("rotate(-90 "+S.toString()+" "+S.toString()+")");break}w%2===1&&(a.left!==a.top&&(S=a.left,a.left=a.top,a.top=S),a.width!==a.height&&(S=a.width,a.width=a.height,a.height=S)),x.length&&(o=ob(o,'<g transform="'+x.join(" ")+'">',"</g>"))});let s=i.width,l=i.height,d=a.width,c=a.height,h,u;s===null?(u=l===null?"1em":l==="auto"?c:l,h=zh(u,d/c)):(h=s==="auto"?d:s,u=l===null?zh(h,c/d):l==="auto"?c:l);let p={},g=n((m,x)=>{sB(x)||(p[m]=x.toString())},"setAttr");g("width",h),g("height",u);let y=[a.left,a.top,d,c];return p.viewBox=y.join(" "),{attributes:p,viewBox:y,body:o}}n(nb,"iconToSVG");var lB=/\sid="(\S+)"/g,hB="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16),cB=0;function sb(e,t=hB){let r=[],i;for(;i=lB.exec(e);)r.push(i[1]);if(!r.length)return e;let a="suffix"+(Math.random()*16777216|Date.now()).toString(16);return r.forEach(o=>{let s=typeof t=="function"?t(o):t+(cB++).toString(),l=o.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+l+')([")]|\\.[a-z])',"g"),"$1"+s+a+"$3")}),e=e.replace(new RegExp(a,"g"),""),e}n(sb,"replaceIDs");function lb(e,t){let r=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(let i in t)r+=" "+i+'="'+t[i]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+r+">"+e+"</svg>"}n(lb,"iconToHTML");var dB={body:'<g><rect width="80" height="80" style="fill: #087ebf; stroke-width: 0px;"/><text transform="translate(21.16 64.67)" style="fill: #fff; font-family: ArialMT, Arial; font-size: 67.75px;"><tspan x="0" y="0">?</tspan></text></g>',height:80,width:80},Wh=new Map,hb=new Map,uB=n(e=>{for(let t of e){if(!t.name)throw new Error('Invalid icon loader. Must have a "name" property with non-empty string value.');if(et.debug("Registering icon pack:",t.name),"loader"in t)hb.set(t.name,t.loader);else if("icons"in t)Wh.set(t.name,t.icons);else throw et.error("Invalid icon loader:",t),new Error('Invalid icon loader. Must have either "icons" or "loader" property.')}},"registerIconPacks"),cb=n(async(e,t)=>{let r=aB(e,!0,t!==void 0);if(!r)throw new Error(`Invalid icon name: ${e}`);let i=r.prefix||t;if(!i)throw new Error(`Icon name must contain a prefix: ${e}`);let a=Wh.get(i);if(!a){let s=hb.get(i);if(!s)throw new Error(`Icon set not found: ${r.prefix}`);try{a={...await s(),prefix:i},Wh.set(i,a)}catch(l){throw et.error(l),new Error(`Failed to load icon set: ${r.prefix}`)}}let o=rb(a,r.name);if(!o)throw new Error(`Icon not found: ${e}`);return o},"getRegisteredIconData"),pB=n(async e=>{try{return await cb(e),!0}catch{return!1}},"isIconAvailable"),Jo=n(async(e,t,r)=>{let i;try{i=await cb(e,t?.fallbackPrefix)}catch(o){et.error(o),i=dB}let a=nb(i,t);return Ne(lb(sb(a.body),{...a.attributes,...r}),Jt())},"getIconSVG"),gB=No(e=>
vendor: 6,686 bytes, line 128
128{Object.defineProperty(e,"__esModule",{value:!0}),e.BLANK_URL=e.relativeFirstCharacters=e.whitespaceEscapeCharsRegex=e.urlSchemeRegex=e.ctrlCharactersRegex=e.htmlCtrlEntityRegex=e.htmlEntitiesRegex=e.invalidProtocolRegex=void 0,e.invalidProtocolRegex=/^([^\w]*)(javascript|data|vbscript)/im,e.htmlEntitiesRegex=/&#(\w+)(^\w|;)?/g,e.htmlCtrlEntityRegex=/&(newline|tab);/gi,e.ctrlCharactersRegex=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,e.urlSchemeRegex=/^.+(:|:)/gim,e.whitespaceEscapeCharsRegex=/(\\|%5[cC])((%(6[eE]|72|74))|[nrt])/g,e.relativeFirstCharacters=[".","/"],e.BLANK_URL="about:blank"}),fB=No(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.sanitizeUrl=s;var t=gB();function r(l){return t.relativeFirstCharacters.indexOf(l[0])>-1}n(r,"isRelativeUrlWithoutProtocol");function i(l){return l.replace(t.ctrlCharactersRegex,"").replace(t.htmlEntitiesRegex,function(d,c){return String.fromCharCode(c)})}n(i,"decodeHtmlCharacters");function a(l){return URL.canParse(l)}n(a,"isValidUrl");function o(l){try{return decodeURIComponent(l)}catch{return l}}n(o,"decodeURI");function s(l){if(!l)return t.BLANK_URL;var d,c=o(l.trim());do c=i(c).replace(t.htmlCtrlEntityRegex,"").replace(t.ctrlCharactersRegex,"").replace(t.whitespaceEscapeCharsRegex,"").trim(),c=o(c),d=c.match(t.ctrlCharactersRegex)||c.match(t.htmlEntitiesRegex)||c.match(t.htmlCtrlEntityRegex)||c.match(t.whitespaceEscapeCharsRegex);while(d&&d.length>0);var h=c;if(!h)return t.BLANK_URL;if(r(h))return h;var u=h.trimStart(),p=u.match(t.urlSchemeRegex);if(!p)return h;var g=p[0].toLowerCase().trim();if(t.invalidProtocolRegex.test(g))return t.BLANK_URL;var y=u.replace(/\\/g,"/");if(g==="mailto:"||g.includes("://"))return y;if(g==="http:"||g==="https:"){if(!a(y))return t.BLANK_URL;var m=new URL(y);return m.protocol=m.protocol.toLowerCase(),m.hostname=m.hostname.toLowerCase(),m.toString()}return y}n(s,"sanitizeUrl")}),yB=Bs(fB());function db(e){return Number.isSafeInteger(e)&&e>=0}n(db,"isLength");function Ed(e){return e!=null&&typeof e!="function"&&db(e.length)}n(Ed,"isArrayLike");function ub(e){return e==="__proto__"}n(ub,"isUnsafeProperty");function Ko(e){return e==null||typeof e!="object"&&typeof e!="function"}n(Ko,"isPrimitive");function Od(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}n(Od,"getSymbols");function Ea(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}n(Ea,"getTag");var Id="[object RegExp]",Io="[object String]",js="[object Number]",Hs="[object Boolean]",Us="[object Arguments]",Dd="[object Symbol]",qd="[object Date]",Pd="[object Map]",Rd="[object Set]",pb="[object Array]",Nd="[object ArrayBuffer]",zd="[object Object]",Wd="[object DataView]",gb="[object Uint8Array]",fb="[object Uint8ClampedArray]",yb="[object Uint16Array]",mb="[object Uint32Array]",xb="[object Int8Array]",Cb="[object Int16Array]",bb="[object Int32Array]",kb="[object Float32Array]",wb="[object Float64Array]";function Ys(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}n(Ys,"isTypedArray");function vb(e,t){return li(e,void 0,e,new Map,t)}n(vb,"cloneDeepWith");function li(e,t,r,i=new Map,a=void 0){let o=a?.(e,t,r,i);if(o!==void 0)return o;if(Ko(e))return e;if(i.has(e))return i.get(e);if(Array.isArray(e)){let s=new Array(e.length);i.set(e,s);for(let l=0;l<e.length;l++)s[l]=li(e[l],l,r,i,a);return Object.hasOwn(e,"index")&&(s.index=e.index),Object.hasOwn(e,"input")&&(s.input=e.input),s}if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp){let s=new RegExp(e.source,e.flags);return s.lastIndex=e.lastIndex,s}if(e instanceof Map){let s=new Map;i.set(e,s);for(let[l,d]of e)s.set(l,li(d,l,r,i,a));return s}if(e instanceof Set){let s=new Set;i.set(e,s);for(let l of e)s.add(li(l,void 0,r,i,a));return s}if(typeof Buffer<"u"&&Buffer.isBuffer(e))return e.subarray();if(Ys(e)){let s=new(Object.getPrototypeOf(e)).constructor(e.length);i.set(e,s);for(let l=0;l<e.length;l++)s[l]=li(e[l],l,r,i,a);return s}if(e instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&e instanceof SharedArrayBuffer)return e.slice(0);if(e instanceof DataView){let s=new DataView(e.buffer.slice(0),e.byteOffset,e.byteLength);return i.set(e,s),De(s,e,r,i,a),s}if(typeof File<"u"&&e instanceof File){let s=new File([e],e.name,{type:e.type});return i.set(e,s),De(s,e,r,i,a),s}if(typeof Blob<"u"&&e instanceof Blob){let s=new Blob([e],{type:e.type});return i.set(e,s),De(s,e,r,i,a),s}if(e instanceof Error){let s=structuredClone(e);return i.set(e,s),s.message=e.message,s.name=e.name,s.stack=e.stack,s.cause=e.cause,s.constructor=e.constructor,De(s,e,r,i,a),s}if(e instanceof Boolean){let s=new Boolean(e.valueOf());return i.set(e,s),De(s,e,r,i,a),s}if(e instanceof Number){let s=new Number(e.valueOf());return i.set(e,s),De(s,e,r,i,a),s}if(e instanceof String){let s=new String(e.valueOf());return i.set(e,s),De(s,e,r,i,a),s}if(typeof e=="object"&&Tb(e)){let s=Object.create(Object.getPrototypeOf(e));return i.set(e,s),De(s,e,r,i,a),s}return e}n(li,"cloneDeepWithImpl");function De(e,t,r=e,i,a){let o=[...Object.keys(t),...Od(t)];for(let s=0;s<o.length;s++){let l=o[s],d=Object.getOwnPropertyDescriptor(e,l);(d==null||d.writable)&&(e[l]=li(t[l],l,r,i,a))}}n(De,"copyProperties");function Tb(e){switch(Ea(e)){case Us:case pb:case Nd:case Wd:case Hs:case qd:case kb:case wb:case xb:case Cb:case bb:case Pd:case js:case zd:case Id:case Rd:case Io:case Dd:case gb:case fb:case yb:case mb:return!0;default:return!1}}n(Tb,"isCloneableObject");function Sb(e,t){return vb(e,(r,i,a,o)=>{let s=t?.(r,i,a,o);if(s!==void 0)return s;if(typeof e=="object"){if(Ea(e)===zd&&typeof e.constructor!="function"){let l={};return o.set(e,l),De(l,e,a,o),l}switch(Object.prototype.toString.call(e)){case js:case Io:case Hs:{let l=new e.constructor(e?.valueOf());return De(l,e),l}case Us:{let l={};return De(l,e),l.length=e.length,l[Symbol.iterator]=e[Symbol.iterator],l}default:return}}})}n(Sb,"cloneDeepWith");function jh(e){return Sb(e)}n(jh,"cloneDeep");function cs(e){return e!==null&&typeof e=="object"&&Ea(e)==="[object Arguments]"}n(cs,"isArguments");function ds(e){return typeof e=="object"&&e!==null}n(ds,"isObjectLike");function Bb(e){return ds(e)&&Ed(e)}n(Bb,"isArrayLikeObject");function _b(e){return Array.isArray(e)}n(_b,"isArray");function Oa(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError("Expected a function");let r=n(function(...i){let a=t?t.apply(this,i):i[0],o=r.cache;if(o.has(a))return o.get(a);let s=e.apply(this,i);return r.cache=o.set(a,s)||o,s},"memoized");return r.cache=new(Oa.Cache||Map),r}n(Oa,"memoize");Oa.Cache=Map;function $b(){}n($b,"noop");
vendor: 8,825 bytes, lines 128-129
128function Lb(e){let t=e?.constructor;return e===(typeof t=="function"?t.prototype:Object.prototype)}n(Lb,"isPrototype");function Ui(e){return Ys(e)}n(Ui,"isTypedArray");function mB(e){if(Ko(e))return e;let t=Ea(e);if(!Fb(e))return{};if(_b(e)){let i=Array.from(e);return e.length>0&&typeof e[0]=="string"&&Object.hasOwn(e,"index")&&(i.index=e.index,i.input=e.input),i}if(Ui(e)){let i=e,a=i.constructor;return new a(i.buffer,i.byteOffset,i.length)}if(t===Nd)return new ArrayBuffer(e.byteLength);if(t===Wd){let i=e,a=i.buffer,o=i.byteOffset,s=i.byteLength,l=new ArrayBuffer(s),d=new Uint8Array(a,o,s);return new Uint8Array(l).set(d),new DataView(l)}if(t===Hs||t===js||t===Io){let i=e.constructor,a=new i(e.valueOf());return t===Io?Ab(a,e):Dn(a,e),a}if(t===qd)return new Date(Number(e));if(t===Id){let i=e,a=new RegExp(i.source,i.flags);return a.lastIndex=i.lastIndex,a}if(t===Dd)return Object(Symbol.prototype.valueOf.call(e));if(t===Pd){let i=e,a=new Map;return i.forEach((o,s)=>{a.set(s,o)}),a}if(t===Rd){let i=e,a=new Set;return i.forEach(o=>{a.add(o)}),a}if(t===Us){let i=e,a={};return Dn(a,i),a.length=i.length,a[Symbol.iterator]=i[Symbol.iterator],a}let r={};return Eb(r,e),Dn(r,e),Mb(r,e),r}n(mB,"clone");function Fb(e){switch(Ea(e)){case Us:case pb:case Nd:case Wd:case Hs:case qd:case kb:case wb:case xb:case Cb:case bb:case Pd:case js:case zd:case Id:case Rd:case Io:case Dd:case gb:case fb:case yb:case mb:return!0;default:return!1}}n(Fb,"isCloneableObject");function Dn(e,t){for(let r in t)Object.hasOwn(t,r)&&(e[r]=t[r])}n(Dn,"copyOwnProperties");function Mb(e,t){let r=Object.getOwnPropertySymbols(t);for(let i=0;i<r.length;i++){let a=r[i];Object.prototype.propertyIsEnumerable.call(t,a)&&(e[a]=t[a])}}n(Mb,"copySymbolProperties");function Ab(e,t){let r=t.valueOf().length;for(let i in t)Object.hasOwn(t,i)&&(Number.isNaN(Number(i))||Number(i)>=r)&&(e[i]=t[i])}n(Ab,"cloneStringObjectProperties");function Eb(e,t){let r=Object.getPrototypeOf(t);r!==null&&typeof t.constructor=="function"&&Object.setPrototypeOf(e,r)}n(Eb,"copyPrototype");function qn(e){if(typeof e!="object"||e==null)return!1;if(Object.getPrototypeOf(e)===null)return!0;if(Object.prototype.toString.call(e)!=="[object Object]"){let r=e[Symbol.toStringTag];return r==null||!Object.getOwnPropertyDescriptor(e,Symbol.toStringTag)?.writable?!1:e.toString()===`[object ${r}]`}let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}n(qn,"isPlainObject");function Ob(e){if(Ko(e))return e;if(Array.isArray(e)||Ys(e)||e instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&e instanceof SharedArrayBuffer)return e.slice(0);let t=Object.getPrototypeOf(e);if(t==null)return Object.assign(Object.create(t),e);let r=t.constructor;if(e instanceof Date||e instanceof Map||e instanceof Set)return new r(e);if(e instanceof RegExp){let i=new r(e);return i.lastIndex=e.lastIndex,i}if(e instanceof DataView)return new r(e.buffer.slice(0));if(e instanceof Error){let i;return e instanceof AggregateError?i=new r(e.errors,e.message,{cause:e.cause}):i=new r(e.message,{cause:e.cause}),i.stack=e.stack,Object.assign(i,e),i}if(typeof File<"u"&&e instanceof File)return new r([e],e.name,{type:e.type,lastModified:e.lastModified});if(typeof e=="object"){let i=Object.create(t);return Object.assign(i,e)}return e}n(Ob,"clone");function Ib(e,...t){let r=t.slice(0,-1),i=t[t.length-1],a=e;for(let o=0;o<r.length;o++){let s=r[o];a=us(a,s,i,new Map)}return a}n(Ib,"mergeWith");function us(e,t,r,i){if(Ko(e)&&(e=Object(e)),t==null||typeof t!="object")return e;if(i.has(t))return Ob(i.get(t));if(i.set(t,e),Array.isArray(t)){t=t.slice();for(let o=0;o<t.length;o++)t[o]=t[o]??void 0}let a=[...Object.keys(t),...Od(t)];for(let o=0;o<a.length;o++){let s=a[o];if(ub(s))continue;let l=t[s],d=e[s];if(cs(l)&&(l={...l}),cs(d)&&(d={...d}),typeof Buffer<"u"&&Buffer.isBuffer(l)&&(l=jh(l)),Array.isArray(l))if(Array.isArray(d)){let h=[],u=Reflect.ownKeys(d);for(let p=0;p<u.length;p++){let g=u[p];h[g]=d[g]}d=h}else if(Bb(d)){let h=[];for(let u=0;u<d.length;u++)h[u]=d[u];d=h}else d=[];let c=r(d,l,s,e,t,i);c!==void 0?e[s]=c:Array.isArray(l)||ds(d)&&ds(l)&&(qn(d)||qn(l)||Ui(d)||Ui(l))?e[s]=us(d,l,r,i):d==null&&qn(l)?e[s]=us({},l,r,i):d==null&&Ui(l)?e[s]=jh(l):(d===void 0||l!==void 0)&&(e[s]=l)}return e}n(us,"mergeWithDeep");function Db(e,...t){return Ib(e,...t,$b)}n(Db,"merge");function Hh(e){if(e==null)return!0;if(Ed(e))return typeof e.splice!="function"&&typeof e!="string"&&(typeof Buffer>"u"||!Buffer.isBuffer(e))&&!Ui(e)&&!cs(e)?!1:e.length===0;if(typeof e=="object"){if(e instanceof Map||e instanceof Set)return e.size===0;let t=Object.keys(e);return Lb(e)?t.filter(r=>r!=="constructor").length===0:t.length===0}return!0}n(Hh,"isEmpty");var xB={curveBasis:ts,curveBasisClosed:rC,curveBasisOpen:iC,curveBumpX:rd,curveBumpY:id,curveBundle:rT,curveCardinalClosed:iT,curveCardinalOpen:aT,curveCardinal:aC,curveCatmullRomClosed:oT,curveCatmullRomOpen:nT,curveCatmullRom:oC,curveLinear:Hi,curveLinearClosed:nC,curveMonotoneX:pd,curveMonotoneY:gd,curveNatural:yd,curveStep:md,curveStepAfter:Cd,curveStepBefore:xd},CB=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,bB=n(function(e,t){let r=qb(e,/(?:init\b)|(?:initialize\b)/),i={};if(Array.isArray(r)){let s=r.map(l=>l.args);as(s),i=he(i,[...s])}else i=r.args;if(!i)return;let a=Bd(e,t),o="config";return i[o]!==void 0&&(a==="flowchart-v2"&&(a="flowchart"),i[a]=i[o],delete i[o]),i},"detectInit"),qb=n(function(e,t=null){try{let r=new RegExp(`[%]{2}(?![{]${CB.source})(?=[}][%]{2}).* 129`,"ig");e=e.trim().replace(r,"").replace(/'/gm,'"'),et.debug(`Detecting diagram directive${t!==null?" type:"+t:""} based on the text:${e}`);let i,a=[];for(;(i=uo.exec(e))!==null;)if(i.index===uo.lastIndex&&uo.lastIndex++,i&&!t||t&&i[1]?.match(t)||t&&i[2]?.match(t)){let o=i[1]?i[1]:i[2],s=i[3]?i[3].trim():i[4]?JSON.parse(i[4].trim()):null;a.push({type:o,args:s})}return a.length===0?{type:e,args:null}:a.length===1?a[0]:a}catch(r){return et.error(`ERROR: ${r.message} - Unable to parse directive type: '${t}' based on the text: '${e}'`),{type:void 0,args:null}}},"detectDirective"),kB=n(function(e){return e.replace(uo,"")},"removeDirectives"),wB=n(function(e,t){for(let[r,i]of t.entries())if(i.match(e))return r;return-1},"isSubstringInArray");function jd(e,t){return e?xB[`curve${e.charAt(0).toUpperCase()+e.slice(1)}`]??t:t}n(jd,"interpolateToCurve");function Pb(e,t){let r=e.trim();if(r)return t.securityLevel!=="loose"?(0,yB.sanitizeUrl)(r):r}n(Pb,"formatUrl");var vB=n((e,...t)=>{let r=e.split("."),i=r.length-1,a=r[i],o=window;for(let s=0;s<i;s++)if(o=o[r[s]],!o){et.error(`Function name: ${e} not found in window`);return}o[a](...t)},"runFunc");function Hd(e,t){return!e||!t?0:Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}n(Hd,"distance");function Rb(e){let t,r=0;return e.forEach(i=>{r+=Hd(i,t),t=i}),Ud(e,r/2)}n(Rb,"traverseEdge");function Nb(e){return e.length===1?e[0]:Rb(e)}n(Nb,"calcLabelPosition");var Ep=n((e,t=2)=>{let r=Math.pow(10,t);return Math.round(e*r)/r},"roundNumber"),Ud=n((e,t)=>{let r,i=t;for(let a of e){if(r){let o=Hd(a,r);if(o===0)return r;if(o<i)i-=o;else{let s=i/o;if(s<=0)return r;if(s>=1)return{x:a.x,y:a.y};if(s>0&&s<1)return{x:Ep((1-s)*r.x+s*a.x,5),y:Ep((1-s)*r.y+s*a.y,5)}}}r=a}throw new Error("Could not find a suitable point for the given distance")},"calculatePoint"),TB=n((e,t,r)=>{et.info(`our points ${JSON.stringify(t)}`),t[0]!==r&&(t=t.reverse());let i=Ud(t,25),a=e?10:5,o=Math.atan2(t[0].y-i.y,t[0].x-i.x),s={x:0,y:0};return s.x=Math.sin(o)*a+(t[0].x+i.x)/2,s.y=-Math.cos(o)*a+(t[0].y+i.y)/2,s},"calcCardinalityPosition");function zb(e,t,r){let i=structuredClone(r);et.info("our points",i),t!=="start_left"&&t!=="start_right"&&i.reverse();let a=Ud(i,25+e),o=10+e*.5,s=Math.atan2(i[0].y-a.y,i[0].x-a.x),l={x:0,y:0};return t==="start_left"?(l.x=Math.sin(s+Math.PI)*o+(i[0].x+a.x)/2,l.y=-Math.cos(s+Math.PI)*o+(i[0].y+a.y)/2):t==="end_right"?(l.x=Math.sin(s-Math.PI)*o+(i[0].x+a.x)/2-5,l.y=-Math.cos(s-Math.PI)*o+(i[0].y+a.y)/2-5):t==="end_left"?(l.x=Math.sin(s)*o+(i[0].x+a.x)/2-5,l.y=-Math.cos(s)*o+(i[0].y+a.y)/2-5):(l.x=Math.sin(s)*o+(i[0].x+a.x)/2,l.y=-Math.cos(s)*o+(i[0].y+a.y)/2),l}n(zb,"calcTerminalLabelPosition");function Wb(e){let t="",r="";for(let i of e)i!==void 0&&(i.startsWith("color:")||i.startsWith("text-align:")?r=r+i+";":t=t+i+";");return{style:t,labelStyle:r}}n(Wb,"getStylesFromArray");var Op=0,SB=n(()=>(Op++,"id-"+Math.random().toString(36).substr(2,12)+"-"+Op),"generateId");function jb(e){let t="",r="0123456789abcdef",i=16;for(let a=0;a<e;a++)t+=r.charAt(Math.floor(Math.random()*i));return t}n(jb,"makeRandomHex");var BB=n(e=>jb(e.length),"random"),_B=n(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:""}}
vendor: 7,088 bytes, lines 129-132
129,"getTextObj"),$B=n(function(e,t){let r=t.text.replace(Qo.lineBreakRegex," "),[,i]=Vs(t.fontSize),a=e.append("text");a.attr("x",t.x),a.attr("y",t.y),a.style("text-anchor",t.anchor),a.style("font-family",t.fontFamily),a.style("font-size",i),a.style("font-weight",t.fontWeight),a.attr("fill",t.fill),t.class!==void 0&&a.attr("class",t.class);let o=a.append("tspan");return o.attr("x",t.x+t.textMargin*2),o.attr("fill",t.fill),o.text(r),a},"drawSimpleText"),LB=Oa((e,t,r)=>{if(!e||(r=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},r),Qo.lineBreakRegex.test(e)))return e;let i=e.split(" ").filter(Boolean),a=[],o="";return i.forEach((s,l)=>{let d=Fr(`${s} `,r),c=Fr(o,r);if(d>t){let{hyphenatedStrings:h,remainingWord:u}=FB(s,t,"-",r);a.push(o,...h),o=u}else c+d>=t?(a.push(o),o=s):o=[o,s].filter(Boolean).join(" ");l+1===i.length&&a.push(o)}),a.filter(s=>s!=="").join(r.joinWith)},(e,t,r)=>`${e}${t}${r.fontSize}${r.fontWeight}${r.fontFamily}${r.joinWith}`),FB=Oa((e,t,r="-",i)=>{i=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},i);let a=[...e],o=[],s="";return a.forEach((l,d)=>{let c=`${s}${l}`;if(Fr(c,i)>=t){let h=d+1,u=a.length===h,p=`${c}${r}`;o.push(u?c:p),s=""}else s=c}),{hyphenatedStrings:o,remainingWord:s}},(e,t,r="-",i)=>`${e}${t}${r}${i.fontSize}${i.fontWeight}${i.fontFamily}`);function Hb(e,t){return Yd(e,t).height}n(Hb,"calculateTextHeight");function Fr(e,t){return Yd(e,t).width}n(Fr,"calculateTextWidth");var Yd=Oa((e,t)=>{let{fontSize:r=12,fontFamily:i="Arial",fontWeight:a=400}=t;if(!e)return{width:0,height:0};let[,o]=Vs(r),s=["sans-serif",i],l=e.split(Qo.lineBreakRegex),d=[],c=At("body");if(!c.remove)return{width:0,height:0,lineHeight:0};let h=c.append("svg");for(let u of s){let p=0,g={width:0,height:0,lineHeight:0};for(let y of l){let m=_B();m.text=y||"â";let x=$B(h,m).style("font-size",o).style("font-weight",a).style("font-family",u),C=(x._groups||x)[0][0].getBBox();if(C.width===0&&C.height===0)throw new Error("svg element not in render tree");g.width=Math.round(Math.max(g.width,C.width)),p=Math.round(C.height),g.height+=p,g.lineHeight=Math.round(Math.max(g.lineHeight,p))}d.push(g)}return h.remove(),d[isNaN(d[1].height)||isNaN(d[1].width)||isNaN(d[1].lineHeight)||d[0].height>d[1].height&&d[0].width>d[1].width&&d[0].lineHeight>d[1].lineHeight?0:1]},(e,t)=>`${e}${t.fontSize}${t.fontWeight}${t.fontFamily}`),ca,MB=(ca=class{constructor(t=!1,r){this.count=0,this.count=r?r.length:0,this.next=t?()=>this.count++:()=>Date.now()}},n(ca,"InitIDGenerator"),ca),gn,AB=n(function(e){return gn=gn||document.createElement("div"),e=escape(e).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),gn.innerHTML=e,unescape(gn.textContent)},"entityDecode");function Vd(e){return"str"in e}n(Vd,"isDetailedError");var EB=n((e,t,r,i)=>{if(!i)return;let a=e.node()?.getBBox();a&&e.append("text").text(i).attr("text-anchor","middle").attr("x",a.x+a.width/2).attr("y",-r).attr("class",t)},"insertTitle"),Vs=n(e=>{if(typeof e=="number")return[e,e+"px"];let t=parseInt(e??"",10);return Number.isNaN(t)?[void 0,void 0]:e===String(t)?[t,e+"px"]:[t,e]},"parseFontSize");function Gd(e,t){return Db({},e,t)}n(Gd,"cleanAndMerge");var Xe={assignWithDepth:he,wrapLabel:LB,calculateTextHeight:Hb,calculateTextWidth:Fr,calculateTextDimensions:Yd,cleanAndMerge:Gd,detectInit:bB,detectDirective:qb,isSubstringInArray:wB,interpolateToCurve:jd,calcLabelPosition:Nb,calcCardinalityPosition:TB,calcTerminalLabelPosition:zb,formatUrl:Pb,getStylesFromArray:Wb,generateId:SB,random:BB,runFunc:vB,entityDecode:AB,insertTitle:EB,isLabelCoordinateInPath:Ub,parseFontSize:Vs,InitIDGenerator:MB},OB=n(function(e){let t=e;return t=t.replace(/style.*:\S*#.*;/g,function(r){return r.substring(0,r.length-1)}),t=t.replace(/classDef.*:\S*#.*;/g,function(r){return r.substring(0,r.length-1)}),t=t.replace(/#\w+;/g,function(r){let i=r.substring(1,r.length-1);return/^\+?\d+$/.test(i)?"ï¬Â°Â°"+i+"¶Ã":"ï¬Â°"+i+"¶Ã"}),t},"encodeEntities"),Gr=n(function(e){return e.replace(/ï¬Â°Â°/g,"&#").replace(/ï¬Â°/g,"&").replace(/¶Ã/g,";")},"decodeEntities"),IF=n((e,t,{counter:r=0,prefix:i,suffix:a},o)=>o||`${i?`${i}_`:""}${e}_${t}_${r}${a?`_${a}`:""}`,"getEdgeId");function oe(e){return e??null}n(oe,"handleUndefinedAttr");function Ub(e,t){let r=Math.round(e.x),i=Math.round(e.y),a=t.replace(/(\d+\.\d+)/g,o=>Math.round(parseFloat(o)).toString());return a.includes(r.toString())||a.includes(i.toString())}n(Ub,"isLabelCoordinateInPath");var IB=No((e,t)=>{(function(r){var i=r.requestAnimationFrame||r.webkitRequestAnimationFrame||r.mozRequestAnimationFrame||r.msRequestAnimationFrame||function(h){return setTimeout(h,16)};function a(){var h=this;h.reads=[],h.writes=[],h.raf=i.bind(r)}n(a,"FastDom"),a.prototype={constructor:a,runTasks:n(function(h){for(var u;u=h.shift();)u()},"runTasks"),measure:n(function(h,u){var p=u?h.bind(u):h;return this.reads.push(p),o(this),p},"measure"),mutate:n(function(h,u){var p=u?h.bind(u):h;return this.writes.push(p),o(this),p},"mutate"),clear:n(function(h){return l(this.reads,h)||l(this.writes,h)},"clear"),extend:n(function(h){if(typeof h!="object")throw new Error("expected object");var u=Object.create(this);return d(u,h),u.fastdom=this,u.initialize&&u.initialize(),u},"extend"),catch:null};function o(h){h.scheduled||(h.scheduled=!0,h.raf(s.bind(null,h)))}n(o,"scheduleFlush");function s(h){var u=h.writes,p=h.reads,g;try{p.length,h.runTasks(p),u.length,h.runTasks(u)}catch(y){g=y}if(h.scheduled=!1,(p.length||u.length)&&o(h),g)if(g.message,h.catch)h.catch(g);else throw g}n(s,"flush");function l(h,u){var p=h.indexOf(u);return!!~p&&!!h.splice(p,1)}n(l,"remove");function d(h,u){for(var p in u)u.hasOwnProperty(p)&&(h[p]=u[p])}n(d,"mixin");var c=r.fastdom=r.fastdom||new a;typeof t=="object"&&(t.exports=c)})(typeof window<"u"?window:typeof e<"u"?e:globalThis)}),DB=No((e,t)=>{(function(){var r={initialize:n(function(){this._tasks=new Map},"initialize"),mutate:n(function(a,o){return i(this,"mutate",a,o)},"mutate"),measure:n(function(a,o){return i(this,"measure",a,o)},"measure"),clear:n(function(a){var o=this._tasks,s=o.get(a);this.fastdom.clear(s),o.delete(a)},"clear")};function i(a,o,s,l){var d=a._tasks,c=a.fastdom,h,u=new Promise(function(p,g){h=c[o](function(){d.delete(u);try{p(l?s.call(l):s())}catch(y){g(y)}},l)});return d.set(u,h),u}n(i,"create"),(typeof t)[0]=="o"?t.exports=r:window.fastdomPromised=r})()});function Xd(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var i=Array.from(typeof e=="string"?[e]:e);i[i.length-1]=i[i.length-1].replace(/\r?\n([\t ]*)$/,"");var a=i.reduce(function(l,d){var c=d.match(/\n([\t ]+|(?!\s).)/g);return c?l.concat(c.map(function(h){var u,p;return(p=(u=h.match(/[\t ]/g))===null||u===void 0?void 0:u.length)!==null&&p!==void 0?p:0})):l},[]);if(a.length){var o=new RegExp(` 130[ ]{`+Math.min.apply(Math,a)+"}","g");i=i.map(function(l){return l.replace(o,` 131`)})}i[0]=i[0].replace(/^\r?\n/,"");var s=i[0];return t.forEach(function(l,d){var c=s.match(/(?:^|\n)( *)$/),h=c?c[1]:"",u=l;typeof l=="string"&&l.includes(` 132`)&&(u=String(l).split(`
vendor: 4,999 bytes, lines 133-134
133`).map(function(p,g){return g===0?p:""+h+p}).join(` 134`)),s+=u+i[d+1]}),s}n(Xd,"dedent");globalThis.injected??={includeLargeFeatures:!0,profiling:!1,version:"0.0.0"};var qB=Bs(IB()),PB=Bs(DB()),yi=qB.default.extend({raf(e){typeof queueMicrotask=="function"?queueMicrotask(e):setTimeout(e,0)}}).extend(PB.default);function Gs(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}n(Gs,"L");var bi=Gs();function Zd(e){bi=e}n(Zd,"G");var po={exec:n(()=>null,"exec")};function Ut(e,t=""){let r=typeof e=="string"?e:e.source,i={replace:n((a,o)=>{let s=typeof o=="string"?o:o.source;return s=s.replace(Se.caret,"$1"),r=r.replace(a,s),i},"replace"),getRegex:n(()=>new RegExp(r,t),"getRegex")};return i}n(Ut,"h");var Se={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:n(e=>new RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),"listItemRegex"),nextBulletRegex:n(e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),"nextBulletRegex"),hrRegex:n(e=>new RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),"hrRegex"),fencesBeginRegex:n(e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),"fencesBeginRegex"),headingBeginRegex:n(e=>new RegExp(`^ {0,${Math.min(3,e-1)}}#`),"headingBeginRegex"),htmlBeginRegex:n(e=>new RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i"),"htmlBeginRegex")},RB=/^(?:[ \t]*(?:\n|$))+/,NB=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,zB=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,tn=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,WB=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Qd=/(?:[*+-]|\d{1,9}[.)])/,Yb=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Vb=Ut(Yb).replace(/bull/g,Qd).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),jB=Ut(Yb).replace(/bull/g,Qd).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),Jd=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,HB=/^[^\n]+/,Kd=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,UB=Ut(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Kd).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),YB=Ut(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Qd).getRegex(),Xs="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",tu=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,VB=Ut("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>
134)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",tu).replace("tag",Xs).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Ip=Ut(Jd).replace("hr",tn).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Xs).getRegex(),eu={blockquote:Ut(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Ip).getRegex(),code:NB,def:UB,fences:zB,heading:WB,hr:tn,html:VB,lheading:Vb,list:YB,newline:RB,paragraph:Ip,table:po,text:HB},Dp=Ut("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",tn).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Xs).getRegex(),GB={...eu,lheading:jB,table:Dp,paragraph:Ut(Jd).replace("hr",tn).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Dp).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Xs).getRegex()},XB={...eu,html:Ut(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",tu).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:po,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Ut(Jd).replace("hr",tn).replace("heading",` *#{1,6} *[^ 135]`).replace("lheading",Vb).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},ZB=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,QB=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Gb=/^( {2,}|\\)\n(?!\s*$)/,JB=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Zs=/[\p{P}\p{S}]/u,ru=/[\s\p{P}\p{S}]/u,Xb=/[^\s\p{P}\p{S}]/u,KB=Ut(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,ru).getRegex(),Zb=/(?!~)[\p{P}\p{S}]/u,t_=/(?!~)[\s\p{P}\p{S}]/u,e_=/(?:[^\s\p{P}\p{S}]|~)/u,r_=/\[[^\[\]]*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)|`[^`]*?`|<(?! )[^<>]*?>/g,Qb=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,i_=Ut(Qb,"u").replace(/punct/g,Zs).getRegex(),a_=Ut(Qb,"u").replace(/punct/g,Zb).getRegex(),Jb="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",o_=Ut(Jb,"gu").replace(/notPunctSpace/g,Xb).replace(/punctSpace/g,ru).replace(/punct/g,Zs).getRegex(),n_=Ut(Jb,"gu").replace(/notPunctSpace/g,e_).replace(/punctSpace/g,t_).replace(/punct/g,Zb).getRegex(),s_=Ut("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Xb).replace(/punctSpace/g,ru).replace(/punct/g,Zs).getRegex(),l_=Ut(/\\(punct)/,"gu").replace(/punct/g,Zs).getRegex(),h_=Ut(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),c_=Ut(tu).replace("(?:-->|$)","-->").getRegex(),d_=Ut("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",c_).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),ps=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`[^`]*`|[^\[\]\\`])*?/,u_=Ut(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",ps).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),qp=Ut(/^!?\[(label)\]\[(ref)\]/).replace("label",ps).replace("ref",Kd).getRegex(),Pp=Ut(/^!?\[(ref)\](?:\[\])?/).replace("ref",Kd).getRegex(),iu={_backpedal:po,anyPunctuation:l_,autolink:h_,blockSkip:r_,br:Gb,code:QB,del:po,emStrongLDelim:i_,emStrongRDelimAst:o_,emStrongRDelimUnd:s_,escape:ZB,link:u_,nolink:Pp,punctuation:KB,reflink:qp,reflinkSearch:Ut("reflink|nolink(?!\\()","g").replace("reflink",qp).replace("nolink",Pp).getRegex(),tag:d_,text:JB,url:po},p_={...iu,link:Ut(/^!?\[(label)\]\((.*?)\)/).replace("label",ps).getRegex(),reflink:Ut(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",ps).getRegex()},Uh={...iu,emStrongRDelimAst:n_,emStrongLDelim:a_,url:Ut(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},g_={...Uh,br:Ut(Gb).replace("{2,}","*").getRegex(),text:Ut(Uh.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},fn={normal:eu,gfm:GB,pedantic:XB},Ya={normal:iu,gfm:Uh,breaks:g_,pedantic:p_},f_={"&":"&","<":"<",">":">",'"':""","'":"'"},Rp=n(e=>f_[e],"ke");function Ve(e,t){if(t){if(Se.escapeTest.test(e))return e.replace(Se.escapeReplace,Rp)}else if(Se.escapeTestNoEncode.test(e))return e.replace(Se.escapeReplaceNoEncode,Rp);return e}n(Ve,"w");function Yh(e){try{e=encodeURI(e).replace(Se.percentDecode,"%")}catch{return null}return e}n(Yh,"J");function Vh(e,t){let r=e.replace(Se.findPipe,(a,o,s)=>{let l=!1,d=o;for(;--d>=0&&s[d]==="\\";)l=!l;return l?"|":" |"}).split(Se.splitPipe),i=0;if(r[0].trim()||r.shift(),r.length>0&&!r.at(-1)?.trim()&&r.pop(),t)if(r.length>t)r.splice(t);else for(;r.length<t;)r.push("");for(;i<r.length;i++)r[i]=r[i].trim().replace(Se.slashPipe,"|");return r}n(Vh,"V");function Oi(e,t,r){let i=e.length;if(i===0)return"";let a=0;for(;a<i;){let o=e.charAt(i-a-1);if(o===t&&!r)a++;else if(o!==t&&r)a++;else break}return e.slice(0,i-a)}n(Oi,"z");function Kb(e,t){if(e.indexOf(t[1])===-1)return-1;let r=0;for(let i=0;i<e.length;i++)if(e[i]==="\\")i++;else if(e[i]===t[0])r++;else if(e[i]===t[1]&&(r--,r<0))return i;return r>0?-2:-1}n(Kb,"ge");function Gh(e,t,r,i,a){let o=t.href,s=t.title||null,l=e[1].replace(a.other.outputLinkReplace,"$1");i.state.inLink=!0;let d={type:e[0].charAt(0)==="!"?"image":"link",raw:r,href:o,title:s,text:l,tokens:i.inl
vendor: 5,772 bytes, lines 135-158
135ineTokens(l)};return i.state.inLink=!1,d}n(Gh,"fe");function tk(e,t,r){let i=e.match(r.other.indentCodeCompensation);if(i===null)return t;let a=i[1];return t.split(` 136`).map(o=>{let s=o.match(r.other.beginningSpace);if(s===null)return o;let[l]=s;return l.length>=a.length?o.slice(a.length):o}).join(` 137`)}n(tk,"Je");var da,gs=(da=class{options;rules;lexer;constructor(t){this.options=t||bi}space(t){let r=this.rules.block.newline.exec(t);if(r&&r[0].length>0)return{type:"space",raw:r[0]}}code(t){let r=this.rules.block.code.exec(t);if(r){let i=r[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:r[0],codeBlockStyle:"indented",text:this.options.pedantic?i:Oi(i,` 138`)}}}fences(t){let r=this.rules.block.fences.exec(t);if(r){let i=r[0],a=tk(i,r[3]||"",this.rules);return{type:"code",raw:i,lang:r[2]?r[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):r[2],text:a}}}heading(t){let r=this.rules.block.heading.exec(t);if(r){let i=r[2].trim();if(this.rules.other.endingHash.test(i)){let a=Oi(i,"#");(this.options.pedantic||!a||this.rules.other.endingSpaceChar.test(a))&&(i=a.trim())}return{type:"heading",raw:r[0],depth:r[1].length,text:i,tokens:this.lexer.inline(i)}}}hr(t){let r=this.rules.block.hr.exec(t);if(r)return{type:"hr",raw:Oi(r[0],` 139`)}}blockquote(t){let r=this.rules.block.blockquote.exec(t);if(r){let i=Oi(r[0],` 140`).split(` 141`),a="",o="",s=[];for(;i.length>0;){let l=!1,d=[],c;for(c=0;c<i.length;c++)if(this.rules.other.blockquoteStart.test(i[c]))d.push(i[c]),l=!0;else if(!l)d.push(i[c]);else break;i=i.slice(c);let h=d.join(` 142`),u=h.replace(this.rules.other.blockquoteSetextReplace,` 143 $1`).replace(this.rules.other.blockquoteSetextReplace2,"");a=a?`${a} 144${h}`:h,o=o?`${o} 145${u}`:u;let p=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(u,s,!0),this.lexer.state.top=p,i.length===0)break;let g=s.at(-1);if(g?.type==="code")break;if(g?.type==="blockquote"){let y=g,m=y.raw+` 146`+i.join(` 147`),x=this.blockquote(m);s[s.length-1]=x,a=a.substring(0,a.length-y.raw.length)+x.raw,o=o.substring(0,o.length-y.text.length)+x.text;break}else if(g?.type==="list"){let y=g,m=y.raw+` 148`+i.join(` 149`),x=this.list(m);s[s.length-1]=x,a=a.substring(0,a.length-g.raw.length)+x.raw,o=o.substring(0,o.length-y.raw.length)+x.raw,i=m.substring(s.at(-1).raw.length).split(` 150`);continue}}return{type:"blockquote",raw:a,tokens:s,text:o}}}list(t){let r=this.rules.block.list.exec(t);if(r){let i=r[1].trim(),a=i.length>1,o={type:"list",raw:"",ordered:a,start:a?+i.slice(0,-1):"",loose:!1,items:[]};i=a?`\\d{1,9}\\${i.slice(-1)}`:`\\${i}`,this.options.pedantic&&(i=a?i:"[*+-]");let s=this.rules.other.listItemRegex(i),l=!1;for(;t;){let c=!1,h="",u="";if(!(r=s.exec(t))||this.rules.block.hr.test(t))break;h=r[0],t=t.substring(h.length);let p=r[2].split(` 151`,1)[0].replace(this.rules.other.listReplaceTabs,k=>" ".repeat(3*k.length)),g=t.split(` 152`,1)[0],y=!p.trim(),m=0;if(this.options.pedantic?(m=2,u=p.trimStart()):y?m=r[1].length+1:(m=r[2].search(this.rules.other.nonSpaceChar),m=m>4?1:m,u=p.slice(m),m+=r[1].length),y&&this.rules.other.blankLine.test(g)&&(h+=g+` 153`,t=t.substring(g.length+1),c=!0),!c){let k=this.rules.other.nextBulletRegex(m),w=this.rules.other.hrRegex(m),S=this.rules.other.fencesBeginRegex(m),B=this.rules.other.headingBeginRegex(m),_=this.rules.other.htmlBeginRegex(m);for(;t;){let $=t.split(` 154`,1)[0],I;if(g=$,this.options.pedantic?(g=g.replace(this.rules.other.listReplaceNesting," "),I=g):I=g.replace(this.rules.other.tabCharGlobal," "),S.test(g)||B.test(g)||_.test(g)||k.test(g)||w.test(g))break;if(I.search(this.rules.other.nonSpaceChar)>=m||!g.trim())u+=` 155`+I.slice(m);else{if(y||p.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||S.test(p)||B.test(p)||w.test(p))break;u+=` 156`+g}!y&&!g.trim()&&(y=!0),h+=$+` 157`,t=t.substring($.length+1),p=I.slice(m)}}o.loose||(l?o.loose=!0:this.rules.other.doubleBlankLine.test(h)&&(l=!0));let x=null,C;this.options.gfm&&(x=this.rules.other.listIsTask.exec(u),x&&(C=x[0]!=="[ ] ",u=u.replace(this.rules.other.listReplaceTask,""))),o.items.push({type:"list_item",raw:h,task:!!x,checked:C,loose:!1,text:u,tokens:[]}),o.raw+=h}let d=o.items.at(-1);if(d)d.raw=d.raw.trimEnd(),d.text=d.text.trimEnd();else return;o.raw=o.raw.trimEnd();for(let c=0;c<o.items.length;c++)if(this.lexer.state.top=!1,o.items[c].tokens=this.lexer.blockTokens(o.items[c].text,[]),!o.loose){let h=o.items[c].tokens.filter(u=>u.type==="space");o.loose=h.length>0&&h.some(u=>this.rules.other.anyLine.test(u.raw))}if(o.loose)for(let c=0;c<o.items.length;c++)o.items[c].loose=!0;return o}}html(t){let r=this.rules.block.html.exec(t);if(r)return{type:"html",block:!0,raw:r[0],pre:r[1]==="pre"||r[1]==="script"||r[1]==="style",text:r[0]}}def(t){let r=this.rules.block.def.exec(t);if(r){let i=r[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),a=r[2]?r[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",o=r[3]?r[3].substring(1,r[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):r[3];return{type:"def",tag:i,raw:r[0],href:a,title:o}}}table(t){let r=this.rules.block.table.exec(t);if(!r||!this.rules.other.tableDelimiter.test(r[2]))return;let i=Vh(r[1]),a=r[2].replace(this.rules.other.tableAlignChars,"").split("|"),o=r[3]?.trim()?r[3].replace(this.rules.other.tableRowBlankLine,"").split(` 158`):[],s={type:"table",raw:r[0],header:[],align:[],rows:[]};if(i.length===a.length){for(let l of a)this.rules.other.tableAlignRight.test(l)?s.align.push("right"):this.rules.other.tableAlignCenter.test(l)?s.align.push("center"):this.rules.other.tableAlignLeft.test(l)?s.align.push("left"):s.align.push(null);for(let l=0;l<i.length;l++)s.header.push({text:i[l],tokens:this.lexer.inline(i[l]),header:!0,align:s.align[l]});
vendor: 5,241 bytes, lines 158-160
158for(let l of o)s.rows.push(Vh(l,s.header.length).map((d,c)=>({text:d,tokens:this.lexer.inline(d),header:!1,align:s.align[c]})));return s}}lheading(t){let r=this.rules.block.lheading.exec(t);if(r)return{type:"heading",raw:r[0],depth:r[2].charAt(0)==="="?1:2,text:r[1],tokens:this.lexer.inline(r[1])}}paragraph(t){let r=this.rules.block.paragraph.exec(t);if(r){let i=r[1].charAt(r[1].length-1)===` 159`?r[1].slice(0,-1):r[1];return{type:"paragraph",raw:r[0],text:i,tokens:this.lexer.inline(i)}}}text(t){let r=this.rules.block.text.exec(t);if(r)return{type:"text",raw:r[0],text:r[0],tokens:this.lexer.inline(r[0])}}escape(t){let r=this.rules.inline.escape.exec(t);if(r)return{type:"escape",raw:r[0],text:r[1]}}tag(t){let r=this.rules.inline.tag.exec(t);if(r)return!this.lexer.state.inLink&&this.rules.other.startATag.test(r[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(r[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(r[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(r[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:r[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:r[0]}}link(t){let r=this.rules.inline.link.exec(t);if(r){let i=r[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(i)){if(!this.rules.other.endAngleBracket.test(i))return;let s=Oi(i.slice(0,-1),"\\");if((i.length-s.length)%2===0)return}else{let s=Kb(r[2],"()");if(s===-2)return;if(s>-1){let l=(r[0].indexOf("!")===0?5:4)+r[1].length+s;r[2]=r[2].substring(0,s),r[0]=r[0].substring(0,l).trim(),r[3]=""}}let a=r[2],o="";if(this.options.pedantic){let s=this.rules.other.pedanticHrefTitle.exec(a);s&&(a=s[1],o=s[3])}else o=r[3]?r[3].slice(1,-1):"";return a=a.trim(),this.rules.other.startAngleBracket.test(a)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(i)?a=a.slice(1):a=a.slice(1,-1)),Gh(r,{href:a&&a.replace(this.rules.inline.anyPunctuation,"$1"),title:o&&o.replace(this.rules.inline.anyPunctuation,"$1")},r[0],this.lexer,this.rules)}}reflink(t,r){let i;if((i=this.rules.inline.reflink.exec(t))||(i=this.rules.inline.nolink.exec(t))){let a=r[(i[2]||i[1]).replace(this.rules.other.multipleSpaceGlobal," ").toLowerCase()];if(!a){let o=i[0].charAt(0);return{type:"text",raw:o,text:o}}return Gh(i,a,i[0],this.lexer,this.rules)}}emStrong(t,r,i=""){let a=this.rules.inline.emStrongLDelim.exec(t);if(!(!a||a[3]&&i.match(this.rules.other.unicodeAlphaNumeric))&&(!(a[1]||a[2])||!i||this.rules.inline.punctuation.exec(i))){let o=[...a[0]].length-1,s,l,d=o,c=0,h=a[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(h.lastIndex=0,r=r.slice(-1*t.length+o);(a=h.exec(r))!=null;){if(s=a[1]||a[2]||a[3]||a[4]||a[5]||a[6],!s)continue;if(l=[...s].length,a[3]||a[4]){d+=l;continue}else if((a[5]||a[6])&&o%3&&!((o+l)%3)){c+=l;continue}if(d-=l,d>0)continue;l=Math.min(l,l+d+c);let u=[...a[0]][0].length,p=t.slice(0,o+a.index+u+l);if(Math.min(o,l)%2){let y=p.slice(1,-1);return{type:"em",raw:p,text:y,tokens:this.lexer.inlineTokens(y)}}let g=p.slice(2,-2);return{type:"strong",raw:p,text:g,tokens:this.lexer.inlineTokens(g)}}}}codespan(t){let r=this.rules.inline.code.exec(t);if(r){let i=r[2].replace(this.rules.other.newLineCharGlobal," "),a=this.rules.other.nonSpaceChar.test(i),o=this.rules.other.startingSpaceChar.test(i)&&this.rules.other.endingSpaceChar.test(i);return a&&o&&(i=i.substring(1,i.length-1)),{type:"codespan",raw:r[0],text:i}}}br(t){let r=this.rules.inline.br.exec(t);if(r)return{type:"br",raw:r[0]}}del(t){let r=this.rules.inline.del.exec(t);if(r)return{type:"del",raw:r[0],text:r[2],tokens:this.lexer.inlineTokens(r[2])}}autolink(t){let r=this.rules.inline.autolink.exec(t);if(r){let i,a;return r[2]==="@"?(i=r[1],a="mailto:"+i):(i=r[1],a=i),{type:"link",raw:r[0],text:i,href:a,tokens:[{type:"text",raw:i,text:i}]}}}url(t){let r;if(r=this.rules.inline.url.exec(t)){let i,a;if(r[2]==="@")i=r[0],a="mailto:"+i;else{let o;do o=r[0],r[0]=this.rules.inline._backpedal.exec(r[0])?.[0]??"";while(o!==r[0]);i=r[0],r[1]==="www."?a="http://"+r[0]:a=r[0]}return{type:"link",raw:r[0],text:i,href:a,tokens:[{type:"text",raw:i,text:i}]}}}inlineText(t){let r=this.rules.inline.text.exec(t);if(r){let i=this.lexer.state.inRawBlock;return{type:"text",raw:r[0],text:r[0],escaped:i}}}},n(da,"y"),da),Hr,Tr=(Hr=class{tokens;options;state;tokenizer;inlineQueue;constructor(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||bi,this.options.tokenizer=this.options.tokenizer||new gs,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let r={other:Se,block:fn.normal,inline:Ya.normal};this.options.pedantic?(r.block=fn.pedantic,r.inline=Ya.pedantic):this.options.gfm&&(r.block=fn.gfm,this.options.breaks?r.inline=Ya.breaks:r.inline=Ya.gfm),this.tokenizer.rules=r}static get rules(){return{block:fn,inline:Ya}}static lex(t,r){return new Hr(r).lex(t)}static lexInline(t,r){return new Hr(r).inlineTokens(t)}lex(t){t=t.replace(Se.carriageReturn,` 160`),this.blockTokens(t,this.tokens);for(let r=0;
vendor: 11,669 bytes, lines 160-192
160r<this.inlineQueue.length;r++){let i=this.inlineQueue[r];this.inlineTokens(i.src,i.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,r=[],i=!1){for(this.options.pedantic&&(t=t.replace(Se.tabCharGlobal," ").replace(Se.spaceLine,""));t;){let a;if(this.options.extensions?.block?.some(s=>(a=s.call({lexer:this},t,r))?(t=t.substring(a.raw.length),r.push(a),!0):!1))continue;if(a=this.tokenizer.space(t)){t=t.substring(a.raw.length);let s=r.at(-1);a.raw.length===1&&s!==void 0?s.raw+=` 161`:r.push(a);continue}if(a=this.tokenizer.code(t)){t=t.substring(a.raw.length);let s=r.at(-1);s?.type==="paragraph"||s?.type==="text"?(s.raw+=(s.raw.endsWith(` 162`)?"":` 163`)+a.raw,s.text+=` 164`+a.text,this.inlineQueue.at(-1).src=s.text):r.push(a);continue}if(a=this.tokenizer.fences(t)){t=t.substring(a.raw.length),r.push(a);continue}if(a=this.tokenizer.heading(t)){t=t.substring(a.raw.length),r.push(a);continue}if(a=this.tokenizer.hr(t)){t=t.substring(a.raw.length),r.push(a);continue}if(a=this.tokenizer.blockquote(t)){t=t.substring(a.raw.length),r.push(a);continue}if(a=this.tokenizer.list(t)){t=t.substring(a.raw.length),r.push(a);continue}if(a=this.tokenizer.html(t)){t=t.substring(a.raw.length),r.push(a);continue}if(a=this.tokenizer.def(t)){t=t.substring(a.raw.length);let s=r.at(-1);s?.type==="paragraph"||s?.type==="text"?(s.raw+=(s.raw.endsWith(` 165`)?"":` 166`)+a.raw,s.text+=` 167`+a.raw,this.inlineQueue.at(-1).src=s.text):this.tokens.links[a.tag]||(this.tokens.links[a.tag]={href:a.href,title:a.title},r.push(a));continue}if(a=this.tokenizer.table(t)){t=t.substring(a.raw.length),r.push(a);continue}if(a=this.tokenizer.lheading(t)){t=t.substring(a.raw.length),r.push(a);continue}let o=t;if(this.options.extensions?.startBlock){let s=1/0,l=t.slice(1),d;this.options.extensions.startBlock.forEach(c=>{d=c.call({lexer:this},l),typeof d=="number"&&d>=0&&(s=Math.min(s,d))}),s<1/0&&s>=0&&(o=t.substring(0,s+1))}if(this.state.top&&(a=this.tokenizer.paragraph(o))){let s=r.at(-1);i&&s?.type==="paragraph"?(s.raw+=(s.raw.endsWith(` 168`)?"":` 169`)+a.raw,s.text+=` 170`+a.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=s.text):r.push(a),i=o.length!==t.length,t=t.substring(a.raw.length);continue}if(a=this.tokenizer.text(t)){t=t.substring(a.raw.length);let s=r.at(-1);s?.type==="text"?(s.raw+=(s.raw.endsWith(` 171`)?"":` 172`)+a.raw,s.text+=` 173`+a.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=s.text):r.push(a);continue}if(t){let s="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(s);break}else throw new Error(s)}}return this.state.top=!0,r}inline(t,r=[]){return this.inlineQueue.push({src:t,tokens:r}),r}inlineTokens(t,r=[]){let i=t,a=null;if(this.tokens.links){let l=Object.keys(this.tokens.links);if(l.length>0)for(;(a=this.tokenizer.rules.inline.reflinkSearch.exec(i))!=null;)l.includes(a[0].slice(a[0].lastIndexOf("[")+1,-1))&&(i=i.slice(0,a.index)+"["+"a".repeat(a[0].length-2)+"]"+i.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(a=this.tokenizer.rules.inline.anyPunctuation.exec(i))!=null;)i=i.slice(0,a.index)+"++"+i.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;(a=this.tokenizer.rules.inline.blockSkip.exec(i))!=null;)i=i.slice(0,a.index)+"["+"a".repeat(a[0].length-2)+"]"+i.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);i=this.options.hooks?.emStrongMask?.call({lexer:this},i)??i;let o=!1,s="";for(;t;){o||(s=""),o=!1;let l;if(this.options.extensions?.inline?.some(c=>(l=c.call({lexer:this},t,r))?(t=t.substring(l.raw.length),r.push(l),!0):!1))continue;if(l=this.tokenizer.escape(t)){t=t.substring(l.raw.length),r.push(l);continue}if(l=this.tokenizer.tag(t)){t=t.substring(l.raw.length),r.push(l);continue}if(l=this.tokenizer.link(t)){t=t.substring(l.raw.length),r.push(l);continue}if(l=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(l.raw.length);let c=r.at(-1);l.type==="text"&&c?.type==="text"?(c.raw+=l.raw,c.text+=l.text):r.push(l);continue}if(l=this.tokenizer.emStrong(t,i,s)){t=t.substring(l.raw.length),r.push(l);continue}if(l=this.tokenizer.codespan(t)){t=t.substring(l.raw.length),r.push(l);continue}if(l=this.tokenizer.br(t)){t=t.substring(l.raw.length),r.push(l);continue}if(l=this.tokenizer.del(t)){t=t.substring(l.raw.length),r.push(l);continue}if(l=this.tokenizer.autolink(t)){t=t.substring(l.raw.length),r.push(l);continue}if(!this.state.inLink&&(l=this.tokenizer.url(t))){t=t.substring(l.raw.length),r.push(l);continue}let d=t;if(this.options.extensions?.startInline){let c=1/0,h=t.slice(1),u;this.options.extensions.startInline.forEach(p=>{u=p.call({lexer:this},h),typeof u=="number"&&u>=0&&(c=Math.min(c,u))}),c<1/0&&c>=0&&(d=t.substring(0,c+1))}if(l=this.tokenizer.inlineText(d)){t=t.substring(l.raw.length),l.raw.slice(-1)!=="_"&&(s=l.raw.slice(-1)),o=!0;let c=r.at(-1);c?.type==="text"?(c.raw+=l.raw,c.text+=l.text):r.push(l);continue}if(t){let c="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(c);break}else throw new Error(c)}}return r}},n(Hr,"l"),Hr),ua,fs=(ua=class{options;parser;constructor(t){this.options=t||bi}space(t){return""}code({text:t,lang:r,escaped:i}){let a=(r||"").match(Se.notSpaceStart)?.[0],o=t.replace(Se.endingNewline,"")+` 174`;return a?'<pre><code class="language-'+Ve(a)+'">'+(i?o:Ve(o,!0))+`</code></pre> 175`:"<pre><code>"+(i?o:Ve(o,!0))+`</code></pre> 176`}blockquote({tokens:t}){return`<blockquote> 177${this.parser.parse(t)}</blockquote> 178`}html({text:t}){return t}def(t){return""}heading({tokens:t,depth:r}){return`<h${r}>${this.parser.parseInline(t)}</h${r}> 179`}hr(t){return`<hr> 180`}list(t){let r=t.ordered,i=t.start,a="";for(let l=0;l<t.items.length;l++){let d=t.items[l];a+=this.listitem(d)}let o=r?"ol":"ul",s=r&&i!==1?' start="'+i+'"':"";return"<"+o+s+`> 181`+a+"</"+o+`> 182`}listitem(t){let r="";if(t.task){let i=this.checkbox({checked:!!t.checked});t.loose?t.tokens[0]?.type==="paragraph"?(t.tokens[0].text=i+" "+t.tokens[0].text,t.tokens[0].tokens&&t.tokens[0].tokens.length>0&&t.tokens[0].tokens[0].type==="text"&&(t.tokens[0].tokens[0].text=i+" "+Ve(t.tokens[0].tokens[0].text),t.tokens[0].tokens[0].escaped=!0)):t.tokens.unshift({type:"text",raw:i+" ",text:i+" ",escaped:!0}):r+=i+" "}return r+=this.parser.parse(t.tokens,!!t.loose),`<li>${r}</li> 183`}checkbox({checked:t}){return"<input "+(t?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:t}){return`<p>${this.parser.parseInline(t)}</p> 184`}table(t){let r="",i="";for(let o=0;o<t.header.length;o++)i+=this.tablecell(t.header[o]);r+=this.tablerow({text:i});let a="";for(let o=0;o<t.rows.length;o++){let s=t.rows[o];i="";for(let l=0;l<s.length;l++)i+=this.tablecell(s[l]);a+=this.tablerow({text:i})}return a&&(a=`<tbody>${a}</tbody>`),`<table> 185<thead> 186`+r+`</thead> 187`+a+`</table> 188`}tablerow({text:t}){return`<tr> 189${t}</tr> 190`}tablecell(t){let r=this.parser.parseInline(t.tokens),i=t.header?"th":"td";return(t.align?`<${i} align="${t.align}">`:`<${i}>`)+r+`</${i}> 191`}strong({tokens:t}){return`<strong>${this.parser.parseInline(t)}</strong>`}em({tokens:t}){return`<em>${this.parser.parseInline(t)}</em>`}codespan({text:t}){return`<code>${Ve(t,!0)}</code>`}br(t){return"<br>"}del({tokens:t}){return`<del>${this.parser.parseInline(t)}</del>`}link({href:t,title:r,tokens:i}){let a=this.parser.parseInline(i),o=Yh(t);if(o===null)return a;t=o;let s='<a href="'+t+'"';return r&&(s+=' title="'+Ve(r)+'"'),s+=">"+a+"</a>",s}image({href:t,title:r,text:i,tokens:a}){a&&(i=this.parser.parseInline(a,this.parser.textRenderer));let o=Yh(t);if(o===null)return Ve(i);t=o;let s=`<img src="${t}" alt="${i}"`;return r&&(s+=` title="${Ve(r)}"`),s+=">",s}text(t){return"tokens"in t&&t.tokens?this.parser.parseInline(t.tokens):"escaped"in t&&t.escaped?t.text:Ve(t.text)}},n(ua,"P"),ua),pa,au=(pa=class{strong({text:t}){return t}em({text:t}){return t}codespan({text:t}){return t}del({text:t}){return t}html({text:t}){return t}text({text:t}){return t}link({text:t}){return""+t}image({text:t}){return""+t}br(){return""}},n(pa,"$"),pa),Ur,Sr=(Ur=class{options;renderer;textRenderer;constructor(t){this.options=t||bi,this.options.renderer=this.options.renderer||new fs,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new au}static parse(t,r){return new Ur(r).parse(t)}static parseInline(t,r){return new Ur(r).parseInline(t)}parse(t,r=!0){let i="";for(let a=0;a<t.length;a++){let o=t[a];if(this.options.extensions?.renderers?.[o.type]){let l=o,d=this.options.extensions.renderers[l.type].call({parser:this},l);if(d!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(l.type)){i+=d||"";continue}}let s=o;switch(s.type){case"space":i+=this.renderer.space(s);continue;case"hr":i+=this.renderer.hr(s);continue;case"heading":i+=this.renderer.heading(s);continue;case"code":i+=this.renderer.code(s);continue;case"table":i+=this.renderer.table(s);continue;case"blockquote":i+=this.renderer.blockquote(s);continue;case"list":i+=this.renderer.list(s);continue;case"html":i+=this.renderer.html(s);continue;case"def":i+=this.renderer.def(s);continue;case"paragraph":i+=this.renderer.paragraph(s);continue;case"text":{let l=s,d=this.renderer.text(l);for(;a+1<t.length&&t[a+1].type==="text";)l=t[++a],d+=` 192`+this.renderer.text(l);r?i+=this.renderer.paragraph({type:"paragraph",raw:d,text:d,tokens:[{type:"text",raw:d,text:d,escaped:!0}]}):i+=d;continue}default:{let l='Token with "'+s.type+'" type was not found.';if(this.options.silent)return console.error(l),"";throw new Error(l)}}}return i}parseInline(t,r=this.renderer){let i="";for(let a=0;a<t.length;a++){let o=t[a];if(this.options.extensions?.renderers?.[o.type]){let l=this.options.extensions.renderers[o.type].call({parser:this},o);if(l!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(o.type)){i+=l||"";continue}}let s=o;switch(s.type){case"escape":i+=r.text(s);break;case"html":i+=r.html(s);break;case"link":i+=r.link(s);break;case"image":i+=r.image(s);break;case"strong":i+=r.strong(s);break;case"em":i+=r.em(s);break;case"codespan":i+=r.codespan(s);break;case"br":i+=r.br(s);break;case"del":i+=r.del(s);break;case"text":i+=r.text(s);break;default:{let l='Token with "'+s.type+'" type was not found.';if(this.options.silent)return console.error(l),"";throw new Error(l)}}}return i}},n(Ur,"l"),Ur),Rr,eo=(Rr=class{options;block;constructor(t){this.options=t||bi}preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}emStrongMask(t){return t}provideLexer(){return this.block?Tr.lex:Tr.lexInline}provideParser(){return this.block?Sr.parse:Sr.parseInline}},n(Rr,"S"),ul(Rr,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens","emStrongMask"])),ul(Rr,"passThroughHooksRespectAsync",new Set(["preprocess","postprocess","processAllTokens"])),Rr),ga,y_=(ga=class{defaults=Gs();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=Sr;Renderer=fs;TextRenderer=au;Lexer=Tr;Tokenizer=gs;Hooks=eo;constructor(...t){this.use(...t)}walkTokens(t,r){let i=[];for(let a of t)switch(i=i.concat(r.call(this,a)),a.type){case"table":{let o=a;for(let s of o.header)i=i.concat(this.walkTokens(s.tokens,r));for(let s of o.rows)for(let l of s)i=i.concat(this.walkTokens(l.tokens,r));break}case"list":{let o=a;i=i.concat(this.walkTokens(o.items,r));break}default:{let o=a;this.defaults.extensions?.childTokens?.[o.type]?this.defaults.extensions.childTokens[o.type].forEach(s=>{let l=o[s].flat(1/0);i=i.concat(this.walkTokens(l,r))}):o.tokens&&(i=i.concat(this.walkTokens(o.tokens,r)))}}return i}use(...t){let r=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(i=>
vendor: 4,130 bytes, lines 192-193
192{let a={...i};if(a.async=this.defaults.async||a.async||!1,i.extensions&&(i.extensions.forEach(o=>{if(!o.name)throw new Error("extension name required");if("renderer"in o){let s=r.renderers[o.name];s?r.renderers[o.name]=function(...l){let d=o.renderer.apply(this,l);return d===!1&&(d=s.apply(this,l)),d}:r.renderers[o.name]=o.renderer}if("tokenizer"in o){if(!o.level||o.level!=="block"&&o.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let s=r[o.level];s?s.unshift(o.tokenizer):r[o.level]=[o.tokenizer],o.start&&(o.level==="block"?r.startBlock?r.startBlock.push(o.start):r.startBlock=[o.start]:o.level==="inline"&&(r.startInline?r.startInline.push(o.start):r.startInline=[o.start]))}"childTokens"in o&&o.childTokens&&(r.childTokens[o.name]=o.childTokens)}),a.extensions=r),i.renderer){let o=this.defaults.renderer||new fs(this.defaults);for(let s in i.renderer){if(!(s in o))throw new Error(`renderer '${s}' does not exist`);if(["options","parser"].includes(s))continue;let l=s,d=i.renderer[l],c=o[l];o[l]=(...h)=>{let u=d.apply(o,h);return u===!1&&(u=c.apply(o,h)),u||""}}a.renderer=o}if(i.tokenizer){let o=this.defaults.tokenizer||new gs(this.defaults);for(let s in i.tokenizer){if(!(s in o))throw new Error(`tokenizer '${s}' does not exist`);if(["options","rules","lexer"].includes(s))continue;let l=s,d=i.tokenizer[l],c=o[l];o[l]=(...h)=>{let u=d.apply(o,h);return u===!1&&(u=c.apply(o,h)),u}}a.tokenizer=o}if(i.hooks){let o=this.defaults.hooks||new eo;for(let s in i.hooks){if(!(s in o))throw new Error(`hook '${s}' does not exist`);if(["options","block"].includes(s))continue;let l=s,d=i.hooks[l],c=o[l];eo.passThroughHooks.has(s)?o[l]=h=>{if(this.defaults.async&&eo.passThroughHooksRespectAsync.has(s))return Promise.resolve(d.call(o,h)).then(p=>c.call(o,p));let u=d.call(o,h);return c.call(o,u)}:o[l]=(...h)=>{let u=d.apply(o,h);return u===!1&&(u=c.apply(o,h)),u}}a.hooks=o}if(i.walkTokens){let o=this.defaults.walkTokens,s=i.walkTokens;a.walkTokens=function(l){let d=[];return d.push(s.call(this,l)),o&&(d=d.concat(o.call(this,l))),d}}this.defaults={...this.defaults,...a}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,r){return Tr.lex(t,r??this.defaults)}parser(t,r){return Sr.parse(t,r??this.defaults)}parseMarkdown(t){return(r,i)=>{let a={...i},o={...this.defaults,...a},s=this.onError(!!o.silent,!!o.async);if(this.defaults.async===!0&&a.async===!1)return s(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof r>"u"||r===null)return s(new Error("marked(): input parameter is undefined or null"));if(typeof r!="string")return s(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(r)+", string expected"));o.hooks&&(o.hooks.options=o,o.hooks.block=t);let l=o.hooks?o.hooks.provideLexer():t?Tr.lex:Tr.lexInline,d=o.hooks?o.hooks.provideParser():t?Sr.parse:Sr.parseInline;if(o.async)return Promise.resolve(o.hooks?o.hooks.preprocess(r):r).then(c=>l(c,o)).then(c=>o.hooks?o.hooks.processAllTokens(c):c).then(c=>o.walkTokens?Promise.all(this.walkTokens(c,o.walkTokens)).then(()=>c):c).then(c=>d(c,o)).then(c=>o.hooks?o.hooks.postprocess(c):c).catch(s);try{o.hooks&&(r=o.hooks.preprocess(r));let c=l(r,o);o.hooks&&(c=o.hooks.processAllTokens(c)),o.walkTokens&&this.walkTokens(c,o.walkTokens);let h=d(c,o);return o.hooks&&(h=o.hooks.postprocess(h)),h}catch(c){return s(c)}}}onError(t,r){return i=>{if(i.message+=` 193Please report this to https://github.com/markedjs/marked.`,t){let a="<p>An error occurred:</p><pre>"+Ve(i.message+"",!0)+"</pre>";return r?Promise.resolve(a):a}if(r)return Promise.reject(i);throw i}}},n(ga,"B"),ga),mi=new y_;function Ht(e,t){return mi.parse(e,t)}n(Ht,"d");Ht.options=Ht.setOptions=function(e){return mi.setOptions(e),Ht.defaults=mi.defaults,Zd(Ht.defaults),Ht};Ht.getDefaults=Gs;Ht.defaults=bi;Ht.use=function(...e){return mi.use(...e),Ht.defaults=mi.defaults,Zd(Ht.defaults),Ht};Ht.walkTokens=function(e,t){return mi.walkTokens(e,t)};Ht.parseInline=mi.parseInline;Ht.Parser=Sr;Ht.parser=Sr.parse;
vendor: 5,730 bytes, lines 193-198
193Ht.Renderer=fs;Ht.TextRenderer=au;Ht.Lexer=Tr;Ht.lexer=Tr.lex;Ht.Tokenizer=gs;Ht.Hooks=eo;Ht.parse=Ht;Ht.options;Ht.setOptions;Ht.use;Ht.walkTokens;Ht.parseInline;Sr.parse;Tr.lex;function ek(e,{markdownAutoWrap:t}){return Xd(e.replace(/<br\/>/g,` 194`).replace(/\n{2,}/g,` 195`))}n(ek,"preprocessMarkdown");function rk(e){return e.split(/\\n|\n|<br\s*\/?>/gi).map(t=>t.trim().match(/<[^>]+>|[^\s<>]+/g)?.map(r=>({content:r,type:"normal"}))??[])}n(rk,"nonMarkdownToLines");function ik(e,t={}){let r=ek(e,t),i=Ht.lexer(r),a=[[]],o=0;function s(l,d="normal"){l.type==="text"?l.text.split(` 196`).forEach((c,h)=>{h!==0&&(o++,a.push([])),c.split(" ").forEach(u=>{u=u.replace(/'/g,"'"),u&&a[o].push({content:u,type:d})})}):l.type==="strong"||l.type==="em"?l.tokens.forEach(c=>{s(c,l.type)}):l.type==="html"&&a[o].push({content:l.text,type:"normal"})}return n(s,"processNode"),i.forEach(l=>{l.type==="paragraph"?l.tokens?.forEach(d=>{s(d)}):l.type==="html"?a[o].push({content:l.text,type:"normal"}):a[o].push({content:l.raw,type:"normal"})}),a}n(ik,"markdownToLines");function ak(e){return e?`<p>${e.replace(/\\n|\n/g,"<br />")}</p>`:""}n(ak,"nonMarkdownToHTML");function ok(e,{markdownAutoWrap:t}={}){let r=Ht.lexer(e);function i(a){return a.type==="text"?t===!1?a.text.replace(/\n */g,"<br/>").replace(/ /g," "):a.text.replace(/\n */g,"<br/>"):a.type==="strong"?`<strong>${a.tokens?.map(i).join("")}</strong>`:a.type==="em"?`<em>${a.tokens?.map(i).join("")}</em>`:a.type==="paragraph"?`<p>${a.tokens?.map(i).join("")}</p>`:a.type==="space"?"":a.type==="html"?`${a.text}`:a.type==="escape"?a.text:(et.warn(`Unsupported markdown: ${a.type}`),a.raw)}return n(i,"output"),r.map(i).join("")}n(ok,"markdownToHTML");function nk(e){return Intl.Segmenter?[...new Intl.Segmenter().segment(e)].map(t=>t.segment):[...e]}n(nk,"splitTextToChars");function sk(e,t){return ou(e,[],nk(t.content),t.type)}n(sk,"splitWordToFitWidth");function ou(e,t,r,i){if(r.length===0)return[{content:t.join(""),type:i},{content:"",type:i}];let[a,...o]=r,s=[...t,a];return e([{content:s.join(""),type:i}])?ou(e,s,o,i):(t.length===0&&a&&(t.push(a),r.shift()),[{content:t.join(""),type:i},{content:r.join(""),type:i}])}n(ou,"splitWordToFitWidthRecursion");function lk(e,t){if(e.some(({content:r})=>r.includes(` 197`)))throw new Error("splitLineToFitWidth does not support newlines in the line");return ys(e,t)}n(lk,"splitLineToFitWidth");function ys(e,t,r=[],i=[]){if(e.length===0)return i.length>0&&r.push(i),r.length>0?r:[];let a="";e[0].content===" "&&(a=" ",e.shift());let o=e.shift()??{content:" ",type:"normal"},s=[...i];if(a!==""&&s.push({content:a,type:"normal"}),s.push(o),t(s))return ys(e,t,r,s);if(i.length>0)r.push(i),e.unshift(o);else if(o.content){let[l,d]=sk(t,o);r.push([l]),d.content&&e.unshift(d)}return ys(e,t,r)}n(ys,"splitLineToFitWidthRecursion");function Xh(e,t){t&&e.attr("style",t)}n(Xh,"applyStyle");var Np=16384;async function hk(e,t,r,i,a=!1,o=Jt()){let s=e.append("foreignObject");s.attr("width",`${Math.min(10*r,Np)}px`),s.attr("height",`${Math.min(10*r,Np)}px`);let l=s.append("xhtml:div"),d=Oo(t.label)?await Z1(t.label.replace(Qo.lineBreakRegex,` 198`),o):Ne(t.label,o),c=t.isNode?"nodeLabel":"edgeLabel",h=l.append("span");return h.html(d),Xh(h,t.labelStyle),h.attr("class",`${c} ${i}`),Xh(l,t.labelStyle),l.style("display","table-cell"),l.style("white-space","nowrap"),l.style("line-height","1.5"),r!==Number.POSITIVE_INFINITY&&(l.style("max-width",r+"px"),l.style("text-align","center")),l.attr("xmlns","http://www.w3.org/1999/xhtml"),a&&l.attr("class","labelBkg"),(await yi.measure(()=>l.node().getBoundingClientRect())).width===r&&(l.style("display","table"),l.style("white-space","break-spaces"),l.style("width",r+"px")),s.node()}n(hk,"addHtmlSpan");function Qs(e,t,r,i=!1){let a=e.append("tspan").attr("class","text-outer-tspan").attr("x",0).attr("y",t*r-.1+"em").attr("dy",r+"em");return i&&a.attr("text-anchor","middle"),a}n(Qs,"createTspan");function ck(e,t,r){let i=e.append("text"),a=Qs(i,1,t);Js(a,r);let o=a.node().getComputedTextLength();return i.remove(),o}n(ck,"computeWidthOfText");function m_(e,t,r){let i=e.append("text"),a=Qs(i,1,t);Js(a,[{content:r,type:"normal"}]);let o=a.node()?.getBoundingClientRect();return o&&i.remove(),o}n(m_,"computeDimensionOfText");function dk(e,t,r,i=!1,a=!1){let o=t.append("g"),s=o.insert("rect").attr("class","background").attr("style","stroke: none"),l=o.append("text").attr("y","-10.1");a&&l.attr("text-anchor","middle");let d=0;for(let c of r){let h=n(p=>ck(o,1.1,p)<=e,"checkWidth"),u=h(c)?[c]:lk(c,h);for(let p of u)Js(Qs(l,d,1.1,a),p),d++}if(i){let c=l.node().getBBox(),h=2;return s.attr("x",c.x-h).attr("y",c.y-h).attr("width",c.width+2*h).attr("height",c.height+2*h),o.node()}else return l.node()}n(dk,"createFormattedText");function Zh(e){return e.replace(/&(amp|lt|gt);/g,(t,r)=>{switch(r){case"amp":return"&";case"lt":return"<";case"gt":return">";default:return t}})}n(Zh,"decodeHTMLEntities");function Js(e,t){e.text(""),t.forEach((r,i)=>{let a=e.append("tspan").attr("font-style",r.type==="em"?"italic":"normal").attr("class","text-inner-tspan").attr("font-weight",r.type==="strong"?"bold":"normal");i===0?a.text(Zh(r.content)):a.text(" "+Zh(r.content))})}n(Js,"updateTextContentAndStyles");async function uk(e,t={}){let r=[];e.replace(/(fa[bklrs]?):fa-([\w-]+)/g,(a,o,s)=>(r.push((async()=>{let l=`${o}:${s}`;return await pB(l)?await Jo(l,void 0,{class:"label-icon"}):`<i class='${Ne(a,t).replace(":"," ")}'></i>`})()),a));let i=await Promise.all(r);return e.replace(/(fa[bklrs]?):fa-([\w-]+)/g,()=>i.shift()??"")}n(uk,"replaceIconSubstring");var tr=n(async(e,t="",{style:r="",isTitle:i=!1,classes:a="",useHtmlLabels:o=!0,markdown:s=!0,isNode:l=!0,width:d=200,addSvgBackgroun
vendor: 6,781 bytes, line 198
198d:c=!1}={},h)=>{if(et.debug("XYZ createText",t,r,i,a,o,l,"addSvgBackground: ",c),o){let u=await uk(Gr(s?ok(t,h):ak(t)),h),p=t.replace(/\\\\/g,"\\");return await hk(e,{isNode:l,label:Oo(t)?p:u,labelStyle:r.replace("fill:","color:")},d,a,c,h)}else{let u=Gr(t.replace(/<br\s*\/?>/g,"<br/>")),p=dk(d,e,s?ik(u.replace("<br>","<br/>"),h):rk(u),t?c:!1,!l);if(l){/stroke:/.exec(r)&&(r=r.replace("stroke:","lineColor:"));let g=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");At(p).attr("style",g)}else{let g=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/background:/g,"fill:");At(p).select("rect").attr("style",g.replace(/background:/g,"fill:"));let y=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");At(p).select("text").attr("style",y)}return i?At(p).selectAll("tspan.text-outer-tspan").classed("title-row",!0):At(p).selectAll("tspan.text-outer-tspan").classed("row",!0),p}},"createText");function Pn(e,t,r){if(e&&e.length){let[i,a]=t,o=Math.PI/180*r,s=Math.cos(o),l=Math.sin(o);for(let d of e){let[c,h]=d;d[0]=(c-i)*s-(h-a)*l+i,d[1]=(c-i)*l+(h-a)*s+a}}}n(Pn,"t");function pk(e,t){return e[0]===t[0]&&e[1]===t[1]}n(pk,"e");function gk(e,t,r,i=1){let a=r,o=Math.max(t,.1),s=e[0]&&e[0][0]&&typeof e[0][0]=="number"?[e]:e,l=[0,0];if(a)for(let c of s)Pn(c,l,a);let d=(function(c,h,u){let p=[];for(let k of c){let w=[...k];pk(w[0],w[w.length-1])||w.push([w[0][0],w[0][1]]),w.length>2&&p.push(w)}let g=[];h=Math.max(h,.1);let y=[];for(let k of p)for(let w=0;w<k.length-1;w++){let S=k[w],B=k[w+1];if(S[1]!==B[1]){let _=Math.min(S[1],B[1]);y.push({ymin:_,ymax:Math.max(S[1],B[1]),x:_===S[1]?S[0]:B[0],islope:(B[0]-S[0])/(B[1]-S[1])})}}if(y.sort(((k,w)=>k.ymin<w.ymin?-1:k.ymin>w.ymin?1:k.x<w.x?-1:k.x>w.x?1:k.ymax===w.ymax?0:(k.ymax-w.ymax)/Math.abs(k.ymax-w.ymax))),!y.length)return g;let m=[],x=y[0].ymin,C=0;for(;m.length||y.length;){if(y.length){let k=-1;for(let w=0;w<y.length&&!(y[w].ymin>x);w++)k=w;y.splice(0,k+1).forEach((w=>{m.push({s:x,edge:w})}))}if(m=m.filter((k=>!(k.edge.ymax<=x))),m.sort(((k,w)=>k.edge.x===w.edge.x?0:(k.edge.x-w.edge.x)/Math.abs(k.edge.x-w.edge.x))),(u!==1||C%h==0)&&m.length>1)for(let k=0;k<m.length;k+=2){let w=k+1;if(w>=m.length)break;let S=m[k].edge,B=m[w].edge;g.push([[Math.round(S.x),x],[Math.round(B.x),x]])}x+=u,m.forEach((k=>{k.edge.x=k.edge.x+u*k.edge.islope})),C++}return g})(s,o,i);if(a){for(let c of s)Pn(c,l,-a);(function(c,h,u){let p=[];c.forEach((g=>p.push(...g))),Pn(p,h,u)})(d,l,-a)}return d}n(gk,"s");function Ia(e,t){var r;let i=t.hachureAngle+90,a=t.hachureGap;a<0&&(a=4*t.strokeWidth),a=Math.round(Math.max(a,.1));let o=1;return t.roughness>=1&&(((r=t.randomizer)===null||r===void 0?void 0:r.next())||Math.random())>.7&&(o=a),gk(e,a,i,o||1)}n(Ia,"n");var fa,nu=(fa=class{constructor(t){this.helper=t}fillPolygons(t,r){return this._fillPolygons(t,r)}_fillPolygons(t,r){let i=Ia(t,r);return{type:"fillSketch",ops:this.renderLines(i,r)}}renderLines(t,r){let i=[];for(let a of t)i.push(...this.helper.doubleLineOps(a[0][0],a[0][1],a[1][0],a[1][1],r));return i}},n(fa,"o"),fa);function en(e){let t=e[0],r=e[1];return Math.sqrt(Math.pow(t[0]-r[0],2)+Math.pow(t[1]-r[1],2))}n(en,"a");var ya,x_=(ya=class extends nu{fillPolygons(t,r){let i=r.hachureGap;i<0&&(i=4*r.strokeWidth),i=Math.max(i,.1);let a=Ia(t,Object.assign({},r,{hachureGap:i})),o=Math.PI/180*r.hachureAngle,s=[],l=.5*i*Math.cos(o),d=.5*i*Math.sin(o);for(let[c,h]of a)en([c,h])&&s.push([[c[0]-l,c[1]+d],[...h]],[[c[0]+l,c[1]-d],[...h]]);return{type:"fillSketch",ops:this.renderLines(s,r)}}},n(ya,"h"),ya),ma,C_=(ma=class extends nu{fillPolygons(t,r){let i=this._fillPolygons(t,r),a=Object.assign({},r,{hachureAngle:r.hachureAngle+90}),o=this._fillPolygons(t,a);return i.ops=i.ops.concat(o.ops),i}},n(ma,"r"),ma),xa,b_=(xa=class{constructor(t){this.helper=t}fillPolygons(t,r){let i=Ia(t,r=Object.assign({},r,{hachureAngle:0}));return this.dotsOnLines(i,r)}dotsOnLines(t,r){let i=[],a=r.hachureGap;a<0&&(a=4*r.strokeWidth),a=Math.max(a,.1);let o=r.fillWeight;o<0&&(o=r.strokeWidth/2);let s=a/4;for(let l of t){let d=en(l),c=d/a,h=Math.ceil(c)-1,u=d-h*a,p=(l[0][0]+l[1][0])/2-a/4,g=Math.min(l[0][1],l[1][1]);for(let y=0;y<h;y++){let m=g+u+y*a,x=p-s+2*Math.random()*s,C=m-s+2*Math.random()*s,k=this.helper.ellipse(x,C,o,o,r);i.push(...k.ops)}}return{type:"fillSketch",ops:i}}},n(xa,"i"),xa),Ca,k_=(Ca=class{constructor(t){this.helper=t}fillPolygons(t,r){let i=Ia(t,r);return{type:"fillSketch",ops:this.dashedLine(i,r)}}dashedLine(t,r){let i=r.dashOffset<0?r.hachureGap<0?4*r.strokeWidth:r.hachureGap:r.dashOffset,a=r.dashGap<0?r.hachureGap<0?4*r.strokeWidth:r.hachureGap:r.dashGap,o=[];return t.forEach((s=>{let l=en(s),d=Math.floor(l/(i+a)),c=(l+a-d*(i+a))/2,h=s[0],u=s[1];h[0]>u[0]&&(h=s[1],u=s[0]);let p=Math.atan((u[1]-h[1])/(u[0]-h[0]));for(let g=0;g<d;g++){let y=g*(i+a),m=y+i,x=[h[0]+y*Math.cos(p)+c*Math.cos(p),h[1]+y*Math.sin(p)+c*Math.sin(p)],C=[h[0]+m*Math.cos(p)+c*Math.cos(p),h[1]+m*Math.sin(p)+c*Math.sin(p)];o.push(...this.helper.doubleLineOps(x[0],x[1],C[0],C[1],r))}})),o}},n(Ca,"c"),Ca),ba,w_=(ba=class{constructor(t){this.helper=t}fillPolygons(t,r){let i=r.hachureGap<0?4*r.strokeWidth:r.hachureGap,a=r.zigzagOffset<0?i:r.zigzagOffset,o=Ia(t,r=Object.assign({},r,{hachureGap:i+a}));return{type:"fillSketch",ops:this.zigzagLines(o,a,r)}}zigzagLines(t,r,i){let a=[];return t.forEach((o=>{let s=en(o),l=Math.round(s/(2*r)),d=o[0],c=o[1];d[0]>c[0]&&(d=o[1],c=o[0]);let h=Math.atan((c[1]-d[1])/(c[0]-d[0]));for(let u=0;u<l;u++){let p=2*u*r,g=2*(u+1)*r,y=Math.sqrt(2*Math.pow(r,2)),m=[d[0]+p*Math.cos(h),d[1]+p*Math.sin(h)],x=[d[0]+g*Math.cos(h),d[1]+g*Math.sin(h)],C=[m[0]+y*Math.cos(h+Math.PI/4),m[1]+y*Math.sin(h+Math.PI/4)];a.push(...this.helper.doubleLineOps(m[0],m[1],C[0],C[1],i),...this.helper.doubleLineOps(C[0],C[1],x[0],x[1],i))}})),a}},n(ba,"l"),ba),_e={},ka,v_=(ka=class{constructor(t){this.seed=t}next(){return this.seed?(2**31-1&(this.seed=Math.imul(48271,this.seed)))/2**31:Math.random()}},n(ka,"p"),ka),T_=0,Tl=1,zp=2,yn={A:7,a:7,C:6,c:6,H:1,h:1,L:2,l:2,M:2,m:2,Q:4,q:4,S:4,s:4,T:2,t:2,V:1,v:1,Z:0,z:0};function Rn(e,t){return e.type===t}n(Rn,"k");function Ks(e){let t=[],r=(function(s){let l=new Array;for(;s!=="";)if(s.match(/^([ \t\r\n,]+)/))s=s.substr(RegExp.$1.length);else if(s.match(/^([aAcChHlLmMqQsStTvVzZ])/))l[l.length]={type:T_,text:RegExp.$1},s=s.substr(RegExp.$1.length);else{if(!s.match(/^(([-+]?[0-9]+(\.[0-9]*)?|[-+]?\.[0-9]+)([eE][-+]?[0-9]+)?)/))return[];l[l.length]={type:Tl,text:`${parseFloat(RegExp.$1)}`},s=s.substr(RegExp.$1.length)}return l[l.length]={type:zp,text:""},l})(e),i="BOD",a=0,o=r[a];for(;!Rn(o,zp);){let s=0,l=[];
vendor: 18,680 bytes, line 198
198if(i==="BOD"){if(o.text!=="M"&&o.text!=="m")return Ks("M0,0"+e);a++,s=yn[o.text],i=o.text}else Rn(o,Tl)?s=yn[i]:(a++,s=yn[o.text],i=o.text);if(!(a+s<r.length))throw new Error("Path data ended short");for(let d=a;d<a+s;d++){let c=r[d];if(!Rn(c,Tl))throw new Error("Param not a number: "+i+","+c.text);l[l.length]=+c.text}if(typeof yn[i]!="number")throw new Error("Bad segment: "+i);{let d={key:i,data:l};t.push(d),a+=s,o=r[a],i==="M"&&(i="L"),i==="m"&&(i="l")}}return t}n(Ks,"b");function su(e){let t=0,r=0,i=0,a=0,o=[];for(let{key:s,data:l}of e)switch(s){case"M":o.push({key:"M",data:[...l]}),[t,r]=l,[i,a]=l;break;case"m":t+=l[0],r+=l[1],o.push({key:"M",data:[t,r]}),i=t,a=r;break;case"L":o.push({key:"L",data:[...l]}),[t,r]=l;break;case"l":t+=l[0],r+=l[1],o.push({key:"L",data:[t,r]});break;case"C":o.push({key:"C",data:[...l]}),t=l[4],r=l[5];break;case"c":{let d=l.map(((c,h)=>h%2?c+r:c+t));o.push({key:"C",data:d}),t=d[4],r=d[5];break}case"Q":o.push({key:"Q",data:[...l]}),t=l[2],r=l[3];break;case"q":{let d=l.map(((c,h)=>h%2?c+r:c+t));o.push({key:"Q",data:d}),t=d[2],r=d[3];break}case"A":o.push({key:"A",data:[...l]}),t=l[5],r=l[6];break;case"a":t+=l[5],r+=l[6],o.push({key:"A",data:[l[0],l[1],l[2],l[3],l[4],t,r]});break;case"H":o.push({key:"H",data:[...l]}),t=l[0];break;case"h":t+=l[0],o.push({key:"H",data:[t]});break;case"V":o.push({key:"V",data:[...l]}),r=l[0];break;case"v":r+=l[0],o.push({key:"V",data:[r]});break;case"S":o.push({key:"S",data:[...l]}),t=l[2],r=l[3];break;case"s":{let d=l.map(((c,h)=>h%2?c+r:c+t));o.push({key:"S",data:d}),t=d[2],r=d[3];break}case"T":o.push({key:"T",data:[...l]}),t=l[0],r=l[1];break;case"t":t+=l[0],r+=l[1],o.push({key:"T",data:[t,r]});break;case"Z":case"z":o.push({key:"Z",data:[]}),t=i,r=a}return o}n(su,"y");function lu(e){let t=[],r="",i=0,a=0,o=0,s=0,l=0,d=0;for(let{key:c,data:h}of e){switch(c){case"M":t.push({key:"M",data:[...h]}),[i,a]=h,[o,s]=h;break;case"C":t.push({key:"C",data:[...h]}),i=h[4],a=h[5],l=h[2],d=h[3];break;case"L":t.push({key:"L",data:[...h]}),[i,a]=h;break;case"H":i=h[0],t.push({key:"L",data:[i,a]});break;case"V":a=h[0],t.push({key:"L",data:[i,a]});break;case"S":{let u=0,p=0;r==="C"||r==="S"?(u=i+(i-l),p=a+(a-d)):(u=i,p=a),t.push({key:"C",data:[u,p,...h]}),l=h[0],d=h[1],i=h[2],a=h[3];break}case"T":{let[u,p]=h,g=0,y=0;r==="Q"||r==="T"?(g=i+(i-l),y=a+(a-d)):(g=i,y=a);let m=i+2*(g-i)/3,x=a+2*(y-a)/3,C=u+2*(g-u)/3,k=p+2*(y-p)/3;t.push({key:"C",data:[m,x,C,k,u,p]}),l=g,d=y,i=u,a=p;break}case"Q":{let[u,p,g,y]=h,m=i+2*(u-i)/3,x=a+2*(p-a)/3,C=g+2*(u-g)/3,k=y+2*(p-y)/3;t.push({key:"C",data:[m,x,C,k,g,y]}),l=u,d=p,i=g,a=y;break}case"A":{let u=Math.abs(h[0]),p=Math.abs(h[1]),g=h[2],y=h[3],m=h[4],x=h[5],C=h[6];u===0||p===0?(t.push({key:"C",data:[i,a,x,C,x,C]}),i=x,a=C):(i!==x||a!==C)&&(hu(i,a,x,C,u,p,g,y,m).forEach((function(k){t.push({key:"C",data:k})})),i=x,a=C);break}case"Z":t.push({key:"Z",data:[]}),i=o,a=s}r=c}return t}n(lu,"m");function Ii(e,t,r){return[e*Math.cos(r)-t*Math.sin(r),e*Math.sin(r)+t*Math.cos(r)]}n(Ii,"w");function hu(e,t,r,i,a,o,s,l,d,c){let h=(u=s,Math.PI*u/180);var u;let p=[],g=0,y=0,m=0,x=0;if(c)[g,y,m,x]=c;else{[e,t]=Ii(e,t,-h),[r,i]=Ii(r,i,-h);let O=(e-r)/2,F=(t-i)/2,M=O*O/(a*a)+F*F/(o*o);M>1&&(M=Math.sqrt(M),a*=M,o*=M);let L=a*a,D=o*o,R=L*D-L*F*F-D*O*O,rt=L*F*F+D*O*O,X=(l===d?-1:1)*Math.sqrt(Math.abs(R/rt));m=X*a*F/o+(e+r)/2,x=X*-o*O/a+(t+i)/2,g=Math.asin(parseFloat(((t-x)/o).toFixed(9))),y=Math.asin(parseFloat(((i-x)/o).toFixed(9))),e<m&&(g=Math.PI-g),r<m&&(y=Math.PI-y),g<0&&(g=2*Math.PI+g),y<0&&(y=2*Math.PI+y),d&&g>y&&(g-=2*Math.PI),!d&&y>g&&(y-=2*Math.PI)}let C=y-g;if(Math.abs(C)>120*Math.PI/180){let O=y,F=r,M=i;y=d&&y>g?g+120*Math.PI/180*1:g+120*Math.PI/180*-1,p=hu(r=m+a*Math.cos(y),i=x+o*Math.sin(y),F,M,a,o,s,0,d,[y,O,m,x])}C=y-g;let k=Math.cos(g),w=Math.sin(g),S=Math.cos(y),B=Math.sin(y),_=Math.tan(C/4),$=4/3*a*_,I=4/3*o*_,U=[e,t],V=[e+$*w,t-I*k],A=[r+$*B,i-I*S],W=[r,i];if(V[0]=2*U[0]-V[0],V[1]=2*U[1]-V[1],c)return[V,A,W].concat(p);{p=[V,A,W].concat(p);let O=[];for(let F=0;F<p.length;F+=3){let M=Ii(p[F][0],p[F][1],h),L=Ii(p[F+1][0],p[F+1][1],h),D=Ii(p[F+2][0],p[F+2][1],h);O.push([M[0],M[1],L[0],L[1],D[0],D[1]])}return O}}n(hu,"x");var S_={randOffset:n(function(e,t){return Lt(e,t)},"randOffset"),randOffsetWithRange:n(function(e,t,r){return Do(e,t,r)},"randOffsetWithRange"),ellipse:n(function(e,t,r,i,a){return ms(e,t,a,du(r,i,a)).opset},"ellipse"),doubleLineOps:n(function(e,t,r,i,a){return Mr(e,t,r,i,a,!0)},"doubleLineOps")};function cu(e,t,r,i,a){return{type:"path",ops:Mr(e,t,r,i,a)}}n(cu,"v");function go(e,t,r){let i=(e||[]).length;if(i>2){let a=[];for(let o=0;o<i-1;o++)a.push(...Mr(e[o][0],e[o][1],e[o+1][0],e[o+1][1],r));return t&&a.push(...Mr(e[i-1][0],e[i-1][1],e[0][0],e[0][1],r)),{type:"path",ops:a}}return i===2?cu(e[0][0],e[0][1],e[1][0],e[1][1],r):{type:"path",ops:[]}}n(go,"S");function fk(e,t,r,i,a){return(function(o,s){return go(o,!0,s)})([[e,t],[e+r,t],[e+r,t+i],[e,t+i]],a)}n(fk,"O");function Qh(e,t){if(e.length){let r=typeof e[0][0]=="number"?[e]:e,i=ro(r[0],1*(1+.2*t.roughness),t),a=t.disableMultiStroke?[]:ro(r[0],1.5*(1+.22*t.roughness),tc(t));for(let o=1;o<r.length;o++){let s=r[o];if(s.length){let l=ro(s,1*(1+.2*t.roughness),t),d=t.disableMultiStroke?[]:ro(s,1.5*(1+.22*t.roughness),tc(t));for(let c of l)c.op!=="move"&&i.push(c);for(let c of d)c.op!=="move"&&a.push(c)}}return{type:"path",ops:i.concat(a)}}return{type:"path",ops:[]}}n(Qh,"L");function du(e,t,r){let i=Math.sqrt(2*Math.PI*Math.sqrt((Math.pow(e/2,2)+Math.pow(t/2,2))/2)),a=Math.ceil(Math.max(r.curveStepCount,r.curveStepCount/Math.sqrt(200)*i)),o=2*Math.PI/a,s=Math.abs(e/2),l=Math.abs(t/2),d=1-r.curveFitting;return s+=Lt(s*d,r),l+=Lt(l*d,r),{increment:o,rx:s,ry:l}}n(du,"T");function ms(e,t,r,i){let[a,o]=ec(i.increment,e,t,i.rx,i.ry,1,i.increment*Do(.1,Do(.4,1,r),r),r),s=qo(a,null,r);if(!r.disableMultiStroke&&r.roughness!==0){let[l]=ec(i.increment,e,t,i.rx,i.ry,1.5,0,r),d=qo(l,null,r);s=s.concat(d)}return{estimatedPoints:o,opset:{type:"path",ops:s}}}n(ms,"D");function Jh(e,t,r,i,a,o,s,l,d){let c=e,h=t,u=Math.abs(r/2),p=Math.abs(i/2);u+=Lt(.01*u,d),p+=Lt(.01*p,d);let g=a,y=o;for(;g<0;)g+=2*Math.PI,y+=2*Math.PI;y-g>2*Math.PI&&(g=0,y=2*Math.PI);let m=2*Math.PI/d.curveStepCount,x=Math.min(m/2,(y-g)/2),C=rc(x,c,h,u,p,g,y,1,d);if(!d.disableMultiStroke){let k=rc(x,c,h,u,p,g,y,1.5,d);C.push(...k)}return s&&(l?C.push(...Mr(c,h,c+u*Math.cos(g),h+p*Math.sin(g),d),...Mr(c,h,c+u*Math.cos(y),h+p*Math.sin(y),d)):C.push({op:"lineTo",data:[c,h]},{op:"lineTo",data:[c+u*Math.cos(g),h+p*Math.sin(g)]})),{type:"path",ops:C}}n(Jh,"A");function Kh(e,t){let r=lu(su(Ks(e))),i=[],a=[0,0],o=[0,0];for(let{key:s,data:l}of r)switch(s){case"M":o=[l[0],l[1]],a=[l[0],l[1]];break;case"L":i.push(...Mr(o[0],o[1],l[0],l[1],t)),o=[l[0],l[1]];break;case"C":{let[d,c,h,u,p,g]=l;i.push(...yk(d,c,h,u,p,g,o,t)),o=[p,g];break}case"Z":i.push(...Mr(o[0],o[1],a[0],a[1],t)),o=[a[0],a[1]]}return{type:"path",ops:i}}n(Kh,"_");function Nn(e,t){let r=[];for(let i of e)if(i.length){let a=t.maxRandomnessOffset||0,o=i.length;if(o>2){r.push({op:"move",data:[i[0][0]+Lt(a,t),i[0][1]+Lt(a,t)]});for(let s=1;s<o;s++)r.push({op:"lineTo",data:[i[s][0]+Lt(a,t),i[s][1]+Lt(a,t)]})}}return{type:"fillPath",ops:r}}n(Nn,"I");function oi(e,t){return(function(r,i){let a=r.fillStyle||"hachure";if(!_e[a])switch(a){case"zigzag":_e[a]||(_e[a]=new x_(i));break;case"cross-hatch":_e[a]||(_e[a]=new C_(i));break;case"dots":_e[a]||(_e[a]=new b_(i));break;case"dashed":_e[a]||(_e[a]=new k_(i));break;case"zigzag-line":_e[a]||(_e[a]=new w_(i));break;default:a="hachure",_e[a]||(_e[a]=new nu(i))}return _e[a]})(t,S_).fillPolygons(e,t)}n(oi,"C");function tc(e){let t=Object.assign({},e);return t.randomizer=void 0,e.seed&&(t.seed=e.seed+1),t}n(tc,"z");function uu(e){return e.randomizer||(e.randomizer=new v_(e.seed||0)),e.randomizer.next()}n(uu,"W");function Do(e,t,r,i=1){return r.roughness*i*(uu(r)*(t-e)+e)}n(Do,"E");function Lt(e,t,r=1){return Do(-e,e,t,r)}n(Lt,"G");function Mr(e,t,r,i,a,o=!1){let s=o?a.disableMultiStrokeFill:a.disableMultiStroke,l=xs(e,t,r,i,a,!0,!1);if(s)return l;let d=xs(e,t,r,i,a,!0,!0);return l.concat(d)}n(Mr,"$");function xs(e,t,r,i,a,o,s){let l=Math.pow(e-r,2)+Math.pow(t-i,2),d=Math.sqrt(l),c=1;c=d<200?1:d>500?.4:-.0016668*d+1.233334;let h=a.maxRandomnessOffset||0;h*h*100>l&&(h=d/10);let u=h/2,p=.2+.2*uu(a),g=a.bowing*a.maxRandomnessOffset*(i-t)/200,y=a.bowing*a.maxRandomnessOffset*(e-r)/200;g=Lt(g,a,c),y=Lt(y,a,c);let m=[],x=n(()=>Lt(u,a,c),"M"),C=n(()=>Lt(h,a,c),"k"),k=a.preserveVertices;return o&&(s?m.push({op:"move",data:[e+(k?0:x()),t+(k?0:x())]}):m.push({op:"move",data:[e+(k?0:Lt(h,a,c)),t+(k?0:Lt(h,a,c))]})),s?m.push({op:"bcurveTo",data:[g+e+(r-e)*p+x(),y+t+(i-t)*p+x(),g+e+2*(r-e)*p+x(),y+t+2*(i-t)*p+x(),r+(k?0:x()),i+(k?0:x())]}):m.push({op:"bcurveTo",data:[g+e+(r-e)*p+C(),y+t+(i-t)*p+C(),g+e+2*(r-e)*p+C(),y+t+2*(i-t)*p+C(),r+(k?0:C()),i+(k?0:C())]}),m}n(xs,"R");function ro(e,t,r){if(!e.length)return[];let i=[];i.push([e[0][0]+Lt(t,r),e[0][1]+Lt(t,r)]),i.push([e[0][0]+Lt(t,r),e[0][1]+Lt(t,r)]);for(let a=1;a<e.length;a++)i.push([e[a][0]+Lt(t,r),e[a][1]+Lt(t,r)]),a===e.length-1&&i.push([e[a][0]+Lt(t,r),e[a][1]+Lt(t,r)]);return qo(i,null,r)}n(ro,"j");function qo(e,t,r){let i=e.length,a=[];if(i>3){let o=[],s=1-r.curveTightness;a.push({op:"move",data:[e[1][0],e[1][1]]});for(let l=1;l+2<i;l++){let d=e[l];o[0]=[d[0],d[1]],o[1]=[d[0]+(s*e[l+1][0]-s*e[l-1][0])/6,d[1]+(s*e[l+1][1]-s*e[l-1][1])/6],o[2]=[e[l+1][0]+(s*e[l][0]-s*e[l+2][0])/6,e[l+1][1]+(s*e[l][1]-s*e[l+2][1])/6],o[3]=[e[l+1][0],e[l+1][1]],a.push({op:"bcurveTo",data:[o[1][0],o[1][1],o[2][0],o[2][1],o[3][0],o[3][1]]})}if(t&&t.length===2){let l=r.maxRandomnessOffset;a.push({op:"lineTo",data:[t[0]+Lt(l,r),t[1]+Lt(l,r)]})}}else i===3?(a.push({op:"move",data:[e[1][0],e[1][1]]}),a.push({op:"bcurveTo",data:[e[1][0],e[1][1],e[2][0],e[2][1],e[2][0],e[2][1]]})):i===2&&a.push(...xs(e[0][0],e[0][1],e[1][0],e[1][1],r,!0,!0));return a}n(qo,"q");function ec(e,t,r,i,a,o,s,l){let d=[],c=[];if(l.roughness===0){e/=4,c.push([t+i*Math.cos(-e),r+a*Math.sin(-e)]);for(let h=0;h<=2*Math.PI;h+=e){let u=[t+i*Math.cos(h),r+a*Math.sin(h)];d.push(u),c.push(u)}c.push([t+i*Math.cos(0),r+a*Math.sin(0)]),c.push([t+i*Math.cos(e),r+a*Math.sin(e)])}else{let h=Lt(.5,l)-Math.PI/2;c.push([Lt(o,l)+t+.9*i*Math.cos(h-e),Lt(o,l)+r+.9*a*Math.sin(h-e)]);let u=2*Math.PI+h-.01;for(let p=h;p<u;p+=e){let g=[Lt(o,l)+t+i*Math.cos(p),Lt(o,l)+r+a*Math.sin(p)];d.push(g),c.push(g)}c.push([Lt(o,l)+t+i*Math.cos(h+2*Math.PI+.5*s),Lt(o,l)+r+a*Math.sin(h+2*Math.PI+.5*s)]),c.push([Lt(o,l)+t+.98*i*Math.cos(h+s),Lt(o,l)+r+.98*a*Math.sin(h+s)]),c.push([Lt(o,l)+t+.9*i*Math.cos(h+.5*s),Lt(o,l)+r+.9*a*Math.sin(h+.5*s)])}return[c,d]}n(ec,"F");function rc(e,t,r,i,a,o,s,l,d){let c=o+Lt(.1,d),h=[];h.push([Lt(l,d)+t+.9*i*Math.cos(c-e),Lt(l,d)+r+.9*a*Math.sin(c-e)]);for(let u=c;u<=s;u+=e)h.push([Lt(l,d)+t+i*Math.cos(u),Lt(l,d)+r+a*Math.sin(u)]);return h.push([t+i*Math.cos(s),r+a*Math.sin(s)]),h.push([t+i*Math.cos(s),r+a*Math.sin(s)]),qo(h,null,d)}n(rc,"V");function yk(e,t,r,i,a,o,s,l){let d=[],c=[l.maxRandomnessOffset||1,(l.maxRandomnessOffset||1)+.3],h=[0,0],u=l.disableMultiStroke?1:2,p=l.preserveVertices;for(let g=0;g<u;g++)g===0?d.push({op:"move",data:[s[0],s[1]]}):d.push({op:"move",data:[s[0]+(p?0:Lt(c[0],l)),s[1]+(p?0:Lt(c[0],l))]}),h=p?[a,o]:[a+Lt(c[g],l),o+Lt(c[g],l)],d.push({op:"bcurveTo",data:[e+Lt(c[g],l),t+Lt(c[g],l),r+Lt(c[g],l),i+Lt(c[g],l),h[0],h[1]]});return d}n(yk,"Z");function Di(e){return[...e]}n(Di,"Q");function ic(e,t=0){let r=e.length;if(r<3)throw new Error("A curve must have at least three points.");let i=[];if(r===3)i.push(Di(e[0]),Di(e[1]),Di(e[2]),Di(e[2]));else{let a=[];a.push(e[0],e[0]);for(let l=1;l<e.length;l++)a.push(e[l]),l===e.length-1&&a.push(e[l]);let o=[],s=1-t;i.push(Di(a[0]));for(let l=1;l+2<a.length;l++){let d=a[l];o[0]=[d[0],d[1]],o[1]=[d[0]+(s*a[l+1][0]-s*a[l-1][0])/6,d[1]+(s*a[l+1][1]-s*a[l-1][1])/6],o[2]=[a[l+1][0]+(s*a[l][0]-s*a[l+2][0])/6,a[l+1][1]+(s*a[l][1]-s*a[l+2][1])/6],o[3]=[a[l+1][0],a[l+1][1]],i.push(o[1],o[2],o[3])}}return i}n(ic,"H");function fo(e,t){return Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2)}n(fo,"N");function mk(e,t,r){let i=fo(t,r);if(i===0)return fo(e,t);let a=((e[0]-t[0])*(r[0]-t[0])+(e[1]-t[1])*(r[1]-t[1]))/i;return a=Math.max(0,Math.min(1,a)),fo(e,qr(t,r,a))}n(mk,"B");function qr(e,t,r){return[e[0]+(t[0]-e[0])*r,e[1]+(t[1]-e[1])*r]}n(qr,"J");function Cs(e,t,r,i){let a=i||[];if((function(l,d){let c=l[d+0],h=l[d+1],u=l[d+2],p=l[d+3],g=3*h[0]-2*c[0]-p[0];g*=g;let y=3*h[1]-2*c[1]-p[1];y*=y;let m=3*u[0]-2*p[0]-c[0];m*=m;let x=3*u[1]-2*p[1]-c[1];return x*=x,g<m&&(g=m),y<x&&(y=x),g+y})(e,t)<r){let l=e[t+0];a.length?(o=a[a.length-1],s=l,Math.sqrt(fo(o,s))>1&&a.push(l)):a.push(l),a.push(e[t+3])}else{let l=e[t+0],d=e[t+1],c=e[t+2],h=e[t+3],u=qr(l,d,.5),p=qr(d,c,.5),g=qr(c,h,.5),y=qr(u,p,.5),m=qr(p,g,.5),x=qr(y,m,.5);Cs([l,u,y,x],0,r,a),Cs([x,m,g,h],0,r,a)}var o,s;return a}n(Cs,"K");function xk(e,t){return Po(e,0,e.length,t)}n(xk,"U");function Po(e,t,r,i,a){let o=a||[],s=e[t],l=e[r-1],d=0,c=1;for(let h=t+1;h<r-1;++h){let u=mk(e[h],s,l);u>d&&(d=u,c=h)}return Math.sqrt(d)>i?(Po(e,t,c+1,i,o),Po(e,c,r,i,o)):(o.length||o.push(s),o.push(l)),o}n(Po,"X");function zn(e,t=.15,r){let i=[],a=(e.length-1)/3;for(let o=0;o<a;o++)Cs(e,3*o,t,i);return r&&r>0?Po(i,0,i.length,r):i}n(zn,"Y");var Ee="none",wa,bs=(wa=class{constructor(t){this.defaultOptions={maxRandomnessOffset:2,roughness:1,bowing:1,stroke:"#000",strokeWidth:1,curveTightness:0,curveFitting:.95,curveStepCount:9,fillStyle:"hachure",fillWeight:-1,hachureAngle:-41,hachureGap:-1,dashOffset:-1,dashGap:-1,zigzagOffset:-1,seed:0,disableMultiStroke:!1,disableMultiStrokeFill:!1,preserveVertices:!1,fillShapeRoughnessGain:.8},this.config=t||{},this.config.options&&(this.defaultOptions=this._o(this.config.options))}static newSeed(){return Math.floor(Math.random()*2**31)}_o(t){return t?Object.assign({},this.defaultOptions,t):this.defaultOptions}_d(t,r,i){return{shape:t,sets:r||[],options:i||this.defaultOptions}}line(t,r,i,a,o){let s=this._o(o);return this._d("line",[cu(t,r,i,a,s)],s)}rectangle(t,r,i,a,o){let s=this._o(o),l=[],d=fk(t,r,i,a,s);if(s.fill){let c=[[t,r],[t+i,r],[t+i,r+a],[t,r+a]];s.fillStyle==="solid"?l.push(Nn([c],s)):l.push(oi([c],s))}return s.stroke!==Ee&&l.push(d),this._d("rectangle",l,s)}ellipse(t,r,i,a,o){let s=this._o(o),l=[],d=du(i,a,s),c=ms(t,r,s,d);if(s.fill)if(s.fillStyle==="solid"){let h=ms(t,r,s,d).opset;h.type="fillPath",l.push(h)}else l.push(oi([c.estimatedPoints],s));return s.stroke!==Ee&&l.push(c.opset),this._d("ellipse",l,s)}circle(t,r,i,a){let o=this.ellipse(t,r,i,i,a);return o.shape="circle",o}linearPath(t,r){let i=this._o(r);return this._d("linearPath",[go(t,!1,i)],i)}arc(t,r,i,a,o,s,l=!1,d){let c=this._o(d),h=[],u=Jh(t,r,i,a,o,s,l,!0,c);if(l&&c.fill)if(c.fillStyle==="solid"){let p=Object.assign({},c);p.disableMultiStroke=!0;let g=Jh(t,r,i,a,o,s,!0,!1,p);g.type="fillPath",h.push(g)}else h.push((function(p,g,y,m,x,C,k){let w=p,S=g,B=Math.abs(y/2),_=Math.abs(m/2);B+=Lt(.01*B,k),_+=Lt(.01*_,k);let $=x,I=C;for(;$<0;)$+=2*Math.PI,I+=2*Math.PI;I-$>2*Math.PI&&($=0,I=2*Math.PI);let U=(I-$)/k.curveStepCount,V=[];for(let A=$;A<=I;A+=U)V.push([w+B*Math.cos(A),S+_*Math.sin(A)]);return V.push([w+B*Math.cos(I),S+_*Math.sin(I)]),V.push([w,S]),oi([V],k)})(t,r,i,a,o,s,c));return c.stroke!==Ee&&h.push(u),this._d("arc",h,c)}curve(t,r){let i=this._o(r),a=[],o=Qh(t,i);if(i.fill&&i.fill!==Ee)if(i.fillStyle==="solid"){let s=Qh(t,Object.assign(Object.assign({},i),{disableMultiStroke:!0,roughness:i.roughness?i.roughness+i.fillShapeRoughnessGain:0}));a.push({type:"fillPath",ops:this._mergedShape(s.ops)})}else{let s=[],l=t;if(l.length){let d=typeof l[0][0]=="number"?[l]:l;for(let c of d)c.length<3?s.push(...c):c.length===3?s.push(...zn(ic([c[0],c[0],c[1],c[2]]),10,(1+i.roughness)/2)):s.push(...zn(ic(c),10,(1+i.roughness)/2))}s.length&&a.push(oi([s],i))}return i.stroke!==Ee&&a.push(o),this._d("curve",a,i)}polygon(t,r){let i=this._o(r),a=[],o=go(t,!0,i);return i.fill&&(i.fillStyle==="solid"?a.push(Nn([t],i)):a.push(oi([t],i))),i.stroke!==Ee&&a.push(o),this._d("polygon",a,i)}path(t,r){let i=this._o(r),a=[];if(!t)return this._d("path",a,i);t=(t||"").replace(/\n/g," ").replace(/(-\s)/g,"-").replace("/(ss)/g"," ");let o=i.fill&&i.fill!=="transparent"&&i.fill!==Ee,s=i.stroke!==Ee,l=!!(i.simplification&&i.simplification<1),d=(function(h,u,p){let g=lu(su(Ks(h))),y=[],m=[],x=[0,0],C=[],k=n(()=>{C.length>=4&&m.push(...zn(C,u)),C=[]},"i"),w=n(()=>{k(),m.length&&(y.push(m),m=[])},"c");for(let{key:B,data:_}of g)switch(B){case"M":w(),x=[_[0],_[1]],m.push(x);break;case"L":k(),m.push([_[0],_[1]]);break;case"C":if(!C.length){let $=m.length?m[m.length-1]:x;C.push([$[0],$[1]])}C.push([_[0],_[1]]),C.push([_[2],_[3]]),C.push([_[4],_[5]]);break;case"Z":k(),m.push([x[0],x[1]])}if(w(),!p)return y;let S=[];for(let B of y){let _=xk(B,p);_.length&&S.push(_)}return S})(t,1,l?4-4*(i.simplification||1):(1+i.roughness)/2),c=Kh(t,i);if(o)if(i.fillStyle==="solid")if(d.length===1){let h=Kh(t,Object.assign(Object.assign({},i),{disableMultiStroke:!0,roughness:i.roughness?i.roughness+i.fillShapeRoughnessGain:0}));a.push({type:"fillPath",ops:this._mergedShape(h.ops)})}else a.push(Nn(d,i));else a.push(oi(d,i));return s&&(l?d.forEach((h=>{a.push(go(h,!1,i))})):a.push(c)),this._d("path",a,i)}opsToPath(t,r){let i="";for(let a of t.ops){let o=typeof r=="number"&&r>=0?a.data.map((s=>+s.toFixed(r))):a.data;switch(a.op){case"move":i+=`M${o[0]} ${o[1]} `;break;case"bcurveTo":i+=`C${o[0]} ${o[1]}, ${o[2]} ${o[3]}, ${o[4]} ${o[5]} `;break;case"lineTo":i+=`L${o[0]} ${o[1]} `}}return i.trim()}toPaths(t){let r=t.sets||[],i=t.options||this.defaultOptions,a=[];for(let o of r){let s=null;switch(o.type){case"path":s={d:this.opsToPath(o),stroke:i.stroke,strokeWidth:i.strokeWidth,fill:Ee};break;case"fillPath":s={d:this.opsToPath(o),stroke:Ee,strokeWidth:0,fill:i.fill||Ee};break;case"fillSketch":s=this.fillSketch(o,i)}s&&a.push(s)}return a}fillSketch(t,r){let i=r.fillWeight;return i<0&&(i=r.strokeWidth/2),{d:this.opsToPath(t),stroke:r.fill||Ee,strokeWidth:i,fill:Ee}}_mergedShape(t){return t.filter(((r,i)=>i===0||r.op!=="move"))}},n(wa,"et"),wa),va,B_=(va=class{constructor(t,r){this.canvas=t,this.ctx=this.canvas.getContext("2d"),this.gen=new bs(r)}draw(t){let r=t.sets||[],i=t.options||this.getDefaultOptions(),a=this.ctx,o=t.options.fixedDecimalPlaceDigits;for(let s of r)switch(s.type){case"path":a.save(),a.strokeStyle=i.stroke==="none"?"transparent":i.stroke,a.lineWidth=i.strokeWidth,i.strokeLineDash&&a.setLineDash(i.strokeLineDash),i.strokeLineDashOffset&&(a.lineDashOffset=i.strokeLineDashOffset),this._drawToContext(a,s,o),a.restore(
vendor: 8,289 bytes, line 198
198);break;case"fillPath":{a.save(),a.fillStyle=i.fill||"";let l=t.shape==="curve"||t.shape==="polygon"||t.shape==="path"?"evenodd":"nonzero";this._drawToContext(a,s,o,l),a.restore();break}case"fillSketch":this.fillSketch(a,s,i)}}fillSketch(t,r,i){let a=i.fillWeight;a<0&&(a=i.strokeWidth/2),t.save(),i.fillLineDash&&t.setLineDash(i.fillLineDash),i.fillLineDashOffset&&(t.lineDashOffset=i.fillLineDashOffset),t.strokeStyle=i.fill||"",t.lineWidth=a,this._drawToContext(t,r,i.fixedDecimalPlaceDigits),t.restore()}_drawToContext(t,r,i,a="nonzero"){t.beginPath();for(let o of r.ops){let s=typeof i=="number"&&i>=0?o.data.map((l=>+l.toFixed(i))):o.data;switch(o.op){case"move":t.moveTo(s[0],s[1]);break;case"bcurveTo":t.bezierCurveTo(s[0],s[1],s[2],s[3],s[4],s[5]);break;case"lineTo":t.lineTo(s[0],s[1])}}r.type==="fillPath"?t.fill(a):t.stroke()}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}line(t,r,i,a,o){let s=this.gen.line(t,r,i,a,o);return this.draw(s),s}rectangle(t,r,i,a,o){let s=this.gen.rectangle(t,r,i,a,o);return this.draw(s),s}ellipse(t,r,i,a,o){let s=this.gen.ellipse(t,r,i,a,o);return this.draw(s),s}circle(t,r,i,a){let o=this.gen.circle(t,r,i,a);return this.draw(o),o}linearPath(t,r){let i=this.gen.linearPath(t,r);return this.draw(i),i}polygon(t,r){let i=this.gen.polygon(t,r);return this.draw(i),i}arc(t,r,i,a,o,s,l=!1,d){let c=this.gen.arc(t,r,i,a,o,s,l,d);return this.draw(c),c}curve(t,r){let i=this.gen.curve(t,r);return this.draw(i),i}path(t,r){let i=this.gen.path(t,r);return this.draw(i),i}},n(va,"st"),va),mn="http://www.w3.org/2000/svg",Ta,__=(Ta=class{constructor(t,r){this.svg=t,this.gen=new bs(r)}draw(t){let r=t.sets||[],i=t.options||this.getDefaultOptions(),a=this.svg.ownerDocument||window.document,o=a.createElementNS(mn,"g"),s=t.options.fixedDecimalPlaceDigits;for(let l of r){let d=null;switch(l.type){case"path":d=a.createElementNS(mn,"path"),d.setAttribute("d",this.opsToPath(l,s)),d.setAttribute("stroke",i.stroke),d.setAttribute("stroke-width",i.strokeWidth+""),d.setAttribute("fill","none"),i.strokeLineDash&&d.setAttribute("stroke-dasharray",i.strokeLineDash.join(" ").trim()),i.strokeLineDashOffset&&d.setAttribute("stroke-dashoffset",`${i.strokeLineDashOffset}`);break;case"fillPath":d=a.createElementNS(mn,"path"),d.setAttribute("d",this.opsToPath(l,s)),d.setAttribute("stroke","none"),d.setAttribute("stroke-width","0"),d.setAttribute("fill",i.fill||""),t.shape!=="curve"&&t.shape!=="polygon"||d.setAttribute("fill-rule","evenodd");break;case"fillSketch":d=this.fillSketch(a,l,i)}d&&o.appendChild(d)}return o}fillSketch(t,r,i){let a=i.fillWeight;a<0&&(a=i.strokeWidth/2);let o=t.createElementNS(mn,"path");return o.setAttribute("d",this.opsToPath(r,i.fixedDecimalPlaceDigits)),o.setAttribute("stroke",i.fill||""),o.setAttribute("stroke-width",a+""),o.setAttribute("fill","none"),i.fillLineDash&&o.setAttribute("stroke-dasharray",i.fillLineDash.join(" ").trim()),i.fillLineDashOffset&&o.setAttribute("stroke-dashoffset",`${i.fillLineDashOffset}`),o}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}opsToPath(t,r){return this.gen.opsToPath(t,r)}line(t,r,i,a,o){let s=this.gen.line(t,r,i,a,o);return this.draw(s)}rectangle(t,r,i,a,o){let s=this.gen.rectangle(t,r,i,a,o);return this.draw(s)}ellipse(t,r,i,a,o){let s=this.gen.ellipse(t,r,i,a,o);return this.draw(s)}circle(t,r,i,a){let o=this.gen.circle(t,r,i,a);return this.draw(o)}linearPath(t,r){let i=this.gen.linearPath(t,r);return this.draw(i)}polygon(t,r){let i=this.gen.polygon(t,r);return this.draw(i)}arc(t,r,i,a,o,s,l=!1,d){let c=this.gen.arc(t,r,i,a,o,s,l,d);return this.draw(c)}curve(t,r){let i=this.gen.curve(t,r);return this.draw(i)}path(t,r){let i=this.gen.path(t,r);return this.draw(i)}},n(Ta,"ot"),Ta),pt={canvas:n((e,t)=>new B_(e,t),"canvas"),svg:n((e,t)=>new __(e,t),"svg"),generator:n(e=>new bs(e),"generator"),newSeed:n(()=>bs.newSeed(),"newSeed")},$_=n(e=>{let{handDrawnSeed:t}=Pt();return{fill:e,hachureAngle:120,hachureGap:4,fillWeight:2,roughness:.7,stroke:e,seed:t}},"solidStateFill"),L_=n(e=>Array.isArray(e)?e:e?e.split(";").map(t=>t.trim()).filter(Boolean):[],"normalizeStyleList"),Da=n(e=>{let t=F_([...e.cssCompiledStyles||[],...e.cssStyles||[],...L_(e.labelStyle)]);return{stylesMap:t,stylesArray:[...t]}},"compileStyles"),F_=n(e=>{let t=new Map;return e.forEach(r=>{let[i,a]=r.split(":");t.set(i.trim(),a?.trim())}),t},"styles2Map"),Ck=n(e=>e==="color"||e==="font-size"||e==="font-family"||e==="font-weight"||e==="font-style"||e==="text-decoration"||e==="text-align"||e==="text-transform"||e==="line-height"||e==="letter-spacing"||e==="word-spacing"||e==="text-shadow"||e==="text-overflow"||e==="white-space"||e==="word-wrap"||e==="word-break"||e==="overflow-wrap"||e==="hyphens","isLabelStyle"),yt=n(e=>{let{stylesArray:t}=Da(e),r=[],i=[],a=[],o=[];return t.forEach(s=>{let l=s[0];Ck(l)?r.push(s.join(":")+" !important"):(i.push(s.join(":")+" !important"),l.includes("stroke")&&a.push(s.join(":")+" !important"),l==="fill"&&o.push(s.join(":")+" !important"))}),{labelStyles:r.join(";"),nodeStyles:i.join(";"),stylesArray:t,borderStyles:a,backgroundStyles:o}},"styles2String"),dt=n((e,t)=>{let{themeVariables:r,handDrawnSeed:i}=Pt(),{nodeBorder:a,mainBkg:o}=r,{stylesMap:s}=Da(e);return Object.assign({roughness:.7,fill:s.get("fill")||o,fillStyle:"hachure",fillWeight:4,hachureGap:5.2,stroke:s.get("stroke")||a,seed:i,strokeWidth:s.get("stroke-width")?.replace("px","")||1.3,fillLineDash:[0,0],strokeLineDash:M_(s.get("stroke-dasharray"))},t)},"userNodeOverrides"),M_=n(e=>{if(!e)return[0,0];let t=e.trim().split(/\s+/).map(Number);if(t.length===1){let r=isNaN(t[0])?0:t[0];return[r,r]}return[isNaN(t[0])?0:t[0],isNaN(t[1])?0:t[1]]},"getStrokeDashArray"),A_=1,E_=3;async function pu(e){let t=e.getElementsByTagName("img");if(!t||t.length===0)return;let r=!gu(e);await Promise.all([...t].map(i=>new Promise(a=>{function o(){if(i.style.display="flex",i.style.flexDirection="column",r){let s=Pt().fontSize?Pt().fontSize:window.getComputedStyle(document.body).fontSize,l=5,[d=_1.fontSize]=Vs(s),c=d*l+"px";i.style.minWidth=c,i.style.maxWidth=c}else i.style.width="100%";a(i)}n(o,"setupImage"),setTimeout(()=>{i.complete&&o()}),i.addEventListener("error",o),i.addEventListener("load",o)})))}n(pu,"configureLabelImages");function gu(e){return e.nodeType===E_?e.textContent?.trim()!=="":e.nodeType!==A_||e.tagName.toLowerCase()==="img"?!1:[...e.childNodes].some(gu)}n(gu,"hasTextBesidesImages");var Wp=3,O_=32,I_=n(async(e,t,r)=>{let i=Pt(),a=e.insert("g").attr("class",r??"node default").attr("id",t.domId||t.id),o=a.insert("g").attr("class","label").attr("style",oe(t.labelStyle)),s=[{text:typeof t.label=="string"?t.label:t.label?.[0]??"",cssClass:"c4-name"},{text:t.stereotype,cssClass:"c4-type"},...(t.description??[]).map(g=>({text:g,cssClass:"c4-descr"}))].filter(g=>g.text),l=t.width?Math.max(t.width-2*(t.padding??0),O_):Pt().flowchart?.wrappingWidth??200,d=i.c4?.wrap??!0?l:Number.POSITIVE_INFINITY,c=await Promise.all(s.map(async g=>{let y=o.append("g").attr("class",g.cssClass),m=await tr(y,Ne(Gr(g.text??""),i),{useHtmlLabels:!1,markdown:!1,isNode:!0,width:d,style:t.labelStyle},i);return At(m).selectAll("tspan.text-outer-tspan").attr("text-anchor","middle"),At(m).selectAll("tspan.text-inner-tspan").attr("font-weight",null).attr("font-style",null),{el:y,box:y.node().getBBox()}})),h=Math.max(...c.map(({box:g})=>g.width),0),u=0;for(let{el:g,box:y}of c)g.attr("transform",`translate(${h/2-y.x-y.width/2}, ${u-y.y})`),u+=y.height+Wp;let p=c.length>0?u-Wp:0;return o.insert("rect",":first-child"),o.attr("transform",`translate(${-h/2}, ${-p/2})`),{shapeSvg:a,bbox:o.node().getBBox(),halfPadding:(t.padding??0)/2,label:o}},"c4LabelHelper"),Tt=n(async(e,t,r)=>{if(t.stereotype!==void 0)return I_(e,t,r);let i,a=t.useHtmlLabels||dr(Pt()?.htmlLabels);r?i=r:i="node default";let o=e.insert("g").attr("class",i).attr("id",t.domId||t.id),s=o.insert("g").attr("class","label").attr("style",oe(t.labelStyle)),l;t.label===void 0?l="":l=typeof t.label=="string"?t.label:t.label[0];let d=!!t.icon||!!t.img,c=t.labelType==="markdown",h=await tr(s,Ne(Gr(l),Pt()),{useHtmlLabels:a,width:t.width||t.wrappingWidth||Pt().flowchart?.wrappingWidth,classes:c?"markdown-node-label":"",style:t.labelStyle,addSvgBackgroun
vendor: 4,291 bytes, line 198
198d:d,markdown:c},Pt()),u=(t?.padding??0)/2,p;if(a){let g=h.children[0],y=At(h);await pu(g),p=await yi.measure(()=>g.getBoundingClientRect()),y.attr("width",p.width),y.attr("height",p.height)}else p=await yi.measure(()=>h.getBBox());return a?s.attr("transform","translate("+-p.width/2+", "+-p.height/2+")"):s.attr("transform","translate(0, "+-p.height/2+")"),t.centerLabel&&s.attr("transform","translate("+-p.width/2+", "+-p.height/2+")"),s.insert("rect",":first-child"),{shapeSvg:o,bbox:p,halfPadding:u,label:s}},"labelHelper"),Sl=n(async(e,t,r)=>{let i=r.useHtmlLabels??ve(Pt()),a=e.insert("g").attr("class","label").attr("style",r.labelStyle||""),o=await tr(a,Ne(Gr(t),Pt()),{useHtmlLabels:i,width:r.width||Pt()?.flowchart?.wrappingWidth,style:r.labelStyle,addSvgBackground:!!r.icon||!!r.img}),s=r.padding/2,l;if(ve(Pt())){let d=o.children[0],c=At(o);l=await yi.measure(()=>d.getBoundingClientRect()),c.attr("width",l.width),c.attr("height",l.height)}else l=await yi.measure(()=>o.getBBox());return i?a.attr("transform","translate("+-l.width/2+", "+-l.height/2+")"):a.attr("transform","translate(0, "+-l.height/2+")"),r.centerLabel&&a.attr("transform","translate("+-l.width/2+", "+-l.height/2+")"),a.insert("rect",":first-child"),{shapeSvg:e,bbox:l,halfPadding:s,label:a}},"insertLabel"),ft=n((e,t,r)=>{if(r){e.width=r.width,e.height=r.height;return}let i=t.node().getBBox();e.width=i.width,e.height=i.height},"updateNodeBounds"),vt=n((e,t)=>(e.look==="handDrawn"?"rough-node":"node")+" "+e.cssClasses+" "+(t||""),"getNodeClasses");function Nt(e){let t=e.map((r,i)=>`${i===0?"M":"L"}${r.x},${r.y}`);return t.push("Z"),t.join(" ")}n(Nt,"createPathFromPoints");function Xr(e,t,r,i,a,o){let s=[],l=r-e,d=i-t,c=l/o,h=2*Math.PI/c,u=t+d/2;for(let p=0;p<=50;p++){let g=e+p/50*l,y=u+a*Math.sin(h*(g-e));s.push({x:g,y})}return s}n(Xr,"generateFullSineWavePoints");function or(e,t,r,i,a,o){let s=[],l=a*Math.PI/180,d=(o*Math.PI/180-l)/(i-1);for(let c=0;c<i;c++){let h=l+c*d,u=e+r*Math.cos(h),p=t+r*Math.sin(h);s.push({x:-u,y:-p})}return s}n(or,"generateCirclePoints");function ac(e){let t=Array.from(e.childNodes).filter(d=>d.tagName==="path"),r=document.createElementNS("http://www.w3.org/2000/svg","path"),i=t.map(d=>d.getAttribute("d")).filter(d=>d!==null).join(" ");r.setAttribute("d",i);let a=t.find(d=>d.getAttribute("fill")!=="none"),o=t.find(d=>d.getAttribute("stroke")!=="none"),s=n((d,c)=>d?.getAttribute(c)??void 0,"getAttr");if(a){let d={fill:s(a,"fill"),"fill-opacity":s(a,"fill-opacity")??"1"};Object.entries(d).forEach(([c,h])=>{h&&r.setAttribute(c,h)})}if(o){let d={stroke:s(o,"stroke"),"stroke-width":s(o,"stroke-width")??"1","stroke-opacity":s(o,"stroke-opacity")??"1"};Object.entries(d).forEach(([c,h])=>{h&&r.setAttribute(c,h)})}let l=document.createElementNS("http://www.w3.org/2000/svg","g");return l.appendChild(r),l}n(ac,"mergePaths");var ki=n((e,t)=>{var r=e.x,i=e.y,a=t.x-r,o=t.y-i,s=e.width/2,l=e.height/2,d,c;return Math.abs(o)*s>Math.abs(a)*l?(o<0&&(l=-l),d=o===0?0:l*a/o,c=l):(a<0&&(s=-s),d=s,c=a===0?0:s*o/a),{x:r+d,y:i+c}},"intersectRect"),je=n((e,t,r,i,a)=>["M",e+a,t,"H",e+r-a,"A",a,a,0,0,1,e+r,t+a,"V",t+i-a,"A",a,a,0,0,1,e+r-a,t+i,"H",e+a,"A",a,a,0,0,1,e,t+i-a,"V",t+a,"A",a,a,0,0,1,e+a,t,"Z"].join(" "),"createRoundedRectPathD"),zr=n(async(e,t,r,i=!1,a=!1)=>{let o=t||"";typeof o=="object"&&(o=o[0]);let s=Pt(),l=ve(s);return await tr(e,o,{style:r,isTitle:i,useHtmlLabels:l,markdown:!1,isNode:a,width:Number.POSITIVE_INFINITY},s)},"createLabel");function bk(e,t){return e.intersect(t)}n(bk,"intersectNode");var D_=bk;function kk(e,t,r,i){var a=e.x,o=e.y,s=a-i.x,l=o-i.y,d=Math.sqrt(t*t*l*l+r*r*s*s),c=Math.abs(t*r*s/d);i.x<a&&(c=-c);var h=Math.abs(t*r*l/d);return i.y<o&&(h=-h),{x:a+c,y:o+h}}n(kk,"intersectEllipse");var wk=kk;function vk(e,t,r){return wk(e,t,t,r)}n(vk,"intersectCircle");var q_=vk;function Tk(e,t,r,i){{let a=t.y-e.y,o=e.x-t.x,s=t.x*e.y-e.x*t.y,l=a*r.x+o*r.y+s,d=a*i.x+o*i.y+s,c=1e-6;if(l!==0&&d!==0&&oc(l,d))return;let h=i.y-r.y,u=r.x-i.x,p=i.x*r.y-r.x*i.y,g=h*e.x+u*e.y+p,y=h*t.x+u*t.y+p;if(Math.abs(g)<c&&Math.abs(y)<c&&oc(g,y))return;let m=a*u-h*o;if(m===0)return;let x=Math.abs(m/2),C=o*p-u*s,k=C<0?(C-x)/m:(C+x)/m;return C=h*s-a*p,{x:k,y:C<0?(C-x)/m:(C+x)/m}}}n(Tk,"intersectLine");function oc(e,t){return e*t>0}n(oc,"sameSign");var P_=Tk;
vendor: 4,104 bytes, line 198
198function Sk(e,t,r){let i=e.x,a=e.y,o=[],s=Number.POSITIVE_INFINITY,l=Number.POSITIVE_INFINITY;typeof t.forEach=="function"?t.forEach(function(h){s=Math.min(s,h.x),l=Math.min(l,h.y)}):(s=Math.min(s,t.x),l=Math.min(l,t.y));let d=i-e.width/2-s,c=a-e.height/2-l;for(let h=0;h<t.length;h++){let u=t[h],p=t[h<t.length-1?h+1:0],g=P_(e,r,{x:d+u.x,y:c+u.y},{x:d+p.x,y:c+p.y});g&&o.push(g)}return o.length?(o.length>1&&o.sort(function(h,u){let p=h.x-r.x,g=h.y-r.y,y=Math.sqrt(p*p+g*g),m=u.x-r.x,x=u.y-r.y,C=Math.sqrt(m*m+x*x);return y<C?-1:y===C?0:1}),o[0]):e}n(Sk,"intersectPolygon");var lt={node:D_,circle:q_,ellipse:wk,polygon:Sk,rect:ki};function Bk(e,t){let{labelStyles:r}=yt(t);t.labelStyle=r;let i=vt(t),a=i;i||(a="anchor");let o=e.insert("g").attr("class",a).attr("id",t.domId||t.id),s=1,{cssStyles:l}=t,d=pt.svg(o),c=dt(t,{fill:"black",stroke:"none",fillStyle:"solid"});t.look!=="handDrawn"&&(c.roughness=0);let h=d.circle(0,0,s*2,c),u=o.insert(()=>h,":first-child");return u.attr("class","anchor").attr("style",oe(l)),ft(t,u),t.intersect=function(p){return et.info("Circle intersect",t,s,p),lt.circle(t,s,p)},o}n(Bk,"anchor");function nc(e,t,r,i,a,o,s){let l=(e+r)/2,d=(t+i)/2,c=Math.atan2(i-t,r-e),h=(r-e)/2,u=(i-t)/2,p=h/a,g=u/o,y=Math.sqrt(p**2+g**2);if(y>1)throw new Error("The given radii are too small to create an arc between the points.");let m=Math.sqrt(1-y**2),x=l+m*o*Math.sin(c)*(s?-1:1),C=d-m*a*Math.cos(c)*(s?-1:1),k=Math.atan2((t-C)/o,(e-x)/a),w=Math.atan2((i-C)/o,(r-x)/a)-k;s&&w<0&&(w+=2*Math.PI),!s&&w>0&&(w-=2*Math.PI);let S=[];for(let B=0;B<20;B++){let _=k+B/19*w,$=x+a*Math.cos(_),I=C+o*Math.sin(_);S.push({x:$,y:I})}return S}n(nc,"generateArcPoints");function _k(e,t,r){let[i,a]=[t,r].sort((o,s)=>s-o);return a*(1-Math.sqrt(1-(e/i/2)**2))}n(_k,"calculateArcSagitta");async function $k(e,t){let{labelStyles:r,nodeStyles:i}=yt(t);t.labelStyle=r;let a=t.padding??0,o=t.look==="neo"?16:a,s=t.look==="neo"?12:a,l=n(I=>I+s,"calcTotalHeight"),d=n(I=>{let U=I/2;return[U/(2.5+I/50),U]},"calcEllipseRadius"),{shapeSvg:c,bbox:h}=await Tt(e,t,vt(t)),u=l(t?.height?t?.height:h.height),[p,g]=d(u),y=_k(u,p,g),m=(t?.width?t?.width:h.width)+o*2+y-y,x=u,{cssStyles:C}=t,k=[{x:m/2,y:-x/2},{x:-m/2,y:-x/2},...nc(-m/2,-x/2,-m/2,x/2,p,g,!1),{x:m/2,y:x/2},...nc(m/2,x/2,m/2,-x/2,p,g,!0)],w=pt.svg(c),S=dt(t,{});t.look!=="handDrawn"&&(S.roughness=0,S.fillStyle="solid");let B=Nt(k),_=w.path(B,S),$=c.insert(()=>_,":first-child");return $.attr("class","basic label-container outer-path"),C&&t.look!=="handDrawn"&&$.selectAll("path").attr("style",C),i&&t.look!=="handDrawn"&&$.selectAll("path").attr("style",i),$.attr("transform",`translate(${p/2}, 0)`),ft(t,$),t.intersect=function(I){return lt.polygon(t,k,I)},c}n($k,"bowTieRect");async function Lk(e,t,{config:{themeVariables:r}}){let{labelStyles:i,nodeStyles:a}=yt(t);t.labelStyle=i;let{shapeSvg:o,bbox:s,label:l}=await Tt(e,t,vt(t)),d=r?.nodeBorder??r?.lineColor??"currentColor",c=t.padding??12,h=Math.max(s.width+c*2,t.width??0,80),u=Math.max(Math.min(h*.08,12),5),p=Math.max(s.height+c*2+u,t.height??0),g=-p/2+u,y=p/2,m=h*.72,x=[`M${-h/2},${g}`,`L${-m/2},${y}`,`A${m/2},${u} 0 0 0 ${m/2},${y}`,`L${h/2},${g}`,`A${h/2},${u} 0 0 0 ${-h/2},${g}`,"Z"].join(" "),{cssStyles:C}=t,k=o.insert("g",":first-child").attr("class","basic label-container");if(t.look==="handDrawn"){let $=pt.svg(o).path(x,dt(t,{}));k.node()?.appendChild($),C&&k.attr("style",C)}else k.append("path").attr("d",x).attr("style",a);k.append("ellipse").attr("cx",0).attr("cy",g).attr("rx",h/2).attr("ry",u).attr("style",`fill:none;stroke:${d};stroke-width:1px`),ft(t,k);let w=g+(y-g)/2;l.attr("transform",`translate(${-(s.width/2)-(s.x-(s.left??0))}, ${w-s.height/2-(s.y-(s.top??0))})`);let S=12,B=n(($,I,U)=>Array.from({length:13},(V,A)=>{let W=Math.PI-A*Math.PI/S;return{x:$*Math.cos(W),y:I+U*u*Math.sin(W)}}),"arc"),_=[...B(h/2,g,-1),...B(m/2,y,1).reverse()];return t.intersect=function($){return lt.polygon(t,_,$)},o}n(Lk,"bucket");var jp=20,Hp=8,R_=80,Bl=8;async function Fk(e,t){let{themeVariables:r}=Pt(),i=r.clusterBkg,a=r.clusterBorder,{nodeStyles:o}=yt(t),{shapeSvg:s,bbox:l}
vendor: 7,268 bytes, line 198
198=await Tt(e,t,vt(t)),d=t.padding??8,c=l.height,h=Math.max(l.width+d*2,R_,t?.width??0),u=Math.max(c+Hp+jp+d*2,t?.height??0),p=-h/2,g=-u/2,y=-28/2,m=s.select(".label");m&&(t.useHtmlLabels??ve(Pt())?m.attr("transform",`translate(${-l.width/2}, ${-l.height/2+y})`):m.attr("transform",`translate(0, ${-l.height/2+y})`));let x;if(t.look==="handDrawn"){let B=pt.svg(s),_=dt(t,{fill:i,stroke:a,fillStyle:"solid"}),$=B.path(je(p,g,h,u,Bl),_);x=s.insert(()=>$,":first-child"),x.attr("class","basic label-container collapsed-group").attr("style",oe(t.cssStyles))}else x=s.insert("rect",":first-child"),x.attr("class","basic label-container collapsed-group").attr("style",o).attr("rx",Bl).attr("ry",Bl).attr("x",p).attr("y",g).attr("width",h).attr("height",u).attr("fill",i).attr("stroke",a);let C=g+d+c+Hp;s.append("line").attr("class","collapsed-separator").attr("x1",p+8).attr("y1",C).attr("x2",p+h-8).attr("y2",C).attr("stroke",a).attr("stroke-dasharray","3, 3");let k=C+jp/2,w=2.5,S=10;for(let B=-1;B<=1;B++)s.append("circle").attr("class","collapsed-indicator").attr("cx",B*S).attr("cy",k).attr("r",w).attr("fill",a);return ft(t,x),t.calcIntersect=function(B,_){return lt.rect(B,_)},t.intersect=function(B){return lt.rect(t,B)},s}n(Fk,"collapsedGroup");function ur(e,t,r,i){return e.insert("polygon",":first-child").attr("points",i.map(function(a){return a.x+","+a.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-t/2+","+r/2+")")}n(ur,"insertPolygonShape");var N_=["right","left","up","down"],fu="point",z_=n(e=>{let t=new Set;for(let r of e)switch(r){case"x":t.add("right"),t.add("left");break;case"y":t.add("up"),t.add("down");break;default:t.add(r);break}return t},"expandAndDeduplicateDirections"),W_=n(e=>N_.filter(t=>e.has(t)).join("|")||fu,"getDirectionKey"),Up={"right|left|up|down":n(({height:e,midpoint:t,padding:r,width:i})=>[{x:0,y:0},{x:t,y:0},{x:i/2,y:2*r},{x:i-t,y:0},{x:i,y:0},{x:i,y:-e/3},{x:i+2*r,y:-e/2},{x:i,y:-2*e/3},{x:i,y:-e},{x:i-t,y:-e},{x:i/2,y:-e-2*r},{x:t,y:-e},{x:0,y:-e},{x:0,y:-2*e/3},{x:-2*r,y:-e/2},{x:0,y:-e/3}],"right|left|up|down"),"right|left|up":n(({height:e,midpoint:t,width:r})=>[{x:t,y:0},{x:r-t,y:0},{x:r,y:-e/2},{x:r-t,y:-e},{x:t,y:-e},{x:0,y:-e/2}],"right|left|up"),"right|left|down":n(({height:e,midpoint:t,width:r})=>[{x:0,y:0},{x:t,y:-e},{x:r-t,y:-e},{x:r,y:0}],"right|left|down"),"right|up|down":n(({height:e,midpoint:t,width:r})=>[{x:0,y:0},{x:r,y:-t},{x:r,y:-e+t},{x:0,y:-e}],"right|up|down"),"left|up|down":n(({height:e,midpoint:t,width:r})=>[{x:r,y:0},{x:0,y:-t},{x:0,y:-e+t},{x:r,y:-e}],"left|up|down"),"right|left":n(({height:e,midpoint:t,padding:r,width:i})=>[{x:t,y:0},{x:t,y:-r},{x:i-t,y:-r},{x:i-t,y:0},{x:i,y:-e/2},{x:i-t,y:-e},{x:i-t,y:-e+r},{x:t,y:-e+r},{x:t,y:-e},{x:0,y:-e/2}],"right|left"),"up|down":n(({height:e,midpoint:t,padding:r,width:i})=>[{x:i/2,y:0},{x:0,y:-r},{x:t,y:-r},{x:t,y:-e+r},{x:0,y:-e+r},{x:i/2,y:-e},{x:i,y:-e+r},{x:i-t,y:-e+r},{x:i-t,y:-r},{x:i,y:-r}],"up|down"),"right|up":n(({height:e,midpoint:t,width:r})=>[{x:0,y:0},{x:r,y:-t},{x:0,y:-e}],"right|up"),"right|down":n(({height:e,width:t})=>[{x:0,y:0},{x:t,y:0},{x:0,y:-e}],"right|down"),"left|up":n(({height:e,midpoint:t,width:r})=>[{x:r,y:0},{x:0,y:-t},{x:r,y:-e}],"left|up"),"left|down":n(({height:e,width:t})=>[{x:t,y:0},{x:0,y:0},{x:t,y:-e}],"left|down"),right:n(({height:e,midpoint:t,padding:r,width:i})=>[{x:t,y:-r},{x:t,y:-r},{x:i-t,y:-r},{x:i-t,y:0},{x:i,y:-e/2},{x:i-t,y:-e},{x:i-t,y:-e+r},{x:t,y:-e+r},{x:t,y:-e+r}],"right"),left:n(({height:e,midpoint:t,padding:r,width:i})=>[{x:t,y:0},{x:t,y:-r},{x:i-t,y:-r},{x:i-t,y:-e+r},{x:t,y:-e+r},{x:t,y:-e},{x:0,y:-e/2}],"left"),up:n(({height:e,midpoint:t,padding:r,width:i})=>[{x:t,y:-r},{x:t,y:-e+r},{x:0,y:-e+r},{x:i/2,y:-e},{x:i,y:-e+r},{x:i-t,y:-e+r},{x:i-t,y:-r}],"up"),down:n(({height:e,midpoint:t,padding:r,width:i})=>[{x:i/2,y:0},{x:0,y:-r},{x:t,y:-r},{x:t,y:-e+r},{x:i-t,y:-e+r},{x:i-t,y:-r},{x:i,y:-r}],"down"),[fu]:()=>[{x:0,y:0}]},j_=n((e,t,r,i)=>{let a=z_(e),o=(r.padding??0)/2,s=t.height+4*o,l=s/2,d=i??t.width+2*l+2*o;return(Up[W_(a)]??Up[fu])({height:s,midpoint:l,padding:o,width:d})},"getArrowPoints");async function Mk(e,t){let r=t,{shapeSvg:i,bbox:a}=await Tt(e,r,vt(r)),o=r.padding??0,s=a.height+2*o,l=s/2,d=a.width+2*l+o,c=r.width??0,h=r.positioned&&(r.widthInColumns??1)>1&&c>d?c:d,u=j_(r.directions??[],a,r,h),p=ur(i,h,s,u);return p.attr("style",r.style??null),ft(r,p),r.intersect=function(g){return lt.polygon(r,u,g)},i}n(Mk,"block_arrow");async function Ak(e,t,{config:{themeVariables:r}}){let{labelStyles:i,nodeStyles:a}=yt(t);t.labelStyle=i;let{shapeSvg:o,bbox:s,label:l}=await Tt(e,t,vt(t)),d=r?.nodeBorder??r?.lineColor??"currentColor",c=t.padding??12,h=18,u=12,p=Math.max(s.width+c*2,t.width??0,90),g=Math.max(s.height+c*2+h,t.height??0),y=-g/2,{cssStyles:m}=t,x=o.insert("g",":first-child").attr("class","basic label-container");if(t.look==="handDrawn"){let k=pt.svg(o).path(je(-p/2,y,p,g,u),dt(t,{}));x.node()?.appendChild(k),m&&x.attr("style",m)}else x.append("rect").attr("x",-p/2).attr("y",y).attr("width",p).attr("height",g).attr("rx",u).attr("ry",u).attr("style",a);x.append("line").attr("x1",-p/2).attr("y1",y+h).attr("x2",p/2).attr("y2",y+h).attr("style",`stroke:${d};stroke-width:1px`);for(let k=0;k<3;k++)x.append("circle").attr("cx",-p/2+12+k*9).attr("cy",y+h/2).attr("r",2.5).attr("style",`fill:${d};stroke:none`);x.append("rect").attr("class","browser-address-bar").attr("x",-p/2+44).attr("y",y+4).attr("width",Math.max(p-56,10)).attr("height",h-8).attr("rx",3).attr("ry",3).attr("style",`fill:none;stroke:${d};stroke-width:1px;opacity:0.6`),ft(t,x);let C=y+h+(g-h)/2;return l.attr("transform",`translate(${-(s.width/2)-(s.x-(s.left??0))}, ${C-s.height/2-(s.y-(s.top??0))})`),t.intersect=function(k){return lt.rect(t,k)},o}n(Ak,"browser");var xn=12;async function Ek(e,t){let{labelStyles:r,nodeStyles:i}=yt(t);t.labelStyle=r;let a=t.padding??0,o=t.look==="neo"?28:a,s=t.look==="neo"?24:a,{shapeSvg:l,bbox:d}=await Tt(e,t,vt(t)),c=(t?.width??d.width)+(t.look==="neo"?o*2:o+xn),h=(t?.height??d.height)+(t.look==="neo"?s*2:s),u=0,p=c,g=-h,y=0,m=[{x:u+xn,y:g},{x:p,y:g},{x:p,y},{x:u,y},{x:u,y:g+xn},{x:u+xn,y:g}],x,{cssStyles:C}=t;if(t.look==="handDrawn"){let k=pt.svg(l),w=dt(t,{}),S=Nt(m),B=k.path(S,w);x=l.insert(()=>B,":first-child").attr("transform",`translate(${-c/2}, ${h/2})`),C&&x.attr("style",C)}else x=ur(l,c,h,m);return i&&x.attr("style",i),ft(t,x),t.intersect=function(k){return lt.polygon(t,m,k)},l}n(Ek,"card");function Ok(e,t){let{nodeStyles:r}=yt(t);t.label="";let i=e.insert("g").attr("class",vt(t)).attr("id",t.domId??t.id),{cssStyles:a}=t,o=Math.max(28,t.width??0),s=[{x:0,y:o/2},{x:o/2,y:0},{x:0,y:-o/2},{x:-o/2,y:0}],l=pt.svg(i),d=dt(t,{});t.look!=="handDrawn"&&(d.roughness=0,d.fillStyle="solid");let c=Nt(s),h=l.path(c,d),u=i.insert(()=>h,":first-child");return a&&t.look!=="handDrawn"&&u.selectAll("path").attr("style",a),r&&t.look!=="handDrawn"&&u.selectAll("path").attr("style",r),t.width=28,t.height=28,t.intersect=function(p){return lt.polygon(t,s,p)},i}n(Ok,"choice");async function yu(e,t,r){let{labelStyles:i,nodeStyles:a}=yt(t);t.labelStyle=i;let{shapeSvg:o,bbox:s,halfPadding:l}=await Tt(e,t,vt(t)),d=16,c=r?.padding??l,h=t.look==="neo"?s.width/2+d*2:s.width/2+c,u,{cssStyles:p}=t;
vendor: 4,395 bytes, lines 198-199
198if(t.look==="handDrawn"){let g=pt.svg(o),y=dt(t,{}),m=g.circle(0,0,h*2,y);u=o.insert(()=>m,":first-child"),u.attr("class","basic label-container").attr("style",oe(p))}else u=o.insert("circle",":first-child").attr("class","basic label-container").attr("style",a).attr("r",h).attr("cx",0).attr("cy",0);return ft(t,u),t.calcIntersect=function(g,y){let m=g.width/2;return lt.circle(g,m,y)},t.intersect=function(g){return et.info("Circle intersect",t,h,g),lt.circle(t,h,g)},o}n(yu,"circle");async function Ik(e,t){let r=t,{shapeSvg:i,bbox:a,halfPadding:o}=await Tt(e,r,["node",r.cssClasses,r.class].filter(Boolean).join(" ")),s=i.insert("rect",":first-child"),l=r.padding??0,d=r.positioned?r.width??0:a.width+l,c=r.positioned?r.height??0:a.height+l,h=r.positioned?-d/2:-a.width/2-o,u=r.positioned?-c/2:-a.height/2-o;return s.attr("class","basic cluster composite label-container").attr("style",r.style??null).attr("rx",r.rx??null).attr("ry",r.ry??null).attr("x",h).attr("y",u).attr("width",d).attr("height",c),ft(r,s),r.intersect=function(p){return lt.rect(r,p)},i}n(Ik,"composite");async function Dk(e,t,{config:{themeVariables:r}}){let{labelStyles:i,nodeStyles:a}=yt(t);t.labelStyle=i;let{shapeSvg:o,bbox:s,label:l}=await Tt(e,t,vt(t)),d=r?.nodeBorder??r?.lineColor??"currentColor",c=t.padding??12,h=20,u=12,p=Math.max(s.width+c*2,t.width??0,90),g=Math.max(s.height+c*2+h,t.height??0),y=-g/2,{cssStyles:m}=t,x=o.insert("g",":first-child").attr("class","basic label-container");if(t.look==="handDrawn"){let k=pt.svg(o).path(je(-p/2,y,p,g,u),dt(t,{}));x.node()?.appendChild(k),m&&x.attr("style",m)}else x.append("rect").attr("x",-p/2).attr("y",y).attr("width",p).attr("height",g).attr("rx",u).attr("ry",u).attr("style",a);x.append("text").attr("x",-p/2+12).attr("y",y+16).attr("class","console-glyph").attr("style",`font-family:monospace;font-weight:bold;font-size:14px;fill:${d}`).text(">_"),ft(t,x);let C=y+h+(g-h)/2;return l.attr("transform",`translate(${-(s.width/2)-(s.x-(s.left??0))}, ${C-s.height/2-(s.y-(s.top??0))})`),t.intersect=function(k){return lt.rect(t,k)},o}n(Dk,"consoleWindow");function qk(e){let t=Math.cos(Math.PI/4),r=Math.sin(Math.PI/4),i=e*2,a={x:i/2*t,y:i/2*r},o={x:-(i/2)*t,y:i/2*r},s={x:-(i/2)*t,y:-(i/2)*r},l={x:i/2*t,y:-(i/2)*r};return`M ${o.x},${o.y} L ${l.x},${l.y} 199 M ${a.x},${a.y} L ${s.x},${s.y}`}n(qk,"createLine");function Pk(e,t){let{labelStyles:r,nodeStyles:i}=yt(t);t.labelStyle=r,t.label="";let a=e.insert("g").attr("class",vt(t)).attr("id",t.domId??t.id),o=Math.max(30,t?.width??0),{cssStyles:s}=t,l=pt.svg(a),d=dt(t,{});t.look!=="handDrawn"&&(d.roughness=0,d.fillStyle="solid");let c=l.circle(0,0,o*2,d),h=qk(o),u=l.path(h,d),p=a.insert(()=>c,":first-child");return p.insert(()=>u),p.attr("class","outer-path"),s&&t.look!=="handDrawn"&&p.selectAll("path").attr("style",s),i&&t.look!=="handDrawn"&&p.selectAll("path").attr("style",i),ft(t,p),t.intersect=function(g){return et.info("crossedCircle intersect",t,{radius:o,point:g}),lt.circle(t,o,g)},a}n(Pk,"crossedCircle");function wr(e,t,r,i=100,a=0,o=180){let s=[],l=a*Math.PI/180,d=(o*Math.PI/180-l)/(i-1);for(let c=0;c<i;c++){let h=l+c*d,u=e+r*Math.cos(h),p=t+r*Math.sin(h);s.push({x:-u,y:-p})}return s}n(wr,"generateCirclePoints");async function Rk(e,t){let{labelStyles:r,nodeStyles:i}=yt(t);t.labelStyle=r;let{shapeSvg:a,bbox:o,label:s}=await Tt(e,t,vt(t)),l=t.look==="neo"?18:t.padding??0,d=t.look==="neo"?12:t.padding??0,c=o.width+l,h=o.height+d,u=Math.max(5,h*.1),{cssStyles:p}=t,g=[...wr(c/2,-h/2,u,30,-90,0),{x:-c/2-u,y:u},...wr(c/2+u*2,-u,u,20,-180,-270),...wr(c/2+u*2,u,u,20,-90,-180),{x:-c/2-u,y:-h/2},...wr(c/2,h/2,u,20,0,90)],y=[{x:c/2,y:-h/2-u},{x:-c/2,y:-h/2-u},...wr(c/2,-h/2,u,20,-90,0),{x:-c/2-u,y:-u},...wr(c/2+c*.1,-u,u,20,-180,-270),...wr(c/2+c*.1,u,u,20,-90,-180),{x:-c/2-u,y:h/2},...wr(c/2,h/2,u,20,0,90),{x:-c/2,y:h/2+u},{x:c/2,y:h/2+u}],m=pt.svg(a),x=dt(t,{fill:"none"});t.look!=="handDrawn"&&(x.roughness=0,x.fillStyle="solid");let C=Nt(g).replace("Z",""),k=m.path(C,x),w=Nt(y),S=m.path(w,{...x}),B=a.insert("g",":first-child");return B.insert(()=>S,":first-child").attr("stroke-opacity",0),B.insert(()=>k,":first-child"),B.attr("class","text"),p&&t.look!=="handDrawn"&&B.selectAll("path").attr("style",p),i&&t.look!=="handDrawn"&&B.selectAll("path").attr("style",i),B.attr("transform",`translate(${u}, 0)`),s.attr("transform",`translate(${-c/2+u-(o.x-(o.left??0))}
199,${-h/2+(t.padding??0)/2-(o.y-(o.top??0))})`),ft(t,B),t.intersect=function(_){return lt.polygon(t,y,_)},a}n(Rk,"curlyBraceLeft");function vr(e,t,r,i=100,a=0,o=180){let s=[],l=a*Math.PI/180,d=(o*Math.PI/180-l)/(i-1);for(let c=0;c<i;c++){let h=l+c*d,u=e+r*Math.cos(h),p=t+r*Math.sin(h);s.push({x:u,y:p})}return s}n(vr,"generateCirclePoints");async function Nk(e,t){let{labelStyles:r,nodeStyles:i}=yt(t);t.labelStyle=r;let{shapeSvg:a,bbox:o,label:s}=await Tt(e,t,vt(t)),l=t.look==="neo"?18:t.padding??0,d=t.look==="neo"?12:t.padding??0,c=o.width+(t.look==="neo"?l*2:l),h=o.height+(t.look==="neo"?d*2:d),u=Math.max(5,h*.1),{cssStyles:p}=t,g=[...vr(c/2,-h/2,u,20,-90,0),{x:c/2+u,y:-u},...vr(c/2+u*2,-u,u,20,-180,-270),...vr(c/2+u*2,u,u,20,-90,-180),{x:c/2+u,y:h/2},...vr(c/2,h/2,u,20,0,90)],y=[{x:-c/2,y:-h/2-u},{x:c/2,y:-h/2-u},...vr(c/2,-h/2,u,20,-90,0),{x:c/2+u,y:-u},...vr(c/2+u*2,-u,u,20,-180,-270),...vr(c/2+u*2,u,u,20,-90,-180),{x:c/2+u,y:h/2},...vr(c/2,h/2,u,20,0,90),{x:c/2,y:h/2+u},{x:-c/2,y:h/2+u}],m=pt.svg(a),x=dt(t,{fill:"none"});t.look!=="handDrawn"&&(x.roughness=0,x.fillStyle="solid");let C=Nt(g).replace("Z",""),k=m.path(C,x),w=Nt(y),S=m.path(w,{...x}),B=a.insert("g",":first-child");return B.insert(()=>S,":first-child").attr("stroke-opacity",0),B.insert(()=>k,":first-child"),B.attr("class","text"),p&&t.look!=="handDrawn"&&B.selectAll("path").attr("style",p),i&&t.look!=="handDrawn"&&B.selectAll("path").attr("style",i),B.attr("transform",`translate(${-u}, 0)`),s.attr("transform",`translate(${-c/2+(t.padding??0)/2-(o.x-(o.left??0))},${-h/2+(t.padding??0)/2-(o.y-(o.top??0))})`),ft(t,B),t.intersect=function(_){return lt.polygon(t,y,_)},a}n(Nk,"curlyBraceRight");function ue(e,t,r,i=100,a=0,o=180){let s=[],l=a*Math.PI/180,d=(o*Math.PI/180-l)/(i-1);for(let c=0;c<i;c++){let h=l+c*d,u=e+r*Math.cos(h),p=t+r*Math.sin(h);s.push({x:-u,y:-p})}return s}n(ue,"generateCirclePoints");async function zk(e,t){let{labelStyles:r,nodeStyles:i}=yt(t);t.labelStyle=r;let{shapeSvg:a,bbox:o,label:s}=await Tt(e,t,vt(t)),l=t.look==="neo"?18:t.padding??0,d=t.look==="neo"?12:t.padding??0,c=o.width+(t.look==="neo"?l*2:l),h=o.height+(t.look==="neo"?d*2:d),u=Math.max(5,h*.1),{cssStyles:p}=t,g=[...ue(c/2,-h/2,u,30,-90,0),{x:-c/2-u,y:u},...ue(c/2+u*2,-u,u,20,-180,-270),...ue(c/2+u*2,u,u,20,-90,-180),{x:-c/2-u,y:-h/2},...ue(c/2,h/2,u,20,0,90)],y=[...ue(-c/2+u+u/2,-h/2,u,20,-90,-180),{x:c/2-u/2,y:u},...ue(-c/2-u/2,-u,u,20,0,90),...ue(-c/2-u/2,u,u,20,-90,0),{x:c/2-u/2,y:-u},...ue(-c/2+u+u/2,h/2,u,30,-180,-270)],m=[{x:c/2,y:-h/2-u},{x:-c/2,y:-h/2-u},...ue(c/2,-h/2,u,20,-90,0),{x:-c/2-u,y:-u},...ue(c/2+u*2,-u,u,20,-180,-270),...ue(c/2+u*2,u,u,20,-90,-180),{x:-c/2-u,y:h/2},...ue(c/2,h/2,u,20,0,90),{x:-c/2,y:h/2+u},{x:c/2-u-u/2,y:h/2+u},...ue(-c/2+u+u/2,-h/2,u,20,-90,-180),{x:c/2-u/2,y:u},...ue(-c/2-u/2,-u,u,20,0,90),...ue(-c/2-u/2,u,u,20,-90,0),{x:c/2-u/2,y:-u},...ue(-c/2+u+u/2,h/2,u,30,-180,-270)],x=pt.svg(a),C=dt(t,{fill:"none"});t.look!=="handDrawn"&&(C.roughness=0,C.fillStyle="solid");let k=Nt(g).replace("Z",""),w=x.path(k,C),S=Nt(y).replace("Z",""),B=x.path(S,C),_=Nt(m),$=x.path(_,{...C}),I=a.insert("g",":first-child");return I.insert(()=>$,":first-child").attr("stroke-opacity",0),I.insert(()=>w,":first-child"),I.insert(()=>B,":first-child"),I.attr("class","text"),p&&t.look!=="handDrawn"&&I.selectAll("path").attr("style",p),i&&t.look!=="handDrawn"&&I.selectAll("path").attr("style",i),I.attr("transform",`translate(${u-u/4}, 0)`),s.attr("transform",`translate(${-c/2+(t.padding??0)/2-(o.x-(o.left??0))},${-h/2+(t.padding??0)/2-(o.y-(o.top??0))})`),ft(t,I),t.intersect=function(U){return lt.polygon(t,m,U)},a}n(zk,"curlyBraces");async function Wk(e,t){let{labelStyles:r,nodeStyles:i}=yt(t);t.labelStyle=r;let a=t.padding??0,o=t.look==="neo"?16:a,s=t.look==="neo"?12:a,l=20,d=5,{shapeSvg:c,bbox:h}=await Tt(e,t,vt(t)),u=Math.max(l,(h.width+o*2)*1.25,t?.width??0),p=Math.max(d,h.height+s*2,t?.height??0),g=p/2,{cssStyles:y}=t,m=pt.svg(c),x=dt(t,{});t.look!=="handDrawn"&&(x.roughness=0,x.fillStyle="solid");let C=u,k=p,w=C-g,S=k/4,B=[{x:w,y:0},{x:S,y:0},{x:0,y:k/2},{x:S,y:k},{x:w,y:k},...or(-w,-k/2,g,50,270,90)],_=Nt(B),$=m.path(_,x),I=c.insert(()=>$,":first-child");return I.attr("class","basic label-container outer-path"),y&&t.look!=="handDrawn"&&I.selectChildren("path").attr("style",y),i&&t.look!=="handDrawn"&&I.selectChildren("path").attr("style",i),I.attr("transform",`translate(${-u/2}, ${-p/2})`),ft(t,I),t.intersect=function(U){return lt.polygon(t,B,U)},c}n(Wk,"curvedTrapezoid");async function jk(e,t){let{labelStyles:r,nodeStyles:i}=yt(t);t.labelStyle=r;let{shapeSvg:a,bbox:o,label:s}=await Tt(e,t,vt(t)),l=t.padding??20,d=Math.max(o.width+l*2,t.width??0,100),c=Math.min(Math.max(d*.23,16),56),h=c*.27,u=Math.max(o.height+l*2,t.height?t.height-(2*c-h):0),p=Math.min(d*.177,u*.45),g=u+2*c-h,y=-g/2,m=y+2*c-h,x=a.insert("g",":first-child").attr("class","basic label-container"),{cssStyles:C}=t;if(t.look==="handDrawn"){let _=pt.svg(a),$=dt(t,{}),I=_.path(je(-d/2,m,d,u,p),$),U=_.circle(0,y+c,c*2,$);x.insert(()=>U,":first-child"),x.insert(()=>I,":first-child"),C&&x.attr("style",C)}else x.append("rect").attr("x",-d/2).attr("y",m).attr("width",d).attr("height",u).attr("rx",p).attr("ry",p).attr("style",i),x.append("circle").attr("cx",0).attr("cy",y+c).attr("r",c).attr("style",i);ft(t,x);let k=m+u/2;s.attr("transform",`translate(${-(o.width/2)-(o.x-(o.left??0))}, ${k-o.height/2-(o.y-(o.top??0))})`);let w=y+c,S=Math.asin(Math.min(1,(m-w)/c))*180/Math.PI,B=[...or(0,-w,c,24,180+S,-S),...or(-(-d/2+p),-(m+p),p,12,90,0),...or(-(-d/2+p),-(g/2-p),p,12,360,270),...or(-(d/2-p),-(g/2-p),p,12,270,180),...or(-(d/2-p),-(m+p),p,12,180,90)];return t.intersect=function(_){return lt.polygon(t,B,_)},a}n(jk,"person");var H_=n((e,t,r,i,a,o)=>[`M${e},${t+o}`,`a${a}
199,${o} 0,0,0 ${r},0`,`a${a},${o} 0,0,0 ${-r},0`,`l0,${i}`,`a${a},${o} 0,0,0 ${r},0`,`l0,${-i}`].join(" "),"createCylinderPathD"),U_=n((e,t,r,i,a,o)=>[`M${e},${t+o}`,`M${e+r},${t+o}`,`a${a},${o} 0,0,0 ${-r},0`,`l0,${i}`,`a${a},${o} 0,0,0 ${r},0`,`l0,${-i}`].join(" "),"createOuterCylinderPathD"),Y_=n((e,t,r,i,a,o)=>[`M${e-r/2},${-i/2}`,`a${a},${o} 0,0,0 ${r},0`].join(" "),"createInnerCylinderPathD"),Yp=8,Vp=8;async function Hk(e,t){let{labelStyles:r,nodeStyles:i}=yt(t);t.labelStyle=r;let a=t.padding??0,o=t.look==="neo"?24:a,s=t.look==="neo"?24:a,l=t.width??0;if(t.width&&(t.width=t.width-s,t.width<Vp&&(t.width=Vp)),t.height){let C=l/2/(2.5+l/50);t.height=t.height-o-C*3,t.height<Yp&&(t.height=Yp)}let{shapeSvg:d,bbox:c,label:h}=await Tt(e,t,vt(t)),u=Math.max(t.width??0,c.width)+s,p=u/2,g=p/(2.5+u/50),y=Math.max(t.height??0,c.height)+o+g,m,{cssStyles:x}=t;if(t.look==="handDrawn"){let C=pt.svg(d),k=U_(0,0,u,y,p,g),w=Y_(0,g,u,y,p,g),S=dt(t,{}),B=C.path(k,S),_=C.path(w,dt(t,{fill:"none"}));m=d.insert(()=>_,":first-child"),m=d.insert(()=>B,":first-child"),m.attr("class","basic label-container"),x&&m.attr("style",x)}else{let C=H_(0,0,u,y,p,g);m=d.insert("path",":first-child").attr("d",C).attr("class","basic label-container outer-path").attr("style",oe(x)).attr("style",i)}return m.attr("label-offset-y",g),m.attr("transform",`translate(${-u/2}, ${-(y/2+g)})`),ft(t,m),h.attr("transform",`translate(${-(c.width/2)-(c.x-(c.left??0))}, ${-(c.height/2)+(t.padding??0)/1.5-(c.y-(c.top??0))})`),t.intersect=function(C){let k=lt.rect(t,C),w=k.x-(t.x??0);if(p!=0&&(Math.abs(w)<(t.width??0)/2||Math.abs(w)==(t.width??0)/2&&Math.abs(k.y-(t.y??0))>(t.height??0)/2-g)){let S=g*g*(1-w*w/(p*p));S>0&&(S=Math.sqrt(S)),S=g-S,C.y-(t.y??0)>0&&(S=-S),k.y+=S}return k},d}n(Hk,"cylinder");async function qa(e,t,r){let{labelStyles:i,nodeStyles:a}=yt(t);t.labelStyle=i;let{shapeSvg:o,bbox:s}=await Tt(e,t,vt(t)),l=Math.max(s.width+r.labelPaddingX*2,t?.width||0),d=Math.max(s.height+r.labelPaddingY*2,t?.height||0),c=-l/2,h=-d/2,u,{rx:p,ry:g}=t,{cssStyles:y}=t;if(r?.rx&&r.ry&&(p=r.rx,g=r.ry),t.look==="handDrawn"){let m=pt.svg(o),x=dt(t,{}),C=p||g?m.path(je(c,h,l,d,p||0),x):m.rectangle(c,h,l,d,x);u=o.insert(()=>C,":first-child"),u.attr("class","basic label-container").attr("style",oe(y))}else u=o.insert("rect",":first-child"),u.attr("class","basic label-container").attr("style",a).attr("rx",oe(p)).attr("ry",oe(g)).attr("x",c).attr("y",h).attr("width",l).attr("height",d);return ft(t,u,t.look==="handDrawn"?void 0:{width:l,height:d}),t.calcIntersect=function(m,x){return lt.rect(m,x)},t.intersect=function(m){return lt.rect(t,m)},o}n(qa,"drawRect");
vendor: 4,202 bytes, line 199
199async function Uk(e,t){let{cssClasses:r,labelPaddingX:i,labelPaddingY:a,padding:o,width:s,height:l}=t,d=await qa(e,t,{rx:0,ry:0,labelPaddingX:i??(o??0)*2,labelPaddingY:a??o??0});if(t.look==="handDrawn"){let p=pt.svg(d),g=dt(t,{}),y=d.select(".basic.label-container > path:nth-child(2)"),m=y.node();if(!m)return d;let x=null;if(m instanceof SVGGraphicsElement)x=m.getBBox();else return d;return d.insert(()=>p.line(x.x,x.y,x.x+x.width,x.y,g),".basic.label-container g.label"),d.insert(()=>p.line(x.x,x.y+x.height,x.x+x.width,x.y+x.height,g),".basic.label-container g.label"),y.remove(),d}let c=d.select(".basic.label-container"),h=(Number(c.attr("width"))||s)??0,u=(Number(c.attr("height"))||l)??0;return h>0&&u>0&&c.attr("stroke-dasharray",`${h} ${u}`),d}n(Uk,"datastore");async function Yk(e,t){let{labelStyles:r,nodeStyles:i}=yt(t);t.labelStyle=r;let a=t.look==="neo"?16:t.padding??0,o=t.look==="neo"?16:t.padding??0,{shapeSvg:s,bbox:l,label:d}=await Tt(e,t,vt(t)),c=l.width+a,h=l.height+o,u=h*.2,p=-c/2,g=-h/2-u/2,{cssStyles:y}=t,m=pt.svg(s),x=dt(t,{});t.look!=="handDrawn"&&(x.roughness=0,x.fillStyle="solid");let C=[{x:p,y:g+u},{x:-p,y:g+u},{x:-p,y:-g},{x:p,y:-g},{x:p,y:g},{x:-p,y:g},{x:-p,y:g+u}],k=m.polygon(C.map(S=>[S.x,S.y]),x),w=s.insert(()=>k,":first-child");return w.attr("class","basic label-container outer-path"),y&&t.look!=="handDrawn"&&w.selectAll("path").attr("style",y),i&&t.look!=="handDrawn"&&w.selectAll("path").attr("style",i),d.attr("transform",`translate(${p+(t.padding??0)/2-(l.x-(l.left??0))}, ${g+u+(t.padding??0)/2-(l.y-(l.top??0))})`),ft(t,w),t.intersect=function(S){return lt.rect(t,S)},s}n(Yk,"dividedRectangle");async function Vk(e,t){let{labelStyles:r,nodeStyles:i}=yt(t),a=t.look==="neo"?12:5;t.labelStyle=r;let o=t.padding??0,s=t.look==="neo"?16:o,{shapeSvg:l,bbox:d}=await Tt(e,t,vt(t)),c=(t?.width?t?.width/2:d.width/2)+(s??0),h=c-a,u,{cssStyles:p}=t;if(t.look==="handDrawn"){let g=pt.svg(l),y=dt(t,{roughness:.2,strokeWidth:2.5}),m=dt(t,{roughness:.2,strokeWidth:1.5}),x=g.circle(0,0,c*2,y),C=g.circle(0,0,h*2,m);u=l.insert("g",":first-child"),u.attr("class",oe(t.cssClasses)).attr("style",oe(p)),u.node()?.appendChild(x),u.node()?.appendChild(C)}else{u=l.insert("g",":first-child");let g=u.insert("circle",":first-child"),y=u.insert("circle");u.attr("class","basic label-container").attr("style",i),g.attr("class","outer-circle").attr("style",i).attr("r",c).attr("cx",0).attr("cy",0),y.attr("class","inner-circle").attr("style",i).attr("r",h).attr("cx",0).attr("cy",0)}return ft(t,u),t.intersect=function(g){return et.info("DoubleCircle intersect",t,c,g),lt.circle(t,c,g)},l}n(Vk,"doublecircle");function Gk(e,t,{config:{themeVariables:r}}){let{labelStyles:i,nodeStyles:a}=yt(t);t.label="",t.labelStyle=i;let o=e.insert("g").attr("class",vt(t)).attr("id",t.domId??t.id),s=7,{cssStyles:l}=t,d=pt.svg(o),{nodeBorder:c}=r,h=dt(t,{fillStyle:"solid"});t.look!=="handDrawn"&&(h.roughness=0);let u=d.circle(0,0,s*2,h),p=o.insert(()=>u,":first-child");return p.selectAll("path").attr("style",`fill: ${c} !important;`),l&&l.length>0&&t.look!=="handDrawn"&&p.selectAll("path").attr("style",l),a&&t.look!=="handDrawn"&&p.selectAll("path").attr("style",a),ft(t,p),t.intersect=function(g){return et.info("filledCircle intersect",t,{radius:s,point:g}),lt.circle(t,s,g)},o}n(Gk,"filledCircle");var Gp=10,Xp=10;async function Xk(e,t){let{labelStyles:r,nodeStyles:i}=yt(t);t.labelStyle=r;let a=t.padding??0,o=t.look==="neo"?a*2:a;(t.width||t.height)&&(t.height=t?.height??0,t.height<Gp&&(t.height=Gp),t.width=(t?.width??0)-o-o/2,t.width<Xp&&(t.width=Xp));let{shapeSvg:s,bbox:l,label:d}=await Tt(e,t,vt(t)),c=(t?.width?t?.width:l.width)+(o??0),h=t?.height?t?.height:c+l.height,u=h,p=[{x:0,y:-h},{x:u,y:-h},{x:u/2,y:0}],{cssStyles:g}=t,y=pt.svg(s),m=dt(t,{});t.look!=="handDrawn"&&(m.roughness=0,m.fillStyle="solid");let x=Nt(p),C=y.path(x,m),k=s.insert(()=>C,":first-child").attr("transform",`translate(${-h/2}, ${h/2})`).attr("class","outer-path");return g&&t.look!=="handDrawn"&&k.selectChildren("path").attr("style",g),i&&t.look!=="handDrawn"&&k.selectChildren("path").attr("style",i),t.width=c,t.height=h,ft(t,k),d.attr("transform",`translate(${-l.width/2-(l.x-(l.left??0))}
199, ${-h/2+(t.padding??0)/2+(l.y-(l.top??0))})`),t.intersect=function(w){return et.info("Triangle intersect",t,p,w),lt.polygon(t,p,w)},s}n(Xk,"flippedTriangle");async function Zk(e,t){let{labelStyles:r,nodeStyles:i}=yt(t);t.labelStyle=r;let{shapeSvg:a,bbox:o,label:s}=await Tt(e,t,vt(t)),l=t.padding??12,d=Math.max(o.width+l*2,t.width??0,90),c=o.height+l*2,h=Math.max(Math.min(c*.16,14),8),u=Math.max(c+h,t.height??0),p=u-h,g=Math.max(d*.38,28),y=-u/2,m=[{x:-d/2,y},{x:-d/2+g,y},{x:-d/2+g,y:y+h},{x:d/2,y:y+h},{x:d/2,y:u/2},{x:-d/2,y:u/2}],x=[`M${m[0].x},${m[0].y}`,...m.slice(1).map(S=>`L${S.x},${S.y}`),"Z"].join(" "),{cssStyles:C}=t,k;if(t.look==="handDrawn"){let S=pt.svg(a).path(x,dt(t,{}));k=a.insert(()=>S,":first-child").attr("class","basic label-container"),C&&k.attr("style",C)}else k=a.insert("path",":first-child").attr("d",x).attr("class","basic label-container").attr("style",i);t.look==="handDrawn"?ft(t,k):ft(t,k,{width:d,height:u});let w=y+h+p/2;return s.attr("transform",`translate(${-(o.width/2)-(o.x-(o.left??0))}, ${w-o.height/2-(o.y-(o.top??0))})`),t.intersect=function(S){return lt.polygon(t,m,S)},a}n(Zk,"folder");function Qk(e,t,{dir:r,config:{state:i,themeVariables:a}}){let{nodeStyles:o}=yt(t);t.label="";let s=e.insert("g").attr("class",vt(t)).attr("id",t.domId??t.id),{cssStyles:l}=t,d=Math.max(70,t?.width??0),c=Math.max(10,t?.height??0);r==="LR"&&(d=Math.max(10,t?.width??0),c=Math.max(70,t?.height??0));let h=-1*d/2,u=-1*c/2,p=pt.svg(s),g=dt(t,{stroke:a.lineColor,fill:a.lineColor});t.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");let y=p.rectangle(h,u,d,c,g),m=s.insert(()=>y,":first-child");l&&t.look!=="handDrawn"&&m.selectAll("path").attr("style",l),o&&t.look!=="handDrawn"&&m.selectAll("path").attr("style",o),ft(t,m);let x=i?.padding??0;return t.width&&t.height&&(t.width+=x/2||0,t.height+=x/2||0),t.intersect=function(C){return lt.rect(t,C)},s}n(Qk,"forkJoin");async function Jk(e,t){let{labelStyles:r,nodeStyles:i}=yt(t);t.labelStyle=r;let a=15,o=10,s=t.look==="neo"?16:t.padding??0,l=t.look==="neo"?12:t.padding??0;(t.width||t.height)&&(t.height=(t?.height??0)-l*2,t.height<o&&(t.height=o),t.width=(t?.width??0)-s*2,t.width<a&&(t.width=a));let{shapeSvg:d,bbox:c}=await Tt(e,t,vt(t)),h=(t?.width?t?.width:Math.max(a,c.width))+s*2,u=(t?.height?t?.height:Math.max(o,c.height))+l*2,p=u/2,{cssStyles:g}=t,y=pt.svg(d),m=dt(t,{});t.look!=="handDrawn"&&(m.roughness=0,m.fillStyle="solid");let x=[{x:-h/2,y:-u/2},{x:h/2-p,y:-u/2},...or(-h/2+p,0,p,50,90,270),{x:h/2-p,y:u/2},{x:-h/2,y:u/2}],C=Nt(x),k=y.path(C,m),w=d.insert(()=>k,":first-child");return w.attr("class","basic label-container outer-path"),g&&t.look!=="handDrawn"&&w.selectChildren("path").attr("style",g),i&&t.look!=="handDrawn"&&w.selectChildren("path").attr("style",i),ft(t,w),t.intersect=function(S){return et.info("Pill intersect",t,{radius:p,point:S}),lt.polygon(t,x,S)},d}n(Jk,"halfRoundedRectangle");var V_=n((e,t,r,i,a)=>[`M${e+a},${t}`,`L${e+r-a},${t}`,`L${e+r},${t-i/2}`,`L${e+r-a},${t-i}`,`L${e+a},${t-i}`,`L${e},${t-i/2}`,"Z"].join(" "),"createHexagonPathD");async function Kk(e,t){let{labelStyles:r,nodeStyles:i}=yt(t),a=t.look==="neo"?3.5:4;t.labelStyle=r;let o=t.padding??0,s=70,l=32,d=t.look==="neo"?s:o,c=t.look==="neo"?l:o;if(t.width||t.height){let k=(t.height??0)/a;t.width=(t?.width??0)-2*k-c,t.height=(t.height??0)-d}let{shapeSvg:h,bbox:u}=await Tt(e,t,vt(t)),p=(t?.height?t?.height:u.height)+d,g=p/a,y=(t?.width?t?.width:u.width)+2*g+c,m=[{x:g,y:0},{x:y-g,y:0},{x:y,y:-p/2},{x:y-g,y:-p},{x:g,y:-p},{x:0,y:-p/2}],x,{cssStyles:C}=t;if(t.look==="handDrawn"){let k=pt.svg(h),w=dt(t,{}),S=V_(0,0,y,p,g),B=k.path(S,w);x=h.insert(()=>B,":first-child").attr("transform",`translate(${-y/2}, ${p/2})`),C&&x.attr("style",C)}else x=ur(h,y,p,m);return i&&x.attr("style",i),t.width=y,t.height=p,ft(t,x),t.intersect=function(k){return lt.polygon(t,m,k)},h}n(Kk,"hexagon");async function t2(e,t){let{labelStyles:r,nodeStyles:i}=yt(t);t.label="",t.labelStyle=r;let{shapeSvg:a}=await Tt(e,t,vt(t)),o=Math.max(30,t?.width??0),s=Math.max(30,t?.height??0),{cssStyles:l}=t,d=pt.svg(a),c=dt(t,{});t.look!=="handDrawn"&&(c.roughness=0,c.fillStyle="solid");let h=[{x:0,y:0},{x:o,y:0},{x:0,y:s},{x:o,y:s}],u=Nt(h),p=d.path(u,c),g=a.insert(()=>p,":first-child");return g.attr("class","basic label-container outer-path"),l&&t.look!=="handDrawn"&&g.selectChildren("path").attr("style",l),i&&t.look!=="handDrawn"&&g.selectChildren("path").attr("style",i),g.attr("transform",`translate(${-o/2}, ${-s/2})`),ft(t,g),t.intersect=function(y){return et.info("Pill intersect",t,{points:h}),lt.polygon(t,h,y)},a}n(t2,"hourglass");async function e2(e,t,{config:{themeVariables:r,flowchart:i}}){let{labelStyles:a}=yt(t);t.labelStyle=a;let o=t.assetHeight??48,s=t.assetWidth??48,l=Math.max(o,s),d=i?.wrappingWidth;t.width=Math.max(l,d??0);let{shapeSvg:c,bbox:h,label:u}=await Tt(e,t,"icon-shape default"),p=t.pos==="t",g=l,y=l,{nodeBorder:m}=r,{stylesMap:x}=Da(t),C=-y/2,k=-g/2,w=t.label?8:0,S=pt.svg(c),B=dt(t,{stroke:"none",fill:"none"});t.look!=="handDrawn"&&(B.roughness=0,B.fillStyle="solid");let _=S.rectangle(C,k,y,g,B),$=Math.max(y,h.width),I=g+h.height+w,U=S.rectangle(-$/2,-I/2,$,I,{...B,fill:"transparent",stroke:"none"}),V=c.insert(()=>_,":first-child"),A=c.insert(()=>U);if(t.icon){let W=c.append("g");W.html(`<g>${await Jo(t.icon,{height:l,width:l,fallbackPrefix:""})}</g>`);let O=W.node().getBBox(),F=O.width,M=O.height,L=O.x,D=O.y;W.attr("transform",`translate(${-F/2-L},${p?h.height/2+w/2-M/2-D:-h.height/2-w/2-M/2-D})`),W.attr("style",`color: ${x.get("stroke")??m};`)}return u.attr("transform",`translate(${-h.width/2-(h.x-(h.left??0))},${p?-I/2:I/2-h.height})`),V.attr("transform",`translate(0,${p?h.height/2+w/2:-h.height/2-w/2})`),ft(t,A),t.intersect=function(W){if(et.info("iconSquare intersect",t,W),!t.label)return lt.rect(t,W);let O=t.x??0,F=t.y??0,M=t.height??0,L=[];return p?L=[{x:O-h.width/2,y:F-M/2},{x:O+h.width/2,y:F-M/2},{x:O+h.width/2,y:F-M/2+h.height+w},{x:O+y/2,y:F-M/2+h.height+w},{x:O+y/2,y:F+M/2},{x:O-y/2,y:F+M/2},{x:O-y/2,y:F-M/2+h.height+w},{x:O-h.width/2,y:F-M/2+h.height+w}]:L=[{x:O-y/2,y:F-M/2},{x:O+y/2,y:F-M/2},{x:O+y/2,y:F-M/2+g},{x:O+h.width/2,y:F-M/2+g},{x:O+h.width/2/2,y:F+M/2},{x:O-h.width/2,y:F+M/2},{x:O-h.width/2,y:F-M/2+g},{x:O-y/2,y:F-M/2+g}],lt.polygon(t,L,W)},c}n(e2,"icon");async function r2(e,t,{config:{themeVariables:r,flowchart:i}}){let{labelStyles:a}=yt(t);t.labelStyle=a;let o=t.assetHeight??48,s=t.assetWidth??48,l=Math.max(o,s),d=i?.wrappingWidth;t.width=Math.max(l,d??0);let{shapeSvg:c,bbox:h,label:u}=await Tt(e,t,"icon-shape default"),p=20,g=t.label?8:0,y=t.pos==="t",{nodeBorder:m,mainBkg:x}=r,{stylesMap:C}=Da(t),k=pt.svg(c),w=dt(t,{});t.look!=="handDrawn"&&(w.roughness=0,w.fillStyle="solid"),w.stroke=C.get("fill")??x;let S=c.append("g");t.icon&&S.html(`<g>${await Jo(t.icon,{height:l,width:l,fallbackPrefix:""})}</g>`);let B=S.node().getBBox(),_=B.width,$=B.height,I=B.x,U=B.y,V=Math.max(_,$)*Math.SQRT2+p*2,A=k.circle(0,0,V,w),W=Math.max(V,h.width),O=V+h.height+g,F=k.rectangle(-W/2,-O/2,W,O,{...w,fill:"transparent",stroke:"none"}),M=c.insert(()=>A,":first-child"),L=c.insert(()=>F);return S.attr("transform",`translate(${-_/2-I},${y?h.height/2+g/2-$/2-U:-h.height/2-g/2-$/2-U})`),S.attr("style",`color: ${C.get("stroke")??m};`),u.attr("transform",`translate(${-h.width/2-(h.x-(h.left??0))},${y?-O/2:O/2-h.height})`),M.attr("transform",`translate(0,${y?h.height/2+g/2:-h.height/2-g/2})`),ft(t,L),t.intersect=function(D){return et.info("iconSquare intersect",t,D),lt.rect(t,D)},c}n(r2,"iconCircle");
vendor: 10,652 bytes, line 199
199async function i2(e,t,{config:{themeVariables:r,flowchart:i}}){let{labelStyles:a}=yt(t);t.labelStyle=a;let o=t.assetHeight??48,s=t.assetWidth??48,l=Math.max(o,s),d=i?.wrappingWidth;t.width=Math.max(l,d??0);let{shapeSvg:c,bbox:h,halfPadding:u,label:p}=await Tt(e,t,"icon-shape default"),g=t.pos==="t",y=l+u*2,m=l+u*2,{nodeBorder:x,mainBkg:C}=r,{stylesMap:k}=Da(t),w=-m/2,S=-y/2,B=t.label?8:0,_=pt.svg(c),$=dt(t,{});t.look!=="handDrawn"&&($.roughness=0,$.fillStyle="solid"),$.stroke=k.get("fill")??C;let I=_.path(je(w,S,m,y,5),$),U=Math.max(m,h.width),V=y+h.height+B,A=_.rectangle(-U/2,-V/2,U,V,{...$,fill:"transparent",stroke:"none"}),W=c.insert(()=>I,":first-child").attr("class","icon-shape2"),O=c.insert(()=>A);if(t.icon){let F=c.append("g");F.html(`<g>${await Jo(t.icon,{height:l,width:l,fallbackPrefix:""})}</g>`);let M=F.node().getBBox(),L=M.width,D=M.height,R=M.x,rt=M.y;F.attr("transform",`translate(${-L/2-R},${g?h.height/2+B/2-D/2-rt:-h.height/2-B/2-D/2-rt})`),F.attr("style",`color: ${k.get("stroke")??x};`)}return p.attr("transform",`translate(${-h.width/2-(h.x-(h.left??0))},${g?-V/2:V/2-h.height})`),W.attr("transform",`translate(0,${g?h.height/2+B/2:-h.height/2-B/2})`),ft(t,O),t.intersect=function(F){if(et.info("iconSquare intersect",t,F),!t.label)return lt.rect(t,F);let M=t.x??0,L=t.y??0,D=t.height??0,R=[];return g?R=[{x:M-h.width/2,y:L-D/2},{x:M+h.width/2,y:L-D/2},{x:M+h.width/2,y:L-D/2+h.height+B},{x:M+m/2,y:L-D/2+h.height+B},{x:M+m/2,y:L+D/2},{x:M-m/2,y:L+D/2},{x:M-m/2,y:L-D/2+h.height+B},{x:M-h.width/2,y:L-D/2+h.height+B}]:R=[{x:M-m/2,y:L-D/2},{x:M+m/2,y:L-D/2},{x:M+m/2,y:L-D/2+y},{x:M+h.width/2,y:L-D/2+y},{x:M+h.width/2/2,y:L+D/2},{x:M-h.width/2,y:L+D/2},{x:M-h.width/2,y:L-D/2+y},{x:M-m/2,y:L-D/2+y}],lt.polygon(t,R,F)},c}n(i2,"iconRounded");async function a2(e,t,{config:{themeVariables:r,flowchart:i}}){let{labelStyles:a}=yt(t);t.labelStyle=a;let o=t.assetHeight??48,s=t.assetWidth??48,l=Math.max(o,s),d=i?.wrappingWidth;t.width=Math.max(l,d??0);let{shapeSvg:c,bbox:h,halfPadding:u,label:p}=await Tt(e,t,"icon-shape default"),g=t.pos==="t",y=l+u*2,m=l+u*2,{nodeBorder:x,mainBkg:C}=r,{stylesMap:k}=Da(t),w=-m/2,S=-y/2,B=t.label?8:0,_=pt.svg(c),$=dt(t,{});t.look!=="handDrawn"&&($.roughness=0,$.fillStyle="solid"),$.stroke=k.get("fill")??C;let I=_.path(je(w,S,m,y,.1),$),U=Math.max(m,h.width),V=y+h.height+B,A=_.rectangle(-U/2,-V/2,U,V,{...$,fill:"transparent",stroke:"none"}),W=c.insert(()=>I,":first-child"),O=c.insert(()=>A);if(t.icon){let F=c.append("g");F.html(`<g>${await Jo(t.icon,{height:l,width:l,fallbackPrefix:""})}</g>`);let M=F.node().getBBox(),L=M.width,D=M.height,R=M.x,rt=M.y;F.attr("transform",`translate(${-L/2-R},${g?h.height/2+B/2-D/2-rt:-h.height/2-B/2-D/2-rt})`),F.attr("style",`color: ${k.get("stroke")??x};`)}return p.attr("transform",`translate(${-h.width/2-(h.x-(h.left??0))},${g?-V/2:V/2-h.height})`),W.attr("transform",`translate(0,${g?h.height/2+B/2:-h.height/2-B/2})`),ft(t,O),t.intersect=function(F){if(et.info("iconSquare intersect",t,F),!t.label)return lt.rect(t,F);let M=t.x??0,L=t.y??0,D=t.height??0,R=[];return g?R=[{x:M-h.width/2,y:L-D/2},{x:M+h.width/2,y:L-D/2},{x:M+h.width/2,y:L-D/2+h.height+B},{x:M+m/2,y:L-D/2+h.height+B},{x:M+m/2,y:L+D/2},{x:M-m/2,y:L+D/2},{x:M-m/2,y:L-D/2+h.height+B},{x:M-h.width/2,y:L-D/2+h.height+B}]:R=[{x:M-m/2,y:L-D/2},{x:M+m/2,y:L-D/2},{x:M+m/2,y:L-D/2+y},{x:M+h.width/2,y:L-D/2+y},{x:M+h.width/2/2,y:L+D/2},{x:M-h.width/2,y:L+D/2},{x:M-h.width/2,y:L-D/2+y},{x:M-m/2,y:L-D/2+y}],lt.polygon(t,R,F)},c}n(a2,"iconSquare");async function o2(e,t,{config:{flowchart:r}}){let i=new Image;i.src=t?.img??"",await i.decode();let a=Number(i.naturalWidth.toString().replace("px","")),o=Number(i.naturalHeight.toString().replace("px",""));t.imageAspectRatio=a/o;let{labelStyles:s}=yt(t);t.labelStyle=s;let l=r?.wrappingWidth;t.defaultWidth=r?.wrappingWidth;let d=Math.max(t.label?l??0:0,t?.assetWidth??a),c=t.constraint==="on"&&t?.assetHeight?t.assetHeight*t.imageAspectRatio:d,h=t.constraint==="on"?c/t.imageAspectRatio:t?.assetHeight??o;t.width=Math.max(c,l??0);let{shapeSvg:u,bbox:p,label:g}=await Tt(e,t,"image-shape default"),y=t.pos==="t",m=-c/2,x=-h/2,C=t.label?8:0,k=pt.svg(u),w=dt(t,{});t.look!=="handDrawn"&&(w.roughness=0,w.fillStyle="solid");let S=k.rectangle(m,x,c,h,w),B=Math.max(c,p.width),_=h+p.height+C,$=k.rectangle(-B/2,-_/2,B,_,{...w,fill:"none",stroke:"none"}),I=u.insert(()=>S,":first-child"),U=u.insert(()=>$);if(t.img){let V=u.append("image");V.attr("href",t.img),V.attr("width",c),V.attr("height",h),V.attr("preserveAspectRatio","none"),V.attr("transform",`translate(${-c/2},${y?_/2-h:-_/2})`)}return g.attr("transform",`translate(${-p.width/2-(p.x-(p.left??0))},${y?-h/2-p.height/2-C/2:h/2-p.height/2+C/2})`),I.attr("transform",`translate(0,${y?p.height/2+C/2:-p.height/2-C/2})`),ft(t,U),t.intersect=function(V){if(et.info("iconSquare intersect",t,V),!t.label)return lt.rect(t,V);let A=t.x??0,W=t.y??0,O=t.height??0,F=[];return y?F=[{x:A-p.width/2,y:W-O/2},{x:A+p.width/2,y:W-O/2},{x:A+p.width/2,y:W-O/2+p.height+C},{x:A+c/2,y:W-O/2+p.height+C},{x:A+c/2,y:W+O/2},{x:A-c/2,y:W+O/2},{x:A-c/2,y:W-O/2+p.height+C},{x:A-p.width/2,y:W-O/2+p.height+C}]:F=[{x:A-c/2,y:W-O/2},{x:A+c/2,y:W-O/2},{x:A+c/2,y:W-O/2+h},{x:A+p.width/2,y:W-O/2+h},{x:A+p.width/2/2,y:W+O/2},{x:A-p.width/2,y:W+O/2},{x:A-p.width/2,y:W-O/2+h},{x:A-c/2,y:W-O/2+h}],lt.polygon(t,F,V)},u}n(o2,"imageSquare");async function n2(e,t){let{labelStyles:r,nodeStyles:i}=yt(t);t.labelStyle=r;let a=t.padding??0,o=a,s=t.look==="neo"?a*2:a,{shapeSvg:l,bbox:d}=await Tt(e,t,vt(t)),c=Math.max(d.height+o*2,t.height??0),h=Math.max(d.width+s*2,(t.width??0)-c),u=[{x:0,y:0},{x:h,y:0},{x:h+3*c/6,y:-c},{x:-3*c/6,y:-c}],p,{cssStyles:g}=t;if(t.look==="handDrawn"){let y=pt.svg(l),m=dt(t,{}),x=Nt(u),C=y.path(x,m);p=l.insert(()=>C,":first-child").attr("transform",`translate(${-h/2}, ${c/2})`),g&&p.attr("style",g)}else p=ur(l,h,c,u);return i&&p.attr("style",i),t.width=h,t.height=c,ft(t,p),t.intersect=function(y){return lt.polygon(t,u,y)},l}n(n2,"inv_trapezoid");async function s2(e,t){let{shapeSvg:r,bbox:i,label:a}=await Tt(e,t,"label"),o=r.insert("rect",":first-child");return o.attr("width",.1).attr("height",.1),r.attr("class","label edgeLabel"),a.attr("transform",`translate(${-(i.width/2)-(i.x-(i.left??0))}, ${-(i.height/2)-(i.y-(i.top??0))})`),ft(t,o),t.intersect=function(s){return lt.rect(t,s)},r}n(s2,"labelRect");async function l2(e,t){let{labelStyles:r,nodeStyles:i}=yt(t);t.labelStyle=r;let a=t.padding??0,o=a,s=t.look==="neo"?a*2:a,{shapeSvg:l,bbox:d}=await Tt(e,t,vt(t)),c=Math.max(d.height+o,t.height??0),h=Math.max(d.width+s,(t.width??0)-c),u=[{x:0,y:0},{x:h+3*c/6,y:0},{x:h,y:-c},{x:-(3*c)/6,y:-c}],p,{cssStyles:g}=t;if(t.look==="handDrawn"){let y=pt.svg(l),m=dt(t,{}),x=Nt(u),C=y.path(x,m);p=l.insert(()=>C,":first-child").attr("transform",`translate(${-h/2}, ${c/2})`),g&&p.attr("style",g)}else p=ur(l,h,c,u);return i&&p.attr("style",i),t.width=h,t.height=c,ft(t,p),t.intersect=function(y){return lt.polygon(t,u,y)},l}n(l2,"lean_left");async function h2(e,t){let{labelStyles:r,nodeStyles:i}=yt(t);t.labelStyle=r;let a=t.padding??0,o=a,s=t.look==="neo"?a*2:a,{shapeSvg:l,bbox:d}=await Tt(e,t,vt(t)),c=Math.max(d.height+o,t.height??0),h=Math.max(d.width+s,(t.width??0)-c),u=[{x:-3*c/6,y:0},{x:h,y:0},{x:h+3*c/6,y:-c},{x:0,y:-c}],p,{cssStyles:g}=t;if(t.look==="handDrawn"){let y=pt.svg(l),m=dt(t,{}),x=Nt(u),C=y.path(x,m);p=l.insert(()=>C,":first-child").attr("transform",`translate(${-h/2}, ${c/2})`),g&&p.attr("style",g)}else p=ur(l,h,c,u);return i&&p.attr("style",i),t.width=h,t.height=c,ft(t,p),t.intersect=function(y){return lt.polygon(t,u,y)},l}n(h2,"lean_right");function c2(e,t){let{labelStyles:r,nodeStyles:i}=yt(t);t.label="",t.labelStyle=r;let a=e.insert("g").attr("class",vt(t)).attr("id",t.domId??t.id),{cssStyles:o}=t,s=Math.max(35,t?.width??0),l=Math.max(35,t?.height??0),d=7,c=[{x:s,y:0},{x:0,y:l+d/2},{x:s-2*d,y:l+d/2},{x:0,y:2*l},{x:s,y:l-d/2},{x:2*d,y:l-d/2}],h=pt.svg(a),u=dt(t,{});t.look!=="handDrawn"&&(u.roughness=0,u.fillStyle="solid");let p=Nt(c),g=h.path(p,u),y=a.insert(()=>g,":first-child");return y.attr("class","outer-path"),o&&t.look!=="handDrawn"&&y.selectAll("path").attr("style",o),i&&t.look!=="handDrawn"&&y.selectAll("path").attr("style",i),y.attr("transform",`translate(-${s/2},${-l})`),ft(t,y),t.intersect=function(m){return et.info("lightningBolt intersect",t,m),lt.polygon(t,c,m)},a}n(c2,"lightningBolt");var G_=n((e,t,r,i,a,o,s)=>[`M${e},${t+o}`,`a${a},${o} 0,0,0 ${r},0`,`a${a},${o} 0,0,0 ${-r},0`,`l0,${i}`,`a${a},${o} 0,0,0 ${r},0`,`l0,${-i}`,`M${e},${t+o+s}`,`a${a},${o} 0,0,0 ${r},0`].join(" "),"createCylinderPathD"),X_=n((e,t,r,i,a,o,s)=>[`M${e},${t+o}`,`M${e+r},${t+o}`,`a${a},${o} 0,0,0 ${-r},0`,`l0,${i}`,`a${a},${o} 0,0,0 ${r},0`,`l0,${-i}`,`M${e},${t+o+s}`,`a${a},${o} 0,0,0 ${r},0`].join(" "),"createOuterCylinderPathD"),Z_=n((e,t,r,i,a,o)=>[`M${e-r/2},${-i/2}`,`a${a},${o} 0,0,0 ${r},0`].join(" "),"createInnerCylinderPathD"),Zp=10,Qp=10;async function d2(e,t){let{labelStyles:r,nodeStyles:i}=yt(t);t.labelStyle=r;let a=t.padding??0,o=t.look==="neo"?16:a,s=t.look==="neo"?24:a;if(t.width||t.height){let C=t.width??0;t.width=(t.width??0)-o,t.width<Qp&&(t.width=Qp);let k=C/2/(2.5+C/50);t.height=(t.height??0)-s-k*3,t.height<Zp&&(t.height=Zp)}let{shapeSvg:l,bbox:d,label:c}=await Tt(e,t,vt(t)),h=(t?.width?t?.width:d.width)+o*2,u=h/2,p=u/(2.5+h/50),g=(t?.height?t?.height:d.height)+p+s*2,y=g*.1,m,{cssStyles:x}=t;if(t.look==="handDrawn"){let C=pt.svg(l),k=X_(0,0,h,g,u,p,y),w=Z_(0,p,h,g,u,p),S=dt(t,{}),B=C.path(k,S),_=C.path(w,S);l.insert(()=>_,":first-child").attr("class","line"),m=l.insert(()=>B,":first-child"),m.attr("class","basic label-container"),x&&m.attr("style",x)}else{let C=G_(0,0,h,g,u,p,y);m=l.insert("path",":first-child").attr("d",C).attr("class","basic label-container outer-path").attr("style",oe(x)).attr("style",i)}return m.attr("label-offset-y",p),m.attr("transform",`translate(${-h/2}, ${-(g/2+p)})`),ft(t,m),c.attr("transform",`translate(${-(d.width/2)-(d.x-(d.left??0))}, ${-(d.height/2)+p-(d.y-(d.top??0))})`),t.intersect=function(C){let k=lt.rect(t,C),w=k.x-(t.x??0);if(u!=0&&(Math.abs(w)<(t.width??0)/2||Math.abs(w)==(t.width??0)/2&&Math.abs(k.y-(t.y??0))>(t.height??0)/2-p)){let S=p*p*(1-w*w/(u*u));S>0&&(S=Math.sqrt(S)),S=p-S,C.y-(t.y??0)>0&&(S=-S),k.y+=S}return k},l}n(d2,"linedCylinder");async function u2(e,t){let{labelStyles:r,nodeStyles:i}=yt(t);t.labelStyle=r;let a=t.padding??0,o=t.look==="neo"?16:a,s=t.look==="neo"?12:a;(t.width||t.height)&&(t.width=(t.width??0)*10/11-o*2,t.width<10&&(t.width=10),t.height=(t?.height??0)-s*2,t.height<10&&(t.height=10));let{shapeSvg:l,bbox:d,label:c}
vendor: 5,270 bytes, line 199
199=await Tt(e,t,vt(t)),h=(t?.width?t?.width:d.width)+(o??0)*2,u=(t?.height?t?.height:d.height)+(s??0)*2,p=t.look==="neo"?u/4:u/8,g=u+p,{cssStyles:y}=t,m=pt.svg(l),x=dt(t,{});t.look!=="handDrawn"&&(x.roughness=0,x.fillStyle="solid");let C=[{x:-h/2-h/2*.1,y:-g/2},{x:-h/2-h/2*.1,y:g/2},...Xr(-h/2-h/2*.1,g/2,h/2+h/2*.1,g/2,p,.8),{x:h/2+h/2*.1,y:-g/2},{x:-h/2-h/2*.1,y:-g/2},{x:-h/2,y:-g/2},{x:-h/2,y:g/2*1.1},{x:-h/2,y:-g/2}],k=m.polygon(C.map(S=>[S.x,S.y]),x),w=l.insert(()=>k,":first-child");return w.attr("class","basic label-container outer-path"),y&&t.look!=="handDrawn"&&w.selectAll("path").attr("style",y),i&&t.look!=="handDrawn"&&w.selectAll("path").attr("style",i),w.attr("transform",`translate(0,${-p/2})`),c.attr("transform",`translate(${-h/2+(t.padding??0)+h/2*.1/2-(d.x-(d.left??0))},${-u/2+(t.padding??0)-p/2-(d.y-(d.top??0))})`),ft(t,w),t.intersect=function(S){return lt.polygon(t,C,S)},l}n(u2,"linedWaveEdgedRect");async function p2(e,t){let{labelStyles:r,nodeStyles:i}=yt(t);t.labelStyle=r;let a=t.padding??0,o=t.look==="neo"?16:a,s=t.look==="neo"?12:a,l=t.look==="neo"?10:5;(t.width||t.height)&&(t.width=Math.max((t?.width??0)-o*2-2*l,10),t.height=Math.max((t?.height??0)-s*2-2*l,10));let{shapeSvg:d,bbox:c,label:h}=await Tt(e,t,vt(t)),u=(t?.width?t?.width:c.width)+o*2+2*l,p=(t?.height?t?.height:c.height)+s*2+2*l,g=u-2*l,y=p-2*l,m=-g/2,x=-y/2,{cssStyles:C}=t,k=pt.svg(d),w=dt(t,{}),S=[{x:m-l,y:x+l},{x:m-l,y:x+y+l},{x:m+g-l,y:x+y+l},{x:m+g-l,y:x+y},{x:m+g,y:x+y},{x:m+g,y:x+y-l},{x:m+g+l,y:x+y-l},{x:m+g+l,y:x-l},{x:m+l,y:x-l},{x:m+l,y:x},{x:m,y:x},{x:m,y:x+l}],B=[{x:m,y:x+l},{x:m+g-l,y:x+l},{x:m+g-l,y:x+y},{x:m+g,y:x+y},{x:m+g,y:x},{x:m,y:x}];t.look!=="handDrawn"&&(w.roughness=0,w.fillStyle="solid");let _=Nt(S),$=k.path(_,w),I=Nt(B),U=k.path(I,w);t.look!=="handDrawn"&&($=ac($),U=ac(U));let V=d.insert("g",":first-child");return V.insert(()=>$),V.insert(()=>U),V.attr("class","basic label-container outer-path"),C&&t.look!=="handDrawn"&&V.selectAll("path").attr("style",C),i&&t.look!=="handDrawn"&&V.selectAll("path").attr("style",i),h.attr("transform",`translate(${-(c.width/2)-l-(c.x-(c.left??0))}, ${-(c.height/2)+l-(c.y-(c.top??0))})`),ft(t,V),t.intersect=function(A){return lt.polygon(t,S,A)},d}n(p2,"multiRect");async function g2(e,t){let{labelStyles:r,nodeStyles:i}=yt(t);t.labelStyle=r;let{shapeSvg:a,bbox:o,label:s}=await Tt(e,t,vt(t)),l=t.padding??0,d=t.look==="neo"?16:l,c=t.look==="neo"?12:l,h=!0;(t.width||t.height)&&(h=!1,t.width=(t?.width??0)-d*2,t.height=(t?.height??0)-c*3);let u=Math.max(o.width,t?.width??0)+d*2,p=Math.max(o.height,t?.height??0)+c*3,g=t.look==="neo"?p/4:p/8,y=p+(h?g/2:-g/2),m=-u/2,x=-y/2,C=10,{cssStyles:k}=t,w=Xr(m-C,x+y+C,m+u-C,x+y+C,g,.8),S=w?.[w.length-1],B=[{x:m-C,y:x+C},{x:m-C,y:x+y+C},...w,{x:m+u-C,y:S.y-C},{x:m+u,y:S.y-C},{x:m+u,y:S.y-2*C},{x:m+u+C,y:S.y-2*C},{x:m+u+C,y:x-C},{x:m+C,y:x-C},{x:m+C,y:x},{x:m,y:x},{x:m,y:x+C}],_=[{x:m,y:x+C},{x:m+u-C,y:x+C},{x:m+u-C,y:S.y-C},{x:m+u,y:S.y-C},{x:m+u,y:x},{x:m,y:x}],$=pt.svg(a),I=dt(t,{});t.look!=="handDrawn"&&(I.roughness=0,I.fillStyle="solid");let U=Nt(B),V=$.path(U,I),A=Nt(_),W=$.path(A,I),O=a.insert(()=>V,":first-child");return O.insert(()=>W),O.attr("class","basic label-container outer-path"),k&&t.look!=="handDrawn"&&O.selectAll("path").attr("style",k),i&&t.look!=="handDrawn"&&O.selectAll("path").attr("style",i),O.attr("transform",`translate(0,${-g/2})`),s.attr("transform",`translate(${-(o.width/2)-C-(o.x-(o.left??0))}, ${-(o.height/2)+C-g/2-(o.y-(o.top??0))})`),ft(t,O),t.intersect=function(F){return lt.polygon(t,B,F)},a}n(g2,"multiWaveEdgedRectangle");async function f2(e,t,{config:{themeVariables:r}}){let{labelStyles:i,nodeStyles:a}=yt(t);t.labelStyle=i,t.useHtmlLabels||ve(Jt())||(t.centerLabel=!0);let{shapeSvg:o,bbox:s,label:l}=await Tt(e,t,vt(t)),d=Math.max(s.width+(t.padding??0)*2,t?.width??0),c=Math.max(s.height+(t.padding??0)*2,t?.height??0),h=-d/2,u=-c/2,{cssStyles:p}=t,g=pt.svg(o),y=dt(t,{fill:r.noteBkgColor,stroke:r.noteBorderColor});t.look!=="handDrawn"&&(y.roughness=0,y.fillStyle="solid");let m=g.rectangle(h,u,d,c,y),x=o.insert(()=>m,":first-child");return x.attr("class","basic label-container outer-path"),l.attr("class","label noteLabel"),p&&t.look!=="handDrawn"&&x.selectAll("path").attr("style",p),a&&t.look!=="handDrawn"&&x.selectAll("path").attr("style",a),l.attr("transform",`translate(${-s.width/2-(s.x-(s.left??0))}, ${-(s.height/2)-(s.y-(s.top??0))})`),ft(t,x),t.intersect=function(C){return lt.rect(t,C)},o}n(f2,"note");var Q_=n((e,t,r)=>[`M${e+r/2},${t}`,`L${e+r},${t-r/2}`,`L${e+r/2},${t-r}`,`L${e},${t-r/2}`,"Z"].join(" "),"createDecisionBoxPathD");async function y2(e,t){let{labelStyles:r,nodeStyles:i}=yt(t);t.labelStyle=r;let{shapeSvg:a,bbox:o}=await Tt(e,t,vt(t)),s=o.width+(t.padding??0)+(o.height+(t.padding??0)),l=.5,d=[{x:s/2,y:0},{x:s,y:-s/2},{x:s/2,y:-s},{x:0,y:-s/2}],c,{cssStyles:h}=t;if(t.look==="handDrawn"){let u=pt.svg(a),p=dt(t,{}),g=Q_(0,0,s),y=u.path(g,p);c=a.insert(()=>y,":first-child").attr("transform",`translate(${-s/2+l}, ${s/2})`),h&&c.attr("style",h)}else c=ur(a,s,s,d),c.attr("transform",`translate(${-s/2+l}, ${s/2})`);return i&&c.attr("style",i),ft(t,c),t.calcIntersect=function(u,p){let g=u.width,y=[{x:g/2,y:0},{x:g,y:-g/2},{x:g/2,y:-g},{x:0,y:-g/2}],m=lt.polygon(u,y,p);
vendor: 10,456 bytes, line 199
199return{x:m.x-.5,y:m.y-.5}},t.intersect=function(u){return this.calcIntersect(t,u)},a}n(y2,"question");async function m2(e,t){let{labelStyles:r,nodeStyles:i}=yt(t);t.labelStyle=r;let a=t.padding??0,o=t.look==="neo"?21:a??0,s=t.look==="neo"?12:a??0,{shapeSvg:l,bbox:d,label:c}=await Tt(e,t,vt(t)),h=d.width+(t.look==="neo"?o*2:o),u=Math.max(d.height+(t.look==="neo"?s*2:s),t.height??0),p=u/4,g=-Math.max(h,(t.width??0)-p)/2,y=-u/2,m=y/2,x=[{x:g+m,y},{x:g,y:0},{x:g+m,y:-y},{x:-g,y:-y},{x:-g,y}],{cssStyles:C}=t,k=pt.svg(l),w=dt(t,{});t.look!=="handDrawn"&&(w.roughness=0,w.fillStyle="solid");let S=Nt(x),B=k.path(S,w),_=l.insert(()=>B,":first-child");return _.attr("class","basic label-container outer-path"),C&&t.look!=="handDrawn"&&_.selectAll("path").attr("style",C),i&&t.look!=="handDrawn"&&_.selectAll("path").attr("style",i),_.attr("transform",`translate(${-m/2},0)`),c.attr("transform",`translate(${-m/2-d.width/2-(d.x-(d.left??0))}, ${-(d.height/2)-(d.y-(d.top??0))})`),ft(t,_),t.intersect=function($){return lt.polygon(t,x,$)},l}n(m2,"rect_left_inv_arrow");async function x2(e,t){let{labelStyles:r,nodeStyles:i}=yt(t);t.labelStyle=r;let a;t.cssClasses?a="node "+t.cssClasses:a="node default";let o=e.insert("g").attr("class",a).attr("id",t.domId||t.id),s=o.insert("g"),l=o.insert("g").attr("class","label").attr("style",i),d=t.description,c=t.label,h=await zr(l,c,t.labelStyle,!0,!0),u={width:0,height:0};if(ve(Pt())){let I=h.children[0],U=At(h);u=I.getBoundingClientRect(),U.attr("width",u.width),U.attr("height",u.height)}et.info("Text 2",d);let p=d||[],g=h.getBBox(),y=await zr(l,Array.isArray(p)?p.join("<br/>"):p,t.labelStyle,!0,!0),m=y.children[0],x=At(y);u=m.getBoundingClientRect(),x.attr("width",u.width),x.attr("height",u.height);let C=(t.padding||0)/2;At(y).attr("transform","translate( "+(u.width>g.width?0:(g.width-u.width)/2)+", "+(g.height+C+5)+")"),At(h).attr("transform","translate( "+(u.width<g.width?0:-(g.width-u.width)/2)+", 0)"),u=l.node().getBBox(),l.attr("transform","translate("+-u.width/2+", "+(-u.height/2-C+3)+")");let k=u.width+(t.padding||0),w=u.height+(t.padding||0),S=-u.width/2-C,B=-u.height/2-C,_,$;if(t.look==="handDrawn"){let I=pt.svg(o),U=dt(t,{}),V=I.path(je(S,B,k,w,t.rx||0),U),A=I.line(-u.width/2-C,-u.height/2-C+g.height+C,u.width/2+C,-u.height/2-C+g.height+C,U);$=o.insert(()=>(et.debug("Rough node insert CXC",V),A),":first-child"),_=o.insert(()=>(et.debug("Rough node insert CXC",V),V),":first-child")}else _=s.insert("rect",":first-child"),$=s.insert("line"),_.attr("class","outer title-state").attr("style",i).attr("x",-u.width/2-C).attr("y",-u.height/2-C).attr("width",u.width+(t.padding||0)).attr("height",u.height+(t.padding||0)),$.attr("class","divider").attr("x1",-u.width/2-C).attr("x2",u.width/2+C).attr("y1",-u.height/2-C+g.height+C).attr("y2",-u.height/2-C+g.height+C);return ft(t,_),t.intersect=function(I){return lt.rect(t,I)},o}n(x2,"rectWithTitle");async function C2(e,t,{config:{themeVariables:r}}){let i=r?.radius??5;return qa(e,t,{rx:i,ry:i,labelPaddingX:(t?.padding??0)*1,labelPaddingY:(t?.padding??0)*1})}n(C2,"roundedRect");var ii=8;async function b2(e,t){let{labelStyles:r,nodeStyles:i}=yt(t);t.labelStyle=r;let a=t.look==="neo"?16:t.padding??0,o=t.look==="neo"?12:t.padding??0,{shapeSvg:s,bbox:l,label:d}=await Tt(e,t,vt(t)),c=(t?.width??l.width)+a*2+(t.look==="neo"?ii:ii*2),h=(t?.height??l.height)+o*2,u=c-ii,p=h,g=ii-c/2,y=-h/2,{cssStyles:m}=t,x=pt.svg(s),C=dt(t,{});t.look!=="handDrawn"&&(C.roughness=0,C.fillStyle="solid");let k=[{x:g,y},{x:g+u,y},{x:g+u,y:y+p},{x:g-ii,y:y+p},{x:g-ii,y},{x:g,y},{x:g,y:y+p}],w=x.polygon(k.map(B=>[B.x,B.y]),C),S=s.insert(()=>w,":first-child");return S.attr("class","basic label-container outer-path").attr("style",oe(m)),i&&t.look!=="handDrawn"&&S.selectAll("path").attr("style",i),m&&t.look!=="handDrawn"&&S.selectAll("path").attr("style",i),d.attr("transform",`translate(${ii/2-l.width/2-(l.x-(l.left??0))}, ${-(l.height/2)-(l.y-(l.top??0))})`),ft(t,S),t.intersect=function(B){return lt.rect(t,B)},s}n(b2,"shadedProcess");async function k2(e,t){let{labelStyles:r,nodeStyles:i}=yt(t);t.labelStyle=r;let a=t.padding??0,o=t.look==="neo"?16:a,s=t.look==="neo"?12:a;(t.width||t.height)&&(t.width=Math.max((t?.width??0)-o*2,10),t.height=Math.max((t?.height??0)/1.5-s*2,10));let{shapeSvg:l,bbox:d,label:c}=await Tt(e,t,vt(t)),h=(t?.width?t?.width:d.width)+o*2,u=((t?.height?t?.height:d.height)+s*2)*1.5,p=h,g=u/1.5,y=-p/2,m=-g/2,{cssStyles:x}=t,C=pt.svg(l),k=dt(t,{});t.look!=="handDrawn"&&(k.roughness=0,k.fillStyle="solid");let w=[{x:y,y:m},{x:y,y:m+g},{x:y+p,y:m+g},{x:y+p,y:m-g/2}],S=Nt(w),B=C.path(S,k),_=l.insert(()=>B,":first-child");return _.attr("class","basic label-container outer-path"),x&&t.look!=="handDrawn"&&_.selectChildren("path").attr("style",x),i&&t.look!=="handDrawn"&&_.selectChildren("path").attr("style",i),_.attr("transform",`translate(0, ${g/4})`),c.attr("transform",`translate(${-p/2+(t.padding??0)-(d.x-(d.left??0))}, ${-g/4+(t.padding??0)-(d.y-(d.top??0))})`),ft(t,_),t.intersect=function($){return lt.polygon(t,w,$)},l}n(k2,"slopedRect");async function w2(e,t){let r=t.padding??0,i=t.look==="neo"?16:r*2,a=t.look==="neo"?12:r;return qa(e,t,{rx:0,ry:0,labelPaddingX:t.labelPaddingX??i,labelPaddingY:a})}n(w2,"squareRect");async function v2(e,t){let{labelStyles:r,nodeStyles:i}=yt(t);t.labelStyle=r;let a=t.padding??0,o=t.look==="neo"?20:a,s=t.look==="neo"?12:a,{shapeSvg:l,bbox:d}=await Tt(e,t,vt(t)),c=d.height+(t.look==="neo"?s*2:s),h=d.width+c/4+(t.look==="neo"?o*2:o),u=c/2,{cssStyles:p}=t,g=pt.svg(l),y=dt(t,{});t.look!=="handDrawn"&&(y.roughness=0,y.fillStyle="solid");let m=[{x:-h/2+u,y:-c/2},{x:h/2-u,y:-c/2},...or(-h/2+u,0,u,50,90,270),{x:h/2-u,y:c/2},...or(h/2-u,0,u,50,270,450)],x=Nt(m),C=g.path(x,y),k=l.insert(()=>C,":first-child");return k.attr("class","basic label-container outer-path"),p&&t.look!=="handDrawn"&&k.selectChildren("path").attr("style",p),i&&t.look!=="handDrawn"&&k.selectChildren("path").attr("style",i),ft(t,k),t.intersect=function(w){return lt.polygon(t,m,w)},l}n(v2,"stadium");async function T2(e,t){return qa(e,t,{rx:t.look==="neo"?3:5,ry:t.look==="neo"?3:5})}n(T2,"state");function S2(e,t,{config:{themeVariables:r}}){let{labelStyles:i,nodeStyles:a}=yt(t);t.labelStyle=i;let{cssStyles:o}=t,{lineColor:s,stateBorder:l,nodeBorder:d,nodeShadow:c}=r;(t.width||t.height)&&((t.width??0)<14&&(t.width=14),(t.height??0)<14&&(t.height=14)),t.width||(t.width=14),t.height||(t.height=14);let h=e.insert("g").attr("class","node default").attr("id",t.domId??t.id),u=pt.svg(h),p=dt(t,{});t.look!=="handDrawn"&&(p.roughness=0,p.fillStyle="solid");let g=u.circle(0,0,t.width,{...p,stroke:s,strokeWidth:2}),y=l??d,m=(t.width??0)*5/14,x=u.circle(0,0,m,{...p,fill:y,stroke:y,strokeWidth:2,fillStyle:"solid"}),C=h.insert(()=>g,":first-child");if(C.insert(()=>x),t.look!=="handDrawn"&&C.attr("class","outer-path"),o&&C.selectAll("path").attr("style",o),a&&C.selectAll("path").attr("style",a),t.width<25&&c&&t.look!=="handDrawn"){let k=e.node()?.ownerSVGElement?.id??"",w=k?`${k}-drop-shadow-small`:"drop-shadow-small";C.attr("style",`filter:url(#${w})`)}return ft(t,C),t.intersect=function(k){return lt.circle(t,(t.width??0)/2,k)},h}n(S2,"stateEnd");function B2(e,t,{config:{themeVariables:r}}){let{lineColor:i,nodeShadow:a}=r;(t.width||t.height)&&((t.width??0)<14&&(t.width=14),(t.height??0)<14&&(t.height=14)),t.width||(t.width=14),t.height||(t.height=14);let o=e.insert("g").attr("class","node default").attr("id",t.domId||t.id),s;if(t.look==="handDrawn"){let l=pt.svg(o).circle(0,0,t.width,$_(i));s=o.insert(()=>l),s.attr("class","state-start").attr("r",(t.width??7)/2).attr("width",t.width??14).attr("height",t.height??14)}else s=o.insert("circle",":first-child"),s.attr("class","state-start").attr("r",(t.width??7)/2).attr("width",t.width??14).attr("height",t.height??14);if(t.width<25&&a&&t.look!=="handDrawn"){let l=e.node()?.ownerSVGElement?.id??"",d=l?`${l}-drop-shadow-small`:"drop-shadow-small";s.attr("style",`filter:url(#${d})`)}return ft(t,s),t.intersect=function(l){return lt.circle(t,(t.width??7)/2,l)},o}n(B2,"stateStart");var _i=8;async function _2(e,t){let{labelStyles:r,nodeStyles:i}=yt(t);t.labelStyle=r;let a=t?.padding??8,o=t.look==="neo"?28:a,s=t.look==="neo"?12:a,{shapeSvg:l,bbox:d}=await Tt(e,t,vt(t)),c=Math.max(d.width+2*_i+o,t.width??0),h=Math.max(d.height+s,t.height??0),u=c-2*_i,p=h,g=-c/2,y=-h/2,m=[{x:0,y:0},{x:u,y:0},{x:u,y:-p},{x:0,y:-p},{x:0,y:0},{x:-8,y:0},{x:u+8,y:0},{x:u+8,y:-p},{x:-8,y:-p},{x:-8,y:0}];if(t.look==="handDrawn"){let x=pt.svg(l),C=dt(t,{}),k=x.rectangle(g,y,u+16,p,C),w=x.line(g+_i,y,g+_i,y+p,C),S=x.line(g+_i+u,y,g+_i+u,y+p,C);l.insert(()=>w,":first-child"),l.insert(()=>S,":first-child");let B=l.insert(()=>k,":first-child"),{cssStyles:_}=t;B.attr("class","basic label-container").attr("style",oe(_)),ft(t,B)}else{let x=ur(l,u,p,m);i&&x.attr("style",i),ft(t,x)}return t.intersect=function(x){return lt.polygon(t,m,x)},l}n(_2,"subroutine");var _l=.2;async function $2(e,t){let{labelStyles:r,nodeStyles:i}=yt(t);t.labelStyle=r;let a=t.padding??0,o=t.look==="neo"?16:a,s=t.look==="neo"?12:a;(t.width||t.height)&&(t.height=Math.max((t?.height??0)-s*2,10),t.width=Math.max((t?.width??0)-o*2-_l*(t.height+s*2),10));let{shapeSvg:l,bbox:d}=await Tt(e,t,vt(t)),c=(t?.height?t?.height:d.height)+s*2,h=_l*c,u=_l*c,p=(t?.width?t?.width:d.width)+o*2+h-h,g=c,y=-p/2,m=-g/2,{cssStyles:x}=t,C=pt.svg(l),k=dt(t,{}),w=[{x:y-h/2,y:m},{x:y+p+h/2,y:m},{x:y+p+h/2,y:m+g},{x:y-h/2,y:m+g}],S=[{x:y+p-h/2,y:m+g},{x:y+p+h/2,y:m+g},{x:y+p+h/2,y:m+g-u}];t.look!=="handDrawn"&&(k.roughness=0,k.fillStyle="solid");let B=Nt(w),_=C.path(B,k),$=Nt(S),I=C.path($,{...k,fillStyle:"solid"}),U=l.insert(()=>I,":first-child");return U.insert(()=>_,":first-child"),U.attr("class","basic label-container outer-path"),x&&t.look!=="handDrawn"&&U.selectAll("path").attr("style",x),i&&t.look!=="handDrawn"&&U.selectAll("path").attr("style",i),ft(t,U),t.intersect=function(V){return lt.polygon(t,w,V)},l}n($2,"taggedRect");async function L2(e,t){let{labelStyles:r,nodeStyles:i}=yt(t);t.labelStyle=r;let{shapeSvg:a,bbox:o,label:s}=await Tt(e,t,vt(t)),l=Math.max(o.width+(t.padding??0)*2,t?.width??0),d=Math.max(o.height+(t.padding??0)*2,t?.height??0),c=d/8,h=.2*l,u=.2*d,p=d+c,{cssStyles:g}=t,y=pt.svg(a),m=dt(t,{});t.look!=="handDrawn"&&(m.roughness=0,m.fillStyle="solid");let x=[{x:-l/2-l/2*.1,y:p/2},...Xr(-l/2-l/2*.1,p/2,l/2+l/2*.1,p/2,c,.8),{x:l/2+l/2*.1,y:-p/2},{x:-l/2-l/2*.1,y:-p/2}
vendor: 5,558 bytes, lines 199-205
199],C=-l/2+l/2*.1,k=-p/2-u*.4,w=[{x:C+l-h,y:(k+d)*1.3},{x:C+l,y:k+d-u},{x:C+l,y:(k+d)*.9},...Xr(C+l,(k+d)*1.25,C+l-h,(k+d)*1.3,-d*.02,.5)],S=Nt(x),B=y.path(S,m),_=Nt(w),$=y.path(_,{...m,fillStyle:"solid"}),I=a.insert(()=>$,":first-child");return I.insert(()=>B,":first-child"),I.attr("class","basic label-container outer-path"),g&&t.look!=="handDrawn"&&I.selectAll("path").attr("style",g),i&&t.look!=="handDrawn"&&I.selectAll("path").attr("style",i),I.attr("transform",`translate(0,${-c/2})`),s.attr("transform",`translate(${-l/2+(t.padding??0)-(o.x-(o.left??0))},${-d/2+(t.padding??0)-c/2-(o.y-(o.top??0))})`),ft(t,I),t.intersect=function(U){return lt.polygon(t,x,U)},a}n(L2,"taggedWaveEdgedRectangle");async function F2(e,t){let{labelStyles:r,nodeStyles:i}=yt(t);t.labelStyle=r;let{shapeSvg:a,bbox:o}=await Tt(e,t,vt(t)),s=Math.max(o.width+(t.padding??0),t?.width||0),l=Math.max(o.height+(t.padding??0),t?.height||0),d=-s/2,c=-l/2,h=a.insert("rect",":first-child");return h.attr("class","text").attr("style",i).attr("rx",0).attr("ry",0).attr("x",d).attr("y",c).attr("width",s).attr("height",l),ft(t,h),t.intersect=function(u){return lt.rect(t,u)},a}n(F2,"text");var J_=n((e,t,r,i,a,o)=>`M${e},${t} 200 a${a},${o} 0,0,1 0,${-i} 201 l${r},0 202 a${a},${o} 0,0,1 0,${i} 203 M${r},${-i} 204 a${a},${o} 0,0,0 0,${i} 205 l${-r},0`,"createCylinderPathD"),K_=n((e,t,r,i,a,o)=>[`M${e},${t}`,`M${e+r},${t}`,`a${a},${o} 0,0,0 0,${-i}`,`l${-r},0`,`a${a},${o} 0,0,0 0,${i}`,`l${r},0`].join(" "),"createOuterCylinderPathD"),t$=n((e,t,r,i,a,o)=>[`M${e+r/2},${-i/2}`,`a${a},${o} 0,0,0 0,${i}`].join(" "),"createInnerCylinderPathD"),Jp=5,Kp=10;async function M2(e,t){let{labelStyles:r,nodeStyles:i}=yt(t);t.labelStyle=r;let a=t.padding??0,o=t.look==="neo"?12:a/2,s=t.height??0;if(t.height&&(t.height=t.height-o,t.height<Jp&&(t.height=Jp)),t.width){let x=s/2/(2.5+s/50);t.width=t.width-o-x*3,t.width<Kp&&(t.width=Kp)}let{shapeSvg:l,bbox:d,label:c}=await Tt(e,t,vt(t)),h=Math.max(t.height??0,d.height)+o,u=h/2,p=u/(2.5+h/50),g=Math.max(t.width??0,d.width)+p+o,{cssStyles:y}=t,m;if(t.look==="handDrawn"){let x=pt.svg(l),C=K_(0,0,g,h,p,u),k=t$(0,0,g,h,p,u),w=x.path(C,dt(t,{})),S=x.path(k,dt(t,{fill:"none"}));m=l.insert(()=>S,":first-child"),m=l.insert(()=>w,":first-child"),m.attr("class","basic label-container"),y&&m.attr("style",y)}else{let x=J_(0,0,g,h,p,u);m=l.insert("path",":first-child").attr("d",x).attr("class","basic label-container").attr("style",oe(y)).attr("style",i),m.attr("class","basic label-container outer-path"),y&&m.selectAll("path").attr("style",y),i&&m.selectAll("path").attr("style",i)}return m.attr("label-offset-x",p),m.attr("transform",`translate(${-g/2}, ${h/2} )`),c.attr("transform",`translate(${-(d.width/2)-p-(d.x-(d.left??0))}, ${-(d.height/2)-(d.y-(d.top??0))})`),ft(t,m),t.intersect=function(x){let C=lt.rect(t,x),k=C.y-(t.y??0);if(u!=0&&(Math.abs(k)<(t.height??0)/2||Math.abs(k)==(t.height??0)/2&&Math.abs(C.x-(t.x??0))>(t.width??0)/2-p)){let w=p*p*(1-k*k/(u*u));w!=0&&(w=Math.sqrt(Math.abs(w))),w=p-w,x.x-(t.x??0)>0&&(w=-w),C.x+=w}return C},l}n(M2,"tiltedCylinder");async function A2(e,t){let{labelStyles:r,nodeStyles:i}=yt(t);t.labelStyle=r;let a=t.padding??0,o=(t.look,a),s=t.look==="neo"?a*2:a,{shapeSvg:l,bbox:d}=await Tt(e,t,vt(t)),c=Math.max(d.height+o,t.height??0),h=Math.max(d.width+s,(t.width??0)-c),u=[{x:-3*c/6,y:0},{x:h+3*c/6,y:0},{x:h,y:-c},{x:0,y:-c}],p,{cssStyles:g}=t;if(t.look==="handDrawn"){let y=pt.svg(l),m=dt(t,{}),x=Nt(u),C=y.path(x,m);p=l.insert(()=>C,":first-child").attr("transform",`translate(${-h/2}, ${c/2})`),g&&p.attr("style",g)}else p=ur(l,h,c,u);return i&&p.attr("style",i),t.width=h,t.height=c,ft(t,p),t.intersect=function(y){return lt.polygon(t,u,y)},l}n(A2,"trapezoid");async function E2(e,t){let{labelStyles:r,nodeStyles:i}=yt(t);t.labelStyle=r;let a=t.padding??0,o=t.look==="neo"?16:a,s=t.look==="neo"?12:a,l=15,d=5;(t.width||t.height)&&(t.height=(t.height??0)-s*2,t.height<d&&(t.height=d),t.width=(t.width??0)-o*2,t.width<l&&(t.width=l));let{shapeSvg:c,bbox:h}=await Tt(e,t,vt(t)),u=(t?.width?t?.width:h.width)+o*2,p=(t?.height?t?.height:h.height)+s*2,{cssStyles:g}=t,y=pt.svg(c),m=dt(t,{});t.look!=="handDrawn"&&(m.roughness=0,m.fillStyle="solid");let x=[{x:-u/2*.8,y:-p/2},{x:u/2*.8,y:-p/2},{x:u/2,y:-p/2*.6},{x:u/2,y:p/2},{x:-u/2,y:p/2},{x:-u/2,y:-p/2*.6}],C=Nt(x),k=y.path(C,m),w=c.insert(()=>k,":first-child");return w.attr("class","basic label-container outer-path"),g&&t.look!=="handDrawn"&&w.selectChildren("path").attr("style",g),i&&t.look!=="handDrawn"&&w.selectChildren("path").attr("style",i),ft(t,w),t.intersect=function(S){return lt.polygon(t,x,S)},c}n(E2,"trapezoidalPentagon");var tg=10,eg=10;async function O2(e,t){let{labelStyles:r,nodeStyles:i}=yt(t);t.labelStyle=r;let a=t.padding??0,o=t.look==="neo"?a*2:a;(t.width||t.height)&&(t.width=((t?.width??0)-o)/2,t.width<eg&&(t.width=eg),t.height=t?.height??0,t.height<tg&&(t.height=tg));let{shapeSvg:s,bbox:l,label:d}=await Tt(e,t,vt(t)),c=dr(Pt().flowchart?.htmlLabels),h=(t?.width?t?.width:l.width)+o,u=t?.height?t?.height:h+l.height,p=u,g=[{x:0,y:0},{x:p,y:0},{x:p/2,y:-u}],{cssStyles:y}=t,m=pt.svg(s),x=dt(t,{});t.look!=="handDrawn"&&(x.roughness=0,x.fillStyle="solid");let C=Nt(g),k=m.path(C,x),w=s.insert(()=>k,":first-child").attr("transform",`translate(${-u/2}, ${u/2})`).attr("class","outer-path");return y&&t.look!=="handDrawn"&&w.selectChildren("path").attr("style",y),i&&t.look!=="handDrawn"&&w.selectChildren("path").attr("style",i),t.width=h,t.height=u,ft(t,w),d.attr("transform",`translate(${-l.width/2-(l.x-(l.left??0))}
205, ${u/2-(l.height+(t.padding??0)/(c?2:1)-(l.y-(l.top??0)))})`),t.intersect=function(S){return et.info("Triangle intersect",t,g,S),lt.polygon(t,g,S)},s}n(O2,"triangle");async function I2(e,t){let{labelStyles:r,nodeStyles:i}=yt(t);t.labelStyle=r;let a=t.padding??0,o=t.look==="neo"?16:a,s=t.look==="neo"?12:a,l=!0;(t.width||t.height)&&(l=!1,t.width=(t?.width??0)-o*2,t.width<10&&(t.width=10),t.height=(t?.height??0)-s*2,t.height<10&&(t.height=10));let{shapeSvg:d,bbox:c,label:h}=await Tt(e,t,vt(t)),u=(t?.width?t?.width:c.width)+(o??0)*2,p=(t?.height?t?.height:c.height)+(s??0)*2,g=t.look==="neo"?p/4:p/8,y=p+(l?g:-g),{cssStyles:m}=t,x=14-u,C=x>0?x/2:0,k=pt.svg(d),w=dt(t,{});t.look!=="handDrawn"&&(w.roughness=0,w.fillStyle="solid");let S=[{x:-u/2-C,y:y/2},...Xr(-u/2-C,y/2,u/2+C,y/2,g,.8),{x:u/2+C,y:-y/2},{x:-u/2-C,y:-y/2}],B=Nt(S),_=k.path(B,w),$=d.insert(()=>_,":first-child");return $.attr("class","basic label-container outer-path"),m&&t.look!=="handDrawn"&&$.selectAll("path").attr("style",m),i&&t.look!=="handDrawn"&&$.selectAll("path").attr("style",i),$.attr("transform",`translate(0,${-g/2})`),h.attr("transform",`translate(${-u/2+(t.padding??0)-(c.x-(c.left??0))},${-p/2+(t.padding??0)-g-(c.y-(c.top??0))})`),ft(t,$),t.intersect=function(I){return lt.polygon(t,S,I)},d}n(I2,"waveEdgedRectangle");async function D2(e,t){let{labelStyles:r,nodeStyles:i}=yt(t);t.labelStyle=r;let a=t.padding??0,o=t.look==="neo"?16:a,s=t.look==="neo"?20:a;if(t.width||t.height){t.width=t?.width??0,t.width<20&&(t.width=20),t.height=t?.height??0,t.height<10&&(t.height=10);let S=Math.min(t.height*.2,t.height/4);t.height=Math.ceil(t.height-s-S*(20/9)),t.width=t.width-o*2}let{shapeSvg:l,bbox:d}=await Tt(e,t,vt(t)),c=(t?.width?t?.width:d.width)+o*2,h=(t?.height?t?.height:d.height)+s,u=h/8,p=h+u*2,{cssStyles:g}=t,y=pt.svg(l),m=dt(t,{});t.look!=="handDrawn"&&(m.roughness=0,m.fillStyle="solid");let x=[{x:-c/2,y:p/2},...Xr(-c/2,p/2,c/2,p/2,u,1),{x:c/2,y:-p/2},...Xr(c/2,-p/2,-c/2,-p/2,u,-1)],C=Nt(x),k=y.path(C,m),w=l.insert(()=>k,":first-child");return w.attr("class","basic label-container"),g&&t.look!=="handDrawn"&&w.selectAll("path").attr("style",g),i&&t.look!=="handDrawn"&&w.selectAll("path").attr("style",i),ft(t,w),t.intersect=function(S){return lt.polygon(t,x,S)},l}n(D2,"waveRectangle");var te=10;async function q2(e,t){let{labelStyles:r,nodeStyles:i}=yt(t);t.labelStyle=r;let a=t.look==="neo"?16:t.padding??0,o=t.look==="neo"?12:t.padding??0;(t.width||t.height)&&(t.width=Math.max((t?.width??0)-a*2-te,10),t.height=Math.max((t?.height??0)-o*2-te,10));let{shapeSvg:s,bbox:l,label:d}=await Tt(e,t,vt(t)),c=(t?.width?t?.width:l.width)+a*2+te,h=(t?.height?t?.height:l.height)+o*2+te,u=c-te,p=h-te,g=-u/2,y=-p/2,{cssStyles:m}=t,x=pt.svg(s),C=dt(t,{}),k=[{x:g-te,y:y-te},{x:g-te,y:y+p},{x:g+u,y:y+p},{x:g+u,y:y-te}],w=`M${g-te},${y-te} L${g+u},${y-te} L${g+u},${y+p} L${g-te},${y+p} L${g-te},${y-te} 206 M${g-te},${y} L${g+u},${y} 207 M${g},${y-te} L${g},${y+p}`;t.look!=="handDrawn"&&(C.roughness=0,C.fillStyle="solid");let S=x.path(w,C),B=s.insert(()=>S,":first-child");return B.attr("transform",`translate(${te/2}, ${te/2})`),B.attr("class","basic label-container outer-path"),m&&t.look!=="handDrawn"&&B.selectAll("path").attr("style",m),i&&t.look!=="handDrawn"&&B.selectAll("path").attr("style",i),d.attr("transform",`translate(${-(l.width/2)+te/2-(l.x-(l.left??0))}, ${-(l.height/2)+te/2-(l.y-(l.top??0))})`),ft(t,B),t.intersect=function(_){return lt.polygon(t,k,_)},s}n(q2,"windowPane");var rg=new Set(["redux-color","redux-dark-color"]),e$=new Set(["redux","redux-dark","redux-color","redux-dark-color"]);async function mu(e,t){let r=t;r.alias&&(t.label=r.alias);let{theme:i,themeVariables:a}=Jt(),{rowEven:o,rowOdd:s,nodeBorder:l,borderColorArray:d}=a;if(t.look==="handDrawn"){let{themeVariables:ut}=Jt(),{background:bt}=ut;await mu(e,{...t,id:t.id+"-background",domId:(t.domId||t.id)+"-background",look:"default",cssStyles:["stroke: none",`fill: ${bt}`]})}let c=Jt();t.useHtmlLabels=c.htmlLabels;let h=c.er?.diagramPadding??10,u=c.er?.entityPadding??6,{cssStyles:p}=t,{labelStyles:g,nodeStyles:y}=yt(t);if(r.attributes.length===0&&t.label){let ut={rx:0,ry:0,labelPaddingX:h,labelPaddingY:h*1.5};Fr(t.label,c)+ut.labelPaddingX*2<c.er.minEntityWidth&&(t.width=c.er.minEntityWidth);let bt=await qa(e,t,ut);if(i!=null&&rg.has(i)){let Dt=r.colorIndex??0;bt.attr("data-color-id",`color-${Dt%d.length}`)}
vendor: 6,388 bytes, line 207
207if(!dr(c.htmlLabels)){let Dt=bt.select("text"),K=Dt.node()?.getBBox();Dt.attr("transform",`translate(${-K.width/2}, 0)`)}return bt}c.htmlLabels||(h*=1.25,u*=1.25);let m=vt(t);m||(m="node default");let x=e.insert("g").attr("class",m).attr("id",t.domId||t.id),C=await qi(x,t.label??"",c,0,0,["name"],g);C.height+=u;let k=0,w=[],S=[],B=0,_=0,$=0,I=0,U=!0,V=!0;for(let ut of r.attributes){let bt=await qi(x,ut.type,c,0,k,["attribute-type"],g);B=Math.max(B,bt.width+h);let Dt=await qi(x,ut.name,c,0,k,["attribute-name"],g);_=Math.max(_,Dt.width+h);let K=await qi(x,ut.keys.join(),c,0,k,["attribute-keys"],g);$=Math.max($,K.width+h);let st=await qi(x,ut.comment,c,0,k,["attribute-comment"],g);I=Math.max(I,st.width+h);let mt=Math.max(bt.height,Dt.height,K.height,st.height)+u;S.push({yOffset:k,rowHeight:mt}),k+=mt}let A=4;$<=h&&(U=!1,$=0,A--),I<=h&&(V=!1,I=0,A--);let W=x.node().getBBox();if(C.width+h*2-(B+_+$+I)>0){let ut=C.width+h*2-(B+_+$+I);B+=ut/A,_+=ut/A,$>0&&($+=ut/A),I>0&&(I+=ut/A)}let O=B+_+$+I,F=pt.svg(x),M=dt(t,{});t.look!=="handDrawn"&&(M.roughness=0,M.fillStyle="solid");let L=0;S.length>0&&(L=S.reduce((ut,bt)=>ut+(bt?.rowHeight??0),0));let D=Math.max(W.width+h*2,t?.width||0,O),R=Math.max((L??0)+C.height,t?.height||0),rt=-D/2,X=-R/2;if(x.selectAll("g:not(:first-child)").each((ut,bt,Dt)=>{let K=At(Dt[bt]),st=K.attr("transform"),mt=0,G=0;if(st){let jt=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(st);jt&&(mt=parseFloat(jt[1]),G=parseFloat(jt[2]),K.attr("class").includes("attribute-name")?mt+=B:K.attr("class").includes("attribute-keys")?mt+=B+_:K.attr("class").includes("attribute-comment")&&(mt+=B+_+$))}K.attr("transform",`translate(${rt+h/2+mt}, ${G+X+C.height+u/2})`)}),x.select(".name").attr("transform","translate("+-C.width/2+", "+(X+u/2)+")"),i!=null&&rg.has(i)){let ut=r.colorIndex??0;x.attr("data-color-id",`color-${ut%d.length}`)}let xt=F.rectangle(rt,X,D,R,M),wt=x.insert(()=>xt,":first-child").attr("class","outer-path").attr("style",p.join(""));w.push(0);for(let[ut,bt]of S.entries()){let Dt=(ut+1)%2===0&&bt.yOffset!==0,K=F.rectangle(rt,C.height+X+bt?.yOffset,D,bt?.rowHeight,{...M,fill:Dt?o:s,stroke:l});x.insert(()=>K,"g.label").attr("style",p.join("")).attr("class",`row-rect-${Dt?"even":"odd"}`)}let _t=1e-4,$t=Pi(rt,C.height+X,D+rt,C.height+X,_t),Ct=F.polygon($t.map(ut=>[ut.x,ut.y]),M);if(x.insert(()=>Ct).attr("class","divider"),$t=Pi(B+rt,C.height+X,B+rt,R+X,_t),Ct=F.polygon($t.map(ut=>[ut.x,ut.y]),M),x.insert(()=>Ct).attr("class","divider"),U){let ut=B+_+rt;$t=Pi(ut,C.height+X,ut,R+X,_t),Ct=F.polygon($t.map(bt=>[bt.x,bt.y]),M),x.insert(()=>Ct).attr("class","divider")}if(V){let ut=B+_+$+rt;$t=Pi(ut,C.height+X,ut,R+X,_t),Ct=F.polygon($t.map(bt=>[bt.x,bt.y]),M),x.insert(()=>Ct).attr("class","divider")}for(let ut of w){let bt=C.height+X+ut;$t=Pi(rt,bt,D+rt,bt,_t),Ct=F.polygon($t.map(Dt=>[Dt.x,Dt.y]),M),x.insert(()=>Ct).attr("class","divider")}if(ft(t,wt),y&&t.look!=="handDrawn")if(i!=null&&e$.has(i))x.selectAll("path").attr("style",y);else{let ut=y.split(";")?.filter(bt=>bt.includes("stroke"))?.map(bt=>`${bt}`).join("; ");x.selectAll("path").attr("style",ut??""),x.selectAll(".row-rect-even path").attr("style",y)}return t.intersect=function(ut){return lt.rect(t,ut)},x}n(mu,"erBox");async function qi(e,t,r,i=0,a=0,o=[],s=""){let l=e.insert("g").attr("class",`label ${o.join(" ")}`).attr("transform",`translate(${i}, ${a})`).attr("style",s);t!==Fp(t)&&(t=Fp(t),t=t.replaceAll("<","<").replaceAll(">",">"));let d=l.node().appendChild(await tr(l,t,{width:Fr(t,r)+100,style:s,useHtmlLabels:r.htmlLabels},r));if(t.includes("<")||t.includes(">")){let h=d.children[0];for(h.textContent=h.textContent.replaceAll("<","<").replaceAll(">",">");h.childNodes[0];)h=h.childNodes[0],h.textContent=h.textContent.replaceAll("<","<").replaceAll(">",">")}let c=d.getBBox();if(dr(r.htmlLabels)){let h=d.children[0];h.style.textAlign="start";let u=At(d);c=h.getBoundingClientRect(),u.attr("width",c.width),u.attr("height",c.height)}return c}n(qi,"addText");function Pi(e,t,r,i,a){return e===r?[{x:e-a/2,y:t},{x:e+a/2,y:t},{x:r+a/2,y:i},{x:r-a/2,y:i}]:[{x:e,y:t-a/2},{x:e,y:t+a/2},{x:r,y:i+a/2},{x:r,y:i-a/2}]}n(Pi,"lineToPolygon");async function P2(e,t,r,i,a=r.class.padding??12){let o=i?0:3,s=e.insert("g").attr("class",vt(t)).attr("id",t.domId||t.id),l=null,d=null,c=null,h=null,u=0,p=0,g=0;if(l=s.insert("g").attr("class","annotation-group text"),t.annotations.length>0){let k=t.annotations[0];await io(l,{text:`«${k}»`},0),u=l.node().getBBox().height}d=s.insert("g").attr("class","label-group text"),await io(d,t,0,["font-weight: bolder"]);let y=d.node().getBBox();p=y.height,c=s.insert("g").attr("class","members-group text");let m=0;for(let k of t.members){let w=await io(c,k,m,[k.parseClassifier()]);m+=w+o}g=c.node().getBBox().height,g<=0&&(g=a/2),h=s.insert("g").attr("class","methods-group text");let x=0;for(let k of t.methods){let w=await io(h,k,x,[k.parseClassifier()]);x+=w+o}let C=s.node().getBBox();if(l!==null){let k=l.node().getBBox();l.attr("transform",`translate(${-k.width/2})`)}return d.attr("transform",`translate(${-y.width/2}, ${u})`),C=s.node().getBBox(),c.attr("transform",`translate(0, ${u+p+a*2})`),C=s.node().getBBox(),h.attr("transform",`translate(0, ${u+p+(g?g+a*4:a*2)})`),C=s.node().getBBox(),{shapeSvg:s,bbox:C}}n(P2,"textHelper");async function io(e,t,r,i=[]){let a=e.insert("g").attr("class","label").attr("style",i.join("; ")),o=Jt(),s="useHtmlLabels"in t?t.useHtmlLabels:dr(o.htmlLabels)??!0,l="";"text"in t?l=t.text:l=t.label,!s&&l.startsWith("\\")&&(l=l.substring(1)),Oo(l)&&(s=!0);let d=await tr(a,Ad(Gr(l)),{width:Fr(l,o)+50,classes:"markdown-node-label",useHtmlLabels:s},o),c,h=1;if(s){let u=d.children[0],p=At(d);h=u.innerHTML.split("<br>").length,u.innerHTML.includes("</math>")&&(h+=u.innerHTML.split("<mrow>").length-1),await pu(u),c=u.getBoundingClientRect(),p.attr("width",c.width),p.attr("height",c.height)}else{i.includes("font-weight: bolder")&&At(d).selectAll("tspan").attr("font-weight",""),h=d.children.length;let u=d.children[0];(d.textContent===""||d.textContent.includes(">"))&&(u.textContent=l[0]+l.substring(1).replaceAll(">",">").replaceAll("<","<").trim(),l[1]===" "&&(u.textContent=u.textContent[0]+" "+u.textContent.substring(1))),u.textContent==="undefined"&&(u.textContent=""),c=d.getBBox()}return a.attr("transform","translate(0,"+(-c.height/(2*h)+r)+")"),
vendor: 4,580 bytes, line 207
207c.height}n(io,"addText");async function R2(e,t){let r=Pt(),{themeVariables:i}=r,{useGradient:a}=i,o=r.class.padding??12,s=o,l=t.useHtmlLabels??dr(r.htmlLabels)??!0,d=t;d.annotations=d.annotations??[],d.members=d.members??[],d.methods=d.methods??[];let{shapeSvg:c,bbox:h}=await P2(e,t,r,l,s),{labelStyles:u,nodeStyles:p}=yt(t);t.labelStyle=u,t.cssStyles=d.styles||"";let g=d.styles?.join(";")||p||"";t.cssStyles||(t.cssStyles=g.replaceAll("!important","").split(";"));let y=d.members.length===0&&d.methods.length===0&&!r.class?.hideEmptyMembersBox,m=pt.svg(c),x=dt(t,{});t.look!=="handDrawn"&&(x.roughness=0,x.fillStyle="solid");let C=Math.max(t.width??0,h.width),k=Math.max(t.height??0,h.height),w=(t.height??0)>h.height;d.members.length===0&&d.methods.length===0?k+=s:d.members.length>0&&d.methods.length===0&&(k+=s*2);let S=-C/2,B=-k/2,_=y?o*2:d.members.length===0&&d.methods.length===0?-o:0;w&&(_=o*2);let $=m.rectangle(S-o,B-o-(y?o:d.members.length===0&&d.methods.length===0?-o/2:0),C+2*o,k+2*o+_,x),I=c.insert(()=>$,":first-child");I.attr("class","basic label-container outer-path");let U=I.node().getBBox(),V=c.select(".annotation-group").node().getBBox().height-(y?o/2:0)||0,A=c.select(".label-group").node().getBBox().height-(y?o/2:0)||0,W=c.select(".members-group").node().getBBox().height-(y?o/2:0)||0,O=(V+A+B+o-(B-o-(y?o:d.members.length===0&&d.methods.length===0?-o/2:0)))/2;if(c.selectAll(".text").each((F,M,L)=>{let D=At(L[M]),R=D.attr("transform"),rt=0;if(R){let wt=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(R);wt&&(rt=parseFloat(wt[2]))}let X=rt+B+o-(y?o:d.members.length===0&&d.methods.length===0?-o/2:0);if(D.attr("class").includes("methods-group")){let wt=Math.max(W,s/2);w?X=Math.max(O,V+A+wt+B+s*2+o)+s*2:X=V+A+wt+B+s*4+o}d.members.length===0&&d.methods.length===0&&r.class?.hideEmptyMembersBox&&(d.annotations.length>0?X=rt-s:X=rt),l||(X-=4);let xt=S;(D.attr("class").includes("label-group")||D.attr("class").includes("annotation-group"))&&(xt=-D.node()?.getBBox().width/2||0,c.selectAll("text").each(function(wt,_t,$t){window.getComputedStyle($t[_t]).textAnchor==="middle"&&(xt=0)})),D.attr("transform",`translate(${xt}, ${X})`)}),d.members.length>0||d.methods.length>0||y){let F=V+A+B+o,M=m.line(U.x,F,U.x+U.width,F+.001,x);c.insert(()=>M).attr("class",`divider${t.look==="neo"&&!a?" neo-line":""}`).attr("style",g)}if(y||d.members.length>0||d.methods.length>0){let F=V+A+W+B+s*2+o,M=m.line(U.x,w?Math.max(O,F):F,U.x+U.width,(w?Math.max(O,F):F)+.001,x);c.insert(()=>M).attr("class",`divider${t.look==="neo"&&!a?" neo-line":""}`).attr("style",g)}if(d.look!=="handDrawn"&&c.selectAll("path").attr("style",g),I.select(":nth-child(2)").attr("style",g),c.selectAll(".divider").select("path").attr("style",g),t.labelStyle?c.selectAll("span").attr("style",t.labelStyle):c.selectAll("span").attr("style",g),!l){let F=RegExp(/color\s*:\s*([^;]*)/),M=F.exec(g);if(M){let L=M[0].replace("color","fill");c.selectAll("tspan").attr("style",L)}else if(u){let L=F.exec(u);if(L){let D=L[0].replace("color","fill");c.selectAll("tspan").attr("style",D)}}}return ft(t,I),t.intersect=function(F){return lt.rect(t,F)},c}n(R2,"classBox");async function N2(e,t){let{labelStyles:r,nodeStyles:i}=yt(t);t.labelStyle=r;let a=t,o=t,s=20,l=20,d="verifyMethod"in t,c=vt(t),h=Pt(),{themeVariables:u}=h,{borderColorArray:p,requirementEdgeLabelBackground:g}=u,y=h.layout==="elk"?"start":"center",m=e.insert("g").attr("class",c).attr("id",t.domId??t.id),x;d?x=await ar(m,`<<${a.type}>>`,0,t.labelStyle):x=await ar(m,"<<Element>>",0,t.labelStyle);let C=x,k=await ar(m,a.name,C,t.labelStyle+"; font-weight: bold;");if(C+=k+l,d){let A=await ar(m,`${a.requirementId?`ID: ${a.requirementId}`:""}`,C,t.labelStyle,y);C+=A;let W=await ar(m,`${a.text?`Text: ${a.text}`:""}`,C,t.labelStyle,y);C+=W;let O=await ar(m,`${a.risk?`Risk: ${a.risk}`:""}`,C,t.labelStyle,y);C+=O,await ar(m,`${a.verifyMethod?`Verification: ${a.verifyMethod}`:""}`,C,t.labelStyle,y)}else{let A=await ar(m,`${o.type?`Type: ${o.type}`:""}`,C,t.labelStyle,y);C+=A,await ar(m,`${o.docRef?`Doc Ref: ${o.docRef}`:""}`,C,t.labelStyle,y)}let w=(m.node()?.getBBox().width??200)+s,S=(m.node()?.getBBox().height??200)+s,B=-w/2,_=-S/2,$=pt.svg(m),I=dt(t,{});t.look!=="handDrawn"&&(I.roughness=0,I.fillStyle="solid");let U=$.rectangle(B,_,w,S,I),V=m.insert(()=>U,":first-child");if(V.attr("class","basic label-container outer-path").attr("style",i),p?.length){let A=t.colorIndex??0;m.attr("data-color-id",`color-${A%p.length}`)}if(m.selectAll(".label").each((A,W,O)=>{let F=At(O[W]),M=F.attr("transform"),L=0,D=0;
vendor: 7,548 bytes, lines 207-259
207if(M){let X=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(M);X&&(L=parseFloat(X[1]),D=parseFloat(X[2]))}let R=D-S/2,rt=B+s/2;(W===0||W===1)&&(rt=L),F.attr("transform",`translate(${rt}, ${R+s})`)}),C>x+k+l){let A=_+x+k+l,W;if(t.look==="neo"){let O=[[B,A],[B+w,A],[B+w,A+.001],[B,A+.001]];W=$.polygon(O,I)}else W=$.line(B,A,B+w,A,I);m.insert(()=>W).attr("class","divider")}return ft(t,V),t.intersect=function(A){return lt.rect(t,A)},i&&t.look!=="handDrawn"&&(g||p?.length)&&m.selectAll("path").attr("style",i),m}n(N2,"requirementBox");async function ar(e,t,r,i="",a="center"){if(t==="")return 0;let o=e.insert("g").attr("class","label").attr("style",i),s=Pt(),l=s.htmlLabels??!0,d=await tr(o,Ad(Gr(t)),{width:Fr(t,s)+50,classes:"markdown-node-label",useHtmlLabels:l,style:i},s),c;if(l){let h=d.children[0],u=At(d);a==="start"&&At(h).style("text-align","left"),c=h.getBoundingClientRect(),u.attr("width",c.width),u.attr("height",c.height)}else{let h=d.children[0];for(let u of h.children)i&&u.setAttribute("style",i);if(a==="start"){h.setAttribute("text-anchor","start");for(let u of h.children)u.setAttribute("text-anchor","start")}c=d.getBBox(),c.height+=6}return o.attr("transform",`translate(${-c.width/2},${-c.height/2+r})`),c.height}n(ar,"addText");var r$=n(e=>{switch(e){case"Very High":return"red";case"High":return"orange";case"Medium":return null;case"Low":return"blue";case"Very Low":return"lightblue"}},"colorFromPriority");async function z2(e,t,{config:r}){let{labelStyles:i,nodeStyles:a}=yt(t);t.labelStyle=i||"";let o=10,s=t.width;t.width=(t.width??200)-10;let{shapeSvg:l,bbox:d,label:c}=await Tt(e,t,vt(t)),h=t.padding||10,u="",p;"ticket"in t&&t.ticket&&r?.kanban?.ticketBaseUrl&&(u=r?.kanban?.ticketBaseUrl.replace("#TICKET#",t.ticket),p=l.insert("svg:a",":first-child").attr("class","kanban-ticket-link").attr("xlink:href",u).attr("target","_blank"));let g={useHtmlLabels:t.useHtmlLabels,labelStyle:t.labelStyle||"",width:t.width,img:t.img,padding:t.padding||8,centerLabel:!1},y,m;p?{label:y,bbox:m}=await Sl(p,"ticket"in t&&t.ticket||"",g):{label:y,bbox:m}=await Sl(l,"ticket"in t&&t.ticket||"",g);let{label:x,bbox:C}=await Sl(l,"assigned"in t&&t.assigned||"",g);t.width=s;let k=10,w=t?.width||0,S=Math.max(m.height,C.height)/2,B=Math.max(d.height+k*2,t?.height||0)+S,_=-w/2,$=-B/2;c.attr("transform","translate("+(h-w/2)+", "+(-S-d.height/2)+")"),y.attr("transform","translate("+(h-w/2)+", "+(-S+d.height/2)+")"),x.attr("transform","translate("+(h+w/2-C.width-2*o)+", "+(-S+d.height/2)+")");let I,{rx:U,ry:V}=t,{cssStyles:A}=t;if(t.look==="handDrawn"){let W=pt.svg(l),O=dt(t,{}),F=U||V?W.path(je(_,$,w,B,U||0),O):W.rectangle(_,$,w,B,O);I=l.insert(()=>F,":first-child"),I.attr("class","basic label-container").attr("style",A||null)}else{I=l.insert("rect",":first-child"),I.attr("class","basic label-container __APA__").attr("style",a).attr("rx",U??5).attr("ry",V??5).attr("x",_).attr("y",$).attr("width",w).attr("height",B);let W="priority"in t&&t.priority;if(W){let O=l.append("line"),F=_+2,M=$+Math.floor((U??0)/2),L=$+B-Math.floor((U??0)/2);O.attr("x1",F).attr("y1",M).attr("x2",F).attr("y2",L).attr("stroke-width","4").attr("stroke",r$(W))}}return ft(t,I),t.height=B,t.intersect=function(W){return lt.rect(t,W)},l}n(z2,"kanbanItem");async function W2(e,t){let{labelStyles:r,nodeStyles:i}=yt(t);t.labelStyle=r;let{shapeSvg:a,bbox:o,halfPadding:s,label:l}=await Tt(e,t,vt(t)),d=o.width+10*s,c=o.height+8*s,h=.15*d,{cssStyles:u}=t,p=o.width+20,g=o.height+20,y=Math.max(d,p),m=Math.max(c,g);l.attr("transform",`translate(${-o.width/2}, ${-o.height/2})`);let x,C=`M0 0 208 a${h},${h} 1 0,0 ${y*.25},${-1*m*.1} 209 a${h},${h} 1 0,0 ${y*.25},0 210 a${h},${h} 1 0,0 ${y*.25},0 211 a${h},${h} 1 0,0 ${y*.25},${m*.1} 212 213 a${h},${h} 1 0,0 ${y*.15},${m*.33} 214 a${h*.8},${h*.8} 1 0,0 0,${m*.34} 215 a${h},${h} 1 0,0 ${-1*y*.15},${m*.33} 216 217 a${h},${h} 1 0,0 ${-1*y*.25},${m*.15} 218 a${h},${h} 1 0,0 ${-1*y*.25},0 219 a${h},${h} 1 0,0 ${-1*y*.25},0 220 a${h},${h} 1 0,0 ${-1*y*.25},${-1*m*.15} 221 222 a${h},${h} 1 0,0 ${-1*y*.1},${-1*m*.33} 223 a${h*.8},${h*.8} 1 0,0 0,${-1*m*.34} 224 a${h},${h} 1 0,0 ${y*.1},${-1*m*.33} 225 H0 V0 Z`;if(t.look==="handDrawn"){let k=pt.svg(a),w=dt(t,{}),S=k.path(C,w);x=a.insert(()=>S,":first-child"),x.attr("class","basic label-container").attr("style",oe(u))}else x=a.insert("path",":first-child").attr("class","basic label-container").attr("style",i).attr("d",C);return x.attr("transform",`translate(${-y/2}, ${-m/2})`),ft(t,x),t.calcIntersect=function(k,w){return lt.rect(k,w)},t.intersect=function(k){return et.info("Bang intersect",t,k),lt.rect(t,k)},a}n(W2,"bang");async function j2(e,t){let{labelStyles:r,nodeStyles:i}=yt(t);t.labelStyle=r;let{shapeSvg:a,bbox:o,halfPadding:s,label:l}=await Tt(e,t,vt(t)),d=o.width+2*s,c=o.height+2*s,h=.15*d,u=.25*d,p=.35*d,g=.2*d,{cssStyles:y}=t,m,x=`M0 0 226 a${h},${h} 0 0,1 ${d*.25},${-1*d*.1} 227 a${p},${p} 1 0,1 ${d*.4},${-1*d*.1} 228 a${u},${u} 1 0,1 ${d*.35},${d*.2} 229 230 a${h},${h} 1 0,1 ${d*.15},${c*.35} 231 a${g},${g} 1 0,1 ${-1*d*.15},${c*.65} 232 233 a${u},${h} 1 0,1 ${-1*d*.25},${d*.15} 234 a${p},${p} 1 0,1 ${-1*d*.5},0 235 a${h},${h} 1 0,1 ${-1*d*.25},${-1*d*.15} 236 237 a${h},${h} 1 0,1 ${-1*d*.1},${-1*c*.35} 238 a${g},${g} 1 0,1 ${d*.1},${-1*c*.65} 239 H0 V0 Z`;if(t.look==="handDrawn"){let C=pt.svg(a),k=dt(t,{}),w=C.path(x,k);m=a.insert(()=>w,":first-child"),m.attr("class","basic label-container").attr("style",oe(y))}else m=a.insert("path",":first-child").attr("class","basic label-container").attr("style",i).attr("d",x);return l.attr("transform",`translate(${-o.width/2}, ${-o.height/2})`),m.attr("transform",`translate(${-d/2}, ${-c/2})`),ft(t,m),t.calcIntersect=function(C,k){return lt.rect(C,k)},t.intersect=function(C){return et.info("Cloud intersect",t,C),lt.rect(t,C)},a}n(j2,"cloud");async function H2(e,t){let{labelStyles:r,nodeStyles:i}=yt(t);t.labelStyle=r;let{shapeSvg:a,bbox:o,halfPadding:s,label:l}=await Tt(e,t,vt(t)),d=o.width+8*s,c=o.height+2*s,h=5,u=t.look==="neo"?` 240 M${-d/2} ${c/2-h} 241 v${-c+2*h} 242 q0,-${h} ${h},-${h} 243 h${d-2*h} 244 q${h},0 ${h},${h} 245 v${c-h} 246 H${-d/2} 247 Z 248 `:` 249 M${-d/2} ${c/2-h} 250 v${-c+2*h} 251 q0,-${h} ${h},-${h} 252 h${d-2*h} 253 q${h},0 ${h},${h} 254 v${c-2*h} 255 q0,${h} -5,${h} 256 h${-(d-2*h)} 257 q-5,0 -5,-5 258 Z 259 `;if(!t.domId)throw new Error(`defaultMindmapNode: node "${t.id}" is missing a domId â was render.ts domId prefixing skipped?`);let p=a.append("path").attr("id",t.domId).attr("class","node-bkg node-"+t.type).attr("style",i).attr("d",u);return a.append("line").attr("class","node-line-").attr("x1",-d/2).attr("y1",c/2).attr("x2",d/2).attr("y2",c/2),l.attr("transform",`translate(${-o.width/2}, ${-o.height/2})`),a.append(()=>l.node()),ft(t,p),t.calcIntersect=function(g,y){return lt.rect(g,y)},t.intersect=function(g){return lt.rect(t,g)},a}n(H2,"defaultMindmapNode");async function U2(e,t){return yu(e,t,{padding:t.padding??0})}n(U2,"mindmapCircle");var i$=[{semanticName:"Process",name:"Rectangle",shortName:"rect",description:"Standard process shape",aliases:["proc","process","rectangle"],internalAliases:["squareRect"],handler:w2},{semanticName:"Event",name:"Rounded Rectangle",shortName:"rounded",description:"Represents an event",aliases:["event"],internalAliases:["roundedRect"],handler:C2},{semanticName:"Terminal Point",name:"Stadium",shortName:"stadium",description:"Terminal point",aliases:["terminal","pill"],handler:v2},{semanticName:"Subprocess",name:"Framed Rectangle",shortName:"fr-rect",description:"Subprocess",aliases:["subprocess","
259subproc","framed-rectangle","subroutine"],handler:_2},{semanticName:"Database",name:"Cylinder",shortName:"cyl",description:"Database storage",aliases:["db","database","cylinder"],handler:Hk},{semanticName:"Data Store",name:"Data Store",shortName:"datastore",description:"Data flow diagram data store",aliases:["data-store"],handler:Uk},{semanticName:"Folder",name:"Folder",shortName:"folder",description:"Folder or directory",aliases:["directory"],handler:Zk},{semanticName:"Bucket",name:"Bucket",shortName:"bucket",description:"Object storage bucket",handler:Lk},{semanticName:"Console",name:"Console (terminal window)",shortName:"console",description:"Terminal or console window",handler:Dk},{semanticName:"Browser",name:"Browser",shortName:"browser",description:"Browser window",handler:Ak},{semanticName:"Person",name:"Person",shortName:"person",description:"Person (circular head above a rounded body)",handler:jk},{semanticName:"Start",name:"Circle",shortName:"circle",description:"Starting point",aliases:["circ"],handler:yu},{semanticName:"Bang",name:"Bang",shortName:"bang",description:"Bang",aliases:["bang"],handler:W2},{semanticName:"Cloud",name:"Cloud",shortName:"cloud",description:"cloud",aliases:["cloud"],handler:j2}
259,{semanticName:"Decision",name:"Diamond",shortName:"diam",description:"Decision-making step",aliases:["decision","diamond","question"],handler:y2},{semanticName:"Prepare Conditional",name:"Hexagon",shortName:"hex",description:"Preparation or condition step",aliases:["hexagon","prepare"],handler:Kk},{semanticName:"Data Input/Output",name:"Lean Right",shortName:"lean-r",description:"Represents input or output",aliases:["lean-right","in-out"],internalAliases:["lean_right"],handler:h2},{semanticName:"Data Input/Output",name:"Lean Left",shortName:"lean-l",description:"Represents output or input",aliases:["lean-left","out-in"],internalAliases:["lean_left"],handler:l2},{semanticName:"Priority Action",name:"Trapezoid Base Bottom",shortName:"trap-b",description:"Priority action",aliases:["priority","trapezoid-bottom","trapezoid"],handler:A2},{semanticName:"Manual Operation",name:"Trapezoid Base Top",shortName:"trap-t",description:"Represents a manual task",aliases:["manual","trapezoid-top","inv-trapezoid"],internalAliases:["inv_trapezoid"],handler:n2},{semanticName:"Stop",name:"Double Circle",shortName:"dbl-circ",description:"Represents a stop point",aliases:["double-circle"],internalAliases:["doublecircle"],handler:Vk},{semanticName:"Text Block",name:"Text Block",shortName:"text",description:"Text block",handler:F2}
259,{semanticName:"Card",name:"Notched Rectangle",shortName:"notch-rect",description:"Represents a card",aliases:["card","notched-rectangle"],handler:Ek},{semanticName:"Lined/Shaded Process",name:"Lined Rectangle",shortName:"lin-rect",description:"Lined process shape",aliases:["lined-rectangle","lined-process","lin-proc","shaded-process"],handler:b2},{semanticName:"Start",name:"Small Circle",shortName:"sm-circ",description:"Small starting point",aliases:["start","small-circle"],internalAliases:["stateStart"],handler:B2},{semanticName:"Stop",name:"Framed Circle",shortName:"fr-circ",description:"Stop point",aliases:["stop","framed-circle"],internalAliases:["stateEnd"],handler:S2},{semanticName:"Fork/Join",name:"Filled Rectangle",shortName:"fork",description:"Fork or join in process flow",aliases:["join"],internalAliases:["forkJoin"],handler:Qk},{semanticName:"Collate",name:"Hourglass",shortName:"hourglass",description:"Represents a collate operation",aliases:["hourglass","collate"],handler:t2},{semanticName:"Comment",name:"Curly Brace",shortName:"brace",description:"Adds a comment",aliases:["comment","brace-l"],handler:Rk},{semanticName:"Comment Right",name:"Curly Brace",shortName:"brace-r",description:"Adds a comment",handler:Nk},{semanticName:"Comment with braces on both sides",name:"Curly Braces",shortName:"braces",description:"Adds a comment",handler:zk},{semanticName:"Com Link",name:"Lightning Bolt",shortName:"bolt",description:"Communication link",aliases:["com-link","lightning-bolt"],handler:c2}
vendor: 9,173 bytes, line 259
259,{semanticName:"Document",name:"Document",shortName:"doc",description:"Represents a document",aliases:["doc","document"],handler:I2},{semanticName:"Delay",name:"Half-Rounded Rectangle",shortName:"delay",description:"Represents a delay",aliases:["half-rounded-rectangle"],handler:Jk},{semanticName:"Direct Access Storage",name:"Horizontal Cylinder",shortName:"h-cyl",description:"Direct access storage",aliases:["das","horizontal-cylinder"],handler:M2},{semanticName:"Disk Storage",name:"Lined Cylinder",shortName:"lin-cyl",description:"Disk storage",aliases:["disk","lined-cylinder"],handler:d2},{semanticName:"Display",name:"Curved Trapezoid",shortName:"curv-trap",description:"Represents a display",aliases:["curved-trapezoid","display"],handler:Wk},{semanticName:"Divided Process",name:"Divided Rectangle",shortName:"div-rect",description:"Divided process shape",aliases:["div-proc","divided-rectangle","divided-process"],handler:Yk},{semanticName:"Extract",name:"Triangle",shortName:"tri",description:"Extraction process",aliases:["extract","triangle"],handler:O2},{semanticName:"Internal Storage",name:"Window Pane",shortName:"win-pane",description:"Internal storage",aliases:["internal-storage","window-pane"],handler:q2},{semanticName:"Junction",name:"Filled Circle",shortName:"f-circ",description:"Junction point",aliases:["junction","filled-circle"],handler:Gk},{semanticName:"Loop Limit",name:"Trapezoidal Pentagon",shortName:"notch-pent",description:"Loop limit step",aliases:["loop-limit","notched-pentagon"],handler:E2},{semanticName:"Manual File",name:"Flipped Triangle",shortName:"flip-tri",description:"Manual file operation",aliases:["manual-file","flipped-triangle"],handler:Xk},{semanticName:"Manual Input",name:"Sloped Rectangle",shortName:"sl-rect",description:"Manual input step",aliases:["manual-input","sloped-rectangle"],handler:k2},{semanticName:"Multi-Document",name:"Stacked Document",shortName:"docs",description:"Multiple documents",aliases:["documents","st-doc","stacked-document"],handler:g2},{semanticName:"Multi-Process",name:"Stacked Rectangle",shortName:"st-rect",description:"Multiple processes",aliases:["procs","processes","stacked-rectangle"],handler:p2},{semanticName:"Stored Data",name:"Bow Tie Rectangle",shortName:"bow-rect",description:"Stored data",aliases:["stored-data","bow-tie-rectangle"],handler:$k},{semanticName:"Summary",name:"Crossed Circle",shortName:"cross-circ",description:"Summary",aliases:["summary","crossed-circle"],handler:Pk},{semanticName:"Tagged Document",name:"Tagged Document",shortName:"tag-doc",description:"Tagged document",aliases:["tag-doc","tagged-document"],handler:L2},{semanticName:"Tagged Process",name:"Tagged Rectangle",shortName:"tag-rect",description:"Tagged process",aliases:["tagged-rectangle","tag-proc","tagged-process"],handler:$2},{semanticName:"Paper Tape",name:"Flag",shortName:"flag",description:"Paper tape",aliases:["paper-tape"],handler:D2},{semanticName:"Odd",name:"Odd",shortName:"odd",description:"Odd shape",internalAliases:["rect_left_inv_arrow"],handler:m2},{semanticName:"Lined Document",name:"Lined Document",shortName:"lin-doc",description:"Lined document",aliases:["lined-document"],handler:u2}],Y2=n(()=>{let e=[...Object.entries({state:T2,choice:Ok,note:f2,composite:Ik,rectWithTitle:x2,labelRect:s2,block_arrow:Mk,collapsedGroup:Fk,iconSquare:a2,iconCircle:r2,icon:e2,iconRounded:i2,imageSquare:o2,anchor:Bk,kanbanItem:z2,mindmapCircle:U2,defaultMindmapNode:H2,classBox:R2,erBox:mu,requirementBox:N2}),...i$.flatMap(t=>[t.shortName,..."aliases"in t?t.aliases:[],..."internalAliases"in t?t.internalAliases:[]].map(r=>[r,t.handler]))];return Object.fromEntries(e)},"generateShapeMap")();function a$(e){return e in Y2}n(a$,"isValidShape");var xu=n(({flowchart:e})=>{let t=e?.subGraphTitleMargin?.top??0,r=e?.subGraphTitleMargin?.bottom??0;return{subGraphTitleTopMargin:t,subGraphTitleBottomMargin:r,subGraphTitleTotalMargin:t+r}},"getSubGraphTitleMargins"),tl=new Map;async function V2(e,t,r){let i,a;t.shape==="rect"&&(t.rx&&t.ry?t.shape="roundedRect":t.shape="squareRect");let o=t.shape?Y2[t.shape]:void 0;if(!o)throw new Error(`No such shape: ${t.shape}. Please check your syntax.`);if(t.link){let s;r.config.securityLevel==="sandbox"?s="_top":t.linkTarget&&(s=t.linkTarget||"_blank"),i=e.insert("svg:a").attr("xlink:href",t.link).attr("target",s??null),a=await o(i,t,r)}else a=await o(e,t,r),i=a;return i.attr("data-look",oe(t.look)),t.tooltip&&a.attr("title",t.tooltip),tl.set(t.id,i),t.haveCallback&&i.attr("class",i.attr("class")+" clickable"),i}n(V2,"insertNode");var DF=n((e,t)=>{tl.set(t.id,e)},"setNodeElem"),qF=n(()=>{tl.clear()},"clear"),PF=n(e=>{let t=tl.get(e.id);et.trace("Transforming node",e.diff,e,"translate("+(e.x-e.width/2-5)+", "+e.width/2+")");let r=8,i=e.diff||0;return e.clusterNode?t.attr("transform","translate("+(e.x+i-e.width/2)+", "+(e.y-e.height/2-r)+")"):t.attr("transform","translate("+e.x+", "+e.y+")"),i},"positionNode"),Va=n((e,t)=>{if(t)return"translate("+-e.width/2+", "+-e.height/2+")";let r=e.x??0,i=e.y??0;return"translate("+-(r+e.width/2)+", "+-(i+e.height/2)+")"},"computeLabelTransform"),we={aggregation:17.25,extension:17.25,composition:17.25,dependency:6,lollipop:13.5,arrow_point:4,arrow_barb:0,arrow_barb_neo:5.5},ig={arrow_point:4,arrow_cross:12.5,arrow_circle:12.5};function ao(e,t){if(e===void 0||t===void 0)return{angle:0,deltaX:0,deltaY:0};e=Xt(e),t=Xt(t);let[r,i]=[e.x,e.y],[a,o]=[t.x,t.y],s=a-r,l=o-i;return{angle:Math.atan(l/s),deltaX:s,deltaY:l}}n(ao,"calculateDeltaAndAngle");var Xt=n(e=>Array.isArray(e)?{x:e[0],y:e[1]}:e,"pointTransformer"),o$=n(e=>({x:n(function(t,r,i){let a=0,o=Xt(i[0]).x<Xt(i[i.length-1]).x?"left":"right";if(r===0&&Object.hasOwn(we,e.arrowTypeStart)){let{angle:g,deltaX:y}=ao(i[0],i[1]);a=we[e.arrowTypeStart]*Math.cos(g)*(y>=0?1:-1)}else if(r===i.length-1&&Object.hasOwn(we,e.arrowTypeEnd)){let{angle:g,deltaX:y}=ao(i[i.length-1],i[i.length-2]);a=we[e.arrowTypeEnd]*Math.cos(g)*(y>=0?1:-1)}let s=Math.abs(Xt(t).x-Xt(i[i.length-1]).x),l=Math.abs(Xt(t).y-Xt(i[i.length-1]).y),d=Math.abs(Xt(t).x-Xt(i[0]).x),c=Math.abs(Xt(t).y-Xt(i[0]).y),h=we[e.arrowTypeStart],u=we[e.arrowTypeEnd],p=1;if(s<u&&s>0&&l<u){let g=u+p-s;g*=o==="right"?-1:1,a-=g}if(d<h&&d>0&&c<h){let g=h+p-d;g*=o==="right"?-1:1,a+=g}return Xt(t).x+a},"x"),y:n(function(t,r,i){let a=0,o=Xt(i[0]).y<Xt(i[i.length-1]).y?"down":"up";if(r===0&&Object.hasOwn(we,e.arrowTypeStart)){let{angle:g,deltaY:y}=ao(i[0],i[1]);a=we[e.arrowTypeStart]*Math.abs(Math.sin(g))*(y>=0?1:-1)}else if(r===i.length-1&&Object.hasOwn(we,e.arrowTypeEnd)){let{angle:g,deltaY:y}=ao(i[i.length-1],i[i.length-2]);a=we[e.arrowTypeEnd]*Math.abs(Math.sin(g))*(y>=0?1:-1)}let s=Math.abs(Xt(t).y-Xt(i[i.length-1]).y),l=Math.abs(Xt(t).x-Xt(i[i.length-1]).x),d=Math.abs(Xt(t).y-Xt(i[0]).y),c=Math.abs(Xt(t).x-Xt(i[0]).x),h=we[e.arrowTypeStart],u=we[e.arrowTypeEnd],p=1;if(s<u&&s>0&&l<u){let g=u+p-s;g*=o==="up"?-1:1,a-=g}if(d<h&&d>0&&c<h){let g=h+p-d;g*=o==="up"?-1:1,a+=g}return Xt(t).y+a},"y")}),"getLineFunctionsWithOffset"),n$=n((e,t,r,i,a,o=!1,s)=>{t.arrowTypeStart&&ag(e,"start",t.arrowTypeStart,r,i,a,o,s),t.arrowTypeEnd&&ag(e,"end",t.arrowTypeEnd,r,i,a,o,s)},"addEdgeMarkers"),s$={arrow_cross:{type:"cross",fill:!1},arrow_point:{type:"point",fill:!0},arrow_barb:{type:"barb",fill:!0},arrow_barb_neo:{type:"barb",fill:!0},arrow_circle:{type:"circle",fill:!1},aggregation:{type:"aggregation",fill:!1},extension:{type:"extension",fill:!1},composition:{type:"composition",fill:!0},dependency:{type:"dependency",fill:!0},lollipop:{type:"lollipop",fill:!1},only_one:{type:"onlyOne",fill:!1},zero_or_one:{type:"zeroOrOne",fill:!1},one_or_more:{type:"oneOrMore",fill:!1},zero_or_more:{type:"zeroOrMore",fill:!1},requirement_arrow:{type:"requirement_arrow",fill:!1},requirement_contains:{type:"requirement_contains",fill:!1}},l$=["cross","point","circle","lollipop","aggregation","extension","composition","dependency","barb"],ag=n((e,t,r,i,a,o,s=!1,l)=>{if(!r||r==="none")return;let d=s$[r],c=d&&l$.includes(d.type);if(!d){et.warn(`Unknown arrow type: ${r}`);return}let h=`${a}_${o}-${d.type}${t==="start"?"Start":"End"}${s&&c?"-margin":""}`;if(l&&l.trim()!==""){let u=`${h}_${l.replace(/[^\dA-Za-z]/g,"_")}`;if(!document.getElementById(u)){let p=document.getElementById(h);if(p){let g=p.cloneNode(!0);g.id=u,g.querySelectorAll("path, circle, line").forEach(y=>{y.setAttribute("stroke",l),d.fill&&y.setAttribute("fill",l)}),p.parentNode?.appendChild(g)}}e.attr(`marker-${t}`,`url(${i}#${u})`)}else e.attr(`marker-${t}`,`url(${i}#${h})`)},"addEdgeMarker"),h$=n(e=>typeof e=="string"?e:Pt()?.flowchart?.curve,"resolveEdgeCurveType"),ks=new Map,pe=new Map,RF=n(()=>{ks.clear(),pe.clear()},"clear"),NF=n(e=>!!(e.label||e.startLabelLeft||e.startLabelRight||e.endLabelLeft||e.endLabelRight),"hasEdgeLabel"),Ga=n(e=>e?typeof e=="string"?e:e.reduce((t,r)=>t+";"+r,""):"","getLabelStyles"),c$=n(async(e,t)=>{let r=Pt(),i=ve(r),{labelStyles:a}=yt(t);t.labelStyle=a;let o=e.insert("g").attr("class","edgeLabel"),s=o.insert("g").attr("class","label").attr("data-id",t.id),l=t.labelType==="markdown",d=await tr(e,t.label,{style:Ga(t.labelStyle),useHtmlLabels:i,addSvgBackgroun
vendor: 4,107 bytes, lines 259-262
259d:!0,isNode:!1,markdown:l,width:void 0},r);s.node().appendChild(d),et.info("abc82",t,t.labelType);let c,h;if(i){let p=d.children[0],g=At(d);c=await yi.measure(()=>p.getBoundingClientRect()),h=c,g.attr("width",c.width),g.attr("height",c.height)}else{let p=At(d).select("text").node();await yi.measure(()=>{c=d.getBBox(),p&&typeof p.getBBox=="function"?h=p.getBBox():h=c})}s.attr("transform",Va(h,i)),ks.set(t.id,o),t.width=c.width,t.height=c.height;let u;if(t.startLabelLeft){let p=e.insert("g").attr("class","edgeTerminals"),g=p.insert("g").attr("class","inner"),y=await zr(g,t.startLabelLeft,Ga(t.labelStyle)||"",!1,!1);u=y;let m=y.getBBox();if(i){let x=y.children[0],C=At(y);m=x.getBoundingClientRect(),C.attr("width",m.width),C.attr("height",m.height)}g.attr("transform",Va(m,i)),pe.get(t.id)||pe.set(t.id,{}),pe.get(t.id).startLeft=p,oo(u,t.startLabelLeft)}if(t.startLabelRight){let p=e.insert("g").attr("class","edgeTerminals"),g=p.insert("g").attr("class","inner"),y=await zr(g,t.startLabelRight,Ga(t.labelStyle)||"",!1,!1);u=y;let m=y.getBBox();if(i){let x=y.children[0],C=At(y);m=x.getBoundingClientRect(),C.attr("width",m.width),C.attr("height",m.height)}g.attr("transform",Va(m,i)),pe.get(t.id)||pe.set(t.id,{}),pe.get(t.id).startRight=p,oo(u,t.startLabelRight)}if(t.endLabelLeft){let p=e.insert("g").attr("class","edgeTerminals"),g=p.insert("g").attr("class","inner"),y=await zr(p,t.endLabelLeft,Ga(t.labelStyle)||"",!1,!1);u=y;let m=y.getBBox();if(i){let x=y.children[0],C=At(y);m=x.getBoundingClientRect(),C.attr("width",m.width),C.attr("height",m.height)}g.attr("transform",Va(m,i)),pe.get(t.id)||pe.set(t.id,{}),pe.get(t.id).endLeft=p,oo(u,t.endLabelLeft)}if(t.endLabelRight){let p=e.insert("g").attr("class","edgeTerminals"),g=p.insert("g").attr("class","inner"),y=await zr(p,t.endLabelRight,Ga(t.labelStyle)||"",!1,!1);u=y;let m=y.getBBox();if(i){let x=y.children[0],C=At(y);m=x.getBoundingClientRect(),C.attr("width",m.width),C.attr("height",m.height)}g.attr("transform",Va(m,i)),pe.get(t.id)||pe.set(t.id,{}),pe.get(t.id).endRight=p,oo(u,t.endLabelRight)}return d},"insertEdgeLabel");function oo(e,t){ve(Pt())&&e&&(e.style.width=t.length*9+"px",e.style.height="12px")}n(oo,"setTerminalWidth");var d$=n((e,t)=>{et.debug("Moving label abc88 ",e.id,e.label,ks.get(e.id),t);let r=t.updatedPath?t.updatedPath:t.originalPath,{subGraphTitleTotalMargin:i}=xu(Pt());if(e.label){let a=ks.get(e.id),o=e.x,s=e.y;if(r){let l=Xe.calcLabelPosition(r);et.debug("Moving label "+e.label+" from (",o,",",s,") to (",l.x,",",l.y,") abc88"),t.updatedPath&&(o=l.x,s=l.y)}a.attr("transform",`translate(${o}, ${s+i/2})`)}if(e.startLabelLeft){let a=pe.get(e.id).startLeft,o=e.x,s=e.y;if(r){let l=Xe.calcTerminalLabelPosition(e.arrowTypeStart?10:0,"start_left",r);o=l.x,s=l.y}a.attr("transform",`translate(${o}, ${s})`)}if(e.startLabelRight){let a=pe.get(e.id).startRight,o=e.x,s=e.y;if(r){let l=Xe.calcTerminalLabelPosition(e.arrowTypeStart?10:0,"start_right",r);o=l.x,s=l.y}a.attr("transform",`translate(${o}, ${s})`)}if(e.endLabelLeft){let a=pe.get(e.id).endLeft,o=e.x,s=e.y;if(r){let l=Xe.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,"end_left",r);o=l.x,s=l.y}a.attr("transform",`translate(${o}, ${s})`)}if(e.endLabelRight){let a=pe.get(e.id).endRight,o=e.x,s=e.y;if(r){let l=Xe.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,"end_right",r);o=l.x,s=l.y}a.attr("transform",`translate(${o}, ${s})`)}},"positionEdgeLabel"),u$=n((e,t)=>{if(!e?.isLabelEdge||!e?.id?.endsWith("-to-label")||!Array.isArray(t)||t.length!==2)return t;let[r,i]=t,a=Math.abs(i.x-r.x),o=Math.abs(i.y-r.y);return a<.001||o<.001?t:o>=a?[r,{x:r.x,y:i.y},i]:[r,{x:i.x,y:r.y},i]},"orthogonalizeToLabelClippedPoints"),p$=n((e,t)=>{let r=e.x,i=e.y,a=Math.abs(t.x-r),o=Math.abs(t.y-i),s=e.width/2,l=e.height/2;return a>=s||o>=l},"outsideNode"),g$=n((e,t,r)=>{et.debug(`intersection calc abc89: 260 outsidePoint: ${JSON.stringify(t)} 261 insidePoint : ${JSON.stringify(r)} 262 node : x:${e.x} y:${e.y} w:${e.width} h:${e.height}`);let i=e.x,a=e.y,o=Math.abs(i-r.x),s=e.width/2,l=r.x<t.x?s-o:s+o,d=e.height/2,c=Math.abs(t.y-r.y),h=Math.abs(t.x-r.x);
vendor: 5,064 bytes, line 262
262if(Math.abs(a-t.y)*s>Math.abs(i-t.x)*d){let u=r.y<t.y?t.y-d-a:a-d-t.y;l=h*u/c;let p={x:r.x<t.x?r.x+l:r.x-h+l,y:r.y<t.y?r.y+c-u:r.y-c+u};return l===0&&(p.x=t.x,p.y=t.y),h===0&&(p.x=t.x),c===0&&(p.y=t.y),et.debug(`abc89 top/bottom calc, Q ${c}, q ${u}, R ${h}, r ${l}`,p),p}else{r.x<t.x?l=t.x-s-i:l=i-s-t.x;let u=c*l/h,p=r.x<t.x?r.x+h-l:r.x-h+l,g=r.y<t.y?r.y+u:r.y-u;return et.debug(`sides calc abc89, Q ${c}, q ${u}, R ${h}, r ${l}`,{_x:p,_y:g}),l===0&&(p=t.x,g=t.y),h===0&&(p=t.x),c===0&&(g=t.y),{x:p,y:g}}},"intersection"),og=n((e,t)=>{et.warn("abc88 cutPathAtIntersect",e,t);let r=[],i=e[0],a=!1;return e.forEach(o=>{if(et.info("abc88 checking point",o,t),!p$(t,o)&&!a){let s=g$(t,i,o);et.debug("abc88 inside",o,i,s),et.debug("abc88 intersection",s,t);let l=!1;r.forEach(d=>{l=l||d.x===s.x&&d.y===s.y}),r.some(d=>d.x===s.x&&d.y===s.y)?et.warn("abc88 no intersect",s,r):r.push(s),a=!0}else et.warn("abc88 outside",o,i),i=o,a||r.push(o)}),et.debug("returning points",r),r},"cutPathAtIntersect");function G2(e){let t=[],r=[];for(let i=1;i<e.length-1;i++){let a=e[i-1],o=e[i],s=e[i+1];(a.x===o.x&&o.y===s.y&&Math.abs(o.x-s.x)>5&&Math.abs(o.y-a.y)>5||a.y===o.y&&o.x===s.x&&Math.abs(o.x-a.x)>5&&Math.abs(o.y-s.y)>5)&&(t.push(o),r.push(i))}return{cornerPoints:t,cornerPointPositions:r}}n(G2,"extractCornerPoints");var ng=n(function(e,t,r){let i=t.x-e.x,a=t.y-e.y,o=r/Math.sqrt(i*i+a*a);return{x:t.x-o*i,y:t.y-o*a}},"findAdjacentPoint"),f$=n(function(e){let{cornerPointPositions:t}=G2(e),r=[];for(let i=0;i<e.length;i++)if(t.includes(i)){let a=e[i-1],o=e[i+1],s=e[i],l=ng(a,s,5),d=ng(o,s,5),c=d.x-l.x,h=d.y-l.y;r.push(l);let u=Math.sqrt(2)*2,p={x:s.x,y:s.y};if(Math.abs(o.x-a.x)>10&&Math.abs(o.y-a.y)>=10){et.debug("Corner point fixing",Math.abs(o.x-a.x),Math.abs(o.y-a.y));let g=5;s.x===l.x?p={x:c<0?l.x-g+u:l.x+g-u,y:h<0?l.y-u:l.y+u}:p={x:c<0?l.x-u:l.x+u,y:h<0?l.y-g+u:l.y+g-u}}else et.debug("Corner point skipping fixing",Math.abs(o.x-a.x),Math.abs(o.y-a.y));r.push(p,d)}else r.push(e[i]);return r},"fixCorners"),y$=n((e,t,r)=>{let i=e-t-r,a=2,o=2,s=Math.floor(i/4);return`0 ${t} ${Array(Number.isFinite(s)?Math.max(0,s):0).fill(`${a} ${o}`).join(" ")} ${r}`},"generateDashArray"),m$=n(function(e,t,r,i,a,o,s,l=!1){if(!s)throw new Error(`insertEdge: missing diagramId for edge "${t.id}" â edge IDs require a diagram prefix for uniqueness`);let{handDrawnSeed:d,layout:c}=Pt(),h=t.points,u=!1,p=a;var g=o;let y=[];for(let R in t.cssCompiledStyles)Ck(R)||y.push(t.cssCompiledStyles[R]);if(c==="swimlane"){if(g.intersect&&p.intersect&&Array.isArray(h)&&h.length>=2)if(h.length===2)h=[p.intersect(h[0]),g.intersect(h[1])];else{let R=h.slice(1,-1),rt=R[0],X=R[R.length-1],xt=.5,wt=Math.abs(h[h.length-1].x-X.x)<xt&&Math.abs(h[h.length-1].y-X.y)<xt,_t=p.intersect(rt),$t=wt?X:g.intersect(X),Ct=Math.abs($t.x-X.x)<xt&&Math.abs($t.y-X.y)<xt,ut=Math.abs(_t.x-rt.x)<xt&&Math.abs(_t.y-rt.y)<xt?[]:[_t],bt=Ct?[]:[$t];h=[...ut,...R,...bt]}h=u$(t,h)}else g.intersect&&p.intersect&&!l&&(h=h.slice(1,t.points.length-1),h.unshift(p.intersect(h[0])),h.push(g.intersect(h[h.length-1])));let m=btoa(JSON.stringify(h));t.toCluster&&(et.info("to cluster abc88",r.get(t.toCluster)),h=og(t.points,r.get(t.toCluster).node),u=!0),t.fromCluster&&(et.debug("from cluster abc88",r.get(t.fromCluster),JSON.stringify(h,null,2)),h=og(h.reverse(),r.get(t.fromCluster).node).reverse(),u=!0);let x=h.filter(R=>!Number.isNaN(R.y)),C=h$(t.curve);C!=="rounded"&&(x=f$(x));let k=Hi;switch(C){case"linear":k=Hi;break;case"basis":k=ts;break;case"cardinal":k=aC;break;case"bumpX":k=rd;break;case"bumpY":k=id;break;case"catmullRom":k=oC;break;case"monotoneX":k=pd;break;case"monotoneY":k=gd;break;case"natural":k=yd;break;case"step":k=md;break;case"stepAfter":k=Cd;break;case"stepBefore":k=xd;break;case"rounded":k=Hi;break;default:k=ts}let{x:w,y:S}=o$(t),B=Jx().x(w).y(S).curve(k),_;switch(t.thickness){case"normal":_="edge-thickness-normal";break;case"thick":_="edge-thickness-thick";break;case"invisible":_="edge-thickness-invisible";break;default:_="edge-thickness-normal"}switch(t.pattern){case"solid":_+=" edge-pattern-solid";break;case"dotted":_+=" edge-pattern-dotted";break;case"dashed":_+=" edge-pattern-dashed";break;default:_+=" edge-pattern-solid"}let $,I=C==="rounded"?X2(Z2(x,t),5):B(x),U=Array.isArray(t.style)?t.style:[t.style],V=U.find(R=>R?.startsWith("stroke:")),A="";t.animate&&(A="edge-animation-fast"),t.animation&&(A="edge-animation-"+t.animation);let W=!1;if(t.look==="handDrawn"){let R=pt.svg(e);Object.assign([],x);let rt=R.path(I,{roughness:.3,seed:d});_+=" transition",$=At(rt).select("path").attr("id",`${s}-${t.id}`).attr("class"," "+_+(t.classes?" "+t.classes:"")+(A?" "+A:"")).attr("style",U?U.reduce((xt,wt)=>xt+";"+wt,""):"");let X=$.attr("d");$.attr("d",X),e.node().appendChild($.node())}else{let R=y.join(";"),rt=U?U.reduce((Ct,ut)=>Ct+ut+";",""):"",X=(R?R+";"+rt+";":rt)+";"+(U?U.reduce((Ct,ut)=>Ct+";"+ut,""):"");$=e.append("path").attr("d",I).attr("id",`${s}-${t.id}`).attr("class"," "+_+(t.classes?" "+t.classes:"")+(A?" "+A:"")).attr("style",X),V=X.match(/stroke:([^;
vendor: 10,519 bytes, line 262
262]+)/)?.[1],W=t.animate===!0||!!t.animation||R.includes("animation");let xt=$.node(),wt=typeof xt.getTotalLength=="function"?xt.getTotalLength():0,_t=ig[t.arrowTypeStart]||0,$t=ig[t.arrowTypeEnd]||0;if(t.look==="neo"&&!W){let Ct=`stroke-dasharray: ${t.pattern==="dotted"||t.pattern==="dashed"?y$(wt,_t,$t):`0 ${_t} ${wt-_t-$t} ${$t}`}; stroke-dashoffset: 0;`;$.attr("style",Ct+$.attr("style"))}}$.attr("data-edge",!0),$.attr("data-et","edge"),$.attr("data-id",t.id),$.attr("data-points",m),$.attr("data-look",oe(t.look)),t.showPoints&&x.forEach(R=>{e.append("circle").style("stroke","red").style("fill","red").attr("r",1).attr("cx",R.x).attr("cy",R.y)});let O="";(Pt().flowchart.arrowMarkerAbsolute||Pt().state.arrowMarkerAbsolute)&&(O=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,O=O.replace(/\(/g,"\\(").replace(/\)/g,"\\)")),et.info("arrowTypeStart",t.arrowTypeStart),et.info("arrowTypeEnd",t.arrowTypeEnd);let F=!W&&t?.look==="neo";n$($,t,O,s,i,F,V);let M=Math.floor(h.length/2),L=h[M];Xe.isLabelCoordinateInPath(L,$.attr("d"))||(u=!0);let D={};return u&&(D.updatedPath=h),D.originalPath=t.points,D},"insertEdge");function X2(e,t){if(e.length<2)return"";let r="",i=e.length,a=1e-5;for(let o=0;o<i;o++){let s=e[o],l=e[o-1],d=e[o+1];if(o===0)r+=`M${s.x},${s.y}`;else if(o===i-1)r+=`L${s.x},${s.y}`;else{let c=s.x-l.x,h=s.y-l.y,u=d.x-s.x,p=d.y-s.y,g=Math.hypot(c,h),y=Math.hypot(u,p);if(g<a||y<a){r+=`L${s.x},${s.y}`;continue}let m=c/g,x=h/g,C=u/y,k=p/y,w=m*C+x*k,S=Math.acos(Math.max(-1,Math.min(1,w)));if(S<a||Math.abs(Math.PI-S)<a){r+=`L${s.x},${s.y}`;continue}let B=Math.min(t/Math.sin(S/2),g/2,y/2),_=s.x-m*B,$=s.y-x*B,I=s.x+C*B,U=s.y+k*B;r+=`L${_},${$}`,r+=`Q${s.x},${s.y} ${I},${U}`}}return r}n(X2,"generateRoundedPath");function sc(e,t){if(!e||!t)return{angle:0,deltaX:0,deltaY:0};let r=t.x-e.x,i=t.y-e.y;return{angle:Math.atan2(i,r),deltaX:r,deltaY:i}}n(sc,"calculateDeltaAndAngle");function Z2(e,t){let r=e.map(a=>({...a}));if(e.length>=2&&we[t.arrowTypeStart]){let a=we[t.arrowTypeStart],o=e[0],s=e[1],{angle:l}=sc(o,s),d=a*Math.cos(l),c=a*Math.sin(l);r[0].x=o.x+d,r[0].y=o.y+c}let i=e.length;if(i>=2&&we[t.arrowTypeEnd]){let a=we[t.arrowTypeEnd],o=e[i-1],s=e[i-2],{angle:l}=sc(s,o),d=a*Math.cos(l),c=a*Math.sin(l);r[i-1].x=o.x-d,r[i-1].y=o.y-c}return r}n(Z2,"applyMarkerOffsetsToPoints");var x$=n((e,t,r,i)=>{t.forEach(a=>{R$[a](e,r,i)})},"insertMarkers"),C$=n((e,t,r)=>{et.trace("Making markers for ",r),e.append("defs").append("marker").attr("id",r+"_"+t+"-extensionStart").attr("class","marker extension "+t).attr("refX",18).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 1,7 L18,13 V 1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-extensionEnd").attr("class","marker extension "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 1,1 V 13 L18,7 Z"),e.append("marker").attr("id",r+"_"+t+"-extensionStart-margin").attr("class","marker extension "+t).attr("refX",18).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").attr("viewBox","0 0 20 14").append("polygon").attr("points","10,7 18,13 18,1").style("stroke-width",2).style("stroke-dasharray","0"),e.append("defs").append("marker").attr("id",r+"_"+t+"-extensionEnd-margin").attr("class","marker extension "+t).attr("refX",9).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").attr("viewBox","0 0 20 14").append("polygon").attr("points","10,1 10,13 18,7").style("stroke-width",2).style("stroke-dasharray","0")},"extension"),b$=n((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-compositionStart").attr("class","marker composition "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-compositionEnd").attr("class","marker composition "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-compositionStart-margin").attr("class","marker composition "+t).attr("refX",15).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("viewBox","0 0 15 15").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-compositionEnd-margin").attr("class","marker composition "+t).attr("refX",3.5).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"composition"),k$=n((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-aggregationStart").attr("class","marker aggregation "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-aggregationEnd").attr("class","marker aggregation "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-aggregationStart-margin").attr("class","marker aggregation "+t).attr("refX",15).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",2).attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-aggregationEnd-margin").attr("class","marker aggregation "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",2).attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"aggregation"),w$=n((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-dependencyStart").attr("class","marker dependency "+t).attr("refX",6).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-dependencyEnd").attr("class","marker dependency "+t).attr("refX",13).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-dependencyStart-margin").attr("class","marker dependency "+t).attr("refX",4).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-dependencyEnd-margin").attr("class","marker dependency "+t).attr("refX",16).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},"dependency"),v$=n((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-lollipopStart").attr("class","marker lollipop "+t).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),e.append("defs").append("marker").attr("id",r+"_"+t+"-lollipopEnd").attr("class","marker lollipop "+t).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),e.append("defs").append("marker").attr("id",r+"_"+t+"-lollipopStart-margin").attr("class","marker lollipop "+t).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6).attr("stroke-width",2),e.append("defs").append("marker").attr("id",r+"_"+t+"-lollipopEnd-margin").attr("class","marker lollipop "+t).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6).attr("stroke-width",2)},"lollipop"),T$=n((e,t,r)=>{e.append("marker").attr("id",r+"_"+t+"-pointEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),e.append("marker").attr("id",r+"_"+t+"-pointStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",4.5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).attr("orient","auto").append("path").attr("d","M 0 5 L 10 10 L 10 0 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),e.append("marker").attr("id",r+"_"+t+"-pointEnd-margin").attr("class","marker "+t).attr("viewBox","0 0 11.5 14").attr("refX",11.5).attr("refY",7).attr("markerUnits","userSpaceOnUse").attr("markerWidth",10.5).attr("markerHeight",14).attr("orient","auto").append("path").attr("d","M 0 0 L 11.5 7 L 0 14 z").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0"),e.append("marker").attr("id",r+"_"+t+"-pointStart-margin").attr("class","marker "+t).attr("viewBox","0 0 11.5 14").attr("refX",1).attr("refY",7).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11.5).attr("markerHeight",14).attr("orient","auto").append("pol
262ygon").attr("points","0,7 11.5,14 11.5,0").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0")},"point"),S$=n((e,t,r)=>{e.append("marker").attr("id",r+"_"+t+"-circleEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",11).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),e.append("marker").attr("id",r+"_"+t+"-circleStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",-1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),e.append("marker").attr("id",r+"_"+t+"-circleEnd-margin").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refY",5).attr("refX",12.25).attr("markerUnits","userSpaceOnUse").attr("markerWidth",14).attr("markerHeight",14).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0"),e.append("marker").attr("id",r+"_"+t+"-circleStart-margin").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",-2).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",14).attr("markerHeight",14).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0")},"circle"),B$=n((e,t,r)=>{e.append("marker").attr("id",r+"_"+t+"-crossEnd").attr("class","marker cross "+t).attr("viewBox","0 0 11 11").attr("refX",12).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),e.append("marker").attr("id",r+"_"+t+"-crossStart").attr("class","marker cross "+t).attr("viewBox","0 0 11 11").attr("refX",-1).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),e.append("marker").attr("id",r+"_"+t+"-crossEnd-margin").attr("class","marker cross "+t).attr("viewBox","0 0 15 15").attr("refX",17.7).attr("refY",7.5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 1,1 L 14,14 M 1,14 L 14,1").attr("class","arrowMarkerPath").style("stroke-width",2.5),e.append("marker").attr("id",r+"_"+t+"-crossStart-margin").attr("class","marker cross "+t).attr("viewBox","0 0 15 15").attr("refX",-3.5).attr("refY",7.5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 1,1 L 14,14 M 1,14 L 14,1").attr("class","arrowMarkerPath").style("stroke-width",2.5).style("stroke-dasharray","1,0")},"cross"),_$=n((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},"barb"),$$=n((e,t,r)=>{let{themeVariables:i}=Jt(),{transitionColor:a}=i;e.append("defs").append("marker").attr("id",r+"_"+t+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","strokeWidth").attr("orient","auto").append("path").attr("d","M 19,7 L11,14 L13,7 L11,0 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-barbEnd-margin").attr("refX",17).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M 19,7 L11,14 L13,7 L11,0 Z").attr("fill",`${a}`)},"barbNeo"),L$=n((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-onlyOneStart").attr("class","marker onlyOne "+t).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("d","M9,0 L9,18 M15,0 L15,18"),e.append("defs").append("marker").attr("id",r+"_"+t+"-onlyOneEnd").attr("class","marker onlyOne "+t).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("d","M3,0 L3,18 M9,0 L9,18")},"only_one"),F$=n((e,t,r)=>{let i=e.append("defs").append("marker").attr("id",r+"_"+t+"-zeroOrOneStart").attr("class","marker zeroOrOne "+t).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");i.append("circle").attr("fill","white").attr("cx",21).attr("cy",9).attr("r",6),i.append("path").attr("d","M9,0 L9,18");let a=e.append("defs").append("marker").attr("id",r+"_"+t+"-zeroOrOneEnd").attr("class","marker zeroOrOne "+t).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");a.append("circle").attr("fill","white").attr("cx",9).attr("cy",9).attr("r",6),a.append("path").attr("d","M21,0 L21,18")},"zero_or_one"),M$=n((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-oneOrMoreStart").attr("class","marker oneOrMore "+t).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27"),e.append("defs").append("marker").attr("id",r+"_"+t+"-oneOrMoreEnd").attr("class","marker oneOrMore "+t).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18")},"one_or_more"),A$=n((e,t,r)=>{let i=e.append("defs").append("marker").attr("id",r+"_"+t+"-zeroOrMoreStart").attr("class","marker zeroOrMore "+t).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");i.append("circle").attr("fill","white").attr("cx",48).attr("cy",18).attr("r",6),i.append("path").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18");let a=e.append("defs").append("marker").attr("id",r+"_"+t+"-zeroOrMoreEnd").attr("class","marker zeroOrMore "+t).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");a.append("circle").attr("fill","white").attr("cx",9).attr("cy",18).attr("r",6),a.append("path").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18")},"zero_or_more"),E$=n((e,t,r)=>{let{themeVariables:i}=Jt(),{strokeWidth:a}=i;e.append("defs").append("marker").attr("id",r+"_"+t+"-onlyOneStart").attr("class","marker onlyOne "+t).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M9,0 L9,18 M15,0 L15,18").attr("stroke-width",`${a}`),e.append("defs").append("marker").attr("id",r+"_"+t+"-onlyOneEnd").attr("class","marker onlyOne "+t).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M3,0 L3,18 M9,0 L9,18").attr("stroke-width",`${a}`)},"only_one_neo"),O$=n((e,t,r)=>{let{themeVariables:i}=Jt(),{strokeWidth:a,mainBkg:o}=i,s=e.append("defs").append("marker").attr("id",r+"_"+t+"-zeroOrOneStart").attr("class","marker zeroOrOne "+t).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto").attr("markerUnits","userSpaceOnUse");
vendor: 4,486 bytes, lines 262-268
262s.append("circle").attr("fill",o??"white").attr("cx",21).attr("cy",9).attr("stroke-width",`${a}`).attr("r",6),s.append("path").attr("d","M9,0 L9,18").attr("stroke-width",`${a}`);let l=e.append("defs").append("marker").attr("id",r+"_"+t+"-zeroOrOneEnd").attr("class","marker zeroOrOne "+t).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("markerUnits","userSpaceOnUse").attr("orient","auto");l.append("circle").attr("fill",o??"white").attr("cx",9).attr("cy",9).attr("stroke-width",`${a}`).attr("r",6),l.append("path").attr("d","M21,0 L21,18").attr("stroke-width",`${a}`)},"zero_or_one_neo"),I$=n((e,t,r)=>{let{themeVariables:i}=Jt(),{strokeWidth:a}=i;e.append("defs").append("marker").attr("id",r+"_"+t+"-oneOrMoreStart").attr("class","marker oneOrMore "+t).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27").attr("stroke-width",`${a}`),e.append("defs").append("marker").attr("id",r+"_"+t+"-oneOrMoreEnd").attr("class","marker oneOrMore "+t).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18").attr("stroke-width",`${a}`)},"one_or_more_neo"),D$=n((e,t,r)=>{let{themeVariables:i}=Jt(),{strokeWidth:a,mainBkg:o}=i,s=e.append("defs").append("marker").attr("id",r+"_"+t+"-zeroOrMoreStart").attr("class","marker zeroOrMore "+t).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("markerUnits","userSpaceOnUse").attr("orient","auto");s.append("circle").attr("fill",o??"white").attr("cx",45.5).attr("cy",18).attr("r",6).attr("stroke-width",`${a}`),s.append("path").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18").attr("stroke-width",`${a}`);let l=e.append("defs").append("marker").attr("id",r+"_"+t+"-zeroOrMoreEnd").attr("class","marker zeroOrMore "+t).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto").attr("markerUnits","userSpaceOnUse");l.append("circle").attr("fill",o??"white").attr("cx",11).attr("cy",18).attr("r",6).attr("stroke-width",`${a}`),l.append("path").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18").attr("stroke-width",`${a}`)},"zero_or_more_neo"),q$=n((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-requirement_arrowEnd").attr("refX",20).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("path").attr("d",`M0,0 263 L20,10 264 M20,10 265 L0,20`)},"requirement_arrow"),P$=n((e,t,r)=>{let{themeVariables:i}=Jt(),{strokeWidth:a}=i;e.append("defs").append("marker").attr("id",r+"_"+t+"-requirement_arrowEnd").attr("refX",20).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").attr("markerUnits","userSpaceOnUse").attr("stroke-width",`${a}`).attr("viewBox","0 0 25 20").append("path").attr("d",`M0,0 266 L20,10 267 M20,10 268 L0,20`).attr("stroke-linejoin","miter")},"requirement_arrow_neo"),R$={extension:C$,composition:b$,aggregation:k$,dependency:w$,lollipop:v$,point:T$,circle:S$,cross:B$,barb:_$,barbNeo:$$,only_one:L$,zero_or_one:F$,one_or_more:M$,zero_or_more:A$,only_one_neo:E$,zero_or_one_neo:O$,one_or_more_neo:I$,zero_or_more_neo:D$,requirement_arrow:q$,requirement_contains:n((e,t,r)=>{let i=e.append("defs").append("marker").attr("id",r+"_"+t+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("g");i.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),i.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),i.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10)},"requirement_contains"),requirement_arrow_neo:P$,requirement_contains_neo:n((e,t,r)=>{let{themeVariables:i}=Jt(),{strokeWidth:a}=i,o=e.append("defs").append("marker").attr("id",r+"_"+t+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("g");o.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),o.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),o.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10),o.selectAll("*").attr("stroke-width",`${a}`)}
vendor: 5,157 bytes, line 268
268,"requirement_contains_neo")},N$=x$,z$=n(async(e,t)=>{let r=Pt(),{themeVariables:i,handDrawnSeed:a}=r,{clusterBkg:o,clusterBorder:s}=i,l=s,{labelStyles:d,nodeStyles:c,borderStyles:h,backgroundStyles:u}=yt(t),p=e.insert("g").attr("class","cluster swimlane "+(t.cssClasses||"")).attr("id",t.id).attr("data-id",t.id).attr("data-et","cluster").attr("data-look",t.look),g=dr(r.flowchart.htmlLabels),y=t.direction==="LR",m=p.insert("g").attr("class","cluster-label swimlane-label"),x=await tr(m,t.label,{style:t.labelStyle,useHtmlLabels:g,isNode:!0,width:t.width}),C=x.getBBox();if(g){let O=x.children[0],F=At(x);C=O.getBoundingClientRect(),F.attr("width",C.width),F.attr("height",C.height)}let k=t.padding??0,w=t.width<=C.width+k?C.width+k:t.width;t.width<=C.width+k?t.diff=(w-t.width)/2-k:t.diff=-k;let S=t.height,B=t.y-S/2,_=t.y+S/2,$=t.x-w/2,I=t.swimlaneContentTop!==void 0?t.swimlaneContentTop:B+S/3,U=y?4:0,V=C.height+2*U,A,W;if(y){let O=Math.max(V,C.height+2*U),F=$+O,M=Math.max(0,w-O);if(t.look==="handDrawn"){let R=pt.svg(p),rt=dt(t,{roughness:.7,fill:o,stroke:l,fillWeight:3,seed:a}),X=dt(t,{roughness:.7,fill:"none",stroke:l,seed:a}),xt=R.rectangle($,B,O,S,rt);A=p.insert(()=>xt,":first-child");let wt=R.rectangle(F,B,M,S,X);W=p.insert(()=>wt,":first-child"),A.select("path:nth-child(2)").attr("style",h.join(";")),A.select("path").attr("style",u.join(";").replace("fill","stroke"))}else A=p.insert("rect",":first-child"),W=p.insert("rect",":first-child"),A.attr("class","swimlane-title").attr("style",c).attr("x",$).attr("y",B).attr("width",O).attr("height",S).attr("fill",o).attr("stroke",l),W.attr("class","swimlane-body").attr("style",c).attr("x",F).attr("y",B).attr("width",M).attr("height",S).attr("fill","none").attr("stroke",l);let L=$+O/2,D=t.y;m.attr("transform",`translate(${L}, ${D}) rotate(-90) translate(${-C.width/2}, ${-C.height/2})`)}else{let O=Math.max(0,I-B),F=Math.min(V,O),M=B+F,L=Math.max(0,_-M),D=t.x-w/2;if(t.look==="handDrawn"){let X=pt.svg(p),xt=dt(t,{roughness:.7,fill:o,stroke:l,fillWeight:3,seed:a}),wt=dt(t,{roughness:.7,fill:"none",stroke:l,seed:a}),_t=X.rectangle(D,B,w,F,xt);A=p.insert(()=>_t,":first-child");let $t=X.rectangle(D,M,w,L,wt);W=p.insert(()=>$t,":first-child"),A.select("path:nth-child(2)").attr("style",h.join(";")),A.select("path").attr("style",u.join(";").replace("fill","stroke"))}else A=p.insert("rect",":first-child"),W=p.insert("rect",":first-child"),A.attr("class","swimlane-title").attr("style",c).attr("x",D).attr("y",B).attr("width",w).attr("height",F).attr("fill",o).attr("stroke",l),W.attr("class","swimlane-body").attr("style",c).attr("x",D).attr("y",M).attr("width",w).attr("height",L).attr("fill","none").attr("stroke",l);let R=t.x-C.width/2,rt=B+(F-C.height)/2;m.attr("transform",`translate(${R}, ${rt})`)}if(et.trace("Swimlane data ",t,JSON.stringify(t)),d){let O=m.select("span");O&&O.attr("style",d)}return t.offsetX=0,t.width=w,t.height=S,t.offsetY=C.height-k/2,t.intersect=function(O){return ki(t,O)},{cluster:p,labelBBox:C}},"swimlane"),sg=n(async(e,t)=>{et.info("Creating subgraph rect for ",t.id,t);let r=Pt(),{themeVariables:i,handDrawnSeed:a}=r,{clusterBkg:o,clusterBorder:s}=i,{labelStyles:l,nodeStyles:d,borderStyles:c,backgroundStyles:h}=yt(t),u=e.insert("g").attr("class","cluster "+t.cssClasses).attr("id",t.domId).attr("data-look",t.look),p=ve(r),g=u.insert("g").attr("class","cluster-label "),y;t.labelType==="markdown"?y=await tr(g,t.label,{style:t.labelStyle,useHtmlLabels:p,isNode:!0,width:t.width}):y=await zr(g,t.label,t.labelStyle||"",!1,!0);let m=y.getBBox();if(ve(r)){let $=y.children[0],I=At(y);m=$.getBoundingClientRect(),I.attr("width",m.width),I.attr("height",m.height)}let x=t.width<=m.width+t.padding?m.width+t.padding:t.width;t.width<=m.width+t.padding?t.diff=(x-t.width)/2-t.padding:t.diff=-t.padding;let C=t.height,k=t.x-x/2,w=t.y-C/2;et.trace("Data ",t,JSON.stringify(t));let S;if(t.look==="handDrawn"){let $=pt.svg(u),I=dt(t,{roughness:.7,fill:o,stroke:s,fillWeight:3,seed:a}),U=$.path(je(k,w,x,C,0),I);S=u.insert(()=>(et.debug("Rough node insert CXC",U),U),":first-child"),S.select("path:nth-child(2)").attr("style",c.join(";")),S.select("path").attr("style",h.join(";").replace("fill","stroke"))}else S=u.insert("rect",":first-child"),S.attr("style",d).attr("rx",t.rx).attr("ry",t.ry).attr("x",k).attr("y",w).attr("width",x).attr("height",C);let{subGraphTitleTopMargin:B}=xu(r);if(g.attr("transform",`translate(${t.x-m.width/2}, ${t.y-t.height/2+B})`),l){let $=g.select("span");$&&$.attr("style",l)}let _=S.node().getBBox();return t.offsetX=0,t.width=_.width,t.height=_.height,t.offsetY=m.height-t.padding/2,t.intersect=function($){return ki(t,$)},{cluster:u,labelBBox:m}},"rect"),W$=n((e,t)=>{let r=e.insert("g").attr("class","note-cluster").attr("id",t.domId),i=r.insert("rect",":first-child"),a=0*t.padding,o=a/2;i.attr("rx",t.rx).attr("ry",t.ry).attr("x",t.x-t.width/2-o).attr("y",t.y-t.height/2-o).attr("width",t.width+a).attr("height",t.height+a).attr("fill","none");let s=i.node().getBBox();return t.width=s.width,t.height=s.height,t.intersect=function(l){return ki(t,l)},{cluster:r,labelBBox:{width:0,height:0}}},"noteGroup"),j$=n(async(e,t)=>
vendor: 4,068 bytes, line 268
268{let r=Pt(),{themeVariables:i,handDrawnSeed:a}=r,{altBackground:o,compositeBackground:s,compositeTitleBackground:l,nodeBorder:d}=i,c=e.insert("g").attr("class",t.cssClasses).attr("id",t.domId).attr("data-id",t.id).attr("data-look",t.look),h=c.insert("g",":first-child"),u=c.insert("g").attr("class","cluster-label"),p=c.append("rect"),g=await zr(u,t.label,t.labelStyle,void 0,!0),y=g.getBBox();if(ve(r)){let I=g.children[0],U=At(g);y=I.getBoundingClientRect(),U.attr("width",y.width),U.attr("height",y.height)}let m=0*t.padding,x=m/2,C=(t.width<=y.width+t.padding?y.width+t.padding:t.width)+m;t.width<=y.width+t.padding?t.diff=(C-t.width)/2-t.padding:t.diff=-t.padding;let k=t.height+m,w=t.height+m-y.height-6,S=t.x-C/2,B=t.y-k/2;t.width=C;let _=t.y-t.height/2-x+y.height+2,$;if(t.look==="handDrawn"){let I=t.cssClasses.includes("statediagram-cluster-alt"),U=pt.svg(c),V=t.rx||t.ry?U.path(je(S,B,C,k,10),{roughness:.7,fill:l,fillStyle:"solid",stroke:d,seed:a}):U.rectangle(S,B,C,k,{seed:a});$=c.insert(()=>V,":first-child");let A=U.rectangle(S,_,C,w,{fill:I?o:s,fillStyle:I?"hachure":"solid",stroke:d,seed:a});$=c.insert(()=>V,":first-child"),p=c.insert(()=>A)}else $=h.insert("rect",":first-child"),$.attr("class","outer").attr("x",S).attr("y",B).attr("width",C).attr("height",k).attr("data-look",t.look),p.attr("class","inner").attr("x",S).attr("y",_).attr("width",C).attr("height",w);return u.attr("transform",`translate(${t.x-y.width/2}, ${B+1-(ve(r)?0:3)})`),t.height=$.node().getBBox().height,t.offsetX=0,t.offsetY=y.height-t.padding/2,t.labelBBox=y,t.intersect=function(I){return ki(t,I)},{cluster:c,labelBBox:y}},"roundedWithTitle"),H$=n(async(e,t)=>{et.info("Creating subgraph rect for ",t.id,t);let r=Pt(),{themeVariables:i,handDrawnSeed:a}=r,{clusterBkg:o,clusterBorder:s}=i,{labelStyles:l,nodeStyles:d,borderStyles:c,backgroundStyles:h}=yt(t),u=e.insert("g").attr("class","cluster "+t.cssClasses).attr("id",t.domId).attr("data-look",t.look),p=ve(r),g=u.insert("g").attr("class","cluster-label "),y=await tr(g,t.label,{style:t.labelStyle,useHtmlLabels:p,isNode:!0,width:t.width}),m=y.getBBox();if(ve(r)){let $=y.children[0],I=At(y);m=$.getBoundingClientRect(),I.attr("width",m.width),I.attr("height",m.height)}let x=t.width<=m.width+t.padding?m.width+t.padding:t.width;t.width<=m.width+t.padding?t.diff=(x-t.width)/2-t.padding:t.diff=-t.padding;let C=t.height,k=t.x-x/2,w=t.y-C/2;et.trace("Data ",t,JSON.stringify(t));let S;if(t.look==="handDrawn"){let $=pt.svg(u),I=dt(t,{roughness:.7,fill:o,stroke:s,fillWeight:4,seed:a}),U=$.path(je(k,w,x,C,t.rx),I);S=u.insert(()=>(et.debug("Rough node insert CXC",U),U),":first-child"),S.select("path:nth-child(2)").attr("style",c.join(";")),S.select("path").attr("style",h.join(";").replace("fill","stroke"))}else S=u.insert("rect",":first-child"),S.attr("style",d).attr("rx",t.rx).attr("ry",t.ry).attr("x",k).attr("y",w).attr("width",x).attr("height",C);let{subGraphTitleTopMargin:B}=xu(r);if(g.attr("transform",`translate(${t.x-m.width/2}, ${t.y-t.height/2+B})`),l){let $=g.select("span");$&&$.attr("style",l)}let _=S.node().getBBox();return t.offsetX=0,t.width=_.width,t.height=_.height,t.offsetY=m.height-t.padding/2,t.intersect=function($){return ki(t,$)},{cluster:u,labelBBox:m}},"kanbanSection"),U$={rect:sg,squareRect:sg,roundedWithTitle:j$,noteGroup:W$,divider:n((e,t)=>{let{themeVariables:r,handDrawnSeed:i}=Pt(),{nodeBorder:a}=r,o=e.insert("g").attr("class",t.cssClasses).attr("id",t.domId).attr("data-look",t.look),s=o.insert("g",":first-child"),l=0*t.padding,d=t.width+l;t.diff=-t.padding;let c=t.height+l,h=t.x-d/2,u=t.y-c/2;t.width=d;let p;if(t.look==="handDrawn"){let g=pt.svg(o).rectangle(h,u,d,c,{fill:"lightgrey",roughness:.5,strokeLineDash:[5],stroke:a,seed:i});p=o.insert(()=>g,":first-child")}else{p=s.insert("rect",":first-child");let g="outer";t.look,g="divider",p.attr("class",g).attr("x",h).attr("y",u).attr("width",d).attr("height",c).attr("data-look",t.look)}return t.height=p.node().getBBox().height,t.offsetX=0,t.offsetY=0,t.intersect=function(g){return ki(t,g)},{cluster:o,labelBBox:{}}}
vendor: 10,805 bytes, lines 268-274
268,"divider"),kanbanSection:H$,swimlane:z$},Q2=new Map,Y$=n(async(e,t)=>{let r=await U$[t.shape||"rect"](e,t);return Q2.set(t.id,r),r},"insertCluster"),zF=n(()=>{Q2=new Map},"clear"),V$={common:Qo,getConfig:Jt,insertCluster:Y$,insertEdge:m$,insertEdgeLabel:c$,insertMarkers:N$,insertNode:V2,interpolateToCurve:jd,labelHelper:Tt,log:et,positionEdgeLabel:d$},Ro={},J2=n(e=>{for(let t of e)Ro[t.name]=t},"registerLayoutLoaders");n(()=>{J2([{name:"dagre",loader:n(async()=>await Et(()=>import("./CSkVsLlQ.js"),__vite__mapDeps([4,5,6,7,1,2,3]),import.meta.url),"loader")},{name:"swimlane",loader:n(async()=>await Et(()=>import("./CuVMBNE8.js"),__vite__mapDeps([8,7,1,2,3,5]),import.meta.url),"loader")},{name:"cose-bilkent",loader:n(async()=>await Et(()=>import("./ZkEJUkwm.js"),__vite__mapDeps([9,10,1,2,3]),import.meta.url),"loader")}])},"registerDefaultLayoutLoaders")();var WF=n(async(e,t)=>{if(!(e.layoutAlgorithm in Ro))throw new Error(`Unknown layout algorithm: ${e.layoutAlgorithm}`);if(e.diagramId)for(let h of e.nodes){let u=h.domId||h.id;h.domId=`${e.diagramId}-${u}`}let r=Ro[e.layoutAlgorithm],i=await r.loader(),{theme:a,themeVariables:o}=e.config,{useGradient:s,gradientStart:l,gradientStop:d}=o,c=t.attr("id");if(t.append("defs").append("filter").attr("id",`${c}-drop-shadow`).attr("height","130%").attr("width","130%").append("feDropShadow").attr("dx","4").attr("dy","4").attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",`${a?.includes("dark")?"#FFFFFF":"#000000"}`),t.append("defs").append("filter").attr("id",`${c}-drop-shadow-small`).attr("height","150%").attr("width","150%").append("feDropShadow").attr("dx","2").attr("dy","2").attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",`${a?.includes("dark")?"#FFFFFF":"#000000"}`),s){let h=t.append("linearGradient").attr("id",t.attr("id")+"-gradient").attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");h.append("svg:stop").attr("offset","0%").attr("stop-color",l).attr("stop-opacity",1),h.append("svg:stop").attr("offset","100%").attr("stop-color",d).attr("stop-opacity",1)}return i.render(e,t,V$,{algorithm:r.algorithm})},"render"),jF=n((e="",{fallback:t="dagre"}={})=>{if(e in Ro)return e;if(t in Ro)return et.warn(`Layout algorithm ${e} is not registered. Using ${t} as fallback.`),t;throw new Error(`Both layout algorithms ${e} and ${t} are not registered.`)},"getRegisteredLayoutAlgorithm");function K2(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}n(K2,"getDefaultExportFromCjs");var xe={},Cn={},Ir={},lg;function Pa(){if(lg)return Ir;lg=1;function e(s){return typeof s>"u"||s===null}n(e,"isNothing");function t(s){return typeof s=="object"&&s!==null}n(t,"isObject");function r(s){return Array.isArray(s)?s:e(s)?[]:[s]}n(r,"toArray");function i(s,l){if(l){let d=Object.keys(l);for(let c=0,h=d.length;c<h;c+=1){let u=d[c];s[u]=l[u]}}return s}n(i,"extend");function a(s,l){let d="";for(let c=0;c<l;c+=1)d+=s;return d}n(a,"repeat");function o(s){return s===0&&Number.NEGATIVE_INFINITY===1/s}return n(o,"isNegativeZero"),Ir.isNothing=e,Ir.isObject=t,Ir.toArray=r,Ir.repeat=a,Ir.isNegativeZero=o,Ir.extend=i,Ir}n(Pa,"requireCommon");var $l,hg;function Ra(){if(hg)return $l;hg=1;function e(r,i){let a="",o=r.reason||"(unknown reason)";return r.mark?(r.mark.name&&(a+='in "'+r.mark.name+'" '),a+="("+(r.mark.line+1)+":"+(r.mark.column+1)+")",!i&&r.mark.snippet&&(a+=` 269 270`+r.mark.snippet),o+" "+a):o}n(e,"formatError");function t(r,i){Error.call(this),this.name="YAMLException",this.reason=r,this.mark=i,this.message=e(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}return n(t,"YAMLException2"),t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t.prototype.toString=n(function(r){return this.name+": "+e(this,r)},"toString"),$l=t,$l}n(Ra,"requireException");var Ll,cg;function tw(){if(cg)return Ll;cg=1;let e=Pa();function t(a,o,s,l,d){let c="",h="",u=Math.floor(d/2)-1;return l-o>u&&(c=" ... ",o=l-u+c.length),s-l>u&&(h=" ...",s=l+u-h.length),{str:c+a.slice(o,s).replace(/\t/g,"â")+h,pos:l-o+c.length}}n(t,"getLine");function r(a,o){return e.repeat(" ",o-a.length)+a}n(r,"padStart");function i(a,o){if(o=Object.create(o||null),!a.buffer)return null;o.maxLength||(o.maxLength=79),typeof o.indent!="number"&&(o.indent=1),typeof o.linesBefore!="number"&&(o.linesBefore=3),typeof o.linesAfter!="number"&&(o.linesAfter=2);let s=/\r?\n|\r|\0/g,l=[0],d=[],c,h=-1;for(;c=s.exec(a.buffer);)d.push(c.index),l.push(c.index+c[0].length),a.position<=c.index&&h<0&&(h=l.length-2);h<0&&(h=l.length-1);let u="",p=Math.min(a.line+o.linesAfter,d.length).toString().length,g=o.maxLength-(o.indent+p+3);for(let m=1;m<=o.linesBefore&&!(h-m<0);m++){let x=t(a.buffer,l[h-m],d[h-m],a.position-(l[h]-l[h-m]),g);u=e.repeat(" ",o.indent)+r((a.line-m+1).toString(),p)+" | "+x.str+` 271`+u}let y=t(a.buffer,l[h],d[h],a.position,g);u+=e.repeat(" ",o.indent)+r((a.line+1).toString(),p)+" | "+y.str+` 272`,u+=e.repeat("-",o.indent+p+3+y.pos)+`^ 273`;for(let m=1;m<=o.linesAfter&&!(h+m>=d.length);m++){let x=t(a.buffer,l[h+m],d[h+m],a.position-(l[h]-l[h+m]),g);u+=e.repeat(" ",o.indent)+r((a.line+m+1).toString(),p)+" | "+x.str+` 274`}return u.replace(/\n$/,"")}return n(i,"makeSnippet"),Ll=i,Ll}n(tw,"requireSnippet");var Fl,dg;function Te(){if(dg)return Fl;dg=1;let e=Ra(),t=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],r=["scalar","sequence","mapping"];function i(o){let s={};return o!==null&&Object.keys(o).forEach(function(l){o[l].forEach(function(d){s[String(d)]=l})}),s}n(i,"compileStyleAliases");function a(o,s){if(s=s||{},Object.keys(s).forEach(function(l){if(t.indexOf(l)===-1)throw new e('Unknown option "'+l+'" is met in definition of "'+o+'" YAML type.')}),this.options=s,this.tag=o,this.kind=s.kind||null,this.resolve=s.resolve||function(){return!0},this.construct=s.construct||function(l){return l},this.instanceOf=s.instanceOf||null,this.predicate=s.predicate||null,this.represent=s.represent||null,this.representName=s.representName||null,this.defaultStyle=s.defaultStyle||null,this.multi=s.multi||!1,this.styleAliases=i(s.styleAliases||null),r.indexOf(this.kind)===-1)throw new e('Unknown kind "'+this.kind+'" is specified for "'+o+'" YAML type.')}return n(a,"Type2"),Fl=a,Fl}n(Te,"requireType");var Ml,ug;function Cu(){if(ug)return Ml;ug=1;let e=Ra(),t=Te();function r(o,s){let l=[];return o[s].forEach(function(d){let c=l.length;l.forEach(function(h,u){h.tag===d.tag&&h.kind===d.kind&&h.multi===d.multi&&(c=u)}),l[c]=d}),l}n(r,"compileList");function i(){let o={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function s(l){l.multi?(o.multi[l.kind].push(l),o.multi.fallback.push(l)):o[l.kind][l.tag]=o.fallback[l.tag]=l}n(s,"collectType");for(let l=0,d=arguments.length;l<d;l+=1)arguments[l].forEach(s);return o}n(i,"compileMap");function a(o){return this.extend(o)}return n(a,"Schema2"),a.prototype.extend=n(function(o){let s=[],l=[];if(o instanceof t)l.push(o);else if(Array.isArray(o))l=l.concat(o);else if(o&&(Array.isArray(o.implicit)||Array.isArray(o.explicit)))o.implicit&&(s=s.concat(o.implicit)),o.explicit&&(l=l.concat(o.explicit));else throw new e("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");s.forEach(function(c){if(!(c instanceof t))throw new e("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(c.loadKind&&c.loadKind!=="scalar")throw new e("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(c.multi)throw new e("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),l.forEach(function(c){if(!(c instanceof t))throw new e("Specified list of YAML types (or a single Type object) contains a non-Type object.")});let d=Object.create(a.prototype);return d.implicit=(this.implicit||[]).concat(s),d.explicit=(this.explicit||[]).concat(l),d.compiledImplicit=r(d,"implicit"),d.compiledExplicit=r(d,"explicit"),d.compiledTypeMap=i(d.compiledImplicit,d.compiledExplicit),d},"extend"),Ml=a,Ml}n(Cu,"requireSchema");var Al,pg;function bu(){return pg?Al:(pg=1,Al=new(Te())("tag:yaml.org,2002:str",{kind:"scalar",construct:n(function(e){return e!==null?e:""},"construct")}),Al)}n(bu,"requireStr");var El,gg;function ku(){return gg?El:(gg=1,El=new(Te())("tag:yaml.org,2002:seq",{kind:"sequence",construct:n(function(e){return e!==null?e:[]},"construct")}),El)}n(ku,"requireSeq");var Ol,fg;function wu(){return fg?Ol:(fg=1,Ol=new(Te())("tag:yaml.org,2002:map",{kind:"mapping",construct:n(function(e){return e!==null?e:{}},"construct")}),Ol)}n(wu,"requireMap");var Il,yg;function vu(){return yg?Il:(yg=1,Il=new(Cu())({explicit:[bu(),ku(),wu()]}),Il)}n(vu,"requireFailsafe");var Dl,mg;function Tu(){if(mg)return Dl;mg=1;let e=Te();function t(a){if(a===null)return!0;let o=a.length;return o===1&&a==="~"||o===4&&(a==="null"||a==="Null"||a==="NULL")}n(t,"resolveYamlNull");function r(){return null}n(r,"constructYamlNull");function i(a){return a===null}return n(i,"isNull"),Dl=new e("tag:yaml.org,2002:null",{kind:"scalar",resolve:t,construct:r,predicate:i,represent:{canonical:n(function(){return"~"},"canonical"),lowercase:n(function(){return"null"},"lowercase"),uppercase:n(function(){return"NULL"},"uppercase"),camelcase:n(function(){return"Null"},"camelcase"),empty:n(function(){return""},"empty")},defaultStyle:"lowercase"}),Dl}n(Tu,"require_null");var ql,xg;function Su(){if(xg)return ql;xg=1;let e=Te();function t(a){if(a===null)return!1;let o=a.length;return o===4&&(a==="true"||a==="True"||a==="TRUE")||o===5&&(a==="false"||a==="False"||a==="FALSE")}n(t,"resolveYamlBoolean");function r(a){return a==="true"||a==="True"||a==="TRUE"}n(r,"constructYamlBoolean");function i(a){return Object.prototype.toString.call(a)==="[object Boolean]"}return n(i,"isBoolean"),ql=new e("tag:yaml.org,2002:bool",{kind:"scalar",resolve:t,construct:r,predicate:i,represent:{lowercase:n(function(a){return a?"true":"false"},"lowercase"),uppercase:n(function(a){return a?"TRUE":"FALSE"},"uppercase"),camelcase:n(function(a){return a?"True":"False"},"camelcase")},defaultStyle:"lowercase"}),ql}n(Su,"requireBool");var Pl,Cg;function Bu(){if(Cg)return Pl;Cg=1;let e=Pa(),t=Te();function r(c){return c>=48&&c<=57||c>=65&&c<=70||c>=97&&c<=102}n(r,"isHexCode");function i(c){return c>=48&&c<=55}n(i,"isOctCode");function a(c){return c>=48&&c<=57}n(a,"isDecCode");function o(c){if(c===null)return!1;let h=c.length,u=0,p=!1;if(!h)return!1;let g=c[u];if((g==="-"||g==="+")&&(g=c[++u]),g==="0"){if(u+1===h)return!0;
vendor: 42,743 bytes, lines 274-299
274if(g=c[++u],g==="b"){for(u++;u<h;u++){if(g=c[u],g!=="0"&&g!=="1")return!1;p=!0}return p&&isFinite(s(c))}if(g==="x"){for(u++;u<h;u++){if(!r(c.charCodeAt(u)))return!1;p=!0}return p&&isFinite(s(c))}if(g==="o"){for(u++;u<h;u++){if(!i(c.charCodeAt(u)))return!1;p=!0}return p&&isFinite(s(c))}}for(;u<h;u++){if(!a(c.charCodeAt(u)))return!1;p=!0}return p?isFinite(s(c)):!1}n(o,"resolveYamlInteger");function s(c){let h=c,u=1,p=h[0];if((p==="-"||p==="+")&&(p==="-"&&(u=-1),h=h.slice(1),p=h[0]),h==="0")return 0;if(p==="0"){if(h[1]==="b")return u*parseInt(h.slice(2),2);if(h[1]==="x")return u*parseInt(h.slice(2),16);if(h[1]==="o")return u*parseInt(h.slice(2),8)}return u*parseInt(h,10)}n(s,"parseYamlInteger");function l(c){return s(c)}n(l,"constructYamlInteger");function d(c){return Object.prototype.toString.call(c)==="[object Number]"&&c%1===0&&!e.isNegativeZero(c)}return n(d,"isInteger"),Pl=new t("tag:yaml.org,2002:int",{kind:"scalar",resolve:o,construct:l,predicate:d,represent:{binary:n(function(c){return c>=0?"0b"+c.toString(2):"-0b"+c.toString(2).slice(1)},"binary"),octal:n(function(c){return c>=0?"0o"+c.toString(8):"-0o"+c.toString(8).slice(1)},"octal"),decimal:n(function(c){return c.toString(10)},"decimal"),hexadecimal:n(function(c){return c>=0?"0x"+c.toString(16).toUpperCase():"-0x"+c.toString(16).toUpperCase().slice(1)},"hexadecimal")},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),Pl}n(Bu,"requireInt");var Rl,bg;function _u(){if(bg)return Rl;bg=1;let e=Pa(),t=Te(),r=new RegExp("^(?:[-+]?(?:[0-9]+)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),i=new RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function a(c){return c===null||!r.test(c)?!1:isFinite(parseFloat(c,10))?!0:i.test(c)}n(a,"resolveYamlFloat");function o(c){let h=c.toLowerCase(),u=h[0]==="-"?-1:1;return"+-".indexOf(h[0])>=0&&(h=h.slice(1)),h===".inf"?u===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:h===".nan"?NaN:u*parseFloat(h,10)}n(o,"constructYamlFloat");let s=/^[-+]?[0-9]+e/;function l(c,h){if(isNaN(c))switch(h){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===c)switch(h){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===c)switch(h){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(e.isNegativeZero(c))return"-0.0";let u=c.toString(10);return s.test(u)?u.replace("e",".e"):u}n(l,"representYamlFloat");function d(c){return Object.prototype.toString.call(c)==="[object Number]"&&(c%1!==0||e.isNegativeZero(c))}return n(d,"isFloat"),Rl=new t("tag:yaml.org,2002:float",{kind:"scalar",resolve:a,construct:o,predicate:d,represent:l,defaultStyle:"lowercase"}),Rl}n(_u,"requireFloat");var kg,wg;function $u(){return wg||(wg=1,kg=vu().extend({implicit:[Tu(),Su(),Bu(),_u()]})),kg}n($u,"requireJson");var vg,Tg;function Lu(){return Tg||(Tg=1,vg=$u()),vg}n(Lu,"requireCore");var Nl,Sg;function Fu(){if(Sg)return Nl;Sg=1;let e=Te(),t=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),r=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function i(s){return s===null?!1:t.exec(s)!==null||r.exec(s)!==null}n(i,"resolveYamlTimestamp");function a(s){let l=0,d=null,c=t.exec(s);if(c===null&&(c=r.exec(s)),c===null)throw new Error("Date resolve error");let h=+c[1],u=+c[2]-1,p=+c[3];if(!c[4])return new Date(Date.UTC(h,u,p));let g=+c[4],y=+c[5],m=+c[6];if(c[7]){for(l=c[7].slice(0,3);l.length<3;)l+="0";l=+l}if(c[9]){let C=+c[10],k=+(c[11]||0);d=(C*60+k)*6e4,c[9]==="-"&&(d=-d)}let x=new Date(Date.UTC(h,u,p,g,y,m,l));return d&&x.setTime(x.getTime()-d),x}n(a,"constructYamlTimestamp");function o(s){return s.toISOString()}return n(o,"representYamlTimestamp"),Nl=new e("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:i,construct:a,instanceOf:Date,represent:o}),Nl}n(Fu,"requireTimestamp");var zl,Bg;function Mu(){if(Bg)return zl;Bg=1;let e=Te();function t(r){return r==="<<"||r===null}return n(t,"resolveYamlMerge"),zl=new e("tag:yaml.org,2002:merge",{kind:"scalar",resolve:t}),zl}n(Mu,"requireMerge");var Wl,_g;function Au(){if(_g)return Wl;_g=1;let e=Te(),t=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/= 275\r`;function r(s){if(s===null)return!1;let l=0,d=s.length,c=t;for(let h=0;h<d;h++){let u=c.indexOf(s.charAt(h));if(!(u>64)){if(u<0)return!1;l+=6}}return l%8===0}n(r,"resolveYamlBinary");function i(s){let l=s.replace(/[\r\n=]/g,""),d=l.length,c=t,h=0,u=[];for(let g=0;g<d;g++)g%4===0&&g&&(u.push(h>>16&255),u.push(h>>8&255),u.push(h&255)),h=h<<6|c.indexOf(l.charAt(g));let p=d%4*6;return p===0?(u.push(h>>16&255),u.push(h>>8&255),u.push(h&255)):p===18?(u.push(h>>10&255),u.push(h>>2&255)):p===12&&u.push(h>>4&255),new Uint8Array(u)}n(i,"constructYamlBinary");function a(s){let l="",d=0,c=s.length,h=t;for(let p=0;p<c;p++)p%3===0&&p&&(l+=h[d>>18&63],l+=h[d>>12&63],l+=h[d>>6&63],l+=h[d&63]),d=(d<<8)+s[p];let u=c%3;return u===0?(l+=h[d>>18&63],l+=h[d>>12&63],l+=h[d>>6&63],l+=h[d&63]):u===2?(l+=h[d>>10&63],l+=h[d>>4&63],l+=h[d<<2&63],l+=h[64]):u===1&&(l+=h[d>>2&63],l+=h[d<<4&63],l+=h[64],l+=h[64]),l}n(a,"representYamlBinary");function o(s){return Object.prototype.toString.call(s)==="[object Uint8Array]"}return n(o,"isBinary"),Wl=new e("tag:yaml.org,2002:binary",{kind:"scalar",resolve:r,construct:i,predicate:o,represent:a}),Wl}n(Au,"requireBinary");var jl,$g;function Eu(){if($g)return jl;$g=1;let e=Te(),t=Object.prototype.hasOwnProperty,r=Object.prototype.toString;function i(o){if(o===null)return!0;let s=[],l=o;for(let d=0,c=l.length;d<c;d+=1){let h=l[d],u=!1;if(r.call(h)!=="[object Object]")return!1;let p;for(p in h)if(t.call(h,p))if(!u)u=!0;else return!1;if(!u)return!1;if(s.indexOf(p)===-1)s.push(p);else return!1}return!0}n(i,"resolveYamlOmap");function a(o){return o!==null?o:[]}return n(a,"constructYamlOmap"),jl=new e("tag:yaml.org,2002:omap",{kind:"sequence",resolve:i,construct:a}),jl}n(Eu,"requireOmap");var Hl,Lg;function Ou(){if(Lg)return Hl;Lg=1;let e=Te(),t=Object.prototype.toString;function r(a){if(a===null)return!0;let o=a,s=new Array(o.length);for(let l=0,d=o.length;l<d;l+=1){let c=o[l];if(t.call(c)!=="[object Object]")return!1;let h=Object.keys(c);if(h.length!==1)return!1;s[l]=[h[0],c[h[0]]]}return!0}n(r,"resolveYamlPairs");function i(a){if(a===null)return[];let o=a,s=new Array(o.length);for(let l=0,d=o.length;l<d;l+=1){let c=o[l],h=Object.keys(c);s[l]=[h[0],c[h[0]]]}return s}return n(i,"constructYamlPairs"),Hl=new e("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:r,construct:i}),Hl}n(Ou,"requirePairs");var Ul,Fg;function Iu(){if(Fg)return Ul;Fg=1;let e=Te(),t=Object.prototype.hasOwnProperty;function r(a){if(a===null)return!0;let o=a;for(let s in o)if(t.call(o,s)&&o[s]!==null)return!1;return!0}n(r,"resolveYamlSet");function i(a){return a!==null?a:{}}return n(i,"constructYamlSet"),Ul=new e("tag:yaml.org,2002:set",{kind:"mapping",resolve:r,construct:i}),Ul}n(Iu,"requireSet");var Mg,Ag;function el(){return Ag||(Ag=1,Mg=Lu().extend({implicit:[Fu(),Mu()],explicit:[Au(),Eu(),Ou(),Iu()]})),Mg}n(el,"require_default");var Eg;function ew(){if(Eg)return Cn;Eg=1;let e=Pa(),t=Ra(),r=tw(),i=el(),a=Object.prototype.hasOwnProperty,o=1,s=2,l=3,d=4,c=1,h=2,u=3,p=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,g=/[\x85\u2028\u2029]/,y=/[,\[\]{}]/,m=/^(?:!|!!|![0-9A-Za-z-]+!)$/,x=/^(?:!|[^,\[\]{}])(?:%[0-9a-f]{2}|[0-9a-z\-#;/?:@&=+$,_.!~*'()\[\]])*$/i;function C(f){return Object.prototype.toString.call(f)}n(C,"_class");function k(f){return f===10||f===13}n(k,"isEol");function w(f){return f===9||f===32}n(w,"isWhiteSpace");function S(f){return f===9||f===32||f===10||f===13}n(S,"isWsOrEol");function B(f){return f===44||f===91||f===93||f===123||f===125}n(B,"isFlowIndicator");function _(f){if(f>=48&&f<=57)return f-48;let q=f|32;return q>=97&&q<=102?q-97+10:-1}n(_,"fromHexCode");function $(f){return f===120?2:f===117?4:f===85?8:0}n($,"escapedHexLen");function I(f){return f>=48&&f<=57?f-48:-1}n(I,"fromDecimalCode");function U(f){switch(f){case 48:return"\0";case 97:return"\x07";case 98:return"\b";case 116:return" ";case 9:return" ";case 110:return` 276`;case 118:return"\v";case 102:return"\f";case 114:return"\r";case 101:return"\x1B";case 32:return" ";case 34:return'"';case 47:return"/";case 92:return"\\";case 78:return"Â ";case 95:return"Â ";case 76:return"\u2028";case 80:return"\u2029";default:return""}}n(U,"simpleEscapeSequence");function V(f){return f<=65535?String.fromCharCode(f):String.fromCharCode((f-65536>>10)+55296,(f-65536&1023)+56320)}n(V,"charFromCodepoint");function A(f,q,j){q==="__proto__"?Object.defineProperty(f,q,{configurable:!0,enumerable:!0,writable:!0,value:j}):f[q]=j}n(A,"setProperty");let W=new Array(256),O=new Array(256);for(let f=0;f<256;f++)W[f]=U(f)?1:0,O[f]=U(f);function F(f,q){this.input=f,this.filename=q.filename||null,this.schema=q.schema||i,this.onWarning=q.onWarning||null,this.legacy=q.legacy||!1,this.json=q.json||!1,this.listener=q.listener||null,this.maxDepth=typeof q.maxDepth=="number"?q.maxDepth:100,this.maxTotalMergeKeys=typeof q.maxTotalMergeKeys=="number"?q.maxTotalMergeKeys:1e4,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=f.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.depth=0,this.totalMergeKeys=0,this.firstTabInLine=-1,this.documents=[],this.anchorMapTransactions=[]}n(F,"State");function M(f,q){let j={name:f.filename,buffer:f.input.slice(0,-1),position:f.position,line:f.line,column:f.position-f.lineStart};return j.snippet=r(j),new t(q,j)}n(M,"generateError");function L(f,q){throw M(f,q)}n(L,"throwError");function D(f,q){f.onWarning&&f.onWarning.call(null,M(f,q))}n(D,"throwWarning");function R(f,q,j){let J=f.anchorMapTransactions;if(J.length!==0){let H=J[J.length-1];a.call(H,q)||(H[q]={existed:a.call(f.anchorMap,q),value:f.anchorMap[q]})}f.anchorMap[q]=j}n(R,"storeAnchor");function rt(f){f.anchorMapTransactions.push(Object.create(null))}n(rt,"beginAnchorTransaction");function X(f){let q=f.anchorMapTransactions.pop(),j=f.anchorMapTransactions;if(j.length===0)return;let J=j[j.length-1],H=Object.keys(q);for(let nt=0,v=H.length;nt<v;nt+=1){let P=H[nt];a.call(J,P)||(J[P]=q[P])}}n(X,"commitAnchorTransaction");function xt(f){let q=f.anchorMapTransactions.pop(),j=Object.keys(q);for(let J=j.length-1;J>=0;J-=1){let H=q[j[J]];H.existed?f.anchorMap[j[J]]=H.value:delete f.anchorMap[j[J]]}}n(xt,"rollbackAnchorTransaction");function wt(f){return{position:f.position,line:f.line,lineStart:f.lineStart,lineIndent:f.lineIndent,firstTabInLine:f.firstTabInLine,tag:f.tag,anchor:f.anchor,kind:f.kind,result:f.result}}n(wt,"snapshotState");function _t(f,q){f.position=q.position,f.line=q.line,f.lineStart=q.lineStart,f.lineIndent=q.lineIndent,f.firstTabInLine=q.firstTabInLine,f.tag=q.tag,f.anchor=q.anchor,f.kind=q.kind,f.result=q.result}n(_t,"restoreState");let $t={YAML:n(function(f,q,j){f.version!==null&&L(f,"duplication of %YAML directive"),j.length!==1&&L(f,"YAML directive accepts exactly one argument");let J=/^([0-9]+)\.([0-9]+)$/.exec(j[0]);J===null&&L(f,"ill-formed argument of the YAML directive");let H=parseInt(J[1],10),nt=parseInt(J[2],10);H!==1&&L(f,"unacceptable YAML version of the document"),f.version=j[0],f.checkLineBreaks=nt<2,nt!==1&&nt!==2&&D(f,"unsupported YAML version of the document")},"handleYamlDirective"),TAG:n(function(f,q,j){let J;j.length!==2&&L(f,"TAG directive accepts exactly two arguments");let H=j[0];J=j[1],m.test(H)||L(f,"ill-formed tag handle (first argument) of the TAG directive"),a.call(f.tagMap,H)&&L(f,'there is a previously declared suffix for "'+H+'" tag handle'),x.test(J)||L(f,"ill-formed tag prefix (second argument) of the TAG directive");try{J=decodeURIComponent(J)}catch{L(f,"tag prefix is malformed: "+J)}f.tagMap[H]=J},"handleTagDirective")};function Ct(f,q,j,J){if(q<j){let H=f.input.slice(q,j);if(J)for(let nt=0,v=H.length;nt<v;nt+=1){let P=H.charCodeAt(nt);P===9||P>=32&&P<=1114111||L(f,"expected valid JSON character")}else p.test(H)&&L(f,"the stream contains non-printable characters");f.result+=H}}n(Ct,"captureSegment");function ut(f,q,j,J){e.isObject(j)||L(f,"cannot merge mappings; the provided source object is unacceptable");let H=Object.keys(j);for(let nt=0,v=H.length;nt<v;nt+=1){let P=H[nt];f.maxTotalMergeKeys!==-1&&++f.totalMergeKeys>f.maxTotalMergeKeys&&L(f,"merge keys exceeded maxTotalMergeKeys ("+f.maxTotalMergeKeys+")"),a.call(q,P)||(A(q,P,j[P]),J[P]=!0)}}n(ut,"mergeMappings");function bt(f,q,j,J,H,nt,v,P,at){if(Array.isArray(H)){H=Array.prototype.slice.call(H);for(let Z=0,Q=H.length;Z<Q;Z+=1)Array.isArray(H[Z])&&L(f,"nested arrays are not supported inside keys"),typeof H=="object"&&C(H[Z])==="[object Object]"&&(H[Z]="[object Object]")}if(typeof H=="object"&&C(H)==="[object Object]"&&(H="[object Object]"),H=String(H),q===null&&(q={}),J==="tag:yaml.org,2002:merge")if(Array.isArray(nt))for(let Z=0,Q=nt.length;Z<Q;Z+=1)ut(f,q,nt[Z],j);else ut(f,q,nt,j);else!f.json&&!a.call(j,H)&&a.call(q,H)&&(f.line=v||f.line,f.lineStart=P||f.lineStart,f.position=at||f.position,L(f,"duplicated mapping key")),A(q,H,nt),delete j[H];return q}n(bt,"storeMappingPair");function Dt(f){let q=f.input.charCodeAt(f.position);q===10?f.position++:q===13?(f.position++,f.input.charCodeAt(f.position)===10&&f.position++):L(f,"a line break is expected"),f.line+=1,f.lineStart=f.position,f.firstTabInLine=-1}n(Dt,"readLineBreak");function K(f,q,j){let J=0,H=f.input.charCodeAt(f.position);for(;H!==0;){for(;w(H);)H===9&&f.firstTabInLine===-1&&(f.firstTabInLine=f.position),H=f.input.charCodeAt(++f.position);if(q&&H===35)do H=f.input.charCodeAt(++f.position);while(H!==10&&H!==13&&H!==0);if(k(H))for(Dt(f),H=f.input.charCodeAt(f.position),J++,f.lineIndent=0;H===32;)f.lineIndent++,H=f.input.charCodeAt(++f.position);else break}return j!==-1&&J!==0&&f.lineIndent<j&&D(f,"deficient indentation"),J}n(K,"skipSeparationSpace");function st(f){let q=f.position,j=f.input.charCodeAt(q);return!!((j===45||j===46)&&j===f.input.charCodeAt(q+1)&&j===f.input.charCodeAt(q+2)&&(q+=3,j=f.input.charCodeAt(q),j===0||S(j)))}n(st,"testDocumentSeparator");function mt(f,q){q===1?f.result+=" ":q>1&&(f.result+=e.repeat(` 277`,q-1))}n(mt,"writeFoldedLines");function G(f,q,j){let J,H,nt,v,P,at,Z=f.kind,Q=f.result,ot=f.input.charCodeAt(f.position);if(S(ot)||B(ot)||ot===35||ot===38||ot===42||ot===33||ot===124||ot===62||ot===39||ot===34||ot===37||ot===64||ot===96)return!1;if(ot===63||ot===45){let it=f.input.charCodeAt(f.position+1);if(S(it)||j&&B(it))return!1}for(f.kind="scalar",f.result="",J=H=f.position,nt=!1;ot!==0;){if(ot===58){let it=f.input.charCodeAt(f.position+1);if(S(it)||j&&B(it))break}else if(ot===35){if(S(f.input.charCodeAt(f.position-1)))break}else{if(f.position===f.lineStart&&st(f)||j&&B(ot))break;if(k(ot))if(v=f.line,P=f.lineStart,at=f.lineIndent,K(f,!1,-1),f.lineIndent>=q){nt=!0,ot=f.input.charCodeAt(f.position);continue}else{f.position=H,f.line=v,f.lineStart=P,f.lineIndent=at;break}}nt&&(Ct(f,J,H,!1),mt(f,f.line-v),J=H=f.position,nt=!1),w(ot)||(H=f.position+1),ot=f.input.charCodeAt(++f.position)}return Ct(f,J,H,!1),f.result?!0:(f.kind=Z,f.result=Q,!1)}n(G,"readPlainScalar");function jt(f,q){let j,J,H=f.input.charCodeAt(f.position);if(H!==39)return!1;for(f.kind="scalar",f.result="",f.position++,j=J=f.position;(H=f.input.charCodeAt(f.position))!==0;)if(H===39)if(Ct(f,j,f.position,!0),H=f.input.charCodeAt(++f.position),H===39)j=f.position,f.position++,J=f.position;else return!0;else k(H)?(Ct(f,j,J,!0),mt(f,K(f,!1,q)),j=J=f.position):f.position===f.lineStart&&st(f)?L(f,"unexpected end of the document within a single quoted scalar"):(f.position++,w(H)||(J=f.position));L(f,"unexpected end of the stream within a single quoted scalar")}n(jt,"readSingleQuotedScalar");function Bt(f,q){let j,J,H,nt=f.input.charCodeAt(f.position);if(nt!==34)return!1;for(f.kind="scalar",f.result="",f.position++,j=J=f.position;(nt=f.input.charCodeAt(f.position))!==0;){if(nt===34)return Ct(f,j,f.position,!0),f.position++,!0;if(nt===92){if(Ct(f,j,f.position,!0),nt=f.input.charCodeAt(++f.position),k(nt))K(f,!1,q);else if(nt<256&&W[nt])f.result+=O[nt],f.position++;else if((H=$(nt))>0){let v=H,P=0;for(;v>0;v--)nt=f.input.charCodeAt(++f.position),(H=_(nt))>=0?P=(P<<4)+H:L(f,"expected hexadecimal character");f.result+=V(P),f.position++}else L(f,"unknown escape sequence");j=J=f.position}else k(nt)?(Ct(f,j,J,!0),mt(f,K(f,!1,q)),j=J=f.position):f.position===f.lineStart&&st(f)?L(f,"unexpected end of the document within a double quoted scalar"):(f.position++,w(nt)||(J=f.position))}L(f,"unexpected end of the stream within a double quoted scalar")}n(Bt,"readDoubleQuotedScalar");function Gt(f,q){let j=!0,J,H,nt,v=f.tag,P,at=f.anchor,Z,Q,ot,it,gt=Object.create(null),ct,kt,St,It=f.input.charCodeAt(f.position);if(It===91)Z=93,it=!1,P=[];else if(It===123)Z=125,it=!0,P={};else return!1;for(f.anchor!==null&&R(f,f.anchor,P),It=f.input.charCodeAt(++f.position);It!==0;){if(K(f,!0,q),It=f.input.charCodeAt(f.position),It===Z)return f.position++,f.tag=v,f.anchor=at,f.kind=it?"mapping":"sequence",f.result=P,!0;j?It===44&&L(f,"expected the node content, but found ','"):L(f,"missed comma between flow collection entries"),kt=ct=St=null,Q=ot=!1,It===63&&S(f.input.charCodeAt(f.position+1))&&(Q=ot=!0,f.position++,K(f,!0,q)),J=f.line,H=f.lineStart,nt=f.position,ie(f,q,o,!1,!0),kt=f.tag,ct=f.result,K(f,!0,q),It=f.input.charCodeAt(f.position),(ot||f.line===J)&&It===58&&(Q=!0,It=f.input.charCodeAt(++f.position),K(f,!0,q),ie(f,q,o,!1,!0),St=f.result),it?bt(f,P,gt,kt,ct,St,J,H,nt):Q?P.push(bt(f,null,gt,kt,ct,St,J,H,nt)):P.push(ct),K(f,!0,q),It=f.input.charCodeAt(f.position),It===44?(j=!0,It=f.input.charCodeAt(++f.position)):j=!1}L(f,"unexpected end of the stream within a flow collection")}n(Gt,"readFlowCollection");function Kt(f,q){let j,J=c,H=!1,nt=!1,v=q,P=0,at=!1,Z,Q=f.input.charCodeAt(f.position);if(Q===124)j=!1;else if(Q===62)j=!0;else return!1;for(f.kind="scalar",f.result="";Q!==0;)if(Q=f.input.charCodeAt(++f.position),Q===43||Q===45)c===J?J=Q===43?u:h:L(f,"repeat of a chomping mode identifier");else if((Z=I(Q))>=0)Z===0?L(f,"bad explicit indentation width of a block scalar; it cannot be less than one"):nt?L(f,"repeat of an indentation width identifier"):(v=q+Z-1,nt=!0);else break;if(w(Q)){do Q=f.input.charCodeAt(++f.position);while(w(Q));if(Q===35)do Q=f.input.charCodeAt(++f.position);while(!k(Q)&&Q!==0)}for(;Q!==0;){for(Dt(f),f.lineIndent=0,Q=f.input.charCodeAt(f.position);(!nt||f.lineIndent<v)&&Q===32;)f.lineIndent++,Q=f.input.charCodeAt(++f.position);if(!nt&&f.lineIndent>v&&(v=f.lineIndent),k(Q)){P++;continue}if(!nt&&v===0&&L(f,"missing indentation for block scalar"),f.lineIndent<v){J===u?f.result+=e.repeat(` 278`,H?1+P:P):J===c&&H&&(f.result+=` 279`);break}j?w(Q)?(at=!0,f.result+=e.repeat(` 280`,H?1+P:P)):at?(at=!1,f.result+=e.repeat(` 281`,P+1)):P===0?H&&(f.result+=" "):f.result+=e.repeat(` 282`,P):f.result+=e.repeat(` 283`,H?1+P:P),H=!0,nt=!0,P=0;let ot=f.position;for(;!k(Q)&&Q!==0;)Q=f.input.charCodeAt(++f.position);Ct(f,ot,f.position,!1)}return!0}n(Kt,"readBlockScalar");function Vt(f,q){let j=f.tag,J=f.anchor,H=[],nt=!1;if(f.firstTabInLine!==-1)return!1;f.anchor!==null&&R(f,f.anchor,H);let v=f.input.charCodeAt(f.position);for(;v!==0&&(f.firstTabInLine!==-1&&(f.position=f.firstTabInLine,L(f,"tab characters must not be used in indentation")),v===45)&&S(f.input.charCodeAt(f.position+1));){if(nt=!0,f.position++,K(f,!0,-1)&&f.lineIndent<=q){H.push(null),v=f.input.charCodeAt(f.position);continue}let P=f.line;if(ie(f,q,l,!1,!0),H.push(f.result),K(f,!0,-1),v=f.input.charCodeAt(f.position),(f.line===P||f.lineIndent>q)&&v!==0)L(f,"bad indentation of a sequence entry");else if(f.lineIndent<q)break}return nt?(f.tag=j,f.anchor=J,f.kind="sequence",f.result=H,!0):!1}n(Vt,"readBlockSequence");function Oe(f,q,j){let J,H,nt,v,P=f.tag,at=f.anchor,Z={},Q=Object.create(null),ot=null,it=null,gt=null,ct=!1,kt=!1;if(f.firstTabInLine!==-1)return!1;f.anchor!==null&&R(f,f.anchor,Z);let St=f.input.charCodeAt(f.position);for(;St!==0;){!ct&&f.firstTabInLine!==-1&&(f.position=f.firstTabInLine,L(f,"tab characters must not be used in indentation"));let It=f.input.charCodeAt(f.position+1),zt=f.line;if((St===63||St===58)&&S(It))St===63?(ct&&(bt(f,Z,Q,ot,it,null,H,nt,v),ot=it=gt=null),kt=!0,ct=!0,J=!0):ct?(ct=!1,J=!0):L(f,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),f.position+=1,St=It;else{if(H=f.line,nt=f.lineStart,v=f.position,!ie(f,j,s,!1,!0))break;if(f.line===zt){for(St=f.input.charCodeAt(f.position);w(St);)St=f.input.charCodeAt(++f.position);if(St===58)St=f.input.charCodeAt(++f.position),S(St)||L(f,"a whitespace character is expected after the key-value separator within a block mapping"),ct&&(bt(f,Z,Q,ot,it,null,H,nt,v),ot=it=gt=null),kt=!0,ct=!1,J=!1,ot=f.tag,it=f.result;else if(kt)L(f,"can not read an implicit mapping pair; a colon is missed");else return f.tag=P,f.anchor=at,!0}else if(kt)L(f,"can not read a block mapping entry; a multiline key may not be an implicit key");else return f.tag=P,f.anchor=at,!0}if((f.line===zt||f.lineIndent>q)&&(ct&&(H=f.line,nt=f.lineStart,v=f.position),ie(f,q,d,!0,J)&&(ct?it=f.result:gt=f.result),ct||(bt(f,Z,Q,ot,it,gt,H,nt,v),ot=it=gt=null),K(f,!0,-1),St=f.input.charCodeAt(f.position)),(f.line===zt||f.lineIndent>q)&&St!==0)L(f,"bad indentation of a mapping entry");else if(f.lineIndent<q)break}return ct&&bt(f,Z,Q,ot,it,null,H,nt,v),kt&&(f.tag=P,f.anchor=at,f.kind="mapping",f.result=Z),kt}n(Oe,"readBlockMapping");function pr(f){let q=!1,j=!1,J,H,nt=f.input.charCodeAt(f.position);if(nt!==33)return!1;f.tag!==null&&L(f,"duplication of a tag property"),nt=f.input.charCodeAt(++f.position),nt===60?(q=!0,nt=f.input.charCodeAt(++f.position)):nt===33?(j=!0,J="!!",nt=f.input.charCodeAt(++f.position)):J="!";let v=f.position;if(q){do nt=f.input.charCodeAt(++f.position);while(nt!==0&&nt!==62);f.position<f.length?(H=f.input.slice(v,f.position),nt=f.input.charCodeAt(++f.position)):L(f,"unexpected end of the stream within a verbatim tag")}else{for(;nt!==0&&!S(nt);)nt===33&&(j?L(f,"tag suffix cannot contain exclamation marks"):(J=f.input.slice(v-1,f.position+1),m.test(J)||L(f,"named tag handle cannot contain such characters"),j=!0,v=f.position+1)),nt=f.input.charCodeAt(++f.position);H=f.input.slice(v,f.position),y.test(H)&&L(f,"tag suffix cannot contain flow indicator characters")}H&&!x.test(H)&&L(f,"tag name cannot contain such characters: "+H);try{H=decodeURIComponent(H)}catch{L(f,"tag name is malformed: "+H)}return q?f.tag=H:a.call(f.tagMap,J)?f.tag=f.tagMap[J]+H:J==="!"?f.tag="!"+H:J==="!!"?f.tag="tag:yaml.org,2002:"+H:L(f,'undeclared tag handle "'+J+'"'),!0}n(pr,"readTagProperty");function gr(f){let q=f.input.charCodeAt(f.position);if(q!==38)return!1;f.anchor!==null&&L(f,"duplication of an anchor property"),q=f.input.charCodeAt(++f.position);let j=f.position;for(;q!==0&&!S(q)&&!B(q);)q=f.input.charCodeAt(++f.position);return f.position===j&&L(f,"name of an anchor node must contain at least one character"),f.anchor=f.input.slice(j,f.position),!0}n(gr,"readAnchorProperty");function fr(f){let q=f.input.charCodeAt(f.position);if(q!==42)return!1;q=f.input.charCodeAt(++f.position);let j=f.position;for(;q!==0&&!S(q)&&!B(q);)q=f.input.charCodeAt(++f.position);f.position===j&&L(f,"name of an alias node must contain at least one character");let J=f.input.slice(j,f.position);return a.call(f.anchorMap,J)||L(f,'unidentified alias "'+J+'"'),f.result=f.anchorMap[J],K(f,!0,-1),!0}n(fr,"readAlias");function Be(f,q,j,J){let H=wt(f);return rt(f),_t(f,q),f.tag=null,f.anchor=null,f.kind=null,f.result=null,Oe(f,j,J)&&f.kind==="mapping"?(X(f),!0):(xt(f),_t(f,H),!1)}n(Be,"tryReadBlockMappingFromProperty");function ie(f,q,j,J,H){let nt,v,P=1,at=!1,Z=!1,Q=null,ot,it,gt;f.depth>=f.maxDepth&&L(f,"nesting exceeded maxDepth ("+f.maxDepth+")"),f.depth+=1,f.listener!==null&&f.listener("open",f),f.tag=null,f.anchor=null,f.kind=null,f.result=null;let ct=nt=v=d===j||l===j;if(J&&K(f,!0,-1)&&(at=!0,f.lineIndent>q?P=1:f.lineIndent===q?P=0:f.lineIndent<q&&(P=-1)),P===1)for(;;){let kt=f.input.charCodeAt(f.position),St=wt(f);if(at&&(kt===33&&f.tag!==null||kt===38&&f.anchor!==null)||!pr(f)&&!gr(f))break;Q===null&&(Q=St),K(f,!0,-1)?(at=!0,v=ct,f.lineIndent>q?P=1:f.lineIndent===q?P=0:f.lineIndent<q&&(P=-1)):v=!1}if(v&&(v=at||H),P===1||d===j)if(o===j||s===j?it=q:it=q+1,gt=f.position-f.lineStart,P===1)if(v&&(Vt(f,gt)||Oe(f,gt,it))||Gt(f,it))Z=!0;else{let kt=f.input.charCodeAt(f.position);Q!==null&&ct&&!v&&kt!==124&&kt!==62&&Be(f,Q,Q.position-Q.lineStart,it)||nt&&Kt(f,it)||jt(f,it)||Bt(f,it)?Z=!0:fr(f)?(Z=!0,(f.tag!==null||f.anchor!==null)&&L(f,"alias node should not have any properties")):G(f,it,o===j)&&(Z=!0,f.tag===null&&(f.tag="?")),f.anchor!==null&&R(f,f.anchor,f.result)}else P===0&&(Z=v&&Vt(f,gt));if(f.tag===null)f.anchor!==null&&R(f,f.anchor,f.result);else if(f.tag==="?"){f.result!==null&&f.kind!=="scalar"&&L(f,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+f.kind+'"');for(let kt=0,St=f.implicitTypes.length;kt<St;kt+=1)if(ot=f.implicitTypes[kt],ot.resolve(f.result)){f.result=ot.construct(f.result),f.tag=ot.tag,f.anchor!==null&&R(f,f.anchor,f.result);break}}else if(f.tag!=="!"){if(a.call(f.typeMap[f.kind||"fallback"],f.tag))ot=f.typeMap[f.kind||"fallback"][f.tag];else{ot=null;let kt=f.typeMap.multi[f.kind||"fallback"];for(let St=0,It=kt.length;St<It;St+=1)if(f.tag.slice(0,kt[St].tag.length)===kt[St].tag){ot=kt[St];break}}ot||L(f,"unknown tag !<"+f.tag+">"),f.result!==null&&ot.kind!==f.kind&&L(f,"unacceptable node kind for !<"+f.tag+'> tag; it should be "'+ot.kind+'", not "'+f.kind+'"'),ot.resolve(f.result,f.tag)?(f.result=ot.construct(f.result,f.tag),f.anchor!==null&&R(f,f.anchor,f.result)):L(f,"cannot resolve a node with !<"+f.tag+"> explicit tag")}return f.listener!==null&&f.listener("close",f),f.depth-=1,f.tag!==null||f.anchor!==null||Z}n(ie,"composeNode");function Fe(f){let q=f.position,j=!1,J;for(f.version=null,f.checkLineBreaks=f.legacy,f.tagMap=Object.create(null),f.anchorMap=Object.create(null);(J=f.input.charCodeAt(f.position))!==0&&(K(f,!0,-1),J=f.input.charCodeAt(f.position),!(f.lineIndent>0||J!==37));){j=!0,J=f.input.charCodeAt(++f.position);let H=f.position;for(;J!==0&&!S(J);)J=f.input.charCodeAt(++f.position);let nt=f.input.slice(H,f.position),v=[];for(nt.length<1&&L(f,"directive name must not be less than one character in length");J!==0;){for(;w(J);)J=f.input.charCodeAt(++f.position);if(J===35){do J=f.input.charCodeAt(++f.position);while(J!==0&&!k(J));break}if(k(J))break;for(H=f.position;J!==0&&!S(J);)J=f.input.charCodeAt(++f.position);v.push(f.input.slice(H,f.position))}J!==0&&Dt(f),a.call($t,nt)?$t[nt](f,nt,v):D(f,'unknown document directive "'+nt+'"')}if(K(f,!0,-1),f.lineIndent===0&&f.input.charCodeAt(f.position)===45&&f.input.charCodeAt(f.position+1)===45&&f.input.charCodeAt(f.position+2)===45?(f.position+=3,K(f,!0,-1)):j&&L(f,"directives end mark is expected"),ie(f,f.lineIndent-1,d,!1,!0),K(f,!0,-1),f.checkLineBreaks&&g.test(f.input.slice(q,f.position))&&D(f,"non-ASCII line breaks are interpreted as content"),f.documents.push(f.result),f.position===f.lineStart&&st(f)){f.input.charCodeAt(f.position)===46&&(f.position+=3,K(f,!0,-1));return}f.position<f.length-1&&L(f,"end of the stream or a document separator is expected")}n(Fe,"readDocument");function er(f,q){f=String(f),q=q||{},f.length!==0&&(f.charCodeAt(f.length-1)!==10&&f.charCodeAt(f.length-1)!==13&&(f+=` 284`),f.charCodeAt(0)===65279&&(f=f.slice(1)));let j=new F(f,q),J=f.indexOf("\0");for(J!==-1&&(j.position=J,L(j,"null byte is not allowed in input")),j.input+="\0";j.input.charCodeAt(j.position)===32;)j.lineIndent+=1,j.position+=1;for(;j.position<j.length-1;)Fe(j);return j.documents}n(er,"loadDocuments");function rr(f,q,j){q!==null&&typeof q=="object"&&typeof j>"u"&&(j=q,q=null);let J=er(f,j);if(typeof q!="function")return J;for(let H=0,nt=J.length;H<nt;H+=1)q(J[H])}n(rr,"loadAll2");function yr(f,q){let j=er(f,q);if(j.length!==0){if(j.length===1)return j[0];throw new t("expected a single document in the stream, but found more")}}return n(yr,"load2"),Cn.loadAll=rr,Cn.load=yr,Cn}n(ew,"requireLoader");var Yl={},Og;function rw(){if(Og)return Yl;Og=1;let e=Pa(),t=Ra(),r=el(),i=Object.prototype.toString,a=Object.prototype.hasOwnProperty,o=65279,s=9,l=10,d=13,c=32,h=33,u=34,p=35,g=37,y=38,m=39,x=42,C=44,k=45,w=58,S=61,B=62,_=63,$=64,I=91,U=93,V=96,A=123,W=124,O=125,F={};F[0]="\\0",F[7]="\\a",F[8]="\\b",F[9]="\\t",F[10]="\\n",F[11]="\\v",F[12]="\\f",F[13]="\\r",F[27]="\\e",F[34]='\\"',F[92]="\\\\",F[133]="\\N",F[160]="\\_",F[8232]="\\L",F[8233]="\\P";let M=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],L=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function D(v,P){if(P===null)return{};let at={},Z=Object.keys(P);for(let Q=0,ot=Z.length;Q<ot;Q+=1){let it=Z[Q],gt=String(P[it]);it.slice(0,2)==="!!"&&(it="tag:yaml.org,2002:"+it.slice(2));let ct=v.compiledTypeMap.fallback[it];ct&&a.call(ct.styleAliases,gt)&&(gt=ct.styleAliases[gt]),at[it]=gt}return at}n(D,"compileStyleMap");function R(v){let P,at,Z=v.toString(16).toUpperCase();if(v<=255)P="x",at=2;else if(v<=65535)P="u",at=4;else if(v<=4294967295)P="U",at=8;else throw new t("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+P+e.repeat("0",at-Z.length)+Z}n(R,"encodeHex");let rt=1,X=2;function xt(v){this.schema=v.schema||r,this.indent=Math.max(1,v.indent||2),this.noArrayIndent=v.noArrayIndent||!1,this.skipInvalid=v.skipInvalid||!1,this.flowLevel=e.isNothing(v.flowLevel)?-1:v.flowLevel,this.styleMap=D(this.schema,v.styles||null),this.sortKeys=v.sortKeys||!1,this.lineWidth=v.lineWidth||80,this.noRefs=v.noRefs||!1,this.noCompatMode=v.noCompatMode||!1,this.condenseFlow=v.condenseFlow||!1,this.quotingType=v.quotingType==='"'?X:rt,this.forceQuotes=v.forceQuotes||!1,this.replacer=typeof v.replacer=="function"?v.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}n(xt,"State");function wt(v,P){let at=e.repeat(" ",P),Z=0,Q="",ot=v.length;for(;Z<ot;){let it,gt=v.indexOf(` 285`,Z);gt===-1?(it=v.slice(Z),Z=ot):(it=v.slice(Z,gt+1),Z=gt+1),it.length&&it!==` 286`&&(Q+=at),Q+=it}return Q}n(wt,"indentString");function _t(v,P){return` 287`+e.repeat(" ",v.indent*P)}n(_t,"generateNextLine");function $t(v,P){for(let at=0,Z=v.implicitTypes.length;at<Z;at+=1)if(v.implicitTypes[at].resolve(P))return!0;return!1}n($t,"testImplicitResolving");function Ct(v){return v===c||v===s}n(Ct,"isWhitespace");function ut(v){return v>=32&&v<=126||v>=161&&v<=55295&&v!==8232&&v!==8233||v>=57344&&v<=65533&&v!==o||v>=65536&&v<=1114111}n(ut,"isPrintable");function bt(v){return ut(v)&&v!==o&&v!==d&&v!==l}n(bt,"isNsCharOrWhitespace");function Dt(v,P,at){let Z=bt(v),Q=Z&&!Ct(v);return(at?Z:Z&&v!==C&&v!==I&&v!==U&&v!==A&&v!==O)&&v!==p&&!(P===w&&!Q)||bt(P)&&!Ct(P)&&v===p||P===w&&Q}n(Dt,"isPlainSafe");function K(v){return ut(v)&&v!==o&&!Ct(v)&&v!==k&&v!==_&&v!==w&&v!==C&&v!==I&&v!==U&&v!==A&&v!==O&&v!==p&&v!==y&&v!==x&&v!==h&&v!==W&&v!==S&&v!==B&&v!==m&&v!==u&&v!==g&&v!==$&&v!==V}n(K,"isPlainSafeFirst");function st(v){return!Ct(v)&&v!==w}n(st,"isPlainSafeLast");function mt(v,P){let at=v.charCodeAt(P),Z;return at>=55296&&at<=56319&&P+1<v.length&&(Z=v.charCodeAt(P+1),Z>=56320&&Z<=57343)?(at-55296)*1024+Z-56320+65536:at}n(mt,"codePointAt");function G(v){return/^\n* /.test(v)}n(G,"needIndentIndicator");let jt=1,Bt=2,Gt=3,Kt=4,Vt=5;function Oe(v,P,at,Z,Q,ot,it,gt){let ct,kt=0,St=null,It=!1,zt=!1,mr=Z!==-1,xr=-1,Cr=K(mt(v,0))&&st(mt(v,v.length-1));if(P||it)for(ct=0;ct<v.length;kt>=65536?ct+=2:ct++){if(kt=mt(v,ct),!ut(kt))return Vt;Cr=Cr&&Dt(kt,St,gt),St=kt}else{for(ct=0;ct<v.length;kt>=65536?ct+=2:ct++){if(kt=mt(v,ct),kt===l)It=!0,mr&&(zt=zt||ct-xr-1>Z&&v[xr+1]!==" ",xr=ct);else if(!ut(kt))return Vt;Cr=Cr&&Dt(kt,St,gt),St=kt}zt=zt||mr&&ct-xr-1>Z&&v[xr+1]!==" "}return!It&&!zt?Cr&&!it&&!Q(v)?jt:ot===X?Vt:Bt:at>9&&G(v)?Vt:it?ot===X?Vt:Bt:zt?Kt:Gt}n(Oe,"chooseScalarStyle");function pr(v,P,at,Z,Q){v.dump=(function(){if(P.length===0)return v.quotingType===X?'""':"''";if(!v.noCompatMode&&(M.indexOf(P)!==-1||L.test(P)))return v.quotingType===X?'"'+P+'"':"'"+P+"'";let ot=v.indent*Math.max(1,at),it=v.lineWidth===-1?-1:Math.max(Math.min(v.lineWidth,40),v.lineWidth-ot),gt=Z||v.flowLevel>-1&&at>=v.flowLevel;function ct(kt){return $t(v,kt)}switch(n(ct,"testAmbiguity"),Oe(P,gt,v.indent,it,ct,v.quotingType,v.forceQuotes&&!Z,Q)){case jt:return P;case Bt:return"'"+P.replace(/'/g,"''")+"'";case Gt:return"|"+gr(P,v.indent)+fr(wt(P,ot));case Kt:return">"+gr(P,v.indent)+fr(wt(Be(P,it),ot));case Vt:return'"'+Fe(P)+'"';default:throw new t("impossible error: invalid scalar style")}})()}n(pr,"writeScalar");function gr(v,P){let at=G(v)?String(P):"",Z=v[v.length-1]===` 288`;return at+(Z&&(v[v.length-2]===` 289`||v===` 290`)?"+":Z?"":"-")+` 291`}n(gr,"blockHeader");function fr(v){return v[v.length-1]===` 292`?v.slice(0,-1):v}n(fr,"dropEndingNewline");function Be(v,P){let at=/(\n+)([^\n]*)/g,Z=(function(){let gt=v.indexOf(` 293`);return gt=gt!==-1?gt:v.length,at.lastIndex=gt,ie(v.slice(0,gt),P)})(),Q=v[0]===` 294`||v[0]===" ",ot,it;for(;it=at.exec(v);){let gt=it[1],ct=it[2];ot=ct[0]===" ",Z+=gt+(!Q&&!ot&&ct!==""?` 295`:"")+ie(ct,P),Q=ot}return Z}n(Be,"foldString");function ie(v,P){if(v===""||v[0]===" ")return v;let at=/ [^ ]/g,Z,Q=0,ot,it=0,gt=0,ct="";for(;Z=at.exec(v);)gt=Z.index,gt-Q>P&&(ot=it>Q?it:gt,ct+=` 296`+v.slice(Q,ot),Q=ot+1),it=gt;return ct+=` 297`,v.length-Q>P&&it>Q?ct+=v.slice(Q,it)+` 298`+v.slice(it+1):ct+=v.slice(Q),ct.slice(1)}n(ie,"foldLine");function Fe(v){let P="",at=0;for(let Z=0;Z<v.length;at>=65536?Z+=2:Z++){at=mt(v,Z);let Q=F[at];!Q&&ut(at)?(P+=v[Z],at>=65536&&(P+=v[Z+1])):P+=Q||R(at)}return P}n(Fe,"escapeString");function er(v,P,at){let Z="",Q=v.tag;for(let ot=0,it=at.length;ot<it;ot+=1){let gt=at[ot];v.replacer&&(gt=v.replacer.call(at,String(ot),gt)),(j(v,P,gt,!1,!1)||typeof gt>"u"&&j(v,P,null,!1,!1))&&(Z!==""&&(Z+=","+(v.condenseFlow?"":" ")),Z+=v.dump)}v.tag=Q,v.dump="["+Z+"]"}n(er,"writeFlowSequence");function rr(v,P,at,Z){let Q="",ot=v.tag;for(let it=0,gt=at.length;it<gt;it+=1){let ct=at[it];v.replacer&&(ct=v.replacer.call(at,String(it),ct)),(j(v,P+1,ct,!0,!0,!1,!0)||typeof ct>"u"&&j(v,P+1,null,!0,!0,!1,!0))&&((!Z||Q!=="")&&(Q+=_t(v,P)),v.dump&&l===v.dump.charCodeAt(0)?Q+="-":Q+="- ",Q+=v.dump)}v.tag=ot,v.dump=Q||"[]"}n(rr,"writeBlockSequence");function yr(v,P,at){let Z="",Q=v.tag,ot=Object.keys(at);for(let it=0,gt=ot.length;it<gt;it+=1){let ct="";Z!==""&&(ct+=", "),v.condenseFlow&&(ct+='"');let kt=ot[it],St=at[kt];v.replacer&&(St=v.replacer.call(at,kt,St)),j(v,P,kt,!1,!1)&&(v.dump.length>1024&&(ct+="? "),ct+=v.dump+(v.condenseFlow?'"':"")+":"+(v.condenseFlow?"":" "),j(v,P,St,!1,!1)&&(ct+=v.dump,Z+=ct))}v.tag=Q,v.dump="{"+Z+"}"}n(yr,"writeFlowMapping");function f(v,P,at,Z){let Q="",ot=v.tag,it=Object.keys(at);if(v.sortKeys===!0)it.sort();else if(typeof v.sortKeys=="function")it.sort(v.sortKeys);else if(v.sortKeys)throw new t("sortKeys must be a boolean or a function");for(let gt=0,ct=it.length;gt<ct;gt+=1){let kt="";(!Z||Q!=="")&&(kt+=_t(v,P));let St=it[gt],It=at[St];if(v.replacer&&(It=v.replacer.call(at,St,It)),!j(v,P+1,St,!0,!0,!0))continue;let zt=v.tag!==null&&v.tag!=="?"||v.dump&&v.dump.length>1024;zt&&(v.dump&&l===v.dump.charCodeAt(0)?kt+="?":kt+="? "),kt+=v.dump,zt&&(kt+=_t(v,P)),j(v,P+1,It,!0,zt)&&(v.dump&&l===v.dump.charCodeAt(0)?kt+=":":kt+=": ",kt+=v.dump,Q+=kt)}v.tag=ot,v.dump=Q||"{}"}n(f,"writeBlockMapping");function q(v,P,at){let Z=at?v.explicitTypes:v.implicitTypes;for(let Q=0,ot=Z.length;Q<ot;Q+=1){let it=Z[Q];if((it.instanceOf||it.predicate)&&(!it.instanceOf||typeof P=="object"&&P instanceof it.instanceOf)&&(!it.predicate||it.predicate(P))){if(at?it.multi&&it.representName?v.tag=it.representName(P):v.tag=it.tag:v.tag="?",it.represent){let gt=v.styleMap[it.tag]||it.defaultStyle,ct;if(i.call(it.represent)==="[object Function]")ct=it.represent(P,gt);else if(a.call(it.represent,gt))ct=it.represent[gt](P,gt);else throw new t("!<"+it.tag+'> tag resolver accepts not "'+gt+'" style');v.dump=ct}return!0}}return!1}n(q,"detectType");function j(v,P,at,Z,Q,ot,it){v.tag=null,v.dump=at,q(v,at,!1)||q(v,at,!0);let gt=i.call(v.dump),ct=Z;Z&&(Z=v.flowLevel<0||v.flowLevel>P);let kt=gt==="[object Object]"||gt==="[object Array]",St,It;if(kt&&(St=v.duplicates.indexOf(at),It=St!==-1),(v.tag!==null&&v.tag!=="?"||It||v.indent!==2&&P>0)&&(Q=!1),It&&v.usedDuplicates[St])v.dump="*ref_"+St;else{if(kt&&It&&!v.usedDuplicates[St]&&(v.usedDuplicates[St]=!0),gt==="[object Object]")Z&&Object.keys(v.dump).length!==0?(f(v,P,v.dump,Q),It&&(v.dump="&ref_"+St+v.dump)):(yr(v,P,v.dump),It&&(v.dump="&ref_"+St+" "+v.dump));else if(gt==="[object Array]")Z&&v.dump.length!==0?(v.noArrayIndent&&!it&&P>0?rr(v,P-1,v.dump,Q):rr(v,P,v.dump,Q),It&&(v.dump="&ref_"+St+v.dump)):(er(v,P,v.dump),It&&(v.dump="&ref_"+St+" "+v.dump));else if(gt==="[object String]")v.tag!=="?"&&pr(v,v.dump,P,ot,ct);else{if(gt==="[object Undefined]"||v.skipInvalid)return!1;throw new t("unacceptable kind of an object to dump "+gt)}if(v.tag!==null&&v.tag!=="?"){let zt=encodeURI(v.tag[0]==="!"?v.tag.slice(1):v.tag).replace(/!/g,"%21");v.tag[0]==="!"?zt="!"+zt:zt.slice(0,18)==="tag:yaml.org,2002:"?zt="!!"+zt.slice(18):zt="!<"+zt+">",v.dump=zt+" "+v.dump}}return!0}n(j,"writeNode");function J(v,P){let at=[],Z=[];H(v,at,Z);let Q=Z.length;for(let ot=0;ot<Q;ot+=1)P.duplicates.push(at[Z[ot]]);P.usedDuplicates=new Array(Q)}n(J,"getDuplicateReferences");function H(v,P,at){if(v!==null&&typeof v=="object"){let Z=P.indexOf(v);if(Z!==-1)at.indexOf(Z)===-1&&at.push(Z);else if(P.push(v),Array.isArray(v))for(let Q=0,ot=v.length;Q<ot;Q+=1)H(v[Q],P,at);else{let Q=Object.keys(v);for(let ot=0,it=Q.length;ot<it;ot+=1)H(v[Q[ot]],P,at)}}}n(H,"inspectNode");function nt(v,P){P=P||{};let at=new xt(P);at.noRefs||J(v,at);let Z=v;return at.replacer&&(Z=at.replacer.call({"":Z},"",Z)),j(at,0,Z,!0,!0)?at.dump+` 299`:""}return n(nt,"dump2"),Yl.dump=nt,Yl}n(rw,"requireDumper");var Ig;function iw(){if(Ig)return xe;Ig=1;let e=ew(),t=rw();function r(i,a){return function(){throw new Error("Function yaml."+i+" is removed in js-yaml 4. Use yaml."+a+" instead, which is now safe by default.")}}return n(r,"renamed"),xe.Type=Te(),xe.Schema=Cu(),xe.FAILSAFE_SCHEMA=vu(),xe.JSON_SCHEMA=$u(),xe.CORE_SCHEMA=Lu(),xe.DEFAULT_SCHEMA=el(),xe.load=e.load,xe.loadAll=e.loadAll,xe.dump=t.dump,xe.YAMLException=Ra(),xe.types={binary:Au(),float:_u(),map:wu(),null:Tu(),pairs:Ou(),set:Iu(),timestamp:Fu(),bool:Su(),int:Bu(),merge:Mu(),omap:Eu(),seq:ku(),str:bu()},xe.safeLoad=r("safeLoad","load"),xe.safeLoadAll=r("safeLoadAll","loadAll"),xe.safeDump=r("safeDump","dump"),xe}n(iw,"requireJsYaml");var{Type:HF,Schema:UF,FAILSAFE_SCHEMA:YF,JSON_SCHEMA:G$,CORE_SCHEMA:VF,DEFAULT_SCHEMA:GF,load:X$,loadAll:XF,dump:ZF,YAMLException:QF,types:JF,safeLoad:KF,safeLoadAll:t3,safeDump:e3}=K2(iw()),Z$={id:"c4",detector:n(e=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(e),"detector"),loader:n(async()=>{let{diagram:e}=await Et(async()=>{const{diagram:t}=await import("./CmjAEoxe.js");return{diagram:t}},__vite__mapDeps([11,12,1,2,3]),import.meta.url);return{id:"c4",diagram:e}},"loader")},Dg="flowchart",Q$={id:Dg,detector:n((e,t)=>t?.flowchart?.defaultRenderer==="dagre-wrapper"||t?.flowchart?.defaultRenderer==="elk"?!1:/^\s*graph/.test(e),"detector"),loader:n(async()=>{let{diagram:e}=await Et(async()=>{const{diagram:t}=await import("./Cvm7ueDk.js").then(r=>r.a);return{diagram:t}},__vite__mapDeps([13,14,12,15,16]),import.meta.url);return{id:Dg,diagram:e}},"loader")},qg="flowchart-v2",J$={id:qg,detector:n((e,t)=>t?.flowchart?.defaultRenderer==="dagre-d3"?!1:(t?.flowchart?.defaultRenderer==="elk"&&(t.layout="elk"),/^\s*graph/.test(e)&&t?.flowchart?.defaultRenderer==="dagre-wrapper"?!0:/^\s*flowchart/.test(e)),"detector"),loader:n(async()=>{let{diagram:e}=await Et(async()=>{const{diagram:t}=await import("./Cvm7ueDk.js").then(r=>r.a);return{diagram:t}},__vite__mapDeps([13,14,12,15,16]),import.meta.url);return{id:qg,diagram:e}},"loader")},Pg="swimlane",K$={id:Pg,detector:n(e=>/^\s*swimlane-beta\b/.test(e),"detector"),loader:n(async()=>{let{diagram:e}=await Et(async()=>{const{diagram:t}=await import("./286IhEIL.js");return{diagram:t}},__vite__mapDeps([17,13,14,12,15,16,1,2,3]),import.meta.url);return{id:Pg,diagram:e}},"loader")},tL={id:"er",detector:n(e=>/^\s*erDiagram/.test(e),"detector"),loader:n(async()=>{let{diagram:e}=await Et(async()=>{const{diagram:t}=await import("./COIFF080.js");return{diagram:t}},__vite__mapDeps([18,15,16,1,2,3]),import.meta.url);return{id:"er",diagram:e}},"loader")},Rg="gitGraph",eL={id:Rg,detector:n(e=>/^\s*gitGraph/.test(e),"detector"),loader:n(async()=>{let{diagram:e}=await Et(async()=>{const{diagram:t}=await import("./DiC_iWwB.js");return{diagram:t}},__vite__mapDeps([19,20,21,1,2,3,22]),import.meta.url);return{id:Rg,diagram:e}},"loader")},Ng="gantt",rL={id:Ng,detector:n(e=>/^\s*gantt/.test(e),"detector"),loader:n(async()=>{let{diagram:e}=await Et(async()=>{const{diagram:t}=await import("./DgHUS6p2.js");return{diagram:t}},__vite__mapDeps([23,1,2,3]),import.meta.url);return{id:Ng,diagram:e}},"loader")},zg="info",iL={id:zg,detector:n(e=>/^\s*info/.test(e),"detector"),loader:n(async()=>{let{diagram:e}=await Et(async()=>{const{diagram:t}=await import("./BZN2nzna.js");return{diagram:t}},__vite__mapDeps([24,21,1,2,3]),import.meta.url);return{id:zg,diagram:e}},"loader")},aL={id:"pie",detector:n(e=>/^\s*pie/.test(e),"detector"),loader:n(async()=>{let{diagram:e}=await Et(async()=>{const{diagram:t}=await import("./DvDaaAsy.js");return{diagram:t}},__vite__mapDeps([25,20,21,1,2,3]),import.meta.url);return{id:"pie",diagram:e}},"loader")},Wg="quadrantChart",oL={id:Wg,detector:n(e=>/^\s*quadrantChart/.test(e),"detector"),loader:n(async()=>{let{diagram:e}=await Et(async()=>{const{diagram:t}=await import("./HjEt413a.js");return{diagram:t}},__vite__mapDeps([26,1,2,3]),import.meta.url);return{id:Wg,diagram:e}},"loader")},jg="xychart",nL={id:jg,detector:n(e=>/^\s*xychart(-beta)?/.test(e),"detector"),loader:n(async()=>{let{diagram:e}=await Et(async()=>{const{diagram:t}=await import("./DRTcbSfY.js");return{diagram:t}},__vite__mapDeps([27,1,2,3]),import.meta.url);return{id:jg,diagram:e}},"loader")},Hg="requirement",sL={id:Hg,detector:n(e=>
vendor: 3,653 bytes, lines 299-300
299/^\s*requirement(Diagram)?/.test(e),"detector"),loader:n(async()=>{let{diagram:e}=await Et(async()=>{const{diagram:t}=await import("./D55DEA-z.js");return{diagram:t}},__vite__mapDeps([28,15,16,1,2,3]),import.meta.url);return{id:Hg,diagram:e}},"loader")},Ug="sequence",lL={id:Ug,detector:n(e=>/^\s*sequenceDiagram/.test(e),"detector"),loader:n(async()=>{let{diagram:e}=await Et(async()=>{const{diagram:t}=await import("./B2jVUxKG.js");return{diagram:t}},__vite__mapDeps([29,12,22,1,2,3]),import.meta.url);return{id:Ug,diagram:e}},"loader")},Yg="class",hL={id:Yg,detector:n((e,t)=>t?.class?.defaultRenderer==="dagre-wrapper"?!1:/^\s*classDiagram/.test(e),"detector"),loader:n(async()=>{let{diagram:e}=await Et(async()=>{const{diagram:t}=await import("./C9ebooV8.js");return{diagram:t}},__vite__mapDeps([30,31,14,12,15,16,1,2,3]),import.meta.url);return{id:Yg,diagram:e}},"loader")},Vg="classDiagram",cL={id:Vg,detector:n((e,t)=>/^\s*classDiagram/.test(e)&&t?.class?.defaultRenderer==="dagre-wrapper"?!0:/^\s*classDiagram-v2/.test(e),"detector"),loader:n(async()=>{let{diagram:e}=await Et(async()=>{const{diagram:t}=await import("./D-IIrzSp.js");return{diagram:t}},__vite__mapDeps([32,31,14,12,15,16,1,2,3]),import.meta.url);return{id:Vg,diagram:e}},"loader")},Gg="state",dL={id:Gg,detector:n((e,t)=>t?.state?.defaultRenderer==="dagre-wrapper"?!1:/^\s*stateDiagram/.test(e),"detector"),loader:n(async()=>{let{diagram:e}=await Et(async()=>{const{diagram:t}=await import("./Bs_K8owN.js");return{diagram:t}},__vite__mapDeps([33,5,6,34,12,15,16,1,2,3]),import.meta.url);return{id:Gg,diagram:e}},"loader")},Xg="stateDiagram",uL={id:Xg,detector:n((e,t)=>!!(/^\s*stateDiagram-v2/.test(e)||/^\s*stateDiagram/.test(e)&&t?.state?.defaultRenderer==="dagre-wrapper"),"detector"),loader:n(async()=>{let{diagram:e}=await Et(async()=>{const{diagram:t}=await import("./D3nqOF4l.js");return{diagram:t}},__vite__mapDeps([35,34,12,15,16,1,2,3]),import.meta.url);return{id:Xg,diagram:e}},"loader")},Zg="journey",pL={id:Zg,detector:n(e=>/^\s*journey/.test(e),"detector"),loader:n(async()=>{let{diagram:e}=await Et(async()=>{const{diagram:t}=await import("./D0fN0yyU.js");return{diagram:t}},__vite__mapDeps([36,14,12,1,2,3]),import.meta.url);return{id:Zg,diagram:e}},"loader")},aw={draw:n((e,t,r)=>{et.debug(`rendering svg for syntax error 300`);let i=KS(t),a=i.append("g");i.attr("viewBox","0 0 2412 512"),Q1(i,100,512,!0),a.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),a.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),a.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),a.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.
300164-16,16v32c0,8.836 7.156,16 16,16z"),a.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),a.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),a.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in text"),a.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${r}`)},"draw")},gL=aw,fL={db:{},renderer:aw,parser:{parse:n(()=>{},"parse")}},Qg="flowchart-elk",yL={id:Qg,detector:n((e,t={})=>/^\s*flowchart-elk/.test(e)||/^\s*(flowchart|graph)/.test(e)&&t?.flowchart?.defaultRenderer==="elk"?(t.layout="elk",!0):!1,"detector"),loader:n(async()=>{let{diagram:e}=await Et(async()=>{const{diagram:t}=await import("./Cvm7ueDk.js").then(r=>r.a);return{diagram:t}},__vite__mapDeps([13,14,12,15,16]),import.meta.url);return{id:Qg,diagram:e}},"loader")},Jg="timeline",mL={id:Jg,detector:n(e=>/^\s*timeline/.test(e),"detector"),loader:n(async()=>{let{diagram:e}=await Et(async()=>{const{diagram:t}=await import("./DkU9kF3e.js");return{diagram:t}},__vite__mapDeps([37,1,2,3]),import.meta.url);return{id:Jg,diagram:e}},"loader")},Kg="mindmap",xL={id:Kg,detector:n(e=>/^\s*mindmap/.test(e),"detector"),loader:n(async()=>{let{diagram:e}=await Et(async()=>{const{diagram:t}=await import("./4jn9QO4W.js");return{diagram:t}},__vite__mapDeps([38,15,16,1,2,3]),import.meta.url);return{id:Kg,diagram:e}},"loader")},tf="kanban",CL={id:tf,detector:n(e=>/^\s*kanban/.test(e),"detector"),loader:n(async()=>{let{diagram:e}=await Et(async()=>{const{diagram:t}=await import("./Czy2hFku.js");return{diagram:t}},__vite__mapDeps([39,14,1,2,3]),import.meta.url);return{id:tf,diagram:e}},"loader")},ef="sankey",bL={id:ef,detector:n(e=>/^\s*sankey(-beta)?/.test(e),"detector"),loader:n(async()=>{let{diagram:e}=await Et(async()=>{const{diagram:t}=await import("./DmmUSz9s.js");return{diagram:t}},__vite__mapDeps([40,1,2,3]),import.meta.url);return{id:ef,diagram:e}},"loader")},rf="packet",kL={id:rf,detector:n(e=>/^\s*packet(-beta)?/.test(e),"detector"),loader:n(async()=>{let{diagram:e}=await Et(async()=>{const{diagram:t}=await import("./rgTYNMg5.js");return{diagram:t}},__vite__mapDeps([41,20,21,1,2,3]),import.meta.url);return{id:rf,diagram:e}},"loader")},af="radar",wL={id:af,detector:n(e=>/^\s*radar-beta/.test(e),"detector"),loader:n(async()=>{let{diagram:e}=await Et(async()=>{const{diagram:t}=await import("./PVC_NCAa.js");return{diagram:t}},__vite__mapDeps([42,20,21,1,2,3]),import.meta.url);return{id:af,diagram:e}},"loader")},of="block",vL={id:of,detector:n(e=>/^\s*block(-beta)?/.test(e),"detector"),loader:n(async()=>{let{diagram:e}=await Et(async()=>{const{diagram:t}=await import("./CnPE6MLy.js");return{diagram:t}},__vite__mapDeps([43,5,14,1,2,3]),import.meta.url);return{id:of,diagram:e}},"loader")},nf="treeView",TL={id:nf,detector:n(e=>/^\s*treeView-beta/.test(e),"detector"),loader:n(async()=>{let{diagram:e}=await Et(async()=>{const{diagram:t}=await import("./orXfDbZC.js");return{diagram:t}},__vite__mapDeps([44,20,21,1,2,3,22]),import.meta.url);return{id:nf,diagram:e}},"loader")},sf="architecture",SL={id:sf,detector:n(e=>/^\s*architecture/.test(e),"detector"),loader:n(async()=>{let{diagram:e}=await Et(async()=>{const{diagram:t}=await import("./jaYPfBzb.js");return{diagram:t}},__vite__mapDeps([45,20,21,1,2,3,10]),import.meta.url);return{id:sf,diagram:e}},"loader")},lf="eventmodeling",BL={id:lf,detector:n(e=>/^\s*eventmodeling/.test(e),"detector"),loader:n(async()=>{let{diagram:e}=await Et(async()=>{const{diagram:t}=await import("./DNsw0XgW.js");return{diagram:t}},__vite__mapDeps([46,20,21,1,2,3]),import.meta.url);return{id:lf,diagram:e}},"loader")},hf="ishikawa",_L={id:hf,detector:n(e=>/^\s*ishikawa(-beta)?\b/i.test(e),"detector"),loader:n(async()=>{let{diagram:e}=await Et(async()=>{const{diagram:t}=await import("./DPvnQxgM.js");return{diagram:t}},__vite__mapDeps([47,1,2,3]),import.meta.url);return{id:hf,diagram:e}},"loader")},cf="venn",$L={id:cf,detector:n(e=>/^\s*venn-beta/.test(e),"detector"),loader:n(async()=>{let{diagram:e}=await Et(async()=>{const{diagram:t}=await import("./B5NRDBEM.js");return{diagram:t}},__vite__mapDeps([48,1,2,3]),import.meta.url);return{id:cf,diagram:e}},"loader")},df="treemap",LL={id:df,detector:n(e=>/^\s*treemap/.test(e),"detector"),loader:n(async()=>{let{diagram:e}=await Et(async()=>{const{diagram:t}=await import("./B-f8GPik.js");return{diagram:t}},__vite__mapDeps([49,20,21,1,2,3,16]),import.meta.url);return{id:df,diagram:e}},"loader")},uf="wardley",FL={id:uf,detector:n(e=>/^\s*wardley-beta/i.test(e),"detector"),loader:n(async()=>{let{diagram:e}=await Et(async()=>{const{diagram:t}=await import("./BZ3kL3Qh.js");return{diagram:t}},__vite__mapDeps([50,20,21,1,2,3]),import.meta.url);return{id:uf,diagram:e}},"loader")},pf="cynefin",ML={id:pf,detector:n(e=>/^\s*cynefin-beta(?:[\s:]|$)/.test(e),"detector"),loader:n(async()=>{let{diagram:e}=await Et(async()=>{const{diagram:t}=await import("./CghzGvxk.js");return{diagram:t}},__vite__mapDeps([51,20,21,1,2,3]),import.meta.url);return{id:pf,diagram:e}},"loader")},gf="railroad",AL={id:gf,detector:n(e=>/^\s*railroad-beta/i.test(e),"detector"),loader:n(async()=>{let{diagram:e}=await Et(async()=>{const{diagram:t}=await import("./DJdtgPmd.js");return{diagram:t}},__vite__mapDeps([52,53,20,21,1,2,3]),import.meta.url);return{id:gf,diagram:e}},"loader")},ff="railroadEbnf",EL={id:ff,detector:n(e=>/^\s*railroad-ebnf-beta/i.test(e),"detector"),loader:n(async()=>{let{diagram:e}=await Et(async()=>{const{diagram:t}=await import("./DDF3MvNR.js");return{diagram:t}},__vite__mapDeps([54,53,20,21,1,2,3]),import.meta.url);return{id:ff,diagram:e}},"loader")},yf="railroadAbnf",OL={id:yf,detector:n(e=>/^\s*railroad-abnf-beta/i.test(e),"detector"),loader:n(async()=>{let{diagram:e}=await Et(async()=>{const{diagram:t}=await import("./D1hHZRbG.js");return{diagram:t}},__vite__mapDeps([55,53,20,21,1,2,3]),import.meta.url);return{id:yf,diagram:e}},"loader")},mf="railroadPeg",IL={id:mf,detector:n(e=>/^\s*railroad-peg-beta/i.test(e),"detector"),loader:n(async()=>{let{diagram:e}=await Et(async()=>{const{diagram:t}=await import("./TtbYjjK4.js");return{diagram:t}},__vite__mapDeps([56,53,20,21,1,2,3]),import.meta.url);return{id:mf,diagram:e}},"loader")},xf=!1,rl=n(()=>{xf||(xf=!0,ls("error",fL,e=>e.toLowerCase().trim()==="error"),ls("---",{db:{clear:n(()=>{},"clear")},styles:{},renderer:{draw:n(()=>{},"draw")},parser:{parse:n(()=>{throw new Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with un-indented `---` blocks")},"parse")},init:n(()=>null,"init")},e=>e.toLowerCase().trimStart().startsWith("---")),Mh(yL,xL,SL),Mh(Z$,CL,cL,hL,tL,rL,iL,aL,sL,lL,K$,J$,Q$,mL,eL,uL,dL,pL,oL,bL,kL,nL,vL,BL,TL,wL,_L,LL,AL,EL,OL,IL,$L,FL,ML))},"addDiagrams"),DL=n(async()=>{et.debug("Loading registered diagrams");let e=(await Promise.allSettled(Object.entries(fi).map(async([t,{detector:r,loader:i}])=>{if(i)try{Ph(t)}catch{try{let{diagram:a,id:o}=await i();ls(o,a,r)}catch(a){throw et.error(`Failed to load external diagram with key ${t}. Removing from detectors.`),delete fi[t],a}}}))).filter(t=>t.status==="rejected");if(e.length>0){et.error(`Failed to load ${e.length} external diagrams`);for(let t of e)et.error(t);throw new Error(`Failed to load ${e.length} external diagrams`)}},"loadRegisteredDiagrams"),Du="comm",ow="rule",nw="decl",qL="@media",PL="@import",RL="@supports",NL="@namespace",lc="@keyframes",sw="@layer",zL="@scope",lw=Math.abs,qu=String.fromCharCode;function Pu(e){return e.trim()}n(Pu,"trim");function yo(e,t,r){return e.replace(t,r)}n(yo,"replace");function hw(e,t,r){return e.indexOf(t,r)}n(hw,"indexof");function hi(e,t){return e.charCodeAt(t)|0}n(hi,"charat");function xi(e,t,r){return e.slice(t,r)}n(xi,"substr");function Ge(e){return e.length}n(Ge,"strlen");function Ru(e){return e.length}n(Ru,"sizeof");function no(e,t){return t.push(e),e}n(no,"append");var il=1,Fa=1,cw=0,ze=0,ae=0,Na="";function al(e,t,r,i,a,o,s,l){return{value:e,root:t,parent:r,type:i,props:a,children:o,line:il,column:Fa,length:s,return:"",siblings:l}}n(al,"node");function dw(){return ae}n(dw,"char");function uw(){return ae=ze>0?hi(Na,--ze):0,Fa--,ae===10&&(Fa=1,il--),ae}n(uw,"prev");function Re(){return ae=ze<cw?hi(Na,ze++):0,Fa++,ae===10&&(Fa=1,il++),ae}n(Re,"next");function Br(){return hi(Na,ze)}n(Br,"peek");function mo(){return ze}n(mo,"caret");function rn(e,t){return xi(Na,e,t)}n(rn,"slice");function Ma(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}n(Ma,"token");function pw(e){return il=Fa=1,cw=Ge(Na=e),ze=0,[]}n(pw,"alloc");function gw(e){return Na="",e}n(gw,"dealloc");function Wn(e){return Pu(rn(ze-1,ws(e===91?e+2:e===40?e+1:e)))}n(Wn,"delimit");function fw(e){for(;(ae=Br())&&ae<33;)Re();return Ma(e)>2||Ma(ae)>3?"":" "}n(fw,"whitespace");function yw(e,t){for(;--t&&Re()&&!(ae<48||ae>102||ae>57&&ae<65||ae>70&&ae<97););return rn(e,mo()+(t<6&&Br()==32&&Re()==32))}n(yw,"escaping");function ws(e){for(;Re();)switch(ae){case e:return ze;case 34:case 39:e!==34&&e!==39&&ws(ae);break;case 40:e===41&&ws(e);break;case 92:Re();break}return ze}n(ws,"delimiter");function mw(e,t){for(;
vendor: 4,296 bytes, lines 300-304
300Re()&&e+ae!==57&&!(e+ae===84&&Br()===47););return"/*"+rn(t,ze-1)+"*"+qu(e===47?e:Re())}n(mw,"commenter");function xw(e){for(;!Ma(Br());)Re();return rn(e,ze)}n(xw,"identifier");function Cw(e){return gw(xo("",null,null,null,[""],e=pw(e),0,[0],e))}n(Cw,"compile");function xo(e,t,r,i,a,o,s,l,d){for(var c=0,h=0,u=s,p=0,g=0,y=0,m=1,x=1,C=1,k=0,w="",S=a,B=o,_=i,$=w;x;)switch(y=k,k=Re()){case 40:if(y!=108&&hi($,u-1)==58){hw($+=yo(Wn(k),"&","&\f"),"&\f",lw(c?l[c-1]:0))!=-1&&(C=-1);break}case 34:case 39:case 91:$+=Wn(k);break;case 9:case 10:case 13:case 32:$+=fw(y);break;case 92:$+=yw(mo()-1,7);continue;case 47:switch(Br()){case 42:case 47:no(bw(mw(Re(),mo()),t,r,d),d),(Ma(y||1)==5||Ma(Br()||1)==5)&&Ge($)&&xi($,-1,void 0)!==" "&&($+=" ");break;default:$+="/"}break;case 123*m:l[c++]=Ge($)*C;case 125*m:case 59:case 0:switch(k){case 0:case 125:x=0;case 59+h:C==-1&&($=yo($,/\f/g,"")),g>0&&(Ge($)-u||m===0&&y===47)&&no(g>32?cc($+";",i,r,u-1,d):cc(yo($," ","")+";",i,r,u-2,d),d);break;case 59:$+=";";default:if(no(_=hc($,t,r,c,h,a,l,w,S=[],B=[],u,o),o),k===123)if(h===0)xo($,t,_,_,S,o,u,l,B);else{switch(p){case 99:if(hi($,3)===110)break;case 108:if(hi($,2)===97)break;default:h=0;case 100:case 109:case 115:}h?xo(e,_,_,i&&no(hc(e,_,_,0,0,a,l,w,a,S=[],u,B),B),a,B,u,l,i?S:B):xo($,_,_,_,[""],B,0,l,B)}}c=h=g=0,m=C=1,w=$="",u=s;break;case 58:u=1+Ge($),g=y;default:if(m<1){if(k==123)--m;else if(k==125&&m++==0&&uw()==125)continue}switch($+=qu(k),k*m){case 38:C=h>0?1:($+="\f",-1);break;case 44:l[c++]=(Ge($)-1)*C,C=1;break;case 64:Br()===45&&($+=Wn(Re())),p=Br(),h=u=Ge(w=$+=xw(mo())),k++;break;case 45:y===45&&Ge($)==2&&(m=0)}}return o}n(xo,"parse");function hc(e,t,r,i,a,o,s,l,d,c,h,u){for(var p=a-1,g=a===0?o:[""],y=Ru(g),m=0,x=0,C=0;m<i;++m)for(var k=0,w=xi(e,p+1,p=lw(x=s[m])),S=e;k<y;++k)(S=Pu(x>0?g[k]+" "+w:yo(w,/&\f/g,g[k])))&&(d[C++]=S);return al(e,t,r,a===0?ow:l,d,c,h,u)}n(hc,"ruleset");function bw(e,t,r,i){return al(e,t,r,Du,qu(dw()),xi(e,2,-2),0,i)}n(bw,"comment");function cc(e,t,r,i,a){return al(e,t,r,nw,xi(e,0,i),xi(e,i+1,-1),i,a)}n(cc,"declaration");function vs(e,t){for(var r="",i=0;i<e.length;i++)r+=t(e[i],i,e,t)||"";return r}n(vs,"serialize");function kw(e,t,r,i){switch(e.type){case sw:if(e.children.length)break;case PL:case NL:case nw:return e.return=e.return||e.value;case Du:return"";case lc:return e.return=e.value+"{"+vs(e.children,i)+"}";case ow:if(!Ge(e.value=e.props.join(",")))return""}return Ge(r=vs(e.children,i))?e.return=e.value+"{"+r+"}":""}n(kw,"stringify");function ww(e){var t=Ru(e);return function(r,i,a,o){for(var s="",l=0;l<t;l++)s+=e[l](r,i,a,o)||"";return s}}n(ww,"middleware");var WL="graphics-document document";function vw(e,t){e.attr("role",WL),t!==""&&e.attr("aria-roledescription",t)}n(vw,"setA11yDiagramInfo");function Tw(e,t,r,i){if(e.insert!==void 0){if(r){let a=`chart-desc-${i}`;e.attr("aria-describedby",a),e.insert("desc",":first-child").attr("id",a).text(r)}if(t){let a=`chart-title-${i}`;e.attr("aria-labelledby",a),e.insert("title",":first-child").attr("id",a).text(t)}}}n(Tw,"addSVGa11yTitleDescription");var ci,dc=(ci=class{constructor(t,r,i,a,o){this.type=t,this.text=r,this.db=i,this.parser=a,this.renderer=o}static async fromText(t,r={}){let i=Jt(),a=Bd(t,i);t=OB(t)+` 301`;try{Ph(a)}catch{let c=tS(a);if(!c)throw new O1(`Diagram ${a} not found.`);let{id:h,diagram:u}=await c();ls(h,u)}let{db:o,parser:s,renderer:l,init:d}=Ph(a);return s.parser&&(s.parser.yy=o),o.clear?.(),d?.(i),r.title&&o.setDiagramTitle?.(r.title),await s.parse(t),new ci(a,t,o,s,l)}async render(t,r){await this.renderer.draw(this.text,t,r,this)}getParser(){return this.parser}getType(){return this.type}},n(ci,"Diagram"),ci),Cf=[],jL=n(()=>{Cf.forEach(e=>{e()}),Cf=[]},"attachFunctions"),HL=n(e=>e.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart(),"cleanupComments");function Sw(e){let t=e.match(E1);if(!t)return{text:e,metadata:{}};let r=t[1],i=X$(r?t[2].split(` 302`).map(o=>o.startsWith(r)?o.slice(r.length):o).join(` 303`):t[2],{schema:G$})??{};i=typeof i=="object"&&!Array.isArray(i)?i:{};let a={};return i.displayMode&&(a.displayMode=i.displayMode.toString()),i.title&&(a.title=i.title.toString()),i.config&&(a.config=i.config),{text:e.slice(t[0].length),metadata:a}}n(Sw,"extractFrontMatter");var UL=n(e=>e.replace(/\r\n?/g,` 304`).replace(/<(\w+)([^>]*)>/g,(t,r,i)=>
vendor: 4,379 bytes, lines 304-308
304"<"+r+i.replace(/="([^"]*)"/g,"='$1'")+">"),"cleanupText"),YL=n(e=>{let{text:t,metadata:r}=Sw(e),{displayMode:i,title:a,config:o={}}=r;return i&&(o.gantt||(o.gantt={}),o.gantt.displayMode=i),{title:a,config:o,text:t}},"processFrontmatter"),VL=n(e=>{let t=Xe.detectInit(e)??{},r=Xe.detectDirective(e,"wrap");return Array.isArray(r)?t.wrap=r.some(({type:i})=>i==="wrap"):r?.type==="wrap"&&(t.wrap=!0),{text:kB(e),directive:t}},"processDirectives");function Nu(e){let t=YL(UL(e)),r=VL(t.text),i=Gd(t.config,r.directive);return e=HL(r.text),{code:e,title:t.title,config:i}}n(Nu,"preprocessDiagram");function Bw(e){let t=new TextEncoder().encode(e),r=Array.from(t,i=>String.fromCodePoint(i)).join("");return btoa(r)}n(Bw,"toBase64");var GL=5e4,XL="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa",ZL="sandbox",QL="loose",JL="http://www.w3.org/2000/svg",KL="http://www.w3.org/1999/xlink",tF="http://www.w3.org/1999/xhtml",eF="100%",rF="100%",iF="border:0;margin:0;",aF="margin:0",oF="allow-top-navigation-by-user-activation allow-popups",nF='The "iframe" tag is not supported by your browser.',sF=["foreignobject"],lF=["dominant-baseline"];function zu(e){let t=Nu(e);return ns(),ZT(t.config??{}),t}n(zu,"processAndSetConfigs");async function _w(e,t){rl();try{let{code:r,config:i}=zu(e);return{diagramType:(await Lw(r)).type,config:i}}catch(r){if(t?.suppressErrors)return!1;throw r}}n(_w,"parse");var bf=n((e,t,r=[])=>`.${e} ${t} ${$1(`{ ${r.join(" !important; ")} !important; }`)}`,"cssImportantStyles"),hF=n((e,t=new Map)=>{let r=new CSSStyleSheet;if(e.fontFamily!==void 0&&r.insertRule(`:root { --mermaid-font-family: ${e.fontFamily}}`,r.cssRules.length),e.altFontFamily!==void 0&&r.insertRule(`:root { --mermaid-alt-font-family: ${e.altFontFamily}}`,r.cssRules.length),t instanceof Map){let a=ve(e)?["> *","span"]:["rect","polygon","ellipse","circle","path"];t.forEach(o=>{Hh(o.styles)||a.forEach(s=>{r.insertRule(bf(o.id,s,o.styles),r.cssRules.length)}),Hh(o.textStyles)||r.insertRule(bf(o.id,"tspan",(o?.textStyles||[]).map(s=>s.replace("color","fill"))),r.cssRules.length)})}let i="";if(e.themeCSS!==void 0)if(typeof r.replaceSync=="function"){let a=new CSSStyleSheet;a.replaceSync(e.themeCSS),i=qh(a)+` 305`}else i+=`${e.themeCSS} 306`;return i+qh(r)},"createCssStyles"),cF=n((e,t)=>vs(Cw(`${e}{${t}}`),ww([n(function(r,i,a,o){if(r.type==="rule"&&Array.isArray(r.props)){if(r.parent&&r.parent.type===lc)return;r.props=r.props.map(s=>s===e&&Array.isArray(r.children)&&r.children.every(l=>l.type!=="decl"?!1:new Set(["font-family","font-size","fill"]).has(l.props))||(s.startsWith(`${e} `)||s.startsWith(`${e}>`))&&!s.startsWith(`${e} ||`)?s:`${e} ${s}`)}else r.type.startsWith("@")&&([qL,RL,sw,zL,"@container","@starting-style",lc].includes(r.type)||(et.warn(`Removing unsupported at-rule ${r.type} from CSS`),r.type=Du))},"addNamespace"),kw])),"compileCSS"),dF=n((e,t,r,i)=>cF(i,zS(t,hF(e,r),{...e.themeVariables,theme:e.theme,look:e.look},i)),"createUserStyles"),uF=n((e="",t,r)=>{let i=e;return!r&&!t&&(i=i.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,'marker-end="url(#')),i=Gr(i),i=i.replace(/<br>/g,"<br/>"),i},"cleanUpSvgCode"),pF=n((e="",t)=>`<iframe style="width:${eF};height:${t?.viewBox?.baseVal?.height?t.viewBox.baseVal.height+"px":rF};${iF}" src="data:text/html;charset=UTF-8;base64,${Bw(`<body style="${aF}">${e}</body>`)}" sandbox="${oF}"> 307 ${nF} 308</iframe>`,"putIntoIFrame"),kf=n((e,t,r,i,a)=>{let o=e.append("div");o.attr("id",r),i&&o.attr("style",i);let s=o.append("svg").attr("id",t).attr("width","100%").attr("xmlns",JL);return a&&s.attr("xmlns:xlink",a),s.append("g"),e},"appendDivSvgG");function uc(e,t){return e.append("iframe").attr("id",t).attr("style","width: 100%; height: 100%;").attr("sandbox","")}n(uc,"sandboxedIframe");var gF=n((e,t,r,i)=>{e.getElementById(t)?.remove(),e.getElementById(r)?.remove(),e.getElementById(i)?.remove()},"removeExistingElements"),fF=n(async function(e,t,r){rl();let i=zu(t);t=i.code;let a=Jt();et.debug(a),t.length>(a?.maxTextSize??GL)&&(t=XL);let o=`#${e}`,s="i"+e,l="#"+s,d="d"+e,c="#"+d,h=n(()=>{let W=At(p?l:c).node();W&&"remove"in W&&W.remove()},"removeTempElements"),u=At(document.body),p=a.securityLevel===ZL,g=a.securityLevel===QL,y=a.fontFamily;r!==void 0?(r&&(r.innerHTML=""),p?(u=At(uc(At(r),s).nodes()[0].contentDocument.body),u.node().style.margin="0"):u=At(r),kf(u,e,d,`font-family: ${y}
308`,KL)):(gF(document,e,d,s),p?(u=At(uc(At(document.body),s).nodes()[0].contentDocument.body),u.node().style.margin="0"):u=At("body"),kf(u,e,d));let m,x;try{m=await dc.fromText(t,{title:i.title})}catch(W){if(a.suppressErrorRendering)throw h(),W;m=await dc.fromText("error"),x=W}let C=u.select(c).node(),k=m.type,w=C.firstChild,S=w.firstChild,B=m.renderer.getClasses?.(t,m),_=dF(a,k,B,o),$=document.createElement("style");$.innerHTML=_,w.insertBefore($,S);try{await m.renderer.draw(t,e,"11.17.2",m)}catch(W){throw a.suppressErrorRendering?h():gL.draw(t,e,"11.17.2"),W}let I=u.select(`${c} svg`),U=m.db.getAccTitle?.(),V=m.db.getAccDescription?.();Fw(k,I,U,V);let A=n(()=>{u.select(`[id="${e}"]`).selectAll("foreignobject > *").attr("xmlns",tF);let W=u.select(c).node().innerHTML;if(et.debug("config.arrowMarkerAbsolute",a.arrowMarkerAbsolute),W=uF(W,p,dr(a.arrowMarkerAbsolute)),p){let O=u.select(c+" svg").node();W=pF(W,O)}else g||(W=La.sanitize(W,{ADD_TAGS:sF,ADD_ATTR:lF,HTML_INTEGRATION_POINTS:{foreignobject:!0}}));return jL(),W},"serializeSvg")();if(x)throw x;return h(),{diagramType:k,svg:A,bindFunctions:m.db.bindFunctions}},"render");function $w(e={}){let t=he({},e);t?.fontFamily&&!t.themeVariables?.fontFamily&&(t.themeVariables||(t.themeVariables={}),t.themeVariables.fontFamily=t.fontFamily),GT(t),t?.theme&&t.theme in _r?t.themeVariables=_r[t.theme].getThemeVariables(t.themeVariables):t&&(t.themeVariables=_r.default.getThemeVariables(t.themeVariables)),pc((typeof t=="object"?VT(t):L1()).logLevel),rl()}n($w,"initialize");var Lw=n((e,t={})=>{let{code:r}=Nu(e);return dc.fromText(r,t)},"getDiagramFromText");function Fw(e,t,r,i){vw(t,e),Tw(t,r,i,t.attr("id"))}n(Fw,"addA11yInfo");var Ci=Object.freeze({render:fF,parse:_w,getDiagramFromText:Lw,initialize:$w,getConfig:Jt,setConfig:F1,getSiteConfig:L1,updateSiteConfig:XT,reset:n(()=>{ns()},"reset"),globalReset:n(()=>{ns($a)},"globalReset"),defaultConfig:$a});pc(Jt().logLevel);ns(Jt());var yF=n((e,t,r)=>{et.warn(e),Vd(e)?(r&&r(e.str,e.hash),t.push({...e,message:e.str,error:e})):(r&&r(e),e instanceof Error&&t.push({str:e.message,message:e.message,hash:e.name,error:e}))},"handleError"),Mw=n(async function(e={querySelector:".mermaid"}){try{await mF(e)}catch(t){if(Vd(t)&&et.error(t.str),Ar.parseError&&Ar.parseError(t),!e.suppressErrors)throw et.error("Use the suppressErrors option to suppress these errors"),t}},"run"),mF=n(async function({postRenderCallback:e,querySelector:t,nodes:r}={querySelector:".mermaid"}){let i=Ci.getConfig();et.debug(`${e?"":"No "}Callback function found`);let a;if(r)a=r;else if(t)a=document.querySelectorAll(t);else throw new Error("Nodes and querySelector are both undefined");et.debug(`Found ${a.length} diagrams`),i?.startOnLoad!==void 0&&(et.debug("Start On Load: "+i?.startOnLoad),Ci.updateSiteConfig({startOnLoad:i?.startOnLoad}));let o=new Xe.InitIDGenerator(i.deterministicIds,i.deterministicIDSeed),s,l=[];for(let d of Array.from(a)){if(et.info("Rendering diagram: "+d.id),d.getAttribute("data-processed"))continue;d.setAttribute("data-processed","true");let c=`mermaid-${o.next()}`;s=d.innerHTML,s=Xd(Xe.entityDecode(s)).trim().replace(/<br\s*\/?>/gi,"<br/>");let h=Xe.detectInit(s);h&&et.debug("Detected early reinit: ",h);try{let{svg:u,bindFunctions:p}=await Iw(c,s,d);d.innerHTML=u,e&&await e(c),p&&p(d)}catch(u){yF(u,l,Ar.parseError)}}if(l.length>0)throw l[0]},"runThrowsErrors"),Aw=n(function(e){Ci.initialize(e)},"initialize"),xF=n(async function(e,t,r){et.warn("mermaid.init is deprecated. Please use run instead."),e&&Aw(e);let i={postRenderCallback:r,querySelector:".mermaid"};typeof t=="string"?i.querySelector=t:t&&(t instanceof HTMLElement?i.nodes=[t]:i.nodes=t),await Mw(i)},"init"),CF=n(async(e,{lazyLoad:t=!0}={})=>{rl(),Mh(...e),t===!1&&await DL()},"registerExternalDiagrams"),Ew=n(function(){if(Ar.startOnLoad){let{startOnLoad:e}=Ci.getConfig();e&&Ar.run().catch(t=>et.error("Mermaid failed to initialize",t))}},"contentLoaded");typeof document<"u"&&window.addEventListener("load",Ew,!1);var bF=n(function(e){Ar.parseError=e},"setParseErrorHandler"),Ts=[],Vl=!1,Ow=n(async()=>
vendor: 2,080 bytes, lines 308-309
308{if(!Vl){for(Vl=!0;Ts.length>0;){let e=Ts.shift();if(e)try{await e()}catch(t){et.error("Error executing queue",t)}}Vl=!1}},"executeQueue"),kF=n(async(e,t)=>new Promise((r,i)=>{let a=n(()=>new Promise((o,s)=>{Ci.parse(e,t).then(l=>{o(l),r(l)},l=>{et.error("Error parsing",l),Ar.parseError?.(l),s(l),i(l)})}),"performCall");Ts.push(a),Ow().catch(i)}),"parse"),Iw=n((e,t,r)=>new Promise((i,a)=>{let o=n(()=>new Promise((s,l)=>{Ci.render(e,t,r).then(d=>{s(d),i(d)},d=>{et.error("Error parsing",d),Ar.parseError?.(d),l(d),a(d)})}),"performCall");Ts.push(o),Ow().catch(a)}),"render"),Ar={startOnLoad:!0,mermaidAPI:Ci,parse:kF,render:Iw,init:xF,run:Mw,registerExternalDiagrams:CF,registerLayoutLoaders:J2,initialize:Aw,parseError:void 0,contentLoaded:Ew,setParseErrorHandler:bF,detectType:Bd,registerIconPacks:uB,getRegisteredDiagramsMetadata:n(()=>Object.keys(fi).map(e=>({id:e})),"getRegisteredDiagramsMetadata")},wF=Ar;const r3=Object.freeze(Object.defineProperty({__proto__:null,default:wF},Symbol.toStringTag,{value:"Module"}));export{Es as $,M0 as A,SF as B,Hc as C,IF as D,zv as E,Sa as F,Nv as G,Ox as H,Rv as I,Qn as J,Jt as K,Gd as L,jF as M,Uo as N,BB as O,LB as P,WS as Q,zc as R,mv as S,Ne as T,Nc as U,jr as V,Hb as W,Wv as X,Ri as Y,Q1 as Z,Zn as _,Pt as a,a$,yv as a0,sv as a1,No as a2,KS as a3,Vs as a4,tT as a5,qc as a6,eT as a7,_T as a8,Rx as a9,c$ as aA,d$ as aB,mB as aC,Wb as aD,Jo as aE,uB as aF,tr as aG,dB as aH,Yd as aI,pt as aJ,FF as aK,Ym as aL,Dc as aM,Pv as aN,yt as aO,Ck as aP,ft as aQ,DF as aR,xu as aS,qF as aT,RF as aU,zF as aV,NF as aW,ks as aX,pe as aY,Tt as aZ,we as a_,m_ as aa,Jx as ab,EF as ac,X$ as ad,G$ as ae,Oo as af,AF as ag,FS as ah,Z1 as ai,La as aj,Fp as ak,ts as al,SB as am,PS as an,Ke as ao,N as ap,z as aq,J1 as ar,MF as as,Y$ as at,V2 as au,PF as av,OF as aw,$F as ax,N$ as ay,m$ as az,At as b,r3 as b0,Zo as c,Bs as d,Fr as e,fB as f,LF as g,Qo as h,HS as i,he as j,VS as k,ov as l,n as m,WF as n,YS as o,et as p,Xe as q,US as r,GS as s,jS as t,Y2 as u,ZS as v,_1 as w,Qv as x,cv as y,hv as z}; 309//# sourceMappingURL=DgIaRdc3.js.map
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.