ultisuite-client/out/_next/static/chunks/1845.026d8b249d0e0655.js
R3D347HR4Y d6d18f911b
Some checks failed
E2E / Playwright e2e (push) Has been cancelled
Lots of stuff and mobile app
2026-06-17 00:13:28 +02:00

73 lines
294 KiB
JavaScript
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1845],{1939:(e,t,r)=>{"use strict";function n(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}r.d(t,{i:()=>n})},9013:(e,t,r)=>{"use strict";function n(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=Array.from("string"==typeof e?[e]:e);n[n.length-1]=n[n.length-1].replace(/\r?\n([\t ]*)$/,"");var a=n.reduce(function(e,t){var r=t.match(/\n([\t ]+|(?!\s).)/g);return r?e.concat(r.map(function(e){var t,r;return null!=(r=null==(t=e.match(/[\t ]/g))?void 0:t.length)?r:0})):e},[]);if(a.length){var i=RegExp("\n[ ]{".concat(Math.min.apply(Math,a),"}"),"g");n=n.map(function(e){return e.replace(i,"\n")})}n[0]=n[0].replace(/^\r?\n/,"");var s=n[0];return t.forEach(function(e,t){var r=s.match(/(?:^|\n)( *)$/),a=r?r[1]:"",i=e;"string"==typeof e&&e.includes("\n")&&(i=String(e).split("\n").map(function(e,t){return 0===t?e:"".concat(a).concat(e)}).join("\n")),s+=i+n[t+1]}),s}r.d(t,{T:()=>n})},16081:(e,t,r)=>{"use strict";t.J=function(e){if(!e)return n.BLANK_URL;var t,r=a(e.trim());do t=(r=a(r=r.replace(n.ctrlCharactersRegex,"").replace(n.htmlEntitiesRegex,function(e,t){return String.fromCharCode(t)}).replace(n.htmlCtrlEntityRegex,"").replace(n.ctrlCharactersRegex,"").replace(n.whitespaceEscapeCharsRegex,"").trim())).match(n.ctrlCharactersRegex)||r.match(n.htmlEntitiesRegex)||r.match(n.htmlCtrlEntityRegex)||r.match(n.whitespaceEscapeCharsRegex);while(t&&t.length>0);var i=r;if(!i)return n.BLANK_URL;if(n.relativeFirstCharacters.indexOf(i[0])>-1)return i;var s=i.trimStart(),o=s.match(n.urlSchemeRegex);if(!o)return i;var l=o[0].toLowerCase().trim();if(n.invalidProtocolRegex.test(l))return n.BLANK_URL;var c=s.replace(/\\/g,"/");if("mailto:"===l||l.includes("://"))return c;if("http:"===l||"https:"===l){if(!URL.canParse(c))return n.BLANK_URL;var h=new URL(c);return h.protocol=h.protocol.toLowerCase(),h.hostname=h.hostname.toLowerCase(),h.toString()}return c};var n=r(97556);function a(e){try{return decodeURIComponent(e)}catch(t){return e}}},18158:(e,t)=>{"use strict";t.k=void 0,t.k=function(e,t){void 0===t&&(t={listUnicodeChar:""}),(t=t||{}).listUnicodeChar=!!t.hasOwnProperty("listUnicodeChar")&&t.listUnicodeChar,t.stripListLeaders=!t.hasOwnProperty("stripListLeaders")||t.stripListLeaders,t.gfm=!t.hasOwnProperty("gfm")||t.gfm,t.useImgAltText=!t.hasOwnProperty("useImgAltText")||t.useImgAltText,t.preserveLinks=!!t.hasOwnProperty("preserveLinks")&&t.preserveLinks;var r=e||"";r=r.replace(/^(-\s*?|\*\s*?|_\s*?){3,}\s*$/gm,"");try{t.stripListLeaders&&(r=t.listUnicodeChar?r.replace(/^([\s\t]*)([\*\-\+]|\d+\.)\s+/gm,t.listUnicodeChar+" $1"):r.replace(/^([\s\t]*)([\*\-\+]|\d+\.)\s+/gm,"$1")),t.gfm&&(r=r.replace(/\n={2,}/g,"\n").replace(/~{3}.*\n/g,"").replace(/~~/g,"").replace(/`{3}.*\n/g,"")),t.preserveLinks&&(r=r.replace(/\[(.*?)\][\[\(](.*?)[\]\)]/g,"$1 ($2)")),r=r.replace(/<[^>]*>/g,"").replace(/^[=\-]{2,}\s*$/g,"").replace(/\[\^.+?\](\: .*?$)?/g,"").replace(/\s{0,2}\[.*?\]: .*?$/g,"").replace(/\!\[(.*?)\][\[\(].*?[\]\)]/g,t.useImgAltText?"$1":"").replace(/\[(.*?)\][\[\(].*?[\]\)]/g,"$1").replace(/^\s{0,3}>\s?/g,"").replace(/(^|\n)\s{0,3}>\s?/g,"\n\n").replace(/^\s{1,2}\[(.*?)\]: (\S+)( ".*?")?\s*$/g,"").replace(/^(\n)?\s{0,}#{1,6}\s+| {0,}(\n)?\s{0,}#{0,} {0,}(\n)?\s{0,}$/gm,"$1$2$3").replace(/([\*_]{1,3})(\S.*?\S{0,1})\1/g,"$2").replace(/([\*_]{1,3})(\S.*?\S{0,1})\1/g,"$2").replace(/(`{3,})(.*?)\1/gm,"$2").replace(/`(.+?)`/g,"$1").replace(/\n{2,}/g,"\n\n")}catch(t){return console.error(t),e}return r}},22992:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(50409),a=r(25079);let i=(e,t)=>{let r=n.A.parse(e),i={};for(let e in t)t[e]&&(i[e]=r[e]+t[e]);return(0,a.A)(e,i)}},25079:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(75011),a=r(50409);let i=(e,t)=>{let r=a.A.parse(e);for(let e in t)r[e]=n.A.channel.clamp[e](t[e]);return a.A.stringify(r)}},30696:(e,t,r)=>{"use strict";r.d(t,{P:()=>a});let n="object"==typeof globalThis&&globalThis||"object"==typeof window&&window||"object"==typeof self&&self||"object"==typeof global&&global||function(){return this}()||Function("return this")();function a(e){return void 0!==n.Buffer&&n.Buffer.isBuffer(e)}},31311:(e,t,r)=>{"use strict";r.d(t,{D:()=>s});var n=r(93913),a=r(85448),i=r(51874),s=(0,a.K2)(e=>{let{securityLevel:t}=(0,n.D7)(),r=(0,i.Ltv)("body");if("sandbox"===t){let t=(0,i.Ltv)(`#i${e}`),n=t.node()?.contentDocument??document;r=(0,i.Ltv)(n.body)}return r.select(`#${e}`)},"selectSvgElement")},31731:(e,t,r)=>{"use strict";r.d(t,{N:()=>a});var n=r(41614);function a(e){return null!==e&&"object"==typeof e&&"[object Arguments]"===(0,n.b)(e)}},34862:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(75011),a=r(37485);class i{constructor(){this.type=a.Z.ALL}get(){return this.type}set(e){if(this.type&&this.type!==e)throw Error("Cannot change both RGB and HSL channels at the same time");this.type=e}reset(){this.type=a.Z.ALL}is(e){return this.type===e}}class s{constructor(e,t){this.color=t,this.changed=!1,this.data=e,this.type=new i}set(e,t){return this.color=t,this.changed=!1,this.data=e,this.type.type=a.Z.ALL,this}_ensureHSL(){let e=this.data,{h:t,s:r,l:a}=e;void 0===t&&(e.h=n.A.channel.rgb2hsl(e,"h")),void 0===r&&(e.s=n.A.channel.rgb2hsl(e,"s")),void 0===a&&(e.l=n.A.channel.rgb2hsl(e,"l"))}_ensureRGB(){let e=this.data,{r:t,g:r,b:a}=e;void 0===t&&(e.r=n.A.channel.hsl2rgb(e,"r")),void 0===r&&(e.g=n.A.channel.hsl2rgb(e,"g")),void 0===a&&(e.b=n.A.channel.hsl2rgb(e,"b"))}get r(){let e=this.data,t=e.r;return this.type.is(a.Z.HSL)||void 0===t?(this._ensureHSL(),n.A.channel.hsl2rgb(e,"r")):t}get g(){let e=this.data,t=e.g;return this.type.is(a.Z.HSL)||void 0===t?(this._ensureHSL(),n.A.channel.hsl2rgb(e,"g")):t}get b(){let e=this.data,t=e.b;return this.type.is(a.Z.HSL)||void 0===t?(this._ensureHSL(),n.A.channel.hsl2rgb(e,"b")):t}get h(){let e=this.data,t=e.h;return this.type.is(a.Z.RGB)||void 0===t?(this._ensureRGB(),n.A.channel.rgb2hsl(e,"h")):t}get s(){let e=this.data,t=e.s;return this.type.is(a.Z.RGB)||void 0===t?(this._ensureRGB(),n.A.channel.rgb2hsl(e,"s")):t}get l(){let e=this.data,t=e.l;return this.type.is(a.Z.RGB)||void 0===t?(this._ensureRGB(),n.A.channel.rgb2hsl(e,"l")):t}get a(){return this.data.a}set r(e){this.type.set(a.Z.RGB),this.changed=!0,this.data.r=e}set g(e){this.type.set(a.Z.RGB),this.changed=!0,this.data.g=e}set b(e){this.type.set(a.Z.RGB),this.changed=!0,this.data.b=e}set h(e){this.type.set(a.Z.HSL),this.changed=!0,this.data.h=e}set s(e){this.type.set(a.Z.HSL),this.changed=!0,this.data.s=e}set l(e){this.type.set(a.Z.HSL),this.changed=!0,this.data.l=e}set a(e){this.changed=!0,this.data.a=e}}let o=new s({r:0,g:0,b:0,a:0},"transparent")},37485:(e,t,r)=>{"use strict";r.d(t,{Y:()=>a,Z:()=>i});var n=r(75011);let a={};for(let e=0;e<=255;e++)a[e]=n.A.unit.dec2hex(e);let i={ALL:0,RGB:1,HSL:2}},37764:(e,t,r)=>{"use strict";r.d(t,{i:()=>a});var n=r(1939);function a(e){return(0,n.i)(e)}},38134:(e,t,r)=>{"use strict";let n;r.r(t),r.d(t,{parseMermaidToExcalidraw:()=>n4});let a={rect:"rectangle",circle:"ellipse"},i={startOnLoad:!1,flowchart:{curve:"linear"},themeVariables:{fontSize:"20px"},maxEdges:500,maxTextSize:5e4};class s{constructor({converter:e}){this.convert=(e,t)=>this.converter(e,{...t,fontSize:t.fontSize||20}),this.converter=e}}(o=c||(c={})).ROUND="round",o.STADIUM="stadium",o.DOUBLECIRCLE="doublecircle",o.CIRCLE="circle",o.DIAMOND="diamond",o.CYLINDER="cylinder",(h||(h={})).COLOR="color",(l=u||(u={})).FILL="fill",l.STROKE="stroke",l.STROKE_WIDTH="stroke-width",l.STROKE_DASHARRAY="stroke-dasharray";var o,l,c,h,u,d=r(18158);let p={arrow_circle:{endArrowhead:"circle"},arrow_cross:{endArrowhead:"bar"},arrow_open:{endArrowhead:null,startArrowhead:null},double_arrow_circle:{endArrowhead:"circle",startArrowhead:"circle"},double_arrow_cross:{endArrowhead:"bar",startArrowhead:"bar"},double_arrow_point:{endArrowhead:"arrow",startArrowhead:"arrow"}},f=e=>{let t=e.text;return"markdown"===e.labelType&&(t=(0,d.k)(e.text)),g(t)},g=e=>e.replace(/\s?(fa|fab):[a-zA-Z0-9-]+/g,""),m=e=>{let t={};return Object.keys(e).forEach(r=>{switch(r){case u.FILL:t.backgroundColor=e[r],t.fillStyle="solid";break;case u.STROKE:t.strokeColor=e[r];break;case u.STROKE_WIDTH:t.strokeWidth=Number(e[r]?.split("px")[0]);break;case u.STROKE_DASHARRAY:t.strokeStyle="dashed"}}),t},y=e=>{let t={};return Object.keys(e).forEach(r=>{r===h.COLOR&&(t.strokeColor=e[r])}),t},b=(e,t)=>Math.max(20,Math.ceil(e.length*t*.62)),k=new s({converter:(e,t)=>{let r,n,a=[],i=t.fontSize,{getGroupIds:s,getParentId:o}=(r={},e.subGraphs.map(t=>{t.nodeIds.forEach(n=>{r[t.id]={id:t.id,parent:null,isLeaf:!1},r[n]={id:n,parent:t.id,isLeaf:void 0!==e.vertices[n]}})}),n={},[...Object.keys(e.vertices),...e.subGraphs.map(e=>e.id)].forEach(e=>{if(!r[e])return;let t=r[e],a=[];for(t.isLeaf||a.push(`subgraph_group_${t.id}`);;)if(t.parent)a.push(`subgraph_group_${t.parent}`),t=r[t.parent];else break;n[e]=a}),{getGroupIds:e=>n[e]||[],getParentId:e=>r[e]?r[e].parent:null});return e.subGraphs.reverse().forEach(e=>{let t=s(e.id),r=f(e),n=b(r,i||16),o=Math.max(e.width,n+64),l=e.x-(o-e.width)/2,c=m(e.containerStyle),h=y(e.labelStyle),u={id:e.id,type:"rectangle",groupIds:t,x:l,y:e.y,width:o,height:e.height,label:{groupIds:t,text:r,fontSize:i,verticalAlign:"top",...h},...c};a.push(u)}),Object.values(e.vertices).forEach(e=>{if(!e)return;let t=s(e.id),r=f(e),n=((e,t,r,n)=>{let a=n||20;if(e!==c.CYLINDER||!t||t.includes("\n"))return a;let i=Math.max(20,r-12);return b(t,a)<=i?a:Math.max(12,Math.floor(i/(.62*t.length)))})(e.type,r,e.width,i),o=m(e.containerStyle),l=y(e.labelStyle),h={id:e.id,type:"rectangle",groupIds:t,x:e.x,y:e.y,width:e.width,height:e.height,strokeWidth:2,label:{groupIds:t,text:r,fontSize:n,...l},link:e.link||null,...o};switch(e.type){case c.STADIUM:case c.ROUND:h={...h,roundness:{type:3}};break;case c.DOUBLECIRCLE:{t.push(`doublecircle_${e.id}}`);let i={type:"ellipse",groupIds:t,x:e.x+5,y:e.y+5,width:e.width-10,height:e.height-10,strokeWidth:2,roundness:{type:3},label:{groupIds:t,text:r,fontSize:n,...l}};h={...h,groupIds:t,type:"ellipse"},a.push(i);break}case c.CIRCLE:h.type="ellipse";break;case c.DIAMOND:h.type="diamond"}a.push(h)}),e.edges.forEach(e=>{let t=[],r=o(e.start),n=o(e.end);r&&r===n&&(t=s(r));let{startX:l,startY:c,reflectionPoints:h}=e,u=h.map(e=>[e.x-h[0].x,e.y-h[0].y]),d=p[e.type||"arrow_point"],g=a.find(t=>t.id===e.start),m=a.find(t=>t.id===e.end);if(!g||!m)return;let y={id:`${e.start}_${e.end}`,type:"arrow",groupIds:t,x:l,y:c,strokeWidth:"thick"===e.stroke?4:2,strokeStyle:"dotted"===e.stroke?"dashed":void 0,points:u,...e.text?{label:{text:f(e),fontSize:i,groupIds:t}}:{},roundness:{type:2},...d,start:{id:g.id||""},end:{id:m.id||""}};a.push(y)}),{elements:a}}}),x=(e=21)=>crypto.getRandomValues(new Uint8Array(e)).reduce((e,t)=>((t&=63)<36?e+=t.toString(36):t<62?e+=(t-26).toString(36).toUpperCase():t>62?e+="-":e+="_",e),""),w=new s({converter:e=>{let t=x(),{width:r,height:n}=e;return{files:{[t]:{id:t,mimeType:e.mimeType,dataURL:e.dataURL}},elements:[{type:"image",x:0,y:0,width:r,height:n,status:"saved",fileId:t}]}}}),v=(e,t)=>[e,t],_=e=>{let t={type:"line",x:e.startX,y:e.startY,points:[v(0,0),v(e.endX-e.startX,e.endY-e.startY)],width:e.endX-e.startX,height:e.endY-e.startY,strokeStyle:e.strokeStyle||"solid",strokeColor:e.strokeColor||"#000",strokeWidth:e.strokeWidth||1};return e.groupId&&Object.assign(t,{groupIds:[e.groupId]}),e.id&&Object.assign(t,{id:e.id}),t},S=e=>{let t={type:"text",x:e.x,y:e.y,width:e.width,height:e.height,text:e.text.replace(/\\n/g,"\n")||"",fontSize:e.fontSize,verticalAlign:"top",strokeColor:e.color};return e.groupId&&Object.assign(t,{groupIds:[e.groupId]}),e.id&&Object.assign(t,{id:e.id}),t},A=e=>{let t={text:(e?.label?.text||"").replace(/\\n/g,"\n"),fontSize:e?.label?.fontSize,textAlign:e.label?.textAlign,verticalAlign:e.label?.verticalAlign||"middle",strokeColor:e.label?.color||"#000",...e.groupId?{groupIds:[e.groupId]}:{}},r={};"rectangle"===e.type&&"activation"===e.subtype&&(r={backgroundColor:"#e9ecef",fillStyle:"solid"});let n={id:e.id,type:e.type,x:e.x,y:e.y,width:e.width,height:e.height,label:t,strokeStyle:e?.strokeStyle,strokeWidth:e?.strokeWidth,strokeColor:e?.strokeColor,backgroundColor:e?.bgColor,fillStyle:"solid",...r};return e.groupId&&Object.assign(n,{groupIds:[e.groupId]}),n},M=e=>{let t={type:"arrow",x:e.startX,y:e.startY,points:e.points?.map(([e,t])=>v(e,t))||[v(0,0),v(e.endX-e.startX,e.endY-e.startY)],width:e.endX-e.startX,height:e.endY-e.startY,strokeStyle:e?.strokeStyle||"solid",endArrowhead:e?.endArrowhead||null,startArrowhead:e?.startArrowhead||null,label:{text:(e?.label?.text||"").replace(/\\n/g,"\n"),fontSize:16,textAlign:e?.label?.textAlign,verticalAlign:e?.label?.verticalAlign},roundness:{type:2},start:e.start,end:e.end};return e.groupId&&Object.assign(t,{groupIds:[e.groupId]}),t},$=(e,t,r=!0)=>{let n=e.groupIds??[];if(n.includes(t)||(e.groupIds=[...n,t]),!r||!e.label)return;let a=e.label.groupIds??[];a.includes(t)||(e.label.groupIds=[...a,t])},L=new s({converter:e=>{let t=[],r=[];if(Object.values(e.nodes).forEach(e=>{e&&e.length&&e.forEach(e=>{let n;switch(e.type){case"line":n=_(e);break;case"rectangle":case"ellipse":n=A(e);break;case"text":n=S(e);break;default:throw`unknown type ${e.type}`}"rectangle"===e.type&&e?.subtype==="activation"?r.push(n):t.push(n)})}),Object.values(e.lines).forEach(e=>{e&&t.push(_(e))}),Object.values(e.arrows).forEach(e=>{e&&(t.push(M(e)),e.sequenceNumber&&t.push(A(e.sequenceNumber)))}),t.push(...r),e.loops){let{lines:r,texts:n,nodes:a}=e.loops;r.forEach(e=>{t.push(_(e))}),n.forEach(e=>{t.push(S(e))}),a.forEach(e=>{t.push(A(e))})}return e.groups&&e.groups.forEach(e=>{let{actorKeys:r,name:n}=e,a=1/0,i=1/0,s=0,o=0;if(!r.length)return;let l=t.filter(e=>{if(e.id){let t=e.id.indexOf("-"),n=e.id.substring(0,t);return r.includes(n)}return!1});if(!l.length||(l.forEach(e=>{void 0!==e.x&&void 0!==e.y&&void 0!==e.width&&void 0!==e.height&&(a=Math.min(a,e.x),i=Math.min(i,e.y),s=Math.max(s,e.x+e.width),o=Math.max(o,e.y+e.height))}),!Number.isFinite(a)||!Number.isFinite(i)||!Number.isFinite(s)||!Number.isFinite(o)))return;let c=a-10,h=i-10,u=s-a+20,d=o-i+20,p=x(),f=x(),g=A({type:"rectangle",x:c,y:h,width:u,height:d,bgColor:(e=>{if(!e)return!0;let t=e.trim().toLowerCase();return"transparent"===t||"none"===t||"rgba(0,0,0,0)"===t||"rgba(0, 0, 0, 0)"===t})(e.fill)?void 0:e.fill,strokeColor:"#1f1f1f",strokeWidth:1,id:p,groupId:f});if(t.unshift(g),t.forEach(e=>{e.id===p||void 0!==e.x&&void 0!==e.y&&void 0!==e.width&&void 0!==e.height&&e.x>=a&&e.x+e.width<=s&&e.y>=i&&e.y+e.height<=o&&$(e,f)}),n){let e=S({type:"text",id:x(),text:n,x:c+4,y:h-24,width:Math.max(20,Math.round(16*n.length*.6)),height:24,fontSize:16,color:"#1f1f1f",groupId:f});$(e,f,!1),t.push(e)}}),{elements:t}}}),O=new s({converter:e=>{let t=[];return e.nodes.forEach(e=>{e&&e.length&&e.forEach(e=>{let r;switch(e.type){case"line":r=_(e);break;case"rectangle":case"ellipse":r=A(e);break;case"text":r=S(e);break;default:throw`unknown type ${e.type}`}t.push(r)})}),Object.values(e.lines).forEach(e=>{e&&t.push(_(e))}),Object.values(e.arrows).forEach(e=>{if(!e)return;let r=M(e);t.push(r)}),Object.values(e.text).forEach(e=>{let r=S(e);t.push(r)}),Object.values(e.namespaces).forEach(r=>{let n=Object.keys(r.classes),a=[...n],i=[...e.lines,...e.arrows,...e.text];n.forEach(e=>{let t=i.filter(t=>t.metadata&&t.metadata.classId===e).map(e=>e.id);t.length&&a.push(...t)});let s={type:"frame",id:x(),name:r.id,children:a};t.push(s)}),{elements:t}}}),E=new s({converter:e=>{let t=[];return e.nodes.forEach(e=>{e&&e.length&&e.forEach(e=>{let r;switch(e.type){case"line":r=_(e);break;case"rectangle":case"ellipse":r=A(e);break;case"text":r=S(e);break;default:throw`unknown type ${e.type}`}t.push(r)})}),e.lines.forEach(e=>{t.push(_(e))}),e.arrows.forEach(e=>{t.push(M(e))}),e.text.forEach(e=>{t.push(S(e))}),{elements:t}}}),C=(e,t)=>[e,t],T="#000000",R=new Set(["choice","fork","join","stateStart","stateEnd","divider"]),K=e=>"stateEnd"===e.shape?[`state_end_group_${e.id}`]:void 0,I=e=>"rectWithTitle"===e.shape&&e.description.length?[e.text,...e.description].join("\n"):e.text,j=(e,t)=>{let r=(()=>{if(void 0!==n)return n;if("u"<typeof document)return n=null;try{n=document.createElement("canvas").getContext("2d")}catch{n=null}return n})();return r?(r.font=`${t}px Excalifont, sans-serif`,r.measureText(e).width):e.length*t*.6},P=(e,t,r)=>{if(j(e,t)<=r)return[e];let n=[],a="";for(let i of e){let e=`${a}${i}`;if(a&&j(e,t)>r){n.push(a),a=i;continue}a=e}return a&&n.push(a),n},N=(e,t,r)=>{let n=e.map(e=>((e,t,r)=>{if(!e.trim()||j(e,t)<=r)return e;let n=e.split(/\s+/).filter(Boolean),a=[],i="";for(let e of n){let n=P(e,t,r);for(let[e,s]of n.entries()){let n=i&&0===e?" ":"",o=i?`${i}${n}${s}`:s;if(j(o,t)<=r){i=o;continue}i&&a.push(i),i=s}if(n.length>1)continue}return a.push(i),a.join("\n")})(e,t,r)).join("\n").split("\n");return{width:Math.max(...n.map(e=>j(e,t))),height:n.length*t*1.25}},D=new s({converter:e=>{let t=[];return e.nodes.forEach(e=>{let r,n,a,i,s,o,l,c,h,u;if(!e.isRenderable)return;let d=(r=m(e.containerStyle),n=(e=>{if(R.has(e.shape))return;let t=I(e);if(t)return{text:t,fontSize:(e=>{let t=I(e);if(!t||R.has(e.shape))return 16;let r=Math.max(1,e.width-10),n=Math.max(1,e.height-10),a=t.split("\n");return a.length>1&&Math.max(...a.map(e=>j(e,16)))<=r?16:((e,t,r,n)=>{let a=e.split("\n");for(let e=16;e>=14;e-=1){let{height:n}=N(a,e,t);if(n<=r)return e}return n})(t,r,n,1===a.length?16:14)})(e),verticalAlign:"rectWithTitle"===e.shape||"roundedWithTitle"===e.shape?"top":"middle",...y(e.labelStyle)}})(e),a="choice"===e.shape?"diamond":"stateStart"===e.shape||"stateEnd"===e.shape?"ellipse":"rectangle",i="rect"===e.shape||"rectWithTitle"===e.shape||"roundedWithTitle"===e.shape,s="stateStart"===e.shape||"fork"===e.shape||"join"===e.shape,o=r.backgroundColor||r.strokeColor||T,l=r.strokeColor||r.backgroundColor||T,{id:e.id,type:a,...K(e)?{groupIds:K(e)}:{},x:e.x,y:e.y,width:e.width,height:e.height,...n?{label:n}:{},...r,...i?{roundness:{type:3}}:{},...s?{backgroundColor:o,strokeColor:l,fillStyle:"solid"}:{}});t.push(d);let p=(e=>{if(!e.dividerLine)return null;let t=m(e.containerStyle);return{id:`${e.id}__divider`,type:"line",x:e.dividerLine.startX,y:e.dividerLine.startY,width:e.dividerLine.endX-e.dividerLine.startX,height:e.dividerLine.endY-e.dividerLine.startY,points:[C(0,0),C(e.dividerLine.endX-e.dividerLine.startX,e.dividerLine.endY-e.dividerLine.startY)],strokeColor:t.strokeColor||"#000",strokeWidth:t.strokeWidth||1}})(e);p&&t.push(p),"stateEnd"===e.shape&&t.push((c=m(e.containerStyle),h=Math.max(2,.32*Math.min(e.width,e.height)),u=e.endInnerColor||c.strokeColor||c.backgroundColor||T,{id:`${e.id}__inner`,type:"ellipse",groupIds:K(e),x:e.x+h,y:e.y+h,width:Math.max(1,e.width-2*h),height:Math.max(1,e.height-2*h),backgroundColor:u,strokeColor:u,fillStyle:"solid",strokeWidth:1}))}),e.edges.forEach(e=>{let r;t.push((r=e.reflectionPoints.map((e,t,r)=>{let n=r[0];return 0===t?C(0,0):C(e.x-n.x,e.y-n.y)}),{id:e.id,type:"arrow",x:e.startX,y:e.startY,width:e.endX-e.startX,height:e.endY-e.startY,points:r,strokeColor:e.strokeColor||"#000",strokeWidth:e.strokeWidth||2,strokeStyle:e.strokeStyle||"solid",endArrowhead:e.isNoteEdge?null:"triangle",roundness:{type:2},start:{id:e.start},end:{id:e.end},...e.text?{label:{text:e.text,fontSize:16}}:{}}))}),{elements:t}}}),F=e=>{let t=(e=B(e)).replace(/#(\d+);/g,"&#$1;").replace(/#([a-z]+);/g,"&$1;"),r=document.createElement("textarea");return r.innerHTML=t,r.value},z=e=>{let t=e.getAttribute("transform"),r=t?.match(/translate\(([ \d.-]+),\s*([\d.-]+)\)/),n=0,a=0;return r&&(n=Number(r[1]),a=Number(r[2])),{transformX:n,transformY:a}},B=function(e){return e.replace(/fl°°/g,"#").replace(/fl°/g,"&").replace(/¶ß/g,";")},W=.5,q=(e,t=W)=>{let r=[];return e.forEach(e=>{let n=r[r.length-1];n&&Math.hypot(e[0]-n[0],e[1]-n[1])<=t||r.push(e)}),r},Y=e=>{let t=e.getAttribute("d");if(!t)return null;let r=Array.from(t.matchAll(/-?\d*\.?\d+(?:e[-+]?\d+)?/gi),e=>Number(e[0]));return r.length<4?null:{startX:r[0],startY:r[1],endX:r[r.length-2],endY:r[r.length-1]}},U=e=>{let t=e.getAttribute("data-points");if(!t){let t=Y(e);return t?[{x:t.startX,y:t.startY},{x:t.endX,y:t.endY}]:[]}try{let e=atob(t),r=JSON.parse(e);return Array.isArray(r)?r.filter(e=>e&&"number"==typeof e.x&&"number"==typeof e.y&&Number.isFinite(e.x)&&Number.isFinite(e.y)):[]}catch{return[]}},H=(e,t={x:0,y:0},r="LM")=>{if("path"!==e.tagName.toLowerCase())throw Error(`Invalid input: Expected an HTMLElement of tag "path", got ${e.tagName}`);let n=e.getAttribute("d");if(!n)throw Error('Path element does not contain a "d" attribute');let a=n.split(RegExp(`(?=[${r}])`)),i=a[0].substring(1).split(",").map(e=>parseFloat(e)),s=a[a.length-1].substring(1).split(",").map(e=>parseFloat(e)),o=a.map(e=>{let t=e[0],r=e.substring(1).split(",").map(e=>parseFloat(e));return"C"===t?{x:r[4],y:r[5],command:t}:{x:r[0],y:r[1],command:t}}).filter((e,t,r)=>{if(0===t||t===r.length-1)return!0;if(e.x===r[t-1].x&&e.y===r[t-1].y||t===r.length-2&&"C"===e.command)return!1;if(t===r.length-2&&(r[t-1].x===e.x||r[t-1].y===e.y)){let t=r[r.length-1];return Math.hypot(t.x-e.x,t.y-e.y)>20}return e.x!==r[t-1].x||e.y!==r[t-1].y}).map(e=>({x:e.x+t.x,y:e.y+t.y}));return{startX:i[0]+t.x,startY:i[1]+t.y,endX:s[0]+t.x,endY:s[1]+t.y,reflectionPoints:o}};var X=r(31311),G=r(51601),Z=r(65477);r(94242),r(58211),r(12347),r(93196),r(96712);var V=r(56194),Q=r(50001),J=r(93913),ee=r(85448),et=r(9013),er=r(51874),en="comm",ea="rule",ei="decl",es="@keyframes",eo="@layer",el=Math.abs,ec=String.fromCharCode;function eh(e,t,r){return e.replace(t,r)}function eu(e,t){return 0|e.charCodeAt(t)}function ed(e,t,r){return e.slice(t,r)}function ep(e){return e.length}function ef(e,t){return t.push(e),e}function eg(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function em(e,t,r,n){switch(e.type){case eo:if(e.children.length)break;case"@import":case"@namespace":case ei:return e.return=e.return||e.value;case en:return"";case es:return e.return=e.value+"{"+eg(e.children,n)+"}";case ea:if(!ep(e.value=e.props.join(",")))return""}return ep(r=eg(e.children,n))?e.return=e.value+"{"+r+"}":""}var ey=1,eb=1,ek=0,ex=0,ew=0,ev="";function e_(e,t,r,n,a,i,s,o){return{value:e,root:t,parent:r,type:n,props:a,children:i,line:ey,column:eb,length:s,return:"",siblings:o}}function eS(){return ew=ex<ek?eu(ev,ex++):0,eb++,10===ew&&(eb=1,ey++),ew}function eA(){return eu(ev,ex)}function eM(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 e$(e){var t,r;return(t=ex-1,r=function e(t){for(;eS();)switch(ew){case t:return ex;case 34:case 39:34!==t&&39!==t&&e(ew);break;case 40:41===t&&e(t);break;case 92:eS()}return ex}(91===e?e+2:40===e?e+1:e),ed(ev,t,r)).trim()}function eL(e,t,r,n,a,i,s,o,l,c,h,u){for(var d=a-1,p=0===a?i:[""],f=p.length,g=0,m=0,y=0;g<n;++g)for(var b=0,k=ed(e,d+1,d=el(m=s[g])),x=e;b<f;++b)(x=(m>0?p[b]+" "+k:eh(k,/&\f/g,p[b])).trim())&&(l[y++]=x);return e_(e,t,r,0===a?ea:o,l,c,h,u)}function eO(e,t,r,n,a){return e_(e,t,r,ei,ed(e,0,n),ed(e,n+1,-1),n,a)}var eE=r(60709),eC=r(30696),eT=r(72678),eR=r(31731),eK=r(37764);function eI(e){if(null==e)return!0;if((0,eT.X)(e))return("function"==typeof e.splice||"string"==typeof e||!!(0,eC.P)(e)||!!(0,eK.i)(e)||!!(0,eR.N)(e))&&0===e.length;if("object"==typeof e){let t;if(e instanceof Map||e instanceof Set)return 0===e.size;let r=Object.keys(e);return(t=e?.constructor,e===("function"==typeof t?t.prototype:Object.prototype))?0===r.filter(e=>"constructor"!==e).length:0===r.length}return!0}var ej={id:"c4",detector:(0,ee.K2)(e=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(e),"detector"),loader:(0,ee.K2)(async()=>{let{diagram:e}=await r.e(1960).then(r.bind(r,21960));return{id:"c4",diagram:e}},"loader")},eP="flowchart",eN=(0,ee.K2)((e,t)=>t?.flowchart?.defaultRenderer!=="dagre-wrapper"&&t?.flowchart?.defaultRenderer!=="elk"&&/^\s*graph/.test(e),"detector"),eD=(0,ee.K2)(async()=>{let{diagram:e}=await r.e(2806).then(r.bind(r,52806));return{id:eP,diagram:e}},"loader"),eF={id:eP,detector:eN,loader:eD},ez="flowchart-v2",eB=(0,ee.K2)((e,t)=>t?.flowchart?.defaultRenderer!=="dagre-d3"&&(t?.flowchart?.defaultRenderer==="elk"&&(t.layout="elk"),!!/^\s*graph/.test(e)&&t?.flowchart?.defaultRenderer==="dagre-wrapper"||/^\s*flowchart/.test(e)),"detector"),eW=(0,ee.K2)(async()=>{let{diagram:e}=await r.e(2806).then(r.bind(r,52806));return{id:ez,diagram:e}},"loader"),eq={id:ez,detector:eB,loader:eW},eY={id:"er",detector:(0,ee.K2)(e=>/^\s*erDiagram/.test(e),"detector"),loader:(0,ee.K2)(async()=>{let{diagram:e}=await r.e(1352).then(r.bind(r,91352));return{id:"er",diagram:e}},"loader")},eU="gitGraph",eH=(0,ee.K2)(e=>/^\s*gitGraph/.test(e),"detector"),eX=(0,ee.K2)(async()=>{let{diagram:e}=await Promise.all([r.e(6714),r.e(6229),r.e(1758)]).then(r.bind(r,61758));return{id:eU,diagram:e}},"loader"),eG={id:eU,detector:eH,loader:eX},eZ="gantt",eV=(0,ee.K2)(e=>/^\s*gantt/.test(e),"detector"),eQ=(0,ee.K2)(async()=>{let{diagram:e}=await r.e(1208).then(r.bind(r,41208));return{id:eZ,diagram:e}},"loader"),eJ={id:eZ,detector:eV,loader:eQ},e0="info",e1=(0,ee.K2)(e=>/^\s*info/.test(e),"detector"),e2=(0,ee.K2)(async()=>{let{diagram:e}=await Promise.all([r.e(6714),r.e(6229),r.e(1519)]).then(r.bind(r,61519));return{id:e0,diagram:e}},"loader"),e3={id:e0,detector:e1,loader:e2},e5={id:"pie",detector:(0,ee.K2)(e=>/^\s*pie/.test(e),"detector"),loader:(0,ee.K2)(async()=>{let{diagram:e}=await Promise.all([r.e(6714),r.e(6229),r.e(5936)]).then(r.bind(r,65936));return{id:"pie",diagram:e}},"loader")},e6="quadrantChart",e4=(0,ee.K2)(e=>/^\s*quadrantChart/.test(e),"detector"),e9=(0,ee.K2)(async()=>{let{diagram:e}=await r.e(6771).then(r.bind(r,6771));return{id:e6,diagram:e}},"loader"),e8={id:e6,detector:e4,loader:e9},e7="xychart",te=(0,ee.K2)(e=>/^\s*xychart(-beta)?/.test(e),"detector"),tt=(0,ee.K2)(async()=>{let{diagram:e}=await r.e(9625).then(r.bind(r,9625));return{id:e7,diagram:e}},"loader"),tr={id:e7,detector:te,loader:tt},tn="requirement",ta=(0,ee.K2)(e=>/^\s*requirement(Diagram)?/.test(e),"detector"),ti=(0,ee.K2)(async()=>{let{diagram:e}=await r.e(9912).then(r.bind(r,97531));return{id:tn,diagram:e}},"loader"),ts={id:tn,detector:ta,loader:ti},to="sequence",tl=(0,ee.K2)(e=>/^\s*sequenceDiagram/.test(e),"detector"),tc=(0,ee.K2)(async()=>{let{diagram:e}=await Promise.all([r.e(6903),r.e(9572)]).then(r.bind(r,66387));return{id:to,diagram:e}},"loader"),th={id:to,detector:tl,loader:tc},tu="class",td=(0,ee.K2)((e,t)=>t?.class?.defaultRenderer!=="dagre-wrapper"&&/^\s*classDiagram/.test(e),"detector"),tp=(0,ee.K2)(async()=>{let{diagram:e}=await Promise.all([r.e(2750),r.e(8029)]).then(r.bind(r,80410));return{id:tu,diagram:e}},"loader"),tf={id:tu,detector:td,loader:tp},tg="classDiagram",tm=(0,ee.K2)((e,t)=>!!/^\s*classDiagram/.test(e)&&t?.class?.defaultRenderer==="dagre-wrapper"||/^\s*classDiagram-v2/.test(e),"detector"),ty=(0,ee.K2)(async()=>{let{diagram:e}=await Promise.all([r.e(2750),r.e(8963)]).then(r.bind(r,98963));return{id:tg,diagram:e}},"loader"),tb={id:tg,detector:tm,loader:ty},tk="state",tx=(0,ee.K2)((e,t)=>t?.state?.defaultRenderer!=="dagre-wrapper"&&/^\s*stateDiagram/.test(e),"detector"),tw=(0,ee.K2)(async()=>{let{diagram:e}=await Promise.all([r.e(4039),r.e(2351),r.e(4260),r.e(9382)]).then(r.bind(r,79382));return{id:tk,diagram:e}},"loader"),tv={id:tk,detector:tx,loader:tw},t_="stateDiagram",tS=(0,ee.K2)((e,t)=>!!(/^\s*stateDiagram-v2/.test(e)||/^\s*stateDiagram/.test(e)&&t?.state?.defaultRenderer==="dagre-wrapper"),"detector"),tA=(0,ee.K2)(async()=>{let{diagram:e}=await Promise.all([r.e(4260),r.e(8706)]).then(r.bind(r,18706));return{id:t_,diagram:e}},"loader"),tM={id:t_,detector:tS,loader:tA},t$="journey",tL=(0,ee.K2)(e=>/^\s*journey/.test(e),"detector"),tO=(0,ee.K2)(async()=>{let{diagram:e}=await r.e(8725).then(r.bind(r,68725));return{id:t$,diagram:e}},"loader"),tE={id:t$,detector:tL,loader:tO},tC={draw:(0,ee.K2)((e,t,r)=>{ee.Rm.debug("rendering svg for syntax error\n");let n=(0,X.D)(t),a=n.append("g");n.attr("viewBox","0 0 2412 512"),(0,J.a$)(n,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.164-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")},tT={db:{},renderer:tC,parser:{parse:(0,ee.K2)(()=>{},"parse")}},tR="flowchart-elk",tK=(0,ee.K2)((e,t={})=>!!(/^\s*flowchart-elk/.test(e)||/^\s*(flowchart|graph)/.test(e)&&t?.flowchart?.defaultRenderer==="elk")&&(t.layout="elk",!0),"detector"),tI=(0,ee.K2)(async()=>{let{diagram:e}=await r.e(2806).then(r.bind(r,52806));return{id:tR,diagram:e}},"loader"),tj={id:tR,detector:tK,loader:tI},tP="timeline",tN=(0,ee.K2)(e=>/^\s*timeline/.test(e),"detector"),tD=(0,ee.K2)(async()=>{let{diagram:e}=await r.e(4644).then(r.bind(r,14644));return{id:tP,diagram:e}},"loader"),tF={id:tP,detector:tN,loader:tD},tz="mindmap",tB=(0,ee.K2)(e=>/^\s*mindmap/.test(e),"detector"),tW=(0,ee.K2)(async()=>{let{diagram:e}=await r.e(5037).then(r.bind(r,45037));return{id:tz,diagram:e}},"loader"),tq={id:tz,detector:tB,loader:tW},tY="kanban",tU=(0,ee.K2)(e=>/^\s*kanban/.test(e),"detector"),tH=(0,ee.K2)(async()=>{let{diagram:e}=await r.e(8182).then(r.bind(r,38182));return{id:tY,diagram:e}},"loader"),tX={id:tY,detector:tU,loader:tH},tG="sankey",tZ=(0,ee.K2)(e=>/^\s*sankey(-beta)?/.test(e),"detector"),tV=(0,ee.K2)(async()=>{let{diagram:e}=await r.e(5460).then(r.bind(r,15460));return{id:tG,diagram:e}},"loader"),tQ={id:tG,detector:tZ,loader:tV},tJ="packet",t0=(0,ee.K2)(e=>/^\s*packet(-beta)?/.test(e),"detector"),t1=(0,ee.K2)(async()=>{let{diagram:e}=await Promise.all([r.e(6714),r.e(6229),r.e(3278)]).then(r.bind(r,13278));return{id:tJ,diagram:e}},"loader"),t2={id:tJ,detector:t0,loader:t1},t3="radar",t5=(0,ee.K2)(e=>/^\s*radar-beta/.test(e),"detector"),t6=(0,ee.K2)(async()=>{let{diagram:e}=await Promise.all([r.e(6714),r.e(6229),r.e(7331)]).then(r.bind(r,27331));return{id:t3,diagram:e}},"loader"),t4={id:t3,detector:t5,loader:t6},t9="block",t8=(0,ee.K2)(e=>/^\s*block(-beta)?/.test(e),"detector"),t7=(0,ee.K2)(async()=>{let{diagram:e}=await Promise.all([r.e(4039),r.e(3549)]).then(r.bind(r,3549));return{id:t9,diagram:e}},"loader"),re={id:t9,detector:t8,loader:t7},rt="treeView",rr=(0,ee.K2)(e=>/^\s*treeView-beta/.test(e),"detector"),rn=(0,ee.K2)(async()=>{let{diagram:e}=await Promise.all([r.e(6714),r.e(6229),r.e(3805)]).then(r.bind(r,83805));return{id:rt,diagram:e}},"loader"),ra={id:rt,detector:rr,loader:rn},ri="architecture",rs=(0,ee.K2)(e=>/^\s*architecture/.test(e),"detector"),ro=(0,ee.K2)(async()=>{let{diagram:e}=await Promise.all([r.e(6714),r.e(6849),r.e(6229),r.e(7792)]).then(r.bind(r,37792));return{id:ri,diagram:e}},"loader"),rl={id:ri,detector:rs,loader:ro},rc="eventmodeling",rh=(0,ee.K2)(e=>/^\s*eventmodeling/.test(e),"detector"),ru=(0,ee.K2)(async()=>{let{diagram:e}=await Promise.all([r.e(6714),r.e(6229),r.e(1553)]).then(r.bind(r,1553));return{id:rc,diagram:e}},"loader"),rd={id:rc,detector:rh,loader:ru},rp="ishikawa",rf=(0,ee.K2)(e=>/^\s*ishikawa(-beta)?\b/i.test(e),"detector"),rg=(0,ee.K2)(async()=>{let{diagram:e}=await r.e(3882).then(r.bind(r,43882));return{id:rp,diagram:e}},"loader"),rm={id:rp,detector:rf,loader:rg},ry="venn",rb=(0,ee.K2)(e=>/^\s*venn-beta/.test(e),"detector"),rk=(0,ee.K2)(async()=>{let{diagram:e}=await r.e(8622).then(r.bind(r,28622));return{id:ry,diagram:e}},"loader"),rx={id:ry,detector:rb,loader:rk},rw="treemap",rv=(0,ee.K2)(e=>/^\s*treemap/.test(e),"detector"),r_=(0,ee.K2)(async()=>{let{diagram:e}=await Promise.all([r.e(6714),r.e(6229),r.e(5278)]).then(r.bind(r,35278));return{id:rw,diagram:e}},"loader"),rS={id:rw,detector:rv,loader:r_},rA="wardley-beta",rM=(0,ee.K2)(e=>/^\s*wardley-beta/i.test(e),"detector"),r$=(0,ee.K2)(async()=>{let{diagram:e}=await Promise.all([r.e(6714),r.e(6229),r.e(9348)]).then(r.bind(r,39348));return{id:rA,diagram:e}},"loader"),rL={id:rA,detector:rM,loader:r$},rO=!1,rE=(0,ee.K2)(()=>{rO||(rO=!0,(0,J.Js)("error",tT,e=>"error"===e.toLowerCase().trim()),(0,J.Js)("---",{db:{clear:(0,ee.K2)(()=>{},"clear")},styles:{},renderer:{draw:(0,ee.K2)(()=>{},"draw")},parser:{parse:(0,ee.K2)(()=>{throw 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:(0,ee.K2)(()=>null,"init")},e=>e.toLowerCase().trimStart().startsWith("---")),(0,J.Xd)(tj,tq,rl),(0,J.Xd)(ej,tX,tb,tf,eY,eJ,e3,e5,ts,th,eq,eF,tF,eG,tM,tv,tE,e8,tQ,t2,tr,re,rd,ra,t4,rm,rS,rx,rL))},"addDiagrams"),rC=(0,ee.K2)(async()=>{ee.Rm.debug("Loading registered diagrams");let e=(await Promise.allSettled(Object.entries(J.mW).map(async([e,{detector:t,loader:r}])=>{if(r)try{(0,J.Gs)(e)}catch{try{let{diagram:e,id:n}=await r();(0,J.Js)(n,e,t)}catch(t){throw ee.Rm.error(`Failed to load external diagram with key ${e}. Removing from detectors.`),delete J.mW[e],t}}}))).filter(e=>"rejected"===e.status);if(e.length>0){for(let t of(ee.Rm.error(`Failed to load ${e.length} external diagrams`),e))ee.Rm.error(t);throw Error(`Failed to load ${e.length} external diagrams`)}},"loadRegisteredDiagrams");function rT(e,t){e.attr("role","graphics-document document"),""!==t&&e.attr("aria-roledescription",t)}function rR(e,t,r,n){if(void 0!==e.insert){if(r){let t=`chart-desc-${n}`;e.attr("aria-describedby",t),e.insert("desc",":first-child").attr("id",t).text(r)}if(t){let r=`chart-title-${n}`;e.attr("aria-labelledby",r),e.insert("title",":first-child").attr("id",r).text(t)}}}(0,ee.K2)(rT,"setA11yDiagramInfo"),(0,ee.K2)(rR,"addSVGa11yTitleDescription");var rK=class e{constructor(e,t,r,n,a){this.type=e,this.text=t,this.db=r,this.parser=n,this.renderer=a}static{(0,ee.K2)(this,"Diagram")}static async fromText(t,r={}){let n=(0,J.zj)(),a=(0,J.Ch)(t,n);t=(0,Q.C4)(t)+"\n";try{(0,J.Gs)(a)}catch{let e=(0,J.J$)(a);if(!e)throw new J.C0(`Diagram ${a} not found.`);let{id:t,diagram:r}=await e();(0,J.Js)(t,r)}let{db:i,parser:s,renderer:o,init:l}=(0,J.Gs)(a);return s.parser&&(s.parser.yy=i),i.clear?.(),l?.(n),r.title&&i.setDiagramTitle?.(r.title),await s.parse(t),new e(a,t,i,s,o)}async render(e,t){await this.renderer.draw(this.text,e,t,this)}getParser(){return this.parser}getType(){return this.type}},rI=[],rj=(0,ee.K2)(()=>{rI.forEach(e=>{e()}),rI=[]},"attachFunctions"),rP=(0,ee.K2)(e=>e.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart(),"cleanupComments");function rN(e){let t=e.match(J.EJ);if(!t)return{text:e,metadata:{}};let r=(0,G.H)(t[1],{schema:G.r})??{};r="object"!=typeof r||Array.isArray(r)?{}:r;let n={};return r.displayMode&&(n.displayMode=r.displayMode.toString()),r.title&&(n.title=r.title.toString()),r.config&&(n.config=r.config),{text:e.slice(t[0].length),metadata:n}}(0,ee.K2)(rN,"extractFrontMatter");var rD=(0,ee.K2)(e=>e.replace(/\r\n?/g,"\n").replace(/<(\w+)([^>]*)>/g,(e,t,r)=>"<"+t+r.replace(/="([^"]*)"/g,"='$1'")+">"),"cleanupText"),rF=(0,ee.K2)(e=>{let{text:t,metadata:r}=rN(e),{displayMode:n,title:a,config:i={}}=r;return n&&(i.gantt||(i.gantt={}),i.gantt.displayMode=n),{title:a,config:i,text:t}},"processFrontmatter"),rz=(0,ee.K2)(e=>{let t=Q._K.detectInit(e)??{},r=Q._K.detectDirective(e,"wrap");return Array.isArray(r)?t.wrap=r.some(({type:e})=>"wrap"===e):r?.type==="wrap"&&(t.wrap=!0),{text:(0,Q.vU)(e),directive:t}},"processDirectives");function rB(e){let t=rF(rD(e)),r=rz(t.text),n=(0,Q.$t)(t.config,r.directive);return{code:e=rP(r.text),title:t.title,config:n}}function rW(e){return btoa(Array.from(new TextEncoder().encode(e),e=>String.fromCodePoint(e)).join(""))}(0,ee.K2)(rB,"preprocessDiagram"),(0,ee.K2)(rW,"toBase64");var rq=["foreignobject"],rY=["dominant-baseline"];function rU(e){let t=rB(e);return(0,J.cL)(),(0,J.xA)(t.config??{}),t}async function rH(e,t){rE();try{let{code:t,config:r}=rU(e);return{diagramType:(await r6(t)).type,config:r}}catch(e){if(t?.suppressErrors)return!1;throw e}}(0,ee.K2)(rU,"processAndSetConfigs"),(0,ee.K2)(rH,"parse");var rX=(0,ee.K2)((e,t,r=[])=>{let n=(0,J.Df)(`{ ${r.join(" !important; ")} !important; }`);return`.${e} ${t} ${n}`},"cssImportantStyles"),rG=(0,ee.K2)((e,t=new Map)=>{let r=new CSSStyleSheet;if(void 0!==e.fontFamily&&r.insertRule(`:root { --mermaid-font-family: ${e.fontFamily}}`,r.cssRules.length),void 0!==e.altFontFamily&&r.insertRule(`:root { --mermaid-alt-font-family: ${e.altFontFamily}}`,r.cssRules.length),t instanceof Map){let n=(0,J.E)(e)?["> *","span"]:["rect","polygon","ellipse","circle","path"];t.forEach(e=>{eI(e.styles)||n.forEach(t=>{r.insertRule(rX(e.id,t,e.styles),r.cssRules.length)}),eI(e.textStyles)||r.insertRule(rX(e.id,"tspan",(e?.textStyles||[]).map(e=>e.replace("color","fill"))),r.cssRules.length)})}let n="";if(void 0!==e.themeCSS)if("function"==typeof r.replaceSync){let t=new CSSStyleSheet;t.replaceSync(e.themeCSS),n=(0,J.KG)(t)+"\n"}else n+=`${e.themeCSS}
`;return n+(0,J.KG)(r)},"createCssStyles"),rZ=(0,ee.K2)((e,t)=>{var r,n,a,i,s;return eg((a=function e(t,r,n,a,i,s,o,l,c){for(var h,u,d,p,f=0,g=0,m=o,y=0,b=0,k=0,x=1,w=1,v=1,_=0,S=0,A="",M=i,$=s,L=a,O=A;w;)switch(k=S,S=eS()){case 40:108!=k&&58==eu(O,m-1)?(_++,O+="("):O+=e$(S);break;case 41:_--,O+=")";break;case 34:case 39:case 91:O+=e$(S);break;case 9:case 10:case 13:case 32:if(_>0){O+=ec(S);break}O+=function(e){for(;ew=eA();)if(ew<33)eS();else break;return eM(e)>2||eM(ew)>3?"":" "}(k);break;case 92:O+=function(e,t){for(var r;--t&&eS()&&!(ew<48)&&!(ew>102)&&(!(ew>57)||!(ew<65))&&(!(ew>70)||!(ew<97)););return r=ex+(t<6&&32==eA()&&32==eS()),ed(ev,e,r)}(ex-1,7);continue;case 47:switch(eA()){case 42:case 47:ef((h=function(e,t){for(;eS();)if(e+ew===57)break;else if(e+ew===84&&47===eA())break;return"/*"+ed(ev,t,ex-1)+"*"+ec(47===e?e:eS())}(eS(),ex),u=r,d=n,p=c,e_(h,u,d,en,ec(ew),ed(h,2,-2),0,p)),c),(5==eM(k||1)||5==eM(eA()||1))&&ep(O)&&" "!==ed(O,-1,void 0)&&(O+=" ");break;default:O+="/"}break;case 123*x:l[f++]=ep(O)*v;case 125*x:case 59:case 0:if(_>0&&S){O+=ec(S);break}switch(S){case 0:case 125:w=0;case 59+g:-1==v&&(O=eh(O,/\f/g,"")),b>0&&(ep(O)-m||0===x)&&ef(b>32?eO(O+";",a,n,m-1,c):eO(eh(O," ","")+";",a,n,m-2,c),c);break;case 59:O+=";";default:if(ef(L=eL(O,r,n,f,g,i,l,A,M=[],$=[],m,s),s),123===S)if(0===g)e(O,r,L,L,M,s,m,l,$);else{switch(y){case 99:if(110===eu(O,3))break;case 108:if(97===eu(O,2))break;default:g=0;case 100:case 109:case 115:}g?e(t,L,L,a&&ef(eL(t,L,L,0,0,i,l,A,i,M=[],m,$),$),i,$,m,l,a?M:$):e(O,L,L,L,[""],$,0,l,$)}}f=g=b=0,x=v=1,A=O="",m=o;break;case 58:m=1+ep(O),b=k;default:if(x<1){if(123==S)--x;else if(125==S&&0==x++&&125==(ew=ex>0?eu(ev,--ex):0,eb--,10===ew&&(eb=1,ey--),ew))continue}switch(O+=ec(S),S*x){case 38:v=g>0?1:(O+="\f",-1);break;case 44:if(_>0)break;l[f++]=(ep(O)-1)*v,v=1;break;case 64:45===eA()&&(O+=e$(eS())),y=eA(),g=m=ep(A=O+=function(e){for(;!eM(eA());)eS();return ed(ev,e,ex)}(ex)),S++;break;case 45:45===k&&2==ep(O)&&(x=0)}}return s}("",null,null,null,[""],(n=r=`${e}{${t}}`,ey=eb=1,ek=ep(ev=n),ex=0,r=[]),0,[0],r),ev="",a),(s=(i=[(0,ee.K2)(function(t,r,n,a){"rule"===t.type&&Array.isArray(t.props)?t.parent&&t.parent.type===es||(t.props=t.props.map(t=>t.startsWith(e)?t:`${e} ${t}`)):t.type.startsWith("@")&&(["@media","@supports",eo,"@scope","@container","@starting-style",es].includes(t.type)||(ee.Rm.warn(`Removing unsupported at-rule ${t.type} from CSS`),t.type=en))},"addNamespace"),em]).length,function(e,t,r,n){for(var a="",o=0;o<s;o++)a+=i[o](e,t,r,n)||"";return a}))},"compileCSS"),rV=(0,ee.K2)((e,t,r,n)=>{let a=rG(e,r),i=(0,J.tM)(t,a,{...e.themeVariables,theme:e.theme,look:e.look},n);return rZ(n,i)},"createUserStyles"),rQ=(0,ee.K2)((e="",t,r)=>{let n=e;return r||t||(n=n.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,'marker-end="url(#')),n=(n=(0,Q.Sm)(n)).replace(/<br>/g,"<br/>")},"cleanUpSvgCode"),rJ=(0,ee.K2)((e="",t)=>{let r=t?.viewBox?.baseVal?.height?t.viewBox.baseVal.height+"px":"100%",n=rW(`<body style="margin:0">${e}</body>`);return`<iframe style="width:100%;height:${r};border:0;margin:0;" src="data:text/html;charset=UTF-8;base64,${n}" sandbox="allow-top-navigation-by-user-activation allow-popups">
The "iframe" tag is not supported by your browser.
</iframe>`},"putIntoIFrame"),r0=(0,ee.K2)((e,t,r,n,a)=>{let i=e.append("div");i.attr("id",r),n&&i.attr("style",n);let s=i.append("svg").attr("id",t).attr("width","100%").attr("xmlns","http://www.w3.org/2000/svg");return a&&s.attr("xmlns:xlink",a),s.append("g"),e},"appendDivSvgG");function r1(e,t){return e.append("iframe").attr("id",t).attr("style","width: 100%; height: 100%;").attr("sandbox","")}(0,ee.K2)(r1,"sandboxedIframe");var r2=(0,ee.K2)((e,t,r,n)=>{e.getElementById(t)?.remove(),e.getElementById(r)?.remove(),e.getElementById(n)?.remove()},"removeExistingElements"),r3=(0,ee.K2)(async function(e,t,r){let n,a;rE();let i=rU(t);t=i.code;let s=(0,J.zj)();ee.Rm.debug(s),t.length>(s?.maxTextSize??5e4)&&(t="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa");let o=`#${e}`,l="i"+e,c="#"+l,h="d"+e,u="#"+h,d=(0,ee.K2)(()=>{let e=f?c:u,t=(0,er.Ltv)(e).node();t&&"remove"in t&&t.remove()},"removeTempElements"),p=(0,er.Ltv)(document.body),f="sandbox"===s.securityLevel,g="loose"===s.securityLevel,m=s.fontFamily;if(void 0!==r){if(r&&(r.innerHTML=""),f){let e=r1((0,er.Ltv)(r),l);(p=(0,er.Ltv)(e.nodes()[0].contentDocument.body)).node().style.margin="0"}else p=(0,er.Ltv)(r);r0(p,e,h,`font-family: ${m}`,"http://www.w3.org/1999/xlink")}else{if(r2(document,e,h,l),f){let e=r1((0,er.Ltv)(document.body),l);(p=(0,er.Ltv)(e.nodes()[0].contentDocument.body)).node().style.margin="0"}else p=(0,er.Ltv)("body");r0(p,e,h)}try{n=await rK.fromText(t,{title:i.title})}catch(e){if(s.suppressErrorRendering)throw d(),e;n=await rK.fromText("error"),a=e}let y=p.select(u).node(),b=n.type,k=y.firstChild,x=k.firstChild,w=rV(s,b,n.renderer.getClasses?.(t,n),o),v=document.createElement("style");v.innerHTML=w,k.insertBefore(v,x);try{await n.renderer.draw(t,e,"11.15.0",n)}catch(r){throw s.suppressErrorRendering?d():tC.draw(t,e,"11.15.0"),r}r4(b,p.select(`${u} svg`),n.db.getAccTitle?.(),n.db.getAccDescription?.()),p.select(`[id="${e}"]`).selectAll("foreignobject > *").attr("xmlns","http://www.w3.org/1999/xhtml");let _=p.select(u).node().innerHTML;if(ee.Rm.debug("config.arrowMarkerAbsolute",s.arrowMarkerAbsolute),_=rQ(_,f,(0,J._3)(s.arrowMarkerAbsolute)),f?_=rJ(_,p.select(u+" svg").node()):g||(_=eE.default.sanitize(_,{ADD_TAGS:rq,ADD_ATTR:rY,HTML_INTEGRATION_POINTS:{foreignobject:!0}})),rj(),a)throw a;return d(),{diagramType:b,svg:_,bindFunctions:n.db.bindFunctions}},"render");function r5(e={}){let t=(0,J.hH)({},e);t?.fontFamily&&!t.themeVariables?.fontFamily&&(t.themeVariables||(t.themeVariables={}),t.themeVariables.fontFamily=t.fontFamily),(0,J.wZ)(t),t?.theme&&t.theme in J.H$?t.themeVariables=J.H$[t.theme].getThemeVariables(t.themeVariables):t&&(t.themeVariables=J.H$.default.getThemeVariables(t.themeVariables));let r="object"==typeof t?(0,J.UU)(t):(0,J.Q2)();(0,ee.He)(r.logLevel),rE()}(0,ee.K2)(r5,"initialize");var r6=(0,ee.K2)((e,t={})=>{let{code:r}=rB(e);return rK.fromText(r,t)},"getDiagramFromText");function r4(e,t,r,n){rT(t,e),rR(t,r,n,t.attr("id"))}(0,ee.K2)(r4,"addA11yInfo");var r9=Object.freeze({render:r3,parse:rH,getDiagramFromText:r6,initialize:r5,getConfig:J.zj,setConfig:J.Nk,getSiteConfig:J.Q2,updateSiteConfig:J.B6,reset:(0,ee.K2)(()=>{(0,J.cL)()},"reset"),globalReset:(0,ee.K2)(()=>{(0,J.cL)(J.sb)},"globalReset"),defaultConfig:J.sb});(0,ee.He)((0,J.zj)().logLevel),(0,J.cL)((0,J.zj)());var r8=(0,ee.K2)((e,t,r)=>{ee.Rm.warn(e),(0,Q.dq)(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"),r7=(0,ee.K2)(async function(e={querySelector:".mermaid"}){try{await ne(e)}catch(t){if((0,Q.dq)(t)&&ee.Rm.error(t.str),nd.parseError&&nd.parseError(t),!e.suppressErrors)throw ee.Rm.error("Use the suppressErrors option to suppress these errors"),t}},"run"),ne=(0,ee.K2)(async function({postRenderCallback:e,querySelector:t,nodes:r}={querySelector:".mermaid"}){let n,a,i=r9.getConfig();if(ee.Rm.debug(`${!e?"No ":""}Callback function found`),r)n=r;else if(t)n=document.querySelectorAll(t);else throw Error("Nodes and querySelector are both undefined");ee.Rm.debug(`Found ${n.length} diagrams`),i?.startOnLoad!==void 0&&(ee.Rm.debug("Start On Load: "+i?.startOnLoad),r9.updateSiteConfig({startOnLoad:i?.startOnLoad}));let s=new Q._K.InitIDGenerator(i.deterministicIds,i.deterministicIDSeed),o=[];for(let t of Array.from(n)){if(ee.Rm.info("Rendering diagram: "+t.id),t.getAttribute("data-processed"))continue;t.setAttribute("data-processed","true");let r=`mermaid-${s.next()}`;a=t.innerHTML,a=(0,et.T)(Q._K.entityDecode(a)).trim().replace(/<br\s*\/?>/gi,"<br/>");let n=Q._K.detectInit(a);n&&ee.Rm.debug("Detected early reinit: ",n);try{let{svg:n,bindFunctions:i}=await nh(r,a,t);t.innerHTML=n,e&&await e(r),i&&i(t)}catch(e){r8(e,o,nd.parseError)}}if(o.length>0)throw o[0]},"runThrowsErrors"),nt=(0,ee.K2)(function(e){r9.initialize(e)},"initialize"),nr=(0,ee.K2)(async function(e,t,r){ee.Rm.warn("mermaid.init is deprecated. Please use run instead."),e&&nt(e);let n={postRenderCallback:r,querySelector:".mermaid"};"string"==typeof t?n.querySelector=t:t&&(t instanceof HTMLElement?n.nodes=[t]:n.nodes=t),await r7(n)},"init"),nn=(0,ee.K2)(async(e,{lazyLoad:t=!0}={})=>{rE(),(0,J.Xd)(...e),!1===t&&await rC()},"registerExternalDiagrams"),na=(0,ee.K2)(function(){if(nd.startOnLoad){let{startOnLoad:e}=r9.getConfig();e&&nd.run().catch(e=>ee.Rm.error("Mermaid failed to initialize",e))}},"contentLoaded");"u">typeof document&&window.addEventListener("load",na,!1);var ni=(0,ee.K2)(function(e){nd.parseError=e},"setParseErrorHandler"),ns=[],no=!1,nl=(0,ee.K2)(async()=>{if(!no){for(no=!0;ns.length>0;){let e=ns.shift();if(e)try{await e()}catch(e){ee.Rm.error("Error executing queue",e)}}no=!1}},"executeQueue"),nc=(0,ee.K2)(async(e,t)=>new Promise((r,n)=>{let a=(0,ee.K2)(()=>new Promise((a,i)=>{r9.parse(e,t).then(e=>{a(e),r(e)},e=>{ee.Rm.error("Error parsing",e),nd.parseError?.(e),i(e),n(e)})}),"performCall");ns.push(a),nl().catch(n)}),"parse"),nh=(0,ee.K2)((e,t,r)=>new Promise((n,a)=>{let i=(0,ee.K2)(()=>new Promise((i,s)=>{r9.render(e,t,r).then(e=>{i(e),n(e)},e=>{ee.Rm.error("Error parsing",e),nd.parseError?.(e),s(e),a(e)})}),"performCall");ns.push(i),nl().catch(a)}),"render"),nu=(0,ee.K2)(()=>Object.keys(J.mW).map(e=>({id:e})),"getRegisteredDiagramsMetadata"),nd={startOnLoad:!0,mermaidAPI:r9,parse:nc,render:nh,init:nr,run:r7,registerExternalDiagrams:nn,registerLayoutLoaders:Z.sO,initialize:nt,parseError:void 0,contentLoaded:na,setParseErrorHandler:ni,detectType:J.Ch,registerIconPacks:V.pC,getRegisteredDiagramsMetadata:nu};let np=e=>e.replace(/\s*!important\s*$/i,"").trim(),nf=(e,t)=>{let r=t;for(;r<e.length&&/\s/.test(e[r]);)r+=1;let n=r;for(;r<e.length&&/[a-z-]/i.test(e[r]);)r+=1;if(r===n)return!1;for(;r<e.length&&/\s/.test(e[r]);)r+=1;return":"===e[r]},ng=e=>{let t=[],r=0;for(;r<e.length;){for(;r<e.length&&/[\s;,]/.test(e[r]);)r+=1;if(r>=e.length)break;let n=r;for(;r<e.length&&":"!==e[r]&&";"!==e[r]&&","!==e[r];)r+=1;if(r>=e.length||":"!==e[r])break;let a=e.substring(n,r).trim().toLowerCase(),i=r+=1,s=0,o=null;for(;r<e.length;){let t=e[r];if(o){t===o&&"\\"!==e[r-1]&&(o=null),r+=1;continue}if('"'===t||"'"===t){o=t,r+=1;continue}if("("===t){s+=1,r+=1;continue}if(")"===t){s=Math.max(0,s-1),r+=1;continue}if(0===s&&(";"===t||","===t||/\s/.test(t)&&nf(e,r)))break;r+=1}let l=np(e.substring(i,r));a&&l&&t.push({property:a,value:l}),r<e.length&&(";"===e[r]||","===e[r])&&(r+=1)}return t},nm=e=>{let t=np(e);if(!t)return!1;if("u">typeof CSS&&"function"==typeof CSS.supports)return CSS.supports("color",t);if("u">typeof document){let e=document.createElement("div");return e.style.color="",e.style.color=t,""!==e.style.color}return!1},ny=(e,t)=>{let r=e.getAttribute("style");return r&&ng(r).find(e=>e.property===t)?.value||""},nb=(...e)=>{for(let t of e){let e=np(t||"");if(nm(e))return e}},nk=(e,t)=>{let r=e.querySelector("text, foreignObject, div, span, p")||e,n=nb(r.getAttribute?.("fill"),ny(r,"fill"),r.style?.fill);if(n)return n;let a=nb(r.getAttribute?.("color"),ny(r,"color"),r.style?.color);if(a)return a;let i=nb(t);if(i)return i},nx=(e,t,r)=>{switch(t){case u.FILL:case u.STROKE:nm(r)&&(e[t]=r);break;case u.STROKE_WIDTH:case u.STROKE_DASHARRAY:e[t]=r}},nw=(e,t,r)=>{t===h.COLOR&&nm(r)&&(e[h.COLOR]=r)},nv=(e,t,r)=>{e&&ng(e).forEach(({property:e,value:n})=>{nx(t,e,n),nw(r,e,n)})},n_=(e,t)=>{e&&ng(e).forEach(({property:e,value:r})=>{if("fill"===e&&nm(r)){t[h.COLOR]=r;return}nw(t,e,r)})},nS=(e,t)=>{e&&[[u.FILL,e.getAttribute("fill")],[u.STROKE,e.getAttribute("stroke")],[u.STROKE_WIDTH,e.getAttribute("stroke-width")],[u.STROKE_DASHARRAY,e.getAttribute("stroke-dasharray")]].forEach(([e,r])=>{let n=np(r||"");n&&nx(t,e,n)})},nA=(e,t)=>{if(!e)return;let r=np(e.getAttribute("fill")||e.getAttribute("color")||"");nm(r)&&(t[h.COLOR]=r)},nM=(e,t,r,n)=>{if(!(t instanceof Map))return;let a=t.get(e);a&&(a.styles?.forEach(e=>{ng(e).forEach(({property:e,value:t})=>{nx(r,e,t),nw(n,e,t)})}),a.textStyles?.forEach(e=>{ng(e).forEach(({property:e,value:t})=>{nw(n,e,t)})}))},n$=(e,t,r)=>{let n,a=t.querySelector(`[id*="${e.domId}"]`);if(!a)return;a.parentElement?.tagName.toLowerCase()==="a"&&(n=a.parentElement.getAttribute("xlink:href"));let i=nL(n?a.parentElement:a,t),s=a.getBBox(),o={width:s.width,height:s.height},l={},c={};e.classes&&r instanceof Map&&(Array.isArray(e.classes)?e.classes:[e.classes]).forEach(e=>{nM(e,r,l,c)}),e.styles?.forEach(e=>{nv(e,l,c)});let h=a.querySelector(".label-container");return nv(h?.getAttribute("style"),l,c),nS(h,l),Array.from(a.querySelectorAll(".label, .nodeLabel, .label text, .label tspan, .label span, .label div")).forEach(e=>{n_(e.getAttribute("style"),c),nA(e,c)}),{id:e.id,labelType:e.labelType,text:F(e.text||""),type:e.type,link:n||void 0,...i,...o,containerStyle:l,labelStyle:c}},nL=(e,t)=>{if(!e)throw Error("Element not found");let r=e.parentElement?.parentElement,n=e.childNodes[0],a={x:0,y:0};if(n){let{transformX:e,transformY:t}=z(n),r=n.getBBox();a={x:Number(n.getAttribute("x"))||e+r.x||0,y:Number(n.getAttribute("y"))||t+r.y||0}}let{transformX:i,transformY:s}=z(e),o={x:i+a.x,y:s+a.y};for(;r&&r.id!==t.id;){if("root"===r.classList.value&&r.hasAttribute("transform")){let{transformX:e,transformY:t}=z(r);o.x+=e,o.y+=t}r=r.parentElement}return o},nO=(e,t,r,n,a)=>{let i={};return i.type="arrow",i.startX=e,i.startY=t,i.endX=r,i.endY=n,Object.assign(i,{...a}),i},nE=(e,t,r,n)=>({type:"text",x:e,y:t,text:r,width:n?.width||20,height:n?.height||20,fontSize:n?.fontSize||20,id:n?.id,color:n?.color,groupId:n?.groupId,metadata:n?.metadata}),nC=(e,t,r)=>{let n={},a=Number(e.getAttribute("x")),i=Number(e.getAttribute("y"));n.type="text",n.text=F(t),r?.id&&(n.id=r.id),r?.groupId&&(n.groupId=r.groupId);let s=e.getBBox();return n.width=s.width,n.height=s.height,n.x=a-s.width/2,n.y=i,n.fontSize=parseInt(getComputedStyle(e).fontSize),n.color=nk(e),n},nT=(e,t,r={})=>{let n={};n.type=t;let{label:a,subtype:i,id:s,groupId:o}=r;n.id=s,o&&(n.groupId=o),a&&(n.label={text:F(a.text),fontSize:16,textAlign:a?.textAlign,verticalAlign:a?.verticalAlign});let l=e.getBBox();switch(n.x=l.x,n.y=l.y,n.width=l.width,n.height=l.height,n.subtype=i,i){case"highlight":let c=e.getAttribute("fill");c&&(n.bgColor=np(c));break;case"note":n.strokeStyle="dashed"}return n},nR=(e,t,r,n,a,i)=>{let s={};s.startX=t,s.startY=r,s.endX=n,i?.groupId&&(s.groupId=i.groupId),i?.id&&(s.id=i.id),s.endY=a;let o=e.getAttribute("stroke");return s.strokeColor=o?np(o):null,s.strokeWidth=Number(e.getAttribute("stroke-width")),s.type="line",s},nK={0:"SOLID",1:"DOTTED",3:"SOLID_CROSS",4:"DOTTED_CROSS",5:"SOLID_OPEN",6:"DOTTED_OPEN",24:"SOLID_POINT",25:"DOTTED_POINT"},nI=(e,t,r)=>{if(!e)throw"root node not found";let n=x(),i=Array.from(e.children),s=[];return i.forEach((e,i)=>{let o,l=`${r?.id}-${i}`;switch(e.tagName){case"line":let c=Number(e.getAttribute("x1")),h=Number(e.getAttribute("y1")),u=Number(e.getAttribute("x2")),d=Number(e.getAttribute("y2"));o=nR(e,c,h,u,d,{groupId:n,id:l});break;case"text":o=nC(e,t,{groupId:n,id:l});break;case"circle":o=nT(e,"ellipse",{label:e.textContent?{text:e.textContent}:void 0,groupId:n,id:l});default:o=nT(e,a[e.tagName],{label:e.textContent?{text:e.textContent}:void 0,groupId:n,id:l})}s.push(o)}),s},nj=(e,t)=>{let r=t.getAttribute("fill"),n=t.getAttribute("stroke"),a=t.getAttribute("stroke-width"),i=t.getAttribute("stroke-dasharray");r&&"none"!==r&&(e.bgColor=np(r)),n&&"none"!==n&&(e.strokeColor=np(n)),a&&(e.strokeWidth=Number(a)),i&&i.trim()&&(e.strokeStyle="dashed")},nP=e=>{let t;switch(e){case 0:t="diamond_outline";break;case 2:t="diamond";break;case 1:t="triangle_outline";break;case"none":t=null;break;default:t="arrow"}return t},nN=(e,t)=>{let r=0,n=0,a=e;for(;a&&a!==t;){let{transformX:e,transformY:t}=z(a);r+=e,n+=t,a=a.parentElement}return{tx:r,ty:n}},nD=new Set(["triangle_outline","diamond","diamond_outline"]),nF=(e,t=.5)=>{if(e.length<=2)return[...e];let r=[e[0]];for(let n=1;n<e.length-1;n++){let a=r[r.length-1],i=e[n],s=e[n+1],o=s.x-a.x,l=s.y-a.y,c=Math.hypot(o,l);if(!c)continue;let h=Math.abs(o*(i.y-a.y)-l*(i.x-a.x))/c,u=((i.x-a.x)*o+(i.y-a.y)*l)/(c*c);h<=t&&u>=-t&&u<=1+t||r.push(i)}return r.push(e[e.length-1]),r},nz=e=>{let t=q(U(e).map(e=>[e.x,e.y])).map(([e,t])=>({x:e,y:t})),r=Y(e);return r&&t.length>=2&&(t[0]={x:r.startX,y:r.startY},t[t.length-1]={x:r.endX,y:r.endY}),nF(t)},nB=(e,t,r)=>{let n=e.x-t.x,a=e.y-t.y,i=Math.hypot(n,a);return i?{x:e.x+n/i*r,y:e.y+a/i*r}:e},nW=(e,t,r)=>{let n,a;if(e.length<2)throw Error(`Class diagram edge ${t?.id||"<unknown>"} is missing usable path points`);let i=e[0],s=e[e.length-1],o=nO(i.x,i.y,s.x,s.y,{id:t?.getAttribute("data-id")||t?.id||void 0,...r,points:e.map(e=>[e.x-i.x,e.y-i.y])});return t&&(n=np(t.getAttribute("stroke")||getComputedStyle(t).stroke||""),a=parseFloat(t.getAttribute("stroke-width")||getComputedStyle(t).strokeWidth||"1"),nm(n)&&"none"!==n&&(o.strokeColor=n),Number.isFinite(a)&&a>0&&(o.strokeWidth=a)),(e=>{let t=e.points?.map(([t,r])=>({x:e.startX+t,y:e.startY+r})).filter(e=>Number.isFinite(e.x)&&Number.isFinite(e.y));if(!t||t.length<2)return e;let r=[...t],n=!!e.startArrowhead&&nD.has(e.startArrowhead),a=!!e.endArrowhead&&nD.has(e.endArrowhead);if(!n&&!a)return e;if(n&&(r[0]=nB(r[0],r[1],16)),a){let e=r.length-1;r[e]=nB(r[e],r[e-1],16)}let i=q(r.map(e=>[e.x,e.y])).map(([e,t])=>({x:e,y:t}));if(i.length<2)throw Error("Arrow route must contain at least two points");let s=i[0],o=i[i.length-1];return e.startX=s.x,e.startY=s.y,e.endX=o.x,e.endY=o.y,e.points=i.map(e=>[e.x-s.x,e.y-s.y]),e})(o)},nq=(e,t)=>{let r;return nW((r=[],e.forEach(e=>{nz(e).forEach(e=>{let t=r[r.length-1];t&&t.x===e.x&&t.y===e.y||r.push(e)})}),nF(r)),e[0],t)},nY=(e,t)=>{let r=e.points?.map(([t,r])=>({x:e.startX+t,y:e.startY+r})).filter(e=>Number.isFinite(e.x)&&Number.isFinite(e.y))||[];if(r.length<2)return null;let n="start"===t,a=n?r[0]:r[r.length-1],i=n?r[1]:r[r.length-2],s=i.x===a.x?n?-1:1:Math.sign(i.x-a.x),o=i.y===a.y?1:Math.sign(i.y-a.y);return{x:a.x+20*s,y:a.y+(o>=0?12:-28)}},nU=(e,t)=>{let r=0,n=0,a=e;for(;a&&a!==t;){let{transformX:e,transformY:t}=z(a);r+=e,n+=t,a=a.parentElement}return{tx:r,ty:n}},nH=e=>{switch(e?.toLowerCase()){case"one":return"cardinality_one";case"many":return"cardinality_many";case"only_one":return"cardinality_exactly_one";case"one_or_more":return"cardinality_one_or_many";case"zero_or_one":return"cardinality_zero_or_one";case"zero_or_more":return"cardinality_zero_or_many";default:return null}},nX=e=>{let t=np(e||"");return!!t&&"none"!==t&&"transparent"!==t&&"rgba(0, 0, 0, 0)"!==t&&"rgba(0,0,0,0)"!==t&&nm(t)},nG=(e,t,r)=>{switch(t){case u.FILL:case u.STROKE:nX(r)&&(e[t]=np(r));break;case u.STROKE_WIDTH:case u.STROKE_DASHARRAY:np(r)&&(e[t]=np(r))}},nZ=(e,t,r)=>{t===h.COLOR&&nX(r)&&(e[h.COLOR]=np(r))},nV=(e,t)=>{e&&ng(e).forEach(({property:e,value:r})=>{if(e===u.FILL&&nX(r)){t[h.COLOR]=np(r);return}nZ(t,e,r)})},nQ=(e,t)=>{let r=0,n=0,a=e;for(;a&&a!==t;){let{transformX:e,transformY:t}=z(a);r+=e,n+=t,a=a.parentElement}return{tx:r,ty:n}},nJ=(e,t)=>{let r=e.getAttribute("style");if(!r)return;let n=ng(r).find(e=>e.property===t);if(n)return np(n.value)},n0=(e,t)=>{let r=e.map(e=>{let t;return{element:e,area:Math.abs((t=e.getBBox()).width*t.height)}}).filter(({area:e})=>Number.isFinite(e)&&e>0);return 0===r.length?null:r.sort((e,r)=>"largest"===t?r.area-e.area:e.area-r.area)[0].element},n1=Promise.resolve(),n2=null,n3=0,n5=e=>{let t=e.querySelector("svg");if(!t)throw Error("SVG element not found");let r=t.getBoundingClientRect(),n=r.width,a=r.height;t.setAttribute("width",`${n}`),t.setAttribute("height",`${a}`);let i=btoa(unescape(encodeURIComponent(t.outerHTML)));return{type:"graphImage",mimeType:"image/svg+xml",dataURL:`data:image/svg+xml;base64,${i}`,width:n,height:a}},n6=async(e,t=i)=>{var r;let n;return r=async()=>{let r=t.themeVariables?.fontSize??i.themeVariables.fontSize,n={...i,...t,fontSize:r,themeVariables:{...i.themeVariables,...t.themeVariables,fontSize:r}},a=JSON.stringify(n);a!==n2&&(nd.initialize(n),n2=a);let s=await nd.mermaidAPI.getDiagramFromText(e.replace(/style.*:\S*#.*;/g,e=>e.substring(0,e.length-1)).replace(/classDef.*:\S*#.*;/g,e=>e.substring(0,e.length-1)).replace(/#\w+;/g,e=>{let t=e.substring(1,e.length-1);return/^\+?\d+$/.test(t)?`\xb0\xb0${t}\xb6\xdf`:`\xb0${t}\xb6\xdf`})),o=`mermaid-to-excalidraw-${n3++}`,l=document.createElement("div");l.setAttribute("style","opacity: 0; position: fixed; z-index: -1; left: -99999px; top: -99999px;");let c=`${o}-container`;l.id=c,document.getElementById(c)?.remove(),document.body.appendChild(l);try{let t,{svg:r}=await nd.render(o,e,l);l.innerHTML=r;try{var d,p;switch(s.type){case"flowchart-v2":case"graph":let e,r,n,a,i,o,c,f;d=s.db,e=d.getVertices(),r=d.getEdges(),n=d.getSubGraphs(),a=d.getClasses(),i={},o=a instanceof Map?a:{},e instanceof Map?e.forEach((e,t)=>{i[t]=n$(e,l,o)}):"object"==typeof e&&null!==e&&Object.entries(e).forEach(([e,t])=>{i[e]=n$(t,l,o)}),c=new Map,f=(Array.isArray(r)?r:[]).map(e=>{if(!l.querySelector(`[id*="${e.id}"]`))return null;let t=`${e.start}-${e.end}`,r=c.get(t)||0;c.set(t,r+1);let n=l.querySelector(`[id*="${e.id}"]`);if(!n)throw Error("Edge element not found");let a=nL(n,l),i=H(n,a);return e.length=void 0,{...e,...i,text:F(e.text)}}).filter(e=>null!==e&&e.reflectionPoints.length>1),t={type:"flowchart",subGraphs:(Array.isArray(n)?n:[]).map(e=>((e,t,r)=>{let n=e.nodes.map(e=>e.startsWith("flowchart-")?e.split("-")[1]:e),a=t.querySelector(`[id='${e.id}']`);if(!a)throw Error("SubGraph element not found");let i=nL(a,t),s=a.getBBox(),o={width:s.width,height:s.height},l={},c={},h=a.querySelector(":scope > rect, :scope > path, :scope > polygon, :scope > ellipse")||a.querySelector(".cluster > rect, .cluster > path, .cluster > polygon, .cluster > ellipse")||a.querySelector("rect, path, polygon, ellipse");nv(a.getAttribute("style"),l,c),nv(h?.getAttribute("style"),l,c),nS(h,l);let u=a.querySelector(".cluster-label text, .cluster-label tspan")||a.querySelector("text");return n_(u?.getAttribute("style"),c),nA(u,c),nM(e.id,r,l,c),e.classes?.forEach(e=>{nM(e,r,l,c)}),{id:e.id,nodeIds:n,text:F(e.title),labelType:"text",...i,...o,containerStyle:l,labelStyle:c}})(e,l,o)),vertices:i,edges:f};break;case"sequence":t=((e,t)=>{var r;let n,a,i,s,o,l,c,h,u,d,p,f,g,m,y,b,k,x,w,v,_,S,A,M,$,L,O,E=e.db,C=[],T=E.getBoxes().map(e=>({...e,fill:np(e.fill||"")})),R=(n=Array.from(t.querySelectorAll(".rect")).filter(e=>e.parentElement?.tagName!=="g"),a=[],n.forEach(e=>{let t=nT(e,"rectangle",{label:{text:""},subtype:"highlight"});a.push(t)}),a),{nodes:K,lines:I,actorMap:j}=(r=E.getActors(),i=Array.from(t.querySelectorAll(".actor-top")),s=Array.from(t.querySelectorAll(".actor-bottom")),o=[],l=[],c={},h=r instanceof Map?Array.from(r.values()):Object.values(r),u=Array.from(t.querySelectorAll(".actor-line")),d=(e,t)=>{let r=e.name,n=u.find(e=>e.getAttribute("name")===r);if(n)return n;let a="participant"===e.type?t.parentElement?.previousElementSibling:t.previousElementSibling;return a?"line"===a.tagName?a:a.querySelector("line"):null},h.forEach(e=>{let t=i.find(t=>t.getAttribute("name")===e.name),r=s.find(t=>t.getAttribute("name")===e.name);if(!t||!r)throw"root not found";let n=e.description;if("participant"===e.type){let a=nT(t,"rectangle",{id:`${e.name}-top`,label:{text:n},subtype:"actor"});if(nj(a,t),!a)throw"Top Node element not found!";o.push([a]);let i=nT(r,"rectangle",{id:`${e.name}-bottom`,label:{text:n},subtype:"actor"});c[e.name]={topId:`${e.name}-top`,bottomId:`${e.name}-bottom`,bindType:"rectangle"},nj(i,r),o.push([i]);let s=d(e,t);if(s?.tagName!=="line")throw"Line not found";let h=Number(s.getAttribute("x1"));if(!a.height)throw"Top node element height is null";let u=a.y+a.height,p=i.y,f=Number(s.getAttribute("x2")),g=nR(s,h,u,f,p);l.push(g)}else if("actor"===e.type){let a=nI(t,n,{id:`${e.name}-top`});o.push(a);let i=nI(r,n,{id:`${e.name}-bottom`});o.push(i);let s=d(e,t);if(s?.tagName!=="line")throw"Line not found";let h=Number(s.getAttribute("x1")),u=Number(s.getAttribute("y1")),p=Number(s.getAttribute("x2")),f=i.find(e=>"ellipse"===e.type);if(f){let e=nR(s,h,u,p,f.y);l.push(e)}let g=a.find(e=>"ellipse"===e.type),m=i.find(e=>"ellipse"===e.type);g?.id&&m?.id&&(c[e.name]={topId:g.id,bottomId:m.id,bindType:"ellipse"})}}),{nodes:o,lines:l,actorMap:c}),P=E.getMessages(),N=(p=[],f=Array.from(t.querySelectorAll('[class*="messageLine"]')),g=Object.keys(nK),m=P.filter(e=>g.includes(e.type.toString())),f.forEach((e,t)=>{let r=m[t],n=nK[r.type],a=((e,t)=>{let r={};t?.label&&(r.label={text:F(t.label),fontSize:16});let n=e.tagName;if("line"===n)r.startX=Number(e.getAttribute("x1")),r.startY=Number(e.getAttribute("y1")),r.endX=Number(e.getAttribute("x2")),r.endY=Number(e.getAttribute("y2"));else if("path"===n){let t=e.getAttribute("d");if(!t)throw Error('Path element does not contain a "d" attribute');let n=t.split(/(?=[LC])/),a=n[0].substring(1).split(",").map(e=>parseFloat(e)),i=[];n.forEach(e=>{let t=e.substring(1).trim().split(" ").map(e=>{let[t,r]=e.split(",");return[parseFloat(t)-a[0],parseFloat(r)-a[1]]});i.push(...t)});let s=i[i.length-1];r.startX=a[0],r.startY=a[1],r.endX=s[0],r.endY=s[1],r.points=i}t?.label&&(r.startY=r.startY-10,r.endY=r.endY-10);let a=e.getAttribute("stroke"),i=(a&&"none"!==a?a:"")||getComputedStyle(e).stroke||"";return r.strokeColor=i?np(i):null,r.strokeWidth=Number(e.getAttribute("stroke-width")),r.type="arrow",r.strokeStyle=t?.strokeStyle||"solid",r.startArrowhead=t?.startArrowhead||null,r.endArrowhead=t?.endArrowhead||null,r})(e,{label:r?.message,strokeStyle:(e=>{let t;switch(e){case 0:case 3:case 5:case 24:default:t="solid";break;case 1:case 4:case 6:case 25:t="dotted"}return t})(r.type),endArrowhead:"SOLID_OPEN"===n||"DOTTED_OPEN"===n?null:"arrow"}),i=j[r.from],s=j[r.to];i?.topId&&s?.topId&&(a.start={type:i.bindType||"rectangle",id:i.topId},a.end={type:s.bindType||"rectangle",id:s.topId});if(e.nextElementSibling?.classList.contains("sequenceNumber")){let t=e.nextElementSibling?.textContent;if(!t)throw Error("sequence number not present");let r={type:"rectangle",x:a.startX-10,y:a.startY-15,label:{text:t,fontSize:14},bgColor:"#e9ecef",height:30,subtype:"sequence"};Object.assign(a,{sequenceNumber:r})}p.push(a)}),p),D=(y=Array.from(t.querySelectorAll(".note")).map(e=>e.parentElement),b=P.filter(e=>2===e.type),k=[],y.forEach((e,t)=>{if(!e)return;let r=e.firstChild,n=nT(r,"rectangle",{label:{text:b[t].message},subtype:"note"}),a=r.getAttribute("fill"),i=r.getAttribute("stroke"),s=r.getAttribute("stroke-width"),o=r.getAttribute("stroke-dasharray");a&&"none"!==a&&(n.bgColor=np(a)),i&&"none"!==i&&(n.strokeColor=np(i)),s&&(n.strokeWidth=Number(s)),o&&o.trim()&&(n.strokeStyle="dashed"),k.push(n)}),k),z=(x=Array.from(t.querySelectorAll("[class*=activation]")),w=[],x.forEach(e=>{let t,r,n,a,i=nT(e,"rectangle",{label:{text:""},subtype:"activation"});t=e.getAttribute("fill"),r=e.getAttribute("stroke"),n=e.getAttribute("stroke-width"),a=e.getAttribute("stroke-dasharray"),t&&"none"!==t&&(i.bgColor=np(t)),r&&"none"!==r&&(i.strokeColor=np(r)),n&&(i.strokeWidth=Number(n)),a&&a.trim()&&(i.strokeStyle="dashed"),w.push(i)}),w),B=(v=Array.from(t.querySelectorAll(".loopLine")),_=[],S=[],A=[],v.forEach(e=>{let t=Number(e.getAttribute("x1")),r=Number(e.getAttribute("y1")),n=Number(e.getAttribute("x2")),a=Number(e.getAttribute("y2")),i=nR(e,t,r,n,a);i.strokeStyle="dotted",i.strokeColor="#adb5bd",i.strokeWidth=2,_.push(i)}),M=Array.from(t.querySelectorAll(".loopText")),$=P.filter(e=>27===e.type).map(e=>e.message),M.forEach(e=>{let t=e.textContent||"",r=nC(e,t),n=t.match(/\[(.*?)\]/)?.[1]||"";$.includes(n)&&(r.x+=16),S.push(r)}),L=Array.from(t?.querySelectorAll(".labelBox")),O=Array.from(t?.querySelectorAll(".labelText")),L.forEach((e,t)=>{let r=nT(e,"rectangle",{label:{text:O[t]?.textContent||""}});r.strokeColor="#adb5bd",r.bgColor="#e9ecef",r.width=void 0,A.push(r)}),{lines:_,texts:S,nodes:A});return C.push(R),C.push(...K),C.push(D),C.push(z),{type:"sequence",lines:I,arrows:N,nodes:C,loops:B,groups:T}})(s,l);break;case"class":case"classDiagram":t=((e,t)=>{var r;let n,a,i=e.db,s=i.getDirection?.()||"TB",o=[],l=[],c=[],h=[],u=i.getNamespaces?.()||[],d=i.getClasses?.()||{},p=d instanceof Map?Object.fromEntries(d):d;if(p&&Object.keys(p).length){let e,r,n,a="function"==typeof i.lookUpDomId?i.lookUpDomId.bind(i):void 0,s=(e=[],r=[],n=[],Object.values(p).forEach(i=>{var s;let o,l,c,{domId:h,id:u}=i,d=x(),p=(s=i.styles||i.cssStyles,l={},s&&s.forEach(e=>{ng(e).forEach(({property:e,value:t})=>{e&&t&&(l[e]=np(t))})}),l);try{o=a?a(u):void 0}catch{o=void 0}let f=o&&t.querySelector(`#${o}`)||t.querySelector(`#${h}`)||t.querySelector(`[data-id='${u}']`)||(c=RegExp(`^classId-${u}(?:-|$)`),Array.from(t.querySelectorAll("[id]")).filter(e=>c.test(e.id))[0]);if(!f)throw Error(`DOM Node with id ${h} not found`);let g=f.querySelector("rect")||f,m=g.getBBox(),{tx:y,ty:b}=nN(g,t),k={type:"rectangle",id:u,groupId:d,x:m.x+y,y:m.y+b,width:m.width,height:m.height,metadata:{classId:u}},w=g.getAttribute("fill"),v=g.getAttribute("stroke"),_=g.getAttribute("stroke-width"),S=g.getAttribute("stroke-dasharray"),A=getComputedStyle(g),M=np(w||p.fill||(w?A.fill:"")),$=np(v||p.stroke||(v?A.stroke:"")),L=_||p["stroke-width"]||(_?A.strokeWidth:""),O=S||p["stroke-dasharray"]||(S?"none"===A.strokeDasharray?"":A.strokeDasharray:""),E=e=>{if(!e||!nm(e))return!1;let t=e.toLowerCase();return"none"!==t&&"transparent"!==t&&"rgba(0, 0, 0, 0)"!==t&&"black"!==t&&"#000"!==t&&"#000000"!==t&&"rgb(0, 0, 0)"!==t&&"rgba(0, 0, 0, 1)"!==t};E(M)?k.bgColor=M:k.bgColor=void 0,E($)?k.strokeColor=$:k.strokeColor=void 0,L?k.strokeWidth=Number(L):k.strokeWidth=void 0,O&&O.trim().length>0?k.strokeStyle="dashed":k.strokeStyle=void 0,e.push(k),[...Array.from(f.querySelectorAll("line")),...Array.from(f.querySelectorAll("g.divider path"))].forEach(e=>{let n,a,i,s,{tx:o,ty:l}=nN(e,t);if("line"===e.tagName.toLowerCase())n=Number(e.getAttribute("x1"))+o,a=Number(e.getAttribute("y1"))+l,i=Number(e.getAttribute("x2"))+o,s=Number(e.getAttribute("y2"))+l;else{let t=e.getBBox();n=t.x+o,i=t.x+t.width+o;let r=t.y+t.height/2+l;a=r,s=r}if(n===i&&a===s)return;let c=nR(e,n,a,i,s,{groupId:d,id:x()});k.strokeColor?c.strokeColor=k.strokeColor:c.strokeColor=void 0,void 0!==k.strokeWidth?c.strokeWidth=k.strokeWidth:c.strokeWidth=void 0,k.strokeStyle?c.strokeStyle=k.strokeStyle:c.strokeStyle=void 0,c.metadata={classId:u},r.push(c)});let C=Array.from(f.querySelectorAll("text, foreignObject")),T=[];C.forEach(e=>{let r="foreignobject"===e.tagName.toLowerCase(),n=r?[]:Array.from(e.querySelectorAll("tspan")),a=n.length?n.map(e=>e.textContent?.trim()).filter(Boolean).join("\n"):e.textContent?.trim()||"";if(!a)return;let i=e.getBBox(),{ty:s}=nN(e,t),o=parseFloat(getComputedStyle(e).fontSize||"");if(r&&(!Number.isFinite(o)||!o)){let t=e.querySelector("div, span, p");t&&(o=parseFloat(getComputedStyle(t).fontSize||""))}(!Number.isFinite(o)||o<=0)&&(o=Math.max(12,.6*i.height)),o*=.9;let l=nk(e,p.color);T.push({section:((e,t)=>{let r=e;for(;r&&r!==t;){if(r.classList.contains("annotation-group")||r.classList.contains("label-group"))return"header";if(r.classList.contains("members-group"))return"members";if(r.classList.contains("methods-group"))return"methods";r=r.parentElement}return"other"})(e,f),text:F(a),x:i.x,y:i.y+s,width:k&&k.width?Math.max(k.width-8,i.width):i.width,height:i.height,fontSize:o,color:l})});let R=T.filter(e=>"header"===e.section).sort((e,t)=>e.y-t.y||e.x-t.x);if(!k.label){let e=0===R.length&&1===T.length?T:R;e.length>0&&(k.label={text:e.map(e=>e.text).join("\n"),fontSize:Math.max(...e.map(e=>e.fontSize)),color:e.find(e=>e.color)?.color,verticalAlign:"top"})}T.filter(e=>R.length>0?"header"!==e.section:!(k.label&&1===T.length)).forEach(e=>{let t=nE((k?.x||0)+4,e.y,e.text,{width:e.width,height:e.height,fontSize:e.fontSize,color:e.color,id:x(),groupId:d,metadata:{classId:u}});n.push(t)})}),{nodes:e,lines:r,text:n});o.push(s.nodes),l.push(...s.lines),c.push(...s.text),h.push(...s.nodes)}let{arrows:f,text:g}=((e,t,r,n)=>{let a=Array.from(r.querySelectorAll('.edgePaths path[data-edge="true"]:not([id^="edgeNote"]):not([id*="-cyclic-special-"])'));if(0===e.length)return{arrows:[],text:[]};let i=[],s=[],o=0;return e.forEach(e=>{var l;let c,h,u,{id1:d,id2:p,relation:f}=e,g=t.find(e=>e.id===d),m=t.find(e=>e.id===p);if(!g)throw Error(`parseRelations: Cannot find node with id ${d}`);if(!m)throw Error(`parseRelations: Cannot find node with id ${p}`);let y=(e=>{let t;switch(e){case 0:default:t="solid";break;case 1:t="dotted"}return t})(f.lineType),b=nP(f.type1),k=nP(f.type2);if(d===p){let t=[`${d}-cyclic-special-1`,`${d}-cyclic-special-mid`,`${d}-cyclic-special-2`].map(e=>r.querySelector(`path[id="${e}"][data-edge="true"]`)).filter(e=>null!==e);if(!t.length)throw Error(`parseRelations: Cannot find rendered SVG edge for relation ${d} -> ${p}`);c=nq(t,{strokeStyle:y,startArrowhead:b,endArrowhead:k,label:e.title?{text:e.title}:void 0,start:{type:"rectangle",id:g.id},end:{type:"rectangle",id:m.id}})}else{let t,r=a[o];if(!r)throw Error(`parseRelations: Cannot find rendered SVG edge for relation ${d} -> ${p}`);o+=1,l={strokeStyle:y,startArrowhead:b,endArrowhead:k,label:e.title?{text:e.title}:void 0,start:{type:"rectangle",id:g.id},end:{type:"rectangle",id:m.id}},t=nz(r),c=nW([t[0],t[t.length-1]],r,l)}i.push(c);let{relationTitle1:x,relationTitle2:w}=e,v=d===p;if(x&&"none"!==x){if(v){let e=nY(c,"start");e&&(h=e.x,u=e.y)}else switch(n){case"TB":h=c.startX-20,c.endX<c.startX&&(h-=15),u=c.startY+15;break;case"BT":h=c.startX+20,c.endX>c.startX&&(h+=15),u=c.startY-15;break;case"LR":h=c.startX+20,u=c.startY+15,c.endY>c.startY&&(u+=15);break;case"RL":h=c.startX-20,u=c.startY-15,c.startY>c.endY&&(u-=15);break;default:h=c.startX-20,u=c.startY+15}h??=c.startX-20;let e=nE(h,u??=c.startY+15,x,{fontSize:16});s.push(e)}if(w&&"none"!==w){if(v){let e=nY(c,"end");e&&(h=e.x,u=e.y)}else switch(n){case"TB":h=c.endX+20,c.endX<c.startX&&(h+=15),u=c.endY-15;break;case"BT":h=c.endX-20,c.endX>c.startX&&(h-=15),u=c.endY+15;break;case"LR":h=c.endX-20,u=c.endY-15,c.endY>c.startY&&(u-=15);break;case"RL":h=c.endX+20,u=c.endY+15,c.startY>c.endY&&(u+=15);break;default:h=c.endX+20,u=c.endY-15}h??=c.endX+20;let e=nE(h,u??=c.endY+15,w,{fontSize:16});s.push(e)}}),{arrows:i,text:s}})(i.getRelations?.()||[],h,t,s),{notes:m,connectors:y}=(r=i.getNotes?.()||[],n=[],a=[],r.forEach((e,r)=>{let{id:i,text:s,class:o}=e,l=t.querySelector(`#${i}`);if(!l)throw Error(`Node with id ${i} not found!`);let{transformX:c,transformY:u}=z(l),d=nT(l.firstChild,"rectangle",{id:i,subtype:"note",label:{text:s}});if(Object.assign(d,{x:d.x+c,y:d.y+u}),n.push(d),o){let e=h.find(e=>e.id===o);if(!e)throw Error(`class node with id ${o} not found!`);let n=t.querySelector(`path[id="edgeNote${r+1}"][data-edge="true"]`);if(n)return void a.push(nq([n],{strokeStyle:"dotted",startArrowhead:null,endArrowhead:null,start:{id:d.id,type:"rectangle"},end:{id:e.id,type:"rectangle"}}));let i=d.x+(d.width||0)/2,s=d.y+(d.height||0),l=nO(i,s,i,e.y,{strokeStyle:"dotted",startArrowhead:null,endArrowhead:null,start:{id:d.id,type:"rectangle"},end:{id:e.id,type:"rectangle"}});a.push(l)}}),{notes:n,connectors:a});return o.push(m),f.push(...y),c.push(...g),{type:"class",nodes:o,lines:l,arrows:f,text:c,namespaces:u}})(s,l);break;case"er":let g,m,y,b,k,w;p=s.db,m=(g=p.getData()).nodes,y=g.edges,b=[],k=[],w=[],m.forEach(e=>{let t=((e,t)=>{var r;let n,a=t.querySelector(`[id="${e.id}"]`);if(!a)throw Error(`ER entity ${e.id} not found in rendered SVG`);let i=e.attributes.length?x():void 0,s=a.getBBox(),{tx:o,ty:l}=nU(a,t),c=(r=[...e.cssStyles||[],...e.cssCompiledStyles||[]],n={},r&&r.forEach(e=>{ng(e).forEach(({property:e,value:t})=>{e&&t&&(n[e]=np(t))})}),n),h=np(c.fill||""),u=np(c.stroke||""),d=(e=>{if(null==e||""===e)return;let t="number"==typeof e?e:parseFloat(np(e));if(Number.isFinite(t)&&!(t<=0))return t})(c["stroke-width"]),p=np(c["stroke-dasharray"]||""),f=Array.from(a.querySelectorAll("g.label")).map(e=>((e,t,r)=>{let n,a,i=(n=Array.from(e.querySelectorAll("tspan")),F(n.length?n.map(e=>e.textContent?.trim()).filter(Boolean).join("\n"):e.textContent?.trim()||""));if(!i)return null;let s=e.getBBox(),{tx:o,ty:l}=nU(e,t);return{className:e.getAttribute("class")||"",text:i,x:s.x+o,y:s.y+l,width:s.width,height:s.height,fontSize:((!Number.isFinite(a=parseFloat(getComputedStyle(e.querySelector("text, foreignObject, div, span, p")||e).fontSize||""))||a<=0)&&(a=Math.max(12,.75*e.getBBox().height)),a),color:nk(e,r)}})(e,t,c.color)).filter(e=>null!==e),g=f.find(e=>e.className.includes("name"))||f[0],m=f.filter(e=>e!==g),y=g?.text||F(e.alias||e.label||""),b={type:"rectangle",id:e.id,groupId:i,x:s.x+o,y:s.y+l,width:s.width,height:s.height,label:{text:y,fontSize:e.attributes.length?18:g?.fontSize||16,color:g?.color,textAlign:"center",verticalAlign:e.attributes.length?"top":"middle"},metadata:{entityId:e.id,entityLabel:e.label,entityAlias:e.alias}};nm(h)&&"none"!==h&&(b.bgColor=h),nm(u)&&"none"!==u&&(b.strokeColor=u),d&&Number.isFinite(d)&&d>0&&(b.strokeWidth=d),p&&"none"!==p&&(b.strokeStyle="dashed");let k=Array.from(a.querySelectorAll(".divider path, path.divider, line.divider")).map(r=>((e,t,r,n,a,i,s)=>{let{tx:o,ty:l}=nU(e,t),c=0,h=0,u=0,d=0;if("line"===e.tagName.toLowerCase())c=Number(e.getAttribute("x1"))+o,h=Number(e.getAttribute("y1"))+l,u=Number(e.getAttribute("x2"))+o,d=Number(e.getAttribute("y2"))+l;else{let t=Y(e);if(!t)return null;c=t.startX+o,h=t.startY+l,u=t.endX+o,d=t.endY+l}let p={type:"line",id:x(),groupId:r,startX:c,startY:h,endX:u,endY:d,metadata:{entityId:n}};return a&&nm(a)&&"none"!==a&&(p.strokeColor=a),void 0!==i&&(p.strokeWidth=i),s&&(p.strokeStyle=s),p})(r,t,i,e.id,b.strokeColor,b.strokeWidth,b.strokeStyle)).filter(e=>null!==e);return{container:b,lines:k,text:m.map(t=>nE(t.x,t.y,t.text,{id:x(),groupId:i,width:t.width,height:t.height,fontSize:18,color:t.color,metadata:{entityId:e.id}}))}})(e,l);b.push(t.container),k.push(...t.lines),w.push(...t.text)}),t={type:"erd",nodes:[b],lines:k,arrows:y.map(e=>((e,t)=>{let r,n,a=(r=t.querySelector(`path[id="${e.id}"][data-edge="true"]`))?[r]:e.start!==e.end?[]:[`${e.start}-cyclic-special-1`,`${e.start}-cyclic-special-mid`,`${e.start}-cyclic-special-2`].map(e=>t.querySelector(`path[id="${e}"][data-edge="true"]`)).filter(e=>null!==e);if(!a.length)throw Error(`ER relationship ${e.id} not found in rendered SVG`);let i=(n=[],a.forEach(e=>{U(e).forEach(e=>{let t=n[n.length-1];t&&t.x===e.x&&t.y===e.y||n.push(e)})}),n);if(i.length<2)throw Error(`ER relationship ${e.id} is missing usable path points`);let s=i[0],o=i[i.length-1],l=a[0],c=np(l.getAttribute("stroke")||getComputedStyle(l).stroke||""),h=Number(l.getAttribute("stroke-width")||getComputedStyle(l).strokeWidth||1),u=nO(s.x,s.y,o.x,o.y,{id:e.id,label:e.label?{text:F(e.label),fontSize:16,textAlign:"center"}:void 0,strokeStyle:(e=>{switch(e){case"dotted":return"dotted";case"dashed":return"dashed";default:return"solid"}})(e.pattern),startArrowhead:nH(e.arrowTypeStart),endArrowhead:nH(e.arrowTypeEnd),start:{type:"rectangle",id:e.start},end:{type:"rectangle",id:e.end},points:i.map(e=>[e.x-s.x,e.y-s.y])});return nm(c)&&"none"!==c&&(u.strokeColor=c),Number.isFinite(h)&&h>0&&(u.strokeWidth=h),u})(e,l)),text:w};break;case"state":case"stateDiagram":t=((e,t)=>{let r,n,a,{nodes:i,edges:s}=e.getData(),o=(r=new Set,n=e=>(e&&r.add(e),e),a=e=>n(e.find(e=>!r.has(e))||null),e=>{for(let r of[`[id='${e.domId}']`,`[id='${e.id}']`,`[data-id='${e.id}']`]){let e=t.querySelector(r);if(e)return n(e)}switch(e.shape){case"divider":return a(Array.from(t.querySelectorAll("g.statediagram-cluster-alt")));case"stateStart":return a(Array.from(t.querySelectorAll("g.node.default")).filter(e=>e.querySelector("circle.state-start")));case"stateEnd":return a(Array.from(t.querySelectorAll("g.node.default")).filter(e=>!e.querySelector("circle.state-start")));default:return null}});return{type:"state",nodes:i.map(e=>((e,t,r)=>{let n,a=r(e);if(!a)throw Error(`State node element not found for "${e.id}"`);let i=((e,t)=>{switch(t){case"roundedWithTitle":case"rectWithTitle":return e.querySelector("rect.outer")||e.querySelector("rect")||e;case"divider":return e.querySelector("rect.divider")||e.querySelector("rect")||e;case"stateStart":case"stateEnd":return n0(Array.from(e.querySelectorAll("circle, ellipse, path")),"largest")||e;default:return e.querySelector("rect, path, circle, ellipse, polygon")||e}})(a,e.shape),s={},o={},l=[e.labelStyle,...e.cssCompiledStyles||[],...e.cssStyles||[]],c=(n=new Set,l.filter(Boolean).forEach(e=>{ng(e||"").forEach(({property:e})=>{n.add(e)})}),n);l.filter(Boolean).forEach(e=>{e&&ng(e).forEach(({property:e,value:t})=>{nG(s,e,t),nZ(o,e,t)})}),i&&[[u.FILL,i.getAttribute("fill")],[u.STROKE,i.getAttribute("stroke")],[u.STROKE_WIDTH,i.getAttribute("stroke-width")],[u.STROKE_DASHARRAY,i.getAttribute("stroke-dasharray")]].forEach(([e,t])=>{if(!c.has(e)||s[e])return;let r=np(t||"");r&&nG(s,e,r)}),((e,t,r)=>{if(e)for(let n of[e,...Array.from(e.querySelectorAll("text, foreignObject, div, span, p"))]){if(t[h.COLOR]||(r.has(h.COLOR)||r.has(u.FILL))&&(nV(n.getAttribute("style"),t),t[h.COLOR]))break;let e=np(n.getAttribute("fill")||n.getAttribute("color")||"");(r.has(h.COLOR)||r.has(u.FILL))&&nX(e)&&(t[h.COLOR]=e)}})(a,o,c);let d=((e,t)=>{let r=e.getBBox(),{tx:n,ty:a}=nQ(e,t);return{x:r.x+n,y:r.y+a,width:r.width,height:r.height}})(i,t);return{id:e.id,shape:e.shape,text:(e=>{if(e.length<2)return e;let t=e.slice(1),r=t.filter(e=>e.trim().length>0).reduce((e,t)=>Math.min(e,t.match(/^\s*/)?.[0].length??0),1/0);return!Number.isFinite(r)||r<=0?e.map(e=>e.trimEnd()):[e[0].trimEnd(),...t.map(e=>e.replace(RegExp(`^\\s{0,${r}}`),"").trimEnd())]})(Array.isArray(e.label)?e.label.map(e=>F(e)):F(e.label||"").split("\n")).join("\n"),description:e.description?(Array.isArray(e.description)?e.description:[e.description]).map(e=>F(e)).filter(e=>e.length>0):[],x:d.x,y:d.y,width:d.width,height:d.height,parentId:e.parentId,position:e.position,containerStyle:s,labelStyle:o,dividerLine:"rectWithTitle"===e.shape?((e,t)=>{let r=e.querySelector("line.divider");if(!r)return;let{tx:n,ty:a}=nQ(r,t);return{startX:Number(r.getAttribute("x1"))+n,startY:Number(r.getAttribute("y1"))+a,endX:Number(r.getAttribute("x2"))+n,endY:Number(r.getAttribute("y2"))+a}})(a,t):void 0,endInnerColor:"stateEnd"===e.shape?((e,t)=>{var r=n0(Array.from(e.querySelectorAll("circle, ellipse, path")),"smallest");if(!r||!t.has(u.FILL)&&!t.has(u.STROKE))return;let n=np(r.getAttribute("fill")||nJ(r,u.FILL)||""),a=np(r.getAttribute("stroke")||nJ(r,u.STROKE)||"");return nX(n)?n:nX(a)?a:void 0})(a,c):void 0,isRenderable:"noteGroup"!==e.shape}})(e,t,o)),edges:s.map(e=>((e,t)=>{let r=t.querySelector(`[id='${e.id}']`);if(!r)return null;let{tx:n,ty:a}=nQ(r,t),i=H(r,{x:n,y:a},"MCL");if(i.reflectionPoints.length<2)return null;let s={};[e.style].filter(Boolean).forEach(e=>{ng(e||"").forEach(({property:e,value:t})=>{switch(e){case u.STROKE:nX(t)&&(s.strokeColor=np(t));break;case u.STROKE_WIDTH:{let e=parseFloat(np(t));Number.isFinite(e)&&e>0&&(s.strokeWidth=e);break}case u.STROKE_DASHARRAY:np(t)&&(s.strokeStyle="dashed")}})});let o="none"===e.arrowhead||e.classes?.includes("note-edge");return{id:e.id,start:e.start,end:e.end,text:F(e.label||""),...i,strokeColor:s.strokeColor,strokeWidth:s.strokeWidth,strokeStyle:o?"dashed":s.strokeStyle,isNoteEdge:o}})(e,t)).filter(e=>null!==e)}})(s.db,l);break;default:t=n5(l)}}catch(e){console.error("Error processing Mermaid diagram:",e),t=n5(l)}return t}finally{l.remove()}},n1=(n=n1.then(r,r)).then(()=>void 0,()=>void 0),n},n4=async(e,t)=>{let r=t||{},n=parseInt(r.themeVariables?.fontSize??"")||20;return((e,t={})=>{let r;return{...r=(()=>{switch(e.type){case"graphImage":return w.convert(e,t);case"flowchart":return k.convert(e,t);case"sequence":return L.convert(e,t);case"class":return O.convert(e,t);case"erd":return E.convert(e,t);case"state":return D.convert(e,t);default:throw Error(`graphToExcalidraw: unknown graph type "${e.type}, only flowcharts are supported!"`)}})(),elements:r.elements.map(e=>{if(!("points"in e)||!Array.isArray(e.points))return e;let t=e.points;if(t.length<2)return e;let r=q(t);return r.length===t.length?e:{...e,points:r}})}})(await n6(e,{...r,themeVariables:{...r.themeVariables}}),{fontSize:n})}},41614:(e,t,r)=>{"use strict";function n(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}r.d(t,{b:()=>n})},42710:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(75011),a=r(50409);let i=e=>!((e=>{let{r:t,g:r,b:i}=a.A.parse(e),s=.2126*n.A.channel.toLinear(t)+.7152*n.A.channel.toLinear(r)+.0722*n.A.channel.toLinear(i);return n.A.lang.round(s)})(e)>=.5)},48861:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(75011),a=r(34862),i=r(50409),s=r(25079);let o=(e,t,r=0,o=1)=>{if("number"!=typeof e)return(0,s.A)(e,{a:t});let l=a.A.set({r:n.A.channel.clamp.r(e),g:n.A.channel.clamp.g(t),b:n.A.channel.clamp.b(r),a:n.A.channel.clamp.a(o)});return i.A.stringify(l)}},50001:(e,t,r)=>{"use strict";r.d(t,{pe:()=>S,PX:()=>Q,ru:()=>Z,Un:()=>V,$t:()=>ea,Sm:()=>eo,C4:()=>es,$C:()=>W,rY:()=>el,sM:()=>z,KL:()=>ec,Ib:()=>C,dq:()=>et,I5:()=>en,yT:()=>Y,vU:()=>O,_K:()=>ei,bH:()=>X});var n,a=r(93913),i=r(85448),s=r(16081),o=r(51874);function l(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw TypeError("Expected a function");let r=function(...n){let a=t?t.apply(this,n):n[0],i=r.cache;if(i.has(a))return i.get(a);let s=e.apply(this,n);return r.cache=i.set(a,s)||i,s};return r.cache=new(l.Cache||Map),r}function c(){}l.Cache=Map;var h=r(63121),u=r(1939);function d(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}var p=r(30696);function f(e){if("object"!=typeof e||null==e)return!1;if(null===Object.getPrototypeOf(e))return!0;if("[object Object]"!==Object.prototype.toString.call(e)){let t=e[Symbol.toStringTag];return null!=t&&!!Object.getOwnPropertyDescriptor(e,Symbol.toStringTag)?.writable&&e.toString()===`[object ${t}]`}let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}var g=r(41614),m=r(97525);function y(e,t,r,n=new Map,a){let i=a?.(e,t,r,n);if(void 0!==i)return i;if((0,h.s)(e))return e;if(n.has(e))return n.get(e);if(Array.isArray(e)){let t=Array(e.length);n.set(e,t);for(let i=0;i<e.length;i++)t[i]=y(e[i],i,r,n,a);return Object.hasOwn(e,"index")&&(t.index=e.index),Object.hasOwn(e,"input")&&(t.input=e.input),t}if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp){let t=new RegExp(e.source,e.flags);return t.lastIndex=e.lastIndex,t}if(e instanceof Map){let t=new Map;for(let[i,s]of(n.set(e,t),e))t.set(i,y(s,i,r,n,a));return t}if(e instanceof Set){let t=new Set;for(let i of(n.set(e,t),e))t.add(y(i,void 0,r,n,a));return t}if((0,p.P)(e))return e.subarray();if((0,u.i)(e)){let t=new(Object.getPrototypeOf(e)).constructor(e.length);n.set(e,t);for(let i=0;i<e.length;i++)t[i]=y(e[i],i,r,n,a);return t}if(e instanceof ArrayBuffer||"u">typeof SharedArrayBuffer&&e instanceof SharedArrayBuffer)return e.slice(0);if(e instanceof DataView){let t=new DataView(e.buffer.slice(0),e.byteOffset,e.byteLength);return n.set(e,t),b(t,e,r,n,a),t}if("u">typeof File&&e instanceof File){let t=new File([e],e.name,{type:e.type});return n.set(e,t),b(t,e,r,n,a),t}if("u">typeof Blob&&e instanceof Blob){let t=new Blob([e],{type:e.type});return n.set(e,t),b(t,e,r,n,a),t}if(e instanceof Error){let t=structuredClone(e);return n.set(e,t),t.message=e.message,t.name=e.name,t.stack=e.stack,t.cause=e.cause,t.constructor=e.constructor,b(t,e,r,n,a),t}if(e instanceof Boolean){let t=new Boolean(e.valueOf());return n.set(e,t),b(t,e,r,n,a),t}if(e instanceof Number){let t=new Number(e.valueOf());return n.set(e,t),b(t,e,r,n,a),t}if(e instanceof String){let t=new String(e.valueOf());return n.set(e,t),b(t,e,r,n,a),t}if("object"==typeof e&&function(e){switch((0,g.b)(e)){case m.R_:case m.Uw:case m.cT:case m.iq:case m.$V:case m.vC:case m.ri:case m.ML:case m.XZ:case m.i1:case m._u:case m.pj:case m.kj:case m.GX:case m.Av:case m.NA:case m.OG:case m.VP:case m.Qb:case m.q:case m.x6:case m.ZR:return!0;default:return!1}}(e)){let t=Object.create(Object.getPrototypeOf(e));return n.set(e,t),b(t,e,r,n,a),t}return e}function b(e,t,r=e,n,a){let i=[...Object.keys(t),...d(t)];for(let s=0;s<i.length;s++){let o=i[s],l=Object.getOwnPropertyDescriptor(e,o);(null==l||l.writable)&&(e[o]=y(t[o],o,r,n,a))}}function k(e){var t;return t=(t,r,n,a)=>{let i;if(void 0!==i)return i;if("object"==typeof e){if("[object Object]"===(0,g.b)(e)&&"function"!=typeof e.constructor){let t={};return a.set(e,t),b(t,e,n,a),t}switch(Object.prototype.toString.call(e)){case m.kj:case m.OG:case m.$V:{let t=new e.constructor(e?.valueOf());return b(t,e),t}case m.R_:{let t={};return b(t,e),t.length=e.length,t[Symbol.iterator]=e[Symbol.iterator],t}default:return}}},y(e,void 0,e,new Map,t)}var x=r(31731);function w(e){return"object"==typeof e&&null!==e}var v=r(72678),_=r(37764),S="",A={curveBasis:o.qrM,curveBasisClosed:o.Yu4,curveBasisOpen:o.IA3,curveBumpX:o.Wi0,curveBumpY:o.PGM,curveBundle:o.OEq,curveCardinalClosed:o.olC,curveCardinalOpen:o.IrU,curveCardinal:o.y8u,curveCatmullRomClosed:o.Q7f,curveCatmullRomOpen:o.cVp,curveCatmullRom:o.oDi,curveLinear:o.lUB,curveLinearClosed:o.Lx9,curveMonotoneX:o.nVG,curveMonotoneY:o.uxU,curveNatural:o.Xf2,curveStep:o.GZz,curveStepAfter:o.UPb,curveStepBefore:o.dyv},M=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,$=(0,i.K2)(function(e,t){let r=L(e,/(?:init\b)|(?:initialize\b)/),n={};if(Array.isArray(r)){let e=r.map(e=>e.args);(0,a.$i)(e),n=(0,a.hH)(n,[...e])}else n=r.args;if(!n)return;let i=(0,a.Ch)(e,t),s="config";return void 0!==n[s]&&("flowchart-v2"===i&&(i="flowchart"),n[i]=n[s],delete n[s]),n},"detectInit"),L=(0,i.K2)(function(e,t=null){try{let r,n=RegExp(`[%]{2}(?![{]${M.source})(?=[}][%]{2}).*
`,"ig");e=e.trim().replace(n,"").replace(/'/gm,'"'),i.Rm.debug(`Detecting diagram directive${null!==t?" type:"+t:""} based on the text:${e}`);let s=[];for(;null!==(r=a.DB.exec(e));)if(r.index===a.DB.lastIndex&&a.DB.lastIndex++,r&&!t||t&&r[1]?.match(t)||t&&r[2]?.match(t)){let e=r[1]?r[1]:r[2],t=r[3]?r[3].trim():r[4]?JSON.parse(r[4].trim()):null;s.push({type:e,args:t})}if(0===s.length)return{type:e,args:null};return 1===s.length?s[0]:s}catch(r){return i.Rm.error(`ERROR: ${r.message} - Unable to parse directive type: '${t}' based on the text: '${e}'`),{type:void 0,args:null}}},"detectDirective"),O=(0,i.K2)(function(e){return e.replace(a.DB,"")},"removeDirectives"),E=(0,i.K2)(function(e,t){for(let[r,n]of t.entries())if(n.match(e))return r;return -1},"isSubstringInArray");function C(e,t){return e?A[`curve${e.charAt(0).toUpperCase()+e.slice(1)}`]??t:t}function T(e,t){let r=e.trim();if(r)return"loose"!==t.securityLevel?(0,s.J)(r):r}(0,i.K2)(C,"interpolateToCurve"),(0,i.K2)(T,"formatUrl");var R=(0,i.K2)((e,...t)=>{let r=e.split("."),n=r.length-1,a=r[n],s=window;for(let t=0;t<n;t++)if(!(s=s[r[t]]))return void i.Rm.error(`Function name: ${e} not found in window`);s[a](...t)},"runFunc");function K(e,t){return e&&t?Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2)):0}function I(e){let t,r=0;return e.forEach(e=>{r+=K(e,t),t=e}),N(e,r/2)}function j(e){return 1===e.length?e[0]:I(e)}(0,i.K2)(K,"distance"),(0,i.K2)(I,"traverseEdge"),(0,i.K2)(j,"calcLabelPosition");var P=(0,i.K2)((e,t=2)=>{let r=Math.pow(10,t);return Math.round(e*r)/r},"roundNumber"),N=(0,i.K2)((e,t)=>{let r,n=t;for(let t of e){if(r){let e=K(t,r);if(0===e)return r;if(e<n)n-=e;else{let a=n/e;if(a<=0)return r;if(a>=1)return{x:t.x,y:t.y};if(a>0&&a<1)return{x:P((1-a)*r.x+a*t.x,5),y:P((1-a)*r.y+a*t.y,5)}}}r=t}throw Error("Could not find a suitable point for the given distance")},"calculatePoint"),D=(0,i.K2)((e,t,r)=>{i.Rm.info(`our points ${JSON.stringify(t)}`),t[0]!==r&&(t=t.reverse());let n=N(t,25),a=e?10:5,s=Math.atan2(t[0].y-n.y,t[0].x-n.x),o={x:0,y:0};return o.x=Math.sin(s)*a+(t[0].x+n.x)/2,o.y=-Math.cos(s)*a+(t[0].y+n.y)/2,o},"calcCardinalityPosition");function F(e,t,r){let n=structuredClone(r);i.Rm.info("our points",n),"start_left"!==t&&"start_right"!==t&&n.reverse();let a=N(n,25+e),s=10+.5*e,o=Math.atan2(n[0].y-a.y,n[0].x-a.x),l={x:0,y:0};return"start_left"===t?(l.x=Math.sin(o+Math.PI)*s+(n[0].x+a.x)/2,l.y=-Math.cos(o+Math.PI)*s+(n[0].y+a.y)/2):"end_right"===t?(l.x=Math.sin(o-Math.PI)*s+(n[0].x+a.x)/2-5,l.y=-Math.cos(o-Math.PI)*s+(n[0].y+a.y)/2-5):"end_left"===t?(l.x=Math.sin(o)*s+(n[0].x+a.x)/2-5,l.y=-Math.cos(o)*s+(n[0].y+a.y)/2-5):(l.x=Math.sin(o)*s+(n[0].x+a.x)/2,l.y=-Math.cos(o)*s+(n[0].y+a.y)/2),l}function z(e){let t="",r="";for(let n of e)void 0!==n&&(n.startsWith("color:")||n.startsWith("text-align:")?r=r+n+";":t=t+n+";");return{style:t,labelStyle:r}}(0,i.K2)(F,"calcTerminalLabelPosition"),(0,i.K2)(z,"getStylesFromArray");var B=0,W=(0,i.K2)(()=>(B++,"id-"+Math.random().toString(36).substr(2,12)+"-"+B),"generateId");function q(e){let t="",r="0123456789abcdef",n=r.length;for(let a=0;a<e;a++)t+=r.charAt(Math.floor(Math.random()*n));return t}(0,i.K2)(q,"makeRandomHex");var Y=(0,i.K2)(e=>q(e.length),"random"),U=(0,i.K2)(function(){return{x:0,y:0,fill:void 0,anchor:"start",style:"#666",width:100,height:100,textMargin:0,rx:0,ry:0,valign:void 0,text:""}},"getTextObj"),H=(0,i.K2)(function(e,t){let r=t.text.replace(a.Y2.lineBreakRegex," "),[,n]=en(t.fontSize),i=e.append("text");i.attr("x",t.x),i.attr("y",t.y),i.style("text-anchor",t.anchor),i.style("font-family",t.fontFamily),i.style("font-size",n),i.style("font-weight",t.fontWeight),i.attr("fill",t.fill),void 0!==t.class&&i.attr("class",t.class);let s=i.append("tspan");return s.attr("x",t.x+2*t.textMargin),s.attr("fill",t.fill),s.text(r),i},"drawSimpleText"),X=l((e,t,r)=>{if(!e||(r=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},r),a.Y2.lineBreakRegex.test(e)))return e;let n=e.split(" ").filter(Boolean),i=[],s="";return n.forEach((e,a)=>{let o=V(`${e} `,r),l=V(s,r);if(o>t){let{hyphenatedStrings:n,remainingWord:a}=G(e,t,"-",r);i.push(s,...n),s=a}else l+o>=t?(i.push(s),s=e):s=[s,e].filter(Boolean).join(" ");a+1===n.length&&i.push(s)}),i.filter(e=>""!==e).join(r.joinWith)},(e,t,r)=>`${e}${t}${r.fontSize}${r.fontWeight}${r.fontFamily}${r.joinWith}`),G=l((e,t,r="-",n)=>{n=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},n);let a=[...e],i=[],s="";return a.forEach((e,o)=>{let l=`${s}${e}`;if(V(l,n)>=t){let e=a.length===o+1,t=`${l}${r}`;i.push(e?l:t),s=""}else s=l}),{hyphenatedStrings:i,remainingWord:s}},(e,t,r="-",n)=>`${e}${t}${r}${n.fontSize}${n.fontWeight}${n.fontFamily}`);function Z(e,t){return Q(e,t).height}function V(e,t){return Q(e,t).width}(0,i.K2)(Z,"calculateTextHeight"),(0,i.K2)(V,"calculateTextWidth");var Q=l((e,t)=>{let{fontSize:r=12,fontFamily:n="Arial",fontWeight:i=400}=t;if(!e)return{width:0,height:0};let[,s]=en(r),l=e.split(a.Y2.lineBreakRegex),c=[],h=(0,o.Ltv)("body");if(!h.remove)return{width:0,height:0,lineHeight:0};let u=h.append("svg");for(let e of["sans-serif",n]){let t=0,r={width:0,height:0,lineHeight:0};for(let n of l){let a=U();a.text=n||S;let o=H(u,a).style("font-size",s).style("font-weight",i).style("font-family",e),l=(o._groups||o)[0][0].getBBox();if(0===l.width&&0===l.height)throw Error("svg element not in render tree");r.width=Math.round(Math.max(r.width,l.width)),t=Math.round(l.height),r.height+=t,r.lineHeight=Math.round(Math.max(r.lineHeight,t))}c.push(r)}u.remove();let d=isNaN(c[1].height)||isNaN(c[1].width)||isNaN(c[1].lineHeight)||c[0].height>c[1].height&&c[0].width>c[1].width&&c[0].lineHeight>c[1].lineHeight?0:1;return c[d]},(e,t)=>`${e}${t.fontSize}${t.fontWeight}${t.fontFamily}`),J=class{constructor(e=!1,t){this.count=0,this.count=t?t.length:0,this.next=e?()=>this.count++:()=>Date.now()}static{(0,i.K2)(this,"InitIDGenerator")}},ee=(0,i.K2)(function(e){return n=n||document.createElement("div"),e=escape(e).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),n.innerHTML=e,unescape(n.textContent)},"entityDecode");function et(e){return"str"in e}(0,i.K2)(et,"isDetailedError");var er=(0,i.K2)((e,t,r,n)=>{if(!n)return;let a=e.node()?.getBBox();a&&e.append("text").text(n).attr("text-anchor","middle").attr("x",a.x+a.width/2).attr("y",-r).attr("class",t)},"insertTitle"),en=(0,i.K2)(e=>{if("number"==typeof e)return[e,e+"px"];let t=parseInt(e??"",10);return Number.isNaN(t)?[void 0,void 0]:e===String(t)?[t,e+"px"]:[t,e]},"parseFontSize");function ea(e,t){return function(e,...t){return function(e,...t){let r=t.slice(0,-1),n=t[t.length-1],a=e;for(let e=0;e<r.length;e++)a=function e(t,r,n,a){if((0,h.s)(t)&&(t=Object(t)),null==r||"object"!=typeof r)return t;if(a.has(r))return function(e){if((0,h.s)(e))return e;if(Array.isArray(e)||(0,u.i)(e)||e instanceof ArrayBuffer||"u">typeof SharedArrayBuffer&&e instanceof SharedArrayBuffer)return e.slice(0);let t=Object.getPrototypeOf(e);if(null==t)return Object.assign(Object.create(t),e);let r=t.constructor;if(e instanceof Date||e instanceof Map||e instanceof Set)return new r(e);if(e instanceof RegExp){let t=new r(e);return t.lastIndex=e.lastIndex,t}if(e instanceof DataView)return new r(e.buffer.slice(0));if(e instanceof Error){let t;return(t=e instanceof AggregateError?new r(e.errors,e.message,{cause:e.cause}):new r(e.message,{cause:e.cause})).stack=e.stack,Object.assign(t,e),t}return"u">typeof File&&e instanceof File?new r([e],e.name,{type:e.type,lastModified:e.lastModified}):"object"==typeof e?Object.assign(Object.create(t),e):e}(a.get(r));if(a.set(r,t),Array.isArray(r)){r=r.slice();for(let e=0;e<r.length;e++)r[e]=r[e]??void 0}let i=[...Object.keys(r),...d(r)];for(let o=0;o<i.length;o++){let l=i[o];if("__proto__"===l)continue;let c=r[l],h=t[l];if((0,x.N)(c)&&(c={...c}),(0,x.N)(h)&&(h={...h}),(0,p.P)(c)&&(c=k(c)),Array.isArray(c))if(Array.isArray(h)){let e=[],t=Reflect.ownKeys(h);for(let r=0;r<t.length;r++){let n=t[r];e[n]=h[n]}h=e}else{var s;if(w(s=h)&&(0,v.X)(s)){let e=[];for(let t=0;t<h.length;t++)e[t]=h[t];h=e}else h=[]}let u=n(h,c,l,t,r,a);void 0!==u?t[l]=u:Array.isArray(c)||w(h)&&w(c)&&(f(h)||f(c)||(0,_.i)(h)||(0,_.i)(c))?t[l]=e(h,c,n,a):null==h&&f(c)?t[l]=e({},c,n,a):null==h&&(0,_.i)(c)?t[l]=k(c):(void 0===h||void 0!==c)&&(t[l]=c)}return t}(a,r[e],n,new Map);return a}(e,...t,c)}({},e,t)}(0,i.K2)(ea,"cleanAndMerge");var ei={assignWithDepth:a.hH,wrapLabel:X,calculateTextHeight:Z,calculateTextWidth:V,calculateTextDimensions:Q,cleanAndMerge:ea,detectInit:$,detectDirective:L,isSubstringInArray:E,interpolateToCurve:C,calcLabelPosition:j,calcCardinalityPosition:D,calcTerminalLabelPosition:F,formatUrl:T,getStylesFromArray:z,generateId:W,random:Y,runFunc:R,entityDecode:ee,insertTitle:er,isLabelCoordinateInPath:eh,parseFontSize:en,InitIDGenerator:J},es=(0,i.K2)(function(e){let t=e;return(t=(t=t.replace(/style.*:\S*#.*;/g,function(e){return e.substring(0,e.length-1)})).replace(/classDef.*:\S*#.*;/g,function(e){return e.substring(0,e.length-1)})).replace(/#\w+;/g,function(e){let t=e.substring(1,e.length-1);return/^\+?\d+$/.test(t)?"fl\xb0\xb0"+t+"\xb6\xdf":"fl\xb0"+t+"\xb6\xdf"})},"encodeEntities"),eo=(0,i.K2)(function(e){return e.replace(/fl°°/g,"&#").replace(/fl°/g,"&").replace(/¶ß/g,";")},"decodeEntities"),el=(0,i.K2)((e,t,{counter:r=0,prefix:n,suffix:a},i)=>i||`${n?`${n}_`:""}${e}_${t}_${r}${a?`_${a}`:""}`,"getEdgeId");function ec(e){return e??null}function eh(e,t){let r=Math.round(e.x),n=Math.round(e.y),a=t.replace(/(\d+\.\d+)/g,e=>Math.round(parseFloat(e)).toString());return a.includes(r.toString())||a.includes(n.toString())}(0,i.K2)(ec,"handleUndefinedAttr"),(0,i.K2)(eh,"isLabelCoordinateInPath")},50409:(e,t,r)=>{"use strict";r.d(t,{A:()=>h});var n=r(34862),a=r(37485);let i={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:e=>{if(35!==e.charCodeAt(0))return;let t=e.match(i.re);if(!t)return;let r=t[1],a=parseInt(r,16),s=r.length,o=s%4==0,l=s>4,c=l?1:17,h=l?8:4,u=o?0:-1,d=l?255:15;return n.A.set({r:(a>>h*(u+3)&d)*c,g:(a>>h*(u+2)&d)*c,b:(a>>h*(u+1)&d)*c,a:o?(a&d)*c/255:1},e)},stringify:e=>{let{r:t,g:r,b:n,a:i}=e;return i<1?`#${a.Y[Math.round(t)]}${a.Y[Math.round(r)]}${a.Y[Math.round(n)]}${a.Y[Math.round(255*i)]}`:`#${a.Y[Math.round(t)]}${a.Y[Math.round(r)]}${a.Y[Math.round(n)]}`}};var s=r(75011);let o={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=>{let t=e.match(o.hueRe);if(t){let[,e,r]=t;switch(r){case"grad":return s.A.channel.clamp.h(.9*parseFloat(e));case"rad":return s.A.channel.clamp.h(180*parseFloat(e)/Math.PI);case"turn":return s.A.channel.clamp.h(360*parseFloat(e))}}return s.A.channel.clamp.h(parseFloat(e))},parse:e=>{let t=e.charCodeAt(0);if(104!==t&&72!==t)return;let r=e.match(o.re);if(!r)return;let[,a,i,l,c,h]=r;return n.A.set({h:o._hue2deg(a),s:s.A.channel.clamp.s(parseFloat(i)),l:s.A.channel.clamp.l(parseFloat(l)),a:c?s.A.channel.clamp.a(h?parseFloat(c)/100:parseFloat(c)):1},e)},stringify:e=>{let{h:t,s:r,l:n,a}=e;return a<1?`hsla(${s.A.lang.round(t)}, ${s.A.lang.round(r)}%, ${s.A.lang.round(n)}%, ${a})`:`hsl(${s.A.lang.round(t)}, ${s.A.lang.round(r)}%, ${s.A.lang.round(n)}%)`}},l={colors:{aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyanaqua:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",transparent:"#00000000",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},parse:e=>{e=e.toLowerCase();let t=l.colors[e];if(t)return i.parse(t)},stringify:e=>{let t=i.stringify(e);for(let e in l.colors)if(l.colors[e]===t)return e}},c={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=>{let t=e.charCodeAt(0);if(114!==t&&82!==t)return;let r=e.match(c.re);if(!r)return;let[,a,i,o,l,h,u,d,p]=r;return n.A.set({r:s.A.channel.clamp.r(i?2.55*parseFloat(a):parseFloat(a)),g:s.A.channel.clamp.g(l?2.55*parseFloat(o):parseFloat(o)),b:s.A.channel.clamp.b(u?2.55*parseFloat(h):parseFloat(h)),a:d?s.A.channel.clamp.a(p?parseFloat(d)/100:parseFloat(d)):1},e)},stringify:e=>{let{r:t,g:r,b:n,a}=e;return a<1?`rgba(${s.A.lang.round(t)}, ${s.A.lang.round(r)}, ${s.A.lang.round(n)}, ${s.A.lang.round(a)})`:`rgb(${s.A.lang.round(t)}, ${s.A.lang.round(r)}, ${s.A.lang.round(n)})`}},h={format:{keyword:l,hex:i,rgb:c,rgba:c,hsl:o,hsla:o},parse:e=>{if("string"!=typeof e)return e;let t=i.parse(e)||c.parse(e)||o.parse(e)||l.parse(e);if(t)return t;throw Error(`Unsupported color format: "${e}"`)},stringify:e=>!e.changed&&e.color?e.color:e.type.is(a.Z.HSL)||void 0===e.data.r?o.stringify(e):!(e.a<1)&&Number.isInteger(e.r)&&Number.isInteger(e.g)&&Number.isInteger(e.b)?i.stringify(e):c.stringify(e)}},51601:(e,t,r)=>{"use strict";r.d(t,{H:()=>tP,r:()=>tj});var n,a=r(85448);function i(e){return null==e}function s(e){return"object"==typeof e&&null!==e}function o(e,t){var r,n="";for(r=0;r<t;r+=1)n+=e;return n}function l(e){return 0===e&&-1/0==1/e}(0,a.K2)(i,"isNothing"),(0,a.K2)(s,"isObject"),(0,a.K2)(function(e){return Array.isArray(e)?e:i(e)?[]:[e]},"toArray"),(0,a.K2)(function(e,t){var r,n,a,i;if(t)for(r=0,n=(i=Object.keys(t)).length;r<n;r+=1)e[a=i[r]]=t[a];return e},"extend"),(0,a.K2)(o,"repeat"),(0,a.K2)(l,"isNegativeZero");function c(e,t){var r="",n=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+="\n\n"+e.mark.snippet),n+" "+r):n}function h(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=c(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=Error().stack||""}function u(e,t,r,n,a){var i="",s="",o=Math.floor(a/2)-1;return n-t>o&&(t=n-o+(i=" ... ").length),r-n>o&&(r=n+o-(s=" ...").length),{str:i+e.slice(t,r).replace(/\t/g,"→")+s,pos:n-t+i.length}}function d(e,t){return o(" ",t-e.length)+e}function p(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),"number"!=typeof t.indent&&(t.indent=1),"number"!=typeof t.linesBefore&&(t.linesBefore=3),"number"!=typeof t.linesAfter&&(t.linesAfter=2);for(var r=/\r?\n|\r|\0/g,n=[0],a=[],i=-1;s=r.exec(e.buffer);)a.push(s.index),n.push(s.index+s[0].length),e.position<=s.index&&i<0&&(i=n.length-2);i<0&&(i=n.length-1);var s,l,c,h="",p=Math.min(e.line+t.linesAfter,a.length).toString().length,f=t.maxLength-(t.indent+p+3);for(l=1;l<=t.linesBefore&&!(i-l<0);l++)c=u(e.buffer,n[i-l],a[i-l],e.position-(n[i]-n[i-l]),f),h=o(" ",t.indent)+d((e.line-l+1).toString(),p)+" | "+c.str+"\n"+h;for(c=u(e.buffer,n[i],a[i],e.position,f),h+=o(" ",t.indent)+d((e.line+1).toString(),p)+" | "+c.str+"\n"+o("-",t.indent+p+3+c.pos)+"^\n",l=1;l<=t.linesAfter&&!(i+l>=a.length);l++)c=u(e.buffer,n[i+l],a[i+l],e.position-(n[i]-n[i+l]),f),h+=o(" ",t.indent)+d((e.line+l+1).toString(),p)+" | "+c.str+"\n";return h.replace(/\n$/,"")}(0,a.K2)(c,"formatError"),(0,a.K2)(h,"YAMLException$1"),h.prototype=Object.create(Error.prototype),h.prototype.constructor=h,h.prototype.toString=(0,a.K2)(function(e){return this.name+": "+c(this,e)},"toString"),(0,a.K2)(u,"getLine"),(0,a.K2)(d,"padStart"),(0,a.K2)(p,"makeSnippet");var f=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],g=["scalar","sequence","mapping"];function m(e){var t={};return null!==e&&Object.keys(e).forEach(function(r){e[r].forEach(function(e){t[String(e)]=r})}),t}function y(e,t){if(Object.keys(t=t||{}).forEach(function(t){if(-1===f.indexOf(t))throw new h('Unknown option "'+t+'" 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(e){return e},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=m(t.styleAliases||null),-1===g.indexOf(this.kind))throw new h('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}function b(e,t){var r=[];return e[t].forEach(function(e){var t=r.length;r.forEach(function(r,n){r.tag===e.tag&&r.kind===e.kind&&r.multi===e.multi&&(t=n)}),r[t]=e}),r}function k(){var e,t,r={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function n(e){e.multi?(r.multi[e.kind].push(e),r.multi.fallback.push(e)):r[e.kind][e.tag]=r.fallback[e.tag]=e}for((0,a.K2)(n,"collectType"),e=0,t=arguments.length;e<t;e+=1)arguments[e].forEach(n);return r}function x(e){return this.extend(e)}(0,a.K2)(m,"compileStyleAliases"),(0,a.K2)(y,"Type$1"),(0,a.K2)(b,"compileList"),(0,a.K2)(k,"compileMap"),(0,a.K2)(x,"Schema$1"),x.prototype.extend=(0,a.K2)(function(e){var t=[],r=[];if(e instanceof y)r.push(e);else if(Array.isArray(e))r=r.concat(e);else if(e&&(Array.isArray(e.implicit)||Array.isArray(e.explicit)))e.implicit&&(t=t.concat(e.implicit)),e.explicit&&(r=r.concat(e.explicit));else throw new h("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");t.forEach(function(e){if(!(e instanceof y))throw new h("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(e.loadKind&&"scalar"!==e.loadKind)throw new h("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(e.multi)throw new h("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),r.forEach(function(e){if(!(e instanceof y))throw new h("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var n=Object.create(x.prototype);return n.implicit=(this.implicit||[]).concat(t),n.explicit=(this.explicit||[]).concat(r),n.compiledImplicit=b(n,"implicit"),n.compiledExplicit=b(n,"explicit"),n.compiledTypeMap=k(n.compiledImplicit,n.compiledExplicit),n},"extend");var w=new x({explicit:[new y("tag:yaml.org,2002:str",{kind:"scalar",construct:(0,a.K2)(function(e){return null!==e?e:""},"construct")}),new y("tag:yaml.org,2002:seq",{kind:"sequence",construct:(0,a.K2)(function(e){return null!==e?e:[]},"construct")}),new y("tag:yaml.org,2002:map",{kind:"mapping",construct:(0,a.K2)(function(e){return null!==e?e:{}},"construct")})]});function v(e){if(null===e)return!0;var t=e.length;return 1===t&&"~"===e||4===t&&("null"===e||"Null"===e||"NULL"===e)}function _(){return null}function S(e){return null===e}(0,a.K2)(v,"resolveYamlNull"),(0,a.K2)(_,"constructYamlNull"),(0,a.K2)(S,"isNull");var A=new y("tag:yaml.org,2002:null",{kind:"scalar",resolve:v,construct:_,predicate:S,represent:{canonical:(0,a.K2)(function(){return"~"},"canonical"),lowercase:(0,a.K2)(function(){return"null"},"lowercase"),uppercase:(0,a.K2)(function(){return"NULL"},"uppercase"),camelcase:(0,a.K2)(function(){return"Null"},"camelcase"),empty:(0,a.K2)(function(){return""},"empty")},defaultStyle:"lowercase"});function M(e){if(null===e)return!1;var t=e.length;return 4===t&&("true"===e||"True"===e||"TRUE"===e)||5===t&&("false"===e||"False"===e||"FALSE"===e)}function $(e){return"true"===e||"True"===e||"TRUE"===e}function L(e){return"[object Boolean]"===Object.prototype.toString.call(e)}(0,a.K2)(M,"resolveYamlBoolean"),(0,a.K2)($,"constructYamlBoolean"),(0,a.K2)(L,"isBoolean");var O=new y("tag:yaml.org,2002:bool",{kind:"scalar",resolve:M,construct:$,predicate:L,represent:{lowercase:(0,a.K2)(function(e){return e?"true":"false"},"lowercase"),uppercase:(0,a.K2)(function(e){return e?"TRUE":"FALSE"},"uppercase"),camelcase:(0,a.K2)(function(e){return e?"True":"False"},"camelcase")},defaultStyle:"lowercase"});function E(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function C(e){return 48<=e&&e<=55}function T(e){return 48<=e&&e<=57}function R(e){if(null===e)return!1;var t,r=e.length,n=0,a=!1;if(!r)return!1;if(("-"===(t=e[n])||"+"===t)&&(t=e[++n]),"0"===t){if(n+1===r)return!0;if("b"===(t=e[++n])){for(n++;n<r;n++)if("_"!==(t=e[n])){if("0"!==t&&"1"!==t)return!1;a=!0}return a&&"_"!==t}if("x"===t){for(n++;n<r;n++)if("_"!==(t=e[n])){if(!E(e.charCodeAt(n)))return!1;a=!0}return a&&"_"!==t}if("o"===t){for(n++;n<r;n++)if("_"!==(t=e[n])){if(!C(e.charCodeAt(n)))return!1;a=!0}return a&&"_"!==t}}if("_"===t)return!1;for(;n<r;n++)if("_"!==(t=e[n])){if(!T(e.charCodeAt(n)))return!1;a=!0}return!!a&&"_"!==t}function K(e){var t,r=e,n=1;if(-1!==r.indexOf("_")&&(r=r.replace(/_/g,"")),("-"===(t=r[0])||"+"===t)&&("-"===t&&(n=-1),t=(r=r.slice(1))[0]),"0"===r)return 0;if("0"===t){if("b"===r[1])return n*parseInt(r.slice(2),2);if("x"===r[1])return n*parseInt(r.slice(2),16);if("o"===r[1])return n*parseInt(r.slice(2),8)}return n*parseInt(r,10)}function I(e){return"[object Number]"===Object.prototype.toString.call(e)&&e%1==0&&!l(e)}(0,a.K2)(E,"isHexCode"),(0,a.K2)(C,"isOctCode"),(0,a.K2)(T,"isDecCode"),(0,a.K2)(R,"resolveYamlInteger"),(0,a.K2)(K,"constructYamlInteger"),(0,a.K2)(I,"isInteger");var j=new y("tag:yaml.org,2002:int",{kind:"scalar",resolve:R,construct:K,predicate:I,represent:{binary:(0,a.K2)(function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},"binary"),octal:(0,a.K2)(function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},"octal"),decimal:(0,a.K2)(function(e){return e.toString(10)},"decimal"),hexadecimal:(0,a.K2)(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"]}}),P=RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function N(e){return null!==e&&!!P.test(e)&&"_"!==e[e.length-1]}function D(e){var t,r;return(r="-"===(t=e.replace(/_/g,"").toLowerCase())[0]?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),".inf"===t)?1===r?1/0:-1/0:".nan"===t?NaN:r*parseFloat(t,10)}(0,a.K2)(N,"resolveYamlFloat"),(0,a.K2)(D,"constructYamlFloat");var F=/^[-+]?[0-9]+e/;function z(e,t){var r;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(1/0===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(-1/0===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(l(e))return"-0.0";return r=e.toString(10),F.test(r)?r.replace("e",".e"):r}function B(e){return"[object Number]"===Object.prototype.toString.call(e)&&(e%1!=0||l(e))}(0,a.K2)(z,"representYamlFloat"),(0,a.K2)(B,"isFloat");var W=new y("tag:yaml.org,2002:float",{kind:"scalar",resolve:N,construct:D,predicate:B,represent:z,defaultStyle:"lowercase"}),q=w.extend({implicit:[A,O,j,W]}),Y=RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),U=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 H(e){return null!==e&&(null!==Y.exec(e)||null!==U.exec(e))}function X(e){var t,r,n,a,i,s,o,l,c=0,h=null;if(null===(t=Y.exec(e))&&(t=U.exec(e)),null===t)throw Error("Date resolve error");if(r=+t[1],n=t[2]-1,a=+t[3],!t[4])return new Date(Date.UTC(r,n,a));if(i=+t[4],s=+t[5],o=+t[6],t[7]){for(c=t[7].slice(0,3);c.length<3;)c+="0";c*=1}return t[9]&&(h=(60*t[10]+ +(t[11]||0))*6e4,"-"===t[9]&&(h=-h)),l=new Date(Date.UTC(r,n,a,i,s,o,c)),h&&l.setTime(l.getTime()-h),l}function G(e){return e.toISOString()}(0,a.K2)(H,"resolveYamlTimestamp"),(0,a.K2)(X,"constructYamlTimestamp"),(0,a.K2)(G,"representYamlTimestamp");var Z=new y("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:H,construct:X,instanceOf:Date,represent:G});function V(e){return"<<"===e||null===e}(0,a.K2)(V,"resolveYamlMerge");var Q=new y("tag:yaml.org,2002:merge",{kind:"scalar",resolve:V}),J="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";function ee(e){if(null===e)return!1;var t,r,n=0,a=e.length;for(r=0;r<a;r++)if(!((t=J.indexOf(e.charAt(r)))>64)){if(t<0)return!1;n+=6}return n%8==0}function et(e){var t,r,n=e.replace(/[\r\n=]/g,""),a=n.length,i=0,s=[];for(t=0;t<a;t++)t%4==0&&t&&(s.push(i>>16&255),s.push(i>>8&255),s.push(255&i)),i=i<<6|J.indexOf(n.charAt(t));return 0==(r=a%4*6)?(s.push(i>>16&255),s.push(i>>8&255),s.push(255&i)):18===r?(s.push(i>>10&255),s.push(i>>2&255)):12===r&&s.push(i>>4&255),new Uint8Array(s)}function er(e){var t,r,n="",a=0,i=e.length;for(t=0;t<i;t++)t%3==0&&t&&(n+=J[a>>18&63],n+=J[a>>12&63],n+=J[a>>6&63],n+=J[63&a]),a=(a<<8)+e[t];return 0==(r=i%3)?(n+=J[a>>18&63],n+=J[a>>12&63],n+=J[a>>6&63],n+=J[63&a]):2===r?(n+=J[a>>10&63],n+=J[a>>4&63],n+=J[a<<2&63],n+=J[64]):1===r&&(n+=J[a>>2&63],n+=J[a<<4&63],n+=J[64],n+=J[64]),n}function en(e){return"[object Uint8Array]"===Object.prototype.toString.call(e)}(0,a.K2)(ee,"resolveYamlBinary"),(0,a.K2)(et,"constructYamlBinary"),(0,a.K2)(er,"representYamlBinary"),(0,a.K2)(en,"isBinary");var ea=new y("tag:yaml.org,2002:binary",{kind:"scalar",resolve:ee,construct:et,predicate:en,represent:er}),ei=Object.prototype.hasOwnProperty,es=Object.prototype.toString;function eo(e){if(null===e)return!0;var t,r,n,a,i,s=[];for(t=0,r=e.length;t<r;t+=1){if(n=e[t],i=!1,"[object Object]"!==es.call(n))return!1;for(a in n)if(ei.call(n,a))if(i)return!1;else i=!0;if(!i||-1!==s.indexOf(a))return!1;s.push(a)}return!0}function el(e){return null!==e?e:[]}(0,a.K2)(eo,"resolveYamlOmap"),(0,a.K2)(el,"constructYamlOmap");var ec=new y("tag:yaml.org,2002:omap",{kind:"sequence",resolve:eo,construct:el}),eh=Object.prototype.toString;function eu(e){var t,r,n,a,i;if(null===e)return!0;for(t=0,i=Array(e.length),r=e.length;t<r;t+=1){if(n=e[t],"[object Object]"!==eh.call(n)||1!==(a=Object.keys(n)).length)return!1;i[t]=[a[0],n[a[0]]]}return!0}function ed(e){var t,r,n,a,i;if(null===e)return[];for(t=0,i=Array(e.length),r=e.length;t<r;t+=1)a=Object.keys(n=e[t]),i[t]=[a[0],n[a[0]]];return i}(0,a.K2)(eu,"resolveYamlPairs"),(0,a.K2)(ed,"constructYamlPairs");var ep=new y("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:eu,construct:ed}),ef=Object.prototype.hasOwnProperty;function eg(e){var t;if(null===e)return!0;for(t in e)if(ef.call(e,t)&&null!==e[t])return!1;return!0}function em(e){return null!==e?e:{}}(0,a.K2)(eg,"resolveYamlSet"),(0,a.K2)(em,"constructYamlSet");var ey=new y("tag:yaml.org,2002:set",{kind:"mapping",resolve:eg,construct:em}),eb=q.extend({implicit:[Z,Q],explicit:[ea,ec,ep,ey]}),ek=Object.prototype.hasOwnProperty,ex=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,ew=/[\x85\u2028\u2029]/,ev=/[,\[\]\{\}]/,e_=/^(?:!|!!|![a-z\-]+!)$/i,eS=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function eA(e){return Object.prototype.toString.call(e)}function eM(e){return 10===e||13===e}function e$(e){return 9===e||32===e}function eL(e){return 9===e||32===e||10===e||13===e}function eO(e){return 44===e||91===e||93===e||123===e||125===e}function eE(e){var t;return 48<=e&&e<=57?e-48:97<=(t=32|e)&&t<=102?t-97+10:-1}function eC(e){return 120===e?2:117===e?4:8*(85===e)}function eT(e){return 48<=e&&e<=57?e-48:-1}function eR(e){return 48===e?"\0":97===e?"\x07":98===e?"\b":116===e||9===e?" ":110===e?"\n":118===e?"\v":102===e?"\f":114===e?"\r":101===e?"\x1b":32===e?" ":34===e?'"':47===e?"/":92===e?"\\":78===e?"\x85":95===e?"\xa0":76===e?"\u2028":80===e?"\u2029":""}function eK(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}function eI(e,t,r){"__proto__"===t?Object.defineProperty(e,t,{configurable:!0,enumerable:!0,writable:!0,value:r}):e[t]=r}(0,a.K2)(eA,"_class"),(0,a.K2)(eM,"is_EOL"),(0,a.K2)(e$,"is_WHITE_SPACE"),(0,a.K2)(eL,"is_WS_OR_EOL"),(0,a.K2)(eO,"is_FLOW_INDICATOR"),(0,a.K2)(eE,"fromHexCode"),(0,a.K2)(eC,"escapedHexLen"),(0,a.K2)(eT,"fromDecimalCode"),(0,a.K2)(eR,"simpleEscapeSequence"),(0,a.K2)(eK,"charFromCodepoint"),(0,a.K2)(eI,"setProperty");var ej=Array(256),eP=Array(256);for(n=0;n<256;n++)ej[n]=+!!eR(n),eP[n]=eR(n);function eN(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||eb,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=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=[]}function eD(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=p(r),new h(t,r)}function eF(e,t){throw eD(e,t)}function ez(e,t){e.onWarning&&e.onWarning.call(null,eD(e,t))}(0,a.K2)(eN,"State$1"),(0,a.K2)(eD,"generateError"),(0,a.K2)(eF,"throwError"),(0,a.K2)(ez,"throwWarning");var eB={YAML:(0,a.K2)(function(e,t,r){var n,a,i;null!==e.version&&eF(e,"duplication of %YAML directive"),1!==r.length&&eF(e,"YAML directive accepts exactly one argument"),null===(n=/^([0-9]+)\.([0-9]+)$/.exec(r[0]))&&eF(e,"ill-formed argument of the YAML directive"),a=parseInt(n[1],10),i=parseInt(n[2],10),1!==a&&eF(e,"unacceptable YAML version of the document"),e.version=r[0],e.checkLineBreaks=i<2,1!==i&&2!==i&&ez(e,"unsupported YAML version of the document")},"handleYamlDirective"),TAG:(0,a.K2)(function(e,t,r){var n,a;2!==r.length&&eF(e,"TAG directive accepts exactly two arguments"),n=r[0],a=r[1],e_.test(n)||eF(e,"ill-formed tag handle (first argument) of the TAG directive"),ek.call(e.tagMap,n)&&eF(e,'there is a previously declared suffix for "'+n+'" tag handle'),eS.test(a)||eF(e,"ill-formed tag prefix (second argument) of the TAG directive");try{a=decodeURIComponent(a)}catch(t){eF(e,"tag prefix is malformed: "+a)}e.tagMap[n]=a},"handleTagDirective")};function eW(e,t,r,n){var a,i,s,o;if(t<r){if(o=e.input.slice(t,r),n)for(a=0,i=o.length;a<i;a+=1)9===(s=o.charCodeAt(a))||32<=s&&s<=1114111||eF(e,"expected valid JSON character");else ex.test(o)&&eF(e,"the stream contains non-printable characters");e.result+=o}}function eq(e,t,r,n){var a,i,o,l;for(s(r)||eF(e,"cannot merge mappings; the provided source object is unacceptable"),o=0,l=(a=Object.keys(r)).length;o<l;o+=1)i=a[o],ek.call(t,i)||(eI(t,i,r[i]),n[i]=!0)}function eY(e,t,r,n,a,i,s,o,l){var c,h;if(Array.isArray(a))for(c=0,h=(a=Array.prototype.slice.call(a)).length;c<h;c+=1)Array.isArray(a[c])&&eF(e,"nested arrays are not supported inside keys"),"object"==typeof a&&"[object Object]"===eA(a[c])&&(a[c]="[object Object]");if("object"==typeof a&&"[object Object]"===eA(a)&&(a="[object Object]"),a=String(a),null===t&&(t={}),"tag:yaml.org,2002:merge"===n)if(Array.isArray(i))for(c=0,h=i.length;c<h;c+=1)eq(e,t,i[c],r);else eq(e,t,i,r);else!e.json&&!ek.call(r,a)&&ek.call(t,a)&&(e.line=s||e.line,e.lineStart=o||e.lineStart,e.position=l||e.position,eF(e,"duplicated mapping key")),eI(t,a,i),delete r[a];return t}function eU(e){var t;10===(t=e.input.charCodeAt(e.position))?e.position++:13===t?(e.position++,10===e.input.charCodeAt(e.position)&&e.position++):eF(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function eH(e,t,r){for(var n=0,a=e.input.charCodeAt(e.position);0!==a;){for(;e$(a);)9===a&&-1===e.firstTabInLine&&(e.firstTabInLine=e.position),a=e.input.charCodeAt(++e.position);if(t&&35===a)do a=e.input.charCodeAt(++e.position);while(10!==a&&13!==a&&0!==a);if(eM(a))for(eU(e),a=e.input.charCodeAt(e.position),n++,e.lineIndent=0;32===a;)e.lineIndent++,a=e.input.charCodeAt(++e.position);else break}return -1!==r&&0!==n&&e.lineIndent<r&&ez(e,"deficient indentation"),n}function eX(e){var t,r=e.position;return!!((45===(t=e.input.charCodeAt(r))||46===t)&&t===e.input.charCodeAt(r+1)&&t===e.input.charCodeAt(r+2)&&(r+=3,0===(t=e.input.charCodeAt(r))||eL(t)))||!1}function eG(e,t){1===t?e.result+=" ":t>1&&(e.result+=o("\n",t-1))}function eZ(e,t,r){var n,a,i,s,o,l,c,h,u=e.kind,d=e.result;if(eL(h=e.input.charCodeAt(e.position))||eO(h)||35===h||38===h||42===h||33===h||124===h||62===h||39===h||34===h||37===h||64===h||96===h||(63===h||45===h)&&(eL(n=e.input.charCodeAt(e.position+1))||r&&eO(n)))return!1;for(e.kind="scalar",e.result="",a=i=e.position,s=!1;0!==h;){if(58===h){if(eL(n=e.input.charCodeAt(e.position+1))||r&&eO(n))break}else if(35===h){if(eL(e.input.charCodeAt(e.position-1)))break}else if(e.position===e.lineStart&&eX(e)||r&&eO(h))break;else if(eM(h)){if(o=e.line,l=e.lineStart,c=e.lineIndent,eH(e,!1,-1),e.lineIndent>=t){s=!0,h=e.input.charCodeAt(e.position);continue}e.position=i,e.line=o,e.lineStart=l,e.lineIndent=c;break}s&&(eW(e,a,i,!1),eG(e,e.line-o),a=i=e.position,s=!1),e$(h)||(i=e.position+1),h=e.input.charCodeAt(++e.position)}return eW(e,a,i,!1),!!e.result||(e.kind=u,e.result=d,!1)}function eV(e,t){var r,n,a;if(39!==(r=e.input.charCodeAt(e.position)))return!1;for(e.kind="scalar",e.result="",e.position++,n=a=e.position;0!==(r=e.input.charCodeAt(e.position));)if(39===r){if(eW(e,n,e.position,!0),39!==(r=e.input.charCodeAt(++e.position)))return!0;n=e.position,e.position++,a=e.position}else eM(r)?(eW(e,n,a,!0),eG(e,eH(e,!1,t)),n=a=e.position):e.position===e.lineStart&&eX(e)?eF(e,"unexpected end of the document within a single quoted scalar"):(e.position++,a=e.position);eF(e,"unexpected end of the stream within a single quoted scalar")}function eQ(e,t){var r,n,a,i,s,o;if(34!==(o=e.input.charCodeAt(e.position)))return!1;for(e.kind="scalar",e.result="",e.position++,r=n=e.position;0!==(o=e.input.charCodeAt(e.position));)if(34===o)return eW(e,r,e.position,!0),e.position++,!0;else if(92===o){if(eW(e,r,e.position,!0),eM(o=e.input.charCodeAt(++e.position)))eH(e,!1,t);else if(o<256&&ej[o])e.result+=eP[o],e.position++;else if((s=eC(o))>0){for(a=s,i=0;a>0;a--)(s=eE(o=e.input.charCodeAt(++e.position)))>=0?i=(i<<4)+s:eF(e,"expected hexadecimal character");e.result+=eK(i),e.position++}else eF(e,"unknown escape sequence");r=n=e.position}else eM(o)?(eW(e,r,n,!0),eG(e,eH(e,!1,t)),r=n=e.position):e.position===e.lineStart&&eX(e)?eF(e,"unexpected end of the document within a double quoted scalar"):(e.position++,n=e.position);eF(e,"unexpected end of the stream within a double quoted scalar")}function eJ(e,t){var r,n,a,i,s,o,l,c,h,u,d,p,f=!0,g=e.tag,m=e.anchor,y=Object.create(null);if(91===(p=e.input.charCodeAt(e.position)))s=93,c=!1,i=[];else{if(123!==p)return!1;s=125,c=!0,i={}}for(null!==e.anchor&&(e.anchorMap[e.anchor]=i),p=e.input.charCodeAt(++e.position);0!==p;){if(eH(e,!0,t),(p=e.input.charCodeAt(e.position))===s)return e.position++,e.tag=g,e.anchor=m,e.kind=c?"mapping":"sequence",e.result=i,!0;f?44===p&&eF(e,"expected the node content, but found ','"):eF(e,"missed comma between flow collection entries"),u=h=d=null,o=l=!1,63===p&&eL(e.input.charCodeAt(e.position+1))&&(o=l=!0,e.position++,eH(e,!0,t)),r=e.line,n=e.lineStart,a=e.position,e4(e,t,1,!1,!0),u=e.tag,h=e.result,eH(e,!0,t),p=e.input.charCodeAt(e.position),(l||e.line===r)&&58===p&&(o=!0,p=e.input.charCodeAt(++e.position),eH(e,!0,t),e4(e,t,1,!1,!0),d=e.result),c?eY(e,i,y,u,h,d,r,n,a):o?i.push(eY(e,null,y,u,h,d,r,n,a)):i.push(h),eH(e,!0,t),44===(p=e.input.charCodeAt(e.position))?(f=!0,p=e.input.charCodeAt(++e.position)):f=!1}eF(e,"unexpected end of the stream within a flow collection")}function e0(e,t){var r,n,a,i,s=1,l=!1,c=!1,h=t,u=0,d=!1;if(124===(i=e.input.charCodeAt(e.position)))n=!1;else{if(62!==i)return!1;n=!0}for(e.kind="scalar",e.result="";0!==i;)if(43===(i=e.input.charCodeAt(++e.position))||45===i)1===s?s=43===i?3:2:eF(e,"repeat of a chomping mode identifier");else if((a=eT(i))>=0)0===a?eF(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):c?eF(e,"repeat of an indentation width identifier"):(h=t+a-1,c=!0);else break;if(e$(i)){do i=e.input.charCodeAt(++e.position);while(e$(i));if(35===i)do i=e.input.charCodeAt(++e.position);while(!eM(i)&&0!==i)}for(;0!==i;){for(eU(e),e.lineIndent=0,i=e.input.charCodeAt(e.position);(!c||e.lineIndent<h)&&32===i;)e.lineIndent++,i=e.input.charCodeAt(++e.position);if(!c&&e.lineIndent>h&&(h=e.lineIndent),eM(i)){u++;continue}if(e.lineIndent<h){3===s?e.result+=o("\n",l?1+u:u):1===s&&l&&(e.result+="\n");break}for(n?e$(i)?(d=!0,e.result+=o("\n",l?1+u:u)):d?(d=!1,e.result+=o("\n",u+1)):0===u?l&&(e.result+=" "):e.result+=o("\n",u):e.result+=o("\n",l?1+u:u),l=!0,c=!0,u=0,r=e.position;!eM(i)&&0!==i;)i=e.input.charCodeAt(++e.position);eW(e,r,e.position,!1)}return!0}function e1(e,t){var r,n,a=e.tag,i=e.anchor,s=[],o=!1;if(-1!==e.firstTabInLine)return!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=s),n=e.input.charCodeAt(e.position);0!==n&&(-1!==e.firstTabInLine&&(e.position=e.firstTabInLine,eF(e,"tab characters must not be used in indentation")),45===n&&eL(e.input.charCodeAt(e.position+1)));){if(o=!0,e.position++,eH(e,!0,-1)&&e.lineIndent<=t){s.push(null),n=e.input.charCodeAt(e.position);continue}if(r=e.line,e4(e,t,3,!1,!0),s.push(e.result),eH(e,!0,-1),n=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&0!==n)eF(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return!!o&&(e.tag=a,e.anchor=i,e.kind="sequence",e.result=s,!0)}function e2(e,t,r){var n,a,i,s,o,l,c,h=e.tag,u=e.anchor,d={},p=Object.create(null),f=null,g=null,m=null,y=!1,b=!1;if(-1!==e.firstTabInLine)return!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=d),c=e.input.charCodeAt(e.position);0!==c;){if(y||-1===e.firstTabInLine||(e.position=e.firstTabInLine,eF(e,"tab characters must not be used in indentation")),n=e.input.charCodeAt(e.position+1),i=e.line,(63===c||58===c)&&eL(n))63===c?(y&&(eY(e,d,p,f,g,null,s,o,l),f=g=m=null),b=!0,y=!0,a=!0):y?(y=!1,a=!0):eF(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,c=n;else{if(s=e.line,o=e.lineStart,l=e.position,!e4(e,r,2,!1,!0))break;if(e.line===i){for(c=e.input.charCodeAt(e.position);e$(c);)c=e.input.charCodeAt(++e.position);if(58===c)eL(c=e.input.charCodeAt(++e.position))||eF(e,"a whitespace character is expected after the key-value separator within a block mapping"),y&&(eY(e,d,p,f,g,null,s,o,l),f=g=m=null),b=!0,y=!1,a=!1,f=e.tag,g=e.result;else{if(!b)return e.tag=h,e.anchor=u,!0;eF(e,"can not read an implicit mapping pair; a colon is missed")}}else{if(!b)return e.tag=h,e.anchor=u,!0;eF(e,"can not read a block mapping entry; a multiline key may not be an implicit key")}}if((e.line===i||e.lineIndent>t)&&(y&&(s=e.line,o=e.lineStart,l=e.position),e4(e,t,4,!0,a)&&(y?g=e.result:m=e.result),y||(eY(e,d,p,f,g,m,s,o,l),f=g=m=null),eH(e,!0,-1),c=e.input.charCodeAt(e.position)),(e.line===i||e.lineIndent>t)&&0!==c)eF(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return y&&eY(e,d,p,f,g,null,s,o,l),b&&(e.tag=h,e.anchor=u,e.kind="mapping",e.result=d),b}function e3(e){var t,r,n,a,i=!1,s=!1;if(33!==(a=e.input.charCodeAt(e.position)))return!1;if(null!==e.tag&&eF(e,"duplication of a tag property"),60===(a=e.input.charCodeAt(++e.position))?(i=!0,a=e.input.charCodeAt(++e.position)):33===a?(s=!0,r="!!",a=e.input.charCodeAt(++e.position)):r="!",t=e.position,i){do a=e.input.charCodeAt(++e.position);while(0!==a&&62!==a);e.position<e.length?(n=e.input.slice(t,e.position),a=e.input.charCodeAt(++e.position)):eF(e,"unexpected end of the stream within a verbatim tag")}else{for(;0!==a&&!eL(a);)33===a&&(s?eF(e,"tag suffix cannot contain exclamation marks"):(r=e.input.slice(t-1,e.position+1),e_.test(r)||eF(e,"named tag handle cannot contain such characters"),s=!0,t=e.position+1)),a=e.input.charCodeAt(++e.position);n=e.input.slice(t,e.position),ev.test(n)&&eF(e,"tag suffix cannot contain flow indicator characters")}n&&!eS.test(n)&&eF(e,"tag name cannot contain such characters: "+n);try{n=decodeURIComponent(n)}catch(t){eF(e,"tag name is malformed: "+n)}return i?e.tag=n:ek.call(e.tagMap,r)?e.tag=e.tagMap[r]+n:"!"===r?e.tag="!"+n:"!!"===r?e.tag="tag:yaml.org,2002:"+n:eF(e,'undeclared tag handle "'+r+'"'),!0}function e5(e){var t,r;if(38!==(r=e.input.charCodeAt(e.position)))return!1;for(null!==e.anchor&&eF(e,"duplication of an anchor property"),r=e.input.charCodeAt(++e.position),t=e.position;0!==r&&!eL(r)&&!eO(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&eF(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function e6(e){var t,r,n;if(42!==(n=e.input.charCodeAt(e.position)))return!1;for(n=e.input.charCodeAt(++e.position),t=e.position;0!==n&&!eL(n)&&!eO(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&eF(e,"name of an alias node must contain at least one character"),r=e.input.slice(t,e.position),ek.call(e.anchorMap,r)||eF(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],eH(e,!0,-1),!0}function e4(e,t,r,n,a){var i,s,o,l,c,h,u,d,p,f=1,g=!1,m=!1;if(null!==e.listener&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,i=s=o=4===r||3===r,n&&eH(e,!0,-1)&&(g=!0,e.lineIndent>t?f=1:e.lineIndent===t?f=0:e.lineIndent<t&&(f=-1)),1===f)for(;e3(e)||e5(e);)eH(e,!0,-1)?(g=!0,o=i,e.lineIndent>t?f=1:e.lineIndent===t?f=0:e.lineIndent<t&&(f=-1)):o=!1;if(o&&(o=g||a),(1===f||4===r)&&(d=1===r||2===r?t:t+1,p=e.position-e.lineStart,1===f?o&&(e1(e,p)||e2(e,p,d))||eJ(e,d)?m=!0:(s&&e0(e,d)||eV(e,d)||eQ(e,d)?m=!0:e6(e)?(m=!0,(null!==e.tag||null!==e.anchor)&&eF(e,"alias node should not have any properties")):eZ(e,d,1===r)&&(m=!0,null===e.tag&&(e.tag="?")),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):0===f&&(m=o&&e1(e,p))),null===e.tag)null!==e.anchor&&(e.anchorMap[e.anchor]=e.result);else if("?"===e.tag){for(null!==e.result&&"scalar"!==e.kind&&eF(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),l=0,c=e.implicitTypes.length;l<c;l+=1)if((u=e.implicitTypes[l]).resolve(e.result)){e.result=u.construct(e.result),e.tag=u.tag,null!==e.anchor&&(e.anchorMap[e.anchor]=e.result);break}}else if("!"!==e.tag){if(ek.call(e.typeMap[e.kind||"fallback"],e.tag))u=e.typeMap[e.kind||"fallback"][e.tag];else for(l=0,u=null,c=(h=e.typeMap.multi[e.kind||"fallback"]).length;l<c;l+=1)if(e.tag.slice(0,h[l].tag.length)===h[l].tag){u=h[l];break}u||eF(e,"unknown tag !<"+e.tag+">"),null!==e.result&&u.kind!==e.kind&&eF(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+u.kind+'", not "'+e.kind+'"'),u.resolve(e.result,e.tag)?(e.result=u.construct(e.result,e.tag),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):eF(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return null!==e.listener&&e.listener("close",e),null!==e.tag||null!==e.anchor||m}function e9(e){var t,r,n,a,i=e.position,s=!1;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);0!==(a=e.input.charCodeAt(e.position))&&(eH(e,!0,-1),a=e.input.charCodeAt(e.position),!(e.lineIndent>0)&&37===a);){for(s=!0,a=e.input.charCodeAt(++e.position),t=e.position;0!==a&&!eL(a);)a=e.input.charCodeAt(++e.position);for(r=e.input.slice(t,e.position),n=[],r.length<1&&eF(e,"directive name must not be less than one character in length");0!==a;){for(;e$(a);)a=e.input.charCodeAt(++e.position);if(35===a){do a=e.input.charCodeAt(++e.position);while(0!==a&&!eM(a));break}if(eM(a))break;for(t=e.position;0!==a&&!eL(a);)a=e.input.charCodeAt(++e.position);n.push(e.input.slice(t,e.position))}0!==a&&eU(e),ek.call(eB,r)?eB[r](e,r,n):ez(e,'unknown document directive "'+r+'"')}if(eH(e,!0,-1),0===e.lineIndent&&45===e.input.charCodeAt(e.position)&&45===e.input.charCodeAt(e.position+1)&&45===e.input.charCodeAt(e.position+2)?(e.position+=3,eH(e,!0,-1)):s&&eF(e,"directives end mark is expected"),e4(e,e.lineIndent-1,4,!1,!0),eH(e,!0,-1),e.checkLineBreaks&&ew.test(e.input.slice(i,e.position))&&ez(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&eX(e)){46===e.input.charCodeAt(e.position)&&(e.position+=3,eH(e,!0,-1));return}e.position<e.length-1&&eF(e,"end of the stream or a document separator is expected")}function e8(e,t){e=String(e),t=t||{},0!==e.length&&(10!==e.charCodeAt(e.length-1)&&13!==e.charCodeAt(e.length-1)&&(e+="\n"),65279===e.charCodeAt(0)&&(e=e.slice(1)));var r=new eN(e,t),n=e.indexOf("\0");for(-1!==n&&(r.position=n,eF(r,"null byte is not allowed in input")),r.input+="\0";32===r.input.charCodeAt(r.position);)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)e9(r);return r.documents}function e7(e,t,r){null!==t&&"object"==typeof t&&void 0===r&&(r=t,t=null);var n=e8(e,r);if("function"!=typeof t)return n;for(var a=0,i=n.length;a<i;a+=1)t(n[a])}function te(e,t){var r=e8(e,t);if(0!==r.length){if(1===r.length)return r[0];throw new h("expected a single document in the stream, but found more")}}(0,a.K2)(eW,"captureSegment"),(0,a.K2)(eq,"mergeMappings"),(0,a.K2)(eY,"storeMappingPair"),(0,a.K2)(eU,"readLineBreak"),(0,a.K2)(eH,"skipSeparationSpace"),(0,a.K2)(eX,"testDocumentSeparator"),(0,a.K2)(eG,"writeFoldedLines"),(0,a.K2)(eZ,"readPlainScalar"),(0,a.K2)(eV,"readSingleQuotedScalar"),(0,a.K2)(eQ,"readDoubleQuotedScalar"),(0,a.K2)(eJ,"readFlowCollection"),(0,a.K2)(e0,"readBlockScalar"),(0,a.K2)(e1,"readBlockSequence"),(0,a.K2)(e2,"readBlockMapping"),(0,a.K2)(e3,"readTagProperty"),(0,a.K2)(e5,"readAnchorProperty"),(0,a.K2)(e6,"readAlias"),(0,a.K2)(e4,"composeNode"),(0,a.K2)(e9,"readDocument"),(0,a.K2)(e8,"loadDocuments"),(0,a.K2)(e7,"loadAll$1"),(0,a.K2)(te,"load$1");var tt=Object.prototype.toString,tr=Object.prototype.hasOwnProperty,tn={};tn[0]="\\0",tn[7]="\\a",tn[8]="\\b",tn[9]="\\t",tn[10]="\\n",tn[11]="\\v",tn[12]="\\f",tn[13]="\\r",tn[27]="\\e",tn[34]='\\"',tn[92]="\\\\",tn[133]="\\N",tn[160]="\\_",tn[8232]="\\L",tn[8233]="\\P";var ta=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],ti=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function ts(e,t){var r,n,a,i,s,o,l;if(null===t)return{};for(a=0,r={},i=(n=Object.keys(t)).length;a<i;a+=1)o=String(t[s=n[a]]),"!!"===s.slice(0,2)&&(s="tag:yaml.org,2002:"+s.slice(2)),(l=e.compiledTypeMap.fallback[s])&&tr.call(l.styleAliases,o)&&(o=l.styleAliases[o]),r[s]=o;return r}function to(e){var t,r,n;if(t=e.toString(16).toUpperCase(),e<=255)r="x",n=2;else if(e<=65535)r="u",n=4;else if(e<=0xffffffff)r="U",n=8;else throw new h("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+o("0",n-t.length)+t}function tl(e){this.schema=e.schema||eb,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=i(e.flowLevel)?-1:e.flowLevel,this.styleMap=ts(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?2:1,this.forceQuotes=e.forceQuotes||!1,this.replacer="function"==typeof e.replacer?e.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function tc(e,t){for(var r,n=o(" ",t),a=0,i=-1,s="",l=e.length;a<l;)-1===(i=e.indexOf("\n",a))?(r=e.slice(a),a=l):(r=e.slice(a,i+1),a=i+1),r.length&&"\n"!==r&&(s+=n),s+=r;return s}function th(e,t){return"\n"+o(" ",e.indent*t)}function tu(e,t){var r,n;for(r=0,n=e.implicitTypes.length;r<n;r+=1)if(e.implicitTypes[r].resolve(t))return!0;return!1}function td(e){return 32===e||9===e}function tp(e){return 32<=e&&e<=126||161<=e&&e<=55295&&8232!==e&&8233!==e||57344<=e&&e<=65533&&65279!==e||65536<=e&&e<=1114111}function tf(e){return tp(e)&&65279!==e&&13!==e&&10!==e}function tg(e,t,r){var n=tf(e),a=n&&!td(e);return(r?n:n&&44!==e&&91!==e&&93!==e&&123!==e&&125!==e)&&35!==e&&!(58===t&&!a)||tf(t)&&!td(t)&&35===e||58===t&&a}function tm(e){return tp(e)&&65279!==e&&!td(e)&&45!==e&&63!==e&&58!==e&&44!==e&&91!==e&&93!==e&&123!==e&&125!==e&&35!==e&&38!==e&&42!==e&&33!==e&&124!==e&&61!==e&&62!==e&&39!==e&&34!==e&&37!==e&&64!==e&&96!==e}function ty(e){return!td(e)&&58!==e}function tb(e,t){var r,n=e.charCodeAt(t);return n>=55296&&n<=56319&&t+1<e.length&&(r=e.charCodeAt(t+1))>=56320&&r<=57343?(n-55296)*1024+r-56320+65536:n}function tk(e){return/^\n* /.test(e)}function tx(e,t,r,n,a,i,s,o){var l,c=0,h=null,u=!1,d=!1,p=-1!==n,f=-1,g=tm(tb(e,0))&&ty(tb(e,e.length-1));if(t||s)for(l=0;l<e.length;c>=65536?l+=2:l++){if(!tp(c=tb(e,l)))return 5;g=g&&tg(c,h,o),h=c}else{for(l=0;l<e.length;c>=65536?l+=2:l++){if(10===(c=tb(e,l)))u=!0,p&&(d=d||l-f-1>n&&" "!==e[f+1],f=l);else if(!tp(c))return 5;g=g&&tg(c,h,o),h=c}d=d||p&&l-f-1>n&&" "!==e[f+1]}return u||d?r>9&&tk(e)?5:s?2===i?5:2:d?4:3:!g||s||a(e)?2===i?5:2:1}function tw(e,t,r,n,i){e.dump=function(){if(0===t.length)return 2===e.quotingType?'""':"''";if(!e.noCompatMode&&(-1!==ta.indexOf(t)||ti.test(t)))return 2===e.quotingType?'"'+t+'"':"'"+t+"'";var s=e.indent*Math.max(1,r),o=-1===e.lineWidth?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-s),l=n||e.flowLevel>-1&&r>=e.flowLevel;function c(t){return tu(e,t)}switch((0,a.K2)(c,"testAmbiguity"),tx(t,l,e.indent,o,c,e.quotingType,e.forceQuotes&&!n,i)){case 1:return t;case 2:return"'"+t.replace(/'/g,"''")+"'";case 3:return"|"+tv(t,e.indent)+t_(tc(t,s));case 4:return">"+tv(t,e.indent)+t_(tc(tS(t,o),s));case 5:return'"'+tM(t)+'"';default:throw new h("impossible error: invalid scalar style")}}()}function tv(e,t){var r=tk(e)?String(t):"",n="\n"===e[e.length-1];return r+(n&&("\n"===e[e.length-2]||"\n"===e)?"+":n?"":"-")+"\n"}function t_(e){return"\n"===e[e.length-1]?e.slice(0,-1):e}function tS(e,t){for(var r,n,a,i=/(\n+)([^\n]*)/g,s=(i.lastIndex=r=-1!==(r=e.indexOf("\n"))?r:e.length,tA(e.slice(0,r),t)),o="\n"===e[0]||" "===e[0];a=i.exec(e);){var l=a[1],c=a[2];n=" "===c[0],s+=l+(o||n||""===c?"":"\n")+tA(c,t),o=n}return s}function tA(e,t){if(""===e||" "===e[0])return e;for(var r,n,a=/ [^ ]/g,i=0,s=0,o=0,l="";r=a.exec(e);)(o=r.index)-i>t&&(n=s>i?s:o,l+="\n"+e.slice(i,n),i=n+1),s=o;return l+="\n",e.length-i>t&&s>i?l+=e.slice(i,s)+"\n"+e.slice(s+1):l+=e.slice(i),l.slice(1)}function tM(e){for(var t,r="",n=0,a=0;a<e.length;n>=65536?a+=2:a++)!(t=tn[n=tb(e,a)])&&tp(n)?(r+=e[a],n>=65536&&(r+=e[a+1])):r+=t||to(n);return r}function t$(e,t,r){var n,a,i,s="",o=e.tag;for(n=0,a=r.length;n<a;n+=1)i=r[n],e.replacer&&(i=e.replacer.call(r,String(n),i)),(tT(e,t,i,!1,!1)||void 0===i&&tT(e,t,null,!1,!1))&&(""!==s&&(s+=","+(e.condenseFlow?"":" ")),s+=e.dump);e.tag=o,e.dump="["+s+"]"}function tL(e,t,r,n){var a,i,s,o="",l=e.tag;for(a=0,i=r.length;a<i;a+=1)s=r[a],e.replacer&&(s=e.replacer.call(r,String(a),s)),(tT(e,t+1,s,!0,!0,!1,!0)||void 0===s&&tT(e,t+1,null,!0,!0,!1,!0))&&(n&&""===o||(o+=th(e,t)),e.dump&&10===e.dump.charCodeAt(0)?o+="-":o+="- ",o+=e.dump);e.tag=l,e.dump=o||"[]"}function tO(e,t,r){var n,a,i,s,o,l="",c=e.tag,h=Object.keys(r);for(n=0,a=h.length;n<a;n+=1)o="",""!==l&&(o+=", "),e.condenseFlow&&(o+='"'),s=r[i=h[n]],e.replacer&&(s=e.replacer.call(r,i,s)),tT(e,t,i,!1,!1)&&(e.dump.length>1024&&(o+="? "),o+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),tT(e,t,s,!1,!1)&&(o+=e.dump,l+=o));e.tag=c,e.dump="{"+l+"}"}function tE(e,t,r,n){var a,i,s,o,l,c,u="",d=e.tag,p=Object.keys(r);if(!0===e.sortKeys)p.sort();else if("function"==typeof e.sortKeys)p.sort(e.sortKeys);else if(e.sortKeys)throw new h("sortKeys must be a boolean or a function");for(a=0,i=p.length;a<i;a+=1)c="",n&&""===u||(c+=th(e,t)),o=r[s=p[a]],e.replacer&&(o=e.replacer.call(r,s,o)),tT(e,t+1,s,!0,!0,!0)&&((l=null!==e.tag&&"?"!==e.tag||e.dump&&e.dump.length>1024)&&(e.dump&&10===e.dump.charCodeAt(0)?c+="?":c+="? "),c+=e.dump,l&&(c+=th(e,t)),tT(e,t+1,o,!0,l)&&(e.dump&&10===e.dump.charCodeAt(0)?c+=":":c+=": ",c+=e.dump,u+=c));e.tag=d,e.dump=u||"{}"}function tC(e,t,r){var n,a,i,s,o,l;for(i=0,s=(a=r?e.explicitTypes:e.implicitTypes).length;i<s;i+=1)if(((o=a[i]).instanceOf||o.predicate)&&(!o.instanceOf||"object"==typeof t&&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,"[object Function]"===tt.call(o.represent))n=o.represent(t,l);else if(tr.call(o.represent,l))n=o.represent[l](t,l);else throw new h("!<"+o.tag+'> tag resolver accepts not "'+l+'" style');e.dump=n}return!0}return!1}function tT(e,t,r,n,a,i,s){e.tag=null,e.dump=r,tC(e,r,!1)||tC(e,r,!0);var o=tt.call(e.dump),l=n;n&&(n=e.flowLevel<0||e.flowLevel>t);var c,u,d,p="[object Object]"===o||"[object Array]"===o;if(p&&(d=-1!==(u=e.duplicates.indexOf(r))),(null!==e.tag&&"?"!==e.tag||d||2!==e.indent&&t>0)&&(a=!1),d&&e.usedDuplicates[u])e.dump="*ref_"+u;else{if(p&&d&&!e.usedDuplicates[u]&&(e.usedDuplicates[u]=!0),"[object Object]"===o)n&&0!==Object.keys(e.dump).length?(tE(e,t,e.dump,a),d&&(e.dump="&ref_"+u+e.dump)):(tO(e,t,e.dump),d&&(e.dump="&ref_"+u+" "+e.dump));else if("[object Array]"===o)n&&0!==e.dump.length?(e.noArrayIndent&&!s&&t>0?tL(e,t-1,e.dump,a):tL(e,t,e.dump,a),d&&(e.dump="&ref_"+u+e.dump)):(t$(e,t,e.dump),d&&(e.dump="&ref_"+u+" "+e.dump));else if("[object String]"===o)"?"!==e.tag&&tw(e,e.dump,t,i,l);else{if("[object Undefined]"===o||e.skipInvalid)return!1;throw new h("unacceptable kind of an object to dump "+o)}null!==e.tag&&"?"!==e.tag&&(c=encodeURI("!"===e.tag[0]?e.tag.slice(1):e.tag).replace(/!/g,"%21"),c="!"===e.tag[0]?"!"+c:"tag:yaml.org,2002:"===c.slice(0,18)?"!!"+c.slice(18):"!<"+c+">",e.dump=c+" "+e.dump)}return!0}function tR(e,t){var r,n,a=[],i=[];for(tK(e,a,i),r=0,n=i.length;r<n;r+=1)t.duplicates.push(a[i[r]]);t.usedDuplicates=Array(n)}function tK(e,t,r){var n,a,i;if(null!==e&&"object"==typeof e)if(-1!==(a=t.indexOf(e)))-1===r.indexOf(a)&&r.push(a);else if(t.push(e),Array.isArray(e))for(a=0,i=e.length;a<i;a+=1)tK(e[a],t,r);else for(a=0,i=(n=Object.keys(e)).length;a<i;a+=1)tK(e[n[a]],t,r)}(0,a.K2)(ts,"compileStyleMap"),(0,a.K2)(to,"encodeHex"),(0,a.K2)(tl,"State"),(0,a.K2)(tc,"indentString"),(0,a.K2)(th,"generateNextLine"),(0,a.K2)(tu,"testImplicitResolving"),(0,a.K2)(td,"isWhitespace"),(0,a.K2)(tp,"isPrintable"),(0,a.K2)(tf,"isNsCharOrWhitespace"),(0,a.K2)(tg,"isPlainSafe"),(0,a.K2)(tm,"isPlainSafeFirst"),(0,a.K2)(ty,"isPlainSafeLast"),(0,a.K2)(tb,"codePointAt"),(0,a.K2)(tk,"needIndentIndicator");function tI(e,t){return function(){throw Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+t+" instead, which is now safe by default.")}}(0,a.K2)(tx,"chooseScalarStyle"),(0,a.K2)(tw,"writeScalar"),(0,a.K2)(tv,"blockHeader"),(0,a.K2)(t_,"dropEndingNewline"),(0,a.K2)(tS,"foldString"),(0,a.K2)(tA,"foldLine"),(0,a.K2)(tM,"escapeString"),(0,a.K2)(t$,"writeFlowSequence"),(0,a.K2)(tL,"writeBlockSequence"),(0,a.K2)(tO,"writeFlowMapping"),(0,a.K2)(tE,"writeBlockMapping"),(0,a.K2)(tC,"detectType"),(0,a.K2)(tT,"writeNode"),(0,a.K2)(tR,"getDuplicateReferences"),(0,a.K2)(tK,"inspectNode"),(0,a.K2)(function(e,t){var r=new tl(t=t||{});r.noRefs||tR(e,r);var n=e;return(r.replacer&&(n=r.replacer.call({"":n},"",n)),tT(r,0,n,!0,!0))?r.dump+"\n":""},"dump$1"),(0,a.K2)(tI,"renamed");var tj=q,tP=te;tI("safeLoad","load"),tI("safeLoadAll","loadAll"),tI("safeDump","dump")},51874:(e,t,r)=>{"use strict";r.d(t,{JLW:()=>eo,l78:()=>u,tlR:()=>h,qrM:()=>eg.Ay,Yu4:()=>ep.A,IA3:()=>ef.A,Wi0:()=>em.dJ,PGM:()=>em.kl,OEq:()=>eb,y8u:()=>ev,olC:()=>eS,IrU:()=>eM,oDi:()=>eO,Q7f:()=>eC,cVp:()=>eR,lUB:()=>eI.A,Lx9:()=>eK.A,nVG:()=>ej.G,uxU:()=>ej.N,Xf2:()=>eP.A,GZz:()=>eN.Ay,UPb:()=>eN.Ps,dyv:()=>eN.Ko,GPZ:()=>m.GP,Sk5:()=>b,bEH:()=>X,n8j:()=>el.A,T9B:()=>n.A,jkA:()=>a.A,rLf:()=>ed,WH:()=>G.WH,m4Y:()=>G.m4,UMr:()=>G.UM,w7C:()=>G.w7,zt:()=>Z,Ltv:()=>V.A,UAC:()=>eW.UA,DCK:()=>eU.DC,TUC:()=>eq.TU,Agd:()=>eB.Ag,t6C:()=>eD.y,wXd:()=>ez.wX,ABi:()=>eq.AB,Ui6:()=>eY.Ui,rGn:()=>eq.rG,ucG:()=>eF.R,YPH:()=>eq.YP,Mol:()=>eq.Mo,PGu:()=>eq.PG,GuW:()=>eq.Gu,hkb:()=>L});var n=r(82192),a=r(47578);function i(e){return e}function s(e){return"translate("+e+",0)"}function o(e){return"translate(0,"+e+")"}function l(){return!this.__axis}function c(e,t){var r=[],n=null,a=null,c=6,h=6,u=3,d="u">typeof window&&window.devicePixelRatio>1?0:.5,p=1===e||4===e?-1:1,f=4===e||2===e?"x":"y",g=1===e||3===e?s:o;function m(s){var o=null==n?t.ticks?t.ticks.apply(t,r):t.domain():n,m=null==a?t.tickFormat?t.tickFormat.apply(t,r):i:a,y=Math.max(c,0)+u,b=t.range(),k=+b[0]+d,x=+b[b.length-1]+d,w=(t.bandwidth?function(e,t){return t=Math.max(0,e.bandwidth()-2*t)/2,e.round()&&(t=Math.round(t)),r=>+e(r)+t}:function(e){return t=>+e(t)})(t.copy(),d),v=s.selection?s.selection():s,_=v.selectAll(".domain").data([null]),S=v.selectAll(".tick").data(o,t).order(),A=S.exit(),M=S.enter().append("g").attr("class","tick"),$=S.select("line"),L=S.select("text");_=_.merge(_.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),S=S.merge(M),$=$.merge(M.append("line").attr("stroke","currentColor").attr(f+"2",p*c)),L=L.merge(M.append("text").attr("fill","currentColor").attr(f,p*y).attr("dy",1===e?"0em":3===e?"0.71em":"0.32em")),s!==v&&(_=_.transition(s),S=S.transition(s),$=$.transition(s),L=L.transition(s),A=A.transition(s).attr("opacity",1e-6).attr("transform",function(e){return isFinite(e=w(e))?g(e+d):this.getAttribute("transform")}),M.attr("opacity",1e-6).attr("transform",function(e){var t=this.parentNode.__axis;return g((t&&isFinite(t=t(e))?t:w(e))+d)})),A.remove(),_.attr("d",4===e||2===e?h?"M"+p*h+","+k+"H"+d+"V"+x+"H"+p*h:"M"+d+","+k+"V"+x:h?"M"+k+","+p*h+"V"+d+"H"+x+"V"+p*h:"M"+k+","+d+"H"+x),S.attr("opacity",1).attr("transform",function(e){return g(w(e)+d)}),$.attr(f+"2",p*c),L.attr(f,p*y).text(m),v.filter(l).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",2===e?"start":4===e?"end":"middle"),v.each(function(){this.__axis=w})}return m.scale=function(e){return arguments.length?(t=e,m):t},m.ticks=function(){return r=Array.from(arguments),m},m.tickArguments=function(e){return arguments.length?(r=null==e?[]:Array.from(e),m):r.slice()},m.tickValues=function(e){return arguments.length?(n=null==e?null:Array.from(e),m):n&&n.slice()},m.tickFormat=function(e){return arguments.length?(a=e,m):a},m.tickSize=function(e){return arguments.length?(c=h=+e,m):c},m.tickSizeInner=function(e){return arguments.length?(c=+e,m):c},m.tickSizeOuter=function(e){return arguments.length?(h=+e,m):h},m.tickPadding=function(e){return arguments.length?(u=+e,m):u},m.offset=function(e){return arguments.length?(d=+e,m):d},m}function h(e){return c(1,e)}function u(e){return c(3,e)}r(25610);let{abs:d,max:p,min:f}=Math;function g(e){return{type:e}}["w","e"].map(g),["n","s"].map(g),["n","w","e","s","nw","ne","sw","se"].map(g);var m=r(16573);function y(e){var t=0,r=e.children,n=r&&r.length;if(n)for(;--n>=0;)t+=r[n].value;else t=1;e.value=t}function b(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=x)):void 0===t&&(t=k);for(var r,n,a,i,s,o=new _(e),l=[o];r=l.pop();)if((a=t(r.data))&&(s=(a=Array.from(a)).length))for(r.children=a,i=s-1;i>=0;--i)l.push(n=a[i]=new _(a[i])),n.parent=r,n.depth=r.depth+1;return o.eachBefore(v)}function k(e){return e.children}function x(e){return Array.isArray(e)?e[1]:null}function w(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function v(e){var t=0;do e.height=t;while((e=e.parent)&&e.height<++t)}function _(e){this.data=e,this.depth=this.height=0,this.parent=null}function S(e){e.x0=Math.round(e.x0),e.y0=Math.round(e.y0),e.x1=Math.round(e.x1),e.y1=Math.round(e.y1)}_.prototype=b.prototype={constructor:_,count:function(){return this.eachAfter(y)},each:function(e,t){let r=-1;for(let n of this)e.call(t,n,++r,this);return this},eachAfter:function(e,t){for(var r,n,a,i=this,s=[i],o=[],l=-1;i=s.pop();)if(o.push(i),r=i.children)for(n=0,a=r.length;n<a;++n)s.push(r[n]);for(;i=o.pop();)e.call(t,i,++l,this);return this},eachBefore:function(e,t){for(var r,n,a=this,i=[a],s=-1;a=i.pop();)if(e.call(t,a,++s,this),r=a.children)for(n=r.length-1;n>=0;--n)i.push(r[n]);return this},find:function(e,t){let r=-1;for(let n of this)if(e.call(t,n,++r,this))return n},sum:function(e){return this.eachAfter(function(t){for(var r=+e(t.data)||0,n=t.children,a=n&&n.length;--a>=0;)r+=n[a].value;t.value=r})},sort:function(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})},path:function(e){for(var t=this,r=function(e,t){if(e===t)return e;var r=e.ancestors(),n=t.ancestors(),a=null;for(e=r.pop(),t=n.pop();e===t;)a=e,e=r.pop(),t=n.pop();return a}(t,e),n=[t];t!==r;)n.push(t=t.parent);for(var a=n.length;e!==r;)n.splice(a,0,e),e=e.parent;return n},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e},links:function(){var e=this,t=[];return e.each(function(r){r!==e&&t.push({source:r.parent,target:r})}),t},copy:function(){return b(this).eachBefore(w)},[Symbol.iterator]:function*(){var e,t,r,n,a=this,i=[a];do for(e=i.reverse(),i=[];a=e.pop();)if(yield a,t=a.children)for(r=0,n=t.length;r<n;++r)i.push(t[r]);while(i.length)}};let A=function e(t){function r(e,r,n,a,i){!function(e,t,r,n,a,i){for(var s,o,l,c,h,u,d,p,f,g,m,y=[],b=t.children,k=0,x=0,w=b.length,v=t.value;k<w;){l=a-r,c=i-n;do h=b[x++].value;while(!h&&x<w);for(u=d=h,f=Math.max(d/(m=h*h*(g=Math.max(c/l,l/c)/(v*e))),m/u);x<w;++x){if(h+=o=b[x].value,o<u&&(u=o),o>d&&(d=o),(p=Math.max(d/(m=h*h*g),m/u))>f){h-=o;break}f=p}y.push(s={value:h,dice:l<c,children:b.slice(k,x)}),s.dice?function(e,t,r,n,a){for(var i,s=e.children,o=-1,l=s.length,c=e.value&&(n-t)/e.value;++o<l;)(i=s[o]).y0=r,i.y1=a,i.x0=t,i.x1=t+=i.value*c}(s,r,n,a,v?n+=c*h/v:i):function(e,t,r,n,a){for(var i,s=e.children,o=-1,l=s.length,c=e.value&&(a-r)/e.value;++o<l;)(i=s[o]).x0=t,i.x1=n,i.y0=r,i.y1=r+=i.value*c}(s,r,n,v?r+=l*h/v:a,i),v-=h,k=x}}(t,e,r,n,a,i)}return r.ratio=function(t){return e((t*=1)>1?t:1)},r}((1+Math.sqrt(5))/2);function M(){return 0}function $(e){return function(){return e}}function L(){var e=A,t=!1,r=1,n=1,a=[0],i=M,s=M,o=M,l=M,c=M;function h(e){return e.x0=e.y0=0,e.x1=r,e.y1=n,e.eachBefore(u),a=[0],t&&e.eachBefore(S),e}function u(t){var r=a[t.depth],n=t.x0+r,h=t.y0+r,u=t.x1-r,d=t.y1-r;u<n&&(n=u=(n+u)/2),d<h&&(h=d=(h+d)/2),t.x0=n,t.y0=h,t.x1=u,t.y1=d,t.children&&(r=a[t.depth+1]=i(t)/2,n+=c(t)-r,h+=s(t)-r,u-=o(t)-r,d-=l(t)-r,u<n&&(n=u=(n+u)/2),d<h&&(h=d=(h+d)/2),e(t,n,h,u,d))}return h.round=function(e){return arguments.length?(t=!!e,h):t},h.size=function(e){return arguments.length?(r=+e[0],n=+e[1],h):[r,n]},h.tile=function(t){return arguments.length?(e=function(e){if("function"!=typeof e)throw Error();return e}(t),h):e},h.padding=function(e){return arguments.length?h.paddingInner(e).paddingOuter(e):h.paddingInner()},h.paddingInner=function(e){return arguments.length?(i="function"==typeof e?e:$(+e),h):i},h.paddingOuter=function(e){return arguments.length?h.paddingTop(e).paddingRight(e).paddingBottom(e).paddingLeft(e):h.paddingTop()},h.paddingTop=function(e){return arguments.length?(s="function"==typeof e?e:$(+e),h):s},h.paddingRight=function(e){return arguments.length?(o="function"==typeof e?e:$(+e),h):o},h.paddingBottom=function(e){return arguments.length?(l="function"==typeof e?e:$(+e),h):l},h.paddingLeft=function(e){return arguments.length?(c="function"==typeof e?e:$(+e),h):c},h}var O=r(52866),E=r(98712);let C=Math.PI/180,T=180/Math.PI,R=4/29,K=6/29,I=6/29*3*(6/29),j=6/29*(6/29)*(6/29);function P(e){if(e instanceof N)return new N(e.l,e.a,e.b,e.opacity);if(e instanceof q)return Y(e);e instanceof E.Gw||(e=(0,E.b)(e));var t,r,n=B(e.r),a=B(e.g),i=B(e.b),s=D((.2225045*n+.7168786*a+.0606169*i)/1);return n===a&&a===i?t=r=s:(t=D((.4360747*n+.3850649*a+.1430804*i)/.96422),r=D((.0139322*n+.0971045*a+.7141733*i)/.82521)),new N(116*s-16,500*(t-s),200*(s-r),e.opacity)}function N(e,t,r,n){this.l=+e,this.a=+t,this.b=+r,this.opacity=+n}function D(e){return e>j?Math.pow(e,1/3):e/I+R}function F(e){return e>K?e*e*e:I*(e-R)}function z(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function B(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function W(e,t,r,n){return 1==arguments.length?function(e){if(e instanceof q)return new q(e.h,e.c,e.l,e.opacity);if(e instanceof N||(e=P(e)),0===e.a&&0===e.b)return new q(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*T;return new q(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new q(e,t,r,null==n?1:n)}function q(e,t,r,n){this.h=+e,this.c=+t,this.l=+r,this.opacity=+n}function Y(e){if(isNaN(e.h))return new N(e.l,0,0,e.opacity);var t=e.h*C;return new N(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}(0,O.A)(N,function(e,t,r,n){return 1==arguments.length?P(e):new N(e,t,r,null==n?1:n)},(0,O.X)(E.Q1,{brighter(e){return new N(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new N(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,r=isNaN(this.b)?e:e-this.b/200;return t=.96422*F(t),e=+F(e),r=.82521*F(r),new E.Gw(z(3.1338561*t-1.6168667*e-.4906146*r),z(-.9787684*t+1.9161415*e+.033454*r),z(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}})),(0,O.A)(q,W,(0,O.X)(E.Q1,{brighter(e){return new q(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new q(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return Y(this).rgb()}}));var U=r(11480);function H(e){return function(t,r){var n=e((t=W(t)).h,(r=W(r)).h),a=(0,U.Ay)(t.c,r.c),i=(0,U.Ay)(t.l,r.l),s=(0,U.Ay)(t.opacity,r.opacity);return function(e){return t.h=n(e),t.c=a(e),t.l=i(e),t.opacity=s(e),t+""}}}let X=H(U.lG);H(U.Ay);var G=r(96456);let Z=function(e){for(var t=e.length/6|0,r=Array(t),n=0;n<t;)r[n]="#"+e.slice(6*n,6*++n);return r}("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab");var V=r(34456),Q=r(82730),J=r(70120),ee=r(32819);function et(e){return e.innerRadius}function er(e){return e.outerRadius}function en(e){return e.startAngle}function ea(e){return e.endAngle}function ei(e){return e&&e.padAngle}function es(e,t,r,n,a,i,s){var o=e-r,l=t-n,c=(s?i:-i)/(0,J.RZ)(o*o+l*l),h=c*l,u=-c*o,d=e+h,p=t+u,f=r+h,g=n+u,m=(d+f)/2,y=(p+g)/2,b=f-d,k=g-p,x=b*b+k*k,w=a-i,v=d*g-f*p,_=(k<0?-1:1)*(0,J.RZ)((0,J.T9)(0,w*w*x-v*v)),S=(v*k-b*_)/x,A=(-v*b-k*_)/x,M=(v*k+b*_)/x,$=(-v*b+k*_)/x,L=S-m,O=A-y,E=M-m,C=$-y;return L*L+O*O>E*E+C*C&&(S=M,A=$),{cx:S,cy:A,x01:-h,y01:-u,x11:S*(a/w-1),y11:A*(a/w-1)}}function eo(){var e=et,t=er,r=(0,Q.A)(0),n=null,a=en,i=ea,s=ei,o=null,l=(0,ee.i)(c);function c(){var c,h,u=+e.apply(this,arguments),d=+t.apply(this,arguments),p=a.apply(this,arguments)-J.TW,f=i.apply(this,arguments)-J.TW,g=(0,J.tn)(f-p),m=f>p;if(o||(o=c=l()),d<u&&(h=d,d=u,u=h),d>J.Ni)if(g>J.FA-J.Ni)o.moveTo(d*(0,J.gn)(p),d*(0,J.F8)(p)),o.arc(0,0,d,p,f,!m),u>J.Ni&&(o.moveTo(u*(0,J.gn)(f),u*(0,J.F8)(f)),o.arc(0,0,u,f,p,m));else{var y,b,k=p,x=f,w=p,v=f,_=g,S=g,A=s.apply(this,arguments)/2,M=A>J.Ni&&(n?+n.apply(this,arguments):(0,J.RZ)(u*u+d*d)),$=(0,J.jk)((0,J.tn)(d-u)/2,+r.apply(this,arguments)),L=$,O=$;if(M>J.Ni){var E=(0,J.qR)(M/u*(0,J.F8)(A)),C=(0,J.qR)(M/d*(0,J.F8)(A));(_-=2*E)>J.Ni?(E*=m?1:-1,w+=E,v-=E):(_=0,w=v=(p+f)/2),(S-=2*C)>J.Ni?(C*=m?1:-1,k+=C,x-=C):(S=0,k=x=(p+f)/2)}var T=d*(0,J.gn)(k),R=d*(0,J.F8)(k),K=u*(0,J.gn)(v),I=u*(0,J.F8)(v);if($>J.Ni){var j,P=d*(0,J.gn)(x),N=d*(0,J.F8)(x),D=u*(0,J.gn)(w),F=u*(0,J.F8)(w);if(g<J.pi)if(j=function(e,t,r,n,a,i,s,o){var l=r-e,c=n-t,h=s-a,u=o-i,d=u*l-h*c;if(!(d*d<J.Ni))return d=(h*(t-i)-u*(e-a))/d,[e+d*l,t+d*c]}(T,R,D,F,P,N,K,I)){var z=T-j[0],B=R-j[1],W=P-j[0],q=N-j[1],Y=1/(0,J.F8)((0,J.HQ)((z*W+B*q)/((0,J.RZ)(z*z+B*B)*(0,J.RZ)(W*W+q*q)))/2),U=(0,J.RZ)(j[0]*j[0]+j[1]*j[1]);L=(0,J.jk)($,(u-U)/(Y-1)),O=(0,J.jk)($,(d-U)/(Y+1))}else L=O=0}S>J.Ni?O>J.Ni?(y=es(D,F,T,R,d,O,m),b=es(P,N,K,I,d,O,m),o.moveTo(y.cx+y.x01,y.cy+y.y01),O<$?o.arc(y.cx,y.cy,O,(0,J.FP)(y.y01,y.x01),(0,J.FP)(b.y01,b.x01),!m):(o.arc(y.cx,y.cy,O,(0,J.FP)(y.y01,y.x01),(0,J.FP)(y.y11,y.x11),!m),o.arc(0,0,d,(0,J.FP)(y.cy+y.y11,y.cx+y.x11),(0,J.FP)(b.cy+b.y11,b.cx+b.x11),!m),o.arc(b.cx,b.cy,O,(0,J.FP)(b.y11,b.x11),(0,J.FP)(b.y01,b.x01),!m))):(o.moveTo(T,R),o.arc(0,0,d,k,x,!m)):o.moveTo(T,R),u>J.Ni&&_>J.Ni?L>J.Ni?(y=es(K,I,P,N,u,-L,m),b=es(T,R,D,F,u,-L,m),o.lineTo(y.cx+y.x01,y.cy+y.y01),L<$?o.arc(y.cx,y.cy,L,(0,J.FP)(y.y01,y.x01),(0,J.FP)(b.y01,b.x01),!m):(o.arc(y.cx,y.cy,L,(0,J.FP)(y.y01,y.x01),(0,J.FP)(y.y11,y.x11),!m),o.arc(0,0,u,(0,J.FP)(y.cy+y.y11,y.cx+y.x11),(0,J.FP)(b.cy+b.y11,b.cx+b.x11),m),o.arc(b.cx,b.cy,L,(0,J.FP)(b.y11,b.x11),(0,J.FP)(b.y01,b.x01),!m))):o.arc(0,0,u,v,w,m):o.lineTo(K,I)}else o.moveTo(0,0);if(o.closePath(),c)return o=null,c+""||null}return c.centroid=function(){var r=(+e.apply(this,arguments)+ +t.apply(this,arguments))/2,n=(+a.apply(this,arguments)+ +i.apply(this,arguments))/2-J.pi/2;return[(0,J.gn)(n)*r,(0,J.F8)(n)*r]},c.innerRadius=function(t){return arguments.length?(e="function"==typeof t?t:(0,Q.A)(+t),c):e},c.outerRadius=function(e){return arguments.length?(t="function"==typeof e?e:(0,Q.A)(+e),c):t},c.cornerRadius=function(e){return arguments.length?(r="function"==typeof e?e:(0,Q.A)(+e),c):r},c.padRadius=function(e){return arguments.length?(n=null==e?null:"function"==typeof e?e:(0,Q.A)(+e),c):n},c.startAngle=function(e){return arguments.length?(a="function"==typeof e?e:(0,Q.A)(+e),c):a},c.endAngle=function(e){return arguments.length?(i="function"==typeof e?e:(0,Q.A)(+e),c):i},c.padAngle=function(e){return arguments.length?(s="function"==typeof e?e:(0,Q.A)(+e),c):s},c.context=function(e){return arguments.length?(o=null==e?null:e,c):o},c}var el=r(80700),ec=r(98047);function eh(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function eu(e){return e}function ed(){var e=eu,t=eh,r=null,n=(0,Q.A)(0),a=(0,Q.A)(J.FA),i=(0,Q.A)(0);function s(s){var o,l,c,h,u,d=(s=(0,ec.A)(s)).length,p=0,f=Array(d),g=Array(d),m=+n.apply(this,arguments),y=Math.min(J.FA,Math.max(-J.FA,a.apply(this,arguments)-m)),b=Math.min(Math.abs(y)/d,i.apply(this,arguments)),k=b*(y<0?-1:1);for(o=0;o<d;++o)(u=g[f[o]=o]=+e(s[o],o,s))>0&&(p+=u);for(null!=t?f.sort(function(e,r){return t(g[e],g[r])}):null!=r&&f.sort(function(e,t){return r(s[e],s[t])}),o=0,c=p?(y-d*k)/p:0;o<d;++o,m=h)h=m+((u=g[l=f[o]])>0?u*c:0)+k,g[l]={data:s[l],index:o,value:u,startAngle:m,endAngle:h,padAngle:b};return g}return s.value=function(t){return arguments.length?(e="function"==typeof t?t:(0,Q.A)(+t),s):e},s.sortValues=function(e){return arguments.length?(t=e,r=null,s):t},s.sort=function(e){return arguments.length?(r=e,t=null,s):r},s.startAngle=function(e){return arguments.length?(n="function"==typeof e?e:(0,Q.A)(+e),s):n},s.endAngle=function(e){return arguments.length?(a="function"==typeof e?e:(0,Q.A)(+e),s):a},s.padAngle=function(e){return arguments.length?(i="function"==typeof e?e:(0,Q.A)(+e),s):i},s}var ep=r(74800),ef=r(34180),eg=r(76828),em=r(9902);function ey(e,t){this._basis=new eg.xO(e),this._beta=t}ey.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 n,a=e[0],i=t[0],s=e[r]-a,o=t[r]-i,l=-1;++l<=r;)n=l/r,this._basis.point(this._beta*e[l]+(1-this._beta)*(a+n*s),this._beta*t[l]+(1-this._beta)*(i+n*o));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};let eb=function e(t){function r(e){return 1===t?new eg.xO(e):new ey(e,t)}return r.beta=function(t){return e(+t)},r}(.85);var ek=r(58638);function ex(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 ew(e,t){this._context=e,this._k=(1-t)/6}ew.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:ex(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e*=1,t*=1,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:ex(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};let ev=function e(t){function r(e){return new ew(e,t)}return r.tension=function(t){return e(+t)},r}(0);function e_(e,t){this._context=e,this._k=(1-t)/6}e_.prototype={areaStart:ek.A,areaEnd:ek.A,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)}},point:function(e,t){switch(e*=1,t*=1,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:ex(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};let eS=function e(t){function r(e){return new e_(e,t)}return r.tension=function(t){return e(+t)},r}(0);function eA(e,t){this._context=e,this._k=(1-t)/6}eA.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||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e*=1,t*=1,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:ex(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};let eM=function e(t){function r(e){return new eA(e,t)}return r.tension=function(t){return e(+t)},r}(0);function e$(e,t,r){var n=e._x1,a=e._y1,i=e._x2,s=e._y2;if(e._l01_a>J.Ni){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);n=(n*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>J.Ni){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);i=(i*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(n,a,i,s,e._x2,e._y2)}function eL(e,t){this._context=e,this._alpha=t}eL.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)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e*=1,t*=1,this._point){var r=this._x2-e,n=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+n*n,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:e$(this,e,t)}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}};let eO=function e(t){function r(e){return t?new eL(e,t):new ew(e,0)}return r.alpha=function(t){return e(+t)},r}(.5);function eE(e,t){this._context=e,this._alpha=t}eE.prototype={areaStart:ek.A,areaEnd:ek.A,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)}},point:function(e,t){if(e*=1,t*=1,this._point){var r=this._x2-e,n=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+n*n,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:e$(this,e,t)}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}};let eC=function e(t){function r(e){return t?new eE(e,t):new e_(e,0)}return r.alpha=function(t){return e(+t)},r}(.5);function eT(e,t){this._context=e,this._alpha=t}eT.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||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e*=1,t*=1,this._point){var r=this._x2-e,n=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+n*n,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:e$(this,e,t)}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}};let eR=function e(t){function r(e){return t?new eT(e,t):new eA(e,0)}return r.alpha=function(t){return e(+t)},r}(.5);var eK=r(90767),eI=r(57711),ej=r(12381),eP=r(31919),eN=r(73752),eD=r(10488),eF=r(4619),ez=r(14375),eB=r(48169),eW=r(36027),eq=r(85571),eY=r(77883),eU=r(71549);r(99838)},55612:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(50409),a=r(48861);let i=(e,t=100)=>{let r=n.A.parse(e);return r.r=255-r.r,r.g=255-r.g,r.b=255-r.b,((e,t,r=50)=>{let{r:i,g:s,b:o,a:l}=n.A.parse(e),{r:c,g:h,b:u,a:d}=n.A.parse(t),p=r/100,f=2*p-1,g=l-d,m=((f*g==-1?f:(f+g)/(1+f*g))+1)/2,y=1-m;return(0,a.A)(i*m+c*y,s*m+h*y,o*m+u*y,l*p+d*(1-p))})(r,e,t)}},55748:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(87156);let a=(e,t)=>(0,n.A)(e,"l",-t)},56194:(e,t,r)=>{"use strict";r.d(t,{W6:()=>e2,GZ:()=>e9,WY:()=>ez,pC:()=>eN,Gc:()=>eI});var n=r(50001),a=r(93913),i=r(85448);let s=(e,t)=>!!e&&!!((t&&""===e.prefix||e.prefix)&&e.name),o=Object.freeze({left:0,top:0,width:16,height:16}),l=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),c=Object.freeze({...o,...l}),h=Object.freeze({...c,body:"",hidden:!1});function u(e,t){let r,n,a=(r={},!e.hFlip!=!t.hFlip&&(r.hFlip=!0),!e.vFlip!=!t.vFlip&&(r.vFlip=!0),(n=((e.rotate||0)+(t.rotate||0))%4)&&(r.rotate=n),r);for(let r in h)r in l?r in e&&!(r in a)&&(a[r]=l[r]):r in t?a[r]=t[r]:r in e&&(a[r]=e[r]);return a}function d(e,t,r){let n=e.icons,a=e.aliases||Object.create(null),i={};function s(e){i=u(n[e]||a[e],i)}return s(t),r.forEach(s),u(e,i)}let p=Object.freeze({...Object.freeze({width:null,height:null}),...l}),f=/(-?[0-9.]*[0-9]+[0-9.]*)/g,g=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function m(e,t,r){if(1===t)return e;if(r=r||100,"number"==typeof e)return Math.ceil(e*t*r)/r;if("string"!=typeof e)return e;let n=e.split(f);if(null===n||!n.length)return e;let a=[],i=n.shift(),s=g.test(i);for(;;){if(s){let e=parseFloat(i);isNaN(e)?a.push(i):a.push(Math.ceil(e*t*r)/r)}else a.push(i);if(void 0===(i=n.shift()))return a.join("");s=!s}}let y=/\sid="(\S+)"/g,b=new Map;var k=r(51874);function x(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var w=x(),v={exec:()=>null};function _(e,t=""){let r="string"==typeof e?e:e.source,n={replace:(e,t)=>{let a="string"==typeof t?t:t.source;return a=a.replace(A.caret,"$1"),r=r.replace(e,a),n},getRegex:()=>new RegExp(r,t)};return n}var S=(()=>{try{return!!RegExp("(?<=1)(?<!1)")}catch{return!1}})(),A={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=>RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i")},M=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,$=/(?:[*+-]|\d{1,9}[.)])/,L=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,O=_(L).replace(/bull/g,$).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(),E=_(L).replace(/bull/g,$).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(),C=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,T=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,R=_(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",T).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),K=_(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,$).getRegex(),I="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",j=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,P=_("^ {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|/?>)[\\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",j).replace("tag",I).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),N=_(C).replace("hr",M).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",I).getRegex(),D={blockquote:_(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",N).getRegex(),code:/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,def:R,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hr:M,html:P,lheading:O,list:K,newline:/^(?:[ \t]*(?:\n|$))+/,paragraph:N,table:v,text:/^[^\n]+/},F=_("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",M).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",I).getRegex(),z={...D,lheading:E,table:F,paragraph:_(C).replace("hr",M).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",F).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",I).getRegex()},B={...D,html:_("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",j).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:v,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:_(C).replace("hr",M).replace("heading",` *#{1,6} *[^
]`).replace("lheading",O).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},W=/^( {2,}|\\)\n(?!\s*$)/,q=/[\p{P}\p{S}]/u,Y=/[\s\p{P}\p{S}]/u,U=/[^\s\p{P}\p{S}]/u,H=_(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,Y).getRegex(),X=/(?!~)[\p{P}\p{S}]/u,G=_(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",S?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),Z=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,V=_(Z,"u").replace(/punct/g,q).getRegex(),Q=_(Z,"u").replace(/punct/g,X).getRegex(),J="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",ee=_(J,"gu").replace(/notPunctSpace/g,U).replace(/punctSpace/g,Y).replace(/punct/g,q).getRegex(),et=_(J,"gu").replace(/notPunctSpace/g,/(?:[^\s\p{P}\p{S}]|~)/u).replace(/punctSpace/g,/(?!~)[\s\p{P}\p{S}]/u).replace(/punct/g,X).getRegex(),er=_("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,U).replace(/punctSpace/g,Y).replace(/punct/g,q).getRegex(),en=_(/\\(punct)/,"gu").replace(/punct/g,q).getRegex(),ea=_(/^<(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(),ei=_(j).replace("(?:--\x3e|$)","--\x3e").getRegex(),es=_("^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",ei).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),eo=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,el=_(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",eo).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),ec=_(/^!?\[(label)\]\[(ref)\]/).replace("label",eo).replace("ref",T).getRegex(),eh=_(/^!?\[(ref)\](?:\[\])?/).replace("ref",T).getRegex(),eu=_("reflink|nolink(?!\\()","g").replace("reflink",ec).replace("nolink",eh).getRegex(),ed=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,ep={_backpedal:v,anyPunctuation:en,autolink:ea,blockSkip:G,br:W,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,del:v,emStrongLDelim:V,emStrongRDelimAst:ee,emStrongRDelimUnd:er,escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,link:el,nolink:eh,punctuation:H,reflink:ec,reflinkSearch:eu,tag:es,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,url:v},ef={...ep,link:_(/^!?\[(label)\]\((.*?)\)/).replace("label",eo).getRegex(),reflink:_(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",eo).getRegex()},eg={...ep,emStrongRDelimAst:et,emStrongLDelim:Q,url:_(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",ed).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:_(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",ed).getRegex()},em={...eg,br:_(W).replace("{2,}","*").getRegex(),text:_(eg.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},ey={normal:D,gfm:z,pedantic:B},eb={normal:ep,gfm:eg,breaks:em,pedantic:ef},ek={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},ex=e=>ek[e];function ew(e,t){if(t){if(A.escapeTest.test(e))return e.replace(A.escapeReplace,ex)}else if(A.escapeTestNoEncode.test(e))return e.replace(A.escapeReplaceNoEncode,ex);return e}function ev(e){try{e=encodeURI(e).replace(A.percentDecode,"%")}catch{return null}return e}function e_(e,t){let r=e.replace(A.findPipe,(e,t,r)=>{let n=!1,a=t;for(;--a>=0&&"\\"===r[a];)n=!n;return n?"|":" |"}).split(A.splitPipe),n=0;if(r[0].trim()||r.shift(),r.length>0&&!r.at(-1)?.trim()&&r.pop(),t)if(r.length>t)r.splice(t);else for(;r.length<t;)r.push("");for(;n<r.length;n++)r[n]=r[n].trim().replace(A.slashPipe,"|");return r}function eS(e,t,r){let n=e.length;if(0===n)return"";let a=0;for(;a<n;){let i=e.charAt(n-a-1);if(i!==t||r)if(i!==t&&r)a++;else break;else a++}return e.slice(0,n-a)}function eA(e,t,r,n,a){let i=t.href,s=t.title||null,o=e[1].replace(a.other.outputLinkReplace,"$1");n.state.inLink=!0;let l={type:"!"===e[0].charAt(0)?"image":"link",raw:r,href:i,title:s,text:o,tokens:n.inlineTokens(o)};return n.state.inLink=!1,l}var eM=class{options;rules;lexer;constructor(e){this.options=e||w}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let e=t[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?e:eS(e,`
`)}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let e=t[0],r=function(e,t,r){let n=e.match(r.other.indentCodeCompensation);if(null===n)return t;let a=n[1];return t.split(`
`).map(e=>{let t=e.match(r.other.beginningSpace);if(null===t)return e;let[n]=t;return n.length>=a.length?e.slice(a.length):e}).join(`
`)}(e,t[3]||"",this.rules);return{type:"code",raw:e,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:r}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(this.rules.other.endingHash.test(e)){let t=eS(e,"#");(this.options.pedantic||!t||this.rules.other.endingSpaceChar.test(t))&&(e=t.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:eS(t[0],`
`)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let e=eS(t[0],`
`).split(`
`),r="",n="",a=[];for(;e.length>0;){let t=!1,i=[],s;for(s=0;s<e.length;s++)if(this.rules.other.blockquoteStart.test(e[s]))i.push(e[s]),t=!0;else if(t)break;else i.push(e[s]);e=e.slice(s);let o=i.join(`
`),l=o.replace(this.rules.other.blockquoteSetextReplace,`
$1`).replace(this.rules.other.blockquoteSetextReplace2,"");r=r?`${r}
${o}`:o,n=n?`${n}
${l}`:l;let c=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(l,a,!0),this.lexer.state.top=c,0===e.length)break;let h=a.at(-1);if(h?.type==="code")break;if(h?.type==="blockquote"){let t=h.raw+`
`+e.join(`
`),i=this.blockquote(t);a[a.length-1]=i,r=r.substring(0,r.length-h.raw.length)+i.raw,n=n.substring(0,n.length-h.text.length)+i.text;break}if(h?.type==="list"){let t=h.raw+`
`+e.join(`
`),i=this.list(t);a[a.length-1]=i,r=r.substring(0,r.length-h.raw.length)+i.raw,n=n.substring(0,n.length-h.raw.length)+i.raw,e=t.substring(a.at(-1).raw.length).split(`
`);continue}}return{type:"blockquote",raw:r,tokens:a,text:n}}}list(e){let t=this.rules.block.list.exec(e);if(t){let r=t[1].trim(),n=r.length>1,a={type:"list",raw:"",ordered:n,start:n?+r.slice(0,-1):"",loose:!1,items:[]};r=n?`\\d{1,9}\\${r.slice(-1)}`:`\\${r}`,this.options.pedantic&&(r=n?r:"[*+-]");let i=this.rules.other.listItemRegex(r),s=!1;for(;e;){let r=!1,n="",o="";if(!(t=i.exec(e))||this.rules.block.hr.test(e))break;n=t[0],e=e.substring(n.length);let l=t[2].split(`
`,1)[0].replace(this.rules.other.listReplaceTabs,e=>" ".repeat(3*e.length)),c=e.split(`
`,1)[0],h=!l.trim(),u=0;if(this.options.pedantic?(u=2,o=l.trimStart()):h?u=t[1].length+1:(u=(u=t[2].search(this.rules.other.nonSpaceChar))>4?1:u,o=l.slice(u),u+=t[1].length),h&&this.rules.other.blankLine.test(c)&&(n+=c+`
`,e=e.substring(c.length+1),r=!0),!r){let t=this.rules.other.nextBulletRegex(u),r=this.rules.other.hrRegex(u),a=this.rules.other.fencesBeginRegex(u),i=this.rules.other.headingBeginRegex(u),s=this.rules.other.htmlBeginRegex(u);for(;e;){let d=e.split(`
`,1)[0],p;if(c=d,p=this.options.pedantic?c=c.replace(this.rules.other.listReplaceNesting," "):c.replace(this.rules.other.tabCharGlobal," "),a.test(c)||i.test(c)||s.test(c)||t.test(c)||r.test(c))break;if(p.search(this.rules.other.nonSpaceChar)>=u||!c.trim())o+=`
`+p.slice(u);else{if(h||l.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||a.test(l)||i.test(l)||r.test(l))break;o+=`
`+c}h||c.trim()||(h=!0),n+=d+`
`,e=e.substring(d.length+1),l=p.slice(u)}}a.loose||(s?a.loose=!0:this.rules.other.doubleBlankLine.test(n)&&(s=!0));let d=null,p;this.options.gfm&&(d=this.rules.other.listIsTask.exec(o))&&(p="[ ] "!==d[0],o=o.replace(this.rules.other.listReplaceTask,"")),a.items.push({type:"list_item",raw:n,task:!!d,checked:p,loose:!1,text:o,tokens:[]}),a.raw+=n}let o=a.items.at(-1);if(!o)return;o.raw=o.raw.trimEnd(),o.text=o.text.trimEnd(),a.raw=a.raw.trimEnd();for(let e=0;e<a.items.length;e++)if(this.lexer.state.top=!1,a.items[e].tokens=this.lexer.blockTokens(a.items[e].text,[]),!a.loose){let t=a.items[e].tokens.filter(e=>"space"===e.type);a.loose=t.length>0&&t.some(e=>this.rules.other.anyLine.test(e.raw))}if(a.loose)for(let e=0;e<a.items.length;e++)a.items[e].loose=!0;return a}}html(e){let t=this.rules.block.html.exec(e);if(t)return{type:"html",block:!0,raw:t[0],pre:"pre"===t[1]||"script"===t[1]||"style"===t[1],text:t[0]}}def(e){let t=this.rules.block.def.exec(e);if(t){let e=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),r=t[2]?t[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",n=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:e,raw:t[0],href:r,title:n}}}table(e){let t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;let r=e_(t[1]),n=t[2].replace(this.rules.other.tableAlignChars,"").split("|"),a=t[3]?.trim()?t[3].replace(this.rules.other.tableRowBlankLine,"").split(`
`):[],i={type:"table",raw:t[0],header:[],align:[],rows:[]};if(r.length===n.length){for(let e of n)this.rules.other.tableAlignRight.test(e)?i.align.push("right"):this.rules.other.tableAlignCenter.test(e)?i.align.push("center"):this.rules.other.tableAlignLeft.test(e)?i.align.push("left"):i.align.push(null);for(let e=0;e<r.length;e++)i.header.push({text:r[e],tokens:this.lexer.inline(r[e]),header:!0,align:i.align[e]});for(let e of a)i.rows.push(e_(e,i.header.length).map((e,t)=>({text:e,tokens:this.lexer.inline(e),header:!1,align:i.align[t]})));return i}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:"="===t[2].charAt(0)?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let e=t[1].charAt(t[1].length-1)===`
`?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:e,tokens:this.lexer.inline(e)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let e=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(e)){if(!this.rules.other.endAngleBracket.test(e))return;let t=eS(e.slice(0,-1),"\\");if((e.length-t.length)%2==0)return}else{let e=function(e){if(-1===e.indexOf(")"))return -1;let t=0;for(let r=0;r<e.length;r++)if("\\"===e[r])r++;else if("("===e[r])t++;else if(")"===e[r]&&--t<0)return r;return t>0?-2:-1}(t[2]);if(-2===e)return;if(e>-1){let r=(0===t[0].indexOf("!")?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,r).trim(),t[3]=""}}let r=t[2],n="";if(this.options.pedantic){let e=this.rules.other.pedanticHrefTitle.exec(r);e&&(r=e[1],n=e[3])}else n=t[3]?t[3].slice(1,-1):"";return r=r.trim(),this.rules.other.startAngleBracket.test(r)&&(r=this.options.pedantic&&!this.rules.other.endAngleBracket.test(e)?r.slice(1):r.slice(1,-1)),eA(t,{href:r&&r.replace(this.rules.inline.anyPunctuation,"$1"),title:n&&n.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer,this.rules)}}reflink(e,t){let r;if((r=this.rules.inline.reflink.exec(e))||(r=this.rules.inline.nolink.exec(e))){let e=t[(r[2]||r[1]).replace(this.rules.other.multipleSpaceGlobal," ").toLowerCase()];if(!e){let e=r[0].charAt(0);return{type:"text",raw:e,text:e}}return eA(r,e,r[0],this.lexer,this.rules)}}emStrong(e,t,r=""){let n=this.rules.inline.emStrongLDelim.exec(e);if(!(!n||n[3]&&r.match(this.rules.other.unicodeAlphaNumeric))&&(!(n[1]||n[2])||!r||this.rules.inline.punctuation.exec(r))){let r=[...n[0]].length-1,a,i,s=r,o=0,l="*"===n[0][0]?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(l.lastIndex=0,t=t.slice(-1*e.length+r);null!=(n=l.exec(t));){if(!(a=n[1]||n[2]||n[3]||n[4]||n[5]||n[6]))continue;if(i=[...a].length,n[3]||n[4]){s+=i;continue}if((n[5]||n[6])&&r%3&&!((r+i)%3)){o+=i;continue}if((s-=i)>0)continue;i=Math.min(i,i+s+o);let t=[...n[0]][0].length,l=e.slice(0,r+n.index+t+i);if(Math.min(r,i)%2){let e=l.slice(1,-1);return{type:"em",raw:l,text:e,tokens:this.lexer.inlineTokens(e)}}let c=l.slice(2,-2);return{type:"strong",raw:l,text:c,tokens:this.lexer.inlineTokens(c)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(this.rules.other.newLineCharGlobal," "),r=this.rules.other.nonSpaceChar.test(e),n=this.rules.other.startingSpaceChar.test(e)&&this.rules.other.endingSpaceChar.test(e);return r&&n&&(e=e.substring(1,e.length-1)),{type:"codespan",raw:t[0],text:e}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){let t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let e,r;return r="@"===t[2]?"mailto:"+(e=t[1]):e=t[1],{type:"link",raw:t[0],text:e,href:r,tokens:[{type:"text",raw:e,text:e}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let e,r;if("@"===t[2])r="mailto:"+(e=t[0]);else{let n;do n=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??"";while(n!==t[0]);e=t[0],r="www."===t[1]?"http://"+t[0]:t[0]}return{type:"link",raw:t[0],text:e,href:r,tokens:[{type:"text",raw:e,text:e}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let e=this.lexer.state.inRawBlock;return{type:"text",raw:t[0],text:t[0],escaped:e}}}},e$=class e{tokens;options;state;tokenizer;inlineQueue;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||w,this.options.tokenizer=this.options.tokenizer||new eM,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 t={other:A,block:ey.normal,inline:eb.normal};this.options.pedantic?(t.block=ey.pedantic,t.inline=eb.pedantic):this.options.gfm&&(t.block=ey.gfm,this.options.breaks?t.inline=eb.breaks:t.inline=eb.gfm),this.tokenizer.rules=t}static get rules(){return{block:ey,inline:eb}}static lex(t,r){return new e(r).lex(t)}static lexInline(t,r){return new e(r).inlineTokens(t)}lex(e){e=e.replace(A.carriageReturn,`
`),this.blockTokens(e,this.tokens);for(let e=0;e<this.inlineQueue.length;e++){let t=this.inlineQueue[e];this.inlineTokens(t.src,t.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,t=[],r=!1){for(this.options.pedantic&&(e=e.replace(A.tabCharGlobal," ").replace(A.spaceLine,""));e;){let n;if(this.options.extensions?.block?.some(r=>!!(n=r.call({lexer:this},e,t))&&(e=e.substring(n.raw.length),t.push(n),!0)))continue;if(n=this.tokenizer.space(e)){e=e.substring(n.raw.length);let r=t.at(-1);1===n.raw.length&&void 0!==r?r.raw+=`
`:t.push(n);continue}if(n=this.tokenizer.code(e)){e=e.substring(n.raw.length);let r=t.at(-1);r?.type==="paragraph"||r?.type==="text"?(r.raw+=(r.raw.endsWith(`
`)?"":`
`)+n.raw,r.text+=`
`+n.text,this.inlineQueue.at(-1).src=r.text):t.push(n);continue}if((n=this.tokenizer.fences(e))||(n=this.tokenizer.heading(e))||(n=this.tokenizer.hr(e))||(n=this.tokenizer.blockquote(e))||(n=this.tokenizer.list(e))||(n=this.tokenizer.html(e))){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.def(e)){e=e.substring(n.raw.length);let r=t.at(-1);r?.type==="paragraph"||r?.type==="text"?(r.raw+=(r.raw.endsWith(`
`)?"":`
`)+n.raw,r.text+=`
`+n.raw,this.inlineQueue.at(-1).src=r.text):this.tokens.links[n.tag]||(this.tokens.links[n.tag]={href:n.href,title:n.title},t.push(n));continue}if((n=this.tokenizer.table(e))||(n=this.tokenizer.lheading(e))){e=e.substring(n.raw.length),t.push(n);continue}let a=e;if(this.options.extensions?.startBlock){let t=1/0,r=e.slice(1),n;this.options.extensions.startBlock.forEach(e=>{"number"==typeof(n=e.call({lexer:this},r))&&n>=0&&(t=Math.min(t,n))}),t<1/0&&t>=0&&(a=e.substring(0,t+1))}if(this.state.top&&(n=this.tokenizer.paragraph(a))){let i=t.at(-1);r&&i?.type==="paragraph"?(i.raw+=(i.raw.endsWith(`
`)?"":`
`)+n.raw,i.text+=`
`+n.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=i.text):t.push(n),r=a.length!==e.length,e=e.substring(n.raw.length);continue}if(n=this.tokenizer.text(e)){e=e.substring(n.raw.length);let r=t.at(-1);r?.type==="text"?(r.raw+=(r.raw.endsWith(`
`)?"":`
`)+n.raw,r.text+=`
`+n.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=r.text):t.push(n);continue}if(e){let t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw Error(t)}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){let r,n=e,a=null;if(this.tokens.links){let e=Object.keys(this.tokens.links);if(e.length>0)for(;null!=(a=this.tokenizer.rules.inline.reflinkSearch.exec(n));)e.includes(a[0].slice(a[0].lastIndexOf("[")+1,-1))&&(n=n.slice(0,a.index)+"["+"a".repeat(a[0].length-2)+"]"+n.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(a=this.tokenizer.rules.inline.anyPunctuation.exec(n));)n=n.slice(0,a.index)+"++"+n.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;null!=(a=this.tokenizer.rules.inline.blockSkip.exec(n));)r=a[2]?a[2].length:0,n=n.slice(0,a.index+r)+"["+"a".repeat(a[0].length-r-2)+"]"+n.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);n=this.options.hooks?.emStrongMask?.call({lexer:this},n)??n;let i=!1,s="";for(;e;){let r;if(i||(s=""),i=!1,this.options.extensions?.inline?.some(n=>!!(r=n.call({lexer:this},e,t))&&(e=e.substring(r.raw.length),t.push(r),!0)))continue;if((r=this.tokenizer.escape(e))||(r=this.tokenizer.tag(e))||(r=this.tokenizer.link(e))){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(r.raw.length);let n=t.at(-1);"text"===r.type&&n?.type==="text"?(n.raw+=r.raw,n.text+=r.text):t.push(r);continue}if((r=this.tokenizer.emStrong(e,n,s))||(r=this.tokenizer.codespan(e))||(r=this.tokenizer.br(e))||(r=this.tokenizer.del(e))||(r=this.tokenizer.autolink(e))||!this.state.inLink&&(r=this.tokenizer.url(e))){e=e.substring(r.raw.length),t.push(r);continue}let a=e;if(this.options.extensions?.startInline){let t=1/0,r=e.slice(1),n;this.options.extensions.startInline.forEach(e=>{"number"==typeof(n=e.call({lexer:this},r))&&n>=0&&(t=Math.min(t,n))}),t<1/0&&t>=0&&(a=e.substring(0,t+1))}if(r=this.tokenizer.inlineText(a)){e=e.substring(r.raw.length),"_"!==r.raw.slice(-1)&&(s=r.raw.slice(-1)),i=!0;let n=t.at(-1);n?.type==="text"?(n.raw+=r.raw,n.text+=r.text):t.push(r);continue}if(e){let t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw Error(t)}}return t}},eL=class{options;parser;constructor(e){this.options=e||w}space(e){return""}code({text:e,lang:t,escaped:r}){let n=(t||"").match(A.notSpaceStart)?.[0],a=e.replace(A.endingNewline,"")+`
`;return n?'<pre><code class="language-'+ew(n)+'">'+(r?a:ew(a,!0))+`</code></pre>
`:"<pre><code>"+(r?a:ew(a,!0))+`</code></pre>
`}blockquote({tokens:e}){return`<blockquote>
${this.parser.parse(e)}</blockquote>
`}html({text:e}){return e}def(e){return""}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>
`}hr(e){return`<hr>
`}list(e){let t=e.ordered,r=e.start,n="";for(let t=0;t<e.items.length;t++){let r=e.items[t];n+=this.listitem(r)}let a=t?"ol":"ul";return"<"+a+(t&&1!==r?' start="'+r+'"':"")+`>
`+n+"</"+a+`>
`}listitem(e){let t="";if(e.task){let r=this.checkbox({checked:!!e.checked});e.loose?e.tokens[0]?.type==="paragraph"?(e.tokens[0].text=r+" "+e.tokens[0].text,e.tokens[0].tokens&&e.tokens[0].tokens.length>0&&"text"===e.tokens[0].tokens[0].type&&(e.tokens[0].tokens[0].text=r+" "+ew(e.tokens[0].tokens[0].text),e.tokens[0].tokens[0].escaped=!0)):e.tokens.unshift({type:"text",raw:r+" ",text:r+" ",escaped:!0}):t+=r+" "}return t+=this.parser.parse(e.tokens,!!e.loose),`<li>${t}</li>
`}checkbox({checked:e}){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>
`}table(e){let t="",r="";for(let t=0;t<e.header.length;t++)r+=this.tablecell(e.header[t]);t+=this.tablerow({text:r});let n="";for(let t=0;t<e.rows.length;t++){let a=e.rows[t];r="";for(let e=0;e<a.length;e++)r+=this.tablecell(a[e]);n+=this.tablerow({text:r})}return n&&(n=`<tbody>${n}</tbody>`),`<table>
<thead>
`+t+`</thead>
`+n+`</table>
`}tablerow({text:e}){return`<tr>
${e}</tr>
`}tablecell(e){let t=this.parser.parseInline(e.tokens),r=e.header?"th":"td";return(e.align?`<${r} align="${e.align}">`:`<${r}>`)+t+`</${r}>
`}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${ew(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:r}){let n=this.parser.parseInline(r),a=ev(e);if(null===a)return n;let i='<a href="'+(e=a)+'"';return t&&(i+=' title="'+ew(t)+'"'),i+=">"+n+"</a>"}image({href:e,title:t,text:r,tokens:n}){n&&(r=this.parser.parseInline(n,this.parser.textRenderer));let a=ev(e);if(null===a)return ew(r);e=a;let i=`<img src="${e}" alt="${r}"`;return t&&(i+=` title="${ew(t)}"`),i+=">"}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:ew(e.text)}},eO=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}},eE=class e{options;renderer;textRenderer;constructor(e){this.options=e||w,this.options.renderer=this.options.renderer||new eL,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new eO}static parse(t,r){return new e(r).parse(t)}static parseInline(t,r){return new e(r).parseInline(t)}parse(e,t=!0){let r="";for(let n=0;n<e.length;n++){let a=e[n];if(this.options.extensions?.renderers?.[a.type]){let e=this.options.extensions.renderers[a.type].call({parser:this},a);if(!1!==e||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(a.type)){r+=e||"";continue}}switch(a.type){case"space":r+=this.renderer.space(a);continue;case"hr":r+=this.renderer.hr(a);continue;case"heading":r+=this.renderer.heading(a);continue;case"code":r+=this.renderer.code(a);continue;case"table":r+=this.renderer.table(a);continue;case"blockquote":r+=this.renderer.blockquote(a);continue;case"list":r+=this.renderer.list(a);continue;case"html":r+=this.renderer.html(a);continue;case"def":r+=this.renderer.def(a);continue;case"paragraph":r+=this.renderer.paragraph(a);continue;case"text":{let i=a,s=this.renderer.text(i);for(;n+1<e.length&&"text"===e[n+1].type;)i=e[++n],s+=`
`+this.renderer.text(i);t?r+=this.renderer.paragraph({type:"paragraph",raw:s,text:s,tokens:[{type:"text",raw:s,text:s,escaped:!0}]}):r+=s;continue}default:{let e='Token with "'+a.type+'" type was not found.';if(this.options.silent)return console.error(e),"";throw Error(e)}}}return r}parseInline(e,t=this.renderer){let r="";for(let n=0;n<e.length;n++){let a=e[n];if(this.options.extensions?.renderers?.[a.type]){let e=this.options.extensions.renderers[a.type].call({parser:this},a);if(!1!==e||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(a.type)){r+=e||"";continue}}switch(a.type){case"escape":case"text":r+=t.text(a);break;case"html":r+=t.html(a);break;case"link":r+=t.link(a);break;case"image":r+=t.image(a);break;case"strong":r+=t.strong(a);break;case"em":r+=t.em(a);break;case"codespan":r+=t.codespan(a);break;case"br":r+=t.br(a);break;case"del":r+=t.del(a);break;default:{let e='Token with "'+a.type+'" type was not found.';if(this.options.silent)return console.error(e),"";throw Error(e)}}}return r}},eC=class{options;block;constructor(e){this.options=e||w}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(){return this.block?e$.lex:e$.lexInline}provideParser(){return this.block?eE.parse:eE.parseInline}},eT=new class{defaults=x();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=eE;Renderer=eL;TextRenderer=eO;Lexer=e$;Tokenizer=eM;Hooks=eC;constructor(...e){this.use(...e)}walkTokens(e,t){let r=[];for(let n of e)switch(r=r.concat(t.call(this,n)),n.type){case"table":for(let e of n.header)r=r.concat(this.walkTokens(e.tokens,t));for(let e of n.rows)for(let n of e)r=r.concat(this.walkTokens(n.tokens,t));break;case"list":r=r.concat(this.walkTokens(n.items,t));break;default:{let e=n;this.defaults.extensions?.childTokens?.[e.type]?this.defaults.extensions.childTokens[e.type].forEach(n=>{let a=e[n].flat(1/0);r=r.concat(this.walkTokens(a,t))}):e.tokens&&(r=r.concat(this.walkTokens(e.tokens,t)))}}return r}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(e=>{let r={...e};if(r.async=this.defaults.async||r.async||!1,e.extensions&&(e.extensions.forEach(e=>{if(!e.name)throw Error("extension name required");if("renderer"in e){let r=t.renderers[e.name];r?t.renderers[e.name]=function(...t){let n=e.renderer.apply(this,t);return!1===n&&(n=r.apply(this,t)),n}:t.renderers[e.name]=e.renderer}if("tokenizer"in e){if(!e.level||"block"!==e.level&&"inline"!==e.level)throw Error("extension level must be 'block' or 'inline'");let r=t[e.level];r?r.unshift(e.tokenizer):t[e.level]=[e.tokenizer],e.start&&("block"===e.level?t.startBlock?t.startBlock.push(e.start):t.startBlock=[e.start]:"inline"===e.level&&(t.startInline?t.startInline.push(e.start):t.startInline=[e.start]))}"childTokens"in e&&e.childTokens&&(t.childTokens[e.name]=e.childTokens)}),r.extensions=t),e.renderer){let t=this.defaults.renderer||new eL(this.defaults);for(let r in e.renderer){if(!(r in t))throw Error(`renderer '${r}' does not exist`);if(["options","parser"].includes(r))continue;let n=e.renderer[r],a=t[r];t[r]=(...e)=>{let r=n.apply(t,e);return!1===r&&(r=a.apply(t,e)),r||""}}r.renderer=t}if(e.tokenizer){let t=this.defaults.tokenizer||new eM(this.defaults);for(let r in e.tokenizer){if(!(r in t))throw Error(`tokenizer '${r}' does not exist`);if(["options","rules","lexer"].includes(r))continue;let n=e.tokenizer[r],a=t[r];t[r]=(...e)=>{let r=n.apply(t,e);return!1===r&&(r=a.apply(t,e)),r}}r.tokenizer=t}if(e.hooks){let t=this.defaults.hooks||new eC;for(let r in e.hooks){if(!(r in t))throw Error(`hook '${r}' does not exist`);if(["options","block"].includes(r))continue;let n=e.hooks[r],a=t[r];eC.passThroughHooks.has(r)?t[r]=e=>{if(this.defaults.async&&eC.passThroughHooksRespectAsync.has(r))return(async()=>{let r=await n.call(t,e);return a.call(t,r)})();let i=n.call(t,e);return a.call(t,i)}:t[r]=(...e)=>{if(this.defaults.async)return(async()=>{let r=await n.apply(t,e);return!1===r&&(r=await a.apply(t,e)),r})();let r=n.apply(t,e);return!1===r&&(r=a.apply(t,e)),r}}r.hooks=t}if(e.walkTokens){let t=this.defaults.walkTokens,n=e.walkTokens;r.walkTokens=function(e){let r=[];return r.push(n.call(this,e)),t&&(r=r.concat(t.call(this,e))),r}}this.defaults={...this.defaults,...r}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return e$.lex(e,t??this.defaults)}parser(e,t){return eE.parse(e,t??this.defaults)}parseMarkdown(e){return(t,r)=>{let n={...r},a={...this.defaults,...n},i=this.onError(!!a.silent,!!a.async);if(!0===this.defaults.async&&!1===n.async)return i(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 t>"u"||null===t)return i(Error("marked(): input parameter is undefined or null"));if("string"!=typeof t)return i(Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected"));if(a.hooks&&(a.hooks.options=a,a.hooks.block=e),a.async)return(async()=>{let r=a.hooks?await a.hooks.preprocess(t):t,n=await (a.hooks?await a.hooks.provideLexer():e?e$.lex:e$.lexInline)(r,a),i=a.hooks?await a.hooks.processAllTokens(n):n;a.walkTokens&&await Promise.all(this.walkTokens(i,a.walkTokens));let s=await (a.hooks?await a.hooks.provideParser():e?eE.parse:eE.parseInline)(i,a);return a.hooks?await a.hooks.postprocess(s):s})().catch(i);try{a.hooks&&(t=a.hooks.preprocess(t));let r=(a.hooks?a.hooks.provideLexer():e?e$.lex:e$.lexInline)(t,a);a.hooks&&(r=a.hooks.processAllTokens(r)),a.walkTokens&&this.walkTokens(r,a.walkTokens);let n=(a.hooks?a.hooks.provideParser():e?eE.parse:eE.parseInline)(r,a);return a.hooks&&(n=a.hooks.postprocess(n)),n}catch(e){return i(e)}}}onError(e,t){return r=>{if(r.message+=`
Please report this to https://github.com/markedjs/marked.`,e){let e="<p>An error occurred:</p><pre>"+ew(r.message+"",!0)+"</pre>";return t?Promise.resolve(e):e}if(t)return Promise.reject(r);throw r}}};function eR(e,t){return eT.parse(e,t)}eR.options=eR.setOptions=function(e){return eT.setOptions(e),eR.defaults=eT.defaults,w=eR.defaults,eR},eR.getDefaults=x,eR.defaults=w,eR.use=function(...e){return eT.use(...e),eR.defaults=eT.defaults,w=eR.defaults,eR},eR.walkTokens=function(e,t){return eT.walkTokens(e,t)},eR.parseInline=eT.parseInline,eR.Parser=eE,eR.parser=eE.parse,eR.Renderer=eL,eR.TextRenderer=eO,eR.Lexer=e$,eR.lexer=e$.lex,eR.Tokenizer=eM,eR.Hooks=eC,eR.parse=eR,eR.options,eR.setOptions,eR.use,eR.walkTokens,eR.parseInline,eE.parse,e$.lex;var eK=r(9013),eI={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},ej=new Map,eP=new Map,eN=(0,i.K2)(e=>{for(let t of e){if(!t.name)throw Error('Invalid icon loader. Must have a "name" property with non-empty string value.');if(i.Rm.debug("Registering icon pack:",t.name),"loader"in t)eP.set(t.name,t.loader);else if("icons"in t)ej.set(t.name,t.icons);else throw i.Rm.error("Invalid icon loader:",t),Error('Invalid icon loader. Must have either "icons" or "loader" property.')}},"registerIconPacks"),eD=(0,i.K2)(async(e,t)=>{let r=((e,t,r,n="")=>{let a=e.split(":");if("@"===e.slice(0,1)){if(a.length<2||a.length>3)return null;n=a.shift().slice(1)}if(a.length>3||!a.length)return null;if(a.length>1){let e=a.pop(),r=a.pop(),i={provider:a.length>0?a[0]:n,prefix:r,name:e};return t&&!s(i)?null:i}let i=a[0],o=i.split("-");if(o.length>1){let e={provider:n,prefix:o.shift(),name:o.join("-")};return t&&!s(e)?null:e}if(r&&""===n){let e={provider:n,prefix:"",name:i};return t&&!s(e,r)?null:e}return null})(e,!0,void 0!==t);if(!r)throw Error(`Invalid icon name: ${e}`);let n=r.prefix||t;if(!n)throw Error(`Icon name must contain a prefix: ${e}`);let a=ej.get(n);if(!a){let e=eP.get(n);if(!e)throw Error(`Icon set not found: ${r.prefix}`);try{a={...await e(),prefix:n},ej.set(n,a)}catch(e){throw i.Rm.error(e),Error(`Failed to load icon set: ${r.prefix}`)}}let o=function(e,t){var r;let n,a,i;if(e.icons[t])return d(e,t,[]);let s=(r=[t],n=e.icons,a=e.aliases||Object.create(null),i=Object.create(null),(r||Object.keys(n).concat(Object.keys(a))).forEach(function e(t){if(n[t])return i[t]=[];if(!(t in i)){i[t]=null;let r=a[t]&&a[t].parent,n=r&&e(r);n&&(i[t]=[r].concat(n))}return i[t]}),i)[t];return s?d(e,t,s):null}(a,r.name);if(!o)throw Error(`Icon not found: ${e}`);return o},"getRegisteredIconData"),eF=(0,i.K2)(async e=>{try{return await eD(e),!0}catch{return!1}},"isIconAvailable"),ez=(0,i.K2)(async(e,t,r)=>{var n;let s,o,l,h,u,d,f,g,k,x,w,v,_,S;try{s=await eD(e,t?.fallbackPrefix)}catch(e){i.Rm.error(e),s=eI}let A=(n=s,h={...c,...n},u={...p,...t},d={left:h.left,top:h.top,width:h.width,height:h.height},f=h.body,[h,u].forEach(e=>{var t,r,n,a;let i,s,o=[],l=e.hFlip,c=e.vFlip,h=e.rotate;switch(l?c?h+=2:(o.push("translate("+(d.width+d.left).toString()+" "+(0-d.top).toString()+")"),o.push("scale(-1 1)"),d.top=d.left=0):c&&(o.push("translate("+(0-d.left).toString()+" "+(d.height+d.top).toString()+")"),o.push("scale(1 -1)"),d.top=d.left=0),h<0&&(h-=4*Math.floor(h/4)),h%=4){case 1:o.unshift("rotate(90 "+(i=d.height/2+d.top).toString()+" "+i.toString()+")");break;case 2:o.unshift("rotate(180 "+(d.width/2+d.left).toString()+" "+(d.height/2+d.top).toString()+")");break;case 3:o.unshift("rotate(-90 "+(i=d.width/2+d.left).toString()+" "+i.toString()+")")}h%2==1&&(d.left!==d.top&&(i=d.left,d.left=d.top,d.top=i),d.width!==d.height&&(i=d.width,d.width=d.height,d.height=i)),o.length&&(t=f,r='<g transform="'+o.join(" ")+'">',n=(s=function(e,t="defs"){let r="",n=e.indexOf("<"+t);for(;n>=0;){let a=e.indexOf(">",n),i=e.indexOf("</"+t);if(-1===a||-1===i)break;let s=e.indexOf(">",i);if(-1===s)break;r+=e.slice(a+1,i).trim(),e=e.slice(0,n).trim()+e.slice(s+1)}return{defs:r,content:e}}(t)).defs,a=r+s.content+"</g>",f=n?"<defs>"+n+"</defs>"+a:a)}),g=u.width,k=u.height,x=d.width,w=d.height,null===g?o=m(l=null===k?"1em":"auto"===k?w:k,x/w):(o="auto"===g?x:g,l=null===k?m(o,w/x):"auto"===k?w:k),v={},(_=(e,t)=>{"unset"!==t&&"undefined"!==t&&"none"!==t&&(v[e]=t.toString())})("width",o),_("height",l),v.viewBox=(S=[d.left,d.top,x,w]).join(" "),{attributes:v,viewBox:S,body:f}),M=function(e,t){let r=-1===e.indexOf("xlink:")?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(let e in t)r+=" "+e+'="'+t[e]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+r+">"+e+"</svg>"}(function(e){let t,r=[];for(;t=y.exec(e);)r.push(t[1]);if(!r.length)return e;let n="suffix"+(0x1000000*Math.random()|Date.now()).toString(16);return r.forEach(t=>{var r;let a,i=(r=(r=t).replace(/[0-9]+$/,"")||"a",a=b.get(r)||0,b.set(r,a+1),a?`${r}${a}`:r),s=t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(RegExp('([#;"])('+s+')([")]|\\.[a-z])',"g"),"$1"+i+n+"$3")}),e=e.replace(RegExp(n,"g"),"")}(A.body),{...A.attributes,...r});return(0,a.jZ)(M,(0,a.zj)())},"getIconSVG");function eB(e,{markdownAutoWrap:t}){let r=e.replace(/<br\/>/g,"\n").replace(/\n{2,}/g,"\n");return(0,eK.T)(r)}function eW(e){return e.split(/\\n|\n|<br\s*\/?>/gi).map(e=>e.trim().match(/<[^>]+>|[^\s<>]+/g)?.map(e=>({content:e,type:"normal"}))??[])}function eq(e,t={}){let r=eB(e,t),n=eR.lexer(r),a=[[]],s=0;function o(e,t="normal"){"text"===e.type?e.text.split("\n").forEach((e,r)=>{0!==r&&(s++,a.push([])),e.split(" ").forEach(e=>{(e=e.replace(/&#39;/g,"'"))&&a[s].push({content:e,type:t})})}):"strong"===e.type||"em"===e.type?e.tokens.forEach(t=>{o(t,e.type)}):"html"===e.type&&a[s].push({content:e.text,type:"normal"})}return(0,i.K2)(o,"processNode"),n.forEach(e=>{"paragraph"===e.type?e.tokens?.forEach(e=>{o(e)}):"html"===e.type?a[s].push({content:e.text,type:"normal"}):a[s].push({content:e.raw,type:"normal"})}),a}function eY(e){return e?`<p>${e.replace(/\\n|\n/g,"<br />")}</p>`:""}function eU(e,{markdownAutoWrap:t}={}){let r=eR.lexer(e);function n(e){if("text"===e.type)return!1===t?e.text.replace(/\n */g,"<br/>").replace(/ /g,"&nbsp;"):e.text.replace(/\n */g,"<br/>");if("strong"===e.type)return`<strong>${e.tokens?.map(n).join("")}</strong>`;if("em"===e.type)return`<em>${e.tokens?.map(n).join("")}</em>`;if("paragraph"===e.type)return`<p>${e.tokens?.map(n).join("")}</p>`;if("space"===e.type)return"";else if("html"===e.type)return`${e.text}`;else if("escape"===e.type)return e.text;return i.Rm.warn(`Unsupported markdown: ${e.type}`),e.raw}return(0,i.K2)(n,"output"),r.map(n).join("")}function eH(e){return Intl.Segmenter?[...new Intl.Segmenter().segment(e)].map(e=>e.segment):[...e]}function eX(e,t){return eG(e,[],eH(t.content),t.type)}function eG(e,t,r,n){if(0===r.length)return[{content:t.join(""),type:n},{content:"",type:n}];let[a,...i]=r,s=[...t,a];return e([{content:s.join(""),type:n}])?eG(e,s,i,n):(0===t.length&&a&&(t.push(a),r.shift()),[{content:t.join(""),type:n},{content:r.join(""),type:n}])}function eZ(e,t){if(e.some(({content:e})=>e.includes("\n")))throw Error("splitLineToFitWidth does not support newlines in the line");return eV(e,t)}function eV(e,t,r=[],n=[]){if(0===e.length)return n.length>0&&r.push(n),r.length>0?r:[];let a="";" "===e[0].content&&(a=" ",e.shift());let i=e.shift()??{content:" ",type:"normal"},s=[...n];if(""!==a&&s.push({content:a,type:"normal"}),s.push(i),t(s))return eV(e,t,r,s);if(n.length>0)r.push(n),e.unshift(i);else if(i.content){let[n,a]=eX(t,i);r.push([n]),a.content&&e.unshift(a)}return eV(e,t,r)}function eQ(e,t){t&&e.attr("style",t)}async function eJ(e,t,r,n,i=!1,s=(0,a.zj)()){let o=e.append("foreignObject");o.attr("width",`${Math.min(10*r,16384)}px`),o.attr("height",`${Math.min(10*r,16384)}px`);let l=o.append("xhtml:div"),c=(0,a.Wi)(t.label)?await (0,a.dj)(t.label.replace(a.Y2.lineBreakRegex,"\n"),s):(0,a.jZ)(t.label,s),h=t.isNode?"nodeLabel":"edgeLabel",u=l.append("span");u.html(c),eQ(u,t.labelStyle),u.attr("class",`${h} ${n}`),eQ(l,t.labelStyle),l.style("display","table-cell"),l.style("white-space","nowrap"),l.style("line-height","1.5"),r!==1/0&&(l.style("max-width",r+"px"),l.style("text-align","center")),l.attr("xmlns","http://www.w3.org/1999/xhtml"),i&&l.attr("class","labelBkg");let d=l.node().getBoundingClientRect();return d.width===r&&(l.style("display","table"),l.style("white-space","break-spaces"),l.style("width",r+"px"),d=l.node().getBoundingClientRect()),o.node()}function e0(e,t,r,n=!1){let a=e.append("tspan").attr("class","text-outer-tspan").attr("x",0).attr("y",t*r-.1+"em").attr("dy",r+"em");return n&&a.attr("text-anchor","middle"),a}function e1(e,t,r){let n=e.append("text"),a=e0(n,1,t);e6(a,r);let i=a.node().getComputedTextLength();return n.remove(),i}function e2(e,t,r){let n=e.append("text"),a=e0(n,1,t);e6(a,[{content:r,type:"normal"}]);let i=a.node()?.getBoundingClientRect();return i&&n.remove(),i}function e3(e,t,r,n=!1,a=!1){let s=t.append("g"),o=s.insert("rect").attr("class","background").attr("style","stroke: none"),l=s.append("text").attr("y","-10.1");a&&l.attr("text-anchor","middle");let c=0;for(let t of r){let r=(0,i.K2)(t=>e1(s,1.1,t)<=e,"checkWidth");for(let e of r(t)?[t]:eZ(t,r))e6(e0(l,c,1.1,a),e),c++}if(!n)return l.node();{let e=l.node().getBBox();return o.attr("x",e.x-2).attr("y",e.y-2).attr("width",e.width+4).attr("height",e.height+4),s.node()}}function e5(e){return e.replace(/&(amp|lt|gt);/g,(e,t)=>{switch(t){case"amp":return"&";case"lt":return"<";case"gt":return">";default:return e}})}function e6(e,t){e.text(""),t.forEach((t,r)=>{let n=e.append("tspan").attr("font-style","em"===t.type?"italic":"normal").attr("class","text-inner-tspan").attr("font-weight","strong"===t.type?"bold":"normal");0===r?n.text(e5(t.content)):n.text(" "+e5(t.content))})}async function e4(e,t={}){let r=[];e.replace(/(fa[bklrs]?):fa-([\w-]+)/g,(e,n,i)=>(r.push((async()=>{let r=`${n}:${i}`;return await eF(r)?await ez(r,void 0,{class:"label-icon"}):`<i class='${(0,a.jZ)(e,t).replace(":"," ")}'></i>`})()),e));let n=await Promise.all(r);return e.replace(/(fa[bklrs]?):fa-([\w-]+)/g,()=>n.shift()??"")}(0,i.K2)(eB,"preprocessMarkdown"),(0,i.K2)(eW,"nonMarkdownToLines"),(0,i.K2)(eq,"markdownToLines"),(0,i.K2)(eY,"nonMarkdownToHTML"),(0,i.K2)(eU,"markdownToHTML"),(0,i.K2)(eH,"splitTextToChars"),(0,i.K2)(eX,"splitWordToFitWidth"),(0,i.K2)(eG,"splitWordToFitWidthRecursion"),(0,i.K2)(eZ,"splitLineToFitWidth"),(0,i.K2)(eV,"splitLineToFitWidthRecursion"),(0,i.K2)(eQ,"applyStyle"),(0,i.K2)(eJ,"addHtmlSpan"),(0,i.K2)(e0,"createTspan"),(0,i.K2)(e1,"computeWidthOfText"),(0,i.K2)(e2,"computeDimensionOfText"),(0,i.K2)(e3,"createFormattedText"),(0,i.K2)(e5,"decodeHTMLEntities"),(0,i.K2)(e6,"updateTextContentAndStyles"),(0,i.K2)(e4,"replaceIconSubstring");var e9=(0,i.K2)(async(e,t="",{style:r="",isTitle:s=!1,classes:o="",useHtmlLabels:l=!0,markdown:c=!0,isNode:h=!0,width:u=200,addSvgBackground:d=!1}={},p)=>{if(i.Rm.debug("XYZ createText",t,r,s,o,l,h,"addSvgBackground: ",d),l){let i=c?eU(t,p):eY(t),s=await e4((0,n.Sm)(i),p),l=t.replace(/\\\\/g,"\\"),f={isNode:h,label:(0,a.Wi)(t)?l:s,labelStyle:r.replace("fill:","color:")};return await eJ(e,f,u,o,d,p)}{let a=(0,n.Sm)(t.replace(/<br\s*\/?>/g,"<br/>")),i=e3(u,e,c?eq(a.replace("<br>","<br/>"),p):eW(a),!!t&&d,!h);if(h){/stroke:/.exec(r)&&(r=r.replace("stroke:","lineColor:"));let e=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");(0,k.Ltv)(i).attr("style",e)}else{let e=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/background:/g,"fill:");(0,k.Ltv)(i).select("rect").attr("style",e.replace(/background:/g,"fill:"));let t=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");(0,k.Ltv)(i).select("text").attr("style",t)}return s?(0,k.Ltv)(i).selectAll("tspan.text-outer-tspan").classed("title-row",!0):(0,k.Ltv)(i).selectAll("tspan.text-outer-tspan").classed("row",!0),i}},"createText")},58211:(e,t,r)=>{"use strict";r.d(t,{Nq:()=>s,RI:()=>c,Wg:()=>a,hq:()=>i});var n=r(85448),a=(0,n.K2)((e,t)=>{if(t)return"translate("+-e.width/2+", "+-e.height/2+")";let r=e.x??0,n=e.y??0;return"translate("+-(r+e.width/2)+", "+-(n+e.height/2)+")"},"computeLabelTransform"),i={aggregation:17.25,extension:17.25,composition:17.25,dependency:6,lollipop:13.5,arrow_point:4,arrow_barb:0,arrow_barb_neo:5.5},s={arrow_point:4,arrow_cross:12.5,arrow_circle:12.5};function o(e,t){if(void 0===e||void 0===t)return{angle:0,deltaX:0,deltaY:0};e=l(e),t=l(t);let[r,n]=[e.x,e.y],[a,i]=[t.x,t.y],s=a-r,o=i-n;return{angle:Math.atan(o/s),deltaX:s,deltaY:o}}(0,n.K2)(o,"calculateDeltaAndAngle");var l=(0,n.K2)(e=>Array.isArray(e)?{x:e[0],y:e[1]}:e,"pointTransformer"),c=(0,n.K2)(e=>({x:(0,n.K2)(function(t,r,n){let a=0,s=l(n[0]).x<l(n[n.length-1]).x?"left":"right";if(0===r&&Object.hasOwn(i,e.arrowTypeStart)){let{angle:t,deltaX:r}=o(n[0],n[1]);a=i[e.arrowTypeStart]*Math.cos(t)*(r>=0?1:-1)}else if(r===n.length-1&&Object.hasOwn(i,e.arrowTypeEnd)){let{angle:t,deltaX:r}=o(n[n.length-1],n[n.length-2]);a=i[e.arrowTypeEnd]*Math.cos(t)*(r>=0?1:-1)}let c=Math.abs(l(t).x-l(n[n.length-1]).x),h=Math.abs(l(t).y-l(n[n.length-1]).y),u=Math.abs(l(t).x-l(n[0]).x),d=Math.abs(l(t).y-l(n[0]).y),p=i[e.arrowTypeStart],f=i[e.arrowTypeEnd];if(c<f&&c>0&&h<f){let e=f+1-c;e*="right"===s?-1:1,a-=e}if(u<p&&u>0&&d<p){let e=p+1-u;e*="right"===s?-1:1,a+=e}return l(t).x+a},"x"),y:(0,n.K2)(function(t,r,n){let a=0,s=l(n[0]).y<l(n[n.length-1]).y?"down":"up";if(0===r&&Object.hasOwn(i,e.arrowTypeStart)){let{angle:t,deltaY:r}=o(n[0],n[1]);a=i[e.arrowTypeStart]*Math.abs(Math.sin(t))*(r>=0?1:-1)}else if(r===n.length-1&&Object.hasOwn(i,e.arrowTypeEnd)){let{angle:t,deltaY:r}=o(n[n.length-1],n[n.length-2]);a=i[e.arrowTypeEnd]*Math.abs(Math.sin(t))*(r>=0?1:-1)}let c=Math.abs(l(t).y-l(n[n.length-1]).y),h=Math.abs(l(t).x-l(n[n.length-1]).x),u=Math.abs(l(t).y-l(n[0]).y),d=Math.abs(l(t).x-l(n[0]).x),p=i[e.arrowTypeStart],f=i[e.arrowTypeEnd];if(c<f&&c>0&&h<f){let e=f+1-c;e*="up"===s?-1:1,a-=e}if(u<p&&u>0&&d<p){let e=p+1-u;e*="up"===s?-1:1,a+=e}return l(t).y+a},"y")}),"getLineFunctionsWithOffset")},63121:(e,t,r)=>{"use strict";function n(e){return null==e||"object"!=typeof e&&"function"!=typeof e}r.d(t,{s:()=>n})},64266:function(e){e.exports=function(){"use strict";var e="millisecond",t="second",r="minute",n="hour",a="week",i="month",s="quarter",o="year",l="date",c="Invalid Date",h=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,u=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,d=function(e,t,r){var n=String(e);return!n||n.length>=t?e:""+Array(t+1-n.length).join(r)+e},p="en",f={};f[p]={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(e){var t=["th","st","nd","rd"],r=e%100;return"["+e+(t[(r-20)%10]||t[r]||t[0])+"]"}};var g="$isDayjsObject",m=function(e){return e instanceof x||!(!e||!e[g])},y=function e(t,r,n){var a;if(!t)return p;if("string"==typeof t){var i=t.toLowerCase();f[i]&&(a=i),r&&(f[i]=r,a=i);var s=t.split("-");if(!a&&s.length>1)return e(s[0])}else{var o=t.name;f[o]=t,a=o}return!n&&a&&(p=a),a||!n&&p},b=function(e,t){if(m(e))return e.clone();var r="object"==typeof t?t:{};return r.date=e,r.args=arguments,new x(r)},k={s:d,z:function(e){var t=-e.utcOffset(),r=Math.abs(t);return(t<=0?"+":"-")+d(Math.floor(r/60),2,"0")+":"+d(r%60,2,"0")},m:function e(t,r){if(t.date()<r.date())return-e(r,t);var n=12*(r.year()-t.year())+(r.month()-t.month()),a=t.clone().add(n,i),s=r-a<0,o=t.clone().add(n+(s?-1:1),i);return+(-(n+(r-a)/(s?a-o:o-a))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(c){return({M:i,y:o,w:a,d:"day",D:l,h:n,m:r,s:t,ms:e,Q:s})[c]||String(c||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}};k.l=y,k.i=m,k.w=function(e,t){return b(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var x=function(){function d(e){this.$L=y(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[g]=!0}var p=d.prototype;return p.parse=function(e){this.$d=function(e){var t=e.date,r=e.utc;if(null===t)return new Date(NaN);if(k.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var n=t.match(h);if(n){var a=n[2]-1||0,i=(n[7]||"0").substring(0,3);return r?new Date(Date.UTC(n[1],a,n[3]||1,n[4]||0,n[5]||0,n[6]||0,i)):new Date(n[1],a,n[3]||1,n[4]||0,n[5]||0,n[6]||0,i)}}return new Date(t)}(e),this.init()},p.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},p.$utils=function(){return k},p.isValid=function(){return this.$d.toString()!==c},p.isSame=function(e,t){var r=b(e);return this.startOf(t)<=r&&r<=this.endOf(t)},p.isAfter=function(e,t){return b(e)<this.startOf(t)},p.isBefore=function(e,t){return this.endOf(t)<b(e)},p.$g=function(e,t,r){return k.u(e)?this[t]:this.set(r,e)},p.unix=function(){return Math.floor(this.valueOf()/1e3)},p.valueOf=function(){return this.$d.getTime()},p.startOf=function(e,s){var c=this,h=!!k.u(s)||s,u=k.p(e),d=function(e,t){var r=k.w(c.$u?Date.UTC(c.$y,t,e):new Date(c.$y,t,e),c);return h?r:r.endOf("day")},p=function(e,t){return k.w(c.toDate()[e].apply(c.toDate("s"),(h?[0,0,0,0]:[23,59,59,999]).slice(t)),c)},f=this.$W,g=this.$M,m=this.$D,y="set"+(this.$u?"UTC":"");switch(u){case o:return h?d(1,0):d(31,11);case i:return h?d(1,g):d(0,g+1);case a:var b=this.$locale().weekStart||0,x=(f<b?f+7:f)-b;return d(h?m-x:m+(6-x),g);case"day":case l:return p(y+"Hours",0);case n:return p(y+"Minutes",1);case r:return p(y+"Seconds",2);case t:return p(y+"Milliseconds",3);default:return this.clone()}},p.endOf=function(e){return this.startOf(e,!1)},p.$set=function(a,s){var c,h=k.p(a),u="set"+(this.$u?"UTC":""),d=((c={}).day=u+"Date",c[l]=u+"Date",c[i]=u+"Month",c[o]=u+"FullYear",c[n]=u+"Hours",c[r]=u+"Minutes",c[t]=u+"Seconds",c[e]=u+"Milliseconds",c)[h],p="day"===h?this.$D+(s-this.$W):s;if(h===i||h===o){var f=this.clone().set(l,1);f.$d[d](p),f.init(),this.$d=f.set(l,Math.min(this.$D,f.daysInMonth())).$d}else d&&this.$d[d](p);return this.init(),this},p.set=function(e,t){return this.clone().$set(e,t)},p.get=function(e){return this[k.p(e)]()},p.add=function(e,s){var l,c=this;e=Number(e);var h=k.p(s),u=function(t){var r=b(c);return k.w(r.date(r.date()+Math.round(t*e)),c)};if(h===i)return this.set(i,this.$M+e);if(h===o)return this.set(o,this.$y+e);if("day"===h)return u(1);if(h===a)return u(7);var d=((l={})[r]=6e4,l[n]=36e5,l[t]=1e3,l)[h]||1,p=this.$d.getTime()+e*d;return k.w(p,this)},p.subtract=function(e,t){return this.add(-1*e,t)},p.format=function(e){var t=this,r=this.$locale();if(!this.isValid())return r.invalidDate||c;var n=e||"YYYY-MM-DDTHH:mm:ssZ",a=k.z(this),i=this.$H,s=this.$m,o=this.$M,l=r.weekdays,h=r.months,d=r.meridiem,p=function(e,r,a,i){return e&&(e[r]||e(t,n))||a[r].slice(0,i)},f=function(e){return k.s(i%12||12,e,"0")},g=d||function(e,t,r){var n=e<12?"AM":"PM";return r?n.toLowerCase():n};return n.replace(u,function(e,n){return n||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return k.s(t.$y,4,"0");case"M":return o+1;case"MM":return k.s(o+1,2,"0");case"MMM":return p(r.monthsShort,o,h,3);case"MMMM":return p(h,o);case"D":return t.$D;case"DD":return k.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return p(r.weekdaysMin,t.$W,l,2);case"ddd":return p(r.weekdaysShort,t.$W,l,3);case"dddd":return l[t.$W];case"H":return String(i);case"HH":return k.s(i,2,"0");case"h":return f(1);case"hh":return f(2);case"a":return g(i,s,!0);case"A":return g(i,s,!1);case"m":return String(s);case"mm":return k.s(s,2,"0");case"s":return String(t.$s);case"ss":return k.s(t.$s,2,"0");case"SSS":return k.s(t.$ms,3,"0");case"Z":return a}return null}(e)||a.replace(":","")})},p.utcOffset=function(){return-(15*Math.round(this.$d.getTimezoneOffset()/15))},p.diff=function(e,l,c){var h,u=this,d=k.p(l),p=b(e),f=(p.utcOffset()-this.utcOffset())*6e4,g=this-p,m=function(){return k.m(u,p)};switch(d){case o:h=m()/12;break;case i:h=m();break;case s:h=m()/3;break;case a:h=(g-f)/6048e5;break;case"day":h=(g-f)/864e5;break;case n:h=g/36e5;break;case r:h=g/6e4;break;case t:h=g/1e3;break;default:h=g}return c?h:k.a(h)},p.daysInMonth=function(){return this.endOf(i).$D},p.$locale=function(){return f[this.$L]},p.locale=function(e,t){if(!e)return this.$L;var r=this.clone(),n=y(e,t,!0);return n&&(r.$L=n),r},p.clone=function(){return k.w(this.$d,this)},p.toDate=function(){return new Date(this.valueOf())},p.toJSON=function(){return this.isValid()?this.toISOString():null},p.toISOString=function(){return this.$d.toISOString()},p.toString=function(){return this.$d.toUTCString()},d}(),w=x.prototype;return b.prototype=w,[["$ms",e],["$s",t],["$m",r],["$H",n],["$W","day"],["$M",i],["$y",o],["$D",l]].forEach(function(e){w[e[1]]=function(t){return this.$g(t,e[0],e[1])}}),b.extend=function(e,t){return e.$i||(e(t,x,b),e.$i=!0),b},b.locale=y,b.isDayjs=m,b.unix=function(e){return b(1e3*e)},b.en=f[p],b.Ls=f,b.p={},b}()},65477:(e,t,r)=>{"use strict";r.d(t,{XX:()=>u,q7:()=>d,sO:()=>h});var n=r(94242),a=r(12347),i=r(50001),s=r(93913),o=r(85448),l={common:s.Y2,getConfig:s.zj,insertCluster:a.U,insertEdge:n.Jo,insertEdgeLabel:n.jP,insertMarkers:n.g0,insertNode:a.on,interpolateToCurve:i.Ib,labelHelper:a.Zk,log:o.Rm,positionEdgeLabel:n.T_},c={},h=(0,o.K2)(e=>{for(let t of e)c[t.name]=t},"registerLayoutLoaders");(0,o.K2)(()=>{h([{name:"dagre",loader:(0,o.K2)(async()=>await Promise.all([r.e(4039),r.e(2351),r.e(9804)]).then(r.bind(r,89804)),"loader")},{name:"cose-bilkent",loader:(0,o.K2)(async()=>await Promise.all([r.e(6849),r.e(8917)]).then(r.bind(r,98917)),"loader")}])},"registerDefaultLayoutLoaders")();var u=(0,o.K2)(async(e,t)=>{if(!(e.layoutAlgorithm in c))throw Error(`Unknown layout algorithm: ${e.layoutAlgorithm}`);if(e.diagramId)for(let t of e.nodes){let r=t.domId||t.id;t.domId=`${e.diagramId}-${r}`}let r=c[e.layoutAlgorithm],n=await r.loader(),{theme:a,themeVariables:i}=e.config,{useGradient:s,gradientStart:o,gradientStop:h}=i,u=t.attr("id");if(t.append("defs").append("filter").attr("id",`${u}-drop-shadow`).attr("height","130%").attr("width","130%").append("feDropShadow").attr("dx","4").attr("dy","4").attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",`${a?.includes("dark")?"#FFFFFF":"#000000"}`),t.append("defs").append("filter").attr("id",`${u}-drop-shadow-small`).attr("height","150%").attr("width","150%").append("feDropShadow").attr("dx","2").attr("dy","2").attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",`${a?.includes("dark")?"#FFFFFF":"#000000"}`),s){let e=t.append("linearGradient").attr("id",t.attr("id")+"-gradient").attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");e.append("svg:stop").attr("offset","0%").attr("stop-color",o).attr("stop-opacity",1),e.append("svg:stop").attr("offset","100%").attr("stop-color",h).attr("stop-opacity",1)}return n.render(e,t,l,{algorithm:r.algorithm})},"render"),d=(0,o.K2)((e="",{fallback:t="dagre"}={})=>{if(e in c)return e;if(t in c)return o.Rm.warn(`Layout algorithm ${e} is not registered. Using ${t} as fallback.`),t;throw Error(`Both layout algorithms ${e} and ${t} are not registered.`)},"getRegisteredLayoutAlgorithm")},66909:(e,t,r)=>{"use strict";function n(e,t,r){if(e&&e.length){let[n,a]=t,i=Math.PI/180*r,s=Math.cos(i),o=Math.sin(i);for(let t of e){let[e,r]=t;t[0]=(e-n)*s-(r-a)*o+n,t[1]=(e-n)*o+(r-a)*s+a}}}function a(e,t){var r;let a=t.hachureAngle+90,i=t.hachureGap;i<0&&(i=4*t.strokeWidth),i=Math.round(Math.max(i,.1));let s=1;return t.roughness>=1&&((null==(r=t.randomizer)?void 0:r.next())||Math.random())>.7&&(s=i),function(e,t,r,a=1){let i=Math.max(t,.1),s=e[0]&&e[0][0]&&"number"==typeof e[0][0]?[e]:e,o=[0,0];if(r)for(let e of s)n(e,o,r);let l=function(e,t,r){let n=[];for(let t of e){var a,i;let e=[...t];a=e[0],i=e[e.length-1],a[0]===i[0]&&a[1]===i[1]||e.push([e[0][0],e[0][1]]),e.length>2&&n.push(e)}let s=[];t=Math.max(t,.1);let o=[];for(let e of n)for(let t=0;t<e.length-1;t++){let r=e[t],n=e[t+1];if(r[1]!==n[1]){let e=Math.min(r[1],n[1]);o.push({ymin:e,ymax:Math.max(r[1],n[1]),x:e===r[1]?r[0]:n[0],islope:(n[0]-r[0])/(n[1]-r[1])})}}if(o.sort((e,t)=>e.ymin<t.ymin?-1:e.ymin>t.ymin?1:e.x<t.x?-1:e.x>t.x?1:e.ymax===t.ymax?0:(e.ymax-t.ymax)/Math.abs(e.ymax-t.ymax)),!o.length)return s;let l=[],c=o[0].ymin,h=0;for(;l.length||o.length;){if(o.length){let e=-1;for(let t=0;t<o.length&&!(o[t].ymin>c);t++)e=t;o.splice(0,e+1).forEach(e=>{l.push({s:c,edge:e})})}if((l=l.filter(e=>!(e.edge.ymax<=c))).sort((e,t)=>e.edge.x===t.edge.x?0:(e.edge.x-t.edge.x)/Math.abs(e.edge.x-t.edge.x)),(1!==r||h%t==0)&&l.length>1)for(let e=0;e<l.length;e+=2){let t=e+1;if(t>=l.length)break;let r=l[e].edge,n=l[t].edge;s.push([[Math.round(r.x),c],[Math.round(n.x),c]])}c+=r,l.forEach(e=>{e.edge.x=e.edge.x+r*e.edge.islope}),h++}return s}(s,i,a);if(r){let e;for(let e of s)n(e,o,-r);e=[],l.forEach(t=>e.push(...t)),n(e,o,-r)}return l}(e,i,a,s||1)}r.d(t,{A:()=>G});class i{constructor(e){this.helper=e}fillPolygons(e,t){return this._fillPolygons(e,t)}_fillPolygons(e,t){let r=a(e,t);return{type:"fillSketch",ops:this.renderLines(r,t)}}renderLines(e,t){let r=[];for(let n of e)r.push(...this.helper.doubleLineOps(n[0][0],n[0][1],n[1][0],n[1][1],t));return r}}function s(e){let t=e[0],r=e[1];return Math.sqrt(Math.pow(t[0]-r[0],2)+Math.pow(t[1]-r[1],2))}class o extends i{fillPolygons(e,t){let r=t.hachureGap;r<0&&(r=4*t.strokeWidth);let n=a(e,Object.assign({},t,{hachureGap:r=Math.max(r,.1)})),i=Math.PI/180*t.hachureAngle,o=[],l=.5*r*Math.cos(i),c=.5*r*Math.sin(i);for(let[e,t]of n)s([e,t])&&o.push([[e[0]-l,e[1]+c],[...t]],[[e[0]+l,e[1]-c],[...t]]);return{type:"fillSketch",ops:this.renderLines(o,t)}}}class l extends i{fillPolygons(e,t){let r=this._fillPolygons(e,t),n=Object.assign({},t,{hachureAngle:t.hachureAngle+90}),a=this._fillPolygons(e,n);return r.ops=r.ops.concat(a.ops),r}}class c{constructor(e){this.helper=e}fillPolygons(e,t){let r=a(e,t=Object.assign({},t,{hachureAngle:0}));return this.dotsOnLines(r,t)}dotsOnLines(e,t){let r=[],n=t.hachureGap;n<0&&(n=4*t.strokeWidth),n=Math.max(n,.1);let a=t.fillWeight;a<0&&(a=t.strokeWidth/2);let i=n/4;for(let o of e){let e=s(o),l=Math.ceil(e/n)-1,c=e-l*n,h=(o[0][0]+o[1][0])/2-n/4,u=Math.min(o[0][1],o[1][1]);for(let e=0;e<l;e++){let s=h-i+2*Math.random()*i,o=u+c+e*n-i+2*Math.random()*i,l=this.helper.ellipse(s,o,a,a,t);r.push(...l.ops)}}return{type:"fillSketch",ops:r}}}class h{constructor(e){this.helper=e}fillPolygons(e,t){let r=a(e,t);return{type:"fillSketch",ops:this.dashedLine(r,t)}}dashedLine(e,t){let r=t.dashOffset<0?t.hachureGap<0?4*t.strokeWidth:t.hachureGap:t.dashOffset,n=t.dashGap<0?t.hachureGap<0?4*t.strokeWidth:t.hachureGap:t.dashGap,a=[];return e.forEach(e=>{let i=s(e),o=Math.floor(i/(r+n)),l=(i+n-o*(r+n))/2,c=e[0],h=e[1];c[0]>h[0]&&(c=e[1],h=e[0]);let u=Math.atan((h[1]-c[1])/(h[0]-c[0]));for(let e=0;e<o;e++){let i=e*(r+n),s=i+r,o=[c[0]+i*Math.cos(u)+l*Math.cos(u),c[1]+i*Math.sin(u)+l*Math.sin(u)],h=[c[0]+s*Math.cos(u)+l*Math.cos(u),c[1]+s*Math.sin(u)+l*Math.sin(u)];a.push(...this.helper.doubleLineOps(o[0],o[1],h[0],h[1],t))}}),a}}class u{constructor(e){this.helper=e}fillPolygons(e,t){let r=t.hachureGap<0?4*t.strokeWidth:t.hachureGap,n=t.zigzagOffset<0?r:t.zigzagOffset,i=a(e,t=Object.assign({},t,{hachureGap:r+n}));return{type:"fillSketch",ops:this.zigzagLines(i,n,t)}}zigzagLines(e,t,r){let n=[];return e.forEach(e=>{let a=Math.round(s(e)/(2*t)),i=e[0],o=e[1];i[0]>o[0]&&(i=e[1],o=e[0]);let l=Math.atan((o[1]-i[1])/(o[0]-i[0]));for(let e=0;e<a;e++){let a=2*e*t,s=2*(e+1)*t,o=Math.sqrt(2*Math.pow(t,2)),c=[i[0]+a*Math.cos(l),i[1]+a*Math.sin(l)],h=[i[0]+s*Math.cos(l),i[1]+s*Math.sin(l)],u=[c[0]+o*Math.cos(l+Math.PI/4),c[1]+o*Math.sin(l+Math.PI/4)];n.push(...this.helper.doubleLineOps(c[0],c[1],u[0],u[1],r),...this.helper.doubleLineOps(u[0],u[1],h[0],h[1],r))}}),n}}let d={};class p{constructor(e){this.seed=e}next(){return this.seed?(0x80000000-1&(this.seed=Math.imul(48271,this.seed)))/0x80000000:Math.random()}}let f={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 g(e){let t=[],r=function(e){let t=[];for(;""!==e;)if(e.match(/^([ \t\r\n,]+)/))e=e.substr(RegExp.$1.length);else if(e.match(/^([aAcChHlLmMqQsStTvVzZ])/))t[t.length]={type:0,text:RegExp.$1},e=e.substr(RegExp.$1.length);else{if(!e.match(/^(([-+]?[0-9]+(\.[0-9]*)?|[-+]?\.[0-9]+)([eE][-+]?[0-9]+)?)/))return[];t[t.length]={type:1,text:`${parseFloat(RegExp.$1)}`},e=e.substr(RegExp.$1.length)}return t[t.length]={type:2,text:""},t}(e),n="BOD",a=0,i=r[0];for(;2!==i.type;){let s=0,o=[];if("BOD"===n){if("M"!==i.text&&"m"!==i.text)return g("M0,0"+e);a++,s=f[i.text],n=i.text}else 1===i.type?s=f[n]:(a++,s=f[i.text],n=i.text);if(!(a+s<r.length))throw Error("Path data ended short");for(let e=a;e<a+s;e++){let t=r[e];if(1!==t.type)throw Error("Param not a number: "+n+","+t.text);o[o.length]=+t.text}if("number"!=typeof f[n])throw Error("Bad segment: "+n);{let e={key:n,data:o};t.push(e),a+=s,i=r[a],"M"===n&&(n="L"),"m"===n&&(n="l")}}return t}function m(e){let t=0,r=0,n=0,a=0,i=[];for(let{key:s,data:o}of e)switch(s){case"M":i.push({key:"M",data:[...o]}),[t,r]=o,[n,a]=o;break;case"m":t+=o[0],r+=o[1],i.push({key:"M",data:[t,r]}),n=t,a=r;break;case"L":i.push({key:"L",data:[...o]}),[t,r]=o;break;case"l":t+=o[0],r+=o[1],i.push({key:"L",data:[t,r]});break;case"C":i.push({key:"C",data:[...o]}),t=o[4],r=o[5];break;case"c":{let e=o.map((e,n)=>n%2?e+r:e+t);i.push({key:"C",data:e}),t=e[4],r=e[5];break}case"Q":i.push({key:"Q",data:[...o]}),t=o[2],r=o[3];break;case"q":{let e=o.map((e,n)=>n%2?e+r:e+t);i.push({key:"Q",data:e}),t=e[2],r=e[3];break}case"A":i.push({key:"A",data:[...o]}),t=o[5],r=o[6];break;case"a":t+=o[5],r+=o[6],i.push({key:"A",data:[o[0],o[1],o[2],o[3],o[4],t,r]});break;case"H":i.push({key:"H",data:[...o]}),t=o[0];break;case"h":t+=o[0],i.push({key:"H",data:[t]});break;case"V":i.push({key:"V",data:[...o]}),r=o[0];break;case"v":r+=o[0],i.push({key:"V",data:[r]});break;case"S":i.push({key:"S",data:[...o]}),t=o[2],r=o[3];break;case"s":{let e=o.map((e,n)=>n%2?e+r:e+t);i.push({key:"S",data:e}),t=e[2],r=e[3];break}case"T":i.push({key:"T",data:[...o]}),t=o[0],r=o[1];break;case"t":t+=o[0],r+=o[1],i.push({key:"T",data:[t,r]});break;case"Z":case"z":i.push({key:"Z",data:[]}),t=n,r=a}return i}function y(e){let t=[],r="",n=0,a=0,i=0,s=0,o=0,l=0;for(let{key:c,data:h}of e){switch(c){case"M":t.push({key:"M",data:[...h]}),[n,a]=h,[i,s]=h;break;case"C":t.push({key:"C",data:[...h]}),n=h[4],a=h[5],o=h[2],l=h[3];break;case"L":t.push({key:"L",data:[...h]}),[n,a]=h;break;case"H":n=h[0],t.push({key:"L",data:[n,a]});break;case"V":a=h[0],t.push({key:"L",data:[n,a]});break;case"S":{let e=0,i=0;"C"===r||"S"===r?(e=n+(n-o),i=a+(a-l)):(e=n,i=a),t.push({key:"C",data:[e,i,...h]}),o=h[0],l=h[1],n=h[2],a=h[3];break}case"T":{let[e,i]=h,s=0,c=0;"Q"===r||"T"===r?(s=n+(n-o),c=a+(a-l)):(s=n,c=a);let u=n+2*(s-n)/3,d=a+2*(c-a)/3,p=e+2*(s-e)/3,f=i+2*(c-i)/3;t.push({key:"C",data:[u,d,p,f,e,i]}),o=s,l=c,n=e,a=i;break}case"Q":{let[e,r,i,s]=h,c=n+2*(e-n)/3,u=a+2*(r-a)/3,d=i+2*(e-i)/3,p=s+2*(r-s)/3;t.push({key:"C",data:[c,u,d,p,i,s]}),o=e,l=r,n=i,a=s;break}case"A":{let e=Math.abs(h[0]),r=Math.abs(h[1]),i=h[2],s=h[3],o=h[4],l=h[5],c=h[6];0===e||0===r?(t.push({key:"C",data:[n,a,l,c,l,c]}),n=l,a=c):(n!==l||a!==c)&&((function e(t,r,n,a,i,s,o,l,c,h){let u=Math.PI*o/180,d=[],p=0,f=0,g=0,m=0;if(h)[p,f,g,m]=h;else{[t,r]=b(t,r,-u),[n,a]=b(n,a,-u);let e=(t-n)/2,o=(r-a)/2,h=e*e/(i*i)+o*o/(s*s);h>1&&(i*=h=Math.sqrt(h),s*=h);let d=i*i,y=s*s,k=(l===c?-1:1)*Math.sqrt(Math.abs((d*y-d*o*o-y*e*e)/(d*o*o+y*e*e)));g=k*i*o/s+(t+n)/2,m=-(k*s)*e/i+(r+a)/2,p=Math.asin(parseFloat(((r-m)/s).toFixed(9))),f=Math.asin(parseFloat(((a-m)/s).toFixed(9))),t<g&&(p=Math.PI-p),n<g&&(f=Math.PI-f),p<0&&(p=2*Math.PI+p),f<0&&(f=2*Math.PI+f),c&&p>f&&(p-=2*Math.PI),!c&&f>p&&(f-=2*Math.PI)}let y=f-p;if(Math.abs(y)>120*Math.PI/180){let t=f,r=n,l=a;d=e(n=g+i*Math.cos(f=c&&f>p?p+120*Math.PI/180*1:p+-(120*Math.PI/180*1)),a=m+s*Math.sin(f),r,l,i,s,o,0,c,[f,t,g,m])}y=f-p;let k=Math.cos(p),x=Math.cos(f),w=Math.tan(y/4),v=4/3*i*w,_=4/3*s*w,S=[t,r],A=[t+v*Math.sin(p),r-_*k],M=[n+v*Math.sin(f),a-_*x],$=[n,a];if(A[0]=2*S[0]-A[0],A[1]=2*S[1]-A[1],h)return[A,M,$].concat(d);{d=[A,M,$].concat(d);let e=[];for(let t=0;t<d.length;t+=3){let r=b(d[t][0],d[t][1],u),n=b(d[t+1][0],d[t+1][1],u),a=b(d[t+2][0],d[t+2][1],u);e.push([r[0],r[1],n[0],n[1],a[0],a[1]])}return e}})(n,a,l,c,e,r,i,s,o).forEach(function(e){t.push({key:"C",data:e})}),n=l,a=c);break}case"Z":t.push({key:"Z",data:[]}),n=i,a=s}r=c}return t}function b(e,t,r){return[e*Math.cos(r)-t*Math.sin(r),e*Math.sin(r)+t*Math.cos(r)]}let k={randOffset:function(e,t){return T(e,t)},randOffsetWithRange:function(e,t,r){return C(e,t,r)},ellipse:function(e,t,r,n,a){let i=_(r,n,a);return S(e,t,a,i).opset},doubleLineOps:function(e,t,r,n,a){return R(e,t,r,n,a,!0)}};function x(e,t,r,n,a){return{type:"path",ops:R(e,t,r,n,a)}}function w(e,t,r){let n=(e||[]).length;if(n>2){let a=[];for(let t=0;t<n-1;t++)a.push(...R(e[t][0],e[t][1],e[t+1][0],e[t+1][1],r));return t&&a.push(...R(e[n-1][0],e[n-1][1],e[0][0],e[0][1],r)),{type:"path",ops:a}}return 2===n?x(e[0][0],e[0][1],e[1][0],e[1][1],r):{type:"path",ops:[]}}function v(e,t){if(e.length){let r="number"==typeof e[0][0]?[e]:e,n=I(r[0],+(1+.2*t.roughness),t),a=t.disableMultiStroke?[]:I(r[0],1.5*(1+.22*t.roughness),O(t));for(let e=1;e<r.length;e++){let i=r[e];if(i.length){let e=I(i,+(1+.2*t.roughness),t),r=t.disableMultiStroke?[]:I(i,1.5*(1+.22*t.roughness),O(t));for(let t of e)"move"!==t.op&&n.push(t);for(let e of r)"move"!==e.op&&a.push(e)}}return{type:"path",ops:n.concat(a)}}return{type:"path",ops:[]}}function _(e,t,r){let n=Math.sqrt(2*Math.PI*Math.sqrt((Math.pow(e/2,2)+Math.pow(t/2,2))/2)),a=2*Math.PI/Math.ceil(Math.max(r.curveStepCount,r.curveStepCount/Math.sqrt(200)*n)),i=Math.abs(e/2),s=Math.abs(t/2),o=1-r.curveFitting;return i+=T(i*o,r),s+=T(s*o,r),{increment:a,rx:i,ry:s}}function S(e,t,r,n){let[a,i]=P(n.increment,e,t,n.rx,n.ry,1,n.increment*C(.1,C(.4,1,r),r),r),s=j(a,null,r);if(!r.disableMultiStroke&&0!==r.roughness){let[a]=P(n.increment,e,t,n.rx,n.ry,1.5,0,r),i=j(a,null,r);s=s.concat(i)}return{estimatedPoints:i,opset:{type:"path",ops:s}}}function A(e,t,r,n,a,i,s,o,l){let c=Math.abs(r/2),h=Math.abs(n/2);c+=T(.01*c,l),h+=T(.01*h,l);let u=a,d=i;for(;u<0;)u+=2*Math.PI,d+=2*Math.PI;d-u>2*Math.PI&&(u=0,d=2*Math.PI);let p=Math.min(2*Math.PI/l.curveStepCount/2,(d-u)/2),f=N(p,e,t,c,h,u,d,1,l);if(!l.disableMultiStroke){let r=N(p,e,t,c,h,u,d,1.5,l);f.push(...r)}return s&&(o?f.push(...R(e,t,e+c*Math.cos(u),t+h*Math.sin(u),l),...R(e,t,e+c*Math.cos(d),t+h*Math.sin(d),l)):f.push({op:"lineTo",data:[e,t]},{op:"lineTo",data:[e+c*Math.cos(u),t+h*Math.sin(u)]})),{type:"path",ops:f}}function M(e,t){let r=y(m(g(e))),n=[],a=[0,0],i=[0,0];for(let{key:e,data:s}of r)switch(e){case"M":i=[s[0],s[1]],a=[s[0],s[1]];break;case"L":n.push(...R(i[0],i[1],s[0],s[1],t)),i=[s[0],s[1]];break;case"C":{let[e,r,a,o,l,c]=s;n.push(...function(e,t,r,n,a,i,s,o){let l=[],c=[o.maxRandomnessOffset||1,(o.maxRandomnessOffset||1)+.3],h=[0,0],u=o.disableMultiStroke?1:2,d=o.preserveVertices;for(let p=0;p<u;p++)0===p?l.push({op:"move",data:[s[0],s[1]]}):l.push({op:"move",data:[s[0]+(d?0:T(c[0],o)),s[1]+(d?0:T(c[0],o))]}),h=d?[a,i]:[a+T(c[p],o),i+T(c[p],o)],l.push({op:"bcurveTo",data:[e+T(c[p],o),t+T(c[p],o),r+T(c[p],o),n+T(c[p],o),h[0],h[1]]});return l}(e,r,a,o,l,c,i,t)),i=[l,c];break}case"Z":n.push(...R(i[0],i[1],a[0],a[1],t)),i=[a[0],a[1]]}return{type:"path",ops:n}}function $(e,t){let r=[];for(let n of e)if(n.length){let e=t.maxRandomnessOffset||0,a=n.length;if(a>2){r.push({op:"move",data:[n[0][0]+T(e,t),n[0][1]+T(e,t)]});for(let i=1;i<a;i++)r.push({op:"lineTo",data:[n[i][0]+T(e,t),n[i][1]+T(e,t)]})}}return{type:"fillPath",ops:r}}function L(e,t){return(function(e,t){let r=e.fillStyle||"hachure";if(!d[r])switch(r){case"zigzag":d[r]||(d[r]=new o(t));break;case"cross-hatch":d[r]||(d[r]=new l(t));break;case"dots":d[r]||(d[r]=new c(t));break;case"dashed":d[r]||(d[r]=new h(t));break;case"zigzag-line":d[r]||(d[r]=new u(t));break;default:d[r="hachure"]||(d[r]=new i(t))}return d[r]})(t,k).fillPolygons(e,t)}function O(e){let t=Object.assign({},e);return t.randomizer=void 0,e.seed&&(t.seed=e.seed+1),t}function E(e){return e.randomizer||(e.randomizer=new p(e.seed||0)),e.randomizer.next()}function C(e,t,r,n=1){return r.roughness*n*(E(r)*(t-e)+e)}function T(e,t,r=1){return C(-e,e,t,r)}function R(e,t,r,n,a,i=!1){let s=i?a.disableMultiStrokeFill:a.disableMultiStroke,o=K(e,t,r,n,a,!0,!1);if(s)return o;let l=K(e,t,r,n,a,!0,!0);return o.concat(l)}function K(e,t,r,n,a,i,s){let o=Math.pow(e-r,2)+Math.pow(t-n,2),l=Math.sqrt(o),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);let u=h/2,d=.2+.2*E(a),p=a.bowing*a.maxRandomnessOffset*(n-t)/200,f=a.bowing*a.maxRandomnessOffset*(e-r)/200;p=T(p,a,c),f=T(f,a,c);let g=[],m=a.preserveVertices;return i&&(s?g.push({op:"move",data:[e+(m?0:T(u,a,c)),t+(m?0:T(u,a,c))]}):g.push({op:"move",data:[e+(m?0:T(h,a,c)),t+(m?0:T(h,a,c))]})),s?g.push({op:"bcurveTo",data:[p+e+(r-e)*d+T(u,a,c),f+t+(n-t)*d+T(u,a,c),p+e+2*(r-e)*d+T(u,a,c),f+t+2*(n-t)*d+T(u,a,c),r+(m?0:T(u,a,c)),n+(m?0:T(u,a,c))]}):g.push({op:"bcurveTo",data:[p+e+(r-e)*d+T(h,a,c),f+t+(n-t)*d+T(h,a,c),p+e+2*(r-e)*d+T(h,a,c),f+t+2*(n-t)*d+T(h,a,c),r+(m?0:T(h,a,c)),n+(m?0:T(h,a,c))]}),g}function I(e,t,r){if(!e.length)return[];let n=[];n.push([e[0][0]+T(t,r),e[0][1]+T(t,r)]),n.push([e[0][0]+T(t,r),e[0][1]+T(t,r)]);for(let a=1;a<e.length;a++)n.push([e[a][0]+T(t,r),e[a][1]+T(t,r)]),a===e.length-1&&n.push([e[a][0]+T(t,r),e[a][1]+T(t,r)]);return j(n,null,r)}function j(e,t,r){let n=e.length,a=[];if(n>3){let i=[],s=1-r.curveTightness;a.push({op:"move",data:[e[1][0],e[1][1]]});for(let t=1;t+2<n;t++){let r=e[t];i[0]=[r[0],r[1]],i[1]=[r[0]+(s*e[t+1][0]-s*e[t-1][0])/6,r[1]+(s*e[t+1][1]-s*e[t-1][1])/6],i[2]=[e[t+1][0]+(s*e[t][0]-s*e[t+2][0])/6,e[t+1][1]+(s*e[t][1]-s*e[t+2][1])/6],i[3]=[e[t+1][0],e[t+1][1]],a.push({op:"bcurveTo",data:[i[1][0],i[1][1],i[2][0],i[2][1],i[3][0],i[3][1]]})}if(t&&2===t.length){let e=r.maxRandomnessOffset;a.push({op:"lineTo",data:[t[0]+T(e,r),t[1]+T(e,r)]})}}else 3===n?(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]]})):2===n&&a.push(...K(e[0][0],e[0][1],e[1][0],e[1][1],r,!0,!0));return a}function P(e,t,r,n,a,i,s,o){let l=[],c=[];if(0===o.roughness){e/=4,c.push([t+n*Math.cos(-e),r+a*Math.sin(-e)]);for(let i=0;i<=2*Math.PI;i+=e){let e=[t+n*Math.cos(i),r+a*Math.sin(i)];l.push(e),c.push(e)}c.push([t+ +n,r+0*a]),c.push([t+n*Math.cos(e),r+a*Math.sin(e)])}else{let h=T(.5,o)-Math.PI/2;c.push([T(i,o)+t+.9*n*Math.cos(h-e),T(i,o)+r+.9*a*Math.sin(h-e)]);let u=2*Math.PI+h-.01;for(let s=h;s<u;s+=e){let e=[T(i,o)+t+n*Math.cos(s),T(i,o)+r+a*Math.sin(s)];l.push(e),c.push(e)}c.push([T(i,o)+t+n*Math.cos(h+2*Math.PI+.5*s),T(i,o)+r+a*Math.sin(h+2*Math.PI+.5*s)]),c.push([T(i,o)+t+.98*n*Math.cos(h+s),T(i,o)+r+.98*a*Math.sin(h+s)]),c.push([T(i,o)+t+.9*n*Math.cos(h+.5*s),T(i,o)+r+.9*a*Math.sin(h+.5*s)])}return[c,l]}function N(e,t,r,n,a,i,s,o,l){let c=i+T(.1,l),h=[];h.push([T(o,l)+t+.9*n*Math.cos(c-e),T(o,l)+r+.9*a*Math.sin(c-e)]);for(let i=c;i<=s;i+=e)h.push([T(o,l)+t+n*Math.cos(i),T(o,l)+r+a*Math.sin(i)]);return h.push([t+n*Math.cos(s),r+a*Math.sin(s)]),h.push([t+n*Math.cos(s),r+a*Math.sin(s)]),j(h,null,l)}function D(e,t=0){let r=e.length;if(r<3)throw Error("A curve must have at least three points.");let n=[];if(3===r)n.push([...e[0]],[...e[1]],[...e[2]],[...e[2]]);else{let r=[];r.push(e[0],e[0]);for(let t=1;t<e.length;t++)r.push(e[t]),t===e.length-1&&r.push(e[t]);let a=[],i=1-t;n.push([...r[0]]);for(let e=1;e+2<r.length;e++){let t=r[e];a[0]=[t[0],t[1]],a[1]=[t[0]+(i*r[e+1][0]-i*r[e-1][0])/6,t[1]+(i*r[e+1][1]-i*r[e-1][1])/6],a[2]=[r[e+1][0]+(i*r[e][0]-i*r[e+2][0])/6,r[e+1][1]+(i*r[e][1]-i*r[e+2][1])/6],a[3]=[r[e+1][0],r[e+1][1]],n.push(a[1],a[2],a[3])}}return n}function F(e,t){return Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2)}function z(e,t,r){return[e[0]+(t[0]-e[0])*r,e[1]+(t[1]-e[1])*r]}function B(e,t,r,n,a){let i=a||[],s=e[t],o=e[r-1],l=0,c=1;for(let n=t+1;n<r-1;++n){let t=function(e,t,r){let n=F(t,r);if(0===n)return F(e,t);let a=((e[0]-t[0])*(r[0]-t[0])+(e[1]-t[1])*(r[1]-t[1]))/n;return F(e,z(t,r,a=Math.max(0,Math.min(1,a))))}(e[n],s,o);t>l&&(l=t,c=n)}return Math.sqrt(l)>n?(B(e,t,c+1,n,i),B(e,c,r,n,i)):(i.length||i.push(s),i.push(o)),i}function W(e,t=.15,r){let n=[],a=(e.length-1)/3;for(let r=0;r<a;r++)!function e(t,r,n,a){let i,s,o,l,c,h,u,d,p=a||[];if(i=t[r+0],s=t[r+1],o=t[r+2],l=t[r+3],c=3*s[0]-2*i[0]-l[0],c*=c,h=3*s[1]-2*i[1]-l[1],h*=h,u=3*o[0]-2*l[0]-i[0],u*=u,d=3*o[1]-2*l[1]-i[1],d*=d,c<u&&(c=u),h<d&&(h=d),c+h<n){let e=t[r+0];p.length?Math.sqrt(F(p[p.length-1],e))>1&&p.push(e):p.push(e),p.push(t[r+3])}else{let a=t[r+0],i=t[r+1],s=t[r+2],o=t[r+3],l=z(a,i,.5),c=z(i,s,.5),h=z(s,o,.5),u=z(l,c,.5),d=z(c,h,.5),f=z(u,d,.5);e([a,l,u,f],0,n,p),e([f,d,h,o],0,n,p)}return p}(e,3*r,t,n);return r&&r>0?B(n,0,n.length,r):n}let q="none";class Y{constructor(e){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=e||{},this.config.options&&(this.defaultOptions=this._o(this.config.options))}static newSeed(){return Math.floor(0x80000000*Math.random())}_o(e){return e?Object.assign({},this.defaultOptions,e):this.defaultOptions}_d(e,t,r){return{shape:e,sets:t||[],options:r||this.defaultOptions}}line(e,t,r,n,a){let i=this._o(a);return this._d("line",[x(e,t,r,n,i)],i)}rectangle(e,t,r,n,a){var i,s,o,l;let c=this._o(a),h=[],u=w([[i=e,s=t],[i+(o=r),s],[i+o,s+(l=n)],[i,s+l]],!0,c);if(c.fill){let a=[[e,t],[e+r,t],[e+r,t+n],[e,t+n]];"solid"===c.fillStyle?h.push($([a],c)):h.push(L([a],c))}return c.stroke!==q&&h.push(u),this._d("rectangle",h,c)}ellipse(e,t,r,n,a){let i=this._o(a),s=[],o=_(r,n,i),l=S(e,t,i,o);if(i.fill)if("solid"===i.fillStyle){let r=S(e,t,i,o).opset;r.type="fillPath",s.push(r)}else s.push(L([l.estimatedPoints],i));return i.stroke!==q&&s.push(l.opset),this._d("ellipse",s,i)}circle(e,t,r,n){let a=this.ellipse(e,t,r,r,n);return a.shape="circle",a}linearPath(e,t){let r=this._o(t);return this._d("linearPath",[w(e,!1,r)],r)}arc(e,t,r,n,a,i,s=!1,o){let l=this._o(o),c=[],h=A(e,t,r,n,a,i,s,!0,l);if(s&&l.fill)if("solid"===l.fillStyle){let s=Object.assign({},l);s.disableMultiStroke=!0;let o=A(e,t,r,n,a,i,!0,!1,s);o.type="fillPath",c.push(o)}else c.push(function(e,t,r,n,a,i,s){let o=Math.abs(r/2),l=Math.abs(n/2);o+=T(.01*o,s),l+=T(.01*l,s);let c=a,h=i;for(;c<0;)c+=2*Math.PI,h+=2*Math.PI;h-c>2*Math.PI&&(c=0,h=2*Math.PI);let u=(h-c)/s.curveStepCount,d=[];for(let r=c;r<=h;r+=u)d.push([e+o*Math.cos(r),t+l*Math.sin(r)]);return d.push([e+o*Math.cos(h),t+l*Math.sin(h)]),d.push([e,t]),L([d],s)}(e,t,r,n,a,i,l));return l.stroke!==q&&c.push(h),this._d("arc",c,l)}curve(e,t){let r=this._o(t),n=[],a=v(e,r);if(r.fill&&r.fill!==q)if("solid"===r.fillStyle){let t=v(e,Object.assign(Object.assign({},r),{disableMultiStroke:!0,roughness:r.roughness?r.roughness+r.fillShapeRoughnessGain:0}));n.push({type:"fillPath",ops:this._mergedShape(t.ops)})}else{let t=[];if(e.length)for(let n of"number"==typeof e[0][0]?[e]:e)n.length<3?t.push(...n):3===n.length?t.push(...W(D([n[0],n[0],n[1],n[2]]),10,(1+r.roughness)/2)):t.push(...W(D(n),10,(1+r.roughness)/2));t.length&&n.push(L([t],r))}return r.stroke!==q&&n.push(a),this._d("curve",n,r)}polygon(e,t){let r=this._o(t),n=[],a=w(e,!0,r);return r.fill&&("solid"===r.fillStyle?n.push($([e],r)):n.push(L([e],r))),r.stroke!==q&&n.push(a),this._d("polygon",n,r)}path(e,t){let r=this._o(t),n=[];if(!e)return this._d("path",n,r);e=(e||"").replace(/\n/g," ").replace(/(-\s)/g,"-").replace("/(ss)/g"," ");let a=r.fill&&"transparent"!==r.fill&&r.fill!==q,i=r.stroke!==q,s=!!(r.simplification&&r.simplification<1),o=function(e,t){let r=y(m(g(e))),n=[],a=[],i=[0,0],s=[],o=()=>{s.length>=4&&a.push(...W(s,1)),s=[]},l=()=>{o(),a.length&&(n.push(a),a=[])};for(let{key:e,data:t}of r)switch(e){case"M":l(),i=[t[0],t[1]],a.push(i);break;case"L":o(),a.push([t[0],t[1]]);break;case"C":if(!s.length){let e=a.length?a[a.length-1]:i;s.push([e[0],e[1]])}s.push([t[0],t[1]]),s.push([t[2],t[3]]),s.push([t[4],t[5]]);break;case"Z":o(),a.push([i[0],i[1]])}if(l(),!t)return n;let c=[];for(let e of n){let r=B(e,0,e.length,t);r.length&&c.push(r)}return c}(e,s?4-4*(r.simplification||1):(1+r.roughness)/2),l=M(e,r);if(a)if("solid"===r.fillStyle)if(1===o.length){let t=M(e,Object.assign(Object.assign({},r),{disableMultiStroke:!0,roughness:r.roughness?r.roughness+r.fillShapeRoughnessGain:0}));n.push({type:"fillPath",ops:this._mergedShape(t.ops)})}else n.push($(o,r));else n.push(L(o,r));return i&&(s?o.forEach(e=>{n.push(w(e,!1,r))}):n.push(l)),this._d("path",n,r)}opsToPath(e,t){let r="";for(let n of e.ops){let e="number"==typeof t&&t>=0?n.data.map(e=>+e.toFixed(t)):n.data;switch(n.op){case"move":r+=`M${e[0]} ${e[1]} `;break;case"bcurveTo":r+=`C${e[0]} ${e[1]}, ${e[2]} ${e[3]}, ${e[4]} ${e[5]} `;break;case"lineTo":r+=`L${e[0]} ${e[1]} `}}return r.trim()}toPaths(e){let t=e.sets||[],r=e.options||this.defaultOptions,n=[];for(let e of t){let t=null;switch(e.type){case"path":t={d:this.opsToPath(e),stroke:r.stroke,strokeWidth:r.strokeWidth,fill:q};break;case"fillPath":t={d:this.opsToPath(e),stroke:q,strokeWidth:0,fill:r.fill||q};break;case"fillSketch":t=this.fillSketch(e,r)}t&&n.push(t)}return n}fillSketch(e,t){let r=t.fillWeight;return r<0&&(r=t.strokeWidth/2),{d:this.opsToPath(e),stroke:t.fill||q,strokeWidth:r,fill:q}}_mergedShape(e){return e.filter((e,t)=>0===t||"move"!==e.op)}}class U{constructor(e,t){this.canvas=e,this.ctx=this.canvas.getContext("2d"),this.gen=new Y(t)}draw(e){let t=e.sets||[],r=e.options||this.getDefaultOptions(),n=this.ctx,a=e.options.fixedDecimalPlaceDigits;for(let i of t)switch(i.type){case"path":n.save(),n.strokeStyle="none"===r.stroke?"transparent":r.stroke,n.lineWidth=r.strokeWidth,r.strokeLineDash&&n.setLineDash(r.strokeLineDash),r.strokeLineDashOffset&&(n.lineDashOffset=r.strokeLineDashOffset),this._drawToContext(n,i,a),n.restore();break;case"fillPath":{n.save(),n.fillStyle=r.fill||"";let t="curve"===e.shape||"polygon"===e.shape||"path"===e.shape?"evenodd":"nonzero";this._drawToContext(n,i,a,t),n.restore();break}case"fillSketch":this.fillSketch(n,i,r)}}fillSketch(e,t,r){let n=r.fillWeight;n<0&&(n=r.strokeWidth/2),e.save(),r.fillLineDash&&e.setLineDash(r.fillLineDash),r.fillLineDashOffset&&(e.lineDashOffset=r.fillLineDashOffset),e.strokeStyle=r.fill||"",e.lineWidth=n,this._drawToContext(e,t,r.fixedDecimalPlaceDigits),e.restore()}_drawToContext(e,t,r,n="nonzero"){for(let n of(e.beginPath(),t.ops)){let t="number"==typeof r&&r>=0?n.data.map(e=>+e.toFixed(r)):n.data;switch(n.op){case"move":e.moveTo(t[0],t[1]);break;case"bcurveTo":e.bezierCurveTo(t[0],t[1],t[2],t[3],t[4],t[5]);break;case"lineTo":e.lineTo(t[0],t[1])}}"fillPath"===t.type?e.fill(n):e.stroke()}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}line(e,t,r,n,a){let i=this.gen.line(e,t,r,n,a);return this.draw(i),i}rectangle(e,t,r,n,a){let i=this.gen.rectangle(e,t,r,n,a);return this.draw(i),i}ellipse(e,t,r,n,a){let i=this.gen.ellipse(e,t,r,n,a);return this.draw(i),i}circle(e,t,r,n){let a=this.gen.circle(e,t,r,n);return this.draw(a),a}linearPath(e,t){let r=this.gen.linearPath(e,t);return this.draw(r),r}polygon(e,t){let r=this.gen.polygon(e,t);return this.draw(r),r}arc(e,t,r,n,a,i,s=!1,o){let l=this.gen.arc(e,t,r,n,a,i,s,o);return this.draw(l),l}curve(e,t){let r=this.gen.curve(e,t);return this.draw(r),r}path(e,t){let r=this.gen.path(e,t);return this.draw(r),r}}let H="http://www.w3.org/2000/svg";class X{constructor(e,t){this.svg=e,this.gen=new Y(t)}draw(e){let t=e.sets||[],r=e.options||this.getDefaultOptions(),n=this.svg.ownerDocument||window.document,a=n.createElementNS(H,"g"),i=e.options.fixedDecimalPlaceDigits;for(let s of t){let t=null;switch(s.type){case"path":(t=n.createElementNS(H,"path")).setAttribute("d",this.opsToPath(s,i)),t.setAttribute("stroke",r.stroke),t.setAttribute("stroke-width",r.strokeWidth+""),t.setAttribute("fill","none"),r.strokeLineDash&&t.setAttribute("stroke-dasharray",r.strokeLineDash.join(" ").trim()),r.strokeLineDashOffset&&t.setAttribute("stroke-dashoffset",`${r.strokeLineDashOffset}`);break;case"fillPath":(t=n.createElementNS(H,"path")).setAttribute("d",this.opsToPath(s,i)),t.setAttribute("stroke","none"),t.setAttribute("stroke-width","0"),t.setAttribute("fill",r.fill||""),"curve"!==e.shape&&"polygon"!==e.shape||t.setAttribute("fill-rule","evenodd");break;case"fillSketch":t=this.fillSketch(n,s,r)}t&&a.appendChild(t)}return a}fillSketch(e,t,r){let n=r.fillWeight;n<0&&(n=r.strokeWidth/2);let a=e.createElementNS(H,"path");return a.setAttribute("d",this.opsToPath(t,r.fixedDecimalPlaceDigits)),a.setAttribute("stroke",r.fill||""),a.setAttribute("stroke-width",n+""),a.setAttribute("fill","none"),r.fillLineDash&&a.setAttribute("stroke-dasharray",r.fillLineDash.join(" ").trim()),r.fillLineDashOffset&&a.setAttribute("stroke-dashoffset",`${r.fillLineDashOffset}`),a}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}opsToPath(e,t){return this.gen.opsToPath(e,t)}line(e,t,r,n,a){let i=this.gen.line(e,t,r,n,a);return this.draw(i)}rectangle(e,t,r,n,a){let i=this.gen.rectangle(e,t,r,n,a);return this.draw(i)}ellipse(e,t,r,n,a){let i=this.gen.ellipse(e,t,r,n,a);return this.draw(i)}circle(e,t,r,n){let a=this.gen.circle(e,t,r,n);return this.draw(a)}linearPath(e,t){let r=this.gen.linearPath(e,t);return this.draw(r)}polygon(e,t){let r=this.gen.polygon(e,t);return this.draw(r)}arc(e,t,r,n,a,i,s=!1,o){let l=this.gen.arc(e,t,r,n,a,i,s,o);return this.draw(l)}curve(e,t){let r=this.gen.curve(e,t);return this.draw(r)}path(e,t){let r=this.gen.path(e,t);return this.draw(r)}}var G={canvas:(e,t)=>new U(e,t),svg:(e,t)=>new X(e,t),generator:e=>new Y(e),newSeed:()=>Y.newSeed()}},72678:(e,t,r)=>{"use strict";function n(e){var t;return null!=e&&"function"!=typeof e&&Number.isSafeInteger(t=e.length)&&t>=0}r.d(t,{X:()=>n})},75011:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});let n={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=>{let 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<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e,hsl2rgb:({h:e,s:t,l:r},a)=>{if(!t)return 2.55*r;e/=360,t/=100;let i=(r/=100)<.5?r*(1+t):r+t-r*t,s=2*r-i;switch(a){case"r":return 255*n.hue2rgb(s,i,e+1/3);case"g":return 255*n.hue2rgb(s,i,e);case"b":return 255*n.hue2rgb(s,i,e-1/3)}},rgb2hsl:({r:e,g:t,b:r},n)=>{let a=Math.max(e/=255,t/=255,r/=255),i=Math.min(e,t,r),s=(a+i)/2;if("l"===n)return 100*s;if(a===i)return 0;let o=a-i;if("s"===n)return 100*(s>.5?o/(2-a-i):o/(a+i));switch(a){case e:return((t-r)/o+6*(t<r))*60;case t:return((r-e)/o+2)*60;case r:return((e-t)/o+4)*60;default:return -1}}},a={channel:n,lang:{clamp:(e,t,r)=>t>r?Math.min(t,Math.max(r,e)):Math.min(r,Math.max(t,e)),round:e=>Math.round(1e10*e)/1e10},unit:{dec2hex:e=>{let t=Math.round(e).toString(16);return t.length>1?t:`0${t}`}}}},84038:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(87156);let a=(e,t)=>(0,n.A)(e,"l",t)},85448:(e,t,r)=>{"use strict";r.d(t,{He:()=>c,K2:()=>i,Rm:()=>l,VA:()=>s});var n=r(64266),a=Object.defineProperty,i=(e,t)=>a(e,"name",{value:t,configurable:!0}),s=(e,t)=>{for(var r in t)a(e,r,{get:t[r],enumerable:!0})},o={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},l={trace:i((...e)=>{},"trace"),debug:i((...e)=>{},"debug"),info:i((...e)=>{},"info"),warn:i((...e)=>{},"warn"),error:i((...e)=>{},"error"),fatal:i((...e)=>{},"fatal")},c=i(function(e="fatal"){let t=o.fatal;"string"==typeof e?e.toLowerCase()in o&&(t=o[e]):"number"==typeof e&&(t=e),l.trace=()=>{},l.debug=()=>{},l.info=()=>{},l.warn=()=>{},l.error=()=>{},l.fatal=()=>{},t<=o.fatal&&(l.fatal=console.error?console.error.bind(console,h("FATAL"),"color: orange"):console.log.bind(console,"\x1b[35m",h("FATAL"))),t<=o.error&&(l.error=console.error?console.error.bind(console,h("ERROR"),"color: orange"):console.log.bind(console,"\x1b[31m",h("ERROR"))),t<=o.warn&&(l.warn=console.warn?console.warn.bind(console,h("WARN"),"color: orange"):console.log.bind(console,"\x1b[33m",h("WARN"))),t<=o.info&&(l.info=console.info?console.info.bind(console,h("INFO"),"color: lightblue"):console.log.bind(console,"\x1b[34m",h("INFO"))),t<=o.debug&&(l.debug=console.debug?console.debug.bind(console,h("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1b[32m",h("DEBUG"))),t<=o.trace&&(l.trace=console.debug?console.debug.bind(console,h("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1b[32m",h("TRACE")))},"setLogLevel"),h=i(e=>{let t=n().format("ss.SSS");return`%c${t} : ${e} : `},"format")},87156:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(75011),a=r(50409);let i=(e,t,r)=>{let i=a.A.parse(e),s=i[t],o=n.A.channel.clamp[t](s+r);return s!==o&&(i[t]=o),a.A.stringify(i)}},93196:(e,t,r)=>{"use strict";r.d(t,{O:()=>s,X:()=>o});var n=r(50001),a=r(93913),i=r(85448),s=(0,i.K2)(({flowchart:e})=>{let t=e?.subGraphTitleMargin?.top??0,r=e?.subGraphTitleMargin?.bottom??0;return{subGraphTitleTopMargin:t,subGraphTitleBottomMargin:r,subGraphTitleTotalMargin:t+r}},"getSubGraphTitleMargins");async function o(e,t){let r=e.getElementsByTagName("img");if(!r||0===r.length)return;let s=""===t.replace(/<img[^>]*>/g,"").trim();await Promise.all([...r].map(e=>new Promise(t=>{function r(){if(e.style.display="flex",e.style.flexDirection="column",s){let t=(0,a.D7)().fontSize?(0,a.D7)().fontSize:window.getComputedStyle(document.body).fontSize,[r=a.UI.fontSize]=(0,n.I5)(t),i=5*r+"px";e.style.minWidth=i,e.style.maxWidth=i}else e.style.width="100%";t(e)}(0,i.K2)(r,"setupImage"),setTimeout(()=>{e.complete&&r()}),e.addEventListener("error",r),e.addEventListener("load",r)})))}(0,i.K2)(o,"configureLabelImages")},94242:(e,t,r)=>{"use strict";r.d(t,{IU:()=>x,Jo:()=>T,T_:()=>S,g0:()=>ea,jP:()=>v});var n=r(58211),a=r(12347),i=r(93196),s=r(96712),o=r(56194),l=r(50001),c=r(93913),h=r(85448),u=r(51874),d=r(66909),p=(0,h.K2)((e,t,r,n,a,i=!1,s)=>{t.arrowTypeStart&&m(e,"start",t.arrowTypeStart,r,n,a,i,s),t.arrowTypeEnd&&m(e,"end",t.arrowTypeEnd,r,n,a,i,s)},"addEdgeMarkers"),f={arrow_cross:{type:"cross",fill:!1},arrow_point:{type:"point",fill:!0},arrow_barb:{type:"barb",fill:!0},arrow_barb_neo:{type:"barb",fill:!0},arrow_circle:{type:"circle",fill:!1},aggregation:{type:"aggregation",fill:!1},extension:{type:"extension",fill:!1},composition:{type:"composition",fill:!0},dependency:{type:"dependency",fill:!0},lollipop:{type:"lollipop",fill:!1},only_one:{type:"onlyOne",fill:!1},zero_or_one:{type:"zeroOrOne",fill:!1},one_or_more:{type:"oneOrMore",fill:!1},zero_or_more:{type:"zeroOrMore",fill:!1},requirement_arrow:{type:"requirement_arrow",fill:!1},requirement_contains:{type:"requirement_contains",fill:!1}},g=["cross","point","circle","lollipop","aggregation","extension","composition","dependency","barb"],m=(0,h.K2)((e,t,r,n,a,i,s=!1,o)=>{let l=f[r],c=l&&g.includes(l.type);if(!l)return void h.Rm.warn(`Unknown arrow type: ${r}`);let u=l.type,d=`${a}_${i}-${u}${"start"===t?"Start":"End"}${s&&c?"-margin":""}`;if(o&&""!==o.trim()){let r=o.replace(/[^\dA-Za-z]/g,"_"),a=`${d}_${r}`;if(!document.getElementById(a)){let e=document.getElementById(d);if(e){let t=e.cloneNode(!0);t.id=a,t.querySelectorAll("path, circle, line").forEach(e=>{e.setAttribute("stroke",o),l.fill&&e.setAttribute("fill",o)}),e.parentNode?.appendChild(t)}}e.attr(`marker-${t}`,`url(${n}#${a})`)}else e.attr(`marker-${t}`,`url(${n}#${d})`)},"addEdgeMarker"),y=(0,h.K2)(e=>"string"==typeof e?e:(0,c.D7)()?.flowchart?.curve,"resolveEdgeCurveType"),b=new Map,k=new Map,x=(0,h.K2)(()=>{b.clear(),k.clear()},"clear"),w=(0,h.K2)(e=>e?"string"==typeof e?e:e.reduce((e,t)=>e+";"+t,""):"","getLabelStyles"),v=(0,h.K2)(async(e,t)=>{let r,i=(0,c.D7)(),l=(0,c.E)(i),{labelStyles:d}=(0,s.GX)(t);t.labelStyle=d;let p=e.insert("g").attr("class","edgeLabel"),f=p.insert("g").attr("class","label").attr("data-id",t.id),g="markdown"===t.labelType,m=await (0,o.GZ)(e,t.label,{style:w(t.labelStyle),useHtmlLabels:l,addSvgBackground:!0,isNode:!1,markdown:g,width:void 0},i);f.node().appendChild(m),h.Rm.info("abc82",t,t.labelType);let y=m.getBBox(),x=y;if(l){let e=m.children[0],t=(0,u.Ltv)(m);x=y=e.getBoundingClientRect(),t.attr("width",y.width),t.attr("height",y.height)}else{let e=(0,u.Ltv)(m).select("text").node();e&&"function"==typeof e.getBBox&&(x=e.getBBox())}if(f.attr("transform",(0,n.Wg)(x,l)),b.set(t.id,p),t.width=y.width,t.height=y.height,t.startLabelLeft){let i=e.insert("g").attr("class","edgeTerminals"),s=i.insert("g").attr("class","inner"),o=await (0,a.DA)(s,t.startLabelLeft,w(t.labelStyle)||"",!1,!1);r=o;let c=o.getBBox();if(l){let e=o.children[0],t=(0,u.Ltv)(o);c=e.getBoundingClientRect(),t.attr("width",c.width),t.attr("height",c.height)}s.attr("transform",(0,n.Wg)(c,l)),k.get(t.id)||k.set(t.id,{}),k.get(t.id).startLeft=i,_(r,t.startLabelLeft)}if(t.startLabelRight){let i=e.insert("g").attr("class","edgeTerminals"),s=i.insert("g").attr("class","inner"),o=await (0,a.DA)(s,t.startLabelRight,w(t.labelStyle)||"",!1,!1);r=o;let c=o.getBBox();if(l){let e=o.children[0],t=(0,u.Ltv)(o);c=e.getBoundingClientRect(),t.attr("width",c.width),t.attr("height",c.height)}s.attr("transform",(0,n.Wg)(c,l)),k.get(t.id)||k.set(t.id,{}),k.get(t.id).startRight=i,_(r,t.startLabelRight)}if(t.endLabelLeft){let i=e.insert("g").attr("class","edgeTerminals"),s=i.insert("g").attr("class","inner"),o=await (0,a.DA)(i,t.endLabelLeft,w(t.labelStyle)||"",!1,!1);r=o;let c=o.getBBox();if(l){let e=o.children[0],t=(0,u.Ltv)(o);c=e.getBoundingClientRect(),t.attr("width",c.width),t.attr("height",c.height)}s.attr("transform",(0,n.Wg)(c,l)),k.get(t.id)||k.set(t.id,{}),k.get(t.id).endLeft=i,_(r,t.endLabelLeft)}if(t.endLabelRight){let i=e.insert("g").attr("class","edgeTerminals"),s=i.insert("g").attr("class","inner"),o=await (0,a.DA)(i,t.endLabelRight,w(t.labelStyle)||"",!1,!1);r=o;let c=o.getBBox();if(l){let e=o.children[0],t=(0,u.Ltv)(o);c=e.getBoundingClientRect(),t.attr("width",c.width),t.attr("height",c.height)}s.attr("transform",(0,n.Wg)(c,l)),k.get(t.id)||k.set(t.id,{}),k.get(t.id).endRight=i,_(r,t.endLabelRight)}return m},"insertEdgeLabel");function _(e,t){(0,c.E)((0,c.D7)())&&e&&(e.style.width=9*t.length+"px",e.style.height="12px")}(0,h.K2)(_,"setTerminalWidth");var S=(0,h.K2)((e,t)=>{h.Rm.debug("Moving label abc88 ",e.id,e.label,b.get(e.id),t);let r=t.updatedPath?t.updatedPath:t.originalPath,n=(0,c.D7)(),{subGraphTitleTotalMargin:a}=(0,i.O)(n);if(e.label){let n=b.get(e.id),i=e.x,s=e.y;if(r){let n=l._K.calcLabelPosition(r);h.Rm.debug("Moving label "+e.label+" from (",i,",",s,") to (",n.x,",",n.y,") abc88"),t.updatedPath&&(i=n.x,s=n.y)}n.attr("transform",`translate(${i}, ${s+a/2})`)}if(e.startLabelLeft){let t=k.get(e.id).startLeft,n=e.x,a=e.y;if(r){let t=l._K.calcTerminalLabelPosition(10*!!e.arrowTypeStart,"start_left",r);n=t.x,a=t.y}t.attr("transform",`translate(${n}, ${a})`)}if(e.startLabelRight){let t=k.get(e.id).startRight,n=e.x,a=e.y;if(r){let t=l._K.calcTerminalLabelPosition(10*!!e.arrowTypeStart,"start_right",r);n=t.x,a=t.y}t.attr("transform",`translate(${n}, ${a})`)}if(e.endLabelLeft){let t=k.get(e.id).endLeft,n=e.x,a=e.y;if(r){let t=l._K.calcTerminalLabelPosition(10*!!e.arrowTypeEnd,"end_left",r);n=t.x,a=t.y}t.attr("transform",`translate(${n}, ${a})`)}if(e.endLabelRight){let t=k.get(e.id).endRight,n=e.x,a=e.y;if(r){let t=l._K.calcTerminalLabelPosition(10*!!e.arrowTypeEnd,"end_right",r);n=t.x,a=t.y}t.attr("transform",`translate(${n}, ${a})`)}},"positionEdgeLabel"),A=(0,h.K2)((e,t)=>{let r=e.x,n=e.y,a=Math.abs(t.x-r),i=Math.abs(t.y-n),s=e.width/2,o=e.height/2;return a>=s||i>=o},"outsideNode"),M=(0,h.K2)((e,t,r)=>{h.Rm.debug(`intersection calc abc89:
outsidePoint: ${JSON.stringify(t)}
insidePoint : ${JSON.stringify(r)}
node : x:${e.x} y:${e.y} w:${e.width} h:${e.height}`);let n=e.x,a=e.y,i=Math.abs(n-r.x),s=e.width/2,o=r.x<t.x?s-i:s+i,l=e.height/2,c=Math.abs(t.y-r.y),u=Math.abs(t.x-r.x);if(Math.abs(a-t.y)*s>Math.abs(n-t.x)*l){let e=r.y<t.y?t.y-l-a:a-l-t.y;o=u*e/c;let n={x:r.x<t.x?r.x+o:r.x-u+o,y:r.y<t.y?r.y+c-e:r.y-c+e};return 0===o&&(n.x=t.x,n.y=t.y),0===u&&(n.x=t.x),0===c&&(n.y=t.y),h.Rm.debug(`abc89 top/bottom calc, Q ${c}, q ${e}, R ${u}, r ${o}`,n),n}{let e=c*(o=r.x<t.x?t.x-s-n:n-s-t.x)/u,a=r.x<t.x?r.x+u-o:r.x-u+o,i=r.y<t.y?r.y+e:r.y-e;return h.Rm.debug(`sides calc abc89, Q ${c}, q ${e}, R ${u}, r ${o}`,{_x:a,_y:i}),0===o&&(a=t.x,i=t.y),0===u&&(a=t.x),0===c&&(i=t.y),{x:a,y:i}}},"intersection"),$=(0,h.K2)((e,t)=>{h.Rm.warn("abc88 cutPathAtIntersect",e,t);let r=[],n=e[0],a=!1;return e.forEach(e=>{if(h.Rm.info("abc88 checking point",e,t),A(t,e)||a)h.Rm.warn("abc88 outside",e,n),n=e,a||r.push(e);else{let i=M(t,n,e);h.Rm.debug("abc88 inside",e,n,i),h.Rm.debug("abc88 intersection",i,t);let s=!1;r.forEach(e=>{s=s||e.x===i.x&&e.y===i.y}),r.some(e=>e.x===i.x&&e.y===i.y)?h.Rm.warn("abc88 no intersect",i,r):r.push(i),a=!0}}),h.Rm.debug("returning points",r),r},"cutPathAtIntersect");function L(e){let t=[],r=[];for(let n=1;n<e.length-1;n++){let a=e[n-1],i=e[n],s=e[n+1];a.x===i.x&&i.y===s.y&&Math.abs(i.x-s.x)>5&&Math.abs(i.y-a.y)>5?(t.push(i),r.push(n)):a.y===i.y&&i.x===s.x&&Math.abs(i.x-a.x)>5&&Math.abs(i.y-s.y)>5&&(t.push(i),r.push(n))}return{cornerPoints:t,cornerPointPositions:r}}(0,h.K2)(L,"extractCornerPoints");var O=(0,h.K2)(function(e,t,r){let n=t.x-e.x,a=t.y-e.y,i=r/Math.sqrt(n*n+a*a);return{x:t.x-i*n,y:t.y-i*a}},"findAdjacentPoint"),E=(0,h.K2)(function(e){let{cornerPointPositions:t}=L(e),r=[];for(let n=0;n<e.length;n++)if(t.includes(n)){let t=e[n-1],a=e[n+1],i=e[n],s=O(t,i,5),o=O(a,i,5),l=o.x-s.x,c=o.y-s.y;r.push(s);let u=2*Math.sqrt(2),d={x:i.x,y:i.y};Math.abs(a.x-t.x)>10&&Math.abs(a.y-t.y)>=10?(h.Rm.debug("Corner point fixing",Math.abs(a.x-t.x),Math.abs(a.y-t.y)),d=i.x===s.x?{x:l<0?s.x-5+u:s.x+5-u,y:c<0?s.y-u:s.y+u}:{x:l<0?s.x-u:s.x+u,y:c<0?s.y-5+u:s.y+5-u}):h.Rm.debug("Corner point skipping fixing",Math.abs(a.x-t.x),Math.abs(a.y-t.y)),r.push(d,o)}else r.push(e[n]);return r},"fixCorners"),C=(0,h.K2)((e,t,r)=>{let n=Array(Math.floor((e-t-r)/4)).fill("2 2").join(" ");return`0 ${t} ${n} ${r}`},"generateDashArray"),T=(0,h.K2)(function(e,t,r,a,i,o,f,g=!1){let m,b;if(!f)throw Error(`insertEdge: missing diagramId for edge "${t.id}" \u2014 edge IDs require a diagram prefix for uniqueness`);let{handDrawnSeed:k}=(0,c.D7)(),x=t.points,w=!1,v=[];for(let e in t.cssCompiledStyles)(0,s.KX)(e)||v.push(t.cssCompiledStyles[e]);h.Rm.debug("UIO intersect check",t.points,o.x,i.x),o.intersect&&i.intersect&&!g&&((x=x.slice(1,t.points.length-1)).unshift(i.intersect(x[0])),h.Rm.debug("Last point UIO",t.start,"--\x3e",t.end,x[x.length-1],o,o.intersect(x[x.length-1])),x.push(o.intersect(x[x.length-1])));let _=btoa(JSON.stringify(x));t.toCluster&&(h.Rm.info("to cluster abc88",r.get(t.toCluster)),x=$(t.points,r.get(t.toCluster).node),w=!0),t.fromCluster&&(h.Rm.debug("from cluster abc88",r.get(t.fromCluster),JSON.stringify(x,null,2)),x=$(x.reverse(),r.get(t.fromCluster).node).reverse(),w=!0);let S=x.filter(e=>!Number.isNaN(e.y)),A=y(t.curve);"rounded"!==A&&(S=E(S));let M=u.lUB;switch(A){case"linear":case"rounded":M=u.lUB;break;case"basis":default:M=u.qrM;break;case"cardinal":M=u.y8u;break;case"bumpX":M=u.Wi0;break;case"bumpY":M=u.PGM;break;case"catmullRom":M=u.oDi;break;case"monotoneX":M=u.nVG;break;case"monotoneY":M=u.uxU;break;case"natural":M=u.Xf2;break;case"step":M=u.GZz;break;case"stepAfter":M=u.UPb;break;case"stepBefore":M=u.dyv}let{x:L,y:O}=(0,n.RI)(t),T=(0,u.n8j)().x(L).y(O).curve(M);switch(t.thickness){case"normal":default:m="edge-thickness-normal";break;case"thick":m="edge-thickness-thick";break;case"invisible":m="edge-thickness-invisible"}switch(t.pattern){case"solid":default:m+=" edge-pattern-solid";break;case"dotted":m+=" edge-pattern-dotted";break;case"dashed":m+=" edge-pattern-dashed"}let K="rounded"===A?R(I(S,t),5):T(S),j=Array.isArray(t.style)?t.style:[t.style],P=j.find(e=>e?.startsWith("stroke:")),N="";t.animate&&(N="edge-animation-fast"),t.animation&&(N="edge-animation-"+t.animation);let D=!1;if("handDrawn"===t.look){let r=d.A.svg(e);Object.assign([],S);let n=r.path(K,{roughness:.3,seed:k});m+=" transition";let a=(b=(0,u.Ltv)(n).select("path").attr("id",`${f}-${t.id}`).attr("class"," "+m+(t.classes?" "+t.classes:"")+(N?" "+N:"")).attr("style",j?j.reduce((e,t)=>e+";"+t,""):"")).attr("d");b.attr("d",a),e.node().appendChild(b.node())}else{let r=v.join(";"),a=j?j.reduce((e,t)=>e+t+";",""):"",i=(r?r+";"+a+";":a)+";"+(j?j.reduce((e,t)=>e+";"+t,""):"");b=e.append("path").attr("d",K).attr("id",`${f}-${t.id}`).attr("class"," "+m+(t.classes?" "+t.classes:"")+(N?" "+N:"")).attr("style",i),P=i.match(/stroke:([^;]+)/)?.[1],D=!0===t.animate||!!t.animation||r.includes("animation");let s=b.node(),o="function"==typeof s.getTotalLength?s.getTotalLength():0,l=n.Nq[t.arrowTypeStart]||0,c=n.Nq[t.arrowTypeEnd]||0;if("neo"===t.look&&!D){let e="dotted"===t.pattern||"dashed"===t.pattern?C(o,l,c):`0 ${l} ${o-l-c} ${c}`,r=`stroke-dasharray: ${e}; stroke-dashoffset: 0;`;b.attr("style",r+b.attr("style"))}}b.attr("data-edge",!0),b.attr("data-et","edge"),b.attr("data-id",t.id),b.attr("data-points",_),b.attr("data-look",(0,l.KL)(t.look)),t.showPoints&&S.forEach(t=>{e.append("circle").style("stroke","red").style("fill","red").attr("r",1).attr("cx",t.x).attr("cy",t.y)});let F="";((0,c.D7)().flowchart.arrowMarkerAbsolute||(0,c.D7)().state.arrowMarkerAbsolute)&&(F=(F=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(").replace(/\)/g,"\\)")),h.Rm.info("arrowTypeStart",t.arrowTypeStart),h.Rm.info("arrowTypeEnd",t.arrowTypeEnd);let z=!D&&t?.look==="neo";p(b,t,F,f,a,z,P);let B=Math.floor(x.length/2),W=x[B];l._K.isLabelCoordinateInPath(W,b.attr("d"))||(w=!0);let q={};return w&&(q.updatedPath=x),q.originalPath=t.points,q},"insertEdge");function R(e,t){if(e.length<2)return"";let r="",n=e.length;for(let a=0;a<n;a++){let i=e[a],s=e[a-1],o=e[a+1];if(0===a)r+=`M${i.x},${i.y}`;else if(a===n-1)r+=`L${i.x},${i.y}`;else{let e=i.x-s.x,n=i.y-s.y,a=o.x-i.x,l=o.y-i.y,c=Math.hypot(e,n),h=Math.hypot(a,l);if(c<1e-5||h<1e-5){r+=`L${i.x},${i.y}`;continue}let u=e/c,d=n/c,p=a/h,f=l/h,g=Math.acos(Math.max(-1,Math.min(1,u*p+d*f)));if(g<1e-5||1e-5>Math.abs(Math.PI-g)){r+=`L${i.x},${i.y}`;continue}let m=Math.min(t/Math.sin(g/2),c/2,h/2),y=i.x-u*m,b=i.y-d*m,k=i.x+p*m,x=i.y+f*m;r+=`L${y},${b}Q${i.x},${i.y} ${k},${x}`}}return r}function K(e,t){if(!e||!t)return{angle:0,deltaX:0,deltaY:0};let r=t.x-e.x,n=t.y-e.y;return{angle:Math.atan2(n,r),deltaX:r,deltaY:n}}function I(e,t){let r=e.map(e=>({...e}));if(e.length>=2&&n.hq[t.arrowTypeStart]){let a=n.hq[t.arrowTypeStart],i=e[0],{angle:s}=K(i,e[1]),o=a*Math.cos(s),l=a*Math.sin(s);r[0].x=i.x+o,r[0].y=i.y+l}let a=e.length;if(a>=2&&n.hq[t.arrowTypeEnd]){let i=n.hq[t.arrowTypeEnd],s=e[a-1],{angle:o}=K(e[a-2],s),l=i*Math.cos(o),c=i*Math.sin(o);r[a-1].x=s.x-l,r[a-1].y=s.y-c}return r}(0,h.K2)(R,"generateRoundedPath"),(0,h.K2)(K,"calculateDeltaAndAngle"),(0,h.K2)(I,"applyMarkerOffsetsToPoints");var j=(0,h.K2)((e,t,r,n)=>{t.forEach(t=>{en[t](e,r,n)})},"insertMarkers"),P=(0,h.K2)((e,t,r)=>{h.Rm.trace("Making markers for ",r),e.append("defs").append("marker").attr("id",r+"_"+t+"-extensionStart").attr("class","marker extension "+t).attr("refX",18).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 1,7 L18,13 V 1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-extensionEnd").attr("class","marker extension "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z"),e.append("marker").attr("id",r+"_"+t+"-extensionStart-margin").attr("class","marker extension "+t).attr("refX",18).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").attr("viewBox","0 0 20 14").append("polygon").attr("points","10,7 18,13 18,1").style("stroke-width",2).style("stroke-dasharray","0"),e.append("defs").append("marker").attr("id",r+"_"+t+"-extensionEnd-margin").attr("class","marker extension "+t).attr("refX",9).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").attr("viewBox","0 0 20 14").append("polygon").attr("points","10,1 10,13 18,7").style("stroke-width",2).style("stroke-dasharray","0")},"extension"),N=(0,h.K2)((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"),e.append("defs").append("marker").attr("id",r+"_"+t+"-compositionStart-margin").attr("class","marker composition "+t).attr("refX",15).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("viewBox","0 0 15 15").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-compositionEnd-margin").attr("class","marker composition "+t).attr("refX",3.5).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"composition"),D=(0,h.K2)((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"),e.append("defs").append("marker").attr("id",r+"_"+t+"-aggregationStart-margin").attr("class","marker aggregation "+t).attr("refX",15).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",2).attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-aggregationEnd-margin").attr("class","marker aggregation "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",2).attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"aggregation"),F=(0,h.K2)((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"),e.append("defs").append("marker").attr("id",r+"_"+t+"-dependencyStart-margin").attr("class","marker dependency "+t).attr("refX",4).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-dependencyEnd-margin").attr("class","marker dependency "+t).attr("refX",16).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},"dependency"),z=(0,h.K2)((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("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("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),e.append("defs").append("marker").attr("id",r+"_"+t+"-lollipopStart-margin").attr("class","marker lollipop "+t).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6).attr("stroke-width",2),e.append("defs").append("marker").attr("id",r+"_"+t+"-lollipopEnd-margin").attr("class","marker lollipop "+t).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6).attr("stroke-width",2)},"lollipop"),B=(0,h.K2)((e,t,r)=>{e.append("marker").attr("id",r+"_"+t+"-pointEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),e.append("marker").attr("id",r+"_"+t+"-pointStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",4.5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).attr("orient","auto").append("path").attr("d","M 0 5 L 10 10 L 10 0 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),e.append("marker").attr("id",r+"_"+t+"-pointEnd-margin").attr("class","marker "+t).attr("viewBox","0 0 11.5 14").attr("refX",11.5).attr("refY",7).attr("markerUnits","userSpaceOnUse").attr("markerWidth",10.5).attr("markerHeight",14).attr("orient","auto").append("path").attr("d","M 0 0 L 11.5 7 L 0 14 z").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0"),e.append("marker").attr("id",r+"_"+t+"-pointStart-margin").attr("class","marker "+t).attr("viewBox","0 0 11.5 14").attr("refX",1).attr("refY",7).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11.5).attr("markerHeight",14).attr("orient","auto").append("polygon").attr("points","0,7 11.5,14 11.5,0").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0")},"point"),W=(0,h.K2)((e,t,r)=>{e.append("marker").attr("id",r+"_"+t+"-circleEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",11).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),e.append("marker").attr("id",r+"_"+t+"-circleStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",-1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),e.append("marker").attr("id",r+"_"+t+"-circleEnd-margin").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refY",5).attr("refX",12.25).attr("markerUnits","userSpaceOnUse").attr("markerWidth",14).attr("markerHeight",14).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0"),e.append("marker").attr("id",r+"_"+t+"-circleStart-margin").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",-2).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",14).attr("markerHeight",14).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0")},"circle"),q=(0,h.K2)((e,t,r)=>{e.append("marker").attr("id",r+"_"+t+"-crossEnd").attr("class","marker cross "+t).attr("viewBox","0 0 11 11").attr("refX",12).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),e.append("marker").attr("id",r+"_"+t+"-crossStart").attr("class","marker cross "+t).attr("viewBox","0 0 11 11").attr("refX",-1).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),e.append("marker").attr("id",r+"_"+t+"-crossEnd-margin").attr("class","marker cross "+t).attr("viewBox","0 0 15 15").attr("refX",17.7).attr("refY",7.5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 1,1 L 14,14 M 1,14 L 14,1").attr("class","arrowMarkerPath").style("stroke-width",2.5),e.append("marker").attr("id",r+"_"+t+"-crossStart-margin").attr("class","marker cross "+t).attr("viewBox","0 0 15 15").attr("refX",-3.5).attr("refY",7.5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 1,1 L 14,14 M 1,14 L 14,1").attr("class","arrowMarkerPath").style("stroke-width",2.5).style("stroke-dasharray","1,0")},"cross"),Y=(0,h.K2)((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"),U=(0,h.K2)((e,t,r)=>{let{themeVariables:n}=(0,c.zj)(),{transitionColor:a}=n;e.append("defs").append("marker").attr("id",r+"_"+t+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","strokeWidth").attr("orient","auto").append("path").attr("d","M 19,7 L11,14 L13,7 L11,0 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-barbEnd-margin").attr("refX",17).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M 19,7 L11,14 L13,7 L11,0 Z").attr("fill",`${a}`)},"barbNeo"),H=(0,h.K2)((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"),X=(0,h.K2)((e,t,r)=>{let n=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");n.append("circle").attr("fill","white").attr("cx",21).attr("cy",9).attr("r",6),n.append("path").attr("d","M9,0 L9,18");let a=e.append("defs").append("marker").attr("id",r+"_"+t+"-zeroOrOneEnd").attr("class","marker zeroOrOne "+t).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");a.append("circle").attr("fill","white").attr("cx",9).attr("cy",9).attr("r",6),a.append("path").attr("d","M21,0 L21,18")},"zero_or_one"),G=(0,h.K2)((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"),Z=(0,h.K2)((e,t,r)=>{let n=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");n.append("circle").attr("fill","white").attr("cx",48).attr("cy",18).attr("r",6),n.append("path").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18");let a=e.append("defs").append("marker").attr("id",r+"_"+t+"-zeroOrMoreEnd").attr("class","marker zeroOrMore "+t).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");a.append("circle").attr("fill","white").attr("cx",9).attr("cy",18).attr("r",6),a.append("path").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18")},"zero_or_more"),V=(0,h.K2)((e,t,r)=>{let{themeVariables:n}=(0,c.zj)(),{strokeWidth:a}=n;e.append("defs").append("marker").attr("id",r+"_"+t+"-onlyOneStart").attr("class","marker onlyOne "+t).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M9,0 L9,18 M15,0 L15,18").attr("stroke-width",`${a}`),e.append("defs").append("marker").attr("id",r+"_"+t+"-onlyOneEnd").attr("class","marker onlyOne "+t).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M3,0 L3,18 M9,0 L9,18").attr("stroke-width",`${a}`)},"only_one_neo"),Q=(0,h.K2)((e,t,r)=>{let{themeVariables:n}=(0,c.zj)(),{strokeWidth:a,mainBkg:i}=n,s=e.append("defs").append("marker").attr("id",r+"_"+t+"-zeroOrOneStart").attr("class","marker zeroOrOne "+t).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto").attr("markerUnits","userSpaceOnUse");s.append("circle").attr("fill",i??"white").attr("cx",21).attr("cy",9).attr("stroke-width",`${a}`).attr("r",6),s.append("path").attr("d","M9,0 L9,18").attr("stroke-width",`${a}`);let o=e.append("defs").append("marker").attr("id",r+"_"+t+"-zeroOrOneEnd").attr("class","marker zeroOrOne "+t).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("markerUnits","userSpaceOnUse").attr("orient","auto");o.append("circle").attr("fill",i??"white").attr("cx",9).attr("cy",9).attr("stroke-width",`${a}`).attr("r",6),o.append("path").attr("d","M21,0 L21,18").attr("stroke-width",`${a}`)},"zero_or_one_neo"),J=(0,h.K2)((e,t,r)=>{let{themeVariables:n}=(0,c.zj)(),{strokeWidth:a}=n;e.append("defs").append("marker").attr("id",r+"_"+t+"-oneOrMoreStart").attr("class","marker oneOrMore "+t).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27").attr("stroke-width",`${a}`),e.append("defs").append("marker").attr("id",r+"_"+t+"-oneOrMoreEnd").attr("class","marker oneOrMore "+t).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18").attr("stroke-width",`${a}`)},"one_or_more_neo"),ee=(0,h.K2)((e,t,r)=>{let{themeVariables:n}=(0,c.zj)(),{strokeWidth:a,mainBkg:i}=n,s=e.append("defs").append("marker").attr("id",r+"_"+t+"-zeroOrMoreStart").attr("class","marker zeroOrMore "+t).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("markerUnits","userSpaceOnUse").attr("orient","auto");s.append("circle").attr("fill",i??"white").attr("cx",45.5).attr("cy",18).attr("r",6).attr("stroke-width",`${a}`),s.append("path").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18").attr("stroke-width",`${a}`);let o=e.append("defs").append("marker").attr("id",r+"_"+t+"-zeroOrMoreEnd").attr("class","marker zeroOrMore "+t).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto").attr("markerUnits","userSpaceOnUse");o.append("circle").attr("fill",i??"white").attr("cx",11).attr("cy",18).attr("r",6).attr("stroke-width",`${a}`),o.append("path").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18").attr("stroke-width",`${a}`)},"zero_or_more_neo"),et=(0,h.K2)((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
L20,10
M20,10
L0,20`)},"requirement_arrow"),er=(0,h.K2)((e,t,r)=>{let{themeVariables:n}=(0,c.zj)(),{strokeWidth:a}=n;e.append("defs").append("marker").attr("id",r+"_"+t+"-requirement_arrowEnd").attr("refX",20).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").attr("markerUnits","userSpaceOnUse").attr("stroke-width",`${a}`).attr("viewBox","0 0 25 20").append("path").attr("d",`M0,0
L20,10
M20,10
L0,20`).attr("stroke-linejoin","miter")},"requirement_arrow_neo"),en={extension:P,composition:N,aggregation:D,dependency:F,lollipop:z,point:B,circle:W,cross:q,barb:Y,barbNeo:U,only_one:H,zero_or_one:X,one_or_more:G,zero_or_more:Z,only_one_neo:V,zero_or_one_neo:Q,one_or_more_neo:J,zero_or_more_neo:ee,requirement_arrow:et,requirement_contains:(0,h.K2)((e,t,r)=>{let n=e.append("defs").append("marker").attr("id",r+"_"+t+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("g");n.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),n.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),n.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10)},"requirement_contains"),requirement_arrow_neo:er,requirement_contains_neo:(0,h.K2)((e,t,r)=>{let{themeVariables:n}=(0,c.zj)(),{strokeWidth:a}=n,i=e.append("defs").append("marker").attr("id",r+"_"+t+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").attr("markerUnits","userSpaceOnUse").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),i.selectAll("*").attr("stroke-width",`${a}`)},"requirement_contains_neo")},ea=j},96712:(e,t,r)=>{"use strict";r.d(t,{Fr:()=>h,GX:()=>c,KX:()=>l,WW:()=>s,ue:()=>i});var n=r(93913),a=r(85448),i=(0,a.K2)(e=>{let{handDrawnSeed:t}=(0,n.D7)();return{fill:e,hachureAngle:120,hachureGap:4,fillWeight:2,roughness:.7,stroke:e,seed:t}},"solidStateFill"),s=(0,a.K2)(e=>{let t=o([...e.cssCompiledStyles||[],...e.cssStyles||[],...e.labelStyle||[]]);return{stylesMap:t,stylesArray:[...t]}},"compileStyles"),o=(0,a.K2)(e=>{let t=new Map;return e.forEach(e=>{let[r,n]=e.split(":");t.set(r.trim(),n?.trim())}),t},"styles2Map"),l=(0,a.K2)(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"===e,"isLabelStyle"),c=(0,a.K2)(e=>{let{stylesArray:t}=s(e),r=[],n=[],a=[],i=[];return t.forEach(e=>{let t=e[0];l(t)?r.push(e.join(":")+" !important"):(n.push(e.join(":")+" !important"),t.includes("stroke")&&a.push(e.join(":")+" !important"),"fill"===t&&i.push(e.join(":")+" !important"))}),{labelStyles:r.join(";"),nodeStyles:n.join(";"),stylesArray:t,borderStyles:a,backgroundStyles:i}},"styles2String"),h=(0,a.K2)((e,t)=>{let{themeVariables:r,handDrawnSeed:a}=(0,n.D7)(),{nodeBorder:i,mainBkg:o}=r,{stylesMap:l}=s(e);return Object.assign({roughness:.7,fill:l.get("fill")||o,fillStyle:"hachure",fillWeight:4,hachureGap:5.2,stroke:l.get("stroke")||i,seed:a,strokeWidth:l.get("stroke-width")?.replace("px","")||1.3,fillLineDash:[0,0],strokeLineDash:u(l.get("stroke-dasharray"))},t)},"userNodeOverrides"),u=(0,a.K2)(e=>{if(!e)return[0,0];let t=e.trim().split(/\s+/).map(Number);if(1===t.length){let e=isNaN(t[0])?0:t[0];return[e,e]}return[isNaN(t[0])?0:t[0],isNaN(t[1])?0:t[1]]},"getStrokeDashArray")},97525:(e,t,r)=>{"use strict";r.d(t,{$V:()=>s,Av:()=>n,GX:()=>f,ML:()=>S,NA:()=>u,OG:()=>a,Qb:()=>m,R_:()=>o,Uw:()=>d,VP:()=>l,XZ:()=>x,ZR:()=>k,_u:()=>v,cT:()=>p,i1:()=>w,iq:()=>g,kj:()=>i,pj:()=>h,q:()=>y,ri:()=>_,vC:()=>c,x6:()=>b});let n="[object RegExp]",a="[object String]",i="[object Number]",s="[object Boolean]",o="[object Arguments]",l="[object Symbol]",c="[object Date]",h="[object Map]",u="[object Set]",d="[object Array]",p="[object ArrayBuffer]",f="[object Object]",g="[object DataView]",m="[object Uint8Array]",y="[object Uint8ClampedArray]",b="[object Uint16Array]",k="[object Uint32Array]",x="[object Int8Array]",w="[object Int16Array]",v="[object Int32Array]",_="[object Float32Array]",S="[object Float64Array]"},97556:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BLANK_URL=t.relativeFirstCharacters=t.whitespaceEscapeCharsRegex=t.urlSchemeRegex=t.ctrlCharactersRegex=t.htmlCtrlEntityRegex=t.htmlEntitiesRegex=t.invalidProtocolRegex=void 0,t.invalidProtocolRegex=/^([^\w]*)(javascript|data|vbscript)/im,t.htmlEntitiesRegex=/&#(\w+)(^\w|;)?/g,t.htmlCtrlEntityRegex=/&(newline|tab);/gi,t.ctrlCharactersRegex=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,t.urlSchemeRegex=/^.+(:|&colon;)/gim,t.whitespaceEscapeCharsRegex=/(\\|%5[cC])((%(6[eE]|72|74))|[nrt])/g,t.relativeFirstCharacters=[".","/"],t.BLANK_URL="about:blank"}}]);