PageSourceSearch

https://aiven.io/remix-chunks/mermaid-CJdBoyFN.js

js aiven.io collected 2026-09-24 08:43:12 UTC 460,287 bytes, 257 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["remix-chunks/dagre-6UL2VRFP-Z6GdhQuc.js","remix-chunks/graph-3f9lssJJ.js","remix-chunks/lodash-DoHr7-26.js","remix-chunks/layout-DtPAiW71.js","remix-chunks/cose-bilkent-S5V4N54A-BYw4WprQ.js","remix-chunks/cytoscape.esm-CovIvyDu.js","remix-chunks/c4Diagram-YG6GDRKO-HD35a8wI.js","remix-chunks/chunk-TZMSLE5B-BGk5uO_K.js","remix-chunks/flowDiagram-NV44I4VS-BYxKYVjM.js","remix-chunks/chunk-FMBD7UC4-DFhXdfbh.js","remix-chunks/chunk-55IACEB6-Dn1M7Knb.js","remix-chunks/chunk-QN33PNHL-CYpMcoon.js","remix-chunks/channel-BeSkp3kl.js","remix-chunks/erDiagram-Q2GNP2WA-BMU6mR0P.js","remix-chunks/gitGraphDiagram-NY62KEGX-YoohI6kz.js","remix-chunks/chunk-4BX2VUAB-DWBTPRsB.js","remix-chunks/chunk-QZHKN3VN-DQaoxQ0b.js","remix-chunks/treemap-KMMF4GRG-DE3rjACX.js","remix-chunks/preload-helper-q99iadPR.js","remix-chunks/ganttDiagram-JELNMOA3-y8EMKRFF.js","remix-chunks/time-qhBCi3Lo.js","remix-chunks/linear-C7rd_8K9.js","remix-chunks/string-gJ3s0zLB.js","remix-chunks/init-D9phAtlY.js","remix-chunks/defaultLocale-BhXcinGY.js","remix-chunks/infoDiagram-WHAUD3N6-pCHt0UZ3.js","remix-chunks/pieDiagram-ADFJNKIX-C-2SDddU.js","remix-chunks/arc-ClRyxwhM.js","remix-chunks/ordinal-BRhNoE_T.js","remix-chunks/quadrantDiagram-AYHSOK5B-CbJT3NuT.js","remix-chunks/xychartDiagram-PRI3JC2R-DJI8LZzS.js","remix-chunks/band-CrGEJApP.js","remix-chunks/requirementDiagram-UZGBJVZJ-B4AbneYY.js","remix-chunks/sequenceDiagram-WL72ISMW-BLFcXvtI.js","remix-chunks/classDiagram-2ON5EDUG-0GGIF90w.js","remix-chunks/chunk-B4BG7PRW-BxvB9ibI.js","remix-chunks/classDiagram-v2-WZHVMYZB-2YUyWkQg.js","remix-chunks/stateDiagram-FKZM4ZOC-BH8Yi6ds.js","remix-chunks/chunk-DI55MBZ5-DPPt2K8m.js","remix-chunks/stateDiagram-v2-4FDKWEC3-CzA7y7zm.js","remix-chunks/journeyDiagram-XKPGCS4Q-B984NDDh.js","remix-chunks/timeline-definition-IT6M3QCI-CSla5FGY.js","remix-chunks/mindmap-definition-VGOIOE7T-D7wNqg_b.js","remix-chunks/kanban-definition-3W4ZIXB7--Q6fDer8.js","remix-chunks/sankeyDiagram-TZEHDZUN-BvMthYFJ.js","remix-chunks/diagram-S2PKOQOG-tq_El6oT.js","remix-chunks/diagram-QEK2KX5R-DWluzBI3.js","remix-chunks/blockDiagram-VD42YOAC-0IInrG6a.js","remix-chunks/architectureDiagram-VXUJARFQ-C-MmQaPx.js","remix-chunks/diagram-PSM6KHXK-CYenVdPx.js"])))=>i.map(i=>d[i]);
2import{r as gr,j as Ml}from"./typography-C5LMSFAT.js";import{_ as pt}from"./preload-helper-q99iadPR.js";import{g as Dp,S as ls,m as Rp,h as wo}from"./lodash-DoHr7-26.js";import{G as El,H as Ki,e as _o,y as je,z as vo,A as Op,B as So,I as Fl,J as $l,K as Dl,L as Rl,M as Ol,N as Il,O as Ip,D as xn,P as Pl,Q as Nl,S as Pp,T as Np,k as Oi,l as zp}from"./string-gJ3s0zLB.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};e.SENTRY_RELEASE={id:"bb7bd624a8a3321ff6d1587f421551039a69f342"}}catch{}})();try{(function(){var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="5c3c6fc8-1de7-46ca-86b4-f8ea6971c8ff",e._sentryDebugIdIdentifier="sentry-dbid-5c3c6fc8-1de7-46ca-86b4-f8ea6971c8ff")})()}catch{}function zl(e,t){this._basis=new El(e),this._beta=t}zl.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,r=e.length-1;if(r>0)for(var i=e[0],a=t[0],n=e[r]-i,s=t[r]-a,o=-1,l;++o<=r;)l=o/r,this._basis.point(this._beta*e[o]+(1-this._beta)*(i+l*n),this._beta*t[o]+(1-this._beta)*(a+l*s));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};const Wp=(function e(t){function r(i){return t===1?new El(i):new zl(i,t)}return r.beta=function(i){return e(+i)},r})(.85);function Qi(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)}function cs(e,t){this._context=e,this._k=(1-t)/6}cs.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:Qi(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point: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:Qi(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}};const Wl=(function e(t){function r(i){return new cs(i,t)}return r.tension=function(i){return e(+i)},r})(0);function hs(e,t){this._context=e,this._k=(1-t)/6}hs.prototype={areaStart:Ki,areaEnd:Ki,lineStart: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},lineEnd: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}}},point: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:Qi(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}};const qp=(function e(t){function r(i){return new hs(i,t)}return r.tension=function(i){return e(+i)},r})(0);function us(e,t){this._context=e,this._k=(1-t)/6}us.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point: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:Qi(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}};const Hp=(function e(t){function r(i){return new us(i,t)}return r.tension=function(i){return e(+i)},r})(0);function ds(e,t,r){var i=e._x1,a=e._y1,n=e._x2,s=e._y2;if(e._l01_a>_o){var o=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,l=3*e._l01_a*(e._l01_a+e._l12_a);i=(i*o-e._x0*e._l12_2a+e._x2*e._l01_2a)/l,a=(a*o-e._y0*e._l12_2a+e._y2*e._l01_2a)/l}if(e._l23_a>_o){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);n=(n*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,n,s,e._x2,e._y2)}function ql(e,t){this._context=e,this._alpha=t}ql.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart: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},lineEnd: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},point: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:ds(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}};const Hl=(function e(t){function r(i){return t?new ql(i,t):new cs(i,0)}return r.alpha=function(i){return e(+i)},r})(.5);function Yl(e,t){this._context=e,this._alpha=t}Yl.prototype={areaStart:Ki,areaEnd:Ki,lineStart: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},lineEnd: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}}},point: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:ds(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}};const Yp=(function e(t){function r(i){return t?new Yl(i,t):new hs(i,0)}return r.alpha=function(i){return e(+i)},r})(.5);function Ul(e,t){this._context=e,this._alpha=t}Ul.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart: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},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point: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:ds(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}};const Up=(function e(t){function r(i){return t?new Ul(i,t):new us(i,0)}return r.alpha=function(i){return e(+i)},r})(.5);var To=180/Math.PI,bn={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function jl(e,t,r,i,a,n){var s,o,l;return(s=Math.sqrt(e*e+t*t))&&(e/=s,t/=s),(l=e*r+t*i)&&(r-=e*l,i-=t*l),(o=Math.sqrt(r*r+i*i))&&(r/=o,i/=o,l/=o),e*i<t*r&&(e=-e,t=-t,l=-l,s=-s),{translateX:a,translateY:n,rotate:Math.atan2(t,e)*To,skewX:Math.atan(l)*To,scaleX:s,scaleY:o}}var Ti;function jp(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?bn:jl(t.a,t.b,t.c,t.d,t.e,t.f)}function Gp(e){return e==null||(Ti||(Ti=document.createElementNS("http://www.w3.org/2000/svg","g")),Ti.setAttribute("transform",e),!(e=Ti.transform.baseVal.consolidate()))?bn:(e=e.matrix,jl(e.a,e.b,e.c,e.d,e.e,e.f))}
2function Gl(e,t,r,i){function a(c){return c.length?c.pop()+" ":""}function n(c,h,u,d,f,g){if(c!==u||h!==d){var m=f.push("translate(",null,t,null,r);g.push({i:m-4,x:je(c,u)},{i:m-2,x:je(h,d)})}else(u||d)&&f.push("translate("+u+t+d+r)}function s(c,h,u,d){c!==h?(c-h>180?h+=360:h-c>180&&(c+=360),d.push({i:u.push(a(u)+"rotate(",null,i)-2,x:je(c,h)})):h&&u.push(a(u)+"rotate("+h+i)}function o(c,h,u,d){c!==h?d.push({i:u.push(a(u)+"skewX(",null,i)-2,x:je(c,h)}):h&&u.push(a(u)+"skewX("+h+i)}function l(c,h,u,d,f,g){if(c!==u||h!==d){var m=f.push(a(f)+"scale(",null,",",null,")");g.push({i:m-4,x:je(c,u)},{i:m-2,x:je(h,d)})}else(u!==1||d!==1)&&f.push(a(f)+"scale("+u+","+d+")")}return function(c,h){var u=[],d=[];return c=e(c),h=e(h),n(c.translateX,c.translateY,h.translateX,h.translateY,u,d),s(c.rotate,h.rotate,u,d),o(c.skewX,h.skewX,u,d),l(c.scaleX,c.scaleY,h.scaleX,h.scaleY,u,d),c=h=null,function(f){for(var g=-1,m=d.length,y;++g<m;)u[(y=d[g]).i]=y.x(f);return u.join("")}}}var Vp=Gl(jp,"px, ","px)","deg)"),Xp=Gl(Gp,", ",")",")"),Lo={name:"mermaid",version:"11.12.2",description:"Markdown-ish syntax for generating flowcharts, mindmaps, sequence diagrams, class diagrams, gantt charts, git graphs and more.",type:"module",module:"./dist/mermaid.core.mjs",types:"./dist/mermaid.d.ts",exports:{".":{types:"./dist/mermaid.d.ts",import:"./dist/mermaid.core.mjs",default:"./dist/mermaid.core.mjs"},"./*":"./*"},keywords:["diagram","markdown","flowchart","sequence diagram","gantt","class diagram","git graph","mindmap","packet diagram","c4 diagram","er diagram","pie chart","pie diagram","quadrant chart","requirement diagram","graph"],scripts:{clean:"rimraf dist",dev:"pnpm -w dev","docs:code":"typedoc src/defaultConfig.ts src/config.ts src/mermaid.ts && prettier --write ./src/docs/config/setup","docs:build":"rimraf ../../docs && pnpm docs:code && pnpm docs:spellcheck && tsx scripts/docs.cli.mts","docs:verify":"pnpm docs:code && pnpm docs:spellcheck && tsx scripts/docs.cli.mts --verify","docs:pre:vitepress":"pnpm --filter ./src/docs prefetch && rimraf src/vitepress && pnpm docs:code && tsx scripts/docs.cli.mts --vitepress && pnpm --filter ./src/vitepress install --no-frozen-lockfile --ignore-scripts","docs:build:vitepress":"pnpm docs:pre:vitepress && (cd src/vitepress && pnpm run build) && cpy --flat src/docs/landing/ ./src/vitepress/.vitepress/dist/landing","docs:dev":'pnpm docs:pre:vitepress && concurrently "pnpm --filter ./src/vitepress dev" "tsx scripts/docs.cli.mts --watch --vitepress"',"docs:dev:docker":'pnpm docs:pre:vitepress && concurrently "pnpm --filter ./src/vitepress dev:docker" "tsx scripts/docs.cli.mts --watch --vitepress"',"docs:serve":"pnpm docs:build:vitepress && vitepress serve src/vitepress","docs:spellcheck":'cspell "src/docs/**/*.md"',"docs:release-version":"tsx scripts/update-release-version.mts","docs:verify-version":"tsx scripts/update-release-version.mts --verify","types:build-config":"tsx scripts/create-types-from-json-schema.mts","types:verify-config":"tsx scripts/create-types-from-json-schema.mts --verify",checkCircle:"npx madge --circular ./src",prepublishOnly:"pnpm docs:verify-version"},repository:{type:"git",url:"https://github.com/mermaid-js/mermaid"},author:"Knut Sveidqvist",license:"MIT",standard:{ignore:["**/parser/*.js","dist/**/*.js","cypress/**/*.js"],globals:["page"]},dependencies:{"@braintree/sanitize-url":"^7.1.1","@iconify/utils":"^3.0.1","@mermaid-js/parser":"workspace:^","@types/d3":"^7.4.3",cytoscape:"^3.29.3","cytoscape-cose-bilkent":"^4.1.0","cytoscape-fcose":"^2.2.0",d3:"^7.9.0","d3-sankey":"^0.12.3","dagre-d3-es":"7.0.13",dayjs:"^1.11.18",dompurify:"^3.2.5",katex:"^0.16.22",khroma:"^2.1.0","lodash-es":"^4.17.21",marked:"^16.2.1",roughjs:"^4.6.6",stylis:"^4.3.6","ts-dedent":"^2.2.0",uuid:"^11.1.0"},devDependencies:{"@adobe/jsonschema2md":"^8.0.5","@iconify/types":"^2.0.0","@types/cytoscape":"^3.21.9","@types/cytoscape-fcose":"^2.2.4","@types/d3-sankey":"^0.12.4","@types/d3-scale":"^4.0.9","@types/d3-scale-chromatic":"^3.1.0","@types/d3-selection":"^3.0.11","@types/d3-shape":"^3.1.7","@types/jsdom":"^21.1.7","@types/katex":"^0.16.7","@types/lodash-es":"^4.17.12","@types/micromatch":"^4.0.9","@types/stylis":"^4.2.7","@types/uuid":"^10.0.0",ajv:"^8.17.1",canvas:"^3.1.2",chokidar:"3.6.0",concurrently:"^9.1.2","csstree-validator":"^4.0.1",globby:"^14.1.0",jison:"^0.4.18","js-base64":"^3.7.8",jsdom:"^26.1.0","json-schema-to-typescript":"^15.0.4",micromatch:"^4.0.8","path-browserify":"^1.0.1",prettier:"^3.5.3",remark:"^15.0.1","remark-frontmatter":"^5.0.0","remark-gfm":"^4.0.1",rimraf:"^6.0.1","start-server-and-test":"^2.0.13","type-fest":"^4.35.0",typedoc:"^0.28.12","typedoc-plugin-markdown":"^4.8.1",typescript:"~5.7.3","unist-util-flatmap":"^1.0.0","unist-util-visit":"^5.0.0",vitepress:"^1.6.4","vitepress-plugin-search":"1.0.4-alpha.22"},files:["dist/","README.md"],publishConfig:{access:"public"}},Ii={exports:{}},Zp=Ii.exports,Bo;function Kp(){return Bo||(Bo=1,(function(e,t){(function(r,i){e.exports=i()})(Zp,(function(){var r=1e3,i=6e4,a=36e5,n="millisecond",s="second",o="minute",l="hour",c="day",h="week",u="month",d="quarter",f="year",g="date",m="Invalid Date",y=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,x=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}
vendor: 4,125 bytes, line 2
2|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,b={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:function(L){var A=["th","st","nd","rd"],T=L%100;return"["+L+(A[(T-20)%10]||A[T]||A[0])+"]"}},C=function(L,A,T){var F=String(L);return!F||F.length>=A?L:""+Array(A+1-F.length).join(T)+L},_={s:C,z:function(L){var A=-L.utcOffset(),T=Math.abs(A),F=Math.floor(T/60),M=T%60;return(A<=0?"+":"-")+C(F,2,"0")+":"+C(M,2,"0")},m:function L(A,T){if(A.date()<T.date())return-L(T,A);var F=12*(T.year()-A.year())+(T.month()-A.month()),M=A.clone().add(F,u),q=T-M<0,V=A.clone().add(F+(q?-1:1),u);return+(-(F+(T-M)/(q?M-V:V-M))||0)},a:function(L){return L<0?Math.ceil(L)||0:Math.floor(L)},p:function(L){return{M:u,y:f,w:h,d:c,D:g,h:l,m:o,s,ms:n,Q:d}[L]||String(L||"").toLowerCase().replace(/s$/,"")},u:function(L){return L===void 0}},w="en",B={};B[w]=b;var S="$isDayjsObject",D=function(L){return L instanceof N||!(!L||!L[S])},I=function L(A,T,F){var M;if(!A)return w;if(typeof A=="string"){var q=A.toLowerCase();B[q]&&(M=q),T&&(B[q]=T,M=q);var V=A.split("-");if(!M&&V.length>1)return L(V[0])}else{var K=A.name;B[K]=A,M=K}return!F&&M&&(w=M),M||!F&&w},R=function(L,A){if(D(L))return L.clone();var T=typeof A=="object"?A:{};return T.date=L,T.args=arguments,new N(T)},E=_;E.l=I,E.i=D,E.w=function(L,A){return R(L,{locale:A.$L,utc:A.$u,x:A.$x,$offset:A.$offset})};var N=(function(){function L(T){this.$L=I(T.locale,null,!0),this.parse(T),this.$x=this.$x||T.x||{},this[S]=!0}var A=L.prototype;return A.parse=function(T){this.$d=(function(F){var M=F.date,q=F.utc;if(M===null)return new Date(NaN);if(E.u(M))return new Date;if(M instanceof Date)return new Date(M);if(typeof M=="string"&&!/Z$/i.test(M)){var V=M.match(y);if(V){var K=V[2]-1||0,J=(V[7]||"0").substring(0,3);return q?new Date(Date.UTC(V[1],K,V[3]||1,V[4]||0,V[5]||0,V[6]||0,J)):new Date(V[1],K,V[3]||1,V[4]||0,V[5]||0,V[6]||0,J)}}return new Date(M)})(T),this.init()},A.init=function(){var T=this.$d;this.$y=T.getFullYear(),this.$M=T.getMonth(),this.$D=T.getDate(),this.$W=T.getDay(),this.$H=T.getHours(),this.$m=T.getMinutes(),this.$s=T.getSeconds(),this.$ms=T.getMilliseconds()},A.$utils=function(){return E},A.isValid=function(){return this.$d.toString()!==m},A.isSame=function(T,F){var M=R(T);return this.startOf(F)<=M&&M<=this.endOf(F)},A.isAfter=function(T,F){return R(T)<this.startOf(F)},A.isBefore=function(T,F){return this.endOf(F)<R(T)},A.$g=function(T,F,M){return E.u(T)?this[F]:this.set(M,T)},A.unix=function(){return Math.floor(this.valueOf()/1e3)},A.valueOf=function(){return this.$d.getTime()},A.startOf=function(T,F){var M=this,q=!!E.u(F)||F,V=E.p(T),K=function(ee,yt){var re=E.w(M.$u?Date.UTC(M.$y,yt,ee):new Date(M.$y,yt,ee),M);return q?re:re.endOf(c)},J=function(ee,yt){return E.w(M.toDate()[ee].apply(M.toDate("s"),(q?[0,0,0,0]:[23,59,59,999]).slice(yt)),M)},Z=this.$W,ct=this.$M,nt=this.$D,bt="set"+(this.$u?"UTC":"");switch(V){case f:return q?K(1,0):K(31,11);case u:return q?K(1,ct):K(0,ct+1);case h:var Ct=this.$locale().weekStart||0,Pt=(Z<Ct?Z+7:Z)-Ct;return K(q?nt-Pt:nt+(6-Pt),ct);case c:case g:return J(bt+"Hours",0);case l:return J(bt+"Minutes",1);case o:return J(bt+"Seconds",2);case s:return J(bt+"Milliseconds",3);default:return this.clone()}},A.endOf=function(T){return this.startOf(T,!1)},A.$set=function(T,F){var M,q=E.p(T),V="set"+(this.$u?"UTC":""),K=(M={},M[c]=V+"Date",M[g]=V+"Date",M[u]=V+"Month",M[f]=V+"FullYear",M[l]=V+"Hours",M[o]=V+"Minutes",M[s]=V+"Seconds",M[n]=V+"Milliseconds",M)[q],J=q===c?this.$D+(F-this.$W):F;if(q===u||q===f){var Z=this.clone().set(g,1);Z.$d[K](J),Z.init(),this.$d=Z.set(g,Math.min(this.$D,Z.daysInMonth())).$d}else K&&this.$d[K](J);return this.init(),this},A.set=function(T,F){return this.clone().$set(T,F)},A.get=function(T){return this[E.p(T)]()},A.add=function(T,F){var M,q=this;T=Number(T);var V=E.p(F),K=function(ct){var nt=R(q);return E.w(nt.date(nt.date()+Math.round(ct*T)),q)};if(V===u)return this.set(u,this.$M+T);if(V===f)return this.set(f,this.$y+T);if(V===c)return K(1);
2if(V===h)return K(7);var J=(M={},M[o]=i,M[l]=a,M[s]=r,M)[V]||1,Z=this.$d.getTime()+T*J;return E.w(Z,this)},A.subtract=function(T,F){return this.add(-1*T,F)},A.format=function(T){var F=this,M=this.$locale();if(!this.isValid())return M.invalidDate||m;var q=T||"YYYY-MM-DDTHH:mm:ssZ",V=E.z(this),K=this.$H,J=this.$m,Z=this.$M,ct=M.weekdays,nt=M.months,bt=M.meridiem,Ct=function(yt,re,$e,ie){return yt&&(yt[re]||yt(F,q))||$e[re].slice(0,ie)},Pt=function(yt){return E.s(K%12||12,yt,"0")},ee=bt||function(yt,re,$e){var ie=yt<12?"AM":"PM";return $e?ie.toLowerCase():ie};return q.replace(x,(function(yt,re){return re||(function($e){switch($e){case"YY":return String(F.$y).slice(-2);case"YYYY":return E.s(F.$y,4,"0");case"M":return Z+1;case"MM":return E.s(Z+1,2,"0");case"MMM":return Ct(M.monthsShort,Z,nt,3);case"MMMM":return Ct(nt,Z);case"D":return F.$D;case"DD":return E.s(F.$D,2,"0");case"d":return String(F.$W);case"dd":return Ct(M.weekdaysMin,F.$W,ct,2);case"ddd":return Ct(M.weekdaysShort,F.$W,ct,3);case"dddd":return ct[F.$W];case"H":return String(K);case"HH":return E.s(K,2,"0");case"h":return Pt(1);case"hh":return Pt(2);case"a":return ee(K,J,!0);case"A":return ee(K,J,!1);case"m":return String(J);case"mm":return E.s(J,2,"0");case"s":return String(F.$s);case"ss":return E.s(F.$s,2,"0");case"SSS":return E.s(F.$ms,3,"0");case"Z":return V}return null})(yt)||V.replace(":","")}))},A.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},A.diff=function(T,F,M){var q,V=this,K=E.p(F),J=R(T),Z=(J.utcOffset()-this.utcOffset())*i,ct=this-J,nt=function(){return E.m(V,J)};switch(K){case f:q=nt()/12;break;case u:q=nt();break;case d:q=nt()/3;break;case h:q=(ct-Z)/6048e5;break;case c:q=(ct-Z)/864e5;break;case l:q=ct/a;break;case o:q=ct/i;break;case s:q=ct/r;break;default:q=ct}return M?q:E.a(q)},A.daysInMonth=function(){return this.endOf(u).$D},A.$locale=function(){return B[this.$L]},A.locale=function(T,F){if(!T)return this.$L;var M=this.clone(),q=I(T,F,!0);return q&&(M.$L=q),M},A.clone=function(){return E.w(this.$d,this)},A.toDate=function(){return new Date(this.valueOf())},A.toJSON=function(){return this.isValid()?this.toISOString():null},A.toISOString=function(){return this.$d.toISOString()},A.toString=function(){return this.$d.toUTCString()},L})(),O=N.prototype;return R.prototype=O,[["$ms",n],["$s",s],["$m",o],["$H",l],["$W",c],["$M",u],["$y",f],["$D",g]].forEach((function(L){O[L[1]]=function(A){return this.$g(A,L[0],L[1])}})),R.extend=function(L,A){return L.$i||(L(A,N,R),L.$i=!0),R},R.locale=I,R.isDayjs=D,R.unix=function(L){return R(1e3*L)},R.en=B[w],R.Ls=B,R.p={},R}))})(Ii)),Ii.exports}var Qp=Kp();const Jp=Dp(Qp);var Vl=Object.defineProperty,p=(e,t)=>Vl(e,"name",{value:t,configurable:!0}),tg=(e,t)=>{for(var r in t)Vl(e,r,{get:t[r],enumerable:!0})},ve={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},$={trace:p((...e)=>{},"trace"),debug:p((...e)=>{},"debug"),info:p((...e)=>{},"info"),warn:p((...e)=>{},"warn"),error:p((...e)=>{},"error"),fatal:p((...e)=>{},"fatal")},fs=p(function(e="fatal"){let t=ve.fatal;typeof e=="string"?e.toLowerCase()in ve&&(t=ve[e]):typeof e=="number"&&(t=e),$.trace=()=>{},$.debug=()=>{},$.info=()=>{},$.warn=()=>{},$.error=()=>{},$.fatal=()=>{},t<=ve.fatal&&($.fatal=console.error?console.error.bind(console,Kt("FATAL"),"color: orange"):console.log.bind(console,"\x1B[35m",Kt("FATAL"))),t<=ve.error&&($.error=console.error?console.error.bind(console,Kt("ERROR"),"color: orange"):console.log.bind(console,"\x1B[31m",Kt("ERROR"))),t<=ve.warn&&($.warn=console.warn?console.warn.bind(console,Kt("WARN"),"color: orange"):console.log.bind(console,"\x1B[33m",Kt("WARN"))),t<=ve.info&&($.info=console.info?console.info.bind(console,Kt("INFO"),"color: lightblue"):console.log.bind(console,"\x1B[34m",Kt("INFO"))),t<=ve.debug&&($.debug=console.debug?console.debug.bind(console,Kt("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",Kt("DEBUG"))),t<=ve.trace&&($.trace=console.debug?console.debug.bind(console,Kt("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",Kt("TRACE")))},"setLogLevel"),Kt=p(e=>`%c${Jp().format("ss.SSS")} : ${e} : `,"format");const Pi={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:e=>e>=255?255:e<0?0:e,g:e=>e>=255?255:e<0?0:e,b:e=>e>=255?255:e<0?0:e,h:e=>e%360,s:e=>e>=100?100:e<0?0:e,l:e=>e>=100?100:e<0?0:e,a:e=>e>=1?1:e<0?0:e},toLinear:e=>{const t=e/255;return e>.03928?Math.pow((t+.055)/1.055,2.4):t/12.92},hue2rgb:(e,t,r)=>(r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e),hsl2rgb:({h:e,s:t,l:r},i)=>{if(!t)return r*2.55;e/=360,t/=100,r/=100;const a=r<.5?r*(1+t):r+t-r*t,n=2*r-a;switch(i){case"r":return Pi.hue2rgb(n,a,e+1/3)*255;case"g":return Pi.hue2rgb(n,a,e)*255;case"b":return Pi.hue2rgb(n,a,e-1/3)*255}},rgb2hsl:({r:e,g:t,b:r},i)=>{e/=255,t/=255,r/=255;const a=Math.max(e,t,r),n=Math.min(e,t,r),s=(a+n)/2;if(i==="l")return s*100;if(a===n)return 0;const o=a-n,l=s>.5?o/(2-a-n):o/(a+n);if(i==="s")return l*100;switch(a){case e:return((t-r)/o+(t<r?6:0))*60;case t:return((r-e)/o+2)*60;case r:return((e-t)/o+4)*60;default:return-1}}},eg={clamp:(e,t,r)=>t>r?Math.min(t,Math.max(r,e)):Math.min(r,Math.max(t,e)),round:e=>Math.round(e*1e10)/1e10},rg={dec2hex:e=>{const t=Math.round(e).toString(16);return t.length>1?t:`0${t}`}},st={channel:Pi,lang:eg,unit:rg},De={};for(let e=0;e<=255;e++)De[e]=st.unit.dec2hex(e);const Ft={ALL:0,RGB:1,HSL:2};class ig{constructor(){this.type=Ft.ALL}get(){return this.type}
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=Ft.ALL}is(t){return this.type===t}}class ag{constructor(t,r){this.color=r,this.changed=!1,this.data=t,this.type=new ig}set(t,r){return this.color=r,this.changed=!1,this.data=t,this.type.type=Ft.ALL,this}_ensureHSL(){const t=this.data,{h:r,s:i,l:a}=t;r===void 0&&(t.h=st.channel.rgb2hsl(t,"h")),i===void 0&&(t.s=st.channel.rgb2hsl(t,"s")),a===void 0&&(t.l=st.channel.rgb2hsl(t,"l"))}_ensureRGB(){const t=this.data,{r,g:i,b:a}=t;r===void 0&&(t.r=st.channel.hsl2rgb(t,"r")),i===void 0&&(t.g=st.channel.hsl2rgb(t,"g")),a===void 0&&(t.b=st.channel.hsl2rgb(t,"b"))}get r(){const t=this.data,r=t.r;return!this.type.is(Ft.HSL)&&r!==void 0?r:(this._ensureHSL(),st.channel.hsl2rgb(t,"r"))}get g(){const t=this.data,r=t.g;return!this.type.is(Ft.HSL)&&r!==void 0?r:(this._ensureHSL(),st.channel.hsl2rgb(t,"g"))}get b(){const t=this.data,r=t.b;return!this.type.is(Ft.HSL)&&r!==void 0?r:(this._ensureHSL(),st.channel.hsl2rgb(t,"b"))}get h(){const t=this.data,r=t.h;return!this.type.is(Ft.RGB)&&r!==void 0?r:(this._ensureRGB(),st.channel.rgb2hsl(t,"h"))}get s(){const t=this.data,r=t.s;return!this.type.is(Ft.RGB)&&r!==void 0?r:(this._ensureRGB(),st.channel.rgb2hsl(t,"s"))}get l(){const t=this.data,r=t.l;return!this.type.is(Ft.RGB)&&r!==void 0?r:(this._ensureRGB(),st.channel.rgb2hsl(t,"l"))}get a(){return this.data.a}set r(t){this.type.set(Ft.RGB),this.changed=!0,this.data.r=t}set g(t){this.type.set(Ft.RGB),this.changed=!0,this.data.g=t}set b(t){this.type.set(Ft.RGB),this.changed=!0,this.data.b=t}set h(t){this.type.set(Ft.HSL),this.changed=!0,this.data.h=t}set s(t){this.type.set(Ft.HSL),this.changed=!0,this.data.s=t}set l(t){this.type.set(Ft.HSL),this.changed=!0,this.data.l=t}set a(t){this.changed=!0,this.data.a=t}}const Sa=new ag({r:0,g:0,b:0,a:0},"transparent"),mr={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:e=>{if(e.charCodeAt(0)!==35)return;const t=e.match(mr.re);if(!t)return;const r=t[1],i=parseInt(r,16),a=r.length,n=a%4===0,s=a>4,o=s?1:17,l=s?8:4,c=n?0:-1,h=s?255:15;return Sa.set({r:(i>>l*(c+3)&h)*o,g:(i>>l*(c+2)&h)*o,b:(i>>l*(c+1)&h)*o,a:n?(i&h)*o/255:1},e)},stringify:e=>{const{r:t,g:r,b:i,a}=e;return a<1?`#${De[Math.round(t)]}${De[Math.round(r)]}${De[Math.round(i)]}${De[Math.round(a*255)]}`:`#${De[Math.round(t)]}${De[Math.round(r)]}${De[Math.round(i)]}`}},Ve={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:e=>{const t=e.match(Ve.hueRe);if(t){const[,r,i]=t;switch(i){case"grad":return st.channel.clamp.h(parseFloat(r)*.9);case"rad":return st.channel.clamp.h(parseFloat(r)*180/Math.PI);case"turn":return st.channel.clamp.h(parseFloat(r)*360)}}return st.channel.clamp.h(parseFloat(e))},parse:e=>{const t=e.charCodeAt(0);if(t!==104&&t!==72)return;const r=e.match(Ve.re);if(!r)return;const[,i,a,n,s,o]=r;return Sa.set({h:Ve._hue2deg(i),s:st.channel.clamp.s(parseFloat(a)),l:st.channel.clamp.l(parseFloat(n)),a:s?st.channel.clamp.a(o?parseFloat(s)/100:parseFloat(s)):1},e)},stringify:e=>{const{h:t,s:r,l:i,a}=e;return a<1?`hsla(${st.lang.round(t)}, ${st.lang.round(r)}%, ${st.lang.round(i)}%, ${a})`:`hsl(${st.lang.round(t)}, ${st.lang.round(r)}%, ${st.lang.round(i)}%)`}},Jr={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",s
2almon:"#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:e=>{e=e.toLowerCase();const t=Jr.colors[e];if(t)return mr.parse(t)},stringify:e=>{const t=mr.stringify(e);for(const r in Jr.colors)if(Jr.colors[r]===t)return r}},Yr={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:e=>{const t=e.charCodeAt(0);if(t!==114&&t!==82)return;const r=e.match(Yr.re);if(!r)return;const[,i,a,n,s,o,l,c,h]=r;return Sa.set({r:st.channel.clamp.r(a?parseFloat(i)*2.55:parseFloat(i)),g:st.channel.clamp.g(s?parseFloat(n)*2.55:parseFloat(n)),b:st.channel.clamp.b(l?parseFloat(o)*2.55:parseFloat(o)),a:c?st.channel.clamp.a(h?parseFloat(c)/100:parseFloat(c)):1},e)},stringify:e=>{const{r:t,g:r,b:i,a}=e;return a<1?`rgba(${st.lang.round(t)}, ${st.lang.round(r)}, ${st.lang.round(i)}, ${st.lang.round(a)})`:`rgb(${st.lang.round(t)}, ${st.lang.round(r)}, ${st.lang.round(i)})`}},xe={format:{keyword:Jr,hex:mr,rgb:Yr,rgba:Yr,hsl:Ve,hsla:Ve},parse:e=>{if(typeof e!="string")return e;const t=mr.parse(e)||Yr.parse(e)||Ve.parse(e)||Jr.parse(e);if(t)return t;throw new Error(`Unsupported color format: "${e}"`)},stringify:e=>!e.changed&&e.color?e.color:e.type.is(Ft.HSL)||e.data.r===void 0?Ve.stringify(e):e.a<1||!Number.isInteger(e.r)||!Number.isInteger(e.g)||!Number.isInteger(e.b)?Yr.stringify(e):mr.stringify(e)},Xl=(e,t)=>{const r=xe.parse(e);for(const i in t)r[i]=st.channel.clamp[i](t[i]);return xe.stringify(r)},ti=(e,t,r=0,i=1)=>{if(typeof e!="number")return Xl(e,{a:t});const a=Sa.set({r:st.channel.clamp.r(e),g:st.channel.clamp.g(t),b:st.channel.clamp.b(r),a:st.channel.clamp.a(i)});return xe.stringify(a)},ng=e=>{const{r:t,g:r,b:i}=xe.parse(e),a=.2126*st.channel.toLinear(t)+.7152*st.channel.toLinear(r)+.0722*st.channel.toLinear(i);return st.lang.round(a)},sg=e=>ng(e)>=.5,di=e=>!sg(e),Zl=(e,t,r)=>{const i=xe.parse(e),a=i[t],n=st.channel.clamp[t](a+r);return a!==n&&(i[t]=n),xe.stringify(i)},H=(e,t)=>Zl(e,"l",t),et=(e,t)=>Zl(e,"l",-t),v=(e,t)=>{const r=xe.parse(e),i={};for(const a in t)t[a]&&(i[a]=r[a]+t[a]);return Xl(e,i)},og=(e,t,r=50)=>{const{r:i,g:a,b:n,a:s}=xe.parse(e),{r:o,g:l,b:c,a:h}=xe.parse(t),u=r/100,d=u*2-1,f=s-h,m=((d*f===-1?d:(d+f)/(1+d*f))+1)/2,y=1-m,x=i*m+o*y,b=a*m+l*y,C=n*m+c*y,_=s*u+h*(1-u);return ti(x,b,C,_)},z=(e,t=100)=>{const r=xe.parse(e);return r.r=255-r.r,r.g=255-r.g,r.b=255-r.b,og(r,e,t)};/*! @license DOMPurify 3.3.1 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.1/LICENSE */const{entries:Kl,setPrototypeOf:Ao,isFrozen:lg,getPrototypeOf:cg,getOwnPropertyDescriptor:hg}=Object;let{freeze:Ht,seal:Qt,create:Cn}=Object,{apply:kn,construct:wn}=typeof Reflect<"u"&&Reflect;Ht||(Ht=function(t){return t});Qt||(Qt=function(t){return t});kn||(kn=function(t,r){for(var i=arguments.length,a=new Array(i>2?i-2:0),n=2;n<i;n++)a[n-2]=arguments[n];return t.apply(r,a)});wn||(wn=function(t){for(var r=arguments.length,i=new Array(r>1?r-1:0),a=1;a<r;a++)i[a-1]=arguments[a];return new t(...i)});const Li=Yt(Array.prototype.forEach),ug=Yt(Array.prototype.lastIndexOf),Mo=Yt(Array.prototype.pop),$r=Yt(Array.prototype.push),dg=Yt(Array.prototype.splice),Ni=Yt(String.prototype.toLowerCase),en=Yt(String.prototype.toString),rn=Yt(String.prototype.match),Dr=Yt(String.prototype.replace),fg=Yt(String.prototype.indexOf),pg=Yt(String.prototype.trim),ae=Yt(Object.prototype.hasOwnProperty),Nt=Yt(RegExp.prototype.test),Rr=gg(TypeError);function Yt(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 kn(e,t,i)}}function gg(e){return function(){for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return wn(e,r)}}function ot(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ni;Ao&&Ao(e,null);let i=t.length;for(;i--;){let a=t[i];
2if(typeof a=="string"){const n=r(a);n!==a&&(lg(t)||(t[i]=n),a=n)}e[a]=!0}return e}function mg(e){for(let t=0;t<e.length;t++)ae(e,t)||(e[t]=null);return e}function pe(e){const t=Cn(null);for(const[r,i]of Kl(e))ae(e,r)&&(Array.isArray(i)?t[r]=mg(i):i&&typeof i=="object"&&i.constructor===Object?t[r]=pe(i):t[r]=i);return t}function Or(e,t){for(;e!==null;){const i=hg(e,t);if(i){if(i.get)return Yt(i.get);if(typeof i.value=="function")return Yt(i.value)}e=cg(e)}function r(){return null}return r}const Eo=Ht(["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"]),an=Ht(["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"]),nn=Ht(["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"]),yg=Ht(["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"]),sn=Ht(["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"]),xg=Ht(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Fo=Ht(["#text"]),$o=Ht(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","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","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),on=Ht(["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","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-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"]),Do=Ht(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","
2subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Bi=Ht(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),bg=Qt(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Cg=Qt(/<%[\w\W]*|[\w\W]*%>/gm),kg=Qt(/\$\{[\w\W]*/gm),wg=Qt(/^data-[\-\w.\u00B7-\uFFFF]+$/),_g=Qt(/^aria-[\-\w]+$/),Ql=Qt(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),vg=Qt(/^(?:\w+script|data):/i),Sg=Qt(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Jl=Qt(/^html$/i),Tg=Qt(/^[a-z][.\w]*(-[.\w]+)+$/i);var Ro=Object.freeze({__proto__:null,ARIA_ATTR:_g,ATTR_WHITESPACE:Sg,CUSTOM_ELEMENT:Tg,DATA_ATTR:wg,DOCTYPE_NAME:Jl,ERB_EXPR:Cg,IS_ALLOWED_URI:Ql,IS_SCRIPT_OR_DATA:vg,MUSTACHE_EXPR:bg,TMPLIT_EXPR:kg});const Ir={element:1,text:3,progressingInstruction:7,comment:8,document:9},Lg=function(){return typeof window>"u"?null:window},Bg=function(t,r){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let i=null;const a="data-tt-policy-suffix";r&&r.hasAttribute(a)&&(i=r.getAttribute(a));const n="dompurify"+(i?"#"+i:"");try{return t.createPolicy(n,{createHTML(s){return s},createScriptURL(s){return s}})}catch{return console.warn("TrustedTypes policy "+n+" could not be created."),null}},Oo=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function tc(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Lg();const t=tt=>tc(tt);if(t.version="3.3.1",t.removed=[],!e||!e.document||e.document.nodeType!==Ir.document||!e.Element)return t.isSupported=!1,t;let{document:r}=e;const i=r,a=i.currentScript,{DocumentFragment:n,HTMLTemplateElement:s,Node:o,Element:l,NodeFilter:c,NamedNodeMap:h=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:u,DOMParser:d,trustedTypes:f}=e,g=l.prototype,m=Or(g,"cloneNode"),y=Or(g,"remove"),x=Or(g,"nextSibling"),b=Or(g,"childNodes"),C=Or(g,"parentNode");if(typeof s=="function"){const tt=r.createElement("template");tt.content&&tt.content.ownerDocument&&(r=tt.content.ownerDocument)}let _,w="";const{implementation:B,createNodeIterator:S,createDocumentFragment:D,getElementsByTagName:I}=r,{importNode:R}=i;let E=Oo();t.isSupported=typeof Kl=="function"&&typeof C=="function"&&B&&B.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:N,ERB_EXPR:O,TMPLIT_EXPR:L,DATA_ATTR:A,ARIA_ATTR:T,IS_SCRIPT_OR_DATA:F,ATTR_WHITESPACE:M,CUSTOM_ELEMENT:q}=Ro;let{IS_ALLOWED_URI:V}=Ro,K=null;const J=ot({}
2,[...Eo,...an,...nn,...sn,...Fo]);let Z=null;const ct=ot({},[...$o,...on,...Do,...Bi]);let nt=Object.seal(Cn(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}})),bt=null,Ct=null;const Pt=Object.seal(Cn(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let ee=!0,yt=!0,re=!1,$e=!0,ie=!1,bi=!0,He=!1,Ua=!1,ja=!1,sr=!1,Ci=!1,ki=!1,ao=!0,no=!1;const Tp="user-content-";let Ga=!0,Er=!1,or={},ue=null;const Va=ot({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let so=null;const oo=ot({},["audio","video","img","source","image","track"]);let Xa=null;const lo=ot({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),wi="http://www.w3.org/1998/Math/MathML",_i="http://www.w3.org/2000/svg",ke="http://www.w3.org/1999/xhtml";let lr=ke,Za=!1,Ka=null;const Lp=ot({},[wi,_i,ke],en);let vi=ot({},["mi","mo","mn","ms","mtext"]),Si=ot({},["annotation-xml"]);const Bp=ot({},["title","style","font","a","script"]);let Fr=null;const Ap=["application/xhtml+xml","text/html"],Mp="text/html";let _t=null,cr=null;const Ep=r.createElement("form"),co=function(k){return k instanceof RegExp||k instanceof Function},Qa=function(){let k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(cr&&cr===k)){if((!k||typeof k!="object")&&(k={}),k=pe(k),Fr=Ap.indexOf(k.PARSER_MEDIA_TYPE)===-1?Mp:k.PARSER_MEDIA_TYPE,_t=Fr==="application/xhtml+xml"?en:Ni,K=ae(k,"ALLOWED_TAGS")?ot({},k.ALLOWED_TAGS,_t):J,Z=ae(k,"ALLOWED_ATTR")?ot({},k.ALLOWED_ATTR,_t):ct,Ka=ae(k,"ALLOWED_NAMESPACES")?ot({},k.ALLOWED_NAMESPACES,en):Lp,Xa=ae(k,"ADD_URI_SAFE_ATTR")?ot(pe(lo),k.ADD_URI_SAFE_ATTR,_t):lo,so=ae(k,"ADD_DATA_URI_TAGS")?ot(pe(oo),k.ADD_DATA_URI_TAGS,_t):oo,ue=ae(k,"FORBID_CONTENTS")?ot({},k.FORBID_CONTENTS,_t):Va,bt=ae(k,"FORBID_TAGS")?ot({},k.FORBID_TAGS,_t):pe({}),Ct=ae(k,"FORBID_ATTR")?ot({},k.FORBID_ATTR,_t):pe({}),or=ae(k,"USE_PROFILES")?k.USE_PROFILES:!1,ee=k.ALLOW_ARIA_ATTR!==!1,yt=k.ALLOW_DATA_ATTR!==!1,re=k.ALLOW_UNKNOWN_PROTOCOLS||!1,$e=k.ALLOW_SELF_CLOSE_IN_ATTR!==!1,ie=k.SAFE_FOR_TEMPLATES||!1,bi=k.SAFE_FOR_XML!==!1,He=k.WHOLE_DOCUMENT||!1,sr=k.RETURN_DOM||!1,Ci=k.RETURN_DOM_FRAGMENT||!1,ki=k.RETURN_TRUSTED_TYPE||!1,ja=k.FORCE_BODY||!1,ao=k.SANITIZE_DOM!==!1,no=k.SANITIZE_NAMED_PROPS||!1,Ga=k.KEEP_CONTENT!==!1,Er=k.IN_PLACE||!1,V=k.ALLOWED_URI_REGEXP||Ql,lr=k.NAMESPACE||ke,vi=k.MATHML_TEXT_INTEGRATION_POINTS||vi,Si=k.HTML_INTEGRATION_POINTS||Si,nt=k.CUSTOM_ELEMENT_HANDLING||{},k.CUSTOM_ELEMENT_HANDLING&&co(k.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(nt.tagNameCheck=k.CUSTOM_ELEMENT_HANDLING.tagNameCheck),k.CUSTOM_ELEMENT_HANDLING&&co(k.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(nt.attributeNameCheck=k.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),k.CUSTOM_ELEMENT_HANDLING&&typeof k.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(nt.allowCustomizedBuiltInElements=k.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),ie&&(yt=!1),Ci&&(sr=!0),or&&(K=ot({},Fo),Z=[],or.html===!0&&(ot(K,Eo),ot(Z,$o)),or.svg===!0&&(ot(K,an),ot(Z,on),ot(Z,Bi)),or.svgFilters===!0&&(ot(K,nn),ot(Z,on),ot(Z,Bi)),or.mathMl===!0&&(ot(K,sn),ot(Z,Do),ot(Z,Bi))),k.ADD_TAGS&&(typeof k.ADD_TAGS=="function"?Pt.tagCheck=k.ADD_TAGS:(K===J&&(K=pe(K)),ot(K,k.ADD_TAGS,_t))),k.ADD_ATTR&&(typeof k.ADD_ATTR=="function"?Pt.attributeCheck=k.ADD_ATTR:(Z===ct&&(Z=pe(Z)),ot(Z,k.ADD_ATTR,_t))),k.ADD_URI_SAFE_ATTR&&ot(Xa,k.ADD_URI_SAFE_ATTR,_t),k.FORBID_CONTENTS&&(ue===Va&&(ue=pe(ue)),ot(ue,k.FORBID_CONTENTS,_t)),k.ADD_FORBID_CONTENTS&&(ue===Va&&(ue=pe(ue)),ot(ue,k.ADD_FORBID_CONTENTS,_t)),Ga&&(K["#text"]=!0),He&&ot(K,["html","head","body"]),K.table&&(ot(K,["tbody"]),delete bt.tbody),k.TRUSTED_TYPES_POLICY){if(typeof k.TRUSTED_TYPES_POLICY.createHTML!="function")throw Rr('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof k.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Rr('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');_=k.TRUSTED_TYPES_POLICY,w=_.createHTML("")}else _===void 0&&(_=Bg(f,a)),_!==null&&typeof w=="string"&&(w=_.createHTML(""));Ht&&Ht(k),cr=k}},ho=ot({},[...an,...nn,...yg]),uo=ot({},[...sn,...xg]),Fp=function(k){let P=C(k);(!P||!P.tagName)&&(P={namespaceURI:lr,tagName:"template"});const X=Ni(k.tagName),gt=Ni(P.tagName);return Ka[k.namespaceURI]?k.namespaceURI===_i?P.namespaceURI===ke?X==="svg":P.namespaceURI===wi?X==="svg"&&(gt==="annotation-xml"||vi[gt]):!!ho[X]:k.namespaceURI===wi?P.namespaceURI===ke?X==="math":P.namespaceURI===_i?X==="math"&&Si[gt]:!!uo[X]:k.namespaceURI===ke?P.namespaceURI===_i&&!Si[gt]||P.namespaceURI===wi&&!vi[gt]?!1:!uo[X]&&(Bp[X]||!ho[X]):!!(Fr==="application/xhtml+xml"&&Ka[k.namespaceURI]):!1},de=function(k){$r(t.removed,{element:k});try{C(k).removeChild(k)}catch{y(k)}},Ye=function(k,P){try{$r(t.removed,{attribute:P.getAttributeNode(k),from:P})}catch{$r(t.removed,{attribute:null,from:P})}if(P.removeAttribute(k),k==="is")if(sr||Ci)try{de(P)}catch{}else try{P.setAttribute(k,"")}catch{}},fo=function(k){let P=null,X=null;if(ja)k="<remove></remove>"+k;
vendor: 5,550 bytes, line 2
2else{const kt=rn(k,/^[\r\n\t ]+/);X=kt&&kt[0]}Fr==="application/xhtml+xml"&&lr===ke&&(k='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+k+"</body></html>");const gt=_?_.createHTML(k):k;if(lr===ke)try{P=new d().parseFromString(gt,Fr)}catch{}if(!P||!P.documentElement){P=B.createDocument(lr,"template",null);try{P.documentElement.innerHTML=Za?w:gt}catch{}}const Et=P.body||P.documentElement;return k&&X&&Et.insertBefore(r.createTextNode(X),Et.childNodes[0]||null),lr===ke?I.call(P,He?"html":"body")[0]:He?P.documentElement:Et},po=function(k){return S.call(k.ownerDocument||k,k,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},Ja=function(k){return k instanceof u&&(typeof k.nodeName!="string"||typeof k.textContent!="string"||typeof k.removeChild!="function"||!(k.attributes instanceof h)||typeof k.removeAttribute!="function"||typeof k.setAttribute!="function"||typeof k.namespaceURI!="string"||typeof k.insertBefore!="function"||typeof k.hasChildNodes!="function")},go=function(k){return typeof o=="function"&&k instanceof o};function we(tt,k,P){Li(tt,X=>{X.call(t,k,P,cr)})}const mo=function(k){let P=null;if(we(E.beforeSanitizeElements,k,null),Ja(k))return de(k),!0;const X=_t(k.nodeName);if(we(E.uponSanitizeElement,k,{tagName:X,allowedTags:K}),bi&&k.hasChildNodes()&&!go(k.firstElementChild)&&Nt(/<[/\w!]/g,k.innerHTML)&&Nt(/<[/\w!]/g,k.textContent)||k.nodeType===Ir.progressingInstruction||bi&&k.nodeType===Ir.comment&&Nt(/<[/\w]/g,k.data))return de(k),!0;if(!(Pt.tagCheck instanceof Function&&Pt.tagCheck(X))&&(!K[X]||bt[X])){if(!bt[X]&&xo(X)&&(nt.tagNameCheck instanceof RegExp&&Nt(nt.tagNameCheck,X)||nt.tagNameCheck instanceof Function&&nt.tagNameCheck(X)))return!1;if(Ga&&!ue[X]){const gt=C(k)||k.parentNode,Et=b(k)||k.childNodes;if(Et&&gt){const kt=Et.length;for(let Ut=kt-1;Ut>=0;--Ut){const _e=m(Et[Ut],!0);_e.__removalCount=(k.__removalCount||0)+1,gt.insertBefore(_e,x(k))}}}return de(k),!0}return k instanceof l&&!Fp(k)||(X==="noscript"||X==="noembed"||X==="noframes")&&Nt(/<\/no(script|embed|frames)/i,k.innerHTML)?(de(k),!0):(ie&&k.nodeType===Ir.text&&(P=k.textContent,Li([N,O,L],gt=>{P=Dr(P,gt," ")}),k.textContent!==P&&($r(t.removed,{element:k.cloneNode()}),k.textContent=P)),we(E.afterSanitizeElements,k,null),!1)},yo=function(k,P,X){if(ao&&(P==="id"||P==="name")&&(X in r||X in Ep))return!1;if(!(yt&&!Ct[P]&&Nt(A,P))){if(!(ee&&Nt(T,P))){if(!(Pt.attributeCheck instanceof Function&&Pt.attributeCheck(P,k))){if(!Z[P]||Ct[P]){if(!(xo(k)&&(nt.tagNameCheck instanceof RegExp&&Nt(nt.tagNameCheck,k)||nt.tagNameCheck instanceof Function&&nt.tagNameCheck(k))&&(nt.attributeNameCheck instanceof RegExp&&Nt(nt.attributeNameCheck,P)||nt.attributeNameCheck instanceof Function&&nt.attributeNameCheck(P,k))||P==="is"&&nt.allowCustomizedBuiltInElements&&(nt.tagNameCheck instanceof RegExp&&Nt(nt.tagNameCheck,X)||nt.tagNameCheck instanceof Function&&nt.tagNameCheck(X))))return!1}else if(!Xa[P]){if(!Nt(V,Dr(X,M,""))){if(!((P==="src"||P==="xlink:href"||P==="href")&&k!=="script"&&fg(X,"data:")===0&&so[k])){if(!(re&&!Nt(F,Dr(X,M,"")))){if(X)return!1}}}}}}}return!0},xo=function(k){return k!=="annotation-xml"&&rn(k,q)},bo=function(k){we(E.beforeSanitizeAttributes,k,null);const{attributes:P}=k;if(!P||Ja(k))return;const X={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Z,forceKeepAttr:void 0};let gt=P.length;for(;gt--;){const Et=P[gt],{name:kt,namespaceURI:Ut,value:_e}=Et,hr=_t(kt),tn=_e;let Bt=kt==="value"?tn:pg(tn);if(X.attrName=hr,X.attrValue=Bt,X.keepAttr=!0,X.forceKeepAttr=void 0,we(E.uponSanitizeAttribute,k,X),Bt=X.attrValue,no&&(hr==="id"||hr==="name")&&(Ye(kt,k),Bt=Tp+Bt),bi&&Nt(/((--!?|])>)|<\/(style|title|textarea)/i,Bt)){Ye(kt,k);continue}if(hr==="attributename"&&rn(Bt,"href")){Ye(kt,k);continue}if(X.forceKeepAttr)continue;if(!X.keepAttr){Ye(kt,k);continue}if(!$e&&Nt(/\/>/i,Bt)){Ye(kt,k);continue}ie&&Li([N,O,L],ko=>{Bt=Dr(Bt,ko," ")});const Co=_t(k.nodeName);if(!yo(Co,hr,Bt)){Ye(kt,k);continue}if(_&&typeof f=="object"&&typeof f.getAttributeType=="function"&&!Ut)switch(f.getAttributeType(Co,hr)){case"TrustedHTML":{Bt=_.createHTML(Bt);break}case"TrustedScriptURL":{Bt=_.createScriptURL(Bt);break}}if(Bt!==tn)try{Ut?k.setAttributeNS(Ut,kt,Bt):k.setAttribute(kt,Bt),Ja(k)?de(k):Mo(t.removed)}catch{Ye(kt,k)}}we(E.afterSanitizeAttributes,k,null)},$p=function tt(k){let P=null;const X=po(k);for(we(E.beforeSanitizeShadowDOM,k,null);P=X.nextNode();)we(E.uponSanitizeShadowNode,P,null),mo(P),bo(P),P.content instanceof n&&tt(P.content);we(E.afterSanitizeShadowDOM,k,null)};return t.sanitize=function(tt){let k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},P=null,X=null,gt=null,Et=null;if(Za=!tt,Za&&(tt="<!-->"),typeof tt!="string"&&!go(tt))if(typeof tt.toString=="function"){if(tt=tt.toString(),typeof tt!="string")throw Rr("dirty is not a string, aborting")}else throw Rr("toString is not a function");if(!t.isSupported)return tt;if(Ua||Qa(k),t.removed=[],typeof tt=="string"&&(Er=!1),Er){if(tt.nodeName){const _e=_t(tt.nodeName);if(!K[_e]||bt[_e])throw Rr("root node is forbidden and cannot be sanitized in-place")}}else if(tt instanceof o)P=fo("<!---->"),X=P.ownerDocument.importNode(tt,!0),X.nodeType===Ir.element&&X.nodeName==="BODY"||X.nodeName==="HTML"?P=X:P.appendChild(X);else{if(!sr&&!ie&&!He&&tt.indexOf("<")===-1)return _&&ki?_.createHTML(tt):tt;if(P=fo(tt),!P)return sr?null:ki?w:""}P&&ja&&de(P.firstChild);const kt=po(Er?tt:P);for(;gt=kt.nextNode();)mo(gt),bo(gt),gt.content instanceof n&&$p(gt.content);if(Er)return tt;
2if(sr){if(Ci)for(Et=D.call(P.ownerDocument);P.firstChild;)Et.appendChild(P.firstChild);else Et=P;return(Z.shadowroot||Z.shadowrootmode)&&(Et=R.call(i,Et,!0)),Et}let Ut=He?P.outerHTML:P.innerHTML;return He&&K["!doctype"]&&P.ownerDocument&&P.ownerDocument.doctype&&P.ownerDocument.doctype.name&&Nt(Jl,P.ownerDocument.doctype.name)&&(Ut="<!DOCTYPE "+P.ownerDocument.doctype.name+`>
3`+Ut),ie&&Li([N,O,L],_e=>{Ut=Dr(Ut,_e," ")}),_&&ki?_.createHTML(Ut):Ut},t.setConfig=function(){let tt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Qa(tt),Ua=!0},t.clearConfig=function(){cr=null,Ua=!1},t.isValidAttribute=function(tt,k,P){cr||Qa({});const X=_t(tt),gt=_t(k);return yo(X,gt,P)},t.addHook=function(tt,k){typeof k=="function"&&$r(E[tt],k)},t.removeHook=function(tt,k){if(k!==void 0){const P=ug(E[tt],k);return P===-1?void 0:dg(E[tt],P,1)[0]}return Mo(E[tt])},t.removeHooks=function(tt){E[tt]=[]},t.removeAllHooks=function(){E=Oo()},t}var xr=tc(),ec=/^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s,ei=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,Ag=/\s*%%.*\n/gm,rc=class extends Error{static{p(this,"UnknownDiagramError")}constructor(e){super(e),this.name="UnknownDiagramError"}},Qe={},ps=p(function(e,t){e=e.replace(ec,"").replace(ei,"").replace(Ag,`
4`);for(const[r,{detector:i}]of Object.entries(Qe))if(i(e,t))return r;throw new rc(`No diagram type detected matching given configuration for text: ${e}`)},"detectType"),_n=p((...e)=>{for(const{id:t,detector:r,loader:i}of e)ic(t,r,i)},"registerLazyLoadedDiagrams"),ic=p((e,t,r)=>{Qe[e]&&$.warn(`Detector with key ${e} already exists. Overwriting.`),Qe[e]={detector:t,loader:r},$.debug(`Detector with key ${e} added${r?" with loader":""}`)},"addDetector"),Mg=p(e=>Qe[e].loader,"getDiagramLoader"),vn=p((e,t,{depth:r=2,clobber:i=!1}={})=>{const a={depth:r,clobber:i};return Array.isArray(t)&&!Array.isArray(e)?(t.forEach(n=>vn(e,n,a)),e):Array.isArray(t)&&Array.isArray(e)?(t.forEach(n=>{e.includes(n)||e.push(n)}),e):e===void 0||r<=0?e!=null&&typeof e=="object"&&typeof t=="object"?Object.assign(e,t):t:(t!==void 0&&typeof e=="object"&&typeof t=="object"&&Object.keys(t).forEach(n=>{typeof t[n]=="object"&&(e[n]===void 0||typeof e[n]=="object")?(e[n]===void 0&&(e[n]=Array.isArray(t[n])?[]:{}),e[n]=vn(e[n],t[n],{depth:r-1,clobber:i})):(i||typeof e[n]!="object"&&typeof t[n]!="object")&&(e[n]=t[n])}),e)},"assignWithDepth"),St=vn,Ta="#ffffff",La="#f2f2f2",zt=p((e,t)=>t?v(e,{s:-40,l:10}):v(e,{s:-40,l:-10}),"mkBorder"),Eg=class{static{p(this,"Theme")}constructor(){this.background="#f4f4f4",this.primaryColor="#fff4dd",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px"}updateColors(){if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||v(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||v(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||zt(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||zt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||zt(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||zt(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||z(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||z(this.tertiaryColor),this.lineColor=this.lineColor||z(this.background),this.arrowheadColor=this.arrowheadColor||z(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: 8,519 bytes, line 4
4d=this.edgeLabelBackground||(this.darkMode?et(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||et(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||z(this.lineColor),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||H(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.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.darkMode?(this.rowOdd=this.rowOdd||et(this.mainBkg,5)||"#ffffff",this.rowEven=this.rowEven||et(this.mainBkg,10)):(this.rowOdd=this.rowOdd||H(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||H(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||v(this.primaryColor,{h:30}),this.cScale4=this.cScale4||v(this.primaryColor,{h:60}),this.cScale5=this.cScale5||v(this.primaryColor,{h:90}),this.cScale6=this.cScale6||v(this.primaryColor,{h:120}),this.cScale7=this.cScale7||v(this.primaryColor,{h:150}),this.cScale8=this.cScale8||v(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||v(this.primaryColor,{h:270}),this.cScale10=this.cScale10||v(this.primaryColor,{h:300}),this.cScale11=this.cScale11||v(this.primaryColor,{h:330}),this.darkMode)for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScale"+t]=et(this["cScale"+t],75);else for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScale"+t]=et(this["cScale"+t],25);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleInv"+t]=this["cScaleInv"+t]||z(this["cScale"+t]);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this.darkMode?this["cScalePeer"+t]=this["cScalePeer"+t]||H(this["cScale"+t],10):this["cScalePeer"+t]=this["cScalePeer"+t]||et(this["cScale"+t],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleLabel"+t]=this["cScaleLabel"+t]||this.scaleLabelColor;const e=this.darkMode?-4:-1;for(let t=0;t<5;t++)this["surface"+t]=this["surface"+t]||v(this.mainBkg,{h:180,s:-15,l:e*(5+t*3)}),this["surfacePeer"+t]=this["surfacePeer"+t]||v(this.mainBkg,{h:180,s:-15,l:e*(8+t*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||v(this.primaryColor,{h:64}),this.fillType3=this.fillType3||v(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||v(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||v(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||v(this.primaryColor,{h:128}),this.fillType7=this.fillType7||v(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||v(this.primaryColor,{l:-10}),this.pie5=this.pie5||v(this.secondaryColor,{l:-10}),this.pie6=this.pie6||v(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||v(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||v(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||v(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||v(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||v(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||v(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.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.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||v(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||v(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||v(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||v(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||v(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||v(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||di(this.quadrant1Fill)?H(this.quadrant1Fill):et(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: 4,958 bytes, line 4
4nalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||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?et(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||v(this.primaryColor,{h:-30}),this.git4=this.git4||v(this.primaryColor,{h:-60}),this.git5=this.git5||v(this.primaryColor,{h:-90}),this.git6=this.git6||v(this.primaryColor,{h:60}),this.git7=this.git7||v(this.primaryColor,{h:120}),this.darkMode?(this.git0=H(this.git0,25),this.git1=H(this.git1,25),this.git2=H(this.git2,25),this.git3=H(this.git3,25),this.git4=H(this.git4,25),this.git5=H(this.git5,25),this.git6=H(this.git6,25),this.git7=H(this.git7,25)):(this.git0=et(this.git0,25),this.git1=et(this.git1,25),this.git2=et(this.git2,25),this.git3=et(this.git3,25),this.git4=et(this.git4,25),this.git5=et(this.git5,25),this.git6=et(this.git6,25),this.git7=et(this.git7,25)),this.gitInv0=this.gitInv0||z(this.git0),this.gitInv1=this.gitInv1||z(this.git1),this.gitInv2=this.gitInv2||z(this.git2),this.gitInv3=this.gitInv3||z(this.git3),this.gitInv4=this.gitInv4||z(this.git4),this.gitInv5=this.gitInv5||z(this.git5),this.gitInv6=this.gitInv6||z(this.git6),this.gitInv7=this.gitInv7||z(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||Ta,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||La}calculate(e){if(typeof e!="object"){this.updateColors();return}const t=Object.keys(e);t.forEach(r=>{this[r]=e[r]}),this.updateColors(),t.forEach(r=>{this[r]=e[r]})}},Fg=p(e=>{const t=new Eg;return t.calculate(e),t},"getThemeVariables"),$g=class{static{p(this,"Theme")}constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=H(this.primaryColor,16),this.tertiaryColor=v(this.primaryColor,{h:-160}),this.primaryBorderColor=z(this.background),this.secondaryBorderColor=zt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=zt(this.tertiaryColor,this.darkMode),this.primaryTextColor=z(this.primaryColor),this.secondaryTextColor=z(this.secondaryColor),this.tertiaryTextColor=z(this.tertiaryColor),this.lineColor=z(this.background),this.textColor=z(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=H(z("#323D47"),10),this.lineColor="calculated",this.border1="#ccc",this.border2=ti(255,255,255,.25),this.arrowheadColor="calculated",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackgroun
vendor: 9,948 bytes, line 4
4d="#181818",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,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.sectionBkgColor=et("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.excludeBkgColor=et(this.sectionBkgColor,10),this.taskBorderColor=ti(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=ti(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||H(this.mainBkg,5)||"#ffffff",this.rowEven=this.rowEven||et(this.mainBkg,10),this.labelColor="calculated",this.errorBkgColor="#a44141",this.errorTextColor="#ddd"}updateColors(){this.secondBkg=H(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=H(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.altSectionBkgColor=this.background,this.taskBkgColor=H(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=this.darkTextColor,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=v(this.primaryColor,{h:64}),this.fillType3=v(this.secondaryColor,{h:64}),this.fillType4=v(this.primaryColor,{h:-64}),this.fillType5=v(this.secondaryColor,{h:-64}),this.fillType6=v(this.primaryColor,{h:128}),this.fillType7=v(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||v(this.primaryColor,{h:30}),this.cScale4=this.cScale4||v(this.primaryColor,{h:60}),this.cScale5=this.cScale5||v(this.primaryColor,{h:90}),this.cScale6=this.cScale6||v(this.primaryColor,{h:120}),this.cScale7=this.cScale7||v(this.primaryColor,{h:150}),this.cScale8=this.cScale8||v(this.primaryColor,{h:210}),this.cScale9=this.cScale9||v(this.primaryColor,{h:270}),this.cScale10=this.cScale10||v(this.primaryColor,{h:300}),this.cScale11=this.cScale11||v(this.primaryColor,{h:330});for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScaleInv"+e]=this["cScaleInv"+e]||z(this["cScale"+e]);for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScalePeer"+e]=this["cScalePeer"+e]||H(this["cScale"+e],10);for(let e=0;e<5;e++)this["surface"+e]=this["surface"+e]||v(this.mainBkg,{h:30,s:-30,l:-(-10+e*4)}),this["surfacePeer"+e]=this["surfacePeer"+e]||v(this.mainBkg,{h:30,s:-30,l:-(-7+e*4)});this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor);for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScaleLabel"+e]=this["cScaleLabel"+e]||this.scaleLabelColor;for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["pie"+e]=this["cScale"+e];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.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||v(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||v(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||v(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||v(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||v(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||v(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||di(this.quadrant1Fill)?H(this.quadrant1Fill):et(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,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.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: 7,523 bytes, line 4
4d=this.relationLabelBackground||(this.darkMode?et(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=H(this.secondaryColor,20),this.git1=H(this.pie2||this.secondaryColor,20),this.git2=H(this.pie3||this.tertiaryColor,20),this.git3=H(this.pie4||v(this.primaryColor,{h:-30}),20),this.git4=H(this.pie5||v(this.primaryColor,{h:-60}),20),this.git5=H(this.pie6||v(this.primaryColor,{h:-90}),10),this.git6=H(this.pie7||v(this.primaryColor,{h:60}),10),this.git7=H(this.pie8||v(this.primaryColor,{h:120}),20),this.gitInv0=this.gitInv0||z(this.git0),this.gitInv1=this.gitInv1||z(this.git1),this.gitInv2=this.gitInv2||z(this.git2),this.gitInv3=this.gitInv3||z(this.git3),this.gitInv4=this.gitInv4||z(this.git4),this.gitInv5=this.gitInv5||z(this.git5),this.gitInv6=this.gitInv6||z(this.git6),this.gitInv7=this.gitInv7||z(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||z(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||z(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.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||H(this.background,12),this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||H(this.background,2),this.nodeBorder=this.nodeBorder||"#999"}calculate(e){if(typeof e!="object"){this.updateColors();return}const t=Object.keys(e);t.forEach(r=>{this[r]=e[r]}),this.updateColors(),t.forEach(r=>{this[r]=e[r]})}},Dg=p(e=>{const t=new $g;return t.calculate(e),t},"getThemeVariables"),Rg=class{static{p(this,"Theme")}constructor(){this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=v(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=v(this.primaryColor,{h:-160}),this.primaryBorderColor=zt(this.primaryColor,this.darkMode),this.secondaryBorderColor=zt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=zt(this.tertiaryColor,this.darkMode),this.primaryTextColor=z(this.primaryColor),this.secondaryTextColor=z(this.secondaryColor),this.tertiaryTextColor=z(this.tertiaryColor),this.lineColor=z(this.background),this.textColor=z(this.background),this.background="white",this.mainBkg="#ECECFF",this.secondBkg="#ffffde",this.lineColor="#333333",this.border1="#9370DB",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.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.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=ti(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.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.updateColors()}updateColors(){this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||v(this.primaryColor,{h:30}),this.cScale4=this.cScale4||v(this.primaryColor,{h:60}),this.cScale5=this.cScale5||v(this.primaryColor,{h:90}),this.cScale6=this.cScale6||v(this.primaryColor,{h:120}),this.cScale7=this.cScale7||v(this.primaryColor,{h:150}),this.cScale8=this.cScale8||v(this.primaryColor,{h:210}),this.cScale9=this.cScale9||v(this.primaryColor,{h:270}),this.cScale10=this.cScale10||v(this.primaryColor,{h:300}),this.cScale11=this.cScale11||v(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||et(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||et(this.tertiaryColor,40);for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScale"+e]=et(this["cScale"+e],10),this["cScalePeer"+e]=this["cScalePeer"+e]||et(this["cScale"+e],25);for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScaleInv"+e]=this["cScaleInv"+e]||v(this["cScale"+e],{h:180});for(let e=0;e<5;e++)this["surface"+e]=this["surface"+e]||v(this.mainBkg,{h:30,l:-(5+e*5)}),this["surfacePeer"+e]=this["surfacePeer"+e]||v(this.mainBkg,{h:30,l:-(7+e*5)});if(this.scaleLabelColor=this.scaleLabelColor!=="calculated"&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor,this.labelTextColor!=="calculated"){this.cScaleLabel0=this.cScaleLabel0||z(this.labelTextColor),this.cScaleLabel3=this.cScaleLabel3||z(this.labelTextColor);for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScaleLabel"+e]=this["cScaleLabel"+e]||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.edgeLabelBackgroun
vendor: 8,350 bytes, line 4
4d=this.labelBackground,this.actorBorder=H(this.border1,23),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.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.rowOdd=this.rowOdd||H(this.primaryColor,75)||"#ffffff",this.rowEven=this.rowEven||H(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=v(this.primaryColor,{h:64}),this.fillType3=v(this.secondaryColor,{h:64}),this.fillType4=v(this.primaryColor,{h:-64}),this.fillType5=v(this.secondaryColor,{h:-64}),this.fillType6=v(this.primaryColor,{h:128}),this.fillType7=v(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||v(this.tertiaryColor,{l:-40}),this.pie4=this.pie4||v(this.primaryColor,{l:-10}),this.pie5=this.pie5||v(this.secondaryColor,{l:-30}),this.pie6=this.pie6||v(this.tertiaryColor,{l:-20}),this.pie7=this.pie7||v(this.primaryColor,{h:60,l:-20}),this.pie8=this.pie8||v(this.primaryColor,{h:-60,l:-40}),this.pie9=this.pie9||v(this.primaryColor,{h:120,l:-40}),this.pie10=this.pie10||v(this.primaryColor,{h:60,l:-40}),this.pie11=this.pie11||v(this.primaryColor,{h:-90,l:-40}),this.pie12=this.pie12||v(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.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||v(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||v(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||v(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||v(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||v(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||v(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||di(this.quadrant1Fill)?H(this.quadrant1Fill):et(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.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||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||v(this.primaryColor,{h:-30}),this.git4=this.git4||v(this.primaryColor,{h:-60}),this.git5=this.git5||v(this.primaryColor,{h:-90}),this.git6=this.git6||v(this.primaryColor,{h:60}),this.git7=this.git7||v(this.primaryColor,{h:120}),this.darkMode?(this.git0=H(this.git0,25),this.git1=H(this.git1,25),this.git2=H(this.git2,25),this.git3=H(this.git3,25),this.git4=H(this.git4,25),this.git5=H(this.git5,25),this.git6=H(this.git6,25),this.git7=H(this.git7,25)):(this.git0=et(this.git0,25),this.git1=et(this.git1,25),this.git2=et(this.git2,25),this.git3=et(this.git3,25),this.git4=et(this.git4,25),this.git5=et(this.git5,25),this.git6=et(this.git6,25),this.git7=et(this.git7,25)),this.gitInv0=this.gitInv0||et(z(this.git0),25),this.gitInv1=this.gitInv1||z(this.git1),this.gitInv2=this.gitInv2||z(this.git2),this.gitInv3=this.gitInv3||z(this.git3),this.gitInv4=this.gitInv4||z(this.git4),this.gitInv5=this.gitInv5||z(this.git5),this.gitInv6=this.gitInv6||z(this.git6),this.gitInv7=this.gitInv7||z(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||z(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||z(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.attributeBackgroundColorOdd=this.attributeBackgroun
vendor: 5,446 bytes, line 4
4dColorOdd||Ta,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||La}calculate(e){if(Object.keys(this).forEach(r=>{this[r]==="calculated"&&(this[r]=void 0)}),typeof e!="object"){this.updateColors();return}const t=Object.keys(e);t.forEach(r=>{this[r]=e[r]}),this.updateColors(),t.forEach(r=>{this[r]=e[r]})}},Og=p(e=>{const t=new Rg;return t.calculate(e),t},"getThemeVariables"),Ig=class{static{p(this,"Theme")}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=H("#cde498",10),this.primaryBorderColor=zt(this.primaryColor,this.darkMode),this.secondaryBorderColor=zt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=zt(this.tertiaryColor,this.darkMode),this.primaryTextColor=z(this.primaryColor),this.secondaryTextColor=z(this.secondaryColor),this.tertiaryTextColor=z(this.primaryColor),this.lineColor=z(this.background),this.textColor=z(this.background),this.THEME_COLOR_LIMIT=12,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.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){this.actorBorder=et(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.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||v(this.primaryColor,{h:30}),this.cScale4=this.cScale4||v(this.primaryColor,{h:60}),this.cScale5=this.cScale5||v(this.primaryColor,{h:90}),this.cScale6=this.cScale6||v(this.primaryColor,{h:120}),this.cScale7=this.cScale7||v(this.primaryColor,{h:150}),this.cScale8=this.cScale8||v(this.primaryColor,{h:210}),this.cScale9=this.cScale9||v(this.primaryColor,{h:270}),this.cScale10=this.cScale10||v(this.primaryColor,{h:300}),this.cScale11=this.cScale11||v(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||et(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||et(this.tertiaryColor,40);for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScale"+e]=et(this["cScale"+e],10),this["cScalePeer"+e]=this["cScalePeer"+e]||et(this["cScale"+e],25);for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScaleInv"+e]=this["cScaleInv"+e]||v(this["cScale"+e],{h:180});this.scaleLabelColor=this.scaleLabelColor!=="calculated"&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor;for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScaleLabel"+e]=this["cScaleLabel"+e]||this.scaleLabelColor;for(let e=0;e<5;e++)this["surface"+e]=this["surface"+e]||v(this.mainBkg,{h:30,s:-30,l:-(5+e*5)}),this["surfacePeer"+e]=this["surfacePeer"+e]||v(this.mainBkg,{h:30,s:-30,l:-(8+e*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||H(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||H(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.labelBackgroun
vendor: 4,968 bytes, line 4
4dColor=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=v(this.primaryColor,{h:64}),this.fillType3=v(this.secondaryColor,{h:64}),this.fillType4=v(this.primaryColor,{h:-64}),this.fillType5=v(this.secondaryColor,{h:-64}),this.fillType6=v(this.primaryColor,{h:128}),this.fillType7=v(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||v(this.primaryColor,{l:-30}),this.pie5=this.pie5||v(this.secondaryColor,{l:-30}),this.pie6=this.pie6||v(this.tertiaryColor,{h:40,l:-40}),this.pie7=this.pie7||v(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||v(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||v(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||v(this.primaryColor,{h:60,l:-50}),this.pie11=this.pie11||v(this.primaryColor,{h:-60,l:-50}),this.pie12=this.pie12||v(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.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||v(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||v(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||v(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||v(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||v(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||v(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||di(this.quadrant1Fill)?H(this.quadrant1Fill):et(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.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||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"}
vendor: 8,502 bytes, line 4
4,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||v(this.primaryColor,{h:-30}),this.git4=this.git4||v(this.primaryColor,{h:-60}),this.git5=this.git5||v(this.primaryColor,{h:-90}),this.git6=this.git6||v(this.primaryColor,{h:60}),this.git7=this.git7||v(this.primaryColor,{h:120}),this.darkMode?(this.git0=H(this.git0,25),this.git1=H(this.git1,25),this.git2=H(this.git2,25),this.git3=H(this.git3,25),this.git4=H(this.git4,25),this.git5=H(this.git5,25),this.git6=H(this.git6,25),this.git7=H(this.git7,25)):(this.git0=et(this.git0,25),this.git1=et(this.git1,25),this.git2=et(this.git2,25),this.git3=et(this.git3,25),this.git4=et(this.git4,25),this.git5=et(this.git5,25),this.git6=et(this.git6,25),this.git7=et(this.git7,25)),this.gitInv0=this.gitInv0||z(this.git0),this.gitInv1=this.gitInv1||z(this.git1),this.gitInv2=this.gitInv2||z(this.git2),this.gitInv3=this.gitInv3||z(this.git3),this.gitInv4=this.gitInv4||z(this.git4),this.gitInv5=this.gitInv5||z(this.git5),this.gitInv6=this.gitInv6||z(this.git6),this.gitInv7=this.gitInv7||z(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||z(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||z(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.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Ta,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||La}calculate(e){if(typeof e!="object"){this.updateColors();return}const t=Object.keys(e);t.forEach(r=>{this[r]=e[r]}),this.updateColors(),t.forEach(r=>{this[r]=e[r]})}},Pg=p(e=>{const t=new Ig;return t.calculate(e),t},"getThemeVariables"),Ng=class{static{p(this,"Theme")}constructor(){this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=H(this.contrast,55),this.background="#ffffff",this.tertiaryColor=v(this.primaryColor,{h:-160}),this.primaryBorderColor=zt(this.primaryColor,this.darkMode),this.secondaryBorderColor=zt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=zt(this.tertiaryColor,this.darkMode),this.primaryTextColor=z(this.primaryColor),this.secondaryTextColor=z(this.secondaryColor),this.tertiaryTextColor=z(this.tertiaryColor),this.lineColor=z(this.background),this.textColor=z(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.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.rowOdd=this.rowOdd||H(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||"#f4f4f4",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){this.secondBkg=H(this.contrast,55),this.border2=this.contrast,this.actorBorder=H(this.border1,23),this.actorBkg=this.mainBkg,this.actorTextColor=this.text,this.actorLineColor=this.actorBorder,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 e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScaleInv"+e]=this["cScaleInv"+e]||z(this["cScale"+e]);for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this.darkMode?this["cScalePeer"+e]=this["cScalePeer"+e]||H(this["cScale"+e],10):this["cScalePeer"+e]=this["cScalePeer"+e]||et(this["cScale"+e],10);this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor),this.cScaleLabel0=this.cScaleLabel0||this.cScale1,this.cScaleLabel2=this.cScaleLabel2||this.cScale1;for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScaleLabel"+e]=this["cScaleLabel"+e]||this.scaleLabelColor;for(let e=0;e<5;e++)this["surface"+e]=this["surface"+e]||v(this.mainBkg,{l:-(5+e*5)}),this["surfacePeer"+e]=this["surfacePeer"+e]||v(this.mainBkg,{l:-(8+e*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=H(this.contrast,30),this.sectionBkgColor2=H(this.contrast,30),this.taskBorderColor=et(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=H(this.border1,30),this.doneTaskBkgColor=this.done,this.doneTaskBorderColor=this.lineColor,this.critBkgColor=this.critical,this.critBorderColor=et(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.labelBackgroun
vendor: 4,140 bytes, line 4
4dColor=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=v(this.primaryColor,{h:64}),this.fillType3=v(this.secondaryColor,{h:64}),this.fillType4=v(this.primaryColor,{h:-64}),this.fillType5=v(this.secondaryColor,{h:-64}),this.fillType6=v(this.primaryColor,{h:128}),this.fillType7=v(this.secondaryColor,{h:128});for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["pie"+e]=this["cScale"+e];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",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||v(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||v(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||v(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||v(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||v(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||v(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||di(this.quadrant1Fill)?H(this.quadrant1Fill):et(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,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}
vendor: 5,023 bytes, line 4
4,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=et(this.pie1,25)||this.primaryColor,this.git1=this.pie2||this.secondaryColor,this.git2=this.pie3||this.tertiaryColor,this.git3=this.pie4||v(this.primaryColor,{h:-30}),this.git4=this.pie5||v(this.primaryColor,{h:-60}),this.git5=this.pie6||v(this.primaryColor,{h:-90}),this.git6=this.pie7||v(this.primaryColor,{h:60}),this.git7=this.pie8||v(this.primaryColor,{h:120}),this.gitInv0=this.gitInv0||z(this.git0),this.gitInv1=this.gitInv1||z(this.git1),this.gitInv2=this.gitInv2||z(this.git2),this.gitInv3=this.gitInv3||z(this.git3),this.gitInv4=this.gitInv4||z(this.git4),this.gitInv5=this.gitInv5||z(this.git5),this.gitInv6=this.gitInv6||z(this.git6),this.gitInv7=this.gitInv7||z(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.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Ta,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||La}calculate(e){if(typeof e!="object"){this.updateColors();return}const t=Object.keys(e);t.forEach(r=>{this[r]=e[r]}),this.updateColors(),t.forEach(r=>{this[r]=e[r]})}},zg=p(e=>{const t=new Ng;return t.calculate(e),t},"getThemeVariables"),Be={base:{getThemeVariables:Fg},dark:{getThemeVariables:Dg},default:{getThemeVariables:Og},forest:{getThemeVariables:Pg},neutral:{getThemeVariables:zg}},fe={flowchart:{useMaxWidth:!0,titleTopMargin:25,subGraphTitleMargin:{top:0,bottom:0},diagramPadding:8,htmlLabels:!0,nodeSpacing:50,rankSpacing:50,curve:"basis",padding:15,defaultRenderer:"dagre-wrapper",wrappingWidth:200,inheritDir:!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},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}
4,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,showTitle:!0,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},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},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"},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:""},block:{useMaxWidth:!0,padding:8},packet:{useMaxWidth:!0,rowHeight:32,bitWidth:32,bitsPerRow:32,showBits:!0,paddingX:5,paddingY:5},architecture:{useMaxWidth:!0,padding:40,iconSize:80,fontSize:16},radar:{useMaxWidth:!0,width:600,height:600,marginTop:50,marginRight:50,marginBottom:50,marginLeft:50,axisScaleFactor:1,axisLabelFactor:1.05,curveTension:.
vendor: 5,335 bytes, line 4
417},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},ac={...fe,deterministicIDSeed:void 0,elk:{mergeEdges:!1,nodePlacementStrategy:"BRANDES_KOEPF",forceNodeModelOrder:!1,considerModelOrder:"NODES_AND_EDGES"},themeCSS:void 0,themeVariables:Be.default.getThemeVariables(),sequence:{...fe.sequence,messageFont:p(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},"messageFont"),noteFont:p(function(){return{fontFamily:this.noteFontFamily,fontSize:this.noteFontSize,fontWeight:this.noteFontWeight}},"noteFont"),actorFont:p(function(){return{fontFamily:this.actorFontFamily,fontSize:this.actorFontSize,fontWeight:this.actorFontWeight}},"actorFont")},class:{hideEmptyMembersBox:!1},gantt:{...fe.gantt,tickInterval:void 0,useWidth:void 0},c4:{...fe.c4,useWidth:void 0,personFont:p(function(){return{fontFamily:this.personFontFamily,fontSize:this.personFontSize,fontWeight:this.personFontWeight}},"personFont"),flowchart:{...fe.flowchart,inheritDir:!1},external_personFont:p(function(){return{fontFamily:this.external_personFontFamily,fontSize:this.external_personFontSize,fontWeight:this.external_personFontWeight}},"external_personFont"),systemFont:p(function(){return{fontFamily:this.systemFontFamily,fontSize:this.systemFontSize,fontWeight:this.systemFontWeight}},"systemFont"),external_systemFont:p(function(){return{fontFamily:this.external_systemFontFamily,fontSize:this.external_systemFontSize,fontWeight:this.external_systemFontWeight}},"external_systemFont"),system_dbFont:p(function(){return{fontFamily:this.system_dbFontFamily,fontSize:this.system_dbFontSize,fontWeight:this.system_dbFontWeight}},"system_dbFont"),external_system_dbFont:p(function(){return{fontFamily:this.external_system_dbFontFamily,fontSize:this.external_system_dbFontSize,fontWeight:this.external_system_dbFontWeight}},"external_system_dbFont"),system_queueFont:p(function(){return{fontFamily:this.system_queueFontFamily,fontSize:this.system_queueFontSize,fontWeight:this.system_queueFontWeight}},"system_queueFont"),external_system_queueFont:p(function(){return{fontFamily:this.external_system_queueFontFamily,fontSize:this.external_system_queueFontSize,fontWeight:this.external_system_queueFontWeight}},"external_system_queueFont"),containerFont:p(function(){return{fontFamily:this.containerFontFamily,fontSize:this.containerFontSize,fontWeight:this.containerFontWeight}},"containerFont"),external_containerFont:p(function(){return{fontFamily:this.external_containerFontFamily,fontSize:this.external_containerFontSize,fontWeight:this.external_containerFontWeight}},"external_containerFont"),container_dbFont:p(function(){return{fontFamily:this.container_dbFontFamily,fontSize:this.container_dbFontSize,fontWeight:this.container_dbFontWeight}},"container_dbFont"),external_container_dbFont:p(function(){return{fontFamily:this.external_container_dbFontFamily,fontSize:this.external_container_dbFontSize,fontWeight:this.external_container_dbFontWeight}},"external_container_dbFont"),container_queueFont:p(function(){return{fontFamily:this.container_queueFontFamily,fontSize:this.container_queueFontSize,fontWeight:this.container_queueFontWeight}},"container_queueFont"),external_container_queueFont:p(function(){return{fontFamily:this.external_container_queueFontFamily,fontSize:this.external_container_queueFontSize,fontWeight:this.external_container_queueFontWeight}},"external_container_queueFont"),componentFont:p(function(){return{fontFamily:this.componentFontFamily,fontSize:this.componentFontSize,fontWeight:this.componentFontWeight}},"componentFont"),external_componentFont:p(function(){return{fontFamily:this.external_componentFontFamily,fontSize:this.external_componentFontSize,fontWeight:this.external_componentFontWeight}},"external_componentFont"),component_dbFont:p(function(){return{fontFamily:this.component_dbFontFamily,fontSize:this.component_dbFontSize,fontWeight:this.component_dbFontWeight}},"component_dbFont"),external_component_dbFont:p(function(){return{fontFamily:this.external_component_dbFontFamily,fontSize:this.external_component_dbFontSize,fontWeight:this.external_component_dbFontWeight}},"external_component_dbFont"),component_queueFont:p(function(){return{fontFamily:this.component_queueFontFamily,fontSize:this.component_queueFontSize,fontWeight:this.component_queueFontWeight}},"component_queueFont"),external_component_queueFont:p(function(){return{fontFamily:this.external_component_queueFontFamily,fontSize:this.external_component_queueFontSize,fontWeight:this.external_component_queueFontWeight}},"external_component_queueFont"),boundaryFont:p(function(){return{fontFamily:this.boundaryFontFamily,fontSize:this.boundaryFontSize,fontWeight:this.boundaryFontWeight}},"boundaryFont"),messageFont:p(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},"messageFont")},pie:{...fe.pie,useWidth:984}
4,xyChart:{...fe.xyChart,useWidth:void 0},requirement:{...fe.requirement,useWidth:void 0},packet:{...fe.packet},radar:{...fe.radar},treemap:{useMaxWidth:!0,padding:10,diagramPadding:8,showValues:!0,nodeWidth:100,nodeHeight:40,borderWidth:1,valueFontSize:12,labelFontSize:14,valueFormat:","}},nc=p((e,t="")=>Object.keys(e).reduce((r,i)=>Array.isArray(e[i])?r:typeof e[i]=="object"&&e[i]!==null?[...r,t+i,...nc(e[i],"")]:[...r,t+i],[]),"keyify"),Wg=new Set(nc(ac,"")),sc=ac,Ji=p(e=>{if($.debug("sanitizeDirective called with",e),!(typeof e!="object"||e==null)){if(Array.isArray(e)){e.forEach(t=>Ji(t));return}for(const t of Object.keys(e)){if($.debug("Checking key",t),t.startsWith("__")||t.includes("proto")||t.includes("constr")||!Wg.has(t)||e[t]==null){$.debug("sanitize deleting key: ",t),delete e[t];continue}if(typeof e[t]=="object"){$.debug("sanitizing object",t),Ji(e[t]);continue}const r=["themeCSS","fontFamily","altFontFamily"];for(const i of r)t.includes(i)&&($.debug("sanitizing css option",t),e[t]=qg(e[t]))}if(e.themeVariables)for(const t of Object.keys(e.themeVariables)){const r=e.themeVariables[t];r?.match&&!r.match(/^[\d "#%(),.;A-Za-z]+$/)&&(e.themeVariables[t]="")}$.debug("After sanitization",e)}},"sanitizeDirective"),qg=p(e=>{let t=0,r=0;for(const i of e){if(t<r)return"{ /* ERROR: Unbalanced CSS */ }";i==="{"?t++:i==="}"&&r++}return t!==r?"{ /* ERROR: Unbalanced CSS */ }":e},"sanitizeCss"),br=Object.freeze(sc),Gt=St({},br),ta,Je=[],ri=St({},br),Ba=p((e,t)=>{let r=St({},e),i={};for(const a of t)cc(a),i=St(i,a);if(r=St(r,i),i.theme&&i.theme in Be){const a=St({},ta),n=St(a.themeVariables||{},i.themeVariables);r.theme&&r.theme in Be&&(r.themeVariables=Be[r.theme].getThemeVariables(n))}return ri=r,hc(ri),ri},"updateCurrentConfig"),Hg=p(e=>(Gt=St({},br),Gt=St(Gt,e),e.theme&&Be[e.theme]&&(Gt.themeVariables=Be[e.theme].getThemeVariables(e.themeVariables)),Ba(Gt,Je),Gt),"setSiteConfig"),Yg=p(e=>{ta=St({},e)},"saveConfigFromInitialize"),Ug=p(e=>(Gt=St(Gt,e),Ba(Gt,Je),Gt),"updateSiteConfig"),oc=p(()=>St({},Gt),"getSiteConfig"),lc=p(e=>(hc(e),St(ri,e),Dt()),"setConfig"),Dt=p(()=>St({},ri),"getConfig"),cc=p(e=>{e&&(["secure",...Gt.secure??[]].forEach(t=>{Object.hasOwn(e,t)&&($.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"&&cc(e[t])}))},"sanitize"),jg=p(e=>{Ji(e),e.fontFamily&&!e.themeVariables?.fontFamily&&(e.themeVariables={...e.themeVariables,fontFamily:e.fontFamily}),Je.push(e),Ba(Gt,Je)},"addDirective"),ea=p((e=Gt)=>{Je=[],Ba(e,Je)},"reset"),Gg={LAZY_LOAD_DEPRECATED:"The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead."},Io={},Vg=p(e=>{Io[e]||($.warn(Gg[e]),Io[e]=!0)},"issueWarning"),hc=p(e=>{e&&(e.lazyLoadedDiagrams||e.loadExternalDiagramsAtStartup)&&Vg("LAZY_LOAD_DEPRECATED")},"checkConfig"),v_=p(()=>{let e={};ta&&(e=St(e,ta));for(const t of Je)e=St(e,t);return e},"getUserDefinedConfig"),fi=/<br\s*\/?>/gi,Xg=p(e=>
4e?fc(e).replace(/\\n/g,"#br#").split("#br#"):[""],"getRows"),Zg=(()=>{let e=!1;return()=>{e||(uc(),e=!0)}})();function uc(){const e="data-temp-href-target";xr.addHook("beforeSanitizeAttributes",t=>{t.tagName==="A"&&t.hasAttribute("target")&&t.setAttribute(e,t.getAttribute("target")??"")}),xr.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"))})}p(uc,"setupDompurifyHooks");var dc=p(e=>(Zg(),xr.sanitize(e)),"removeScript"),Po=p((e,t)=>{if(t.flowchart?.htmlLabels!==!1){const r=t.securityLevel;r==="antiscript"||r==="strict"?e=dc(e):r!=="loose"&&(e=fc(e),e=e.replace(/</g,"&lt;").replace(/>/g,"&gt;"),e=e.replace(/=/g,"&equals;"),e=tm(e))}return e},"sanitizeMore"),Jt=p((e,t)=>e&&(t.dompurifyConfig?e=xr.sanitize(Po(e,t),t.dompurifyConfig).toString():e=xr.sanitize(Po(e,t),{FORBID_TAGS:["style"]}).toString(),e),"sanitizeText"),Kg=p((e,t)=>typeof e=="string"?Jt(e,t):e.flat().map(r=>Jt(r,t)),"sanitizeTextOrArray"),Qg=p(e=>fi.test(e),"hasBreaks"),Jg=p(e=>e.split(fi),"splitBreaks"),tm=p(e=>e.replace(/#br#/g,"<br/>"),"placeholderToBreak"),fc=p(e=>e.replace(fi,"#br#"),"breakToPlaceholder"),em=p(e=>{let t="";return e&&(t=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,t=CSS.escape(t)),t},"getUrl"),Lt=p(e=>!(e===!1||["false","null","0"].includes(String(e).trim().toLowerCase())),"evaluate"),rm=p(function(...e){const t=e.filter(r=>!isNaN(r));return Math.max(...t)},"getMax"),im=p(function(...e){const t=e.filter(r=>!isNaN(r));return Math.min(...t)},"getMin"),No=p(function(e){const t=e.split(/(,)/),r=[];for(let i=0;i<t.length;i++){let a=t[i];if(a===","&&i>0&&i+1<t.length){const n=t[i-1],s=t[i+1];am(n,s)&&(a=n+","+s,i++,r.pop())}r.push(nm(a))}return r.join("")},"parseGenericTypes"),Sn=p((e,t)=>Math.max(0,e.split(t).length-1),"countOccurrence"),am=p((e,t)=>{const r=Sn(e,"~"),i=Sn(t,"~");return r===1&&i===1},"shouldCombineSets"),nm=p(e=>{const t=Sn(e,"~");let r=!1;if(t<=1)return e;t%2!==0&&e.startsWith("~")&&(e=e.substring(1),r=!0);const i=[...e];let a=i.indexOf("~"),n=i.lastIndexOf("~");for(;a!==-1&&n!==-1&&a!==n;)i[a]="<",i[n]=">",a=i.indexOf("~"),n=i.lastIndexOf("~");return r&&i.unshift("~"),i.join("")},"processSet"),zo=p(()=>window.MathMLElement!==void 0,"isMathMLSupported"),Tn=/\$\$(.*)\$\$/g,Cr=p(e=>(e.match(Tn)?.length??0)>0,"hasKatex"),S_=p(async(e,t)=>{const r=document.createElement("div");r.innerHTML=await gs(e,t),r.id="katex-temp",r.style.visibility="hidden",r.style.position="absolute",r.style.top="0",document.querySelector("body")?.insertAdjacentElement("beforeend",r);const a={width:r.clientWidth,height:r.clientHeight};return r.remove(),a},"calculateMathMLDimensions"),sm=p(async(e,t)=>{if(!Cr(e))return e;if(!(zo()||t.legacyMathML||t.forceLegacyMathML))return e.replace(Tn,"MathML is unsupported in this environment.");{const{default:r}=await pt(async()=>{const{default:a}=await import("./katex-Czoxt7Ks.js");return{default:a}},[]),i=t.forceLegacyMathML||!zo()&&t.legacyMathML?"htmlAndMathml":"mathml";return e.split(fi).map(a=>Cr(a)?`<div style="display: flex; align-items: center; justify-content: center; white-space: nowrap;">${a}</div>`:`<div>${a}</div>`).join("").replace(Tn,(a,n)=>r.renderToString(n,{throwOnError:!0,displayMode:!0,output:i}).replace(/\n/g," ").replace(/<annotation.*<\/annotation>/g,""))}},"renderKatexUnsanitized"),gs=p(async(e,t)=>Jt(await sm(e,t),t),"renderKatexSanitized"),Lr={getRows:Xg,sanitizeText:Jt,sanitizeTextOrArray:Kg,hasBreaks:Qg,splitBreaks:Jg,lineBreakRegex:fi,removeScript:dc,getUrl:em,evaluate:Lt,getMax:rm,getMin:im},om=p(function(e,t){for(let r of t)e.attr(r[0],r[1])},"d3Attrs"),lm=p(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"),pc=p(function(e,t,r,i){const a=lm(t,r,i);om(e,a)},"configureSvgSize"),cm=p(function(e,t,r,i){const a=t.node().getBBox(),n=a.width,s=a.height;$.info(`SVG bounds: ${n}x${s}`,a);let o=0,l=0;$.info(`Graph bounds: ${o}x${l}`,e),o=n+r*2,l=s+r*2,$.info(`Calculated bounds: ${o}x${l}`),pc(t,l,o,i);const c=`${a.x-r} ${a.y-r} ${a.width+2*r} ${a.height+2*r}`;t.attr("viewBox",c)},"setupGraphViewbox"),zi={},hm=p((e,t,r)=>{let i="";return e in zi&&zi[e]?i=zi[e](r):$.warn(`No theme found for ${e}`),` & {
5    font-family: ${r.fontFamily};
6    font-size: ${r.fontSize};
7    fill: ${r.textColor}
8  }
9  @keyframes edge-animation-frame {
10    from {
11      stroke-dashoffset: 0;
12    }
13  }
14  @keyframes dash {
15    to {
16      stroke-dashoffset: 0;
17    }
18  }
19  & .edge-animation-slow {
20    stroke-dasharray: 9,5 !important;
21    stroke-dashoffset: 900;
22    animation: dash 50s linear infinite;
23    stroke-linecap: round;
24  }
25  & .edge-animation-fast {
26    stroke-dasharray: 9,5 !important;
27    stroke-dashoffset: 900;
28    animation: dash 20s linear infinite;
29    stroke-linecap: round;
30  }
31  /* Classes common for multiple diagrams */
32
33  & .error-icon {
34    fill: ${r.errorBkgColor};
35  }
36  & .error-text {
37    fill: ${r.errorTextColor};
38    stroke: ${r.errorTextColor};
39  }
40
41  & .edge-thickness-normal {
42    stroke-width: 1px;
43  }
44  & .edge-thickness-thick {
45    stroke-width: 3.5px
46  }
47  & .edge-pattern-solid {
48    stroke-dasharray: 0;
49  }
50  & .edge-thickness-invisible {
51    stroke-width: 0;
52    fill: none;
53  }
54  & .edge-pattern-dashed{
55    stroke-dasharray: 3;
56  }
57  .edge-pattern-dotted {
58    stroke-dasharray: 2;
59  }
60
61  & .marker {
62    fill: ${r.lineColor};
63    stroke: ${r.lineColor};
64  }
65  & .marker.cross {
66    stroke: ${r.lineColor};
67  }
68
69  & svg {
70    font-family: ${r.fontFamily};
71    font-size: ${r.fontSize};
72  }
73   & p {
74    margin: 0
75   }
76
77  ${i}
78
79  ${t}
80`},"getStyles"),um=p((e,t)=>{t!==void 0&&(zi[e]=t)},"addStylesForDiagram"),dm=hm,gc={};tg(gc,{clear:()=>fm,getAccDescription:()=>ym,getAccTitle:()=>gm,getDiagramTitle:()=>bm,setAccDescription:()=>mm,setAccTitle:()=>pm,setDiagramTitle:()=>xm});var ms="",ys="",xs="",bs=p(e=>Jt(e,Dt()),"sanitizeText"),fm=p(()=>{ms="",xs="",ys=""},"clear"),pm=p(e=>{ms=bs(e).replace(/^\s+/g,"")},"setAccTitle"),gm=p(()=>ms,"getAccTitle"),mm=p(e=>{xs=bs(e).replace(/\n\s+/g,`
81`)},"setAccDescription"),ym=p(()=>xs,"getAccDescription"),xm=p(e=>{ys=bs(e)},"setDiagramTitle"),bm=p(()=>ys,"getDiagramTitle"),Wo=$,Cm=fs,dt=Dt,T_=lc,L_=br,Cs=p(e=>Jt(e,dt()),"sanitizeText"),km=cm,wm=p(()=>gc,"getCommonDb"),ra={},ia=p((e,t,r)=>
vendor: 24,814 bytes, line 81
81{ra[e]&&Wo.warn(`Diagram with id ${e} already registered. Overwriting.`),ra[e]=t,r&&ic(e,r),um(e,t.styles),t.injectUtils?.(Wo,Cm,dt,Cs,km,wm(),()=>{})},"registerDiagram"),Ln=p(e=>{if(e in ra)return ra[e];throw new _m(e)},"getDiagram"),_m=class extends Error{static{p(this,"DiagramNotFoundError")}constructor(e){super(`Diagram ${e} not found.`)}},vm={value:()=>{}};function mc(){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 Wi(r)}function Wi(e){this._=e}function Sm(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}})}Wi.prototype=mc.prototype={constructor:Wi,on:function(e,t){var r=this._,i=Sm(e+"",r),a,n=-1,s=i.length;if(arguments.length<2){for(;++n<s;)if((a=(e=i[n]).type)&&(a=Tm(r[a],e.name)))return a;return}if(t!=null&&typeof t!="function")throw new Error("invalid callback: "+t);for(;++n<s;)if(a=(e=i[n]).type)r[a]=qo(r[a],e.name,t);else if(t==null)for(a in r)r[a]=qo(r[a],e.name,null);return this},copy:function(){var e={},t=this._;for(var r in t)e[r]=t[r].slice();return new Wi(e)},call:function(e,t){if((a=arguments.length-2)>0)for(var r=new Array(a),i=0,a,n;i<a;++i)r[i]=arguments[i+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(n=this._[e],i=0,a=n.length;i<a;++i)n[i].value.apply(t,r)},apply:function(e,t,r){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var i=this._[e],a=0,n=i.length;a<n;++a)i[a].value.apply(t,r)}};function Tm(e,t){for(var r=0,i=e.length,a;r<i;++r)if((a=e[r]).name===t)return a.value}function qo(e,t,r){for(var i=0,a=e.length;i<a;++i)if(e[i].name===t){e[i]=vm,e=e.slice(0,i).concat(e.slice(i+1));break}return r!=null&&e.push({name:t,value:r}),e}var Bn="http://www.w3.org/1999/xhtml";const Ho={svg:"http://www.w3.org/2000/svg",xhtml:Bn,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Aa(e){var t=e+="",r=t.indexOf(":");return r>=0&&(t=e.slice(0,r))!=="xmlns"&&(e=e.slice(r+1)),Ho.hasOwnProperty(t)?{space:Ho[t],local:e}:e}function Lm(e){return function(){var t=this.ownerDocument,r=this.namespaceURI;return r===Bn&&t.documentElement.namespaceURI===Bn?t.createElement(e):t.createElementNS(r,e)}}function Bm(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function yc(e){var t=Aa(e);return(t.local?Bm:Lm)(t)}function Am(){}function ks(e){return e==null?Am:function(){return this.querySelector(e)}}function Mm(e){typeof e!="function"&&(e=ks(e));for(var t=this._groups,r=t.length,i=new Array(r),a=0;a<r;++a)for(var n=t[a],s=n.length,o=i[a]=new Array(s),l,c,h=0;h<s;++h)(l=n[h])&&(c=e.call(l,l.__data__,h,n))&&("__data__"in l&&(c.__data__=l.__data__),o[h]=c);return new Zt(i,this._parents)}function Em(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function Fm(){return[]}function xc(e){return e==null?Fm:function(){return this.querySelectorAll(e)}}function $m(e){return function(){return Em(e.apply(this,arguments))}}function Dm(e){typeof e=="function"?e=$m(e):e=xc(e);for(var t=this._groups,r=t.length,i=[],a=[],n=0;n<r;++n)for(var s=t[n],o=s.length,l,c=0;c<o;++c)(l=s[c])&&(i.push(e.call(l,l.__data__,c,s)),a.push(l));return new Zt(i,a)}function bc(e){return function(){return this.matches(e)}}function Cc(e){return function(t){return t.matches(e)}}var Rm=Array.prototype.find;function Om(e){return function(){return Rm.call(this.children,e)}}function Im(){return this.firstElementChild}function Pm(e){return this.select(e==null?Im:Om(typeof e=="function"?e:Cc(e)))}var Nm=Array.prototype.filter;function zm(){return Array.from(this.children)}function Wm(e){return function(){return Nm.call(this.children,e)}}function qm(e){return this.selectAll(e==null?zm:Wm(typeof e=="function"?e:Cc(e)))}function Hm(e){typeof e!="function"&&(e=bc(e));for(var t=this._groups,r=t.length,i=new Array(r),a=0;a<r;++a)for(var n=t[a],s=n.length,o=i[a]=[],l,c=0;c<s;++c)(l=n[c])&&e.call(l,l.__data__,c,n)&&o.push(l);return new Zt(i,this._parents)}function kc(e){return new Array(e.length)}function Ym(){return new Zt(this._enter||this._groups.map(kc),this._parents)}function aa(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}aa.prototype={constructor:aa,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function Um(e){return function(){return e}}function jm(e,t,r,i,a,n){for(var s=0,o,l=t.length,c=n.length;s<c;++s)(o=t[s])?(o.__data__=n[s],i[s]=o):r[s]=new aa(e,n[s]);for(;s<l;++s)(o=t[s])&&(a[s]=o)}function Gm(e,t,r,i,a,n,s){var o,l,c=new Map,h=t.length,u=n.length,d=new Array(h),f;for(o=0;o<h;++o)(l=t[o])&&(d[o]=f=s.call(l,l.__data__,o,t)+"",c.has(f)?a[o]=l:c.set(f,l));for(o=0;o<u;++o)f=s.call(e,n[o],o,n)+"",(l=c.get(f))?(i[o]=l,l.__data__=n[o],c.delete(f)):r[o]=new aa(e,n[o]);for(o=0;o<h;++o)(l=t[o])&&c.get(d[o])===l&&(a[o]=l)}function Vm(e){return e.__data__}function Xm(e,t){if(!arguments.length)return Array.from(this,Vm);var r=t?Gm:jm,i=this._parents,a=this._groups;typeof e!="function"&&(e=Um(e));for(var n=a.length,s=new Array(n),o=new Array(n),l=new Array(n),c=0;c<n;++c){var h=i[c],u=a[c],d=u.length,f=Zm(e.call(h,h&&h.__data__,c,i)),g=f.length,m=o[c]=new Array(g),y=s[c]=new Array(g),x=l[c]=new Array(d);r(h,u,m,y,x,f,t);for(var b=0,C=0,_,w;b<g;++b)if(_=m[b]){for(b>=C&&(C=b+1);!(w=y[C])&&++C<g;);_._next=w||null}}return s=new Zt(s,i),s._enter=o,s._exit=l,s}function Zm(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function Km(){return new Zt(this._exit||this._groups.map(kc),this._parents)}function Qm(e,t,r){var i=this.enter(),a=this,n=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?n.remove():r(n),i&&a?i.merge(a).order():a}function Jm(e){for(var t=e.selection?e.selection():e,r=this._groups,i=t._groups,a=r.length,n=i.length,s=Math.min(a,n),o=new Array(a),l=0;l<s;++l)for(var c=r[l],h=i[l],u=c.length,d=o[l]=new Array(u),f,g=0;g<u;++g)(f=c[g]||h[g])&&(d[g]=f);for(;l<a;++l)o[l]=r[l];return new Zt(o,this._parents)}function ty(){for(var e=this._groups,t=-1,r=e.length;++t<r;)for(var i=e[t],a=i.length-1,n=i[a],s;--a>=0;)(s=i[a])&&(n&&s.compareDocumentPosition(n)^4&&n.parentNode.insertBefore(s,n),n=s);return this}function ey(e){e||(e=ry);function t(u,d){return u&&d?e(u.__data__,d.__data__):!u-!d}for(var r=this._groups,i=r.length,a=new Array(i),n=0;n<i;++n){for(var s=r[n],o=s.length,l=a[n]=new Array(o),c,h=0;h<o;++h)(c=s[h])&&(l[h]=c);l.sort(t)}return new Zt(a,this._parents).order()}function ry(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function iy(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function ay(){return Array.from(this)}function ny(){for(var e=this._groups,t=0,r=e.length;t<r;++t)for(var i=e[t],a=0,n=i.length;a<n;++a){var s=i[a];if(s)return s}return null}function sy(){let e=0;for(const t of this)++e;return e}function oy(){return!this.node()}function ly(e){for(var t=this._groups,r=0,i=t.length;r<i;++r)for(var a=t[r],n=0,s=a.length,o;n<s;++n)(o=a[n])&&e.call(o,o.__data__,n,a);return this}function cy(e){return function(){this.removeAttribute(e)}}function hy(e){return function(){this.removeAttributeNS(e.space,e.local)}}function uy(e,t){return function(){this.setAttribute(e,t)}}function dy(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function fy(e,t){return function(){var r=t.apply(this,arguments);r==null?this.removeAttribute(e):this.setAttribute(e,r)}}function py(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)}}function gy(e,t){var r=Aa(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?hy:cy:typeof t=="function"?r.local?py:fy:r.local?dy:uy)(r,t))}function wc(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function my(e){return function(){this.style.removeProperty(e)}}function yy(e,t,r){return function(){this.style.setProperty(e,t,r)}}function xy(e,t,r){return function(){var i=t.apply(this,arguments);i==null?this.style.removeProperty(e):this.style.setProperty(e,i,r)}}function by(e,t,r){return arguments.length>1?this.each((t==null?my:typeof t=="function"?xy:yy)(e,t,r??"")):kr(this.node(),e)}function kr(e,t){return e.style.getPropertyValue(t)||wc(e).getComputedStyle(e,null).getPropertyValue(t)}function Cy(e){return function(){delete this[e]}}function ky(e,t){return function(){this[e]=t}}function wy(e,t){return function(){var r=t.apply(this,arguments);r==null?delete this[e]:this[e]=r}}function _y(e,t){return arguments.length>1?this.each((t==null?Cy:typeof t=="function"?wy:ky)(e,t)):this.node()[e]}function _c(e){return e.trim().split(/^|\s+/)}function ws(e){return e.classList||new vc(e)}function vc(e){this._node=e,this._names=_c(e.getAttribute("class")||"")}vc.prototype={add:function(e){var t=this._names.indexOf(e);t<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function Sc(e,t){for(var r=ws(e),i=-1,a=t.length;++i<a;)r.add(t[i])}function Tc(e,t){for(var r=ws(e),i=-1,a=t.length;++i<a;)r.remove(t[i])}function vy(e){return function(){Sc(this,e)}}function Sy(e){return function(){Tc(this,e)}}function Ty(e,t){return function(){(t.apply(this,arguments)?Sc:Tc)(this,e)}}function Ly(e,t){var r=_c(e+"");if(arguments.length<2){for(var i=ws(this.node()),a=-1,n=r.length;++a<n;)if(!i.contains(r[a]))return!1;return!0}return this.each((typeof t=="function"?Ty:t?vy:Sy)(r,t))}function By(){this.textContent=""}function Ay(e){return function(){this.textContent=e}}function My(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function Ey(e){return arguments.length?this.each(e==null?By:(typeof e=="function"?My:Ay)(e)):this.node().textContent}function Fy(){this.innerHTML=""}function $y(e){return function(){this.innerHTML=e}}function Dy(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function Ry(e){return arguments.length?this.each(e==null?Fy:(typeof e=="function"?Dy:$y)(e)):this.node().innerHTML}function Oy(){this.nextSibling&&this.parentNode.appendChild(this)}function Iy(){return this.each(Oy)}function Py(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Ny(){return this.each(Py)}function zy(e){var t=typeof e=="function"?e:yc(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function Wy(){return null}function qy(e,t){var r=typeof e=="function"?e:yc(e),i=t==null?Wy:typeof t=="function"?t:ks(t);return this.select(function(){return this.insertBefore(r.apply(this,arguments),i.apply(this,arguments)||null)})}function Hy(){var e=this.parentNode;e&&e.removeChild(this)}function Yy(){return this.each(Hy)}function Uy(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function jy(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Gy(e){return this.select(e?jy:Uy)}function Vy(e){return arguments.length?this.property("__data__",e):this.node().__data__}function Xy(e){return function(t){e.call(this,t,this.__data__)}}function Zy(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}})}function Ky(e){return function(){var t=this.__on;if(t){for(var r=0,i=-1,a=t.length,n;r<a;++r)n=t[r],(!e.type||n.type===e.type)&&n.name===e.name?this.removeEventListener(n.type,n.listener,n.options):t[++i]=n;++i?t.length=i:delete this.__on}}}function Qy(e,t,r){return function(){var i=this.__on,a,n=Xy(t);if(i){for(var s=0,o=i.length;s<o;++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=n,a.options=r),a.value=t;return}}this.addEventListener(e.type,n,r),a={type:e.type,name:e.name,value:t,listener:n,options:r},i?i.push(a):this.__on=[a]}}function Jy(e,t,r){var i=Zy(e+""),a,n=i.length,s;if(arguments.length<2){var o=this.node().__on;if(o){for(var l=0,c=o.length,h;l<c;++l)for(a=0,h=o[l];a<n;++a)if((s=i[a]).type===h.type&&s.name===h.name)return h.value}return}for(o=t?Qy:Ky,a=0;a<n;++a)this.each(o(i[a],t,r));return this}function Lc(e,t,r){var i=wc(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)}function t0(e,t){return function(){return Lc(this,e,t)}}function e0(e,t){return function(){return Lc(this,e,t.apply(this,arguments))}}function r0(e,t){return this.each((typeof t=="function"?e0:t0)(e,t))}function*i0(){for(var e=this._groups,t=0,r=e.length;t<r;++t)for(var i=e[t],a=0,n=i.length,s;a<n;++a)(s=i[a])&&(yield s)}var Bc=[null];function Zt(e,t){this._groups=e,this._parents=t}function pi(){return new Zt([[document.documentElement]],Bc)}function a0(){return this}Zt.prototype=pi.prototype={constructor:Zt,select:Mm,selectAll:Dm,selectChild:Pm,selectChildren:qm,filter:Hm,data:Xm,enter:Ym,exit:Km,join:Qm,merge:Jm,selection:a0,order:ty,sort:ey,call:iy,nodes:ay,node:ny,size:sy,empty:oy,each:ly,attr:gy,style:by,property:_y,classed:Ly,text:Ey,html:Ry,raise:Iy,lower:Ny,append:zy,insert:qy,remove:Yy,clone:Gy,datum:Vy,on:Jy,dispatch:r0,[Symbol.iterator]:i0};function ht(e){return typeof e=="string"?new Zt([[document.querySelector(e)]],[document.documentElement]):new Zt([[e]],Bc)}var wr=0,Ur=0,Pr=0,Ac=1e3,na,jr,sa=0,tr=0,Ma=0,ai=typeof performance=="object"&&performance.now?performance:Date,Mc=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function _s(){return tr||(Mc(n0),tr=ai.now()+Ma)}function n0(){tr=0}function oa(){this._call=this._time=this._next=null}oa.prototype=Ec.prototype={constructor:oa,restart:function(e,t,r){if(typeof e!="function")throw new TypeError("callback is not a function");r=(r==null?_s():+r)+(t==null?0:+t),!this._next&&jr!==this&&(jr?jr._next=this:na=this,jr=this),this._call=e,this._time=r,An()},stop:function(){this._call&&(this._call=null,this._time=1/0,An())}};function Ec(e,t,r){var i=new oa;return i.restart(e,t,r),i}function s0(){_s(),++wr;for(var e=na,t;e;)(t=tr-e._time)>=0&&e._call.call(void 0,t),e=e._next;--wr}function Yo(){tr=(sa=ai.now())+Ma,wr=Ur=0;try{s0()}finally{wr=0,l0(),tr=0}}function o0(){var e=ai.now(),t=e-sa;t>Ac&&(Ma-=t,sa=e)}function l0(){for(var e,t=na,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:na=r);jr=e,An(i)}function An(e){if(!wr){Ur&&(Ur=clearTimeout(Ur));var t=e-tr;t>24?(e<1/0&&(Ur=setTimeout(Yo,e-ai.now()-Ma)),Pr&&(Pr=clearInterval(Pr))):(Pr||(sa=ai.now(),Pr=setInterval(o0,Ac)),wr=1,Mc(Yo))}}function Uo(e,t,r){var i=new oa;return t=t==null?0:+t,i.restart(a=>{i.stop(),e(a+t)},t,r),i}var c0=mc("start","end","cancel","interrupt"),h0=[],Fc=0,jo=1,Mn=2,qi=3,Go=4,En=5,Hi=6;function Ea(e,t,r,i,a,n){var s=e.__transition;if(!s)e.__transition={};else if(r in s)return;u0(e,r,{name:t,index:i,group:a,on:c0,tween:h0,time:n.time,delay:n.delay,duration:n.duration,ease:n.ease,timer:null,state:Fc})}function vs(e,t){var r=he(e,t);if(r.state>Fc)throw new Error("too late; already scheduled");return r}function Ce(e,t){var r=he(e,t);if(r.state>qi)throw new Error("too late; already running");return r}function he(e,t){var r=e.__transition;if(!r||!(r=r[t]))throw new Error("transition not found");return r}function u0(e,t,r){var i=e.__transition,a;i[t]=r,r.timer=Ec(n,0,r.time);function n(c){r.state=jo,r.timer.restart(s,r.delay,r.time),r.delay<=c&&s(c-r.delay)}function s(c){var h,u,d,f;if(r.state!==jo)return l();for(h in i)if(f=i[h],f.name===r.name){if(f.state===qi)return Uo(s);f.state===Go?(f.state=Hi,f.timer.stop(),f.on.call("interrupt",e,e.__data__,f.index,f.group),delete i[h]):+h<t&&(f.state=Hi,f.timer.stop(),f.on.call("cancel",e,e.__data__,f.index,f.group),delete i[h])}if(Uo(function(){r.state===qi&&(r.state=Go,r.timer.restart(o,r.delay,r.time),o(c))}),r.state=Mn,r.on.call("start",e,e.__data__,r.index,r.group),r.state===Mn){for(r.state=qi,a=new Array(d=r.tween.length),h=0,u=-1;h<d;++h)(f=r.tween[h].value.call(e,e.__data__,r.index,r.group))&&(a[++u]=f);a.length=u+1}}function o(c){for(var h=c<r.duration?r.ease.call(null,c/r.duration):(r.timer.restart(l),r.state=En,1),u=-1,d=a.length;++u<d;)a[u].call(e,h);r.state===En&&(r.on.call("end",e,e.__data__,r.index,r.group),l())}function l(){r.state=Hi,r.timer.stop(),delete i[t];for(var c in i)return;delete e.__transition}}function d0(e,t){var r=e.__transition,i,a,n=!0,s;if(r){t=t==null?null:t+"";for(s in r){if((i=r[s]).name!==t){n=!1;continue}a=i.state>Mn&&i.state<En,i.state=Hi,i.timer.stop(),i.on.call(a?"interrupt":"cancel",e,e.__data__,i.index,i.group),delete r[s]}n&&delete e.__transition}}function f0(e){return this.each(function(){d0(this,e)})}function p0(e,t){var r,i;return function(){var a=Ce(this,e),n=a.tween;if(n!==r){i=r=n;for(var s=0,o=i.length;s<o;++s)if(i[s].name===t){i=i.slice(),i.splice(s,1);break}}a.tween=i}}function g0(e,t,r){var i,a;if(typeof r!="function")throw new Error;return function(){var n=Ce(this,e),s=n.tween;if(s!==i){a=(i=s).slice();for(var o={name:t,value:r},l=0,c=a.length;l<c;++l)if(a[l].name===t){a[l]=o;break}l===c&&a.push(o)}n.tween=a}}function m0(e,t){var r=this._id;if(e+="",arguments.length<2){for(var i=he(this.node(),r).tween,a=0,n=i.length,s;a<n;++a)if((s=i[a]).name===e)return s.value;return null}return this.each((t==null?p0:g0)(r,e,t))}function Ss(e,t,r){var i=e._id;return e.each(function(){var a=Ce(this,i);(a.value||(a.value={}))[t]=r.apply(this,arguments)}),function(a){return he(a,i).value[t]}}function $c(e,t){var r;return(typeof t=="number"?je:t instanceof So?vo:(r=So(t))?(t=r,vo):Op)(e,t)}function y0(e){return function(){this.removeAttribute(e)}}function x0(e){return function(){this.removeAttributeNS(e.space,e.local)}}function b0(e,t,r){var i,a=r+"",n;return function(){var s=this.getAttribute(e);return s===a?null:s===i?n:n=t(i=s,r)}}function C0(e,t,r){var i,a=r+"",n;return function(){var s=this.getAttributeNS(e.space,e.local);return s===a?null:s===i?n:n=t(i=s,r)}}function k0(e,t,r){var i,a,n;return function(){var s,o=r(this),l;return o==null?void this.removeAttribute(e):(s=this.getAttribute(e),l=o+"",s===l?null:s===i&&l===a?n:(a=l,n=t(i=s,o)))}}function w0(e,t,r){var i,a,n;return function(){var s,o=r(this),l;return o==null?void this.removeAttributeNS(e.space,e.local):(s=this.getAttributeNS(e.space,e.local),l=o+"",s===l?null:s===i&&l===a?n:(a=l,n=t(i=s,o)))}}function _0(e,t){var r=Aa(e),i=r==="transform"?Xp:$c;return this.attrTween(e,typeof t=="function"?(r.local?w0:k0)(r,i,Ss(this,"attr."+e,t)):t==null?(r.local?x0:y0)(r):(r.local?C0:b0)(r,i,t))}function v0(e,t){return function(r){this.setAttribute(e,t.call(this,r))}}function S0(e,t){return function(r){this.setAttributeNS(e.space,e.local,t.call(this,r))}}function T0(e,t){var r,i;function a(){var n=t.apply(this,arguments);return n!==i&&(r=(i=n)&&S0(e,n)),r}return a._value=t,a}function L0(e,t){var r,i;function a(){var n=t.apply(this,arguments);return n!==i&&(r=(i=n)&&v0(e,n)),r}return a._value=t,a}function B0(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=Aa(e);return this.tween(r,(i.local?T0:L0)(i,t))}function A0(e,t){return function(){vs(this,e).delay=+t.apply(this,arguments)}}function M0(e,t){return t=+t,function(){vs(this,e).delay=t}}function E0(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?A0:M0)(t,e)):he(this.node(),t).delay}function F0(e,t){return function(){Ce(this,e).duration=+t.apply(this,arguments)}}function $0(e,t){return t=+t,function(){Ce(this,e).duration=t}}function D0(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?F0:$0)(t,e)):he(this.node(),t).duration}function R0(e,t){if(typeof t!="function")throw new Error;return function(){Ce(this,e).ease=t}}function O0(e){var t=this._id;return arguments.length?this.each(R0(t,e)):he(this.node(),t).ease}function I0(e,t){return function(){var r=t.apply(this,arguments);if(typeof r!="function")throw new Error;Ce(this,e).ease=r}}function P0(e){if(typeof e!="function")throw new Error;return this.each(I0(this._id,e))}function N0(e){typeof e!="function"&&(e=bc(e));for(var t=this._groups,r=t.length,i=new Array(r),a=0;a<r;++a)for(var n=t[a],s=n.length,o=i[a]=[],l,c=0;c<s;++c)(l=n[c])&&e.call(l,l.__data__,c,n)&&o.push(l);return new Me(i,this._parents,this._name,this._id)}function z0(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,r=e._groups,i=t.length,a=r.length,n=Math.min(i,a),s=new Array(i),o=0;o<n;++o)for(var l=t[o],c=r[o],h=l.length,u=s[o]=new Array(h),d,f=0;f<h;++f)(d=l[f]||c[f])&&(u[f]=d);for(;o<i;++o)s[o]=t[o];return new Me(s,this._parents,this._name,this._id)}function W0(e){return(e+"").trim().split(/^|\s+/).every(function(t){var r=t.indexOf(".");return r>=0&&(t=t.slice(0,r)),!t||t==="start"})}function q0(e,t,r){var i,a,n=W0(t)?vs:Ce;return function(){var s=n(this,e),o=s.on;o!==i&&(a=(i=o).copy()).on(t,r),s.on=a}}function H0(e,t){var r=this._id;return arguments.length<2?he(this.node(),r).on.on(e):this.each(q0(r,e,t))}function Y0(e){return function(){var t=this.parentNode;for(var r in this.__transition)if(+r!==e)return;t&&t.removeChild(this)}}function U0(){return this.on("end.remove",Y0(this._id))}function j0(e){var t=this._name,r=this._id;typeof e!="function"&&(e=ks(e));for(var i=this._groups,a=i.length,n=new Array(a),s=0;s<a;++s)for(var o=i[s],l=o.length,c=n[s]=new Array(l),h,u,d=0;d<l;++d)(h=o[d])&&(u=e.call(h,h.__data__,d,o))&&("__data__"in h&&(u.__data__=h.__data__),c[d]=u,Ea(c[d],t,r,d,c,he(h,r)));return new Me(n,this._parents,t,r)}function G0(e){var t=this._name,r=this._id;typeof e!="function"&&(e=xc(e));for(var i=this._groups,a=i.length,n=[],s=[],o=0;o<a;++o)for(var l=i[o],c=l.length,h,u=0;u<c;++u)if(h=l[u]){for(var d=e.call(h,h.__data__,u,l),f,g=he(h,r),m=0,y=d.length;m<y;++m)(f=d[m])&&Ea(f,t,r,m,d,g);n.push(d),s.push(h)}return new Me(n,s,t,r)}var V0=pi.prototype.constructor;function X0(){return new V0(this._groups,this._parents)}function Z0(e,t){var r,i,a;return function(){var n=kr(this,e),s=(this.style.removeProperty(e),kr(this,e));return n===s?null:n===r&&s===i?a:a=t(r=n,i=s)}}function Dc(e){return function(){this.style.removeProperty(e)}}function K0(e,t,r){var i,a=r+"",n;return function(){var s=kr(this,e);return s===a?null:s===i?n:n=t(i=s,r)}}function Q0(e,t,r){var i,a,n;return function(){var s=kr(this,e),o=r(this),l=o+"";return o==null&&(l=o=(this.style.removeProperty(e),kr(this,e))),s===l?null:s===i&&l===a?n:(a=l,n=t(i=s,o))}}function J0(e,t){var r,i,a,n="style."+t,s="end."+n,o;return function(){var l=Ce(this,e),c=l.on,h=l.value[n]==null?o||(o=Dc(t)):void 0;(c!==r||a!==h)&&(i=(r=c).copy()).on(s,a=h),l.on=i}}function tx(e,t,r){var i=(e+="")=="transform"?Vp:$c;return t==null?this.styleTween(e,Z0(e,i)).on("end.style."+e,Dc(e)):typeof t=="function"?this.styleTween(e,Q0(e,i,Ss(this,"style."+e,t))).each(J0(this._id,e)):this.styleTween(e,K0(e,i,t),r).on("end.style."+e,null)}function ex(e,t,r){return function(i){this.style.setProperty(e,t.call(this,i),r)}}function rx(e,t,r){var i,a;function n(){var s=t.apply(this,arguments);return s!==a&&(i=(a=s)&&ex(e,s,r)),i}return n._value=t,n}function ix(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,rx(e,t,r??""))}function ax(e){return function(){this.textContent=e}}function nx(e){return function(){var t=e(this);this.textContent=t??""}}function sx(e){return this.tween("text",typeof e=="function"?nx(Ss(this,"text",e)):ax(e==null?"":e+""))}function ox(e){return function(t){this.textContent=e.call(this,t)}}function lx(e){var t,r;function i(){var a=e.apply(this,arguments);return a!==r&&(t=(r=a)&&ox(a)),t}return i._value=e,i}function cx(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,lx(e))}
81function hx(){for(var e=this._name,t=this._id,r=Rc(),i=this._groups,a=i.length,n=0;n<a;++n)for(var s=i[n],o=s.length,l,c=0;c<o;++c)if(l=s[c]){var h=he(l,t);Ea(l,e,r,c,s,{time:h.time+h.delay+h.duration,delay:0,duration:h.duration,ease:h.ease})}return new Me(i,this._parents,e,r)}function ux(){var e,t,r=this,i=r._id,a=r.size();return new Promise(function(n,s){var o={value:s},l={value:function(){--a===0&&n()}};r.each(function(){var c=Ce(this,i),h=c.on;h!==e&&(t=(e=h).copy(),t._.cancel.push(o),t._.interrupt.push(o),t._.end.push(l)),c.on=t}),a===0&&n()})}var dx=0;function Me(e,t,r,i){this._groups=e,this._parents=t,this._name=r,this._id=i}function Rc(){return++dx}var Se=pi.prototype;Me.prototype={constructor:Me,select:j0,selectAll:G0,selectChild:Se.selectChild,selectChildren:Se.selectChildren,filter:N0,merge:z0,selection:X0,transition:hx,call:Se.call,nodes:Se.nodes,node:Se.node,size:Se.size,empty:Se.empty,each:Se.each,on:H0,attr:_0,attrTween:B0,style:tx,styleTween:ix,text:sx,textTween:cx,remove:U0,tween:m0,delay:E0,duration:D0,ease:O0,easeVarying:P0,end:ux,[Symbol.iterator]:Se[Symbol.iterator]};function fx(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var px={time:null,delay:0,duration:250,ease:fx};function gx(e,t){for(var r;!(r=e.__transition)||!(r=r[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`);return r}function mx(e){var t,r;e instanceof Me?(t=e._id,e=e._name):(t=Rc(),(r=px).time=_s(),e=e==null?null:e+"");for(var i=this._groups,a=i.length,n=0;n<a;++n)for(var s=i[n],o=s.length,l,c=0;c<o;++c)(l=s[c])&&Ea(l,e,t,c,s,r||gx(l,t));return new Me(i,this._parents,e,t)}pi.prototype.interrupt=f0;pi.prototype.transition=mx;function Gr(e,t,r){this.k=e,this.x=t,this.y=r}Gr.prototype={constructor:Gr,scale:function(e){return e===1?this:new Gr(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new Gr(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};Gr.prototype;var yx=p(e=>{const{securityLevel:t}=dt();let r=ht("body");if(t==="sandbox"){const n=ht(`#i${e}`).node()?.contentDocument??document;r=ht(n.body)}return r.select(`#${e}`)},"selectSvgElement");function Ts(e){return typeof e>"u"||e===null}p(Ts,"isNothing");function Oc(e){return typeof e=="object"&&e!==null}p(Oc,"isObject");function Ic(e){return Array.isArray(e)?e:Ts(e)?[]:[e]}p(Ic,"toArray");function Pc(e,t){var r,i,a,n;if(t)for(n=Object.keys(t),r=0,i=n.length;r<i;r+=1)a=n[r],e[a]=t[a];return e}p(Pc,"extend");function Nc(e,t){var r="",i;for(i=0;i<t;i+=1)r+=e;return r}p(Nc,"repeat");function zc(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}p(zc,"isNegativeZero");var xx=Ts,bx=Oc,Cx=Ic,kx=Nc,wx=zc,_x=Pc,Tt={isNothing:xx,isObject:bx,toArray:Cx,repeat:kx,isNegativeZero:wx,extend:_x};function Ls(e,t){var r="",i=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(r+='in "'+e.mark.name+'" '),r+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(r+=`
82
83`+e.mark.snippet),i+" "+r):i}p(Ls,"formatError");function _r(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=Ls(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}p(_r,"YAMLException$1");_r.prototype=Object.create(Error.prototype);_r.prototype.constructor=_r;_r.prototype.toString=p(function(t){return this.name+": "+Ls(this,t)},"toString");var Vt=_r;function Yi(e,t,r,i,a){var n="",s="",o=Math.floor(a/2)-1;return i-t>o&&(n=" ... ",t=i-o+n.length),r-i>o&&(s=" ...",r=i+o-s.length),{str:n+e.slice(t,r).replace(/\t/g,"→")+s,pos:i-t+n.length}}p(Yi,"getLine");function Ui(e,t){return Tt.repeat(" ",t-e.length)+e}p(Ui,"padStart");function Wc(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),typeof t.indent!="number"&&(t.indent=1),typeof t.linesBefore!="number"&&(t.linesBefore=3),typeof t.linesAfter!="number"&&(t.linesAfter=2);for(var r=/\r?\n|\r|\0/g,i=[0],a=[],n,s=-1;n=r.exec(e.buffer);)a.push(n.index),i.push(n.index+n[0].length),e.position<=n.index&&s<0&&(s=i.length-2);s<0&&(s=i.length-1);var o="",l,c,h=Math.min(e.line+t.linesAfter,a.length).toString().length,u=t.maxLength-(t.indent+h+3);for(l=1;l<=t.linesBefore&&!(s-l<0);l++)c=Yi(e.buffer,i[s-l],a[s-l],e.position-(i[s]-i[s-l]),u),o=Tt.repeat(" ",t.indent)+Ui((e.line-l+1).toString(),h)+" | "+c.str+`
84`+o;for(c=Yi(e.buffer,i[s],a[s],e.position,u),o+=Tt.repeat(" ",t.indent)+Ui((e.line+1).toString(),h)+" | "+c.str+`
85`,o+=Tt.repeat("-",t.indent+h+3+c.pos)+`^
86`,l=1;l<=t.linesAfter&&!(s+l>=a.length);l++)c=Yi(e.buffer,i[s+l],a[s+l],e.position-(i[s]-i[s+l]),u),o+=Tt.repeat(" ",t.indent)+Ui((e.line+l+1).toString(),h)+" | "+c.str+`
87`;return o.replace(/\n$/,"")}p(Wc,"makeSnippet");var vx=Wc,Sx=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],Tx=["scalar","sequence","mapping"];function qc(e){var t={};return e!==null&&Object.keys(e).forEach(function(r){e[r].forEach(function(i){t[String(i)]=r})}),t}p(qc,"compileStyleAliases");function Hc(e,t){if(t=t||{},Object.keys(t).forEach(function(r){if(Sx.indexOf(r)===-1)throw new Vt('Unknown option "'+r+'" is met in definition of "'+e+'" YAML type.')}),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(r){return r},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=qc(t.styleAliases||null),Tx.indexOf(this.kind)===-1)throw new Vt('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}p(Hc,"Type$1");var Rt=Hc;function Fn(e,t){var r=[];return e[t].forEach(function(i){var a=r.length;r.forEach(function(n,s){n.tag===i.tag&&n.kind===i.kind&&n.multi===i.multi&&(a=s)}),r[a]=i}),r}p(Fn,"compileList");function Yc(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},t,r;function i(a){a.multi?(e.multi[a.kind].push(a),e.multi.fallback.push(a)):e[a.kind][a.tag]=e.fallback[a.tag]=a}for(p(i,"collectType"),t=0,r=arguments.length;t<r;t+=1)arguments[t].forEach(i);return e}p(Yc,"compileMap");function la(e){return this.extend(e)}p(la,"Schema$1");la.prototype.extend=p(function(t){var r=[],i=[];if(t instanceof Rt)i.push(t);else if(Array.isArray(t))i=i.concat(t);else if(t&&(Array.isArray(t.implicit)||Array.isArray(t.explicit)))t.implicit&&(r=r.concat(t.implicit)),t.explicit&&(i=i.concat(t.explicit));else throw new Vt("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");r.forEach(function(n){if(!(n instanceof Rt))throw new Vt("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(n.loadKind&&n.loadKind!=="scalar")throw new Vt("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");
87if(n.multi)throw new Vt("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),i.forEach(function(n){if(!(n instanceof Rt))throw new Vt("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var a=Object.create(la.prototype);return a.implicit=(this.implicit||[]).concat(r),a.explicit=(this.explicit||[]).concat(i),a.compiledImplicit=Fn(a,"implicit"),a.compiledExplicit=Fn(a,"explicit"),a.compiledTypeMap=Yc(a.compiledImplicit,a.compiledExplicit),a},"extend");var Lx=la,Bx=new Rt("tag:yaml.org,2002:str",{kind:"scalar",construct:p(function(e){return e!==null?e:""},"construct")}),Ax=new Rt("tag:yaml.org,2002:seq",{kind:"sequence",construct:p(function(e){return e!==null?e:[]},"construct")}),Mx=new Rt("tag:yaml.org,2002:map",{kind:"mapping",construct:p(function(e){return e!==null?e:{}},"construct")}),Ex=new Lx({explicit:[Bx,Ax,Mx]});function Uc(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}p(Uc,"resolveYamlNull");function jc(){return null}p(jc,"constructYamlNull");function Gc(e){return e===null}p(Gc,"isNull");var Fx=new Rt("tag:yaml.org,2002:null",{kind:"scalar",resolve:Uc,construct:jc,predicate:Gc,represent:{canonical:p(function(){return"~"},"canonical"),lowercase:p(function(){return"null"},"lowercase"),uppercase:p(function(){return"NULL"},"uppercase"),camelcase:p(function(){return"Null"},"camelcase"),empty:p(function(){return""},"empty")},defaultStyle:"lowercase"});function Vc(e){if(e===null)return!1;var t=e.length;return t===4&&(e==="true"||e==="True"||e==="TRUE")||t===5&&(e==="false"||e==="False"||e==="FALSE")}p(Vc,"resolveYamlBoolean");function Xc(e){return e==="true"||e==="True"||e==="TRUE"}p(Xc,"constructYamlBoolean");function Zc(e){return Object.prototype.toString.call(e)==="[object Boolean]"}p(Zc,"isBoolean");var $x=new Rt("tag:yaml.org,2002:bool",{kind:"scalar",resolve:Vc,construct:Xc,predicate:Zc,represent:{lowercase:p(function(e){return e?"true":"false"},"lowercase"),uppercase:p(function(e){return e?"TRUE":"FALSE"},"uppercase"),camelcase:p(function(e){return e?"True":"False"},"camelcase")},defaultStyle:"lowercase"});function Kc(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}p(Kc,"isHexCode");function Qc(e){return 48<=e&&e<=55}p(Qc,"isOctCode");function Jc(e){return 48<=e&&e<=57}p(Jc,"isDecCode");function th(e){if(e===null)return!1;var t=e.length,r=0,i=!1,a;if(!t)return!1;if(a=e[r],(a==="-"||a==="+")&&(a=e[++r]),a==="0"){if(r+1===t)return!0;if(a=e[++r],a==="b"){for(r++;r<t;r++)if(a=e[r],a!=="_"){if(a!=="0"&&a!=="1")return!1;i=!0}return i&&a!=="_"}if(a==="x"){for(r++;r<t;r++)if(a=e[r],a!=="_"){if(!Kc(e.charCodeAt(r)))return!1;i=!0}return i&&a!=="_"}if(a==="o"){for(r++;r<t;r++)if(a=e[r],a!=="_"){if(!Qc(e.charCodeAt(r)))return!1;i=!0}return i&&a!=="_"}}if(a==="_")return!1;for(;r<t;r++)if(a=e[r],a!=="_"){if(!Jc(e.charCodeAt(r)))return!1;i=!0}return!(!i||a==="_")}p(th,"resolveYamlInteger");function eh(e){var t=e,r=1,i;if(t.indexOf("_")!==-1&&(t=t.replace(/_/g,"")),i=t[0],(i==="-"||i==="+")&&(i==="-"&&(r=-1),t=t.slice(1),i=t[0]),t==="0")return 0;if(i==="0"){if(t[1]==="b")return r*parseInt(t.slice(2),2);if(t[1]==="x")return r*parseInt(t.slice(2),16);if(t[1]==="o")return r*parseInt(t.slice(2),8)}return r*parseInt(t,10)}p(eh,"constructYamlInteger");function rh(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!Tt.isNegativeZero(e)}p(rh,"isInteger");var Dx=new Rt("tag:yaml.org,2002:int",{kind:"scalar",resolve:th,construct:eh,predicate:rh,represent:{binary:p(function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},"binary"),octal:p(function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)}
87,"octal"),decimal:p(function(e){return e.toString(10)},"decimal"),hexadecimal:p(function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)},"hexadecimal")},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),Rx=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function ih(e){return!(e===null||!Rx.test(e)||e[e.length-1]==="_")}p(ih,"resolveYamlFloat");function ah(e){var t,r;return t=e.replace(/_/g,"").toLowerCase(),r=t[0]==="-"?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),t===".inf"?r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:r*parseFloat(t,10)}p(ah,"constructYamlFloat");var Ox=/^[-+]?[0-9]+e/;function nh(e,t){var r;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(Tt.isNegativeZero(e))return"-0.0";return r=e.toString(10),Ox.test(r)?r.replace("e",".e"):r}p(nh,"representYamlFloat");function sh(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||Tt.isNegativeZero(e))}p(sh,"isFloat");var Ix=new Rt("tag:yaml.org,2002:float",{kind:"scalar",resolve:ih,construct:ah,predicate:sh,represent:nh,defaultStyle:"lowercase"}),oh=Ex.extend({implicit:[Fx,$x,Dx,Ix]}),Px=oh,lh=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),ch=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 hh(e){return e===null?!1:lh.exec(e)!==null||ch.exec(e)!==null}p(hh,"resolveYamlTimestamp");function uh(e){var t,r,i,a,n,s,o,l=0,c=null,h,u,d;if(t=lh.exec(e),t===null&&(t=ch.exec(e)),t===null)throw new Error("Date resolve error");
87if(r=+t[1],i=+t[2]-1,a=+t[3],!t[4])return new Date(Date.UTC(r,i,a));if(n=+t[4],s=+t[5],o=+t[6],t[7]){for(l=t[7].slice(0,3);l.length<3;)l+="0";l=+l}return t[9]&&(h=+t[10],u=+(t[11]||0),c=(h*60+u)*6e4,t[9]==="-"&&(c=-c)),d=new Date(Date.UTC(r,i,a,n,s,o,l)),c&&d.setTime(d.getTime()-c),d}p(uh,"constructYamlTimestamp");function dh(e){return e.toISOString()}p(dh,"representYamlTimestamp");var Nx=new Rt("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:hh,construct:uh,instanceOf:Date,represent:dh});function fh(e){return e==="<<"||e===null}p(fh,"resolveYamlMerge");var zx=new Rt("tag:yaml.org,2002:merge",{kind:"scalar",resolve:fh}),Bs=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
88\r`;function ph(e){if(e===null)return!1;var t,r,i=0,a=e.length,n=Bs;for(r=0;r<a;r++)if(t=n.indexOf(e.charAt(r)),!(t>64)){if(t<0)return!1;i+=6}return i%8===0}p(ph,"resolveYamlBinary");function gh(e){var t,r,i=e.replace(/[\r\n=]/g,""),a=i.length,n=Bs,s=0,o=[];for(t=0;t<a;t++)t%4===0&&t&&(o.push(s>>16&255),o.push(s>>8&255),o.push(s&255)),s=s<<6|n.indexOf(i.charAt(t));return r=a%4*6,r===0?(o.push(s>>16&255),o.push(s>>8&255),o.push(s&255)):r===18?(o.push(s>>10&255),o.push(s>>2&255)):r===12&&o.push(s>>4&255),new Uint8Array(o)}p(gh,"constructYamlBinary");function mh(e){var t="",r=0,i,a,n=e.length,s=Bs;for(i=0;i<n;i++)i%3===0&&i&&(t+=s[r>>18&63],t+=s[r>>12&63],t+=s[r>>6&63],t+=s[r&63]),r=(r<<8)+e[i];return a=n%3,a===0?(t+=s[r>>18&63],t+=s[r>>12&63],t+=s[r>>6&63],t+=s[r&63]):a===2?(t+=s[r>>10&63],t+=s[r>>4&63],t+=s[r<<2&63],t+=s[64]):a===1&&(t+=s[r>>2&63],t+=s[r<<4&63],t+=s[64],t+=s[64]),t}p(mh,"representYamlBinary");function yh(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}p(yh,"isBinary");var Wx=new Rt("tag:yaml.org,2002:binary",{kind:"scalar",resolve:ph,construct:gh,predicate:yh,represent:mh}),qx=Object.prototype.hasOwnProperty,Hx=Object.prototype.toString;function xh(e){if(e===null)return!0;var t=[],r,i,a,n,s,o=e;for(r=0,i=o.length;r<i;r+=1){if(a=o[r],s=!1,Hx.call(a)!=="[object Object]")return!1;for(n in a)if(qx.call(a,n))if(!s)s=!0;else return!1;if(!s)return!1;if(t.indexOf(n)===-1)t.push(n);else return!1}return!0}p(xh,"resolveYamlOmap");function bh(e){return e!==null?e:[]}p(bh,"constructYamlOmap");var Yx=new Rt("tag:yaml.org,2002:omap",{kind:"sequence",resolve:xh,construct:bh}),Ux=Object.prototype.toString;function Ch(e){if(e===null)return!0;var t,r,i,a,n,s=e;for(n=new Array(s.length),t=0,r=s.length;t<r;t+=1){if(i=s[t],Ux.call(i)!=="[object Object]"||(a=Object.keys(i),a.length!==1))return!1;n[t]=[a[0],i[a[0]]]}return!0}p(Ch,"resolveYamlPairs");function kh(e){if(e===null)return[];var t,r,i,a,n,s=e;for(n=new Array(s.length),t=0,r=s.length;t<r;t+=1)i=s[t],a=Object.keys(i),n[t]=[a[0],i[a[0]]];return n}p(kh,"constructYamlPairs");var jx=new Rt("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:Ch,construct:kh}),Gx=Object.prototype.hasOwnProperty;function wh(e){if(e===null)return!0;var t,r=e;for(t in r)if(Gx.call(r,t)&&r[t]!==null)return!1;return!0}p(wh,"resolveYamlSet");function _h(e){return e!==null?e:{}}p(_h,"constructYamlSet");var Vx=new Rt("tag:yaml.org,2002:set",{kind:"mapping",resolve:wh,construct:_h}),vh=Px.extend({implicit:[Nx,zx],explicit:[Wx,Yx,jx,Vx]}),Ie=Object.prototype.hasOwnProperty,ca=1,Sh=2,Th=3,ha=4,ln=1,Xx=2,Vo=3,Zx=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Kx=/[\x85\u2028\u2029]/,Qx=/[,\[\]\{\}]/,Lh=/^(?:!|!!|![a-z\-]+!)$/i,Bh=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function $n(e){return Object.prototype.toString.call(e)}p($n,"_class");function le(e){return e===10||e===13}p(le,"is_EOL");function Oe(e){return e===9||e===32}p(Oe,"is_WHITE_SPACE");function Wt(e){return e===9||e===32||e===10||e===13}p(Wt,"is_WS_OR_EOL");function Xe(e){return e===44||e===91||e===93||e===123||e===125}p(Xe,"is_FLOW_INDICATOR");function Ah(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}p(Ah,"fromHexCode");function Mh(e){return e===120?2:e===117?4:e===85?8:0}p(Mh,"escapedHexLen");function Eh(e){return 48<=e&&e<=57?e-48:-1}p(Eh,"fromDecimalCode");function Dn(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?"	":e===110?`
89`:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"…":e===95?" ":e===76?"\u2028":e===80?"\u2029":""}p(Dn,"simpleEscapeSequence");function Fh(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}p(Fh,"charFromCodepoint");var $h=new Array(256),Dh=new Array(256);for(Ue=0;Ue<256;Ue++)$h[Ue]=Dn(Ue)?1:0,Dh[Ue]=Dn(Ue);var Ue;function Rh(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||vh,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.impl
89icitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}p(Rh,"State$1");function As(e,t){var r={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return r.snippet=vx(r),new Vt(t,r)}p(As,"generateError");function Q(e,t){throw As(e,t)}p(Q,"throwError");function ni(e,t){e.onWarning&&e.onWarning.call(null,As(e,t))}p(ni,"throwWarning");var Xo={YAML:p(function(t,r,i){var a,n,s;t.version!==null&&Q(t,"duplication of %YAML directive"),i.length!==1&&Q(t,"YAML directive accepts exactly one argument"),a=/^([0-9]+)\.([0-9]+)$/.exec(i[0]),a===null&&Q(t,"ill-formed argument of the YAML directive"),n=parseInt(a[1],10),s=parseInt(a[2],10),n!==1&&Q(t,"unacceptable YAML version of the document"),t.version=i[0],t.checkLineBreaks=s<2,s!==1&&s!==2&&ni(t,"unsupported YAML version of the document")},"handleYamlDirective"),TAG:p(function(t,r,i){var a,n;i.length!==2&&Q(t,"TAG directive accepts exactly two arguments"),a=i[0],n=i[1],Lh.test(a)||Q(t,"ill-formed tag handle (first argument) of the TAG directive"),Ie.call(t.tagMap,a)&&Q(t,'there is a previously declared suffix for "'+a+'" tag handle'),Bh.test(n)||Q(t,"ill-formed tag prefix (second argument) of the TAG directive");try{n=decodeURIComponent(n)}catch{Q(t,"tag prefix is malformed: "+n)}t.tagMap[a]=n},"handleTagDirective")};function Ae(e,t,r,i){var a,n,s,o;if(t<r){if(o=e.input.slice(t,r),i)for(a=0,n=o.length;a<n;a+=1)s=o.charCodeAt(a),s===9||32<=s&&s<=1114111||Q(e,"expected valid JSON character");else Zx.test(o)&&Q(e,"the stream contains non-printable characters");e.result+=o}}p(Ae,"captureSegment");function Rn(e,t,r,i){var a,n,s,o;for(Tt.isObject(r)||Q(e,"cannot merge mappings; the provided source object is unacceptable"),a=Object.keys(r),s=0,o=a.length;s<o;s+=1)n=a[s],Ie.call(t,n)||(t[n]=r[n],i[n]=!0)}p(Rn,"mergeMappings");function Ze(e,t,r,i,a,n,s,o,l){var c,h;if(Array.isArray(a))for(a=Array.prototype.slice.call(a),c=0,h=a.length;c<h;c+=1)Array.isArray(a[c])&&Q(e,"nested arrays are not supported inside keys"),typeof a=="object"&&$n(a[c])==="[object Object]"&&(a[c]="[object Object]");if(typeof a=="object"&&$n(a)==="[object Object]"&&(a="[object Object]"),a=String(a),t===null&&(t={}),i==="tag:yaml.org,2002:merge")if(Array.isArray(n))for(c=0,h=n.length;c<h;c+=1)Rn(e,t,n[c],r);else Rn(e,t,n,r);else!e.json&&!Ie.call(r,a)&&Ie.call(t,a)&&(e.line=s||e.line,e.lineStart=o||e.lineStart,e.position=l||e.position,Q(e,"duplicated mapping key")),a==="__proto__"?Object.defineProperty(t,a,{configurable:!0,enumerable:!0,writable:!0,value:n}):t[a]=n,delete r[a];return t}p(Ze,"storeMappingPair");function Fa(e){var t;t=e.input.charCodeAt(e.position),t===10?e.position++:t===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):Q(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}p(Fa,"readLineBreak");function xt(e,t,r){for(var i=0,a=e.input.charCodeAt(e.position);a!==0;){for(;Oe(a);)a===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),a=e.input.charCodeAt(++e.position);if(t&&a===35)do a=e.input.charCodeAt(++e.position);while(a!==10&&a!==13&&a!==0);if(le(a))for(Fa(e),a=e.input.charCodeAt(e.position),i++,e.lineIndent=0;a===32;)e.lineIndent++,a=e.input.charCodeAt(++e.position);else break}return r!==-1&&i!==0&&e.lineIndent<r&&ni(e,"deficient indentation"),i}p(xt,"skipSeparationSpace");function gi(e){var t=e.position,r;return r=e.input.charCodeAt(t),!!((r===45||r===46)&&r===e.input.charCodeAt(t+1)&&r===e.input.charCodeAt(t+2)&&(t+=3,r=e.input.charCodeAt(t),r===0||Wt(r)))}p(gi,"testDocumentSeparator");function $a(e,t){t===1?e.result+=" ":t>1&&(e.result+=Tt.repeat(`
90`,t-1))}p($a,"writeFoldedLines");function Oh(e,t,r){var i,a,n,s,o,l,c,h,u=e.kind,d=e.result,f;if(f=e.input.charCodeAt(e.position),Wt(f)||Xe(f)||f===35||f===38||f===42||f===33||f===124||f===62||f===39||f===34||f===37||f===64||f===96||(f===63||f===45)&&(a=e.input.charCodeAt(e.position+1),Wt(a)||r&&Xe(a)))return!1;for(e.kind="scalar",e.result="",n=s=e.position,o=!1;f!==0;){if(f===58){if(a=e.input.charCodeAt(e.position+1),Wt(a)||r&&Xe(a))break}else if(f===35){if(i=e.input.charCodeAt(e.position-1),Wt(i))break}else{if(e.position===e.lineStart&&gi(e)||r&&Xe(f))break;if(le(f))if(l=e.line,c=e.lineStart,h=e.lineIndent,xt(e,!1,-1),e.lineIndent>=t){o=!0,f=e.input.charCodeAt(e.position);continue}else{e.position=s,e.line=l,e.lineStart=c,e.lineIndent=h;break}}o&&(Ae(e,n,s,!1),$a(e,e.line-l),n=s=e.position,o=!1),Oe(f)||(s=e.position+1),f=e.input.charCodeAt(++e.position)}return Ae(e,n,s,!1),e.result?!0:(e.kind=u,e.result=d,!1)}p(Oh,"readPlainScalar");function Ih(e,t){var r,i,a;if(r=e.input.charCodeAt(e.position),r!==39)return!1;for(e.kind="scalar",e.result="",e.position++,i=a=e.position;(r=e.input.charCodeAt(e.position))!==0;)if(r===39)if(Ae(e,i,e.position,!0),r=e.input.charCodeAt(++e.position),r===39)i=e.position,e.position++,a=e.position;else return!0;else le(r)?(Ae(e,i,a,!0),$a(e,xt(e,!1,t)),i=a=e.position):e.position===e.lineStart&&gi(e)?Q(e,"unexpected end of the document within a single quoted scalar"):(e.position++,a=e.position);Q(e,"unexpected end of the stream within a single quoted scalar")}p(Ih,"readSingleQuotedScalar");function Ph(e,t){var r,i,a,n,s,o;if(o=e.input.charCodeAt(e.position),o!==34)return!1;for(e.kind="scalar",e.result="",e.position++,r=i=e.position;(o=e.input.charCodeAt(e.position))!==0;){if(o===34)return Ae(e,r,e.position,!0),e.position++,!0;if(o===92){if(Ae(e,r,e.position,!0),o=e.input.charCodeAt(++e.position),le(o))xt(e,!1,t);else if(o<256&&$h[o])e.result+=Dh[o],e.position++;else if((s=Mh(o))>0){for(a=s,n=0;a>0;a--)o=e.input.charCodeAt(++e.position),(s=Ah(o))>=0?n=(n<<4)+s:Q(e,"expected hexadecimal character");e.result+=Fh(n),e.position++}else Q(e,"unknown escape sequence");r=i=e.position}else le(o)?(Ae(e,r,i,!0),$a(e,xt(e,!1,t)),r=i=e.position):e.position===e.lineStart&&gi(e)?Q(e,"unexpected end of the document within a double quoted scalar"):(e.position++,i=e.position)}Q(e,"unexpected end of the stream within a double quoted scalar")}p(Ph,"readDoubleQuotedScalar");function Nh(e,t){var r=!0,i,a,n,s=e.tag,o,l=e.anchor,c,h,u,d,f,g=Object.create(null),m,y,x,b;if(b=e.input.charCodeAt(e.position),b===91)h=93,f=!1,o=[];else if(b===123)h=125,f=!0,o={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=o),b=e.input.charCodeAt(++e.position);b!==0;){if(xt(e,!0,t),b=e.input.charCodeAt(e.position),b===h)return e.position++,e.tag=s,e.anchor=l,e.kind=f?"mapping":"sequence",e.result=
90o,!0;r?b===44&&Q(e,"expected the node content, but found ','"):Q(e,"missed comma between flow collection entries"),y=m=x=null,u=d=!1,b===63&&(c=e.input.charCodeAt(e.position+1),Wt(c)&&(u=d=!0,e.position++,xt(e,!0,t))),i=e.line,a=e.lineStart,n=e.position,er(e,t,ca,!1,!0),y=e.tag,m=e.result,xt(e,!0,t),b=e.input.charCodeAt(e.position),(d||e.line===i)&&b===58&&(u=!0,b=e.input.charCodeAt(++e.position),xt(e,!0,t),er(e,t,ca,!1,!0),x=e.result),f?Ze(e,o,g,y,m,x,i,a,n):u?o.push(Ze(e,null,g,y,m,x,i,a,n)):o.push(m),xt(e,!0,t),b=e.input.charCodeAt(e.position),b===44?(r=!0,b=e.input.charCodeAt(++e.position)):r=!1}Q(e,"unexpected end of the stream within a flow collection")}p(Nh,"readFlowCollection");function zh(e,t){var r,i,a=ln,n=!1,s=!1,o=t,l=0,c=!1,h,u;if(u=e.input.charCodeAt(e.position),u===124)i=!1;else if(u===62)i=!0;else return!1;for(e.kind="scalar",e.result="";u!==0;)if(u=e.input.charCodeAt(++e.position),u===43||u===45)ln===a?a=u===43?Vo:Xx:Q(e,"repeat of a chomping mode identifier");else if((h=Eh(u))>=0)h===0?Q(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):s?Q(e,"repeat of an indentation width identifier"):(o=t+h-1,s=!0);else break;if(Oe(u)){do u=e.input.charCodeAt(++e.position);while(Oe(u));if(u===35)do u=e.input.charCodeAt(++e.position);while(!le(u)&&u!==0)}for(;u!==0;){for(Fa(e),e.lineIndent=0,u=e.input.charCodeAt(e.position);(!s||e.lineIndent<o)&&u===32;)e.lineIndent++,u=e.input.charCodeAt(++e.position);if(!s&&e.lineIndent>o&&(o=e.lineIndent),le(u)){l++;continue}if(e.lineIndent<o){a===Vo?e.result+=Tt.repeat(`
91`,n?1+l:l):a===ln&&n&&(e.result+=`
92`);break}for(i?Oe(u)?(c=!0,e.result+=Tt.repeat(`
93`,n?1+l:l)):c?(c=!1,e.result+=Tt.repeat(`
94`,l+1)):l===0?n&&(e.result+=" "):e.result+=Tt.repeat(`
95`,l):e.result+=Tt.repeat(`
96`,n?1+l:l),n=!0,s=!0,l=0,r=e.position;!le(u)&&u!==0;)u=e.input.charCodeAt(++e.position);Ae(e,r,e.position,!1)}return!0}p(zh,"readBlockScalar");function On(e,t){var r,i=e.tag,a=e.anchor,n=[],s,o=!1,l;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=n),l=e.input.charCodeAt(e.position);l!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,Q(e,"tab characters must not be used in indentation")),!(l!==45||(s=e.input.charCodeAt(e.position+1),!Wt(s))));){if(o=!0,e.position++,xt(e,!0,-1)&&e.lineIndent<=t){n.push(null),l=e.input.charCodeAt(e.position);continue}if(r=e.line,er(e,t,Th,!1,!0),n.push(e.result),xt(e,!0,-1),l=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&l!==0)Q(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return o?(e.tag=i,e.anchor=a,e.kind="sequence",e.result=n,!0):!1}p(On,"readBlockSequence");function Wh(e,t,r){var i,a,n,s,o,l,c=e.tag,h=e.anchor,u={},d=Object.create(null),f=null,g=null,m=null,y=!1,x=!1,b;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=u),b=e.input.charCodeAt(e.position);b!==0;){if(!y&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,Q(e,"tab characters must not be used in indentation")),i=e.input.charCodeAt(e.position+1),n=e.line,(b===63||b===58)&&Wt(i))b===63?(y&&(Ze(e,u,d,f,g,null,s,o,l),f=g=m=null),x=!0,y=!0,a=!0):y?(y=!1,a=!0):Q(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,b=i;else{if(s=e.line,o=e.lineStart,l=e.position,!er(e,r,Sh,!1,!0))break;if(e.line===n){for(b=e.input.charCodeAt(e.position);Oe(b);)b=e.input.charCodeAt(++e.position);if(b===58)b=e.input.charCodeAt(++e.position),Wt(b)||Q(e,"a whitespace character is expected after the key-value separator within a block mapping"),y&&(Ze(e,u,d,f,g,null,s,o,l),f=g=m=null),x=!0,y=!1,a=!1,f=e.tag,g=e.result;else if(x)Q(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=c,e.anchor=h,!0}else if(x)Q(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=c,e.anchor=h,!0}if((e.line===n||e.lineIndent>t)&&(y&&(s=e.line,o=e.lineStart,l=e.position),er(e,t,ha,!0,a)&&(y?g=e.result:m=e.result),y||(Ze(e,u,d,f,g,m,s,o,l),f=g=m=null),xt(e,!0,-1),b=e.input.charCodeAt(e.position)),(e.line===n||e.lineIndent>t)&&b!==0)Q(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return y&&Ze(e,u,d,f,g,null,s,o,l),x&&(e.tag=c,e.anchor=h,e.kind="mapping",e.result=u),x}p(Wh,"readBlockMapping");function qh(e){var t,r=!1,i=!1,a,n,s;if(s=e.input.charCodeAt(e.position),s!==33)return!1;if(e.tag!==null&&Q(e,"duplication of a tag property"),s=e.input.charCodeAt(++e.position),s===60?(r=!0,s=e.input.charCodeAt(++e.position)):s===33?(i=!0,a="!!",s=e.input.charCodeAt(++e.position)):a="!",t=e.position,r){do s=e.input.charCodeAt(++e.position);while(s!==0&&s!==62);e.position<e.length?(n=e.input.slice(t,e.position),s=e.input.charCodeAt(++e.position)):Q(e,"unexpected end of the stream within a verbatim tag")}else{for(;s!==0&&!Wt(s);)s===33&&(i?Q(e,"tag suffix cannot contain exclamation marks"):(a=e.input.slice(t-1,e.position+1),Lh.test(a)||Q(e,"named tag handle cannot contain such characters"),i=!0,t=e.position+1)),s=e.input.charCodeAt(++e.position);n=e.input.slice(t,e.position),Qx.test(n)&&Q(e,"tag suffix cannot contain flow indicator characters")}n&&!Bh.test(n)&&Q(e,"tag name cannot contain such characters: "+n);try{n=decodeURIComponent(n)}catch{Q(e,"tag name is malformed: "+n)}return r?e.tag=n:Ie.call(e.tagMap,a)?e.tag=e.tagMap[a]+n:a==="!"?e.tag="!"+n:a==="!!"?e.tag="tag:yaml.org,2002:"+n:Q(e,'undeclared tag handle "'+a+'"'),!0}p(qh,"readTagProperty");function Hh(e){var t,r;if(r=e.input.charCodeAt(e.position),r!==38)return!1;for(e.anchor!==null&&Q(e,"duplication of an anchor property"),r=e.input.charCodeAt(++e.position),t=e.position;r!==0&&!Wt(r)&&!Xe(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&Q(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}
96p(Hh,"readAnchorProperty");function Yh(e){var t,r,i;if(i=e.input.charCodeAt(e.position),i!==42)return!1;for(i=e.input.charCodeAt(++e.position),t=e.position;i!==0&&!Wt(i)&&!Xe(i);)i=e.input.charCodeAt(++e.position);return e.position===t&&Q(e,"name of an alias node must contain at least one character"),r=e.input.slice(t,e.position),Ie.call(e.anchorMap,r)||Q(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],xt(e,!0,-1),!0}p(Yh,"readAlias");function er(e,t,r,i,a){var n,s,o,l=1,c=!1,h=!1,u,d,f,g,m,y;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,n=s=o=ha===r||Th===r,i&&xt(e,!0,-1)&&(c=!0,e.lineIndent>t?l=1:e.lineIndent===t?l=0:e.lineIndent<t&&(l=-1)),l===1)for(;qh(e)||Hh(e);)xt(e,!0,-1)?(c=!0,o=n,e.lineIndent>t?l=1:e.lineIndent===t?l=0:e.lineIndent<t&&(l=-1)):o=!1;if(o&&(o=c||a),(l===1||ha===r)&&(ca===r||Sh===r?m=t:m=t+1,y=e.position-e.lineStart,l===1?o&&(On(e,y)||Wh(e,y,m))||Nh(e,m)?h=!0:(s&&zh(e,m)||Ih(e,m)||Ph(e,m)?h=!0:Yh(e)?(h=!0,(e.tag!==null||e.anchor!==null)&&Q(e,"alias node should not have any properties")):Oh(e,m,ca===r)&&(h=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):l===0&&(h=o&&On(e,y))),e.tag===null)e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);else if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&Q(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),u=0,d=e.implicitTypes.length;u<d;u+=1)if(g=e.implicitTypes[u],g.resolve(e.result)){e.result=g.construct(e.result),e.tag=g.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else if(e.tag!=="!"){if(Ie.call(e.typeMap[e.kind||"fallback"],e.tag))g=e.typeMap[e.kind||"fallback"][e.tag];else for(g=null,f=e.typeMap.multi[e.kind||"fallback"],u=0,d=f.length;u<d;u+=1)if(e.tag.slice(0,f[u].tag.length)===f[u].tag){g=f[u];break}g||Q(e,"unknown tag !<"+e.tag+">"),e.result!==null&&g.kind!==e.kind&&Q(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+g.kind+'", not "'+e.kind+'"'),g.resolve(e.result,e.tag)?(e.result=g.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):Q(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||h}p(er,"composeNode");function Uh(e){var t=e.position,r,i,a,n=!1,s;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(s=e.input.charCodeAt(e.position))!==0&&(xt(e,!0,-1),s=e.input.charCodeAt(e.position),!(e.lineIndent>0||s!==37));){for(n=!0,s=e.input.charCodeAt(++e.position),r=e.position;s!==0&&!Wt(s);)s=e.input.charCodeAt(++e.position);for(i=e.input.slice(r,e.position),a=[],i.length<1&&Q(e,"directive name must not be less than one character in length");s!==0;){for(;Oe(s);)s=e.input.charCodeAt(++e.position);if(s===35){do s=e.input.charCodeAt(++e.position);while(s!==0&&!le(s));break}if(le(s))break;for(r=e.position;s!==0&&!Wt(s);)s=e.input.charCodeAt(++e.position);a.push(e.input.slice(r,e.position))}s!==0&&Fa(e),Ie.call(Xo,i)?Xo[i](e,i,a):ni(e,'unknown document directive "'+i+'"')}if(xt(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,xt(e,!0,-1)):n&&Q(e,"directives end mark is expected"),er(e,e.lineIndent-1,ha,!1,!0),xt(e,!0,-1),e.checkLineBreaks&&Kx.test(e.input.slice(t,e.position))&&ni(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&gi(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,xt(e,!0,-1));return}if(e.position<e.length-1)Q(e,"end of the stream or a document separator is expected");else return}p(Uh,"readDocument");function Ms(e,t){e=String(e),t=t||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
97`),e.charCodeAt(0)===65279&&(e=e.slice(1)));var r=new Rh(e,t),i=e.indexOf("\0");for(i!==-1&&(r.position=i,Q(r,"null byte is not allowed in input")),r.input+="\0";r.input.charCodeAt(r.position)===32;)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)Uh(r);return r.documents}p(Ms,"loadDocuments");function Jx(e,t,r){t!==null&&typeof t=="object"&&typeof r>"u"&&(r=t,t=null);var i=Ms(e,r);if(typeof t!="function")return i;for(var a=0,n=i.length;a<n;a+=1)t(i[a])}p(Jx,"loadAll$1");function jh(e,t){var r=Ms(e,t);if(r.length!==0){if(r.length===1)return r[0];throw new Vt("expected a single document in the stream, but found more")}}p(jh,"load$1");var tb=jh,eb={load:tb},Gh=Object.prototype.toString,Vh=Object.prototype.hasOwnProperty,Es=65279,rb=9,si=10,ib=13,ab=32,nb=33,sb=34,In=35,ob=37,lb=38,cb=39,hb=42,Xh=44,ub=45,ua=58,db=61,fb=62,pb=63,gb=64,Zh=91,Kh=93,mb=96,Qh=123,yb=124,Jh=125,It={};It[0]="\\0";It[7]="\\a";It[8]="\\b";It[9]="\\t";It[10]="\\n";It[11]="\\v";It[12]="\\f";It[13]="\\r";It[27]="\\e";It[34]='\\"';It[92]="\\\\";It[133]="\\N";It[160]="\\_";It[8232]="\\L";It[8233]="\\P";var xb=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],bb=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function tu(e,t){var r,i,a,n,s,o,l;if(t===null)return{};for(r={},i=Object.keys(t),a=0,n=i.length;a<n;a+=1)s=i[a],o=String(t[s]),s.slice(0,2)==="!!"&&(s="tag:yaml.org,2002:"+s.slice(2)),l=e.compiledTypeMap.fallback[s],l&&Vh.call(l.styleAliases,o)&&(o=l.styleAliases[o]),r[s]=o;return r}p(tu,"compileStyleMap");function eu(e){var t,r,i;if(t=e.toString(16).toUpperCase(),e<=255)r="x",i=2;else if(e<=65535)r="u",i=4;else if(e<=4294967295)r="U",i=8;else throw new Vt("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+Tt.repeat("0",i-t.length)+t}p(eu,"encodeHex");var Cb=1,oi=2;function ru(e){this.schema=e.schema||vh,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.ski
97pInvalid||!1,this.flowLevel=Tt.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=tu(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.quotingType=e.quotingType==='"'?oi:Cb,this.forceQuotes=e.forceQuotes||!1,this.replacer=typeof e.replacer=="function"?e.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}p(ru,"State");function Pn(e,t){for(var r=Tt.repeat(" ",t),i=0,a=-1,n="",s,o=e.length;i<o;)a=e.indexOf(`
98`,i),a===-1?(s=e.slice(i),i=o):(s=e.slice(i,a+1),i=a+1),s.length&&s!==`
99`&&(n+=r),n+=s;return n}p(Pn,"indentString");function da(e,t){return`
100`+Tt.repeat(" ",e.indent*t)}p(da,"generateNextLine");function iu(e,t){var r,i,a;for(r=0,i=e.implicitTypes.length;r<i;r+=1)if(a=e.implicitTypes[r],a.resolve(t))return!0;return!1}p(iu,"testImplicitResolving");function li(e){return e===ab||e===rb}p(li,"isWhitespace");function vr(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==Es||65536<=e&&e<=1114111}p(vr,"isPrintable");function Nn(e){return vr(e)&&e!==Es&&e!==ib&&e!==si}p(Nn,"isNsCharOrWhitespace");function zn(e,t,r){var i=Nn(e),a=i&&!li(e);return(r?i:i&&e!==Xh&&e!==Zh&&e!==Kh&&e!==Qh&&e!==Jh)&&e!==In&&!(t===ua&&!a)||Nn(t)&&!li(t)&&e===In||t===ua&&a}p(zn,"isPlainSafe");function au(e){return vr(e)&&e!==Es&&!li(e)&&e!==ub&&e!==pb&&e!==ua&&e!==Xh&&e!==Zh&&e!==Kh&&e!==Qh&&e!==Jh&&e!==In&&e!==lb&&e!==hb&&e!==nb&&e!==yb&&e!==db&&e!==fb&&e!==cb&&e!==sb&&e!==ob&&e!==gb&&e!==mb}p(au,"isPlainSafeFirst");function nu(e){return!li(e)&&e!==ua}p(nu,"isPlainSafeLast");function pr(e,t){var r=e.charCodeAt(t),i;return r>=55296&&r<=56319&&t+1<e.length&&(i=e.charCodeAt(t+1),i>=56320&&i<=57343)?(r-55296)*1024+i-56320+65536:r}p(pr,"codePointAt");function Fs(e){var t=/^\n* /;return t.test(e)}p(Fs,"needIndentIndicator");var su=1,Wn=2,ou=3,lu=4,dr=5;function cu(e,t,r,i,a,n,s,o){var l,c=0,h=null,u=!1,d=!1,f=i!==-1,g=-1,m=au(pr(e,0))&&nu(pr(e,e.length-1));if(t||s)for(l=0;l<e.length;c>=65536?l+=2:l++){if(c=pr(e,l),!vr(c))return dr;m=m&&zn(c,h,o),h=c}else{for(l=0;l<e.length;c>=65536?l+=2:l++){if(c=pr(e,l),c===si)u=!0,f&&(d=d||l-g-1>i&&e[g+1]!==" ",g=l);else if(!vr(c))return dr;m=m&&zn(c,h,o),h=c}d=d||f&&l-g-1>i&&e[g+1]!==" "}return!u&&!d?m&&!s&&!a(e)?su:n===oi?dr:Wn:r>9&&Fs(e)?dr:s?n===oi?dr:Wn:d?lu:ou}p(cu,"chooseScalarStyle");function hu(e,t,r,i,a){e.dump=(function(){if(t.length===0)return e.quotingType===oi?'""':"''";if(!e.noCompatMode&&(xb.indexOf(t)!==-1||bb.test(t)))return e.quotingType===oi?'"'+t+'"':"'"+t+"'";var n=e.indent*Math.max(1,r),s=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-n),o=i||e.flowLevel>-1&&r>=e.flowLevel;function l(c){return iu(e,c)}switch(p(l,"testAmbiguity"),cu(t,o,e.indent,s,l,e.quotingType,e.forceQuotes&&!i,a)){case su:return t;case Wn:return"'"+t.replace(/'/g,"''")+"'";case ou:return"|"+qn(t,e.indent)+Hn(Pn(t,n));case lu:return">"+qn(t,e.indent)+Hn(Pn(uu(t,s),n));case dr:return'"'+du(t)+'"';default:throw new Vt("impossible error: invalid scalar style")}})()}p(hu,"writeScalar");function qn(e,t){var r=Fs(e)?String(t):"",i=e[e.length-1]===`
101`,a=i&&(e[e.length-2]===`
102`||e===`
103`),n=a?"+":i?"":"-";return r+n+`
104`}p(qn,"blockHeader");function Hn(e){return e[e.length-1]===`
105`?e.slice(0,-1):e}p(Hn,"dropEndingNewline");function uu(e,t){for(var r=/(\n+)([^\n]*)/g,i=(function(){var c=e.indexOf(`
106`);return c=c!==-1?c:e.length,r.lastIndex=c,Yn(e.slice(0,c),t)})(),a=e[0]===`
107`||e[0]===" ",n,s;s=r.exec(e);){var o=s[1],l=s[2];n=l[0]===" ",i+=o+(!a&&!n&&l!==""?`
108`:"")+Yn(l,t),a=n}return i}p(uu,"foldString");function Yn(e,t){if(e===""||e[0]===" ")return e;for(var r=/ [^ ]/g,i,a=0,n,s=0,o=0,l="";i=r.exec(e);)o=i.index,o-a>t&&(n=s>a?s:o,l+=`
109`+e.slice(a,n),a=n+1),s=o;return l+=`
110`,e.length-a>t&&s>a?l+=e.slice(a,s)+`
111`+e.slice(s+1):l+=e.slice(a),l.slice(1)}p(Yn,"foldLine");function du(e){for(var t="",r=0,i,a=0;a<e.length;r>=65536?a+=2:a++)r=pr(e,a),i=It[r],!i&&vr(r)?(t+=e[a],r>=65536&&(t+=e[a+1])):t+=i||eu(r);return t}p(du,"escapeString");function fu(e,t,r){var i="",a=e.tag,n,s,o;for(n=0,s=r.length;n<s;n+=1)o=r[n],e.replacer&&(o=e.replacer.call(r,String(n),o)),(be(e,t,o,!1,!1)||typeof o>"u"&&be(e,t,null,!1,!1))&&(i!==""&&(i+=","+(e.condenseFlow?"":" ")),i+=e.dump);e.tag=a,e.dump="["+i+"]"}p(fu,"writeFlowSequence");function Un(e,t,r,i){var a="",n=e.tag,s,o,l;for(s=0,o=r.length;s<o;s+=1)l=r[s],e.replacer&&(l=e.replacer.call(r,String(s),l)),(be(e,t+1,l,!0,!0,!1,!0)||typeof l>"u"&&be(e,t+1,null,!0,!0,!1,!0))&&((!i||a!=="")&&(a+=da(e,t)),e.dump&&si===e.dump.charCodeAt(0)?a+="-":a+="- ",a+=e.dump);e.tag=n,e.dump=a||"[]"}p(Un,"writeBlockSequence");function pu(e,t,r){var i="",a=e.tag,n=Object.keys(r),s,o,l,c,h;for(s=0,o=n.length;s<o;s+=1)h="",i!==""&&(h+=", "),e.condenseFlow&&(h+='"'),l=n[s],c=r[l],e.replacer&&(c=e.replacer.call(r,l,c)),be(e,t,l,!1,!1)&&(e.dump.length>1024&&(h+="? "),h+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),be(e,t,c,!1,!1)&&(h+=e.dump,i+=
111h));e.tag=a,e.dump="{"+i+"}"}p(pu,"writeFlowMapping");function gu(e,t,r,i){var a="",n=e.tag,s=Object.keys(r),o,l,c,h,u,d;if(e.sortKeys===!0)s.sort();else if(typeof e.sortKeys=="function")s.sort(e.sortKeys);else if(e.sortKeys)throw new Vt("sortKeys must be a boolean or a function");for(o=0,l=s.length;o<l;o+=1)d="",(!i||a!=="")&&(d+=da(e,t)),c=s[o],h=r[c],e.replacer&&(h=e.replacer.call(r,c,h)),be(e,t+1,c,!0,!0,!0)&&(u=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,u&&(e.dump&&si===e.dump.charCodeAt(0)?d+="?":d+="? "),d+=e.dump,u&&(d+=da(e,t)),be(e,t+1,h,!0,u)&&(e.dump&&si===e.dump.charCodeAt(0)?d+=":":d+=": ",d+=e.dump,a+=d));e.tag=n,e.dump=a||"{}"}p(gu,"writeBlockMapping");function jn(e,t,r){var i,a,n,s,o,l;for(a=r?e.explicitTypes:e.implicitTypes,n=0,s=a.length;n<s;n+=1)if(o=a[n],(o.instanceOf||o.predicate)&&(!o.instanceOf||typeof t=="object"&&t instanceof o.instanceOf)&&(!o.predicate||o.predicate(t))){if(r?o.multi&&o.representName?e.tag=o.representName(t):e.tag=o.tag:e.tag="?",o.represent){if(l=e.styleMap[o.tag]||o.defaultStyle,Gh.call(o.represent)==="[object Function]")i=o.represent(t,l);else if(Vh.call(o.represent,l))i=o.represent[l](t,l);else throw new Vt("!<"+o.tag+'> tag resolver accepts not "'+l+'" style');e.dump=i}return!0}return!1}p(jn,"detectType");function be(e,t,r,i,a,n,s){e.tag=null,e.dump=r,jn(e,r,!1)||jn(e,r,!0);var o=Gh.call(e.dump),l=i,c;i&&(i=e.flowLevel<0||e.flowLevel>t);var h=o==="[object Object]"||o==="[object Array]",u,d;if(h&&(u=e.duplicates.indexOf(r),d=u!==-1),(e.tag!==null&&e.tag!=="?"||d||e.indent!==2&&t>0)&&(a=!1),d&&e.usedDuplicates[u])e.dump="*ref_"+u;else{if(h&&d&&!e.usedDuplicates[u]&&(e.usedDuplicates[u]=!0),o==="[object Object]")i&&Object.keys(e.dump).length!==0?(gu(e,t,e.dump,a),d&&(e.dump="&ref_"+u+e.dump)):(pu(e,t,e.dump),d&&(e.dump="&ref_"+u+" "+e.dump));else if(o==="[object Array]")i&&e.dump.length!==0?(e.noArrayIndent&&!s&&t>0?Un(e,t-1,e.dump,a):Un(e,t,e.dump,a),d&&(e.dump="&ref_"+u+e.dump)):(fu(e,t,e.dump),d&&(e.dump="&ref_"+u+" "+e.dump));else if(o==="[object String]")e.tag!=="?"&&hu(e,e.dump,t,n,l);else{if(o==="[object Undefined]")return!1;if(e.skipInvalid)return!1;throw new Vt("unacceptable kind of an object to dump "+o)}e.tag!==null&&e.tag!=="?"&&(c=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?c="!"+c:c.slice(0,18)==="tag:yaml.org,2002:"?c="!!"+c.slice(18):c="!<"+c+">",e.dump=c+" "+e.dump)}return!0}p(be,"writeNode");function mu(e,t){var r=[],i=[],a,n;for(fa(e,r,i),a=0,n=i.length;a<n;a+=1)t.duplicates.push(r[i[a]]);t.usedDuplicates=new Array(n)}p(mu,"getDuplicateReferences");function fa(e,t,r){var i,a,n;if(e!==null&&typeof e=="object")if(a=t.indexOf(e),a!==-1)r.indexOf(a)===-1&&r.push(a);else if(t.push(e),Array.isArray(e))for(a=0,n=e.length;a<n;a+=1)fa(e[a],t,r);else for(i=Object.keys(e),a=0,n=i.length;a<n;a+=1)fa(e[i[a]],t,r)}p(fa,"inspectNode");function kb(e,t){t=t||{};var r=new ru(t);r.noRefs||mu(e,r);var i=e;return r.replacer&&(i=r.replacer.call({"":i},"",i)),be(r,0,i,!0,!0)?r.dump+`
112`:""}p(kb,"dump$1");function wb(e,t){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+t+" instead, which is now safe by default.")}}p(wb,"renamed");var _b=oh,vb=eb.load;/*! Bundled license information:
113
114js-yaml/dist/js-yaml.mjs:
115  (*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT *)
116*/var $t={aggregation:17.25,extension:17.25,composition:17.25,dependency:6,lollipop:13.5,arrow_point:4},Zo={arrow_point:9,arrow_cross:12.5,arrow_circle:12.5};function Vr(e,t){if(e===void 0||t===void 0)return{angle:0,deltaX:0,deltaY:0};e=mt(e),t=mt(t);const[r,i]=[e.x,e.y],[a,n]=[t.x,t.y],s=a-r,o=n-i;return{angle:Math.atan(o/s),deltaX:s,deltaY:o}}p(Vr,"calculateDeltaAndAngle");var mt=p(e=>Array.isArray(e)?{x:e[0],y:e[1]}:e,"pointTransformer"),Sb=p(e=>({x:p(function(t,r,i){let a=0;const n=mt(i[0]).x<mt(i[i.length-1]).x?"left":"right";if(r===0&&Object.hasOwn($t,e.arrowTypeStart)){const{angle:f,deltaX:g}=Vr(i[0],i[1]);a=$t[e.arrowTypeStart]*Math.cos(f)*(g>=0?1:-1)}else if(r===i.length-1&&Object.hasOwn($t,e.arrowTypeEnd)){const{angle:f,deltaX:g}=Vr(i[i.length-1],i[i.length-2]);a=$t[e.arrowTypeEnd]*Math.cos(f)*(g>=0?1:-1)}const s=Math.abs(mt(t).x-mt(i[i.length-1]).x),o=Math.abs(mt(t).y-mt(i[i.length-1]).y),l=Math.abs(mt(t).x-mt(i[0]).x),c=Math.abs(mt(t).y-mt(i[0]).y),h=$t[e.arrowTypeStart],u=$t[e.arrowTypeEnd],d=1;if(s<u&&s>0&&o<u){let f=u+d-s;f*=n==="right"?-1:1,a-=f}if(l<h&&l>0&&c<h){let f=h+d-l;f*=n==="right"?-1:1,a+=f}return mt(t).x+a},"x"),y:p(function(t,r,i){let a=0;const n=mt(i[0]).y<mt(i[i.length-1]).y?"down":"up";if(r===0&&Object.hasOwn($t,e.arrowTypeStart)){const{angle:f,deltaY:g}=Vr(i[0],i[1]);a=$t[e.arrowTypeStart]*Math.abs(Math.sin(f))*(g>=0?1:-1)}else if(r===i.length-1&&Object.hasOwn($t,e.arrowTypeEnd)){const{angle:f,deltaY:g}=Vr(i[i.length-1],i[i.length-2]);a=$t[e.arrowTypeEnd]*Math.abs(Math.sin(f))*(g>=0?1:-1)}const s=Math.abs(mt(t).y-mt(i[i.length-1]).y),o=Math.abs(mt(t).x-mt(i[i.length-1]).x),l=Math.abs(mt(t).y-mt(i[0]).y),c=Math.abs(mt(t).x-mt(i[0]).x),h=$t[e.arrowTypeStart],u=$t[e.arrowTypeEnd],d=1;if(s<u&&s>0&&o<u){let f=u+d-s;f*=n==="up"?-1:1,a-=f}if(l<h&&l>0&&c<h){let f=h+d-l;f*=n==="up"?-1:1,a+=f}return mt(t).y+a}
116,"y")}),"getLineFunctionsWithOffset"),$s=p(({flowchart:e})=>{const t=e?.subGraphTitleMargin?.top??0,r=e?.subGraphTitleMargin?.bottom??0,i=t+r;return{subGraphTitleTopMargin:t,subGraphTitleBottomMargin:r,subGraphTitleTotalMargin:i}},"getSubGraphTitleMargins"),Tb=p(e=>{const{handDrawnSeed:t}=dt();return{fill:e,hachureAngle:120,hachureGap:4,fillWeight:2,roughness:.7,stroke:e,seed:t}},"solidStateFill"),Br=p(e=>{const t=Lb([...e.cssCompiledStyles||[],...e.cssStyles||[],...e.labelStyle||[]]);return{stylesMap:t,stylesArray:[...t]}},"compileStyles"),Lb=p(e=>{const t=new Map;return e.forEach(r=>{const[i,a]=r.split(":");t.set(i.trim(),a?.trim())}),t},"styles2Map"),yu=p(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"),j=p(e=>{const{stylesArray:t}=Br(e),r=[],i=[],a=[],n=[];return t.forEach(s=>{const o=s[0];yu(o)?r.push(s.join(":")+" !important"):(i.push(s.join(":")+" !important"),o.includes("stroke")&&a.push(s.join(":")+" !important"),o==="fill"&&n.push(s.join(":")+" !important"))}),{labelStyles:r.join(";"),nodeStyles:i.join(";"),stylesArray:t,borderStyles:a,backgroundStyles:n}},"styles2String"),U=p((e,t)=>{const{themeVariables:r,handDrawnSeed:i}=dt(),{nodeBorder:a,mainBkg:n}=r,{stylesMap:s}=Br(e);return Object.assign({roughness:.7,fill:s.get("fill")||n,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:Bb(s.get("stroke-dasharray"))},t)},"userNodeOverrides"),Bb=p(e=>{if(!e)return[0,0];const t=e.trim().split(/\s+/).map(Number);if(t.length===1){const a=isNaN(t[0])?0:t[0];return[a,a]}const r=isNaN(t[0])?0:t[0],i=isNaN(t[1])?0:t[1];return[r,i]},"getStrokeDashArray"),Nr={},vt={},Ko;function Ab(){return Ko||(Ko=1,Object.defineProperty(vt,"__esModule",{value:!0}),vt.BLANK_URL=vt.relativeFirstCharacters=vt.whitespaceEscapeCharsRegex=vt.urlSchemeRegex=vt.ctrlCharactersRegex=vt.htmlCtrlEntityRegex=vt.htmlEntitiesRegex=vt.invalidProtocolRegex=void 0,vt.invalidProtocolRegex=/^([^\w]*)(javascript|data|vbscript)/im,vt.htmlEntitiesRegex=/&#(\w+)(^\w|;)?/g,vt.htmlCtrlEntityRegex=/&(newline|tab);/gi,vt.ctrlCharactersRegex=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,vt.urlSchemeRegex=/^.+(:|&colon;)/gim,vt.whitespaceEscapeCharsRegex=/(\\|%5[cC])((%(6[eE]|72|74))|[nrt])/g,vt.relativeFirstCharacters=[".","/"],vt.BLANK_URL="about:blank"),vt}var Qo;function Mb(){if(Qo)return Nr;
116Qo=1,Object.defineProperty(Nr,"__esModule",{value:!0}),Nr.sanitizeUrl=void 0;var e=Ab();function t(s){return e.relativeFirstCharacters.indexOf(s[0])>-1}function r(s){var o=s.replace(e.ctrlCharactersRegex,"");return o.replace(e.htmlEntitiesRegex,function(l,c){return String.fromCharCode(c)})}function i(s){return URL.canParse(s)}function a(s){try{return decodeURIComponent(s)}catch{return s}}function n(s){if(!s)return e.BLANK_URL;var o,l=a(s.trim());do l=r(l).replace(e.htmlCtrlEntityRegex,"").replace(e.ctrlCharactersRegex,"").replace(e.whitespaceEscapeCharsRegex,"").trim(),l=a(l),o=l.match(e.ctrlCharactersRegex)||l.match(e.htmlEntitiesRegex)||l.match(e.htmlCtrlEntityRegex)||l.match(e.whitespaceEscapeCharsRegex);while(o&&o.length>0);var c=l;if(!c)return e.BLANK_URL;if(t(c))return c;var h=c.trimStart(),u=h.match(e.urlSchemeRegex);if(!u)return c;var d=u[0].toLowerCase().trim();if(e.invalidProtocolRegex.test(d))return e.BLANK_URL;var f=h.replace(/\\/g,"/");if(d==="mailto:"||d.includes("://"))return f;if(d==="http:"||d==="https:"){if(!i(f))return e.BLANK_URL;var g=new URL(f);return g.protocol=g.protocol.toLowerCase(),g.hostname=g.hostname.toLowerCase(),g.toString()}return f}return Nr.sanitizeUrl=n,Nr}var Eb=Mb(),Fb="​",$b={curveBasis:Oi,curveBasisClosed:Np,curveBasisOpen:Pp,curveBumpX:Nl,curveBumpY:Pl,curveBundle:Wp,curveCardinalClosed:qp,curveCardinalOpen:Hp,curveCardinal:Wl,curveCatmullRomClosed:Yp,curveCatmullRomOpen:Up,curveCatmullRom:Hl,curveLinear:xn,curveLinearClosed:Ip,curveMonotoneX:Il,curveMonotoneY:Ol,curveNatural:Rl,curveStep:Dl,curveStepAfter:$l,curveStepBefore:Fl},Db=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,Rb=p(function(e,t){const r=xu(e,/(?:init\b)|(?:initialize\b)/);let i={};if(Array.isArray(r)){const s=r.map(o=>o.args);Ji(s),i=St(i,[...s])}else i=r.args;if(!i)return;let a=ps(e,t);const n="config";return i[n]!==void 0&&(a==="flowchart-v2"&&(a="flowchart"),i[a]=i[n],delete i[n]),i},"detectInit"),xu=p(function(e,t=null){try{const r=new RegExp(`[%]{2}(?![{]${Db.source})(?=[}][%]{2}).*
117`,"ig");e=e.trim().replace(r,"").replace(/'/gm,'"'),$.debug(`Detecting diagram directive${t!==null?" type:"+t:""} based on the text:${e}`);let i;const a=[];for(;(i=ei.exec(e))!==null;)if(i.index===ei.lastIndex&&ei.lastIndex++,i&&!t||t&&i[1]?.match(t)||t&&i[2]?.match(t)){const n=i[1]?i[1]:i[2],s=i[3]?i[3].trim():i[4]?JSON.parse(i[4].trim()):null;a.push({type:n,args:s})}return a.length===0?{type:e,args:null}:a.length===1?a[0]:a}catch(r){return $.error(`ERROR: ${r.message} - Unable to parse directive type: '${t}' based on the text: '${e}'`),{type:void 0,args:null}}},"detectDirective"),Ob=p(function(e){return e.replace(ei,"")},"removeDirectives"),Ib=p(function(e,t){for(const[r,i]of t.entries())if(i.match(e))return r;return-1},"isSubstringInArray");function Ds(e,t){if(!e)return t;const r=`curve${e.charAt(0).toUpperCase()+e.slice(1)}`;return $b[r]??t}p(Ds,"interpolateToCurve");function bu(e,t){const r=e.trim();if(r)return t.securityLevel!=="loose"?Eb.sanitizeUrl(r):r}p(bu,"formatUrl");var Pb=p((e,...t)=>{const r=e.split("."),i=r.length-1,a=r[i];let n=window;for(let s=0;s<i;s++)if(n=n[r[s]],!n){$.error(`Function name: ${e} not found in window`);return}n[a](...t)},"runFunc");function Rs(e,t){return!e||!t?0:Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}p(Rs,"distance");function Cu(e){let t,r=0;e.forEach(a=>{r+=Rs(a,t),t=a});const i=r/2;return Os(e,i)}p(Cu,"traverseEdge");function ku(e){return e.length===1?e[0]:Cu(e)}p(ku,"calcLabelPosition");var Jo=p((e,t=2)=>{const r=Math.pow(10,t);return Math.round(e*r)/r},"roundNumber"),Os=p((e,t)=>{let r,i=t;for(const a of e){if(r){const n=Rs(a,r);if(n===0)return r;if(n<i)i-=n;else{const s=i/n;if(s<=0)return r;if(s>=1)return{x:a.x,y:a.y};if(s>0&&s<1)return{x:Jo((1-s)*r.x+s*a.x,5),y:Jo((1-s)*r.y+s*a.y,5)}}}r=a}throw new Error("Could not find a suitable point for the given distance")},"calculatePoint"),Nb=p((e,t,r)=>{$.info(`our points ${JSON.stringify(t)}`),t[0]!==r&&(t=t.reverse());const a=Os(t,25),n=e?10:5,s=Math.atan2(t[0].y-a.y,t[0].x-a.x),o={x:0,y:0};return o.x=Math.sin(s)*n+(t[0].x+a.x)/2,o.y=-Math.cos(s)*n+(t[0].y+a.y)/2,o},"calcCardinalityPosition");function wu(e,t,r){const i=structuredClone(r);$.info("our points",i),t!=="start_left"&&t!=="start_right"&&i.reverse();const a=25+e,n=Os(i,a),s=10+e*.5,o=Math.atan2(i[0].y-n.y,i[0].x-n.x),l={x:0,y:0};return t==="start_left"?(l.x=Math.sin(o+Math.PI)*s+(i[0].x+n.x)/2,l.y=-Math.cos(o+Math.PI)*s+(i[0].y+n.y)/2):t==="end_right"?(l.x=Math.sin(o-Math.PI)*s+(i[0].x+n.x)/2-5,l.y=-Math.cos(o-Math.PI)*s+(i[0].y+n.y)/2-5):t==="end_left"?(l.x=Math.sin(o)*s+(i[0].x+n.x)/2-5,l.y=-Math.cos(o)*s+(i[0].y+n.y)/2-5):(l.x=Math.sin(o)*s+(i[0].x+n.x)/2,l.y=-Math.cos(o)*s+(i[0].y+n.y)/2),l}p(wu,"calcTerminalLabelPosition");function _u(e){let t="",r="";for(const i of e)i!==void 0&&(i.startsWith("color:")||i.startsWith("text-align:")?r=r+i+";":t=t+i+";");return{style:t,labelStyle:r}}p(_u,"getStylesFromArray");var tl=0,zb=p(()=>(tl++,"id-"+Math.random().toString(36).substr(2,12)+"-"+tl),"generateId");function vu(e){let t="";const r="0123456789abcdef",i=r.length;for(let a=0;a<e;a++)t+=r.charAt(Math.floor(Math.random()*i));return t}p(vu,"makeRandomHex");var Wb=p(e=>vu(e.length),"random"),qb=p(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:""}}
117,"getTextObj"),Hb=p(function(e,t){const r=t.text.replace(Lr.lineBreakRegex," "),[,i]=Da(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);const n=a.append("tspan");return n.attr("x",t.x+t.textMargin*2),n.attr("fill",t.fill),n.text(r),a},"drawSimpleText"),Yb=ls((e,t,r)=>{if(!e||(r=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},r),Lr.lineBreakRegex.test(e)))return e;const i=e.split(" ").filter(Boolean),a=[];let n="";return i.forEach((s,o)=>{const l=Ee(`${s} `,r),c=Ee(n,r);if(l>t){const{hyphenatedStrings:d,remainingWord:f}=Ub(s,t,"-",r);a.push(n,...d),n=f}else c+l>=t?(a.push(n),n=s):n=[n,s].filter(Boolean).join(" ");o+1===i.length&&a.push(n)}),a.filter(s=>s!=="").join(r.joinWith)},(e,t,r)=>`${e}${t}${r.fontSize}${r.fontWeight}${r.fontFamily}${r.joinWith}`),Ub=ls((e,t,r="-",i)=>{i=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},i);const a=[...e],n=[];let s="";return a.forEach((o,l)=>{const c=`${s}${o}`;if(Ee(c,i)>=t){const u=l+1,d=a.length===u,f=`${c}${r}`;n.push(d?c:f),s=""}else s=c}),{hyphenatedStrings:n,remainingWord:s}},(e,t,r="-",i)=>`${e}${t}${r}${i.fontSize}${i.fontWeight}${i.fontFamily}`);function Su(e,t){return Is(e,t).height}p(Su,"calculateTextHeight");function Ee(e,t){return Is(e,t).width}p(Ee,"calculateTextWidth");var Is=ls((e,t)=>{const{fontSize:r=12,fontFamily:i="Arial",fontWeight:a=400}=t;if(!e)return{width:0,height:0};const[,n]=Da(r),s=["sans-serif",i],o=e.split(Lr.lineBreakRegex),l=[],c=ht("body");if(!c.remove)return{width:0,height:0,lineHeight:0};const h=c.append("svg");for(const d of s){let f=0;const g={width:0,height:0,lineHeight:0};for(const m of o){const y=qb();y.text=m||Fb;const x=Hb(h,y).style("font-size",n).style("font-weight",a).style("font-family",d),b=(x._groups||x)[0][0].getBBox();if(b.width===0&&b.height===0)throw new Error("svg element not in render tree");g.width=Math.round(Math.max(g.width,b.width)),f=Math.round(b.height),g.height+=f,g.lineHeight=Math.round(Math.max(g.lineHeight,f))}l.push(g)}h.remove();const u=isNaN(l[1].height)||isNaN(l[1].width)||isNaN(l[1].lineHeight)||l[0].height>l[1].height&&l[0].width>l[1].width&&l[0].lineHeight>l[1].lineHeight?0:1;return l[u]},(e,t)=>`${e}${t.fontSize}${t.fontWeight}${t.fontFamily}`),jb=class{constructor(e=!1,t){this.count=0,this.count=t?t.length:0,this.next=e?()=>this.count++:()=>Date.now()}static{p(this,"InitIDGenerator")}},Ai,Gb=p(function(e){return Ai=Ai||document.createElement("div"),e=escape(e).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),Ai.innerHTML=e,unescape(Ai.textContent)},"entityDecode");function Ps(e){return"str"in e}p(Ps,"isDetailedError");var Vb=p((e,t,r,i)=>{if(!i)return;const 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"),Da=p(e=>{if(typeof e=="number")return[e,e+"px"];const t=parseInt(e??"",10);return Number.isNaN(t)?[void 0,void 0]:e===String(t)?[t,e+"px"]:[t,e]},"parseFontSize");function Ns(e,t){return Rp({},e,t)}p(Ns,"cleanAndMerge");var oe={assignWithDepth:St,wrapLabel:Yb,calculateTextHeight:Su,calculateTextWidth:Ee,calculateTextDimensions:Is,cleanAndMerge:Ns,detectInit:Rb,detectDirective:xu,isSubstringInArray:Ib,interpolateToCurve:Ds,calcLabelPosition:ku,calcCardinalityPosition:Nb,calcTerminalLabelPosition:wu,formatUrl:bu,getStylesFromArray:_u,generateId:zb,random:Wb,runFunc:Pb,entityDecode:Gb,insertTitle:Vb,isLabelCoordinateInPath:Tu,parseFontSize:Da,InitIDGenerator:jb},Xb=p(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){const i=r.substring(1,r.length-1);return/^\+?\d+$/.test(i)?"fl°°"+i+"¶ß":"fl°"+i+"¶ß"}),t},"encodeEntities"),ar=p(function(e){return e.replace(/fl°°/g,"&#").replace(/fl°/g,"&").replace(/¶ß/g,";")},"decodeEntities"),B_=p((e,t,{counter:r=0,prefix:i,suffix:a},n)=>n||`${i?`${i}_`:""}${e}_${t}_${r}${a?`_${a}`:""}`,"getEdgeId");function Ot(e){return e??null}p(Ot,"handleUndefinedAttr");function Tu(e,t){const r=Math.round(e.x),i=Math.round(e.y),a=t.replace(/(\d+\.\d+)/g,n=>Math.round(parseFloat(n)).toString());return a.includes(r.toString())||a.includes(i.toString())}p(Tu,"isLabelCoordinateInPath");const Zb=Object.freeze({left:0,top:0,width:16,height:16}),pa=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),Lu=Object.freeze({...Zb,...pa}),Kb=Object.freeze({...Lu,body:"",hidden:!1}),Qb=Object.freeze({width:null,height:null}),Jb=Object.freeze({...Qb,...pa}),t2=(e,t,r,i="")=>{const 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){const o=a.pop(),l=a.pop(),c={provider:a.length>0?a[0]:i,prefix:l,name:o};return cn(c)?c:null}const n=a[0],s=n.split("-");if(s.length>1){const o={provider:i,prefix:s.shift(),name:s.join("-")};return cn(o)?o:null}if(r&&i===""){const o={provider:i,prefix:"",name:n};return cn(o,r)?o:null}return null},cn=(e,t)=>e?!!((t&&e.prefix===""||e.prefix)&&e.name):!1;function e2(e,t){const r={};!e.hFlip!=!t.hFlip&&(r.hFlip=!0),!e.vFlip!=!t.vFlip&&(r.vFlip=!0);const i=((e.rotate||0)+(t.rotate||0))%4;return i&&(r.rotate=i),r}function el(e,t){const r=e2(e,t);for(const i in Kb)i in pa?i in e&&!(i in r)&&(r[i]=pa[i]):i in t?r[i]=t[i]:i in e&&(r[i]=e[i]);return r}function r2(e,t){const r=e.icons,i=e.aliases||Object.create(null),a=Object.create(null);function n(s){if(r[s])return a[s]=[];if(!(s in a)){a[s]=null;const o=i[s]&&i[s].parent,l=o&&n(o);l&&(a[s]=[o].concat(l))}return a[s]}
117return(t||Object.keys(r).concat(Object.keys(i))).forEach(n),a}function rl(e,t,r){const i=e.icons,a=e.aliases||Object.create(null);let n={};function s(o){n=el(i[o]||a[o],n)}return s(t),r.forEach(s),el(e,n)}function i2(e,t){if(e.icons[t])return rl(e,t,[]);const r=r2(e,[t])[t];return r?rl(e,t,r):null}const a2=/(-?[0-9.]*[0-9]+[0-9.]*)/g,n2=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function il(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;const i=e.split(a2);if(i===null||!i.length)return e;const a=[];let n=i.shift(),s=n2.test(n);for(;;){if(s){const o=parseFloat(n);isNaN(o)?a.push(n):a.push(Math.ceil(o*t*r)/r)}else a.push(n);if(n=i.shift(),n===void 0)return a.join("");s=!s}}function s2(e,t="defs"){let r="";const i=e.indexOf("<"+t);for(;i>=0;){const a=e.indexOf(">",i),n=e.indexOf("</"+t);if(a===-1||n===-1)break;const s=e.indexOf(">",n);if(s===-1)break;r+=e.slice(a+1,n).trim(),e=e.slice(0,i).trim()+e.slice(s+1)}return{defs:r,content:e}}function o2(e,t){return e?"<defs>"+e+"</defs>"+t:t}function l2(e,t,r){const i=s2(e);return o2(i.defs,t+i.content+r)}const c2=e=>e==="unset"||e==="undefined"||e==="none";function h2(e,t){const r={...Lu,...e},i={...Jb,...t},a={left:r.left,top:r.top,width:r.width,height:r.height};let n=r.body;[r,i].forEach(m=>{const y=[],x=m.hFlip,b=m.vFlip;let C=m.rotate;x?b?C+=2:(y.push("translate("+(a.width+a.left).toString()+" "+(0-a.top).toString()+")"),y.push("scale(-1 1)"),a.top=a.left=0):b&&(y.push("translate("+(0-a.left).toString()+" "+(a.height+a.top).toString()+")"),y.push("scale(1 -1)"),a.top=a.left=0);let _;switch(C<0&&(C-=Math.floor(C/4)*4),C=C%4,C){case 1:_=a.height/2+a.top,y.unshift("rotate(90 "+_.toString()+" "+_.toString()+")");break;case 2:y.unshift("rotate(180 "+(a.width/2+a.left).toString()+" "+(a.height/2+a.top).toString()+")");break;case 3:_=a.width/2+a.left,y.unshift("rotate(-90 "+_.toString()+" "+_.toString()+")");break}C%2===1&&(a.left!==a.top&&(_=a.left,a.left=a.top,a.top=_),a.width!==a.height&&(_=
117a.width,a.width=a.height,a.height=_)),y.length&&(n=l2(n,'<g transform="'+y.join(" ")+'">',"</g>"))});const s=i.width,o=i.height,l=a.width,c=a.height;let h,u;s===null?(u=o===null?"1em":o==="auto"?c:o,h=il(u,l/c)):(h=s==="auto"?l:s,u=o===null?il(h,c/l):o==="auto"?c:o);const d={},f=(m,y)=>{c2(y)||(d[m]=y.toString())};f("width",h),f("height",u);const g=[a.left,a.top,l,c];return d.viewBox=g.join(" "),{attributes:d,viewBox:g,body:n}}const u2=/\sid="(\S+)"/g,al=new Map;function d2(e){e=e.replace(/[0-9]+$/,"")||"a";const t=al.get(e)||0;return al.set(e,t+1),t?`${e}${t}`:e}function f2(e){const t=[];let r;for(;r=u2.exec(e);)t.push(r[1]);if(!t.length)return e;const i="suffix"+(Math.random()*16777216|Date.now()).toString(16);return t.forEach(a=>{const n=d2(a),s=a.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+s+')([")]|\\.[a-z])',"g"),"$1"+n+i+"$3")}),e=e.replace(new RegExp(i,"g"),""),e}function p2(e,t){let r=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const i in t)r+=" "+i+'="'+t[i]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+r+">"+e+"</svg>"}function zs(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var nr=zs();function Bu(e){nr=e}var ii={exec:()=>null};function ut(e,t=""){let r=typeof e=="string"?e:e.source,i={replace:(a,n)=>{let s=typeof n=="string"?n:n.source;return s=s.replace(qt.caret,"$1"),r=r.replace(a,s),i},getRegex:()=>new RegExp(r,t)};return i}var g2=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),qt={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+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[	 ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ 	][^\\n]*)?(?:\\n|$))`),hrRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i")},m2=/^(?:[ \t]*(?:\n|$))+/,y2=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,x2=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,mi=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,b2=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Ws=/(?:[*+-]|\d{1,9}[.)])/,Au=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Mu=ut(Au).replace(/bull/g,Ws).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(),C2=ut(Au).replace(/bull/g,Ws).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(),qs=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,k2=/^[^\n]+/,Hs=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,w2=ut(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Hs).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),_2=ut(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Ws).getRegex(),Ra="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",Ys=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,v2=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|/?>
117)[\\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",Ys).replace("tag",Ra).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Eu=ut(qs).replace("hr",mi).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",Ra).getRegex(),S2=ut(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Eu).getRegex(),Us={blockquote:S2,code:y2,def:w2,fences:x2,heading:b2,hr:mi,html:v2,lheading:Mu,list:_2,newline:m2,paragraph:Eu,table:ii,text:k2},nl=ut("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",mi).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",Ra).getRegex(),T2={...Us,lheading:C2,table:nl,paragraph:ut(qs).replace("hr",mi).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",nl).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",Ra).getRegex()},L2={...Us,html:ut(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Ys).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:ii,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:ut(qs).replace("hr",mi).replace("heading",` *#{1,6} *[^
118]`).replace("lheading",Mu).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},B2=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,A2=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Fu=/^( {2,}|\\)\n(?!\s*$)/,M2=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Oa=/[\p{P}\p{S}]/u,js=/[\s\p{P}\p{S}]/u,$u=/[^\s\p{P}\p{S}]/u,E2=ut(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,js).getRegex(),Du=/(?!~)[\p{P}\p{S}]/u,F2=/(?!~)[\s\p{P}\p{S}]/u,$2=/(?:[^\s\p{P}\p{S}]|~)/u,D2=ut(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",g2?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),Ru=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,R2=ut(Ru,"u").replace(/punct/g,Oa).getRegex(),O2=ut(Ru,"u").replace(/punct/g,Du).getRegex(),Ou="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",I2=ut(Ou,"gu").replace(/notPunctSpace/g,$u).replace(/punctSpace/g,js).replace(/punct/g,Oa).getRegex(),P2=ut(Ou,"gu").replace(/notPunctSpace/g,$2).replace(/punctSpace/g,F2).replace(/punct/g,Du).getRegex(),N2=ut("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,$u).replace(/punctSpace/g,js).replace(/punct/g,Oa).getRegex(),z2=ut(/\\(punct)/,"gu").replace(/punct/g,Oa).getRegex(),W2=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(),q2=ut(Ys).replace("(?:-->|$)","-->").getRegex(),H2=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",q2).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),ga=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,Y2=ut(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",ga).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Iu=ut(/^!?\[(label)\]\[(ref)\]/).replace("label",ga).replace("ref",Hs).getRegex(),Pu=ut(/^!?\[(ref)\](?:\[\])?/).replace("ref",Hs).getRegex(),U2=ut("reflink|nolink(?!\\()","g").replace("reflink",Iu).replace("nolink",Pu).getRegex(),sl=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,Gs={_backpedal:ii,anyPunctuation:z2,autolink:W2,blockSkip:D2,br:Fu,code:A2,del:ii,emStrongLDelim:R2,emStrongRDelimAst:I2,emStrongRDelimUnd:N2,escape:B2,link:Y2,nolink:Pu,punctuation:E2,reflink:Iu,reflinkSearch:U2,tag:H2,text:M2,url:ii},j2={...Gs,link:ut(/^!?\[(label)\]\((.*?)\)/).replace("label",ga).getRegex(),reflink:ut(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",ga).getRegex()},Gn={...Gs,emStrongRDelimAst:P2,emStrongLDelim:O2,url:ut(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",sl).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:ut(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",sl).getRegex()},G2={...Gn,br:ut(Fu).replace("{2,}","*").getRegex(),text:ut(Gn.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Mi={normal:Us,gfm:T2,pedantic:L2},zr={normal:Gs,gfm:Gn,breaks:G2,pedantic:j2},V2={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},ol=e=>V2[e];function ge(e,t){if(t){if(qt.escapeTest.test(e))return e.replace(qt.escapeReplace,ol)}else if(qt.escapeTestNoEncode.test(e))return e.replace(qt.escapeReplaceNoEncode,ol);return e}function ll(e){try{e=encodeURI(e).replace(qt.percentDecode,"%")}catch{return null}return e}function cl(e,t){let r=e.replace(qt.findPipe,(n,s,o)=>{let l=!1,c=s;for(;--c>=0&&o[c]==="\\";)l=!l;return l?"|":" |"}),i=r.split(qt.splitPipe),a=0;if(i[0].trim()||i.shift(),i.length>0&&!i.at(-1)?.trim()&&i.pop(),t)if(i.length>t)i.splice(t);else for(;i.length<t;)i.push("");for(;a<i.length;a++)i[a]=i[a].trim().replace(qt.slashPipe,"|");return i}function Wr(e,t,r){let i=e.length;if(i===0)return"";let a=0;for(;a<i&&e.charAt(i-a-1)===t;)a++;return e.slice(0,i-a)}function X2(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}function hl(e,t,r,i,a){let n=t.href,s=t.title||null,o=e[1].replace(a.other.outputLinkReplace,"$1");i.state.inLink=!0;let l={type:e[0].charAt(0)==="!"?"image":"link",raw:r,href:n,title:s,text:o,tokens:i.inl
vendor: 10,974 bytes, lines 118-143
118ineTokens(o)};return i.state.inLink=!1,l}function Z2(e,t,r){let i=e.match(r.other.indentCodeCompensation);if(i===null)return t;let a=i[1];return t.split(`
119`).map(n=>{let s=n.match(r.other.beginningSpace);if(s===null)return n;let[o]=s;return o.length>=a.length?n.slice(a.length):n}).join(`
120`)}var ma=class{options;rules;lexer;constructor(t){this.options=t||nr}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:Wr(i,`
121`)}}}fences(t){let r=this.rules.block.fences.exec(t);if(r){let i=r[0],a=Z2(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=Wr(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:Wr(r[0],`
122`)}}blockquote(t){let r=this.rules.block.blockquote.exec(t);if(r){let i=Wr(r[0],`
123`).split(`
124`),a="",n="",s=[];for(;i.length>0;){let o=!1,l=[],c;for(c=0;c<i.length;c++)if(this.rules.other.blockquoteStart.test(i[c]))l.push(i[c]),o=!0;else if(!o)l.push(i[c]);else break;i=i.slice(c);let h=l.join(`
125`),u=h.replace(this.rules.other.blockquoteSetextReplace,`
126    $1`).replace(this.rules.other.blockquoteSetextReplace2,"");a=a?`${a}
127${h}`:h,n=n?`${n}
128${u}`:u;let d=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(u,s,!0),this.lexer.state.top=d,i.length===0)break;let f=s.at(-1);if(f?.type==="code")break;if(f?.type==="blockquote"){let g=f,m=g.raw+`
129`+i.join(`
130`),y=this.blockquote(m);s[s.length-1]=y,a=a.substring(0,a.length-g.raw.length)+y.raw,n=n.substring(0,n.length-g.text.length)+y.text;break}else if(f?.type==="list"){let g=f,m=g.raw+`
131`+i.join(`
132`),y=this.list(m);s[s.length-1]=y,a=a.substring(0,a.length-f.raw.length)+y.raw,n=n.substring(0,n.length-g.raw.length)+y.raw,i=m.substring(s.at(-1).raw.length).split(`
133`);continue}}return{type:"blockquote",raw:a,tokens:s,text:n}}}list(t){let r=this.rules.block.list.exec(t);if(r){let i=r[1].trim(),a=i.length>1,n={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),o=!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 d=r[2].split(`
134`,1)[0].replace(this.rules.other.listReplaceTabs,b=>" ".repeat(3*b.length)),f=t.split(`
135`,1)[0],g=!d.trim(),m=0;if(this.options.pedantic?(m=2,u=d.trimStart()):g?m=r[1].length+1:(m=r[2].search(this.rules.other.nonSpaceChar),m=m>4?1:m,u=d.slice(m),m+=r[1].length),g&&this.rules.other.blankLine.test(f)&&(h+=f+`
136`,t=t.substring(f.length+1),c=!0),!c){let b=this.rules.other.nextBulletRegex(m),C=this.rules.other.hrRegex(m),_=this.rules.other.fencesBeginRegex(m),w=this.rules.other.headingBeginRegex(m),B=this.rules.other.htmlBeginRegex(m);for(;t;){let S=t.split(`
137`,1)[0],D;if(f=S,this.options.pedantic?(f=f.replace(this.rules.other.listReplaceNesting,"  "),D=f):D=f.replace(this.rules.other.tabCharGlobal,"    "),_.test(f)||w.test(f)||B.test(f)||b.test(f)||C.test(f))break;if(D.search(this.rules.other.nonSpaceChar)>=m||!f.trim())u+=`
138`+D.slice(m);else{if(g||d.replace(this.rules.other.tabCharGlobal,"    ").search(this.rules.other.nonSpaceChar)>=4||_.test(d)||w.test(d)||C.test(d))break;u+=`
139`+f}!g&&!f.trim()&&(g=!0),h+=S+`
140`,t=t.substring(S.length+1),d=D.slice(m)}}n.loose||(o?n.loose=!0:this.rules.other.doubleBlankLine.test(h)&&(o=!0));let y=null,x;this.options.gfm&&(y=this.rules.other.listIsTask.exec(u),y&&(x=y[0]!=="[ ] ",u=u.replace(this.rules.other.listReplaceTask,""))),n.items.push({type:"list_item",raw:h,task:!!y,checked:x,loose:!1,text:u,tokens:[]}),n.raw+=h}let l=n.items.at(-1);if(l)l.raw=l.raw.trimEnd(),l.text=l.text.trimEnd();else return;n.raw=n.raw.trimEnd();for(let c=0;c<n.items.length;c++)if(this.lexer.state.top=!1,n.items[c].tokens=this.lexer.blockTokens(n.items[c].text,[]),!n.loose){let h=n.items[c].tokens.filter(d=>d.type==="space"),u=h.length>0&&h.some(d=>this.rules.other.anyLine.test(d.raw));n.loose=u}if(n.loose)for(let c=0;c<n.items.length;c++)n.items[c].loose=!0;return n}}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"):"",n=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:n}}}table(t){let r=this.rules.block.table.exec(t);if(!r||!this.rules.other.tableDelimiter.test(r[2]))return;let i=cl(r[1]),a=r[2].replace(this.rules.other.tableAlignChars,"").split("|"),n=r[3]?.trim()?r[3].replace(this.rules.other.tableRowBlankLine,"").split(`
141`):[],s={type:"table",raw:r[0],header:[],align:[],rows:[]};if(i.length===a.length){for(let o of a)this.rules.other.tableAlignRight.test(o)?s.align.push("right"):this.rules.other.tableAlignCenter.test(o)?s.align.push("center"):this.rules.other.tableAlignLeft.test(o)?s.align.push("left"):s.align.push(null);for(let o=0;o<i.length;o++)s.header.push({text:i[o],tokens:this.lexer.inline(i[o]),header:!0,align:s.align[o]});for(let o of n)s.rows.push(cl(o,s.header.length).map((l,c)=>({text:l,tokens:this.lexer.inline(l),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)===`
142`?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=Wr(i.slice(0,-1),"\\");if((i.length-s.length)%2===0)return}else{let s=X2(r[2],"()");if(s===-2)return;if(s>-1){let o=(r[0].indexOf("!")===0?5:4)+r[1].length+s;r[2]=r[2].substring(0,s),r[0]=r[0].substring(0,o).trim(),r[3]=""}}let a=r[2],n="";if(this.options.pedantic){let s=this.rules.other.pedanticHrefTitle.exec(a);s&&(a=s[1],n=s[3])}else n=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)),hl(r,{href:a&&a.replace(this.rules.inline.anyPunctuation,"$1"),title:n&&n.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=(i[2]||i[1]).replace(this.rules.other.multipleSpaceGlobal," "),n=r[a.toLowerCase()];if(!n){let s=i[0].charAt(0);return{type:"text",raw:s,text:s}}return hl(i,n,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 n=[...a[0]].length-1,s,o,l=n,c=0,h=a[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(h.lastIndex=0,r=r.slice(-1*t.length+n);(a=h.exec(r))!=null;){if(s=a[1]||a[2]||a[3]||a[4]||a[5]||a[6],!s)continue;if(o=[...s].length,a[3]||a[4]){l+=o;continue}else if((a[5]||a[6])&&n%3&&!((n+o)%3)){c+=o;continue}if(l-=o,l>0)continue;o=Math.min(o,o+l+c);let u=[...a[0]][0].length,d=t.slice(0,n+a.index+u+o);if(Math.min(n,o)%2){let g=d.slice(1,-1);return{type:"em",raw:d,text:g,tokens:this.lexer.inlineTokens(g)}}let f=d.slice(2,-2);return{type:"strong",raw:d,text:f,tokens:this.lexer.inlineTokens(f)}}}}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),n=this.rules.other.startingSpaceChar.test(i)&&this.rules.other.endingSpaceChar.test(i);return a&&n&&(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 n;do n=r[0],r[0]=this.rules.inline._backpedal.exec(r[0])?.[0]??"";while(n!==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}}}},ne=class Vn{tokens;options;state;tokenizer;inlineQueue;constructor(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||nr,this.options.tokenizer=this.options.tokenizer||new ma,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:qt,block:Mi.normal,inline:zr.normal};this.options.pedantic?(r.block=Mi.pedantic,r.inline=zr.pedantic):this.options.gfm&&(r.block=Mi.gfm,this.options.breaks?r.inline=zr.breaks:r.inline=zr.gfm),this.tokenizer.rules=r}static get rules(){return{block:Mi,inline:zr}}static lex(t,r){return new Vn(r).lex(t)}static lexInline(t,r){return new Vn(r).inlineTokens(t)}lex(t){t=t.replace(qt.carriageReturn,`
143`),this.blockTokens(t,this.tokens);for(let r=0;
vendor: 5,303 bytes, lines 143-158
143r<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(qt.tabCharGlobal,"    ").replace(qt.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+=`
144`: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(`
145`)?"":`
146`)+a.raw,s.text+=`
147`+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(`
148`)?"":`
149`)+a.raw,s.text+=`
150`+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 n=t;if(this.options.extensions?.startBlock){let s=1/0,o=t.slice(1),l;this.options.extensions.startBlock.forEach(c=>{l=c.call({lexer:this},o),typeof l=="number"&&l>=0&&(s=Math.min(s,l))}),s<1/0&&s>=0&&(n=t.substring(0,s+1))}if(this.state.top&&(a=this.tokenizer.paragraph(n))){let s=r.at(-1);i&&s?.type==="paragraph"?(s.raw+=(s.raw.endsWith(`
151`)?"":`
152`)+a.raw,s.text+=`
153`+a.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=s.text):r.push(a),i=n.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(`
154`)?"":`
155`)+a.raw,s.text+=`
156`+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);let n;for(;(a=this.tokenizer.rules.inline.blockSkip.exec(i))!=null;)n=a[2]?a[2].length:0,i=i.slice(0,a.index+n)+"["+"a".repeat(a[0].length-n-2)+"]"+i.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);i=this.options.hooks?.emStrongMask?.call({lexer:this},i)??i;let s=!1,o="";for(;t;){s||(o=""),s=!1;let l;if(this.options.extensions?.inline?.some(h=>(l=h.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 h=r.at(-1);l.type==="text"&&h?.type==="text"?(h.raw+=l.raw,h.text+=l.text):r.push(l);continue}if(l=this.tokenizer.emStrong(t,i,o)){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 c=t;if(this.options.extensions?.startInline){let h=1/0,u=t.slice(1),d;this.options.extensions.startInline.forEach(f=>{d=f.call({lexer:this},u),typeof d=="number"&&d>=0&&(h=Math.min(h,d))}),h<1/0&&h>=0&&(c=t.substring(0,h+1))}if(l=this.tokenizer.inlineText(c)){t=t.substring(l.raw.length),l.raw.slice(-1)!=="_"&&(o=l.raw.slice(-1)),s=!0;let h=r.at(-1);h?.type==="text"?(h.raw+=l.raw,h.text+=l.text):r.push(l);continue}if(t){let h="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(h);break}else throw new Error(h)}}return r}},ya=class{options;parser;constructor(t){this.options=t||nr}space(t){return""}code({text:t,lang:r,escaped:i}){let a=(r||"").match(qt.notSpaceStart)?.[0],n=t.replace(qt.endingNewline,"")+`
157`;return a?'<pre><code class="language-'+ge(a)+'">'+(i?n:ge(n,!0))+`</code></pre>
158`:"<pre><code>
158"+(i?n:ge(n,!0))+`</code></pre>
159`}blockquote({tokens:t}){return`<blockquote>
160${this.parser.parse(t)}</blockquote>
161`}html({text:t}){return t}def(t){return""}heading({tokens:t,depth:r}){return`<h${r}>${this.parser.parseInline(t)}</h${r}>
162`}hr(t){return`<hr>
163`}list(t){let r=t.ordered,i=t.start,a="";for(let o=0;o<t.items.length;o++){let l=t.items[o];a+=this.listitem(l)}let n=r?"ol":"ul",s=r&&i!==1?' start="'+i+'"':"";return"<"+n+s+`>
164`+a+"</"+n+`>
165`}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+" "+ge(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>
166`}checkbox({checked:t}){return"<input "+(t?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:t}){return`<p>${this.parser.parseInline(t)}</p>
167`}table(t){let r="",i="";for(let n=0;n<t.header.length;n++)i+=this.tablecell(t.header[n]);r+=this.tablerow({text:i});let a="";for(let n=0;n<t.rows.length;n++){let s=t.rows[n];i="";for(let o=0;o<s.length;o++)i+=this.tablecell(s[o]);a+=this.tablerow({text:i})}return a&&(a=`<tbody>${a}</tbody>`),`<table>
168<thead>
169`+r+`</thead>
170`+a+`</table>
171`}tablerow({text:t}){return`<tr>
172${t}</tr>
173`}tablecell(t){let r=this.parser.parseInline(t.tokens),i=t.header?"th":"td";return(t.align?`<${i} align="${t.align}">`:`<${i}>`)+r+`</${i}>
174`}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>${ge(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),n=ll(t);if(n===null)return a;t=n;let s='<a href="'+t+'"';return r&&(s+=' title="'+ge(r)+'"'),s+=">"+a+"</a>",s}image({href:t,title:r,text:i,tokens:a}){a&&(i=this.parser.parseInline(a,this.parser.textRenderer));let n=ll(t);if(n===null)return ge(i);t=n;let s=`<img src="${t}" alt="${i}"`;return r&&(s+=` title="${ge(r)}"`),s+=">",s}text(t){return"tokens"in t&&t.tokens?this.parser.parseInline(t.tokens):"escaped"in t&&t.escaped?t.text:ge(t.text)}},Vs=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""}},se=class Xn{options;renderer;textRenderer;constructor(t){this.options=t||nr,this.options.renderer=this.options.renderer||new ya,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Vs}static parse(t,r){return new Xn(r).parse(t)}static parseInline(t,r){return new Xn(r).parseInline(t)}parse(t,r=!0){let i="";for(let a=0;a<t.length;a++){let n=t[a];if(this.options.extensions?.renderers?.[n.type]){let o=n,l=this.options.extensions.renderers[o.type].call({parser:this},o);if(l!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(o.type)){i+=l||"";continue}}let s=n;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 o=s,l=this.renderer.text(o);for(;a+1<t.length&&t[a+1].type==="text";)o=t[++a],l+=`
175`+this.renderer.text(o);r?i+=this.renderer.paragraph({type:"paragraph",raw:l,text:l,tokens:[{type:"text",raw:l,text:l,escaped:!0}]}):i+=l;continue}default:{let o='Token with "'+s.type+'" type was not found.';if(this.options.silent)return console.error(o),"";throw new Error(o)}}}return i}parseInline(t,r=this.renderer){let i="";for(let a=0;a<t.length;a++){let n=t[a];if(this.options.extensions?.renderers?.[n.type]){let o=this.options.extensions.renderers[n.type].call({parser:this},n);if(o!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(n.t
175ype)){i+=o||"";continue}}let s=n;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 o='Token with "'+s.type+'" type was not found.';if(this.options.silent)return console.error(o),"";throw new Error(o)}}}return i}},Xr=class{options;block;constructor(t){this.options=t||nr}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}emStrongMask(t){return t}provideLexer(){return this.block?ne.lex:ne.lexInline}provideParser(){return this.block?se.parse:se.parseInline}},K2=class{defaults=zs();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=se;Renderer=ya;TextRenderer=Vs;Lexer=ne;Tokenizer=ma;Hooks=Xr;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 n=a;for(let s of n.header)i=i.concat(this.walkTokens(s.tokens,r));for(let s of n.rows)for(let o of s)i=i.concat(this.walkTokens(o.tokens,r));break}case"list":{let n=a;i=i.concat(this.walkTokens(n.items,r));break}default:{let n=a;this.defaults.extensions?.childTokens?.[n.type]?this.defaults.extensions.childTokens[n.type].forEach(s=>{let o=n[s].flat(1/0);i=i.concat(this.walkTokens(o,r))}):n.tokens&&(i=i.concat(this.walkTokens(n.tokens,r)))}}return i}use(...t){let r=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(i=>{let a={...i};if(a.async=this.defaults.async||a.async||!1,i.extensions&&(i.extensions.forEach(n=>{if(!n.name)throw new Error("extension name required");if("renderer"in n){let s=r.renderers[n.name];s?r.renderers[n.name]=function(...o){let l=n.renderer.apply(this,o);return l===!1&&(l=s.apply(this,o)),l}:r.renderers[n.name]=n.renderer}if("tokenizer"in n){if(!n.level||n.level!=="block"&&n.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let s=r[n.level];s?s.unshift(n.tokenizer):r[n.level]=[n.tokenizer],n.start&&(n.level==="block"?r.startBlock?r.startBlock.push(n.start):r.startBlock=[n.start]:n.level==="inline"&&(r.startInline?r.startInline.push(n.start):r.startInline=[n.start]))}"childTokens"in n&&n.childTokens&&(r.childTokens[n.name]=n.childTokens)}),a.extensions=r),i.renderer){let n=this.defaults.renderer||new ya(this.defaults);for(let s in i.renderer){if(!(s in n))throw new Error(`renderer '${s}' does not exist`);if(["options","parser"].includes(s))continue;let o=s,l=i.renderer[o],c=n[o];n[o]=(...h)=>{let u=l.apply(n,h);return u===!1&&(u=c.apply(n,h)),u||""}}a.renderer=n}if(i.tokenizer){let n=this.defaults.tokenizer||new ma(this.defaults);for(let s in i.tokenizer){if(!(s in n))throw new Error(`tokenizer '${s}' does not exist`);if(["options","rules","lexer"].includes(s))continue;let o=s,l=i.tokenizer[o],c=n[o];n[o]=(...h)=>{let u=l.apply(n,h);return u===!1&&(u=c.apply(n,h)),u}}a.tokenizer=n}if(i.hooks){let n=this.defaults.hooks||new Xr;for(let s in i.hooks){if(!(s in n))throw new Error(`hook '${s}' does not exist`);if(["options","block"].includes(s))continue;let o=s,l=i.hooks[o],c=n[o];Xr.passThroughHooks.has(s)?n[o]=h=>{if(this.defaults.async&&Xr.passThroughHooksRespectAsync.has(s))return(async()=>{let d=await l.call(n,h);return c.call(n,d)})();let u=l.call(n,h);return c.call(n,u)}:n[o]=(...h)=>{if(this.defaults.async)return(async()=>{let d=await l.apply(n,h);return d===!1&&(d=await c.apply(n,h)),d})();let u=l.apply(n,h);return u===!1&&(u=c.apply(n,h)),u}}a.hooks=n}if(i.walkTokens){let n=this.defaults.walkTokens,s=i.walkTokens;a.walkTokens=function(o){let l=[];return l.push(s.call(this,o)),n&&(l=l.concat(n.call(this,o))),l}}this.defaults={...this.defaults,...a}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,r){return ne.lex(t,r??this.defaults)}parser(t,r){return se.parse(t,r??this.defaults)}parseMarkdown(t){return(r,i)=>{let a={...i},n={...this.defaults,...a},s=this.onError(!!n.silent,!!n.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"));if(n.hooks&&(n.hooks.options=n,n.hooks.block=t),n.async)return(async()=>{let o=n.hooks?await n.hooks.preprocess(r):r,l=await(n.hooks?await n.hooks.provideLexer():t?ne.lex:ne.lexInline)(o,n),c=n.hooks?await n.hooks.processAllTokens(l):l;n.walkTokens&&await Promise.all(this.walkTokens(c,n.walkTokens));let h=await(n.hooks?await n.hooks.provideParser():t?se.parse:se.parseInline)(c,n);return n.hooks?await n.hooks.postprocess(h):h})().catch(s);try{n.hooks&&(r=n.hooks.preprocess(r));let o=(n.hooks?n.hooks.provideLexer():t?ne.lex:ne.lexInline)(r,n);n.hooks&&(o=n.hooks.processAllTokens(o)),n.walkTokens&&this.walkTokens(o,n.walkTokens);let l=(n.hooks?n.hooks.provideParser():t?se.parse:se.parseInline)(o,n);return n.hooks&&(l=n.hooks.postprocess(l)),l}catch(o){return s(o)}}}onError(t,r){return i=>{if(i.message+=`
176Please report this to https://github.com/markedjs/marked.`,t){let a="<p>An error occurred:</p><pre>"+ge(i.message+"",!0)+"</pre>";return r?Promise.resolve(a):a}if(r)return Promise.reject(i);throw i}}},rr=new K2;function ft(e,t){return rr.parse(e,t)}ft.options=ft.setOptions=function(e){return rr.setOptions(e),ft.defaults=rr.defaults,Bu(ft.defaults),ft};ft.getDefaults=zs;ft.defaults=nr;ft.use=function(...e){return rr.use(...e),ft.defaults=rr.defaults,Bu(ft.defaults),ft};ft.walkTokens=function(e,t){return rr.walkTokens(e,t)};ft.parseInline=rr.parseInline;ft.Parser=se;ft.parser=se.parse;ft.Renderer=ya;ft.TextRenderer=Vs;ft.Lexer=ne;ft.lexer=ne.lex;ft.Tokenizer=ma;ft.Hooks=Xr;ft.parse=ft;ft.options;ft.setOptions;ft.use;ft.walkTokens;ft.parseInline;se.parse;ne.lex;function Nu(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(o,l){var c=l.match(/\n([\t ]+|(?!\s).)/g);return c?o.concat(c.map(function(h){var u,d;return(d=(u=h.match(/[\t ]/g))===null||u===void 0?void 0:u.length)!==null&&d!==void 0?d:0})):o},[]);if(a.length){var n=new RegExp(`
177[	 ]{`+Math.min.apply(Math,a)+"}","g");i=i.map(function(o){return o.replace(n,`
178`)})}i[0]=i[0].replace(/^\r?\n/,"");var s=i[0];return t.forEach(function(o,l){var c=s.match(/(?:^|\n)( *)$/),h=c?c[1]:"",u=o;
178typeof o=="string"&&o.includes(`
179`)&&(u=String(o).split(`
180`).map(function(d,f){return f===0?d:""+h+d}).join(`
181`)),s+=u+i[l+1]}),s}var Q2={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},Zn=new Map,zu=new Map,J2=p(e=>{for(const t of e){if(!t.name)throw new Error('Invalid icon loader. Must have a "name" property with non-empty string value.');if($.debug("Registering icon pack:",t.name),"loader"in t)zu.set(t.name,t.loader);else if("icons"in t)Zn.set(t.name,t.icons);else throw $.error("Invalid icon loader:",t),new Error('Invalid icon loader. Must have either "icons" or "loader" property.')}},"registerIconPacks"),Wu=p(async(e,t)=>{const r=t2(e,!0,t!==void 0);if(!r)throw new Error(`Invalid icon name: ${e}`);const i=r.prefix||t;if(!i)throw new Error(`Icon name must contain a prefix: ${e}`);let a=Zn.get(i);if(!a){const s=zu.get(i);if(!s)throw new Error(`Icon set not found: ${r.prefix}`);try{a={...await s(),prefix:i},Zn.set(i,a)}catch(o){throw $.error(o),new Error(`Failed to load icon set: ${r.prefix}`)}}const n=i2(a,r.name);if(!n)throw new Error(`Icon not found: ${e}`);return n},"getRegisteredIconData"),t1=p(async e=>{try{return await Wu(e),!0}catch{return!1}},"isIconAvailable"),yi=p(async(e,t,r)=>{let i;try{i=await Wu(e,t?.fallbackPrefix)}catch(s){$.error(s),i=Q2}const a=h2(i,t),n=p2(f2(a.body),{...a.attributes,...r});return Jt(n,Dt())},"getIconSVG");function qu(e,{markdownAutoWrap:t}){const i=e.replace(/<br\/>/g,`
182`).replace(/\n{2,}/g,`
183`),a=Nu(i);return t===!1?a.replace(/ /g,"&nbsp;"):a}p(qu,"preprocessMarkdown");function Hu(e,t={}){const r=qu(e,t),i=ft.lexer(r),a=[[]];let n=0;function s(o,l="normal"){o.type==="text"?o.text.split(`
184`).forEach((h,u)=>{u!==0&&(n++,a.push([])),h.split(" ").forEach(d=>{d=d.replace(/&#39;/g,"'"),d&&a[n].push({content:d,type:l})})}):o.type==="strong"||o.type==="em"?o.tokens.forEach(c=>{s(c,o.type)}):o.type==="html"&&a[n].push({content:o.text,type:"normal"})}return p(s,"processNode"),i.forEach(o=>{o.type==="paragraph"?o.tokens?.forEach(l=>{s(l)}):o.type==="html"?a[n].push({content:o.text,type:"normal"}):a[n].push({content:o.raw,type:"normal"})}),a}p(Hu,"markdownToLines");function Yu(e,{markdownAutoWrap:t}={}){const r=ft.lexer(e);function i(a){return a.type==="text"?t===!1?a.text.replace(/\n */g,"<br/>").replace(/ /g,"&nbsp;"):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:($.warn(`Unsupported markdown: ${a.type}`),a.raw)}return p(i,"output"),r.map(i).join("")}p(Yu,"markdownToHTML");function Uu(e){return Intl.Segmenter?[...new Intl.Segmenter().segment(e)].map(t=>t.segment):[...e]}p(Uu,"splitTextToChars");function ju(e,t){const r=Uu(t.content);return Xs(e,[],r,t.type)}p(ju,"splitWordToFitWidth");function Xs(e,t,r,i){if(r.length===0)return[{content:t.join(""),type:i},{content:"",type:i}];const[a,...n]=r,s=[...t,a];return e([{content:s.join(""),type:i}])?Xs(e,s,n,i):(t.length===0&&a&&(t.push(a),r.shift()),[{content:t.join(""),type:i},{content:r.join(""),type:i}])}p(Xs,"splitWordToFitWidthRecursion");function Gu(e,t){if(e.some(({content:r})=>r.includes(`
185`)))throw new Error("splitLineToFitWidth does not support newlines in the line");return xa(e,t)}p(Gu,"splitLineToFitWidth");function xa(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());const n=e.shift()??{content:" ",type:"normal"},s=[...i];if(a!==""&&s.push({content:a,type:"normal"}),s.push(n),t(s))return xa(e,t,r,s);if(i.length>0)r.push(i),e.unshift(n);else if(n.content){const[o,l]=ju(t,n);r.push([o]),l.content&&e.unshift(l)}return xa(e,t,r)}p(xa,"splitLineToFitWidthRecursion");function Kn(e,t){t&&e.attr("style",t)}p(Kn,"applyStyle");async function Vu(e,t,r,i,a=!1,n=Dt()){const s=e.append("foreignObject");s.attr("width",`${10*r}px`),s.attr("height",`${10*r}px`);const o=s.append("xhtml:div"),l=Cr(t.label)?await gs(t.label.replace(Lr.lineBreakRegex,`
186`),n):Jt(t.label,n),c=t.isNode?"nodeLabel":"edgeLabel",h=o.append("span");h.html(l),Kn(h,t.labelStyle),h.attr("class",`${c} ${i}`),Kn(o,t.labelStyle),o.style("display","table-cell"),o.style("white-space","nowrap"),o.style("line-height","1.5"),o.style("max-width",r+"px"),o.style("text-align","center"),o.attr("xmlns","http://www.w3.org/1999/xhtml"),a&&o.attr("class","labelBkg");let u=o.node().getBoundingClientRect();return u.width===r&&(o.style("display","table"),o.style("white-space","break-spaces"),o.style("width",r+"px"),u=o.node().getBoundingClientRect()),s.node()}p(Vu,"addHtmlSpan");function Ia(e,t,r){return e.append("tspan").attr("class","text-outer-tspan").attr("x",0).attr("y",t*r-.1+"em").attr("dy",r+"em")}p(Ia,"createTspan");function Xu(e,t,r){const i=e.append("text"),a=Ia(i,1,t);Pa(a,r);const n=a.node().getComputedTextLength();return i.remove(),n}p(Xu,"computeWidthOfText");function e1(e,t,r){const i=e.append("text"),a=Ia(i,1,t);Pa(a,[{content:r,type:"normal"}]);const n=a.node()?.getBoundingClientRect();return n&&i.remove(),n}p(e1,"computeDimensionOfText");function Zu(e,t,r,i=!1){const n=t.append("g"),s=n.insert("rect").attr("class","background").attr("style","stroke: none"),o=n.append("text").attr("y","-10.1");let l=0;for(const c of r){const h=p(d=>Xu(n,1.1,d)<=e,"checkWidth"),u=h(c)?[c]:Gu(c,h);for(const d of u){const f=Ia(o,l,1.1);Pa(f,d),l++}}if(i){const c=o.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),n.node()}else return o.node()}p(Zu,"createFormattedText");function Pa(e,t){e.text(""),t.forEach((r,i)=>{const 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(r.content):a.text(" "+r.content)})}p(Pa,"updateTextContentAndStyles");async function Ku(e,t={}){const r=[];e.replace(/(fa[bklrs]?):fa-([\w-]+)/g,(a,n,s)=>(r.push((async()=>{const o=`${n}:${s}`;return await t1(o)?await yi(o,void 0,{class:"label-icon"}):`<i class='${Jt(a,t).replace(":"," ")}'></i>`})()),a));const i=await Promise.all(r);return e.replace(/(fa[bklrs]?):fa-([\w-]+)/g,()=>i.shift()??"")}p(Ku,"replaceIconSubstring");var ze=p(async(e,t="",{style:r="",isTitle:i=!1,classes:a="",useHtmlLabels:n=!0,isNode:s=!0,width:o=200,addSvgBackgroun
186d:l=!1}={},c)=>{if($.debug("XYZ createText",t,r,i,a,n,s,"addSvgBackground: ",l),n){const h=Yu(t,c),u=await Ku(ar(h),c),d=t.replace(/\\\\/g,"\\"),f={isNode:s,label:Cr(t)?d:u,labelStyle:r.replace("fill:","color:")};return await Vu(e,f,o,a,l,c)}else{const h=t.replace(/<br\s*\/?>/g,"<br/>"),u=Hu(h.replace("<br>","<br/>"),c),d=Zu(o,e,u,t?l:!1);if(s){/stroke:/.exec(r)&&(r=r.replace("stroke:","lineColor:"));const f=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");ht(d).attr("style",f)}else{const f=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/background:/g,"fill:");ht(d).select("rect").attr("style",f.replace(/background:/g,"fill:"));const g=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");ht(d).select("text").attr("style",g)}return d}},"createText");function hn(e,t,r){if(e&&e.length){const[i,a]=t,n=Math.PI/180*r,s=Math.cos(n),o=Math.sin(n);for(const l of e){const[c,h]=l;l[0]=(c-i)*s-(h-a)*o+i,l[1]=(c-i)*o+(h-a)*s+a}}}function r1(e,t){return e[0]===t[0]&&e[1]===t[1]}function i1(e,t,r,i=1){const a=r,n=Math.max(t,.1),s=e[0]&&e[0][0]&&typeof e[0][0]=="number"?[e]:e,o=[0,0];if(a)for(const c of s)hn(c,o,a);const l=(function(c,h,u){const d=[];for(const b of c){const C=[...b];
186r1(C[0],C[C.length-1])||C.push([C[0][0],C[0][1]]),C.length>2&&d.push(C)}const f=[];h=Math.max(h,.1);const g=[];for(const b of d)for(let C=0;C<b.length-1;C++){const _=b[C],w=b[C+1];if(_[1]!==w[1]){const B=Math.min(_[1],w[1]);g.push({ymin:B,ymax:Math.max(_[1],w[1]),x:B===_[1]?_[0]:w[0],islope:(w[0]-_[0])/(w[1]-_[1])})}}if(g.sort(((b,C)=>b.ymin<C.ymin?-1:b.ymin>C.ymin?1:b.x<C.x?-1:b.x>C.x?1:b.ymax===C.ymax?0:(b.ymax-C.ymax)/Math.abs(b.ymax-C.ymax))),!g.length)return f;let m=[],y=g[0].ymin,x=0;for(;m.length||g.length;){if(g.length){let b=-1;for(let C=0;C<g.length&&!(g[C].ymin>y);C++)b=C;g.splice(0,b+1).forEach((C=>{m.push({s:y,edge:C})}))}if(m=m.filter((b=>!(b.edge.ymax<=y))),m.sort(((b,C)=>b.edge.x===C.edge.x?0:(b.edge.x-C.edge.x)/Math.abs(b.edge.x-C.edge.x))),(u!==1||x%h==0)&&m.length>1)for(let b=0;b<m.length;b+=2){const C=b+1;if(C>=m.length)break;const _=m[b].edge,w=m[C].edge;f.push([[Math.round(_.x),y],[Math.round(w.x),y]])}y+=u,m.forEach((b=>{b.edge.x=b.edge.x+u*b.edge.islope})),x++}return f})(s,n,i);if(a){for(const c of s)hn(c,o,-a);(function(c,h,u){const d=[];c.forEach((f=>d.push(...f))),hn(d,h,u)})(l,o,-a)}return l}function xi(e,t){var r;const i=t.hachureAngle+90;let a=t.hachureGap;a<0&&(a=4*t.strokeWidth),a=Math.round(Math.max(a,.1));let n=1;return t.roughness>=1&&(((r=t.randomizer)===null||r===void 0?void 0:r.next())||Math.random())>.7&&(n=a),i1(e,a,i,n||1)}class Zs{constructor(t){this.helper=t}fillPolygons(t,r){return this._fillPolygons(t,r)}_fillPolygons(t,r){const i=xi(t,r);return{type:"fillSketch",ops:this.renderLines(i,r)}}renderLines(t,r){const i=[];for(const a of t)i.push(...this.helper.doubleLineOps(a[0][0],a[0][1],a[1][0],a[1][1],r));return i}}function Na(e){const t=e[0],r=e[1];return Math.sqrt(Math.pow(t[0]-r[0],2)+Math.pow(t[1]-r[1],2))}class a1 extends Zs{fillPolygons(t,r){let i=r.hachureGap;i<0&&(i=4*r.strokeWidth),i=Math.max(i,.1);const a=xi(t,Object.assign({},r,{hachureGap:i})),n=Math.PI/180*r.hachureAngle,s=[],o=.5*i*Math.cos(n),l=.5*i*Math.sin(n);for(const[c,h]of a)Na([c,h])&&s.push([[c[0]-o,c[1]+l],[...h]],[[c[0]+o,c[1]-l],[...h]]);return{type:"fillSketch",ops:this.renderLines(s,r)}}}class n1 extends Zs{fillPolygons(t,r){const i=this._fillPolygons(t,r),a=Object.assign({},r,{hachureAngle:r.hachureAngle+90}),n=this._fillPolygons(t,a);return i.ops=i.ops.concat(n.ops),i}}class s1{constructor(t){this.helper=t}fillPolygons(t,r){const i=xi(t,r=Object.assign({},r,{hachureAngle:0}));return this.dotsOnLines(i,r)}dotsOnLines(t,r){const i=[];let a=r.hachureGap;a<0&&(a=4*r.strokeWidth),a=Math.max(a,.1);let n=r.fillWeight;n<0&&(n=r.strokeWidth/2);const s=a/4;for(const o of t){const l=Na(o),c=l/a,h=Math.ceil(c)-1,u=l-h*a,d=(o[0][0]+o[1][0])/2-a/4,f=Math.min(o[0][1],o[1][1]);for(let g=0;g<h;g++){const m=f+u+g*a,y=d-s+2*Math.random()*s,x=m-s+2*Math.random()*s,b=this.helper.ellipse(y,x,n,n,r);i.push(...b.ops)}}return{type:"fillSketch",ops:i}}}class o1{constructor(t){this.helper=t}fillPolygons(t,r){const i=xi(t,r);return{type:"fillSketch",ops:this.dashedLine(i,r)}}dashedLine(t,r){const 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,n=[];return t.forEach((s=>{const o=Na(s),l=Math.floor(o/(i+a)),c=(o+a-l*(i+a))/2;let h=s[0],u=s[1];h[0]>u[0]&&(h=s[1],u=s[0]);const d=Math.atan((u[1]-h[1])/(u[0]-h[0]));for(let f=0;f<l;f++){const g=f*(i+a),m=g+i,y=[h[0]+g*Math.cos(d)+c*Math.cos(d),h[1]+g*Math.sin(d)+c*Math.sin(d)],x=[h[0]+m*Math.cos(d)+c*Math.cos(d),h[1]+m*Math.sin(d)+c*Math.sin(d)];n.push(...this.helper.doubleLineOps(y[0],y[1],x[0],x[1],r))}})),n}}class l1{constructor(t){this.helper=t}fillPolygons(t,r){const i=r.hachureGap<0?4*r.strokeWidth:r.hachureGap,a=r.zigzagOffset<0?i:r.zigzagOffset,n=xi(t,r=Object.assign({},r,{hachureGap:i+a}));return{type:"fillSketch",ops:this.zigzagLines(n,a,r)}}zigzagLines(t,r,i){const a=[];return t.forEach((n=>{const s=Na(n),o=Math.round(s/(2*r));let l=n[0],c=n[1];l[0]>c[0]&&(l=n[1],c=n[0]);const h=Math.atan((c[1]-l[1])/(c[0]-l[0]));for(let u=0;u<o;u++){const d=2*u*r,f=2*(u+1)*r,g=Math.sqrt(2*Math.pow(r,2)),m=[l[0]+d*Math.cos(h),l[1]+d*Math.sin(h)],y=[l[0]+f*Math.cos(h),l[1]+f*Math.sin(h)],x=[m[0]+g*Math.cos(h+Math.PI/4),m[1]+g*Math.sin(h+Math.PI/4)];a.push(...this.helper.doubleLineOps(m[0],m[1],x[0],x[1],i),...this.helper.doubleLineOps(x[0],x[1],y[0],y[1],i))}})),a}}const jt={};class c1{constructor(t){this.seed=t}next(){return this.seed?(2**31-1&(this.seed=Math.imul(48271,this.seed)))/2**31:Math.random()}}const h1=0,un=1,ul=2,Ei={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 dn(e,t){return e.type===t}function Ks(e){const t=[],r=(function(s){const o=new Array;for(;s!=="";)if(s.match(/^([ \t\r\n,]+)/))s=s.substr(RegExp.$1.length);else if(s.match(/^([aAcChHlLmMqQsStTvVzZ])/))o[o.length]={type:h1,text:RegExp.$1},s=s.substr(RegExp.$1.length);else{if(!s.match(/^(([-+]?[0-9]+(\.[0-9]*)?|[-+]?\.[0-9]+)([eE][-+]?[0-9]+)?)/))return[];o[o.length]={type:un,text:`${parseFloat(RegExp.$1)}`},s=s.substr(RegExp.$1.length)}return o[o.length]={type:ul,text:""},o})(e);let i="BOD",a=0,n=r[a];for(;!dn(n,ul);){let s=0;const o=[];if(i==="BOD"){if(n.text!=="M"&&n.text!=="m")return Ks("M0,0"+e);a++,s=Ei[n.text],i=n.text}else dn(n,un)?s=Ei[i]:(a++,s=Ei[n.text],i=n.text);if(!(a+s<r.length))throw new Error("Path data ended short");for(let l=a;l<a+s;l++){const c=r[l];if(!dn(c,un))throw new Error("Param not a number: "+i+","+c.text);o[o.length]=+c.text}if(typeof Ei[i]!="number")throw new Error("Bad segment: "+i);{const l={key:i,data:o};t.push(l),a+=s,n=r[a],i==="M"&&(i="L"),i==="m"&&(i="l")}}return t}function Qu(e){let t=0,r=0,i=0,a=0;const n=[];for(const{key:s,data:o}of e)switch(s){case"M":n.push({key:"M",data:[...o]}),[t,r]=o,[i,a]=o;break;case"m":t+=o[0],r+=o[1],n.push({key:"M",data:[t,r]}),i=t,a=r;break;case"L":n.push({key:"L",data:[...o]}),[t,r]=o;break;case"l":t+=o[0],r+=o[1],n.push({key:"L",data:[t,r]});break;case"C":n.push({key:"C",data:[...o]}),t=o[4],r=o[5];break;case"c":{const l=o.map(((c,h)=>h%2?c+r:c+t));n.push({key:"C",data:l}),t=l[4],r=l[5];break}case"Q":n.push({key:"Q",data:[...o]}),t=o[2],r=o[3];break;case"q":{const l=o.map(((c,h)=>h%2?c+r:c+t));n.push({key:"Q",data:l}),t=l[2],r=l[3];break}case"A":n.push({key:"A",data:[...o]}),t=o[5],r=o[6];break;case"a":t+=o[5],r+=o[6],n.push({key:"A",data:[o[0],o[1],o[2],o[3],o[4],t,r]});break;case"H":n.push({key:"H",data:[...o]}),t=o[0];break;case"h":t+=o[0],n.push({key:"H",data:[t]});break;case"V":n.push({key:"V",data:[...o]}
186),r=o[0];break;case"v":r+=o[0],n.push({key:"V",data:[r]});break;case"S":n.push({key:"S",data:[...o]}),t=o[2],r=o[3];break;case"s":{const l=o.map(((c,h)=>h%2?c+r:c+t));n.push({key:"S",data:l}),t=l[2],r=l[3];break}case"T":n.push({key:"T",data:[...o]}),t=o[0],r=o[1];break;case"t":t+=o[0],r+=o[1],n.push({key:"T",data:[t,r]});break;case"Z":case"z":n.push({key:"Z",data:[]}),t=i,r=a}return n}function Ju(e){const t=[];let r="",i=0,a=0,n=0,s=0,o=0,l=0;for(const{key:c,data:h}of e){switch(c){case"M":t.push({key:"M",data:[...h]}),[i,a]=h,[n,s]=h;break;case"C":t.push({key:"C",data:[...h]}),i=h[4],a=h[5],o=h[2],l=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,d=0;r==="C"||r==="S"?(u=i+(i-o),d=a+(a-l)):(u=i,d=a),t.push({key:"C",data:[u,d,...h]}),o=h[0],l=h[1],i=h[2],a=h[3];break}case"T":{const[u,d]=h;let f=0,g=0;r==="Q"||r==="T"?(f=i+(i-o),g=a+(a-l)):(f=i,g=a);const m=i+2*(f-i)/3,y=a+2*(g-a)/3,x=u+2*(f-u)/3,b=d+2*(g-d)/3;t.push({key:"C",data:[m,y,x,b,u,d]}),o=f,l=g,i=u,a=d;break}case"Q":{const[u,d,f,g]=h,m=i+2*(u-i)/3,y=a+2*(d-a)/3,x=f+2*(u-f)/3,b=g+2*(d-g)/3;t.push({key:"C",data:[m,y,x,b,f,g]}),o=u,l=d,i=f,a=g;break}case"A":{const u=Math.abs(h[0]),d=Math.abs(h[1]),f=h[2],g=h[3],m=h[4],y=h[5],x=h[6];u===0||d===0?(t.push({key:"C",data:[i,a,y,x,y,x]}),i=y,a=x):(i!==y||a!==x)&&(td(i,a,y,x,u,d,f,g,m).forEach((function(b){t.push({key:"C",data:b})})),i=y,a=x);break}case"Z":t.push({key:"Z",data:[]}),i=n,a=s}r=c}return t}function qr(e,t,r){return[e*Math.cos(r)-t*Math.sin(r),e*Math.sin(r)+t*Math.cos(r)]}function td(e,t,r,i,a,n,s,o,l,c){const h=(u=s,Math.PI*u/180);var u;let d=[],f=0,g=0,m=0,y=0;if(c)[f,g,m,y]=c;else{[e,t]=qr(e,t,-h),[r,i]=qr(r,i,-h);const O=(e-r)/2,L=(t-i)/2;let A=O*O/(a*a)+L*L/(n*n);A>1&&(A=Math.sqrt(A),a*=A,n*=A);const T=a*a,F=n*n,M=T*F-T*L*L-F*O*O,q=T*L*L+F*O*O,V=(o===l?-1:1)*Math.sqrt(Math.abs(M/q));m=V*a*L/n+(e+r)/2,y=V*-n*O/a+(t+i)/2,f=Math.asin(parseFloat(((t-y)/n).toFixed(9))),g=Math.asin(parseFloat(((i-y)/n).toFixed(9))),e<m&&(f=Math.PI-f),r<m&&(g=Math.PI-g),f<0&&(f=2*Math.PI+f),g<0&&(g=2*Math.PI+g),l&&f>g&&(f-=2*Math.PI),!l&&g>f&&(g-=2*Math.PI)}let x=g-f;if(Math.abs(x)>120*Math.PI/180){const O=g,L=r,A=i;g=l&&g>f?f+120*Math.PI/180*1:f+120*Math.PI/180*-1,d=td(r=m+a*Math.cos(g),i=y+n*Math.sin(g),L,A,a,n,s,0,l,[g,O,m,y])}x=g-f;const b=Math.cos(f),C=Math.sin(f),_=Math.cos(g),w=Math.sin(g),B=Math.tan(x/4),S=4/3*a*B,D=4/3*n*B,I=[e,t],R=[e+S*C,t-D*b],E=[r+S*w,i-D*_],N=[r,i];if(R[0]=2*I[0]-R[0],R[1]=2*I[1]-R[1],c)return[R,E,N].concat(d);{d=[R,E,N].concat(d);const O=[];for(let L=0;L<d.length;L+=3){const A=qr(d[L][0],d[L][1],h),T=qr(d[L+1][0],d[L+1][1],h),F=qr(d[L+2][0],d[L+2][1],h);O.push([A[0],A[1],T[0],T[1],F[0],F[1]])}return O}}const u1={randOffset:function(e,t){return at(e,t)},randOffsetWithRange:function(e,t,r){return ba(e,t,r)},ellipse:function(e,t,r,i,a){const n=rd(r,i,a);return Qn(e,t,a,n).opset},doubleLineOps:function(e,t,r,i,a){return Pe(e,t,r,i,a,!0)}};function ed(e,t,r,i,a){return{type:"path",ops:Pe(e,t,r,i,a)}}function ji(e,t,r){const i=(e||[]).length;if(i>2){const a=[];for(let n=0;n<i-1;n++)a.push(...Pe(e[n][0],e[n][1],e[n+1][0],e[n+1][1],r));return t&&a.push(...Pe(e[i-1][0],e[i-1][1],e[0][0],e[0][1],r)),{type:"path",ops:a}}return i===2?ed(e[0][0],e[0][1],e[1][0],e[1][1],r):{type:"path",ops:[]}}function d1(e,t,r,i,a){return(function(n,s){return ji(n,!0,s)})([[e,t],[e+r,t],[e+r,t+i],[e,t+i]],a)}function dl(e,t){if(e.length){const r=typeof e[0][0]=="number"?[e]:e,i=Fi(r[0],1*(1+.2*t.roughness),t),a=t.disableMultiStroke?[]:Fi(r[0],1.5*(1+.22*t.roughness),gl(t));for(let n=1;n<r.length;n++){const s=r[n];if(s.length){const o=Fi(s,1*(1+.2*t.roughness),t),l=t.disableMultiStroke?[]:Fi(s,1.5*(1+.22*t.roughness),gl(t));for(const c of o)c.op!=="move"&&i.push(c);for(const c of l)c.op!=="move"&&a.push(c)}}return{type:"path",ops:i.concat(a)}}return{type:"path",ops:[]}}function rd(e,t,r){const 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)),n=2*Math.PI/a;let s=Math.abs(e/2),o=Math.abs(t/2);const l=1-r.curveFitting;return s+=at(s*l,r),o+=at(o*l,r),{increment:n,rx:s,ry:o}}function Qn(e,t,r,i){const[a,n]=ml(i.increment,e,t,i.rx,i.ry,1,i.increment*ba(.1,ba(.4,1,r),r),r);let s=Ca(a,null,r);if(!r.disableMultiStroke&&r.roughness!==0){const[o]=ml(i.increment,e,t,i.rx,i.ry,1.5,0,r),l=Ca(o,null,r);s=s.concat(l)}return{estimatedPoints:n,opset:{type:"path",ops:s}}}function fl(e,t,r,i,a,n,s,o,l){const c=e,h=t;let u=Math.abs(r/2),d=Math.abs(i/2);u+=at(.01*u,l),d+=at(.01*d,l);let f=a,g=n;for(;f<0;)f+=2*Math.PI,g+=2*Math.PI;g-f>2*Math.PI&&(f=0,g=2*Math.PI);const m=2*Math.PI/l.curveStepCount,y=Math.min(m/2,(g-f)/2),x=yl(y,c,h,u,d,f,g,1,l);if(!l.disableMultiStroke){const b=yl(y,c,h,u,d,f,g,1.5,l);x.push(...b)}return s&&(o?x.push(...Pe(c,h,c+u*Math.cos(f),h+d*Math.sin(f),l),...Pe(c,h,c+u*Math.cos(g),h+d*Math.sin(g),l)):x.push({op:"lineTo",data:[c,h]},{op:"lineTo",data:[c+u*Math.cos(f),h+d*Math.sin(f)]})),{type:"path",ops:x}}function pl(e,t){const r=Ju(Qu(Ks(e))),i=[];let a=[0,0],n=[0,0];for(const{key:s,data:o}of r)switch(s){case"M":n=[o[0],o[1]],a=[o[0],o[1]];break;case"L":i.push(...Pe(n[0],n[1],o[0],o[1],t)),n=[o[0],o[1]];break;case"C":{const[l,c,h,u,d,f]=o;i.push(...f1(l,c,h,u,d,f,n,t)),n=[d,f];break}case"Z":i.push(...Pe(n[0],n[1],a[0],a[1],t)),n=[a[0],a[1]]}return{type:"path",ops:i}}function fn(e,t){const r=[];for(const i of e)if(i.length){const a=t.maxRandomnessOffset||0,n=i.length;if(n>2){r.push({op:"move",data:[i[0][0]+at(a,t),i[0][1]+at(a,t)]});for(let s=1;s<n;s++)r.push({op:"lineTo",data:[i[s][0]+at(a,t),i[s][1]+at(a,t)]})}}return{type:"fillPath",ops:r}}function ur(e,t){return(function(r,i){let a=r.fillStyle||"hachure";if(!jt[a])switch(a){case"zigzag":jt[a]||(jt[a]=new a1(i));break;case"cross-hatch":jt[a]||(jt[a]=new n1(i));break;case"dots":jt[a]||(jt[a]=new s1(i));break;case"dashed":jt[a]||(jt[a]=new o1(i));break;case"zigzag-line":jt[a]||(jt[a]=new l1(i));break;default:a="hachure",jt[a]||(jt[a]=new Zs(i))}return jt[a]})(t,u1).fillPolygons(e,t)}function gl(e){const t=Object.assign({},e);return t.randomizer=void 0,e.seed&&(t.seed=e.seed+1),t}function id(e){return e.randomizer||(e.randomizer=new c1(e.seed||0)),e.randomizer.next()}function ba(e,t,r,i=1){return r.roughness*i*(id(r)*(t-e)+e)}function at(e,t,r=1){return ba(-e,e,t,r)}function Pe(e,t,r,i,a,n=!1){const s=n?a.disableMultiStrokeFill:a.disableMultiStroke,o=Jn(e,t,r,i,a,!0,!1);if(s)return o;const l=Jn(e,t,r,i,a,!0,!0);return o.concat(l)}function Jn(e,t,r,i,a,n,s){const o=Math.pow(e-r,2)+Math.pow(t-i,2),l=Math.sqrt(o);let c=1;c=l<200?1:l>500?.4:-.0016668*l+1.233334;let h=a.maxRandomnessOffset||0;h*h*100>o&&(h=l/10);const u=h/2,d=.2+.2*id(a);let f=a.bowing*a.maxRandomnessOffset*(i-t)/200,g=a.bowing*a.maxRandomnessOffset*(e-r)/200;f=at(f,a,c),g=at(g,a,c);const m=[],y=()=>at(u,a,c),x=()=>at(h,a,c),b=a.preserveVertices;return s?m.push({op:"move",data:[e+(b?0:y()),t+(b?0:y())]}):m.push({op:"move",data:[e+(b?0:at(h,a,c)),t+(b?0:at(h,a,c))]}),s?m.push({op:"bcurveTo",data:[f+e+(r-e)*d+y(),g+t+(i-t)*d+y(),f+e+2*(r-e)*d+y(),g+t+2*(i-t)*d+y(),r+(b?0:y()),i+(b?0:y())]}):m.push({op:"bcurveTo",data:[f+e+(r-e)*d+x(),g+t+(i-t)*d+x(),f+e+2*(r-e)*d+x(),g+t+2*(i-t)*d+x(),r+(b?0:x()),i+(b?0:x())]}),m}function Fi(e,t,r){if(!e.length)return[];const i=[];
186i.push([e[0][0]+at(t,r),e[0][1]+at(t,r)]),i.push([e[0][0]+at(t,r),e[0][1]+at(t,r)]);for(let a=1;a<e.length;a++)i.push([e[a][0]+at(t,r),e[a][1]+at(t,r)]),a===e.length-1&&i.push([e[a][0]+at(t,r),e[a][1]+at(t,r)]);return Ca(i,null,r)}function Ca(e,t,r){const i=e.length,a=[];if(i>3){const n=[],s=1-r.curveTightness;a.push({op:"move",data:[e[1][0],e[1][1]]});for(let o=1;o+2<i;o++){const l=e[o];n[0]=[l[0],l[1]],n[1]=[l[0]+(s*e[o+1][0]-s*e[o-1][0])/6,l[1]+(s*e[o+1][1]-s*e[o-1][1])/6],n[2]=[e[o+1][0]+(s*e[o][0]-s*e[o+2][0])/6,e[o+1][1]+(s*e[o][1]-s*e[o+2][1])/6],n[3]=[e[o+1][0],e[o+1][1]],a.push({op:"bcurveTo",data:[n[1][0],n[1][1],n[2][0],n[2][1],n[3][0],n[3][1]]})}}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(...Jn(e[0][0],e[0][1],e[1][0],e[1][1],r,!0,!0));return a}function ml(e,t,r,i,a,n,s,o){const l=[],c=[];if(o.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){const u=[t+i*Math.cos(h),r+a*Math.sin(h)];l.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{const h=at(.5,o)-Math.PI/2;c.push([at(n,o)+t+.9*i*Math.cos(h-e),at(n,o)+r+.9*a*Math.sin(h-e)]);const u=2*Math.PI+h-.01;for(let d=h;d<u;d+=e){const f=[at(n,o)+t+i*Math.cos(d),at(n,o)+r+a*Math.sin(d)];l.push(f),c.push(f)}c.push([at(n,o)+t+i*Math.cos(h+2*Math.PI+.5*s),at(n,o)+r+a*Math.sin(h+2*Math.PI+.5*s)]),c.push([at(n,o)+t+.98*i*Math.cos(h+s),at(n,o)+r+.98*a*Math.sin(h+s)]),c.push([at(n,o)+t+.9*i*Math.cos(h+.5*s),at(n,o)+r+.9*a*Math.sin(h+.5*s)])}return[c,l]}function yl(e,t,r,i,a,n,s,o,l){const c=n+at(.1,l),h=[];h.push([at(o,l)+t+.9*i*Math.cos(c-e),at(o,l)+r+.9*a*Math.sin(c-e)]);for(let u=c;u<=s;u+=e)h.push([at(o,l)+t+i*Math.cos(u),at(o,l)+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)]),Ca(h,null,l)}function f1(e,t,r,i,a,n,s,o){const l=[],c=[o.maxRandomnessOffset||1,(o.maxRandomnessOffset||1)+.3];let h=[0,0];const u=o.disableMultiStroke?1:2,d=o.preserveVertices;for(let f=0;f<u;f++)f===0?l.push({op:"move",data:[s[0],s[1]]}):l.push({op:"move",data:[s[0]+(d?0:at(c[0],o)),s[1]+(d?0:at(c[0],o))]}),h=d?[a,n]:[a+at(c[f],o),n+at(c[f],o)],l.push({op:"bcurveTo",data:[e+at(c[f],o),t+at(c[f],o),r+at(c[f],o),i+at(c[f],o),h[0],h[1]]});return l}function Hr(e){return[...e]}function xl(e,t=0){const r=e.length;if(r<3)throw new Error("A curve must have at least three points.");const i=[];if(r===3)i.push(Hr(e[0]),Hr(e[1]),Hr(e[2]),Hr(e[2]));else{const a=[];a.push(e[0],e[0]);for(let o=1;o<e.length;o++)a.push(e[o]),o===e.length-1&&a.push(e[o]);const n=[],s=1-t;i.push(Hr(a[0]));for(let o=1;o+2<a.length;o++){const l=a[o];n[0]=[l[0],l[1]],n[1]=[l[0]+(s*a[o+1][0]-s*a[o-1][0])/6,l[1]+(s*a[o+1][1]-s*a[o-1][1])/6],n[2]=[a[o+1][0]+(s*a[o][0]-s*a[o+2][0])/6,a[o+1][1]+(s*a[o][1]-s*a[o+2][1])/6],n[3]=[a[o+1][0],a[o+1][1]],i.push(n[1],n[2],n[3])}}return i}function Gi(e,t){return Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2)}function p1(e,t,r){const i=Gi(t,r);if(i===0)return Gi(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)),Gi(e,Ge(t,r,a))}function Ge(e,t,r){return[e[0]+(t[0]-e[0])*r,e[1]+(t[1]-e[1])*r]}function ts(e,t,r,i){const a=i||[];if((function(o,l){const c=o[l+0],h=o[l+1],u=o[l+2],d=o[l+3];let f=3*h[0]-2*c[0]-d[0];f*=f;let g=3*h[1]-2*c[1]-d[1];g*=g;let m=3*u[0]-2*d[0]-c[0];m*=m;let y=3*u[1]-2*d[1]-c[1];return y*=y,f<m&&(f=m),g<y&&(g=y),f+g})(e,t)<r){const o=e[t+0];a.length?(n=a[a.length-1],s=o,Math.sqrt(Gi(n,s))>1&&a.push(o)):a.push(o),a.push(e[t+3])}else{const l=e[t+0],c=e[t+1],h=e[t+2],u=e[t+3],d=Ge(l,c,.5),f=Ge(c,h,.5),g=Ge(h,u,.5),m=Ge(d,f,.5),y=Ge(f,g,.5),x=Ge(m,y,.5);ts([l,d,m,x],0,r,a),ts([x,y,g,u],0,r,a)}var n,s;return a}function g1(e,t){return ka(e,0,e.length,t)}function ka(e,t,r,i,a){const n=a||[],s=e[t],o=e[r-1];let l=0,c=1;for(let h=t+1;h<r-1;++h){const u=p1(e[h],s,o);u>l&&(l=u,c=h)}return Math.sqrt(l)>i?(ka(e,t,c+1,i,n),ka(e,c,r,i,n)):(n.length||n.push(s),n.push(o)),n}function pn(e,t=.15,r){const i=[],a=(e.length-1)/3;for(let n=0;n<a;n++)ts(e,3*n,t,i);return r&&r>0?ka(i,0,i.length,r):i}const Xt="none";class wa{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,n){const s=this._o(n);return this._d("line",[ed(t,r,i,a,s)],s)}rectangle(t,r,i,a,n){const s=this._o(n),o=[],l=d1(t,r,i,a,s);if(s.fill){const c=[[t,r],[t+i,r],[t+i,r+a],[t,r+a]];s.fillStyle==="solid"?o.push(fn([c],s)):o.push(ur([c],s))}return s.stroke!==Xt&&o.push(l),this._d("rectangle",o,s)}ellipse(t,r,i,a,n){const s=this._o(n),o=[],l=rd(i,a,s),c=Qn(t,r,s,l);if(s.fill)if(s.fillStyle==="solid"){const h=Qn(t,r,s,l).opset;h.type="fillPath",o.push(h)}else o.push(ur([c.estimatedPoints],s));return s.stroke!==Xt&&o.push(c.opset),this._d("ellipse",o,s)}circle(t,r,i,a){const n=this.ellipse(t,r,i,i,a);return n.shape="circle",n}linearPath(t,r){const i=this._o(r);return this._d("linearPath",[ji(t,!1,i)],i)}arc(t,r,i,a,n,s,o=!1,l){const c=this._o(l),h=[],u=fl(t,r,i,a,n,s,o,!0,c);if(o&&c.fill)if(c.fillStyle==="solid"){const d=Object.assign({},c);d.disableMultiStroke=!0;const f=fl(t,r,i,a,n,s,!0,!1,d);f.type="fillPath",h.push(f)}else h.push((function(d,f,g,m,y,x,b){const C=d,_=f;let w=Math.abs(g/2),B=Math.abs(m/2);w+=at(.01*w,b),B+=at(.01*B,b);let S=y,D=x;for(;S<0;)S+=2*Math.PI,D+=2*Math.PI;D-S>2*Math.PI&&(S=0,D=2*Math.PI);const I=(D-S)/b.curveStepCount,R=[];for(let E=S;E<=D;E+=I)R.push([C+w*Math.cos(E),_+B*Math.sin(E)]);return R.push([C+w*Math.cos(D),_+B*Math.sin(D)]),R.push([C,_]),ur([R],b)})(t,r,i,a,n,s,c));
186return c.stroke!==Xt&&h.push(u),this._d("arc",h,c)}curve(t,r){const i=this._o(r),a=[],n=dl(t,i);if(i.fill&&i.fill!==Xt)if(i.fillStyle==="solid"){const s=dl(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{const s=[],o=t;if(o.length){const l=typeof o[0][0]=="number"?[o]:o;for(const c of l)c.length<3?s.push(...c):c.length===3?s.push(...pn(xl([c[0],c[0],c[1],c[2]]),10,(1+i.roughness)/2)):s.push(...pn(xl(c),10,(1+i.roughness)/2))}s.length&&a.push(ur([s],i))}return i.stroke!==Xt&&a.push(n),this._d("curve",a,i)}polygon(t,r){const i=this._o(r),a=[],n=ji(t,!0,i);return i.fill&&(i.fillStyle==="solid"?a.push(fn([t],i)):a.push(ur([t],i))),i.stroke!==Xt&&a.push(n),this._d("polygon",a,i)}path(t,r){const i=this._o(r),a=[];if(!t)return this._d("path",a,i);t=(t||"").replace(/\n/g," ").replace(/(-\s)/g,"-").replace("/(ss)/g"," ");const n=i.fill&&i.fill!=="transparent"&&i.fill!==Xt,s=i.stroke!==Xt,o=!!(i.simplification&&i.simplification<1),l=(function(h,u,d){const f=Ju(Qu(Ks(h))),g=[];let m=[],y=[0,0],x=[];const b=()=>{x.length>=4&&m.push(...pn(x,u)),x=[]},C=()=>{b(),m.length&&(g.push(m),m=[])};for(const{key:w,data:B}of f)switch(w){case"M":C(),y=[B[0],B[1]],m.push(y);break;case"L":b(),m.push([B[0],B[1]]);break;case"C":if(!x.length){const S=m.length?m[m.length-1]:y;x.push([S[0],S[1]])}x.push([B[0],B[1]]),x.push([B[2],B[3]]),x.push([B[4],B[5]]);break;case"Z":b(),m.push([y[0],y[1]])}if(C(),!d)return g;const _=[];for(const w of g){const B=g1(w,d);B.length&&_.push(B)}return _})(t,1,o?4-4*(i.simplification||1):(1+i.roughness)/2),c=pl(t,i);if(n)if(i.fillStyle==="solid")if(l.length===1){const h=pl(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(fn(l,i));else a.push(ur(l,i));return s&&(o?l.forEach((h=>{a.push(ji(h,!1,i))})):a.push(c)),this._d("path",a,i)}opsToPath(t,r){let i="";for(const a of t.ops){const n=typeof r=="number"&&r>=0?a.data.map((s=>+s.toFixed(r))):a.data;switch(a.op){case"move":i+=`M${n[0]} ${n[1]} `;break;case"bcurveTo":i+=`C${n[0]} ${n[1]}, ${n[2]} ${n[3]}, ${n[4]} ${n[5]} `;break;case"lineTo":i+=`L${n[0]} ${n[1]} `}}return i.trim()}toPaths(t){const r=t.sets||[],i=t.options||this.defaultOptions,a=[];for(const n of r){let s=null;switch(n.type){case"path":s={d:this.opsToPath(n),stroke:i.stroke,strokeWidth:i.strokeWidth,fill:Xt};break;case"fillPath":s={d:this.opsToPath(n),stroke:Xt,strokeWidth:0,fill:i.fill||Xt};break;case"fillSketch":s=this.fillSketch(n,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||Xt,strokeWidth:i,fill:Xt}}_mergedShape(t){return t.filter(((r,i)=>i===0||r.op!=="move"))}}class m1{constructor(t,r){this.canvas=t,this.ctx=this.canvas.getContext("2d"),this.gen=new wa(r)}draw(t){const r=t.sets||[],i=t.options||this.getDefaultOptions(),a=this.ctx,n=t.options.fixedDecimalPlaceDigits;for(const 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,n),a.restore();break;case"fillPath":{a.save(),a.fillStyle=i.fill||"";const o=t.shape==="curve"||t.shape==="polygon"||t.shape==="path"?"evenodd":"nonzero";this._drawToContext(a,s,n,o),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(const n of r.ops){const s=typeof i=="number"&&i>=0?n.data.map((o=>+o.toFixed(i))):n.data;switch(n.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,n){const s=this.gen.line(t,r,i,a,n);return this.draw(s),s}rectangle(t,r,i,a,n){const s=this.gen.rectangle(t,r,i,a,n);return this.draw(s),s}ellipse(t,r,i,a,n){const s=this.gen.ellipse(t,r,i,a,n);return this.draw(s),s}circle(t,r,i,a){const n=this.gen.circle(t,r,i,a);return this.draw(n),n}linearPath(t,r){const i=this.gen.linearPath(t,r);return this.draw(i),i}polygon(t,r){const i=this.gen.polygon(t,r);return this.draw(i),i}arc(t,r,i,a,n,s,o=!1,l){const c=this.gen.arc(t,r,i,a,n,s,o,l);return this.draw(c),c}curve(t,r){const i=this.gen.curve(t,r);return this.draw(i),i}path(t,r){const i=this.gen.path(t,r);return this.draw(i),i}}const $i="http://www.w3.org/2000/svg";class y1{constructor(t,r){this.svg=t,this.gen=new wa(r)}draw(t){const r=t.sets||[],i=t.options||this.getDefaultOptions(),a=this.svg.ownerDocument||window.document,n=a.createElementNS($i,"g"),s=t.options.fixedDecimalPlaceDigits;for(const o of r){let l=null;switch(o.type){case"path":l=a.createElementNS($i,"path"),l.setAttribute("d",this.opsToPath(o,s)),l.setAttribute("stroke",i.stroke),l.setAttribute("stroke-width",i.strokeWidth+""),l.setAttribute("fill","none"),i.strokeLineDash&&l.setAttribute("stroke-dasharray",i.strokeLineDash.join(" ").trim()),i.strokeLineDashOffset&&l.setAttribute("stroke-dashoffset",`${i.strokeLineDashOffset}`);break;case"fillPath":l=a.createElementNS($i,"path"),l.setAttribute("d",this.opsToPath(o,s)),l.setAttribute("stroke","none"),l.setAttribute("stroke-width","0"),l.setAttribute("fill",i.fill||""),t.shape!=="curve"&&t.shape!=="polygon"||l.setAttribute("fill-rule","evenodd");break;case"fillSketch":l=this.fillSketch(a,o,i)}l&&n.appendChild(l)}return n}fillSketch(t,r,i){let a=i.fillWeight;a<0&&(a=i.strokeWidth/2);const n=t.createElementNS($i,"path");return n.setAttribute("d",this.opsToPath(r,i.fixedDecimalPlaceDigits)),n.setAttribute("stroke",i.fill||""),n.setAttribute("stroke-width",a+""),n.setAttribute("fill","none"),i.fillLineDash&&n.setAttribute("stroke-dasharray",i.fillLineDash.join(" ").trim()),i.fillLineDashOffset&&n.setAttribute("stroke-dashoffset",`${i.fillLineDashOffset}`),n}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}opsToPath(t,r){return this.gen.opsToPath(t,r)}line(t,r,i,a,n){const s=this.gen.line(t,r,i,a,n);return this.draw(s)}rectangle(t,r,i,a,n){const s=this.gen.rectangle(t,r,i,a,n);return this.draw(s)}ellipse(t,r,i,a,n){const s=this.gen.ellipse(t,r,i,a,n);return this.draw(s)}circle(t,r,i,a){const n=this.gen.circle(t,r,i,a);return this.draw(n)}linearPath(t,r){const i=this.gen.linearPath(t,r);return this.draw(i)}polygon(t,r){const i=this.gen.polygon(t,r);return this.draw(i)}arc(t,r,i,a,n,s,o=!1,l){const c=this.gen.arc(t,r,i,a,n,s,o,l);return this.draw(c)}curve(t,r){const i=this.gen.curve(t,r);return this.draw(i)}path(t,r){const i=this.gen.path(t,r);return this.draw(i)}}var Y={canvas:(e,t)=>new m1(e,t),svg:(e,t)=>new y1(e,t),generator:e=>new wa(e),newSeed:()=>wa.newSeed()},it=p(async(e,t,r)=>{let i;const a=t.useHtmlLabels||Lt(dt()?.htmlLabels);r?i=r:i="node default";const n=e.insert("g").attr("class",i).attr("id",t.domId||t.id),s=n.insert("g").attr("class","label").attr("style",Ot(t.labelStyle));let o;t.label===void 0?o="":o=typeof t.label=="string"?t.label:t.label[0];const l=await ze(s,Jt(ar(o),dt()),{useHtmlLabels:a,width:t.width||dt().flowchart?.wrappingWidth,cssClasse
186s:"markdown-node-label",style:t.labelStyle,addSvgBackground:!!t.icon||!!t.img});let c=l.getBBox();const h=(t?.padding??0)/2;if(a){const u=l.children[0],d=ht(l),f=u.getElementsByTagName("img");if(f){const g=o.replace(/<img[^>]*>/g,"").trim()==="";await Promise.all([...f].map(m=>new Promise(y=>{function x(){if(m.style.display="flex",m.style.flexDirection="column",g){const b=dt().fontSize?dt().fontSize:window.getComputedStyle(document.body).fontSize,C=5,[_=sc.fontSize]=Da(b),w=_*C+"px";m.style.minWidth=w,m.style.maxWidth=w}else m.style.width="100%";y(m)}p(x,"setupImage"),setTimeout(()=>{m.complete&&x()}),m.addEventListener("error",x),m.addEventListener("load",x)})))}c=u.getBoundingClientRect(),d.attr("width",c.width),d.attr("height",c.height)}return a?s.attr("transform","translate("+-c.width/2+", "+-c.height/2+")"):s.attr("transform","translate(0, "+-c.height/2+")"),t.centerLabel&&s.attr("transform","translate("+-c.width/2+", "+-c.height/2+")"),s.insert("rect",":first-child"),{shapeSvg:n,bbox:c,halfPadding:h,label:s}},"labelHelper"),gn=p(async(e,t,r)=>{const i=r.useHtmlLabels||Lt(dt()?.flowchart?.htmlLabels),a=e.insert("g").attr("class","label").attr("style",r.labelStyle||""),n=await ze(a,Jt(ar(t),dt()),{useHtmlLabels:i,width:r.width||dt()?.flowchart?.wrappingWidth,style:r.labelStyle,addSvgBackground:!!r.icon||!!r.img});let s=n.getBBox();const o=r.padding/2;if(Lt(dt()?.flowchart?.htmlLabels)){const l=n.children[0],c=ht(n);s=l.getBoundingClientRect(),c.attr("width",s.width),c.attr("height",s.height)}return i?a.attr("transform","translate("+-s.width/2+", "+-s.height/2+")"):a.attr("transform","translate(0, "+-s.height/2+")"),r.centerLabel&&a.attr("transform","translate("+-s.width/2+", "+-s.height/2+")"),a.insert("rect",":first-child"),{shapeSvg:e,bbox:s,halfPadding:o,label:a}},"insertLabel"),G=p((e,t)=>{const r=t.node().getBBox();e.width=r.width,e.height=r.height},"updateNodeBounds"),rt=p((e,t)=>(e.look==="handDrawn"?"rough-node":"node")+" "+e.cssClasses+" "+(t||""),"getNodeClasses");function lt(e){const t=e.map((r,i)=>`${i===0?"M":"L"}${r.x},${r.y}`);return t.push("Z"),t.join(" ")}p(lt,"createPathFromPoints");function Ne(e,t,r,i,a,n){const s=[],l=r-e,c=i-t,h=l/n,u=2*Math.PI/h,d=t+c/2;for(let f=0;f<=50;f++){const g=f/50,m=e+g*l,y=d+a*Math.sin(u*(m-e));s.push({x:m,y})}return s}p(Ne,"generateFullSineWavePoints");function ci(e,t,r,i,a,n){const s=[],o=a*Math.PI/180,h=(n*Math.PI/180-o)/(i-1);for(let u=0;u<i;u++){const d=o+u*h,f=e+r*Math.cos(d),g=t+r*Math.sin(d);s.push({x:-f,y:-g})}return s}p(ci,"generateCirclePoints");var x1=p((e,t)=>{var r=e.x,i=e.y,a=t.x-r,n=t.y-i,s=e.width/2,o=e.height/2,l,c;return Math.abs(n)*s>Math.abs(a)*o?(n<0&&(o=-o),l=n===0?0:o*a/n,c=o):(a<0&&(s=-s),l=s,c=a===0?0:s*n/a),{x:r+l,y:i+c}},"intersectRect"),Ar=x1;function ad(e,t){t&&e.attr("style",t)}p(ad,"applyStyle");async function nd(e){const t=ht(document.createElementNS("http://www.w3.org/2000/svg","foreignObject")),r=t.append("xhtml:div"),i=dt();let a=e.label;e.label&&Cr(e.label)&&(a=await gs(e.label.replace(Lr.lineBreakRegex,`
187`),i));const s='<span class="'+(e.isNode?"nodeLabel":"edgeLabel")+'" '+(e.labelStyle?'style="'+e.labelStyle+'"':"")+">"+a+"</span>";return r.html(Jt(s,i)),ad(r,e.labelStyle),r.style("display","inline-block"),r.style("padding-right","1px"),r.style("white-space","nowrap"),r.attr("xmlns","http://www.w3.org/1999/xhtml"),t.node()}p(nd,"addHtmlLabel");var b1=p(async(e,t,r,i)=>{let a=e||"";if(typeof a=="object"&&(a=a[0]),Lt(dt().flowchart.htmlLabels)){a=a.replace(/\\n|\n/g,"<br />"),$.info("vertexText"+a);const n={isNode:i,label:ar(a).replace(/fa[blrs]?:fa-[\w-]+/g,o=>`<i class='${o.replace(":"," ")}'></i>`),labelStyle:t&&t.replace("fill:","color:")};return await nd(n)}else{const n=document.createElementNS("http://www.w3.org/2000/svg","text");n.setAttribute("style",t.replace("color:","fill:"));let s=[];typeof a=="string"?s=a.split(/\\n|\n|<br\s*\/?>/gi):Array.isArray(a)?s=a:s=[];for(const o of s){const l=document.createElementNS("http://www.w3.org/2000/svg","tspan");l.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),l.setAttribute("dy","1em"),l.setAttribute("x","0"),r?l.setAttribute("class","title-row"):l.setAttribute("class","row"),l.textContent=o.trim(),n.appendChild(l)}return n}},"createLabel"),Ke=b1,We=p((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"),sd=p(async(e,t)=>{$.info("Creating subgraph rect for ",t.id,t);
187const r=dt(),{themeVariables:i,handDrawnSeed:a}=r,{clusterBkg:n,clusterBorder:s}=i,{labelStyles:o,nodeStyles:l,borderStyles:c,backgroundStyles:h}=j(t),u=e.insert("g").attr("class","cluster "+t.cssClasses).attr("id",t.id).attr("data-look",t.look),d=Lt(r.flowchart.htmlLabels),f=u.insert("g").attr("class","cluster-label "),g=await ze(f,t.label,{style:t.labelStyle,useHtmlLabels:d,isNode:!0});let m=g.getBBox();if(Lt(r.flowchart.htmlLabels)){const S=g.children[0],D=ht(g);m=S.getBoundingClientRect(),D.attr("width",m.width),D.attr("height",m.height)}const y=t.width<=m.width+t.padding?m.width+t.padding:t.width;t.width<=m.width+t.padding?t.diff=(y-t.width)/2-t.padding:t.diff=-t.padding;const x=t.height,b=t.x-y/2,C=t.y-x/2;$.trace("Data ",t,JSON.stringify(t));let _;if(t.look==="handDrawn"){const S=Y.svg(u),D=U(t,{roughness:.7,fill:n,stroke:s,fillWeight:3,seed:a}),I=S.path(We(b,C,y,x,0),D);_=u.insert(()=>($.debug("Rough node insert CXC",I),I),":first-child"),_.select("path:nth-child(2)").attr("style",c.join(";")),_.select("path").attr("style",h.join(";").replace("fill","stroke"))}else _=u.insert("rect",":first-child"),_.attr("style",l).attr("rx",t.rx).attr("ry",t.ry).attr("x",b).attr("y",C).attr("width",y).attr("height",x);const{subGraphTitleTopMargin:w}=$s(r);if(f.attr("transform",`translate(${t.x-m.width/2}, ${t.y-t.height/2+w})`),o){const S=f.select("span");S&&S.attr("style",o)}const B=_.node().getBBox();return t.offsetX=0,t.width=B.width,t.height=B.height,t.offsetY=m.height-t.padding/2,t.intersect=function(S){return Ar(t,S)},{cluster:u,labelBBox:m}},"rect"),C1=p((e,t)=>{const r=e.insert("g").attr("class","note-cluster").attr("id",t.id),i=r.insert("rect",":first-child"),a=0*t.padding,n=a/2;i.attr("rx",t.rx).attr("ry",t.ry).attr("x",t.x-t.width/2-n).attr("y",t.y-t.height/2-n).attr("width",t.width+a).attr("height",t.height+a).attr("fill","none");const s=i.node().getBBox();return t.width=s.width,t.height=s.height,t.intersect=function(o){return Ar(t,o)},{cluster:r,labelBBox:{width:0,height:0}}},"noteGroup"),k1=p(async(e,t)=>{const r=dt(),{themeVariables:i,handDrawnSeed:a}=r,{altBackground:n,compositeBackground:s,compositeTitleBackground:o,nodeBorder:l}=i,c=e.insert("g").attr("class",t.cssClasses).attr("id",t.id).attr("data-id",t.id).attr("data-look",t.look),h=c.insert("g",":first-child"),u=c.insert("g").attr("class","cluster-label");let d=c.append("rect");const f=u.node().appendChild(await Ke(t.label,t.labelStyle,void 0,!0));let g=f.getBBox();if(Lt(r.flowchart.htmlLabels)){const I=f.children[0],R=ht(f);g=I.getBoundingClientRect(),R.attr("width",g.width),R.attr("height",g.height)}const m=0*t.padding,y=m/2,x=(t.width<=g.width+t.padding?g.width+t.padding:t.width)+m;t.width<=g.width+t.padding?t.diff=(x-t.width)/2-t.padding:t.diff=-t.padding;const b=t.height+m,C=t.height+m-g.height-6,_=t.x-x/2,w=t.y-b/2;t.width=x;const B=t.y-t.height/2-y+g.height+2;let S;if(t.look==="handDrawn"){const I=t.cssClasses.includes("statediagram-cluster-alt"),R=Y.svg(c),E=t.rx||t.ry?R.path(We(_,w,x,b,10),{roughness:.7,fill:o,fillStyle:"solid",stroke:l,seed:a}):R.rectangle(_,w,x,b,{seed:a});S=c.insert(()=>E,":first-child");const N=R.rectangle(_,B,x,C,{fill:I?n:s,fillStyle:I?"hachure":"solid",stroke:l,seed:a});S=c.insert(()=>E,":first-child"),d=c.insert(()=>N)}else S=h.insert("rect",":first-child"),S.attr("class","outer").attr("x",_).attr("y",w).attr("width",x).attr("height",b).attr("data-look",t.look),d.attr("class","inner").attr("x",_).attr("y",B).attr("width",x).attr("height",C);u.attr("transform",`translate(${t.x-g.width/2}, ${w+1-(Lt(r.flowchart.htmlLabels)?0:3)})`);const D=S.node().getBBox();return t.height=D.height,t.offsetX=0,t.offsetY=g.height-t.padding/2,t.labelBBox=g,t.intersect=function(I){return Ar(t,I)},{cluster:c,labelBBox:g}},"roundedWithTitle"),w1=p(async(e,t)=>{$.info("Creating subgraph rect for ",t.id,t);const r=dt(),{themeVariables:i,handDrawnSeed:a}=r,{clusterBkg:n,clusterBorder:s}=i,{labelStyles:o,nodeStyles:l,borderStyles:c,backgroundStyles:h}=j(t),u=e.insert("g").attr("class","cluster "+t.cssClasses).attr("id",t.id).attr("data-look",t.look),d=Lt(r.flowchart.htmlLabels),f=u.insert("g").attr("class","cluster-label "),g=await ze(f,t.label,{style:t.labelStyle,useHtmlLabels:d,isNode:!0,width:t.width});let m=g.getBBox();
187if(Lt(r.flowchart.htmlLabels)){const S=g.children[0],D=ht(g);m=S.getBoundingClientRect(),D.attr("width",m.width),D.attr("height",m.height)}const y=t.width<=m.width+t.padding?m.width+t.padding:t.width;t.width<=m.width+t.padding?t.diff=(y-t.width)/2-t.padding:t.diff=-t.padding;const x=t.height,b=t.x-y/2,C=t.y-x/2;$.trace("Data ",t,JSON.stringify(t));let _;if(t.look==="handDrawn"){const S=Y.svg(u),D=U(t,{roughness:.7,fill:n,stroke:s,fillWeight:4,seed:a}),I=S.path(We(b,C,y,x,t.rx),D);_=u.insert(()=>($.debug("Rough node insert CXC",I),I),":first-child"),_.select("path:nth-child(2)").attr("style",c.join(";")),_.select("path").attr("style",h.join(";").replace("fill","stroke"))}else _=u.insert("rect",":first-child"),_.attr("style",l).attr("rx",t.rx).attr("ry",t.ry).attr("x",b).attr("y",C).attr("width",y).attr("height",x);const{subGraphTitleTopMargin:w}=$s(r);if(f.attr("transform",`translate(${t.x-m.width/2}, ${t.y-t.height/2+w})`),o){const S=f.select("span");S&&S.attr("style",o)}const B=_.node().getBBox();return t.offsetX=0,t.width=B.width,t.height=B.height,t.offsetY=m.height-t.padding/2,t.intersect=function(S){return Ar(t,S)},{cluster:u,labelBBox:m}},"kanbanSection"),_1=p((e,t)=>{const r=dt(),{themeVariables:i,handDrawnSeed:a}=r,{nodeBorder:n}=i,s=e.insert("g").attr("class",t.cssClasses).attr("id",t.id).attr("data-look",t.look),o=s.insert("g",":first-child"),l=0*t.padding,c=t.width+l;t.diff=-t.padding;const h=t.height+l,u=t.x-c/2,d=t.y-h/2;t.width=c;let f;if(t.look==="handDrawn"){const y=Y.svg(s).rectangle(u,d,c,h,{fill:"lightgrey",roughness:.5,strokeLineDash:[5],stroke:n,seed:a});f=s.insert(()=>y,":first-child")}else f=o.insert("rect",":first-child"),f.attr("class","divider").attr("x",u).attr("y",d).attr("width",c).attr("height",h).attr("data-look",t.look);const g=f.node().getBBox();return t.height=g.height,t.offsetX=0,t.offsetY=0,t.intersect=function(m){return Ar(t,m)},{cluster:s,labelBBox:{}}}
187,"divider"),v1=sd,S1={rect:sd,squareRect:v1,roundedWithTitle:k1,noteGroup:C1,divider:_1,kanbanSection:w1},od=new Map,T1=p(async(e,t)=>{const r=t.shape||"rect",i=await S1[r](e,t);return od.set(t.id,i),i},"insertCluster"),D_=p(()=>{od=new Map},"clear");function ld(e,t){return e.intersect(t)}p(ld,"intersectNode");var L1=ld;function cd(e,t,r,i){var a=e.x,n=e.y,s=a-i.x,o=n-i.y,l=Math.sqrt(t*t*o*o+r*r*s*s),c=Math.abs(t*r*s/l);i.x<a&&(c=-c);var h=Math.abs(t*r*o/l);return i.y<n&&(h=-h),{x:a+c,y:n+h}}p(cd,"intersectEllipse");var hd=cd;function ud(e,t,r){return hd(e,t,t,r)}p(ud,"intersectCircle");var B1=ud;function dd(e,t,r,i){{const a=t.y-e.y,n=e.x-t.x,s=t.x*e.y-e.x*t.y,o=a*r.x+n*r.y+s,l=a*i.x+n*i.y+s,c=1e-6;if(o!==0&&l!==0&&es(o,l))return;const h=i.y-r.y,u=r.x-i.x,d=i.x*r.y-r.x*i.y,f=h*e.x+u*e.y+d,g=h*t.x+u*t.y+d;if(Math.abs(f)<c&&Math.abs(g)<c&&es(f,g))return;const m=a*u-h*n;if(m===0)return;const y=Math.abs(m/2);let x=n*d-u*s;const b=x<0?(x-y)/m:(x+y)/m;x=h*s-a*d;const C=x<0?(x-y)/m:(x+y)/m;return{x:b,y:C}}}p(dd,"intersectLine");function es(e,t){return e*t>0}p(es,"sameSign");var A1=dd;function fd(e,t,r){let i=e.x,a=e.y,n=[],s=Number.POSITIVE_INFINITY,o=Number.POSITIVE_INFINITY;typeof t.forEach=="function"?t.forEach(function(h){s=Math.min(s,h.x),o=Math.min(o,h.y)}):(s=Math.min(s,t.x),o=Math.min(o,t.y));let l=i-e.width/2-s,c=a-e.height/2-o;for(let h=0;h<t.length;h++){let u=t[h],d=t[h<t.length-1?h+1:0],f=A1(e,r,{x:l+u.x,y:c+u.y},{x:l+d.x,y:c+d.y});f&&n.push(f)}return n.length?(n.length>1&&n.sort(function(h,u){let d=h.x-r.x,f=h.y-r.y,g=Math.sqrt(d*d+f*f),m=u.x-r.x,y=u.y-r.y,x=Math.sqrt(m*m+y*y);return g<x?-1:g===x?0:1}),n[0]):e}p(fd,"intersectPolygon");var M1=fd,W={node:L1,circle:B1,ellipse:hd,polygon:M1,rect:Ar};function pd(e,t){const{labelStyles:r}=j(t);t.labelStyle=r;const i=rt(t);let a=i;i||(a="anchor");const n=e.insert("g").attr("class",a).attr("id",t.domId||t.id),s=1,{cssStyles:o}=t,l=Y.svg(n),c=U(t,{fill:"black",stroke:"none",fillStyle:"solid"});t.look!=="handDrawn"&&(c.roughness=0);const h=l.circle(0,0,s*2,c),u=n.insert(()=>h,":first-child");return u.attr("class","anchor").attr("style",Ot(o)),G(t,u),t.intersect=function(d){return $.info("Circle intersect",t,s,d),W.circle(t,s,d)},n}p(pd,"anchor");function rs(e,t,r,i,a,n,s){const l=(e+r)/2,c=(t+i)/2,h=Math.atan2(i-t,r-e),u=(r-e)/2,d=(i-t)/2,f=u/a,g=d/n,m=Math.sqrt(f**2+g**2);if(m>1)throw new Error("The given radii are too small to create an arc between the points.");const y=Math.sqrt(1-m**2),x=l+y*n*Math.sin(h)*(s?-1:1),b=c-y*a*Math.cos(h)*(s?-1:1),C=Math.atan2((t-b)/n,(e-x)/a);let w=Math.atan2((i-b)/n,(r-x)/a)-C;s&&w<0&&(w+=2*Math.PI),!s&&w>0&&(w-=2*Math.PI);const B=[];for(let S=0;S<20;S++){const D=S/19,I=C+D*w,R=x+a*Math.cos(I),E=b+n*Math.sin(I);B.push({x:R,y:E})}return B}p(rs,"generateArcPoints");async function gd(e,t){const{labelStyles:r,nodeStyles:i}=j(t);t.labelStyle=r;const{shapeSvg:a,bbox:n}=await it(e,t,rt(t)),s=n.width+t.padding+20,o=n.height+t.padding,l=o/2,c=l/(2.5+o/50),{cssStyles:h}=t,u=[{x:s/2,y:-o/2},{x:-s/2,y:-o/2},...rs(-s/2,-o/2,-s/2,o/2,c,l,!1),{x:s/2,y:o/2},...rs(s/2,o/2,s/2,-o/2,c,l,!0)],d=Y.svg(a),f=U(t,{});t.look!=="handDrawn"&&(f.roughness=0,f.fillStyle="solid");const g=lt(u),m=d.path(g,f),y=a.insert(()=>m,":first-child");return y.attr("class","basic label-container"),h&&t.look!=="handDrawn"&&y.selectAll("path").attr("style",h),i&&t.look!=="handDrawn"&&y.selectAll("path").attr("style",i),y.attr("transform",`translate(${c/2}, 0)`),G(t,y),t.intersect=function(x){return W.polygon(t,u,x)},a}p(gd,"bowTieRect");function qe(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+")")}p(qe,"insertPolygonShape");async function md(e,t){const{labelStyles:r,nodeStyles:i}=j(t);t.labelStyle=r;const{shapeSvg:a,bbox:n}=await it(e,t,rt(t)),s=n.height+t.padding,o=12,l=n.width+t.padding+o,c=0,h=l,u=-s,d=0,f=[{x:c+o,y:u},{x:h,y:u},{x:h,y:d},{x:c,y:d},{x:c,y:u+o},{x:c+o,y:u}];let g;const{cssStyles:m}=t;if(t.look==="handDrawn"){const y=Y.svg(a),x=U(t,{}),b=lt(f),C=y.path(b,x);g=a.insert(()=>C,":first-child").attr("transform",`translate(${-l/2}, ${s/2})`),m&&g.attr("style",m)}else g=qe(a,l,s,f);return i&&g.attr("style",i),G(t,g),t.intersect=function(y){return W.polygon(t,f,y)},a}p(md,"card");function yd(e,t){const{nodeStyles:r}=j(t);t.label="";const i=e.insert("g").attr("class",rt(t)).attr("id",t.domId??t.id),{cssStyles:a}=t,n=Math.max(28,t.width??0),s=[{x:0,y:n/2},{x:n/2,y:0},{x:0,y:-n/2},{x:-n/2,y:0}],o=Y.svg(i),l=U(t,{});t.look!=="handDrawn"&&(l.roughness=0,l.fillStyle="solid");const c=lt(s),h=o.path(c,l),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(d){return W.polygon(t,s,d)},i}p(yd,"choice");async function Qs(e,t,r){const{labelStyles:i,nodeStyles:a}=j(t);t.labelStyle=i;const{shapeSvg:n,bbox:s,halfPadding:o}=await it(e,t,rt(t)),l=r?.padding??o,c=s.width/2+l;let h;const{cssStyles:u}=t;if(t.look==="handDrawn"){const d=Y.svg(n),f=U(t,{}),g=d.circle(0,0,c*2,f);h=n.insert(()=>g,":first-child"),h.attr("class","basic label-container").attr("style",Ot(u))}else h=n.insert("circle",":first-child").attr("class","basic label-container").attr("style",a).attr("r",c).attr("cx",0).attr("cy",0);return G(t,h),t.calcIntersect=function(d,f){const g=d.width/2;return W.circle(d,g,f)},t.intersect=function(d){return $.info("Circle intersect",t,c,d),W.circle(t,c,d)},n}p(Qs,"circle");function xd(e){const t=Math.cos(Math.PI/4),r=Math.sin(Math.PI/4),i=e*2,a={x:i/2*t,y:i/2*r},n={x:-(i/2)*t,y:i/2*r},s={x:-(i/2)*t,y:-(i/2)*r},o={x:i/2*t,y:-(i/2)*r};return`M ${n.x},${n.y} L ${o.x},${o.y}
188                   M ${a.x},${a.y} L ${s.x},${s.y}`}p(xd,"createLine");function bd(e,t){const{labelStyles:r,nodeStyles:i}=j(t);t.labelStyle=r,t.label="";const a=e.insert("g").attr("class",rt(t)).attr("id",t.domId??t.id),n=Math.max(30,t?.width??0),{cssStyles:s}=t,o=Y.svg(a),l=U(t,{});t.look!=="handDrawn"&&(l.roughness=0,l.fillStyle="solid");const c=o.circle(0,0,n*2,l),h=xd(n),u=o.path(h,l),d=a.insert(()=>c,":first-child");return d.insert(()=>u),s&&t.look!=="handDrawn"&&d.selectAll("path").attr("style",s),i&&t.look!=="handDrawn"&&d.selectAll("path").attr("style",i),G(t,d),t.intersect=function(f){return $.info("crossedCircle intersect",t,{radius:n,point:f}),W.circle(t,n,f)},a}p(bd,"crossedCircle");function Te(e,t,r,i=100,a=0,n=180){const s=[],o=a*Math.PI/180,h=(n*Math.PI/180-o)/(i-1);for(let u=0;u<i;u++){const d=o+u*h,f=e+r*Math.cos(d),g=t+r*Math.sin(d);s.push({x:-f,y:-g})}return s}p(Te,"generateCirclePoints");async function Cd(e,t){const{labelStyles:r,nodeStyles:i}=j(t);t.labelStyle=r;const{shapeSvg:a,bbox:n,label:s}=await it(e,t,rt(t)),o=n.width+(t.padding??0),l=n.height+(t.padding??0),c=Math.max(5,l*.1),{cssStyles:h}=t,u=[...Te(o/2,-l/2,c,30,-90,0),{x:-o/2-c,y:c},...Te(o/2+c*2,-c,c,20,-180,-270),...Te(o/2+c*2,c,c,20,-90,-180),{x:-o/2-c,y:-l/2},...Te(o/2,l/2,c,20,0,90)],d=[{x:o/2,y:-l/2-c},{x:-o/2,y:-l/2-c}
vendor: 4,080 bytes, line 188
188,...Te(o/2,-l/2,c,20,-90,0),{x:-o/2-c,y:-c},...Te(o/2+o*.1,-c,c,20,-180,-270),...Te(o/2+o*.1,c,c,20,-90,-180),{x:-o/2-c,y:l/2},...Te(o/2,l/2,c,20,0,90),{x:-o/2,y:l/2+c},{x:o/2,y:l/2+c}],f=Y.svg(a),g=U(t,{fill:"none"});t.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");const y=lt(u).replace("Z",""),x=f.path(y,g),b=lt(d),C=f.path(b,{...g}),_=a.insert("g",":first-child");return _.insert(()=>C,":first-child").attr("stroke-opacity",0),_.insert(()=>x,":first-child"),_.attr("class","text"),h&&t.look!=="handDrawn"&&_.selectAll("path").attr("style",h),i&&t.look!=="handDrawn"&&_.selectAll("path").attr("style",i),_.attr("transform",`translate(${c}, 0)`),s.attr("transform",`translate(${-o/2+c-(n.x-(n.left??0))},${-l/2+(t.padding??0)/2-(n.y-(n.top??0))})`),G(t,_),t.intersect=function(w){return W.polygon(t,d,w)},a}p(Cd,"curlyBraceLeft");function Le(e,t,r,i=100,a=0,n=180){const s=[],o=a*Math.PI/180,h=(n*Math.PI/180-o)/(i-1);for(let u=0;u<i;u++){const d=o+u*h,f=e+r*Math.cos(d),g=t+r*Math.sin(d);s.push({x:f,y:g})}return s}p(Le,"generateCirclePoints");async function kd(e,t){const{labelStyles:r,nodeStyles:i}=j(t);t.labelStyle=r;const{shapeSvg:a,bbox:n,label:s}=await it(e,t,rt(t)),o=n.width+(t.padding??0),l=n.height+(t.padding??0),c=Math.max(5,l*.1),{cssStyles:h}=t,u=[...Le(o/2,-l/2,c,20,-90,0),{x:o/2+c,y:-c},...Le(o/2+c*2,-c,c,20,-180,-270),...Le(o/2+c*2,c,c,20,-90,-180),{x:o/2+c,y:l/2},...Le(o/2,l/2,c,20,0,90)],d=[{x:-o/2,y:-l/2-c},{x:o/2,y:-l/2-c},...Le(o/2,-l/2,c,20,-90,0),{x:o/2+c,y:-c},...Le(o/2+c*2,-c,c,20,-180,-270),...Le(o/2+c*2,c,c,20,-90,-180),{x:o/2+c,y:l/2},...Le(o/2,l/2,c,20,0,90),{x:o/2,y:l/2+c},{x:-o/2,y:l/2+c}],f=Y.svg(a),g=U(t,{fill:"none"});t.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");const y=lt(u).replace("Z",""),x=f.path(y,g),b=lt(d),C=f.path(b,{...g}),_=a.insert("g",":first-child");return _.insert(()=>C,":first-child").attr("stroke-opacity",0),_.insert(()=>x,":first-child"),_.attr("class","text"),h&&t.look!=="handDrawn"&&_.selectAll("path").attr("style",h),i&&t.look!=="handDrawn"&&_.selectAll("path").attr("style",i),_.attr("transform",`translate(${-c}, 0)`),s.attr("transform",`translate(${-o/2+(t.padding??0)/2-(n.x-(n.left??0))},${-l/2+(t.padding??0)/2-(n.y-(n.top??0))})`),G(t,_),t.intersect=function(w){return W.polygon(t,d,w)},a}p(kd,"curlyBraceRight");function At(e,t,r,i=100,a=0,n=180){const s=[],o=a*Math.PI/180,h=(n*Math.PI/180-o)/(i-1);for(let u=0;u<i;u++){const d=o+u*h,f=e+r*Math.cos(d),g=t+r*Math.sin(d);s.push({x:-f,y:-g})}return s}p(At,"generateCirclePoints");async function wd(e,t){const{labelStyles:r,nodeStyles:i}=j(t);t.labelStyle=r;const{shapeSvg:a,bbox:n,label:s}=await it(e,t,rt(t)),o=n.width+(t.padding??0),l=n.height+(t.padding??0),c=Math.max(5,l*.1),{cssStyles:h}=t,u=[...At(o/2,-l/2,c,30,-90,0),{x:-o/2-c,y:c},...At(o/2+c*2,-c,c,20,-180,-270),...At(o/2+c*2,c,c,20,-90,-180),{x:-o/2-c,y:-l/2},...At(o/2,l/2,c,20,0,90)],d=[...At(-o/2+c+c/2,-l/2,c,20,-90,-180),{x:o/2-c/2,y:c},...At(-o/2-c/2,-c,c,20,0,90),...At(-o/2-c/2,c,c,20,-90,0),{x:o/2-c/2,y:-c},...At(-o/2+c+c/2,l/2,c,30,-180,-270)],f=[{x:o/2,y:-l/2-c},{x:-o/2,y:-l/2-c},...At(o/2,-l/2,c,20,-90,0),{x:-o/2-c,y:-c},...At(o/2+c*2,-c,c,20,-180,-270),...At(o/2+c*2,c,c,20,-90,-180),{x:-o/2-c,y:l/2},...At(o/2,l/2,c,20,0,90),{x:-o/2,y:l/2+c},{x:o/2-c-c/2,y:l/2+c},...At(-o/2+c+c/2,-l/2,c,20,-90,-180),{x:o/2-c/2,y:c},...At(-o/2-c/2,-c,c,20,0,90),...At(-o/2-c/2,c,c,20,-90,0),{x:o/2-c/2,y:-c},...At(-o/2+c+c/2,l/2,c,30,-180,-270)],g=Y.svg(a),m=U(t,{fill:"none"});t.look!=="handDrawn"&&(m.roughness=0,m.fillStyle="solid");const x=lt(u).replace("Z",""),b=g.path(x,m),_=lt(d).replace("Z",""),w=g.path(_,m),B=lt(f),S=g.path(B,{...m}),D=a.insert("g",":first-child");return D.insert(()=>S,":first-child").attr("stroke-opacity",0),D.insert(()=>b,":first-child"),D.insert(()=>w,":first-child"),D.attr("class","text"),h&&t.look!=="handDrawn"&&D.selectAll("path").attr("style",h),i&&t.look!=="handDrawn"&&D.selectAll("path").attr("style",i),D.attr("transform",`translate(${c-c/4}, 0)`),s.attr("transform",`translate(${-o/2+(t.padding??0)/2-(n.x-(n.left??0))}
188,${-l/2+(t.padding??0)/2-(n.y-(n.top??0))})`),G(t,D),t.intersect=function(I){return W.polygon(t,f,I)},a}p(wd,"curlyBraces");async function _d(e,t){const{labelStyles:r,nodeStyles:i}=j(t);t.labelStyle=r;const{shapeSvg:a,bbox:n}=await it(e,t,rt(t)),s=80,o=20,l=Math.max(s,(n.width+(t.padding??0)*2)*1.25,t?.width??0),c=Math.max(o,n.height+(t.padding??0)*2,t?.height??0),h=c/2,{cssStyles:u}=t,d=Y.svg(a),f=U(t,{});t.look!=="handDrawn"&&(f.roughness=0,f.fillStyle="solid");const g=l,m=c,y=g-h,x=m/4,b=[{x:y,y:0},{x,y:0},{x:0,y:m/2},{x,y:m},{x:y,y:m},...ci(-y,-m/2,h,50,270,90)],C=lt(b),_=d.path(C,f),w=a.insert(()=>_,":first-child");return w.attr("class","basic label-container"),u&&t.look!=="handDrawn"&&w.selectChildren("path").attr("style",u),i&&t.look!=="handDrawn"&&w.selectChildren("path").attr("style",i),w.attr("transform",`translate(${-l/2}, ${-c/2})`),G(t,w),t.intersect=function(B){return W.polygon(t,b,B)},a}p(_d,"curvedTrapezoid");var E1=p((e,t,r,i,a,n)=>[`M${e},${t+n}`,`a${a},${n} 0,0,0 ${r},0`,`a${a},${n} 0,0,0 ${-r},0`,`l0,${i}`,`a${a},${n} 0,0,0 ${r},0`,`l0,${-i}`].join(" "),"createCylinderPathD"),F1=p((e,t,r,i,a,n)=>[`M${e},${t+n}`,`M${e+r},${t+n}`,`a${a},${n} 0,0,0 ${-r},0`,`l0,${i}`,`a${a},${n} 0,0,0 ${r},0`,`l0,${-i}`].join(" "),"createOuterCylinderPathD"),$1=p((e,t,r,i,a,n)=>[`M${e-r/2},${-i/2}`,`a${a},${n} 0,0,0 ${r},0`].join(" "),"createInnerCylinderPathD");async function vd(e,t){const{labelStyles:r,nodeStyles:i}=j(t);t.labelStyle=r;const{shapeSvg:a,bbox:n,label:s}=await it(e,t,rt(t)),o=Math.max(n.width+t.padding,t.width??0),l=o/2,c=l/(2.5+o/50),h=Math.max(n.height+c+t.padding,t.height??0);let u;const{cssStyles:d}=t;if(t.look==="handDrawn"){const f=Y.svg(a),g=F1(0,0,o,h,l,c),m=$1(0,c,o,h,l,c),y=f.path(g,U(t,{})),x=f.path(m,U(t,{fill:"none"}));u=a.insert(()=>x,":first-child"),u=a.insert(()=>y,":first-child"),u.attr("class","basic label-container"),d&&u.attr("style",d)}else{const f=E1(0,0,o,h,l,c);u=a.insert("path",":first-child").attr("d",f).attr("class","basic label-container").attr("style",Ot(d)).attr("style",i)}return u.attr("label-offset-y",c),u.attr("transform",`translate(${-o/2}, ${-(h/2+c)})`),G(t,u),s.attr("transform",`translate(${-(n.width/2)-(n.x-(n.left??0))}, ${-(n.height/2)+(t.padding??0)/1.5-(n.y-(n.top??0))})`),t.intersect=function(f){const g=W.rect(t,f),m=g.x-(t.x??0);if(l!=0&&(Math.abs(m)<(t.width??0)/2||Math.abs(m)==(t.width??0)/2&&Math.abs(g.y-(t.y??0))>(t.height??0)/2-c)){let y=c*c*(1-m*m/(l*l));y>0&&(y=Math.sqrt(y)),y=c-y,f.y-(t.y??0)>0&&(y=-y),g.y+=y}return g},a}p(vd,"cylinder");async function Sd(e,t){const{labelStyles:r,nodeStyles:i}=j(t);t.labelStyle=r;const{shapeSvg:a,bbox:n,label:s}=await it(e,t,rt(t)),o=n.width+t.padding,l=n.height+t.padding,c=l*.2,h=-o/2,u=-l/2-c/2,{cssStyles:d}=t,f=Y.svg(a),g=U(t,{});t.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");const m=[{x:h,y:u+c},{x:-h,y:u+c},{x:-h,y:-u},{x:h,y:-u},{x:h,y:u},{x:-h,y:u},{x:-h,y:u+c}],y=f.polygon(m.map(b=>[b.x,b.y]),g),x=a.insert(()=>y,":first-child");return x.attr("class","basic label-container"),d&&t.look!=="handDrawn"&&x.selectAll("path").attr("style",d),i&&t.look!=="handDrawn"&&x.selectAll("path").attr("style",i),s.attr("transform",`translate(${h+(t.padding??0)/2-(n.x-(n.left??0))}, ${u+c+(t.padding??0)/2-(n.y-(n.top??0))})`),G(t,x),t.intersect=function(b){return W.rect(t,b)},a}p(Sd,"dividedRectangle");async function Td(e,t){const{labelStyles:r,nodeStyles:i}=j(t);t.labelStyle=r;const{shapeSvg:a,bbox:n,halfPadding:s}=await it(e,t,rt(t)),l=n.width/2+s+5,c=n.width/2+s;let h;const{cssStyles:u}=t;if(t.look==="handDrawn"){const d=Y.svg(a),f=U(t,{roughness:.2,strokeWidth:2.5}),g=U(t,{roughness:.2,strokeWidth:1.5}),m=d.circle(0,0,l*2,f),y=d.circle(0,0,c*2,g);h=a.insert("g",":first-child"),h.attr("class",Ot(t.cssClasses)).attr("style",Ot(u)),h.node()?.appendChild(m),h.node()?.appendChild(y)}else{h=a.insert("g",":first-child");const d=h.insert("circle",":first-child"),f=h.insert("circle");h.attr("class","basic label-container").attr("style",i),d.attr("class","outer-circle").attr("style",i).attr("r",l).attr("cx",0).attr("cy",0),f.attr("class","inner-circle").attr("style",i).attr("r",c).attr("cx",0).attr("cy",0)}return G(t,h),t.intersect=function(d){return $.info("DoubleCircle intersect",t,l,d),W.circle(t,l,d)},a}p(Td,"doublecircle");function Ld(e,t,{config:{themeVariables:r}}){const{labelStyles:i,nodeStyles:a}=j(t);t.label="",t.labelStyle=i;const n=e.insert("g").attr("class",rt(t)).attr("id",t.domId??t.id),s=7,{cssStyles:o}=t,l=Y.svg(n),{nodeBorder:c}=r,h=U(t,{fillStyle:"solid"});t.look!=="handDrawn"&&(h.roughness=0);const u=l.circle(0,0,s*2,h),d=n.insert(()=>u,":first-child");return d.selectAll("path").attr("style",`fill: ${c} !important;`),o&&o.length>0&&t.look!=="handDrawn"&&d.selectAll("path").attr("style",o),a&&t.look!=="handDrawn"&&d.selectAll("path").attr("style",a),G(t,d),t.intersect=function(f){return $.info("filledCircle intersect",t,{radius:s,point:f}),W.circle(t,s,f)},n}p(Ld,"filledCircle");async function Bd(e,t){const{labelStyles:r,nodeStyles:i}=j(t);t.labelStyle=r;const{shapeSvg:a,bbox:n,label:s}=await it(e,t,rt(t)),o=n.width+(t.padding??0),l=o+n.height,c=o+n.height,h=[{x:0,y:-l},{x:c,y:-l},{x:c/2,y:0}],{cssStyles:u}=t,d=Y.svg(a),f=U(t,{});t.look!=="handDrawn"&&(f.roughness=0,f.fillStyle="solid");const g=lt(h),m=d.path(g,f),y=a.insert(()=>m,":first-child").attr("transform",`translate(${-l/2}, ${l/2})`);return u&&t.look!=="handDrawn"&&y.selectChildren("path").attr("style",u),i&&t.look!=="handDrawn"&&y.selectChildren("path").attr("style",i),t.width=o,t.height=l,G(t,y),s.attr("transform",`translate(${-n.width/2-(n.x-(n.left??0))}
188, ${-l/2+(t.padding??0)/2+(n.y-(n.top??0))})`),t.intersect=function(x){return $.info("Triangle intersect",t,h,x),W.polygon(t,h,x)},a}p(Bd,"flippedTriangle");function Ad(e,t,{dir:r,config:{state:i,themeVariables:a}}){const{nodeStyles:n}=j(t);t.label="";const s=e.insert("g").attr("class",rt(t)).attr("id",t.domId??t.id),{cssStyles:o}=t;let l=Math.max(70,t?.width??0),c=Math.max(10,t?.height??0);r==="LR"&&(l=Math.max(10,t?.width??0),c=Math.max(70,t?.height??0));const h=-1*l/2,u=-1*c/2,d=Y.svg(s),f=U(t,{stroke:a.lineColor,fill:a.lineColor});t.look!=="handDrawn"&&(f.roughness=0,f.fillStyle="solid");const g=d.rectangle(h,u,l,c,f),m=s.insert(()=>g,":first-child");o&&t.look!=="handDrawn"&&m.selectAll("path").attr("style",o),n&&t.look!=="handDrawn"&&m.selectAll("path").attr("style",n),G(t,m);const y=i?.padding??0;return t.width&&t.height&&(t.width+=y/2||0,t.height+=y/2||0),t.intersect=function(x){return W.rect(t,x)},s}p(Ad,"forkJoin");async function Md(e,t){const{labelStyles:r,nodeStyles:i}=j(t);t.labelStyle=r;const a=80,n=50,{shapeSvg:s,bbox:o}=await it(e,t,rt(t)),l=Math.max(a,o.width+(t.padding??0)*2,t?.width??0),c=Math.max(n,o.height+(t.padding??0)*2,t?.height??0),h=c/2,{cssStyles:u}=t,d=Y.svg(s),f=U(t,{});t.look!=="handDrawn"&&(f.roughness=0,f.fillStyle="solid");const g=[{x:-l/2,y:-c/2},{x:l/2-h,y:-c/2},...ci(-l/2+h,0,h,50,90,270),{x:l/2-h,y:c/2},{x:-l/2,y:c/2}],m=lt(g),y=d.path(m,f),x=s.insert(()=>y,":first-child");return x.attr("class","basic label-container"),u&&t.look!=="handDrawn"&&x.selectChildren("path").attr("style",u),i&&t.look!=="handDrawn"&&x.selectChildren("path").attr("style",i),G(t,x),t.intersect=function(b){return $.info("Pill intersect",t,{radius:h,point:b}),W.polygon(t,g,b)},s}p(Md,"halfRoundedRectangle");async function Ed(e,t){const{labelStyles:r,nodeStyles:i}=j(t);t.labelStyle=r;const{shapeSvg:a,bbox:n}=await it(e,t,rt(t)),s=n.height+(t.padding??0),o=n.width+(t.padding??0)*2.5,{cssStyles:l}=t,c=Y.svg(a),h=U(t,{});t.look!=="handDrawn"&&(h.roughness=0,h.fillStyle="solid");let u=o/2;const d=u/6;u=u+d;const f=s/2,g=f/2,m=u-g,y=[{x:-m,y:-f},{x:0,y:-f},{x:m,y:-f},{x:u,y:0},{x:m,y:f},{x:0,y:f},{x:-m,y:f},{x:-u,y:0}],x=lt(y),b=c.path(x,h),C=a.insert(()=>b,":first-child");return C.attr("class","basic label-container"),l&&t.look!=="handDrawn"&&C.selectChildren("path").attr("style",l),i&&t.look!=="handDrawn"&&C.selectChildren("path").attr("style",i),t.width=o,t.height=s,G(t,C),t.intersect=function(_){return W.polygon(t,y,_)},a}p(Ed,"hexagon");async function Fd(e,t){const{labelStyles:r,nodeStyles:i}=j(t);t.label="",t.labelStyle=r;const{shapeSvg:a}=await it(e,t,rt(t)),n=Math.max(30,t?.width??0),s=Math.max(30,t?.height??0),{cssStyles:o}=t,l=Y.svg(a),c=U(t,{});t.look!=="handDrawn"&&(c.roughness=0,c.fillStyle="solid");const h=[{x:0,y:0},{x:n,y:0},{x:0,y:s},{x:n,y:s}],u=lt(h),d=l.path(u,c),f=a.insert(()=>d,":first-child");return f.attr("class","basic label-container"),o&&t.look!=="handDrawn"&&f.selectChildren("path").attr("style",o),i&&t.look!=="handDrawn"&&f.selectChildren("path").attr("style",i),f.attr("transform",`translate(${-n/2}, ${-s/2})`),G(t,f),t.intersect=function(g){return $.info("Pill intersect",t,{points:h}),W.polygon(t,h,g)},a}p(Fd,"hourglass");async function $d(e,t,{config:{themeVariables:r,flowchart:i}}){const{labelStyles:a}=j(t);t.labelStyle=a;const n=t.assetHeight??48,s=t.assetWidth??48,o=Math.max(n,s),l=i?.wrappingWidth;t.width=Math.max(o,l??0);const{shapeSvg:c,bbox:h,label:u}=await it(e,t,"icon-shape default"),d=t.pos==="t",f=o,g=o,{nodeBorder:m}=r,{stylesMap:y}=Br(t),x=-g/2,b=-f/2,C=t.label?8:0,_=Y.svg(c),w=U(t,{stroke:"none",fill:"none"});t.look!=="handDrawn"&&(w.roughness=0,w.fillStyle="solid");const B=_.rectangle(x,b,g,f,w),S=Math.max(g,h.width),D=f+h.height+C,I=_.rectangle(-S/2,-D/2,S,D,{...w,fill:"transparent",stroke:"none"}),R=c.insert(()=>B,":first-child"),E=c.insert(()=>I);if(t.icon){const N=c.append("g");N.html(`<g>${await yi(t.icon,{height:o,width:o,fallbackPrefix:""})}</g>`);const O=N.node().getBBox(),L=O.width,A=O.height,T=O.x,F=O.y;N.attr("transform",`translate(${-L/2-T},${d?h.height/2+C/2-A/2-F:-h.height/2-C/2-A/2-F})`),N.attr("style",`color: ${y.get("stroke")??m};`)}return u.attr("transform",`translate(${-h.width/2-(h.x-(h.left??0))},${d?-D/2:D/2-h.height})`),R.attr("transform",`translate(0,${d?h.height/2+C/2:-h.height/2-C/2})`),G(t,E),t.intersect=function(N){if($.info("iconSquare intersect",t,N),!t.label)return W.rect(t,N);const O=t.x??0,L=t.y??0,A=t.height??0;let T=[];return d?T=[{x:O-h.width/2,y:L-A/2},{x:O+h.width/2,y:L-A/2},{x:O+h.width/2,y:L-A/2+h.height+C},{x:O+g/2,y:L-A/2+h.height+C},{x:O+g/2,y:L+A/2},{x:O-g/2,y:L+A/2},{x:O-g/2,y:L-A/2+h.height+C},{x:O-h.width/2,y:L-A/2+h.height+C}]:T=[{x:O-g/2,y:L-A/2},{x:O+g/2,y:L-A/2},{x:O+g/2,y:L-A/2+f},{x:O+h.width/2,y:L-A/2+f},{x:O+h.width/2/2,y:L+A/2},{x:O-h.width/2,y:L+A/2},{x:O-h.width/2,y:L-A/2+f},{x:O-g/2,y:L-A/2+f}],W.polygon(t,T,N)},c}p($d,"icon");async function Dd(e,t,{config:{themeVariables:r,flowchart:i}}){const{labelStyles:a}=j(t);t.labelStyle=a;const n=t.assetHeight??48,s=t.assetWidth??48,o=Math.max(n,s),l=i?.wrappingWidth;t.width=Math.max(o,l??0);const{shapeSvg:c,bbox:h,label:u}=await it(e,t,"icon-shape default"),d=20,f=t.label?8:0,g=t.pos==="t",{nodeBorder:m,mainBkg:y}=r,{stylesMap:x}=Br(t),b=Y.svg(c),C=U(t,{});t.look!=="handDrawn"&&(C.roughness=0,C.fillStyle="solid");const _=x.get("fill");C.stroke=_??y;const w=c.append("g");t.icon&&w.html(`<g>${await yi(t.icon,{height:o,width:o,fallbackPrefix:""})}</g>`);const B=w.node().getBBox(),S=B.width,D=B.height,I=B.x,R=B.y,E=Math.max(S,D)*Math.SQRT2+d*2,N=b.circle(0,0,E,C),O=Math.max(E,h.width),L=E+h.height+f,A=b.rectangle(-O/2,-L/2,O,L,{...C,fill:"transparent",stroke:"none"}),T=c.insert(()=>N,":first-child"),F=c.insert(()=>A);return w.attr("transform",`translate(${-S/2-I}
188,${g?h.height/2+f/2-D/2-R:-h.height/2-f/2-D/2-R})`),w.attr("style",`color: ${x.get("stroke")??m};`),u.attr("transform",`translate(${-h.width/2-(h.x-(h.left??0))},${g?-L/2:L/2-h.height})`),T.attr("transform",`translate(0,${g?h.height/2+f/2:-h.height/2-f/2})`),G(t,F),t.intersect=function(M){return $.info("iconSquare intersect",t,M),W.rect(t,M)},c}p(Dd,"iconCircle");async function Rd(e,t,{config:{themeVariables:r,flowchart:i}}){const{labelStyles:a}=j(t);t.labelStyle=a;const n=t.assetHeight??48,s=t.assetWidth??48,o=Math.max(n,s),l=i?.wrappingWidth;t.width=Math.max(o,l??0);const{shapeSvg:c,bbox:h,halfPadding:u,label:d}=await it(e,t,"icon-shape default"),f=t.pos==="t",g=o+u*2,m=o+u*2,{nodeBorder:y,mainBkg:x}=r,{stylesMap:b}=Br(t),C=-m/2,_=-g/2,w=t.label?8:0,B=Y.svg(c),S=U(t,{});t.look!=="handDrawn"&&(S.roughness=0,S.fillStyle="solid");const D=b.get("fill");S.stroke=D??x;const I=B.path(We(C,_,m,g,5),S),R=Math.max(m,h.width),E=g+h.height+w,N=B.rectangle(-R/2,-E/2,R,E,{...S,fill:"transparent",stroke:"none"}),O=c.insert(()=>I,":first-child").attr("class","icon-shape2"),L=c.insert(()=>N);if(t.icon){const A=c.append("g");A.html(`<g>${await yi(t.icon,{height:o,width:o,fallbackPrefix:""})}</g>`);const T=A.node().getBBox(),F=T.width,M=T.height,q=T.x,V=T.y;A.attr("transform",`translate(${-F/2-q},${f?h.height/2+w/2-M/2-V:-h.height/2-w/2-M/2-V})`),A.attr("style",`color: ${b.get("stroke")??y};`)}return d.attr("transform",`translate(${-h.width/2-(h.x-(h.left??0))},${f?-E/2:E/2-h.height})`),O.attr("transform",`translate(0,${f?h.height/2+w/2:-h.height/2-w/2})`),G(t,L),t.intersect=function(A){if($.info("iconSquare intersect",t,A),!t.label)return W.rect(t,A);const T=t.x??0,F=t.y??0,M=t.height??0;let q=[];return f?q=[{x:T-h.width/2,y:F-M/2},{x:T+h.width/2,y:F-M/2},{x:T+h.width/2,y:F-M/2+h.height+w},{x:T+m/2,y:F-M/2+h.height+w},{x:T+m/2,y:F+M/2},{x:T-m/2,y:F+M/2},{x:T-m/2,y:F-M/2+h.height+w},{x:T-h.width/2,y:F-M/2+h.height+w}]:q=[{x:T-m/2,y:F-M/2},{x:T+m/2,y:F-M/2},{x:T+m/2,y:F-M/2+g},{x:T+h.width/2,y:F-M/2+g},{x:T+h.width/2/2,y:F+M/2},{x:T-h.width/2,y:F+M/2},{x:T-h.width/2,y:F-M/2+g},{x:T-m/2,y:F-M/2+g}],W.polygon(t,q,A)},c}p(Rd,"iconRounded");async function Od(e,t,{config:{themeVariables:r,flowchart:i}}){const{labelStyles:a}=j(t);t.labelStyle=a;const n=t.assetHeight??48,s=t.assetWidth??48,o=Math.max(n,s),l=i?.wrappingWidth;t.width=Math.max(o,l??0);const{shapeSvg:c,bbox:h,halfPadding:u,label:d}=await it(e,t,"icon-shape default"),f=t.pos==="t",g=o+u*2,m=o+u*2,{nodeBorder:y,mainBkg:x}=r,{stylesMap:b}=Br(t),C=-m/2,_=-g/2,w=t.label?8:0,B=Y.svg(c),S=U(t,{});t.look!=="handDrawn"&&(S.roughness=0,S.fillStyle="solid");const D=b.get("fill");S.stroke=D??x;const I=B.path(We(C,_,m,g,.1),S),R=Math.max(m,h.width),E=g+h.height+w,N=B.rectangle(-R/2,-E/2,R,E,{...S,fill:"transparent",stroke:"none"}),O=c.insert(()=>I,":first-child"),L=c.insert(()=>N);if(t.icon){const A=c.append("g");A.html(`<g>${await yi(t.icon,{height:o,width:o,fallbackPrefix:""})}</g>`);const T=A.node().getBBox(),F=T.width,M=T.height,q=T.x,V=T.y;A.attr("transform",`translate(${-F/2-q},${f?h.height/2+w/2-M/2-V:-h.height/2-w/2-M/2-V})`),A.attr("style",`color: ${b.get("stroke")??y};`)}return d.attr("transform",`translate(${-h.width/2-(h.x-(h.left??0))},${f?-E/2:E/2-h.height})`),O.attr("transform",`translate(0,${f?h.height/2+w/2:-h.height/2-w/2})`),G(t,L),t.intersect=function(A){if($.info("iconSquare intersect",t,A),!t.label)return W.rect(t,A);const T=t.x??0,F=t.y??0,M=t.height??0;let q=[];return f?q=[{x:T-h.width/2,y:F-M/2},{x:T+h.width/2,y:F-M/2},{x:T+h.width/2,y:F-M/2+h.height+w},{x:T+m/2,y:F-M/2+h.height+w},{x:T+m/2,y:F+M/2},{x:T-m/2,y:F+M/2},{x:T-m/2,y:F-M/2+h.height+w},{x:T-h.width/2,y:F-M/2+h.height+w}]:q=[{x:T-m/2,y:F-M/2},{x:T+m/2,y:F-M/2},{x:T+m/2,y:F-M/2+g},{x:T+h.width/2,y:F-M/2+g},{x:T+h.width/2/2,y:F+M/2},{x:T-h.width/2,y:F+M/2},{x:T-h.width/2,y:F-M/2+g},{x:T-m/2,y:F-M/2+g}],W.polygon(t,q,A)},c}p(Od,"iconSquare");async function Id(e,t,{config:{flowchart:r}}){const i=new Image;i.src=t?.img??"",await i.decode();const a=Number(i.naturalWidth.toString().replace("px","")),n=Number(i.naturalHeight.toString().replace("px",""));t.imageAspectRatio=a/n;const{labelStyles:s}=j(t);t.labelStyle=s;const o=r?.wrappingWidth;t.defaultWidth=r?.wrappingWidth;const l=Math.max(t.label?o??0:0,t?.assetWidth??a),c=t.constraint==="on"&&t?.assetHeight?t.assetHeight*t.
188imageAspectRatio:l,h=t.constraint==="on"?c/t.imageAspectRatio:t?.assetHeight??n;t.width=Math.max(c,o??0);const{shapeSvg:u,bbox:d,label:f}=await it(e,t,"image-shape default"),g=t.pos==="t",m=-c/2,y=-h/2,x=t.label?8:0,b=Y.svg(u),C=U(t,{});t.look!=="handDrawn"&&(C.roughness=0,C.fillStyle="solid");const _=b.rectangle(m,y,c,h,C),w=Math.max(c,d.width),B=h+d.height+x,S=b.rectangle(-w/2,-B/2,w,B,{...C,fill:"none",stroke:"none"}),D=u.insert(()=>_,":first-child"),I=u.insert(()=>S);if(t.img){const R=u.append("image");R.attr("href",t.img),R.attr("width",c),R.attr("height",h),R.attr("preserveAspectRatio","none"),R.attr("transform",`translate(${-c/2},${g?B/2-h:-B/2})`)}return f.attr("transform",`translate(${-d.width/2-(d.x-(d.left??0))},${g?-h/2-d.height/2-x/2:h/2-d.height/2+x/2})`),D.attr("transform",`translate(0,${g?d.height/2+x/2:-d.height/2-x/2})`),G(t,I),t.intersect=function(R){if($.info("iconSquare intersect",t,R),!t.label)return W.rect(t,R);const E=t.x??0,N=t.y??0,O=t.height??0;let L=[];return g?L=[{x:E-d.width/2,y:N-O/2},{x:E+d.width/2,y:N-O/2},{x:E+d.width/2,y:N-O/2+d.height+x},{x:E+c/2,y:N-O/2+d.height+x},{x:E+c/2,y:N+O/2},{x:E-c/2,y:N+O/2},{x:E-c/2,y:N-O/2+d.height+x},{x:E-d.width/2,y:N-O/2+d.height+x}]:L=[{x:E-c/2,y:N-O/2},{x:E+c/2,y:N-O/2},{x:E+c/2,y:N-O/2+h},{x:E+d.width/2,y:N-O/2+h},{x:E+d.width/2/2,y:N+O/2},{x:E-d.width/2,y:N+O/2},{x:E-d.width/2,y:N-O/2+h},{x:E-c/2,y:N-O/2+h}],W.polygon(t,L,R)},u}p(Id,"imageSquare");async function Pd(e,t){const{labelStyles:r,nodeStyles:i}=j(t);t.labelStyle=r;const{shapeSvg:a,bbox:n}=await it(e,t,rt(t)),s=Math.max(n.width+(t.padding??0)*2,t?.width??0),o=Math.max(n.height+(t.padding??0)*2,t?.height??0),l=[{x:0,y:0},{x:s,y:0},{x:s+3*o/6,y:-o},{x:-3*o/6,y:-o}];let c;const{cssStyles:h}=t;if(t.look==="handDrawn"){const u=Y.svg(a),d=U(t,{}),f=lt(l),g=u.path(f,d);c=a.insert(()=>g,":first-child").attr("transform",`translate(${-s/2}, ${o/2})`),h&&c.attr("style",h)}else c=qe(a,s,o,l);return i&&c.attr("style",i),t.width=s,t.height=o,G(t,c),t.intersect=function(u){return W.polygon(t,l,u)},a}p(Pd,"inv_trapezoid");async function za(e,t,r){const{labelStyles:i,nodeStyles:a}=j(t);t.labelStyle=i;const{shapeSvg:n,bbox:s}=await it(e,t,rt(t)),o=Math.max(s.width+r.labelPaddingX*2,t?.width||0),l=Math.max(s.height+r.labelPaddingY*2,t?.height||0),c=-o/2,h=-l/2;let u,{rx:d,ry:f}=t;const{cssStyles:g}=t;if(r?.rx&&r.ry&&(d=r.rx,f=r.ry),t.look==="handDrawn"){const m=Y.svg(n),y=U(t,{}),x=d||f?m.path(We(c,h,o,l,d||0),y):m.rectangle(c,h,o,l,y);u=n.insert(()=>x,":first-child"),u.attr("class","basic label-container").attr("style",Ot(g))}else u=n.insert("rect",":first-child"),u.attr("class","basic label-container").attr("style",a).attr("rx",Ot(d)).attr("ry",Ot(f)).attr("x",c).attr("y",h).attr("width",o).attr("height",l);return G(t,u),t.calcIntersect=function(m,y){return W.rect(m,y)},t.intersect=function(m){return W.rect(t,m)},n}p(za,"drawRect");async function Nd(e,t){const{shapeSvg:r,bbox:i,label:a}=await it(e,t,"label"),n=r.insert("rect",":first-child");return n.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))})`),G(t,n),t.intersect=function(l){return W.rect(t,l)},r}p(Nd,"labelRect");async function zd(e,t){const{labelStyles:r,nodeStyles:i}=j(t);t.labelStyle=r;const{shapeSvg:a,bbox:n}=await it(e,t,rt(t)),s=Math.max(n.width+(t.padding??0),t?.width??0),o=Math.max(n.height+(t.padding??0),t?.height??0),l=[{x:0,y:0},{x:s+3*o/6,y:0},{x:s,y:-o},{x:-(3*o)/6,y:-o}];let c;const{cssStyles:h}=t;if(t.look==="handDrawn"){const u=Y.svg(a),d=U(t,{}),f=lt(l),g=u.path(f,d);c=a.insert(()=>g,":first-child").attr("transform",`translate(${-s/2}, ${o/2})`),h&&c.attr("style",h)}else c=qe(a,s,o,l);return i&&c.attr("style",i),t.width=s,t.height=o,G(t,c),t.intersect=function(u){return W.polygon(t,l,u)},a}p(zd,"lean_left");async function Wd(e,t){const{labelStyles:r,nodeStyles:i}=j(t);t.labelStyle=r;const{shapeSvg:a,bbox:n}=await it(e,t,rt(t)),s=Math.max(n.width+(t.padding??0),t?.width??0),o=Math.max(n.height+(t.padding??0),t?.height??0),l=[{x:-3*o/6,y:0},{x:s,y:0},{x:s+3*o/6,y:-o},{x:0,y:-o}];let c;const{cssStyles:h}=t;if(t.look==="handDrawn"){const u=Y.svg(a),d=U(t,{}),f=lt(l),g=u.path(f,d);c=a.insert(()=>g,":first-child").attr("transform",`translate(${-s/2}, ${o/2})`),h&&c.attr("style",h)}else c=qe(a,s,o,l);return i&&c.attr("style",i),t.width=s,t.height=o,G(t,c),t.intersect=function(u){return W.polygon(t,l,u)},a}p(Wd,"lean_right");function qd(e,t){const{labelStyles:r,nodeStyles:i}=j(t);t.label="",t.labelStyle=r;const a=e.insert("g").attr("class",rt(t)).attr("id",t.domId??t.id),{cssStyles:n}=t,s=Math.max(35,t?.width??0),o=Math.max(35,t?.height??0),l=7,c=[{x:s,y:0},{x:0,y:o+l/2},{x:s-2*l,y:o+l/2},{x:0,y:2*o},{x:s,y:o-l/2},{x:2*l,y:o-l/2}],h=Y.svg(a),u=U(t,{});t.look!=="handDrawn"&&(u.roughness=0,u.fillStyle="solid");const d=lt(c),f=h.path(d,u),g=a.insert(()=>f,":first-child");return n&&t.look!=="handDrawn"&&g.selectAll("path").attr("style",n),i&&t.look!=="handDrawn"&&g.selectAll("path").attr("style",i),g.attr("transform",`translate(-${s/2},${-o})`),G(t,g),t.intersect=function(m){return $.info("lightningBolt intersect",t,m),W.polygon(t,c,m)},a}p(qd,"lightningBolt");var D1=p((e,t,r,i,a,n,s)=>[`M${e},${t+n}`,`a${a}
188,${n} 0,0,0 ${r},0`,`a${a},${n} 0,0,0 ${-r},0`,`l0,${i}`,`a${a},${n} 0,0,0 ${r},0`,`l0,${-i}`,`M${e},${t+n+s}`,`a${a},${n} 0,0,0 ${r},0`].join(" "),"createCylinderPathD"),R1=p((e,t,r,i,a,n,s)=>[`M${e},${t+n}`,`M${e+r},${t+n}`,`a${a},${n} 0,0,0 ${-r},0`,`l0,${i}`,`a${a},${n} 0,0,0 ${r},0`,`l0,${-i}`,`M${e},${t+n+s}`,`a${a},${n} 0,0,0 ${r},0`].join(" "),"createOuterCylinderPathD"),O1=p((e,t,r,i,a,n)=>[`M${e-r/2},${-i/2}`,`a${a},${n} 0,0,0 ${r},0`].join(" "),"createInnerCylinderPathD");async function Hd(e,t){const{labelStyles:r,nodeStyles:i}=j(t);t.labelStyle=r;const{shapeSvg:a,bbox:n,label:s}=await it(e,t,rt(t)),o=Math.max(n.width+(t.padding??0),t.width??0),l=o/2,c=l/(2.5+o/50),h=Math.max(n.height+c+(t.padding??0),t.height??0),u=h*.1;let d;const{cssStyles:f}=t;if(t.look==="handDrawn"){const g=Y.svg(a),m=R1(0,0,o,h,l,c,u),y=O1(0,c,o,h,l,c),x=U(t,{}),b=g.path(m,x),C=g.path(y,x);a.insert(()=>C,":first-child").attr("class","line"),d=a.insert(()=>b,":first-child"),d.attr("class","basic label-container"),f&&d.attr("style",f)}else{const g=D1(0,0,o,h,l,c,u);d=a.insert("path",":first-child").attr("d",g).attr("class","basic label-container").attr("style",Ot(f)).attr("style",i)}return d.attr("label-offset-y",c),d.attr("transform",`translate(${-o/2}, ${-(h/2+c)})`),G(t,d),s.attr("transform",`translate(${-(n.width/2)-(n.x-(n.left??0))}, ${-(n.height/2)+c-(n.y-(n.top??0))})`),t.intersect=function(g){const m=W.rect(t,g),y=m.x-(t.x??0);if(l!=0&&(Math.abs(y)<(t.width??0)/2||Math.abs(y)==(t.width??0)/2&&Math.abs(m.y-(t.y??0))>(t.height??0)/2-c)){let x=c*c*(1-y*y/(l*l));x>0&&(x=Math.sqrt(x)),x=c-x,g.y-(t.y??0)>0&&(x=-x),m.y+=x}return m},a}p(Hd,"linedCylinder");async function Yd(e,t){const{labelStyles:r,nodeStyles:i}=j(t);t.labelStyle=r;const{shapeSvg:a,bbox:n,label:s}=await it(e,t,rt(t)),o=Math.max(n.width+(t.padding??0)*2,t?.width??0),l=Math.max(n.height+(t.padding??0)*2,t?.height??0),c=l/4,h=l+c,{cssStyles:u}=t,d=Y.svg(a),f=U(t,{});t.look!=="handDrawn"&&(f.roughness=0,f.fillStyle="solid");const g=[{x:-o/2-o/2*.1,y:-h/2},{x:-o/2-o/2*.1,y:h/2},...Ne(-o/2-o/2*.1,h/2,o/2+o/2*.1,h/2,c,.8),{x:o/2+o/2*.1,y:-h/2},{x:-o/2-o/2*.1,y:-h/2},{x:-o/2,y:-h/2},{x:-o/2,y:h/2*1.1},{x:-o/2,y:-h/2}],m=d.polygon(g.map(x=>[x.x,x.y]),f),y=a.insert(()=>m,":first-child");return y.attr("class","basic label-container"),u&&t.look!=="handDrawn"&&y.selectAll("path").attr("style",u),i&&t.look!=="handDrawn"&&y.selectAll("path").attr("style",i),y.attr("transform",`translate(0,${-c/2})`),s.attr("transform",`translate(${-o/2+(t.padding??0)+o/2*.1/2-(n.x-(n.left??0))},${-l/2+(t.padding??0)-c/2-(n.y-(n.top??0))})`),G(t,y),t.intersect=function(x){return W.polygon(t,g,x)},a}p(Yd,"linedWaveEdgedRect");async function Ud(e,t){const{labelStyles:r,nodeStyles:i}=j(t);t.labelStyle=r;const{shapeSvg:a,bbox:n,label:s}=await it(e,t,rt(t)),o=Math.max(n.width+(t.padding??0)*2,t?.width??0),l=Math.max(n.height+(t.padding??0)*2,t?.height??0),c=5,h=-o/2,u=-l/2,{cssStyles:d}=t,f=Y.svg(a),g=U(t,{}),m=[{x:h-c,y:u+c},{x:h-c,y:u+l+c},{x:h+o-c,y:u+l+c},{x:h+o-c,y:u+l},{x:h+o,y:u+l},{x:h+o,y:u+l-c},{x:h+o+c,y:u+l-c},{x:h+o+c,y:u-c},{x:h+c,y:u-c},{x:h+c,y:u},{x:h,y:u},{x:h,y:u+c}],y=[{x:h,y:u+c},{x:h+o-c,y:u+c},{x:h+o-c,y:u+l},{x:h+o,y:u+l},{x:h+o,y:u},{x:h,y:u}];t.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");const x=lt(m),b=f.path(x,g),C=lt(y),_=f.path(C,{...g,fill:"none"}),w=a.insert(()=>_,":first-child");return w.insert(()=>b,":first-child"),w.attr("class","basic label-container"),d&&t.look!=="handDrawn"&&w.selectAll("path").attr("style",d),i&&t.look!=="handDrawn"&&w.selectAll("path").attr("style",i),s.attr("transform",`translate(${-(n.width/2)-c-(n.x-(n.left??0))}, ${-(n.height/2)+c-(n.y-(n.top??0))})`),G(t,w),t.intersect=function(B){return W.polygon(t,m,B)},a}p(Ud,"multiRect");async function jd(e,t){const{labelStyles:r,nodeStyles:i}=j(t);t.labelStyle=r;const{shapeSvg:a,bbox:n,label:s}=await it(e,t,rt(t)),o=Math.max(n.width+(t.padding??0)*2,t?.width??0),l=Math.max(n.height+(t.padding??0)*2,t?.height??0),c=l/4,h=l+c,u=-o/2,d=-h/2,f=5,{cssStyles:g}=t,m=Ne(u-f,d+h+f,u+o-f,d+h+f,c,.8),y=m?.[m.length-1],x=[{x:u-f,y:d+f},{x:u-f,y:d+h+f},...m,{x:u+o-f,y:y.y-f},{x:u+o,y:y.y-f},{x:u+o,y:y.y-2*f},{x:u+o+f,y:y.y-2*f},{x:u+o+f,y:d-f},{x:u+f,y:d-f},{x:u+f,y:d},{x:u,y:d},{x:u,y:d+f}],b=[{x:u,y:d+f},{x:u+o-f,y:d+f},{x:u+o-f,y:y.y-f},{x:u+o,y:y.y-f},{x:u+o,y:d},{x:u,y:d}],C=Y.svg(a),_=U(t,{});t.look!=="handDrawn"&&(_.roughness=0,_.fillStyle="solid");const w=lt(x),B=C.path(w,_),S=lt(b),D=C.path(S,_),I=a.insert(()=>B,":first-child");return I.insert(()=>D),I.attr("class","basic label-container"),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(${-(n.width/2)-f-(n.x-(n.left??0))}, ${-(n.height/2)+f-c/2-(n.y-(n.top??0))})`),G(t,I),t.intersect=function(R){return W.polygon(t,x,R)},a}p(jd,"multiWaveEdgedRectangle");async function Gd(e,t,{config:{themeVariables:r}}){const{labelStyles:i,nodeStyles:a}=j(t);t.labelStyle=i,t.useHtmlLabels||Dt().flowchart?.htmlLabels!==!1||(t.centerLabel=!0);const{shapeSvg:s,bbox:o,label:l}=await it(e,t,rt(t)),c=Math.max(o.width+(t.padding??0)*2,t?.width??0),h=Math.max(o.height+(t.padding??0)*2,t?.height??0),u=-c/2,d=-h/2,{cssStyles:f}=t,g=Y.svg(s),m=U(t,{fill:r.noteBkgColor,stroke:r.noteBorderColor});t.look!=="handDrawn"&&(m.roughness=0,m.fillStyle="solid");const y=g.rectangle(u,d,c,h,m),x=s.insert(()=>y,":first-child");return x.attr("class","basic label-container"),f&&t.look!=="handDrawn"&&x.selectAll("path").attr("style",f),a&&t.look!=="handDrawn"&&x.selectAll("path").attr("style",a),l.attr("transform",`translate(${-o.width/2-(o.x-(o.left??0))}, ${-(o.height/2)-(o.y-(o.top??0))})`),G(t,x),t.intersect=function(b){return W.rect(t,b)},s}p(Gd,"note");var I1=p((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 Vd(e,t){const{labelStyles:r,nodeStyles:i}=j(t);t.labelStyle=r;const{shapeSvg:a,bbox:n}=await it(e,t,rt(t)),s=n.width+t.padding,o=n.height+t.padding,l=s+o,c=.5,h=[{x:l/2,y:0},{x:l,y:-l/2},{x:l/2,y:-l},{x:0,y:-l/2}];let u;const{cssStyles:d}=t;if(t.look==="handDrawn"){const f=Y.svg(a),g=U(t,{}),m=I1(0,0,l),y=f.path(m,g);u=a.insert(()=>y,":first-child").attr("transform",`translate(${-l/2+c}, ${l/2})`),d&&u.attr("style",d)}else u=qe(a,l,l,h),u.attr("transform",`translate(${-l/2+c}, ${l/2})`);return i&&u.attr("style",i),G(t,u),t.calcIntersect=function(f,g){const m=f.width,y=[{x:m/2,y:0},{x:m,y:-m/2},{x:m/2,y:-m},{x:0,y:-m/2}],x=W.polygon(f,y,g);return{x:x.x-.5,y:x.y-.5}},t.intersect=function(f){return this.calcIntersect(t,f)},a}p(Vd,"question");async function Xd(e,t){const{labelStyles:r,nodeStyles:i}=j(t);t.labelStyle=r;const{shapeSvg:a,bbox:n,label:s}=await it(e,t,rt(t)),o=Math.max(n.width+(t.padding??0),t?.width??0),l=Math.max(n.height+(t.padding??0),t?.height??0),c=-o/2,h=-l/2,u=h/2,d=[{x:c+u,y:h},{x:c,y:0},{x:c+u,y:-h},{x:-c,y:-h},{x:-c,y:h}],{cssStyles:f}=t,g=Y.svg(a),m=U(t,{});t.look!=="handDrawn"&&(m.roughness=0,m.fillStyle="solid");const y=lt(d),x=g.path(y,m),b=a.insert(()=>x,":first-child");return b.attr("class","basic label-container"),f&&t.look!=="handDrawn"&&b.selectAll("path").attr("style",f),i&&t.look!=="handDrawn"&&b.selectAll("path").attr("style",i),b.attr("transform",`translate(${-u/2},0)`),s.attr("transform",`translate(${-u/2-n.width/2-(n.x-(n.left??0))}, ${-(n.height/2)-(n.y-(n.top??0))})`),G(t,b),t.intersect=function(C){return W.polygon(t,d,C)},a}p(Xd,"rect_left_inv_arrow");async function Zd(e,t){const{labelStyles:r,nodeStyles:i}=j(t);t.labelStyle=r;let a;
188t.cssClasses?a="node "+t.cssClasses:a="node default";const n=e.insert("g").attr("class",a).attr("id",t.domId||t.id),s=n.insert("g"),o=n.insert("g").attr("class","label").attr("style",i),l=t.description,c=t.label,h=o.node().appendChild(await Ke(c,t.labelStyle,!0,!0));let u={width:0,height:0};if(Lt(dt()?.flowchart?.htmlLabels)){const D=h.children[0],I=ht(h);u=D.getBoundingClientRect(),I.attr("width",u.width),I.attr("height",u.height)}$.info("Text 2",l);const d=l||[],f=h.getBBox(),g=o.node().appendChild(await Ke(d.join?d.join("<br/>"):d,t.labelStyle,!0,!0)),m=g.children[0],y=ht(g);u=m.getBoundingClientRect(),y.attr("width",u.width),y.attr("height",u.height);const x=(t.padding||0)/2;ht(g).attr("transform","translate( "+(u.width>f.width?0:(f.width-u.width)/2)+", "+(f.height+x+5)+")"),ht(h).attr("transform","translate( "+(u.width<f.width?0:-(f.width-u.width)/2)+", 0)"),u=o.node().getBBox(),o.attr("transform","translate("+-u.width/2+", "+(-u.height/2-x+3)+")");const b=u.width+(t.padding||0),C=u.height+(t.padding||0),_=-u.width/2-x,w=-u.height/2-x;let B,S;if(t.look==="handDrawn"){const D=Y.svg(n),I=U(t,{}),R=D.path(We(_,w,b,C,t.rx||0),I),E=D.line(-u.width/2-x,-u.height/2-x+f.height+x,u.width/2+x,-u.height/2-x+f.height+x,I);S=n.insert(()=>($.debug("Rough node insert CXC",R),E),":first-child"),B=n.insert(()=>($.debug("Rough node insert CXC",R),R),":first-child")}else B=s.insert("rect",":first-child"),S=s.insert("line"),B.attr("class","outer title-state").attr("style",i).attr("x",-u.width/2-x).attr("y",-u.height/2-x).attr("width",u.width+(t.padding||0)).attr("height",u.height+(t.padding||0)),S.attr("class","divider").attr("x1",-u.width/2-x).attr("x2",u.width/2+x).attr("y1",-u.height/2-x+f.height+x).attr("y2",-u.height/2-x+f.height+x);return G(t,B),t.intersect=function(D){return W.rect(t,D)},n}p(Zd,"rectWithTitle");function Zr(e,t,r,i,a,n,s){const l=(e+r)/2,c=(t+i)/2,h=Math.atan2(i-t,r-e),u=(r-e)/2,d=(i-t)/2,f=u/a,g=d/n,m=Math.sqrt(f**2+g**2);if(m>1)throw new Error("The given radii are too small to create an arc between the points.");const y=Math.sqrt(1-m**2),x=l+y*n*Math.sin(h)*(s?-1:1),b=c-y*a*Math.cos(h)*(s?-1:1),C=Math.atan2((t-b)/n,(e-x)/a);let w=Math.atan2((i-b)/n,(r-x)/a)-C;s&&w<0&&(w+=2*Math.PI),!s&&w>0&&(w-=2*Math.PI);const B=[];for(let S=0;S<20;S++){const D=S/19,I=C+D*w,R=x+a*Math.cos(I),E=b+n*Math.sin(I);B.push({x:R,y:E})}return B}p(Zr,"generateArcPoints");async function Kd(e,t){const{labelStyles:r,nodeStyles:i}=j(t);t.labelStyle=r;const{shapeSvg:a,bbox:n}=await it(e,t,rt(t)),s=t?.padding??0,o=t?.padding??0,l=(t?.width?t?.width:n.width)+s*2,c=(t?.height?t?.height:n.height)+o*2,h=t.radius||5,u=t.taper||5,{cssStyles:d}=t,f=Y.svg(a),g=U(t,{});t.stroke&&(g.stroke=t.stroke),t.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");const m=[{x:-l/2+u,y:-c/2},{x:l/2-u,y:-c/2},...Zr(l/2-u,-c/2,l/2,-c/2+u,h,h,!0),{x:l/2,y:-c/2+u},{x:l/2,y:c/2-u},...Zr(l/2,c/2-u,l/2-u,c/2,h,h,!0),{x:l/2-u,y:c/2},{x:-l/2+u,y:c/2},...Zr(-l/2+u,c/2,-l/2,c/2-u,h,h,!0),{x:-l/2,y:c/2-u},{x:-l/2,y:-c/2+u},...Zr(-l/2,-c/2+u,-l/2+u,-c/2,h,h,!0)],y=lt(m),x=f.path(y,g),b=a.insert(()=>x,":first-child");return b.attr("class","basic label-container outer-path"),d&&t.look!=="handDrawn"&&b.selectChildren("path").attr("style",d),i&&t.look!=="handDrawn"&&b.selectChildren("path").attr("style",i),G(t,b),t.intersect=function(C){return W.polygon(t,m,C)},a}p(Kd,"roundedRect");async function Qd(e,t){const{labelStyles:r,nodeStyles:i}=j(t);t.labelStyle=r;const{shapeSvg:a,bbox:n,label:s}=await it(e,t,rt(t)),o=t?.padding??0,l=Math.max(n.width+(t.padding??0)*2,t?.width??0),c=Math.max(n.height+(t.padding??0)*2,t?.height??0),h=-n.width/2-o,u=-n.height/2-o,{cssStyles:d}=t,f=Y.svg(a),g=U(t,{});t.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");const m=[{x:h,y:u},{x:h+l+8,y:u},{x:h+l+8,y:u+c},{x:h-8,y:u+c},{x:h-8,y:u},{x:h,y:u},{x:h,y:u+c}],y=f.polygon(m.map(b=>[b.x,b.y]),g),x=a.insert(()=>y,":first-child");return x.attr("class","basic label-container").attr("style",Ot(d)),i&&t.look!=="handDrawn"&&x.selectAll("path").attr("style",i),d&&t.look!=="handDrawn"&&x.selectAll("path").attr("style",i),s.attr("transform",`translate(${-l/2+4+(t.padding??0)-(n.x-(n.left??0))},${-c/2+(t.padding??0)-(n.y-(n.top??0))})`),G(t,x),t.intersect=function(b){return W.rect(t,b)},a}p(Qd,"shadedProcess");async function Jd(e,t){const{labelStyles:r,nodeStyles:i}=j(t);t.labelStyle=r;const{shapeSvg:a,bbox:n,label:s}=await it(e,t,rt(t)),o=Math.max(n.width+(t.padding??0)*2,t?.width??0),l=Math.max(n.height+(t.padding??0)*2,t?.height??0),c=-o/2,h=-l/2,{cssStyles:u}=t,d=Y.svg(a),f=U(t,{});t.look!=="handDrawn"&&(f.roughness=0,f.fillStyle="solid");const g=[{x:c,y:h},{x:c,y:h+l},{x:c+o,y:h+l},{x:c+o,y:h-l/2}],m=lt(g),y=d.path(m,f),x=a.insert(()=>y,":first-child");return x.attr("class","basic label-container"),u&&t.look!=="handDrawn"&&x.selectChildren("path").attr("style",u),i&&t.look!=="handDrawn"&&x.selectChildren("path").attr("style",i),x.attr("transform",`translate(0, ${l/4})`),s.attr("transform",`translate(${-o/2+(t.padding??0)-(n.x-(n.left??0))}, ${-l/4+(t.padding??0)-(n.y-(n.top??0))})`),G(t,x),t.intersect=function(b){return W.polygon(t,g,b)},a}p(Jd,"slopedRect");async function tf(e,t){const r={rx:0,ry:0,labelPaddingX:t.labelPaddingX??(t?.padding||0)*2,labelPaddingY:(t?.padding||0)*1};return za(e,t,r)}p(tf,"squareRect");async function ef(e,t){const{labelStyles:r,nodeStyles:i}=j(t);t.labelStyle=r;const{shapeSvg:a,bbox:n}=await it(e,t,rt(t)),s=n.height+t.padding,o=n.width+s/4+t.padding,l=s/2,{cssStyles:c}=t,h=Y.svg(a),u=U(t,{});t.look!=="handDrawn"&&(u.roughness=0,u.fillStyle="solid");const d=[{x:-o/2+l,y:-s/2},{x:o/2-l,y:-s/2},...ci(-o/2+l,0,l,50,90,270),{x:o/2-l,y:s/2},...ci(o/2-l,0,l,50,270,450)],f=lt(d),g=h.path(f,u),m=a.insert(()=>g,":first-child");return m.attr("class","basic label-container outer-path"),c&&t.look!=="handDrawn"&&m.selectChildren("path").attr("style",c),i&&t.look!=="handDrawn"&&m.selectChildren("path").attr("style",i),G(t,m),t.intersect=function(y){return W.polygon(t,d,y)},a}p(ef,"stadium");async function rf(e,t){return za(e,t,{rx:5,ry:5})}p(rf,"state");
188function af(e,t,{config:{themeVariables:r}}){const{labelStyles:i,nodeStyles:a}=j(t);t.labelStyle=i;const{cssStyles:n}=t,{lineColor:s,stateBorder:o,nodeBorder:l}=r,c=e.insert("g").attr("class","node default").attr("id",t.domId||t.id),h=Y.svg(c),u=U(t,{});t.look!=="handDrawn"&&(u.roughness=0,u.fillStyle="solid");const d=h.circle(0,0,14,{...u,stroke:s,strokeWidth:2}),f=o??l,g=h.circle(0,0,5,{...u,fill:f,stroke:f,strokeWidth:2,fillStyle:"solid"}),m=c.insert(()=>d,":first-child");return m.insert(()=>g),n&&m.selectAll("path").attr("style",n),a&&m.selectAll("path").attr("style",a),G(t,m),t.intersect=function(y){return W.circle(t,7,y)},c}p(af,"stateEnd");function nf(e,t,{config:{themeVariables:r}}){const{lineColor:i}=r,a=e.insert("g").attr("class","node default").attr("id",t.domId||t.id);let n;if(t.look==="handDrawn"){const o=Y.svg(a).circle(0,0,14,Tb(i));n=a.insert(()=>o),n.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14)}else n=a.insert("circle",":first-child"),n.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14);return G(t,n),t.intersect=function(s){return W.circle(t,7,s)},a}p(nf,"stateStart");async function sf(e,t){const{labelStyles:r,nodeStyles:i}=j(t);t.labelStyle=r;const{shapeSvg:a,bbox:n}=await it(e,t,rt(t)),s=(t?.padding||0)/2,o=n.width+t.padding,l=n.height+t.padding,c=-n.width/2-s,h=-n.height/2-s,u=[{x:0,y:0},{x:o,y:0},{x:o,y:-l},{x:0,y:-l},{x:0,y:0},{x:-8,y:0},{x:o+8,y:0},{x:o+8,y:-l},{x:-8,y:-l},{x:-8,y:0}];if(t.look==="handDrawn"){const d=Y.svg(a),f=U(t,{}),g=d.rectangle(c-8,h,o+16,l,f),m=d.line(c,h,c,h+l,f),y=d.line(c+o,h,c+o,h+l,f);a.insert(()=>m,":first-child"),a.insert(()=>y,":first-child");const x=a.insert(()=>g,":first-child"),{cssStyles:b}=t;x.attr("class","basic label-container").attr("style",Ot(b)),G(t,x)}else{const d=qe(a,o,l,u);i&&d.attr("style",i),G(t,d)}return t.intersect=function(d){return W.polygon(t,u,d)},a}p(sf,"subroutine");async function of(e,t){const{labelStyles:r,nodeStyles:i}=j(t);t.labelStyle=r;const{shapeSvg:a,bbox:n}=await it(e,t,rt(t)),s=Math.max(n.width+(t.padding??0)*2,t?.width??0),o=Math.max(n.height+(t.padding??0)*2,t?.height??0),l=-s/2,c=-o/2,h=.2*o,u=.2*o,{cssStyles:d}=t,f=Y.svg(a),g=U(t,{}),m=[{x:l-h/2,y:c},{x:l+s+h/2,y:c},{x:l+s+h/2,y:c+o},{x:l-h/2,y:c+o}],y=[{x:l+s-h/2,y:c+o},{x:l+s+h/2,y:c+o},{x:l+s+h/2,y:c+o-u}];t.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");const x=lt(m),b=f.path(x,g),C=lt(y),_=f.path(C,{...g,fillStyle:"solid"}),w=a.insert(()=>_,":first-child");return w.insert(()=>b,":first-child"),w.attr("class","basic label-container"),d&&t.look!=="handDrawn"&&w.selectAll("path").attr("style",d),i&&t.look!=="handDrawn"&&w.selectAll("path").attr("style",i),G(t,w),t.intersect=function(B){return W.polygon(t,m,B)},a}p(of,"taggedRect");async function lf(e,t){const{labelStyles:r,nodeStyles:i}=j(t);t.labelStyle=r;const{shapeSvg:a,bbox:n,label:s}=await it(e,t,rt(t)),o=Math.max(n.width+(t.padding??0)*2,t?.width??0),l=Math.max(n.height+(t.padding??0)*2,t?.height??0),c=l/4,h=.2*o,u=.2*l,d=l+c,{cssStyles:f}=t,g=Y.svg(a),m=U(t,{});t.look!=="handDrawn"&&(m.roughness=0,m.fillStyle="solid");const y=[{x:-o/2-o/2*.1,y:d/2},...Ne(-o/2-o/2*.1,d/2,o/2+o/2*.1,d/2,c,.8),{x:o/2+o/2*.1,y:-d/2},{x:-o/2-o/2*.1,y:-d/2}],x=-o/2+o/2*.1,b=-d/2-u*.4,C=[{x:x+o-h,y:(b+l)*1.4},{x:x+o,y:b+l-u},{x:x+o,y:(b+l)*.9},...Ne(x+o,(b+l)*1.3,x+o-h,(b+l)*1.5,-l*.03,.5)],_=lt(y),w=g.path(_,m),B=lt(C),S=g.path(B,{...m,fillStyle:"solid"}),D=a.insert(()=>S,":first-child");return D.insert(()=>w,":first-child"),D.attr("class","basic label-container"),f&&t.look!=="handDrawn"&&D.selectAll("path").attr("style",f),i&&t.look!=="handDrawn"&&D.selectAll("path").attr("style",i),D.attr("transform",`translate(0,${-c/2})`),s.attr("transform",`translate(${-o/2+(t.padding??0)-(n.x-(n.left??0))},${-l/2+(t.padding??0)-c/2-(n.y-(n.top??0))})`),G(t,D),t.intersect=function(I){return W.polygon(t,y,I)},a}p(lf,"taggedWaveEdgedRectangle");async function cf(e,t){const{labelStyles:r,nodeStyles:i}=j(t);t.labelStyle=r;const{shapeSvg:a,bbox:n}=await it(e,t,rt(t)),s=Math.max(n.width+t.padding,t?.width||0),o=Math.max(n.height+t.padding,t?.height||0),l=-s/2,c=-o/2,h=a.insert("rect",":first-child");return h.attr("class","text").attr("style",i).attr("rx",0).attr("ry",0).attr("x",l).attr("y",c).attr("width",s).attr("height",o),G(t,h),t.intersect=function(u){return W.rect(t,u)},a}p(cf,"text");var P1=p((e,t,r,i,a,n)=>`M${e},${t}
189    a${a},${n} 0,0,1 0,${-i}
190    l${r},0
191    a${a},${n} 0,0,1 0,${i}
192    M${r},${-i}
193    a${a},${n} 0,0,0 0,${i}
194    l${-r},0`,"createCylinderPathD"),N1=p((e,t,r,i,a,n)=>[`M${e},${t}`,`M${e+r},${t}`,`a${a},${n} 0,0,0 0,${-i}`,`l${-r},0`,`a${a}
194,${n} 0,0,0 0,${i}`,`l${r},0`].join(" "),"createOuterCylinderPathD"),z1=p((e,t,r,i,a,n)=>[`M${e+r/2},${-i/2}`,`a${a},${n} 0,0,0 0,${i}`].join(" "),"createInnerCylinderPathD");async function hf(e,t){const{labelStyles:r,nodeStyles:i}=j(t);t.labelStyle=r;const{shapeSvg:a,bbox:n,label:s,halfPadding:o}=await it(e,t,rt(t)),l=t.look==="neo"?o*2:o,c=n.height+l,h=c/2,u=h/(2.5+c/50),d=n.width+u+l,{cssStyles:f}=t;let g;if(t.look==="handDrawn"){const m=Y.svg(a),y=N1(0,0,d,c,u,h),x=z1(0,0,d,c,u,h),b=m.path(y,U(t,{})),C=m.path(x,U(t,{fill:"none"}));g=a.insert(()=>C,":first-child"),g=a.insert(()=>b,":first-child"),g.attr("class","basic label-container"),f&&g.attr("style",f)}else{const m=P1(0,0,d,c,u,h);g=a.insert("path",":first-child").attr("d",m).attr("class","basic label-container").attr("style",Ot(f)).attr("style",i),g.attr("class","basic label-container"),f&&g.selectAll("path").attr("style",f),i&&g.selectAll("path").attr("style",i)}return g.attr("label-offset-x",u),g.attr("transform",`translate(${-d/2}, ${c/2} )`),s.attr("transform",`translate(${-(n.width/2)-u-(n.x-(n.left??0))}, ${-(n.height/2)-(n.y-(n.top??0))})`),G(t,g),t.intersect=function(m){const y=W.rect(t,m),x=y.y-(t.y??0);if(h!=0&&(Math.abs(x)<(t.height??0)/2||Math.abs(x)==(t.height??0)/2&&Math.abs(y.x-(t.x??0))>(t.width??0)/2-u)){let b=u*u*(1-x*x/(h*h));b!=0&&(b=Math.sqrt(Math.abs(b))),b=u-b,m.x-(t.x??0)>0&&(b=-b),y.x+=b}return y},a}p(hf,"tiltedCylinder");async function uf(e,t){const{labelStyles:r,nodeStyles:i}=j(t);t.labelStyle=r;const{shapeSvg:a,bbox:n}=await it(e,t,rt(t)),s=n.width+t.padding,o=n.height+t.padding,l=[{x:-3*o/6,y:0},{x:s+3*o/6,y:0},{x:s,y:-o},{x:0,y:-o}];let c;const{cssStyles:h}=t;if(t.look==="handDrawn"){const u=Y.svg(a),d=U(t,{}),f=lt(l),g=u.path(f,d);c=a.insert(()=>g,":first-child").attr("transform",`translate(${-s/2}, ${o/2})`),h&&c.attr("style",h)}else c=qe(a,s,o,l);return i&&c.attr("style",i),t.width=s,t.height=o,G(t,c),t.intersect=function(u){return W.polygon(t,l,u)},a}p(uf,"trapezoid");async function df(e,t){const{labelStyles:r,nodeStyles:i}=j(t);t.labelStyle=r;const{shapeSvg:a,bbox:n}=await it(e,t,rt(t)),s=60,o=20,l=Math.max(s,n.width+(t.padding??0)*2,t?.width??0),c=Math.max(o,n.height+(t.padding??0)*2,t?.height??0),{cssStyles:h}=t,u=Y.svg(a),d=U(t,{});t.look!=="handDrawn"&&(d.roughness=0,d.fillStyle="solid");const f=[{x:-l/2*.8,y:-c/2},{x:l/2*.8,y:-c/2},{x:l/2,y:-c/2*.6},{x:l/2,y:c/2},{x:-l/2,y:c/2},{x:-l/2,y:-c/2*.6}],g=lt(f),m=u.path(g,d),y=a.insert(()=>m,":first-child");return y.attr("class","basic label-container"),h&&t.look!=="handDrawn"&&y.selectChildren("path").attr("style",h),i&&t.look!=="handDrawn"&&y.selectChildren("path").attr("style",i),G(t,y),t.intersect=function(x){return W.polygon(t,f,x)},a}p(df,"trapezoidalPentagon");async function ff(e,t){const{labelStyles:r,nodeStyles:i}=j(t);t.labelStyle=r;const{shapeSvg:a,bbox:n,label:s}=await it(e,t,rt(t)),o=Lt(dt().flowchart?.htmlLabels),l=n.width+(t.padding??0),c=l+n.height,h=l+n.height,u=[{x:0,y:0},{x:h,y:0},{x:h/2,y:-c}],{cssStyles:d}=t,f=Y.svg(a),g=U(t,{});t.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");const m=lt(u),y=f.path(m,g),x=a.insert(()=>y,":first-child").attr("transform",`translate(${-c/2}, ${c/2})`);return d&&t.look!=="handDrawn"&&x.selectChildren("path").attr("style",d),i&&t.look!=="handDrawn"&&x.selectChildren("path").attr("style",i),t.width=l,t.height=c,G(t,x),s.attr("transform",`translate(${-n.width/2-(n.x-(n.left??0))}, ${c/2-(n.height+(t.padding??0)/(o?2:1)-(n.y-(n.top??0)))})`),t.intersect=function(b){return $.info("Triangle intersect",t,u,b),W.polygon(t,u,b)},a}p(ff,"triangle");async function pf(e,t){const{labelStyles:r,nodeStyles:i}=j(t);t.labelStyle=r;const{shapeSvg:a,bbox:n,label:s}=await it(e,t,rt(t)),o=Math.max(n.width+(t.padding??0)*2,t?.width??0),l=Math.max(n.height+(t.padding??0)*2,t?.height??0),c=l/8,h=l+c,{cssStyles:u}=t,f=70-o,g=f>0?f/2:0,m=Y.svg(a),y=U(t,{});t.look!=="handDrawn"&&(y.roughness=0,y.fillStyle="solid");const x=[{x:-o/2-g,y:h/2},...Ne(-o/2-g,h/2,o/2+g,h/2,c,.8),{x:o/2+g,y:-h/2},{x:-o/2-g,y:-h/2}],b=lt(x),C=m.path(b,y),_=a.insert(()=>C,":first-child");return _.attr("class","basic label-container"),u&&t.look!=="handDrawn"&&_.selectAll("path").attr("style",u),i&&t.look!=="handDrawn"&&_.selectAll("path").attr("style",i),_.attr("transform",`translate(0,${-c/2})`),s.attr("transform",`translate(${-o/2+(t.padding??0)-(n.x-(n.left??0))},${-l/2+(t.padding??0)-c-(n.y-(n.top??0))})`),G(t,_),t.intersect=function(w){return W.polygon(t,x,w)},a}p(pf,"waveEdgedRectangle");async function gf(e,t){const{labelStyles:r,nodeStyles:i}=j(t);t.labelStyle=r;const{shapeSvg:a,bbox:n}=await it(e,t,rt(t)),s=100,o=50,l=Math.max(n.width+(t.padding??0)*2,t?.width??0),c=Math.max(n.height+(t.padding??0)*2,t?.height??0),h=l/c;let u=l,d=c;u>d*h?d=u/h:u=d*h,u=Math.max(u,s),d=Math.max(d,o);const f=Math.min(d*.2,d/4),g=d+f*2,{cssStyles:m}=t,y=Y.svg(a),x=U(t,{});t.look!=="handDrawn"&&(x.roughness=0,x.fillStyle="solid");const b=[{x:-u/2,y:g/2},...Ne(-u/2,g/2,u/2,g/2,f,1),{x:u/2,y:-g/2},...Ne(u/2,-g/2,-u/2,-g/2,f,-1)],C=lt(b),_=y.path(C,x),w=a.insert(()=>_,":first-child");return w.attr("class","basic label-container"),m&&t.look!=="handDrawn"&&w.selectAll("path").attr("style",m),i&&t.look!=="handDrawn"&&w.selectAll("path").attr("style",i),G(t,w),t.intersect=function(B){return W.polygon(t,b,B)},a}p(gf,"waveRectangle");async function mf(e,t){const{labelStyles:r,nodeStyles:i}=j(t);t.labelStyle=r;const{shapeSvg:a,bbox:n,label:s}=await it(e,t,rt(t)),o=Math.max(n.width+(t.padding??0)*2,t?.width??0),l=Math.max(n.height+(t.padding??0)*2,t?.height??0),c=5,h=-o/2,u=-l/2,{cssStyles:d}=t,f=Y.svg(a),g=U(t,{}),m=[{x:h-c,y:u-c},{x:h-c,y:u+l},{x:h+o,y:u+l},{x:h+o,y:u-c}],y=`M${h-c},${u-c} L${h+o},${u-c} L${h+o},${u+l} L${h-c},${u+l} L${h-c},${u-c}
195                M${h-c},${u} L${h+o},${u}
196                M${h},${u-c} L${h},${u+l}`;t.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");const x=f.path(y,g),b=a.insert(()=>x,":first-child");return b.attr("transform",`translate(${c/2}, ${c/2})`),b.attr("class","basic label-container"),d&&t.look!=="handDrawn"&&b.selectAll("path").attr("style",d),i&&t.look!=="handDrawn"&&b.selectAll("path").attr("style",i),s.attr("transform",`translate(${-(n.width/2)+c/2-(n.x-(n.left??0))}, ${-(n.height/2)+c/2-(n.y-(n.top??0))})`),G(t,b),t.intersect=function(C){return W.polygon(t,m,C)},a}p(mf,"windowPane");async function Js(e,t){const r=t;if(r.alias&&(t.label=r.alias),t.look==="handDrawn"){const{themeVariables:J}=Dt(),{background:Z}=J,ct={...t,id:t.id+"-background",look:"default",cssStyles:["stroke: none",`fill: ${Z}`]};await Js(e,ct)}const i=Dt();t.useHtmlLabels=i.htmlLabels;let a=i.er?.diagramPadding??10,n=i.er?.entityPadding??6;const{cssStyles:s}=t,{labelStyles:o,nodeStyles:l}=j(t);if(r.attributes.length===0&&t.label){const J={rx:0,ry:0,labelPaddingX:a,labelPaddingY:a*1.5};Ee(t.label,i)+J.labelPaddingX*2<i.er.minEntityWidth&&(t.width=i.er.minEntityWidth);const Z=await za(e,t,J);
196if(!Lt(i.htmlLabels)){const ct=Z.select("text"),nt=ct.node()?.getBBox();ct.attr("transform",`translate(${-nt.width/2}, 0)`)}return Z}i.htmlLabels||(a*=1.25,n*=1.25);let c=rt(t);c||(c="node default");const h=e.insert("g").attr("class",c).attr("id",t.domId||t.id),u=await fr(h,t.label??"",i,0,0,["name"],o);u.height+=n;let d=0;const f=[],g=[];let m=0,y=0,x=0,b=0,C=!0,_=!0;for(const J of r.attributes){const Z=await fr(h,J.type,i,0,d,["attribute-type"],o);m=Math.max(m,Z.width+a);const ct=await fr(h,J.name,i,0,d,["attribute-name"],o);y=Math.max(y,ct.width+a);const nt=await fr(h,J.keys.join(),i,0,d,["attribute-keys"],o);x=Math.max(x,nt.width+a);const bt=await fr(h,J.comment,i,0,d,["attribute-comment"],o);b=Math.max(b,bt.width+a);const Ct=Math.max(Z.height,ct.height,nt.height,bt.height)+n;g.push({yOffset:d,rowHeight:Ct}),d+=Ct}let w=4;x<=a&&(C=!1,x=0,w--),b<=a&&(_=!1,b=0,w--);const B=h.node().getBBox();if(u.width+a*2-(m+y+x+b)>0){const J=u.width+a*2-(m+y+x+b);m+=J/w,y+=J/w,x>0&&(x+=J/w),b>0&&(b+=J/w)}const S=m+y+x+b,D=Y.svg(h),I=U(t,{});t.look!=="handDrawn"&&(I.roughness=0,I.fillStyle="solid");let R=0;g.length>0&&(R=g.reduce((J,Z)=>J+(Z?.rowHeight??0),0));const E=Math.max(B.width+a*2,t?.width||0,S),N=Math.max((R??0)+u.height,t?.height||0),O=-E/2,L=-N/2;h.selectAll("g:not(:first-child)").each((J,Z,ct)=>{const nt=ht(ct[Z]),bt=nt.attr("transform");let Ct=0,Pt=0;if(bt){const yt=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(bt);yt&&(Ct=parseFloat(yt[1]),Pt=parseFloat(yt[2]),nt.attr("class").includes("attribute-name")?Ct+=m:nt.attr("class").includes("attribute-keys")?Ct+=m+y:nt.attr("class").includes("attribute-comment")&&(Ct+=m+y+x))}nt.attr("transform",`translate(${O+a/2+Ct}, ${Pt+L+u.height+n/2})`)}),h.select(".name").attr("transform","translate("+-u.width/2+", "+(L+n/2)+")");const A=D.rectangle(O,L,E,N,I),T=h.insert(()=>A,":first-child").attr("style",s.join("")),{themeVariables:F}=Dt(),{rowEven:M,rowOdd:q,nodeBorder:V}=F;f.push(0);for(const[J,Z]of g.entries()){const nt=(J+1)%2===0&&Z.yOffset!==0,bt=D.rectangle(O,u.height+L+Z?.yOffset,E,Z?.rowHeight,{...I,fill:nt?M:q,stroke:V});h.insert(()=>bt,"g.label").attr("style",s.join("")).attr("class",`row-rect-${nt?"even":"odd"}`)}let K=D.line(O,u.height+L,E+O,u.height+L,I);h.insert(()=>K).attr("class","divider"),K=D.line(m+O,u.height+L,m+O,N+L,I),h.insert(()=>K).attr("class","divider"),C&&(K=D.line(m+y+O,u.height+L,m+y+O,N+L,I),h.insert(()=>K).attr("class","divider")),_&&(K=D.line(m+y+x+O,u.height+L,m+y+x+O,N+L,I),h.insert(()=>K).attr("class","divider"));for(const J of f)K=D.line(O,u.height+L+J,E+O,u.height+L+J,I),h.insert(()=>K).attr("class","divider");if(G(t,T),l&&t.look!=="handDrawn"){const Z=l.split(";")?.filter(ct=>ct.includes("stroke"))?.map(ct=>`${ct}`).join("; ");h.selectAll("path").attr("style",Z??""),h.selectAll(".row-rect-even path").attr("style",l)}return t.intersect=function(J){return W.rect(t,J)},h}p(Js,"erBox");async function fr(e,t,r,i=0,a=0,n=[],s=""){const o=e.insert("g").attr("class",`label ${n.join(" ")}`).attr("transform",`translate(${i}, ${a})`).attr("style",s);t!==No(t)&&(t=No(t),t=t.replaceAll("<","&lt;").replaceAll(">","&gt;"));const l=o.node().appendChild(await ze(o,t,{width:Ee(t,r)+100,style:s,useHtmlLabels:r.htmlLabels},r));if(t.includes("&lt;")||t.includes("&gt;")){let h=l.children[0];for(h.textContent=h.textContent.replaceAll("&lt;","<").replaceAll("&gt;",">");h.childNodes[0];)h=h.childNodes[0],h.textContent=h.textContent.replaceAll("&lt;","<").replaceAll("&gt;",">")}let c=l.getBBox();if(Lt(r.htmlLabels)){const h=l.children[0];h.style.textAlign="start";const u=ht(l);c=h.getBoundingClientRect(),u.attr("width",c.width),u.attr("height",c.height)}return c}p(fr,"addText");async function yf(e,t,r,i,a=r.class.padding??12){const n=i?0:3,s=e.insert("g").attr("class",rt(t)).attr("id",t.domId||t.id);let o=null,l=null,c=null,h=null,u=0,d=0,f=0;if(o=s.insert("g").attr("class","annotation-group text"),t.annotations.length>0){const b=t.annotations[0];await Kr(o,{text:`«${b}»`},0),u=o.node().getBBox().height}l=s.insert("g").attr("class","label-group text"),await Kr(l,t,0,["font-weight: bolder"]);const g=l.node().getBBox();d=g.height,c=s.insert("g").attr("class","members-group text");let m=0;for(const b of t.members){const C=await Kr(c,b,m,[b.parseClassifier()]);m+=C+n}f=c.node().getBBox().height,f<=0&&(f=a/2),h=s.insert("g").attr("class","methods-group text");let y=0;for(const b of t.methods){const C=await Kr(h,b,y,[b.parseClassifier()]);y+=C+n}let x=s.node().getBBox();if(o!==null){const b=o.node().getBBox();o.attr("transform",`translate(${-b.width/2})`)}return l.attr("transform",`translate(${-g.width/2}, ${u})`),x=s.node().getBBox(),c.attr("transform",`translate(0, ${u+d+a*2})`),x=s.node().getBBox(),h.attr("transform",`translate(0, ${u+d+(f?f+a*4:a*2)})`),x=s.node().getBBox(),{shapeSvg:s,bbox:x}}p(yf,"textHelper");async function Kr(e,t,r,i=[]){const a=e.insert("g").attr("class","label").attr("style",i.join("; ")),n=Dt();let s="useHtmlLabels"in t?t.useHtmlLabels:Lt(n.htmlLabels)??!0,o="";"text"in t?o=t.text:o=t.label,!s&&o.startsWith("\\")&&(o=o.substring(1)),Cr(o)&&(s=!0);const l=await ze(a,Cs(ar(o)),{width:Ee(o,n)+50,classes:"markdown-node-label",useHtmlLabels:s},n);let c,h=1;if(s){const u=l.children[0],d=ht(l);h=u.innerHTML.split("<br>").length,u.innerHTML.includes("</math>")&&(h+=u.innerHTML.split("<mrow>").length-1);const f=u.getElementsByTagName("img");if(f){const g=o.replace(/<img[^>]*>/g,"").trim()==="";await Promise.all([...f].map(m=>new Promise(y=>{function x(){if(m.style.display="flex",m.style.flexDirection="column",g){const b=n.fontSize?.toString()??window.getComputedStyle(document.body).fontSize,_=parseInt(b,10)*5+"px";m.style.minWidth=_,m.style.maxWidth=_}else m.style.width="100%";y(m)}p(x,"setupImage"),setTimeout(()=>{m.complete&&x()}),m.addEventListener("error",x),m.addEventListener("load",x)})))}c=u.getBoundingClientRect(),d.attr("width",c.width),d.attr("height",c.height)}else{i.includes("font-weight: bolder")&&ht(l).selectAll("tspan").attr("font-weight",""),h=l.children.length;const u=l.children[0];(l.textContent===""||l.textContent.includes("&gt"))&&(u.textContent=o[0]+o.substring(1).replaceAll("&gt;",">").replaceAll("&lt;","<").trim(),o[1]===" "&&(u.textContent=u.textContent[0]+" "+u.textContent.substring(1))),u.textContent==="undefined"&&(u.textContent=""),c=l.getBBox()}return a.attr("transform","translate(0,"+(-c.height/(2*h)+r)+")"),
196c.height}p(Kr,"addText");async function xf(e,t){const r=dt(),i=r.class.padding??12,a=i,n=t.useHtmlLabels??Lt(r.htmlLabels)??!0,s=t;s.annotations=s.annotations??[],s.members=s.members??[],s.methods=s.methods??[];const{shapeSvg:o,bbox:l}=await yf(e,t,r,n,a),{labelStyles:c,nodeStyles:h}=j(t);t.labelStyle=c,t.cssStyles=s.styles||"";const u=s.styles?.join(";")||h||"";t.cssStyles||(t.cssStyles=u.replaceAll("!important","").split(";"));const d=s.members.length===0&&s.methods.length===0&&!r.class?.hideEmptyMembersBox,f=Y.svg(o),g=U(t,{});t.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");const m=l.width;let y=l.height;s.members.length===0&&s.methods.length===0?y+=a:s.members.length>0&&s.methods.length===0&&(y+=a*2);const x=-m/2,b=-y/2,C=f.rectangle(x-i,b-i-(d?i:s.members.length===0&&s.methods.length===0?-i/2:0),m+2*i,y+2*i+(d?i*2:s.members.length===0&&s.methods.length===0?-i:0),g),_=o.insert(()=>C,":first-child");_.attr("class","basic label-container");const w=_.node().getBBox();o.selectAll(".text").each((I,R,E)=>{const N=ht(E[R]),O=N.attr("transform");let L=0;if(O){const M=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(O);M&&(L=parseFloat(M[2]))}let A=L+b+i-(d?i:s.members.length===0&&s.methods.length===0?-i/2:0);n||(A-=4);let T=x;(N.attr("class").includes("label-group")||N.attr("class").includes("annotation-group"))&&(T=-N.node()?.getBBox().width/2||0,o.selectAll("text").each(function(F,M,q){window.getComputedStyle(q[M]).textAnchor==="middle"&&(T=0)})),N.attr("transform",`translate(${T}, ${A})`)});const B=o.select(".annotation-group").node().getBBox().height-(d?i/2:0)||0,S=o.select(".label-group").node().getBBox().height-(d?i/2:0)||0,D=o.select(".members-group").node().getBBox().height-(d?i/2:0)||0;if(s.members.length>0||s.methods.length>0||d){const I=f.line(w.x,B+S+b+i,w.x+w.width,B+S+b+i,g);o.insert(()=>I).attr("class","divider").attr("style",u)}if(d||s.members.length>0||s.methods.length>0){const I=f.line(w.x,B+S+D+b+a*2+i,w.x+w.width,B+S+D+b+i+a*2,g);o.insert(()=>I).attr("class","divider").attr("style",u)}if(s.look!=="handDrawn"&&o.selectAll("path").attr("style",u),_.select(":nth-child(2)").attr("style",u),o.selectAll(".divider").select("path").attr("style",u),t.labelStyle?o.selectAll("span").attr("style",t.labelStyle):o.selectAll("span").attr("style",u),!n){const I=RegExp(/color\s*:\s*([^;]*)/),R=I.exec(u);if(R){const E=R[0].replace("color","fill");o.selectAll("tspan").attr("style",E)}else if(c){const E=I.exec(c);if(E){const N=E[0].replace("color","fill");o.selectAll("tspan").attr("style",N)}}}return G(t,_),t.intersect=function(I){return W.rect(t,I)},o}p(xf,"classBox");async function bf(e,t){const{labelStyles:r,nodeStyles:i}=j(t);t.labelStyle=r;const a=t,n=t,s=20,o=20,l="verifyMethod"in t,c=rt(t),h=e.insert("g").attr("class",c).attr("id",t.domId??t.id);let u;l?u=await me(h,`&lt;&lt;${a.type}&gt;&gt;`,0,t.labelStyle):u=await me(h,"&lt;&lt;Element&gt;&gt;",0,t.labelStyle);let d=u;const f=await me(h,a.name,d,t.labelStyle+"; font-weight: bold;");if(d+=f+o,l){const B=await me(h,`${a.requirementId?`ID: ${a.requirementId}`:""}`,d,t.labelStyle);d+=B;const S=await me(h,`${a.text?`Text: ${a.text}`:""}`,d,t.labelStyle);d+=S;const D=await me(h,`${a.risk?`Risk: ${a.risk}`:""}`,d,t.labelStyle);d+=D,await me(h,`${a.verifyMethod?`Verification: ${a.verifyMethod}`:""}`,d,t.labelStyle)}else{const B=await me(h,`${n.type?`Type: ${n.type}`:""}`,d,t.labelStyle);d+=B,await me(h,`${n.docRef?`Doc Ref: ${n.docRef}`:""}`,d,t.labelStyle)}const g=(h.node()?.getBBox().width??200)+s,m=(h.node()?.getBBox().height??200)+s,y=-g/2,x=-m/2,b=Y.svg(h),C=U(t,{});t.look!=="handDrawn"&&(C.roughness=0,C.fillStyle="solid");const _=b.rectangle(y,x,g,m,C),w=h.insert(()=>_,":first-child");if(w.attr("class","basic label-container").attr("style",i),h.selectAll(".label").each((B,S,D)=>{const I=ht(D[S]),R=I.attr("transform");let E=0,N=0;if(R){const T=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(R);T&&(E=parseFloat(T[1]),N=parseFloat(T[2]))}const O=N-m/2;let L=y+s/2;(S===0||S===1)&&(L=E),I.attr("transform",`translate(${L}, ${O+s})`)}),d>u+f+o){const B=b.line(y,x+u+f+o,y+g,x+u+f+o,C);h.insert(()=>B).attr("style",i)}return G(t,w),t.intersect=function(B){return W.rect(t,B)},h}p(bf,"requirementBox");async function me(e,t,r,i=""){if(t==="")return 0;const a=e.insert("g").attr("class","label").attr("style",i),n=dt(),s=n.htmlLabels??!0,o=await ze(a,Cs(ar(t)),{width:Ee(t,n)+50,classes:"markdown-node-label",useHtmlLabels:s,style:i},n);let l;if(s){const c=o.children[0],h=ht(o);l=c.getBoundingClientRect(),h.attr("width",l.width),h.attr("height",l.height)}else{const c=o.children[0];for(const h of c.children)h.textContent=h.textContent.replaceAll("&gt;",">").replaceAll("&lt;","<"),i&&h.setAttribute("style",i);l=o.getBBox(),l.height+=6}return a.attr("transform",`translate(${-l.width/2},${-l.height/2+r})`),l.height}p(me,"addText");var W1=p(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");
196async function Cf(e,t,{config:r}){const{labelStyles:i,nodeStyles:a}=j(t);t.labelStyle=i||"";const n=10,s=t.width;t.width=(t.width??200)-10;const{shapeSvg:o,bbox:l,label:c}=await it(e,t,rt(t)),h=t.padding||10;let u="",d;"ticket"in t&&t.ticket&&r?.kanban?.ticketBaseUrl&&(u=r?.kanban?.ticketBaseUrl.replace("#TICKET#",t.ticket),d=o.insert("svg:a",":first-child").attr("class","kanban-ticket-link").attr("xlink:href",u).attr("target","_blank"));const f={useHtmlLabels:t.useHtmlLabels,labelStyle:t.labelStyle||"",width:t.width,img:t.img,padding:t.padding||8,centerLabel:!1};let g,m;d?{label:g,bbox:m}=await gn(d,"ticket"in t&&t.ticket||"",f):{label:g,bbox:m}=await gn(o,"ticket"in t&&t.ticket||"",f);const{label:y,bbox:x}=await gn(o,"assigned"in t&&t.assigned||"",f);t.width=s;const b=10,C=t?.width||0,_=Math.max(m.height,x.height)/2,w=Math.max(l.height+b*2,t?.height||0)+_,B=-C/2,S=-w/2;c.attr("transform","translate("+(h-C/2)+", "+(-_-l.height/2)+")"),g.attr("transform","translate("+(h-C/2)+", "+(-_+l.height/2)+")"),y.attr("transform","translate("+(h+C/2-x.width-2*n)+", "+(-_+l.height/2)+")");let D;const{rx:I,ry:R}=t,{cssStyles:E}=t;if(t.look==="handDrawn"){const N=Y.svg(o),O=U(t,{}),L=I||R?N.path(We(B,S,C,w,I||0),O):N.rectangle(B,S,C,w,O);D=o.insert(()=>L,":first-child"),D.attr("class","basic label-container").attr("style",E||null)}else{D=o.insert("rect",":first-child"),D.attr("class","basic label-container __APA__").attr("style",a).attr("rx",I??5).attr("ry",R??5).attr("x",B).attr("y",S).attr("width",C).attr("height",w);const N="priority"in t&&t.priority;if(N){const O=o.append("line"),L=B+2,A=S+Math.floor((I??0)/2),T=S+w-Math.floor((I??0)/2);O.attr("x1",L).attr("y1",A).attr("x2",L).attr("y2",T).attr("stroke-width","4").attr("stroke",W1(N))}}return G(t,D),t.height=w,t.intersect=function(N){return W.rect(t,N)},o}p(Cf,"kanbanItem");async function kf(e,t){const{labelStyles:r,nodeStyles:i}=j(t);t.labelStyle=r;const{shapeSvg:a,bbox:n,halfPadding:s,label:o}=await it(e,t,rt(t)),l=n.width+10*s,c=n.height+8*s,h=.15*l,{cssStyles:u}=t,d=n.width+20,f=n.height+20,g=Math.max(l,d),m=Math.max(c,f);o.attr("transform",`translate(${-n.width/2}, ${-n.height/2})`);let y;const x=`M0 0 
197    a${h},${h} 1 0,0 ${g*.25},${-1*m*.1}
198    a${h},${h} 1 0,0 ${g*.25},0
199    a${h},${h} 1 0,0 ${g*.25},0
200    a${h},${h} 1 0,0 ${g*.25},${m*.1}
201
202    a${h},${h} 1 0,0 ${g*.15},${m*.33}
203    a${h*.8},${h*.8} 1 0,0 0,${m*.34}
204    a${h},${h} 1 0,0 ${-1*g*.15},${m*.33}
205
206    a${h},${h} 1 0,0 ${-1*g*.25},${m*.15}
207    a${h},${h} 1 0,0 ${-1*g*.25},0
208    a${h},${h} 1 0,0 ${-1*g*.25},0
209    a${h},${h} 1 0,0 ${-1*g*.25},${-1*m*.15}
210
211    a${h},${h} 1 0,0 ${-1*g*.1},${-1*m*.33}
212    a${h*.8},${h*.8} 1 0,0 0,${-1*m*.34}
213    a${h},${h} 1 0,0 ${g*.1},${-1*m*.33}
214  H0 V0 Z`;if(t.look==="handDrawn"){const b=Y.svg(a),C=U(t,{}),_=b.path(x,C);y=a.insert(()=>_,":first-child"),y.attr("class","basic label-container").attr("style",Ot(u))}else y=a.insert("path",":first-child").attr("class","basic label-container").attr("style",i).attr("d",x);return y.attr("transform",`translate(${-g/2}, ${-m/2})`),G(t,y),t.calcIntersect=function(b,C){return W.rect(b,C)},t.intersect=function(b){return $.info("Bang intersect",t,b),W.rect(t,b)},a}p(kf,"bang");async function wf(e,t){const{labelStyles:r,nodeStyles:i}=j(t);t.labelStyle=r;const{shapeSvg:a,bbox:n,halfPadding:s,label:o}=await it(e,t,rt(t)),l=n.width+2*s,c=n.height+2*s,h=.15*l,u=.25*l,d=.35*l,f=.2*l,{cssStyles:g}=t;let m;const y=`M0 0 
215    a${h},${h} 0 0,1 ${l*.25},${-1*l*.1}
216    a${d},${d} 1 0,1 ${l*.4},${-1*l*.1}
217    a${u},${u} 1 0,1 ${l*.35},${l*.2}
218
219    a${h},${h} 1 0,1 ${l*.15},${c*.35}
220    a${f},${f} 1 0,1 ${-1*l*.15},${c*.65}
221
222    a${u},${h} 1 0,1 ${-1*l*.25},${l*.15}
223    a${d},${d} 1 0,1 ${-1*l*.5},0
224    a${h},${h} 1 0,1 ${-1*l*.25},${-1*l*.15}
225
226    a${h},${h} 1 0,1 ${-1*l*.1},${-1*c*.35}
227    a${f},${f} 1 0,1 ${l*.1},${-1*c*.65}
228  H0 V0 Z`;if(t.look==="handDrawn"){const x=Y.svg(a),b=U(t,{}),C=x.path(y,b);m=a.insert(()=>C,":first-child"),m.attr("class","basic label-container").attr("style",Ot(g))}else m=a.insert("path",":first-child").attr("class","basic label-container").attr("style",i).attr("d",y);return o.attr("transform",`translate(${-n.width/2}, ${-n.height/2})`),m.attr("transform",`translate(${-l/2}, ${-c/2})`),G(t,m),t.calcIntersect=function(x,b){return W.rect(x,b)},t.intersect=function(x){return $.info("Cloud intersect",t,x),W.rect(t,x)},a}p(wf,"cloud");async function _f(e,t){const{labelStyles:r,nodeStyles:i}=j(t);t.labelStyle=r;const{shapeSvg:a,bbox:n,halfPadding:s,label:o}=await it(e,t,rt(t)),l=n.width+8*s,c=n.height+2*s,h=5,u=`
229    M${-l/2} ${c/2-h}
230    v${-c+2*h}
231    q0,-${h} ${h},-${h}
232    h${l-2*h}
233    q${h},0 ${h},${h}
234    v${c-2*h}
235    q0,${h} -${h},${h}
236    h${-l+2*h}
237    q-${h},0 -${h},-${h}
238    Z
239  `,d=a.append("path").attr("id","node-"+t.id).attr("class","node-bkg node-"+t.type).attr("style",i).attr("d",u);return a.append("line").attr("class","node-line-").attr("x1",-l/2).attr("y1",c/2).attr("x2",l/2).attr("y2",c/2),o.attr("transform",`translate(${-n.width/2}, ${-n.height/2})`),a.append(()=>o.node()),G(t,d),t.calcIntersect=function(f,g){return W.rect(f,g)},t.intersect=function(f){return W.rect(t,f)},a}p(_f,"defaultMindmapNode");async function vf(e,t){const r={padding:t.padding??0};return Qs(e,t,r)}p(vf,"mindmapCircle");var q1=[{semanticName:"Process",name:"Rectangle",shortName:"rect",description:"Standard process shape",aliases:["proc","process","rectangle"],internalAliases:["squareRect"],handler:tf},{semanticName:"Event",name:"Rounded Rectangle",shortName:"rounded",description:"Represents an event",aliases:["event"],internalAliases:["roundedRect"],handler:Kd},{semanticName:"Terminal Point",name:"Stadium",shortName:"stadium",description:"Terminal point",aliases:["terminal","pill"],handler:ef},{semanticName:"Subprocess",name:"Framed Rectangle",shortName:"fr-rect",description:"Subprocess",aliases:["subprocess","subproc","framed-rectangle","subroutine"],handler:sf},{semanticName:"Database",name:"Cylinder",shortName:"cyl",description:"Database storage",aliases:["db","database","cylinder"],handler:vd},{semanticName:"Start",name:"Circle",shortName:"circle",description:"Starting point",aliases:["circ"],handler:Qs},{semanticName:"Bang",name:"Bang",shortName:"bang",description:"Bang",aliases:["bang"],handler:kf},{semanticName:"Cloud",name:"Cloud",shortName:"cloud",description:"cloud",aliases:["cloud"],handler:wf}
239,{semanticName:"Decision",name:"Diamond",shortName:"diam",description:"Decision-making step",aliases:["decision","diamond","question"],handler:Vd},{semanticName:"Prepare Conditional",name:"Hexagon",shortName:"hex",description:"Preparation or condition step",aliases:["hexagon","prepare"],handler:Ed},{semanticName:"Data Input/Output",name:"Lean Right",shortName:"lean-r",description:"Represents input or output",aliases:["lean-right","in-out"],internalAliases:["lean_right"],handler:Wd},{semanticName:"Data Input/Output",name:"Lean Left",shortName:"lean-l",description:"Represents output or input",aliases:["lean-left","out-in"],internalAliases:["lean_left"],handler:zd},{semanticName:"Priority Action",name:"Trapezoid Base Bottom",shortName:"trap-b",description:"Priority action",aliases:["priority","trapezoid-bottom","trapezoid"],handler:uf},{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:Pd},{semanticName:"Stop",name:"Double Circle",shortName:"dbl-circ",description:"Represents a stop point",aliases:["double-circle"],internalAliases:["doublecircle"],handler:Td},{semanticName:"Text Block",name:"Text Block",shortName:"text",description:"Text block",handler:cf}
239,{semanticName:"Card",name:"Notched Rectangle",shortName:"notch-rect",description:"Represents a card",aliases:["card","notched-rectangle"],handler:md},{semanticName:"Lined/Shaded Process",name:"Lined Rectangle",shortName:"lin-rect",description:"Lined process shape",aliases:["lined-rectangle","lined-process","lin-proc","shaded-process"],handler:Qd},{semanticName:"Start",name:"Small Circle",shortName:"sm-circ",description:"Small starting point",aliases:["start","small-circle"],internalAliases:["stateStart"],handler:nf},{semanticName:"Stop",name:"Framed Circle",shortName:"fr-circ",description:"Stop point",aliases:["stop","framed-circle"],internalAliases:["stateEnd"],handler:af},{semanticName:"Fork/Join",name:"Filled Rectangle",shortName:"fork",description:"Fork or join in process flow",aliases:["join"],internalAliases:["forkJoin"],handler:Ad},{semanticName:"Collate",name:"Hourglass",shortName:"hourglass",description:"Represents a collate operation",aliases:["hourglass","collate"],handler:Fd},{semanticName:"Comment",name:"Curly Brace",shortName:"brace",description:"Adds a comment",aliases:["comment","brace-l"],handler:Cd},{semanticName:"Comment Right",name:"Curly Brace",shortName:"brace-r",description:"Adds a comment",handler:kd},{semanticName:"Comment with braces on both sides",name:"Curly Braces",shortName:"braces",description:"Adds a comment",handler:wd},{semanticName:"Com Link",name:"Lightning Bolt",shortName:"bolt",description:"Communication link",aliases:["com-link","lightning-bolt"],handler:qd}
239,{semanticName:"Document",name:"Document",shortName:"doc",description:"Represents a document",aliases:["doc","document"],handler:pf},{semanticName:"Delay",name:"Half-Rounded Rectangle",shortName:"delay",description:"Represents a delay",aliases:["half-rounded-rectangle"],handler:Md},{semanticName:"Direct Access Storage",name:"Horizontal Cylinder",shortName:"h-cyl",description:"Direct access storage",aliases:["das","horizontal-cylinder"],handler:hf},{semanticName:"Disk Storage",name:"Lined Cylinder",shortName:"lin-cyl",description:"Disk storage",aliases:["disk","lined-cylinder"],handler:Hd},{semanticName:"Display",name:"Curved Trapezoid",shortName:"curv-trap",description:"Represents a display",aliases:["curved-trapezoid","display"],handler:_d},{semanticName:"Divided Process",name:"Divided Rectangle",shortName:"div-rect",description:"Divided process shape",aliases:["div-proc","divided-rectangle","divided-process"],handler:Sd},{semanticName:"Extract",name:"Triangle",shortName:"tri",description:"Extraction process",aliases:["extract","triangle"],handler:ff},{semanticName:"Internal Storage",name:"Window Pane",shortName:"win-pane",description:"Internal storage",aliases:["internal-storage","window-pane"],handler:mf},{semanticName:"Junction",name:"Filled Circle",shortName:"f-circ",description:"Junction point",aliases:["junction","filled-circle"],handler:Ld},{semanticName:"Loop Limit",name:"Trapezoidal Pentagon",shortName:"notch-pent",description:"Loop limit step",aliases:["loop-limit","notched-pentagon"],handler:df},{semanticName:"Manual File",name:"Flipped Triangle",shortName:"flip-tri",description:"Manual file operation",aliases:["manual-file","flipped-triangle"],handler:Bd},{semanticName:"Manual Input",name:"Sloped Rectangle",shortName:"sl-rect",description:"Manual input step",aliases:["manual-input","sloped-rectangle"],handler:Jd},{semanticName:"Multi-Document",name:"Stacked Document",shortName:"docs",description:"Multiple documents",aliases:["documents","st-doc","stacked-document"],handler:jd},{semanticName:"Multi-Process",name:"Stacked Rectangle",shortName:"st-rect",description:"Multiple processes",aliases:["procs","processes","stacked-rectangle"],handler:Ud},{semanticName:"Stored Data",name:"Bow Tie Rectangle",shortName:"bow-rect",description:"Stored data",aliases:["stored-data","bow-tie-rectangle"],handler:gd},{semanticName:"Summary",name:"Crossed Circle",shortName:"cross-circ",description:"Summary",aliases:["summary","crossed-circle"],handler:bd},{semanticName:"Tagged Document",name:"Tagged Document",shortName:"tag-doc",description:"Tagged document",aliases:["tag-doc","tagged-document"],handler:lf},{semanticName:"Tagged Process",name:"Tagged Rectangle",shortName:"tag-rect",description:"Tagged process",aliases:["tagged-rectangle","tag-proc","tagged-process"],handler:of},{semanticName:"Paper Tape",name:"Flag",shortName:"flag",description:"Paper tape",aliases:["paper-tape"],handler:gf},{semanticName:"Odd",name:"Odd",shortName:"odd",description:"Odd shape",internalAliases:["rect_left_inv_arrow"],handler:Xd},{semanticName:"Lined Document",name:"Lined Document",shortName:"lin-doc",description:"Lined document",aliases:["lined-document"],handler:Yd}],H1=p(()=>{const t=[...Object.entries({state:rf,choice:yd,note:Gd,rectWithTitle:Zd,labelRect:Nd,iconSquare:Od,iconCircle:Dd,icon:$d,iconRounded:Rd,imageSquare:Id,anchor:pd,kanbanItem:Cf,mindmapCircle:vf,defaultMindmapNode:_f,classBox:xf,erBox:Js,requirementBox:bf}),...q1.flatMap(r=>[r.shortName,..."aliases"in r?r.aliases:[],..."internalAliases"in r?r.internalAliases:[]].map(a=>[a,r.handler]))];return Object.fromEntries(t)},"generateShapeMap"),Sf=H1();function Y1(e){return e in Sf}p(Y1,"isValidShape");var Wa=new Map;async function Tf(e,t,r){let i,a;t.shape==="rect"&&(t.rx&&t.ry?t.shape="roundedRect":t.shape="squareRect");const n=t.shape?Sf[t.shape]:void 0;if(!n)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 n(i,t,r)}else a=await n(e,t,r),i=a;return t.tooltip&&a.attr("title",t.tooltip),Wa.set(t.id,i),t.haveCallback&&i.attr("class",i.attr("class")+" clickable"),i}
239p(Tf,"insertNode");var R_=p((e,t)=>{Wa.set(t.id,e)},"setNodeElem"),O_=p(()=>{Wa.clear()},"clear"),I_=p(e=>{const t=Wa.get(e.id);$.trace("Transforming node",e.diff,e,"translate("+(e.x-e.width/2-5)+", "+e.width/2+")");const 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"),U1=p((e,t,r,i,a,n)=>{t.arrowTypeStart&&bl(e,"start",t.arrowTypeStart,r,i,a,n),t.arrowTypeEnd&&bl(e,"end",t.arrowTypeEnd,r,i,a,n)},"addEdgeMarkers"),j1={arrow_cross:{type:"cross",fill:!1},arrow_point:{type:"point",fill:!0},arrow_barb:{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}},bl=p((e,t,r,i,a,n,s)=>{const o=j1[r];if(!o){$.warn(`Unknown arrow type: ${r}`);return}const l=o.type,h=`${a}_${n}-${l}${t==="start"?"Start":"End"}`;if(s&&s.trim()!==""){const u=s.replace(/[^\dA-Za-z]/g,"_"),d=`${h}_${u}`;if(!document.getElementById(d)){const f=document.getElementById(h);if(f){const g=f.cloneNode(!0);g.id=d,g.querySelectorAll("path, circle, line").forEach(y=>{y.setAttribute("stroke",s),o.fill&&y.setAttribute("fill",s)}),f.parentNode?.appendChild(g)}}e.attr(`marker-${t}`,`url(${i}#${d})`)}else e.attr(`marker-${t}`,`url(${i}#${h})`)},"addEdgeMarker"),_a=new Map,Mt=new Map,P_=p(()=>{_a.clear(),Mt.clear()},"clear"),Di=p(e=>e?e.reduce((r,i)=>r+";"+i,""):"","getLabelStyles"),G1=p(async(e,t)=>{let r=Lt(dt().flowchart.htmlLabels);const{labelStyles:i}=j(t);t.labelStyle=i;const a=await ze(e,t.label,{style:t.labelStyle,useHtmlLabels:r,addSvgBackground:!0,isNode:!1});$.info("abc82",t,t.labelType);const n=e.insert("g").attr("class","edgeLabel"),s=n.insert("g").attr("class","label").attr("data-id",t.id);s.node().appendChild(a);let o=a.getBBox();if(r){const c=a.children[0],h=ht(a);o=c.getBoundingClientRect(),h.attr("width",o.width),h.attr("height",o.height)}s.attr("transform","translate("+-o.width/2+", "+-o.height/2+")"),_a.set(t.id,n),t.width=o.width,t.height=o.height;let l;if(t.startLabelLeft){const c=await Ke(t.startLabelLeft,Di(t.labelStyle)),h=e.insert("g").attr("class","edgeTerminals"),u=h.insert("g").attr("class","inner");l=u.node().appendChild(c);const d=c.getBBox();u.attr("transform","translate("+-d.width/2+", "+-d.height/2+")"),Mt.get(t.id)||Mt.set(t.id,{}),Mt.get(t.id).startLeft=h,Qr(l,t.startLabelLeft)}if(t.startLabelRight){const c=await Ke(t.startLabelRight,Di(t.labelStyle)),h=e.insert("g").attr("class","edgeTerminals"),u=h.insert("g").attr("class","inner");l=h.node().appendChild(c),u.node().appendChild(c);const d=c.getBBox();u.attr("transform","translate("+-d.width/2+", "+-d.height/2+")"),Mt.get(t.id)||Mt.set(t.id,{}),Mt.get(t.id).startRight=h,Qr(l,t.startLabelRight)}if(t.endLabelLeft){const c=await Ke(t.endLabelLeft,Di(t.labelStyle)),h=e.insert("g").attr("class","edgeTerminals"),u=h.insert("g").attr("class","inner");l=u.node().appendChild(c);const d=c.getBBox();u.attr("transform","translate("+-d.width/2+", "+-d.height/2+")"),h.node().appendChild(c),Mt.get(t.id)||Mt.set(t.id,{}),Mt.get(t.id).endLeft=h,Qr(l,t.endLabelLeft)}if(t.endLabelRight){const c=await Ke(t.endLabelRight,Di(t.labelStyle)),h=e.insert("g").attr("class","edgeTerminals"),u=h.insert("g").attr("class","inner");l=u.node().appendChild(c);const d=c.getBBox();u.attr("transform","translate("+-d.width/2+", "+-d.height/2+")"),h.node().appendChild(c),Mt.get(t.id)||Mt.set(t.id,{}),Mt.get(t.id).endRight=h,Qr(l,t.endLabelRight)}return a},"insertEdgeLabel");function Qr(e,t){dt().flowchart.htmlLabels&&e&&(e.style.width=t.length*9+"px",e.style.height="12px")}p(Qr,"setTerminalWidth");var V1=p((e,t)=>{$.debug("Moving label abc88 ",e.id,e.label,_a.get(e.id),t);let r=t.updatedPath?t.updatedPath:t.originalPath;const i=dt(),{subGraphTitleTotalMargin:a}=$s(i);if(e.label){const n=_a.get(e.id);let s=e.x,o=e.y;if(r){const l=oe.calcLabelPosition(r);$.debug("Moving label "+e.label+" from (",s,",",o,") to (",l.x,",",l.y,") abc88"),t.updatedPath&&(s=l.x,o=l.y)}n.attr("transform",`translate(${s}, ${o+a/2})`)}if(e.startLabelLeft){const n=Mt.get(e.id).startLeft;let s=e.x,o=e.y;if(r){const l=oe.calcTerminalLabelPosition(e.arrowTypeStart?10:0,"start_left",r);s=l.x,o=l.y}n.attr("transform",`translate(${s}, ${o})`)}if(e.startLabelRight){const n=Mt.get(e.id).startRight;let s=e.x,o=e.y;if(r){const l=oe.calcTerminalLabelPosition(e.arrowTypeStart?10:0,"start_right",r);s=l.x,o=l.y}n.attr("transform",`translate(${s}, ${o})`)}if(e.endLabelLeft){const n=Mt.get(e.id).endLeft;let s=e.x,o=e.y;if(r){const l=oe.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,"end_left",r);s=l.x,o=l.y}n.attr("transform",`translate(${s}, ${o})`)}if(e.endLabelRight){const n=Mt.get(e.id).endRight;let s=e.x,o=e.y;if(r){const l=oe.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,"end_right",r);s=l.x,o=l.y}n.attr("transform",`translate(${s}, ${o})`)}},"positionEdgeLabel"),X1=p((e,t)=>{const r=e.x,i=e.y,a=Math.abs(t.x-r),n=Math.abs(t.y-i),s=e.width/2,o=e.height/2;return a>=s||n>=o},"outsideNode"),Z1=p((e,t,r)=>{$.debug(`intersection calc abc89:
240  outsidePoint: ${JSON.stringify(t)}
241  insidePoint : ${JSON.stringify(r)}
242  node        : x:${e.x} y:${e.y} w:${e.width} h:${e.height}`);
242const i=e.x,a=e.y,n=Math.abs(i-r.x),s=e.width/2;let o=r.x<t.x?s-n:s+n;const l=e.height/2,c=Math.abs(t.y-r.y),h=Math.abs(t.x-r.x);if(Math.abs(a-t.y)*s>Math.abs(i-t.x)*l){let u=r.y<t.y?t.y-l-a:a-l-t.y;o=h*u/c;const d={x:r.x<t.x?r.x+o:r.x-h+o,y:r.y<t.y?r.y+c-u:r.y-c+u};return o===0&&(d.x=t.x,d.y=t.y),h===0&&(d.x=t.x),c===0&&(d.y=t.y),$.debug(`abc89 top/bottom calc, Q ${c}, q ${u}, R ${h}, r ${o}`,d),d}else{r.x<t.x?o=t.x-s-i:o=i-s-t.x;let u=c*o/h,d=r.x<t.x?r.x+h-o:r.x-h+o,f=r.y<t.y?r.y+u:r.y-u;return $.debug(`sides calc abc89, Q ${c}, q ${u}, R ${h}, r ${o}`,{_x:d,_y:f}),o===0&&(d=t.x,f=t.y),h===0&&(d=t.x),c===0&&(f=t.y),{x:d,y:f}}},"intersection"),Cl=p((e,t)=>{$.warn("abc88 cutPathAtIntersect",e,t);let r=[],i=e[0],a=!1;return e.forEach(n=>{if($.info("abc88 checking point",n,t),!X1(t,n)&&!a){const s=Z1(t,i,n);$.debug("abc88 inside",n,i,s),$.debug("abc88 intersection",s,t);let o=!1;r.forEach(l=>{o=o||l.x===s.x&&l.y===s.y}),r.some(l=>l.x===s.x&&l.y===s.y)?$.warn("abc88 no intersect",s,r):r.push(s),a=!0}else $.warn("abc88 outside",n,i),i=n,a||r.push(n)}),$.debug("returning points",r),r},"cutPathAtIntersect");function Lf(e){const t=[],r=[];for(let i=1;i<e.length-1;i++){const a=e[i-1],n=e[i],s=e[i+1];(a.x===n.x&&n.y===s.y&&Math.abs(n.x-s.x)>5&&Math.abs(n.y-a.y)>5||a.y===n.y&&n.x===s.x&&Math.abs(n.x-a.x)>5&&Math.abs(n.y-s.y)>5)&&(t.push(n),r.push(i))}return{cornerPoints:t,cornerPointPositions:r}}p(Lf,"extractCornerPoints");var kl=p(function(e,t,r){const i=t.x-e.x,a=t.y-e.y,n=Math.sqrt(i*i+a*a),s=r/n;return{x:t.x-s*i,y:t.y-s*a}},"findAdjacentPoint"),K1=p(function(e){const{cornerPointPositions:t}=Lf(e),r=[];for(let i=0;i<e.length;i++)if(t.includes(i)){const a=e[i-1],n=e[i+1],s=e[i],o=kl(a,s,5),l=kl(n,s,5),c=l.x-o.x,h=l.y-o.y;r.push(o);const u=Math.sqrt(2)*2;let d={x:s.x,y:s.y};if(Math.abs(n.x-a.x)>10&&Math.abs(n.y-a.y)>=10){$.debug("Corner point fixing",Math.abs(n.x-a.x),Math.abs(n.y-a.y));const f=5;s.x===o.x?d={x:c<0?o.x-f+u:o.x+f-u,y:h<0?o.y-u:o.y+u}:d={x:c<0?o.x-u:o.x+u,y:h<0?o.y-f+u:o.y+f-u}}else $.debug("Corner point skipping fixing",Math.abs(n.x-a.x),Math.abs(n.y-a.y));r.push(d,l)}else r.push(e[i]);return r},"fixCorners"),Q1=p((e,t,r)=>{const i=e-t-r,a=2,n=2,s=a+n,o=Math.floor(i/s),l=Array(o).fill(`${a} ${n}`).join(" ");return`0 ${t} ${l} ${r}`},"generateDashArray"),J1=p(function(e,t,r,i,a,n,s,o=!1){const{handDrawnSeed:l}=dt();let c=t.points,h=!1;const u=a;var d=n;const f=[];for(const L in t.cssCompiledStyles)yu(L)||f.push(t.cssCompiledStyles[L]);$.debug("UIO intersect check",t.points,d.x,u.x),d.intersect&&u.intersect&&!o&&(c=c.slice(1,t.points.length-1),c.unshift(u.intersect(c[0])),$.debug("Last point UIO",t.start,"-->",t.end,c[c.length-1],d,d.intersect(c[c.length-1])),c.push(d.intersect(c[c.length-1])));const g=btoa(JSON.stringify(c));t.toCluster&&($.info("to cluster abc88",r.get(t.toCluster)),c=Cl(t.points,r.get(t.toCluster).node),h=!0),t.fromCluster&&($.debug("from cluster abc88",r.get(t.fromCluster),JSON.stringify(c,null,2)),c=Cl(c.reverse(),r.get(t.fromCluster).node).reverse(),h=!0);let m=c.filter(L=>!Number.isNaN(L.y));m=K1(m);let y=Oi;switch(y=xn,t.curve){case"linear":y=xn;break;case"basis":y=Oi;break;case"cardinal":y=Wl;break;case"bumpX":y=Nl;break;case"bumpY":y=Pl;break;case"catmullRom":y=Hl;break;case"monotoneX":y=Il;break;case"monotoneY":y=Ol;break;case"natural":y=Rl;break;case"step":y=Dl;break;case"stepAfter":y=$l;break;case"stepBefore":y=Fl;break;default:y=Oi}const{x,y:b}=Sb(t),C=zp().x(x).y(b).curve(y);let _;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 w,B=t.curve==="rounded"?Bf(Af(m,t),5):C(m);const S=Array.isArray(t.style)?t.style:[t.style];let D=S.find(L=>L?.startsWith("stroke:")),I=!1;if(t.look==="handDrawn"){const L=Y.svg(e);Object.assign([],m);const A=L.path(B,{roughness:.3,seed:l});_+=" transition",w=ht(A).select("path").attr("id",t.id).attr("class"," "+_+(t.classes?" "+t.classes:"")).attr("style",S?S.reduce((F,M)=>F+";"+M,""):"");let T=w.attr("d");
vendor: 11,273 bytes, lines 242-245
242w.attr("d",T),e.node().appendChild(w.node())}else{const L=f.join(";"),A=S?S.reduce((J,Z)=>J+Z+";",""):"";let T="";t.animate&&(T=" edge-animation-fast"),t.animation&&(T=" edge-animation-"+t.animation);const F=(L?L+";"+A+";":A)+";"+(S?S.reduce((J,Z)=>J+";"+Z,""):"");w=e.append("path").attr("d",B).attr("id",t.id).attr("class"," "+_+(t.classes?" "+t.classes:"")+(T??"")).attr("style",F),D=F.match(/stroke:([^;]+)/)?.[1],I=t.animate===!0||!!t.animation||L.includes("animation");const M=w.node(),q=typeof M.getTotalLength=="function"?M.getTotalLength():0,V=Zo[t.arrowTypeStart]||0,K=Zo[t.arrowTypeEnd]||0;if(t.look==="neo"&&!I){const Z=`stroke-dasharray: ${t.pattern==="dotted"||t.pattern==="dashed"?Q1(q,V,K):`0 ${V} ${q-V-K} ${K}`}; stroke-dashoffset: 0;`;w.attr("style",Z+w.attr("style"))}}w.attr("data-edge",!0),w.attr("data-et","edge"),w.attr("data-id",t.id),w.attr("data-points",g),t.showPoints&&m.forEach(L=>{e.append("circle").style("stroke","red").style("fill","red").attr("r",1).attr("cx",L.x).attr("cy",L.y)});let R="";(dt().flowchart.arrowMarkerAbsolute||dt().state.arrowMarkerAbsolute)&&(R=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,R=R.replace(/\(/g,"\\(").replace(/\)/g,"\\)")),$.info("arrowTypeStart",t.arrowTypeStart),$.info("arrowTypeEnd",t.arrowTypeEnd),U1(w,t,R,s,i,D);const E=Math.floor(c.length/2),N=c[E];oe.isLabelCoordinateInPath(N,w.attr("d"))||(h=!0);let O={};return h&&(O.updatedPath=c),O.originalPath=t.points,O},"insertEdge");function Bf(e,t){if(e.length<2)return"";let r="";const i=e.length,a=1e-5;for(let n=0;n<i;n++){const s=e[n],o=e[n-1],l=e[n+1];if(n===0)r+=`M${s.x},${s.y}`;else if(n===i-1)r+=`L${s.x},${s.y}`;else{const c=s.x-o.x,h=s.y-o.y,u=l.x-s.x,d=l.y-s.y,f=Math.hypot(c,h),g=Math.hypot(u,d);if(f<a||g<a){r+=`L${s.x},${s.y}`;continue}const m=c/f,y=h/f,x=u/g,b=d/g,C=m*x+y*b,_=Math.max(-1,Math.min(1,C)),w=Math.acos(_);if(w<a||Math.abs(Math.PI-w)<a){r+=`L${s.x},${s.y}`;continue}const B=Math.min(t/Math.sin(w/2),f/2,g/2),S=s.x-m*B,D=s.y-y*B,I=s.x+x*B,R=s.y+b*B;r+=`L${S},${D}`,r+=`Q${s.x},${s.y} ${I},${R}`}}return r}p(Bf,"generateRoundedPath");function is(e,t){if(!e||!t)return{angle:0,deltaX:0,deltaY:0};const r=t.x-e.x,i=t.y-e.y;return{angle:Math.atan2(i,r),deltaX:r,deltaY:i}}p(is,"calculateDeltaAndAngle");function Af(e,t){const r=e.map(a=>({...a}));if(e.length>=2&&$t[t.arrowTypeStart]){const a=$t[t.arrowTypeStart],n=e[0],s=e[1],{angle:o}=is(n,s),l=a*Math.cos(o),c=a*Math.sin(o);r[0].x=n.x+l,r[0].y=n.y+c}const i=e.length;if(i>=2&&$t[t.arrowTypeEnd]){const a=$t[t.arrowTypeEnd],n=e[i-1],s=e[i-2],{angle:o}=is(s,n),l=a*Math.cos(o),c=a*Math.sin(o);r[i-1].x=n.x-l,r[i-1].y=n.y-c}return r}p(Af,"applyMarkerOffsetsToPoints");var tC=p((e,t,r,i)=>{t.forEach(a=>{mC[a](e,r,i)})},"insertMarkers"),eC=p((e,t,r)=>{$.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",190).attr("markerHeight",240).attr("orient","auto").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").append("path").attr("d","M 1,1 V 13 L18,7 Z")},"extension"),rC=p((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").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").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"composition"),iC=p((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").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").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"aggregation"),aC=p((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").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").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},"dependency"),nC=p((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").append("circle").attr("stroke","black").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").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6)},"lollipop"),sC=p((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")},"point"),oC=p((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")},"circle"),lC=p((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")},"cross"),cC=p((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"),hC=p((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"),uC=p((e,t,r)=>{const 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");const 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"),dC=p((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"),fC=p((e,t,r)=>{const 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");const 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"),pC=p((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
243      L20,10
244      M20,10
245      L0,20`)},"requirement_arrow"),gC=p((e,t,r)=>{const i=e.append("defs").append("marker").attr("id",r+"_"+t+"-requirement_c
245ontainsStart").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"),mC={extension:eC,composition:rC,aggregation:iC,dependency:aC,lollipop:nC,point:sC,circle:oC,cross:lC,barb:cC,only_one:hC,zero_or_one:uC,one_or_more:dC,zero_or_more:fC,requirement_arrow:pC,requirement_contains:gC},yC=tC,xC={common:Lr,getConfig:Dt,insertCluster:T1,insertEdge:J1,insertEdgeLabel:G1,insertMarkers:yC,insertNode:Tf,interpolateToCurve:Ds,labelHelper:it,log:$,positionEdgeLabel:V1},hi={},Mf=p(e=>{for(const t of e)hi[t.name]=t},"registerLayoutLoaders"),bC=p(()=>{Mf([{name:"dagre",loader:p(async()=>await pt(()=>import("./dagre-6UL2VRFP-Z6GdhQuc.js"),__vite__mapDeps([0,1,2,3])),"loader")},{name:"cose-bilkent",loader:p(async()=>await pt(()=>import("./cose-bilkent-S5V4N54A-BYw4WprQ.js"),__vite__mapDeps([4,5,2])),"loader")}])},"registerDefaultLayoutLoaders");bC();var N_=p(async(e,t)=>{if(!(e.layoutAlgorithm in hi))throw new Error(`Unknown layout algorithm: ${e.layoutAlgorithm}`);const r=hi[e.layoutAlgorithm];return(await r.loader()).render(e,t,xC,{algorithm:r.algorithm})},"render"),z_=p((e="",{fallback:t="dagre"}={})=>{if(e in hi)return e;if(t in hi)return $.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"),Ef="comm",Ff="rule",$f="decl",CC="@import",kC="@namespace",wC="@keyframes",_C="@layer",Df=Math.abs,to=String.fromCharCode;function Rf(e){return e.trim()}function Vi(e,t,r){return e.replace(t,r)}function vC(e,t,r){return e.indexOf(t,r)}function yr(e,t){return e.charCodeAt(t)|0}function Sr(e,t,r){return e.slice(t,r)}function ye(e){return e.length}function SC(e){return e.length}function Ri(e,t){return t.push(e),e}var qa=1,Tr=1,Of=0,te=0,wt=0,Mr="";function eo(e,t,r,i,a,n,s,o){return{value:e,root:t,parent:r,type:i,props:a,children:n,line:qa,column:Tr,length:s,return:"",siblings:o}}function TC(){return wt}function LC(){return wt=te>0?yr(Mr,--te):0,Tr--,wt===10&&(Tr=1,qa--),wt}function ce(){return wt=te<Of?yr(Mr,te++):0,Tr++,wt===10&&(Tr=1,qa++),wt}function Re(){return yr(Mr,te)}function Xi(){return te}function Ha(e,t){return Sr(Mr,e,t)}function ui(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}function BC(e){return qa=Tr=1,Of=ye(Mr=e),te=0,[]}function AC(e){return Mr="",e}function mn(e){return Rf(Ha(te-1,as(e===91?e+2:e===40?e+1:e)))}function MC(e){for(;(wt=Re())&&wt<33;)ce();return ui(e)>2||ui(wt)>3?"":" "}function EC(e,t){for(;--t&&ce()&&!(wt<48||wt>102||wt>57&&wt<65||wt>70&&wt<97););return Ha(e,Xi()+(t<6&&Re()==32&&ce()==32))}function as(e){for(;ce();)switch(wt){case e:return te;case 34:case 39:e!==34&&e!==39&&as(wt);break;case 40:e===41&&as(e);break;case 92:ce();break}return te}function FC(e,t){for(;ce()&&e+wt!==57;)if(e+wt===84&&Re()===47)break;return"/*"+Ha(t,te-1)+"*"+to(e===47?e:ce())}function $C(e){for(;!ui(Re());)ce();return Ha(e,te)}function DC(e){return AC(Zi("",null,null,null,[""],e=BC(e),0,[0],e))}function Zi(e,t,r,i,a,n,s,o,l){for(var c=0,h=0,u=s,d=0,f=0,g=0,m=1,y=1,x=1,b=0,C="",_=a,w=n,B=i,S=C;y;)switch(g=b,b=ce()){case 40:if(g!=108&&yr(S,u-1)==58){vC(S+=Vi(mn(b),"&","&\f"),"&\f",Df(c?o[c-1]:0))!=-1&&(x=-1);break}case 34:case 39:case 91:S+=mn(b);break;case 9:case 10:case 13:case 32:S+=MC(g);break;case 92:S+=EC(Xi()-1,7);continue;case 47:switch(Re()){case 42:case 47:Ri(RC(FC(ce(),Xi()),t,r,l),l),(ui(g||1)==5||ui(Re()||1)==5)&&ye(S)&&Sr(S,-1,void 0)!==" "&&(S+=" ");break;default:S+="/"}break;case 123*m:o[c++]=ye(S)*x;case 125*m:case 59:case 0:switch(b){case 0:case 125:y=0;case 59+h:x==-1&&(S=Vi(S,/\f/g,"")),f>0&&(ye(S)-u||m===0&&g===47)&&Ri(f>32?_l(S+";",i,r,u-1,l):_l(Vi(S," ","")+";",i,r,u-2,l),l);break;case 59:S+=";";default:if(Ri(B=wl(S,t,r,c,h,a,o,C,_=[],w=[],u,n),n),b===123)if(h===0)Zi(S,t,B,B,_,n,u,o,w);else{switch(d){case 99:if(yr(S,3)===110)break;case 108:if(yr(S,2)===97)break;default:h=0;case 100:case 109:case 115:}h?Zi(e,B,B,i&&Ri(wl(e,B,B,0,0,a,o,C,a,_=[],u,w),w),a,w,u,o,i?_:w):Zi(S,B,B,B,[""],w,0,o,w)}}c=h=f=0,m=x=1,C=S="",u=s;break;case 58:u=1+ye(S),f=g;default:if(m<1){if(b==123)--m;else if(b==125&&m++==0&&LC()==125)continue}switch(S+=to(b),b*m){case 38:x=h>0?1:(S+="\f",-1);break;case 44:o[c++]=(ye(S)-1)*x,x=1;break;case 64:Re()===45&&(S+=mn(ce())),d=Re(),h=u=ye(C=S+=$C(Xi())),b++;break;case 45:g===45&&ye(S)==2&&(m=0)}}return n}
245function wl(e,t,r,i,a,n,s,o,l,c,h,u){for(var d=a-1,f=a===0?n:[""],g=SC(f),m=0,y=0,x=0;m<i;++m)for(var b=0,C=Sr(e,d+1,d=Df(y=s[m])),_=e;b<g;++b)(_=Rf(y>0?f[b]+" "+C:Vi(C,/&\f/g,f[b])))&&(l[x++]=_);return eo(e,t,r,a===0?Ff:o,l,c,h,u)}function RC(e,t,r,i){return eo(e,t,r,Ef,to(TC()),Sr(e,2,-2),0,i)}function _l(e,t,r,i,a){return eo(e,t,r,$f,Sr(e,0,i),Sr(e,i+1,-1),i,a)}function ns(e,t){for(var r="",i=0;i<e.length;i++)r+=t(e[i],i,e,t)||"";return r}function OC(e,t,r,i){switch(e.type){case _C:if(e.children.length)break;case CC:case kC:case $f:return e.return=e.return||e.value;case Ef:return"";case wC:return e.return=e.value+"{"+ns(e.children,i)+"}";case Ff:if(!ye(e.value=e.props.join(",")))return""}return ye(r=ns(e.children,i))?e.return=e.value+"{"+r+"}":""}var If="c4",IC=p(e=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(e),"detector"),PC=p(async()=>{const{diagram:e}=await pt(async()=>{const{diagram:t}=await import("./c4Diagram-YG6GDRKO-HD35a8wI.js");return{diagram:t}},__vite__mapDeps([6,7]));return{id:If,diagram:e}},"loader"),NC={id:If,detector:IC,loader:PC},zC=NC,Pf="flowchart",WC=p((e,t)=>t?.flowchart?.defaultRenderer==="dagre-wrapper"||t?.flowchart?.defaultRenderer==="elk"?!1:/^\s*graph/.test(e),"detector"),qC=p(async()=>{const{diagram:e}=await pt(async()=>{const{diagram:t}=await import("./flowDiagram-NV44I4VS-BYxKYVjM.js");return{diagram:t}},__vite__mapDeps([8,9,10,11,12]));return{id:Pf,diagram:e}},"loader"),HC={id:Pf,detector:WC,loader:qC},YC=HC,Nf="flowchart-v2",UC=p((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"),jC=p(async()=>{const{diagram:e}=await pt(async()=>{const{diagram:t}=await import("./flowDiagram-NV44I4VS-BYxKYVjM.js");return{diagram:t}},__vite__mapDeps([8,9,10,11,12]));return{id:Nf,diagram:e}},"loader"),GC={id:Nf,detector:UC,loader:jC},VC=GC,zf="er",XC=p(e=>/^\s*erDiagram/.test(e),"detector"),ZC=p(async()=>{const{diagram:e}=await pt(async()=>{const{diagram:t}=await import("./erDiagram-Q2GNP2WA-BMU6mR0P.js");return{diagram:t}},__vite__mapDeps([13,10,11,12]));return{id:zf,diagram:e}},"loader"),KC={id:zf,detector:XC,loader:ZC},QC=KC,Wf="gitGraph",JC=p(e=>/^\s*gitGraph/.test(e),"detector"),tk=p(async()=>{const{diagram:e}=await pt(async()=>{const{diagram:t}=await import("./gitGraphDiagram-NY62KEGX-YoohI6kz.js");return{diagram:t}},__vite__mapDeps([14,15,16,17,18,2]));return{id:Wf,diagram:e}},"loader"),ek={id:Wf,detector:JC,loader:tk},rk=ek,qf="gantt",ik=p(e=>/^\s*gantt/.test(e),"detector"),ak=p(async()=>{const{diagram:e}=await pt(async()=>{const{diagram:t}=await import("./ganttDiagram-JELNMOA3-y8EMKRFF.js");return{diagram:t}},__vite__mapDeps([19,2,20,21,22,23,24]));return{id:qf,diagram:e}},"loader"),nk={id:qf,detector:ik,loader:ak},sk=nk,Hf="info",ok=p(e=>/^\s*info/.test(e),"detector"),lk=p(async()=>{const{diagram:e}=await pt(async()=>{const{diagram:t}=await import("./infoDiagram-WHAUD3N6-pCHt0UZ3.js");return{diagram:t}},__vite__mapDeps([25,17,18,2]));return{id:Hf,diagram:e}},"loader"),ck={id:Hf,detector:ok,loader:lk},Yf="pie",hk=p(e=>/^\s*pie/.test(e),"detector"),uk=p(async()=>{const{diagram:e}=await pt(async()=>{const{diagram:t}=await import("./pieDiagram-ADFJNKIX-C-2SDddU.js");return{diagram:t}},__vite__mapDeps([26,15,17,18,2,27,22,28,23]));return{id:Yf,diagram:e}},"loader"),dk={id:Yf,detector:hk,loader:uk},Uf="quadrantChart",fk=p(e=>/^\s*quadrantChart/.test(e),"detector"),pk=p(async()=>{const{diagram:e}=await pt(async()=>{const{diagram:t}=await import("./quadrantDiagram-AYHSOK5B-CbJT3NuT.js");return{diagram:t}},__vite__mapDeps([29,21,22,23,24]));return{id:Uf,diagram:e}},"loader"),gk={id:Uf,detector:fk,loader:pk},mk=gk,jf="xychart",yk=p(e=>/^\s*xychart(-beta)?/.test(e),"detector"),xk=p(async()=>{const{diagram:e}=await pt(async()=>{const{diagram:t}=await import("./xychartDiagram-PRI3JC2R-DJI8LZzS.js");return{diagram:t}},__vite__mapDeps([30,31,23,28,21,22,24]));return{id:jf,diagram:e}},"loader"),bk={id:jf,detector:yk,loader:xk}
245,Ck=bk,Gf="requirement",kk=p(e=>/^\s*requirement(Diagram)?/.test(e),"detector"),wk=p(async()=>{const{diagram:e}=await pt(async()=>{const{diagram:t}=await import("./requirementDiagram-UZGBJVZJ-B4AbneYY.js");return{diagram:t}},__vite__mapDeps([32,10,11]));return{id:Gf,diagram:e}},"loader"),_k={id:Gf,detector:kk,loader:wk},vk=_k,Vf="sequence",Sk=p(e=>/^\s*sequenceDiagram/.test(e),"detector"),Tk=p(async()=>{const{diagram:e}=await pt(async()=>{const{diagram:t}=await import("./sequenceDiagram-WL72ISMW-BLFcXvtI.js");return{diagram:t}},__vite__mapDeps([33,7,16]));return{id:Vf,diagram:e}},"loader"),Lk={id:Vf,detector:Sk,loader:Tk},Bk=Lk,Xf="class",Ak=p((e,t)=>t?.class?.defaultRenderer==="dagre-wrapper"?!1:/^\s*classDiagram/.test(e),"detector"),Mk=p(async()=>{const{diagram:e}=await pt(async()=>{const{diagram:t}=await import("./classDiagram-2ON5EDUG-0GGIF90w.js");return{diagram:t}},__vite__mapDeps([34,35,9,10,11]));return{id:Xf,diagram:e}},"loader"),Ek={id:Xf,detector:Ak,loader:Mk},Fk=Ek,Zf="classDiagram",$k=p((e,t)=>/^\s*classDiagram/.test(e)&&t?.class?.defaultRenderer==="dagre-wrapper"?!0:/^\s*classDiagram-v2/.test(e),"detector"),Dk=p(async()=>{const{diagram:e}=await pt(async()=>{const{diagram:t}=await import("./classDiagram-v2-WZHVMYZB-2YUyWkQg.js");return{diagram:t}},__vite__mapDeps([36,35,9,10,11]));return{id:Zf,diagram:e}},"loader"),Rk={id:Zf,detector:$k,loader:Dk},Ok=Rk,Kf="state",Ik=p((e,t)=>t?.state?.defaultRenderer==="dagre-wrapper"?!1:/^\s*stateDiagram/.test(e),"detector"),Pk=p(async()=>{const{diagram:e}=await pt(async()=>{const{diagram:t}=await import("./stateDiagram-FKZM4ZOC-BH8Yi6ds.js");return{diagram:t}},__vite__mapDeps([37,38,10,11,1,2,3,22]));return{id:Kf,diagram:e}},"loader"),Nk={id:Kf,detector:Ik,loader:Pk},zk=Nk,Qf="stateDiagram",Wk=p((e,t)=>!!(/^\s*stateDiagram-v2/.test(e)||/^\s*stateDiagram/.test(e)&&t?.state?.defaultRenderer==="dagre-wrapper"),"detector"),qk=p(async()=>{const{diagram:e}=await pt(async()=>{const{diagram:t}=await import("./stateDiagram-v2-4FDKWEC3-CzA7y7zm.js");return{diagram:t}},__vite__mapDeps([39,38,10,11]));return{id:Qf,diagram:e}},"loader"),Hk={id:Qf,detector:Wk,loader:qk},Yk=Hk,Jf="journey",Uk=p(e=>/^\s*journey/.test(e),"detector"),jk=p(async()=>{const{diagram:e}=await pt(async()=>{const{diagram:t}=await import("./journeyDiagram-XKPGCS4Q-B984NDDh.js");return{diagram:t}},__vite__mapDeps([40,7,9,27,22]));return{id:Jf,diagram:e}},"loader"),Gk={id:Jf,detector:Uk,loader:jk},Vk=Gk,Xk=p((e,t,r)=>{$.debug(`rendering svg for syntax error
246`);const i=yx(t),a=i.append("g");i.attr("viewBox","0 0 2412 512"),pc(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.
246164-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"),tp={draw:Xk},Zk=tp,Kk={db:{},renderer:tp,parser:{parse:p(()=>{},"parse")}},Qk=Kk,ep="flowchart-elk",Jk=p((e,t={})=>/^\s*flowchart-elk/.test(e)||/^\s*(flowchart|graph)/.test(e)&&t?.flowchart?.defaultRenderer==="elk"?(t.layout="elk",!0):!1,"detector"),tw=p(async()=>{const{diagram:e}=await pt(async()=>{const{diagram:t}=await import("./flowDiagram-NV44I4VS-BYxKYVjM.js");return{diagram:t}},__vite__mapDeps([8,9,10,11,12]));return{id:ep,diagram:e}},"loader"),ew={id:ep,detector:Jk,loader:tw},rw=ew,rp="timeline",iw=p(e=>/^\s*timeline/.test(e),"detector"),aw=p(async()=>{const{diagram:e}=await pt(async()=>{const{diagram:t}=await import("./timeline-definition-IT6M3QCI-CSla5FGY.js");return{diagram:t}},__vite__mapDeps([41,27,22]));return{id:rp,diagram:e}},"loader"),nw={id:rp,detector:iw,loader:aw},sw=nw,ip="mindmap",ow=p(e=>/^\s*mindmap/.test(e),"detector"),lw=p(async()=>{const{diagram:e}=await pt(async()=>{const{diagram:t}=await import("./mindmap-definition-VGOIOE7T-D7wNqg_b.js");return{diagram:t}},__vite__mapDeps([42,10,11]));return{id:ip,diagram:e}},"loader"),cw={id:ip,detector:ow,loader:lw},hw=cw,ap="kanban",uw=p(e=>/^\s*kanban/.test(e),"detector"),dw=p(async()=>{const{diagram:e}=await pt(async()=>{const{diagram:t}=await import("./kanban-definition-3W4ZIXB7--Q6fDer8.js");return{diagram:t}},__vite__mapDeps([43,9]));return{id:ap,diagram:e}},"loader"),fw={id:ap,detector:uw,loader:dw},pw=fw,np="sankey",gw=p(e=>/^\s*sankey(-beta)?/.test(e),"detector"),mw=p(async()=>{const{diagram:e}=await pt(async()=>{const{diagram:t}=await import("./sankeyDiagram-TZEHDZUN-BvMthYFJ.js");return{diagram:t}},__vite__mapDeps([44,28,23]));return{id:np,diagram:e}},"loader"),yw={id:np,detector:gw,loader:mw},xw=yw,sp="packet",bw=p(e=>/^\s*packet(-beta)?/.test(e),"detector"),Cw=p(async()=>{const{diagram:e}=await pt(async()=>{const{diagram:t}=await import("./diagram-S2PKOQOG-tq_El6oT.js");return{diagram:t}},__vite__mapDeps([45,15,17,18,2]));return{id:sp,diagram:e}},"loader"),kw={id:sp,detector:bw,loader:Cw},op="radar",ww=p(e=>/^\s*radar-beta/.test(e),"detector"),_w=p(async()=>{const{diagram:e}=await pt(async()=>{const{diagram:t}=await import("./diagram-QEK2KX5R-DWluzBI3.js");return{diagram:t}},__vite__mapDeps([46,15,17,18,2]));return{id:op,diagram:e}},"loader"),vw={id:op,detector:ww,loader:_w},lp="block",Sw=p(e=>/^\s*block(-beta)?/.test(e),"detector"),Tw=p(async()=>{const{diagram:e}=await pt(async()=>{const{diagram:t}=await import("./blockDiagram-VD42YOAC-0IInrG6a.js");return{diagram:t}},__vite__mapDeps([47,9,2,1,12,22]));return{id:lp,diagram:e}},"loader"),Lw={id:lp,detector:Sw,loader:Tw},Bw=Lw,cp="architecture",Aw=p(e=>/^\s*architecture/.test(e),"detector"),Mw=p(async()=>{const{diagram:e}=await pt(async()=>{const{diagram:t}=await import("./architectureDiagram-VXUJARFQ-C-MmQaPx.js");return{diagram:t}},__vite__mapDeps([48,15,17,18,2,5]));return{id:cp,diagram:e}},"loader"),Ew={id:cp,detector:Aw,loader:Mw},Fw=Ew,hp="treemap",$w=p(e=>/^\s*treemap/.test(e),"detector"),Dw=p(async()=>{const{diagram:e}=await pt(async()=>{const{diagram:t}=await import("./diagram-PSM6KHXK-CYenVdPx.js");return{diagram:t}},__vite__mapDeps([49,11,15,17,18,2,24,28,23]));return{id:hp,diagram:e}},"loader"),Rw={id:hp,detector:$w,loader:Dw},vl=!1,Ya=p(()=>{vl||(vl=!0,ia("error",Qk,e=>e.toLowerCase().trim()==="error"),ia("---",{db:{clear:p(()=>{},"clear")},styles:{},renderer:{draw:p(()=>{},"draw")},parser:{parse:p(()=>{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:p(()=>null,"init")},e=>e.toLowerCase().trimStart().startsWith("---")),_n(rw,hw,Fw),_n(zC,pw,Ok,Fk,QC,sk,ck,dk,vk,Bk,VC,YC,sw,rk,Yk,zk,Vk,mk,xw,kw,Ck,Bw,vw,Rw))},"addDiagrams"),Ow=p(async()=>{$.debug("Loading registered diagrams");const t=(await Promise.allSettled(Object.entries(Qe).map(async([r,{detector:i,loader:a}])=>{if(a)try{Ln(r)}catch{try{const{diagram:n,id:s}=await a();
246ia(s,n,i)}catch(n){throw $.error(`Failed to load external diagram with key ${r}. Removing from detectors.`),delete Qe[r],n}}}))).filter(r=>r.status==="rejected");if(t.length>0){$.error(`Failed to load ${t.length} external diagrams`);for(const r of t)$.error(r);throw new Error(`Failed to load ${t.length} external diagrams`)}},"loadRegisteredDiagrams"),Iw="graphics-document document";function up(e,t){e.attr("role",Iw),t!==""&&e.attr("aria-roledescription",t)}p(up,"setA11yDiagramInfo");function dp(e,t,r,i){if(e.insert!==void 0){if(r){const a=`chart-desc-${i}`;e.attr("aria-describedby",a),e.insert("desc",":first-child").attr("id",a).text(r)}if(t){const a=`chart-title-${i}`;e.attr("aria-labelledby",a),e.insert("title",":first-child").attr("id",a).text(t)}}}p(dp,"addSVGa11yTitleDescription");var ss=class fp{constructor(t,r,i,a,n){this.type=t,this.text=r,this.db=i,this.parser=a,this.renderer=n}static{p(this,"Diagram")}static async fromText(t,r={}){const i=Dt(),a=ps(t,i);t=Xb(t)+`
247`;try{Ln(a)}catch{const c=Mg(a);if(!c)throw new rc(`Diagram ${a} not found.`);const{id:h,diagram:u}=await c();ia(h,u)}const{db:n,parser:s,renderer:o,init:l}=Ln(a);return s.parser&&(s.parser.yy=n),n.clear?.(),l?.(i),r.title&&n.setDiagramTitle?.(r.title),await s.parse(t),new fp(a,t,n,s,o)}async render(t,r){await this.renderer.draw(this.text,t,r,this)}getParser(){return this.parser}getType(){return this.type}},Sl=[],Pw=p(()=>{Sl.forEach(e=>{e()}),Sl=[]},"attachFunctions"),Nw=p(e=>e.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart(),"cleanupComments");function pp(e){const t=e.match(ec);if(!t)return{text:e,metadata:{}};let r=vb(t[1],{schema:_b})??{};r=typeof r=="object"&&!Array.isArray(r)?r:{};const i={};return r.displayMode&&(i.displayMode=r.displayMode.toString()),r.title&&(i.title=r.title.toString()),r.config&&(i.config=r.config),{text:e.slice(t[0].length),metadata:i}}p(pp,"extractFrontMatter");var zw=p(e=>e.replace(/\r\n?/g,`
248`).replace(/<(\w+)([^>]*)>/g,(t,r,i)=>"<"+r+i.replace(/="([^"]*)"/g,"='$1'")+">"),"cleanupText"),Ww=p(e=>{const{text:t,metadata:r}=pp(e),{displayMode:i,title:a,config:n={}}=r;return i&&(n.gantt||(n.gantt={}),n.gantt.displayMode=i),{title:a,config:n,text:t}},"processFrontmatter"),qw=p(e=>{const t=oe.detectInit(e)??{},r=oe.detectDirective(e,"wrap");return Array.isArray(r)?t.wrap=r.some(({type:i})=>i==="wrap"):r?.type==="wrap"&&(t.wrap=!0),{text:Ob(e),directive:t}},"processDirectives");function ro(e){const t=zw(e),r=Ww(t),i=qw(r.text),a=Ns(r.config,i.directive);return e=Nw(i.text),{code:e,title:r.title,config:a}}p(ro,"preprocessDiagram");function gp(e){const t=new TextEncoder().encode(e),r=Array.from(t,i=>String.fromCodePoint(i)).join("");return btoa(r)}p(gp,"toBase64");var Hw=5e4,Yw="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa",Uw="sandbox",jw="loose",Gw="http://www.w3.org/2000/svg",Vw="http://www.w3.org/1999/xlink",Xw="http://www.w3.org/1999/xhtml",Zw="100%",Kw="100%",Qw="border:0;margin:0;",Jw="margin:0",t_="allow-top-navigation-by-user-activation allow-popups",e_='The "iframe" tag is not supported by your browser.',r_=["foreignobject"],i_=["dominant-baseline"];function io(e){const t=ro(e);return ea(),jg(t.config??{}),t}p(io,"processAndSetConfigs");async function mp(e,t){Ya();try{const{code:r,config:i}=io(e);return{diagramType:(await xp(r)).type,config:i}}catch(r){if(t?.suppressErrors)return!1;throw r}}p(mp,"parse");var Tl=p((e,t,r=[])=>`
249.${e} ${t} { ${r.join(" !important; ")} !important; }`,"cssImportantStyles"),a_=p((e,t=new Map)=>{let r="";if(e.themeCSS!==void 0&&(r+=`
250${e.themeCSS}`),e.fontFamily!==void 0&&(r+=`
251:root { --mermaid-font-family: ${e.fontFamily}}`),e.altFontFamily!==void 0&&(r+=`
252:root { --mermaid-alt-font-family: ${e.altFontFamily}}`),t instanceof Map){const s=e.htmlLabels??e.flowchart?.htmlLabels?["> *","span"]:["rect","polygon","ellipse","circle","path"];t.forEach(o=>{wo(o.styles)||s.forEach(l=>{r+=Tl(o.id,l,o.styles)}
252),wo(o.textStyles)||(r+=Tl(o.id,"tspan",(o?.textStyles||[]).map(l=>l.replace("color","fill"))))})}return r},"createCssStyles"),n_=p((e,t,r,i)=>{const a=a_(e,r),n=dm(t,a,e.themeVariables);return ns(DC(`${i}{${n}}`),OC)},"createUserStyles"),s_=p((e="",t,r)=>{let i=e;return!r&&!t&&(i=i.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,'marker-end="url(#')),i=ar(i),i=i.replace(/<br>/g,"<br/>"),i},"cleanUpSvgCode"),o_=p((e="",t)=>{const r=t?.viewBox?.baseVal?.height?t.viewBox.baseVal.height+"px":Kw,i=gp(`<body style="${Jw}">${e}</body>`);return`<iframe style="width:${Zw};height:${r};${Qw}" src="data:text/html;charset=UTF-8;base64,${i}" sandbox="${t_}">
253  ${e_}
254</iframe>`},"putIntoIFrame"),Ll=p((e,t,r,i,a)=>{const n=e.append("div");n.attr("id",r),i&&n.attr("style",i);const s=n.append("svg").attr("id",t).attr("width","100%").attr("xmlns",Gw);return a&&s.attr("xmlns:xlink",a),s.append("g"),e},"appendDivSvgG");function os(e,t){return e.append("iframe").attr("id",t).attr("style","width: 100%; height: 100%;").attr("sandbox","")}p(os,"sandboxedIframe");var l_=p((e,t,r,i)=>{e.getElementById(t)?.remove(),e.getElementById(r)?.remove(),e.getElementById(i)?.remove()},"removeExistingElements"),c_=p(async function(e,t,r){Ya();const i=io(t);t=i.code;const a=Dt();$.debug(a),t.length>(a?.maxTextSize??Hw)&&(t=Yw);const n="#"+e,s="i"+e,o="#"+s,l="d"+e,c="#"+l,h=p(()=>{const O=ht(d?o:c).node();O&&"remove"in O&&O.remove()},"removeTempElements");let u=ht("body");const d=a.securityLevel===Uw,f=a.securityLevel===jw,g=a.fontFamily;if(r!==void 0){if(r&&(r.innerHTML=""),d){const N=os(ht(r),s);u=ht(N.nodes()[0].contentDocument.body),u.node().style.margin=0}else u=ht(r);Ll(u,e,l,`font-family: ${g}`,Vw)}else{if(l_(document,e,l,s),d){const N=os(ht("body"),s);u=ht(N.nodes()[0].contentDocument.body),u.node().style.margin=0}else u=ht("body");Ll(u,e,l)}let m,y;try{m=await ss.fromText(t,{title:i.title})}catch(N){if(a.suppressErrorRendering)throw h(),N;m=await ss.fromText("error"),y=N}const x=u.select(c).node(),b=m.type,C=x.firstChild,_=C.firstChild,w=m.renderer.getClasses?.(t,m),B=n_(a,b,w,n),S=document.createElement("style");S.innerHTML=B,C.insertBefore(S,_);try{await m.renderer.draw(t,e,Lo.version,m)}catch(N){throw a.suppressErrorRendering?h():Zk.draw(t,e,Lo.version),N}const D=u.select(`${c} svg`),I=m.db.getAccTitle?.(),R=m.db.getAccDescription?.();bp(b,D,I,R),u.select(`[id="${e}"]`).selectAll("foreignobject > *").attr("xmlns",Xw);let E=u.select(c).node().innerHTML;if($.debug("config.arrowMarkerAbsolute",a.arrowMarkerAbsolute),E=s_(E,d,Lt(a.arrowMarkerAbsolute)),d){const N=u.select(c+" svg").node();E=o_(E,N)}else f||(E=xr.sanitize(E,{ADD_TAGS:r_,ADD_ATTR:i_,HTML_INTEGRATION_POINTS:{foreignobject:!0}}));if(Pw(),y)throw y;return h(),{diagramType:b,svg:E,bindFunctions:m.db.bindFunctions}},"render");function yp(e={}){const t=St({},e);t?.fontFamily&&!t.themeVariables?.fontFamily&&(t.themeVariables||(t.themeVariables={}),t.themeVariables.fontFamily=t.fontFamily),Yg(t),t?.theme&&t.theme in Be?t.themeVariables=Be[t.theme].getThemeVariables(t.themeVariables):t&&(t.themeVariables=Be.default.getThemeVariables(t.themeVariables));const r=typeof t=="object"?Hg(t):oc();fs(r.logLevel),Ya()}p(yp,"initialize");var xp=p((e,t={})=>{const{code:r}=ro(e);return ss.fromText(r,t)},"getDiagramFromText");function bp(e,t,r,i){up(t,e),dp(t,r,i,t.attr("id"))}p(bp,"addA11yInfo");var ir=Object.freeze({render:c_,parse:mp,getDiagramFromText:xp,initialize:yp,getConfig:Dt,setConfig:lc,getSiteConfig:oc,updateSiteConfig:Ug,reset:p(()=>{ea()},"reset"),globalReset:p(()=>{ea(br)},"globalReset"),defaultConfig:br});fs(Dt().logLevel);ea(Dt());var h_=p((e,t,r)=>{$.warn(e),Ps(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"),Cp=p(async function(e={querySelector:".mermaid"}){try{await u_(e)}catch(t){if(Ps(t)&&$.error(t.str),Fe.parseError&&Fe.parseError(t),!e.suppressErrors)throw $.error("Use the suppressErrors option to suppress these errors"),t}},"run"),u_=p(async function({postRenderCallback:e,querySelector:t,nodes:r}={querySelector:".mermaid"}){const i=ir.getConfig();$.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");$.debug(`Found ${a.length} diagrams`),i?.startOnLoad!==void 0&&($.debug("Start On Load: "+i?.startOnLoad),ir.updateSiteConfig({startOnLoad:i?.startOnLoad}
254));const n=new oe.InitIDGenerator(i.deterministicIds,i.deterministicIDSeed);let s;const o=[];for(const l of Array.from(a)){if($.info("Rendering diagram: "+l.id),l.getAttribute("data-processed"))continue;l.setAttribute("data-processed","true");const c=`mermaid-${n.next()}`;s=l.innerHTML,s=Nu(oe.entityDecode(s)).trim().replace(/<br\s*\/?>/gi,"<br/>");const h=oe.detectInit(s);h&&$.debug("Detected early reinit: ",h);try{const{svg:u,bindFunctions:d}=await vp(c,s,l);l.innerHTML=u,e&&await e(c),d&&d(l)}catch(u){h_(u,o,Fe.parseError)}}if(o.length>0)throw o[0]},"runThrowsErrors"),kp=p(function(e){ir.initialize(e)},"initialize"),d_=p(async function(e,t,r){$.warn("mermaid.init is deprecated. Please use run instead."),e&&kp(e);const i={postRenderCallback:r,querySelector:".mermaid"};typeof t=="string"?i.querySelector=t:t&&(t instanceof HTMLElement?i.nodes=[t]:i.nodes=t),await Cp(i)},"init"),f_=p(async(e,{lazyLoad:t=!0}={})=>{Ya(),_n(...e),t===!1&&await Ow()},"registerExternalDiagrams"),wp=p(function(){if(Fe.startOnLoad){const{startOnLoad:e}=ir.getConfig();e&&Fe.run().catch(t=>$.error("Mermaid failed to initialize",t))}},"contentLoaded");typeof document<"u"&&window.addEventListener("load",wp,!1);var p_=p(function(e){Fe.parseError=e},"setParseErrorHandler"),va=[],yn=!1,_p=p(async()=>{if(!yn){for(yn=!0;va.length>0;){const e=va.shift();if(e)try{await e()}catch(t){$.error("Error executing queue",t)}}yn=!1}},"executeQueue"),g_=p(async(e,t)=>new Promise((r,i)=>{const a=p(()=>new Promise((n,s)=>{ir.parse(e,t).then(o=>{n(o),r(o)},o=>{$.error("Error parsing",o),Fe.parseError?.(o),s(o),i(o)})}),"performCall");va.push(a),_p().catch(i)}),"parse"),vp=p((e,t,r)=>new Promise((i,a)=>{const n=p(()=>new Promise((s,o)=>{ir.render(e,t,r).then(l=>{s(l),i(l)},l=>{$.error("Error parsing",l),Fe.parseError?.(l),o(l),a(l)})}),"performCall");va.push(n),_p().catch(a)}),"render"),m_=p(()=>Object.keys(Qe).map(e=>({id:e})),"getRegisteredDiagramsMetadata"),Fe={startOnLoad:!0,mermaidAPI:ir,parse:g_,render:vp,init:d_,run:Cp,registerExternalDiagrams:f_,registerLayoutLoaders:Mf,initialize:kp,parseError:void 0,contentLoaded:wp,setParseErrorHandler:p_,detectType:ps,registerIconPacks:J2,getRegisteredDiagramsMetadata:m_},Bl=Fe;/*! Check if previously processed *//*!
255 * Wait for document loaded before starting the execution
256 */const y_=e=>gr.isValidElement(e)&&!!e.props.children,Al=e=>typeof e>"u"||e===null||typeof e=="boolean"||JSON.stringify(e)==="{}"?"":e.toString(),Sp=e=>!(e instanceof Array)&&!gr.isValidElement(e)?Al(e):gr.Children.toArray(e).reduce((t,r)=>{let i="";return y_(r)?i=Sp(r.props.children):gr.isValidElement(r)?i="":i=Al(r),t.concat(i)},"");({...gr.Children});function x_({children:e}){return gr.useEffect(()=>{(async()=>{Bl.initialize({startOnLoad:!1}),await Bl.run({querySelector:".mermaid",suppressErrors:!0})})()},[e]),e?Ml.jsx("div",{className:"mermaid my-layout3","data-testid":"mermaid",children:e}):null}function b_({children:e}){const t=typeof e=="string"?e:Sp(e).replace(/\bend/,"end;");return Ml.jsx(x_,{children:t})}const W_=Object.freeze(Object.defineProperty({__proto__:null,default:b_},Symbol.toStringTag,{value:"Module"}));export{et as $,L_ as A,ti as B,xe as C,tg as D,km as E,Ns as F,Dt as G,sc as H,Wb as I,_b as J,yx as K,Lo as L,Og as M,e1 as N,Cr as O,S_ as P,Da as Q,em as R,gs as S,No as T,st as U,zb as V,cm as W,di as X,H as Y,Fb as Z,p as _,gm as a,gc as a0,T1 as a1,Tf as a2,I_ as a3,Sb as a4,Lt as a5,ze as a6,$s as a7,Ku as a8,ar as a9,_u as aa,yC as ab,O_ as ac,P_ as ad,D_ as ae,G as af,R_ as ag,J1 as ah,V1 as ai,G1 as aj,v_ as ak,yi as al,J2 as am,Q2 as an,Jp as ao,j as ap,yu as aq,W_ as ar,pm as b,dt as c,ht as d,pc as e,St as f,ym as g,Ee as h,Jt as i,Eb as j,Lr as k,$ as l,Su as m,fi as n,T_ as o,z_ as p,xm as q,N_ as r,mm as s,bm as t,oe as u,vb as v,Yb as w,Y1 as x,B_ as y,fm as z};
257//# sourceMappingURL=mermaid-CJdBoyFN.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.